@glycanage/web-components 1.36.0 → 1.37.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/Arrow.js CHANGED
@@ -1 +1 @@
1
- import{S as R,i as U,s as V,e as l,b as g,t as H,p as J,k as t,j as f,g as C,l as r,m as K,n as N,h as F,o as W}from"./index2.js";import{s as O}from"./helpers.js";function P(n){let o,d,e;return{c(){o=l("div"),d=g(),e=l("div"),t(o,"position","absolute"),t(o,"right","12px"),t(o,"bottom","8px"),t(o,"height","3px"),t(o,"width","24px"),t(o,"background-color","#DF2020"),t(o,"border-radius","4px"),t(o,"transform","rotate(135deg)"),t(e,"position","absolute"),t(e,"right","12px"),t(e,"top","8px"),t(e,"height","3px"),t(e,"width","24px"),t(e,"background-color","#DF2020"),t(e,"border-radius","4px"),t(e,"transform","rotate(-135deg)")},m(i,s){C(i,o,s),C(i,d,s),C(i,e,s)},d(i){i&&(F(o),F(d),F(e))}}}function Q(n){let o,d,e;return{c(){o=l("div"),d=g(),e=l("div"),t(o,"position","absolute"),t(o,"left","12px"),t(o,"bottom","8px"),t(o,"height","3px"),t(o,"width","24px"),t(o,"background-color","#DF2020"),t(o,"border-radius","4px"),t(o,"transform","rotate(45deg)"),t(e,"position","absolute"),t(e,"left","12px"),t(e,"top","8px"),t(e,"height","3px"),t(e,"width","24px"),t(e,"background-color","#DF2020"),t(e,"border-radius","4px"),t(e,"transform","rotate(-45deg)")},m(i,s){C(i,o,s),C(i,d,s),C(i,e,s)},d(i){i&&(F(o),F(d),F(e))}}}function X(n){let o,d,e,i,s,v,I,m,S,A,T,w,Z,k,$,x,q,p,D,B,j,M,y=O(n[0])+"",z,E,G,b,L,c=n[1]==="left"&&P(),u=n[1]==="right"&&Q();return{c(){o=l("div"),d=l("div"),c&&c.c(),e=g(),i=l("div"),s=g(),v=l("div"),I=g(),m=l("div"),m.innerHTML='<div style="position: absolute; left: 92.05%; height: 2px; width: 12px; background-color: #32664C; transform: rotate(90deg); border-radius: 4px;"></div>',S=g(),A=l("div"),T=g(),w=l("div"),Z=g(),k=l("div"),$=g(),x=l("div"),u&&u.c(),q=g(),p=l("div"),D=l("div"),B=l("b"),j=H(n[0]),M=l("sup"),z=H(y),E=H(" percentile"),G=g(),b=J("svg"),L=J("path"),t(d,"position","relative"),t(d,"height","100%"),t(d,"width","7%"),t(d,"background-color",n[1]==="left"?"#DF2020":"#CADBD1"),t(d,"border-radius","4px"),t(i,"height","100%"),t(i,"width","13.7%"),t(i,"background-color",n[1]==="left"?"#DF2020":"#CADBD1"),t(i,"border-radius","4px"),t(v,"height","100%"),t(v,"width","13.7%"),t(v,"background-color",n[1]==="left"?"#F2800D":"#CADBD1"),t(v,"border-radius","4px"),t(m,"position","relative"),t(m,"height","100%"),t(m,"width","13.7%"),t(m,"background-color","#CADBD1"),t(m,"border-radius","4px"),t(A,"height","100%"),t(A,"width","13.7%"),t(A,"background-color","#CADBD1"),t(A,"border-radius","4px"),t(w,"height","100%"),t(w,"width","13.7%"),t(w,"background-color",n[1]==="left"?"#CADBD1":"#F2800D"),t(w,"border-radius","4px"),t(k,"height","100%"),t(k,"width","13.7%"),t(k,"background-color",n[1]==="left"?"#CADBD1":"#DF2020"),t(k,"border-radius","4px"),t(x,"position","relative"),t(x,"height","100%"),t(x,"width","7%"),t(x,"background-color",n[1]==="left"?"#CADBD1":"#DF2020"),t(x,"border-radius","4px"),f(D,"class","message"),t(D,"color","#09341F"),t(D,"z-index","99999"),t(D,"min-width","100px"),t(D,"font-size","0.74rem"),t(D,"display","flex"),t(D,"justify-content","center"),f(L,"d","M14.0718 4C17.151 -1.33334 24.849 -1.33333 27.9282 4.00001L40.0525 25C43.1317 30.3333 39.2827 37 33.1243 37L8.87563 37C2.71722 37 -1.13177 30.3333 1.94743 25L14.0718 4Z"),f(L,"fill","#09371F"),f(b,"class","rotateImg"),t(b,"transform","rotate(180deg)"),f(b,"width","24%"),f(b,"height","24%"),f(b,"viewBox","0 0 42 37"),f(b,"fill","none"),f(b,"xmlns","http://www.w3.org/2000/svg"),t(p,"left",n[0]+"%"),t(p,"position","absolute"),t(p,"transform","translate(-50%, -100%)"),t(p,"display","flex"),t(p,"align-items","center"),t(p,"flex-direction","column"),t(p,"width","100px"),t(p,"height","38px"),t(o,"position","relative"),t(o,"width","100%"),t(o,"height","4px"),t(o,"display","flex"),t(o,"justify-content","space-between")},m(a,h){C(a,o,h),r(o,d),c&&c.m(d,null),r(o,e),r(o,i),r(o,s),r(o,v),r(o,I),r(o,m),r(o,S),r(o,A),r(o,T),r(o,w),r(o,Z),r(o,k),r(o,$),r(o,x),u&&u.m(x,null),r(o,q),r(o,p),r(p,D),r(D,B),r(B,j),r(B,M),r(M,z),r(B,E),r(p,G),r(p,b),r(b,L)},p(a,[h]){a[1]==="left"?c||(c=P(),c.c(),c.m(d,null)):c&&(c.d(1),c=null),h&2&&t(d,"background-color",a[1]==="left"?"#DF2020":"#CADBD1"),h&2&&t(i,"background-color",a[1]==="left"?"#DF2020":"#CADBD1"),h&2&&t(v,"background-color",a[1]==="left"?"#F2800D":"#CADBD1"),h&2&&t(w,"background-color",a[1]==="left"?"#CADBD1":"#F2800D"),h&2&&t(k,"background-color",a[1]==="left"?"#CADBD1":"#DF2020"),a[1]==="right"?u||(u=Q(),u.c(),u.m(x,null)):u&&(u.d(1),u=null),h&2&&t(x,"background-color",a[1]==="left"?"#CADBD1":"#DF2020"),h&1&&K(j,a[0]),h&1&&y!==(y=O(a[0])+"")&&K(z,y),h&1&&t(p,"left",a[0]+"%")},i:N,o:N,d(a){a&&F(o),c&&c.d(),u&&u.d()}}}function Y(n,o,d){let{percentile:e=0}=o,{type:i=""}=o;return W(async()=>{console.log("type inside onMount",i)}),n.$$set=s=>{"percentile"in s&&d(0,e=s.percentile),"type"in s&&d(1,i=s.type)},[e,i]}class _ extends R{constructor(o){super(),U(this,o,Y,X,V,{percentile:0,type:1})}}export{_ as A};
1
+ import{S as V,i as W,s as X,e as d,b as x,t as I,p as O,k as t,j as m,g as w,l as r,m as P,n as Q,h as A,o as Y}from"./index2.js";import{s as R}from"./helpers.js";function T(n){let e,l,o;return{c(){e=d("div"),l=x(),o=d("div"),t(e,"position","absolute"),t(e,"right","12px"),t(e,"bottom","8px"),t(e,"height","3px"),t(e,"width","24px"),t(e,"background-color","#DF2020"),t(e,"border-radius","4px"),t(e,"transform","rotate(135deg)"),t(o,"position","absolute"),t(o,"right","12px"),t(o,"top","8px"),t(o,"height","3px"),t(o,"width","24px"),t(o,"background-color","#DF2020"),t(o,"border-radius","4px"),t(o,"transform","rotate(-135deg)")},m(i,s){w(i,e,s),w(i,l,s),w(i,o,s)},d(i){i&&(A(e),A(l),A(o))}}}function U(n){let e,l,o;return{c(){e=d("div"),l=x(),o=d("div"),t(e,"position","absolute"),t(e,"left","12px"),t(e,"bottom","8px"),t(e,"height","3px"),t(e,"width","24px"),t(e,"background-color","#DF2020"),t(e,"border-radius","4px"),t(e,"transform","rotate(45deg)"),t(o,"position","absolute"),t(o,"left","12px"),t(o,"top","8px"),t(o,"height","3px"),t(o,"width","24px"),t(o,"background-color","#DF2020"),t(o,"border-radius","4px"),t(o,"transform","rotate(-45deg)")},m(i,s){w(i,e,s),w(i,l,s),w(i,o,s)},d(i){i&&(A(e),A(l),A(o))}}}function _(n){let e,l,o,i,s,v,S,h,Z,k,q,B,E,C,G,F,H,g,J,p,D,y,z,M,j=R(n[0])+"",$,K,N,b,L,c=n[1]==="left"&&T(),u=n[1]==="right"&&U();return{c(){e=d("div"),l=d("div"),c&&c.c(),o=x(),i=d("div"),s=x(),v=d("div"),S=x(),h=d("div"),Z=x(),k=d("div"),q=x(),B=d("div"),E=x(),C=d("div"),G=x(),F=d("div"),H=x(),g=d("div"),u&&u.c(),J=x(),p=d("div"),D=d("div"),y=d("b"),z=I(n[0]),M=d("sup"),$=I(j),K=I(" percentile"),N=x(),b=O("svg"),L=O("path"),t(l,"position","relative"),t(l,"height","100%"),t(l,"flex","1"),t(l,"background-color",n[1]==="left"?"#DF2020":"#CADBD1"),t(l,"border-radius","4px"),t(i,"height","100%"),t(i,"flex","2"),t(i,"background-color",n[1]==="left"?"#DF2020":"#CADBD1"),t(i,"border-radius","4px"),t(v,"height","100%"),t(v,"flex","2"),t(v,"background-color",n[1]==="left"?"#F2800D":"#CADBD1"),t(v,"border-radius","4px"),t(h,"position","absolute"),t(h,"height","10px"),t(h,"width","2px"),t(h,"background-color","#32664C"),t(h,"transform","translate(-50%, -50%)"),t(h,"border-radius","4px"),t(h,"left","50%"),t(h,"top","50%"),t(k,"position","relative"),t(k,"height","100%"),t(k,"flex","2"),t(k,"background-color","#CADBD1"),t(k,"border-radius","4px"),t(B,"height","100%"),t(B,"flex","2"),t(B,"background-color","#CADBD1"),t(B,"border-radius","4px"),t(C,"height","100%"),t(C,"flex","2"),t(C,"background-color",n[1]==="left"?"#CADBD1":"#F2800D"),t(C,"border-radius","4px"),t(F,"height","100%"),t(F,"flex","2"),t(F,"background-color",n[1]==="left"?"#CADBD1":"#DF2020"),t(F,"border-radius","4px"),t(g,"position","relative"),t(g,"height","100%"),t(g,"flex","1"),t(g,"background-color",n[1]==="left"?"#CADBD1":"#DF2020"),t(g,"border-radius","4px"),m(D,"class","message"),t(D,"color","#09341F"),t(D,"z-index","99999"),t(D,"min-width","100px"),t(D,"font-size","0.74rem"),t(D,"display","flex"),t(D,"justify-content","center"),m(L,"d","M14.0718 4C17.151 -1.33334 24.849 -1.33333 27.9282 4.00001L40.0525 25C43.1317 30.3333 39.2827 37 33.1243 37L8.87563 37C2.71722 37 -1.13177 30.3333 1.94743 25L14.0718 4Z"),m(L,"fill","#09371F"),m(b,"class","rotateImg"),t(b,"transform","rotate(180deg)"),m(b,"width","24%"),m(b,"height","24%"),m(b,"viewBox","0 0 42 37"),m(b,"fill","none"),m(b,"xmlns","http://www.w3.org/2000/svg"),t(p,"left",n[0]+"%"),t(p,"position","absolute"),t(p,"transform","translate(-50%, -100%)"),t(p,"display","flex"),t(p,"align-items","center"),t(p,"flex-direction","column"),t(p,"width","100px"),t(p,"height","38px"),t(e,"position","relative"),t(e,"width","100%"),t(e,"height","4px"),t(e,"display","flex"),t(e,"justify-content","space-between"),t(e,"gap","4px")},m(a,f){w(a,e,f),r(e,l),c&&c.m(l,null),r(e,o),r(e,i),r(e,s),r(e,v),r(e,S),r(e,h),r(e,Z),r(e,k),r(e,q),r(e,B),r(e,E),r(e,C),r(e,G),r(e,F),r(e,H),r(e,g),u&&u.m(g,null),r(e,J),r(e,p),r(p,D),r(D,y),r(y,z),r(y,M),r(M,$),r(y,K),r(p,N),r(p,b),r(b,L)},p(a,[f]){a[1]==="left"?c||(c=T(),c.c(),c.m(l,null)):c&&(c.d(1),c=null),f&2&&t(l,"background-color",a[1]==="left"?"#DF2020":"#CADBD1"),f&2&&t(i,"background-color",a[1]==="left"?"#DF2020":"#CADBD1"),f&2&&t(v,"background-color",a[1]==="left"?"#F2800D":"#CADBD1"),f&2&&t(C,"background-color",a[1]==="left"?"#CADBD1":"#F2800D"),f&2&&t(F,"background-color",a[1]==="left"?"#CADBD1":"#DF2020"),a[1]==="right"?u||(u=U(),u.c(),u.m(g,null)):u&&(u.d(1),u=null),f&2&&t(g,"background-color",a[1]==="left"?"#CADBD1":"#DF2020"),f&1&&P(z,a[0]),f&1&&j!==(j=R(a[0])+"")&&P($,j),f&1&&t(p,"left",a[0]+"%")},i:Q,o:Q,d(a){a&&A(e),c&&c.d(),u&&u.d()}}}function tt(n,e,l){let{percentile:o=0}=e,{type:i=""}=e;return Y(async()=>{console.log("type inside onMount",i)}),n.$$set=s=>{"percentile"in s&&l(0,o=s.percentile),"type"in s&&l(1,i=s.type)},[o,i]}class et extends V{constructor(e){super(),W(this,e,tt,_,X,{percentile:0,type:1})}}export{et as A};
@@ -1,2 +1,2 @@
1
- import{c as E,S as K,i as O,f as N,s as P,a as Y,e as b,b as $,d as j,g as L,q as Z,r as B,u as q,h as T,o as J,v as D,t as G,k as x,j as s,l as r,m as A,n as F,p as M,w as H,x as S,y as z}from"./index2.js";import{A as C}from"./Arrow.js";import"./helpers.js";function Q(p){Y(p,"svelte-yt1d5k",".summaryMain.svelte-yt1d5k{width:100%;height:100%;display:flex;flex-direction:column;color:#09341FCC}.summaryHeader.svelte-yt1d5k{width:100%;height:16%;font-size:0.9rem;display:flex;align-items:center}.summaryBody.svelte-yt1d5k{width:80%;height:100%;margin:auto;border-top:2px solid #C9DBD2}.main.svelte-yt1d5k{height:100%;width:100%;display:flex}.label.svelte-yt1d5k{width:30%;display:flex;align-items:center}.header.svelte-yt1d5k{width:100%;height:100%;display:flex;align-items:center}")}function U(p){let e,t,l,d,a=p[1]==="mature"&&V(p),m=p[1]==="median"&&R(p),i=p[1]==="youth"&&I(p);return{c(){a&&a.c(),e=$(),m&&m.c(),t=$(),i&&i.c(),l=j()},m(n,v){a&&a.m(n,v),L(n,e,v),m&&m.m(n,v),L(n,t,v),i&&i.m(n,v),L(n,l,v),d=!0},p(n,v){n[1]==="mature"?a?(a.p(n,v),v&2&&q(a,1)):(a=V(n),a.c(),q(a,1),a.m(e.parentNode,e)):a&&(D(),Z(a,1,1,()=>{a=null}),B()),n[1]==="median"?m?(m.p(n,v),v&2&&q(m,1)):(m=R(n),m.c(),q(m,1),m.m(t.parentNode,t)):m&&(D(),Z(m,1,1,()=>{m=null}),B()),n[1]==="youth"?i?(i.p(n,v),v&2&&q(i,1)):(i=I(n),i.c(),q(i,1),i.m(l.parentNode,l)):i&&(D(),Z(i,1,1,()=>{i=null}),B())},i(n){d||(q(a),q(m),q(i),d=!0)},o(n){Z(a),Z(m),Z(i),d=!1},d(n){n&&(T(e),T(t),T(l)),a&&a.d(n),m&&m.d(n),i&&i.d(n)}}}function W(p){let e,t,l,d,a,m,i=p[2]?"Major overlap":p[3]?"Some overlap":"No significant overlap",n,v,h,c,y,f;function g(u,k){return u[2]||u[3]?te:ee}let w=g(p),o=w(p);return{c(){e=b("div"),t=b("div"),l=b("div"),o.c(),d=$(),a=b("div"),m=b("b"),n=G(i),v=G(" of glycan indexes between "),h=b("br"),c=G(" your patient and this condition."),y=$(),f=b("div"),f.innerHTML='<h5>Signs and symptoms</h5> <ul style="font-size: 0.8rem;"><li>Persistent blood pressure over 140/90 mmHg</li> <li>Headaches and dizziness</li> <li>Blurred vision or visual disturbances</li></ul> <h5>Possible follow-up tests</h5> <ul style="font-size: 0.8rem;"><li>Regular blood pressure monitoring</li> <li>24-hour ambulatory blood pressure monitoring</li> <li>Kidney function tests</li></ul> <h5>Related research papers</h5> <a style="color: #E66439;" href="https://pubmed.ncbi.nlm.nih.gov/27124023/">The Association Between Glycosylation of Immunoglobulin G and Hypertension: A Multiple Ethnic Cross-Sectional Study</a> <p style="margin: 0; font-size: 0.8rem; color: #09341FCC;">In an extensive study with 4757 participants, including 913 from the Chinese Han Beijing population, 985 from Croatian Kor\u010Dula, 896 from Croatian Vis, and 1963 from Scottish Orkney, researchers investigated changes in IgG glycans associated with prehypertension and hypertension. The demographic composition of the study was approximately 40% female and 60% male participants. A notable observation was the decrease in G2 in the cohort with prehypertension.</p>',x(l,"transform","translate(-50%)"),x(m,"color",p[2]||p[3]?"#F2590D":"#12A195"),s(t,"class","summaryHeader svelte-yt1d5k"),s(f,"class","summaryBody svelte-yt1d5k"),s(e,"class","summaryMain svelte-yt1d5k")},m(u,k){L(u,e,k),r(e,t),r(t,l),o.m(l,null),r(t,d),r(t,a),r(a,m),r(m,n),r(a,v),r(a,h),r(a,c),r(e,y),r(e,f)},p(u,k){w!==(w=g(u))&&(o.d(1),o=w(u),o&&(o.c(),o.m(l,null))),k&12&&i!==(i=u[2]?"Major overlap":u[3]?"Some overlap":"No significant overlap")&&A(n,i),k&12&&x(m,"color",u[2]||u[3]?"#F2590D":"#12A195")},i:F,o:F,d(u){u&&T(e),o.d()}}}function X(p){let e,t,l,d,a,m,i=p[2]?"Major overlap":p[3]?"Some overlap":"No significant overlap",n;function v(y,f){return y[2]||y[3]?ie:le}let h=v(p),c=h(p);return{c(){e=b("div"),t=b("div"),l=b("b"),d=G(p[5]),a=$(),c.c(),m=G(`
2
- \xA0\xA0`),n=G(i),x(t,"padding-right","10px"),s(e,"class","header svelte-yt1d5k")},m(y,f){L(y,e,f),r(e,t),r(t,l),r(l,d),r(e,a),c.m(e,null),r(e,m),r(e,n)},p(y,f){f&32&&A(d,y[5]),h!==(h=v(y))&&(c.d(1),c=h(y),c&&(c.c(),c.m(e,m))),f&12&&i!==(i=y[2]?"Major overlap":y[3]?"Some overlap":"No significant overlap")&&A(n,i)},i:F,o:F,d(y){y&&T(e),c.d()}}}function V(p){let e,t,l,d,a,m,i,n,v,h,c,y,f,g,w;return g=new C({props:{type:"right",percentile:p[7]}}),{c(){e=b("div"),t=b("div"),l=M("svg"),d=M("path"),m=$(),i=b("div"),n=b("div"),n.innerHTML="Glycan <b>Mature (G0)</b>",v=$(),h=b("div"),c=G(p[6]),y=$(),f=b("div"),H(g.$$.fragment),s(d,"fill",a=p[7]<=68?"#12A195":"#F2590D"),s(d,"d","m8.6 22.5l-1.9-3.2l-3.6-.8l.35-3.7L1 12l2.45-2.8l-.35-3.7l3.6-.8l1.9-3.2L12 2.95l3.4-1.45l1.9 3.2l3.6.8l-.35 3.7L23 12l-2.45 2.8l.35 3.7l-3.6.8l-1.9 3.2l-3.4-1.45l-3.4 1.45ZM12 17q.425 0 .713-.288T13 16q0-.425-.288-.713T12 15q-.425 0-.713.288T11 16q0 .425.288.713T12 17Zm-1-4h2V7h-2v6Z"),s(l,"xmlns","http://www.w3.org/2000/svg"),s(l,"width","24"),s(l,"height","24"),s(l,"viewBox","0 0 24 24"),x(i,"display","flex"),x(i,"flex-direction","column"),x(i,"padding-left","0.3rem"),s(t,"class","label svelte-yt1d5k"),x(t,"font-size","0.8rem"),x(f,"width","70%"),x(f,"display","flex"),x(f,"align-items","center"),s(e,"class","main svelte-yt1d5k")},m(o,u){L(o,e,u),r(e,t),r(t,l),r(l,d),r(t,m),r(t,i),r(i,n),r(i,v),r(i,h),r(h,c),r(e,y),r(e,f),S(g,f,null),w=!0},p(o,u){(!w||u&128&&a!==(a=o[7]<=68?"#12A195":"#F2590D"))&&s(d,"fill",a),(!w||u&64)&&A(c,o[6]);const k={};u&128&&(k.percentile=o[7]),g.$set(k)},i(o){w||(q(g.$$.fragment,o),w=!0)},o(o){Z(g.$$.fragment,o),w=!1},d(o){o&&T(e),z(g)}}}function R(p){let e,t,l,d,a,m,i,n,v,h,c,y,f,g,w;return g=new C({props:{type:"left",percentile:p[7]}}),{c(){e=b("div"),t=b("div"),l=M("svg"),d=M("path"),m=$(),i=b("div"),n=b("div"),n.innerHTML="Glycan <b>Median (G1)</b>",v=$(),h=b("div"),c=G(p[6]),y=$(),f=b("div"),H(g.$$.fragment),s(d,"fill",a=p[7]>=32?"#12A195":"#F2590D"),s(d,"d","m8.6 22.5l-1.9-3.2l-3.6-.8l.35-3.7L1 12l2.45-2.8l-.35-3.7l3.6-.8l1.9-3.2L12 2.95l3.4-1.45l1.9 3.2l3.6.8l-.35 3.7L23 12l-2.45 2.8l.35 3.7l-3.6.8l-1.9 3.2l-3.4-1.45l-3.4 1.45ZM12 17q.425 0 .713-.288T13 16q0-.425-.288-.713T12 15q-.425 0-.713.288T11 16q0 .425.288.713T12 17Zm-1-4h2V7h-2v6Z"),s(l,"xmlns","http://www.w3.org/2000/svg"),s(l,"width","24"),s(l,"height","24"),s(l,"viewBox","0 0 24 24"),x(i,"display","flex"),x(i,"flex-direction","column"),x(i,"padding-left","0.3rem"),s(t,"class","label svelte-yt1d5k"),x(t,"font-size","0.8rem"),x(f,"width","70%"),x(f,"display","flex"),x(f,"align-items","center"),s(e,"class","main svelte-yt1d5k")},m(o,u){L(o,e,u),r(e,t),r(t,l),r(l,d),r(t,m),r(t,i),r(i,n),r(i,v),r(i,h),r(h,c),r(e,y),r(e,f),S(g,f,null),w=!0},p(o,u){(!w||u&128&&a!==(a=o[7]>=32?"#12A195":"#F2590D"))&&s(d,"fill",a),(!w||u&64)&&A(c,o[6]);const k={};u&128&&(k.percentile=o[7]),g.$set(k)},i(o){w||(q(g.$$.fragment,o),w=!0)},o(o){Z(g.$$.fragment,o),w=!1},d(o){o&&T(e),z(g)}}}function I(p){let e,t,l,d,a,m,i,n,v,h,c,y,f,g,w;return g=new C({props:{type:"left",percentile:p[7]}}),{c(){e=b("div"),t=b("div"),l=M("svg"),d=M("path"),m=$(),i=b("div"),n=b("div"),n.innerHTML="Glycan <b>Youth (G2)</b>",v=$(),h=b("div"),c=G(p[6]),y=$(),f=b("div"),H(g.$$.fragment),s(d,"fill",a=p[7]>=32?"#12A195":"#F2590D"),s(d,"d","m8.6 22.5l-1.9-3.2l-3.6-.8l.35-3.7L1 12l2.45-2.8l-.35-3.7l3.6-.8l1.9-3.2L12 2.95l3.4-1.45l1.9 3.2l3.6.8l-.35 3.7L23 12l-2.45 2.8l.35 3.7l-3.6.8l-1.9 3.2l-3.4-1.45l-3.4 1.45ZM12 17q.425 0 .713-.288T13 16q0-.425-.288-.713T12 15q-.425 0-.713.288T11 16q0 .425.288.713T12 17Zm-1-4h2V7h-2v6Z"),s(l,"xmlns","http://www.w3.org/2000/svg"),s(l,"width","24"),s(l,"height","24"),s(l,"viewBox","0 0 24 24"),x(i,"display","flex"),x(i,"flex-direction","column"),x(i,"padding-left","0.3rem"),s(t,"class","label svelte-yt1d5k"),x(t,"font-size","0.8rem"),x(f,"width","70%"),x(f,"display","flex"),x(f,"align-items","center"),s(e,"class","main svelte-yt1d5k")},m(o,u){L(o,e,u),r(e,t),r(t,l),r(l,d),r(t,m),r(t,i),r(i,n),r(i,v),r(i,h),r(h,c),r(e,y),r(e,f),S(g,f,null),w=!0},p(o,u){(!w||u&128&&a!==(a=o[7]>=32?"#12A195":"#F2590D"))&&s(d,"fill",a),(!w||u&64)&&A(c,o[6]);const k={};u&128&&(k.percentile=o[7]),g.$set(k)},i(o){w||(q(g.$$.fragment,o),w=!0)},o(o){Z(g.$$.fragment,o),w=!1},d(o){o&&T(e),z(g)}}}function ee(p){let e,t;return{c(){e=M("svg"),t=M("path"),s(t,"fill","#12A195"),s(t,"d","m8.6 22.5l-1.9-3.2l-3.6-.8l.35-3.7L1 12l2.45-2.8l-.35-3.7l3.6-.8l1.9-3.2L12 2.95l3.4-1.45l1.9 3.2l3.6.8l-.35 3.7L23 12l-2.45 2.8l.35 3.7l-3.6.8l-1.9 3.2l-3.4-1.45l-3.4 1.45Zm2.35-6.95L16.6 9.9l-1.4-1.45l-4.25 4.25l-2.15-2.1L7.4 12l3.55 3.55Z"),s(e,"xmlns","http://www.w3.org/2000/svg"),s(e,"width","50"),s(e,"height","50"),s(e,"viewBox","0 0 24 24")},m(l,d){L(l,e,d),r(e,t)},d(l){l&&T(e)}}}function te(p){let e,t;return{c(){e=M("svg"),t=M("path"),s(t,"fill","#F2590D"),s(t,"d","m8.6 22.5l-1.9-3.2l-3.6-.8l.35-3.7L1 12l2.45-2.8l-.35-3.7l3.6-.8l1.9-3.2L12 2.95l3.4-1.45l1.9 3.2l3.6.8l-.35 3.7L23 12l-2.45 2.8l.35 3.7l-3.6.8l-1.9 3.2l-3.4-1.45l-3.4 1.45ZM12 17q.425 0 .713-.288T13 16q0-.425-.288-.713T12 15q-.425 0-.713.288T11 16q0 .425.288.713T12 17Zm-1-4h2V7h-2v6Z"),s(e,"xmlns","http://www.w3.org/2000/svg"),s(e,"width","50"),s(e,"height","50"),s(e,"viewBox","0 0 24 24")},m(l,d){L(l,e,d),r(e,t)},d(l){l&&T(e)}}}function le(p){let e,t;return{c(){e=M("svg"),t=M("path"),s(t,"fill","#12A195"),s(t,"d","m8.6 22.5l-1.9-3.2l-3.6-.8l.35-3.7L1 12l2.45-2.8l-.35-3.7l3.6-.8l1.9-3.2L12 2.95l3.4-1.45l1.9 3.2l3.6.8l-.35 3.7L23 12l-2.45 2.8l.35 3.7l-3.6.8l-1.9 3.2l-3.4-1.45l-3.4 1.45Zm2.35-6.95L16.6 9.9l-1.4-1.45l-4.25 4.25l-2.15-2.1L7.4 12l3.55 3.55Z"),s(e,"xmlns","http://www.w3.org/2000/svg"),s(e,"width","24"),s(e,"height","24"),s(e,"viewBox","0 0 24 24")},m(l,d){L(l,e,d),r(e,t)},d(l){l&&T(e)}}}function ie(p){let e,t;return{c(){e=M("svg"),t=M("path"),s(t,"fill","#F2590D"),s(t,"d","m8.6 22.5l-1.9-3.2l-3.6-.8l.35-3.7L1 12l2.45-2.8l-.35-3.7l3.6-.8l1.9-3.2L12 2.95l3.4-1.45l1.9 3.2l3.6.8l-.35 3.7L23 12l-2.45 2.8l.35 3.7l-3.6.8l-1.9 3.2l-3.4-1.45l-3.4 1.45ZM12 17q.425 0 .713-.288T13 16q0-.425-.288-.713T12 15q-.425 0-.713.288T11 16q0 .425.288.713T12 17Zm-1-4h2V7h-2v6Z"),s(e,"xmlns","http://www.w3.org/2000/svg"),s(e,"width","24"),s(e,"height","24"),s(e,"viewBox","0 0 24 24")},m(l,d){L(l,e,d),r(e,t)},d(l){l&&T(e)}}}function ne(p){let e,t,l,d,a,m;const i=[X,W,U],n=[];function v(h,c){return h[0]==="header"?0:h[0]==="summary"&&h[4]?1:2}return l=v(p),d=n[l]=i[l](p),{c(){e=b("head"),e.innerHTML='<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@24,300,1,0"/>',t=$(),d.c(),a=j()},m(h,c){L(h,e,c),L(h,t,c),n[l].m(h,c),L(h,a,c),m=!0},p(h,[c]){let y=l;l=v(h),l===y?n[l].p(h,c):(D(),Z(n[y],1,1,()=>{n[y]=null}),B(),d=n[l],d?d.p(h,c):(d=n[l]=i[l](h),d.c()),q(d,1),d.m(a.parentNode,a))},i(h){m||(q(d),m=!0)},o(h){Z(d),m=!1},d(h){h&&(T(e),T(t),T(a)),n[l].d(h)}}}function se(p,e,t){let{report:l}=e,{type:d}=e,{subtype:a}=e,{service:m=window.GaReportService}=e,i,n=!1,v=!1,h=!1,c="",y="",f=0,g=0,w=0,o=0;return J(async()=>{switch(i=await m.getReport(l),a){case"mature":t(7,o=Number(i.G0percentile));break;case"median":t(7,o=Number(i.G1percentile));break;case"youth":t(7,o=Number(i.G2percentile));break}if(f=Number(i.G0percentile),g=Number(i.G1percentile),w=Number(i.G2percentile),o<32&&t(6,y="Lower than average"),o>=32&&o<=68&&t(6,y="Around average"),o>68&&t(6,y="Higher than average"),f>68&&g<32&&w<32){t(5,c="3/3"),t(2,n=!0),t(4,h=!0);return}if(f>68||g<32||w<32){if(f>68&&g<32||g<32&&w<32||f>68&&w<32){t(5,c="2/3"),t(3,v=!0),t(4,h=!0);return}t(5,c="1/3"),t(4,h=!0);return}t(5,c="0/3"),t(4,h=!0)}),p.$$set=u=>{"report"in u&&t(8,l=u.report),"type"in u&&t(0,d=u.type),"subtype"in u&&t(1,a=u.subtype),"service"in u&&t(9,m=u.service)},[d,a,n,v,h,c,y,o,l,m]}class _ extends K{constructor(e){super(),O(this,e,se,ne,P,{report:8,type:0,subtype:1,service:9},Q)}get report(){return this.$$.ctx[8]}set report(e){this.$$set({report:e}),N()}get type(){return this.$$.ctx[0]}set type(e){this.$$set({type:e}),N()}get subtype(){return this.$$.ctx[1]}set subtype(e){this.$$set({subtype:e}),N()}get service(){return this.$$.ctx[9]}set service(e){this.$$set({service:e}),N()}}customElements.define("ga-hypertension",E(_,{report:{},type:{},subtype:{},service:{}},[],[],!0));export{_ as default};
1
+ import{c as E,S as K,i as O,f as N,s as P,a as Y,e as b,b as $,d as j,g as L,q as G,r as B,u as q,h as T,o as J,v as D,t as Z,k as x,j as s,l as r,m as A,n as F,p as M,w as H,x as S,y as z}from"./index2.js";import{A as C}from"./Arrow.js";import"./helpers.js";function Q(h){Y(h,"svelte-yt1d5k",".summaryMain.svelte-yt1d5k{width:100%;height:100%;display:flex;flex-direction:column;color:#09341FCC}.summaryHeader.svelte-yt1d5k{width:100%;height:16%;font-size:0.9rem;display:flex;align-items:center}.summaryBody.svelte-yt1d5k{width:80%;height:100%;margin:auto;border-top:2px solid #C9DBD2}.main.svelte-yt1d5k{height:100%;width:100%;display:flex}.label.svelte-yt1d5k{width:30%;display:flex;align-items:center}.header.svelte-yt1d5k{width:100%;height:100%;display:flex;align-items:center}")}function U(h){let e,t,l,d,a=h[1]==="mature"&&V(h),m=h[1]==="median"&&R(h),i=h[1]==="youth"&&I(h);return{c(){a&&a.c(),e=$(),m&&m.c(),t=$(),i&&i.c(),l=j()},m(n,v){a&&a.m(n,v),L(n,e,v),m&&m.m(n,v),L(n,t,v),i&&i.m(n,v),L(n,l,v),d=!0},p(n,v){n[1]==="mature"?a?(a.p(n,v),v&2&&q(a,1)):(a=V(n),a.c(),q(a,1),a.m(e.parentNode,e)):a&&(D(),G(a,1,1,()=>{a=null}),B()),n[1]==="median"?m?(m.p(n,v),v&2&&q(m,1)):(m=R(n),m.c(),q(m,1),m.m(t.parentNode,t)):m&&(D(),G(m,1,1,()=>{m=null}),B()),n[1]==="youth"?i?(i.p(n,v),v&2&&q(i,1)):(i=I(n),i.c(),q(i,1),i.m(l.parentNode,l)):i&&(D(),G(i,1,1,()=>{i=null}),B())},i(n){d||(q(a),q(m),q(i),d=!0)},o(n){G(a),G(m),G(i),d=!1},d(n){n&&(T(e),T(t),T(l)),a&&a.d(n),m&&m.d(n),i&&i.d(n)}}}function W(h){let e,t,l,d,a,m,i=h[2]?"Major overlap":h[3]?"Some overlap":"No significant overlap",n,v,p,c,y,f;function g(u,k){return u[2]||u[3]?te:ee}let w=g(h),o=w(h);return{c(){e=b("div"),t=b("div"),l=b("div"),o.c(),d=$(),a=b("div"),m=b("b"),n=Z(i),v=Z(" of glycan indexes between "),p=b("br"),c=Z(" your patient and this condition."),y=$(),f=b("div"),f.innerHTML='<h5>Signs and symptoms</h5> <ul style="font-size: 0.8rem;"><li>Persistent blood pressure over 140/90 mmHg</li> <li>Headaches and dizziness</li> <li>Blurred vision or visual disturbances</li></ul> <h5>Possible follow-up tests</h5> <ul style="font-size: 0.8rem;"><li>Regular blood pressure monitoring</li> <li>24-hour ambulatory blood pressure monitoring</li> <li>Kidney function tests</li></ul> <h5>Related research papers</h5> <a style="color: #E66439;" href="https://pubmed.ncbi.nlm.nih.gov/27124023/">The Association Between Glycosylation of Immunoglobulin G and Hypertension: A Multiple Ethnic Cross-Sectional Study</a> <p style="margin: 0; font-size: 0.8rem; color: #09341FCC;">In an extensive study with 4757 participants, including 913 from the Chinese Han Beijing population, 985 from Croatian Kor\u010Dula, 896 from Croatian Vis, and 1963 from Scottish Orkney, researchers investigated changes in IgG glycans associated with prehypertension and hypertension. The demographic composition of the study was approximately 40% female and 60% male participants. Among hypertension patients, there was a noted decrease in G2 and S, alongside an increase in G0.</p>',x(l,"transform","translate(-50%)"),x(m,"color",h[2]||h[3]?"#F2590D":"#12A195"),s(t,"class","summaryHeader svelte-yt1d5k"),s(f,"class","summaryBody svelte-yt1d5k"),s(e,"class","summaryMain svelte-yt1d5k")},m(u,k){L(u,e,k),r(e,t),r(t,l),o.m(l,null),r(t,d),r(t,a),r(a,m),r(m,n),r(a,v),r(a,p),r(a,c),r(e,y),r(e,f)},p(u,k){w!==(w=g(u))&&(o.d(1),o=w(u),o&&(o.c(),o.m(l,null))),k&12&&i!==(i=u[2]?"Major overlap":u[3]?"Some overlap":"No significant overlap")&&A(n,i),k&12&&x(m,"color",u[2]||u[3]?"#F2590D":"#12A195")},i:F,o:F,d(u){u&&T(e),o.d()}}}function X(h){let e,t,l,d,a,m,i=h[2]?"Major overlap":h[3]?"Some overlap":"No significant overlap",n;function v(y,f){return y[2]||y[3]?ie:le}let p=v(h),c=p(h);return{c(){e=b("div"),t=b("div"),l=b("b"),d=Z(h[5]),a=$(),c.c(),m=Z(`
2
+ \xA0\xA0`),n=Z(i),x(t,"padding-right","10px"),s(e,"class","header svelte-yt1d5k")},m(y,f){L(y,e,f),r(e,t),r(t,l),r(l,d),r(e,a),c.m(e,null),r(e,m),r(e,n)},p(y,f){f&32&&A(d,y[5]),p!==(p=v(y))&&(c.d(1),c=p(y),c&&(c.c(),c.m(e,m))),f&12&&i!==(i=y[2]?"Major overlap":y[3]?"Some overlap":"No significant overlap")&&A(n,i)},i:F,o:F,d(y){y&&T(e),c.d()}}}function V(h){let e,t,l,d,a,m,i,n,v,p,c,y,f,g,w;return g=new C({props:{type:"right",percentile:h[7]}}),{c(){e=b("div"),t=b("div"),l=M("svg"),d=M("path"),m=$(),i=b("div"),n=b("div"),n.innerHTML="Glycan <b>Mature (G0)</b>",v=$(),p=b("div"),c=Z(h[6]),y=$(),f=b("div"),H(g.$$.fragment),s(d,"fill",a=h[7]<=68?"#12A195":"#F2590D"),s(d,"d","m8.6 22.5l-1.9-3.2l-3.6-.8l.35-3.7L1 12l2.45-2.8l-.35-3.7l3.6-.8l1.9-3.2L12 2.95l3.4-1.45l1.9 3.2l3.6.8l-.35 3.7L23 12l-2.45 2.8l.35 3.7l-3.6.8l-1.9 3.2l-3.4-1.45l-3.4 1.45ZM12 17q.425 0 .713-.288T13 16q0-.425-.288-.713T12 15q-.425 0-.713.288T11 16q0 .425.288.713T12 17Zm-1-4h2V7h-2v6Z"),s(l,"xmlns","http://www.w3.org/2000/svg"),s(l,"width","24"),s(l,"height","24"),s(l,"viewBox","0 0 24 24"),x(i,"display","flex"),x(i,"flex-direction","column"),x(i,"padding-left","0.3rem"),s(t,"class","label svelte-yt1d5k"),x(t,"font-size","0.8rem"),x(f,"width","70%"),x(f,"display","flex"),x(f,"align-items","center"),s(e,"class","main svelte-yt1d5k")},m(o,u){L(o,e,u),r(e,t),r(t,l),r(l,d),r(t,m),r(t,i),r(i,n),r(i,v),r(i,p),r(p,c),r(e,y),r(e,f),S(g,f,null),w=!0},p(o,u){(!w||u&128&&a!==(a=o[7]<=68?"#12A195":"#F2590D"))&&s(d,"fill",a),(!w||u&64)&&A(c,o[6]);const k={};u&128&&(k.percentile=o[7]),g.$set(k)},i(o){w||(q(g.$$.fragment,o),w=!0)},o(o){G(g.$$.fragment,o),w=!1},d(o){o&&T(e),z(g)}}}function R(h){let e,t,l,d,a,m,i,n,v,p,c,y,f,g,w;return g=new C({props:{type:"left",percentile:h[7]}}),{c(){e=b("div"),t=b("div"),l=M("svg"),d=M("path"),m=$(),i=b("div"),n=b("div"),n.innerHTML="Glycan <b>Median (G1)</b>",v=$(),p=b("div"),c=Z(h[6]),y=$(),f=b("div"),H(g.$$.fragment),s(d,"fill",a=h[7]>=32?"#12A195":"#F2590D"),s(d,"d","m8.6 22.5l-1.9-3.2l-3.6-.8l.35-3.7L1 12l2.45-2.8l-.35-3.7l3.6-.8l1.9-3.2L12 2.95l3.4-1.45l1.9 3.2l3.6.8l-.35 3.7L23 12l-2.45 2.8l.35 3.7l-3.6.8l-1.9 3.2l-3.4-1.45l-3.4 1.45ZM12 17q.425 0 .713-.288T13 16q0-.425-.288-.713T12 15q-.425 0-.713.288T11 16q0 .425.288.713T12 17Zm-1-4h2V7h-2v6Z"),s(l,"xmlns","http://www.w3.org/2000/svg"),s(l,"width","24"),s(l,"height","24"),s(l,"viewBox","0 0 24 24"),x(i,"display","flex"),x(i,"flex-direction","column"),x(i,"padding-left","0.3rem"),s(t,"class","label svelte-yt1d5k"),x(t,"font-size","0.8rem"),x(f,"width","70%"),x(f,"display","flex"),x(f,"align-items","center"),s(e,"class","main svelte-yt1d5k")},m(o,u){L(o,e,u),r(e,t),r(t,l),r(l,d),r(t,m),r(t,i),r(i,n),r(i,v),r(i,p),r(p,c),r(e,y),r(e,f),S(g,f,null),w=!0},p(o,u){(!w||u&128&&a!==(a=o[7]>=32?"#12A195":"#F2590D"))&&s(d,"fill",a),(!w||u&64)&&A(c,o[6]);const k={};u&128&&(k.percentile=o[7]),g.$set(k)},i(o){w||(q(g.$$.fragment,o),w=!0)},o(o){G(g.$$.fragment,o),w=!1},d(o){o&&T(e),z(g)}}}function I(h){let e,t,l,d,a,m,i,n,v,p,c,y,f,g,w;return g=new C({props:{type:"left",percentile:h[7]}}),{c(){e=b("div"),t=b("div"),l=M("svg"),d=M("path"),m=$(),i=b("div"),n=b("div"),n.innerHTML="Glycan <b>Youth (G2)</b>",v=$(),p=b("div"),c=Z(h[6]),y=$(),f=b("div"),H(g.$$.fragment),s(d,"fill",a=h[7]>=32?"#12A195":"#F2590D"),s(d,"d","m8.6 22.5l-1.9-3.2l-3.6-.8l.35-3.7L1 12l2.45-2.8l-.35-3.7l3.6-.8l1.9-3.2L12 2.95l3.4-1.45l1.9 3.2l3.6.8l-.35 3.7L23 12l-2.45 2.8l.35 3.7l-3.6.8l-1.9 3.2l-3.4-1.45l-3.4 1.45ZM12 17q.425 0 .713-.288T13 16q0-.425-.288-.713T12 15q-.425 0-.713.288T11 16q0 .425.288.713T12 17Zm-1-4h2V7h-2v6Z"),s(l,"xmlns","http://www.w3.org/2000/svg"),s(l,"width","24"),s(l,"height","24"),s(l,"viewBox","0 0 24 24"),x(i,"display","flex"),x(i,"flex-direction","column"),x(i,"padding-left","0.3rem"),s(t,"class","label svelte-yt1d5k"),x(t,"font-size","0.8rem"),x(f,"width","70%"),x(f,"display","flex"),x(f,"align-items","center"),s(e,"class","main svelte-yt1d5k")},m(o,u){L(o,e,u),r(e,t),r(t,l),r(l,d),r(t,m),r(t,i),r(i,n),r(i,v),r(i,p),r(p,c),r(e,y),r(e,f),S(g,f,null),w=!0},p(o,u){(!w||u&128&&a!==(a=o[7]>=32?"#12A195":"#F2590D"))&&s(d,"fill",a),(!w||u&64)&&A(c,o[6]);const k={};u&128&&(k.percentile=o[7]),g.$set(k)},i(o){w||(q(g.$$.fragment,o),w=!0)},o(o){G(g.$$.fragment,o),w=!1},d(o){o&&T(e),z(g)}}}function ee(h){let e,t;return{c(){e=M("svg"),t=M("path"),s(t,"fill","#12A195"),s(t,"d","m8.6 22.5l-1.9-3.2l-3.6-.8l.35-3.7L1 12l2.45-2.8l-.35-3.7l3.6-.8l1.9-3.2L12 2.95l3.4-1.45l1.9 3.2l3.6.8l-.35 3.7L23 12l-2.45 2.8l.35 3.7l-3.6.8l-1.9 3.2l-3.4-1.45l-3.4 1.45Zm2.35-6.95L16.6 9.9l-1.4-1.45l-4.25 4.25l-2.15-2.1L7.4 12l3.55 3.55Z"),s(e,"xmlns","http://www.w3.org/2000/svg"),s(e,"width","50"),s(e,"height","50"),s(e,"viewBox","0 0 24 24")},m(l,d){L(l,e,d),r(e,t)},d(l){l&&T(e)}}}function te(h){let e,t;return{c(){e=M("svg"),t=M("path"),s(t,"fill","#F2590D"),s(t,"d","m8.6 22.5l-1.9-3.2l-3.6-.8l.35-3.7L1 12l2.45-2.8l-.35-3.7l3.6-.8l1.9-3.2L12 2.95l3.4-1.45l1.9 3.2l3.6.8l-.35 3.7L23 12l-2.45 2.8l.35 3.7l-3.6.8l-1.9 3.2l-3.4-1.45l-3.4 1.45ZM12 17q.425 0 .713-.288T13 16q0-.425-.288-.713T12 15q-.425 0-.713.288T11 16q0 .425.288.713T12 17Zm-1-4h2V7h-2v6Z"),s(e,"xmlns","http://www.w3.org/2000/svg"),s(e,"width","50"),s(e,"height","50"),s(e,"viewBox","0 0 24 24")},m(l,d){L(l,e,d),r(e,t)},d(l){l&&T(e)}}}function le(h){let e,t;return{c(){e=M("svg"),t=M("path"),s(t,"fill","#12A195"),s(t,"d","m8.6 22.5l-1.9-3.2l-3.6-.8l.35-3.7L1 12l2.45-2.8l-.35-3.7l3.6-.8l1.9-3.2L12 2.95l3.4-1.45l1.9 3.2l3.6.8l-.35 3.7L23 12l-2.45 2.8l.35 3.7l-3.6.8l-1.9 3.2l-3.4-1.45l-3.4 1.45Zm2.35-6.95L16.6 9.9l-1.4-1.45l-4.25 4.25l-2.15-2.1L7.4 12l3.55 3.55Z"),s(e,"xmlns","http://www.w3.org/2000/svg"),s(e,"width","24"),s(e,"height","24"),s(e,"viewBox","0 0 24 24")},m(l,d){L(l,e,d),r(e,t)},d(l){l&&T(e)}}}function ie(h){let e,t;return{c(){e=M("svg"),t=M("path"),s(t,"fill","#F2590D"),s(t,"d","m8.6 22.5l-1.9-3.2l-3.6-.8l.35-3.7L1 12l2.45-2.8l-.35-3.7l3.6-.8l1.9-3.2L12 2.95l3.4-1.45l1.9 3.2l3.6.8l-.35 3.7L23 12l-2.45 2.8l.35 3.7l-3.6.8l-1.9 3.2l-3.4-1.45l-3.4 1.45ZM12 17q.425 0 .713-.288T13 16q0-.425-.288-.713T12 15q-.425 0-.713.288T11 16q0 .425.288.713T12 17Zm-1-4h2V7h-2v6Z"),s(e,"xmlns","http://www.w3.org/2000/svg"),s(e,"width","24"),s(e,"height","24"),s(e,"viewBox","0 0 24 24")},m(l,d){L(l,e,d),r(e,t)},d(l){l&&T(e)}}}function ne(h){let e,t,l,d,a,m;const i=[X,W,U],n=[];function v(p,c){return p[0]==="header"?0:p[0]==="summary"&&p[4]?1:2}return l=v(h),d=n[l]=i[l](h),{c(){e=b("head"),e.innerHTML='<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@24,300,1,0"/>',t=$(),d.c(),a=j()},m(p,c){L(p,e,c),L(p,t,c),n[l].m(p,c),L(p,a,c),m=!0},p(p,[c]){let y=l;l=v(p),l===y?n[l].p(p,c):(D(),G(n[y],1,1,()=>{n[y]=null}),B(),d=n[l],d?d.p(p,c):(d=n[l]=i[l](p),d.c()),q(d,1),d.m(a.parentNode,a))},i(p){m||(q(d),m=!0)},o(p){G(d),m=!1},d(p){p&&(T(e),T(t),T(a)),n[l].d(p)}}}function se(h,e,t){let{report:l}=e,{type:d}=e,{subtype:a}=e,{service:m=window.GaReportService}=e,i,n=!1,v=!1,p=!1,c="",y="",f=0,g=0,w=0,o=0;return J(async()=>{switch(i=await m.getReport(l),a){case"mature":t(7,o=Number(i.G0percentile));break;case"median":t(7,o=Number(i.G1percentile));break;case"youth":t(7,o=Number(i.G2percentile));break}if(f=Number(i.G0percentile),g=Number(i.G1percentile),w=Number(i.G2percentile),o<32&&t(6,y="Lower than average"),o>=32&&o<=68&&t(6,y="Around average"),o>68&&t(6,y="Higher than average"),f>68&&g<32&&w<32){t(5,c="3/3"),t(2,n=!0),t(4,p=!0);return}if(f>68||g<32||w<32){if(f>68&&g<32||g<32&&w<32||f>68&&w<32){t(5,c="2/3"),t(3,v=!0),t(4,p=!0);return}t(5,c="1/3"),t(4,p=!0);return}t(5,c="0/3"),t(4,p=!0)}),h.$$set=u=>{"report"in u&&t(8,l=u.report),"type"in u&&t(0,d=u.type),"subtype"in u&&t(1,a=u.subtype),"service"in u&&t(9,m=u.service)},[d,a,n,v,p,c,y,o,l,m]}class _ extends K{constructor(e){super(),O(this,e,se,ne,P,{report:8,type:0,subtype:1,service:9},Q)}get report(){return this.$$.ctx[8]}set report(e){this.$$set({report:e}),N()}get type(){return this.$$.ctx[0]}set type(e){this.$$set({type:e}),N()}get subtype(){return this.$$.ctx[1]}set subtype(e){this.$$set({subtype:e}),N()}get service(){return this.$$.ctx[9]}set service(e){this.$$set({service:e}),N()}}customElements.define("ga-hypertension",E(_,{report:{},type:{},subtype:{},service:{}},[],[],!0));export{_ as default};
@@ -1,16 +1,2 @@
1
- import{c as et,S as it,i as tt,f as Ze,s as st,a as rt,e as s,b as h,d as pi,g as N,n as bi,h as C,o as lt,t as m,j as r,k as l,l as e,m as w,p as te}from"./index2.js";import{s as se,m as re,g as le,a as ae,b as oe}from"./helpers.js";function at(a){rt(a,"svelte-huoiza",".main.svelte-huoiza{width:450px;background-color:#f0f6f5;border:2px solid #c8dbd0;border-radius:12px;display:flex;flex-direction:column;justify-content:center}.summaryMain.svelte-huoiza{width:500px;height:520px;border-radius:10px;display:flex;flex-direction:column}.summaryHeader.svelte-huoiza{width:100%;height:30%;font-size:0.9rem;display:flex;align-items:center}.summaryBody.svelte-huoiza{width:95%;height:100%;padding:1.5rem 0 0 1.5rem}.row.svelte-huoiza{width:100%;display:flex}.label.svelte-huoiza{width:14%;height:100%;margin-left:1.5rem;line-height:0.9rem;display:flex;align-items:start;justify-content:center;flex-direction:column}.content.svelte-huoiza{width:86%;height:100%;position:relative}.min.svelte-huoiza{position:absolute;top:34%;left:1.6%;font-size:0.6rem;color:#6b8678}.middleParent.svelte-huoiza{position:absolute;width:76%;height:80%;left:10%;top:10%;display:flex;align-items:center;justify-content:center;flex-direction:column}.xAxis.svelte-huoiza{position:absolute;left:0;top:48%;width:100%;height:0.1rem;background-color:#08341f;border-radius:10px;z-index:9999;max-height:1px}.diseaseArea.svelte-huoiza{position:absolute;width:46%;top:10%;height:80%;background-color:#c8dbd0}.result.svelte-huoiza{width:1.5%;height:24%;background-color:#33664d;z-index:9998;position:relative}.result3.svelte-huoiza{width:1.5%;height:24%;background-color:#33664d;z-index:9998;position:relative}.yAxis.svelte-huoiza{position:absolute;left:49.72%;width:0.1rem;height:88%;background-color:#08341f;border-radius:10px}.max.svelte-huoiza{position:absolute;top:34%;right:5.5%;font-size:0.6rem;color:#6b8678}.lastRow.svelte-huoiza{width:100%;height:11%;display:flex;align-items:center;justify-content:center;margin-top:12px}.dot1.svelte-huoiza{height:10px;width:10px;border-radius:99px;background-color:#c8dbd0;border:1px solid black;margin-right:6px}.dot2.svelte-huoiza{height:10px;width:10px;border-radius:99px;background-color:#33664d;border:1px solid black;margin:0 6px 0 36px}.resultDisplay.svelte-huoiza{position:absolute;bottom:80%;display:flex;align-items:center;flex-direction:column}.message.svelte-huoiza{color:#33664d;z-index:99999;min-width:100px;font-size:0.48rem;margin-bottom:-8px}.triangle-down.svelte-huoiza{margin-top:0.6rem;margin-bottom:0.4rem;width:0;height:0;border-left:3px solid transparent;border-right:3px solid transparent;border-top:6px solid #33664d}.header.svelte-huoiza{width:100%;height:100%;display:flex;align-items:center}")}function ot(a){let t,i,d,c,o,u,n,v,z,V,y,R,E,L,x,B,K,I,S,P,A,M,Y,b,W,O,_,k,G=se(a[4])+"",$,J,Z,f,T,D;return{c(){t=s("div"),i=s("div"),d=s("div"),d.innerHTML="<b>Peak 22</b>",c=h(),o=s("div"),u=s("div"),n=s("b"),v=m(a[1]),z=h(),V=s("div"),y=s("b"),R=m(a[2]),E=h(),L=s("div"),x=s("div"),B=h(),K=s("div"),I=h(),S=s("div"),P=h(),A=s("div"),M=s("div"),Y=s("div"),b=s("b"),W=m(a[3]),O=m(" ("),_=m(a[4]),k=s("sup"),$=m(G),J=m(" percentile)"),Z=h(),f=s("div"),T=h(),D=s("div"),D.innerHTML='<div class="dot1 svelte-huoiza"></div> <div style="font-size: 0.8rem;">Myocardial infarction and stroke cases</div> <div class="dot2 svelte-huoiza"></div> <div style="font-size: 0.8rem;">Your patient</div>',r(d,"class","label svelte-huoiza"),l(d,"font-size","0.8rem"),r(u,"class","min svelte-huoiza"),r(V,"class","max svelte-huoiza"),r(x,"class","xAxis svelte-huoiza"),r(K,"class","yAxis svelte-huoiza"),r(S,"class","diseaseArea svelte-huoiza"),l(S,"border-radius","6px 0 0 6px"),l(S,"right","50.3%"),r(Y,"class","message svelte-huoiza"),r(f,"class","triangle-down svelte-huoiza"),r(M,"class","resultDisplay svelte-huoiza"),l(M,"right",re(a[4])),r(A,"class","result svelte-huoiza"),l(A,"padding",le(a[4])),l(A,"margin",ae(a[4])),l(A,"border-radius",oe(a[4])),r(L,"class","middleParent svelte-huoiza"),r(o,"class","content svelte-huoiza"),r(i,"class","row svelte-huoiza"),l(i,"height","30%"),l(i,"padding-bottom","1rem"),r(D,"class","lastRow svelte-huoiza"),r(t,"class","main svelte-huoiza"),l(t,"height","180px")},m(H,F){N(H,t,F),e(t,i),e(i,d),e(i,c),e(i,o),e(o,u),e(u,n),e(n,v),e(o,z),e(o,V),e(V,y),e(y,R),e(o,E),e(o,L),e(L,x),e(L,B),e(L,K),e(L,I),e(L,S),e(L,P),e(L,A),e(A,M),e(M,Y),e(Y,b),e(b,W),e(b,O),e(b,_),e(b,k),e(k,$),e(b,J),e(M,Z),e(M,f),e(t,T),e(t,D)},p(H,F){F[0]&2&&w(v,H[1]),F[0]&4&&w(R,H[2]),F[0]&8&&w(W,H[3]),F[0]&16&&w(_,H[4]),F[0]&16&&G!==(G=se(H[4])+"")&&w($,G),F[0]&16&&l(M,"right",re(H[4])),F[0]&16&&l(A,"padding",le(H[4])),F[0]&16&&l(A,"margin",ae(H[4])),F[0]&16&&l(A,"border-radius",oe(H[4]))},d(H){H&&C(t)}}}function nt(a){let t,i,d,c,o,u,n,v,z,V,y,R,E,L,x,B,K,I,S,P,A,M,Y,b,W,O,_,k,G=se(a[9])+"",$,J,Z,f,T,D,H,F,q,Le,Re,Se,zi,Ae,qe,Fe,xi,Q,Ve,fi,Ye,yi,ze,wi,U,ne,Me,ge,Ie,Li,Oe,Je,ke=se(a[13])+"",Ke,Ai,Mi,We,ki,de,xe,Hi,ue,He,_e,Ee,Ni,Ne,Qe,Ue,Ci,X,Xe,Bi,je,Pi,fe,Di,j,ce,Ce,pe,ei,Ti,ii,ti,Be=se(a[17])+"",si,Gi,$i,ri,Zi,he,ye,Ri,ve,Pe,li,ai,Si,De,oi,ni,qi,ee,di,Fi,ui,Vi,we,Yi,ie,me,Te,be,ci,Ii,hi,vi,Ge=se(a[21])+"",mi,Oi,Ji,gi,Ki,$e;return{c(){t=s("div"),i=s("div"),d=s("div"),d.innerHTML="Glycan<br/> <b>Mature</b>",c=h(),o=s("div"),u=s("div"),n=s("b"),v=m(a[6]),z=h(),V=s("div"),y=s("b"),R=m(a[7]),E=h(),L=s("div"),x=s("div"),B=h(),K=s("div"),I=h(),S=s("div"),P=h(),A=s("div"),M=s("div"),Y=s("div"),b=s("b"),W=m(a[8]),O=m(" ("),_=m(a[9]),k=s("sup"),$=m(G),J=m(" percentile)"),Z=h(),f=s("div"),T=h(),D=s("div"),H=s("div"),H.innerHTML="Glycan<br/> <b>Youth</b>",F=h(),q=s("div"),Le=s("div"),Re=s("b"),Se=m(a[10]),zi=h(),Ae=s("div"),qe=s("b"),Fe=m(a[11]),xi=h(),Q=s("div"),Ve=s("div"),fi=h(),Ye=s("div"),yi=h(),ze=s("div"),wi=h(),U=s("div"),ne=s("div"),Me=s("div"),ge=s("b"),Ie=m(a[12]),Li=m(" ("),Oe=m(a[13]),Je=s("sup"),Ke=m(ke),Ai=m(" percentile)"),Mi=h(),We=s("div"),ki=h(),de=s("div"),xe=s("div"),xe.innerHTML="Glycan<br/> <b>Shield</b>",Hi=h(),ue=s("div"),He=s("div"),_e=s("b"),Ee=m(a[14]),Ni=h(),Ne=s("div"),Qe=s("b"),Ue=m(a[15]),Ci=h(),X=s("div"),Xe=s("div"),Bi=h(),je=s("div"),Pi=h(),fe=s("div"),Di=h(),j=s("div"),ce=s("div"),Ce=s("div"),pe=s("b"),ei=m(a[16]),Ti=m(" ("),ii=m(a[17]),ti=s("sup"),si=m(Be),Gi=m(" percentile)"),$i=h(),ri=s("div"),Zi=h(),he=s("div"),ye=s("div"),ye.innerHTML="Glycan<br/> <b>Lifestyle</b>",Ri=h(),ve=s("div"),Pe=s("div"),li=s("b"),ai=m(a[18]),Si=h(),De=s("div"),oi=s("b"),ni=m(a[19]),qi=h(),ee=s("div"),di=s("div"),Fi=h(),ui=s("div"),Vi=h(),we=s("div"),Yi=h(),ie=s("div"),me=s("div"),Te=s("div"),be=s("b"),ci=m(a[20]),Ii=m(" ("),hi=m(a[21]),vi=s("sup"),mi=m(Ge),Oi=m(" percentile)"),Ji=h(),gi=s("div"),Ki=h(),$e=s("div"),$e.innerHTML='<div class="dot1 svelte-huoiza"></div> <div style="font-size: 0.8rem;">Myocardial infarction and stroke cases</div> <div class="dot2 svelte-huoiza"></div> <div style="font-size: 0.8rem;">Your patient</div>',r(d,"class","label svelte-huoiza"),l(d,"font-size","0.7rem"),r(u,"class","min svelte-huoiza"),r(V,"class","max svelte-huoiza"),r(x,"class","xAxis svelte-huoiza"),r(K,"class","yAxis svelte-huoiza"),r(S,"class","diseaseArea svelte-huoiza"),l(S,"border-radius","0 6px 6px 0"),l(S,"left","50.3%"),r(Y,"class","message svelte-huoiza"),r(f,"class","triangle-down svelte-huoiza"),r(M,"class","resultDisplay svelte-huoiza"),l(M,"right",re(a[9])),r(A,"class","result svelte-huoiza"),l(A,"padding",le(a[9])),l(A,"margin",ae(a[9])),l(A,"border-radius",oe(a[9])),r(L,"class","middleParent svelte-huoiza"),r(o,"class","content svelte-huoiza"),r(i,"class","row svelte-huoiza"),l(i,"height","14%"),l(i,"margin","0.2rem 0 0.2rem 0"),r(H,"class","label svelte-huoiza"),l(H,"font-size","0.7rem"),r(Le,"class","min svelte-huoiza"),r(Ae,"class","max svelte-huoiza"),r(Ve,"class","xAxis svelte-huoiza"),r(Ye,"class","yAxis svelte-huoiza"),r(ze,"class","diseaseArea svelte-huoiza"),l(ze,"border-radius","6px 0 0 6px"),l(ze,"right","50.3%"),r(Me,"class","message svelte-huoiza"),r(We,"class","triangle-down svelte-huoiza"),r(ne,"class","resultDisplay svelte-huoiza"),l(ne,"right",re(a[13])),r(U,"class","result3 svelte-huoiza"),l(U,"padding",le(a[13])),l(U,"margin",ae(a[13])),l(U,"border-radius",oe(a[13])),r(Q,"class","middleParent svelte-huoiza"),r(q,"class","content svelte-huoiza"),r(D,"class","row svelte-huoiza"),l(D,"height","14%"),l(D,"margin","0.2rem 0 0.2rem 0"),r(xe,"class","label svelte-huoiza"),l(xe,"font-size","0.7rem"),r(He,"class","min svelte-huoiza"),r(Ne,"class","max svelte-huoiza"),r(Xe,"class","xAxis svelte-huoiza"),r(je,"class","yAxis svelte-huoiza"),r(fe,"class","diseaseArea svelte-huoiza"),l(fe,"border-radius","6px 0 0 6px"),l(fe,"right","50.3%"),r(Ce,"class","message svelte-huoiza"),r(ri,"class","triangle-down svelte-huoiza"),r(ce,"class","resultDisplay svelte-huoiza"),l(ce,"right",re(a[17])),r(j,"class","result3 svelte-huoiza"),l(j,"padding",le(a[17])),l(j,"margin",ae(a[17])),l(j,"border-radius",oe(a[17])),r(X,"class","middleParent svelte-huoiza"),r(ue,"class","content svelte-huoiza"),r(de,"class","row svelte-huoiza"),l(de,"height","14%"),l(de,"margin","0.2rem 0 0.2rem 0"),r(ye,"class","label svelte-huoiza"),l(ye,"font-size","0.7rem"),r(Pe,"class","min svelte-huoiza"),r(De,"class","max svelte-huoiza"),r(di,"class","xAxis svelte-huoiza"),r(ui,"class","yAxis svelte-huoiza"),r(we,"class","diseaseArea svelte-huoiza"),l(we,"border-radius","0 6px 6px 0"),l(we,"left","50.3%"),r(Te,"class","message svelte-huoiza"),r(gi,"class","triangle-down svelte-huoiza"),r(me,"class","resultDisplay svelte-huoiza"),l(me,"right",re(a[21])),r(ie,"class","result3 svelte-huoiza"),l(ie,"padding",le(a[21])),l(ie,"margin",ae(a[21])),l(ie,"border-radius",oe(a[21])),r(ee,"class","middleParent svelte-huoiza"),r(ve,"class","content svelte-huoiza"),r(he,"class","row svelte-huoiza"),l(he,"height","14%"),l(he,"margin","0.2rem 0 0.2rem 0"),r($e,"class","lastRow svelte-huoiza"),r(t,"class","main svelte-huoiza"),l(t,"height","260px")},m(g,p){N(g,t,p),e(t,i),e(i,d),e(i,c),e(i,o),e(o,u),e(u,n),e(n,v),e(o,z),e(o,V),e(V,y),e(y,R),e(o,E),e(o,L),e(L,x),e(L,B),e(L,K),e(L,I),e(L,S),e(L,P),e(L,A),e(A,M),e(M,Y),e(Y,b),e(b,W),e(b,O),e(b,_),e(b,k),e(k,$),e(b,J),e(M,Z),e(M,f),e(t,T),e(t,D),e(D,H),e(D,F),e(D,q),e(q,Le),e(Le,Re),e(Re,Se),e(q,zi),e(q,Ae),e(Ae,qe),e(qe,Fe),e(q,xi),e(q,Q),e(Q,Ve),e(Q,fi),e(Q,Ye),e(Q,yi),e(Q,ze),e(Q,wi),e(Q,U),e(U,ne),e(ne,Me),e(Me,ge),e(ge,Ie),e(ge,Li),e(ge,Oe),e(ge,Je),e(Je,Ke),e(ge,Ai),e(ne,Mi),e(ne,We),e(t,ki),e(t,de),e(de,xe),e(de,Hi),e(de,ue),e(ue,He),e(He,_e),e(_e,Ee),e(ue,Ni),e(ue,Ne),e(Ne,Qe),e(Qe,Ue),e(ue,Ci),e(ue,X),e(X,Xe),e(X,Bi),e(X,je),e(X,Pi),e(X,fe),e(X,Di),e(X,j),e(j,ce),e(ce,Ce),e(Ce,pe),e(pe,ei),e(pe,Ti),e(pe,ii),e(pe,ti),e(ti,si),e(pe,Gi),e(ce,$i),e(ce,ri),e(t,Zi),e(t,he),e(he,ye),e(he,Ri),e(he,ve),e(ve,Pe),e(Pe,li),e(li,ai),e(ve,Si),e(ve,De),e(De,oi),e(oi,ni),e(ve,qi),e(ve,ee),e(ee,di),e(ee,Fi),e(ee,ui),e(ee,Vi),e(ee,we),e(ee,Yi),e(ee,ie),e(ie,me),e(me,Te),e(Te,be),e(be,ci),e(be,Ii),e(be,hi),e(be,vi),e(vi,mi),e(be,Oi),e(me,Ji),e(me,gi),e(t,Ki),e(t,$e)},p(g,p){p[0]&64&&w(v,g[6]),p[0]&128&&w(R,g[7]),p[0]&256&&w(W,g[8]),p[0]&512&&w(_,g[9]),p[0]&512&&G!==(G=se(g[9])+"")&&w($,G),p[0]&512&&l(M,"right",re(g[9])),p[0]&512&&l(A,"padding",le(g[9])),p[0]&512&&l(A,"margin",ae(g[9])),p[0]&512&&l(A,"border-radius",oe(g[9])),p[0]&1024&&w(Se,g[10]),p[0]&2048&&w(Fe,g[11]),p[0]&4096&&w(Ie,g[12]),p[0]&8192&&w(Oe,g[13]),p[0]&8192&&ke!==(ke=se(g[13])+"")&&w(Ke,ke),p[0]&8192&&l(ne,"right",re(g[13])),p[0]&8192&&l(U,"padding",le(g[13])),p[0]&8192&&l(U,"margin",ae(g[13])),p[0]&8192&&l(U,"border-radius",oe(g[13])),p[0]&16384&&w(Ee,g[14]),p[0]&32768&&w(Ue,g[15]),p[0]&65536&&w(ei,g[16]),p[0]&131072&&w(ii,g[17]),p[0]&131072&&Be!==(Be=se(g[17])+"")&&w(si,Be),p[0]&131072&&l(ce,"right",re(g[17])),p[0]&131072&&l(j,"padding",le(g[17])),p[0]&131072&&l(j,"margin",ae(g[17])),p[0]&131072&&l(j,"border-radius",oe(g[17])),p[0]&262144&&w(ai,g[18]),p[0]&524288&&w(ni,g[19]),p[0]&1048576&&w(ci,g[20]),p[0]&2097152&&w(hi,g[21]),p[0]&2097152&&Ge!==(Ge=se(g[21])+"")&&w(mi,Ge),p[0]&2097152&&l(me,"right",re(g[21])),p[0]&2097152&&l(ie,"padding",le(g[21])),p[0]&2097152&&l(ie,"margin",ae(g[21])),p[0]&2097152&&l(ie,"border-radius",oe(g[21]))},d(g){g&&C(t)}}}function dt(a){let t,i=a[25]&&Wi(a);return{c(){i&&i.c(),t=pi()},m(d,c){i&&i.m(d,c),N(d,t,c)},p(d,c){d[25]?i?i.p(d,c):(i=Wi(d),i.c(),i.m(t.parentNode,t)):i&&(i.d(1),i=null)},d(d){d&&C(t),i&&i.d(d)}}}function ut(a){let t,i,d,c=a[22]&&Qi(a),o=a[23]&&Ui(a),u=a[24]&&Xi(a);return{c(){t=s("div"),c&&c.c(),i=h(),o&&o.c(),d=h(),u&&u.c(),r(t,"class","header svelte-huoiza")},m(n,v){N(n,t,v),c&&c.m(t,null),e(t,i),o&&o.m(t,null),e(t,d),u&&u.m(t,null)},p(n,v){n[22]?c?c.p(n,v):(c=Qi(n),c.c(),c.m(t,i)):c&&(c.d(1),c=null),n[23]?o?o.p(n,v):(o=Ui(n),o.c(),o.m(t,d)):o&&(o.d(1),o=null),n[24]?u?u.p(n,v):(u=Xi(n),u.c(),u.m(t,null)):u&&(u.d(1),u=null)},d(n){n&&C(t),c&&c.d(),o&&o.d(),u&&u.d()}}}function Wi(a){let t;function i(o,u){return o[24]?ht:ct}let d=i(a),c=d(a);return{c(){c.c(),t=pi()},m(o,u){c.m(o,u),N(o,t,u)},p(o,u){d===(d=i(o))&&c?c.p(o,u):(c.d(1),c=d(o),c&&(c.c(),c.m(t.parentNode,t)))},d(o){o&&C(t),c.d(o)}}}function ct(a){let t,i,d,c,o,u,n,v,z,V,y,R,E,L,x,B,K,I,S,P,A,M,Y,b,W,O,_,k,G,$,J,Z,f=a[22]&&_i(),T=a[23]&&Ei();return{c(){t=s("div"),i=s("div"),d=s("div"),f&&f.c(),c=h(),T&&T.c(),o=h(),u=s("div"),n=m("There is "),v=s("b"),v.textContent=`${a[30]()}`,z=m(" of glycan indexes between "),V=s("br"),y=m(` your patient and
2
- myocardial infarction and stroke `),R=s("br"),E=m(" cases patients."),L=h(),x=s("div"),B=s("div"),B.textContent="Risk factor checker:",K=h(),I=s("div"),I.innerHTML=`<b>Personal history</b> of hypertension, diabetes mellitus, chronic kidney disease,
3
- <br/> dyslipidemia, arrhythmia, rheumatoid arthritis, SLE.`,S=h(),P=s("div"),P.innerHTML=`<b>Medication history:</b> Anti-hypertensive medication, statins, aspirin or other
4
- <br/> blood thinners.`,A=h(),M=s("div"),M.innerHTML="Current/previous <b>smoking history</b>.",Y=h(),b=s("div"),b.textContent="Possible follow-up tests:",W=h(),O=s("div"),O.innerHTML=`<b>Blood Tests:</b> Basic (LDL-C, HDL-C, total cholesterol, total cholesterol:HDL-C <br/>
5
- ratio, non-HDL-C, triglycerides) and extended lipid profile (e.g., oxLDL, <br/>
6
- VLDL, LDL-P, Lp(a), ApoB, Lp-PLA2), hsCRP, homocysteine, renal and liver <br/>
7
- function, glucose/HbA1c.`,_=h(),k=s("div"),k.innerHTML="<b>Blood pressure check.</b>",G=h(),$=s("div"),$.innerHTML="<b>ECG.</b>",J=h(),Z=s("div"),Z.textContent="Referral to cardiologist for other diagnostics (e.g., cardiac echo, stress echo, coronary CT, coronary angiography etc.).",l(d,"width","10%"),l(d,"padding-left","1.5rem"),l(d,"padding-right","1rem"),l(u,"width","90%"),l(u,"font-size","0.8rem"),r(i,"class","summaryHeader svelte-huoiza"),l(i,"border-radius","8px 8px 0 0"),l(i,"background-color",a[28]()),l(i,"border-bottom","2px solid "+a[27]()),l(B,"font-size","1.2rem"),l(B,"padding-bottom","1rem"),l(I,"font-size","0.7rem"),l(I,"padding-bottom","0.4rem"),l(P,"font-size","0.7rem"),l(P,"padding-bottom","0.4rem"),l(M,"font-size","0.7rem"),l(M,"padding-bottom","0.4rem"),l(b,"font-size","1.2rem"),l(b,"padding-top","0.4rem"),l(b,"padding-bottom","1rem"),l(O,"font-size","0.7rem"),l(O,"padding-bottom","0.4rem"),l(k,"font-size","0.7rem"),l(k,"padding-bottom","0.4rem"),l($,"font-size","0.7rem"),l($,"padding-bottom","0.4rem"),l(Z,"font-size","0.7rem"),l(Z,"padding-bottom","0.4rem"),r(x,"class","summaryBody svelte-huoiza"),l(x,"background-color",a[29]()),r(t,"class","summaryMain svelte-huoiza"),l(t,"border","2px solid "+a[27]())},m(D,H){N(D,t,H),e(t,i),e(i,d),f&&f.m(d,null),e(d,c),T&&T.m(d,null),e(i,o),e(i,u),e(u,n),e(u,v),e(u,z),e(u,V),e(u,y),e(u,R),e(u,E),e(t,L),e(t,x),e(x,B),e(x,K),e(x,I),e(x,S),e(x,P),e(x,A),e(x,M),e(x,Y),e(x,b),e(x,W),e(x,O),e(x,_),e(x,k),e(x,G),e(x,$),e(x,J),e(x,Z)},p(D,H){D[22]?f||(f=_i(),f.c(),f.m(d,c)):f&&(f.d(1),f=null),D[23]?T||(T=Ei(),T.c(),T.m(d,null)):T&&(T.d(1),T=null)},d(D){D&&C(t),f&&f.d(),T&&T.d()}}}function ht(a){let t;return{c(){t=s("div"),t.innerHTML=`<div class="summaryHeader svelte-huoiza" style="border-radius: 8px; background-color: rgba(0,170,68,0.15); border: 2px solid #00AA44;"><div style="width: 10%; padding-left: 1.5rem; padding-right: 1rem;"><svg xmlns="http://www.w3.org/2000/svg" width="50" height="50" viewBox="0 0 24 24"><path fill="#00AA44" d="m8.6 22.5l-1.9-3.2l-3.6-.8l.35-3.7L1 12l2.45-2.8l-.35-3.7l3.6-.8l1.9-3.2L12 2.95l3.4-1.45l1.9 3.2l3.6.8l-.35 3.7L23 12l-2.45 2.8l.35 3.7l-3.6.8l-1.9 3.2l-3.4-1.45l-3.4 1.45Zm2.35-6.95L16.6 9.9l-1.4-1.45l-4.25 4.25l-2.15-2.1L7.4 12l3.55 3.55Z"></path></svg></div> <div style="width: 90%;">There is <b>no significant overlap</b> of glycan indexes between <br/> your patient and
8
- myocardial infarction and stroke <br/> cases patients.</div></div> <div class="summaryBody svelte-huoiza" style="opacity: 0.35;"><div style="font-size: 1.2rem; padding-bottom: 1rem;">Risk factor checker:</div> <div style="font-size: 0.7rem; padding-bottom: 0.4rem;"><b>Personal history</b> of hypertension, diabetes mellitus, chronic kidney disease,
9
- <br/> dyslipidemia, arrhythmia, rheumatoid arthritis, SLE.</div> <div style="font-size: 0.7rem; padding-bottom: 0.4rem;"><b>Medication history:</b> Anti-hypertensive medication, statins, aspirin or other
10
- <br/> blood thinners.</div> <div style="font-size: 0.7rem; padding-bottom: 0.4rem;">Current/previous <b>smoking history</b>.</div> <div style="font-size: 1.2rem; padding-top: 0.4rem;padding-bottom: 1rem;">Possible follow-up tests:</div> <div style="font-size: 0.7rem; padding-bottom: 0.4rem;"><b>Blood Tests:</b> Basic (LDL-C, HDL-C, total cholesterol, total cholesterol:HDL-C <br/>
11
- ratio, non-HDL-C, triglycerides) and extended lipid profile (e.g., oxLDL, <br/>
12
- VLDL, LDL-P, Lp(a), ApoB, Lp-PLA2), hsCRP, homocysteine, renal and liver <br/>
13
- function, glucose/HbA1c.</div> <div style="font-size: 0.7rem; padding-bottom: 0.4rem;"><b>Blood pressure check.</b></div> <div style="font-size: 0.7rem; padding-bottom: 0.4rem;"><b>ECG.</b></div> <div style="font-size: 0.7rem; padding-bottom: 0.4rem;">Referral to cardiologist for other diagnostics (e.g., cardiac echo, stress echo, coronary CT, coronary angiography etc.).</div></div>`,r(t,"class","summaryMain svelte-huoiza")},m(i,d){N(i,t,d)},p:bi,d(i){i&&C(t)}}}function _i(a){let t,i;return{c(){t=te("svg"),i=te("path"),r(i,"fill","#CC0000"),r(i,"d","m8.6 22.5l-1.9-3.2l-3.6-.8l.35-3.7L1 12l2.45-2.8l-.35-3.7l3.6-.8l1.9-3.2L12 2.95l3.4-1.45l1.9 3.2l3.6.8l-.35 3.7L23 12l-2.45 2.8l.35 3.7l-3.6.8l-1.9 3.2l-3.4-1.45l-3.4 1.45ZM12 17q.425 0 .713-.288T13 16q0-.425-.288-.713T12 15q-.425 0-.713.288T11 16q0 .425.288.713T12 17Zm-1-4h2V7h-2v6Z"),r(t,"xmlns","http://www.w3.org/2000/svg"),r(t,"width","50"),r(t,"height","50"),r(t,"viewBox","0 0 24 24")},m(d,c){N(d,t,c),e(t,i)},d(d){d&&C(t)}}}function Ei(a){let t,i;return{c(){t=te("svg"),i=te("path"),r(i,"fill","#EE9933"),r(i,"d","m8.6 22.5l-1.9-3.2l-3.6-.8l.35-3.7L1 12l2.45-2.8l-.35-3.7l3.6-.8l1.9-3.2L12 2.95l3.4-1.45l1.9 3.2l3.6.8l-.35 3.7L23 12l-2.45 2.8l.35 3.7l-3.6.8l-1.9 3.2l-3.4-1.45l-3.4 1.45Zm2.35-6.95L16.6 9.9l-1.4-1.45l-4.25 4.25l-2.15-2.1L7.4 12l3.55 3.55Z"),r(t,"xmlns","http://www.w3.org/2000/svg"),r(t,"width","50"),r(t,"height","50"),r(t,"viewBox","0 0 24 24")},m(d,c){N(d,t,c),e(t,i)},d(d){d&&C(t)}}}function Qi(a){let t,i,d,c,o,u,n;return{c(){t=s("div"),i=s("b"),d=m(a[26]),c=h(),o=te("svg"),u=te("path"),n=m(`
14
- \xA0 Some overlap`),l(t,"padding-right","10px"),r(u,"fill","#F2590D"),r(u,"d","m8.6 22.5l-1.9-3.2l-3.6-.8l.35-3.7L1 12l2.45-2.8l-.35-3.7l3.6-.8l1.9-3.2L12 2.95l3.4-1.45l1.9 3.2l3.6.8l-.35 3.7L23 12l-2.45 2.8l.35 3.7l-3.6.8l-1.9 3.2l-3.4-1.45l-3.4 1.45ZM12 17q.425 0 .713-.288T13 16q0-.425-.288-.713T12 15q-.425 0-.713.288T11 16q0 .425.288.713T12 17Zm-1-4h2V7h-2v6Z"),r(o,"xmlns","http://www.w3.org/2000/svg"),r(o,"width","24"),r(o,"height","24"),r(o,"viewBox","0 0 24 24")},m(v,z){N(v,t,z),e(t,i),e(i,d),N(v,c,z),N(v,o,z),e(o,u),N(v,n,z)},p(v,z){z[0]&67108864&&w(d,v[26])},d(v){v&&(C(t),C(c),C(o),C(n))}}}function Ui(a){let t,i,d,c,o,u,n;return{c(){t=s("div"),i=s("b"),d=m(a[26]),c=h(),o=te("svg"),u=te("path"),n=m(`
15
- \xA0 Minor overlap`),l(t,"padding-right","10px"),r(u,"fill","#FFAA00"),r(u,"d","m8.6 22.5l-1.9-3.2l-3.6-.8l.35-3.7L1 12l2.45-2.8l-.35-3.7l3.6-.8l1.9-3.2L12 2.95l3.4-1.45l1.9 3.2l3.6.8l-.35 3.7L23 12l-2.45 2.8l.35 3.7l-3.6.8l-1.9 3.2l-3.4-1.45l-3.4 1.45Zm2.35-6.95L16.6 9.9l-1.4-1.45l-4.25 4.25l-2.15-2.1L7.4 12l3.55 3.55Z"),r(o,"xmlns","http://www.w3.org/2000/svg"),r(o,"width","24"),r(o,"height","24"),r(o,"viewBox","0 0 24 24")},m(v,z){N(v,t,z),e(t,i),e(i,d),N(v,c,z),N(v,o,z),e(o,u),N(v,n,z)},p(v,z){z[0]&67108864&&w(d,v[26])},d(v){v&&(C(t),C(c),C(o),C(n))}}}function Xi(a){let t,i,d,c,o,u,n;return{c(){t=s("div"),i=s("b"),d=m(a[26]),c=h(),o=te("svg"),u=te("path"),n=m(`
16
- \xA0 No significant overlap`),l(t,"padding-right","10px"),r(u,"fill","#12A195"),r(u,"d","m8.6 22.5l-1.9-3.2l-3.6-.8l.35-3.7L1 12l2.45-2.8l-.35-3.7l3.6-.8l1.9-3.2L12 2.95l3.4-1.45l1.9 3.2l3.6.8l-.35 3.7L23 12l-2.45 2.8l.35 3.7l-3.6.8l-1.9 3.2l-3.4-1.45l-3.4 1.45Zm2.35-6.95L16.6 9.9l-1.4-1.45l-4.25 4.25l-2.15-2.1L7.4 12l3.55 3.55Z"),r(o,"xmlns","http://www.w3.org/2000/svg"),r(o,"width","24"),r(o,"height","24"),r(o,"viewBox","0 0 24 24")},m(v,z){N(v,t,z),e(t,i),e(i,d),N(v,c,z),N(v,o,z),e(o,u),N(v,n,z)},p(v,z){z[0]&67108864&&w(d,v[26])},d(v){v&&(C(t),C(c),C(o),C(n))}}}function vt(a){let t,i,d;function c(n,v){return n[0]==="header"?ut:n[0]==="summary"?dt:n[5]==="M"?nt:ot}let o=c(a),u=o(a);return{c(){t=s("head"),t.innerHTML='<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@24,300,1,0"/>',i=h(),u.c(),d=pi()},m(n,v){N(n,t,v),N(n,i,v),u.m(n,v),N(n,d,v)},p(n,v){o===(o=c(n))&&u?u.p(n,v):(u.d(1),u=o(n),u&&(u.c(),u.m(d.parentNode,d)))},i:bi,o:bi,d(n){n&&(C(t),C(i),C(d)),u.d(n)}}}function mt(a,t,i){let{language:d}=t,{report:c}=t,{type:o}=t,{service:u=window.GaReportService}=t,n,v=0,z=0,V=0,y=0,R="",E=0,L=0,x=0,B=0,K=0,I=0,S=0,P=0,A=0,M=0,Y=0,b=0,W=0,O=0,_=0,k=0,G=!1,$=!1,J=!1,Z=!1,f="";function T(){return R==="M"?G?"#CC0000":$?"#EE9933":"#00AA44":y===50?"#00AA44":y<50?"#CC0000":(y>50,"#00AA44")}function D(){return R==="M"?G?"rgba(204,0,0,0.15)":$?"rgba(238,153,51,0.15)":"rgba(0,170,68,0.15)":y===50?"rgba(0,170,68,0.15)":y<50?"rgba(204,0,0,0.15)":(y>50,"rgba(0,170,68,0.15)")}function H(){return R==="M"?G?"rgba(204,0,0,0.05)":$?"rgba(238,153,51,0.05)":"rgba(0,170,68,0.05)":y===50?"rgba(0,170,68,0.05)":y<50?"rgba(204,0,0,0.05)":(y>50,"rgba(0,170,68,0.05)")}function F(){return R==="M"?G?"some overlap":$?"a minor overlap":"no significant overlap":y===50?"no significant overlap":y<50?"some overlap":(y>50,"no significant overlap")}return lt(async()=>{if(n=await u.getReport(c),i(5,R=n.sex),R==="M"?(i(6,E=Number(n.G0xmin)),i(7,L=Number(n.G0xmax)),i(8,x=Number(n.G0yourscore)),i(9,B=Number(n.G0percentile)),i(10,K=Number(n.G2xmin)),i(11,I=Number(n.G2xmax)),i(12,S=Number(n.G2yourscore)),i(13,P=Number(n.G2percentile)),i(14,A=Number(n.Sxmin)),i(15,M=Number(n.Sxmax)),i(16,Y=Number(n.Syourscore)),i(17,b=Number(n.Spercentile)),i(18,W=Number(n.Bxmin)),i(19,O=Number(n.Bxmax)),i(20,_=Number(n.Byourscore)),i(21,k=Number(n.Bpercentile))):(i(1,v=Number(n.P22xmin)),i(2,z=Number(n.P22xmax)),i(3,V=Number(n.P22yourscore)),i(4,y=Number(n.P22percentile))),R==="M"){if(B>50&&P<50&&b<50&&k>50){i(26,f="4/4"),i(22,G=!0),i(25,Z=!0);return}if(B>50||P<50||b<50||k>50){if(B>50&&P<50&&b<50||B>50&&P<50&&k>50||P<50&&b<50&&k>50||B>50&&b<50&&k>50){i(26,f="3/4"),i(23,$=!0),i(25,Z=!0);return}B>50&&P<50||B>50&&b<50||B>50&&k>50||P<50&&b<50||P<50&&k>50||b<50&&k>50?i(26,f="2/4"):i(26,f="1/4"),i(24,J=!0),i(25,Z=!0);return}i(26,f="0/4"),i(24,J=!0),i(25,Z=!0);return}else{if(y===50){i(26,f="0/1"),i(24,J=!0),i(25,Z=!0);return}if(y<50){i(26,f="1/1"),i(22,G=!0),i(25,Z=!0);return}if(y>50){i(26,f="0/1"),i(24,J=!0),i(25,Z=!0);return}}}),a.$$set=q=>{"language"in q&&i(31,d=q.language),"report"in q&&i(32,c=q.report),"type"in q&&i(0,o=q.type),"service"in q&&i(33,u=q.service)},[o,v,z,V,y,R,E,L,x,B,K,I,S,P,A,M,Y,b,W,O,_,k,G,$,J,Z,f,T,D,H,F,d,c,u]}class ji extends it{constructor(t){super(),tt(this,t,mt,vt,st,{language:31,report:32,type:0,service:33},at,[-1,-1])}get language(){return this.$$.ctx[31]}set language(t){this.$$set({language:t}),Ze()}get report(){return this.$$.ctx[32]}set report(t){this.$$set({report:t}),Ze()}get type(){return this.$$.ctx[0]}set type(t){this.$$set({type:t}),Ze()}get service(){return this.$$.ctx[33]}set service(t){this.$$set({service:t}),Ze()}}customElements.define("ga-myocardial",et(ji,{language:{},report:{},type:{},service:{}},[],[],!0));export{ji as default};
1
+ import{c as Y,S as J,i as Q,f as V,s as U,a as W,e as w,b as L,d as P,g as T,q as M,r as G,u as k,h as q,o as X,v as S,t as A,k as b,j as o,l as r,m as F,n as j,p as Z,w as H,x as z,y as C}from"./index2.js";import{A as D}from"./Arrow.js";import"./helpers.js";function ee(m){W(m,"svelte-yt1d5k",".summaryMain.svelte-yt1d5k{width:100%;height:100%;display:flex;flex-direction:column;color:#09341FCC}.summaryHeader.svelte-yt1d5k{width:100%;height:16%;font-size:0.9rem;display:flex;align-items:center}.summaryBody.svelte-yt1d5k{width:80%;height:100%;margin:auto;border-top:2px solid #C9DBD2}.main.svelte-yt1d5k{height:100%;width:100%;display:flex}.label.svelte-yt1d5k{width:30%;display:flex;align-items:center}.header.svelte-yt1d5k{width:100%;height:100%;display:flex;align-items:center}")}function le(m){let e,l,i,c,v,$,t=m[1]==="mature"&&_(m),h=m[1]==="youth"&&R(m),f=m[1]==="shield"&&I(m),a=m[1]==="lifestyle"&&E(m),p=m[1]==="peak"&&K(m);return{c(){t&&t.c(),e=L(),h&&h.c(),l=L(),f&&f.c(),i=L(),a&&a.c(),c=L(),p&&p.c(),v=P()},m(n,d){t&&t.m(n,d),T(n,e,d),h&&h.m(n,d),T(n,l,d),f&&f.m(n,d),T(n,i,d),a&&a.m(n,d),T(n,c,d),p&&p.m(n,d),T(n,v,d),$=!0},p(n,d){n[1]==="mature"?t?(t.p(n,d),d&2&&k(t,1)):(t=_(n),t.c(),k(t,1),t.m(e.parentNode,e)):t&&(S(),M(t,1,1,()=>{t=null}),G()),n[1]==="youth"?h?(h.p(n,d),d&2&&k(h,1)):(h=R(n),h.c(),k(h,1),h.m(l.parentNode,l)):h&&(S(),M(h,1,1,()=>{h=null}),G()),n[1]==="shield"?f?(f.p(n,d),d&2&&k(f,1)):(f=I(n),f.c(),k(f,1),f.m(i.parentNode,i)):f&&(S(),M(f,1,1,()=>{f=null}),G()),n[1]==="lifestyle"?a?(a.p(n,d),d&2&&k(a,1)):(a=E(n),a.c(),k(a,1),a.m(c.parentNode,c)):a&&(S(),M(a,1,1,()=>{a=null}),G()),n[1]==="peak"?p?(p.p(n,d),d&2&&k(p,1)):(p=K(n),p.c(),k(p,1),p.m(v.parentNode,v)):p&&(S(),M(p,1,1,()=>{p=null}),G())},i(n){$||(k(t),k(h),k(f),k(a),k(p),$=!0)},o(n){M(t),M(h),M(f),M(a),M(p),$=!1},d(n){n&&(q(e),q(l),q(i),q(c),q(v)),t&&t.d(n),h&&h.d(n),f&&f.d(n),a&&a.d(n),p&&p.d(n)}}}function te(m){let e,l,i,c,v,$,t=m[2]?"Major overlap":m[3]?"Some overlap":"No significant overlap",h,f,a,p,n,d;function y(u,x){return u[2]||u[3]?re:se}let g=y(m),s=g(m);return{c(){e=w("div"),l=w("div"),i=w("div"),s.c(),c=L(),v=w("div"),$=w("b"),h=A(t),f=A(" of glycan indexes between "),a=w("br"),p=A(" your patient and this condition."),n=L(),d=w("div"),d.innerHTML='<h5>Signs and symptoms</h5> <ul style="font-size: 0.8rem;"><li>Persistent blood pressure over 140/90 mmHg</li> <li>Headaches and dizziness</li> <li>Blurred vision or visual disturbances</li></ul> <h5>Possible follow-up tests</h5> <ul style="font-size: 0.8rem;"><li>Regular blood pressure monitoring</li> <li>24-hour ambulatory blood pressure monitoring</li> <li>Kidney function tests</li></ul> <h5>Related research papers</h5> <a style="color: #E66439;" href="https://pubmed.ncbi.nlm.nih.gov/27124023/">The Association Between Glycosylation of Immunoglobulin G and Hypertension: A Multiple Ethnic Cross-Sectional Study</a> <p style="margin: 0; font-size: 0.8rem; color: #09341FCC;">In an extensive study with 4757 participants, including 913 from the Chinese Han Beijing population, 985 from Croatian Kor\u010Dula, 896 from Croatian Vis, and 1963 from Scottish Orkney, researchers investigated changes in IgG glycans associated with prehypertension and hypertension. The demographic composition of the study was approximately 40% female and 60% male participants. Among hypertension patients, there was a noted decrease in G2 and S, alongside an increase in G0.</p>',b(i,"transform","translate(-50%)"),b($,"color",m[2]||m[3]?"#F2590D":"#12A195"),o(l,"class","summaryHeader svelte-yt1d5k"),o(d,"class","summaryBody svelte-yt1d5k"),o(e,"class","summaryMain svelte-yt1d5k")},m(u,x){T(u,e,x),r(e,l),r(l,i),s.m(i,null),r(l,c),r(l,v),r(v,$),r($,h),r(v,f),r(v,a),r(v,p),r(e,n),r(e,d)},p(u,x){g!==(g=y(u))&&(s.d(1),s=g(u),s&&(s.c(),s.m(i,null))),x&12&&t!==(t=u[2]?"Major overlap":u[3]?"Some overlap":"No significant overlap")&&F(h,t),x&12&&b($,"color",u[2]||u[3]?"#F2590D":"#12A195")},i:j,o:j,d(u){u&&q(e),s.d()}}}function ie(m){let e,l,i,c,v,$,t=m[2]?"Major overlap":m[3]?"Some overlap":"No significant overlap",h;function f(n,d){return n[2]||n[3]?ae:ne}let a=f(m),p=a(m);return{c(){e=w("div"),l=w("div"),i=w("b"),c=A(m[5]),v=L(),p.c(),$=A(`
2
+ \xA0\xA0`),h=A(t),b(l,"padding-right","10px"),o(e,"class","header svelte-yt1d5k")},m(n,d){T(n,e,d),r(e,l),r(l,i),r(i,c),r(e,v),p.m(e,null),r(e,$),r(e,h)},p(n,d){d&32&&F(c,n[5]),a!==(a=f(n))&&(p.d(1),p=a(n),p&&(p.c(),p.m(e,$))),d&12&&t!==(t=n[2]?"Major overlap":n[3]?"Some overlap":"No significant overlap")&&F(h,t)},i:j,o:j,d(n){n&&q(e),p.d()}}}function _(m){let e,l,i,c,v,$,t,h,f,a,p,n,d,y,g;return y=new D({props:{type:"right",percentile:m[7]}}),{c(){e=w("div"),l=w("div"),i=Z("svg"),c=Z("path"),$=L(),t=w("div"),h=w("div"),h.innerHTML="Glycan <b>Mature (G0)</b>",f=L(),a=w("div"),p=A(m[6]),n=L(),d=w("div"),H(y.$$.fragment),o(c,"fill",v=m[7]<=68?"#12A195":"#F2590D"),o(c,"d","m8.6 22.5l-1.9-3.2l-3.6-.8l.35-3.7L1 12l2.45-2.8l-.35-3.7l3.6-.8l1.9-3.2L12 2.95l3.4-1.45l1.9 3.2l3.6.8l-.35 3.7L23 12l-2.45 2.8l.35 3.7l-3.6.8l-1.9 3.2l-3.4-1.45l-3.4 1.45ZM12 17q.425 0 .713-.288T13 16q0-.425-.288-.713T12 15q-.425 0-.713.288T11 16q0 .425.288.713T12 17Zm-1-4h2V7h-2v6Z"),o(i,"xmlns","http://www.w3.org/2000/svg"),o(i,"width","24"),o(i,"height","24"),o(i,"viewBox","0 0 24 24"),b(t,"display","flex"),b(t,"flex-direction","column"),b(t,"padding-left","0.3rem"),o(l,"class","label svelte-yt1d5k"),b(l,"font-size","0.8rem"),b(d,"width","70%"),b(d,"display","flex"),b(d,"align-items","center"),o(e,"class","main svelte-yt1d5k")},m(s,u){T(s,e,u),r(e,l),r(l,i),r(i,c),r(l,$),r(l,t),r(t,h),r(t,f),r(t,a),r(a,p),r(e,n),r(e,d),z(y,d,null),g=!0},p(s,u){(!g||u&128&&v!==(v=s[7]<=68?"#12A195":"#F2590D"))&&o(c,"fill",v),(!g||u&64)&&F(p,s[6]);const x={};u&128&&(x.percentile=s[7]),y.$set(x)},i(s){g||(k(y.$$.fragment,s),g=!0)},o(s){M(y.$$.fragment,s),g=!1},d(s){s&&q(e),C(y)}}}function R(m){let e,l,i,c,v,$,t,h,f,a,p,n,d,y,g;return y=new D({props:{type:"left",percentile:m[7]}}),{c(){e=w("div"),l=w("div"),i=Z("svg"),c=Z("path"),$=L(),t=w("div"),h=w("div"),h.innerHTML="Glycan <b>Youth (G2)</b>",f=L(),a=w("div"),p=A(m[6]),n=L(),d=w("div"),H(y.$$.fragment),o(c,"fill",v=m[7]>=32?"#12A195":"#F2590D"),o(c,"d","m8.6 22.5l-1.9-3.2l-3.6-.8l.35-3.7L1 12l2.45-2.8l-.35-3.7l3.6-.8l1.9-3.2L12 2.95l3.4-1.45l1.9 3.2l3.6.8l-.35 3.7L23 12l-2.45 2.8l.35 3.7l-3.6.8l-1.9 3.2l-3.4-1.45l-3.4 1.45ZM12 17q.425 0 .713-.288T13 16q0-.425-.288-.713T12 15q-.425 0-.713.288T11 16q0 .425.288.713T12 17Zm-1-4h2V7h-2v6Z"),o(i,"xmlns","http://www.w3.org/2000/svg"),o(i,"width","24"),o(i,"height","24"),o(i,"viewBox","0 0 24 24"),b(t,"display","flex"),b(t,"flex-direction","column"),b(t,"padding-left","0.3rem"),o(l,"class","label svelte-yt1d5k"),b(l,"font-size","0.8rem"),b(d,"width","70%"),b(d,"display","flex"),b(d,"align-items","center"),o(e,"class","main svelte-yt1d5k")},m(s,u){T(s,e,u),r(e,l),r(l,i),r(i,c),r(l,$),r(l,t),r(t,h),r(t,f),r(t,a),r(a,p),r(e,n),r(e,d),z(y,d,null),g=!0},p(s,u){(!g||u&128&&v!==(v=s[7]>=32?"#12A195":"#F2590D"))&&o(c,"fill",v),(!g||u&64)&&F(p,s[6]);const x={};u&128&&(x.percentile=s[7]),y.$set(x)},i(s){g||(k(y.$$.fragment,s),g=!0)},o(s){M(y.$$.fragment,s),g=!1},d(s){s&&q(e),C(y)}}}function I(m){let e,l,i,c,v,$,t,h,f,a,p,n,d,y,g;return y=new D({props:{type:"left",percentile:m[7]}}),{c(){e=w("div"),l=w("div"),i=Z("svg"),c=Z("path"),$=L(),t=w("div"),h=w("div"),h.innerHTML="Glycan <b>Shield (S)</b>",f=L(),a=w("div"),p=A(m[6]),n=L(),d=w("div"),H(y.$$.fragment),o(c,"fill",v=m[7]>=32?"#12A195":"#F2590D"),o(c,"d","m8.6 22.5l-1.9-3.2l-3.6-.8l.35-3.7L1 12l2.45-2.8l-.35-3.7l3.6-.8l1.9-3.2L12 2.95l3.4-1.45l1.9 3.2l3.6.8l-.35 3.7L23 12l-2.45 2.8l.35 3.7l-3.6.8l-1.9 3.2l-3.4-1.45l-3.4 1.45ZM12 17q.425 0 .713-.288T13 16q0-.425-.288-.713T12 15q-.425 0-.713.288T11 16q0 .425.288.713T12 17Zm-1-4h2V7h-2v6Z"),o(i,"xmlns","http://www.w3.org/2000/svg"),o(i,"width","24"),o(i,"height","24"),o(i,"viewBox","0 0 24 24"),b(t,"display","flex"),b(t,"flex-direction","column"),b(t,"padding-left","0.3rem"),o(l,"class","label svelte-yt1d5k"),b(l,"font-size","0.8rem"),b(d,"width","70%"),b(d,"display","flex"),b(d,"align-items","center"),o(e,"class","main svelte-yt1d5k")},m(s,u){T(s,e,u),r(e,l),r(l,i),r(i,c),r(l,$),r(l,t),r(t,h),r(t,f),r(t,a),r(a,p),r(e,n),r(e,d),z(y,d,null),g=!0},p(s,u){(!g||u&128&&v!==(v=s[7]>=32?"#12A195":"#F2590D"))&&o(c,"fill",v),(!g||u&64)&&F(p,s[6]);const x={};u&128&&(x.percentile=s[7]),y.$set(x)},i(s){g||(k(y.$$.fragment,s),g=!0)},o(s){M(y.$$.fragment,s),g=!1},d(s){s&&q(e),C(y)}}}function E(m){let e,l,i,c,v,$,t,h,f,a,p,n,d,y,g;return y=new D({props:{type:"right",percentile:m[7]}}),{c(){e=w("div"),l=w("div"),i=Z("svg"),c=Z("path"),$=L(),t=w("div"),h=w("div"),h.innerHTML="Glycan <b>Lifestyle (B)</b>",f=L(),a=w("div"),p=A(m[6]),n=L(),d=w("div"),H(y.$$.fragment),o(c,"fill",v=m[7]<=68?"#12A195":"#F2590D"),o(c,"d","m8.6 22.5l-1.9-3.2l-3.6-.8l.35-3.7L1 12l2.45-2.8l-.35-3.7l3.6-.8l1.9-3.2L12 2.95l3.4-1.45l1.9 3.2l3.6.8l-.35 3.7L23 12l-2.45 2.8l.35 3.7l-3.6.8l-1.9 3.2l-3.4-1.45l-3.4 1.45ZM12 17q.425 0 .713-.288T13 16q0-.425-.288-.713T12 15q-.425 0-.713.288T11 16q0 .425.288.713T12 17Zm-1-4h2V7h-2v6Z"),o(i,"xmlns","http://www.w3.org/2000/svg"),o(i,"width","24"),o(i,"height","24"),o(i,"viewBox","0 0 24 24"),b(t,"display","flex"),b(t,"flex-direction","column"),b(t,"padding-left","0.3rem"),o(l,"class","label svelte-yt1d5k"),b(l,"font-size","0.8rem"),b(d,"width","70%"),b(d,"display","flex"),b(d,"align-items","center"),o(e,"class","main svelte-yt1d5k")},m(s,u){T(s,e,u),r(e,l),r(l,i),r(i,c),r(l,$),r(l,t),r(t,h),r(t,f),r(t,a),r(a,p),r(e,n),r(e,d),z(y,d,null),g=!0},p(s,u){(!g||u&128&&v!==(v=s[7]<=68?"#12A195":"#F2590D"))&&o(c,"fill",v),(!g||u&64)&&F(p,s[6]);const x={};u&128&&(x.percentile=s[7]),y.$set(x)},i(s){g||(k(y.$$.fragment,s),g=!0)},o(s){M(y.$$.fragment,s),g=!1},d(s){s&&q(e),C(y)}}}function K(m){let e,l,i,c,v,$,t,h,f,a,p,n,d,y,g;return y=new D({props:{type:"right",percentile:m[7]}}),{c(){e=w("div"),l=w("div"),i=Z("svg"),c=Z("path"),$=L(),t=w("div"),h=w("div"),h.innerHTML="Peak <b>22 (P22)</b>",f=L(),a=w("div"),p=A(m[6]),n=L(),d=w("div"),H(y.$$.fragment),o(c,"fill",v=m[7]<=68?"#12A195":"#F2590D"),o(c,"d","m8.6 22.5l-1.9-3.2l-3.6-.8l.35-3.7L1 12l2.45-2.8l-.35-3.7l3.6-.8l1.9-3.2L12 2.95l3.4-1.45l1.9 3.2l3.6.8l-.35 3.7L23 12l-2.45 2.8l.35 3.7l-3.6.8l-1.9 3.2l-3.4-1.45l-3.4 1.45ZM12 17q.425 0 .713-.288T13 16q0-.425-.288-.713T12 15q-.425 0-.713.288T11 16q0 .425.288.713T12 17Zm-1-4h2V7h-2v6Z"),o(i,"xmlns","http://www.w3.org/2000/svg"),o(i,"width","24"),o(i,"height","24"),o(i,"viewBox","0 0 24 24"),b(t,"display","flex"),b(t,"flex-direction","column"),b(t,"padding-left","0.3rem"),o(l,"class","label svelte-yt1d5k"),b(l,"font-size","0.8rem"),b(d,"width","70%"),b(d,"display","flex"),b(d,"align-items","center"),o(e,"class","main svelte-yt1d5k")},m(s,u){T(s,e,u),r(e,l),r(l,i),r(i,c),r(l,$),r(l,t),r(t,h),r(t,f),r(t,a),r(a,p),r(e,n),r(e,d),z(y,d,null),g=!0},p(s,u){(!g||u&128&&v!==(v=s[7]<=68?"#12A195":"#F2590D"))&&o(c,"fill",v),(!g||u&64)&&F(p,s[6]);const x={};u&128&&(x.percentile=s[7]),y.$set(x)},i(s){g||(k(y.$$.fragment,s),g=!0)},o(s){M(y.$$.fragment,s),g=!1},d(s){s&&q(e),C(y)}}}function se(m){let e,l;return{c(){e=Z("svg"),l=Z("path"),o(l,"fill","#12A195"),o(l,"d","m8.6 22.5l-1.9-3.2l-3.6-.8l.35-3.7L1 12l2.45-2.8l-.35-3.7l3.6-.8l1.9-3.2L12 2.95l3.4-1.45l1.9 3.2l3.6.8l-.35 3.7L23 12l-2.45 2.8l.35 3.7l-3.6.8l-1.9 3.2l-3.4-1.45l-3.4 1.45Zm2.35-6.95L16.6 9.9l-1.4-1.45l-4.25 4.25l-2.15-2.1L7.4 12l3.55 3.55Z"),o(e,"xmlns","http://www.w3.org/2000/svg"),o(e,"width","50"),o(e,"height","50"),o(e,"viewBox","0 0 24 24")},m(i,c){T(i,e,c),r(e,l)},d(i){i&&q(e)}}}function re(m){let e,l;return{c(){e=Z("svg"),l=Z("path"),o(l,"fill","#F2590D"),o(l,"d","m8.6 22.5l-1.9-3.2l-3.6-.8l.35-3.7L1 12l2.45-2.8l-.35-3.7l3.6-.8l1.9-3.2L12 2.95l3.4-1.45l1.9 3.2l3.6.8l-.35 3.7L23 12l-2.45 2.8l.35 3.7l-3.6.8l-1.9 3.2l-3.4-1.45l-3.4 1.45ZM12 17q.425 0 .713-.288T13 16q0-.425-.288-.713T12 15q-.425 0-.713.288T11 16q0 .425.288.713T12 17Zm-1-4h2V7h-2v6Z"),o(e,"xmlns","http://www.w3.org/2000/svg"),o(e,"width","50"),o(e,"height","50"),o(e,"viewBox","0 0 24 24")},m(i,c){T(i,e,c),r(e,l)},d(i){i&&q(e)}}}function ne(m){let e,l;return{c(){e=Z("svg"),l=Z("path"),o(l,"fill","#12A195"),o(l,"d","m8.6 22.5l-1.9-3.2l-3.6-.8l.35-3.7L1 12l2.45-2.8l-.35-3.7l3.6-.8l1.9-3.2L12 2.95l3.4-1.45l1.9 3.2l3.6.8l-.35 3.7L23 12l-2.45 2.8l.35 3.7l-3.6.8l-1.9 3.2l-3.4-1.45l-3.4 1.45Zm2.35-6.95L16.6 9.9l-1.4-1.45l-4.25 4.25l-2.15-2.1L7.4 12l3.55 3.55Z"),o(e,"xmlns","http://www.w3.org/2000/svg"),o(e,"width","24"),o(e,"height","24"),o(e,"viewBox","0 0 24 24")},m(i,c){T(i,e,c),r(e,l)},d(i){i&&q(e)}}}function ae(m){let e,l;return{c(){e=Z("svg"),l=Z("path"),o(l,"fill","#F2590D"),o(l,"d","m8.6 22.5l-1.9-3.2l-3.6-.8l.35-3.7L1 12l2.45-2.8l-.35-3.7l3.6-.8l1.9-3.2L12 2.95l3.4-1.45l1.9 3.2l3.6.8l-.35 3.7L23 12l-2.45 2.8l.35 3.7l-3.6.8l-1.9 3.2l-3.4-1.45l-3.4 1.45ZM12 17q.425 0 .713-.288T13 16q0-.425-.288-.713T12 15q-.425 0-.713.288T11 16q0 .425.288.713T12 17Zm-1-4h2V7h-2v6Z"),o(e,"xmlns","http://www.w3.org/2000/svg"),o(e,"width","24"),o(e,"height","24"),o(e,"viewBox","0 0 24 24")},m(i,c){T(i,e,c),r(e,l)},d(i){i&&q(e)}}}function oe(m){let e,l,i,c,v,$;const t=[ie,te,le],h=[];function f(a,p){return a[0]==="header"?0:a[0]==="summary"&&a[4]?1:2}return i=f(m),c=h[i]=t[i](m),{c(){e=w("head"),e.innerHTML='<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@24,300,1,0"/>',l=L(),c.c(),v=P()},m(a,p){T(a,e,p),T(a,l,p),h[i].m(a,p),T(a,v,p),$=!0},p(a,[p]){let n=i;i=f(a),i===n?h[i].p(a,p):(S(),M(h[n],1,1,()=>{h[n]=null}),G(),c=h[i],c?c.p(a,p):(c=h[i]=t[i](a),c.c()),k(c,1),c.m(v.parentNode,v))},i(a){$||(k(c),$=!0)},o(a){M(c),$=!1},d(a){a&&(q(e),q(l),q(v)),h[i].d(a)}}}function de(m,e,l){let{report:i}=e,{type:c}=e,{subtype:v}=e,{service:$=window.GaReportService}=e,t,h=!1,f=!1,a=!1,p="",n="",d="",y=0,g=0,s=0,u=0,x=0,N=0;return X(async()=>{switch(t=await $.getReport(i),v){case"peak":l(7,N=Number(t.P22percentile));break;case"mature":l(7,N=Number(t.G0percentile));break;case"youth":l(7,N=Number(t.G2percentile));break;case"shield":l(7,N=Number(t.Spercentile));break;case"lifestyle":l(7,N=Number(t.Bpercentile));break}if(y=Number(t.P22percentile),g=Number(t.G0percentile),s=Number(t.G2percentile),u=Number(t.Spercentile),x=Number(t.Bpercentile),d=t.sex,N<32&&l(6,n="Lower than average"),N>=32&&N<=68&&l(6,n="Around average"),N>68&&l(6,n="Higher than average"),d==="M"){if(g>68&&s<32&&u<32&&x>60){l(5,p="4/4"),l(2,h=!0),l(4,a=!0);return}if(g>68||s<32||u<32||x>68){if(g>68&&s<32&&u<32||g>68&&s<32&&x>68||s<32&&u<32&&x>68||g>68&&u<32&&x>68){l(5,p="3/4"),l(3,f=!0),l(4,a=!0);return}g>68&&s<32||g>68&&u<32||g>68&&x>68||s<32&&u<32||s<32&&x>68||u<32&&x>68?l(5,p="2/4"):l(5,p="1/4"),l(4,a=!0);return}l(5,p="0/4"),l(4,a=!0);return}else{if(y<32){l(5,p="1/1"),l(2,h=!0),l(4,a=!0);return}l(5,p="0/1"),l(4,a=!0);return}}),m.$$set=B=>{"report"in B&&l(8,i=B.report),"type"in B&&l(0,c=B.type),"subtype"in B&&l(1,v=B.subtype),"service"in B&&l(9,$=B.service)},[c,v,h,f,a,p,n,N,i,$]}class O extends J{constructor(e){super(),Q(this,e,de,oe,U,{report:8,type:0,subtype:1,service:9},ee)}get report(){return this.$$.ctx[8]}set report(e){this.$$set({report:e}),V()}get type(){return this.$$.ctx[0]}set type(e){this.$$set({type:e}),V()}get subtype(){return this.$$.ctx[1]}set subtype(e){this.$$set({subtype:e}),V()}get service(){return this.$$.ctx[9]}set service(e){this.$$set({service:e}),V()}}customElements.define("ga-myocardial",Y(O,{report:{},type:{},subtype:{},service:{}},[],[],!0));export{O as default};
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@glycanage/web-components",
3
3
  "description": "A collection of web-components",
4
- "version": "1.36.0",
4
+ "version": "1.37.0",
5
5
  "type": "module",
6
6
  "main": "dist/lib/@glycanage/web-components.js",
7
7
  "scripts": {