PageSourceSearch

https://www.eimskip.is/build/amount-control-ot1HRKRq.js

js eimskip.is collected 2026-10-02 09:56:04 UTC 1,292 bytes, 1 lines download raw bytes

1import{n as e,r as t}from"./rolldown-runtime-DEa_Ew-f.js";var r,n=t({default:()=>r});function a(){return(a=e(()=>{r={init(e){for(const t of e?[e]:document.querySelectorAll(".amount-control"))this.bindControl(t)},bindControl(e){if("true"===e.dataset.amountControlBound)return;const t=e.querySelectorAll(".amount-control__button"),r=e.querySelector(".input-group__input"),n=e.querySelector("[data-decrement]"),a=e.querySelector("[data-increment]");t.length&&r&&n&&a&&(e.dataset.amountControlBound="true",Array.prototype.forEach.call(t,e=>{e.addEventListener("click",e=>{const t=e.currentTarget;t.hasAttribute("data-increment")&&(n.removeAttribute("disabled"),Number.parseInt(r.value)<Number.parseInt(r.max)&&this.increment(Number.parseInt(r.value),r),Number.parseInt(r.value)>=Number.parseInt(r.max)&&a.setAttribute("disabled","")),t.hasAttribute("data-decrement")&&(Number.parseInt(r.value)>Number.parseInt(r.min)&&(a.removeAttribute("disabled"),this.decrement(Number.parseInt(r.value),r)),Number.parseInt(r.value)<=Number.parseInt(r.min)&&setTimeout(()=>{n.setAttribute("disabled","")},0))})}))},increment(e,t){t.value=""+(e+1),t.dispatchEvent(new Event("change",{bubbles:!0}))},decrement(e,t){t.value=""+(e-1),t.dispatchEvent(new Event("change",{bubbles:!0}))}}}))()}export{n,a as r,r as t};

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.