UNPKG

@syncfusion/ej2-react-notifications

Version:

A package of Essential JS 2 notification components such as Toast and Badge which used to notify important information to end-users. for React

12 lines (11 loc) 4.4 kB
/*! * filename: ej2-react-notifications.umd.min.js * version : 30.1.37 * Copyright Syncfusion Inc. 2001 - 2024. All rights reserved. * Use of this code is subject to the terms of our license. * A copy of the current license can be obtained at any time by e-mailing * licensing@syncfusion.com. Any infringement will be prosecuted under * applicable laws. */ !function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("@syncfusion/ej2-react-base"),require("react"),require("@syncfusion/ej2-notifications")):"function"==typeof define&&define.amd?define(["exports","@syncfusion/ej2-react-base","react","@syncfusion/ej2-notifications"],e):e((t=t||self).ej={},t.ej2ReactBase,t.React,t.ej2Notifications)}(this,function(e,t,n,o){"use strict";r=function(t,e){return(r=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(t,e){t.__proto__=e}:function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])}))(t,e)};var r,i,s=function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},c=(i=t.ComplexBase,s(p,i),p.moduleName="buttonModelProp",p);function p(){return null!==i&&i.apply(this,arguments)||this}a=t.ComplexBase,s(l,a),l.propertyName="buttons",l.moduleName="buttonModelProps";var a,s=l;function l(){return null!==a&&a.apply(this,arguments)||this}u=function(t,e){return(u=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(t,e){t.__proto__=e}:function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])}))(t,e)};var u,f,d=function(t,e){function n(){this.constructor=t}u(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},d=(f=o.Toast,d(h,f),h.prototype.render=function(){if(this.isReactMock=!1,!(this.element&&!this.initRenderCalled||this.refreshing)||this.isReactForeceUpdate)return n.createElement("div",this.getDefaultAttributes(),[].concat(this.props.children,this.portals));f.prototype.render.call(this),this.initRenderCalled=!0},h);function h(t){t=f.call(this,t)||this;return t.initRenderCalled=!1,t.checkInjectedModules=!1,t.directivekeys={buttonModelProps:"buttonModelProp"},t.statelessTemplateProps=["content"],t.templateProps=null,t.immediateRender=!1,t.isReactMock=!0,t.portals=[],t}t.applyMixins(d,[t.ComponentBase,n.Component]);y=function(t,e){return(y=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(t,e){t.__proto__=e}:function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])}))(t,e)};var y,m,_=function(t,e){function n(){this.constructor=t}y(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},_=(m=o.Message,_(b,m),b.prototype.render=function(){if(this.isReactMock=!1,!(this.element&&!this.initRenderCalled||this.refreshing)||this.isReactForeceUpdate)return n.createElement("div",this.getDefaultAttributes(),[].concat(this.props.children,this.portals));m.prototype.render.call(this),this.initRenderCalled=!0},b);function b(t){t=m.call(this,t)||this;return t.initRenderCalled=!1,t.checkInjectedModules=!1,t.statelessTemplateProps=null,t.templateProps=null,t.immediateRender=!1,t.isReactMock=!0,t.portals=[],t}t.applyMixins(_,[t.ComponentBase,n.Component]);R=function(t,e){return(R=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(t,e){t.__proto__=e}:function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])}))(t,e)};var R,j,P=function(t,e){function n(){this.constructor=t}R(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},P=(j=o.Skeleton,P(M,j),M.prototype.render=function(){if(this.isReactMock=!1,!(this.element&&!this.initRenderCalled||this.refreshing)||this.isReactForeceUpdate)return n.createElement("div",this.getDefaultAttributes(),[].concat(this.props.children,this.portals));j.prototype.render.call(this),this.initRenderCalled=!0},M);function M(t){t=j.call(this,t)||this;return t.initRenderCalled=!1,t.checkInjectedModules=!1,t.statelessTemplateProps=null,t.templateProps=null,t.immediateRender=!0,t.isReactMock=!0,t.portals=[],t}t.applyMixins(P,[t.ComponentBase,n.Component]),Object.keys(o).forEach(function(t){"default"!==t&&Object.defineProperty(e,t,{enumerable:!0,get:function(){return o[t]}})}),e.ButtonModelPropDirective=c,e.ButtonModelPropsDirective=s,e.MessageComponent=_,e.SkeletonComponent=P,e.ToastComponent=d,Object.defineProperty(e,"__esModule",{value:!0})}); //# sourceMappingURL=ej2-react-notifications.umd.min.js.map