@glycanage/web-components 1.39.0 → 1.40.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/myocardial.wc.js +1 -1
- package/package.json +1 -1
package/dist/myocardial.wc.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import{c as X,S as _,i as ee,f as P,s as le,a as te,e as w,b as L,d as E,g as k,t as Z,h as G,j as T,k as q,o as ie,l as C,m as A,n as x,p as r,q as n,r as B,u as V,v as M,w as S,x as z,y as F}from"./index2.js";import{A as H}from"./Arrow.js";import{g as ne}from"./helpers.js";function se(p){te(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 re(p){let e,l,t,o,u,$,s=p[1]==="mature"&&O(p),m=p[1]==="youth"&&Y(p),g=p[1]==="shield"&&J(p),a=p[1]==="lifestyle"&&K(p),h=p[1]==="peak"&&Q(p);return{c(){s&&s.c(),e=L(),m&&m.c(),l=L(),g&&g.c(),t=L(),a&&a.c(),o=L(),h&&h.c(),u=E()},m(c,d){s&&s.m(c,d),k(c,e,d),m&&m.m(c,d),k(c,l,d),g&&g.m(c,d),k(c,t,d),a&&a.m(c,d),k(c,o,d),h&&h.m(c,d),k(c,u,d),$=!0},p(c,d){c[1]==="mature"?s?(s.p(c,d),d&2&&T(s,1)):(s=O(c),s.c(),T(s,1),s.m(e.parentNode,e)):s&&(C(),Z(s,1,1,()=>{s=null}),G()),c[1]==="youth"?m?(m.p(c,d),d&2&&T(m,1)):(m=Y(c),m.c(),T(m,1),m.m(l.parentNode,l)):m&&(C(),Z(m,1,1,()=>{m=null}),G()),c[1]==="shield"?g?(g.p(c,d),d&2&&T(g,1)):(g=J(c),g.c(),T(g,1),g.m(t.parentNode,t)):g&&(C(),Z(g,1,1,()=>{g=null}),G()),c[1]==="lifestyle"?a?(a.p(c,d),d&2&&T(a,1)):(a=K(c),a.c(),T(a,1),a.m(o.parentNode,o)):a&&(C(),Z(a,1,1,()=>{a=null}),G()),c[1]==="peak"?h?(h.p(c,d),d&2&&T(h,1)):(h=Q(c),h.c(),T(h,1),h.m(u.parentNode,u)):h&&(C(),Z(h,1,1,()=>{h=null}),G())},i(c){$||(T(s),T(m),T(g),T(a),T(h),$=!0)},o(c){Z(s),Z(m),Z(g),Z(a),Z(h),$=!1},d(c){c&&(q(e),q(l),q(t),q(o),q(u)),s&&s.d(c),m&&m.d(c),g&&g.d(c),a&&a.d(c),h&&h.d(c)}}}function ae(p){let e,l,t,o,u,$,s=p[2]?"Major overlap":p[3]?"Some overlap":"No significant overlap",m,g,a,h,c,d;function v(y,b){return y[2]||y[3]?me:oe}let f=v(p),i=f(p);return{c(){e=w("div"),l=w("div"),t=w("div"),i.c(),o=L(),u=w("div"),$=w("b"),m=A(s),g=A(" of glycan indexes between "),a=w("br"),h=A(" your patient and this condition."),c=L(),d=w("div"),d.innerHTML='<h5>Risk factors</h5> <ul style="font-size: 0.8rem;"><li>Past medical history (cardiometabolic syndrome, autoimmune disease)</li> <li>Medication history (e.g., statins, blood thinners)</li> <li>Current/previous smoking history</li></ul> <h5>Possible follow-up</h5> <ul style="font-size: 0.8rem;"><li>Blood tests: basic and extended lipid profile (e.g., Lp(a), ApoB), hsCRP, homocysteine, renal and liver function, HbA1c</li> <li>BP check</li> <li>ECG</li> <li>Cardiology referral for other tests (e.g., cardiac echo, coronary CT)</li></ul> <h5>Related research papers</h5> <a style="color: #E66439;" href="https://www.ncbi.nlm.nih.gov/pmc/articles/PMC9679264/">Immunoglobulin G N-Glycosylation Signatures in Incident Type 2 Diabetes and Cardiovascular Disease</a> <p style="margin: 0; font-size: 0.8rem; color: #09341FCC;">In the EPIC-Potsdam cohort, involving 2,175 participants in the cardiovascular disease (CVD) subcohort, which includes 417 cases of MI and CVA, changes in IgG glycosylation were analysed. This cohort comprised 61% females and 39% males, with an average age of 49. In male participants, an increase in G0 and B was observed, along with a decrease in G2 and S. A predictive model employing 2 specific glycan peaks was developed, demonstrating a hazard ratio (HR) of 1.60.</p>',x(t,"transform","translate(-50%)"),x($,"color",p[2]||p[3]?"#F2590D":"#12A195"),r(l,"class","summaryHeader svelte-yt1d5k"),r(d,"class","summaryBody svelte-yt1d5k"),r(e,"class","summaryMain svelte-yt1d5k")},m(y,b){k(y,e,b),n(e,l),n(l,t),i.m(t,null),n(l,o),n(l,u),n(u,$),n($,m),n(u,g),n(u,a),n(u,h),n(e,c),n(e,d)},p(y,b){f!==(f=v(y))&&(i.d(1),i=f(y),i&&(i.c(),i.m(t,null))),b&12&&s!==(s=y[2]?"Major overlap":y[3]?"Some overlap":"No significant overlap")&&B(m,s),b&12&&x($,"color",y[2]||y[3]?"#F2590D":"#12A195")},i:V,o:V,d(y){y&&q(e),i.d()}}}function de(p){let e,l,t,o,u,$=p[7]==="M"?"4":"1",s,m,g,a=p[2]?"Major overlap":p[3]?"Some overlap":"No significant overlap",h;function c(f,i){return f[2]||f[3]?he:ce}let d=c(p),v=d(p);return{c(){e=w("div"),l=w("div"),t=w("b"),o=A(p[9]),u=A("/"),s=A($),m=L(),v.c(),g=A(`
|
|
2
|
-
\xA0\xA0`),h=A(a),x(l,"padding-right","10px"),r(e,"class","header svelte-yt1d5k")},m(f,i){k(f,e,i),n(e,l),n(l,t),n(t,o),n(t,u),n(t,s),n(e,m),v.m(e,null),n(e,g),n(e,h)},p(f,i){i&512&&B(o,f[9]),i&128&&$!==($=f[7]==="M"?"4":"1")&&B(s,$),d!==(d=c(f))&&(v.d(1),v=d(f),v&&(v.c(),v.m(e,g))),i&12&&a!==(a=f[2]?"Major overlap":f[3]?"Some overlap":"No significant overlap")&&B(h,a)},i:V,o:V,d(f){f&&q(e),v.d()}}}function O(p){let e,l,t,o,u,$,s,m,g,a,h,c,d,v,f;return v=new H({props:{type:"right",percentile:p[8]}}),{c(){e=w("div"),l=w("div"),t=M("svg"),o=M("path"),$=L(),s=w("div"),m=w("div"),m.innerHTML="Glycan <b>Mature (G0)</b>",g=L(),a=w("div"),h=A(p[6]),c=L(),d=w("div"),S(v.$$.fragment),r(o,"fill",u=p[8]<=68?"#12A195":"#F2590D"),r(o,"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","24"),r(t,"height","24"),r(t,"viewBox","0 0 24 24"),x(s,"display","flex"),x(s,"flex-direction","column"),x(s,"padding-left","0.3rem"),r(l,"class","label svelte-yt1d5k"),x(l,"font-size","0.8rem"),x(d,"width","70%"),x(d,"display","flex"),x(d,"align-items","center"),r(e,"class","main svelte-yt1d5k")},m(i,y){k(i,e,y),n(e,l),n(l,t),n(t,o),n(l,$),n(l,s),n(s,m),n(s,g),n(s,a),n(a,h),n(e,c),n(e,d),z(v,d,null),f=!0},p(i,y){(!f||y&256&&u!==(u=i[8]<=68?"#12A195":"#F2590D"))&&r(o,"fill",u),(!f||y&64)&&B(h,i[6]);const b={};y&256&&(b.percentile=i[8]),v.$set(b)},i(i){f||(T(v.$$.fragment,i),f=!0)},o(i){Z(v.$$.fragment,i),f=!1},d(i){i&&q(e),F(v)}}}function Y(p){let e,l,t,o,u,$,s,m,g,a,h,c,d,v,f;return v=new H({props:{type:"left",percentile:p[8]}}),{c(){e=w("div"),l=w("div"),t=M("svg"),o=M("path"),$=L(),s=w("div"),m=w("div"),m.innerHTML="Glycan <b>Youth (G2)</b>",g=L(),a=w("div"),h=A(p[6]),c=L(),d=w("div"),S(v.$$.fragment),r(o,"fill",u=p[8]>=32?"#12A195":"#F2590D"),r(o,"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","24"),r(t,"height","24"),r(t,"viewBox","0 0 24 24"),x(s,"display","flex"),x(s,"flex-direction","column"),x(s,"padding-left","0.3rem"),r(l,"class","label svelte-yt1d5k"),x(l,"font-size","0.8rem"),x(d,"width","70%"),x(d,"display","flex"),x(d,"align-items","center"),r(e,"class","main svelte-yt1d5k")},m(i,y){k(i,e,y),n(e,l),n(l,t),n(t,o),n(l,$),n(l,s),n(s,m),n(s,g),n(s,a),n(a,h),n(e,c),n(e,d),z(v,d,null),f=!0},p(i,y){(!f||y&256&&u!==(u=i[8]>=32?"#12A195":"#F2590D"))&&r(o,"fill",u),(!f||y&64)&&B(h,i[6]);const b={};y&256&&(b.percentile=i[8]),v.$set(b)},i(i){f||(T(v.$$.fragment,i),f=!0)},o(i){Z(v.$$.fragment,i),f=!1},d(i){i&&q(e),F(v)}}}function J(p){let e,l,t,o,u,$,s,m,g,a,h,c,d,v,f;return v=new H({props:{type:"left",percentile:p[8]}}),{c(){e=w("div"),l=w("div"),t=M("svg"),o=M("path"),$=L(),s=w("div"),m=w("div"),m.innerHTML="Glycan <b>Shield (S)</b>",g=L(),a=w("div"),h=A(p[6]),c=L(),d=w("div"),S(v.$$.fragment),r(o,"fill",u=p[8]>=32?"#12A195":"#F2590D"),r(o,"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","24"),r(t,"height","24"),r(t,"viewBox","0 0 24 24"),x(s,"display","flex"),x(s,"flex-direction","column"),x(s,"padding-left","0.3rem"),r(l,"class","label svelte-yt1d5k"),x(l,"font-size","0.8rem"),x(d,"width","70%"),x(d,"display","flex"),x(d,"align-items","center"),r(e,"class","main svelte-yt1d5k")},m(i,y){k(i,e,y),n(e,l),n(l,t),n(t,o),n(l,$),n(l,s),n(s,m),n(s,g),n(s,a),n(a,h),n(e,c),n(e,d),z(v,d,null),f=!0},p(i,y){(!f||y&256&&u!==(u=i[8]>=32?"#12A195":"#F2590D"))&&r(o,"fill",u),(!f||y&64)&&B(h,i[6]);const b={};y&256&&(b.percentile=i[8]),v.$set(b)},i(i){f||(T(v.$$.fragment,i),f=!0)},o(i){Z(v.$$.fragment,i),f=!1},d(i){i&&q(e),F(v)}}}function K(p){let e,l,t,o,u,$,s,m,g,a,h,c,d,v,f;return v=new H({props:{type:"right",percentile:p[8]}}),{c(){e=w("div"),l=w("div"),t=M("svg"),o=M("path"),$=L(),s=w("div"),m=w("div"),m.innerHTML="Glycan <b>Lifestyle (B)</b>",g=L(),a=w("div"),h=A(p[6]),c=L(),d=w("div"),S(v.$$.fragment),r(o,"fill",u=p[8]<=68?"#12A195":"#F2590D"),r(o,"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","24"),r(t,"height","24"),r(t,"viewBox","0 0 24 24"),x(s,"display","flex"),x(s,"flex-direction","column"),x(s,"padding-left","0.3rem"),r(l,"class","label svelte-yt1d5k"),x(l,"font-size","0.8rem"),x(d,"width","70%"),x(d,"display","flex"),x(d,"align-items","center"),r(e,"class","main svelte-yt1d5k")},m(i,y){k(i,e,y),n(e,l),n(l,t),n(t,o),n(l,$),n(l,s),n(s,m),n(s,g),n(s,a),n(a,h),n(e,c),n(e,d),z(v,d,null),f=!0},p(i,y){(!f||y&256&&u!==(u=i[8]<=68?"#12A195":"#F2590D"))&&r(o,"fill",u),(!f||y&64)&&B(h,i[6]);const b={};y&256&&(b.percentile=i[8]),v.$set(b)},i(i){f||(T(v.$$.fragment,i),f=!0)},o(i){Z(v.$$.fragment,i),f=!1},d(i){i&&q(e),F(v)}}}function Q(p){let e,l,t,o,u,$,s,m,g,a,h,c,d,v,f;return v=new H({props:{type:"left",percentile:p[8]}}),{c(){e=w("div"),l=w("div"),t=M("svg"),o=M("path"),$=L(),s=w("div"),m=w("div"),m.innerHTML="Peak <b>22 (P22)</b>",g=L(),a=w("div"),h=A(p[6]),c=L(),d=w("div"),S(v.$$.fragment),r(o,"fill",u=p[8]>=32?"#12A195":"#F2590D"),r(o,"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","24"),r(t,"height","24"),r(t,"viewBox","0 0 24 24"),x(s,"display","flex"),x(s,"flex-direction","column"),x(s,"padding-left","0.3rem"),r(l,"class","label svelte-yt1d5k"),x(l,"font-size","0.8rem"),x(d,"width","70%"),x(d,"display","flex"),x(d,"align-items","center"),r(e,"class","main svelte-yt1d5k")},m(i,y){k(i,e,y),n(e,l),n(l,t),n(t,o),n(l,$),n(l,s),n(s,m),n(s,g),n(s,a),n(a,h),n(e,c),n(e,d),z(v,d,null),f=!0},p(i,y){(!f||y&256&&u!==(u=i[8]>=32?"#12A195":"#F2590D"))&&r(o,"fill",u),(!f||y&64)&&B(h,i[6]);const b={};y&256&&(b.percentile=i[8]),v.$set(b)},i(i){f||(T(v.$$.fragment,i),f=!0)},o(i){Z(v.$$.fragment,i),f=!1},d(i){i&&q(e),F(v)}}}function oe(p){let e,l;return{c(){e=M("svg"),l=M("path"),r(l,"fill","#12A195"),r(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"),r(e,"xmlns","http://www.w3.org/2000/svg"),r(e,"width","50"),r(e,"height","50"),r(e,"viewBox","0 0 24 24")},m(t,o){k(t,e,o),n(e,l)},d(t){t&&q(e)}}}function me(p){let e,l;return{c(){e=M("svg"),l=M("path"),r(l,"fill","#F2590D"),r(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"),r(e,"xmlns","http://www.w3.org/2000/svg"),r(e,"width","50"),r(e,"height","50"),r(e,"viewBox","0 0 24 24")},m(t,o){k(t,e,o),n(e,l)},d(t){t&&q(e)}}}function ce(p){let e,l;return{c(){e=M("svg"),l=M("path"),r(l,"fill","#12A195"),r(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"),r(e,"xmlns","http://www.w3.org/2000/svg"),r(e,"width","24"),r(e,"height","24"),r(e,"viewBox","0 0 24 24")},m(t,o){k(t,e,o),n(e,l)},d(t){t&&q(e)}}}function he(p){let e,l;return{c(){e=M("svg"),l=M("path"),r(l,"fill","#F2590D"),r(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"),r(e,"xmlns","http://www.w3.org/2000/svg"),r(e,"width","24"),r(e,"height","24"),r(e,"viewBox","0 0 24 24")},m(t,o){k(t,e,o),n(e,l)},d(t){t&&q(e)}}}function pe(p){let e,l,t,o,u,$;const s=[de,ae,re],m=[];function g(a,h){return a[0]==="header"&&a[5]?0:a[0]==="summary"&&a[4]?1:2}return t=g(p),o=m[t]=s[t](p),{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(),o.c(),u=E()},m(a,h){k(a,e,h),k(a,l,h),m[t].m(a,h),k(a,u,h),$=!0},p(a,[h]){let c=t;t=g(a),t===c?m[t].p(a,h):(C(),Z(m[c],1,1,()=>{m[c]=null}),G(),o=m[t],o?o.p(a,h):(o=m[t]=s[t](a),o.c()),T(o,1),o.m(u.parentNode,u))},i(a){$||(T(o),$=!0)},o(a){Z(o),$=!1},d(a){a&&(q(e),q(l),q(u)),m[t].d(a)}}}function ve(p,e,l){let{report:t}=e,{type:o}=e,{subtype:u}=e,{service:$=window.GaReportService}=e,s=[{name:"peak",csvName:"P22percentile"},{name:"mature",csvName:"G0percentile"},{name:"youth",csvName:"G2percentile"},{name:"shield",csvName:"Spercentile"},{name:"lifestyle",csvName:"Bpercentile"}],m,g=!1,a=!1,h=!1,c=!1,d="",v="",f=0,i=0,y=0,b=0,R=0,I=0,N=0;function W(){if(v==="F"){f>68&&l(9,N++,N);return}i<32&&l(9,N++,N),y<32&&l(9,N++,N),b<32&&l(9,N++,N),R>68&&l(9,N++,N)}const j=s.find(D=>D.name===u);return ie(async()=>{m=await $.getReport(t),j&&(l(8,I=Number(m[j.csvName])),l(6,d=ne(I)),l(7,v=m.sex)),f=Number(m.P22percentile),i=Number(m.G0percentile),y=Number(m.G2percentile),b=Number(m.Spercentile),R=Number(m.Bpercentile),W(),v==="F"?N===1&&l(2,g=!0):(N===4&&l(2,g=!0),N===3&&l(3,a=!0)),l(5,c=!0),l(4,h=!0)}),p.$$set=D=>{"report"in D&&l(10,t=D.report),"type"in D&&l(0,o=D.type),"subtype"in D&&l(1,u=D.subtype),"service"in D&&l(11,$=D.service)},[o,u,g,a,h,c,d,v,I,N,t,$]}class U extends _{constructor(e){super(),ee(this,e,ve,pe,le,{report:10,type:0,subtype:1,service:11},se)}get report(){return this.$$.ctx[10]}set report(e){this.$$set({report:e}),P()}get type(){return this.$$.ctx[0]}set type(e){this.$$set({type:e}),P()}get subtype(){return this.$$.ctx[1]}set subtype(e){this.$$set({subtype:e}),P()}get service(){return this.$$.ctx[11]}set service(e){this.$$set({service:e}),P()}}customElements.define("ga-myocardial",X(U,{report:{},type:{},subtype:{},service:{}},[],[],!0));export{U as default};
|
|
2
|
+
\xA0\xA0`),h=A(a),x(l,"padding-right","10px"),r(e,"class","header svelte-yt1d5k")},m(f,i){k(f,e,i),n(e,l),n(l,t),n(t,o),n(t,u),n(t,s),n(e,m),v.m(e,null),n(e,g),n(e,h)},p(f,i){i&512&&B(o,f[9]),i&128&&$!==($=f[7]==="M"?"4":"1")&&B(s,$),d!==(d=c(f))&&(v.d(1),v=d(f),v&&(v.c(),v.m(e,g))),i&12&&a!==(a=f[2]?"Major overlap":f[3]?"Some overlap":"No significant overlap")&&B(h,a)},i:V,o:V,d(f){f&&q(e),v.d()}}}function O(p){let e,l,t,o,u,$,s,m,g,a,h,c,d,v,f;return v=new H({props:{type:"right",percentile:p[8]}}),{c(){e=w("div"),l=w("div"),t=M("svg"),o=M("path"),$=L(),s=w("div"),m=w("div"),m.innerHTML="Glycan <b>Mature (G0)</b>",g=L(),a=w("div"),h=A(p[6]),c=L(),d=w("div"),S(v.$$.fragment),r(o,"fill",u=p[8]<=68?"#12A195":"#F2590D"),r(o,"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","24"),r(t,"height","24"),r(t,"viewBox","0 0 24 24"),x(s,"display","flex"),x(s,"flex-direction","column"),x(s,"padding-left","0.3rem"),r(l,"class","label svelte-yt1d5k"),x(l,"font-size","0.8rem"),x(d,"width","70%"),x(d,"display","flex"),x(d,"align-items","center"),r(e,"class","main svelte-yt1d5k")},m(i,y){k(i,e,y),n(e,l),n(l,t),n(t,o),n(l,$),n(l,s),n(s,m),n(s,g),n(s,a),n(a,h),n(e,c),n(e,d),z(v,d,null),f=!0},p(i,y){(!f||y&256&&u!==(u=i[8]<=68?"#12A195":"#F2590D"))&&r(o,"fill",u),(!f||y&64)&&B(h,i[6]);const b={};y&256&&(b.percentile=i[8]),v.$set(b)},i(i){f||(T(v.$$.fragment,i),f=!0)},o(i){Z(v.$$.fragment,i),f=!1},d(i){i&&q(e),F(v)}}}function Y(p){let e,l,t,o,u,$,s,m,g,a,h,c,d,v,f;return v=new H({props:{type:"left",percentile:p[8]}}),{c(){e=w("div"),l=w("div"),t=M("svg"),o=M("path"),$=L(),s=w("div"),m=w("div"),m.innerHTML="Glycan <b>Youth (G2)</b>",g=L(),a=w("div"),h=A(p[6]),c=L(),d=w("div"),S(v.$$.fragment),r(o,"fill",u=p[8]>=32?"#12A195":"#F2590D"),r(o,"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","24"),r(t,"height","24"),r(t,"viewBox","0 0 24 24"),x(s,"display","flex"),x(s,"flex-direction","column"),x(s,"padding-left","0.3rem"),r(l,"class","label svelte-yt1d5k"),x(l,"font-size","0.8rem"),x(d,"width","70%"),x(d,"display","flex"),x(d,"align-items","center"),r(e,"class","main svelte-yt1d5k")},m(i,y){k(i,e,y),n(e,l),n(l,t),n(t,o),n(l,$),n(l,s),n(s,m),n(s,g),n(s,a),n(a,h),n(e,c),n(e,d),z(v,d,null),f=!0},p(i,y){(!f||y&256&&u!==(u=i[8]>=32?"#12A195":"#F2590D"))&&r(o,"fill",u),(!f||y&64)&&B(h,i[6]);const b={};y&256&&(b.percentile=i[8]),v.$set(b)},i(i){f||(T(v.$$.fragment,i),f=!0)},o(i){Z(v.$$.fragment,i),f=!1},d(i){i&&q(e),F(v)}}}function J(p){let e,l,t,o,u,$,s,m,g,a,h,c,d,v,f;return v=new H({props:{type:"left",percentile:p[8]}}),{c(){e=w("div"),l=w("div"),t=M("svg"),o=M("path"),$=L(),s=w("div"),m=w("div"),m.innerHTML="Glycan <b>Shield (S)</b>",g=L(),a=w("div"),h=A(p[6]),c=L(),d=w("div"),S(v.$$.fragment),r(o,"fill",u=p[8]>=32?"#12A195":"#F2590D"),r(o,"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","24"),r(t,"height","24"),r(t,"viewBox","0 0 24 24"),x(s,"display","flex"),x(s,"flex-direction","column"),x(s,"padding-left","0.3rem"),r(l,"class","label svelte-yt1d5k"),x(l,"font-size","0.8rem"),x(d,"width","70%"),x(d,"display","flex"),x(d,"align-items","center"),r(e,"class","main svelte-yt1d5k")},m(i,y){k(i,e,y),n(e,l),n(l,t),n(t,o),n(l,$),n(l,s),n(s,m),n(s,g),n(s,a),n(a,h),n(e,c),n(e,d),z(v,d,null),f=!0},p(i,y){(!f||y&256&&u!==(u=i[8]>=32?"#12A195":"#F2590D"))&&r(o,"fill",u),(!f||y&64)&&B(h,i[6]);const b={};y&256&&(b.percentile=i[8]),v.$set(b)},i(i){f||(T(v.$$.fragment,i),f=!0)},o(i){Z(v.$$.fragment,i),f=!1},d(i){i&&q(e),F(v)}}}function K(p){let e,l,t,o,u,$,s,m,g,a,h,c,d,v,f;return v=new H({props:{type:"right",percentile:p[8]}}),{c(){e=w("div"),l=w("div"),t=M("svg"),o=M("path"),$=L(),s=w("div"),m=w("div"),m.innerHTML="Glycan <b>Lifestyle (B)</b>",g=L(),a=w("div"),h=A(p[6]),c=L(),d=w("div"),S(v.$$.fragment),r(o,"fill",u=p[8]<=68?"#12A195":"#F2590D"),r(o,"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","24"),r(t,"height","24"),r(t,"viewBox","0 0 24 24"),x(s,"display","flex"),x(s,"flex-direction","column"),x(s,"padding-left","0.3rem"),r(l,"class","label svelte-yt1d5k"),x(l,"font-size","0.8rem"),x(d,"width","70%"),x(d,"display","flex"),x(d,"align-items","center"),r(e,"class","main svelte-yt1d5k")},m(i,y){k(i,e,y),n(e,l),n(l,t),n(t,o),n(l,$),n(l,s),n(s,m),n(s,g),n(s,a),n(a,h),n(e,c),n(e,d),z(v,d,null),f=!0},p(i,y){(!f||y&256&&u!==(u=i[8]<=68?"#12A195":"#F2590D"))&&r(o,"fill",u),(!f||y&64)&&B(h,i[6]);const b={};y&256&&(b.percentile=i[8]),v.$set(b)},i(i){f||(T(v.$$.fragment,i),f=!0)},o(i){Z(v.$$.fragment,i),f=!1},d(i){i&&q(e),F(v)}}}function Q(p){let e,l,t,o,u,$,s,m,g,a,h,c,d,v,f;return v=new H({props:{type:"left",percentile:p[8]}}),{c(){e=w("div"),l=w("div"),t=M("svg"),o=M("path"),$=L(),s=w("div"),m=w("div"),m.innerHTML="Peak <b>22 (P22)</b>",g=L(),a=w("div"),h=A(p[6]),c=L(),d=w("div"),S(v.$$.fragment),r(o,"fill",u=p[8]>=32?"#12A195":"#F2590D"),r(o,"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","24"),r(t,"height","24"),r(t,"viewBox","0 0 24 24"),x(s,"display","flex"),x(s,"flex-direction","column"),x(s,"padding-left","0.3rem"),r(l,"class","label svelte-yt1d5k"),x(l,"font-size","0.8rem"),x(d,"width","70%"),x(d,"display","flex"),x(d,"align-items","center"),r(e,"class","main svelte-yt1d5k")},m(i,y){k(i,e,y),n(e,l),n(l,t),n(t,o),n(l,$),n(l,s),n(s,m),n(s,g),n(s,a),n(a,h),n(e,c),n(e,d),z(v,d,null),f=!0},p(i,y){(!f||y&256&&u!==(u=i[8]>=32?"#12A195":"#F2590D"))&&r(o,"fill",u),(!f||y&64)&&B(h,i[6]);const b={};y&256&&(b.percentile=i[8]),v.$set(b)},i(i){f||(T(v.$$.fragment,i),f=!0)},o(i){Z(v.$$.fragment,i),f=!1},d(i){i&&q(e),F(v)}}}function oe(p){let e,l;return{c(){e=M("svg"),l=M("path"),r(l,"fill","#12A195"),r(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"),r(e,"xmlns","http://www.w3.org/2000/svg"),r(e,"width","50"),r(e,"height","50"),r(e,"viewBox","0 0 24 24")},m(t,o){k(t,e,o),n(e,l)},d(t){t&&q(e)}}}function me(p){let e,l;return{c(){e=M("svg"),l=M("path"),r(l,"fill","#F2590D"),r(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"),r(e,"xmlns","http://www.w3.org/2000/svg"),r(e,"width","50"),r(e,"height","50"),r(e,"viewBox","0 0 24 24")},m(t,o){k(t,e,o),n(e,l)},d(t){t&&q(e)}}}function ce(p){let e,l;return{c(){e=M("svg"),l=M("path"),r(l,"fill","#12A195"),r(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"),r(e,"xmlns","http://www.w3.org/2000/svg"),r(e,"width","24"),r(e,"height","24"),r(e,"viewBox","0 0 24 24")},m(t,o){k(t,e,o),n(e,l)},d(t){t&&q(e)}}}function he(p){let e,l;return{c(){e=M("svg"),l=M("path"),r(l,"fill","#F2590D"),r(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"),r(e,"xmlns","http://www.w3.org/2000/svg"),r(e,"width","24"),r(e,"height","24"),r(e,"viewBox","0 0 24 24")},m(t,o){k(t,e,o),n(e,l)},d(t){t&&q(e)}}}function pe(p){let e,l,t,o,u,$;const s=[de,ae,re],m=[];function g(a,h){return a[0]==="header"&&a[5]?0:a[0]==="summary"&&a[4]?1:2}return t=g(p),o=m[t]=s[t](p),{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(),o.c(),u=E()},m(a,h){k(a,e,h),k(a,l,h),m[t].m(a,h),k(a,u,h),$=!0},p(a,[h]){let c=t;t=g(a),t===c?m[t].p(a,h):(C(),Z(m[c],1,1,()=>{m[c]=null}),G(),o=m[t],o?o.p(a,h):(o=m[t]=s[t](a),o.c()),T(o,1),o.m(u.parentNode,u))},i(a){$||(T(o),$=!0)},o(a){Z(o),$=!1},d(a){a&&(q(e),q(l),q(u)),m[t].d(a)}}}function ve(p,e,l){let{report:t}=e,{type:o}=e,{subtype:u}=e,{service:$=window.GaReportService}=e,s=[{name:"peak",csvName:"P22percentile"},{name:"mature",csvName:"G0percentile"},{name:"youth",csvName:"G2percentile"},{name:"shield",csvName:"Spercentile"},{name:"lifestyle",csvName:"Bpercentile"}],m,g=!1,a=!1,h=!1,c=!1,d="",v="",f=0,i=0,y=0,b=0,R=0,I=0,N=0;function W(){if(v==="F"){f<32&&l(9,N++,N);return}i>68&&l(9,N++,N),y<32&&l(9,N++,N),b<32&&l(9,N++,N),R>68&&l(9,N++,N)}const j=s.find(D=>D.name===u);return ie(async()=>{m=await $.getReport(t),l(7,v=m.sex),j&&(l(8,I=Number(m[j.csvName])),l(6,d=ne(I))),f=Number(m.P22percentile),i=Number(m.G0percentile),y=Number(m.G2percentile),b=Number(m.Spercentile),R=Number(m.Bpercentile),W(),v==="F"?N===1&&l(2,g=!0):(N===4&&l(2,g=!0),N===3&&l(3,a=!0)),l(5,c=!0),l(4,h=!0)}),p.$$set=D=>{"report"in D&&l(10,t=D.report),"type"in D&&l(0,o=D.type),"subtype"in D&&l(1,u=D.subtype),"service"in D&&l(11,$=D.service)},[o,u,g,a,h,c,d,v,I,N,t,$]}class U extends _{constructor(e){super(),ee(this,e,ve,pe,le,{report:10,type:0,subtype:1,service:11},se)}get report(){return this.$$.ctx[10]}set report(e){this.$$set({report:e}),P()}get type(){return this.$$.ctx[0]}set type(e){this.$$set({type:e}),P()}get subtype(){return this.$$.ctx[1]}set subtype(e){this.$$set({subtype:e}),P()}get service(){return this.$$.ctx[11]}set service(e){this.$$set({service:e}),P()}}customElements.define("ga-myocardial",X(U,{report:{},type:{},subtype:{},service:{}},[],[],!0));export{U as default};
|