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

@ngneat/hot-toast

Package Overview
Dependencies
Maintainers
3
Versions
75
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ngneat/hot-toast - npm Package Compare versions

Comparing version 3.0.0 to 3.1.0-beta.1

18

bundles/ngneat-hot-toast.umd.js

@@ -539,6 +539,11 @@ (function (global, factory) {

HotToastContainerComponent.prototype.closeToast = function (id) {
var comp = this.hotToastComponentList.find(function (item) { return item.toast.id === id; });
if (comp) {
comp.close();
if (id) {
var comp = this.hotToastComponentList.find(function (item) { return item.toast.id === id; });
if (comp) {
comp.close();
}
}
else {
this.hotToastComponentList.forEach(function (comp) { return comp.close(); });
}
};

@@ -655,3 +660,5 @@ HotToastContainerComponent.prototype.beforeClosed = function (toast) {

this._defaultConfig = Object.assign(Object.assign({}, this._defaultConfig), config);
this._componentRef.setInput('defaultConfig', this._defaultConfig);
if (this._componentRef) {
this._componentRef.setInput('defaultConfig', this._defaultConfig);
}
},

@@ -758,3 +765,4 @@ enumerable: false,

*
* @param id - ID of the toast
* @param [id] - ID of the toast
* @since 3.0.1 - If ID is not provided, all toasts will be closed
*/

@@ -761,0 +769,0 @@ HotToastService.prototype.close = function (id) {

@@ -15,3 +15,3 @@ !function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("@angular/common"),require("@angular/core"),require("@ngneat/overview"),require("rxjs/operators"),require("rxjs")):"function"==typeof define&&define.amd?define("@ngneat/hot-toast",["exports","@angular/common","@angular/core","@ngneat/overview","rxjs/operators","rxjs"],e):e(((t="undefined"!=typeof globalThis?globalThis:t||self).ngneat=t.ngneat||{},t.ngneat["hot-toast"]={}),t.ng.common,t.ng.core,t.i1,t.rxjs.operators,t.rxjs)}(this,(function(t,e,o,n,a,i){"use strict";

PERFORMANCE OF THIS SOFTWARE.
***************************************************************************** */Object.create;function r(t,e){var o="function"==typeof Symbol&&t[Symbol.iterator];if(!o)return t;var n,a,i=o.call(t),r=[];try{for(;(void 0===e||e-- >0)&&!(n=i.next()).done;)r.push(n.value)}catch(t){a={error:t}}finally{try{n&&!n.done&&(o=i.return)&&o.call(i)}finally{if(a)throw a.error}}return r}Object.create;var s={blank:4e3,error:4e3,success:4e3,loading:3e4,warning:4e3},c=function(){function t(t){this.toast=t,this._onClosed=new i.Subject}return Object.defineProperty(t.prototype,"dispose",{set:function(t){this._dispose=t},enumerable:!1,configurable:!0}),t.prototype.getToast=function(){return this.toast},t.prototype.appendTo=function(t){var e=t.addToast(this),o=e.dispose,n=e.updateMessage,a=e.updateToast,r=e.afterClosed;return this.dispose=o,this.updateMessage=n,this.updateToast=a,this.afterClosed=i.race(this._onClosed.asObservable(),r),this},t.prototype.close=function(t){void 0===t&&(t={dismissedByAction:!1}),this._dispose(),this._onClosed.next({dismissedByAction:t.dismissedByAction,id:this.toast.id}),this._onClosed.complete()},Object.defineProperty(t.prototype,"data",{get:function(){return this.toast.data},enumerable:!1,configurable:!0}),t}(),d=function(){function t(t){this.injector=t,this.offset=0,this.height=new o.EventEmitter,this.beforeClosed=new o.EventEmitter,this.afterClosed=new o.EventEmitter,this.isManualClose=!1}return t.prototype.ngOnInit=function(){n.isTemplateRef(this.toast.message)&&(this.context={$implicit:this.toastRef}),n.isComponent(this.toast.message)&&(this.toastComponentInjector=o.Injector.create({providers:[{provide:c,useValue:this.toastRef}],parent:this.toast.injector||this.injector}))},t.prototype.ngAfterViewInit=function(){var t=this,e=this.toastBarBase.nativeElement;setTimeout((function(){t.height.emit(e.offsetHeight)})),e.addEventListener("animationstart",(function(e){t.isExitAnimation(e)&&t.beforeClosed.emit()})),e.addEventListener("animationend",(function(e){t.isExitAnimation(e)&&t.afterClosed.emit({dismissedByAction:t.isManualClose,id:t.toast.id})}))},Object.defineProperty(t.prototype,"containerPositionStyle",{get:function(){var t=this.toast.position.includes("top"),e=t?{top:0}:{bottom:0},o=this.toast.position.includes("left")?{left:0}:this.toast.position.includes("right")?{right:0}:{left:0,right:0,justifyContent:"center"};return Object.assign(Object.assign({transform:"translateY("+this.offset*(t?1:-1)+"px)"},e),o)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"toastBarBaseStyles",{get:function(){var t=this.toast.position.includes("top"),e="hotToastEnterAnimation"+(t?"Negative":"Positive")+" 350ms cubic-bezier(0.21, 1.02, 0.73, 1) forwards",o="hotToastExitAnimation"+(t?"Negative":"Positive")+" 800ms forwards cubic-bezier(0.06, 0.71, 0.55, 1) "+this.toast.duration+"ms",n=this.toast.autoClose?e+", "+o:e;return Object.assign(Object.assign({},this.toast.style),{animation:n})},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isIconString",{get:function(){return"string"==typeof this.toast.icon},enumerable:!1,configurable:!0}),t.prototype.close=function(){this.isManualClose=!0;var t,e="hotToastExitAnimation"+(this.toast.position.includes("top")?"Negative":"Positive")+" 800ms forwards cubic-bezier(0.06, 0.71, 0.55, 1)",o=this.toastBarBase.nativeElement;t=e,o.style.animation=t},t.prototype.ngOnDestroy=function(){this.close()},t.prototype.isExitAnimation=function(t){return t.animationName.includes("hotToastExitAnimation")},t}();d.decorators=[{type:o.Component,args:[{selector:"hot-toast",template:'<div\n class="hot-toast-bar-base-container"\n [ngStyle]="containerPositionStyle"\n [ngClass]="\'hot-toast-theme-\' + toast.theme"\n>\n <div\n class="hot-toast-bar-base"\n #hotToastBarBase\n [ngStyle]="toastBarBaseStyles"\n [ngClass]="toast.className"\n [style.--hot-toast-animation-state]="isManualClose ? \'running\' : \'paused\'"\n [attr.aria-live]="toast.ariaLive"\n [attr.role]="toast.role"\n >\n <div class="hot-toast-icon" aria-hidden="true">\n <ng-container *ngIf="toast.icon !== undefined; else indicator">\n <ng-container *ngIf="isIconString; else iconTemplateOrComponent">\n <hot-toast-animated-icon [iconTheme]="toast.iconTheme">{{ toast.icon }}</hot-toast-animated-icon>\n </ng-container>\n <ng-template #iconTemplateOrComponent>\n <div>\n <ng-container [dynamicView]="toast.icon"></ng-container>\n </div>\n </ng-template>\n </ng-container>\n\n <ng-template #indicator>\n <hot-toast-indicator [theme]="toast.iconTheme" [type]="toast.type"></hot-toast-indicator>\n </ng-template>\n </div>\n\n <div class="hot-toast-message">\n <div>\n <ng-container *dynamicView="toast.message; context: context; injector: toastComponentInjector"></ng-container>\n </div>\n </div>\n\n <button\n *ngIf="toast.dismissible"\n (click)="close()"\n type="button"\n class="hot-toast-close-btn"\n aria-label="Close"\n [ngStyle]="toast.closeStyle"\n ></button>\n </div>\n</div>\n',changeDetection:o.ChangeDetectionStrategy.OnPush,styles:[".hot-toast-bar-base{align-items:center;background:var(--hot-toast-bg,#fff);border-radius:var(--hot-toast-border-radius,4px);box-shadow:var(--hot-toast-shadow,0 3px 10px rgba(0,0,0,.1),0 3px 3px rgba(0,0,0,.05));color:var(--hot-toast-color,#363636);display:flex;line-height:var(--hot-toast-line,1.3);margin:16px;max-width:var(--hot-toast-max-width,350px);padding:8px 10px;pointer-events:auto;width:-webkit-fit-content;width:-moz-fit-content;width:fit-content;will-change:transform}.hot-toast-bar-base:focus,.hot-toast-bar-base:hover{animation-play-state:var(--hot-toast-animation-state,paused)!important}@media (prefers-reduced-motion:reduce){.hot-toast-bar-base{animation-duration:10ms!important}}.hot-toast-message{color:inherit;display:flex;flex:1;justify-content:center;margin:4px 10px}.hot-toast-bar-base-container{display:flex;pointer-events:none;position:absolute;transition:transform .23s cubic-bezier(.21,1.02,.73,1)}@media (prefers-reduced-motion:reduce){.hot-toast-bar-base-container{transition-duration:10ms!important}}.hot-toast-bar-base-container.hot-toast-theme-snackbar .hot-toast-bar-base{background:var(--hot-toast-snackbar-bg,#323232);box-shadow:var(--hot-toast-snackbar-shadow,0 3px 5px -1px rgba(0,0,0,.2),0 6px 10px 0 rgba(0,0,0,.14),0 1px 18px 0 rgba(0,0,0,.12));color:var(--hot-toast-snackbar-color,#fff)}.hot-toast-bar-base-container.hot-toast-theme-snackbar .hot-toast-close-btn{filter:invert(1) grayscale(100%) brightness(200%)}@keyframes hotToastEnterAnimationNegative{0%{opacity:.5;transform:translate3d(0,-80px,0) scale(.6)}to{opacity:1;transform:translateZ(0) scale(1)}}@keyframes hotToastEnterAnimationPositive{0%{opacity:.5;transform:translate3d(0,80px,0) scale(.6)}to{opacity:1;transform:translateZ(0) scale(1)}}@keyframes hotToastExitAnimationPositive{0%{opacity:1;transform:translateZ(-1px) scale(1)}to{opacity:0;transform:translate3d(0,130px,-1px) scale(.5)}}@keyframes hotToastExitAnimationNegative{0%{opacity:1;transform:translateZ(-1px) scale(1)}to{opacity:0;transform:translate3d(0,-130px,-1px) scale(.5)}}.hot-toast-close-btn{align-self:flex-start;background-color:initial;background-image:url(\"data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23000'%3e%3cpath d='M.293.293a1 1 0 011.414 0L8 6.586 14.293.293a1 1 0 111.414 1.414L9.414 8l6.293 6.293a1 1 0 01-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 01-1.414-1.414L6.586 8 .293 1.707a1 1 0 010-1.414z'/%3e%3c/svg%3e\");background-position:50%;background-repeat:no-repeat;background-size:.75em;border:0;border-radius:.25rem;box-sizing:initial;display:flex;height:.8em;margin-top:.25em;opacity:.5;padding:.25em;width:.8em}.hot-toast-close-btn:focus{box-shadow:0 0 0 .125rem rgba(13,110,253,.25);outline:none}.hot-toast-close-btn:focus,.hot-toast-close-btn:hover{opacity:.75}.hot-toast-icon{align-self:flex-start;padding-top:.25em}"]}]}],d.ctorParameters=function(){return[{type:o.Injector}]},d.propDecorators={toast:[{type:o.Input}],offset:[{type:o.Input}],defaultConfig:[{type:o.Input}],toastRef:[{type:o.Input}],height:[{type:o.Output}],beforeClosed:[{type:o.Output}],afterClosed:[{type:o.Output}],toastBarBase:[{type:o.ViewChild,args:["hotToastBarBase"]}]};var p=function(){function t(t){this.cdr=t,this.toasts=[],this.toastRefs=[],this._onClosed=new i.Subject,this.onClosed$=this._onClosed.asObservable()}return t.prototype.trackById=function(t,e){return e.id},t.prototype.calculateOffset=function(t,e){var o=this.toasts.filter((function(t){return t.visible&&t.position===e})),n=o.findIndex((function(e){return e.id===t}));return-1!==n?o.slice.apply(o,function(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(r(arguments[e]));return t}(this.defaultConfig.reverseOrder?[n+1]:[0,n])).reduce((function(t,e){return t+(e.height||0)+8}),0):0},t.prototype.updateHeight=function(t,e){e.height=t,this.cdr.detectChanges()},t.prototype.addToast=function(t){var e=this;this.toastRefs.push(t);var o=t.getToast();return this.toasts.push(t.getToast()),this.cdr.detectChanges(),{dispose:function(){e.closeToast(o.id)},updateMessage:function(t){o.message=t,e.cdr.detectChanges()},updateToast:function(t){e.updateToasts(o,t),e.cdr.detectChanges()},afterClosed:this.getAfterClosed(o)}},t.prototype.closeToast=function(t){var e=this.hotToastComponentList.find((function(e){return e.toast.id===t}));e&&e.close()},t.prototype.beforeClosed=function(t){t.visible=!1},t.prototype.afterClosed=function(t){this.toasts.findIndex((function(e){return e.id===t.id}))>-1&&(this._onClosed.next(t),this.toasts=this.toasts.filter((function(e){return e.id!==t.id})),this.toastRefs=this.toastRefs.filter((function(e){return e.getToast().id!==t.id})),this.cdr.detectChanges())},t.prototype.hasToast=function(t){return this.toasts.findIndex((function(e){return e.id===t}))>-1},t.prototype.getAfterClosed=function(t){return this.onClosed$.pipe(a.filter((function(e){return e.id===t.id})))},t.prototype.updateToasts=function(t,e){this.toasts=this.toasts.map((function(o){return Object.assign(Object.assign({},o),o.id===t.id&&Object.assign(Object.assign({},t),e))}))},t}();p.decorators=[{type:o.Component,args:[{selector:"hot-toast-container",template:'<div style="position: fixed; z-index: 9999; top: 0; right: 0; bottom: 0; left: 0; pointer-events: none">\n <div style="position: relative; height: 100%">\n <hot-toast\n *ngFor="let toast of toasts; trackBy: trackById; let i = index"\n [toast]="toast"\n [offset]="calculateOffset(toast.id, toast.position)"\n [toastRef]="toastRefs[i]"\n (height)="updateHeight($event, toast)"\n (beforeClosed)="beforeClosed(toast)"\n (afterClosed)="afterClosed($event)"\n ></hot-toast>\n </div>\n</div>\n',changeDetection:o.ChangeDetectionStrategy.OnPush}]}],p.ctorParameters=function(){return[{type:o.ChangeDetectorRef}]},p.propDecorators={defaultConfig:[{type:o.Input}],hotToastComponentList:[{type:o.ViewChildren,args:[d]}]};var l=function(){this.reverseOrder=!1,this.ariaLive="polite",this.role="status",this.position="top-center",this.autoClose=!0,this.theme="toast",this.success={content:""},this.error={content:""},this.loading={content:""},this.blank={content:""},this.warning={content:""}},h=function(t){return"function"==typeof t},f=h,u=function(t,e){return h(t)?t(e):t},g=function(){this.storage="local",this.key="ngneat/hototast-${id}",this.count=1,this.enabled=!1},m=function(){function t(t,e,o){this._viewService=t,this.platformId=e,this._isInitialized=!1,this._defaultConfig=new l,this._defaultPersistConfig=new g,o&&(this._defaultConfig=Object.assign(Object.assign({},this._defaultConfig),o))}return Object.defineProperty(t.prototype,"defaultConfig",{get:function(){return this._defaultConfig},set:function(t){this._defaultConfig=Object.assign(Object.assign({},this._defaultConfig),t),this._componentRef.setInput("defaultConfig",this._defaultConfig)},enumerable:!1,configurable:!0}),t.prototype.show=function(t,e){return this.createToast(t||this._defaultConfig.blank.content,"blank",Object.assign(Object.assign({},this._defaultConfig),e))},t.prototype.error=function(t,e){var o;return this.createToast(t||this._defaultConfig.error.content,"error",Object.assign(Object.assign(Object.assign({},this._defaultConfig),null===(o=this._defaultConfig)||void 0===o?void 0:o.error),e))},t.prototype.success=function(t,e){var o;return this.createToast(t||this._defaultConfig.success.content,"success",Object.assign(Object.assign(Object.assign({},this._defaultConfig),null===(o=this._defaultConfig)||void 0===o?void 0:o.success),e))},t.prototype.loading=function(t,e){var o;return this.createToast(t||this._defaultConfig.loading.content,"loading",Object.assign(Object.assign(Object.assign({},this._defaultConfig),null===(o=this._defaultConfig)||void 0===o?void 0:o.loading),e))},t.prototype.warning=function(t,e){var o;return this.createToast(t||this._defaultConfig.warning.content,"warning",Object.assign(Object.assign(Object.assign({},this._defaultConfig),null===(o=this._defaultConfig)||void 0===o?void 0:o.warning),e))},t.prototype.observe=function(t){var e=this;return function(o){var n,i,r,s=0,c=t.loading||(null===(n=e._defaultConfig.loading)||void 0===n?void 0:n.content),d=t.error||(null===(i=e._defaultConfig.error)||void 0===i?void 0:i.content);return c&&(r=e.createLoadingToast(c),s=Date.now()),o.pipe(a.tap(Object.assign({next:function(o){r=e.createOrUpdateToast(t,o,r,"success",0===s?s:Date.now()-s)}},d&&{error:function(o){r=e.createOrUpdateToast(t,o,r,"error",0===s?s:Date.now()-s)}})))}},t.prototype.close=function(t){this._componentRef&&this._componentRef.ref.instance.closeToast(t)},t.prototype.init=function(){e.isPlatformServer(this.platformId)||(this._componentRef=this._viewService.createComponent(p).setInput("defaultConfig",this._defaultConfig).appendTo(document.body))},t.prototype.createOrUpdateToast=function(t,e,o,n,a){var i,r,c=null;if(c=(i=this.getContentAndOptions(n,t[n]||(this._defaultConfig[n]?this._defaultConfig[n].content:""))).content,r=i.options,c=u(c,e),o){o.updateMessage(c);var d=Object.assign(Object.assign({type:n,duration:a+s[n]},r),r.duration&&{duration:a+r.duration});o.updateToast(d)}else this.createToast(c,n,r);return o},t.prototype.createToast=function(t,e,o,n){var a,i,r,d,p,l;this._isInitialized||(this._isInitialized=!0,this.init());var h=Date.now(),f=null!==(a=null==o?void 0:o.id)&&void 0!==a?a:h.toString();if(!this.isDuplicate(f)&&(!(null===(i=o.persist)||void 0===i?void 0:i.enabled)||(null===(r=o.persist)||void 0===r?void 0:r.enabled)&&this.handleStorageValue(f,o))){var u=Object.assign({ariaLive:null!==(d=null==o?void 0:o.ariaLive)&&void 0!==d?d:"polite",createdAt:h,duration:null!==(p=null==o?void 0:o.duration)&&void 0!==p?p:s[e],id:f,message:t,role:null!==(l=null==o?void 0:o.role)&&void 0!==l?l:"status",type:e,visible:!0,observableMessages:null!=n?n:void 0},o);return new c(u).appendTo(this._componentRef.ref.instance)}},t.prototype.isDuplicate=function(t){return this._componentRef.ref.instance.hasToast(t)},t.prototype.handleStorageValue=function(t,e){var o=1,n=Object.assign(Object.assign({},this._defaultPersistConfig),e.persist),a="local"===n.storage?localStorage:sessionStorage,i=n.key.replace(/\${id}/g,t),r=a.getItem(i);return o=r?(r=parseInt(r,10))>0?r-1:r:n.count,a.setItem(i,o.toString()),o},t.prototype.getContentAndOptions=function(t,e){var o,a,i=Object.assign(Object.assign({},this._defaultConfig),this._defaultConfig[t]);if("string"==typeof e||n.isTemplateRef(e)||n.isComponent(e))a=e;else{var r;a=(o=e).content,r=function(t,e){var o={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.indexOf(n)<0&&(o[n]=t[n]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(n=Object.getOwnPropertySymbols(t);a<n.length;a++)e.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(t,n[a])&&(o[n[a]]=t[n[a]])}return o}(o,["content"]),i=Object.assign(Object.assign({},i),r)}return{content:a,options:i}},t.prototype.createLoadingToast=function(t){var e,o,n;return o=(e=this.getContentAndOptions("loading",t)).content,n=e.options,this.loading(o,n)},t}();m.ɵprov=o.ɵɵdefineInjectable({factory:function(){return new m(o.ɵɵinject(n.ViewService),o.ɵɵinject(o.PLATFORM_ID),o.ɵɵinject(l,8))},token:m,providedIn:"root"}),m.decorators=[{type:o.Injectable,args:[{providedIn:"root"}]}],m.ctorParameters=function(){return[{type:n.ViewService},{type:String,decorators:[{type:o.Inject,args:[o.PLATFORM_ID]}]},{type:l,decorators:[{type:o.Optional}]}]};var y=function(){};y.decorators=[{type:o.Component,args:[{selector:"hot-toast-animated-icon",template:'<div class="hot-toast-animated-icon" [style.color]="iconTheme?.primary">\n <ng-content></ng-content>\n</div>\n',changeDetection:o.ChangeDetectionStrategy.OnPush,styles:["@keyframes hotToastEnter{0%{transform:scale(0)}to{transform:scale(1)}}.hot-toast-animated-icon{animation:hotToastEnter .3s ease-in-out forwards;position:relative;transform:scale(0)}@media (prefers-reduced-motion:reduce){.hot-toast-animated-icon{animation-duration:none;opacity:1;transform:scale(1)}}"]}]}],y.propDecorators={iconTheme:[{type:o.Input}]};var b=function(){};b.decorators=[{type:o.Component,args:[{selector:"hot-toast-checkmark",template:'<div\n class="hot-toast-checkmark-icon"\n [style.--check-primary]="theme?.primary || \'#61d345\'"\n [style.--check-secondary]="theme?.secondary || \'#fff\'"\n></div>\n',changeDetection:o.ChangeDetectionStrategy.OnPush,styles:['@keyframes hotToastCircleAnimation{0%{opacity:0;transform:scale(0) rotate(45deg)}to{opacity:1;transform:scale(1) rotate(45deg)}}@keyframes hotToastCheckmarkAnimation{0%{height:0;opacity:0;width:0}40%{height:0;opacity:1;width:6px}to{height:10px;opacity:1}}.hot-toast-checkmark-icon{animation:hotToastCircleAnimation .3s cubic-bezier(.175,.885,.32,1.275) forwards;animation-delay:.1s;background:var(--check-primary,#61d345);border-radius:10px;height:20px;opacity:0;position:relative;transform:rotate(45deg);width:20px}@media (prefers-reduced-motion:reduce){.hot-toast-checkmark-icon{animation-duration:0ms}}.hot-toast-checkmark-icon:after{animation:hotToastCheckmarkAnimation .2s ease-out forwards;animation-delay:.2s;border-bottom:2px solid;border-bottom-color:var(--check-secondary,#fff);border-left-color:var(--check-secondary,#fff);border-right:2px solid;border-right-color:var(--check-secondary,#fff);border-top-color:var(--check-secondary,#fff);bottom:6px;box-sizing:border-box;content:"";height:10px;left:6px;opacity:0;position:absolute;width:6px}@media (prefers-reduced-motion:reduce){.hot-toast-checkmark-icon:after{animation-duration:0ms}}']}]}],b.propDecorators={theme:[{type:o.Input}]};var v=function(){};v.decorators=[{type:o.Component,args:[{selector:"hot-toast-error",template:'<div\n class="hot-toast-error-icon"\n [style.--error-primary]="theme?.primary || \'#ff4b4b\'"\n [style.--error-secondary]="theme?.secondary || \'#fff\'"\n></div>\n',changeDetection:o.ChangeDetectionStrategy.OnPush,styles:['@keyframes hotToastErrorCircleAnimation{0%{opacity:0;transform:scale(0) rotate(45deg)}to{opacity:1;transform:scale(1) rotate(45deg)}}@keyframes hotToastFirstLineAnimation{0%{opacity:0;transform:scale(0)}to{opacity:1;transform:scale(1)}}@keyframes hotToastSecondLineAnimation{0%{opacity:0;transform:scale(0) rotate(90deg)}to{opacity:1;transform:scale(1) rotate(90deg)}}.hot-toast-error-icon{animation:hotToastErrorCircleAnimation .3s cubic-bezier(.175,.885,.32,1.275) forwards;animation-delay:.1s;background:var(--error-primary,#ff4b4b);border-radius:10px;height:20px;opacity:0;position:relative;transform:rotate(45deg);width:20px}@media (prefers-reduced-motion:reduce){.hot-toast-error-icon{animation-duration:0ms}}.hot-toast-error-icon:after,.hot-toast-error-icon:before{animation:hotToastFirstLineAnimation .15s ease-out forwards;animation-delay:.15s;background:var(--error-secondary,#fff);border-radius:3px;bottom:9px;content:"";height:2px;left:4px;opacity:0;position:absolute;width:12px}@media (prefers-reduced-motion:reduce){.hot-toast-error-icon:after,.hot-toast-error-icon:before{animation-duration:0ms}}.hot-toast-error-icon:before{animation:hotToastSecondLineAnimation .15s ease-out forwards;animation-delay:.18s;transform:rotate(90deg)}@media (prefers-reduced-motion:reduce){.hot-toast-error-icon:before{animation-duration:0ms}}']}]}],v.propDecorators={theme:[{type:o.Input}]};var C=function(){};C.decorators=[{type:o.Component,args:[{selector:"hot-toast-loader",template:"<div\n class=\"hot-toast-loader-icon\"\n [ngStyle]=\"{ 'border-color': theme?.primary || '#e0e0e0', 'border-right-color': theme?.secondary || '#616161' }\"\n></div>\n",changeDetection:o.ChangeDetectionStrategy.OnPush,styles:["@keyframes hotToastRotate{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}.hot-toast-loader-icon{animation:hotToastRotate 1s linear infinite;border:2px solid #e0e0e0;border-radius:100%;border-right-color:#616161;box-sizing:border-box;height:18px;padding-top:2px;width:18px}@media (prefers-reduced-motion:reduce){.hot-toast-loader-icon{animation-duration:5s}}"]}]}],C.propDecorators={theme:[{type:o.Input}]};var x=function(){};x.decorators=[{type:o.Component,args:[{selector:"hot-toast-indicator",template:'<ng-container *ngIf="type !== \'blank\'">\n <div class="hot-toast-indicator-wrapper">\n <hot-toast-loader [theme]="theme"></hot-toast-loader>\n <ng-container *ngIf="type !== \'loading\'">\n <div class="hot-toast-status-wrapper">\n <div [ngSwitch]="type">\n <div *ngSwitchCase="\'error\'">\n <hot-toast-error [theme]="theme"></hot-toast-error>\n </div>\n <div *ngSwitchCase="\'success\'">\n <hot-toast-checkmark [theme]="theme"></hot-toast-checkmark>\n </div>\n <div *ngSwitchCase="\'warning\'">\n <hot-toast-warning [theme]="theme"></hot-toast-warning>\n </div>\n </div>\n </div>\n </ng-container>\n </div>\n</ng-container>\n',changeDetection:o.ChangeDetectionStrategy.OnPush,styles:[".hot-toast-indicator-wrapper{align-items:center;display:flex;justify-content:center;min-height:20px;min-width:20px;position:relative}.hot-toast-status-wrapper{position:absolute}"]}]}],x.propDecorators={theme:[{type:o.Input}],type:[{type:o.Input}]};var w=function(){};w.decorators=[{type:o.Component,args:[{selector:"hot-toast-warning",template:'<div\n class="hot-toast-warning-icon"\n [style.--warn-primary]="theme?.primary || \'#FFAB00\'"\n [style.--warn-secondary]="theme?.secondary || \'#fff\'"\n></div>\n',changeDetection:o.ChangeDetectionStrategy.OnPush,styles:['@keyframes animate-warn-background{0%{opacity:0;transform:scale(0)}to{opacity:1;transform:scale(1)}}@keyframes animate-warn-line{0%{height:0;opacity:0}40%{height:4.8px;opacity:1}to{height:8px;opacity:1}}.hot-toast-warning-icon{animation:animate-warn-background .3s cubic-bezier(.175,.885,.32,1.275) forwards;animation-delay:.1s;background-color:var(--warn-primary,#ffab00);border-radius:50%;display:block;height:20px;opacity:0;position:relative;transform:scale(0);width:20px}.hot-toast-warning-icon:after,.hot-toast-warning-icon:before{background-color:var(--warn-secondary,#fff);border-radius:3px;box-sizing:border-box;content:"";display:block;left:8.5px;position:absolute;width:2.5px}.hot-toast-warning-icon:after{animation:animate-warn-line .2s ease-out forwards;animation-delay:.2s;height:0;opacity:0;top:4px}.hot-toast-warning-icon:before{bottom:4px;height:2px}']}]}],w.propDecorators={theme:[{type:o.Input}]};var O=function(){function t(){}return t.forRoot=function(e){return{ngModule:t,providers:[{provide:l,useValue:e}]}},t}();O.decorators=[{type:o.NgModule,args:[{declarations:[p,d,y,x,b,v,C,w],imports:[e.CommonModule,n.DynamicViewModule],entryComponents:[p]}]}],t.HotToastModule=O,t.HotToastRef=c,t.HotToastService=m,t.ToastConfig=l,t.ToastPersistConfig=g,t.resolveValueOrFunction=u,t.ɵ0=f,t.ɵa=p,t.ɵb=d,t.ɵc=y,t.ɵd=x,t.ɵe=b,t.ɵf=v,t.ɵg=C,t.ɵh=w,Object.defineProperty(t,"__esModule",{value:!0})}));
***************************************************************************** */Object.create;function r(t,e){var o="function"==typeof Symbol&&t[Symbol.iterator];if(!o)return t;var n,a,i=o.call(t),r=[];try{for(;(void 0===e||e-- >0)&&!(n=i.next()).done;)r.push(n.value)}catch(t){a={error:t}}finally{try{n&&!n.done&&(o=i.return)&&o.call(i)}finally{if(a)throw a.error}}return r}Object.create;var s={blank:4e3,error:4e3,success:4e3,loading:3e4,warning:4e3},c=function(){function t(t){this.toast=t,this._onClosed=new i.Subject}return Object.defineProperty(t.prototype,"dispose",{set:function(t){this._dispose=t},enumerable:!1,configurable:!0}),t.prototype.getToast=function(){return this.toast},t.prototype.appendTo=function(t){var e=t.addToast(this),o=e.dispose,n=e.updateMessage,a=e.updateToast,r=e.afterClosed;return this.dispose=o,this.updateMessage=n,this.updateToast=a,this.afterClosed=i.race(this._onClosed.asObservable(),r),this},t.prototype.close=function(t){void 0===t&&(t={dismissedByAction:!1}),this._dispose(),this._onClosed.next({dismissedByAction:t.dismissedByAction,id:this.toast.id}),this._onClosed.complete()},Object.defineProperty(t.prototype,"data",{get:function(){return this.toast.data},enumerable:!1,configurable:!0}),t}(),d=function(){function t(t){this.injector=t,this.offset=0,this.height=new o.EventEmitter,this.beforeClosed=new o.EventEmitter,this.afterClosed=new o.EventEmitter,this.isManualClose=!1}return t.prototype.ngOnInit=function(){n.isTemplateRef(this.toast.message)&&(this.context={$implicit:this.toastRef}),n.isComponent(this.toast.message)&&(this.toastComponentInjector=o.Injector.create({providers:[{provide:c,useValue:this.toastRef}],parent:this.toast.injector||this.injector}))},t.prototype.ngAfterViewInit=function(){var t=this,e=this.toastBarBase.nativeElement;setTimeout((function(){t.height.emit(e.offsetHeight)})),e.addEventListener("animationstart",(function(e){t.isExitAnimation(e)&&t.beforeClosed.emit()})),e.addEventListener("animationend",(function(e){t.isExitAnimation(e)&&t.afterClosed.emit({dismissedByAction:t.isManualClose,id:t.toast.id})}))},Object.defineProperty(t.prototype,"containerPositionStyle",{get:function(){var t=this.toast.position.includes("top"),e=t?{top:0}:{bottom:0},o=this.toast.position.includes("left")?{left:0}:this.toast.position.includes("right")?{right:0}:{left:0,right:0,justifyContent:"center"};return Object.assign(Object.assign({transform:"translateY("+this.offset*(t?1:-1)+"px)"},e),o)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"toastBarBaseStyles",{get:function(){var t=this.toast.position.includes("top"),e="hotToastEnterAnimation"+(t?"Negative":"Positive")+" 350ms cubic-bezier(0.21, 1.02, 0.73, 1) forwards",o="hotToastExitAnimation"+(t?"Negative":"Positive")+" 800ms forwards cubic-bezier(0.06, 0.71, 0.55, 1) "+this.toast.duration+"ms",n=this.toast.autoClose?e+", "+o:e;return Object.assign(Object.assign({},this.toast.style),{animation:n})},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isIconString",{get:function(){return"string"==typeof this.toast.icon},enumerable:!1,configurable:!0}),t.prototype.close=function(){this.isManualClose=!0;var t,e="hotToastExitAnimation"+(this.toast.position.includes("top")?"Negative":"Positive")+" 800ms forwards cubic-bezier(0.06, 0.71, 0.55, 1)",o=this.toastBarBase.nativeElement;t=e,o.style.animation=t},t.prototype.ngOnDestroy=function(){this.close()},t.prototype.isExitAnimation=function(t){return t.animationName.includes("hotToastExitAnimation")},t}();d.decorators=[{type:o.Component,args:[{selector:"hot-toast",template:'<div\n class="hot-toast-bar-base-container"\n [ngStyle]="containerPositionStyle"\n [ngClass]="\'hot-toast-theme-\' + toast.theme"\n>\n <div\n class="hot-toast-bar-base"\n #hotToastBarBase\n [ngStyle]="toastBarBaseStyles"\n [ngClass]="toast.className"\n [style.--hot-toast-animation-state]="isManualClose ? \'running\' : \'paused\'"\n [attr.aria-live]="toast.ariaLive"\n [attr.role]="toast.role"\n >\n <div class="hot-toast-icon" aria-hidden="true">\n <ng-container *ngIf="toast.icon !== undefined; else indicator">\n <ng-container *ngIf="isIconString; else iconTemplateOrComponent">\n <hot-toast-animated-icon [iconTheme]="toast.iconTheme">{{ toast.icon }}</hot-toast-animated-icon>\n </ng-container>\n <ng-template #iconTemplateOrComponent>\n <div>\n <ng-container [dynamicView]="toast.icon"></ng-container>\n </div>\n </ng-template>\n </ng-container>\n\n <ng-template #indicator>\n <hot-toast-indicator [theme]="toast.iconTheme" [type]="toast.type"></hot-toast-indicator>\n </ng-template>\n </div>\n\n <div class="hot-toast-message">\n <div>\n <ng-container *dynamicView="toast.message; context: context; injector: toastComponentInjector"></ng-container>\n </div>\n </div>\n\n <button\n *ngIf="toast.dismissible"\n (click)="close()"\n type="button"\n class="hot-toast-close-btn"\n aria-label="Close"\n [ngStyle]="toast.closeStyle"\n ></button>\n </div>\n</div>\n',changeDetection:o.ChangeDetectionStrategy.OnPush,styles:[".hot-toast-bar-base{align-items:center;background:var(--hot-toast-bg,#fff);border-radius:var(--hot-toast-border-radius,4px);box-shadow:var(--hot-toast-shadow,0 3px 10px rgba(0,0,0,.1),0 3px 3px rgba(0,0,0,.05));color:var(--hot-toast-color,#363636);display:flex;line-height:var(--hot-toast-line,1.3);margin:16px;max-width:var(--hot-toast-max-width,350px);padding:8px 10px;pointer-events:auto;width:-webkit-fit-content;width:-moz-fit-content;width:fit-content;will-change:transform}.hot-toast-bar-base:focus,.hot-toast-bar-base:hover{animation-play-state:var(--hot-toast-animation-state,paused)!important}@media (prefers-reduced-motion:reduce){.hot-toast-bar-base{animation-duration:10ms!important}}.hot-toast-message{color:inherit;display:flex;flex:1;justify-content:center;margin:4px 10px}.hot-toast-bar-base-container{display:flex;pointer-events:none;position:absolute;transition:transform .23s cubic-bezier(.21,1.02,.73,1)}@media (prefers-reduced-motion:reduce){.hot-toast-bar-base-container{transition-duration:10ms!important}}.hot-toast-bar-base-container.hot-toast-theme-snackbar .hot-toast-bar-base{background:var(--hot-toast-snackbar-bg,#323232);box-shadow:var(--hot-toast-snackbar-shadow,0 3px 5px -1px rgba(0,0,0,.2),0 6px 10px 0 rgba(0,0,0,.14),0 1px 18px 0 rgba(0,0,0,.12));color:var(--hot-toast-snackbar-color,#fff)}.hot-toast-bar-base-container.hot-toast-theme-snackbar .hot-toast-close-btn{filter:invert(1) grayscale(100%) brightness(200%)}@keyframes hotToastEnterAnimationNegative{0%{opacity:.5;transform:translate3d(0,-80px,0) scale(.6)}to{opacity:1;transform:translateZ(0) scale(1)}}@keyframes hotToastEnterAnimationPositive{0%{opacity:.5;transform:translate3d(0,80px,0) scale(.6)}to{opacity:1;transform:translateZ(0) scale(1)}}@keyframes hotToastExitAnimationPositive{0%{opacity:1;transform:translateZ(-1px) scale(1)}to{opacity:0;transform:translate3d(0,130px,-1px) scale(.5)}}@keyframes hotToastExitAnimationNegative{0%{opacity:1;transform:translateZ(-1px) scale(1)}to{opacity:0;transform:translate3d(0,-130px,-1px) scale(.5)}}.hot-toast-close-btn{align-self:flex-start;background-color:initial;background-image:url(\"data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23000'%3e%3cpath d='M.293.293a1 1 0 011.414 0L8 6.586 14.293.293a1 1 0 111.414 1.414L9.414 8l6.293 6.293a1 1 0 01-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 01-1.414-1.414L6.586 8 .293 1.707a1 1 0 010-1.414z'/%3e%3c/svg%3e\");background-position:50%;background-repeat:no-repeat;background-size:.75em;border:0;border-radius:.25rem;box-sizing:initial;display:flex;height:.8em;margin-top:.25em;opacity:.5;padding:.25em;width:.8em}.hot-toast-close-btn:focus{box-shadow:0 0 0 .125rem rgba(13,110,253,.25);outline:none}.hot-toast-close-btn:focus,.hot-toast-close-btn:hover{opacity:.75}.hot-toast-icon{align-self:flex-start;padding-top:.25em}"]}]}],d.ctorParameters=function(){return[{type:o.Injector}]},d.propDecorators={toast:[{type:o.Input}],offset:[{type:o.Input}],defaultConfig:[{type:o.Input}],toastRef:[{type:o.Input}],height:[{type:o.Output}],beforeClosed:[{type:o.Output}],afterClosed:[{type:o.Output}],toastBarBase:[{type:o.ViewChild,args:["hotToastBarBase"]}]};var p=function(){function t(t){this.cdr=t,this.toasts=[],this.toastRefs=[],this._onClosed=new i.Subject,this.onClosed$=this._onClosed.asObservable()}return t.prototype.trackById=function(t,e){return e.id},t.prototype.calculateOffset=function(t,e){var o=this.toasts.filter((function(t){return t.visible&&t.position===e})),n=o.findIndex((function(e){return e.id===t}));return-1!==n?o.slice.apply(o,function(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(r(arguments[e]));return t}(this.defaultConfig.reverseOrder?[n+1]:[0,n])).reduce((function(t,e){return t+(e.height||0)+8}),0):0},t.prototype.updateHeight=function(t,e){e.height=t,this.cdr.detectChanges()},t.prototype.addToast=function(t){var e=this;this.toastRefs.push(t);var o=t.getToast();return this.toasts.push(t.getToast()),this.cdr.detectChanges(),{dispose:function(){e.closeToast(o.id)},updateMessage:function(t){o.message=t,e.cdr.detectChanges()},updateToast:function(t){e.updateToasts(o,t),e.cdr.detectChanges()},afterClosed:this.getAfterClosed(o)}},t.prototype.closeToast=function(t){if(t){var e=this.hotToastComponentList.find((function(e){return e.toast.id===t}));e&&e.close()}else this.hotToastComponentList.forEach((function(t){return t.close()}))},t.prototype.beforeClosed=function(t){t.visible=!1},t.prototype.afterClosed=function(t){this.toasts.findIndex((function(e){return e.id===t.id}))>-1&&(this._onClosed.next(t),this.toasts=this.toasts.filter((function(e){return e.id!==t.id})),this.toastRefs=this.toastRefs.filter((function(e){return e.getToast().id!==t.id})),this.cdr.detectChanges())},t.prototype.hasToast=function(t){return this.toasts.findIndex((function(e){return e.id===t}))>-1},t.prototype.getAfterClosed=function(t){return this.onClosed$.pipe(a.filter((function(e){return e.id===t.id})))},t.prototype.updateToasts=function(t,e){this.toasts=this.toasts.map((function(o){return Object.assign(Object.assign({},o),o.id===t.id&&Object.assign(Object.assign({},t),e))}))},t}();p.decorators=[{type:o.Component,args:[{selector:"hot-toast-container",template:'<div style="position: fixed; z-index: 9999; top: 0; right: 0; bottom: 0; left: 0; pointer-events: none">\n <div style="position: relative; height: 100%">\n <hot-toast\n *ngFor="let toast of toasts; trackBy: trackById; let i = index"\n [toast]="toast"\n [offset]="calculateOffset(toast.id, toast.position)"\n [toastRef]="toastRefs[i]"\n (height)="updateHeight($event, toast)"\n (beforeClosed)="beforeClosed(toast)"\n (afterClosed)="afterClosed($event)"\n ></hot-toast>\n </div>\n</div>\n',changeDetection:o.ChangeDetectionStrategy.OnPush}]}],p.ctorParameters=function(){return[{type:o.ChangeDetectorRef}]},p.propDecorators={defaultConfig:[{type:o.Input}],hotToastComponentList:[{type:o.ViewChildren,args:[d]}]};var l=function(){this.reverseOrder=!1,this.ariaLive="polite",this.role="status",this.position="top-center",this.autoClose=!0,this.theme="toast",this.success={content:""},this.error={content:""},this.loading={content:""},this.blank={content:""},this.warning={content:""}},h=function(t){return"function"==typeof t},f=h,u=function(t,e){return h(t)?t(e):t},g=function(){this.storage="local",this.key="ngneat/hototast-${id}",this.count=1,this.enabled=!1},m=function(){function t(t,e,o){this._viewService=t,this.platformId=e,this._isInitialized=!1,this._defaultConfig=new l,this._defaultPersistConfig=new g,o&&(this._defaultConfig=Object.assign(Object.assign({},this._defaultConfig),o))}return Object.defineProperty(t.prototype,"defaultConfig",{get:function(){return this._defaultConfig},set:function(t){this._defaultConfig=Object.assign(Object.assign({},this._defaultConfig),t),this._componentRef&&this._componentRef.setInput("defaultConfig",this._defaultConfig)},enumerable:!1,configurable:!0}),t.prototype.show=function(t,e){return this.createToast(t||this._defaultConfig.blank.content,"blank",Object.assign(Object.assign({},this._defaultConfig),e))},t.prototype.error=function(t,e){var o;return this.createToast(t||this._defaultConfig.error.content,"error",Object.assign(Object.assign(Object.assign({},this._defaultConfig),null===(o=this._defaultConfig)||void 0===o?void 0:o.error),e))},t.prototype.success=function(t,e){var o;return this.createToast(t||this._defaultConfig.success.content,"success",Object.assign(Object.assign(Object.assign({},this._defaultConfig),null===(o=this._defaultConfig)||void 0===o?void 0:o.success),e))},t.prototype.loading=function(t,e){var o;return this.createToast(t||this._defaultConfig.loading.content,"loading",Object.assign(Object.assign(Object.assign({},this._defaultConfig),null===(o=this._defaultConfig)||void 0===o?void 0:o.loading),e))},t.prototype.warning=function(t,e){var o;return this.createToast(t||this._defaultConfig.warning.content,"warning",Object.assign(Object.assign(Object.assign({},this._defaultConfig),null===(o=this._defaultConfig)||void 0===o?void 0:o.warning),e))},t.prototype.observe=function(t){var e=this;return function(o){var n,i,r,s=0,c=t.loading||(null===(n=e._defaultConfig.loading)||void 0===n?void 0:n.content),d=t.error||(null===(i=e._defaultConfig.error)||void 0===i?void 0:i.content);return c&&(r=e.createLoadingToast(c),s=Date.now()),o.pipe(a.tap(Object.assign({next:function(o){r=e.createOrUpdateToast(t,o,r,"success",0===s?s:Date.now()-s)}},d&&{error:function(o){r=e.createOrUpdateToast(t,o,r,"error",0===s?s:Date.now()-s)}})))}},t.prototype.close=function(t){this._componentRef&&this._componentRef.ref.instance.closeToast(t)},t.prototype.init=function(){e.isPlatformServer(this.platformId)||(this._componentRef=this._viewService.createComponent(p).setInput("defaultConfig",this._defaultConfig).appendTo(document.body))},t.prototype.createOrUpdateToast=function(t,e,o,n,a){var i,r,c=null;if(c=(i=this.getContentAndOptions(n,t[n]||(this._defaultConfig[n]?this._defaultConfig[n].content:""))).content,r=i.options,c=u(c,e),o){o.updateMessage(c);var d=Object.assign(Object.assign({type:n,duration:a+s[n]},r),r.duration&&{duration:a+r.duration});o.updateToast(d)}else this.createToast(c,n,r);return o},t.prototype.createToast=function(t,e,o,n){var a,i,r,d,p,l;this._isInitialized||(this._isInitialized=!0,this.init());var h=Date.now(),f=null!==(a=null==o?void 0:o.id)&&void 0!==a?a:h.toString();if(!this.isDuplicate(f)&&(!(null===(i=o.persist)||void 0===i?void 0:i.enabled)||(null===(r=o.persist)||void 0===r?void 0:r.enabled)&&this.handleStorageValue(f,o))){var u=Object.assign({ariaLive:null!==(d=null==o?void 0:o.ariaLive)&&void 0!==d?d:"polite",createdAt:h,duration:null!==(p=null==o?void 0:o.duration)&&void 0!==p?p:s[e],id:f,message:t,role:null!==(l=null==o?void 0:o.role)&&void 0!==l?l:"status",type:e,visible:!0,observableMessages:null!=n?n:void 0},o);return new c(u).appendTo(this._componentRef.ref.instance)}},t.prototype.isDuplicate=function(t){return this._componentRef.ref.instance.hasToast(t)},t.prototype.handleStorageValue=function(t,e){var o=1,n=Object.assign(Object.assign({},this._defaultPersistConfig),e.persist),a="local"===n.storage?localStorage:sessionStorage,i=n.key.replace(/\${id}/g,t),r=a.getItem(i);return o=r?(r=parseInt(r,10))>0?r-1:r:n.count,a.setItem(i,o.toString()),o},t.prototype.getContentAndOptions=function(t,e){var o,a,i=Object.assign(Object.assign({},this._defaultConfig),this._defaultConfig[t]);if("string"==typeof e||n.isTemplateRef(e)||n.isComponent(e))a=e;else{var r;a=(o=e).content,r=function(t,e){var o={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.indexOf(n)<0&&(o[n]=t[n]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(n=Object.getOwnPropertySymbols(t);a<n.length;a++)e.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(t,n[a])&&(o[n[a]]=t[n[a]])}return o}(o,["content"]),i=Object.assign(Object.assign({},i),r)}return{content:a,options:i}},t.prototype.createLoadingToast=function(t){var e,o,n;return o=(e=this.getContentAndOptions("loading",t)).content,n=e.options,this.loading(o,n)},t}();m.ɵprov=o.ɵɵdefineInjectable({factory:function(){return new m(o.ɵɵinject(n.ViewService),o.ɵɵinject(o.PLATFORM_ID),o.ɵɵinject(l,8))},token:m,providedIn:"root"}),m.decorators=[{type:o.Injectable,args:[{providedIn:"root"}]}],m.ctorParameters=function(){return[{type:n.ViewService},{type:String,decorators:[{type:o.Inject,args:[o.PLATFORM_ID]}]},{type:l,decorators:[{type:o.Optional}]}]};var y=function(){};y.decorators=[{type:o.Component,args:[{selector:"hot-toast-animated-icon",template:'<div class="hot-toast-animated-icon" [style.color]="iconTheme?.primary">\n <ng-content></ng-content>\n</div>\n',changeDetection:o.ChangeDetectionStrategy.OnPush,styles:["@keyframes hotToastEnter{0%{transform:scale(0)}to{transform:scale(1)}}.hot-toast-animated-icon{animation:hotToastEnter .3s ease-in-out forwards;position:relative;transform:scale(0)}@media (prefers-reduced-motion:reduce){.hot-toast-animated-icon{animation-duration:none;opacity:1;transform:scale(1)}}"]}]}],y.propDecorators={iconTheme:[{type:o.Input}]};var b=function(){};b.decorators=[{type:o.Component,args:[{selector:"hot-toast-checkmark",template:'<div\n class="hot-toast-checkmark-icon"\n [style.--check-primary]="theme?.primary || \'#61d345\'"\n [style.--check-secondary]="theme?.secondary || \'#fff\'"\n></div>\n',changeDetection:o.ChangeDetectionStrategy.OnPush,styles:['@keyframes hotToastCircleAnimation{0%{opacity:0;transform:scale(0) rotate(45deg)}to{opacity:1;transform:scale(1) rotate(45deg)}}@keyframes hotToastCheckmarkAnimation{0%{height:0;opacity:0;width:0}40%{height:0;opacity:1;width:6px}to{height:10px;opacity:1}}.hot-toast-checkmark-icon{animation:hotToastCircleAnimation .3s cubic-bezier(.175,.885,.32,1.275) forwards;animation-delay:.1s;background:var(--check-primary,#61d345);border-radius:10px;height:20px;opacity:0;position:relative;transform:rotate(45deg);width:20px}@media (prefers-reduced-motion:reduce){.hot-toast-checkmark-icon{animation-duration:0ms}}.hot-toast-checkmark-icon:after{animation:hotToastCheckmarkAnimation .2s ease-out forwards;animation-delay:.2s;border-bottom:2px solid;border-bottom-color:var(--check-secondary,#fff);border-left-color:var(--check-secondary,#fff);border-right:2px solid;border-right-color:var(--check-secondary,#fff);border-top-color:var(--check-secondary,#fff);bottom:6px;box-sizing:border-box;content:"";height:10px;left:6px;opacity:0;position:absolute;width:6px}@media (prefers-reduced-motion:reduce){.hot-toast-checkmark-icon:after{animation-duration:0ms}}']}]}],b.propDecorators={theme:[{type:o.Input}]};var v=function(){};v.decorators=[{type:o.Component,args:[{selector:"hot-toast-error",template:'<div\n class="hot-toast-error-icon"\n [style.--error-primary]="theme?.primary || \'#ff4b4b\'"\n [style.--error-secondary]="theme?.secondary || \'#fff\'"\n></div>\n',changeDetection:o.ChangeDetectionStrategy.OnPush,styles:['@keyframes hotToastErrorCircleAnimation{0%{opacity:0;transform:scale(0) rotate(45deg)}to{opacity:1;transform:scale(1) rotate(45deg)}}@keyframes hotToastFirstLineAnimation{0%{opacity:0;transform:scale(0)}to{opacity:1;transform:scale(1)}}@keyframes hotToastSecondLineAnimation{0%{opacity:0;transform:scale(0) rotate(90deg)}to{opacity:1;transform:scale(1) rotate(90deg)}}.hot-toast-error-icon{animation:hotToastErrorCircleAnimation .3s cubic-bezier(.175,.885,.32,1.275) forwards;animation-delay:.1s;background:var(--error-primary,#ff4b4b);border-radius:10px;height:20px;opacity:0;position:relative;transform:rotate(45deg);width:20px}@media (prefers-reduced-motion:reduce){.hot-toast-error-icon{animation-duration:0ms}}.hot-toast-error-icon:after,.hot-toast-error-icon:before{animation:hotToastFirstLineAnimation .15s ease-out forwards;animation-delay:.15s;background:var(--error-secondary,#fff);border-radius:3px;bottom:9px;content:"";height:2px;left:4px;opacity:0;position:absolute;width:12px}@media (prefers-reduced-motion:reduce){.hot-toast-error-icon:after,.hot-toast-error-icon:before{animation-duration:0ms}}.hot-toast-error-icon:before{animation:hotToastSecondLineAnimation .15s ease-out forwards;animation-delay:.18s;transform:rotate(90deg)}@media (prefers-reduced-motion:reduce){.hot-toast-error-icon:before{animation-duration:0ms}}']}]}],v.propDecorators={theme:[{type:o.Input}]};var C=function(){};C.decorators=[{type:o.Component,args:[{selector:"hot-toast-loader",template:"<div\n class=\"hot-toast-loader-icon\"\n [ngStyle]=\"{ 'border-color': theme?.primary || '#e0e0e0', 'border-right-color': theme?.secondary || '#616161' }\"\n></div>\n",changeDetection:o.ChangeDetectionStrategy.OnPush,styles:["@keyframes hotToastRotate{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}.hot-toast-loader-icon{animation:hotToastRotate 1s linear infinite;border:2px solid #e0e0e0;border-radius:100%;border-right-color:#616161;box-sizing:border-box;height:18px;padding-top:2px;width:18px}@media (prefers-reduced-motion:reduce){.hot-toast-loader-icon{animation-duration:5s}}"]}]}],C.propDecorators={theme:[{type:o.Input}]};var x=function(){};x.decorators=[{type:o.Component,args:[{selector:"hot-toast-indicator",template:'<ng-container *ngIf="type !== \'blank\'">\n <div class="hot-toast-indicator-wrapper">\n <hot-toast-loader [theme]="theme"></hot-toast-loader>\n <ng-container *ngIf="type !== \'loading\'">\n <div class="hot-toast-status-wrapper">\n <div [ngSwitch]="type">\n <div *ngSwitchCase="\'error\'">\n <hot-toast-error [theme]="theme"></hot-toast-error>\n </div>\n <div *ngSwitchCase="\'success\'">\n <hot-toast-checkmark [theme]="theme"></hot-toast-checkmark>\n </div>\n <div *ngSwitchCase="\'warning\'">\n <hot-toast-warning [theme]="theme"></hot-toast-warning>\n </div>\n </div>\n </div>\n </ng-container>\n </div>\n</ng-container>\n',changeDetection:o.ChangeDetectionStrategy.OnPush,styles:[".hot-toast-indicator-wrapper{align-items:center;display:flex;justify-content:center;min-height:20px;min-width:20px;position:relative}.hot-toast-status-wrapper{position:absolute}"]}]}],x.propDecorators={theme:[{type:o.Input}],type:[{type:o.Input}]};var w=function(){};w.decorators=[{type:o.Component,args:[{selector:"hot-toast-warning",template:'<div\n class="hot-toast-warning-icon"\n [style.--warn-primary]="theme?.primary || \'#FFAB00\'"\n [style.--warn-secondary]="theme?.secondary || \'#fff\'"\n></div>\n',changeDetection:o.ChangeDetectionStrategy.OnPush,styles:['@keyframes animate-warn-background{0%{opacity:0;transform:scale(0)}to{opacity:1;transform:scale(1)}}@keyframes animate-warn-line{0%{height:0;opacity:0}40%{height:4.8px;opacity:1}to{height:8px;opacity:1}}.hot-toast-warning-icon{animation:animate-warn-background .3s cubic-bezier(.175,.885,.32,1.275) forwards;animation-delay:.1s;background-color:var(--warn-primary,#ffab00);border-radius:50%;display:block;height:20px;opacity:0;position:relative;transform:scale(0);width:20px}.hot-toast-warning-icon:after,.hot-toast-warning-icon:before{background-color:var(--warn-secondary,#fff);border-radius:3px;box-sizing:border-box;content:"";display:block;left:8.5px;position:absolute;width:2.5px}.hot-toast-warning-icon:after{animation:animate-warn-line .2s ease-out forwards;animation-delay:.2s;height:0;opacity:0;top:4px}.hot-toast-warning-icon:before{bottom:4px;height:2px}']}]}],w.propDecorators={theme:[{type:o.Input}]};var O=function(){function t(){}return t.forRoot=function(e){return{ngModule:t,providers:[{provide:l,useValue:e}]}},t}();O.decorators=[{type:o.NgModule,args:[{declarations:[p,d,y,x,b,v,C,w],imports:[e.CommonModule,n.DynamicViewModule],entryComponents:[p]}]}],t.HotToastModule=O,t.HotToastRef=c,t.HotToastService=m,t.ToastConfig=l,t.ToastPersistConfig=g,t.resolveValueOrFunction=u,t.ɵ0=f,t.ɵa=p,t.ɵb=d,t.ɵc=y,t.ɵd=x,t.ɵe=b,t.ɵf=v,t.ɵg=C,t.ɵh=w,Object.defineProperty(t,"__esModule",{value:!0})}));
//# sourceMappingURL=ngneat-hot-toast.umd.min.js.map

@@ -54,6 +54,11 @@ import { ChangeDetectionStrategy, ChangeDetectorRef, Input, ViewChildren } from '@angular/core';

closeToast(id) {
const comp = this.hotToastComponentList.find((item) => item.toast.id === id);
if (comp) {
comp.close();
if (id) {
const comp = this.hotToastComponentList.find((item) => item.toast.id === id);
if (comp) {
comp.close();
}
}
else {
this.hotToastComponentList.forEach((comp) => comp.close());
}
}

@@ -96,2 +101,2 @@ beforeClosed(toast) {

};
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaG90LXRvYXN0LWNvbnRhaW5lci5jb21wb25lbnQuanMiLCJzb3VyY2VSb290IjoiLi4vLi4vLi4vLi4vcHJvamVjdHMvbmduZWF0L2hvdC10b2FzdC9zcmMvIiwic291cmNlcyI6WyJsaWIvY29tcG9uZW50cy9ob3QtdG9hc3QtY29udGFpbmVyL2hvdC10b2FzdC1jb250YWluZXIuY29tcG9uZW50LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSx1QkFBdUIsRUFBRSxpQkFBaUIsRUFBRSxLQUFLLEVBQWEsWUFBWSxFQUFFLE1BQU0sZUFBZSxDQUFDO0FBQzNHLE9BQU8sRUFBRSxTQUFTLEVBQUUsTUFBTSxlQUFlLENBQUM7QUFDMUMsT0FBTyxFQUFFLE9BQU8sRUFBRSxNQUFNLE1BQU0sQ0FBQztBQVcvQixPQUFPLEVBQUUsTUFBTSxFQUFFLE1BQU0sZ0JBQWdCLENBQUM7QUFFeEMsT0FBTyxFQUFFLGlCQUFpQixFQUFFLE1BQU0sa0NBQWtDLENBQUM7QUFDckUsT0FBTyxFQUFFLGdCQUFnQixFQUFFLE1BQU0saUJBQWlCLENBQUM7QUFPbkQsTUFBTSxPQUFPLDBCQUEwQjtJQWFyQyxZQUFvQixHQUFzQjtRQUF0QixRQUFHLEdBQUgsR0FBRyxDQUFtQjtRQVIxQyxXQUFNLEdBQXFCLEVBQUUsQ0FBQztRQUM5QixjQUFTLEdBQWlDLEVBQUUsQ0FBQztRQUU3QyxxRUFBcUU7UUFDN0QsY0FBUyxHQUFHLElBQUksT0FBTyxFQUFpQixDQUFDO1FBRXpDLGNBQVMsR0FBRyxJQUFJLENBQUMsU0FBUyxDQUFDLFlBQVksRUFBRSxD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est } from "tslib";

this._defaultConfig = Object.assign(Object.assign({}, this._defaultConfig), config);
this._componentRef.setInput('defaultConfig', this._defaultConfig);
if (this._componentRef) {
this._componentRef.setInput('defaultConfig', this._defaultConfig);
}
}

@@ -128,3 +130,4 @@ /**

*
* @param id - ID of the toast
* @param [id] - ID of the toast
* @since 3.0.1 - If ID is not provided, all toasts will be closed
*/

@@ -246,2 +249,2 @@ close(id) {

];
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaG90LXRvYXN0LnNlcnZpY2UuanMiLCJzb3VyY2VSb290IjoiLi4vLi4vLi4vLi4vcHJvamVjdHMvbmduZWF0L2hvdC10b2FzdC9zcmMvIiwic291cmNlcyI6WyJsaWIvaG90LXRvYXN0LnNlcnZpY2UudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtBQUFBLE9BQU8sRUFBRSxnQkFBZ0IsRUFBRSxNQUFNLGlCQUFpQixDQUFDO0FBQ25ELE9BQU8sRUFBRSxNQUFNLEVBQUUsVUFBVSxFQUFFLFFBQVEsRUFBRSxXQUFXLEVBQUUsTUFBTSxlQUFlLENBQUM7QUFDMUUsT0FBTyxFQUFvQixXQUFXLEVBQUUsYUFBYSxFQUFFLFdBQVcsRUFBRSxNQUFNLGtCQUFrQixDQUFDO0FBRTdGLE9BQU8sRUFBRSxHQUFHLEVBQUUsTUFBTSxnQkFBZ0IsQ0FBQztBQUVyQyxPQUFPLEVBQUUsMEJBQTBCLEVBQUUsTUFBTSxnRUFBZ0UsQ0FBQztBQUM1RyxPQUFPLEVBQUUsMEJBQTBCLEVBQUUsTUFBTSxhQUFhLENBQUM7QUFDekQsT0FBTyxFQUFFLFdBQVcsRUFBRSxNQUFNLGlCQUFpQixDQUFDO0FBQzlDLE9BQU8sRUFPTCxzQkFBc0IsRUFFdEIsV0FBVyxFQUVYLGtCQUFrQixHQUluQixNQUFNLG1CQUFtQixDQUFDOzs7O0FBRzNCLE1BQU0sT0FBTyxl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bnN0IGVycm9yQ29udGVudCA9IG1lc3NhZ2VzLmVycm9yIHx8IHRoaXMuX2RlZmF1bHRDb25maWcuZXJyb3I/LmNvbnRlbnQ7XG5cbiAgICAgIGlmIChsb2FkaW5nQ29udGVudCkge1xuICAgICAgICB0b2FzdFJlZiA9IHRoaXMuY3JlYXRlTG9hZGluZ1RvYXN0PFQsIERhdGFUeXBlPihsb2FkaW5nQ29udGVudCk7XG4gICAgICAgIHN0YXJ0ID0gRGF0ZS5ub3coKTtcbiAgICAgIH1cblxuICAgICAgcmV0dXJuIHNvdXJjZS5waXBlKFxuICAgICAgICB0YXAoe1xuICAgICAgICAgIG5leHQ6ICh2YWwpID0+IHtcbiAgICAgICAgICAgIHRvYXN0UmVmID0gdGhpcy5jcmVhdGVPclVwZGF0ZVRvYXN0PFQsIERhdGFUeXBlIHwgdW5rbm93bj4oXG4gICAgICAgICAgICAgIG1lc3NhZ2VzLFxuICAgICAgICAgICAgICB2YWwsXG4gICAgICAgICAgICAgIHRvYXN0UmVmLFxuICAgICAgICAgICAgICAnc3VjY2VzcycsXG4gICAgICAgICAgICAgIHN0YXJ0ID09PSAwID8gc3RhcnQgOiBEYXRlLm5vdygpIC0gc3RhcnRcbiAgICAgICAgICAgICk7XG4gICAgICAgICAgfSxcbiAgICAgICAgICAuLi4oZXJyb3JDb250ZW50ICYmIHtcbiAgICAgICAgICAgIGVycm9yOiAoZSkgPT4ge1xuICAgICAgICAgICAgICB0b2FzdFJlZiA9IHRoaXMuY3JlYXRlT3JVcGRhdGVUb2FzdDxULCBEYXRhVHlwZSB8IHVua25vd24+KFxuICAgICAgICAgICAgICAgIG1lc3NhZ2VzLFxuICAgICAgICAgICAgICAgIGUsXG4gICAgICAgICAgICAgICAgdG9hc3RSZWYsXG4gICAgICAgICAgICAgICAgJ2Vycm9yJyxcbiAgICAgICAgICAgICAgICBzdGFydCA9PT0gMCA/IHN0YXJ0IDogRGF0ZS5ub3coKSAtIHN0YXJ0XG4gICAgICAgICAgICA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lPik6IChzb3VyY2U6IE9ic2VydmFibGU8VD4pID0+IE9ic2VydmFibGU8VD4ge1xuICAgIHJldHVybiAoc291cmNlKSA9PiB7XG4gICAgICBsZXQgdG9hc3RSZWY6IENyZWF0ZUhvdFRvYXN0UmVmPERhdGFUeXBlIHwgdW5rbm93bj47XG4gICAgICBsZXQgc3RhcnQgPSAwO1xuXG4gICAgICBjb25zdCBsb2FkaW5nQ29udGVudCA9IG1lc3NhZ2VzLmxvYWRpbmcgfHwgdGhpcy5fZGVmYXVsdENvbmZpZy5sb2FkaW5nPy5jb250ZW50O1xuICAgICAgY29uc3QgZXJyb3JDb250ZW50ID0gbWVzc2FnZXMuZXJyb3IgfHwgdGhpcy5fZGVmYXVsdENvbmZpZy5lcnJvcj8uY29udGVudDtcblxuICAgICAgaWYgKGxvYWRpbmdDb250ZW50KSB7XG4gICAgICAgIHRvYXN0UmVmID0gdGhpcy5jcmVhdGVMb2FkaW5nVG9hc3Q8VCwgRGF0YVR5cGU+KGxvYWRpbmdDb250ZW50KTtcbiAgICAgICAgc3RhcnQgPSBEYXRlLm5vdygpO1xuICAgICAgfVxuXG4gICAgICByZXR1cm4gc291cmNlLnBpcGUoXG4gICAgICAgIHRhcCh7XG4gICAgICAgICAgbmV4dDogKHZhbCkgPT4ge1xuICAgICAgICAgICAgdG9hc3RSZWYgPSB0aGlzLmNyZWF0ZU9yVXBkYXRlVG9hc3Q8VCwgRGF0YVR5cGUgfCB1bmtub3duPihcbiAgICAgICAgICAgICAgbWVzc2FnZXMsXG4gICAgICAgICAgICAgIHZhbCxcbiAgICAgICAgICAgICAgdG9hc3RSZWYsXG4gICAgICAgICAgICAgICdzdWNjZXNzJyxcbiAgICAgICAgICAgICAgc3RhcnQgPT09IDAgPyBzdGFydCA6IERhdGUubm93KCkgLSBzdGFydFxuICAgICAgICAgICAgKTtcbiAgICAgICAgICB9LFxuICAgICAgICAgIC4uLihlcnJvckNvbnRlbnQgJiYge1xuICAgICAgICAgICAgZXJyb3I6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Vsc2Uge1xuICAgICAgbGV0IHJlc3RPcHRpb25zOiBUb2FzdE9wdGlvbnM8RGF0YVR5cGU+O1xuICAgICAgKHsgY29udGVudCwgLi4ucmVzdE9wdGlvbnMgfSA9IG1lc3NhZ2UgYXMgT2JzZXJ2YWJsZUxvYWRpbmc8RGF0YVR5cGU+IHwgT2JzZXJ2YWJsZVN1Y2Nlc3NPckVycm9yPFQsIERhdGFUeXBlPik7XG4gICAgICBvcHRpb25zID0geyAuLi5vcHRpb25zLCAuLi5yZXN0T3B0aW9ucyB9O1xuICAgIH1cblxuICAgIHJldHVybiB7IGNvbnRlbnQsIG9wdGlvbnMgfTtcbiAgfVxuXG4gIHByaXZhdGUgY3JlYXRlTG9hZGluZ1RvYXN0PFQsIERhdGFUeXBlPihtZXNzYWdlczogQ29udGVudCB8IE9ic2VydmFibGVMb2FkaW5nPERhdGFUeXBlPikge1xuICAgIGxldCBjb250ZW50OiBDb250ZW50IHwgVmFsdWVPckZ1bmN0aW9uPENvbnRlbnQsIFQ+ID0gbnVsbDtcbiAgICBsZXQgb3B0aW9uczogVG9hc3RPcHRpb25zPERhdGFUeXBlIHwgdW5rbm93bj4gPSB7fTtcblxuICAgICh7IGNvbnRlbnQsIG9wdGlvbnMgfSA9IHRoaXMuZ2V0Q29udGVudEFuZE9wdGlvbnM8YW55LCBEYXRhVHlwZT4oJ2xvYWRpbmcnLCBtZXNzYWdlcykpO1xuXG4gICAgcmV0dXJuIHRoaXMubG9hZGluZyhjb250ZW50IGFzIENvbnRlbnQsIG9wdGlvbnMpO1xuICB9XG59XG4iXX0=

@@ -215,6 +215,11 @@ import { __rest } from 'tslib';

closeToast(id) {
const comp = this.hotToastComponentList.find((item) => item.toast.id === id);
if (comp) {
comp.close();
if (id) {
const comp = this.hotToastComponentList.find((item) => item.toast.id === id);
if (comp) {
comp.close();
}
}
else {
this.hotToastComponentList.forEach((comp) => comp.close());
}
}

@@ -327,3 +332,5 @@ beforeClosed(toast) {

this._defaultConfig = Object.assign(Object.assign({}, this._defaultConfig), config);
this._componentRef.setInput('defaultConfig', this._defaultConfig);
if (this._componentRef) {
this._componentRef.setInput('defaultConfig', this._defaultConfig);
}
}

@@ -426,3 +433,4 @@ /**

*
* @param id - ID of the toast
* @param [id] - ID of the toast
* @since 3.0.1 - If ID is not provided, all toasts will be closed
*/

@@ -429,0 +437,0 @@ close(id) {

@@ -19,3 +19,3 @@ import { ChangeDetectorRef, QueryList } from '@angular/core';

addToast<DataType>(ref: HotToastRef): AddToastRef<DataType>;
closeToast(id: string): void;
closeToast(id?: string): void;
beforeClosed(toast: Toast<unknown>): void;

@@ -22,0 +22,0 @@ afterClosed(closeToast: HotToastClose): void;

@@ -171,3 +171,3 @@ import { Injector } from '@angular/core';

observe<T, DataType>(messages: ObservableMessages<T, DataType>): (source: Observable<T>) => Observable<T>;
close(id: string): void;
close(id?: string): void;
}

@@ -174,0 +174,0 @@ export declare type UpdateToastOptions<DataType> = Partial<Pick<Toast<DataType>, 'icon' | 'duration' | 'dismissible' | 'className' | 'style' | 'iconTheme' | 'type' | 'theme' | 'closeStyle'>>;

@@ -72,5 +72,6 @@ import { Content, ViewService } from '@ngneat/overview';

*
* @param id - ID of the toast
* @param [id] - ID of the toast
* @since 3.0.1 - If ID is not provided, all toasts will be closed
*/
close(id: string): void;
close(id?: string): void;
/**

@@ -77,0 +78,0 @@ * Used for internal purpose only.

@@ -1,1 +0,1 @@

{"__symbolic":"module","version":4,"metadata":{"HotToastService":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable","line":26,"character":1},"arguments":[{"providedIn":"root"}]}],"members":{"__ctor__":[{"__symbolic":"constructor","parameterDecorators":[null,[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject","line":46,"character":5},"arguments":[{"__symbolic":"reference","module":"@angular/core","name":"PLATFORM_ID","line":46,"character":12}]}],[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Optional","line":47,"character":5}}]],"parameters":[{"__symbolic":"reference","module":"@ngneat/overview","name":"ViewService","line":45,"character":26},{"__symbolic":"reference","name":"string"},{"__symbolic":"reference","name":"ToastConfig"}]}],"show":[{"__symbolic":"method"}],"error":[{"__symbolic":"method"}],"success":[{"__symbolic":"method"}],"loading":[{"__symbolic":"method"}],"warning":[{"__symbolic":"method"}],"observe":[{"__symbolic":"method"}],"close":[{"__symbolic":"method"}],"init":[{"__symbolic":"method"}],"createOrUpdateToast":[{"__symbolic":"method"}],"createToast":[{"__symbolic":"method"}],"isDuplicate":[{"__symbolic":"method"}],"handleStorageValue":[{"__symbolic":"method"}],"getContentAndOptions":[{"__symbolic":"method"}],"createLoadingToast":[{"__symbolic":"method"}]},"statics":{"ɵprov":{}}},"HotToastModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule","line":14,"character":1},"arguments":[{"declarations":[{"__symbolic":"reference","name":"ɵa"},{"__symbolic":"reference","name":"ɵb"},{"__symbolic":"reference","name":"ɵc"},{"__symbolic":"reference","name":"ɵd"},{"__symbolic":"reference","name":"ɵe"},{"__symbolic":"reference","name":"ɵf"},{"__symbolic":"reference","name":"ɵg"},{"__symbolic":"reference","name":"ɵh"}],"imports":[{"__symbolic":"reference","module":"@angular/common","name":"CommonModule","line":25,"character":12},{"__symbolic":"reference","module":"@ngneat/overview","name":"DynamicViewModule","line":25,"character":26}],"entryComponents":[{"__symbolic":"reference","name":"ɵa"}]}]}],"members":{},"statics":{"forRoot":{"__symbolic":"function","parameters":["config"],"value":{"ngModule":{"__symbolic":"reference","name":"HotToastModule"},"providers":[{"provide":{"__symbolic":"reference","name":"ToastConfig"},"useValue":{"__symbolic":"reference","name":"config"}}]}}}},"ToastConfig":{"__symbolic":"class","members":{}},"ToastType":{"__symbolic":"interface"},"ToastPosition":{"__symbolic":"interface"},"IconTheme":{"__symbolic":"interface"},"ToastTheme":{"__symbolic":"interface"},"ValueFunction":{"__symbolic":"interface"},"ValueOrFunction":{"__symbolic":"interface"},"resolveValueOrFunction":{"__symbolic":"error","message":"Lambda not supported","line":50,"character":38,"module":"./lib/hot-toast.model"},"ToastRole":{"__symbolic":"interface"},"ToastAriaLive":{"__symbolic":"interface"},"Toast":{"__symbolic":"interface"},"ToastOptions":{"__symbolic":"interface"},"DefaultToastOptions":{"__symbolic":"interface"},"ObservableLoading":{"__symbolic":"interface"},"ObservableSuccessOrError":{"__symbolic":"interface"},"ObservableMessages":{"__symbolic":"interface"},"HotToastServiceMethods":{"__symbolic":"interface"},"UpdateToastOptions":{"__symbolic":"interface"},"HotToastRefProps":{"__symbolic":"interface"},"HotToastClose":{"__symbolic":"interface"},"ToastPersistConfig":{"__symbolic":"class","members":{}},"AddToastRef":{"__symbolic":"interface"},"CreateHotToastRef":{"__symbolic":"interface"},"DefaultDataType":{"__symbolic":"interface"},"HotToastRef":{"__symbolic":"class","arity":1,"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","name":"Toast"}]}],"getToast":[{"__symbolic":"method"}],"appendTo":[{"__symbolic":"method"}],"close":[{"__symbolic":"method"}]}},"ɵa":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":18,"character":1},"arguments":[{"selector":"hot-toast-container","changeDetection":{"__symbolic":"select","expression":{"__symbolic":"reference","module":"@angular/core","name":"ChangeDetectionStrategy","line":21,"character":19},"member":"OnPush"},"template":"<div style=\"position: fixed; z-index: 9999; top: 0; right: 0; bottom: 0; left: 0; pointer-events: none\">\n <div style=\"position: relative; height: 100%\">\n <hot-toast\n *ngFor=\"let toast of toasts; trackBy: trackById; let i = index\"\n [toast]=\"toast\"\n [offset]=\"calculateOffset(toast.id, toast.position)\"\n [toastRef]=\"toastRefs[i]\"\n (height)=\"updateHeight($event, toast)\"\n (beforeClosed)=\"beforeClosed(toast)\"\n (afterClosed)=\"afterClosed($event)\"\n ></hot-toast>\n </div>\n</div>\n"}]}],"members":{"defaultConfig":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":24,"character":3}}]}],"hotToastComponentList":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"ViewChildren","line":26,"character":3},"arguments":[{"__symbolic":"reference","name":"ɵb"}]}]}],"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"@angular/core","name":"ChangeDetectorRef","line":36,"character":27}]}],"trackById":[{"__symbolic":"method"}],"calculateOffset":[{"__symbolic":"method"}],"updateHeight":[{"__symbolic":"method"}],"addToast":[{"__symbolic":"method"}],"closeToast":[{"__symbolic":"method"}],"beforeClosed":[{"__symbolic":"method"}],"afterClosed":[{"__symbolic":"method"}],"hasToast":[{"__symbolic":"method"}],"getAfterClosed":[{"__symbolic":"method"}],"updateToasts":[{"__symbolic":"method"}]}},"ɵb":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":19,"character":1},"arguments":[{"selector":"hot-toast","changeDetection":{"__symbolic":"select","expression":{"__symbolic":"reference","module":"@angular/core","name":"ChangeDetectionStrategy","line":23,"character":19},"member":"OnPush"},"template":"<div\n class=\"hot-toast-bar-base-container\"\n [ngStyle]=\"containerPositionStyle\"\n [ngClass]=\"'hot-toast-theme-' + toast.theme\"\n>\n <div\n class=\"hot-toast-bar-base\"\n #hotToastBarBase\n [ngStyle]=\"toastBarBaseStyles\"\n [ngClass]=\"toast.className\"\n [style.--hot-toast-animation-state]=\"isManualClose ? 'running' : 'paused'\"\n [attr.aria-live]=\"toast.ariaLive\"\n [attr.role]=\"toast.role\"\n >\n <div class=\"hot-toast-icon\" aria-hidden=\"true\">\n <ng-container *ngIf=\"toast.icon !== undefined; else indicator\">\n <ng-container *ngIf=\"isIconString; else iconTemplateOrComponent\">\n <hot-toast-animated-icon [iconTheme]=\"toast.iconTheme\">{{ toast.icon }}</hot-toast-animated-icon>\n </ng-container>\n <ng-template #iconTemplateOrComponent>\n <div>\n <ng-container [dynamicView]=\"toast.icon\"></ng-container>\n </div>\n </ng-template>\n </ng-container>\n\n <ng-template #indicator>\n <hot-toast-indicator [theme]=\"toast.iconTheme\" [type]=\"toast.type\"></hot-toast-indicator>\n </ng-template>\n </div>\n\n <div class=\"hot-toast-message\">\n <div>\n <ng-container *dynamicView=\"toast.message; context: context; injector: toastComponentInjector\"></ng-container>\n </div>\n </div>\n\n <button\n *ngIf=\"toast.dismissible\"\n (click)=\"close()\"\n type=\"button\"\n class=\"hot-toast-close-btn\"\n aria-label=\"Close\"\n [ngStyle]=\"toast.closeStyle\"\n ></button>\n </div>\n</div>\n","styles":[".hot-toast-bar-base{align-items:center;background:var(--hot-toast-bg,#fff);border-radius:var(--hot-toast-border-radius,4px);box-shadow:var(--hot-toast-shadow,0 3px 10px rgba(0,0,0,.1),0 3px 3px rgba(0,0,0,.05));color:var(--hot-toast-color,#363636);display:flex;line-height:var(--hot-toast-line,1.3);margin:16px;max-width:var(--hot-toast-max-width,350px);padding:8px 10px;pointer-events:auto;width:-webkit-fit-content;width:-moz-fit-content;width:fit-content;will-change:transform}.hot-toast-bar-base:focus,.hot-toast-bar-base:hover{animation-play-state:var(--hot-toast-animation-state,paused)!important}@media (prefers-reduced-motion:reduce){.hot-toast-bar-base{animation-duration:10ms!important}}.hot-toast-message{color:inherit;display:flex;flex:1;justify-content:center;margin:4px 10px}.hot-toast-bar-base-container{display:flex;pointer-events:none;position:absolute;transition:transform .23s cubic-bezier(.21,1.02,.73,1)}@media (prefers-reduced-motion:reduce){.hot-toast-bar-base-container{transition-duration:10ms!important}}.hot-toast-bar-base-container.hot-toast-theme-snackbar .hot-toast-bar-base{background:var(--hot-toast-snackbar-bg,#323232);box-shadow:var(--hot-toast-snackbar-shadow,0 3px 5px -1px rgba(0,0,0,.2),0 6px 10px 0 rgba(0,0,0,.14),0 1px 18px 0 rgba(0,0,0,.12));color:var(--hot-toast-snackbar-color,#fff)}.hot-toast-bar-base-container.hot-toast-theme-snackbar .hot-toast-close-btn{filter:invert(1) grayscale(100%) brightness(200%)}@keyframes hotToastEnterAnimationNegative{0%{opacity:.5;transform:translate3d(0,-80px,0) scale(.6)}to{opacity:1;transform:translateZ(0) scale(1)}}@keyframes hotToastEnterAnimationPositive{0%{opacity:.5;transform:translate3d(0,80px,0) scale(.6)}to{opacity:1;transform:translateZ(0) scale(1)}}@keyframes hotToastExitAnimationPositive{0%{opacity:1;transform:translateZ(-1px) scale(1)}to{opacity:0;transform:translate3d(0,130px,-1px) scale(.5)}}@keyframes hotToastExitAnimationNegative{0%{opacity:1;transform:translateZ(-1px) scale(1)}to{opacity:0;transform:translate3d(0,-130px,-1px) scale(.5)}}.hot-toast-close-btn{align-self:flex-start;background-color:initial;background-image:url(\"data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23000'%3e%3cpath d='M.293.293a1 1 0 011.414 0L8 6.586 14.293.293a1 1 0 111.414 1.414L9.414 8l6.293 6.293a1 1 0 01-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 01-1.414-1.414L6.586 8 .293 1.707a1 1 0 010-1.414z'/%3e%3c/svg%3e\");background-position:50%;background-repeat:no-repeat;background-size:.75em;border:0;border-radius:.25rem;box-sizing:initial;display:flex;height:.8em;margin-top:.25em;opacity:.5;padding:.25em;width:.8em}.hot-toast-close-btn:focus{box-shadow:0 0 0 .125rem rgba(13,110,253,.25);outline:none}.hot-toast-close-btn:focus,.hot-toast-close-btn:hover{opacity:.75}.hot-toast-icon{align-self:flex-start;padding-top:.25em}"]}]}],"members":{"toast":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":26,"character":3}}]}],"offset":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":27,"character":3}}]}],"defaultConfig":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":28,"character":3}}]}],"toastRef":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":29,"character":3}}]}],"height":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":31,"character":3}}]}],"beforeClosed":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":32,"character":3}}]}],"afterClosed":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":33,"character":3}}]}],"toastBarBase":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"ViewChild","line":35,"character":3},"arguments":["hotToastBarBase"]}]}],"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"@angular/core","name":"Injector","line":41,"character":32}]}],"ngOnInit":[{"__symbolic":"method"}],"ngAfterViewInit":[{"__symbolic":"method"}],"close":[{"__symbolic":"method"}],"ngOnDestroy":[{"__symbolic":"method"}],"isExitAnimation":[{"__symbolic":"method"}]}},"ɵc":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":3,"character":1},"arguments":[{"selector":"hot-toast-animated-icon","changeDetection":{"__symbolic":"select","expression":{"__symbolic":"reference","module":"@angular/core","name":"ChangeDetectionStrategy","line":7,"character":19},"member":"OnPush"},"template":"<div class=\"hot-toast-animated-icon\" [style.color]=\"iconTheme?.primary\">\n <ng-content></ng-content>\n</div>\n","styles":["@keyframes hotToastEnter{0%{transform:scale(0)}to{transform:scale(1)}}.hot-toast-animated-icon{animation:hotToastEnter .3s ease-in-out forwards;position:relative;transform:scale(0)}@media (prefers-reduced-motion:reduce){.hot-toast-animated-icon{animation-duration:none;opacity:1;transform:scale(1)}}"]}]}],"members":{"iconTheme":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":10,"character":3}}]}]}},"ɵd":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":3,"character":1},"arguments":[{"selector":"hot-toast-indicator","changeDetection":{"__symbolic":"select","expression":{"__symbolic":"reference","module":"@angular/core","name":"ChangeDetectionStrategy","line":7,"character":19},"member":"OnPush"},"template":"<ng-container *ngIf=\"type !== 'blank'\">\n <div class=\"hot-toast-indicator-wrapper\">\n <hot-toast-loader [theme]=\"theme\"></hot-toast-loader>\n <ng-container *ngIf=\"type !== 'loading'\">\n <div class=\"hot-toast-status-wrapper\">\n <div [ngSwitch]=\"type\">\n <div *ngSwitchCase=\"'error'\">\n <hot-toast-error [theme]=\"theme\"></hot-toast-error>\n </div>\n <div *ngSwitchCase=\"'success'\">\n <hot-toast-checkmark [theme]=\"theme\"></hot-toast-checkmark>\n </div>\n <div *ngSwitchCase=\"'warning'\">\n <hot-toast-warning [theme]=\"theme\"></hot-toast-warning>\n </div>\n </div>\n </div>\n </ng-container>\n </div>\n</ng-container>\n","styles":[".hot-toast-indicator-wrapper{align-items:center;display:flex;justify-content:center;min-height:20px;min-width:20px;position:relative}.hot-toast-status-wrapper{position:absolute}"]}]}],"members":{"theme":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":10,"character":3}}]}],"type":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":11,"character":3}}]}]}},"ɵe":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":3,"character":1},"arguments":[{"selector":"hot-toast-checkmark","changeDetection":{"__symbolic":"select","expression":{"__symbolic":"reference","module":"@angular/core","name":"ChangeDetectionStrategy","line":7,"character":19},"member":"OnPush"},"template":"<div\n class=\"hot-toast-checkmark-icon\"\n [style.--check-primary]=\"theme?.primary || '#61d345'\"\n [style.--check-secondary]=\"theme?.secondary || '#fff'\"\n></div>\n","styles":["@keyframes hotToastCircleAnimation{0%{opacity:0;transform:scale(0) rotate(45deg)}to{opacity:1;transform:scale(1) rotate(45deg)}}@keyframes hotToastCheckmarkAnimation{0%{height:0;opacity:0;width:0}40%{height:0;opacity:1;width:6px}to{height:10px;opacity:1}}.hot-toast-checkmark-icon{animation:hotToastCircleAnimation .3s cubic-bezier(.175,.885,.32,1.275) forwards;animation-delay:.1s;background:var(--check-primary,#61d345);border-radius:10px;height:20px;opacity:0;position:relative;transform:rotate(45deg);width:20px}@media (prefers-reduced-motion:reduce){.hot-toast-checkmark-icon{animation-duration:0ms}}.hot-toast-checkmark-icon:after{animation:hotToastCheckmarkAnimation .2s ease-out forwards;animation-delay:.2s;border-bottom:2px solid;border-bottom-color:var(--check-secondary,#fff);border-left-color:var(--check-secondary,#fff);border-right:2px solid;border-right-color:var(--check-secondary,#fff);border-top-color:var(--check-secondary,#fff);bottom:6px;box-sizing:border-box;content:\"\";height:10px;left:6px;opacity:0;position:absolute;width:6px}@media (prefers-reduced-motion:reduce){.hot-toast-checkmark-icon:after{animation-duration:0ms}}"]}]}],"members":{"theme":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":10,"character":3}}]}]}},"ɵf":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":3,"character":1},"arguments":[{"selector":"hot-toast-error","changeDetection":{"__symbolic":"select","expression":{"__symbolic":"reference","module":"@angular/core","name":"ChangeDetectionStrategy","line":7,"character":19},"member":"OnPush"},"template":"<div\n class=\"hot-toast-error-icon\"\n [style.--error-primary]=\"theme?.primary || '#ff4b4b'\"\n [style.--error-secondary]=\"theme?.secondary || '#fff'\"\n></div>\n","styles":["@keyframes hotToastErrorCircleAnimation{0%{opacity:0;transform:scale(0) rotate(45deg)}to{opacity:1;transform:scale(1) rotate(45deg)}}@keyframes hotToastFirstLineAnimation{0%{opacity:0;transform:scale(0)}to{opacity:1;transform:scale(1)}}@keyframes hotToastSecondLineAnimation{0%{opacity:0;transform:scale(0) rotate(90deg)}to{opacity:1;transform:scale(1) rotate(90deg)}}.hot-toast-error-icon{animation:hotToastErrorCircleAnimation .3s cubic-bezier(.175,.885,.32,1.275) forwards;animation-delay:.1s;background:var(--error-primary,#ff4b4b);border-radius:10px;height:20px;opacity:0;position:relative;transform:rotate(45deg);width:20px}@media (prefers-reduced-motion:reduce){.hot-toast-error-icon{animation-duration:0ms}}.hot-toast-error-icon:after,.hot-toast-error-icon:before{animation:hotToastFirstLineAnimation .15s ease-out forwards;animation-delay:.15s;background:var(--error-secondary,#fff);border-radius:3px;bottom:9px;content:\"\";height:2px;left:4px;opacity:0;position:absolute;width:12px}@media (prefers-reduced-motion:reduce){.hot-toast-error-icon:after,.hot-toast-error-icon:before{animation-duration:0ms}}.hot-toast-error-icon:before{animation:hotToastSecondLineAnimation .15s ease-out forwards;animation-delay:.18s;transform:rotate(90deg)}@media (prefers-reduced-motion:reduce){.hot-toast-error-icon:before{animation-duration:0ms}}"]}]}],"members":{"theme":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":10,"character":3}}]}]}},"ɵg":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":3,"character":1},"arguments":[{"selector":"hot-toast-loader","changeDetection":{"__symbolic":"select","expression":{"__symbolic":"reference","module":"@angular/core","name":"ChangeDetectionStrategy","line":7,"character":19},"member":"OnPush"},"template":"<div\n class=\"hot-toast-loader-icon\"\n [ngStyle]=\"{ 'border-color': theme?.primary || '#e0e0e0', 'border-right-color': theme?.secondary || '#616161' }\"\n></div>\n","styles":["@keyframes hotToastRotate{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}.hot-toast-loader-icon{animation:hotToastRotate 1s linear infinite;border:2px solid #e0e0e0;border-radius:100%;border-right-color:#616161;box-sizing:border-box;height:18px;padding-top:2px;width:18px}@media (prefers-reduced-motion:reduce){.hot-toast-loader-icon{animation-duration:5s}}"]}]}],"members":{"theme":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":10,"character":3}}]}]}},"ɵh":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":3,"character":1},"arguments":[{"selector":"hot-toast-warning","changeDetection":{"__symbolic":"select","expression":{"__symbolic":"reference","module":"@angular/core","name":"ChangeDetectionStrategy","line":7,"character":19},"member":"OnPush"},"template":"<div\n class=\"hot-toast-warning-icon\"\n [style.--warn-primary]=\"theme?.primary || '#FFAB00'\"\n [style.--warn-secondary]=\"theme?.secondary || '#fff'\"\n></div>\n","styles":["@keyframes animate-warn-background{0%{opacity:0;transform:scale(0)}to{opacity:1;transform:scale(1)}}@keyframes animate-warn-line{0%{height:0;opacity:0}40%{height:4.8px;opacity:1}to{height:8px;opacity:1}}.hot-toast-warning-icon{animation:animate-warn-background .3s cubic-bezier(.175,.885,.32,1.275) forwards;animation-delay:.1s;background-color:var(--warn-primary,#ffab00);border-radius:50%;display:block;height:20px;opacity:0;position:relative;transform:scale(0);width:20px}.hot-toast-warning-icon:after,.hot-toast-warning-icon:before{background-color:var(--warn-secondary,#fff);border-radius:3px;box-sizing:border-box;content:\"\";display:block;left:8.5px;position:absolute;width:2.5px}.hot-toast-warning-icon:after{animation:animate-warn-line .2s ease-out forwards;animation-delay:.2s;height:0;opacity:0;top:4px}.hot-toast-warning-icon:before{bottom:4px;height:2px}"]}]}],"members":{"theme":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":10,"character":3}}]}]}}},"origins":{"HotToastService":"./lib/hot-toast.service","HotToastModule":"./lib/hot-toast.module","ToastConfig":"./lib/hot-toast.model","ToastType":"./lib/hot-toast.model","ToastPosition":"./lib/hot-toast.model","IconTheme":"./lib/hot-toast.model","ToastTheme":"./lib/hot-toast.model","ValueFunction":"./lib/hot-toast.model","ValueOrFunction":"./lib/hot-toast.model","resolveValueOrFunction":"./lib/hot-toast.model","ToastRole":"./lib/hot-toast.model","ToastAriaLive":"./lib/hot-toast.model","Toast":"./lib/hot-toast.model","ToastOptions":"./lib/hot-toast.model","DefaultToastOptions":"./lib/hot-toast.model","ObservableLoading":"./lib/hot-toast.model","ObservableSuccessOrError":"./lib/hot-toast.model","ObservableMessages":"./lib/hot-toast.model","HotToastServiceMethods":"./lib/hot-toast.model","UpdateToastOptions":"./lib/hot-toast.model","HotToastRefProps":"./lib/hot-toast.model","HotToastClose":"./lib/hot-toast.model","ToastPersistConfig":"./lib/hot-toast.model","AddToastRef":"./lib/hot-toast.model","CreateHotToastRef":"./lib/hot-toast.model","DefaultDataType":"./lib/hot-toast.model","HotToastRef":"./lib/hot-toast-ref","ɵa":"./lib/components/hot-toast-container/hot-toast-container.component","ɵb":"./lib/components/hot-toast/hot-toast.component","ɵc":"./lib/components/animated-icon/animated-icon.component","ɵd":"./lib/components/indicator/indicator.component","ɵe":"./lib/components/indicator/icons/checkmark/checkmark.component","ɵf":"./lib/components/indicator/icons/error/error.component","ɵg":"./lib/components/indicator/icons/loader/loader.component","ɵh":"./lib/components/indicator/icons/warning/warning.component"},"importAs":"@ngneat/hot-toast"}
{"__symbolic":"module","version":4,"metadata":{"HotToastService":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable","line":26,"character":1},"arguments":[{"providedIn":"root"}]}],"members":{"__ctor__":[{"__symbolic":"constructor","parameterDecorators":[null,[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject","line":48,"character":5},"arguments":[{"__symbolic":"reference","module":"@angular/core","name":"PLATFORM_ID","line":48,"character":12}]}],[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Optional","line":49,"character":5}}]],"parameters":[{"__symbolic":"reference","module":"@ngneat/overview","name":"ViewService","line":47,"character":26},{"__symbolic":"reference","name":"string"},{"__symbolic":"reference","name":"ToastConfig"}]}],"show":[{"__symbolic":"method"}],"error":[{"__symbolic":"method"}],"success":[{"__symbolic":"method"}],"loading":[{"__symbolic":"method"}],"warning":[{"__symbolic":"method"}],"observe":[{"__symbolic":"method"}],"close":[{"__symbolic":"method"}],"init":[{"__symbolic":"method"}],"createOrUpdateToast":[{"__symbolic":"method"}],"createToast":[{"__symbolic":"method"}],"isDuplicate":[{"__symbolic":"method"}],"handleStorageValue":[{"__symbolic":"method"}],"getContentAndOptions":[{"__symbolic":"method"}],"createLoadingToast":[{"__symbolic":"method"}]},"statics":{"ɵprov":{}}},"HotToastModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule","line":14,"character":1},"arguments":[{"declarations":[{"__symbolic":"reference","name":"ɵa"},{"__symbolic":"reference","name":"ɵb"},{"__symbolic":"reference","name":"ɵc"},{"__symbolic":"reference","name":"ɵd"},{"__symbolic":"reference","name":"ɵe"},{"__symbolic":"reference","name":"ɵf"},{"__symbolic":"reference","name":"ɵg"},{"__symbolic":"reference","name":"ɵh"}],"imports":[{"__symbolic":"reference","module":"@angular/common","name":"CommonModule","line":25,"character":12},{"__symbolic":"reference","module":"@ngneat/overview","name":"DynamicViewModule","line":25,"character":26}],"entryComponents":[{"__symbolic":"reference","name":"ɵa"}]}]}],"members":{},"statics":{"forRoot":{"__symbolic":"function","parameters":["config"],"value":{"ngModule":{"__symbolic":"reference","name":"HotToastModule"},"providers":[{"provide":{"__symbolic":"reference","name":"ToastConfig"},"useValue":{"__symbolic":"reference","name":"config"}}]}}}},"ToastConfig":{"__symbolic":"class","members":{}},"ToastType":{"__symbolic":"interface"},"ToastPosition":{"__symbolic":"interface"},"IconTheme":{"__symbolic":"interface"},"ToastTheme":{"__symbolic":"interface"},"ValueFunction":{"__symbolic":"interface"},"ValueOrFunction":{"__symbolic":"interface"},"resolveValueOrFunction":{"__symbolic":"error","message":"Lambda not supported","line":50,"character":38,"module":"./lib/hot-toast.model"},"ToastRole":{"__symbolic":"interface"},"ToastAriaLive":{"__symbolic":"interface"},"Toast":{"__symbolic":"interface"},"ToastOptions":{"__symbolic":"interface"},"DefaultToastOptions":{"__symbolic":"interface"},"ObservableLoading":{"__symbolic":"interface"},"ObservableSuccessOrError":{"__symbolic":"interface"},"ObservableMessages":{"__symbolic":"interface"},"HotToastServiceMethods":{"__symbolic":"interface"},"UpdateToastOptions":{"__symbolic":"interface"},"HotToastRefProps":{"__symbolic":"interface"},"HotToastClose":{"__symbolic":"interface"},"ToastPersistConfig":{"__symbolic":"class","members":{}},"AddToastRef":{"__symbolic":"interface"},"CreateHotToastRef":{"__symbolic":"interface"},"DefaultDataType":{"__symbolic":"interface"},"HotToastRef":{"__symbolic":"class","arity":1,"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","name":"Toast"}]}],"getToast":[{"__symbolic":"method"}],"appendTo":[{"__symbolic":"method"}],"close":[{"__symbolic":"method"}]}},"ɵa":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":18,"character":1},"arguments":[{"selector":"hot-toast-container","changeDetection":{"__symbolic":"select","expression":{"__symbolic":"reference","module":"@angular/core","name":"ChangeDetectionStrategy","line":21,"character":19},"member":"OnPush"},"template":"<div style=\"position: fixed; z-index: 9999; top: 0; right: 0; bottom: 0; left: 0; pointer-events: none\">\n <div style=\"position: relative; height: 100%\">\n <hot-toast\n *ngFor=\"let toast of toasts; trackBy: trackById; let i = index\"\n [toast]=\"toast\"\n [offset]=\"calculateOffset(toast.id, toast.position)\"\n [toastRef]=\"toastRefs[i]\"\n (height)=\"updateHeight($event, toast)\"\n (beforeClosed)=\"beforeClosed(toast)\"\n (afterClosed)=\"afterClosed($event)\"\n ></hot-toast>\n </div>\n</div>\n"}]}],"members":{"defaultConfig":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":24,"character":3}}]}],"hotToastComponentList":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"ViewChildren","line":26,"character":3},"arguments":[{"__symbolic":"reference","name":"ɵb"}]}]}],"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"@angular/core","name":"ChangeDetectorRef","line":36,"character":27}]}],"trackById":[{"__symbolic":"method"}],"calculateOffset":[{"__symbolic":"method"}],"updateHeight":[{"__symbolic":"method"}],"addToast":[{"__symbolic":"method"}],"closeToast":[{"__symbolic":"method"}],"beforeClosed":[{"__symbolic":"method"}],"afterClosed":[{"__symbolic":"method"}],"hasToast":[{"__symbolic":"method"}],"getAfterClosed":[{"__symbolic":"method"}],"updateToasts":[{"__symbolic":"method"}]}},"ɵb":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":19,"character":1},"arguments":[{"selector":"hot-toast","changeDetection":{"__symbolic":"select","expression":{"__symbolic":"reference","module":"@angular/core","name":"ChangeDetectionStrategy","line":23,"character":19},"member":"OnPush"},"template":"<div\n class=\"hot-toast-bar-base-container\"\n [ngStyle]=\"containerPositionStyle\"\n [ngClass]=\"'hot-toast-theme-' + toast.theme\"\n>\n <div\n class=\"hot-toast-bar-base\"\n #hotToastBarBase\n [ngStyle]=\"toastBarBaseStyles\"\n [ngClass]=\"toast.className\"\n [style.--hot-toast-animation-state]=\"isManualClose ? 'running' : 'paused'\"\n [attr.aria-live]=\"toast.ariaLive\"\n [attr.role]=\"toast.role\"\n >\n <div class=\"hot-toast-icon\" aria-hidden=\"true\">\n <ng-container *ngIf=\"toast.icon !== undefined; else indicator\">\n <ng-container *ngIf=\"isIconString; else iconTemplateOrComponent\">\n <hot-toast-animated-icon [iconTheme]=\"toast.iconTheme\">{{ toast.icon }}</hot-toast-animated-icon>\n </ng-container>\n <ng-template #iconTemplateOrComponent>\n <div>\n <ng-container [dynamicView]=\"toast.icon\"></ng-container>\n </div>\n </ng-template>\n </ng-container>\n\n <ng-template #indicator>\n <hot-toast-indicator [theme]=\"toast.iconTheme\" [type]=\"toast.type\"></hot-toast-indicator>\n </ng-template>\n </div>\n\n <div class=\"hot-toast-message\">\n <div>\n <ng-container *dynamicView=\"toast.message; context: context; injector: toastComponentInjector\"></ng-container>\n </div>\n </div>\n\n <button\n *ngIf=\"toast.dismissible\"\n (click)=\"close()\"\n type=\"button\"\n class=\"hot-toast-close-btn\"\n aria-label=\"Close\"\n [ngStyle]=\"toast.closeStyle\"\n ></button>\n </div>\n</div>\n","styles":[".hot-toast-bar-base{align-items:center;background:var(--hot-toast-bg,#fff);border-radius:var(--hot-toast-border-radius,4px);box-shadow:var(--hot-toast-shadow,0 3px 10px rgba(0,0,0,.1),0 3px 3px rgba(0,0,0,.05));color:var(--hot-toast-color,#363636);display:flex;line-height:var(--hot-toast-line,1.3);margin:16px;max-width:var(--hot-toast-max-width,350px);padding:8px 10px;pointer-events:auto;width:-webkit-fit-content;width:-moz-fit-content;width:fit-content;will-change:transform}.hot-toast-bar-base:focus,.hot-toast-bar-base:hover{animation-play-state:var(--hot-toast-animation-state,paused)!important}@media (prefers-reduced-motion:reduce){.hot-toast-bar-base{animation-duration:10ms!important}}.hot-toast-message{color:inherit;display:flex;flex:1;justify-content:center;margin:4px 10px}.hot-toast-bar-base-container{display:flex;pointer-events:none;position:absolute;transition:transform .23s cubic-bezier(.21,1.02,.73,1)}@media (prefers-reduced-motion:reduce){.hot-toast-bar-base-container{transition-duration:10ms!important}}.hot-toast-bar-base-container.hot-toast-theme-snackbar .hot-toast-bar-base{background:var(--hot-toast-snackbar-bg,#323232);box-shadow:var(--hot-toast-snackbar-shadow,0 3px 5px -1px rgba(0,0,0,.2),0 6px 10px 0 rgba(0,0,0,.14),0 1px 18px 0 rgba(0,0,0,.12));color:var(--hot-toast-snackbar-color,#fff)}.hot-toast-bar-base-container.hot-toast-theme-snackbar .hot-toast-close-btn{filter:invert(1) grayscale(100%) brightness(200%)}@keyframes hotToastEnterAnimationNegative{0%{opacity:.5;transform:translate3d(0,-80px,0) scale(.6)}to{opacity:1;transform:translateZ(0) scale(1)}}@keyframes hotToastEnterAnimationPositive{0%{opacity:.5;transform:translate3d(0,80px,0) scale(.6)}to{opacity:1;transform:translateZ(0) scale(1)}}@keyframes hotToastExitAnimationPositive{0%{opacity:1;transform:translateZ(-1px) scale(1)}to{opacity:0;transform:translate3d(0,130px,-1px) scale(.5)}}@keyframes hotToastExitAnimationNegative{0%{opacity:1;transform:translateZ(-1px) scale(1)}to{opacity:0;transform:translate3d(0,-130px,-1px) scale(.5)}}.hot-toast-close-btn{align-self:flex-start;background-color:initial;background-image:url(\"data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23000'%3e%3cpath d='M.293.293a1 1 0 011.414 0L8 6.586 14.293.293a1 1 0 111.414 1.414L9.414 8l6.293 6.293a1 1 0 01-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 01-1.414-1.414L6.586 8 .293 1.707a1 1 0 010-1.414z'/%3e%3c/svg%3e\");background-position:50%;background-repeat:no-repeat;background-size:.75em;border:0;border-radius:.25rem;box-sizing:initial;display:flex;height:.8em;margin-top:.25em;opacity:.5;padding:.25em;width:.8em}.hot-toast-close-btn:focus{box-shadow:0 0 0 .125rem rgba(13,110,253,.25);outline:none}.hot-toast-close-btn:focus,.hot-toast-close-btn:hover{opacity:.75}.hot-toast-icon{align-self:flex-start;padding-top:.25em}"]}]}],"members":{"toast":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":26,"character":3}}]}],"offset":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":27,"character":3}}]}],"defaultConfig":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":28,"character":3}}]}],"toastRef":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":29,"character":3}}]}],"height":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":31,"character":3}}]}],"beforeClosed":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":32,"character":3}}]}],"afterClosed":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":33,"character":3}}]}],"toastBarBase":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"ViewChild","line":35,"character":3},"arguments":["hotToastBarBase"]}]}],"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"@angular/core","name":"Injector","line":41,"character":32}]}],"ngOnInit":[{"__symbolic":"method"}],"ngAfterViewInit":[{"__symbolic":"method"}],"close":[{"__symbolic":"method"}],"ngOnDestroy":[{"__symbolic":"method"}],"isExitAnimation":[{"__symbolic":"method"}]}},"ɵc":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":3,"character":1},"arguments":[{"selector":"hot-toast-animated-icon","changeDetection":{"__symbolic":"select","expression":{"__symbolic":"reference","module":"@angular/core","name":"ChangeDetectionStrategy","line":7,"character":19},"member":"OnPush"},"template":"<div class=\"hot-toast-animated-icon\" [style.color]=\"iconTheme?.primary\">\n <ng-content></ng-content>\n</div>\n","styles":["@keyframes hotToastEnter{0%{transform:scale(0)}to{transform:scale(1)}}.hot-toast-animated-icon{animation:hotToastEnter .3s ease-in-out forwards;position:relative;transform:scale(0)}@media (prefers-reduced-motion:reduce){.hot-toast-animated-icon{animation-duration:none;opacity:1;transform:scale(1)}}"]}]}],"members":{"iconTheme":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":10,"character":3}}]}]}},"ɵd":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":3,"character":1},"arguments":[{"selector":"hot-toast-indicator","changeDetection":{"__symbolic":"select","expression":{"__symbolic":"reference","module":"@angular/core","name":"ChangeDetectionStrategy","line":7,"character":19},"member":"OnPush"},"template":"<ng-container *ngIf=\"type !== 'blank'\">\n <div class=\"hot-toast-indicator-wrapper\">\n <hot-toast-loader [theme]=\"theme\"></hot-toast-loader>\n <ng-container *ngIf=\"type !== 'loading'\">\n <div class=\"hot-toast-status-wrapper\">\n <div [ngSwitch]=\"type\">\n <div *ngSwitchCase=\"'error'\">\n <hot-toast-error [theme]=\"theme\"></hot-toast-error>\n </div>\n <div *ngSwitchCase=\"'success'\">\n <hot-toast-checkmark [theme]=\"theme\"></hot-toast-checkmark>\n </div>\n <div *ngSwitchCase=\"'warning'\">\n <hot-toast-warning [theme]=\"theme\"></hot-toast-warning>\n </div>\n </div>\n </div>\n </ng-container>\n </div>\n</ng-container>\n","styles":[".hot-toast-indicator-wrapper{align-items:center;display:flex;justify-content:center;min-height:20px;min-width:20px;position:relative}.hot-toast-status-wrapper{position:absolute}"]}]}],"members":{"theme":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":10,"character":3}}]}],"type":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":11,"character":3}}]}]}},"ɵe":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":3,"character":1},"arguments":[{"selector":"hot-toast-checkmark","changeDetection":{"__symbolic":"select","expression":{"__symbolic":"reference","module":"@angular/core","name":"ChangeDetectionStrategy","line":7,"character":19},"member":"OnPush"},"template":"<div\n class=\"hot-toast-checkmark-icon\"\n [style.--check-primary]=\"theme?.primary || '#61d345'\"\n [style.--check-secondary]=\"theme?.secondary || '#fff'\"\n></div>\n","styles":["@keyframes hotToastCircleAnimation{0%{opacity:0;transform:scale(0) rotate(45deg)}to{opacity:1;transform:scale(1) rotate(45deg)}}@keyframes hotToastCheckmarkAnimation{0%{height:0;opacity:0;width:0}40%{height:0;opacity:1;width:6px}to{height:10px;opacity:1}}.hot-toast-checkmark-icon{animation:hotToastCircleAnimation .3s cubic-bezier(.175,.885,.32,1.275) forwards;animation-delay:.1s;background:var(--check-primary,#61d345);border-radius:10px;height:20px;opacity:0;position:relative;transform:rotate(45deg);width:20px}@media (prefers-reduced-motion:reduce){.hot-toast-checkmark-icon{animation-duration:0ms}}.hot-toast-checkmark-icon:after{animation:hotToastCheckmarkAnimation .2s ease-out forwards;animation-delay:.2s;border-bottom:2px solid;border-bottom-color:var(--check-secondary,#fff);border-left-color:var(--check-secondary,#fff);border-right:2px solid;border-right-color:var(--check-secondary,#fff);border-top-color:var(--check-secondary,#fff);bottom:6px;box-sizing:border-box;content:\"\";height:10px;left:6px;opacity:0;position:absolute;width:6px}@media (prefers-reduced-motion:reduce){.hot-toast-checkmark-icon:after{animation-duration:0ms}}"]}]}],"members":{"theme":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":10,"character":3}}]}]}},"ɵf":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":3,"character":1},"arguments":[{"selector":"hot-toast-error","changeDetection":{"__symbolic":"select","expression":{"__symbolic":"reference","module":"@angular/core","name":"ChangeDetectionStrategy","line":7,"character":19},"member":"OnPush"},"template":"<div\n class=\"hot-toast-error-icon\"\n [style.--error-primary]=\"theme?.primary || '#ff4b4b'\"\n [style.--error-secondary]=\"theme?.secondary || '#fff'\"\n></div>\n","styles":["@keyframes hotToastErrorCircleAnimation{0%{opacity:0;transform:scale(0) rotate(45deg)}to{opacity:1;transform:scale(1) rotate(45deg)}}@keyframes hotToastFirstLineAnimation{0%{opacity:0;transform:scale(0)}to{opacity:1;transform:scale(1)}}@keyframes hotToastSecondLineAnimation{0%{opacity:0;transform:scale(0) rotate(90deg)}to{opacity:1;transform:scale(1) rotate(90deg)}}.hot-toast-error-icon{animation:hotToastErrorCircleAnimation .3s cubic-bezier(.175,.885,.32,1.275) forwards;animation-delay:.1s;background:var(--error-primary,#ff4b4b);border-radius:10px;height:20px;opacity:0;position:relative;transform:rotate(45deg);width:20px}@media (prefers-reduced-motion:reduce){.hot-toast-error-icon{animation-duration:0ms}}.hot-toast-error-icon:after,.hot-toast-error-icon:before{animation:hotToastFirstLineAnimation .15s ease-out forwards;animation-delay:.15s;background:var(--error-secondary,#fff);border-radius:3px;bottom:9px;content:\"\";height:2px;left:4px;opacity:0;position:absolute;width:12px}@media (prefers-reduced-motion:reduce){.hot-toast-error-icon:after,.hot-toast-error-icon:before{animation-duration:0ms}}.hot-toast-error-icon:before{animation:hotToastSecondLineAnimation .15s ease-out forwards;animation-delay:.18s;transform:rotate(90deg)}@media (prefers-reduced-motion:reduce){.hot-toast-error-icon:before{animation-duration:0ms}}"]}]}],"members":{"theme":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":10,"character":3}}]}]}},"ɵg":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":3,"character":1},"arguments":[{"selector":"hot-toast-loader","changeDetection":{"__symbolic":"select","expression":{"__symbolic":"reference","module":"@angular/core","name":"ChangeDetectionStrategy","line":7,"character":19},"member":"OnPush"},"template":"<div\n class=\"hot-toast-loader-icon\"\n [ngStyle]=\"{ 'border-color': theme?.primary || '#e0e0e0', 'border-right-color': theme?.secondary || '#616161' }\"\n></div>\n","styles":["@keyframes hotToastRotate{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}.hot-toast-loader-icon{animation:hotToastRotate 1s linear infinite;border:2px solid #e0e0e0;border-radius:100%;border-right-color:#616161;box-sizing:border-box;height:18px;padding-top:2px;width:18px}@media (prefers-reduced-motion:reduce){.hot-toast-loader-icon{animation-duration:5s}}"]}]}],"members":{"theme":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":10,"character":3}}]}]}},"ɵh":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":3,"character":1},"arguments":[{"selector":"hot-toast-warning","changeDetection":{"__symbolic":"select","expression":{"__symbolic":"reference","module":"@angular/core","name":"ChangeDetectionStrategy","line":7,"character":19},"member":"OnPush"},"template":"<div\n class=\"hot-toast-warning-icon\"\n [style.--warn-primary]=\"theme?.primary || '#FFAB00'\"\n [style.--warn-secondary]=\"theme?.secondary || '#fff'\"\n></div>\n","styles":["@keyframes animate-warn-background{0%{opacity:0;transform:scale(0)}to{opacity:1;transform:scale(1)}}@keyframes animate-warn-line{0%{height:0;opacity:0}40%{height:4.8px;opacity:1}to{height:8px;opacity:1}}.hot-toast-warning-icon{animation:animate-warn-background .3s cubic-bezier(.175,.885,.32,1.275) forwards;animation-delay:.1s;background-color:var(--warn-primary,#ffab00);border-radius:50%;display:block;height:20px;opacity:0;position:relative;transform:scale(0);width:20px}.hot-toast-warning-icon:after,.hot-toast-warning-icon:before{background-color:var(--warn-secondary,#fff);border-radius:3px;box-sizing:border-box;content:\"\";display:block;left:8.5px;position:absolute;width:2.5px}.hot-toast-warning-icon:after{animation:animate-warn-line .2s ease-out forwards;animation-delay:.2s;height:0;opacity:0;top:4px}.hot-toast-warning-icon:before{bottom:4px;height:2px}"]}]}],"members":{"theme":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":10,"character":3}}]}]}}},"origins":{"HotToastService":"./lib/hot-toast.service","HotToastModule":"./lib/hot-toast.module","ToastConfig":"./lib/hot-toast.model","ToastType":"./lib/hot-toast.model","ToastPosition":"./lib/hot-toast.model","IconTheme":"./lib/hot-toast.model","ToastTheme":"./lib/hot-toast.model","ValueFunction":"./lib/hot-toast.model","ValueOrFunction":"./lib/hot-toast.model","resolveValueOrFunction":"./lib/hot-toast.model","ToastRole":"./lib/hot-toast.model","ToastAriaLive":"./lib/hot-toast.model","Toast":"./lib/hot-toast.model","ToastOptions":"./lib/hot-toast.model","DefaultToastOptions":"./lib/hot-toast.model","ObservableLoading":"./lib/hot-toast.model","ObservableSuccessOrError":"./lib/hot-toast.model","ObservableMessages":"./lib/hot-toast.model","HotToastServiceMethods":"./lib/hot-toast.model","UpdateToastOptions":"./lib/hot-toast.model","HotToastRefProps":"./lib/hot-toast.model","HotToastClose":"./lib/hot-toast.model","ToastPersistConfig":"./lib/hot-toast.model","AddToastRef":"./lib/hot-toast.model","CreateHotToastRef":"./lib/hot-toast.model","DefaultDataType":"./lib/hot-toast.model","HotToastRef":"./lib/hot-toast-ref","ɵa":"./lib/components/hot-toast-container/hot-toast-container.component","ɵb":"./lib/components/hot-toast/hot-toast.component","ɵc":"./lib/components/animated-icon/animated-icon.component","ɵd":"./lib/components/indicator/indicator.component","ɵe":"./lib/components/indicator/icons/checkmark/checkmark.component","ɵf":"./lib/components/indicator/icons/error/error.component","ɵg":"./lib/components/indicator/icons/loader/loader.component","ɵh":"./lib/components/indicator/icons/warning/warning.component"},"importAs":"@ngneat/hot-toast"}
{
"name": "@ngneat/hot-toast",
"version": "3.0.0",
"version": "3.1.0-beta.1",
"description": "Smoking hot Notifications for Angular. Lightweight, customizable and beautiful by default.",

@@ -5,0 +5,0 @@ "schematics": "./schematics/collection.json",

@@ -186,3 +186,3 @@ <p align="center">

### [2.0.2 -> 3.0.0](./CHANGELOG.md#3.0.0)
### [2.0.2 -> 3.0.0](./CHANGELOG.md#300-2021-06-07)

@@ -189,0 +189,0 @@ - Content inside `.hot-toast-message` were wrapped into `dynamic-content`, now they are wrapped into `div` > `dynamic-view`

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