PageSourceSearch

https://appv2.aanyahr.com/chunk-G4L5TH7K.js

js aanyahr.com collected 2026-10-02 00:29:21 UTC 25,267 bytes, 2 lines download raw bytes

1import{a as st}from"./chunk-PMPKRBM5.js";import"./chunk-X3FLNVX7.js";import{a as dt}from"./chunk-ZXHCXM7E.js";import{a as rt}from"./chunk-UIQITXG6.js";import"./chunk-GWNYURDA.js";import"./chunk-ZNGVFA7A.js";import"./chunk-PZF3IKF7.js";import{a as lt}from"./chunk-FRBCSWNS.js";import"./chunk-EUDZ3OBS.js";import{a as at}from"./chunk-FA7Z5M7G.js";import"./chunk-XVKDIWLH.js";import{a as ye}from"./chunk-UL7PUFEC.js";import"./chunk-6F2X3VNQ.js";import"./chunk-HH4C6W2H.js";import{d as Ne}from"./chunk-A3BML6VH.js";import{n as ke}from"./chunk-VM5OC7EY.js";import"./chunk-KLC6KV4U.js";import"./chunk-73RWI3QX.js";import"./chunk-2OTXUOOB.js";import"./chunk-5EZFF3RR.js";import"./chunk-DJGKYIDP.js";import{a as Xe}from"./chunk-FM4YUUAU.js";import"./chunk-EIFDYJRO.js";import"./chunk-YCZHRI3R.js";import{a as nt}from"./chunk-A6VWUFA5.js";import{e as et,f as tt,g as it,h as ot}from"./chunk-NBR26PIB.js";import"./chunk-SABFTKYI.js";import"./chunk-C5Z7LZ75.js";import"./chunk-5JCK5AHP.js";import"./chunk-JGLZKJX4.js";import{a as B,e as Ze,f as Qe}from"./chunk-DDQIHVOV.js";import"./chunk-JO2FI6H5.js";import{c as Ue,h as K}from"./chunk-REZTMBVK.js";import{a as z}from"./chunk-CSLXO2TK.js";import{b as ce,c as ue,d as H,t as A,u as Ee}from"./chunk-7R5JBG5O.js";import"./chunk-AJAJFYAL.js";import"./chunk-Q4WNEHHE.js";import{a as Fe}from"./chunk-Q5AZYPK7.js";import"./chunk-ZHEVVJCK.js";import{a as f}from"./chunk-JNYYNB56.js";import"./chunk-JQWJTO3J.js";import{a as je,b as Je,e as Ge}from"./chunk-Q2762QK7.js";import{a as ge,b as he,c as we}from"./chunk-LLSWYBYW.js";import{i as Ve}from"./chunk-K7QAXN6Z.js";import{a as Y,c as _e,e as fe}from"./chunk-XI7OEVLD.js";import{Ca as De,Da as Ie,Fa as Me,Ha as Se,Ja as be,Ka as Te,Na as Ke,Oa as ze,va as Ce,xa as ve,ya as xe}from"./chunk-HJ22JSJV.js";import{n as pe,r as me}from"./chunk-5ALDQSIV.js";import{B as qe,C as He,b as We,d as Ae,g as Oe,h as Ye,m as Re,n as Le,o as $e,r as Be,z as Pe}from"./chunk-DZXPISIV.js";import{Ac as I,Bb as X,Bc as E,Bd as le,Ca as _,Ec as M,Ed as de,Fc as S,Gc as b,Hc as oe,Jc as ne,Kc as W,Mc as $,Nc as ae,Rb as w,Sb as y,Ub as ee,Vb as te,Wb as ie,Xb as p,Yb as d,Zb as l,_b as v,bd as re,fc as C,gb as a,ic as g,lc as s,ob as Z,p as L,pb as D,qa as m,ra as c,ud as se,vb as Q,vc as F,x as U,xc as q}from"./chunk-TUX6BVKC.js";import{a as O,b as G}from"./chunk-JGDRNPQP.js";var P=()=>[],j=(n,u)=>({id:n,type:u}),_t=(n,u,e)=>[n,u,e],ft=()=>[37,38];function gt(n,u){if(n&1){let e=C();d(0,"div")(1,"app-employee-hierarchy",11),g("objects",function(t){m(e);let o=s(2);return c(o.tagtypeoption=t)})("selected",function(t){m(e);let o=s(2);return c(o.field_count=t)}),l()()}if(n&2){let e=s(2);a(),p("showTag",!1)("disabled",e.action||e.isView)("defaultTag",ae(19,_t,$(8,j,W(7,P),-2),$(12,j,W(11,P),-3),$(16,j,W(15,P),-4)))("multiple",!0)("all",!0)("notincludetag",W(23,ft))("resultHierarchy",e.resultHierarchy)}}function ht(n,u){if(n&1){let e=C();d(0,"button",12),g("click",function(){m(e);let t=s(2);return c(t.search())}),v(1,"mat-icon",13),l(),d(2,"button",14),g("click",function(){m(e);let t=s(2);return c(t.reset())}),v(3,"mat-icon",15),l()}if(n&2){let e=s(2);p("disabled",e.action)("color","primary"),a(2),p("disabled",e.action)("color","primary")}}function wt(n,u){if(n&1){let e=C();d(0,"mat-form-field",17)(1,"mat-label",18),I(2),l(),v(3,"mat-icon",19),d(4,"input",20),b("ngModelChange",function(t){m(e);let o=s().$implicit;return S(o.employeeCode,t)||(o.employeeCode=t),c(t)}),l()()}if(n&2){let e=s().$implicit,i=s().$implicit;a(2),E(i("employeeCode")),a(2),p("disabled",!0),M("ngModel",e.employeeCode),p("type",e.dataType)("placeholder",e.description)}}function yt(n,u){if(n&1){let e=C();d(0,"mat-form-field",17)(1,"mat-label",18),I(2),l(),v(3,"mat-icon",19),d(4,"input",20),b("ngModelChange",function(t){m(e);let o=s().$implicit;return S(o.employeeName,t)||(o.employeeName=t),c(t)}),l()()}if(n&2){let e=s().$implicit,i=s().$implicit;a(2),E(i("employeeName")),a(2),p("disabled",!0),M("ngModel",e.employeeName),p("type",e.dataType)("placeholder",e.description)}}function Ct(n,u){if(n&1){let e=C();d(0,"div",34)(1,"app-dropdown-custom",35),g("selected",function(t){m(e);let o=s(2).$implicit;return c(o.newValue=t)}),l()()}if(n&2){let e=s(2).$implicit;a(),p("icon","mat_outline:info")("value",e.newValue)("label",e.de
1scription)("type",e.dropDownTypeId)("all",e.all)("multiple",e.multiple)("options",W(8,P))("useControl",!1)}}function vt(n,u){if(n&1){let e=C();d(0,"div",34)(1,"app-dropdown",36),g("selected",function(t){m(e);let o=s(2).$implicit;return c(o.newValue=t)}),l()()}if(n&2){let e=s(2).$implicit;a(),p("isFix",!0)("value",e.newValue)("icon","mat_outline:info")("all",e.all)("multiple",e.multiple)("useControl",!1)("label",e.fieldName)("options",e.dropDownList)("type",e.dropDownTypeId)}}function xt(n,u){if(n&1){let e=C();d(0,"div",34)(1,"app-dropdown",36),g("selected",function(t){m(e);let o=s(2).$implicit;return c(o.newValue=t)}),l()()}if(n&2){let e=s(2).$implicit,i=s(2);a(),p("isFix",!1)("value",e.newValue)("icon","mat_outline:info")("all",e.all)("multiple",e.multiple)("useControl",!1)("label",e.fieldName)("options",i.dropdownOptions.optionsdeftenant)("type",e.dropDownTypeId)}}function Dt(n,u){if(n&1&&(d(0,"div"),w(1,Ct,2,9,"div",34),w(2,vt,2,9,"div",34),w(3,xt,2,9,"div",34),l()),n&2){let e=s().$implicit;a(),y(e.dataType=="Custom"?1:-1),a(),y(e.dataType=="Fix"?2:-1),a(),y(e.dataType=="Tenant"?3:-1)}}function It(n,u){if(n&1){let e=C();d(0,"mat-form-field",17)(1,"mat-label",18),I(2),l(),v(3,"mat-icon",19),d(4,"input",37),b("ngModelChange",function(t){m(e);let o=s(2).$implicit;return S(o.newValue,t)||(o.newValue=t),c(t)}),g("keypress",function(t){m(e);let o=s(2).$implicit,r=s(2);return c(o.columnKey=="IdBio"?r.validateNoDecimalInput(t):!0)}),l()()}if(n&2){let e=s(2).$implicit;a(2),E(e.fieldName),a(2),M("ngModel",e.newValue),p("type",e.dataType)("mask",e.mask)("placeholder",e.description)}}function Mt(n,u){if(n&1){let e=C();d(0,"mat-form-field",17)(1,"mat-label",18),I(2),l(),v(3,"mat-icon",19),d(4,"input",38),b("ngModelChange",function(t){m(e);let o=s(2).$implicit;return S(o.newValue,t)||(o.newValue=t),c(t)}),l()()}if(n&2){let e=s(2).$implicit;a(2),E(e.fieldName),a(2),M("ngModel",e.newValue),p("mask",e.mask)("placeholder",e.description)}}function St(n,u){if(n&1){let e=C();d(0,"mat-form-field",17)(1,"mat-label",18),I(2),l(),d(3,"input",39),b("ngModelChange",function(t){m(e);let o=s(2).$implicit;return S(o.newValue,t)||(o.newValue=t),c(t)}),g("click",function(){m(e);let t=F(6);return c(t.open())}),l(),v(4,"mat-datepicker-toggle",24)(5,"mat-datepicker",null,0),l()}if(n&2){let e=F(6),i=s(2).$implicit,t=s(2);a(2),E(i.fieldName),a(),M("ngModel",i.newValue),p("max",t.maxDate(i.fieldKey))("matDatepicker",e)("placeholder","MM/DD/YYYY"),a(),p("for",e)}}function bt(n,u){if(n&1&&(d(0,"div"),w(1,It,5,5,"mat-form-field",17),w(2,Mt,5,4,"mat-form-field",17),w(3,St,7,6,"mat-form-field",17),l()),n&2){let e=s().$implicit;a(),y(e.dataType=="Text"?1:-1),a(),y(e.dataType=="Number"?2:-1),a(),y(e.dataType=="Date"?3:-1)}}function Tt(n,u){if(n&1){let e=C();d(0,"button",40),g("click",function(t){m(e),s();let o=F(26);return c(o.click(t))}),I(1,"Upload"),l()}if(n&2){let e=s().$implicit;p("matTooltip",oe(e.attach))}}function Et(n,u){if(n&1){let e=C();d(0,"button",41),g("click",function(){m(e);let t=s().$index,o=s(2);return c(o.remove(t))}),v(1,"mat-icon",42),l()}n&2&&p("color","warn")}function Vt(n,u){if(n&1){let e=C();d(0,"div",16),w(1,wt,5,5,"mat-form-field",17),w(2,yt,5,5,"mat-form-field",17),d(3,"mat-form-field",17)(4,"mat-label",18),I(5),l(),v(6,"mat-icon",19),d(7,"input",20),b("ngModelChange",function(t){let o=m(e).$implicit;return S(o.fieldName,t)||(o.fieldName=t),c(t)}),l()(),d(8,"mat-form-field",17)(9,"mat-label"),I(10),l(),v(11,"mat-icon",19)(12,"input",21),l(),w(13,Dt,4,3,"div"),w(14,bt,4,3,"div"),d(15,"mat-form-field",22)(16,"mat-label",18),I(17),l(),d(18,"input",23),b("ngModelChange",function(t){let o=m(e).$implicit;return S(o.effectiveDate,t)||(o.effectiveDate=t),c(t)}),g("click",function(){m(e);let t=F(21);return c(t.open())}),l(),v(19,"mat-datepicker-toggle",24)(20,"mat-datepicker",null,0),l(),d(22,"div",25)(23,"textarea",26),b("ngModelChange",function(t){let o=m(e).$implicit;return S(o.reason,t)||(o.reason=t),c(t)}),l()(),d(24,"mat-form-field",27)(25,"input",28,1),b("ngModelChange",function(t){let o=m(e).$implicit;return S(o.attach,t)||(o.attach=t),c(t)}
1),g("change",function(t){let o=m(e),r=o.$implicit,h=o.$index,T=s(2);return c(T.uploadFile(t,"displayCS_"+h,h,r))}),l(),v(27,"input",29),d(28,"mat-icon",30),g("click",function(t){m(e);let o=F(26);return c(o.click(t))}),l(),w(29,Tt,2,2,"button",31),d(30,"button",32),g("click",function(t){m(e);let o=F(26);return c(o.click(t))}),l()(),w(31,Et,2,1,"button",33),l()}if(n&2){let e=u.$implicit,i=u.$index,t=F(21),o=s().$implicit,r=s();q("interaction-disabled",e.approved||r.isView),a(),y(r.currentModule?1:-1),a(),y(r.currentModule?2:-1),a(3),E(o("field")),a(2),p("disabled",!0),M("ngModel",e.fieldName),p("type",e.dataType)("placeholder",e.description),a(3),E(o("currentData")),a(2),p("disabled",!0)("ngModel",e.oldValueDescription)("type",e.dataType)("mask",e.mask),a(),y(e.fieldType=="Select"?13:-1),a(),y(e.fieldType=="Input"?14:-1),a(3),E(o("effectivityDate")),a(),M("ngModel",e.effectiveDate),p("min",r.minEffectiveDate(e.fieldKey))("matDatepicker",t)("placeholder","MM/DD/YYYY"),a(),p("for",t),a(4),M("ngModel",e.reason),a(),p("ngClass",r.wid.is100?"w-10":"w-full"),a(),M("ngModel",e.attach),a(2),p("id","displayCS_"+i),a(2),y(r.wid.is100?-1:29),a(2),y(r.isView?-1:31)}}function Ft(n,u){if(n&1){let e=C();d(0,"div",3)(1,"div",4)(2,"mat-card",5)(3,"mat-card-title")(4,"app-card-title",6),g("submitTap",function(){m(e);let t=s();return c(t.submit())}),l()(),d(5,"div",7),w(6,gt,2,24,"div"),d(7,"form",8),v(8,"app-dropdown-custom",9),l(),w(9,ht,4,4),l(),te(10,Vt,32,28,"div",10,ee),l()()()}if(n&2){let e=s();a(4),p("sub",!e.isView&&!e.isApproved)("back",!0),a(),q("interaction-disabled",e.isView||e.isApproved),a(),y(e.currentModule?6:-1),a(),p("formGroup",e.dataCForm),a(),p("control",e.dataCForm.get("dropdown"))("icon","mat_outline:info")("type",1056)("label","Field")("all",!1)("multiple",!0)("options",e.dropdownOptions.userDef)("useControl",!0),a(),y(e.isView?-1:9),a(),ie(e.datasource)}}var J="MM/DD/yyyy",kt={parse:{dateInput:J},display:{dateInput:J,monthYearLabel:"MMM YYYY",dateA11yLabel:J,monthYearA11yLabel:"MMMM YYYY"}},pt=(()=>{class n{constructor(e,i,t,o,r,h,T,V,x,R){this.fb=e,this.coreService=i,this.filingService=t,this.message=o,this.router=r,this.route=h,this.renderer=T,this.masterService=V,this.tenantService=x,this.cd=R,this.dropdownRequest=new B,this.dropdownFixRequest=new B,this.dropdowntenant=new B,this.dropdownOptions=new K,this.dropdownOptionsSig=_(new K),this.datasource=[],this.datasourceSig=_([]),this.show=!1,this.showSig=_(!1),this.isSave=!1,this.isSaveSig=_(!1),this.prevModule="",this.id="",this.idSig=_(""),this.field_count=0,this.fieldCountSig=_(0),this.request=new Xe,this.resultHierarchy=new Ue,this.tagTypeOptionSig=_(null),this.fields=[],this.fieldsSig=_([]),this.targetId=[],this.targetIdSig=_([]),this.csColumns=["fieldname","fielddata","newdata","dateeffect"],this.loginId=0,this.loginIdSig=_(0),this.masknumber="",this.pipe=new le("en-US"),this.moduleIdSig=_(null),this.imagefiless=[],this.imagefilessSig=_([]),this.imageList=[],this.imageListSig=_([]),this.outputMessage=[],this.outputMessageSig=_([]),this.failedMessage=O({},H),this.successMessage=O({},ue),this.screenWidthSig=_(0),this.min=new Date,this.maxBday=new Date,this.isView=sessionStorage.getItem("action")=="view",this.action=!1,this.isViewSig=_(sessionStorage.getItem("action")=="view"),this.isApproved=!1,this.isApprovedSig=_(!1),this.screenWidth=window.innerWidth}ngOnInit(){this.action=sessionStorage.getItem("action")=="edit",this.id=this.route.snapshot.paramMap.get("id"),this.targetId=[],this.coreService.encrypt_decrypt(!1,[sessionStorage.getItem("u")]).subscribe({next:e=>{this.targetId=Number(e.payload[0]),this.targetIdSig.set([Number(e.payload[0])])}}),this.dataCForm=this.fb.group({dropdown:["",Ae.pattern("[a-zA-Z]+")],employeeId:""}),this.action&&this.dataCForm.disable(),this.id!=""&&this.filingService.getEmployeeDataChangeFiling(this.id).subscribe({next:e=>{if(e.statusCode==200){var i=e.payload;this.isApproved=f.IsEmptyReturn(i?.approved,!1),this.isApprovedSig.set(this.isApproved),i.fieldType=="Select"&&!i.multiple&&(i.newValue=JSON.parse(i.newValue)),this.datasource.pu
1sh(i),this.datasourceSig.set(this.datasource),this.cd.detectChanges()}}}),this.dropdownFixRequest.id.push({dropdownID:0,dropdownTypeID:29},{dropdownID:0,dropdownTypeID:30},{dropdownID:0,dropdownTypeID:31},{dropdownID:0,dropdownTypeID:32},{dropdownID:0,dropdownTypeID:33},{dropdownID:0,dropdownTypeID:34},{dropdownID:0,dropdownTypeID:35},{dropdownID:0,dropdownTypeID:3},{dropdownID:0,dropdownTypeID:10},{dropdownID:0,dropdownTypeID:61},{dropdownID:0,dropdownTypeID:9},{dropdownID:0,dropdownTypeID:3},{dropdownID:0,dropdownTypeID:10},{dropdownID:0,dropdownTypeID:61},{dropdownID:0,dropdownTypeID:9},{dropdownID:0,dropdownTypeID:143},{dropdownID:0,dropdownTypeID:116},{dropdownID:0,dropdownTypeID:123},{dropdownID:0,dropdownTypeID:36},{dropdownID:0,dropdownTypeID:42},{dropdownID:0,dropdownTypeID:2},{dropdownID:0,dropdownTypeID:99}),this.dropdowntenant.id.push({dropdownID:0,dropdownTypeID:121},{dropdownID:0,dropdownTypeID:38},{dropdownID:0,dropdownTypeID:37},{dropdownID:0,dropdownTypeID:39},{dropdownID:0,dropdownTypeID:40}),this.initData(),this.renderer.listen("window","resize",e=>{this.screenWidth=window.innerWidth,this.screenWidthSig.set(this.screenWidth)}),this.maxBday.setFullYear(this.maxBday.getFullYear()-18,11,30)}minEffectiveDate(e){return f.IsEqual(e,[73,74])?new Date(this.min.getFullYear(),0,1):new Date(this.min.getFullYear(),this.min.getMonth()-1,this.min.getDate())}maxDate(e){return f.IsEqual(e,[15])?this.maxBday:new Date(this.min.getFullYear()+2,11,30)}validateNoDecimalInput(e){return e.key==="."?(e.preventDefault(),!1):!0}get currentModule(){return this.isMgmt=f.IsEqual(sessionStorage.getItem("moduleId"),["142","209"]),this.moduleId=sessionStorage.getItem("moduleId"),f.IsEqual(this.prevModule,[sessionStorage.getItem("moduleId")])||(this.prevModule=sessionStorage.getItem("moduleId")),this.isMgmt}getOrdinalSuffix(e){let i=["th","st","nd","rd"],t=e%10,o=e%100;return t===1&&o!==11?e+"st":t===2&&o!==12?e+"nd":t===3&&o!==13?e+"rd":e+"th"}validations(){var e={error:!1,msg:""};return this.datasource.forEach(i=>{let t=[];f.IsEmpty(i.effectiveDate)&&t.push("Effective Date"),i.reasonAttachmentId===31142&&f.IsEmpty(i.reason)?t.push("Remarks"):i.reasonAttachmentId===31143&&f.IsEmpty(i?.attach)?t.push("Attachment"):i.reasonAttachmentId===31144&&(f.IsEmpty(i.reason)&&t.push("Remarks"),f.IsEmpty(i?.attach)&&t.push("Attachment")),f.IsEmpty(i.newValue)&&t.unshift(`<strong>${i.fieldName}</strong> Field`),t.length>0&&(f.IsEmpty(i.newValue)||t.unshift(`<strong>${i.fieldName}</strong> Field`),e.msg+=`${t.join(", ")} is required!<br>`)}),e.error=!f.IsEmpty(e.msg),e}async submit(){if(this.isMgmt&&this.resultHierarchy.Search.some(r=>r.Key=="EmployeeID")){let r=await L(this.coreService.encrypt_decrypt(!0,[this.tagtypeoption[6].value+""]));this.targetId=r.payload[0]}else this.targetId=sessionStorage.getItem("u");var e=await L(this.coreService.encrypt_decrypt(!1,[this.targetId]));this.loginId=Number(e.payload[0]);let i=this.datasource.map(r=>G(O({},r),{effectiveDate:this.pipe.transform(r.effectiveDate,"yyyy-MM-dd"),newValue:r.dataType=="Date"?this.pipe.transform(r.newValue,"yyyy-MM-dd HH:mm"):r.newValue+"",dateCreated:this.pipe.transform(new Date,"yyyy-MM-ddTHH:mm")}));var t=this.validations();if(t.error){this.failedMessage.title=Y("Warning!"),this.failedMessage.actions.confirm.label="Ok",this.failedMessage.message=t.msg,this.message.open(this.failedMessage);return}else var o=this.message.open(ce);o.afterClosed().subscribe(async r=>{r=="confirmed"&&this.filingService.postEmployeeDataChange(i,this.targetId).subscribe({next:h=>{if(h.statusCode==200){if(this.successMessage.message=Y("Transaction has been Saved. Kindly wait for your supervisor's approval."),this.message.open(this.successMessage),this.isSave=!1,this.router.navigate(["/search/EDC-view"]),this.imagefiless.length===0)return;this.coreService.uploadimage(this.imagefiless,h.payload,this.moduleId,this.loginId)}else this.failedMessage.message=f.IsEmptyReturn(h.payload?.[0],h.message),this.message.open(this.failedMessage)},error:h=>{console.error(h)}})})}dropdownCustom(){for(let e=0;e<this.datasource.length;e++)switch(this.datasource[e].fieldName){case"Company":this.datasource[e].dropDownTypeId=1001;break;case"Employee Category":this.datasource[e].dropDownTypeId=1007;break;case"Access Control":this.datasource[e].dropDownTypeId=1008;break;case"Timekeeping":this.datasource[e].dropDownTypeId=1012;break;case"Payroll Category":this.datasource[e].dropDownTypeId=1009;break;case"Branch":this.datasource[e].dropDownTypeId=1002;break}}async search(){if(this.isMgmt&&this.resultHierarchy.Search.some(t=>t.Key=="EmployeeID"))this.targetId=this.tagtypeoption[6].value;else{var e=await L(this.coreService.encrypt_decrypt(!1,[sessionStorage.getItem("u")]));this.targetId=[Number(e.payload[0])]}this.targetIdSig.set(this.targetId);let i={fields:this.dataCForm.get("dropdown").value,employeeId:this.targetId};this.filingService.getEmployeePropertiesWithData(i).subscribe({next:t=>{if(t.statusCode==200){let o=f.sort(t.payload,"fieldName");this.validateData(o),this.dropdownCustom(),this.cd.detectChanges()}},error:t=>{console.error(t)}})}validateData(e){let i=e.map(r=>r.fieldKey),t=e.map(r=>r.employeeId),o=this.datasource.filter(r=>i.includes(r.fieldKey)&&t.includes(r.employeeId)).map(r=>r.fieldKey);if(f.IsEmpty(o))this.datasource=[...this.datasource,...e],this.datasourceSig.set(this.datasource);else{let r=O({},H);r.actions.cancel.show=!0,r.title=Y("Warning!"),r.message=Y("Some fields already exist. Do you want to replace them?"),r.actions.confirm.label="Yes",r.actions.cancel.label="No",this.message.open(r).afterClosed().subscribe(T=>
1{if(T=="confirmed")o.forEach(V=>{let x=this.datasource.findIndex(R=>R.fieldKey===V);this.datasource.splice(x,1)}),this.datasource=[...this.datasource,...e],this.datasourceSig.set(this.datasource),this.loaddatasourcedropdown();else{let V=e.filter(x=>!o.includes(x.fieldKey));this.datasource=[...this.datasource,...V],this.datasourceSig.set(this.datasource)}})}this.loaddatasourcedropdown()}initData(){U({fields:this.coreService.getCoreDropdown(1056,this.dropdownRequest),supervisor:this.coreService.getCoreDropdown(1035,this.dropdownRequest),dropdownFix:this.masterService.getDropdownFix(this.dropdownFixRequest),dropdown:this.tenantService.getDropdown(this.dropdowntenant)}).subscribe({next:e=>{this.dropdownOptions.userDef=A(e.fields.payload,JSON.stringify),this.dropdownOptions.employeedef=A(e.supervisor.payload,JSON.stringify),this.dropdownOptions.optionsdeftenant=A(e.dropdown.payload,JSON.stringify),this.dropdownOptions.optionsdef=A(e.dropdownFix.payload,JSON.stringify),this.dropdownOptionsSig.set(this.dropdownOptions)},error:e=>{console.error(e)},complete:()=>{}})}async uploadFile(e,i,t,o){let r=e.target.files[0].name;this.fileExtension=this.getFileExtension(r);var h=this.fileExtension;let T=e.target.files[0],V=T.name,x;if(h=="jpg"||h=="png")try{x=await this.coreService.compressAndConvertToAvif(T)}catch{return}else x=T;console.log(this.imageList+"this is imagelist");let R=new File([x],V,{type:x.type});if(this.imagefiless.some(k=>k.index==t)){let k=this.imagefiless.findIndex(N=>N.index==t);this.imagefiless[k].files=x,this.imagefiless[k].isupload=!0}else{let k=new File([x],V,{type:x.type});var mt=this.imagefiless.length==0?0:this.imagefiless.length-1;for(let N=mt;N<=t;N++){var ct=N==t;this.imagefiless.push({index:N,files:k,isupload:ct})}}var ut="#"+i;document.querySelector(ut).setAttribute("value",o.attach.replace("C:\\fakepath\\","")),z.fileimage=A([...this.imagefiless],JSON.stringify);var Wt=z.fileimage;this.imagefilessSig.set(this.imagefiless),o.attach=o.attach.replace("C:\\fakepath\\","")}getFileExtension(e){let i=/\.([0-9a-z]+)(?:[\?#]|$)/i.exec(e);return i&&i[1]?i[1].toLowerCase():"Unknown"}reset(){this.datasource=[],this.datasourceSig.set([])}remove(e){this.datasource.splice(e,1),this.datasourceSig.set(this.datasource)}get wid(){let e={width:"w-full",is100:!1};return this.isMgmt&&(e.is100=this.screenWidth<=1440,e.width=e.is100?"w-full":"w-10"),e}loaddatasourcedropdown(){this.datasource.forEach(e=>{e.dropDownList=[...e.dropDownList||[],...this.dropdownOptions.optionsdef.filter(i=>i.dropdownTypeID==e.dropDownTypeId)]})}static{this.\u0275fac=function(i){return new(i||n)(D(Pe),D(Qe),D(Ze),D(Ee),D(me),D(pe),D(Z),D(nt),D(at),D(re))}}static{this.\u0275cmp=Q({type:n,selectors:[["app-emplo-data-change"]],features:[ne([{provide:he,useClass:ye,deps:[ge]},{provide:we,useValue:kt}])],decls:1,vars:0,consts:[["df",""],["fileInput2",""],["class","flex-auto p-6 sm:p-6 overflow-y-auto",4,"transloco"],[1,"flex-auto","p-6","sm:p-6","overflow-y-auto"],[1,"flex-auto","sm:p-2","w-full","min-w-0","sm:absolute","sm:inset-0","sm:overflow-auto","text-md"],[1,"h-full","pt-3","overflow-auto"],["title","Employee Data Change",3,"submitTap","sub","back"],[1,"flex","gap-2","mt-3"],[3,"formGroup"],["dropdownValue","encryptID",3,"control","icon","type","label","all","multiple","options","useControl"],[1,"flex","gap-2",3,"interaction-disabled"],["dropdownValue","dropdownID",3,"objects","selected","showTag","disabled","defaultTag","multiple","all","notincludetag","resultHierarchy"],["mat-flat-button","","matTooltip","Add",1,"ml-1","sm:px-4","min-w-10",3,"click","disabled","color"],["svgIcon","heroicons_outline:document-plus",1,"mb-2"],["mat-flat-button","","matTooltip","Re
1set",1,"ml-1","sm:px-4","min-w-10",3,"click","disabled","color"],["svgIcon","heroicons_outline:arrow-path",1,"mb-2"],[1,"flex","gap-2"],["appearance","outline",1,"min-w-40","w-full","max-w-50","text-lg","h-12"],[1,"label-font-size"],["matPrefix","","svgIcon","mat_outline:info",1,"mb-2"],["matInput","",1,"input",3,"ngModelChange","disabled","ngModel","type","placeholder"],["matInput","","placeholder","item.description",1,"input",3,"disabled","ngModel","type","mask"],["appearance","outline",1,"min-w-50","w-full","max-w-60","text-lg","h-12"],["matInput","","readonly","",3,"ngModelChange","click","ngModel","min","matDatepicker","placeholder"],["matSuffix","",3,"for"],[1,"dark:flex","min-w-40","w-full","h-10","emplo-data-change-remarks-container"],["placeholder","Remarks","matInput","",1,"area","w-full","text-lg","ml-2","mt-2","h-8",3,"ngModelChange","ngModel"],["appearance","outline",1,"min-w-10","max-w-40","text-lg","h-12",3,"ngClass"],["type","file","accept",".jpeg,.jpg,.png,.doc,.docx,.pdf,.xls,.xlsx",1,"absolute","top-1","z-0","h-full","w-full","cursor-pointer","opacity-0",3,"ngModelChange","change","ngModel"],["readonly","","matInput","","cdkFocusInitial","",1,"sample",3,"id"],["matPrefix","","svgIcon","mat_outline:upload",1,"mb-2",3,"click"],["matSuffix","","mat-button","","color","primary",1,"upb",3,"matTooltip"],["matSuffix","","mat-button","","color","primary",1,"upb","hidden",3,"click"],["mat-flat-button","","matTooltip","Delete",1,"mb-7",3,"color"],[1,"h-12","min-w-40","w-full","max-w-50"],["dropdownValue","dropdownID",3,"selected","icon","value","label","type","all","multiple","options","useControl"],["dropdownValue","dropdownID",3,"selected","isFix","value","icon","all","multiple","useControl","label","options","type"],["matInput","",1,"input",3,"ngModelChange","keypress","ngModel","type","mask","placeholder"],["matInput","","type","number",1,"input",3,"ngModelChange","ngModel","mask","placeholder"],["matInput","","readonly","",1,"dates",3,"ngModelChange","click","ngModel","max","matDatepicker","placeholder"],["matSuffix","","mat-button","","color","primary",1,"upb",3,"click","matTooltip"],["mat-flat-button","","matTooltip","Delete",1,"mb-7",3,"click","color"],["svgIcon","heroicons_outline:trash",1,"mb-2"]],template:function(i,t){i&1&&X(0,Ft,12,15,"div",2)},dependencies:[He,Le,We,$e,Oe,Ye,Be,de,se,qe,Re,Ie,De,Ce,ve,xe,ze,Ke,Ge,je,Je,Te,be,Se,Me,ot,et,tt,it,Ne,rt,dt,lt,st,fe,_e,Fe,Ve],styles:[`.interaction-disabled{pointer-events:none;opacity:.8}.area{resize:none;font-size:16px;overflow-y:scroll}.emplo-data-change-remarks-container{border-style:solid!important;border-color:#bdbbbb!important;border-width:1px!important;border-radius:3px!important}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--invalid .mdc-floating-label{color:unset!important}.mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-floating-label{top:14px!important;left:5px!important}.mdc-text-field--outlined .mat-mdc-form-field-infix{padding-top:5px!important;padding-bottom:6px!important}.input{position:relative;top:2px;font-size:medium}.dates .mdc-text-field--outlined .mat-mdc-form-field-infix{padding-top:7px!important;padding-bottom:6px!important}
2`],encapsulation:2,data:{animation:ke},changeDetection:0})}}return n})();var ki=[{path:"emplo-data-change",redirectTo:"emplo-data-change/",pathMatch:"full"},{path:"emplo-data-change/:id",component:pt}];export{ki as default};

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.