{"version":3,"file":"notificationBox.obs.js","sources":["../../../Framework/Controls/notificationBox.obs"],"sourcesContent":["<!-- Copyright by the Spark Development Network; Licensed under the Rock Community License -->\n<template>\n <div :class=\"typeClass\">\n <button v-if=\"dismissible\" type=\"button\" class=\"close\" aria-label=\"Hide This Alert\" @click.prevent=\"dismiss\">\n <i class=\"fa fa-times\" aria-hidden=\"true\"></i>\n </button>\n <strong v-if=\"heading\">{{ heading }}</strong>\n <slot />\n <small v-if=\"$slots.details\" class=\"margin-l-sm\">\n <a href=\"#\" @click.prevent=\"showDetails = !showDetails\">Show Details</a>\n </small>\n <TransitionVerticalCollapse v-if=\"$slots.details\">\n <p class='margin-t-sm js-notification-details' v-if=\"showDetails\">\n <slot name=\"details\" />\n </p>\n </TransitionVerticalCollapse>\n </div>\n</template>\n\n<script setup lang=\"ts\">\n import { PropType, computed, ref } from \"vue\";\n import { AlertType } from \"@Obsidian/Enums/Controls/alertType\";\n import { LiteralUnion } from \"@Obsidian/Types/Utility/support\";\n import TransitionVerticalCollapse from \"./transitionVerticalCollapse.obs\";\n\n const props = defineProps({\n dismissible: {\n type: Boolean as PropType<boolean>,\n default: false\n },\n\n alertType: {\n type: String as PropType<LiteralUnion<AlertType>>,\n default: AlertType.Default\n },\n\n /** Bold text that appears before the main message */\n heading: {\n type: String,\n default: null\n }\n });\n\n const emit = defineEmits<{\n (e: \"dismiss\"): void\n }>();\n\n function dismiss(): void {\n emit(\"dismiss\");\n }\n\n const typeClass = computed(() => `alert alert-${props.alertType}`);\n const showDetails = ref(false);\n</script>"],"names":["props","__props","emit","__emit","dismiss","typeClass","computed","concat","alertType","showDetails","ref"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;UAyBI,IAAMA,KAAK,GAAGC,OAgBZ,CAAA;UAEF,IAAMC,IAAI,GAAGC,MAET,CAAA;UAEJ,SAASC,OAAOA,GAAS;YACrBF,IAAI,CAAC,SAAS,CAAC,CAAA;MACnB,KAAA;UAEA,IAAMG,SAAS,GAAGC,QAAQ,CAAC,MAAA,cAAA,CAAAC,MAAA,CAAqBP,KAAK,CAACQ,SAAS,CAAE,CAAC,CAAA;MAClE,IAAA,IAAMC,WAAW,GAAGC,GAAG,CAAC,KAAK,CAAC,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}