@osovitny/anatoly 2.0.30 → 2.0.32

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.
@@ -12,5 +12,5 @@
12
12
  LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
13
13
  OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
14
14
  PERFORMANCE OF THIS SOFTWARE.
15
- ***************************************************************************** */b.decorators=[{type:e.Injectable}],b.ctorParameters=function(){return[{type:n.ActivatedRoute},{type:n.Router}]};var I=function(t,e){return(I=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 C(t,e){function n(){this.constructor=t}I(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}Object.create;function P(t){var e="function"==typeof Symbol&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function w(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,o,i=n.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(t){o={error:t}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}function x(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(w(arguments[e]));return t}Object.create;var z=function(t){function e(){var e=t.call(this,!1)||this;return e.counter=0,e.isFreezed=!1,e}return C(e,t),e.prototype.show=function(){this.counter++;var t=this;setTimeout((function(){t.counter>0&&t.next(!0)}),1e3)},e.prototype.hide=function(){this.counter<=0||(this.counter--,0==this.counter&&this.next(!1))},e.prototype.freeze=function(t){var e=this;void 0===t&&(t=1e3),this.isFreezed=!0;setTimeout((function(){e.isFreezed=!1}),t)},e}(i.BehaviorSubject);z.ɵprov=e.ɵɵdefineInjectable({factory:function(){return new z},token:z,providedIn:"root"}),z.decorators=[{type:e.Injectable,args:[{providedIn:"root"}]}],z.ctorParameters=function(){return[]};var L=function(){function t(){}return t.prototype.logError=function(t){console.error(t)},t.prototype.logInformation=function(t){console.info(t)},t}();L.ɵprov=e.ɵɵdefineInjectable({factory:function(){return new L},token:L,providedIn:"root"}),L.decorators=[{type:e.Injectable,args:[{providedIn:"root"}]}],L.ctorParameters=function(){return[]};var T=function(){function t(t,e){this.loadingService=t,this.loggingService=e,this.longRunningExceptionsList=[],this.autoCDNSASTokenUrls=["chunks","resources"],this.externalSiteUrls=["azurewebsites.net"]}return t.prototype.intercept=function(t,e){var n,i,a,s,u,c,l=this,p=v.IsCDNEnabled,d=v.CDNSASToken,f=this.loadingService.isFreezed,h=!f,g=t.url.toLowerCase(),m=t.url;if(!f)try{for(var y=P(this.longRunningExceptionsList),b=y.next();!b.done;b=y.next()){var S=b.value;if(g.indexOf(this.longRunningExceptionsList[S])>=0){h=!1;break}}}catch(t){n={error:t}}finally{try{b&&!b.done&&(i=y.return)&&i.call(y)}finally{if(n)throw n.error}}if(p)try{for(var I=P(this.autoCDNSASTokenUrls),C=I.next();!C.done;C=I.next()){S=C.value;if(g.indexOf(this.autoCDNSASTokenUrls[S])>=0){t=t.clone({url:m+d});break}}}catch(t){a={error:t}}finally{try{C&&!C.done&&(s=I.return)&&s.call(I)}finally{if(a)throw a.error}}try{for(var w=P(this.externalSiteUrls),x=w.next();!x.done;x=w.next()){S=x.value;if(g.indexOf(this.externalSiteUrls[S])>=0){!0;break}}}catch(t){u={error:t}}finally{try{x&&!x.done&&(c=w.return)&&c.call(w)}finally{if(u)throw u.error}}if(g.indexOf("/api/")>-1){var z="",L=(new Date).getTime().toString();z=g.indexOf("?")>-1?m+"&t="+L:m+"?t="+L,t=t.clone({url:z})}return t=t.clone({headers:t.headers.set("Accept","application/json")}),this.onRequestStart(h),e.handle(t).pipe(o.tap((function(t){t instanceof r.HttpResponse&&l.onRequestEnd(h)}),(function(t){l.onRequestEnd(h),l.loggingService.logError(t)})))},t.prototype.onRequestStart=function(t){t&&this.loadingService.show()},t.prototype.onRequestEnd=function(t){t&&this.loadingService.hide()},t}();T.decorators=[{type:e.Injectable}],T.ctorParameters=function(){return[{type:z},{type:L}]};var O=function(){function t(){}return t.toLocalizedDateTime=function(t){return t?new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds())):null},t}(),E=function(){function t(t){this.translate=t,this.setSupportedLanguages(["en"])}return t.prototype.format=function(t,e){return t.replace(/{(\d+)}/g,(function(t,n){return void 0!==e[n]?e[n]:t}))},t.prototype.configureTranslationSettings=function(t){return t.setDefaultLang("en"),"en"},t.prototype.getBrowserLanguage=function(){return this.translate.getBrowserLang()},t.prototype.getDatefnsLocale=function(){var t;switch(this.getBrowserLanguage()){case"en":t={locale:u};break;default:t={locale:u}}return t},t.prototype.setDefaultLanguage=function(t){this.translate.setDefaultLang(t)},t.prototype.setSupportedLanguages=function(t){this.translate.addLangs(t)},t.prototype.updateLanguage=function(t){this.translate.use(t)},t.prototype.getLocalizedValue=function(t,e){var n=this.translate.instant(t);return e&&0!==e.length?this.format(n,e):n},t.prototype.getLocalizedDate=function(t){return s.isValid(new Date(t))?s.format(new Date(t),v.DATE_FORMATS.angular,this.dateFnsLocale):"Invalid Date"},t.prototype.getLocalizedDateTime=function(t){var e=new Date(t);if(s.isValid(e)){var n=O.toLocalizedDateTime(e);return s.format(n,v.DATE_FORMATS.angularWithTime,this.dateFnsLocale)}return"Invalid Date"},t.prototype.getLocalizedDistanceToNowInWords=function(t){return s.isValid(new Date(t))?s.formatDistanceToNow(new Date(t),this.dateFnsLocale):"Invalid Date"},t.prototype.getLocalizedDistanceInWords=function(t,e){return s.isValid(new Date(t))&&s.isValid(new Date(e))?s.formatDistance(new Date(t),new Date(e),this.dateFnsLocale):"Invalid Date"},t}();E.ɵprov=e.ɵɵdefineInjectable({factory:function(){return new E(e.ɵɵinject(a.TranslateService))},token:E,providedIn:"root"}),E.decorators=[{type:e.Injectable,args:[{providedIn:"root"}]}],E.ctorParameters=function(){return[{type:a.TranslateService}]};var N=function(){function t(t){this.localizeService=t}return t.prototype.transform=function(t,e,n){if(t)return e||(e="t"),"t"===e?this.localizeService.getLocalizedValue(t):"d"===e?this.localizeService.getLocalizedDate(t):"dt"===e?this.localizeService.getLocalizedDateTime(t):"dis2now"===e?this.localizeService.getLocalizedDistanceToNowInWords(t):"dis"===e?this.localizeService.getLocalizedDistanceInWords(t,n):t},t}();function D(t){return new l.TranslateHttpLoader(t,v.resourcesUrl+"/",".json")}function j(t,e,n){return function(){return new Promise((function(r){n.get(c.LOCATION_INITIALIZED,Promise.resolve(null)).then((function(){var n=e.configureTranslationSettings(t);t.use(n).subscribe((function(){}),(function(){r(null)}),(function(){r(null)}))}))}))}}N.decorators=[{type:e.Pipe,args:[{name:"localize"}]}],N.ctorParameters=function(){return[{type:E}]};var V=a.TranslateModule.forRoot({loader:{provide:a.TranslateLoader,useFactory:D,deps:[r.HttpClient]}}),U=function(e){this.injector=e,t.LocalizationInjectorInstance=this.injector};U.decorators=[{type:e.NgModule,args:[{imports:[V],providers:[{provide:e.APP_INITIALIZER,useFactory:j,deps:[a.TranslateService,E,e.Injector],multi:!0}],exports:[]}]}],U.ctorParameters=function(){return[{type:e.Injector}]};var A=function(){};A.decorators=[{type:e.NgModule,args:[{imports:[a.TranslateModule],exports:[a.TranslateModule,N],declarations:[N],providers:[]}]}];var B=function(){function t(t){this.injector=t}return t.prototype.handleError=function(t){throw this.injector.get(L).logError(t),t},t}();B.decorators=[{type:e.Injectable}],B.ctorParameters=function(){return[{type:e.Injector}]};var k=function(){function e(){}return Object.defineProperty(e,"localizationService",{get:function(){return t.LocalizationInjectorInstance.get(E)},enumerable:!1,configurable:!0}),e.getLocalizedValue=function(t,e,n){return!t&&n?this.localizationService.getLocalizedValue(n):t?this.localizationService.getLocalizedValue(t,e):t},e}(),F=function(){function t(){}return t.success=function(t,e,n,r){t=k.getLocalizedValue(t,e,"OperationSuccessFull"),n=k.getLocalizedValue(n,null,"Success"),p.fire({text:t,title:n,icon:"success",confirmButtonText:k.getLocalizedValue("Ok")}).then((function(){r&&r()}))},t.info=function(t,e,n){t=k.getLocalizedValue(t,e),n=k.getLocalizedValue(n,null,"Info"),p.fire({text:t,title:n,icon:"info",confirmButtonText:k.getLocalizedValue("Ok")})},t.warning=function(t,e,n){t=k.getLocalizedValue(t,e),n=k.getLocalizedValue(n,null,"Warning"),p.fire({text:t,title:n,icon:"warning",confirmButtonText:k.getLocalizedValue("Ok")})},t.error=function(t,e,n){t=k.getLocalizedValue(t,e,"ErrorOccured"),n=k.getLocalizedValue(n,null,"Error"),p.fire({text:t,title:n,icon:"error",confirmButtonText:k.getLocalizedValue("Ok")})},t.cancel=function(t,e,n){t=k.getLocalizedValue(t,e,"OperationCancelled"),n=k.getLocalizedValue(n,null,"Cancelled"),p.fire({text:t,title:n,icon:"info"})},t.notImplemented=function(){this.warning("Not Implemented Yet")},t.areYouSure=function(t,e,n,r,o,i){t=k.getLocalizedValue(t),e=k.getLocalizedValue(e,null,"AreYouSure"),n=k.getLocalizedValue(n,null,"AreYouSure-ConfirmButtonText"),r=k.getLocalizedValue(r,null,"AreYouSure-CancelButtonText"),p.fire({text:t,title:e,icon:"warning",confirmButtonText:n,cancelButtonText:r,showCancelButton:!0}).then((function(t){t.value?o&&o():t.dismiss!=p.DismissReason.cancel&&t.dismiss!=p.DismissReason.close||i&&i()}))},t}(),q=function(){function t(){}return t.newGuid=function(){return f.v4()},t}(),M=function(){function t(t){this.toastrService=t,this._sessionNotifications=new i.BehaviorSubject([]),this._serverNotifications=new i.BehaviorSubject([]),this.sessionNotifications$=this._sessionNotifications.asObservable(),this.serverNotifications$=this._serverNotifications.asObservable()}return t.prototype.addSessionNotification=function(t,e){var n={id:q.newGuid(),isNew:!0,isSession:!0,text:t,type:e,createdDate:new Date(Date.now()).toISOString()};this.addSessionNotificationToList(n)},t.prototype.addSessionNotificationToList=function(t){this.sessionNotifications=x([t],this.sessionNotifications)},t.prototype.removeNotification=function(t,e){e?this.sessionNotifications=this.sessionNotifications.filter((function(e){return e.id!==t})):this.serverNotifications=this.serverNotifications.filter((function(e){return e.id!==t}))},t.prototype.success=function(t,e,n,r){void 0===r&&(r=!0),t=k.getLocalizedValue(t,e,"OperationSuccessFull"),n=k.getLocalizedValue(n),this.toastrService.success(t,n,{timeOut:3e3,progressBar:!0}),r&&this.addSessionNotification(t,"success")},t.prototype.info=function(t,e,n){t=k.getLocalizedValue(t,e),n=k.getLocalizedValue(n),this.toastrService.info(t,n,{timeOut:3e3,progressBar:!0})},t.prototype.warning=function(t,e,n){t=k.getLocalizedValue(t,e),n=k.getLocalizedValue(n),this.toastrService.warning(t,n,{timeOut:3e3,progressBar:!0})},t.prototype.error=function(t,e,n,r){void 0===r&&(r=!0),t=k.getLocalizedValue(t,e,"ErrorOccured"),n=k.getLocalizedValue(n),this.toastrService.error(t,n,{timeOut:3e3,progressBar:!0}),r&&this.addSessionNotification(t,"error")},t.prototype.cancel=function(t,e,n){t=k.getLocalizedValue(t,e,"OperationCancelled"),n=k.getLocalizedValue(n),this.toastrService.info(t,n,{timeOut:3e3,progressBar:!0})},Object.defineProperty(t.prototype,"sessionNotifications",{get:function(){return this._sessionNotifications.getValue()},set:function(t){this._sessionNotifications.next(t)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"serverNotifications",{get:function(){return this._serverNotifications.getValue()},set:function(t){this._serverNotifications.next(t)},enumerable:!1,configurable:!0}),t}();M.ɵprov=e.ɵɵdefineInjectable({factory:function(){return new M(e.ɵɵinject(d.ToastrService))},token:M,providedIn:"root"}),M.decorators=[{type:e.Injectable,args:[{providedIn:"root"}]}],M.ctorParameters=function(){return[{type:d.ToastrService}]};var R=function(){function t(t){this.http=t,this.baseUrl=""}return t.prototype.serializeParams=function(t){return t?"?"+$.param(t):""},t.prototype.get=function(t,e,n){n||(n="json");var r=this.baseUrl+"/"+t+this.serializeParams(e);return this.http.get(r,{responseType:n}).pipe(o.map((function(t){return t})))},t.prototype.post=function(t,e,n){n||(n="text");var r=this.baseUrl+"/"+t;return this.http.post(r,e,{responseType:n})},t.prototype.postQS=function(t,e,n){n||(n="text");var r=this.baseUrl+"/"+t+this.serializeParams(e);return this.http.post(r,null,{responseType:n})},t.prototype.delete=function(t,e,n){n||(n="text");var r=this.baseUrl+"/"+t+this.serializeParams(e);return this.http.delete(r,{responseType:n})},t.prototype.getById=function(t){return this.get("getById",{id:t})},t.prototype.getAll=function(t){return this.get("getall",t).pipe(o.map((function(t){return t})))},t.prototype.getJsonFile=function(t){var e=v.jsonsUrl+"/"+t+"?"+v.jsonVersion;return this.http.get(e).pipe(o.map((function(t){return t})))},t}();R.decorators=[{type:e.Injectable}],R.ctorParameters=function(){return[{type:r.HttpClient}]};var G=function(t){function e(e){var n=t.call(this,e)||this;return n.http=e,n.current=null,n.successes=[],n.subscription=null,n.baseUrl="/api/appContext",n}return C(e,t),e.prototype.getCurrent=function(t){var e=this;void 0!==t&&(null==this.current?(this.successes.push(t),null==this.subscription&&(this.subscription=this.get("GetCurrentContext",null).subscribe((function(t){e.dataReceived(t)}),(function(t){})))):t(this.current))},e.prototype.dataReceived=function(t){this.current=t;for(var e=0;e<this.successes.length;e++){(0,this.successes[e])(t)}this.successes=[],this.subscription.unsubscribe(),this.subscription=null,this.current=null},e.prototype.isUserSignedIn=function(){return y.isUserSignedIn},e.prototype.isUserAdmin=function(){return y.isUserAdmin},e}(R);G.decorators=[{type:e.Injectable}],G.ctorParameters=function(){return[{type:r.HttpClient}]};var H=function(){function t(){this.expired$=new i.Subject}return t.prototype.startWatching=function(t){var e=this;return this.idle$=i.merge(i.fromEvent(document,"mousemove"),i.fromEvent(document,"click"),i.fromEvent(document,"mousedown"),i.fromEvent(document,"keypress"),i.fromEvent(document,"DOMMouseScroll"),i.fromEvent(document,"mousewheel"),i.fromEvent(document,"touchmove"),i.fromEvent(document,"MSPointerMove"),i.fromEvent(window,"mousemove"),i.fromEvent(window,"resize")),this.timeOutMilliSeconds=1e3*t,this.idleSubscription=this.idle$.subscribe((function(t){e.resetTimer()})),this.startTimer(),this.expired$},t.prototype.startTimer=function(){var t=this;this.timer$=i.timer(this.timeOutMilliSeconds,this.timeOutMilliSeconds).subscribe((function(e){t.expired$.next(!0)}))},t.prototype.resetTimer=function(){this.timer$.unsubscribe(),this.startTimer()},t.prototype.stopTimer=function(){this.timer$.unsubscribe(),this.idleSubscription.unsubscribe()},t.prototype.restartIdleTimer=function(){var t=this;this.timer$.unsubscribe(),this.idleSubscription.unsubscribe(),this.idleSubscription=this.idle$.subscribe((function(e){t.resetTimer()})),this.startTimer()},t}();H.ɵprov=e.ɵɵdefineInjectable({factory:function(){return new H},token:H,providedIn:"root"}),H.decorators=[{type:e.Injectable,args:[{providedIn:"root"}]}];var _=function(){function t(t){this.currentClientKey=v.SERVICES_CONF.selectedClientID,this.storage="local"===t||"localStorage"===t?localStorage:sessionStorage}return t.prototype.setItem=function(t,e){this.storage.setItem(this.currentClientKey+t,e)},t.prototype.setObject=function(t,e){this.storage.setItem(this.currentClientKey+t,JSON.stringify(e))},t.prototype.getItem=function(t){return this.storage.getItem(this.currentClientKey+t)},t.prototype.getObject=function(t){return JSON.parse(this.storage.getItem(this.currentClientKey+t)||"{}")},t.prototype.remove=function(t){this.storage.removeItem(this.currentClientKey+t)},t}(),K=function(t){function e(){return t.call(this,"localStorage")||this}return C(e,t),e}(_);K.decorators=[{type:e.Injectable}],K.ctorParameters=function(){return[]};var W=function(t){function e(){return t.call(this,"sessionStorage")||this}return C(e,t),e}(_);W.decorators=[{type:e.Injectable}],W.ctorParameters=function(){return[]};var Y=function(e,n){this.injector=e,S(n,"AnatolyCoreModule"),t.InjectorInstance=this.injector};Y.decorators=[{type:e.NgModule,args:[{imports:[c.CommonModule],exports:[],providers:[L,M,G,z]}]}],Y.ctorParameters=function(){return[{type:e.Injector},{type:Y,decorators:[{type:e.Optional},{type:e.SkipSelf}]}]};var Q=function(){function t(){this.subs=[]}return t.prototype.add=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];this.subs=this.subs.concat(t)},Object.defineProperty(t.prototype,"sink",{set:function(t){this.subs.push(t)},enumerable:!1,configurable:!0}),t.prototype.unsubscribe=function(){this.subs.forEach((function(t){return t&&t.unsubscribe()})),this.subs=[]},t}(),J=function(){function t(){}return t.getValueByNameInQS=function(e){return t.getValueByName(location.search,e)},t.getValueByName=function(t,e){e=e.replace(/[\[]/,"\\[").replace(/[\]]/,"\\]");var n=new RegExp("[\\?&]"+e+"=([^&#]*)").exec(t);return null===n?"":decodeURIComponent(n[1].replace(/\+/g," "))},t.copyToClipBoard=function(t,e){t.preventDefault();var n=document.createElement("textarea");n.style.position="fixed",n.style.left="0",n.style.top="0",n.style.opacity="0",n.value=e,document.body.appendChild(n),n.focus(),n.select(),document.execCommand("copy"),document.body.removeChild(n)},t.downloadFile=function(t,e){var n=document.createElement("a");n.download=t,n.href=e,n.click()},t.downloadBlobFile=function(e,n){if(window.navigator.msSaveOrOpenBlob)window.navigator.msSaveOrOpenBlob(e,n);else{var r=window.URL.createObjectURL(e);t.downloadFile(n,r)}},t}(),X=function(t){function e(e){var n=t.call(this,[])||this;return n.http=e,n.baseReadUrl="",n.data=[],n}return C(e,t),e.prototype.serializeParams=function(t){return t?"?"+$.param(t):""},e.prototype.read=function(e,n,r){var i=this;if(this.data.length)return t.prototype.next.call(this,this.data);var a=this.baseReadUrl;void 0===e&&(e=this.savedReadParams),e&&(a=this.baseReadUrl+""+this.serializeParams(e),this.savedReadParams=e),this.http.get(a).pipe(o.map((function(t){return t}))).subscribe((function(e){t.prototype.next.call(i,e),n&&n()}),(function(t){r&&r(t)}))},e}(i.BehaviorSubject);X.decorators=[{type:e.Injectable}],X.ctorParameters=function(){return[{type:r.HttpClient}]};var Z=function(t){function e(e){var n=t.call(this,e)||this;return n.http=e,n.baseUrl="",n}return C(e,t),e.prototype.reset=function(){this.data=[]},e.prototype.resetItem=function(e){if(e){var n=this.data.find((function(t){return t.Id===e.Id}));Object.assign(n,e),t.prototype.next.call(this,this.data)}},e.prototype.save=function(t,e,n){var r=this,o=e?"add":"update";this.reset(),this.post(o,t).subscribe((function(){}),(function(){r.read()}),(function(){r.read(),n&&n()}))},e.prototype.remove=function(t,e){var n=this;this.reset(),this.post("remove",t).subscribe((function(){}),(function(){n.read()}),(function(){n.read(),e&&e()}))},e.prototype.post=function(t,e){var n=this.baseUrl+""+t+this.serializeParams(e);return this.http.post(n,e).pipe(o.map((function(t){return t})))},e}(X);Z.decorators=[{type:e.Injectable}],Z.ctorParameters=function(){return[{type:r.HttpClient}]};var tt={billingApiPath:"api/billing",notificationsApiPath:"api/notifications"},et=function(t){function e(e){var n=t.call(this,e)||this;return n.http=e,n.baseUrl=tt.notificationsApiPath,n}return C(e,t),e.prototype.retrieveNotifications=function(){return this.get("retrieveNotifications")},e}(R);et.ɵprov=e.ɵɵdefineInjectable({factory:function(){return new et(e.ɵɵinject(r.HttpClient))},token:et,providedIn:"root"}),et.decorators=[{type:e.Injectable,args:[{providedIn:"root"}]}],et.ctorParameters=function(){return[{type:r.HttpClient}]};var nt=function(t){function e(e){var n=t.call(this,e)||this;return n.http=e,n.baseUrl=tt.billingApiPath,n}return C(e,t),e.prototype.requestNewSubscription=function(t,e,n){this.postQS("requestNewSubscription",{requestedPlan:t}).subscribe((function(t){}),(function(t){n&&n()}),(function(){e&&e()}))},e.prototype.cancelRequestedSubscription=function(t,e){this.postQS("cancelRequestedSubscription",null).subscribe((function(t){}),(function(t){e&&e()}),(function(){t&&t()}))},e.prototype.buyAccess=function(t,e,n){this.postQS("buyAccess",{requestedPlan:t}).subscribe((function(t){}),(function(t){n&&n()}),(function(){e&&e()}))},e}(R);nt.decorators=[{type:e.Injectable}],nt.ctorParameters=function(){return[{type:r.HttpClient}]};var rt=function(t){S(t,"AnatolyDataModule")};rt.decorators=[{type:e.NgModule,args:[{imports:[c.CommonModule],providers:[nt]}]}],rt.ctorParameters=function(){return[{type:rt,decorators:[{type:e.Optional},{type:e.SkipSelf}]}]};var ot=function(){function t(t,e){this.appcontext=t,this.api=e,this.contextUpdated=!1,this.isUserSignedIn=!1,this.currentPlan=0,this.currentPlanTitle=""}return t.prototype.ngOnInit=function(){var t=this;this.appcontext.isUserSignedIn()?this.appcontext.getCurrent((function(e){t.isUserSignedIn=e.isUserSignedIn,t.isUserSignedIn&&(t.currentPlan=e.account.billingPlan,t.currentPlanTitle=e.account.billingPlanAsString),t.contextUpdated=!0})):this.contextUpdated=!0},t.prototype.onBuyPlan=function(){var t="Requested plan: "+this.plantitle+" ",e=this;F.areYouSure(t,"Buying access","Confirm change","Cancel",(function(){e.api.buyAccess(e.plan,(function(){F.success("Access Granted",null,null,(function(){window.location.reload()}))}))}))},t}();ot.decorators=[{type:e.Component,args:[{selector:"anatoly-buyaccess-button",template:'<div *ngIf="contextUpdated">\r\n <div *ngIf="!isUserSignedIn">\r\n <anatoly-signup-button classbtn="btn btn-block btn-primary"></anatoly-signup-button>\r\n </div>\r\n\r\n <div *ngIf="isUserSignedIn">\r\n <button class="btn btn-block btn-success selectPlan" *ngIf="plan == currentPlan">\r\n Your Plan\r\n </button>\r\n\r\n <button class="btn btn-block btn-warning selectPlan" *ngIf="plan != currentPlan && currentPlan == 1" (click)="onBuyPlan()">\r\n Buy Now\r\n </button>\r\n </div>\r\n</div>\r\n'}]}],ot.ctorParameters=function(){return[{type:G},{type:nt}]},ot.propDecorators={plan:[{type:e.Input}],plantitle:[{type:e.Input}]};var it=function(){function t(t){this.appcontext=t,this.contextUpdated=!1,this.isUserSignedIn=!1,this.currentPlan=0,this.currentPlanTitle="",this.requestedPlan=0,this.requestedPlanTitle=""}return t.prototype.ngOnInit=function(){var t=this;this.appcontext.isUserSignedIn()?this.appcontext.getCurrent((function(e){t.isUserSignedIn=e.isUserSignedIn,t.isUserSignedIn&&(t.currentPlan=e.account.billingPlan,t.currentPlanTitle=e.account.billingPlanAsString,t.requestedPlan=e.account.requestedBillingPlan,t.requestedPlanTitle=e.account.requestedBillingPlanAsString),t.contextUpdated=!0})):this.contextUpdated=!0},t}();it.decorators=[{type:e.Component,args:[{selector:"anatoly-subscribe-plan-button",template:'<div *ngIf="contextUpdated">\r\n <div *ngIf="!isUserSignedIn">\r\n <anatoly-signup-button classbtn="btn btn-block btn-primary"></anatoly-signup-button>\r\n </div>\r\n\r\n <div *ngIf="isUserSignedIn">\r\n <button class="btn btn-block btn-success selectPlan" *ngIf="plan == currentPlan">\r\n Your Plan\r\n </button>\r\n\r\n <button class="btn btn-block btn-warning selectPlan" *ngIf="requestedPlan != null && requestedPlan != 0 && plan == requestedPlan">\r\n Requested\r\n </button>\r\n\r\n <anatoly-upgrade-plan-button *ngIf="plan != currentPlan && plan != requestedPlan"\r\n [currentplantitle]="currentPlanTitle"\r\n [requestedplan]=plan\r\n [requestedplantitle]="plantitle">\r\n </anatoly-upgrade-plan-button>\r\n </div>\r\n</div>\r\n'}]}],it.ctorParameters=function(){return[{type:G}]},it.propDecorators={plan:[{type:e.Input}],plantitle:[{type:e.Input}]};var at=function(){function t(t){this.api=t}return t.prototype.onUpgradePlan=function(){var t="Current plan: "+this.currentplantitle+" New plan: "+this.requestedplantitle,e=this;F.areYouSure(t,"Change billing plan","Confirm change","Cancel",(function(){e.api.requestNewSubscription(e.requestedplan,(function(){F.success("Your request for changing plan has been sent.",null,null,(function(){window.location.reload()}))}))}))},t}();at.decorators=[{type:e.Component,args:[{selector:"anatoly-upgrade-plan-button",template:'<button class="btn btn-block btn-primary" (click)="onUpgradePlan()">\r\n Upgrade\r\n</button>\r\n'}]}],at.ctorParameters=function(){return[{type:nt}]},at.propDecorators={currentplantitle:[{type:e.Input}],requestedplan:[{type:e.Input}],requestedplantitle:[{type:e.Input}]};var st=function(){function t(){}return t.prototype.ngOnInit=function(){null==this.title&&(this.title="")},t}();st.decorators=[{type:e.Component,args:[{selector:"anatoly-content-header",template:'<h2 class="page-header">\r\n {{title}}\r\n \x3c!--<small>Optional {{title}}</small>--\x3e\r\n</h2>\r\n'}]}],st.propDecorators={title:[{type:e.Input}]};var ut={placeholderText:"Edit Your Content Here",charCounterCount:!0,heightMin:100,toolbarInline:!1,toolbarButtons:{moreText:{buttons:["bold","italic","underline","strikeThrough","subscript","superscript","fontFamily","fontSize","textColor","backgroundColor","inlineClass","inlineStyle"]},moreParagraph:{buttons:["alignLeft","alignCenter","formatOLSimple","alignRight","alignJustify","formatOL","formatUL","paragraphFormat","paragraphStyle","lineHeight","outdent","indent","quote"]},moreRich:{buttons:["insertLink","insertImage","insertTable","emoticons","fontAwesome","specialCharacters","embedly"]},moreMisc:{buttons:["selectAll","clearFormatting","html","undo","redo","fullscreen"],align:"right"}},imageUploadURL:"/api/HtmlEditor/UploadImage",imageAllowedTypes:["jpeg","jpg","png"],imageUploadParams:{uploadType:"",uploadParentId:""}},ct=function(){function t(){}return t.prototype.getQSId=function(){var t=J.getValueByNameInQS("id");return void 0===t||""==t?null:t},t}(),lt=function(t){function e(){var e=t.call(this)||this;return e.formSubmitted=!1,e}return C(e,t),e.prototype.isActionAdding=function(){var t=J.getValueByNameInQS("id");return void 0===t||""==t},e.prototype.getEntityId=function(){return this.getQSId()},e.prototype.isControlValid=function(t,e){return void 0===e&&(e=null),!this.isControlInvalid(t,e)},e.prototype.isControlInvalid=function(t,e){if(void 0===e&&(e=null),void 0===t||""==t)return!1;var n=e||this.formGroup;return!!n&&(!!n.get(t)&&(this.formSubmitted&&n.get(t).invalid||n.get(t).touched&&n.get(t).invalid))},e.prototype.getFormValue=function(t,e){return void 0===e&&(e=null),(e||this.formGroup).controls[t].value},e.prototype.setFormValue=function(t,e,n){void 0===n&&(n=null),(n||this.formGroup).controls[t].setValue(e)},e.prototype.getFormGroupValue=function(t,e,n){return void 0===n&&(n=null),(n||this.formGroup).controls[t].get(e).value},e.prototype.setFormGroupValue=function(t,e,n,r){void 0===r&&(r=null),(r||this.formGroup).controls[t].get(e).setValue(n)},e}(ct);lt.propDecorators={formGroup:[{type:e.Input}],formSubmitted:[{type:e.Input}]};var pt=function(t){function e(){var e=t.call(this)||this;return e.froalaEditorInitialized=!1,e.afterInitializedActions=[],e.editorLabelText="Html",e.editorOptions={},e}return C(e,t),e.prototype.ngOnInit=function(){var t=this.editorOptions;"string"==typeof this.editorOptions&&(t=JSON.parse(this.editorOptions));var e=$.extend({},ut,t),n=v.froalaEditorKey;n&&(e=$.extend({},e,JSON.parse('{ "key": "'+n+'" }'))),e.events&&e.events.initialized&&(e.events.initialized.overridden=!1),this.options=e},e.prototype.ngAfterViewInit=function(){var t=this;setTimeout((function(){t.froalaEditorInitialized=!0,t.onInitialized()}),300)},e.prototype.onInitialized=function(){var t=this.afterInitializedActions;if(this.afterInitializedActions=[],t)for(var e=0;e<t.length;e++)t[e]()},e.prototype.getEditor=function(){return this.froalaEditor?this.froalaEditor.getEditor():null},e.prototype.doAfterInitialized=function(t){var e=this;this.froalaEditorInitialized?t(e):this.afterInitializedActions.push((function(){t(e)}))},e.prototype.initializeControl=function(t){this.froalaEditor=t,this.froalaEditor.initialize()},e.prototype.setUploadParams=function(t,e){this.doAfterInitialized((function(n){var r=n.getEditor();void 0!==r&&null!=r&&(r.opts.imageUploadParams.uploadType=t,r.opts.imageUploadParams.uploadParentId=e)}))},e}(lt);pt.propDecorators={editorLabelText:[{type:e.Input}],editorOptions:[{type:e.Input}]};var dt=function(t){function e(){var e=t.call(this)||this;return e.editorFormKey="html",e}return C(e,t),e.prototype.setFormValueAfterInitialized=function(t,e){this.doAfterInitialized((function(n){n.setFormValue(t,e)}))},e}(pt);dt.decorators=[{type:e.Component,args:[{selector:"anatoly-forms-html-editor",template:'<div [formGroup]="formGroup">\r\n <div class="form-group" [ngClass]="{\'has-error\': isControlInvalid(editorFormKey) }">\r\n <label class="control-label">{{ editorLabelText }}</label>\r\n <textarea [formControlName]="editorFormKey"\r\n [froalaEditor]="options" (froalaInit)="initializeControl($event)">\r\n </textarea>\r\n <anatoly-item-validation-summary [formGroup]="formGroup"\r\n [formSubmitted]="formSubmitted"\r\n [controlName]="editorFormKey"\r\n [controlTitle]="editorLabelText">\r\n </anatoly-item-validation-summary>\r\n </div>\r\n</div>\r\n'}]}],dt.ctorParameters=function(){return[]},dt.propDecorators={editorFormKey:[{type:e.Input}]};var ft=function(t){function e(){return t.call(this)||this}return C(e,t),e.prototype.setHtml=function(t){this.doAfterInitialized((function(e){var n=e.getEditor();void 0!==n&&null!=n&&n.html.set(t)}))},e.prototype.getHtml=function(){var t=this.getEditor();if(void 0!==t&&null!=t)return t.html.get(!1)},e}(pt);ft.decorators=[{type:e.Component,args:[{selector:"anatoly-html-editor",template:'<div>\r\n <label>{{ editorLabelText }}</label>\r\n <textarea [froalaEditor]="options" (froalaInit)="initializeControl($event)">\r\n </textarea>\r\n</div>'}]}],ft.ctorParameters=function(){return[]};var ht=function(){};ht.decorators=[{type:e.Component,args:[{selector:"anatoly-signin-button",template:'<a href="identity/signIn" class="{{classbtn}}">Sign In</a>\r\n'}]}],ht.ctorParameters=function(){return[]},ht.propDecorators={classbtn:[{type:e.Input}]};var gt=function(){};gt.decorators=[{type:e.Component,args:[{selector:"anatoly-signout-button",template:'<a href="identity/signOut" class="{{classbtn}}">Sign Out</a>\r\n'}]}],gt.ctorParameters=function(){return[]},gt.propDecorators={classbtn:[{type:e.Input}]};var mt=function(){};mt.decorators=[{type:e.Component,args:[{selector:"anatoly-signup-button",template:'<a href="identity/signup" class="{{classbtn}}">Sign Up</a>\r\n'}]}],mt.propDecorators={classbtn:[{type:e.Input}]};var yt=function(){function t(t){this.loadingService=t,this.subs=new Q,this.show=!1}return t.prototype.ngOnInit=function(){var t=this;this.subs.sink=this.loadingService.subscribe((function(e){t.show=e}))},t.prototype.ngOnDestroy=function(){this.subs.unsubscribe()},t}();yt.decorators=[{type:e.Component,args:[{selector:"anatoly-loading",template:'<div *ngIf="show">\r\n <span id="pnlLoading" class="k-icon k-i-loading"></span>\r\n</div>\r\n'}]}],yt.ctorParameters=function(){return[{type:z}]};var vt={spinnerLine:"spinner-line-material",ChasingDots:"spinner-chasing-dots",CubeGrid:"spinner-cube-grid",DoubleBounce:"spinner-double-bounce",RotatingPlane:"spinner-rotationg-plane",SpinnerPulse:"spinner-spinner-pulse",ThreeBounce:"spinner-three-bounce",WanderingCubes:"spinner-wandering-cubes",Wave:"spinner-wave"},bt=function(){function t(t,e){var r=this;this.router=t,this.document=e,this.isSpinnerVisible=!0,this.spinnerSpinKit=vt,this.backgroundColor="#007CB0",this.spinner=vt.spinnerLine,this.router.events.subscribe((function(t){t instanceof n.NavigationStart?r.isSpinnerVisible=!0:(t instanceof n.NavigationEnd||t instanceof n.NavigationCancel||t instanceof n.NavigationError)&&(r.isSpinnerVisible=!1)}),(function(){r.isSpinnerVisible=!1}))}return t.prototype.ngOnDestroy=function(){this.isSpinnerVisible=!1},t}();bt.decorators=[{type:e.Component,args:[{selector:"spinner",template:'<div id="spinner-loader" *ngIf="isSpinnerVisible">\r\n <div class="loader-bg">\r\n <div class="spinner-line-material" [class.colored]="!backgroundColor" *ngIf="spinner === spinnerSpinKit.spinnerLine">\r\n <div class="spinner-child spinner-bounce1" [style.background-color]=\'backgroundColor\'></div>\r\n </div>\r\n </div>\r\n</div>\r\n',encapsulation:e.ViewEncapsulation.None}]}],bt.ctorParameters=function(){return[{type:n.Router},{type:Document,decorators:[{type:e.Inject,args:[c.DOCUMENT]}]}]},bt.propDecorators={backgroundColor:[{type:e.Input}],spinner:[{type:e.Input}]};var St=function(){function t(t,e){this.el=t,this.control=e}return t.prototype.ngOnInit=function(){this.control.control.nativeElement=this.el.nativeElement},t}();St.decorators=[{type:e.Directive,args:[{selector:"[formControl], [formControlName]"}]}],St.ctorParameters=function(){return[{type:e.ElementRef},{type:h.NgControl}]};var It=function(){function t(){}return t.prototype.transform=function(t,e,n){return t?t.replace(new RegExp(e,"g"),n):t},t}();It.decorators=[{type:e.Pipe,args:[{name:"replaceText"}]}];var Ct=function(){function t(){this.units=["Bytes","KB","MB","GB","TB","PB"]}return t.prototype.transform=function(t,e){if(void 0===t&&(t=0),void 0===e&&(e=0),isNaN(parseFloat(String(t)))||!isFinite(t))return"";for(var n=0;t>=1024;)t/=1024,n++;return t.toFixed(+e)+" "+this.units[n]},t}();Ct.decorators=[{type:e.Pipe,args:[{name:"filesize"}]}];var Pt=function(){function t(t){this.sanitized=t}return t.prototype.transform=function(t){return this.sanitized.bypassSecurityTrustHtml(t)},t}();Pt.decorators=[{type:e.Pipe,args:[{name:"safeHtml"}]}],Pt.ctorParameters=function(){return[{type:g.DomSanitizer}]};var wt=function(t){function e(){return t.call(this)||this}return C(e,t),e.prototype.getFormValidationMessages=function(){var t=this,e=[];return Object.keys(this.formGroup.controls).forEach((function(n){var r=t.formGroup.controls[n];null!=r.controls?Object.keys(r.controls).forEach((function(n){var o=r.controls[n];t.getValidationMessages(o,t.getControlName(o,n)).forEach((function(t){return e.push(t)}))})):t.getValidationMessages(r,t.getControlName(r,n)).forEach((function(t){return e.push(t)}))})),e},e.prototype.getValidationMessages=function(t,e){var n=t.path||e,r=[];if(t.errors)for(var o in t.errors)if(t.errors.hasOwnProperty(o))switch(o){case"required":r.push(n+" is required");break;case"minlength":r.push(n+" must be at least "+t.errors.minlength.requiredLength+" characters");break;case"pattern":r.push(n+" contains illegal characters");break;case"format":r.push(n+" format mismatch");break;case"maxlength":r.push(n+" must have maximum "+t.errors.maxlength.requiredLength+" characters");break;case"specialcharacters":r.push(n+" contains special characters")}return r},e.prototype.getControlName=function(t,e){var n=this.getControlTitle(t);return n||e},e.prototype.getControlTitle=function(t){if(null==t?void 0:t.nativeElement){var e=this.getTitleAttribute(t.nativeElement);if(e)return e}},e.prototype.getTitleAttribute=function(t){var e,n,r,o,i,a,s;switch(t.tagName){case"KENDO-TIMEPICKER":case"KENDO-DATEPICKER":s=null===(o=null===(r=null===(n=null===(e=t.children[0])||void 0===e?void 0:e.children[0])||void 0===n?void 0:n.children[0])||void 0===r?void 0:r.children[0])||void 0===o?void 0:o.getAttribute("title");break;case"KENDO-NUMERICTEXTBOX":s=null===(a=null===(i=t.children[0])||void 0===i?void 0:i.children[0])||void 0===a?void 0:a.getAttribute("title");break;default:s=t.getAttribute("title")}return s},e}(lt),xt=function(t){function e(){var e=t.call(this)||this;return e.visible=!1,e.customerrors=[],e.viewtype=0,e}return C(e,t),e.prototype.getErrors=function(){if(1==this.viewtype)return this.customerrors;var t=this.getFormValidationMessages();if(0==this.viewtype)return t;var e=[];return t.length>0&&e.push.apply(e,x(t)),this.customerrors.length>0&&e.push.apply(e,x(this.customerrors)),e},e}(wt);xt.decorators=[{type:e.Component,args:[{selector:"anatoly-form-validation-summary",template:'<div class="callout callout-danger" *ngIf="visible">\r\n <h6 class="box-title">There are problems with the form</h6>\r\n <ul>\r\n <li *ngFor="let error of getErrors()"><span>{{error}}</span></li>\r\n </ul>\r\n</div>\r\n\r\n'}]}],xt.ctorParameters=function(){return[]},xt.propDecorators={visible:[{type:e.Input}],customerrors:[{type:e.Input}],viewtype:[{type:e.Input}]};var zt=function(t){function e(){return t.call(this)||this}return C(e,t),e}(wt);zt.decorators=[{type:e.Component,args:[{selector:"anatoly-item-validation-summary",template:'<ul class="list-unstyled" *ngIf="isControlInvalid(controlName)">\r\n <li *ngFor="let error of getValidationMessages(formGroup.get(controlName), controlTitle)">\r\n <span class="help-block">{{ error }}</span>\r\n </li>\r\n</ul>\r\n\r\n'}]}],zt.ctorParameters=function(){return[]},zt.propDecorators={controlName:[{type:e.Input}],controlTitle:[{type:e.Input}]};var Lt=m.FroalaEditorModule.forRoot(),Tt=m.FroalaViewModule.forRoot(),Ot=function(){};Ot.decorators=[{type:e.NgModule,args:[{imports:[c.CommonModule,h.ReactiveFormsModule,h.FormsModule,Lt,Tt],exports:[it,at,ot,ht,mt,gt,xt,zt,ft,dt,st,bt,yt,St,Pt,It,Ct],declarations:[it,at,ot,ht,mt,gt,xt,zt,ft,dt,st,bt,yt,St,Pt,It,Ct]}]}],t.Alerts=F,t.AnatolyCoreModule=Y,t.AnatolyDataModule=rt,t.AnatolyHttpInterceptor=T,t.AnatolyUIModule=Ot,t.AppContextService=G,t.AppCoreSettings=v,t.BaseApiService=R,t.BaseComponent=ct,t.BaseEditComponent=lt,t.BaseGoService=b,t.BaseGridEditService=Z,t.BaseGridReadService=X,t.BaseHtmlEditorComponent=pt,t.BillingApiService=nt,t.BuyAccessButtonComponent=ot,t.ContentHeaderComponent=st,t.ContextInitState=y,t.Convert=O,t.DefaultEditorOptions=ut,t.FileSizePipe=Ct,t.FormValidationSummaryComponent=xt,t.FormsHtmlEditorComponent=dt,t.FroalaEditorModuleWithProviders=Lt,t.FroalaViewModuleWithProviders=Tt,t.GlobalErrorHandler=B,t.Guid=q,t.HtmlEditorComponent=ft,t.IdleService=H,t.ItemValidationSummaryComponent=zt,t.LoadingComponent=yt,t.LoadingService=z,t.LocalStorageService=K,t.LocalizationModule=A,t.LocalizationService=E,t.LocalizationSettingsModule=U,t.LocalizePipe=N,t.LoggingService=L,t.NativeElementDirective=St,t.NotificationService=M,t.NotificationsApiService=et,t.ReplaceTextPipe=It,t.SafeHtmlPipe=Pt,t.SessionStorageService=W,t.SignInButtonComponent=ht,t.SignOutButtonComponent=gt,t.SignUpButtonComponent=mt,t.SpinnerComponent=bt,t.Subs=Q,t.SubscribePlanButtonComponent=it,t.TranslateModuleAtRoot=V,t.UpgradePlanButtonComponent=at,t.Urls={notificationsSocketUrl:"/hubs/notifications"},t.Utils=J,t.ValidationSummaryComponent=wt,t.consts=tt,t.customTranslateLoaderFactory=D,t.localizationInitializerFactory=j,t.throwIfAlreadyLoaded=S,Object.defineProperty(t,"__esModule",{value:!0})}));
15
+ ***************************************************************************** */b.decorators=[{type:e.Injectable}],b.ctorParameters=function(){return[{type:n.ActivatedRoute},{type:n.Router}]};var I=function(t,e){return(I=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 C(t,e){function n(){this.constructor=t}I(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}Object.create;function P(t){var e="function"==typeof Symbol&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function w(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,o,i=n.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(t){o={error:t}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}function x(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(w(arguments[e]));return t}Object.create;var z=function(t){function e(){var e=t.call(this,!1)||this;return e.counter=0,e.isFreezed=!1,e}return C(e,t),e.prototype.show=function(){this.counter++;var t=this;setTimeout((function(){t.counter>0&&t.next(!0)}),1e3)},e.prototype.hide=function(){this.counter<=0||(this.counter--,0==this.counter&&this.next(!1))},e.prototype.freeze=function(t){var e=this;void 0===t&&(t=1e3),this.isFreezed=!0;setTimeout((function(){e.isFreezed=!1}),t)},e}(i.BehaviorSubject);z.ɵprov=e.ɵɵdefineInjectable({factory:function(){return new z},token:z,providedIn:"root"}),z.decorators=[{type:e.Injectable,args:[{providedIn:"root"}]}],z.ctorParameters=function(){return[]};var L=function(){function t(){}return t.prototype.logError=function(t){console.error(t)},t.prototype.logInformation=function(t){console.info(t)},t}();L.ɵprov=e.ɵɵdefineInjectable({factory:function(){return new L},token:L,providedIn:"root"}),L.decorators=[{type:e.Injectable,args:[{providedIn:"root"}]}],L.ctorParameters=function(){return[]};var T=function(){function t(t,e){this.loadingService=t,this.loggingService=e,this.longRunningExceptionsList=[],this.autoCDNSASTokenUrls=["chunks","resources"],this.externalSiteUrls=["azurewebsites.net"]}return t.prototype.intercept=function(t,e){var n,i,a,s,u,c,l=this,p=v.IsCDNEnabled,d=v.CDNSASToken,f=this.loadingService.isFreezed,h=t.url.toLowerCase(),g=t.url,m=!f;if(!f)try{for(var y=P(this.longRunningExceptionsList),b=y.next();!b.done;b=y.next()){var S=b.value;if(h.indexOf(this.longRunningExceptionsList[S])>=0){m=!1;break}}}catch(t){n={error:t}}finally{try{b&&!b.done&&(i=y.return)&&i.call(y)}finally{if(n)throw n.error}}if(p)try{for(var I=P(this.autoCDNSASTokenUrls),C=I.next();!C.done;C=I.next()){S=C.value;if(h.indexOf(this.autoCDNSASTokenUrls[S])>=0){t=t.clone({url:g+d});break}}}catch(t){a={error:t}}finally{try{C&&!C.done&&(s=I.return)&&s.call(I)}finally{if(a)throw a.error}}try{for(var w=P(this.externalSiteUrls),x=w.next();!x.done;x=w.next()){S=x.value;if(h.indexOf(this.externalSiteUrls[S])>=0){!0;break}}}catch(t){u={error:t}}finally{try{x&&!x.done&&(c=w.return)&&c.call(w)}finally{if(u)throw u.error}}if(h.indexOf("/api/")>-1){var z="",L=(new Date).getTime().toString();z=h.indexOf("?")>-1?g+"&t="+L:g+"?t="+L,t=t.clone({url:z})}return t=(t=t.clone({headers:t.headers.set("Accept","application/json")})).clone({headers:t.headers.set("Accept","application/text")}),this.onRequestStart(m),e.handle(t).pipe(o.tap((function(t){t instanceof r.HttpResponse&&l.onRequestEnd(m)}),(function(t){l.onRequestEnd(m),l.loggingService.logError(t)})))},t.prototype.onRequestStart=function(t){t&&this.loadingService.show()},t.prototype.onRequestEnd=function(t){t&&this.loadingService.hide()},t}();T.decorators=[{type:e.Injectable}],T.ctorParameters=function(){return[{type:z},{type:L}]};var E=function(){function t(){}return t.toLocalizedDateTime=function(t){return t?new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds())):null},t}(),O=function(){function t(t){this.translate=t,this.setSupportedLanguages(["en"])}return t.prototype.format=function(t,e){return t.replace(/{(\d+)}/g,(function(t,n){return void 0!==e[n]?e[n]:t}))},t.prototype.configureTranslationSettings=function(t){return t.setDefaultLang("en"),"en"},t.prototype.getBrowserLanguage=function(){return this.translate.getBrowserLang()},t.prototype.getDatefnsLocale=function(){var t;switch(this.getBrowserLanguage()){case"en":t={locale:u};break;default:t={locale:u}}return t},t.prototype.setDefaultLanguage=function(t){this.translate.setDefaultLang(t)},t.prototype.setSupportedLanguages=function(t){this.translate.addLangs(t)},t.prototype.updateLanguage=function(t){this.translate.use(t)},t.prototype.getLocalizedValue=function(t,e){var n=this.translate.instant(t);return e&&0!==e.length?this.format(n,e):n},t.prototype.getLocalizedDate=function(t){return s.isValid(new Date(t))?s.format(new Date(t),v.DATE_FORMATS.angular,this.dateFnsLocale):"Invalid Date"},t.prototype.getLocalizedDateTime=function(t){var e=new Date(t);if(s.isValid(e)){var n=E.toLocalizedDateTime(e);return s.format(n,v.DATE_FORMATS.angularWithTime,this.dateFnsLocale)}return"Invalid Date"},t.prototype.getLocalizedDistanceToNowInWords=function(t){return s.isValid(new Date(t))?s.formatDistanceToNow(new Date(t),this.dateFnsLocale):"Invalid Date"},t.prototype.getLocalizedDistanceInWords=function(t,e){return s.isValid(new Date(t))&&s.isValid(new Date(e))?s.formatDistance(new Date(t),new Date(e),this.dateFnsLocale):"Invalid Date"},t}();O.ɵprov=e.ɵɵdefineInjectable({factory:function(){return new O(e.ɵɵinject(a.TranslateService))},token:O,providedIn:"root"}),O.decorators=[{type:e.Injectable,args:[{providedIn:"root"}]}],O.ctorParameters=function(){return[{type:a.TranslateService}]};var N=function(){function t(t){this.localizeService=t}return t.prototype.transform=function(t,e,n){if(t)return e||(e="t"),"t"===e?this.localizeService.getLocalizedValue(t):"d"===e?this.localizeService.getLocalizedDate(t):"dt"===e?this.localizeService.getLocalizedDateTime(t):"dis2now"===e?this.localizeService.getLocalizedDistanceToNowInWords(t):"dis"===e?this.localizeService.getLocalizedDistanceInWords(t,n):t},t}();function D(t){return new l.TranslateHttpLoader(t,v.resourcesUrl+"/",".json")}function j(t,e,n){return function(){return new Promise((function(r){n.get(c.LOCATION_INITIALIZED,Promise.resolve(null)).then((function(){var n=e.configureTranslationSettings(t);t.use(n).subscribe((function(){}),(function(){r(null)}),(function(){r(null)}))}))}))}}N.decorators=[{type:e.Pipe,args:[{name:"localize"}]}],N.ctorParameters=function(){return[{type:O}]};var V=a.TranslateModule.forRoot({loader:{provide:a.TranslateLoader,useFactory:D,deps:[r.HttpClient]}}),U=function(e){this.injector=e,t.LocalizationInjectorInstance=this.injector};U.decorators=[{type:e.NgModule,args:[{imports:[V],providers:[{provide:e.APP_INITIALIZER,useFactory:j,deps:[a.TranslateService,O,e.Injector],multi:!0}],exports:[]}]}],U.ctorParameters=function(){return[{type:e.Injector}]};var A=function(){};A.decorators=[{type:e.NgModule,args:[{imports:[a.TranslateModule],exports:[a.TranslateModule,N],declarations:[N],providers:[]}]}];var B=function(){function t(t){this.injector=t}return t.prototype.handleError=function(t){throw this.injector.get(L).logError(t),t},t}();B.decorators=[{type:e.Injectable}],B.ctorParameters=function(){return[{type:e.Injector}]};var k=function(){function e(){}return Object.defineProperty(e,"localizationService",{get:function(){return t.LocalizationInjectorInstance.get(O)},enumerable:!1,configurable:!0}),e.getLocalizedValue=function(t,e,n){return!t&&n?this.localizationService.getLocalizedValue(n):t?this.localizationService.getLocalizedValue(t,e):t},e}(),F=function(){function t(){}return t.success=function(t,e,n,r){t=k.getLocalizedValue(t,e,"OperationSuccessFull"),n=k.getLocalizedValue(n,null,"Success"),p.fire({text:t,title:n,icon:"success",confirmButtonText:k.getLocalizedValue("Ok")}).then((function(){r&&r()}))},t.info=function(t,e,n){t=k.getLocalizedValue(t,e),n=k.getLocalizedValue(n,null,"Info"),p.fire({text:t,title:n,icon:"info",confirmButtonText:k.getLocalizedValue("Ok")})},t.warning=function(t,e,n){t=k.getLocalizedValue(t,e),n=k.getLocalizedValue(n,null,"Warning"),p.fire({text:t,title:n,icon:"warning",confirmButtonText:k.getLocalizedValue("Ok")})},t.error=function(t,e,n){t=k.getLocalizedValue(t,e,"ErrorOccured"),n=k.getLocalizedValue(n,null,"Error"),p.fire({text:t,title:n,icon:"error",confirmButtonText:k.getLocalizedValue("Ok")})},t.cancel=function(t,e,n){t=k.getLocalizedValue(t,e,"OperationCancelled"),n=k.getLocalizedValue(n,null,"Cancelled"),p.fire({text:t,title:n,icon:"info"})},t.notImplemented=function(){this.warning("Not Implemented Yet")},t.areYouSure=function(t,e,n,r,o,i){t=k.getLocalizedValue(t),e=k.getLocalizedValue(e,null,"AreYouSure"),n=k.getLocalizedValue(n,null,"AreYouSure-ConfirmButtonText"),r=k.getLocalizedValue(r,null,"AreYouSure-CancelButtonText"),p.fire({text:t,title:e,icon:"warning",confirmButtonText:n,cancelButtonText:r,showCancelButton:!0}).then((function(t){t.value?o&&o():t.dismiss!=p.DismissReason.cancel&&t.dismiss!=p.DismissReason.close||i&&i()}))},t}(),q=function(){function t(){}return t.newGuid=function(){return f.v4()},t}(),M=function(){function t(t){this.toastrService=t,this._sessionNotifications=new i.BehaviorSubject([]),this._serverNotifications=new i.BehaviorSubject([]),this.sessionNotifications$=this._sessionNotifications.asObservable(),this.serverNotifications$=this._serverNotifications.asObservable()}return t.prototype.addSessionNotification=function(t,e){var n={id:q.newGuid(),isNew:!0,isSession:!0,text:t,type:e,createdDate:new Date(Date.now()).toISOString()};this.addSessionNotificationToList(n)},t.prototype.addSessionNotificationToList=function(t){this.sessionNotifications=x([t],this.sessionNotifications)},t.prototype.removeNotification=function(t,e){e?this.sessionNotifications=this.sessionNotifications.filter((function(e){return e.id!==t})):this.serverNotifications=this.serverNotifications.filter((function(e){return e.id!==t}))},t.prototype.success=function(t,e,n,r){void 0===r&&(r=!0),t=k.getLocalizedValue(t,e,"OperationSuccessFull"),n=k.getLocalizedValue(n),this.toastrService.success(t,n,{timeOut:3e3,progressBar:!0}),r&&this.addSessionNotification(t,"success")},t.prototype.info=function(t,e,n){t=k.getLocalizedValue(t,e),n=k.getLocalizedValue(n),this.toastrService.info(t,n,{timeOut:3e3,progressBar:!0})},t.prototype.warning=function(t,e,n){t=k.getLocalizedValue(t,e),n=k.getLocalizedValue(n),this.toastrService.warning(t,n,{timeOut:3e3,progressBar:!0})},t.prototype.error=function(t,e,n,r){void 0===r&&(r=!0),t=k.getLocalizedValue(t,e,"ErrorOccured"),n=k.getLocalizedValue(n),this.toastrService.error(t,n,{timeOut:3e3,progressBar:!0}),r&&this.addSessionNotification(t,"error")},t.prototype.cancel=function(t,e,n){t=k.getLocalizedValue(t,e,"OperationCancelled"),n=k.getLocalizedValue(n),this.toastrService.info(t,n,{timeOut:3e3,progressBar:!0})},Object.defineProperty(t.prototype,"sessionNotifications",{get:function(){return this._sessionNotifications.getValue()},set:function(t){this._sessionNotifications.next(t)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"serverNotifications",{get:function(){return this._serverNotifications.getValue()},set:function(t){this._serverNotifications.next(t)},enumerable:!1,configurable:!0}),t}();M.ɵprov=e.ɵɵdefineInjectable({factory:function(){return new M(e.ɵɵinject(d.ToastrService))},token:M,providedIn:"root"}),M.decorators=[{type:e.Injectable,args:[{providedIn:"root"}]}],M.ctorParameters=function(){return[{type:d.ToastrService}]};var R=function(){function t(t){this.http=t,this.baseUrl=""}return t.prototype.serializeParams=function(t){return t?"?"+$.param(t):""},t.prototype.get=function(t,e,n){n||(n="json");var r=this.baseUrl+"/"+t+this.serializeParams(e);return this.http.get(r,{responseType:n}).pipe(o.map((function(t){return t})))},t.prototype.post=function(t,e,n){n||(n="text");var r=this.baseUrl+"/"+t;return this.http.post(r,e,{responseType:n})},t.prototype.postQS=function(t,e,n){n||(n="text");var r=this.baseUrl+"/"+t+this.serializeParams(e);return this.http.post(r,null,{responseType:n})},t.prototype.delete=function(t,e,n){n||(n="text");var r=this.baseUrl+"/"+t+this.serializeParams(e);return this.http.delete(r,{responseType:n})},t.prototype.getById=function(t){return this.get("getById",{id:t})},t.prototype.getAll=function(t){return this.get("getall",t).pipe(o.map((function(t){return t})))},t.prototype.getJsonFile=function(t){var e=v.jsonsUrl+"/"+t+"?"+v.jsonVersion;return this.http.get(e).pipe(o.map((function(t){return t})))},t}();R.decorators=[{type:e.Injectable}],R.ctorParameters=function(){return[{type:r.HttpClient}]};var G=function(t){function e(e){var n=t.call(this,e)||this;return n.http=e,n.current=null,n.successes=[],n.subscription=null,n.baseUrl="/api/appContext",n}return C(e,t),e.prototype.getCurrent=function(t){var e=this;void 0!==t&&(null==this.current?(this.successes.push(t),null==this.subscription&&(this.subscription=this.get("GetCurrentContext",null).subscribe((function(t){e.dataReceived(t)}),(function(t){})))):t(this.current))},e.prototype.dataReceived=function(t){this.current=t;for(var e=0;e<this.successes.length;e++){(0,this.successes[e])(t)}this.successes=[],this.subscription.unsubscribe(),this.subscription=null,this.current=null},e.prototype.isUserSignedIn=function(){return y.isUserSignedIn},e.prototype.isUserAdmin=function(){return y.isUserAdmin},e}(R);G.decorators=[{type:e.Injectable}],G.ctorParameters=function(){return[{type:r.HttpClient}]};var H=function(){function t(){this.expired$=new i.Subject}return t.prototype.startWatching=function(t){var e=this;return this.idle$=i.merge(i.fromEvent(document,"mousemove"),i.fromEvent(document,"click"),i.fromEvent(document,"mousedown"),i.fromEvent(document,"keypress"),i.fromEvent(document,"DOMMouseScroll"),i.fromEvent(document,"mousewheel"),i.fromEvent(document,"touchmove"),i.fromEvent(document,"MSPointerMove"),i.fromEvent(window,"mousemove"),i.fromEvent(window,"resize")),this.timeOutMilliSeconds=1e3*t,this.idleSubscription=this.idle$.subscribe((function(t){e.resetTimer()})),this.startTimer(),this.expired$},t.prototype.startTimer=function(){var t=this;this.timer$=i.timer(this.timeOutMilliSeconds,this.timeOutMilliSeconds).subscribe((function(e){t.expired$.next(!0)}))},t.prototype.resetTimer=function(){this.timer$.unsubscribe(),this.startTimer()},t.prototype.stopTimer=function(){this.timer$.unsubscribe(),this.idleSubscription.unsubscribe()},t.prototype.restartIdleTimer=function(){var t=this;this.timer$.unsubscribe(),this.idleSubscription.unsubscribe(),this.idleSubscription=this.idle$.subscribe((function(e){t.resetTimer()})),this.startTimer()},t}();H.ɵprov=e.ɵɵdefineInjectable({factory:function(){return new H},token:H,providedIn:"root"}),H.decorators=[{type:e.Injectable,args:[{providedIn:"root"}]}];var _=function(){function t(t){this.currentClientKey=v.SERVICES_CONF.selectedClientID,this.storage="local"===t||"localStorage"===t?localStorage:sessionStorage}return t.prototype.setItem=function(t,e){this.storage.setItem(this.currentClientKey+t,e)},t.prototype.setObject=function(t,e){this.storage.setItem(this.currentClientKey+t,JSON.stringify(e))},t.prototype.getItem=function(t){return this.storage.getItem(this.currentClientKey+t)},t.prototype.getObject=function(t){return JSON.parse(this.storage.getItem(this.currentClientKey+t)||"{}")},t.prototype.remove=function(t){this.storage.removeItem(this.currentClientKey+t)},t}(),K=function(t){function e(){return t.call(this,"localStorage")||this}return C(e,t),e}(_);K.decorators=[{type:e.Injectable}],K.ctorParameters=function(){return[]};var W=function(t){function e(){return t.call(this,"sessionStorage")||this}return C(e,t),e}(_);W.decorators=[{type:e.Injectable}],W.ctorParameters=function(){return[]};var Y=function(e,n){this.injector=e,S(n,"AnatolyCoreModule"),t.InjectorInstance=this.injector};Y.decorators=[{type:e.NgModule,args:[{imports:[c.CommonModule],exports:[],providers:[L,M,G,z]}]}],Y.ctorParameters=function(){return[{type:e.Injector},{type:Y,decorators:[{type:e.Optional},{type:e.SkipSelf}]}]};var Q=function(){function t(){this.subs=[]}return t.prototype.add=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];this.subs=this.subs.concat(t)},Object.defineProperty(t.prototype,"sink",{set:function(t){this.subs.push(t)},enumerable:!1,configurable:!0}),t.prototype.unsubscribe=function(){this.subs.forEach((function(t){return t&&t.unsubscribe()})),this.subs=[]},t}(),J=function(){function t(){}return t.getValueByNameInQS=function(e){return t.getValueByName(location.search,e)},t.getValueByName=function(t,e){e=e.replace(/[\[]/,"\\[").replace(/[\]]/,"\\]");var n=new RegExp("[\\?&]"+e+"=([^&#]*)").exec(t);return null===n?"":decodeURIComponent(n[1].replace(/\+/g," "))},t.copyToClipBoard=function(t,e){t.preventDefault();var n=document.createElement("textarea");n.style.position="fixed",n.style.left="0",n.style.top="0",n.style.opacity="0",n.value=e,document.body.appendChild(n),n.focus(),n.select(),document.execCommand("copy"),document.body.removeChild(n)},t.downloadFile=function(t,e){var n=document.createElement("a");n.download=t,n.href=e,n.click()},t.downloadBlobFile=function(e,n){if(window.navigator.msSaveOrOpenBlob)window.navigator.msSaveOrOpenBlob(e,n);else{var r=window.URL.createObjectURL(e);t.downloadFile(n,r)}},t}(),X=function(t){function e(e){var n=t.call(this,[])||this;return n.http=e,n.baseReadUrl="",n.data=[],n}return C(e,t),e.prototype.serializeParams=function(t){return t?"?"+$.param(t):""},e.prototype.read=function(e,n,r){var i=this;if(this.data.length)return t.prototype.next.call(this,this.data);var a=this.baseReadUrl;void 0===e&&(e=this.savedReadParams),e&&(a=this.baseReadUrl+""+this.serializeParams(e),this.savedReadParams=e),this.http.get(a).pipe(o.map((function(t){return t}))).subscribe((function(e){t.prototype.next.call(i,e),n&&n()}),(function(t){r&&r(t)}))},e}(i.BehaviorSubject);X.decorators=[{type:e.Injectable}],X.ctorParameters=function(){return[{type:r.HttpClient}]};var Z=function(t){function e(e){var n=t.call(this,e)||this;return n.http=e,n.baseUrl="",n}return C(e,t),e.prototype.reset=function(){this.data=[]},e.prototype.resetItem=function(e){if(e){var n=this.data.find((function(t){return t.Id===e.Id}));Object.assign(n,e),t.prototype.next.call(this,this.data)}},e.prototype.save=function(t,e,n){var r=this,o=e?"add":"update";this.reset(),this.post(o,t).subscribe((function(){}),(function(){r.read()}),(function(){r.read(),n&&n()}))},e.prototype.remove=function(t,e){var n=this;this.reset(),this.post("remove",t).subscribe((function(){}),(function(){n.read()}),(function(){n.read(),e&&e()}))},e.prototype.post=function(t,e){var n=this.baseUrl+""+t+this.serializeParams(e);return this.http.post(n,e).pipe(o.map((function(t){return t})))},e}(X);Z.decorators=[{type:e.Injectable}],Z.ctorParameters=function(){return[{type:r.HttpClient}]};var tt={billingApiPath:"api/billing",notificationsApiPath:"api/notifications"},et=function(t){function e(e){var n=t.call(this,e)||this;return n.http=e,n.baseUrl=tt.notificationsApiPath,n}return C(e,t),e.prototype.retrieveNotifications=function(){return this.get("retrieveNotifications")},e}(R);et.ɵprov=e.ɵɵdefineInjectable({factory:function(){return new et(e.ɵɵinject(r.HttpClient))},token:et,providedIn:"root"}),et.decorators=[{type:e.Injectable,args:[{providedIn:"root"}]}],et.ctorParameters=function(){return[{type:r.HttpClient}]};var nt=function(t){function e(e){var n=t.call(this,e)||this;return n.http=e,n.baseUrl=tt.billingApiPath,n}return C(e,t),e.prototype.requestNewSubscription=function(t,e,n){this.postQS("requestNewSubscription",{requestedPlan:t}).subscribe((function(t){}),(function(t){n&&n()}),(function(){e&&e()}))},e.prototype.cancelRequestedSubscription=function(t,e){this.postQS("cancelRequestedSubscription",null).subscribe((function(t){}),(function(t){e&&e()}),(function(){t&&t()}))},e.prototype.buyAccess=function(t,e,n){this.postQS("buyAccess",{requestedPlan:t}).subscribe((function(t){}),(function(t){n&&n()}),(function(){e&&e()}))},e}(R);nt.decorators=[{type:e.Injectable}],nt.ctorParameters=function(){return[{type:r.HttpClient}]};var rt=function(t){S(t,"AnatolyDataModule")};rt.decorators=[{type:e.NgModule,args:[{imports:[c.CommonModule],providers:[nt]}]}],rt.ctorParameters=function(){return[{type:rt,decorators:[{type:e.Optional},{type:e.SkipSelf}]}]};var ot=function(){function t(t,e){this.appcontext=t,this.api=e,this.contextUpdated=!1,this.isUserSignedIn=!1,this.currentPlan=0,this.currentPlanTitle=""}return t.prototype.ngOnInit=function(){var t=this;this.appcontext.isUserSignedIn()?this.appcontext.getCurrent((function(e){t.isUserSignedIn=e.isUserSignedIn,t.isUserSignedIn&&(t.currentPlan=e.account.billingPlan,t.currentPlanTitle=e.account.billingPlanAsString),t.contextUpdated=!0})):this.contextUpdated=!0},t.prototype.onBuyPlan=function(){var t="Requested plan: "+this.plantitle+" ",e=this;F.areYouSure(t,"Buying access","Confirm change","Cancel",(function(){e.api.buyAccess(e.plan,(function(){F.success("Access Granted",null,null,(function(){window.location.reload()}))}))}))},t}();ot.decorators=[{type:e.Component,args:[{selector:"anatoly-buyaccess-button",template:'<div *ngIf="contextUpdated">\r\n <div *ngIf="!isUserSignedIn">\r\n <anatoly-signup-button classbtn="btn btn-block btn-primary"></anatoly-signup-button>\r\n </div>\r\n\r\n <div *ngIf="isUserSignedIn">\r\n <button class="btn btn-block btn-success selectPlan" *ngIf="plan == currentPlan">\r\n Your Plan\r\n </button>\r\n\r\n <button class="btn btn-block btn-warning selectPlan" *ngIf="plan != currentPlan && currentPlan == 1" (click)="onBuyPlan()">\r\n Buy Now\r\n </button>\r\n </div>\r\n</div>\r\n'}]}],ot.ctorParameters=function(){return[{type:G},{type:nt}]},ot.propDecorators={plan:[{type:e.Input}],plantitle:[{type:e.Input}]};var it=function(){function t(t){this.appcontext=t,this.contextUpdated=!1,this.isUserSignedIn=!1,this.currentPlan=0,this.currentPlanTitle="",this.requestedPlan=0,this.requestedPlanTitle=""}return t.prototype.ngOnInit=function(){var t=this;this.appcontext.isUserSignedIn()?this.appcontext.getCurrent((function(e){t.isUserSignedIn=e.isUserSignedIn,t.isUserSignedIn&&(t.currentPlan=e.account.billingPlan,t.currentPlanTitle=e.account.billingPlanAsString,t.requestedPlan=e.account.requestedBillingPlan,t.requestedPlanTitle=e.account.requestedBillingPlanAsString),t.contextUpdated=!0})):this.contextUpdated=!0},t}();it.decorators=[{type:e.Component,args:[{selector:"anatoly-subscribe-plan-button",template:'<div *ngIf="contextUpdated">\r\n <div *ngIf="!isUserSignedIn">\r\n <anatoly-signup-button classbtn="btn btn-block btn-primary"></anatoly-signup-button>\r\n </div>\r\n\r\n <div *ngIf="isUserSignedIn">\r\n <button class="btn btn-block btn-success selectPlan" *ngIf="plan == currentPlan">\r\n Your Plan\r\n </button>\r\n\r\n <button class="btn btn-block btn-warning selectPlan" *ngIf="requestedPlan != null && requestedPlan != 0 && plan == requestedPlan">\r\n Requested\r\n </button>\r\n\r\n <anatoly-upgrade-plan-button *ngIf="plan != currentPlan && plan != requestedPlan"\r\n [currentplantitle]="currentPlanTitle"\r\n [requestedplan]=plan\r\n [requestedplantitle]="plantitle">\r\n </anatoly-upgrade-plan-button>\r\n </div>\r\n</div>\r\n'}]}],it.ctorParameters=function(){return[{type:G}]},it.propDecorators={plan:[{type:e.Input}],plantitle:[{type:e.Input}]};var at=function(){function t(t){this.api=t}return t.prototype.onUpgradePlan=function(){var t="Current plan: "+this.currentplantitle+" New plan: "+this.requestedplantitle,e=this;F.areYouSure(t,"Change billing plan","Confirm change","Cancel",(function(){e.api.requestNewSubscription(e.requestedplan,(function(){F.success("Your request for changing plan has been sent.",null,null,(function(){window.location.reload()}))}))}))},t}();at.decorators=[{type:e.Component,args:[{selector:"anatoly-upgrade-plan-button",template:'<button class="btn btn-block btn-primary" (click)="onUpgradePlan()">\r\n Upgrade\r\n</button>\r\n'}]}],at.ctorParameters=function(){return[{type:nt}]},at.propDecorators={currentplantitle:[{type:e.Input}],requestedplan:[{type:e.Input}],requestedplantitle:[{type:e.Input}]};var st=function(){function t(){}return t.prototype.ngOnInit=function(){null==this.title&&(this.title="")},t}();st.decorators=[{type:e.Component,args:[{selector:"anatoly-content-header",template:'<h2 class="page-header">\r\n {{title}}\r\n \x3c!--<small>Optional {{title}}</small>--\x3e\r\n</h2>\r\n'}]}],st.propDecorators={title:[{type:e.Input}]};var ut={placeholderText:"Edit Your Content Here",charCounterCount:!0,heightMin:100,toolbarInline:!1,toolbarButtons:{moreText:{buttons:["bold","italic","underline","strikeThrough","subscript","superscript","fontFamily","fontSize","textColor","backgroundColor","inlineClass","inlineStyle"]},moreParagraph:{buttons:["alignLeft","alignCenter","formatOLSimple","alignRight","alignJustify","formatOL","formatUL","paragraphFormat","paragraphStyle","lineHeight","outdent","indent","quote"]},moreRich:{buttons:["insertLink","insertImage","insertTable","emoticons","fontAwesome","specialCharacters","embedly"]},moreMisc:{buttons:["selectAll","clearFormatting","html","undo","redo","fullscreen"],align:"right"}},imageUploadURL:"/api/HtmlEditor/UploadImage",imageAllowedTypes:["jpeg","jpg","png"],imageUploadParams:{uploadType:"",uploadParentId:""}},ct=function(){function t(){}return t.prototype.getQSId=function(){var t=J.getValueByNameInQS("id");return void 0===t||""==t?null:t},t}(),lt=function(t){function e(){var e=t.call(this)||this;return e.formSubmitted=!1,e}return C(e,t),e.prototype.isActionAdding=function(){var t=J.getValueByNameInQS("id");return void 0===t||""==t},e.prototype.getEntityId=function(){return this.getQSId()},e.prototype.isControlValid=function(t,e){return void 0===e&&(e=null),!this.isControlInvalid(t,e)},e.prototype.isControlInvalid=function(t,e){if(void 0===e&&(e=null),void 0===t||""==t)return!1;var n=e||this.formGroup;return!!n&&(!!n.get(t)&&(this.formSubmitted&&n.get(t).invalid||n.get(t).touched&&n.get(t).invalid))},e.prototype.getFormValue=function(t,e){return void 0===e&&(e=null),(e||this.formGroup).controls[t].value},e.prototype.setFormValue=function(t,e,n){void 0===n&&(n=null),(n||this.formGroup).controls[t].setValue(e)},e.prototype.getFormGroupValue=function(t,e,n){return void 0===n&&(n=null),(n||this.formGroup).controls[t].get(e).value},e.prototype.setFormGroupValue=function(t,e,n,r){void 0===r&&(r=null),(r||this.formGroup).controls[t].get(e).setValue(n)},e.prototype.addControl=function(t,e,n){void 0===n&&(n=null),(n||this.formGroup).addControl(t,e)},e.prototype.removeControl=function(t,e){void 0===e&&(e=null);var n=e||this.formGroup;n.get(t)&&n.removeControl(t)},e.prototype.createFormControl=function(t,e,n){return new h.FormControl(t,e,n)},e.prototype.setControlError=function(t,e,n){var r;void 0===n&&(n=null),null===(r=(n||this.formGroup).get(t))||void 0===r||r.setErrors(e)},e.prototype.setInValidError=function(t,e){var n;void 0===e&&(e=null),null===(n=(e||this.formGroup).get(t))||void 0===n||n.setErrors({invalid:!0})},Object.defineProperty(e.prototype,"fc",{get:function(){return this.formGroup.controls},enumerable:!1,configurable:!0}),e}(ct);lt.propDecorators={formGroup:[{type:e.Input}],formSubmitted:[{type:e.Input}]};var pt=function(t){function e(){var e=t.call(this)||this;return e.froalaEditorInitialized=!1,e.afterInitializedActions=[],e.editorLabelText="Html",e.editorOptions={},e}return C(e,t),e.prototype.ngOnInit=function(){var t=this.editorOptions;"string"==typeof this.editorOptions&&(t=JSON.parse(this.editorOptions));var e=$.extend({},ut,t),n=v.froalaEditorKey;n&&(e=$.extend({},e,JSON.parse('{ "key": "'+n+'" }'))),e.events&&e.events.initialized&&(e.events.initialized.overridden=!1),this.options=e},e.prototype.ngAfterViewInit=function(){var t=this;setTimeout((function(){t.froalaEditorInitialized=!0,t.onInitialized()}),300)},e.prototype.onInitialized=function(){var t=this.afterInitializedActions;if(this.afterInitializedActions=[],t)for(var e=0;e<t.length;e++)t[e]()},e.prototype.getEditor=function(){return this.froalaEditor?this.froalaEditor.getEditor():null},e.prototype.doAfterInitialized=function(t){var e=this;this.froalaEditorInitialized?t(e):this.afterInitializedActions.push((function(){t(e)}))},e.prototype.initializeControl=function(t){this.froalaEditor=t,this.froalaEditor.initialize()},e.prototype.setUploadParams=function(t,e){this.doAfterInitialized((function(n){var r=n.getEditor();void 0!==r&&null!=r&&(r.opts.imageUploadParams.uploadType=t,r.opts.imageUploadParams.uploadParentId=e)}))},e}(lt);pt.propDecorators={editorLabelText:[{type:e.Input}],editorOptions:[{type:e.Input}]};var dt=function(t){function e(){var e=t.call(this)||this;return e.editorFormKey="html",e}return C(e,t),e.prototype.setFormValueAfterInitialized=function(t,e){this.doAfterInitialized((function(n){n.setFormValue(t,e)}))},e}(pt);dt.decorators=[{type:e.Component,args:[{selector:"anatoly-forms-html-editor",template:'<div [formGroup]="formGroup">\r\n <div class="form-group" [ngClass]="{\'has-error\': isControlInvalid(editorFormKey) }">\r\n <label class="control-label">{{ editorLabelText }}</label>\r\n <textarea [formControlName]="editorFormKey"\r\n [froalaEditor]="options" (froalaInit)="initializeControl($event)">\r\n </textarea>\r\n <anatoly-item-validation-summary [formGroup]="formGroup"\r\n [formSubmitted]="formSubmitted"\r\n [controlName]="editorFormKey"\r\n [controlTitle]="editorLabelText">\r\n </anatoly-item-validation-summary>\r\n </div>\r\n</div>\r\n'}]}],dt.ctorParameters=function(){return[]},dt.propDecorators={editorFormKey:[{type:e.Input}]};var ft=function(t){function e(){return t.call(this)||this}return C(e,t),e.prototype.setHtml=function(t){this.doAfterInitialized((function(e){var n=e.getEditor();void 0!==n&&null!=n&&n.html.set(t)}))},e.prototype.getHtml=function(){var t=this.getEditor();if(void 0!==t&&null!=t)return t.html.get(!1)},e}(pt);ft.decorators=[{type:e.Component,args:[{selector:"anatoly-html-editor",template:'<div>\r\n <label>{{ editorLabelText }}</label>\r\n <textarea [froalaEditor]="options" (froalaInit)="initializeControl($event)">\r\n </textarea>\r\n</div>'}]}],ft.ctorParameters=function(){return[]};var ht=function(){};ht.decorators=[{type:e.Component,args:[{selector:"anatoly-signin-button",template:'<a href="identity/signIn" class="{{classbtn}}">Sign In</a>\r\n'}]}],ht.ctorParameters=function(){return[]},ht.propDecorators={classbtn:[{type:e.Input}]};var gt=function(){};gt.decorators=[{type:e.Component,args:[{selector:"anatoly-signout-button",template:'<a href="identity/signOut" class="{{classbtn}}">Sign Out</a>\r\n'}]}],gt.ctorParameters=function(){return[]},gt.propDecorators={classbtn:[{type:e.Input}]};var mt=function(){};mt.decorators=[{type:e.Component,args:[{selector:"anatoly-signup-button",template:'<a href="identity/signup" class="{{classbtn}}">Sign Up</a>\r\n'}]}],mt.propDecorators={classbtn:[{type:e.Input}]};var yt=function(){function t(t){this.loadingService=t,this.subs=new Q,this.show=!1}return t.prototype.ngOnInit=function(){var t=this;this.subs.sink=this.loadingService.subscribe((function(e){t.show=e}))},t.prototype.ngOnDestroy=function(){this.subs.unsubscribe()},t}();yt.decorators=[{type:e.Component,args:[{selector:"anatoly-loading",template:'<div *ngIf="show">\r\n <span id="pnlLoading" class="k-icon k-i-loading"></span>\r\n</div>\r\n'}]}],yt.ctorParameters=function(){return[{type:z}]};var vt={spinnerLine:"spinner-line-material",ChasingDots:"spinner-chasing-dots",CubeGrid:"spinner-cube-grid",DoubleBounce:"spinner-double-bounce",RotatingPlane:"spinner-rotationg-plane",SpinnerPulse:"spinner-spinner-pulse",ThreeBounce:"spinner-three-bounce",WanderingCubes:"spinner-wandering-cubes",Wave:"spinner-wave"},bt=function(){function t(t,e){var r=this;this.router=t,this.document=e,this.isSpinnerVisible=!0,this.spinnerSpinKit=vt,this.backgroundColor="#007CB0",this.spinner=vt.spinnerLine,this.router.events.subscribe((function(t){t instanceof n.NavigationStart?r.isSpinnerVisible=!0:(t instanceof n.NavigationEnd||t instanceof n.NavigationCancel||t instanceof n.NavigationError)&&(r.isSpinnerVisible=!1)}),(function(){r.isSpinnerVisible=!1}))}return t.prototype.ngOnDestroy=function(){this.isSpinnerVisible=!1},t}();bt.decorators=[{type:e.Component,args:[{selector:"spinner",template:'<div id="spinner-loader" *ngIf="isSpinnerVisible">\r\n <div class="loader-bg">\r\n <div class="spinner-line-material" [class.colored]="!backgroundColor" *ngIf="spinner === spinnerSpinKit.spinnerLine">\r\n <div class="spinner-child spinner-bounce1" [style.background-color]=\'backgroundColor\'></div>\r\n </div>\r\n </div>\r\n</div>\r\n',encapsulation:e.ViewEncapsulation.None}]}],bt.ctorParameters=function(){return[{type:n.Router},{type:Document,decorators:[{type:e.Inject,args:[c.DOCUMENT]}]}]},bt.propDecorators={backgroundColor:[{type:e.Input}],spinner:[{type:e.Input}]};var St=function(){function t(t,e){this.el=t,this.control=e}return t.prototype.ngOnInit=function(){this.control.control.nativeElement=this.el.nativeElement},t}();St.decorators=[{type:e.Directive,args:[{selector:"[formControl], [formControlName]"}]}],St.ctorParameters=function(){return[{type:e.ElementRef},{type:h.NgControl}]};var It=function(){function t(){}return t.prototype.transform=function(t,e,n){return t?t.replace(new RegExp(e,"g"),n):t},t}();It.decorators=[{type:e.Pipe,args:[{name:"replaceText"}]}];var Ct=function(){function t(){this.units=["Bytes","KB","MB","GB","TB","PB"]}return t.prototype.transform=function(t,e){if(void 0===t&&(t=0),void 0===e&&(e=0),isNaN(parseFloat(String(t)))||!isFinite(t))return"";for(var n=0;t>=1024;)t/=1024,n++;return t.toFixed(+e)+" "+this.units[n]},t}();Ct.decorators=[{type:e.Pipe,args:[{name:"filesize"}]}];var Pt=function(){function t(t){this.sanitized=t}return t.prototype.transform=function(t){return this.sanitized.bypassSecurityTrustHtml(t)},t}();Pt.decorators=[{type:e.Pipe,args:[{name:"safeHtml"}]}],Pt.ctorParameters=function(){return[{type:g.DomSanitizer}]};var wt=function(t){function e(){return t.call(this)||this}return C(e,t),e.prototype.getFormValidationMessages=function(){var t=this,e=[];return Object.keys(this.formGroup.controls).forEach((function(n){var r=t.formGroup.controls[n];null!=r.controls?Object.keys(r.controls).forEach((function(n){var o=r.controls[n];t.getValidationMessages(o,t.getControlName(o,n)).forEach((function(t){return e.push(t)}))})):t.getValidationMessages(r,t.getControlName(r,n)).forEach((function(t){return e.push(t)}))})),e},e.prototype.getValidationMessages=function(t,e){var n=t.path||e,r=[];if(t.errors)for(var o in t.errors)if(t.errors.hasOwnProperty(o))switch(o){case"required":r.push(n+" is required");break;case"minlength":r.push(n+" must be at least "+t.errors.minlength.requiredLength+" characters");break;case"pattern":r.push(n+" contains illegal characters");break;case"format":r.push(n+" format mismatch");break;case"maxlength":r.push(n+" must have maximum "+t.errors.maxlength.requiredLength+" characters");break;case"specialcharacters":r.push(n+" contains special characters")}return r},e.prototype.getControlName=function(t,e){var n=this.getControlTitle(t);return n||e},e.prototype.getControlTitle=function(t){if(null==t?void 0:t.nativeElement){var e=this.getTitleAttribute(t.nativeElement);if(e)return e}},e.prototype.getTitleAttribute=function(t){var e,n,r,o,i,a,s;switch(t.tagName){case"KENDO-TIMEPICKER":case"KENDO-DATEPICKER":s=null===(o=null===(r=null===(n=null===(e=t.children[0])||void 0===e?void 0:e.children[0])||void 0===n?void 0:n.children[0])||void 0===r?void 0:r.children[0])||void 0===o?void 0:o.getAttribute("title");break;case"KENDO-NUMERICTEXTBOX":s=null===(a=null===(i=t.children[0])||void 0===i?void 0:i.children[0])||void 0===a?void 0:a.getAttribute("title");break;default:s=t.getAttribute("title")}return s},e}(lt),xt=function(t){function e(){var e=t.call(this)||this;return e.visible=!1,e.customerrors=[],e.viewtype=0,e}return C(e,t),e.prototype.getErrors=function(){if(1==this.viewtype)return this.customerrors;var t=this.getFormValidationMessages();if(0==this.viewtype)return t;var e=[];return t.length>0&&e.push.apply(e,x(t)),this.customerrors.length>0&&e.push.apply(e,x(this.customerrors)),e},e}(wt);xt.decorators=[{type:e.Component,args:[{selector:"anatoly-form-validation-summary",template:'<div class="callout callout-danger" *ngIf="visible">\r\n <h6 class="box-title">There are problems with the form</h6>\r\n <ul>\r\n <li *ngFor="let error of getErrors()"><span>{{error}}</span></li>\r\n </ul>\r\n</div>\r\n\r\n'}]}],xt.ctorParameters=function(){return[]},xt.propDecorators={visible:[{type:e.Input}],customerrors:[{type:e.Input}],viewtype:[{type:e.Input}]};var zt=function(t){function e(){return t.call(this)||this}return C(e,t),e}(wt);zt.decorators=[{type:e.Component,args:[{selector:"anatoly-item-validation-summary",template:'<ul class="list-unstyled" *ngIf="isControlInvalid(controlName)">\r\n <li *ngFor="let error of getValidationMessages(formGroup.get(controlName), controlTitle)">\r\n <span class="help-block">{{ error }}</span>\r\n </li>\r\n</ul>\r\n\r\n'}]}],zt.ctorParameters=function(){return[]},zt.propDecorators={controlName:[{type:e.Input}],controlTitle:[{type:e.Input}]};var Lt=m.FroalaEditorModule.forRoot(),Tt=m.FroalaViewModule.forRoot(),Et=function(){};Et.decorators=[{type:e.NgModule,args:[{imports:[c.CommonModule,h.ReactiveFormsModule,h.FormsModule,Lt,Tt],exports:[it,at,ot,ht,mt,gt,xt,zt,ft,dt,st,bt,yt,St,Pt,It,Ct],declarations:[it,at,ot,ht,mt,gt,xt,zt,ft,dt,st,bt,yt,St,Pt,It,Ct]}]}],t.Alerts=F,t.AnatolyCoreModule=Y,t.AnatolyDataModule=rt,t.AnatolyHttpInterceptor=T,t.AnatolyUIModule=Et,t.AppContextService=G,t.AppCoreSettings=v,t.BaseApiService=R,t.BaseComponent=ct,t.BaseEditComponent=lt,t.BaseGoService=b,t.BaseGridEditService=Z,t.BaseGridReadService=X,t.BaseHtmlEditorComponent=pt,t.BillingApiService=nt,t.BuyAccessButtonComponent=ot,t.ContentHeaderComponent=st,t.ContextInitState=y,t.Convert=E,t.DefaultEditorOptions=ut,t.FileSizePipe=Ct,t.FormValidationSummaryComponent=xt,t.FormsHtmlEditorComponent=dt,t.FroalaEditorModuleWithProviders=Lt,t.FroalaViewModuleWithProviders=Tt,t.GlobalErrorHandler=B,t.Guid=q,t.HtmlEditorComponent=ft,t.IdleService=H,t.ItemValidationSummaryComponent=zt,t.LoadingComponent=yt,t.LoadingService=z,t.LocalStorageService=K,t.LocalizationModule=A,t.LocalizationService=O,t.LocalizationSettingsModule=U,t.LocalizePipe=N,t.LoggingService=L,t.NativeElementDirective=St,t.NotificationService=M,t.NotificationsApiService=et,t.ReplaceTextPipe=It,t.SafeHtmlPipe=Pt,t.SessionStorageService=W,t.SignInButtonComponent=ht,t.SignOutButtonComponent=gt,t.SignUpButtonComponent=mt,t.SpinnerComponent=bt,t.Subs=Q,t.SubscribePlanButtonComponent=it,t.TranslateModuleAtRoot=V,t.UpgradePlanButtonComponent=at,t.Urls={notificationsSocketUrl:"/hubs/notifications"},t.Utils=J,t.ValidationSummaryComponent=wt,t.consts=tt,t.customTranslateLoaderFactory=D,t.localizationInitializerFactory=j,t.throwIfAlreadyLoaded=S,Object.defineProperty(t,"__esModule",{value:!0})}));
16
16
  //# sourceMappingURL=osovitny-anatoly.umd.min.js.map