{"version":3,"file":"DisclaimerDialog-CcBFI9Jq.js","sources":["../../../../libs/ui/src/components/Disclaimer/DisclaimerDialog.tsx"],"sourcesContent":["import {CloseButton} from '@headlessui/react'\nimport {useTranslation} from 'react-i18next'\n\nimport {DialogNew} from '../DialogNew'\nimport {useDebugStore, useDisclaimerDialogStore, useInlineDisclaimerStore} from '../../stores'\nimport {Button} from '../Button'\nimport {RichText} from '../RichText'\n\nexport const DisclaimerDialog = () => {\n const isDebug = useDebugStore().isDebugOnMode('footnote')\n const {activeId, unsetActiveID} = useDisclaimerDialogStore()\n const {findInlineDisclaimer} = useInlineDisclaimerStore()\n const {t} = useTranslation()\n\n const disclaimer = findInlineDisclaimer(activeId ?? '')\n\n if (isDebug) {\n console.log(`[${activeId}] was ${disclaimer ? '': 'not '}found inside the inlineDisclaimers store...`)\n }\n\n const textClick = disclaimer?.textClick ?? ''\n const value = textClick.trim().length === 0 ? '' : textClick\n\n if (value === '') {\n return null\n }\n\n return (\n \n \n \n \n \n \n \n \n {t('common:close')}\n \n \n \n )\n\n}"],"names":["DisclaimerDialog","isDebug","useDebugStore","activeId","unsetActiveID","useDisclaimerDialogStore","findInlineDisclaimer","useInlineDisclaimerStore","t","useTranslation","disclaimer","textClick","value","jsxs","DialogNew","jsx","RichText","CloseButton","Button"],"mappings":"2LAQO,MAAMA,EAAmB,IAAM,CACpC,MAAMC,EAAUC,IAAgB,cAAc,UAAU,EAClD,CAAC,SAAAC,EAAU,cAAAC,CAAa,EAAIC,EAAyB,EACrD,CAAC,qBAAAC,CAAoB,EAAIC,EAAyB,EAClD,CAAC,EAAAC,CAAC,EAAIC,EAAe,EAErBC,EAAaJ,EAAqBH,GAAY,EAAE,EAElDF,GACF,QAAQ,IAAI,IAAIE,CAAQ,SAASO,EAAa,GAAI,MAAM,6CAA6C,EAGjG,MAAAC,GAAYD,GAAA,YAAAA,EAAY,YAAa,GACrCE,EAAQD,EAAU,KAAA,EAAO,SAAW,EAAI,GAAKA,EAEnD,OAAIC,IAAU,GACL,KAIPC,EAAA,KAACC,EAAA,CACC,KAAM,QACN,KAAM,GAAQJ,GAAcP,GAC5B,QAASC,EAET,SAAA,CAAAW,EAAA,IAACD,EAAU,QAAV,CACC,SAAAC,EAAAA,IAACD,EAAU,cAAV,CACC,SAAAC,EAAAA,IAACC,EAAS,CAAA,QAASJ,CAAO,CAAA,CAC5B,CAAA,EACF,EACCG,EAAA,IAAAD,EAAU,OAAV,CAAiB,UAAW,mBAC3B,SAAAC,EAAA,IAACE,EAAA,CACC,GAAIC,EACJ,QAAS,eACT,KAAM,SAEL,WAAE,cAAc,CAAA,CAAA,CAErB,CAAA,CAAA,CAAA,CACF,CAGJ"}