PageSourceSearch

https://buscacepinter.correios.com.br/core/templates/bunker/js/bunker.js

js correios.com.br collected 2026-09-24 07:27:46 UTC 1,793 bytes, 68 lines download raw bytes

1import './menu.js';
2import './botoes.js';
3import './acessibilidade.js';
4import * as forms from './forms.js';
5import * as modal from './modal.js';
6import * as alerta from './alerta.js';
7import * as tabs from './tabs.js';
8import * as tabelas from './tabelas.js';
9
10document.body.classList.remove('oculto');
11// Tema escuro da Black Friday
12//document.body.classList.add('contrast');
13
14if ('ontouchstart' in window) {
15  document.body.classList.add('touch');
16}
17
18if (!document.querySelector('body > footer')) {
19  document.body.classList.add('modo-foco');
20}
21
22const loading = document.getElementById('loading');
23
24const loadingVisivel = ev => {
25  loading.classList.add('visivel');
26  setTimeout(() => {
27    loading.classList.remove('visivel');
28  }, 30000);
29};
30
31const registraLoading = () => {
32  document.querySelectorAll('a[href]:not([target="_blank"])').forEach(a => {
33    if (a.href.includes('#')) return;
34    a.addEventListener('click', loadingVisivel);
35  });
36};
37
38const observa = () => {
39  observer.observe(document.body, { attributes: true, childList: true, subtree: true });
40};
41
42const observer = new MutationObserver(() => {
43  registraLoading();
44  observer.disconnect();
45  if (document.querySelector('.checks')) {
46    document.querySelectorAll('.checks input[type=checkbox], .checks input[type=radio]').forEach(check => {
47      check.addEventListener('change', updateChecks);
48    });
49  }
50  observa();
51});
52observa();
53registraLoading();
54
55const updateChecks = () => {
56  document.querySelectorAll('.checks input[type=checkbox], .checks input[type=radio]').forEach(check => {
57    const label = check.parentNode;
58    if (check.checked) {
59      label.classList.add('sel');
60    } else {
61      label.classList.remove('sel');
62    }
63  });
64};
65
66updateChecks();
67
68export { forms, modal, alerta, tabs, updateChecks };

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.