{"version":3,"file":"genericModal-B17jAxvj.js","sources":["../../../../Coloplast.UI/src/shared/services/ariaReferenceService.js","../../../../Coloplast.UI/src/shared/components/generic-modal/genericModal.vue"],"sourcesContent":["export function formatDialogId(id, type = '') {\r\n /**\r\n * Can be used for aria dialog id generation.\r\n * Both with and without the type argument.\r\n */\r\n return 'dialog-' + id + ((type) ? '-' + type : '');\r\n}\r\n\r\nexport function formatAriaLabel(str = \"\") {\r\n /**\r\n * Format str to kebab-case for aria labels.\r\n */\r\n return str.replace(/([a-z])([A-Z])/g, \"$1-$2\")\r\n .replace(/[\\s_]+/g, '-')\r\n .toLowerCase();\r\n\r\n}\r\n","\r\n\r\n\r\n