PageSourceSearch

https://varsego.se/ui/js/2987.c9cec47c685d7f8f8a9d.js

js varsego.se collected 2026-09-26 19:25:58 UTC 2,779 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[2987],{92987(e,t,n){n.r(t),n.d(t,{default:()=>m});var a=n(3141),l=n(29520),r=n(68102),o=n(63696),s=n(61102),i=n(29632),c=n(68439),u=n(55919);const d=(0,o.lazy)(()=>Promise.resolve().then(n.bind(n,71728))),m=({title:e,count:t=0,icon:n,open:m=!1,mobile:p=!1,groupId:f,onToggle:E,onOpen:b,children:g})=>{const h=(0,c.G)(e=>e.expandable),w=(0,r.A)({},((0,l.A)(h),h)),v=(0,i.j)(),_=(0,u.a)(),y=(0,o.useState)(Math.random().toString(36).substring(2,9)),x=(0,a.A)(y,1)[0],T=(0,o.useState)(m),A=(0,a.A)(T,2),S=A[0],H=A[1],N=(0,o.useState)(!1),k=(0,a.A)(N,2),I=k[0],L=k[1],j=p,C=(0,o.useRef)(null),M=(0,o.useRef)(null);let O="";o.isValidElement(g)||Array.from(g).forEach(e=>{O+=e.outerHTML}),(0,o.useEffect)(()=>{m&&v((0,s.y6)({groupId:f,id:x}))},[v,f,x,m]),(0,o.useEffect)(()=>{if(f){const e=w[f]===x;H(e)}},[w,f,x]),(0,o.useEffect)(()=>{S&&b&&b(),S&&!I&&L(S)},[S,I,b]);const z=e=>{E?E(e.target):f&&x?v((0,s.y6)({groupId:f,id:x})):H(!S),setTimeout(()=>(()=>{const e=C.current?.getBoundingClientRect(),t=document.getElementById("header"),n=(e?.top||0)-(t?.offsetHeight||0)-.1*window.innerHeight;n<0&&window.scrollTo({top:window.scrollY+n,behavior:"smooth"})})(),400)},R=["expandable"];return S&&R.push("expandable--open"),O||o.isValidElement(g)?j&&_||!j?o.createElement("div",{ref:C,className:R.join(" ")},o.createElement(o.Suspense,{fallback:o.createElement("span",null)},o.createElement("button",{type:"button",className:"expandable__button",onClick:e=>z(e)},n&&o.createElement(d,{icon:n,className:"me-3"}),o.createElement("span",null,e),t>0&&o.createElement("span",{className:"expandable__count"},"(",t,")"))),o.createElement("div",{className:"expandable__content",style:{maxHeight:S?`${(M.current?.offsetHeight||1e3)+100}px`:void 0}},O?o.createElement("div",{ref:M,className:"expandable__inner-content",dangerouslySetInnerHTML:{__html:O}}):o.createElement("div",{className:"expandable__inner-content"},I&&o.createElement(o.Fragment,null,g)))):o.createElement("div",{dangerouslySetInnerHTML:{__html:O}}):null}},55919(e,t,n){n.d(t,{a:()=>r});var a=n(3141),l=n(63696);function r(e=768){const t=(0,l.useState)(window.innerWidth<e),n=(0,a.A)(t,2),r=n[0],o=n[1];return(0,l.useEffect)(()=>{let t,n=!0;const a=()=>{n&&o(window.innerWidth<e)},l=()=>{t&&clearTimeout(t),t=setTimeout(a,20)};return t&&clearTimeout(t),t=setTimeout(a,20),window.addEventListener("resize",l),()=>{n=!1,window.removeEventListener("resize",l)}},[e]),r}},68439(e,t,n){n.d(t,{G:()=>a});const a=n(61364).d4},68102(e,t,n){function a(){return a=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)({}).hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},a.apply(null,arguments)}n.d(t,{A:()=>a})}}]);

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.