{"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"],"names":["formatDialogId","id","type","formatAriaLabel","str","props","__props","emit","__emit","modal","ref","restoreFocus","onMounted","useModalFocusTrap","modalClass","computed","wrapperClass","containerClass","buttonWrapperClass","closeModal","toCamelcase","x"],"mappings":"oKAAO,SAASA,EAAeC,EAAIC,EAAO,GAAI,CAK1C,MAAO,UAAYD,GAAQC,EAAQ,IAAMA,EAAO,GACpD,CAEO,SAASC,EAAgBC,EAAM,GAAI,CAItC,OAAOA,EAAI,QAAQ,kBAAmB,OAAO,EAClC,QAAQ,UAAW,GAAG,EACtB,aAEf,iRCXA,MAAMC,EAAQC,EAeRC,EAAOC,EAEPC,EAAQC,EAAI,IAAI,EAEtB,IAAIC,EAEJC,EAAU,IAAM,CACfD,EAAeE,EAAkBJ,EAAM,MAAOF,EAAM,cAAeF,EAAM,aAAa,EAAE,YACzF,CAAC,EAED,MAAMS,EAAaC,EAAS,IAAM,aAAeV,EAAM,UAAU,SAAW,QAAQ,EAC9EW,EAAeD,EAAS,IAAM,qBAAuBV,EAAM,UAAU,QAAQ,EAC7EY,EAAiBF,EAAS,IAAM,aAAeV,EAAM,UAAU,SAAW,yBAAyB,EACnGa,EAAqBH,EAAS,IAAM,aAAeV,EAAM,UAAU,SAAW,wBAAwB,EAEtGc,EAAa,IAAM,CACxBZ,EAAK,aAAa,EAClBI,GACD,EAEMS,EAAehB,GACbA,EAAI,QAAQ,MAAOiB,GAAGA,EAAE,CAAC,EAAE,YAAW,CAAE"}