{"version":3,"file":"transcription.module.min.js","sources":["../../../.config/config.js","../../../src/core/api.js","../../../src/component/transcription/script/accordion/transcription-selector.js","../../../src/component/transcription/script/accordion/transcription.js","../../../src/component/transcription/index.js","../../../src/component/transcription/main.js"],"sourcesContent":["const config = {\r\n prefix: 'fr',\r\n namespace: 'dsfr',\r\n organisation: '@gouvfr',\r\n version: '1.11.2'\r\n};\r\n\r\nexport default config;\r\n","import config from './config.js';\nconst api = window[config.namespace];\nexport default api;\n","import api from '../../api.js';\n\nconst TRANSCRIPTION = api.internals.ns.selector('transcription');\n\nexport const TranscriptionSelector = {\n TRANSCRIPTION: TRANSCRIPTION,\n BUTTON: `${TRANSCRIPTION}__btn`\n};\n","import api from '../../api.js';\nimport { TranscriptionSelector } from './transcription-selector';\n\nclass Transcription extends api.core.Instance {\n static get instanceClassName () {\n return 'Transcription';\n }\n\n get collapsePrimary () {\n const buttons = this.element.children.map(child => child.getInstance('CollapseButton')).filter(button => button !== null && button.hasClass(TranscriptionSelector.BUTTON));\n return buttons[0];\n }\n}\n\nexport { Transcription };\n","import api from './api.js';\nimport { Transcription } from './script/accordion/transcription';\nimport { TranscriptionSelector } from './script/accordion/transcription-selector.js';\n\napi.transcription = {\n Transcription: Transcription,\n TranscriptionSelector: TranscriptionSelector\n};\n\nexport default api;\n","import api from './index.js';\n\napi.internals.register(api.transcription.TranscriptionSelector.TRANSCRIPTION, api.transcription.Transcription);\n\nexport default api;\n"],"names":["api","window","TRANSCRIPTION","internals","ns","selector","TranscriptionSelector","BUTTON","Transcription","core","Instance","instanceClassName","collapsePrimary","this","element","children","map","child","getInstance","filter","button","hasClass","transcription","register"],"mappings":";AAAA,MCCMA,EAAMC,OAAuB,KCC7BC,EAAgBF,EAAIG,UAAUC,GAAGC,SAAS,iBAEnCC,EAAwB,CACnCJ,cAAeA,EACfK,OAAQ,GAAGL,UCHb,MAAMM,UAAsBR,EAAIS,KAAKC,SACxBC,+BACT,MAAO,gBAGLC,sBAEF,OADgBC,KAAKC,QAAQC,SAASC,KAAIC,GAASA,EAAMC,YAAY,oBAAmBC,QAAOC,GAAqB,OAAXA,GAAmBA,EAAOC,SAASf,EAAsBC,UACnJ,ICNnBP,EAAIsB,cAAgB,CAClBd,cAAeA,EACfF,sBAAuBA,GCJzBN,EAAIG,UAAUoB,SAASvB,EAAIsB,cAAchB,sBAAsBJ,cAAeF,EAAIsB,cAAcd"}