{
    /**
     * @param {HTMLElement} host
     * @param {import("../../pdfjs/1.0.1/GOVBRPDFJSUserControl.mjs").GOVBRPDFJSUserControl} data
     */
    const init = async (host, data) => {
        await GOVBRPlataformaJS.importarModulo(data.URL_CDN, 'pdfjs', data.VERSAO_JS_COMPONENTE, 'GOVBRPDFJSUC');

        data.URL_CDN = new URL('../../', window.location).toString();
        host.innerHTML = `
        <div class="govbr-pdfjs-content" id="${data.IDENTIFICADOR_COMPONENTE}">
            <style>
                .govbr-pdfjs-content {
                    height: 100%;
                    width: 100%;
                    padding: 0.25rem;
                    border: 1px solid #99999955;
                    border-radius: 0.25rem;
                }
                
                .govbr-pdfjs-content-frame {
                    min-height: 40rem;
                    min-width: 40rem;
                    height: 100%;
                    width: 100%;
                    border: none;
                    border-radius: 0.25rem;
                }
            </style>
        </div>
        `;
        new GOVBRPDFJSUC(data, host.querySelector('.govbr-pdfjs-content'));
    };
    GOVBRDemos.addInitComponente('pdfjs', init);
}
