import{a as J,b as K,c as Q}from"./chunk-ZMSOF3CY.js";import{a as Z,b as q,c as z}from"./chunk-ITLUXIFD.js";import{B as D,b as k,f as B,m as W,z as O}from"./chunk-A32B57A4.js";import{a as L,b as te}from"./chunk-TS62PHQY.js";import{a as H,b as re}from"./chunk-PM3MTE6X.js";import{b as N,c as ie}from"./chunk-IOINCEV4.js";import{C as ee,j as V,p as j}from"./chunk-Z5RJRCWC.js";import{Ac as S,Eb as G,Gd as E,Ja as f,Ka as C,Ob as I,R as g,Rc as T,Sa as F,Sb as x,Sc as w,Tb as _,W as A,Xc as v,Yc as P,Zc as M,cd as U,ec as l,g as d,ia as h,lc as y,ma as Y,md as c,na as $,nd as m,qc as s,rc as a,wc as b,zb as r,zc as p}from"./chunk-JSJB5BKT.js";import{e as X}from"./chunk-SZAW6ZBW.js";function se(n,R){if(n&1){let t=b();s(0,"i",8),p("click",function(){f(t);let e=S();return C(e.clearFilter())}),a()}}function oe(n,R){if(n&1){let t=b();s(0,"i",9),p("click",function(){f(t);let e=S();return C(e.clearUserType())}),a()}}var ae,ne,Me,le=X(()=>{E();te();Y();$();ee();re();z();D();Q();E();ie();z();D();Q();ae=()=>({"flex-direction":"column-reverse"}),ne=()=>({"flex-direction":"row"});Me=(()=>{class n extends L{constructor(t){super(),this.translatorService=t,this.parametersChange=new F,this.filterSubject=new d,this.parametersChangedSubject=new d,this.userTypeOptions=[{label:this.translatorService.translate("lblUser"),value:"User"},{label:this.translatorService.translate("lblUserGroup"),value:"UserGroup"},{label:this.translatorService.translate("lblApplication"),value:"Application"}]}ngOnInit(){this.subscribeToFilterValue(),this.subscribeToParametersChange()}onFilterChange(t){this.filterSubject.next(t.target.value)}clearFilter(){this.parameters.filter="",this.onParametersChange()}clearUserType(){this.parameters.userType=null,this.onParametersChange()}onParametersChange(){this.parametersChangedSubject.next()}subscribeToParametersChange(){this.parametersChangedSubject.pipe(g(500),h(this.destroyed$)).subscribe(()=>this.parametersChange.emit(this.parameters))}subscribeToFilterValue(){this.filterSubject.pipe(A(),g(500),h(this.destroyed$)).subscribe(t=>{this.parameters.filter=t,this.onParametersChange()})}static{this.\u0275fac=function(o){return new(o||n)(G(N))}}static{this.\u0275cmp=I({type:n,selectors:[["dvls-gateway-user-access-parameters"]],inputs:{isScheduling:"isScheduling",parameters:"parameters"},outputs:{parametersChange:"parametersChange"},features:[x],decls:15,vars:21,consts:[[1,"form","p-grid",2,"padding-bottom","15px",3,"ngStyle"],[1,"form-group",3,"ngClass"],[1,"clear-icon-parent"],["pInputText","","id","filter",1,"form-control",3,"ngModelChange","input","ngModel"],[1,"pi","pi-times","filter-clear-icon"],[1,"form-group","clear-icon-parent",3,"ngClass"],["styleClass","form-control","appendTo","body",3,"ngModelChange","onChange","options","showHeader","defaultLabel","ngModel","baseZIndex"],[1,"pi","pi-times","multiselect-parameters-clear-icon"],[1,"pi","pi-times","filter-clear-icon",3,"click"],[1,"pi","pi-times","multiselect-parameters-clear-icon",3,"click"]],template:function(o,e){o&1&&(s(0,"div",0)(1,"div",1)(2,"label"),T(3),c(4,"translate"),a(),s(5,"div",2)(6,"input",3),M("ngModelChange",function(i){return P(e.parameters.filter,i)||(e.parameters.filter=i),i}),p("input",function(i){return e.onFilterChange(i)}),a(),_(7,se,1,0,"i",4),a()(),s(8,"div",5)(9,"label"),T(10),c(11,"translate"),a(),s(12,"p-multiSelect",6),c(13,"translate"),M("ngModelChange",function(i){return P(e.parameters.userType,i)||(e.parameters.userType=i),i}),p("onChange",function(){return e.onParametersChange()}),a(),_(14,oe,1,0,"i",7),a()()),o&2&&(l("ngStyle",e.isScheduling?U(19,ae):U(20,ne)),r(),l("ngClass",e.isScheduling?"p-col-12":"p-col-3"),r(2),w(m(4,13,"lblFilter")),r(3),v("ngModel",e.parameters.filter),r(),y(e.parameters.filter?7:-1),r(),l("ngClass",e.isScheduling?"p-col-12":"p-col-3"),r(2),w(m(11,15,"lblUserType")),r(2),l("options",e.userTypeOptions)("showHeader",!1)("defaultLabel",m(13,17,"butSelect")),v("ngModel",e.parameters.userType),l("baseZIndex",3200),r(2),y((e.parameters.userType==null?null:e.parameters.userType.length)>0?14:-1))},dependencies:[j,V,H,q,Z,O,k,B,W,K,J],styles:["[_nghost-%COMP%]     .clear-icon-parent{position:relative}"]})}}return n})()});export{Me as a,le as b};
