PageSourceSearch

https://static.biogena.com/frontend/s/_nuxt/Dg9EfzHG.js

js biogena.com collected 2026-09-24 10:30:33 UTC 6,134 bytes, 1 lines download raw bytes

1import{bX as K,bY as G,bZ as Q,b_ as _,b$ as j}from"#entry";import{B as D}from"./D10wWOVR.js";import{_ as U}from"./BJbYGP5N.js";import{m as s,E as L,D as R,H as ee,v as le,$ as A,L as k,a9 as p,ad as f,Z as Y,C as l,a8 as te,aa as C,au as oe,ac as q,aC as V,aP as W,X as v,W as ae,aA as se}from"./BZS6mqMC.js";function ne(e,n){const w=s(!1),I=s(!0),S=s(0),h=s(!1),m=s(!0),i=s(0),d=s(0),H=()=>{n==="horizontal"?d.value=Math.abs(Math.round((S.value-1)/r())):d.value=Math.abs(Math.round((i.value-1)/y()))},b=K(()=>{var z,E,T,X,F,Z;if(!e.value)return;const o=(z=e.value)==null?void 0:z.scrollLeft;w.value=o+((E=e.value)==null?void 0:E.clientWidth)>=((T=e.value)==null?void 0:T.scrollWidth)-1,I.value=o<=0,S.value=o;const g=(X=e.value)==null?void 0:X.scrollTop;h.value=g+((F=e.value)==null?void 0:F.clientHeight)>=((Z=e.value)==null?void 0:Z.scrollHeight)-1,m.value=g<=0,i.value=g,H()},100,!0),r=()=>{const o=e.value.children.length;return e.value.scrollWidth/o},y=()=>{const o=e.value.children.length;return e.value.scrollHeight/o},$=(o=0)=>{u.value&&(n==="horizontal"?e.value.scrollTo({top:0,left:S.value+r()+o,behavior:"smooth"}):e.value.scrollTo({top:i.value+y()+o,left:0,behavior:"smooth"}))},B=(o=0)=>{c.value&&(n==="horizontal"?e.value.scrollTo({top:0,left:S.value-r()+o,behavior:"smooth"}):e.value.scrollTo({top:i.value-y()+o,left:0,behavior:"smooth"}))},t=(o,g="auto")=>{if(!e.value)return;const z=e.value.children.length;if(n==="horizontal"){const E=e.value.scrollWidth-e.value.clientWidth,T=Math.min(e.value.scrollWidth/z*o,E);e.value.scrollTo({left:T,behavior:g})}else{const E=e.value.scrollHeight-e.value.clientHeight,T=Math.min(e.value.scrollHeight/z*o,E);e.value.scrollTo({top:T,behavior:g})}},a=G(),u=L(()=>
1a.value&&n==="horizontal"?!w.value:!h.value),c=L(()=>a.value&&n==="horizontal"?!I.value:!m.value),P=s(0),M=s(0),N=s(0),O=s(0);Q(e,()=>{P.value=e.value.scrollWidth,M.value=e.value.clientWidth,N.value=e.value.scrollHeight,O.value=e.value.clientHeight,b()});const J=L(()=>{if(e.value)return n==="horizontal"?P.value>M.value:N.value>O.value});return{sliderRef:e,onScroll:b,next:$,prev:B,isNextEnabled:u,isPrevEnabled:c,scrollImageIntoView:t,activeSlide:d,isScrollable:J}}const ie={key:0},re={class:"pointer-events-none absolute inset-x-0 bottom-md flex items-center justify-center gap-2xs md:hidden"},ue=["aria-current","aria-label","onClick"],me=R({__name:"ItemsSlider",props:{container:{type:Boolean,default:!1},sliderClass:{default:""},spacedItems:{type:Boolean,default:!1},withArrows:{type:Boolean,default:!1},withIndicatorDots:{type:Boolean,default:!1},hideDisabledArrows:{type:Boolean,default:!1},mode:{default:"horizontal"},slideCount:{default:0}},emits:["update:activeSlide"],setup(e,{expose:n,emit:x}){const w=e,I=s(),S=G(),{next:h,prev:m,isNextEnabled:i,isPrevEnabled:d,onScroll:H,scrollImageIntoView:b,activeSlide:r,isScrollable:y}=ne(I,w.mode),$=L(()=>S.value?U:"div");ee(()=>H()),n({scrollImageIntoView:b});const B=x;return le(r,t=>{B("update:activeSlide",t)}),(t,a)=>(A(),k("div",{class:p(["relative focus:outline-none focus-visible:outline-dashed focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-petrol-dark",{"overflow-y-scroll scrollbar-hide":t.mode==="vertical"}])},[f(t.$slots,"header"),Y("div",{ref_key:"sliderRef",ref:I,class:p(["flex w-full shrink-0 snap-mandatory scrollbar-hide focus:outline-none focus-visible:outline-dashed focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-petrol-dark",[{container:t.container,"space-x-md":t.spacedItems,"snap-y flex-col overflow-x-hidden overflow-y-scroll":t.mode==="vertical","snap-x overflow-x-auto overflow-y-hidden":t.mode==="horizontal"},t.sliderClass]]),onScrollPassive:a[0]||(a[0]=(...u)=>l(H)&&l(H)(...u))},[f(t.$slots,"default")],34),(A(),te(oe($.value),{duration:150},{default:C(()=>[t.withArrows?(A(),k("div",ie,[f(t.$slots,"arrows",V(W({prev:l(m),isPrevEnabled:l(d),next:l(h),isNextEnabled:l(i),isScrollable:l(y)})),()=>[f(t.$slots,"prev-button",V(W({prev:l(m),isPrevEnabled:l(d)})),()=>[v(l(D),{class:p(["absolute hidden sm:flex",{"disabled:hidden":t.hideDisabledArrows,"left-none top-1/2 -translate-y-1/2":t.mode==="horizontal","-top-2xl left-1/2 -translate-x-1/2 rotate-90":t.mode==="vertical"}]),variant:"transparent",size:"lg",disabled:!l(d),onClick:a[1]||(a[1]=u=>l(m)())},{default:C(()=>[v(l(_),{class:"icon-md"})]),_:1},8,["class","disabled"]),v(l(D),{class:p(["absolute flex sm:hidden",{"disabled:hidden":t.hideDisabledArrows,"left-none top-1/2 -translate-y-1/2":t.mode==="horizontal","-top-2xl left-1/2 -translate-x-1/2 rotate-90":t.mode==="vertical"}]),variant:"transparent",size:"md",disabled:!l(d),onClick:a[2]||(a[2]=u=>l(m)())},{default:C(()=>[v(l(_),{class:"icon-md"})]),_:1},8,["class","disabled"])]),f(t.$slots,"next-button",V(W({next:l(h),isNextEnabled:l(i)})),()=>[v(l(D),{class:p(["absolute hidden sm:flex",{"disabled:hidden":t.hideDisabledArrows,"right-none top-1/2 -translate-y-1/2":t.mode==="horizontal","-bottom-2xl left-1/2 -translate-x-1/2 rotate-90":t.mode==="vertical"}]),variant:"transparent",size:"lg",disabled:!l(i),onClick:a[3]||(a[3]=u=>l(h)())},{default:C(()=>[v(l(j),{class:"icon-md"})]),_:1},8,["class","disabled"]),v(l(D),{class:p(["absolute flex sm:hidden",{"disabled:hidden":t.hideDisabledArrows,"right-none top-1/2 -translate-y-1/2":t.mode==="horizontal","-bottom-2xl left-1/2 -translate-x-1/2 rotate-90":t.mode==="vertical"}]),variant:"transparent",size:"md",disabled:!l(i),onClick:a[4]||(a[4]=u=>l(h)())},{default:C(()=>[v(l(j),{class:"icon-md"})]),_:1},8,["class","disabled"])])])])):q("",!0)]),_:3})),f(t.$slots,"thumbnails",{scrollImageIntoView:l(b),activeSlide:l(r)}),w.withIndicatorDots?f(t.$slots,"indicator-dots",{key:0,activeSlide:l(r),scrollImageIntoView:l(b)},()=>[Y("div",re,[(A(!0),k(ae,null,se(t.slideCount,(u,c)=>(A(),k("button",{key:c,class:p(["pointer-events-auto cursor-pointer rounded-full",l(r)===c?"h-3xs w-lg bg-neutral-inverse-medium on-surface:bg-neutral":"bg-neutral-disabled size-2xs"]),"aria-current":l(r)===c,"aria-label":`Slide ${c}`,onClick:P=>l(b)(c,"smooth")},null,10,ue))),128))])]):q("",!0)],2))}});
1export{me as _};

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.