PageSourceSearch

https://www.janssen-fritsen.nl/theme/2d9053617c818f2f05a159d80fbc1…d-contact-form.cogi-advanced-form.e7d4e5.js

js janssen-fritsen.nl collected 2026-10-04 08:20:58 UTC 3,158 bytes, 3 lines download raw bytes

1"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[95274],{274:(t,e,i)=>{i.r(e),i.d(e,{default:()=>a});let n="loader",s={BEFORE:"before",INNER:"inner"};class o{constructor(t,e=s.BEFORE){this.parent=t instanceof Element?t:document.body.querySelector(t),this.position=e}create(){if(!this.exists()){if(this.position===s.INNER){this._previousHTML=this.parent.innerHTML,this.parent.innerHTML=o.getTemplate();return}this.parent.insertAdjacentHTML(this._getPosition(),o.getTemplate())}}remove(){if(this.position===s.INNER){this.parent.innerHTML=this._previousHTML;return}this.parent.querySelectorAll(`.${n}`).forEach(t=>t.remove())}exists(){return this.parent.querySelectorAll(`.${n}`).length>0}_getPosition(){return this.position===s.BEFORE?"afterbegin":"beforeend"}static getTemplate(){return`<div class="${n}" role="status">
2                    <span class="visually-hidden">Loading...</span>
3                </div>`}static SELECTOR_CLASS(){return n}}class r extends o{constructor(t,e="before"){super(t,e),this._isValidElement()||console.warn(`[ButtonLoadingIndicatorUtil] Parent element is not of type <button> or <a>. Given element: ${this.parent}`)}create(){if(!this._isValidElement()){console.warn(`[ButtonLoadingIndicatorUtil] Unable to create loading indicator. Parent element is not of type <button> or <a>. Given element: ${this.parent}`);return}if("inner"===this.position){let t=this.parent.getBoundingClientRect().width;this.parent.style.width=`${t}px`}super.create(),this.parent.classList.add(`is-loading-indicator-${this.position}`),this._isButtonElement()?this.parent.disabled=!0:this._isAnchorElement()&&this.parent.classList.add("disabled")}remove(){if(!this.exists()){console.warn(`[ButtonLoadingIndicatorUtil] Unable to remove loading indicator. No indicator present on given element: ${this.parent}`);return}"inner"===this.position&&(this.parent.style.width="auto"),super.remove(),this.parent.classList.remove(`is-loading-indicator-${this.position}`),this._isButtonElement()?this.parent.disabled=!1:this._isAnchorElement()&&this.parent.classList.remove("disabled")}_isValidElement(){return this._isButtonElement()||this._isAnchorElement()}_isButtonElement(){return this.parent?.tagName.toLowerCase()==="button"}_isAnchorElement(){return this.parent?.tagName.toLowerCase()==="a"}}class a extends window.PluginBaseClass{static #t=this.options={delay:5e3};init(){let t=document.getElementById("cogi-form");if(!t){console.error("Element with ID 'cogi-form' not found.");return}try{this.options=JSON.parse(t.dataset.cogiAdvancedContactFormOptions)}catch(t){console.error("Invalid JSON in data-cogi-advanced-contact-form-options:",t),this.options={delay:5e3}}let e=window.PluginManager.getPluginInstances("FormCmsHandler");if(!e||0===e.length){console.warn("No FormCmsHandler plugins found.");return}e.forEach(t=>{t.el.action.includes("cogi/form/contact")&&t.$emitter.subscribe("beforeSubmit",t=>{let e=t.target.querySelector('[type="submit"]');if(!e){console.error("Submit button not found in the form.");return}let i=new r(e,s.BEFORE);e.disabled=!0,i.create(),setTimeout(()=>{e.disabled=!1,i.remove()},this.options.delay||5e3)})})}}}}]);

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.