PageSourceSearch

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

js aanyahr.com collected 2026-10-02 00:27:51 UTC 15,653 bytes, 1 lines download raw bytes

1import{a as pt}from"./chunk-KLC6KV4U.js";import{a as ht}from"./chunk-A2RTSZ4L.js";import{b as $}from"./chunk-QJ5A7UV5.js";import"./chunk-5FVW4H53.js";import{a as gt}from"./chunk-KOSEZTHR.js";import{a as Ct}from"./chunk-YZ2SQANW.js";import{a as vt}from"./chunk-UJGIA7M6.js";import{a as Mt}from"./chunk-L2LJ64GP.js";import{a as ct}from"./chunk-QOYYSCB3.js";import{a as U}from"./chunk-73RWI3QX.js";import"./chunk-2OTXUOOB.js";import"./chunk-5EZFF3RR.js";import{b as H}from"./chunk-DJGKYIDP.js";import{a as z}from"./chunk-FM4YUUAU.js";import{a as j,b as N}from"./chunk-EIFDYJRO.js";import{e as Ze,f as et,g as tt,h as it,i as ot,j as nt,k as at,l as rt,m as mt,n as lt,o as st,p as F}from"./chunk-YCZHRI3R.js";import{c as Q}from"./chunk-CS5ZKJNR.js";import{a as W}from"./chunk-FYYIWLQG.js";import{a as dt}from"./chunk-A6VWUFA5.js";import{h as G}from"./chunk-NBR26PIB.js";import{f as A}from"./chunk-SABFTKYI.js";import{a as Ge}from"./chunk-C5Z7LZ75.js";import"./chunk-5JCK5AHP.js";import{a as We,c as Je,d as b}from"./chunk-JGLZKJX4.js";import"./chunk-DDQIHVOV.js";import"./chunk-JO2FI6H5.js";import"./chunk-REZTMBVK.js";import"./chunk-CSLXO2TK.js";import{b as te,c as we,u as Le}from"./chunk-7R5JBG5O.js";import{b as q}from"./chunk-AJAJFYAL.js";import"./chunk-Q4WNEHHE.js";import{a as Oe}from"./chunk-Q5AZYPK7.js";import{a as ke}from"./chunk-ZHEVVJCK.js";import"./chunk-JNYYNB56.js";import{b as B}from"./chunk-JQWJTO3J.js";import{a as Xe,c as Ye,e as D}from"./chunk-Q2762QK7.js";import"./chunk-LLSWYBYW.js";import{e as Ie,h as be,i as Pe}from"./chunk-K7QAXN6Z.js";import{e as P}from"./chunk-XI7OEVLD.js";import{Ca as Ne,Da as x,Fa as Fe,Ha as w,Ja as Te,Ka as I,La as Re,Na as Ke,Oa as E,V as Ee,va as De,ya as Ae}from"./chunk-HJ22JSJV.js";import{h as _e,o as Se,r as xe,y as S}from"./chunk-5ALDQSIV.js";import{a as ft}from"./chunk-DCTCNT7A.js";import{a as ut}from"./chunk-GHMFGHRU.js";import{B as O,C as V,b as Ve,g as qe,h as Be,k as $e,n as je,p as He,q as ze,r as Ue,z as Qe}from"./chunk-DZXPISIV.js";import{$b as pe,Ac as s,Bb as f,Bc as he,Cc as C,Cd as _,Ed as ye,Jc as y,Kc as ge,Pc as Ce,Qc as ve,Rb as ae,Sb as re,Ub as me,Vb as le,Wb as se,X as ne,Xb as c,Yb as r,Zb as o,_b as u,ac as de,bc as ce,cc as h,dc as g,fc as X,gb as l,ic as R,lc as Y,pb as v,pc as ue,qa as T,qc as Z,r as oe,ra as L,rc as ee,vb as M,vc as fe,zd as Me}from"./chunk-TUX6BVKC.js";import{a as k,b as K}from"./chunk-JGDRNPQP.js";var yt=(()=>{class e{constructor(){}ngOnInit(){}static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275cmp=M({type:e,selectors:[["app-admin"]],features:[y([_])],decls:1,vars:0,template:function(i,n){i&1&&u(0,"router-outlet")},dependencies:[I,x,U,w,q,E,H,b,D,F,N,A,$,S,Se],encapsulation:2,changeDetection:0})}}return e})();var _t=(()=>{class e{constructor(){}static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275cmp=M({type:e,selectors:[["example"]],decls:4,vars:0,consts:[[1,"flex","flex-col","flex-auto","min-w-0"],[1,"flex-auto","p-6","sm:p-10"],[1,"h-400","min-h-400","max-h-400","border-2","border-dashed","border-gray-300","rounded-2xl"]],template:function(i,n){i&1&&(pe(0,"div",0)(1,"div",1)(2,"div",2),ce(3,"h1"),de()()())},dependencies:[V,O,x,E,G,A,D,I,w,B,W,P,Q,S,U,q,H,b,F,N,$],encapsulation:2,changeDetection:0})}}return e})();var bt=()=>[10,20,50];function Et(e,a){if(e&1&&(r(0,"mat-option",10),s(1),o()),e&2){let t=a.$implicit;c("value",t.companyName),l(),he(t.companyName)}}function Dt(e,a){if(e&1&&(r(0,"fuse-alert",23),s(1),o()),e&2){let t=Y();c("appearance","outline")("showIcon",!1)("type",t.alert.type)("@shake",t.alert.type==="error"),l(),C(" ",t.alert.message," ")}}function At(e,a){e&1&&u(0,"th",41)}function Nt(e,a){if(e&1){let t=X();r(0,"td",42)(1,"mat-checkbox",43),R("change",function(){let n=T(t).$implicit,m=Y();return L(m.handleSelection(n))}),o()()}if(e&2){let t=a.$implicit;l(),c("checked",t.select)}}function Ft(e,a){e&1&&(r(0,"th",41),s(1," Employee Code "),o())}function Tt(e,a){if(e&1&&(r(0,"td",42),s(1),o()),e&2){let t=a.$implicit;l(),C(" ",t.employeeCode," ")}}function Lt(e,a){e&1&&(r(0,"th",41),s(1," Employee Name "),o())}function Rt(e,a){if(e&1&&(r(0,"td",42),s(1),o()),e&2){let t=a.$implicit;l(),C(" ",t.displayName," ")}}function kt(e,a){e&1&&(r(0,"th",41),s(1,"Company"),o())}function Pt(e,a){if(e&1&&(r(0,"td",42),s(1),o()),e&2){let t=a.$implicit;l(),C(" ",t.subCompanyName," ")}}function Ot(e,a){e&1&&(r(0,"th",41),s(1,"Branch"),o())}function Vt(e,a){if(e&1&&(r(0,"td",42),s(1),o()),e&2){let t=a.$implicit;l(),C(" ",t.branchName," ")}}function qt(e,a){e&1&&(r(0,"th",41),s(1,"Category"),o())}function Bt(e,a){if(e&1&&(r(0,"td",42),s(1),o()),e&2){let t=a.$implicit;l(),C(" ",t.categoryName," ")}}function $t(e,a){e&1&&(r(0,"th",41),s(1,"Access"),o())}function jt(e,a){if(e&1&&(r(0,"td",42),s(1),o()),e&2){let t=a.$implicit;l(),C(" ",t.accessName," ")}}function Ht(e,a){e&1&&(r(0,"th",41),s(1," Department "),o())}function zt(e,a){if(e&1&&(r(0,"td",42),s(1),o()),e&2){let t=a.$implicit;l(),C(" ",t.department," ")}}function Ut(e,a){e&1&&(r(0,"th",41),s(1,"Status"),o())}function Qt(e,a){if(e&1&&(r(0,"td",42),s(1),o()),e&2){let t=a.$implicit;l(),C(" ",t.employeeStatus," ")}}function Gt(e,a){e&1&&u(0,"tr",44)}function Wt(e,a){e&1&&u(0,"tr",45)}function Jt(e,a){e&1&&(r(0,"tr",46)(1,"td",47),s(2," No data matching the filter "),o()())}var St=(()=>{class e{constructor(t,i,n,m,d,p,J,wt){this.fb=t,this.service=i,this.userService=n,this.message=m,this.deviceInfoService=d,this.authService=p,this.http=J,this.router=wt,this.myControl=new $e(""),this.options=[],this.defaultOptions=[],this.request=new z,this.totalRows=0,this.selected={employeeId:0,displayName:""},this.showAlert=!1,this.alert={type:"success",message:""},this.url=Re.reports+"api/site/master/token",this.displayedColumns=["select","employeeCode","displayName","subCompanyName","branchName","categoryName","accessName","department","employeeStatus"],this.dataSource=[],this.successMessage=k({},we)}ngOnInit(){this.searchForm=this.fb.group({employeeCode:"",firstName:"",lastName:""}),this.service.getAllActiveClients().subscribe({next:t=>{this.options=t.payload.map(i=>({companyId:i.companyId,companyName:i.companyName,seriesCode:i.seriesCode})),this.defaultOptions=this.options},error:t=>{console.error(t)},complete:()=>{this.filteredOptions=this.myControl.valueChanges.pipe(ne(""),oe(t=>this._filter(t||"")))}})}_filter(t){let i=t.toLowerCase();this.options=this.defaultOptions,this.dataSource=[],this.selected={employeeId:0,displayName:""},this.request=new z;var n=this.options.filter(m=>m.companyName.toLowerCase().includes(i));return n.length<=0&&(this.myControl.setValue(""),n=this.defaultOptions),n}handleFilter(t){this.searchForm.disable(),this.showAlert=!1;let i=this.defaultOptions.filter(m=>m.companyName==this.myControl.value)[0];t&&(this.selected={employeeId:0,displayName:""},this.request=new z),this.handleFieldFilter();let n={selected:this.selected.employeeId,series:i.seriesCode,table:this.request};this.userService.getClientEmployeeList(n).subscribe({next:m=>{this.dataSource=m.payload.data,this.totalRows=m.payload.totalRows},error:m=>{console.error(m),this.searchForm.enable()},complete:()=>{this.searchForm.enable()}})}handleFieldFilter(){this.searchForm.value.employeeCode!=""&&this.request.SearchColumn.push({key:"EmployeeCode",value:this.searchForm.value.employeeCode,type:0}),this.searchForm.value.firstName!=""&&this.request.SearchColumn.push({key:"FirstName",value:this.searchForm.value.firstName,type:0}),this.searchForm.value.lastName!=""&&this.request.SearchColumn.push({key:"LastName",value:this.searchForm.value.lastName,type:0})}handleSelection(t){let i=this.dataSource.map(d=>K(k({},d),{select:!1}));this.selected={employeeId:t.employeeId,displayName:t.displayName};let n=i.filter(d=>d.employeeId==this.selected.employeeId)[0];this.request.SearchColumn.push({key:"employeeId",value:"",type:t.Type});let m=this.dataSource.map(d=>K(k({},d),{select:d.employeeId==n.employeeId}));this.dataSource=m}handlePageEvent(t){this.request.Start=t.pageIndex,this.request.Length=t.pageSize,this.handleFilter(!1)}handleSortEvent(t){this.paginator.pageIndex=0,this.request.Start=0,this.request.Order=t.active,this.request.OrderBy=t.direction,this.handleFilter(!1)}handleSignIn(){te.message="Are you sure you want to login as "+this.selected.displayName+"?",this.message.open(te).afterClosed().subscribe(i=>{if(i=="confirmed"){var n={companyId:this.defaultOptions.filter(d=>d.companyName==this.myControl.value)[0].companyId,device:this.deviceInfoService.getDeviceInfo().os,browser:this.deviceInfoService.getDeviceInfo().browser,ip1:"",ip2:"",user:sessionStorage.getItem("u"),employeeId:this.selected.employeeId};
1this.userService.authenticateLoginAs(n).subscribe({next:d=>{if(d.statusCode==200){let p=d.payload;if(p.id===null)this.alert={type:"error",message:p.type},this.showAlert=!0;else if(this.authService.saveToken(p,!1),this.authService.reportToken(),p.routing!=="/company-setup")if(p.is_pw_changed)this.router.navigate([p.routing]),p.remind_password&&(this.successMessage.title="Warning!",this.successMessage.icon={show:!0,name:"heroicons_solid:exclamation",color:"warn"},this.successMessage.message=p.remind_message,this.message.open(this.successMessage));else if(p.is_pw_expires)this.successMessage.title="Warning!",this.successMessage.icon={show:!0,name:"heroicons_solid:exclamation",color:"warn"},this.successMessage.message=p.remind_message,this.message.open(this.successMessage),this.router.navigate([p.routing="/update-password"]);else if(p.is_pw_changed==!1)this.router.navigate([p.routing="/update-password"]);else{let J=p.routing+"/"+p.id;this.router.navigate([J])}else this.router.navigate([p.routing])}else this.alert={type:"error",message:"Can't connect on our system.."},this.showAlert=!0},error:d=>{console.log(d.error),this.alert={type:"error",message:"Can't connect on our system.."},this.showAlert=!0}})}})}static{this.\u0275fac=function(i){return new(i||e)(v(Qe),v(dt),v(Ge),v(Le),v(ct),v(ke),v(_e),v(xe))}}static{this.\u0275cmp=M({type:e,selectors:[["app-administrative-login"]],viewQuery:function(i,n){if(i&1&&ue(j,5)(pt,7),i&2){let m;Z(m=ee())&&(n.paginator=m.first),Z(m=ee())&&(n.sort=m.first)}},features:[y([_])],decls:73,vars:19,consts:[["auto","matAutocomplete"],["cdkScrollable","",1,"absolute","inset-0","flex","flex-col","min-w-0","overflow-y-auto"],[1,"flex","flex-col","sm:flex-row","flex-0","sm:items-center","sm:justify-between","p-6","sm:pt-12","sm:pb-10","sm:px-10"],[1,"flex-1","min-w-0"],[1,"mt-2"],[1,"text-3xl","md:text-4xl","font-extrabold","tracking-tight","leading-7","sm:leading-10","truncate"],[1,"flex","shrink-0","items-center","mt-6","sm:mt-0","sm:ml-4"],["appearance","outline",1,"fuse-mat-dense","fuse-mat-no-subscript","fuse-mat-rounded","min-w-64"],["type","text","placeholder","Select Client","aria-label","Number","matInput","",1,"",3,"formControl","matAutocomplete"],["autoActiveFirstOption",""],[3,"value"],[1,"flex-auto","-mt-16","p-6","sm:p-10","rounded-t-2xl"],[1,"flex","flex-wrap"],[3,"formGroup"],["appearance","outline",1,"w-50","text-md","h-13","mr-3"],[1,"label-font-size"],["matSuffix","",1,"uploadbutton","icon-size-5"],["id","employeeCode","matInput","",1,"input",3,"formControlName"],["id","firstName","matInput","",1,"input",3,"formControlName"],["id","lastName","matInput","",1,"input",3,"formControlName"],["mat-flat-button","","extended","","color","primary",1,"text-md","h-13","mr-3",3,"click","matTooltip"],["matSuffix","","svgIcon","mat_outline:search",1,"mb-2"],["matSuffix","","svgIcon","mat_outline:login",1,"mb-2"],[3,"appearance","showIcon","type"],[1,"flex","flex-col","flex-auto","sm:mb-18","overflow-hidden","sm:overflow-y-auto"],["mat-table","",3,"dataSource"],["matColumnDef","select"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","employeeCode"],["matColumnDef","displayName"],["matColumnDef","subCompanyName"],["matColumnDef","branchName"],["matColumnDef","categoryName"],["matColumnDef","accessName"],["matColumnDef","department"],["matColumnDef","employeeStatus"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["class","mat-row",4,"matNoDataRow"],["showFirstLastButtons","",3,"page","length","pageSize","pageIndex","pageSizeOptions"],["mat-header-cell",""],["mat-cell",""],[3,"change","checked"],["mat-header-row",""],["mat-row",""],[1,"mat-row"],["colspan","9",1,"mat-cell"]],template:function(i,n){if(i&1){let m=X();r(0,"div",1)(1,"div",2)(2,"div",3)(3,"div",4)(4,"h2",5),s(5," Administrative Login "),o()()(),r(6,"div",6)(7,"mat-form-field",7),u(8,"input",8),r(9,"mat-autocomplete",9,0),le(11,Et,2,2,"mat-option",10,me),Ce(13,"async"),o()()()(),r(14,"div",11)(15,"mat-card")(16,"mat-card-content")(17,"div",12)(18,"form",13)(19,"mat-form-field",14)(20,"mat-label",15),s(21,"Employee Co
1de"),o(),u(22,"mat-icon",16)(23,"input",17),o(),r(24,"mat-form-field",14)(25,"mat-label",15),s(26,"First Name"),o(),u(27,"mat-icon",16)(28,"input",18),o(),r(29,"mat-form-field",14)(30,"mat-label",15),s(31,"Last Name"),o(),u(32,"mat-icon",16)(33,"input",19),o()(),r(34,"button",20),R("click",function(){return T(m),L(n.handleFilter(!0))}),u(35,"mat-icon",21),o(),r(36,"button",20),R("click",function(){return T(m),L(n.handleSignIn())}),u(37,"mat-icon",22),o(),ae(38,Dt,2,5,"fuse-alert",23),o(),r(39,"div",24),u(40,"hr"),r(41,"table",25),h(42,26),f(43,At,1,0,"th",27)(44,Nt,2,1,"td",28),g(),h(45,29),f(46,Ft,2,0,"th",27)(47,Tt,2,1,"td",28),g(),h(48,30),f(49,Lt,2,0,"th",27)(50,Rt,2,1,"td",28),g(),h(51,31),f(52,kt,2,0,"th",27)(53,Pt,2,1,"td",28),g(),h(54,32),f(55,Ot,2,0,"th",27)(56,Vt,2,1,"td",28),g(),h(57,33),f(58,qt,2,0,"th",27)(59,Bt,2,1,"td",28),g(),h(60,34),f(61,$t,2,0,"th",27)(62,jt,2,1,"td",28),g(),h(63,35),f(64,Ht,2,0,"th",27)(65,zt,2,1,"td",28),g(),h(66,36),f(67,Ut,2,0,"th",27)(68,Qt,2,1,"td",28),g(),f(69,Gt,1,0,"tr",37)(70,Wt,1,0,"tr",38)(71,Jt,3,0,"tr",39),o(),r(72,"mat-paginator",40),R("page",function(p){return T(m),L(n.handlePageEvent(p))}),o()()()()()()}if(i&2){let m=fe(10);l(8),c("formControl",n.myControl)("matAutocomplete",m),l(3),se(ve(13,16,n.filteredOptions)),l(7),c("formGroup",n.searchForm),l(5),c("formControlName","employeeCode"),l(5),c("formControlName","firstName"),l(5),c("formControlName","lastName"),l(),c("matTooltip","Search"),l(2),c("matTooltip","Login"),l(2),re(n.showAlert?38:-1),l(3),c("dataSource",n.dataSource),l(28),c("matHeaderRowDef",n.displayedColumns),l(),c("matRowDefColumns",n.displayedColumns),l(2),c("length",n.totalRows)("pageSize",n.request.Length)("pageIndex",n.request.Start)("pageSizeOptions",ge(18,bt))}},dependencies:[ye,V,je,Ve,qe,Be,He,Ue,ze,O,x,Ne,De,Ae,E,Ke,G,Ee,A,Ie,D,Xe,Ye,I,Te,w,Fe,B,W,P,Q,S,b,We,Je,F,Ze,tt,at,it,et,rt,ot,nt,mt,lt,st,N,j,Oe,Pe,be,Me],encapsulation:2,changeDetection:0})}}return e})();var xt=(()=>{class e{constructor(){}ngOnInit(){}static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275cmp=M({type:e,selectors:[["app-user-profile"]],features:[y([_])],decls:1,vars:1,consts:[[3,"message"]],template:function(i,n){i&1&&u(0,"app-maintenance",0),i&2&&c("message","Internal Root User Profiles")},dependencies:[ut],encapsulation:2,changeDetection:0})}}return e})();var Oo=[{path:"",component:yt,children:[{path:"example",component:_t},{path:"administrative-login",component:St},{path:"company-setup",component:ht},{path:"dropdown-setup",component:Ct},{path:"biometrics",component:ft},{path:"modules",component:vt},{path:"user-profile",redirectTo:"user-profile/",pathMatch:"full"},{path:"user-profile/:id",component:xt},{path:"database-migration",component:gt},{path:"root-users",component:Mt}]}];export{Oo 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.