1import{_ as H}from"./DsBGFU6J.js";import{_ as S,c as y,o as c,e as p,k as $,h as b,t as m,q as v,a1 as k,a2 as B,d as O,W as U,w as q,$ as z,A as u,i as t}from"./aptPLVH2.js";import{z as F,a5 as N,a6 as V}from"./C8RJE8__.js";import{u as j}from"./BXRHmFJA.js";import{g as x}from"./DBzOMNI8.js";import{a as G}from"./ARgK6VKV.js";import"./B40K4TKN.js";import"./JxvmaM3B.js";import"./Bu11ccyu.js";import"./CPPNC6aU.js";import"./CDSxnCqe.js";import"./DLo0CNjT.js";import"./Cj-OVJM9.js";import"./CbysRqFH.js";import"./DzEQJQrY.js";import"./CpZqmFLX.js";import"./CHurwKGp.js";import"./XxG9KCYY.js";import"./CDjH8JO3.js";import"./BqdzS39n.js";import"./Cjadu2nn.js";import"./Cn-1HJIg.js";import"./BYQMlgPQ.js";import"./Dm1EPtYK.js";import"./4E6Tv41B.js";import"./BXubQAps.js";const Q={},W={key:0};function I(l,o){const r=H;return c(),y(r,k(B(l.$attrs)),{"item.name":p(({item:e})=>[v(m(e.agent.name),1)]),"item.affiliation":p(({item:e})=>[v(m(e.affiliation),1)]),"item.type":p(({item:e})=>[e.type?(c(),$("div",W,m(e.type.value),1)):b("",!0)]),_:1},16)}const J=Object.assign(S(Q,[["render",I]]),{__name:"DataTableDatasetAuthor"}),Ae=O({__name:"authors",async setup(l){let o,r;const e=U(),{options:a,handleUpdate:A,headers:P,handleHeadersReset:D,handleHeadersChange:T,sortBy:d,searchParams:_,setStateFromQueryParams:f}=F({initOptions:N.options,initHeaders:V});f(e);const{data:i,status:w,refresh:R}=([o,r]=q(()=>j(`/datasets/${e.params.id}/dataset-authors/`,{query:u(()=>({limit:a.value.itemsPerPage,offset:x(a.value.page,a.value.itemsPerPage),expand:"agent,type",ordering:d.value,..._.value})),watch:!1})),o=await o,r(),o);z(()=>e.fullPath,async(s,n)=>{s!==n&&(f(e),await R())});const{exportData:C}=G(`/datasets/${e.params.id}/dataset-authors/`,{totalRows:u(()=>{var s;return((s=i.value)==null?void 0:s.count)??0}),query:u(()=>({limit:a.value.itemsPerPage,offset:x(a.value.page,a.value.itemsPerPage),expand:"agent,type",ordering:d.value,..._.value}))});return(s,n)=>{var h,g;const E=J;return c(),y(E,{items:((h=t(i))==null?void 0:h.results)??[],count:((g=t(i))==null?void 0:g.count)??0,options:t(a),headers:t(P),"is-loading":t(w)==="pending","export-func":t(C),"export-types":["csv"],onUpdate:t(A),"onChange:headers":t(T),"onReset:headers":n[0]||(n[0]=K=>t(D)(t(a)))},null,8,["items","count","options","headers","is-loading","export-func","onUpdate","onChange:headers"])}}});export{Ae as default}; 2//# sourceMappingURL=BmhlVHHM.js.map
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.