PageSourceSearch

https://monarchinitiative.org/assets/PagePhenogridSearch-B193FD85.js

js monarchinitiative.org collected 2026-09-24 17:37:47 UTC 1,787 bytes, 1 lines download raw bytes

1import{d as w,L as j,r as l,w as h,z as x,a as S,o as s,i as E,e as P,a0 as T,h as B,x as o,c as d,b as m,g as f,G as C,F as G,S as N,_ as q}from"./index-C1QTFfJN.js";import{m as r,a as A}from"./phenotype-explorer-CvF7nd3c.js";import{T as L}from"./ThePhenogrid-DWL6YlEK.js";import"./AppSelectSingle-Canqs8TM.js";import"./download-Da1lzPWB.js";const R=["href"],V=w({__name:"PagePhenogridSearch",setup(F){const y=j(),n=l([]),i=l("Human Diseases"),u=l(r[0]),c=l(""),{query:_,data:g,isLoading:b,isError:k}=N(async function(){return await A(n.value,i.value,u.value.id)},{summary:[],phenogrid:{cols:[],rows:[],cells:{},unmatched:[]}});return h([n,i,u],_),h(()=>y.query,()=>{const{subjects:e="","object-group":a="",metric:t="",stylesheet:p=""}=y.query;p&&typeof p=="string"&&(c.value=window.decodeURIComponent(p)),e&&typeof e=="string"&&a&&typeof a=="string"&&(n.value=e.split(","),i.value=a),t&&typeof t=="string"&&(u.value=r.find(v=>v.id===t)||r[0])},{immediate:!0,deep:!0}),x("message",e=>{"subjects"in e.data&&"object-group"in e.data&&(n.value=e.data.subjects,i.value=e.data["object-group"]),"metric"in e.data&&(u.value=r.find(a=>a.id===e.data.metric)||r[0]),"stylesheet"in e.data&&(c.value=e.data.stylesheet)}),(e,a)=>{const t=S("AppStatus");return s(),E(G,null,[P(T),B("link",{href:c.value,rel:"stylesheet"},null,8,R),o(b)?(s(),d(t,{key:0,code:"loading"},{default:m(()=>[...a[0]||(a[0]=[f("Running analysis",-1)])]),_:1})):o(k)?(s(),d(t,{key:1,code:"error"},{default:m(()=>[...a[1]||(a[1]=[f("Error running analysis",-1)])]),_:1})):o(C.isEmpty)(o(g).phenogrid.cells)?(s(),d(t,{key:2,code:"warning"},{default:m(()=>[...a[2]||(a[2]=[f("No results",-1)])]),_:1})):(s(),d(L,{key:3,data:o(g).phenogrid},null,8,["data"]))],64)}}}),O=q(V,[["__scopeId","data-v-61acb454"]]);export{O as default};

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.