@adins/ucsearch 2.9.2 → 2.9.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,2 +1,2 @@
1
- !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("@angular/common/http"),require("file-saver"),require("xlsx"),require("@angular/animations"),require("ngx-toastr"),require("ngx-cookie"),require("crypto-js"),require("@angular/core"),require("@angular/common"),require("@angular/forms"),require("ngx-currency"),require("@ngx-translate/core"),require("@adins/uc-show-errors"),require("@adins/uc-directive-upper-case")):"function"==typeof define&&define.amd?define("@adins/ucsearch",["exports","@angular/common/http","file-saver","xlsx","@angular/animations","ngx-toastr","ngx-cookie","crypto-js","@angular/core","@angular/common","@angular/forms","ngx-currency","@ngx-translate/core","@adins/uc-show-errors","@adins/uc-directive-upper-case"],t):t((e.adins=e.adins||{},e.adins.ucsearch={}),e.ng.common.http,e.FileSaver,e.XLSX,e.ng.animations,e.i3,e.i4,e.CryptoJS,e.ng.core,e.ng.common,e.ng.forms,e.i1$1,e.i2,e.i10,e.i8)}(this,function(e,t,n,r,i,o,a,l,s,u,c,p,m,d,f){"use strict";var h=(y.decorators=[{type:s.Injectable,args:[{providedIn:"root"}]}],y.ctorParameters=function(){return[]},y.ɵfac=function(e){return new(e||y)},y.ɵprov=s.ɵɵdefineInjectable({token:y,factory:y.ɵfac,providedIn:"root"}),y);function y(){}function g(e,t,l,s){return new(l=l||Promise)(function(n,r){function i(e){try{a(s.next(e))}catch(t){r(t)}}function o(e){try{a(s["throw"](e))}catch(t){r(t)}}function a(e){var t;e.done?n(e.value):((t=e.value)instanceof l?t:new l(function(e){e(t)})).then(i,o)}a((s=s.apply(e,t||[])).next())})}function v(n,r){var i,o,a,l={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]},e={next:t(0),"throw":t(1),"return":t(2)};return"function"==typeof Symbol&&(e[Symbol.iterator]=function(){return this}),e;function t(t){return function(e){return s([t,e])}}function s(e){if(i)throw new TypeError("Generator is already executing.");for(;l;)try{if(i=1,o&&(a=2&e[0]?o["return"]:e[0]?o["throw"]||((a=o["return"])&&a.call(o),0):o.next)&&!(a=a.call(o,e[1])).done)return a;switch(o=0,(e=a?[2&e[0],a.value]:e)[0]){case 0:case 1:a=e;break;case 4:return l.label++,{value:e[1],done:!1};case 5:l.label++,o=e[1],e=[0];continue;case 7:e=l.ops.pop(),l.trys.pop();continue;default:if(!(a=0<(a=l.trys).length&&a[a.length-1])&&(6===e[0]||2===e[0])){l=0;continue}if(3===e[0]&&(!a||e[1]>a[0]&&e[1]<a[3])){l.label=e[1];break}if(6===e[0]&&l.label<a[1]){l.label=a[1],a=e;break}if(a&&l.label<a[2]){l.label=a[2],l.ops.push(e);break}a[2]&&l.ops.pop(),l.trys.pop();continue}e=r.call(n,l)}catch(t){e=[6,t],o=0}finally{i=a=0}if(5&e[0])throw e[1];return{value:e[0]?e[1]:void 0,done:!0}}}var x=(b.RestrictionBetween="Between",b.RestrictionLike="Like",b.RestrictionEq="Eq",b.RestrictionNeq="NEQ",b.RestrictionGt="GT",b.RestrictionGte="GTE",b.RestrictionLt="LT",b.RestrictionLte="LTE",b.RestrictionIn="IN",b.RestrictionNotIn="NotIn",b.RestrictionOr="Or",b.RestrictionOrNeq="OrNeq",b.RestrictionIsNull="ISNULL",b.RestrictionIsNotNull="ISNOTNULL",b.RestrictionGTE="GTE",b.RestrictionLTE="LTE",b.showData="10,50,100",b.JoinTypeInner="INNER",b.JoinTypeLeft="LEFT",b);function b(){}var C=function(){this.baseUrl="",this.apiPath="",this.requestObj=new Object,this.leftColumnToJoin="",this.rightColumnToJoin="",this.joinType=x.JoinTypeInner},I=function(){this._url="",this.enviromentUrl="",this.title="",this.apiQryPaging="",this.arrCritObj=null,this.addCritInput=new Array,this.listEnvironments=new Array,this.whereValue=new Array,this.fromValue=new Array,this.switchValue=new Array,this.integrationObj=new C,this.isJoinExAPI=!1},E=function(){this.low=0,this.high=0,this.DataType="Text",this.isCriteriaDataTable=!1},S=function(){this.includeCount=!0,this.includeData=!0,this.isLoading=!0,this.queryString="",this.rowVersion="",this.integrationObj=new C,this.joinType=x.JoinTypeInner},w=(M.prototype.exportAsExcelFile=function(e,t){e=r.utils.json_to_sheet(e);console.log("worksheet",e);e=r.write({Sheets:{data:e},SheetNames:["data"]},{bookType:"xlsx",type:"array"});this.saveAsExcelFile(e,t)},M.prototype.saveAsExcelFile=function(e,t){e=new Blob([e],{type:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet;charset=UTF-8"});n.saveAs(e,t+"_export_"+(new Date).getTime()+".xlsx")},M.decorators=[{type:s.Injectable}],M.ctorParameters=function(){return[]},M.ɵfac=function(e){return new(e||M)},M.ɵprov=s.ɵɵdefineInjectable({token:M,factory:M.ɵfac}),M);function M(){}var D=(k.EXP_TYPE_PDF=0,k.EXP_TYPE_XLS=1,k.EXP_TYPE_XLSX=2,k.EXP_TYPE_DOC=3,k.EXP_TYPE_DOCX=4,k);function k(){}var F=function(){this.DictOfMonth={},this.ListOfMonth=new Array,this.DictOfMonth={},this.ListOfMonth.push({key:1,value:"January"}),this.DictOfMonth[1]="January",this.ListOfMonth.push({key:2,value:"February"}),this.DictOfMonth[2]="February",this.ListOfMonth.push({key:3,value:"March"}),this.DictOfMonth[3]="March",this.ListOfMonth.push({key:4,value:"April"}),this.DictOfMonth[4]="April",this.ListOfMonth.push({key:5,value:"May"}),this.DictOfMonth[5]="May",this.ListOfMonth.push({key:6,value:"June"}),this.DictOfMonth[6]="June",this.ListOfMonth.push({key:7,value:"July"}),this.DictOfMonth[7]="July",this.ListOfMonth.push({key:8,value:"August"}),this.DictOfMonth[8]="August",this.ListOfMonth.push({key:9,value:"September"}),this.DictOfMonth[9]="September",this.ListOfMonth.push({key:10,value:"October"}),this.DictOfMonth[10]="October",this.ListOfMonth.push({key:11,value:"November"}),this.DictOfMonth[11]="November",this.ListOfMonth.push({key:12,value:"December"}),this.DictOfMonth[12]="December"},T=(U.prototype.transform=function(e,t){return t?e.filter(function(e){return!(!e.Value||"string"!=typeof e.Value)&&-1<e.Value.toLowerCase().indexOf(t.toLowerCase())}):e},U.decorators=[{type:s.Pipe,args:[{name:"textSearch"}]}],U.ɵfac=function(e){return new(e||U)},U.ɵpipe=s.ɵɵdefinePipe({name:"textSearch",type:U,pure:!0}),U);function U(){}var O=["enjiForm"],L=["formIdSearch"];function R(e,t){1&e&&(s.ɵɵelementStart(0,"div",28),s.ɵɵelementStart(1,"h4",29),s.ɵɵtext(2),s.ɵɵelementEnd(),s.ɵɵelementEnd()),2&e&&(e=s.ɵɵnextContext(),s.ɵɵadvance(2),s.ɵɵtextInterpolate(e.configuration.title))}function q(e,t){1&e&&s.ɵɵelement(0,"span")}function V(e,t){1&e&&s.ɵɵtext(0),2&e&&(e=s.ɵɵnextContext(),s.ɵɵtextInterpolate1(" ",null==e.configuration?null:e.configuration.sectionTitle," "))}function A(e,t){1&e&&s.ɵɵtext(0," Paging ")}var N=function(e){return{"is-invalid":e}};function P(e,t){var n,r;1&e&&(n=s.ɵɵgetCurrentView(),s.ɵɵelementStart(0,"div"),s.ɵɵelementStart(1,"input",35),s.ɵɵlistener("keyup.enter",function(){return s.ɵɵrestoreView(n),s.ɵɵnextContext(2).searchClick()}),s.ɵɵelementEnd(),s.ɵɵelementEnd()),2&e&&(r=s.ɵɵnextContext().$implicit,s.ɵɵnextContext(),e=s.ɵɵreference(9),s.ɵɵadvance(1),s.ɵɵpropertyInterpolate("id",r.id),s.ɵɵpropertyInterpolate("name",r.name),s.ɵɵpropertyInterpolate("value",r.value),s.ɵɵproperty("ngModel",r.value)("required",r.isRequired)("ngClass",s.ɵɵpureFunction1(12,N,(e.submitted||(null==e.form.controls[r.name]?null:e.form.controls[r.name].touched)||(null==e.form.controls[r.name]?null:e.form.controls[r.name].dirty))&&(null==e.form.controls[r.name]?null:e.form.controls[r.name].invalid))),s.ɵɵattribute("data-crit-datatable",r.isCriteriaDataTable)("data-required",r.isRequired)("data-type",r.datatype)("data-name",r.name)("data-restriction",r.restriction)("label",r.label))}function _(e,t){var n;1&e&&(s.ɵɵelementStart(0,"div"),s.ɵɵelement(1,"textarea",36),s.ɵɵelementEnd()),2&e&&(n=s.ɵɵnextContext().$implicit,s.ɵɵnextContext(),e=s.ɵɵreference(9),s.ɵɵadvance(1),s.ɵɵpropertyInterpolate("id",n.id),s.ɵɵpropertyInterpolate("name",n.name),s.ɵɵpropertyInterpolate("value",n.value),s.ɵɵproperty("ngModel",n.value)("required",n.isRequired)("ngClass",s.ɵɵpureFunction1(10,N,(e.submitted||(null==e.form.controls[n.name]?null:e.form.controls[n.name].touched)||(null==e.form.controls[n.name]?null:e.form.controls[n.name].dirty))&&(null==e.form.controls[n.name]?null:e.form.controls[n.name].invalid))),s.ɵɵattribute("data-required",n.isRequired)("data-type",n.datatype)("data-name",n.name)("label",n.label))}var j=function(e){return[e]};function $(e,t){var n,r,i;1&e&&(n=s.ɵɵgetCurrentView(),s.ɵɵelementStart(0,"div"),s.ɵɵelementStart(1,"input",37),s.ɵɵlistener("focus",function(e){return s.ɵɵrestoreView(n),s.ɵɵnextContext(2).transformToDecimal(e)})("blur",function(e){return s.ɵɵrestoreView(n),s.ɵɵnextContext(2).transformAmount(e)})("keyup.enter",function(){return s.ɵɵrestoreView(n),s.ɵɵnextContext(2).searchClick()}),s.ɵɵelementEnd(),s.ɵɵelementEnd()),2&e&&(r=(i=s.ɵɵnextContext()).$implicit,e=i.index,s.ɵɵnextContext(),i=s.ɵɵreference(9),s.ɵɵadvance(1),s.ɵɵpropertyInterpolate("id",r.id),s.ɵɵpropertyInterpolate("name",r.name+s.ɵɵpureFunction1(13,j,e)),s.ɵɵpropertyInterpolate("value",r.value),s.ɵɵproperty("ngModel",r.value)("required",r.isRequired)("ngClass",s.ɵɵpureFunction1(27,N,(i.submitted||(null==i.form.controls[r.name+s.ɵɵpureFunction1(15,j,e)]?null:i.form.controls[r.name+s.ɵɵpureFunction1(17,j,e)].touched)||(null==i.form.controls[r.name+s.ɵɵpureFunction1(19,j,e)]?null:i.form.controls[r.name+s.ɵɵpureFunction1(21,j,e)].dirty))&&(null==i.form.controls[r.name+s.ɵɵpureFunction1(23,j,e)]?null:i.form.controls[r.name+s.ɵɵpureFunction1(25,j,e)].invalid))),s.ɵɵattribute("data-required",r.isRequired)("data-restriction",r.restriction)("data-type",r.datatype)("data-name",r.name)("data-numericpair",r.numericPair)("data-crit-datatable",r.isCriteriaDataTable)("label",r.label))}var Y=function(){return{standalone:!0}},B=function(e,t,n,r,i,o,a){return{thousands:e,decimal:t,align:n,allowNegative:r,allowZero:i,precision:o,nullable:a}};function K(e,t){var n,r;1&e&&(n=s.ɵɵgetCurrentView(),s.ɵɵelementStart(0,"div"),s.ɵɵelementStart(1,"input",38),s.ɵɵlistener("keyup.enter",function(){return s.ɵɵrestoreView(n),s.ɵɵnextContext(3).searchClick()})("ngModelChange",function(e){return s.ɵɵrestoreView(n),s.ɵɵnextContext(2).$implicit.value=e}),s.ɵɵelementEnd(),s.ɵɵelementEnd()),2&e&&(r=s.ɵɵnextContext(2).$implicit,s.ɵɵnextContext(),e=s.ɵɵreference(9),s.ɵɵadvance(1),s.ɵɵpropertyInterpolate("id",r.id),s.ɵɵpropertyInterpolate("name",r.name),s.ɵɵproperty("required",r.isRequired)("ngModel",r.value)("ngModel",r.value)("ngModelOptions",s.ɵɵpureFunction0(13,Y))("options",s.ɵɵpureFunction7(14,B,r.thousands,r.decimal,r.align,r.allowNegative,r.allowZero,r.precision,r.nullable))("ngClass",s.ɵɵpureFunction1(22,N,(e.submitted||(null==e.form.controls[r.name]?null:e.form.controls[r.name].touched)||(null==e.form.controls[r.name]?null:e.form.controls[r.name].dirty))&&(null==e.form.controls[r.name]?null:e.form.controls[r.name].invalid))),s.ɵɵattribute("data-restriction",r.restriction)("data-type",r.datatype)("data-name",r.name)("data-required",r.isRequired)("label",r.label))}var X=function(){return{thousands:",",decimal:".",align:"right",allowNegative:!1,allowZero:!0,precision:2,nullable:!1}};function G(e,t){var n,r;1&e&&(n=s.ɵɵgetCurrentView(),s.ɵɵelementStart(0,"div"),s.ɵɵelementStart(1,"input",39),s.ɵɵlistener("keyup.enter",function(){return s.ɵɵrestoreView(n),s.ɵɵnextContext(3).searchClick()})("ngModelChange",function(e){return s.ɵɵrestoreView(n),s.ɵɵnextContext(2).$implicit.value=e}),s.ɵɵelementEnd(),s.ɵɵelementEnd()),2&e&&(r=s.ɵɵnextContext(2).$implicit,s.ɵɵnextContext(),e=s.ɵɵreference(9),s.ɵɵadvance(1),s.ɵɵpropertyInterpolate("id",r.id),s.ɵɵpropertyInterpolate("name",r.name),s.ɵɵproperty("required",r.isRequired)("ngModel",r.value)("ngModel",r.value)("ngModelOptions",s.ɵɵpureFunction0(13,Y))("options",s.ɵɵpureFunction0(14,X))("ngClass",s.ɵɵpureFunction1(15,N,(e.submitted||(null==e.form.controls[r.name]?null:e.form.controls[r.name].touched)||(null==e.form.controls[r.name]?null:e.form.controls[r.name].dirty))&&(null==e.form.controls[r.name]?null:e.form.controls[r.name].invalid))),s.ɵɵattribute("data-restriction",r.restriction)("data-type",r.datatype)("data-name",r.name)("data-required",r.isRequired)("label",r.label))}function J(e,t){1&e&&(s.ɵɵelementStart(0,"div"),s.ɵɵtemplate(1,K,2,24,"div",33),s.ɵɵtemplate(2,G,2,17,"div",33),s.ɵɵelementEnd()),2&e&&(e=s.ɵɵnextContext().$implicit,s.ɵɵadvance(1),s.ɵɵproperty("ngIf",(null==e?null:e.isCustom)!=undefined&&(null==e?null:e.isCustom)),s.ɵɵadvance(1),s.ɵɵproperty("ngIf",(null==e?null:e.isCustom)==undefined||!(null!=e&&e.isCustom)))}function z(e,t){var n,r,i;1&e&&(n=s.ɵɵgetCurrentView(),s.ɵɵelementStart(0,"div"),s.ɵɵelementStart(1,"input",40),s.ɵɵlistener("keyup.enter",function(){return s.ɵɵrestoreView(n),s.ɵɵnextContext(2).searchClick()})("focusout",function(){s.ɵɵrestoreView(n);var e=s.ɵɵnextContext().$implicit,t=s.ɵɵnextContext();return e.restriction!=undefined&&t.checkInputDate(e)}),s.ɵɵpipe(2,"date"),s.ɵɵpipe(3,"date"),s.ɵɵelementEnd(),s.ɵɵelementEnd()),2&e&&(r=(i=s.ɵɵnextContext()).$implicit,e=i.index,s.ɵɵnextContext(),i=s.ɵɵreference(9),s.ɵɵadvance(1),s.ɵɵpropertyInterpolate("type",r.isTime?"datetime-local":"date"),s.ɵɵpropertyInterpolate("id",r.id),s.ɵɵpropertyInterpolate("name",r.name+s.ɵɵpureFunction1(23,j,e)),s.ɵɵpropertyInterpolate("value",r.value),s.ɵɵpropertyInterpolate("min",s.ɵɵpipeBind2(2,17,r.minDate,"yyyy-MM-dd")),s.ɵɵpropertyInterpolate("max",s.ɵɵpipeBind2(3,20,r.maxDate,"yyyy-MM-dd")),s.ɵɵproperty("ngModel",r.value)("required",r.isRequired)("readonly",r.readonly)("ngClass",s.ɵɵpureFunction1(37,N,(i.submitted||(null==i.form.controls[r.name+s.ɵɵpureFunction1(25,j,e)]?null:i.form.controls[r.name+s.ɵɵpureFunction1(27,j,e)].touched)||(null==i.form.controls[r.name+s.ɵɵpureFunction1(29,j,e)]?null:i.form.controls[r.name+s.ɵɵpureFunction1(31,j,e)].dirty))&&(null==i.form.controls[r.name+s.ɵɵpureFunction1(33,j,e)]?null:i.form.controls[r.name+s.ɵɵpureFunction1(35,j,e)].invalid))),s.ɵɵattribute("data-required",r.isRequired)("data-type",r.datatype)("data-name",r.name)("data-datepickerpair",r.datepickerPair)("data-crit-datatable",r.isCriteriaDataTable)("data-restriction",r.restriction)("label",r.label))}function Q(e,t){1&e&&(s.ɵɵelementStart(0,"option",45),s.ɵɵtext(1,"Select One"),s.ɵɵelementEnd())}function H(e,t){1&e&&(s.ɵɵelementStart(0,"option",46),s.ɵɵtext(1,"All"),s.ɵɵelementEnd())}function W(e,t){1&e&&(s.ɵɵelementStart(0,"option",47),s.ɵɵtext(1),s.ɵɵelementEnd()),2&e&&(t=t.$implicit,s.ɵɵpropertyInterpolate("value",t.Key),s.ɵɵadvance(1),s.ɵɵtextInterpolate1(" ",t.Value," "))}function Z(e,t){1&e&&(s.ɵɵelementStart(0,"label"),s.ɵɵtext(1),s.ɵɵelementEnd()),2&e&&(e=s.ɵɵnextContext(2).$implicit,s.ɵɵadvance(1),s.ɵɵtextInterpolate(e.itemsUrl[0].Value))}function ee(e,t){var r,n;1&e&&(r=s.ɵɵgetCurrentView(),s.ɵɵelementStart(0,"div"),s.ɵɵelementStart(1,"select",41),s.ɵɵlistener("change",function(){s.ɵɵrestoreView(r);var e=s.ɵɵnextContext(),t=e.$implicit,n=e.index,e=s.ɵɵnextContext();return"taskDefinitionKey"==t.type||"processKey"==t.type?e.SetProcessKey(n,t.wfKeyFilter):e.SetRoleOfficeCodes(n)}),s.ɵɵtemplate(2,Q,2,0,"option",42),s.ɵɵtemplate(3,H,2,0,"option",43),s.ɵɵtemplate(4,W,2,2,"option",44),s.ɵɵelementEnd(),s.ɵɵtemplate(5,Z,2,1,"label",33),s.ɵɵelementEnd()),2&e&&(n=s.ɵɵnextContext().$implicit,s.ɵɵnextContext(),e=s.ɵɵreference(9),s.ɵɵadvance(1),s.ɵɵpropertyInterpolate("name",n.name),s.ɵɵproperty("required",n.isRequired)("hidden",1==(null==n||null==n.itemsUrl?null:n.itemsUrl.length))("ngClass",s.ɵɵpureFunction1(12,N,(e.submitted||(null==e.form.controls[n.name]?null:e.form.controls[n.name].touched)||(null==e.form.controls[n.name]?null:e.form.controls[n.name].dirty))&&(null==e.form.controls[n.name]?null:e.form.controls[n.name].invalid))),s.ɵɵattribute("data-required",n.isRequired)("query-in",n.isQueryIn)("data-type",n.datatype)("label",n.label),s.ɵɵadvance(1),s.ɵɵproperty("ngIf","one"==n.ddlType&&1!=(null==n||null==n.itemsUrl?null:n.itemsUrl.length)),s.ɵɵadvance(1),s.ɵɵproperty("ngIf",((null==n?null:n.ddlType)==undefined||"all"==n.ddlType)&&1!=(null==n||null==n.itemsUrl?null:n.itemsUrl.length)),s.ɵɵadvance(1),s.ɵɵproperty("ngForOf",null==n?null:n.itemsUrl),s.ɵɵadvance(1),s.ɵɵproperty("ngIf",1==(null==n||null==n.itemsUrl?null:n.itemsUrl.length)))}function te(e,t){1&e&&(s.ɵɵelementStart(0,"option",45),s.ɵɵtext(1," Select One"),s.ɵɵelementEnd())}function ne(e,t){1&e&&(s.ɵɵelementStart(0,"option",46),s.ɵɵtext(1,"All"),s.ɵɵelementEnd())}function re(e,t){1&e&&(s.ɵɵelementStart(0,"option",47),s.ɵɵtext(1),s.ɵɵelementEnd()),2&e&&(e=t.$implicit,t=s.ɵɵnextContext(2).$implicit,s.ɵɵpropertyInterpolate("value",t.isFromURL?e.Key:e.key),s.ɵɵadvance(1),s.ɵɵtextInterpolate1(" ",t.isFromURL?e.Value:e.value," "))}function ie(e,t){1&e&&(s.ɵɵelementStart(0,"label"),s.ɵɵtext(1),s.ɵɵelementEnd()),2&e&&(e=s.ɵɵnextContext(2).$implicit,s.ɵɵadvance(1),s.ɵɵtextInterpolate(e.isFromURL?e.itemsUrl[0].Value:e.items[0].value))}function oe(e,t){var r,n;1&e&&(r=s.ɵɵgetCurrentView(),s.ɵɵelementStart(0,"div"),s.ɵɵelementStart(1,"select",48),s.ɵɵlistener("ngModelChange",function(e){return s.ɵɵrestoreView(r),s.ɵɵnextContext().$implicit.value=e})("change",function(e){s.ɵɵrestoreView(r);var t=s.ɵɵnextContext().$implicit,n=s.ɵɵnextContext();return t.isEvent?n.onChangeEvent(e.target.value,t):""}),s.ɵɵtemplate(2,te,2,0,"option",42),s.ɵɵtemplate(3,ne,2,0,"option",43),s.ɵɵtemplate(4,re,2,2,"option",44),s.ɵɵelementEnd(),s.ɵɵtemplate(5,ie,2,1,"label",33),s.ɵɵelementEnd()),2&e&&(n=s.ɵɵnextContext().$implicit,s.ɵɵnextContext(),e=s.ɵɵreference(9),s.ɵɵadvance(1),s.ɵɵpropertyInterpolate("name",n.name),s.ɵɵproperty("ngModel",n.value)("required",n.isRequired)("hidden",n.isFromURL?1==(null==n||null==n.itemsUrl?null:n.itemsUrl.length):1==(null==n||null==n.items?null:n.items.length))("ngClass",s.ɵɵpureFunction1(15,N,(e.submitted||(null==e.form.controls[n.name]?null:e.form.controls[n.name].touched)||(null==e.form.controls[n.name]?null:e.form.controls[n.name].dirty))&&(null==e.form.controls[n.name]?null:e.form.controls[n.name].invalid))),s.ɵɵattribute("data-required",n.isRequired)("query-in",n.isQueryIn)("data-type",n.datatype)("data-name",n.name)("label",n.label)("data-crit-datatable",n.isCriteriaDataTable),s.ɵɵadvance(1),s.ɵɵproperty("ngIf","one"==n.ddlType&&(n.isFromURL?1!=(null==n||null==n.itemsUrl?null:n.itemsUrl.length):1!=(null==n||null==n.items?null:n.items.length))),s.ɵɵadvance(1),s.ɵɵproperty("ngIf",((null==n?null:n.ddlType)==undefined||"all"==n.ddlType)&&(n.isFromURL?1!=(null==n||null==n.itemsUrl?null:n.itemsUrl.length):1!=(null==n||null==n.items?null:n.items.length))),s.ɵɵadvance(1),s.ɵɵproperty("ngForOf",n.isFromURL?null==n?null:n.itemsUrl:null==n?null:n.items),s.ɵɵadvance(1),s.ɵɵproperty("ngIf",n.isFromURL?1==(null==n||null==n.itemsUrl?null:n.itemsUrl.length):1==(null==n||null==n.items?null:n.items.length)))}function ae(e,t){1&e&&(s.ɵɵelementStart(0,"label"),s.ɵɵtext(1),s.ɵɵelementEnd()),2&e&&(e=s.ɵɵnextContext(2).$implicit,s.ɵɵadvance(1),s.ɵɵtextInterpolate(e.descr))}function le(e,t){var n;1&e&&(n=s.ɵɵgetCurrentView(),s.ɵɵelementStart(0,"option",58),s.ɵɵlistener("click",function(){s.ɵɵrestoreView(n);var e=s.ɵɵnextContext(2).$implicit;return s.ɵɵnextContext().selectedOption({Key:"one",Value:"Select One"},e)}),s.ɵɵtext(1," Select One"),s.ɵɵelementEnd())}function se(e,t){var n;1&e&&(n=s.ɵɵgetCurrentView(),s.ɵɵelementStart(0,"option",59),s.ɵɵlistener("click",function(){s.ɵɵrestoreView(n);var e=s.ɵɵnextContext(2).$implicit;return s.ɵɵnextContext().selectedOption({Key:"all",Value:"All"},e)}),s.ɵɵtext(1,"All"),s.ɵɵelementEnd())}function ue(e,n){var r;1&e&&(r=s.ɵɵgetCurrentView(),s.ɵɵelementStart(0,"option",60),s.ɵɵlistener("click",function(){s.ɵɵrestoreView(r);var e=n.$implicit,t=s.ɵɵnextContext(2).$implicit;return s.ɵɵnextContext().selectedOption(e,t)}),s.ɵɵtext(1),s.ɵɵelementEnd()),2&e&&(e=n.$implicit,s.ɵɵpropertyInterpolate("value",e.Key),s.ɵɵadvance(1),s.ɵɵtextInterpolate1(" ",e.Value," "))}function ce(e,t){var r,n;1&e&&(r=s.ɵɵgetCurrentView(),s.ɵɵelementStart(0,"div"),s.ɵɵelementStart(1,"div",49),s.ɵɵelementStart(2,"input",50),s.ɵɵlistener("ngModelChange",function(e){return s.ɵɵrestoreView(r),s.ɵɵnextContext().$implicit.descr=e})("click",function(){s.ɵɵrestoreView(r);var e=s.ɵɵnextContext().$implicit;return e.isListHide=!e.isListHide,e.searchText=""}),s.ɵɵelementEnd(),s.ɵɵelementEnd(),s.ɵɵtemplate(3,ae,2,1,"label",33),s.ɵɵelementStart(4,"div",51),s.ɵɵelementStart(5,"input",52),s.ɵɵlistener("ngModelChange",function(e){return s.ɵɵrestoreView(r),s.ɵɵnextContext().$implicit.searchText=e}),s.ɵɵelementEnd(),s.ɵɵelementStart(6,"div",53),s.ɵɵelementStart(7,"select",54),s.ɵɵlistener("ngModelChange",function(e){return s.ɵɵrestoreView(r),s.ɵɵnextContext().$implicit.value=e})("change",function(e){s.ɵɵrestoreView(r);var t=s.ɵɵnextContext().$implicit,n=s.ɵɵnextContext();return t.isEvent?n.onChangeEvent(e.target.value,t):""}),s.ɵɵtemplate(8,le,2,0,"option",55),s.ɵɵtemplate(9,se,2,0,"option",56),s.ɵɵtemplate(10,ue,2,2,"option",57),s.ɵɵpipe(11,"textSearch"),s.ɵɵpipe(12,"textSearch"),s.ɵɵelementEnd(),s.ɵɵelementEnd(),s.ɵɵelementEnd(),s.ɵɵelementEnd()),2&e&&(n=s.ɵɵnextContext().$implicit,s.ɵɵnextContext(),e=s.ɵɵreference(9),s.ɵɵadvance(1),s.ɵɵproperty("hidden",n.isFromURL?1==(null==n||null==n.itemsUrl?null:n.itemsUrl.length):1==(null==n||null==n.items?null:n.items.length)),s.ɵɵadvance(1),s.ɵɵpropertyInterpolate("name","ddsValue"+n.name),s.ɵɵproperty("ngModel",n.descr),s.ɵɵadvance(1),s.ɵɵproperty("ngIf",n.isFromURL?1==(null==n||null==n.itemsUrl?null:n.itemsUrl.length):1==(null==n||null==n.items?null:n.items.length)),s.ɵɵadvance(1),s.ɵɵproperty("hidden",n.isListHide),s.ɵɵadvance(1),s.ɵɵpropertyInterpolate("name","searchText"+n.name),s.ɵɵproperty("ngModel",n.searchText)("placeholder",n.placeholder),s.ɵɵadvance(2),s.ɵɵpropertyInterpolate("name",n.name),s.ɵɵpropertyInterpolate("size",(null==n?null:n.size)==undefined?null==n?null:n.size:10),s.ɵɵproperty("ngModel",n.value)("required",n.isRequired)("ngClass",s.ɵɵpureFunction1(28,N,(e.submitted||(null==e.form.controls[n.name]?null:e.form.controls[n.name].touched)||(null==e.form.controls[n.name]?null:e.form.controls[n.name].dirty))&&(null==e.form.controls[n.name]?null:e.form.controls[n.name].invalid))),s.ɵɵattribute("data-required",n.isRequired)("query-in",n.isQueryIn)("data-type",n.datatype)("data-name",n.name)("label",n.label)("data-crit-datatable",n.isCriteriaDataTable),s.ɵɵadvance(1),s.ɵɵproperty("ngIf","one"==n.ddsType&&(n.isFromURL?1!=(null==n||null==n.itemsUrl?null:n.itemsUrl.length):1!=(null==n||null==n.items?null:n.items.length))),s.ɵɵadvance(1),s.ɵɵproperty("ngIf",((null==n?null:n.ddsType)==undefined||"all"==n.ddsType)&&(n.isFromURL?1!=(null==n||null==n.itemsUrl?null:n.itemsUrl.length):1!=(null==n||null==n.items?null:n.items.length))),s.ɵɵadvance(1),s.ɵɵproperty("ngForOf",n.isFromURL?s.ɵɵpipeBind2(12,25,null==n?null:n.itemsUrl,n.searchText):s.ɵɵpipeBind2(11,22,null==n?null:n.items,n.searchText)))}function pe(e,t){1&e&&(s.ɵɵelementStart(0,"option",45),s.ɵɵtext(1,"Select One"),s.ɵɵelementEnd())}function me(e,t){1&e&&(s.ɵɵelementStart(0,"option",46),s.ɵɵtext(1,"All"),s.ɵɵelementEnd())}function de(e,t){1&e&&(s.ɵɵelementStart(0,"option",47),s.ɵɵtext(1),s.ɵɵelementEnd()),2&e&&(t=t.$implicit,s.ɵɵpropertyInterpolate("value",t.Key),s.ɵɵadvance(1),s.ɵɵtextInterpolate1(" ",t.Value," "))}function fe(e,t){var n,r,i;1&e&&(s.ɵɵelementStart(0,"div"),s.ɵɵelementStart(1,"select",61),s.ɵɵtemplate(2,pe,2,0,"option",42),s.ɵɵtemplate(3,me,2,0,"option",43),s.ɵɵtemplate(4,de,2,2,"option",44),s.ɵɵelementEnd(),s.ɵɵelementEnd()),2&e&&(n=(i=s.ɵɵnextContext()).index,r=i.$implicit,e=s.ɵɵnextContext(),i=s.ɵɵreference(9),s.ɵɵadvance(1),s.ɵɵpropertyInterpolate("name","claim"+s.ɵɵpureFunction1(9,j,n)),s.ɵɵproperty("hidden",1==(null==e.ClaimList?null:e.ClaimList.length))("ngClass",s.ɵɵpureFunction1(23,N,(i.submitted||(null==i.form.controls["claim"+s.ɵɵpureFunction1(11,j,n)]?null:i.form.controls["claim"+s.ɵɵpureFunction1(13,j,n)].touched)||(null==i.form.controls["claim"+s.ɵɵpureFunction1(15,j,n)]?null:i.form.controls["claim"+s.ɵɵpureFunction1(17,j,n)].dirty))&&(null==i.form.controls["claim"+s.ɵɵpureFunction1(19,j,n)]?null:i.form.controls["claim"+s.ɵɵpureFunction1(21,j,n)].invalid))),s.ɵɵattribute("data-type","text")("data-crit-datatable",r.isCriteriaDataTable)("data-name","Assignee"),s.ɵɵadvance(1),s.ɵɵproperty("ngIf","one"==r.ddlType&&1!=(null==e.ClaimList?null:e.ClaimList.length)),s.ɵɵadvance(1),s.ɵɵproperty("ngIf",((null==r?null:r.ddlType)==undefined||"all"==r.ddlType)&&1!=(null==e.ClaimList?null:e.ClaimList.length)),s.ɵɵadvance(1),s.ɵɵproperty("ngForOf",e.ClaimList))}function he(e,t){var n;1&e&&s.ɵɵelement(0,"lib-uc-show-errors",62),2&e&&(n=s.ɵɵnextContext().$implicit,s.ɵɵnextContext(),e=s.ɵɵreference(9),s.ɵɵproperty("control",e.form.controls[n.name])("submit",e.submitted))}function ye(e,t){var n,r;1&e&&s.ɵɵelement(0,"lib-uc-show-errors",62),2&e&&(n=(r=s.ɵɵnextContext()).$implicit,e=r.index,s.ɵɵnextContext(),r=s.ɵɵreference(9),s.ɵɵproperty("control",r.form.controls[n.name+s.ɵɵpureFunction1(2,j,e)])("submit",r.submitted))}var ge=function(e){return{"adins-required-label":e}};function ve(e,t){1&e&&(s.ɵɵelementStart(0,"div",30),s.ɵɵelementStart(1,"div",2),s.ɵɵelementStart(2,"div",17),s.ɵɵelementStart(3,"label",31),s.ɵɵtext(4),s.ɵɵelementEnd(),s.ɵɵelementStart(5,"div",32),s.ɵɵtemplate(6,P,2,14,"div",33),s.ɵɵtemplate(7,_,2,12,"div",33),s.ɵɵtemplate(8,$,2,29,"div",33),s.ɵɵtemplate(9,J,3,2,"div",33),s.ɵɵtemplate(10,z,4,39,"div",33),s.ɵɵtemplate(11,ee,6,14,"div",33),s.ɵɵtemplate(12,oe,6,17,"div",33),s.ɵɵtemplate(13,ce,13,30,"div",33),s.ɵɵtemplate(14,fe,5,25,"div",33),s.ɵɵtemplate(15,he,1,2,"lib-uc-show-errors",34),s.ɵɵtemplate(16,ye,1,4,"lib-uc-show-errors",34),s.ɵɵelementEnd(),s.ɵɵelementEnd(),s.ɵɵelementEnd(),s.ɵɵelementEnd()),2&e&&(t=t.$implicit,s.ɵɵadvance(3),s.ɵɵpropertyInterpolate("for",t.id),s.ɵɵproperty("ngClass",s.ɵɵpureFunction1(14,ge,t.isRequired||(null==t?null:t.ddlType)!=undefined&&"one"==t.ddlType)),s.ɵɵadvance(1),s.ɵɵtextInterpolate(t.label),s.ɵɵadvance(2),s.ɵɵproperty("ngIf","textbox"==t.type),s.ɵɵadvance(1),s.ɵɵproperty("ngIf","textarea"==t.type),s.ɵɵadvance(1),s.ɵɵproperty("ngIf","numeric"==t.type),s.ɵɵadvance(1),s.ɵɵproperty("ngIf","currency"==t.type),s.ɵɵadvance(1),s.ɵɵproperty("ngIf","datepicker"==t.type),s.ɵɵadvance(1),s.ɵɵproperty("ngIf","taskDefinitionKey"==t.type||"processKey"==t.type||"officeRoleCodes"==t.type),s.ɵɵadvance(1),s.ɵɵproperty("ngIf","dropdown"==t.type),s.ɵɵadvance(1),s.ɵɵproperty("ngIf","dropdownSearch"==t.type),s.ɵɵadvance(1),s.ɵɵproperty("ngIf","claim"==t.type),s.ɵɵadvance(1),s.ɵɵproperty("ngIf","datepicker"!=t.type),s.ɵɵadvance(1),s.ɵɵproperty("ngIf","datepicker"==t.type))}function xe(e,t){1&e&&(s.ɵɵelementStart(0,"option",47),s.ɵɵtext(1),s.ɵɵelementEnd()),2&e&&(t=t.$implicit,s.ɵɵproperty("value",t.key),s.ɵɵadvance(1),s.ɵɵtextInterpolate(t.value))}function be(e,t){var n;1&e&&(n=s.ɵɵgetCurrentView(),s.ɵɵelementStart(0,"div",30),s.ɵɵelementStart(1,"div",2),s.ɵɵelementStart(2,"div",17),s.ɵɵelementStart(3,"label",63),s.ɵɵtext(4,"Report Type"),s.ɵɵelementEnd(),s.ɵɵelementStart(5,"div",32),s.ɵɵelementStart(6,"select",64),s.ɵɵlistener("ngModelChange",function(e){return s.ɵɵrestoreView(n),s.ɵɵnextContext().ExportType=e}),s.ɵɵtemplate(7,xe,2,2,"option",44),s.ɵɵelementEnd(),s.ɵɵelementEnd(),s.ɵɵelementEnd(),s.ɵɵelementEnd(),s.ɵɵelementEnd()),2&e&&(e=s.ɵɵnextContext(),s.ɵɵadvance(6),s.ɵɵproperty("ngModel",e.ExportType),s.ɵɵadvance(1),s.ɵɵproperty("ngForOf",e.ExportTypeList))}function Ce(e,t){var n;1&e&&(n=s.ɵɵgetCurrentView(),s.ɵɵelementStart(0,"button",65),s.ɵɵlistener("click",function(){return s.ɵɵrestoreView(n),s.ɵɵnextContext().exportAsXLSX()}),s.ɵɵelement(1,"i",66),s.ɵɵtext(2," "),s.ɵɵelementStart(3,"span",25),s.ɵɵtext(4,"Export Excel"),s.ɵɵelementEnd(),s.ɵɵelementEnd())}function Ie(e,t){1&e&&(s.ɵɵelementStart(0,"button",67,68),s.ɵɵelement(2,"i",69),s.ɵɵtext(3," "),s.ɵɵelementStart(4,"span",25),s.ɵɵtext(5,"Search"),s.ɵɵelementEnd(),s.ɵɵelementEnd())}function Ee(e,t){var n;1&e&&(n=s.ɵɵgetCurrentView(),s.ɵɵelementStart(0,"button",70),s.ɵɵlistener("click",function(){return s.ɵɵrestoreView(n),s.ɵɵnextContext().GenerateReport()}),s.ɵɵelement(1,"i",66),s.ɵɵtext(2," "),s.ɵɵelementStart(3,"span",25),s.ɵɵtext(4,"Generate Report"),s.ɵɵelementEnd(),s.ɵɵelementEnd())}var Se=(Object.defineProperty(we.prototype,"content",{set:function(e){e&&(this.searchForm=e)},enumerable:!1,configurable:!0}),we.prototype.changeState=function(){this.currentState="initial"==this.currentState?"final":"initial",this.isHidden=!this.isHidden},we.prototype.ngOnInit=function(){return g(this,void 0,void 0,function(){var t;return v(this,function(e){switch(e.label){case 0:return console.log("ucsearch"),this.apiUrl=this.searchInput.enviromentUrl+this.searchInput.apiQryPaging,this.arrCrit=this.searchInput.arrCritObj,(t=this._renderer2.createElement("script")).text='\n $(document).ready(function(){\n $("#flip").click(function(){\n $("#panel").slideToggle("slow");\n });\n });\n ',this._renderer2.appendChild(this._document.body,t),t=this.cookieService.get("BusinessDateRaw"),this.BisDt=this.DecryptString(t,"AdInsFOU12345678"),this.BusinessDt=new Date(this.BisDt),[4,this.initiateForm()];case 1:return e.sent(),[2]}})})},we.prototype.initiateForm=function(){return g(this,void 0,void 0,function(){var s=this;return v(this,function(e){switch(e.label){case 0:return[4,this.getJSON(this.searchInput._url).subscribe(function(t){s.configuration=t,s.exportData=t.exportExcel,t.exportTypeList!=undefined&&0!=t.exportTypeList.length&&(s.ExportTypeList=t.exportTypeList,s.ExportType=s.ExportTypeList[0].key),s.countForm=t.component.length,s.isDataLoaded=!0,s.searchInput.title!=undefined&&""!=s.searchInput.title&&(s.configuration.title=s.searchInput.title);for(var e,n,r=0;r<s.countForm;r++){if(t.component[r].isFromURL){var i=new S,o=new Array,a=new E;if(a.DataType="text",a.propName=t.component[r].criteriaPropName,a.value=t.component[r].criteriaPropValue,a.restriction="eq",o.push(a),i.criteria=o,i[t.component[r].criteriaPropName]=t.component[r].criteriaPropValue,t.component[r].path!=undefined&&""!=t.component[r].path)if(s.searchInput.listEnvironments!=undefined&&0!=s.searchInput.listEnvironments.length){for(var l=0;l<s.searchInput.listEnvironments.length;l++)if(t.component[r].environment==s.searchInput.listEnvironments[l].environment){t.component[r].fullpath=s.searchInput.listEnvironments[l].url+t.component[r].path;break}}else t.component[r].fullpath=t.component[r].url;else t.component[r].fullpath=t.component[r].url;s.resolveObject(t.component[r],t.component[r].fullpath,i)}"numeric"==t.component[r].type&&(t.component[r].value=parseFloat(t.component[r].value).toLocaleString("en")),"dropdown"==t.component[r].type&&t.component[r].dtmType!=undefined&&(t.component[r].dtmType.includes("month")&&(t.component[r].value!=undefined&&t.component[r].value.includes("BD")&&(t.component[r].value=s.setDefaultValueMonth(t.component[r].value)),t.component[r].items=s.setMonthDDL(t.component[r].dtmType)),t.component[r].dtmType.includes("year")&&(t.component[r].value!=undefined&&t.component[r].value.includes("BD")&&(t.component[r].value=s.setDefaultValueYear(t.component[r].value)),t.component[r].items=s.setYearDDL(t.component[r].dtmType))),"dropdownSearch"!=t.component[r].type||t.component[r].isFromURL||1!=t.component[r].items.length||(t.component[r].value=t.component[r].items[0].Key,t.component[r].descr=t.component[r].items[0].Value),"dropdownSearch"==t.component[r].type||t.component[r].value||(t.component[r].value="","all"==t.component[r].ddlType&&(t.component[r].value="all"),"one"==t.component[r].ddlType&&(t.component[r].value="one")),"datepicker"==t.component[r].type&&(s.readonly=t.component[r].readonly,t.component[r].value.includes("BD")&&(a=new Date,null!=s.BisDt&&(a=new Date(s.BisDt)),o=t.component[r].value.charAt(2),i=new Date,"-"==o?(e=t.component[r].value.split("-",2),n=parseInt(e[1]),a.setDate(a.getDate()-n)):"+"==o&&(e=t.component[r].value.split("+",2),n=parseInt(e[1]),a.setDate(a.getDate()+n)),i=a,i=u.formatDate(i,"yyyy-MM-dd","en-US"),t.component[r].value=i),s.readonly=!1)}setTimeout(function(){for(var e=0;e<s.countForm;e++)t.component[e].isEvent&&1==s.configuration.component[e].itemsUrl.length&&s.onChangeEvent(t.component[e].itemsUrl[0].Key,t.component[e]),"officeRoleCodes"==t.component[e].type&&0<s.configuration.component[e].itemsUrl.length&&s.SetRoleOfficeCodes(e)},1e3)})];case 1:return e.sent(),[2]}})})},we.prototype.SetRoleOfficeCodes=function(e){var t=this.cookieService.get("UserAccess"),n=JSON.parse(this.DecryptString(t,"AdInsFOU12345678")).RoleCode,r=new Array;r.push(n);t=this.myForm.nativeElement[e].options,t=t[t.selectedIndex].value.trim();if(1==this.configuration.component[e].itemsUrl.length||"all"==this.configuration.component[e].ddlType&&"all"==t)for(var i=0;i<this.configuration.component[e].itemsUrl.length;i++){var o=this.configuration.component[e].itemsUrl[i];r.push(o.Key),r.push(n+"-"+o.Key)}else r.push(t),r.push(n+"-"+t);this.searchInput.integrationObj.requestObj.OfficeRoleCodes=r},we.prototype.setDefaultValueMonth=function(e){var t=new Date(this.BusinessDt),n=e.charAt(2),e=e.split(n,2),e=(e=parseInt(e[1]))||1;return"-"==n?t.setMonth(t.getMonth()-e):"+"==n&&t.setMonth(t.getMonth()+e),t.getMonth()},we.prototype.setMonthDDL=function(e){var t,n=e.match("[\\/+][-]|[-][\\/+]|\\/+|-"),r=this.BusinessDt.getMonth(),i=this.BusinessDt.getMonth(),o=n[0],a=parseInt(e.substring(n.index+n[0].length));if(12<=a)return this.ListOfMonth.ListOfMonth;if(("+-"==o||"-+"==o)&&6<=a)return this.ListOfMonth.ListOfMonth;var l=this.ListOfMonth.DictOfMonth;t.push({key:r,value:l[r]});for(var s=0;s<a;s++)o.includes("-")&&(0==--r&&(r=12),t.push({key:r,value:l[r]})),o.includes("+")&&(13==++i&&(i=1),t.push({key:i,value:l[i]}));return t.sort(function(e,t){return e.key-t.key}),t},we.prototype.setDefaultValueYear=function(e){var t=new Date(this.BusinessDt),n=e.charAt(2),e=e.split(n,2),e=(e=parseInt(e[1]))||1;return"-"==n?t.setFullYear(t.getFullYear()-e):"+"==n&&t.setFullYear(t.getFullYear()+e),t.getFullYear()},we.prototype.setYearDDL=function(e){this.ListOfYear=new Array;var t=e.match("[\\/+][-]|[-][\\/+]|\\/+|-"),n=this.BusinessDt.getFullYear(),r=this.BusinessDt.getFullYear(),i=parseInt(e.substring(t.index+t[0].length));this.ListOfYear.push({key:this.BusinessDt.getFullYear(),value:this.BusinessDt.getFullYear().toString()});for(var o=0;o<i;o++)"-+"==t[0]||"+-"==t[0]?(r++,this.ListOfYear.push({key:--n,value:n.toString()},{key:r,value:r.toString()})):"-"==t[0]?this.ListOfYear.push({key:--n,value:n.toString()}):"+"==t[0]&&this.ListOfYear.push({key:++r,value:r.toString()});return this.ListOfYear.sort(function(e,t){return e.key-t.key}),this.ListOfYear},we.prototype.getJSON=function(e){return this.http.get(e)},we.prototype.postJSON=function(e,t){return this.http.post(e,t=void 0===t?null:t)},we.prototype.searchClick=function(){var e=null;null!=this.configuration.orderby&&(e={key:this.configuration.orderby.key,value:this.configuration.orderby.value}),this.pageNow=1,this.search(this.apiUrl,this.pageNow,this.pageSize,e,this.arrCrit)},we.prototype.reset=function(){return g(this,void 0,void 0,function(){return v(this,function(e){switch(e.label){case 0:return this.searchForm.resetForm({ExportType:this.ExportTypeList[0].key}),[4,this.initiateForm()];case 1:return e.sent(),[2]}})})},we.prototype.search=function(e,n,t,r,i){var o=this;void 0===i&&(i=new Array);var a=new S,l=new Array,s=!1,u=!1;if(this.searchInput.whereValue!=undefined&&0!=this.searchInput.whereValue.length){this.configuration.querystring.whereQuery=new Array;for(var c=0;c<this.searchInput.whereValue.length;c++)this.configuration.querystring.whereQuery.push(this.searchInput.whereValue[c].value)}if(this.searchInput.fromValue!=undefined&&0!=this.searchInput.fromValue.length){this.configuration.querystring.fromQuery=new Array;for(c=0;c<this.searchInput.fromValue.length;c++)this.configuration.querystring.fromQuery.push(this.searchInput.fromValue[c].value)}a.pageNo=n,a.rowPerPage=t,a.orderBy=r,a.queryString=this.configuration.querystring;for(var p=-1,m=0;m<this.countForm;m++){var d=new E;"dropdownSearch"==this.configuration.component[m].type?p+=3:p++;var f=this.myForm.nativeElement[p];if(d.DataType=f.getAttribute("data-type"),s=null!=f.getAttribute("query-in")&&"true"==f.getAttribute("query-in"),""!=f.value)if("SELECT"==f.nodeName){var h=f.options,y=h[h.selectedIndex].value.trim();if("one"==y){u=!0,h=f.getAttribute("label");this.toastr.warning("Please select "+h);break}if(""!=f.getAttribute("data-crit-datatable")&&null!=f.getAttribute("data-crit-datatable")&&(d.isCriteriaDataTable=f.getAttribute("data-crit-datatable")),"taskDefinitionKey"!=this.configuration.component[m].type&&"processKey"!=this.configuration.component[m].type)if("claim"==this.configuration.component[m].type)d.propName=f.getAttribute("data-name"),d.restriction=y,d.value=null,l.push(d);else if("all"!=y&&"one"!=y)d.restriction=x.RestrictionEq,""!=f.name?d.propName=f.name:d.propName=f.getAttribute("data-name"),d.value=y,l.push(d);else if("all"==y&&s&&0!=f.options.length){for(var g=new Array,c=0;c<f.options.length;c++)0!=c&&g.push(f.options[c].value);0!=g.length&&(d.restriction=x.RestrictionIn,""!=f.name?d.propName=f.name:d.propName=f.getAttribute("data-name"),d.listValue=g,l.push(d))}}else""!=f.name?d.propName=f.name:d.propName=f.getAttribute("data-name"),d.value=f.value.trim(),f.value.includes("%")?d.restriction=x.RestrictionLike:""!=f.getAttribute("data-restriction")&&null!=f.getAttribute("data-restriction")?(d.restriction=f.getAttribute("data-restriction"),"numeric"==f.getAttribute("data-type")&&(d.value=parseFloat(f.value.replace(/,/g,"")).toString()),"LIKE"==d.restriction.toUpperCase()&&(d.value="%"+f.value.trim()+"%",d.restriction=x.RestrictionLike)):d.restriction=x.RestrictionEq,""!=f.getAttribute("data-crit-datatable")&&null!=f.getAttribute("data-crit-datatable")&&(d.isCriteriaDataTable=f.getAttribute("data-crit-datatable")),l.push(d)}if(!u){if(null!=i&&i!=undefined){if(0!=i.length)for(m=0;m<i.length;m++)l.push(i[m]);else if(null!=this.searchInput.addCritInput||this.searchInput.addCritInput!=undefined)for(m=0;m<this.searchInput.addCritInput.length;m++)l.push(this.searchInput.addCritInput[m])}else if(null!=this.searchInput.addCritInput||this.searchInput.addCritInput!=undefined)for(m=0;m<this.searchInput.addCritInput.length;m++)l.push(this.searchInput.addCritInput[m]);a.criteria=l,this.searchInput.isJoinExAPI?a.integrationObj=this.searchInput.integrationObj:a.integrationObj=null,this.http.post(e,a).subscribe(function(e){var t={response:e,pageNow:n};return console.log(t),o.result.emit(t),o.reqGetAllData.emit(a),e})}},we.prototype.GenerateReport=function(){this.genRpt.emit({ExportType:this.ExportType,ElRef:this.myForm})},we.prototype.lessThanFour=function(){return!(3<this.countForm)},we.prototype.resolveObject=function(t,e,n){var r=this;this.postJSON(e,n=void 0===n?null:n).subscribe(function(e){t.itemsUrl=new Array,t.itemsUrl=e.ReturnObject,t.exclude!=undefined&&""!=t.exclude&&(t.itemsUrl=t.itemsUrl.filter(function(e){return!t.exclude.includes(e.Key)})),"dropdownSearch"==t.type&&1==t.itemsUrl.length&&(t.value=t.itemsUrl[0].Key,t.descr=t.itemsUrl[0].Value),t.affectedFilter&&1==t.itemsUrl.length&&r.onChangeEvent(t.itemsUrl[0].Key,t)})},we.prototype.transformAmount=function(e){this.formattedAmount=parseFloat(e.target.value).toLocaleString("en"),e.target.value=this.formattedAmount},we.prototype.transformToDecimal=function(e){e.target.value=parseFloat(e.target.value.toString().replace(/,/g,""))},we.prototype.exportAsXLSX=function(){var t=this,e=new S;e.pageNo=1,e.rowPerPage=9999,e.orderBy=null,e.criteria=[],e.queryString=this.configuration.querystring,this.searchInput.isJoinExAPI?e.integrationObj=this.searchInput.integrationObj:e.integrationObj=null,this.http.post(this.apiUrl,e).subscribe(function(e){t.ExcelData=e.Data,t.excelService.exportAsExcelFile(t.ExcelData,"sample")},function(e){console.log(e)})},we.prototype.onChangeEvent=function(e,t){for(var n=this.configuration.component,r=0;r<t.affectedFilter.length;r++)for(var i=0;i<n.length;i++)if(n[i].name==t.affectedFilter[r]){var o,a=new S,l=new Array;if("all"!=e&&"one"!=e&&((o=new E).DataType=t.datatype,t.filterPropName!=undefined||""!=t.filterPropName?(a[t.filterPropName]=e,o.propName=t.filterPropName):(o.propName=t.name,a[t.name]=e),o.value=e,o.restriction=x.RestrictionEq,l.push(o)),a.criteria=l,n[i].path!=undefined&&""!=n[i].path)if(this.searchInput.listEnvironments!=undefined&&0!=this.searchInput.listEnvironments.length){for(var s=0;s<this.searchInput.listEnvironments.length;s++)if(n[i].environment==this.searchInput.listEnvironments[s].environment){n[i].fullpath=this.searchInput.listEnvironments[s].url+n[i].path;break}}else n[i].fullpath=n[i].url;else n[i].fullpath=n[i].url;this.resolveObject(n[i],n[i].fullpath,a)}},we.prototype.SetProcessKey=function(e,t){e=this.myForm.nativeElement[e].options,e=e[e.selectedIndex].value.trim();e&&(this.searchInput.integrationObj.requestObj[t]=e)},we.prototype.switchCase=function(r){for(var i=!1,o=this,e=0;e<r.conditions.length;e++)if("break"===function(t){var e=o.searchInput.switchValue.findIndex(function(e){return e.property==r.conditions[t].property});if("EQ"==r.conditions[t].restriction)if(r.conditions[t].isUser){var n=localStorage.getItem("Username");if(o.searchInput.switchValue[e].value!=n)return i=!1,"break";i=!0}else{if(o.searchInput.switchValue[e].value!=r.conditions[t].value)return i=!1,"break";i=!0}else if("NEQ"==r.conditions[t].restriction)if(1!=r.conditions[t].isUser){if(o.searchInput.switchValue[e].value==r.conditions[t].value)return i=!1,"break";i=!0}else{n=localStorage.getItem("Username");if(o.searchInput.switchValue[e].value==n)return i=!1,"break";i=!0}else if("GT"==r.conditions[t].restriction)if(r.conditions[t].isUser){n=localStorage.getItem("Username");if(!(o.searchInput.switchValue[e].value>n))return i=!1,"break";i=!0}else{if(!(o.searchInput.switchValue[e].value>r.conditions[t].value))return i=!1,"break";i=!0}else if("GTE"==r.conditions[t].restriction)if(r.conditions[t].isUser){n=localStorage.getItem("Username");if(!(o.searchInput.switchValue[e].value>=n))return i=!1,"break";i=!0}else{if(!(o.searchInput.switchValue[e].value>=r.conditions[t].value))return i=!1,"break";i=!0}else if("LT"==r.conditions[t].restriction)if(r.conditions[t].isUser){n=localStorage.getItem("Username");if(!(o.searchInput.switchValue[e].value<n))return i=!1,"break";i=!0}else{if(!(o.searchInput.switchValue[e].value<r.conditions[t].value))return i=!1,"break";i=!0}else if("LTE"==r.conditions[t].restriction)if(r.conditions[t].isUser){n=localStorage.getItem("Username");if(!(o.searchInput.switchValue[e].value<=n))return i=!1,"break";i=!0}else{if(!(o.searchInput.switchValue[e].value<=r.conditions[t].value))return i=!1,"break";i=!0}}(e))break;return i},we.prototype.DecryptString=function(e,t){if(t==undefined||""==t.trim()||e==undefined||""==e.trim())return e;var n=l.enc.Utf8.parse(t),t=l.lib.WordArray.create([0,0,0,0]);return l.AES.decrypt(e,n,{iv:t}).toString(l.enc.Utf8)},we.prototype.checkInputDate=function(t){var e,n,r,i=new Array,o=this.configuration.component.find(function(e){return e.name==t.name&&"GTE"==e.restriction.toUpperCase()})==undefined?this.configuration.component.find(function(e){return e.name==t.name&&"GT"==e.restriction.toUpperCase()}):this.configuration.component.find(function(e){return e.name==t.name&&"GTE"==e.restriction.toUpperCase()});o!=undefined&&(e=""==this.myForm.nativeElement[o.id].min?null:new Date(this.myForm.nativeElement[o.id].min),r=o.label.split(">",2),null!=e&&("GT"==o.restriction.toUpperCase()?(e.setDate(e.getDate()-1),i.push(" must be greater than ")):"GTE"==o.restriction.toUpperCase()&&i.push(" must be greater than or equals to ")));var a=this.configuration.component.find(function(e){return e.name==t.name&&"LTE"==e.restriction.toUpperCase()})==undefined?this.configuration.component.find(function(e){return e.name==t.name&&"LT"==e.restriction.toUpperCase()}):this.configuration.component.find(function(e){return e.name==t.name&&"LTE"==e.restriction.toUpperCase()});a!=undefined&&(n=""==this.myForm.nativeElement[a.id].max?null:new Date(this.myForm.nativeElement[a.id].max),r=a.label.split("<",2),null!=n&&("LT"==a.restriction.toUpperCase()?(n.setDate(n.getDate()+1),i.push(" must be less than ")):"LTE"==a.restriction.toUpperCase()&&i.push(" must be less than or equals to "))),null!=e&&null==n&&new Date(this.myForm.nativeElement[o.id].value)<e?(this.toastr.warning(r[0]+i[0]+u.formatDate(e,"dd MMMM yyyy","en-US")+"."),this.dateWrong=!0):null!=n&&null==e&&new Date(this.myForm.nativeElement[a.id].value)>n?(this.toastr.warning(r[0]+i[0]+u.formatDate(n,"dd MMMM yyyy","en-US")+"."),this.dateWrong=!0):null!=e&&null!=n&&(new Date(this.myForm.nativeElement[a.id].value)>n||new Date(this.myForm.nativeElement[o.id].value)<e)?(this.toastr.warning(r[0]+i[0]+u.formatDate(e,"dd MMMM yyyy","en-US")+" and"+i[1]+u.formatDate(n,"dd MMMM yyyy","en-US")+"."),this.dateWrong=!0):this.dateWrong=!1},we.prototype.selectedOption=function(e,t){t.descr=e.Value,t.isListHide=!0},we.decorators=[{type:s.Component,args:[{selector:"lib-UCSearch",templateUrl:"./ucsearch.component.html",styleUrls:["./ucsearch.component.css"],providers:[w,u.DatePipe],animations:[i.trigger("changeDivSize",[i.state("initial",i.style({height:"*",opacity:"1"})),i.state("final",i.style({height:"0px",opacity:"0",overflow:"hidden"})),i.transition("initial=>final",i.animate("300ms")),i.transition("final=>initial",i.animate("300ms"))])]}]}],we.ctorParameters=function(){return[{type:t.HttpClient},{type:w},{type:s.Renderer2},{type:undefined,decorators:[{type:s.Inject,args:[u.DOCUMENT]}]},{type:o.ToastrService},{type:a.CookieService},{type:u.DatePipe},{type:s.ElementRef}]},we.propDecorators={content:[{type:s.ViewChild,args:["enjiForm"]}],myForm:[{type:s.ViewChild,args:["formIdSearch",{"static":!1}]}],searchInput:[{type:s.Input}],pageSize:[{type:s.Input}],isReport:[{type:s.Input}],result:[{type:s.Output}],genRpt:[{type:s.Output}],reqGetAllData:[{type:s.Output}]},we.ɵfac=function(e){return new(e||we)(s.ɵɵdirectiveInject(t.HttpClient),s.ɵɵdirectiveInject(w),s.ɵɵdirectiveInject(s.Renderer2),s.ɵɵdirectiveInject(u.DOCUMENT),s.ɵɵdirectiveInject(o.ToastrService),s.ɵɵdirectiveInject(a.CookieService),s.ɵɵdirectiveInject(u.DatePipe),s.ɵɵdirectiveInject(s.ElementRef))},we.ɵcmp=s.ɵɵdefineComponent({type:we,selectors:[["lib-UCSearch"]],viewQuery:function(e,t){1&e&&(s.ɵɵviewQuery(O,!0),s.ɵɵviewQuery(L,!0)),2&e&&(s.ɵɵqueryRefresh(e=s.ɵɵloadQuery())&&(t.content=e.first),s.ɵɵqueryRefresh(e=s.ɵɵloadQuery())&&(t.myForm=e.first))},inputs:{searchInput:"searchInput",pageSize:"pageSize",isReport:"isReport"},outputs:{result:"result",genRpt:"genRpt",reqGetAllData:"reqGetAllData"},features:[s.ɵɵProvidersFeature([w,u.DatePipe])],decls:34,vars:11,consts:[["id","horizontal-form-layouts"],[1,"row","text-left"],[1,"col-md-12"],[1,"card"],["class","pl-3 mb-2 mt-2",4,"ngIf"],[1,"card-body"],[1,"px-3"],["id","formSearch",1,"form","form-horizontal",3,"ngSubmit"],["formIdSearch","","enjiForm","ngForm"],[1,"form-body"],[1,"form-section","font-weight-bold"],[1,"btn","no-padding","cursor-pointer","flip",3,"click"],[1,"fa",2,"font-size","15px","margin","0px 0px 5px -15px",3,"ngClass"],[4,"ngIf","ngIfThen","ngIfElse"],["inputSectionTitle",""],["defaultSectionTitle",""],[1,"panel-active"],[1,"row"],["class","col-md-6 form-group",4,"ngFor","ngForOf"],["class","col-md-6 form-group",4,"ngIf"],[1,"col-md-12","no-padding"],[1,"form-actions","right"],["type","button","class","btn btn-raised btn-success mr-1","translate","",3,"click",4,"ngIf"],["type","button","translate","",1,"btn","btn-raised","btn-warning","mr-1",3,"click"],[1,"fa","fa-times"],["translate",""],["type","submit","class","btn btn-raised btn-primary",4,"ngIf"],["type","button","class","btn btn-raised btn-primary",3,"click",4,"ngIf"],[1,"pl-3","mb-2","mt-2"],["translate","",1,"card-title","ucSearch-title"],[1,"col-md-6","form-group"],["translate","",1,"col-md-5","no-padding",3,"for","ngClass"],[1,"col-md-7","no-padding"],[4,"ngIf"],[3,"control","submit",4,"ngIf"],["type","text",1,"form-control","search-form-control",3,"id","ngModel","required","name","value","ngClass","keyup.enter"],["type","text",1,"form-control","search-form-control",3,"id","ngModel","required","name","value","ngClass"],["type","number",1,"form-control","search-form-control",3,"id","ngModel","required","name","value","ngClass","focus","blur","keyup.enter"],["type","","currencyMask","",1,"form-control","search-form-control",3,"id","required","name","ngModel","ngModelOptions","options","ngClass","keyup.enter","ngModelChange"],["type","text","currencyMask","",1,"form-control","search-form-control",3,"id","required","name","ngModel","ngModelOptions","options","ngClass","keyup.enter","ngModelChange"],[1,"form-control","search-form-control","btn-lookup",3,"type","id","name","ngModel","required","value","readonly","min","max","ngClass","keyup.enter","focusout"],[1,"form-control","search-form-control",3,"name","required","hidden","ngClass","change"],["value","one",4,"ngIf"],["value","all",4,"ngIf"],[3,"value",4,"ngFor","ngForOf"],["value","one"],["value","all"],[3,"value"],[1,"form-control","search-form-control",3,"name","ngModel","required","hidden","ngClass","ngModelChange","change"],[1,"dds-display-item",3,"hidden"],["type","text","readonly","",1,"form-control","search-form-control","dds-input",3,"name","ngModel","ngModelChange","click"],[1,"dds-list-container",3,"hidden"],["type","text",1,"form-control","search-form-control",3,"name","ngModel","placeholder","ngModelChange"],[1,"dds-items-container"],[1,"full-width",3,"name","ngModel","required","ngClass","size","ngModelChange","change"],["value","one",3,"click",4,"ngIf"],["value","all",3,"click",4,"ngIf"],[3,"value","click",4,"ngFor","ngForOf"],["value","one",3,"click"],["value","all",3,"click"],[3,"value","click"],[1,"form-control","search-form-control",3,"name","hidden","ngClass"],[3,"control","submit"],["translate","",1,"col-md-5","no-padding"],["name","ExportType","attr.data-type","text",1,"form-control","search-form-control",3,"ngModel","ngModelChange"],["type","button","translate","",1,"btn","btn-raised","btn-success","mr-1",3,"click"],[1,"fa","ft-download"],["type","submit",1,"btn","btn-raised","btn-primary"],["UCSearchClick",""],[1,"fa","fa-search"],["type","button",1,"btn","btn-raised","btn-primary",3,"click"]],template:function(e,t){var n,r;1&e&&(n=s.ɵɵgetCurrentView(),s.ɵɵelementStart(0,"section",0),s.ɵɵelementStart(1,"div",1),s.ɵɵelementStart(2,"div",2),s.ɵɵelementStart(3,"div",3),s.ɵɵtemplate(4,R,3,1,"div",4),s.ɵɵelementStart(5,"div",5),s.ɵɵelementStart(6,"div",6),s.ɵɵelementStart(7,"form",7,8),s.ɵɵlistener("ngSubmit",function(){return s.ɵɵrestoreView(n),s.ɵɵreference(9).valid&&t.searchClick()}),s.ɵɵelementStart(10,"div",9),s.ɵɵelementStart(11,"h4",10),s.ɵɵelementStart(12,"div",11),s.ɵɵlistener("click",function(){return t.changeState()}),s.ɵɵelement(13,"i",12),s.ɵɵelementEnd(),s.ɵɵtemplate(14,q,1,0,"span",13),s.ɵɵtemplate(15,V,1,1,"ng-template",null,14,s.ɵɵtemplateRefExtractor),s.ɵɵtemplate(17,A,1,0,"ng-template",null,15,s.ɵɵtemplateRefExtractor),s.ɵɵelementEnd(),s.ɵɵelementStart(19,"div",16),s.ɵɵelementStart(20,"div",17),s.ɵɵtemplate(21,ve,17,16,"div",18),s.ɵɵtemplate(22,be,8,2,"div",19),s.ɵɵelementEnd(),s.ɵɵelementStart(23,"div",20),s.ɵɵelementStart(24,"div",21),s.ɵɵtemplate(25,Ce,5,0,"button",22),s.ɵɵelementStart(26,"button",23),s.ɵɵlistener("click",function(){return t.reset()}),s.ɵɵelement(27,"i",24),s.ɵɵtext(28," "),s.ɵɵelementStart(29,"span",25),s.ɵɵtext(30,"Reset"),s.ɵɵelementEnd(),s.ɵɵelementEnd(),s.ɵɵtemplate(31,Ie,6,0,"button",26),s.ɵɵtemplate(32,Ee,5,0,"button",27),s.ɵɵelementEnd(),s.ɵɵelementEnd(),s.ɵɵelementEnd(),s.ɵɵelementEnd(),s.ɵɵelementEnd(),s.ɵɵelementEnd(),s.ɵɵelementEnd(),s.ɵɵelementEnd(),s.ɵɵelementEnd(),s.ɵɵelementEnd(),s.ɵɵelementEnd(),s.ɵɵelement(33,"br")),2&e&&(r=s.ɵɵreference(16),e=s.ɵɵreference(18),s.ɵɵadvance(4),s.ɵɵproperty("ngIf",(null==t.configuration?null:t.configuration.title)!=undefined&&""!=(null==t.configuration?null:t.configuration.title)),s.ɵɵadvance(9),s.ɵɵproperty("ngClass",t.isHidden?"fa-chevron-right":"fa-chevron-down"),s.ɵɵadvance(1),s.ɵɵproperty("ngIf",(null==t.configuration?null:t.configuration.sectionTitle)!=undefined&&""!=(null==t.configuration?null:t.configuration.sectionTitle))("ngIfThen",r)("ngIfElse",e),s.ɵɵadvance(5),s.ɵɵproperty("@changeDivSize",t.currentState),s.ɵɵadvance(2),s.ɵɵproperty("ngForOf",null==t.configuration?null:t.configuration.component),s.ɵɵadvance(1),s.ɵɵproperty("ngIf",t.isReport!=undefined&&t.isReport),s.ɵɵadvance(3),s.ɵɵproperty("ngIf",1==t.exportData),s.ɵɵadvance(6),s.ɵɵproperty("ngIf",t.isReport==undefined||!t.isReport),s.ɵɵadvance(1),s.ɵɵproperty("ngIf",t.isReport!=undefined&&t.isReport))},directives:[u.NgIf,c.ɵangular_packages_forms_forms_bh,c.NgControlStatusGroup,c.NgForm,u.NgClass,u.NgForOf,m.TranslateDirective,f.UpperCaseDirective,c.DefaultValueAccessor,c.NgControlStatus,c.NgModel,c.RequiredValidator,c.ɵangular_packages_forms_forms_be,p.CurrencyMaskDirective,c.NgSelectOption,c.ɵangular_packages_forms_forms_s,c.SelectControlValueAccessor,d.UcShowErrorsComponent],pipes:[u.DatePipe,T],styles:[".ucSearch-title[_ngcontent-%COMP%]{margin:3px}.dds-input[_ngcontent-%COMP%]{background-color:#fff;text-transform:uppercase}.dds-display-item[_ngcontent-%COMP%]:after{content:'\\e929';font-family:feather;font-size:1rem;display:inline-block;position:absolute;right:5px;top:5px;transform:rotate(90deg)}.dds-list-container[_ngcontent-%COMP%]{position:absolute;width:100%;z-index:9}"],data:{animation:[i.trigger("changeDivSize",[i.state("initial",i.style({height:"*",opacity:"1"})),i.state("final",i.style({height:"0px",opacity:"0",overflow:"hidden"})),i.transition("initial=>final",i.animate("300ms")),i.transition("final=>initial",i.animate("300ms"))])]}}),we);function we(e,t,n,r,i,o,a,l){this.http=e,this.excelService=t,this._renderer2=n,this._document=r,this.toastr=i,this.cookieService=o,this.datePipe=a,this.elemRef=l,this.searchInput=new I,this.pageSize=10,this.isReport=!1,this.result=new s.EventEmitter,this.genRpt=new s.EventEmitter,this.reqGetAllData=new s.EventEmitter,this.ExportTypeList=[{key:D.EXP_TYPE_PDF,value:"PDF"},{key:D.EXP_TYPE_XLS,value:"Excel 2003"},{key:D.EXP_TYPE_XLSX,value:"Excel 2007"},{key:D.EXP_TYPE_DOC,value:"Document"},{key:D.EXP_TYPE_DOCX,value:"Document XML"}],this.ListOfMonth=new F,this.ListOfYear=new Array,this.ClaimList=[{Key:x.RestrictionIsNotNull,Value:"CLAIMED"},{Key:x.RestrictionIsNull,Value:"UNCLAIMED"}],this.ExportType=0,this.pageNow=1,this.isDataLoaded=!1,this.isHidden=!1,this.BusinessDt=new Date,this.dateWrong=!1,this.readonly=!1,this.currentState="initial",this.countForm=0,this.formattedAmount="",this.amount=0}var Me={align:"right",allowNegative:!1,allowZero:!0,decimal:".",precision:2,prefix:"",suffix:"",thousands:",",nullable:!1,inputMode:p.CurrencyMaskInputMode.NATURAL},i=(De.decorators=[{type:s.NgModule,args:[{declarations:[Se,T],imports:[u.CommonModule,c.FormsModule,d.UcShowErrorsModule,f.UcDirectiveUpperCaseModule,p.NgxCurrencyModule.forRoot(Me),m.TranslateModule.forChild()],exports:[Se]}]}],De.ɵmod=s.ɵɵdefineNgModule({type:De}),De.ɵinj=s.ɵɵdefineInjector({factory:function(e){return new(e||De)},imports:[[u.CommonModule,c.FormsModule,d.UcShowErrorsModule,f.UcDirectiveUpperCaseModule,p.NgxCurrencyModule.forRoot(Me),m.TranslateModule.forChild()]]}),De);function De(){}"undefined"!=typeof ngJitMode&&!ngJitMode||s.ɵɵsetNgModuleScope(i,{declarations:[Se,T],imports:[u.CommonModule,c.FormsModule,d.UcShowErrorsModule,f.UcDirectiveUpperCaseModule,p.NgxCurrencyModule,m.TranslateModule],exports:[Se]}),e.UCSearchService=h,e.UCSearchComponent=Se,e.customCurrencyMaskConfig=Me,e.UCSearchModule=i,Object.defineProperty(e,"__esModule",{value:!0})});
1
+ !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("@angular/common/http"),require("file-saver"),require("xlsx"),require("@angular/animations"),require("ngx-toastr"),require("ngx-cookie"),require("crypto-js"),require("@angular/common"),require("@angular/forms"),require("ngx-currency"),require("@ngx-translate/core"),require("@adins/uc-show-errors"),require("@adins/uc-directive-upper-case"),require("@angular/core")):"function"==typeof define&&define.amd?define("@adins/ucsearch",["exports","@angular/common/http","file-saver","xlsx","@angular/animations","ngx-toastr","ngx-cookie","crypto-js","@angular/common","@angular/forms","ngx-currency","@ngx-translate/core","@adins/uc-show-errors","@adins/uc-directive-upper-case","@angular/core"],t):t((e.adins=e.adins||{},e.adins.ucsearch={}),e.ng.common.http,e.FileSaver,e.XLSX,e.ng.animations,e.ngxToastr,e.ngxCookie,e.CryptoJS,e.ng.common,e.ng.forms,e.ngxCurrency,e.core,e.ucShowErrors,e.ucDirectiveUpperCase,e.ng.core)}(this,function(e,t,n,i,r,o,s,a,l,u,c,p,d,m,h){"use strict";var f=(y.decorators=[{type:h.Injectable,args:[{providedIn:"root"}]}],y.ctorParameters=function(){return[]},y.ɵprov=h.ɵɵdefineInjectable({factory:function(){return new y},token:y,providedIn:"root"}),y);function y(){}function g(e,t,a,u){return new(a=a||Promise)(function(n,i){function r(e){try{s(u.next(e))}catch(t){i(t)}}function o(e){try{s(u["throw"](e))}catch(t){i(t)}}function s(e){var t;e.done?n(e.value):((t=e.value)instanceof a?t:new a(function(e){e(t)})).then(r,o)}s((u=u.apply(e,t||[])).next())})}function v(n,i){var r,o,s,a={label:0,sent:function(){if(1&s[0])throw s[1];return s[1]},trys:[],ops:[]},e={next:t(0),"throw":t(1),"return":t(2)};return"function"==typeof Symbol&&(e[Symbol.iterator]=function(){return this}),e;function t(t){return function(e){return u([t,e])}}function u(e){if(r)throw new TypeError("Generator is already executing.");for(;a;)try{if(r=1,o&&(s=2&e[0]?o["return"]:e[0]?o["throw"]||((s=o["return"])&&s.call(o),0):o.next)&&!(s=s.call(o,e[1])).done)return s;switch(o=0,(e=s?[2&e[0],s.value]:e)[0]){case 0:case 1:s=e;break;case 4:return a.label++,{value:e[1],done:!1};case 5:a.label++,o=e[1],e=[0];continue;case 7:e=a.ops.pop(),a.trys.pop();continue;default:if(!(s=0<(s=a.trys).length&&s[s.length-1])&&(6===e[0]||2===e[0])){a=0;continue}if(3===e[0]&&(!s||e[1]>s[0]&&e[1]<s[3])){a.label=e[1];break}if(6===e[0]&&a.label<s[1]){a.label=s[1],s=e;break}if(s&&a.label<s[2]){a.label=s[2],a.ops.push(e);break}s[2]&&a.ops.pop(),a.trys.pop();continue}e=i.call(n,a)}catch(t){e=[6,t],o=0}finally{r=s=0}if(5&e[0])throw e[1];return{value:e[0]?e[1]:void 0,done:!0}}}var q=(b.RestrictionBetween="Between",b.RestrictionLike="Like",b.RestrictionEq="Eq",b.RestrictionNeq="NEQ",b.RestrictionGt="GT",b.RestrictionGte="GTE",b.RestrictionLt="LT",b.RestrictionLte="LTE",b.RestrictionIn="IN",b.RestrictionNotIn="NotIn",b.RestrictionOr="Or",b.RestrictionOrNeq="OrNeq",b.RestrictionIsNull="ISNULL",b.RestrictionIsNotNull="ISNOTNULL",b.RestrictionGTE="GTE",b.RestrictionLTE="LTE",b.showData="10,50,100",b.JoinTypeInner="INNER",b.JoinTypeLeft="LEFT",b);function b(){}var I=function(){this.baseUrl="",this.apiPath="",this.requestObj=new Object,this.leftColumnToJoin="",this.rightColumnToJoin="",this.joinType=q.JoinTypeInner},w=function(){this._url="",this.enviromentUrl="",this.title="",this.apiQryPaging="",this.arrCritObj=null,this.addCritInput=new Array,this.listEnvironments=new Array,this.whereValue=new Array,this.fromValue=new Array,this.switchValue=new Array,this.integrationObj=new I,this.isJoinExAPI=!1},D=function(){this.low=0,this.high=0,this.DataType="Text",this.isCriteriaDataTable=!1},F=function(){this.includeCount=!0,this.includeData=!0,this.isLoading=!0,this.queryString="",this.rowVersion="",this.integrationObj=new I,this.joinType=q.JoinTypeInner},x=(T.prototype.exportAsExcelFile=function(e,t){e=i.utils.json_to_sheet(e);console.log("worksheet",e);e=i.write({Sheets:{data:e},SheetNames:["data"]},{bookType:"xlsx",type:"array"});this.saveAsExcelFile(e,t)},T.prototype.saveAsExcelFile=function(e,t){e=new Blob([e],{type:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet;charset=UTF-8"});n.saveAs(e,t+"_export_"+(new Date).getTime()+".xlsx")},T.decorators=[{type:h.Injectable}],T.ctorParameters=function(){return[]},T);function T(){}var E=(k.EXP_TYPE_PDF=0,k.EXP_TYPE_XLS=1,k.EXP_TYPE_XLSX=2,k.EXP_TYPE_DOC=3,k.EXP_TYPE_DOCX=4,k);function k(){}var C=function(){this.DictOfMonth={},this.ListOfMonth=new Array,this.DictOfMonth={},this.ListOfMonth.push({key:1,value:"January"}),this.DictOfMonth[1]="January",this.ListOfMonth.push({key:2,value:"February"}),this.DictOfMonth[2]="February",this.ListOfMonth.push({key:3,value:"March"}),this.DictOfMonth[3]="March",this.ListOfMonth.push({key:4,value:"April"}),this.DictOfMonth[4]="April",this.ListOfMonth.push({key:5,value:"May"}),this.DictOfMonth[5]="May",this.ListOfMonth.push({key:6,value:"June"}),this.DictOfMonth[6]="June",this.ListOfMonth.push({key:7,value:"July"}),this.DictOfMonth[7]="July",this.ListOfMonth.push({key:8,value:"August"}),this.DictOfMonth[8]="August",this.ListOfMonth.push({key:9,value:"September"}),this.DictOfMonth[9]="September",this.ListOfMonth.push({key:10,value:"October"}),this.DictOfMonth[10]="October",this.ListOfMonth.push({key:11,value:"November"}),this.DictOfMonth[11]="November",this.ListOfMonth.push({key:12,value:"December"}),this.DictOfMonth[12]="December"},L=(Object.defineProperty(S.prototype,"content",{set:function(e){e&&(this.searchForm=e)},enumerable:!1,configurable:!0}),S.prototype.changeState=function(){this.currentState="initial"==this.currentState?"final":"initial",this.isHidden=!this.isHidden},S.prototype.ngOnInit=function(){return g(this,void 0,void 0,function(){var t;return v(this,function(e){switch(e.label){case 0:return console.log("ucsearch"),this.apiUrl=this.searchInput.enviromentUrl+this.searchInput.apiQryPaging,this.arrCrit=this.searchInput.arrCritObj,(t=this._renderer2.createElement("script")).text='\n $(document).ready(function(){\n $("#flip").click(function(){\n $("#panel").slideToggle("slow");\n });\n });\n ',this._renderer2.appendChild(this._document.body,t),t=this.cookieService.get("BusinessDateRaw"),this.BisDt=this.DecryptString(t,"AdInsFOU12345678"),this.BusinessDt=new Date(this.BisDt),[4,this.initiateForm()];case 1:return e.sent(),[2]}})})},S.prototype.initiateForm=function(){return g(this,void 0,void 0,function(){var u=this;return v(this,function(e){switch(e.label){case 0:return[4,this.getJSON(this.searchInput._url).subscribe(function(t){u.configuration=t,u.exportData=t.exportExcel,t.exportTypeList!=undefined&&0!=t.exportTypeList.length&&(u.ExportTypeList=t.exportTypeList,u.ExportType=u.ExportTypeList[0].key),u.countForm=t.component.length,u.isDataLoaded=!0,u.searchInput.title!=undefined&&""!=u.searchInput.title&&(u.configuration.title=u.searchInput.title);for(var e,n,i=0;i<u.countForm;i++){if(t.component[i].isFromURL){var r=new F,o=new Array,s=new D;if(s.DataType="text",s.propName=t.component[i].criteriaPropName,s.value=t.component[i].criteriaPropValue,s.restriction="eq",o.push(s),r.criteria=o,r[t.component[i].criteriaPropName]=t.component[i].criteriaPropValue,t.component[i].path!=undefined&&""!=t.component[i].path)if(u.searchInput.listEnvironments!=undefined&&0!=u.searchInput.listEnvironments.length){for(var a=0;a<u.searchInput.listEnvironments.length;a++)if(t.component[i].environment==u.searchInput.listEnvironments[a].environment){t.component[i].fullpath=u.searchInput.listEnvironments[a].url+t.component[i].path;break}}else t.component[i].fullpath=t.component[i].url;else t.component[i].fullpath=t.component[i].url;u.resolveObject(t.component[i],t.component[i].fullpath,r)}"numeric"==t.component[i].type&&(t.component[i].value=parseFloat(t.component[i].value).toLocaleString("en")),"dropdown"==t.component[i].type&&t.component[i].dtmType!=undefined&&(t.component[i].dtmType.includes("month")&&(t.component[i].value!=undefined&&t.component[i].value.includes("BD")&&(t.component[i].value=u.setDefaultValueMonth(t.component[i].value)),t.component[i].items=u.setMonthDDL(t.component[i].dtmType)),t.component[i].dtmType.includes("year")&&(t.component[i].value!=undefined&&t.component[i].value.includes("BD")&&(t.component[i].value=u.setDefaultValueYear(t.component[i].value)),t.component[i].items=u.setYearDDL(t.component[i].dtmType))),"dropdownSearch"!=t.component[i].type||t.component[i].isFromURL||1!=t.component[i].items.length||(t.component[i].value=t.component[i].items[0].Key,t.component[i].descr=t.component[i].items[0].Value),"dropdownSearch"==t.component[i].type||t.component[i].value||(t.component[i].value="","all"==t.component[i].ddlType&&(t.component[i].value="all"),"one"==t.component[i].ddlType&&(t.component[i].value="one")),"datepicker"==t.component[i].type&&(u.readonly=t.component[i].readonly,t.component[i].value.includes("BD")&&(s=new Date,null!=u.BisDt&&(s=new Date(u.BisDt)),o=t.component[i].value.charAt(2),r=new Date,"-"==o?(e=t.component[i].value.split("-",2),n=parseInt(e[1]),s.setDate(s.getDate()-n)):"+"==o&&(e=t.component[i].value.split("+",2),n=parseInt(e[1]),s.setDate(s.getDate()+n)),r=s,r=l.formatDate(r,"yyyy-MM-dd","en-US"),t.component[i].value=r),u.readonly=!1)}setTimeout(function(){for(var e=0;e<u.countForm;e++)t.component[e].isEvent&&1==u.configuration.component[e].itemsUrl.length&&u.onChangeEvent(t.component[e].itemsUrl[0].Key,t.component[e]),"officeRoleCodes"==t.component[e].type&&0<u.configuration.component[e].itemsUrl.length&&u.SetRoleOfficeCodes(e)},1e3)})];case 1:return e.sent(),[2]}})})},S.prototype.SetRoleOfficeCodes=function(e){var t=this.cookieService.get("UserAccess"),n=JSON.parse(this.DecryptString(t,"AdInsFOU12345678")).RoleCode,i=new Array;i.push(n);t=this.myForm.nativeElement[e].options,t=t[t.selectedIndex].value.trim();if(1==this.configuration.component[e].itemsUrl.length||"all"==this.configuration.component[e].ddlType&&"all"==t)for(var r=0;r<this.configuration.component[e].itemsUrl.length;r++){var o=this.configuration.component[e].itemsUrl[r];i.push(o.Key),i.push(n+"-"+o.Key)}else i.push(t),i.push(n+"-"+t);this.searchInput.integrationObj.requestObj.OfficeRoleCodes=i},S.prototype.setDefaultValueMonth=function(e){var t=new Date(this.BusinessDt),n=e.charAt(2),e=e.split(n,2),e=(e=parseInt(e[1]))||1;return"-"==n?t.setMonth(t.getMonth()-e):"+"==n&&t.setMonth(t.getMonth()+e),t.getMonth()},S.prototype.setMonthDDL=function(e){var t,n=e.match("[\\/+][-]|[-][\\/+]|\\/+|-"),i=this.BusinessDt.getMonth(),r=this.BusinessDt.getMonth(),o=n[0],s=parseInt(e.substring(n.index+n[0].length));if(12<=s)return this.ListOfMonth.ListOfMonth;if(("+-"==o||"-+"==o)&&6<=s)return this.ListOfMonth.ListOfMonth;var a=this.ListOfMonth.DictOfMonth;t.push({key:i,value:a[i]});for(var u=0;u<s;u++)o.includes("-")&&(0==--i&&(i=12),t.push({key:i,value:a[i]})),o.includes("+")&&(13==++r&&(r=1),t.push({key:r,value:a[r]}));return t.sort(function(e,t){return e.key-t.key}),t},S.prototype.setDefaultValueYear=function(e){var t=new Date(this.BusinessDt),n=e.charAt(2),e=e.split(n,2),e=(e=parseInt(e[1]))||1;return"-"==n?t.setFullYear(t.getFullYear()-e):"+"==n&&t.setFullYear(t.getFullYear()+e),t.getFullYear()},S.prototype.setYearDDL=function(e){this.ListOfYear=new Array;var t=e.match("[\\/+][-]|[-][\\/+]|\\/+|-"),n=this.BusinessDt.getFullYear(),i=this.BusinessDt.getFullYear(),r=parseInt(e.substring(t.index+t[0].length));this.ListOfYear.push({key:this.BusinessDt.getFullYear(),value:this.BusinessDt.getFullYear().toString()});for(var o=0;o<r;o++)"-+"==t[0]||"+-"==t[0]?(i++,this.ListOfYear.push({key:--n,value:n.toString()},{key:i,value:i.toString()})):"-"==t[0]?this.ListOfYear.push({key:--n,value:n.toString()}):"+"==t[0]&&this.ListOfYear.push({key:++i,value:i.toString()});return this.ListOfYear.sort(function(e,t){return e.key-t.key}),this.ListOfYear},S.prototype.getJSON=function(e){return this.http.get(e)},S.prototype.postJSON=function(e,t){return this.http.post(e,t=void 0===t?null:t)},S.prototype.searchClick=function(){var e=null;null!=this.configuration.orderby&&(e={key:this.configuration.orderby.key,value:this.configuration.orderby.value}),this.pageNow=1,this.search(this.apiUrl,this.pageNow,this.pageSize,e,this.arrCrit)},S.prototype.reset=function(){return g(this,void 0,void 0,function(){return v(this,function(e){switch(e.label){case 0:return this.searchForm.resetForm({ExportType:this.ExportTypeList[0].key}),[4,this.initiateForm()];case 1:return e.sent(),[2]}})})},S.prototype.search=function(e,n,t,i,r){var o=this;void 0===r&&(r=new Array);var s=new F,a=new Array,u=!1,l=!1;if(this.searchInput.whereValue!=undefined&&0!=this.searchInput.whereValue.length){this.configuration.querystring.whereQuery=new Array;for(var c=0;c<this.searchInput.whereValue.length;c++)this.configuration.querystring.whereQuery.push(this.searchInput.whereValue[c].value)}if(this.searchInput.fromValue!=undefined&&0!=this.searchInput.fromValue.length){this.configuration.querystring.fromQuery=new Array;for(c=0;c<this.searchInput.fromValue.length;c++)this.configuration.querystring.fromQuery.push(this.searchInput.fromValue[c].value)}s.pageNo=n,s.rowPerPage=t,s.orderBy=i,s.queryString=this.configuration.querystring;for(var p=-1,d=0;d<this.countForm;d++){var m=new D;"dropdownSearch"==this.configuration.component[d].type?p+=3:p++;var h=this.myForm.nativeElement[p];if(m.DataType=h.getAttribute("data-type"),u=null!=h.getAttribute("query-in")&&"true"==h.getAttribute("query-in"),""!=h.value)if("SELECT"==h.nodeName){var f=h.options,y=f[f.selectedIndex].value.trim();if("one"==y){l=!0,f=h.getAttribute("label");this.toastr.warning("Please select "+f);break}if(""!=h.getAttribute("data-crit-datatable")&&null!=h.getAttribute("data-crit-datatable")&&(m.isCriteriaDataTable=h.getAttribute("data-crit-datatable")),"taskDefinitionKey"!=this.configuration.component[d].type&&"processKey"!=this.configuration.component[d].type)if("claim"==this.configuration.component[d].type)m.propName=h.getAttribute("data-name"),m.restriction=y,m.value=null,a.push(m);else if("all"!=y&&"one"!=y)m.restriction=q.RestrictionEq,""!=h.name?m.propName=h.name:m.propName=h.getAttribute("data-name"),m.value=y,a.push(m);else if("all"==y&&u&&0!=h.options.length){for(var g=new Array,c=0;c<h.options.length;c++)0!=c&&g.push(h.options[c].value);0!=g.length&&(m.restriction=q.RestrictionIn,""!=h.name?m.propName=h.name:m.propName=h.getAttribute("data-name"),m.listValue=g,a.push(m))}}else""!=h.name?m.propName=h.name:m.propName=h.getAttribute("data-name"),m.value=h.value.trim(),h.value.includes("%")?m.restriction=q.RestrictionLike:""!=h.getAttribute("data-restriction")&&null!=h.getAttribute("data-restriction")?(m.restriction=h.getAttribute("data-restriction"),"numeric"==h.getAttribute("data-type")&&(m.value=parseFloat(h.value.replace(/,/g,"")).toString()),"LIKE"==m.restriction.toUpperCase()&&(m.value="%"+h.value.trim()+"%",m.restriction=q.RestrictionLike)):m.restriction=q.RestrictionEq,""!=h.getAttribute("data-crit-datatable")&&null!=h.getAttribute("data-crit-datatable")&&(m.isCriteriaDataTable=h.getAttribute("data-crit-datatable")),a.push(m)}if(!l){if(null!=r&&r!=undefined){if(0!=r.length)for(d=0;d<r.length;d++)a.push(r[d]);else if(null!=this.searchInput.addCritInput||this.searchInput.addCritInput!=undefined)for(d=0;d<this.searchInput.addCritInput.length;d++)a.push(this.searchInput.addCritInput[d])}else if(null!=this.searchInput.addCritInput||this.searchInput.addCritInput!=undefined)for(d=0;d<this.searchInput.addCritInput.length;d++)a.push(this.searchInput.addCritInput[d]);s.criteria=a,this.searchInput.isJoinExAPI?s.integrationObj=this.searchInput.integrationObj:s.integrationObj=null,this.http.post(e,s).subscribe(function(e){var t={response:e,pageNow:n};return console.log(t),o.result.emit(t),o.reqGetAllData.emit(s),e})}},S.prototype.GenerateReport=function(){this.genRpt.emit({ExportType:this.ExportType,ElRef:this.myForm})},S.prototype.lessThanFour=function(){return!(3<this.countForm)},S.prototype.resolveObject=function(t,e,n){var i=this;this.postJSON(e,n=void 0===n?null:n).subscribe(function(e){t.itemsUrl=new Array,t.itemsUrl=e.ReturnObject,t.exclude!=undefined&&""!=t.exclude&&(t.itemsUrl=t.itemsUrl.filter(function(e){return!t.exclude.includes(e.Key)})),"dropdownSearch"==t.type&&1==t.itemsUrl.length&&(t.value=t.itemsUrl[0].Key,t.descr=t.itemsUrl[0].Value),t.affectedFilter&&1==t.itemsUrl.length&&i.onChangeEvent(t.itemsUrl[0].Key,t)})},S.prototype.transformAmount=function(e){this.formattedAmount=parseFloat(e.target.value).toLocaleString("en"),e.target.value=this.formattedAmount},S.prototype.transformToDecimal=function(e){e.target.value=parseFloat(e.target.value.toString().replace(/,/g,""))},S.prototype.exportAsXLSX=function(){var t=this,e=new F;e.pageNo=1,e.rowPerPage=9999,e.orderBy=null,e.criteria=[],e.queryString=this.configuration.querystring,this.searchInput.isJoinExAPI?e.integrationObj=this.searchInput.integrationObj:e.integrationObj=null,this.http.post(this.apiUrl,e).subscribe(function(e){t.ExcelData=e.Data,t.excelService.exportAsExcelFile(t.ExcelData,"sample")},function(e){console.log(e)})},S.prototype.onChangeEvent=function(e,t){for(var n=this.configuration.component,i=0;i<t.affectedFilter.length;i++)for(var r=0;r<n.length;r++)if(n[r].name==t.affectedFilter[i]){var o,s=new F,a=new Array;if("all"!=e&&"one"!=e&&((o=new D).DataType=t.datatype,t.filterPropName!=undefined||""!=t.filterPropName?(s[t.filterPropName]=e,o.propName=t.filterPropName):(o.propName=t.name,s[t.name]=e),o.value=e,o.restriction=q.RestrictionEq,a.push(o)),s.criteria=a,n[r].path!=undefined&&""!=n[r].path)if(this.searchInput.listEnvironments!=undefined&&0!=this.searchInput.listEnvironments.length){for(var u=0;u<this.searchInput.listEnvironments.length;u++)if(n[r].environment==this.searchInput.listEnvironments[u].environment){n[r].fullpath=this.searchInput.listEnvironments[u].url+n[r].path;break}}else n[r].fullpath=n[r].url;else n[r].fullpath=n[r].url;this.resolveObject(n[r],n[r].fullpath,s)}},S.prototype.SetProcessKey=function(e,t){e=this.myForm.nativeElement[e].options,e=e[e.selectedIndex].value.trim();e&&(this.searchInput.integrationObj.requestObj[t]=e)},S.prototype.switchCase=function(i){for(var r=!1,o=this,e=0;e<i.conditions.length;e++)if("break"===function(t){var e=o.searchInput.switchValue.findIndex(function(e){return e.property==i.conditions[t].property});if("EQ"==i.conditions[t].restriction)if(i.conditions[t].isUser){var n=localStorage.getItem("Username");if(o.searchInput.switchValue[e].value!=n)return r=!1,"break";r=!0}else{if(o.searchInput.switchValue[e].value!=i.conditions[t].value)return r=!1,"break";r=!0}else if("NEQ"==i.conditions[t].restriction)if(1!=i.conditions[t].isUser){if(o.searchInput.switchValue[e].value==i.conditions[t].value)return r=!1,"break";r=!0}else{n=localStorage.getItem("Username");if(o.searchInput.switchValue[e].value==n)return r=!1,"break";r=!0}else if("GT"==i.conditions[t].restriction)if(i.conditions[t].isUser){n=localStorage.getItem("Username");if(!(o.searchInput.switchValue[e].value>n))return r=!1,"break";r=!0}else{if(!(o.searchInput.switchValue[e].value>i.conditions[t].value))return r=!1,"break";r=!0}else if("GTE"==i.conditions[t].restriction)if(i.conditions[t].isUser){n=localStorage.getItem("Username");if(!(o.searchInput.switchValue[e].value>=n))return r=!1,"break";r=!0}else{if(!(o.searchInput.switchValue[e].value>=i.conditions[t].value))return r=!1,"break";r=!0}else if("LT"==i.conditions[t].restriction)if(i.conditions[t].isUser){n=localStorage.getItem("Username");if(!(o.searchInput.switchValue[e].value<n))return r=!1,"break";r=!0}else{if(!(o.searchInput.switchValue[e].value<i.conditions[t].value))return r=!1,"break";r=!0}else if("LTE"==i.conditions[t].restriction)if(i.conditions[t].isUser){n=localStorage.getItem("Username");if(!(o.searchInput.switchValue[e].value<=n))return r=!1,"break";r=!0}else{if(!(o.searchInput.switchValue[e].value<=i.conditions[t].value))return r=!1,"break";r=!0}}(e))break;return r},S.prototype.DecryptString=function(e,t){if(t==undefined||""==t.trim()||e==undefined||""==e.trim())return e;var n=a.enc.Utf8.parse(t),t=a.lib.WordArray.create([0,0,0,0]);return a.AES.decrypt(e,n,{iv:t}).toString(a.enc.Utf8)},S.prototype.checkInputDate=function(t){var e,n,i,r=new Array,o=this.configuration.component.find(function(e){return e.name==t.name&&"GTE"==e.restriction.toUpperCase()})==undefined?this.configuration.component.find(function(e){return e.name==t.name&&"GT"==e.restriction.toUpperCase()}):this.configuration.component.find(function(e){return e.name==t.name&&"GTE"==e.restriction.toUpperCase()});o!=undefined&&(e=""==this.myForm.nativeElement[o.id].min?null:new Date(this.myForm.nativeElement[o.id].min),i=o.label.split(">",2),null!=e&&("GT"==o.restriction.toUpperCase()?(e.setDate(e.getDate()-1),r.push(" must be greater than ")):"GTE"==o.restriction.toUpperCase()&&r.push(" must be greater than or equals to ")));var s=this.configuration.component.find(function(e){return e.name==t.name&&"LTE"==e.restriction.toUpperCase()})==undefined?this.configuration.component.find(function(e){return e.name==t.name&&"LT"==e.restriction.toUpperCase()}):this.configuration.component.find(function(e){return e.name==t.name&&"LTE"==e.restriction.toUpperCase()});s!=undefined&&(n=""==this.myForm.nativeElement[s.id].max?null:new Date(this.myForm.nativeElement[s.id].max),i=s.label.split("<",2),null!=n&&("LT"==s.restriction.toUpperCase()?(n.setDate(n.getDate()+1),r.push(" must be less than ")):"LTE"==s.restriction.toUpperCase()&&r.push(" must be less than or equals to "))),null!=e&&null==n&&new Date(this.myForm.nativeElement[o.id].value)<e?(this.toastr.warning(i[0]+r[0]+l.formatDate(e,"dd MMMM yyyy","en-US")+"."),this.dateWrong=!0):null!=n&&null==e&&new Date(this.myForm.nativeElement[s.id].value)>n?(this.toastr.warning(i[0]+r[0]+l.formatDate(n,"dd MMMM yyyy","en-US")+"."),this.dateWrong=!0):null!=e&&null!=n&&(new Date(this.myForm.nativeElement[s.id].value)>n||new Date(this.myForm.nativeElement[o.id].value)<e)?(this.toastr.warning(i[0]+r[0]+l.formatDate(e,"dd MMMM yyyy","en-US")+" and"+r[1]+l.formatDate(n,"dd MMMM yyyy","en-US")+"."),this.dateWrong=!0):this.dateWrong=!1},S.prototype.selectedOption=function(e,t){t.descr=e.Value,t.isListHide=!0},S.decorators=[{type:h.Component,args:[{selector:"lib-UCSearch",template:'\x3c!-- Basic form layout section start --\x3e\r\n<section id="horizontal-form-layouts">\r\n <div class="row text-left">\r\n <div class="col-md-12">\r\n <div class="card">\r\n <div class="pl-3 mb-2 mt-2" *ngIf="configuration?.title != undefined && configuration?.title != \'\'">\r\n <h4 class="card-title ucSearch-title" translate>{{configuration.title}}</h4>\r\n </div>\r\n <div class="card-body">\r\n <div class="px-3">\r\n <form class="form form-horizontal" id="formSearch" #formIdSearch #enjiForm="ngForm"\r\n (ngSubmit)="enjiForm.valid && searchClick()">\r\n <div class="form-body">\r\n <h4 class="form-section font-weight-bold">\r\n <div (click)="changeState()" class="btn no-padding cursor-pointer flip">\r\n <i class="fa" style="font-size: 15px; margin: 0px 0px 5px -15px;"\r\n [ngClass]="isHidden ? \'fa-chevron-right\' : \'fa-chevron-down\'"></i>\r\n </div>\r\n <span\r\n *ngIf="configuration?.sectionTitle != undefined && configuration?.sectionTitle != \'\'; then inputSectionTitle else defaultSectionTitle"></span>\r\n <ng-template #inputSectionTitle>\r\n {{configuration?.sectionTitle}}\r\n </ng-template>\r\n <ng-template #defaultSectionTitle>\r\n Paging\r\n </ng-template>\r\n </h4>\r\n \x3c!-- Ini Digunakan untuk Generate Dynamic Component --\x3e\r\n \x3c!-- [hidden]="isHidden" --\x3e\r\n <div class="panel-active" [@changeDivSize]=currentState>\r\n <div class="row">\r\n <div class="col-md-6 form-group" *ngFor="let question of configuration?.component; let i = index">\r\n <div class="col-md-12">\r\n <div class="row">\r\n <label class="col-md-5 no-padding" for="{{question.id}}"\r\n [ngClass]="{\'adins-required-label\': (question.isRequired || (question?.ddlType != undefined && question.ddlType == \'one\'))}"\r\n translate>{{question.label}}</label>\r\n <div class="col-md-7 no-padding">\r\n <div *ngIf="question.type==\'textbox\'">\r\n <input type="text" id="{{question.id}}" class="form-control search-form-control"\r\n [ngModel]="question.value" [required]="question.isRequired" name="{{question.name}}"\r\n attr.data-crit-datatable="{{question.isCriteriaDataTable}}"\r\n attr.data-required="{{question.isRequired}}" value="{{question.value}}"\r\n (keyup.enter)="searchClick()" attr.data-type="{{question.datatype}}"\r\n attr.data-name="{{question.name}}" attr.data-restriction="{{question.restriction}}"\r\n attr.label="{{question.label}}"\r\n [ngClass]="{ \'is-invalid\':(enjiForm.submitted || enjiForm.form.controls[question.name]?.touched || enjiForm.form.controls[question.name]?.dirty) && enjiForm.form.controls[question.name]?.invalid }">\r\n </div>\r\n <div *ngIf="question.type==\'textarea\'">\r\n <textarea type="text" id="{{question.id}}" class="form-control search-form-control"\r\n [ngModel]="question.value" [required]="question.isRequired" name="{{question.name}}"\r\n attr.data-required="{{question.isRequired}}" attr.data-type="{{question.datatype}}"\r\n attr.data-name="{{question.name}}" value="{{question.value}}"\r\n attr.label="{{question.label}}"\r\n [ngClass]="{ \'is-invalid\':(enjiForm.submitted || enjiForm.form.controls[question.name]?.touched || enjiForm.form.controls[question.name]?.dirty) && enjiForm.form.controls[question.name]?.invalid }"></textarea>\r\n </div>\r\n <div *ngIf="question.type==\'numeric\'">\r\n <input type="number" id="{{question.id}}" (focus)="transformToDecimal($event)"\r\n (blur)="transformAmount($event)" class="form-control search-form-control"\r\n [ngModel]="question.value" [required]="question.isRequired" name="{{question.name+[i]}}"\r\n attr.data-required="{{question.isRequired}}" value="{{question.value}}"\r\n (keyup.enter)="searchClick()" attr.data-restriction="{{question.restriction}}"\r\n attr.data-type="{{question.datatype}}" attr.data-name="{{question.name}}"\r\n attr.data-numericpair="{{question.numericPair}}"\r\n attr.data-crit-datatable="{{question.isCriteriaDataTable}}"\r\n attr.label="{{question.label}}"\r\n [ngClass]="{ \'is-invalid\':(enjiForm.submitted || enjiForm.form.controls[question.name+[i]]?.touched || enjiForm.form.controls[question.name+[i]]?.dirty) && enjiForm.form.controls[question.name+[i]]?.invalid }">\r\n </div>\r\n <div *ngIf="question.type==\'currency\'">\r\n <div *ngIf="question?.isCustom != undefined && question?.isCustom">\r\n <input type="" id="{{question.id}}" class="form-control search-form-control"\r\n [required]="question.isRequired" name="{{question.name}}"\r\n (keyup.enter)="searchClick()" attr.data-restriction="{{question.restriction}}"\r\n attr.data-type="{{question.datatype}}" attr.data-name="{{question.name}}"\r\n attr.data-required="{{question.isRequired}}" currencyMask [ngModel]="question.value"\r\n [(ngModel)]="question.value" [ngModelOptions]="{standalone: true}"\r\n attr.label="{{question.label}}"\r\n [options]="{ thousands: question.thousands, decimal: question.decimal, align: question.align, allowNegative: question.allowNegative, allowZero: question.allowZero, precision: question.precision, nullable: question.nullable }"\r\n [ngClass]="{ \'is-invalid\':(enjiForm.submitted || enjiForm.form.controls[question.name]?.touched || enjiForm.form.controls[question.name]?.dirty) && enjiForm.form.controls[question.name]?.invalid }">\r\n </div>\r\n <div *ngIf="question?.isCustom == undefined || !question?.isCustom">\r\n <input type="text" id="{{question.id}}" class="form-control search-form-control"\r\n [required]="question.isRequired" name="{{question.name}}"\r\n (keyup.enter)="searchClick()" attr.data-restriction="{{question.restriction}}"\r\n attr.data-type="{{question.datatype}}" attr.data-name="{{question.name}}"\r\n attr.data-required="{{question.isRequired}}" currencyMask [ngModel]="question.value"\r\n [(ngModel)]="question.value" [ngModelOptions]="{standalone: true}"\r\n attr.label="{{question.label}}"\r\n [options]="{ thousands: \',\', decimal: \'.\', align: \'right\', allowNegative: false, allowZero:true, precision: 2, nullable: false }"\r\n [ngClass]="{ \'is-invalid\':(enjiForm.submitted || enjiForm.form.controls[question.name]?.touched || enjiForm.form.controls[question.name]?.dirty) && enjiForm.form.controls[question.name]?.invalid }">\r\n </div>\r\n </div>\r\n\r\n \x3c!-- End Hardcode Lookup didalem--\x3e\r\n <div *ngIf="question.type==\'datepicker\'">\r\n <input type="{{question.isTime ? \'datetime-local\' : \'date\'}}" id="{{question.id}}"\r\n class="form-control search-form-control btn-lookup" name="{{question.name+[i]}}"\r\n [ngModel]="question.value" [required]="question.isRequired"\r\n attr.data-required="{{question.isRequired}}" value="{{question.value}}"\r\n [readonly]="question.readonly" attr.data-type="{{question.datatype}}"\r\n attr.data-name="{{question.name}}"\r\n attr.data-datepickerpair="{{question.datepickerPair}}"\r\n attr.data-crit-datatable="{{question.isCriteriaDataTable}}"\r\n (keyup.enter)="searchClick()" attr.data-restriction="{{question.restriction}}"\r\n attr.label="{{question.label}}" min="{{question.minDate | date:\'yyyy-MM-dd\'}}"\r\n max="{{question.maxDate | date:\'yyyy-MM-dd\'}}"\r\n (focusout)="question.restriction != undefined && checkInputDate(question)"\r\n [ngClass]="{ \'is-invalid\':(enjiForm.submitted || enjiForm.form.controls[question.name+[i]]?.touched || enjiForm.form.controls[question.name+[i]]?.dirty) && enjiForm.form.controls[question.name+[i]]?.invalid }">\r\n </div>\r\n <div\r\n *ngIf="question.type == \'taskDefinitionKey\' || question.type == \'processKey\' || question.type == \'officeRoleCodes\'">\r\n <select name="{{question.name}}" attr.data-required="{{question.isRequired}}"\r\n [required]="question.isRequired" class="form-control search-form-control"\r\n attr.query-in="{{question.isQueryIn}}" attr.data-type="{{question.datatype}}"\r\n attr.label="{{question.label}}" [hidden]="question?.itemsUrl?.length == 1"\r\n (change)="(question.type == \'taskDefinitionKey\' || question.type == \'processKey\') ? SetProcessKey(i,question.wfKeyFilter) : SetRoleOfficeCodes(i)"\r\n [ngClass]="{ \'is-invalid\':(enjiForm.submitted || enjiForm.form.controls[question.name]?.touched || enjiForm.form.controls[question.name]?.dirty) && enjiForm.form.controls[question.name]?.invalid }">\r\n <option *ngIf="question.ddlType == \'one\' && question?.itemsUrl?.length != 1"\r\n value="one">Select One</option>\r\n <option\r\n *ngIf="(question?.ddlType == undefined || question.ddlType == \'all\') && question?.itemsUrl?.length != 1"\r\n value="all">All</option>\r\n <option *ngFor="let item of question?.itemsUrl" value="{{item.Key}}">\r\n {{item.Value}}\r\n </option>\r\n </select>\r\n <label *ngIf="question?.itemsUrl?.length == 1">{{question.itemsUrl[0].Value}}</label>\r\n </div>\r\n <div *ngIf="question.type==\'dropdown\'">\r\n <select name="{{question.name}}" attr.data-required="{{question.isRequired}}"\r\n [(ngModel)]="question.value" [required]="question.isRequired"\r\n class="form-control search-form-control" attr.query-in="{{question.isQueryIn}}"\r\n attr.data-type="{{question.datatype}}" attr.data-name="{{question.name}}"\r\n attr.label="{{question.label}}"\r\n attr.data-crit-datatable="{{question.isCriteriaDataTable}}"\r\n [hidden]="!question.isFromURL ? question?.items?.length == 1 : question?.itemsUrl?.length == 1"\r\n (change)="question.isEvent ? onChangeEvent($event.target.value, question) : \'\'"\r\n [ngClass]="{ \'is-invalid\':(enjiForm.submitted || enjiForm.form.controls[question.name]?.touched || enjiForm.form.controls[question.name]?.dirty) && enjiForm.form.controls[question.name]?.invalid }">\r\n <option\r\n *ngIf="question.ddlType == \'one\' && (!question.isFromURL ? question?.items?.length != 1 : question?.itemsUrl?.length != 1)"\r\n value="one">\r\n Select One</option>\r\n <option\r\n *ngIf="(question?.ddlType == undefined || question.ddlType == \'all\') && (!question.isFromURL ? question?.items?.length != 1 : question?.itemsUrl?.length != 1)"\r\n value="all">All</option>\r\n <option *ngFor="let item of !question.isFromURL ? question?.items : question?.itemsUrl"\r\n value="{{!question.isFromURL ? item.key : item.Key}}">\r\n {{!question.isFromURL ? item.value : item.Value}}\r\n </option>\r\n </select>\r\n <label\r\n *ngIf="!question.isFromURL ? question?.items?.length == 1 : question?.itemsUrl?.length == 1">{{!question.isFromURL\r\n ? question.items[0].value :\r\n question.itemsUrl[0].Value}}</label>\r\n </div>\r\n <div *ngIf="question.type==\'dropdownSearch\'">\r\n <div class="dds-display-item"\r\n [hidden]="!question.isFromURL ? question?.items?.length == 1 : question?.itemsUrl?.length == 1">\r\n <input type="text" class="form-control search-form-control dds-input"\r\n name="{{\'ddsValue\'+question.name}}" [(ngModel)]="question.descr" readonly\r\n (click)="question.isListHide = !question.isListHide; question.searchText=\'\'">\r\n </div>\r\n <label\r\n *ngIf="!question.isFromURL ? question?.items?.length == 1 : question?.itemsUrl?.length == 1">{{question.descr}}</label>\r\n <div class="dds-list-container" [hidden]="question.isListHide">\r\n <input type="text" class="form-control search-form-control"\r\n name="{{\'searchText\'+question.name}}" [(ngModel)]="question.searchText"\r\n [placeholder]="question.placeholder">\r\n <div class="dds-items-container">\r\n <select class="full-width" name="{{question.name}}"\r\n attr.data-required="{{question.isRequired}}" [(ngModel)]="question.value"\r\n [required]="question.isRequired" attr.query-in="{{question.isQueryIn}}"\r\n attr.data-type="{{question.datatype}}" attr.data-name="{{question.name}}"\r\n attr.label="{{question.label}}"\r\n attr.data-crit-datatable="{{question.isCriteriaDataTable}}"\r\n (change)="question.isEvent ? onChangeEvent($event.target.value, question) : \'\'"\r\n [ngClass]="{ \'is-invalid\':(enjiForm.submitted || enjiForm.form.controls[question.name]?.touched || enjiForm.form.controls[question.name]?.dirty) && enjiForm.form.controls[question.name]?.invalid }"\r\n size="{{question?.size == undefined ? question?.size : 10}}">\r\n <option (click)="selectedOption({Key:\'one\',Value:\'Select One\'},question)"\r\n *ngIf="question.ddsType == \'one\' && (!question.isFromURL ? question?.items?.length != 1 : question?.itemsUrl?.length != 1)"\r\n value="one">\r\n Select One</option>\r\n <option (click)="selectedOption({Key:\'all\',Value:\'All\'},question)"\r\n *ngIf="(question?.ddsType == undefined || question.ddsType == \'all\') && (!question.isFromURL ? question?.items?.length != 1 : question?.itemsUrl?.length != 1)"\r\n value="all">All</option>\r\n \x3c!-- <option *ngFor="let item of question?.items | textSearch : question.searchText; let i=index" [value]="item?.key" (click)="selectedOption(item,question)">\r\n {{item?.value}}\r\n </option> --\x3e\r\n <option\r\n *ngFor="let item of !question.isFromURL ? (question?.items | textSearch : question.searchText) : question?.itemsUrl | textSearch : question.searchText"\r\n (click)="selectedOption(item,question)" value="{{item.Key}}">\r\n {{item.Value}}\r\n </option>\r\n </select>\r\n </div>\r\n </div>\r\n </div>\r\n <div *ngIf="question.type==\'claim\'">\r\n <select name="{{\'claim\'+[i]}}" class="form-control search-form-control"\r\n attr.data-type="{{\'text\'}}" attr.data-crit-datatable="{{question.isCriteriaDataTable}}"\r\n attr.data-name="{{\'Assignee\'}}" [hidden]="ClaimList?.length == 1"\r\n [ngClass]="{ \'is-invalid\':(enjiForm.submitted || enjiForm.form.controls[\'claim\'+[i]]?.touched || enjiForm.form.controls[\'claim\'+[i]]?.dirty) && enjiForm.form.controls[\'claim\'+[i]]?.invalid }">\r\n <option *ngIf="question.ddlType == \'one\' && ClaimList?.length != 1" value="one">Select\r\n One</option>\r\n <option\r\n *ngIf="(question?.ddlType == undefined || question.ddlType == \'all\') && ClaimList?.length != 1"\r\n value="all">All</option>\r\n <option *ngFor="let item of ClaimList" value="{{item.Key}}">\r\n {{item.Value}}\r\n </option>\r\n </select>\r\n </div>\r\n <lib-uc-show-errors *ngIf="question.type!=\'datepicker\'"\r\n [control]="enjiForm.form.controls[question.name]" [submit]="enjiForm.submitted">\r\n </lib-uc-show-errors>\r\n <lib-uc-show-errors *ngIf="question.type==\'datepicker\'"\r\n [control]="enjiForm.form.controls[question.name+[i]]" [submit]="enjiForm.submitted">\r\n </lib-uc-show-errors>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n <div class="col-md-6 form-group" *ngIf="(isReport != undefined && isReport)">\r\n <div class="col-md-12">\r\n <div class="row">\r\n <label class="col-md-5 no-padding" translate>Report Type</label>\r\n <div class="col-md-7 no-padding">\r\n <select name="ExportType" [(ngModel)]="ExportType" class="form-control search-form-control"\r\n attr.data-type="text">\r\n <option *ngFor="let item of ExportTypeList" [value]="item.key">{{item.value}}</option>\r\n </select>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n <div class="col-md-12 no-padding">\r\n <div class="form-actions right">\r\n <button *ngIf="exportData == true" type="button" (click)="exportAsXLSX()"\r\n class="btn btn-raised btn-success mr-1" translate>\r\n <i class="fa ft-download"></i>&nbsp;<span translate>Export Excel</span>\r\n </button>\r\n <button type="button" (click)="reset()" class="btn btn-raised btn-warning mr-1" translate>\r\n <i class="fa fa-times"></i>&nbsp;<span translate>Reset</span>\r\n </button>\r\n <button *ngIf="(isReport == undefined || !isReport)" type="submit"\r\n class="btn btn-raised btn-primary" #UCSearchClick>\r\n <i class="fa fa-search"></i>&nbsp;<span translate>Search</span>\r\n </button>\r\n <button *ngIf="(isReport != undefined && isReport)" type="button" (click)="GenerateReport()"\r\n class="btn btn-raised btn-primary">\r\n <i class="fa ft-download"></i>&nbsp;<span translate>Generate\r\n Report</span>\r\n </button>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n </form>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n</section>\r\n<br>\r\n\x3c!-- // Basic form layout section end --\x3e',providers:[x,l.DatePipe],animations:[r.trigger("changeDivSize",[r.state("initial",r.style({height:"*",opacity:"1"})),r.state("final",r.style({height:"0px",opacity:"0",overflow:"hidden"})),r.transition("initial=>final",r.animate("300ms")),r.transition("final=>initial",r.animate("300ms"))])],styles:[".ucSearch-title{margin:3px}.dds-input{background-color:#fff;text-transform:uppercase}.dds-display-item:after{content:'\\e929';font-family:feather;font-size:1rem;display:inline-block;position:absolute;right:5px;top:5px;transform:rotate(90deg)}.dds-list-container{position:absolute;width:100%;z-index:9}"]}]}],S.ctorParameters=function(){return[{type:t.HttpClient},{type:x},{type:h.Renderer2},{type:undefined,decorators:[{type:h.Inject,args:[l.DOCUMENT]}]},{type:o.ToastrService},{type:s.CookieService},{type:l.DatePipe},{type:h.ElementRef}]},S.propDecorators={content:[{type:h.ViewChild,args:["enjiForm"]}],myForm:[{type:h.ViewChild,args:["formIdSearch",{"static":!1}]}],searchInput:[{type:h.Input}],pageSize:[{type:h.Input}],isReport:[{type:h.Input}],result:[{type:h.Output}],genRpt:[{type:h.Output}],reqGetAllData:[{type:h.Output}]},S);function S(e,t,n,i,r,o,s,a){this.http=e,this.excelService=t,this._renderer2=n,this._document=i,this.toastr=r,this.cookieService=o,this.datePipe=s,this.elemRef=a,this.searchInput=new w,this.pageSize=10,this.isReport=!1,this.result=new h.EventEmitter,this.genRpt=new h.EventEmitter,this.reqGetAllData=new h.EventEmitter,this.ExportTypeList=[{key:E.EXP_TYPE_PDF,value:"PDF"},{key:E.EXP_TYPE_XLS,value:"Excel 2003"},{key:E.EXP_TYPE_XLSX,value:"Excel 2007"},{key:E.EXP_TYPE_DOC,value:"Document"},{key:E.EXP_TYPE_DOCX,value:"Document XML"}],this.ListOfMonth=new C,this.ListOfYear=new Array,this.ClaimList=[{Key:q.RestrictionIsNotNull,Value:"CLAIMED"},{Key:q.RestrictionIsNull,Value:"UNCLAIMED"}],this.ExportType=0,this.pageNow=1,this.isDataLoaded=!1,this.isHidden=!1,this.BusinessDt=new Date,this.dateWrong=!1,this.readonly=!1,this.currentState="initial",this.countForm=0,this.formattedAmount="",this.amount=0}var M=(O.prototype.transform=function(e,t){return t?e.filter(function(e){return!(!e.Value||"string"!=typeof e.Value)&&-1<e.Value.toLowerCase().indexOf(t.toLowerCase())}):e},O.decorators=[{type:h.Pipe,args:[{name:"textSearch"}]}],O);function O(){}r={align:"right",allowNegative:!1,allowZero:!0,decimal:".",precision:2,prefix:"",suffix:"",thousands:",",nullable:!1,inputMode:c.CurrencyMaskInputMode.NATURAL},U.decorators=[{type:h.NgModule,args:[{declarations:[L,M],imports:[l.CommonModule,u.FormsModule,d.UcShowErrorsModule,m.UcDirectiveUpperCaseModule,c.NgxCurrencyModule.forRoot(r),p.TranslateModule.forChild()],exports:[L]}]}],p=U;function U(){}e.UCSearchService=f,e.UCSearchComponent=L,e.customCurrencyMaskConfig=r,e.UCSearchModule=p,e.ɵb=M,e.ɵa=x,Object.defineProperty(e,"__esModule",{value:!0})});
2
2
  //# sourceMappingURL=adins-ucsearch.umd.min.js.map