{"version":3,"file":"rockValidation.obs.js","sources":["../../../Framework/Controls/rockValidation.obs"],"sourcesContent":["<!-- Copyright by the Spark Development Network; Licensed under the Rock Community License -->\n<template>\n    <NotificationBox v-show=\"hasErrors\" alertType=\"validation\">\n        Please correct the following:\n        <ul>\n            <li v-for=\"error of errors\">\n                <strong>{{ error.name }}</strong>\n                {{ error.text }}\n            </li>\n        </ul>\n    </NotificationBox>\n</template>\n\n<script setup lang=\"ts\">\n    import NotificationBox from \"./notificationBox.obs\";\n    import { computed, PropType } from \"vue\";\n    import { FormError } from \"@Obsidian/Utility/form\";\n\n    const props = defineProps({\n        /** The errors that should be displayed. */\n        errors: {\n            type: Array as PropType<FormError[]>,\n            required: true\n        }\n    });\n\n    const hasErrors = computed((): boolean => props.errors.length > 0);\n</script>\n"],"names":["props","__props","hasErrors","computed","errors","length"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;UAkBI,IAAMA,KAAK,GAAGC,OAMZ,CAAA;MAEF,IAAA,IAAMC,SAAS,GAAGC,QAAQ,CAAC,MAAeH,KAAK,CAACI,MAAM,CAACC,MAAM,GAAG,CAAC,CAAC,CAAA;;;;;;;;;;;;;;;;;;;;;;"}