PageSourceSearch

https://www.eimskip.is/build/contact-hint-form-DL26TaHv.js

js eimskip.is collected 2026-10-02 09:55:55 UTC 1,094 bytes, 1 lines download raw bytes

1import{n as e}from"./rolldown-runtime-DEa_Ew-f.js";var t;function r(){return(r=e(()=>{t={el:{root:document.querySelectorAll(".contact-hint-form")},init(e){this.getRoots(e).forEach(e=>{this.handleAnonymous(e)})},getRoots(e){return e?.matches(".contact-hint-form")?[e]:Array.from(this.el.root)},handleAnonymous(e){const t=e.querySelector('[name="chfAnonimousCase"]'),r=e.querySelector(".contact-hint-form__details"),o=e.querySelectorAll('[type="text"]'),n=e.querySelector("form"),i=n?.querySelector('.form__submit, button[type="submit"], input[type="submit"]');if(!t||!r)return;const c=e=>{r.style.display=e?"none":"block",o.forEach(t=>{e?(t.removeAttribute("required"),t.disabled=!0):(t.setAttribute("required",""),t.disabled=!1)}),(()=>{if(!n||!i)return;const e=n.querySelectorAll("[required]");Array.prototype.every.call(e,e=>!(!e.disabled&&e.required)||("radio"===e.type||"checkbox"===e.type?e.checked:e.value.trim().length>0))?i.removeAttribute("disabled"):i.setAttribute("disabled","")})()};c(t.checked),t.addEventListener("change",e=>{c(e.target.checked)})}}}))()}r();export{t 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.