PageSourceSearch

https://www.qualicorp.com.br/wp-content/themes/qualicorp/public/dist/js/component-dialog-modal.js?ver=0.0.1

js qualicorp.com.br collected 2026-10-01 13:51:49 UTC 717 bytes, 25 lines download raw bytes

1const openModalDialog = (target) => {
2	const modal = target.querySelector('.modal-dialog')
3	modal.classList.add('active')
4}
5
6const closeModalDialog = (target) => {
7	const modal = target.querySelector('.modal-dialog')
8	modal.classList.remove('active')
9}
10
11const closeModalDialogInternal = () => {
12	const buttons = document.querySelectorAll('.modal-dialog .modal-dialog__header i.fa-xmark')
13	buttons.forEach((button) => {
14		button.addEventListener('click', (event) => {
15			const modal = event.currentTarget.closest('.wp-block-form-home-pme')
16			if (typeof closeModalDialog === 'function') {
17				closeModalDialog(modal)
18			}
19		})
20	})
21}
22
23document.addEventListener('DOMContentLoaded', () => {
24	closeModalDialogInternal()
25})

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.