PageSourceSearch

https://www.natursidan.se/app/themes/hopp/assets/javascript/chunks/private-captcha-controller.1849b8ad.js

js natursidan.se collected 2026-09-24 09:57:17 UTC 1,389 bytes, 1 lines download raw bytes

1import{C as r}from"../application.3a13dd1a.js";const a="https://cdn.privatecaptcha.com/widget/js/privatecaptcha.js?render=explicit";let s=null;function o(){var n;return(n=window.privateCaptcha)!=null&&n.render?Promise.resolve(window.privateCaptcha):(s||(s=new Promise((e,i)=>{const t=document.createElement("script");t.src=a,t.async=!0,t.addEventListener("load",()=>e(window.privateCaptcha)),t.addEventListener("error",()=>{s=null,t.remove(),i(new Error("Failed to load Private Captcha"))}),document.head.appendChild(t)})),s)}class c extends r{initialize(){this.onFinish=this.onFinish.bind(this),this.onReset=this.onReset.bind(this)}connect(){var e;this.connected=!0,this.submitButton=(e=this.element.closest("form"))==null?void 0:e.querySelector('[type="submit"]'),this.element.addEventListener("privatecaptcha:finish",this.onFinish),this.element.addEventListener("privatecaptcha:reset",this.onReset),this.setSubmitDisabled(!0),o().then(i=>{!this.connected||this.element.dataset.attached||i.render(this.element,{})}).catch(i=>{console.error(i)})}disconnect(){this.connected=!1,this.element.removeEventListener("privatecaptcha:finish",this.onFinish),this.element.removeEventListener("privatecaptcha:reset",this.onReset)}onFinish(){this.setSubmitDisabled(!1)}onReset(){this.setSubmitDisabled(!0)}setSubmitDisabled(e){this.submitButton&&(this.submitButton.disabled=e)}}export{c as default};

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.