@stratio/egeo
Version:
15 lines (13 loc) • 283 kB
JavaScript
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("@angular/common"),require("@angular/core"),require("rxjs"),require("lodash"),require("rxjs/operators"),require("@angular/forms"),require("@angular/common/http"),require("prismjs"),require("prismjs/components/prism-typescript"),require("@angular/platform-browser"),require("@angular/router"),require("ngx-virtual-scroller")):"function"==typeof define&&define.amd?define("@stratio/egeo",["exports","@angular/common","@angular/core","rxjs","lodash","rxjs/operators","@angular/forms","@angular/common/http","prismjs","prismjs/components/prism-typescript","@angular/platform-browser","@angular/router","ngx-virtual-scroller"],e):e(((t=t||self).stratio=t.stratio||{},t.stratio.egeo={}),t.ng.common,t.ng.core,t.rxjs,t._,t.rxjs.operators,t.ng.forms,t.ng.common.http,t.prismjs,null,t.ng.platformBrowser,t.ng.router,t.vscroller)}(this,(function(t,e,n,i,o,s,r,a,l,c,p,u,h){"use strict";
/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at http://www.apache.org/licenses/LICENSE-2.0
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
MERCHANTABLITY OR NON-INFRINGEMENT.
See the Apache Version 2.0 License for specific language governing permissions
and limitations under the License.
***************************************************************************** */var d=function(t,e){return(d=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)};function m(t,e){function n(){this.constructor=t}d(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}var f=function(){return(f=Object.assign||function(t){for(var e,n=1,i=arguments.length;n<i;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};function g(t,e,n,i){var o,s=arguments.length,r=s<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(t,e,n,i);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(r=(s<3?o(r):s>3?o(e,n,r):o(e,n))||r);return s>3&&r&&Object.defineProperty(e,n,r),r}function y(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)}function b(t){var e="function"==typeof Symbol&&t[Symbol.iterator],n=0;return e?e.call(t):{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}}}function v(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var i,o,s=n.call(t),r=[];try{for(;(void 0===e||e-- >0)&&!(i=s.next()).done;)r.push(i.value)}catch(t){o={error:t}}finally{try{i&&!i.done&&(n=s.return)&&n.call(s)}finally{if(o)throw o.error}}return r}function I(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(v(arguments[e]));return t}var w={SUCCESS:0,WARNING:1,ERROR:2};w[w.SUCCESS]="SUCCESS",w[w.WARNING]="WARNING",w[w.ERROR]="ERROR";var S=function(){};var T=function(){function t(t,e,n,o,s,r,a){this.id=t,this.title=e,this.message=n,this.severity=o,this.timeout=s,this.extendedTimeout=r,this.link=a,this._readed=!1,this._opacity=0,this._opacityState=new i.Subject,this._removeEvent=new i.Subject}return Object.defineProperty(t.prototype,"opacity",{get:function(){return this._opacityState.asObservable()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"removeAlertEvent",{get:function(){return this._removeEvent.asObservable()},enumerable:!0,configurable:!0}),t.prototype.notify=function(){this.setVisible(!0)},t.prototype.pauseNotify=function(){this._opacity=1,this._readed=!0,this.clearAnimation(),this.stopLife(),this._opacityState.next(this._opacity)},t.prototype.continueNotify=function(){this.startLife()},t.prototype.cancel=function(){this.setVisible(!1)},t.prototype.setVisible=function(t){var e=this;this.clearAnimation(),this._changeVisibilityInterval=window.setInterval((function(){return e.modifyVisibility(t)}),50)},t.prototype.modifyVisibility=function(t){this._opacity+=t?.1:-.1,(this._opacity>=1||this._opacity<=0)&&(this.clearAnimation(),t?this.startLife():this.notifyForRemove()),this._opacityState.next(this._opacity)},t.prototype.notifyForRemove=function(){this._opacityState.complete(),this._removeEvent.next(this),this._removeEvent.complete()},t.prototype.clearAnimation=function(){window.clearInterval(this._changeVisibilityInterval)},t.prototype.stopLife=function(){window.clearTimeout(this._lifeTimeout)},t.prototype.startLife=function(){var t=this,e=this._readed?this.extendedTimeout:this.timeout;this._lifeTimeout=window.setTimeout((function(){return t.setVisible(!1)}),e)},t}();var x=function(){function t(){this._alertsList=[],this._nextId=0,this._alertsStream=new i.BehaviorSubject([])}return Object.defineProperty(t.prototype,"alertList",{get:function(){return this._alertsStream.asObservable()},enumerable:!0,configurable:!0}),t.prototype.notifyAlert=function(t,e,n,i,o,s){var r=this;o=void 0!==o?o:5e3,s=void 0!==s?s:4e3;var a=new T(this._nextId,t,e,n,o,s,i);a.removeAlertEvent.subscribe((function(t){return r.onNotifyRemove(t)})),this.insertAlert(a),this._nextId++},t.prototype.insertAlert=function(t){this._alertsList.push(t),this._alertsStream.next(this._alertsList)},t.prototype.onNotifyRemove=function(t){var e=this._alertsList.findIndex((function(e){return e.id===t.id}));this._alertsList.splice(e,1),this._alertsStream.next(this._alertsList)},t.decorators=[{type:n.Injectable}],t}();var C={YES:0,NO:1,CLOSE:2};C[C.YES]="YES",C[C.NO]="NO",C[C.CLOSE]="CLOSE";var A={DELETE:0,CONFIRM:1,INFO:2,WARNING:3};A[A.DELETE]="DELETE",A[A.CONFIRM]="CONFIRM",A[A.INFO]="INFO",A[A.WARNING]="WARNING";var O=function(){};var _=function(){};var E=function(){function t(){}return Object.defineProperty(t.prototype,"nativeWindow",{get:function(){return window},enumerable:!0,configurable:!0}),t.decorators=[{type:n.Injectable}],t}(),P=function(){function t(t,e){this.cfr=t,this.windowRef=e,this.click=new n.EventEmitter,this.defaultMaxWidth=600,this.defaultMinWidth=400}return Object.defineProperty(t.prototype,"hasIcon",{get:function(){return this.modalConfig.iconStatus},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isFullscreen",{get:function(){return this.modalConfig.fullscreen},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"title",{get:function(){return this.modalConfig.modalTitle},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"buttons",{get:function(){return this.modalConfig.buttons||[]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isMessageModal",{get:function(){return this.modalConfig.message&&this.modalConfig.message.length>0},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isComplexMessageModal",{get:function(){return this.modalConfig.html&&this.modalConfig.html.length>0},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"html",{get:function(){return this.modalConfig.html},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"message",{get:function(){return this.modalConfig.message},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"messageTitle",{get:function(){return this.modalConfig.messageTitle},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"modalStyles",{get:function(){var t=this.modalConfig.maxWidth||this.defaultMaxWidth,e=this.modalConfig.minWidth||this.defaultMinWidth;return{"max-width":t+"px","min-width":e+"px",width:this.getModalActualWidth(t,e)+"px"}},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"emptyModal",{get:function(){return this.modalConfig&&this.modalConfig.empty},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"showCloseBtn",{get:function(){return this.modalConfig.showCloseBtn},enumerable:!0,configurable:!0}),t.prototype.onClose=function(){this.click.emit({response:C.CLOSE,close:!0})},t.prototype.ngAfterViewInit=function(){this.target=this.emptyModal?this.targetEmpty:this.targetContent,!this.component||this.modalConfig.html||this.modalConfig.message||this.loadBody(),this.windowRef.nativeWindow.document.body.classList.add("st-modal-overlay")},t.prototype.ngOnDestroy=function(){this.componentRef&&this.componentRef.destroy(),this.windowRef.nativeWindow.document.body.classList.remove("st-modal-overlay")},t.prototype.getModalActualWidth=function(t,e){var n=this.windowRef.nativeWindow.screen.width;return n>t?t:n<e?e:n},t.prototype.loadBody=function(){if(!this.componentRef){this.target.clear();var t=this.cfr.resolveComponentFactory(this.component);this.componentRef=this.target.createComponent(t),this.bindModalInputs()}},t.prototype.bindModalInputs=function(){var t=this;Object.keys(this.modalConfig.inputs).forEach((function(e){t.componentRef.instance[e]=t.modalConfig.inputs[e]})),Object.keys(this.modalConfig.outputs).forEach((function(e){t.componentRef.instance[e].subscribe(t.modalConfig.outputs[e])})),this.componentRef.changeDetectorRef.detectChanges()},t.decorators=[{type:n.Component,args:[{selector:"st-modal",template:'\x3c!--\n\n © 2017 Stratio Big Data Inc., Sucursal en España.\n\n This software is licensed under the Apache License, Version 2.0.\n This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;\n without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.\n See the terms of the License for more details.\n\n SPDX-License-Identifier: Apache-2.0.\n\n--\x3e\n<div class="st-modal-container">\n <section *ngIf="emptyModal" class="st-modal" [ngClass]="{\'st-modal-fullscreen\': isFullscreen}" [ngStyle]="modalStyles" [hidden]="emptyModal">\n <div #stModalBodyEmpty></div>\n </section>\n <section *ngIf="!emptyModal" class="st-modal" [ngClass]="{\'st-modal-fullscreen\': isFullscreen}" [ngStyle]="modalStyles" [hidden]="!emptyModal">\n <div class="st-modal-header">\n <div class="container">\n <span class="status-icon" [ngClass]="hasIcon" *ngIf="hasIcon"></span>\n <p class="title">{{title}}</p> <span class="icon-cross close-button" *ngIf="showCloseBtn" (click)="onClose()"></span>\n\n <st-modal-buttons *ngIf="isFullscreen" [buttonConfig]="buttons" [fullscreen]="isFullscreen" (click)="click.emit($event)"></st-modal-buttons>\n </div>\n </div>\n <div class="st-modal-body">\n <div class="container">\n\n <div *ngIf="isMessageModal" class="message">\n <h1 id="st-modal-message-plain-title" class="st-modal-message-plain-title">{{messageTitle}}</h1>\n <p id="st-modal-message-plain-message" class="st-modal-message-plain-message">{{message}}</p>\n </div>\n <div *ngIf="isComplexMessageModal" [innerHTML]="html" id="st-modal-message-html"></div>\n <div #stModalBody id="st-modal-message-component"></div>\n\n </div>\n </div>\n <footer class="st-modal-footer" *ngIf="buttons && buttons.length > 0">\n <div class="container">\n <st-modal-buttons *ngIf="!isFullscreen" [buttonConfig]="buttons" (click)="click.emit($event)"></st-modal-buttons>\n </div>\n </footer>\n </section>\n</div>\n\n',changeDetection:n.ChangeDetectionStrategy.OnPush,styles:['@charset "UTF-8";.st-modal-container{display:flex;height:100vh;left:0;position:fixed;top:0;width:100%}.st-modal-container .st-modal{align-self:center;display:flex;flex-direction:column;margin:auto}.st-modal-container .st-modal.st-modal-fullscreen{min-height:100vh;max-height:100vh;min-width:100%;max-width:100%}.st-modal-container .st-modal .st-modal-header{display:flex;flex-direction:row;height:70px;width:100%}.st-modal-container .st-modal .st-modal-header .container{align-items:center;flex-wrap:nowrap}.st-modal-container .st-modal .st-modal-header .container .status-icon{padding-right:1.05rem}.st-modal-container .st-modal st-modal-buttons{display:flex;justify-content:flex-end;margin-left:auto}.st-modal-container .st-modal .container{min-width:auto}']}]}],t.ctorParameters=function(){return[{type:n.ComponentFactoryResolver},{type:E}]},t.propDecorators={modalConfig:[{type:n.Input}],component:[{type:n.Input}],click:[{type:n.Output}],targetContent:[{type:n.ViewChild,args:["stModalBody",{read:n.ViewContainerRef,static:!1}]}],targetEmpty:[{type:n.ViewChild,args:["stModalBodyEmpty",{read:n.ViewContainerRef,static:!1}]}]},t}();var L=function(){function t(t){this._cfr=t,this._containerRef=void 0,this.dynamicModal=void 0}return Object.defineProperty(t.prototype,"container",{set:function(t){this._containerRef=t},enumerable:!0,configurable:!0}),t.prototype.show=function(t,e){var n=this.canCreateModal(t,e);if(n&&n.length>0)throw new Error(n.join(" "));return this.notifyButtonInteraction=new i.Subject,this.createModal(this.createConfig(t),e),this.notifyButtonInteraction.asObservable()},t.prototype.showBasicModal=function(t,e,n,i,o,s,r,a,l){var c;void 0===s&&(s=""),void 0===r&&(r=600),void 0===a&&(a=400),void 0===l&&(l="");var p=[{label:o,classes:t===A.DELETE?"button-critical":"button-primary",responseValue:C.YES,closeOnClick:!0}];switch(t!==A.INFO&&p.unshift({label:s,classes:t===A.DELETE?"button-borderless":"button-secondary",responseValue:C.NO,closeOnClick:!0}),t){case A.DELETE:c="icon-circle-cross";break;case A.WARNING:c="icon-alert";break;default:c=l}return this.show({fullscreen:!1,message:i,messageTitle:n,modalTitle:e,buttons:p,maxWidth:r,minWidth:a,iconStatus:c})},t.prototype.close=function(){this.destroy()},t.prototype.createModal=function(t,e){var n=this._cfr.resolveComponentFactory(P);n&&(this._containerRef.clear(),this.dynamicModal=this._containerRef.createComponent(n),this.bindVars(t,e))},t.prototype.destroy=function(){this.dynamicModal&&(this.dynamicModal.destroy(),this.dynamicModal=void 0,this.notifyButtonInteraction.next(C.CLOSE),this.notifyButtonInteraction.complete())},t.prototype.bindVars=function(t,e){this.dynamicModal.instance.component=e,this.dynamicModal.instance.click.subscribe(this.notify.bind(this)),this.dynamicModal.instance.modalConfig=t,this.dynamicModal.changeDetectorRef.detectChanges()},t.prototype.notify=function(t){this.notifyButtonInteraction.next(t.response),t.close&&this.close()},t.prototype.canCreateModal=function(t,e){var n=[];return this._containerRef||n.push("[ERROR]: StModalService => Cant find container, are you sure you declarate in MAIN APP component in html and typescript?"),void 0!==this.dynamicModal&&n.push("[ERROR]: StModalService => Can't create modal beacause already exists one. Are you sure that you call close method?)"),e||t.message||t.html||n.push("[ERROR]: StModalService => Can't find message, html or component to show in modal"),n},t.prototype.createConfig=function(t){var e={fullscreen:!1,inputs:{},outputs:{},modalTitle:"Default title",messageTitle:"Default subtitle",buttons:[],message:void 0,html:void 0,maxWidth:void 0,minWidth:void 0,empty:!1},n=Object.assign({},e,t);return n.buttons=this.checkButtons(n.buttons),n},t.prototype.checkButtons=function(t){return t.map((function(t){return Object.assign({},{label:"Button",closeOnClick:!1},t)}))},t.decorators=[{type:n.Injectable}],t.ctorParameters=function(){return[{type:n.ComponentFactoryResolver}]},t}();var R=function(){function t(){}return t.prototype.newPage=function(t,e,n){return this.initItem=1===e?0:n*(e-1),n>=t.length?Object.assign([],t):this.initItem>=t.length?(this.initItem=t.length-(n+1),Object.assign([],o.takeRight(t,n))):(this.lastItem=this.initItem+n,Object.assign([],t.slice(this.initItem,this.lastItem)))},t.decorators=[{type:n.Injectable}],t.ctorParameters=function(){return[]},t}();var k=function(){function t(){}return t.prototype.getKeys=function(t,e,n){return this.searchInDeep(t,e,n)},t.prototype.setKeys=function(t,e){e.forEach((function(e){return o.set(t,e.path,e.resolved)}))},t.prototype.translate=function(t,e){var n=this,o=this.getKeys(t,"translate");if(o&&o.length>0){var r=this.extractTranslationKeys(o);return e.get(r).pipe(s.map((function(e){return n.remapObjectWithTranslations(e,o,t)})))}return i.Observable.create((function(e){e.next(t),e.complete()}))},t.prototype.translateArrayOfKeys=function(t,e){var n=this;return e.get(t).pipe(s.map((function(e){return n.remapArrayWithTranslations(e,t)})))},t.prototype.remapArrayWithTranslations=function(t,e){return e.map((function(e){return t[e]?t[e]:e}))},t.prototype.remapObjectWithTranslations=function(t,e,n){var i=this,s=o.cloneDeep(n);return(t||o.keys(t).length>0)&&o.forEach(e,(function(e){o.set(s,e.path,i.getTranslationFromTranslatedKey(t,e))})),s},t.prototype.getTranslationFromTranslatedKey=function(t,e){var n=e&&e.toResolve&&e.toResolve.key?e.toResolve.key:"";return t[n]?t[n]:n},t.prototype.extractTranslationKeys=function(t){return t.map((function(t){return o.values(o.omit(t.toResolve,"translate"))[0]}))},t.prototype.searchInDeep=function(t,e,n,i){var s=this;void 0===i&&(i="");var r=[];o.has(t,e)&&(void 0!==n?t[e]===n&&r.push({path:i,toResolve:t}):r.push({path:i,toResolve:t}));var a=0;return o.forEach(t,(function(o,l){"object"==typeof o&&(r=I(r,s.searchInDeep(o,e,n,s.getPath(i,t,a,l)))),a++})),r},t.prototype.getPath=function(t,e,n,i){return t=this.isArray(e)?t+"["+n+"]":""===t?i:t+"."+i},t.prototype.isArray=function(t){return"[object Array]"===Object.prototype.toString.call(t)},t.decorators=[{type:n.Injectable}],t}(),M=function(){function t(){this.listeners=[]}return t.prototype.notify=function(t,e){var n,i;try{for(var o=b(this.listeners),s=o.next();!s.done;s=o.next()){(0,s.value)(t,e)}}catch(t){n={error:t}}finally{try{s&&!s.done&&(i=o.return)&&i.call(o)}finally{if(n)throw n.error}}},t.prototype.listen=function(t){this.listeners.push(t)},t.decorators=[{type:n.Injectable}],t}();var D=function(){function t(){}return t.prototype.transform=function(t,e,n){var i=this;return this.checkParams(e),n?t&&t.length>0&&e?t.filter((function(t){return i.contains(t,e,n)})):[]:t},t.prototype.contains=function(t,e,n){return!!(this.isDefined(t)&&this.isString(e)&&this.isString(n)&&this.isString(t[e]))&&t[e].toUpperCase().search(n.toUpperCase())>-1},t.prototype.isDefined=function(t){return null!=t},t.prototype.isString=function(t){return this.isDefined(t)&&"string"==typeof t},t.prototype.checkParams=function(t){if(!this.isString(t))throw new Error('PIPE: stFilterList: "field" is a required and string parameter')},t.decorators=[{type:n.Pipe,args:[{name:"stFilterList"}]}],t}(),N=function(){function t(){}return t.prototype.transform=function(t){return t?Object.keys(t).map((function(e){return{key:e,value:t[e]}})):[]},t.decorators=[{type:n.Pipe,args:[{name:"stObjectToArray"}]}],t}(),F=function(){function t(){}return t.decorators=[{type:n.NgModule,args:[{imports:[e.CommonModule],declarations:[D,N],exports:[D,N]}]}],t}(),B=function(){function t(t){this._cd=t,this.showInConsole=!1,this.opacity=0}return t.prototype.ngOnInit=function(){var t=this;this.alert.opacity.subscribe((function(e){return t.changeOpacity(e)})),this.alert.notify(),this.showInConsole&&this.notifyConsole(),this.severityColorValue=this.getSeverityColor(),this.iconValue=this.getIcon()},t.prototype.enter=function(){this.alert.pauseNotify()},t.prototype.leave=function(){this.alert.continueNotify()},t.prototype.closeAlert=function(){this.alert.cancel()},t.prototype.getIcon=function(){switch(this.alert.severity){case w.ERROR:return"icon-ban";case w.WARNING:return"icon-alert";case w.SUCCESS:return"icon-circle-check";default:return""}},t.prototype.getSeverityColor=function(){switch(this.alert.severity){case w.ERROR:return"sth-alert-box-error";case w.WARNING:return"sth-alert-box-warning";case w.SUCCESS:return"sth-alert-box-success";default:return""}},t.prototype.goTo=function(){window.open(this.alert.link.link)},t.prototype.changeOpacity=function(t){this.opacity=t,this._cd.markForCheck()},t.prototype.notifyConsole=function(){switch(this.alert.severity){case w.ERROR:console.error("ERROR-"+this.alert.title+": "+this.alert.message);break;case w.WARNING:console.warn("WARNING-"+this.alert.title+": "+this.alert.message);break;case w.SUCCESS:console.log("SUCCESS-"+this.alert.title+": "+this.alert.message);break;default:console.error("ERROR: severity not found for "+this.alert.title+": "+this.alert.message)}},t.decorators=[{type:n.Component,args:[{selector:"st-alert-box",template:'\x3c!--\n\n © 2017 Stratio Big Data Inc., Sucursal en España.\n\n This software is licensed under the Apache License, Version 2.0.\n This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;\n without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.\n See the terms of the License for more details.\n\n SPDX-License-Identifier: Apache-2.0.\n\n--\x3e\n<div class="sth-alert-box" [ngClass]="severityColorValue" (mouseenter)="enter()" (mouseleave)="leave()" [ngStyle]="{opacity: opacity}">\n <span class="sth-alert-box-close-button" (click)="closeAlert()">\n <i class="icon-circle-cross"></i>\n </span>\n <div class="sth-alert-box-ico-type">\n <i [ngClass]="iconValue"></i>\n </div>\n <div class="sth-alert-box-message">\n <header class="sth-alert-box-message-header">\n <p class="sth-alert-box-message-header-title">{{alert.title}}</p>\n </header>\n <div class="sth-alert-box-message-body">\n <p>{{alert.message}}</p>\n <footer *ngIf="alert.link" class="sth-alert-box-message-footer">\n <a (click)="goTo()">{{alert.link.title}}</a>\n </footer>\n </div>\n </div>\n</div>\n',changeDetection:n.ChangeDetectionStrategy.OnPush}]}],t.ctorParameters=function(){return[{type:n.ChangeDetectorRef}]},t.propDecorators={alert:[{type:n.Input}],showInConsole:[{type:n.Input}]},t}();var V=function(){function t(t,e){this._cd=t,this.alertService=e,this.showInConsole=!1,this.qaTag="st-alert-manager"}return t.decorators=[{type:n.Component,args:[{selector:"st-alerts",template:'\x3c!--\n\n © 2017 Stratio Big Data Inc., Sucursal en España.\n\n This software is licensed under the Apache License, Version 2.0.\n This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;\n without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.\n See the terms of the License for more details.\n\n SPDX-License-Identifier: Apache-2.0.\n\n--\x3e\n<div [attr.id]=\'qaTag\' class="st-alerts sth-alerts">\n <st-alert-box class="st-alert-box" *ngFor="let alert of (alertService.alertList | async)" [alert]="alert" [showInConsole]="showInConsole"></st-alert-box>\n</div>\n',changeDetection:n.ChangeDetectionStrategy.OnPush,styles:['@charset "UTF-8";.st-alert-box{margin-top:15px;display:block}.st-alerts{width:288px;position:fixed;right:15px;top:0}']}]}],t.ctorParameters=function(){return[{type:n.ChangeDetectorRef},{type:x}]},t.propDecorators={showInConsole:[{type:n.Input}],qaTag:[{type:n.Input}]},t}();var U=function(){function t(){}return t.decorators=[{type:n.NgModule,args:[{imports:[e.CommonModule],declarations:[V,B],exports:[V]}]}],t}(),j={TOP:0,TOP_START:1,TOP_END:2,BOTTOM:3,BOTTOM_START:4,BOTTOM_END:5};j[j.TOP]="TOP",j[j.TOP_START]="TOP_START",j[j.TOP_END]="TOP_END",j[j.BOTTOM]="BOTTOM",j[j.BOTTOM_START]="BOTTOM_START",j[j.BOTTOM_END]="BOTTOM_END";var H=function(){this.x=0,this.y=0};var Y=function(){function t(){this.hidden=!1,this.offset={x:0,y:17},this.showArrow=!0,this.animation=!0,this.openToLeft=!0,this.small=!1,this.placement=j.BOTTOM}return t.decorators=[{type:n.Component,args:[{selector:"st-bubble",template:'\x3c!--\n\n © 2017 Stratio Big Data Inc., Sucursal en España.\n\n This software is licensed under the Apache License, Version 2.0.\n This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;\n without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.\n See the terms of the License for more details.\n\n SPDX-License-Identifier: Apache-2.0.\n\n--\x3e\n\n\n<st-pop [hidden]="hidden" [placement]="placement" [offset]="offset" class="st-bubble" [openToLeft]="openToLeft">\n <div pop-button>\n <ng-content select=[bubble-button]></ng-content>\n </div>\n <div pop-content [style.z-index]="9" class="st-bubble__content"\n [ngClass]="{\n \'st-bubble__content--animated\': animation,\n \'st-bubble__content--small\': small,\n \'st-bubble__content--with-arrow\': showArrow,\n \'st-bubble__content--to-left\': openToLeft,\n \'st-bubble__content--to-right\': !openToLeft,\n \'st-bubble__content--show\': !hidden}">\n <span class="text"> {{text}} </span>\n </div>\n</st-pop>\n',styles:['@charset "UTF-8";.content{display:inline-block}.arrow{position:relative;width:13px;height:13px;bottom:47px;transform:rotate(-45deg);float:right;margin-right:15px;border-radius:2px}.text{display:block;text-align:center;white-space:nowrap}']}]}],t.propDecorators={text:[{type:n.Input}],hidden:[{type:n.Input}],offset:[{type:n.Input}],showArrow:[{type:n.Input}],animation:[{type:n.Input}],openToLeft:[{type:n.Input}],small:[{type:n.Input}]},t}();var q=function(){function t(t,e){this._el=t,this._cd=e,this.placement=j.BOTTOM_START,this.offset={x:0,y:0},this.openToLeft=!1,this._hidden=!0}return Object.defineProperty(t.prototype,"hidden",{get:function(){return this._hidden},set:function(t){var e=this;setTimeout((function(){t||e.calculatePosition(),e._hidden=t,e._cd.markForCheck()}))},enumerable:!0,configurable:!0}),t.prototype.ngAfterViewInit=function(){this.calculatePosition()},t.prototype.ngOnChanges=function(t){this.calculatePosition()},t.prototype.updateWidth=function(){this.calculatePosition()},t.prototype.getContentElement=function(){return this._el.nativeElement.querySelector("[pop-content]")},t.prototype.calculatePosition=function(){var t=this._el.nativeElement.querySelector("[pop-button]"),e=this.getContentElement(),n=t&&t.firstElementChild?t.firstElementChild:void 0;if(n){var i=this.getCoords(n);e.style.position="absolute",e.style.transform="translate3d("+i.x+"px, "+i.y+"px, "+i.z+"px)"}},t.prototype.getCoords=function(t){var e={x:0,y:0,z:0},n=this.openToLeft?this.getContentElement().getBoundingClientRect().width:0,i=t.getBoundingClientRect();switch(this.placement){case j.BOTTOM:e.x=i.width/2;break;case j.BOTTOM_END:e.x=i.width;break;case j.TOP:e.y=-1*i.height,e.x=i.width/2;break;case j.TOP_START:e.y=-1*i.height;break;case j.TOP_END:e.y=-1*i.height,e.x=i.width}return e.x=Math.ceil(e.x+this.offset.x-n),e.y=Math.ceil(e.y+this.offset.y),e},t.decorators=[{type:n.Component,args:[{selector:"st-pop",template:"\x3c!--\n\n © 2017 Stratio Big Data Inc., Sucursal en España.\n\n This software is licensed under the Apache License, Version 2.0.\n This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;\n without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.\n See the terms of the License for more details.\n\n SPDX-License-Identifier: Apache-2.0.\n\n--\x3e\n<ng-content select=[pop-button]></ng-content>\n<div [style.visibility]=\"hidden ? 'hidden' : 'visible'\" class=\"content\">\n <ng-content select=[pop-content]></ng-content>\n</div>\n",changeDetection:n.ChangeDetectionStrategy.OnPush,styles:['@charset "UTF-8";.content{height:0}']}]}],t.ctorParameters=function(){return[{type:n.ElementRef},{type:n.ChangeDetectorRef}]},t.propDecorators={placement:[{type:n.Input}],offset:[{type:n.Input}],openToLeft:[{type:n.Input}],hidden:[{type:n.Input}],updateWidth:[{type:n.HostListener,args:["window:load"]}]},t}();var W=function(){function t(){}return t.decorators=[{type:n.NgModule,args:[{imports:[e.CommonModule],exports:[q],declarations:[q],providers:[E]}]}],t}(),$=function(){function t(){}return t.decorators=[{type:n.NgModule,args:[{imports:[e.CommonModule,W],declarations:[Y],exports:[Y]}]}],t}(),z=function(){};var X={DEFAULT:"default",TITLE:"title"},G=function(){function t(){this.options=[],this.elementsToShow=5,this.mode=X.DEFAULT,this.select=new n.EventEmitter,this.indexArray=[],this._initPos=0}return t.prototype.ngOnInit=function(){this.calculateStart(this.options,this.elementsToShow)},t.prototype.ngOnChanges=function(t){if(t.options||t.elementsToShow){var e=t.elementsToShow?t.elementsToShow.currentValue:this.elementsToShow,n=t.options?t.options.currentValue:this.options;this.calculateStart(n,e)}},t.prototype.onSelect=function(t){var e=t>-1?t:this._initPos-1;e<this.options.length-1&&this.select.emit(e)},t.prototype.getId=function(t){return this.options[t].id},t.prototype.getLabel=function(t){return t>-1?this.options[t].label:"..."},t.prototype.getIcon=function(t){return t>-1?this.options[t].icon:""},t.prototype.hasIcon=function(t){return t>-1&&Boolean(this.options[t].icon)},t.prototype.calculateStart=function(t,e){t.length>e?(this._initPos=t.length-e+1,this.indexArray=o.range(this._initPos,this._initPos+e-1),this.indexArray.unshift(-1),this.indexArray.unshift(0)):(this._initPos=0,this.indexArray=o.range(0,t.length))},t.decorators=[{type:n.Component,args:[{selector:"st-breadcrumbs",template:'\x3c!--\n\n © 2017 Stratio Big Data Inc., Sucursal en España.\n\n This software is licensed under the Apache License, Version 2.0.\n This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;\n without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.\n See the terms of the License for more details.\n\n SPDX-License-Identifier: Apache-2.0.\n\n--\x3e\n<ul class="st-breadcrumbs {{mode}}-mode" [attr.id]="qaTag">\n <ng-content select="st-breadcrumbs-item"></ng-content>\n <ng-container *ngIf="options.length">\n <st-breadcrumbs-item\n class="sth-breadcrumbs__item-container"\n *ngFor="let idx of indexArray; let last=last"\n (click)="onSelect(idx)"\n [active]="last"\n [qaTag]="qaTag + \'-\' + idx">\n <i *ngIf="hasIcon(idx)" [ngClass]="getIcon(idx)"></i>\n <span>{{getLabel(idx)}}</span>\n </st-breadcrumbs-item>\n </ng-container>\n</ul>\n',changeDetection:n.ChangeDetectionStrategy.OnPush,styles:['@charset "UTF-8";ul{text-overflow:ellipsis;overflow:hidden;list-style:none;margin:0;padding:0}']}]}],t.propDecorators={options:[{type:n.Input}],elementsToShow:[{type:n.Input}],mode:[{type:n.Input}],qaTag:[{type:n.Input}],select:[{type:n.Output}]},t}();var Q=function(){function t(){}return Object.defineProperty(t.prototype,"qaTag",{get:function(){return this._qaTag.replace(/ /g,"-")},set:function(t){this._qaTag=t},enumerable:!0,configurable:!0}),t.decorators=[{type:n.Component,args:[{selector:"st-breadcrumbs-item",template:'\x3c!--\n\n © 2017 Stratio Big Data Inc., Sucursal en España.\n\n This software is licensed under the Apache License, Version 2.0.\n This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;\n without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.\n See the terms of the License for more details.\n\n SPDX-License-Identifier: Apache-2.0.\n\n--\x3e\n<li class="st-breadcrumbs__item" [ngClass]="{\'last\': active}" [attr.id]="qaTag">\n <span class="st-breadcrumbs__item--text">\n <ng-content select="i"></ng-content>\n <ng-content select="span"></ng-content>\n </span>\n</li>\n',styles:['@charset "UTF-8";.st-breadcrumbs__item{display:inline}.st-breadcrumbs__item--text{cursor:pointer}.last .st-breadcrumbs__item--text{cursor:default;background-color:transparent}']}]}],t.propDecorators={qaTag:[{type:n.Input}],active:[{type:n.Input}]},t}();var K=function(){function t(){}return t.decorators=[{type:n.NgModule,args:[{imports:[e.CommonModule],exports:[G,Q],declarations:[G,Q]}]}],t}(),Z={provide:r.NG_VALUE_ACCESSOR,useExisting:n.forwardRef((function(){return J})),multi:!0},J=function(){function t(t){this._changeDetectorRef=t,this.change=new n.EventEmitter,this._checked=!1,this._controlValueAccessorChangeFn=function(t){},this.onTouched=function(){}}return Object.defineProperty(t.prototype,"checked",{get:function(){return this._checked},set:function(t){t!==this.checked&&(this._checked=t,this._changeDetectorRef.markForCheck())},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"labelQaTag",{get:function(){return(this.qaTag||this.name)+"-label"},enumerable:!0,configurable:!0}),t.prototype.handleClick=function(){this.readonly||this.disabled||(this._checked=!this._checked,this._controlValueAccessorChangeFn(this._checked),this.change.emit({checked:this.checked,value:this.value}))},t.prototype.handleChange=function(t){t.stopPropagation()},t.prototype.writeValue=function(t){this._checked=t,this._changeDetectorRef.markForCheck()},t.prototype.registerOnChange=function(t){this._controlValueAccessorChangeFn=t},t.prototype.registerOnTouched=function(t){this.onTouched=t},t.prototype.setDisabledState=function(t){this.disabled=t,this._changeDetectorRef.markForCheck()},t.decorators=[{type:n.Component,args:[{selector:"st-checkbox",template:'\x3c!--\n\n © 2017 Stratio Big Data Inc., Sucursal en España.\n\n This software is licensed under the Apache License, Version 2.0.\n This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;\n without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.\n See the terms of the License for more details.\n\n SPDX-License-Identifier: Apache-2.0.\n\n--\x3e\n<label st-label class="st-checkbox" [ngClass]="{\'disabled\' : disabled}" [attr.id]="labelQaTag" [attr.title]="contextualHelp">\n <div class="st-checkbox-container">\n <input\n type="checkbox"\n [id]="qaTag"\n [name]="name"\n [required]="required"\n [checked]="checked"\n [disabled]="disabled"\n [value]="value"\n [hidden]="true"\n [readonly]="readonly"\n (click)="handleClick()"\n (change)="handleChange($event)" />\n </div>\n <div class="custom-checkbox st-checkbox-custom" [ngClass]="{\'icon-check2\' : checked}"></div><ng-content></ng-content>\n</label>\n',providers:[Z],changeDetection:n.ChangeDetectionStrategy.OnPush}]}],t.ctorParameters=function(){return[{type:n.ChangeDetectorRef}]},t.propDecorators={checked:[{type:n.Input}],name:[{type:n.Input}],qaTag:[{type:n.Input}],disabled:[{type:n.Input}],required:[{type:n.Input}],readonly:[{type:n.Input}],value:[{type:n.Input}],contextualHelp:[{type:n.Input}],change:[{type:n.Output}]},t}();var tt=function(){function t(t,e){this._el=t,this._cd=e,this._onClick=this._onClick.bind(this)}return Object.defineProperty(t.prototype,"title",{get:function(){return this._title},set:function(t){this._title=t,t?this._el.nativeElement.setAttribute("title",t):this._el.nativeElement.removeAttribute("title")},enumerable:!0,configurable:!0}),t.prototype.ngOnInit=function(){this.title=this._el.nativeElement.title,this._checkTooltipState()},t.prototype.ngOnDestroy=function(){document.removeEventListener("click",this._onClick)},t.prototype.ngOnChanges=function(){this._el&&this._checkTooltipState()},t.prototype.onClick=function(){this.showOnClick&&this.title&&(this.classTooltipOn=!0,document.addEventListener("click",this._onClick))},t.prototype._checkTooltipState=function(){this.classTooltip=this.title&&this.title.length&&!this.showOnClick,this.classTooltipOn=!1},t.prototype._onClick=function(t){this._el.nativeElement.contains(t.target)||(this.classTooltipOn=!1,document.removeEventListener("click",this._onClick),this._cd.markForCheck())},t.decorators=[{type:n.Component,args:[{selector:"[st-tooltip]",template:'\x3c!--\n\n © 2017 Stratio Big Data Inc., Sucursal en España.\n\n This software is licensed under the Apache License, Version 2.0.\n This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;\n without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.\n See the terms of the License for more details.\n\n SPDX-License-Identifier: Apache-2.0.\n\n--\x3e\n<span title=""><ng-content></ng-content></span>\n',styles:['@charset "UTF-8";:host.st-tooltip,:host.st-tooltip-on{position:relative}:host.st-tooltip-on:before,:host.st-tooltip:before{content:attr(title)}:host.st-tooltip-on:after,:host.st-tooltip:after{content:" "}:host.st-tooltip-on:after,:host.st-tooltip-on:before,:host.st-tooltip:after,:host.st-tooltip:before{pointer-events:none;position:absolute}:host.st-tooltip:after,:host.st-tooltip:before{opacity:0;visibility:hidden}:host.st-tooltip-on:after,:host.st-tooltip-on:before,:host.st-tooltip:hover:after,:host.st-tooltip:hover:before{opacity:1;visibility:visible}']}]}],t.ctorParameters=function(){return[{type:n.ElementRef},{type:n.ChangeDetectorRef}]},t.propDecorators={classTooltip:[{type:n.HostBinding,args:["class.st-tooltip"]}],classTooltipOn:[{type:n.HostBinding,args:["class.st-tooltip-on"]}],showOnClick:[{type:n.Input}],title:[{type:n.Input,args:["attr.title"]}],onClick:[{type:n.HostListener,args:["click"]}]},t}();var et=function(t){function e(e,n){var i=t.call(this,e,n)||this;return i.classStLabel=!0,i}return m(e,t),e.decorators=[{type:n.Component,args:[{selector:"[st-label]",template:'\x3c!--\n\n © 2017 Stratio Big Data Inc., Sucursal en España.\n\n This software is licensed under the Apache License, Version 2.0.\n This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;\n without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.\n See the terms of the License for more details.\n\n SPDX-License-Identifier: Apache-2.0.\n\n--\x3e\n<span title=""><ng-content></ng-content></span>\n',styles:['@charset "UTF-8";:host.st-tooltip,:host.st-tooltip-on{position:relative}:host.st-tooltip-on:before,:host.st-tooltip:before{content:attr(title)}:host.st-tooltip-on:after,:host.st-tooltip:after{content:" "}:host.st-tooltip-on:after,:host.st-tooltip-on:before,:host.st-tooltip:after,:host.st-tooltip:before{pointer-events:none;position:absolute}:host.st-tooltip:after,:host.st-tooltip:before{opacity:0;visibility:hidden}:host.st-tooltip-on:after,:host.st-tooltip-on:before,:host.st-tooltip:hover:after,:host.st-tooltip:hover:before{opacity:1;visibility:visible}']}]}],e.ctorParameters=function(){return[{type:n.ElementRef},{type:n.ChangeDetectorRef}]},e.propDecorators={classStLabel:[{type:n.HostBinding,args:["class.st-label"]}]},e}(tt);var nt=function(){function t(){}return t.decorators=[{type:n.NgModule,args:[{declarations:[tt],exports:[tt],imports:[e.CommonModule]}]}],t}(),it=function(){function t(){}return t.decorators=[{type:n.NgModule,args:[{declarations:[et],exports:[et],imports:[e.CommonModule,nt]}]}],t}(),ot=function(){function t(){}return t.decorators=[{type:n.NgModule,args:[{imports:[e.CommonModule,it],declarations:[J],exports:[J]}]}],t}(),st=function(){function t(t){this.http=t}return t.prototype.getFile=function(t){return this.http.get(location.pathname+"assets/source-code/"+t,{responseType:"text"}).pipe(s.map((function(t){return t})),s.catchError((function(){return i.of(null)})))},t.decorators=[{type:n.Injectable}],t.ctorParameters=function(){return[{type:a.HttpClient}]},t}();var rt=function(){function t(t,e){this.cd=t,this.docsService=e,this.options=[{id:"demo",text:"Overview"},{id:"html",text:"Html"},{id:"implementation",text:"Implementation"},{id:"component",text:"Component"}],this.active=this.options[0]}return t.prototype.ngOnInit=function(){var t=this;this.subscription=this.getFile(this.htmlFile).pipe(s.zip(this.getFile(this.tsFile),this.getFile(this.componentFile),(function(t,e,n){return{htmlCode:t,tsCode:e,componentCode:n}}))).subscribe((function(e){t.htmlCode=e&&e.htmlCode?e.htmlCode:null,t.demoTsCode=e&&e.tsCode?e.tsCode:null,t.componentTsCode=e&&e.componentCode?e.componentCode:null,t.disableTabOption(null===t.htmlCode,null===t.demoTsCode,null===t.componentTsCode),t.cd.markForCheck()}))},t.prototype.ngOnDestroy=function(){this.subscription.unsubscribe()},t.prototype.onChangeOption=function(t){this.active=t},t.prototype.getFile=function(t){return this.docsService.getFile(t)},t.prototype.disableTabOption=function(t,e,n){t&&(this.options=this.filterOption(this.options,"html")),e&&(this.options=this.filterOption(this.options,"implementation")),n&&(this.options=this.filterOption(this.options,"component"))},t.prototype.filterOption=function(t,e){return t.filter((function(t){return t.id!==e}))},t.decorators=[{type:n.Component,args:[{selector:"st-docs",template:'\x3c!--\n\n © 2017 Stratio Big Data Inc., Sucursal en España.\n\n This software is licensed under the Apache License, Version 2.0.\n This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;\n without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.\n See the terms of the License for more details.\n\n SPDX-License-Identifier: Apache-2.0.\n\n--\x3e\n<div>\n <st-horizontal-tabs [options]="options" [(activeOption)]="active" qaTag="horizontal-tabs-demo" (changedOption)="onChangeOption($event)">\n </st-horizontal-tabs>\n <div class="st-docs">\n <div *ngIf="active.id === \'demo\'">\n <ng-content></ng-content>\n </div>\n <div *ngIf="active.id === \'html\'">\n <st-prism-highlight [language]="\'html\'" id="codeinput">{{htmlCode}}</st-prism-highlight>\n </div>\n <div *ngIf="active.id === \'implementation\'">\n <st-prism-highlight [language]="\'javascript\'" id="codeinput">{{demoTsCode}}</st-prism-highlight>\n </div>\n\n <div *ngIf="active.id === \'component\'">\n <st-prism-highlight [language]="\'javascript\'" id="codeinput">{{componentTsCode}}</st-prism-highlight>\n </div>\n </div>\n</div>\n',styles:['@charset "UTF-8";.st-docs{width:100%;margin-top:22px}.st-docs__header{display:flex;flex-direction:row;background-color:rgba(0,0,0,.03);min-height:50px;align-items:center}.st-docs__header__icon-code{display:flex;flex-direction:row;margin-left:auto;align-items:center;margin-right:15px}.st-docs__header__copy-code{display:flex;flex-direction:row;align-items:center;margin-right:15px}.st-docs__content__component{min-height:100px;display:flex;justify-content:center;align-items:center}']}]}],t.ctorParameters=function(){return[{type:n.ChangeDetectorRef},{type:st}]},t.propDecorators={htmlFile:[{type:n.Input}],tsFile:[{type:n.Input}],componentFile:[{type:n.Input}]},t}();var at={warning:"warning",error:"error"};var lt=function(){function t(){}return t.isDefined=function(t){return null!=t},t.validateInputs=function(t,e,n){var i=this;e.forEach((function(e){if(!i.isDefined(t[e]))throw new Error(i.toDash(n)+": field "+e+" is a required field")}))},t.toDash=function(t){try{return t.replace(/([A-Z])/g,(function(t){return"-"+t.toLowerCase()})).substring(1)}catch(e){return t}},t}(),ct=Symbol("EgeoLibraryMetadata");function pt(t){return function(e,n){var i=Reflect.getOwnMetadata(ct,e.constructor)||{};i[n]=i.hasOwnProperty(n)&&i[n]||{type:0},i[n].required=!0,void 0!==t&&(i[n].requireCondition=t),Reflect.defineMetadata(ct,i,e.constructor)}}function ut(t){return function(t){var e=t.prototype.ngOnInit;t.prototype.ngOnInit=void 0!==e?function(){for(var n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];ht(t,this),dt(t,this),e.apply(this,n)}:function(){ht(t,this),dt(t,this)}}}function ht(t,e){var n=Reflect.getOwnMetadata(ct,t);void 0!==n&&Object.keys(n).forEach((function(i){n[i].deprecated&&(void 0!==e[i]?console.warn(lt.toDash(t.name)+": field "+i+" is a deprecated field"):n[i].initialValue&&(e[i]=n[i].initialValue))}))}function dt(t,e){var n=Reflect.getOwnMetadata(ct,t);if(void 0!==n){var i=function(t,e,n){return t.reduce((function(t,i){return void 0!==e[i].requireCondition?function(t,e){return"function"==typeof t[e]?t[e].apply(t):t[e]}(n,e[i].requireCondition)&&t.push(i):e[i].required&&t.push(i),t}),[])}(Object.keys(n),n,e);lt.validateInputs(e,i,t.name)}}var mt=function(){function t(){this.changedOption=new n.EventEmitter}return t.prototype.ngOnInit=function(){this.options&&this.options.length>0&&(this.activeOption=this.activeOption||this.options[0],this.activateOption(this.activeOption))},t.prototype.isActive=function(t){return this.activeOption===t},t.prototype.activateOption=function(t){this.activeOption=t,this.changedOption.emit(t)},t.prototype.getTabStatus=function(t){return t.status?at[t.status]:""},t.decorators=[{type:n.Component,args:[{selector:"st-horizontal-tabs",template:'\x3c!--\n\n © 2017 Stratio Big Data Inc., Sucursal en España.\n\n This software is licensed under the Apache License, Version 2.0.\n This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;\n without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.\n See the terms of the License for more details.\n\n SPDX-License-Identifier: Apache-2.0.\n\n--\x3e\n<nav class="st-horizontal-tabs">\n <a *ngFor="let option of options; let i = index;"\n class="tab {{getTabStatus(option)}}"\n (click)="activateOption(option)"\n href="javascript:void(0)"\n [ngClass]="{\'tab--active\': isActive(option)}"\n [attr.id]="qaTag + \'-tab-\' + i">{{option.text}}</a>\n <ng-content></ng-content>\n</nav>\n',changeDetection:n.ChangeDetectionStrategy.OnPush,styles:['@charset "UTF-8";.st-horizontal-tabs{position:relative;display:flex;width:100%;list-style:none}.tab{display:inline-block;text-align:center;box-sizing:border-box;line-height:1;padding:0 30px 7px;margin-top:auto;cursor:pointer}.tab--active{padding-bottom:5px}.line{display:block;transition:.4s ease-in-out}']}]}],t.propDecorators={activeOption:[{type:n.Input}],options:[{type:n.Input}],qaTag:[{type:n.Input}],changedOption:[{type:n.Output}]},g([pt(),y("design:type",Array)],t.prototype,"options",void 0),t=g([ut()],t)}();var ft=function(){function t(){}return t.decorators=[{type:n.NgModule,args:[{imports:[e.CommonModule],declarations:[mt],exports:[mt]}]}],t}(),gt=function(){function t(){this.async=!1,this.callback=void 0}return t.prototype.ngAfterViewChecked=function(){this.highlightAll(this.async,this.callback)},t.prototype.highlightElement=function(t,e,n){Prism.highlightElement(t,e,n)},t.prototype.highlightAll=function(t,e){Prism.highlightAll(t,e)},t.decorators=[{type:n.Component,args:[{encapsulation:n.ViewEncapsulation.None,selector:"st-prism-highlight",template:'<pre class="language-{{language}}" *ngIf="language"><code class="language-{{language}}"><ng-content></ng-content></code></pre>'}]}],t.propDecorators={language:[{type:n.Input,args:["language"]}],async:[{type:n.Input,args:["async"]}],callback:[{type:n.Input,args:["callback"]}]},t}();var yt=function(){function t(){}return t.decorators=[{type:n.NgModule,args:[{imports:[e.CommonModule],declarations:[gt],exports:[gt]}]}],t}(),bt=function(){function t(){}return t.decorators=[{type:n.NgModule,args:[{imports:[e.CommonModule,a.HttpClientModule,yt,ft],declarations:[rt],exports:[rt],providers:[st]}]}],t}(),vt=function(){function t(){this.onDragStart=new n.EventEmitter,this.onDragEnd=new n.EventEmitter,this.draggable=!0,this._dragging=!1}return Object.defineProperty(t.prototype,"dragging",{get:function(){return this._dragging},enumerable:!0,configurable:!0}),t.prototype.dragStartHandle=function(t){var e=this;this._dragging=!0,setTimeout((function(){return e.card.nativeElement.classList.add("shadow")})),t.dataTransfer.effectAllowed="all",t.dataTransfer.dropEffect="move",this.onDragStart.emit(t),t.stopPropagation()},t.prototype.dragEndHandle=function(t){this.card.nativeElement.classList.remove("shadow"),this._dragging=!1,t.stopPropagation(),this.onDragEnd.emit(t)},t.decorators=[{type:n.Component,args:[{selector:"st-draggable-card",template:'\x3c!--\n\n © 2017 Stratio Big Data Inc., Sucursal en España.\n\n This software is licensed under the Apache License, Version 2.0.\n This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;\n without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.\n See the terms of the License for more details.\n\n SPDX-License-Identifier: Apache-2.0.\n\n--\x3e\n\n<div #card class="st-draggable-card" [id]="id" [ngClass]="{dragging: dragging}">\n <span class="drag-button">\n <i class="icon-drag"></i>\n </span>\n <div class="content">\n <ng-content></ng-content>\n </div>\n</div>\n',changeDetection:n.ChangeDetectionStrategy.OnPush,styles:['@charset "UTF-8";.st-draggable-card{width:100%;height:100%;padding:30px 30px 30px 15px;display:flex}.st-draggable-card .drag-button{display:block;vertical-align:middle;margin-right:15px;-ms-grid-row-align:center;align-self:center}.st-draggable-card .content{display:block}']}]}],t.propDecorators={id:[{type:n.Input,args:["id"]}],onDragStart:[{type:n.Output}],onDragEnd:[{type:n.Output}],draggable:[{type:n.HostBinding,args:["draggable"]},{type:n.Input}],card:[{type:n.ViewChild,args:["card",{static:!1}]}],dragStartHandle:[{type:n.HostListener,args:["dragstart",["$event"]]}],dragEndHandle:[{type:n.HostListener,args:["dragend",["$event"]]}]},t}();var It=function(){function t(){}return t.decorators=[{type:n.NgModule,args:[{imports:[e.CommonModule],declarations:[vt],exports:[vt]}]}],t}(),wt="Arrow Up",St="Arrow Down",Tt=function(){};var xt=function(){};var Ct=function(){};var At=function(){};var Ot={OPTION_LIST:0,MENU_LIST:1};Ot[Ot.OPTION_LIST]="OPTION_LIST",Ot[Ot.MENU_LIST]="MENU_LIST";