{"version":3,"sources":["src/app/components/notification/notification.component.ts","src/app/components/notification/notification.component.html","src/app/constants/time.const.ts","node_modules/uuid/dist/esm-browser/stringify.js","node_modules/uuid/dist/esm-browser/rng.js","node_modules/uuid/dist/esm-browser/native.js","node_modules/uuid/dist/esm-browser/v4.js","src/app/components/notification/notification.service.ts"],"sourcesContent":["/**\n * Copyright (c) 2020-2024 by Bosch.IO GmbH\n *\n * http://www.bosch.io\n * All rights reserved,\n * also regarding any disposal, exploitation, reproduction,\n * editing, distribution, as well as in the event of\n * applications for industrial property rights.\n *\n * This software is the confidential and proprietary information\n * of Bosch.IO GmbH. You shall not disclose\n * such Confidential Information and shall use it only in\n * accordance with the terms of the license agreement you\n * entered into with Bosch.IO.\n */\nimport { Component, computed } from '@angular/core';\nimport { INotificationInfoExtended } from '@components/notification/notification.service';\nimport { AppStateService } from '@services/index';\n\nexport enum NotificationType {\n SUCCESS = '-success',\n ERROR = '-error',\n INFO = '-neutral',\n WARNING = '-warning',\n}\n@Component({\n selector: 'nal3d-notification',\n standalone: true,\n imports: [],\n templateUrl: './notification.component.html',\n styleUrl: './notification.component.scss',\n})\nexport class NotificationComponent {\n NotificationType = NotificationType;\n notifications = computed(() => this.appStateService.notifications());\n constructor(private appStateService: AppStateService) {}\n\n removeNotification(notification: INotificationInfoExtended) {\n const notifications = this.notifications().filter(\n (n) => n.id !== notification.id,\n );\n\n this.appStateService.notifications.set(notifications);\n }\n}\n","