@glycanage/web-components 1.88.0 → 1.89.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/overlap-title.wc.js +1 -1
- package/package.json +1 -1
package/dist/overlap-title.wc.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as W,S as X,i as Y,f as
|
|
1
|
+
import{c as W,S as X,i as Y,f as Z,s as _,a as e0,d as r0,g as I,u as J,k as K,o as t0,e as $,m as A,b as a0,v as O,n as F,p as l,q as C,r as n0}from"./index2.js";function s0(o){e0(o,"svelte-1hj9ayt",".main.svelte-1hj9ayt{height:100%;width:100%;display:flex;align-items:center;justify-content:center;font-size:1rem;border-radius:.75rem}.container.svelte-1hj9ayt{width:90%;height:80%;display:flex;align-items:center;justify-content:space-between}p.svelte-1hj9ayt{max-width:36ch}")}function Q(o){let r,e,a,i,m,g,c,x,t,u;return{c(){r=$("div"),e=$("div"),a=$("p"),i=A("There is "),m=$("b"),g=A(o[0]),c=A(" of glycan metrics between current results and this condition."),x=a0(),t=O("svg"),u=O("path"),F(m,"color",o[1]),l(a,"class","svelte-1hj9ayt"),l(u,"d","M16.3004 43.5002L13.4004 38.6002L7.90039 37.4002C7.40039 37.3002 7.00039 37.0419 6.70039 36.6252C6.40039 36.2086 6.28372 35.7502 6.35039 35.2502L6.90039 29.6002L3.15039 25.3002C2.81706 24.9336 2.65039 24.5002 2.65039 24.0002C2.65039 23.5002 2.81706 23.0669 3.15039 22.7002L6.90039 18.4002L6.35039 12.7502C6.28372 12.2502 6.40039 11.7919 6.70039 11.3752C7.00039 10.9586 7.40039 10.7002 7.90039 10.6002L13.4004 9.40024L16.3004 4.50024C16.5671 4.0669 16.9337 3.77524 17.4004 3.62524C17.8671 3.47524 18.3337 3.50024 18.8004 3.70024L24.0004 5.90024L29.2004 3.70024C29.6671 3.50024 30.1337 3.47524 30.6004 3.62524C31.0671 3.77524 31.4337 4.0669 31.7004 4.50024L34.6004 9.40024L40.1004 10.6002C40.6004 10.7002 41.0004 10.9586 41.3004 11.3752C41.6004 11.7919 41.7171 12.2502 41.6504 12.7502L41.1004 18.4002L44.8504 22.7002C45.1837 23.0669 45.3504 23.5002 45.3504 24.0002C45.3504 24.5002 45.1837 24.9336 44.8504 25.3002L41.1004 29.6002L41.6504 35.2502C41.7171 35.7502 41.6004 36.2086 41.3004 36.6252C41.0004 37.0419 40.6004 37.3002 40.1004 37.4002L34.6004 38.6002L31.7004 43.5002C31.4337 43.9336 31.0671 44.2252 30.6004 44.3752C30.1337 44.5252 29.6671 44.5002 29.2004 44.3002L24.0004 42.1002L18.8004 44.3002C18.3337 44.5002 17.8671 44.5252 17.4004 44.3752C16.9337 44.2252 16.5671 43.9336 16.3004 43.5002ZM24.0004 34.0002C24.5671 34.0002 25.0421 33.8086 25.4254 33.4252C25.8087 33.0419 26.0004 32.5669 26.0004 32.0002C26.0004 31.4336 25.8087 30.9586 25.4254 30.5752C25.0421 30.1919 24.5671 30.0002 24.0004 30.0002C23.4337 30.0002 22.9587 30.1919 22.5754 30.5752C22.1921 30.9586 22.0004 31.4336 22.0004 32.0002C22.0004 32.5669 22.1921 33.0419 22.5754 33.4252C22.9587 33.8086 23.4337 34.0002 24.0004 34.0002ZM24.0004 26.0002C24.5671 26.0002 25.0421 25.8086 25.4254 25.4252C25.8087 25.0419 26.0004 24.5669 26.0004 24.0002V16.0002C26.0004 15.4336 25.8087 14.9586 25.4254 14.5752C25.0421 14.1919 24.5671 14.0002 24.0004 14.0002C23.4337 14.0002 22.9587 14.1919 22.5754 14.5752C22.1921 14.9586 22.0004 15.4336 22.0004 16.0002V24.0002C22.0004 24.5669 22.1921 25.0419 22.5754 25.4252C22.9587 25.8086 23.4337 26.0002 24.0004 26.0002Z"),l(u,"fill",o[1]),l(t,"width","48"),l(t,"height","48"),l(t,"viewBox","0 0 48 48"),l(t,"fill","none"),l(t,"xmlns","http://www.w3.org/2000/svg"),l(e,"class","container svelte-1hj9ayt"),l(r,"class","main svelte-1hj9ayt"),F(r,"background-color",o[2])},m(s,n){I(s,r,n),C(r,e),C(e,a),C(a,i),C(a,m),C(m,g),C(a,c),C(e,x),C(e,t),C(t,u)},p(s,n){n[0]&1&&n0(g,s[0]),n[0]&2&&F(m,"color",s[1]),n[0]&2&&l(u,"fill",s[1]),n[0]&4&&F(r,"background-color",s[2])},d(s){s&&K(r)}}}function o0(o){let r,e=o[3]&&Q(o);return{c(){e&&e.c(),r=r0()},m(a,i){e&&e.m(a,i),I(a,r,i)},p(a,i){a[3]?e?e.p(a,i):(e=Q(a),e.c(),e.m(r.parentNode,r)):e&&(e.d(1),e=null)},i:J,o:J,d(a){a&&K(r),e&&e.d(a)}}}function i0(o,r,e){let{lang:a}=r,{disease:i}=r,{service:m=window.GaReportService}=r,g=[{name:"risk",counter:"riskCounter",max:1},{name:"pre",counter:"preCounter",max:1},{name:"hyper",counter:"hyperCounter",max:3},{name:"cva",counter:"cvaCounter",max:4},{name:"femalecva",counter:"cvaFCounter",max:1},{name:"atherosclerosis",counter:"atheroCounter",max:5},{name:"coronary",counter:"coronaryCounter",max:2},{name:"diabetes",counter:"diabetesCounter",max:5},{name:"dyslipidemia",counter:"dyslipidemiaCounter",max:4},{name:"arthritis",counter:"arthritisCounter",max:4},{name:"colitis",counter:"colitisCounter",max:4},{name:"crohn",counter:"crohnCounter",max:5},{name:"sle",counter:"sleCounter",max:4},{name:"copd",counter:"copdCounter",max:2},{name:"peri",counter:"periCounter",max:4}],c,x="",t="no significant overlap",u="",s="",n=0,B=0,R=0,V=0,k=0,b=0,q=0,d=0,j=0,h=0,y=0,f=0,L=0,v=0,E=0,N=0,w=0,G=0,z=0,P=0,T=0,D=0,M=0,H=!1;const S=g.find(p=>p.name===i);return t0(async()=>{switch(c=await m.getReport(),x=c.sex,G=Number(c.Bpercentile),z=Number(c.Spercentile),P=Number(c.G0percentile),T=Number(c.G1percentile),D=Number(c.G2percentile),M=Number(c.P22percentile),G>68&&(R++,b++,d++,h++,y++,f++,v++,N++,w++),G<32&&L++,z<32&&(b++,d++,j++,h++,y++,f++,v++,w++),P>68&&(k++,b++,d++,j++,h++,y++,L++,v++,w++),T<32&&(k++,d++,h++,f++,L++,v++,N++),D<32&&(V++,k++,b++,d++,h++,y++,f++,L++,v++,w++),M<32&&E++,E++,M<32&&x==="F"&&q++,S&&(n={riskCounter:R,preCounter:V,hyperCounter:k,cvaCounter:b,cvaFCounter:q,atheroCounter:d,coronaryCounter:j,diabetesCounter:h,dyslipidemiaCounter:y,arthritisCounter:f,colitisCounter:L,crohnCounter:v,sleCounter:E,copdCounter:N,periCounter:w}[S.counter],B=S.max),B){case 1:n===1&&e(0,t="some overlap");break;case 2:n===1&&e(0,t="minor overlap"),n===2&&e(0,t="some overlap");break;case 3:n===2&&e(0,t="minor overlap"),n===3&&e(0,t="some overlap");break;case 4:n===3&&e(0,t="minor overlap"),n===4&&e(0,t="some overlap");break;case 5:(n===3||n===4)&&e(0,t="minor overlap"),n===5&&e(0,t="some overlap");break}switch(t){case"no significant overlap":e(1,u="#119999"),e(2,s="#E7F5F5");break;case"minor overlap":e(1,u="#FFAA00"),e(2,s="#FFF7E4");break;case"some overlap":e(1,u="#EE6600"),e(2,s="#FCEFE4");break}e(3,H=!0)}),o.$$set=p=>{"lang"in p&&e(4,a=p.lang),"disease"in p&&e(5,i=p.disease),"service"in p&&e(6,m=p.service)},[t,u,s,H,a,i,m]}class U extends X{constructor(r){super(),Y(this,r,i0,o0,_,{lang:4,disease:5,service:6},s0,[-1,-1])}get lang(){return this.$$.ctx[4]}set lang(r){this.$$set({lang:r}),Z()}get disease(){return this.$$.ctx[5]}set disease(r){this.$$set({disease:r}),Z()}get service(){return this.$$.ctx[6]}set service(r){this.$$set({service:r}),Z()}}customElements.define("ga-overlap-title",W(U,{lang:{},disease:{},service:{}},[],[],!0));export{U as default};
|