PageSourceSearch

https://www.diocesesaocarlos.org.br/wp-content/plugins/wp-parresia…/public/elementor/widgets/person-list.js

js diocesesaocarlos.org.br collected 2026-10-02 19:54:58 UTC 4,806 bytes, 2 lines download raw bytes

1!function(e,t,r,o){var n="u">typeof globalThis?globalThis:"u">typeof self?self:"u">typeof window?window:"u">typeof global?global:{},l="function"==typeof n[o]&&n[o],i=l.cache||{},a="u">typeof module&&"function"==typeof module.require&&module.require.bind(module);function c(t,r){if(!i[t]){if(!e[t]){var s="function"==typeof n[o]&&n[o];if(!r&&s)return s(t,!0);if(l)return l(t,!0);if(a&&"string"==typeof t)return a(t);var d=Error("Cannot find module '"+t+"'");throw d.code="MODULE_NOT_FOUND",d}h.resolve=function(r){var o=e[t][1][r];return null!=o?o:r},h.cache={};var u=i[t]=new c.Module(t);e[t][0].call(u.exports,h,u,u.exports,this)}return i[t].exports;function h(e){var t=h.resolve(e);return!1===t?{}:c(t)}}c.isParcelRequire=!0,c.Module=function(e){this.id=e,this.bundle=c,this.exports={}},c.modules=e,c.cache=i,c.parent=l,c.register=function(t,r){e[t]=[function(e,t){t.exports=r},{}]},Object.defineProperty(c,"root",{get:function(){return n[o]}}),n[o]=c;for(var s=0;s<t.length;s++)c(t[s]);if(r){var d=c(r);"object"==typeof exports&&"u">typeof module?module.exports=d:"function"==typeof define&&define.amd&&define(function(){return d})}}({kLiE9:[function(e,t,r){class o{constructor(){this.handleSearchFilter(),this.handleAlphabeticFilter(),this.handleFilterSelect(),this.handleSectorFilterSelect(),this.handleRegionFilterSelect(),this.handleRegionFilterSelectOption(),this.handlePaginationList(),this.handleSinglePageButtons(),this.handleClearFilters()}activeLoader(){let e=document.querySelector("#person-register-loader");e&&e.classList.remove("hidden"),document.querySelectorAll("#person-list-filters input, #person-list-filters button, #person-list-filters select").forEach(e=>{e.setAttribute("disabled","true")})}handleAlphabeticFilter(){document.querySelectorAll("#person-list-alphabetic-filter > button").forEach(e=>{e.addEventListener("click",()=>{let t=e.getAttribute("data-letter");if(t){let e=new URL(window.location.href);e.searchParams.set("letter",t),e.pathname.includes("/page/")&&(e.pathname=e.pathname.replace(/\/page\/\d+\/?$/,"/")),this.activeLoader(),location.replace(e.toString())}})})}handleSearchFilter(){let e=document.querySelector("#person-list-search-form"),t=document.querySelector("#person-list-search-input");e&&e.addEventListener("submit",e=>{e.preventDefault();let r=new URL(window.location.href);r.searchParams.delete("search"),t.value&&r.searchParams.set("search",t.value),this.activeLoader(),location.replace(r.toString())})}handleClearFilters(){let e=document.querySelector("#person-list-clear-filters");e&&e.addEventListener("click",()=>{let e=new URL(window.location.href);e.search="",this.activeLoader(),location.replace(e.toString())})}handleFilterSelect(){let e=document.querySelector("#person-list-role-select");e&&e.addEventListener("change",()=>{let t=new URL(window.location.href);t.searchParams.delete("role"),e.value&&t.searchParams.set("role",e.value),t.pathname.includes("/page/")&&(this.activeLoader(),location.replace(t.pathname.replace(/\/page\/\d+\/?$/,"/"))),this.activeLoader(),location.replace(t.toString())})}handleSinglePageButtons(){document.querySelectorAll("button.person-single-button").forEach(e=>{e.addEventListener("click",()=>{let t=e.getAttribute("data-url");t&&(this.activeLoader(),location.replace(t))})})}handleRegionFilterSelectOption(){let e=document.querySelector("#person-list-region-select");if(e){let t=e.options[e.selectedIndex];t&&this.setSectorOptions(t)}}setSectorOptions(e){if(!e.getAttribute("data-item"))return;let t=JSON.parse(e.getAttribute("data-item")),r=document.querySelector("#person-list-sector-select"),o=r.getAttribute("data-sector");t.sectors&&(r.innerHTML='<option value="">Selecione um Setor</option>'),t.sectors.forEach(e=>{let t=document.createElement("option");t.value=e.id,t.innerText=e.name,o==e.id&&(t.selected=!0),r.appendChild(t)})}handleSectorFilterSelect(){let e=document.querySelector("#person-list-sector-select");e&&e.addEventListener("change",()=>{let t=new URL(window.location.href);t.searchParams.delete("setor"),e.value&&t.searchParams.set("setor",e.value),this.activeLoader(),location.replace(t.toString())})}handleRegionFilterSelect(){let e=document.querySelector("#person-list-region-select");e&&e.addEventListener("change",()=>{let t=new URL(window.location.href);t.searchParams.delete("region"),t.searchParams.delete("sector"),e.value&&t.searchParams.set("region",e.value),this.activeLoader(),location.replace(t.toString())})}handlePaginationList(){document.querySelectorAll(".pagination-item").forEach(e
1=>{let t=e.getAttribute("data-page");if(t){let r=new URL(window.location.href);e.href=`${e.href}page/${t}/?${r.searchParams.toString()}`}})}}document.addEventListener("DOMContentLoaded",()=>{new o})},{}]},["kLiE9"],"kLiE9","parcelRequire734e");
2//# sourceMappingURL=person-list.js.map

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.