PageSourceSearch

https://faders.rs.gov.br/matriz_common/versions/2.1.5/components/lgpd-popup/lgpd-popup.js?2.1.5.161.6+3

js faders.rs.gov.br collected 2026-09-24 23:10:06 UTC 1,133 bytes, 37 lines download raw bytes

1
2window.addEventListener("DOMContentLoaded", function() {
3    popupConsentimento($, LGPDAgreementManager());
4});
5
6function popupConsentimento($, lgpdAgreementManager) {
7
8    if(lgpdAgreementManager.isPending()) {
9        inicializaPopup($);
10    }
11
12    function inicializaPopup($) {
13        $("#matriz2-cookie-confirmation").removeClass("hidden");
14        $("#matriz2-cookie-confirmation-button").on("click", function(){consenteCookies("aceito")});
15        $("#matriz2-cookie-confirmation-basic-button").on("click", function(){consenteCookies("basico")});
16    }
17
18    function fechaPopup() {
19        $("#matriz2-cookie-confirmation").hide();
20    }
21
22    function consenteCookies(acao) {
23        lgpdAgreementManager.salvaConsentimento(acao)
24            .fail(erroAoEfetuarConsentimento)
25            .done(sucessoAoSalvarConsentimento);
26    }
27
28    function erroAoEfetuarConsentimento(xhr) {
29        matriz.box.notify.warning(xhr.responseText);
30    }
31
32    function sucessoAoSalvarConsentimento(resposta) {
33        window.location.reload(true);
34        $("#matriz2-cookie-confirmation").hide();
35    }
36
37}

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.