com.phloxui
Version:
PhloxUI Ng2+ Framework
1 lines • 1.32 MB
JavaScript
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("@angular/core"),require("rxjs/Subject"),require("tslib"),require("@angular/http"),require("rxjs"),require("angular2-uuid"),require("@angular/router"),require("@angular/platform-browser"),require("@angular/forms"),require("@angular/cdk/platform"),require("@angular/material"),require("rxjs/operators"),require("ng2-google-charts"),require("@angular/platform-browser/animations"),require("angular2-loaders-css"),require("ngx-croppie")):"function"==typeof define&&define.amd?define("com.phloxui",["exports","@angular/core","rxjs/Subject","tslib","@angular/http","rxjs","angular2-uuid","@angular/router","@angular/platform-browser","@angular/forms","@angular/cdk/platform","@angular/material","rxjs/operators","ng2-google-charts","@angular/platform-browser/animations","angular2-loaders-css","ngx-croppie"],e):e((t.com=t.com||{},t.com.phloxui={}),t.ng.core,t.Rx,t.tslib,t.ng.http,null,null,t.ng.router,t.ng.platformBrowser,t.ng.forms,t.ng.cdk.platform,t.ng.material,t.Rx.Observable.prototype,null,t.ng.platformBrowser.animations,null,null)}(this,function(t,v,e,Ot,p,a,n,o,r,s,i,d,l,u,c,h,y){"use strict";var f="Load More",g="Press to reload",m="No more data (Press to reload)",_="<div class='wrapper-icon-reload'><div class='icon-reloader'><div class='reloader'></div></div></div>",E=[],b=function(){function i(t,e,n,o){void 0===t&&(t="App Name"),void 0===e&&(e="App Tagline"),this.name=t,this.tagline=e,this.iconURL=o,this.group=n,this.settings={RIPPLE_EFFECT_DURATION:i.DEFAULT_RIPPLE_EFFECT_DURATION,RIPPLE_EFFECT_WIDTH_RATIO:i.DEFAULT_RIPPLE_EFFECT_WIDTH_RATIO,RIPPLE_EFFECT_HEIGHT_RATIO:i.DEFAULT_RIPPLE_EFFECT_HEIGHT_RATIO,RIPPLE_EFFECT_REMOVE_DURATION:i.DEFAULT_RIPPLE_EFFECT_REMOVE_DURATION,APP_SWITCHER_POPOVER_DELAY:i.DEFAULT_APP_SWITCHER_POPOVER_DELAY,WIZARD_HEADER_HEIGHT:i.DEFAULT_WIZARD_HEADER_HEIGHT,WIZARD_FOOTER_HEIGHT:i.DEFAULT_WIZARD_FOOTER_HEIGHT,OBJECT_ID_FIELD_NAME:i.DEFAULT_OBJECT_ID_FIELD_NAME,CONNECTION_TIMEOUT:i.DEFAULT_CONNECTION_TIMEOUT,UI_SYSTEM_CLOCK_INTERVAL:i.DEFAULT_UI_SYSTEM_CLOCK_INTERVAL,UI_ANIMATE_INTERVAL:i.DEFAULT_UI_ANIMATE_INTERVAL,MAX_NOTIFICATIONS:i.DEFAULT_MAX_NOTIFICATIONS,LANGUAGE_FIELD_NAME:i.DEFAULT_LANGUAGE_FIELD_NAME,PAGE_LOAD_TIMEOUT:i.DEFAULT_PAGE_LOAD_TIMEOUT,SYSTEM_YEAR_OFFSET:i.DEFAULT_SYSTEM_YEAR_OFFSET,DATE_PATTERN:i.DEFAULT_DATE_PATTERN,YEAR_OFFSET:i.DEFAULT_YEAR_OFFSET,TIMEZONE:i.DEFAULT_TIMEZONE,TIME_PATTERN:i.DEFAULT_TIME_PATTERN,DEFAULT_DATA_LANGUAGES:i.DEFAULT_DATA_LANGUAGES,COUNTRY_CODE:i.DEFAULT_COUNTRY_CODE,DEFAULT_TIME_OUT_LOGIN_USER_SESSION:i.DEFAULT_TIME_OUT_LOGIN_USER_SESSION},this.i18n={YES:"Yes",NO:"No",OK:"OK",CANCEL:"Cancel",CLOSE:"Close",CONFIRM:"Confirm",LANG:{EN:{iconURL:null,code:"en",name:"English"},TH:{iconURL:null,code:"th",name:"Thailand"},JP:{iconURL:null,code:"ja",name:"Japanese"},KR:{iconURL:null,code:"kr",name:"Korean"}},INVALID_DATA:"Invalid Data"},this.resources={CROSS_ROUND_BTN:"http://i249.photobucket.com/albums/gg202/sound_horizon/cross_circle.png"}}return i.prototype.getName=function(){return this.name},i.prototype.setName=function(t){this.name=t},i.prototype.getTagline=function(){return this.tagline},i.prototype.setTagline=function(t){this.tagline=t},i.prototype.getSettings=function(){return this.settings},i.prototype.setSettings=function(t){this.settings=t},i.prototype.getIconURL=function(){return this.iconURL},i.prototype.setIconURL=function(t){this.iconURL=t},i.prototype.getGroup=function(){return this.group},i.prototype.setGroup=function(t){this.group=t},i.prototype.getI18n=function(){return this.i18n},i.prototype.setI18n=function(t){this.i18n=t},i.prototype.getResources=function(){return this.resources},i.prototype.setResources=function(t){this.resources=t},i.DEFAULT_DATA_LANGUAGES=[{iconURL:null,code:"th",country:"TH",label:"Thailand",countryCode:"+66"},{iconURL:null,code:"en",country:"EN",label:"English",countryCode:"+44"},{iconURL:null,code:"ja",country:"JP",label:"Japanese",countryCode:"+81"},{iconURL:null,code:"kr",country:"KR",label:"Korean",countryCode:"+82"}],i.DEFAULT_COUNTRY_CODE="TH",i.DEFAULT_RIPPLE_EFFECT_DURATION=1.5,i.DEFAULT_RIPPLE_EFFECT_WIDTH_RATIO=.5,i.DEFAULT_RIPPLE_EFFECT_HEIGHT_RATIO=.5,i.DEFAULT_RIPPLE_EFFECT_REMOVE_DURATION=.8,i.DEFAULT_APP_SWITCHER_POPOVER_DELAY=800,i.DEFAULT_WIZARD_HEADER_HEIGHT=140,i.DEFAULT_WIZARD_FOOTER_HEIGHT=140,i.DEFAULT_OBJECT_ID_FIELD_NAME="_uuid",i.DEFAULT_LANGUAGE_FIELD_NAME="_lang",i.DEFAULT_CONNECTION_TIMEOUT=7e3,i.DEFAULT_UI_SYSTEM_CLOCK_INTERVAL=20,i.DEFAULT_UI_ANIMATE_INTERVAL=600,i.DEFAULT_MAX_NOTIFICATIONS=50,i.DEFAULT_PAGE_LOAD_TIMEOUT=8e3,i.DEFAULT_SYSTEM_YEAR_OFFSET=543,i.DEFAULT_DATE_PATTERN="dd/MM/yyyy",i.DEFAULT_TIME_PATTERN="HH:mm:ss",i.DEFAULT_YEAR_OFFSET=543,i.DEFAULT_TIMEZONE=700,i.DEFAULT_DATA_DATE_TIME_PATTERN="yyyy-MM-dd HH:mm:ss",i.DEFAULT_DATA_DATE_PATTERN="yyyy-MM-dd",i.DEFAULT_DATA_TIME_PATTERN="HH:mm:ss",i.DEFAULT_DATA_TIME_ZONE=700,i.DEFAULT_TIME_OUT_LOGIN_USER_SESSION=1e4,i}(),w=function(){function a(t,e,n,o,i){this.process=t,this.type=e,this.name=n,this.startTime=o,this.options=i,this.userAction=!0,null!==this.type&&"undefined"!=typeof this.type||(this.type=a.TYPE_UNDEFINED),null!==this.name&&"undefined"!=typeof this.name||(this.name=a.TYPE_UNDEFINED),null!=i&&null!==i.userAction&&"undefined"!=typeof i.userAction&&(this.userAction=i.userAction)}return a.TYPE_UNDEFINED="undefined",a}(),C=function(){function t(){this.subjects={}}return t.prototype.getSubject=function(t){if(null===t||"string"!=typeof t)return null;var e=this.subjects[t];return void 0===e&&(e=null),e},t.prototype.containsSubject=function(t){if(null===t||"string"!=typeof t)return!1;var e=this.getSubject(t);return null!=e},t.prototype.createSubject=function(t){return null===t||"string"!=typeof t?null:this.containsSubject(t)?this.getSubject(t):(console.debug('Obsv Mgr: Creating subject for topic "'+t+'".'),this.subjects[t]=new e.Subject,this.subjects[t])},t.prototype.subscribe=function(t,e,n,o){return null===t||"string"!=typeof t?null:(this.containsSubject(t)||this.createSubject(t),console.debug('Obsv Mgr: Subscribing topic "'+t+'".'),this.subjects[t].subscribe(e,n,o))},t.prototype.publish=function(t,e){null!==t&&"string"==typeof t&&(this.containsSubject(t)||this.createSubject(t),console.debug('Obsv Mgr: Publishing to topic "'+t+'" [data='+JSON.stringify(e)+"]."),this.getSubject(t).next(e))},t.prototype.error=function(t,e){null!==t&&"string"==typeof t&&(this.containsSubject(t)||this.createSubject(t),console.debug('Obsv Mgr: Signal error to topic "'+t+'" [error='+JSON.stringify(e)+"]."),this.getSubject(t).error(e))},t.prototype.complete=function(t){null!==t&&"string"==typeof t&&this.containsSubject(t)&&(this.getSubject(t).complete(),delete this.subjects[t])},t.decorators=[{type:v.Injectable}],t.ctorParameters=function(){return[]},t}(),D=function(){function r(t){this.processesPool=[],this.obsvMgr=t}return r.prototype.getWrapperProcess=function(t,e,n,o){var i=Promise.resolve(null);if(null!==t&&"function"==typeof t){var a=t.call(null,null);i=void 0===a?Promise.resolve(a):"object"==typeof a&&a instanceof Promise?a:Promise.resolve(a)}return new w(i,e,n,undefined,o)},r.prototype.isMatchAllOptions=function(t,e){var n=!0;if(null!==t&&t!==undefined){if(null!==e&&e!==undefined)for(var o in e){var i=e[o];if(null===t.options||t.options===undefined){n=!1;break}if(i!==t.options[o]){n=!1;break}}}else null!==e&&e!==undefined&&(n=!1);return n},r.prototype.execute=function(t,e){var i=this;if(null==t)return null;var n=null,o=null;null!=e&&(n=e.type,o=e.name);var a=this.getWrapperProcess(t,n,o,e);return null!==a&&null!==a.process?(this.processesPool.push(a),null!==this.obsvMgr&&"undefined"!=typeof this.obsvMgr&&this.obsvMgr.publish(r.PROCESS_START_TOPIC_NAME,a),new Promise(function(n,o){a.process.then(function(t){a.result=t,n(t);var e=i.processesPool.indexOf(a);0<=e&&i.processesPool.splice(e,1),null!==i.obsvMgr&&"undefined"!=typeof i.obsvMgr&&i.obsvMgr.publish(r.PROCESS_END_TOPIC_NAME,a)},function(t){a.error=t,o(t);var e=i.processesPool.indexOf(a);0<=e&&i.processesPool.splice(e,1),null!==i.obsvMgr&&"undefined"!=typeof i.obsvMgr&&i.obsvMgr.publish(r.PROCESS_ERROR_TOPIC_NAME,a)})})):null},r.prototype.getRunningProcessesCount=function(t,e,n){return this.getRunningProcesses(t,e,n).length},r.prototype.getRunningProcesses=function(t,e,n){if(null===t&&null===e)return this.processesPool;var o,i,a=[];try{for(var r=Ot.__values(this.processesPool),s=r.next();!s.done;s=r.next()){var d=s.value,l=d.type,p=d.name,u=d.userAction,c=!0;if(null!==t&&t!==undefined&&t!==l&&(c=!1),null!==e&&e!==undefined&&e!==p&&(c=!1),c&&null!=n)if(null!==n.userAction&&"undefined"!=typeof n.userAction&&u!==n.userAction&&(c=!1),c)this.isMatchAllOptions(d,n)||(c=!1);c&&a.push(d)}}catch(h){o={error:h}}finally{try{s&&!s.done&&(i=r["return"])&&i.call(r)}finally{if(o)throw o.error}}return a},r.PROCESS_START_TOPIC_NAME="bg-proc-mgr.process.start",r.PROCESS_END_TOPIC_NAME="bg-proc-mgr.process.end",r.PROCESS_ERROR_TOPIC_NAME="bg-proc-mgr.process.error",r.decorators=[{type:v.Injectable}],r.ctorParameters=function(){return[{type:C}]},r}(),I="ROUND_ROBIN",S=function(){function t(t,e,n){this.mode={type:I},"string"==typeof t?(this.baseURLs=[],this.baseURLs.push(t)):this.baseURLs=t,null!=this.baseURLs&&this.baseURLs!==undefined||(this.baseURLs=[]),this.PROCESS_OPTIONS={type:"connection.data",name:""},this.http=e,this.bgProcessMgr=n,this.defaultHeaders=new p.Headers,this.search={},this.params={}}return t.prototype.getMaxDurationMillisec=function(){var t=this.getRunningProcesses();if(t.length<=0)return null;var e,n,o=0;try{for(var i=Ot.__values(t),a=i.next();!a.done;a=i.next()){var r=a.value.startTime,s=new Date;if(null==r){var d=r.getMilliseconds()-s.getMilliseconds();o<d&&(o=d)}}}catch(l){e={error:l}}finally{try{a&&!a.done&&(n=i["return"])&&n.call(i)}finally{if(e)throw e.error}}return o},t.prototype.getResponseBodyAsContent=function(t){if(null!=t){var e=t.headers;if(null!=e)return"application/json"===e.get("Content-Type")?t.json():t.text()}return""},t.prototype.getResponseBodyHttpPromise=function(t){var o=this;return null==t?null:new Promise(function(e,n){null!=t&&t.then(function(t){null!=t&&t instanceof p.Response||n(t),200<=t.status&&t.status<=299?e(o.getResponseBodyAsContent(t)):n(o.getResponseBodyAsContent(t))})["catch"](function(t){null!=t&&"Response"===t.constructor.name||n(t),e(o.getResponseBodyAsContent(t))})})},t.prototype.loadBalanceURL=function(){return this.mode.type===I?(this.mode.count===undefined||this.mode.count+1>=this.baseURLs.length?this.mode.count=0:++this.mode.count,this.baseURLs[this.mode.count]):("PING"===this.mode.type||this.mode.type,"")},t.prototype.getAppendBaseURL=function(t){var e=t,n="";return this.baseURLs!==undefined&&null!==this.baseURLs&&0<this.baseURLs.length&&(n=this.loadBalanceURL()),n.endsWith("/")&&(n=n.substring(0,n.length-1)),null!=t&&(t.startsWith("./")?e=n+"/"+t.substring(t.indexOf("./")+2,t.length):t.startsWith("/")||0<=t.indexOf("://")||(e=n+"/"+t)),e},t.prototype.addConnectionOptionsSetting=function(t){this.addRequestOptionsHeaders(t,this.defaultHeaders),this.addRequestOptionsSearch(t,this.search),this.addRequestOptionsParams(t,this.params)},t.prototype.addRequestOptionsSearch=function(t,e){if(null!=t&&null!=e)if(null!==t.search&&"undefined"!=typeof t.search)for(var n in e)t.search.hasOwnProperty(n)||(t.search[n]=e[n]);else t.search=e},t.prototype.addRequestOptionsParams=function(t,e){if(null!=t&&null!=e)if(null!==t.params&&"undefined"!=typeof t.params)for(var n in e)t.params.hasOwnProperty(n)||(t.params[n]=e[n]);else t.params=e},t.prototype.addRequestOptionsHeaders=function(t,e){if(null!=t&&null!=e)if(null!==t.headers&&"undefined"!=typeof t.headers)for(var n in e.keys())t.headers.has(n)||t.headers.append(n,e.get(n));else t.headers=e},t.prototype.getPhloxAppInfo=function(){return this.phloxAppInfo},t.prototype.setPhloxAppInfo=function(t){this.phloxAppInfo=t},t.prototype.get=function(t,e){var n=this.getWithHttpInfo(t,e);return this.getResponseBodyHttpPromise(n)},t.prototype.getWithHttpInfo=function(t,e){var n=this;if(null===this.http||"undefined"==typeof this.http)return null;var o=!0,i=null;"boolean"==typeof e?(o=e,e=null):"object"==typeof e?"RequestOptions"!==e.constructor.name&&(e.mergeDefaultHeader!==undefined&&"boolean"==typeof e.mergeDefaultHeader&&(o=e.mergeDefaultHeader),e.bgProcessOption!==undefined&&(i=e.bgProcessOption),e=e.requestOptionsArgs!==undefined?e.requestOptionsArgs:null):e=null,null==e&&(e=new p.RequestOptions),null!==(t=this.getAppendBaseURL(t))&&"string"==typeof t&&null!=e&&(e.url=t),e.method="GET";var a=null;if(o){var r=new p.Headers,s=JSON.parse(JSON.stringify(this.defaultHeaders.toJSON()));for(var d in s)r.append(d,s[d]);if(null!==e.headers&&e.headers!==undefined)for(var d in s=JSON.parse(JSON.stringify(e.headers.toJSON())))r.append(d,s[d]);e.headers=r}return i!==undefined&&null!==i?((i=JSON.parse(JSON.stringify(i))).type=JSON.parse(JSON.stringify(this.PROCESS_OPTIONS.type)),i.name===undefined&&(i.name=JSON.parse(JSON.stringify(this.PROCESS_OPTIONS.name)))):i=JSON.parse(JSON.stringify(this.PROCESS_OPTIONS)),null!=this.bgProcessMgr&&"undefined"!=typeof this.bgProcessMgr&&(a=this.bgProcessMgr.execute(function(){return n.http.get(t,e).toPromise()},i)),null==a&&(a=Promise.resolve(null)),a},t.prototype.post=function(t,e,n){var o=this.postWithHttpInfo(t,e,n);return this.getResponseBodyHttpPromise(o)},t.prototype.postWithHttpInfo=function(t,e,n){var o=this;if(null===this.http||"undefined"==typeof this.http)return null;var i=!0,a=null;"boolean"==typeof n?(i=n,n=null):"object"==typeof n?"RequestOptions"!==n.constructor.name&&(n.mergeDefaultHeader!==undefined&&"boolean"==typeof n.mergeDefaultHeader&&(i=n.mergeDefaultHeader),n.bgProcessOption!==undefined&&(a=n.bgProcessOption),n=n.requestOptionsArgs!==undefined?n.requestOptionsArgs:null):n=null,null==n&&(n=new p.RequestOptions),null!==(t=this.getAppendBaseURL(t))&&"string"==typeof t&&null!=n&&(n.url=t),n.method="POST";var r=Promise.resolve(null);if(i){var s=new p.Headers,d=JSON.parse(JSON.stringify(this.defaultHeaders.toJSON()));for(var l in d)s.append(l,d[l]);if(null!==n.headers&&n.headers!==undefined)for(var l in d=JSON.parse(JSON.stringify(n.headers.toJSON())))s.has(l)||s.append(l,d[l]);n.headers=s}return a!==undefined&&null!==a?((a=JSON.parse(JSON.stringify(a))).type=JSON.parse(JSON.stringify(this.PROCESS_OPTIONS.type)),a.name===undefined&&(a.name=JSON.parse(JSON.stringify(this.PROCESS_OPTIONS.name)))):a=JSON.parse(JSON.stringify(this.PROCESS_OPTIONS)),null!=this.bgProcessMgr&&"undefined"!=typeof this.bgProcessMgr&&(r=this.bgProcessMgr.execute(function(){return o.http.post(t,e,n).toPromise()},a)),null==r&&(r=Promise.resolve(null)),r},t.prototype.put=function(t,e,n){var o=this.putWithHttpInfo(t,e,n);return this.getResponseBodyHttpPromise(o)},t.prototype.putWithHttpInfo=function(t,e,n){var o=this;if(null===this.http||"undefined"==typeof this.http)return null;var i=!0,a=null;"boolean"==typeof n?(i=n,n=null):"object"==typeof n?"RequestOptions"!==n.constructor.name&&(n.mergeDefaultHeader!==undefined&&"boolean"==typeof n.mergeDefaultHeader&&(i=n.mergeDefaultHeader),n.bgProcessOption!==undefined&&(a=n.bgProcessOption),n=n.requestOptionsArgs!==undefined?n.requestOptionsArgs:null):n=null,null==n&&(n=new p.RequestOptions),null!==(t=this.getAppendBaseURL(t))&&"string"==typeof t&&null!=n&&(n.url=t),n.method="PUT";var r=Promise.resolve(null);if(i){var s=new p.Headers,d=JSON.parse(JSON.stringify(this.defaultHeaders.toJSON()));for(var l in d)s.has(l)||s.append(l,d[l]);if(null!==n.headers&&n.headers!==undefined)for(var l in d=JSON.parse(JSON.stringify(n.headers.toJSON())))s.has(l)||s.append(l,d[l]);n.headers=s}return a!==undefined&&null!==a?((a=JSON.parse(JSON.stringify(a))).type=JSON.parse(JSON.stringify(this.PROCESS_OPTIONS.type)),a.name===undefined&&(a.name=JSON.parse(JSON.stringify(this.PROCESS_OPTIONS.name)))):a=JSON.parse(JSON.stringify(this.PROCESS_OPTIONS)),null!=this.bgProcessMgr&&"undefined"!=typeof this.bgProcessMgr&&(r=this.bgProcessMgr.execute(function(){return o.http.put(t,e,n).toPromise()},a)),null==r&&(r=Promise.resolve(null)),r},t.prototype["delete"]=function(t,e){var n=this.deleteWithHttpInfo(t,e);return this.getResponseBodyHttpPromise(n)},t.prototype.deleteWithHttpInfo=function(t,e){var n=this;if(null===this.http||"undefined"==typeof this.http)return null;var o=!0,i=null;"boolean"==typeof e?(o=e,e=null):"object"==typeof e?"RequestOptions"!==e.constructor.name&&(e.mergeDefaultHeader!==undefined&&"boolean"==typeof e.mergeDefaultHeader&&(o=e.mergeDefaultHeader),e.bgProcessOption!==undefined&&(i=e.bgProcessOption),e=e.requestOptionsArgs!==undefined?e.requestOptionsArgs:null):e=null,null==e&&(e=new p.RequestOptions),null!==(t=this.getAppendBaseURL(t))&&"string"==typeof t&&null!=e&&(e.url=t),e.method="DELETE";var a=Promise.resolve(null);if(o){var r=new p.Headers,s=JSON.parse(JSON.stringify(this.defaultHeaders.toJSON()));for(var d in s)r.append(d,s[d]);if(null!==e.headers&&e.headers!==undefined)for(var d in s=JSON.parse(JSON.stringify(e.headers.toJSON())))r.append(d,s[d]);e.headers=r}return i!==undefined&&null!==i?((i=JSON.parse(JSON.stringify(i))).type=JSON.parse(JSON.stringify(this.PROCESS_OPTIONS.type)),i.name===undefined&&(i.name=JSON.parse(JSON.stringify(this.PROCESS_OPTIONS.name)))):i=JSON.parse(JSON.stringify(this.PROCESS_OPTIONS)),null!=this.bgProcessMgr&&"undefined"!=typeof this.bgProcessMgr&&(a=this.bgProcessMgr.execute(function(){return n.http["delete"](t,e).toPromise()},i)),null==a&&(a=Promise.resolve(null)),a},t.prototype.patch=function(t,e,n){var o=this.patchWithHttpInfo(t,e,n);return this.getResponseBodyHttpPromise(o)},t.prototype.patchWithHttpInfo=function(t,e,n){var o=this;if(null===this.http||"undefined"==typeof this.http)return null;var i=!0,a=null;"boolean"==typeof n?(i=n,n=null):"object"==typeof n?"RequestOptions"!==n.constructor.name&&(n.mergeDefaultHeader!==undefined&&"boolean"==typeof n.mergeDefaultHeader&&(i=n.mergeDefaultHeader),n.bgProcessOption!==undefined&&(a=n.bgProcessOption),n=n.requestOptionsArgs!==undefined?n.requestOptionsArgs:null):n=null,null==n&&(n=new p.RequestOptions),null!==(t=this.getAppendBaseURL(t))&&"string"==typeof t&&null!=n&&(n.url=t),n.method="PATCH";var r=Promise.resolve(null);if(i){var s=new p.Headers,d=JSON.parse(JSON.stringify(this.defaultHeaders.toJSON()));for(var l in d)s.has(l)||s.append(l,d[l]);if(null!==n.headers&&n.headers!==undefined)for(var l in d=JSON.parse(JSON.stringify(n.headers.toJSON())))s.has(l)||s.append(l,d[l]);n.headers=s}return a!==undefined&&null!==a?((a=JSON.parse(JSON.stringify(a))).type=JSON.parse(JSON.stringify(this.PROCESS_OPTIONS.type)),a.name===undefined&&(a.name=JSON.parse(JSON.stringify(this.PROCESS_OPTIONS.name)))):a=JSON.parse(JSON.stringify(this.PROCESS_OPTIONS)),null!=this.bgProcessMgr&&"undefined"!=typeof this.bgProcessMgr&&(r=this.bgProcessMgr.execute(function(){return o.http.patch(t,e,n).toPromise()},a)),null==r&&(r=Promise.resolve(null)),r},t.prototype.head=function(t,e){var n=this.headWithHttpInfo(t,e);return this.getResponseBodyHttpPromise(n)},t.prototype.headWithHttpInfo=function(t,e){var n=this;if(null===this.http||"undefined"==typeof this.http)return null;var o=!0,i=null;"boolean"==typeof e?(o=e,e=null):"object"==typeof e?"RequestOptions"!==e.constructor.name&&(e.mergeDefaultHeader!==undefined&&"boolean"==typeof e.mergeDefaultHeader&&(o=e.mergeDefaultHeader),e.bgProcessOption!==undefined&&(i=e.bgProcessOption),e=e.requestOptionsArgs!==undefined?e.requestOptionsArgs:null):e=null,null==e&&(e=new p.RequestOptions),null!==(t=this.getAppendBaseURL(t))&&"string"==typeof t&&null!=e&&(e.url=t),e.method="HEAD";var a=Promise.resolve(null);if(o){var r=new p.Headers,s=JSON.parse(JSON.stringify(this.defaultHeaders.toJSON()));for(var d in s)r.append(d,s[d]);if(null!==e.headers&&e.headers!==undefined)for(var d in s=JSON.parse(JSON.stringify(e.headers.toJSON())))r.append(d,s[d]);e.headers=r}return i!==undefined&&null!==i?((i=JSON.parse(JSON.stringify(i))).type=JSON.parse(JSON.stringify(this.PROCESS_OPTIONS.type)),i.name===undefined&&(i.name=JSON.parse(JSON.stringify(this.PROCESS_OPTIONS.name)))):i=JSON.parse(JSON.stringify(this.PROCESS_OPTIONS)),null!=this.bgProcessMgr&&"undefined"!=typeof this.bgProcessMgr&&(a=this.bgProcessMgr.execute(function(){return n.http.head(t,e).toPromise()},i)),null==a&&(a=Promise.resolve(null)),a},t.prototype.options=function(t,e){var n=this.optionsWithHttpInfo(t,e);return this.getResponseBodyHttpPromise(n)},t.prototype.optionsWithHttpInfo=function(t,e){var n=this;if(null===this.http||"undefined"==typeof this.http)return null;var o=!0,i=null;"boolean"==typeof e?(o=e,e=null):"object"==typeof e?"RequestOptions"!==e.constructor.name&&(e.mergeDefaultHeader!==undefined&&"boolean"==typeof e.mergeDefaultHeader&&(o=e.mergeDefaultHeader),e.bgProcessOption!==undefined&&(i=e.bgProcessOption),e=e.requestOptionsArgs!==undefined?e.requestOptionsArgs:null):e=null,null==e&&(e=new p.RequestOptions),null!==(t=this.getAppendBaseURL(t))&&"string"==typeof t&&null!=e&&(e.url=t),e.method="OPTIONS";var a=Promise.resolve(null);if(o){var r=new p.Headers,s=JSON.parse(JSON.stringify(this.defaultHeaders.toJSON()));for(var d in s)r.append(d,s[d]);if(null!==e.headers&&e.headers!==undefined)for(var d in s=JSON.parse(JSON.stringify(e.headers.toJSON())))r.append(d,s[d]);e.headers=r}return i!==undefined&&null!==i?((i=JSON.parse(JSON.stringify(i))).type=JSON.parse(JSON.stringify(this.PROCESS_OPTIONS.type)),i.name===undefined&&(i.name=JSON.parse(JSON.stringify(this.PROCESS_OPTIONS.name)))):i=JSON.parse(JSON.stringify(this.PROCESS_OPTIONS)),null!=this.bgProcessMgr&&"undefined"!=typeof this.bgProcessMgr&&(a=this.bgProcessMgr.execute(function(){return n.http.options(t,e).toPromise()},i)),null==a&&(a=Promise.resolve(null)),a},t.prototype.request=function(t,e){var n=this.requestWithHttpInfo(t,e);return this.getResponseBodyHttpPromise(n)},t.prototype.requestWithHttpInfo=function(t,e){var n=this;if(null===this.http||"undefined"==typeof this.http)return null;var o=!0,i=null;"boolean"==typeof e?(o=e,e=null):"object"==typeof e?"RequestOptions"!==e.constructor.name&&(e.mergeDefaultHeader!==undefined&&"boolean"==typeof e.mergeDefaultHeader&&(o=e.mergeDefaultHeader),e.bgProcessOption!==undefined&&(i=e.bgProcessOption),e=e.requestOptionsArgs!==undefined?e.requestOptionsArgs:null):e=null,null==e&&(e=new p.RequestOptions),null!==t&&"string"==typeof t&&null!=e&&(e.url=t);var a=Promise.resolve(null);if(o){var r=new p.Headers,s=JSON.parse(JSON.stringify(this.defaultHeaders.toJSON()));for(var d in s)r.append(d,s[d]);if(null!==e.headers&&e.headers!==undefined)for(var d in s=JSON.parse(JSON.stringify(e.headers.toJSON())))r.append(d,s[d]);e.headers=r}return i!==undefined&&null!==i?((i=JSON.parse(JSON.stringify(i))).type=JSON.parse(JSON.stringify(this.PROCESS_OPTIONS.type)),i.name===undefined&&(i.name=JSON.parse(JSON.stringify(this.PROCESS_OPTIONS.name)))):i=JSON.parse(JSON.stringify(this.PROCESS_OPTIONS)),null!=this.bgProcessMgr&&"undefined"!=typeof this.bgProcessMgr&&(a=this.bgProcessMgr.execute(function(){return n.http.request(t,e).toPromise()},i)),null==a&&(a=Promise.resolve(null)),a},t.prototype.getRunningProcessesCount=function(t){var e=null;return e!==undefined&&null!==e?((e=JSON.parse(JSON.stringify(e))).type=JSON.parse(JSON.stringify(this.PROCESS_OPTIONS.type)),e.name===undefined&&(e.name=JSON.parse(JSON.stringify(this.PROCESS_OPTIONS.name)))):e=JSON.parse(JSON.stringify(this.PROCESS_OPTIONS)),null!=this.bgProcessMgr&&"undefined"!=typeof this.bgProcessMgr&&this.bgProcessMgr.getRunningProcessesCount(e.type,null),0},t.prototype.getRunningProcesses=function(t){var e=null;return e!==undefined&&null!==e?((e=JSON.parse(JSON.stringify(e))).type=JSON.parse(JSON.stringify(this.PROCESS_OPTIONS.type)),e.name===undefined&&(e.name=JSON.parse(JSON.stringify(this.PROCESS_OPTIONS.name)))):e=JSON.parse(JSON.stringify(this.PROCESS_OPTIONS)),null!=this.bgProcessMgr&&"undefined"!=typeof this.bgProcessMgr&&this.bgProcessMgr.getRunningProcesses(e.type,null),[]},t.prototype.getConnectionQuality=function(){if(null!==this.phloxAppInfo&&"undefined"!=typeof this.phloxAppInfo){var t=this.phloxAppInfo.settings;if(null!=t){var e=t.CONNECTION_TIMEOUT;if(null==e?e=0:e<0&&(e=0),0===e)return 0;var n=this.getMaxDurationMillisec();return null===n&&(n=0),(e-n)/e*100}}return 0},t.prototype.addBaseURLs=function(t){this.baseURLs!==undefined&&null!==this.baseURLs||(this.baseURLs=[]),this.baseURLs.push(t)},t.prototype.setBaseURLs=function(t){"string"==typeof t?(this.baseURLs=[],this.baseURLs.push(t)):this.baseURLs=t},t.prototype.resetBaseURLs=function(){this.baseURLs=[]},t.prototype.setDefaultHeader=function(t,e){null!=t&&null!==this.defaultHeaders&&"undefined"!=typeof this.defaultHeaders&&(this.defaultHeaders.has(t)?this.defaultHeaders.set(t,e):this.defaultHeaders.append(t,e))},t.prototype.removeDefaultHeader=function(t){null!=t&&this.defaultHeaders.has(t)&&this.defaultHeaders["delete"](t)},t.prototype.resetDefaultHeaders=function(){this.defaultHeaders=new p.Headers},t.prototype.setSearch=function(t,e){null!=t&&(this.search[t]=e)},t.prototype.removeSearch=function(t){null!=t&&delete this.search[t]},t.prototype.resetSearch=function(){this.search={}},t.prototype.setParam=function(t,e){null!=t&&(this.params[t]=e)},t.prototype.removeParam=function(t){delete this.params[t]},t.prototype.resetParams=function(){this.params={}},t.prototype.getName=function(){return this.name},t.prototype.setName=function(t){this.name=t,this.PROCESS_OPTIONS.name=t},t.prototype.createResource=function(t){return new t(this)},t}(),x=new v.InjectionToken("APP_BASE_URLS"),T=function(){function t(t,e,n){this.defConnectionManager=new S(t,e,n)}return t.prototype.getPhloxAppInfo=function(){return this.defConnectionManager.getPhloxAppInfo()},t.prototype.setPhloxAppInfo=function(t){this.defConnectionManager.setPhloxAppInfo(t)},t.prototype.get=function(t,e){return this.defConnectionManager.get(t,e)},t.prototype.getWithHttpInfo=function(t,e){return this.defConnectionManager.getWithHttpInfo(t,e)},t.prototype.post=function(t,e,n){return this.defConnectionManager.post(t,e,n)},t.prototype.postWithHttpInfo=function(t,e,n){return this.defConnectionManager.postWithHttpInfo(t,e,n)},t.prototype.put=function(t,e,n){return this.defConnectionManager.put(t,e,n)},t.prototype.putWithHttpInfo=function(t,e,n){return this.defConnectionManager.putWithHttpInfo(t,e,n)},t.prototype["delete"]=function(t,e){return this.defConnectionManager["delete"](t,e)},t.prototype.deleteWithHttpInfo=function(t,e){return this.defConnectionManager.deleteWithHttpInfo(t,e)},t.prototype.patch=function(t,e,n){return this.defConnectionManager.patch(t,e,n)},t.prototype.patchWithHttpInfo=function(t,e,n){return this.defConnectionManager.patchWithHttpInfo(t,e,n)},t.prototype.head=function(t,e){return this.defConnectionManager.head(t,e)},t.prototype.headWithHttpInfo=function(t,e){return this.defConnectionManager.headWithHttpInfo(t,e)},t.prototype.options=function(t,e){return this.defConnectionManager.options(t,e)},t.prototype.optionsWithHttpInfo=function(t,e){return this.defConnectionManager.optionsWithHttpInfo(t,e)},t.prototype.request=function(t,e){return this.defConnectionManager.request(t,e)},t.prototype.requestWithHttpInfo=function(t,e){return this.defConnectionManager.requestWithHttpInfo(t,e)},t.prototype.getRunningProcessesCount=function(t){return this.defConnectionManager.getRunningProcessesCount(t)},t.prototype.getRunningProcesses=function(t){return this.defConnectionManager.getRunningProcesses(t)},t.prototype.getConnectionQuality=function(){return this.defConnectionManager.getConnectionQuality()},t.prototype.addBaseURLs=function(t){return this.defConnectionManager.addBaseURLs(t)},t.prototype.setBaseURLs=function(t){this.defConnectionManager.setBaseURLs(t)},t.prototype.resetBaseURLs=function(){this.defConnectionManager.resetBaseURLs()},t.prototype.setDefaultHeader=function(t,e){this.defConnectionManager.setDefaultHeader(t,e)},t.prototype.removeDefaultHeader=function(t){this.defConnectionManager.removeDefaultHeader(t)},t.prototype.resetDefaultHeaders=function(){this.defConnectionManager.resetDefaultHeaders()},t.prototype.setSearch=function(t,e){this.defConnectionManager.setSearch(t,e)},t.prototype.removeSearch=function(t){this.defConnectionManager.removeSearch(t)},t.prototype.resetSearch=function(){this.defConnectionManager.resetSearch()},t.prototype.setParam=function(t,e){this.defConnectionManager.setParam(t,e)},t.prototype.removeParam=function(t){this.defConnectionManager.removeParam(t)},t.prototype.resetParams=function(){this.defConnectionManager.resetParams()},t.prototype.getName=function(){return this.defConnectionManager.getName()},t.prototype.setName=function(t){this.defConnectionManager.setName(t)},t.prototype.createResource=function(t){return this.defConnectionManager.createResource(t)},t.decorators=[{type:v.Injectable}],t.ctorParameters=function(){return[{type:undefined,decorators:[{type:v.Inject,args:[x]}]},{type:p.Http},{type:D}]},t}(),O=function(){function t(t){this.connectionManager=t}return t.prototype.ngOnInit=function(){null!==this.connectionManager&&"undefined"!=typeof this.connectionManager&&(this.loadAppInfo(),this.connectionManager.setPhloxAppInfo(this.appInfo))},t.prototype.loadAppInfo=function(){return Promise.resolve(new b("","","",""))},t.prototype.reload=function(){return this.appInfo=null,this.getAppInfo()},t.prototype.getAppInfo=function(){var e=this;return null!==this.appInfo&&"undefined"!=typeof this.appInfo?Promise.resolve(this.appInfo):this.loadAppInfo().then(function(t){return e.appInfo=t,Promise.resolve(e.appInfo)})},t.decorators=[{type:v.Injectable}],t.ctorParameters=function(){return[{type:T}]},t}(),M=function(){function t(){}return t.prototype.setInstance=function(t){this.app=t},t.prototype.getInstance=function(){return this.app},t.decorators=[{type:v.Injectable}],t}(),A=function(){function t(){}return t.prototype.setDefaultTheme=function(t){this.defaultTheme=t},t.prototype.reload=function(){return this.colorThemes=[],Promise.resolve(this.colorThemes)},t.prototype.getColorThemes=function(){var o=this;if(null!==this.colorThemes&&"undefined"!=typeof this.colorThemes)return Promise.resolve(this.colorThemes);var t=this.reload();return null!==t&&t!==undefined?new Promise(function(e,n){t.then(function(t){o.colorThemes=t,e(o.colorThemes)})["catch"](function(t){n(t)})}):Promise.resolve([])},t.prototype.getColorTheme=function(o,i){var a=this;return void 0===i&&(i=!0),this.getColorThemes().then(function(t){for(var e=null,n=0;n<t.length;n++)if(t[n].name===o){e=t[n];break}return null===e&&i?Promise.resolve(a.defaultTheme):Promise.resolve(e)})},t.decorators=[{type:v.Injectable}],t}(),R=function(){function n(t){var e=this;this.observableMgr=t,this.focusSubject=t.createSubject(n.FOCUS_TOPIC_NAME),this.lostFocusSubject=t.createSubject(n.LOST_FOCUS_TOPIC_NAME),t.subscribe(n.FOCUS_CMD_TOPIC_NAME,function(t){e.setFocusingComponent(t)})}return n.prototype.getDataParent=function(t){if(null==t)return null;var e=null;return"function"==typeof t.getDataParent&&(e=t.getDataParent()),null!=e?e:t.dataParent},n.prototype.getDataAncestorChain=function(t){var e=[];if(null!=t){e.push(t);for(var n=this.getDataParent(t);null!=n;)e.push(n),n=this.getDataParent(n)}return e},n.prototype.getFocusingComponent=function(){return this.focusingComponent},n.prototype.setFocusingComponent=function(t,e){if(this.focusingComponent!==t){var n,o,i,a,r=this.getDataAncestorChain(this.focusingComponent),s=this.getDataAncestorChain(t);try{for(var d=Ot.__values(r),l=d.next();!l.done;l=d.next()){var p=l.value;if(0<=s.indexOf(p))break;"function"==typeof p.onLostFocus&&(p.onLostFocus(e),this.lostFocusSubject.next(p))}}catch(h){n={error:h}}finally{try{l&&!l.done&&(o=d["return"])&&o.call(d)}finally{if(n)throw n.error}}this.focusingComponent=t;try{for(var u=Ot.__values(s),c=u.next();!c.done;c=u.next()){p=c.value;if(0<=r.indexOf(p))break;"function"==typeof p.onFocus&&(p.onFocus(e),this.focusSubject.next(p))}}catch(y){i={error:y}}finally{try{c&&!c.done&&(a=u["return"])&&a.call(u)}finally{if(i)throw i.error}}}},n.prototype.resetFocusingComponent=function(t){this.setFocusingComponent(null,t)},n.FOCUS_TOPIC_NAME="needfocus.focus",n.LOST_FOCUS_TOPIC_NAME="needfocus.lostfocus",n.FOCUS_CMD_TOPIC_NAME="needfocus.cmd.focus",n.decorators=[{type:v.Injectable}],n.ctorParameters=function(){return[{type:C}]},n}(),P=function(){function t(){}return t.prototype.reload=function(){return this.viewModels=[],Promise.resolve(this.viewModels)},t.prototype.getViewModels=function(t){var o=this;if(null!==this.viewModels&&"undefined"!=typeof this.viewModels)return Promise.resolve(this.viewModels);var i=this.reload();return null!==i&&i!==undefined?new Promise(function(e,n){i.then(function(t){o.viewModels=t,e(o.viewModels)})["catch"](function(t){n(t)})}):Promise.resolve(null)},t.decorators=[{type:v.Injectable}],t}(),F=function(){function t(){}return t.prototype.getOptions=function(){return this.options},t.prototype.setOptions=function(t){this.options=t},t}(),L=function(){function t(){}return t.getDataArrayValue=function(t,e){var n=null;if(0<=t.indexOf("[")&&0<=t.indexOf("]")){var o=t.substring(t.indexOf("["),0);if(Array.isArray(e[o]))try{var i=e[o],a=t.substring(t.indexOf("[")),r=a.substring(a.lastIndexOf("[")+1,a.lastIndexOf("]")),s=parseInt(r);s<i.length&&(n=i[s])}catch(d){}}return n},t.setDataArrayValue=function(t,e,n){if(0<=t.indexOf("[")&&0<=t.indexOf("]")){var o=t.substring(t.indexOf("["),0);if(Array.isArray(e[o]))try{var i=e[o],a=t.substring(t.indexOf("[")),r=a.substring(a.lastIndexOf("[")+1,a.lastIndexOf("]")),s=parseInt(r);s<i.length&&(i[s]=n)}catch(d){}}},t.copyDataValues=function(t,e,n,o){if(void 0===n&&(n=!0),void 0===o&&(o=!1),null!==e&&"object"==typeof e){if(o)for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&delete e[i];if(null!==t&&"object"==typeof t)for(var i in t)(n||"undefined"==typeof e[i])&&(e[i]=t[i])}},t.getDataValue=function(t,e){if(null==t||null==e)return null;var n=null;if(0<t.indexOf(".")){var o=t.split(".");if(0<o.length){var i=o[0],a=e[i];if(0<=i.indexOf("[")&&0<=i.indexOf("]")&&(a=this.getDataArrayValue(i,e)),null!=a&&void 0!==a&&"object"==typeof a&&1<o.length){var r=t.substring(t.indexOf(".")+1,t.length);return this.getDataValue(r,a)}}}else n=0<=t.indexOf("[")&&0<=t.indexOf("]")?this.getDataArrayValue(t,e):e[t];return null!=n&&void 0!==n?n:null},t.setDataValue=function(t,e,n){if(null==t||null==n||null==e)return e;if(0<t.indexOf(".")){var o=t.split(".");if(0<o.length){var i=o[0],a=e[i];if(0<=i.indexOf("[")&&0<=i.indexOf("]")&&(a=this.getDataArrayValue(i,e)),null!=a&&void 0!==a&&"object"==typeof a&&1<o.length){var r=t.substring(t.indexOf(".")+1,t.length);this.setDataValue(r,a,n)}}}else 0<=t.indexOf("[")&&0<=t.indexOf("]")?this.setDataArrayValue(t,e,n):e[t]=n;return e},t.containsDataKey=function(t,e){if(null==t||null==e)return!1;if(0<t.indexOf(".")){var n=t.split(".");if(0<n.length){var o=e[n[0]];if(null!=o&&void 0!==o){if("object"==typeof o&&1<n.length){var i=t.substring(t.indexOf(".")+1,t.length);return this.containsDataKey(i,o)}}else if(void 0!==o)return!0}}else if("undefined"!=typeof e[t])return!0;return!1},t}(),B=function(){function t(){}return t.move=function(t,e,n){if(!(null==t||t.length<=0)&&!(null==n||n<=-1)&&!(null==e||e<=-1)&&e!==n&&n<t.length&&e<t.length){var o=t[e];t.splice(e,1),t.splice(n,0,o)}},t.insert=function(t,e,n){null==t||t.length<=0||null==n||n<=-1||t.splice(n,0,e)},t.isAllMemberTypeOf=function(t,e){if(null==t)throw new Error("objectArray is null or undefined");if(!Array.isArray(t))throw new Error("objectArray is not array");if(t.length<=0)return!1;try{for(var n=Ot.__values(t),o=n.next();!o.done;o=n.next()){if(typeof o.value!==e)return!1}}catch(r){i={error:r}}finally{try{o&&!o.done&&(a=n["return"])&&a.call(n)}finally{if(i)throw i.error}}return!0;var i,a},t.isAllMemberHasProperty=function(t,e){if(null==t)throw new Error("objectArray is null or undefined");if(!Array.isArray(t))throw new Error("objectArray is not array");if(null===e||"string"!=typeof e)throw new Error("propKey must be a string: "+typeof e);if(t.length<=0)return!1;try{for(var n=Ot.__values(t),o=n.next();!o.done;o=n.next()){var i=o.value;if(null==i)return!1;if(i[e]===undefined)return!1}}catch(s){a={error:s}}finally{try{o&&!o.done&&(r=n["return"])&&r.call(n)}finally{if(a)throw a.error}}return!0;var a,r},t.isAllMemberHasPropertyTypeOf=function(t,e,n){if(null==t)throw new Error("objectArray is null or undefined");if(!Array.isArray(t))throw new Error("objectArray is not array");if(null===e||"string"!=typeof e)throw new Error("propKey must be a string: "+typeof e);if(t.length<=0)return!1;try{for(var o=Ot.__values(t),i=o.next();!i.done;i=o.next()){var a=i.value;if(null==a)return!1;if(a[e]===undefined)return!1;if(typeof a[e]!==n)return!1}}catch(d){r={error:d}}finally{try{i&&!i.done&&(s=o["return"])&&s.call(o)}finally{if(r)throw r.error}}return!0;var r,s},t}();function N(d){return function(t,e,n){var o=d||e,i=t._options_;if(!Object.prototype.hasOwnProperty.call(t,"_options_")){var a=i;i="object"==typeof a?JSON.parse(JSON.stringify(a)):{},Object.defineProperty(t,"_options_",{value:i,enumerable:!1,writable:!1})}if(i[o]=e,"function"==typeof t.ngOnInit&&!t._optionsNgOnInitWrapped_){var r=t.ngOnInit;t.ngOnInit=function(){this._optionsNgOnInitExecuted_||(this.setOptions(this.options,!1),this._optionsNgOnInitExecuted_=!0),r.call(this)},t._optionsNgOnInitWrapped_=!0}if("function"==typeof t.setOptions&&!t._optionsSetOptionsWrapped_){var s=t.setOptions;t.setOptions=function(u,c){if(void 0===c&&(c=!0),null!==this._options_&&"undefined"!=typeof this._options_){var t=function(t){var e,n,o=h._options_[t]||t;h[o];if(null!=u){var i=undefined;if(L.containsDataKey(t,u))i=L.getDataValue(t,u);else if("function"==typeof h.getName){var a=h.getName();if(null!==a&&"string"==typeof a){var r=u[a];null!==r&&"object"==typeof r&&L.containsDataKey(t,r)&&(i=L.getDataValue(t,r))}}if(i!==undefined)if(null!==h[o]&&h[o]!==undefined&&"function"==typeof h[o].setOptions)h[o].setOptions(i);else if(null!==h[o]&&Array.isArray(h[o])&&B.isAllMemberHasPropertyTypeOf(h[o],"setOptions","function"))if(null!==i&&Array.isArray(i)){var s=void 0;for(s=0;s<h[o].length&&s<i.length;s++)h[o][s].setOptions(i[s]);for(;s<h[o].length;s++)h[o][s].setOptions(null)}else try{for(var d=Ot.__values(h[o]),l=d.next();!l.done;l=d.next()){l.value.setOptions(i)}}catch(p){e={error:p}}finally{try{l&&!l.done&&(n=d["return"])&&n.call(d)}finally{if(e)throw e.error}}else typeof h[o]!==undefined&&h[o]instanceof v.EventEmitter?i instanceof v.EventEmitter&&c?h[o]=i:"function"==typeof i&&h[o].subscribe(function(t){i(t)}):(c||"undefined"==typeof h[o])&&(h[o]=i)}},h=this;for(var e in this._options_)t(e)}s.call(this,u)},t._optionsSetOptionsWrapped_=!0}}}var k=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Ot.__extends(e,t),e.prototype.applyI18N=function(t){if(void 0!==t){this.i18nValue=t;var e=this._i18nProxies_;if("object"==typeof e)for(var n in e)if("function"==typeof e[n].applyI18N){var o=!1;"function"==typeof e[n].isBypassKey&&(o=e[n].isBypassKey()),o?e[n].applyI18N.apply(this,[t]):null===t?e[n].applyI18N.apply(this,[null]):L.containsDataKey(n,t)?e[n].applyI18N.apply(this,[L.getDataValue(n,t)]):e[n].applyI18N.apply(this,[undefined])}}},e.prototype.getI18NKey=function(){if(null===this.i18nKey||"undefined"==typeof this.i18nKey||""===this.i18nKey){var t=this.constructor.name;return t.charAt(0).toLowerCase()+t.slice(1)}return this.i18nKey},e.prototype.setI18NKey=function(t){this.i18nKey=t},e.prototype.isBypassKey=function(){return this.bypass},e.prototype.setBypassKey=function(t){this.bypass=t},e.prototype.getI18NValue=function(){return this.i18nValue},Ot.__decorate([N(),Ot.__metadata("design:type",String)],e.prototype,"i18nKey",void 0),Ot.__decorate([N("i18nBypass"),Ot.__metadata("design:type",Boolean)],e.prototype,"bypass",void 0),e}(F);function H(t){var s=!1,d=undefined,h=!0;return null!=t&&("object"==typeof t?Array.isArray(t)||(null!==t.key&&"string"==typeof t.key&&(d=t.key),null!==t.bypass&&"boolean"==typeof t.bypass&&(s=t.bypass),null!==t.init&&"boolean"==typeof t.init&&(h=t.init)):"string"==typeof t?d=t:"boolean"==typeof t&&(s=t)),function(t,e,n){var c=d||e,o=t._i18nProxies_;if(!Object.prototype.hasOwnProperty.call(t,"_i18nProxies_")){var i=o;o="object"==typeof i?JSON.parse(JSON.stringify(i)):{},Object.defineProperty(t,"_i18nProxies_",{value:o,enumerable:!1,writable:!1})}var a={applyI18N:function(t,e){if(void 0===e&&(e=!1),(!e||h)&&void 0!==t){null!==this._i18nValues_&&"undefined"!=typeof this._i18nValues_&&"object"==typeof this._i18nValues_||Object.defineProperty(this,"_i18nValues_",{value:{},enumerable:!1,writable:!1});var n,o,i=this._i18nValues_[c];if(null==i||"object"!=typeof i||"function"!=typeof i.applyI18N){var a=undefined;if(null!=i&&(a=i._i18nProxies_),"object"==typeof a){for(var r in a)if("function"==typeof a[r].applyI18N){var s=!1;"function"==typeof a[r].isBypassKey&&(s=a[r].isBypassKey()),null===t?a[r].applyI18N.apply(i,[null]):s?a[r].applyI18N.apply(i,[t]):L.containsDataKey(r,t)?a[r].applyI18N.apply(i,[L.getDataValue(r,t)]):a[r].applyI18N.apply(i,[undefined])}}else if(Array.isArray(i)&&B.isAllMemberHasPropertyTypeOf(i,"applyI18N","function"))if(null!==t&&Array.isArray(t)){var d=void 0;for(d=0;d<i.length&&d<t.length;d++)i[d].applyI18N(t[d]);for(;d<i.length;d++)i[d].applyI18N(null)}else try{for(var l=Ot.__values(i),p=l.next();!p.done;p=l.next()){p.value.applyI18N(t)}}catch(u){n={error:u}}finally{try{p&&!p.done&&(o=l["return"])&&o.call(l)}finally{if(n)throw n.error}}else this._i18nValues_[c]=t}else i.applyI18N(t)}},getValue:function(){return null===this._i18nValues_||"undefined"==typeof this._i18nValues_||"object"!=typeof this._i18nValues_?undefined:this._i18nValues_[c]},setValue:function(t){null!==this._i18nValues_&&"undefined"!=typeof this._i18nValues_&&"object"==typeof this._i18nValues_||Object.defineProperty(this,"_i18nValues_",{value:{},enumerable:!1,writable:!1}),this._i18nValues_[c]=t},getI18NKey:function(){return c},isBypassKey:function(){return s}};if(delete t[e],Object.defineProperty(t,e,{get:function(){return a.getValue.apply(this,[])},set:function(t){a.setValue.apply(this,[t])},enumerable:!0}),o[c]=a,"function"==typeof t.ngOnInit&&!t._i18nNgOnInitWrapped_){var r=t.ngOnInit;t.ngOnInit=function(){if(r.call(this),!this._i18nNgOnInitExecuted_){var t=this.i18nValue,e=this._i18nProxies_;if("object"==typeof e)for(var n in e)if("function"==typeof e[n].applyI18N){var o=!1;"function"==typeof e[n].isBypassKey&&(o=e[n].isBypassKey()),o?e[n].applyI18N.apply(this,[t,!0]):null===t?e[n].applyI18N.apply(this,[null,!0]):L.containsDataKey(n,t)?e[n].applyI18N.apply(this,[L.getDataValue(n,t),!0]):e[n].applyI18N.apply(this,[undefined,!0])}this._i18nNgOnInitExecuted_=!0}},t._i18nNgOnInitWrapped_=!0}}}var V=function(a){function t(t,e,n,o){var i=a.call(this)||this;return i.label=t,i.height=e,i.active=n,"undefined"==typeof i.active&&(i.active=!0),i.enable=o,"undefined"==typeof i.enable&&(i.enable=!0),i}return Ot.__extends(t,a),Ot.__decorate([H(),N(),Ot.__metadata("design:type",String)],t.prototype,"label",void 0),Ot.__decorate([N(),Ot.__metadata("design:type",String)],t.prototype,"height",void 0),Ot.__decorate([N(),Ot.__metadata("design:type",Boolean)],t.prototype,"active",void 0),Ot.__decorate([N(),Ot.__metadata("design:type",Boolean)],t.prototype,"enable",void 0),t}(k),j=function(d){function t(t,e,n,o,i,a,r){var s=d.call(this)||this;return s.iconURL=t,s.label=e,s.type=n,s.isShow=o,s.isEnabled=i,s.actionPerformedHandler=a,s.styleClasses=r,s}return Ot.__extends(t,d),Ot.__decorate([N(),H(),Ot.__metadata("design:type",String)],t.prototype,"iconURL",void 0),Ot.__decorate([N(),H(),Ot.__metadata("design:type",String)],t.prototype,"label",void 0),Ot.__decorate([N(),Ot.__metadata("design:type",Array)],t.prototype,"styleClasses",void 0),Ot.__decorate([N(),Ot.__metadata("design:type",String)],t.prototype,"type",void 0),Ot.__decorate([N(),Ot.__metadata("design:type",Function)],t.prototype,"isShow",void 0),Ot.__decorate([N(),Ot.__metadata("design:type",Function)],t.prototype,"isEnabled",void 0),Ot.__decorate([N(),Ot.__metadata("design:type",Function)],t.prototype,"actionPerformedHandler",void 0),t}(k),W=function(l){function t(t,e,n,o,i,a,r,s){var d=l.call(this,t,e,n,o,i,a)||this;return d.items=r,null==d.items&&(d.items=[]),d.menuModelFactory=s,d}return Ot.__extends(t,l),t}(j),U=function(t,e,n){this.title=t,this.startDateTime=e,this.endDateTime=n},K=function(t,e,n,o){this.title=t,this.description=e,this.date=n,this.type=o},G=function(o){function t(t,e,n){return o.call(this,t,null,e,n)||this}return Ot.__extends(t,o),t}(K),Y=function(l){function t(t,e,n,o,i,a,r,s){var d=l.call(this)||this;return d.type=t,d.top=n,d.left=o,d.model=e,d.popoverWidth=i,d.popoverHeight=a,d.showArrow=r,d.styleClasses=s,d}return Ot.__extends(t,l),Ot.__decorate([N(),Ot.__metadata("design:type",v.Type)],t.prototype,"type",void 0),Ot.__decorate([N(),H(),Ot.__metadata("design:type",Object)],t.prototype,"model",void 0),Ot.__decorate([N(),Ot.__metadata("design:type",Number)],t.prototype,"top",void 0),Ot.__decorate([N(),Ot.__metadata("design:type",Number)],t.prototype,"left",void 0),Ot.__decorate([N(),Ot.__metadata("design:type",String)],t.prototype,"popoverWidth",void 0),Ot.__decorate([N(),Ot.__metadata("design:type",String)],t.prototype,"popoverHeight",void 0),Ot.__decorate([N(),Ot.__metadata("design:type",Boolean)],t.prototype,"showArrow",void 0),Ot.__decorate([N(),Ot.__metadata("design:type",Array)],t.prototype,"styleClasses",void 0),t}(k),J=function(r){function t(t,e,n,o,i){var a=r.call(this,t,e,n,o)||this;return a.position=i,a}return Ot.__extends(t,r),Ot.__decorate([N(),Ot.__metadata("design:type",String)],t.prototype,"position",void 0),t}(Y),z=function(r){function t(t,e,n,o,i){var a=r.call(this)||this;return a.iconURL=t,a.label=e,a.type=n,a.styleClasses=o,a.tooltip=i,a}return Ot.__extends(t,r),Ot.__decorate([H(),N(),Ot.__metadata("design:type",String)],t.prototype,"iconURL",void 0),Ot.__decorate([H(),N(),Ot.__metadata("design:type",String)],t.prototype,"label",void 0),Ot.__decorate([H(),N(),Ot.__metadata("design:type",String)],t.prototype,"type",void 0),Ot.__decorate([N(),Ot.__metadata("design:type",Array)],t.prototype,"styleClasses",void 0),Ot.__decorate([H(),N(),Ot.__metadata("design:type",String)],t.prototype,"tooltip",void 0),t}(k),q=function(d){function t(t,e,n,o,i,a,r){var s=d.call(this,t,e,"phx-calendar-view",["calendar"])||this;return s.entryMappers=a,s.fromDateTimeField=n,s.toDateTimeField=o,s.titleField=i,s.popoverTypeOption=r,s}return Ot.__extends(t,d),Ot.__decorate([N(),Ot.__metadata("design:type",Array)],t.prototype,"entryMappers",void 0),Ot.__decorate([N(),Ot.__metadata("design:type",String)],t.prototype,"fromDateTimeField",void 0),Ot.__decorate([N(),Ot.__metadata("design:type",String)],t.prototype,"toDateTimeField",void 0),Ot.__decorate([N(),Ot.__metadata("design:type",String)],t.prototype,"titleField",void 0),Ot.__decorate([N(),Ot.__metadata("design:type",Object)],t.prototype,"popoverTypeOption",void 0),t}(z),Z=function(){function t(){}return t.newCustomEvent=function(t,e,n,o){var i={};return i.type=t,i.detail={},i.detail.time=new Date,i.detail.target=e,i.detail.event=o,i.detail.data=n,i.detail.eventTarget=null==o?undefined:o.target,i.bubbles=!0,i.cancelable=!0,this.newCustomEventWithOption(i)},t.newCustomEventWithOption=function(t){return new CustomEvent(t.type,{detail:{time:t.detail.time,target:t.detail.target,event:t.detail.event,data:t.detail.data,eventTarget:t.detail.eventTarget},bubbles:t.bubbles,cancelable:t.cancelable})},t.handleBrowserEvent=function(r,t,e,n,s,o,d,l,i){if(null!==n&&n!==undefined||(n=!0),!r)throw'The parameter "component" must be specified.';if(!t)throw'The parameter "beforeEventVarName" must be specified.';var p=r[t];if(!p)throw'Could not find property "'+t+'" in the given component.';if(!(p instanceof v.EventEmitter))throw'The property "'+t+'" is not an EventEmitter.';var u="__"+t+(i?"_"+i:"")+"_subscr__",c=r[u];if(null!==c&&c!==undefined&&!(c instanceof a.Subscription))throw'The property collision detected: "'+u+'".';if(o&&"function"!=typeof o)throw'The parameter "emitBeforeEvent" must be a function.';if(d&&"function"!=typeof d)throw'The parameter "emitAfterEvent" must be a function.';if(s&&"function"!=typeof s)throw'The parameter "doEvent" must be a function.';if(l&&"function"!=typeof l)throw'The parameter "doPrevented" must be a function.';return new Promise(function(i,a){if(n)if(c&&c.unsubscribe(),r[u]=undefined,0<p.observers.length&&o)r[u]=p.subscribe(function(e){var n=e;try{n=e.detail.event}catch(o){}var t=undefined;e.defaultPrevented?l&&(t=l(n)):s&&(t=s(n)),null===t||t===undefined?t=Promise.resolve(null):t instanceof Promise||(t=Promise.resolve(t)),d&&t.then(function(t){return e.defaultPrevented||d.call(r,n,t),t}),t.then(function(t){i(t)})["catch"](function(t){a(t)})}),o.call(r,e);else{var t=undefined;s&&(t=s(e)),d&&(null===t||t===undefined?t=Promise.resolve(null):t instanceof Promise||(t=Promise.resolve(t)),t.then(function(t){d.call(r,e,t),i(t)})["catch"](function(t){a(t)}))}else if(s){t=undefined;s&&(t=s(e)),null===t||t===undefined?t=Promise.resolve(null):t instanceof Promise||(t=Promise.resolve(t)),t.then(function(t){i(t)})["catch"](function(t){a(t)})}})},t}(),X="beforeChange",Q="change",tt="beforeIndeterminateChange",et="indeterminateChange",nt="beforeShow",ot="show",it="beforeHide",at="hide",rt="beforeActivate",st="activate",dt="beforeDeactivate",lt="deactivate",pt="beforeEnable",ut="beforeDisable",ct="disable",ht="beforeClick",yt="click",ft="beforeDblClick",vt="dblClick",gt="lostFocus",mt="beforeLostFocus",_t="focus",Et="beforeFocus",bt="beforeSelect",wt="select",Ct="tabChange",Dt="tabAdd",It="tabMove",St="newTabBtnClick",xt="dataChange",Tt="beforeDataChange",Mt="dataCreate",At="dataUpdate",Rt="dataDelete",Pt="dataSchemaLoad",Ft="dataRevert",L