import {m,l}from'./chunk-CMtkBVHe.js';import {J,cI as p,AS as Bi,i as S,cp as Mi,U as RN,aV as ut,ky as Oa,ga as Da,c as tS,H as ul,cN as g,AU as Ae,w as wo,N as Sr,f as QT,cw as Ac,cB as Kt,jl as rne,bg as lt,bh as at,bi as et,kz as Nc,kA as nr,gl as Rc,gm as ir,u as R,bp as QC,a0 as ks,a2 as Uu,br as ZC,A as Iw,bu as dy,v as W_,z as vM,a1 as Ny,bz as f_,c2 as iv,F as EM,a4 as Sy,cg as J_,bk as i_,bl as dv,bB as oT,bq as uv,bC as sT,fd as eM,di as DM,bm as Bp,bn as Z_,bo as $p}from'./main-WUGO6e7n.js';function re(t,v){if(t&1&&(ks(0,"div",0)(1,"label"),W_(2),vM(3,"translate"),Uu(),Ny(4,"input",2),Uu()),t&2){let e=f_();Iw(2),iv(EM(3,3,"lblParentScan")),Iw(2),Sy("value",J_(e.configuration.label));}}function ae(t,v){if(t&1){let e=i_();ks(0,"label"),W_(1),vM(2,"translate"),Uu(),ks(3,"dvl-datepicker",3),dv("ngModelChange",function(n){Bp(e);let c=f_();return Z_(c.configuration.startDate,n)||(c.configuration.startDate=n),$p(n)}),Uu(),oT();}if(t&2){let e=f_();Iw(),iv(EM(2,4,"lblStart")),Iw(2),Sy("minDate",e.minDate),uv("ngModel",e.configuration.startDate),Sy("readonlyInput",e.readonly),sT();}}function le(t,v){if(t&1&&(ks(0,"label"),W_(1),vM(2,"translate"),Uu(),Ny(3,"input",2)),t&2){let e=f_();Iw(),iv(EM(2,2,"lblStart")),Iw(2),Sy("value",e.configuration.startDate);}}function ce(t,v){if(t&1){let e=i_();ks(0,"div",1)(1,"div",4)(2,"label"),W_(3),vM(4,"translate"),Uu(),ks(5,"p-inputNumber",5),dv("ngModelChange",function(n){Bp(e);let c=f_();return Z_(c.configuration.frequencyValue,n)||(c.configuration.frequencyValue=n),$p(n)}),Uu(),oT(),Uu(),ks(6,"div",6)(7,"label"),W_(8,"Unit"),Uu(),ks(9,"div",7)(10,"p-selectButton",8),dv("ngModelChange",function(n){Bp(e);let c=f_();return Z_(c.configuration.frequencyUnit,n)||(c.configuration.frequencyUnit=n),$p(n)}),Uu(),oT(),Uu()()();}if(t&2){let e=f_();Iw(3),iv(EM(4,10,"lblEvery")),Iw(2),Sy("showButtons",true),uv("ngModel",e.configuration.frequencyValue),Sy("size",2)("min",1)("max",100)("disabled",e.readonly),sT(),Iw(5),Sy("options",e.frequencyUnitOptions),uv("ngModel",e.configuration.frequencyUnit),Sy("disabled",e.readonly),sT();}}function pe(t,v){if(t&1&&(ks(0,"div",0)(1,"label"),W_(2),vM(3,"translate"),Uu(),Ny(4,"input",2),vM(5,"translateEnum"),Uu()),t&2){let e=f_();Iw(2),iv(EM(3,4,"lblEvery")),Iw(2),Sy("value",eM("",e.configuration.frequencyValue," ",DM(5,6,e.configuration.frequencyUnit,e.InventoryScanFrequencyUnits)));}}var we,ue=J(()=>{p();Bi();S();Mi();RN();ut();Oa();Da();m();tS();ul();Mi();ut();Oa();Da();we=(()=>{class t extends g{constructor(e){super(),this.translationService=e,this.frequencyUnitOptions=[],this.InventoryScanFrequencyUnits=Ae;}ngOnInit(){this.minDate=new Date,this.frequencyUnitOptions=[{name:this.translationService.translate("lblMinutes"),value:Ae.Minutes},{name:this.translationService.translate("lblHours"),value:Ae.Hours},{name:this.translationService.translate("lblDays"),value:Ae.Days}];}static{this.\u0275fac=function(p){return new(p||t)(wo(Sr))};}static{this.\u0275cmp=QT({type:t,selectors:[["dvl-pam-account-discovery-recurrence"]],inputs:{configuration:"configuration",readonly:"readonly"},features:[dy],decls:6,vars:5,consts:[[1,"form-group"],[1,"grid","gap-4","form-group"],["pInputText","","type","text","readonly","",3,"value"],["appendTo","body","name","startTime","inputStyleClass","form-control","showTime","true","hourFormat","24",3,"ngModelChange","minDate","ngModel","readonlyInput"],[1,"col-fixed",2,"padding-left","0"],["name","frequencyValue",3,"ngModelChange","showButtons","ngModel","size","min","max","disabled"],[1,"col-span-6"],[2,"padding-top","4px"],["name","frequencyUnit","optionLabel","name","optionValue","value",3,"ngModelChange","options","ngModel","disabled"]],template:function(p,n){p&1&&(QC(0,re,5,5,"div",0),ks(1,"div",0),QC(2,ae,4,6),QC(3,le,4,4),Uu(),QC(4,ce,11,12,"div",1),QC(5,pe,6,9,"div",0)),p&2&&(ZC(n.readonly?0:-1),Iw(2),ZC(n.readonly?-1:2),Iw(),ZC(n.readonly&&n.configuration.frequencyValue>0?3:-1),Iw(),ZC(n.readonly?-1:4),Iw(),ZC(n.readonly&&n.configuration.frequencyValue>0?5:-1));},dependencies:[Ac,Kt,rne,lt,at,et,Nc,nr,Rc,ir,R,l],encapsulation:2,changeDetection:1});}}return t})();});export{ue as u,we as w};