TP_JO2024/home/dist/component/transcription/transcription.module.js

37 lines
1 KiB
JavaScript
Raw Permalink Normal View History

2024-03-27 17:19:37 +01:00
/*! DSFR v1.11.2 | SPDX-License-Identifier: MIT | License-Filename: LICENSE.md | restricted use (see terms and conditions) */
const config = {
prefix: 'fr',
namespace: 'dsfr',
organisation: '@gouvfr',
version: '1.11.2'
};
const api = window[config.namespace];
const TRANSCRIPTION = api.internals.ns.selector('transcription');
const TranscriptionSelector = {
TRANSCRIPTION: TRANSCRIPTION,
BUTTON: `${TRANSCRIPTION}__btn`
};
class Transcription extends api.core.Instance {
static get instanceClassName () {
return 'Transcription';
}
get collapsePrimary () {
const buttons = this.element.children.map(child => child.getInstance('CollapseButton')).filter(button => button !== null && button.hasClass(TranscriptionSelector.BUTTON));
return buttons[0];
}
}
api.transcription = {
Transcription: Transcription,
TranscriptionSelector: TranscriptionSelector
};
api.internals.register(api.transcription.TranscriptionSelector.TRANSCRIPTION, api.transcription.Transcription);
//# sourceMappingURL=transcription.module.js.map