1import{$ as e,Z as t,f as n,h as r}from"./components-Dzujj9Az.js";import{n as i}from"./lib-Bld5QbF9.js";import{t as a}from"./jsx-runtime-DV2lgi0W.js";import{n as o}from"./laddar-BqJHN4zB.js";var s=e(t(),1),c=a(),l=`besked-fel`;function u({lank:e}){return e===void 0?null:(0,c.jsxs)(c.Fragment,{children:[` `,(0,c.jsx)(i,{className:`linklike`,to:e.till,children:e.etikett})]})}function d(e){e?.scrollIntoView({block:`nearest`}),e?.scrollIntoView({block:`nearest`})}function f(e,t,n){let r=e.top-n.topp;if(r<0)return r;let i=e.bottom+n.botten-t;return i>0?Math.min(i,r):0}function p(e){if(e!==null)for(let t=0;t<2;t++){let t=getComputedStyle(e),n=f(e.getBoundingClientRect(),window.innerHeight,{topp:parseFloat(t.scrollMarginTop)||0,botten:parseFloat(t.scrollMarginBottom)||0});n!==0&&window.scrollBy(0,n)}}function m(e){let t=r().state===`idle`,i=o(),a=t&&!i,c=n().key,l=(0,s.useRef)(null),u=(0,s.useCallback)(t=>{t!==null&&l.current!==c&&(l.current=c,e(t))},[e,c]);return a?u:void 0}function h({kvittens:e,lank:t}){let n=m(d);return(0,c.jsxs)(`p`,{ref:n,role:`status`,className:`kvittens`,children:[e,(0,c.jsx)(u,{lank:t})]})}function g({fel:e}){let t=m(p);return(0,c.jsx)(`p`,{ref:t,id:l,role:`alert`,className:`besked-fel`,style:{color:`var(--error)`,marginBottom:`var(--steg-4)`,maxWidth:`35em`},children:e})}function _({svar:e}){let t=e?.fel??null,n=e?.kvittens??null;return t===null?n===null?null:(0,c.jsx)(h,{kvittens:n,lank:e?.lank},n):(0,c.jsx)(g,{fel:t},t)}export{_ as n,d as r,l 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.