Socket
Socket
Sign inDemoInstall

@syncfusion/ej2-notifications

Package Overview
Dependencies
Maintainers
3
Versions
98
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@syncfusion/ej2-notifications - npm Package Compare versions

Comparing version 23.2.4 to 23.2.5

6

CHANGELOG.md

@@ -5,2 +5,8 @@ # Changelog

### Toast
#### Bug Fixes
- `#I521037` - Fixed an issue where the Toast custom content template was not functioning correctly. Meta Tag.
## 23.1.40 (2023-10-10)

@@ -7,0 +13,0 @@

4

dist/ej2-notifications.min.js
/*!
* filename: ej2-notifications.min.js
* version : 23.2.4
* version : 23.2.5
* Copyright Syncfusion Inc. 2001 - 2023. All rights reserved.

@@ -10,2 +10,2 @@ * Use of this code is subject to the terms of our license.

*/
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("SyncfusionBase"),require("SyncfusionButtons"),require("SyncfusionPopups")):"function"==typeof define&&define.amd?define(["SyncfusionBase","SyncfusionButtons","SyncfusionPopups"],e):"object"==typeof exports?exports.SyncfusionNotifications=e(require("SyncfusionBase"),require("SyncfusionButtons"),require("SyncfusionPopups")):t.SyncfusionNotifications=e(t.SyncfusionBase,t.SyncfusionButtons,t.SyncfusionPopups)}(this,function(t,e,i){return function(t){function e(s){if(i[s])return i[s].exports;var n=i[s]={i:s,l:!1,exports:{}};return t[s].call(n.exports,n,n.exports,e),n.l=!0,n.exports}var i={};return e.m=t,e.c=i,e.i=function(t){return t},e.d=function(t,i,s){e.o(t,i)||Object.defineProperty(t,i,{configurable:!1,enumerable:!0,get:s})},e.n=function(t){var i=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(i,"a",i),i},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="",e(e.s=4)}([function(e,i){e.exports=t},function(t,e,i){"use strict";var s=i(5);i.d(e,"a",function(){return s.a}),i.d(e,"b",function(){return s.b}),i.d(e,"c",function(){return s.c})},function(t,e,i){"use strict";var s=i(6);i.d(e,"a",function(){return s.a}),i.d(e,"b",function(){return s.b}),i.d(e,"c",function(){return s.c})},function(t,e,i){"use strict";var s=i(7);i.d(e,"a",function(){return s.a}),i.d(e,"b",function(){return s.b}),i.d(e,"c",function(){return s.c}),i.d(e,"d",function(){return s.d}),i.d(e,"e",function(){return s.e}),i.d(e,"f",function(){return s.f})},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var s=i(3);i.d(e,"ToastPosition",function(){return s.a}),i.d(e,"ButtonModelProps",function(){return s.b}),i.d(e,"ToastAnimations",function(){return s.c}),i.d(e,"ToastAnimationSettings",function(){return s.d}),i.d(e,"Toast",function(){return s.e}),i.d(e,"ToastUtility",function(){return s.f});var n=i(1);i.d(e,"Severity",function(){return n.a}),i.d(e,"Variant",function(){return n.b}),i.d(e,"Message",function(){return n.c});var o=i(2);i.d(e,"SkeletonType",function(){return o.a}),i.d(e,"ShimmerEffect",function(){return o.b}),i.d(e,"Skeleton",function(){return o.c})},function(t,e,i){"use strict";i.d(e,"a",function(){return s}),i.d(e,"b",function(){return a}),i.d(e,"c",function(){return h});var s,n=i(0),o=(i.n(n),this&&this.__extends||function(){var t=function(e,i){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(e,i)};return function(e,i){function s(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(s.prototype=i.prototype,new s)}}()),r=this&&this.__decorate||function(t,e,i,s){var n,o=arguments.length,r=o<3?e:null===s?s=Object.getOwnPropertyDescriptor(e,i):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(t,e,i,s);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(r=(o<3?n(r):o>3?n(e,i,r):n(e,i))||r);return o>3&&r&&Object.defineProperty(e,i,r),r};!function(t){t.Normal="Normal",t.Success="Success",t.Info="Info",t.Warning="Warning",t.Error="Error"}(s||(s={}));var a;!function(t){t.Text="Text",t.Outlined="Outlined",t.Filled="Filled"}(a||(a={}));var l="e-rtl",c="e-hidden",h=function(t){function e(e,i){var s=t.call(this,e,i)||this;return s.initialRender=!0,s}return o(e,t),e.prototype.getModuleName=function(){return"message"},e.prototype.getPersistData=function(){return this.addOnPersist([])},e.prototype.preRender=function(){var t={close:"Close"};this.l10n=new n.L10n("message",t,this.locale)},e.prototype.render=function(){this.innerContent=this.element.innerHTML,this.element.innerHTML="",this.msgElement=this.createElement("div",{className:"e-msg-content-wrap"}),this.initialize(),this.wireEvents(),this.renderComplete(),this.renderReactTemplates(),this.initialRender=!1},e.prototype.initialize=function(){this.element.setAttribute("role","alert"),this.setCssClass(),this.setIcon(),this.setContent(),this.setCloseIcon(),this.setSeverity(),this.setVariant(),this.setVisible(),this.enableRtl&&this.element.classList.add(l)},e.prototype.setIcon=function(){this.showIcon&&(this.iconElement=this.createElement("span",{className:"e-msg-icon"}),this.element.classList.contains("e-content-center")?this.msgElement.appendChild(this.iconElement):this.element.appendChild(this.iconElement))},e.prototype.setCloseIcon=function(){this.showCloseIcon&&(this.closeIcon=this.createElement("button",{attrs:{type:"button",class:"e-msg-close-icon"}}),this.element.appendChild(this.closeIcon),this.setTitle())},e.prototype.setTitle=function(){this.l10n.setLocale(this.locale);var t=this.l10n.getConstant("close");this.closeIcon.setAttribute("title",t),this.closeIcon.setAttribute("aria-label",t)},e.prototype.setContent=function(){this.txtElement=this.createElement("div",{className:"e-msg-content"}),this.element.classList.contains("e-content-center")?(this.msgElement.appendChild(this.txtElement),this.element.appendChild(this.msgElement)):this.element.appendChild(this.txtElement),this.setTemplate()},e.prototype.setTemplate=function(){var t;if(i.i(n.isNullOrUndefined)(this.content)||""===this.content)this.txtElement.innerHTML=this.innerContent;else if(!i.i(n.isNullOrUndefined)(this.content)&&""!==this.content&&("string"==typeof this.content||"string"!=typeof this.content))if(this.isVue||"string"!=typeof this.content){if(t=i.i(n.compile)(this.content),!i.i(n.isNullOrUndefined)(t)){var e=t({},this,"content",this.element.id+"content",!0);e&&(e=Array.prototype.slice.call(e),i.i(n.append)(e,this.txtElement),this.renderReactTemplates())}}else this.txtElement.innerHTML=this.content},e.prototype.setSeverity=function(){var t=["e-success","e-warning","e-info","e-error"];i.i(n.removeClass)([this.element],t),"Success"===this.severity?i.i(n.addClass)([this.element],"e-success"):"Warning"===this.severity?i.i(n.addClass)([this.element],"e-warning"):"Error"===this.severity?i.i(n.addClass)([this.element],"e-error"):"Info"===this.severity&&i.i(n.addClass)([this.element],"e-info")},e.prototype.setVariant=function(){var t=["e-filled","e-outlined"];i.i(n.removeClass)([this.element],t),"Outlined"===this.variant?i.i(n.addClass)([this.element],"e-outlined"):"Filled"===this.variant&&i.i(n.addClass)([this.element],"e-filled")},e.prototype.setCssClass=function(t){t&&i.i(n.removeClass)([this.element],t.split(" ")),this.cssClass&&i.i(n.addClass)([this.element],this.cssClass.split(" "))},e.prototype.setVisible=function(){this.visible?i.i(n.removeClass)([this.element],c):(i.i(n.addClass)([this.element],c),this.initialRender||this.trigger("closed",{event:event,isInteracted:!1,element:this.element}))},e.prototype.clickHandler=function(t){this.closeMessage(t)},e.prototype.keyboardHandler=function(t){32!==t.keyCode&&13!==t.keyCode||this.closeMessage(t)},e.prototype.closeMessage=function(t){i.i(n.addClass)([this.element],c),this.setProperties({visible:!1},!0);var e={event:t,isInteracted:!0,element:this.element};this.trigger("closed",e)},e.prototype.wireEvents=function(){this.showCloseIcon&&(n.EventHandler.add(this.closeIcon,"click",this.clickHandler,this),n.EventHandler.add(this.closeIcon,"keydown",this.keyboardHandler,this))},e.prototype.unWireEvents=function(){this.showCloseIcon&&(n.EventHandler.remove(this.closeIcon,"click",this.clickHandler),n.EventHandler.remove(this.closeIcon,"keydown",this.keyboardHandler))},e.prototype.onPropertyChanged=function(t,e){for(var s=0,o=Object.keys(t);s<o.length;s++){switch(o[s]){case"cssClass":this.setCssClass(e.cssClass);break;case"content":this.txtElement.innerHTML="",this.setTemplate();break;case"enableRtl":this.enableRtl?this.element.classList.add(l):this.element.classList.remove(l);break;case"locale":this.showCloseIcon&&this.setTitle();break;case"showIcon":!this.showIcon&&this.element.getElementsByClassName("e-msg-icon").length>0&&i.i(n.detach)(this.iconElement),this.showIcon&&(this.iconElement=this.createElement("span",{className:"e-msg-icon"}),this.element.insertBefore(this.iconElement,this.txtElement));break;case"showCloseIcon":this.showCloseIcon||i.i(n.isNullOrUndefined)(this.closeIcon)?(this.setCloseIcon(),this.wireEvents()):(this.unWireEvents(),i.i(n.detach)(this.closeIcon));break;case"severity":this.setSeverity();break;case"variant":this.setVariant();break;case"visible":this.setVisible()}}},e.prototype.destroy=function(){var e=i.i(n.isNullOrUndefined)(this.cssClass)?[""]:this.cssClass.split(" "),s=["e-success","e-warning","e-info","e-error",l,c,"e-outlined","e-filled"],o=1===e.length&&""===e[0]?s:s.concat(e);i.i(n.removeClass)([this.element],o),this.element.removeAttribute("role"),this.unWireEvents(),i.i(n.isNullOrUndefined)(this.iconElement)||i.i(n.detach)(this.iconElement),i.i(n.detach)(this.txtElement),i.i(n.isNullOrUndefined)(this.closeIcon)||i.i(n.detach)(this.closeIcon),t.prototype.destroy.call(this)},r([i.i(n.Property)(null)],e.prototype,"content",void 0),r([i.i(n.Property)("")],e.prototype,"cssClass",void 0),r([i.i(n.Property)(!0)],e.prototype,"showIcon",void 0),r([i.i(n.Property)(!1)],e.prototype,"showCloseIcon",void 0),r([i.i(n.Property)("Normal")],e.prototype,"severity",void 0),r([i.i(n.Property)("Text")],e.prototype,"variant",void 0),r([i.i(n.Property)(!0)],e.prototype,"visible",void 0),r([i.i(n.Event)()],e.prototype,"created",void 0),r([i.i(n.Event)()],e.prototype,"destroyed",void 0),r([i.i(n.Event)()],e.prototype,"closed",void 0),e=r([n.NotifyPropertyChanges],e)}(n.Component)},function(t,e,i){"use strict";i.d(e,"a",function(){return s}),i.d(e,"b",function(){return l}),i.d(e,"c",function(){return c});var s,n=i(0),o=(i.n(n),this&&this.__extends||function(){var t=function(e,i){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(e,i)};return function(e,i){function s(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(s.prototype=i.prototype,new s)}}()),r=this&&this.__decorate||function(t,e,i,s){var n,o=arguments.length,r=o<3?e:null===s?s=Object.getOwnPropertyDescriptor(e,i):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(t,e,i,s);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(r=(o<3?n(r):o>3?n(e,i,r):n(e,i))||r);return o>3&&r&&Object.defineProperty(e,i,r),r},a={TEXTSHAPE:"e-skeleton-text",CIRCLESHAPE:"e-skeleton-circle",SQUARESHAPE:"e-skeleton-square",RECTANGLESHAPE:"e-skeleton-rectangle",WAVEEFFECT:"e-shimmer-wave",PULSEEFFECT:"e-shimmer-pulse",FADEEFFECT:"e-shimmer-fade",VISIBLENONE:"e-visible-none"};!function(t){t.Text="Text",t.Circle="Circle",t.Square="Square",t.Rectangle="Rectangle"}(s||(s={}));var l;!function(t){t.Wave="Wave",t.Fade="Fade",t.Pulse="Pulse",t.None="None"}(l||(l={}));var c=function(t){function e(e,i){return t.call(this,e,i)||this}return o(e,t),e.prototype.getModuleName=function(){return"skeleton"},e.prototype.getPersistData=function(){return this.addOnPersist([])},e.prototype.preRender=function(){this.element.id||(this.element.id=i.i(n.getUniqueID)("e-"+this.getModuleName())),this.updateCssClass(),i.i(n.attributes)(this.element,{role:"alert","aria-busy":"true","aria-live":"polite","aria-label":this.label})},e.prototype.render=function(){this.initialize()},e.prototype.onPropertyChanged=function(t,e){for(var s=0,o=Object.keys(t);s<o.length;s++){switch(o[s]){case"width":case"height":this.updateDimension();break;case"shape":this.updateShape();break;case"shimmerEffect":this.updateEffect();break;case"visible":this.updateVisibility();break;case"label":this.element.setAttribute("aria-label",this.label);break;case"cssClass":e.cssClass&&i.i(n.removeClass)([this.element],e.cssClass.split(" ")),this.updateCssClass()}}},e.prototype.destroy=function(){t.prototype.destroy.call(this);var e=["role","aria-live","aria-busy","aria-label"],s=[];this.cssClass&&(s=s.concat(this.cssClass.split(" ")));for(var o=0;o<e.length;o++)this.element.removeAttribute(e[parseInt(o.toString(),10)]);s=s.concat(this.element.classList.value.match(/(e-skeleton-[^\s]+)/g)),s=s.concat(this.element.classList.value.match(/(e-shimmer-[^\s]+)/g)),i.i(n.removeClass)([this.element],s)},e.prototype.initialize=function(){this.updateShape(),this.updateEffect(),this.updateVisibility()},e.prototype.updateShape=function(){var t=a[this.shape.toUpperCase()+"SHAPE"],e=this.element.classList.value.match(/(e-skeleton-[^\s]+)/g);this.updateDimension(),e&&i.i(n.removeClass)([this.element],e),i.i(n.addClass)([this.element],[t])},e.prototype.updateDimension=function(){var t=!this.width&&["Text","Rectangle"].indexOf(this.shape)>-1?"100%":i.i(n.formatUnit)(this.width),e=["Circle","Square"].indexOf(this.shape)>-1?t:i.i(n.formatUnit)(this.height);this.element.style.width=t,this.element.style.height=e},e.prototype.updateEffect=function(){var t=this.element.classList.value.match(/(e-shimmer-[^\s]+)/g);t&&i.i(n.removeClass)([this.element],t),i.i(n.addClass)([this.element],[a[this.shimmerEffect.toUpperCase()+"EFFECT"]])},e.prototype.updateVisibility=function(){this.element.classList[this.visible?"remove":"add"](a.VISIBLENONE)},e.prototype.updateCssClass=function(){this.cssClass&&i.i(n.addClass)([this.element],this.cssClass.split(" "))},r([i.i(n.Property)("")],e.prototype,"width",void 0),r([i.i(n.Property)("")],e.prototype,"height",void 0),r([i.i(n.Property)(!0)],e.prototype,"visible",void 0),r([i.i(n.Property)("Text")],e.prototype,"shape",void 0),r([i.i(n.Property)("Wave")],e.prototype,"shimmerEffect",void 0),r([i.i(n.Property)("Loading...")],e.prototype,"label",void 0),r([i.i(n.Property)("")],e.prototype,"cssClass",void 0),e=r([n.NotifyPropertyChanges],e)}(n.Component)},function(t,e,i){"use strict";i.d(e,"a",function(){return f}),i.d(e,"b",function(){return m}),i.d(e,"c",function(){return y}),i.d(e,"d",function(){return v}),i.d(e,"e",function(){return C}),i.d(e,"f",function(){return s});var s,n=i(0),o=(i.n(n),i(8)),r=(i.n(o),i(9)),a=(i.n(r),this&&this.__extends||function(){var t=function(e,i){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(e,i)};return function(e,i){function s(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(s.prototype=i.prototype,new s)}}()),l=this&&this.__decorate||function(t,e,i,s){var n,o=arguments.length,r=o<3?e:null===s?s=Object.getOwnPropertyDescriptor(e,i):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(t,e,i,s);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(r=(o<3?n(r):o>3?n(e,i,r):n(e,i))||r);return o>3&&r&&Object.defineProperty(e,i,r),r},c="e-toast",h="e-toast-container",p="e-toast-message",d="e-toast-progress",u="e-toast-close-icon",f=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return a(e,t),l([i.i(n.Property)("Left")],e.prototype,"X",void 0),l([i.i(n.Property)("Top")],e.prototype,"Y",void 0),e}(n.ChildProperty),m=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return a(e,t),l([i.i(n.Property)(null)],e.prototype,"model",void 0),l([i.i(n.Property)(null)],e.prototype,"click",void 0),e}(n.ChildProperty),y=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return a(e,t),l([i.i(n.Property)("FadeIn")],e.prototype,"effect",void 0),l([i.i(n.Property)(600)],e.prototype,"duration",void 0),l([i.i(n.Property)("ease")],e.prototype,"easing",void 0),e}(n.ChildProperty),v=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return a(e,t),l([i.i(n.Complex)({effect:"FadeIn",duration:600,easing:"ease"},y)],e.prototype,"show",void 0),l([i.i(n.Complex)({effect:"FadeOut",duration:600,easing:"ease"},y)],e.prototype,"hide",void 0),e}(n.ChildProperty),C=function(t){function e(e,i){var s=t.call(this,e,i)||this;return s.toastCollection=[],s.needsID=!0,s}return a(e,t),e.prototype.getModuleName=function(){return"toast"},e.prototype.getPersistData=function(){return this.addOnPersist([])},e.prototype.destroy=function(){this.hide("All"),this.element.classList.remove(h),i.i(n.setStyleAttribute)(this.element,{position:"","z-index":""}),i.i(n.isNullOrUndefined)(this.refElement)||i.i(n.isNullOrUndefined)(this.refElement.parentElement)||(this.refElement.parentElement.insertBefore(this.element,this.refElement),i.i(n.detach)(this.refElement),this.refElement=void 0),this.isBlazorServer()||t.prototype.destroy.call(this)},e.prototype.preRender=function(){this.isDevice=n.Browser.isDevice,"300px"===this.width&&(this.width=this.isDevice&&screen.width<768?"100%":"300px"),i.i(n.isNullOrUndefined)(this.target)&&(this.target=document.body),this.enableRtl&&!this.isBlazorServer()&&this.element.classList.add("e-rtl")},e.prototype.render=function(){this.progressObj=[],this.intervalId=[],this.contentTemplate=null,this.toastTemplate=null,this.renderComplete(),this.initRenderClass=this.element.className},e.prototype.show=function(t){var e;if(i.i(n.isNullOrUndefined)(t)||(this.templateChanges(t),e=JSON.parse(JSON.stringify(t)),i.i(n.extend)(this,this,t)),i.i(n.isNullOrUndefined)(this.toastContainer)){this.toastContainer=this.getContainer();var s="string"==typeof this.target?document.querySelector(this.target):"object"==typeof this.target?this.target:document.body;if(i.i(n.isNullOrUndefined)(s))return;"BODY"===s.tagName?this.toastContainer.style.position="fixed":(this.toastContainer.style.position="absolute",s.style.position="relative"),this.setPositioning(this.position),s.appendChild(this.toastContainer)}if(this.isBlazorServer()&&this.element.classList.contains("e-control"))return void this.isToastModel(t);this.toastEle=this.createElement("div",{className:c,id:i.i(n.getUniqueID)("toast")}),this.setWidthHeight(),this.setCSSClass(this.cssClass),i.i(n.isNullOrUndefined)(this.template)||""===this.template?this.personalizeToast():this.templateRendering(),this.setProgress(),this.setCloseButton(),this.setAria(),this.appendToTarget(t),this.isDevice&&screen.width<768&&new n.Touch(this.toastEle,{swipe:this.swipeHandler.bind(this)}),i.i(n.isNullOrUndefined)(e)||(i.i(n.extend)(e,{element:[this.toastEle]},!0),this.toastCollection.push(e)),this.isReact&&this.renderReactTemplates()},e.prototype.showToast=function(t,e){this.toastEle=this.element.querySelector("#"+t),this.show(e)},e.prototype.isToastModel=function(t){this.toastContainer=this.element,this.setPositioning(this.position);var e=this;i.i(n.isNullOrUndefined)(e.element.lastElementChild)||this.setProgress(),this.setAria(),this.appendToTarget(t)},e.prototype.swipeHandler=function(t){var e=i.i(n.closest)(t.originalEvent.target,"."+c+":not(."+h+")"),s=this.animation.hide.effect;i.i(n.isNullOrUndefined)(e)||("Right"===t.swipeDirection?(this.animation.hide.effect="SlideRightOut",this.hideToast("swipe",e)):"Left"===t.swipeDirection&&(this.animation.hide.effect="SlideLeftOut",this.hideToast("swipe",e)),this.animation.hide.effect=s)},e.prototype.templateChanges=function(t){i.i(n.isUndefined)(t.content)||i.i(n.isNullOrUndefined)(this.contentTemplate)||this.content===t.content||this.clearContentTemplate(),i.i(n.isUndefined)(t.template)||i.i(n.isNullOrUndefined)(this.toastTemplate)||this.template===t.template||this.clearToastTemplate()},e.prototype.setCSSClass=function(t){if(t){var e=-1!==t.indexOf(",")?",":" ";i.i(n.classList)(this.toastEle,t.split(e),[]),this.toastContainer&&i.i(n.classList)(this.toastContainer,t.split(e),[])}},e.prototype.setWidthHeight=function(){"300px"===this.width?this.toastEle.style.width=i.i(n.formatUnit)(this.width):"100%"===this.width?this.toastContainer.classList.add("e-toast-full-width"):(this.toastEle.style.width=i.i(n.formatUnit)(this.width),this.toastContainer.classList.remove("e-toast-full-width")),this.toastEle.style.height=i.i(n.formatUnit)(this.height)},e.prototype.templateRendering=function(){this.fetchEle(this.toastEle,this.template,"template")},e.prototype.sanitizeHelper=function(t){if(this.enableHtmlSanitizer){var e=n.SanitizeHtmlHelper.beforeSanitize(),s={cancel:!1,helper:null};i.i(n.extend)(e,e,s),this.trigger("beforeSanitizeHtml",e),e.cancel&&!i.i(n.isNullOrUndefined)(e.helper)?t=e.helper(t):e.cancel||(t=n.SanitizeHtmlHelper.serializeValue(e,t))}return t},e.prototype.hide=function(t){this.hideToast("",t)},e.prototype.hideToast=function(t,e){if(!i.i(n.isNullOrUndefined)(this.toastContainer)&&0!==this.toastContainer.childElementCount)if("string"!=typeof e||"All"!==e)i.i(n.isNullOrUndefined)(e)&&(e=this.newestOnTop?this.toastContainer.lastElementChild:this.toastContainer.firstElementChild),this.destroyToast(e,t);else for(var s=0;s<this.toastContainer.childElementCount;s++)this.destroyToast(this.toastContainer.children[s],t)},e.prototype.fetchEle=function(t,e,s){e="string"==typeof e?this.sanitizeHelper(e):e;var o,r,a,l;if(l=t.classList.contains("e-toast-title")?this.element.id+"title":t.classList.contains("e-toast-content")?this.element.id+"content":this.element.id+"template",r="content"===s?this.contentTemplate:this.toastTemplate,!i.i(n.isNullOrUndefined)(r))return t.appendChild(r.cloneNode(!0)),t;try{if("function"!=typeof e&&document.querySelectorAll(e).length>0){var c=null;"title"!==s&&(c=document.querySelector(e),t.appendChild(c),c.style.display="");var h=i.i(n.isNullOrUndefined)(c)?r:c.cloneNode(!0);"content"===s?this.contentTemplate=h:this.toastTemplate=h}else o="object"==typeof e?i.i(n.compile)(e):i.i(n.compile)(i.i(n.initializeCSPTemplate)(function(){return e}))}catch(t){o="object"==typeof e?i.i(n.compile)(e):i.i(n.compile)(i.i(n.initializeCSPTemplate)(function(){return e}))}if(!i.i(n.isNullOrUndefined)(o))if(this.isBlazorServer()){a=o({},this,s,l,!0)}else a=o({},this,s,null,!0);return i.i(n.isNullOrUndefined)(a)||!(a.length>0)||i.i(n.isNullOrUndefined)(a[0].tagName)&&1===a.length?"function"!=typeof e&&0===t.childElementCount&&(t.innerHTML=e):[].slice.call(a).forEach(function(e){i.i(n.isNullOrUndefined)(e.tagName)||(e.style.display=""),t.appendChild(e)}),t},e.prototype.clearProgress=function(t){i.i(n.isNullOrUndefined)(this.intervalId[t])||(clearInterval(this.intervalId[t]),delete this.intervalId[t]),i.i(n.isNullOrUndefined)(this.progressObj[t])||(clearInterval(this.progressObj[t].intervalId),delete this.progressObj[t])},e.prototype.removeToastContainer=function(t){t&&this.toastContainer.classList.contains("e-toast-util")&&i.i(n.detach)(this.toastContainer)},e.prototype.clearContainerPos=function(t){var e=this;if(this.isBlazorServer())return void(this.toastContainer=null);this.customPosition?(i.i(n.setStyleAttribute)(this.toastContainer,{left:"",top:""}),this.removeToastContainer(t),this.toastContainer=null,this.customPosition=!1):([c+"-top-left",c+"-top-right",c+"-bottom-left",c+"-bottom-right",c+"-bottom-center",c+"-top-center",c+"-full-width"].forEach(function(t){!i.i(n.isNullOrUndefined)(e.toastContainer)&&e.toastContainer.classList.contains(t)&&e.toastContainer.classList.remove(t)}),this.removeToastContainer(t),this.toastContainer=null),i.i(n.isNullOrUndefined)(this.contentTemplate)||this.clearContentTemplate(),i.i(n.isNullOrUndefined)(this.toastTemplate)||this.clearToastTemplate()},e.prototype.clearContentTemplate=function(){this.contentTemplate.style.display="none",document.body.appendChild(this.contentTemplate),this.contentTemplate=null},e.prototype.clearToastTemplate=function(){this.toastTemplate.style.display="none",document.body.appendChild(this.toastTemplate),this.toastTemplate=null},e.prototype.isBlazorServer=function(){return i.i(n.isBlazor)()&&this.isServerRendered},e.prototype.destroyToast=function(t,e){for(var s,o=this,r=0;r<this.toastCollection.length;r++)this.toastCollection[r].element[0]===t&&(s=this.toastCollection[r],this.toastCollection.splice(r,1));var a={options:this,cancel:!1,type:e,element:t,toastContainer:this.toastContainer},l=this.animation.hide,c={duration:l.duration,name:"None"===l.effect&&"Enable"===n.animationMode?"FadeOut":l.effect,timingFunction:l.easing},h=parseInt(t.id.split("toast_")[1],10),p=this.isBlazorServer()?{options:s,toastContainer:this.toastContainer}:{options:s,toastContainer:this.toastContainer,toastObj:this};this.trigger("beforeClose",a,function(e){e.cancel||(i.i(n.isNullOrUndefined)(o.progressObj[h])||i.i(n.isNullOrUndefined)(t.querySelector("."+d))||(o.progressObj[h].progressEle.style.width="0%"),c.end=function(){o.clearProgress(h),o.isBlazorServer()&&!i.i(n.isNullOrUndefined)(s)||i.i(n.detach)(t),o.trigger("close",p),0===o.toastContainer.childElementCount&&o.clearContainerPos(!0),l=null,c=null},new n.Animation(c).animate(t))})},e.prototype.personalizeToast=function(){this.setIcon(),this.setTitle(),this.setContent(),this.actionButtons()},e.prototype.setAria=function(){i.i(n.attributes)(this.toastEle,{role:"alert"})},e.prototype.setPositioning=function(t){this.isBlazorServer()||(isNaN(parseFloat(t.X))&&isNaN(parseFloat(t.Y))?this.toastContainer.classList.add(c+"-"+t.Y.toString().toLowerCase()+"-"+t.X.toString().toLowerCase()):(this.customPosition=!0,i.i(n.setStyleAttribute)(this.toastContainer,{left:i.i(n.formatUnit)(t.X),top:i.i(n.formatUnit)(t.Y)})))},e.prototype.setCloseButton=function(){if(this.showCloseButton){var t={close:"Close"};this.l10n=new n.L10n("toast",t,this.locale),this.l10n.setLocale(this.locale);var e=this.l10n.getConstant("close"),i=this.createElement("div",{className:u+" e-icons ",attrs:{tabindex:"0","aria-label":e,role:"button"}});this.toastEle.classList.add("e-toast-header-close-icon"),this.toastEle.appendChild(i)}},e.prototype.setProgress=function(){if(this.timeOut>0){var t=parseInt(this.toastEle.id.split("toast_")[1],10);this.intervalId[t]=window.setTimeout(this.destroyToast.bind(this,this.toastEle),this.timeOut),this.progressObj[t]={hideEta:null,intervalId:null,maxHideTime:null,element:null,timeOutId:null,progressEle:null},this.progressObj[t].maxHideTime=parseFloat(this.timeOut+""),this.progressObj[t].hideEta=(new Date).getTime()+this.progressObj[t].maxHideTime,this.progressObj[t].element=this.toastEle,this.extendedTimeout>0&&(n.EventHandler.add(this.toastEle,"mouseover",this.toastHoverAction.bind(this,t)),n.EventHandler.add(this.toastEle,"mouseleave",this.delayedToastProgress.bind(this,t)),this.progressObj[t].timeOutId=this.intervalId[t]),this.showProgressBar&&(this.progressBarEle=this.createElement("div",{className:d}),this.toastEle.insertBefore(this.progressBarEle,this.toastEle.children[0]),this.progressObj[t].intervalId=setInterval(this.updateProgressBar.bind(this,this.progressObj[t]),10),this.progressObj[t].progressEle=this.progressBarEle)}},e.prototype.toastHoverAction=function(t){clearTimeout(this.progressObj[t].timeOutId),clearInterval(this.progressObj[t].intervalId),this.progressObj[t].hideEta=0;var e=this.progressObj[t].element;i.i(n.isNullOrUndefined)(e.querySelector("."+d))||(this.progressObj[t].progressEle.style.width="0%")},e.prototype.delayedToastProgress=function(t){var e=this.progressObj[t],s=e.element;e.timeOutId=window.setTimeout(this.destroyToast.bind(this,s),this.extendedTimeout),e.maxHideTime=parseFloat(this.extendedTimeout+""),e.hideEta=(new Date).getTime()+e.maxHideTime,i.i(n.isNullOrUndefined)(s.querySelector("."+d))||(e.intervalId=setInterval(this.updateProgressBar.bind(this,e),10))},e.prototype.updateProgressBar=function(t){var e=(t.hideEta-(new Date).getTime())/t.maxHideTime*100;e="Ltr"===this.progressDirection?100-e:e,t.progressEle.style.width=e+"%"},e.prototype.setIcon=function(){if(!i.i(n.isNullOrUndefined)(this.icon)&&0!==this.icon.length){var t=this.createElement("div",{className:"e-toast-icon e-icons "+this.icon});this.toastEle.classList.add("e-toast-header-icon"),this.toastEle.appendChild(t)}},e.prototype.setTitle=function(){if(!i.i(n.isNullOrUndefined)(this.title)){var t=this.createElement("div",{className:"e-toast-title"});t=this.fetchEle(t,this.title,"title");var e=this.createElement("div",{className:p});e.appendChild(t),this.toastEle.appendChild(e)}},e.prototype.setContent=function(){var t=this.createElement("div",{className:"e-toast-content"}),e=this.element;if(i.i(n.isNullOrUndefined)(this.content)||""===this.content){var s=""!==this.element.innerHTML.replace(/\s/g,"");if((e.children.length>0||s)&&(!e.firstElementChild||!e.firstElementChild.classList.contains(c))){this.innerEle=document.createDocumentFragment();for(var o=this.createElement("div");0!==e.childNodes.length;)this.innerEle.appendChild(this.element.childNodes[0]);t.appendChild(this.innerEle),[].slice.call(t.children).forEach(function(t){o.appendChild(t.cloneNode(!0))}),this.content=o,this.appendMessageContainer(t)}}else"object"!=typeof this.content||i.i(n.isNullOrUndefined)(this.content.tagName)?(t=this.fetchEle(t,this.content,"content"),this.appendMessageContainer(t)):(t.appendChild(this.content),this.content=this.content.cloneNode(!0),this.appendMessageContainer(t))},e.prototype.appendMessageContainer=function(t){if(this.toastEle.querySelectorAll("."+p).length>0)this.toastEle.querySelector("."+p).appendChild(t);else{var e=this.createElement("div",{className:p});e.appendChild(t),this.toastEle.appendChild(e)}},e.prototype.actionButtons=function(){var t=this,e=this.createElement("div",{className:"e-toast-actions"});[].slice.call(this.buttons).forEach(function(s){if(!i.i(n.isNullOrUndefined)(s.model)){var r=t.createElement("button");r.setAttribute("type","button"),(i.i(n.isNullOrUndefined)(s.model.cssClass)||0===s.model.cssClass.length)&&(s.model.cssClass="e-primary "+t.cssClass),r.classList.add("e-small"),new o.Button(s.model,r),i.i(n.isNullOrUndefined)(s.click)||"function"!=typeof s.click||n.EventHandler.add(r,"click",s.click),e.appendChild(r)}}),e.childElementCount>0&&this.appendMessageContainer(e)},e.prototype.appendToTarget=function(t){var e=this,s=this.isBlazorServer()?{options:t,element:this.toastEle,cancel:!1}:{options:t,toastObj:this,element:this.toastEle,cancel:!1};this.trigger("beforeOpen",s,function(s){if(s.cancel){if(e.isBlazorServer()){var o=parseInt(e.toastEle.id.split("toast_")[1],10);e.clearProgress(o),i.i(n.detach)(e.toastEle),0===e.toastContainer.childElementCount&&e.clearContainerPos()}}else e.isBlazorServer()||(e.toastEle.style.display="none"),e.newestOnTop&&0!==e.toastContainer.childElementCount?e.toastContainer.insertBefore(e.toastEle,e.toastContainer.children[0]):e.isBlazorServer()||e.toastContainer.appendChild(e.toastEle),i.i(n.removeClass)([e.toastEle],"e-blazor-toast-hidden"),n.EventHandler.add(e.toastEle,"click",e.clickHandler,e),n.EventHandler.add(e.toastEle,"keydown",e.keyDownHandler,e),e.toastContainer.style.zIndex=i.i(r.getZindexPartial)(e.toastContainer)+"",e.displayToast(e.toastEle,t)})},e.prototype.clickHandler=function(t){var e=this;this.isBlazorServer()||t.stopPropagation();var s=t.target,o=i.i(n.closest)(s,"."+c),r=this.isBlazorServer()?{element:o,cancel:!1,clickToClose:!1,originalEvent:t}:{element:o,cancel:!1,clickToClose:!1,originalEvent:t,toastObj:this},a=s.classList.contains(u);this.trigger("click",r,function(t){(a&&!t.cancel||t.clickToClose)&&e.destroyToast(o,"click")})},e.prototype.keyDownHandler=function(t){if(t.target.classList.contains(u)&&(13===t.keyCode||32===t.keyCode)){var e=t.target,s=i.i(n.closest)(e,"."+c);this.destroyToast(s,"key")}},e.prototype.displayToast=function(t,e){var i=this,s=this.animation.show,o={duration:s.duration,name:"None"===s.effect&&"Enable"===n.animationMode?"FadeIn":s.effect,timingFunction:s.easing},r=this.isBlazorServer()?{options:e,element:this.toastEle}:{options:e,toastObj:this,element:this.toastEle};o.begin=function(){t.style.display=""},o.end=function(){i.trigger("open",r)},new n.Animation(o).animate(t)},e.prototype.getContainer=function(){return this.element.classList.add(h),this.element},e.prototype.onPropertyChanged=function(t,e){for(var i=this.element,s=0,n=Object.keys(t);s<n.length;s++){switch(n[s]){case"enableRtl":t.enableRtl?i.classList.add("e-rtl"):i.classList.remove("e-rtl")}}},l([i.i(n.Property)("300px")],e.prototype,"width",void 0),l([i.i(n.Property)("auto")],e.prototype,"height",void 0),l([i.i(n.Property)(null)],e.prototype,"title",void 0),l([i.i(n.Property)(null)],e.prototype,"content",void 0),l([i.i(n.Property)(!0)],e.prototype,"enableHtmlSanitizer",void 0),l([i.i(n.Property)(null)],e.prototype,"icon",void 0),l([i.i(n.Property)(null)],e.prototype,"cssClass",void 0),l([i.i(n.Property)(null)],e.prototype,"template",void 0),l([i.i(n.Property)(!0)],e.prototype,"newestOnTop",void 0),l([i.i(n.Property)(!1)],e.prototype,"showCloseButton",void 0),l([i.i(n.Property)(!1)],e.prototype,"showProgressBar",void 0),l([i.i(n.Property)(5e3)],e.prototype,"timeOut",void 0),l([i.i(n.Property)("Rtl")],e.prototype,"progressDirection",void 0),l([i.i(n.Property)(1e3)],e.prototype,"extendedTimeout",void 0),l([i.i(n.Complex)({},v)],e.prototype,"animation",void 0),l([i.i(n.Complex)({},f)],e.prototype,"position",void 0),l([i.i(n.Collection)([{}],m)],e.prototype,"buttons",void 0),l([i.i(n.Property)(null)],e.prototype,"target",void 0),l([i.i(n.Event)()],e.prototype,"created",void 0),l([i.i(n.Event)()],e.prototype,"beforeSanitizeHtml",void 0),l([i.i(n.Event)()],e.prototype,"destroyed",void 0),l([i.i(n.Event)()],e.prototype,"open",void 0),l([i.i(n.Event)()],e.prototype,"beforeOpen",void 0),l([i.i(n.Event)()],e.prototype,"beforeClose",void 0),l([i.i(n.Event)()],e.prototype,"close",void 0),l([i.i(n.Event)()],e.prototype,"click",void 0),e=l([n.NotifyPropertyChanges],e)}(n.Component);!function(t){function e(t,e,s){var o;document.querySelector("."+h)?o=document.querySelector("."+h):(o=i.i(n.createElement)("div",{className:c+" "+h+" e-toast-util"}),document.body.appendChild(o));var r;if("string"==typeof t){var a=void 0,l=void 0;if(i.i(n.isNullOrUndefined)(e))a="",l="";else switch(e){case"Warning":a="e-toast-warning",l="e-toast-warning-icon";break;case"Success":a="e-toast-success",l="e-toast-success-icon";break;case"Error":a="e-toast-danger",l="e-toast-error-icon";break;case"Information":a="e-toast-info",l="e-toast-info-icon"}r={content:t,cssClass:a,icon:l,timeOut:i.i(n.isNullOrUndefined)(s)?5e3:s}}else r=t;var p=new C(r);return p.appendTo(o),p.show(),p}t.show=e}(s||(s={}))},function(t,i){t.exports=e},function(t,e){t.exports=i}])});
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("SyncfusionBase"),require("SyncfusionButtons"),require("SyncfusionPopups")):"function"==typeof define&&define.amd?define(["SyncfusionBase","SyncfusionButtons","SyncfusionPopups"],e):"object"==typeof exports?exports.SyncfusionNotifications=e(require("SyncfusionBase"),require("SyncfusionButtons"),require("SyncfusionPopups")):t.SyncfusionNotifications=e(t.SyncfusionBase,t.SyncfusionButtons,t.SyncfusionPopups)}(this,function(t,e,i){return function(t){function e(s){if(i[s])return i[s].exports;var n=i[s]={i:s,l:!1,exports:{}};return t[s].call(n.exports,n,n.exports,e),n.l=!0,n.exports}var i={};return e.m=t,e.c=i,e.i=function(t){return t},e.d=function(t,i,s){e.o(t,i)||Object.defineProperty(t,i,{configurable:!1,enumerable:!0,get:s})},e.n=function(t){var i=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(i,"a",i),i},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="",e(e.s=4)}([function(e,i){e.exports=t},function(t,e,i){"use strict";var s=i(5);i.d(e,"a",function(){return s.a}),i.d(e,"b",function(){return s.b}),i.d(e,"c",function(){return s.c})},function(t,e,i){"use strict";var s=i(6);i.d(e,"a",function(){return s.a}),i.d(e,"b",function(){return s.b}),i.d(e,"c",function(){return s.c})},function(t,e,i){"use strict";var s=i(7);i.d(e,"a",function(){return s.a}),i.d(e,"b",function(){return s.b}),i.d(e,"c",function(){return s.c}),i.d(e,"d",function(){return s.d}),i.d(e,"e",function(){return s.e}),i.d(e,"f",function(){return s.f})},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var s=i(3);i.d(e,"ToastPosition",function(){return s.a}),i.d(e,"ButtonModelProps",function(){return s.b}),i.d(e,"ToastAnimations",function(){return s.c}),i.d(e,"ToastAnimationSettings",function(){return s.d}),i.d(e,"Toast",function(){return s.e}),i.d(e,"ToastUtility",function(){return s.f});var n=i(1);i.d(e,"Severity",function(){return n.a}),i.d(e,"Variant",function(){return n.b}),i.d(e,"Message",function(){return n.c});var o=i(2);i.d(e,"SkeletonType",function(){return o.a}),i.d(e,"ShimmerEffect",function(){return o.b}),i.d(e,"Skeleton",function(){return o.c})},function(t,e,i){"use strict";i.d(e,"a",function(){return s}),i.d(e,"b",function(){return a}),i.d(e,"c",function(){return h});var s,n=i(0),o=(i.n(n),this&&this.__extends||function(){var t=function(e,i){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(e,i)};return function(e,i){function s(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(s.prototype=i.prototype,new s)}}()),r=this&&this.__decorate||function(t,e,i,s){var n,o=arguments.length,r=o<3?e:null===s?s=Object.getOwnPropertyDescriptor(e,i):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(t,e,i,s);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(r=(o<3?n(r):o>3?n(e,i,r):n(e,i))||r);return o>3&&r&&Object.defineProperty(e,i,r),r};!function(t){t.Normal="Normal",t.Success="Success",t.Info="Info",t.Warning="Warning",t.Error="Error"}(s||(s={}));var a;!function(t){t.Text="Text",t.Outlined="Outlined",t.Filled="Filled"}(a||(a={}));var l="e-rtl",c="e-hidden",h=function(t){function e(e,i){var s=t.call(this,e,i)||this;return s.initialRender=!0,s}return o(e,t),e.prototype.getModuleName=function(){return"message"},e.prototype.getPersistData=function(){return this.addOnPersist([])},e.prototype.preRender=function(){var t={close:"Close"};this.l10n=new n.L10n("message",t,this.locale)},e.prototype.render=function(){this.innerContent=this.element.innerHTML,this.element.innerHTML="",this.msgElement=this.createElement("div",{className:"e-msg-content-wrap"}),this.initialize(),this.wireEvents(),this.renderComplete(),this.renderReactTemplates(),this.initialRender=!1},e.prototype.initialize=function(){this.element.setAttribute("role","alert"),this.setCssClass(),this.setIcon(),this.setContent(),this.setCloseIcon(),this.setSeverity(),this.setVariant(),this.setVisible(),this.enableRtl&&this.element.classList.add(l)},e.prototype.setIcon=function(){this.showIcon&&(this.iconElement=this.createElement("span",{className:"e-msg-icon"}),this.element.classList.contains("e-content-center")?this.msgElement.appendChild(this.iconElement):this.element.appendChild(this.iconElement))},e.prototype.setCloseIcon=function(){this.showCloseIcon&&(this.closeIcon=this.createElement("button",{attrs:{type:"button",class:"e-msg-close-icon"}}),this.element.appendChild(this.closeIcon),this.setTitle())},e.prototype.setTitle=function(){this.l10n.setLocale(this.locale);var t=this.l10n.getConstant("close");this.closeIcon.setAttribute("title",t),this.closeIcon.setAttribute("aria-label",t)},e.prototype.setContent=function(){this.txtElement=this.createElement("div",{className:"e-msg-content"}),this.element.classList.contains("e-content-center")?(this.msgElement.appendChild(this.txtElement),this.element.appendChild(this.msgElement)):this.element.appendChild(this.txtElement),this.setTemplate()},e.prototype.setTemplate=function(){var t;if(i.i(n.isNullOrUndefined)(this.content)||""===this.content)this.txtElement.innerHTML=this.innerContent;else if(!i.i(n.isNullOrUndefined)(this.content)&&""!==this.content&&("string"==typeof this.content||"string"!=typeof this.content))if(this.isVue||"string"!=typeof this.content){if(t=i.i(n.compile)(this.content),!i.i(n.isNullOrUndefined)(t)){var e=t({},this,"content",this.element.id+"content",!0);e&&(e=Array.prototype.slice.call(e),i.i(n.append)(e,this.txtElement),this.renderReactTemplates())}}else this.txtElement.innerHTML=this.content},e.prototype.setSeverity=function(){var t=["e-success","e-warning","e-info","e-error"];i.i(n.removeClass)([this.element],t),"Success"===this.severity?i.i(n.addClass)([this.element],"e-success"):"Warning"===this.severity?i.i(n.addClass)([this.element],"e-warning"):"Error"===this.severity?i.i(n.addClass)([this.element],"e-error"):"Info"===this.severity&&i.i(n.addClass)([this.element],"e-info")},e.prototype.setVariant=function(){var t=["e-filled","e-outlined"];i.i(n.removeClass)([this.element],t),"Outlined"===this.variant?i.i(n.addClass)([this.element],"e-outlined"):"Filled"===this.variant&&i.i(n.addClass)([this.element],"e-filled")},e.prototype.setCssClass=function(t){t&&i.i(n.removeClass)([this.element],t.split(" ")),this.cssClass&&i.i(n.addClass)([this.element],this.cssClass.split(" "))},e.prototype.setVisible=function(){this.visible?i.i(n.removeClass)([this.element],c):(i.i(n.addClass)([this.element],c),this.initialRender||this.trigger("closed",{event:event,isInteracted:!1,element:this.element}))},e.prototype.clickHandler=function(t){this.closeMessage(t)},e.prototype.keyboardHandler=function(t){32!==t.keyCode&&13!==t.keyCode||this.closeMessage(t)},e.prototype.closeMessage=function(t){i.i(n.addClass)([this.element],c),this.setProperties({visible:!1},!0);var e={event:t,isInteracted:!0,element:this.element};this.trigger("closed",e)},e.prototype.wireEvents=function(){this.showCloseIcon&&(n.EventHandler.add(this.closeIcon,"click",this.clickHandler,this),n.EventHandler.add(this.closeIcon,"keydown",this.keyboardHandler,this))},e.prototype.unWireEvents=function(){this.showCloseIcon&&(n.EventHandler.remove(this.closeIcon,"click",this.clickHandler),n.EventHandler.remove(this.closeIcon,"keydown",this.keyboardHandler))},e.prototype.onPropertyChanged=function(t,e){for(var s=0,o=Object.keys(t);s<o.length;s++){switch(o[s]){case"cssClass":this.setCssClass(e.cssClass);break;case"content":this.txtElement.innerHTML="",this.setTemplate();break;case"enableRtl":this.enableRtl?this.element.classList.add(l):this.element.classList.remove(l);break;case"locale":this.showCloseIcon&&this.setTitle();break;case"showIcon":!this.showIcon&&this.element.getElementsByClassName("e-msg-icon").length>0&&i.i(n.detach)(this.iconElement),this.showIcon&&(this.iconElement=this.createElement("span",{className:"e-msg-icon"}),this.element.insertBefore(this.iconElement,this.txtElement));break;case"showCloseIcon":this.showCloseIcon||i.i(n.isNullOrUndefined)(this.closeIcon)?(this.setCloseIcon(),this.wireEvents()):(this.unWireEvents(),i.i(n.detach)(this.closeIcon));break;case"severity":this.setSeverity();break;case"variant":this.setVariant();break;case"visible":this.setVisible()}}},e.prototype.destroy=function(){var e=i.i(n.isNullOrUndefined)(this.cssClass)?[""]:this.cssClass.split(" "),s=["e-success","e-warning","e-info","e-error",l,c,"e-outlined","e-filled"],o=1===e.length&&""===e[0]?s:s.concat(e);i.i(n.removeClass)([this.element],o),this.element.removeAttribute("role"),this.unWireEvents(),i.i(n.isNullOrUndefined)(this.iconElement)||i.i(n.detach)(this.iconElement),i.i(n.detach)(this.txtElement),i.i(n.isNullOrUndefined)(this.closeIcon)||i.i(n.detach)(this.closeIcon),t.prototype.destroy.call(this)},r([i.i(n.Property)(null)],e.prototype,"content",void 0),r([i.i(n.Property)("")],e.prototype,"cssClass",void 0),r([i.i(n.Property)(!0)],e.prototype,"showIcon",void 0),r([i.i(n.Property)(!1)],e.prototype,"showCloseIcon",void 0),r([i.i(n.Property)("Normal")],e.prototype,"severity",void 0),r([i.i(n.Property)("Text")],e.prototype,"variant",void 0),r([i.i(n.Property)(!0)],e.prototype,"visible",void 0),r([i.i(n.Event)()],e.prototype,"created",void 0),r([i.i(n.Event)()],e.prototype,"destroyed",void 0),r([i.i(n.Event)()],e.prototype,"closed",void 0),e=r([n.NotifyPropertyChanges],e)}(n.Component)},function(t,e,i){"use strict";i.d(e,"a",function(){return s}),i.d(e,"b",function(){return l}),i.d(e,"c",function(){return c});var s,n=i(0),o=(i.n(n),this&&this.__extends||function(){var t=function(e,i){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(e,i)};return function(e,i){function s(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(s.prototype=i.prototype,new s)}}()),r=this&&this.__decorate||function(t,e,i,s){var n,o=arguments.length,r=o<3?e:null===s?s=Object.getOwnPropertyDescriptor(e,i):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(t,e,i,s);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(r=(o<3?n(r):o>3?n(e,i,r):n(e,i))||r);return o>3&&r&&Object.defineProperty(e,i,r),r},a={TEXTSHAPE:"e-skeleton-text",CIRCLESHAPE:"e-skeleton-circle",SQUARESHAPE:"e-skeleton-square",RECTANGLESHAPE:"e-skeleton-rectangle",WAVEEFFECT:"e-shimmer-wave",PULSEEFFECT:"e-shimmer-pulse",FADEEFFECT:"e-shimmer-fade",VISIBLENONE:"e-visible-none"};!function(t){t.Text="Text",t.Circle="Circle",t.Square="Square",t.Rectangle="Rectangle"}(s||(s={}));var l;!function(t){t.Wave="Wave",t.Fade="Fade",t.Pulse="Pulse",t.None="None"}(l||(l={}));var c=function(t){function e(e,i){return t.call(this,e,i)||this}return o(e,t),e.prototype.getModuleName=function(){return"skeleton"},e.prototype.getPersistData=function(){return this.addOnPersist([])},e.prototype.preRender=function(){this.element.id||(this.element.id=i.i(n.getUniqueID)("e-"+this.getModuleName())),this.updateCssClass(),i.i(n.attributes)(this.element,{role:"alert","aria-busy":"true","aria-live":"polite","aria-label":this.label})},e.prototype.render=function(){this.initialize()},e.prototype.onPropertyChanged=function(t,e){for(var s=0,o=Object.keys(t);s<o.length;s++){switch(o[s]){case"width":case"height":this.updateDimension();break;case"shape":this.updateShape();break;case"shimmerEffect":this.updateEffect();break;case"visible":this.updateVisibility();break;case"label":this.element.setAttribute("aria-label",this.label);break;case"cssClass":e.cssClass&&i.i(n.removeClass)([this.element],e.cssClass.split(" ")),this.updateCssClass()}}},e.prototype.destroy=function(){t.prototype.destroy.call(this);var e=["role","aria-live","aria-busy","aria-label"],s=[];this.cssClass&&(s=s.concat(this.cssClass.split(" ")));for(var o=0;o<e.length;o++)this.element.removeAttribute(e[parseInt(o.toString(),10)]);s=s.concat(this.element.classList.value.match(/(e-skeleton-[^\s]+)/g)),s=s.concat(this.element.classList.value.match(/(e-shimmer-[^\s]+)/g)),i.i(n.removeClass)([this.element],s)},e.prototype.initialize=function(){this.updateShape(),this.updateEffect(),this.updateVisibility()},e.prototype.updateShape=function(){var t=a[this.shape.toUpperCase()+"SHAPE"],e=this.element.classList.value.match(/(e-skeleton-[^\s]+)/g);this.updateDimension(),e&&i.i(n.removeClass)([this.element],e),i.i(n.addClass)([this.element],[t])},e.prototype.updateDimension=function(){var t=!this.width&&["Text","Rectangle"].indexOf(this.shape)>-1?"100%":i.i(n.formatUnit)(this.width),e=["Circle","Square"].indexOf(this.shape)>-1?t:i.i(n.formatUnit)(this.height);this.element.style.width=t,this.element.style.height=e},e.prototype.updateEffect=function(){var t=this.element.classList.value.match(/(e-shimmer-[^\s]+)/g);t&&i.i(n.removeClass)([this.element],t),i.i(n.addClass)([this.element],[a[this.shimmerEffect.toUpperCase()+"EFFECT"]])},e.prototype.updateVisibility=function(){this.element.classList[this.visible?"remove":"add"](a.VISIBLENONE)},e.prototype.updateCssClass=function(){this.cssClass&&i.i(n.addClass)([this.element],this.cssClass.split(" "))},r([i.i(n.Property)("")],e.prototype,"width",void 0),r([i.i(n.Property)("")],e.prototype,"height",void 0),r([i.i(n.Property)(!0)],e.prototype,"visible",void 0),r([i.i(n.Property)("Text")],e.prototype,"shape",void 0),r([i.i(n.Property)("Wave")],e.prototype,"shimmerEffect",void 0),r([i.i(n.Property)("Loading...")],e.prototype,"label",void 0),r([i.i(n.Property)("")],e.prototype,"cssClass",void 0),e=r([n.NotifyPropertyChanges],e)}(n.Component)},function(t,e,i){"use strict";i.d(e,"a",function(){return f}),i.d(e,"b",function(){return m}),i.d(e,"c",function(){return y}),i.d(e,"d",function(){return v}),i.d(e,"e",function(){return C}),i.d(e,"f",function(){return s});var s,n=i(0),o=(i.n(n),i(8)),r=(i.n(o),i(9)),a=(i.n(r),this&&this.__extends||function(){var t=function(e,i){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(e,i)};return function(e,i){function s(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(s.prototype=i.prototype,new s)}}()),l=this&&this.__decorate||function(t,e,i,s){var n,o=arguments.length,r=o<3?e:null===s?s=Object.getOwnPropertyDescriptor(e,i):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(t,e,i,s);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(r=(o<3?n(r):o>3?n(e,i,r):n(e,i))||r);return o>3&&r&&Object.defineProperty(e,i,r),r},c="e-toast",h="e-toast-container",p="e-toast-message",d="e-toast-progress",u="e-toast-close-icon",f=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return a(e,t),l([i.i(n.Property)("Left")],e.prototype,"X",void 0),l([i.i(n.Property)("Top")],e.prototype,"Y",void 0),e}(n.ChildProperty),m=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return a(e,t),l([i.i(n.Property)(null)],e.prototype,"model",void 0),l([i.i(n.Property)(null)],e.prototype,"click",void 0),e}(n.ChildProperty),y=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return a(e,t),l([i.i(n.Property)("FadeIn")],e.prototype,"effect",void 0),l([i.i(n.Property)(600)],e.prototype,"duration",void 0),l([i.i(n.Property)("ease")],e.prototype,"easing",void 0),e}(n.ChildProperty),v=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return a(e,t),l([i.i(n.Complex)({effect:"FadeIn",duration:600,easing:"ease"},y)],e.prototype,"show",void 0),l([i.i(n.Complex)({effect:"FadeOut",duration:600,easing:"ease"},y)],e.prototype,"hide",void 0),e}(n.ChildProperty),C=function(t){function e(e,i){var s=t.call(this,e,i)||this;return s.toastCollection=[],s.needsID=!0,s}return a(e,t),e.prototype.getModuleName=function(){return"toast"},e.prototype.getPersistData=function(){return this.addOnPersist([])},e.prototype.destroy=function(){this.hide("All"),this.element.classList.remove(h),i.i(n.setStyleAttribute)(this.element,{position:"","z-index":""}),i.i(n.isNullOrUndefined)(this.refElement)||i.i(n.isNullOrUndefined)(this.refElement.parentElement)||(this.refElement.parentElement.insertBefore(this.element,this.refElement),i.i(n.detach)(this.refElement),this.refElement=void 0),this.isBlazorServer()||t.prototype.destroy.call(this)},e.prototype.preRender=function(){this.isDevice=n.Browser.isDevice,"300px"===this.width&&(this.width=this.isDevice&&screen.width<768?"100%":"300px"),i.i(n.isNullOrUndefined)(this.target)&&(this.target=document.body),this.enableRtl&&!this.isBlazorServer()&&this.element.classList.add("e-rtl")},e.prototype.render=function(){this.progressObj=[],this.intervalId=[],this.contentTemplate=null,this.toastTemplate=null,this.renderComplete(),this.initRenderClass=this.element.className},e.prototype.show=function(t){var e;if(i.i(n.isNullOrUndefined)(t)||(this.templateChanges(t),e=JSON.parse(JSON.stringify(t)),i.i(n.extend)(this,this,t)),i.i(n.isNullOrUndefined)(this.toastContainer)){this.toastContainer=this.getContainer();var s="string"==typeof this.target?document.querySelector(this.target):"object"==typeof this.target?this.target:document.body;if(i.i(n.isNullOrUndefined)(s))return;"BODY"===s.tagName?this.toastContainer.style.position="fixed":(this.toastContainer.style.position="absolute",s.style.position="relative"),this.setPositioning(this.position),s.appendChild(this.toastContainer)}if(this.isBlazorServer()&&this.element.classList.contains("e-control"))return void this.isToastModel(t);this.toastEle=this.createElement("div",{className:c,id:i.i(n.getUniqueID)("toast")}),this.setWidthHeight(),this.setCSSClass(this.cssClass),i.i(n.isNullOrUndefined)(this.template)||""===this.template?this.personalizeToast():this.templateRendering(),this.setProgress(),this.setCloseButton(),this.setAria(),this.appendToTarget(t),this.isDevice&&screen.width<768&&new n.Touch(this.toastEle,{swipe:this.swipeHandler.bind(this)}),i.i(n.isNullOrUndefined)(e)||(i.i(n.extend)(e,{element:[this.toastEle]},!0),this.toastCollection.push(e)),this.isReact&&this.renderReactTemplates()},e.prototype.showToast=function(t,e){this.toastEle=this.element.querySelector("#"+t),this.show(e)},e.prototype.isToastModel=function(t){this.toastContainer=this.element,this.setPositioning(this.position);var e=this;i.i(n.isNullOrUndefined)(e.element.lastElementChild)||this.setProgress(),this.setAria(),this.appendToTarget(t)},e.prototype.swipeHandler=function(t){var e=i.i(n.closest)(t.originalEvent.target,"."+c+":not(."+h+")"),s=this.animation.hide.effect;i.i(n.isNullOrUndefined)(e)||("Right"===t.swipeDirection?(this.animation.hide.effect="SlideRightOut",this.hideToast("swipe",e)):"Left"===t.swipeDirection&&(this.animation.hide.effect="SlideLeftOut",this.hideToast("swipe",e)),this.animation.hide.effect=s)},e.prototype.templateChanges=function(t){i.i(n.isUndefined)(t.content)||i.i(n.isNullOrUndefined)(this.contentTemplate)||this.content===t.content||this.clearContentTemplate(),i.i(n.isUndefined)(t.template)||i.i(n.isNullOrUndefined)(this.toastTemplate)||this.template===t.template||this.clearToastTemplate()},e.prototype.setCSSClass=function(t){if(t){var e=-1!==t.indexOf(",")?",":" ";i.i(n.classList)(this.toastEle,t.split(e),[]),this.toastContainer&&i.i(n.classList)(this.toastContainer,t.split(e),[])}},e.prototype.setWidthHeight=function(){"300px"===this.width?this.toastEle.style.width=i.i(n.formatUnit)(this.width):"100%"===this.width?this.toastContainer.classList.add("e-toast-full-width"):(this.toastEle.style.width=i.i(n.formatUnit)(this.width),this.toastContainer.classList.remove("e-toast-full-width")),this.toastEle.style.height=i.i(n.formatUnit)(this.height)},e.prototype.templateRendering=function(){this.fetchEle(this.toastEle,this.template,"template")},e.prototype.sanitizeHelper=function(t){if(this.enableHtmlSanitizer){var e=n.SanitizeHtmlHelper.beforeSanitize(),s={cancel:!1,helper:null};i.i(n.extend)(e,e,s),this.trigger("beforeSanitizeHtml",e),e.cancel&&!i.i(n.isNullOrUndefined)(e.helper)?t=e.helper(t):e.cancel||(t=n.SanitizeHtmlHelper.serializeValue(e,t))}return t},e.prototype.hide=function(t){this.hideToast("",t)},e.prototype.hideToast=function(t,e){if(!i.i(n.isNullOrUndefined)(this.toastContainer)&&0!==this.toastContainer.childElementCount)if("string"!=typeof e||"All"!==e)i.i(n.isNullOrUndefined)(e)&&(e=this.newestOnTop?this.toastContainer.lastElementChild:this.toastContainer.firstElementChild),this.destroyToast(e,t);else for(var s=0;s<this.toastContainer.childElementCount;s++)this.destroyToast(this.toastContainer.children[s],t)},e.prototype.fetchEle=function(t,e,s){e="string"==typeof e?this.sanitizeHelper(e):e;var o,r,a,l;if(l=t.classList.contains("e-toast-title")?this.element.id+"title":t.classList.contains("e-toast-content")?this.element.id+"content":this.element.id+"template",r="content"===s?this.contentTemplate:this.toastTemplate,!i.i(n.isNullOrUndefined)(r))return t.appendChild(r.cloneNode(!0)),t;try{if("function"!=typeof e&&document.querySelectorAll(e).length>0){var c=null;"title"!==s&&(c=document.querySelector(e),t.appendChild(c),c.style.display="");var h=i.i(n.isNullOrUndefined)(c)?r:c.cloneNode(!0);"content"===s?this.contentTemplate=h:this.toastTemplate=h}else o=i.i(n.compile)(e)}catch(t){o="object"==typeof e?i.i(n.compile)(e):i.i(n.compile)(i.i(n.initializeCSPTemplate)(function(){return e}))}if(!i.i(n.isNullOrUndefined)(o))if(this.isBlazorServer()){a=o({},this,s,l,!0)}else a=o({},this,s,null,!0);return i.i(n.isNullOrUndefined)(a)||!(a.length>0)||i.i(n.isNullOrUndefined)(a[0].tagName)&&1===a.length?"function"!=typeof e&&0===t.childElementCount&&(t.innerHTML=e):[].slice.call(a).forEach(function(e){i.i(n.isNullOrUndefined)(e.tagName)||(e.style.display=""),t.appendChild(e)}),t},e.prototype.clearProgress=function(t){i.i(n.isNullOrUndefined)(this.intervalId[t])||(clearInterval(this.intervalId[t]),delete this.intervalId[t]),i.i(n.isNullOrUndefined)(this.progressObj[t])||(clearInterval(this.progressObj[t].intervalId),delete this.progressObj[t])},e.prototype.removeToastContainer=function(t){t&&this.toastContainer.classList.contains("e-toast-util")&&i.i(n.detach)(this.toastContainer)},e.prototype.clearContainerPos=function(t){var e=this;if(this.isBlazorServer())return void(this.toastContainer=null);this.customPosition?(i.i(n.setStyleAttribute)(this.toastContainer,{left:"",top:""}),this.removeToastContainer(t),this.toastContainer=null,this.customPosition=!1):([c+"-top-left",c+"-top-right",c+"-bottom-left",c+"-bottom-right",c+"-bottom-center",c+"-top-center",c+"-full-width"].forEach(function(t){!i.i(n.isNullOrUndefined)(e.toastContainer)&&e.toastContainer.classList.contains(t)&&e.toastContainer.classList.remove(t)}),this.removeToastContainer(t),this.toastContainer=null),i.i(n.isNullOrUndefined)(this.contentTemplate)||this.clearContentTemplate(),i.i(n.isNullOrUndefined)(this.toastTemplate)||this.clearToastTemplate()},e.prototype.clearContentTemplate=function(){this.contentTemplate.style.display="none",document.body.appendChild(this.contentTemplate),this.contentTemplate=null},e.prototype.clearToastTemplate=function(){this.toastTemplate.style.display="none",document.body.appendChild(this.toastTemplate),this.toastTemplate=null},e.prototype.isBlazorServer=function(){return i.i(n.isBlazor)()&&this.isServerRendered},e.prototype.destroyToast=function(t,e){for(var s,o=this,r=0;r<this.toastCollection.length;r++)this.toastCollection[r].element[0]===t&&(s=this.toastCollection[r],this.toastCollection.splice(r,1));var a={options:this,cancel:!1,type:e,element:t,toastContainer:this.toastContainer},l=this.animation.hide,c={duration:l.duration,name:"None"===l.effect&&"Enable"===n.animationMode?"FadeOut":l.effect,timingFunction:l.easing},h=parseInt(t.id.split("toast_")[1],10),p=this.isBlazorServer()?{options:s,toastContainer:this.toastContainer}:{options:s,toastContainer:this.toastContainer,toastObj:this};this.trigger("beforeClose",a,function(e){e.cancel||(i.i(n.isNullOrUndefined)(o.progressObj[h])||i.i(n.isNullOrUndefined)(t.querySelector("."+d))||(o.progressObj[h].progressEle.style.width="0%"),c.end=function(){o.clearProgress(h),o.isBlazorServer()&&!i.i(n.isNullOrUndefined)(s)||i.i(n.detach)(t),o.trigger("close",p),0===o.toastContainer.childElementCount&&o.clearContainerPos(!0),l=null,c=null},new n.Animation(c).animate(t))})},e.prototype.personalizeToast=function(){this.setIcon(),this.setTitle(),this.setContent(),this.actionButtons()},e.prototype.setAria=function(){i.i(n.attributes)(this.toastEle,{role:"alert"})},e.prototype.setPositioning=function(t){this.isBlazorServer()||(isNaN(parseFloat(t.X))&&isNaN(parseFloat(t.Y))?this.toastContainer.classList.add(c+"-"+t.Y.toString().toLowerCase()+"-"+t.X.toString().toLowerCase()):(this.customPosition=!0,i.i(n.setStyleAttribute)(this.toastContainer,{left:i.i(n.formatUnit)(t.X),top:i.i(n.formatUnit)(t.Y)})))},e.prototype.setCloseButton=function(){if(this.showCloseButton){var t={close:"Close"};this.l10n=new n.L10n("toast",t,this.locale),this.l10n.setLocale(this.locale);var e=this.l10n.getConstant("close"),i=this.createElement("div",{className:u+" e-icons ",attrs:{tabindex:"0","aria-label":e,role:"button"}});this.toastEle.classList.add("e-toast-header-close-icon"),this.toastEle.appendChild(i)}},e.prototype.setProgress=function(){if(this.timeOut>0){var t=parseInt(this.toastEle.id.split("toast_")[1],10);this.intervalId[t]=window.setTimeout(this.destroyToast.bind(this,this.toastEle),this.timeOut),this.progressObj[t]={hideEta:null,intervalId:null,maxHideTime:null,element:null,timeOutId:null,progressEle:null},this.progressObj[t].maxHideTime=parseFloat(this.timeOut+""),this.progressObj[t].hideEta=(new Date).getTime()+this.progressObj[t].maxHideTime,this.progressObj[t].element=this.toastEle,this.extendedTimeout>0&&(n.EventHandler.add(this.toastEle,"mouseover",this.toastHoverAction.bind(this,t)),n.EventHandler.add(this.toastEle,"mouseleave",this.delayedToastProgress.bind(this,t)),this.progressObj[t].timeOutId=this.intervalId[t]),this.showProgressBar&&(this.progressBarEle=this.createElement("div",{className:d}),this.toastEle.insertBefore(this.progressBarEle,this.toastEle.children[0]),this.progressObj[t].intervalId=setInterval(this.updateProgressBar.bind(this,this.progressObj[t]),10),this.progressObj[t].progressEle=this.progressBarEle)}},e.prototype.toastHoverAction=function(t){clearTimeout(this.progressObj[t].timeOutId),clearInterval(this.progressObj[t].intervalId),this.progressObj[t].hideEta=0;var e=this.progressObj[t].element;i.i(n.isNullOrUndefined)(e.querySelector("."+d))||(this.progressObj[t].progressEle.style.width="0%")},e.prototype.delayedToastProgress=function(t){var e=this.progressObj[t],s=e.element;e.timeOutId=window.setTimeout(this.destroyToast.bind(this,s),this.extendedTimeout),e.maxHideTime=parseFloat(this.extendedTimeout+""),e.hideEta=(new Date).getTime()+e.maxHideTime,i.i(n.isNullOrUndefined)(s.querySelector("."+d))||(e.intervalId=setInterval(this.updateProgressBar.bind(this,e),10))},e.prototype.updateProgressBar=function(t){var e=(t.hideEta-(new Date).getTime())/t.maxHideTime*100;e="Ltr"===this.progressDirection?100-e:e,t.progressEle.style.width=e+"%"},e.prototype.setIcon=function(){if(!i.i(n.isNullOrUndefined)(this.icon)&&0!==this.icon.length){var t=this.createElement("div",{className:"e-toast-icon e-icons "+this.icon});this.toastEle.classList.add("e-toast-header-icon"),this.toastEle.appendChild(t)}},e.prototype.setTitle=function(){if(!i.i(n.isNullOrUndefined)(this.title)){var t=this.createElement("div",{className:"e-toast-title"});t=this.fetchEle(t,this.title,"title");var e=this.createElement("div",{className:p});e.appendChild(t),this.toastEle.appendChild(e)}},e.prototype.setContent=function(){var t=this.createElement("div",{className:"e-toast-content"}),e=this.element;if(i.i(n.isNullOrUndefined)(this.content)||""===this.content){var s=""!==this.element.innerHTML.replace(/\s/g,"");if((e.children.length>0||s)&&(!e.firstElementChild||!e.firstElementChild.classList.contains(c))){this.innerEle=document.createDocumentFragment();for(var o=this.createElement("div");0!==e.childNodes.length;)this.innerEle.appendChild(this.element.childNodes[0]);t.appendChild(this.innerEle),[].slice.call(t.children).forEach(function(t){o.appendChild(t.cloneNode(!0))}),this.content=o,this.appendMessageContainer(t)}}else"object"!=typeof this.content||i.i(n.isNullOrUndefined)(this.content.tagName)?(t=this.fetchEle(t,this.content,"content"),this.appendMessageContainer(t)):(t.appendChild(this.content),this.content=this.content.cloneNode(!0),this.appendMessageContainer(t))},e.prototype.appendMessageContainer=function(t){if(this.toastEle.querySelectorAll("."+p).length>0)this.toastEle.querySelector("."+p).appendChild(t);else{var e=this.createElement("div",{className:p});e.appendChild(t),this.toastEle.appendChild(e)}},e.prototype.actionButtons=function(){var t=this,e=this.createElement("div",{className:"e-toast-actions"});[].slice.call(this.buttons).forEach(function(s){if(!i.i(n.isNullOrUndefined)(s.model)){var r=t.createElement("button");r.setAttribute("type","button"),(i.i(n.isNullOrUndefined)(s.model.cssClass)||0===s.model.cssClass.length)&&(s.model.cssClass="e-primary "+t.cssClass),r.classList.add("e-small"),new o.Button(s.model,r),i.i(n.isNullOrUndefined)(s.click)||"function"!=typeof s.click||n.EventHandler.add(r,"click",s.click),e.appendChild(r)}}),e.childElementCount>0&&this.appendMessageContainer(e)},e.prototype.appendToTarget=function(t){var e=this,s=this.isBlazorServer()?{options:t,element:this.toastEle,cancel:!1}:{options:t,toastObj:this,element:this.toastEle,cancel:!1};this.trigger("beforeOpen",s,function(s){if(s.cancel){if(e.isBlazorServer()){var o=parseInt(e.toastEle.id.split("toast_")[1],10);e.clearProgress(o),i.i(n.detach)(e.toastEle),0===e.toastContainer.childElementCount&&e.clearContainerPos()}}else e.isBlazorServer()||(e.toastEle.style.display="none"),e.newestOnTop&&0!==e.toastContainer.childElementCount?e.toastContainer.insertBefore(e.toastEle,e.toastContainer.children[0]):e.isBlazorServer()||e.toastContainer.appendChild(e.toastEle),i.i(n.removeClass)([e.toastEle],"e-blazor-toast-hidden"),n.EventHandler.add(e.toastEle,"click",e.clickHandler,e),n.EventHandler.add(e.toastEle,"keydown",e.keyDownHandler,e),e.toastContainer.style.zIndex=i.i(r.getZindexPartial)(e.toastContainer)+"",e.displayToast(e.toastEle,t)})},e.prototype.clickHandler=function(t){var e=this;this.isBlazorServer()||t.stopPropagation();var s=t.target,o=i.i(n.closest)(s,"."+c),r=this.isBlazorServer()?{element:o,cancel:!1,clickToClose:!1,originalEvent:t}:{element:o,cancel:!1,clickToClose:!1,originalEvent:t,toastObj:this},a=s.classList.contains(u);this.trigger("click",r,function(t){(a&&!t.cancel||t.clickToClose)&&e.destroyToast(o,"click")})},e.prototype.keyDownHandler=function(t){if(t.target.classList.contains(u)&&(13===t.keyCode||32===t.keyCode)){var e=t.target,s=i.i(n.closest)(e,"."+c);this.destroyToast(s,"key")}},e.prototype.displayToast=function(t,e){var i=this,s=this.animation.show,o={duration:s.duration,name:"None"===s.effect&&"Enable"===n.animationMode?"FadeIn":s.effect,timingFunction:s.easing},r=this.isBlazorServer()?{options:e,element:this.toastEle}:{options:e,toastObj:this,element:this.toastEle};o.begin=function(){t.style.display=""},o.end=function(){i.trigger("open",r)},new n.Animation(o).animate(t)},e.prototype.getContainer=function(){return this.element.classList.add(h),this.element},e.prototype.onPropertyChanged=function(t,e){for(var i=this.element,s=0,n=Object.keys(t);s<n.length;s++){switch(n[s]){case"enableRtl":t.enableRtl?i.classList.add("e-rtl"):i.classList.remove("e-rtl")}}},l([i.i(n.Property)("300px")],e.prototype,"width",void 0),l([i.i(n.Property)("auto")],e.prototype,"height",void 0),l([i.i(n.Property)(null)],e.prototype,"title",void 0),l([i.i(n.Property)(null)],e.prototype,"content",void 0),l([i.i(n.Property)(!0)],e.prototype,"enableHtmlSanitizer",void 0),l([i.i(n.Property)(null)],e.prototype,"icon",void 0),l([i.i(n.Property)(null)],e.prototype,"cssClass",void 0),l([i.i(n.Property)(null)],e.prototype,"template",void 0),l([i.i(n.Property)(!0)],e.prototype,"newestOnTop",void 0),l([i.i(n.Property)(!1)],e.prototype,"showCloseButton",void 0),l([i.i(n.Property)(!1)],e.prototype,"showProgressBar",void 0),l([i.i(n.Property)(5e3)],e.prototype,"timeOut",void 0),l([i.i(n.Property)("Rtl")],e.prototype,"progressDirection",void 0),l([i.i(n.Property)(1e3)],e.prototype,"extendedTimeout",void 0),l([i.i(n.Complex)({},v)],e.prototype,"animation",void 0),l([i.i(n.Complex)({},f)],e.prototype,"position",void 0),l([i.i(n.Collection)([{}],m)],e.prototype,"buttons",void 0),l([i.i(n.Property)(null)],e.prototype,"target",void 0),l([i.i(n.Event)()],e.prototype,"created",void 0),l([i.i(n.Event)()],e.prototype,"beforeSanitizeHtml",void 0),l([i.i(n.Event)()],e.prototype,"destroyed",void 0),l([i.i(n.Event)()],e.prototype,"open",void 0),l([i.i(n.Event)()],e.prototype,"beforeOpen",void 0),l([i.i(n.Event)()],e.prototype,"beforeClose",void 0),l([i.i(n.Event)()],e.prototype,"close",void 0),l([i.i(n.Event)()],e.prototype,"click",void 0),e=l([n.NotifyPropertyChanges],e)}(n.Component);!function(t){function e(t,e,s){var o;document.querySelector("."+h)?o=document.querySelector("."+h):(o=i.i(n.createElement)("div",{className:c+" "+h+" e-toast-util"}),document.body.appendChild(o));var r;if("string"==typeof t){var a=void 0,l=void 0;if(i.i(n.isNullOrUndefined)(e))a="",l="";else switch(e){case"Warning":a="e-toast-warning",l="e-toast-warning-icon";break;case"Success":a="e-toast-success",l="e-toast-success-icon";break;case"Error":a="e-toast-danger",l="e-toast-error-icon";break;case"Information":a="e-toast-info",l="e-toast-info-icon"}r={content:t,cssClass:a,icon:l,timeOut:i.i(n.isNullOrUndefined)(s)?5e3:s}}else r=t;var p=new C(r);return p.appendTo(o),p.show(),p}t.show=e}(s||(s={}))},function(t,i){t.exports=e},function(t,e){t.exports=i}])});
/*!
* filename: ej2-notifications.umd.min.js
* version : 23.2.4
* version : 23.2.5
* Copyright Syncfusion Inc. 2001 - 2023. All rights reserved.

@@ -10,3 +10,3 @@ * Use of this code is subject to the terms of our license.

*/
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("@syncfusion/ej2-base"),require("@syncfusion/ej2-buttons"),require("@syncfusion/ej2-popups")):"function"==typeof define&&define.amd?define(["exports","@syncfusion/ej2-base","@syncfusion/ej2-buttons","@syncfusion/ej2-popups"],e):e(t.ej={},t.ej2Base,t.ej2Buttons,t.ej2Popups)}(this,function(t,e,s,i){"use strict";var o=function(){var t=function(e,s){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var s in e)e.hasOwnProperty(s)&&(t[s]=e[s])})(e,s)};return function(e,s){function i(){this.constructor=e}t(e,s),e.prototype=null===s?Object.create(s):(i.prototype=s.prototype,new i)}}(),n=function(t,e,s,i){var o,n=arguments.length,r=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,s):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(t,e,s,i);else for(var l=t.length-1;l>=0;l--)(o=t[l])&&(r=(n<3?o(r):n>3?o(e,s,r):o(e,s))||r);return n>3&&r&&Object.defineProperty(e,s,r),r},r="e-toast",l="e-toast-container",a="e-toast-title",h="e-toast-full-width",c="e-toast-content",p="e-toast-message",d="e-toast-progress",u="e-toast-close-icon",f=function(t){function s(){return null!==t&&t.apply(this,arguments)||this}return o(s,t),n([e.Property("Left")],s.prototype,"X",void 0),n([e.Property("Top")],s.prototype,"Y",void 0),s}(e.ChildProperty),m=function(t){function s(){return null!==t&&t.apply(this,arguments)||this}return o(s,t),n([e.Property(null)],s.prototype,"model",void 0),n([e.Property(null)],s.prototype,"click",void 0),s}(e.ChildProperty),y=function(t){function s(){return null!==t&&t.apply(this,arguments)||this}return o(s,t),n([e.Property("FadeIn")],s.prototype,"effect",void 0),n([e.Property(600)],s.prototype,"duration",void 0),n([e.Property("ease")],s.prototype,"easing",void 0),s}(e.ChildProperty),v=function(t){function s(){return null!==t&&t.apply(this,arguments)||this}return o(s,t),n([e.Complex({effect:"FadeIn",duration:600,easing:"ease"},y)],s.prototype,"show",void 0),n([e.Complex({effect:"FadeOut",duration:600,easing:"ease"},y)],s.prototype,"hide",void 0),s}(e.ChildProperty),C=function(t){function y(e,s){var i=t.call(this,e,s)||this;return i.toastCollection=[],i.needsID=!0,i}return o(y,t),y.prototype.getModuleName=function(){return"toast"},y.prototype.getPersistData=function(){return this.addOnPersist([])},y.prototype.destroy=function(){this.hide("All"),this.element.classList.remove(l),e.setStyleAttribute(this.element,{position:"","z-index":""}),e.isNullOrUndefined(this.refElement)||e.isNullOrUndefined(this.refElement.parentElement)||(this.refElement.parentElement.insertBefore(this.element,this.refElement),e.detach(this.refElement),this.refElement=void 0),this.isBlazorServer()||t.prototype.destroy.call(this)},y.prototype.preRender=function(){this.isDevice=e.Browser.isDevice,"300px"===this.width&&(this.width=this.isDevice&&screen.width<768?"100%":"300px"),e.isNullOrUndefined(this.target)&&(this.target=document.body),this.enableRtl&&!this.isBlazorServer()&&this.element.classList.add("e-rtl")},y.prototype.render=function(){this.progressObj=[],this.intervalId=[],this.contentTemplate=null,this.toastTemplate=null,this.renderComplete(),this.initRenderClass=this.element.className},y.prototype.show=function(t){var s;if(e.isNullOrUndefined(t)||(this.templateChanges(t),s=JSON.parse(JSON.stringify(t)),e.extend(this,this,t)),e.isNullOrUndefined(this.toastContainer)){this.toastContainer=this.getContainer();var i="string"==typeof this.target?document.querySelector(this.target):"object"==typeof this.target?this.target:document.body;if(e.isNullOrUndefined(i))return;"BODY"===i.tagName?this.toastContainer.style.position="fixed":(this.toastContainer.style.position="absolute",i.style.position="relative"),this.setPositioning(this.position),i.appendChild(this.toastContainer)}this.isBlazorServer()&&this.element.classList.contains("e-control")?this.isToastModel(t):(this.toastEle=this.createElement("div",{className:r,id:e.getUniqueID("toast")}),this.setWidthHeight(),this.setCSSClass(this.cssClass),e.isNullOrUndefined(this.template)||""===this.template?this.personalizeToast():this.templateRendering(),this.setProgress(),this.setCloseButton(),this.setAria(),this.appendToTarget(t),this.isDevice&&screen.width<768&&new e.Touch(this.toastEle,{swipe:this.swipeHandler.bind(this)}),e.isNullOrUndefined(s)||(e.extend(s,{element:[this.toastEle]},!0),this.toastCollection.push(s)),this.isReact&&this.renderReactTemplates())},y.prototype.showToast=function(t,e){this.toastEle=this.element.querySelector("#"+t),this.show(e)},y.prototype.isToastModel=function(t){this.toastContainer=this.element,this.setPositioning(this.position);e.isNullOrUndefined(this.element.lastElementChild)||this.setProgress(),this.setAria(),this.appendToTarget(t)},y.prototype.swipeHandler=function(t){var s=e.closest(t.originalEvent.target,"."+r+":not(."+l+")"),i=this.animation.hide.effect;e.isNullOrUndefined(s)||("Right"===t.swipeDirection?(this.animation.hide.effect="SlideRightOut",this.hideToast("swipe",s)):"Left"===t.swipeDirection&&(this.animation.hide.effect="SlideLeftOut",this.hideToast("swipe",s)),this.animation.hide.effect=i)},y.prototype.templateChanges=function(t){e.isUndefined(t.content)||e.isNullOrUndefined(this.contentTemplate)||this.content===t.content||this.clearContentTemplate(),e.isUndefined(t.template)||e.isNullOrUndefined(this.toastTemplate)||this.template===t.template||this.clearToastTemplate()},y.prototype.setCSSClass=function(t){if(t){var s=-1!==t.indexOf(",")?",":" ";e.classList(this.toastEle,t.split(s),[]),this.toastContainer&&e.classList(this.toastContainer,t.split(s),[])}},y.prototype.setWidthHeight=function(){"300px"===this.width?this.toastEle.style.width=e.formatUnit(this.width):"100%"===this.width?this.toastContainer.classList.add(h):(this.toastEle.style.width=e.formatUnit(this.width),this.toastContainer.classList.remove(h)),this.toastEle.style.height=e.formatUnit(this.height)},y.prototype.templateRendering=function(){this.fetchEle(this.toastEle,this.template,"template")},y.prototype.sanitizeHelper=function(t){if(this.enableHtmlSanitizer){var s=e.SanitizeHtmlHelper.beforeSanitize();e.extend(s,s,{cancel:!1,helper:null}),this.trigger("beforeSanitizeHtml",s),s.cancel&&!e.isNullOrUndefined(s.helper)?t=s.helper(t):s.cancel||(t=e.SanitizeHtmlHelper.serializeValue(s,t))}return t},y.prototype.hide=function(t){this.hideToast("",t)},y.prototype.hideToast=function(t,s){if(!e.isNullOrUndefined(this.toastContainer)&&0!==this.toastContainer.childElementCount)if("string"!=typeof s||"All"!==s)e.isNullOrUndefined(s)&&(s=this.newestOnTop?this.toastContainer.lastElementChild:this.toastContainer.firstElementChild),this.destroyToast(s,t);else for(var i=0;i<this.toastContainer.childElementCount;i++)this.destroyToast(this.toastContainer.children[i],t)},y.prototype.fetchEle=function(t,s,i){s="string"==typeof s?this.sanitizeHelper(s):s;var o,n,r,l;if(l=t.classList.contains(a)?this.element.id+"title":t.classList.contains(c)?this.element.id+"content":this.element.id+"template",n="content"===i?this.contentTemplate:this.toastTemplate,!e.isNullOrUndefined(n))return t.appendChild(n.cloneNode(!0)),t;try{if("function"!=typeof s&&document.querySelectorAll(s).length>0){var h=null;"title"!==i&&(h=document.querySelector(s),t.appendChild(h),h.style.display="");var p=e.isNullOrUndefined(h)?n:h.cloneNode(!0);"content"===i?this.contentTemplate=p:this.toastTemplate=p}else o="object"==typeof s?e.compile(s):e.compile(e.initializeCSPTemplate(function(){return s}))}catch(t){o="object"==typeof s?e.compile(s):e.compile(e.initializeCSPTemplate(function(){return s}))}if(!e.isNullOrUndefined(o))if(this.isBlazorServer()){r=o({},this,i,l,!0)}else r=o({},this,i,null,!0);return e.isNullOrUndefined(r)||!(r.length>0)||e.isNullOrUndefined(r[0].tagName)&&1===r.length?"function"!=typeof s&&0===t.childElementCount&&(t.innerHTML=s):[].slice.call(r).forEach(function(s){e.isNullOrUndefined(s.tagName)||(s.style.display=""),t.appendChild(s)}),t},y.prototype.clearProgress=function(t){e.isNullOrUndefined(this.intervalId[t])||(clearInterval(this.intervalId[t]),delete this.intervalId[t]),e.isNullOrUndefined(this.progressObj[t])||(clearInterval(this.progressObj[t].intervalId),delete this.progressObj[t])},y.prototype.removeToastContainer=function(t){t&&this.toastContainer.classList.contains("e-toast-util")&&e.detach(this.toastContainer)},y.prototype.clearContainerPos=function(t){var s=this;this.isBlazorServer()?this.toastContainer=null:(this.customPosition?(e.setStyleAttribute(this.toastContainer,{left:"",top:""}),this.removeToastContainer(t),this.toastContainer=null,this.customPosition=!1):([r+"-top-left",r+"-top-right",r+"-bottom-left",r+"-bottom-right",r+"-bottom-center",r+"-top-center",r+"-full-width"].forEach(function(t){!e.isNullOrUndefined(s.toastContainer)&&s.toastContainer.classList.contains(t)&&s.toastContainer.classList.remove(t)}),this.removeToastContainer(t),this.toastContainer=null),e.isNullOrUndefined(this.contentTemplate)||this.clearContentTemplate(),e.isNullOrUndefined(this.toastTemplate)||this.clearToastTemplate())},y.prototype.clearContentTemplate=function(){this.contentTemplate.style.display="none",document.body.appendChild(this.contentTemplate),this.contentTemplate=null},y.prototype.clearToastTemplate=function(){this.toastTemplate.style.display="none",document.body.appendChild(this.toastTemplate),this.toastTemplate=null},y.prototype.isBlazorServer=function(){return e.isBlazor()&&this.isServerRendered},y.prototype.destroyToast=function(t,s){for(var i,o=this,n=0;n<this.toastCollection.length;n++)this.toastCollection[n].element[0]===t&&(i=this.toastCollection[n],this.toastCollection.splice(n,1));var r={options:this,cancel:!1,type:s,element:t,toastContainer:this.toastContainer},l=this.animation.hide,a={duration:l.duration,name:"None"===l.effect&&"Enable"===e.animationMode?"FadeOut":l.effect,timingFunction:l.easing},h=parseInt(t.id.split("toast_")[1],10),c=this.isBlazorServer()?{options:i,toastContainer:this.toastContainer}:{options:i,toastContainer:this.toastContainer,toastObj:this};this.trigger("beforeClose",r,function(s){s.cancel||(e.isNullOrUndefined(o.progressObj[h])||e.isNullOrUndefined(t.querySelector("."+d))||(o.progressObj[h].progressEle.style.width="0%"),a.end=function(){o.clearProgress(h),o.isBlazorServer()&&!e.isNullOrUndefined(i)||e.detach(t),o.trigger("close",c),0===o.toastContainer.childElementCount&&o.clearContainerPos(!0),l=null,a=null},new e.Animation(a).animate(t))})},y.prototype.personalizeToast=function(){this.setIcon(),this.setTitle(),this.setContent(),this.actionButtons()},y.prototype.setAria=function(){e.attributes(this.toastEle,{role:"alert"})},y.prototype.setPositioning=function(t){this.isBlazorServer()||(isNaN(parseFloat(t.X))&&isNaN(parseFloat(t.Y))?this.toastContainer.classList.add(r+"-"+t.Y.toString().toLowerCase()+"-"+t.X.toString().toLowerCase()):(this.customPosition=!0,e.setStyleAttribute(this.toastContainer,{left:e.formatUnit(t.X),top:e.formatUnit(t.Y)})))},y.prototype.setCloseButton=function(){if(this.showCloseButton){this.l10n=new e.L10n("toast",{close:"Close"},this.locale),this.l10n.setLocale(this.locale);var t=this.l10n.getConstant("close"),s=this.createElement("div",{className:u+" e-icons ",attrs:{tabindex:"0","aria-label":t,role:"button"}});this.toastEle.classList.add("e-toast-header-close-icon"),this.toastEle.appendChild(s)}},y.prototype.setProgress=function(){if(this.timeOut>0){var t=parseInt(this.toastEle.id.split("toast_")[1],10);this.intervalId[t]=window.setTimeout(this.destroyToast.bind(this,this.toastEle),this.timeOut),this.progressObj[t]={hideEta:null,intervalId:null,maxHideTime:null,element:null,timeOutId:null,progressEle:null},this.progressObj[t].maxHideTime=parseFloat(this.timeOut+""),this.progressObj[t].hideEta=(new Date).getTime()+this.progressObj[t].maxHideTime,this.progressObj[t].element=this.toastEle,this.extendedTimeout>0&&(e.EventHandler.add(this.toastEle,"mouseover",this.toastHoverAction.bind(this,t)),e.EventHandler.add(this.toastEle,"mouseleave",this.delayedToastProgress.bind(this,t)),this.progressObj[t].timeOutId=this.intervalId[t]),this.showProgressBar&&(this.progressBarEle=this.createElement("div",{className:d}),this.toastEle.insertBefore(this.progressBarEle,this.toastEle.children[0]),this.progressObj[t].intervalId=setInterval(this.updateProgressBar.bind(this,this.progressObj[t]),10),this.progressObj[t].progressEle=this.progressBarEle)}},y.prototype.toastHoverAction=function(t){clearTimeout(this.progressObj[t].timeOutId),clearInterval(this.progressObj[t].intervalId),this.progressObj[t].hideEta=0;var s=this.progressObj[t].element;e.isNullOrUndefined(s.querySelector("."+d))||(this.progressObj[t].progressEle.style.width="0%")},y.prototype.delayedToastProgress=function(t){var s=this.progressObj[t],i=s.element;s.timeOutId=window.setTimeout(this.destroyToast.bind(this,i),this.extendedTimeout),s.maxHideTime=parseFloat(this.extendedTimeout+""),s.hideEta=(new Date).getTime()+s.maxHideTime,e.isNullOrUndefined(i.querySelector("."+d))||(s.intervalId=setInterval(this.updateProgressBar.bind(this,s),10))},y.prototype.updateProgressBar=function(t){var e=(t.hideEta-(new Date).getTime())/t.maxHideTime*100;e="Ltr"===this.progressDirection?100-e:e,t.progressEle.style.width=e+"%"},y.prototype.setIcon=function(){if(!e.isNullOrUndefined(this.icon)&&0!==this.icon.length){var t=this.createElement("div",{className:"e-toast-icon e-icons "+this.icon});this.toastEle.classList.add("e-toast-header-icon"),this.toastEle.appendChild(t)}},y.prototype.setTitle=function(){if(!e.isNullOrUndefined(this.title)){var t=this.createElement("div",{className:a});t=this.fetchEle(t,this.title,"title");var s=this.createElement("div",{className:p});s.appendChild(t),this.toastEle.appendChild(s)}},y.prototype.setContent=function(){var t=this.createElement("div",{className:c}),s=this.element;if(e.isNullOrUndefined(this.content)||""===this.content){var i=""!==this.element.innerHTML.replace(/\s/g,"");if((s.children.length>0||i)&&(!s.firstElementChild||!s.firstElementChild.classList.contains(r))){this.innerEle=document.createDocumentFragment();for(var o=this.createElement("div");0!==s.childNodes.length;)this.innerEle.appendChild(this.element.childNodes[0]);t.appendChild(this.innerEle),[].slice.call(t.children).forEach(function(t){o.appendChild(t.cloneNode(!0))}),this.content=o,this.appendMessageContainer(t)}}else"object"!=typeof this.content||e.isNullOrUndefined(this.content.tagName)?(t=this.fetchEle(t,this.content,"content"),this.appendMessageContainer(t)):(t.appendChild(this.content),this.content=this.content.cloneNode(!0),this.appendMessageContainer(t))},y.prototype.appendMessageContainer=function(t){if(this.toastEle.querySelectorAll("."+p).length>0)this.toastEle.querySelector("."+p).appendChild(t);else{var e=this.createElement("div",{className:p});e.appendChild(t),this.toastEle.appendChild(e)}},y.prototype.actionButtons=function(){var t=this,i=this.createElement("div",{className:"e-toast-actions"});[].slice.call(this.buttons).forEach(function(o){if(!e.isNullOrUndefined(o.model)){var n=t.createElement("button");n.setAttribute("type","button"),(e.isNullOrUndefined(o.model.cssClass)||0===o.model.cssClass.length)&&(o.model.cssClass="e-primary "+t.cssClass),n.classList.add("e-small"),new s.Button(o.model,n),e.isNullOrUndefined(o.click)||"function"!=typeof o.click||e.EventHandler.add(n,"click",o.click),i.appendChild(n)}}),i.childElementCount>0&&this.appendMessageContainer(i)},y.prototype.appendToTarget=function(t){var s=this,o=this.isBlazorServer()?{options:t,element:this.toastEle,cancel:!1}:{options:t,toastObj:this,element:this.toastEle,cancel:!1};this.trigger("beforeOpen",o,function(o){if(o.cancel){if(s.isBlazorServer()){var n=parseInt(s.toastEle.id.split("toast_")[1],10);s.clearProgress(n),e.detach(s.toastEle),0===s.toastContainer.childElementCount&&s.clearContainerPos()}}else s.isBlazorServer()||(s.toastEle.style.display="none"),s.newestOnTop&&0!==s.toastContainer.childElementCount?s.toastContainer.insertBefore(s.toastEle,s.toastContainer.children[0]):s.isBlazorServer()||s.toastContainer.appendChild(s.toastEle),e.removeClass([s.toastEle],"e-blazor-toast-hidden"),e.EventHandler.add(s.toastEle,"click",s.clickHandler,s),e.EventHandler.add(s.toastEle,"keydown",s.keyDownHandler,s),s.toastContainer.style.zIndex=i.getZindexPartial(s.toastContainer)+"",s.displayToast(s.toastEle,t)})},y.prototype.clickHandler=function(t){var s=this;this.isBlazorServer()||t.stopPropagation();var i=t.target,o=e.closest(i,"."+r),n=this.isBlazorServer()?{element:o,cancel:!1,clickToClose:!1,originalEvent:t}:{element:o,cancel:!1,clickToClose:!1,originalEvent:t,toastObj:this},l=i.classList.contains(u);this.trigger("click",n,function(t){(l&&!t.cancel||t.clickToClose)&&s.destroyToast(o,"click")})},y.prototype.keyDownHandler=function(t){if(t.target.classList.contains(u)&&(13===t.keyCode||32===t.keyCode)){var s=t.target,i=e.closest(s,"."+r);this.destroyToast(i,"key")}},y.prototype.displayToast=function(t,s){var i=this,o=this.animation.show,n={duration:o.duration,name:"None"===o.effect&&"Enable"===e.animationMode?"FadeIn":o.effect,timingFunction:o.easing},r=this.isBlazorServer()?{options:s,element:this.toastEle}:{options:s,toastObj:this,element:this.toastEle};n.begin=function(){t.style.display=""},n.end=function(){i.trigger("open",r)},new e.Animation(n).animate(t)},y.prototype.getContainer=function(){return this.element.classList.add(l),this.element},y.prototype.onPropertyChanged=function(t,e){for(var s=this.element,i=0,o=Object.keys(t);i<o.length;i++){switch(o[i]){case"enableRtl":t.enableRtl?s.classList.add("e-rtl"):s.classList.remove("e-rtl")}}},n([e.Property("300px")],y.prototype,"width",void 0),n([e.Property("auto")],y.prototype,"height",void 0),n([e.Property(null)],y.prototype,"title",void 0),n([e.Property(null)],y.prototype,"content",void 0),n([e.Property(!0)],y.prototype,"enableHtmlSanitizer",void 0),n([e.Property(null)],y.prototype,"icon",void 0),n([e.Property(null)],y.prototype,"cssClass",void 0),n([e.Property(null)],y.prototype,"template",void 0),n([e.Property(!0)],y.prototype,"newestOnTop",void 0),n([e.Property(!1)],y.prototype,"showCloseButton",void 0),n([e.Property(!1)],y.prototype,"showProgressBar",void 0),n([e.Property(5e3)],y.prototype,"timeOut",void 0),n([e.Property("Rtl")],y.prototype,"progressDirection",void 0),n([e.Property(1e3)],y.prototype,"extendedTimeout",void 0),n([e.Complex({},v)],y.prototype,"animation",void 0),n([e.Complex({},f)],y.prototype,"position",void 0),n([e.Collection([{}],m)],y.prototype,"buttons",void 0),n([e.Property(null)],y.prototype,"target",void 0),n([e.Event()],y.prototype,"created",void 0),n([e.Event()],y.prototype,"beforeSanitizeHtml",void 0),n([e.Event()],y.prototype,"destroyed",void 0),n([e.Event()],y.prototype,"open",void 0),n([e.Event()],y.prototype,"beforeOpen",void 0),n([e.Event()],y.prototype,"beforeClose",void 0),n([e.Event()],y.prototype,"close",void 0),n([e.Event()],y.prototype,"click",void 0),y=n([e.NotifyPropertyChanges],y)}(e.Component);!function(s){(t.ToastUtility||(t.ToastUtility={})).show=function(t,s,i){var o;document.querySelector("."+l)?o=document.querySelector("."+l):(o=e.createElement("div",{className:r+" "+l+" e-toast-util"}),document.body.appendChild(o));var n;if("string"==typeof t){var a=void 0,h=void 0;if(e.isNullOrUndefined(s))a="",h="";else switch(s){case"Warning":a="e-toast-warning",h="e-toast-warning-icon";break;case"Success":a="e-toast-success",h="e-toast-success-icon";break;case"Error":a="e-toast-danger",h="e-toast-error-icon";break;case"Information":a="e-toast-info",h="e-toast-info-icon"}n={content:t,cssClass:a,icon:h,timeOut:e.isNullOrUndefined(i)?5e3:i}}else n=t;var c=new C(n);return c.appendTo(o),c.show(),c}}();var g=function(){var t=function(e,s){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var s in e)e.hasOwnProperty(s)&&(t[s]=e[s])})(e,s)};return function(e,s){function i(){this.constructor=e}t(e,s),e.prototype=null===s?Object.create(s):(i.prototype=s.prototype,new i)}}(),E=function(t,e,s,i){var o,n=arguments.length,r=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,s):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(t,e,s,i);else for(var l=t.length-1;l>=0;l--)(o=t[l])&&(r=(n<3?o(r):n>3?o(e,s,r):o(e,s))||r);return n>3&&r&&Object.defineProperty(e,s,r),r};!function(t){t.Normal="Normal",t.Success="Success",t.Info="Info",t.Warning="Warning",t.Error="Error"}(t.Severity||(t.Severity={})),function(t){t.Text="Text",t.Outlined="Outlined",t.Filled="Filled"}(t.Variant||(t.Variant={}));var b="e-msg-icon",O="e-content-center",T="e-success",P="e-warning",N="e-outlined",w="e-filled",S="e-hidden",I=function(t){function s(e,s){var i=t.call(this,e,s)||this;return i.initialRender=!0,i}return g(s,t),s.prototype.getModuleName=function(){return"message"},s.prototype.getPersistData=function(){return this.addOnPersist([])},s.prototype.preRender=function(){this.l10n=new e.L10n("message",{close:"Close"},this.locale)},s.prototype.render=function(){this.innerContent=this.element.innerHTML,this.element.innerHTML="",this.msgElement=this.createElement("div",{className:"e-msg-content-wrap"}),this.initialize(),this.wireEvents(),this.renderComplete(),this.renderReactTemplates(),this.initialRender=!1},s.prototype.initialize=function(){this.element.setAttribute("role","alert"),this.setCssClass(),this.setIcon(),this.setContent(),this.setCloseIcon(),this.setSeverity(),this.setVariant(),this.setVisible(),this.enableRtl&&this.element.classList.add("e-rtl")},s.prototype.setIcon=function(){this.showIcon&&(this.iconElement=this.createElement("span",{className:b}),this.element.classList.contains(O)?this.msgElement.appendChild(this.iconElement):this.element.appendChild(this.iconElement))},s.prototype.setCloseIcon=function(){this.showCloseIcon&&(this.closeIcon=this.createElement("button",{attrs:{type:"button",class:"e-msg-close-icon"}}),this.element.appendChild(this.closeIcon),this.setTitle())},s.prototype.setTitle=function(){this.l10n.setLocale(this.locale);var t=this.l10n.getConstant("close");this.closeIcon.setAttribute("title",t),this.closeIcon.setAttribute("aria-label",t)},s.prototype.setContent=function(){this.txtElement=this.createElement("div",{className:"e-msg-content"}),this.element.classList.contains(O)?(this.msgElement.appendChild(this.txtElement),this.element.appendChild(this.msgElement)):this.element.appendChild(this.txtElement),this.setTemplate()},s.prototype.setTemplate=function(){var t;if(e.isNullOrUndefined(this.content)||""===this.content)this.txtElement.innerHTML=this.innerContent;else if(!e.isNullOrUndefined(this.content)&&""!==this.content&&("string"==typeof this.content||"string"!=typeof this.content))if(this.isVue||"string"!=typeof this.content){if(t=e.compile(this.content),!e.isNullOrUndefined(t)){var s=t({},this,"content",this.element.id+"content",!0);s&&(s=Array.prototype.slice.call(s),e.append(s,this.txtElement),this.renderReactTemplates())}}else this.txtElement.innerHTML=this.content},s.prototype.setSeverity=function(){var t=[T,P,"e-info","e-error"];e.removeClass([this.element],t),"Success"===this.severity?e.addClass([this.element],T):"Warning"===this.severity?e.addClass([this.element],P):"Error"===this.severity?e.addClass([this.element],"e-error"):"Info"===this.severity&&e.addClass([this.element],"e-info")},s.prototype.setVariant=function(){var t=[w,N];e.removeClass([this.element],t),"Outlined"===this.variant?e.addClass([this.element],N):"Filled"===this.variant&&e.addClass([this.element],w)},s.prototype.setCssClass=function(t){t&&e.removeClass([this.element],t.split(" ")),this.cssClass&&e.addClass([this.element],this.cssClass.split(" "))},s.prototype.setVisible=function(){this.visible?e.removeClass([this.element],S):(e.addClass([this.element],S),this.initialRender||this.trigger("closed",{event:event,isInteracted:!1,element:this.element}))},s.prototype.clickHandler=function(t){this.closeMessage(t)},s.prototype.keyboardHandler=function(t){32!==t.keyCode&&13!==t.keyCode||this.closeMessage(t)},s.prototype.closeMessage=function(t){e.addClass([this.element],S),this.setProperties({visible:!1},!0);var s={event:t,isInteracted:!0,element:this.element};this.trigger("closed",s)},s.prototype.wireEvents=function(){this.showCloseIcon&&(e.EventHandler.add(this.closeIcon,"click",this.clickHandler,this),e.EventHandler.add(this.closeIcon,"keydown",this.keyboardHandler,this))},s.prototype.unWireEvents=function(){this.showCloseIcon&&(e.EventHandler.remove(this.closeIcon,"click",this.clickHandler),e.EventHandler.remove(this.closeIcon,"keydown",this.keyboardHandler))},s.prototype.onPropertyChanged=function(t,s){for(var i=0,o=Object.keys(t);i<o.length;i++){switch(o[i]){case"cssClass":this.setCssClass(s.cssClass);break;case"content":this.txtElement.innerHTML="",this.setTemplate();break;case"enableRtl":this.enableRtl?this.element.classList.add("e-rtl"):this.element.classList.remove("e-rtl");break;case"locale":this.showCloseIcon&&this.setTitle();break;case"showIcon":!this.showIcon&&this.element.getElementsByClassName(b).length>0&&e.detach(this.iconElement),this.showIcon&&(this.iconElement=this.createElement("span",{className:b}),this.element.insertBefore(this.iconElement,this.txtElement));break;case"showCloseIcon":this.showCloseIcon||e.isNullOrUndefined(this.closeIcon)?(this.setCloseIcon(),this.wireEvents()):(this.unWireEvents(),e.detach(this.closeIcon));break;case"severity":this.setSeverity();break;case"variant":this.setVariant();break;case"visible":this.setVisible()}}},s.prototype.destroy=function(){var s=e.isNullOrUndefined(this.cssClass)?[""]:this.cssClass.split(" "),i=[T,P,"e-info","e-error","e-rtl",S,N,w],o=1===s.length&&""===s[0]?i:i.concat(s);e.removeClass([this.element],o),this.element.removeAttribute("role"),this.unWireEvents(),e.isNullOrUndefined(this.iconElement)||e.detach(this.iconElement),e.detach(this.txtElement),e.isNullOrUndefined(this.closeIcon)||e.detach(this.closeIcon),t.prototype.destroy.call(this)},E([e.Property(null)],s.prototype,"content",void 0),E([e.Property("")],s.prototype,"cssClass",void 0),E([e.Property(!0)],s.prototype,"showIcon",void 0),E([e.Property(!1)],s.prototype,"showCloseIcon",void 0),E([e.Property("Normal")],s.prototype,"severity",void 0),E([e.Property("Text")],s.prototype,"variant",void 0),E([e.Property(!0)],s.prototype,"visible",void 0),E([e.Event()],s.prototype,"created",void 0),E([e.Event()],s.prototype,"destroyed",void 0),E([e.Event()],s.prototype,"closed",void 0),s=E([e.NotifyPropertyChanges],s)}(e.Component),U=function(){var t=function(e,s){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var s in e)e.hasOwnProperty(s)&&(t[s]=e[s])})(e,s)};return function(e,s){function i(){this.constructor=e}t(e,s),e.prototype=null===s?Object.create(s):(i.prototype=s.prototype,new i)}}(),k=function(t,e,s,i){var o,n=arguments.length,r=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,s):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(t,e,s,i);else for(var l=t.length-1;l>=0;l--)(o=t[l])&&(r=(n<3?o(r):n>3?o(e,s,r):o(e,s))||r);return n>3&&r&&Object.defineProperty(e,s,r),r},j={TEXTSHAPE:"e-skeleton-text",CIRCLESHAPE:"e-skeleton-circle",SQUARESHAPE:"e-skeleton-square",RECTANGLESHAPE:"e-skeleton-rectangle",WAVEEFFECT:"e-shimmer-wave",PULSEEFFECT:"e-shimmer-pulse",FADEEFFECT:"e-shimmer-fade",VISIBLENONE:"e-visible-none"};!function(t){t.Text="Text",t.Circle="Circle",t.Square="Square",t.Rectangle="Rectangle"}(t.SkeletonType||(t.SkeletonType={})),function(t){t.Wave="Wave",t.Fade="Fade",t.Pulse="Pulse",t.None="None"}(t.ShimmerEffect||(t.ShimmerEffect={}));var L=function(t){function s(e,s){return t.call(this,e,s)||this}return U(s,t),s.prototype.getModuleName=function(){return"skeleton"},s.prototype.getPersistData=function(){return this.addOnPersist([])},s.prototype.preRender=function(){this.element.id||(this.element.id=e.getUniqueID("e-"+this.getModuleName())),this.updateCssClass(),e.attributes(this.element,{role:"alert","aria-busy":"true","aria-live":"polite","aria-label":this.label})},s.prototype.render=function(){this.initialize()},s.prototype.onPropertyChanged=function(t,s){for(var i=0,o=Object.keys(t);i<o.length;i++){switch(o[i]){case"width":case"height":this.updateDimension();break;case"shape":this.updateShape();break;case"shimmerEffect":this.updateEffect();break;case"visible":this.updateVisibility();break;case"label":this.element.setAttribute("aria-label",this.label);break;case"cssClass":s.cssClass&&e.removeClass([this.element],s.cssClass.split(" ")),this.updateCssClass()}}},s.prototype.destroy=function(){t.prototype.destroy.call(this);var s=["role","aria-live","aria-busy","aria-label"],i=[];this.cssClass&&(i=i.concat(this.cssClass.split(" ")));for(var o=0;o<s.length;o++)this.element.removeAttribute(s[parseInt(o.toString(),10)]);i=(i=i.concat(this.element.classList.value.match(/(e-skeleton-[^\s]+)/g))).concat(this.element.classList.value.match(/(e-shimmer-[^\s]+)/g)),e.removeClass([this.element],i)},s.prototype.initialize=function(){this.updateShape(),this.updateEffect(),this.updateVisibility()},s.prototype.updateShape=function(){var t=j[this.shape.toUpperCase()+"SHAPE"],s=this.element.classList.value.match(/(e-skeleton-[^\s]+)/g);this.updateDimension(),s&&e.removeClass([this.element],s),e.addClass([this.element],[t])},s.prototype.updateDimension=function(){var t=!this.width&&["Text","Rectangle"].indexOf(this.shape)>-1?"100%":e.formatUnit(this.width),s=["Circle","Square"].indexOf(this.shape)>-1?t:e.formatUnit(this.height);this.element.style.width=t,this.element.style.height=s},s.prototype.updateEffect=function(){var t=this.element.classList.value.match(/(e-shimmer-[^\s]+)/g);t&&e.removeClass([this.element],t),e.addClass([this.element],[j[this.shimmerEffect.toUpperCase()+"EFFECT"]])},s.prototype.updateVisibility=function(){this.element.classList[this.visible?"remove":"add"](j.VISIBLENONE)},s.prototype.updateCssClass=function(){this.cssClass&&e.addClass([this.element],this.cssClass.split(" "))},k([e.Property("")],s.prototype,"width",void 0),k([e.Property("")],s.prototype,"height",void 0),k([e.Property(!0)],s.prototype,"visible",void 0),k([e.Property("Text")],s.prototype,"shape",void 0),k([e.Property("Wave")],s.prototype,"shimmerEffect",void 0),k([e.Property("Loading...")],s.prototype,"label",void 0),k([e.Property("")],s.prototype,"cssClass",void 0),s=k([e.NotifyPropertyChanges],s)}(e.Component);t.ToastPosition=f,t.ButtonModelProps=m,t.ToastAnimations=y,t.ToastAnimationSettings=v,t.Toast=C,t.Message=I,t.Skeleton=L,Object.defineProperty(t,"__esModule",{value:!0})});
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("@syncfusion/ej2-base"),require("@syncfusion/ej2-buttons"),require("@syncfusion/ej2-popups")):"function"==typeof define&&define.amd?define(["exports","@syncfusion/ej2-base","@syncfusion/ej2-buttons","@syncfusion/ej2-popups"],e):e(t.ej={},t.ej2Base,t.ej2Buttons,t.ej2Popups)}(this,function(t,e,s,i){"use strict";var o=function(){var t=function(e,s){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var s in e)e.hasOwnProperty(s)&&(t[s]=e[s])})(e,s)};return function(e,s){function i(){this.constructor=e}t(e,s),e.prototype=null===s?Object.create(s):(i.prototype=s.prototype,new i)}}(),n=function(t,e,s,i){var o,n=arguments.length,r=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,s):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(t,e,s,i);else for(var l=t.length-1;l>=0;l--)(o=t[l])&&(r=(n<3?o(r):n>3?o(e,s,r):o(e,s))||r);return n>3&&r&&Object.defineProperty(e,s,r),r},r="e-toast",l="e-toast-container",a="e-toast-title",h="e-toast-full-width",c="e-toast-content",p="e-toast-message",d="e-toast-progress",u="e-toast-close-icon",f=function(t){function s(){return null!==t&&t.apply(this,arguments)||this}return o(s,t),n([e.Property("Left")],s.prototype,"X",void 0),n([e.Property("Top")],s.prototype,"Y",void 0),s}(e.ChildProperty),m=function(t){function s(){return null!==t&&t.apply(this,arguments)||this}return o(s,t),n([e.Property(null)],s.prototype,"model",void 0),n([e.Property(null)],s.prototype,"click",void 0),s}(e.ChildProperty),y=function(t){function s(){return null!==t&&t.apply(this,arguments)||this}return o(s,t),n([e.Property("FadeIn")],s.prototype,"effect",void 0),n([e.Property(600)],s.prototype,"duration",void 0),n([e.Property("ease")],s.prototype,"easing",void 0),s}(e.ChildProperty),v=function(t){function s(){return null!==t&&t.apply(this,arguments)||this}return o(s,t),n([e.Complex({effect:"FadeIn",duration:600,easing:"ease"},y)],s.prototype,"show",void 0),n([e.Complex({effect:"FadeOut",duration:600,easing:"ease"},y)],s.prototype,"hide",void 0),s}(e.ChildProperty),C=function(t){function y(e,s){var i=t.call(this,e,s)||this;return i.toastCollection=[],i.needsID=!0,i}return o(y,t),y.prototype.getModuleName=function(){return"toast"},y.prototype.getPersistData=function(){return this.addOnPersist([])},y.prototype.destroy=function(){this.hide("All"),this.element.classList.remove(l),e.setStyleAttribute(this.element,{position:"","z-index":""}),e.isNullOrUndefined(this.refElement)||e.isNullOrUndefined(this.refElement.parentElement)||(this.refElement.parentElement.insertBefore(this.element,this.refElement),e.detach(this.refElement),this.refElement=void 0),this.isBlazorServer()||t.prototype.destroy.call(this)},y.prototype.preRender=function(){this.isDevice=e.Browser.isDevice,"300px"===this.width&&(this.width=this.isDevice&&screen.width<768?"100%":"300px"),e.isNullOrUndefined(this.target)&&(this.target=document.body),this.enableRtl&&!this.isBlazorServer()&&this.element.classList.add("e-rtl")},y.prototype.render=function(){this.progressObj=[],this.intervalId=[],this.contentTemplate=null,this.toastTemplate=null,this.renderComplete(),this.initRenderClass=this.element.className},y.prototype.show=function(t){var s;if(e.isNullOrUndefined(t)||(this.templateChanges(t),s=JSON.parse(JSON.stringify(t)),e.extend(this,this,t)),e.isNullOrUndefined(this.toastContainer)){this.toastContainer=this.getContainer();var i="string"==typeof this.target?document.querySelector(this.target):"object"==typeof this.target?this.target:document.body;if(e.isNullOrUndefined(i))return;"BODY"===i.tagName?this.toastContainer.style.position="fixed":(this.toastContainer.style.position="absolute",i.style.position="relative"),this.setPositioning(this.position),i.appendChild(this.toastContainer)}this.isBlazorServer()&&this.element.classList.contains("e-control")?this.isToastModel(t):(this.toastEle=this.createElement("div",{className:r,id:e.getUniqueID("toast")}),this.setWidthHeight(),this.setCSSClass(this.cssClass),e.isNullOrUndefined(this.template)||""===this.template?this.personalizeToast():this.templateRendering(),this.setProgress(),this.setCloseButton(),this.setAria(),this.appendToTarget(t),this.isDevice&&screen.width<768&&new e.Touch(this.toastEle,{swipe:this.swipeHandler.bind(this)}),e.isNullOrUndefined(s)||(e.extend(s,{element:[this.toastEle]},!0),this.toastCollection.push(s)),this.isReact&&this.renderReactTemplates())},y.prototype.showToast=function(t,e){this.toastEle=this.element.querySelector("#"+t),this.show(e)},y.prototype.isToastModel=function(t){this.toastContainer=this.element,this.setPositioning(this.position);e.isNullOrUndefined(this.element.lastElementChild)||this.setProgress(),this.setAria(),this.appendToTarget(t)},y.prototype.swipeHandler=function(t){var s=e.closest(t.originalEvent.target,"."+r+":not(."+l+")"),i=this.animation.hide.effect;e.isNullOrUndefined(s)||("Right"===t.swipeDirection?(this.animation.hide.effect="SlideRightOut",this.hideToast("swipe",s)):"Left"===t.swipeDirection&&(this.animation.hide.effect="SlideLeftOut",this.hideToast("swipe",s)),this.animation.hide.effect=i)},y.prototype.templateChanges=function(t){e.isUndefined(t.content)||e.isNullOrUndefined(this.contentTemplate)||this.content===t.content||this.clearContentTemplate(),e.isUndefined(t.template)||e.isNullOrUndefined(this.toastTemplate)||this.template===t.template||this.clearToastTemplate()},y.prototype.setCSSClass=function(t){if(t){var s=-1!==t.indexOf(",")?",":" ";e.classList(this.toastEle,t.split(s),[]),this.toastContainer&&e.classList(this.toastContainer,t.split(s),[])}},y.prototype.setWidthHeight=function(){"300px"===this.width?this.toastEle.style.width=e.formatUnit(this.width):"100%"===this.width?this.toastContainer.classList.add(h):(this.toastEle.style.width=e.formatUnit(this.width),this.toastContainer.classList.remove(h)),this.toastEle.style.height=e.formatUnit(this.height)},y.prototype.templateRendering=function(){this.fetchEle(this.toastEle,this.template,"template")},y.prototype.sanitizeHelper=function(t){if(this.enableHtmlSanitizer){var s=e.SanitizeHtmlHelper.beforeSanitize();e.extend(s,s,{cancel:!1,helper:null}),this.trigger("beforeSanitizeHtml",s),s.cancel&&!e.isNullOrUndefined(s.helper)?t=s.helper(t):s.cancel||(t=e.SanitizeHtmlHelper.serializeValue(s,t))}return t},y.prototype.hide=function(t){this.hideToast("",t)},y.prototype.hideToast=function(t,s){if(!e.isNullOrUndefined(this.toastContainer)&&0!==this.toastContainer.childElementCount)if("string"!=typeof s||"All"!==s)e.isNullOrUndefined(s)&&(s=this.newestOnTop?this.toastContainer.lastElementChild:this.toastContainer.firstElementChild),this.destroyToast(s,t);else for(var i=0;i<this.toastContainer.childElementCount;i++)this.destroyToast(this.toastContainer.children[i],t)},y.prototype.fetchEle=function(t,s,i){s="string"==typeof s?this.sanitizeHelper(s):s;var o,n,r,l;if(l=t.classList.contains(a)?this.element.id+"title":t.classList.contains(c)?this.element.id+"content":this.element.id+"template",n="content"===i?this.contentTemplate:this.toastTemplate,!e.isNullOrUndefined(n))return t.appendChild(n.cloneNode(!0)),t;try{if("function"!=typeof s&&document.querySelectorAll(s).length>0){var h=null;"title"!==i&&(h=document.querySelector(s),t.appendChild(h),h.style.display="");var p=e.isNullOrUndefined(h)?n:h.cloneNode(!0);"content"===i?this.contentTemplate=p:this.toastTemplate=p}else o=e.compile(s)}catch(t){o="object"==typeof s?e.compile(s):e.compile(e.initializeCSPTemplate(function(){return s}))}if(!e.isNullOrUndefined(o))if(this.isBlazorServer()){r=o({},this,i,l,!0)}else r=o({},this,i,null,!0);return e.isNullOrUndefined(r)||!(r.length>0)||e.isNullOrUndefined(r[0].tagName)&&1===r.length?"function"!=typeof s&&0===t.childElementCount&&(t.innerHTML=s):[].slice.call(r).forEach(function(s){e.isNullOrUndefined(s.tagName)||(s.style.display=""),t.appendChild(s)}),t},y.prototype.clearProgress=function(t){e.isNullOrUndefined(this.intervalId[t])||(clearInterval(this.intervalId[t]),delete this.intervalId[t]),e.isNullOrUndefined(this.progressObj[t])||(clearInterval(this.progressObj[t].intervalId),delete this.progressObj[t])},y.prototype.removeToastContainer=function(t){t&&this.toastContainer.classList.contains("e-toast-util")&&e.detach(this.toastContainer)},y.prototype.clearContainerPos=function(t){var s=this;this.isBlazorServer()?this.toastContainer=null:(this.customPosition?(e.setStyleAttribute(this.toastContainer,{left:"",top:""}),this.removeToastContainer(t),this.toastContainer=null,this.customPosition=!1):([r+"-top-left",r+"-top-right",r+"-bottom-left",r+"-bottom-right",r+"-bottom-center",r+"-top-center",r+"-full-width"].forEach(function(t){!e.isNullOrUndefined(s.toastContainer)&&s.toastContainer.classList.contains(t)&&s.toastContainer.classList.remove(t)}),this.removeToastContainer(t),this.toastContainer=null),e.isNullOrUndefined(this.contentTemplate)||this.clearContentTemplate(),e.isNullOrUndefined(this.toastTemplate)||this.clearToastTemplate())},y.prototype.clearContentTemplate=function(){this.contentTemplate.style.display="none",document.body.appendChild(this.contentTemplate),this.contentTemplate=null},y.prototype.clearToastTemplate=function(){this.toastTemplate.style.display="none",document.body.appendChild(this.toastTemplate),this.toastTemplate=null},y.prototype.isBlazorServer=function(){return e.isBlazor()&&this.isServerRendered},y.prototype.destroyToast=function(t,s){for(var i,o=this,n=0;n<this.toastCollection.length;n++)this.toastCollection[n].element[0]===t&&(i=this.toastCollection[n],this.toastCollection.splice(n,1));var r={options:this,cancel:!1,type:s,element:t,toastContainer:this.toastContainer},l=this.animation.hide,a={duration:l.duration,name:"None"===l.effect&&"Enable"===e.animationMode?"FadeOut":l.effect,timingFunction:l.easing},h=parseInt(t.id.split("toast_")[1],10),c=this.isBlazorServer()?{options:i,toastContainer:this.toastContainer}:{options:i,toastContainer:this.toastContainer,toastObj:this};this.trigger("beforeClose",r,function(s){s.cancel||(e.isNullOrUndefined(o.progressObj[h])||e.isNullOrUndefined(t.querySelector("."+d))||(o.progressObj[h].progressEle.style.width="0%"),a.end=function(){o.clearProgress(h),o.isBlazorServer()&&!e.isNullOrUndefined(i)||e.detach(t),o.trigger("close",c),0===o.toastContainer.childElementCount&&o.clearContainerPos(!0),l=null,a=null},new e.Animation(a).animate(t))})},y.prototype.personalizeToast=function(){this.setIcon(),this.setTitle(),this.setContent(),this.actionButtons()},y.prototype.setAria=function(){e.attributes(this.toastEle,{role:"alert"})},y.prototype.setPositioning=function(t){this.isBlazorServer()||(isNaN(parseFloat(t.X))&&isNaN(parseFloat(t.Y))?this.toastContainer.classList.add(r+"-"+t.Y.toString().toLowerCase()+"-"+t.X.toString().toLowerCase()):(this.customPosition=!0,e.setStyleAttribute(this.toastContainer,{left:e.formatUnit(t.X),top:e.formatUnit(t.Y)})))},y.prototype.setCloseButton=function(){if(this.showCloseButton){this.l10n=new e.L10n("toast",{close:"Close"},this.locale),this.l10n.setLocale(this.locale);var t=this.l10n.getConstant("close"),s=this.createElement("div",{className:u+" e-icons ",attrs:{tabindex:"0","aria-label":t,role:"button"}});this.toastEle.classList.add("e-toast-header-close-icon"),this.toastEle.appendChild(s)}},y.prototype.setProgress=function(){if(this.timeOut>0){var t=parseInt(this.toastEle.id.split("toast_")[1],10);this.intervalId[t]=window.setTimeout(this.destroyToast.bind(this,this.toastEle),this.timeOut),this.progressObj[t]={hideEta:null,intervalId:null,maxHideTime:null,element:null,timeOutId:null,progressEle:null},this.progressObj[t].maxHideTime=parseFloat(this.timeOut+""),this.progressObj[t].hideEta=(new Date).getTime()+this.progressObj[t].maxHideTime,this.progressObj[t].element=this.toastEle,this.extendedTimeout>0&&(e.EventHandler.add(this.toastEle,"mouseover",this.toastHoverAction.bind(this,t)),e.EventHandler.add(this.toastEle,"mouseleave",this.delayedToastProgress.bind(this,t)),this.progressObj[t].timeOutId=this.intervalId[t]),this.showProgressBar&&(this.progressBarEle=this.createElement("div",{className:d}),this.toastEle.insertBefore(this.progressBarEle,this.toastEle.children[0]),this.progressObj[t].intervalId=setInterval(this.updateProgressBar.bind(this,this.progressObj[t]),10),this.progressObj[t].progressEle=this.progressBarEle)}},y.prototype.toastHoverAction=function(t){clearTimeout(this.progressObj[t].timeOutId),clearInterval(this.progressObj[t].intervalId),this.progressObj[t].hideEta=0;var s=this.progressObj[t].element;e.isNullOrUndefined(s.querySelector("."+d))||(this.progressObj[t].progressEle.style.width="0%")},y.prototype.delayedToastProgress=function(t){var s=this.progressObj[t],i=s.element;s.timeOutId=window.setTimeout(this.destroyToast.bind(this,i),this.extendedTimeout),s.maxHideTime=parseFloat(this.extendedTimeout+""),s.hideEta=(new Date).getTime()+s.maxHideTime,e.isNullOrUndefined(i.querySelector("."+d))||(s.intervalId=setInterval(this.updateProgressBar.bind(this,s),10))},y.prototype.updateProgressBar=function(t){var e=(t.hideEta-(new Date).getTime())/t.maxHideTime*100;e="Ltr"===this.progressDirection?100-e:e,t.progressEle.style.width=e+"%"},y.prototype.setIcon=function(){if(!e.isNullOrUndefined(this.icon)&&0!==this.icon.length){var t=this.createElement("div",{className:"e-toast-icon e-icons "+this.icon});this.toastEle.classList.add("e-toast-header-icon"),this.toastEle.appendChild(t)}},y.prototype.setTitle=function(){if(!e.isNullOrUndefined(this.title)){var t=this.createElement("div",{className:a});t=this.fetchEle(t,this.title,"title");var s=this.createElement("div",{className:p});s.appendChild(t),this.toastEle.appendChild(s)}},y.prototype.setContent=function(){var t=this.createElement("div",{className:c}),s=this.element;if(e.isNullOrUndefined(this.content)||""===this.content){var i=""!==this.element.innerHTML.replace(/\s/g,"");if((s.children.length>0||i)&&(!s.firstElementChild||!s.firstElementChild.classList.contains(r))){this.innerEle=document.createDocumentFragment();for(var o=this.createElement("div");0!==s.childNodes.length;)this.innerEle.appendChild(this.element.childNodes[0]);t.appendChild(this.innerEle),[].slice.call(t.children).forEach(function(t){o.appendChild(t.cloneNode(!0))}),this.content=o,this.appendMessageContainer(t)}}else"object"!=typeof this.content||e.isNullOrUndefined(this.content.tagName)?(t=this.fetchEle(t,this.content,"content"),this.appendMessageContainer(t)):(t.appendChild(this.content),this.content=this.content.cloneNode(!0),this.appendMessageContainer(t))},y.prototype.appendMessageContainer=function(t){if(this.toastEle.querySelectorAll("."+p).length>0)this.toastEle.querySelector("."+p).appendChild(t);else{var e=this.createElement("div",{className:p});e.appendChild(t),this.toastEle.appendChild(e)}},y.prototype.actionButtons=function(){var t=this,i=this.createElement("div",{className:"e-toast-actions"});[].slice.call(this.buttons).forEach(function(o){if(!e.isNullOrUndefined(o.model)){var n=t.createElement("button");n.setAttribute("type","button"),(e.isNullOrUndefined(o.model.cssClass)||0===o.model.cssClass.length)&&(o.model.cssClass="e-primary "+t.cssClass),n.classList.add("e-small"),new s.Button(o.model,n),e.isNullOrUndefined(o.click)||"function"!=typeof o.click||e.EventHandler.add(n,"click",o.click),i.appendChild(n)}}),i.childElementCount>0&&this.appendMessageContainer(i)},y.prototype.appendToTarget=function(t){var s=this,o=this.isBlazorServer()?{options:t,element:this.toastEle,cancel:!1}:{options:t,toastObj:this,element:this.toastEle,cancel:!1};this.trigger("beforeOpen",o,function(o){if(o.cancel){if(s.isBlazorServer()){var n=parseInt(s.toastEle.id.split("toast_")[1],10);s.clearProgress(n),e.detach(s.toastEle),0===s.toastContainer.childElementCount&&s.clearContainerPos()}}else s.isBlazorServer()||(s.toastEle.style.display="none"),s.newestOnTop&&0!==s.toastContainer.childElementCount?s.toastContainer.insertBefore(s.toastEle,s.toastContainer.children[0]):s.isBlazorServer()||s.toastContainer.appendChild(s.toastEle),e.removeClass([s.toastEle],"e-blazor-toast-hidden"),e.EventHandler.add(s.toastEle,"click",s.clickHandler,s),e.EventHandler.add(s.toastEle,"keydown",s.keyDownHandler,s),s.toastContainer.style.zIndex=i.getZindexPartial(s.toastContainer)+"",s.displayToast(s.toastEle,t)})},y.prototype.clickHandler=function(t){var s=this;this.isBlazorServer()||t.stopPropagation();var i=t.target,o=e.closest(i,"."+r),n=this.isBlazorServer()?{element:o,cancel:!1,clickToClose:!1,originalEvent:t}:{element:o,cancel:!1,clickToClose:!1,originalEvent:t,toastObj:this},l=i.classList.contains(u);this.trigger("click",n,function(t){(l&&!t.cancel||t.clickToClose)&&s.destroyToast(o,"click")})},y.prototype.keyDownHandler=function(t){if(t.target.classList.contains(u)&&(13===t.keyCode||32===t.keyCode)){var s=t.target,i=e.closest(s,"."+r);this.destroyToast(i,"key")}},y.prototype.displayToast=function(t,s){var i=this,o=this.animation.show,n={duration:o.duration,name:"None"===o.effect&&"Enable"===e.animationMode?"FadeIn":o.effect,timingFunction:o.easing},r=this.isBlazorServer()?{options:s,element:this.toastEle}:{options:s,toastObj:this,element:this.toastEle};n.begin=function(){t.style.display=""},n.end=function(){i.trigger("open",r)},new e.Animation(n).animate(t)},y.prototype.getContainer=function(){return this.element.classList.add(l),this.element},y.prototype.onPropertyChanged=function(t,e){for(var s=this.element,i=0,o=Object.keys(t);i<o.length;i++){switch(o[i]){case"enableRtl":t.enableRtl?s.classList.add("e-rtl"):s.classList.remove("e-rtl")}}},n([e.Property("300px")],y.prototype,"width",void 0),n([e.Property("auto")],y.prototype,"height",void 0),n([e.Property(null)],y.prototype,"title",void 0),n([e.Property(null)],y.prototype,"content",void 0),n([e.Property(!0)],y.prototype,"enableHtmlSanitizer",void 0),n([e.Property(null)],y.prototype,"icon",void 0),n([e.Property(null)],y.prototype,"cssClass",void 0),n([e.Property(null)],y.prototype,"template",void 0),n([e.Property(!0)],y.prototype,"newestOnTop",void 0),n([e.Property(!1)],y.prototype,"showCloseButton",void 0),n([e.Property(!1)],y.prototype,"showProgressBar",void 0),n([e.Property(5e3)],y.prototype,"timeOut",void 0),n([e.Property("Rtl")],y.prototype,"progressDirection",void 0),n([e.Property(1e3)],y.prototype,"extendedTimeout",void 0),n([e.Complex({},v)],y.prototype,"animation",void 0),n([e.Complex({},f)],y.prototype,"position",void 0),n([e.Collection([{}],m)],y.prototype,"buttons",void 0),n([e.Property(null)],y.prototype,"target",void 0),n([e.Event()],y.prototype,"created",void 0),n([e.Event()],y.prototype,"beforeSanitizeHtml",void 0),n([e.Event()],y.prototype,"destroyed",void 0),n([e.Event()],y.prototype,"open",void 0),n([e.Event()],y.prototype,"beforeOpen",void 0),n([e.Event()],y.prototype,"beforeClose",void 0),n([e.Event()],y.prototype,"close",void 0),n([e.Event()],y.prototype,"click",void 0),y=n([e.NotifyPropertyChanges],y)}(e.Component);!function(s){(t.ToastUtility||(t.ToastUtility={})).show=function(t,s,i){var o;document.querySelector("."+l)?o=document.querySelector("."+l):(o=e.createElement("div",{className:r+" "+l+" e-toast-util"}),document.body.appendChild(o));var n;if("string"==typeof t){var a=void 0,h=void 0;if(e.isNullOrUndefined(s))a="",h="";else switch(s){case"Warning":a="e-toast-warning",h="e-toast-warning-icon";break;case"Success":a="e-toast-success",h="e-toast-success-icon";break;case"Error":a="e-toast-danger",h="e-toast-error-icon";break;case"Information":a="e-toast-info",h="e-toast-info-icon"}n={content:t,cssClass:a,icon:h,timeOut:e.isNullOrUndefined(i)?5e3:i}}else n=t;var c=new C(n);return c.appendTo(o),c.show(),c}}();var g=function(){var t=function(e,s){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var s in e)e.hasOwnProperty(s)&&(t[s]=e[s])})(e,s)};return function(e,s){function i(){this.constructor=e}t(e,s),e.prototype=null===s?Object.create(s):(i.prototype=s.prototype,new i)}}(),E=function(t,e,s,i){var o,n=arguments.length,r=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,s):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(t,e,s,i);else for(var l=t.length-1;l>=0;l--)(o=t[l])&&(r=(n<3?o(r):n>3?o(e,s,r):o(e,s))||r);return n>3&&r&&Object.defineProperty(e,s,r),r};!function(t){t.Normal="Normal",t.Success="Success",t.Info="Info",t.Warning="Warning",t.Error="Error"}(t.Severity||(t.Severity={})),function(t){t.Text="Text",t.Outlined="Outlined",t.Filled="Filled"}(t.Variant||(t.Variant={}));var b="e-msg-icon",O="e-content-center",T="e-success",P="e-warning",N="e-outlined",w="e-filled",S="e-hidden",I=function(t){function s(e,s){var i=t.call(this,e,s)||this;return i.initialRender=!0,i}return g(s,t),s.prototype.getModuleName=function(){return"message"},s.prototype.getPersistData=function(){return this.addOnPersist([])},s.prototype.preRender=function(){this.l10n=new e.L10n("message",{close:"Close"},this.locale)},s.prototype.render=function(){this.innerContent=this.element.innerHTML,this.element.innerHTML="",this.msgElement=this.createElement("div",{className:"e-msg-content-wrap"}),this.initialize(),this.wireEvents(),this.renderComplete(),this.renderReactTemplates(),this.initialRender=!1},s.prototype.initialize=function(){this.element.setAttribute("role","alert"),this.setCssClass(),this.setIcon(),this.setContent(),this.setCloseIcon(),this.setSeverity(),this.setVariant(),this.setVisible(),this.enableRtl&&this.element.classList.add("e-rtl")},s.prototype.setIcon=function(){this.showIcon&&(this.iconElement=this.createElement("span",{className:b}),this.element.classList.contains(O)?this.msgElement.appendChild(this.iconElement):this.element.appendChild(this.iconElement))},s.prototype.setCloseIcon=function(){this.showCloseIcon&&(this.closeIcon=this.createElement("button",{attrs:{type:"button",class:"e-msg-close-icon"}}),this.element.appendChild(this.closeIcon),this.setTitle())},s.prototype.setTitle=function(){this.l10n.setLocale(this.locale);var t=this.l10n.getConstant("close");this.closeIcon.setAttribute("title",t),this.closeIcon.setAttribute("aria-label",t)},s.prototype.setContent=function(){this.txtElement=this.createElement("div",{className:"e-msg-content"}),this.element.classList.contains(O)?(this.msgElement.appendChild(this.txtElement),this.element.appendChild(this.msgElement)):this.element.appendChild(this.txtElement),this.setTemplate()},s.prototype.setTemplate=function(){var t;if(e.isNullOrUndefined(this.content)||""===this.content)this.txtElement.innerHTML=this.innerContent;else if(!e.isNullOrUndefined(this.content)&&""!==this.content&&("string"==typeof this.content||"string"!=typeof this.content))if(this.isVue||"string"!=typeof this.content){if(t=e.compile(this.content),!e.isNullOrUndefined(t)){var s=t({},this,"content",this.element.id+"content",!0);s&&(s=Array.prototype.slice.call(s),e.append(s,this.txtElement),this.renderReactTemplates())}}else this.txtElement.innerHTML=this.content},s.prototype.setSeverity=function(){var t=[T,P,"e-info","e-error"];e.removeClass([this.element],t),"Success"===this.severity?e.addClass([this.element],T):"Warning"===this.severity?e.addClass([this.element],P):"Error"===this.severity?e.addClass([this.element],"e-error"):"Info"===this.severity&&e.addClass([this.element],"e-info")},s.prototype.setVariant=function(){var t=[w,N];e.removeClass([this.element],t),"Outlined"===this.variant?e.addClass([this.element],N):"Filled"===this.variant&&e.addClass([this.element],w)},s.prototype.setCssClass=function(t){t&&e.removeClass([this.element],t.split(" ")),this.cssClass&&e.addClass([this.element],this.cssClass.split(" "))},s.prototype.setVisible=function(){this.visible?e.removeClass([this.element],S):(e.addClass([this.element],S),this.initialRender||this.trigger("closed",{event:event,isInteracted:!1,element:this.element}))},s.prototype.clickHandler=function(t){this.closeMessage(t)},s.prototype.keyboardHandler=function(t){32!==t.keyCode&&13!==t.keyCode||this.closeMessage(t)},s.prototype.closeMessage=function(t){e.addClass([this.element],S),this.setProperties({visible:!1},!0);var s={event:t,isInteracted:!0,element:this.element};this.trigger("closed",s)},s.prototype.wireEvents=function(){this.showCloseIcon&&(e.EventHandler.add(this.closeIcon,"click",this.clickHandler,this),e.EventHandler.add(this.closeIcon,"keydown",this.keyboardHandler,this))},s.prototype.unWireEvents=function(){this.showCloseIcon&&(e.EventHandler.remove(this.closeIcon,"click",this.clickHandler),e.EventHandler.remove(this.closeIcon,"keydown",this.keyboardHandler))},s.prototype.onPropertyChanged=function(t,s){for(var i=0,o=Object.keys(t);i<o.length;i++){switch(o[i]){case"cssClass":this.setCssClass(s.cssClass);break;case"content":this.txtElement.innerHTML="",this.setTemplate();break;case"enableRtl":this.enableRtl?this.element.classList.add("e-rtl"):this.element.classList.remove("e-rtl");break;case"locale":this.showCloseIcon&&this.setTitle();break;case"showIcon":!this.showIcon&&this.element.getElementsByClassName(b).length>0&&e.detach(this.iconElement),this.showIcon&&(this.iconElement=this.createElement("span",{className:b}),this.element.insertBefore(this.iconElement,this.txtElement));break;case"showCloseIcon":this.showCloseIcon||e.isNullOrUndefined(this.closeIcon)?(this.setCloseIcon(),this.wireEvents()):(this.unWireEvents(),e.detach(this.closeIcon));break;case"severity":this.setSeverity();break;case"variant":this.setVariant();break;case"visible":this.setVisible()}}},s.prototype.destroy=function(){var s=e.isNullOrUndefined(this.cssClass)?[""]:this.cssClass.split(" "),i=[T,P,"e-info","e-error","e-rtl",S,N,w],o=1===s.length&&""===s[0]?i:i.concat(s);e.removeClass([this.element],o),this.element.removeAttribute("role"),this.unWireEvents(),e.isNullOrUndefined(this.iconElement)||e.detach(this.iconElement),e.detach(this.txtElement),e.isNullOrUndefined(this.closeIcon)||e.detach(this.closeIcon),t.prototype.destroy.call(this)},E([e.Property(null)],s.prototype,"content",void 0),E([e.Property("")],s.prototype,"cssClass",void 0),E([e.Property(!0)],s.prototype,"showIcon",void 0),E([e.Property(!1)],s.prototype,"showCloseIcon",void 0),E([e.Property("Normal")],s.prototype,"severity",void 0),E([e.Property("Text")],s.prototype,"variant",void 0),E([e.Property(!0)],s.prototype,"visible",void 0),E([e.Event()],s.prototype,"created",void 0),E([e.Event()],s.prototype,"destroyed",void 0),E([e.Event()],s.prototype,"closed",void 0),s=E([e.NotifyPropertyChanges],s)}(e.Component),U=function(){var t=function(e,s){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var s in e)e.hasOwnProperty(s)&&(t[s]=e[s])})(e,s)};return function(e,s){function i(){this.constructor=e}t(e,s),e.prototype=null===s?Object.create(s):(i.prototype=s.prototype,new i)}}(),k=function(t,e,s,i){var o,n=arguments.length,r=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,s):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(t,e,s,i);else for(var l=t.length-1;l>=0;l--)(o=t[l])&&(r=(n<3?o(r):n>3?o(e,s,r):o(e,s))||r);return n>3&&r&&Object.defineProperty(e,s,r),r},j={TEXTSHAPE:"e-skeleton-text",CIRCLESHAPE:"e-skeleton-circle",SQUARESHAPE:"e-skeleton-square",RECTANGLESHAPE:"e-skeleton-rectangle",WAVEEFFECT:"e-shimmer-wave",PULSEEFFECT:"e-shimmer-pulse",FADEEFFECT:"e-shimmer-fade",VISIBLENONE:"e-visible-none"};!function(t){t.Text="Text",t.Circle="Circle",t.Square="Square",t.Rectangle="Rectangle"}(t.SkeletonType||(t.SkeletonType={})),function(t){t.Wave="Wave",t.Fade="Fade",t.Pulse="Pulse",t.None="None"}(t.ShimmerEffect||(t.ShimmerEffect={}));var L=function(t){function s(e,s){return t.call(this,e,s)||this}return U(s,t),s.prototype.getModuleName=function(){return"skeleton"},s.prototype.getPersistData=function(){return this.addOnPersist([])},s.prototype.preRender=function(){this.element.id||(this.element.id=e.getUniqueID("e-"+this.getModuleName())),this.updateCssClass(),e.attributes(this.element,{role:"alert","aria-busy":"true","aria-live":"polite","aria-label":this.label})},s.prototype.render=function(){this.initialize()},s.prototype.onPropertyChanged=function(t,s){for(var i=0,o=Object.keys(t);i<o.length;i++){switch(o[i]){case"width":case"height":this.updateDimension();break;case"shape":this.updateShape();break;case"shimmerEffect":this.updateEffect();break;case"visible":this.updateVisibility();break;case"label":this.element.setAttribute("aria-label",this.label);break;case"cssClass":s.cssClass&&e.removeClass([this.element],s.cssClass.split(" ")),this.updateCssClass()}}},s.prototype.destroy=function(){t.prototype.destroy.call(this);var s=["role","aria-live","aria-busy","aria-label"],i=[];this.cssClass&&(i=i.concat(this.cssClass.split(" ")));for(var o=0;o<s.length;o++)this.element.removeAttribute(s[parseInt(o.toString(),10)]);i=(i=i.concat(this.element.classList.value.match(/(e-skeleton-[^\s]+)/g))).concat(this.element.classList.value.match(/(e-shimmer-[^\s]+)/g)),e.removeClass([this.element],i)},s.prototype.initialize=function(){this.updateShape(),this.updateEffect(),this.updateVisibility()},s.prototype.updateShape=function(){var t=j[this.shape.toUpperCase()+"SHAPE"],s=this.element.classList.value.match(/(e-skeleton-[^\s]+)/g);this.updateDimension(),s&&e.removeClass([this.element],s),e.addClass([this.element],[t])},s.prototype.updateDimension=function(){var t=!this.width&&["Text","Rectangle"].indexOf(this.shape)>-1?"100%":e.formatUnit(this.width),s=["Circle","Square"].indexOf(this.shape)>-1?t:e.formatUnit(this.height);this.element.style.width=t,this.element.style.height=s},s.prototype.updateEffect=function(){var t=this.element.classList.value.match(/(e-shimmer-[^\s]+)/g);t&&e.removeClass([this.element],t),e.addClass([this.element],[j[this.shimmerEffect.toUpperCase()+"EFFECT"]])},s.prototype.updateVisibility=function(){this.element.classList[this.visible?"remove":"add"](j.VISIBLENONE)},s.prototype.updateCssClass=function(){this.cssClass&&e.addClass([this.element],this.cssClass.split(" "))},k([e.Property("")],s.prototype,"width",void 0),k([e.Property("")],s.prototype,"height",void 0),k([e.Property(!0)],s.prototype,"visible",void 0),k([e.Property("Text")],s.prototype,"shape",void 0),k([e.Property("Wave")],s.prototype,"shimmerEffect",void 0),k([e.Property("Loading...")],s.prototype,"label",void 0),k([e.Property("")],s.prototype,"cssClass",void 0),s=k([e.NotifyPropertyChanges],s)}(e.Component);t.ToastPosition=f,t.ButtonModelProps=m,t.ToastAnimations=y,t.ToastAnimationSettings=v,t.Toast=C,t.Message=I,t.Skeleton=L,Object.defineProperty(t,"__esModule",{value:!0})});
//# sourceMappingURL=ej2-notifications.umd.min.js.map

@@ -370,3 +370,3 @@ import { Animation, Browser, ChildProperty, Collection, Complex, Component, Event, EventHandler, L10n, NotifyPropertyChanges, Property, SanitizeHtmlHelper, Touch, addClass, animationMode, append, attributes, classList, closest, compile, createElement, detach, extend, formatUnit, getUniqueID, initializeCSPTemplate, isBlazor, isNullOrUndefined, isUndefined, removeClass, setStyleAttribute } from '@syncfusion/ej2-base';

else {
templateFn = typeof value == 'object' ? compile(value) : compile(initializeCSPTemplate(function () { return value; }));
templateFn = compile(value);
}

@@ -373,0 +373,0 @@ }

@@ -405,3 +405,3 @@ import { Animation, Browser, ChildProperty, Collection, Complex, Component, Event, EventHandler, L10n, NotifyPropertyChanges, Property, SanitizeHtmlHelper, Touch, addClass, animationMode, append, attributes, classList, closest, compile, createElement, detach, extend, formatUnit, getUniqueID, initializeCSPTemplate, isBlazor, isNullOrUndefined, isUndefined, removeClass, setStyleAttribute } from '@syncfusion/ej2-base';

else {
templateFn = typeof value == 'object' ? compile(value) : compile(initializeCSPTemplate(function () { return value; }));
templateFn = compile(value);
}

@@ -408,0 +408,0 @@ }

/*!
* filename: ej2-notifications.min.js
* version : 23.2.4
* version : 23.2.5
* Copyright Syncfusion Inc. 2001 - 2023. All rights reserved.

@@ -10,3 +10,3 @@ * Use of this code is subject to the terms of our license.

*/
this.ej=this.ej||{},this.ej.notifications=function(t,e,s,i){"use strict";var o=function(){var t=function(e,s){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var s in e)e.hasOwnProperty(s)&&(t[s]=e[s])})(e,s)};return function(e,s){function i(){this.constructor=e}t(e,s),e.prototype=null===s?Object.create(s):(i.prototype=s.prototype,new i)}}(),n=function(t,e,s,i){var o,n=arguments.length,r=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,s):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(t,e,s,i);else for(var l=t.length-1;l>=0;l--)(o=t[l])&&(r=(n<3?o(r):n>3?o(e,s,r):o(e,s))||r);return n>3&&r&&Object.defineProperty(e,s,r),r},r="e-toast",l="e-toast-container",a="e-toast-message",h="e-toast-progress",c="e-toast-close-icon",p=function(t){function s(){return null!==t&&t.apply(this,arguments)||this}return o(s,t),n([e.Property("Left")],s.prototype,"X",void 0),n([e.Property("Top")],s.prototype,"Y",void 0),s}(e.ChildProperty),d=function(t){function s(){return null!==t&&t.apply(this,arguments)||this}return o(s,t),n([e.Property(null)],s.prototype,"model",void 0),n([e.Property(null)],s.prototype,"click",void 0),s}(e.ChildProperty),u=function(t){function s(){return null!==t&&t.apply(this,arguments)||this}return o(s,t),n([e.Property("FadeIn")],s.prototype,"effect",void 0),n([e.Property(600)],s.prototype,"duration",void 0),n([e.Property("ease")],s.prototype,"easing",void 0),s}(e.ChildProperty),m=function(t){function s(){return null!==t&&t.apply(this,arguments)||this}return o(s,t),n([e.Complex({effect:"FadeIn",duration:600,easing:"ease"},u)],s.prototype,"show",void 0),n([e.Complex({effect:"FadeOut",duration:600,easing:"ease"},u)],s.prototype,"hide",void 0),s}(e.ChildProperty),f=function(t){function u(e,s){var i=t.call(this,e,s)||this;return i.toastCollection=[],i.needsID=!0,i}return o(u,t),u.prototype.getModuleName=function(){return"toast"},u.prototype.getPersistData=function(){return this.addOnPersist([])},u.prototype.destroy=function(){this.hide("All"),this.element.classList.remove(l),e.setStyleAttribute(this.element,{position:"","z-index":""}),e.isNullOrUndefined(this.refElement)||e.isNullOrUndefined(this.refElement.parentElement)||(this.refElement.parentElement.insertBefore(this.element,this.refElement),e.detach(this.refElement),this.refElement=void 0),this.isBlazorServer()||t.prototype.destroy.call(this)},u.prototype.preRender=function(){this.isDevice=e.Browser.isDevice,"300px"===this.width&&(this.width=this.isDevice&&screen.width<768?"100%":"300px"),e.isNullOrUndefined(this.target)&&(this.target=document.body),this.enableRtl&&!this.isBlazorServer()&&this.element.classList.add("e-rtl")},u.prototype.render=function(){this.progressObj=[],this.intervalId=[],this.contentTemplate=null,this.toastTemplate=null,this.renderComplete(),this.initRenderClass=this.element.className},u.prototype.show=function(t){var s;if(e.isNullOrUndefined(t)||(this.templateChanges(t),s=JSON.parse(JSON.stringify(t)),e.extend(this,this,t)),e.isNullOrUndefined(this.toastContainer)){this.toastContainer=this.getContainer();var i="string"==typeof this.target?document.querySelector(this.target):"object"==typeof this.target?this.target:document.body;if(e.isNullOrUndefined(i))return;"BODY"===i.tagName?this.toastContainer.style.position="fixed":(this.toastContainer.style.position="absolute",i.style.position="relative"),this.setPositioning(this.position),i.appendChild(this.toastContainer)}if(this.isBlazorServer()&&this.element.classList.contains("e-control"))return void this.isToastModel(t);this.toastEle=this.createElement("div",{className:r,id:e.getUniqueID("toast")}),this.setWidthHeight(),this.setCSSClass(this.cssClass),e.isNullOrUndefined(this.template)||""===this.template?this.personalizeToast():this.templateRendering(),this.setProgress(),this.setCloseButton(),this.setAria(),this.appendToTarget(t),this.isDevice&&screen.width<768&&new e.Touch(this.toastEle,{swipe:this.swipeHandler.bind(this)}),e.isNullOrUndefined(s)||(e.extend(s,{element:[this.toastEle]},!0),this.toastCollection.push(s)),this.isReact&&this.renderReactTemplates()},u.prototype.showToast=function(t,e){this.toastEle=this.element.querySelector("#"+t),this.show(e)},u.prototype.isToastModel=function(t){this.toastContainer=this.element,this.setPositioning(this.position);var s=this;e.isNullOrUndefined(s.element.lastElementChild)||this.setProgress(),this.setAria(),this.appendToTarget(t)},u.prototype.swipeHandler=function(t){var s=e.closest(t.originalEvent.target,"."+r+":not(."+l+")"),i=this.animation.hide.effect;e.isNullOrUndefined(s)||("Right"===t.swipeDirection?(this.animation.hide.effect="SlideRightOut",this.hideToast("swipe",s)):"Left"===t.swipeDirection&&(this.animation.hide.effect="SlideLeftOut",this.hideToast("swipe",s)),this.animation.hide.effect=i)},u.prototype.templateChanges=function(t){e.isUndefined(t.content)||e.isNullOrUndefined(this.contentTemplate)||this.content===t.content||this.clearContentTemplate(),e.isUndefined(t.template)||e.isNullOrUndefined(this.toastTemplate)||this.template===t.template||this.clearToastTemplate()},u.prototype.setCSSClass=function(t){if(t){var s=-1!==t.indexOf(",")?",":" ";e.classList(this.toastEle,t.split(s),[]),this.toastContainer&&e.classList(this.toastContainer,t.split(s),[])}},u.prototype.setWidthHeight=function(){"300px"===this.width?this.toastEle.style.width=e.formatUnit(this.width):"100%"===this.width?this.toastContainer.classList.add("e-toast-full-width"):(this.toastEle.style.width=e.formatUnit(this.width),this.toastContainer.classList.remove("e-toast-full-width")),this.toastEle.style.height=e.formatUnit(this.height)},u.prototype.templateRendering=function(){this.fetchEle(this.toastEle,this.template,"template")},u.prototype.sanitizeHelper=function(t){if(this.enableHtmlSanitizer){var s=e.SanitizeHtmlHelper.beforeSanitize(),i={cancel:!1,helper:null};e.extend(s,s,i),this.trigger("beforeSanitizeHtml",s),s.cancel&&!e.isNullOrUndefined(s.helper)?t=s.helper(t):s.cancel||(t=e.SanitizeHtmlHelper.serializeValue(s,t))}return t},u.prototype.hide=function(t){this.hideToast("",t)},u.prototype.hideToast=function(t,s){if(!e.isNullOrUndefined(this.toastContainer)&&0!==this.toastContainer.childElementCount)if("string"!=typeof s||"All"!==s)e.isNullOrUndefined(s)&&(s=this.newestOnTop?this.toastContainer.lastElementChild:this.toastContainer.firstElementChild),this.destroyToast(s,t);else for(var i=0;i<this.toastContainer.childElementCount;i++)this.destroyToast(this.toastContainer.children[i],t)},u.prototype.fetchEle=function(t,s,i){s="string"==typeof s?this.sanitizeHelper(s):s;var o,n,r,l;if(l=t.classList.contains("e-toast-title")?this.element.id+"title":t.classList.contains("e-toast-content")?this.element.id+"content":this.element.id+"template",n="content"===i?this.contentTemplate:this.toastTemplate,!e.isNullOrUndefined(n))return t.appendChild(n.cloneNode(!0)),t;try{if("function"!=typeof s&&document.querySelectorAll(s).length>0){var a=null;"title"!==i&&(a=document.querySelector(s),t.appendChild(a),a.style.display="");var h=e.isNullOrUndefined(a)?n:a.cloneNode(!0);"content"===i?this.contentTemplate=h:this.toastTemplate=h}else o="object"==typeof s?e.compile(s):e.compile(e.initializeCSPTemplate(function(){return s}))}catch(t){o="object"==typeof s?e.compile(s):e.compile(e.initializeCSPTemplate(function(){return s}))}if(!e.isNullOrUndefined(o))if(this.isBlazorServer()){r=o({},this,i,l,!0)}else r=o({},this,i,null,!0);return e.isNullOrUndefined(r)||!(r.length>0)||e.isNullOrUndefined(r[0].tagName)&&1===r.length?"function"!=typeof s&&0===t.childElementCount&&(t.innerHTML=s):[].slice.call(r).forEach(function(s){e.isNullOrUndefined(s.tagName)||(s.style.display=""),t.appendChild(s)}),t},u.prototype.clearProgress=function(t){e.isNullOrUndefined(this.intervalId[t])||(clearInterval(this.intervalId[t]),delete this.intervalId[t]),e.isNullOrUndefined(this.progressObj[t])||(clearInterval(this.progressObj[t].intervalId),delete this.progressObj[t])},u.prototype.removeToastContainer=function(t){t&&this.toastContainer.classList.contains("e-toast-util")&&e.detach(this.toastContainer)},u.prototype.clearContainerPos=function(t){var s=this;if(this.isBlazorServer())return void(this.toastContainer=null);this.customPosition?(e.setStyleAttribute(this.toastContainer,{left:"",top:""}),this.removeToastContainer(t),this.toastContainer=null,this.customPosition=!1):([r+"-top-left",r+"-top-right",r+"-bottom-left",r+"-bottom-right",r+"-bottom-center",r+"-top-center",r+"-full-width"].forEach(function(t){!e.isNullOrUndefined(s.toastContainer)&&s.toastContainer.classList.contains(t)&&s.toastContainer.classList.remove(t)}),this.removeToastContainer(t),this.toastContainer=null),e.isNullOrUndefined(this.contentTemplate)||this.clearContentTemplate(),e.isNullOrUndefined(this.toastTemplate)||this.clearToastTemplate()},u.prototype.clearContentTemplate=function(){this.contentTemplate.style.display="none",document.body.appendChild(this.contentTemplate),this.contentTemplate=null},u.prototype.clearToastTemplate=function(){this.toastTemplate.style.display="none",document.body.appendChild(this.toastTemplate),this.toastTemplate=null},u.prototype.isBlazorServer=function(){return e.isBlazor()&&this.isServerRendered},u.prototype.destroyToast=function(t,s){for(var i,o=this,n=0;n<this.toastCollection.length;n++)this.toastCollection[n].element[0]===t&&(i=this.toastCollection[n],this.toastCollection.splice(n,1));var r={options:this,cancel:!1,type:s,element:t,toastContainer:this.toastContainer},l=this.animation.hide,a={duration:l.duration,name:"None"===l.effect&&"Enable"===e.animationMode?"FadeOut":l.effect,timingFunction:l.easing},c=parseInt(t.id.split("toast_")[1],10),p=this.isBlazorServer()?{options:i,toastContainer:this.toastContainer}:{options:i,toastContainer:this.toastContainer,toastObj:this};this.trigger("beforeClose",r,function(s){s.cancel||(e.isNullOrUndefined(o.progressObj[c])||e.isNullOrUndefined(t.querySelector("."+h))||(o.progressObj[c].progressEle.style.width="0%"),a.end=function(){o.clearProgress(c),o.isBlazorServer()&&!e.isNullOrUndefined(i)||e.detach(t),o.trigger("close",p),0===o.toastContainer.childElementCount&&o.clearContainerPos(!0),l=null,a=null},new e.Animation(a).animate(t))})},u.prototype.personalizeToast=function(){this.setIcon(),this.setTitle(),this.setContent(),this.actionButtons()},u.prototype.setAria=function(){e.attributes(this.toastEle,{role:"alert"})},u.prototype.setPositioning=function(t){this.isBlazorServer()||(isNaN(parseFloat(t.X))&&isNaN(parseFloat(t.Y))?this.toastContainer.classList.add(r+"-"+t.Y.toString().toLowerCase()+"-"+t.X.toString().toLowerCase()):(this.customPosition=!0,e.setStyleAttribute(this.toastContainer,{left:e.formatUnit(t.X),top:e.formatUnit(t.Y)})))},u.prototype.setCloseButton=function(){if(this.showCloseButton){var t={close:"Close"};this.l10n=new e.L10n("toast",t,this.locale),this.l10n.setLocale(this.locale);var s=this.l10n.getConstant("close"),i=this.createElement("div",{className:c+" e-icons ",attrs:{tabindex:"0","aria-label":s,role:"button"}});this.toastEle.classList.add("e-toast-header-close-icon"),this.toastEle.appendChild(i)}},u.prototype.setProgress=function(){if(this.timeOut>0){var t=parseInt(this.toastEle.id.split("toast_")[1],10);this.intervalId[t]=window.setTimeout(this.destroyToast.bind(this,this.toastEle),this.timeOut),this.progressObj[t]={hideEta:null,intervalId:null,maxHideTime:null,element:null,timeOutId:null,progressEle:null},this.progressObj[t].maxHideTime=parseFloat(this.timeOut+""),this.progressObj[t].hideEta=(new Date).getTime()+this.progressObj[t].maxHideTime,this.progressObj[t].element=this.toastEle,this.extendedTimeout>0&&(e.EventHandler.add(this.toastEle,"mouseover",this.toastHoverAction.bind(this,t)),e.EventHandler.add(this.toastEle,"mouseleave",this.delayedToastProgress.bind(this,t)),this.progressObj[t].timeOutId=this.intervalId[t]),this.showProgressBar&&(this.progressBarEle=this.createElement("div",{className:h}),this.toastEle.insertBefore(this.progressBarEle,this.toastEle.children[0]),this.progressObj[t].intervalId=setInterval(this.updateProgressBar.bind(this,this.progressObj[t]),10),this.progressObj[t].progressEle=this.progressBarEle)}},u.prototype.toastHoverAction=function(t){clearTimeout(this.progressObj[t].timeOutId),clearInterval(this.progressObj[t].intervalId),this.progressObj[t].hideEta=0;var s=this.progressObj[t].element;e.isNullOrUndefined(s.querySelector("."+h))||(this.progressObj[t].progressEle.style.width="0%")},u.prototype.delayedToastProgress=function(t){var s=this.progressObj[t],i=s.element;s.timeOutId=window.setTimeout(this.destroyToast.bind(this,i),this.extendedTimeout),s.maxHideTime=parseFloat(this.extendedTimeout+""),s.hideEta=(new Date).getTime()+s.maxHideTime,e.isNullOrUndefined(i.querySelector("."+h))||(s.intervalId=setInterval(this.updateProgressBar.bind(this,s),10))},u.prototype.updateProgressBar=function(t){var e=(t.hideEta-(new Date).getTime())/t.maxHideTime*100;e="Ltr"===this.progressDirection?100-e:e,t.progressEle.style.width=e+"%"},u.prototype.setIcon=function(){if(!e.isNullOrUndefined(this.icon)&&0!==this.icon.length){var t=this.createElement("div",{className:"e-toast-icon e-icons "+this.icon});this.toastEle.classList.add("e-toast-header-icon"),this.toastEle.appendChild(t)}},u.prototype.setTitle=function(){if(!e.isNullOrUndefined(this.title)){var t=this.createElement("div",{className:"e-toast-title"});t=this.fetchEle(t,this.title,"title");var s=this.createElement("div",{className:a});s.appendChild(t),this.toastEle.appendChild(s)}},u.prototype.setContent=function(){var t=this.createElement("div",{className:"e-toast-content"}),s=this.element;if(e.isNullOrUndefined(this.content)||""===this.content){var i=""!==this.element.innerHTML.replace(/\s/g,"");if((s.children.length>0||i)&&(!s.firstElementChild||!s.firstElementChild.classList.contains(r))){this.innerEle=document.createDocumentFragment();for(var o=this.createElement("div");0!==s.childNodes.length;)this.innerEle.appendChild(this.element.childNodes[0]);t.appendChild(this.innerEle),[].slice.call(t.children).forEach(function(t){o.appendChild(t.cloneNode(!0))}),this.content=o,this.appendMessageContainer(t)}}else"object"!=typeof this.content||e.isNullOrUndefined(this.content.tagName)?(t=this.fetchEle(t,this.content,"content"),this.appendMessageContainer(t)):(t.appendChild(this.content),this.content=this.content.cloneNode(!0),this.appendMessageContainer(t))},u.prototype.appendMessageContainer=function(t){if(this.toastEle.querySelectorAll("."+a).length>0)this.toastEle.querySelector("."+a).appendChild(t);else{var e=this.createElement("div",{className:a});e.appendChild(t),this.toastEle.appendChild(e)}},u.prototype.actionButtons=function(){var t=this,i=this.createElement("div",{className:"e-toast-actions"});[].slice.call(this.buttons).forEach(function(o){if(!e.isNullOrUndefined(o.model)){var n=t.createElement("button");n.setAttribute("type","button"),(e.isNullOrUndefined(o.model.cssClass)||0===o.model.cssClass.length)&&(o.model.cssClass="e-primary "+t.cssClass),n.classList.add("e-small"),new s.Button(o.model,n),e.isNullOrUndefined(o.click)||"function"!=typeof o.click||e.EventHandler.add(n,"click",o.click),i.appendChild(n)}}),i.childElementCount>0&&this.appendMessageContainer(i)},u.prototype.appendToTarget=function(t){var s=this,o=this.isBlazorServer()?{options:t,element:this.toastEle,cancel:!1}:{options:t,toastObj:this,element:this.toastEle,cancel:!1};this.trigger("beforeOpen",o,function(o){if(o.cancel){if(s.isBlazorServer()){var n=parseInt(s.toastEle.id.split("toast_")[1],10);s.clearProgress(n),e.detach(s.toastEle),0===s.toastContainer.childElementCount&&s.clearContainerPos()}}else s.isBlazorServer()||(s.toastEle.style.display="none"),s.newestOnTop&&0!==s.toastContainer.childElementCount?s.toastContainer.insertBefore(s.toastEle,s.toastContainer.children[0]):s.isBlazorServer()||s.toastContainer.appendChild(s.toastEle),e.removeClass([s.toastEle],"e-blazor-toast-hidden"),e.EventHandler.add(s.toastEle,"click",s.clickHandler,s),e.EventHandler.add(s.toastEle,"keydown",s.keyDownHandler,s),s.toastContainer.style.zIndex=i.getZindexPartial(s.toastContainer)+"",s.displayToast(s.toastEle,t)})},u.prototype.clickHandler=function(t){var s=this;this.isBlazorServer()||t.stopPropagation();var i=t.target,o=e.closest(i,"."+r),n=this.isBlazorServer()?{element:o,cancel:!1,clickToClose:!1,originalEvent:t}:{element:o,cancel:!1,clickToClose:!1,originalEvent:t,toastObj:this},l=i.classList.contains(c);this.trigger("click",n,function(t){(l&&!t.cancel||t.clickToClose)&&s.destroyToast(o,"click")})},u.prototype.keyDownHandler=function(t){if(t.target.classList.contains(c)&&(13===t.keyCode||32===t.keyCode)){var s=t.target,i=e.closest(s,"."+r);this.destroyToast(i,"key")}},u.prototype.displayToast=function(t,s){var i=this,o=this.animation.show,n={duration:o.duration,name:"None"===o.effect&&"Enable"===e.animationMode?"FadeIn":o.effect,timingFunction:o.easing},r=this.isBlazorServer()?{options:s,element:this.toastEle}:{options:s,toastObj:this,element:this.toastEle};n.begin=function(){t.style.display=""},n.end=function(){i.trigger("open",r)},new e.Animation(n).animate(t)},u.prototype.getContainer=function(){return this.element.classList.add(l),this.element},u.prototype.onPropertyChanged=function(t,e){for(var s=this.element,i=0,o=Object.keys(t);i<o.length;i++)switch(o[i]){case"enableRtl":t.enableRtl?s.classList.add("e-rtl"):s.classList.remove("e-rtl")}},n([e.Property("300px")],u.prototype,"width",void 0),n([e.Property("auto")],u.prototype,"height",void 0),n([e.Property(null)],u.prototype,"title",void 0),n([e.Property(null)],u.prototype,"content",void 0),n([e.Property(!0)],u.prototype,"enableHtmlSanitizer",void 0),n([e.Property(null)],u.prototype,"icon",void 0),n([e.Property(null)],u.prototype,"cssClass",void 0),n([e.Property(null)],u.prototype,"template",void 0),n([e.Property(!0)],u.prototype,"newestOnTop",void 0),n([e.Property(!1)],u.prototype,"showCloseButton",void 0),n([e.Property(!1)],u.prototype,"showProgressBar",void 0),n([e.Property(5e3)],u.prototype,"timeOut",void 0),n([e.Property("Rtl")],u.prototype,"progressDirection",void 0),n([e.Property(1e3)],u.prototype,"extendedTimeout",void 0),n([e.Complex({},m)],u.prototype,"animation",void 0),n([e.Complex({},p)],u.prototype,"position",void 0),n([e.Collection([{}],d)],u.prototype,"buttons",void 0),n([e.Property(null)],u.prototype,"target",void 0),n([e.Event()],u.prototype,"created",void 0),n([e.Event()],u.prototype,"beforeSanitizeHtml",void 0),n([e.Event()],u.prototype,"destroyed",void 0),n([e.Event()],u.prototype,"open",void 0),n([e.Event()],u.prototype,"beforeOpen",void 0),n([e.Event()],u.prototype,"beforeClose",void 0),n([e.Event()],u.prototype,"close",void 0),n([e.Event()],u.prototype,"click",void 0),u=n([e.NotifyPropertyChanges],u)}(e.Component);!function(t){function s(t,s,i){var o;document.querySelector("."+l)?o=document.querySelector("."+l):(o=e.createElement("div",{className:r+" "+l+" e-toast-util"}),document.body.appendChild(o));var n;if("string"==typeof t){var a=void 0,h=void 0;if(e.isNullOrUndefined(s))a="",h="";else switch(s){case"Warning":a="e-toast-warning",h="e-toast-warning-icon";break;case"Success":a="e-toast-success",h="e-toast-success-icon";break;case"Error":a="e-toast-danger",h="e-toast-error-icon";break;case"Information":a="e-toast-info",h="e-toast-info-icon"}n={content:t,cssClass:a,icon:h,timeOut:e.isNullOrUndefined(i)?5e3:i}}else n=t;var c=new f(n);return c.appendTo(o),c.show(),c}t.show=s}(t.ToastUtility||(t.ToastUtility={}));var y=function(){var t=function(e,s){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var s in e)e.hasOwnProperty(s)&&(t[s]=e[s])})(e,s)};return function(e,s){function i(){this.constructor=e}t(e,s),e.prototype=null===s?Object.create(s):(i.prototype=s.prototype,new i)}}(),v=function(t,e,s,i){var o,n=arguments.length,r=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,s):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(t,e,s,i);else for(var l=t.length-1;l>=0;l--)(o=t[l])&&(r=(n<3?o(r):n>3?o(e,s,r):o(e,s))||r);return n>3&&r&&Object.defineProperty(e,s,r),r};!function(t){t.Normal="Normal",t.Success="Success",t.Info="Info",t.Warning="Warning",t.Error="Error"}(t.Severity||(t.Severity={})),function(t){t.Text="Text",t.Outlined="Outlined",t.Filled="Filled"}(t.Variant||(t.Variant={}));var C="e-hidden",g=function(t){function s(e,s){var i=t.call(this,e,s)||this;return i.initialRender=!0,i}return y(s,t),s.prototype.getModuleName=function(){return"message"},s.prototype.getPersistData=function(){return this.addOnPersist([])},s.prototype.preRender=function(){var t={close:"Close"};this.l10n=new e.L10n("message",t,this.locale)},s.prototype.render=function(){this.innerContent=this.element.innerHTML,this.element.innerHTML="",this.msgElement=this.createElement("div",{className:"e-msg-content-wrap"}),this.initialize(),this.wireEvents(),this.renderComplete(),this.renderReactTemplates(),this.initialRender=!1},s.prototype.initialize=function(){this.element.setAttribute("role","alert"),this.setCssClass(),this.setIcon(),this.setContent(),this.setCloseIcon(),this.setSeverity(),this.setVariant(),this.setVisible(),this.enableRtl&&this.element.classList.add("e-rtl")},s.prototype.setIcon=function(){this.showIcon&&(this.iconElement=this.createElement("span",{className:"e-msg-icon"}),this.element.classList.contains("e-content-center")?this.msgElement.appendChild(this.iconElement):this.element.appendChild(this.iconElement))},s.prototype.setCloseIcon=function(){this.showCloseIcon&&(this.closeIcon=this.createElement("button",{attrs:{type:"button",class:"e-msg-close-icon"}}),this.element.appendChild(this.closeIcon),this.setTitle())},s.prototype.setTitle=function(){this.l10n.setLocale(this.locale);var t=this.l10n.getConstant("close");this.closeIcon.setAttribute("title",t),this.closeIcon.setAttribute("aria-label",t)},s.prototype.setContent=function(){this.txtElement=this.createElement("div",{className:"e-msg-content"}),this.element.classList.contains("e-content-center")?(this.msgElement.appendChild(this.txtElement),this.element.appendChild(this.msgElement)):this.element.appendChild(this.txtElement),this.setTemplate()},s.prototype.setTemplate=function(){var t;if(e.isNullOrUndefined(this.content)||""===this.content)this.txtElement.innerHTML=this.innerContent;else if(!e.isNullOrUndefined(this.content)&&""!==this.content&&("string"==typeof this.content||"string"!=typeof this.content))if(this.isVue||"string"!=typeof this.content){if(t=e.compile(this.content),!e.isNullOrUndefined(t)){var s=t({},this,"content",this.element.id+"content",!0);s&&(s=Array.prototype.slice.call(s),e.append(s,this.txtElement),this.renderReactTemplates())}}else this.txtElement.innerHTML=this.content},s.prototype.setSeverity=function(){var t=["e-success","e-warning","e-info","e-error"];e.removeClass([this.element],t),"Success"===this.severity?e.addClass([this.element],"e-success"):"Warning"===this.severity?e.addClass([this.element],"e-warning"):"Error"===this.severity?e.addClass([this.element],"e-error"):"Info"===this.severity&&e.addClass([this.element],"e-info")},s.prototype.setVariant=function(){var t=["e-filled","e-outlined"];e.removeClass([this.element],t),"Outlined"===this.variant?e.addClass([this.element],"e-outlined"):"Filled"===this.variant&&e.addClass([this.element],"e-filled")},s.prototype.setCssClass=function(t){t&&e.removeClass([this.element],t.split(" ")),this.cssClass&&e.addClass([this.element],this.cssClass.split(" "))},s.prototype.setVisible=function(){this.visible?e.removeClass([this.element],C):(e.addClass([this.element],C),this.initialRender||this.trigger("closed",{event:event,isInteracted:!1,element:this.element}))},s.prototype.clickHandler=function(t){this.closeMessage(t)},s.prototype.keyboardHandler=function(t){32!==t.keyCode&&13!==t.keyCode||this.closeMessage(t)},s.prototype.closeMessage=function(t){e.addClass([this.element],C),this.setProperties({visible:!1},!0);var s={event:t,isInteracted:!0,element:this.element};this.trigger("closed",s)},s.prototype.wireEvents=function(){this.showCloseIcon&&(e.EventHandler.add(this.closeIcon,"click",this.clickHandler,this),e.EventHandler.add(this.closeIcon,"keydown",this.keyboardHandler,this))},s.prototype.unWireEvents=function(){this.showCloseIcon&&(e.EventHandler.remove(this.closeIcon,"click",this.clickHandler),e.EventHandler.remove(this.closeIcon,"keydown",this.keyboardHandler))},s.prototype.onPropertyChanged=function(t,s){for(var i=0,o=Object.keys(t);i<o.length;i++)switch(o[i]){case"cssClass":this.setCssClass(s.cssClass);break;case"content":this.txtElement.innerHTML="",this.setTemplate();break;case"enableRtl":this.enableRtl?this.element.classList.add("e-rtl"):this.element.classList.remove("e-rtl");break;case"locale":this.showCloseIcon&&this.setTitle();break;case"showIcon":!this.showIcon&&this.element.getElementsByClassName("e-msg-icon").length>0&&e.detach(this.iconElement),this.showIcon&&(this.iconElement=this.createElement("span",{className:"e-msg-icon"}),this.element.insertBefore(this.iconElement,this.txtElement));break;case"showCloseIcon":this.showCloseIcon||e.isNullOrUndefined(this.closeIcon)?(this.setCloseIcon(),this.wireEvents()):(this.unWireEvents(),e.detach(this.closeIcon));break;case"severity":this.setSeverity();break;case"variant":this.setVariant();break;case"visible":this.setVisible()}},s.prototype.destroy=function(){var s=e.isNullOrUndefined(this.cssClass)?[""]:this.cssClass.split(" "),i=["e-success","e-warning","e-info","e-error","e-rtl",C,"e-outlined","e-filled"],o=1===s.length&&""===s[0]?i:i.concat(s);e.removeClass([this.element],o),this.element.removeAttribute("role"),this.unWireEvents(),e.isNullOrUndefined(this.iconElement)||e.detach(this.iconElement),e.detach(this.txtElement),e.isNullOrUndefined(this.closeIcon)||e.detach(this.closeIcon),t.prototype.destroy.call(this)},v([e.Property(null)],s.prototype,"content",void 0),v([e.Property("")],s.prototype,"cssClass",void 0),v([e.Property(!0)],s.prototype,"showIcon",void 0),v([e.Property(!1)],s.prototype,"showCloseIcon",void 0),v([e.Property("Normal")],s.prototype,"severity",void 0),v([e.Property("Text")],s.prototype,"variant",void 0),v([e.Property(!0)],s.prototype,"visible",void 0),v([e.Event()],s.prototype,"created",void 0),v([e.Event()],s.prototype,"destroyed",void 0),v([e.Event()],s.prototype,"closed",void 0),s=v([e.NotifyPropertyChanges],s)}(e.Component),E=function(){var t=function(e,s){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var s in e)e.hasOwnProperty(s)&&(t[s]=e[s])})(e,s)};return function(e,s){function i(){this.constructor=e}t(e,s),e.prototype=null===s?Object.create(s):(i.prototype=s.prototype,new i)}}(),b=function(t,e,s,i){var o,n=arguments.length,r=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,s):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(t,e,s,i);else for(var l=t.length-1;l>=0;l--)(o=t[l])&&(r=(n<3?o(r):n>3?o(e,s,r):o(e,s))||r);return n>3&&r&&Object.defineProperty(e,s,r),r},O={TEXTSHAPE:"e-skeleton-text",CIRCLESHAPE:"e-skeleton-circle",SQUARESHAPE:"e-skeleton-square",RECTANGLESHAPE:"e-skeleton-rectangle",WAVEEFFECT:"e-shimmer-wave",PULSEEFFECT:"e-shimmer-pulse",FADEEFFECT:"e-shimmer-fade",VISIBLENONE:"e-visible-none"};!function(t){t.Text="Text",t.Circle="Circle",t.Square="Square",t.Rectangle="Rectangle"}(t.SkeletonType||(t.SkeletonType={})),function(t){t.Wave="Wave",t.Fade="Fade",t.Pulse="Pulse",t.None="None"}(t.ShimmerEffect||(t.ShimmerEffect={}));var T=function(t){function s(e,s){return t.call(this,e,s)||this}return E(s,t),s.prototype.getModuleName=function(){return"skeleton"},s.prototype.getPersistData=function(){return this.addOnPersist([])},s.prototype.preRender=function(){this.element.id||(this.element.id=e.getUniqueID("e-"+this.getModuleName())),this.updateCssClass(),e.attributes(this.element,{role:"alert","aria-busy":"true","aria-live":"polite","aria-label":this.label})},s.prototype.render=function(){this.initialize()},s.prototype.onPropertyChanged=function(t,s){for(var i=0,o=Object.keys(t);i<o.length;i++)switch(o[i]){case"width":case"height":this.updateDimension();break;case"shape":this.updateShape();break;case"shimmerEffect":this.updateEffect();break;case"visible":this.updateVisibility();break;case"label":this.element.setAttribute("aria-label",this.label);break;case"cssClass":s.cssClass&&e.removeClass([this.element],s.cssClass.split(" ")),this.updateCssClass()}},s.prototype.destroy=function(){t.prototype.destroy.call(this);var s=["role","aria-live","aria-busy","aria-label"],i=[];this.cssClass&&(i=i.concat(this.cssClass.split(" ")));for(var o=0;o<s.length;o++)this.element.removeAttribute(s[parseInt(o.toString(),10)]);i=(i=i.concat(this.element.classList.value.match(/(e-skeleton-[^\s]+)/g))).concat(this.element.classList.value.match(/(e-shimmer-[^\s]+)/g)),e.removeClass([this.element],i)},s.prototype.initialize=function(){this.updateShape(),this.updateEffect(),this.updateVisibility()},s.prototype.updateShape=function(){var t=O[this.shape.toUpperCase()+"SHAPE"],s=this.element.classList.value.match(/(e-skeleton-[^\s]+)/g);this.updateDimension(),s&&e.removeClass([this.element],s),e.addClass([this.element],[t])},s.prototype.updateDimension=function(){var t=!this.width&&["Text","Rectangle"].indexOf(this.shape)>-1?"100%":e.formatUnit(this.width),s=["Circle","Square"].indexOf(this.shape)>-1?t:e.formatUnit(this.height);this.element.style.width=t,this.element.style.height=s},s.prototype.updateEffect=function(){var t=this.element.classList.value.match(/(e-shimmer-[^\s]+)/g);t&&e.removeClass([this.element],t),e.addClass([this.element],[O[this.shimmerEffect.toUpperCase()+"EFFECT"]])},s.prototype.updateVisibility=function(){this.element.classList[this.visible?"remove":"add"](O.VISIBLENONE)},s.prototype.updateCssClass=function(){this.cssClass&&e.addClass([this.element],this.cssClass.split(" "))},b([e.Property("")],s.prototype,"width",void 0),b([e.Property("")],s.prototype,"height",void 0),b([e.Property(!0)],s.prototype,"visible",void 0),b([e.Property("Text")],s.prototype,"shape",void 0),b([e.Property("Wave")],s.prototype,"shimmerEffect",void 0),b([e.Property("Loading...")],s.prototype,"label",void 0),b([e.Property("")],s.prototype,"cssClass",void 0),s=b([e.NotifyPropertyChanges],s)}(e.Component);return t.ToastPosition=p,t.ButtonModelProps=d,t.ToastAnimations=u,t.ToastAnimationSettings=m,t.Toast=f,t.Message=g,t.Skeleton=T,t}({},ej.base,ej.buttons,ej.popups),this.ejs=ej;
this.ej=this.ej||{},this.ej.notifications=function(t,e,s,i){"use strict";var o=function(){var t=function(e,s){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var s in e)e.hasOwnProperty(s)&&(t[s]=e[s])})(e,s)};return function(e,s){function i(){this.constructor=e}t(e,s),e.prototype=null===s?Object.create(s):(i.prototype=s.prototype,new i)}}(),n=function(t,e,s,i){var o,n=arguments.length,r=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,s):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(t,e,s,i);else for(var l=t.length-1;l>=0;l--)(o=t[l])&&(r=(n<3?o(r):n>3?o(e,s,r):o(e,s))||r);return n>3&&r&&Object.defineProperty(e,s,r),r},r="e-toast",l="e-toast-container",a="e-toast-message",h="e-toast-progress",c="e-toast-close-icon",p=function(t){function s(){return null!==t&&t.apply(this,arguments)||this}return o(s,t),n([e.Property("Left")],s.prototype,"X",void 0),n([e.Property("Top")],s.prototype,"Y",void 0),s}(e.ChildProperty),d=function(t){function s(){return null!==t&&t.apply(this,arguments)||this}return o(s,t),n([e.Property(null)],s.prototype,"model",void 0),n([e.Property(null)],s.prototype,"click",void 0),s}(e.ChildProperty),u=function(t){function s(){return null!==t&&t.apply(this,arguments)||this}return o(s,t),n([e.Property("FadeIn")],s.prototype,"effect",void 0),n([e.Property(600)],s.prototype,"duration",void 0),n([e.Property("ease")],s.prototype,"easing",void 0),s}(e.ChildProperty),m=function(t){function s(){return null!==t&&t.apply(this,arguments)||this}return o(s,t),n([e.Complex({effect:"FadeIn",duration:600,easing:"ease"},u)],s.prototype,"show",void 0),n([e.Complex({effect:"FadeOut",duration:600,easing:"ease"},u)],s.prototype,"hide",void 0),s}(e.ChildProperty),f=function(t){function u(e,s){var i=t.call(this,e,s)||this;return i.toastCollection=[],i.needsID=!0,i}return o(u,t),u.prototype.getModuleName=function(){return"toast"},u.prototype.getPersistData=function(){return this.addOnPersist([])},u.prototype.destroy=function(){this.hide("All"),this.element.classList.remove(l),e.setStyleAttribute(this.element,{position:"","z-index":""}),e.isNullOrUndefined(this.refElement)||e.isNullOrUndefined(this.refElement.parentElement)||(this.refElement.parentElement.insertBefore(this.element,this.refElement),e.detach(this.refElement),this.refElement=void 0),this.isBlazorServer()||t.prototype.destroy.call(this)},u.prototype.preRender=function(){this.isDevice=e.Browser.isDevice,"300px"===this.width&&(this.width=this.isDevice&&screen.width<768?"100%":"300px"),e.isNullOrUndefined(this.target)&&(this.target=document.body),this.enableRtl&&!this.isBlazorServer()&&this.element.classList.add("e-rtl")},u.prototype.render=function(){this.progressObj=[],this.intervalId=[],this.contentTemplate=null,this.toastTemplate=null,this.renderComplete(),this.initRenderClass=this.element.className},u.prototype.show=function(t){var s;if(e.isNullOrUndefined(t)||(this.templateChanges(t),s=JSON.parse(JSON.stringify(t)),e.extend(this,this,t)),e.isNullOrUndefined(this.toastContainer)){this.toastContainer=this.getContainer();var i="string"==typeof this.target?document.querySelector(this.target):"object"==typeof this.target?this.target:document.body;if(e.isNullOrUndefined(i))return;"BODY"===i.tagName?this.toastContainer.style.position="fixed":(this.toastContainer.style.position="absolute",i.style.position="relative"),this.setPositioning(this.position),i.appendChild(this.toastContainer)}if(this.isBlazorServer()&&this.element.classList.contains("e-control"))return void this.isToastModel(t);this.toastEle=this.createElement("div",{className:r,id:e.getUniqueID("toast")}),this.setWidthHeight(),this.setCSSClass(this.cssClass),e.isNullOrUndefined(this.template)||""===this.template?this.personalizeToast():this.templateRendering(),this.setProgress(),this.setCloseButton(),this.setAria(),this.appendToTarget(t),this.isDevice&&screen.width<768&&new e.Touch(this.toastEle,{swipe:this.swipeHandler.bind(this)}),e.isNullOrUndefined(s)||(e.extend(s,{element:[this.toastEle]},!0),this.toastCollection.push(s)),this.isReact&&this.renderReactTemplates()},u.prototype.showToast=function(t,e){this.toastEle=this.element.querySelector("#"+t),this.show(e)},u.prototype.isToastModel=function(t){this.toastContainer=this.element,this.setPositioning(this.position);var s=this;e.isNullOrUndefined(s.element.lastElementChild)||this.setProgress(),this.setAria(),this.appendToTarget(t)},u.prototype.swipeHandler=function(t){var s=e.closest(t.originalEvent.target,"."+r+":not(."+l+")"),i=this.animation.hide.effect;e.isNullOrUndefined(s)||("Right"===t.swipeDirection?(this.animation.hide.effect="SlideRightOut",this.hideToast("swipe",s)):"Left"===t.swipeDirection&&(this.animation.hide.effect="SlideLeftOut",this.hideToast("swipe",s)),this.animation.hide.effect=i)},u.prototype.templateChanges=function(t){e.isUndefined(t.content)||e.isNullOrUndefined(this.contentTemplate)||this.content===t.content||this.clearContentTemplate(),e.isUndefined(t.template)||e.isNullOrUndefined(this.toastTemplate)||this.template===t.template||this.clearToastTemplate()},u.prototype.setCSSClass=function(t){if(t){var s=-1!==t.indexOf(",")?",":" ";e.classList(this.toastEle,t.split(s),[]),this.toastContainer&&e.classList(this.toastContainer,t.split(s),[])}},u.prototype.setWidthHeight=function(){"300px"===this.width?this.toastEle.style.width=e.formatUnit(this.width):"100%"===this.width?this.toastContainer.classList.add("e-toast-full-width"):(this.toastEle.style.width=e.formatUnit(this.width),this.toastContainer.classList.remove("e-toast-full-width")),this.toastEle.style.height=e.formatUnit(this.height)},u.prototype.templateRendering=function(){this.fetchEle(this.toastEle,this.template,"template")},u.prototype.sanitizeHelper=function(t){if(this.enableHtmlSanitizer){var s=e.SanitizeHtmlHelper.beforeSanitize(),i={cancel:!1,helper:null};e.extend(s,s,i),this.trigger("beforeSanitizeHtml",s),s.cancel&&!e.isNullOrUndefined(s.helper)?t=s.helper(t):s.cancel||(t=e.SanitizeHtmlHelper.serializeValue(s,t))}return t},u.prototype.hide=function(t){this.hideToast("",t)},u.prototype.hideToast=function(t,s){if(!e.isNullOrUndefined(this.toastContainer)&&0!==this.toastContainer.childElementCount)if("string"!=typeof s||"All"!==s)e.isNullOrUndefined(s)&&(s=this.newestOnTop?this.toastContainer.lastElementChild:this.toastContainer.firstElementChild),this.destroyToast(s,t);else for(var i=0;i<this.toastContainer.childElementCount;i++)this.destroyToast(this.toastContainer.children[i],t)},u.prototype.fetchEle=function(t,s,i){s="string"==typeof s?this.sanitizeHelper(s):s;var o,n,r,l;if(l=t.classList.contains("e-toast-title")?this.element.id+"title":t.classList.contains("e-toast-content")?this.element.id+"content":this.element.id+"template",n="content"===i?this.contentTemplate:this.toastTemplate,!e.isNullOrUndefined(n))return t.appendChild(n.cloneNode(!0)),t;try{if("function"!=typeof s&&document.querySelectorAll(s).length>0){var a=null;"title"!==i&&(a=document.querySelector(s),t.appendChild(a),a.style.display="");var h=e.isNullOrUndefined(a)?n:a.cloneNode(!0);"content"===i?this.contentTemplate=h:this.toastTemplate=h}else o=e.compile(s)}catch(t){o="object"==typeof s?e.compile(s):e.compile(e.initializeCSPTemplate(function(){return s}))}if(!e.isNullOrUndefined(o))if(this.isBlazorServer()){r=o({},this,i,l,!0)}else r=o({},this,i,null,!0);return e.isNullOrUndefined(r)||!(r.length>0)||e.isNullOrUndefined(r[0].tagName)&&1===r.length?"function"!=typeof s&&0===t.childElementCount&&(t.innerHTML=s):[].slice.call(r).forEach(function(s){e.isNullOrUndefined(s.tagName)||(s.style.display=""),t.appendChild(s)}),t},u.prototype.clearProgress=function(t){e.isNullOrUndefined(this.intervalId[t])||(clearInterval(this.intervalId[t]),delete this.intervalId[t]),e.isNullOrUndefined(this.progressObj[t])||(clearInterval(this.progressObj[t].intervalId),delete this.progressObj[t])},u.prototype.removeToastContainer=function(t){t&&this.toastContainer.classList.contains("e-toast-util")&&e.detach(this.toastContainer)},u.prototype.clearContainerPos=function(t){var s=this;if(this.isBlazorServer())return void(this.toastContainer=null);this.customPosition?(e.setStyleAttribute(this.toastContainer,{left:"",top:""}),this.removeToastContainer(t),this.toastContainer=null,this.customPosition=!1):([r+"-top-left",r+"-top-right",r+"-bottom-left",r+"-bottom-right",r+"-bottom-center",r+"-top-center",r+"-full-width"].forEach(function(t){!e.isNullOrUndefined(s.toastContainer)&&s.toastContainer.classList.contains(t)&&s.toastContainer.classList.remove(t)}),this.removeToastContainer(t),this.toastContainer=null),e.isNullOrUndefined(this.contentTemplate)||this.clearContentTemplate(),e.isNullOrUndefined(this.toastTemplate)||this.clearToastTemplate()},u.prototype.clearContentTemplate=function(){this.contentTemplate.style.display="none",document.body.appendChild(this.contentTemplate),this.contentTemplate=null},u.prototype.clearToastTemplate=function(){this.toastTemplate.style.display="none",document.body.appendChild(this.toastTemplate),this.toastTemplate=null},u.prototype.isBlazorServer=function(){return e.isBlazor()&&this.isServerRendered},u.prototype.destroyToast=function(t,s){for(var i,o=this,n=0;n<this.toastCollection.length;n++)this.toastCollection[n].element[0]===t&&(i=this.toastCollection[n],this.toastCollection.splice(n,1));var r={options:this,cancel:!1,type:s,element:t,toastContainer:this.toastContainer},l=this.animation.hide,a={duration:l.duration,name:"None"===l.effect&&"Enable"===e.animationMode?"FadeOut":l.effect,timingFunction:l.easing},c=parseInt(t.id.split("toast_")[1],10),p=this.isBlazorServer()?{options:i,toastContainer:this.toastContainer}:{options:i,toastContainer:this.toastContainer,toastObj:this};this.trigger("beforeClose",r,function(s){s.cancel||(e.isNullOrUndefined(o.progressObj[c])||e.isNullOrUndefined(t.querySelector("."+h))||(o.progressObj[c].progressEle.style.width="0%"),a.end=function(){o.clearProgress(c),o.isBlazorServer()&&!e.isNullOrUndefined(i)||e.detach(t),o.trigger("close",p),0===o.toastContainer.childElementCount&&o.clearContainerPos(!0),l=null,a=null},new e.Animation(a).animate(t))})},u.prototype.personalizeToast=function(){this.setIcon(),this.setTitle(),this.setContent(),this.actionButtons()},u.prototype.setAria=function(){e.attributes(this.toastEle,{role:"alert"})},u.prototype.setPositioning=function(t){this.isBlazorServer()||(isNaN(parseFloat(t.X))&&isNaN(parseFloat(t.Y))?this.toastContainer.classList.add(r+"-"+t.Y.toString().toLowerCase()+"-"+t.X.toString().toLowerCase()):(this.customPosition=!0,e.setStyleAttribute(this.toastContainer,{left:e.formatUnit(t.X),top:e.formatUnit(t.Y)})))},u.prototype.setCloseButton=function(){if(this.showCloseButton){var t={close:"Close"};this.l10n=new e.L10n("toast",t,this.locale),this.l10n.setLocale(this.locale);var s=this.l10n.getConstant("close"),i=this.createElement("div",{className:c+" e-icons ",attrs:{tabindex:"0","aria-label":s,role:"button"}});this.toastEle.classList.add("e-toast-header-close-icon"),this.toastEle.appendChild(i)}},u.prototype.setProgress=function(){if(this.timeOut>0){var t=parseInt(this.toastEle.id.split("toast_")[1],10);this.intervalId[t]=window.setTimeout(this.destroyToast.bind(this,this.toastEle),this.timeOut),this.progressObj[t]={hideEta:null,intervalId:null,maxHideTime:null,element:null,timeOutId:null,progressEle:null},this.progressObj[t].maxHideTime=parseFloat(this.timeOut+""),this.progressObj[t].hideEta=(new Date).getTime()+this.progressObj[t].maxHideTime,this.progressObj[t].element=this.toastEle,this.extendedTimeout>0&&(e.EventHandler.add(this.toastEle,"mouseover",this.toastHoverAction.bind(this,t)),e.EventHandler.add(this.toastEle,"mouseleave",this.delayedToastProgress.bind(this,t)),this.progressObj[t].timeOutId=this.intervalId[t]),this.showProgressBar&&(this.progressBarEle=this.createElement("div",{className:h}),this.toastEle.insertBefore(this.progressBarEle,this.toastEle.children[0]),this.progressObj[t].intervalId=setInterval(this.updateProgressBar.bind(this,this.progressObj[t]),10),this.progressObj[t].progressEle=this.progressBarEle)}},u.prototype.toastHoverAction=function(t){clearTimeout(this.progressObj[t].timeOutId),clearInterval(this.progressObj[t].intervalId),this.progressObj[t].hideEta=0;var s=this.progressObj[t].element;e.isNullOrUndefined(s.querySelector("."+h))||(this.progressObj[t].progressEle.style.width="0%")},u.prototype.delayedToastProgress=function(t){var s=this.progressObj[t],i=s.element;s.timeOutId=window.setTimeout(this.destroyToast.bind(this,i),this.extendedTimeout),s.maxHideTime=parseFloat(this.extendedTimeout+""),s.hideEta=(new Date).getTime()+s.maxHideTime,e.isNullOrUndefined(i.querySelector("."+h))||(s.intervalId=setInterval(this.updateProgressBar.bind(this,s),10))},u.prototype.updateProgressBar=function(t){var e=(t.hideEta-(new Date).getTime())/t.maxHideTime*100;e="Ltr"===this.progressDirection?100-e:e,t.progressEle.style.width=e+"%"},u.prototype.setIcon=function(){if(!e.isNullOrUndefined(this.icon)&&0!==this.icon.length){var t=this.createElement("div",{className:"e-toast-icon e-icons "+this.icon});this.toastEle.classList.add("e-toast-header-icon"),this.toastEle.appendChild(t)}},u.prototype.setTitle=function(){if(!e.isNullOrUndefined(this.title)){var t=this.createElement("div",{className:"e-toast-title"});t=this.fetchEle(t,this.title,"title");var s=this.createElement("div",{className:a});s.appendChild(t),this.toastEle.appendChild(s)}},u.prototype.setContent=function(){var t=this.createElement("div",{className:"e-toast-content"}),s=this.element;if(e.isNullOrUndefined(this.content)||""===this.content){var i=""!==this.element.innerHTML.replace(/\s/g,"");if((s.children.length>0||i)&&(!s.firstElementChild||!s.firstElementChild.classList.contains(r))){this.innerEle=document.createDocumentFragment();for(var o=this.createElement("div");0!==s.childNodes.length;)this.innerEle.appendChild(this.element.childNodes[0]);t.appendChild(this.innerEle),[].slice.call(t.children).forEach(function(t){o.appendChild(t.cloneNode(!0))}),this.content=o,this.appendMessageContainer(t)}}else"object"!=typeof this.content||e.isNullOrUndefined(this.content.tagName)?(t=this.fetchEle(t,this.content,"content"),this.appendMessageContainer(t)):(t.appendChild(this.content),this.content=this.content.cloneNode(!0),this.appendMessageContainer(t))},u.prototype.appendMessageContainer=function(t){if(this.toastEle.querySelectorAll("."+a).length>0)this.toastEle.querySelector("."+a).appendChild(t);else{var e=this.createElement("div",{className:a});e.appendChild(t),this.toastEle.appendChild(e)}},u.prototype.actionButtons=function(){var t=this,i=this.createElement("div",{className:"e-toast-actions"});[].slice.call(this.buttons).forEach(function(o){if(!e.isNullOrUndefined(o.model)){var n=t.createElement("button");n.setAttribute("type","button"),(e.isNullOrUndefined(o.model.cssClass)||0===o.model.cssClass.length)&&(o.model.cssClass="e-primary "+t.cssClass),n.classList.add("e-small"),new s.Button(o.model,n),e.isNullOrUndefined(o.click)||"function"!=typeof o.click||e.EventHandler.add(n,"click",o.click),i.appendChild(n)}}),i.childElementCount>0&&this.appendMessageContainer(i)},u.prototype.appendToTarget=function(t){var s=this,o=this.isBlazorServer()?{options:t,element:this.toastEle,cancel:!1}:{options:t,toastObj:this,element:this.toastEle,cancel:!1};this.trigger("beforeOpen",o,function(o){if(o.cancel){if(s.isBlazorServer()){var n=parseInt(s.toastEle.id.split("toast_")[1],10);s.clearProgress(n),e.detach(s.toastEle),0===s.toastContainer.childElementCount&&s.clearContainerPos()}}else s.isBlazorServer()||(s.toastEle.style.display="none"),s.newestOnTop&&0!==s.toastContainer.childElementCount?s.toastContainer.insertBefore(s.toastEle,s.toastContainer.children[0]):s.isBlazorServer()||s.toastContainer.appendChild(s.toastEle),e.removeClass([s.toastEle],"e-blazor-toast-hidden"),e.EventHandler.add(s.toastEle,"click",s.clickHandler,s),e.EventHandler.add(s.toastEle,"keydown",s.keyDownHandler,s),s.toastContainer.style.zIndex=i.getZindexPartial(s.toastContainer)+"",s.displayToast(s.toastEle,t)})},u.prototype.clickHandler=function(t){var s=this;this.isBlazorServer()||t.stopPropagation();var i=t.target,o=e.closest(i,"."+r),n=this.isBlazorServer()?{element:o,cancel:!1,clickToClose:!1,originalEvent:t}:{element:o,cancel:!1,clickToClose:!1,originalEvent:t,toastObj:this},l=i.classList.contains(c);this.trigger("click",n,function(t){(l&&!t.cancel||t.clickToClose)&&s.destroyToast(o,"click")})},u.prototype.keyDownHandler=function(t){if(t.target.classList.contains(c)&&(13===t.keyCode||32===t.keyCode)){var s=t.target,i=e.closest(s,"."+r);this.destroyToast(i,"key")}},u.prototype.displayToast=function(t,s){var i=this,o=this.animation.show,n={duration:o.duration,name:"None"===o.effect&&"Enable"===e.animationMode?"FadeIn":o.effect,timingFunction:o.easing},r=this.isBlazorServer()?{options:s,element:this.toastEle}:{options:s,toastObj:this,element:this.toastEle};n.begin=function(){t.style.display=""},n.end=function(){i.trigger("open",r)},new e.Animation(n).animate(t)},u.prototype.getContainer=function(){return this.element.classList.add(l),this.element},u.prototype.onPropertyChanged=function(t,e){for(var s=this.element,i=0,o=Object.keys(t);i<o.length;i++)switch(o[i]){case"enableRtl":t.enableRtl?s.classList.add("e-rtl"):s.classList.remove("e-rtl")}},n([e.Property("300px")],u.prototype,"width",void 0),n([e.Property("auto")],u.prototype,"height",void 0),n([e.Property(null)],u.prototype,"title",void 0),n([e.Property(null)],u.prototype,"content",void 0),n([e.Property(!0)],u.prototype,"enableHtmlSanitizer",void 0),n([e.Property(null)],u.prototype,"icon",void 0),n([e.Property(null)],u.prototype,"cssClass",void 0),n([e.Property(null)],u.prototype,"template",void 0),n([e.Property(!0)],u.prototype,"newestOnTop",void 0),n([e.Property(!1)],u.prototype,"showCloseButton",void 0),n([e.Property(!1)],u.prototype,"showProgressBar",void 0),n([e.Property(5e3)],u.prototype,"timeOut",void 0),n([e.Property("Rtl")],u.prototype,"progressDirection",void 0),n([e.Property(1e3)],u.prototype,"extendedTimeout",void 0),n([e.Complex({},m)],u.prototype,"animation",void 0),n([e.Complex({},p)],u.prototype,"position",void 0),n([e.Collection([{}],d)],u.prototype,"buttons",void 0),n([e.Property(null)],u.prototype,"target",void 0),n([e.Event()],u.prototype,"created",void 0),n([e.Event()],u.prototype,"beforeSanitizeHtml",void 0),n([e.Event()],u.prototype,"destroyed",void 0),n([e.Event()],u.prototype,"open",void 0),n([e.Event()],u.prototype,"beforeOpen",void 0),n([e.Event()],u.prototype,"beforeClose",void 0),n([e.Event()],u.prototype,"close",void 0),n([e.Event()],u.prototype,"click",void 0),u=n([e.NotifyPropertyChanges],u)}(e.Component);!function(t){function s(t,s,i){var o;document.querySelector("."+l)?o=document.querySelector("."+l):(o=e.createElement("div",{className:r+" "+l+" e-toast-util"}),document.body.appendChild(o));var n;if("string"==typeof t){var a=void 0,h=void 0;if(e.isNullOrUndefined(s))a="",h="";else switch(s){case"Warning":a="e-toast-warning",h="e-toast-warning-icon";break;case"Success":a="e-toast-success",h="e-toast-success-icon";break;case"Error":a="e-toast-danger",h="e-toast-error-icon";break;case"Information":a="e-toast-info",h="e-toast-info-icon"}n={content:t,cssClass:a,icon:h,timeOut:e.isNullOrUndefined(i)?5e3:i}}else n=t;var c=new f(n);return c.appendTo(o),c.show(),c}t.show=s}(t.ToastUtility||(t.ToastUtility={}));var y=function(){var t=function(e,s){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var s in e)e.hasOwnProperty(s)&&(t[s]=e[s])})(e,s)};return function(e,s){function i(){this.constructor=e}t(e,s),e.prototype=null===s?Object.create(s):(i.prototype=s.prototype,new i)}}(),v=function(t,e,s,i){var o,n=arguments.length,r=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,s):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(t,e,s,i);else for(var l=t.length-1;l>=0;l--)(o=t[l])&&(r=(n<3?o(r):n>3?o(e,s,r):o(e,s))||r);return n>3&&r&&Object.defineProperty(e,s,r),r};!function(t){t.Normal="Normal",t.Success="Success",t.Info="Info",t.Warning="Warning",t.Error="Error"}(t.Severity||(t.Severity={})),function(t){t.Text="Text",t.Outlined="Outlined",t.Filled="Filled"}(t.Variant||(t.Variant={}));var C="e-hidden",g=function(t){function s(e,s){var i=t.call(this,e,s)||this;return i.initialRender=!0,i}return y(s,t),s.prototype.getModuleName=function(){return"message"},s.prototype.getPersistData=function(){return this.addOnPersist([])},s.prototype.preRender=function(){var t={close:"Close"};this.l10n=new e.L10n("message",t,this.locale)},s.prototype.render=function(){this.innerContent=this.element.innerHTML,this.element.innerHTML="",this.msgElement=this.createElement("div",{className:"e-msg-content-wrap"}),this.initialize(),this.wireEvents(),this.renderComplete(),this.renderReactTemplates(),this.initialRender=!1},s.prototype.initialize=function(){this.element.setAttribute("role","alert"),this.setCssClass(),this.setIcon(),this.setContent(),this.setCloseIcon(),this.setSeverity(),this.setVariant(),this.setVisible(),this.enableRtl&&this.element.classList.add("e-rtl")},s.prototype.setIcon=function(){this.showIcon&&(this.iconElement=this.createElement("span",{className:"e-msg-icon"}),this.element.classList.contains("e-content-center")?this.msgElement.appendChild(this.iconElement):this.element.appendChild(this.iconElement))},s.prototype.setCloseIcon=function(){this.showCloseIcon&&(this.closeIcon=this.createElement("button",{attrs:{type:"button",class:"e-msg-close-icon"}}),this.element.appendChild(this.closeIcon),this.setTitle())},s.prototype.setTitle=function(){this.l10n.setLocale(this.locale);var t=this.l10n.getConstant("close");this.closeIcon.setAttribute("title",t),this.closeIcon.setAttribute("aria-label",t)},s.prototype.setContent=function(){this.txtElement=this.createElement("div",{className:"e-msg-content"}),this.element.classList.contains("e-content-center")?(this.msgElement.appendChild(this.txtElement),this.element.appendChild(this.msgElement)):this.element.appendChild(this.txtElement),this.setTemplate()},s.prototype.setTemplate=function(){var t;if(e.isNullOrUndefined(this.content)||""===this.content)this.txtElement.innerHTML=this.innerContent;else if(!e.isNullOrUndefined(this.content)&&""!==this.content&&("string"==typeof this.content||"string"!=typeof this.content))if(this.isVue||"string"!=typeof this.content){if(t=e.compile(this.content),!e.isNullOrUndefined(t)){var s=t({},this,"content",this.element.id+"content",!0);s&&(s=Array.prototype.slice.call(s),e.append(s,this.txtElement),this.renderReactTemplates())}}else this.txtElement.innerHTML=this.content},s.prototype.setSeverity=function(){var t=["e-success","e-warning","e-info","e-error"];e.removeClass([this.element],t),"Success"===this.severity?e.addClass([this.element],"e-success"):"Warning"===this.severity?e.addClass([this.element],"e-warning"):"Error"===this.severity?e.addClass([this.element],"e-error"):"Info"===this.severity&&e.addClass([this.element],"e-info")},s.prototype.setVariant=function(){var t=["e-filled","e-outlined"];e.removeClass([this.element],t),"Outlined"===this.variant?e.addClass([this.element],"e-outlined"):"Filled"===this.variant&&e.addClass([this.element],"e-filled")},s.prototype.setCssClass=function(t){t&&e.removeClass([this.element],t.split(" ")),this.cssClass&&e.addClass([this.element],this.cssClass.split(" "))},s.prototype.setVisible=function(){this.visible?e.removeClass([this.element],C):(e.addClass([this.element],C),this.initialRender||this.trigger("closed",{event:event,isInteracted:!1,element:this.element}))},s.prototype.clickHandler=function(t){this.closeMessage(t)},s.prototype.keyboardHandler=function(t){32!==t.keyCode&&13!==t.keyCode||this.closeMessage(t)},s.prototype.closeMessage=function(t){e.addClass([this.element],C),this.setProperties({visible:!1},!0);var s={event:t,isInteracted:!0,element:this.element};this.trigger("closed",s)},s.prototype.wireEvents=function(){this.showCloseIcon&&(e.EventHandler.add(this.closeIcon,"click",this.clickHandler,this),e.EventHandler.add(this.closeIcon,"keydown",this.keyboardHandler,this))},s.prototype.unWireEvents=function(){this.showCloseIcon&&(e.EventHandler.remove(this.closeIcon,"click",this.clickHandler),e.EventHandler.remove(this.closeIcon,"keydown",this.keyboardHandler))},s.prototype.onPropertyChanged=function(t,s){for(var i=0,o=Object.keys(t);i<o.length;i++)switch(o[i]){case"cssClass":this.setCssClass(s.cssClass);break;case"content":this.txtElement.innerHTML="",this.setTemplate();break;case"enableRtl":this.enableRtl?this.element.classList.add("e-rtl"):this.element.classList.remove("e-rtl");break;case"locale":this.showCloseIcon&&this.setTitle();break;case"showIcon":!this.showIcon&&this.element.getElementsByClassName("e-msg-icon").length>0&&e.detach(this.iconElement),this.showIcon&&(this.iconElement=this.createElement("span",{className:"e-msg-icon"}),this.element.insertBefore(this.iconElement,this.txtElement));break;case"showCloseIcon":this.showCloseIcon||e.isNullOrUndefined(this.closeIcon)?(this.setCloseIcon(),this.wireEvents()):(this.unWireEvents(),e.detach(this.closeIcon));break;case"severity":this.setSeverity();break;case"variant":this.setVariant();break;case"visible":this.setVisible()}},s.prototype.destroy=function(){var s=e.isNullOrUndefined(this.cssClass)?[""]:this.cssClass.split(" "),i=["e-success","e-warning","e-info","e-error","e-rtl",C,"e-outlined","e-filled"],o=1===s.length&&""===s[0]?i:i.concat(s);e.removeClass([this.element],o),this.element.removeAttribute("role"),this.unWireEvents(),e.isNullOrUndefined(this.iconElement)||e.detach(this.iconElement),e.detach(this.txtElement),e.isNullOrUndefined(this.closeIcon)||e.detach(this.closeIcon),t.prototype.destroy.call(this)},v([e.Property(null)],s.prototype,"content",void 0),v([e.Property("")],s.prototype,"cssClass",void 0),v([e.Property(!0)],s.prototype,"showIcon",void 0),v([e.Property(!1)],s.prototype,"showCloseIcon",void 0),v([e.Property("Normal")],s.prototype,"severity",void 0),v([e.Property("Text")],s.prototype,"variant",void 0),v([e.Property(!0)],s.prototype,"visible",void 0),v([e.Event()],s.prototype,"created",void 0),v([e.Event()],s.prototype,"destroyed",void 0),v([e.Event()],s.prototype,"closed",void 0),s=v([e.NotifyPropertyChanges],s)}(e.Component),E=function(){var t=function(e,s){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var s in e)e.hasOwnProperty(s)&&(t[s]=e[s])})(e,s)};return function(e,s){function i(){this.constructor=e}t(e,s),e.prototype=null===s?Object.create(s):(i.prototype=s.prototype,new i)}}(),b=function(t,e,s,i){var o,n=arguments.length,r=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,s):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(t,e,s,i);else for(var l=t.length-1;l>=0;l--)(o=t[l])&&(r=(n<3?o(r):n>3?o(e,s,r):o(e,s))||r);return n>3&&r&&Object.defineProperty(e,s,r),r},O={TEXTSHAPE:"e-skeleton-text",CIRCLESHAPE:"e-skeleton-circle",SQUARESHAPE:"e-skeleton-square",RECTANGLESHAPE:"e-skeleton-rectangle",WAVEEFFECT:"e-shimmer-wave",PULSEEFFECT:"e-shimmer-pulse",FADEEFFECT:"e-shimmer-fade",VISIBLENONE:"e-visible-none"};!function(t){t.Text="Text",t.Circle="Circle",t.Square="Square",t.Rectangle="Rectangle"}(t.SkeletonType||(t.SkeletonType={})),function(t){t.Wave="Wave",t.Fade="Fade",t.Pulse="Pulse",t.None="None"}(t.ShimmerEffect||(t.ShimmerEffect={}));var T=function(t){function s(e,s){return t.call(this,e,s)||this}return E(s,t),s.prototype.getModuleName=function(){return"skeleton"},s.prototype.getPersistData=function(){return this.addOnPersist([])},s.prototype.preRender=function(){this.element.id||(this.element.id=e.getUniqueID("e-"+this.getModuleName())),this.updateCssClass(),e.attributes(this.element,{role:"alert","aria-busy":"true","aria-live":"polite","aria-label":this.label})},s.prototype.render=function(){this.initialize()},s.prototype.onPropertyChanged=function(t,s){for(var i=0,o=Object.keys(t);i<o.length;i++)switch(o[i]){case"width":case"height":this.updateDimension();break;case"shape":this.updateShape();break;case"shimmerEffect":this.updateEffect();break;case"visible":this.updateVisibility();break;case"label":this.element.setAttribute("aria-label",this.label);break;case"cssClass":s.cssClass&&e.removeClass([this.element],s.cssClass.split(" ")),this.updateCssClass()}},s.prototype.destroy=function(){t.prototype.destroy.call(this);var s=["role","aria-live","aria-busy","aria-label"],i=[];this.cssClass&&(i=i.concat(this.cssClass.split(" ")));for(var o=0;o<s.length;o++)this.element.removeAttribute(s[parseInt(o.toString(),10)]);i=(i=i.concat(this.element.classList.value.match(/(e-skeleton-[^\s]+)/g))).concat(this.element.classList.value.match(/(e-shimmer-[^\s]+)/g)),e.removeClass([this.element],i)},s.prototype.initialize=function(){this.updateShape(),this.updateEffect(),this.updateVisibility()},s.prototype.updateShape=function(){var t=O[this.shape.toUpperCase()+"SHAPE"],s=this.element.classList.value.match(/(e-skeleton-[^\s]+)/g);this.updateDimension(),s&&e.removeClass([this.element],s),e.addClass([this.element],[t])},s.prototype.updateDimension=function(){var t=!this.width&&["Text","Rectangle"].indexOf(this.shape)>-1?"100%":e.formatUnit(this.width),s=["Circle","Square"].indexOf(this.shape)>-1?t:e.formatUnit(this.height);this.element.style.width=t,this.element.style.height=s},s.prototype.updateEffect=function(){var t=this.element.classList.value.match(/(e-shimmer-[^\s]+)/g);t&&e.removeClass([this.element],t),e.addClass([this.element],[O[this.shimmerEffect.toUpperCase()+"EFFECT"]])},s.prototype.updateVisibility=function(){this.element.classList[this.visible?"remove":"add"](O.VISIBLENONE)},s.prototype.updateCssClass=function(){this.cssClass&&e.addClass([this.element],this.cssClass.split(" "))},b([e.Property("")],s.prototype,"width",void 0),b([e.Property("")],s.prototype,"height",void 0),b([e.Property(!0)],s.prototype,"visible",void 0),b([e.Property("Text")],s.prototype,"shape",void 0),b([e.Property("Wave")],s.prototype,"shimmerEffect",void 0),b([e.Property("Loading...")],s.prototype,"label",void 0),b([e.Property("")],s.prototype,"cssClass",void 0),s=b([e.NotifyPropertyChanges],s)}(e.Component);return t.ToastPosition=p,t.ButtonModelProps=d,t.ToastAnimations=u,t.ToastAnimationSettings=m,t.Toast=f,t.Message=g,t.Skeleton=T,t}({},ej.base,ej.buttons,ej.popups),this.ejs=ej;
//# sourceMappingURL=ej2-notifications.min.js.map
/*!
* filename: index.d.ts
* version : 23.2.4
* version : 23.2.5
* Copyright Syncfusion Inc. 2001 - 2023. All rights reserved.

@@ -5,0 +5,0 @@ * Use of this code is subject to the terms of our license.

{
"_from": "@syncfusion/ej2-notifications@*",
"_id": "@syncfusion/ej2-notifications@23.1.40",
"_id": "@syncfusion/ej2-notifications@23.2.4",
"_inBundle": false,
"_integrity": "sha512-i+nuf/1MHVa+E4aI/vn+Qw3iRCwCIMF/TAtleSKwUXvAHqF2TQTVpghrnCX8I1I2vrqMcGBpQjd+J+7pDDyfug==",
"_integrity": "sha512-OM5/oFGxQPz2wou+20U6OgPN4SlGUTJL+c0ugef4zeORorhI766eHbFZvcWoMs/U4C9ryLuEr/Cr+AquVjH7qA==",
"_location": "/@syncfusion/ej2-notifications",

@@ -32,4 +32,4 @@ "_phantomChildren": {},

],
"_resolved": "https://nexus.syncfusion.com/repository/ej2-hotfix-new/@syncfusion/ej2-notifications/-/ej2-notifications-23.1.40.tgz",
"_shasum": "97436a06f65535429eebbfadece94353e69cc552",
"_resolved": "https://nexus.syncfusion.com/repository/ej2-hotfix-new/@syncfusion/ej2-notifications/-/ej2-notifications-23.2.4.tgz",
"_shasum": "48b26a00826fe1ac981b85a98a27f77e36fe0b44",
"_spec": "@syncfusion/ej2-notifications@*",

@@ -78,5 +78,5 @@ "_where": "/jenkins/workspace/elease-automation_release_23.1.1/packages/included",

"typings": "index.d.ts",
"version": "23.2.4",
"version": "23.2.5",
"sideEffects": false,
"homepage": "https://www.syncfusion.com/javascript-ui-controls"
}

@@ -414,3 +414,3 @@ var __extends = (this && this.__extends) || (function () {

else {
templateFn = typeof value == 'object' ? templateCompiler(value) : templateCompiler(initializeCSPTemplate(function () { return value; }));
templateFn = templateCompiler(value);
}

@@ -417,0 +417,0 @@ }

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc