PageSourceSearch

https://www.randers.dk/_nuxt/BzgNEbku.js

js randers.dk collected 2026-10-02 08:07:27 UTC 3,728 bytes, 1 lines download raw bytes

1import{C as e,D as t,Et as l,G as o,Gt as a,Lt as n,N as i,Q as r,St as s,fn as c,it as u,tt as d,w as f}from"./B8XHxhss.js";import{Lt as m,Rt as v,_ as g}from"#entry";import{t as p}from"./BHxXZfbq2.js";import{t as b}from"./DEWHHta0.js";var h={__name:"BaseScrollButtons",props:{ariaControls:String,floatingButtons:Boolean,individualItemSelector:{type:String,default:""}},setup(h){const S=h,C=n(!1),y=n(!1),B=e(()=>C.value||y.value);let L=0,w=null;const I=o("accordionParentPanel",null),M=e(()=>I?.exposed?.isOpen?.value||!1),$=n(null);function z(e,t){if(S.individualItemSelector&&document.querySelector(`#${S.ariaControls} ${S.individualItemSelector}`)){const e=_(),l=e.getBoundingClientRect(),o=[...document.querySelectorAll(`#${S.ariaControls} ${S.individualItemSelector}`)];if(o.length>1)if(t>0){let t=null;o.find((e,a)=>!!a&&(t=o[a-1].getBoundingClientRect(),t.right>=l.left+o[0].offsetLeft+t.width/2))&&t&&e.scrollBy({left:t.right-o[0].offsetLeft-l.left,behavior:"smooth"})}else if(t<0){let t=null;o.find(e=>(t=e.getBoundingClientRect(),t.right>=l.left+o[0].offsetLeft-t.width/2))&&t&&e.scrollBy({left:t.left-l.left-o[0].offsetLeft,behavior:"smooth"})}}}function R(){const e=document.getElementById(S.ariaControls);if(e){const{scrollLeft:t,scrollWidth:l,clientWidth:o}=e;C.value=t>10,y.value=t<l-o-10}else C.value=!1,y.value=!1}function k(e,t=0){S.individualItemSelector&&document.querySelector(`#${S.ariaControls} ${S.individualItemSelector}`)||(void 0===e.key?(q(),0===e.button&&(L=t,x())):Math.sign(t)!==Math.sign(L)&&(q(),L=t,x()))}function q(){S.individualItemSelector&&document.querySelector(`#${S.ariaControls} ${S.individualItemSelector}`)||(L=0,w&&(cancelAnimationFrame(w),w=null))}function x(){if(S.individualItemSelector&&document.querySelector(`#${S.ariaControls} ${S.individualItemSelector}`))return;const e=_();e&&(e.scrollLeft+=L,L=Math.min(Math.max(-128,1.025*L),128),w=requestAnimationFrame(x))}function _(){return document.getElementById(S.ariaControls)}return p(_,"scroll",R),p("resize",R),s(M,e=>{e&&setTimeout(R,300)}),d(()=>{const e=_();e&&($.value=new MutationObserver(R),$.value.observe(e,{childList:!0})),R()}),r(()=>{$.value&&($.value.disconnect(),$.value=null),w&&(cancelAnimationFrame(w),w=null)}),(e,o)=>{const n=b;return l((u(),t("footer",{class:c(["c-base-scroll-buttons",{"c-base-scroll-buttons--is-floating-buttons":h.floatingButtons}])},[f("div",{class:c(["w-full pt-md flex justify-end items-center gap-4xs",{"absolute top-0 left-0 mb-[calc(var(--theme-spacing-betweenBlocks)*-0.75)] >=1280:-mb-betweenBlocks":h.floatingButtons}])},[i(n,{"aria-disabled":!a(C),"aria-label":("localize"in e?e.localize:a(g))("SCROLL_LEFT",{capitalize:!0}),"aria-controls":h.ariaControls,variant:"backward",class:"rounded-full",onClick:o[0]||(o[0]=e=>z(0,-1)),onMousedown:o[1]||(o[1]=e=>k(e,-10)),onMouseup:q,onMouseleave:q,onKeydown:[o[2]||(o[2]=v(e=>k(e,-10),["enter"])),o[3]||(o[3]=v(e=>k(e,-10),["space"])),o[4]||(o[4]=v(e=>k(e,-10),["left"])),o[5]||(o[5]=v(e=>k(e,10),["right"]))],onKeyup:[v(q,["enter"]),v(q,["space"]),v(q,["left"]),v(q,["right"])]},null,8,["aria-disabled","aria-label","aria-controls"]),i(n,{"aria-disabled":!a(y),"aria-label":("localize"in e?e.localize:a(g))("SCROLL_RIGHT",{capitalize:!0}),"aria-controls":h.ariaControls,variant:"forward",class:"rounded-full",onClick:o[6]||(o[6]=e=>z(0,1)),onMousedown:o[7]||(o[7]=e=>k(e,10)),onMouseup:q,onMouseleave:q,onKeydown:[o[8]||(o[8]=v(e=>k(e,10),["enter"])),o[9]||(o[9]=v(e=>k(e,10),["space"])),o[10]||(o[10]=v(e=>k(e,-10),["left"])),o[11]||(o[11]=v(e=>k(e,10),["right"]))],onKeyup:[v(q,["enter"]),v(q,["space"]),v(q,["left"]),v(q,["right"])]},null,8,["aria-disabled","aria-label","aria-controls"])],2)],2)),[[m,a(B)]])}}};export{h 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.