@osovitny/anatoly 2.0.39 → 2.0.40
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bundles/osovitny-anatoly.umd.js +49 -1
- package/bundles/osovitny-anatoly.umd.js.map +1 -1
- package/bundles/osovitny-anatoly.umd.min.js +2 -2
- package/bundles/osovitny-anatoly.umd.min.js.map +1 -1
- package/esm2015/lib/core/core.module.js +4 -2
- package/esm2015/lib/core/services/google-analytics.service.js +48 -0
- package/esm2015/public-api.js +2 -1
- package/fesm2015/osovitny-anatoly.js +49 -3
- package/fesm2015/osovitny-anatoly.js.map +1 -1
- package/lib/core/services/google-analytics.service.d.ts +8 -0
- package/osovitny-anatoly.metadata.json +1 -1
- package/package.json +1 -1
- package/public-api.d.ts +1 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("@angular/core"),require("@angular/router"),require("@angular/common/http"),require("rxjs/operators"),require("rxjs"),require("@ngx-translate/core"),require("date-fns"),require("date-fns/locale/en-US"),require("@angular/common"),require("@ngx-translate/http-loader"),require("sweetalert2"),require("ngx-toastr"),require("uuid"),require("@angular/platform-browser"),require("@angular/forms"),require("angular-froala-wysiwyg")):"function"==typeof define&&define.amd?define("@osovitny/anatoly",["exports","@angular/core","@angular/router","@angular/common/http","rxjs/operators","rxjs","@ngx-translate/core","date-fns","date-fns/locale/en-US","@angular/common","@ngx-translate/http-loader","sweetalert2","ngx-toastr","uuid","@angular/platform-browser","@angular/forms","angular-froala-wysiwyg"],e):e(((t="undefined"!=typeof globalThis?globalThis:t||self).osovitny=t.osovitny||{},t.osovitny.anatoly={}),t.ng.core,t.ng.router,t.ng.common.http,t.rxjs.operators,t.rxjs,t.i1$1,t.dateFns,t.enUS,t.ng.common,t.httpLoader,t.Swal,t.i1$2,t.uuid,t.ng.platformBrowser,t.ng.forms,t.angularFroalaWysiwyg)}(this,(function(t,e,n,r,o,i,a,s,u,l,
|
|
1
|
+
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("@angular/core"),require("@angular/router"),require("@angular/common/http"),require("rxjs/operators"),require("rxjs"),require("@ngx-translate/core"),require("date-fns"),require("date-fns/locale/en-US"),require("@angular/common"),require("@ngx-translate/http-loader"),require("sweetalert2"),require("ngx-toastr"),require("uuid"),require("@angular/platform-browser"),require("@angular/forms"),require("angular-froala-wysiwyg")):"function"==typeof define&&define.amd?define("@osovitny/anatoly",["exports","@angular/core","@angular/router","@angular/common/http","rxjs/operators","rxjs","@ngx-translate/core","date-fns","date-fns/locale/en-US","@angular/common","@ngx-translate/http-loader","sweetalert2","ngx-toastr","uuid","@angular/platform-browser","@angular/forms","angular-froala-wysiwyg"],e):e(((t="undefined"!=typeof globalThis?globalThis:t||self).osovitny=t.osovitny||{},t.osovitny.anatoly={}),t.ng.core,t.ng.router,t.ng.common.http,t.rxjs.operators,t.rxjs,t.i1$1,t.dateFns,t.enUS,t.ng.common,t.httpLoader,t.Swal,t.i1$2,t.uuid,t.ng.platformBrowser,t.ng.forms,t.angularFroalaWysiwyg)}(this,(function(t,e,n,r,o,i,a,s,u,c,l,p,d,f,h,g,m){"use strict";function y(t){return t&&"object"==typeof t&&"default"in t?t:{default:t}}var v=y(u),b=y(p),S=JSON.parse(document.getElementById("contextInitState").getAttribute("data-contextinitstate")),I=JSON.parse(document.getElementById("appCoreSettings").getAttribute("data-appcoresettings")),C=function(){function t(t,e){this.route=t,this.router=e}return t.prototype.locationReload=function(){window.location.reload()},t}();function w(t,e){if(t)throw new Error(e+" has already been loaded. Import "+e+" modules in the AppModule only.")}
|
|
2
2
|
/*! *****************************************************************************
|
|
3
3
|
Copyright (c) Microsoft Corporation.
|
|
4
4
|
|
|
@@ -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
|
-
***************************************************************************** */C.decorators=[{type:e.Injectable}],C.ctorParameters=function(){return[{type:n.ActivatedRoute},{type:n.Router}]};var x=function(t,e){return(x=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)};function P(t,e){function n(){this.constructor=t}x(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}Object.create;function T(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 E(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 L(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(E(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 P(e,t),e.prototype.show=function(){this.counter++;var t=this;setTimeout((function(){t.counter>0&&t.next(!0)}),500)},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.prototype.reset=function(){this.counter>0&&this.next(!1),this.counter=0},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 O=function(){function t(){}return t.prototype.logError=function(t){console.error(t)},t.prototype.logInformation=function(t){console.info(t)},t}();O.ɵprov=e.ɵɵdefineInjectable({factory:function(){return new O},token:O,providedIn:"root"}),O.decorators=[{type:e.Injectable,args:[{providedIn:"root"}]}],O.ctorParameters=function(){return[]};var N=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,l,c=this,p=I.IsCDNEnabled,d=I.CDNSASToken,f=this.loadingService.isFreezed,h=t.url.toLowerCase(),g=t.url,m=!f;if(!f)try{for(var y=T(this.longRunningExceptionsList),v=y.next();!v.done;v=y.next()){var b=v.value;if(h.indexOf(this.longRunningExceptionsList[b])>=0){m=!1;break}}}catch(t){n={error:t}}finally{try{v&&!v.done&&(i=y.return)&&i.call(y)}finally{if(n)throw n.error}}if(p)try{for(var S=T(this.autoCDNSASTokenUrls),C=S.next();!C.done;C=S.next()){b=C.value;if(h.indexOf(this.autoCDNSASTokenUrls[b])>=0){t=t.clone({url:g+d});break}}}catch(t){a={error:t}}finally{try{C&&!C.done&&(s=S.return)&&s.call(S)}finally{if(a)throw a.error}}try{for(var w=T(this.externalSiteUrls),x=w.next();!x.done;x=w.next()){b=x.value;if(h.indexOf(this.externalSiteUrls[b])>=0){!0;break}}}catch(t){u={error:t}}finally{try{x&&!x.done&&(l=w.return)&&l.call(w)}finally{if(u)throw u.error}}if(h.indexOf("/api/")>-1){var P="",E=(new Date).getTime().toString();P=h.indexOf("?")>-1?g+"&t="+E:g+"?t="+E,t=t.clone({url:P})}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&&c.onRequestEnd(m)}),(function(t){c.onRequestEnd(m),c.loggingService.logError(t)})))},t.prototype.onRequestStart=function(t){t&&this.loadingService.show()},t.prototype.onRequestEnd=function(t){t&&this.loadingService.hide()},t}();N.decorators=[{type:e.Injectable}],N.ctorParameters=function(){return[{type:z},{type:O}]};var D=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}(),j=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:v.default};break;default:t={locale:v.default}}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),I.DATE_FORMATS.angular,this.dateFnsLocale):"Invalid Date"},t.prototype.getLocalizedDateTime=function(t){var e=new Date(t);if(s.isValid(e)){var n=D.toLocalizedDateTime(e);return s.format(n,I.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}();j.ɵprov=e.ɵɵdefineInjectable({factory:function(){return new j(e.ɵɵinject(a.TranslateService))},token:j,providedIn:"root"}),j.decorators=[{type:e.Injectable,args:[{providedIn:"root"}]}],j.ctorParameters=function(){return[{type:a.TranslateService}]};var U=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 V(t){return new c.TranslateHttpLoader(t,I.resourcesUrl+"/",".json")}function A(t,e,n){return function(){return new Promise((function(r){n.get(l.LOCATION_INITIALIZED,Promise.resolve(null)).then((function(){var n=e.configureTranslationSettings(t);t.use(n).subscribe((function(){}),(function(){r(null)}),(function(){r(null)}))}))}))}}U.decorators=[{type:e.Pipe,args:[{name:"localize"}]}],U.ctorParameters=function(){return[{type:j}]};var B=a.TranslateModule.forRoot({loader:{provide:a.TranslateLoader,useFactory:V,deps:[r.HttpClient]}}),k=function(e){this.injector=e,t.LocalizationInjectorInstance=this.injector};k.decorators=[{type:e.NgModule,args:[{imports:[B],providers:[{provide:e.APP_INITIALIZER,useFactory:A,deps:[a.TranslateService,j,e.Injector],multi:!0}],exports:[]}]}],k.ctorParameters=function(){return[{type:e.Injector}]};var F=function(){};F.decorators=[{type:e.NgModule,args:[{imports:[a.TranslateModule],exports:[a.TranslateModule,U],declarations:[U],providers:[]}]}];var M=function(){function t(t){this.injector=t}return t.prototype.handleError=function(t){throw this.injector.get(O).logError(t),t},t}();M.decorators=[{type:e.Injectable}],M.ctorParameters=function(){return[{type:e.Injector}]};var q=function(){function e(){}return Object.defineProperty(e,"localizationService",{get:function(){return t.LocalizationInjectorInstance.get(j)},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}(),R=function(){function t(){}return t.success=function(t,e,n,r){t=q.getLocalizedValue(t,e,"OperationSuccessFull"),n=q.getLocalizedValue(n,null,"Success"),b.default.fire({text:t,title:n,icon:"success",confirmButtonText:q.getLocalizedValue("Ok")}).then((function(){r&&r()}))},t.info=function(t,e,n){t=q.getLocalizedValue(t,e),n=q.getLocalizedValue(n,null,"Info"),b.default.fire({text:t,title:n,icon:"info",confirmButtonText:q.getLocalizedValue("Ok")})},t.warning=function(t,e,n){t=q.getLocalizedValue(t,e),n=q.getLocalizedValue(n,null,"Warning"),b.default.fire({text:t,title:n,icon:"warning",confirmButtonText:q.getLocalizedValue("Ok")})},t.error=function(t,e,n){t=q.getLocalizedValue(t,e,"ErrorOccured"),n=q.getLocalizedValue(n,null,"Error"),b.default.fire({text:t,title:n,icon:"error",confirmButtonText:q.getLocalizedValue("Ok")})},t.cancel=function(t,e,n){t=q.getLocalizedValue(t,e,"OperationCancelled"),n=q.getLocalizedValue(n,null,"Cancelled"),b.default.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=q.getLocalizedValue(t),e=q.getLocalizedValue(e,null,"AreYouSure"),n=q.getLocalizedValue(n,null,"AreYouSure-ConfirmButtonText"),r=q.getLocalizedValue(r,null,"AreYouSure-CancelButtonText"),b.default.fire({text:t,title:e,icon:"warning",confirmButtonText:n,cancelButtonText:r,showCancelButton:!0}).then((function(t){t.value?o&&o():t.dismiss!=b.default.DismissReason.cancel&&t.dismiss!=b.default.DismissReason.close||i&&i()}))},t}(),G=function(){function t(){}return t.newGuid=function(){return f.v4()},t}(),H=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:G.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=L([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=q.getLocalizedValue(t,e,"OperationSuccessFull"),n=q.getLocalizedValue(n),this.toastrService.success(t,n,{timeOut:3e3,progressBar:!0}),r&&this.addSessionNotification(t,"success")},t.prototype.info=function(t,e,n){t=q.getLocalizedValue(t,e),n=q.getLocalizedValue(n),this.toastrService.info(t,n,{timeOut:3e3,progressBar:!0})},t.prototype.warning=function(t,e,n){t=q.getLocalizedValue(t,e),n=q.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=q.getLocalizedValue(t,e,"ErrorOccured"),n=q.getLocalizedValue(n),this.toastrService.error(t,n,{timeOut:3e3,progressBar:!0}),r&&this.addSessionNotification(t,"error")},t.prototype.cancel=function(t,e,n){t=q.getLocalizedValue(t,e,"OperationCancelled"),n=q.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}();H.ɵprov=e.ɵɵdefineInjectable({factory:function(){return new H(e.ɵɵinject(d.ToastrService))},token:H,providedIn:"root"}),H.decorators=[{type:e.Injectable,args:[{providedIn:"root"}]}],H.ctorParameters=function(){return[{type:d.ToastrService}]};var _=function(){function t(t){this.http=t}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.getExternalTextFile=function(t){return this.http.get(t)},t.prototype.getExternalJsonFile=function(t){return this.http.get(t)},t.prototype.getJsonFile=function(t){var e=I.jsonsUrl,n=I.jsonVersion,r=I.isCDNEnabled,i=I.cdnSasToken,a="";return a=r?e+"/"+t+i:e+"/"+t+"?"+n,this.http.get(a).pipe(o.map((function(t){return t})))},t}();_.decorators=[{type:e.Injectable}],_.ctorParameters=function(){return[{type:r.HttpClient}]};var K=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 P(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 S.isUserSignedIn},e.prototype.isUserAdmin=function(){return S.isUserAdmin},e}(_);K.decorators=[{type:e.Injectable}],K.ctorParameters=function(){return[{type:r.HttpClient}]};var W=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}();W.ɵprov=e.ɵɵdefineInjectable({factory:function(){return new W},token:W,providedIn:"root"}),W.decorators=[{type:e.Injectable,args:[{providedIn:"root"}]}];var Y=function(){function t(t){this.currentClientKey=I.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}(),J=function(t){function e(){return t.call(this,"localStorage")||this}return P(e,t),e}(Y);J.decorators=[{type:e.Injectable}],J.ctorParameters=function(){return[]};var Q=function(t){function e(){return t.call(this,"sessionStorage")||this}return P(e,t),e}(Y);Q.decorators=[{type:e.Injectable}],Q.ctorParameters=function(){return[]};var X=function(){function t(t,e,n){this.title=t,this.meta=e,this.dom=n}return t.prototype.updateTitle=function(t){this.title.setTitle(t)},t.prototype.updateDescription=function(t){this.meta.updateTag({name:"description",content:t})},t.prototype.updateKeywords=function(t){this.meta.updateTag({name:"keywords",content:t})},t.prototype.updateMetaTags=function(t){var e=this;t.forEach((function(t){return e.meta.updateTag(t)}))},t.prototype.setCanonicalUrl=function(t){var e=void 0===t?this.dom.URL:t,n=this.dom.createElement("link");n.setAttribute("rel","canonical"),this.dom.head.appendChild(n),n.setAttribute("href",e)},t.prototype.updateCanonicalUrl=function(t){var e=void 0===t?this.dom.URL:t,n=this.dom.getElementsByTagName("head")[0],r=this.dom.querySelector("link[rel='canonical']")||null;null==r&&(r=this.dom.createElement("link"),n.appendChild(r)),r.setAttribute("rel","canonical"),r.setAttribute("href",e)},t}();X.ɵprov=e.ɵɵdefineInjectable({factory:function(){return new X(e.ɵɵinject(h.Title),e.ɵɵinject(h.Meta),e.ɵɵinject(l.DOCUMENT))},token:X,providedIn:"root"}),X.decorators=[{type:e.Injectable,args:[{providedIn:"root"}]}],X.ctorParameters=function(){return[{type:h.Title},{type:h.Meta},{type:void 0,decorators:[{type:e.Inject,args:[l.DOCUMENT]}]}]};var Z=function(e,n){this.injector=e,w(n,"AnatolyCoreModule"),t.InjectorInstance=this.injector};Z.decorators=[{type:e.NgModule,args:[{imports:[l.CommonModule],exports:[],providers:[O,H,K,z,X]}]}],Z.ctorParameters=function(){return[{type:e.Injector},{type:Z,decorators:[{type:e.Optional},{type:e.SkipSelf}]}]};var tt=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}(),et=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}(),nt=function(t){function e(e){var n=t.call(this,[])||this;return n.http=e,n.data=[],n}return P(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);nt.decorators=[{type:e.Injectable}],nt.ctorParameters=function(){return[{type:r.HttpClient}]};var rt=function(t){function e(e){var n=t.call(this,e)||this;return n.http=e,n}return P(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.delete=function(t,e){var n=this;this.reset();var r=this.baseUrl+"/delete"+this.serializeParams(t);return this.http.delete(r).subscribe((function(){n.read(),e&&e()}),(function(){n.read()}))},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}(nt);rt.decorators=[{type:e.Injectable}],rt.ctorParameters=function(){return[{type:r.HttpClient}]};var ot="api/billing",it="api/notifications",at=function(t){function e(e){var n=t.call(this,e)||this;return n.http=e,n.baseUrl=it,n}return P(e,t),e.prototype.retrieveNotifications=function(){return this.get("retrieveNotifications")},e}(_);at.ɵprov=e.ɵɵdefineInjectable({factory:function(){return new at(e.ɵɵinject(r.HttpClient))},token:at,providedIn:"root"}),at.decorators=[{type:e.Injectable,args:[{providedIn:"root"}]}],at.ctorParameters=function(){return[{type:r.HttpClient}]};var st=function(t){function e(e){var n=t.call(this,e)||this;return n.http=e,n.baseUrl=ot,n}return P(e,t),e.prototype.requestNewSubscription=function(t,e,n){this.postQS("requestNewSubscription",{requestedPlan:t}).subscribe((function(t){e&&e()}),(function(t){n&&n()}))},e.prototype.cancelRequestedSubscription=function(t,e){this.postQS("cancelRequestedSubscription",null).subscribe((function(e){t&&t()}),(function(t){e&&e()}))},e.prototype.buyAccess=function(t,e,n){this.postQS("buyAccess",{requestedPlan:t}).subscribe((function(t){e&&e()}),(function(t){n&&n()}))},e}(_);st.decorators=[{type:e.Injectable}],st.ctorParameters=function(){return[{type:r.HttpClient}]};var ut=function(t){w(t,"AnatolyDataModule")};ut.decorators=[{type:e.NgModule,args:[{imports:[l.CommonModule],providers:[st]}]}],ut.ctorParameters=function(){return[{type:ut,decorators:[{type:e.Optional},{type:e.SkipSelf}]}]};var lt=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;R.areYouSure(t,"Buying access","Confirm change","Cancel",(function(){e.api.buyAccess(e.plan,(function(){R.success("Access Granted",null,null,(function(){window.location.reload()}))}))}))},t}();lt.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'}]}],lt.ctorParameters=function(){return[{type:K},{type:st}]},lt.propDecorators={plan:[{type:e.Input}],plantitle:[{type:e.Input}]};var ct=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}();ct.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'}]}],ct.ctorParameters=function(){return[{type:K}]},ct.propDecorators={plan:[{type:e.Input}],plantitle:[{type:e.Input}]};var pt=function(){function t(t){this.api=t}return t.prototype.onUpgradePlan=function(){var t="Current plan: "+this.currentplantitle+" New plan: "+this.requestedplantitle,e=this;R.areYouSure(t,"Change billing plan","Confirm change","Cancel",(function(){e.api.requestNewSubscription(e.requestedplan,(function(){R.success("Your request for changing plan has been sent.",null,null,(function(){window.location.reload()}))}))}))},t}();pt.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'}]}],pt.ctorParameters=function(){return[{type:st}]},pt.propDecorators={currentplantitle:[{type:e.Input}],requestedplan:[{type:e.Input}],requestedplantitle:[{type:e.Input}]};var dt=function(){function t(){}return t.prototype.ngOnInit=function(){null==this.title&&(this.title="")},t}();dt.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'}]}],dt.propDecorators={title:[{type:e.Input}]};var ft={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:""}},ht=function(){function t(){this.subs=new tt}return t.prototype.getQSId=function(){var t=et.getValueByNameInQS("id");return void 0===t||""==t?null:t},t.prototype.ngOnDestroy=function(){this.subs.unsubscribe()},t}(),gt=function(t){function e(){var e=t.call(this)||this;return e.formSubmitted=!1,e}return P(e,t),e.prototype.isActionAdding=function(){var t=et.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 g.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}(ht);gt.propDecorators={formGroup:[{type:e.Input}],formSubmitted:[{type:e.Input}]};var mt=function(t){function e(){var e=t.call(this)||this;return e.froalaEditorInitialized=!1,e.afterInitializedActions=[],e.editorLabelText="Html",e.editorOptions={},e}return P(e,t),e.prototype.ngOnInit=function(){var t=this.editorOptions;"string"==typeof this.editorOptions&&(t=JSON.parse(this.editorOptions));var e=$.extend({},ft,t),n=I.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}(gt);mt.propDecorators={editorLabelText:[{type:e.Input}],editorOptions:[{type:e.Input}]};var yt=function(t){function e(){var e=t.call(this)||this;return e.editorFormKey="html",e}return P(e,t),e.prototype.setFormValueAfterInitialized=function(t,e){this.doAfterInitialized((function(n){n.setFormValue(t,e)}))},e}(mt);yt.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'}]}],yt.ctorParameters=function(){return[]},yt.propDecorators={editorFormKey:[{type:e.Input}]};var vt=function(t){function e(){return t.call(this)||this}return P(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}(mt);vt.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>'}]}],vt.ctorParameters=function(){return[]};var bt=function(){};bt.decorators=[{type:e.Component,args:[{selector:"anatoly-signin-button",template:'<a href="identity/signIn" class="{{classbtn}}">Sign In</a>\r\n'}]}],bt.ctorParameters=function(){return[]},bt.propDecorators={classbtn:[{type:e.Input}]};var St=function(){};St.decorators=[{type:e.Component,args:[{selector:"anatoly-signout-button",template:'<a href="identity/signOut" class="{{classbtn}}">Sign Out</a>\r\n'}]}],St.ctorParameters=function(){return[]},St.propDecorators={classbtn:[{type:e.Input}]};var It=function(){};It.decorators=[{type:e.Component,args:[{selector:"anatoly-signup-button",template:'<a href="identity/signup" class="{{classbtn}}">Sign Up</a>\r\n'}]}],It.propDecorators={classbtn:[{type:e.Input}]};var Ct=function(){function t(t){this.loadingService=t,this.subs=new tt,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}();Ct.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'}]}],Ct.ctorParameters=function(){return[{type:z}]};var wt={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"},xt=function(){function t(t,e){var r=this;this.router=t,this.document=e,this.isSpinnerVisible=!0,this.spinnerSpinKit=wt,this.backgroundColor="#007CB0",this.spinner=wt.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}();xt.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}]}],xt.ctorParameters=function(){return[{type:n.Router},{type:Document,decorators:[{type:e.Inject,args:[l.DOCUMENT]}]}]},xt.propDecorators={backgroundColor:[{type:e.Input}],spinner:[{type:e.Input}]};var Pt=function(){function t(t,e){this.el=t,this.control=e}return t.prototype.ngOnInit=function(){this.control.control.nativeElement=this.el.nativeElement},t}();Pt.decorators=[{type:e.Directive,args:[{selector:"[formControl], [formControlName]"}]}],Pt.ctorParameters=function(){return[{type:e.ElementRef},{type:g.NgControl}]};var Tt=function(){function t(){}return t.prototype.transform=function(t,e,n){return t?t.replace(new RegExp(e,"g"),n):t},t}();Tt.decorators=[{type:e.Pipe,args:[{name:"replaceText"}]}];var Et=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}();Et.decorators=[{type:e.Pipe,args:[{name:"filesize"}]}];var Lt=function(){function t(t){this.sanitized=t}return t.prototype.transform=function(t){return this.sanitized.bypassSecurityTrustHtml(t)},t}();Lt.decorators=[{type:e.Pipe,args:[{name:"safeHtml"}]}],Lt.ctorParameters=function(){return[{type:h.DomSanitizer}]};var zt=function(t){function e(){return t.call(this)||this}return P(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}(gt),Ot=function(t){function e(){var e=t.call(this)||this;return e.visible=!1,e.customerrors=[],e.viewtype=0,e}return P(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,L(t)),this.customerrors.length>0&&e.push.apply(e,L(this.customerrors)),e},e}(zt);Ot.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'}]}],Ot.ctorParameters=function(){return[]},Ot.propDecorators={visible:[{type:e.Input}],customerrors:[{type:e.Input}],viewtype:[{type:e.Input}]};var Nt=function(t){function e(){return t.call(this)||this}return P(e,t),e}(zt);Nt.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'}]}],Nt.ctorParameters=function(){return[]},Nt.propDecorators={controlName:[{type:e.Input}],controlTitle:[{type:e.Input}]};var Dt=m.FroalaEditorModule.forRoot(),jt=m.FroalaViewModule.forRoot(),Ut=function(){};Ut.decorators=[{type:e.NgModule,args:[{imports:[l.CommonModule,g.ReactiveFormsModule,g.FormsModule,Dt,jt],exports:[ct,pt,lt,bt,It,St,Ot,Nt,vt,yt,dt,xt,Ct,Pt,Lt,Tt,Et],declarations:[ct,pt,lt,bt,It,St,Ot,Nt,vt,yt,dt,xt,Ct,Pt,Lt,Tt,Et]}]}],t.Alerts=R,t.AnatolyCoreModule=Z,t.AnatolyDataModule=ut,t.AnatolyHttpInterceptor=N,t.AnatolyUIModule=Ut,t.AppContextService=K,t.AppCoreSettings=I,t.BaseApiService=_,t.BaseComponent=ht,t.BaseEditComponent=gt,t.BaseGoService=C,t.BaseGridEditService=rt,t.BaseGridReadService=nt,t.BaseHtmlEditorComponent=mt,t.BillingApiService=st,t.BuyAccessButtonComponent=lt,t.ContentHeaderComponent=dt,t.ContextInitState=S,t.Convert=D,t.DefaultEditorOptions=ft,t.DigitalMarketingService=X,t.FileSizePipe=Et,t.FormValidationSummaryComponent=Ot,t.FormsHtmlEditorComponent=yt,t.FroalaEditorModuleWithProviders=Dt,t.FroalaViewModuleWithProviders=jt,t.GlobalErrorHandler=M,t.Guid=G,t.HtmlEditorComponent=vt,t.IdleService=W,t.ItemValidationSummaryComponent=Nt,t.LoadingComponent=Ct,t.LoadingService=z,t.LocalStorageService=J,t.LocalizationModule=F,t.LocalizationService=j,t.LocalizationSettingsModule=k,t.LocalizePipe=U,t.LoggingService=O,t.NativeElementDirective=Pt,t.NotificationService=H,t.NotificationsApiService=at,t.ReplaceTextPipe=Tt,t.SafeHtmlPipe=Lt,t.SessionStorageService=Q,t.SignInButtonComponent=bt,t.SignOutButtonComponent=St,t.SignUpButtonComponent=It,t.SpinnerComponent=xt,t.Subs=tt,t.SubscribePlanButtonComponent=ct,t.TranslateModuleAtRoot=B,t.UpgradePlanButtonComponent=pt,t.Urls={notificationsSocketUrl:"/hubs/notifications"},t.Utils=et,t.ValidationSummaryComponent=zt,t.customTranslateLoaderFactory=V,t.localizationInitializerFactory=A,t.throwIfAlreadyLoaded=w,Object.defineProperty(t,"__esModule",{value:!0})}));
|
|
15
|
+
***************************************************************************** */C.decorators=[{type:e.Injectable}],C.ctorParameters=function(){return[{type:n.ActivatedRoute},{type:n.Router}]};var P=function(t,e){return(P=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)};function x(t,e){function n(){this.constructor=t}P(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}Object.create;function T(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 E(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 L(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(E(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 x(e,t),e.prototype.show=function(){this.counter++;var t=this;setTimeout((function(){t.counter>0&&t.next(!0)}),500)},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.prototype.reset=function(){this.counter>0&&this.next(!1),this.counter=0},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 O=function(){function t(){}return t.prototype.logError=function(t){console.error(t)},t.prototype.logInformation=function(t){console.info(t)},t}();O.ɵprov=e.ɵɵdefineInjectable({factory:function(){return new O},token:O,providedIn:"root"}),O.decorators=[{type:e.Injectable,args:[{providedIn:"root"}]}],O.ctorParameters=function(){return[]};var N=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=I.IsCDNEnabled,d=I.CDNSASToken,f=this.loadingService.isFreezed,h=t.url.toLowerCase(),g=t.url,m=!f;if(!f)try{for(var y=T(this.longRunningExceptionsList),v=y.next();!v.done;v=y.next()){var b=v.value;if(h.indexOf(this.longRunningExceptionsList[b])>=0){m=!1;break}}}catch(t){n={error:t}}finally{try{v&&!v.done&&(i=y.return)&&i.call(y)}finally{if(n)throw n.error}}if(p)try{for(var S=T(this.autoCDNSASTokenUrls),C=S.next();!C.done;C=S.next()){b=C.value;if(h.indexOf(this.autoCDNSASTokenUrls[b])>=0){t=t.clone({url:g+d});break}}}catch(t){a={error:t}}finally{try{C&&!C.done&&(s=S.return)&&s.call(S)}finally{if(a)throw a.error}}try{for(var w=T(this.externalSiteUrls),P=w.next();!P.done;P=w.next()){b=P.value;if(h.indexOf(this.externalSiteUrls[b])>=0){!0;break}}}catch(t){u={error:t}}finally{try{P&&!P.done&&(c=w.return)&&c.call(w)}finally{if(u)throw u.error}}if(h.indexOf("/api/")>-1){var x="",E=(new Date).getTime().toString();x=h.indexOf("?")>-1?g+"&t="+E:g+"?t="+E,t=t.clone({url:x})}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}();N.decorators=[{type:e.Injectable}],N.ctorParameters=function(){return[{type:z},{type:O}]};var j=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}(),D=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:v.default};break;default:t={locale:v.default}}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),I.DATE_FORMATS.angular,this.dateFnsLocale):"Invalid Date"},t.prototype.getLocalizedDateTime=function(t){var e=new Date(t);if(s.isValid(e)){var n=j.toLocalizedDateTime(e);return s.format(n,I.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}();D.ɵprov=e.ɵɵdefineInjectable({factory:function(){return new D(e.ɵɵinject(a.TranslateService))},token:D,providedIn:"root"}),D.decorators=[{type:e.Injectable,args:[{providedIn:"root"}]}],D.ctorParameters=function(){return[{type:a.TranslateService}]};var U=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 V(t){return new l.TranslateHttpLoader(t,I.resourcesUrl+"/",".json")}function A(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)}))}))}))}}U.decorators=[{type:e.Pipe,args:[{name:"localize"}]}],U.ctorParameters=function(){return[{type:D}]};var B=a.TranslateModule.forRoot({loader:{provide:a.TranslateLoader,useFactory:V,deps:[r.HttpClient]}}),k=function(e){this.injector=e,t.LocalizationInjectorInstance=this.injector};k.decorators=[{type:e.NgModule,args:[{imports:[B],providers:[{provide:e.APP_INITIALIZER,useFactory:A,deps:[a.TranslateService,D,e.Injector],multi:!0}],exports:[]}]}],k.ctorParameters=function(){return[{type:e.Injector}]};var F=function(){};F.decorators=[{type:e.NgModule,args:[{imports:[a.TranslateModule],exports:[a.TranslateModule,U],declarations:[U],providers:[]}]}];var M=function(){function t(t){this.injector=t}return t.prototype.handleError=function(t){throw this.injector.get(O).logError(t),t},t}();M.decorators=[{type:e.Injectable}],M.ctorParameters=function(){return[{type:e.Injector}]};var q=function(){function e(){}return Object.defineProperty(e,"localizationService",{get:function(){return t.LocalizationInjectorInstance.get(D)},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}(),R=function(){function t(){}return t.success=function(t,e,n,r){t=q.getLocalizedValue(t,e,"OperationSuccessFull"),n=q.getLocalizedValue(n,null,"Success"),b.default.fire({text:t,title:n,icon:"success",confirmButtonText:q.getLocalizedValue("Ok")}).then((function(){r&&r()}))},t.info=function(t,e,n){t=q.getLocalizedValue(t,e),n=q.getLocalizedValue(n,null,"Info"),b.default.fire({text:t,title:n,icon:"info",confirmButtonText:q.getLocalizedValue("Ok")})},t.warning=function(t,e,n){t=q.getLocalizedValue(t,e),n=q.getLocalizedValue(n,null,"Warning"),b.default.fire({text:t,title:n,icon:"warning",confirmButtonText:q.getLocalizedValue("Ok")})},t.error=function(t,e,n){t=q.getLocalizedValue(t,e,"ErrorOccured"),n=q.getLocalizedValue(n,null,"Error"),b.default.fire({text:t,title:n,icon:"error",confirmButtonText:q.getLocalizedValue("Ok")})},t.cancel=function(t,e,n){t=q.getLocalizedValue(t,e,"OperationCancelled"),n=q.getLocalizedValue(n,null,"Cancelled"),b.default.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=q.getLocalizedValue(t),e=q.getLocalizedValue(e,null,"AreYouSure"),n=q.getLocalizedValue(n,null,"AreYouSure-ConfirmButtonText"),r=q.getLocalizedValue(r,null,"AreYouSure-CancelButtonText"),b.default.fire({text:t,title:e,icon:"warning",confirmButtonText:n,cancelButtonText:r,showCancelButton:!0}).then((function(t){t.value?o&&o():t.dismiss!=b.default.DismissReason.cancel&&t.dismiss!=b.default.DismissReason.close||i&&i()}))},t}(),G=function(){function t(){}return t.newGuid=function(){return f.v4()},t}(),H=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:G.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=L([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=q.getLocalizedValue(t,e,"OperationSuccessFull"),n=q.getLocalizedValue(n),this.toastrService.success(t,n,{timeOut:3e3,progressBar:!0}),r&&this.addSessionNotification(t,"success")},t.prototype.info=function(t,e,n){t=q.getLocalizedValue(t,e),n=q.getLocalizedValue(n),this.toastrService.info(t,n,{timeOut:3e3,progressBar:!0})},t.prototype.warning=function(t,e,n){t=q.getLocalizedValue(t,e),n=q.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=q.getLocalizedValue(t,e,"ErrorOccured"),n=q.getLocalizedValue(n),this.toastrService.error(t,n,{timeOut:3e3,progressBar:!0}),r&&this.addSessionNotification(t,"error")},t.prototype.cancel=function(t,e,n){t=q.getLocalizedValue(t,e,"OperationCancelled"),n=q.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}();H.ɵprov=e.ɵɵdefineInjectable({factory:function(){return new H(e.ɵɵinject(d.ToastrService))},token:H,providedIn:"root"}),H.decorators=[{type:e.Injectable,args:[{providedIn:"root"}]}],H.ctorParameters=function(){return[{type:d.ToastrService}]};var _=function(){function t(t){this.http=t}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.getExternalTextFile=function(t){return this.http.get(t)},t.prototype.getExternalJsonFile=function(t){return this.http.get(t)},t.prototype.getJsonFile=function(t){var e=I.jsonsUrl,n=I.jsonVersion,r=I.isCDNEnabled,i=I.cdnSasToken,a="";return a=r?e+"/"+t+i:e+"/"+t+"?"+n,this.http.get(a).pipe(o.map((function(t){return t})))},t}();_.decorators=[{type:e.Injectable}],_.ctorParameters=function(){return[{type:r.HttpClient}]};var K=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 x(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 S.isUserSignedIn},e.prototype.isUserAdmin=function(){return S.isUserAdmin},e}(_);K.decorators=[{type:e.Injectable}],K.ctorParameters=function(){return[{type:r.HttpClient}]};var W=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}();W.ɵprov=e.ɵɵdefineInjectable({factory:function(){return new W},token:W,providedIn:"root"}),W.decorators=[{type:e.Injectable,args:[{providedIn:"root"}]}];var Y=function(){function t(t){this.currentClientKey=I.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}(),J=function(t){function e(){return t.call(this,"localStorage")||this}return x(e,t),e}(Y);J.decorators=[{type:e.Injectable}],J.ctorParameters=function(){return[]};var Q=function(t){function e(){return t.call(this,"sessionStorage")||this}return x(e,t),e}(Y);Q.decorators=[{type:e.Injectable}],Q.ctorParameters=function(){return[]};var X=function(){function t(t,e,n){this.title=t,this.meta=e,this.dom=n}return t.prototype.updateTitle=function(t){this.title.setTitle(t)},t.prototype.updateDescription=function(t){this.meta.updateTag({name:"description",content:t})},t.prototype.updateKeywords=function(t){this.meta.updateTag({name:"keywords",content:t})},t.prototype.updateMetaTags=function(t){var e=this;t.forEach((function(t){return e.meta.updateTag(t)}))},t.prototype.setCanonicalUrl=function(t){var e=void 0===t?this.dom.URL:t,n=this.dom.createElement("link");n.setAttribute("rel","canonical"),this.dom.head.appendChild(n),n.setAttribute("href",e)},t.prototype.updateCanonicalUrl=function(t){var e=void 0===t?this.dom.URL:t,n=this.dom.getElementsByTagName("head")[0],r=this.dom.querySelector("link[rel='canonical']")||null;null==r&&(r=this.dom.createElement("link"),n.appendChild(r)),r.setAttribute("rel","canonical"),r.setAttribute("href",e)},t}();X.ɵprov=e.ɵɵdefineInjectable({factory:function(){return new X(e.ɵɵinject(h.Title),e.ɵɵinject(h.Meta),e.ɵɵinject(c.DOCUMENT))},token:X,providedIn:"root"}),X.decorators=[{type:e.Injectable,args:[{providedIn:"root"}]}],X.ctorParameters=function(){return[{type:h.Title},{type:h.Meta},{type:void 0,decorators:[{type:e.Inject,args:[c.DOCUMENT]}]}]};var Z=function(){function t(t){this.router=t}return t.prototype.subscribe=function(){this.subscription=this.router.events.subscribe((function(t){t instanceof n.NavigationEnd&&window.ga&&(window.ga("set","page",t.urlAfterRedirects),window.ga("send","pageview"))}))},t.prototype.unsubscribe=function(){this.subscription&&this.subscription.unsubscribe()},t}();Z.decorators=[{type:e.Injectable}],Z.ctorParameters=function(){return[{type:n.Router}]};var tt=function(e,n){this.injector=e,w(n,"AnatolyCoreModule"),t.InjectorInstance=this.injector};tt.decorators=[{type:e.NgModule,args:[{imports:[c.CommonModule],exports:[],providers:[O,H,K,z,X,Z]}]}],tt.ctorParameters=function(){return[{type:e.Injector},{type:tt,decorators:[{type:e.Optional},{type:e.SkipSelf}]}]};var et=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}(),nt=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}(),rt=function(t){function e(e){var n=t.call(this,[])||this;return n.http=e,n.data=[],n}return x(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);rt.decorators=[{type:e.Injectable}],rt.ctorParameters=function(){return[{type:r.HttpClient}]};var ot=function(t){function e(e){var n=t.call(this,e)||this;return n.http=e,n}return x(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.delete=function(t,e){var n=this;this.reset();var r=this.baseUrl+"/delete"+this.serializeParams(t);return this.http.delete(r).subscribe((function(){n.read(),e&&e()}),(function(){n.read()}))},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}(rt);ot.decorators=[{type:e.Injectable}],ot.ctorParameters=function(){return[{type:r.HttpClient}]};var it="api/billing",at="api/notifications",st=function(t){function e(e){var n=t.call(this,e)||this;return n.http=e,n.baseUrl=at,n}return x(e,t),e.prototype.retrieveNotifications=function(){return this.get("retrieveNotifications")},e}(_);st.ɵprov=e.ɵɵdefineInjectable({factory:function(){return new st(e.ɵɵinject(r.HttpClient))},token:st,providedIn:"root"}),st.decorators=[{type:e.Injectable,args:[{providedIn:"root"}]}],st.ctorParameters=function(){return[{type:r.HttpClient}]};var ut=function(t){function e(e){var n=t.call(this,e)||this;return n.http=e,n.baseUrl=it,n}return x(e,t),e.prototype.requestNewSubscription=function(t,e,n){this.postQS("requestNewSubscription",{requestedPlan:t}).subscribe((function(t){e&&e()}),(function(t){n&&n()}))},e.prototype.cancelRequestedSubscription=function(t,e){this.postQS("cancelRequestedSubscription",null).subscribe((function(e){t&&t()}),(function(t){e&&e()}))},e.prototype.buyAccess=function(t,e,n){this.postQS("buyAccess",{requestedPlan:t}).subscribe((function(t){e&&e()}),(function(t){n&&n()}))},e}(_);ut.decorators=[{type:e.Injectable}],ut.ctorParameters=function(){return[{type:r.HttpClient}]};var ct=function(t){w(t,"AnatolyDataModule")};ct.decorators=[{type:e.NgModule,args:[{imports:[c.CommonModule],providers:[ut]}]}],ct.ctorParameters=function(){return[{type:ct,decorators:[{type:e.Optional},{type:e.SkipSelf}]}]};var lt=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;R.areYouSure(t,"Buying access","Confirm change","Cancel",(function(){e.api.buyAccess(e.plan,(function(){R.success("Access Granted",null,null,(function(){window.location.reload()}))}))}))},t}();lt.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'}]}],lt.ctorParameters=function(){return[{type:K},{type:ut}]},lt.propDecorators={plan:[{type:e.Input}],plantitle:[{type:e.Input}]};var pt=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}();pt.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'}]}],pt.ctorParameters=function(){return[{type:K}]},pt.propDecorators={plan:[{type:e.Input}],plantitle:[{type:e.Input}]};var dt=function(){function t(t){this.api=t}return t.prototype.onUpgradePlan=function(){var t="Current plan: "+this.currentplantitle+" New plan: "+this.requestedplantitle,e=this;R.areYouSure(t,"Change billing plan","Confirm change","Cancel",(function(){e.api.requestNewSubscription(e.requestedplan,(function(){R.success("Your request for changing plan has been sent.",null,null,(function(){window.location.reload()}))}))}))},t}();dt.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'}]}],dt.ctorParameters=function(){return[{type:ut}]},dt.propDecorators={currentplantitle:[{type:e.Input}],requestedplan:[{type:e.Input}],requestedplantitle:[{type:e.Input}]};var ft=function(){function t(){}return t.prototype.ngOnInit=function(){null==this.title&&(this.title="")},t}();ft.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'}]}],ft.propDecorators={title:[{type:e.Input}]};var ht={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:""}},gt=function(){function t(){this.subs=new et}return t.prototype.getQSId=function(){var t=nt.getValueByNameInQS("id");return void 0===t||""==t?null:t},t.prototype.ngOnDestroy=function(){this.subs.unsubscribe()},t}(),mt=function(t){function e(){var e=t.call(this)||this;return e.formSubmitted=!1,e}return x(e,t),e.prototype.isActionAdding=function(){var t=nt.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 g.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}(gt);mt.propDecorators={formGroup:[{type:e.Input}],formSubmitted:[{type:e.Input}]};var yt=function(t){function e(){var e=t.call(this)||this;return e.froalaEditorInitialized=!1,e.afterInitializedActions=[],e.editorLabelText="Html",e.editorOptions={},e}return x(e,t),e.prototype.ngOnInit=function(){var t=this.editorOptions;"string"==typeof this.editorOptions&&(t=JSON.parse(this.editorOptions));var e=$.extend({},ht,t),n=I.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}(mt);yt.propDecorators={editorLabelText:[{type:e.Input}],editorOptions:[{type:e.Input}]};var vt=function(t){function e(){var e=t.call(this)||this;return e.editorFormKey="html",e}return x(e,t),e.prototype.setFormValueAfterInitialized=function(t,e){this.doAfterInitialized((function(n){n.setFormValue(t,e)}))},e}(yt);vt.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'}]}],vt.ctorParameters=function(){return[]},vt.propDecorators={editorFormKey:[{type:e.Input}]};var bt=function(t){function e(){return t.call(this)||this}return x(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}(yt);bt.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>'}]}],bt.ctorParameters=function(){return[]};var St=function(){};St.decorators=[{type:e.Component,args:[{selector:"anatoly-signin-button",template:'<a href="identity/signIn" class="{{classbtn}}">Sign In</a>\r\n'}]}],St.ctorParameters=function(){return[]},St.propDecorators={classbtn:[{type:e.Input}]};var It=function(){};It.decorators=[{type:e.Component,args:[{selector:"anatoly-signout-button",template:'<a href="identity/signOut" class="{{classbtn}}">Sign Out</a>\r\n'}]}],It.ctorParameters=function(){return[]},It.propDecorators={classbtn:[{type:e.Input}]};var Ct=function(){};Ct.decorators=[{type:e.Component,args:[{selector:"anatoly-signup-button",template:'<a href="identity/signup" class="{{classbtn}}">Sign Up</a>\r\n'}]}],Ct.propDecorators={classbtn:[{type:e.Input}]};var wt=function(){function t(t){this.loadingService=t,this.subs=new et,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}();wt.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'}]}],wt.ctorParameters=function(){return[{type:z}]};var Pt={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"},xt=function(){function t(t,e){var r=this;this.router=t,this.document=e,this.isSpinnerVisible=!0,this.spinnerSpinKit=Pt,this.backgroundColor="#007CB0",this.spinner=Pt.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}();xt.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}]}],xt.ctorParameters=function(){return[{type:n.Router},{type:Document,decorators:[{type:e.Inject,args:[c.DOCUMENT]}]}]},xt.propDecorators={backgroundColor:[{type:e.Input}],spinner:[{type:e.Input}]};var Tt=function(){function t(t,e){this.el=t,this.control=e}return t.prototype.ngOnInit=function(){this.control.control.nativeElement=this.el.nativeElement},t}();Tt.decorators=[{type:e.Directive,args:[{selector:"[formControl], [formControlName]"}]}],Tt.ctorParameters=function(){return[{type:e.ElementRef},{type:g.NgControl}]};var Et=function(){function t(){}return t.prototype.transform=function(t,e,n){return t?t.replace(new RegExp(e,"g"),n):t},t}();Et.decorators=[{type:e.Pipe,args:[{name:"replaceText"}]}];var Lt=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}();Lt.decorators=[{type:e.Pipe,args:[{name:"filesize"}]}];var zt=function(){function t(t){this.sanitized=t}return t.prototype.transform=function(t){return this.sanitized.bypassSecurityTrustHtml(t)},t}();zt.decorators=[{type:e.Pipe,args:[{name:"safeHtml"}]}],zt.ctorParameters=function(){return[{type:h.DomSanitizer}]};var Ot=function(t){function e(){return t.call(this)||this}return x(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}(mt),Nt=function(t){function e(){var e=t.call(this)||this;return e.visible=!1,e.customerrors=[],e.viewtype=0,e}return x(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,L(t)),this.customerrors.length>0&&e.push.apply(e,L(this.customerrors)),e},e}(Ot);Nt.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'}]}],Nt.ctorParameters=function(){return[]},Nt.propDecorators={visible:[{type:e.Input}],customerrors:[{type:e.Input}],viewtype:[{type:e.Input}]};var jt=function(t){function e(){return t.call(this)||this}return x(e,t),e}(Ot);jt.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'}]}],jt.ctorParameters=function(){return[]},jt.propDecorators={controlName:[{type:e.Input}],controlTitle:[{type:e.Input}]};var Dt=m.FroalaEditorModule.forRoot(),Ut=m.FroalaViewModule.forRoot(),Vt=function(){};Vt.decorators=[{type:e.NgModule,args:[{imports:[c.CommonModule,g.ReactiveFormsModule,g.FormsModule,Dt,Ut],exports:[pt,dt,lt,St,Ct,It,Nt,jt,bt,vt,ft,xt,wt,Tt,zt,Et,Lt],declarations:[pt,dt,lt,St,Ct,It,Nt,jt,bt,vt,ft,xt,wt,Tt,zt,Et,Lt]}]}],t.Alerts=R,t.AnatolyCoreModule=tt,t.AnatolyDataModule=ct,t.AnatolyHttpInterceptor=N,t.AnatolyUIModule=Vt,t.AppContextService=K,t.AppCoreSettings=I,t.BaseApiService=_,t.BaseComponent=gt,t.BaseEditComponent=mt,t.BaseGoService=C,t.BaseGridEditService=ot,t.BaseGridReadService=rt,t.BaseHtmlEditorComponent=yt,t.BillingApiService=ut,t.BuyAccessButtonComponent=lt,t.ContentHeaderComponent=ft,t.ContextInitState=S,t.Convert=j,t.DefaultEditorOptions=ht,t.DigitalMarketingService=X,t.FileSizePipe=Lt,t.FormValidationSummaryComponent=Nt,t.FormsHtmlEditorComponent=vt,t.FroalaEditorModuleWithProviders=Dt,t.FroalaViewModuleWithProviders=Ut,t.GlobalErrorHandler=M,t.GoogleAnalyticsService=Z,t.Guid=G,t.HtmlEditorComponent=bt,t.IdleService=W,t.ItemValidationSummaryComponent=jt,t.LoadingComponent=wt,t.LoadingService=z,t.LocalStorageService=J,t.LocalizationModule=F,t.LocalizationService=D,t.LocalizationSettingsModule=k,t.LocalizePipe=U,t.LoggingService=O,t.NativeElementDirective=Tt,t.NotificationService=H,t.NotificationsApiService=st,t.ReplaceTextPipe=Et,t.SafeHtmlPipe=zt,t.SessionStorageService=Q,t.SignInButtonComponent=St,t.SignOutButtonComponent=It,t.SignUpButtonComponent=Ct,t.SpinnerComponent=xt,t.Subs=et,t.SubscribePlanButtonComponent=pt,t.TranslateModuleAtRoot=B,t.UpgradePlanButtonComponent=dt,t.Urls={notificationsSocketUrl:"/hubs/notifications"},t.Utils=nt,t.ValidationSummaryComponent=Ot,t.customTranslateLoaderFactory=V,t.localizationInitializerFactory=A,t.throwIfAlreadyLoaded=w,Object.defineProperty(t,"__esModule",{value:!0})}));
|
|
16
16
|
//# sourceMappingURL=osovitny-anatoly.umd.min.js.map
|