@ts-core/angular 11.0.84 → 11.0.88
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.
- package/bundles/ts-core-angular.umd.js +108 -88
- package/bundles/ts-core-angular.umd.js.map +1 -1
- package/bundles/ts-core-angular.umd.min.js +1 -1
- package/bundles/ts-core-angular.umd.min.js.map +1 -1
- package/esm2015/login/LoginBaseService.js +23 -42
- package/esm2015/login/LoginGuard.js +5 -4
- package/esm2015/login/LoginRequireResolver.js +2 -2
- package/esm2015/theme/ThemeAssetBackgroundDirective.js +6 -5
- package/esm2015/theme/ThemeAssetDirective.js +24 -14
- package/esm2015/theme/ThemeAssetImageDirective.js +6 -5
- package/esm2015/theme/ThemeModule.js +10 -2
- package/esm2015/user/UserBaseService.js +2 -2
- package/fesm2015/ts-core-angular.js +91 -89
- package/fesm2015/ts-core-angular.js.map +1 -1
- package/login/LoginBaseService.d.ts +3 -3
- package/login/LoginGuard.d.ts +4 -4
- package/login/LoginRequireResolver.d.ts +2 -2
- package/package.json +3 -3
- package/style/mat/bootstrap/_border.scss +4 -1
- package/theme/ThemeAssetBackgroundDirective.d.ts +2 -2
- package/theme/ThemeAssetDirective.d.ts +7 -3
- package/theme/ThemeAssetImageDirective.d.ts +2 -2
- package/theme/ThemeModule.d.ts +2 -1
- package/ts-core-angular.metadata.json +1 -1
- package/user/UserBaseService.d.ts +1 -1
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("@ts-core/common"),require("@ts-core/common/promise"),require("lodash"),require("@ts-core/frontend/asset"),require("rxjs/operators"),require("@angular/core"),require("moment"),require("numeral"),require("@angular/material/dialog"),require("@ts-core/common/observer"),require("@ts-core/common/util"),require("@ts-core/frontend/language"),require("rxjs"),require("rxjs/internal/operators"),require("@ts-core/frontend/language/LanguageService"),require("@angular/common"),require("@ts-core/common/map/dataSource"),require("@angular/forms"),require("@ts-core/common/logger"),require("@ts-core/frontend/cookie"),require("@ts-core/frontend/logger"),require("@ts-core/frontend/service"),require("ngx-cookie"),require("css-element-queries"),require("interactjs"),require("@angular/material/paginator"),require("@angular/material/button"),require("@angular/material/bottom-sheet"),require("@ts-core/common/dto"),require("@angular/platform-browser"),require("@ts-core/frontend/theme"),require("@angular/material/tabs"),require("@angular/material/list"),require("@angular/material/menu"),require("@angular/material/select"),require("@angular/material/sort"),require("@angular/material/table"),require("@angular/material/progress-bar"),require("@angular/material-moment-adapter"),require("@ts-core/common/error"),require("@ts-core/common/transport"),require("@ts-core/common/map"),require("@angular/cdk/layout"),require("@angular/router")):"function"==typeof define&&define.amd?define("@ts-core/angular",["exports","@ts-core/common","@ts-core/common/promise","lodash","@ts-core/frontend/asset","rxjs/operators","@angular/core","moment","numeral","@angular/material/dialog","@ts-core/common/observer","@ts-core/common/util","@ts-core/frontend/language","rxjs","rxjs/internal/operators","@ts-core/frontend/language/LanguageService","@angular/common","@ts-core/common/map/dataSource","@angular/forms","@ts-core/common/logger","@ts-core/frontend/cookie","@ts-core/frontend/logger","@ts-core/frontend/service","ngx-cookie","css-element-queries","interactjs","@angular/material/paginator","@angular/material/button","@angular/material/bottom-sheet","@ts-core/common/dto","@angular/platform-browser","@ts-core/frontend/theme","@angular/material/tabs","@angular/material/list","@angular/material/menu","@angular/material/select","@angular/material/sort","@angular/material/table","@angular/material/progress-bar","@angular/material-moment-adapter","@ts-core/common/error","@ts-core/common/transport","@ts-core/common/map","@angular/cdk/layout","@angular/router"],t):t(((e="undefined"!=typeof globalThis?globalThis:e||self)["ts-core"]=e["ts-core"]||{},e["ts-core"].angular={}),e["@ts-core/common"],e["@ts-core/common/promise"],e._,e["@ts-core/frontend/asset"],e.rxjs.operators,e.ng.core,e.moment,e.numeral,e.ng.material.dialog,e["@ts-core/common/observer"],e["@ts-core/common/util"],e["@ts-core/frontend/language"],e.rxjs,e.rxjs["internal/operators"],e.i2,e.ng.common,e["@ts-core/common/map/dataSource"],e.ng.forms,e["@ts-core/common/logger"],e["@ts-core/frontend/cookie"],e["@ts-core/frontend/logger"],e["@ts-core/frontend/service"],e.ngxCookie,e.cssElementQueries,e.interactjs,e.ng.material.paginator,e.ng.material.button,e.ng.material.bottomSheet,e["@ts-core/common/dto"],e.ng.platformBrowser,e["@ts-core/frontend/theme"],e.ng.material.tabs,e.ng.material.list,e.ng.material.menu,e.ng.material.select,e.ng.material.sort,e.ng.material.table,e.ng.material.progressBar,e.ng.materialMomentAdapter,e["@ts-core/common/error"],e["@ts-core/common/transport"],e["@ts-core/common/map"],e.ng.cdk.layout,e.ng.router)}(this,(function(e,t,i,n,r,o,s,a,l,c,u,p,h,d,f,g,m,y,b,v,N,E,P,_,O,I,w,C,S,D,T,k,L,M,R,x,H,A,j,W,B,z,U,F,V){"use strict";function G(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var q=G(a),Y=G(l),X=G(I),Z=function(e,t){return(Z=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])})(e,t)};function Q(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function i(){this.constructor=e}Z(e,t),e.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}function K(e,t,i,n){return new(i||(i=Promise))((function(r,o){function s(e){try{l(n.next(e))}catch(e){o(e)}}function a(e){try{l(n.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i((function(e){e(t)}))).then(s,a)}l((n=n.apply(e,t||[])).next())}))}function $(e,t){var i,n,r,o,s={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(o){return function(a){return function(o){if(i)throw new TypeError("Generator is already executing.");for(;s;)try{if(i=1,n&&(r=2&o[0]?n.return:o[0]?n.throw||((r=n.return)&&r.call(n),0):n.next)&&!(r=r.call(n,o[1])).done)return r;switch(n=0,r&&(o=[2&o[0],r.value]),o[0]){case 0:case 1:r=o;break;case 4:return s.label++,{value:o[1],done:!1};case 5:s.label++,n=o[1],o=[0];continue;case 7:o=s.ops.pop(),s.trys.pop();continue;default:if(!(r=s.trys,(r=r.length>0&&r[r.length-1])||6!==o[0]&&2!==o[0])){s=0;continue}if(3===o[0]&&(!r||o[1]>r[0]&&o[1]<r[3])){s.label=o[1];break}if(6===o[0]&&s.label<r[1]){s.label=r[1],r=o;break}if(r&&s.label<r[2]){s.label=r[2],s.ops.push(o);break}r[2]&&s.ops.pop(),s.trys.pop();continue}o=t.call(e,s)}catch(e){o=[6,e],n=0}finally{i=r=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,a])}}}Object.create;function J(e){var t="function"==typeof Symbol&&Symbol.iterator,i=t&&e[t],n=0;if(i)return i.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function ee(e,t){var i="function"==typeof Symbol&&e[Symbol.iterator];if(!i)return e;var n,r,o=i.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(n=o.next()).done;)s.push(n.value)}catch(e){r={error:e}}finally{try{n&&!n.done&&(i=o.return)&&i.call(o)}finally{if(r)throw r.error}}return s}function te(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(ee(arguments[t]));return e}Object.create;var ie=function(e){function t(t){void 0===t&&(t=NaN);var n=e.call(this)||this;return n.viewReadyDelay=t,n.makeViewReady=function(){n.viewReadyPromise.resolve(),n.viewReadyHandler(),n.checkReady()},n.viewReadyPromise=i.PromiseHandler.create(),n}return Q(t,e),t.prototype.checkReady=function(){!this.isReadyAlreadyCalled&&this.isReady()&&(this.isReadyAlreadyCalled=!0,this.readyHandler())},t.prototype.isReady=function(){return this.isViewReady},t.prototype.viewReadyHandler=function(){},t.prototype.ngAfterViewInit=function(){this.viewReadyDelay>0?i.PromiseHandler.delay(this.viewReadyDelay).then(this.makeViewReady):this.makeViewReady()},t.prototype.destroy=function(){this.isDestroyed||(e.prototype.destroy.call(this),n.isNil(this.viewReadyPromise)||(this.viewReadyPromise.reject(),this.viewReadyPromise=null),n.isNil(this.timeout)||(clearTimeout(this.timeout),this.timeout=null))},Object.defineProperty(t.prototype,"isViewReady",{get:function(){return!n.isNil(this.viewReadyPromise)&&this.viewReadyPromise.isResolved},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"viewReady",{get:function(){return n.isNil(this.viewReadyPromise)?null:this.viewReadyPromise.promise},enumerable:!1,configurable:!0}),t}(t.DestroyableContainer),ne=function(){function e(){}return e.copyToClipboard=function(){try{document.execCommand("copy")}catch(e){}},e.initialize=function(t){e.RENDERER=t},e.parseElement=function(e){return e instanceof HTMLElement?e:(e instanceof s.ViewContainerRef&&(e=e.element),n.isNil(e)?null:e.nativeElement)},e.createBase64=function(t){var i=null,n=e.createElement("canvas");e.setProperty(n,"width",t.offsetWidth),e.setProperty(n,"height",t.offsetHeight);try{n.getContext("2d").drawImage(t,0,0,t.offsetWidth,t.offsetHeight),i=(i=n.toDataURL("image/jpeg",1)).replace("data:image/jpeg;base64,","")}catch(e){}return i},e.selectContent=function(t,i){if(void 0===i&&(i=!1),t instanceof HTMLInputElement||t instanceof HTMLTextAreaElement){var r=t.disabled;r&&(t.disabled=!1),t.select(),i&&e.copyToClipboard(),r&&(t.disabled=!0)}else{var o=window.getSelection();o.removeAllRanges();var s=document.createRange();n.isNil(t)||s.selectNodeContents(t),o.addRange(s),i&&e.copyToClipboard()}},e.setBackground=function(t,i,r){if(void 0===r&&(r="repeat"),n.isNil(i))return e.removeStyle(t,"backgroundImage"),void e.removeStyle(t,"backgroundRepeat");i.includes("url(")||(i="url("+i+")"),e.setStyle(t,"backgroundImage",i),e.setStyle(t,"backgroundRepeat",r)},e.createElement=function(t,i,r){var o=e.RENDERER.createElement(t);return n.isNil(t)||e.setProperty(o,"className",i),n.isNil(r)||e.setProperty(o,"innerHTML",r),o},e.appendChild=function(t,i){n.isNil(t)||n.isNil(i)||n.isNil(e.RENDERER)||e.RENDERER.appendChild(t,i)},e.removeChild=function(t,i){n.isNil(t)||n.isNil(i)||n.isNil(e.RENDERER)||e.RENDERER.removeChild(t,i)},e.toggleChild=function(t,i,n){var r=t.contains(i);n&&!r&&e.appendChild(t,i),!n&&r&&e.removeChild(t,i)},e.getStageWidth=function(){return window.innerWidth||document.body.clientWidth},e.getStageHeight=function(){return window.innerHeight||document.body.clientHeight},e.getWidth=function(t){if(n.isNil(t))return NaN;var i=parseFloat(e.getStyle(t,"width"));return n.isNaN(i)&&(i=t.getBoundingClientRect().width),n.isNaN(i)&&(i=t.offsetWidth),i},e.setWidth=function(t,i,r){return!n.isNil(t)&&!n.isNaN(i)&&((!r||!(i<e.getMinWidth(t)||i>e.getMaxWidth(t)||i===e.getWidth(t)))&&(t.style.width="540px",e.setStyle(t,"width",i+"px"),!0))},e.getMaxWidth=function(t){if(n.isNil(t))return NaN;var i=parseFloat(e.getStyle(t,"maxWidth"));return n.isNaN(i)&&(i=Number.POSITIVE_INFINITY),i},e.getMinWidth=function(t){if(n.isNil(t))return NaN;var i=parseFloat(e.getStyle(t,"minWidth"));return n.isNaN(i)&&(i=0),i},e.getHeight=function(t){if(n.isNil(t))return NaN;var i=parseFloat(e.getStyle(t,"height"));return n.isNaN(i)&&(i=t.getBoundingClientRect().height),n.isNaN(i)&&(i=t.offsetHeight),i},e.setHeight=function(t,i,r){return!n.isNil(t)&&!n.isNaN(i)&&((!r||!(i<e.getMinHeight(t)||i>e.getMaxHeight(t)||i===e.getHeight(t)))&&(e.setStyle(t,"height",i+"px"),!0))},e.getMaxHeight=function(t){if(n.isNil(t))return NaN;var i=parseFloat(e.getStyle(t,"maxHeight"));return n.isNaN(i)&&(i=Number.POSITIVE_INFINITY),i},e.getMinHeight=function(t){if(n.isNil(t))return NaN;var i=parseFloat(e.getStyle(t,"minHeight"));return isNaN(i)&&(i=0),i},e.size=function(t,i,n,r){e.setWidth(t,i,r),e.setHeight(t,n,r)},e.getX=function(t){if(n.isNil(t))return NaN;var i=parseFloat(e.getStyle(t,"left"));return n.isNaN(i)?0:i},e.setX=function(t,i){n.isNil(t)||n.isNaN(i)||e.setStyle(t,"left",i+"px")},e.getY=function(t){if(n.isNil(t))return NaN;var i=parseFloat(e.getStyle(t,"top"));return n.isNaN(i)?0:i},e.setY=function(t,i){n.isNil(t)||n.isNaN(i)||e.setStyle(t,"top",i+"px")},e.move=function(t,i,n){e.setX(t,i),e.setY(t,n)},e.focusInput=function(e){var t=0;n.isNil(e.value)||(t=Math.max(0,e.value.toString().length)),e.focus(),e.setSelectionRange(t,t)},e.addClass=function(t,i){n.isNil(i)||(t=e.parseElement(t),n.isNil(t)||n.isNil(e.RENDERER)||e.RENDERER.addClass(t,i))},e.addClasses=function(t,i){n.isEmpty(i)||i.split(" ").forEach((function(i){return e.addClass(t,i)}))},e.removeClass=function(t,i){n.isNil(i)||(t=e.parseElement(t),n.isNil(t)||n.isNil(e.RENDERER)||e.RENDERER.removeClass(t,i))},e.removeClasses=function(t,i){n.isEmpty(i)||i.split(" ").forEach((function(i){return e.removeClass(t,i)}))},e.hasClass=function(t,i){return!n.isNil(i)&&(t=e.parseElement(t),!n.isNil(t)&&t.classList.contains(i))},e.toggleClass=function(t,i,n){n?e.addClass(t,i):e.removeClass(t,i)},e.getProperty=function(t,i){return n.isNil(i)?null:(t=e.parseElement(t),n.isNil(t)?null:t[i])},e.setProperty=function(t,i,r){n.isNil(i)||(t=e.parseElement(t),n.isNil(t)||n.isNil(e.RENDERER)||e.RENDERER.setProperty(t,i,r))},e.removeProperty=function(t,i){e.removeAttribute(t,i)},e.removeAttribute=function(t,i){n.isNil(i)||(t=e.parseElement(t),n.isNil(t)||n.isNil(e.RENDERER)||e.RENDERER.removeAttribute(t,i))},e.setAttribute=function(t,i,r){n.isNil(i)||(t=e.parseElement(t),n.isNil(t)||n.isNil(e.RENDERER)||e.RENDERER.setAttribute(t,i,r))},e.getStyle=function(t,i){return n.isNil(i)?null:(t=e.parseElement(t),n.isNil(t)?null:t.style[i])},e.setStyle=function(t,i,r,o){n.isNil(i)||(t=e.parseElement(t),n.isNil(t)||n.isNil(e.RENDERER)||r!==e.getStyle(t,i)&&e.RENDERER.setStyle(t,i,r,o))},e.removeStyle=function(t,i,r){n.isNil(i)||(t=e.parseElement(t),n.isNil(t)||n.isNil(e.RENDERER)||e.RENDERER.removeStyle(t,i,r))},e.createVideo=function(t,i){void 0===t&&(t=!0),void 0===i&&(i=!1);var n=e.createElement("video");return e.setProperty(n,"autoplay",!0),t&&e.setVideoMuteParameters(n,t),i&&e.setVideoInlineParameters(n),n},e.setVideoMuteParameters=function(e,t){void 0===t&&(t=!0),n.isNil(e)||(e.muted=e.defaultMuted=t)},e.setVideoInlineParameters=function(t){e.setAttribute(t,"webkit-playsinline",1),e.setAttribute(t,"playsinline",!0)},e.getVideoError=function(e){if(n.isNil(e)||n.isNil(e.error))return null;var t=e.error,i="Video error "+e.src+", ";switch(t.code){case MediaError.MEDIA_ERR_ABORTED:i+="media aborted";break;case MediaError.MEDIA_ERR_DECODE:i+="error to decode";break;case MediaError.MEDIA_ERR_NETWORK:i+="network error";break;case MediaError.MEDIA_ERR_SRC_NOT_SUPPORTED:i+="source not supported"}return i},e.playVideo=function(e){if(n.isNil(e))return null;try{return e.play()}catch(e){return Promise.reject(e)}},e.playAudio=function(e){if(n.isNil(e))return null;try{return e.play()}catch(e){return Promise.reject(e)}},e.pauseVideo=function(e){n.isNil(e)||e.pause()},e.isVideoPlaying=function(e){return!n.isNil(e)&&(!e.paused&&!e.ended)},e.loadVideo=function(e){n.isNil(e)||e.load()},e.stopVideoIfNeed=function(t){n.isNil(t)||n.isNil(t.src)&&n.isNil(t.srcObject)||e.stopVideo(t)},e.stopVideo=function(e){if(!n.isNil(e)){if(e.srcObject instanceof MediaStream)e.srcObject.getTracks().forEach((function(e){return e.stop()}));e.srcObject=null,e.pause(),e.src="",e.load()}},e.disposeVideo=function(t){e.stopVideo(t),e.removeChild(t.parentNode,t),t.remove()},e.disposeVideos=function(t){for(var i=t.children.length-1;i>=0;i--){var n=t.children.item(i);n instanceof HTMLVideoElement&&e.disposeVideo(n)}},e.disposeObjects=function(t,i){for(var n=t.children.length-1;n>=0;n--){var r=t.children.item(n);r instanceof HTMLObjectElement&&e.disposeObject(r,i)}},e.disposeObject=function(t,i){if(i&&4===t.readyState)for(var r in t)n.isFunction(t[r])&&(t[r]=null);e.removeChild(t.parentNode,t)},e}();ne.RENDERER=null;var re,oe,se=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return Q(i,e),i.prototype.initialize=function(){var e=this;ne.initialize(this.renderer),this.settings.initialize(this.config,this.routerParams),r.Assets.initialize(this.settings.assetsUrl),this.theme.initialize(this.settings.themes),this.language.initialize(r.Assets.languagesUrl,this.settings.languages),this.language.events.pipe(o.takeUntil(this.destroyed)).subscribe((function(i){switch(i.type){case t.LoadableEvent.COMPLETE:e.languageLoadingComplete(i.data);break;case t.LoadableEvent.ERROR:e.languageLoadingError(i.data,i.error)}}))},i.prototype.isReady=function(){return e.prototype.isReady.call(this)&&this.isLanguageLoaded},i.prototype.languageLoadingComplete=function(e){this.isLanguageLoaded=!0,this.setLocale(e),this.checkReady()},i.prototype.viewReadyHandler=function(){this.initialize()},i.prototype.setLocale=function(e){q.default.locale(e.locale),Y.default.locale(e.locale),n.isNil(this.dateAdapter)||this.dateAdapter.setLocale(e.locale)},i}(ie),ae=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return Q(i,e),i.prototype.initialize=function(){var e=this;r.Assets.initialize(this.settings.assetsUrl),ne.initialize(this.renderer),this.theme.initialize(this.settings.themes),this.language.initialize(r.Assets.languagesUrl,this.settings.languages),this.language.events.pipe(o.takeUntil(this.destroyed)).subscribe((function(i){switch(i.type){case t.LoadableEvent.COMPLETE:e.languageLoadingComplete(i.data);break;case t.LoadableEvent.ERROR:e.languageLoadingError(i.data,i.error)}}))},i.prototype.isReady=function(){return e.prototype.isReady.call(this)&&this.isLanguageLoaded},i.prototype.languageLoadingComplete=function(e){this.isLanguageLoaded=!0,this.setLocale(e),this.checkReady()},i.prototype.viewReadyHandler=function(){this.initialize()},i.prototype.setLocale=function(e){q.default.locale(e.locale),Y.default.locale(e.locale)},i}(ie),le=function(e){function t(t,i){var n=e.call(this)||this;return n.route=t,n.language=i,n.refreshText="Refresh",n.text=n.getText(),n.language.isLoaded&&n.commitLanguageProperties(),i.completed.pipe(o.takeUntil(n.destroyed)).subscribe((function(){return n.commitLanguageProperties()})),n}return Q(t,e),t.prototype.commitLanguageProperties=function(){this.language.isHasTranslation("general.refresh")&&(this.refreshText=this.language.translate("general.refresh"))},t.prototype.getText=function(){var e=this.getValue(this.route.snapshot.queryParams);return n.isNil(e)&&(e=this.getValue(this.route.snapshot.params)),e},t.prototype.getValue=function(e){var t,i;try{for(var r=J(this.getMessageFields()),o=r.next();!o.done;o=r.next()){var s=e[o.value];if(!n.isEmpty(s))return s}}catch(e){t={error:e}}finally{try{o&&!o.done&&(i=r.return)&&i.call(r)}finally{if(t)throw t.error}}return null},t.prototype.getMessageFields=function(){return["text","message","error"]},t}(t.DestroyableContainer);(re=e.QuestionMode||(e.QuestionMode={})).INFO="INFO",re.QUESTION="QUESTION",(oe=e.QuestionEvent||(e.QuestionEvent={})).YES="YES",oe.NOT="NOT",oe.CLOSE="CLOSE",oe.CHECK="CHECK",oe.UNCHECK="UNCHECK";var ce,ue=function(t){function r(r){var o=t.call(this)||this;return o._isChecked=!1,o._closePromise=i.PromiseHandler.create(),o._yesNotPromise=i.PromiseHandler.create(),o.yesText="Yes",o.notText="Not",o.closeText="Close",o.checkText="Check",o.options=n.assign({mode:e.QuestionMode.INFO,isChecked:!1,yesTextId:"general.yes",notTextId:"general.not",closeTextId:"general.close"},r),o.text=o.options.text,o.mode=o.options.mode,o}return Q(r,t),r.prototype.closeClickHandler=function(){this._closePromise.resolve()},r.prototype.yesClickHandler=function(){this._yesNotPromise.resolve(),this.closeClickHandler()},r.prototype.notClickHandler=function(){this._yesNotPromise.reject(),this.closeClickHandler()},r.prototype.destroy=function(){this.isDestroyed||(t.prototype.destroy.call(this),this.notClickHandler(),this._yesNotPromise=null,this._closePromise=null)},Object.defineProperty(r.prototype,"yesNotPromise",{get:function(){return this._yesNotPromise.promise},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"closePromise",{get:function(){return this._closePromise.promise},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"isInfo",{get:function(){return this.mode===e.QuestionMode.INFO},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"isQuestion",{get:function(){return this.mode===e.QuestionMode.QUESTION},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"isChecked",{get:function(){return this._isChecked},set:function(e){e!==this._isChecked&&(this._isChecked=e)},enumerable:!1,configurable:!0}),r}(t.Destroyable),pe=function(e){function t(){var t=e.apply(this,te(arguments))||this;return t.isOnTop=!1,t.isDisabled=!1,t.isMinimized=!1,t}return Q(t,e),t}(t.Destroyable);(ce=e.WindowEvent||(e.WindowEvent={})).OPENED="OPENED",ce.CLOSED="CLOSED",ce.CONTENT_READY="CONTENT_READY",ce.MOVED="EVENT_MOVED",ce.RESIZED="RESIZED",ce.DISABLED_CHANGED="DISABLED_CHANGED",ce.MINIMIZED_CHANGED="MINIMIZED_CHANGED",ce.SET_ON_TOP="SET_ON_TOP";var he,de=function(e){function i(t,i,r,o){void 0===t&&(t=!1),void 0===i&&(i=!1),void 0===r&&(r=NaN),void 0===o&&(o=NaN);var s=e.call(this)||this;return s.isResizeable=!1,s.isMinimizable=!1,s.isContentDragable=!0,s.x=NaN,s.y=NaN,s.defaultWidth=NaN,s.defaultMinWidth=NaN,s.defaultMaxWidth=NaN,s.defaultHeight=NaN,s.defaultMinHeight=NaN,s.defaultMaxHeight=NaN,s.paddingTop=NaN,s.paddingLeft=NaN,s.paddingRight=NaN,s.paddingBottom=NaN,s._isModal=!1,s._elementMaxX=NaN,s._elementMinX=NaN,s._elementMaxY=NaN,s._elementMinY=NaN,s._elementMinWidth=NaN,s._elementMaxWidth=NaN,s._elementMinHeight=NaN,s._elementMaxHeight=NaN,s.isModal=s.hasBackdrop=t,s.isResizeable=i,n.isNaN(r)||(s.defaultWidth=r),n.isNaN(o)||(s.defaultHeight=o),s}return Q(i,e),i.prototype.setDefaultProperties=function(){this.width=this.elementWidth,this.maxWidth=this.elementMaxWidth,this.minWidth=this.elementMinWidth,this.height=this.elementHeight,this.maxHeight=this.elementMaxHeight,this.minHeight=this.elementMinHeight},i.prototype.parseX=function(e){return e=Math.max(e,this.elementMinX),e=Math.min(e,this.elementMaxX)},i.prototype.parseY=function(e){return e=Math.max(e,this.elementMinY),e=Math.min(e,this.elementMaxY)},i.prototype.parseWidth=function(e){return e=Math.max(e,this.elementMinWidth),e=Math.min(e,this.elementMaxWidth)},i.prototype.parseHeight=function(e){return e=Math.max(e,this.elementMinHeight),e=Math.min(e,this.elementMaxHeight)},i.prototype.destroy=function(){t.IDestroyable.destroy(this.data),this.data=null},Object.defineProperty(i.prototype,"isModal",{get:function(){return this._isModal},set:function(e){e!==this._isModal&&(this._isModal=e,this.hasBackdrop=e)},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"elementMinY",{get:function(){return n.isNaN(this._elementMinY)?(this._elementMinY=0-ne.getStageHeight(),n.isNaN(this.paddingTop)||(this._elementMinY+=this.paddingTop),this._elementMinY):this._elementMinY},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"elementMaxY",{get:function(){return n.isNaN(this._elementMaxY)?(this._elementMaxY=ne.getStageHeight(),n.isNaN(this.paddingBottom)||(this._elementMaxY-=this.paddingBottom),this._elementMaxY):this._elementMaxY},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"elementMinX",{get:function(){return n.isNaN(this._elementMinX)?(this._elementMinX=-ne.getStageWidth(),n.isNaN(this.paddingLeft)||(this._elementMinX+=this.paddingLeft),this._elementMinX):this._elementMinX},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"elementMaxX",{get:function(){return n.isNaN(this._elementMaxX)?(this._elementMaxX=ne.getStageWidth(),n.isNaN(this.paddingRight)||(this._elementMaxX-=this.paddingRight),this._elementMaxX):this._elementMaxX},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"elementWidth",{get:function(){return this._elementWidth||(this._elementWidth="auto",this.defaultWidth&&(this._elementWidth=this.defaultWidth+"px")),this._elementWidth},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"elementMinWidth",{get:function(){if(!n.isNaN(this._elementMinWidth))return this._elementMinWidth;if(this._elementMinWidth=0,!n.isNaN(this.defaultMinWidth)){var e=ne.getStageWidth();n.isNaN(this.paddingLeft)||(e-=this.paddingLeft),n.isNaN(this.paddingRight)||(e-=this.paddingRight),this._elementMinWidth=Math.min(this.defaultMinWidth,e)}return this._elementMinWidth},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"elementMaxWidth",{get:function(){return n.isNaN(this._elementMaxWidth)?(this._elementMaxWidth=ne.getStageWidth(),n.isNaN(this.paddingLeft)||(this._elementMaxWidth-=this.paddingLeft),n.isNaN(this.paddingRight)||(this._elementMaxWidth-=this.paddingRight),n.isNaN(this.defaultMaxWidth)||(this._elementMaxWidth=Math.min(this.defaultMaxWidth,this._elementMaxWidth)),this._elementMaxWidth):this._elementMaxWidth},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"elementHeight",{get:function(){return this._elementHeight||(this._elementHeight="auto",this.defaultHeight&&(this._elementHeight=this.defaultHeight+"px")),this._elementHeight},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"elementMinHeight",{get:function(){if(!n.isNaN(this._elementMinHeight))return this._elementMinHeight;if(this._elementMinHeight=0,!n.isNaN(this.defaultMinHeight)){var e=ne.getStageHeight();n.isNaN(this.paddingTop)||(e-=this.paddingTop),n.isNaN(this.paddingBottom)||(e-=this.paddingBottom),this._elementMinHeight=Math.min(this.defaultMinHeight,e)}return this._elementMinHeight},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"elementMaxHeight",{get:function(){return n.isNaN(this._elementMaxHeight)?(this._elementMaxHeight=ne.getStageHeight(),n.isNaN(this.paddingTop)||(this._elementMaxHeight-=this.paddingTop),n.isNaN(this.paddingBottom)||(this._elementMaxHeight-=this.paddingBottom),n.isNaN(this.defaultMaxHeight)||(this._elementMaxHeight=Math.min(this.defaultMaxHeight,this._elementMaxHeight)),this._elementMaxHeight):this._elementMaxHeight},enumerable:!1,configurable:!0}),i}(c.MatDialogConfig);(he=e.WindowAlign||(e.WindowAlign={})).START="START",he.CENTER="CENTER",he.END="END";var fe=function(t){function i(e){var i=t.call(this)||this;return i.container=e,i.timerHandler=function(){return i.handleCloseClick()},i}return Q(i,t),i.prototype.commitNotificationProperties=function(){this.config=this.notification.config},i.prototype.commitConfigProperties=function(){this.clearTimer(),this.config.closeDuration>0&&(this.timer=setTimeout(this.timerHandler,this.config.closeDuration))},i.prototype.clearTimer=function(){n.isNil(this.timer)||(clearTimeout(this.timer),this.timer=null)},i.prototype.close=function(){n.isNil(this.notification)||this.notification.close()},i.prototype.remove=function(){n.isNil(this.notification)||this.notification.remove()},i.prototype.emit=function(e){n.isNil(this.notification)||this.notification.emit(e)},i.prototype.destroy=function(){this.isDestroyed||(t.prototype.destroy.call(this),this.clearTimer(),this.config=null,this.notification=null)},i.prototype.ngAfterViewInit=function(){this.emit(e.WindowEvent.CONTENT_READY)},i.prototype.handleCloseClick=function(){this.clearTimer(),!n.isNil(this.config)&&this.config.isRemoveAfterClose?this.remove():this.close()},Object.defineProperty(i.prototype,"data",{get:function(){return this.config?this.config.data:null},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"events",{get:function(){return this.notification?this.notification.events:null},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"notification",{get:function(){return this._notification},set:function(e){e!==this._notification&&(this._notification=e,this._notification&&this.commitNotificationProperties())},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"config",{get:function(){return this._config},set:function(e){e!==this._config&&(this._config=e,this._config&&this.commitConfigProperties())},enumerable:!1,configurable:!0}),i}(t.DestroyableContainer);fe.propDecorators={config:[{type:s.Input}]};var ge=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Q(t,e),t.prototype.commitConfigProperties=function(){var t=this;e.prototype.commitConfigProperties.call(this),this.isInfo&&ne.addClass(this.container,"mouse-active"),this.data.closePromise.then((function(){t.isDestroyed||t.remove()}))},t.prototype.clickHandler=function(){this.isInfo&&this.data.closeClickHandler()},Object.defineProperty(t.prototype,"isInfo",{get:function(){return!!this.data&&this.data.isInfo},enumerable:!1,configurable:!0}),t}(fe);ge.propDecorators={clickHandler:[{type:s.HostListener,args:["click"]}]};var me=function(e){function t(t,i,n){var r=e.call(this,t)||this;return r.language=i,r.notifications=n,ne.addClasses(t.element,"d-block"),ne.setAttribute(t.element,"tabindex","-1"),r}return Q(t,e),t.prototype.commitConfigProperties=function(){e.prototype.commitConfigProperties.call(this),this.language.isHasTranslation(this.data.options.yesTextId)&&(this.data.yesText=this.language.translate(this.data.options.yesTextId)),this.language.isHasTranslation(this.data.options.notTextId)&&(this.data.notText=this.language.translate(this.data.options.notTextId)),this.language.isHasTranslation(this.data.options.checkTextId)&&(this.data.checkText=this.language.translate(this.data.options.checkTextId)),this.language.isHasTranslation(this.data.options.closeTextId)&&(this.data.closeText=this.language.translate(this.data.options.closeTextId))},t.prototype.remove=function(){e.prototype.remove.call(this),n.isNil(this.notification)&&this.notifications.remove(this.config)},t}(ge);me.decorators=[{type:s.Component,args:[{selector:"vi-notification",template:'<p class="text m-4 text-center mouse-inactive text-word-wrap-break-word" [innerHTML]="data?.text"></p>\n\n<div class="text-center border-sm-top p-3" *ngIf="data?.isQuestion">\n\n <button class="mr-3" (click)="data?.yesClickHandler()" tabindex="-1" color="primary" mat-stroked-button>\n <span [innerHTML]="data?.yesText"></span>\n </button>\n\n <button (click)="data?.notClickHandler()" tabindex="-1" mat-stroked-button>\n <span [innerHTML]="data?.notText"></span>\n </button>\n\n</div>',styles:[":host{max-width:280px;min-width:200px;box-sizing:border-box}"]}]}],me.ctorParameters=function(){return[{type:s.ViewContainerRef},{type:h.LanguageService},{type:_e}]};var ye=function(t){function i(){var e=t.call(this)||this;return e._x=NaN,e._width=NaN,e._y=NaN,e._height=NaN,e.updatePosition=function(){return e.setPosition()},e}return Q(i,t),i.prototype.setProperties=function(){var e=this.getConfig();n.isNaN(e.defaultWidth)||(this.width=e.defaultWidth),n.isNaN(e.defaultHeight)||(this.height=e.defaultHeight)},i.prototype.setPosition=function(){var t=this.getConfig();switch(t.horizontalAlign){case e.WindowAlign.START:this.x=n.isNaN(this.paddingLeft)?0:this.paddingLeft;break;case e.WindowAlign.END:var i=ne.getStageWidth()-this.calculateWidth();n.isNaN(this.paddingRight)||(i-=this.paddingRight),this.x=i;break;default:this.x=(ne.getStageWidth()-this.calculateWidth())/2}switch(t.verticalAlign){case e.WindowAlign.START:this.y=n.isNaN(this.paddingTop)?0:this.paddingTop;break;case e.WindowAlign.END:i=ne.getStageHeight()-this.calculateHeight();n.isNaN(this.paddingBottom)||(i-=this.paddingBottom),this.y=i;break;default:this.y=(ne.getStageHeight()-this.calculateHeight())/2}},i.prototype.clearSize=function(){this._x=NaN,this._y=NaN,this._width=NaN,this._height=NaN},i.prototype.commitSizeProperties=function(){var e=n.isNaN(this.width)?"auto":this.width+"px",t=n.isNaN(this.height)?"auto":this.height+"px";this.getReference().updateSize(e,t)},i.prototype.commitPositionProperties=function(){if(!n.isNaN(this._x)||!n.isNaN(this._y)){var e={};n.isNaN(this._y)||(e.top=this._y+"px"),n.isNaN(this._x)||(e.left=this._x+"px"),this.getReference().updatePosition(e)}},i.prototype.calculateWidth=function(){return n.isNaN(this.width)?ne.getWidth(this.getContainer()):this.width},i.prototype.calculateHeight=function(){return n.isNaN(this.height)?ne.getHeight(this.getContainer()):this.height},Object.defineProperty(i.prototype,"width",{get:function(){return this._width},set:function(e){(e=this.getConfig().parseWidth(e))!==this._width&&(this._width=e,this.commitSizeProperties())},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"height",{get:function(){return this._height},set:function(e){(e=this.getConfig().parseHeight(e))!==this._height&&(this._height=e,this.commitSizeProperties())},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"x",{get:function(){return this._x},set:function(e){(e=this.getConfig().parseX(e))!==this._x&&(this._x=e,this.commitPositionProperties())},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"y",{get:function(){return this._y},set:function(e){(e=this.getConfig().parseY(e))!==this._y&&(this._y=e,this.commitPositionProperties())},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"paddingTop",{get:function(){return this.getConfig().paddingTop},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"paddingLeft",{get:function(){return this.getConfig().paddingLeft},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"paddingRight",{get:function(){return this.getConfig().paddingRight},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"paddingBottom",{get:function(){return this.getConfig().paddingBottom},enumerable:!1,configurable:!0}),i}(t.DestroyableContainer),be=function(){};(e.NotificationEvent||(e.NotificationEvent={})).REMOVED="REMOVED";var ve,Ne=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Q(t,e),t}(function(t){function i(i){var n=t.call(this)||this;return n.setClosed=function(){n.emit(e.WindowEvent.CLOSED),n.destroy()},n.setOpened=function(){n.emit(e.WindowEvent.OPENED)},n.observer=new d.Subject,n.properties=i,n.content.notification=n,n._container=n.properties.overlay.overlayElement,n.setProperties(),n.getReference().afterOpened().pipe(f.takeUntil(n.destroyed)).subscribe(n.setOpened),n.getReference().afterClosed().pipe(f.takeUntil(n.destroyed)).subscribe(n.setClosed),n.observer.pipe(f.filter((function(t){return t===e.WindowEvent.CONTENT_READY})),f.takeUntil(n.destroyed)).subscribe(n.updatePosition),n}return Q(i,t),i.prototype.setProperties=function(){t.prototype.setProperties.call(this),ne.addClass(this.container,"vi-notification")},i.prototype.getConfig=function(){return this.properties.config},i.prototype.getContainer=function(){return this.container},i.prototype.getReference=function(){return this.properties.reference},i.prototype.emit=function(e){this.observer.next(e)},i.prototype.close=function(){this.getReference().close()},i.prototype.remove=function(){this.close(),this.observer.next(e.NotificationEvent.REMOVED)},i.prototype.destroy=function(){this.isDestroyed||(t.prototype.destroy.call(this),n.isNil(this.observer)||(this.observer.complete(),this.observer=null),this.properties=null,this._container=null)},i.prototype.getWidth=function(){return this.calculateWidth()},i.prototype.getHeight=function(){return this.calculateHeight()},i.prototype.setWidth=function(e){this.width=e},i.prototype.setHeight=function(e){this.height=e},i.prototype.setSize=function(e,t){this.setWidth(e),this.setHeight(t)},i.prototype.getX=function(){return this.x},i.prototype.setX=function(e){this.x=e},i.prototype.getY=function(){return this.y},i.prototype.setY=function(e){this.y=e},i.prototype.move=function(e,t){this.setX(e),this.setY(t)},Object.defineProperty(i.prototype,"events",{get:function(){return this.observer.asObservable()},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"config",{get:function(){return this.properties.config},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"content",{get:function(){return this.properties.reference?this.properties.reference.componentInstance:null},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"container",{get:function(){return this._container},enumerable:!1,configurable:!0}),i}(ye)),Ee=function(e){function t(t){var i=e.call(this)||this;return i.closeDuration=NaN,i.isRemoveAfterClose=!1,i.data=t,i.isModal=!1,i}return Q(t,e),t}(de),Pe=function(){function e(e){this.classType=e}return e.prototype.create=function(e){return new this.classType(e)},e}(),_e=function(){function t(e,t){this.gapY=25,this.minWidth=25,this.minHeight=25,this.paddingTop=25,this.paddingLeft=25,this.paddingRight=25,this.paddingBottom=25,this.defaultCloseDuration=10*p.DateUtil.MILISECONDS_SECOND,this._configs=[],this._closedConfigs=[],this._notifications=new Map,this.dialog=e,this.language=t,this.observer=new d.Subject,this.factory=new Pe(Ne),this.questionComponent=me}return t.prototype.open=function(t,i){var r=this,o=null;if(!n.isNil(i.id)&&(o=this.getById(i.id)))return o.content;this.setDefaultProperties(i);var s=this.dialog.open(t,i),a=(o=this.factory.create({config:i,reference:s,overlay:s._overlayRef})).events.subscribe((function(t){switch(t){case e.WindowEvent.OPENED:r.add(i,s.componentInstance),r.checkPosition(o),i.sound;break;case e.WindowEvent.CLOSED:a.unsubscribe(),r.close(i);break;case e.NotificationEvent.REMOVED:a.unsubscribe(),r.remove(i)}}));return o.content},t.prototype.getById=function(e){var t=n.find(Array.from(this._notifications.values()),(function(t){return t.config.id===e}));return n.isNil(t)?null:t.notification},t.prototype.setDefaultProperties=function(t){n.isNaN(t.defaultMinWidth)&&(t.defaultMinWidth=this.minWidth),n.isNaN(t.defaultMinHeight)&&(t.defaultMinHeight=this.minHeight),n.isNaN(t.paddingTop)&&(t.paddingTop=this.paddingTop),n.isNaN(t.paddingLeft)&&(t.paddingLeft=this.paddingLeft),n.isNaN(t.paddingRight)&&(t.paddingRight=this.paddingRight),n.isNaN(t.paddingBottom)&&(t.paddingBottom=this.paddingBottom),n.isNaN(t.closeDuration)&&(t.closeDuration=this.defaultCloseDuration),t.verticalAlign=e.WindowAlign.START,t.horizontalAlign=e.WindowAlign.END,t.setDefaultProperties()},t.prototype.checkPosition=function(e){var t=this.getPrevious(e);n.isNil(t)||e.setY(t.getY()+t.getHeight()+this.gapY)},t.prototype.getPrevious=function(e){if(0===this.notifications.size)return null;for(var t=Array.from(this.notifications.values()),i=0;i<t.length;i++)if(t[i].notification===e)return 0===i?null:t[i-1].notification;return null},t.prototype.add=function(t,i){this._configs.push(t),this.observer.next(new u.ObservableData(e.NotificationServiceEvent.ADDED,t)),this._notifications.set(t,i),this.observer.next(new u.ObservableData(e.NotificationServiceEvent.OPENED,i.notification))},t.prototype.get=function(e){var t,i;if(n.isNil(e))return null;if(e instanceof Ee)return e;var r=e.toString();p.ObjectUtil.instanceOf(e,["id"])&&(r=e.id);try{for(var o=J(this.configs),s=o.next();!s.done;s=o.next()){var a=s.value;if(a.id===r)return a}}catch(e){t={error:e}}finally{try{s&&!s.done&&(i=o.return)&&i.call(o)}finally{if(t)throw t.error}}return null},t.prototype.has=function(e){return!n.isNil(this.get(e))},t.prototype.remove=function(t){var i=this.get(t);n.isNil(i)||(this.close(i),p.ArrayUtil.remove(this._configs,i),p.ArrayUtil.remove(this._closedConfigs,i),this.observer.next(new u.ObservableData(e.NotificationServiceEvent.REMOVED,i)),i.destroy())},t.prototype.removeAll=function(){var e=this;this.configs.forEach((function(t){return e.remove(t)}))},t.prototype.close=function(t){var i=this.get(t);if(n.isNil(i))return null;var r=this._notifications.get(i);return n.isNil(r)?null:(r.close(),this._notifications.delete(i),this._closedConfigs.push(i),this.observer.next(new u.ObservableData(e.NotificationServiceEvent.CLOSED,r.notification)),r.notification)},t.prototype.info=function(t,i,r,o){var s=this.language.translate(t,i),a=new ue(n.assign(r,{mode:e.QuestionMode.INFO,text:s})),l=n.assign(new Ee(a),o);return this.open(this.questionComponent,l).config.data},t.prototype.question=function(t,i,r,o){var s=this.language.translate(t,i),a=new ue(n.assign(r,{mode:e.QuestionMode.QUESTION,text:s})),l=n.assign(new Ee(a),o);return this.open(this.questionComponent,l).config.data},Object.defineProperty(t.prototype,"events",{get:function(){return this.observer.asObservable()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"configs",{get:function(){return this._configs},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"closedConfigs",{get:function(){return this._closedConfigs},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"notifications",{get:function(){return this._notifications},enumerable:!1,configurable:!0}),t}();_e.ɵprov=s.ɵɵdefineInjectable({factory:function(){return new _e(s.ɵɵinject(c.MatDialog),s.ɵɵinject(g.LanguageService))},token:_e,providedIn:"root"}),_e.decorators=[{type:s.Injectable,args:[{providedIn:"root"}]}],_e.ctorParameters=function(){return[{type:c.MatDialog},{type:h.LanguageService}]},(ve=e.NotificationServiceEvent||(e.NotificationServiceEvent={})).OPENED="OPENED",ve.CLOSED="CLOSED",ve.ADDED="ADDED",ve.REMOVED="REMOVED";var Oe,Ie=function(t){function i(e,i){var n=t.call(this)||this;return n.notifications=e,n.breakpointObserver=i,n.isNeedSide=!1,n.isHasNotifications=!1,n.isShowMenu=!0,n.isShowNotifications=!1,n}return Q(i,t),i.prototype.initialize=function(){var t=this;this.isHasNotificationsCheck(),this.notifications.events.pipe(o.filter((function(t){return t.type===e.NotificationServiceEvent.CLOSED||t.type===e.NotificationServiceEvent.REMOVED})),o.takeUntil(this.destroyed)).subscribe((function(){return t.isHasNotificationsCheck()})),this.isNeedSideCheck(),this.breakpointObserver.observe(this.sideMediaQueryToCheck).pipe(o.takeUntil(this.destroyed)).subscribe((function(){return t.isNeedSideCheck()}))},i.prototype.isHasNotificationsCheck=function(){this.isHasNotifications=!n.isEmpty(this.notificationItems),this.isHasNotifications||(this.isShowNotifications=!1)},i.prototype.isNeedSideCheck=function(){this.isNeedSide=this.breakpointObserver.isMatched(this.sideMediaQueryToCheck),this.isShowMenu=this.isNeedSide},i.prototype.toggleMenu=function(){this.isNeedSide||(this.isShowMenu=!this.isShowMenu)},i.prototype.toggleNotifications=function(){this.isShowNotifications=!this.isShowNotifications},Object.defineProperty(i.prototype,"sideMediaQueryToCheck",{get:function(){return"(min-width: 1000px)"},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"notificationItems",{get:function(){return this.notifications.closedConfigs},enumerable:!1,configurable:!0}),i}(t.DestroyableContainer),we=function(e){return n.isNil(e)||(Oe=e),Oe},Ce=function(e){function t(t){var i=e.call(this)||this;return i.element=t,i._isUrl=!1,i._isIcon=!1,i._isImage=!1,i._repeat="repeat",i._extension="png",i}return Q(t,e),t.prototype.setStyleProperties=function(){var e=this.getUrl(this.background,this.isImage,this.isIcon,this.isUrl);ne.setBackground(this.element,e,this.repeat)},t.prototype.getUrl=function(e,t,i,o){return n.isNil(e)?null:o?e:t?r.Assets.getImage(e,this.extension):i?r.Assets.getIcon(e,this.extension):r.Assets.getBackground(e,this.extension)},t.prototype.destroy=function(){this.isDestroyed||(e.prototype.destroy.call(this),this.element=null)},Object.defineProperty(t.prototype,"isIcon",{get:function(){return this._isIcon},set:function(e){e!==this._isIcon&&(this._isIcon=e,this.setStyleProperties())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isImage",{get:function(){return this._isImage},set:function(e){e!==this._isImage&&(this._isImage=e,this.setStyleProperties())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isUrl",{get:function(){return this._isUrl},set:function(e){e!==this._isUrl&&(this._isUrl=e,this.setStyleProperties())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"repeat",{get:function(){return this._repeat},set:function(e){e!==this._repeat&&(this._repeat=e,this.setStyleProperties())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"extension",{get:function(){return this._extension},set:function(e){e!==this._extension&&(this._extension=e,this.setStyleProperties())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"background",{get:function(){return this._background},set:function(e){e!==this._background&&(this._background=e,this.setStyleProperties())},enumerable:!1,configurable:!0}),t}(t.Destroyable);Ce.decorators=[{type:s.Directive,args:[{selector:"[vi-asset-background]"}]}],Ce.ctorParameters=function(){return[{type:s.ElementRef}]},Ce.propDecorators={isIcon:[{type:s.Input}],isImage:[{type:s.Input}],isUrl:[{type:s.Input}],repeat:[{type:s.Input}],extension:[{type:s.Input}],background:[{type:s.Input,args:["vi-asset-background"]}]};var Se=function(){function e(){}return e.prototype.transform=function(e,t){return void 0===t&&(t="png"),r.Assets.getBackground(e,t)},e}();Se.decorators=[{type:s.Pipe,args:[{name:"viAssetBackground"}]}];var De=function(){function e(){}return e.prototype.transform=function(e,t){return void 0===t&&(t="png"),r.Assets.getIcon(e,t)},e}();De.decorators=[{type:s.Pipe,args:[{name:"viAssetIcon"}]}];var Te=function(){function e(){}return e.prototype.transform=function(e,t){return void 0===t&&(t="png"),r.Assets.getImage(e,t)},e}();Te.decorators=[{type:s.Pipe,args:[{name:"viAssetImage"}]}];var ke=function(){function e(){}return e.prototype.transform=function(e,t){return r.Assets.getFile(e,t)},e}();ke.decorators=[{type:s.Pipe,args:[{name:"viAssetFile"}]}];var Le=function(){function e(){}return e.prototype.transform=function(e,t){return void 0===t&&(t="mp3"),r.Assets.getSound(e,t)},e}();Le.decorators=[{type:s.Pipe,args:[{name:"viAssetSound"}]}];var Me=function(){function e(){}return e.prototype.transform=function(e,t){return void 0===t&&(t="mp4"),r.Assets.getVideo(e,t)},e}();Me.decorators=[{type:s.Pipe,args:[{name:"viAssetVideo"}]}];var Re=function(){};Re.decorators=[{type:s.NgModule,args:[{imports:[m.CommonModule],declarations:[Ce,Te,De,ke,Le,Me,Se],exports:[Ce,Te,De,ke,Le,Me,Se]}]}];var xe=function(e){function t(t,i){var n=e.call(this)||this;return n.element=t,n.language=i,n._isNeedIcon=!0,n._isNeedLabel=!0,ne.addClasses(t,"d-block"),n}return Q(t,e),t.prototype.commitIsNeedLabelProperties=function(){ne.toggleClass(this.element,"no-label",!this.isNeedLabel)},t.prototype.commitIsNeedIconProperties=function(){ne.toggleClass(this.element,"no-icon",!this.isNeedLabel)},Object.defineProperty(t.prototype,"isNeedIcon",{get:function(){return this._isNeedIcon},set:function(e){e!==this._isNeedIcon&&(this._isNeedIcon=e,this.commitIsNeedIconProperties())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isNeedLabel",{get:function(){return this._isNeedLabel},set:function(e){e!==this._isNeedLabel&&(this._isNeedLabel=e,this.commitIsNeedLabelProperties())},enumerable:!1,configurable:!0}),t}(t.DestroyableContainer);xe.decorators=[{type:s.Component,args:[{selector:"vi-language-selector",template:'<mat-form-field class="d-block no-underline" [title]="\'general.locale\' | viTranslate">\n <mat-select [(ngModel)]="language.language">\n <mat-select-trigger>\n <div class="d-flex text-one-line align-items-center">\n <img class="mr-2 flex-shrink-0" style="height: 22px; width: 24px" [src]="language.language?.locale + \'Language\' | viAssetIcon:\'svg\'" *ngIf="isNeedIcon">\n <p class="text-one-line mouse-inactive flex-grow-1" [innerHTML]="language.language?.name" *ngIf="isNeedLabel"></p>\n </div>\n </mat-select-trigger>\n \n <mat-option *ngFor="let item of language.languages?.collection" [value]="item">\n <div class="d-flex text-one-line align-items-center">\n <img class="mr-2 flex-shrink-0" style="width: 24px" [src]="item.locale + \'Language\' | viAssetIcon:\'svg\'">\n <p class="text-one-line mouse-inactive flex-grow-1" [innerHTML]="item.name"></p>\n </div>\n </mat-option>\n </mat-select>\n</mat-form-field>'}]}],xe.ctorParameters=function(){return[{type:s.ElementRef},{type:h.LanguageService}]},xe.propDecorators={isNeedIcon:[{type:s.Input}],isNeedLabel:[{type:s.Input}]};var He=function(e){function i(i){var n=e.call(this)||this;return n.map=i,n.subject=new d.BehaviorSubject(i.collection),i.events.pipe(o.takeUntil(n.destroyed)).subscribe((function(e){switch(e.type){case t.LoadableEvent.COMPLETE:n.parseResponse();break;case y.DataSourceMapCollectionEvent.DATA_LOADED_AND_PARSED:n.parseParsedResponse()}})),n}return Q(i,e),i.prototype.parseResponse=function(){this.subject.next(this.map.collection)},i.prototype.parseParsedResponse=function(){},i.prototype.destroy=function(){this.isDestroyed||(e.prototype.destroy.call(this),this.subject.complete(),this.subject=null,this.map=null)},Object.defineProperty(i.prototype,"dataSource",{get:function(){return this.subject.asObservable()},enumerable:!1,configurable:!0}),i}(t.DestroyableContainer),Ae=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Q(t,e),t.getSort=function(e){if(n.isNil(e)||n.isEmpty(e.sort))return null;var t=p.ObjectUtil.keys(e.sort)[0];return{active:t,direction:e.sort[t]?"asc":"desc"}},t.applySortEvent=function(e,t){var i=void 0;return"asc"===t.direction&&(i=!0),"desc"===t.direction&&(i=!1),i!==e.sort[t.active]&&(p.ObjectUtil.clear(e.sort),e.sort[t.active]=i,!0)},t.prototype.initialize=function(){e.prototype.initialize.call(this),this._table=this.getTable()},t.prototype.getTable=function(){return new He(this)},t.prototype.sortEventHandler=function(e){t.applySortEvent(this,e)&&this.reload()},t.prototype.sortFunction=function(e,t,i){if(n.isEmpty(i.direction))return 0;var r=e[i.active]>t[i.active];return"asc"===i.direction?r?-1:1:r?1:-1},t.prototype.destroy=function(){this.isDestroyed||(e.prototype.destroy.call(this),n.isNil(this._table)||(this._table.destroy(),this._table=null))},Object.defineProperty(t.prototype,"table",{get:function(){return this._table},enumerable:!1,configurable:!0}),t}(y.FilterableDataSourceMapCollection),je=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Q(t,e),t.prototype.initialize=function(){e.prototype.initialize.call(this),this._table=this.getTable()},t.prototype.getTable=function(){return new He(this)},t.prototype.sortEventHandler=function(e){Ae.applySortEvent(this,e)&&this.load()},t.prototype.pageEventHandler=function(e){this.pageIndex=e.pageIndex,this.pageSize=e.pageSize,this.load()},t.prototype.destroy=function(){this.isDestroyed||(e.prototype.destroy.call(this),n.isNil(this._table)||(this._table.destroy(),this._table=null))},Object.defineProperty(t.prototype,"table",{get:function(){return this._table},enumerable:!1,configurable:!0}),t}(y.PaginableDataSourceMapCollection),We=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Q(t,e),t.prototype.initialize=function(){e.prototype.initialize.call(this),this._table=this.getTable()},t.prototype.getTable=function(){return new He(this)},t.prototype.sortEventHandler=function(e){Ae.applySortEvent(this,e)&&this.load()},t.prototype.destroy=function(){e.prototype.destroy.call(this),n.isNil(this._table)||(this._table.destroy(),this._table=null)},Object.defineProperty(t.prototype,"table",{get:function(){return this._table},enumerable:!1,configurable:!0}),t}(y.PaginableBookmarkDataSourceMapCollection),Be=function(e){function t(t){return t=n.assign({path:"/",domain:null,expires:null,secure:!1,httpOnly:!1},t),e.call(this,{options:t})||this}return Q(t,e),t.prototype.has=function(t){return!n.isNil(e.prototype.get.call(this,t))},t.prototype.get=function(t,i){return this.has(t)?e.prototype.get.call(this,t):i},t.prototype.getObject=function(t,i){return this.has(t)?e.prototype.getObject.call(this,t):i},t.prototype.putObject=function(t,i,n){e.prototype.putObject.call(this,t,i,n)},t.prototype.update=function(e,t,i){n.isNil(t)?this.remove(e):this.put(e,t,i)},t.prototype.updateObject=function(e,t,i){n.isNil(t)?this.remove(e):this.putObject(e,t,i)},t}(_.CookieService),ze=function(){function e(){}return e.forRoot=function(t){return{ngModule:e,providers:[{provide:Ve,useValue:t||{}},{provide:Be,deps:[Ve],useFactory:Ue}]}},e}();function Ue(e){return new Be(e)}ze.decorators=[{type:s.NgModule}];var Fe,Ve=new s.InjectionToken("COOKIE_OPTIONS"),Ge=function(){function e(e,t,i,n){var r=this;void 0===i&&(i=0),void 0===n&&(n=!1),this.element=e,this.handler=t,this.delay=i,this.isForceResize=n,this.initialize=function(){r.sensor=new O.ResizeSensor(r.element,r.resizeHandler),r.isForceResize&&r.resizeHandler()},this.callHandler=function(){r.handler()},this.resizeHandler=function(){isNaN(r.delay)||r.delay<=0?r.callHandler():(clearTimeout(r.timer),r.timer=setTimeout(r.callHandler,r.delay))},this.timer=setTimeout(this.initialize)}return e.prototype.destroy=function(){n.isNil(this.timer)||(clearTimeout(this.timer),this.timer=null),n.isNil(this.sensor)||(this.sensor.detach(this.resizeHandler),this.sensor=null),this.handler=null,this.element=null},e}(),qe=function(t){function i(i){var n=t.call(this)||this;return n._ratio=NaN,n.commitResizeProperties=function(){switch(n.direction){case e.Direction.HORIZONTAL:n.width=n.height/n.ratio;break;case e.Direction.VERTICAL:n.height=n.width*n.ratio}},n.element=ne.parseElement(i.nativeElement),n}return Q(i,t),i.prototype.ngAfterViewInit=function(){this.sensor=new Ge(this.element,this.commitResizeProperties,i.UPDATE_DELAY),n.isNaN(this.ratio)&&(this.ratio=4/3)},i.prototype.destroy=function(){this.isDestroyed||(t.prototype.destroy.call(this),this.element=null,n.isNil(this.sensor)||(this.sensor.destroy(),this.sensor=null))},Object.defineProperty(i.prototype,"width",{get:function(){return ne.getWidth(this.element)},set:function(e){ne.setWidth(this.element,e,!0)},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"height",{get:function(){return ne.getHeight(this.element)},set:function(e){ne.setHeight(this.element,e,!0)},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"direction",{get:function(){return this._direction},set:function(e){e===this._direction||n.isNil(e)||(this._direction=e,this.commitResizeProperties())},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"ratio",{get:function(){return this._ratio},set:function(e){e!==this._ratio&&(this._ratio=e,this.commitResizeProperties())},enumerable:!1,configurable:!0}),i}(t.DestroyableContainer);qe.UPDATE_DELAY=100,qe.decorators=[{type:s.Directive,args:[{selector:"[vi-aspect-ratio]"}]}],qe.ctorParameters=function(){return[{type:s.ElementRef}]},qe.propDecorators={direction:[{type:s.Input,args:["vi-aspect-ratio"]}],ratio:[{type:s.Input}]},(Fe=e.Direction||(e.Direction={})).VERTICAL="VERTICAL",Fe.HORIZONTAL="HORIZONTAL";var Ye=function(e){function t(i){var n=e.call(this)||this;return n.scrolled=new s.EventEmitter,n.delay=100,n.isInitialized=!1,n._scrollValue=0,n.scrollChanged=function(){n.scrollChangedHandler()},n.initializeHandler=function(){n.initialize()},n.element=ne.parseElement(i),n.timer=setTimeout(n.initializeHandler,t.INITIALIZATION_DELAY),n}return Q(t,e),t.prototype.initialize=function(){this.scrollValue&&this.scrollTo(this.scrollValue),this.isInitialized=!0},t.prototype.scrollTo=function(e){this._scrollValue=e,this.element.scrollTop=e},t.prototype.scrollHandler=function(){this.isInitialized&&(clearTimeout(this.timer),this.timer=setTimeout(this.scrollChanged,this.delay))},t.prototype.scrollChangedHandler=function(){this._scrollValue=this.scrollTop,this.scrolled.next(this._scrollValue)},Object.defineProperty(t.prototype,"scrollTop",{get:function(){return this.element.scrollTop},enumerable:!1,configurable:!0}),t.prototype.destroy=function(){this.isDestroyed||(e.prototype.destroy.call(this),this.element=null,this.isInitialized=!1,clearTimeout(this.timer),this.timer=null,this._scrollValue=0)},Object.defineProperty(t.prototype,"scrollValue",{get:function(){return this._scrollValue},set:function(e){e===this._scrollValue||n.isNaN(e)||(this._scrollValue=e,this.isInitialized&&this.scrollTo(e))},enumerable:!1,configurable:!0}),t}(t.Destroyable);Ye.INITIALIZATION_DELAY=1,Ye.decorators=[{type:s.Directive,args:[{selector:"[vi-scroll]"}]}],Ye.ctorParameters=function(){return[{type:s.ElementRef}]},Ye.propDecorators={scrolled:[{type:s.Output}],delay:[{type:s.Input}],scrollHandler:[{type:s.HostListener,args:["scroll"]}],scrollValue:[{type:s.Input}]};var Xe=function(e){function t(){var t=e.apply(this,te(arguments))||this;return t.top=new s.EventEmitter,t.bottom=new s.EventEmitter,t.elementHeight=50,t}return Q(t,e),t.prototype.scrollChangedHandler=function(){if(e.prototype.scrollChangedHandler.call(this),this.isInitialized){var t=this.scrollTop;t+this.clientHeight+this.elementHeight>=this.scrollHeight?this.bottom.next(t):t<=this.elementHeight&&this.top.next(t)}},t.prototype.destroy=function(){this.isDestroyed||(e.prototype.destroy.call(this),this.top=null,this.bottom=null)},Object.defineProperty(t.prototype,"clientHeight",{get:function(){return this.element.clientHeight},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"scrollHeight",{get:function(){return this.element.scrollHeight},enumerable:!1,configurable:!0}),t}(Ye);Xe.decorators=[{type:s.Directive,args:[{selector:"[vi-infinite-scroll]"}]}],Xe.propDecorators={top:[{type:s.Output}],bottom:[{type:s.Output}],elementHeight:[{type:s.Input}]};var Ze=function(e){function t(){var t=e.apply(this,te(arguments))||this;return t.triggerChanged=new s.EventEmitter,t.triggerDelta=0,t.isScrollLocked=!1,t.isNeedScroll=!0,t.isNeedRemainScroll=!1,t.checkTrigger=function(){t.isScrollLocked=!1,t.isNeedScroll?t.scrollBottom():t.isNeedRemainScroll?t.scrollRemain():t.triggerDelta>0&&(t.triggerDelta=0,t.triggerChanged.emit())},t}return Q(t,e),t.prototype.initialize=function(){this._scrollValue||(this._scrollValue=this.scrollHeight),e.prototype.initialize.call(this)},t.prototype.scrollRemain=function(){this.isNeedRemainScroll=!1,this.scrollTo(this.scrollHeight-this.lastScrollHeight)},t.prototype.scrollBottom=function(){this.scrollTo(this.scrollHeight)},t.prototype.scrollChangedHandler=function(){if(e.prototype.scrollChangedHandler.call(this),this.isInitialized&&!this.isScrollLocked){var t=this.scrollTop,i=t+this.clientHeight+this.elementHeight;this.isNeedScroll=i>=this.scrollHeight,this.isNeedRemainScroll=t<=this.elementHeight,this.isNeedRemainScroll&&(this.lastScrollHeight=this.scrollHeight)}},t.prototype.destroy=function(){this.isDestroyed||(e.prototype.destroy.call(this),clearTimeout(this.triggerTimer),this.triggerTimer=null,this.trigger=null)},Object.defineProperty(t.prototype,"trigger",{set:function(e){e!==this._trigger&&(isNaN(this._trigger)||isNaN(e)||(this.triggerDelta=e-this._trigger),this._trigger=e,this.isInitialized&&(this.isScrollLocked=!0,clearTimeout(this.triggerTimer),this.triggerTimer=setTimeout(this.checkTrigger,Xe.INITIALIZATION_DELAY)))},enumerable:!1,configurable:!0}),t}(Xe);Ze.decorators=[{type:s.Directive,args:[{selector:"[vi-auto-scroll-bottom]"}]}],Ze.propDecorators={triggerChanged:[{type:s.Output}],trigger:[{type:s.Input,args:["vi-auto-bottom-scroll"]}]};var Qe=function(e){function t(){var t=e.apply(this,te(arguments))||this;return t.selectionRemove=function(){return ne.selectContent(null)},t}return Q(t,e),t.prototype.clickHandler=function(e){ne.selectContent(this.element,!0),clearTimeout(this.selectionClearTimer),this.selectionClearTimer=setTimeout(this.selectionRemove,p.DateUtil.MILISECONDS_SECOND/2)},t.prototype.destroy=function(){this.isDestroyed||(e.prototype.destroy.call(this),this.element=null,clearTimeout(this.selectionClearTimer))},t}(t.Destroyable);Qe.decorators=[{type:s.Directive,args:[{selector:"[vi-click-to-copy]"}]}],Qe.propDecorators={element:[{type:s.Input,args:["vi-click-to-copy"]}],clickHandler:[{type:s.HostListener,args:["click",["$event"]]}]};var Ke=function(e){function t(t){var i=e.call(this)||this;return i.element=ne.parseElement(t.nativeElement),i}return Q(t,e),t.prototype.clickHandler=function(e){e.detail>=3&&ne.selectContent(this.element,!0)},t.prototype.destroy=function(){this.isDestroyed||(e.prototype.destroy.call(this),this.element=null)},t}(t.Destroyable);Ke.decorators=[{type:s.Directive,args:[{selector:"[vi-click-to-select]"}]}],Ke.ctorParameters=function(){return[{type:s.ElementRef}]},Ke.propDecorators={clickHandler:[{type:s.HostListener,args:["click",["$event"]]}]};var $e=function(e){function t(t,i){void 0===i&&(i=100);var r=e.call(this)||this;return r.focusElement=function(){n.isNil(r.element)||ne.focusInput(r.element)},r.delay=i,r.element=ne.parseElement(t),r}return Q(t,e),t.prototype.focus=function(){clearTimeout(this.timer),this.timer=setTimeout(this.focusElement,this.delay)},t.prototype.destroy=function(){this.isDestroyed||(e.prototype.destroy.call(this),n.isNil(this.timer)||(clearTimeout(this.timer),this.timer=null),this.element=null)},t}(t.Destroyable),Je=function(e){function t(t){var i=e.call(this)||this;return i.focus=function(){return i.manager.focus()},i.manager=new $e(t),i}return Q(t,e),t.prototype.destroy=function(){this.isDestroyed||(e.prototype.destroy.call(this),this.manager.destroy(),this.manager=null)},Object.defineProperty(t.prototype,"trigger",{set:function(e){this.focus()},enumerable:!1,configurable:!0}),t}(t.Destroyable);Je.decorators=[{type:s.Directive,args:[{selector:"[vi-focus]"}]}],Je.ctorParameters=function(){return[{type:s.ElementRef}]},Je.propDecorators={trigger:[{type:s.Input,args:["vi-focus"]}]};var et=function(e){function t(t){var i=e.call(this)||this;return i.element=t,i}return Q(t,e),t.prototype.focusHandler=function(){ne.selectContent(this.element.nativeElement)},t.prototype.destroy=function(){this.isDestroyed||(e.prototype.destroy.call(this),this.element=null)},t}(t.Destroyable);et.decorators=[{type:s.Directive,args:[{selector:"[vi-select-on-focus]"}]}],et.ctorParameters=function(){return[{type:s.ElementRef}]},et.propDecorators={focusHandler:[{type:s.HostListener,args:["focus"]}]};var tt=function(e){function t(t){var i=e.call(this)||this;return i.element=t,i}return Q(t,e),t.prototype.commitValueProperties=function(){var e=this.value;n.isEmpty(e)||(e=(e=e.replace(/<br\s*[\/]?>/g,"\n")).replace(/<[^>]*>/g,"")),ne.setProperty(this.element,"title",e),ne.setProperty(this.element,"innerHTML",this.value)},t.prototype.destroy=function(){this.isDestroyed||(e.prototype.destroy.call(this),this._value=null)},Object.defineProperty(t.prototype,"value",{get:function(){return this._value},set:function(e){e!==this._value&&(this._value=e,n.isNil(e)||this.commitValueProperties())},enumerable:!1,configurable:!0}),t}(t.Destroyable);tt.decorators=[{type:s.Directive,args:[{selector:"[vi-html-content-title]"}]}],tt.ctorParameters=function(){return[{type:s.ElementRef}]},tt.propDecorators={value:[{type:s.Input,args:["vi-html-content-title"]}]};var it=function(e){function t(t){var i=e.call(this)||this;i.resize=new s.EventEmitter,i.isTop=!1,i.isLeft=!1,i.isRight=!1,i.isBottom=!1,i.resizeHandler=function(e){0===e.dx&&0===e.dy||i.resize.emit(e)},i.interactable=X.default(ne.parseElement(t));var n={};return n.top=i.isTop,n.left=i.isLeft,n.right=i.isRight,n.bottom=i.isBottom,i.interactable.resizable(n),i.interactable.on("resizemove",i.resizeHandler),i}return Q(t,e),t.prototype.destroy=function(){this.isDestroyed||(e.prototype.destroy.call(this),n.isNil(this.interactable)||(this.interactable.unset(),this.interactable=null))},t}(t.Destroyable);it.decorators=[{type:s.Directive,args:[{selector:"[vi-resize]"}]}],it.ctorParameters=function(){return[{type:s.ElementRef}]},it.propDecorators={resize:[{type:s.Output}],isTop:[{type:s.Input}],isLeft:[{type:s.Input}],isRight:[{type:s.Input}],isBottom:[{type:s.Input}]};var nt=function(e){function t(t){var i=e.call(this)||this;return i.language=t,i.languageRangeLabel=function(e,t,n){var r={current:"0",total:"0"};if(0===n||0===t)r.total=n.toString();else{var o=e*t,s=o<(n=Math.max(n,0))?Math.min(o+t,n):o+t;r.current=o+1+" – "+s,r.total=n.toString()}return i.language.translate("paginator.pageRange",r)},i.commitLanguageProperties(),i.subscription=i.language.completed.subscribe((function(){return i.commitLanguageProperties()})),i}return Q(t,e),t.prototype.commitLanguageProperties=function(){this.lastPageLabel=this.language.translate("paginator.lastPage"),this.nextPageLabel=this.language.translate("paginator.nextPage"),this.firstPageLabel=this.language.translate("paginator.firstPage"),this.previousPageLabel=this.language.translate("paginator.previousPage"),this.itemsPerPageLabel=this.language.translate("paginator.itemsPerPage"),this.getRangeLabel=this.languageRangeLabel},t.prototype.ngOnDestroy=function(){n.isNil(this.subscription)||(this.subscription.unsubscribe(),this.subscription=null)},t}(w.MatPaginatorIntl),rt=function(e){function t(t){var i=e.call(this)||this;return i.language=t,i.valueUpdate=function(){i._value=i.language.translate(i.key,i.params)},t.completed.pipe(o.takeUntil(i.destroyed)).subscribe(i.valueUpdate),i}return Q(t,e),t.prototype.transform=function(e,t){return this.key=e,this.params=t,n.isNil(this._value)&&this.valueUpdate(),this._value},t.prototype.destroy=function(){this.isDestroyed||(e.prototype.destroy.call(this),this.language=null,this.key=null,this.params=null)},t}(t.DestroyableContainer);rt.decorators=[{type:s.Pipe,args:[{name:"viTranslate",pure:!1}]}],rt.ctorParameters=function(){return[{type:h.LanguageService}]};var ot=function(e){function t(t){var i=e.call(this)||this;return i.language=t,i}return Q(t,e),t.prototype.transform=function(e,t){return this.language.translate(e,t)},t.prototype.destroy=function(){this.isDestroyed||(e.prototype.destroy.call(this),this.language=null)},t}(t.DestroyableContainer);ot.decorators=[{type:s.Pipe,args:[{name:"viTranslatePure"}]}],ot.ctorParameters=function(){return[{type:h.LanguageService}]};var st=function(){function e(e){this.language=e}return e.prototype.resolve=function(e,n){if(this.language.isLoaded)return Promise.resolve();var r=i.PromiseHandler.create(),o=this.language.events.subscribe((function(e){e.type===t.LoadableEvent.COMPLETE?r.resolve():e.type===t.LoadableEvent.ERROR?r.reject(e.error.toString()):e.type===t.LoadableEvent.FINISHED&&o.unsubscribe()}));return r.promise},e}(),at=function(e){function t(t){return e.call(this,t)||this}return Q(t,e),t}(st);at.ɵprov=s.ɵɵdefineInjectable({factory:function(){return new at(s.ɵɵinject(g.LanguageService))},token:at,providedIn:"root"}),at.decorators=[{type:s.Injectable,args:[{providedIn:"root"}]}],at.ctorParameters=function(){return[{type:h.LanguageService}]};var lt=function(e){function t(t,i){var n=e.call(this)||this;return n.element=t,n.language=i,i.completed.pipe(o.takeUntil(n.destroyed)).subscribe((function(){return n.translate})),n}return Q(t,e),t.prototype.translate=function(){if(!n.isNil(this.key)){var e=this.language.translate(this.key,this.params);ne.setProperty(this.element,"innerHTML",e),this.isNeedTitle&&ne.setProperty(this.element,"title",e)}},t.prototype.destroy=function(){this.isDestroyed||(e.prototype.destroy.call(this),this.language=null,this._key=null,this._params=null)},Object.defineProperty(t.prototype,"key",{get:function(){return this._key},set:function(e){e!==this._key&&(this._key=e,n.isNil(e)||this.translate())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"params",{get:function(){return this._params},set:function(e){e!==this._params&&(this._params=e,this.translate())},enumerable:!1,configurable:!0}),t}(t.Destroyable);lt.decorators=[{type:s.Directive,args:[{selector:"[vi-translate]"}]}],lt.ctorParameters=function(){return[{type:s.ElementRef},{type:h.LanguageService}]},lt.propDecorators={isNeedTitle:[{type:s.Input}],key:[{type:s.Input,args:["vi-translate"]}],params:[{type:s.Input}]};var ct=function(e){function t(t){var i=e.call(this)||this;return i.language=t,i.valueUpdate=function(){i._value=i.language.isHasTranslation(i.key)},t.completed.pipe(o.takeUntil(i.destroyed)).subscribe(i.valueUpdate),i}return Q(t,e),t.prototype.transform=function(e){return this.key=e,n.isNil(this._value)&&this.valueUpdate(),this._value},t.prototype.destroy=function(){this.isDestroyed||(e.prototype.destroy.call(this),this.language=null,this.key=null)},t}(t.DestroyableContainer);ct.decorators=[{type:s.Pipe,args:[{name:"viTranslateHas",pure:!1}]}],ct.ctorParameters=function(){return[{type:h.LanguageService}]};var ut=function(e){function t(t){var i=e.call(this)||this;return i.language=t,i}return Q(t,e),t.prototype.transform=function(e){return this.language.isHasTranslation(e)},t.prototype.destroy=function(){this.isDestroyed||(e.prototype.destroy.call(this),this.language=null)},t}(t.DestroyableContainer);ut.decorators=[{type:s.Pipe,args:[{name:"viTranslateHasPure",pure:!0}]}],ut.ctorParameters=function(){return[{type:h.LanguageService}]};var pt=function(e){function t(t,i,n){var r=e.call(this)||this;return r.template=t,r.container=i,r.language=n,r.isOnlyIfNotEmpty=!1,n.completed.pipe(o.takeUntil(r.destroyed)).subscribe((function(){return r.check()})),r}return Q(t,e),t.prototype.check=function(){var e=!1,t=!1;if(!n.isNil(this.key)&&this.language.isHasTranslation(this.key,this.isOnlyIfNotEmpty)?n.isNil(this.view)&&(e=!0):n.isNil(this.view)||(t=!0),e)this.view=this.container.createEmbeddedView(this.template);else if(t){var i=this.container.indexOf(this.view);i>=0&&(this.container.remove(i),this.view=null)}},t.prototype.destroy=function(){this.isDestroyed||(e.prototype.destroy.call(this),this.language=null,this._key=null)},Object.defineProperty(t.prototype,"key",{get:function(){return this._key},set:function(e){e!==this._key&&(this._key=e,this.check())},enumerable:!1,configurable:!0}),t}(t.Destroyable);pt.decorators=[{type:s.Directive,args:[{selector:"[viTranslateHas]"}]}],pt.ctorParameters=function(){return[{type:s.TemplateRef},{type:s.ViewContainerRef},{type:h.LanguageService}]},pt.propDecorators={isOnlyIfNotEmpty:[{type:s.Input}],key:[{type:s.Input,args:["viTranslateHas"]}]};var ht=function(){function e(){}return e.forRoot=function(t){return{ngModule:e,providers:[{provide:ft,useValue:t||{}},{provide:h.LanguageService,deps:[Be,ft],useFactory:dt},{provide:at,deps:[h.LanguageService],useClass:at},{provide:w.MatPaginatorIntl,deps:[h.LanguageService],useClass:nt}]}},e}();function dt(e,t){return!n.isNil(t)&&n.isNil(t.service)&&(t.service=e),new h.LanguageService(t)}ht.decorators=[{type:s.NgModule,args:[{imports:[ze],declarations:[rt,ot,ct,ut,pt,lt],exports:[rt,ot,ct,ut,pt,lt]}]}];var ft=new s.InjectionToken("LANGUAGE_OPTIONS"),gt=function(){function e(e){this.classType=e}return e.prototype.create=function(e){return new this.classType(e)},e}(),mt=function(t){function i(n){var r=t.call(this)||this;return r._isBlink=!1,r._isShaking=!1,r._isOnTop=!1,r._isDisabled=!1,r._isMinimized=!1,r.isOpened=!1,r.isWasOnTop=!1,r.setClosed=function(){r.isOpened=!1,r.emit(e.WindowEvent.CLOSED),r.destroy()},r.setOpened=function(){r.isOpened=!0,r.emit(e.WindowEvent.OPENED)},r.blinkToggle=function(){r.isBlink=!r.isBlink},r.stopShaking=function(){r.isShaking=!1},r.emitResize=function(){r.emit(e.WindowEvent.RESIZED)},r.resizeHandler=function(){r.isOpened&&(clearTimeout(r.resizeTimer),r.resizeTimer=setTimeout(r.emitResize,i.RESIZE_DELAY))},r.mouseDownHandlerProxy=function(e){r.mouseDownHandler(e)},r.mouseClickHandlerProxy=function(e){r.mouseClickHandler(e)},r.observer=new d.Subject,r.properties=n,r.content.window=r,r._wrapper=r.properties.overlay.hostElement,r._backdrop=r.properties.overlay.backdropElement,r._container=r.properties.overlay.overlayElement,r.setProperties(),r.getReference().afterOpened().pipe(f.takeUntil(r.destroyed)).subscribe(r.setOpened),r.getReference().afterClosed().pipe(f.takeUntil(r.destroyed)).subscribe(r.setClosed),r.events.pipe(f.filter((function(t){return t===e.WindowEvent.CONTENT_READY})),f.takeUntil(r.destroyed)).subscribe(r.updatePosition),r}return Q(i,t),i.prototype.setProperties=function(){t.prototype.setProperties.call(this),ne.addClass(this.container,"vi-window"),ne.toggleClass(this.container,"vi-modal",this.config.isModal),this.config.isModal||(this.container.addEventListener("click",this.mouseClickHandlerProxy,!0),this.container.addEventListener("mousedown",this.mouseDownHandlerProxy))},i.prototype.commitIsBlinkProperties=function(){},i.prototype.commitIsShakingProperties=function(){},i.prototype.commitIsDisabledProperties=function(){},i.prototype.commitIsMinimizedProperties=function(){},i.prototype.getConfig=function(){return this.properties.config},i.prototype.getContainer=function(){return this.container},i.prototype.getReference=function(){return this.properties.reference},i.prototype.isNeedClickStopPropagation=function(e){return!this.isWasOnTop},i.prototype.stopBlinkIfNeed=function(){this.isBlink=!1,this.blinkTimer&&(clearInterval(this.blinkTimer),this.blinkTimer=null)},i.prototype.mouseDownHandler=function(e){this.setOnTop()},i.prototype.mouseClickHandler=function(e){this.isNeedClickStopPropagation(e)&&e.stopPropagation(),this.isWasOnTop||(this.isWasOnTop=!0)},i.prototype.emit=function(e){this.observer.next(e)},i.prototype.close=function(){this.getReference().close()},i.prototype.destroy=function(){this.isDestroyed||(t.prototype.destroy.call(this),this._container.removeEventListener("click",this.mouseClickHandlerProxy,!0),this._container.removeEventListener("mousedown",this.mouseDownHandlerProxy),n.isNil(this.content)||this.content.destroy(),n.isNil(this.observer)||(this.observer.complete(),this.observer=null),this.properties=null,this._wrapper=null,this._backdrop=null,this._container=null,clearInterval(this.blinkTimer),this.blinkTimer=null,clearInterval(this.shakeTimer),this.shakeTimer=null,clearTimeout(this.resizeTimer),this.resizeTimer=null)},i.prototype.blink=function(){clearInterval(this.blinkTimer),this.blinkTimer=setInterval(this.blinkToggle,i.BLINK_DELAY)},i.prototype.shake=function(){this.isShaking||(this.isShaking=!0,clearInterval(this.shakeTimer),this.shakeTimer=setInterval(this.stopShaking,i.SHAKE_DELAY))},i.prototype.setOnTop=function(){this.isWasOnTop=this.isOnTop,this.emit(e.WindowEvent.SET_ON_TOP)},i.prototype.getWidth=function(){return this.width},i.prototype.getHeight=function(){return this.height},i.prototype.setWidth=function(e,t){void 0===t&&(t=!0),this.width=e,t&&this.resizeHandler()},i.prototype.setHeight=function(e,t){void 0===t&&(t=!0),this.height=e,t&&this.resizeHandler()},i.prototype.setSize=function(e,t){this.setWidth(e,!1),this.setHeight(t,!1),this.resizeHandler()},i.prototype.getX=function(){return this.x},i.prototype.setX=function(t,i){void 0===i&&(i=!0),this.x=t,i&&this.emit(e.WindowEvent.MOVED)},i.prototype.getY=function(){return this.y},i.prototype.setY=function(t,i){void 0===i&&(i=!0),this.y=t,i&&this.emit(e.WindowEvent.MOVED)},i.prototype.move=function(t,i){this.setX(t,!1),this.setY(i,!1),this.emit(e.WindowEvent.MOVED)},Object.defineProperty(i.prototype,"isBlink",{get:function(){return this._isBlink},set:function(e){e!==this._isBlink&&(this._isBlink=e,this.commitIsBlinkProperties())},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"isShaking",{get:function(){return this._isShaking},set:function(e){e!==this._isShaking&&(this._isShaking=e,this.commitIsShakingProperties())},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"events",{get:function(){return this.observer.asObservable()},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"config",{get:function(){return this.properties.config},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"content",{get:function(){return this.properties.reference?this.properties.reference.componentInstance:null},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"container",{get:function(){return this._container},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"wrapper",{get:function(){return this._wrapper},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"backdrop",{get:function(){return this._backdrop},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"isOnTop",{get:function(){return this._isOnTop},set:function(e){e!==this._isOnTop&&(this._isOnTop=e,clearInterval(this.blinkTimer),this.isBlink=!1)},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"isMinimized",{get:function(){return this._isMinimized},set:function(t){t!==this._isMinimized&&(this._isMinimized=t,this.commitIsMinimizedProperties(),this.emit(e.WindowEvent.MINIMIZED_CHANGED),this.stopBlinkIfNeed())},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"isDisabled",{get:function(){return this._isDisabled},set:function(t){t!==this._isDisabled&&(this._isDisabled=t,this.commitIsDisabledProperties(),this.emit(e.WindowEvent.DISABLED_CHANGED))},enumerable:!1,configurable:!0}),i}(ye);mt.BLINK_DELAY=500,mt.SHAKE_DELAY=500,mt.RESIZE_DELAY=200;var yt=function(t){function i(i){var n=t.call(this)||this;return n._isBlink=!1,n._isDisabled=!1,n.setClosed=function(){n.emit(e.WindowEvent.CLOSED),n.destroy()},n.setOpened=function(){n.emit(e.WindowEvent.OPENED)},n.blinkToggle=function(){n.isBlink=!n.isBlink},n.mouseDownHandlerProxy=function(e){n.mouseDownHandler(e)},n.mouseClickHandlerProxy=function(e){n.mouseClickHandler(e)},n.observer=new d.Subject,n.properties=i,n.content.window=n,n._wrapper=n.properties.overlay.hostElement,n._backdrop=n.properties.overlay.backdropElement,n._container=n.properties.overlay.overlayElement,n.setProperties(),n.getReference().afterOpened().pipe(f.takeUntil(n.destroyed)).subscribe(n.setOpened),n.getReference().afterDismissed().pipe(f.takeUntil(n.destroyed)).subscribe(n.setClosed),n}return Q(i,t),i.prototype.setProperties=function(){ne.addClass(this.container,"vi-bottom-sheet"),ne.toggleClass(this.container,"vi-modal",this.config.isModal),this.config.isModal||(this.container.addEventListener("click",this.mouseClickHandlerProxy,!0),this.container.addEventListener("mousedown",this.mouseDownHandlerProxy))},i.prototype.commitIsBlinkProperties=function(){},i.prototype.commitIsDisabledProperties=function(){},i.prototype.getConfig=function(){return this.properties.config},i.prototype.getContainer=function(){return this.container},i.prototype.getReference=function(){return this.properties.reference},i.prototype.isNeedClickStopPropagation=function(e){return!1},i.prototype.stopBlinkIfNeed=function(){this.isBlink=!1,this.blinkTimer&&(clearInterval(this.blinkTimer),this.blinkTimer=null)},i.prototype.mouseDownHandler=function(e){this.setOnTop()},i.prototype.mouseClickHandler=function(e){this.isNeedClickStopPropagation(e)&&e.stopPropagation()},i.prototype.emit=function(e){this.observer.next(e)},i.prototype.close=function(){this.getReference().dismiss()},i.prototype.destroy=function(){this.isDestroyed||(t.prototype.destroy.call(this),this._container.removeEventListener("click",this.mouseClickHandlerProxy,!0),this._container.removeEventListener("mousedown",this.mouseDownHandlerProxy),n.isNil(this.content)||this.content.destroy(),n.isNil(this.observer)||(this.observer.complete(),this.observer=null),this.properties=null,this._wrapper=null,this._backdrop=null,this._container=null,clearInterval(this.blinkTimer),this.blinkTimer=null)},i.prototype.blink=function(){clearInterval(this.blinkTimer),this.blinkTimer=setInterval(this.blinkToggle,mt.BLINK_DELAY)},i.prototype.shake=function(){},i.prototype.setOnTop=function(){},i.prototype.getWidth=function(){return NaN},i.prototype.getHeight=function(){return NaN},i.prototype.setWidth=function(e,t){void 0===t&&(t=!0)},i.prototype.setHeight=function(e,t){void 0===t&&(t=!0)},i.prototype.setSize=function(e,t){},i.prototype.getX=function(){return NaN},i.prototype.setX=function(e,t){void 0===t&&(t=!0)},i.prototype.getY=function(){return NaN},i.prototype.setY=function(e,t){void 0===t&&(t=!0)},i.prototype.move=function(e,t){},Object.defineProperty(i.prototype,"reference",{get:function(){return this.properties.reference},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"isBlink",{get:function(){return this._isBlink},set:function(e){e!==this._isBlink&&(this._isBlink=e,this.commitIsBlinkProperties())},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"isShaking",{get:function(){return!1},set:function(e){},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"events",{get:function(){return this.observer.asObservable()},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"config",{get:function(){return this.properties.config},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"content",{get:function(){return n.isNil(this.reference)?null:this.reference.instance},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"container",{get:function(){return this._container},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"wrapper",{get:function(){return this._wrapper},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"backdrop",{get:function(){return this._backdrop},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"isOnTop",{get:function(){return!1},set:function(e){},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"isMinimized",{get:function(){return!1},set:function(e){},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"isDisabled",{get:function(){return this._isDisabled},set:function(t){t!==this._isDisabled&&(this._isDisabled=t,this.commitIsDisabledProperties(),this.emit(e.WindowEvent.DISABLED_CHANGED))},enumerable:!1,configurable:!0}),i}(t.DestroyableContainer);yt.BLINK_DELAY=500,yt.SHAKE_DELAY=500;var bt=function(e){function t(t){var i=e.call(this)||this;return i.element=t,i}return Q(t,e),t.prototype.checkWindowParent=function(){var e=this.getContainer();e&&ne.appendChild(e,this.element.nativeElement)},t.prototype.getContainer=function(){for(var e=ne.parseElement(this.element.nativeElement);e&&"mat-dialog-container"!==e.nodeName.toLowerCase();)e=e.parentElement;return e},t.prototype.createChildren=function(){},t.prototype.destroyChildren=function(){},t.prototype.commitWindowProperties=function(){},t.prototype.ngAfterViewInit=function(){this.createChildren(),this.checkWindowParent()},t.prototype.destroy=function(){this.isDestroyed||(e.prototype.destroy.call(this),this.destroyChildren(),this.element=null,this.window=null)},Object.defineProperty(t.prototype,"nativeElement",{get:function(){return this.element?this.element.nativeElement:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"window",{get:function(){return this._window},set:function(e){e!==this._window&&(this._window=e,this.window&&this.commitWindowProperties())},enumerable:!1,configurable:!0}),t}(t.DestroyableContainer),vt=function(e){function t(t){var i=e.call(this,t)||this;return i.mouseClickHandler=function(e){e.stopPropagation(),n.isNil(i.window)||i.window.close()},i}return Q(t,e),t.prototype.createChildren=function(){e.prototype.createChildren.call(this),n.isNil(t.ICON_VALUE)||ne.setProperty(this.nativeElement,"innerHTML",t.ICON_VALUE),n.isNil(t.ICON_CLASS)||ne.addClasses(this.nativeElement,t.ICON_CLASS),ne.addClass(this.nativeElement,"mouse-active"),this.nativeElement.addEventListener("click",this.mouseClickHandler,!0)},t.prototype.destroyChildren=function(){e.prototype.destroyChildren.call(this),this.nativeElement.removeEventListener("click",this.mouseClickHandler,!0)},t}(bt);vt.ICON_CLASS="fas fa-times",vt.ICON_VALUE=null,vt.decorators=[{type:s.Component,args:[{selector:"vi-bottom-sheet-close-element",template:"",styles:[":host{display:block;position:absolute;color:#fff;background-color:rgba(0,0,0,.4);border-radius:50%;padding:8px;font-size:14px;font-weight:700}:host:hover{background-color:rgba(0,0,0,.6)}:host.small{font-size:10px;padding:4px}"]}]}],vt.ctorParameters=function(){return[{type:s.ElementRef}]};var Nt=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Q(t,e),t.prototype.setProperties=function(){e.prototype.setProperties.call(this),this.createWindowComponents()},t.prototype.createWindowComponents=function(){if(this.content.container instanceof s.ViewContainerRef&&!this.config.disableClose&&!this.closeWindow){var e=this.resolver.resolveComponentFactory(t.CLOSE_COMPONENT);this.closeWindow=this.content.container.createComponent(e),this.closeWindow.instance.window=this}},t.prototype.commitIsBlinkProperties=function(){ne.toggleClass(this.container,this.blinkClass,this.isBlink)},t.prototype.commitIsDisabledProperties=function(){ne.toggleClass(this.container,this.disabledClass,this.isDisabled),ne.toggleClass(this.content.element,this.disabledClass,this.isDisabled),ne.toggleClass(this.content.element.nativeElement.parentElement,this.disabledClass,this.isDisabled)},t.prototype.commitIsShakingProperties=function(){ne.toggleClass(this.container,this.shakingClass,this.isShaking)},t.prototype.isNeedClickStopPropagation=function(t){return!!e.prototype.isNeedClickStopPropagation.call(this,t)&&(!this.closeWindow||this.closeWindow.location.nativeElement!==t.target)},Object.defineProperty(t.prototype,"resolver",{get:function(){return we().get(s.ComponentFactoryResolver)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"blinkClass",{get:function(){return"vi-blink"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"disabledClass",{get:function(){return"vi-disabled"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"minimizedClass",{get:function(){return"vi-minimized"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"shakingClass",{get:function(){return"shake-constant shake-horizontal"},enumerable:!1,configurable:!0}),t.prototype.destroy=function(){this.isDestroyed||(e.prototype.destroy.call(this),this.closeWindow=null)},t}(yt);Nt.CLOSE_COMPONENT=vt;var Et=function(t){function i(e){var i=t.call(this)||this;return i.container=e,i}return Q(i,t),i.prototype.commitWindowProperties=function(){this.commitConfigProperties()},i.prototype.commitConfigProperties=function(){},i.prototype.ngAfterViewInit=function(){this.emit(e.WindowEvent.CONTENT_READY)},i.prototype.ngOnDestroy=function(){},i.prototype.blink=function(){n.isNil(this.window)||this.window.blink()},i.prototype.shake=function(){n.isNil(this.window)||this.window.shake()},i.prototype.emit=function(e){n.isNil(this.window)||this.window.emit(e)},i.prototype.close=function(){n.isNil(this.window)||this.window.close()},i.prototype.destroy=function(){this.isDestroyed||(t.prototype.destroy.call(this),this.window=null,this.container=null)},Object.defineProperty(i.prototype,"data",{get:function(){return n.isNil(this.config)?null:this.config.data},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"isOnTop",{get:function(){return!n.isNil(this.window)&&this.window.isOnTop},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"isMinimized",{get:function(){return!n.isNil(this.window)&&this.window.isMinimized},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"events",{get:function(){return n.isNil(this.window)?null:this.window.events},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"isDisabled",{get:function(){return!n.isNil(this.window)&&this.window.isDisabled},set:function(e){n.isNil(this.window)||(this.window.isDisabled=e)},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"element",{get:function(){return n.isNil(this.container)?null:this.container instanceof s.ViewContainerRef?this.container.element:this.container},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"config",{get:function(){return n.isNil(this.window)?null:this.window.config},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"window",{get:function(){return this._window},set:function(e){e!==this._window&&(this._window=e,n.isNil(e)||this.commitWindowProperties())},enumerable:!1,configurable:!0}),i}(t.DestroyableContainer),Pt=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Q(t,e),t.prototype.commitConfigProperties=function(){var t=this;e.prototype.commitConfigProperties.call(this),this.data.closePromise.then((function(){t.isDestroyed||t.close()}))},t}(Et),_t=function(e){function t(t,i){var n=e.call(this,t)||this;return n.language=i,ne.addClasses(t.element,"d-block"),n}return Q(t,e),t.prototype.commitConfigProperties=function(){e.prototype.commitConfigProperties.call(this),n.isNil(this.data.text)||(this.text=this.data.text.replace(/(?:\r\n|\r|\n)/g,"<br/>")),this.language.isHasTranslation(this.data.options.yesTextId)&&(this.data.yesText=this.language.translate(this.data.options.yesTextId)),this.language.isHasTranslation(this.data.options.notTextId)&&(this.data.notText=this.language.translate(this.data.options.notTextId)),this.language.isHasTranslation(this.data.options.checkTextId)&&(this.data.checkText=this.language.translate(this.data.options.checkTextId)),this.language.isHasTranslation(this.data.options.closeTextId)&&(this.data.closeText=this.language.translate(this.data.options.closeTextId))},t}(Pt);_t.decorators=[{type:s.Component,args:[{template:'<p class="text m-4 text-center mouse-inactive text-word-wrap-break-word" [innerHTML]="text"></p>\n\n<div class="text-center border-sm-top p-3">\n\n <button (click)="data?.closeClickHandler()" mat-stroked-button *ngIf="data?.isInfo">\n <span [innerHTML]="data?.closeText"></span>\n </button>\n\n <button class="mr-3" (click)="data?.yesClickHandler()" color="primary" mat-stroked-button *ngIf="data?.isQuestion">\n <span [innerHTML]="data?.yesText"></span>\n </button>\n\n <button (click)="data?.notClickHandler()" mat-stroked-button *ngIf="data?.isQuestion">\n <span [innerHTML]="data?.notText"></span>\n </button>\n\n</div>'}]}],_t.ctorParameters=function(){return[{type:s.ViewContainerRef},{type:h.LanguageService}]};var Ot=function(e){function t(t){var i=e.call(this,t)||this;return i.mouseClickHandler=function(e){e.stopPropagation(),n.isNil(i.window)||i.window.close()},i}return Q(t,e),t.prototype.createChildren=function(){e.prototype.createChildren.call(this),n.isNil(t.ICON_VALUE)||ne.setProperty(this.nativeElement,"innerHTML",t.ICON_VALUE),n.isNil(t.ICON_CLASS)||ne.addClasses(this.nativeElement,t.ICON_CLASS),ne.addClass(this.nativeElement,"mouse-active"),this.nativeElement.addEventListener("click",this.mouseClickHandler,!0)},t.prototype.destroyChildren=function(){e.prototype.destroyChildren.call(this),this.nativeElement.removeEventListener("click",this.mouseClickHandler,!0)},t}(bt);Ot.ICON_CLASS="fas fa-times",Ot.ICON_VALUE=null,Ot.decorators=[{type:s.Component,args:[{selector:"vi-window-close-element",template:"",styles:[":host{display:block;position:absolute;color:#fff;background-color:rgba(0,0,0,.4);border-radius:50%;padding:8px;font-size:14px;font-weight:700}:host:hover{background-color:rgba(0,0,0,.6)}:host.small{font-size:10px;padding:4px}"]}]}],Ot.ctorParameters=function(){return[{type:s.ElementRef}]};var It=function(t){function i(e){var r=t.call(this,e)||this;return r.commitIconProperties=function(){var e=r.window.isMinimized?i.ICON_MAXIMIZE_VALUE:i.ICON_MINIMIZE_VALUE;ne.setProperty(r.nativeElement,"innerHTML",e)},r.mouseClickHandler=function(e){e.stopPropagation(),n.isNil(r.window)||(r.window.isMinimized=!r.window.isMinimized)},r}return Q(i,t),i.prototype.commitWindowProperties=function(){var i=this;t.prototype.commitWindowProperties.call(this),this.window.events.pipe(o.takeUntil(this.destroyed)).subscribe((function(t){t===e.WindowEvent.MINIMIZED_CHANGED&&i.commitIconProperties()}))},i.prototype.createChildren=function(){t.prototype.createChildren.call(this),n.isNil(i.ICON_MINIMIZE_VALUE)||ne.setProperty(this.nativeElement,"innerHTML",i.ICON_MINIMIZE_VALUE),n.isNil(i.ICON_CLASS)||ne.addClasses(this.nativeElement,i.ICON_CLASS),ne.addClass(this.nativeElement,"mouse-active"),this.nativeElement.addEventListener("click",this.mouseClickHandler,!0)},i.prototype.destroyChildren=function(){t.prototype.destroyChildren.call(this),this.nativeElement.removeEventListener("click",this.mouseClickHandler,!0)},i}(bt);It.ICON_CLASS=null,It.ICON_MINIMIZE_VALUE=null,It.ICON_MAXIMIZE_VALUE=null,It.decorators=[{type:s.Component,args:[{selector:"vi-window-minimize-element",template:"",styles:[":host{display:block;position:absolute;color:#fff;background-color:rgba(0,0,0,.4);border-radius:50%;padding:8px;font-size:14px;font-weight:700}:host:hover{background-color:rgba(0,0,0,.6)}:host.small{font-size:10px;padding:4px}"]}]}],It.ctorParameters=function(){return[{type:s.ElementRef}]};var wt=function(e){function t(t){var i=e.call(this,t)||this;return i.mouseClickHandler=function(e){e.stopPropagation(),n.isNil(i.window)||(i.window.isMinimized=!i.window.isMinimized)},i}return Q(t,e),t.prototype.createChildren=function(){e.prototype.createChildren.call(this),n.isNil(t.ICON_VALUE)||ne.setProperty(this.nativeElement,"innerHTML",t.ICON_VALUE),n.isNil(t.ICON_CLASS)||ne.addClasses(this.nativeElement,t.ICON_CLASS),ne.setStyle(this.nativeElement,"cursor","pointer"),this.nativeElement.addEventListener("click",this.mouseClickHandler,!0)},t.prototype.destroyChildren=function(){this.nativeElement.removeEventListener("click",this.mouseClickHandler,!0)},t}(bt);wt.ICON_CLASS="fas fa-arrows-alt",wt.ICON_VALUE=null,wt.decorators=[{type:s.Component,args:[{selector:"vi-window-resize-element",template:"",styles:[":host{display:block;position:absolute;color:#fff;background-color:rgba(0,0,0,.4);border-radius:50%;padding:8px;font-size:14px;font-weight:700}:host:hover{background-color:rgba(0,0,0,.6)}:host.small{font-size:10px;padding:4px}"]}]}],wt.ctorParameters=function(){return[{type:s.ElementRef}]};var Ct=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Q(t,e),t.prototype.setProperties=function(){e.prototype.setProperties.call(this),this.createWindowComponents()},t.prototype.createWindowComponents=function(){if(this.content.container instanceof s.ViewContainerRef){if(!this.config.disableClose&&!this.closeWindow){var e=this.resolver.resolveComponentFactory(t.CLOSE_COMPONENT);this.closeWindow=this.content.container.createComponent(e),this.closeWindow.instance.window=this}if(this.config.isResizeable&&!this.resizedWindow){e=this.resolver.resolveComponentFactory(t.RESIZE_COMPONENT);this.resizedWindow=this.content.container.createComponent(e),this.resizedWindow.instance.window=this}if(this.config.isMinimizable&&!this.minimizeWindow){e=this.resolver.resolveComponentFactory(t.MINIMIZE_COMPONENT);this.minimizeWindow=this.content.container.createComponent(e),this.minimizeWindow.instance.window=this}}},t.prototype.commitIsBlinkProperties=function(){ne.toggleClass(this.container,this.blinkClass,this.isBlink)},t.prototype.commitIsDisabledProperties=function(){ne.toggleClass(this.container,this.disabledClass,this.isDisabled),ne.toggleClass(this.content.element,this.disabledClass,this.isDisabled),ne.toggleClass(this.content.element.nativeElement.parentElement,this.disabledClass,this.isDisabled)},t.prototype.commitIsShakingProperties=function(){ne.toggleClass(this.container,this.shakingClass,this.isShaking)},t.prototype.commitIsMinimizedProperties=function(){ne.toggleClass(this.container,this.minimizedClass,this.isMinimized),ne.toggleClass(this.content.element,this.minimizedClass,this.isMinimized),ne.toggleClass(this.content.element.nativeElement.parentElement,this.minimizedClass,this.isMinimized)},t.prototype.isNeedClickStopPropagation=function(t){return!!e.prototype.isNeedClickStopPropagation.call(this,t)&&(!this.closeWindow||this.closeWindow.location.nativeElement!==t.target)},Object.defineProperty(t.prototype,"resolver",{get:function(){return we().get(s.ComponentFactoryResolver)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"blinkClass",{get:function(){return"vi-blink"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"disabledClass",{get:function(){return"vi-disabled"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"minimizedClass",{get:function(){return"vi-minimized"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"shakingClass",{get:function(){return"shake-constant shake-horizontal"},enumerable:!1,configurable:!0}),t.prototype.destroy=function(){this.isDestroyed||(e.prototype.destroy.call(this),this.closeWindow=null,this.resizedWindow=null,this.minimizeWindow=null)},t}(function(e){function t(){var t=e.apply(this,te(arguments))||this;return t.isWasDragged=!1,t}return Q(t,e),t.prototype.setProperties=function(){if(e.prototype.setProperties.call(this),!this.config.isModal&&(ne.addClass(this.container,"vi-draggable"),this.config.isContentDragable)){this.dragMoveHandlerProxy=this.dragMoveHandler.bind(this),this.dragStartHandlerProxy=this.dragStartHandler.bind(this);this.interactable.draggable({}),this.interactable.on("dragmove",this.dragMoveHandlerProxy),this.interactable.on("dragstart",this.dragStartHandlerProxy)}},t.prototype.isNeedClickStopPropagation=function(t){return this.isWasDragged||e.prototype.isNeedClickStopPropagation.call(this,t)},t.prototype.dragStartHandler=function(e){this.isWasDragged=!0},t.prototype.dragMoveHandler=function(e){var t=this.getX()+e.dx,i=this.getY()+e.dy;this.move(t,i)},t.prototype.mouseClickHandler=function(t){e.prototype.mouseClickHandler.call(this,t),this.isWasDragged=!1},t.prototype.destroy=function(){this.isDestroyed||(e.prototype.destroy.call(this),this.dragMoveHandlerProxy=null,this.dragStartHandlerProxy=null)},t}(function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Q(t,e),t.prototype.setProperties=function(){if(e.prototype.setProperties.call(this),this.config.isResizeable){ne.addClass(this.container,"vi-resizeable"),n.isNil(this.resizeMoveHandlerProxy)&&(this.resizeMoveHandlerProxy=this.resizeMoveHandler.bind(this));var t={top:!0,left:!0,right:!0,bottom:!0},i={};i.edges=t,this.interactable.resizable(i),this.interactable.on("resizemove",this.resizeMoveHandlerProxy)}},t.prototype.resizeMoveHandler=function(e){if(!this.isMinimized&&(0!==e.dx||0!==e.dy)){if(0!==e.dx){var t=this.getWidth();n.isNaN(t)&&(t=this.calculateWidth()),this.setWidth(t+e.dx,!1)}if(0!==e.dy){var i=this.getHeight();n.isNaN(i)&&(i=this.calculateHeight()),this.setHeight(i+e.dy,!1)}this.resizeHandler()}},t.prototype.destroy=function(){this.isDestroyed||(e.prototype.destroy.call(this),this.resizeMoveHandlerProxy=null,n.isNil(this._interactable)||(this._interactable.unset(),this._interactable=null))},Object.defineProperty(t.prototype,"interactable",{get:function(){return n.isNil(this._interactable)&&(this._interactable=X.default(this.container)),this._interactable},enumerable:!1,configurable:!0}),t}(mt)));Ct.CLOSE_COMPONENT=Ot,Ct.RESIZE_COMPONENT=wt,Ct.MINIMIZE_COMPONENT=It;var St=function(t){function i(i,n,r){var o=t.call(this)||this;return o.isNeedCheckPositionAfterOpen=!0,o.gapX=25,o.gapY=25,o.minWidth=100,o.minHeight=100,o.paddingTop=25,o.paddingLeft=25,o.paddingRight=25,o.paddingBottom=25,o.defaultVerticalAlign=e.WindowAlign.CENTER,o.defaultHorizontalAlign=e.WindowAlign.CENTER,o.topZIndex=999,o._windows=new Map,o.dialog=i,o.language=n,o.observer=new d.Subject,o.properties=new Tt(r),o.factory=new gt(Ct),o.questionComponent=_t,o}return Q(i,t),i.prototype.sortFunction=function(e,t){return(e.container?parseInt(ne.getStyle(e.container.parentElement,"zIndex"),10):-1)>(t.container?parseInt(ne.getStyle(t.container.parentElement,"zIndex"),10):-1)?-1:1},i.prototype.updateTop=function(){var t,i,r=0,o=null;try{for(var s=J(this.windowsArray),a=s.next();!a.done;a=s.next()){var l=a.value;if(!n.isNil(l.container)){var c=parseInt(ne.getStyle(l.container.parentElement,"zIndex"),10);r>=c||(r=c,o=l)}}}catch(e){t={error:e}}finally{try{a&&!a.done&&(i=s.return)&&i.call(s)}finally{if(t)throw t.error}}n.isNil(o)||o.isOnTop||(o.isOnTop=!0,this.observer.next(new u.ObservableData(e.WindowServiceEvent.SETTED_ON_TOP,o)))},i.prototype.setWindowOnTop=function(t){var i,r,o=this.topZIndex-2;try{for(var s=J(this.windowsArray),a=s.next();!a.done;a=s.next()){var l=a.value;if(!n.isNil(l.container)){l.isOnTop=l===t;var c=l.isOnTop?this.topZIndex:o--;ne.setStyle(l.backdrop,"zIndex",c),ne.setStyle(l.wrapper,"zIndex",c)}}}catch(e){i={error:e}}finally{try{a&&!a.done&&(r=s.return)&&r.call(s)}finally{if(i)throw i.error}}this.windowsArray.sort(this.sortFunction),this.observer.next(new u.ObservableData(e.WindowServiceEvent.SETTED_ON_TOP,t))},i.prototype.checkPosition=function(e){for(;this.hasSamePosition(e);)e.move(e.getX()+this.gapX,e.getY()+this.gapY)},i.prototype.hasSamePosition=function(e){var t=e.getX(),i=e.getY(),n=!1;return this.windowsArray.forEach((function(r){r!==e&&t===r.getX()&&i===r.getY()&&(n=!0)})),n},i.prototype.add=function(t,i){this._windows.set(t,i),this.observer.next(new u.ObservableData(e.WindowServiceEvent.OPENED,i.window))},i.prototype.remove=function(t){var i=this._windows.get(t);if(!i)return null;i.close(),this._windows.delete(t),this.observer.next(new u.ObservableData(e.WindowServiceEvent.CLOSED,i.window))},i.prototype.getById=function(e){var t=n.find(Array.from(this._windows.values()),(function(t){return t.config.id===e}));return n.isNil(t)?null:t.window},i.prototype.setDefaultProperties=function(e){e.verticalAlign||(e.verticalAlign=this.defaultVerticalAlign),e.horizontalAlign||(e.horizontalAlign=this.defaultHorizontalAlign),n.isNaN(e.defaultMinWidth)&&(e.defaultMinWidth=this.minWidth),n.isNaN(e.defaultMinHeight)&&(e.defaultMinHeight=this.minHeight),n.isNaN(e.paddingTop)&&(e.paddingTop=this.paddingTop),n.isNaN(e.paddingLeft)&&(e.paddingLeft=this.paddingLeft),n.isNaN(e.paddingRight)&&(e.paddingRight=this.paddingRight),n.isNaN(e.paddingBottom)&&(e.paddingBottom=this.paddingBottom),e.propertiesId&&this.properties.load(e.propertiesId,e),e.setDefaultProperties()},i.prototype.open=function(t,i){var r=this,o=null;if(i.id&&(o=this.getById(i.id)))return o.content;this.setDefaultProperties(i);var s=this.dialog.open(t,i),a=(o=this.factory.create({config:i,reference:s,overlay:s._overlayRef})).events.subscribe((function(t){switch(t){case e.WindowEvent.OPENED:r.add(i,s.componentInstance),r.setWindowOnTop(o),r.isNeedCheckPositionAfterOpen&&r.checkPosition(o);break;case e.WindowEvent.CLOSED:a.unsubscribe(),r.remove(i),o.isOnTop&&r.windows.size>0&&r.updateTop();break;case e.WindowEvent.RESIZED:n.isNil(i.propertiesId)||r.properties.save(i.propertiesId,o);break;case e.WindowEvent.SET_ON_TOP:r.setWindowOnTop(o)}}));return o.content},i.prototype.get=function(e){var t=e.toString();if(e instanceof de&&(t=e.id),!t)return null;var i=this.getById(t);return n.isNil(i)?null:i.content},i.prototype.has=function(e){return!n.isNil(this.get(e))},i.prototype.setOnTop=function(e){var t=this.get(e);return!!t&&(t.window.setOnTop(),!0)},i.prototype.removeAll=function(){this.windowsArray.forEach((function(e){return e.close()}))},i.prototype.destroy=function(){this.isDestroyed||(t.prototype.destroy.call(this),this.removeAll(),n.isNil(this.observer)||(this.observer.complete(),this.observer=null),n.isNil(this.properties)||(this.properties.destroy(),this.properties=null),this.factory=null,this.properties=null,this.questionComponent=null,this.dialog=null,this.language=null,this._windows=null)},i.prototype.info=function(t,i,r,o){var s=this.language.translate(t,i),a=n.assign(new de(!0,!1,450),o);return a.data=new ue(n.assign(r,{mode:e.QuestionMode.INFO,text:s})),this.open(this.questionComponent,a).config.data},i.prototype.question=function(t,i,r,o){var s=this.language.translate(t,i),a=n.assign(new de(!0,!1,450),o);return a.data=new ue(n.assign(r,{mode:e.QuestionMode.QUESTION,text:s})),this.open(this.questionComponent,a).config.data},Object.defineProperty(i.prototype,"windowsArray",{get:function(){return Array.from(this.windows.values()).map((function(e){return e.window}))},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"events",{get:function(){return this.observer.asObservable()},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"windows",{get:function(){return this._windows},enumerable:!1,configurable:!0}),i}(t.Destroyable);St.ɵprov=s.ɵɵdefineInjectable({factory:function(){return new St(s.ɵɵinject(c.MatDialog),s.ɵɵinject(g.LanguageService),s.ɵɵinject(Be))},token:St,providedIn:"root"}),St.decorators=[{type:s.Injectable,args:[{providedIn:"root"}]}],St.ctorParameters=function(){return[{type:c.MatDialog},{type:h.LanguageService},{type:Be}]};var Dt,Tt=function(e){function t(t){var i=e.call(this)||this;return i.cookies=t,i}return Q(t,e),t.prototype.load=function(e,t){var i=this.cookies.getObject(e+"Window");i&&(i.hasOwnProperty("width")&&(t.defaultWidth=i.width),i.hasOwnProperty("height")&&(t.defaultHeight=i.height))},t.prototype.save=function(e,t){this.cookies.putObject(e+"Window",{width:t.getWidth(),height:t.getHeight()})},t.prototype.destroy=function(){this.isDestroyed||(e.prototype.destroy.call(this),this.cookies=null)},t}(t.Destroyable);(Dt=e.WindowServiceEvent||(e.WindowServiceEvent={})).OPENED="OPENED",Dt.CLOSED="CLOSED",Dt.SETTED_ON_TOP="SETTED_ON_TOP";var kt=function(t){function i(e,i){var n=t.call(this)||this;return n.dialog=e,n.language=i,n.observer=new d.Subject,n.factory=new gt(Nt),n.questionComponent=_t,n}return Q(i,t),i.prototype.open=function(t,i){var n=this,r=this.dialog.open(t,i),o=this.factory.create({config:i,reference:r,overlay:r._overlayRef}),s=o.events.subscribe((function(t){switch(t){case e.WindowServiceEvent.OPENED:n.observer.next(new u.ObservableData(e.WindowServiceEvent.OPENED,o));break;case e.WindowServiceEvent.CLOSED:s.unsubscribe(),n.observer.next(new u.ObservableData(e.WindowServiceEvent.CLOSED,o))}}));return o.content},i.prototype.removeAll=function(){},i.prototype.destroy=function(){this.isDestroyed||(t.prototype.destroy.call(this),this.removeAll(),n.isNil(this.observer)||(this.observer.complete(),this.observer=null),this.factory=null,this.questionComponent=null,this.dialog=null,this.language=null)},i.prototype.info=function(t,i,r,o){var s=this.language.translate(t,i),a=n.assign(new de(!0,!1,450),o);return a.data=new ue(n.assign(r,{mode:e.QuestionMode.INFO,text:s})),this.open(this.questionComponent,a).config.data},i.prototype.question=function(t,i,r,o){var s=this.language.translate(t,i),a=n.assign(new de(!0,!1,450),o);return a.data=new ue(n.assign(r,{mode:e.QuestionMode.QUESTION,text:s})),this.open(this.questionComponent,a).config.data},Object.defineProperty(i.prototype,"events",{get:function(){return this.observer.asObservable()},enumerable:!1,configurable:!0}),i}(t.Destroyable);kt.ɵprov=s.ɵɵdefineInjectable({factory:function(){return new kt(s.ɵɵinject(S.MatBottomSheet),s.ɵɵinject(g.LanguageService))},token:kt,providedIn:"root"}),kt.decorators=[{type:s.Injectable,args:[{providedIn:"root"}]}],kt.ctorParameters=function(){return[{type:S.MatBottomSheet},{type:h.LanguageService}]};var Lt=[m.CommonModule,b.FormsModule,S.MatBottomSheetModule,C.MatButtonModule,ht],Mt=te([vt]),Rt=te(Mt),xt=function(){function e(){}return e.forRoot=function(){return{ngModule:kt,providers:[{provide:kt,deps:[S.MatBottomSheet,h.LanguageService],useClass:kt}]}},e}();xt.decorators=[{type:s.NgModule,args:[{imports:Lt,declarations:Mt,exports:Rt}]}];var Ht=[m.CommonModule,b.FormsModule,c.MatDialogModule,C.MatButtonModule,ht],At=te([me],[]),jt=te(At),Wt=function(){function e(){}return e.forRoot=function(){return{ngModule:_e,providers:[{provide:_e,deps:[c.MatDialog,h.LanguageService],useClass:_e}]}},e}();Wt.decorators=[{type:s.NgModule,args:[{imports:Ht,declarations:At,exports:jt}]}];var Bt=function(){function e(){}return e.prototype.transform=function(e){return e?n.camelCase(e):"---"},e}();Bt.decorators=[{type:s.Pipe,args:[{name:"viCamelCase"}]}],Bt.ctorParameters=function(){return[]};var zt=function(){function e(){}return e.format=function(e,t){e=Number(e);try{return Y.default(e).format(t)}catch(t){return e.toString()}},e.prototype.transform=function(t,i,r){return void 0===r&&(r=!1),t=Number(t),n.isNaN(t)?"---":(n.isNil(i)&&(i=e.DEFAULT_FORMAT),r&&(i="+"+i),e.format(t,i))},e}();zt.DEFAULT_FORMAT="0,0",zt.decorators=[{type:s.Pipe,args:[{name:"viFinance"}]}];var Ut=function(){function e(){}return e.parseMoment=function(e,t){return n.isDate(e)?q.default(e):n.isString(e)?q.default(e,t):n.isNumber(e)?q.default().milliseconds(e):e},e.fromNow=function(t,i){if(void 0===i&&(i="LLL"),n.isNil(t))return"---";var r=e.parseMoment(t),o=r.fromNow();return o=o.charAt(0).toUpperCase()+o.slice(1),n.isNil(i)||(o+=" ("+r.format(i)+")"),o},e.toConditionValue=function(t){if(!n.isNil(t)){t=t.toString();var i=e.parseMoment(D.RemoveFilterableCondition(t));return i.isValid()?""+(D.GetFilterableCondition(t)||"=")+i.toDate().toString():void 0}},e.prototype.transform=function(t,i){return n.isNil(t)?"---":e.parseMoment(t).format(i||e.DEFAULT_FORMAT)},e}();Ut.DEFAULT_FORMAT="LLL",Ut.decorators=[{type:s.Pipe,args:[{name:"viMomentDate"}]}];var Ft=function(){function e(){}return e.prototype.transform=function(t){if(n.isNaN(t))return"---";var i=Ut.parseMoment(t),r=q.default.duration(q.default().diff(i)),o=null;return o=Math.abs(r.asYears())>=1?e.YEAR_FORMAT:Math.abs(r.asMonths())>=1?e.MONTH_FORMAT:Math.abs(r.asDays())>=1?e.DAY_FORMAT:e.HOUR_FORMAT,i.format(o)},e}();Ft.HOUR_FORMAT="HH:ss",Ft.DAY_FORMAT="DD MMM HH:ss",Ft.MONTH_FORMAT="DD MMM HH:ss",Ft.YEAR_FORMAT="LLL",Ft.decorators=[{type:s.Pipe,args:[{name:"viMomentAdaptiveDate"}]}];var Vt=function(){function e(){}return e.prototype.transform=function(e,t){return Ut.fromNow(e,t)},e}();Vt.decorators=[{type:s.Pipe,args:[{name:"viMomentDateFromNow"}]}];var Gt=function(){function e(){}return e.prototype.transform=function(t,i){return n.isNil(t)?"---":q.default().startOf("day").add(t,"milliseconds").format(i||e.DEFAULT_FORMAT)},e}();Gt.DEFAULT_FORMAT="hh:mm:ss",Gt.decorators=[{type:s.Pipe,args:[{name:"viMomentTime"}]}];var qt=function(){function e(e){this.language=e}return e.prototype.transform=function(e){if(n.isNil(e))return null;var t=n.keys(e);if(n.isEmpty(t))return null;var i=t[0];return this.translateError(i,e[i])},e.prototype.translateError=function(e,t){return this.language.translate("error.form."+e,t)},e}();qt.decorators=[{type:s.Pipe,args:[{name:"viNgModelError"}]}],qt.ctorParameters=function(){return[{type:h.LanguageService}]};var Yt=function(){function e(e){this.sanitizer=e}return e.prototype.transform=function(e,t){if(void 0===t&&(t="html"),n.isNil(e))return null;switch(t){case"html":return this.sanitizer.bypassSecurityTrustHtml(e);case"style":return this.sanitizer.bypassSecurityTrustStyle(e);case"script":return this.sanitizer.bypassSecurityTrustScript(e);case"url":return this.sanitizer.bypassSecurityTrustUrl(e);case"resourceUrl":return this.sanitizer.bypassSecurityTrustResourceUrl(e);default:throw new Error("Invalid safe type specified: "+t)}},e}();Yt.decorators=[{type:s.Pipe,args:[{name:"viSanitize"}]}],Yt.ctorParameters=function(){return[{type:T.DomSanitizer}]};var Xt=function(){function e(){}return e.prototype.transform=function(e){return e?e.charAt(0).toUpperCase()+e.slice(1):"---"},e}();Xt.decorators=[{type:s.Pipe,args:[{name:"viStartCase"}]}];var Zt=function(){function e(){}return e.prototype.transform=function(t,i){return t=Number(t),n.isNaN(t)?"---":(n.isNil(i)&&(i=e.DEFAULT_FORMAT),zt.format(t/p.DateUtil.MILISECONDS_SECOND,i))},e}();Zt.DEFAULT_FORMAT="00:00:00",Zt.decorators=[{type:s.Pipe,args:[{name:"viTime"}]}];var Qt=function(){function e(){}return e.prototype.transform=function(e,t){return e?n.truncate(e,{length:t}):"---"},e}();Qt.decorators=[{type:s.Pipe,args:[{name:"viTruncate"}]}];var Kt=function(){function e(){}return e.prototype.transform=function(t){var i=n.isNil(t);return i||n.isNumber(t)||(i=n.isEmpty(t)),i?e.EMPTY_SYMBOL:t},e}();Kt.EMPTY_SYMBOL="-",Kt.decorators=[{type:s.Pipe,args:[{name:"viPrettify"}]}],Kt.ctorParameters=function(){return[]};var $t=function(e){function t(t,i){var n=e.call(this)||this;return n.theme=i,n._extension="png",n._isFile=!1,n._isImage=!1,n._isVideo=!1,n._isSound=!1,n._isBackground=!1,n.element=ne.parseElement(t.nativeElement),n.theme.changed.pipe(o.takeUntil(n.destroyed)).subscribe((function(){n.isTriedThemeDefault=!1,n.setSourceProperties()})),n}return Q(t,e),t.prototype.getSource=function(e){return n.isNil(e)?null:this.isImage?r.Assets.getImage(e,this.extension):this.isBackground?r.Assets.getBackground(e,this.extension):this.isSound?r.Assets.getSound(e,this.extension):this.isVideo?r.Assets.getVideo(e,this.extension):this.isFile?r.Assets.getFile(e,this.extension):r.Assets.getIcon(e,this.extension)},t.prototype.errorLoadingHandler=function(e){this.errorHandler(e)},t.prototype.errorHandler=function(e){this.isTriedThemeDefault||(this.isTriedThemeDefault=!0,this.source=this.getSource(this.getDefaultSourceId(this.theme.theme)),this.commitSourceProperties())},t.prototype.setSourceProperties=function(){this.source=this.getSource(this.getSourceId(this.theme.theme)),this.commitSourceProperties()},t.prototype.getSourceId=function(e){return n.isNil(e)?null:this.name+n.capitalize(e.name)},t.prototype.getDefaultSourceId=function(e){var t=this.name;return t+=e.isDark?"Dark":"Light"},t.prototype.destroy=function(){this.isDestroyed||(e.prototype.destroy.call(this),this.name=null,this.theme=null,this.element=null)},Object.defineProperty(t.prototype,"isSound",{get:function(){return this._isSound},set:function(e){e!==this._isSound&&(this._isSound=e,this.setSourceProperties())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isVideo",{get:function(){return this._isVideo},set:function(e){e!==this._isVideo&&(this._isVideo=e,this.setSourceProperties())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isFile",{get:function(){return this._isFile},set:function(e){e!==this._isFile&&(this._isFile=e,this.setSourceProperties())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isImage",{get:function(){return this._isImage},set:function(e){e!==this._isImage&&(this._isImage=e,this.setSourceProperties())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isBackground",{get:function(){return this._isBackground},set:function(e){e!==this._isBackground&&(this._isBackground=e,this.setSourceProperties())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"name",{get:function(){return this._name},set:function(e){e!==this._name&&(n.isNil(this._name)||this.removeSourceProperties(),this._name=e,n.isNil(e)||this.setSourceProperties())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"extension",{get:function(){return this._extension},set:function(e){e!==this._extension&&(this._extension=e,n.isNil(e)||this.setSourceProperties())},enumerable:!1,configurable:!0}),t}(t.Destroyable);$t.propDecorators={errorLoadingHandler:[{type:s.HostListener,args:["error",["$event"]]}],isSound:[{type:s.Input}],isVideo:[{type:s.Input}],isFile:[{type:s.Input}],isImage:[{type:s.Input}],isBackground:[{type:s.Input}],name:[{type:s.Input}],extension:[{type:s.Input}]};var Jt=function(e){function t(t,i){return e.call(this,t,i)||this}return Q(t,e),t.prototype.commitSourceProperties=function(){var e="url("+this.source+")";ne.setStyle(this.element,"backgroundImage",e)},t.prototype.removeSourceProperties=function(){ne.removeStyle(this.element,"backgroundImage")},t}($t);Jt.decorators=[{type:s.Directive,args:[{selector:"[vi-theme-background]"}]}],Jt.ctorParameters=function(){return[{type:s.ElementRef},{type:k.ThemeService}]};var ei=function(e){function t(t,i){return e.call(this,t,i)||this}return Q(t,e),t.prototype.commitSourceProperties=function(){this.element.src=this.source},t.prototype.removeSourceProperties=function(){this.element.src=null},t}($t);ei.decorators=[{type:s.Directive,args:[{selector:"[vi-theme-image]"}]}],ei.ctorParameters=function(){return[{type:s.ElementRef},{type:k.ThemeService}]};var ti=function(e){function t(t){var i=e.call(this)||this;return i.theme=t,i}return Q(t,e),t.prototype.clickHandler=function(e){var t=this.theme.themes.collection,i=t.length;if(!(i<2)){var n=0;this.theme.theme&&((n=t.indexOf(this.theme.theme))<i-1?n++:n=0),this.theme.theme=t[n]}},t.prototype.destroy=function(){this.isDestroyed||(e.prototype.destroy.call(this),this.theme=null)},t}(t.Destroyable);ti.decorators=[{type:s.Directive,args:[{selector:"[vi-theme-toggle]"}]}],ti.ctorParameters=function(){return[{type:k.ThemeService}]},ti.propDecorators={clickHandler:[{type:s.HostListener,args:["click",["$event"]]}]};var ii=function(e){function t(t,i){var n=e.call(this)||this;return n.theme=i,n.element=ne.parseElement(t.nativeElement),n.theme.changed.pipe(o.takeUntil(n.destroyed)).subscribe((function(){return n.stylePropertiesAdd()})),n}return Q(t,e),t.prototype.commitStyleProperties=function(e,t){ne.setStyle(this.element,e,t,this.flags)},t.prototype.stylePropertiesCheck=function(){this.isNeedStyleAdd()?this.stylePropertiesAdd():this.isNeedStyleRemove()&&this.stylePropertiesRemove()},t.prototype.stylePropertiesRemove=function(){ne.removeStyle(this.element,this.styleName)},t.prototype.stylePropertiesAdd=function(){this.commitStyleProperties(this.styleName,this.theme.getStyle(this.key))},t.prototype.isNeedStyleAdd=function(){return!n.isNil(this.theme.theme)&&!n.isNil(this.styleName)},t.prototype.isNeedStyleRemove=function(){return!n.isNil(this.styleName)},t.prototype.destroy=function(){this.isDestroyed||(e.prototype.destroy.call(this),this.key=null,this.theme=null,this.element=null)},Object.defineProperty(t.prototype,"flags",{get:function(){return this._flags},set:function(e){e!==this._flags&&(this._flags=e,this.stylePropertiesCheck())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"styleName",{get:function(){return this._styleName},set:function(e){e!==this._styleName&&(this._styleName=e,this.stylePropertiesCheck())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"key",{get:function(){return this._key},set:function(e){e!==this._key&&(this._key=e,n.isNil(e)||this.stylePropertiesCheck())},enumerable:!1,configurable:!0}),t}(t.Destroyable);ii.decorators=[{type:s.Directive,args:[{selector:"[vi-theme-style]"}]}],ii.ctorParameters=function(){return[{type:s.ElementRef},{type:k.ThemeService}]},ii.propDecorators={flags:[{type:s.Input}],styleName:[{type:s.Input}],key:[{type:s.Input,args:["vi-theme-style"]}]};var ni=function(e){function t(t,i){var n=e.call(this,t,i)||this;return n._isHover=!1,n.mouseEnter=function(e){n.isHover=!0},n.mouseLeave=function(e){n.isHover=!1},n.flags=s.RendererStyleFlags2.Important,n.element.addEventListener("mouseenter",n.mouseEnter,!1),n.element.addEventListener("mouseleave",n.mouseLeave,!1),n}return Q(t,e),t.prototype.isNeedStyleAdd=function(){return this.isHover&&e.prototype.isNeedStyleAdd.call(this)},t.prototype.isNeedStyleRemove=function(){return!this.isHover||e.prototype.isNeedStyleRemove.call(this)},t.prototype.destroy=function(){this.isDestroyed||(this.element.removeEventListener("mouseenter",this.mouseEnter,!1),this.element.removeEventListener("mouseleave",this.mouseLeave,!1),e.prototype.destroy.call(this))},Object.defineProperty(t.prototype,"isHover",{get:function(){return this._isHover},set:function(e){e!==this._isHover&&(this._isHover=e,this.stylePropertiesCheck())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"key",{get:function(){return e.prototype.key},set:function(t){e.prototype.key=t},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"styleName",{get:function(){return e.prototype.styleName},set:function(t){e.prototype.styleName=t},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"flags",{get:function(){return e.prototype.flags},set:function(t){e.prototype.flags=t},enumerable:!1,configurable:!0}),t}(ii);ni.decorators=[{type:s.Directive,args:[{selector:"[vi-theme-style-hover]"}]}],ni.ctorParameters=function(){return[{type:s.ElementRef},{type:k.ThemeService}]},ni.propDecorators={key:[{type:s.Input,args:["vi-theme-style-hover"]}],styleName:[{type:s.Input}],flags:[{type:s.Input}]};var ri=[ti,ei,Jt,ii,ni],oi=function(){function e(){}return e.forRoot=function(t){return{ngModule:e,providers:[{provide:ai,useValue:t||{}},{provide:k.ThemeService,deps:[Be,ai],useFactory:si}]}},e}();function si(e,t){return!n.isNil(t)&&n.isNil(t.service)&&(t.service=e),new k.ThemeService(t)}oi.decorators=[{type:s.NgModule,args:[{imports:[ze],declarations:ri,exports:ri}]}];var ai=new s.InjectionToken("THEME_OPTIONS"),li=function(e){function t(t){var i=e.call(this)||this;return i.element=t,i.dragStartHandler=function(e){i._window.dragStartHandler(e)},i.dragMoveHandler=function(e){i._window.dragMoveHandler(e)},i}return Q(t,e),t.prototype.destroy=function(){this.isDestroyed||(e.prototype.destroy.call(this),n.isNil(this._interactable)||(this._interactable.unset(),this._interactable=null),this.element=null)},t.prototype.commitWindowProperties=function(){this.window.config&&!this.window.config.isModal&&(this.interactable.draggable(!0),this.interactable.on("dragmove",this.dragMoveHandler),this.interactable.on("dragstart",this.dragStartHandler))},Object.defineProperty(t.prototype,"interactable",{get:function(){return this._interactable||(this._interactable=X.default(this.element.nativeElement)),this._interactable},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"window",{get:function(){return this._window},set:function(e){e!==this._window&&(this._window=e,this._window&&this.commitWindowProperties())},enumerable:!1,configurable:!0}),t}(t.Destroyable);li.decorators=[{type:s.Directive,args:[{selector:"[vi-window-drag-area]"}]}],li.ctorParameters=function(){return[{type:s.ElementRef}]},li.propDecorators={window:[{type:s.Input,args:["vi-window-drag-area"]}]};var ci=[m.CommonModule,b.FormsModule,C.MatButtonModule,c.MatDialogModule,ze,ht],ui=te([li],[_t,Ot,wt,It]),pi=te(ui),hi=function(){function e(){}return e.forRoot=function(){return{ngModule:e,providers:[{provide:St,deps:[c.MatDialog,h.LanguageService,Be],useClass:St}]}},e}();hi.decorators=[{type:s.NgModule,args:[{imports:ci,declarations:ui,exports:pi}]}];var di=[ze,oi,ht,Re,hi,Wt],fi=[qt,Zt,zt,Ft,Ut,Gt,Vt,Yt,Qt,Kt,Bt,Xt,Je,it,Ye,Qe,et,Ke,Xe,tt,Ze,qe],gi=function(){function e(){}return e.forRoot=function(t){return{ngModule:e,providers:te([P.LoadingService,P.NativeWindowService,{provide:bi,useValue:t||{}},{provide:v.Logger,deps:[bi],useFactory:yi}],hi.forRoot().providers,xt.forRoot().providers,Wt.forRoot().providers,ze.forRoot(t).providers,oi.forRoot(t?t.themeOptions:null).providers,ht.forRoot(t?t.languageOptions:null).providers)}},e}();gi.decorators=[{type:s.NgModule,args:[{imports:di,declarations:fi,exports:te(di,fi)}]}];var mi=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Q(t,e),t}(N.ICookieOptions);function yi(e){return new E.DefaultLogger(e&&!n.isNil(e.loggerLevel)?e.loggerLevel:v.LoggerLevel.LOG)}var bi=new s.InjectionToken("VI_ANGULAR_OPTIONS"),vi=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Q(t,e),t}(t.DestroyableContainer);vi.decorators=[{type:s.Component,args:[{selector:"vi-menu-list",template:'<ng-container *ngFor="let item of list?.filtered">\n <button mat-menu-item [ngClass]="item.className" (click)="list?.actionItem(item)">\n <span [ngClass]="item.iconId" *ngIf="item.iconId"></span>\n <span [innerHTML]="item.label" [title]="item.label"></span>\n </button>\n</ng-container>\n'}]}],vi.propDecorators={list:[{type:s.Input}]};var Ni=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Q(t,e),t}(t.DestroyableContainer);Ni.decorators=[{type:s.Component,args:[{selector:"vi-select-list",template:'<ng-container *ngFor="let item of list?.collection">\n\n <mat-list-item [ngClass]="item.isSelected? item.selectedClassName : item.className" *ngIf="item.isEnabled" (click)="list.actionItem(item)" >\n <span [ngClass]="item.iconId" *ngIf="item.iconId" matListIcon></span>\n <span [innerHTML]="item.label" [title]="item.label" matLine></span>\n </mat-list-item>\n\n</ng-container>\n'}]}],Ni.propDecorators={list:[{type:s.Input}]};var Ei=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Q(t,e),t.prototype.commitListProperties=function(){},t.prototype.selectedTabChange=function(e){if(!n.isNil(this.list)){var t=e.index;if(!(t<0||t>=this.list.length)){var i=this.list.collection[t];this.list.selectedItem=i,this.list.actionItem(i)}}},t.prototype.destroy=function(){this.isDestroyed||(e.prototype.destroy.call(this),this.list=null)},Object.defineProperty(t.prototype,"list",{get:function(){return this._list},set:function(e){e!==this._list&&(this._list=e,n.isNil(e)||this.commitListProperties())},enumerable:!1,configurable:!0}),t}(t.DestroyableContainer);Ei.decorators=[{type:s.Component,args:[{selector:"vi-tab-group",template:'<mat-tab-group [ngClass]="className" (selectedIndexChange)="list.selectedIndex = $event" [selectedIndex]="list?.selectedIndex"\n (selectedTabChange)="selectedTabChange($event)">\n <ng-container *ngFor="let item of list?.collection">\n <mat-tab [ngClass]="item.className" [label]="item.label" [disabled]="!item.isEnabled" (click)="list?.actionItem(item)"></mat-tab>\n </ng-container>\n</mat-tab-group>\n'}]}],Ei.propDecorators={className:[{type:s.Input}],list:[{type:s.Input}]};var Pi=function(e){function t(){var t=e.call(this)||this;return t._columnNames=[],t.settings={},t.rowClicked=new s.EventEmitter,t.cellClicked=new s.EventEmitter,t}return Q(t,e),t.prototype.commitTableProperties=function(){var e=Ae.getSort(this.table);n.isNil(e)||(this.sortActive=e.active,this.sortDirection=e.direction),this.table.isDirty||this.table.reload()},t.prototype.commitColumnsProperties=function(){var e;(e=n.isEmpty(this.columns)?[]:this.columns.map((function(e){return e.name})))!==this._columnNames&&(this._columnNames=e)},t.prototype.commitSelectedRowsProperties=function(){this._selectedRow=n.isEmpty(this.selectedRows)||1!==this.selectedRows.length?null:this.selectedRows[0]},t.prototype.commitSettingsProperties=function(){n.isNil(this.settings.noDataId)&&(this.settings.noDataId="general.noDataFound"),n.isNil(this.settings.isInteractive)&&(this.settings.isInteractive=!0),n.isNil(this.rows)&&!n.isEmpty(this.settings.rows)&&(this.rows=this.settings.rows),n.isNil(this.columns)&&!n.isEmpty(this.settings.columns)&&(this.columns=this.settings.columns)},t.prototype.commitRowProperties=function(){},t.prototype.columnTrackBy=function(e,t){return t.name},t.prototype.destroy=function(){this.isDestroyed||(e.prototype.destroy.call(this),this.table=null,this.selectedRows=null,n.isNil(this.cellClicked)||(this.cellClicked.complete(),this.cellClicked=null),n.isNil(this.rowClicked)||(this.rowClicked.complete(),this.rowClicked=null))},t.prototype.cellClickHandler=function(e,t){this.cellClicked.emit({data:e,column:t.name})},Object.defineProperty(t.prototype,"table",{get:function(){return this._table},set:function(e){e!==this._table&&(this._table=e,n.isNil(e)||this.commitTableProperties())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"selectedRows",{get:function(){return this._selectedRows},set:function(e){e!==this._selectedRows&&(this._selectedRows=e,this.commitSelectedRowsProperties())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"selectedRow",{get:function(){return this._selectedRow},set:function(e){e!==this._selectedRow&&(this.selectedRows=n.isNil(e)?[]:[e])},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"rows",{get:function(){return this._rows},set:function(e){e!==this._rows&&(this._rows=e,n.isNil(e)||this.commitRowProperties())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"columns",{get:function(){return this._columns},set:function(e){e!==this._columns&&(this._columns=e,n.isNil(e)||this.commitColumnsProperties())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"settings",{get:function(){return this._settings},set:function(e){e!==this._settings&&(this._settings=e,n.isNil(e)||this.commitSettingsProperties())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"columnNames",{get:function(){return this._columnNames},enumerable:!1,configurable:!0}),t}(t.DestroyableContainer);Pi.propDecorators={rowClicked:[{type:s.Output}],cellClicked:[{type:s.Output}],table:[{type:s.Input}],selectedRows:[{type:s.Input}],selectedRow:[{type:s.Input}],rows:[{type:s.Input}],columns:[{type:s.Input}],settings:[{type:s.Input}]};var _i=function(e){function t(t){var i=e.call(this)||this;return ne.addClasses(t,"d-flex flex-column scroll-no"),i._paginator={pageSizes:[10,25,100],hidePageSize:!1,showFirstLastButtons:!0},i}return Q(t,e),t.prototype.commitPaginatorProperties=function(){},Object.defineProperty(t.prototype,"paginator",{get:function(){return this._paginator},set:function(e){e!==this._paginator&&(this._paginator=e,n.isNil(e)||this.commitPaginatorProperties())},enumerable:!1,configurable:!0}),t}(Pi);_i.decorators=[{type:s.Component,args:[{selector:"vi-cdk-table-paginable",template:'<mat-table\n class="flex-grow-1 vertical-scroll-only"\n matSort\n [dataSource]="table?.table?.dataSource"\n [trackBy]="table.trackByFn"\n [matSortActive]="sortActive"\n [matSortDirection]="sortDirection"\n [class.mat-nav-list]="settings?.isInteractive"\n (matSortChange)="table.sortEventHandler($event)"\n>\n <ng-container *ngFor="let column of columns; trackBy: columnTrackBy">\n <ng-container [matColumnDef]="column.name">\n <mat-header-cell\n class="px-2"\n mat-sort-header\n [disableClear]="true"\n [disabled]="column.isDisableSort"\n [ngClass]="column.headerClassName"\n *matHeaderCellDef\n >\n <span [innerHTML]="column.headerId | viTranslate"></span>\n </mat-header-cell>\n\n <mat-cell\n class="px-2"\n (click)="cellClickHandler(row, column)"\n *matCellDef="let row"\n [ngClass]="row | viCdkTableColumnClassName: column"\n [ngStyle]="row | viCdkTableColumnStyleName: column"\n >\n <span [ngClass]="column | viCdkTableCellClassName" [vi-html-content-title]="row | viCdkTableColumnValue: column"></span>\n </mat-cell>\n </ng-container>\n </ng-container>\n\n <mat-header-row *matHeaderRowDef="columnNames"></mat-header-row>\n\n <mat-row\n class="mat-list-item"\n *matRowDef="let row; columns: columnNames"\n [ngClass]="row | viCdkTableRowClassName: rows:selectedRows"\n [ngStyle]="row | viCdkTableRowStyleName: rows:selectedRows"\n (click)="rowClicked.emit(row)"\n ></mat-row>\n\n <p class="p-3 flex-shrink-0 text-center mouse-inactive" [vi-translate]="settings?.noDataId" *matNoDataRow></p>\n \n</mat-table>\n\n\x3c!--\n<p class="p-3 flex-shrink-0 text-center mouse-inactive" *ngIf="table?.length === 0" [innerHTML]="settings?.noDataId | viTranslate"></p>\n--\x3e\n\n<mat-progress-bar class="flex-shrink-0 border" [mode]="table?.isLoading ? \'indeterminate\' : \'determinate\'"></mat-progress-bar>\n\n<div class="paginator-container d-flex align-items-center justify-content-end flex-shrink-0">\n <ng-content></ng-content>\n <mat-paginator\n class="flex-shrink-0"\n [pageSize]="table?.pageSize"\n [pageIndex]="table?.pageIndex"\n [length]="table?.total"\n (page)="table?.pageEventHandler($event)"\n [pageSizeOptions]="paginator?.pageSizes"\n [showFirstLastButtons]="paginator?.showFirstLastButtons"\n [hidePageSize]="paginator?.hidePageSize"\n *ngIf="paginator && table?.length > 0"\n ></mat-paginator>\n</div>\n'}]}],_i.ctorParameters=function(){return[{type:s.ViewContainerRef}]},_i.propDecorators={paginator:[{type:s.Input}]};var Oi=function(e){function t(t){var i=e.call(this)||this;return ne.addClasses(t,"d-flex flex-column scroll-no"),i}return Q(t,e),t}(Pi);Oi.decorators=[{type:s.Component,args:[{selector:"vi-cdk-table-filterable",template:'<mat-table\n class="flex-grow-1 vertical-scroll-only"\n matSort\n [dataSource]="table?.table?.dataSource"\n [matSortActive]="sortActive"\n [matSortDirection]="sortDirection"\n [class.mat-nav-list]="settings?.isInteractive"\n (matSortChange)="table.sortEventHandler($event)"\n>\n <ng-container *ngFor="let column of columns; trackBy: columnTrackBy">\n <ng-container [matColumnDef]="column.name">\n <mat-header-cell\n class="px-2"\n mat-sort-header\n [disableClear]="true"\n [disabled]="column.isDisableSort"\n [ngClass]="column.headerClassName"\n *matHeaderCellDef\n >\n <span [innerHTML]="column.headerId | viTranslate"></span>\n </mat-header-cell>\n <mat-cell\n class="px-2"\n (click)="cellClickHandler(row, column)"\n *matCellDef="let row"\n [ngClass]="row | viCdkTableColumnClassName: column"\n [ngStyle]="row | viCdkTableColumnStyleName: column"\n >\n <span [ngClass]="column | viCdkTableCellClassName" [vi-html-content-title]="row | viCdkTableColumnValue: column"></span>\n </mat-cell>\n </ng-container>\n </ng-container>\n\n <mat-header-row *matHeaderRowDef="columnNames"></mat-header-row>\n\n <mat-row\n class="mat-list-item"\n *matRowDef="let row; columns: columnNames"\n [ngClass]="row | viCdkTableRowClassName: rows:selectedRows"\n [ngStyle]="row | viCdkTableRowStyleName: rows:selectedRows"\n (click)="rowClicked.emit(row)"\n ></mat-row>\n\n <p class="p-3 flex-shrink-0 text-center mouse-inactive" [vi-translate]="settings?.noDataId" *matNoDataRow></p>\n</mat-table>\n\n<mat-progress-bar class="flex-shrink-0 border transparent" [mode]="table?.isLoading ? \'indeterminate\' : \'determinate\'"></mat-progress-bar>\n'}]}],Oi.ctorParameters=function(){return[{type:s.ViewContainerRef}]};var Ii=function(){function e(){}return e.prototype.transform=function(e,t){return n.isNil(t)||n.isNil(t.format)?e[t.name]:t.format(e,t)},e}();Ii.decorators=[{type:s.Pipe,args:[{name:"viCdkTableColumnValue"}]}];var wi=function(){function e(){}return e.prototype.transform=function(e,t){return n.isNil(t)||n.isNil(t.styleName)?null:t.styleName(e,t)},e}();wi.decorators=[{type:s.Pipe,args:[{name:"viCdkTableColumnStyleName"}]}];var Ci=function(){function e(){}return e.prototype.transform=function(e,t){return n.isNil(t)||n.isNil(t.className)?null:n.isString(t.className)?t.className:t.className(e,t)},e}();Ci.decorators=[{type:s.Pipe,args:[{name:"viCdkTableColumnClassName"}]}];var Si=function(){function e(){}return e.prototype.transform=function(e,t,i){return n.isNil(t)||n.isNil(t.className)?null:n.isString(t.className)?t.className:t.className(e,i)},e}();Si.decorators=[{type:s.Pipe,args:[{name:"viCdkTableRowClassName"}]}];var Di=function(){function e(){}return e.prototype.transform=function(e,t,i,r){return n.isNil(t)||n.isNil(t.styleName)?null:t.styleName(e,i)},e}();Di.decorators=[{type:s.Pipe,args:[{name:"viCdkTableRowStyleName"}]}];var Ti=function(){function e(){}return e.prototype.transform=function(e){return e.isMultiline?"text-multi-line":"text-one-line"},e}();Ti.decorators=[{type:s.Pipe,args:[{name:"viCdkTableCellClassName"}]}];var ki=[m.CommonModule,b.FormsModule,L.MatTabsModule,M.MatListModule,R.MatMenuModule,x.MatSelectModule,C.MatButtonModule,H.MatSortModule,A.MatTableModule,w.MatPaginatorModule,j.MatProgressBarModule,gi],Li=[],Mi=te([Ii,Ci,wi,Di,Si,Ti,xe,Ei,vi,Ni,_i,Oi],Li),Ri=te(Mi),xi=function(){};xi.decorators=[{type:s.NgModule,args:[{imports:ki,declarations:Mi,exports:Ri,entryComponents:Li}]}];var Hi,Ai=function(){},ji=function(e){var t=e.validate.bind(e);return"function"==typeof t?function(e){return t(e)}:e},Wi=function(e){return n.isEmpty(e)?null:b.Validators.compose(e.map(ji))},Bi=function(e,t){if(!t)return"Validation failed: "+e.toString();switch(t){case"required":return"Please enter a value";case"pattern":return"Value does not match required pattern";case"minlength":return"Value must be N characters";case"maxlength":return"Value must be a maximum of N characters"}var i=e[t];switch(typeof i){case"string":return i;default:return"Validation failed: "+t}},zi=function(e){function t(){var t=e.call(this)||this;return t.changed=[],t.touched=[],t}return Q(t,e),t.prototype.valueChanged=function(){var e=this;this.changed.forEach((function(t){return t(e.innerValue)}))},t.prototype.touch=function(){this.touched.forEach((function(e){return e()}))},t.prototype.writeValue=function(e){this.value=e},t.prototype.registerOnChange=function(e){this.changed.push(e)},t.prototype.registerOnTouched=function(e){this.touched.push(e)},t.prototype.destroy=function(){this.isDestroyed||(e.prototype.destroy.call(this),this.changed=null,this.touched=null)},Object.defineProperty(t.prototype,"value",{get:function(){return this.innerValue},set:function(e){e!=this.innerValue&&(this.innerValue=e,this.valueChanged())},enumerable:!1,configurable:!0}),t}(t.Destroyable),Ui=function(e){function t(t,i){var n=e.call(this)||this;return n.validators=t,n.asyncValidators=i,n}return Q(t,e),t.prototype.validate=function(){return(e=this.validators,t=this.asyncValidators,function(i){var n=function(){return Wi(e)(i)};return t?Wi(t)(i).map((function(e){var t=n();if(t||e)return Object.assign({},t,e)})):e?d.of(n()):d.of(null)})(this.model.control);var e,t},Object.defineProperty(t.prototype,"invalid",{get:function(){return this.validate().pipe(o.map((function(e){return Object.keys(e||{}).length>0})))},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"failures",{get:function(){return this.validate().pipe(o.map((function(e){return Object.keys(e).map((function(t){return Bi(e,t)}))})))},enumerable:!1,configurable:!0}),t}(zi),Fi=function(e){function t(t){var i=e.call(this)||this;return i.validators=t,i.validate=function(){var e,t;if(!i.validators||0===i.validators.length)return i._validationError=null,null;var n=null;try{for(var r=J(i.validators),o=r.next();!o.done;o=r.next()){var s=o.value;if(n="function"==typeof s?s(i.model.control):s.validate(i.model.control))break}}catch(t){e={error:t}}finally{try{o&&!o.done&&(t=r.return)&&t.call(r)}finally{if(e)throw e.error}}return i._validationError=n?Bi(n,Object.keys(n)[0]):null,n},i.isErrorState=function(e,t){return i.invalid},i}return Q(t,e),t.prototype.valueChanged=function(){e.prototype.valueChanged.call(this),setTimeout(this.validate)},Object.defineProperty(t.prototype,"valid",{get:function(){return!this.invalid},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"invalid",{get:function(){return null!=this._validationError},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"validationError",{get:function(){return this._validationError},enumerable:!1,configurable:!0}),t.prototype.ngAfterContentInit=function(){this.validate()},t.prototype.ngOnDestroy=function(){clearTimeout(this.timer),this.timer=null},t}(zi),Vi=function(e){function t(t){var i=e.call(this,t.locale)||this;return t.completed.subscribe((function(e){i.setLocale(e.locale)})),i}return Q(t,e),t}(W.MomentDateAdapter),Gi=function(i){function r(){var e=i.call(this)||this;return e._isLoggedIn=!1,e}return Q(r,i),r.prototype.loginByParam=function(e){return K(this,void 0,void 0,(function(){var t=this;return $(this,(function(i){return[2,this.loginByFunction((function(){return t.loginRequest(e)}))]}))}))},r.prototype.loginByFunction=function(i){return K(this,void 0,void 0,(function(){var n,r;return $(this,(function(o){switch(o.label){case 0:if(this.isLoggedIn||this.isLoading)return[2,null];this.status=t.LoadableStatus.LOADING,this.observer.next(new u.ObservableData(t.LoadableEvent.STARTED)),this.observer.next(new u.ObservableData(e.LoginBaseServiceEvent.LOGIN_STARTED)),o.label=1;case 1:return o.trys.push([1,3,,4]),[4,i()];case 2:return n=o.sent(),this.parseLoginResponse(n),this.isCanLoginWithSid()?this.loginBySid():this.status=t.LoadableStatus.LOADED,[3,4];case 3:return r=o.sent(),r=B.ExtendedError.create(r),this.status=t.LoadableStatus.ERROR,this.parseLoginErrorResponse(r),this.observer.next(new u.ObservableData(e.LoginBaseServiceEvent.LOGIN_ERROR,null,r)),[3,4];case 4:return this.isLoading||(this.observer.next(new u.ObservableData(t.LoadableEvent.FINISHED)),this.observer.next(new u.ObservableData(e.LoginBaseServiceEvent.LOGIN_FINISHED))),[2,n]}}))}))},r.prototype.loginBySid=function(){return K(this,void 0,void 0,(function(){var i,r;return $(this,(function(o){switch(o.label){case 0:n.isNil(this.sid)&&(this._sid=this.getSavedSid()),o.label=1;case 1:return o.trys.push([1,3,,4]),[4,this.loginSidRequest()];case 2:return i=o.sent(),this.parseLoginSidResponse(i),this._isLoggedIn=!0,this.status=t.LoadableStatus.LOADED,this.observer.next(new u.ObservableData(t.LoadableEvent.COMPLETE,i)),this.observer.next(new u.ObservableData(e.LoginBaseServiceEvent.LOGIN_COMPLETE,i)),[3,4];case 3:return r=o.sent(),r=B.ExtendedError.create(r),this.parseLoginSidErrorResponse(r),this._isLoggedIn=!1,this.status=t.LoadableStatus.ERROR,this.observer.next(new u.ObservableData(t.LoadableEvent.ERROR,null,r)),this.observer.next(new u.ObservableData(e.LoginBaseServiceEvent.LOGIN_ERROR,null,r)),[3,4];case 4:return this.observer.next(new u.ObservableData(t.LoadableEvent.FINISHED)),this.observer.next(new u.ObservableData(e.LoginBaseServiceEvent.LOGIN_FINISHED)),[2]}}))}))},r.prototype.reset=function(){this._sid=null,this._resource=null,this._loginData=null},r.prototype.parseLoginErrorResponse=function(e){},r.prototype.parseLoginSidResponse=function(e){this._loginData=e},r.prototype.parseLoginSidErrorResponse=function(e){e instanceof z.TransportTimeoutError||e instanceof z.TransportNoConnectionError||this.reset()},r.prototype.loginByResponse=function(i){return K(this,void 0,void 0,(function(){return $(this,(function(n){switch(n.label){case 0:return this.isLoggedIn||this.isLoading?[2]:(this.status=t.LoadableStatus.LOADING,this.observer.next(new u.ObservableData(t.LoadableEvent.STARTED)),this.observer.next(new u.ObservableData(e.LoginBaseServiceEvent.LOGIN_STARTED)),this.parseLoginResponse(i),this.status=this.isCanLoginWithSid()?t.LoadableStatus.LOADING:t.LoadableStatus.LOADED,this.isLoading?[4,this.loginBySid()]:[3,2]);case 1:n.sent(),n.label=2;case 2:return[2]}}))}))},r.prototype.tryLoginBySid=function(){return!!this.isCanLoginWithSid()&&(this.isLoggedIn||this.isLoading||(this.observer.next(new u.ObservableData(t.LoadableEvent.STARTED)),this.observer.next(new u.ObservableData(e.LoginBaseServiceEvent.LOGIN_STARTED)),this.loginBySid()),!0)},r.prototype.logout=function(){this.isLoggedIn&&(this.observer.next(new u.ObservableData(t.LoadableEvent.STARTED)),this.observer.next(new u.ObservableData(e.LoginBaseServiceEvent.LOGOUT_STARTED)),this.logoutRequest(),this.reset(),this._isLoggedIn=!1,this.status=t.LoadableStatus.NOT_LOADED,this.observer.next(new u.ObservableData(t.LoadableEvent.FINISHED)),this.observer.next(new u.ObservableData(e.LoginBaseServiceEvent.LOGOUT_FINISHED)))},r.prototype.isCanLoginWithSid=function(){return null!=this.sid||null!=this.getSavedSid()},r.prototype.destroy=function(){this.isDestroyed||(i.prototype.destroy.call(this),this.reset())},Object.defineProperty(r.prototype,"logined",{get:function(){return this.events.pipe(o.filter((function(t){return t.type===e.LoginBaseServiceEvent.LOGIN_COMPLETE})),o.map((function(e){return e.data})))},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"logouted",{get:function(){return this.events.pipe(o.filter((function(t){return t.type===e.LoginBaseServiceEvent.LOGOUT_FINISHED})),o.map((function(){return null})))},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"sid",{get:function(){return this._sid},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"resource",{get:function(){return this._resource},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"loginData",{get:function(){return this._loginData},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"isLoggedIn",{get:function(){return this._isLoggedIn},enumerable:!1,configurable:!0}),r}(t.Loadable);(Hi=e.LoginBaseServiceEvent||(e.LoginBaseServiceEvent={})).LOGIN_ERROR="LOGIN_ERROR",Hi.LOGIN_STARTED="LOGIN_STARTED",Hi.LOGIN_COMPLETE="LOGIN_COMPLETE",Hi.LOGIN_FINISHED="LOGIN_FINISHED",Hi.LOGOUT_STARTED="LOGOUT_STARTED",Hi.LOGOUT_FINISHED="LOGOUT_FINISHED",Hi.REGISTRATION_ERROR="REGISTRATION_ERROR",Hi.REGISTRATION_STARTED="REGISTRATION_STARTED",Hi.REGISTRATION_COMPLETE="REGISTRATION_COMPLETE",Hi.REGISTRATION_FINISHED="REGISTRATION_FINISHED";var qi=function(){function e(e){this.login=e}return e.prototype.canActivate=function(e,t){return this.login.isLoggedIn},e}();qi.ɵprov=s.ɵɵdefineInjectable({factory:function(){return new qi(s.ɵɵinject(Gi))},token:qi,providedIn:"root"}),qi.decorators=[{type:s.Injectable,args:[{providedIn:"root"}]}],qi.ctorParameters=function(){return[{type:Gi}]};var Yi=function(){function t(e){this.login=e}return t.prototype.resolve=function(t,n){if(this.login.isLoggedIn)return Promise.resolve();var r=i.PromiseHandler.create(),o=this.login.events.subscribe((function(t){t.type===e.LoginBaseServiceEvent.LOGIN_ERROR?r.reject(t.error.toString()):t.type===e.LoginBaseServiceEvent.LOGIN_COMPLETE?r.resolve():t.type===e.LoginBaseServiceEvent.LOGIN_FINISHED&&o.unsubscribe()}));return r.promise},t}(),Xi=function(e){function t(t){return e.call(this,t)||this}return Q(t,e),t}(Yi);Xi.logoutUrl="/login",Xi.redirectUrl="/",Xi.ɵprov=s.ɵɵdefineInjectable({factory:function(){return new Xi(s.ɵɵinject(Gi))},token:Xi,providedIn:"root"}),Xi.decorators=[{type:s.Injectable,args:[{providedIn:"root"}]}],Xi.ctorParameters=function(){return[{type:Gi}]};var Zi=function(){function e(){}return e.prototype.canActivate=function(e,t){return Xi.redirectUrl=t.url,!0},e}();Zi.ɵprov=s.ɵɵdefineInjectable({factory:function(){return new Zi},token:Zi,providedIn:"root"}),Zi.decorators=[{type:s.Injectable,args:[{providedIn:"root"}]}];var Qi=function(){function e(e,t,i){void 0===t&&(t=NaN),this.nameId=e,this.sortIndex=t,this.iconId=i,this._isEnabled=!0}return e.prototype.commitNameProperties=function(){},e.prototype.commitIsEnabledProperties=function(){},Object.defineProperty(e.prototype,"isEnabled",{get:function(){return this._isEnabled},set:function(e){e!==this._isEnabled&&(this._isEnabled=e,this.commitIsEnabledProperties())},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"name",{get:function(){return this._name},set:function(e){e!==this._name&&(this._name=e,this.commitNameProperties())},enumerable:!1,configurable:!0}),e}(),Ki=function(e){function t(t,i,n,r){var o=e.call(this,t,i,r)||this;return o.flag=n||"none",o}return Q(t,e),t}(Qi),$i=function(e){function t(t,i,n){void 0===n&&(n=!1);var r=e.call(this)||this;return r.language=t,r._items=[],r._enabledItems=[],r.filterFunction=i,t.completed.pipe(o.filter((function(){return n})),o.takeUntil(r.destroyed)).subscribe((function(){return r.translateItems(r._items)})),r}return Q(t,e),t.prototype.translateItems=function(e){var t,i;try{for(var n=J(e),r=n.next();!r.done;r=n.next()){var o=r.value;this.translateItem(o)}}catch(e){t={error:e}}finally{try{r&&!r.done&&(i=n.return)&&i.call(n)}finally{if(t)throw t.error}}},t.prototype.translateItem=function(e){e.name=this.language.translate(e.nameId)},t.prototype.checkEnabledItems=function(e){var t,i;p.ArrayUtil.sort(e);var n=!0;e===this._items&&p.ArrayUtil.clear(this._enabledItems);try{for(var r=J(e),o=r.next();!o.done;o=r.next()){var s=o.value;!s.name&&s.nameId&&this.translateItem(s);var a=!s.checkEnabled||s.checkEnabled(s);a&&this.filterFunction&&(a=this.filterFunction(s)),s.isEnabled=a,a&&this._enabledItems.push(s),n&&!a&&(n=!1)}}catch(e){t={error:e}}finally{try{o&&!o.done&&(i=r.return)&&i.call(r)}finally{if(t)throw t.error}}return n},t.prototype.add=function(e){return this._items.push(e),e},t.prototype.remove=function(e){var t=this._items.indexOf(e);return t>-1&&this._items.slice(t,1),e},t.prototype.checkEnabled=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return this.checkEnabledItems(this._items)},t.prototype.destroy=function(){this.isDestroyed||(e.prototype.destroy.call(this),this._items=null,this._enabledItems=null)},Object.defineProperty(t.prototype,"items",{get:function(){return this._items},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"enabledItems",{get:function(){return this._enabledItems},enumerable:!1,configurable:!0}),t}(t.DestroyableContainer),Ji=function(e){function t(t,i,n,r){var o=e.call(this,t,i,null,n)||this;return o.isActive=!1,o.url=r,o}return Q(t,e),t}(Ki),en=function(){function e(e,t,i,n){void 0===t&&(t=NaN),this._isEnabled=!0,this.data=i,this.iconId=n,this.sortIndex=t,this.translationId=e,this._uid=this.getUid()}return e.prototype.commitDataProperties=function(){},e.prototype.commitLabelProperties=function(){},e.prototype.commitIsEnabledProperties=function(){},e.prototype.commitClassNameProperties=function(){},e.prototype.commitIconIdProperties=function(){},e.prototype.commitSortIndexProperties=function(){},e.prototype.commitTranslationIdProperties=function(){},e.prototype.getUid=function(){return this.translationId+"_"+this.sortIndex},e.prototype.destroy=function(){this._data=null,this.action=null,this.checkEnabled=null},Object.defineProperty(e.prototype,"uid",{get:function(){return this._uid},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"sortIndex",{get:function(){return this._sortIndex},set:function(e){e!==this._sortIndex&&(this._sortIndex=e,n.isNil(e)||this.commitSortIndexProperties())},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isEnabled",{get:function(){return this._isEnabled},set:function(e){e!==this._isEnabled&&(this._isEnabled=e,n.isBoolean(e)&&this.commitIsEnabledProperties())},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"label",{get:function(){return this._label},set:function(e){e!==this._label&&(this._label=e,n.isNil(e)||this.commitLabelProperties())},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"translationId",{get:function(){return this._translationId},set:function(e){e!==this._translationId&&(this._translationId=e,n.isNil(e)||this.commitTranslationIdProperties())},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"iconId",{get:function(){return this._iconId},set:function(e){e!==this._iconId&&(this._iconId=e,n.isNil(e)||this.commitIconIdProperties())},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"className",{get:function(){return this._className},set:function(e){e!==this._className&&(this._className=e,n.isNil(e)||this.commitClassNameProperties())},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"data",{get:function(){return this._data},set:function(e){e!==this._data&&(this._data=e,n.isNil(e)||this.commitDataProperties())},enumerable:!1,configurable:!0}),e}(),tn=function(e){function t(t,i){void 0===i&&(i=!0);var r=e.call(this,"uid")||this;return r.language=t,r.translate=function(e){e.label=r.language.translate(e.translationId)},r.translateItems=function(){r.collection.forEach(r.translate)},r.translateIfNeed=function(e){n.isNil(e.label)&&!n.isNil(e.translationId)&&r.translate(e)},r.translateItemsIfNeed=function(){r.collection.forEach(r.translateIfNeed)},r.lastRefreshParams=new Array,i&&(r.languageSubscription=t.completed.subscribe(r.translateItems)),r}return Q(t,e),t.prototype.sort=function(){p.ArrayUtil.sort(this.collection)},t.prototype.complete=function(){this.translateItemsIfNeed(),this.sort()},t.prototype.refresh=function(){for(var e,t,i=[],r=0;r<arguments.length;r++)i[r]=arguments[r];if(p.ArrayUtil.clear(this._filtered),this.lastRefreshParams=i,!n.isEmpty(this.collection)){this._isAllEnabled=!0,this._isLeastOneEnabled=!1;try{for(var o=J(this._collection),s=o.next();!s.done;s=o.next()){var a=s.value;a.isEnabled=!!n.isNil(a.checkEnabled)||a.checkEnabled.apply(a,te([a],i)),a.isEnabled?this.filter(a)&&(this._filtered.push(a),this._isLeastOneEnabled=!0):this._isAllEnabled=!1}}catch(t){e={error:t}}finally{try{s&&!s.done&&(t=o.return)&&t.call(o)}finally{if(e)throw e.error}}}},t.prototype.actionItem=function(e){n.isNil(e)||!e.isEnabled||n.isNil(e.action)||e.action.apply(e,te([e],this.lastRefreshParams))},t.prototype.destroy=function(){this.isDestroyed||(e.prototype.destroy.call(this),this.language=null,this.lastRefreshParams=null,n.isNil(this.languageSubscription)||(this.languageSubscription.unsubscribe(),this.languageSubscription=null))},Object.defineProperty(t.prototype,"isAllEnabled",{get:function(){return this._isAllEnabled},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isLeastOneEnabled",{get:function(){return this._isLeastOneEnabled},enumerable:!1,configurable:!0}),t}(U.FilterableMapCollection),nn=function(e){function t(t,i,n,r){var o=e.call(this,t,i,n)||this;return o.checkEnabled=r,o}return Q(t,e),t.prototype.commitIsSelectProperties=function(){},t.prototype.commitSelectedClassNameProperties=function(){},t.prototype.destroy=function(){e.prototype.destroy.call(this),this.checkSelected=null},Object.defineProperty(t.prototype,"isSelected",{get:function(){return this._isSelected},set:function(e){e!==this._isSelected&&(this._isSelected=e,n.isNil(e)||this.commitIsSelectProperties())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"selectedClassName",{get:function(){return this._selectedClassName},set:function(e){e!==this._selectedClassName&&(this._selectedClassName=e,n.isNil(e)||this.commitSelectedClassNameProperties())},enumerable:!1,configurable:!0}),t}(en),rn=function(e){function t(t,i){void 0===i&&(i=!0);var n=e.call(this,t,i)||this;return n._changed=new s.EventEmitter,n}return Q(t,e),t.prototype.commitSelectedItemProperties=function(){this.selectedData=n.isNil(this.selectedItem)?null:this.selectedItem.data,this.selectedIndex=n.isNil(this.selectedItem)?null:this.selectedItem.sortIndex,n.isNil(this.changed)||this.changed.emit(this.selectedItem)},t.prototype.commitSelectedDataProperties=function(){var e=this;this.selectedItem=n.isNil(this.selectedData)?null:n.find(this.collection,(function(t){return t.data===e.selectedData}))},t.prototype.commitSelectedIndexProperties=function(){var e=this;this.selectedItem=n.isNil(this.selectedIndex)?null:n.find(this.collection,(function(t){return t.sortIndex===e.selectedIndex}))},Object.defineProperty(t.prototype,"selectedItem",{get:function(){return this._selectedItem},set:function(e){e!==this._selectedItem&&(this._selectedItem=e,this.commitSelectedItemProperties())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"selectedIndex",{get:function(){return this._selectedIndex},set:function(e){e!==this._selectedIndex&&(this._selectedIndex=e,this.commitSelectedIndexProperties())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"selectedData",{get:function(){return this._selectedData},set:function(e){e!==this._selectedData&&(this._selectedData=e,this.commitSelectedDataProperties())},enumerable:!1,configurable:!0}),t.prototype.complete=function(t){e.prototype.complete.call(this),n.isNil(t)||(n.isNumber(t)?this.selectedIndex=t:this.selectedItem=n.find(this.collection,(function(e){return e.data===t})))},t.prototype.refresh=function(){for(var t=[],i=0;i<arguments.length;i++)t[i]=arguments[i];e.prototype.refresh.apply(this,te(t)),this.refreshSelection.apply(this,te(t))},t.prototype.refreshSelection=function(){for(var e,t,i=[],r=0;r<arguments.length;r++)i[r]=arguments[r];if(!n.isEmpty(this.collection))try{for(var o=J(this._collection),s=o.next();!s.done;s=o.next()){var a=s.value;a.isSelected=!n.isNil(a.checkSelected)&&a.checkSelected.apply(a,te([a],i)),a.isSelected&&(this.selectedItem=a)}}catch(t){e={error:t}}finally{try{s&&!s.done&&(t=o.return)&&t.call(o)}finally{if(e)throw e.error}}},t.prototype.destroy=function(){this.isDestroyed||(e.prototype.destroy.call(this),n.isNil(this._changed)||(this._changed.complete(),this._changed=null),this.selectedIndex=null)},Object.defineProperty(t.prototype,"changed",{get:function(){return this._changed},enumerable:!1,configurable:!0}),t}(tn),on=function(e){function t(t,i){var n=e.call(this)||this;return n.language=t,n.sanitizer=i,n.language.isLoaded&&n.commitLanguageProperties(),n.language.completed.pipe(o.takeUntil(n.destroyed)).subscribe((function(){return n.commitLanguageProperties()})),n}return Q(t,e),t.prototype.commitLanguageProperties=function(){var e=this.language.locale?this.language.language.locale:"en";this._locale="en"===e?"en-US":e,t.DATE&&(t.DATE=new m.DatePipe(this.locale))},Object.defineProperty(t.prototype,"date",{get:function(){return t.DATE||(t.DATE=new m.DatePipe(this.locale)),t.DATE},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"time",{get:function(){return t.TIME||(t.TIME=new Zt),t.TIME},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"finance",{get:function(){return t.FINANCE||(t.FINANCE=new zt),t.FINANCE},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"truncate",{get:function(){return t.TRUNCATE||(t.TRUNCATE=new Qt),t.TRUNCATE},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"prettify",{get:function(){return t.PRETTIFY||(t.PRETTIFY=new Kt),t.PRETTIFY},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"momentDate",{get:function(){return t.MOMENT_DATE||(t.MOMENT_DATE=new Ut),t.MOMENT_DATE},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"momentDateFromNow",{get:function(){return t.MOMENT_DATE_FROM_NOW||(t.MOMENT_DATE_FROM_NOW=new Vt),t.MOMENT_DATE_FROM_NOW},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"momentDateAdaptive",{get:function(){return t.MOMENT_ADAPTIVE_DATE||(t.MOMENT_ADAPTIVE_DATE=new Ft),t.MOMENT_ADAPTIVE_DATE},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"momentTime",{get:function(){return t.MOMENT_TIME||(t.MOMENT_TIME=new Gt),t.MOMENT_TIME},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"sanitize",{get:function(){return t.SANITIZE||(t.SANITIZE=new Yt(this.sanitizer)),t.SANITIZE},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"camelCase",{get:function(){return t.CAMEL_CASE||(t.CAMEL_CASE=new Bt),t.CAMEL_CASE},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locale",{get:function(){return this._locale},enumerable:!1,configurable:!0}),t}(t.DestroyableContainer);on.DATE=null,on.TIME=null,on.FINANCE=null,on.PRETTIFY=null,on.TRUNCATE=null,on.SANITIZE=null,on.CAMEL_CASE=null,on.MOMENT_TIME=null,on.MOMENT_DATE=null,on.MOMENT_DATE_FROM_NOW=null,on.MOMENT_ADAPTIVE_DATE=null;var sn,an=function(t){function i(e){var i=t.call(this)||this;return i.service=e,i.observer=new d.Subject,i.initialize(),i}return Q(i,t),i.prototype.initialize=function(t,n,r,s,a){var l=this;void 0===t&&(t=i.DEFAULT_SM),void 0===n&&(n=i.DEFAULT_MD),void 0===r&&(r=i.DEFAULT_LG),void 0===s&&(s=i.DEFAULT_XL),void 0===a&&(a=i.DEFAULT_XXL),this.items=[{name:e.BootstrapBreakpoint.XXL,value:"(min-width: "+a+"px)"},{name:e.BootstrapBreakpoint.XL,value:"(min-width: "+s+"px)"},{name:e.BootstrapBreakpoint.LG,value:"(min-width: "+r+"px)"},{name:e.BootstrapBreakpoint.MD,value:"(min-width: "+n+"px)"},{name:e.BootstrapBreakpoint.SM,value:"(min-width: 0px)"}],d.merge.apply(void 0,te(this.items.map((function(e){return l.service.observe(e.value)})))).pipe(o.takeUntil(this.destroyed)).subscribe((function(){return l.setBreakpoint(l.getBreakpoint())}))},i.prototype.getBreakpoint=function(){var e,t;try{for(var i=J(this.items),n=i.next();!n.done;n=i.next()){var r=n.value;if(this.service.isMatched(r.value))return r.name}}catch(t){e={error:t}}finally{try{n&&!n.done&&(t=i.return)&&t.call(i)}finally{if(e)throw e.error}}return null},i.prototype.setBreakpoint=function(t){t!==this._breakpoint&&(this._breakpoint=t,this.observer.next(new u.ObservableData(e.BootstrapBreakpointServiceEvent.CHANGED,this.breakpoint)))},i.prototype.isEqual=function(e){return e===this.breakpoint},i.prototype.isUp=function(e){return n.findIndex(this.items,{name:this.breakpoint})<n.findIndex(this.items,{name:e})},i.prototype.isUpOrEqual=function(e){return this.isEqual(e)||this.isUp(e)},i.prototype.isDown=function(e){return n.findIndex(this.items,{name:this.breakpoint})>n.findIndex(this.items,{name:e})},i.prototype.isDownOrEqual=function(e){return this.isEqual(e)||this.isDown(e)},Object.defineProperty(i.prototype,"breakpoint",{get:function(){return this._breakpoint},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"events",{get:function(){return this.observer.asObservable()},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"changed",{get:function(){return this.events.pipe(o.filter((function(t){return t.type===e.BootstrapBreakpointServiceEvent.CHANGED})),o.map((function(e){return e.data})))},enumerable:!1,configurable:!0}),i}(t.DestroyableContainer);an.DEFAULT_SM=576,an.DEFAULT_MD=768,an.DEFAULT_LG=992,an.DEFAULT_XL=1200,an.DEFAULT_XXL=1400,an.ɵprov=s.ɵɵdefineInjectable({factory:function(){return new an(s.ɵɵinject(F.BreakpointObserver))},token:an,providedIn:"root"}),an.decorators=[{type:s.Injectable,args:[{providedIn:"root"}]}],an.ctorParameters=function(){return[{type:F.BreakpointObserver}]},(e.BootstrapBreakpointServiceEvent||(e.BootstrapBreakpointServiceEvent={})).CHANGED="CHANGED",(sn=e.BootstrapBreakpoint||(e.BootstrapBreakpoint={})).SM="sm",sn.MD="md",sn.LG="lg",sn.XL="xl",sn.XXL="xxl";var ln,cn=function(e){function i(t,i){var n=e.call(this)||this;return n._router=t,n.window=i,n.isNeedUpdateExtras=!1,n.params=new Map,n.observer=new d.Subject,n._lastUrl=n.url,n.window.getParams().forEach((function(e,t){return n.params.set(t,e)})),n.initializeObservers(),n}return Q(i,e),i.prototype.initializeObservers=function(){var e=this;this.router.events.pipe(o.takeUntil(this.destroyed)).subscribe((function(i){i instanceof V.NavigationStart?(e._previousUrl=e.url,e.status=t.LoadableStatus.LOADING):(i instanceof V.NavigationEnd||i instanceof V.NavigationCancel||i instanceof V.NavigationError)&&(i instanceof V.NavigationEnd&&(e._lastUrl=i.url),e.status=t.LoadableStatus.LOADED)}))},i.prototype.applyExtras=function(e){return K(this,void 0,void 0,(function(){var t;return $(this,(function(i){return(t={}).queryParams=this.getQueryParams(),n.isNil(e)||Object.assign(t,e),this.isLoading?(this.extrasToApply=e,this.isNeedUpdateExtras=!0,[2,!1]):[2,this.router.navigate([],t)]}))}))},i.prototype.getQueryParams=function(){var e={};return this.params.forEach((function(t,i){return e[i]=t})),e},i.prototype.commitStatusChangedProperties=function(i,n){switch(e.prototype.commitStatusChangedProperties.call(this,i,n),n){case t.LoadableStatus.LOADING:this.observer.next(new u.ObservableData(t.LoadableEvent.STARTED));break;case t.LoadableStatus.LOADED:this.isNeedUpdateExtras&&(this.isNeedUpdateExtras=!1,this.applyExtras(this.extrasToApply)),this.observer.next(new u.ObservableData(t.LoadableEvent.COMPLETE,{url:this.url,previousUrl:this.previousUrl}))}n!==t.LoadableStatus.LOADED&&n!==t.LoadableStatus.ERROR||this.observer.next(new u.ObservableData(t.LoadableEvent.FINISHED))},i.prototype.navigate=function(e,t,i){return K(this,void 0,void 0,(function(){var r;return $(this,(function(o){return i&&this.params.clear(),(r={}).queryParams=this.getQueryParams(),n.isNil(t)||Object.assign(r,t),[2,this.router.navigateByUrl(e,r)]}))}))},i.prototype.navigateToExternalUrl=function(e,t){void 0===t&&(t="_blank"),this.window.open(e,t)},i.prototype.navigateToLast=function(e){return this.navigate(this.lastUrl,e)},i.prototype.navigateIfNotLoading=function(e,t){return K(this,void 0,void 0,(function(){return $(this,(function(i){return[2,!this.isLoading&&this.navigate(e,t)]}))}))},i.prototype.reload=function(){location.reload()},i.prototype.isUrlActive=function(e,t){if(void 0===t&&(t=!1),t)return this.router.isActive(e,t);n.isString(e)&&(e=this.router.parseUrl(e));var i=this.router.parseUrl(this.urlTree.toString());return e.fragment=i.fragment=null,e.queryParams=i.queryParams={},e.toString()===i.toString()},i.prototype.getParams=function(){var e={};return this.params.forEach((function(t,i){return e[i]=t})),e},i.prototype.hasParam=function(e){return this.params.has(e)},i.prototype.getParam=function(e,t){return this.hasParam(e)?this.params.get(e):t},i.prototype.setParam=function(e,t,i){n.isNil(t)||(t=t.toString().trim(),n.isEmpty(t)&&(t=null)),n.isNil(t)?this.params.delete(e):this.params.set(e,t),n.isNil(i)||(i={replaceUrl:!0}),this.applyExtras(i)},i.prototype.removeParam=function(e,t){this.hasParam(e)&&this.setParam(e,null,t)},i.prototype.clearParams=function(e){this.params.clear(),n.isNil(e)||(e={replaceUrl:!0}),this.applyExtras(e)},Object.defineProperty(i.prototype,"hasParams",{get:function(){return this.params.size>0},enumerable:!1,configurable:!0}),i.prototype.getFragment=function(e,t){return e instanceof V.ActivatedRoute&&(e=e.snapshot),n.isNil(e.fragment)?t:e.fragment},i.prototype.setFragment=function(e){return K(this,void 0,void 0,(function(){return $(this,(function(t){return[2,this.applyExtras({fragment:e})]}))}))},Object.defineProperty(i.prototype,"url",{get:function(){return this.router.url},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"urlTree",{get:function(){return this.router.parseUrl(this.url)},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"lastUrl",{get:function(){return this._lastUrl},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"lastUrlTree",{get:function(){return this.router.parseUrl(this.lastUrl)},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"previousUrl",{get:function(){return this._previousUrl},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"previousUrlTree",{get:function(){return this.router.parseUrl(this.previousUrl)},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"router",{get:function(){return this._router},enumerable:!1,configurable:!0}),i}(t.Loadable),un=function(){function e(){}return e.prototype.canDeactivate=function(e,t,i,n){return!!e.isForceDeactivate||e.isCanDeactivate(t,i,n)},e}(),pn=function(){},hn=function(){function t(e){this.login=e,this.observer=new d.Subject}return t.prototype.initialize=function(){var t=this;this.login.isLoggedIn&&this.loginedHandler(),this.login.events.subscribe((function(i){i.type===e.LoginBaseServiceEvent.LOGIN_COMPLETE?t.loginedHandler():i.type===e.LoginBaseServiceEvent.LOGOUT_FINISHED&&t.logoutedHandler()}))},t.prototype.initializeUser=function(){this._user=this.createUser(this.login.loginData)},t.prototype.deinitializeUser=function(){this._user=null},t.prototype.loginedHandler=function(){this.initializeUser(),this.observer.next(new u.ObservableData(e.UserBaseServiceEvent.LOGINED,this.user))},t.prototype.logoutedHandler=function(){this.deinitializeUser(),this.observer.next(new u.ObservableData(e.UserBaseServiceEvent.LOGOUTED))},t.prototype.isUser=function(e){return!(!e||!this.user)&&(e.hasOwnProperty("id")?this.user.id===e.id:this.user.id===e)},t.prototype.updateUser=function(t){this.hasUser&&(this.user.update(t),this.observer.next(new u.ObservableData(e.UserBaseServiceEvent.CHANGED,t)))},Object.defineProperty(t.prototype,"events",{get:function(){return this.observer.asObservable()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"logined",{get:function(){return this.events.pipe(o.filter((function(t){return t.type===e.UserBaseServiceEvent.LOGINED})),o.map((function(e){return e.data})))},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"changed",{get:function(){return this.events.pipe(o.filter((function(t){return t.type===e.UserBaseServiceEvent.CHANGED})),o.map((function(e){return e.data})))},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"logouted",{get:function(){return this.events.pipe(o.filter((function(t){return t.type===e.UserBaseServiceEvent.LOGOUTED})),o.map((function(){return null})))},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasUser",{get:function(){return!n.isNil(this._user)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isLogined",{get:function(){return this.hasUser},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"user",{get:function(){return this._user},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"id",{get:function(){return this.hasUser?this.user.id:null},enumerable:!1,configurable:!0}),t}();(ln=e.UserBaseServiceEvent||(e.UserBaseServiceEvent={})).LOGINED="LOGINED",ln.CHANGED="CHANGED",ln.LOGOUTED="LOGOUTED",e.APPLICATION_INJECTOR=we,e.ApplicationBaseComponent=ie,e.ApplicationComponent=se,e.ApplicationComponent2=ae,e.AspectRatioResizeDirective=qe,e.AssetBackgroundDirective=Ce,e.AssetBackgroundPipe=Se,e.AssetIconPipe=De,e.AssetImagePipe=Te,e.AssetModule=Re,e.AutoScrollBottomDirective=Ze,e.BootstrapBreakpointService=an,e.BottomSheetService=kt,e.COOKIE_OPTIONS=Ve,e.CamelCasePipe=Bt,e.CanDeactivateGuard=un,e.CdkTableBaseComponent=Pi,e.CdkTableDataSource=He,e.CdkTableFilterableMapCollection=Ae,e.CdkTablePaginableBookmarkMapCollection=We,e.CdkTablePaginableMapCollection=je,e.ClickToCopyDirective=Qe,e.ClickToSelectDirective=Ke,e.CookieModule=ze,e.CookieOptions=Ai,e.CookieService=Be,e.FinancePipe=zt,e.FocusDirective=Je,e.FocusManager=$e,e.FormElementAsync=Ui,e.FormElementSync=Fi,e.HTMLContentTitleDirective=tt,e.INotification=be,e.INotificationContent=fe,e.IUser=pn,e.IVICommonOptions=mi,e.IWindow=pe,e.IWindowContent=Et,e.InfiniteScrollDirective=Xe,e.LANGUAGE_OPTIONS=ft,e.LanguageDirective=lt,e.LanguageHasDirective=pt,e.LanguageMatPaginatorIntl=nt,e.LanguageModule=ht,e.LanguageMomentDateAdapter=Vi,e.LanguagePipe=rt,e.LanguagePipeHas=ct,e.LanguagePipeHasPure=ut,e.LanguagePipePure=ot,e.LanguageRequireResolver=st,e.LanguageResolver=at,e.LanguageSelectorComponent=xe,e.ListItem=en,e.ListItems=tn,e.LoginBaseService=Gi,e.LoginGuard=qi,e.LoginRedirectResolver=Zi,e.LoginRequireResolver=Yi,e.LoginResolver=Xi,e.MenuItem=Ki,e.MenuItemBase=Qi,e.MenuItems=$i,e.MenuListComponent=vi,e.MessageBaseComponent=le,e.MomentDateAdaptivePipe=Ft,e.MomentDateFromNowPipe=Vt,e.MomentDatePipe=Ut,e.MomentTimePipe=Gt,e.NavigationMenuItem=Ji,e.NgModelErrorPipe=qt,e.NotificationConfig=Ee,e.NotificationFactory=Pe,e.NotificationModule=Wt,e.NotificationService=_e,e.PipeBaseService=on,e.PrettifyPipe=Kt,e.PropertiesManager=Tt,e.QuestionManager=ue,e.ResizeDirective=it,e.ResizeManager=Ge,e.RouterBaseService=cn,e.SanitizePipe=Yt,e.ScrollDirective=Ye,e.SelectListComponent=Ni,e.SelectListItem=nn,e.SelectListItems=rn,e.SelectOnFocusDirective=et,e.ShellBaseComponent=Ie,e.StartCasePipe=Xt,e.THEME_OPTIONS=ai,e.TabGroupComponent=Ei,e.ThemeAssetBackgroundDirective=Jt,e.ThemeAssetDirective=$t,e.ThemeAssetImageDirective=ei,e.ThemeModule=oi,e.ThemeStyleDirective=ii,e.ThemeStyleHoverDirective=ni,e.ThemeToggleDirective=ti,e.TimePipe=Zt,e.TruncatePipe=Qt,e.UserBaseService=hn,e.VICommonModule=gi,e.VIComponentModule=xi,e.VI_ANGULAR_OPTIONS=bi,e.ViewUtil=ne,e.WindowBase=ye,e.WindowConfig=de,e.WindowFactory=gt,e.WindowImpl=mt,e.WindowModule=hi,e.WindowService=St,e.cookieServiceFactory=Ue,e.languageServiceFactory=dt,e.loggerServiceFactory=yi,e.themeServiceFactory=si,e.ɵa=ke,e.ɵb=Le,e.ɵc=Me,e.ɵd=li,e.ɵe=_t,e.ɵf=Pt,e.ɵg=Ot,e.ɵh=bt,e.ɵi=wt,e.ɵj=It,e.ɵk=me,e.ɵl=ge,e.ɵm=xt,e.ɵn=vt,e.ɵo=Ii,e.ɵp=Ci,e.ɵq=wi,e.ɵr=Di,e.ɵs=Si,e.ɵt=Ti,e.ɵu=_i,e.ɵv=Oi,e.ɵw=zi,Object.defineProperty(e,"__esModule",{value:!0})}));
|
|
1
|
+
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("@ts-core/common"),require("@ts-core/common/promise"),require("lodash"),require("@ts-core/frontend/asset"),require("rxjs/operators"),require("@angular/core"),require("moment"),require("numeral"),require("@angular/material/dialog"),require("@ts-core/common/observer"),require("@ts-core/common/util"),require("@ts-core/frontend/language"),require("rxjs"),require("rxjs/internal/operators"),require("@ts-core/frontend/language/LanguageService"),require("@angular/common"),require("@ts-core/common/map/dataSource"),require("@angular/forms"),require("@ts-core/common/logger"),require("@ts-core/frontend/cookie"),require("@ts-core/frontend/logger"),require("@ts-core/frontend/service"),require("ngx-cookie"),require("css-element-queries"),require("interactjs"),require("@angular/material/paginator"),require("@angular/material/button"),require("@angular/material/bottom-sheet"),require("@ts-core/common/dto"),require("@angular/platform-browser"),require("@ts-core/frontend/theme"),require("@angular/material/tabs"),require("@angular/material/list"),require("@angular/material/menu"),require("@angular/material/select"),require("@angular/material/sort"),require("@angular/material/table"),require("@angular/material/progress-bar"),require("@angular/material-moment-adapter"),require("@ts-core/common/error"),require("@ts-core/common/transport"),require("@ts-core/common/map"),require("@angular/cdk/layout"),require("@angular/router")):"function"==typeof define&&define.amd?define("@ts-core/angular",["exports","@ts-core/common","@ts-core/common/promise","lodash","@ts-core/frontend/asset","rxjs/operators","@angular/core","moment","numeral","@angular/material/dialog","@ts-core/common/observer","@ts-core/common/util","@ts-core/frontend/language","rxjs","rxjs/internal/operators","@ts-core/frontend/language/LanguageService","@angular/common","@ts-core/common/map/dataSource","@angular/forms","@ts-core/common/logger","@ts-core/frontend/cookie","@ts-core/frontend/logger","@ts-core/frontend/service","ngx-cookie","css-element-queries","interactjs","@angular/material/paginator","@angular/material/button","@angular/material/bottom-sheet","@ts-core/common/dto","@angular/platform-browser","@ts-core/frontend/theme","@angular/material/tabs","@angular/material/list","@angular/material/menu","@angular/material/select","@angular/material/sort","@angular/material/table","@angular/material/progress-bar","@angular/material-moment-adapter","@ts-core/common/error","@ts-core/common/transport","@ts-core/common/map","@angular/cdk/layout","@angular/router"],t):t(((e="undefined"!=typeof globalThis?globalThis:e||self)["ts-core"]=e["ts-core"]||{},e["ts-core"].angular={}),e["@ts-core/common"],e["@ts-core/common/promise"],e._,e["@ts-core/frontend/asset"],e.rxjs.operators,e.ng.core,e.moment,e.numeral,e.ng.material.dialog,e["@ts-core/common/observer"],e["@ts-core/common/util"],e["@ts-core/frontend/language"],e.rxjs,e.rxjs["internal/operators"],e.i2,e.ng.common,e["@ts-core/common/map/dataSource"],e.ng.forms,e["@ts-core/common/logger"],e["@ts-core/frontend/cookie"],e["@ts-core/frontend/logger"],e["@ts-core/frontend/service"],e.ngxCookie,e.cssElementQueries,e.interactjs,e.ng.material.paginator,e.ng.material.button,e.ng.material.bottomSheet,e["@ts-core/common/dto"],e.ng.platformBrowser,e["@ts-core/frontend/theme"],e.ng.material.tabs,e.ng.material.list,e.ng.material.menu,e.ng.material.select,e.ng.material.sort,e.ng.material.table,e.ng.material.progressBar,e.ng.materialMomentAdapter,e["@ts-core/common/error"],e["@ts-core/common/transport"],e["@ts-core/common/map"],e.ng.cdk.layout,e.ng.router)}(this,(function(e,t,i,n,r,o,s,a,l,c,u,p,h,d,f,g,m,y,b,v,N,E,P,_,I,O,w,C,S,T,D,k,L,M,R,x,A,H,j,W,B,z,U,F,V){"use strict";function G(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var q=G(a),Y=G(l),X=G(O),Z=function(e,t){return(Z=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])})(e,t)};function Q(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function i(){this.constructor=e}Z(e,t),e.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}function K(e,t,i,n){return new(i||(i=Promise))((function(r,o){function s(e){try{l(n.next(e))}catch(e){o(e)}}function a(e){try{l(n.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i((function(e){e(t)}))).then(s,a)}l((n=n.apply(e,t||[])).next())}))}function $(e,t){var i,n,r,o,s={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(o){return function(a){return function(o){if(i)throw new TypeError("Generator is already executing.");for(;s;)try{if(i=1,n&&(r=2&o[0]?n.return:o[0]?n.throw||((r=n.return)&&r.call(n),0):n.next)&&!(r=r.call(n,o[1])).done)return r;switch(n=0,r&&(o=[2&o[0],r.value]),o[0]){case 0:case 1:r=o;break;case 4:return s.label++,{value:o[1],done:!1};case 5:s.label++,n=o[1],o=[0];continue;case 7:o=s.ops.pop(),s.trys.pop();continue;default:if(!(r=s.trys,(r=r.length>0&&r[r.length-1])||6!==o[0]&&2!==o[0])){s=0;continue}if(3===o[0]&&(!r||o[1]>r[0]&&o[1]<r[3])){s.label=o[1];break}if(6===o[0]&&s.label<r[1]){s.label=r[1],r=o;break}if(r&&s.label<r[2]){s.label=r[2],s.ops.push(o);break}r[2]&&s.ops.pop(),s.trys.pop();continue}o=t.call(e,s)}catch(e){o=[6,e],n=0}finally{i=r=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,a])}}}Object.create;function J(e){var t="function"==typeof Symbol&&Symbol.iterator,i=t&&e[t],n=0;if(i)return i.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function ee(e,t){var i="function"==typeof Symbol&&e[Symbol.iterator];if(!i)return e;var n,r,o=i.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(n=o.next()).done;)s.push(n.value)}catch(e){r={error:e}}finally{try{n&&!n.done&&(i=o.return)&&i.call(o)}finally{if(r)throw r.error}}return s}function te(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(ee(arguments[t]));return e}Object.create;var ie=function(e){function t(t){void 0===t&&(t=NaN);var n=e.call(this)||this;return n.viewReadyDelay=t,n.makeViewReady=function(){n.viewReadyPromise.resolve(),n.viewReadyHandler(),n.checkReady()},n.viewReadyPromise=i.PromiseHandler.create(),n}return Q(t,e),t.prototype.checkReady=function(){!this.isReadyAlreadyCalled&&this.isReady()&&(this.isReadyAlreadyCalled=!0,this.readyHandler())},t.prototype.isReady=function(){return this.isViewReady},t.prototype.viewReadyHandler=function(){},t.prototype.ngAfterViewInit=function(){this.viewReadyDelay>0?i.PromiseHandler.delay(this.viewReadyDelay).then(this.makeViewReady):this.makeViewReady()},t.prototype.destroy=function(){this.isDestroyed||(e.prototype.destroy.call(this),n.isNil(this.viewReadyPromise)||(this.viewReadyPromise.reject(),this.viewReadyPromise=null),n.isNil(this.timeout)||(clearTimeout(this.timeout),this.timeout=null))},Object.defineProperty(t.prototype,"isViewReady",{get:function(){return!n.isNil(this.viewReadyPromise)&&this.viewReadyPromise.isResolved},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"viewReady",{get:function(){return n.isNil(this.viewReadyPromise)?null:this.viewReadyPromise.promise},enumerable:!1,configurable:!0}),t}(t.DestroyableContainer),ne=function(){function e(){}return e.copyToClipboard=function(){try{document.execCommand("copy")}catch(e){}},e.initialize=function(t){e.RENDERER=t},e.parseElement=function(e){return e instanceof HTMLElement?e:(e instanceof s.ViewContainerRef&&(e=e.element),n.isNil(e)?null:e.nativeElement)},e.createBase64=function(t){var i=null,n=e.createElement("canvas");e.setProperty(n,"width",t.offsetWidth),e.setProperty(n,"height",t.offsetHeight);try{n.getContext("2d").drawImage(t,0,0,t.offsetWidth,t.offsetHeight),i=(i=n.toDataURL("image/jpeg",1)).replace("data:image/jpeg;base64,","")}catch(e){}return i},e.selectContent=function(t,i){if(void 0===i&&(i=!1),t instanceof HTMLInputElement||t instanceof HTMLTextAreaElement){var r=t.disabled;r&&(t.disabled=!1),t.select(),i&&e.copyToClipboard(),r&&(t.disabled=!0)}else{var o=window.getSelection();o.removeAllRanges();var s=document.createRange();n.isNil(t)||s.selectNodeContents(t),o.addRange(s),i&&e.copyToClipboard()}},e.setBackground=function(t,i,r){if(void 0===r&&(r="repeat"),n.isNil(i))return e.removeStyle(t,"backgroundImage"),void e.removeStyle(t,"backgroundRepeat");i.includes("url(")||(i="url("+i+")"),e.setStyle(t,"backgroundImage",i),e.setStyle(t,"backgroundRepeat",r)},e.createElement=function(t,i,r){var o=e.RENDERER.createElement(t);return n.isNil(t)||e.setProperty(o,"className",i),n.isNil(r)||e.setProperty(o,"innerHTML",r),o},e.appendChild=function(t,i){n.isNil(t)||n.isNil(i)||n.isNil(e.RENDERER)||e.RENDERER.appendChild(t,i)},e.removeChild=function(t,i){n.isNil(t)||n.isNil(i)||n.isNil(e.RENDERER)||e.RENDERER.removeChild(t,i)},e.toggleChild=function(t,i,n){var r=t.contains(i);n&&!r&&e.appendChild(t,i),!n&&r&&e.removeChild(t,i)},e.getStageWidth=function(){return window.innerWidth||document.body.clientWidth},e.getStageHeight=function(){return window.innerHeight||document.body.clientHeight},e.getWidth=function(t){if(n.isNil(t))return NaN;var i=parseFloat(e.getStyle(t,"width"));return n.isNaN(i)&&(i=t.getBoundingClientRect().width),n.isNaN(i)&&(i=t.offsetWidth),i},e.setWidth=function(t,i,r){return!n.isNil(t)&&!n.isNaN(i)&&((!r||!(i<e.getMinWidth(t)||i>e.getMaxWidth(t)||i===e.getWidth(t)))&&(t.style.width="540px",e.setStyle(t,"width",i+"px"),!0))},e.getMaxWidth=function(t){if(n.isNil(t))return NaN;var i=parseFloat(e.getStyle(t,"maxWidth"));return n.isNaN(i)&&(i=Number.POSITIVE_INFINITY),i},e.getMinWidth=function(t){if(n.isNil(t))return NaN;var i=parseFloat(e.getStyle(t,"minWidth"));return n.isNaN(i)&&(i=0),i},e.getHeight=function(t){if(n.isNil(t))return NaN;var i=parseFloat(e.getStyle(t,"height"));return n.isNaN(i)&&(i=t.getBoundingClientRect().height),n.isNaN(i)&&(i=t.offsetHeight),i},e.setHeight=function(t,i,r){return!n.isNil(t)&&!n.isNaN(i)&&((!r||!(i<e.getMinHeight(t)||i>e.getMaxHeight(t)||i===e.getHeight(t)))&&(e.setStyle(t,"height",i+"px"),!0))},e.getMaxHeight=function(t){if(n.isNil(t))return NaN;var i=parseFloat(e.getStyle(t,"maxHeight"));return n.isNaN(i)&&(i=Number.POSITIVE_INFINITY),i},e.getMinHeight=function(t){if(n.isNil(t))return NaN;var i=parseFloat(e.getStyle(t,"minHeight"));return isNaN(i)&&(i=0),i},e.size=function(t,i,n,r){e.setWidth(t,i,r),e.setHeight(t,n,r)},e.getX=function(t){if(n.isNil(t))return NaN;var i=parseFloat(e.getStyle(t,"left"));return n.isNaN(i)?0:i},e.setX=function(t,i){n.isNil(t)||n.isNaN(i)||e.setStyle(t,"left",i+"px")},e.getY=function(t){if(n.isNil(t))return NaN;var i=parseFloat(e.getStyle(t,"top"));return n.isNaN(i)?0:i},e.setY=function(t,i){n.isNil(t)||n.isNaN(i)||e.setStyle(t,"top",i+"px")},e.move=function(t,i,n){e.setX(t,i),e.setY(t,n)},e.focusInput=function(e){var t=0;n.isNil(e.value)||(t=Math.max(0,e.value.toString().length)),e.focus(),e.setSelectionRange(t,t)},e.addClass=function(t,i){n.isNil(i)||(t=e.parseElement(t),n.isNil(t)||n.isNil(e.RENDERER)||e.RENDERER.addClass(t,i))},e.addClasses=function(t,i){n.isEmpty(i)||i.split(" ").forEach((function(i){return e.addClass(t,i)}))},e.removeClass=function(t,i){n.isNil(i)||(t=e.parseElement(t),n.isNil(t)||n.isNil(e.RENDERER)||e.RENDERER.removeClass(t,i))},e.removeClasses=function(t,i){n.isEmpty(i)||i.split(" ").forEach((function(i){return e.removeClass(t,i)}))},e.hasClass=function(t,i){return!n.isNil(i)&&(t=e.parseElement(t),!n.isNil(t)&&t.classList.contains(i))},e.toggleClass=function(t,i,n){n?e.addClass(t,i):e.removeClass(t,i)},e.getProperty=function(t,i){return n.isNil(i)?null:(t=e.parseElement(t),n.isNil(t)?null:t[i])},e.setProperty=function(t,i,r){n.isNil(i)||(t=e.parseElement(t),n.isNil(t)||n.isNil(e.RENDERER)||e.RENDERER.setProperty(t,i,r))},e.removeProperty=function(t,i){e.removeAttribute(t,i)},e.removeAttribute=function(t,i){n.isNil(i)||(t=e.parseElement(t),n.isNil(t)||n.isNil(e.RENDERER)||e.RENDERER.removeAttribute(t,i))},e.setAttribute=function(t,i,r){n.isNil(i)||(t=e.parseElement(t),n.isNil(t)||n.isNil(e.RENDERER)||e.RENDERER.setAttribute(t,i,r))},e.getStyle=function(t,i){return n.isNil(i)?null:(t=e.parseElement(t),n.isNil(t)?null:t.style[i])},e.setStyle=function(t,i,r,o){n.isNil(i)||(t=e.parseElement(t),n.isNil(t)||n.isNil(e.RENDERER)||r!==e.getStyle(t,i)&&e.RENDERER.setStyle(t,i,r,o))},e.removeStyle=function(t,i,r){n.isNil(i)||(t=e.parseElement(t),n.isNil(t)||n.isNil(e.RENDERER)||e.RENDERER.removeStyle(t,i,r))},e.createVideo=function(t,i){void 0===t&&(t=!0),void 0===i&&(i=!1);var n=e.createElement("video");return e.setProperty(n,"autoplay",!0),t&&e.setVideoMuteParameters(n,t),i&&e.setVideoInlineParameters(n),n},e.setVideoMuteParameters=function(e,t){void 0===t&&(t=!0),n.isNil(e)||(e.muted=e.defaultMuted=t)},e.setVideoInlineParameters=function(t){e.setAttribute(t,"webkit-playsinline",1),e.setAttribute(t,"playsinline",!0)},e.getVideoError=function(e){if(n.isNil(e)||n.isNil(e.error))return null;var t=e.error,i="Video error "+e.src+", ";switch(t.code){case MediaError.MEDIA_ERR_ABORTED:i+="media aborted";break;case MediaError.MEDIA_ERR_DECODE:i+="error to decode";break;case MediaError.MEDIA_ERR_NETWORK:i+="network error";break;case MediaError.MEDIA_ERR_SRC_NOT_SUPPORTED:i+="source not supported"}return i},e.playVideo=function(e){if(n.isNil(e))return null;try{return e.play()}catch(e){return Promise.reject(e)}},e.playAudio=function(e){if(n.isNil(e))return null;try{return e.play()}catch(e){return Promise.reject(e)}},e.pauseVideo=function(e){n.isNil(e)||e.pause()},e.isVideoPlaying=function(e){return!n.isNil(e)&&(!e.paused&&!e.ended)},e.loadVideo=function(e){n.isNil(e)||e.load()},e.stopVideoIfNeed=function(t){n.isNil(t)||n.isNil(t.src)&&n.isNil(t.srcObject)||e.stopVideo(t)},e.stopVideo=function(e){if(!n.isNil(e)){if(e.srcObject instanceof MediaStream)e.srcObject.getTracks().forEach((function(e){return e.stop()}));e.srcObject=null,e.pause(),e.src="",e.load()}},e.disposeVideo=function(t){e.stopVideo(t),e.removeChild(t.parentNode,t),t.remove()},e.disposeVideos=function(t){for(var i=t.children.length-1;i>=0;i--){var n=t.children.item(i);n instanceof HTMLVideoElement&&e.disposeVideo(n)}},e.disposeObjects=function(t,i){for(var n=t.children.length-1;n>=0;n--){var r=t.children.item(n);r instanceof HTMLObjectElement&&e.disposeObject(r,i)}},e.disposeObject=function(t,i){if(i&&4===t.readyState)for(var r in t)n.isFunction(t[r])&&(t[r]=null);e.removeChild(t.parentNode,t)},e}();ne.RENDERER=null;var re,oe,se=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return Q(i,e),i.prototype.initialize=function(){var e=this;ne.initialize(this.renderer),this.settings.initialize(this.config,this.routerParams),r.Assets.initialize(this.settings.assetsUrl),this.theme.initialize(this.settings.themes),this.language.initialize(r.Assets.languagesUrl,this.settings.languages),this.language.events.pipe(o.takeUntil(this.destroyed)).subscribe((function(i){switch(i.type){case t.LoadableEvent.COMPLETE:e.languageLoadingComplete(i.data);break;case t.LoadableEvent.ERROR:e.languageLoadingError(i.data,i.error)}}))},i.prototype.isReady=function(){return e.prototype.isReady.call(this)&&this.isLanguageLoaded},i.prototype.languageLoadingComplete=function(e){this.isLanguageLoaded=!0,this.setLocale(e),this.checkReady()},i.prototype.viewReadyHandler=function(){this.initialize()},i.prototype.setLocale=function(e){q.default.locale(e.locale),Y.default.locale(e.locale),n.isNil(this.dateAdapter)||this.dateAdapter.setLocale(e.locale)},i}(ie),ae=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return Q(i,e),i.prototype.initialize=function(){var e=this;r.Assets.initialize(this.settings.assetsUrl),ne.initialize(this.renderer),this.theme.initialize(this.settings.themes),this.language.initialize(r.Assets.languagesUrl,this.settings.languages),this.language.events.pipe(o.takeUntil(this.destroyed)).subscribe((function(i){switch(i.type){case t.LoadableEvent.COMPLETE:e.languageLoadingComplete(i.data);break;case t.LoadableEvent.ERROR:e.languageLoadingError(i.data,i.error)}}))},i.prototype.isReady=function(){return e.prototype.isReady.call(this)&&this.isLanguageLoaded},i.prototype.languageLoadingComplete=function(e){this.isLanguageLoaded=!0,this.setLocale(e),this.checkReady()},i.prototype.viewReadyHandler=function(){this.initialize()},i.prototype.setLocale=function(e){q.default.locale(e.locale),Y.default.locale(e.locale)},i}(ie),le=function(e){function t(t,i){var n=e.call(this)||this;return n.route=t,n.language=i,n.refreshText="Refresh",n.text=n.getText(),n.language.isLoaded&&n.commitLanguageProperties(),i.completed.pipe(o.takeUntil(n.destroyed)).subscribe((function(){return n.commitLanguageProperties()})),n}return Q(t,e),t.prototype.commitLanguageProperties=function(){this.language.isHasTranslation("general.refresh")&&(this.refreshText=this.language.translate("general.refresh"))},t.prototype.getText=function(){var e=this.getValue(this.route.snapshot.queryParams);return n.isNil(e)&&(e=this.getValue(this.route.snapshot.params)),e},t.prototype.getValue=function(e){var t,i;try{for(var r=J(this.getMessageFields()),o=r.next();!o.done;o=r.next()){var s=e[o.value];if(!n.isEmpty(s))return s}}catch(e){t={error:e}}finally{try{o&&!o.done&&(i=r.return)&&i.call(r)}finally{if(t)throw t.error}}return null},t.prototype.getMessageFields=function(){return["text","message","error"]},t}(t.DestroyableContainer);(re=e.QuestionMode||(e.QuestionMode={})).INFO="INFO",re.QUESTION="QUESTION",(oe=e.QuestionEvent||(e.QuestionEvent={})).YES="YES",oe.NOT="NOT",oe.CLOSE="CLOSE",oe.CHECK="CHECK",oe.UNCHECK="UNCHECK";var ce,ue=function(t){function r(r){var o=t.call(this)||this;return o._isChecked=!1,o._closePromise=i.PromiseHandler.create(),o._yesNotPromise=i.PromiseHandler.create(),o.yesText="Yes",o.notText="Not",o.closeText="Close",o.checkText="Check",o.options=n.assign({mode:e.QuestionMode.INFO,isChecked:!1,yesTextId:"general.yes",notTextId:"general.not",closeTextId:"general.close"},r),o.text=o.options.text,o.mode=o.options.mode,o}return Q(r,t),r.prototype.closeClickHandler=function(){this._closePromise.resolve()},r.prototype.yesClickHandler=function(){this._yesNotPromise.resolve(),this.closeClickHandler()},r.prototype.notClickHandler=function(){this._yesNotPromise.reject(),this.closeClickHandler()},r.prototype.destroy=function(){this.isDestroyed||(t.prototype.destroy.call(this),this.notClickHandler(),this._yesNotPromise=null,this._closePromise=null)},Object.defineProperty(r.prototype,"yesNotPromise",{get:function(){return this._yesNotPromise.promise},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"closePromise",{get:function(){return this._closePromise.promise},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"isInfo",{get:function(){return this.mode===e.QuestionMode.INFO},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"isQuestion",{get:function(){return this.mode===e.QuestionMode.QUESTION},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"isChecked",{get:function(){return this._isChecked},set:function(e){e!==this._isChecked&&(this._isChecked=e)},enumerable:!1,configurable:!0}),r}(t.Destroyable),pe=function(e){function t(){var t=e.apply(this,te(arguments))||this;return t.isOnTop=!1,t.isDisabled=!1,t.isMinimized=!1,t}return Q(t,e),t}(t.Destroyable);(ce=e.WindowEvent||(e.WindowEvent={})).OPENED="OPENED",ce.CLOSED="CLOSED",ce.CONTENT_READY="CONTENT_READY",ce.MOVED="EVENT_MOVED",ce.RESIZED="RESIZED",ce.DISABLED_CHANGED="DISABLED_CHANGED",ce.MINIMIZED_CHANGED="MINIMIZED_CHANGED",ce.SET_ON_TOP="SET_ON_TOP";var he,de=function(e){function i(t,i,r,o){void 0===t&&(t=!1),void 0===i&&(i=!1),void 0===r&&(r=NaN),void 0===o&&(o=NaN);var s=e.call(this)||this;return s.isResizeable=!1,s.isMinimizable=!1,s.isContentDragable=!0,s.x=NaN,s.y=NaN,s.defaultWidth=NaN,s.defaultMinWidth=NaN,s.defaultMaxWidth=NaN,s.defaultHeight=NaN,s.defaultMinHeight=NaN,s.defaultMaxHeight=NaN,s.paddingTop=NaN,s.paddingLeft=NaN,s.paddingRight=NaN,s.paddingBottom=NaN,s._isModal=!1,s._elementMaxX=NaN,s._elementMinX=NaN,s._elementMaxY=NaN,s._elementMinY=NaN,s._elementMinWidth=NaN,s._elementMaxWidth=NaN,s._elementMinHeight=NaN,s._elementMaxHeight=NaN,s.isModal=s.hasBackdrop=t,s.isResizeable=i,n.isNaN(r)||(s.defaultWidth=r),n.isNaN(o)||(s.defaultHeight=o),s}return Q(i,e),i.prototype.setDefaultProperties=function(){this.width=this.elementWidth,this.maxWidth=this.elementMaxWidth,this.minWidth=this.elementMinWidth,this.height=this.elementHeight,this.maxHeight=this.elementMaxHeight,this.minHeight=this.elementMinHeight},i.prototype.parseX=function(e){return e=Math.max(e,this.elementMinX),e=Math.min(e,this.elementMaxX)},i.prototype.parseY=function(e){return e=Math.max(e,this.elementMinY),e=Math.min(e,this.elementMaxY)},i.prototype.parseWidth=function(e){return e=Math.max(e,this.elementMinWidth),e=Math.min(e,this.elementMaxWidth)},i.prototype.parseHeight=function(e){return e=Math.max(e,this.elementMinHeight),e=Math.min(e,this.elementMaxHeight)},i.prototype.destroy=function(){t.IDestroyable.destroy(this.data),this.data=null},Object.defineProperty(i.prototype,"isModal",{get:function(){return this._isModal},set:function(e){e!==this._isModal&&(this._isModal=e,this.hasBackdrop=e)},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"elementMinY",{get:function(){return n.isNaN(this._elementMinY)?(this._elementMinY=0-ne.getStageHeight(),n.isNaN(this.paddingTop)||(this._elementMinY+=this.paddingTop),this._elementMinY):this._elementMinY},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"elementMaxY",{get:function(){return n.isNaN(this._elementMaxY)?(this._elementMaxY=ne.getStageHeight(),n.isNaN(this.paddingBottom)||(this._elementMaxY-=this.paddingBottom),this._elementMaxY):this._elementMaxY},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"elementMinX",{get:function(){return n.isNaN(this._elementMinX)?(this._elementMinX=-ne.getStageWidth(),n.isNaN(this.paddingLeft)||(this._elementMinX+=this.paddingLeft),this._elementMinX):this._elementMinX},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"elementMaxX",{get:function(){return n.isNaN(this._elementMaxX)?(this._elementMaxX=ne.getStageWidth(),n.isNaN(this.paddingRight)||(this._elementMaxX-=this.paddingRight),this._elementMaxX):this._elementMaxX},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"elementWidth",{get:function(){return this._elementWidth||(this._elementWidth="auto",this.defaultWidth&&(this._elementWidth=this.defaultWidth+"px")),this._elementWidth},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"elementMinWidth",{get:function(){if(!n.isNaN(this._elementMinWidth))return this._elementMinWidth;if(this._elementMinWidth=0,!n.isNaN(this.defaultMinWidth)){var e=ne.getStageWidth();n.isNaN(this.paddingLeft)||(e-=this.paddingLeft),n.isNaN(this.paddingRight)||(e-=this.paddingRight),this._elementMinWidth=Math.min(this.defaultMinWidth,e)}return this._elementMinWidth},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"elementMaxWidth",{get:function(){return n.isNaN(this._elementMaxWidth)?(this._elementMaxWidth=ne.getStageWidth(),n.isNaN(this.paddingLeft)||(this._elementMaxWidth-=this.paddingLeft),n.isNaN(this.paddingRight)||(this._elementMaxWidth-=this.paddingRight),n.isNaN(this.defaultMaxWidth)||(this._elementMaxWidth=Math.min(this.defaultMaxWidth,this._elementMaxWidth)),this._elementMaxWidth):this._elementMaxWidth},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"elementHeight",{get:function(){return this._elementHeight||(this._elementHeight="auto",this.defaultHeight&&(this._elementHeight=this.defaultHeight+"px")),this._elementHeight},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"elementMinHeight",{get:function(){if(!n.isNaN(this._elementMinHeight))return this._elementMinHeight;if(this._elementMinHeight=0,!n.isNaN(this.defaultMinHeight)){var e=ne.getStageHeight();n.isNaN(this.paddingTop)||(e-=this.paddingTop),n.isNaN(this.paddingBottom)||(e-=this.paddingBottom),this._elementMinHeight=Math.min(this.defaultMinHeight,e)}return this._elementMinHeight},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"elementMaxHeight",{get:function(){return n.isNaN(this._elementMaxHeight)?(this._elementMaxHeight=ne.getStageHeight(),n.isNaN(this.paddingTop)||(this._elementMaxHeight-=this.paddingTop),n.isNaN(this.paddingBottom)||(this._elementMaxHeight-=this.paddingBottom),n.isNaN(this.defaultMaxHeight)||(this._elementMaxHeight=Math.min(this.defaultMaxHeight,this._elementMaxHeight)),this._elementMaxHeight):this._elementMaxHeight},enumerable:!1,configurable:!0}),i}(c.MatDialogConfig);(he=e.WindowAlign||(e.WindowAlign={})).START="START",he.CENTER="CENTER",he.END="END";var fe=function(t){function i(e){var i=t.call(this)||this;return i.container=e,i.timerHandler=function(){return i.handleCloseClick()},i}return Q(i,t),i.prototype.commitNotificationProperties=function(){this.config=this.notification.config},i.prototype.commitConfigProperties=function(){this.clearTimer(),this.config.closeDuration>0&&(this.timer=setTimeout(this.timerHandler,this.config.closeDuration))},i.prototype.clearTimer=function(){n.isNil(this.timer)||(clearTimeout(this.timer),this.timer=null)},i.prototype.close=function(){n.isNil(this.notification)||this.notification.close()},i.prototype.remove=function(){n.isNil(this.notification)||this.notification.remove()},i.prototype.emit=function(e){n.isNil(this.notification)||this.notification.emit(e)},i.prototype.destroy=function(){this.isDestroyed||(t.prototype.destroy.call(this),this.clearTimer(),this.config=null,this.notification=null)},i.prototype.ngAfterViewInit=function(){this.emit(e.WindowEvent.CONTENT_READY)},i.prototype.handleCloseClick=function(){this.clearTimer(),!n.isNil(this.config)&&this.config.isRemoveAfterClose?this.remove():this.close()},Object.defineProperty(i.prototype,"data",{get:function(){return this.config?this.config.data:null},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"events",{get:function(){return this.notification?this.notification.events:null},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"notification",{get:function(){return this._notification},set:function(e){e!==this._notification&&(this._notification=e,this._notification&&this.commitNotificationProperties())},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"config",{get:function(){return this._config},set:function(e){e!==this._config&&(this._config=e,this._config&&this.commitConfigProperties())},enumerable:!1,configurable:!0}),i}(t.DestroyableContainer);fe.propDecorators={config:[{type:s.Input}]};var ge=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Q(t,e),t.prototype.commitConfigProperties=function(){var t=this;e.prototype.commitConfigProperties.call(this),this.isInfo&&ne.addClass(this.container,"mouse-active"),this.data.closePromise.then((function(){t.isDestroyed||t.remove()}))},t.prototype.clickHandler=function(){this.isInfo&&this.data.closeClickHandler()},Object.defineProperty(t.prototype,"isInfo",{get:function(){return!!this.data&&this.data.isInfo},enumerable:!1,configurable:!0}),t}(fe);ge.propDecorators={clickHandler:[{type:s.HostListener,args:["click"]}]};var me=function(e){function t(t,i,n){var r=e.call(this,t)||this;return r.language=i,r.notifications=n,ne.addClasses(t.element,"d-block"),ne.setAttribute(t.element,"tabindex","-1"),r}return Q(t,e),t.prototype.commitConfigProperties=function(){e.prototype.commitConfigProperties.call(this),this.language.isHasTranslation(this.data.options.yesTextId)&&(this.data.yesText=this.language.translate(this.data.options.yesTextId)),this.language.isHasTranslation(this.data.options.notTextId)&&(this.data.notText=this.language.translate(this.data.options.notTextId)),this.language.isHasTranslation(this.data.options.checkTextId)&&(this.data.checkText=this.language.translate(this.data.options.checkTextId)),this.language.isHasTranslation(this.data.options.closeTextId)&&(this.data.closeText=this.language.translate(this.data.options.closeTextId))},t.prototype.remove=function(){e.prototype.remove.call(this),n.isNil(this.notification)&&this.notifications.remove(this.config)},t}(ge);me.decorators=[{type:s.Component,args:[{selector:"vi-notification",template:'<p class="text m-4 text-center mouse-inactive text-word-wrap-break-word" [innerHTML]="data?.text"></p>\n\n<div class="text-center border-sm-top p-3" *ngIf="data?.isQuestion">\n\n <button class="mr-3" (click)="data?.yesClickHandler()" tabindex="-1" color="primary" mat-stroked-button>\n <span [innerHTML]="data?.yesText"></span>\n </button>\n\n <button (click)="data?.notClickHandler()" tabindex="-1" mat-stroked-button>\n <span [innerHTML]="data?.notText"></span>\n </button>\n\n</div>',styles:[":host{max-width:280px;min-width:200px;box-sizing:border-box}"]}]}],me.ctorParameters=function(){return[{type:s.ViewContainerRef},{type:h.LanguageService},{type:_e}]};var ye=function(t){function i(){var e=t.call(this)||this;return e._x=NaN,e._width=NaN,e._y=NaN,e._height=NaN,e.updatePosition=function(){return e.setPosition()},e}return Q(i,t),i.prototype.setProperties=function(){var e=this.getConfig();n.isNaN(e.defaultWidth)||(this.width=e.defaultWidth),n.isNaN(e.defaultHeight)||(this.height=e.defaultHeight)},i.prototype.setPosition=function(){var t=this.getConfig();switch(t.horizontalAlign){case e.WindowAlign.START:this.x=n.isNaN(this.paddingLeft)?0:this.paddingLeft;break;case e.WindowAlign.END:var i=ne.getStageWidth()-this.calculateWidth();n.isNaN(this.paddingRight)||(i-=this.paddingRight),this.x=i;break;default:this.x=(ne.getStageWidth()-this.calculateWidth())/2}switch(t.verticalAlign){case e.WindowAlign.START:this.y=n.isNaN(this.paddingTop)?0:this.paddingTop;break;case e.WindowAlign.END:i=ne.getStageHeight()-this.calculateHeight();n.isNaN(this.paddingBottom)||(i-=this.paddingBottom),this.y=i;break;default:this.y=(ne.getStageHeight()-this.calculateHeight())/2}},i.prototype.clearSize=function(){this._x=NaN,this._y=NaN,this._width=NaN,this._height=NaN},i.prototype.commitSizeProperties=function(){var e=n.isNaN(this.width)?"auto":this.width+"px",t=n.isNaN(this.height)?"auto":this.height+"px";this.getReference().updateSize(e,t)},i.prototype.commitPositionProperties=function(){if(!n.isNaN(this._x)||!n.isNaN(this._y)){var e={};n.isNaN(this._y)||(e.top=this._y+"px"),n.isNaN(this._x)||(e.left=this._x+"px"),this.getReference().updatePosition(e)}},i.prototype.calculateWidth=function(){return n.isNaN(this.width)?ne.getWidth(this.getContainer()):this.width},i.prototype.calculateHeight=function(){return n.isNaN(this.height)?ne.getHeight(this.getContainer()):this.height},Object.defineProperty(i.prototype,"width",{get:function(){return this._width},set:function(e){(e=this.getConfig().parseWidth(e))!==this._width&&(this._width=e,this.commitSizeProperties())},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"height",{get:function(){return this._height},set:function(e){(e=this.getConfig().parseHeight(e))!==this._height&&(this._height=e,this.commitSizeProperties())},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"x",{get:function(){return this._x},set:function(e){(e=this.getConfig().parseX(e))!==this._x&&(this._x=e,this.commitPositionProperties())},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"y",{get:function(){return this._y},set:function(e){(e=this.getConfig().parseY(e))!==this._y&&(this._y=e,this.commitPositionProperties())},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"paddingTop",{get:function(){return this.getConfig().paddingTop},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"paddingLeft",{get:function(){return this.getConfig().paddingLeft},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"paddingRight",{get:function(){return this.getConfig().paddingRight},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"paddingBottom",{get:function(){return this.getConfig().paddingBottom},enumerable:!1,configurable:!0}),i}(t.DestroyableContainer),be=function(){};(e.NotificationEvent||(e.NotificationEvent={})).REMOVED="REMOVED";var ve,Ne=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Q(t,e),t}(function(t){function i(i){var n=t.call(this)||this;return n.setClosed=function(){n.emit(e.WindowEvent.CLOSED),n.destroy()},n.setOpened=function(){n.emit(e.WindowEvent.OPENED)},n.observer=new d.Subject,n.properties=i,n.content.notification=n,n._container=n.properties.overlay.overlayElement,n.setProperties(),n.getReference().afterOpened().pipe(f.takeUntil(n.destroyed)).subscribe(n.setOpened),n.getReference().afterClosed().pipe(f.takeUntil(n.destroyed)).subscribe(n.setClosed),n.observer.pipe(f.filter((function(t){return t===e.WindowEvent.CONTENT_READY})),f.takeUntil(n.destroyed)).subscribe(n.updatePosition),n}return Q(i,t),i.prototype.setProperties=function(){t.prototype.setProperties.call(this),ne.addClass(this.container,"vi-notification")},i.prototype.getConfig=function(){return this.properties.config},i.prototype.getContainer=function(){return this.container},i.prototype.getReference=function(){return this.properties.reference},i.prototype.emit=function(e){this.observer.next(e)},i.prototype.close=function(){this.getReference().close()},i.prototype.remove=function(){this.close(),this.observer.next(e.NotificationEvent.REMOVED)},i.prototype.destroy=function(){this.isDestroyed||(t.prototype.destroy.call(this),n.isNil(this.observer)||(this.observer.complete(),this.observer=null),this.properties=null,this._container=null)},i.prototype.getWidth=function(){return this.calculateWidth()},i.prototype.getHeight=function(){return this.calculateHeight()},i.prototype.setWidth=function(e){this.width=e},i.prototype.setHeight=function(e){this.height=e},i.prototype.setSize=function(e,t){this.setWidth(e),this.setHeight(t)},i.prototype.getX=function(){return this.x},i.prototype.setX=function(e){this.x=e},i.prototype.getY=function(){return this.y},i.prototype.setY=function(e){this.y=e},i.prototype.move=function(e,t){this.setX(e),this.setY(t)},Object.defineProperty(i.prototype,"events",{get:function(){return this.observer.asObservable()},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"config",{get:function(){return this.properties.config},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"content",{get:function(){return this.properties.reference?this.properties.reference.componentInstance:null},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"container",{get:function(){return this._container},enumerable:!1,configurable:!0}),i}(ye)),Ee=function(e){function t(t){var i=e.call(this)||this;return i.closeDuration=NaN,i.isRemoveAfterClose=!1,i.data=t,i.isModal=!1,i}return Q(t,e),t}(de),Pe=function(){function e(e){this.classType=e}return e.prototype.create=function(e){return new this.classType(e)},e}(),_e=function(){function t(e,t){this.gapY=25,this.minWidth=25,this.minHeight=25,this.paddingTop=25,this.paddingLeft=25,this.paddingRight=25,this.paddingBottom=25,this.defaultCloseDuration=10*p.DateUtil.MILISECONDS_SECOND,this._configs=[],this._closedConfigs=[],this._notifications=new Map,this.dialog=e,this.language=t,this.observer=new d.Subject,this.factory=new Pe(Ne),this.questionComponent=me}return t.prototype.open=function(t,i){var r=this,o=null;if(!n.isNil(i.id)&&(o=this.getById(i.id)))return o.content;this.setDefaultProperties(i);var s=this.dialog.open(t,i),a=(o=this.factory.create({config:i,reference:s,overlay:s._overlayRef})).events.subscribe((function(t){switch(t){case e.WindowEvent.OPENED:r.add(i,s.componentInstance),r.checkPosition(o),i.sound;break;case e.WindowEvent.CLOSED:a.unsubscribe(),r.close(i);break;case e.NotificationEvent.REMOVED:a.unsubscribe(),r.remove(i)}}));return o.content},t.prototype.getById=function(e){var t=n.find(Array.from(this._notifications.values()),(function(t){return t.config.id===e}));return n.isNil(t)?null:t.notification},t.prototype.setDefaultProperties=function(t){n.isNaN(t.defaultMinWidth)&&(t.defaultMinWidth=this.minWidth),n.isNaN(t.defaultMinHeight)&&(t.defaultMinHeight=this.minHeight),n.isNaN(t.paddingTop)&&(t.paddingTop=this.paddingTop),n.isNaN(t.paddingLeft)&&(t.paddingLeft=this.paddingLeft),n.isNaN(t.paddingRight)&&(t.paddingRight=this.paddingRight),n.isNaN(t.paddingBottom)&&(t.paddingBottom=this.paddingBottom),n.isNaN(t.closeDuration)&&(t.closeDuration=this.defaultCloseDuration),t.verticalAlign=e.WindowAlign.START,t.horizontalAlign=e.WindowAlign.END,t.setDefaultProperties()},t.prototype.checkPosition=function(e){var t=this.getPrevious(e);n.isNil(t)||e.setY(t.getY()+t.getHeight()+this.gapY)},t.prototype.getPrevious=function(e){if(0===this.notifications.size)return null;for(var t=Array.from(this.notifications.values()),i=0;i<t.length;i++)if(t[i].notification===e)return 0===i?null:t[i-1].notification;return null},t.prototype.add=function(t,i){this._configs.push(t),this.observer.next(new u.ObservableData(e.NotificationServiceEvent.ADDED,t)),this._notifications.set(t,i),this.observer.next(new u.ObservableData(e.NotificationServiceEvent.OPENED,i.notification))},t.prototype.get=function(e){var t,i;if(n.isNil(e))return null;if(e instanceof Ee)return e;var r=e.toString();p.ObjectUtil.instanceOf(e,["id"])&&(r=e.id);try{for(var o=J(this.configs),s=o.next();!s.done;s=o.next()){var a=s.value;if(a.id===r)return a}}catch(e){t={error:e}}finally{try{s&&!s.done&&(i=o.return)&&i.call(o)}finally{if(t)throw t.error}}return null},t.prototype.has=function(e){return!n.isNil(this.get(e))},t.prototype.remove=function(t){var i=this.get(t);n.isNil(i)||(this.close(i),p.ArrayUtil.remove(this._configs,i),p.ArrayUtil.remove(this._closedConfigs,i),this.observer.next(new u.ObservableData(e.NotificationServiceEvent.REMOVED,i)),i.destroy())},t.prototype.removeAll=function(){var e=this;this.configs.forEach((function(t){return e.remove(t)}))},t.prototype.close=function(t){var i=this.get(t);if(n.isNil(i))return null;var r=this._notifications.get(i);return n.isNil(r)?null:(r.close(),this._notifications.delete(i),this._closedConfigs.push(i),this.observer.next(new u.ObservableData(e.NotificationServiceEvent.CLOSED,r.notification)),r.notification)},t.prototype.info=function(t,i,r,o){var s=this.language.translate(t,i),a=new ue(n.assign(r,{mode:e.QuestionMode.INFO,text:s})),l=n.assign(new Ee(a),o);return this.open(this.questionComponent,l).config.data},t.prototype.question=function(t,i,r,o){var s=this.language.translate(t,i),a=new ue(n.assign(r,{mode:e.QuestionMode.QUESTION,text:s})),l=n.assign(new Ee(a),o);return this.open(this.questionComponent,l).config.data},Object.defineProperty(t.prototype,"events",{get:function(){return this.observer.asObservable()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"configs",{get:function(){return this._configs},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"closedConfigs",{get:function(){return this._closedConfigs},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"notifications",{get:function(){return this._notifications},enumerable:!1,configurable:!0}),t}();_e.ɵprov=s.ɵɵdefineInjectable({factory:function(){return new _e(s.ɵɵinject(c.MatDialog),s.ɵɵinject(g.LanguageService))},token:_e,providedIn:"root"}),_e.decorators=[{type:s.Injectable,args:[{providedIn:"root"}]}],_e.ctorParameters=function(){return[{type:c.MatDialog},{type:h.LanguageService}]},(ve=e.NotificationServiceEvent||(e.NotificationServiceEvent={})).OPENED="OPENED",ve.CLOSED="CLOSED",ve.ADDED="ADDED",ve.REMOVED="REMOVED";var Ie,Oe=function(t){function i(e,i){var n=t.call(this)||this;return n.notifications=e,n.breakpointObserver=i,n.isNeedSide=!1,n.isHasNotifications=!1,n.isShowMenu=!0,n.isShowNotifications=!1,n}return Q(i,t),i.prototype.initialize=function(){var t=this;this.isHasNotificationsCheck(),this.notifications.events.pipe(o.filter((function(t){return t.type===e.NotificationServiceEvent.CLOSED||t.type===e.NotificationServiceEvent.REMOVED})),o.takeUntil(this.destroyed)).subscribe((function(){return t.isHasNotificationsCheck()})),this.isNeedSideCheck(),this.breakpointObserver.observe(this.sideMediaQueryToCheck).pipe(o.takeUntil(this.destroyed)).subscribe((function(){return t.isNeedSideCheck()}))},i.prototype.isHasNotificationsCheck=function(){this.isHasNotifications=!n.isEmpty(this.notificationItems),this.isHasNotifications||(this.isShowNotifications=!1)},i.prototype.isNeedSideCheck=function(){this.isNeedSide=this.breakpointObserver.isMatched(this.sideMediaQueryToCheck),this.isShowMenu=this.isNeedSide},i.prototype.toggleMenu=function(){this.isNeedSide||(this.isShowMenu=!this.isShowMenu)},i.prototype.toggleNotifications=function(){this.isShowNotifications=!this.isShowNotifications},Object.defineProperty(i.prototype,"sideMediaQueryToCheck",{get:function(){return"(min-width: 1000px)"},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"notificationItems",{get:function(){return this.notifications.closedConfigs},enumerable:!1,configurable:!0}),i}(t.DestroyableContainer),we=function(e){return n.isNil(e)||(Ie=e),Ie},Ce=function(e){function t(t){var i=e.call(this)||this;return i.element=t,i._isUrl=!1,i._isIcon=!1,i._isImage=!1,i._repeat="repeat",i._extension="png",i}return Q(t,e),t.prototype.setStyleProperties=function(){var e=this.getUrl(this.background,this.isImage,this.isIcon,this.isUrl);ne.setBackground(this.element,e,this.repeat)},t.prototype.getUrl=function(e,t,i,o){return n.isNil(e)?null:o?e:t?r.Assets.getImage(e,this.extension):i?r.Assets.getIcon(e,this.extension):r.Assets.getBackground(e,this.extension)},t.prototype.destroy=function(){this.isDestroyed||(e.prototype.destroy.call(this),this.element=null)},Object.defineProperty(t.prototype,"isIcon",{get:function(){return this._isIcon},set:function(e){e!==this._isIcon&&(this._isIcon=e,this.setStyleProperties())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isImage",{get:function(){return this._isImage},set:function(e){e!==this._isImage&&(this._isImage=e,this.setStyleProperties())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isUrl",{get:function(){return this._isUrl},set:function(e){e!==this._isUrl&&(this._isUrl=e,this.setStyleProperties())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"repeat",{get:function(){return this._repeat},set:function(e){e!==this._repeat&&(this._repeat=e,this.setStyleProperties())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"extension",{get:function(){return this._extension},set:function(e){e!==this._extension&&(this._extension=e,this.setStyleProperties())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"background",{get:function(){return this._background},set:function(e){e!==this._background&&(this._background=e,this.setStyleProperties())},enumerable:!1,configurable:!0}),t}(t.Destroyable);Ce.decorators=[{type:s.Directive,args:[{selector:"[vi-asset-background]"}]}],Ce.ctorParameters=function(){return[{type:s.ElementRef}]},Ce.propDecorators={isIcon:[{type:s.Input}],isImage:[{type:s.Input}],isUrl:[{type:s.Input}],repeat:[{type:s.Input}],extension:[{type:s.Input}],background:[{type:s.Input,args:["vi-asset-background"]}]};var Se=function(){function e(){}return e.prototype.transform=function(e,t){return void 0===t&&(t="png"),r.Assets.getBackground(e,t)},e}();Se.decorators=[{type:s.Pipe,args:[{name:"viAssetBackground"}]}];var Te=function(){function e(){}return e.prototype.transform=function(e,t){return void 0===t&&(t="png"),r.Assets.getIcon(e,t)},e}();Te.decorators=[{type:s.Pipe,args:[{name:"viAssetIcon"}]}];var De=function(){function e(){}return e.prototype.transform=function(e,t){return void 0===t&&(t="png"),r.Assets.getImage(e,t)},e}();De.decorators=[{type:s.Pipe,args:[{name:"viAssetImage"}]}];var ke=function(){function e(){}return e.prototype.transform=function(e,t){return r.Assets.getFile(e,t)},e}();ke.decorators=[{type:s.Pipe,args:[{name:"viAssetFile"}]}];var Le=function(){function e(){}return e.prototype.transform=function(e,t){return void 0===t&&(t="mp3"),r.Assets.getSound(e,t)},e}();Le.decorators=[{type:s.Pipe,args:[{name:"viAssetSound"}]}];var Me=function(){function e(){}return e.prototype.transform=function(e,t){return void 0===t&&(t="mp4"),r.Assets.getVideo(e,t)},e}();Me.decorators=[{type:s.Pipe,args:[{name:"viAssetVideo"}]}];var Re=function(){};Re.decorators=[{type:s.NgModule,args:[{imports:[m.CommonModule],declarations:[Ce,De,Te,ke,Le,Me,Se],exports:[Ce,De,Te,ke,Le,Me,Se]}]}];var xe=function(e){function t(t,i){var n=e.call(this)||this;return n.element=t,n.language=i,n._isNeedIcon=!0,n._isNeedLabel=!0,ne.addClasses(t,"d-block"),n}return Q(t,e),t.prototype.commitIsNeedLabelProperties=function(){ne.toggleClass(this.element,"no-label",!this.isNeedLabel)},t.prototype.commitIsNeedIconProperties=function(){ne.toggleClass(this.element,"no-icon",!this.isNeedLabel)},Object.defineProperty(t.prototype,"isNeedIcon",{get:function(){return this._isNeedIcon},set:function(e){e!==this._isNeedIcon&&(this._isNeedIcon=e,this.commitIsNeedIconProperties())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isNeedLabel",{get:function(){return this._isNeedLabel},set:function(e){e!==this._isNeedLabel&&(this._isNeedLabel=e,this.commitIsNeedLabelProperties())},enumerable:!1,configurable:!0}),t}(t.DestroyableContainer);xe.decorators=[{type:s.Component,args:[{selector:"vi-language-selector",template:'<mat-form-field class="d-block no-underline" [title]="\'general.locale\' | viTranslate">\n <mat-select [(ngModel)]="language.language">\n <mat-select-trigger>\n <div class="d-flex text-one-line align-items-center">\n <img class="mr-2 flex-shrink-0" style="height: 22px; width: 24px" [src]="language.language?.locale + \'Language\' | viAssetIcon:\'svg\'" *ngIf="isNeedIcon">\n <p class="text-one-line mouse-inactive flex-grow-1" [innerHTML]="language.language?.name" *ngIf="isNeedLabel"></p>\n </div>\n </mat-select-trigger>\n \n <mat-option *ngFor="let item of language.languages?.collection" [value]="item">\n <div class="d-flex text-one-line align-items-center">\n <img class="mr-2 flex-shrink-0" style="width: 24px" [src]="item.locale + \'Language\' | viAssetIcon:\'svg\'">\n <p class="text-one-line mouse-inactive flex-grow-1" [innerHTML]="item.name"></p>\n </div>\n </mat-option>\n </mat-select>\n</mat-form-field>'}]}],xe.ctorParameters=function(){return[{type:s.ElementRef},{type:h.LanguageService}]},xe.propDecorators={isNeedIcon:[{type:s.Input}],isNeedLabel:[{type:s.Input}]};var Ae=function(e){function i(i){var n=e.call(this)||this;return n.map=i,n.subject=new d.BehaviorSubject(i.collection),i.events.pipe(o.takeUntil(n.destroyed)).subscribe((function(e){switch(e.type){case t.LoadableEvent.COMPLETE:n.parseResponse();break;case y.DataSourceMapCollectionEvent.DATA_LOADED_AND_PARSED:n.parseParsedResponse()}})),n}return Q(i,e),i.prototype.parseResponse=function(){this.subject.next(this.map.collection)},i.prototype.parseParsedResponse=function(){},i.prototype.destroy=function(){this.isDestroyed||(e.prototype.destroy.call(this),this.subject.complete(),this.subject=null,this.map=null)},Object.defineProperty(i.prototype,"dataSource",{get:function(){return this.subject.asObservable()},enumerable:!1,configurable:!0}),i}(t.DestroyableContainer),He=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Q(t,e),t.getSort=function(e){if(n.isNil(e)||n.isEmpty(e.sort))return null;var t=p.ObjectUtil.keys(e.sort)[0];return{active:t,direction:e.sort[t]?"asc":"desc"}},t.applySortEvent=function(e,t){var i=void 0;return"asc"===t.direction&&(i=!0),"desc"===t.direction&&(i=!1),i!==e.sort[t.active]&&(p.ObjectUtil.clear(e.sort),e.sort[t.active]=i,!0)},t.prototype.initialize=function(){e.prototype.initialize.call(this),this._table=this.getTable()},t.prototype.getTable=function(){return new Ae(this)},t.prototype.sortEventHandler=function(e){t.applySortEvent(this,e)&&this.reload()},t.prototype.sortFunction=function(e,t,i){if(n.isEmpty(i.direction))return 0;var r=e[i.active]>t[i.active];return"asc"===i.direction?r?-1:1:r?1:-1},t.prototype.destroy=function(){this.isDestroyed||(e.prototype.destroy.call(this),n.isNil(this._table)||(this._table.destroy(),this._table=null))},Object.defineProperty(t.prototype,"table",{get:function(){return this._table},enumerable:!1,configurable:!0}),t}(y.FilterableDataSourceMapCollection),je=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Q(t,e),t.prototype.initialize=function(){e.prototype.initialize.call(this),this._table=this.getTable()},t.prototype.getTable=function(){return new Ae(this)},t.prototype.sortEventHandler=function(e){He.applySortEvent(this,e)&&this.load()},t.prototype.pageEventHandler=function(e){this.pageIndex=e.pageIndex,this.pageSize=e.pageSize,this.load()},t.prototype.destroy=function(){this.isDestroyed||(e.prototype.destroy.call(this),n.isNil(this._table)||(this._table.destroy(),this._table=null))},Object.defineProperty(t.prototype,"table",{get:function(){return this._table},enumerable:!1,configurable:!0}),t}(y.PaginableDataSourceMapCollection),We=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Q(t,e),t.prototype.initialize=function(){e.prototype.initialize.call(this),this._table=this.getTable()},t.prototype.getTable=function(){return new Ae(this)},t.prototype.sortEventHandler=function(e){He.applySortEvent(this,e)&&this.load()},t.prototype.destroy=function(){e.prototype.destroy.call(this),n.isNil(this._table)||(this._table.destroy(),this._table=null)},Object.defineProperty(t.prototype,"table",{get:function(){return this._table},enumerable:!1,configurable:!0}),t}(y.PaginableBookmarkDataSourceMapCollection),Be=function(e){function t(t){return t=n.assign({path:"/",domain:null,expires:null,secure:!1,httpOnly:!1},t),e.call(this,{options:t})||this}return Q(t,e),t.prototype.has=function(t){return!n.isNil(e.prototype.get.call(this,t))},t.prototype.get=function(t,i){return this.has(t)?e.prototype.get.call(this,t):i},t.prototype.getObject=function(t,i){return this.has(t)?e.prototype.getObject.call(this,t):i},t.prototype.putObject=function(t,i,n){e.prototype.putObject.call(this,t,i,n)},t.prototype.update=function(e,t,i){n.isNil(t)?this.remove(e):this.put(e,t,i)},t.prototype.updateObject=function(e,t,i){n.isNil(t)?this.remove(e):this.putObject(e,t,i)},t}(_.CookieService),ze=function(){function e(){}return e.forRoot=function(t){return{ngModule:e,providers:[{provide:Ve,useValue:t||{}},{provide:Be,deps:[Ve],useFactory:Ue}]}},e}();function Ue(e){return new Be(e)}ze.decorators=[{type:s.NgModule}];var Fe,Ve=new s.InjectionToken("COOKIE_OPTIONS"),Ge=function(){function e(e,t,i,n){var r=this;void 0===i&&(i=0),void 0===n&&(n=!1),this.element=e,this.handler=t,this.delay=i,this.isForceResize=n,this.initialize=function(){r.sensor=new I.ResizeSensor(r.element,r.resizeHandler),r.isForceResize&&r.resizeHandler()},this.callHandler=function(){r.handler()},this.resizeHandler=function(){isNaN(r.delay)||r.delay<=0?r.callHandler():(clearTimeout(r.timer),r.timer=setTimeout(r.callHandler,r.delay))},this.timer=setTimeout(this.initialize)}return e.prototype.destroy=function(){n.isNil(this.timer)||(clearTimeout(this.timer),this.timer=null),n.isNil(this.sensor)||(this.sensor.detach(this.resizeHandler),this.sensor=null),this.handler=null,this.element=null},e}(),qe=function(t){function i(i){var n=t.call(this)||this;return n._ratio=NaN,n.commitResizeProperties=function(){switch(n.direction){case e.Direction.HORIZONTAL:n.width=n.height/n.ratio;break;case e.Direction.VERTICAL:n.height=n.width*n.ratio}},n.element=ne.parseElement(i.nativeElement),n}return Q(i,t),i.prototype.ngAfterViewInit=function(){this.sensor=new Ge(this.element,this.commitResizeProperties,i.UPDATE_DELAY),n.isNaN(this.ratio)&&(this.ratio=4/3)},i.prototype.destroy=function(){this.isDestroyed||(t.prototype.destroy.call(this),this.element=null,n.isNil(this.sensor)||(this.sensor.destroy(),this.sensor=null))},Object.defineProperty(i.prototype,"width",{get:function(){return ne.getWidth(this.element)},set:function(e){ne.setWidth(this.element,e,!0)},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"height",{get:function(){return ne.getHeight(this.element)},set:function(e){ne.setHeight(this.element,e,!0)},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"direction",{get:function(){return this._direction},set:function(e){e===this._direction||n.isNil(e)||(this._direction=e,this.commitResizeProperties())},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"ratio",{get:function(){return this._ratio},set:function(e){e!==this._ratio&&(this._ratio=e,this.commitResizeProperties())},enumerable:!1,configurable:!0}),i}(t.DestroyableContainer);qe.UPDATE_DELAY=100,qe.decorators=[{type:s.Directive,args:[{selector:"[vi-aspect-ratio]"}]}],qe.ctorParameters=function(){return[{type:s.ElementRef}]},qe.propDecorators={direction:[{type:s.Input,args:["vi-aspect-ratio"]}],ratio:[{type:s.Input}]},(Fe=e.Direction||(e.Direction={})).VERTICAL="VERTICAL",Fe.HORIZONTAL="HORIZONTAL";var Ye=function(e){function t(i){var n=e.call(this)||this;return n.scrolled=new s.EventEmitter,n.delay=100,n.isInitialized=!1,n._scrollValue=0,n.scrollChanged=function(){n.scrollChangedHandler()},n.initializeHandler=function(){n.initialize()},n.element=ne.parseElement(i),n.timer=setTimeout(n.initializeHandler,t.INITIALIZATION_DELAY),n}return Q(t,e),t.prototype.initialize=function(){this.scrollValue&&this.scrollTo(this.scrollValue),this.isInitialized=!0},t.prototype.scrollTo=function(e){this._scrollValue=e,this.element.scrollTop=e},t.prototype.scrollHandler=function(){this.isInitialized&&(clearTimeout(this.timer),this.timer=setTimeout(this.scrollChanged,this.delay))},t.prototype.scrollChangedHandler=function(){this._scrollValue=this.scrollTop,this.scrolled.next(this._scrollValue)},Object.defineProperty(t.prototype,"scrollTop",{get:function(){return this.element.scrollTop},enumerable:!1,configurable:!0}),t.prototype.destroy=function(){this.isDestroyed||(e.prototype.destroy.call(this),this.element=null,this.isInitialized=!1,clearTimeout(this.timer),this.timer=null,this._scrollValue=0)},Object.defineProperty(t.prototype,"scrollValue",{get:function(){return this._scrollValue},set:function(e){e===this._scrollValue||n.isNaN(e)||(this._scrollValue=e,this.isInitialized&&this.scrollTo(e))},enumerable:!1,configurable:!0}),t}(t.Destroyable);Ye.INITIALIZATION_DELAY=1,Ye.decorators=[{type:s.Directive,args:[{selector:"[vi-scroll]"}]}],Ye.ctorParameters=function(){return[{type:s.ElementRef}]},Ye.propDecorators={scrolled:[{type:s.Output}],delay:[{type:s.Input}],scrollHandler:[{type:s.HostListener,args:["scroll"]}],scrollValue:[{type:s.Input}]};var Xe=function(e){function t(){var t=e.apply(this,te(arguments))||this;return t.top=new s.EventEmitter,t.bottom=new s.EventEmitter,t.elementHeight=50,t}return Q(t,e),t.prototype.scrollChangedHandler=function(){if(e.prototype.scrollChangedHandler.call(this),this.isInitialized){var t=this.scrollTop;t+this.clientHeight+this.elementHeight>=this.scrollHeight?this.bottom.next(t):t<=this.elementHeight&&this.top.next(t)}},t.prototype.destroy=function(){this.isDestroyed||(e.prototype.destroy.call(this),this.top=null,this.bottom=null)},Object.defineProperty(t.prototype,"clientHeight",{get:function(){return this.element.clientHeight},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"scrollHeight",{get:function(){return this.element.scrollHeight},enumerable:!1,configurable:!0}),t}(Ye);Xe.decorators=[{type:s.Directive,args:[{selector:"[vi-infinite-scroll]"}]}],Xe.propDecorators={top:[{type:s.Output}],bottom:[{type:s.Output}],elementHeight:[{type:s.Input}]};var Ze=function(e){function t(){var t=e.apply(this,te(arguments))||this;return t.triggerChanged=new s.EventEmitter,t.triggerDelta=0,t.isScrollLocked=!1,t.isNeedScroll=!0,t.isNeedRemainScroll=!1,t.checkTrigger=function(){t.isScrollLocked=!1,t.isNeedScroll?t.scrollBottom():t.isNeedRemainScroll?t.scrollRemain():t.triggerDelta>0&&(t.triggerDelta=0,t.triggerChanged.emit())},t}return Q(t,e),t.prototype.initialize=function(){this._scrollValue||(this._scrollValue=this.scrollHeight),e.prototype.initialize.call(this)},t.prototype.scrollRemain=function(){this.isNeedRemainScroll=!1,this.scrollTo(this.scrollHeight-this.lastScrollHeight)},t.prototype.scrollBottom=function(){this.scrollTo(this.scrollHeight)},t.prototype.scrollChangedHandler=function(){if(e.prototype.scrollChangedHandler.call(this),this.isInitialized&&!this.isScrollLocked){var t=this.scrollTop,i=t+this.clientHeight+this.elementHeight;this.isNeedScroll=i>=this.scrollHeight,this.isNeedRemainScroll=t<=this.elementHeight,this.isNeedRemainScroll&&(this.lastScrollHeight=this.scrollHeight)}},t.prototype.destroy=function(){this.isDestroyed||(e.prototype.destroy.call(this),clearTimeout(this.triggerTimer),this.triggerTimer=null,this.trigger=null)},Object.defineProperty(t.prototype,"trigger",{set:function(e){e!==this._trigger&&(isNaN(this._trigger)||isNaN(e)||(this.triggerDelta=e-this._trigger),this._trigger=e,this.isInitialized&&(this.isScrollLocked=!0,clearTimeout(this.triggerTimer),this.triggerTimer=setTimeout(this.checkTrigger,Xe.INITIALIZATION_DELAY)))},enumerable:!1,configurable:!0}),t}(Xe);Ze.decorators=[{type:s.Directive,args:[{selector:"[vi-auto-scroll-bottom]"}]}],Ze.propDecorators={triggerChanged:[{type:s.Output}],trigger:[{type:s.Input,args:["vi-auto-bottom-scroll"]}]};var Qe=function(e){function t(){var t=e.apply(this,te(arguments))||this;return t.selectionRemove=function(){return ne.selectContent(null)},t}return Q(t,e),t.prototype.clickHandler=function(e){ne.selectContent(this.element,!0),clearTimeout(this.selectionClearTimer),this.selectionClearTimer=setTimeout(this.selectionRemove,p.DateUtil.MILISECONDS_SECOND/2)},t.prototype.destroy=function(){this.isDestroyed||(e.prototype.destroy.call(this),this.element=null,clearTimeout(this.selectionClearTimer))},t}(t.Destroyable);Qe.decorators=[{type:s.Directive,args:[{selector:"[vi-click-to-copy]"}]}],Qe.propDecorators={element:[{type:s.Input,args:["vi-click-to-copy"]}],clickHandler:[{type:s.HostListener,args:["click",["$event"]]}]};var Ke=function(e){function t(t){var i=e.call(this)||this;return i.element=ne.parseElement(t.nativeElement),i}return Q(t,e),t.prototype.clickHandler=function(e){e.detail>=3&&ne.selectContent(this.element,!0)},t.prototype.destroy=function(){this.isDestroyed||(e.prototype.destroy.call(this),this.element=null)},t}(t.Destroyable);Ke.decorators=[{type:s.Directive,args:[{selector:"[vi-click-to-select]"}]}],Ke.ctorParameters=function(){return[{type:s.ElementRef}]},Ke.propDecorators={clickHandler:[{type:s.HostListener,args:["click",["$event"]]}]};var $e=function(e){function t(t,i){void 0===i&&(i=100);var r=e.call(this)||this;return r.focusElement=function(){n.isNil(r.element)||ne.focusInput(r.element)},r.delay=i,r.element=ne.parseElement(t),r}return Q(t,e),t.prototype.focus=function(){clearTimeout(this.timer),this.timer=setTimeout(this.focusElement,this.delay)},t.prototype.destroy=function(){this.isDestroyed||(e.prototype.destroy.call(this),n.isNil(this.timer)||(clearTimeout(this.timer),this.timer=null),this.element=null)},t}(t.Destroyable),Je=function(e){function t(t){var i=e.call(this)||this;return i.focus=function(){return i.manager.focus()},i.manager=new $e(t),i}return Q(t,e),t.prototype.destroy=function(){this.isDestroyed||(e.prototype.destroy.call(this),this.manager.destroy(),this.manager=null)},Object.defineProperty(t.prototype,"trigger",{set:function(e){this.focus()},enumerable:!1,configurable:!0}),t}(t.Destroyable);Je.decorators=[{type:s.Directive,args:[{selector:"[vi-focus]"}]}],Je.ctorParameters=function(){return[{type:s.ElementRef}]},Je.propDecorators={trigger:[{type:s.Input,args:["vi-focus"]}]};var et=function(e){function t(t){var i=e.call(this)||this;return i.element=t,i}return Q(t,e),t.prototype.focusHandler=function(){ne.selectContent(this.element.nativeElement)},t.prototype.destroy=function(){this.isDestroyed||(e.prototype.destroy.call(this),this.element=null)},t}(t.Destroyable);et.decorators=[{type:s.Directive,args:[{selector:"[vi-select-on-focus]"}]}],et.ctorParameters=function(){return[{type:s.ElementRef}]},et.propDecorators={focusHandler:[{type:s.HostListener,args:["focus"]}]};var tt=function(e){function t(t){var i=e.call(this)||this;return i.element=t,i}return Q(t,e),t.prototype.commitValueProperties=function(){var e=this.value;n.isEmpty(e)||(e=(e=e.replace(/<br\s*[\/]?>/g,"\n")).replace(/<[^>]*>/g,"")),ne.setProperty(this.element,"title",e),ne.setProperty(this.element,"innerHTML",this.value)},t.prototype.destroy=function(){this.isDestroyed||(e.prototype.destroy.call(this),this._value=null)},Object.defineProperty(t.prototype,"value",{get:function(){return this._value},set:function(e){e!==this._value&&(this._value=e,n.isNil(e)||this.commitValueProperties())},enumerable:!1,configurable:!0}),t}(t.Destroyable);tt.decorators=[{type:s.Directive,args:[{selector:"[vi-html-content-title]"}]}],tt.ctorParameters=function(){return[{type:s.ElementRef}]},tt.propDecorators={value:[{type:s.Input,args:["vi-html-content-title"]}]};var it=function(e){function t(t){var i=e.call(this)||this;i.resize=new s.EventEmitter,i.isTop=!1,i.isLeft=!1,i.isRight=!1,i.isBottom=!1,i.resizeHandler=function(e){0===e.dx&&0===e.dy||i.resize.emit(e)},i.interactable=X.default(ne.parseElement(t));var n={};return n.top=i.isTop,n.left=i.isLeft,n.right=i.isRight,n.bottom=i.isBottom,i.interactable.resizable(n),i.interactable.on("resizemove",i.resizeHandler),i}return Q(t,e),t.prototype.destroy=function(){this.isDestroyed||(e.prototype.destroy.call(this),n.isNil(this.interactable)||(this.interactable.unset(),this.interactable=null))},t}(t.Destroyable);it.decorators=[{type:s.Directive,args:[{selector:"[vi-resize]"}]}],it.ctorParameters=function(){return[{type:s.ElementRef}]},it.propDecorators={resize:[{type:s.Output}],isTop:[{type:s.Input}],isLeft:[{type:s.Input}],isRight:[{type:s.Input}],isBottom:[{type:s.Input}]};var nt=function(e){function t(t){var i=e.call(this)||this;return i.language=t,i.languageRangeLabel=function(e,t,n){var r={current:"0",total:"0"};if(0===n||0===t)r.total=n.toString();else{var o=e*t,s=o<(n=Math.max(n,0))?Math.min(o+t,n):o+t;r.current=o+1+" – "+s,r.total=n.toString()}return i.language.translate("paginator.pageRange",r)},i.commitLanguageProperties(),i.subscription=i.language.completed.subscribe((function(){return i.commitLanguageProperties()})),i}return Q(t,e),t.prototype.commitLanguageProperties=function(){this.lastPageLabel=this.language.translate("paginator.lastPage"),this.nextPageLabel=this.language.translate("paginator.nextPage"),this.firstPageLabel=this.language.translate("paginator.firstPage"),this.previousPageLabel=this.language.translate("paginator.previousPage"),this.itemsPerPageLabel=this.language.translate("paginator.itemsPerPage"),this.getRangeLabel=this.languageRangeLabel},t.prototype.ngOnDestroy=function(){n.isNil(this.subscription)||(this.subscription.unsubscribe(),this.subscription=null)},t}(w.MatPaginatorIntl),rt=function(e){function t(t){var i=e.call(this)||this;return i.language=t,i.valueUpdate=function(){i._value=i.language.translate(i.key,i.params)},t.completed.pipe(o.takeUntil(i.destroyed)).subscribe(i.valueUpdate),i}return Q(t,e),t.prototype.transform=function(e,t){return this.key=e,this.params=t,n.isNil(this._value)&&this.valueUpdate(),this._value},t.prototype.destroy=function(){this.isDestroyed||(e.prototype.destroy.call(this),this.language=null,this.key=null,this.params=null)},t}(t.DestroyableContainer);rt.decorators=[{type:s.Pipe,args:[{name:"viTranslate",pure:!1}]}],rt.ctorParameters=function(){return[{type:h.LanguageService}]};var ot=function(e){function t(t){var i=e.call(this)||this;return i.language=t,i}return Q(t,e),t.prototype.transform=function(e,t){return this.language.translate(e,t)},t.prototype.destroy=function(){this.isDestroyed||(e.prototype.destroy.call(this),this.language=null)},t}(t.DestroyableContainer);ot.decorators=[{type:s.Pipe,args:[{name:"viTranslatePure"}]}],ot.ctorParameters=function(){return[{type:h.LanguageService}]};var st=function(){function e(e){this.language=e}return e.prototype.resolve=function(e,n){if(this.language.isLoaded)return Promise.resolve();var r=i.PromiseHandler.create(),o=this.language.events.subscribe((function(e){e.type===t.LoadableEvent.COMPLETE?r.resolve():e.type===t.LoadableEvent.ERROR?r.reject(e.error.toString()):e.type===t.LoadableEvent.FINISHED&&o.unsubscribe()}));return r.promise},e}(),at=function(e){function t(t){return e.call(this,t)||this}return Q(t,e),t}(st);at.ɵprov=s.ɵɵdefineInjectable({factory:function(){return new at(s.ɵɵinject(g.LanguageService))},token:at,providedIn:"root"}),at.decorators=[{type:s.Injectable,args:[{providedIn:"root"}]}],at.ctorParameters=function(){return[{type:h.LanguageService}]};var lt=function(e){function t(t,i){var n=e.call(this)||this;return n.element=t,n.language=i,i.completed.pipe(o.takeUntil(n.destroyed)).subscribe((function(){return n.translate})),n}return Q(t,e),t.prototype.translate=function(){if(!n.isNil(this.key)){var e=this.language.translate(this.key,this.params);ne.setProperty(this.element,"innerHTML",e),this.isNeedTitle&&ne.setProperty(this.element,"title",e)}},t.prototype.destroy=function(){this.isDestroyed||(e.prototype.destroy.call(this),this.language=null,this._key=null,this._params=null)},Object.defineProperty(t.prototype,"key",{get:function(){return this._key},set:function(e){e!==this._key&&(this._key=e,n.isNil(e)||this.translate())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"params",{get:function(){return this._params},set:function(e){e!==this._params&&(this._params=e,this.translate())},enumerable:!1,configurable:!0}),t}(t.Destroyable);lt.decorators=[{type:s.Directive,args:[{selector:"[vi-translate]"}]}],lt.ctorParameters=function(){return[{type:s.ElementRef},{type:h.LanguageService}]},lt.propDecorators={isNeedTitle:[{type:s.Input}],key:[{type:s.Input,args:["vi-translate"]}],params:[{type:s.Input}]};var ct=function(e){function t(t){var i=e.call(this)||this;return i.language=t,i.valueUpdate=function(){i._value=i.language.isHasTranslation(i.key)},t.completed.pipe(o.takeUntil(i.destroyed)).subscribe(i.valueUpdate),i}return Q(t,e),t.prototype.transform=function(e){return this.key=e,n.isNil(this._value)&&this.valueUpdate(),this._value},t.prototype.destroy=function(){this.isDestroyed||(e.prototype.destroy.call(this),this.language=null,this.key=null)},t}(t.DestroyableContainer);ct.decorators=[{type:s.Pipe,args:[{name:"viTranslateHas",pure:!1}]}],ct.ctorParameters=function(){return[{type:h.LanguageService}]};var ut=function(e){function t(t){var i=e.call(this)||this;return i.language=t,i}return Q(t,e),t.prototype.transform=function(e){return this.language.isHasTranslation(e)},t.prototype.destroy=function(){this.isDestroyed||(e.prototype.destroy.call(this),this.language=null)},t}(t.DestroyableContainer);ut.decorators=[{type:s.Pipe,args:[{name:"viTranslateHasPure",pure:!0}]}],ut.ctorParameters=function(){return[{type:h.LanguageService}]};var pt=function(e){function t(t,i,n){var r=e.call(this)||this;return r.template=t,r.container=i,r.language=n,r.isOnlyIfNotEmpty=!1,n.completed.pipe(o.takeUntil(r.destroyed)).subscribe((function(){return r.check()})),r}return Q(t,e),t.prototype.check=function(){var e=!1,t=!1;if(!n.isNil(this.key)&&this.language.isHasTranslation(this.key,this.isOnlyIfNotEmpty)?n.isNil(this.view)&&(e=!0):n.isNil(this.view)||(t=!0),e)this.view=this.container.createEmbeddedView(this.template);else if(t){var i=this.container.indexOf(this.view);i>=0&&(this.container.remove(i),this.view=null)}},t.prototype.destroy=function(){this.isDestroyed||(e.prototype.destroy.call(this),this.language=null,this._key=null)},Object.defineProperty(t.prototype,"key",{get:function(){return this._key},set:function(e){e!==this._key&&(this._key=e,this.check())},enumerable:!1,configurable:!0}),t}(t.Destroyable);pt.decorators=[{type:s.Directive,args:[{selector:"[viTranslateHas]"}]}],pt.ctorParameters=function(){return[{type:s.TemplateRef},{type:s.ViewContainerRef},{type:h.LanguageService}]},pt.propDecorators={isOnlyIfNotEmpty:[{type:s.Input}],key:[{type:s.Input,args:["viTranslateHas"]}]};var ht=function(){function e(){}return e.forRoot=function(t){return{ngModule:e,providers:[{provide:ft,useValue:t||{}},{provide:h.LanguageService,deps:[Be,ft],useFactory:dt},{provide:at,deps:[h.LanguageService],useClass:at},{provide:w.MatPaginatorIntl,deps:[h.LanguageService],useClass:nt}]}},e}();function dt(e,t){return!n.isNil(t)&&n.isNil(t.service)&&(t.service=e),new h.LanguageService(t)}ht.decorators=[{type:s.NgModule,args:[{imports:[ze],declarations:[rt,ot,ct,ut,pt,lt],exports:[rt,ot,ct,ut,pt,lt]}]}];var ft=new s.InjectionToken("LANGUAGE_OPTIONS"),gt=function(){function e(e){this.classType=e}return e.prototype.create=function(e){return new this.classType(e)},e}(),mt=function(t){function i(n){var r=t.call(this)||this;return r._isBlink=!1,r._isShaking=!1,r._isOnTop=!1,r._isDisabled=!1,r._isMinimized=!1,r.isOpened=!1,r.isWasOnTop=!1,r.setClosed=function(){r.isOpened=!1,r.emit(e.WindowEvent.CLOSED),r.destroy()},r.setOpened=function(){r.isOpened=!0,r.emit(e.WindowEvent.OPENED)},r.blinkToggle=function(){r.isBlink=!r.isBlink},r.stopShaking=function(){r.isShaking=!1},r.emitResize=function(){r.emit(e.WindowEvent.RESIZED)},r.resizeHandler=function(){r.isOpened&&(clearTimeout(r.resizeTimer),r.resizeTimer=setTimeout(r.emitResize,i.RESIZE_DELAY))},r.mouseDownHandlerProxy=function(e){r.mouseDownHandler(e)},r.mouseClickHandlerProxy=function(e){r.mouseClickHandler(e)},r.observer=new d.Subject,r.properties=n,r.content.window=r,r._wrapper=r.properties.overlay.hostElement,r._backdrop=r.properties.overlay.backdropElement,r._container=r.properties.overlay.overlayElement,r.setProperties(),r.getReference().afterOpened().pipe(f.takeUntil(r.destroyed)).subscribe(r.setOpened),r.getReference().afterClosed().pipe(f.takeUntil(r.destroyed)).subscribe(r.setClosed),r.events.pipe(f.filter((function(t){return t===e.WindowEvent.CONTENT_READY})),f.takeUntil(r.destroyed)).subscribe(r.updatePosition),r}return Q(i,t),i.prototype.setProperties=function(){t.prototype.setProperties.call(this),ne.addClass(this.container,"vi-window"),ne.toggleClass(this.container,"vi-modal",this.config.isModal),this.config.isModal||(this.container.addEventListener("click",this.mouseClickHandlerProxy,!0),this.container.addEventListener("mousedown",this.mouseDownHandlerProxy))},i.prototype.commitIsBlinkProperties=function(){},i.prototype.commitIsShakingProperties=function(){},i.prototype.commitIsDisabledProperties=function(){},i.prototype.commitIsMinimizedProperties=function(){},i.prototype.getConfig=function(){return this.properties.config},i.prototype.getContainer=function(){return this.container},i.prototype.getReference=function(){return this.properties.reference},i.prototype.isNeedClickStopPropagation=function(e){return!this.isWasOnTop},i.prototype.stopBlinkIfNeed=function(){this.isBlink=!1,this.blinkTimer&&(clearInterval(this.blinkTimer),this.blinkTimer=null)},i.prototype.mouseDownHandler=function(e){this.setOnTop()},i.prototype.mouseClickHandler=function(e){this.isNeedClickStopPropagation(e)&&e.stopPropagation(),this.isWasOnTop||(this.isWasOnTop=!0)},i.prototype.emit=function(e){this.observer.next(e)},i.prototype.close=function(){this.getReference().close()},i.prototype.destroy=function(){this.isDestroyed||(t.prototype.destroy.call(this),this._container.removeEventListener("click",this.mouseClickHandlerProxy,!0),this._container.removeEventListener("mousedown",this.mouseDownHandlerProxy),n.isNil(this.content)||this.content.destroy(),n.isNil(this.observer)||(this.observer.complete(),this.observer=null),this.properties=null,this._wrapper=null,this._backdrop=null,this._container=null,clearInterval(this.blinkTimer),this.blinkTimer=null,clearInterval(this.shakeTimer),this.shakeTimer=null,clearTimeout(this.resizeTimer),this.resizeTimer=null)},i.prototype.blink=function(){clearInterval(this.blinkTimer),this.blinkTimer=setInterval(this.blinkToggle,i.BLINK_DELAY)},i.prototype.shake=function(){this.isShaking||(this.isShaking=!0,clearInterval(this.shakeTimer),this.shakeTimer=setInterval(this.stopShaking,i.SHAKE_DELAY))},i.prototype.setOnTop=function(){this.isWasOnTop=this.isOnTop,this.emit(e.WindowEvent.SET_ON_TOP)},i.prototype.getWidth=function(){return this.width},i.prototype.getHeight=function(){return this.height},i.prototype.setWidth=function(e,t){void 0===t&&(t=!0),this.width=e,t&&this.resizeHandler()},i.prototype.setHeight=function(e,t){void 0===t&&(t=!0),this.height=e,t&&this.resizeHandler()},i.prototype.setSize=function(e,t){this.setWidth(e,!1),this.setHeight(t,!1),this.resizeHandler()},i.prototype.getX=function(){return this.x},i.prototype.setX=function(t,i){void 0===i&&(i=!0),this.x=t,i&&this.emit(e.WindowEvent.MOVED)},i.prototype.getY=function(){return this.y},i.prototype.setY=function(t,i){void 0===i&&(i=!0),this.y=t,i&&this.emit(e.WindowEvent.MOVED)},i.prototype.move=function(t,i){this.setX(t,!1),this.setY(i,!1),this.emit(e.WindowEvent.MOVED)},Object.defineProperty(i.prototype,"isBlink",{get:function(){return this._isBlink},set:function(e){e!==this._isBlink&&(this._isBlink=e,this.commitIsBlinkProperties())},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"isShaking",{get:function(){return this._isShaking},set:function(e){e!==this._isShaking&&(this._isShaking=e,this.commitIsShakingProperties())},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"events",{get:function(){return this.observer.asObservable()},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"config",{get:function(){return this.properties.config},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"content",{get:function(){return this.properties.reference?this.properties.reference.componentInstance:null},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"container",{get:function(){return this._container},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"wrapper",{get:function(){return this._wrapper},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"backdrop",{get:function(){return this._backdrop},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"isOnTop",{get:function(){return this._isOnTop},set:function(e){e!==this._isOnTop&&(this._isOnTop=e,clearInterval(this.blinkTimer),this.isBlink=!1)},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"isMinimized",{get:function(){return this._isMinimized},set:function(t){t!==this._isMinimized&&(this._isMinimized=t,this.commitIsMinimizedProperties(),this.emit(e.WindowEvent.MINIMIZED_CHANGED),this.stopBlinkIfNeed())},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"isDisabled",{get:function(){return this._isDisabled},set:function(t){t!==this._isDisabled&&(this._isDisabled=t,this.commitIsDisabledProperties(),this.emit(e.WindowEvent.DISABLED_CHANGED))},enumerable:!1,configurable:!0}),i}(ye);mt.BLINK_DELAY=500,mt.SHAKE_DELAY=500,mt.RESIZE_DELAY=200;var yt=function(t){function i(i){var n=t.call(this)||this;return n._isBlink=!1,n._isDisabled=!1,n.setClosed=function(){n.emit(e.WindowEvent.CLOSED),n.destroy()},n.setOpened=function(){n.emit(e.WindowEvent.OPENED)},n.blinkToggle=function(){n.isBlink=!n.isBlink},n.mouseDownHandlerProxy=function(e){n.mouseDownHandler(e)},n.mouseClickHandlerProxy=function(e){n.mouseClickHandler(e)},n.observer=new d.Subject,n.properties=i,n.content.window=n,n._wrapper=n.properties.overlay.hostElement,n._backdrop=n.properties.overlay.backdropElement,n._container=n.properties.overlay.overlayElement,n.setProperties(),n.getReference().afterOpened().pipe(f.takeUntil(n.destroyed)).subscribe(n.setOpened),n.getReference().afterDismissed().pipe(f.takeUntil(n.destroyed)).subscribe(n.setClosed),n}return Q(i,t),i.prototype.setProperties=function(){ne.addClass(this.container,"vi-bottom-sheet"),ne.toggleClass(this.container,"vi-modal",this.config.isModal),this.config.isModal||(this.container.addEventListener("click",this.mouseClickHandlerProxy,!0),this.container.addEventListener("mousedown",this.mouseDownHandlerProxy))},i.prototype.commitIsBlinkProperties=function(){},i.prototype.commitIsDisabledProperties=function(){},i.prototype.getConfig=function(){return this.properties.config},i.prototype.getContainer=function(){return this.container},i.prototype.getReference=function(){return this.properties.reference},i.prototype.isNeedClickStopPropagation=function(e){return!1},i.prototype.stopBlinkIfNeed=function(){this.isBlink=!1,this.blinkTimer&&(clearInterval(this.blinkTimer),this.blinkTimer=null)},i.prototype.mouseDownHandler=function(e){this.setOnTop()},i.prototype.mouseClickHandler=function(e){this.isNeedClickStopPropagation(e)&&e.stopPropagation()},i.prototype.emit=function(e){this.observer.next(e)},i.prototype.close=function(){this.getReference().dismiss()},i.prototype.destroy=function(){this.isDestroyed||(t.prototype.destroy.call(this),this._container.removeEventListener("click",this.mouseClickHandlerProxy,!0),this._container.removeEventListener("mousedown",this.mouseDownHandlerProxy),n.isNil(this.content)||this.content.destroy(),n.isNil(this.observer)||(this.observer.complete(),this.observer=null),this.properties=null,this._wrapper=null,this._backdrop=null,this._container=null,clearInterval(this.blinkTimer),this.blinkTimer=null)},i.prototype.blink=function(){clearInterval(this.blinkTimer),this.blinkTimer=setInterval(this.blinkToggle,mt.BLINK_DELAY)},i.prototype.shake=function(){},i.prototype.setOnTop=function(){},i.prototype.getWidth=function(){return NaN},i.prototype.getHeight=function(){return NaN},i.prototype.setWidth=function(e,t){void 0===t&&(t=!0)},i.prototype.setHeight=function(e,t){void 0===t&&(t=!0)},i.prototype.setSize=function(e,t){},i.prototype.getX=function(){return NaN},i.prototype.setX=function(e,t){void 0===t&&(t=!0)},i.prototype.getY=function(){return NaN},i.prototype.setY=function(e,t){void 0===t&&(t=!0)},i.prototype.move=function(e,t){},Object.defineProperty(i.prototype,"reference",{get:function(){return this.properties.reference},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"isBlink",{get:function(){return this._isBlink},set:function(e){e!==this._isBlink&&(this._isBlink=e,this.commitIsBlinkProperties())},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"isShaking",{get:function(){return!1},set:function(e){},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"events",{get:function(){return this.observer.asObservable()},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"config",{get:function(){return this.properties.config},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"content",{get:function(){return n.isNil(this.reference)?null:this.reference.instance},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"container",{get:function(){return this._container},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"wrapper",{get:function(){return this._wrapper},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"backdrop",{get:function(){return this._backdrop},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"isOnTop",{get:function(){return!1},set:function(e){},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"isMinimized",{get:function(){return!1},set:function(e){},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"isDisabled",{get:function(){return this._isDisabled},set:function(t){t!==this._isDisabled&&(this._isDisabled=t,this.commitIsDisabledProperties(),this.emit(e.WindowEvent.DISABLED_CHANGED))},enumerable:!1,configurable:!0}),i}(t.DestroyableContainer);yt.BLINK_DELAY=500,yt.SHAKE_DELAY=500;var bt=function(e){function t(t){var i=e.call(this)||this;return i.element=t,i}return Q(t,e),t.prototype.checkWindowParent=function(){var e=this.getContainer();e&&ne.appendChild(e,this.element.nativeElement)},t.prototype.getContainer=function(){for(var e=ne.parseElement(this.element.nativeElement);e&&"mat-dialog-container"!==e.nodeName.toLowerCase();)e=e.parentElement;return e},t.prototype.createChildren=function(){},t.prototype.destroyChildren=function(){},t.prototype.commitWindowProperties=function(){},t.prototype.ngAfterViewInit=function(){this.createChildren(),this.checkWindowParent()},t.prototype.destroy=function(){this.isDestroyed||(e.prototype.destroy.call(this),this.destroyChildren(),this.element=null,this.window=null)},Object.defineProperty(t.prototype,"nativeElement",{get:function(){return this.element?this.element.nativeElement:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"window",{get:function(){return this._window},set:function(e){e!==this._window&&(this._window=e,this.window&&this.commitWindowProperties())},enumerable:!1,configurable:!0}),t}(t.DestroyableContainer),vt=function(e){function t(t){var i=e.call(this,t)||this;return i.mouseClickHandler=function(e){e.stopPropagation(),n.isNil(i.window)||i.window.close()},i}return Q(t,e),t.prototype.createChildren=function(){e.prototype.createChildren.call(this),n.isNil(t.ICON_VALUE)||ne.setProperty(this.nativeElement,"innerHTML",t.ICON_VALUE),n.isNil(t.ICON_CLASS)||ne.addClasses(this.nativeElement,t.ICON_CLASS),ne.addClass(this.nativeElement,"mouse-active"),this.nativeElement.addEventListener("click",this.mouseClickHandler,!0)},t.prototype.destroyChildren=function(){e.prototype.destroyChildren.call(this),this.nativeElement.removeEventListener("click",this.mouseClickHandler,!0)},t}(bt);vt.ICON_CLASS="fas fa-times",vt.ICON_VALUE=null,vt.decorators=[{type:s.Component,args:[{selector:"vi-bottom-sheet-close-element",template:"",styles:[":host{display:block;position:absolute;color:#fff;background-color:rgba(0,0,0,.4);border-radius:50%;padding:8px;font-size:14px;font-weight:700}:host:hover{background-color:rgba(0,0,0,.6)}:host.small{font-size:10px;padding:4px}"]}]}],vt.ctorParameters=function(){return[{type:s.ElementRef}]};var Nt=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Q(t,e),t.prototype.setProperties=function(){e.prototype.setProperties.call(this),this.createWindowComponents()},t.prototype.createWindowComponents=function(){if(this.content.container instanceof s.ViewContainerRef&&!this.config.disableClose&&!this.closeWindow){var e=this.resolver.resolveComponentFactory(t.CLOSE_COMPONENT);this.closeWindow=this.content.container.createComponent(e),this.closeWindow.instance.window=this}},t.prototype.commitIsBlinkProperties=function(){ne.toggleClass(this.container,this.blinkClass,this.isBlink)},t.prototype.commitIsDisabledProperties=function(){ne.toggleClass(this.container,this.disabledClass,this.isDisabled),ne.toggleClass(this.content.element,this.disabledClass,this.isDisabled),ne.toggleClass(this.content.element.nativeElement.parentElement,this.disabledClass,this.isDisabled)},t.prototype.commitIsShakingProperties=function(){ne.toggleClass(this.container,this.shakingClass,this.isShaking)},t.prototype.isNeedClickStopPropagation=function(t){return!!e.prototype.isNeedClickStopPropagation.call(this,t)&&(!this.closeWindow||this.closeWindow.location.nativeElement!==t.target)},Object.defineProperty(t.prototype,"resolver",{get:function(){return we().get(s.ComponentFactoryResolver)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"blinkClass",{get:function(){return"vi-blink"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"disabledClass",{get:function(){return"vi-disabled"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"minimizedClass",{get:function(){return"vi-minimized"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"shakingClass",{get:function(){return"shake-constant shake-horizontal"},enumerable:!1,configurable:!0}),t.prototype.destroy=function(){this.isDestroyed||(e.prototype.destroy.call(this),this.closeWindow=null)},t}(yt);Nt.CLOSE_COMPONENT=vt;var Et=function(t){function i(e){var i=t.call(this)||this;return i.container=e,i}return Q(i,t),i.prototype.commitWindowProperties=function(){this.commitConfigProperties()},i.prototype.commitConfigProperties=function(){},i.prototype.ngAfterViewInit=function(){this.emit(e.WindowEvent.CONTENT_READY)},i.prototype.ngOnDestroy=function(){},i.prototype.blink=function(){n.isNil(this.window)||this.window.blink()},i.prototype.shake=function(){n.isNil(this.window)||this.window.shake()},i.prototype.emit=function(e){n.isNil(this.window)||this.window.emit(e)},i.prototype.close=function(){n.isNil(this.window)||this.window.close()},i.prototype.destroy=function(){this.isDestroyed||(t.prototype.destroy.call(this),this.window=null,this.container=null)},Object.defineProperty(i.prototype,"data",{get:function(){return n.isNil(this.config)?null:this.config.data},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"isOnTop",{get:function(){return!n.isNil(this.window)&&this.window.isOnTop},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"isMinimized",{get:function(){return!n.isNil(this.window)&&this.window.isMinimized},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"events",{get:function(){return n.isNil(this.window)?null:this.window.events},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"isDisabled",{get:function(){return!n.isNil(this.window)&&this.window.isDisabled},set:function(e){n.isNil(this.window)||(this.window.isDisabled=e)},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"element",{get:function(){return n.isNil(this.container)?null:this.container instanceof s.ViewContainerRef?this.container.element:this.container},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"config",{get:function(){return n.isNil(this.window)?null:this.window.config},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"window",{get:function(){return this._window},set:function(e){e!==this._window&&(this._window=e,n.isNil(e)||this.commitWindowProperties())},enumerable:!1,configurable:!0}),i}(t.DestroyableContainer),Pt=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Q(t,e),t.prototype.commitConfigProperties=function(){var t=this;e.prototype.commitConfigProperties.call(this),this.data.closePromise.then((function(){t.isDestroyed||t.close()}))},t}(Et),_t=function(e){function t(t,i){var n=e.call(this,t)||this;return n.language=i,ne.addClasses(t.element,"d-block"),n}return Q(t,e),t.prototype.commitConfigProperties=function(){e.prototype.commitConfigProperties.call(this),n.isNil(this.data.text)||(this.text=this.data.text.replace(/(?:\r\n|\r|\n)/g,"<br/>")),this.language.isHasTranslation(this.data.options.yesTextId)&&(this.data.yesText=this.language.translate(this.data.options.yesTextId)),this.language.isHasTranslation(this.data.options.notTextId)&&(this.data.notText=this.language.translate(this.data.options.notTextId)),this.language.isHasTranslation(this.data.options.checkTextId)&&(this.data.checkText=this.language.translate(this.data.options.checkTextId)),this.language.isHasTranslation(this.data.options.closeTextId)&&(this.data.closeText=this.language.translate(this.data.options.closeTextId))},t}(Pt);_t.decorators=[{type:s.Component,args:[{template:'<p class="text m-4 text-center mouse-inactive text-word-wrap-break-word" [innerHTML]="text"></p>\n\n<div class="text-center border-sm-top p-3">\n\n <button (click)="data?.closeClickHandler()" mat-stroked-button *ngIf="data?.isInfo">\n <span [innerHTML]="data?.closeText"></span>\n </button>\n\n <button class="mr-3" (click)="data?.yesClickHandler()" color="primary" mat-stroked-button *ngIf="data?.isQuestion">\n <span [innerHTML]="data?.yesText"></span>\n </button>\n\n <button (click)="data?.notClickHandler()" mat-stroked-button *ngIf="data?.isQuestion">\n <span [innerHTML]="data?.notText"></span>\n </button>\n\n</div>'}]}],_t.ctorParameters=function(){return[{type:s.ViewContainerRef},{type:h.LanguageService}]};var It=function(e){function t(t){var i=e.call(this,t)||this;return i.mouseClickHandler=function(e){e.stopPropagation(),n.isNil(i.window)||i.window.close()},i}return Q(t,e),t.prototype.createChildren=function(){e.prototype.createChildren.call(this),n.isNil(t.ICON_VALUE)||ne.setProperty(this.nativeElement,"innerHTML",t.ICON_VALUE),n.isNil(t.ICON_CLASS)||ne.addClasses(this.nativeElement,t.ICON_CLASS),ne.addClass(this.nativeElement,"mouse-active"),this.nativeElement.addEventListener("click",this.mouseClickHandler,!0)},t.prototype.destroyChildren=function(){e.prototype.destroyChildren.call(this),this.nativeElement.removeEventListener("click",this.mouseClickHandler,!0)},t}(bt);It.ICON_CLASS="fas fa-times",It.ICON_VALUE=null,It.decorators=[{type:s.Component,args:[{selector:"vi-window-close-element",template:"",styles:[":host{display:block;position:absolute;color:#fff;background-color:rgba(0,0,0,.4);border-radius:50%;padding:8px;font-size:14px;font-weight:700}:host:hover{background-color:rgba(0,0,0,.6)}:host.small{font-size:10px;padding:4px}"]}]}],It.ctorParameters=function(){return[{type:s.ElementRef}]};var Ot=function(t){function i(e){var r=t.call(this,e)||this;return r.commitIconProperties=function(){var e=r.window.isMinimized?i.ICON_MAXIMIZE_VALUE:i.ICON_MINIMIZE_VALUE;ne.setProperty(r.nativeElement,"innerHTML",e)},r.mouseClickHandler=function(e){e.stopPropagation(),n.isNil(r.window)||(r.window.isMinimized=!r.window.isMinimized)},r}return Q(i,t),i.prototype.commitWindowProperties=function(){var i=this;t.prototype.commitWindowProperties.call(this),this.window.events.pipe(o.takeUntil(this.destroyed)).subscribe((function(t){t===e.WindowEvent.MINIMIZED_CHANGED&&i.commitIconProperties()}))},i.prototype.createChildren=function(){t.prototype.createChildren.call(this),n.isNil(i.ICON_MINIMIZE_VALUE)||ne.setProperty(this.nativeElement,"innerHTML",i.ICON_MINIMIZE_VALUE),n.isNil(i.ICON_CLASS)||ne.addClasses(this.nativeElement,i.ICON_CLASS),ne.addClass(this.nativeElement,"mouse-active"),this.nativeElement.addEventListener("click",this.mouseClickHandler,!0)},i.prototype.destroyChildren=function(){t.prototype.destroyChildren.call(this),this.nativeElement.removeEventListener("click",this.mouseClickHandler,!0)},i}(bt);Ot.ICON_CLASS=null,Ot.ICON_MINIMIZE_VALUE=null,Ot.ICON_MAXIMIZE_VALUE=null,Ot.decorators=[{type:s.Component,args:[{selector:"vi-window-minimize-element",template:"",styles:[":host{display:block;position:absolute;color:#fff;background-color:rgba(0,0,0,.4);border-radius:50%;padding:8px;font-size:14px;font-weight:700}:host:hover{background-color:rgba(0,0,0,.6)}:host.small{font-size:10px;padding:4px}"]}]}],Ot.ctorParameters=function(){return[{type:s.ElementRef}]};var wt=function(e){function t(t){var i=e.call(this,t)||this;return i.mouseClickHandler=function(e){e.stopPropagation(),n.isNil(i.window)||(i.window.isMinimized=!i.window.isMinimized)},i}return Q(t,e),t.prototype.createChildren=function(){e.prototype.createChildren.call(this),n.isNil(t.ICON_VALUE)||ne.setProperty(this.nativeElement,"innerHTML",t.ICON_VALUE),n.isNil(t.ICON_CLASS)||ne.addClasses(this.nativeElement,t.ICON_CLASS),ne.setStyle(this.nativeElement,"cursor","pointer"),this.nativeElement.addEventListener("click",this.mouseClickHandler,!0)},t.prototype.destroyChildren=function(){this.nativeElement.removeEventListener("click",this.mouseClickHandler,!0)},t}(bt);wt.ICON_CLASS="fas fa-arrows-alt",wt.ICON_VALUE=null,wt.decorators=[{type:s.Component,args:[{selector:"vi-window-resize-element",template:"",styles:[":host{display:block;position:absolute;color:#fff;background-color:rgba(0,0,0,.4);border-radius:50%;padding:8px;font-size:14px;font-weight:700}:host:hover{background-color:rgba(0,0,0,.6)}:host.small{font-size:10px;padding:4px}"]}]}],wt.ctorParameters=function(){return[{type:s.ElementRef}]};var Ct=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Q(t,e),t.prototype.setProperties=function(){e.prototype.setProperties.call(this),this.createWindowComponents()},t.prototype.createWindowComponents=function(){if(this.content.container instanceof s.ViewContainerRef){if(!this.config.disableClose&&!this.closeWindow){var e=this.resolver.resolveComponentFactory(t.CLOSE_COMPONENT);this.closeWindow=this.content.container.createComponent(e),this.closeWindow.instance.window=this}if(this.config.isResizeable&&!this.resizedWindow){e=this.resolver.resolveComponentFactory(t.RESIZE_COMPONENT);this.resizedWindow=this.content.container.createComponent(e),this.resizedWindow.instance.window=this}if(this.config.isMinimizable&&!this.minimizeWindow){e=this.resolver.resolveComponentFactory(t.MINIMIZE_COMPONENT);this.minimizeWindow=this.content.container.createComponent(e),this.minimizeWindow.instance.window=this}}},t.prototype.commitIsBlinkProperties=function(){ne.toggleClass(this.container,this.blinkClass,this.isBlink)},t.prototype.commitIsDisabledProperties=function(){ne.toggleClass(this.container,this.disabledClass,this.isDisabled),ne.toggleClass(this.content.element,this.disabledClass,this.isDisabled),ne.toggleClass(this.content.element.nativeElement.parentElement,this.disabledClass,this.isDisabled)},t.prototype.commitIsShakingProperties=function(){ne.toggleClass(this.container,this.shakingClass,this.isShaking)},t.prototype.commitIsMinimizedProperties=function(){ne.toggleClass(this.container,this.minimizedClass,this.isMinimized),ne.toggleClass(this.content.element,this.minimizedClass,this.isMinimized),ne.toggleClass(this.content.element.nativeElement.parentElement,this.minimizedClass,this.isMinimized)},t.prototype.isNeedClickStopPropagation=function(t){return!!e.prototype.isNeedClickStopPropagation.call(this,t)&&(!this.closeWindow||this.closeWindow.location.nativeElement!==t.target)},Object.defineProperty(t.prototype,"resolver",{get:function(){return we().get(s.ComponentFactoryResolver)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"blinkClass",{get:function(){return"vi-blink"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"disabledClass",{get:function(){return"vi-disabled"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"minimizedClass",{get:function(){return"vi-minimized"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"shakingClass",{get:function(){return"shake-constant shake-horizontal"},enumerable:!1,configurable:!0}),t.prototype.destroy=function(){this.isDestroyed||(e.prototype.destroy.call(this),this.closeWindow=null,this.resizedWindow=null,this.minimizeWindow=null)},t}(function(e){function t(){var t=e.apply(this,te(arguments))||this;return t.isWasDragged=!1,t}return Q(t,e),t.prototype.setProperties=function(){if(e.prototype.setProperties.call(this),!this.config.isModal&&(ne.addClass(this.container,"vi-draggable"),this.config.isContentDragable)){this.dragMoveHandlerProxy=this.dragMoveHandler.bind(this),this.dragStartHandlerProxy=this.dragStartHandler.bind(this);this.interactable.draggable({}),this.interactable.on("dragmove",this.dragMoveHandlerProxy),this.interactable.on("dragstart",this.dragStartHandlerProxy)}},t.prototype.isNeedClickStopPropagation=function(t){return this.isWasDragged||e.prototype.isNeedClickStopPropagation.call(this,t)},t.prototype.dragStartHandler=function(e){this.isWasDragged=!0},t.prototype.dragMoveHandler=function(e){var t=this.getX()+e.dx,i=this.getY()+e.dy;this.move(t,i)},t.prototype.mouseClickHandler=function(t){e.prototype.mouseClickHandler.call(this,t),this.isWasDragged=!1},t.prototype.destroy=function(){this.isDestroyed||(e.prototype.destroy.call(this),this.dragMoveHandlerProxy=null,this.dragStartHandlerProxy=null)},t}(function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Q(t,e),t.prototype.setProperties=function(){if(e.prototype.setProperties.call(this),this.config.isResizeable){ne.addClass(this.container,"vi-resizeable"),n.isNil(this.resizeMoveHandlerProxy)&&(this.resizeMoveHandlerProxy=this.resizeMoveHandler.bind(this));var t={top:!0,left:!0,right:!0,bottom:!0},i={};i.edges=t,this.interactable.resizable(i),this.interactable.on("resizemove",this.resizeMoveHandlerProxy)}},t.prototype.resizeMoveHandler=function(e){if(!this.isMinimized&&(0!==e.dx||0!==e.dy)){if(0!==e.dx){var t=this.getWidth();n.isNaN(t)&&(t=this.calculateWidth()),this.setWidth(t+e.dx,!1)}if(0!==e.dy){var i=this.getHeight();n.isNaN(i)&&(i=this.calculateHeight()),this.setHeight(i+e.dy,!1)}this.resizeHandler()}},t.prototype.destroy=function(){this.isDestroyed||(e.prototype.destroy.call(this),this.resizeMoveHandlerProxy=null,n.isNil(this._interactable)||(this._interactable.unset(),this._interactable=null))},Object.defineProperty(t.prototype,"interactable",{get:function(){return n.isNil(this._interactable)&&(this._interactable=X.default(this.container)),this._interactable},enumerable:!1,configurable:!0}),t}(mt)));Ct.CLOSE_COMPONENT=It,Ct.RESIZE_COMPONENT=wt,Ct.MINIMIZE_COMPONENT=Ot;var St=function(t){function i(i,n,r){var o=t.call(this)||this;return o.isNeedCheckPositionAfterOpen=!0,o.gapX=25,o.gapY=25,o.minWidth=100,o.minHeight=100,o.paddingTop=25,o.paddingLeft=25,o.paddingRight=25,o.paddingBottom=25,o.defaultVerticalAlign=e.WindowAlign.CENTER,o.defaultHorizontalAlign=e.WindowAlign.CENTER,o.topZIndex=999,o._windows=new Map,o.dialog=i,o.language=n,o.observer=new d.Subject,o.properties=new Dt(r),o.factory=new gt(Ct),o.questionComponent=_t,o}return Q(i,t),i.prototype.sortFunction=function(e,t){return(e.container?parseInt(ne.getStyle(e.container.parentElement,"zIndex"),10):-1)>(t.container?parseInt(ne.getStyle(t.container.parentElement,"zIndex"),10):-1)?-1:1},i.prototype.updateTop=function(){var t,i,r=0,o=null;try{for(var s=J(this.windowsArray),a=s.next();!a.done;a=s.next()){var l=a.value;if(!n.isNil(l.container)){var c=parseInt(ne.getStyle(l.container.parentElement,"zIndex"),10);r>=c||(r=c,o=l)}}}catch(e){t={error:e}}finally{try{a&&!a.done&&(i=s.return)&&i.call(s)}finally{if(t)throw t.error}}n.isNil(o)||o.isOnTop||(o.isOnTop=!0,this.observer.next(new u.ObservableData(e.WindowServiceEvent.SETTED_ON_TOP,o)))},i.prototype.setWindowOnTop=function(t){var i,r,o=this.topZIndex-2;try{for(var s=J(this.windowsArray),a=s.next();!a.done;a=s.next()){var l=a.value;if(!n.isNil(l.container)){l.isOnTop=l===t;var c=l.isOnTop?this.topZIndex:o--;ne.setStyle(l.backdrop,"zIndex",c),ne.setStyle(l.wrapper,"zIndex",c)}}}catch(e){i={error:e}}finally{try{a&&!a.done&&(r=s.return)&&r.call(s)}finally{if(i)throw i.error}}this.windowsArray.sort(this.sortFunction),this.observer.next(new u.ObservableData(e.WindowServiceEvent.SETTED_ON_TOP,t))},i.prototype.checkPosition=function(e){for(;this.hasSamePosition(e);)e.move(e.getX()+this.gapX,e.getY()+this.gapY)},i.prototype.hasSamePosition=function(e){var t=e.getX(),i=e.getY(),n=!1;return this.windowsArray.forEach((function(r){r!==e&&t===r.getX()&&i===r.getY()&&(n=!0)})),n},i.prototype.add=function(t,i){this._windows.set(t,i),this.observer.next(new u.ObservableData(e.WindowServiceEvent.OPENED,i.window))},i.prototype.remove=function(t){var i=this._windows.get(t);if(!i)return null;i.close(),this._windows.delete(t),this.observer.next(new u.ObservableData(e.WindowServiceEvent.CLOSED,i.window))},i.prototype.getById=function(e){var t=n.find(Array.from(this._windows.values()),(function(t){return t.config.id===e}));return n.isNil(t)?null:t.window},i.prototype.setDefaultProperties=function(e){e.verticalAlign||(e.verticalAlign=this.defaultVerticalAlign),e.horizontalAlign||(e.horizontalAlign=this.defaultHorizontalAlign),n.isNaN(e.defaultMinWidth)&&(e.defaultMinWidth=this.minWidth),n.isNaN(e.defaultMinHeight)&&(e.defaultMinHeight=this.minHeight),n.isNaN(e.paddingTop)&&(e.paddingTop=this.paddingTop),n.isNaN(e.paddingLeft)&&(e.paddingLeft=this.paddingLeft),n.isNaN(e.paddingRight)&&(e.paddingRight=this.paddingRight),n.isNaN(e.paddingBottom)&&(e.paddingBottom=this.paddingBottom),e.propertiesId&&this.properties.load(e.propertiesId,e),e.setDefaultProperties()},i.prototype.open=function(t,i){var r=this,o=null;if(i.id&&(o=this.getById(i.id)))return o.content;this.setDefaultProperties(i);var s=this.dialog.open(t,i),a=(o=this.factory.create({config:i,reference:s,overlay:s._overlayRef})).events.subscribe((function(t){switch(t){case e.WindowEvent.OPENED:r.add(i,s.componentInstance),r.setWindowOnTop(o),r.isNeedCheckPositionAfterOpen&&r.checkPosition(o);break;case e.WindowEvent.CLOSED:a.unsubscribe(),r.remove(i),o.isOnTop&&r.windows.size>0&&r.updateTop();break;case e.WindowEvent.RESIZED:n.isNil(i.propertiesId)||r.properties.save(i.propertiesId,o);break;case e.WindowEvent.SET_ON_TOP:r.setWindowOnTop(o)}}));return o.content},i.prototype.get=function(e){var t=e.toString();if(e instanceof de&&(t=e.id),!t)return null;var i=this.getById(t);return n.isNil(i)?null:i.content},i.prototype.has=function(e){return!n.isNil(this.get(e))},i.prototype.setOnTop=function(e){var t=this.get(e);return!!t&&(t.window.setOnTop(),!0)},i.prototype.removeAll=function(){this.windowsArray.forEach((function(e){return e.close()}))},i.prototype.destroy=function(){this.isDestroyed||(t.prototype.destroy.call(this),this.removeAll(),n.isNil(this.observer)||(this.observer.complete(),this.observer=null),n.isNil(this.properties)||(this.properties.destroy(),this.properties=null),this.factory=null,this.properties=null,this.questionComponent=null,this.dialog=null,this.language=null,this._windows=null)},i.prototype.info=function(t,i,r,o){var s=this.language.translate(t,i),a=n.assign(new de(!0,!1,450),o);return a.data=new ue(n.assign(r,{mode:e.QuestionMode.INFO,text:s})),this.open(this.questionComponent,a).config.data},i.prototype.question=function(t,i,r,o){var s=this.language.translate(t,i),a=n.assign(new de(!0,!1,450),o);return a.data=new ue(n.assign(r,{mode:e.QuestionMode.QUESTION,text:s})),this.open(this.questionComponent,a).config.data},Object.defineProperty(i.prototype,"windowsArray",{get:function(){return Array.from(this.windows.values()).map((function(e){return e.window}))},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"events",{get:function(){return this.observer.asObservable()},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"windows",{get:function(){return this._windows},enumerable:!1,configurable:!0}),i}(t.Destroyable);St.ɵprov=s.ɵɵdefineInjectable({factory:function(){return new St(s.ɵɵinject(c.MatDialog),s.ɵɵinject(g.LanguageService),s.ɵɵinject(Be))},token:St,providedIn:"root"}),St.decorators=[{type:s.Injectable,args:[{providedIn:"root"}]}],St.ctorParameters=function(){return[{type:c.MatDialog},{type:h.LanguageService},{type:Be}]};var Tt,Dt=function(e){function t(t){var i=e.call(this)||this;return i.cookies=t,i}return Q(t,e),t.prototype.load=function(e,t){var i=this.cookies.getObject(e+"Window");i&&(i.hasOwnProperty("width")&&(t.defaultWidth=i.width),i.hasOwnProperty("height")&&(t.defaultHeight=i.height))},t.prototype.save=function(e,t){this.cookies.putObject(e+"Window",{width:t.getWidth(),height:t.getHeight()})},t.prototype.destroy=function(){this.isDestroyed||(e.prototype.destroy.call(this),this.cookies=null)},t}(t.Destroyable);(Tt=e.WindowServiceEvent||(e.WindowServiceEvent={})).OPENED="OPENED",Tt.CLOSED="CLOSED",Tt.SETTED_ON_TOP="SETTED_ON_TOP";var kt=function(t){function i(e,i){var n=t.call(this)||this;return n.dialog=e,n.language=i,n.observer=new d.Subject,n.factory=new gt(Nt),n.questionComponent=_t,n}return Q(i,t),i.prototype.open=function(t,i){var n=this,r=this.dialog.open(t,i),o=this.factory.create({config:i,reference:r,overlay:r._overlayRef}),s=o.events.subscribe((function(t){switch(t){case e.WindowServiceEvent.OPENED:n.observer.next(new u.ObservableData(e.WindowServiceEvent.OPENED,o));break;case e.WindowServiceEvent.CLOSED:s.unsubscribe(),n.observer.next(new u.ObservableData(e.WindowServiceEvent.CLOSED,o))}}));return o.content},i.prototype.removeAll=function(){},i.prototype.destroy=function(){this.isDestroyed||(t.prototype.destroy.call(this),this.removeAll(),n.isNil(this.observer)||(this.observer.complete(),this.observer=null),this.factory=null,this.questionComponent=null,this.dialog=null,this.language=null)},i.prototype.info=function(t,i,r,o){var s=this.language.translate(t,i),a=n.assign(new de(!0,!1,450),o);return a.data=new ue(n.assign(r,{mode:e.QuestionMode.INFO,text:s})),this.open(this.questionComponent,a).config.data},i.prototype.question=function(t,i,r,o){var s=this.language.translate(t,i),a=n.assign(new de(!0,!1,450),o);return a.data=new ue(n.assign(r,{mode:e.QuestionMode.QUESTION,text:s})),this.open(this.questionComponent,a).config.data},Object.defineProperty(i.prototype,"events",{get:function(){return this.observer.asObservable()},enumerable:!1,configurable:!0}),i}(t.Destroyable);kt.ɵprov=s.ɵɵdefineInjectable({factory:function(){return new kt(s.ɵɵinject(S.MatBottomSheet),s.ɵɵinject(g.LanguageService))},token:kt,providedIn:"root"}),kt.decorators=[{type:s.Injectable,args:[{providedIn:"root"}]}],kt.ctorParameters=function(){return[{type:S.MatBottomSheet},{type:h.LanguageService}]};var Lt=[m.CommonModule,b.FormsModule,S.MatBottomSheetModule,C.MatButtonModule,ht],Mt=te([vt]),Rt=te(Mt),xt=function(){function e(){}return e.forRoot=function(){return{ngModule:kt,providers:[{provide:kt,deps:[S.MatBottomSheet,h.LanguageService],useClass:kt}]}},e}();xt.decorators=[{type:s.NgModule,args:[{imports:Lt,declarations:Mt,exports:Rt}]}];var At=[m.CommonModule,b.FormsModule,c.MatDialogModule,C.MatButtonModule,ht],Ht=te([me],[]),jt=te(Ht),Wt=function(){function e(){}return e.forRoot=function(){return{ngModule:_e,providers:[{provide:_e,deps:[c.MatDialog,h.LanguageService],useClass:_e}]}},e}();Wt.decorators=[{type:s.NgModule,args:[{imports:At,declarations:Ht,exports:jt}]}];var Bt=function(){function e(){}return e.prototype.transform=function(e){return e?n.camelCase(e):"---"},e}();Bt.decorators=[{type:s.Pipe,args:[{name:"viCamelCase"}]}],Bt.ctorParameters=function(){return[]};var zt=function(){function e(){}return e.format=function(e,t){e=Number(e);try{return Y.default(e).format(t)}catch(t){return e.toString()}},e.prototype.transform=function(t,i,r){return void 0===r&&(r=!1),t=Number(t),n.isNaN(t)?"---":(n.isNil(i)&&(i=e.DEFAULT_FORMAT),r&&(i="+"+i),e.format(t,i))},e}();zt.DEFAULT_FORMAT="0,0",zt.decorators=[{type:s.Pipe,args:[{name:"viFinance"}]}];var Ut=function(){function e(){}return e.parseMoment=function(e,t){return n.isDate(e)?q.default(e):n.isString(e)?q.default(e,t):n.isNumber(e)?q.default().milliseconds(e):e},e.fromNow=function(t,i){if(void 0===i&&(i="LLL"),n.isNil(t))return"---";var r=e.parseMoment(t),o=r.fromNow();return o=o.charAt(0).toUpperCase()+o.slice(1),n.isNil(i)||(o+=" ("+r.format(i)+")"),o},e.toConditionValue=function(t){if(!n.isNil(t)){t=t.toString();var i=e.parseMoment(T.RemoveFilterableCondition(t));return i.isValid()?""+(T.GetFilterableCondition(t)||"=")+i.toDate().toString():void 0}},e.prototype.transform=function(t,i){return n.isNil(t)?"---":e.parseMoment(t).format(i||e.DEFAULT_FORMAT)},e}();Ut.DEFAULT_FORMAT="LLL",Ut.decorators=[{type:s.Pipe,args:[{name:"viMomentDate"}]}];var Ft=function(){function e(){}return e.prototype.transform=function(t){if(n.isNaN(t))return"---";var i=Ut.parseMoment(t),r=q.default.duration(q.default().diff(i)),o=null;return o=Math.abs(r.asYears())>=1?e.YEAR_FORMAT:Math.abs(r.asMonths())>=1?e.MONTH_FORMAT:Math.abs(r.asDays())>=1?e.DAY_FORMAT:e.HOUR_FORMAT,i.format(o)},e}();Ft.HOUR_FORMAT="HH:ss",Ft.DAY_FORMAT="DD MMM HH:ss",Ft.MONTH_FORMAT="DD MMM HH:ss",Ft.YEAR_FORMAT="LLL",Ft.decorators=[{type:s.Pipe,args:[{name:"viMomentAdaptiveDate"}]}];var Vt=function(){function e(){}return e.prototype.transform=function(e,t){return Ut.fromNow(e,t)},e}();Vt.decorators=[{type:s.Pipe,args:[{name:"viMomentDateFromNow"}]}];var Gt=function(){function e(){}return e.prototype.transform=function(t,i){return n.isNil(t)?"---":q.default().startOf("day").add(t,"milliseconds").format(i||e.DEFAULT_FORMAT)},e}();Gt.DEFAULT_FORMAT="hh:mm:ss",Gt.decorators=[{type:s.Pipe,args:[{name:"viMomentTime"}]}];var qt=function(){function e(e){this.language=e}return e.prototype.transform=function(e){if(n.isNil(e))return null;var t=n.keys(e);if(n.isEmpty(t))return null;var i=t[0];return this.translateError(i,e[i])},e.prototype.translateError=function(e,t){return this.language.translate("error.form."+e,t)},e}();qt.decorators=[{type:s.Pipe,args:[{name:"viNgModelError"}]}],qt.ctorParameters=function(){return[{type:h.LanguageService}]};var Yt=function(){function e(e){this.sanitizer=e}return e.prototype.transform=function(e,t){if(void 0===t&&(t="html"),n.isNil(e))return null;switch(t){case"html":return this.sanitizer.bypassSecurityTrustHtml(e);case"style":return this.sanitizer.bypassSecurityTrustStyle(e);case"script":return this.sanitizer.bypassSecurityTrustScript(e);case"url":return this.sanitizer.bypassSecurityTrustUrl(e);case"resourceUrl":return this.sanitizer.bypassSecurityTrustResourceUrl(e);default:throw new Error("Invalid safe type specified: "+t)}},e}();Yt.decorators=[{type:s.Pipe,args:[{name:"viSanitize"}]}],Yt.ctorParameters=function(){return[{type:D.DomSanitizer}]};var Xt=function(){function e(){}return e.prototype.transform=function(e){return e?e.charAt(0).toUpperCase()+e.slice(1):"---"},e}();Xt.decorators=[{type:s.Pipe,args:[{name:"viStartCase"}]}];var Zt=function(){function e(){}return e.prototype.transform=function(t,i){return t=Number(t),n.isNaN(t)?"---":(n.isNil(i)&&(i=e.DEFAULT_FORMAT),zt.format(t/p.DateUtil.MILISECONDS_SECOND,i))},e}();Zt.DEFAULT_FORMAT="00:00:00",Zt.decorators=[{type:s.Pipe,args:[{name:"viTime"}]}];var Qt=function(){function e(){}return e.prototype.transform=function(e,t){return e?n.truncate(e,{length:t}):"---"},e}();Qt.decorators=[{type:s.Pipe,args:[{name:"viTruncate"}]}];var Kt=function(){function e(){}return e.prototype.transform=function(t){var i=n.isNil(t);return i||n.isNumber(t)||(i=n.isEmpty(t)),i?e.EMPTY_SYMBOL:t},e}();Kt.EMPTY_SYMBOL="-",Kt.decorators=[{type:s.Pipe,args:[{name:"viPrettify"}]}],Kt.ctorParameters=function(){return[]};var $t=function(e){function t(t,i,n){var r=e.call(this)||this;return r.theme=i,r.themeAsset=n,r._extension="png",r._isFile=!1,r._isImage=!1,r._isVideo=!1,r._isSound=!1,r._isBackground=!1,r._isIgnoreTheme=!0,r.element=ne.parseElement(t.nativeElement),r.theme.changed.pipe(o.takeUntil(r.destroyed)).subscribe((function(){r.isTriedThemeDefault=!1,r.setSourceProperties()})),r}return Q(t,e),t.prototype.getSource=function(e){return n.isNil(e)?null:this.isImage?this.themeAsset.getImage(e,this.extension,this.isIgnoreTheme):this.isBackground?this.themeAsset.getBackground(e,this.extension,this.isIgnoreTheme):this.isSound?this.themeAsset.getSound(e,this.extension,this.isIgnoreTheme):this.isVideo?this.themeAsset.getVideo(e,this.extension,this.isIgnoreTheme):this.isFile?this.themeAsset.getFile(e,this.extension,this.isIgnoreTheme):this.themeAsset.getIcon(e,this.extension,this.isIgnoreTheme)},t.prototype.errorLoadingHandler=function(e){this.errorHandler(e)},t.prototype.errorHandler=function(e){this.isTriedThemeDefault||(this.isTriedThemeDefault=!0,this.source=this.getSource(this.getDefaultSourceId()),this.commitSourceProperties())},t.prototype.setSourceProperties=function(){this.source=this.getSource(this.getSourceId(this.theme.theme)),this.commitSourceProperties()},t.prototype.getSourceId=function(e){return n.isNil(e)?null:this.name+n.capitalize(e.name)},t.prototype.getDefaultSourceId=function(){return this.themeAsset.getName(this.name,this.isIgnoreTheme)},t.prototype.destroy=function(){this.isDestroyed||(e.prototype.destroy.call(this),this.name=null,this.theme=null,this.element=null)},Object.defineProperty(t.prototype,"isSound",{get:function(){return this._isSound},set:function(e){e!==this._isSound&&(this._isSound=e,this.setSourceProperties())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isVideo",{get:function(){return this._isVideo},set:function(e){e!==this._isVideo&&(this._isVideo=e,this.setSourceProperties())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isFile",{get:function(){return this._isFile},set:function(e){e!==this._isFile&&(this._isFile=e,this.setSourceProperties())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isImage",{get:function(){return this._isImage},set:function(e){e!==this._isImage&&(this._isImage=e,this.setSourceProperties())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isBackground",{get:function(){return this._isBackground},set:function(e){e!==this._isBackground&&(this._isBackground=e,this.setSourceProperties())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isIgnoreTheme",{get:function(){return this._isIgnoreTheme},set:function(e){e!==this._isIgnoreTheme&&(this._isIgnoreTheme=e,this.setSourceProperties())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"name",{get:function(){return this._name},set:function(e){e!==this._name&&(n.isNil(this._name)||this.removeSourceProperties(),this._name=e,n.isNil(e)||this.setSourceProperties())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"extension",{get:function(){return this._extension},set:function(e){e!==this._extension&&(this._extension=e,n.isNil(e)||this.setSourceProperties())},enumerable:!1,configurable:!0}),t}(t.Destroyable);$t.propDecorators={errorLoadingHandler:[{type:s.HostListener,args:["error",["$event"]]}],isSound:[{type:s.Input}],isVideo:[{type:s.Input}],isFile:[{type:s.Input}],isImage:[{type:s.Input}],isBackground:[{type:s.Input}],isIgnoreTheme:[{type:s.Input}],name:[{type:s.Input}],extension:[{type:s.Input}]};var Jt=function(e){function t(t,i,n){return e.call(this,t,i,n)||this}return Q(t,e),t.prototype.commitSourceProperties=function(){var e="url("+this.source+")";ne.setStyle(this.element,"backgroundImage",e)},t.prototype.removeSourceProperties=function(){ne.removeStyle(this.element,"backgroundImage")},t}($t);Jt.decorators=[{type:s.Directive,args:[{selector:"[vi-theme-background]"}]}],Jt.ctorParameters=function(){return[{type:s.ElementRef},{type:k.ThemeService},{type:k.ThemeAssetService}]};var ei=function(e){function t(t,i,n){return e.call(this,t,i,n)||this}return Q(t,e),t.prototype.commitSourceProperties=function(){this.element.src=this.source},t.prototype.removeSourceProperties=function(){this.element.src=null},t}($t);ei.decorators=[{type:s.Directive,args:[{selector:"[vi-theme-image]"}]}],ei.ctorParameters=function(){return[{type:s.ElementRef},{type:k.ThemeService},{type:k.ThemeAssetService}]};var ti=function(e){function t(t){var i=e.call(this)||this;return i.theme=t,i}return Q(t,e),t.prototype.clickHandler=function(e){var t=this.theme.themes.collection,i=t.length;if(!(i<2)){var n=0;this.theme.theme&&((n=t.indexOf(this.theme.theme))<i-1?n++:n=0),this.theme.theme=t[n]}},t.prototype.destroy=function(){this.isDestroyed||(e.prototype.destroy.call(this),this.theme=null)},t}(t.Destroyable);ti.decorators=[{type:s.Directive,args:[{selector:"[vi-theme-toggle]"}]}],ti.ctorParameters=function(){return[{type:k.ThemeService}]},ti.propDecorators={clickHandler:[{type:s.HostListener,args:["click",["$event"]]}]};var ii=function(e){function t(t,i){var n=e.call(this)||this;return n.theme=i,n.element=ne.parseElement(t.nativeElement),n.theme.changed.pipe(o.takeUntil(n.destroyed)).subscribe((function(){return n.stylePropertiesAdd()})),n}return Q(t,e),t.prototype.commitStyleProperties=function(e,t){ne.setStyle(this.element,e,t,this.flags)},t.prototype.stylePropertiesCheck=function(){this.isNeedStyleAdd()?this.stylePropertiesAdd():this.isNeedStyleRemove()&&this.stylePropertiesRemove()},t.prototype.stylePropertiesRemove=function(){ne.removeStyle(this.element,this.styleName)},t.prototype.stylePropertiesAdd=function(){this.commitStyleProperties(this.styleName,this.theme.getStyle(this.key))},t.prototype.isNeedStyleAdd=function(){return!n.isNil(this.theme.theme)&&!n.isNil(this.styleName)},t.prototype.isNeedStyleRemove=function(){return!n.isNil(this.styleName)},t.prototype.destroy=function(){this.isDestroyed||(e.prototype.destroy.call(this),this.key=null,this.theme=null,this.element=null)},Object.defineProperty(t.prototype,"flags",{get:function(){return this._flags},set:function(e){e!==this._flags&&(this._flags=e,this.stylePropertiesCheck())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"styleName",{get:function(){return this._styleName},set:function(e){e!==this._styleName&&(this._styleName=e,this.stylePropertiesCheck())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"key",{get:function(){return this._key},set:function(e){e!==this._key&&(this._key=e,n.isNil(e)||this.stylePropertiesCheck())},enumerable:!1,configurable:!0}),t}(t.Destroyable);ii.decorators=[{type:s.Directive,args:[{selector:"[vi-theme-style]"}]}],ii.ctorParameters=function(){return[{type:s.ElementRef},{type:k.ThemeService}]},ii.propDecorators={flags:[{type:s.Input}],styleName:[{type:s.Input}],key:[{type:s.Input,args:["vi-theme-style"]}]};var ni=function(e){function t(t,i){var n=e.call(this,t,i)||this;return n._isHover=!1,n.mouseEnter=function(e){n.isHover=!0},n.mouseLeave=function(e){n.isHover=!1},n.flags=s.RendererStyleFlags2.Important,n.element.addEventListener("mouseenter",n.mouseEnter,!1),n.element.addEventListener("mouseleave",n.mouseLeave,!1),n}return Q(t,e),t.prototype.isNeedStyleAdd=function(){return this.isHover&&e.prototype.isNeedStyleAdd.call(this)},t.prototype.isNeedStyleRemove=function(){return!this.isHover||e.prototype.isNeedStyleRemove.call(this)},t.prototype.destroy=function(){this.isDestroyed||(this.element.removeEventListener("mouseenter",this.mouseEnter,!1),this.element.removeEventListener("mouseleave",this.mouseLeave,!1),e.prototype.destroy.call(this))},Object.defineProperty(t.prototype,"isHover",{get:function(){return this._isHover},set:function(e){e!==this._isHover&&(this._isHover=e,this.stylePropertiesCheck())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"key",{get:function(){return e.prototype.key},set:function(t){e.prototype.key=t},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"styleName",{get:function(){return e.prototype.styleName},set:function(t){e.prototype.styleName=t},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"flags",{get:function(){return e.prototype.flags},set:function(t){e.prototype.flags=t},enumerable:!1,configurable:!0}),t}(ii);ni.decorators=[{type:s.Directive,args:[{selector:"[vi-theme-style-hover]"}]}],ni.ctorParameters=function(){return[{type:s.ElementRef},{type:k.ThemeService}]},ni.propDecorators={key:[{type:s.Input,args:["vi-theme-style-hover"]}],styleName:[{type:s.Input}],flags:[{type:s.Input}]};var ri=[ti,ei,Jt,ii,ni],oi=function(){function e(){}return e.forRoot=function(t){return{ngModule:e,providers:[{provide:li,useValue:t||{}},{provide:k.ThemeService,deps:[Be,li],useFactory:si},{provide:k.ThemeAssetService,deps:[k.ThemeService],useFactory:ai}]}},e}();function si(e,t){return!n.isNil(t)&&n.isNil(t.service)&&(t.service=e),new k.ThemeService(t)}function ai(e){return new k.ThemeAssetService(e)}oi.decorators=[{type:s.NgModule,args:[{imports:[ze],declarations:ri,exports:ri}]}];var li=new s.InjectionToken("THEME_OPTIONS"),ci=function(e){function t(t){var i=e.call(this)||this;return i.element=t,i.dragStartHandler=function(e){i._window.dragStartHandler(e)},i.dragMoveHandler=function(e){i._window.dragMoveHandler(e)},i}return Q(t,e),t.prototype.destroy=function(){this.isDestroyed||(e.prototype.destroy.call(this),n.isNil(this._interactable)||(this._interactable.unset(),this._interactable=null),this.element=null)},t.prototype.commitWindowProperties=function(){this.window.config&&!this.window.config.isModal&&(this.interactable.draggable(!0),this.interactable.on("dragmove",this.dragMoveHandler),this.interactable.on("dragstart",this.dragStartHandler))},Object.defineProperty(t.prototype,"interactable",{get:function(){return this._interactable||(this._interactable=X.default(this.element.nativeElement)),this._interactable},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"window",{get:function(){return this._window},set:function(e){e!==this._window&&(this._window=e,this._window&&this.commitWindowProperties())},enumerable:!1,configurable:!0}),t}(t.Destroyable);ci.decorators=[{type:s.Directive,args:[{selector:"[vi-window-drag-area]"}]}],ci.ctorParameters=function(){return[{type:s.ElementRef}]},ci.propDecorators={window:[{type:s.Input,args:["vi-window-drag-area"]}]};var ui=[m.CommonModule,b.FormsModule,C.MatButtonModule,c.MatDialogModule,ze,ht],pi=te([ci],[_t,It,wt,Ot]),hi=te(pi),di=function(){function e(){}return e.forRoot=function(){return{ngModule:e,providers:[{provide:St,deps:[c.MatDialog,h.LanguageService,Be],useClass:St}]}},e}();di.decorators=[{type:s.NgModule,args:[{imports:ui,declarations:pi,exports:hi}]}];var fi=[ze,oi,ht,Re,di,Wt],gi=[qt,Zt,zt,Ft,Ut,Gt,Vt,Yt,Qt,Kt,Bt,Xt,Je,it,Ye,Qe,et,Ke,Xe,tt,Ze,qe],mi=function(){function e(){}return e.forRoot=function(t){return{ngModule:e,providers:te([P.LoadingService,P.NativeWindowService,{provide:vi,useValue:t||{}},{provide:v.Logger,deps:[vi],useFactory:bi}],di.forRoot().providers,xt.forRoot().providers,Wt.forRoot().providers,ze.forRoot(t).providers,oi.forRoot(t?t.themeOptions:null).providers,ht.forRoot(t?t.languageOptions:null).providers)}},e}();mi.decorators=[{type:s.NgModule,args:[{imports:fi,declarations:gi,exports:te(fi,gi)}]}];var yi=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Q(t,e),t}(N.ICookieOptions);function bi(e){return new E.DefaultLogger(e&&!n.isNil(e.loggerLevel)?e.loggerLevel:v.LoggerLevel.LOG)}var vi=new s.InjectionToken("VI_ANGULAR_OPTIONS"),Ni=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Q(t,e),t}(t.DestroyableContainer);Ni.decorators=[{type:s.Component,args:[{selector:"vi-menu-list",template:'<ng-container *ngFor="let item of list?.filtered">\n <button mat-menu-item [ngClass]="item.className" (click)="list?.actionItem(item)">\n <span [ngClass]="item.iconId" *ngIf="item.iconId"></span>\n <span [innerHTML]="item.label" [title]="item.label"></span>\n </button>\n</ng-container>\n'}]}],Ni.propDecorators={list:[{type:s.Input}]};var Ei=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Q(t,e),t}(t.DestroyableContainer);Ei.decorators=[{type:s.Component,args:[{selector:"vi-select-list",template:'<ng-container *ngFor="let item of list?.collection">\n\n <mat-list-item [ngClass]="item.isSelected? item.selectedClassName : item.className" *ngIf="item.isEnabled" (click)="list.actionItem(item)" >\n <span [ngClass]="item.iconId" *ngIf="item.iconId" matListIcon></span>\n <span [innerHTML]="item.label" [title]="item.label" matLine></span>\n </mat-list-item>\n\n</ng-container>\n'}]}],Ei.propDecorators={list:[{type:s.Input}]};var Pi=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Q(t,e),t.prototype.commitListProperties=function(){},t.prototype.selectedTabChange=function(e){if(!n.isNil(this.list)){var t=e.index;if(!(t<0||t>=this.list.length)){var i=this.list.collection[t];this.list.selectedItem=i,this.list.actionItem(i)}}},t.prototype.destroy=function(){this.isDestroyed||(e.prototype.destroy.call(this),this.list=null)},Object.defineProperty(t.prototype,"list",{get:function(){return this._list},set:function(e){e!==this._list&&(this._list=e,n.isNil(e)||this.commitListProperties())},enumerable:!1,configurable:!0}),t}(t.DestroyableContainer);Pi.decorators=[{type:s.Component,args:[{selector:"vi-tab-group",template:'<mat-tab-group [ngClass]="className" (selectedIndexChange)="list.selectedIndex = $event" [selectedIndex]="list?.selectedIndex"\n (selectedTabChange)="selectedTabChange($event)">\n <ng-container *ngFor="let item of list?.collection">\n <mat-tab [ngClass]="item.className" [label]="item.label" [disabled]="!item.isEnabled" (click)="list?.actionItem(item)"></mat-tab>\n </ng-container>\n</mat-tab-group>\n'}]}],Pi.propDecorators={className:[{type:s.Input}],list:[{type:s.Input}]};var _i=function(e){function t(){var t=e.call(this)||this;return t._columnNames=[],t.settings={},t.rowClicked=new s.EventEmitter,t.cellClicked=new s.EventEmitter,t}return Q(t,e),t.prototype.commitTableProperties=function(){var e=He.getSort(this.table);n.isNil(e)||(this.sortActive=e.active,this.sortDirection=e.direction),this.table.isDirty||this.table.reload()},t.prototype.commitColumnsProperties=function(){var e;(e=n.isEmpty(this.columns)?[]:this.columns.map((function(e){return e.name})))!==this._columnNames&&(this._columnNames=e)},t.prototype.commitSelectedRowsProperties=function(){this._selectedRow=n.isEmpty(this.selectedRows)||1!==this.selectedRows.length?null:this.selectedRows[0]},t.prototype.commitSettingsProperties=function(){n.isNil(this.settings.noDataId)&&(this.settings.noDataId="general.noDataFound"),n.isNil(this.settings.isInteractive)&&(this.settings.isInteractive=!0),n.isNil(this.rows)&&!n.isEmpty(this.settings.rows)&&(this.rows=this.settings.rows),n.isNil(this.columns)&&!n.isEmpty(this.settings.columns)&&(this.columns=this.settings.columns)},t.prototype.commitRowProperties=function(){},t.prototype.columnTrackBy=function(e,t){return t.name},t.prototype.destroy=function(){this.isDestroyed||(e.prototype.destroy.call(this),this.table=null,this.selectedRows=null,n.isNil(this.cellClicked)||(this.cellClicked.complete(),this.cellClicked=null),n.isNil(this.rowClicked)||(this.rowClicked.complete(),this.rowClicked=null))},t.prototype.cellClickHandler=function(e,t){this.cellClicked.emit({data:e,column:t.name})},Object.defineProperty(t.prototype,"table",{get:function(){return this._table},set:function(e){e!==this._table&&(this._table=e,n.isNil(e)||this.commitTableProperties())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"selectedRows",{get:function(){return this._selectedRows},set:function(e){e!==this._selectedRows&&(this._selectedRows=e,this.commitSelectedRowsProperties())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"selectedRow",{get:function(){return this._selectedRow},set:function(e){e!==this._selectedRow&&(this.selectedRows=n.isNil(e)?[]:[e])},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"rows",{get:function(){return this._rows},set:function(e){e!==this._rows&&(this._rows=e,n.isNil(e)||this.commitRowProperties())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"columns",{get:function(){return this._columns},set:function(e){e!==this._columns&&(this._columns=e,n.isNil(e)||this.commitColumnsProperties())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"settings",{get:function(){return this._settings},set:function(e){e!==this._settings&&(this._settings=e,n.isNil(e)||this.commitSettingsProperties())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"columnNames",{get:function(){return this._columnNames},enumerable:!1,configurable:!0}),t}(t.DestroyableContainer);_i.propDecorators={rowClicked:[{type:s.Output}],cellClicked:[{type:s.Output}],table:[{type:s.Input}],selectedRows:[{type:s.Input}],selectedRow:[{type:s.Input}],rows:[{type:s.Input}],columns:[{type:s.Input}],settings:[{type:s.Input}]};var Ii=function(e){function t(t){var i=e.call(this)||this;return ne.addClasses(t,"d-flex flex-column scroll-no"),i._paginator={pageSizes:[10,25,100],hidePageSize:!1,showFirstLastButtons:!0},i}return Q(t,e),t.prototype.commitPaginatorProperties=function(){},Object.defineProperty(t.prototype,"paginator",{get:function(){return this._paginator},set:function(e){e!==this._paginator&&(this._paginator=e,n.isNil(e)||this.commitPaginatorProperties())},enumerable:!1,configurable:!0}),t}(_i);Ii.decorators=[{type:s.Component,args:[{selector:"vi-cdk-table-paginable",template:'<mat-table\n class="flex-grow-1 vertical-scroll-only"\n matSort\n [dataSource]="table?.table?.dataSource"\n [trackBy]="table.trackByFn"\n [matSortActive]="sortActive"\n [matSortDirection]="sortDirection"\n [class.mat-nav-list]="settings?.isInteractive"\n (matSortChange)="table.sortEventHandler($event)"\n>\n <ng-container *ngFor="let column of columns; trackBy: columnTrackBy">\n <ng-container [matColumnDef]="column.name">\n <mat-header-cell\n class="px-2"\n mat-sort-header\n [disableClear]="true"\n [disabled]="column.isDisableSort"\n [ngClass]="column.headerClassName"\n *matHeaderCellDef\n >\n <span [innerHTML]="column.headerId | viTranslate"></span>\n </mat-header-cell>\n\n <mat-cell\n class="px-2"\n (click)="cellClickHandler(row, column)"\n *matCellDef="let row"\n [ngClass]="row | viCdkTableColumnClassName: column"\n [ngStyle]="row | viCdkTableColumnStyleName: column"\n >\n <span [ngClass]="column | viCdkTableCellClassName" [vi-html-content-title]="row | viCdkTableColumnValue: column"></span>\n </mat-cell>\n </ng-container>\n </ng-container>\n\n <mat-header-row *matHeaderRowDef="columnNames"></mat-header-row>\n\n <mat-row\n class="mat-list-item"\n *matRowDef="let row; columns: columnNames"\n [ngClass]="row | viCdkTableRowClassName: rows:selectedRows"\n [ngStyle]="row | viCdkTableRowStyleName: rows:selectedRows"\n (click)="rowClicked.emit(row)"\n ></mat-row>\n\n <p class="p-3 flex-shrink-0 text-center mouse-inactive" [vi-translate]="settings?.noDataId" *matNoDataRow></p>\n \n</mat-table>\n\n\x3c!--\n<p class="p-3 flex-shrink-0 text-center mouse-inactive" *ngIf="table?.length === 0" [innerHTML]="settings?.noDataId | viTranslate"></p>\n--\x3e\n\n<mat-progress-bar class="flex-shrink-0 border" [mode]="table?.isLoading ? \'indeterminate\' : \'determinate\'"></mat-progress-bar>\n\n<div class="paginator-container d-flex align-items-center justify-content-end flex-shrink-0">\n <ng-content></ng-content>\n <mat-paginator\n class="flex-shrink-0"\n [pageSize]="table?.pageSize"\n [pageIndex]="table?.pageIndex"\n [length]="table?.total"\n (page)="table?.pageEventHandler($event)"\n [pageSizeOptions]="paginator?.pageSizes"\n [showFirstLastButtons]="paginator?.showFirstLastButtons"\n [hidePageSize]="paginator?.hidePageSize"\n *ngIf="paginator && table?.length > 0"\n ></mat-paginator>\n</div>\n'}]}],Ii.ctorParameters=function(){return[{type:s.ViewContainerRef}]},Ii.propDecorators={paginator:[{type:s.Input}]};var Oi=function(e){function t(t){var i=e.call(this)||this;return ne.addClasses(t,"d-flex flex-column scroll-no"),i}return Q(t,e),t}(_i);Oi.decorators=[{type:s.Component,args:[{selector:"vi-cdk-table-filterable",template:'<mat-table\n class="flex-grow-1 vertical-scroll-only"\n matSort\n [dataSource]="table?.table?.dataSource"\n [matSortActive]="sortActive"\n [matSortDirection]="sortDirection"\n [class.mat-nav-list]="settings?.isInteractive"\n (matSortChange)="table.sortEventHandler($event)"\n>\n <ng-container *ngFor="let column of columns; trackBy: columnTrackBy">\n <ng-container [matColumnDef]="column.name">\n <mat-header-cell\n class="px-2"\n mat-sort-header\n [disableClear]="true"\n [disabled]="column.isDisableSort"\n [ngClass]="column.headerClassName"\n *matHeaderCellDef\n >\n <span [innerHTML]="column.headerId | viTranslate"></span>\n </mat-header-cell>\n <mat-cell\n class="px-2"\n (click)="cellClickHandler(row, column)"\n *matCellDef="let row"\n [ngClass]="row | viCdkTableColumnClassName: column"\n [ngStyle]="row | viCdkTableColumnStyleName: column"\n >\n <span [ngClass]="column | viCdkTableCellClassName" [vi-html-content-title]="row | viCdkTableColumnValue: column"></span>\n </mat-cell>\n </ng-container>\n </ng-container>\n\n <mat-header-row *matHeaderRowDef="columnNames"></mat-header-row>\n\n <mat-row\n class="mat-list-item"\n *matRowDef="let row; columns: columnNames"\n [ngClass]="row | viCdkTableRowClassName: rows:selectedRows"\n [ngStyle]="row | viCdkTableRowStyleName: rows:selectedRows"\n (click)="rowClicked.emit(row)"\n ></mat-row>\n\n <p class="p-3 flex-shrink-0 text-center mouse-inactive" [vi-translate]="settings?.noDataId" *matNoDataRow></p>\n</mat-table>\n\n<mat-progress-bar class="flex-shrink-0 border transparent" [mode]="table?.isLoading ? \'indeterminate\' : \'determinate\'"></mat-progress-bar>\n'}]}],Oi.ctorParameters=function(){return[{type:s.ViewContainerRef}]};var wi=function(){function e(){}return e.prototype.transform=function(e,t){return n.isNil(t)||n.isNil(t.format)?e[t.name]:t.format(e,t)},e}();wi.decorators=[{type:s.Pipe,args:[{name:"viCdkTableColumnValue"}]}];var Ci=function(){function e(){}return e.prototype.transform=function(e,t){return n.isNil(t)||n.isNil(t.styleName)?null:t.styleName(e,t)},e}();Ci.decorators=[{type:s.Pipe,args:[{name:"viCdkTableColumnStyleName"}]}];var Si=function(){function e(){}return e.prototype.transform=function(e,t){return n.isNil(t)||n.isNil(t.className)?null:n.isString(t.className)?t.className:t.className(e,t)},e}();Si.decorators=[{type:s.Pipe,args:[{name:"viCdkTableColumnClassName"}]}];var Ti=function(){function e(){}return e.prototype.transform=function(e,t,i){return n.isNil(t)||n.isNil(t.className)?null:n.isString(t.className)?t.className:t.className(e,i)},e}();Ti.decorators=[{type:s.Pipe,args:[{name:"viCdkTableRowClassName"}]}];var Di=function(){function e(){}return e.prototype.transform=function(e,t,i,r){return n.isNil(t)||n.isNil(t.styleName)?null:t.styleName(e,i)},e}();Di.decorators=[{type:s.Pipe,args:[{name:"viCdkTableRowStyleName"}]}];var ki=function(){function e(){}return e.prototype.transform=function(e){return e.isMultiline?"text-multi-line":"text-one-line"},e}();ki.decorators=[{type:s.Pipe,args:[{name:"viCdkTableCellClassName"}]}];var Li=[m.CommonModule,b.FormsModule,L.MatTabsModule,M.MatListModule,R.MatMenuModule,x.MatSelectModule,C.MatButtonModule,A.MatSortModule,H.MatTableModule,w.MatPaginatorModule,j.MatProgressBarModule,mi],Mi=[],Ri=te([wi,Si,Ci,Di,Ti,ki,xe,Pi,Ni,Ei,Ii,Oi],Mi),xi=te(Ri),Ai=function(){};Ai.decorators=[{type:s.NgModule,args:[{imports:Li,declarations:Ri,exports:xi,entryComponents:Mi}]}];var Hi,ji=function(){},Wi=function(e){var t=e.validate.bind(e);return"function"==typeof t?function(e){return t(e)}:e},Bi=function(e){return n.isEmpty(e)?null:b.Validators.compose(e.map(Wi))},zi=function(e,t){if(!t)return"Validation failed: "+e.toString();switch(t){case"required":return"Please enter a value";case"pattern":return"Value does not match required pattern";case"minlength":return"Value must be N characters";case"maxlength":return"Value must be a maximum of N characters"}var i=e[t];switch(typeof i){case"string":return i;default:return"Validation failed: "+t}},Ui=function(e){function t(){var t=e.call(this)||this;return t.changed=[],t.touched=[],t}return Q(t,e),t.prototype.valueChanged=function(){var e=this;this.changed.forEach((function(t){return t(e.innerValue)}))},t.prototype.touch=function(){this.touched.forEach((function(e){return e()}))},t.prototype.writeValue=function(e){this.value=e},t.prototype.registerOnChange=function(e){this.changed.push(e)},t.prototype.registerOnTouched=function(e){this.touched.push(e)},t.prototype.destroy=function(){this.isDestroyed||(e.prototype.destroy.call(this),this.changed=null,this.touched=null)},Object.defineProperty(t.prototype,"value",{get:function(){return this.innerValue},set:function(e){e!=this.innerValue&&(this.innerValue=e,this.valueChanged())},enumerable:!1,configurable:!0}),t}(t.Destroyable),Fi=function(e){function t(t,i){var n=e.call(this)||this;return n.validators=t,n.asyncValidators=i,n}return Q(t,e),t.prototype.validate=function(){return(e=this.validators,t=this.asyncValidators,function(i){var n=function(){return Bi(e)(i)};return t?Bi(t)(i).map((function(e){var t=n();if(t||e)return Object.assign({},t,e)})):e?d.of(n()):d.of(null)})(this.model.control);var e,t},Object.defineProperty(t.prototype,"invalid",{get:function(){return this.validate().pipe(o.map((function(e){return Object.keys(e||{}).length>0})))},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"failures",{get:function(){return this.validate().pipe(o.map((function(e){return Object.keys(e).map((function(t){return zi(e,t)}))})))},enumerable:!1,configurable:!0}),t}(Ui),Vi=function(e){function t(t){var i=e.call(this)||this;return i.validators=t,i.validate=function(){var e,t;if(!i.validators||0===i.validators.length)return i._validationError=null,null;var n=null;try{for(var r=J(i.validators),o=r.next();!o.done;o=r.next()){var s=o.value;if(n="function"==typeof s?s(i.model.control):s.validate(i.model.control))break}}catch(t){e={error:t}}finally{try{o&&!o.done&&(t=r.return)&&t.call(r)}finally{if(e)throw e.error}}return i._validationError=n?zi(n,Object.keys(n)[0]):null,n},i.isErrorState=function(e,t){return i.invalid},i}return Q(t,e),t.prototype.valueChanged=function(){e.prototype.valueChanged.call(this),setTimeout(this.validate)},Object.defineProperty(t.prototype,"valid",{get:function(){return!this.invalid},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"invalid",{get:function(){return null!=this._validationError},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"validationError",{get:function(){return this._validationError},enumerable:!1,configurable:!0}),t.prototype.ngAfterContentInit=function(){this.validate()},t.prototype.ngOnDestroy=function(){clearTimeout(this.timer),this.timer=null},t}(Ui),Gi=function(e){function t(t){var i=e.call(this,t.locale)||this;return t.completed.subscribe((function(e){i.setLocale(e.locale)})),i}return Q(t,e),t}(W.MomentDateAdapter),qi=function(i){function r(){var e=i.call(this)||this;return e._isLoggedIn=!1,e}return Q(r,i),r.prototype.loginByParam=function(e){return K(this,void 0,void 0,(function(){var t=this;return $(this,(function(i){return[2,this.loginByFunction((function(){return t.loginRequest(e)}))]}))}))},r.prototype.loginByFunction=function(i){return K(this,void 0,void 0,(function(){var n,r;return $(this,(function(o){switch(o.label){case 0:if(this.isLoggedIn||this.isLoading)return[2,null];this.status=t.LoadableStatus.LOADING,this.observer.next(new u.ObservableData(t.LoadableEvent.STARTED)),this.observer.next(new u.ObservableData(e.LoginBaseServiceEvent.LOGIN_STARTED)),o.label=1;case 1:return o.trys.push([1,3,,4]),[4,i()];case 2:return n=o.sent(),this.parseLoginResponse(n),this.isCanLoginWithSid()?this.loginBySid():this.status=t.LoadableStatus.LOADED,[3,4];case 3:return r=o.sent(),r=B.ExtendedError.create(r),this.status=t.LoadableStatus.ERROR,this.parseLoginErrorResponse(r),this.observer.next(new u.ObservableData(e.LoginBaseServiceEvent.LOGIN_ERROR,null,r)),[3,4];case 4:return this.isLoading||(this.observer.next(new u.ObservableData(t.LoadableEvent.FINISHED)),this.observer.next(new u.ObservableData(e.LoginBaseServiceEvent.LOGIN_FINISHED))),[2,n]}}))}))},r.prototype.loginBySid=function(){return K(this,void 0,void 0,(function(){var i,r;return $(this,(function(o){switch(o.label){case 0:n.isNil(this.sid)&&(this._sid=this.getSavedSid()),o.label=1;case 1:return o.trys.push([1,3,,4]),[4,this.loginSidRequest()];case 2:return i=o.sent(),this.parseLoginSidResponse(i),this._isLoggedIn=!0,this.status=t.LoadableStatus.LOADED,this.observer.next(new u.ObservableData(t.LoadableEvent.COMPLETE,i)),this.observer.next(new u.ObservableData(e.LoginBaseServiceEvent.LOGIN_COMPLETE,i)),[3,4];case 3:return r=o.sent(),r=B.ExtendedError.create(r),this.parseLoginSidErrorResponse(r),this._isLoggedIn=!1,this.status=t.LoadableStatus.ERROR,this.observer.next(new u.ObservableData(t.LoadableEvent.ERROR,null,r)),this.observer.next(new u.ObservableData(e.LoginBaseServiceEvent.LOGIN_ERROR,null,r)),[3,4];case 4:return this.observer.next(new u.ObservableData(t.LoadableEvent.FINISHED)),this.observer.next(new u.ObservableData(e.LoginBaseServiceEvent.LOGIN_FINISHED)),[2]}}))}))},r.prototype.reset=function(){this._sid=null,this._resource=null,this._loginData=null},r.prototype.parseLoginErrorResponse=function(e){},r.prototype.parseLogoutErrorResponse=function(e){},r.prototype.parseLoginSidResponse=function(e){this._loginData=e},r.prototype.parseLoginSidErrorResponse=function(e){e instanceof z.TransportTimeoutError||e instanceof z.TransportNoConnectionError||this.reset()},r.prototype.loginByResponse=function(i){return K(this,void 0,void 0,(function(){return $(this,(function(n){switch(n.label){case 0:return this.isLoggedIn||this.isLoading?[2]:(this.status=t.LoadableStatus.LOADING,this.observer.next(new u.ObservableData(t.LoadableEvent.STARTED)),this.observer.next(new u.ObservableData(e.LoginBaseServiceEvent.LOGIN_STARTED)),this.parseLoginResponse(i),this.status=this.isCanLoginWithSid()?t.LoadableStatus.LOADING:t.LoadableStatus.LOADED,this.isLoading?[4,this.loginBySid()]:[3,2]);case 1:n.sent(),n.label=2;case 2:return[2]}}))}))},r.prototype.tryLoginBySid=function(){return!!this.isCanLoginWithSid()&&(this.isLoggedIn||this.isLoading||(this.status=t.LoadableStatus.LOADING,this.observer.next(new u.ObservableData(t.LoadableEvent.STARTED)),this.observer.next(new u.ObservableData(e.LoginBaseServiceEvent.LOGIN_STARTED)),this.loginBySid()),!0)},r.prototype.logout=function(){return K(this,void 0,void 0,(function(){var i;return $(this,(function(n){switch(n.label){case 0:if(!this.isLoggedIn)return[2];this.observer.next(new u.ObservableData(t.LoadableEvent.STARTED)),this.observer.next(new u.ObservableData(e.LoginBaseServiceEvent.LOGOUT_STARTED)),n.label=1;case 1:return n.trys.push([1,3,4,5]),[4,this.logoutRequest()];case 2:return n.sent(),[3,5];case 3:return i=n.sent(),this.parseLogoutErrorResponse(B.ExtendedError.create(i)),[3,5];case 4:return this.reset(),this._isLoggedIn=!1,this.status=t.LoadableStatus.NOT_LOADED,this.observer.next(new u.ObservableData(t.LoadableEvent.FINISHED)),this.observer.next(new u.ObservableData(e.LoginBaseServiceEvent.LOGOUT_FINISHED)),[7];case 5:return[2]}}))}))},r.prototype.isCanLoginWithSid=function(){return null!=this.sid||null!=this.getSavedSid()},r.prototype.destroy=function(){this.isDestroyed||(i.prototype.destroy.call(this),this.reset())},Object.defineProperty(r.prototype,"logined",{get:function(){return this.events.pipe(o.filter((function(t){return t.type===e.LoginBaseServiceEvent.LOGIN_COMPLETE})),o.map((function(e){return e.data})))},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"logouted",{get:function(){return this.events.pipe(o.filter((function(t){return t.type===e.LoginBaseServiceEvent.LOGOUT_FINISHED})),o.map((function(){return null})))},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"sid",{get:function(){return this._sid},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"resource",{get:function(){return this._resource},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"loginData",{get:function(){return this._loginData},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"isLoggedIn",{get:function(){return this._isLoggedIn},enumerable:!1,configurable:!0}),r}(t.Loadable);(Hi=e.LoginBaseServiceEvent||(e.LoginBaseServiceEvent={})).LOGIN_ERROR="LOGIN_ERROR",Hi.LOGIN_STARTED="LOGIN_STARTED",Hi.LOGIN_COMPLETE="LOGIN_COMPLETE",Hi.LOGIN_FINISHED="LOGIN_FINISHED",Hi.LOGOUT_STARTED="LOGOUT_STARTED",Hi.LOGOUT_FINISHED="LOGOUT_FINISHED",Hi.REGISTRATION_ERROR="REGISTRATION_ERROR",Hi.REGISTRATION_STARTED="REGISTRATION_STARTED",Hi.REGISTRATION_COMPLETE="REGISTRATION_COMPLETE",Hi.REGISTRATION_FINISHED="REGISTRATION_FINISHED";var Yi=function(){function t(e){this.login=e}return t.prototype.resolve=function(){if(this.login.isLoggedIn)return Promise.resolve();var t=i.PromiseHandler.create(),n=this.login.events.subscribe((function(i){i.type===e.LoginBaseServiceEvent.LOGIN_ERROR?t.reject(i.error.toString()):i.type===e.LoginBaseServiceEvent.LOGIN_COMPLETE?t.resolve():i.type===e.LoginBaseServiceEvent.LOGIN_FINISHED&&n.unsubscribe()}));return t.promise},t}(),Xi=function(e){function t(t){return e.call(this,t)||this}return Q(t,e),t.prototype.canActivate=function(){return this.login.isLoggedIn},t}(Yi);Xi.ɵprov=s.ɵɵdefineInjectable({factory:function(){return new Xi(s.ɵɵinject(qi))},token:Xi,providedIn:"root"}),Xi.decorators=[{type:s.Injectable,args:[{providedIn:"root"}]}],Xi.ctorParameters=function(){return[{type:qi}]};var Zi=function(e){function t(t){return e.call(this,t)||this}return Q(t,e),t}(Yi);Zi.logoutUrl="/login",Zi.redirectUrl="/",Zi.ɵprov=s.ɵɵdefineInjectable({factory:function(){return new Zi(s.ɵɵinject(qi))},token:Zi,providedIn:"root"}),Zi.decorators=[{type:s.Injectable,args:[{providedIn:"root"}]}],Zi.ctorParameters=function(){return[{type:qi}]};var Qi=function(){function e(){}return e.prototype.canActivate=function(e,t){return Zi.redirectUrl=t.url,!0},e}();Qi.ɵprov=s.ɵɵdefineInjectable({factory:function(){return new Qi},token:Qi,providedIn:"root"}),Qi.decorators=[{type:s.Injectable,args:[{providedIn:"root"}]}];var Ki=function(){function e(e,t,i){void 0===t&&(t=NaN),this.nameId=e,this.sortIndex=t,this.iconId=i,this._isEnabled=!0}return e.prototype.commitNameProperties=function(){},e.prototype.commitIsEnabledProperties=function(){},Object.defineProperty(e.prototype,"isEnabled",{get:function(){return this._isEnabled},set:function(e){e!==this._isEnabled&&(this._isEnabled=e,this.commitIsEnabledProperties())},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"name",{get:function(){return this._name},set:function(e){e!==this._name&&(this._name=e,this.commitNameProperties())},enumerable:!1,configurable:!0}),e}(),$i=function(e){function t(t,i,n,r){var o=e.call(this,t,i,r)||this;return o.flag=n||"none",o}return Q(t,e),t}(Ki),Ji=function(e){function t(t,i,n){void 0===n&&(n=!1);var r=e.call(this)||this;return r.language=t,r._items=[],r._enabledItems=[],r.filterFunction=i,t.completed.pipe(o.filter((function(){return n})),o.takeUntil(r.destroyed)).subscribe((function(){return r.translateItems(r._items)})),r}return Q(t,e),t.prototype.translateItems=function(e){var t,i;try{for(var n=J(e),r=n.next();!r.done;r=n.next()){var o=r.value;this.translateItem(o)}}catch(e){t={error:e}}finally{try{r&&!r.done&&(i=n.return)&&i.call(n)}finally{if(t)throw t.error}}},t.prototype.translateItem=function(e){e.name=this.language.translate(e.nameId)},t.prototype.checkEnabledItems=function(e){var t,i;p.ArrayUtil.sort(e);var n=!0;e===this._items&&p.ArrayUtil.clear(this._enabledItems);try{for(var r=J(e),o=r.next();!o.done;o=r.next()){var s=o.value;!s.name&&s.nameId&&this.translateItem(s);var a=!s.checkEnabled||s.checkEnabled(s);a&&this.filterFunction&&(a=this.filterFunction(s)),s.isEnabled=a,a&&this._enabledItems.push(s),n&&!a&&(n=!1)}}catch(e){t={error:e}}finally{try{o&&!o.done&&(i=r.return)&&i.call(r)}finally{if(t)throw t.error}}return n},t.prototype.add=function(e){return this._items.push(e),e},t.prototype.remove=function(e){var t=this._items.indexOf(e);return t>-1&&this._items.slice(t,1),e},t.prototype.checkEnabled=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return this.checkEnabledItems(this._items)},t.prototype.destroy=function(){this.isDestroyed||(e.prototype.destroy.call(this),this._items=null,this._enabledItems=null)},Object.defineProperty(t.prototype,"items",{get:function(){return this._items},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"enabledItems",{get:function(){return this._enabledItems},enumerable:!1,configurable:!0}),t}(t.DestroyableContainer),en=function(e){function t(t,i,n,r){var o=e.call(this,t,i,null,n)||this;return o.isActive=!1,o.url=r,o}return Q(t,e),t}($i),tn=function(){function e(e,t,i,n){void 0===t&&(t=NaN),this._isEnabled=!0,this.data=i,this.iconId=n,this.sortIndex=t,this.translationId=e,this._uid=this.getUid()}return e.prototype.commitDataProperties=function(){},e.prototype.commitLabelProperties=function(){},e.prototype.commitIsEnabledProperties=function(){},e.prototype.commitClassNameProperties=function(){},e.prototype.commitIconIdProperties=function(){},e.prototype.commitSortIndexProperties=function(){},e.prototype.commitTranslationIdProperties=function(){},e.prototype.getUid=function(){return this.translationId+"_"+this.sortIndex},e.prototype.destroy=function(){this._data=null,this.action=null,this.checkEnabled=null},Object.defineProperty(e.prototype,"uid",{get:function(){return this._uid},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"sortIndex",{get:function(){return this._sortIndex},set:function(e){e!==this._sortIndex&&(this._sortIndex=e,n.isNil(e)||this.commitSortIndexProperties())},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isEnabled",{get:function(){return this._isEnabled},set:function(e){e!==this._isEnabled&&(this._isEnabled=e,n.isBoolean(e)&&this.commitIsEnabledProperties())},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"label",{get:function(){return this._label},set:function(e){e!==this._label&&(this._label=e,n.isNil(e)||this.commitLabelProperties())},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"translationId",{get:function(){return this._translationId},set:function(e){e!==this._translationId&&(this._translationId=e,n.isNil(e)||this.commitTranslationIdProperties())},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"iconId",{get:function(){return this._iconId},set:function(e){e!==this._iconId&&(this._iconId=e,n.isNil(e)||this.commitIconIdProperties())},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"className",{get:function(){return this._className},set:function(e){e!==this._className&&(this._className=e,n.isNil(e)||this.commitClassNameProperties())},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"data",{get:function(){return this._data},set:function(e){e!==this._data&&(this._data=e,n.isNil(e)||this.commitDataProperties())},enumerable:!1,configurable:!0}),e}(),nn=function(e){function t(t,i){void 0===i&&(i=!0);var r=e.call(this,"uid")||this;return r.language=t,r.translate=function(e){e.label=r.language.translate(e.translationId)},r.translateItems=function(){r.collection.forEach(r.translate)},r.translateIfNeed=function(e){n.isNil(e.label)&&!n.isNil(e.translationId)&&r.translate(e)},r.translateItemsIfNeed=function(){r.collection.forEach(r.translateIfNeed)},r.lastRefreshParams=new Array,i&&(r.languageSubscription=t.completed.subscribe(r.translateItems)),r}return Q(t,e),t.prototype.sort=function(){p.ArrayUtil.sort(this.collection)},t.prototype.complete=function(){this.translateItemsIfNeed(),this.sort()},t.prototype.refresh=function(){for(var e,t,i=[],r=0;r<arguments.length;r++)i[r]=arguments[r];if(p.ArrayUtil.clear(this._filtered),this.lastRefreshParams=i,!n.isEmpty(this.collection)){this._isAllEnabled=!0,this._isLeastOneEnabled=!1;try{for(var o=J(this._collection),s=o.next();!s.done;s=o.next()){var a=s.value;a.isEnabled=!!n.isNil(a.checkEnabled)||a.checkEnabled.apply(a,te([a],i)),a.isEnabled?this.filter(a)&&(this._filtered.push(a),this._isLeastOneEnabled=!0):this._isAllEnabled=!1}}catch(t){e={error:t}}finally{try{s&&!s.done&&(t=o.return)&&t.call(o)}finally{if(e)throw e.error}}}},t.prototype.actionItem=function(e){n.isNil(e)||!e.isEnabled||n.isNil(e.action)||e.action.apply(e,te([e],this.lastRefreshParams))},t.prototype.destroy=function(){this.isDestroyed||(e.prototype.destroy.call(this),this.language=null,this.lastRefreshParams=null,n.isNil(this.languageSubscription)||(this.languageSubscription.unsubscribe(),this.languageSubscription=null))},Object.defineProperty(t.prototype,"isAllEnabled",{get:function(){return this._isAllEnabled},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isLeastOneEnabled",{get:function(){return this._isLeastOneEnabled},enumerable:!1,configurable:!0}),t}(U.FilterableMapCollection),rn=function(e){function t(t,i,n,r){var o=e.call(this,t,i,n)||this;return o.checkEnabled=r,o}return Q(t,e),t.prototype.commitIsSelectProperties=function(){},t.prototype.commitSelectedClassNameProperties=function(){},t.prototype.destroy=function(){e.prototype.destroy.call(this),this.checkSelected=null},Object.defineProperty(t.prototype,"isSelected",{get:function(){return this._isSelected},set:function(e){e!==this._isSelected&&(this._isSelected=e,n.isNil(e)||this.commitIsSelectProperties())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"selectedClassName",{get:function(){return this._selectedClassName},set:function(e){e!==this._selectedClassName&&(this._selectedClassName=e,n.isNil(e)||this.commitSelectedClassNameProperties())},enumerable:!1,configurable:!0}),t}(tn),on=function(e){function t(t,i){void 0===i&&(i=!0);var n=e.call(this,t,i)||this;return n._changed=new s.EventEmitter,n}return Q(t,e),t.prototype.commitSelectedItemProperties=function(){this.selectedData=n.isNil(this.selectedItem)?null:this.selectedItem.data,this.selectedIndex=n.isNil(this.selectedItem)?null:this.selectedItem.sortIndex,n.isNil(this.changed)||this.changed.emit(this.selectedItem)},t.prototype.commitSelectedDataProperties=function(){var e=this;this.selectedItem=n.isNil(this.selectedData)?null:n.find(this.collection,(function(t){return t.data===e.selectedData}))},t.prototype.commitSelectedIndexProperties=function(){var e=this;this.selectedItem=n.isNil(this.selectedIndex)?null:n.find(this.collection,(function(t){return t.sortIndex===e.selectedIndex}))},Object.defineProperty(t.prototype,"selectedItem",{get:function(){return this._selectedItem},set:function(e){e!==this._selectedItem&&(this._selectedItem=e,this.commitSelectedItemProperties())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"selectedIndex",{get:function(){return this._selectedIndex},set:function(e){e!==this._selectedIndex&&(this._selectedIndex=e,this.commitSelectedIndexProperties())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"selectedData",{get:function(){return this._selectedData},set:function(e){e!==this._selectedData&&(this._selectedData=e,this.commitSelectedDataProperties())},enumerable:!1,configurable:!0}),t.prototype.complete=function(t){e.prototype.complete.call(this),n.isNil(t)||(n.isNumber(t)?this.selectedIndex=t:this.selectedItem=n.find(this.collection,(function(e){return e.data===t})))},t.prototype.refresh=function(){for(var t=[],i=0;i<arguments.length;i++)t[i]=arguments[i];e.prototype.refresh.apply(this,te(t)),this.refreshSelection.apply(this,te(t))},t.prototype.refreshSelection=function(){for(var e,t,i=[],r=0;r<arguments.length;r++)i[r]=arguments[r];if(!n.isEmpty(this.collection))try{for(var o=J(this._collection),s=o.next();!s.done;s=o.next()){var a=s.value;a.isSelected=!n.isNil(a.checkSelected)&&a.checkSelected.apply(a,te([a],i)),a.isSelected&&(this.selectedItem=a)}}catch(t){e={error:t}}finally{try{s&&!s.done&&(t=o.return)&&t.call(o)}finally{if(e)throw e.error}}},t.prototype.destroy=function(){this.isDestroyed||(e.prototype.destroy.call(this),n.isNil(this._changed)||(this._changed.complete(),this._changed=null),this.selectedIndex=null)},Object.defineProperty(t.prototype,"changed",{get:function(){return this._changed},enumerable:!1,configurable:!0}),t}(nn),sn=function(e){function t(t,i){var n=e.call(this)||this;return n.language=t,n.sanitizer=i,n.language.isLoaded&&n.commitLanguageProperties(),n.language.completed.pipe(o.takeUntil(n.destroyed)).subscribe((function(){return n.commitLanguageProperties()})),n}return Q(t,e),t.prototype.commitLanguageProperties=function(){var e=this.language.locale?this.language.language.locale:"en";this._locale="en"===e?"en-US":e,t.DATE&&(t.DATE=new m.DatePipe(this.locale))},Object.defineProperty(t.prototype,"date",{get:function(){return t.DATE||(t.DATE=new m.DatePipe(this.locale)),t.DATE},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"time",{get:function(){return t.TIME||(t.TIME=new Zt),t.TIME},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"finance",{get:function(){return t.FINANCE||(t.FINANCE=new zt),t.FINANCE},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"truncate",{get:function(){return t.TRUNCATE||(t.TRUNCATE=new Qt),t.TRUNCATE},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"prettify",{get:function(){return t.PRETTIFY||(t.PRETTIFY=new Kt),t.PRETTIFY},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"momentDate",{get:function(){return t.MOMENT_DATE||(t.MOMENT_DATE=new Ut),t.MOMENT_DATE},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"momentDateFromNow",{get:function(){return t.MOMENT_DATE_FROM_NOW||(t.MOMENT_DATE_FROM_NOW=new Vt),t.MOMENT_DATE_FROM_NOW},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"momentDateAdaptive",{get:function(){return t.MOMENT_ADAPTIVE_DATE||(t.MOMENT_ADAPTIVE_DATE=new Ft),t.MOMENT_ADAPTIVE_DATE},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"momentTime",{get:function(){return t.MOMENT_TIME||(t.MOMENT_TIME=new Gt),t.MOMENT_TIME},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"sanitize",{get:function(){return t.SANITIZE||(t.SANITIZE=new Yt(this.sanitizer)),t.SANITIZE},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"camelCase",{get:function(){return t.CAMEL_CASE||(t.CAMEL_CASE=new Bt),t.CAMEL_CASE},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locale",{get:function(){return this._locale},enumerable:!1,configurable:!0}),t}(t.DestroyableContainer);sn.DATE=null,sn.TIME=null,sn.FINANCE=null,sn.PRETTIFY=null,sn.TRUNCATE=null,sn.SANITIZE=null,sn.CAMEL_CASE=null,sn.MOMENT_TIME=null,sn.MOMENT_DATE=null,sn.MOMENT_DATE_FROM_NOW=null,sn.MOMENT_ADAPTIVE_DATE=null;var an,ln=function(t){function i(e){var i=t.call(this)||this;return i.service=e,i.observer=new d.Subject,i.initialize(),i}return Q(i,t),i.prototype.initialize=function(t,n,r,s,a){var l=this;void 0===t&&(t=i.DEFAULT_SM),void 0===n&&(n=i.DEFAULT_MD),void 0===r&&(r=i.DEFAULT_LG),void 0===s&&(s=i.DEFAULT_XL),void 0===a&&(a=i.DEFAULT_XXL),this.items=[{name:e.BootstrapBreakpoint.XXL,value:"(min-width: "+a+"px)"},{name:e.BootstrapBreakpoint.XL,value:"(min-width: "+s+"px)"},{name:e.BootstrapBreakpoint.LG,value:"(min-width: "+r+"px)"},{name:e.BootstrapBreakpoint.MD,value:"(min-width: "+n+"px)"},{name:e.BootstrapBreakpoint.SM,value:"(min-width: 0px)"}],d.merge.apply(void 0,te(this.items.map((function(e){return l.service.observe(e.value)})))).pipe(o.takeUntil(this.destroyed)).subscribe((function(){return l.setBreakpoint(l.getBreakpoint())}))},i.prototype.getBreakpoint=function(){var e,t;try{for(var i=J(this.items),n=i.next();!n.done;n=i.next()){var r=n.value;if(this.service.isMatched(r.value))return r.name}}catch(t){e={error:t}}finally{try{n&&!n.done&&(t=i.return)&&t.call(i)}finally{if(e)throw e.error}}return null},i.prototype.setBreakpoint=function(t){t!==this._breakpoint&&(this._breakpoint=t,this.observer.next(new u.ObservableData(e.BootstrapBreakpointServiceEvent.CHANGED,this.breakpoint)))},i.prototype.isEqual=function(e){return e===this.breakpoint},i.prototype.isUp=function(e){return n.findIndex(this.items,{name:this.breakpoint})<n.findIndex(this.items,{name:e})},i.prototype.isUpOrEqual=function(e){return this.isEqual(e)||this.isUp(e)},i.prototype.isDown=function(e){return n.findIndex(this.items,{name:this.breakpoint})>n.findIndex(this.items,{name:e})},i.prototype.isDownOrEqual=function(e){return this.isEqual(e)||this.isDown(e)},Object.defineProperty(i.prototype,"breakpoint",{get:function(){return this._breakpoint},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"events",{get:function(){return this.observer.asObservable()},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"changed",{get:function(){return this.events.pipe(o.filter((function(t){return t.type===e.BootstrapBreakpointServiceEvent.CHANGED})),o.map((function(e){return e.data})))},enumerable:!1,configurable:!0}),i}(t.DestroyableContainer);ln.DEFAULT_SM=576,ln.DEFAULT_MD=768,ln.DEFAULT_LG=992,ln.DEFAULT_XL=1200,ln.DEFAULT_XXL=1400,ln.ɵprov=s.ɵɵdefineInjectable({factory:function(){return new ln(s.ɵɵinject(F.BreakpointObserver))},token:ln,providedIn:"root"}),ln.decorators=[{type:s.Injectable,args:[{providedIn:"root"}]}],ln.ctorParameters=function(){return[{type:F.BreakpointObserver}]},(e.BootstrapBreakpointServiceEvent||(e.BootstrapBreakpointServiceEvent={})).CHANGED="CHANGED",(an=e.BootstrapBreakpoint||(e.BootstrapBreakpoint={})).SM="sm",an.MD="md",an.LG="lg",an.XL="xl",an.XXL="xxl";var cn,un=function(e){function i(t,i){var n=e.call(this)||this;return n._router=t,n.window=i,n.isNeedUpdateExtras=!1,n.params=new Map,n.observer=new d.Subject,n._lastUrl=n.url,n.window.getParams().forEach((function(e,t){return n.params.set(t,e)})),n.initializeObservers(),n}return Q(i,e),i.prototype.initializeObservers=function(){var e=this;this.router.events.pipe(o.takeUntil(this.destroyed)).subscribe((function(i){i instanceof V.NavigationStart?(e._previousUrl=e.url,e.status=t.LoadableStatus.LOADING):(i instanceof V.NavigationEnd||i instanceof V.NavigationCancel||i instanceof V.NavigationError)&&(i instanceof V.NavigationEnd&&(e._lastUrl=i.url),e.status=t.LoadableStatus.LOADED)}))},i.prototype.applyExtras=function(e){return K(this,void 0,void 0,(function(){var t;return $(this,(function(i){return(t={}).queryParams=this.getQueryParams(),n.isNil(e)||Object.assign(t,e),this.isLoading?(this.extrasToApply=e,this.isNeedUpdateExtras=!0,[2,!1]):[2,this.router.navigate([],t)]}))}))},i.prototype.getQueryParams=function(){var e={};return this.params.forEach((function(t,i){return e[i]=t})),e},i.prototype.commitStatusChangedProperties=function(i,n){switch(e.prototype.commitStatusChangedProperties.call(this,i,n),n){case t.LoadableStatus.LOADING:this.observer.next(new u.ObservableData(t.LoadableEvent.STARTED));break;case t.LoadableStatus.LOADED:this.isNeedUpdateExtras&&(this.isNeedUpdateExtras=!1,this.applyExtras(this.extrasToApply)),this.observer.next(new u.ObservableData(t.LoadableEvent.COMPLETE,{url:this.url,previousUrl:this.previousUrl}))}n!==t.LoadableStatus.LOADED&&n!==t.LoadableStatus.ERROR||this.observer.next(new u.ObservableData(t.LoadableEvent.FINISHED))},i.prototype.navigate=function(e,t,i){return K(this,void 0,void 0,(function(){var r;return $(this,(function(o){return i&&this.params.clear(),(r={}).queryParams=this.getQueryParams(),n.isNil(t)||Object.assign(r,t),[2,this.router.navigateByUrl(e,r)]}))}))},i.prototype.navigateToExternalUrl=function(e,t){void 0===t&&(t="_blank"),this.window.open(e,t)},i.prototype.navigateToLast=function(e){return this.navigate(this.lastUrl,e)},i.prototype.navigateIfNotLoading=function(e,t){return K(this,void 0,void 0,(function(){return $(this,(function(i){return[2,!this.isLoading&&this.navigate(e,t)]}))}))},i.prototype.reload=function(){location.reload()},i.prototype.isUrlActive=function(e,t){if(void 0===t&&(t=!1),t)return this.router.isActive(e,t);n.isString(e)&&(e=this.router.parseUrl(e));var i=this.router.parseUrl(this.urlTree.toString());return e.fragment=i.fragment=null,e.queryParams=i.queryParams={},e.toString()===i.toString()},i.prototype.getParams=function(){var e={};return this.params.forEach((function(t,i){return e[i]=t})),e},i.prototype.hasParam=function(e){return this.params.has(e)},i.prototype.getParam=function(e,t){return this.hasParam(e)?this.params.get(e):t},i.prototype.setParam=function(e,t,i){n.isNil(t)||(t=t.toString().trim(),n.isEmpty(t)&&(t=null)),n.isNil(t)?this.params.delete(e):this.params.set(e,t),n.isNil(i)||(i={replaceUrl:!0}),this.applyExtras(i)},i.prototype.removeParam=function(e,t){this.hasParam(e)&&this.setParam(e,null,t)},i.prototype.clearParams=function(e){this.params.clear(),n.isNil(e)||(e={replaceUrl:!0}),this.applyExtras(e)},Object.defineProperty(i.prototype,"hasParams",{get:function(){return this.params.size>0},enumerable:!1,configurable:!0}),i.prototype.getFragment=function(e,t){return e instanceof V.ActivatedRoute&&(e=e.snapshot),n.isNil(e.fragment)?t:e.fragment},i.prototype.setFragment=function(e){return K(this,void 0,void 0,(function(){return $(this,(function(t){return[2,this.applyExtras({fragment:e})]}))}))},Object.defineProperty(i.prototype,"url",{get:function(){return this.router.url},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"urlTree",{get:function(){return this.router.parseUrl(this.url)},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"lastUrl",{get:function(){return this._lastUrl},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"lastUrlTree",{get:function(){return this.router.parseUrl(this.lastUrl)},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"previousUrl",{get:function(){return this._previousUrl},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"previousUrlTree",{get:function(){return this.router.parseUrl(this.previousUrl)},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"router",{get:function(){return this._router},enumerable:!1,configurable:!0}),i}(t.Loadable),pn=function(){function e(){}return e.prototype.canDeactivate=function(e,t,i,n){return!!e.isForceDeactivate||e.isCanDeactivate(t,i,n)},e}(),hn=function(){},dn=function(){function t(e){this.login=e,this.observer=new d.Subject}return t.prototype.initialize=function(){var t=this;this.login.isLoggedIn&&this.loginedHandler(),this.login.events.subscribe((function(i){i.type===e.LoginBaseServiceEvent.LOGIN_COMPLETE?t.loginedHandler():i.type===e.LoginBaseServiceEvent.LOGOUT_FINISHED&&t.logoutedHandler()}))},t.prototype.initializeUser=function(){this._user=this.createUser(this.login.loginData)},t.prototype.deinitializeUser=function(){this._user=null},t.prototype.loginedHandler=function(){this.initializeUser(),this.observer.next(new u.ObservableData(e.UserBaseServiceEvent.LOGINED,this.user))},t.prototype.logoutedHandler=function(){this.deinitializeUser(),this.observer.next(new u.ObservableData(e.UserBaseServiceEvent.LOGOUTED))},t.prototype.isUser=function(e){return!(!e||!this.user)&&(e.hasOwnProperty("id")?this.user.id===e.id:this.user.id===e)},t.prototype.userUpdate=function(t){this.hasUser&&(this.user.update(t),this.observer.next(new u.ObservableData(e.UserBaseServiceEvent.CHANGED,t)))},Object.defineProperty(t.prototype,"events",{get:function(){return this.observer.asObservable()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"logined",{get:function(){return this.events.pipe(o.filter((function(t){return t.type===e.UserBaseServiceEvent.LOGINED})),o.map((function(e){return e.data})))},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"changed",{get:function(){return this.events.pipe(o.filter((function(t){return t.type===e.UserBaseServiceEvent.CHANGED})),o.map((function(e){return e.data})))},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"logouted",{get:function(){return this.events.pipe(o.filter((function(t){return t.type===e.UserBaseServiceEvent.LOGOUTED})),o.map((function(){return null})))},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasUser",{get:function(){return!n.isNil(this._user)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isLogined",{get:function(){return this.hasUser},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"user",{get:function(){return this._user},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"id",{get:function(){return this.hasUser?this.user.id:null},enumerable:!1,configurable:!0}),t}();(cn=e.UserBaseServiceEvent||(e.UserBaseServiceEvent={})).LOGINED="LOGINED",cn.CHANGED="CHANGED",cn.LOGOUTED="LOGOUTED",e.APPLICATION_INJECTOR=we,e.ApplicationBaseComponent=ie,e.ApplicationComponent=se,e.ApplicationComponent2=ae,e.AspectRatioResizeDirective=qe,e.AssetBackgroundDirective=Ce,e.AssetBackgroundPipe=Se,e.AssetIconPipe=Te,e.AssetImagePipe=De,e.AssetModule=Re,e.AutoScrollBottomDirective=Ze,e.BootstrapBreakpointService=ln,e.BottomSheetService=kt,e.COOKIE_OPTIONS=Ve,e.CamelCasePipe=Bt,e.CanDeactivateGuard=pn,e.CdkTableBaseComponent=_i,e.CdkTableDataSource=Ae,e.CdkTableFilterableMapCollection=He,e.CdkTablePaginableBookmarkMapCollection=We,e.CdkTablePaginableMapCollection=je,e.ClickToCopyDirective=Qe,e.ClickToSelectDirective=Ke,e.CookieModule=ze,e.CookieOptions=ji,e.CookieService=Be,e.FinancePipe=zt,e.FocusDirective=Je,e.FocusManager=$e,e.FormElementAsync=Fi,e.FormElementSync=Vi,e.HTMLContentTitleDirective=tt,e.INotification=be,e.INotificationContent=fe,e.IUser=hn,e.IVICommonOptions=yi,e.IWindow=pe,e.IWindowContent=Et,e.InfiniteScrollDirective=Xe,e.LANGUAGE_OPTIONS=ft,e.LanguageDirective=lt,e.LanguageHasDirective=pt,e.LanguageMatPaginatorIntl=nt,e.LanguageModule=ht,e.LanguageMomentDateAdapter=Gi,e.LanguagePipe=rt,e.LanguagePipeHas=ct,e.LanguagePipeHasPure=ut,e.LanguagePipePure=ot,e.LanguageRequireResolver=st,e.LanguageResolver=at,e.LanguageSelectorComponent=xe,e.ListItem=tn,e.ListItems=nn,e.LoginBaseService=qi,e.LoginGuard=Xi,e.LoginRedirectResolver=Qi,e.LoginRequireResolver=Yi,e.LoginResolver=Zi,e.MenuItem=$i,e.MenuItemBase=Ki,e.MenuItems=Ji,e.MenuListComponent=Ni,e.MessageBaseComponent=le,e.MomentDateAdaptivePipe=Ft,e.MomentDateFromNowPipe=Vt,e.MomentDatePipe=Ut,e.MomentTimePipe=Gt,e.NavigationMenuItem=en,e.NgModelErrorPipe=qt,e.NotificationConfig=Ee,e.NotificationFactory=Pe,e.NotificationModule=Wt,e.NotificationService=_e,e.PipeBaseService=sn,e.PrettifyPipe=Kt,e.PropertiesManager=Dt,e.QuestionManager=ue,e.ResizeDirective=it,e.ResizeManager=Ge,e.RouterBaseService=un,e.SanitizePipe=Yt,e.ScrollDirective=Ye,e.SelectListComponent=Ei,e.SelectListItem=rn,e.SelectListItems=on,e.SelectOnFocusDirective=et,e.ShellBaseComponent=Oe,e.StartCasePipe=Xt,e.THEME_OPTIONS=li,e.TabGroupComponent=Pi,e.ThemeAssetBackgroundDirective=Jt,e.ThemeAssetDirective=$t,e.ThemeAssetImageDirective=ei,e.ThemeModule=oi,e.ThemeStyleDirective=ii,e.ThemeStyleHoverDirective=ni,e.ThemeToggleDirective=ti,e.TimePipe=Zt,e.TruncatePipe=Qt,e.UserBaseService=dn,e.VICommonModule=mi,e.VIComponentModule=Ai,e.VI_ANGULAR_OPTIONS=vi,e.ViewUtil=ne,e.WindowBase=ye,e.WindowConfig=de,e.WindowFactory=gt,e.WindowImpl=mt,e.WindowModule=di,e.WindowService=St,e.cookieServiceFactory=Ue,e.languageServiceFactory=dt,e.loggerServiceFactory=bi,e.themeAssetServiceFactory=ai,e.themeServiceFactory=si,e.ɵa=ke,e.ɵb=Le,e.ɵc=Me,e.ɵd=ci,e.ɵe=_t,e.ɵf=Pt,e.ɵg=It,e.ɵh=bt,e.ɵi=wt,e.ɵj=Ot,e.ɵk=me,e.ɵl=ge,e.ɵm=xt,e.ɵn=vt,e.ɵo=wi,e.ɵp=Si,e.ɵq=Ci,e.ɵr=Di,e.ɵs=Ti,e.ɵt=ki,e.ɵu=Ii,e.ɵv=Oi,e.ɵw=Ui,Object.defineProperty(e,"__esModule",{value:!0})}));
|
|
2
2
|
//# sourceMappingURL=ts-core-angular.umd.min.js.map
|