PageSourceSearch

https://frilandsmuseet-web-majso.ondigitalocean.app/_nuxt/D6CYIlms.js

js frilandsmuseet-web-majso.ondigitalocean.app collected 2026-10-03 14:55:12 UTC 2,766 bytes, 1 lines download raw bytes

1import{N as A,P as f,aD as E,W as y,a6 as d,at as b,a7 as u,a8 as P,ai as W,aj as q,ak as C,af as t,aO as c,av as I,aK as m,aB as B,a9 as F,ac as G}from"./KbHtmLcy.js";import{u as K}from"./4Z2TuAz1.js";import{e as H}from"./zxgOE8UT.js";import{u as J}from"./DKBbB34n.js";import{u as Q}from"./CnZ-vC3p.js";import{_ as U}from"./DlAUqK2U.js";const X={key:0,class:"tab-component"},Y=["aria-label"],Z=["onClick","onKeydown","id","aria-selected","aria-controls","tabindex"],x=["id","aria-labelledby"],ee=A({__name:"Tabs",props:{items:{default:()=>[]}},setup(N){var T;const n=N,[S,v]=H({dragFree:!0}),s=f(((T=n==null?void 0:n.items[0])==null?void 0:T.id)||0),g=f(0),V=f("none"),h=E("$tabs"),R=y(()=>n.items.find(e=>e.id===s.value)),j=(e,a)=>{var p;s.value=e,(p=v==null?void 0:v.value)==null||p.scrollTo(a),V.value=a<g.value?"left":"right",g.value=a},{invert:D}=J(),L=y(()=>D("text-ink-neutral-tertiary","text-ink-neutral-tertiary-invert")),M=y(()=>n.items.findIndex(e=>e.id===s.value)),{focus:i,select:O,tabIndexFor:z}=Q({count:()=>n.items.length,selected:M,tabAt:e=>{var a;return(a=h.value)==null?void 0:a[e]},onSelect:e=>{const a=n.items[e];a&&j(a.id,e)},activation:"automatic"});return(e,a)=>{var p,$,k,_,w;return(p=e.items)!=null&&p.length?(u(),d("div",X,[(($=e.items)==null?void 0:$.length)>1?(u(),d("div",{key:0,class:"tab-slider",ref_key:"emblaRef",ref:S},[P("div",{class:"tab-slider_container pb-spacing-5",role:"tablist","aria-label":e.$t("tabs.label")},[(u(!0),d(W,null,q(e.items,(o,r)=>(u(),d("button",{key:o.id,ref_for:!0,ref_key:"$tabs",ref:h,onClick:l=>t(O)(r),onKeydown:[c(m(l=>t(i)(r+1),["prevent"]),["right"]),c(m(l=>t(i)(r+1),["prevent"]),["down"]),c(m(l=>t(i)(r-1),["prevent"]),["left"]),c(m(l=>t(i)(r-1),["prevent"]),["up"]),a[0]||(a[0]=c(m(l=>t(i)(0),["prevent"]),["home"])),a[1]||(a[1]=c(m(l=>t(i)(e.items.length-1),["prevent"]),["end"]))],role:"tab",id:`tab-${o.id}`,"aria-selected":t(s)===o.id,"aria-controls":`panel-${o.id}`,tabindex:t(z)(r),class:C(["tab-slider_slide text-nowrap",[("cn"in e?e.cn:t(I))(("useTypography"in e?e.useTypography:t(K))("h4"),"text-nowrap",{[t(L)]:o.id!==t(s)}),,]])},[B(e.$slots,"label",{tab:o,index:r},()=>[G(F(o.label),1)],!0)],42,Z))),128))],8,Y)],512)):b("",!0),((k=e.items)==null?void 0:k.length)==1?(u(),d("div",{key:1,class:C(["pb-spacing-5",("cn"in e?e.cn:t(I))(("useTypography"in e?e.useTypography:t(K))("h4"),"text-nowrap")])},F((w=(_=e.items)==null?void 0:_[0])==null?void 0:w.label),3)):b("",!0),t(s)?(u(),d("div",{id:`panel-${t(s)}`,"aria-labelledby":`tab-${t(s)}`,role:"tabpanel",class:"tab-content",key:`panel-${t(s)}`},[B(e.$slots,"item",{item:t(R),items:e.items},void 0,!0)],8,x)):b("",!0)])):b("",!0)}}}),ie=Object.assign(U(ee,[["__scopeId","data-v-d2838b6d"]]),{__name:"ModulesTabs"});export{ie 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.