Current File : /home/pacjaorg/.trash/media.1/system/js/core.min.js
(function(){"use strict";function i(){return i=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var o=arguments[e];for(var r in o)({}).hasOwnProperty.call(o,r)&&(t[r]=o[r])}return t},i.apply(null,arguments)}const d=new Set(["background","cite","href","itemtype","longdesc","poster","src","xlink:href"]),f=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:/?#]*(?:[/?#]|$))/i,p=(t,e)=>{const o=t.nodeName.toLowerCase();return e.includes(o)?d.has(o)?!!f.test(t.nodeValue):!0:e.filter(r=>r instanceof RegExp).some(r=>r.test(o))};function J(t,e,o){if(!t.length)return t;if(o&&typeof o=="function")return o(t);const a=new window.DOMParser().parseFromString(t,"text/html"),n=[].concat(...a.body.querySelectorAll("*"));for(const l of n){const m=l.nodeName.toLowerCase();if(!Object.keys(e).includes(m)){l.remove();continue}const h=[].concat(...l.attributes),g=[].concat(e["*"]||[],e[m]||[]);for(const u of h)p(u,g)||l.removeAttribute(u.nodeName)}return a.body.innerHTML}/**
 * @copyright  (C) 2018 Open Source Matters, Inc. <https://www.joomla.org>
 * @license    GNU General Public License version 2 or later; see LICENSE.txt
 */const c={"*":["class","dir","id","lang","role",/^aria-[\w-]*$/i,/^data-[\w-]*$/i],a:["target","href","title","rel"],area:[],b:[],br:[],col:[],code:[],div:[],em:[],hr:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],i:[],img:["src","srcset","alt","title","width","height"],li:[],ol:[],p:[],pre:[],s:[],small:[],span:[],sub:[],sup:[],strong:[],u:[],ul:[],button:["type"],input:["accept","alt","autocomplete","autofocus","capture","checked","dirname","disabled","height","list","max","maxlength","min","minlength","multiple","type","name","pattern","placeholder","readonly","required","size","src","step","value","width","inputmode"],select:["name"],textarea:["name"],option:["value","selected"]};window.Joomla=window.Joomla||{},Joomla.editors=Joomla.editors||{},Joomla.editors.instances=Joomla.editors.instances||{},Joomla.Modal=Joomla.Modal||{current:"",setCurrent:t=>{Joomla.Modal.current=t},getCurrent:()=>Joomla.Modal.current},Joomla.extend=(t,e)=>{let o=t;return t===null&&(o={}),Object.keys(e).forEach(r=>{o[r]=e[r]}),t},Joomla.optionsStorage=Joomla.optionsStorage||null,Joomla.getOptions=(t,e)=>(Joomla.optionsStorage||Joomla.loadOptions(),Joomla.optionsStorage[t]!==void 0?Joomla.optionsStorage[t]:e),Joomla.loadOptions=t=>{if(!t){let e=0;if(document.querySelectorAll(".joomla-script-options.new").forEach(o=>{const r=o.text||o.textContent,a=JSON.parse(r);a&&(Joomla.loadOptions(a),e+=1),o.className=o.className.replace(" new"," loaded")}),e)return}Joomla.optionsStorage?t&&Object.keys(t).forEach(e=>{t[e]!==null&&typeof Joomla.optionsStorage[e]=="object"&&typeof t[e]=="object"?Joomla.optionsStorage[e]=Joomla.extend(Joomla.optionsStorage[e],t[e]):Joomla.optionsStorage[e]=t[e]}):Joomla.optionsStorage=t||{}},Joomla.Text={strings:{},_:(t,e)=>{let o=t,r=e;const a=Joomla.getOptions("joomla.jtext");return a&&(Joomla.Text.load(a),Joomla.loadOptions({"joomla.jtext":null})),r=r===void 0?o:r,o=o.toUpperCase(),Joomla.Text.strings[o]!==void 0?Joomla.Text.strings[o]:r},load:t=>(Object.keys(t).forEach(e=>{Joomla.Text.strings[e.toUpperCase()]=t[e]}),Joomla.Text)},Joomla.JText=Joomla.Text,Joomla.submitform=(t,e,o)=>{let r=e;const a=t;r||(r=document.getElementById("adminForm")),a&&(r.task.value=a),r.noValidate=!o,o?r.hasAttribute("novalidate")&&r.removeAttribute("novalidate"):r.setAttribute("novalidate","");const n=document.createElement("input");n.classList.add("hidden"),n.type="submit",r.appendChild(n).click(),r.removeChild(n)},Joomla.submitbutton=(t,e,o)=>{let r=document.querySelector(e||"form.form-validate"),a=o;if(typeof e=="string"&&r===null&&(r=document.querySelector(`#${e}`)),r){if(a==null){const n=t.split(".");let l=r.getAttribute("data-cancel-task");l||(l=`${n[0]}.cancel`),a=t!==l}(!a||document.formvalidator.isValid(r))&&Joomla.submitform(t,r)}else Joomla.submitform(t)},Joomla.checkAll=(t,e)=>{if(!t.form)return!1;const o=e||"cb",r=[].slice.call(t.form.elements);let a=0;return r.forEach(n=>{n.type===t.type&&n.id.indexOf(o)===0&&(n.checked=t.checked,a+=n.checked?1:0)}),t.form.boxchecked&&(t.form.boxchecked.value=a,t.form.boxchecked.dispatchEvent(new CustomEvent("change",{bubbles:!0,cancelable:!0}))),!0},Joomla.isChecked=(t,e)=>{let o=e;if(typeof o>"u"?o=document.getElementById("adminForm"):typeof e=="string"&&(o=document.getElementById(e)),o.boxchecked.value=t?parseInt(o.boxchecked.value,10)+1:parseInt(o.boxchecked.value,10)-1,o.boxchecked.dispatchEvent(new CustomEvent("change",{bubbles:!0,cancelable:!0})),!o.elements["checkall-toggle"])return;let r=!0,a,n,l;for(a=0,l=o.elements.length;a<l;a++)if(n=o.elements[a],n.type==="checkbox"&&n.name!=="checkall-toggle"&&!n.checked){r=!1;break}o.elements["checkall-toggle"].checked=r},Joomla.tableOrdering=(t,e,o,r)=>{let a=r;typeof a>"u"?a=document.getElementById("adminForm"):typeof r=="string"&&(a=document.getElementById(r)),a.filter_order.value=t,a.filter_order_Dir.value=e,Joomla.submitform(o,a)},Joomla.listItemTask=(t,e,o=null)=>{let r=o;o!==null?r=document.getElementById(o):r=document.adminForm;const a=r[t];let n=0,l;if(!a)return!1;for(;l=r[`cb${n}`],!!l;)l.checked=!1,n+=1;return a.checked=!0,r.boxchecked.value=1,Joomla.submitform(e,r),!1},Joomla.replaceTokens=t=>{/^[0-9A-F]{32}$/i.test(t)&&document.querySelectorAll('input[type="hidden"]').forEach(e=>{e.value==="1"&&e.name.length===32&&(e.name=t)})},Joomla.request=t=>{const e=Joomla.extend({url:"",method:"GET",data:null,perform:!0,promise:!1},t),o=(r,a)=>{const n=new XMLHttpRequest;if(n.open(e.method,e.url,!0),n.setRequestHeader("X-Requested-With","XMLHttpRequest"),n.setRequestHeader("X-Ajax-Engine","Joomla!"),e.method!=="GET"){const l=Joomla.getOptions("csrf.token","");l&&(!e.url.startsWith("http:")&&!e.url.startsWith("https:")||e.url.startsWith(window.location.origin))&&n.setRequestHeader("X-CSRF-Token",l),typeof e.data=="string"&&(!e.headers||!e.headers["Content-Type"])&&n.setRequestHeader("Content-Type","application/x-www-form-urlencoded")}if(e.headers&&Object.keys(e.headers).forEach(l=>{l==="Content-Type"&&e.headers["Content-Type"]==="false"||n.setRequestHeader(l,e.headers[l])}),n.onreadystatechange=()=>{n.readyState===4&&(n.status===200?e.promise?r.call(window,n):r.call(window,n.responseText,n):a.call(window,n),e.onComplete&&!e.promise&&e.onComplete.call(window,n))},e.perform){if(e.onBefore&&e.onBefore.call(window,n)===!1)return e.promise&&r.call(window,n),n;n.send(e.data)}return n};if(e.promise)return new Promise((r,a)=>{e.perform=!0,o(r,a)});try{return o(e.onSuccess||(()=>{}),e.onError||(()=>{}))}catch(r){return console.error(r),!1}};let s;Joomla.enqueueRequest=t=>{if(!t.promise)throw new Error("Joomla.enqueueRequest supports only Joomla.request as Promise");return s?s=s.then(()=>Joomla.request(t)):s=Joomla.request(t),s},Joomla.sanitizeHtml=(t,e,o)=>{const r=e==null?c:i({},c,e);return J(t,r,o)},Joomla.ajaxErrorsMessages=(t,e)=>{const o={};if(e==="parsererror"){const r=[];let a=t.responseText.trim();for(let n=a.length-1;n>=0;n--)r.unshift(["&#",a[n].charCodeAt(),";"].join(""));a=r.join(""),o.error=[Joomla.Text._("JLIB_JS_AJAX_ERROR_PARSE").replace("%s",a)]}else e==="nocontent"?o.error=[Joomla.Text._("JLIB_JS_AJAX_ERROR_NO_CONTENT")]:e==="timeout"?o.error=[Joomla.Text._("JLIB_JS_AJAX_ERROR_TIMEOUT")]:e==="abort"?o.error=[Joomla.Text._("JLIB_JS_AJAX_ERROR_CONNECTION_ABORT")]:t.responseJSON&&t.responseJSON.message?o.error=[`${Joomla.Text._("JLIB_JS_AJAX_ERROR_OTHER").replace("%s",t.status)} <em>${t.responseJSON.message}</em>`]:t.statusText?o.error=[`${Joomla.Text._("JLIB_JS_AJAX_ERROR_OTHER").replace("%s",t.status)} <em>${t.statusText}</em>`]:o.error=[Joomla.Text._("JLIB_JS_AJAX_ERROR_OTHER").replace("%s",t.status)];return o}})();
Site is undergoing maintenance

PACJA Events

Maintenance mode is on

Site will be available soon. Thank you for your patience!