@spartan-ng/brain 1.8.3-beta.1 → 1.8.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Directionality } from '@angular/cdk/bidi';
|
|
2
2
|
import { NgComponentOutlet, NgTemplateOutlet, isPlatformBrowser } from '@angular/common';
|
|
3
3
|
import * as i0 from '@angular/core';
|
|
4
|
-
import { input, ChangeDetectionStrategy, Component, booleanAttribute, InjectionToken, inject, Pipe, signal, computed,
|
|
4
|
+
import { input, ChangeDetectionStrategy, Component, booleanAttribute, InjectionToken, inject, Pipe, signal, computed, ElementRef, linkedSignal, effect, afterRenderEffect, TemplateRef, Directive, PLATFORM_ID, DOCUMENT, numberAttribute, viewChild, contentChild, DestroyRef, afterNextRender, ViewEncapsulation } from '@angular/core';
|
|
5
5
|
import clsx from 'clsx';
|
|
6
6
|
|
|
7
7
|
class BrnSonnerIcon {
|
|
@@ -399,7 +399,7 @@ class BrnSonnerToast {
|
|
|
399
399
|
_swipeOut = signal(false, ...(ngDevMode ? [{ debugName: "_swipeOut" }] : /* istanbul ignore next */ []));
|
|
400
400
|
_offsetBeforeRemove = signal(0, ...(ngDevMode ? [{ debugName: "_offsetBeforeRemove" }] : /* istanbul ignore next */ []));
|
|
401
401
|
_initialHeight = signal(0, ...(ngDevMode ? [{ debugName: "_initialHeight" }] : /* istanbul ignore next */ []));
|
|
402
|
-
_toastRef =
|
|
402
|
+
_toastRef = inject(ElementRef);
|
|
403
403
|
_classes = computed(() => ({
|
|
404
404
|
...defaultClasses,
|
|
405
405
|
...this.classes(),
|
|
@@ -476,7 +476,7 @@ class BrnSonnerToast {
|
|
|
476
476
|
ngAfterViewInit() {
|
|
477
477
|
this._remainingTime = this.toast().duration ?? this.duration() ?? this._config.toastLifetime;
|
|
478
478
|
this._mounted.set(true);
|
|
479
|
-
const height = this._toastRef
|
|
479
|
+
const height = this._toastRef.nativeElement.getBoundingClientRect().height;
|
|
480
480
|
this._initialHeight.set(height);
|
|
481
481
|
this._addHeight({ toastId: this.toast().id, height, position: this._toastPosition() });
|
|
482
482
|
}
|
|
@@ -529,7 +529,7 @@ class BrnSonnerToast {
|
|
|
529
529
|
if (this._swipeOut() || !this.toast().dismissible)
|
|
530
530
|
return;
|
|
531
531
|
this._pointerStartRef = null;
|
|
532
|
-
const swipeAmount = Number(this._toastRef
|
|
532
|
+
const swipeAmount = Number(this._toastRef.nativeElement.style.getPropertyValue('--swipe-amount').replace('px', '') || 0);
|
|
533
533
|
// Remove only if threshold is met
|
|
534
534
|
if (Math.abs(swipeAmount) >= this._config.swipeThreshold) {
|
|
535
535
|
this._offsetBeforeRemove.set(this._offset());
|
|
@@ -538,7 +538,7 @@ class BrnSonnerToast {
|
|
|
538
538
|
this._swipeOut.set(true);
|
|
539
539
|
return;
|
|
540
540
|
}
|
|
541
|
-
this._toastRef
|
|
541
|
+
this._toastRef.nativeElement.style.setProperty('--swipe-amount', '0px');
|
|
542
542
|
this._swiping.set(false);
|
|
543
543
|
}
|
|
544
544
|
onPointerMove(event) {
|
|
@@ -551,7 +551,7 @@ class BrnSonnerToast {
|
|
|
551
551
|
const swipeStartThreshold = event.pointerType === 'touch' ? 10 : 2;
|
|
552
552
|
const isAllowedToSwipe = Math.abs(clampedY) > swipeStartThreshold;
|
|
553
553
|
if (isAllowedToSwipe) {
|
|
554
|
-
this._toastRef
|
|
554
|
+
this._toastRef.nativeElement.style.setProperty('--swipe-amount', `${yPosition}px`);
|
|
555
555
|
}
|
|
556
556
|
else if (Math.abs(xPosition) > swipeStartThreshold) {
|
|
557
557
|
// User is swiping in wrong direction, so we disable swipe gesture
|
|
@@ -596,300 +596,262 @@ class BrnSonnerToast {
|
|
|
596
596
|
};
|
|
597
597
|
}
|
|
598
598
|
/** @nocollapse */ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.16", ngImport: i0, type: BrnSonnerToast, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
599
|
-
/** @nocollapse */ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.16", type: BrnSonnerToast, isStandalone: true, selector: "
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
[attr.data-dismissible]="toast().dismissible"
|
|
619
|
-
[attr.data-type]="_toastType()"
|
|
620
|
-
[attr.data-invert]="_invert()"
|
|
621
|
-
[attr.data-swipe-out]="_swipeOut()"
|
|
622
|
-
[attr.data-expanded]="expanded() || (expandByDefault() && _mounted())"
|
|
623
|
-
[attr.data-testid]="toast().testId"
|
|
624
|
-
[style]="_toastStyle()"
|
|
625
|
-
(pointerdown)="onPointerDown($event)"
|
|
626
|
-
(pointerup)="onPointerUp()"
|
|
627
|
-
(pointermove)="onPointerMove($event)"
|
|
628
|
-
>
|
|
629
|
-
@if (_closeButton() && !toast().component) {
|
|
630
|
-
<button
|
|
631
|
-
aria-label="Close toast"
|
|
632
|
-
[attr.data-disabled]="_disabled()"
|
|
633
|
-
data-close-button
|
|
634
|
-
(click)="onCloseButtonClick()"
|
|
635
|
-
[class]="_closeButtonClasses()"
|
|
599
|
+
/** @nocollapse */ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.16", type: BrnSonnerToast, isStandalone: true, selector: "li[brnSonnerToast]", inputs: { toast: { classPropertyName: "toast", publicName: "toast", isSignal: true, isRequired: true, transformFunction: null }, index: { classPropertyName: "index", publicName: "index", isSignal: true, isRequired: true, transformFunction: null }, expanded: { classPropertyName: "expanded", publicName: "expanded", isSignal: true, isRequired: true, transformFunction: null }, invert: { classPropertyName: "invert", publicName: "invert", isSignal: true, isRequired: true, transformFunction: null }, position: { classPropertyName: "position", publicName: "position", isSignal: true, isRequired: true, transformFunction: null }, visibleToasts: { classPropertyName: "visibleToasts", publicName: "visibleToasts", isSignal: true, isRequired: true, transformFunction: null }, expandByDefault: { classPropertyName: "expandByDefault", publicName: "expandByDefault", isSignal: true, isRequired: true, transformFunction: null }, closeButton: { classPropertyName: "closeButton", publicName: "closeButton", isSignal: true, isRequired: true, transformFunction: null }, interacting: { classPropertyName: "interacting", publicName: "interacting", isSignal: true, isRequired: true, transformFunction: null }, cancelButtonStyle: { classPropertyName: "cancelButtonStyle", publicName: "cancelButtonStyle", isSignal: true, isRequired: false, transformFunction: null }, actionButtonStyle: { classPropertyName: "actionButtonStyle", publicName: "actionButtonStyle", isSignal: true, isRequired: false, transformFunction: null }, duration: { classPropertyName: "duration", publicName: "duration", isSignal: true, isRequired: false, transformFunction: null }, descriptionClass: { classPropertyName: "descriptionClass", publicName: "descriptionClass", isSignal: true, isRequired: false, transformFunction: null }, classes: { classPropertyName: "classes", publicName: "classes", isSignal: true, isRequired: false, transformFunction: null }, unstyled: { classPropertyName: "unstyled", publicName: "unstyled", isSignal: true, isRequired: false, transformFunction: null }, userClass: { classPropertyName: "userClass", publicName: "class", isSignal: true, isRequired: false, transformFunction: null }, style: { classPropertyName: "style", publicName: "style", isSignal: true, isRequired: false, transformFunction: null }, actionTemplate: { classPropertyName: "actionTemplate", publicName: "actionTemplate", isSignal: true, isRequired: false, transformFunction: null }, cancelActionTemplate: { classPropertyName: "cancelActionTemplate", publicName: "cancelActionTemplate", isSignal: true, isRequired: false, transformFunction: null } }, host: { attributes: { "data-sonner-toast": "", "aria-atomic": "true", "tabindex": "0" }, listeners: { "pointerdown": "onPointerDown($event)", "pointerup": "onPointerUp()", "pointermove": "onPointerMove($event)" }, properties: { "attr.aria-live": "toast().important ? 'assertive' : 'polite'", "class": "_toastClasses()", "attr.data-styled": "!(toast().component || toast().unstyled || unstyled())", "attr.data-mounted": "_mounted()", "attr.data-promise": "!!toast().promise", "attr.data-removed": "_removed()", "attr.data-visible": "_isVisible()", "attr.data-y-position": "_coords()[0]", "attr.data-x-position": "_coords()[1]", "attr.data-index": "index()", "attr.data-front": "_isFront()", "attr.data-swiping": "_swiping()", "attr.data-dismissible": "toast().dismissible", "attr.data-type": "_toastType()", "attr.data-invert": "_invert()", "attr.data-swipe-out": "_swipeOut()", "attr.data-expanded": "expanded() || (expandByDefault() && _mounted())", "attr.data-testid": "toast().testId", "style": "_toastStyle()" } }, exportAs: ["brnSonnerToast"], ngImport: i0, template: `
|
|
600
|
+
@if (_closeButton() && !toast().component) {
|
|
601
|
+
<button
|
|
602
|
+
aria-label="Close toast"
|
|
603
|
+
[attr.data-disabled]="_disabled()"
|
|
604
|
+
data-close-button
|
|
605
|
+
(click)="onCloseButtonClick()"
|
|
606
|
+
[class]="_closeButtonClasses()"
|
|
607
|
+
>
|
|
608
|
+
<svg
|
|
609
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
610
|
+
width="12"
|
|
611
|
+
height="12"
|
|
612
|
+
viewBox="0 0 24 24"
|
|
613
|
+
fill="none"
|
|
614
|
+
stroke="currentColor"
|
|
615
|
+
stroke-width="1.5"
|
|
616
|
+
stroke-linecap="round"
|
|
617
|
+
stroke-linejoin="round"
|
|
636
618
|
>
|
|
637
|
-
<
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
fill="none"
|
|
643
|
-
stroke="currentColor"
|
|
644
|
-
stroke-width="1.5"
|
|
645
|
-
stroke-linecap="round"
|
|
646
|
-
stroke-linejoin="round"
|
|
647
|
-
>
|
|
648
|
-
<line x1="18" y1="6" x2="6" y2="18" />
|
|
649
|
-
<line x1="6" y1="6" x2="18" y2="18" />
|
|
650
|
-
</svg>
|
|
651
|
-
</button>
|
|
652
|
-
}
|
|
619
|
+
<line x1="18" y1="6" x2="6" y2="18" />
|
|
620
|
+
<line x1="6" y1="6" x2="18" y2="18" />
|
|
621
|
+
</svg>
|
|
622
|
+
</button>
|
|
623
|
+
}
|
|
653
624
|
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
}
|
|
669
|
-
@case ('error') {
|
|
670
|
-
<ng-content select="[error-icon]" />
|
|
671
|
-
}
|
|
672
|
-
@case ('warning') {
|
|
673
|
-
<ng-content select="[warning-icon]" />
|
|
674
|
-
}
|
|
675
|
-
@case ('info') {
|
|
676
|
-
<ng-content select="[info-icon]" />
|
|
677
|
-
}
|
|
625
|
+
@if (toast().component) {
|
|
626
|
+
<ng-container *ngComponentOutlet="toast().component | asComponent; inputs: toast().componentProps" />
|
|
627
|
+
} @else {
|
|
628
|
+
@if (_toastType() !== 'default' || toast().icon || toast().promise) {
|
|
629
|
+
<div data-icon>
|
|
630
|
+
@if (_toastType() === 'loading' && !toast().icon) {
|
|
631
|
+
<ng-content select="[loading-icon]" />
|
|
632
|
+
}
|
|
633
|
+
@if (toast().icon) {
|
|
634
|
+
<ng-container *ngComponentOutlet="toast().icon | asComponent; inputs: toast().componentProps" />
|
|
635
|
+
} @else {
|
|
636
|
+
@switch (_toastType()) {
|
|
637
|
+
@case ('success') {
|
|
638
|
+
<ng-content select="[success-icon]" />
|
|
678
639
|
}
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
}
|
|
682
|
-
<div data-content>
|
|
683
|
-
@if (toast().title; as title) {
|
|
684
|
-
<div data-title [class]="_titleClasses()">
|
|
685
|
-
@if (title | isString) {
|
|
686
|
-
{{ toast().title }}
|
|
687
|
-
} @else {
|
|
688
|
-
<ng-container *ngComponentOutlet="title | asComponent; inputs: toast().componentProps" />
|
|
640
|
+
@case ('error') {
|
|
641
|
+
<ng-content select="[error-icon]" />
|
|
689
642
|
}
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
{{ toast().description }}
|
|
696
|
-
} @else {
|
|
697
|
-
<ng-container *ngComponentOutlet="description | asComponent; inputs: toast().componentProps" />
|
|
643
|
+
@case ('warning') {
|
|
644
|
+
<ng-content select="[warning-icon]" />
|
|
645
|
+
}
|
|
646
|
+
@case ('info') {
|
|
647
|
+
<ng-content select="[info-icon]" />
|
|
698
648
|
}
|
|
699
|
-
|
|
649
|
+
}
|
|
700
650
|
}
|
|
701
651
|
</div>
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
data-button
|
|
713
|
-
data-cancel
|
|
714
|
-
[style]="cancelButtonStyle() ?? toast().cancelButtonStyle"
|
|
715
|
-
[class]="_cancelButtonClasses()"
|
|
716
|
-
(click)="onCancelClick($event)"
|
|
717
|
-
>
|
|
718
|
-
{{ cancel.label }}
|
|
719
|
-
</button>
|
|
720
|
-
}
|
|
652
|
+
}
|
|
653
|
+
<div data-content>
|
|
654
|
+
@if (toast().title; as title) {
|
|
655
|
+
<div data-title [class]="_titleClasses()">
|
|
656
|
+
@if (title | isString) {
|
|
657
|
+
{{ toast().title }}
|
|
658
|
+
} @else {
|
|
659
|
+
<ng-container *ngComponentOutlet="title | asComponent; inputs: toast().componentProps" />
|
|
660
|
+
}
|
|
661
|
+
</div>
|
|
721
662
|
}
|
|
722
|
-
@if (toast().
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
663
|
+
@if (toast().description; as description) {
|
|
664
|
+
<div data-description [class]="_toastDescriptionClasses()">
|
|
665
|
+
@if (description | isString) {
|
|
666
|
+
{{ toast().description }}
|
|
667
|
+
} @else {
|
|
668
|
+
<ng-container *ngComponentOutlet="description | asComponent; inputs: toast().componentProps" />
|
|
669
|
+
}
|
|
670
|
+
</div>
|
|
671
|
+
}
|
|
672
|
+
</div>
|
|
673
|
+
@if (toast().cancel; as cancel) {
|
|
674
|
+
@if (cancelActionTemplate(); as cancelAction) {
|
|
675
|
+
<ng-container
|
|
676
|
+
*ngTemplateOutlet="cancelAction.templateRef; context: { $implicit: _wrappedCancelAction(), toast: toast() }"
|
|
677
|
+
/>
|
|
678
|
+
} @else {
|
|
679
|
+
<button
|
|
680
|
+
data-button
|
|
681
|
+
data-cancel
|
|
682
|
+
[style]="cancelButtonStyle() ?? toast().cancelButtonStyle"
|
|
683
|
+
[class]="_cancelButtonClasses()"
|
|
684
|
+
(click)="onCancelClick($event)"
|
|
685
|
+
>
|
|
686
|
+
{{ cancel.label }}
|
|
687
|
+
</button>
|
|
737
688
|
}
|
|
738
689
|
}
|
|
739
|
-
|
|
690
|
+
@if (toast().action; as action) {
|
|
691
|
+
@if (actionTemplate(); as actionTemplate) {
|
|
692
|
+
<ng-container
|
|
693
|
+
*ngTemplateOutlet="actionTemplate.templateRef; context: { $implicit: _wrappedAction(), toast: toast() }"
|
|
694
|
+
/>
|
|
695
|
+
} @else {
|
|
696
|
+
<button
|
|
697
|
+
data-button
|
|
698
|
+
[style]="actionButtonStyle() ?? toast().actionButtonStyle"
|
|
699
|
+
[class]="_actionButtonClasses()"
|
|
700
|
+
(click)="onActionClick($event)"
|
|
701
|
+
>
|
|
702
|
+
{{ action.label }}
|
|
703
|
+
</button>
|
|
704
|
+
}
|
|
705
|
+
}
|
|
706
|
+
}
|
|
740
707
|
`, isInline: true, dependencies: [{ kind: "directive", type: NgComponentOutlet, selector: "[ngComponentOutlet]", inputs: ["ngComponentOutlet", "ngComponentOutletInputs", "ngComponentOutletInjector", "ngComponentOutletEnvironmentInjector", "ngComponentOutletContent", "ngComponentOutletNgModule"], exportAs: ["ngComponentOutlet"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "pipe", type: IsStringPipe, name: "isString" }, { kind: "pipe", type: AsComponentPipe, name: "asComponent" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
741
708
|
}
|
|
742
709
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.16", ngImport: i0, type: BrnSonnerToast, decorators: [{
|
|
743
710
|
type: Component,
|
|
744
711
|
args: [{
|
|
745
|
-
|
|
712
|
+
// eslint-disable-next-line @angular-eslint/component-selector
|
|
713
|
+
selector: 'li[brnSonnerToast]',
|
|
746
714
|
exportAs: 'brnSonnerToast',
|
|
747
715
|
imports: [NgComponentOutlet, IsStringPipe, AsComponentPipe, NgTemplateOutlet],
|
|
748
716
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
717
|
+
host: {
|
|
718
|
+
'data-sonner-toast': '',
|
|
719
|
+
'[attr.aria-live]': "toast().important ? 'assertive' : 'polite'",
|
|
720
|
+
'aria-atomic': 'true',
|
|
721
|
+
tabindex: '0',
|
|
722
|
+
'[class]': '_toastClasses()',
|
|
723
|
+
'[attr.data-styled]': '!(toast().component || toast().unstyled || unstyled())',
|
|
724
|
+
'[attr.data-mounted]': '_mounted()',
|
|
725
|
+
'[attr.data-promise]': '!!toast().promise',
|
|
726
|
+
'[attr.data-removed]': '_removed()',
|
|
727
|
+
'[attr.data-visible]': '_isVisible()',
|
|
728
|
+
'[attr.data-y-position]': '_coords()[0]',
|
|
729
|
+
'[attr.data-x-position]': '_coords()[1]',
|
|
730
|
+
'[attr.data-index]': 'index()',
|
|
731
|
+
'[attr.data-front]': '_isFront()',
|
|
732
|
+
'[attr.data-swiping]': '_swiping()',
|
|
733
|
+
'[attr.data-dismissible]': 'toast().dismissible',
|
|
734
|
+
'[attr.data-type]': '_toastType()',
|
|
735
|
+
'[attr.data-invert]': '_invert()',
|
|
736
|
+
'[attr.data-swipe-out]': '_swipeOut()',
|
|
737
|
+
'[attr.data-expanded]': 'expanded() || (expandByDefault() && _mounted())',
|
|
738
|
+
'[attr.data-testid]': 'toast().testId',
|
|
739
|
+
'[style]': '_toastStyle()',
|
|
740
|
+
'(pointerdown)': 'onPointerDown($event)',
|
|
741
|
+
'(pointerup)': 'onPointerUp()',
|
|
742
|
+
'(pointermove)': 'onPointerMove($event)',
|
|
743
|
+
},
|
|
749
744
|
template: `
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
[attr.data-dismissible]="toast().dismissible"
|
|
769
|
-
[attr.data-type]="_toastType()"
|
|
770
|
-
[attr.data-invert]="_invert()"
|
|
771
|
-
[attr.data-swipe-out]="_swipeOut()"
|
|
772
|
-
[attr.data-expanded]="expanded() || (expandByDefault() && _mounted())"
|
|
773
|
-
[attr.data-testid]="toast().testId"
|
|
774
|
-
[style]="_toastStyle()"
|
|
775
|
-
(pointerdown)="onPointerDown($event)"
|
|
776
|
-
(pointerup)="onPointerUp()"
|
|
777
|
-
(pointermove)="onPointerMove($event)"
|
|
778
|
-
>
|
|
779
|
-
@if (_closeButton() && !toast().component) {
|
|
780
|
-
<button
|
|
781
|
-
aria-label="Close toast"
|
|
782
|
-
[attr.data-disabled]="_disabled()"
|
|
783
|
-
data-close-button
|
|
784
|
-
(click)="onCloseButtonClick()"
|
|
785
|
-
[class]="_closeButtonClasses()"
|
|
745
|
+
@if (_closeButton() && !toast().component) {
|
|
746
|
+
<button
|
|
747
|
+
aria-label="Close toast"
|
|
748
|
+
[attr.data-disabled]="_disabled()"
|
|
749
|
+
data-close-button
|
|
750
|
+
(click)="onCloseButtonClick()"
|
|
751
|
+
[class]="_closeButtonClasses()"
|
|
752
|
+
>
|
|
753
|
+
<svg
|
|
754
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
755
|
+
width="12"
|
|
756
|
+
height="12"
|
|
757
|
+
viewBox="0 0 24 24"
|
|
758
|
+
fill="none"
|
|
759
|
+
stroke="currentColor"
|
|
760
|
+
stroke-width="1.5"
|
|
761
|
+
stroke-linecap="round"
|
|
762
|
+
stroke-linejoin="round"
|
|
786
763
|
>
|
|
787
|
-
<
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
fill="none"
|
|
793
|
-
stroke="currentColor"
|
|
794
|
-
stroke-width="1.5"
|
|
795
|
-
stroke-linecap="round"
|
|
796
|
-
stroke-linejoin="round"
|
|
797
|
-
>
|
|
798
|
-
<line x1="18" y1="6" x2="6" y2="18" />
|
|
799
|
-
<line x1="6" y1="6" x2="18" y2="18" />
|
|
800
|
-
</svg>
|
|
801
|
-
</button>
|
|
802
|
-
}
|
|
764
|
+
<line x1="18" y1="6" x2="6" y2="18" />
|
|
765
|
+
<line x1="6" y1="6" x2="18" y2="18" />
|
|
766
|
+
</svg>
|
|
767
|
+
</button>
|
|
768
|
+
}
|
|
803
769
|
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
}
|
|
819
|
-
@case ('error') {
|
|
820
|
-
<ng-content select="[error-icon]" />
|
|
821
|
-
}
|
|
822
|
-
@case ('warning') {
|
|
823
|
-
<ng-content select="[warning-icon]" />
|
|
824
|
-
}
|
|
825
|
-
@case ('info') {
|
|
826
|
-
<ng-content select="[info-icon]" />
|
|
827
|
-
}
|
|
770
|
+
@if (toast().component) {
|
|
771
|
+
<ng-container *ngComponentOutlet="toast().component | asComponent; inputs: toast().componentProps" />
|
|
772
|
+
} @else {
|
|
773
|
+
@if (_toastType() !== 'default' || toast().icon || toast().promise) {
|
|
774
|
+
<div data-icon>
|
|
775
|
+
@if (_toastType() === 'loading' && !toast().icon) {
|
|
776
|
+
<ng-content select="[loading-icon]" />
|
|
777
|
+
}
|
|
778
|
+
@if (toast().icon) {
|
|
779
|
+
<ng-container *ngComponentOutlet="toast().icon | asComponent; inputs: toast().componentProps" />
|
|
780
|
+
} @else {
|
|
781
|
+
@switch (_toastType()) {
|
|
782
|
+
@case ('success') {
|
|
783
|
+
<ng-content select="[success-icon]" />
|
|
828
784
|
}
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
}
|
|
832
|
-
<div data-content>
|
|
833
|
-
@if (toast().title; as title) {
|
|
834
|
-
<div data-title [class]="_titleClasses()">
|
|
835
|
-
@if (title | isString) {
|
|
836
|
-
{{ toast().title }}
|
|
837
|
-
} @else {
|
|
838
|
-
<ng-container *ngComponentOutlet="title | asComponent; inputs: toast().componentProps" />
|
|
785
|
+
@case ('error') {
|
|
786
|
+
<ng-content select="[error-icon]" />
|
|
839
787
|
}
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
{{ toast().description }}
|
|
846
|
-
} @else {
|
|
847
|
-
<ng-container *ngComponentOutlet="description | asComponent; inputs: toast().componentProps" />
|
|
788
|
+
@case ('warning') {
|
|
789
|
+
<ng-content select="[warning-icon]" />
|
|
790
|
+
}
|
|
791
|
+
@case ('info') {
|
|
792
|
+
<ng-content select="[info-icon]" />
|
|
848
793
|
}
|
|
849
|
-
|
|
794
|
+
}
|
|
850
795
|
}
|
|
851
796
|
</div>
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
data-button
|
|
863
|
-
data-cancel
|
|
864
|
-
[style]="cancelButtonStyle() ?? toast().cancelButtonStyle"
|
|
865
|
-
[class]="_cancelButtonClasses()"
|
|
866
|
-
(click)="onCancelClick($event)"
|
|
867
|
-
>
|
|
868
|
-
{{ cancel.label }}
|
|
869
|
-
</button>
|
|
870
|
-
}
|
|
797
|
+
}
|
|
798
|
+
<div data-content>
|
|
799
|
+
@if (toast().title; as title) {
|
|
800
|
+
<div data-title [class]="_titleClasses()">
|
|
801
|
+
@if (title | isString) {
|
|
802
|
+
{{ toast().title }}
|
|
803
|
+
} @else {
|
|
804
|
+
<ng-container *ngComponentOutlet="title | asComponent; inputs: toast().componentProps" />
|
|
805
|
+
}
|
|
806
|
+
</div>
|
|
871
807
|
}
|
|
872
|
-
@if (toast().
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
|
|
884
|
-
|
|
885
|
-
|
|
886
|
-
|
|
808
|
+
@if (toast().description; as description) {
|
|
809
|
+
<div data-description [class]="_toastDescriptionClasses()">
|
|
810
|
+
@if (description | isString) {
|
|
811
|
+
{{ toast().description }}
|
|
812
|
+
} @else {
|
|
813
|
+
<ng-container *ngComponentOutlet="description | asComponent; inputs: toast().componentProps" />
|
|
814
|
+
}
|
|
815
|
+
</div>
|
|
816
|
+
}
|
|
817
|
+
</div>
|
|
818
|
+
@if (toast().cancel; as cancel) {
|
|
819
|
+
@if (cancelActionTemplate(); as cancelAction) {
|
|
820
|
+
<ng-container
|
|
821
|
+
*ngTemplateOutlet="cancelAction.templateRef; context: { $implicit: _wrappedCancelAction(), toast: toast() }"
|
|
822
|
+
/>
|
|
823
|
+
} @else {
|
|
824
|
+
<button
|
|
825
|
+
data-button
|
|
826
|
+
data-cancel
|
|
827
|
+
[style]="cancelButtonStyle() ?? toast().cancelButtonStyle"
|
|
828
|
+
[class]="_cancelButtonClasses()"
|
|
829
|
+
(click)="onCancelClick($event)"
|
|
830
|
+
>
|
|
831
|
+
{{ cancel.label }}
|
|
832
|
+
</button>
|
|
887
833
|
}
|
|
888
834
|
}
|
|
889
|
-
|
|
835
|
+
@if (toast().action; as action) {
|
|
836
|
+
@if (actionTemplate(); as actionTemplate) {
|
|
837
|
+
<ng-container
|
|
838
|
+
*ngTemplateOutlet="actionTemplate.templateRef; context: { $implicit: _wrappedAction(), toast: toast() }"
|
|
839
|
+
/>
|
|
840
|
+
} @else {
|
|
841
|
+
<button
|
|
842
|
+
data-button
|
|
843
|
+
[style]="actionButtonStyle() ?? toast().actionButtonStyle"
|
|
844
|
+
[class]="_actionButtonClasses()"
|
|
845
|
+
(click)="onActionClick($event)"
|
|
846
|
+
>
|
|
847
|
+
{{ action.label }}
|
|
848
|
+
</button>
|
|
849
|
+
}
|
|
850
|
+
}
|
|
851
|
+
}
|
|
890
852
|
`,
|
|
891
853
|
}]
|
|
892
|
-
}], ctorParameters: () => [], propDecorators: { toast: [{ type: i0.Input, args: [{ isSignal: true, alias: "toast", required: true }] }], index: [{ type: i0.Input, args: [{ isSignal: true, alias: "index", required: true }] }], expanded: [{ type: i0.Input, args: [{ isSignal: true, alias: "expanded", required: true }] }], invert: [{ type: i0.Input, args: [{ isSignal: true, alias: "invert", required: true }] }], position: [{ type: i0.Input, args: [{ isSignal: true, alias: "position", required: true }] }], visibleToasts: [{ type: i0.Input, args: [{ isSignal: true, alias: "visibleToasts", required: true }] }], expandByDefault: [{ type: i0.Input, args: [{ isSignal: true, alias: "expandByDefault", required: true }] }], closeButton: [{ type: i0.Input, args: [{ isSignal: true, alias: "closeButton", required: true }] }], interacting: [{ type: i0.Input, args: [{ isSignal: true, alias: "interacting", required: true }] }], cancelButtonStyle: [{ type: i0.Input, args: [{ isSignal: true, alias: "cancelButtonStyle", required: false }] }], actionButtonStyle: [{ type: i0.Input, args: [{ isSignal: true, alias: "actionButtonStyle", required: false }] }], duration: [{ type: i0.Input, args: [{ isSignal: true, alias: "duration", required: false }] }], descriptionClass: [{ type: i0.Input, args: [{ isSignal: true, alias: "descriptionClass", required: false }] }], classes: [{ type: i0.Input, args: [{ isSignal: true, alias: "classes", required: false }] }], unstyled: [{ type: i0.Input, args: [{ isSignal: true, alias: "unstyled", required: false }] }], userClass: [{ type: i0.Input, args: [{ isSignal: true, alias: "class", required: false }] }], style: [{ type: i0.Input, args: [{ isSignal: true, alias: "style", required: false }] }], actionTemplate: [{ type: i0.Input, args: [{ isSignal: true, alias: "actionTemplate", required: false }] }], cancelActionTemplate: [{ type: i0.Input, args: [{ isSignal: true, alias: "cancelActionTemplate", required: false }] }]
|
|
854
|
+
}], ctorParameters: () => [], propDecorators: { toast: [{ type: i0.Input, args: [{ isSignal: true, alias: "toast", required: true }] }], index: [{ type: i0.Input, args: [{ isSignal: true, alias: "index", required: true }] }], expanded: [{ type: i0.Input, args: [{ isSignal: true, alias: "expanded", required: true }] }], invert: [{ type: i0.Input, args: [{ isSignal: true, alias: "invert", required: true }] }], position: [{ type: i0.Input, args: [{ isSignal: true, alias: "position", required: true }] }], visibleToasts: [{ type: i0.Input, args: [{ isSignal: true, alias: "visibleToasts", required: true }] }], expandByDefault: [{ type: i0.Input, args: [{ isSignal: true, alias: "expandByDefault", required: true }] }], closeButton: [{ type: i0.Input, args: [{ isSignal: true, alias: "closeButton", required: true }] }], interacting: [{ type: i0.Input, args: [{ isSignal: true, alias: "interacting", required: true }] }], cancelButtonStyle: [{ type: i0.Input, args: [{ isSignal: true, alias: "cancelButtonStyle", required: false }] }], actionButtonStyle: [{ type: i0.Input, args: [{ isSignal: true, alias: "actionButtonStyle", required: false }] }], duration: [{ type: i0.Input, args: [{ isSignal: true, alias: "duration", required: false }] }], descriptionClass: [{ type: i0.Input, args: [{ isSignal: true, alias: "descriptionClass", required: false }] }], classes: [{ type: i0.Input, args: [{ isSignal: true, alias: "classes", required: false }] }], unstyled: [{ type: i0.Input, args: [{ isSignal: true, alias: "unstyled", required: false }] }], userClass: [{ type: i0.Input, args: [{ isSignal: true, alias: "class", required: false }] }], style: [{ type: i0.Input, args: [{ isSignal: true, alias: "style", required: false }] }], actionTemplate: [{ type: i0.Input, args: [{ isSignal: true, alias: "actionTemplate", required: false }] }], cancelActionTemplate: [{ type: i0.Input, args: [{ isSignal: true, alias: "cancelActionTemplate", required: false }] }] } });
|
|
893
855
|
|
|
894
856
|
/**
|
|
895
857
|
* Utils directory to typecheck the context of the templateRef
|
|
@@ -1076,6 +1038,7 @@ class BrnSonnerToaster {
|
|
|
1076
1038
|
@for (pos of _possiblePositions(); track pos) {
|
|
1077
1039
|
<ol
|
|
1078
1040
|
#listRef
|
|
1041
|
+
role="list"
|
|
1079
1042
|
[tabIndex]="-1"
|
|
1080
1043
|
[class]="userClass()"
|
|
1081
1044
|
data-sonner-toaster
|
|
@@ -1094,7 +1057,8 @@ class BrnSonnerToaster {
|
|
|
1094
1057
|
(pointerup)="_interacting.set(false)"
|
|
1095
1058
|
>
|
|
1096
1059
|
@for (toast of _toasts() | toastFilter: $index : pos; track toast.id) {
|
|
1097
|
-
<
|
|
1060
|
+
<li
|
|
1061
|
+
brnSonnerToast
|
|
1098
1062
|
[index]="$index"
|
|
1099
1063
|
[toast]="toast"
|
|
1100
1064
|
[invert]="invert()"
|
|
@@ -1143,13 +1107,13 @@ class BrnSonnerToaster {
|
|
|
1143
1107
|
} @else {
|
|
1144
1108
|
<brn-sonner-icon type="info" info-icon />
|
|
1145
1109
|
}
|
|
1146
|
-
</
|
|
1110
|
+
</li>
|
|
1147
1111
|
}
|
|
1148
1112
|
</ol>
|
|
1149
1113
|
}
|
|
1150
1114
|
</section>
|
|
1151
1115
|
}
|
|
1152
|
-
`, isInline: true, styles: ["html[dir=ltr],[data-sonner-toaster][dir=ltr]{--toast-icon-margin-start: var(--brn-sonner-toast-icon-margin-start, -3px);--toast-icon-margin-end: var(--brn-sonner-toast-icon-margin-end, 4px);--toast-svg-margin-start: var(--brn-sonner-toast-svg-margin-start, -1px);--toast-svg-margin-end: var(--brn-sonner-toast-svg-margin-end, 0px);--toast-button-margin-start: var(--brn-sonner-toast-button-margin-start, auto);--toast-button-margin-end: var(--brn-sonner-toast-button-margin-end, 0);--toast-close-button-start: var(--brn-sonner-toast-close-button-start, 0);--toast-close-button-end: var(--brn-sonner-toast-close-button-end, unset);--toast-close-button-transform: var(--brn-sonner-toast-close-button-transform, translate(-35%, -35%))}html[dir=rtl],[data-sonner-toaster][dir=rtl]{--toast-icon-margin-start: var(--brn-sonner-rtl-toast-icon-margin-start, 4px);--toast-icon-margin-end: var(--brn-sonner-rtl-toast-icon-margin-end, -3px);--toast-svg-margin-start: var(--brn-sonner-rtl-toast-svg-margin-start, 0px);--toast-svg-margin-end: var(--brn-sonner-rtl-toast-svg-margin-end, -1px);--toast-button-margin-start: var(--brn-sonner-rtl-toast-button-margin-start, 0);--toast-button-margin-end: var(--brn-sonner-rtl-toast-button-margin-end, auto);--toast-close-button-start: var(--brn-sonner-rtl-toast-close-button-start, unset);--toast-close-button-end: var(--brn-sonner-rtl-toast-close-button-end, 0);--toast-close-button-transform: var(--brn-sonner-rtl-toast-close-button-transform, translate(35%, -35%))}[data-sonner-toaster]{position:fixed;width:var(--width);font-family:var( --brn-sonner-font-family, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica Neue, Arial, Noto Sans, sans-serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol, Noto Color Emoji );--gray1: hsl(0, 0%, 99%);--gray2: hsl(0, 0%, 97.3%);--gray3: hsl(0, 0%, 95.1%);--gray4: hsl(0, 0%, 93%);--gray5: hsl(0, 0%, 90.9%);--gray6: hsl(0, 0%, 88.7%);--gray7: hsl(0, 0%, 85.8%);--gray8: hsl(0, 0%, 78%);--gray9: hsl(0, 0%, 56.1%);--gray10: hsl(0, 0%, 52.3%);--gray11: hsl(0, 0%, 43.5%);--gray12: hsl(0, 0%, 9%);--border-radius: var(--brn-sonner-border-radius, 8px);box-sizing:border-box;padding:0;margin:0;list-style:none;outline:none;z-index:999999999}[data-sonner-toaster][data-x-position=right]{right:max(var(--offset),env(safe-area-inset-right))}[data-sonner-toaster][data-x-position=left]{left:max(var(--offset),env(safe-area-inset-left))}[data-sonner-toaster][data-x-position=center]{left:50%;transform:translate(-50%)}[data-sonner-toaster][data-y-position=top]{top:max(var(--offset),env(safe-area-inset-top))}[data-sonner-toaster][data-y-position=bottom]{bottom:max(var(--offset),env(safe-area-inset-bottom))}[data-sonner-toast]{--y: translateY(100%);--lift-amount: calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);filter:blur(0);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:none;overflow-wrap:anywhere}[data-sonner-toast][data-styled=true]{padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px #0000001a;width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}[data-sonner-toast]:focus-visible{box-shadow:0 4px 12px #0000001a,0 0 0 2px #0003}[data-sonner-toast][data-y-position=top]{top:0;--y: translateY(-100%);--lift: 1;--lift-amount: calc(1 * var(--gap))}[data-sonner-toast][data-y-position=bottom]{bottom:0;--y: translateY(100%);--lift: -1;--lift-amount: calc(var(--lift) * var(--gap))}[data-sonner-toast] [data-description]{font-weight:400;line-height:1.4;color:inherit}[data-sonner-toast] [data-title]{font-weight:500;line-height:1.5;color:inherit}[data-sonner-toast] [data-icon]{display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}[data-sonner-toast][data-promise=true] [data-icon]>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}[data-sonner-toast] [data-icon]>*{flex-shrink:0}[data-sonner-toast] [data-icon] svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}[data-sonner-toast] [data-content]{display:flex;flex-direction:column;flex:1;gap:2px}[data-sonner-toast] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;cursor:pointer;outline:none;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}[data-sonner-toast] [data-button]:focus-visible{box-shadow:var(--brn-sonner-toast-focus-box-shadow, 0 0 0 2px rgba(0, 0, 0, .4))}[data-sonner-toast] [data-button]:first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}[data-sonner-toast] [data-cancel]{color:var(--normal-text);background:#00000014}[data-sonner-toast][data-theme=dark] [data-cancel]{background:#ffffff4d}[data-sonner-toast] [data-close-button]{position:absolute;left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;background:var(--brn-sonner-toast-close-button-background, var(--gray1));color:var(--brn-sonner-toast-close-button-color, var(--gray12));border:var(--brn-sonner-toast-close-button-border, 1px solid var(--gray4));transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast] [data-close-button]:focus-visible{box-shadow:0 4px 12px #0000001a,0 0 0 2px #0003}[data-sonner-toast] [data-disabled=true]{cursor:not-allowed}[data-sonner-toast]:hover [data-close-button]:hover{background:var(--brn-sonner-toast-close-button-hover-background, var(--gray2));color:var(--brn-sonner-toast-close-button-hover-color, var(--gray12));border-color:var(--brn-sonner-toast-close-button-hover-border-color, var(--gray5))}[data-sonner-toast][data-swiping=true]:before{content:\"\";position:absolute;left:0;right:0;height:100%;z-index:-1}[data-sonner-toast][data-y-position=top][data-swiping=true]:before{bottom:50%;transform:scaleY(3) translateY(50%)}[data-sonner-toast][data-y-position=bottom][data-swiping=true]:before{top:50%;transform:scaleY(3) translateY(-50%)}[data-sonner-toast][data-swiping=false][data-removed=true]:before{content:\"\";position:absolute;inset:0;transform:scaleY(2)}[data-sonner-toast]:after{content:\"\";position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}[data-sonner-toast][data-mounted=true]{--y: translateY(0);opacity:1}[data-sonner-toast][data-expanded=false][data-front=false]{--scale: var(--toasts-before) * .05 + 1;--y: translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}[data-sonner-toast]>*{transition:opacity .4s}[data-sonner-toast][data-expanded=false][data-front=false][data-styled=true]>*{opacity:0}[data-sonner-toast][data-visible=false]{opacity:0;pointer-events:none}[data-sonner-toast][data-mounted=true][data-expanded=true]{--y: translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}[data-sonner-toast][data-removed=true][data-front=true][data-swipe-out=false]{--y: translateY(calc(var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=true]{--y: translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=false]{--y: translateY(40%);opacity:0;transition:transform .5s,opacity .2s}[data-sonner-toast][data-removed=true][data-front=false]:before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount, 0px));transition:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation:swipe-out .2s ease-out forwards}@keyframes swipe-out{0%{transform:translateY(calc(var(--lift) * var(--offset) + var(--swipe-amount)));opacity:1}to{transform:translateY(calc(var(--lift) * var(--offset) + var(--swipe-amount) + var(--lift) * -100%));opacity:0}}@media(max-width:600px){[data-sonner-toaster]{position:fixed;--mobile-offset: 16px;right:var(--mobile-offset);left:var(--mobile-offset);width:100%}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - 32px)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset)}[data-sonner-toaster][data-y-position=bottom]{bottom:20px}[data-sonner-toaster][data-y-position=top]{top:20px}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset);right:var(--mobile-offset);transform:none}}[data-sonner-toaster][data-theme=light]{--normal-bg: var(--brn-sonner-toast-normal-background, #fff);--normal-border: var(--brn-sonner-toast-normal-border-color, var(--gray4));--normal-text: var(--brn-sonner-toast-normal-color, var(--gray12));--success-bg: var(--brn-sonner-toast-success-background, hsl(143, 85%, 96%));--success-border: var(--brn-sonner-toast-success-border, hsl(145, 92%, 91%));--success-text: var(--brn-sonner-toast-success-color, hsl(140, 100%, 27%));--info-bg: var(--brn-sonner-toast-info-background, hsl(208, 100%, 97%));--info-border: var(--brn-sonner-toast-info-border, hsl(221, 91%, 91%));--info-text: var(--brn-sonner-toast-info-color, hsl(210, 92%, 45%));--warning-bg: var(--brn-sonner-toast-warning-background, hsl(49, 100%, 97%));--warning-border: var(--brn-sonner-toast-warning-border, hsl(49, 91%, 91%));--warning-text: var(--brn-sonner-toast-warning-color, hsl(31, 92%, 45%));--error-bg: var(--brn-sonner-toast-error-background, hsl(359, 100%, 97%));--error-border: var(--brn-sonner-toast-error-border, hsl(359, 100%, 94%));--error-text: var(--brn-sonner-toast-error-color, hsl(360, 100%, 45%))}[data-sonner-toaster][data-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg: var(--brn-sonner-toast-inverse-normal-background, #000);--normal-border: var(--brn-sonner-toast-inverse-normal-border-color, hsl(0, 0%, 20%));--normal-text: var(--brn-sonner-toast-inverse-normal-color, var(--gray1))}[data-sonner-toaster][data-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg: var(--brn-sonner-toast-inverse-dark-normal-background, #fff);--normal-border: var(--brn-sonner-toast-inverse-dark-normal-border-color, var(--gray3));--normal-text: var(--brn-sonner-toast-inverse-dark-normal-color, var(--gray12))}[data-sonner-toaster][data-theme=dark]{--normal-bg: var(--brn-sonner-toast-dark-normal-background, #000);--normal-border: var(--brn-sonner-toast-dark-normal-border-color, hsl(0, 0%, 20%));--normal-text: var(--brn-sonner-toast-dark-normal-color, var(--gray1));--success-bg: var(--brn-sonner-toast-dark-success-background, hsl(150, 100%, 6%));--success-border: var(--brn-sonner-toast-dark-success-border, hsl(147, 100%, 12%));--success-text: var(--brn-sonner-toast-dark-success-color, hsl(150, 86%, 65%));--info-bg: var(--brn-sonner-toast-dark-info-background, hsl(215, 100%, 6%));--info-border: var(--brn-sonner-toast-dark-info-border, hsl(223, 100%, 12%));--info-text: var(--brn-sonner-toast-dark-info-color, hsl(216, 87%, 65%));--warning-bg: var(--brn-sonner-toast-dark-warning-background, hsl(64, 100%, 6%));--warning-border: var(--brn-sonner-toast-dark-warning-border, hsl(60, 100%, 12%));--warning-text: var(--brn-sonner-toast-dark-warning-color, hsl(46, 87%, 65%));--error-bg: var(--brn-sonner-toast-dark-error-background, hsl(358, 76%, 10%));--error-border: var(--brn-sonner-toast-dark-error-border, hsl(357, 89%, 16%));--error-text: var(--brn-sonner-toast-dark-error-color, hsl(358, 100%, 81%))}[data-rich-colors=true] [data-sonner-toast][data-type=success],[data-rich-colors=true] [data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true] [data-sonner-toast][data-type=info],[data-rich-colors=true] [data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true] [data-sonner-toast][data-type=warning],[data-rich-colors=true] [data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true] [data-sonner-toast][data-type=error],[data-rich-colors=true] [data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size: 16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:nth-child(1){animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}to{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}to{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}to{opacity:.15}}@media(prefers-reduced-motion){[data-sonner-toast],[data-sonner-toast]>*,.sonner-loading-bar{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)}\n"], dependencies: [{ kind: "component", type: BrnSonnerToast, selector: "brn-sonner-toast", inputs: ["toast", "index", "expanded", "invert", "position", "visibleToasts", "expandByDefault", "closeButton", "interacting", "cancelButtonStyle", "actionButtonStyle", "duration", "descriptionClass", "classes", "unstyled", "class", "style", "actionTemplate", "cancelActionTemplate"], exportAs: ["brnSonnerToast"] }, { kind: "component", type: BrnSonnerIcon, selector: "brn-sonner-icon", inputs: ["type"], exportAs: ["brnSonnerIcon"] }, { kind: "component", type: BrnSonnerLoader, selector: "brn-sonner-loader", inputs: ["isVisible"], exportAs: ["brnSonnerLoader"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "pipe", type: ToastFilterPipe, name: "toastFilter" }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
1116
|
+
`, isInline: true, styles: ["html[dir=ltr],[data-sonner-toaster][dir=ltr]{--toast-icon-margin-start: var(--brn-sonner-toast-icon-margin-start, -3px);--toast-icon-margin-end: var(--brn-sonner-toast-icon-margin-end, 4px);--toast-svg-margin-start: var(--brn-sonner-toast-svg-margin-start, -1px);--toast-svg-margin-end: var(--brn-sonner-toast-svg-margin-end, 0px);--toast-button-margin-start: var(--brn-sonner-toast-button-margin-start, auto);--toast-button-margin-end: var(--brn-sonner-toast-button-margin-end, 0);--toast-close-button-start: var(--brn-sonner-toast-close-button-start, 0);--toast-close-button-end: var(--brn-sonner-toast-close-button-end, unset);--toast-close-button-transform: var(--brn-sonner-toast-close-button-transform, translate(-35%, -35%))}html[dir=rtl],[data-sonner-toaster][dir=rtl]{--toast-icon-margin-start: var(--brn-sonner-rtl-toast-icon-margin-start, 4px);--toast-icon-margin-end: var(--brn-sonner-rtl-toast-icon-margin-end, -3px);--toast-svg-margin-start: var(--brn-sonner-rtl-toast-svg-margin-start, 0px);--toast-svg-margin-end: var(--brn-sonner-rtl-toast-svg-margin-end, -1px);--toast-button-margin-start: var(--brn-sonner-rtl-toast-button-margin-start, 0);--toast-button-margin-end: var(--brn-sonner-rtl-toast-button-margin-end, auto);--toast-close-button-start: var(--brn-sonner-rtl-toast-close-button-start, unset);--toast-close-button-end: var(--brn-sonner-rtl-toast-close-button-end, 0);--toast-close-button-transform: var(--brn-sonner-rtl-toast-close-button-transform, translate(35%, -35%))}[data-sonner-toaster]{position:fixed;width:var(--width);font-family:var( --brn-sonner-font-family, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica Neue, Arial, Noto Sans, sans-serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol, Noto Color Emoji );--gray1: hsl(0, 0%, 99%);--gray2: hsl(0, 0%, 97.3%);--gray3: hsl(0, 0%, 95.1%);--gray4: hsl(0, 0%, 93%);--gray5: hsl(0, 0%, 90.9%);--gray6: hsl(0, 0%, 88.7%);--gray7: hsl(0, 0%, 85.8%);--gray8: hsl(0, 0%, 78%);--gray9: hsl(0, 0%, 56.1%);--gray10: hsl(0, 0%, 52.3%);--gray11: hsl(0, 0%, 43.5%);--gray12: hsl(0, 0%, 9%);--border-radius: var(--brn-sonner-border-radius, 8px);box-sizing:border-box;padding:0;margin:0;list-style:none;outline:none;z-index:999999999}[data-sonner-toaster][data-x-position=right]{right:max(var(--offset),env(safe-area-inset-right))}[data-sonner-toaster][data-x-position=left]{left:max(var(--offset),env(safe-area-inset-left))}[data-sonner-toaster][data-x-position=center]{left:50%;transform:translate(-50%)}[data-sonner-toaster][data-y-position=top]{top:max(var(--offset),env(safe-area-inset-top))}[data-sonner-toaster][data-y-position=bottom]{bottom:max(var(--offset),env(safe-area-inset-bottom))}[data-sonner-toast]{--y: translateY(100%);--lift-amount: calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);filter:blur(0);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:none;overflow-wrap:anywhere}[data-sonner-toast][data-styled=true]{padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px #0000001a;width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}[data-sonner-toast]:focus-visible{box-shadow:0 4px 12px #0000001a,0 0 0 2px #0003}[data-sonner-toast][data-y-position=top]{top:0;--y: translateY(-100%);--lift: 1;--lift-amount: calc(1 * var(--gap))}[data-sonner-toast][data-y-position=bottom]{bottom:0;--y: translateY(100%);--lift: -1;--lift-amount: calc(var(--lift) * var(--gap))}[data-sonner-toast] [data-description]{font-weight:400;line-height:1.4;color:inherit}[data-sonner-toast] [data-title]{font-weight:500;line-height:1.5;color:inherit}[data-sonner-toast] [data-icon]{display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}[data-sonner-toast][data-promise=true] [data-icon]>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}[data-sonner-toast] [data-icon]>*{flex-shrink:0}[data-sonner-toast] [data-icon] svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}[data-sonner-toast] [data-content]{display:flex;flex-direction:column;flex:1;gap:2px}[data-sonner-toast] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;cursor:pointer;outline:none;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}[data-sonner-toast] [data-button]:focus-visible{box-shadow:var(--brn-sonner-toast-focus-box-shadow, 0 0 0 2px rgba(0, 0, 0, .4))}[data-sonner-toast] [data-button]:first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}[data-sonner-toast] [data-cancel]{color:var(--normal-text);background:#00000014}[data-sonner-toast][data-theme=dark] [data-cancel]{background:#ffffff4d}[data-sonner-toast] [data-close-button]{position:absolute;left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;background:var(--brn-sonner-toast-close-button-background, var(--gray1));color:var(--brn-sonner-toast-close-button-color, var(--gray12));border:var(--brn-sonner-toast-close-button-border, 1px solid var(--gray4));transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast] [data-close-button]:focus-visible{box-shadow:0 4px 12px #0000001a,0 0 0 2px #0003}[data-sonner-toast] [data-disabled=true]{cursor:not-allowed}[data-sonner-toast]:hover [data-close-button]:hover{background:var(--brn-sonner-toast-close-button-hover-background, var(--gray2));color:var(--brn-sonner-toast-close-button-hover-color, var(--gray12));border-color:var(--brn-sonner-toast-close-button-hover-border-color, var(--gray5))}[data-sonner-toast][data-swiping=true]:before{content:\"\";position:absolute;left:0;right:0;height:100%;z-index:-1}[data-sonner-toast][data-y-position=top][data-swiping=true]:before{bottom:50%;transform:scaleY(3) translateY(50%)}[data-sonner-toast][data-y-position=bottom][data-swiping=true]:before{top:50%;transform:scaleY(3) translateY(-50%)}[data-sonner-toast][data-swiping=false][data-removed=true]:before{content:\"\";position:absolute;inset:0;transform:scaleY(2)}[data-sonner-toast]:after{content:\"\";position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}[data-sonner-toast][data-mounted=true]{--y: translateY(0);opacity:1}[data-sonner-toast][data-expanded=false][data-front=false]{--scale: var(--toasts-before) * .05 + 1;--y: translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}[data-sonner-toast]>*{transition:opacity .4s}[data-sonner-toast][data-expanded=false][data-front=false][data-styled=true]>*{opacity:0}[data-sonner-toast][data-visible=false]{opacity:0;pointer-events:none}[data-sonner-toast][data-mounted=true][data-expanded=true]{--y: translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}[data-sonner-toast][data-removed=true][data-front=true][data-swipe-out=false]{--y: translateY(calc(var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=true]{--y: translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=false]{--y: translateY(40%);opacity:0;transition:transform .5s,opacity .2s}[data-sonner-toast][data-removed=true][data-front=false]:before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount, 0px));transition:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation:swipe-out .2s ease-out forwards}@keyframes swipe-out{0%{transform:translateY(calc(var(--lift) * var(--offset) + var(--swipe-amount)));opacity:1}to{transform:translateY(calc(var(--lift) * var(--offset) + var(--swipe-amount) + var(--lift) * -100%));opacity:0}}@media(max-width:600px){[data-sonner-toaster]{position:fixed;--mobile-offset: 16px;right:var(--mobile-offset);left:var(--mobile-offset);width:100%}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - 32px)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset)}[data-sonner-toaster][data-y-position=bottom]{bottom:20px}[data-sonner-toaster][data-y-position=top]{top:20px}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset);right:var(--mobile-offset);transform:none}}[data-sonner-toaster][data-theme=light]{--normal-bg: var(--brn-sonner-toast-normal-background, #fff);--normal-border: var(--brn-sonner-toast-normal-border-color, var(--gray4));--normal-text: var(--brn-sonner-toast-normal-color, var(--gray12));--success-bg: var(--brn-sonner-toast-success-background, hsl(143, 85%, 96%));--success-border: var(--brn-sonner-toast-success-border, hsl(145, 92%, 91%));--success-text: var(--brn-sonner-toast-success-color, hsl(140, 100%, 27%));--info-bg: var(--brn-sonner-toast-info-background, hsl(208, 100%, 97%));--info-border: var(--brn-sonner-toast-info-border, hsl(221, 91%, 91%));--info-text: var(--brn-sonner-toast-info-color, hsl(210, 92%, 45%));--warning-bg: var(--brn-sonner-toast-warning-background, hsl(49, 100%, 97%));--warning-border: var(--brn-sonner-toast-warning-border, hsl(49, 91%, 91%));--warning-text: var(--brn-sonner-toast-warning-color, hsl(31, 92%, 45%));--error-bg: var(--brn-sonner-toast-error-background, hsl(359, 100%, 97%));--error-border: var(--brn-sonner-toast-error-border, hsl(359, 100%, 94%));--error-text: var(--brn-sonner-toast-error-color, hsl(360, 100%, 45%))}[data-sonner-toaster][data-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg: var(--brn-sonner-toast-inverse-normal-background, #000);--normal-border: var(--brn-sonner-toast-inverse-normal-border-color, hsl(0, 0%, 20%));--normal-text: var(--brn-sonner-toast-inverse-normal-color, var(--gray1))}[data-sonner-toaster][data-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg: var(--brn-sonner-toast-inverse-dark-normal-background, #fff);--normal-border: var(--brn-sonner-toast-inverse-dark-normal-border-color, var(--gray3));--normal-text: var(--brn-sonner-toast-inverse-dark-normal-color, var(--gray12))}[data-sonner-toaster][data-theme=dark]{--normal-bg: var(--brn-sonner-toast-dark-normal-background, #000);--normal-border: var(--brn-sonner-toast-dark-normal-border-color, hsl(0, 0%, 20%));--normal-text: var(--brn-sonner-toast-dark-normal-color, var(--gray1));--success-bg: var(--brn-sonner-toast-dark-success-background, hsl(150, 100%, 6%));--success-border: var(--brn-sonner-toast-dark-success-border, hsl(147, 100%, 12%));--success-text: var(--brn-sonner-toast-dark-success-color, hsl(150, 86%, 65%));--info-bg: var(--brn-sonner-toast-dark-info-background, hsl(215, 100%, 6%));--info-border: var(--brn-sonner-toast-dark-info-border, hsl(223, 100%, 12%));--info-text: var(--brn-sonner-toast-dark-info-color, hsl(216, 87%, 65%));--warning-bg: var(--brn-sonner-toast-dark-warning-background, hsl(64, 100%, 6%));--warning-border: var(--brn-sonner-toast-dark-warning-border, hsl(60, 100%, 12%));--warning-text: var(--brn-sonner-toast-dark-warning-color, hsl(46, 87%, 65%));--error-bg: var(--brn-sonner-toast-dark-error-background, hsl(358, 76%, 10%));--error-border: var(--brn-sonner-toast-dark-error-border, hsl(357, 89%, 16%));--error-text: var(--brn-sonner-toast-dark-error-color, hsl(358, 100%, 81%))}[data-rich-colors=true] [data-sonner-toast][data-type=success],[data-rich-colors=true] [data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true] [data-sonner-toast][data-type=info],[data-rich-colors=true] [data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true] [data-sonner-toast][data-type=warning],[data-rich-colors=true] [data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true] [data-sonner-toast][data-type=error],[data-rich-colors=true] [data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size: 16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:nth-child(1){animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}to{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}to{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}to{opacity:.15}}@media(prefers-reduced-motion){[data-sonner-toast],[data-sonner-toast]>*,.sonner-loading-bar{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)}\n"], dependencies: [{ kind: "component", type: BrnSonnerToast, selector: "li[brnSonnerToast]", inputs: ["toast", "index", "expanded", "invert", "position", "visibleToasts", "expandByDefault", "closeButton", "interacting", "cancelButtonStyle", "actionButtonStyle", "duration", "descriptionClass", "classes", "unstyled", "class", "style", "actionTemplate", "cancelActionTemplate"], exportAs: ["brnSonnerToast"] }, { kind: "component", type: BrnSonnerIcon, selector: "brn-sonner-icon", inputs: ["type"], exportAs: ["brnSonnerIcon"] }, { kind: "component", type: BrnSonnerLoader, selector: "brn-sonner-loader", inputs: ["isVisible"], exportAs: ["brnSonnerLoader"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "pipe", type: ToastFilterPipe, name: "toastFilter" }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
1153
1117
|
}
|
|
1154
1118
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.16", ngImport: i0, type: BrnSonnerToaster, decorators: [{
|
|
1155
1119
|
type: Component,
|
|
@@ -1159,6 +1123,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.16", ngImpo
|
|
|
1159
1123
|
@for (pos of _possiblePositions(); track pos) {
|
|
1160
1124
|
<ol
|
|
1161
1125
|
#listRef
|
|
1126
|
+
role="list"
|
|
1162
1127
|
[tabIndex]="-1"
|
|
1163
1128
|
[class]="userClass()"
|
|
1164
1129
|
data-sonner-toaster
|
|
@@ -1177,7 +1142,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.16", ngImpo
|
|
|
1177
1142
|
(pointerup)="_interacting.set(false)"
|
|
1178
1143
|
>
|
|
1179
1144
|
@for (toast of _toasts() | toastFilter: $index : pos; track toast.id) {
|
|
1180
|
-
<
|
|
1145
|
+
<li
|
|
1146
|
+
brnSonnerToast
|
|
1181
1147
|
[index]="$index"
|
|
1182
1148
|
[toast]="toast"
|
|
1183
1149
|
[invert]="invert()"
|
|
@@ -1226,7 +1192,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.16", ngImpo
|
|
|
1226
1192
|
} @else {
|
|
1227
1193
|
<brn-sonner-icon type="info" info-icon />
|
|
1228
1194
|
}
|
|
1229
|
-
</
|
|
1195
|
+
</li>
|
|
1230
1196
|
}
|
|
1231
1197
|
</ol>
|
|
1232
1198
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"spartan-ng-brain-sonner.mjs","sources":["../../../../libs/brain/sonner/src/lib/brn-icon.ts","../../../../libs/brain/sonner/src/lib/brn-loader.ts","../../../../libs/brain/sonner/src/lib/brn-toaster.token.ts","../../../../libs/brain/sonner/src/lib/pipes/as-component.pipe.ts","../../../../libs/brain/sonner/src/lib/pipes/is-string.pipe.ts","../../../../libs/brain/sonner/src/lib/state.ts","../../../../libs/brain/sonner/src/lib/brn-toast.ts","../../../../libs/brain/sonner/src/lib/directives/brn-toast-action.ts","../../../../libs/brain/sonner/src/lib/directives/brn-toast-cancel-action.ts","../../../../libs/brain/sonner/src/lib/pipes/toast-filter.pipe.ts","../../../../libs/brain/sonner/src/lib/brn-toaster.ts","../../../../libs/brain/sonner/src/index.ts","../../../../libs/brain/sonner/src/spartan-ng-brain-sonner.ts"],"sourcesContent":["import { ChangeDetectionStrategy, Component, input } from '@angular/core';\nimport type { ToastTypes } from './types';\n\n@Component({\n\tselector: 'brn-sonner-icon',\n\texportAs: 'brnSonnerIcon',\n\tchangeDetection: ChangeDetectionStrategy.OnPush,\n\ttemplate: `\n\t\t@switch (type()) {\n\t\t\t@case ('success') {\n\t\t\t\t<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 20 20\" fill=\"currentColor\" height=\"20\" width=\"20\">\n\t\t\t\t\t<path\n\t\t\t\t\t\tfill-rule=\"evenodd\"\n\t\t\t\t\t\td=\"M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z\"\n\t\t\t\t\t\tclip-rule=\"evenodd\"\n\t\t\t\t\t/>\n\t\t\t\t</svg>\n\t\t\t}\n\t\t\t@case ('error') {\n\t\t\t\t<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 20 20\" fill=\"currentColor\" height=\"20\" width=\"20\">\n\t\t\t\t\t<path\n\t\t\t\t\t\tfill-rule=\"evenodd\"\n\t\t\t\t\t\td=\"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z\"\n\t\t\t\t\t\tclip-rule=\"evenodd\"\n\t\t\t\t\t/>\n\t\t\t\t</svg>\n\t\t\t}\n\t\t\t@case ('info') {\n\t\t\t\t<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 20 20\" fill=\"currentColor\" height=\"20\" width=\"20\">\n\t\t\t\t\t<path\n\t\t\t\t\t\tfill-rule=\"evenodd\"\n\t\t\t\t\t\td=\"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z\"\n\t\t\t\t\t\tclip-rule=\"evenodd\"\n\t\t\t\t\t/>\n\t\t\t\t</svg>\n\t\t\t}\n\t\t\t@case ('warning') {\n\t\t\t\t<svg viewBox=\"0 0 64 64\" fill=\"currentColor\" height=\"20\" width=\"20\" xmlns=\"http://www.w3.org/2000/svg\">\n\t\t\t\t\t<path\n\t\t\t\t\t\td=\"M32.427,7.987c2.183,0.124 4,1.165 5.096,3.281l17.936,36.208c1.739,3.66 -0.954,8.585 -5.373,8.656l-36.119,0c-4.022,-0.064 -7.322,-4.631 -5.352,-8.696l18.271,-36.207c0.342,-0.65 0.498,-0.838 0.793,-1.179c1.186,-1.375 2.483,-2.111 4.748,-2.063Zm-0.295,3.997c-0.687,0.034 -1.316,0.419 -1.659,1.017c-6.312,11.979 -12.397,24.081 -18.301,36.267c-0.546,1.225 0.391,2.797 1.762,2.863c12.06,0.195 24.125,0.195 36.185,0c1.325,-0.064 2.321,-1.584 1.769,-2.85c-5.793,-12.184 -11.765,-24.286 -17.966,-36.267c-0.366,-0.651 -0.903,-1.042 -1.79,-1.03Z\"\n\t\t\t\t\t/>\n\t\t\t\t\t<path\n\t\t\t\t\t\td=\"M33.631,40.581l-3.348,0l-0.368,-16.449l4.1,0l-0.384,16.449Zm-3.828,5.03c0,-0.609 0.197,-1.113 0.592,-1.514c0.396,-0.4 0.935,-0.601 1.618,-0.601c0.684,0 1.223,0.201 1.618,0.601c0.395,0.401 0.593,0.905 0.593,1.514c0,0.587 -0.193,1.078 -0.577,1.473c-0.385,0.395 -0.929,0.593 -1.634,0.593c-0.705,0 -1.249,-0.198 -1.634,-0.593c-0.384,-0.395 -0.576,-0.886 -0.576,-1.473Z\"\n\t\t\t\t\t/>\n\t\t\t\t</svg>\n\t\t\t}\n\t\t}\n\t`,\n})\nexport class BrnSonnerIcon {\n\tpublic readonly type = input<ToastTypes>('default');\n}\n","import type { BooleanInput } from '@angular/cdk/coercion';\nimport { booleanAttribute, ChangeDetectionStrategy, Component, input } from '@angular/core';\n\n@Component({\n\tselector: 'brn-sonner-loader',\n\texportAs: 'brnSonnerLoader',\n\tchangeDetection: ChangeDetectionStrategy.OnPush,\n\ttemplate: `\n\t\t<div class=\"sonner-loading-wrapper\" [attr.data-visible]=\"isVisible()\">\n\t\t\t<div class=\"sonner-spinner\">\n\t\t\t\t@for (_ of _bars; track $index) {\n\t\t\t\t\t<div class=\"sonner-loading-bar\"></div>\n\t\t\t\t}\n\t\t\t</div>\n\t\t</div>\n\t`,\n})\nexport class BrnSonnerLoader {\n\tpublic readonly isVisible = input.required<boolean, BooleanInput>({ transform: booleanAttribute });\n\tprotected readonly _bars = Array(12).fill(0);\n}\n","import { inject, InjectionToken, type ValueProvider } from '@angular/core';\nimport type { ToastClassnames } from './types';\n\nexport interface BrnSonnerToasterConfig {\n\t/** The maximum number of toasts visible at once */\n\tvisibleToastsAmount: number;\n\t/** The offset from the viewport for the toast container */\n\tviewPortOffset: string;\n\t/** The default lifetime of a toast in milliseconds */\n\ttoastLifetime: number;\n\t/** The width of the toast in pixels */\n\ttoastWidth: number;\n\t/** The gap between toasts in pixels */\n\tgap: number;\n\t/** The threshold in pixels for swipe to dismiss a toast */\n\tswipeThreshold: number;\n\t/** The time in milliseconds before a toast is unmounted */\n\ttimeBeforeUnmount: number;\n}\n\nconst defaultConfig: BrnSonnerToasterConfig = {\n\tvisibleToastsAmount: 3,\n\tviewPortOffset: '32px',\n\ttoastLifetime: 4000,\n\ttoastWidth: 356,\n\tgap: 14,\n\tswipeThreshold: 20,\n\ttimeBeforeUnmount: 200,\n};\n\nconst BrnSonnerToasterConfigToken = new InjectionToken<BrnSonnerToasterConfig>('BrnSonnerToasterConfig');\n\nexport function provideBrnSonnerToasterConfig(config: Partial<BrnSonnerToasterConfig>): ValueProvider {\n\treturn { provide: BrnSonnerToasterConfigToken, useValue: { ...defaultConfig, ...config } };\n}\n\nexport function injectBrnSonnerToasterConfig(): BrnSonnerToasterConfig {\n\treturn inject(BrnSonnerToasterConfigToken, { optional: true }) ?? defaultConfig;\n}\n\nexport const defaultClasses: ToastClassnames = {\n\ttoast: '',\n\ttitle: '',\n\tdescription: '',\n\tloader: '',\n\tcloseButton: '',\n\tcancelButton: '',\n\tactionButton: '',\n\taction: '',\n\twarning: '',\n\terror: '',\n\tsuccess: '',\n\tdefault: '',\n\tinfo: '',\n\tloading: '',\n};\n","import { Pipe, PipeTransform, Type } from '@angular/core';\n\n@Pipe({ name: 'asComponent' })\nexport class AsComponentPipe implements PipeTransform {\n\ttransform(value: unknown): Type<unknown> {\n\t\treturn value as Type<unknown>;\n\t}\n}\n","import { Pipe, PipeTransform } from '@angular/core';\n\n@Pipe({ name: 'isString' })\nexport class IsStringPipe implements PipeTransform {\n\ttransform(value: unknown): boolean {\n\t\treturn typeof value === 'string';\n\t}\n}\n","import { signal, type Type } from '@angular/core';\nimport type { ExternalToast, HeightT, PromiseData, PromiseT, ToastT, ToastTypes } from './types';\n\nlet toastsCounter = 0;\n\nfunction createToastState() {\n\tconst toasts = signal<ToastT[]>([]);\n\tconst heights = signal<HeightT[]>([]);\n\n\tfunction addToast(data: ToastT) {\n\t\ttoasts.update((prev) => [data, ...prev]);\n\t}\n\n\tfunction create(\n\t\tdata: ExternalToast & {\n\t\t\tmessage?: string | Type<unknown>;\n\t\t\ttype?: ToastTypes;\n\t\t\tpromise?: PromiseT;\n\t\t},\n\t) {\n\t\tconst { message, ...rest } = data;\n\t\tconst id = typeof data?.id === 'number' || (data.id && data.id?.length > 0) ? data.id : toastsCounter++;\n\n\t\tconst dismissible = data.dismissible ?? true;\n\t\tconst type = data.type ?? 'default';\n\n\t\tconst alreadyExists = toasts().find((toast) => toast.id === id);\n\n\t\tif (alreadyExists) {\n\t\t\ttoasts.update((prev) =>\n\t\t\t\tprev.map((toast) => {\n\t\t\t\t\tif (toast.id === id) {\n\t\t\t\t\t\treturn {\n\t\t\t\t\t\t\t...toast,\n\t\t\t\t\t\t\t...data,\n\t\t\t\t\t\t\tid,\n\t\t\t\t\t\t\ttitle: message,\n\t\t\t\t\t\t\tdismissible,\n\t\t\t\t\t\t\ttype,\n\t\t\t\t\t\t\tupdated: true,\n\t\t\t\t\t\t};\n\t\t\t\t\t} else return { ...toast, updated: false };\n\t\t\t\t}),\n\t\t\t);\n\t\t} else {\n\t\t\taddToast({ ...rest, id, title: message, dismissible: dismissible, type });\n\t\t}\n\n\t\treturn id;\n\t}\n\n\tfunction dismiss(id?: number | string) {\n\t\tif (id === undefined) {\n\t\t\ttoasts.set([]);\n\t\t\treturn;\n\t\t}\n\t\ttoasts.update((prev) => prev.filter((toast) => toast.id !== id));\n\n\t\treturn id;\n\t}\n\n\tfunction message(message: string | Type<unknown>, data?: ExternalToast) {\n\t\treturn create({ ...data, type: 'default', message });\n\t}\n\n\tfunction error(message: string | Type<unknown>, data?: ExternalToast) {\n\t\treturn create({ ...data, type: 'error', message });\n\t}\n\n\tfunction success(message: string | Type<unknown>, data?: ExternalToast) {\n\t\treturn create({ ...data, type: 'success', message });\n\t}\n\n\tfunction info(message: string | Type<unknown>, data?: ExternalToast) {\n\t\treturn create({ ...data, type: 'info', message });\n\t}\n\n\tfunction warning(message: string | Type<unknown>, data?: ExternalToast) {\n\t\treturn create({ ...data, type: 'warning', message });\n\t}\n\n\tfunction loading(message: string | Type<unknown>, data?: ExternalToast) {\n\t\treturn create({ ...data, type: 'loading', message });\n\t}\n\n\tfunction promise<ToastData>(promise: PromiseT<ToastData>, data?: PromiseData<ToastData>) {\n\t\tif (!data) return;\n\n\t\tlet id: string | number | undefined = undefined;\n\t\tif (data.loading !== undefined) {\n\t\t\tid = create({\n\t\t\t\t...data,\n\t\t\t\tpromise,\n\t\t\t\ttype: 'loading',\n\t\t\t\tmessage: data.loading,\n\t\t\t});\n\t\t}\n\n\t\tconst p = promise instanceof Promise ? promise : promise();\n\n\t\tlet shouldDismiss = id !== undefined;\n\n\t\tp.then((response) => {\n\t\t\t// @ts-expect-error: Incorrect response type\n\t\t\tif (response && typeof response.ok === 'boolean' && !response.ok) {\n\t\t\t\tshouldDismiss = false;\n\n\t\t\t\tconst message =\n\t\t\t\t\ttypeof data.error === 'function'\n\t\t\t\t\t\t? // @ts-expect-error: TODO: Better function checking\n\t\t\t\t\t\t\tdata.error(`HTTP error! status: ${response.status}`)\n\t\t\t\t\t\t: data.error;\n\t\t\t\tcreate({ id, type: 'error', message });\n\t\t\t} else if (data.success !== undefined) {\n\t\t\t\tshouldDismiss = false;\n\n\t\t\t\tconst message =\n\t\t\t\t\ttypeof data.success === 'function'\n\t\t\t\t\t\t? // @ts-expect-error: TODO: Better function checking\n\t\t\t\t\t\t\tdata.success(response)\n\t\t\t\t\t\t: data.success;\n\t\t\t\tcreate({ id, type: 'success', message });\n\t\t\t}\n\t\t})\n\t\t\t.catch((error) => {\n\t\t\t\tif (data.error !== undefined) {\n\t\t\t\t\tshouldDismiss = false;\n\t\t\t\t\tconst message =\n\t\t\t\t\t\t// @ts-expect-error: TODO: Better function checking\n\t\t\t\t\t\ttypeof data.error === 'function' ? data.error(error) : data.error;\n\t\t\t\t\tcreate({ id, type: 'error', message });\n\t\t\t\t}\n\t\t\t})\n\t\t\t.finally(() => {\n\t\t\t\tif (shouldDismiss) {\n\t\t\t\t\t// Toast is still in load state (and will be indefinitely — dismiss it)\n\t\t\t\t\tdismiss(id);\n\t\t\t\t\tid = undefined;\n\t\t\t\t}\n\n\t\t\t\tdata.finally?.();\n\t\t\t});\n\n\t\treturn id;\n\t}\n\n\tfunction custom<T>(component: Type<T>, data?: ExternalToast) {\n\t\tconst id = data?.id ?? toastsCounter++;\n\t\tcreate({ component, id, ...data });\n\n\t\treturn id;\n\t}\n\n\tfunction removeHeight(id: number | string) {\n\t\theights.update((prev) => prev.filter((height) => height.toastId !== id));\n\t}\n\n\tfunction addHeight(height: HeightT) {\n\t\theights.update((prev) => [height, ...prev].sort(sortHeights));\n\t}\n\n\tconst sortHeights = (a: HeightT, b: HeightT) =>\n\t\ttoasts().findIndex((t) => t.id === a.toastId) - toasts().findIndex((t) => t.id === b.toastId);\n\n\tfunction reset() {\n\t\ttoasts.set([]);\n\t\theights.set([]);\n\t}\n\n\treturn {\n\t\t//methods\n\t\tcreate,\n\t\taddToast,\n\t\tdismiss,\n\t\tmessage,\n\t\terror,\n\t\tsuccess,\n\t\tinfo,\n\t\twarning,\n\t\tloading,\n\t\tpromise,\n\t\tcustom,\n\t\tremoveHeight,\n\t\taddHeight,\n\t\treset,\n\t\t// signals\n\t\ttoasts: toasts.asReadonly(),\n\t\theights: heights.asReadonly(),\n\t};\n}\n\nexport const toastState = createToastState();\n\n// bind this to the toast function\nfunction toastFunction(message: string | Type<unknown>, data?: ExternalToast) {\n\treturn toastState.create({\n\t\tmessage,\n\t\t...data,\n\t});\n}\n\nconst basicToast = toastFunction;\n\nexport const toast = Object.assign(basicToast, {\n\tsuccess: toastState.success,\n\tinfo: toastState.info,\n\twarning: toastState.warning,\n\terror: toastState.error,\n\tcustom: toastState.custom,\n\tmessage: toastState.message,\n\tpromise: toastState.promise,\n\tdismiss: toastState.dismiss,\n\tloading: toastState.loading,\n});\n","import { NgComponentOutlet, NgTemplateOutlet } from '@angular/common';\nimport {\n\tafterRenderEffect,\n\ttype AfterViewInit,\n\tChangeDetectionStrategy,\n\tComponent,\n\tcomputed,\n\teffect,\n\tElementRef,\n\tinput,\n\tlinkedSignal,\n\ttype OnDestroy,\n\tsignal,\n\tviewChild,\n} from '@angular/core';\nimport clsx from 'clsx';\nimport { defaultClasses, injectBrnSonnerToasterConfig } from './brn-toaster.token';\nimport { BrnToastAction } from './directives/brn-toast-action';\nimport { BrnToastCancelAction } from './directives/brn-toast-cancel-action';\nimport { AsComponentPipe } from './pipes/as-component.pipe';\nimport { IsStringPipe } from './pipes/is-string.pipe';\nimport { toastState } from './state';\nimport type { ToastAction, ToastProps, ToastT } from './types';\n\n@Component({\n\tselector: 'brn-sonner-toast',\n\texportAs: 'brnSonnerToast',\n\timports: [NgComponentOutlet, IsStringPipe, AsComponentPipe, NgTemplateOutlet],\n\tchangeDetection: ChangeDetectionStrategy.OnPush,\n\ttemplate: `\n\t\t<li\n\t\t\t#toastRef\n\t\t\tdata-sonner-toast\n\t\t\t[attr.aria-live]=\"toast().important ? 'assertive' : 'polite'\"\n\t\t\taria-atomic=\"true\"\n\t\t\trole=\"status\"\n\t\t\ttabindex=\"0\"\n\t\t\t[class]=\"_toastClasses()\"\n\t\t\t[attr.data-styled]=\"!(toast().component || toast().unstyled || unstyled())\"\n\t\t\t[attr.data-mounted]=\"_mounted()\"\n\t\t\t[attr.data-promise]=\"!!toast().promise\"\n\t\t\t[attr.data-removed]=\"_removed()\"\n\t\t\t[attr.data-visible]=\"_isVisible()\"\n\t\t\t[attr.data-y-position]=\"_coords()[0]\"\n\t\t\t[attr.data-x-position]=\"_coords()[1]\"\n\t\t\t[attr.data-index]=\"index()\"\n\t\t\t[attr.data-front]=\"_isFront()\"\n\t\t\t[attr.data-swiping]=\"_swiping()\"\n\t\t\t[attr.data-dismissible]=\"toast().dismissible\"\n\t\t\t[attr.data-type]=\"_toastType()\"\n\t\t\t[attr.data-invert]=\"_invert()\"\n\t\t\t[attr.data-swipe-out]=\"_swipeOut()\"\n\t\t\t[attr.data-expanded]=\"expanded() || (expandByDefault() && _mounted())\"\n\t\t\t[attr.data-testid]=\"toast().testId\"\n\t\t\t[style]=\"_toastStyle()\"\n\t\t\t(pointerdown)=\"onPointerDown($event)\"\n\t\t\t(pointerup)=\"onPointerUp()\"\n\t\t\t(pointermove)=\"onPointerMove($event)\"\n\t\t>\n\t\t\t@if (_closeButton() && !toast().component) {\n\t\t\t\t<button\n\t\t\t\t\taria-label=\"Close toast\"\n\t\t\t\t\t[attr.data-disabled]=\"_disabled()\"\n\t\t\t\t\tdata-close-button\n\t\t\t\t\t(click)=\"onCloseButtonClick()\"\n\t\t\t\t\t[class]=\"_closeButtonClasses()\"\n\t\t\t\t>\n\t\t\t\t\t<svg\n\t\t\t\t\t\txmlns=\"http://www.w3.org/2000/svg\"\n\t\t\t\t\t\twidth=\"12\"\n\t\t\t\t\t\theight=\"12\"\n\t\t\t\t\t\tviewBox=\"0 0 24 24\"\n\t\t\t\t\t\tfill=\"none\"\n\t\t\t\t\t\tstroke=\"currentColor\"\n\t\t\t\t\t\tstroke-width=\"1.5\"\n\t\t\t\t\t\tstroke-linecap=\"round\"\n\t\t\t\t\t\tstroke-linejoin=\"round\"\n\t\t\t\t\t>\n\t\t\t\t\t\t<line x1=\"18\" y1=\"6\" x2=\"6\" y2=\"18\" />\n\t\t\t\t\t\t<line x1=\"6\" y1=\"6\" x2=\"18\" y2=\"18\" />\n\t\t\t\t\t</svg>\n\t\t\t\t</button>\n\t\t\t}\n\n\t\t\t@if (toast().component) {\n\t\t\t\t<ng-container *ngComponentOutlet=\"toast().component | asComponent; inputs: toast().componentProps\" />\n\t\t\t} @else {\n\t\t\t\t@if (_toastType() !== 'default' || toast().icon || toast().promise) {\n\t\t\t\t\t<div data-icon>\n\t\t\t\t\t\t@if (_toastType() === 'loading' && !toast().icon) {\n\t\t\t\t\t\t\t<ng-content select=\"[loading-icon]\" />\n\t\t\t\t\t\t}\n\t\t\t\t\t\t@if (toast().icon) {\n\t\t\t\t\t\t\t<ng-container *ngComponentOutlet=\"toast().icon | asComponent; inputs: toast().componentProps\" />\n\t\t\t\t\t\t} @else {\n\t\t\t\t\t\t\t@switch (_toastType()) {\n\t\t\t\t\t\t\t\t@case ('success') {\n\t\t\t\t\t\t\t\t\t<ng-content select=\"[success-icon]\" />\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t@case ('error') {\n\t\t\t\t\t\t\t\t\t<ng-content select=\"[error-icon]\" />\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t@case ('warning') {\n\t\t\t\t\t\t\t\t\t<ng-content select=\"[warning-icon]\" />\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t@case ('info') {\n\t\t\t\t\t\t\t\t\t<ng-content select=\"[info-icon]\" />\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t</div>\n\t\t\t\t}\n\t\t\t\t<div data-content>\n\t\t\t\t\t@if (toast().title; as title) {\n\t\t\t\t\t\t<div data-title [class]=\"_titleClasses()\">\n\t\t\t\t\t\t\t@if (title | isString) {\n\t\t\t\t\t\t\t\t{{ toast().title }}\n\t\t\t\t\t\t\t} @else {\n\t\t\t\t\t\t\t\t<ng-container *ngComponentOutlet=\"title | asComponent; inputs: toast().componentProps\" />\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t</div>\n\t\t\t\t\t}\n\t\t\t\t\t@if (toast().description; as description) {\n\t\t\t\t\t\t<div data-description [class]=\"_toastDescriptionClasses()\">\n\t\t\t\t\t\t\t@if (description | isString) {\n\t\t\t\t\t\t\t\t{{ toast().description }}\n\t\t\t\t\t\t\t} @else {\n\t\t\t\t\t\t\t\t<ng-container *ngComponentOutlet=\"description | asComponent; inputs: toast().componentProps\" />\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t</div>\n\t\t\t\t\t}\n\t\t\t\t</div>\n\t\t\t\t@if (toast().cancel; as cancel) {\n\t\t\t\t\t@if (cancelActionTemplate(); as cancelAction) {\n\t\t\t\t\t\t<ng-container\n\t\t\t\t\t\t\t*ngTemplateOutlet=\"\n\t\t\t\t\t\t\t\tcancelAction.templateRef;\n\t\t\t\t\t\t\t\tcontext: { $implicit: _wrappedCancelAction(), toast: toast() }\n\t\t\t\t\t\t\t\"\n\t\t\t\t\t\t/>\n\t\t\t\t\t} @else {\n\t\t\t\t\t\t<button\n\t\t\t\t\t\t\tdata-button\n\t\t\t\t\t\t\tdata-cancel\n\t\t\t\t\t\t\t[style]=\"cancelButtonStyle() ?? toast().cancelButtonStyle\"\n\t\t\t\t\t\t\t[class]=\"_cancelButtonClasses()\"\n\t\t\t\t\t\t\t(click)=\"onCancelClick($event)\"\n\t\t\t\t\t\t>\n\t\t\t\t\t\t\t{{ cancel.label }}\n\t\t\t\t\t\t</button>\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t@if (toast().action; as action) {\n\t\t\t\t\t@if (actionTemplate(); as actionTemplate) {\n\t\t\t\t\t\t<ng-container\n\t\t\t\t\t\t\t*ngTemplateOutlet=\"actionTemplate.templateRef; context: { $implicit: _wrappedAction(), toast: toast() }\"\n\t\t\t\t\t\t/>\n\t\t\t\t\t} @else {\n\t\t\t\t\t\t<button\n\t\t\t\t\t\t\tdata-button\n\t\t\t\t\t\t\t[style]=\"actionButtonStyle() ?? toast().actionButtonStyle\"\n\t\t\t\t\t\t\t[class]=\"_actionButtonClasses()\"\n\t\t\t\t\t\t\t(click)=\"onActionClick($event)\"\n\t\t\t\t\t\t>\n\t\t\t\t\t\t\t{{ action.label }}\n\t\t\t\t\t\t</button>\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t</li>\n\t`,\n})\nexport class BrnSonnerToast implements AfterViewInit, OnDestroy {\n\tprivate readonly _config = injectBrnSonnerToasterConfig();\n\n\tprotected readonly _toasts = computed(() => toastState.toasts().filter((t) => t.position === this.position()));\n\tprotected readonly _heights = computed(() => toastState.heights().filter((h) => h.position === this.position()));\n\tprotected readonly _removeHeight = toastState.removeHeight;\n\tprotected readonly _addHeight = toastState.addHeight;\n\tprotected readonly _dismiss = toastState.dismiss;\n\n\tpublic readonly toast = input.required<ToastProps['toast']>();\n\tpublic readonly index = input.required<ToastProps['index']>();\n\tpublic readonly expanded = input.required<ToastProps['expanded']>();\n\tpublic readonly invert = input.required<ToastProps['invert']>();\n\tpublic readonly position = input.required<ToastProps['position']>();\n\tpublic readonly visibleToasts = input.required<ToastProps['visibleToasts']>();\n\tpublic readonly expandByDefault = input.required<ToastProps['expandByDefault']>();\n\tpublic readonly closeButton = input.required<ToastProps['closeButton']>();\n\tpublic readonly interacting = input.required<ToastProps['interacting']>();\n\tpublic readonly cancelButtonStyle = input<ToastProps['cancelButtonStyle']>();\n\tpublic readonly actionButtonStyle = input<ToastProps['actionButtonStyle']>();\n\tpublic readonly duration = input<ToastProps['duration']>(this._config.toastLifetime);\n\tpublic readonly descriptionClass = input<ToastProps['descriptionClass']>('');\n\tpublic readonly classes = input<ToastProps['classes']>({});\n\tpublic readonly unstyled = input<ToastProps['unstyled']>(false);\n\tpublic readonly userClass = input('', { alias: 'class' });\n\tpublic readonly style = input<Record<string, string>>({});\n\tpublic readonly actionTemplate = input<BrnToastAction>();\n\tpublic readonly cancelActionTemplate = input<BrnToastCancelAction>();\n\n\tprotected readonly _wrappedAction = computed<ToastAction | null>(() => {\n\t\tconst action = this.toast().action;\n\t\treturn action ? this.wrapAction(action) : null;\n\t});\n\tprotected readonly _wrappedCancelAction = computed<ToastAction | null>(() => {\n\t\tconst cancelAction = this.toast().cancel;\n\t\treturn cancelAction ? this.wrapCancelAction(cancelAction) : null;\n\t});\n\n\tprotected readonly _mounted = signal(false);\n\tprotected readonly _removed = signal(false);\n\tprotected readonly _swiping = signal(false);\n\tprotected readonly _swipeOut = signal(false);\n\tprivate readonly _offsetBeforeRemove = signal(0);\n\tprivate readonly _initialHeight = signal(0);\n\n\tprivate readonly _toastRef = viewChild.required<ElementRef<HTMLLIElement>>('toastRef');\n\n\tprotected readonly _classes = computed(() => ({\n\t\t...defaultClasses,\n\t\t...this.classes(),\n\t}));\n\n\tprotected readonly _isFront = computed(() => this.index() === 0);\n\tprotected readonly _isVisible = computed(() => this.index() + 1 <= this.visibleToasts());\n\tprotected readonly _toastType = computed(() => this.toast().type ?? 'default');\n\tprivate readonly _toastClass = computed(() => this.toast().class ?? '');\n\tprivate readonly _toastPosition = computed(() => this.toast().position ?? this.position());\n\tprotected readonly _toastDescriptionClass = computed(() => this.toast().descriptionClass ?? '');\n\n\tprivate readonly _heightIndex = computed(() =>\n\t\tthis._heights().findIndex((height) => height.toastId === this.toast().id),\n\t);\n\n\tprivate readonly _offset = linkedSignal({\n\t\tsource: () => ({\n\t\t\theightIndex: this._heightIndex(),\n\t\t\ttoastsHeightBefore: this._toastsHeightBefore(),\n\t\t}),\n\t\tcomputation: ({ heightIndex, toastsHeightBefore }) =>\n\t\t\tMath.round(heightIndex * this._config.gap + toastsHeightBefore),\n\t});\n\n\tprivate _closeTimerStartTimeRef = 0;\n\tprivate _lastCloseTimerStartTimeRef = 0;\n\tprivate _pointerStartRef: { x: number; y: number } | null = null;\n\n\tprotected readonly _coords = computed(() => this._toastPosition().split('-'));\n\tprivate readonly _toastsHeightBefore = computed(() =>\n\t\tthis._heights().reduce((prev, curr, reducerIndex) => {\n\t\t\tif (reducerIndex >= this._heightIndex()) return prev;\n\t\t\treturn prev + curr.height;\n\t\t}, 0),\n\t);\n\tprotected readonly _invert = computed(() => this.toast().invert ?? this.invert());\n\tprotected readonly _closeButton = computed(() => this.toast().closeButton ?? this.closeButton());\n\tprotected readonly _disabled = computed(() => this._toastType() === 'loading');\n\n\tprivate _timeoutId: ReturnType<typeof setTimeout> | undefined;\n\tprivate _remainingTime = 0;\n\n\tprivate readonly _isPromiseLoadingOrInfiniteDuration = computed(\n\t\t() =>\n\t\t\t(this.toast().promise && this._toastType() === 'loading') || this.toast().duration === Number.POSITIVE_INFINITY,\n\t);\n\n\tprotected readonly _toastClasses = computed(() =>\n\t\tclsx(\n\t\t\tthis.userClass(),\n\t\t\tthis._toastClass(),\n\t\t\tthis._classes().toast,\n\t\t\tthis.toast().classes?.toast,\n\t\t\tthis._classes()[this._toastType()],\n\t\t\tthis.toast().classes?.[this._toastType()],\n\t\t),\n\t);\n\tprotected readonly _toastStyle = computed(() => ({\n\t\t'--index': `${this.index()}`,\n\t\t'--toasts-before': `${this.index()}`,\n\t\t'--z-index': `${this._toasts().length - this.index()}`,\n\t\t'--offset': `${this._removed() ? this._offsetBeforeRemove() : this._offset()}px`,\n\t\t'--initial-height': this.expandByDefault() ? 'auto' : `${this._initialHeight()}px`,\n\t\t...this.style(),\n\t}));\n\tprotected readonly _actionButtonClasses = computed(() =>\n\t\tclsx(this._classes().actionButton, this.toast().classes?.actionButton),\n\t);\n\tprotected readonly _cancelButtonClasses = computed(() =>\n\t\tclsx(this._classes().cancelButton, this.toast().classes?.cancelButton),\n\t);\n\tprotected readonly _toastDescriptionClasses = computed(() =>\n\t\tclsx(\n\t\t\tthis.descriptionClass(),\n\t\t\tthis._toastDescriptionClass(),\n\t\t\tthis._classes().description,\n\t\t\tthis.toast().classes?.description,\n\t\t),\n\t);\n\tprotected readonly _titleClasses = computed(() => clsx(this._classes().title, this.toast().classes?.title));\n\tprotected readonly _closeButtonClasses = computed(() =>\n\t\tclsx(this._classes().closeButton, this.toast().classes?.closeButton),\n\t);\n\n\tconstructor() {\n\t\teffect(() => {\n\t\t\tif (this.toast().updated) {\n\t\t\t\t// if the toast has been updated after the initial render,\n\t\t\t\t// we want to reset the timer and set the remaining time to the\n\t\t\t\t// new duration\n\t\t\t\tclearTimeout(this._timeoutId);\n\t\t\t\tthis._remainingTime = this.toast().duration ?? this.duration() ?? this._config.toastLifetime;\n\t\t\t\tthis.startTimer();\n\t\t\t}\n\t\t});\n\n\t\tafterRenderEffect((onCleanup) => {\n\t\t\tif (!this._isPromiseLoadingOrInfiniteDuration()) {\n\t\t\t\tif (this.expanded() || this.interacting()) {\n\t\t\t\t\tthis.pauseTimer();\n\t\t\t\t} else {\n\t\t\t\t\tthis.startTimer();\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tonCleanup(() => clearTimeout(this._timeoutId));\n\t\t});\n\n\t\teffect(() => {\n\t\t\tif (this.toast().delete) {\n\t\t\t\tthis.deleteToast();\n\t\t\t}\n\t\t});\n\t}\n\n\tngAfterViewInit() {\n\t\tthis._remainingTime = this.toast().duration ?? this.duration() ?? this._config.toastLifetime;\n\t\tthis._mounted.set(true);\n\t\tconst height = this._toastRef().nativeElement.getBoundingClientRect().height;\n\t\tthis._initialHeight.set(height);\n\t\tthis._addHeight({ toastId: this.toast().id, height, position: this._toastPosition() });\n\t}\n\n\tngOnDestroy() {\n\t\tclearTimeout(this._timeoutId);\n\t\tthis._removeHeight(this.toast().id);\n\t}\n\n\tdeleteToast() {\n\t\tthis._removed.set(true);\n\t\tthis._offsetBeforeRemove.set(this._offset());\n\n\t\tthis._removeHeight(this.toast().id);\n\n\t\tsetTimeout(() => {\n\t\t\tthis._dismiss(this.toast().id);\n\t\t}, this._config.timeBeforeUnmount);\n\t}\n\n\t// If toast's duration changes, it will be out of sync with the\n\t// remainingAtTimeout, so we know we need to restart the timer\n\t// with the new duration\n\n\t// Pause the timer on each hover\n\tpauseTimer() {\n\t\tif (this._lastCloseTimerStartTimeRef < this._closeTimerStartTimeRef) {\n\t\t\t// Get the elapsed time since the timer started\n\t\t\tconst elapsedTime = new Date().getTime() - this._closeTimerStartTimeRef;\n\t\t\tthis._remainingTime = this._remainingTime - elapsedTime;\n\t\t}\n\n\t\tthis._lastCloseTimerStartTimeRef = new Date().getTime();\n\t}\n\n\tstartTimer() {\n\t\tthis._closeTimerStartTimeRef = new Date().getTime();\n\t\t// Let the toast know it has started\n\t\tthis._timeoutId = setTimeout(() => {\n\t\t\tthis.toast().onAutoClose?.(this.toast());\n\t\t\tthis.deleteToast();\n\t\t}, this._remainingTime);\n\t}\n\n\tonPointerDown(event: PointerEvent) {\n\t\tif (this._disabled() || !this.toast().dismissible) return;\n\n\t\tthis._offsetBeforeRemove.set(this._offset());\n\t\tconst target = event.target as HTMLElement;\n\t\t// Ensure we maintain correct pointer capture even when going outside the toast (e.g. when swiping)\n\t\ttarget.setPointerCapture(event.pointerId);\n\t\tif (target.tagName === 'BUTTON') {\n\t\t\treturn;\n\t\t}\n\t\tthis._swiping.set(true);\n\t\tthis._pointerStartRef = { x: event.clientX, y: event.clientY };\n\t}\n\n\tonPointerUp() {\n\t\tif (this._swipeOut() || !this.toast().dismissible) return;\n\n\t\tthis._pointerStartRef = null;\n\t\tconst swipeAmount = Number(\n\t\t\tthis._toastRef().nativeElement.style.getPropertyValue('--swipe-amount').replace('px', '') || 0,\n\t\t);\n\n\t\t// Remove only if threshold is met\n\t\tif (Math.abs(swipeAmount) >= this._config.swipeThreshold) {\n\t\t\tthis._offsetBeforeRemove.set(this._offset());\n\t\t\tthis.toast().onDismiss?.(this.toast());\n\t\t\tthis.deleteToast();\n\t\t\tthis._swipeOut.set(true);\n\t\t\treturn;\n\t\t}\n\n\t\tthis._toastRef().nativeElement.style.setProperty('--swipe-amount', '0px');\n\t\tthis._swiping.set(false);\n\t}\n\n\tonPointerMove(event: PointerEvent) {\n\t\tif (!this._pointerStartRef || !this.toast().dismissible) return;\n\n\t\tconst yPosition = event.clientY - this._pointerStartRef.y;\n\t\tconst xPosition = event.clientX - this._pointerStartRef.x;\n\n\t\tconst clamp = this._coords()[0] === 'top' ? Math.min : Math.max;\n\t\tconst clampedY = clamp(0, yPosition);\n\t\tconst swipeStartThreshold = event.pointerType === 'touch' ? 10 : 2;\n\t\tconst isAllowedToSwipe = Math.abs(clampedY) > swipeStartThreshold;\n\n\t\tif (isAllowedToSwipe) {\n\t\t\tthis._toastRef().nativeElement.style.setProperty('--swipe-amount', `${yPosition}px`);\n\t\t} else if (Math.abs(xPosition) > swipeStartThreshold) {\n\t\t\t// User is swiping in wrong direction, so we disable swipe gesture\n\t\t\t// for the current pointer down interaction\n\t\t\tthis._pointerStartRef = null;\n\t\t}\n\t}\n\n\tonCloseButtonClick() {\n\t\tif (this._disabled() || !this.toast().dismissible) return;\n\t\tthis.deleteToast();\n\t\tthis.toast().onDismiss?.(this.toast());\n\t}\n\n\tonCancelClick(event: MouseEvent) {\n\t\tconst toast = this.toast();\n\t\tif (!toast.dismissible) return;\n\t\tthis.deleteToast();\n\t\ttoast.cancel?.onClick?.(event);\n\t}\n\n\tonActionClick(event: MouseEvent) {\n\t\tconst toast = this.toast();\n\t\ttoast.action?.onClick?.(event);\n\t\tif (event.defaultPrevented) return;\n\t\tthis.deleteToast();\n\t}\n\n\twrapAction(source: NonNullable<ToastT['action']>): ToastAction {\n\t\treturn {\n\t\t\t...source,\n\t\t\tonClick: (event: MouseEvent) => {\n\t\t\t\tthis.onActionClick(event);\n\t\t\t},\n\t\t};\n\t}\n\n\twrapCancelAction(source: NonNullable<ToastT['cancel']>): ToastAction {\n\t\treturn {\n\t\t\t...source,\n\t\t\tonClick: (event: MouseEvent) => {\n\t\t\t\tthis.onCancelClick(event);\n\t\t\t},\n\t\t};\n\t}\n}\n","import { Directive, inject, TemplateRef } from '@angular/core';\nimport { ToastActionTemplateContext } from '../types';\n\n/**\n * Utils directory to typecheck the context of the templateRef\n * {@link ToastActionTemplateContext} context for content\n */\n@Directive({\n\tselector: '[brnToastAction]',\n\texportAs: 'toastAction',\n})\nexport class BrnToastAction {\n\tpublic readonly templateRef = inject<TemplateRef<ToastActionTemplateContext>>(TemplateRef);\n\tstatic ngTemplateContextGuard(_directive: BrnToastAction, context: unknown): context is ToastActionTemplateContext {\n\t\treturn true;\n\t}\n}\n","import { Directive, inject, TemplateRef } from '@angular/core';\nimport { ToastActionTemplateContext } from '../types';\n\n/**\n * Utils directory to typecheck the context of the templateRef\n * {@link ToastActionTemplateContext} context for content\n */\n@Directive({\n\tselector: '[brnToastCancelAction]',\n\texportAs: 'toastCancelAction',\n})\nexport class BrnToastCancelAction {\n\tpublic readonly templateRef = inject<TemplateRef<ToastActionTemplateContext>>(TemplateRef);\n\tstatic ngTemplateContextGuard(\n\t\t_directive: BrnToastCancelAction,\n\t\tcontext: unknown,\n\t): context is ToastActionTemplateContext {\n\t\treturn true;\n\t}\n}\n","import { Pipe, PipeTransform } from '@angular/core';\nimport { Position, ToastT } from '../types';\n\n@Pipe({ name: 'toastFilter' })\nexport class ToastFilterPipe implements PipeTransform {\n\ttransform(toasts: ToastT[], index: number, position: Position): ToastT[] {\n\t\treturn toasts.filter((toast) => (!toast.position && index === 0) || toast.position === position);\n\t}\n}\n","import { Directionality } from '@angular/cdk/bidi';\nimport type { BooleanInput, NumberInput } from '@angular/cdk/coercion';\nimport { isPlatformBrowser, NgTemplateOutlet } from '@angular/common';\nimport {\n\tafterNextRender,\n\tbooleanAttribute,\n\tChangeDetectionStrategy,\n\tComponent,\n\tcomputed,\n\tcontentChild,\n\tDestroyRef,\n\tDOCUMENT,\n\tElementRef,\n\tinject,\n\tinput,\n\tlinkedSignal,\n\tnumberAttribute,\n\tPLATFORM_ID,\n\tsignal,\n\tTemplateRef,\n\tviewChild,\n\tViewEncapsulation,\n} from '@angular/core';\nimport { BrnSonnerIcon } from './brn-icon';\nimport { BrnSonnerLoader } from './brn-loader';\nimport { BrnSonnerToast } from './brn-toast';\nimport { injectBrnSonnerToasterConfig } from './brn-toaster.token';\nimport { BrnToastAction } from './directives/brn-toast-action';\nimport { BrnToastCancelAction } from './directives/brn-toast-cancel-action';\nimport { ToastFilterPipe } from './pipes/toast-filter.pipe';\nimport { toastState } from './state';\nimport type { Position, Theme, ToasterProps } from './types';\n\n@Component({\n\tselector: 'brn-sonner-toaster',\n\texportAs: 'brnSonnerToaster',\n\timports: [BrnSonnerToast, ToastFilterPipe, BrnSonnerIcon, BrnSonnerLoader, NgTemplateOutlet],\n\t// eslint-disable-next-line @nx/workspace-avoid-component-styles\n\tencapsulation: ViewEncapsulation.None,\n\tchangeDetection: ChangeDetectionStrategy.OnPush,\n\tstyleUrl: 'brn-toaster.css',\n\ttemplate: `\n\t\t@if (_toasts().length > 0) {\n\t\t\t<section [attr.aria-label]=\"'Notifications ' + _hotKeyLabel()\" [tabIndex]=\"-1\">\n\t\t\t\t@for (pos of _possiblePositions(); track pos) {\n\t\t\t\t\t<ol\n\t\t\t\t\t\t#listRef\n\t\t\t\t\t\t[tabIndex]=\"-1\"\n\t\t\t\t\t\t[class]=\"userClass()\"\n\t\t\t\t\t\tdata-sonner-toaster\n\t\t\t\t\t\t[attr.data-theme]=\"_actualTheme()\"\n\t\t\t\t\t\t[attr.data-rich-colors]=\"richColors()\"\n\t\t\t\t\t\t[attr.dir]=\"direction()\"\n\t\t\t\t\t\t[attr.data-y-position]=\"pos.split('-')[0]\"\n\t\t\t\t\t\t[attr.data-x-position]=\"pos.split('-')[1]\"\n\t\t\t\t\t\t[style]=\"_toasterStyles()\"\n\t\t\t\t\t\t(blur)=\"handleBlur($event)\"\n\t\t\t\t\t\t(focus)=\"handleFocus($event)\"\n\t\t\t\t\t\t(mouseenter)=\"_expanded.set(true)\"\n\t\t\t\t\t\t(mousemove)=\"_expanded.set(true)\"\n\t\t\t\t\t\t(mouseleave)=\"handleMouseLeave()\"\n\t\t\t\t\t\t(pointerdown)=\"handlePointerDown($event)\"\n\t\t\t\t\t\t(pointerup)=\"_interacting.set(false)\"\n\t\t\t\t\t>\n\t\t\t\t\t\t@for (toast of _toasts() | toastFilter: $index : pos; track toast.id) {\n\t\t\t\t\t\t\t<brn-sonner-toast\n\t\t\t\t\t\t\t\t[index]=\"$index\"\n\t\t\t\t\t\t\t\t[toast]=\"toast\"\n\t\t\t\t\t\t\t\t[invert]=\"invert()\"\n\t\t\t\t\t\t\t\t[visibleToasts]=\"visibleToasts()\"\n\t\t\t\t\t\t\t\t[closeButton]=\"closeButton()\"\n\t\t\t\t\t\t\t\t[interacting]=\"_interacting()\"\n\t\t\t\t\t\t\t\t[position]=\"pos\"\n\t\t\t\t\t\t\t\t[expandByDefault]=\"expand()\"\n\t\t\t\t\t\t\t\t[expanded]=\"_expanded()\"\n\t\t\t\t\t\t\t\t[actionButtonStyle]=\"toastOptions().actionButtonStyle\"\n\t\t\t\t\t\t\t\t[cancelButtonStyle]=\"toastOptions().cancelButtonStyle\"\n\t\t\t\t\t\t\t\t[class]=\"toastOptions().class ?? ''\"\n\t\t\t\t\t\t\t\t[descriptionClass]=\"toastOptions().descriptionClass ?? ''\"\n\t\t\t\t\t\t\t\t[classes]=\"toastOptions().classes ?? {}\"\n\t\t\t\t\t\t\t\t[duration]=\"toastOptions().duration ?? duration()\"\n\t\t\t\t\t\t\t\t[unstyled]=\"toastOptions().unstyled ?? false\"\n\t\t\t\t\t\t\t\t[actionTemplate]=\"_action()\"\n\t\t\t\t\t\t\t\t[cancelActionTemplate]=\"_cancelAction()\"\n\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t@if (_loadingIcon(); as loadingIcon) {\n\t\t\t\t\t\t\t\t\t<ng-container *ngTemplateOutlet=\"loadingIcon\" loading-icon />\n\t\t\t\t\t\t\t\t} @else {\n\t\t\t\t\t\t\t\t\t<brn-sonner-loader [isVisible]=\"toast.type === 'loading'\" loading-icon />\n\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t@if (_successIcon(); as successIcon) {\n\t\t\t\t\t\t\t\t\t<ng-container *ngTemplateOutlet=\"successIcon\" success-icon />\n\t\t\t\t\t\t\t\t} @else {\n\t\t\t\t\t\t\t\t\t<brn-sonner-icon type=\"success\" success-icon />\n\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t@if (_errorIcon(); as errorIcon) {\n\t\t\t\t\t\t\t\t\t<ng-container *ngTemplateOutlet=\"errorIcon\" error-icon />\n\t\t\t\t\t\t\t\t} @else {\n\t\t\t\t\t\t\t\t\t<brn-sonner-icon type=\"error\" error-icon />\n\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t@if (_warningIcon(); as warningIcon) {\n\t\t\t\t\t\t\t\t\t<ng-container *ngTemplateOutlet=\"warningIcon\" warning-icon />\n\t\t\t\t\t\t\t\t} @else {\n\t\t\t\t\t\t\t\t\t<brn-sonner-icon type=\"warning\" warning-icon />\n\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t@if (_infoIcon(); as infoIcon) {\n\t\t\t\t\t\t\t\t\t<ng-container *ngTemplateOutlet=\"infoIcon\" info-icon />\n\t\t\t\t\t\t\t\t} @else {\n\t\t\t\t\t\t\t\t\t<brn-sonner-icon type=\"info\" info-icon />\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t</brn-sonner-toast>\n\t\t\t\t\t\t}\n\t\t\t\t\t</ol>\n\t\t\t\t}\n\t\t\t</section>\n\t\t}\n\t`,\n})\nexport class BrnSonnerToaster {\n\tprivate readonly _platformId = inject(PLATFORM_ID);\n\tprivate readonly _config = injectBrnSonnerToasterConfig();\n\tprivate readonly _document = inject(DOCUMENT);\n\tprivate readonly _window = this._document.defaultView;\n\tprivate readonly _dir = inject(Directionality);\n\n\tprotected readonly _toasts = toastState.toasts;\n\tprivate readonly _heights = toastState.heights;\n\tprivate readonly _reset = toastState.reset;\n\n\tpublic readonly invert = input<ToasterProps['invert'], BooleanInput>(false, {\n\t\ttransform: booleanAttribute,\n\t});\n\tpublic readonly theme = input<ToasterProps['theme']>('light');\n\tpublic readonly position = input<ToasterProps['position']>('bottom-right');\n\tpublic readonly hotKey = input<ToasterProps['hotkey']>(['altKey', 'KeyT']);\n\tpublic readonly richColors = input<ToasterProps['richColors'], BooleanInput>(false, {\n\t\ttransform: booleanAttribute,\n\t});\n\tpublic readonly expand = input<ToasterProps['expand'], BooleanInput>(false, {\n\t\ttransform: booleanAttribute,\n\t});\n\tpublic readonly duration = input<ToasterProps['duration'], NumberInput>(this._config.toastLifetime, {\n\t\ttransform: numberAttribute,\n\t});\n\tpublic readonly visibleToasts = input<ToasterProps['visibleToasts'], NumberInput>(this._config.visibleToastsAmount, {\n\t\ttransform: numberAttribute,\n\t});\n\tpublic readonly closeButton = input<ToasterProps['closeButton'], BooleanInput>(false, {\n\t\ttransform: booleanAttribute,\n\t});\n\tpublic readonly toastOptions = input<ToasterProps['toastOptions']>({});\n\tpublic readonly offset = input<ToasterProps['offset']>(null);\n\tpublic readonly userClass = input('', { alias: 'class' });\n\tpublic readonly style = input<Record<string, string>>({});\n\n\tprotected readonly _possiblePositions = computed(\n\t\t() =>\n\t\t\tArray.from(\n\t\t\t\tnew Set(\n\t\t\t\t\t[\n\t\t\t\t\t\tthis.position(),\n\t\t\t\t\t\t...this._toasts()\n\t\t\t\t\t\t\t.filter((toast) => toast.position)\n\t\t\t\t\t\t\t.map((toast) => toast.position),\n\t\t\t\t\t].filter(Boolean),\n\t\t\t\t),\n\t\t\t) as Position[],\n\t);\n\n\tprotected readonly _expanded = linkedSignal({\n\t\tsource: this._toasts,\n\t\tcomputation: (toasts) => toasts.length < 1,\n\t});\n\tprotected readonly _actualTheme = linkedSignal({\n\t\tsource: this.theme,\n\t\tcomputation: (newTheme) => this.getActualTheme(newTheme),\n\t});\n\tprotected readonly _interacting = signal(false);\n\n\t/** internal **/\n\tpublic readonly direction = this._dir.valueSignal;\n\n\tprivate readonly _listRef = viewChild<ElementRef<HTMLOListElement>>('listRef');\n\tprivate readonly _lastFocusedElementRef = signal<HTMLElement | null>(null);\n\tprivate readonly _isFocusWithinRef = signal(false);\n\n\tprotected readonly _hotKeyLabel = computed(() => this.hotKey().join('+').replace(/Key/g, '').replace(/Digit/g, ''));\n\n\tprotected readonly _toasterStyles = computed(() => ({\n\t\t'--front-toast-height': `${this._heights()[0]?.height}px`,\n\t\t'--offset':\n\t\t\ttypeof this.offset() === 'number' ? `${this.offset()}px` : (this.offset() ?? `${this._config.viewPortOffset}`),\n\t\t'--width': `${this._config.toastWidth}px`,\n\t\t'--gap': `${this._config.gap}px`,\n\t\t...this.style(),\n\t}));\n\n\tprotected readonly _loadingIcon = contentChild('loadingIcon', { read: TemplateRef });\n\tprotected readonly _successIcon = contentChild('successIcon', { read: TemplateRef });\n\tprotected readonly _errorIcon = contentChild('errorIcon', { read: TemplateRef });\n\tprotected readonly _warningIcon = contentChild('warningIcon', { read: TemplateRef });\n\tprotected readonly _infoIcon = contentChild('infoIcon', { read: TemplateRef });\n\tprotected readonly _action = contentChild(BrnToastAction);\n\tprotected readonly _cancelAction = contentChild(BrnToastCancelAction);\n\n\tconstructor() {\n\t\tthis._reset();\n\n\t\tconst destroyRef = inject(DestroyRef);\n\n\t\tafterNextRender(() => {\n\t\t\tthis._document.addEventListener('keydown', this.handleKeydown);\n\n\t\t\t// matchMedia returns a new MediaQueryList on every call, so the listener has to be\n\t\t\t// removed from the same list it was added to.\n\t\t\tconst prefersDark = this._window?.matchMedia('(prefers-color-scheme: dark)');\n\t\t\tprefersDark?.addEventListener('change', this.handleThemePreferenceChange);\n\n\t\t\tdestroyRef.onDestroy(() => {\n\t\t\t\tthis._document.removeEventListener('keydown', this.handleKeydown);\n\t\t\t\tprefersDark?.removeEventListener('change', this.handleThemePreferenceChange);\n\t\t\t});\n\t\t});\n\t}\n\n\thandleBlur(event: FocusEvent) {\n\t\tif (this._isFocusWithinRef() && !(event.target as HTMLOListElement).contains(event.relatedTarget as HTMLElement)) {\n\t\t\tthis._isFocusWithinRef.set(false);\n\t\t\tif (this._lastFocusedElementRef()) {\n\t\t\t\tthis._lastFocusedElementRef()?.focus({ preventScroll: true });\n\t\t\t\tthis._lastFocusedElementRef.set(null);\n\t\t\t}\n\t\t}\n\t}\n\n\thandleFocus(event: FocusEvent) {\n\t\tconst isNotDismissible = event.target instanceof HTMLElement && event.target.dataset['dismissible'] === 'false';\n\n\t\tif (isNotDismissible) return;\n\n\t\tif (!this._isFocusWithinRef()) {\n\t\t\tthis._isFocusWithinRef.set(true);\n\t\t\tthis._lastFocusedElementRef.set(event.relatedTarget as HTMLElement);\n\t\t}\n\t}\n\n\thandlePointerDown(event: MouseEvent) {\n\t\tconst isNotDismissible = event.target instanceof HTMLElement && event.target.dataset['dismissible'] === 'false';\n\n\t\tif (isNotDismissible) return;\n\t\tthis._interacting.set(true);\n\t}\n\n\thandleMouseLeave() {\n\t\tif (!this._interacting()) {\n\t\t\tthis._expanded.set(false);\n\t\t}\n\t}\n\n\tprivate readonly handleKeydown = (event: KeyboardEvent) => {\n\t\tconst listRef = this._listRef()?.nativeElement;\n\t\tif (!listRef) return;\n\n\t\tconst isHotkeyPressed = this.hotKey().every((key) => (event as never)[key] || event.code === key);\n\n\t\tif (isHotkeyPressed) {\n\t\t\tthis._expanded.set(true);\n\t\t\tlistRef.focus();\n\t\t}\n\n\t\tif (\n\t\t\tevent.code === 'Escape' &&\n\t\t\t(this._document.activeElement === listRef || listRef.contains(this._document.activeElement))\n\t\t) {\n\t\t\tthis._expanded.set(false);\n\t\t}\n\t};\n\n\tprivate readonly handleThemePreferenceChange = ({ matches }: MediaQueryListEvent) => {\n\t\tif (this.theme() === 'system') {\n\t\t\tthis._actualTheme.set(matches ? 'dark' : 'light');\n\t\t}\n\t};\n\n\tprivate getActualTheme(theme: Theme): Theme {\n\t\tif (theme !== 'system') {\n\t\t\treturn theme;\n\t\t}\n\n\t\tif (isPlatformBrowser(this._platformId) && this._window) {\n\t\t\tconst prefersDark = this._window.matchMedia?.('(prefers-color-scheme: dark)').matches;\n\t\t\treturn prefersDark ? 'dark' : 'light';\n\t\t}\n\n\t\treturn 'light';\n\t}\n}\n","import { BrnSonnerToaster } from './lib/brn-toaster';\nimport { BrnToastAction } from './lib/directives/brn-toast-action';\nimport { BrnToastCancelAction } from './lib/directives/brn-toast-cancel-action';\n\nexport * from './lib/brn-toaster';\nexport * from './lib/brn-toaster.token';\nexport * from './lib/directives/brn-toast-action';\nexport * from './lib/directives/brn-toast-cancel-action';\nexport * from './lib/state';\nexport * from './lib/types';\n\nexport const BrnSonnerImports = [BrnSonnerToaster, BrnToastAction, BrnToastCancelAction] as const;\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;MAiDa,aAAa,CAAA;AACT,IAAA,IAAI,GAAG,KAAK,CAAa,SAAS,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AA,QAAA,EAAA,IAAA,EAAA,CAAA,EAAA,CAAA,EAAA,YAAA,EAAA,CAAA,EAAA,IAAA,EAAA,EAAA,CAAA,YAAA,EAAA,IAAA,EAAA,CACpC,aAAa,EAAA,EAAA,GAAE,EAAE,IAAI,EAAE,WAAW,EAAE,EAAA,QAAA,EAAA,IAAA,EAAA,CAAA,EAAA,CAAA,EAAA,UAAA,EAAA,CAAA,EAAA,IAAA,EAAA,EAAA,CAAA,YAAA,EAAA,IAAA,EAAA,CACtC,WAAW,OAAE,EAAE,IAAI,EAAE,WAAW,EAAE,uEAChC,aAAa,EAAA,EAAA,GAAE,EAAE,IAAI,EAAE,WAAW,EAAE,EAAA,QAAA,EAAA,IAAA,EAAA,CAAA,EAAA,CAAA,EAAA,SAAA,EAAA,CAAA,EAAA,IAAA,EAAA,EAAA,CAAA,YAAA,EAAA,IAAA,EAAA,CACvC,UAAU,EAAA,EAAA,GAAE,EAAE,IAAI,EAAE,WAAW,EAAE,EAAA,QAAA,EAAA,IAAA,EAAA,CAAA,EAAA,CAAA,EAAA,OAAA,EAAA,CAAA,EAAA,IAAA,EAAA,EAAA,CAAA,YAAA,EAAA,IAAA,EAAA,CAAA,EAAA,CAAA,UAAA,CAAA,MACnC,cAAc,+FACR,oBAAoB,CAAA,EAAA,EAAA,QAAA,EAAA,IAAA,EAAA,CAAA,EAAA,CAAA,EAAA,EAAA,CAAA;;ACpM9D,MAAM,gBAAgB,GAAG,CAAC,gBAAgB,EAAE,cAAc,EAAE,oBAAoB;;ACXvF;;AAEG;;;;"}
|
|
1
|
+
{"version":3,"file":"spartan-ng-brain-sonner.mjs","sources":["../../../../libs/brain/sonner/src/lib/brn-icon.ts","../../../../libs/brain/sonner/src/lib/brn-loader.ts","../../../../libs/brain/sonner/src/lib/brn-toaster.token.ts","../../../../libs/brain/sonner/src/lib/pipes/as-component.pipe.ts","../../../../libs/brain/sonner/src/lib/pipes/is-string.pipe.ts","../../../../libs/brain/sonner/src/lib/state.ts","../../../../libs/brain/sonner/src/lib/brn-toast.ts","../../../../libs/brain/sonner/src/lib/directives/brn-toast-action.ts","../../../../libs/brain/sonner/src/lib/directives/brn-toast-cancel-action.ts","../../../../libs/brain/sonner/src/lib/pipes/toast-filter.pipe.ts","../../../../libs/brain/sonner/src/lib/brn-toaster.ts","../../../../libs/brain/sonner/src/index.ts","../../../../libs/brain/sonner/src/spartan-ng-brain-sonner.ts"],"sourcesContent":["import { ChangeDetectionStrategy, Component, input } from '@angular/core';\nimport type { ToastTypes } from './types';\n\n@Component({\n\tselector: 'brn-sonner-icon',\n\texportAs: 'brnSonnerIcon',\n\tchangeDetection: ChangeDetectionStrategy.OnPush,\n\ttemplate: `\n\t\t@switch (type()) {\n\t\t\t@case ('success') {\n\t\t\t\t<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 20 20\" fill=\"currentColor\" height=\"20\" width=\"20\">\n\t\t\t\t\t<path\n\t\t\t\t\t\tfill-rule=\"evenodd\"\n\t\t\t\t\t\td=\"M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z\"\n\t\t\t\t\t\tclip-rule=\"evenodd\"\n\t\t\t\t\t/>\n\t\t\t\t</svg>\n\t\t\t}\n\t\t\t@case ('error') {\n\t\t\t\t<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 20 20\" fill=\"currentColor\" height=\"20\" width=\"20\">\n\t\t\t\t\t<path\n\t\t\t\t\t\tfill-rule=\"evenodd\"\n\t\t\t\t\t\td=\"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z\"\n\t\t\t\t\t\tclip-rule=\"evenodd\"\n\t\t\t\t\t/>\n\t\t\t\t</svg>\n\t\t\t}\n\t\t\t@case ('info') {\n\t\t\t\t<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 20 20\" fill=\"currentColor\" height=\"20\" width=\"20\">\n\t\t\t\t\t<path\n\t\t\t\t\t\tfill-rule=\"evenodd\"\n\t\t\t\t\t\td=\"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z\"\n\t\t\t\t\t\tclip-rule=\"evenodd\"\n\t\t\t\t\t/>\n\t\t\t\t</svg>\n\t\t\t}\n\t\t\t@case ('warning') {\n\t\t\t\t<svg viewBox=\"0 0 64 64\" fill=\"currentColor\" height=\"20\" width=\"20\" xmlns=\"http://www.w3.org/2000/svg\">\n\t\t\t\t\t<path\n\t\t\t\t\t\td=\"M32.427,7.987c2.183,0.124 4,1.165 5.096,3.281l17.936,36.208c1.739,3.66 -0.954,8.585 -5.373,8.656l-36.119,0c-4.022,-0.064 -7.322,-4.631 -5.352,-8.696l18.271,-36.207c0.342,-0.65 0.498,-0.838 0.793,-1.179c1.186,-1.375 2.483,-2.111 4.748,-2.063Zm-0.295,3.997c-0.687,0.034 -1.316,0.419 -1.659,1.017c-6.312,11.979 -12.397,24.081 -18.301,36.267c-0.546,1.225 0.391,2.797 1.762,2.863c12.06,0.195 24.125,0.195 36.185,0c1.325,-0.064 2.321,-1.584 1.769,-2.85c-5.793,-12.184 -11.765,-24.286 -17.966,-36.267c-0.366,-0.651 -0.903,-1.042 -1.79,-1.03Z\"\n\t\t\t\t\t/>\n\t\t\t\t\t<path\n\t\t\t\t\t\td=\"M33.631,40.581l-3.348,0l-0.368,-16.449l4.1,0l-0.384,16.449Zm-3.828,5.03c0,-0.609 0.197,-1.113 0.592,-1.514c0.396,-0.4 0.935,-0.601 1.618,-0.601c0.684,0 1.223,0.201 1.618,0.601c0.395,0.401 0.593,0.905 0.593,1.514c0,0.587 -0.193,1.078 -0.577,1.473c-0.385,0.395 -0.929,0.593 -1.634,0.593c-0.705,0 -1.249,-0.198 -1.634,-0.593c-0.384,-0.395 -0.576,-0.886 -0.576,-1.473Z\"\n\t\t\t\t\t/>\n\t\t\t\t</svg>\n\t\t\t}\n\t\t}\n\t`,\n})\nexport class BrnSonnerIcon {\n\tpublic readonly type = input<ToastTypes>('default');\n}\n","import type { BooleanInput } from '@angular/cdk/coercion';\nimport { booleanAttribute, ChangeDetectionStrategy, Component, input } from '@angular/core';\n\n@Component({\n\tselector: 'brn-sonner-loader',\n\texportAs: 'brnSonnerLoader',\n\tchangeDetection: ChangeDetectionStrategy.OnPush,\n\ttemplate: `\n\t\t<div class=\"sonner-loading-wrapper\" [attr.data-visible]=\"isVisible()\">\n\t\t\t<div class=\"sonner-spinner\">\n\t\t\t\t@for (_ of _bars; track $index) {\n\t\t\t\t\t<div class=\"sonner-loading-bar\"></div>\n\t\t\t\t}\n\t\t\t</div>\n\t\t</div>\n\t`,\n})\nexport class BrnSonnerLoader {\n\tpublic readonly isVisible = input.required<boolean, BooleanInput>({ transform: booleanAttribute });\n\tprotected readonly _bars = Array(12).fill(0);\n}\n","import { inject, InjectionToken, type ValueProvider } from '@angular/core';\nimport type { ToastClassnames } from './types';\n\nexport interface BrnSonnerToasterConfig {\n\t/** The maximum number of toasts visible at once */\n\tvisibleToastsAmount: number;\n\t/** The offset from the viewport for the toast container */\n\tviewPortOffset: string;\n\t/** The default lifetime of a toast in milliseconds */\n\ttoastLifetime: number;\n\t/** The width of the toast in pixels */\n\ttoastWidth: number;\n\t/** The gap between toasts in pixels */\n\tgap: number;\n\t/** The threshold in pixels for swipe to dismiss a toast */\n\tswipeThreshold: number;\n\t/** The time in milliseconds before a toast is unmounted */\n\ttimeBeforeUnmount: number;\n}\n\nconst defaultConfig: BrnSonnerToasterConfig = {\n\tvisibleToastsAmount: 3,\n\tviewPortOffset: '32px',\n\ttoastLifetime: 4000,\n\ttoastWidth: 356,\n\tgap: 14,\n\tswipeThreshold: 20,\n\ttimeBeforeUnmount: 200,\n};\n\nconst BrnSonnerToasterConfigToken = new InjectionToken<BrnSonnerToasterConfig>('BrnSonnerToasterConfig');\n\nexport function provideBrnSonnerToasterConfig(config: Partial<BrnSonnerToasterConfig>): ValueProvider {\n\treturn { provide: BrnSonnerToasterConfigToken, useValue: { ...defaultConfig, ...config } };\n}\n\nexport function injectBrnSonnerToasterConfig(): BrnSonnerToasterConfig {\n\treturn inject(BrnSonnerToasterConfigToken, { optional: true }) ?? defaultConfig;\n}\n\nexport const defaultClasses: ToastClassnames = {\n\ttoast: '',\n\ttitle: '',\n\tdescription: '',\n\tloader: '',\n\tcloseButton: '',\n\tcancelButton: '',\n\tactionButton: '',\n\taction: '',\n\twarning: '',\n\terror: '',\n\tsuccess: '',\n\tdefault: '',\n\tinfo: '',\n\tloading: '',\n};\n","import { Pipe, PipeTransform, Type } from '@angular/core';\n\n@Pipe({ name: 'asComponent' })\nexport class AsComponentPipe implements PipeTransform {\n\ttransform(value: unknown): Type<unknown> {\n\t\treturn value as Type<unknown>;\n\t}\n}\n","import { Pipe, PipeTransform } from '@angular/core';\n\n@Pipe({ name: 'isString' })\nexport class IsStringPipe implements PipeTransform {\n\ttransform(value: unknown): boolean {\n\t\treturn typeof value === 'string';\n\t}\n}\n","import { signal, type Type } from '@angular/core';\nimport type { ExternalToast, HeightT, PromiseData, PromiseT, ToastT, ToastTypes } from './types';\n\nlet toastsCounter = 0;\n\nfunction createToastState() {\n\tconst toasts = signal<ToastT[]>([]);\n\tconst heights = signal<HeightT[]>([]);\n\n\tfunction addToast(data: ToastT) {\n\t\ttoasts.update((prev) => [data, ...prev]);\n\t}\n\n\tfunction create(\n\t\tdata: ExternalToast & {\n\t\t\tmessage?: string | Type<unknown>;\n\t\t\ttype?: ToastTypes;\n\t\t\tpromise?: PromiseT;\n\t\t},\n\t) {\n\t\tconst { message, ...rest } = data;\n\t\tconst id = typeof data?.id === 'number' || (data.id && data.id?.length > 0) ? data.id : toastsCounter++;\n\n\t\tconst dismissible = data.dismissible ?? true;\n\t\tconst type = data.type ?? 'default';\n\n\t\tconst alreadyExists = toasts().find((toast) => toast.id === id);\n\n\t\tif (alreadyExists) {\n\t\t\ttoasts.update((prev) =>\n\t\t\t\tprev.map((toast) => {\n\t\t\t\t\tif (toast.id === id) {\n\t\t\t\t\t\treturn {\n\t\t\t\t\t\t\t...toast,\n\t\t\t\t\t\t\t...data,\n\t\t\t\t\t\t\tid,\n\t\t\t\t\t\t\ttitle: message,\n\t\t\t\t\t\t\tdismissible,\n\t\t\t\t\t\t\ttype,\n\t\t\t\t\t\t\tupdated: true,\n\t\t\t\t\t\t};\n\t\t\t\t\t} else return { ...toast, updated: false };\n\t\t\t\t}),\n\t\t\t);\n\t\t} else {\n\t\t\taddToast({ ...rest, id, title: message, dismissible: dismissible, type });\n\t\t}\n\n\t\treturn id;\n\t}\n\n\tfunction dismiss(id?: number | string) {\n\t\tif (id === undefined) {\n\t\t\ttoasts.set([]);\n\t\t\treturn;\n\t\t}\n\t\ttoasts.update((prev) => prev.filter((toast) => toast.id !== id));\n\n\t\treturn id;\n\t}\n\n\tfunction message(message: string | Type<unknown>, data?: ExternalToast) {\n\t\treturn create({ ...data, type: 'default', message });\n\t}\n\n\tfunction error(message: string | Type<unknown>, data?: ExternalToast) {\n\t\treturn create({ ...data, type: 'error', message });\n\t}\n\n\tfunction success(message: string | Type<unknown>, data?: ExternalToast) {\n\t\treturn create({ ...data, type: 'success', message });\n\t}\n\n\tfunction info(message: string | Type<unknown>, data?: ExternalToast) {\n\t\treturn create({ ...data, type: 'info', message });\n\t}\n\n\tfunction warning(message: string | Type<unknown>, data?: ExternalToast) {\n\t\treturn create({ ...data, type: 'warning', message });\n\t}\n\n\tfunction loading(message: string | Type<unknown>, data?: ExternalToast) {\n\t\treturn create({ ...data, type: 'loading', message });\n\t}\n\n\tfunction promise<ToastData>(promise: PromiseT<ToastData>, data?: PromiseData<ToastData>) {\n\t\tif (!data) return;\n\n\t\tlet id: string | number | undefined = undefined;\n\t\tif (data.loading !== undefined) {\n\t\t\tid = create({\n\t\t\t\t...data,\n\t\t\t\tpromise,\n\t\t\t\ttype: 'loading',\n\t\t\t\tmessage: data.loading,\n\t\t\t});\n\t\t}\n\n\t\tconst p = promise instanceof Promise ? promise : promise();\n\n\t\tlet shouldDismiss = id !== undefined;\n\n\t\tp.then((response) => {\n\t\t\t// @ts-expect-error: Incorrect response type\n\t\t\tif (response && typeof response.ok === 'boolean' && !response.ok) {\n\t\t\t\tshouldDismiss = false;\n\n\t\t\t\tconst message =\n\t\t\t\t\ttypeof data.error === 'function'\n\t\t\t\t\t\t? // @ts-expect-error: TODO: Better function checking\n\t\t\t\t\t\t\tdata.error(`HTTP error! status: ${response.status}`)\n\t\t\t\t\t\t: data.error;\n\t\t\t\tcreate({ id, type: 'error', message });\n\t\t\t} else if (data.success !== undefined) {\n\t\t\t\tshouldDismiss = false;\n\n\t\t\t\tconst message =\n\t\t\t\t\ttypeof data.success === 'function'\n\t\t\t\t\t\t? // @ts-expect-error: TODO: Better function checking\n\t\t\t\t\t\t\tdata.success(response)\n\t\t\t\t\t\t: data.success;\n\t\t\t\tcreate({ id, type: 'success', message });\n\t\t\t}\n\t\t})\n\t\t\t.catch((error) => {\n\t\t\t\tif (data.error !== undefined) {\n\t\t\t\t\tshouldDismiss = false;\n\t\t\t\t\tconst message =\n\t\t\t\t\t\t// @ts-expect-error: TODO: Better function checking\n\t\t\t\t\t\ttypeof data.error === 'function' ? data.error(error) : data.error;\n\t\t\t\t\tcreate({ id, type: 'error', message });\n\t\t\t\t}\n\t\t\t})\n\t\t\t.finally(() => {\n\t\t\t\tif (shouldDismiss) {\n\t\t\t\t\t// Toast is still in load state (and will be indefinitely — dismiss it)\n\t\t\t\t\tdismiss(id);\n\t\t\t\t\tid = undefined;\n\t\t\t\t}\n\n\t\t\t\tdata.finally?.();\n\t\t\t});\n\n\t\treturn id;\n\t}\n\n\tfunction custom<T>(component: Type<T>, data?: ExternalToast) {\n\t\tconst id = data?.id ?? toastsCounter++;\n\t\tcreate({ component, id, ...data });\n\n\t\treturn id;\n\t}\n\n\tfunction removeHeight(id: number | string) {\n\t\theights.update((prev) => prev.filter((height) => height.toastId !== id));\n\t}\n\n\tfunction addHeight(height: HeightT) {\n\t\theights.update((prev) => [height, ...prev].sort(sortHeights));\n\t}\n\n\tconst sortHeights = (a: HeightT, b: HeightT) =>\n\t\ttoasts().findIndex((t) => t.id === a.toastId) - toasts().findIndex((t) => t.id === b.toastId);\n\n\tfunction reset() {\n\t\ttoasts.set([]);\n\t\theights.set([]);\n\t}\n\n\treturn {\n\t\t//methods\n\t\tcreate,\n\t\taddToast,\n\t\tdismiss,\n\t\tmessage,\n\t\terror,\n\t\tsuccess,\n\t\tinfo,\n\t\twarning,\n\t\tloading,\n\t\tpromise,\n\t\tcustom,\n\t\tremoveHeight,\n\t\taddHeight,\n\t\treset,\n\t\t// signals\n\t\ttoasts: toasts.asReadonly(),\n\t\theights: heights.asReadonly(),\n\t};\n}\n\nexport const toastState = createToastState();\n\n// bind this to the toast function\nfunction toastFunction(message: string | Type<unknown>, data?: ExternalToast) {\n\treturn toastState.create({\n\t\tmessage,\n\t\t...data,\n\t});\n}\n\nconst basicToast = toastFunction;\n\nexport const toast = Object.assign(basicToast, {\n\tsuccess: toastState.success,\n\tinfo: toastState.info,\n\twarning: toastState.warning,\n\terror: toastState.error,\n\tcustom: toastState.custom,\n\tmessage: toastState.message,\n\tpromise: toastState.promise,\n\tdismiss: toastState.dismiss,\n\tloading: toastState.loading,\n});\n","import { NgComponentOutlet, NgTemplateOutlet } from '@angular/common';\nimport {\n\tafterRenderEffect,\n\ttype AfterViewInit,\n\tChangeDetectionStrategy,\n\tComponent,\n\tcomputed,\n\teffect,\n\tElementRef,\n\tinject,\n\tinput,\n\tlinkedSignal,\n\ttype OnDestroy,\n\tsignal,\n} from '@angular/core';\nimport clsx from 'clsx';\nimport { defaultClasses, injectBrnSonnerToasterConfig } from './brn-toaster.token';\nimport { BrnToastAction } from './directives/brn-toast-action';\nimport { BrnToastCancelAction } from './directives/brn-toast-cancel-action';\nimport { AsComponentPipe } from './pipes/as-component.pipe';\nimport { IsStringPipe } from './pipes/is-string.pipe';\nimport { toastState } from './state';\nimport type { ToastAction, ToastProps, ToastT } from './types';\n\n@Component({\n\t// eslint-disable-next-line @angular-eslint/component-selector\n\tselector: 'li[brnSonnerToast]',\n\texportAs: 'brnSonnerToast',\n\timports: [NgComponentOutlet, IsStringPipe, AsComponentPipe, NgTemplateOutlet],\n\tchangeDetection: ChangeDetectionStrategy.OnPush,\n\thost: {\n\t\t'data-sonner-toast': '',\n\t\t'[attr.aria-live]': \"toast().important ? 'assertive' : 'polite'\",\n\t\t'aria-atomic': 'true',\n\t\ttabindex: '0',\n\t\t'[class]': '_toastClasses()',\n\t\t'[attr.data-styled]': '!(toast().component || toast().unstyled || unstyled())',\n\t\t'[attr.data-mounted]': '_mounted()',\n\t\t'[attr.data-promise]': '!!toast().promise',\n\t\t'[attr.data-removed]': '_removed()',\n\t\t'[attr.data-visible]': '_isVisible()',\n\t\t'[attr.data-y-position]': '_coords()[0]',\n\t\t'[attr.data-x-position]': '_coords()[1]',\n\t\t'[attr.data-index]': 'index()',\n\t\t'[attr.data-front]': '_isFront()',\n\t\t'[attr.data-swiping]': '_swiping()',\n\t\t'[attr.data-dismissible]': 'toast().dismissible',\n\t\t'[attr.data-type]': '_toastType()',\n\t\t'[attr.data-invert]': '_invert()',\n\t\t'[attr.data-swipe-out]': '_swipeOut()',\n\t\t'[attr.data-expanded]': 'expanded() || (expandByDefault() && _mounted())',\n\t\t'[attr.data-testid]': 'toast().testId',\n\t\t'[style]': '_toastStyle()',\n\t\t'(pointerdown)': 'onPointerDown($event)',\n\t\t'(pointerup)': 'onPointerUp()',\n\t\t'(pointermove)': 'onPointerMove($event)',\n\t},\n\ttemplate: `\n\t\t@if (_closeButton() && !toast().component) {\n\t\t\t<button\n\t\t\t\taria-label=\"Close toast\"\n\t\t\t\t[attr.data-disabled]=\"_disabled()\"\n\t\t\t\tdata-close-button\n\t\t\t\t(click)=\"onCloseButtonClick()\"\n\t\t\t\t[class]=\"_closeButtonClasses()\"\n\t\t\t>\n\t\t\t\t<svg\n\t\t\t\t\txmlns=\"http://www.w3.org/2000/svg\"\n\t\t\t\t\twidth=\"12\"\n\t\t\t\t\theight=\"12\"\n\t\t\t\t\tviewBox=\"0 0 24 24\"\n\t\t\t\t\tfill=\"none\"\n\t\t\t\t\tstroke=\"currentColor\"\n\t\t\t\t\tstroke-width=\"1.5\"\n\t\t\t\t\tstroke-linecap=\"round\"\n\t\t\t\t\tstroke-linejoin=\"round\"\n\t\t\t\t>\n\t\t\t\t\t<line x1=\"18\" y1=\"6\" x2=\"6\" y2=\"18\" />\n\t\t\t\t\t<line x1=\"6\" y1=\"6\" x2=\"18\" y2=\"18\" />\n\t\t\t\t</svg>\n\t\t\t</button>\n\t\t}\n\n\t\t@if (toast().component) {\n\t\t\t<ng-container *ngComponentOutlet=\"toast().component | asComponent; inputs: toast().componentProps\" />\n\t\t} @else {\n\t\t\t@if (_toastType() !== 'default' || toast().icon || toast().promise) {\n\t\t\t\t<div data-icon>\n\t\t\t\t\t@if (_toastType() === 'loading' && !toast().icon) {\n\t\t\t\t\t\t<ng-content select=\"[loading-icon]\" />\n\t\t\t\t\t}\n\t\t\t\t\t@if (toast().icon) {\n\t\t\t\t\t\t<ng-container *ngComponentOutlet=\"toast().icon | asComponent; inputs: toast().componentProps\" />\n\t\t\t\t\t} @else {\n\t\t\t\t\t\t@switch (_toastType()) {\n\t\t\t\t\t\t\t@case ('success') {\n\t\t\t\t\t\t\t\t<ng-content select=\"[success-icon]\" />\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t@case ('error') {\n\t\t\t\t\t\t\t\t<ng-content select=\"[error-icon]\" />\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t@case ('warning') {\n\t\t\t\t\t\t\t\t<ng-content select=\"[warning-icon]\" />\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t@case ('info') {\n\t\t\t\t\t\t\t\t<ng-content select=\"[info-icon]\" />\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t</div>\n\t\t\t}\n\t\t\t<div data-content>\n\t\t\t\t@if (toast().title; as title) {\n\t\t\t\t\t<div data-title [class]=\"_titleClasses()\">\n\t\t\t\t\t\t@if (title | isString) {\n\t\t\t\t\t\t\t{{ toast().title }}\n\t\t\t\t\t\t} @else {\n\t\t\t\t\t\t\t<ng-container *ngComponentOutlet=\"title | asComponent; inputs: toast().componentProps\" />\n\t\t\t\t\t\t}\n\t\t\t\t\t</div>\n\t\t\t\t}\n\t\t\t\t@if (toast().description; as description) {\n\t\t\t\t\t<div data-description [class]=\"_toastDescriptionClasses()\">\n\t\t\t\t\t\t@if (description | isString) {\n\t\t\t\t\t\t\t{{ toast().description }}\n\t\t\t\t\t\t} @else {\n\t\t\t\t\t\t\t<ng-container *ngComponentOutlet=\"description | asComponent; inputs: toast().componentProps\" />\n\t\t\t\t\t\t}\n\t\t\t\t\t</div>\n\t\t\t\t}\n\t\t\t</div>\n\t\t\t@if (toast().cancel; as cancel) {\n\t\t\t\t@if (cancelActionTemplate(); as cancelAction) {\n\t\t\t\t\t<ng-container\n\t\t\t\t\t\t*ngTemplateOutlet=\"cancelAction.templateRef; context: { $implicit: _wrappedCancelAction(), toast: toast() }\"\n\t\t\t\t\t/>\n\t\t\t\t} @else {\n\t\t\t\t\t<button\n\t\t\t\t\t\tdata-button\n\t\t\t\t\t\tdata-cancel\n\t\t\t\t\t\t[style]=\"cancelButtonStyle() ?? toast().cancelButtonStyle\"\n\t\t\t\t\t\t[class]=\"_cancelButtonClasses()\"\n\t\t\t\t\t\t(click)=\"onCancelClick($event)\"\n\t\t\t\t\t>\n\t\t\t\t\t\t{{ cancel.label }}\n\t\t\t\t\t</button>\n\t\t\t\t}\n\t\t\t}\n\t\t\t@if (toast().action; as action) {\n\t\t\t\t@if (actionTemplate(); as actionTemplate) {\n\t\t\t\t\t<ng-container\n\t\t\t\t\t\t*ngTemplateOutlet=\"actionTemplate.templateRef; context: { $implicit: _wrappedAction(), toast: toast() }\"\n\t\t\t\t\t/>\n\t\t\t\t} @else {\n\t\t\t\t\t<button\n\t\t\t\t\t\tdata-button\n\t\t\t\t\t\t[style]=\"actionButtonStyle() ?? toast().actionButtonStyle\"\n\t\t\t\t\t\t[class]=\"_actionButtonClasses()\"\n\t\t\t\t\t\t(click)=\"onActionClick($event)\"\n\t\t\t\t\t>\n\t\t\t\t\t\t{{ action.label }}\n\t\t\t\t\t</button>\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t`,\n})\nexport class BrnSonnerToast implements AfterViewInit, OnDestroy {\n\tprivate readonly _config = injectBrnSonnerToasterConfig();\n\n\tprotected readonly _toasts = computed(() => toastState.toasts().filter((t) => t.position === this.position()));\n\tprotected readonly _heights = computed(() => toastState.heights().filter((h) => h.position === this.position()));\n\tprotected readonly _removeHeight = toastState.removeHeight;\n\tprotected readonly _addHeight = toastState.addHeight;\n\tprotected readonly _dismiss = toastState.dismiss;\n\n\tpublic readonly toast = input.required<ToastProps['toast']>();\n\tpublic readonly index = input.required<ToastProps['index']>();\n\tpublic readonly expanded = input.required<ToastProps['expanded']>();\n\tpublic readonly invert = input.required<ToastProps['invert']>();\n\tpublic readonly position = input.required<ToastProps['position']>();\n\tpublic readonly visibleToasts = input.required<ToastProps['visibleToasts']>();\n\tpublic readonly expandByDefault = input.required<ToastProps['expandByDefault']>();\n\tpublic readonly closeButton = input.required<ToastProps['closeButton']>();\n\tpublic readonly interacting = input.required<ToastProps['interacting']>();\n\tpublic readonly cancelButtonStyle = input<ToastProps['cancelButtonStyle']>();\n\tpublic readonly actionButtonStyle = input<ToastProps['actionButtonStyle']>();\n\tpublic readonly duration = input<ToastProps['duration']>(this._config.toastLifetime);\n\tpublic readonly descriptionClass = input<ToastProps['descriptionClass']>('');\n\tpublic readonly classes = input<ToastProps['classes']>({});\n\tpublic readonly unstyled = input<ToastProps['unstyled']>(false);\n\tpublic readonly userClass = input('', { alias: 'class' });\n\tpublic readonly style = input<Record<string, string>>({});\n\tpublic readonly actionTemplate = input<BrnToastAction>();\n\tpublic readonly cancelActionTemplate = input<BrnToastCancelAction>();\n\n\tprotected readonly _wrappedAction = computed<ToastAction | null>(() => {\n\t\tconst action = this.toast().action;\n\t\treturn action ? this.wrapAction(action) : null;\n\t});\n\tprotected readonly _wrappedCancelAction = computed<ToastAction | null>(() => {\n\t\tconst cancelAction = this.toast().cancel;\n\t\treturn cancelAction ? this.wrapCancelAction(cancelAction) : null;\n\t});\n\n\tprotected readonly _mounted = signal(false);\n\tprotected readonly _removed = signal(false);\n\tprotected readonly _swiping = signal(false);\n\tprotected readonly _swipeOut = signal(false);\n\tprivate readonly _offsetBeforeRemove = signal(0);\n\tprivate readonly _initialHeight = signal(0);\n\n\tprivate readonly _toastRef = inject<ElementRef<HTMLLIElement>>(ElementRef);\n\n\tprotected readonly _classes = computed(() => ({\n\t\t...defaultClasses,\n\t\t...this.classes(),\n\t}));\n\n\tprotected readonly _isFront = computed(() => this.index() === 0);\n\tprotected readonly _isVisible = computed(() => this.index() + 1 <= this.visibleToasts());\n\tprotected readonly _toastType = computed(() => this.toast().type ?? 'default');\n\tprivate readonly _toastClass = computed(() => this.toast().class ?? '');\n\tprivate readonly _toastPosition = computed(() => this.toast().position ?? this.position());\n\tprotected readonly _toastDescriptionClass = computed(() => this.toast().descriptionClass ?? '');\n\n\tprivate readonly _heightIndex = computed(() =>\n\t\tthis._heights().findIndex((height) => height.toastId === this.toast().id),\n\t);\n\n\tprivate readonly _offset = linkedSignal({\n\t\tsource: () => ({\n\t\t\theightIndex: this._heightIndex(),\n\t\t\ttoastsHeightBefore: this._toastsHeightBefore(),\n\t\t}),\n\t\tcomputation: ({ heightIndex, toastsHeightBefore }) =>\n\t\t\tMath.round(heightIndex * this._config.gap + toastsHeightBefore),\n\t});\n\n\tprivate _closeTimerStartTimeRef = 0;\n\tprivate _lastCloseTimerStartTimeRef = 0;\n\tprivate _pointerStartRef: { x: number; y: number } | null = null;\n\n\tprotected readonly _coords = computed(() => this._toastPosition().split('-'));\n\tprivate readonly _toastsHeightBefore = computed(() =>\n\t\tthis._heights().reduce((prev, curr, reducerIndex) => {\n\t\t\tif (reducerIndex >= this._heightIndex()) return prev;\n\t\t\treturn prev + curr.height;\n\t\t}, 0),\n\t);\n\tprotected readonly _invert = computed(() => this.toast().invert ?? this.invert());\n\tprotected readonly _closeButton = computed(() => this.toast().closeButton ?? this.closeButton());\n\tprotected readonly _disabled = computed(() => this._toastType() === 'loading');\n\n\tprivate _timeoutId: ReturnType<typeof setTimeout> | undefined;\n\tprivate _remainingTime = 0;\n\n\tprivate readonly _isPromiseLoadingOrInfiniteDuration = computed(\n\t\t() =>\n\t\t\t(this.toast().promise && this._toastType() === 'loading') || this.toast().duration === Number.POSITIVE_INFINITY,\n\t);\n\n\tprotected readonly _toastClasses = computed(() =>\n\t\tclsx(\n\t\t\tthis.userClass(),\n\t\t\tthis._toastClass(),\n\t\t\tthis._classes().toast,\n\t\t\tthis.toast().classes?.toast,\n\t\t\tthis._classes()[this._toastType()],\n\t\t\tthis.toast().classes?.[this._toastType()],\n\t\t),\n\t);\n\tprotected readonly _toastStyle = computed(() => ({\n\t\t'--index': `${this.index()}`,\n\t\t'--toasts-before': `${this.index()}`,\n\t\t'--z-index': `${this._toasts().length - this.index()}`,\n\t\t'--offset': `${this._removed() ? this._offsetBeforeRemove() : this._offset()}px`,\n\t\t'--initial-height': this.expandByDefault() ? 'auto' : `${this._initialHeight()}px`,\n\t\t...this.style(),\n\t}));\n\tprotected readonly _actionButtonClasses = computed(() =>\n\t\tclsx(this._classes().actionButton, this.toast().classes?.actionButton),\n\t);\n\tprotected readonly _cancelButtonClasses = computed(() =>\n\t\tclsx(this._classes().cancelButton, this.toast().classes?.cancelButton),\n\t);\n\tprotected readonly _toastDescriptionClasses = computed(() =>\n\t\tclsx(\n\t\t\tthis.descriptionClass(),\n\t\t\tthis._toastDescriptionClass(),\n\t\t\tthis._classes().description,\n\t\t\tthis.toast().classes?.description,\n\t\t),\n\t);\n\tprotected readonly _titleClasses = computed(() => clsx(this._classes().title, this.toast().classes?.title));\n\tprotected readonly _closeButtonClasses = computed(() =>\n\t\tclsx(this._classes().closeButton, this.toast().classes?.closeButton),\n\t);\n\n\tconstructor() {\n\t\teffect(() => {\n\t\t\tif (this.toast().updated) {\n\t\t\t\t// if the toast has been updated after the initial render,\n\t\t\t\t// we want to reset the timer and set the remaining time to the\n\t\t\t\t// new duration\n\t\t\t\tclearTimeout(this._timeoutId);\n\t\t\t\tthis._remainingTime = this.toast().duration ?? this.duration() ?? this._config.toastLifetime;\n\t\t\t\tthis.startTimer();\n\t\t\t}\n\t\t});\n\n\t\tafterRenderEffect((onCleanup) => {\n\t\t\tif (!this._isPromiseLoadingOrInfiniteDuration()) {\n\t\t\t\tif (this.expanded() || this.interacting()) {\n\t\t\t\t\tthis.pauseTimer();\n\t\t\t\t} else {\n\t\t\t\t\tthis.startTimer();\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tonCleanup(() => clearTimeout(this._timeoutId));\n\t\t});\n\n\t\teffect(() => {\n\t\t\tif (this.toast().delete) {\n\t\t\t\tthis.deleteToast();\n\t\t\t}\n\t\t});\n\t}\n\n\tngAfterViewInit() {\n\t\tthis._remainingTime = this.toast().duration ?? this.duration() ?? this._config.toastLifetime;\n\t\tthis._mounted.set(true);\n\t\tconst height = this._toastRef.nativeElement.getBoundingClientRect().height;\n\t\tthis._initialHeight.set(height);\n\t\tthis._addHeight({ toastId: this.toast().id, height, position: this._toastPosition() });\n\t}\n\n\tngOnDestroy() {\n\t\tclearTimeout(this._timeoutId);\n\t\tthis._removeHeight(this.toast().id);\n\t}\n\n\tdeleteToast() {\n\t\tthis._removed.set(true);\n\t\tthis._offsetBeforeRemove.set(this._offset());\n\n\t\tthis._removeHeight(this.toast().id);\n\n\t\tsetTimeout(() => {\n\t\t\tthis._dismiss(this.toast().id);\n\t\t}, this._config.timeBeforeUnmount);\n\t}\n\n\t// If toast's duration changes, it will be out of sync with the\n\t// remainingAtTimeout, so we know we need to restart the timer\n\t// with the new duration\n\n\t// Pause the timer on each hover\n\tpauseTimer() {\n\t\tif (this._lastCloseTimerStartTimeRef < this._closeTimerStartTimeRef) {\n\t\t\t// Get the elapsed time since the timer started\n\t\t\tconst elapsedTime = new Date().getTime() - this._closeTimerStartTimeRef;\n\t\t\tthis._remainingTime = this._remainingTime - elapsedTime;\n\t\t}\n\n\t\tthis._lastCloseTimerStartTimeRef = new Date().getTime();\n\t}\n\n\tstartTimer() {\n\t\tthis._closeTimerStartTimeRef = new Date().getTime();\n\t\t// Let the toast know it has started\n\t\tthis._timeoutId = setTimeout(() => {\n\t\t\tthis.toast().onAutoClose?.(this.toast());\n\t\t\tthis.deleteToast();\n\t\t}, this._remainingTime);\n\t}\n\n\tonPointerDown(event: PointerEvent) {\n\t\tif (this._disabled() || !this.toast().dismissible) return;\n\n\t\tthis._offsetBeforeRemove.set(this._offset());\n\t\tconst target = event.target as HTMLElement;\n\t\t// Ensure we maintain correct pointer capture even when going outside the toast (e.g. when swiping)\n\t\ttarget.setPointerCapture(event.pointerId);\n\t\tif (target.tagName === 'BUTTON') {\n\t\t\treturn;\n\t\t}\n\t\tthis._swiping.set(true);\n\t\tthis._pointerStartRef = { x: event.clientX, y: event.clientY };\n\t}\n\n\tonPointerUp() {\n\t\tif (this._swipeOut() || !this.toast().dismissible) return;\n\n\t\tthis._pointerStartRef = null;\n\t\tconst swipeAmount = Number(\n\t\t\tthis._toastRef.nativeElement.style.getPropertyValue('--swipe-amount').replace('px', '') || 0,\n\t\t);\n\n\t\t// Remove only if threshold is met\n\t\tif (Math.abs(swipeAmount) >= this._config.swipeThreshold) {\n\t\t\tthis._offsetBeforeRemove.set(this._offset());\n\t\t\tthis.toast().onDismiss?.(this.toast());\n\t\t\tthis.deleteToast();\n\t\t\tthis._swipeOut.set(true);\n\t\t\treturn;\n\t\t}\n\n\t\tthis._toastRef.nativeElement.style.setProperty('--swipe-amount', '0px');\n\t\tthis._swiping.set(false);\n\t}\n\n\tonPointerMove(event: PointerEvent) {\n\t\tif (!this._pointerStartRef || !this.toast().dismissible) return;\n\n\t\tconst yPosition = event.clientY - this._pointerStartRef.y;\n\t\tconst xPosition = event.clientX - this._pointerStartRef.x;\n\n\t\tconst clamp = this._coords()[0] === 'top' ? Math.min : Math.max;\n\t\tconst clampedY = clamp(0, yPosition);\n\t\tconst swipeStartThreshold = event.pointerType === 'touch' ? 10 : 2;\n\t\tconst isAllowedToSwipe = Math.abs(clampedY) > swipeStartThreshold;\n\n\t\tif (isAllowedToSwipe) {\n\t\t\tthis._toastRef.nativeElement.style.setProperty('--swipe-amount', `${yPosition}px`);\n\t\t} else if (Math.abs(xPosition) > swipeStartThreshold) {\n\t\t\t// User is swiping in wrong direction, so we disable swipe gesture\n\t\t\t// for the current pointer down interaction\n\t\t\tthis._pointerStartRef = null;\n\t\t}\n\t}\n\n\tonCloseButtonClick() {\n\t\tif (this._disabled() || !this.toast().dismissible) return;\n\t\tthis.deleteToast();\n\t\tthis.toast().onDismiss?.(this.toast());\n\t}\n\n\tonCancelClick(event: MouseEvent) {\n\t\tconst toast = this.toast();\n\t\tif (!toast.dismissible) return;\n\t\tthis.deleteToast();\n\t\ttoast.cancel?.onClick?.(event);\n\t}\n\n\tonActionClick(event: MouseEvent) {\n\t\tconst toast = this.toast();\n\t\ttoast.action?.onClick?.(event);\n\t\tif (event.defaultPrevented) return;\n\t\tthis.deleteToast();\n\t}\n\n\twrapAction(source: NonNullable<ToastT['action']>): ToastAction {\n\t\treturn {\n\t\t\t...source,\n\t\t\tonClick: (event: MouseEvent) => {\n\t\t\t\tthis.onActionClick(event);\n\t\t\t},\n\t\t};\n\t}\n\n\twrapCancelAction(source: NonNullable<ToastT['cancel']>): ToastAction {\n\t\treturn {\n\t\t\t...source,\n\t\t\tonClick: (event: MouseEvent) => {\n\t\t\t\tthis.onCancelClick(event);\n\t\t\t},\n\t\t};\n\t}\n}\n","import { Directive, inject, TemplateRef } from '@angular/core';\nimport { ToastActionTemplateContext } from '../types';\n\n/**\n * Utils directory to typecheck the context of the templateRef\n * {@link ToastActionTemplateContext} context for content\n */\n@Directive({\n\tselector: '[brnToastAction]',\n\texportAs: 'toastAction',\n})\nexport class BrnToastAction {\n\tpublic readonly templateRef = inject<TemplateRef<ToastActionTemplateContext>>(TemplateRef);\n\tstatic ngTemplateContextGuard(_directive: BrnToastAction, context: unknown): context is ToastActionTemplateContext {\n\t\treturn true;\n\t}\n}\n","import { Directive, inject, TemplateRef } from '@angular/core';\nimport { ToastActionTemplateContext } from '../types';\n\n/**\n * Utils directory to typecheck the context of the templateRef\n * {@link ToastActionTemplateContext} context for content\n */\n@Directive({\n\tselector: '[brnToastCancelAction]',\n\texportAs: 'toastCancelAction',\n})\nexport class BrnToastCancelAction {\n\tpublic readonly templateRef = inject<TemplateRef<ToastActionTemplateContext>>(TemplateRef);\n\tstatic ngTemplateContextGuard(\n\t\t_directive: BrnToastCancelAction,\n\t\tcontext: unknown,\n\t): context is ToastActionTemplateContext {\n\t\treturn true;\n\t}\n}\n","import { Pipe, PipeTransform } from '@angular/core';\nimport { Position, ToastT } from '../types';\n\n@Pipe({ name: 'toastFilter' })\nexport class ToastFilterPipe implements PipeTransform {\n\ttransform(toasts: ToastT[], index: number, position: Position): ToastT[] {\n\t\treturn toasts.filter((toast) => (!toast.position && index === 0) || toast.position === position);\n\t}\n}\n","import { Directionality } from '@angular/cdk/bidi';\nimport type { BooleanInput, NumberInput } from '@angular/cdk/coercion';\nimport { isPlatformBrowser, NgTemplateOutlet } from '@angular/common';\nimport {\n\tafterNextRender,\n\tbooleanAttribute,\n\tChangeDetectionStrategy,\n\tComponent,\n\tcomputed,\n\tcontentChild,\n\tDestroyRef,\n\tDOCUMENT,\n\tElementRef,\n\tinject,\n\tinput,\n\tlinkedSignal,\n\tnumberAttribute,\n\tPLATFORM_ID,\n\tsignal,\n\tTemplateRef,\n\tviewChild,\n\tViewEncapsulation,\n} from '@angular/core';\nimport { BrnSonnerIcon } from './brn-icon';\nimport { BrnSonnerLoader } from './brn-loader';\nimport { BrnSonnerToast } from './brn-toast';\nimport { injectBrnSonnerToasterConfig } from './brn-toaster.token';\nimport { BrnToastAction } from './directives/brn-toast-action';\nimport { BrnToastCancelAction } from './directives/brn-toast-cancel-action';\nimport { ToastFilterPipe } from './pipes/toast-filter.pipe';\nimport { toastState } from './state';\nimport type { Position, Theme, ToasterProps } from './types';\n\n@Component({\n\tselector: 'brn-sonner-toaster',\n\texportAs: 'brnSonnerToaster',\n\timports: [BrnSonnerToast, ToastFilterPipe, BrnSonnerIcon, BrnSonnerLoader, NgTemplateOutlet],\n\t// eslint-disable-next-line @nx/workspace-avoid-component-styles\n\tencapsulation: ViewEncapsulation.None,\n\tchangeDetection: ChangeDetectionStrategy.OnPush,\n\tstyleUrl: 'brn-toaster.css',\n\ttemplate: `\n\t\t@if (_toasts().length > 0) {\n\t\t\t<section [attr.aria-label]=\"'Notifications ' + _hotKeyLabel()\" [tabIndex]=\"-1\">\n\t\t\t\t@for (pos of _possiblePositions(); track pos) {\n\t\t\t\t\t<ol\n\t\t\t\t\t\t#listRef\n\t\t\t\t\t\trole=\"list\"\n\t\t\t\t\t\t[tabIndex]=\"-1\"\n\t\t\t\t\t\t[class]=\"userClass()\"\n\t\t\t\t\t\tdata-sonner-toaster\n\t\t\t\t\t\t[attr.data-theme]=\"_actualTheme()\"\n\t\t\t\t\t\t[attr.data-rich-colors]=\"richColors()\"\n\t\t\t\t\t\t[attr.dir]=\"direction()\"\n\t\t\t\t\t\t[attr.data-y-position]=\"pos.split('-')[0]\"\n\t\t\t\t\t\t[attr.data-x-position]=\"pos.split('-')[1]\"\n\t\t\t\t\t\t[style]=\"_toasterStyles()\"\n\t\t\t\t\t\t(blur)=\"handleBlur($event)\"\n\t\t\t\t\t\t(focus)=\"handleFocus($event)\"\n\t\t\t\t\t\t(mouseenter)=\"_expanded.set(true)\"\n\t\t\t\t\t\t(mousemove)=\"_expanded.set(true)\"\n\t\t\t\t\t\t(mouseleave)=\"handleMouseLeave()\"\n\t\t\t\t\t\t(pointerdown)=\"handlePointerDown($event)\"\n\t\t\t\t\t\t(pointerup)=\"_interacting.set(false)\"\n\t\t\t\t\t>\n\t\t\t\t\t\t@for (toast of _toasts() | toastFilter: $index : pos; track toast.id) {\n\t\t\t\t\t\t\t<li\n\t\t\t\t\t\t\t\tbrnSonnerToast\n\t\t\t\t\t\t\t\t[index]=\"$index\"\n\t\t\t\t\t\t\t\t[toast]=\"toast\"\n\t\t\t\t\t\t\t\t[invert]=\"invert()\"\n\t\t\t\t\t\t\t\t[visibleToasts]=\"visibleToasts()\"\n\t\t\t\t\t\t\t\t[closeButton]=\"closeButton()\"\n\t\t\t\t\t\t\t\t[interacting]=\"_interacting()\"\n\t\t\t\t\t\t\t\t[position]=\"pos\"\n\t\t\t\t\t\t\t\t[expandByDefault]=\"expand()\"\n\t\t\t\t\t\t\t\t[expanded]=\"_expanded()\"\n\t\t\t\t\t\t\t\t[actionButtonStyle]=\"toastOptions().actionButtonStyle\"\n\t\t\t\t\t\t\t\t[cancelButtonStyle]=\"toastOptions().cancelButtonStyle\"\n\t\t\t\t\t\t\t\t[class]=\"toastOptions().class ?? ''\"\n\t\t\t\t\t\t\t\t[descriptionClass]=\"toastOptions().descriptionClass ?? ''\"\n\t\t\t\t\t\t\t\t[classes]=\"toastOptions().classes ?? {}\"\n\t\t\t\t\t\t\t\t[duration]=\"toastOptions().duration ?? duration()\"\n\t\t\t\t\t\t\t\t[unstyled]=\"toastOptions().unstyled ?? false\"\n\t\t\t\t\t\t\t\t[actionTemplate]=\"_action()\"\n\t\t\t\t\t\t\t\t[cancelActionTemplate]=\"_cancelAction()\"\n\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t@if (_loadingIcon(); as loadingIcon) {\n\t\t\t\t\t\t\t\t\t<ng-container *ngTemplateOutlet=\"loadingIcon\" loading-icon />\n\t\t\t\t\t\t\t\t} @else {\n\t\t\t\t\t\t\t\t\t<brn-sonner-loader [isVisible]=\"toast.type === 'loading'\" loading-icon />\n\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t@if (_successIcon(); as successIcon) {\n\t\t\t\t\t\t\t\t\t<ng-container *ngTemplateOutlet=\"successIcon\" success-icon />\n\t\t\t\t\t\t\t\t} @else {\n\t\t\t\t\t\t\t\t\t<brn-sonner-icon type=\"success\" success-icon />\n\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t@if (_errorIcon(); as errorIcon) {\n\t\t\t\t\t\t\t\t\t<ng-container *ngTemplateOutlet=\"errorIcon\" error-icon />\n\t\t\t\t\t\t\t\t} @else {\n\t\t\t\t\t\t\t\t\t<brn-sonner-icon type=\"error\" error-icon />\n\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t@if (_warningIcon(); as warningIcon) {\n\t\t\t\t\t\t\t\t\t<ng-container *ngTemplateOutlet=\"warningIcon\" warning-icon />\n\t\t\t\t\t\t\t\t} @else {\n\t\t\t\t\t\t\t\t\t<brn-sonner-icon type=\"warning\" warning-icon />\n\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t@if (_infoIcon(); as infoIcon) {\n\t\t\t\t\t\t\t\t\t<ng-container *ngTemplateOutlet=\"infoIcon\" info-icon />\n\t\t\t\t\t\t\t\t} @else {\n\t\t\t\t\t\t\t\t\t<brn-sonner-icon type=\"info\" info-icon />\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t</li>\n\t\t\t\t\t\t}\n\t\t\t\t\t</ol>\n\t\t\t\t}\n\t\t\t</section>\n\t\t}\n\t`,\n})\nexport class BrnSonnerToaster {\n\tprivate readonly _platformId = inject(PLATFORM_ID);\n\tprivate readonly _config = injectBrnSonnerToasterConfig();\n\tprivate readonly _document = inject(DOCUMENT);\n\tprivate readonly _window = this._document.defaultView;\n\tprivate readonly _dir = inject(Directionality);\n\n\tprotected readonly _toasts = toastState.toasts;\n\tprivate readonly _heights = toastState.heights;\n\tprivate readonly _reset = toastState.reset;\n\n\tpublic readonly invert = input<ToasterProps['invert'], BooleanInput>(false, {\n\t\ttransform: booleanAttribute,\n\t});\n\tpublic readonly theme = input<ToasterProps['theme']>('light');\n\tpublic readonly position = input<ToasterProps['position']>('bottom-right');\n\tpublic readonly hotKey = input<ToasterProps['hotkey']>(['altKey', 'KeyT']);\n\tpublic readonly richColors = input<ToasterProps['richColors'], BooleanInput>(false, {\n\t\ttransform: booleanAttribute,\n\t});\n\tpublic readonly expand = input<ToasterProps['expand'], BooleanInput>(false, {\n\t\ttransform: booleanAttribute,\n\t});\n\tpublic readonly duration = input<ToasterProps['duration'], NumberInput>(this._config.toastLifetime, {\n\t\ttransform: numberAttribute,\n\t});\n\tpublic readonly visibleToasts = input<ToasterProps['visibleToasts'], NumberInput>(this._config.visibleToastsAmount, {\n\t\ttransform: numberAttribute,\n\t});\n\tpublic readonly closeButton = input<ToasterProps['closeButton'], BooleanInput>(false, {\n\t\ttransform: booleanAttribute,\n\t});\n\tpublic readonly toastOptions = input<ToasterProps['toastOptions']>({});\n\tpublic readonly offset = input<ToasterProps['offset']>(null);\n\tpublic readonly userClass = input('', { alias: 'class' });\n\tpublic readonly style = input<Record<string, string>>({});\n\n\tprotected readonly _possiblePositions = computed(\n\t\t() =>\n\t\t\tArray.from(\n\t\t\t\tnew Set(\n\t\t\t\t\t[\n\t\t\t\t\t\tthis.position(),\n\t\t\t\t\t\t...this._toasts()\n\t\t\t\t\t\t\t.filter((toast) => toast.position)\n\t\t\t\t\t\t\t.map((toast) => toast.position),\n\t\t\t\t\t].filter(Boolean),\n\t\t\t\t),\n\t\t\t) as Position[],\n\t);\n\n\tprotected readonly _expanded = linkedSignal({\n\t\tsource: this._toasts,\n\t\tcomputation: (toasts) => toasts.length < 1,\n\t});\n\tprotected readonly _actualTheme = linkedSignal({\n\t\tsource: this.theme,\n\t\tcomputation: (newTheme) => this.getActualTheme(newTheme),\n\t});\n\tprotected readonly _interacting = signal(false);\n\n\t/** internal **/\n\tpublic readonly direction = this._dir.valueSignal;\n\n\tprivate readonly _listRef = viewChild<ElementRef<HTMLOListElement>>('listRef');\n\tprivate readonly _lastFocusedElementRef = signal<HTMLElement | null>(null);\n\tprivate readonly _isFocusWithinRef = signal(false);\n\n\tprotected readonly _hotKeyLabel = computed(() => this.hotKey().join('+').replace(/Key/g, '').replace(/Digit/g, ''));\n\n\tprotected readonly _toasterStyles = computed(() => ({\n\t\t'--front-toast-height': `${this._heights()[0]?.height}px`,\n\t\t'--offset':\n\t\t\ttypeof this.offset() === 'number' ? `${this.offset()}px` : (this.offset() ?? `${this._config.viewPortOffset}`),\n\t\t'--width': `${this._config.toastWidth}px`,\n\t\t'--gap': `${this._config.gap}px`,\n\t\t...this.style(),\n\t}));\n\n\tprotected readonly _loadingIcon = contentChild('loadingIcon', { read: TemplateRef });\n\tprotected readonly _successIcon = contentChild('successIcon', { read: TemplateRef });\n\tprotected readonly _errorIcon = contentChild('errorIcon', { read: TemplateRef });\n\tprotected readonly _warningIcon = contentChild('warningIcon', { read: TemplateRef });\n\tprotected readonly _infoIcon = contentChild('infoIcon', { read: TemplateRef });\n\tprotected readonly _action = contentChild(BrnToastAction);\n\tprotected readonly _cancelAction = contentChild(BrnToastCancelAction);\n\n\tconstructor() {\n\t\tthis._reset();\n\n\t\tconst destroyRef = inject(DestroyRef);\n\n\t\tafterNextRender(() => {\n\t\t\tthis._document.addEventListener('keydown', this.handleKeydown);\n\n\t\t\t// matchMedia returns a new MediaQueryList on every call, so the listener has to be\n\t\t\t// removed from the same list it was added to.\n\t\t\tconst prefersDark = this._window?.matchMedia('(prefers-color-scheme: dark)');\n\t\t\tprefersDark?.addEventListener('change', this.handleThemePreferenceChange);\n\n\t\t\tdestroyRef.onDestroy(() => {\n\t\t\t\tthis._document.removeEventListener('keydown', this.handleKeydown);\n\t\t\t\tprefersDark?.removeEventListener('change', this.handleThemePreferenceChange);\n\t\t\t});\n\t\t});\n\t}\n\n\thandleBlur(event: FocusEvent) {\n\t\tif (this._isFocusWithinRef() && !(event.target as HTMLOListElement).contains(event.relatedTarget as HTMLElement)) {\n\t\t\tthis._isFocusWithinRef.set(false);\n\t\t\tif (this._lastFocusedElementRef()) {\n\t\t\t\tthis._lastFocusedElementRef()?.focus({ preventScroll: true });\n\t\t\t\tthis._lastFocusedElementRef.set(null);\n\t\t\t}\n\t\t}\n\t}\n\n\thandleFocus(event: FocusEvent) {\n\t\tconst isNotDismissible = event.target instanceof HTMLElement && event.target.dataset['dismissible'] === 'false';\n\n\t\tif (isNotDismissible) return;\n\n\t\tif (!this._isFocusWithinRef()) {\n\t\t\tthis._isFocusWithinRef.set(true);\n\t\t\tthis._lastFocusedElementRef.set(event.relatedTarget as HTMLElement);\n\t\t}\n\t}\n\n\thandlePointerDown(event: MouseEvent) {\n\t\tconst isNotDismissible = event.target instanceof HTMLElement && event.target.dataset['dismissible'] === 'false';\n\n\t\tif (isNotDismissible) return;\n\t\tthis._interacting.set(true);\n\t}\n\n\thandleMouseLeave() {\n\t\tif (!this._interacting()) {\n\t\t\tthis._expanded.set(false);\n\t\t}\n\t}\n\n\tprivate readonly handleKeydown = (event: KeyboardEvent) => {\n\t\tconst listRef = this._listRef()?.nativeElement;\n\t\tif (!listRef) return;\n\n\t\tconst isHotkeyPressed = this.hotKey().every((key) => (event as never)[key] || event.code === key);\n\n\t\tif (isHotkeyPressed) {\n\t\t\tthis._expanded.set(true);\n\t\t\tlistRef.focus();\n\t\t}\n\n\t\tif (\n\t\t\tevent.code === 'Escape' &&\n\t\t\t(this._document.activeElement === listRef || listRef.contains(this._document.activeElement))\n\t\t) {\n\t\t\tthis._expanded.set(false);\n\t\t}\n\t};\n\n\tprivate readonly handleThemePreferenceChange = ({ matches }: MediaQueryListEvent) => {\n\t\tif (this.theme() === 'system') {\n\t\t\tthis._actualTheme.set(matches ? 'dark' : 'light');\n\t\t}\n\t};\n\n\tprivate getActualTheme(theme: Theme): Theme {\n\t\tif (theme !== 'system') {\n\t\t\treturn theme;\n\t\t}\n\n\t\tif (isPlatformBrowser(this._platformId) && this._window) {\n\t\t\tconst prefersDark = this._window.matchMedia?.('(prefers-color-scheme: dark)').matches;\n\t\t\treturn prefersDark ? 'dark' : 'light';\n\t\t}\n\n\t\treturn 'light';\n\t}\n}\n","import { BrnSonnerToaster } from './lib/brn-toaster';\nimport { BrnToastAction } from './lib/directives/brn-toast-action';\nimport { BrnToastCancelAction } from './lib/directives/brn-toast-cancel-action';\n\nexport * from './lib/brn-toaster';\nexport * from './lib/brn-toaster.token';\nexport * from './lib/directives/brn-toast-action';\nexport * from './lib/directives/brn-toast-cancel-action';\nexport * from './lib/state';\nexport * from './lib/types';\n\nexport const BrnSonnerImports = [BrnSonnerToaster, BrnToastAction, BrnToastCancelAction] as const;\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;MAiDa,aAAa,CAAA;AACT,IAAA,IAAI,GAAG,KAAK,CAAa,SAAS,2EAAC;2HADvC,aAAa,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA;AAAb,uBAAA,OAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,IAAA,EAAA,aAAa,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,iBAAA,EAAA,MAAA,EAAA,EAAA,IAAA,EAAA,EAAA,iBAAA,EAAA,MAAA,EAAA,UAAA,EAAA,MAAA,EAAA,QAAA,EAAA,IAAA,EAAA,UAAA,EAAA,KAAA,EAAA,iBAAA,EAAA,IAAA,EAAA,EA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