-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path9010.c1f10bdaa4f6a56e5d35.js
1 lines (1 loc) · 93.9 KB
/
9010.c1f10bdaa4f6a56e5d35.js
1
"use strict";(self.webpackChunkchekt_web_wcs=self.webpackChunkchekt_web_wcs||[]).push([[9010],{39014:(M,v,a)=>{a.d(v,{a:()=>U});var c=a(42741),x=a(98753),p=a(16274);const l=["sortable-column",""];function h(d,f){1&d&&(c.O4$(),c.TgZ(0,"svg",2),c.TgZ(1,"g",3),c.TgZ(2,"g",4),c._UZ(3,"polygon",5),c.qZA(),c.qZA(),c.qZA())}function m(d,f){1&d&&(c.O4$(),c.TgZ(0,"svg",2),c.TgZ(1,"g"),c.TgZ(2,"g",6),c._UZ(3,"polygon",7),c.qZA(),c.TgZ(4,"g",6),c._UZ(5,"polygon",5),c.qZA(),c.qZA(),c.qZA())}function P(d,f){1&d&&(c.O4$(),c.TgZ(0,"svg",2),c.TgZ(1,"g",3),c.TgZ(2,"g",4),c._UZ(3,"polygon",7),c.qZA(),c.qZA(),c.qZA())}function O(d,f){if(1&d&&(c.YNc(0,h,4,0,"svg",1),c.YNc(1,m,6,0,"svg",1),c.YNc(2,P,4,0,"svg",1)),2&d){const g=c.oxw();c.Q6J("ngIf","asc"===g.sortDirection),c.xp6(1),c.Q6J("ngIf",""===g.sortDirection),c.xp6(1),c.Q6J("ngIf","desc"===g.sortDirection)}}function Z(d,f){1&d&&(c.O4$(),c.TgZ(0,"svg",2),c.TgZ(1,"g",3),c.TgZ(2,"g",4),c._UZ(3,"polygon",5),c.qZA(),c.qZA(),c.qZA())}function C(d,f){1&d&&(c.O4$(),c.TgZ(0,"svg",2),c.TgZ(1,"g"),c.TgZ(2,"g",6),c._UZ(3,"polygon",7),c.qZA(),c.TgZ(4,"g",6),c._UZ(5,"polygon",5),c.qZA(),c.qZA(),c.qZA())}function e(d,f){1&d&&(c.O4$(),c.TgZ(0,"svg",2),c.TgZ(1,"g",3),c.TgZ(2,"g",4),c._UZ(3,"polygon",7),c.qZA(),c.qZA(),c.qZA())}function w(d,f){if(1&d&&(c.YNc(0,Z,4,0,"svg",1),c.YNc(1,C,6,0,"svg",1),c.YNc(2,e,4,0,"svg",1)),2&d){const g=c.oxw();c.Q6J("ngIf","asc"===g.sortDirection),c.xp6(1),c.Q6J("ngIf",""===g.sortDirection),c.xp6(1),c.Q6J("ngIf","desc"===g.sortDirection)}}const T=["*"];let U=(()=>{class d{constructor(g){this.sortService=g,this.sortDirection="",this.iconPosition="right"}sort(){this.sortDirection="asc"===this.sortDirection?"desc":"asc",this.sortService.columnSorted({sortColumn:this.columnName,sortDirection:this.sortDirection})}ngOnInit(){this.columnSortedSubscription=this.sortService.columnSorted$.subscribe(g=>{this.columnName!=g.sortColumn&&(this.sortDirection="")})}ngOnDestroy(){this.columnSortedSubscription.unsubscribe()}}return d.\u0275fac=function(g){return new(g||d)(c.Y36(x.K))},d.\u0275cmp=c.Xpm({type:d,selectors:[["","sortable-column",""]],hostBindings:function(g,b){1&g&&c.NdJ("click",function(){return b.sort()})},inputs:{columnName:["sortable-column","columnName"],sortDirection:["sort-direction","sortDirection"],iconPosition:["sort-icon","iconPosition"]},attrs:l,ngContentSelectors:T,decls:3,vars:2,consts:[[3,"ngIf"],["width","12","height","8px","viewBox","0 0 200 200",4,"ngIf"],["width","12","height","8px","viewBox","0 0 200 200"],["fill","#5A6574"],["id","arrow-drop-down"],["points","0,120 100,200 200,120"],["id","arrow-drop-down","fill","#5A6574"],["points","0,80 100,0 200,80"]],template:function(g,b){1&g&&(c.F$t(),c.YNc(0,O,3,3,"ng-template",0),c.Hsn(1),c.YNc(2,w,3,3,"ng-template",0)),2&g&&(c.Q6J("ngIf","left"===b.iconPosition&&b.columnName),c.xp6(2),c.Q6J("ngIf","right"===b.iconPosition&&b.columnName))},directives:[p.O5],encapsulation:2}),d})()},28522:(M,v,a)=>{a.d(v,{Q:()=>p});var c=a(42741),x=a(98753);let p=(()=>{class l{constructor(m){this.sortService=m,this.sorted=new c.vpe}ngOnInit(){this.columnSortedSubscription=this.sortService.columnSorted$.subscribe(m=>{this.sorted.emit(m)})}ngOnDestroy(){this.columnSortedSubscription.unsubscribe()}}return l.\u0275fac=function(m){return new(m||l)(c.Y36(x.K))},l.\u0275dir=c.lG2({type:l,selectors:[["","sortable-table",""]],outputs:{sorted:"sorted"}}),l})()},70334:(M,v,a)=>{a.d(v,{T:()=>c});class c{constructor(){this.page_size=25,this.page_index=0,this.page_list=[],this.data_size=0,this.page_offset=0,this.cur_list_size=0}setPageSize(p){this.page_size=p}paging(p,l){this.page_index=l,this.page_offset=5*parseInt(l/5+"",10),this.cur_list_size=p.length-this.page_offset*this.page_size;let h=parseInt(this.cur_list_size/this.page_size+"",10);h>4&&(h=4),this.cur_list_size%this.page_size!=0&&h++,this.page_list=new Array(h);for(let m=0;m<h;m++)this.page_list[m]=this.page_offset+m+1;return this.data_size=p.length,p.slice(this.page_index*this.page_size,this.page_index*this.page_size+this.page_size)}prev_page(){return this.page_offset<=0?this.page_index:this.page_offset-5}next_page(){return this.cur_list_size<5*this.page_size?this.page_index:this.page_offset+5}check_curpage(p){return this.page_index===p+this.page_offset}}},79010:(M,v,a)=>{a.r(v),a.d(v,{UsersModule:()=>mt});var c=a(16274),x=a(93324),p=a(29535),l=a(61855),h=a(72898),m=a(70334),P=a(76052),O=a.n(P),Z=a(46243),C=a.n(Z),e=a(42741),w=a(7611),T=a(83522),U=a(77710),d=a(30722),f=a(85481),g=a(56880),b=a(35460),y=a(17611),k=a(21929),I=a(28522),D=a(39014),q=a(70846);const N=["searcher"],J=["searchInput"],S=["permSelect"],z=["divisionSelect"];function F(n,s){1&n&&(e.TgZ(0,"div",30),e.O4$(),e.TgZ(1,"svg",31),e._UZ(2,"circle",32),e.qZA(),e.qZA())}function Q(n,s){if(1&n){const t=e.EpF();e.TgZ(0,"div",33),e.NdJ("click",function(){return e.CHM(t),e.oxw(2).openUserCreateModal()}),e.TgZ(1,"div",34),e._uU(2,"Add"),e.qZA(),e.qZA()}}function L(n,s){1&n&&e._UZ(0,"div",38)}function Y(n,s){if(1&n){const t=e.EpF();e.TgZ(0,"div",35),e.NdJ("click",function(){const r=e.CHM(t).$implicit;return e.oxw(2).moveToTab(r)}),e.TgZ(1,"div",36),e._uU(2),e.qZA(),e.YNc(3,L,1,0,"div",37),e.qZA()}if(2&n){const t=s.$implicit,i=e.oxw(2);e.ekj("btn-selected",i.tab.name==t.name),e.xp6(2),e.Oqu(t.name),e.xp6(1),e.Q6J("ngIf",i.tab.name==t.name)}}function E(n,s){if(1&n){const t=e.EpF();e.TgZ(0,"div",26),e.NdJ("click",function(o){const _=e.CHM(t).$implicit,u=e.oxw(2);return o.stopPropagation(),u.selectSecurity(_)}),e._uU(1),e.qZA()}if(2&n){const t=s.$implicit;e.xp6(1),e.Oqu(t.name)}}function H(n,s){if(1&n){const t=e.EpF();e.TgZ(0,"div",26),e.NdJ("click",function(o){const _=e.CHM(t).$implicit,u=e.oxw(2);return o.stopPropagation(),u.selectPermission(_)}),e._uU(1),e.qZA()}if(2&n){const t=s.$implicit;e.xp6(1),e.Oqu(t.name)}}function R(n,s){1&n&&e._UZ(0,"col",45)}function $(n,s){1&n&&(e.TgZ(0,"th",48),e._uU(1,"Division"),e.qZA())}function j(n,s){1&n&&e._UZ(0,"col",45)}function G(n,s){if(1&n){const t=e.EpF();e.TgZ(0,"img",66),e.NdJ("error",function(){return e.CHM(t),e.oxw().$implicit.provider_picture=null}),e.qZA()}if(2&n){const t=e.oxw().$implicit;e.Q6J("src",t.provider_picture,e.LSH)}}function B(n,s){if(1&n&&(e.TgZ(0,"div",67),e.TgZ(1,"div",68),e._uU(2),e.qZA(),e.qZA()),2&n){const t=e.oxw().$implicit;e.xp6(2),e.Oqu("ip"!==t.provider?t.email.slice(0,1):t.firstname?t.firstname.slice(0,2):"IP")}}function W(n,s){if(1&n&&(e.TgZ(0,"div",69),e._uU(1),e.qZA()),2&n){const t=e.oxw().$implicit;e.xp6(1),e.Oqu(t.email)}}function K(n,s){if(1&n&&(e.TgZ(0,"div",69),e._uU(1),e.qZA()),2&n){const t=e.oxw().$implicit;e.xp6(1),e.hij("IP Address: ",t.ip,"")}}function X(n,s){if(1&n&&(e.TgZ(0,"div",72),e.TgZ(1,"div"),e._uU(2),e.qZA(),e.qZA()),2&n){const t=s.$implicit;e.xp6(2),e.Oqu(null==t?null:t.name)}}function V(n,s){if(1&n&&(e.TgZ(0,"td"),e.TgZ(1,"div",70),e.YNc(2,X,3,1,"div",71),e.qZA(),e.qZA()),2&n){const t=e.oxw().$implicit;e.xp6(2),e.Q6J("ngForOf",null==t?null:t.divisions)}}function ee(n,s){if(1&n&&(e.TgZ(0,"div"),e.TgZ(1,"span"),e._uU(2,"Joined at"),e.qZA(),e._UZ(3,"br"),e.TgZ(4,"b"),e._uU(5),e.ALo(6,"date"),e.qZA(),e.qZA()),2&n){const t=e.oxw().$implicit;e.xp6(5),e.Oqu(e.xi3(6,1,t.invitation_time,"MM/dd/yy HH:mm:ss"))}}function te(n,s){if(1&n&&(e.TgZ(0,"div"),e.TgZ(1,"span",73),e._uU(2,"invitation sent at"),e.qZA(),e._UZ(3,"br"),e.TgZ(4,"b"),e._uU(5),e.ALo(6,"date"),e.qZA(),e.qZA()),2&n){const t=e.oxw().$implicit;e.xp6(5),e.Oqu(e.xi3(6,1,t.invitation_time,"MM/dd/yy HH:mm:ss"))}}function ne(n,s){if(1&n&&(e.TgZ(0,"div"),e.TgZ(1,"span"),e._uU(2,"Created at"),e.qZA(),e._UZ(3,"br"),e.TgZ(4,"b"),e._uU(5),e.ALo(6,"date"),e.qZA(),e.qZA()),2&n){const t=e.oxw().$implicit;e.xp6(5),e.Oqu(e.xi3(6,1,t.created,"MM/dd/yy HH:mm:ss"))}}function ie(n,s){if(1&n){const t=e.EpF();e.TgZ(0,"div",80),e.NdJ("click",function(o){e.CHM(t);const r=e.oxw(2).$implicit,_=e.oxw(4);return o.stopPropagation(),_.openResetPasswordDialog(r)}),e.TgZ(1,"div",34),e._uU(2,"Reset Password"),e.qZA(),e.qZA()}}function oe(n,s){if(1&n){const t=e.EpF();e.TgZ(0,"div",80),e.NdJ("click",function(o){e.CHM(t);const r=e.oxw(2).$implicit,_=e.oxw(4);return o.stopPropagation(),_.deleteUserDialog(r)}),e.TgZ(1,"div",34),e._uU(2,"Delete"),e.qZA(),e.qZA()}}function se(n,s){if(1&n){const t=e.EpF();e.TgZ(0,"div",81),e.NdJ("click",function(o){e.CHM(t);const r=e.oxw(2).$implicit,_=e.oxw(4);return o.stopPropagation(),_.inviteUser(r)}),e.TgZ(1,"div",34),e._uU(2,"Send Invite Mail"),e.qZA(),e.qZA()}}function re(n,s){if(1&n&&(e.TgZ(0,"div",74),e.TgZ(1,"i",75),e._uU(2,"more_horiz"),e.qZA(),e.TgZ(3,"div",76),e.TgZ(4,"div",77),e.YNc(5,ie,3,0,"div",78),e.YNc(6,oe,3,0,"div",78),e.YNc(7,se,3,0,"div",79),e.qZA(),e.qZA(),e.qZA()),2&n){const t=e.oxw().$implicit,i=e.oxw(4);e.xp6(5),e.Q6J("ngIf","ip"!==t.provider&&i.hasUserUpdatePerm),e.xp6(1),e.Q6J("ngIf",i.hasUserDeletePerm),e.xp6(1),e.Q6J("ngIf",2!=t.invitation_status&&"ip"!==t.provider&&i.hasUserUpdatePerm)}}function ce(n,s){if(1&n){const t=e.EpF();e.TgZ(0,"tr",61),e.NdJ("click",function(){const r=e.CHM(t).$implicit;return e.oxw(4).gotoDetail(r)}),e.TgZ(1,"td"),e.YNc(2,G,1,1,"img",62),e.YNc(3,B,3,1,"div",63),e.qZA(),e.TgZ(4,"td"),e.TgZ(5,"div"),e._uU(6),e.qZA(),e.YNc(7,W,2,1,"div",64),e.YNc(8,K,2,1,"div",64),e.qZA(),e.YNc(9,V,3,1,"td",54),e.TgZ(10,"td"),e._uU(11),e.qZA(),e.TgZ(12,"td"),e._uU(13),e.qZA(),e.TgZ(14,"td"),e.YNc(15,ee,7,4,"div",54),e.YNc(16,te,7,4,"div",54),e.YNc(17,ne,7,4,"div",54),e.qZA(),e.TgZ(18,"td"),e.YNc(19,re,8,3,"div",65),e.qZA(),e.qZA()}if(2&n){const t=s.$implicit,i=e.oxw(4);e.xp6(2),e.Q6J("ngIf",t.provider_picture),e.xp6(1),e.Q6J("ngIf",!t.provider_picture),e.xp6(3),e.Oqu("ip"!==t.provider?i.commonService.getFullName(t):t.firstname),e.xp6(1),e.Q6J("ngIf","ip"!==t.provider),e.xp6(1),e.Q6J("ngIf","ip"===t.provider),e.xp6(1),e.Q6J("ngIf",i.hasPremiumOrResellerPlan),e.xp6(1),e.ekj("division-prem",t.is_division_user),e.xp6(1),e.Oqu(i.getRole(t.role_id,t.is_division_user)),e.xp6(2),e.Oqu(i.getAccess(t.access_id)),e.xp6(1),e.ekj("no-data",null===t.invitation_time&&"ip"!==t.provider),e.xp6(1),e.Q6J("ngIf",2===t.invitation_status),e.xp6(1),e.Q6J("ngIf",2!==t.invitation_status&&"ip"!==t.provider),e.xp6(1),e.Q6J("ngIf","ip"===t.provider),e.xp6(2),e.Q6J("ngIf",i.hasUserUpdatePerm||i.hasUserDeletePerm)}}function _e(n,s){if(1&n&&(e.ynx(0),e.YNc(1,ce,20,16,"tr",60),e.BQk()),2&n){const t=e.oxw(3);e.xp6(1),e.Q6J("ngForOf",t.filtered_users)}}function ae(n,s){1&n&&(e.ynx(0),e.TgZ(1,"tr"),e.TgZ(2,"td",82),e.TgZ(3,"span"),e._uU(4,"No Permission for User List"),e.qZA(),e.qZA(),e.qZA(),e.BQk())}function de(n,s){if(1&n){const t=e.EpF();e.TgZ(0,"a",57),e.NdJ("click",function(){const r=e.CHM(t).index,_=e.oxw(3);return _.filter(r+_.page.page_offset)}),e._uU(1),e.qZA()}if(2&n){const t=s.index,i=e.oxw(3);e.ekj("active",i.page.check_curpage(t)),e.xp6(1),e.Oqu(i.page.page_list[t])}}function le(n,s){if(1&n&&(e.TgZ(0,"div",83),e._uU(1),e.qZA()),2&n){const t=e.oxw(3);e.xp6(1),e.AsE("",t.page.page_index*t.page.page_size+t.filtered_users.length," / ",t.page.data_size," Users")}}function ge(n,s){if(1&n){const t=e.EpF();e.TgZ(0,"div",39),e.TgZ(1,"table",40),e.NdJ("sorted",function(o){return e.CHM(t),e.oxw(2).onSorted(o)}),e.TgZ(2,"colgroup"),e._UZ(3,"col",41),e._UZ(4,"col",42),e.YNc(5,R,1,0,"col",43),e._UZ(6,"col",44),e._UZ(7,"col",45),e._UZ(8,"col",46),e._UZ(9,"col",47),e.qZA(),e.TgZ(10,"thead"),e.TgZ(11,"tr"),e.TgZ(12,"th"),e._uU(13,"\xa0"),e.qZA(),e.TgZ(14,"th",48),e._uU(15,"Name"),e.qZA(),e.YNc(16,$,2,0,"th",49),e.TgZ(17,"th",50),e._uU(18,"Permission Grp."),e.qZA(),e.TgZ(19,"th",51),e._uU(20,"Security Grp."),e.qZA(),e.TgZ(21,"th",52),e._uU(22,"Status"),e.qZA(),e.TgZ(23,"th"),e._uU(24,"\xa0"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(25,"div",53),e.TgZ(26,"table"),e.TgZ(27,"colgroup"),e._UZ(28,"col",41),e._UZ(29,"col",42),e.YNc(30,j,1,0,"col",43),e._UZ(31,"col",44),e._UZ(32,"col",45),e._UZ(33,"col",46),e._UZ(34,"col",47),e.qZA(),e.TgZ(35,"tbody"),e.YNc(36,_e,2,1,"ng-container",54),e.YNc(37,ae,5,0,"ng-container",54),e.qZA(),e.qZA(),e.qZA(),e.TgZ(38,"div",55),e.TgZ(39,"div",56),e.TgZ(40,"a",57),e.NdJ("click",function(){e.CHM(t);const o=e.oxw(2);return o.filter(o.page.prev_page())}),e._uU(41,"\xab"),e.qZA(),e.YNc(42,de,2,3,"a",58),e.TgZ(43,"a",57),e.NdJ("click",function(){e.CHM(t);const o=e.oxw(2);return o.filter(o.page.next_page())}),e._uU(44,"\xbb"),e.qZA(),e.qZA(),e.YNc(45,le,2,2,"div",59),e.qZA(),e.qZA()}if(2&n){const t=e.oxw(2);e.xp6(5),e.Q6J("ngIf",t.hasPremiumOrResellerPlan),e.xp6(11),e.Q6J("ngIf",t.hasPremiumOrResellerPlan),e.xp6(14),e.Q6J("ngIf",t.hasPremiumOrResellerPlan),e.xp6(6),e.Q6J("ngIf",t.hasUserGetPerm),e.xp6(1),e.Q6J("ngIf",!t.hasUserGetPerm),e.xp6(5),e.Q6J("ngForOf",t.page.page_list),e.xp6(3),e.Q6J("ngIf",t.users)}}function pe(n,s){if(1&n){const t=e.EpF();e.TgZ(0,"img",66),e.NdJ("error",function(){return e.CHM(t),e.oxw().$implicit.provider_picture=null}),e.qZA()}if(2&n){const t=e.oxw().$implicit;e.Q6J("src",t.provider_picture,e.LSH)}}function me(n,s){if(1&n&&(e.TgZ(0,"div",67),e.TgZ(1,"div",90),e._uU(2),e.qZA(),e.qZA()),2&n){const t=e.oxw().$implicit;e.xp6(2),e.Oqu("ip"!==t.provider?t.email.slice(0,1):t.firstname?t.firstname.slice(0,2):"IP")}}function ue(n,s){if(1&n&&(e.TgZ(0,"div"),e.TgZ(1,"span"),e._uU(2,"Joined at"),e.qZA(),e._UZ(3,"br"),e.TgZ(4,"b"),e._uU(5),e.ALo(6,"date"),e.qZA(),e.qZA()),2&n){const t=e.oxw().$implicit;e.xp6(5),e.Oqu(e.xi3(6,1,t.invitation_time,"MM/dd/yy HH:mm:ss"))}}function he(n,s){if(1&n&&(e.TgZ(0,"div"),e.TgZ(1,"span",73),e._uU(2,"invitation sent at"),e.qZA(),e._UZ(3,"br"),e.TgZ(4,"b"),e._uU(5),e.ALo(6,"date"),e.qZA(),e.qZA()),2&n){const t=e.oxw().$implicit;e.xp6(5),e.Oqu(e.xi3(6,1,t.invitation_time,"MM/dd/yy HH:mm:ss"))}}function fe(n,s){if(1&n&&(e.TgZ(0,"div"),e.TgZ(1,"span"),e._uU(2,"Created at"),e.qZA(),e._UZ(3,"br"),e.TgZ(4,"b"),e._uU(5),e.ALo(6,"date"),e.qZA(),e.qZA()),2&n){const t=e.oxw().$implicit;e.xp6(5),e.Oqu(e.xi3(6,1,t.created,"MM/dd/yy HH:mm:ss"))}}function xe(n,s){if(1&n){const t=e.EpF();e.TgZ(0,"div",91),e.NdJ("click",function(o){e.CHM(t);const r=e.oxw().$implicit,_=e.oxw(4);return o.stopPropagation(),_.deleteUserDialog(r)}),e.TgZ(1,"i",92),e._uU(2,"delete_forever"),e.qZA(),e.qZA()}}function ve(n,s){if(1&n){const t=e.EpF();e.TgZ(0,"div",93),e.NdJ("click",function(o){e.CHM(t);const r=e.oxw().$implicit,_=e.oxw(4);return o.stopPropagation(),_.inviteUser(r)}),e.TgZ(1,"i",92),e._uU(2,"mail"),e.qZA(),e.qZA()}}function be(n,s){if(1&n){const t=e.EpF();e.TgZ(0,"tr",61),e.NdJ("click",function(){const r=e.CHM(t).$implicit;return e.oxw(4).gotoDetail(r)}),e.TgZ(1,"td"),e.YNc(2,pe,1,1,"img",62),e.YNc(3,me,3,1,"div",63),e.qZA(),e.TgZ(4,"td"),e.TgZ(5,"div"),e._uU(6),e.qZA(),e.TgZ(7,"div",69),e._uU(8),e.qZA(),e.qZA(),e.TgZ(9,"td",87),e._uU(10),e.qZA(),e.TgZ(11,"td"),e._uU(12),e.qZA(),e.TgZ(13,"td"),e.YNc(14,ue,7,4,"div",54),e.YNc(15,he,7,4,"div",54),e.YNc(16,fe,7,4,"div",54),e.qZA(),e.TgZ(17,"td"),e.YNc(18,xe,3,0,"div",88),e.YNc(19,ve,3,0,"div",89),e.qZA(),e.qZA()}if(2&n){const t=s.$implicit,i=e.oxw(4);e.xp6(2),e.Q6J("ngIf",t.provider_picture),e.xp6(1),e.Q6J("ngIf",!t.provider_picture),e.xp6(3),e.Oqu("ip"!==t.provider?i.commonService.getFullName(t):t.firstname?t.firstname:"(no name)"),e.xp6(2),e.Oqu(t.email),e.xp6(2),e.Oqu(t.ip),e.xp6(2),e.Oqu(i.getRole(t.role_id)),e.xp6(1),e.ekj("no-data",null===t.invitation_time&&"ip"!==t.provider),e.xp6(1),e.Q6J("ngIf",2===t.invitation_status),e.xp6(1),e.Q6J("ngIf",2!==t.invitation_status&&"ip"!==t.provider),e.xp6(1),e.Q6J("ngIf","ip"===t.provider),e.xp6(2),e.Q6J("ngIf",i.hasUserDeletePerm),e.xp6(1),e.Q6J("ngIf",2!=t.invitation_status&&"ip"!==t.provider&&i.hasUserUpdatePerm)}}function Ce(n,s){if(1&n&&(e.ynx(0),e.YNc(1,be,20,13,"tr",60),e.BQk()),2&n){const t=e.oxw(3);e.xp6(1),e.Q6J("ngForOf",t.filtered_users)}}function Me(n,s){1&n&&(e.ynx(0),e.TgZ(1,"tr"),e.TgZ(2,"td",82),e.TgZ(3,"span"),e._uU(4,"No Permission for User List"),e.qZA(),e.qZA(),e.qZA(),e.BQk())}function Pe(n,s){if(1&n){const t=e.EpF();e.TgZ(0,"a",57),e.NdJ("click",function(){const r=e.CHM(t).index,_=e.oxw(3);return _.filter(r+_.page.page_offset)}),e._uU(1),e.qZA()}if(2&n){const t=s.index,i=e.oxw(3);e.ekj("active",i.page.check_curpage(t)),e.xp6(1),e.Oqu(i.page.page_list[t])}}function Oe(n,s){if(1&n&&(e.TgZ(0,"div",83),e._uU(1),e.qZA()),2&n){const t=e.oxw(3);e.xp6(1),e.AsE("",t.page.page_index*t.page.page_size+t.filtered_users.length," / ",t.page.data_size," Users")}}function Ze(n,s){if(1&n){const t=e.EpF();e.TgZ(0,"div",84),e.TgZ(1,"table",40),e.NdJ("sorted",function(o){return e.CHM(t),e.oxw(2).onSorted(o)}),e.TgZ(2,"colgroup"),e._UZ(3,"col",41),e._UZ(4,"col",44),e._UZ(5,"col",42),e._UZ(6,"col",44),e._UZ(7,"col",46),e._UZ(8,"col",45),e.qZA(),e.TgZ(9,"thead"),e.TgZ(10,"tr"),e.TgZ(11,"th"),e._uU(12,"\xa0"),e.qZA(),e.TgZ(13,"th",48),e._uU(14,"Name"),e.qZA(),e.TgZ(15,"th",85),e._uU(16,"IP Address"),e.qZA(),e.TgZ(17,"th",50),e._uU(18,"Permission Grp."),e.qZA(),e.TgZ(19,"th",52),e._uU(20,"Status"),e.qZA(),e._UZ(21,"th"),e.qZA(),e.qZA(),e.qZA(),e.TgZ(22,"div",86),e.TgZ(23,"table"),e.TgZ(24,"colgroup"),e._UZ(25,"col",41),e._UZ(26,"col",44),e._UZ(27,"col",42),e._UZ(28,"col",44),e._UZ(29,"col",46),e._UZ(30,"col",45),e.qZA(),e.TgZ(31,"tbody"),e.YNc(32,Ce,2,1,"ng-container",54),e.YNc(33,Me,5,0,"ng-container",54),e.qZA(),e.qZA(),e.qZA(),e.TgZ(34,"div",55),e.TgZ(35,"div",56),e.TgZ(36,"a",57),e.NdJ("click",function(){e.CHM(t);const o=e.oxw(2);return o.filter(o.page.prev_page())}),e._uU(37,"\xab"),e.qZA(),e.YNc(38,Pe,2,3,"a",58),e.TgZ(39,"a",57),e.NdJ("click",function(){e.CHM(t);const o=e.oxw(2);return o.filter(o.page.next_page())}),e._uU(40,"\xbb"),e.qZA(),e.qZA(),e.YNc(41,Oe,2,2,"div",59),e.qZA(),e.qZA()}if(2&n){const t=e.oxw(2);e.xp6(32),e.Q6J("ngIf",t.hasUserGetPerm),e.xp6(1),e.Q6J("ngIf",!t.hasUserGetPerm),e.xp6(5),e.Q6J("ngForOf",t.page.page_list),e.xp6(3),e.Q6J("ngIf",t.users)}}function we(n,s){if(1&n){const t=e.EpF();e.TgZ(0,"div",2),e.TgZ(1,"div",3),e.TgZ(2,"div",4),e.YNc(3,F,3,0,"div",5),e.TgZ(4,"div",6),e.TgZ(5,"div",7),e._uU(6,"User List"),e.qZA(),e.TgZ(7,"div",8),e.YNc(8,Q,3,0,"div",9),e.qZA(),e.qZA(),e.TgZ(9,"div",10),e.TgZ(10,"div",11),e.TgZ(11,"div",12),e.YNc(12,Y,4,4,"div",13),e.qZA(),e.TgZ(13,"div",14,15),e.NdJ("click",function(){return e.CHM(t),e.oxw().setSearchFocus(!0)}),e.TgZ(15,"i",16),e._uU(16,"search"),e.qZA(),e.TgZ(17,"input",17,18),e.NdJ("ngModelChange",function(o){return e.CHM(t),e.oxw().searchTxt=o})("keyup",function(o){return e.CHM(t),e.oxw().search(o)}),e.qZA(),e.qZA(),e._UZ(19,"div",19),e.TgZ(20,"div",20),e.TgZ(21,"div",21),e.NdJ("mouseenter",function(){return e.CHM(t),e.oxw().onMouseOver(!0,"sec_filter")})("mouseleave",function(){return e.CHM(t),e.oxw().onMouseOver(!1,"sec_filter")}),e.TgZ(22,"div",22),e.TgZ(23,"i",23),e._uU(24,"security"),e.qZA(),e._uU(25),e.TgZ(26,"i",23),e._uU(27,"arrow_drop_down"),e.qZA(),e.qZA(),e.TgZ(28,"div",24),e.YNc(29,E,2,1,"div",25),e.qZA(),e.qZA(),e.TgZ(30,"div",21),e.NdJ("mouseenter",function(){return e.CHM(t),e.oxw().onMouseOver(!0,"per_filter")})("mouseleave",function(){return e.CHM(t),e.oxw().onMouseOver(!1,"per_filter")}),e.TgZ(31,"div",22),e.TgZ(32,"i",23),e._uU(33,"lock"),e.qZA(),e._uU(34),e.TgZ(35,"i",23),e._uU(36,"arrow_drop_down"),e.qZA(),e.qZA(),e.TgZ(37,"div",24),e.TgZ(38,"div",26),e.NdJ("click",function(o){e.CHM(t);const r=e.oxw();return o.stopPropagation(),r.selectPermission(r.allRole)}),e._uU(39),e.qZA(),e.YNc(40,H,2,1,"div",25),e.qZA(),e.qZA(),e.TgZ(41,"i",27),e._uU(42,"filter_list"),e.qZA(),e.qZA(),e.qZA(),e.YNc(43,ge,46,7,"div",28),e.YNc(44,Ze,42,4,"div",29),e.qZA(),e.qZA(),e.qZA(),e.qZA()}if(2&n){const t=e.oxw();e.xp6(3),e.Q6J("ngIf",t.isLoading),e.xp6(5),e.Q6J("ngIf",t.hasUserCreatePerm),e.xp6(4),e.Q6J("ngForOf",t.tab_list),e.xp6(1),e.ekj("search-focus",t.isFocusSearch),e.xp6(4),e.Q6J("ngModel",t.searchTxt),e.xp6(5),e.ekj("button-active",t.m_sec_filter.is_active),e.xp6(3),e.hij(" ",t.sel_access?t.sel_access.name:"All",""),e.xp6(3),e.Udp("opacity",t.m_sec_filter.is_active?100:0)("visibility",t.m_sec_filter.is_active?"visible":"hidden"),e.xp6(1),e.Q6J("ngForOf",t.accesses),e.xp6(2),e.ekj("button-active",t.m_per_filter.is_active),e.xp6(3),e.hij(" ",t.sel_role?t.sel_role.name:"All",""),e.xp6(3),e.Udp("opacity",t.m_per_filter.is_active?100:0)("visibility",t.m_per_filter.is_active?"visible":"hidden"),e.xp6(2),e.Oqu(t.allRole.name),e.xp6(1),e.Q6J("ngForOf",t.roles),e.xp6(3),e.Q6J("ngIf","User"===t.tab.name),e.xp6(1),e.Q6J("ngIf","IP User"===t.tab.name)}}function Te(n,s){if(1&n){const t=e.EpF();e.TgZ(0,"div",81),e.NdJ("click",function(){return e.CHM(t),e.oxw(2).editDialog()}),e.TgZ(1,"div",34),e._uU(2,"Save"),e.qZA(),e.qZA()}if(2&n){const t=e.oxw(2);e.ekj("disabled",!t.checkChanges("profile"))}}function Ue(n,s){if(1&n){const t=e.EpF();e.TgZ(0,"div",111),e.NdJ("click",function(){e.CHM(t);const o=e.oxw(2);return o.deleteUserDialog(o.sel_user)}),e.TgZ(1,"div",34),e._uU(2,"Delete"),e.qZA(),e.qZA()}}function Ae(n,s){if(1&n){const t=e.EpF();e.TgZ(0,"img",112),e.NdJ("error",function(){return e.CHM(t),e.oxw(2).sel_user.provider_picture=null}),e.qZA()}if(2&n){const t=e.oxw(2);e.Q6J("src",t.sel_user.provider_picture,e.LSH)}}function ye(n,s){if(1&n&&(e.TgZ(0,"div",113),e.TgZ(1,"div",114),e._uU(2),e.qZA(),e.qZA()),2&n){const t=e.oxw(2);e.xp6(2),e.Oqu("ip"!==t.sel_user.provider?t.sel_user.email.slice(0,1):t.sel_user.firstname?t.sel_user.firstname.slice(0,2):"IP")}}function qe(n,s){if(1&n){const t=e.EpF();e.TgZ(0,"div",111),e.NdJ("click",function(){e.CHM(t);const o=e.oxw(2);return o.openResetPasswordDialog(o.sel_user)}),e.TgZ(1,"div",34),e._uU(2,"Reset Password"),e.qZA(),e.qZA()}}function ke(n,s){if(1&n){const t=e.EpF();e.TgZ(0,"mat-slide-toggle",127),e.NdJ("ngModelChange",function(o){return e.CHM(t),e.oxw(4).new_data.is_division_user=o})("change",function(o){return e.CHM(t),e.oxw(4).setDivisionUserDefaultPermission(o)}),e.TgZ(1,"span",128),e._uU(2),e.qZA(),e.qZA()}if(2&n){const t=e.oxw(4);e.Q6J("ngModel",t.new_data.is_division_user)("labelPosition","after"),e.xp6(2),e.Oqu(t.new_data.is_division_user?"Enabled":"Disabled")}}function Ie(n,s){1&n&&(e.TgZ(0,"div"),e._uU(1,"Select division"),e.qZA())}function De(n,s){if(1&n){const t=e.EpF();e.TgZ(0,"i",142),e.NdJ("click",function(o){e.CHM(t);const r=e.oxw().$implicit,_=e.oxw(6);return o.stopPropagation(),_.removeDivision(r)}),e._uU(1,"close"),e.qZA()}}function Ne(n,s){if(1&n&&(e.TgZ(0,"div",140),e.TgZ(1,"div"),e._uU(2),e.qZA(),e.TgZ(3,"div"),e.YNc(4,De,2,0,"i",141),e.qZA(),e.qZA()),2&n){const t=s.$implicit,i=e.oxw(6);e.xp6(2),e.Oqu(t.name),e.xp6(2),e.Q6J("ngIf",i.isInMyDivision(t))}}function Je(n,s){if(1&n&&(e.O4$(),e.kcU(),e.TgZ(0,"div",138),e.YNc(1,Ne,5,2,"div",139),e.qZA()),2&n){const t=e.oxw(5);e.xp6(1),e.Q6J("ngForOf",t.new_data.divisions)}}function Se(n,s){1&n&&(e.TgZ(0,"div",146),e._uU(1,"No Division"),e.qZA())}function ze(n,s){if(1&n){const t=e.EpF();e.TgZ(0,"div",147),e.NdJ("click",function(){const r=e.CHM(t).$implicit;return e.oxw(6).selectDivision(r)}),e.TgZ(1,"div",148),e.TgZ(2,"div",149),e._uU(3),e.qZA(),e.qZA(),e.qZA()}if(2&n){const t=s.$implicit,i=e.oxw(6);e.ekj("selected",i.isDivisionInSelectedList(t)>-1),e.xp6(2),e.ekj("no-info",!(null!=t&&t.name)),e.xp6(1),e.Oqu((null==t?null:t.name)||"No Name")}}function Fe(n,s){if(1&n&&(e.O4$(),e.kcU(),e.TgZ(0,"div",143),e.YNc(1,Se,2,0,"div",144),e.YNc(2,ze,4,5,"div",145),e.qZA()),2&n){const t=e.oxw(5);e.xp6(1),e.Q6J("ngIf",!(null!=t.divisions&&t.divisions.length)),e.xp6(1),e.Q6J("ngForOf",t.divisions)}}function Qe(n,s){if(1&n){const t=e.EpF();e.TgZ(0,"div",129),e.TgZ(1,"div",130,131),e.TgZ(3,"div",132),e.NdJ("click",function(){return e.CHM(t),e.oxw(4).toggleDivisionSelect()}),e.YNc(4,Ie,2,0,"div",54),e.O4$(),e.TgZ(5,"svg",133),e._UZ(6,"path",134),e._UZ(7,"path",135),e.qZA(),e.YNc(8,Je,2,1,"div",136),e.qZA(),e.YNc(9,Fe,3,2,"div",137),e.qZA(),e.qZA()}if(2&n){const t=e.oxw(4);e.xp6(4),e.Q6J("ngIf",!(null!=t.new_data.divisions&&t.new_data.divisions.length)),e.xp6(4),e.Q6J("ngIf",null==t.new_data.divisions?null:t.new_data.divisions.length),e.xp6(1),e.Q6J("ngIf",!t.isFoldDivisionSelect)}}function Le(n,s){1&n&&(e.TgZ(0,"div",150),e.TgZ(1,"i",151),e._uU(2,"warning"),e.qZA(),e.TgZ(3,"div",152),e._uU(4,"If you select disable and save it, division information is deleted."),e.qZA(),e.qZA())}function Ye(n,s){if(1&n&&(e.TgZ(0,"div",123),e.TgZ(1,"div",7),e._uU(2,"Division"),e.qZA(),e.TgZ(3,"div",116),e.YNc(4,ke,3,3,"mat-slide-toggle",124),e.YNc(5,Qe,10,3,"div",125),e.qZA(),e.YNc(6,Le,5,0,"div",126),e.qZA()),2&n){const t=e.oxw(3);e.xp6(4),e.Q6J("ngIf",!t.me.is_division_user),e.xp6(1),e.Q6J("ngIf",t.new_data.is_division_user),e.xp6(1),e.Q6J("ngIf",t.checkDivisionUserFlagChange())}}function Ee(n,s){if(1&n&&(e.TgZ(0,"option",153),e._uU(1),e.qZA()),2&n){const t=s.$implicit;e.Q6J("value",t.role_id),e.xp6(1),e.Oqu(t.name)}}function He(n,s){if(1&n&&(e.ynx(0),e.YNc(1,Ee,2,2,"option",119),e.BQk()),2&n){const t=e.oxw(3);e.xp6(1),e.Q6J("ngForOf",t.roles)}}function Re(n,s){if(1&n&&(e.TgZ(0,"option",153),e._uU(1),e.qZA()),2&n){const t=s.$implicit;e.Q6J("value",t.role_id),e.xp6(1),e.Oqu(t.name)}}function $e(n,s){if(1&n&&(e.ynx(0),e.YNc(1,Re,2,2,"option",119),e.BQk()),2&n){const t=e.oxw(3);e.xp6(1),e.Q6J("ngForOf",t.divisionRoles)}}function je(n,s){if(1&n&&(e.TgZ(0,"option",153),e._uU(1),e.qZA()),2&n){const t=s.$implicit;e.Q6J("value",t.access_id),e.xp6(1),e.Oqu(t.name)}}function Ge(n,s){1&n&&(e.TgZ(0,"i",92),e._uU(1,"check_box_outline_blank"),e.qZA())}function Be(n,s){1&n&&(e.TgZ(0,"i",92),e._uU(1,"check_box"),e.qZA())}function We(n,s){1&n&&(e.TgZ(0,"i",92),e._uU(1,"check_box_outline_blank"),e.qZA())}function Ke(n,s){1&n&&(e.TgZ(0,"i",92),e._uU(1,"check_box"),e.qZA())}function Xe(n,s){if(1&n){const t=e.EpF();e.TgZ(0,"div"),e.TgZ(1,"div",115),e.TgZ(2,"div",7),e._uU(3,"Email"),e.qZA(),e.TgZ(4,"div",116),e._uU(5),e.qZA(),e.qZA(),e.TgZ(6,"div",115),e.TgZ(7,"div",7),e._uU(8,"Joined Date"),e.qZA(),e.TgZ(9,"div",116),e._uU(10),e.qZA(),e.qZA(),e.YNc(11,Ye,7,3,"div",117),e.TgZ(12,"div",115),e.TgZ(13,"div",7),e._uU(14,"Permission Group"),e.qZA(),e.TgZ(15,"div",116),e.TgZ(16,"select",118),e.NdJ("ngModelChange",function(o){return e.CHM(t),e.oxw(2).new_data.role_id=o}),e.YNc(17,He,2,1,"ng-container",54),e.YNc(18,$e,2,1,"ng-container",54),e.qZA(),e.qZA(),e.qZA(),e.TgZ(19,"div",115),e.TgZ(20,"div",7),e._uU(21,"Security Group"),e.qZA(),e.TgZ(22,"div",116),e.TgZ(23,"select",118),e.NdJ("ngModelChange",function(o){return e.CHM(t),e.oxw(2).new_data.access_id=o}),e.YNc(24,je,2,2,"option",119),e.qZA(),e.qZA(),e.qZA(),e.TgZ(25,"div",120),e.TgZ(26,"div",7),e._uU(27,"App access permissions"),e.qZA(),e.TgZ(28,"div",121),e.NdJ("click",function(){e.CHM(t);const o=e.oxw(2);return o.changeAppAccess("has_access_dealer_app",o.new_data.has_access_dealer_app)}),e.TgZ(29,"div"),e.YNc(30,Ge,2,0,"i",122),e.YNc(31,Be,2,0,"i",122),e.qZA(),e.TgZ(32,"div"),e.TgZ(33,"b"),e._uU(34,"Enable Dealer Portal Access"),e.qZA(),e.qZA(),e.qZA(),e.TgZ(35,"div",121),e.NdJ("click",function(){e.CHM(t);const o=e.oxw(2);return o.changeAppAccess("has_access_monitoring_app",o.new_data.has_access_monitoring_app)}),e.TgZ(36,"div"),e.YNc(37,We,2,0,"i",122),e.YNc(38,Ke,2,0,"i",122),e.qZA(),e.TgZ(39,"div"),e.TgZ(40,"b"),e._uU(41,"Enable Monitoring Portal Access"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA()}if(2&n){const t=e.oxw(2);e.xp6(5),e.Oqu(t.sel_user.email),e.xp6(5),e.Oqu(t.commonService.extractDateTime(t.sel_user.invitation_time)),e.xp6(1),e.Q6J("ngIf",t.hasPremiumOrResellerPlan),e.xp6(5),e.ekj("disabled",t.am_i_division_user),e.Q6J("ngModel",t.new_data.role_id),e.xp6(1),e.Q6J("ngIf",!t.new_data.is_division_user),e.xp6(1),e.Q6J("ngIf",t.new_data.is_division_user),e.xp6(5),e.Q6J("ngModel",t.new_data.access_id),e.xp6(1),e.Q6J("ngForOf",t.accesses),e.xp6(4),e.ekj("disabled",!t.hasUserUpdatePerm),e.xp6(1),e.ekj("enable-btn-active",t.new_data.has_access_dealer_app),e.xp6(1),e.Q6J("ngIf",!t.new_data.has_access_dealer_app),e.xp6(1),e.Q6J("ngIf",t.new_data.has_access_dealer_app),e.xp6(4),e.ekj("disabled",!t.hasUserUpdatePerm),e.xp6(1),e.ekj("enable-btn-active",t.new_data.has_access_monitoring_app),e.xp6(1),e.Q6J("ngIf",!t.new_data.has_access_monitoring_app),e.xp6(1),e.Q6J("ngIf",t.new_data.has_access_monitoring_app)}}function Ve(n,s){if(1&n){const t=e.EpF();e.TgZ(0,"div",170),e.NdJ("click",function(){const r=e.CHM(t).$implicit;return e.oxw(4).changePermGroup(r)}),e.TgZ(1,"div"),e._uU(2),e.qZA(),e.qZA()}if(2&n){const t=s.$implicit;e.xp6(2),e.Oqu(t.name)}}function et(n,s){if(1&n&&(e.O4$(),e.kcU(),e.TgZ(0,"div",168),e.YNc(1,Ve,3,1,"div",169),e.qZA()),2&n){const t=e.oxw(3);e.xp6(1),e.Q6J("ngForOf",t.roles)}}function tt(n,s){if(1&n){const t=e.EpF();e.TgZ(0,"div",154),e.TgZ(1,"div",120),e.TgZ(2,"div",7),e._uU(3,"IP Address"),e.qZA(),e.TgZ(4,"div",155),e.TgZ(5,"input",156),e.NdJ("ngModelChange",function(o){return e.CHM(t),e.oxw(2).new_data.ip=o}),e.qZA(),e.TgZ(6,"div",157),e.TgZ(7,"div",158),e._uU(8,"Your Current IP"),e.qZA(),e._UZ(9,"div",159),e.TgZ(10,"div",160),e.NdJ("click",function(){e.CHM(t);const o=e.oxw(2);return o.setIp(o.publicIp)}),e._uU(11),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(12,"div",120),e.TgZ(13,"div",7),e._uU(14,"Name"),e.qZA(),e.TgZ(15,"div",161),e.TgZ(16,"input",156),e.NdJ("ngModelChange",function(o){return e.CHM(t),e.oxw(2).new_data.name=o}),e.qZA(),e.qZA(),e.qZA(),e.TgZ(17,"div",120),e.TgZ(18,"div",7),e._uU(19,"Permission Group"),e.qZA(),e.TgZ(20,"div",162),e.TgZ(21,"div",163,164),e.TgZ(23,"div",165),e.NdJ("click",function(){e.CHM(t);const o=e.oxw(2);return o.isFoldSelect=!o.isFoldSelect}),e.TgZ(24,"div"),e._uU(25),e.qZA(),e.O4$(),e.TgZ(26,"svg",166),e._UZ(27,"path",134),e._UZ(28,"path",135),e.qZA(),e.qZA(),e.YNc(29,et,2,1,"div",167),e.qZA(),e.qZA(),e.qZA(),e.kcU(),e.TgZ(30,"div",120),e.TgZ(31,"div",7),e._uU(32,"Created Date"),e.qZA(),e.TgZ(33,"div",161),e._uU(34),e.qZA(),e.qZA(),e.qZA()}if(2&n){const t=e.oxw(2);e.xp6(5),e.Q6J("ngModel",t.new_data.ip),e.xp6(6),e.Oqu(t.publicIp),e.xp6(5),e.Q6J("ngModel",t.new_data.name),e.xp6(9),e.Oqu(t.new_data.role.name),e.xp6(4),e.Q6J("ngIf",!t.isFoldSelect),e.xp6(5),e.Oqu(t.commonService.extractDateTime(t.sel_user.created))}}function nt(n,s){if(1&n){const t=e.EpF();e.TgZ(0,"div",81),e.NdJ("click",function(){return e.CHM(t),e.oxw(3).updateWorkday()}),e.TgZ(1,"div",34),e._uU(2,"Save"),e.qZA(),e.qZA()}if(2&n){const t=e.oxw(3);e.ekj("disabled",!t.checkChanges("time"))}}function it(n,s){1&n&&(e.TgZ(0,"i",92),e._uU(1,"check_box_outline_blank"),e.qZA())}function ot(n,s){1&n&&(e.TgZ(0,"i",92),e._uU(1,"check_box"),e.qZA())}function st(n,s){if(1&n&&(e.TgZ(0,"option",153),e._uU(1),e.qZA()),2&n){const t=s.$implicit;e.Q6J("value",t.text),e.xp6(1),e.Oqu(t.text)}}function rt(n,s){if(1&n&&(e.TgZ(0,"option",153),e._uU(1),e.qZA()),2&n){const t=s.$implicit;e.Q6J("value",t.text),e.xp6(1),e.Oqu(t.text)}}function ct(n,s){if(1&n){const t=e.EpF();e.TgZ(0,"div",116),e.TgZ(1,"div",173),e.NdJ("click",function(){const r=e.CHM(t).$implicit;return e.oxw(3).toggleEnableDay(r)}),e.YNc(2,it,2,0,"i",122),e.YNc(3,ot,2,0,"i",122),e.TgZ(4,"span",174),e._uU(5),e.qZA(),e.qZA(),e.TgZ(6,"select",175),e.NdJ("ngModelChange",function(o){return e.CHM(t).$implicit.time_from=o})("change",function(){return e.CHM(t),e.oxw(3).timeEvent()}),e.YNc(7,st,2,2,"option",119),e.qZA(),e.TgZ(8,"div",176),e._uU(9,"to"),e.qZA(),e.TgZ(10,"select",175),e.NdJ("ngModelChange",function(o){return e.CHM(t).$implicit.time_to=o})("change",function(){return e.CHM(t),e.oxw(3).timeEvent()}),e.YNc(11,rt,2,2,"option",119),e.qZA(),e.qZA()}if(2&n){const t=s.$implicit,i=e.oxw(3);e.xp6(1),e.ekj("enable-btn-active",t.enable),e.xp6(1),e.Q6J("ngIf",!t.enable),e.xp6(1),e.Q6J("ngIf",t.enable),e.xp6(1),e.ekj("day-active",t.enable),e.xp6(1),e.hij("",t.name," "),e.xp6(1),e.Q6J("ngModel",t.time_from),e.xp6(1),e.Q6J("ngForOf",i.times),e.xp6(3),e.Q6J("ngModel",t.time_to),e.xp6(1),e.Q6J("ngForOf",i.times)}}function _t(n,s){if(1&n&&(e.TgZ(0,"div",99),e.TgZ(1,"div",171),e.TgZ(2,"div",6),e.TgZ(3,"div",7),e._uU(4,"Working Hours"),e.qZA(),e.TgZ(5,"div",8),e.YNc(6,nt,3,2,"div",101),e.qZA(),e.qZA(),e.TgZ(7,"div",103),e.YNc(8,ct,12,11,"div",172),e.qZA(),e.qZA(),e.qZA()),2&n){const t=e.oxw(2);e.xp6(6),e.Q6J("ngIf",t.hasUserUpdatePerm),e.xp6(2),e.Q6J("ngForOf",t.workdays)}}function at(n,s){if(1&n){const t=e.EpF();e.TgZ(0,"div",2),e.TgZ(1,"div",94),e.TgZ(2,"div",95),e.NdJ("click",function(){return e.CHM(t),e.oxw().gotoList()}),e.TgZ(3,"div",96),e.TgZ(4,"div",34),e.TgZ(5,"i",97),e._uU(6,"arrow_back"),e.qZA(),e.TgZ(7,"span"),e._uU(8,"Back to List"),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.TgZ(9,"div",98),e.TgZ(10,"div",99),e.TgZ(11,"div",100),e.TgZ(12,"div",6),e._UZ(13,"div",19),e.TgZ(14,"div",8),e.YNc(15,Te,3,2,"div",101),e._UZ(16,"div",19),e.YNc(17,Ue,3,0,"div",102),e.qZA(),e.qZA(),e.TgZ(18,"div",103),e.TgZ(19,"div",104),e.TgZ(20,"div",105),e.YNc(21,Ae,1,1,"img",106),e.YNc(22,ye,3,1,"div",107),e.TgZ(23,"div",108),e._uU(24),e.qZA(),e.qZA(),e.TgZ(25,"div",8),e.YNc(26,qe,3,0,"div",102),e.qZA(),e.qZA(),e.YNc(27,Xe,42,22,"div",54),e.YNc(28,tt,35,6,"div",109),e.qZA(),e.qZA(),e.qZA(),e.YNc(29,_t,9,2,"div",110),e.qZA(),e.qZA()}if(2&n){const t=e.oxw();e.xp6(15),e.Q6J("ngIf",t.hasUserUpdatePerm),e.xp6(2),e.Q6J("ngIf",t.hasUserDeletePerm&&!t.me.is_division_user),e.xp6(4),e.Q6J("ngIf",t.sel_user.provider_picture),e.xp6(1),e.Q6J("ngIf",!t.sel_user.provider_picture),e.xp6(2),e.Oqu("ip"!==t.sel_user.provider?t.commonService.getFullName(t.sel_user):t.sel_user.firstname?t.sel_user.firstname:"(no name)"),e.xp6(2),e.Q6J("ngIf","ip"!==t.sel_user.provider&&t.hasUserUpdatePerm),e.xp6(1),e.Q6J("ngIf","ip"!==t.sel_user.provider),e.xp6(1),e.Q6J("ngIf","ip"===t.sel_user.provider),e.xp6(1),e.Q6J("ngIf","ip"!==t.sel_user.provider)}}const lt=p.Bz.forChild([{path:"",component:(()=>{class n{constructor(t,i,o,r,_,u,A,ut,ht){this.usersService=t,this.rolesService=i,this.accessesService=o,this.divisionService=r,this.dealerPlanService=_,this.commonService=u,this.helper=A,this.c_components=ut,this.route=ht,this.am_i_division_user=!1,this.users=[],this.filteredUsers=[],this.filtered_users=[],this.ipUsers=[],this.roles=[],this.divisionRoles=[],this.accesses=[],this.allRole={name:"All",role_id:null},this.divisions=[],this.page=new m.T,this.initTabList=[{name:"User",link:"user"},{name:"IP User",link:"ip user"}],this.tab_list=this.initTabList,this.tab=this.tab_list[0],this.isFocusSearch=!1,this.searchTxt="",this.search_user_list=[],this.isFoldSelect=!0,this.isFoldDivisionSelect=!0,this.isDestroy=!1,this.isLoading=!1,this.curSort={},this.sort={sortColumn:"",sortDirection:""},this.hasUserCreatePerm=!1,this.hasUserUpdatePerm=!1,this.hasUserDeletePerm=!1,this.hasUserGetPerm=!1,this.hasPremiumOrResellerPlan=!1,this.cur_filter="all",this.m_warning=new h.u,this.m_per_filter=new h.u,this.m_sec_filter=new h.u,this.mode="list",this.is_edit_name=!1,this.is_firstname=!1,this.is_lastname=!1,this.default_workdays=[{id:0,name:"Sunday",enable:!1,time_from:"00:00",time_to:"24:00"},{id:1,name:"Monday",enable:!0,time_from:"00:00",time_to:"24:00"},{id:2,name:"Tuesday",enable:!0,time_from:"00:00",time_to:"24:00"},{id:3,name:"Wednsday",enable:!0,time_from:"00:00",time_to:"24:00"},{id:4,name:"Thursday",enable:!0,time_from:"00:00",time_to:"24:00"},{id:5,name:"Friday",enable:!0,time_from:"00:00",time_to:"24:00"},{id:6,name:"Saturday",enable:!1,time_from:"00:00",time_to:"24:00"}],this.workdays=[],this.times=[],this.is_workday_changed=!1}ngOnInit(){this.sub=this.route.queryParams.subscribe(t=>{this.isDestroy||(this.params=t,this.params.page&&(this.page.page_index=parseInt(this.params.page,10)),this.usersService.getMe().subscribe(i=>{if(this.me=i,this.am_i_division_user=i.is_division_user,this.params.user&&0!==this.roles.length){const o=this.users.find(r=>r.user_id===parseInt(this.params.user,10));o&&this.openUserDetail(o)}else this.initData()}))})}ngAfterViewInit(){this.isDestroy=!1}ngOnDestroy(){this.sub.unsubscribe(),this.isDestroy=!0,this.isLoading=!1}initData(){this.update_hasUserXXXPerms(),this.fetchRoleList(),this.fetchAccessList(),this.fetchDivisionList(),this.getPublicIp()}onGlobalClick(t){!this.searcher&&!this.permSelect&&!this.divisionSelect||(this.searcher&&(this.searcher.nativeElement.contains(t.target)||(this.isFocusSearch=!1)),this.permSelect&&(this.permSelect.nativeElement.contains(t.target)||(this.isFoldSelect=!0)),this.divisionSelect&&(this.divisionSelect.nativeElement.contains(t.target)||(this.isFoldDivisionSelect=!0)))}update_hasUserXXXPerms(){return(0,l.mG)(this,void 0,void 0,function*(){yield this.helper.permission.load_my_permissions_only_if_not_loaded(),this.hasUserCreatePerm=this.helper.permission.has("dealer_member_create"),this.hasUserUpdatePerm=this.helper.permission.has("dealer_member_update"),this.hasUserDeletePerm=this.helper.permission.has("dealer_member_delete"),this.hasUserGetPerm=this.helper.permission.has("dealer_member_read")})}setSearchFocus(t){this.isFocusSearch=t}initSearchTxt(){this.searchTxt="",this.isFocusSearch=!1,this.search_user_list=this.users,this.filter(0),this.searchInput.nativeElement.focus()}fetchUserList(){this.usersService.fetch(this.me.dealer_id).subscribe(t=>{this.setUsers(t)},t=>{this.isLoading=!1})}doFilterUser(){"User"===this.tab.name&&(this.filteredUsers=this.users.filter(t=>"ip"!==t.provider)),"IP User"===this.tab.name&&(this.filteredUsers=this.users.filter(t=>"ip"===t.provider))}moveToTab(t){this.tab=t,this.setUsers(this.users)}getIpUserInfo(){this.usersService.getIpMember(this.me.dealer_id,this.sel_user.user_id).subscribe(o=>{this.sel_user.ip=o[0].ip,this.new_data.ip=o[0].ip})}setUsers(t){if(this.users=t,this.fetchIpUsers(),this.doFilterUser(),0===this.searchTxt.length&&this.filter(0),this.params.user){const i=this.users.find(o=>o.user_id===parseInt(this.params.user,10));i&&this.openUserDetail(i)}else this.mode="list"}fetchIpUsers(){this.usersService.getIpMembers(this.me.dealer_id).subscribe(i=>{this.ipUsers=i,this.users.forEach(o=>{this.ipUsers.forEach(r=>{"ip"===o.provider&&o.provider_id===r.id&&(o.ip=r.ip)})}),this.parseUsers(this.users)})}fetchRoleList(){this.rolesService.getRoles(this.me.dealer_id).subscribe(t=>{this.roles=t.filter(i=>!i.is_division_role),this.divisionRoles=t.filter(i=>i.is_division_role)})}fetchAccessList(){this.accessesService.getAccesses(this.me.dealer_id).subscribe(t=>{this.accesses=t,this.fetchUserList()},t=>{this.isLoading=!1})}fetchDealerPlan(){return(0,l.mG)(this,void 0,void 0,function*(){const t=this.me.dealer_id,i=yield this.dealerPlanService.getDealerPlan(t).toPromise();this.hasPremiumOrResellerPlan=(null==i?void 0:i.current_month_service_plan_type)>2})}fetchDivisionList(){return(0,l.mG)(this,void 0,void 0,function*(){try{if(yield this.fetchDealerPlan(),!this.hasPremiumOrResellerPlan)return;const t=yield this.divisionService.getMyDivisions(this.me.dealer_id).toPromise();this.divisions=this.parseUserDivision(t)}catch(t){console.debug("fetchDivisionList:>",t)}})}parseUserDivision(t){return null==t||t.forEach(i=>i.division_id=i.id),t}parseUsers(t){let i=t;i.forEach(o=>{o.nameLabel="ip"!==o.provider?this.commonService.getFullName(o):o.firstname,o.roleLabel=this.getRole(o.role_id,o.is_division_user),o.accessLabel=this.getAccess(o.access_id),o.invitationTimeStamp=O()(o.invitation_time).unix()}),this.users=i}getPublicIp(){this.usersService.getMyIp().subscribe(t=>{this.publicIp=t.ip})}getRole(t,i){let o=this.roles.filter(r=>r.role_id==t);return i&&(o=this.divisionRoles.filter(r=>r.role_id==t)),o.length>0?o[0].name:"No Info"}getAccess(t){let i=this.accesses.filter(o=>o.access_id==t);return i.length>0?i[0].name:"No Info"}filter(t,i){let o;o=this.searchTxt.length>0?this.search_user_list:this.filteredUsers.filter(r=>{let _=!0;return this.sel_role&&r.role_id!=this.sel_role.role_id&&(_=!1,null===this.sel_role.role_id&&(_=!0)),this.sel_access&&r.access_id!=this.sel_access.access_id&&(_=!1),_}),this.filtered_users=this.page.paging(o,t)}search(t){let i=this.searchTxt.toLowerCase();this.search_user_list=i.length>0?this.users.filter(o=>{if(null===o.email||null===o.firstname||null===o.lastname)return!1;let r=o.email.toLowerCase();return r+=o.firstname?o.firstname.toLowerCase():"",r+=o.lastname?o.lastname.toLowerCase():"",r+=this.getRole(o.role_id,o.is_division_user).toLowerCase(),r+=this.getAccess(o.access_id).toLowerCase(),!!i&&r.search(i)>-1}):[],this.filter(0)}openUserCreateModal(){this.c_components.dialog.open("dealer_member_add_user",null).componentInstance.onCloseDialogRecallData.subscribe(()=>this.fetchUserList())}modalEvent(t){t&&this.fetchUserList()}inviteUser(t){this.m_warning.data={header:"Resend Invitation",contents:`Are you sure to resend invitation to <b>${t.email}</b>`,submit_btn:"Resend",submit_class:["button-primary"]},this.m_warning.data.submit_func=()=>{this.isLoading=!0,this.usersService.inviteUsers(this.me.dealer_id,t.user_id).subscribe(i=>{setTimeout(()=>{this.isLoading=!1,this.confirmDialog("Resend Invitation","Resend invitation has been successfully.")},300)},i=>{this.isLoading=!1,this.errorDialog(i,"Resend Invitation")})},this.m_warning.open()}setIp(t){this.new_data.ip=t}openResetPasswordDialog(t){"ip"!==t.provider&&(this.m_warning.data={header:"Send Reset Password URL",contents:`Are you sure that you want to send reset password URL <br><b>${"ip"!==t.provider?t.email:t.firstname}</b>`,submit_btn:"Reset",submit_class:["button-danger"]},this.m_warning.data.submit_func=()=>{this.isLoading=!0,this.resetPassword(t)},this.m_warning.open())}resetPassword(t){this.usersService.sendResetPasswordUrl(this.me.dealer_id,t.user_id).subscribe(r=>{setTimeout(()=>{this.isLoading=!1,this.confirmDialog("Send Reset Password URL","Send reset password URL has been successfully")},300)},r=>{this.isLoading=!1,this.errorDialog(r,"Send Reset Password URL")})}deleteUserDialog(t){this.m_warning.data={header:"Delete a User",contents:`Are you sure that you want to delete <b>${"ip"!==t.provider?t.email:t.firstname}</b>`,submit_btn:"Delete",submit_class:["button-danger"]},this.m_warning.data.submit_func=()=>{this.isLoading=!0,"ip"!==t.provider?this.deleteUser(t):"ip"===t.provider&&this.deleteIpUser(t)},this.m_warning.open()}deleteUser(t){this.usersService.deleteUsers(this.me.dealer_id,t.user_id).subscribe(i=>{this.isLoading=!1,this.commonService.showSuccessToast("Delete a User","Delete a user has been successfully"),this.fetchUserList(),this.gotoList()},i=>{this.isLoading=!1,this.errorDialog(i,"Delete a User")})}deleteIpUser(t){this.usersService.deleteIpUser(this.me.dealer_id,t.user_id).subscribe(i=>{this.isLoading=!1,this.commonService.showSuccessToast("Delete a User","Delete a user has been successfully"),this.fetchUserList(),this.gotoList()},i=>{this.isLoading=!1,this.errorDialog(i,"Delete a User")})}onMouseOver(t,i){"sec_filter"==i?t?this.m_sec_filter.open():this.m_sec_filter.close():"per_filter"==i&&(t?this.m_per_filter.open():this.m_per_filter.close())}selectSecurity(t){this.sel_access=t,this.filter(0),this.m_sec_filter.close()}selectPermission(t){this.sel_role=t,this.filter(0),this.m_per_filter.close()}changeAppAccess(t,i){this.new_data[t]=1===i?0:1}getCurrentDomain(){const t=window.location.hostname.split(".");return t.length>1?"."+t[+t.length-2]+"."+t[+t.length-1]:t[0]}openUserDetail(t){this.sel_user=C().cloneDeep(t),"ip"===this.sel_user.provider&&(this.new_data={name:t.firstname,access_id:t.access_id,role_id:t.role_id},this.getIpUserInfo()),"ip"!==this.sel_user.provider&&(this.new_data={firstname:t.firstname,lastname:t.lastname,fullname:this.commonService.getFullName(t),role_id:t.role_id,access_id:t.access_id,divisions:t.divisions,newDivisions:[],removeDivisions:[],is_division_user:!!t.is_division_user,has_access_dealer_app:t.has_access_dealer_app,has_access_mobile_app:t.has_access_mobile_app,has_access_monitoring_app:t.has_access_monitoring_app},this.initTimes()),this.new_data.role=this.roles.filter(i=>i.role_id===t.role_id)[0],this.mode="detail"}setDivisionUserDefaultPermission(t){var i,o;this.new_data.role_id=(null==t?void 0:t.checked)?null===(i=this.divisionRoles[0])||void 0===i?void 0:i.role_id:null===(o=this.roles[0])||void 0===o?void 0:o.role_id}checkDivisionUserFlagChange(){return!!this.sel_user.is_division_user!=this.new_data.is_division_user&&!this.new_data.is_division_user}isDivisionInSelectedList(t){return this.new_data.divisions&&this.new_data.divisions.length?this.new_data.divisions.findIndex(i=>i.division_id===t.division_id):-1}isDivisionInNewDivisionList(t){return!(!this.new_data.newDivisions||!this.new_data.newDivisions.length)&&this.new_data.newDivisions.find(i=>i.division_id===t.division_id)}isDivisionInRemovedDivisionList(t){return!(!this.new_data.removeDivisions||!this.new_data.removeDivisions.length)&&this.new_data.removeDivisions.find(i=>i.division_id===t.division_id)}selectDivision(t){this.isDivisionInSelectedList(t)>-1?this.removeDivision(t):(this.addToNewDivisions(t),this.excludeFromRemovedDivisions(t))}removeDivision(t){const i=this.isDivisionInSelectedList(t);i>-1?(this.new_data.divisions.splice(i,1),this.excludeFromNewDivisions(t),this.addToRemovedDivisions(t)):this.excludeFromRemovedDivisions(t)}addToNewDivisions(t){this.new_data.divisions.push(t),this.isDivisionInNewDivisionList(t)||this.new_data.newDivisions.push(t)}excludeFromNewDivisions(t){const i=this.new_data.newDivisions.findIndex(o=>o.division_id===t.division_id);i>-1&&this.new_data.newDivisions.splice(i,1)}addToRemovedDivisions(t){const i=this.sel_user.divisions.find(o=>o.division_id==t.division_id);!this.isDivisionInRemovedDivisionList(t)&&i&&this.new_data.removeDivisions.push(t)}excludeFromRemovedDivisions(t){const i=this.new_data.removeDivisions.findIndex(o=>o.division_id===t.division_id);i>-1&&this.new_data.removeDivisions.splice(i,1)}isInMyDivision(t){return this.divisions.find(i=>i.division_id===t.division_id)}toggleDivisionSelect(){this.isFoldDivisionSelect=!this.isFoldDivisionSelect}gotoDetail(t){this.helper.router.navigate_to("/settings/users",{user:t.user_id})}gotoList(){this.mode="list",this.sel_user=null,this.helper.router.navigate_to("/settings/users")}checkChanges(t){var i,o;if("profile"==t){if("ip"!==this.sel_user.provider&&(this.sel_user.firstname!=this.new_data.firstname||this.sel_user.lastname!=this.new_data.lastname||this.sel_user.role_id!=this.new_data.role_id||this.sel_user.access_id!=this.new_data.access_id||(null===(i=this.new_data.newDivisions)||void 0===i?void 0:i.length)||(null===(o=this.new_data.removeDivisions)||void 0===o?void 0:o.length)||this.sel_user.is_division_user!=this.new_data.is_division_user||this.sel_user.has_access_dealer_app!=this.new_data.has_access_dealer_app||this.sel_user.has_access_mobile_app!=this.new_data.has_access_mobile_app||this.sel_user.has_access_monitoring_app!=this.new_data.has_access_monitoring_app)||"ip"===this.sel_user.provider&&(this.sel_user.firstname!=this.new_data.name||this.sel_user.ip!=this.new_data.ip||this.sel_user.access_id!=this.new_data.access_id||this.sel_user.role_id!=this.new_data.role_id))return!0}else if("time"==t)return this.is_workday_changed;return!1}editDialog(){this.m_warning.data={header:"Edit a User",contents:"Are you sure that you want to Edit User?</b>",submit_btn:"Save",submit_class:["button-primary"]},this.m_warning.data.submit_func=()=>{this.applyChanges()},this.m_warning.open()}changePermGroup(t){this.new_data.role=t,this.new_data.role_id=t.role_id,this.isFoldSelect=!0}applyChanges(){return(0,l.mG)(this,void 0,void 0,function*(){try{"ip"!==this.sel_user.provider?(yield this.updateUser(),yield this.updateDivision()):"ip"===this.sel_user.provider&&this.updateIpUser()}catch(t){console.debug(t)}})}updateUser(){return(0,l.mG)(this,void 0,void 0,function*(){try{yield this.usersService.update(this.me.dealer_id,this.sel_user.user_id,this.new_data).toPromise(),this.sel_user.role_id=this.new_data.role_id,this.sel_user.access_id=this.new_data.access_id,this.sel_user.is_division_user=this.new_data.is_division_user,this.sel_user.has_access_dealer_app=this.new_data.has_access_dealer_app,this.sel_user.has_access_mobile_app=this.new_data.has_access_mobile_app,this.sel_user.has_access_monitoring_app=this.new_data.has_access_monitoring_app,this.commonService.showSuccessToast("Update User Data","Success")}catch(t){console.debug(t),this.commonService.showErrorToast(t,"Update a User")}})}updateDivision(){return(0,l.mG)(this,void 0,void 0,function*(){if(this.hasPremiumOrResellerPlan){console.debug("new:>",this.new_data.newDivisions,"remove",this.new_data.removeDivisions);try{const t=this.new_data.newDivisions.map(o=>(0,l.mG)(this,void 0,void 0,function*(){return yield this.addDivisions(o)})),i=this.new_data.removeDivisions.map(o=>(0,l.mG)(this,void 0,void 0,function*(){return yield this.removeDivisions(o)}));yield Promise.all([t,i]),this.commonService.showSuccessToast("Update User Division","Success"),this.sel_user.divisions=C().cloneDeep(this.new_data.divisions),this.new_data.newDivisions=[],this.new_data.removeDivisions=[]}catch(t){console.debug(t),this.commonService.showErrorToast(t,"Update Division")}}})}addDivisions(t){return(0,l.mG)(this,void 0,void 0,function*(){if(!t||!(null==t?void 0:t.id))return;const i=this.me.dealer_id,o=t.id,r=[this.sel_user.user_id];try{yield this.divisionService.createMemberForDivision(i,o,r).toPromise()}catch(_){console.debug(_),this.commonService.showErrorToast(_,"Update Division")}})}removeDivisions(t){return(0,l.mG)(this,void 0,void 0,function*(){if(!t||!(null==t?void 0:t.division_id))return;const i=this.me.dealer_id,o=null==t?void 0:t.division_id,r=this.sel_user.user_id;try{yield this.divisionService.deleteMemberForDivision(i,o,r).toPromise()}catch(_){console.debug(_),this.commonService.showErrorToast(_,"Update Division")}})}updateIpUser(){this.usersService.updateIpUser(this.me.dealer_id,this.sel_user.user_id,this.new_data).subscribe(t=>{this.sel_user.firstname=this.new_data.name,this.sel_user.ip=this.new_data.ip,this.sel_user.access_id=this.new_data.access_id,this.sel_user.role_id=this.new_data.role_id},t=>this.errorDialog(t,"Update a IP user"))}focusName(){this.new_data.fullname=this.new_data.firstname,this.is_edit_name=!0,this.is_firstname=!0}unfocusFirstName(){this.is_firstname=!1,this.closeEditName()}focusLastName(){this.is_lastname=!0}unfocusLastName(){this.is_lastname=!1,this.closeEditName()}closeEditName(){setTimeout(t=>{this.is_firstname||this.is_lastname||(this.new_data.firstname=this.new_data.fullname,this.new_data.fullname=this.new_data.firstname+" "+this.new_data.lastname,this.is_edit_name=!1)},100)}initTimes(){this.is_workday_changed=!1,this.fetchWorkday(this.sel_user),this.times=new Array;for(let t=0;t<24;t++){let i=t<10?"0"+t:t;this.times.push({text:i+":00"}),this.times.push({text:i+":30"})}this.times.push({text:"24:00"})}toggleEnableDay(t){this.is_workday_changed=!0,t.enable=!t.enable}timeEvent(){this.is_workday_changed=!0}fetchWorkday(t){this.usersService.getUserWorkday(this.me.dealer_id,t.user_id).subscribe(i=>{this.workdays=new Array,0==i.length?this.usersService.createUserWorkday(this.me.dealer_id,t.user_id).subscribe(o=>{this.default_workdays.forEach(r=>{this.workdays.push({id:r.id,name:r.name,enable:r.enable,time_from:r.time_from,time_to:r.time_to})})},o=>console.log(o)):i.forEach((o,r)=>{let _=o.time_from?o.time_from.split(":"):this.default_workdays[o.weekday].time_from.split(":"),u=o.time_to?o.time_to.split(":"):this.default_workdays[o.weekday].time_to.split(":");this.workdays.push({name:this.default_workdays[o.weekday].name,enable:o.enable,time_from:_[0]+":"+_[1],time_to:u[0]+":"+u[1],id:o.id})})})}updateWorkday(){this.workdays.forEach((t,i)=>{this.usersService.updateUserWorkday(this.me.dealer_id,this.sel_user.user_id,t.id,{time_from:t.time_from+":00",time_to:t.time_to+":00",enable:t.enable}).subscribe(r=>{this.is_workday_changed=!1},r=>{this.errorDialog(r,"Update User Workday Info")})})}onSorted(t){if(!t.sortColumn||""===t.sortDirection)return;let i=[];i=this.search_user_list.length>0?this.search_user_list:this.filteredUsers,this.sort.sortColumn=t.sortColumn,this.sort.sortDirection=t.sortDirection;const o=i.sort((r,_)=>{const u="asc"===t.sortDirection;switch(t.sortColumn){case"nameLabel":return this.compare(r.nameLabel.toLowerCase(),_.nameLabel.toLowerCase(),u);case"roleLabel":return this.compare(r.roleLabel,_.roleLabel,u);case"accessLabel":return this.compare(r.accessLabel,_.accessLabel,u);case"invitationTimeStamp":return this.compare(r.invitationTimeStamp,_.invitationTimeStamp,u);case"ip":return this.compare(r.ip,_.ip,u);default:return 0}});this.search_user_list.length>0?this.search_user_list=o:this.filteredUsers=o,this.filter(0)}compare(t,i,o){return(t<i?-1:1)*(o?1:-1)}confirmDialog(t="",i="",o="done",r="green",_=!1){this.m_warning.data={header:t,contents:`\n <p>${i}</b></p>\n `,submit_btn:"OK",submit_class:["button-primary"],icon:o,isConfirm:!0,color:r},this.m_warning.data.submit_func=()=>{_&&this.fetchUserList()},this.m_warning.open()}errorDialog(t,i,o="failed."){t.error&&t.error.message&&(o=t.error.message),t._body&&(o=JSON.parse(t._body).message),setTimeout(()=>{this.confirmDialog(i,o,"warning","orange")},200)}}return n.\u0275fac=function(t){return new(t||n)(e.Y36(w.f),e.Y36(T.f),e.Y36(U.G),e.Y36(d.E),e.Y36(f._),e.Y36(g.v),e.Y36(b.W),e.Y36(y.I),e.Y36(p.gz))},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-users"]],viewQuery:function(t,i){if(1&t&&(e.Gf(N,5),e.Gf(J,5),e.Gf(S,5),e.Gf(z,5)),2&t){let o;e.iGM(o=e.CRH())&&(i.searcher=o.first),e.iGM(o=e.CRH())&&(i.searchInput=o.first),e.iGM(o=e.CRH())&&(i.permSelect=o.first),e.iGM(o=e.CRH())&&(i.divisionSelect=o.first)}},hostBindings:function(t,i){1&t&&e.NdJ("mousedown",function(r){return i.onGlobalClick(r)},!1,e.evT)},decls:3,vars:3,consts:[["class","sub-component",4,"ngIf"],[3,"modal"],[1,"sub-component"],[1,"widget-area"],["id","a40101",1,"widget",2,"position","relative","max-height","fit-content"],["class","loader absolute",4,"ngIf"],[1,"header"],[1,"title"],[1,"btn-area"],["class","button button-white",3,"click",4,"ngIf"],[1,"widget-body",2,"padding","10px 30px","box-sizing","border-box","height","100%","line-height","initial"],[1,"row",2,"overflow-y","visible"],[1,"user-tab"],["class","btn",3,"btn-selected","click",4,"ngFor","ngForOf"],[1,"search-container",3,"click"],["searcher",""],[1,"material-icons",2,"padding","6px 10px"],["autocomplete","off","type","text","placeholder","Search...",3,"ngModel","ngModelChange","keyup"],["searchInput",""],[1,"space"],[1,"filter-area"],[1,"combo-box",3,"mouseenter","mouseleave"],[1,"button",2,"padding","12px 16px","width","max-content"],[1,"material-icons","arrow"],[1,"combo-box-contents"],["class","list-item",3,"click",4,"ngFor","ngForOf"],[1,"list-item",3,"click"],[1,"material-icons",2,"margin-right","12px"],["class","table-container","style","overflow:initial;",4,"ngIf"],["class","table-container",4,"ngIf"],[1,"loader","absolute"],["viewBox","25 25 50 50",1,"circular"],["cx","50","cy","50","r","20","fill","none","stroke-width","4","stroke-miterlimit","10",1,"path"],[1,"button","button-white",3,"click"],[1,"btn-inner"],[1,"btn",3,"click"],[1,"tab-title"],["class","tab-selected-bar",4,"ngIf"],[1,"tab-selected-bar"],[1,"table-container",2,"overflow","initial"],["sortable-table","",1,"table-header",3,"sorted"],["width","6%"],["width","25%"],["width","15%",4,"ngIf"],["width","20%"],["width","15%"],["width","14%"],["width","5%"],["sortable-column","nameLabel"],["sortable-column","nameLabel",4,"ngIf"],["sortable-column","roleLabel"],["sortable-column","accessLabel"],["sortable-column","invitationTimeStamp"],[1,"table-body",2,"overflow","initial"],[4,"ngIf"],[1,"pagination-area"],[1,"pagination"],[2,"cursor","pointer",3,"click"],["style","cursor: pointer;",3,"active","click",4,"ngFor","ngForOf"],["style","float:right; font-size:13px;",4,"ngIf"],["class","has-child",3,"click",4,"ngFor","ngForOf"],[1,"has-child",3,"click"],[3,"src","error",4,"ngIf"],["class","no-face",4,"ngIf"],["class","sub-contents",4,"ngIf"],["class","more-content v-center",4,"ngIf"],[3,"src","error"],[1,"no-face"],[2,"padding-top","8px"],[1,"sub-contents"],[1,"flex","v-center",2,"gap","8px"],["class","user-division-tag",4,"ngFor","ngForOf"],[1,"user-division-tag"],[1,"invited"],[1,"more-content","v-center"],[1,"material-icons-outlined","more-icon"],[1,"more"],[1,"btn-area",2,"justify-content","flex-end","flex-direction","column"],["class","button button-danger mb-7",3,"click",4,"ngIf"],["class","button button-primary",3,"click",4,"ngIf"],[1,"button","button-danger","mb-7",3,"click"],[1,"button","button-primary",3,"click"],["colspan","6",1,"center"],[2,"float","right","font-size","13px"],[1,"table-container"],["sortable-column","ip"],[1,"table-body"],[2,"font-weight","bold"],["class","button",3,"click",4,"ngIf"],["class","button","style","margin-right: 4px;",3,"click",4,"ngIf"],[2,"padding-top","10px"],[1,"button",3,"click"],[1,"material-icons"],[1,"button",2,"margin-right","4px",3,"click"],[1,"back-icon"],[1,"btn-area",3,"click"],[1,"button","button-white"],[1,"material-icons",2,"font-size","16px"],[1,"widget-area",2,"gap","12px"],[1,"col",2,"align-items","center"],[1,"widget",2,"width","98%"],["class","button button-primary",3,"disabled","click",4,"ngIf"],["class","button button-danger",3,"click",4,"ngIf"],[1,"body"],[1,"contents",2,"font-size","18px","margin","0 0 8px 8px","justify-content","space-between","min-height","70px"],[2,"display","flex","align-items","center"],["class","face","style","width: 64px; height: 64px;",3,"src","error",4,"ngIf"],["class","no-face","style","min-width: 64px; min-height: 64px;",4,"ngIf"],[2,"margin-left","12px","font-size","20px","color","#777"],["style","padding-top: 28px;",4,"ngIf"],["class","col","style","align-items: center;",4,"ngIf"],[1,"button","button-danger",3,"click"],[1,"face",2,"width","64px","height","64px",3,"src","error"],[1,"no-face",2,"min-width","64px","min-height","64px"],[2,"padding-top","16px","font-size","28px"],[1,"user-item"],[1,"contents"],["class","user-item","style","padding-bottom:20px",4,"ngIf"],[2,"width","50%",3,"ngModel","ngModelChange"],[3,"value",4,"ngFor","ngForOf"],[1,"item"],[1,"contents",2,"cursor","pointer",3,"click"],["class","material-icons",4,"ngIf"],[1,"user-item",2,"padding-bottom","20px"],["style","margin-right: 50px",3,"ngModel","labelPosition","ngModelChange","change",4,"ngIf"],["class","setting-item","style","position: relative;",4,"ngIf"],["class","flex v-center","style","font-size: 14px; margin-left: 8px",4,"ngIf"],[2,"margin-right","50px",3,"ngModel","labelPosition","ngModelChange","change"],[1,"default-label"],[1,"setting-item",2,"position","relative"],[2,"width","420px"],["divisionSelect",""],[1,"chip-container",3,"click"],["xmlns","http://www.w3.org/2000/svg","height","24px","viewBox","0 0 24 24","width","24px","fill","#000000",2,"top","4px","position","absolute","right","25px"],["d","M12 4L16.58 8.59L15.17 10L12 6.83L8.83 10L7.41 8.59L12 4Z"],["d","M12 17.17L15.17 14 L16.59 15.41L12 20L7.42 15.41L8.83 14L12 17.17Z"],["class","chip-objects",4,"ngIf"],["class","chip-select",4,"ngIf"],[1,"chip-objects"],["class","chip",4,"ngFor","ngForOf"],[1,"chip"],["class","material-icons close-icon",3,"click",4,"ngIf"],[1,"material-icons","close-icon",3,"click"],[1,"chip-select"],["class","chip-select-option",4,"ngIf"],["class","chip-select-option",3,"selected","click",4,"ngFor","ngForOf"],[1,"chip-select-option"],[1,"chip-select-option",3,"click"],[1,"flex","between",2,"width","100%"],[1,"ellipsis"],[1,"flex","v-center",2,"font-size","14px","margin-left","8px"],[1,"material-icons",2,"color","orange","margin-right","4px"],[2,"color","#CD3D64"],[3,"value"],[2,"padding-top","28px"],[1,"contents","pt-0",2,"flex-direction","column","align-items","initial"],["autocomplete","off",2,"font-size","15px",3,"ngModel","ngModelChange"],[2,"display","flex"],[2,"font-size","12px"],[2,"width","12px"],[1,"link",2,"font-size","12px",3,"click"],[1,"contents","pt-0"],[1,"contents","pt-0",2,"overflow","initial"],[1,"unselectable","relative",2,"width","100%"],["permSelect",""],[1,"selectbox","label",2,"padding","6px 16px","width","100%",3,"click"],["xmlns","http://www.w3.org/2000/svg","height","24px","viewBox","0 0 24 24","width","24px","fill","#000000"],["class","search-list","style","max-height: 270px;",4,"ngIf"],[1,"search-list",2,"max-height","270px"],["class","search-result has-child",3,"click",4,"ngFor","ngForOf"],[1,"search-result","has-child",3,"click"],[1,"widget",2,"width","100%"],["class","contents",4,"ngFor","ngForOf"],[1,"enable-btn",3,"click"],[1,"day"],[3,"ngModel","ngModelChange","change"],[1,"to"]],template:function(t,i){1&t&&(e.YNc(0,we,45,25,"div",0),e.YNc(1,at,30,9,"div",0),e._UZ(2,"dealer-warning",1)),2&t&&(e.Q6J("ngIf","list"==i.mode),e.xp6(1),e.Q6J("ngIf","detail"==i.mode),e.xp6(1),e.Q6J("modal",i.m_warning))},directives:[c.O5,k.a,c.sg,x.Fj,x.JJ,x.On,I.Q,D.a,x.EJ,q.Rr,x.YN,x.Kr],pipes:[c.uU],styles:['.scroll-screen[_ngcontent-%COMP%]{flex:1;flex-direction:column;overflow-y:overlay;height:100%;position:relative;padding:7px;-webkit-user-select:none;user-select:none;display:flex;align-items:center}.row[_ngcontent-%COMP%]{flex-direction:row;display:flex;height:100%;overflow-y:overlay;transition:.5s}.col[_ngcontent-%COMP%]{flex-direction:column;display:flex;flex:1;height:100%}.customer-widget-area[_ngcontent-%COMP%] .col[_ngcontent-%COMP%]{min-width:300px}.customer-widget-area[_ngcontent-%COMP%] .col[_ngcontent-%COMP%]:only-child{min-width:600px}.customer-widget-area.deactivated[_ngcontent-%COMP%] .col[_ngcontent-%COMP%]{height:calc(100% - 43px)}.col[_ngcontent-%COMP%] .widget[_ngcontent-%COMP%]{min-width:300px}.sub-nav[_ngcontent-%COMP%]{position:relative;left:0px;transition:all ease-in-out .3s;min-width:250px;max-width:250px;flex:1;background:#fff;border-right:.5px solid #d7d7d7;display:flex;flex-direction:column;overflow-y:overlay;z-index:3}.sub-nav[_ngcontent-%COMP%]:focus{outline:none}.sub-nav[_ngcontent-%COMP%] .row[_ngcontent-%COMP%]{height:initial;flex:initial;align-items:center}.sub-nav[_ngcontent-%COMP%] .col[_ngcontent-%COMP%]{overflow-y:overlay}.sub-nav[_ngcontent-%COMP%] .search[_ngcontent-%COMP%]{padding:6px 12px 6px 0;box-sizing:border-box;border:0;background-color:transparent;background-size:24px;background-position:4px 8px;background-repeat:no-repeat;flex:1}.sub-nav[_ngcontent-%COMP%] .button[_ngcontent-%COMP%]{margin-right:8px;color:#777;transition:.2s}.sub-nav[_ngcontent-%COMP%] .button[_ngcontent-%COMP%]:hover{cursor:pointer;color:#000}.sub-nav[_ngcontent-%COMP%] .badge[_ngcontent-%COMP%]{background-color:red;color:#fff;width:8px;height:14px;margin-left:8px;padding:2px 4px 2px 5px;border-radius:4px;font-size:12px}.sub-nav[_ngcontent-%COMP%] .plan-badge[_ngcontent-%COMP%]{background-color:red;width:6px;height:6px;margin-left:4px;border-radius:10px}.sub-nav[_ngcontent-%COMP%] .list-category[_ngcontent-%COMP%]{padding:24px 0 7px 20px;color:#2f96fb;font-size:14px;text-transform:uppercase}.sub-nav[_ngcontent-%COMP%] .list-category[_ngcontent-%COMP%]:first-child{padding:30px 0 7px 20px;color:#2f96fb;font-size:14px}.sub-nav[_ngcontent-%COMP%] .list-item[_ngcontent-%COMP%]{display:flex;align-items:center;color:#0009;cursor:pointer}.sub-nav[_ngcontent-%COMP%] .list-item[_ngcontent-%COMP%]:hover{background:rgba(0,0,0,.05)}.sub-nav[_ngcontent-%COMP%] .list-item[_ngcontent-%COMP%]:hover.settings{background:transparent}.sub-nav[_ngcontent-%COMP%] .list-item-selected[_ngcontent-%COMP%]{background:#dcf0fd!important;color:#000000de}.sub-nav[_ngcontent-%COMP%] .list-item-selected[_ngcontent-%COMP%]:after{background-color:#2f96fb}.sub-nav[_ngcontent-%COMP%] .list-item-selected.settings[_ngcontent-%COMP%]{background:transparent!important;color:#000000de;font-weight:500;color:#2f96fb}.sub-nav[_ngcontent-%COMP%] .menu-label[_ngcontent-%COMP%]{display:flex;font-size:14px;padding:7px 0 7px 15px}.sub-nav[_ngcontent-%COMP%] .menu-label.settings[_ngcontent-%COMP%]{padding-left:16px;width:100%;margin:0 4px;border-radius:4px}.sub-nav[_ngcontent-%COMP%] .menu-label.settings[_ngcontent-%COMP%]:hover{padding:8px 16px;background:#e8eaed}.sub-nav[_ngcontent-%COMP%] .menu-label.settings.selected-label[_ngcontent-%COMP%]{width:100%;margin:0 4px;padding:8px 12px;border-radius:4px;font-weight:500;color:#2f96fb}.sub-nav[_ngcontent-%COMP%] .menu-label.settings.selected-label[_ngcontent-%COMP%]:hover{padding:8px 12px;background:#dcf0fd}.sub-nav[_ngcontent-%COMP%] .select-mark[_ngcontent-%COMP%]{background-color:#2f96fb}.sub-nav[_ngcontent-%COMP%] .select-mark.settings[_ngcontent-%COMP%]{background-color:#2383e2;width:4px;min-height:30px;height:30px;border-radius:4px}.component-body[_ngcontent-%COMP%]{position:relative;flex:5;height:100%;flex-direction:column;display:flex;transition:all ease-in-out .3s}.component-body-no-data[_ngcontent-%COMP%]{flex:5;height:100%;flex-direction:column;align-items:center;justify-content:center;display:flex}.tab[_ngcontent-%COMP%]{height:60px;color:#888;background:#f7f7fc;box-shadow:0 4px 2px -2px #888;display:flex;align-items:center;z-index:1}.tab[_ngcontent-%COMP%] .button[_ngcontent-%COMP%]{display:flex;align-items:center;height:100%;position:relative}.tab[_ngcontent-%COMP%] .button[_ngcontent-%COMP%]:hover{color:#2383e2;cursor:pointer}.tab[_ngcontent-%COMP%] .button-selected[_ngcontent-%COMP%]{color:#2383e2}.tab[_ngcontent-%COMP%] .icn-button[_ngcontent-%COMP%]{padding:0 16px}.tab[_ngcontent-%COMP%] .icn-button-active[_ngcontent-%COMP%]{color:#000}.tab[_ngcontent-%COMP%] .tab-title[_ngcontent-%COMP%]{padding:0 32px;text-transform:capitalize;font-size:14px}.tab[_ngcontent-%COMP%] .tab-selected-bar[_ngcontent-%COMP%]{position:absolute;bottom:-2px;width:100%;height:4px;background:#2383e2}.plan-upgrade-badge[_ngcontent-%COMP%]{background:linear-gradient(90deg,#2A517E 17.88%,#1E88E5 69.03%);border-radius:10px;padding:2px 6px;margin-left:-8px;color:#fff;font-size:12px;font-weight:400;cursor:pointer}.customer-tab[_ngcontent-%COMP%]{color:#7a7a7a;background:#fff;border-bottom:1px solid rgba(0,0,0,.1);display:flex;align-items:center;z-index:1;font-weight:500;font-size:14px;flex-flow:wrap}.customer-tab[_ngcontent-%COMP%] .button[_ngcontent-%COMP%]{display:flex;align-items:center;height:50px;position:relative;cursor:pointer}.customer-tab[_ngcontent-%COMP%] .button-selected[_ngcontent-%COMP%]{color:#1e88e5;font-weight:500}.customer-tab[_ngcontent-%COMP%] .icn-button[_ngcontent-%COMP%]{padding:0 16px}.customer-tab[_ngcontent-%COMP%] .icn-button-active[_ngcontent-%COMP%]{color:#000}.customer-tab[_ngcontent-%COMP%] .tab-title[_ngcontent-%COMP%]{padding:8px 20px;text-transform:capitalize;font-size:14px;font-weight:400}.customer-tab[_ngcontent-%COMP%] .tab-title.selected[_ngcontent-%COMP%]{font-weight:500}.customer-tab[_ngcontent-%COMP%] .tab-title[_ngcontent-%COMP%]:hover{background:#e8eaed;border-radius:7px}.customer-tab[_ngcontent-%COMP%] .tab-selected-bar[_ngcontent-%COMP%]{position:absolute;bottom:-2px;width:100%;height:3px;background:#2383e2}.setting-tab[_ngcontent-%COMP%]{height:41px;box-sizing:border-box;color:#7a7a7a;background:#fff;display:flex;flex-direction:row;align-items:center;z-index:1;font-size:14px;font-weight:500;justify-content:space-between;border-bottom:1px solid rgba(0,0,0,.1);background-color:#fbfbfa}.setting-tab[_ngcontent-%COMP%] .button[_ngcontent-%COMP%]{display:flex;align-items:center;height:100%;position:relative;cursor:pointer}.setting-tab[_ngcontent-%COMP%] .button-selected[_ngcontent-%COMP%]{color:#000}.setting-tab[_ngcontent-%COMP%] .button-selected-red[_ngcontent-%COMP%]{color:#f67474}.setting-tab[_ngcontent-%COMP%] .icn-button[_ngcontent-%COMP%]{padding:0 16px}.setting-tab[_ngcontent-%COMP%] .icn-button-active[_ngcontent-%COMP%]{color:#000}.setting-tab[_ngcontent-%COMP%] .tab-title[_ngcontent-%COMP%]{padding:5px 20px;text-transform:capitalize;font-size:13px;font-weight:400;margin:0 1px}.setting-tab[_ngcontent-%COMP%] .tab-title[_ngcontent-%COMP%]:hover{background:#e8eaed;border-radius:5px}.setting-tab[_ngcontent-%COMP%] .tab-selected-bar[_ngcontent-%COMP%]{position:absolute;width:100%;bottom:0;height:4px;background:#2383e2;border-radius:4px}.setting-tab[_ngcontent-%COMP%] .tab-selected-bar-red[_ngcontent-%COMP%]{position:absolute;width:100%;bottom:0;height:5px;background:#f67474}.btn-icon[_ngcontent-%COMP%]{color:#7c7c7c;background-color:#f1f1f1;cursor:pointer}.btn-icon[_ngcontent-%COMP%]:hover{color:#7c7c7c;background-color:#efeff6}.space[_ngcontent-%COMP%]{flex:1}.sub-component[_ngcontent-%COMP%]{flex:1;display:flex;flex-direction:column;width:100%;height:100%}.widget-area[_ngcontent-%COMP%]{flex-direction:row;display:flex;height:100%;flex:1;overflow-y:overlay;padding:20px 30px;flex-wrap:wrap;justify-content:center;box-sizing:border-box}.customer-widget-area[_ngcontent-%COMP%]{position:absolute;height:auto;bottom:0;top:0;left:0;right:0;flex-direction:row;display:flex;flex:1;overflow:initial;padding:14px;box-sizing:border-box;flex-wrap:wrap;justify-content:center}.customer-widget-area.deactivated[_ngcontent-%COMP%]{padding:0 7px 7px}.wcs-widget-area[_ngcontent-%COMP%]{position:absolute;height:auto;bottom:0;top:0;left:0;right:0;flex-direction:row;display:flex;flex:1;overflow-y:overlay;padding:12px;flex-wrap:wrap;align-items:center;grid-gap:12px;gap:12px}.wcs-widget-area[_ngcontent-%COMP%] .col[_ngcontent-%COMP%]{align-items:center}.setting-widget[_ngcontent-%COMP%]{height:calc(100% - 44px)}.setting-router[_ngcontent-%COMP%]{width:100%;flex:1;position:relative;overflow:auto;overflow-y:overlay}.container[_ngcontent-%COMP%]{width:calc(100% - 14px);height:100%;display:flex;flex-direction:column;align-items:center;padding:7px}.widget[_ngcontent-%COMP%]{flex:1;display:flex;flex-direction:column;max-width:1400px;min-width:300px;max-height:calc(100% - 15px);background:white;transition:.5s;border-radius:3px;border:1px solid rgba(0,0,0,.1);margin:0 5px 10px}.widget[_ngcontent-%COMP%]:last-child{margin:0 5px}.widget[_ngcontent-%COMP%]:only-child{min-width:600px}.widget[_ngcontent-%COMP%] .header[_ngcontent-%COMP%]{display:flex;flex-direction:row;align-items:center;border-bottom:solid 1px rgba(0,0,0,.1)}.widget[_ngcontent-%COMP%] .widget-body[_ngcontent-%COMP%]{display:flex;flex-direction:column;height:calc(100% - 108px);padding:20px}.widget[_ngcontent-%COMP%] .widget-body[_ngcontent-%COMP%] .item[_ngcontent-%COMP%]{padding-bottom:14px}.widget-item[_ngcontent-%COMP%]{flex:none;font-size:14px;color:#000000de}.widget-item[_ngcontent-%COMP%] .widget-body[_ngcontent-%COMP%]{padding:14px 30px}.widget[_ngcontent-%COMP%] .desc[_ngcontent-%COMP%]{font-size:14px;color:#0009;margin-bottom:7px}.widget[_ngcontent-%COMP%] .label[_ngcontent-%COMP%]{width:200px;font-size:14px;color:#0009}.widget[_ngcontent-%COMP%] .item-row[_ngcontent-%COMP%]{display:flex;padding:7px 0}.widget[_ngcontent-%COMP%] .bottom-line[_ngcontent-%COMP%]{border-bottom:solid 1px rgba(0,0,0,.1)}.scroll-widget[_ngcontent-%COMP%]{max-height:initial}.item[_ngcontent-%COMP%] .w-1[_ngcontent-%COMP%]{width:10%}.item[_ngcontent-%COMP%] .w-2[_ngcontent-%COMP%]{width:20%}.item[_ngcontent-%COMP%] .w-3[_ngcontent-%COMP%]{width:30%}.item[_ngcontent-%COMP%] .w-4[_ngcontent-%COMP%]{width:40%}.item[_ngcontent-%COMP%] .w-5[_ngcontent-%COMP%]{width:50%}.item[_ngcontent-%COMP%] .fs-12[_ngcontent-%COMP%]{font-size:12px}.item[_ngcontent-%COMP%] .right-align[_ngcontent-%COMP%]{text-align:right}.item[_ngcontent-%COMP%] .contents[_ngcontent-%COMP%]{display:flex;padding:8px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;vertical-align:middle;font-size:14px}.item[_ngcontent-%COMP%] .contents[_ngcontent-%COMP%] select[_ngcontent-%COMP%]{width:80%;box-sizing:border-box;padding:8px;font-size:14px;background-color:#f0f0f0;border:none;border-bottom:2px solid #f0f0f0;-webkit-appearance:none;-moz-appearance:none;transition:.2s}.item[_ngcontent-%COMP%] .contents[_ngcontent-%COMP%] select[_ngcontent-%COMP%]:focus{outline:none;border-bottom:2px solid #2383e2}.item[_ngcontent-%COMP%] .contents[_ngcontent-%COMP%] .search-icon[_ngcontent-%COMP%]{position:absolute;left:12px;top:12px;color:#00000080}.item[_ngcontent-%COMP%] .contents[_ngcontent-%COMP%] .search-box[_ngcontent-%COMP%]{width:100%;padding-left:32px}.item[_ngcontent-%COMP%] .contents[_ngcontent-%COMP%] .button[_ngcontent-%COMP%]{cursor:pointer}.cell[_ngcontent-%COMP%]{padding-bottom:14px}.widget[_ngcontent-%COMP%] .widget-bottom[_ngcontent-%COMP%]{display:flex;padding-top:6px}.table-area[_ngcontent-%COMP%]{height:100%;overflow:overlay}.table-container[_ngcontent-%COMP%]{display:flex;height:100%;flex-direction:column;overflow-y:hidden}table.table-header[_ngcontent-%COMP%]:after{border-collapse:separate}.table-container[_ngcontent-%COMP%] .table-header[_ngcontent-%COMP%]{min-height:31px;background-color:#f7fafc;border-bottom:solid 1px rgba(0,0,0,.1);border-top:solid 1px rgba(0,0,0,.1);box-sizing:border-box}.table-container[_ngcontent-%COMP%] .table-header.no-top-border[_ngcontent-%COMP%]{border-top:0}.table-container[_ngcontent-%COMP%] .table-header[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{padding:10px 7px}.table-container[_ngcontent-%COMP%] .table-header[_ngcontent-%COMP%] th[_ngcontent-%COMP%]:first-child{padding:10px 7px 10px 20px}.table-container[_ngcontent-%COMP%] .table-header[_ngcontent-%COMP%] th[_ngcontent-%COMP%]:last-child{padding:10px 20px 10px 7px}.table-container[_ngcontent-%COMP%] .table-body[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{padding:7px}.table-container[_ngcontent-%COMP%] .table-body[_ngcontent-%COMP%] td[_ngcontent-%COMP%]:first-child{padding:7px 7px 7px 20px}.table-container[_ngcontent-%COMP%] .table-body[_ngcontent-%COMP%] td[_ngcontent-%COMP%]:last-child{padding:7px 20px 7px 7px}.table-container[_ngcontent-%COMP%] .table-header-v2[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{padding:10px 7px}.table-container[_ngcontent-%COMP%] .table-header-v2[_ngcontent-%COMP%] th[_ngcontent-%COMP%]:first-child{padding:10px 7px 10px 20px}.table-container[_ngcontent-%COMP%] .table-header-v2[_ngcontent-%COMP%] th[_ngcontent-%COMP%]:last-child{padding:10px 20px 10px 7px}.table-container[_ngcontent-%COMP%] .table-body-v2[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{padding:7px}.table-container[_ngcontent-%COMP%] .table-body-v2[_ngcontent-%COMP%] td[_ngcontent-%COMP%]:first-child{padding:7px 7px 7px 20px}.table-container[_ngcontent-%COMP%] .table-body-v2[_ngcontent-%COMP%] td[_ngcontent-%COMP%]:last-child{padding:7px 20px 7px 7px}table.table-header-v2[_ngcontent-%COMP%]:after{border-collapse:separate}.table-container[_ngcontent-%COMP%] .table-body[_ngcontent-%COMP%]{width:100%;max-height:calc(100% - 30px);flex:1;overflow-y:overlay}.table-container[_ngcontent-%COMP%] .no-record[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;padding:7px 0}.header[_ngcontent-%COMP%] .title[_ngcontent-%COMP%]{flex:1;font-size:16px;padding:12px 20px;color:#000000de}.header[_ngcontent-%COMP%] .btn-area[_ngcontent-%COMP%]{padding:7px 16px}.header[_ngcontent-%COMP%] .button-selected[_ngcontent-%COMP%]{color:#000}.header[_ngcontent-%COMP%] .button-disable[_ngcontent-%COMP%]:hover{color:#aaa;cursor:default;pointer-events:none}.header[_ngcontent-%COMP%] .button-primary[_ngcontent-%COMP%]{color:#1e90ff}.header[_ngcontent-%COMP%] .button-primary[_ngcontent-%COMP%]:hover{color:#30b0ff}.widget[_ngcontent-%COMP%] .body[_ngcontent-%COMP%]{flex:1;padding:14px 16px;overflow-y:overlay}.body-center[_ngcontent-%COMP%]{position:relative;flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center}.body-center[_ngcontent-%COMP%] .image[_ngcontent-%COMP%]{text-align:center}.body-center[_ngcontent-%COMP%] .image[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{font-size:30px;color:#2383e2}.body-center[_ngcontent-%COMP%] .description[_ngcontent-%COMP%]{margin-bottom:14px;font-size:14px;color:#0009;text-align:center;line-height:1.5}.body-center[_ngcontent-%COMP%] .description[_ngcontent-%COMP%] .title[_ngcontent-%COMP%]{margin-bottom:8px;font-size:18px;color:#000000de}.body[_ngcontent-%COMP%] .title[_ngcontent-%COMP%]{font-size:14px;color:#777}.body[_ngcontent-%COMP%] > .contents[_ngcontent-%COMP%]{font-size:15px;color:#333;margin-top:4px;padding:4px 0;display:flex;min-height:24px;align-items:center}.body[_ngcontent-%COMP%] .editable[_ngcontent-%COMP%]{border-bottom:1px solid #fff;transition:.5s}.body[_ngcontent-%COMP%] .editable[_ngcontent-%COMP%]:hover{cursor:text;border-bottom:1px solid #ccc}.body[_ngcontent-%COMP%] .selectbox[_ngcontent-%COMP%]{color:#777;padding:16px;box-shadow:0 0 2px #888;transition:.2s;cursor:pointer;display:flex;flex-direction:row}.body[_ngcontent-%COMP%] .selectbox[_ngcontent-%COMP%]:hover{color:#333;box-shadow:0 0 6px #888}.widget[_ngcontent-%COMP%] .search[_ngcontent-%COMP%]{margin:12px;padding:12px 12px 12px 36px;box-sizing:border-box;border:0;border-bottom:2px solid #ddd;background-color:transparent;background-image:url(/assets/icons/ic_search_72pt.png);background-size:24px;background-position:4px 8px;background-repeat:no-repeat;flex:1;transition:.3s}.widget[_ngcontent-%COMP%] .search[_ngcontent-%COMP%]:focus{outline:none;border-bottom:2px solid #777}.widget[_ngcontent-%COMP%] .filter-area[_ngcontent-%COMP%]{flex:1;display:flex;align-items:center;flex-direction:row-reverse}.tab[_ngcontent-%COMP%] .combo-box[_ngcontent-%COMP%]{display:flex}.filter-area[_ngcontent-%COMP%] .combo-box[_ngcontent-%COMP%]{color:#777;font-size:14px;padding:0 8px 0 0;text-align:right;position:relative;cursor:pointer}.header[_ngcontent-%COMP%] .combo-box[_ngcontent-%COMP%]{color:#777;font-size:14px;text-align:right;position:relative;cursor:pointer}.combo-box[_ngcontent-%COMP%] > .button[_ngcontent-%COMP%]{transition:.2s}.combo-box[_ngcontent-%COMP%] > .button-active[_ngcontent-%COMP%]{color:#000}.combo-box[_ngcontent-%COMP%] .arrow[_ngcontent-%COMP%]{vertical-align:middle}.combo-box-contents[_ngcontent-%COMP%]{position:absolute;right:16px;z-index:101;text-align:left;box-sizing:border-box;background-color:#fff;transition:.2s;box-shadow:0 2px 4px #00000080;border:solid 1px #d9d9d9;border-radius:5px}.combo-box-contents[_ngcontent-%COMP%] .items[_ngcontent-%COMP%]{cursor:pointer;padding:8px;color:#333;font-size:12px}.combo-box-contents[_ngcontent-%COMP%] .items[_ngcontent-%COMP%]:hover{background:#eee}.list[_ngcontent-%COMP%]{display:flex;flex-direction:row;align-items:center;border-bottom:1px solid rgba(0,0,0,.1);min-height:28px;transition:.1s;padding:10px 20px}.list.locked-list[_ngcontent-%COMP%]{background-color:#f7fafc}.list-group[_ngcontent-%COMP%]:hover{background-color:#fafcff}.list-bottom-clear[_ngcontent-%COMP%]{border-bottom:none}.list-bottom-line[_ngcontent-%COMP%]{border-bottom:1px solid #aaa}.widget[_ngcontent-%COMP%] .list[_ngcontent-%COMP%]:hover{background:#f5f5f5;cursor:pointer}.widget[_ngcontent-%COMP%] .list.locked-list[_ngcontent-%COMP%]:hover{background:#F7FAFC;cursor:initial}.list[_ngcontent-%COMP%] > .contents[_ngcontent-%COMP%]{padding:12px 0;font-size:14px;color:#333;flex:1}.list[_ngcontent-%COMP%] > .stat-contents[_ngcontent-%COMP%]{padding:12px 0;float:right;font-size:13px;color:#aaa}.list[_ngcontent-%COMP%] > .button-contents[_ngcontent-%COMP%]{padding:12px 0;float:right;font-size:13px}.list[_ngcontent-%COMP%] > .button-contents[_ngcontent-%COMP%]:hover{opacity:.8}.list[_ngcontent-%COMP%] > .icon[_ngcontent-%COMP%]{display:flex;align-items:center;margin:0 10px 0 6px;height:40px}.list[_ngcontent-%COMP%] .status-bar[_ngcontent-%COMP%]{width:8px;background:#aaa}.contents[_ngcontent-%COMP%] > .contents-small[_ngcontent-%COMP%]{margin-left:4px;font-size:11px;color:#555}.contents[_ngcontent-%COMP%] .sub-contents[_ngcontent-%COMP%]{font-size:12px;color:#0009;margin-top:6px}.widget[_ngcontent-%COMP%] .row[_ngcontent-%COMP%]{height:initial;align-items:center}.widget[_ngcontent-%COMP%] table[_ngcontent-%COMP%]{width:100%;border-collapse:collapse}.widget[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{padding:10px 7px;color:#56657bde;text-transform:uppercase;text-align:left;font-size:13px;font-weight:normal}.widget[_ngcontent-%COMP%] tr[_ngcontent-%COMP%]{border-bottom:1px rgba(0,0,0,.1) solid}.widget[_ngcontent-%COMP%] tr[_ngcontent-%COMP%]:last-child{border-bottom:none}.widget[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{font-size:14px;color:#000000de;padding:7px}td[_ngcontent-%COMP%] .sub-contents[_ngcontent-%COMP%]{font-size:11px;color:#888;margin-top:4px}td[_ngcontent-%COMP%] .edit-btn[_ngcontent-%COMP%]{cursor:pointer;color:#1e90ff}td[_ngcontent-%COMP%] .delete-btn[_ngcontent-%COMP%]{cursor:pointer;color:#f1556c}table[_ngcontent-%COMP%] .button[_ngcontent-%COMP%]{float:right;color:#bbb;transition:.2s;cursor:pointer}table[_ngcontent-%COMP%] .button[_ngcontent-%COMP%]:hover{color:#333}table[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{border-radius:50%;width:35px;height:35px}.div-table-header[_ngcontent-%COMP%]{display:flex;height:30px;border-style:solid;border-width:1px;border-image-source:linear-gradient(to bottom,#dfdfdf,#bcbcbc);border-image-slice:1;border-collapse:separate;background-image:linear-gradient(to bottom,#f7f7f7,#ececed);font-size:14px;align-items:center}.div-table-header[_ngcontent-%COMP%] .div-table-head[_ngcontent-%COMP%]{padding:7px 16px}.face[_ngcontent-%COMP%]{border-radius:50%;width:28px;height:28px;display:inline-block;margin-right:8px;vertical-align:middle}.folding-list[_ngcontent-%COMP%]{cursor:pointer}.folding-list[_ngcontent-%COMP%] .icon[_ngcontent-%COMP%]{vertical-align:middle;margin-right:8px}.folding-list[_ngcontent-%COMP%] .contents[_ngcontent-%COMP%]{color:#555;font-size:16px;padding:12px 0;border-bottom:1px solid #aaa;transition:.1s;height:54px}.folding-list[_ngcontent-%COMP%] .contents[_ngcontent-%COMP%]:hover{background:#f5f5f5}.folding-list[_ngcontent-%COMP%] .sub-list-title[_ngcontent-%COMP%]{margin-left:16px;padding:12px 0 4px;color:#777;font-size:12px;font-weight:bold;border-bottom:1px solid #ccc;display:flex}.folding-list[_ngcontent-%COMP%] .sub-list[_ngcontent-%COMP%]{margin-left:16px;padding:8px 0;color:#333;font-size:14px;border-bottom:1px solid #ccc;transition:.1s;display:flex}.folding-list[_ngcontent-%COMP%] .sub-list[_ngcontent-%COMP%]:hover{background:#f5f5f5}.folding-list[_ngcontent-%COMP%] .sub-list-selected[_ngcontent-%COMP%]{background:#f5f5f5}.empty-contents[_ngcontent-%COMP%]{font-size:16px;color:#bbb;font-weight:bold;text-transform:uppercase}.body[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{flex:1;box-sizing:border-box;padding:4px;border:0;border-bottom:1px solid #ccc;background:rgba(0,0,0,0);transition:.2s}.body[_ngcontent-%COMP%] input[_ngcontent-%COMP%]:focus{outline:none;border-bottom:1px solid #777}.body[_ngcontent-%COMP%] .hidden-input[_ngcontent-%COMP%]{padding:4px 0;border-bottom:1px solid #fff;background:rgba(0,0,0,0)}.body[_ngcontent-%COMP%] .hidden-input[_ngcontent-%COMP%]:hover{border-bottom:1px solid #777}.dropdown[_ngcontent-%COMP%]{font-size:14px;position:relative;flex:1}.dropdown-contents[_ngcontent-%COMP%]{position:absolute;width:100%;margin-top:8px;left:0px;z-index:100;text-align:left;box-sizing:border-box;background-color:#fff;box-shadow:0 1px 13px 1px #0003;transition:.2s}.dropdown-contents[_ngcontent-%COMP%] > .list-item[_ngcontent-%COMP%]{cursor:pointer;padding:8px;color:#333;font-size:14px;display:flex;align-items:center}.dropdown-contents[_ngcontent-%COMP%] > .list-item[_ngcontent-%COMP%]:hover{background:#eee}.dropdown[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{width:100%;background:rgba(0,0,0,0)}.face[_ngcontent-%COMP%]{border-radius:50%;width:32px;height:32px;margin-right:8px}.no-face[_ngcontent-%COMP%]{border-radius:50%;width:38x;height:38px;min-width:38px;min-height:38px;background-color:#ccc;display:inline-block;margin-right:8px;vertical-align:middle;color:#fff;text-align:center;text-transform:uppercase}.calendar[_ngcontent-%COMP%]{width:100%}.contents[_ngcontent-%COMP%] > .button[_ngcontent-%COMP%]{color:#777;transition:.2s;cursor:pointer}.contents[_ngcontent-%COMP%] > .button[_ngcontent-%COMP%]:hover{color:#333}.list[_ngcontent-%COMP%] > .button[_ngcontent-%COMP%]{display:flex;width:32px;height:32px;justify-content:center;align-items:center;padding:5px;color:#777;transition:.2s;cursor:pointer;border-radius:21px}.list[_ngcontent-%COMP%] > .button[_ngcontent-%COMP%]:hover{color:#333;background:rgba(0,0,0,.05)}.btn-danger[_ngcontent-%COMP%]{color:#f1556d}.btn-danger[_ngcontent-%COMP%]:hover{color:#f47185}.svg-icon[_ngcontent-%COMP%]{font-size:24px;color:#000;width:1em;height:1em;position:relative}.svg-icon[_ngcontent-%COMP%] svg[_ngcontent-%COMP%]{fill:currentColor;width:100%;height:100%;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}.png-icon[_ngcontent-%COMP%]{width:36px;height:36px;position:relative}.png-icon[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{max-width:100%;max-height:100%}.child-item[_ngcontent-%COMP%]{padding-left:24px}.title[_ngcontent-%COMP%] .icon[_ngcontent-%COMP%]{vertical-align:middle;margin-right:4px}.widget[_ngcontent-%COMP%] .has-child[_ngcontent-%COMP%]:hover{background:#f5f5f5;cursor:pointer}.body[_ngcontent-%COMP%] select[_ngcontent-%COMP%]{flex:1;background:white;box-sizing:border-box;margin-top:8px;padding:4px 0;border:0;border-bottom:1px solid #ccc;transition:.2s}.body[_ngcontent-%COMP%] select[_ngcontent-%COMP%]:focus{outline:none;border-bottom:1px solid #777}.loader[_ngcontent-%COMP%]{position:relative;margin:0 auto;width:50px}.loader[_ngcontent-%COMP%]:before{content:"";display:block;padding-top:100%}.absolute[_ngcontent-%COMP%]{position:absolute;top:calc(50% - 25px);left:calc(50% - 25px);z-index:10}.circular[_ngcontent-%COMP%]{animation:rotate 2s linear infinite;height:100%;transform-origin:center center;width:100%;position:absolute;top:0;bottom:0;left:0;right:0;margin:auto}.path[_ngcontent-%COMP%]{stroke-dasharray:1,200;stroke-dashoffset:0;animation:dash 1.5s ease-in-out infinite;stroke:#0057e7;stroke-linecap:round}.path.white[_ngcontent-%COMP%]{stroke:#fff}@keyframes rotate{to{transform:rotate(360deg)}}@keyframes dash{0%{stroke-dasharray:1,200;stroke-dashoffset:0}50%{stroke-dasharray:89,200;stroke-dashoffset:-35px}to{stroke-dasharray:89,200;stroke-dashoffset:-124px}}.list-item[_ngcontent-%COMP%] .button[_ngcontent-%COMP%]{position:relative;background-color:#2383e2;border:none;font-size:14px;color:#fff;padding:8px 16px;margin-left:8px;text-align:center;transition-duration:.4s;text-decoration:none;overflow:hidden;cursor:pointer;outline:none}.list-item[_ngcontent-%COMP%] .button[_ngcontent-%COMP%]:hover{color:#fff}.content-list[_ngcontent-%COMP%] .button[_ngcontent-%COMP%]{position:relative;background-color:#2383e2;border:none;font-size:14px;color:#fff;padding:8px 16px;margin-left:8px;text-align:center;transition-duration:.4s;text-decoration:none;overflow:hidden;cursor:pointer;outline:none}.title-row[_ngcontent-%COMP%]{display:flex;flex-direction:row;margin-top:28px}.title-row[_ngcontent-%COMP%] .list-title[_ngcontent-%COMP%]{flex:1;color:#777;padding-top:12px;justify-content:center}.title-row[_ngcontent-%COMP%] .tail[_ngcontent-%COMP%]{flex:1;text-align:right}.disabled[_ngcontent-%COMP%]{cursor:default;filter:contrast(60%) brightness(1.2);opacity:1;pointer-events:none;-webkit-user-select:none;user-select:none}.input-err[_ngcontent-%COMP%]{outline:none;background-color:#fbd0d6;box-shadow:0 0 0 2px #f1556c}.page-item[_ngcontent-%COMP%]{padding-bottom:14px!important}.unselectable[_ngcontent-%COMP%]{-webkit-user-select:none;user-select:none}.pager[_ngcontent-%COMP%]{display:flex;align-items:center;font-size:14px;color:#0009}.pager[_ngcontent-%COMP%] .page-info[_ngcontent-%COMP%]{display:flex;align-items:center;min-width:80px;padding-left:16px}.pager[_ngcontent-%COMP%] .page-mover[_ngcontent-%COMP%]{display:flex;align-items:center;padding:0 0 0 28px}.pager[_ngcontent-%COMP%] .page-mover[_ngcontent-%COMP%] .page-btn[_ngcontent-%COMP%]{display:flex;align-items:center;cursor:pointer;color:#0009}.pager[_ngcontent-%COMP%] .page-mover[_ngcontent-%COMP%] .page-btn[_ngcontent-%COMP%]:hover{color:#000000de}.pager[_ngcontent-%COMP%] .page-mover[_ngcontent-%COMP%] .page-btn.mover-disabled[_ngcontent-%COMP%]{cursor:initial;color:#0000004d}.pager[_ngcontent-%COMP%] .page-all[_ngcontent-%COMP%]{display:flex;align-items:center;padding-right:15px}.inner-input[_ngcontent-%COMP%]{width:100%;box-sizing:border-box;padding:6px 8px;background-color:#fff;border:1px solid rgba(0,0,0,.2);border-radius:5px;font-size:14px;transition:.2s;text-indent:0px;font-weight:400}.top-noti[_ngcontent-%COMP%]{width:100%;min-height:36px;display:flex;flex-direction:row;justify-content:center;align-items:center;margin-bottom:7px;background-color:#fcf9e9;font-size:14px;color:#000000de;border-bottom:rgba(0,0,0,.1)}','.body[_ngcontent-%COMP%]{display:flex;flex-direction:column}.user-item[_ngcontent-%COMP%]{padding-left:8px;padding-bottom:20px}.item[_ngcontent-%COMP%]{padding-bottom:20px}.item[_ngcontent-%COMP%] .title[_ngcontent-%COMP%]{padding-left:8px;font-size:16px;font-weight:400}.pagination-area[_ngcontent-%COMP%]{text-align:center;margin-top:16px}.pagination[_ngcontent-%COMP%]{display:inline-block}.contents[_ngcontent-%COMP%]{font-size:15px;color:#333;margin-top:4px;padding:4px 0;display:flex;min-height:24px;align-items:center}.pagination[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{color:#000;float:left;padding:8px 16px;text-decoration:none;transition:background-color .3s}.pagination[_ngcontent-%COMP%] a.active[_ngcontent-%COMP%]{background-color:#2383e2;color:#fff}.pagination[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover:not(.active){background-color:#ddd}.day[_ngcontent-%COMP%]{margin-right:16px;color:#777}.day-active[_ngcontent-%COMP%]{font-weight:bold;color:#333}.to[_ngcontent-%COMP%]{margin:0 16px}.enable-btn[_ngcontent-%COMP%]{width:128px;margin-right:8px;color:#777;cursor:pointer}.enable-btn[_ngcontent-%COMP%]:hover{color:#333}.enable-btn[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{vertical-align:middle}.enable-btn-active[_ngcontent-%COMP%]{color:#1e8fff}.enable-btn-active[_ngcontent-%COMP%]:hover{color:#66b3ff}.no-data[_ngcontent-%COMP%]{color:#ccc!important}.jointed[_ngcontent-%COMP%]{color:#32cd32}.invited[_ngcontent-%COMP%]{color:orange}.loader[_ngcontent-%COMP%]{position:relative;margin:0 auto;width:50px}.loader.absolute[_ngcontent-%COMP%]{margin:48px auto;position:absolute;top:calc(50% - 25px);left:calc(50% - 25px);transform:translate(-50%,-50%)}.loader[_ngcontent-%COMP%]:before{content:"";display:block;padding-top:100%}.loading[_ngcontent-%COMP%]{background-color:#eee}.back-icon[_ngcontent-%COMP%]{display:flex;max-width:1200px;min-width:300px;margin-bottom:8px;padding:20px 30px 0}.user-tab[_ngcontent-%COMP%]{height:48px;color:#888;display:flex;align-items:center;z-index:1}.user-tab[_ngcontent-%COMP%] .btn[_ngcontent-%COMP%]{display:flex;align-items:center;height:100%;position:relative}.user-tab[_ngcontent-%COMP%] .btn[_ngcontent-%COMP%]:hover{color:#2383e2;cursor:pointer}.user-tab[_ngcontent-%COMP%] .btn-selected[_ngcontent-%COMP%]{color:#2383e2;background:transparent}.user-tab[_ngcontent-%COMP%] .icn-btn[_ngcontent-%COMP%]{padding:0 16px}.user-tab[_ngcontent-%COMP%] .icn-btn-active[_ngcontent-%COMP%]{color:#000}.user-tab[_ngcontent-%COMP%] .tab-title[_ngcontent-%COMP%]{padding:0 32px;text-transform:uppercase;font-size:14px}.user-tab[_ngcontent-%COMP%] .tab-selected-bar[_ngcontent-%COMP%]{position:absolute;bottom:0px;width:100%;height:4px;background:#2383e2}.link[_ngcontent-%COMP%]{font-size:12px;color:#333;display:flex;align-items:center;color:#2383e2;cursor:pointer}.link[_ngcontent-%COMP%]:hover{text-decoration:underline}[sortable-column][_ngcontent-%COMP%]{cursor:pointer}.no-face[_ngcontent-%COMP%]{width:35px;height:35px;min-width:35px;min-height:35px;margin-right:0}.user-division-tag[_ngcontent-%COMP%]{padding:2px 6px;background:#e3e8ee;border-radius:4px;color:#55647b;font-size:14px}.division-prem[_ngcontent-%COMP%]{color:#8792a2!important}.setting-item[_ngcontent-%COMP%]{padding:0 20px 20px}.setting-item[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{margin-top:10px}.setting-item[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]:first-child{margin-top:0}.setting-item[_ngcontent-%COMP%]:last-child{padding-bottom:0}.setting-item.pb-10[_ngcontent-%COMP%]{padding-bottom:10px}.setting-item[_ngcontent-%COMP%] .item-row[_ngcontent-%COMP%]{display:flex;max-width:420px}.chip-container[_ngcontent-%COMP%]{display:flex;max-width:420px;min-height:32px;background-color:#fff;border:1px solid rgba(0,0,0,.1);border-radius:5px;padding:5px 10px 0;box-sizing:border-box;cursor:pointer}.chip-container.no-edit[_ngcontent-%COMP%]{cursor:initial}.chip-container[_ngcontent-%COMP%] .chip-objects[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;width:100%}.chip-container[_ngcontent-%COMP%] .chip-objects[_ngcontent-%COMP%] .chip[_ngcontent-%COMP%]{display:flex;height:20px;padding:3px 5px;border-radius:3px;background-color:#e3e8ee;color:#55647b;margin-right:5px;margin-bottom:5px;align-items:center;font-size:12px;font-family:"Roboto";box-sizing:border-box}.chip-container[_ngcontent-%COMP%] .chip-objects[_ngcontent-%COMP%] .chip[_ngcontent-%COMP%] .close-icon[_ngcontent-%COMP%]{display:flex;align-items:center;font-size:12px;border-radius:12px;cursor:pointer;margin-left:6px;height:16px;color:#55647b;padding:2px}.chip-container[_ngcontent-%COMP%] .chip-objects[_ngcontent-%COMP%] .chip[_ngcontent-%COMP%]:last-child{margin-right:0}.chip-container[_ngcontent-%COMP%] .zone-input[_ngcontent-%COMP%]{flex:1;border:none!important;padding:0;margin:0 0 0 2px;padding:0!important;min-width:36px;height:28px}.chip-select[_ngcontent-%COMP%]{position:absolute;max-width:420px;width:100%;max-height:200px;margin-top:5px!important;border-radius:5px;overflow:overlay;font-size:14px;color:#000000de;box-shadow:0 2px 5px #0000004d;background:#fff;z-index:1}.chip-select[_ngcontent-%COMP%] .chip-select-option[_ngcontent-%COMP%]{width:100%;padding:10px;box-sizing:border-box;cursor:pointer;-webkit-touch-callout:none;-webkit-user-select:none;user-select:none}.chip-select[_ngcontent-%COMP%] .chip-select-option.selected[_ngcontent-%COMP%]{color:#2383e2}.chip-select[_ngcontent-%COMP%] .chip-select-option[_ngcontent-%COMP%]:hover{background-color:#0000001a}.more-content[_ngcontent-%COMP%]{position:relative;justify-content:flex-end}.more-content[_ngcontent-%COMP%] .more-icon[_ngcontent-%COMP%]{cursor:pointer;margin-left:7px;font-size:18px;color:#0009}.more-content[_ngcontent-%COMP%]:hover .more[_ngcontent-%COMP%]{visibility:visible;opacity:1}.more-content[_ngcontent-%COMP%] .more[_ngcontent-%COMP%]{width:180px;visibility:hidden;background-color:#fff;color:#000000de;padding:14px;box-sizing:border-box;border-radius:6px;font-size:14px;box-shadow:0 0 30px #0000004d;cursor:pointer;position:absolute;z-index:100;top:28px;right:-78px;margin-left:-38px;opacity:0;transition:opacity .3s}.more-content[_ngcontent-%COMP%] .more[_ngcontent-%COMP%]:after{content:"";position:absolute;top:-22px;right:75px;margin-left:-19px;border-width:12px;border-style:solid;border-color:transparent transparent #fff transparent}.more-content[_ngcontent-%COMP%] .more[_ngcontent-%COMP%] .more-title[_ngcontent-%COMP%]{color:#000000de;margin-bottom:5px;font-weight:500}.more-content[_ngcontent-%COMP%] .more[_ngcontent-%COMP%] .more-content[_ngcontent-%COMP%]{color:#0009;margin-bottom:14px;line-height:20px}.more-content[_ngcontent-%COMP%] .more[_ngcontent-%COMP%] .more-content[_ngcontent-%COMP%]:last-child{margin-bottom:0}.list-item[_ngcontent-%COMP%]{min-width:max-content;max-width:100%;padding:7px;color:#000000de;border-radius:4px}.list-item[_ngcontent-%COMP%]:hover{background:whitesmoke}.table-container.p-7[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{padding:7px}.table-container.p-7[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{padding:7px}.item[_ngcontent-%COMP%] .contents.pt-0[_ngcontent-%COMP%]{padding-top:0}']}),n})()}]);var gt=a(56447),pt=a(688);let mt=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=e.oAB({type:n}),n.\u0275inj=e.cJS({imports:[[c.ez,x.u5,lt,gt.q,pt.m,q.rP]]}),n})()}}]);