Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@syncfusion/ej2-notifications

Package Overview
Dependencies
Maintainers
3
Versions
102
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 27.2.2 to 27.2.4

4

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

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

const progress = this.progressObj[id];
const toastEle = progress.element;
progress.timeOutId = window.setTimeout(this.destroyToast.bind(this, toastEle), this.extendedTimeout);
progress.maxHideTime = parseFloat(this.extendedTimeout + '');
progress.hideEta = new Date().getTime() + progress.maxHideTime;
if (!isNullOrUndefined(toastEle.querySelector('.' + PROGRESS))) {
progress.intervalId = setInterval(this.updateProgressBar.bind(this, progress), 10);
if (!isNullOrUndefined(progress)) {
const toastEle = progress.element;
progress.timeOutId = window.setTimeout(this.destroyToast.bind(this, toastEle), this.extendedTimeout);
progress.maxHideTime = parseFloat(this.extendedTimeout + '');
progress.hideEta = new Date().getTime() + progress.maxHideTime;
if (!isNullOrUndefined(toastEle.querySelector('.' + PROGRESS))) {
progress.intervalId = setInterval(this.updateProgressBar.bind(this, progress), 10);
}
}

@@ -593,0 +595,0 @@ }

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

var progress = this.progressObj[id];
var toastEle = progress.element;
progress.timeOutId = window.setTimeout(this.destroyToast.bind(this, toastEle), this.extendedTimeout);
progress.maxHideTime = parseFloat(this.extendedTimeout + '');
progress.hideEta = new Date().getTime() + progress.maxHideTime;
if (!isNullOrUndefined(toastEle.querySelector('.' + PROGRESS))) {
progress.intervalId = setInterval(this.updateProgressBar.bind(this, progress), 10);
if (!isNullOrUndefined(progress)) {
var toastEle = progress.element;
progress.timeOutId = window.setTimeout(this.destroyToast.bind(this, toastEle), this.extendedTimeout);
progress.maxHideTime = parseFloat(this.extendedTimeout + '');
progress.hideEta = new Date().getTime() + progress.maxHideTime;
if (!isNullOrUndefined(toastEle.querySelector('.' + PROGRESS))) {
progress.intervalId = setInterval(this.updateProgressBar.bind(this, progress), 10);
}
}

@@ -630,0 +632,0 @@ };

/*!
* filename: ej2-notifications.min.js
* version : 27.2.2
* version : 27.2.4
* 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=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(){if(!e.isNullOrUndefined(this.shape)){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.isNullOrUndefined(this.shimmerEffect)||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.ButtonModelProps=d,t.Message=g,t.Skeleton=T,t.Toast=f,t.ToastAnimationSettings=m,t.ToastAnimations=u,t.ToastPosition=p,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 n=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)}}(),o=function(t,e,s,i){var n,o=arguments.length,r=o<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--)(n=t[l])&&(r=(o<3?n(r):o>3?n(e,s,r):n(e,s))||r);return o>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 n(s,t),o([e.Property("Left")],s.prototype,"X",void 0),o([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 n(s,t),o([e.Property(null)],s.prototype,"model",void 0),o([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 n(s,t),o([e.Property("FadeIn")],s.prototype,"effect",void 0),o([e.Property(600)],s.prototype,"duration",void 0),o([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 n(s,t),o([e.Complex({effect:"FadeIn",duration:600,easing:"ease"},u)],s.prototype,"show",void 0),o([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 n(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 n,o,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",o="content"===i?this.contentTemplate:this.toastTemplate,!e.isNullOrUndefined(o))return t.appendChild(o.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)?o:a.cloneNode(!0);"content"===i?this.contentTemplate=h:this.toastTemplate=h}else n=e.compile(s)}catch(t){n="object"==typeof s?e.compile(s):e.compile(e.initializeCSPTemplate(function(){return s}))}if(!e.isNullOrUndefined(n))if(this.isBlazorServer()){r=n({},this,i,l,!0)}else r=n({},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,n=this,o=0;o<this.toastCollection.length;o++)this.toastCollection[o].element[0]===t&&(i=this.toastCollection[o],this.toastCollection.splice(o,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(n.progressObj[c])||e.isNullOrUndefined(t.querySelector("."+h))||(n.progressObj[c].progressEle.style.width="0%"),a.end=function(){n.clearProgress(c),n.isBlazorServer()&&!e.isNullOrUndefined(i)||e.detach(t),n.trigger("close",p),0===n.toastContainer.childElementCount&&n.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];if(!e.isNullOrUndefined(s)){var 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 n=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){n.appendChild(t.cloneNode(!0))}),this.content=n,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(n){if(!e.isNullOrUndefined(n.model)){var o=t.createElement("button");o.setAttribute("type","button"),(e.isNullOrUndefined(n.model.cssClass)||0===n.model.cssClass.length)&&(n.model.cssClass="e-primary "+t.cssClass),o.classList.add("e-small"),new s.Button(n.model,o),e.isNullOrUndefined(n.click)||"function"!=typeof n.click||e.EventHandler.add(o,"click",n.click),i.appendChild(o)}}),i.childElementCount>0&&this.appendMessageContainer(i)},u.prototype.appendToTarget=function(t){var s=this,n=this.isBlazorServer()?{options:t,element:this.toastEle,cancel:!1}:{options:t,toastObj:this,element:this.toastEle,cancel:!1};this.trigger("beforeOpen",n,function(n){if(n.cancel){if(s.isBlazorServer()){var o=parseInt(s.toastEle.id.split("toast_")[1],10);s.clearProgress(o),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,n=e.closest(i,"."+r),o=this.isBlazorServer()?{element:n,cancel:!1,clickToClose:!1,originalEvent:t}:{element:n,cancel:!1,clickToClose:!1,originalEvent:t,toastObj:this},l=i.classList.contains(c);this.trigger("click",o,function(t){(l&&!t.cancel||t.clickToClose)&&s.destroyToast(n,"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,n=this.animation.show,o={duration:n.duration,name:"None"===n.effect&&"Enable"===e.animationMode?"FadeIn":n.effect,timingFunction:n.easing},r=this.isBlazorServer()?{options:s,element:this.toastEle}:{options:s,toastObj:this,element:this.toastEle};o.begin=function(){t.style.display=""},o.end=function(){i.trigger("open",r)},new e.Animation(o).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,n=Object.keys(t);i<n.length;i++)switch(n[i]){case"enableRtl":t.enableRtl?s.classList.add("e-rtl"):s.classList.remove("e-rtl")}},o([e.Property("300px")],u.prototype,"width",void 0),o([e.Property("auto")],u.prototype,"height",void 0),o([e.Property(null)],u.prototype,"title",void 0),o([e.Property(null)],u.prototype,"content",void 0),o([e.Property(!0)],u.prototype,"enableHtmlSanitizer",void 0),o([e.Property(null)],u.prototype,"icon",void 0),o([e.Property(null)],u.prototype,"cssClass",void 0),o([e.Property(null)],u.prototype,"template",void 0),o([e.Property(!0)],u.prototype,"newestOnTop",void 0),o([e.Property(!1)],u.prototype,"showCloseButton",void 0),o([e.Property(!1)],u.prototype,"showProgressBar",void 0),o([e.Property(5e3)],u.prototype,"timeOut",void 0),o([e.Property("Rtl")],u.prototype,"progressDirection",void 0),o([e.Property(1e3)],u.prototype,"extendedTimeout",void 0),o([e.Complex({},m)],u.prototype,"animation",void 0),o([e.Complex({},p)],u.prototype,"position",void 0),o([e.Collection([{}],d)],u.prototype,"buttons",void 0),o([e.Property(null)],u.prototype,"target",void 0),o([e.Event()],u.prototype,"created",void 0),o([e.Event()],u.prototype,"beforeSanitizeHtml",void 0),o([e.Event()],u.prototype,"destroyed",void 0),o([e.Event()],u.prototype,"open",void 0),o([e.Event()],u.prototype,"beforeOpen",void 0),o([e.Event()],u.prototype,"beforeClose",void 0),o([e.Event()],u.prototype,"close",void 0),o([e.Event()],u.prototype,"click",void 0),u=o([e.NotifyPropertyChanges],u)}(e.Component);!function(t){function s(t,s,i){var n;document.querySelector("."+l)?n=document.querySelector("."+l):(n=e.createElement("div",{className:r+" "+l+" e-toast-util"}),document.body.appendChild(n));var o;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"}o={content:t,cssClass:a,icon:h,timeOut:e.isNullOrUndefined(i)?5e3:i}}else o=t;var c=new f(o);return c.appendTo(n),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 n,o=arguments.length,r=o<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--)(n=t[l])&&(r=(o<3?n(r):o>3?n(e,s,r):n(e,s))||r);return o>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,n=Object.keys(t);i<n.length;i++)switch(n[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"],n=1===s.length&&""===s[0]?i:i.concat(s);e.removeClass([this.element],n),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 n,o=arguments.length,r=o<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--)(n=t[l])&&(r=(o<3?n(r):o>3?n(e,s,r):n(e,s))||r);return o>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,n=Object.keys(t);i<n.length;i++)switch(n[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 n=0;n<s.length;n++)this.element.removeAttribute(s[parseInt(n.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(){if(!e.isNullOrUndefined(this.shape)){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.isNullOrUndefined(this.shimmerEffect)||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.ButtonModelProps=d,t.Message=g,t.Skeleton=T,t.Toast=f,t.ToastAnimationSettings=m,t.ToastAnimations=u,t.ToastPosition=p,t}({},ej.base,ej.buttons,ej.popups),this.ejs=ej;
//# sourceMappingURL=ej2-notifications.min.js.map
/*!
* filename: index.d.ts
* version : 27.2.2
* version : 27.2.4
* 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@27.1.50",
"_id": "@syncfusion/ej2-notifications@27.2.2",
"_inBundle": false,
"_integrity": "sha512-bRVfE35IRZLxniJFvL3J1VVvuApdR/q2SY+xPtweWKVoeSOHlgK/c6A11SKI/ZOgIR8vDGp/4di217xGJk02Ew==",
"_integrity": "sha512-yasmHLjvTQdqtl/8jiS1Cvsx5RapdtS35NURo/iqhaU5cDBBoSB2EDkLVZ5zWqs7E1z5IabBypntroZazIKLEw==",
"_location": "/@syncfusion/ej2-notifications",

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

],
"_resolved": "https://nexus.syncfusioninternal.com/repository/ej2-hotfix-new/@syncfusion/ej2-notifications/-/ej2-notifications-27.1.50.tgz",
"_shasum": "650c1e81e9a663f00e2b9b9863106b1168108b94",
"_resolved": "https://nexus.syncfusioninternal.com/repository/ej2-hotfix-new/@syncfusion/ej2-notifications/-/ej2-notifications-27.2.2.tgz",
"_shasum": "5aa9d4bc4dfa07dfc53bc2fe9c7278ba8a1904ad",
"_spec": "@syncfusion/ej2-notifications@*",

@@ -44,3 +44,3 @@ "_where": "/jenkins/workspace/elease-automation_release_27.1.1/packages/included",

"@syncfusion/ej2-base": "~27.2.2",
"@syncfusion/ej2-buttons": "~27.2.2",
"@syncfusion/ej2-buttons": "~27.2.4",
"@syncfusion/ej2-popups": "~27.2.2"

@@ -80,5 +80,5 @@ },

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

@@ -629,8 +629,10 @@ var __extends = (this && this.__extends) || (function () {

var progress = this.progressObj[id];
var toastEle = progress.element;
progress.timeOutId = window.setTimeout(this.destroyToast.bind(this, toastEle), this.extendedTimeout);
progress.maxHideTime = parseFloat(this.extendedTimeout + '');
progress.hideEta = new Date().getTime() + progress.maxHideTime;
if (!isNOU(toastEle.querySelector('.' + PROGRESS))) {
progress.intervalId = setInterval(this.updateProgressBar.bind(this, progress), 10);
if (!isNOU(progress)) {
var toastEle = progress.element;
progress.timeOutId = window.setTimeout(this.destroyToast.bind(this, toastEle), this.extendedTimeout);
progress.maxHideTime = parseFloat(this.extendedTimeout + '');
progress.hideEta = new Date().getTime() + progress.maxHideTime;
if (!isNOU(toastEle.querySelector('.' + PROGRESS))) {
progress.intervalId = setInterval(this.updateProgressBar.bind(this, progress), 10);
}
}

@@ -637,0 +639,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