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