import{b as $,c as ce}from"./chunk-FJOFAXAX.js";import{a as Z,c as me}from"./chunk-ITLUXIFD.js";import{d as J,e as K,f as X}from"./chunk-GJFVOOZQ.js";import{B as G,b as j,f as O,m as Q,z as q}from"./chunk-A32B57A4.js";import{Mh as z,Nh as pe}from"./chunk-5XZEGBWY.js";import{a as U,b as le}from"./chunk-TS62PHQY.js";import{o as H,s as oe}from"./chunk-KADRYNDC.js";import{a as Y,b as se}from"./chunk-PM3MTE6X.js";import{b as R,c as ae}from"./chunk-IOINCEV4.js";import{C as re,j as P,q as W}from"./chunk-Z5RJRCWC.js";import{Ac as b,Eb as I,Gd as ne,Ic as E,Ja as x,Ka as A,Kc as N,Lc as L,Ob as B,R as v,Rc as f,Sb as D,Sc as h,Tb as m,W as w,Xc as C,Yc as _,Zc as T,ec as a,g as F,ia as S,lc as g,ma as te,md as d,na as ie,nd as u,qc as s,rc as o,vc as V,wc as k,zb as r,zc as c}from"./chunk-JSJB5BKT.js";import{e as y}from"./chunk-SZAW6ZBW.js";function de(n,M){if(n&1){let t=k();s(0,"i",6),c("click",function(){x(t);let e=b();return A(e.onClearFilterClick())}),o()}}function ue(n,M){n&1&&V(0)}function ge(n,M){if(n&1&&m(0,ue,1,0,"ng-container",7),n&2){let t=b();a("ngTemplateOutlet",t.centerTemplate)}}var De,be=y(()=>{oe();ie();te();le();re();se();ce();G();X();ne();ae();me();G();X();De=(()=>{class n extends U{constructor(t){super(),this.translatorService=t,this.isMemberField="isMember",this.isMemberLabel="lblIsMember",this.filterSubject=new F,this.isMemberOptions=[{label:this.translatorService.translate("lblYes"),value:!0},{label:this.translatorService.translate("lblNo"),value:!1}],this.subscribeToFilterValue()}ngAfterContentInit(){this.templates.forEach(t=>{switch(t.getType()){case"centerTemplate":this.centerTemplate=t.template;break}})}onClearFilterClick(){this.textFilter="",this.table.filterGlobal(null,null)}onTextChange(t){this.filterSubject.next(t.target.value)}onIsMemberChange(t){this.table.filter(t,this.isMemberField,"equals")}subscribeToFilterValue(){this.filterSubject.pipe(w(),v(500),S(this.destroyed$)).subscribe(t=>this.table.filterGlobal(t,"contains"))}static{this.\u0275fac=function(l){return new(l||n)(I(R))}}static{this.\u0275cmp=B({type:n,selectors:[["dvls-table-filter-assignments"]],contentQueries:function(l,e,p){if(l&1&&E(p,H,4),l&2){let i;N(i=L())&&(e.templates=i)}},inputs:{table:"table",isMemberField:"isMemberField",isMemberLabel:"isMemberLabel"},features:[D],decls:15,vars:17,consts:[[1,"p-grid"],[1,"form-group",3,"ngClass"],[2,"position","relative"],["pInputText","",1,"form-control",3,"ngModelChange","input","ngModel"],[1,"pi","pi-times","filter-clear-icon"],["styleClass","form-control",3,"onChange","ngModelChange","options","showClear","ngModel","placeholder"],[1,"pi","pi-times","filter-clear-icon",3,"click"],[4,"ngTemplateOutlet"]],template:function(l,e){l&1&&(s(0,"div",0)(1,"div",1)(2,"label"),f(3),d(4,"translate"),o(),s(5,"div",2)(6,"input",3),T("ngModelChange",function(i){return _(e.textFilter,i)||(e.textFilter=i),i}),c("input",function(i){return e.onTextChange(i)}),o(),m(7,de,1,0,"i",4),o()(),m(8,ge,1,1,"ng-container"),s(9,"div",1)(10,"label"),f(11),d(12,"translate"),o(),s(13,"p-dropdown",5),d(14,"translate"),c("onChange",function(i){return e.onIsMemberChange(i.value)}),T("ngModelChange",function(i){return _(e.isMember,i)||(e.isMember=i),i}),o()()()),l&2&&(r(),a("ngClass",e.centerTemplate?"p-col-6":"p-col-8"),r(2),h(u(4,11,"lblFilter")),r(3),C("ngModel",e.textFilter),r(),g(e.textFilter?7:-1),r(),g(e.centerTemplate?8:-1),r(),a("ngClass",e.centerTemplate?"p-col-3":"p-col-4"),r(2),h(u(12,13,e.isMemberLabel)),r(2),a("options",e.isMemberOptions)("showClear",!0),C("ngModel",e.isMember),a("placeholder",u(14,15,"butSelect")))},dependencies:[P,Y,$,Z,q,j,O,Q,W,K,J],encapsulation:2})}}return n})()});var ee,fe=y(()=>{pe();ee=class extends z{updatePasswordDisplayValue(){if(this.repositorySettings.masterPasswordHash||this.password){this.passwordDisplayValue="\u25CF\u25CF\u25CF\u25CF\u25CF\u25CF";return}this.passwordDisplayValue=""}getImage(){return this.imageBytes&&this.imageBytes.length>0?"data:image/png;base64,"+this.imageBytes:this.imageName?this.imageName:""}}});export{De as a,be as b,ee as c,fe as d};
