1import{an as I,ao as G,ap as Q,d as F,a as h,B as R,o as l,i as y,F as A,n as W,e as a,Q as E,N as X,h as D,r as L,_ as $,O as N,Y as z,b as c,D as J,R as Y,x as p,c as w,g as C,l as x,t as V,j as U,ae as K,b3 as Z,a6 as ee,S as ne,G as te}from"./index-DNygmCp6.js";import{A as oe}from"./AppBreadcrumb-DixwCEc_.js";import{P as ae}from"./ThePageTitle-DwixCWh4.js";import{a as se}from"./download-Cm9GYQI1.js";const ie=async(b="")=>{if(!b.trim())return[];const s={},d=new Headers;d.append("Content-Type","application/json"),d.append("Accept","application/json");const i={method:"POST",headers:d,body:I({content:b})},n=`${Q}/annotate/entities`;return(await G(n,s,i)).map(f=>({...f,tokens:f.tokens||[]}))},re=F({__name:"AppUpload",emits:["upload"],setup(b,{emit:s}){const d=s,i=L(!1),n=L();async function v(t){const o=((t==null?void 0:t.files)||[])[0],m=await o.text()||"",r=(o==null?void 0:o.name)||"";d("upload",m,r),m&&n.value&&(n.value.value="")}function _(t){v(t.target)}function f(){var t;(t=n.value)==null||t.click()}function T(t){i.value=!1,v(t.dataTransfer)}return(t,o)=>{const m=h("AppButton"),r=R("tooltip");return l(),y(A,null,[W(a(m,{class:X(["button",{drag:i.value}]),text:"Upload",icon:"upload",color:"secondary",onClick:f,onDragenter:o[0]||(o[0]=e=>i.value=!0),onDragleave:o[1]||(o[1]=e=>i.value=!1),onDragover:o[2]||(o[2]=E(()=>{},["prevent"])),onDrop:E(T,["prevent","stop"])},null,8,["class"]),[[r,"Choose or drag & drop a file"]]),D("input",{ref_key:"input",ref:n,"aria-label":"invisible input",type:"file",accept:"text/plain",style:{display:"none"},onChange:_},null,544)],64)}}}),le=$(re,[["__scopeId","data-v-a797d1a5"]]),de=`Lewis (1978) found 7 affected males and 5 affected females in 3 consecutive generations of a Caucasian kindred. As in the X-linked Nettleship-Falls form of ocular albinism (300500), the patients showed reduced visual acuity, photophobia, nystagmus, translucent irides, strabismus, hypermetropic refractive errors, and albinotic fundus with foveal hypoplasia. The skin lesions showed macromelanosomes as in X-linked ocular albinism. Deafness, which was accompanied by vestibular hypofunction, lentigines even in unexposed areas, optic nerve dysplasia, and dominant inheritance distinguished this form of ocular albinism. (In the LEOPARD syndrome (151100) vestibular function is normal.) 2 3Bard (1978) described a kindred that was atypical of Waardenburg syndrome (see 193510) in several ways. Although the nasal root was prominent, one affected person had dystopia of the inner canthi or lower puncta. The face in some showed striking freckling of pale skin. Symptomatic vestibular disturbance was another unusual feature. Lewis (1989) expressed the opinion that the family reported by Bard (1978) as an instance of Waardenburg syndrome in fact had this disorder. Lewis (1989) had also been told of 2 other small families with the syndrome. Goldberg (1966) described a Waardenburg syndrome family with apparent ocular albinism. 4 5Morell et al. (1997) presented an update of the clinical findings in the family of Bard (1978). The deafness was sensorineural and congenital. Heterochromia iridis was a prominent feature in 1 sibship in which both segmental iris bicolor and complete heterochromia occurred. Most of the affected individuals showed transillumination defects of the iris. Hypopigmentation of the fundus was mild in some, moderate in others, and severe in yet others. Almost all affected individuals had strabismus and visual acuity defects. One individual with a prominent white forelock, characteristic of Waardenburg syndrome, was pictured.`,pe={content:de},ue={key:2},ce={key:3,class:"results"},fe=F({__name:"PageTextAnnotator",setup(b){const s=N("annotations-content",""),d=N("annotations-filename",""),{query:i,data:n,isLoading:v,isError:_}=ne(async function(){return await ie(s.value)},[]);async function f(r="",e=""){s.value=r,d.value=e,await i()}function T(){d.value=""}async function t(){s.value=pe.content,d.value="Example",await i()}function o(){se(n.value.filter(({tokens:r})=>r.length),"annotations")}function m(){const r=[];for(const{tokens:e}of n.value)for(const{id:u,name:g}of e)u!=null&&u.startsWith("HP:")&&r.push({id:u,name:g});return te.uniqBy(r,"id")}return z(async()=>{s.value&&await i()}),(r,e)=>{const u=h("AppButton"),g=h("AppFlex"),P=h("AppSection"),S=h("AppStatus"),H=h("tooltip"),M=R("tooltip");return l(),y(A,null,[a(oe),a(ae,{id:"text-annotator",title:"Text Annotator"}),a(P,null,{default:c(()=>[a(J,{modelValue:p(s),"onUpdate:modelValue":e[0]||(e[0]=k=>Y(s)?s.value=k:null),multi:!0,icon:"file-lines",placeholder:"Paste full text",onCh
5ange:T},null,8,["modelValue"]),a(g,null,{default:c(()=>[e[2]||(e[2]=D("span",null,"or",-1)),a(le,{onUpload:f}),e[3]||(e[3]=D("span",null,"or",-1)),a(u,{text:"Try an example",design:"small",onClick:e[1]||(e[1]=k=>t())})]),_:1}),a(u,{text:"Annotate Text",icon:"search",onClick:p(i)},null,8,["onClick"])]),_:1}),a(P,null,{default:c(()=>[p(v)?(l(),w(S,{key:0,code:"loading"},{default:c(()=>[...e[4]||(e[4]=[C("Loading annotations",-1)])]),_:1})):x("",!0),p(_)?(l(),w(S,{key:1,code:"error"},{default:c(()=>[...e[5]||(e[5]=[C("Error loading annotations",-1)])]),_:1})):x("",!0),p(n).length?(l(),y("strong",ue,"Annotations for "+V(p(d)||"pasted text"),1)):x("",!0),p(n).length?(l(),y("p",ce,[(l(!0),y(A,null,U(p(n),({text:k,tokens:B},O)=>(l(),w(H,{key:O,interactive:!0,"append-to":p(K),tabindex:B.length?0:-1,tag:"span"},Z({default:c(()=>[C(V(k),1)]),_:2},[B.length?{name:"content",fn:c(()=>[a(g,{direction:"col","align-h":"left",gap:"tiny"},{default:c(()=>[(l(!0),y(A,null,U(B,(j,q)=>(l(),w(ee,{key:q,node:j,"show-id":!0},null,8,["node"]))),128))]),_:2},1024)]),key:"0"}:void 0]),1032,["append-to","tabindex"]))),128))])):x("",!0),p(n).length?(l(),w(g,{key:4},{default:c(()=>[a(u,{text:"Download",icon:"download",onClick:o}),W(a(u,{to:"search-phenotypes",state:{phenotypes:m()},text:"Phenotype Explorer",icon:"arrow-right",color:"secondary"},null,8,["state"]),[[M,"Send any annotations above that are phenotypes to Phenotype Explorer for comparison"]])]),_:1})):x("",!0)]),_:1})],64)}}}),ge=$(fe,[["__scopeId","data-v-d51506aa"]]);export{ge 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.