1Ckmforms=window.Ckmforms||{},function(e,t){function r(){const e=t.querySelectorAll('.ckmform > form .field-calendar input[type="text"]');e.forEach(e=>{e.dataset.noLock||(e.readOnly=!0)})}t.addEventListener("DOMContentLoaded",r),t.addEventListener("joomla:updated",r),e.nextButtonText="",e.prevButtonText="",e.getFormSelector=function(e,t){var r="#ckmform-"+e;return t?r=".ckmform-module-"+t+" "+r:r+='[data-component="true"]',r},e.ajaxchangehandler=function(t,r){var o=e.getFormSelector(t,r.module);jQuery(o+" input[name=task]").val("form.ajaxSubmit");var n=jQuery(o+" button.next"),a=jQuery(o+" button.previous");null!==n&&(n.off("click"),n.click(function(o){o.preventDefault(),r.previous=!1,e.ajaxsubmitbutton(t,r)})),null!==a&&(a.off("click"),a.click(function(o){o.preventDefault(),r.previous=!0,e.ajaxsubmitbutton(t,r)}))},e.ajaxsubmitbutton=function(r,o){var n,a=o.module||0,i=o.previous||!1,s=o.wrapper||".ckmform-module-"+a,l=o.onDone||function(){e.renderReCaptcha2()},c=e.getFormSelector(r,a);if(jQuery(s).find("#system-message-container").hide(),this.disableSubmitActions(r,a),/MSIE|Trident/.test(window.navigator.userAgent)?(n=t.createEvent("CustomEvent"),n.initEvent("onBeforeCkmformSubmit",!0,!0)):n=new CustomEvent("onBeforeCkmformSubmit",{cancelable:!0}),t.querySelector(c).dispatchEvent(n),!0!==o.bypsssEvents&&(eventWithCallback=new CustomEvent("onBeforeCkmformSubmitwWithCallback",{cancelable:!0,detail:{formId:r,options:o,ckmforms:e,callback:function(t){if(!0===t.success){let t=o;t.bypsssEvents=!0,e.ajaxsubmitbutton(r,t)}else e.enableSubmitActions(r,a);return!1}}}),t.querySelector(c).dispatchEvent(eventWithCallback),eventWithCallback.defaultPrevented))return!1;if(n.defaultPrevented)return console.log("Submission prevented by event listener."),e.enableSubmitActions(r,a),u=t.formvalidator.isValid(t.getElementById("ckmform-"+r)),void e.scrollToTop("#system-message-container");var u=!0;if(!1===i&&void 0!==t.formvalidator&&(u=t.formvalidator.isValid(t.getElementById("ckmform-"+r))),!u)return this.scrollToTop(s),void e.enableSubmitActions(r,a);var m=jQuery(c);i&&jQuery(c+" input[name=previousPage]").val("1"),jQuery.ajax({type:"POST",url:m.attr("action"),data:new FormData(t.querySelector(c)),contentType:!1,processData:!1,cache:!1}).done(function(n){if(void 0===n.data.redirectUrl||""==n.data.redirectUrl){if(t.querySelector(s).innerHTML=n.data.component,e.loadAll(n.data.assets,n.data.scripts,n.data.script),!t.getElementById("system-message-container")){const e=t.createElement("div");e.id="system-message-container";const r=t.querySelector(s);r.insertBefore(e,r.firstChild)}if(e.ajaxchangehandler(r,o),n.messages)return jQuery("#system-message-container").prependTo(s),Joomla.renderMessages(n.messages),e.scrollToTop(s),e.enableSubmitActions(r,a),void e.renderReCaptcha2();jQuery(s).find(".ckmform-redirect").each(function(){if("true"===jQuery(this).attr("data-redirect")){var e=jQuery(this).attr("data-redirecturi");void 0!==e&&(window.location.href=e)}}),e.renderReCaptcha2(),"function"==typeof l&&l()}else window.location.href=n.data.redirectUrl}).fail(function(t,o,n){e.enableSubmitActions(r,a),4===t.readyState?alert("HTTP error code "+t.status+" ("+t.statusText+"), please try again."):0===t.readyState?alert("Network error, please try again."):alert("Unknown error, please try again.")})},e.formatFileSize=function(e){return"number"!=typeof e?"":e>=1e9?(e/1e9).toFixed(2)+" GB":e>=1e6?(e/1e6).toFixed(2)+" MB":(e/1e3).toFixed(2)+" KB"},e.getFormAction=function(e){return e.parents("form").attr("action")},e.getFormId=function(e){return e.parents("form").attr("id").split("-")[1]},e.getPageNumber=function(e){return e.parents("form").find("input[name=page]").val()},e.getScript=function(e,r,o){var n=t.getElementsByTagName("script"),a=n.length,i=!1;for(r="function"==typeof r?r:function(){};a--;){var s=n[a].src,l=s.split("?")[0];if(-1!==s.indexOf(e)||-1!==l.indexOf(e)){r(),i=!0;break}}i||jQuery.getScript(e).done(function(e,t){r(t)}).fail(function(e,t,r){o(r)})},e.renderReCaptcha2=function(){for(var e,r,o=t.getElementsByClassName("g-recaptcha"),n=["sitekey","theme","size","tabindex","callback","expired-callback","error-callback"],a={},i=0,s=o.length;i<s;i++){if(e=o[i],e.dataset)a=e.dataset;else for(var l=0;l<n.length;l++)r="data-"+n[l],e.hasAttribute(r)&&(a[n[l]]=e.getAttribute(r));
1try{e.setAttribute("data-recaptcha-widget-id",grecaptcha.render(e,a))}catch(e){-1===e.message.indexOf("has already been rendered")&&console.error(e)}}},e.scrollToTop=function(e){jQuery("html, body").animate({scrollTop:jQuery(e).offset().top},"fast")},e.submitbutton=function(r,o){var n="#ckmform-"+r+'[data-component="true"]';o=o||{};var a=o.previous||!1;t.getElementById("system-message-container")&&(t.getElementById("system-message-container").innerHTML=""),this.disableSubmitActions(r);var i=t.getElementById("ckmform-"+r);if(a)return jQuery(n+" input[name=previousPage]").val(a),void Joomla.submitform("form.submit",i,!1);if(/MSIE|Trident/.test(window.navigator.userAgent)){var s=t.createEvent("CustomEvent");s.initEvent("onBeforeCkmformSubmit",!0,!0)}else s=new CustomEvent("onBeforeCkmformSubmit",{cancelable:!0});return i.dispatchEvent(s),(!0===o.bypsssEvents||(eventWithCallback=new CustomEvent("onBeforeCkmformSubmitwWithCallback",{cancelable:!0,detail:{formId:r,options:o,ckmforms:e,callback:function(n){if(!0===n.success){let t=o;t.bypsssEvents=!0,e.submitbutton(r,t)}else e.enableSubmitActions(r,o.module),formIsValid=t.formvalidator.isValid(t.getElementById("ckmform-"+r)),e.scrollToTop("#system-message-container");return!1}}}),i.dispatchEvent(eventWithCallback),!eventWithCallback.defaultPrevented))&&(s.defaultPrevented?(console.log("Submission prevented by event listener."),void this.enableSubmitActions(r,o.module)):((void 0===t.formvalidator||t.formvalidator.isValid(i))&&Joomla.submitform("form.submit",i,!0),this.scrollToTop("#system-message-container"),void this.enableSubmitActions(r,o.module)))},e.disableSubmitActions=function(t,r){var o=e.getFormSelector(t,r),n=jQuery(o+" .next"),a=jQuery(o+" .previous");if(!n.attr("disabled")){this.nextButtonText=n.html(),this.prevButtonText=a.html();var i=Joomla.Text._("COM_CKMFORMS_PLEASE_WAIT");n.attr("disabled",!0).html(i),a.attr("disabled",!0).html(i)}},e.enableSubmitActions=function(r,o){var n=e.getFormSelector(r,o);jQuery(n+" .next").removeAttr("disabled").html(this.nextButtonText),jQuery(n+" .previous").removeAttr("disabled").html(this.prevButtonText),void 0!==t.formvalidator&&t.formvalidator.isValid(t.querySelector(n))},e.profiler=(()=>{let e=null,t=null,r=[],o=[];return{start:()=>{e=performance.now()},stop:()=>{t=performance.now()},record:o=>{r.push(`${o}: ${t-e}ms`),e=null,t=null},getLogs:()=>r,setAssets:e=>o=e,getAssets:()=>o}})(),e.loadAssets=function(r){const o=r=>new Promise((o,n)=>{r.attributes.defer;if(r.attributes["data-exclude-from-ajax"])return o(r);const a=t.createElement("script");if(r.inline)a.innerHTML=r.content;else{if(a.src=r.src,r.version&&"auto"!==r.version){const e=r.version,o=new URL(a.src,t.baseURI);o.search=o.search?`${o.search}&${e}`:`?${e}`;const n=o.origin===location.origin?o.pathname+o.search+o.hash:o.toString();a.src=n}Object.entries(r.attributes).forEach(([e,t])=>{a.setAttribute(e,t)})}r.attributes.defer&&(a.defer=!0),e.profiler.start();let i=null,s=r.attributes.defer||r.attributes.nomodule?100:1e3;i=setTimeout(()=>{e.profiler.stop(),e.profiler.record(`${r.src} timed out`),clearTimeout(i),a.onload=null,a.onerror=null,o(r.src)},s),a.dataset.assetName=r.name,a.onload=(()=>{e.profiler.stop(),e.profiler.record(`${r.src} loaded`),clearTimeout(i),a.onload=null,a.onerror=null,o(r.src)}),a.onerror=(()=>{e.profiler.stop(),e.profiler.record(`${r.src} error encountered`),console.error(new Error(`ckmforms Ajax - Failed to load script: ${r.src}`)),clearTimeout(i),a.onload=null,a.onerror=null,o(r.src)}),t.head.appendChild(a)}),n=(e,t)=>{if(e.content||t.content)return t.content==e.content;if(e.dataAssetName)return e.dataAssetName===t.name;if(!!e.src!=!!t.src)return!1;if(!e.src&&!t.src)return!0;const r=e.src.split("?")[0],o=t.src.split("?")[0];return r===o},a=Array.from(t.querySelectorAll("script")).map(e=>({dataAssetName:e.dataset.assetName,src:e.getAttribute("src"),content:e.innerHTML})),i=r.filter(e=>!a.some(t=>n(t,e))&&"script"===e.type),s=i.map(e=>o(e)),l=e=>new Promise((r,o)=>{const n=t.createElement("link");n.rel="stylesheet",n.type="text/css",n.href=e.src,t.head.appendChild(n),r(e.src)}),c=Array.from(t.querySelectorAll('link[rel="stylesheet"]')).map(e=>({href:e.getAttribute("href")})),u=r.filter(e=>!c.some(t=>t.href===e.href)&&"style"===e.type),m=u.map(e=>l(e));return Promise.all([...s,...m]).catch(e=>{console.error("Failed to load assets: "+e)})},e.loadAll=function(r,o,n){function a(r){var a=[],i=function(t){return new Promise((r,o)=>{e.getScript(t,r,o)})};for(let e=0;e<o.length;e++)a.push(i(o[e].file));Promise.all(a).then(function(e){for(const[e,o]of Object.entries(n)){var r=t.createElement("script");r.dataset.key=e,r.innerHTML=o,t.head.appendChild(r)}}).catch(function(e){console.error("Error:",e)}).finally(r)}e.loadAssets(r).then(()=>{e.profiler.setAssets(r),a(()=>{window.document.dispatchEvent(new Event("DOMContentLoaded",{bubbles:!0,cancelable:!0})),window.document.dispatchEvent(new Event("joomla:updated",{bubbles:!0,cancelable:!0}));const e=[].slice.call(t.querySelectorAll("form"));
1e.forEach(e=>{e.classList.contains("form-validate")&&window.document.formvalidator.attachToForm(e)})})})}}(Ckmforms,document);
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.