@glycanage/web-components 1.38.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/Arrow.js +1 -1
- package/dist/arthritis.wc.js +2 -12
- package/dist/atherosclerosis.wc.js +1 -1
- package/dist/chronic.wc.js +1 -1
- package/dist/colitis.wc.js +2 -14
- package/dist/colorectal.wc.js +2 -2
- package/dist/copd.wc.js +2 -9
- package/dist/coronary.wc.js +2 -15
- package/dist/crohn.wc.js +2 -12
- package/dist/diabetes.wc.js +2 -16
- package/dist/dyslipidemia.wc.js +2 -14
- package/dist/endometrial.wc.js +7 -7
- package/dist/helpers.js +1 -1
- package/dist/hypertension-risk.wc.js +1 -1
- package/dist/hypertension.wc.js +2 -2
- package/dist/index2.js +1 -1
- package/dist/lupus.wc.js +2 -12
- package/dist/menopause.wc.js +2 -18
- package/dist/myocardial.wc.js +2 -2
- package/dist/ovarian.wc.js +4 -4
- package/dist/pre-hypertension.wc.js +1 -1
- package/package.json +1 -1
package/dist/copd.wc.js
CHANGED
|
@@ -1,9 +1,2 @@
|
|
|
1
|
-
import{c as
|
|
2
|
-
|
|
3
|
-
COPD umbrella, and rule out other lung problems.`,h(l,"width","10%"),h(l,"padding-left","1.5rem"),h(l,"padding-right","1rem"),h(s,"width","90%"),a(i,"class","summaryHeader svelte-ahgrf3"),h(i,"border-radius","8px 8px 0 0"),h(i,"background-color",g[15]()),h(i,"border-bottom","2px solid "+g[14]()),h(w,"font-size","1.2rem"),h(w,"padding-bottom","1rem"),h(k,"font-size","0.7rem"),h(k,"padding-bottom","0.4rem"),h(F,"font-size","0.7rem"),h(F,"padding-bottom","0.4rem"),h(H,"font-size","0.7rem"),h(H,"padding-bottom","0.4rem"),h(L,"font-size","1.2rem"),h(L,"padding-top","1.2rem"),h(L,"padding-bottom","1rem"),h(T,"font-size","0.7rem"),h(T,"padding-bottom","0.4rem"),h(X,"font-size","0.7rem"),h(X,"padding-bottom","0.4rem"),h(V,"font-size","0.7rem"),h(V,"padding-bottom","0.4rem"),h(j,"font-size","0.7rem"),h(j,"padding-bottom","0.4rem"),a(v,"class","summaryBody svelte-ahgrf3"),h(v,"background-color",g[16]()),a(t,"class","summaryMain svelte-ahgrf3"),h(t,"border","2px solid "+g[14]())},m(G,Q){u(G,t,Q),e(t,i),e(i,l),z&&z.m(l,null),e(l,o),C&&C.m(l,null),e(i,r),e(i,s),e(s,d),e(s,m),e(s,p),e(s,M),e(s,D),e(t,q),e(t,v),e(v,w),e(v,P),e(v,k),e(v,B),e(v,F),e(v,Z),e(v,H),e(v,A),e(v,L),e(v,O),e(v,T),e(v,$),e(v,X),e(v,U),e(v,V),e(v,I),e(v,j)},p(G,Q){G[9]?z||(z=Me(),z.c(),z.m(l,o)):z&&(z.d(1),z=null),G[10]?C||(C=Ge(),C.c(),C.m(l,null)):C&&(C.d(1),C=null)},d(G){G&&f(t),z&&z.d(),C&&C.d()}}}function We(g){let t;return{c(){t=n("div"),t.innerHTML=`<div class="summaryHeader svelte-ahgrf3" 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
|
|
4
|
-
COPD patients.</div></div> <div class="summaryBody svelte-ahgrf3" style="opacity: 0.35;"><div style="font-size: 1.2rem; padding-bottom: 1rem;">Symptoms to check for:</div> <div style="font-size: 0.7rem; padding-bottom: 0.4rem;">Difficulty breathing due to airflow restriction.</div> <div style="font-size: 0.7rem; padding-bottom: 0.4rem;">Chronic cough, sometimes productive, with phelgm.</div> <div style="font-size: 0.7rem; padding-bottom: 0.4rem;">Fatigue.</div> <div style="font-size: 1.2rem; padding-top: 1.2rem;padding-bottom: 1rem;">Possible follow-up tests:</div> <div style="font-size: 0.7rem; padding-bottom: 0.4rem;"><b>Spirometry:</b> Produces an obstructive picture with FVC under 70% <br/>
|
|
5
|
-
Severity graded based on FEV1</div> <div style="font-size: 0.7rem; padding-bottom: 0.4rem;"><b>Blood tests:</b> Full blood count to check for polycythaemia.</div> <div style="font-size: 0.7rem; padding-bottom: 0.4rem;"><b>ECG:</b> Checking for signs of right atrial and ventricular hypertrophy.</div> <div style="font-size: 0.7rem; padding-bottom: 0.4rem;"><b>Chest X-Ray (CXR):</b> Classic signs include hyperinflation, flat <br/>
|
|
6
|
-
hemidiaphragms, loss of peripheral markings, and bullae.</div></div>`,a(t,"class","summaryMain svelte-ahgrf3")},m(i,l){u(i,t,l)},p:Ce,d(i){i&&f(t)}}}function Me(g){let t,i;return{c(){t=S("svg"),i=S("path"),a(i,"fill","#CC0000"),a(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"),a(t,"xmlns","http://www.w3.org/2000/svg"),a(t,"width","50"),a(t,"height","50"),a(t,"viewBox","0 0 24 24")},m(l,o){u(l,t,o),e(t,i)},d(l){l&&f(t)}}}function Ge(g){let t,i;return{c(){t=S("svg"),i=S("path"),a(i,"fill","#EE9933"),a(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"),a(t,"xmlns","http://www.w3.org/2000/svg"),a(t,"width","50"),a(t,"height","50"),a(t,"viewBox","0 0 24 24")},m(l,o){u(l,t,o),e(t,i)},d(l){l&&f(t)}}}function Re(g){let t,i,l,o,r,s,d;return{c(){t=n("div"),i=n("b"),l=b(g[13]),o=c(),r=S("svg"),s=S("path"),d=b(`
|
|
7
|
-
\xA0 Some overlap`),h(t,"padding-right","10px"),a(s,"fill","#F2590D"),a(s,"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"),a(r,"xmlns","http://www.w3.org/2000/svg"),a(r,"width","24"),a(r,"height","24"),a(r,"viewBox","0 0 24 24")},m(m,p){u(m,t,p),e(t,i),e(i,l),u(m,o,p),u(m,r,p),e(r,s),u(m,d,p)},p(m,p){p&8192&&N(l,m[13])},d(m){m&&(f(t),f(o),f(r),f(d))}}}function Ee(g){let t,i,l,o,r,s,d;return{c(){t=n("div"),i=n("b"),l=b(g[13]),o=c(),r=S("svg"),s=S("path"),d=b(`
|
|
8
|
-
\xA0 Minor overlap`),h(t,"padding-right","10px"),a(s,"fill","#FFAA00"),a(s,"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"),a(r,"xmlns","http://www.w3.org/2000/svg"),a(r,"width","24"),a(r,"height","24"),a(r,"viewBox","0 0 24 24")},m(m,p){u(m,t,p),e(t,i),e(i,l),u(m,o,p),u(m,r,p),e(r,s),u(m,d,p)},p(m,p){p&8192&&N(l,m[13])},d(m){m&&(f(t),f(o),f(r),f(d))}}}function Se(g){let t,i,l,o,r,s,d;return{c(){t=n("div"),i=n("b"),l=b(g[13]),o=c(),r=S("svg"),s=S("path"),d=b(`
|
|
9
|
-
\xA0 No significant overlap`),h(t,"padding-right","10px"),a(s,"fill","#12A195"),a(s,"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"),a(r,"xmlns","http://www.w3.org/2000/svg"),a(r,"width","24"),a(r,"height","24"),a(r,"viewBox","0 0 24 24")},m(m,p){u(m,t,p),e(t,i),e(i,l),u(m,o,p),u(m,r,p),e(r,s),u(m,d,p)},p(m,p){p&8192&&N(l,m[13])},d(m){m&&(f(t),f(o),f(r),f(d))}}}function et(g){let t,i,l;function o(d,m){return d[0]==="header"?Je:d[0]==="summary"?Ue:Ke}let r=o(g),s=r(g);return{c(){t=n("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=c(),s.c(),l=ze()},m(d,m){u(d,t,m),u(d,i,m),s.m(d,m),u(d,l,m)},p(d,[m]){r===(r=o(d))&&s?s.p(d,m):(s.d(1),s=r(d),s&&(s.c(),s.m(l.parentNode,l)))},i:Ce,o:Ce,d(d){d&&(f(t),f(i),f(l)),s.d(d)}}}function tt(g,t,i){let{language:l}=t,{report:o}=t,{type:r}=t,{service:s=window.GaReportService}=t,d,m=0,p=0,M=0,D=0,q=0,v=0,w=0,P=0,k=!1,B=!1,F=!1,Z=!1,H="";function A(){return k?"#CC0000":B?"#EE9933":"#00AA44"}function L(){return k?"rgba(204,0,0,0.15)":B?"rgba(238,153,51,0.15)":"rgba(0,170,68,0.15)"}function O(){return k?"rgba(204,0,0,0.05)":B?"rgba(238,153,51,0.05)":"rgba(0,170,68,0.05)"}function T(){return k?"some overlap":B?"a minor overlap":"no significant overlap"}return _e(async()=>{if(d=await s.getReport(o),i(1,m=Number(d.G1xmin)),i(2,p=Number(d.G1xmax)),i(3,M=Number(d.G1yourscore)),i(4,D=Number(d.G1percentile)),i(5,q=Number(d.Bxmin)),i(6,v=Number(d.Bxmax)),i(7,w=Number(d.Byourscore)),i(8,P=Number(d.Bpercentile)),D<50&&P>50){i(13,H="2/2"),i(9,k=!0),i(12,Z=!0);return}if(D<50||P>50){i(13,H="1/2"),i(10,B=!0),i(12,Z=!0);return}i(13,H="0/2"),i(11,F=!0),i(12,Z=!0)}),g.$$set=$=>{"language"in $&&i(18,l=$.language),"report"in $&&i(19,o=$.report),"type"in $&&i(0,r=$.type),"service"in $&&i(20,s=$.service)},[r,m,p,M,D,q,v,w,P,k,B,F,Z,H,A,L,O,T,l,o,s]}class qe extends Ve{constructor(t){super(),je(this,t,tt,et,Xe,{language:18,report:19,type:0,service:20},Ie)}get language(){return this.$$.ctx[18]}set language(t){this.$$set({language:t}),ae()}get report(){return this.$$.ctx[19]}set report(t){this.$$set({report:t}),ae()}get type(){return this.$$.ctx[0]}set type(t){this.$$set({type:t}),ae()}get service(){return this.$$.ctx[20]}set service(t){this.$$set({service:t}),ae()}}customElements.define("ga-copd",Oe(qe,{language:{},report:{},type:{},service:{}},[],[],!0));export{qe as default};
|
|
1
|
+
import{c as I,S as _,i as X,f as S,s as J,a as K,e as f,b as D,d as z,g as L,t as N,h as B,j as Z,k as T,o as Q,l as A,m as C,n as x,p as n,q as r,r as F,u as G,v as k,w as M,x as P,y as j}from"./index2.js";import{A as H}from"./Arrow.js";import{g as U}from"./helpers.js";function W(d){K(d,"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 Y(d){let e,t,l,i=d[1]==="mature"&&R(d),s=d[1]==="shield"&&V(d);return{c(){i&&i.c(),e=D(),s&&s.c(),t=z()},m(a,o){i&&i.m(a,o),L(a,e,o),s&&s.m(a,o),L(a,t,o),l=!0},p(a,o){a[1]==="mature"?i?(i.p(a,o),o&2&&Z(i,1)):(i=R(a),i.c(),Z(i,1),i.m(e.parentNode,e)):i&&(A(),N(i,1,1,()=>{i=null}),B()),a[1]==="shield"?s?(s.p(a,o),o&2&&Z(s,1)):(s=V(a),s.c(),Z(s,1),s.m(t.parentNode,t)):s&&(A(),N(s,1,1,()=>{s=null}),B())},i(a){l||(Z(i),Z(s),l=!0)},o(a){N(i),N(s),l=!1},d(a){a&&(T(e),T(t)),i&&i.d(a),s&&s.d(a)}}}function ee(d){let e,t,l,i,s,a,o=d[2]?"Major overlap":d[3]?"Some overlap":"No significant overlap",u,b,c,v,y,h;function g(m,$){return m[2]||m[3]?ie:le}let w=g(d),p=w(d);return{c(){e=f("div"),t=f("div"),l=f("div"),p.c(),i=D(),s=f("div"),a=f("b"),u=C(o),b=C(" of glycan indexes between "),c=f("br"),v=C(" your patient and this condition."),y=D(),h=f("div"),h.innerHTML='<h5>Signs and symptoms</h5> <ul style="font-size: 0.8rem;"><li>Difficulty breathing</li> <li>Chronic cough (\xB1 productive)</li> <li>Fatigue</li></ul> <h5>Possible follow-up</h5> <ul style="font-size: 0.8rem;"><li>Blood tests: full blood count</li> <li>Spirometry</li> <li>ECG, chest X-ray</li></ul> <h5>Related research papers</h5> <a style="color: #E66439;" href="https://translational-medicine.biomedcentral.com/articles/10.1186/s12967-018-1695-0">N-glycosylation patterns of plasma proteins and immunoglobulin G in chronic obstructive pulmonary disease</a> <p style="margin: 0; font-size: 0.8rem; color: #09341FCC;">In a Croatian study focusing on COPD, researchers analyzed IgG glycosylation in 137 COPD patients and 95 controls in the discovery cohort, and 61 COPD patients and 148 controls in a replication cohort from another medical center. The discovery cohort included 97 female participants (42%), while the replication cohort had 116 females (56%). The study observed a decrease in G1 and an increase in B glycan structures in COPD patients. <br/><br/> For those who want to know more: <br/><br/> The analysis also revealed that N-glycans could distinguish between different COPD stages according to GOLD guidelines, with more complex glycan structures becoming relatively more abundant as the disease advanced. The study also noted significant associations between glycans and the frequency of COPD exacerbations and highlighted the impact of smoking, a major risk factor for COPD, on glycan compositions.</p>',x(l,"transform","translate(-50%)"),x(a,"color",d[2]||d[3]?"#F2590D":"#12A195"),n(t,"class","summaryHeader svelte-yt1d5k"),n(h,"class","summaryBody svelte-yt1d5k"),n(e,"class","summaryMain svelte-yt1d5k")},m(m,$){L(m,e,$),r(e,t),r(t,l),p.m(l,null),r(t,i),r(t,s),r(s,a),r(a,u),r(s,b),r(s,c),r(s,v),r(e,y),r(e,h)},p(m,$){w!==(w=g(m))&&(p.d(1),p=w(m),p&&(p.c(),p.m(l,null))),$&12&&o!==(o=m[2]?"Major overlap":m[3]?"Some overlap":"No significant overlap")&&F(u,o),$&12&&x(a,"color",m[2]||m[3]?"#F2590D":"#12A195")},i:G,o:G,d(m){m&&T(e),p.d()}}}function te(d){let e,t,l,i,s,a,o,u=d[2]?"Major overlap":d[3]?"Some overlap":"No significant overlap",b;function c(h,g){return h[2]||h[3]?ne:se}let v=c(d),y=v(d);return{c(){e=f("div"),t=f("div"),l=f("b"),i=C(d[8]),s=C("/2"),a=D(),y.c(),o=C(`
|
|
2
|
+
\xA0\xA0`),b=C(u),x(t,"padding-right","10px"),n(e,"class","header svelte-yt1d5k")},m(h,g){L(h,e,g),r(e,t),r(t,l),r(l,i),r(l,s),r(e,a),y.m(e,null),r(e,o),r(e,b)},p(h,g){g&256&&F(i,h[8]),v!==(v=c(h))&&(y.d(1),y=v(h),y&&(y.c(),y.m(e,o))),g&12&&u!==(u=h[2]?"Major overlap":h[3]?"Some overlap":"No significant overlap")&&F(b,u)},i:G,o:G,d(h){h&&T(e),y.d()}}}function R(d){let e,t,l,i,s,a,o,u,b,c,v,y,h,g,w;return g=new H({props:{type:"right",percentile:d[7]}}),{c(){e=f("div"),t=f("div"),l=k("svg"),i=k("path"),a=D(),o=f("div"),u=f("div"),u.innerHTML="Glycan <b>Mature (G0)</b>",b=D(),c=f("div"),v=C(d[6]),y=D(),h=f("div"),M(g.$$.fragment),n(i,"fill",s=d[7]<=68?"#12A195":"#F2590D"),n(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"),n(l,"xmlns","http://www.w3.org/2000/svg"),n(l,"width","24"),n(l,"height","24"),n(l,"viewBox","0 0 24 24"),x(o,"display","flex"),x(o,"flex-direction","column"),x(o,"padding-left","0.3rem"),n(t,"class","label svelte-yt1d5k"),x(t,"font-size","0.8rem"),x(h,"width","70%"),x(h,"display","flex"),x(h,"align-items","center"),n(e,"class","main svelte-yt1d5k")},m(p,m){L(p,e,m),r(e,t),r(t,l),r(l,i),r(t,a),r(t,o),r(o,u),r(o,b),r(o,c),r(c,v),r(e,y),r(e,h),P(g,h,null),w=!0},p(p,m){(!w||m&128&&s!==(s=p[7]<=68?"#12A195":"#F2590D"))&&n(i,"fill",s),(!w||m&64)&&F(v,p[6]);const $={};m&128&&($.percentile=p[7]),g.$set($)},i(p){w||(Z(g.$$.fragment,p),w=!0)},o(p){N(g.$$.fragment,p),w=!1},d(p){p&&T(e),j(g)}}}function V(d){let e,t,l,i,s,a,o,u,b,c,v,y,h,g,w;return g=new H({props:{type:"left",percentile:d[7]}}),{c(){e=f("div"),t=f("div"),l=k("svg"),i=k("path"),a=D(),o=f("div"),u=f("div"),u.innerHTML="Glycan <b>Shield (S)</b>",b=D(),c=f("div"),v=C(d[6]),y=D(),h=f("div"),M(g.$$.fragment),n(i,"fill",s=d[7]>=32?"#12A195":"#F2590D"),n(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"),n(l,"xmlns","http://www.w3.org/2000/svg"),n(l,"width","24"),n(l,"height","24"),n(l,"viewBox","0 0 24 24"),x(o,"display","flex"),x(o,"flex-direction","column"),x(o,"padding-left","0.3rem"),n(t,"class","label svelte-yt1d5k"),x(t,"font-size","0.8rem"),x(h,"width","70%"),x(h,"display","flex"),x(h,"align-items","center"),n(e,"class","main svelte-yt1d5k")},m(p,m){L(p,e,m),r(e,t),r(t,l),r(l,i),r(t,a),r(t,o),r(o,u),r(o,b),r(o,c),r(c,v),r(e,y),r(e,h),P(g,h,null),w=!0},p(p,m){(!w||m&128&&s!==(s=p[7]>=32?"#12A195":"#F2590D"))&&n(i,"fill",s),(!w||m&64)&&F(v,p[6]);const $={};m&128&&($.percentile=p[7]),g.$set($)},i(p){w||(Z(g.$$.fragment,p),w=!0)},o(p){N(g.$$.fragment,p),w=!1},d(p){p&&T(e),j(g)}}}function le(d){let e,t;return{c(){e=k("svg"),t=k("path"),n(t,"fill","#12A195"),n(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"),n(e,"xmlns","http://www.w3.org/2000/svg"),n(e,"width","50"),n(e,"height","50"),n(e,"viewBox","0 0 24 24")},m(l,i){L(l,e,i),r(e,t)},d(l){l&&T(e)}}}function ie(d){let e,t;return{c(){e=k("svg"),t=k("path"),n(t,"fill","#F2590D"),n(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"),n(e,"xmlns","http://www.w3.org/2000/svg"),n(e,"width","50"),n(e,"height","50"),n(e,"viewBox","0 0 24 24")},m(l,i){L(l,e,i),r(e,t)},d(l){l&&T(e)}}}function se(d){let e,t;return{c(){e=k("svg"),t=k("path"),n(t,"fill","#12A195"),n(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"),n(e,"xmlns","http://www.w3.org/2000/svg"),n(e,"width","24"),n(e,"height","24"),n(e,"viewBox","0 0 24 24")},m(l,i){L(l,e,i),r(e,t)},d(l){l&&T(e)}}}function ne(d){let e,t;return{c(){e=k("svg"),t=k("path"),n(t,"fill","#F2590D"),n(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"),n(e,"xmlns","http://www.w3.org/2000/svg"),n(e,"width","24"),n(e,"height","24"),n(e,"viewBox","0 0 24 24")},m(l,i){L(l,e,i),r(e,t)},d(l){l&&T(e)}}}function re(d){let e,t,l,i,s,a;const o=[te,ee,Y],u=[];function b(c,v){return c[0]==="header"&&c[5]?0:c[0]==="summary"&&c[4]?1:2}return l=b(d),i=u[l]=o[l](d),{c(){e=f("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(),i.c(),s=z()},m(c,v){L(c,e,v),L(c,t,v),u[l].m(c,v),L(c,s,v),a=!0},p(c,[v]){let y=l;l=b(c),l===y?u[l].p(c,v):(A(),N(u[y],1,1,()=>{u[y]=null}),B(),i=u[l],i?i.p(c,v):(i=u[l]=o[l](c),i.c()),Z(i,1),i.m(s.parentNode,s))},i(c){a||(Z(i),a=!0)},o(c){N(i),a=!1},d(c){c&&(T(e),T(t),T(s)),u[l].d(c)}}}function ae(d,e,t){let{report:l}=e,{type:i}=e,{subtype:s}=e,{service:a=window.GaReportService}=e,o=[{name:"mature",csvName:"G0percentile"},{name:"shield",csvName:"Spercentile"}],u,b=!1,c=!1,v=!1,y=!1,h="",g=0,w=0,p=0,m=0;function $(){g>68&&t(8,m++,m),w<32&&t(8,m++,m)}const O=o.find(q=>q.name===s);return Q(async()=>{u=await a.getReport(l),O&&(t(7,p=Number(u[O.csvName])),t(6,h=U(p))),g=Number(u.G0percentile),w=Number(u.Spercentile),$(),m===2&&t(2,b=!0),m===1&&t(3,c=!0),t(5,y=!0),t(4,v=!0)}),d.$$set=q=>{"report"in q&&t(9,l=q.report),"type"in q&&t(0,i=q.type),"subtype"in q&&t(1,s=q.subtype),"service"in q&&t(10,a=q.service)},[i,s,b,c,v,y,h,p,m,l,a]}class E extends _{constructor(e){super(),X(this,e,ae,re,J,{report:9,type:0,subtype:1,service:10},W)}get report(){return this.$$.ctx[9]}set report(e){this.$$set({report:e}),S()}get type(){return this.$$.ctx[0]}set type(e){this.$$set({type:e}),S()}get subtype(){return this.$$.ctx[1]}set subtype(e){this.$$set({subtype:e}),S()}get service(){return this.$$.ctx[10]}set service(e){this.$$set({service:e}),S()}}customElements.define("ga-copd",I(E,{report:{},type:{},subtype:{},service:{}},[],[],!0));export{E as default};
|
package/dist/coronary.wc.js
CHANGED
|
@@ -1,15 +1,2 @@
|
|
|
1
|
-
import{c as
|
|
2
|
-
|
|
3
|
-
extremity oedema, orthopnea, reduced exercise capacity.`,T=v(),L=o("div"),L.textContent="Possible follow-up tests:",F=v(),H=o("div"),H.innerHTML=`<b>Blood tests:</b> Basic (LDL-C, HDL-C, total cholesterol, total cholesterol:HDL-C <br/>
|
|
4
|
-
ratio, non-HDL-C, triglycerides) and extended lipid profile (e.g., oxLDL, <br/>
|
|
5
|
-
VLDL, LDL-P, Lp(a), ApoB, Lp-PLA2), hsCRP, homocysteine, renal and liver <br/>
|
|
6
|
-
function, glucose/HbA1c.`,k=v(),I=o("div"),I.innerHTML="<b>Blood pressure check.</b>",_=v(),O=o("div"),O.innerHTML="<b>ECG.</b>",X=v(),V=o("div"),V.innerHTML=`Referral to cardiologist for other diagnostics (e.g., cardiac echo, stress <br/>
|
|
7
|
-
echo, coronary CT, coronary angiography etc.).`,p(r,"width","10%"),p(r,"padding-left","1.5rem"),p(r,"padding-right","1rem"),p(l,"width","90%"),n(s,"class","summaryHeader svelte-synmfx"),p(s,"border-radius","8px 8px 0 0"),p(s,"background-color",m[15]()),p(s,"border-bottom","2px solid "+m[14]()),p(w,"font-size","1.2rem"),p(w,"padding-bottom","1rem"),p(C,"font-size","0.7rem"),p(C,"padding-bottom","0.4rem"),p(P,"font-size","0.7rem"),p(P,"padding-bottom","0.4rem"),p($,"font-size","0.7rem"),p($,"padding-bottom","0.4rem"),p(L,"font-size","1.2rem"),p(L,"padding-top","1.2rem"),p(L,"padding-bottom","1rem"),p(H,"font-size","0.7rem"),p(H,"padding-bottom","0.4rem"),p(I,"font-size","0.7rem"),p(I,"padding-bottom","0.4rem"),p(O,"font-size","0.7rem"),p(O,"padding-bottom","0.4rem"),p(V,"font-size","0.7rem"),p(V,"padding-bottom","0.4rem"),n(f,"class","summaryBody svelte-synmfx"),p(f,"background-color",m[16]()),n(t,"class","summaryMain svelte-synmfx"),p(t,"border","2px solid "+m[14]())},m(E,U){h(E,t,U),e(t,s),e(s,r),z&&z.m(r,null),e(r,d),A&&A.m(r,null),e(s,i),e(s,l),e(l,a),e(l,c),e(l,g),e(l,S),e(l,N),e(t,j),e(t,f),e(f,w),e(f,B),e(f,C),e(f,M),e(f,P),e(f,D),e(f,$),e(f,T),e(f,L),e(f,F),e(f,H),e(f,k),e(f,I),e(f,_),e(f,O),e(f,X),e(f,V)},p(E,U){E[9]?z||(z=Se(),z.c(),z.m(r,d)):z&&(z.d(1),z=null),E[10]?A||(A=Ee(),A.c(),A.m(r,null)):A&&(A.d(1),A=null)},d(E){E&&u(t),z&&z.d(),A&&A.d()}}}function We(m){let t;return{c(){t=o("div"),t.innerHTML=`<div class="summaryHeader svelte-synmfx" 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
|
-
coronary artery disease patients.</div></div> <div class="summaryBody svelte-synmfx" style="opacity: 0.35;"><div style="font-size: 1.2rem; padding-bottom: 1rem;">Symptoms to check for:</div> <div style="font-size: 0.7rem; padding-bottom: 0.4rem;">Symptoms of stable angina.</div> <div style="font-size: 0.7rem; padding-bottom: 0.4rem;"><b>Chest pain \xB1</b> radiation into the jaw, neck, left arm, back.</div> <div style="font-size: 0.7rem; padding-bottom: 0.4rem;"><b>Breathlessness.</b></div> <div style="font-size: 0.7rem; padding-bottom: 0.4rem;"><b>Other symptoms</b> including syncope, palpitations, tachypnea, lower <br/>
|
|
9
|
-
extremity oedema, orthopnea, reduced exercise capacity.</div> <div style="font-size: 1.2rem; padding-top: 1.2rem;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/>
|
|
10
|
-
ratio, non-HDL-C, triglycerides) and extended lipid profile (e.g., oxLDL, <br/>
|
|
11
|
-
VLDL, LDL-P, Lp(a), ApoB, Lp-PLA2), hsCRP, homocysteine, renal and liver <br/>
|
|
12
|
-
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 <br/> echo, coronary CT, coronary angiography etc.)</div></div>`,n(t,"class","summaryMain svelte-synmfx")},m(s,r){h(s,t,r)},p:Ae,d(s){s&&u(t)}}}function Se(m){let t,s;return{c(){t=q("svg"),s=q("path"),n(s,"fill","#CC0000"),n(s,"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"),n(t,"xmlns","http://www.w3.org/2000/svg"),n(t,"width","50"),n(t,"height","50"),n(t,"viewBox","0 0 24 24")},m(r,d){h(r,t,d),e(t,s)},d(r){r&&u(t)}}}function Ee(m){let t,s;return{c(){t=q("svg"),s=q("path"),n(s,"fill","#EE9933"),n(s,"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"),n(t,"xmlns","http://www.w3.org/2000/svg"),n(t,"width","50"),n(t,"height","50"),n(t,"viewBox","0 0 24 24")},m(r,d){h(r,t,d),e(t,s)},d(r){r&&u(t)}}}function Ge(m){let t,s,r,d,i,l,a;return{c(){t=o("div"),s=o("b"),r=b(m[13]),d=v(),i=q("svg"),l=q("path"),a=b(`
|
|
13
|
-
\xA0 Some overlap`),p(t,"padding-right","10px"),n(l,"fill","#F2590D"),n(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"),n(i,"xmlns","http://www.w3.org/2000/svg"),n(i,"width","24"),n(i,"height","24"),n(i,"viewBox","0 0 24 24")},m(c,g){h(c,t,g),e(t,s),e(s,r),h(c,d,g),h(c,i,g),e(i,l),h(c,a,g)},p(c,g){g&8192&&Z(r,c[13])},d(c){c&&(u(t),u(d),u(i),u(a))}}}function Re(m){let t,s,r,d,i,l,a;return{c(){t=o("div"),s=o("b"),r=b(m[13]),d=v(),i=q("svg"),l=q("path"),a=b(`
|
|
14
|
-
\xA0 Minor overlap`),p(t,"padding-right","10px"),n(l,"fill","#FFAA00"),n(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"),n(i,"xmlns","http://www.w3.org/2000/svg"),n(i,"width","24"),n(i,"height","24"),n(i,"viewBox","0 0 24 24")},m(c,g){h(c,t,g),e(t,s),e(s,r),h(c,d,g),h(c,i,g),e(i,l),h(c,a,g)},p(c,g){g&8192&&Z(r,c[13])},d(c){c&&(u(t),u(d),u(i),u(a))}}}function qe(m){let t,s,r,d,i,l,a;return{c(){t=o("div"),s=o("b"),r=b(m[13]),d=v(),i=q("svg"),l=q("path"),a=b(`
|
|
15
|
-
\xA0 No significant overlap`),p(t,"padding-right","10px"),n(l,"fill","#12A195"),n(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"),n(i,"xmlns","http://www.w3.org/2000/svg"),n(i,"width","24"),n(i,"height","24"),n(i,"viewBox","0 0 24 24")},m(c,g){h(c,t,g),e(t,s),e(s,r),h(c,d,g),h(c,i,g),e(i,l),h(c,a,g)},p(c,g){g&8192&&Z(r,c[13])},d(c){c&&(u(t),u(d),u(i),u(a))}}}function et(m){let t,s,r;function d(a,c){return a[0]==="header"?Ke:a[0]==="summary"?_e:Ye}let i=d(m),l=i(m);return{c(){t=o("head"),t.innerHTML='<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@24,300,1,0"/>',s=v(),l.c(),r=ze()},m(a,c){h(a,t,c),h(a,s,c),l.m(a,c),h(a,r,c)},p(a,[c]){i===(i=d(a))&&l?l.p(a,c):(l.d(1),l=i(a),l&&(l.c(),l.m(r.parentNode,r)))},i:Ae,o:Ae,d(a){a&&(u(t),u(s),u(r)),l.d(a)}}}function tt(m,t,s){let{language:r}=t,{report:d}=t,{type:i}=t,{service:l=window.GaReportService}=t,a,c=0,g=0,S=0,N=0,j=0,f=0,w=0,B=0,C=!1,M=!1,P=!1,D=!1,$="";function T(){return C?"#CC0000":M?"#EE9933":"#00AA44"}function L(){return C?"rgba(204,0,0,0.15)":M?"rgba(238,153,51,0.15)":"rgba(0,170,68,0.15)"}function F(){return C?"rgba(204,0,0,0.05)":M?"rgba(238,153,51,0.05)":"rgba(0,170,68,0.05)"}function H(){return C?"some overlap":M?"a minor overlap":"no significant overlap"}return Qe(async()=>{if(a=await l.getReport(d),s(1,c=Number(a.G0xmin)),s(2,g=Number(a.G0xmax)),s(3,S=Number(a.G0yourscore)),s(4,N=Number(a.G0percentile)),s(5,j=Number(a.Sxmin)),s(6,f=Number(a.Sxmax)),s(7,w=Number(a.Syourscore)),s(8,B=Number(a.Spercentile)),N>50&&B<50){s(13,$="2/2"),s(9,C=!0),s(12,D=!0);return}if(N>50||B<50){s(13,$="1/2"),s(10,M=!0),s(12,D=!0);return}s(13,$="0/2"),s(11,P=!0),s(12,D=!0)}),m.$$set=k=>{"language"in k&&s(18,r=k.language),"report"in k&&s(19,d=k.report),"type"in k&&s(0,i=k.type),"service"in k&&s(20,l=k.service)},[i,c,g,S,N,j,f,w,B,C,M,P,D,$,T,L,F,H,r,d,l]}class je extends Oe{constructor(t){super(),Ve(this,t,tt,et,Ie,{language:18,report:19,type:0,service:20},Xe)}get language(){return this.$$.ctx[18]}set language(t){this.$$set({language:t}),ne()}get report(){return this.$$.ctx[19]}set report(t){this.$$set({report:t}),ne()}get type(){return this.$$.ctx[0]}set type(t){this.$$set({type:t}),ne()}get service(){return this.$$.ctx[20]}set service(t){this.$$set({service:t}),ne()}}customElements.define("ga-coronary",Fe(je,{language:{},report:{},type:{},service:{}},[],[],!0));export{je as default};
|
|
1
|
+
import{c as _,S as O,i as J,f as S,s as K,a as Q,e as f,b as k,d as z,g as L,t as Z,h as G,j as q,k as A,o as U,l as F,m as D,n as b,p as r,q as n,r as N,u as B,v as T,w as H,x as j,y as I}from"./index2.js";import{A as R}from"./Arrow.js";import{g as W}from"./helpers.js";function X(d){Q(d,"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 Y(d){let e,t,l,i=d[1]==="mature"&&P(d),s=d[1]==="shield"&&E(d);return{c(){i&&i.c(),e=k(),s&&s.c(),t=z()},m(a,o){i&&i.m(a,o),L(a,e,o),s&&s.m(a,o),L(a,t,o),l=!0},p(a,o){a[1]==="mature"?i?(i.p(a,o),o&2&&q(i,1)):(i=P(a),i.c(),q(i,1),i.m(e.parentNode,e)):i&&(F(),Z(i,1,1,()=>{i=null}),G()),a[1]==="shield"?s?(s.p(a,o),o&2&&q(s,1)):(s=E(a),s.c(),q(s,1),s.m(t.parentNode,t)):s&&(F(),Z(s,1,1,()=>{s=null}),G())},i(a){l||(q(i),q(s),l=!0)},o(a){Z(i),Z(s),l=!1},d(a){a&&(A(e),A(t)),i&&i.d(a),s&&s.d(a)}}}function ee(d){let e,t,l,i,s,a,o=d[2]?"Major overlap":d[3]?"Some overlap":"No significant overlap",g,x,c,u,y,m;function v(h,$){return h[2]||h[3]?ie:le}let w=v(d),p=w(d);return{c(){e=f("div"),t=f("div"),l=f("div"),p.c(),i=k(),s=f("div"),a=f("b"),g=D(o),x=D(" of glycan indexes between "),c=f("br"),u=D(" your patient and this condition."),y=k(),m=f("div"),m.innerHTML='<h5>Signs and symptoms</h5> <ul style="font-size: 0.8rem;"><li>Self-limiting chest pain \xB1 radiation into jaw/left arm/back</li> <li>Breathlessness</li> <li>Other (syncope, palpitations, leg edema, orthopnea, etc.)</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., stress echocardiogram)</li></ul> <h5>Related research papers</h5> <a style="color: #E66439;" href="https://www.ncbi.nlm.nih.gov/pmc/articles/PMC9953309/pdf/biomolecules-13-00375.pdf">IgG N-Glycosylation Is Altered in Coronary Artery Disease</a> <p style="margin: 0; font-size: 0.8rem; color: #09341FCC;">In the CAPIRE study, male and female participants aged 45 to 75 years without prior clinical manifestations of coronary artery disease (CAD) were assessed using coronary computed tomography angiography (CCTA). They were categorized into CAD-negative (clean coronaries) and CAD-positive (significant coronary atherosclerosis) based on CCTA findings, aligning with the AHA classification. This research paper aimed to explore the association between the N-glycome profile of immunoglobulin G (IgG) and CAD presence. Among the 198 women in the study, with an average age of 59.9 years, significant glycan alterations were noted, specifically an increase in G0 and a decrease in S.</p>',b(l,"transform","translate(-50%)"),b(a,"color",d[2]||d[3]?"#F2590D":"#12A195"),r(t,"class","summaryHeader svelte-yt1d5k"),r(m,"class","summaryBody svelte-yt1d5k"),r(e,"class","summaryMain svelte-yt1d5k")},m(h,$){L(h,e,$),n(e,t),n(t,l),p.m(l,null),n(t,i),n(t,s),n(s,a),n(a,g),n(s,x),n(s,c),n(s,u),n(e,y),n(e,m)},p(h,$){w!==(w=v(h))&&(p.d(1),p=w(h),p&&(p.c(),p.m(l,null))),$&12&&o!==(o=h[2]?"Major overlap":h[3]?"Some overlap":"No significant overlap")&&N(g,o),$&12&&b(a,"color",h[2]||h[3]?"#F2590D":"#12A195")},i:B,o:B,d(h){h&&A(e),p.d()}}}function te(d){let e,t,l,i,s,a,o,g=d[2]?"Major overlap":d[3]?"Some overlap":"No significant overlap",x;function c(m,v){return m[2]||m[3]?re:se}let u=c(d),y=u(d);return{c(){e=f("div"),t=f("div"),l=f("b"),i=D(d[8]),s=D("/2"),a=k(),y.c(),o=D(`
|
|
2
|
+
\xA0\xA0`),x=D(g),b(t,"padding-right","10px"),r(e,"class","header svelte-yt1d5k")},m(m,v){L(m,e,v),n(e,t),n(t,l),n(l,i),n(l,s),n(e,a),y.m(e,null),n(e,o),n(e,x)},p(m,v){v&256&&N(i,m[8]),u!==(u=c(m))&&(y.d(1),y=u(m),y&&(y.c(),y.m(e,o))),v&12&&g!==(g=m[2]?"Major overlap":m[3]?"Some overlap":"No significant overlap")&&N(x,g)},i:B,o:B,d(m){m&&A(e),y.d()}}}function P(d){let e,t,l,i,s,a,o,g,x,c,u,y,m,v,w;return v=new R({props:{type:"right",percentile:d[7]}}),{c(){e=f("div"),t=f("div"),l=T("svg"),i=T("path"),a=k(),o=f("div"),g=f("div"),g.innerHTML="Glycan <b>Mature (G0)</b>",x=k(),c=f("div"),u=D(d[6]),y=k(),m=f("div"),H(v.$$.fragment),r(i,"fill",s=d[7]<=68?"#12A195":"#F2590D"),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(l,"xmlns","http://www.w3.org/2000/svg"),r(l,"width","24"),r(l,"height","24"),r(l,"viewBox","0 0 24 24"),b(o,"display","flex"),b(o,"flex-direction","column"),b(o,"padding-left","0.3rem"),r(t,"class","label svelte-yt1d5k"),b(t,"font-size","0.8rem"),b(m,"width","70%"),b(m,"display","flex"),b(m,"align-items","center"),r(e,"class","main svelte-yt1d5k")},m(p,h){L(p,e,h),n(e,t),n(t,l),n(l,i),n(t,a),n(t,o),n(o,g),n(o,x),n(o,c),n(c,u),n(e,y),n(e,m),j(v,m,null),w=!0},p(p,h){(!w||h&128&&s!==(s=p[7]<=68?"#12A195":"#F2590D"))&&r(i,"fill",s),(!w||h&64)&&N(u,p[6]);const $={};h&128&&($.percentile=p[7]),v.$set($)},i(p){w||(q(v.$$.fragment,p),w=!0)},o(p){Z(v.$$.fragment,p),w=!1},d(p){p&&A(e),I(v)}}}function E(d){let e,t,l,i,s,a,o,g,x,c,u,y,m,v,w;return v=new R({props:{type:"left",percentile:d[7]}}),{c(){e=f("div"),t=f("div"),l=T("svg"),i=T("path"),a=k(),o=f("div"),g=f("div"),g.innerHTML="Glycan <b>Shield (S)</b>",x=k(),c=f("div"),u=D(d[6]),y=k(),m=f("div"),H(v.$$.fragment),r(i,"fill",s=d[7]>=32?"#12A195":"#F2590D"),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(l,"xmlns","http://www.w3.org/2000/svg"),r(l,"width","24"),r(l,"height","24"),r(l,"viewBox","0 0 24 24"),b(o,"display","flex"),b(o,"flex-direction","column"),b(o,"padding-left","0.3rem"),r(t,"class","label svelte-yt1d5k"),b(t,"font-size","0.8rem"),b(m,"width","70%"),b(m,"display","flex"),b(m,"align-items","center"),r(e,"class","main svelte-yt1d5k")},m(p,h){L(p,e,h),n(e,t),n(t,l),n(l,i),n(t,a),n(t,o),n(o,g),n(o,x),n(o,c),n(c,u),n(e,y),n(e,m),j(v,m,null),w=!0},p(p,h){(!w||h&128&&s!==(s=p[7]>=32?"#12A195":"#F2590D"))&&r(i,"fill",s),(!w||h&64)&&N(u,p[6]);const $={};h&128&&($.percentile=p[7]),v.$set($)},i(p){w||(q(v.$$.fragment,p),w=!0)},o(p){Z(v.$$.fragment,p),w=!1},d(p){p&&A(e),I(v)}}}function le(d){let e,t;return{c(){e=T("svg"),t=T("path"),r(t,"fill","#12A195"),r(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"),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(l,i){L(l,e,i),n(e,t)},d(l){l&&A(e)}}}function ie(d){let e,t;return{c(){e=T("svg"),t=T("path"),r(t,"fill","#F2590D"),r(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"),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(l,i){L(l,e,i),n(e,t)},d(l){l&&A(e)}}}function se(d){let e,t;return{c(){e=T("svg"),t=T("path"),r(t,"fill","#12A195"),r(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"),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(l,i){L(l,e,i),n(e,t)},d(l){l&&A(e)}}}function re(d){let e,t;return{c(){e=T("svg"),t=T("path"),r(t,"fill","#F2590D"),r(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"),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(l,i){L(l,e,i),n(e,t)},d(l){l&&A(e)}}}function ne(d){let e,t,l,i,s,a;const o=[te,ee,Y],g=[];function x(c,u){return c[0]==="header"&&c[5]?0:c[0]==="summary"&&c[4]?1:2}return l=x(d),i=g[l]=o[l](d),{c(){e=f("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=k(),i.c(),s=z()},m(c,u){L(c,e,u),L(c,t,u),g[l].m(c,u),L(c,s,u),a=!0},p(c,[u]){let y=l;l=x(c),l===y?g[l].p(c,u):(F(),Z(g[y],1,1,()=>{g[y]=null}),G(),i=g[l],i?i.p(c,u):(i=g[l]=o[l](c),i.c()),q(i,1),i.m(s.parentNode,s))},i(c){a||(q(i),a=!0)},o(c){Z(i),a=!1},d(c){c&&(A(e),A(t),A(s)),g[l].d(c)}}}function ae(d,e,t){let{report:l}=e,{type:i}=e,{subtype:s}=e,{service:a=window.GaReportService}=e,o=[{name:"mature",csvName:"G0percentile"},{name:"shield",csvName:"Spercentile"}],g,x=!1,c=!1,u=!1,y=!1,m="",v=0,w=0,p=0,h=0;function $(){v>68&&t(8,h++,h),w<32&&t(8,h++,h)}const M=o.find(C=>C.name===s);return U(async()=>{g=await a.getReport(l),M&&(t(7,p=Number(g[M.csvName])),t(6,m=W(p))),v=Number(g.G0percentile),w=Number(g.Spercentile),$(),h===2&&t(2,x=!0),h===1&&t(3,c=!0),t(5,y=!0),t(4,u=!0)}),d.$$set=C=>{"report"in C&&t(9,l=C.report),"type"in C&&t(0,i=C.type),"subtype"in C&&t(1,s=C.subtype),"service"in C&&t(10,a=C.service)},[i,s,x,c,u,y,m,p,h,l,a]}class V extends O{constructor(e){super(),J(this,e,ae,ne,K,{report:9,type:0,subtype:1,service:10},X)}get report(){return this.$$.ctx[9]}set report(e){this.$$set({report:e}),S()}get type(){return this.$$.ctx[0]}set type(e){this.$$set({type:e}),S()}get subtype(){return this.$$.ctx[1]}set subtype(e){this.$$set({subtype:e}),S()}get service(){return this.$$.ctx[10]}set service(e){this.$$set({service:e}),S()}}customElements.define("ga-coronary",_(V,{report:{},type:{},subtype:{},service:{}},[],[],!0));export{V as default};
|
package/dist/crohn.wc.js
CHANGED
|
@@ -1,12 +1,2 @@
|
|
|
1
|
-
import{c as $l,S as Bl,i as Sl,f as Ye,s as Zl,a as Pl,e as l,b as v,d as Ft,g as w,n as Rt,h as y,o as Dl,t as u,j as i,k as o,l as e,m as k,p as K}from"./index2.js";import{s as Q,m as U,g as X,a as ee,b as te}from"./helpers.js";function Fl(r){Pl(r,"svelte-2d7oqk",".main.svelte-2d7oqk{width:450px;height:300px;background-color:#f0f6f5;border:2px solid #c8dbd0;border-radius:12px;display:flex;flex-direction:column;justify-content:center}.summaryMain.svelte-2d7oqk{width:500px;height:500px;border-radius:10px}.summaryHeader.svelte-2d7oqk{width:100%;height:20%;font-size:0.9rem;display:flex;align-items:center}.summaryBody.svelte-2d7oqk{width:95%;height:75%;padding:1.5rem 0 0 1.5rem}.row.svelte-2d7oqk{width:100%;height:12%;display:flex;margin:0.2rem 0 0.2rem 0}.label.svelte-2d7oqk{width:14%;height:100%;margin-left:1.5rem;font-size:0.7rem;line-height:0.9rem;display:flex;align-items:start;justify-content:center;flex-direction:column}.content.svelte-2d7oqk{width:86%;height:100%;position:relative}.min.svelte-2d7oqk{position:absolute;top:34%;left:1.6%;font-size:0.6rem;color:#6b8678}.middleParent.svelte-2d7oqk{position:absolute;width:76%;height:80%;left:10%;top:10%;display:flex;align-items:center;justify-content:center;flex-direction:column}.xAxis.svelte-2d7oqk{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-2d7oqk{position:absolute;width:46%;top:10%;height:80%;background-color:#c8dbd0}.result.svelte-2d7oqk{width:1.5%;height:24%;background-color:#33664d;z-index:9998;position:relative}.result2.svelte-2d7oqk{width:1.5%;height:24%;background-color:#33664d;z-index:9998;position:relative}.result3.svelte-2d7oqk{width:1.5%;height:24%;background-color:#33664d;z-index:9998;position:relative}.yAxis.svelte-2d7oqk{position:absolute;left:49.72%;width:0.1rem;height:88%;background-color:#08341f;border-radius:10px}.max.svelte-2d7oqk{position:absolute;top:34%;right:5.5%;font-size:0.6rem;color:#6b8678}.lastRow.svelte-2d7oqk{width:100%;height:11%;display:flex;align-items:center;justify-content:center;margin-top:12px}.dot1.svelte-2d7oqk{height:10px;width:10px;border-radius:99px;background-color:#c8dbd0;border:1px solid black;margin-right:6px}.dot2.svelte-2d7oqk{height:10px;width:10px;border-radius:99px;background-color:#33664d;border:1px solid black;margin:0 6px 0 36px}.resultDisplay.svelte-2d7oqk{position:absolute;bottom:50%;display:flex;align-items:center;flex-direction:column}.message.svelte-2d7oqk{color:#33664d;z-index:99999;min-width:100px;font-size:0.48rem;margin-bottom:-8px}.triangle-down.svelte-2d7oqk{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-2d7oqk{width:100%;height:100%;display:flex;align-items:center}")}function Rl(r){let t,s,n,c,m,d,a,h,b,f,T,le,x,A,G,D,se,F,z,R,B,M,N,S,ie,j,H,Z,q=Q(r[4])+"",L,P,C,qe,Ae,re,be,Te,$,Me,Je,Ke,jt,Ne,Qe,Ue,Et,E,Xe,It,et,Vt,we,Wt,I,oe,Ge,pe,tt,_t,lt,st,He=Q(r[8])+"",it,Ot,Yt,rt,Jt,fe,Ce,Kt,de,$e,ot,dt,Qt,Be,at,nt,Ut,V,mt,Xt,ct,el,ye,tl,W,ae,Se,ge,vt,ll,pt,gt,Ze=Q(r[12])+"",ut,sl,il,ht,rl,ke,Pe,ol,ne,De,bt,ft,dl,Fe,kt,xt,al,_,qt,nl,wt,ml,Le,cl,O,me,Re,ue,yt,vl,Lt,zt,je=Q(r[16])+"",At,pl,gl,Tt,ul,xe,Ee,hl,ce,Ie,Mt,Nt,bl,Ve,Gt,Ht,fl,Y,Ct,kl,$t,xl,ze,ql,J,ve,We,he,Bt,wl,St,Zt,_e=Q(r[20])+"",Pt,yl,Ll,Dt,zl,Oe;return{c(){t=l("div"),s=l("div"),n=l("div"),n.innerHTML="Glycan<br/> <b>Mature</b>",c=v(),m=l("div"),d=l("div"),a=l("b"),h=u(r[1]),b=v(),f=l("div"),T=l("b"),le=u(r[2]),x=v(),A=l("div"),G=l("div"),D=v(),se=l("div"),F=v(),z=l("div"),R=v(),B=l("div"),M=l("div"),N=l("div"),S=l("b"),ie=u(r[3]),j=u(" ("),H=u(r[4]),Z=l("sup"),L=u(q),P=u(" percentile)"),C=v(),qe=l("div"),Ae=v(),re=l("div"),be=l("div"),be.innerHTML="Glycan<br/> <b>Median</b>",Te=v(),$=l("div"),Me=l("div"),Je=l("b"),Ke=u(r[5]),jt=v(),Ne=l("div"),Qe=l("b"),Ue=u(r[6]),Et=v(),E=l("div"),Xe=l("div"),It=v(),et=l("div"),Vt=v(),we=l("div"),Wt=v(),I=l("div"),oe=l("div"),Ge=l("div"),pe=l("b"),tt=u(r[7]),_t=u(" ("),lt=u(r[8]),st=l("sup"),it=u(He),Ot=u(" percentile)"),Yt=v(),rt=l("div"),Jt=v(),fe=l("div"),Ce=l("div"),Ce.innerHTML="Glycan<br/> <b>Youth</b>",Kt=v(),de=l("div"),$e=l("div"),ot=l("b"),dt=u(r[9]),Qt=v(),Be=l("div"),at=l("b"),nt=u(r[10]),Ut=v(),V=l("div"),mt=l("div"),Xt=v(),ct=l("div"),el=v(),ye=l("div"),tl=v(),W=l("div"),ae=l("div"),Se=l("div"),ge=l("b"),vt=u(r[11]),ll=u(" ("),pt=u(r[12]),gt=l("sup"),ut=u(Ze),sl=u(" percentile)"),il=v(),ht=l("div"),rl=v(),ke=l("div"),Pe=l("div"),Pe.innerHTML="Glycan<br/> <b>Shield</b>",ol=v(),ne=l("div"),De=l("div"),bt=l("b"),ft=u(r[13]),dl=v(),Fe=l("div"),kt=l("b"),xt=u(r[14]),al=v(),_=l("div"),qt=l("div"),nl=v(),wt=l("div"),ml=v(),Le=l("div"),cl=v(),O=l("div"),me=l("div"),Re=l("div"),ue=l("b"),yt=u(r[15]),vl=u(" ("),Lt=u(r[16]),zt=l("sup"),At=u(je),pl=u(" percentile)"),gl=v(),Tt=l("div"),ul=v(),xe=l("div"),Ee=l("div"),Ee.innerHTML="Glycan<br/> <b>Lifestyle</b>",hl=v(),ce=l("div"),Ie=l("div"),Mt=l("b"),Nt=u(r[17]),bl=v(),Ve=l("div"),Gt=l("b"),Ht=u(r[18]),fl=v(),Y=l("div"),Ct=l("div"),kl=v(),$t=l("div"),xl=v(),ze=l("div"),ql=v(),J=l("div"),ve=l("div"),We=l("div"),he=l("b"),Bt=u(r[19]),wl=u(" ("),St=u(r[20]),Zt=l("sup"),Pt=u(_e),yl=u(" percentile)"),Ll=v(),Dt=l("div"),zl=v(),Oe=l("div"),Oe.innerHTML='<div class="dot1 svelte-2d7oqk"></div> <div style="font-size: 0.8rem;">Crohn's Disease</div> <div class="dot2 svelte-2d7oqk"></div> <div style="font-size: 0.8rem;">Your patient</div>',i(n,"class","label svelte-2d7oqk"),i(d,"class","min svelte-2d7oqk"),i(f,"class","max svelte-2d7oqk"),i(G,"class","xAxis svelte-2d7oqk"),i(se,"class","yAxis svelte-2d7oqk"),i(z,"class","diseaseArea svelte-2d7oqk"),o(z,"border-radius","0 6px 6px 0"),o(z,"left","50.3%"),i(N,"class","message svelte-2d7oqk"),i(qe,"class","triangle-down svelte-2d7oqk"),i(M,"class","resultDisplay svelte-2d7oqk"),o(M,"right",U(r[4])),i(B,"class","result svelte-2d7oqk"),o(B,"padding",X(r[4])),o(B,"margin",ee(r[4])),o(B,"border-radius",te(r[4])),i(A,"class","middleParent svelte-2d7oqk"),i(m,"class","content svelte-2d7oqk"),i(s,"class","row svelte-2d7oqk"),i(be,"class","label svelte-2d7oqk"),i(Me,"class","min svelte-2d7oqk"),i(Ne,"class","max svelte-2d7oqk"),i(Xe,"class","xAxis svelte-2d7oqk"),i(et,"class","yAxis svelte-2d7oqk"),i(we,"class","diseaseArea svelte-2d7oqk"),o(we,"border-radius","6px 0 0 6px"),o(we,"right","50.3%"),i(Ge,"class","message svelte-2d7oqk"),i(rt,"class","triangle-down svelte-2d7oqk"),i(oe,"class","resultDisplay svelte-2d7oqk"),o(oe,"right",U(r[8])),i(I,"class","result2 svelte-2d7oqk"),o(I,"padding",X(r[8])),o(I,"margin",ee(r[8])),o(I,"border-radius",te(r[8])),i(E,"class","middleParent svelte-2d7oqk"),i($,"class","content svelte-2d7oqk"),i(re,"class","row svelte-2d7oqk"),i(Ce,"class","label svelte-2d7oqk"),i($e,"class","min svelte-2d7oqk"),i(Be,"class","max svelte-2d7oqk"),i(mt,"class","xAxis svelte-2d7oqk"),i(ct,"class","yAxis svelte-2d7oqk"),i(ye,"class","diseaseArea svelte-2d7oqk"),o(ye,"border-radius","6px 0 0 6px"),o(ye,"right","50.3%"),i(Se,"class","message svelte-2d7oqk"),i(ht,"class","triangle-down svelte-2d7oqk"),i(ae,"class","resultDisplay svelte-2d7oqk"),o(ae,"right",U(r[12])),i(W,"class","result3 svelte-2d7oqk"),o(W,"padding",X(r[12])),o(W,"margin",ee(r[12])),o(W,"border-radius",te(r[12])),i(V,"class","middleParent svelte-2d7oqk"),i(de,"class","content svelte-2d7oqk"),i(fe,"class","row svelte-2d7oqk"),i(Pe,"class","label svelte-2d7oqk"),i(De,"class","min svelte-2d7oqk"),i(Fe,"class","max svelte-2d7oqk"),i(qt,"class","xAxis svelte-2d7oqk"),i(wt,"class","yAxis svelte-2d7oqk"),i(Le,"class","diseaseArea svelte-2d7oqk"),o(Le,"border-radius","6px 0 0 6px"),o(Le,"right","50.3%"),i(Re,"class","message svelte-2d7oqk"),i(Tt,"class","triangle-down svelte-2d7oqk"),i(me,"class","resultDisplay svelte-2d7oqk"),o(me,"right",U(r[16])),i(O,"class","result3 svelte-2d7oqk"),o(O,"padding",X(r[16])),o(O,"margin",ee(r[16])),o(O,"border-radius",te(r[16])),i(_,"class","middleParent svelte-2d7oqk"),i(ne,"class","content svelte-2d7oqk"),i(ke,"class","row svelte-2d7oqk"),i(Ee,"class","label svelte-2d7oqk"),i(Ie,"class","min svelte-2d7oqk"),i(Ve,"class","max svelte-2d7oqk"),i(Ct,"class","xAxis svelte-2d7oqk"),i($t,"class","yAxis svelte-2d7oqk"),i(ze,"class","diseaseArea svelte-2d7oqk"),o(ze,"border-radius","0 6px 6px 0"),o(ze,"left","50.3%"),i(We,"class","message svelte-2d7oqk"),i(Dt,"class","triangle-down svelte-2d7oqk"),i(ve,"class","resultDisplay svelte-2d7oqk"),o(ve,"right",U(r[20])),i(J,"class","result3 svelte-2d7oqk"),o(J,"padding",X(r[20])),o(J,"margin",ee(r[20])),o(J,"border-radius",te(r[20])),i(Y,"class","middleParent svelte-2d7oqk"),i(ce,"class","content svelte-2d7oqk"),i(xe,"class","row svelte-2d7oqk"),i(Oe,"class","lastRow svelte-2d7oqk"),i(t,"class","main svelte-2d7oqk")},m(p,g){w(p,t,g),e(t,s),e(s,n),e(s,c),e(s,m),e(m,d),e(d,a),e(a,h),e(m,b),e(m,f),e(f,T),e(T,le),e(m,x),e(m,A),e(A,G),e(A,D),e(A,se),e(A,F),e(A,z),e(A,R),e(A,B),e(B,M),e(M,N),e(N,S),e(S,ie),e(S,j),e(S,H),e(S,Z),e(Z,L),e(S,P),e(M,C),e(M,qe),e(t,Ae),e(t,re),e(re,be),e(re,Te),e(re,$),e($,Me),e(Me,Je),e(Je,Ke),e($,jt),e($,Ne),e(Ne,Qe),e(Qe,Ue),e($,Et),e($,E),e(E,Xe),e(E,It),e(E,et),e(E,Vt),e(E,we),e(E,Wt),e(E,I),e(I,oe),e(oe,Ge),e(Ge,pe),e(pe,tt),e(pe,_t),e(pe,lt),e(pe,st),e(st,it),e(pe,Ot),e(oe,Yt),e(oe,rt),e(t,Jt),e(t,fe),e(fe,Ce),e(fe,Kt),e(fe,de),e(de,$e),e($e,ot),e(ot,dt),e(de,Qt),e(de,Be),e(Be,at),e(at,nt),e(de,Ut),e(de,V),e(V,mt),e(V,Xt),e(V,ct),e(V,el),e(V,ye),e(V,tl),e(V,W),e(W,ae),e(ae,Se),e(Se,ge),e(ge,vt),e(ge,ll),e(ge,pt),e(ge,gt),e(gt,ut),e(ge,sl),e(ae,il),e(ae,ht),e(t,rl),e(t,ke),e(ke,Pe),e(ke,ol),e(ke,ne),e(ne,De),e(De,bt),e(bt,ft),e(ne,dl),e(ne,Fe),e(Fe,kt),e(kt,xt),e(ne,al),e(ne,_),e(_,qt),e(_,nl),e(_,wt),e(_,ml),e(_,Le),e(_,cl),e(_,O),e(O,me),e(me,Re),e(Re,ue),e(ue,yt),e(ue,vl),e(ue,Lt),e(ue,zt),e(zt,At),e(ue,pl),e(me,gl),e(me,Tt),e(t,ul),e(t,xe),e(xe,Ee),e(xe,hl),e(xe,ce),e(ce,Ie),e(Ie,Mt),e(Mt,Nt),e(ce,bl),e(ce,Ve),e(Ve,Gt),e(Gt,Ht),e(ce,fl),e(ce,Y),e(Y,Ct),e(Y,kl),e(Y,$t),e(Y,xl),e(Y,ze),e(Y,ql),e(Y,J),e(J,ve),e(ve,We),e(We,he),e(he,Bt),e(he,wl),e(he,St),e(he,Zt),e(Zt,Pt),e(he,yl),e(ve,Ll),e(ve,Dt),e(t,zl),e(t,Oe)},p(p,g){g[0]&2&&k(h,p[1]),g[0]&4&&k(le,p[2]),g[0]&8&&k(ie,p[3]),g[0]&16&&k(H,p[4]),g[0]&16&&q!==(q=Q(p[4])+"")&&k(L,q),g[0]&16&&o(M,"right",U(p[4])),g[0]&16&&o(B,"padding",X(p[4])),g[0]&16&&o(B,"margin",ee(p[4])),g[0]&16&&o(B,"border-radius",te(p[4])),g[0]&32&&k(Ke,p[5]),g[0]&64&&k(Ue,p[6]),g[0]&128&&k(tt,p[7]),g[0]&256&&k(lt,p[8]),g[0]&256&&He!==(He=Q(p[8])+"")&&k(it,He),g[0]&256&&o(oe,"right",U(p[8])),g[0]&256&&o(I,"padding",X(p[8])),g[0]&256&&o(I,"margin",ee(p[8])),g[0]&256&&o(I,"border-radius",te(p[8])),g[0]&512&&k(dt,p[9]),g[0]&1024&&k(nt,p[10]),g[0]&2048&&k(vt,p[11]),g[0]&4096&&k(pt,p[12]),g[0]&4096&&Ze!==(Ze=Q(p[12])+"")&&k(ut,Ze),g[0]&4096&&o(ae,"right",U(p[12])),g[0]&4096&&o(W,"padding",X(p[12])),g[0]&4096&&o(W,"margin",ee(p[12])),g[0]&4096&&o(W,"border-radius",te(p[12])),g[0]&8192&&k(ft,p[13]),g[0]&16384&&k(xt,p[14]),g[0]&32768&&k(yt,p[15]),g[0]&65536&&k(Lt,p[16]),g[0]&65536&&je!==(je=Q(p[16])+"")&&k(At,je),g[0]&65536&&o(me,"right",U(p[16])),g[0]&65536&&o(O,"padding",X(p[16])),g[0]&65536&&o(O,"margin",ee(p[16])),g[0]&65536&&o(O,"border-radius",te(p[16])),g[0]&131072&&k(Nt,p[17]),g[0]&262144&&k(Ht,p[18]),g[0]&524288&&k(Bt,p[19]),g[0]&1048576&&k(St,p[20]),g[0]&1048576&&_e!==(_e=Q(p[20])+"")&&k(Pt,_e),g[0]&1048576&&o(ve,"right",U(p[20])),g[0]&1048576&&o(J,"padding",X(p[20])),g[0]&1048576&&o(J,"margin",ee(p[20])),g[0]&1048576&&o(J,"border-radius",te(p[20]))},d(p){p&&y(t)}}}function jl(r){let t,s=r[24]&&Al(r);return{c(){s&&s.c(),t=Ft()},m(n,c){s&&s.m(n,c),w(n,t,c)},p(n,c){n[24]?s?s.p(n,c):(s=Al(n),s.c(),s.m(t.parentNode,t)):s&&(s.d(1),s=null)},d(n){n&&y(t),s&&s.d(n)}}}function El(r){let t,s,n,c=r[21]&&Nl(r),m=r[22]&&Gl(r),d=r[23]&&Hl(r);return{c(){t=l("div"),c&&c.c(),s=v(),m&&m.c(),n=v(),d&&d.c(),i(t,"class","header svelte-2d7oqk")},m(a,h){w(a,t,h),c&&c.m(t,null),e(t,s),m&&m.m(t,null),e(t,n),d&&d.m(t,null)},p(a,h){a[21]?c?c.p(a,h):(c=Nl(a),c.c(),c.m(t,s)):c&&(c.d(1),c=null),a[22]?m?m.p(a,h):(m=Gl(a),m.c(),m.m(t,n)):m&&(m.d(1),m=null),a[23]?d?d.p(a,h):(d=Hl(a),d.c(),d.m(t,null)):d&&(d.d(1),d=null)},d(a){a&&y(t),c&&c.d(),m&&m.d(),d&&d.d()}}}function Al(r){let t;function s(m,d){return m[23]?Vl:Il}let n=s(r),c=n(r);return{c(){c.c(),t=Ft()},m(m,d){c.m(m,d),w(m,t,d)},p(m,d){n===(n=s(m))&&c?c.p(m,d):(c.d(1),c=n(m),c&&(c.c(),c.m(t.parentNode,t)))},d(m){m&&y(t),c.d(m)}}}function Il(r){let t,s,n,c,m,d,a,h,b,f,T,le,x,A,G,D,se,F,z,R,B,M,N,S,ie,j,H,Z,q=r[21]&&Tl(),L=r[22]&&Ml();return{c(){t=l("div"),s=l("div"),n=l("div"),q&&q.c(),c=v(),L&&L.c(),m=v(),d=l("div"),a=u("There is "),h=l("b"),h.textContent=`${r[29]()}`,b=u(" of glycan indexes between "),f=l("br"),T=u(` your patient and Crohn\u2019s
|
|
2
|
-
disease patients.`),le=v(),x=l("div"),A=l("div"),A.textContent="Symptoms to check for:",G=v(),D=l("div"),D.innerHTML=`<b>Diarrhea:</b> Persistent inflammation in the digestive tract often leads to frequent
|
|
3
|
-
<br/> diarrhea.`,se=v(),F=l("div"),F.innerHTML=`<b>Abdominal pain and cramping:</b> Inflammation and ulcers may cause significant <br/>
|
|
4
|
-
abdominal discomfort.`,z=v(),R=l("div"),R.innerHTML=`<b>Weight loss:</b> Nutrient malabsorption due to inflammation can result in unintended
|
|
5
|
-
<br/> weight loss.`,B=v(),M=l("div"),M.textContent="Possible follow-up tests:",N=v(),S=l("div"),S.innerHTML="<b>Stool:</b> FIT (faecal immunochemical test), faecal calprotectin, stool MCS.",ie=v(),j=l("div"),j.innerHTML="<b>Basic blood tests:</b> Full blood count (checking for iron deficiency anaemia), <br/> renal function, liver function, bone profile, CRP.",H=v(),Z=l("div"),Z.innerHTML="<b>CT colonoscopy.</b>",o(n,"width","10%"),o(n,"padding-left","1.5rem"),o(n,"padding-right","1rem"),o(d,"width","90%"),i(s,"class","summaryHeader svelte-2d7oqk"),o(s,"border-radius","8px 8px 0 0"),o(s,"background-color",r[27]()),o(s,"border-bottom","2px solid "+r[26]()),o(A,"font-size","1.2rem"),o(A,"padding-bottom","1rem"),o(D,"font-size","0.7rem"),o(D,"padding-bottom","0.4rem"),o(F,"font-size","0.7rem"),o(F,"padding-bottom","0.4rem"),o(R,"font-size","0.7rem"),o(R,"padding-bottom","0.4rem"),o(M,"font-size","1.2rem"),o(M,"padding-top","1.2rem"),o(M,"padding-bottom","1rem"),o(S,"font-size","0.7rem"),o(S,"padding-bottom","0.4rem"),o(j,"font-size","0.7rem"),o(j,"padding-bottom","0.4rem"),o(Z,"font-size","0.7rem"),o(Z,"padding-bottom","0.4rem"),i(x,"class","summaryBody svelte-2d7oqk"),o(x,"background-color",r[28]()),i(t,"class","summaryMain svelte-2d7oqk"),o(t,"border","2px solid "+r[26]())},m(P,C){w(P,t,C),e(t,s),e(s,n),q&&q.m(n,null),e(n,c),L&&L.m(n,null),e(s,m),e(s,d),e(d,a),e(d,h),e(d,b),e(d,f),e(d,T),e(t,le),e(t,x),e(x,A),e(x,G),e(x,D),e(x,se),e(x,F),e(x,z),e(x,R),e(x,B),e(x,M),e(x,N),e(x,S),e(x,ie),e(x,j),e(x,H),e(x,Z)},p(P,C){P[21]?q||(q=Tl(),q.c(),q.m(n,c)):q&&(q.d(1),q=null),P[22]?L||(L=Ml(),L.c(),L.m(n,null)):L&&(L.d(1),L=null)},d(P){P&&y(t),q&&q.d(),L&&L.d()}}}function Vl(r){let t;return{c(){t=l("div"),t.innerHTML=`<div class="summaryHeader svelte-2d7oqk" 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
|
|
6
|
-
Crohn\u2019s disease patients.</div></div> <div class="summaryBody svelte-2d7oqk" style="opacity: 0.35;"><div style="font-size: 1.2rem; padding-bottom: 1rem;">Symptoms to check for:</div> <div style="font-size: 0.7rem; padding-bottom: 0.4rem;"><b>Diarrhea:</b> Persistent inflammation in the digestive tract often leads to frequent
|
|
7
|
-
<br/> diarrhea.</div> <div style="font-size: 0.7rem; padding-bottom: 0.4rem;"><b>Abdominal pain and cramping:</b> Inflammation and ulcers may cause significant <br/>
|
|
8
|
-
abdominal discomfort.</div> <div style="font-size: 0.7rem; padding-bottom: 0.4rem;"><b>Weight loss:</b> Nutrient malabsorption due to inflammation can result in unintended
|
|
9
|
-
<br/> weight loss.</div> <div style="font-size: 1.2rem; padding-top: 1.2rem;padding-bottom: 1rem;">Possible follow-up tests:</div> <div style="font-size: 0.7rem; padding-bottom: 0.4rem;"><b>Stool:</b> FIT (faecal immunochemical test), faecal calprotectin, stool MCS.</div> <div style="font-size: 0.7rem; padding-bottom: 0.4rem;"><b>Basic blood tests:</b> Full blood count (checking for iron deficiency anaemia), <br/> renal function, liver function, bone profile, CRP.</div> <div style="font-size: 0.7rem; padding-bottom: 0.4rem;"><b>CT colonoscopy.</b></div></div>`,i(t,"class","summaryMain svelte-2d7oqk")},m(s,n){w(s,t,n)},p:Rt,d(s){s&&y(t)}}}function Tl(r){let t,s;return{c(){t=K("svg"),s=K("path"),i(s,"fill","#CC0000"),i(s,"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"),i(t,"xmlns","http://www.w3.org/2000/svg"),i(t,"width","50"),i(t,"height","50"),i(t,"viewBox","0 0 24 24")},m(n,c){w(n,t,c),e(t,s)},d(n){n&&y(t)}}}function Ml(r){let t,s;return{c(){t=K("svg"),s=K("path"),i(s,"fill","#EE9933"),i(s,"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"),i(t,"xmlns","http://www.w3.org/2000/svg"),i(t,"width","50"),i(t,"height","50"),i(t,"viewBox","0 0 24 24")},m(n,c){w(n,t,c),e(t,s)},d(n){n&&y(t)}}}function Nl(r){let t,s,n,c,m,d,a,h;return{c(){t=l("div"),s=l("b"),n=u(r[25]),c=u("/5"),m=v(),d=K("svg"),a=K("path"),h=u(`
|
|
10
|
-
\xA0 Some overlap`),o(t,"padding-right","10px"),i(a,"fill","#F2590D"),i(a,"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"),i(d,"xmlns","http://www.w3.org/2000/svg"),i(d,"width","24"),i(d,"height","24"),i(d,"viewBox","0 0 24 24")},m(b,f){w(b,t,f),e(t,s),e(s,n),e(s,c),w(b,m,f),w(b,d,f),e(d,a),w(b,h,f)},p(b,f){f[0]&33554432&&k(n,b[25])},d(b){b&&(y(t),y(m),y(d),y(h))}}}function Gl(r){let t,s,n,c,m,d,a,h;return{c(){t=l("div"),s=l("b"),n=u(r[25]),c=u("/5"),m=v(),d=K("svg"),a=K("path"),h=u(`
|
|
11
|
-
\xA0 Minor overlap`),o(t,"padding-right","10px"),i(a,"fill","#FFAA00"),i(a,"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"),i(d,"xmlns","http://www.w3.org/2000/svg"),i(d,"width","24"),i(d,"height","24"),i(d,"viewBox","0 0 24 24")},m(b,f){w(b,t,f),e(t,s),e(s,n),e(s,c),w(b,m,f),w(b,d,f),e(d,a),w(b,h,f)},p(b,f){f[0]&33554432&&k(n,b[25])},d(b){b&&(y(t),y(m),y(d),y(h))}}}function Hl(r){let t,s,n,c,m,d,a,h;return{c(){t=l("div"),s=l("b"),n=u(r[25]),c=u("/5"),m=v(),d=K("svg"),a=K("path"),h=u(`
|
|
12
|
-
\xA0 No significant overlap`),o(t,"padding-right","10px"),i(a,"fill","#12A195"),i(a,"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"),i(d,"xmlns","http://www.w3.org/2000/svg"),i(d,"width","24"),i(d,"height","24"),i(d,"viewBox","0 0 24 24")},m(b,f){w(b,t,f),e(t,s),e(s,n),e(s,c),w(b,m,f),w(b,d,f),e(d,a),w(b,h,f)},p(b,f){f[0]&33554432&&k(n,b[25])},d(b){b&&(y(t),y(m),y(d),y(h))}}}function Wl(r){let t,s,n;function c(a,h){return a[0]==="header"?El:a[0]==="summary"?jl:Rl}let m=c(r),d=m(r);return{c(){t=l("head"),t.innerHTML='<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@24,300,1,0"/>',s=v(),d.c(),n=Ft()},m(a,h){w(a,t,h),w(a,s,h),d.m(a,h),w(a,n,h)},p(a,h){m===(m=c(a))&&d?d.p(a,h):(d.d(1),d=m(a),d&&(d.c(),d.m(n.parentNode,n)))},i:Rt,o:Rt,d(a){a&&(y(t),y(s),y(n)),d.d(a)}}}function _l(r,t,s){let{language:n}=t,{report:c}=t,{type:m}=t,{service:d=window.GaReportService}=t,a,h=0,b=0,f=0,T=0,le=0,x=0,A=0,G=0,D=0,se=0,F=0,z=0,R=0,B=0,M=0,N=0,S=0,ie=0,j=0,H=0,Z=!1,q=!1,L=!1,P=!1,C=0;function qe(){return Z?"#CC0000":q?"#EE9933":"#00AA44"}function Ae(){return Z?"rgba(204,0,0,0.15)":q?"rgba(238,153,51,0.15)":"rgba(0,170,68,0.15)"}function re(){return Z?"rgba(204,0,0,0.05)":q?"rgba(238,153,51,0.05)":"rgba(0,170,68,0.05)"}function be(){return Z?"some overlap":q?"a minor overlap":"no significant overlap"}function Te(){T>50&&s(25,C++,C),G<50&&s(25,C++,C),z<50&&s(25,C++,C),N<50&&s(25,C++,C),H>50&&s(25,C++,C)}return Dl(async()=>{if(a=await d.getReport(c),s(1,h=Number(a.G0xmin)),s(2,b=Number(a.G0xmax)),s(3,f=Number(a.G0yourscore)),s(4,T=Number(a.G0percentile)),s(5,le=Number(a.G1xmin)),s(6,x=Number(a.G1xmax)),s(7,A=Number(a.G1yourscore)),s(8,G=Number(a.G1percentile)),s(9,D=Number(a.G2xmin)),s(10,se=Number(a.G2xmax)),s(11,F=Number(a.G2yourscore)),s(12,z=Number(a.G2percentile)),s(13,R=Number(a.Sxmin)),s(14,B=Number(a.Sxmax)),s(15,M=Number(a.Syourscore)),s(16,N=Number(a.Spercentile)),s(17,S=Number(a.Bxmin)),s(18,ie=Number(a.Bxmax)),s(19,j=Number(a.Byourscore)),s(20,H=Number(a.Bpercentile)),Te(),T>50&&G<50&&z<50&&N<50&&H>50){s(21,Z=!0),s(24,P=!0);return}if(T>50||G<50||z<50||N<50||H>50){if(T>50&&G<50&&z<50||T>50&&G<50&&N<50||T>50&&G<50&&H>50||T>50&&z<50&&N<50||T>50&&z<50&&H>50||T>50&&N<50&&H>50||G<50&&z<50&&N<50||G<50&&z<50&&H>50||z<50&&N<50&&H>50){s(22,q=!0),s(24,P=!0);return}s(23,L=!0),s(24,P=!0);return}s(23,L=!0),s(24,P=!0)}),r.$$set=$=>{"language"in $&&s(30,n=$.language),"report"in $&&s(31,c=$.report),"type"in $&&s(0,m=$.type),"service"in $&&s(32,d=$.service)},[m,h,b,f,T,le,x,A,G,D,se,F,z,R,B,M,N,S,ie,j,H,Z,q,L,P,C,qe,Ae,re,be,n,c,d]}class Cl extends Bl{constructor(t){super(),Sl(this,t,_l,Wl,Zl,{language:30,report:31,type:0,service:32},Fl,[-1,-1])}get language(){return this.$$.ctx[30]}set language(t){this.$$set({language:t}),Ye()}get report(){return this.$$.ctx[31]}set report(t){this.$$set({report:t}),Ye()}get type(){return this.$$.ctx[0]}set type(t){this.$$set({type:t}),Ye()}get service(){return this.$$.ctx[32]}set service(t){this.$$set({service:t}),Ye()}}customElements.define("ga-crohn",$l(Cl,{language:{},report:{},type:{},service:{}},[],[],!0));export{Cl as default};
|
|
1
|
+
import{c as Q,S as X,i as _,f as H,s as ee,a as le,e as w,b as L,d as U,g as k,t as Z,h as F,j as T,k as q,o as te,l as S,m as M,n as b,p as a,q as s,r as B,u as R,v as G,w as C,x as N,y as z}from"./index2.js";import{A as I}from"./Arrow.js";import{g as ie}from"./helpers.js";function ne(p){le(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 se(p){let e,l,t,c,f,$,i=p[1]==="mature"&&E(p),m=p[1]==="median"&&W(p),u=p[1]==="youth"&&P(p),d=p[1]==="shield"&&O(p),h=p[1]==="lifestyle"&&Y(p);return{c(){i&&i.c(),e=L(),m&&m.c(),l=L(),u&&u.c(),t=L(),d&&d.c(),c=L(),h&&h.c(),f=U()},m(o,n){i&&i.m(o,n),k(o,e,n),m&&m.m(o,n),k(o,l,n),u&&u.m(o,n),k(o,t,n),d&&d.m(o,n),k(o,c,n),h&&h.m(o,n),k(o,f,n),$=!0},p(o,n){o[1]==="mature"?i?(i.p(o,n),n&2&&T(i,1)):(i=E(o),i.c(),T(i,1),i.m(e.parentNode,e)):i&&(S(),Z(i,1,1,()=>{i=null}),F()),o[1]==="median"?m?(m.p(o,n),n&2&&T(m,1)):(m=W(o),m.c(),T(m,1),m.m(l.parentNode,l)):m&&(S(),Z(m,1,1,()=>{m=null}),F()),o[1]==="youth"?u?(u.p(o,n),n&2&&T(u,1)):(u=P(o),u.c(),T(u,1),u.m(t.parentNode,t)):u&&(S(),Z(u,1,1,()=>{u=null}),F()),o[1]==="shield"?d?(d.p(o,n),n&2&&T(d,1)):(d=O(o),d.c(),T(d,1),d.m(c.parentNode,c)):d&&(S(),Z(d,1,1,()=>{d=null}),F()),o[1]==="lifestyle"?h?(h.p(o,n),n&2&&T(h,1)):(h=Y(o),h.c(),T(h,1),h.m(f.parentNode,f)):h&&(S(),Z(h,1,1,()=>{h=null}),F())},i(o){$||(T(i),T(m),T(u),T(d),T(h),$=!0)},o(o){Z(i),Z(m),Z(u),Z(d),Z(h),$=!1},d(o){o&&(q(e),q(l),q(t),q(c),q(f)),i&&i.d(o),m&&m.d(o),u&&u.d(o),d&&d.d(o),h&&h.d(o)}}}function ae(p){let e,l,t,c,f,$,i=p[2]?"Major overlap":p[3]?"Some overlap":"No significant overlap",m,u,d,h,o,n;function v(y,x){return y[2]||y[3]?de:oe}let g=v(p),r=g(p);return{c(){e=w("div"),l=w("div"),t=w("div"),r.c(),c=L(),f=w("div"),$=w("b"),m=M(i),u=M(" of glycan indexes between "),d=w("br"),h=M(" your patient and this condition."),o=L(),n=w("div"),n.innerHTML='<h5>Signs and symptoms</h5> <ul style="font-size: 0.8rem;"><li>Abdominal pain and cramping</li> <li>Recurring diarrhea (\xB1 blood)</li> <li>Weight loss</li></ul> <h5>Possible follow-up</h5> <ul style="font-size: 0.8rem;"><li>Blood tests: full blood count, renal and liver function, CRP</li> <li>Stool tests: faecal immunochemical test (FIT), faecal calprotectin</li> <li>Referral for CT colonoscopy</li></ul> <h5>Related research papers</h5> <a style="color: #E66439;" href="https://pubmed.ncbi.nlm.nih.gov/25895110/">Inflammatory bowel disease associates with proinflammatory potential of the immunoglobulin G glycome</a> <p style="margin: 0; font-size: 0.8rem; color: #09341FCC;">In a Scottish study examining IgG glycosylation changes in IBS, a cohort of 287 CD patients and 320 controls, all with an average age of 42, was evaluated. The analysis indicated a significant increase in G0 and B glycan traits and a decrease in G1, G2, and S in CD patients compared to controls. The changes in specific glycan peaks showed predictive value, with an AUC of 0.77.</p> <a style="color: #E66439;" href="https://pubmed.ncbi.nlm.nih.gov/29309774/">Glycosylation of Immunoglobulin G Associates With Clinical Features of Inflammatory Bowel Diseases</a> <p style="margin: 0; font-size: 0.8rem; color: #09341FCC;">In a study focusing on CD, a cohort including 874 CD patients from Italy, 391 from the United States, and controls (427 in Italy and 440 from the United States) was analyzed for IgG glycosylation changes. With an average participant age of 35 and an equal gender distribution, the research revealed a decrease in G1, G2, and S glycan traits and an increase in G0, while B remained unchanged. The glycosylation traits contributed to a model achieving an AUC of 0.849, indicating strong predictive capability. A link was noted between decreased galactosylation and more severe CD manifestations, such as the necessity for surgical intervention, compared to controls.</p>',b(t,"transform","translate(-50%)"),b($,"color",p[2]||p[3]?"#F2590D":"#12A195"),a(l,"class","summaryHeader svelte-yt1d5k"),a(n,"class","summaryBody svelte-yt1d5k"),a(e,"class","summaryMain svelte-yt1d5k")},m(y,x){k(y,e,x),s(e,l),s(l,t),r.m(t,null),s(l,c),s(l,f),s(f,$),s($,m),s(f,u),s(f,d),s(f,h),s(e,o),s(e,n)},p(y,x){g!==(g=v(y))&&(r.d(1),r=g(y),r&&(r.c(),r.m(t,null))),x&12&&i!==(i=y[2]?"Major overlap":y[3]?"Some overlap":"No significant overlap")&&B(m,i),x&12&&b($,"color",y[2]||y[3]?"#F2590D":"#12A195")},i:R,o:R,d(y){y&&q(e),r.d()}}}function re(p){let e,l,t,c,f,$,i,m=p[2]?"Major overlap":p[3]?"Some overlap":"No significant overlap",u;function d(n,v){return n[2]||n[3]?me:ce}let h=d(p),o=h(p);return{c(){e=w("div"),l=w("div"),t=w("b"),c=M(p[8]),f=M("/5"),$=L(),o.c(),i=M(`
|
|
2
|
+
\xA0\xA0`),u=M(m),b(l,"padding-right","10px"),a(e,"class","header svelte-yt1d5k")},m(n,v){k(n,e,v),s(e,l),s(l,t),s(t,c),s(t,f),s(e,$),o.m(e,null),s(e,i),s(e,u)},p(n,v){v&256&&B(c,n[8]),h!==(h=d(n))&&(o.d(1),o=h(n),o&&(o.c(),o.m(e,i))),v&12&&m!==(m=n[2]?"Major overlap":n[3]?"Some overlap":"No significant overlap")&&B(u,m)},i:R,o:R,d(n){n&&q(e),o.d()}}}function E(p){let e,l,t,c,f,$,i,m,u,d,h,o,n,v,g;return v=new I({props:{type:"right",percentile:p[7]}}),{c(){e=w("div"),l=w("div"),t=G("svg"),c=G("path"),$=L(),i=w("div"),m=w("div"),m.innerHTML="Glycan <b>Mature (G0)</b>",u=L(),d=w("div"),h=M(p[6]),o=L(),n=w("div"),C(v.$$.fragment),a(c,"fill",f=p[7]<=68?"#12A195":"#F2590D"),a(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"),a(t,"xmlns","http://www.w3.org/2000/svg"),a(t,"width","24"),a(t,"height","24"),a(t,"viewBox","0 0 24 24"),b(i,"display","flex"),b(i,"flex-direction","column"),b(i,"padding-left","0.3rem"),a(l,"class","label svelte-yt1d5k"),b(l,"font-size","0.8rem"),b(n,"width","70%"),b(n,"display","flex"),b(n,"align-items","center"),a(e,"class","main svelte-yt1d5k")},m(r,y){k(r,e,y),s(e,l),s(l,t),s(t,c),s(l,$),s(l,i),s(i,m),s(i,u),s(i,d),s(d,h),s(e,o),s(e,n),N(v,n,null),g=!0},p(r,y){(!g||y&128&&f!==(f=r[7]<=68?"#12A195":"#F2590D"))&&a(c,"fill",f),(!g||y&64)&&B(h,r[6]);const x={};y&128&&(x.percentile=r[7]),v.$set(x)},i(r){g||(T(v.$$.fragment,r),g=!0)},o(r){Z(v.$$.fragment,r),g=!1},d(r){r&&q(e),z(v)}}}function W(p){let e,l,t,c,f,$,i,m,u,d,h,o,n,v,g;return v=new I({props:{type:"left",percentile:p[7]}}),{c(){e=w("div"),l=w("div"),t=G("svg"),c=G("path"),$=L(),i=w("div"),m=w("div"),m.innerHTML="Glycan <b>Median (G1)</b>",u=L(),d=w("div"),h=M(p[6]),o=L(),n=w("div"),C(v.$$.fragment),a(c,"fill",f=p[7]>=32?"#12A195":"#F2590D"),a(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"),a(t,"xmlns","http://www.w3.org/2000/svg"),a(t,"width","24"),a(t,"height","24"),a(t,"viewBox","0 0 24 24"),b(i,"display","flex"),b(i,"flex-direction","column"),b(i,"padding-left","0.3rem"),a(l,"class","label svelte-yt1d5k"),b(l,"font-size","0.8rem"),b(n,"width","70%"),b(n,"display","flex"),b(n,"align-items","center"),a(e,"class","main svelte-yt1d5k")},m(r,y){k(r,e,y),s(e,l),s(l,t),s(t,c),s(l,$),s(l,i),s(i,m),s(i,u),s(i,d),s(d,h),s(e,o),s(e,n),N(v,n,null),g=!0},p(r,y){(!g||y&128&&f!==(f=r[7]>=32?"#12A195":"#F2590D"))&&a(c,"fill",f),(!g||y&64)&&B(h,r[6]);const x={};y&128&&(x.percentile=r[7]),v.$set(x)},i(r){g||(T(v.$$.fragment,r),g=!0)},o(r){Z(v.$$.fragment,r),g=!1},d(r){r&&q(e),z(v)}}}function P(p){let e,l,t,c,f,$,i,m,u,d,h,o,n,v,g;return v=new I({props:{type:"left",percentile:p[7]}}),{c(){e=w("div"),l=w("div"),t=G("svg"),c=G("path"),$=L(),i=w("div"),m=w("div"),m.innerHTML="Glycan <b>Youth (G2)</b>",u=L(),d=w("div"),h=M(p[6]),o=L(),n=w("div"),C(v.$$.fragment),a(c,"fill",f=p[7]>=32?"#12A195":"#F2590D"),a(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"),a(t,"xmlns","http://www.w3.org/2000/svg"),a(t,"width","24"),a(t,"height","24"),a(t,"viewBox","0 0 24 24"),b(i,"display","flex"),b(i,"flex-direction","column"),b(i,"padding-left","0.3rem"),a(l,"class","label svelte-yt1d5k"),b(l,"font-size","0.8rem"),b(n,"width","70%"),b(n,"display","flex"),b(n,"align-items","center"),a(e,"class","main svelte-yt1d5k")},m(r,y){k(r,e,y),s(e,l),s(l,t),s(t,c),s(l,$),s(l,i),s(i,m),s(i,u),s(i,d),s(d,h),s(e,o),s(e,n),N(v,n,null),g=!0},p(r,y){(!g||y&128&&f!==(f=r[7]>=32?"#12A195":"#F2590D"))&&a(c,"fill",f),(!g||y&64)&&B(h,r[6]);const x={};y&128&&(x.percentile=r[7]),v.$set(x)},i(r){g||(T(v.$$.fragment,r),g=!0)},o(r){Z(v.$$.fragment,r),g=!1},d(r){r&&q(e),z(v)}}}function O(p){let e,l,t,c,f,$,i,m,u,d,h,o,n,v,g;return v=new I({props:{type:"left",percentile:p[7]}}),{c(){e=w("div"),l=w("div"),t=G("svg"),c=G("path"),$=L(),i=w("div"),m=w("div"),m.innerHTML="Glycan <b>Shield (S)</b>",u=L(),d=w("div"),h=M(p[6]),o=L(),n=w("div"),C(v.$$.fragment),a(c,"fill",f=p[7]>=32?"#12A195":"#F2590D"),a(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"),a(t,"xmlns","http://www.w3.org/2000/svg"),a(t,"width","24"),a(t,"height","24"),a(t,"viewBox","0 0 24 24"),b(i,"display","flex"),b(i,"flex-direction","column"),b(i,"padding-left","0.3rem"),a(l,"class","label svelte-yt1d5k"),b(l,"font-size","0.8rem"),b(n,"width","70%"),b(n,"display","flex"),b(n,"align-items","center"),a(e,"class","main svelte-yt1d5k")},m(r,y){k(r,e,y),s(e,l),s(l,t),s(t,c),s(l,$),s(l,i),s(i,m),s(i,u),s(i,d),s(d,h),s(e,o),s(e,n),N(v,n,null),g=!0},p(r,y){(!g||y&128&&f!==(f=r[7]>=32?"#12A195":"#F2590D"))&&a(c,"fill",f),(!g||y&64)&&B(h,r[6]);const x={};y&128&&(x.percentile=r[7]),v.$set(x)},i(r){g||(T(v.$$.fragment,r),g=!0)},o(r){Z(v.$$.fragment,r),g=!1},d(r){r&&q(e),z(v)}}}function Y(p){let e,l,t,c,f,$,i,m,u,d,h,o,n,v,g;return v=new I({props:{type:"right",percentile:p[7]}}),{c(){e=w("div"),l=w("div"),t=G("svg"),c=G("path"),$=L(),i=w("div"),m=w("div"),m.innerHTML="Glycan <b>Lifestyle (B)</b>",u=L(),d=w("div"),h=M(p[6]),o=L(),n=w("div"),C(v.$$.fragment),a(c,"fill",f=p[7]<=68?"#12A195":"#F2590D"),a(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"),a(t,"xmlns","http://www.w3.org/2000/svg"),a(t,"width","24"),a(t,"height","24"),a(t,"viewBox","0 0 24 24"),b(i,"display","flex"),b(i,"flex-direction","column"),b(i,"padding-left","0.3rem"),a(l,"class","label svelte-yt1d5k"),b(l,"font-size","0.8rem"),b(n,"width","70%"),b(n,"display","flex"),b(n,"align-items","center"),a(e,"class","main svelte-yt1d5k")},m(r,y){k(r,e,y),s(e,l),s(l,t),s(t,c),s(l,$),s(l,i),s(i,m),s(i,u),s(i,d),s(d,h),s(e,o),s(e,n),N(v,n,null),g=!0},p(r,y){(!g||y&128&&f!==(f=r[7]<=68?"#12A195":"#F2590D"))&&a(c,"fill",f),(!g||y&64)&&B(h,r[6]);const x={};y&128&&(x.percentile=r[7]),v.$set(x)},i(r){g||(T(v.$$.fragment,r),g=!0)},o(r){Z(v.$$.fragment,r),g=!1},d(r){r&&q(e),z(v)}}}function oe(p){let e,l;return{c(){e=G("svg"),l=G("path"),a(l,"fill","#12A195"),a(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"),a(e,"xmlns","http://www.w3.org/2000/svg"),a(e,"width","50"),a(e,"height","50"),a(e,"viewBox","0 0 24 24")},m(t,c){k(t,e,c),s(e,l)},d(t){t&&q(e)}}}function de(p){let e,l;return{c(){e=G("svg"),l=G("path"),a(l,"fill","#F2590D"),a(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"),a(e,"xmlns","http://www.w3.org/2000/svg"),a(e,"width","50"),a(e,"height","50"),a(e,"viewBox","0 0 24 24")},m(t,c){k(t,e,c),s(e,l)},d(t){t&&q(e)}}}function ce(p){let e,l;return{c(){e=G("svg"),l=G("path"),a(l,"fill","#12A195"),a(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"),a(e,"xmlns","http://www.w3.org/2000/svg"),a(e,"width","24"),a(e,"height","24"),a(e,"viewBox","0 0 24 24")},m(t,c){k(t,e,c),s(e,l)},d(t){t&&q(e)}}}function me(p){let e,l;return{c(){e=G("svg"),l=G("path"),a(l,"fill","#F2590D"),a(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"),a(e,"xmlns","http://www.w3.org/2000/svg"),a(e,"width","24"),a(e,"height","24"),a(e,"viewBox","0 0 24 24")},m(t,c){k(t,e,c),s(e,l)},d(t){t&&q(e)}}}function he(p){let e,l,t,c,f,$;const i=[re,ae,se],m=[];function u(d,h){return d[0]==="header"&&d[5]?0:d[0]==="summary"&&d[4]?1:2}return t=u(p),c=m[t]=i[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(),c.c(),f=U()},m(d,h){k(d,e,h),k(d,l,h),m[t].m(d,h),k(d,f,h),$=!0},p(d,[h]){let o=t;t=u(d),t===o?m[t].p(d,h):(S(),Z(m[o],1,1,()=>{m[o]=null}),F(),c=m[t],c?c.p(d,h):(c=m[t]=i[t](d),c.c()),T(c,1),c.m(f.parentNode,f))},i(d){$||(T(c),$=!0)},o(d){Z(c),$=!1},d(d){d&&(q(e),q(l),q(f)),m[t].d(d)}}}function pe(p,e,l){let{report:t}=e,{type:c}=e,{subtype:f}=e,{service:$=window.GaReportService}=e,i=[{name:"mature",csvName:"G0percentile"},{name:"median",csvName:"G1percentile"},{name:"youth",csvName:"G2percentile"},{name:"shield",csvName:"Spercentile"},{name:"lifestyle",csvName:"Bpercentile"}],m,u=!1,d=!1,h=!1,o=!1,n="",v=0,g=0,r=0,y=0,x=0,V=0,D=0;function K(){v>68&&l(8,D++,D),g<32&&l(8,D++,D),r<32&&l(8,D++,D),y<32&&l(8,D++,D),x>68&&l(8,D++,D)}const j=i.find(A=>A.name===f);return te(async()=>{m=await $.getReport(t),j&&(l(7,V=Number(m[j.csvName])),l(6,n=ie(V))),v=Number(m.G0percentile),g=Number(m.G1percentile),r=Number(m.G2percentile),y=Number(m.Spercentile),x=Number(m.Bpercentile),K(),D===5&&l(2,u=!0),D>2&&D<5&&l(3,d=!0),l(5,o=!0),l(4,h=!0)}),p.$$set=A=>{"report"in A&&l(9,t=A.report),"type"in A&&l(0,c=A.type),"subtype"in A&&l(1,f=A.subtype),"service"in A&&l(10,$=A.service)},[c,f,u,d,h,o,n,V,D,t,$]}class J extends X{constructor(e){super(),_(this,e,pe,he,ee,{report:9,type:0,subtype:1,service:10},ne)}get report(){return this.$$.ctx[9]}set report(e){this.$$set({report:e}),H()}get type(){return this.$$.ctx[0]}set type(e){this.$$set({type:e}),H()}get subtype(){return this.$$.ctx[1]}set subtype(e){this.$$set({subtype:e}),H()}get service(){return this.$$.ctx[10]}set service(e){this.$$set({service:e}),H()}}customElements.define("ga-crohn",Q(J,{report:{},type:{},subtype:{},service:{}},[],[],!0));export{J as default};
|
package/dist/diabetes.wc.js
CHANGED
|
@@ -1,16 +1,2 @@
|
|
|
1
|
-
import{c as Bs,S as Zs,i as Ss,f as Je,s as Ds,a as Fs,e as s,b as u,d as Et,g as y,n as Ct,h as w,o as Ps,t as m,j as i,k as o,l as e,m as k,p as Q}from"./index2.js";import{s as U,m as W,g as X,a as ee,b as te}from"./helpers.js";function Es(r){Fs(r,"svelte-2d7oqk",".main.svelte-2d7oqk{width:450px;height:300px;background-color:#f0f6f5;border:2px solid #c8dbd0;border-radius:12px;display:flex;flex-direction:column;justify-content:center}.summaryMain.svelte-2d7oqk{width:500px;height:500px;border-radius:10px}.summaryHeader.svelte-2d7oqk{width:100%;height:20%;font-size:0.9rem;display:flex;align-items:center}.summaryBody.svelte-2d7oqk{width:95%;height:75%;padding:1.5rem 0 0 1.5rem}.row.svelte-2d7oqk{width:100%;height:12%;display:flex;margin:0.2rem 0 0.2rem 0}.label.svelte-2d7oqk{width:14%;height:100%;margin-left:1.5rem;font-size:0.7rem;line-height:0.9rem;display:flex;align-items:start;justify-content:center;flex-direction:column}.content.svelte-2d7oqk{width:86%;height:100%;position:relative}.min.svelte-2d7oqk{position:absolute;top:34%;left:1.6%;font-size:0.6rem;color:#6b8678}.middleParent.svelte-2d7oqk{position:absolute;width:76%;height:80%;left:10%;top:10%;display:flex;align-items:center;justify-content:center;flex-direction:column}.xAxis.svelte-2d7oqk{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-2d7oqk{position:absolute;width:46%;top:10%;height:80%;background-color:#c8dbd0}.result.svelte-2d7oqk{width:1.5%;height:24%;background-color:#33664d;z-index:9998;position:relative}.result2.svelte-2d7oqk{width:1.5%;height:24%;background-color:#33664d;z-index:9998;position:relative}.result3.svelte-2d7oqk{width:1.5%;height:24%;background-color:#33664d;z-index:9998;position:relative}.yAxis.svelte-2d7oqk{position:absolute;left:49.72%;width:0.1rem;height:88%;background-color:#08341f;border-radius:10px}.max.svelte-2d7oqk{position:absolute;top:34%;right:5.5%;font-size:0.6rem;color:#6b8678}.lastRow.svelte-2d7oqk{width:100%;height:11%;display:flex;align-items:center;justify-content:center;margin-top:12px}.dot1.svelte-2d7oqk{height:10px;width:10px;border-radius:99px;background-color:#c8dbd0;border:1px solid black;margin-right:6px}.dot2.svelte-2d7oqk{height:10px;width:10px;border-radius:99px;background-color:#33664d;border:1px solid black;margin:0 6px 0 36px}.resultDisplay.svelte-2d7oqk{position:absolute;bottom:50%;display:flex;align-items:center;flex-direction:column}.message.svelte-2d7oqk{color:#33664d;z-index:99999;min-width:100px;font-size:0.48rem;margin-bottom:-8px}.triangle-down.svelte-2d7oqk{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-2d7oqk{width:100%;height:100%;display:flex;align-items:center}")}function Cs(r){let t,l,n,c,v,d,a,b,h,f,z,se,x,A,G,P,le,E,T,C,Z,N,M,S,ie,O,H,D,q=U(r[4])+"",L,F,$,qe,Ae,re,he,ze,B,Ne,Ke,Qe,Ot,Me,Ue,We,jt,j,Xe,It,et,Rt,ye,Vt,I,oe,Ge,ge,tt,Yt,st,lt,He=U(r[8])+"",it,_t,Jt,rt,Kt,fe,$e,Qt,de,Be,ot,dt,Ut,Ze,at,nt,Wt,R,vt,Xt,ct,es,we,ts,V,ae,Se,pe,ut,ss,gt,pt,De=U(r[12])+"",mt,ls,is,bt,rs,ke,Fe,os,ne,Pe,ht,ft,ds,Ee,kt,xt,as,Y,qt,ns,yt,vs,Le,cs,_,ve,Ce,me,wt,us,Lt,Tt,Oe=U(r[16])+"",At,gs,ps,zt,ms,xe,je,bs,ce,Ie,Nt,Mt,hs,Re,Gt,Ht,fs,J,$t,ks,Bt,xs,Te,qs,K,ue,Ve,be,Zt,ys,St,Dt,Ye=U(r[20])+"",Ft,ws,Ls,Pt,Ts,_e;return{c(){t=s("div"),l=s("div"),n=s("div"),n.innerHTML="Glycan<br/> <b>Mature</b>",c=u(),v=s("div"),d=s("div"),a=s("b"),b=m(r[1]),h=u(),f=s("div"),z=s("b"),se=m(r[2]),x=u(),A=s("div"),G=s("div"),P=u(),le=s("div"),E=u(),T=s("div"),C=u(),Z=s("div"),N=s("div"),M=s("div"),S=s("b"),ie=m(r[3]),O=m(" ("),H=m(r[4]),D=s("sup"),L=m(q),F=m(" percentile)"),$=u(),qe=s("div"),Ae=u(),re=s("div"),he=s("div"),he.innerHTML="Glycan<br/> <b>Median</b>",ze=u(),B=s("div"),Ne=s("div"),Ke=s("b"),Qe=m(r[5]),Ot=u(),Me=s("div"),Ue=s("b"),We=m(r[6]),jt=u(),j=s("div"),Xe=s("div"),It=u(),et=s("div"),Rt=u(),ye=s("div"),Vt=u(),I=s("div"),oe=s("div"),Ge=s("div"),ge=s("b"),tt=m(r[7]),Yt=m(" ("),st=m(r[8]),lt=s("sup"),it=m(He),_t=m(" percentile)"),Jt=u(),rt=s("div"),Kt=u(),fe=s("div"),$e=s("div"),$e.innerHTML="Glycan<br/> <b>Youth</b>",Qt=u(),de=s("div"),Be=s("div"),ot=s("b"),dt=m(r[9]),Ut=u(),Ze=s("div"),at=s("b"),nt=m(r[10]),Wt=u(),R=s("div"),vt=s("div"),Xt=u(),ct=s("div"),es=u(),we=s("div"),ts=u(),V=s("div"),ae=s("div"),Se=s("div"),pe=s("b"),ut=m(r[11]),ss=m(" ("),gt=m(r[12]),pt=s("sup"),mt=m(De),ls=m(" percentile)"),is=u(),bt=s("div"),rs=u(),ke=s("div"),Fe=s("div"),Fe.innerHTML="Glycan<br/> <b>Shield</b>",os=u(),ne=s("div"),Pe=s("div"),ht=s("b"),ft=m(r[13]),ds=u(),Ee=s("div"),kt=s("b"),xt=m(r[14]),as=u(),Y=s("div"),qt=s("div"),ns=u(),yt=s("div"),vs=u(),Le=s("div"),cs=u(),_=s("div"),ve=s("div"),Ce=s("div"),me=s("b"),wt=m(r[15]),us=m(" ("),Lt=m(r[16]),Tt=s("sup"),At=m(Oe),gs=m(" percentile)"),ps=u(),zt=s("div"),ms=u(),xe=s("div"),je=s("div"),je.innerHTML="Glycan<br/> <b>Lifestyle</b>",bs=u(),ce=s("div"),Ie=s("div"),Nt=s("b"),Mt=m(r[17]),hs=u(),Re=s("div"),Gt=s("b"),Ht=m(r[18]),fs=u(),J=s("div"),$t=s("div"),ks=u(),Bt=s("div"),xs=u(),Te=s("div"),qs=u(),K=s("div"),ue=s("div"),Ve=s("div"),be=s("b"),Zt=m(r[19]),ys=m(" ("),St=m(r[20]),Dt=s("sup"),Ft=m(Ye),ws=m(" percentile)"),Ls=u(),Pt=s("div"),Ts=u(),_e=s("div"),_e.innerHTML='<div class="dot1 svelte-2d7oqk"></div> <div style="font-size: 0.8rem;">Type 2 diabetes</div> <div class="dot2 svelte-2d7oqk"></div> <div style="font-size: 0.8rem;">Your patient</div>',i(n,"class","label svelte-2d7oqk"),i(d,"class","min svelte-2d7oqk"),i(f,"class","max svelte-2d7oqk"),i(G,"class","xAxis svelte-2d7oqk"),i(le,"class","yAxis svelte-2d7oqk"),i(T,"class","diseaseArea svelte-2d7oqk"),o(T,"border-radius","0 6px 6px 0"),o(T,"left","50.3%"),i(M,"class","message svelte-2d7oqk"),i(qe,"class","triangle-down svelte-2d7oqk"),i(N,"class","resultDisplay svelte-2d7oqk"),o(N,"right",W(r[4])),i(Z,"class","result svelte-2d7oqk"),o(Z,"padding",X(r[4])),o(Z,"margin",ee(r[4])),o(Z,"border-radius",te(r[4])),i(A,"class","middleParent svelte-2d7oqk"),i(v,"class","content svelte-2d7oqk"),i(l,"class","row svelte-2d7oqk"),i(he,"class","label svelte-2d7oqk"),i(Ne,"class","min svelte-2d7oqk"),i(Me,"class","max svelte-2d7oqk"),i(Xe,"class","xAxis svelte-2d7oqk"),i(et,"class","yAxis svelte-2d7oqk"),i(ye,"class","diseaseArea svelte-2d7oqk"),o(ye,"border-radius","6px 0 0 6px"),o(ye,"right","50.3%"),i(Ge,"class","message svelte-2d7oqk"),i(rt,"class","triangle-down svelte-2d7oqk"),i(oe,"class","resultDisplay svelte-2d7oqk"),o(oe,"right",W(r[8])),i(I,"class","result2 svelte-2d7oqk"),o(I,"padding",X(r[8])),o(I,"margin",ee(r[8])),o(I,"border-radius",te(r[8])),i(j,"class","middleParent svelte-2d7oqk"),i(B,"class","content svelte-2d7oqk"),i(re,"class","row svelte-2d7oqk"),i($e,"class","label svelte-2d7oqk"),i(Be,"class","min svelte-2d7oqk"),i(Ze,"class","max svelte-2d7oqk"),i(vt,"class","xAxis svelte-2d7oqk"),i(ct,"class","yAxis svelte-2d7oqk"),i(we,"class","diseaseArea svelte-2d7oqk"),o(we,"border-radius","6px 0 0 6px"),o(we,"right","50.3%"),i(Se,"class","message svelte-2d7oqk"),i(bt,"class","triangle-down svelte-2d7oqk"),i(ae,"class","resultDisplay svelte-2d7oqk"),o(ae,"right",W(r[12])),i(V,"class","result3 svelte-2d7oqk"),o(V,"padding",X(r[12])),o(V,"margin",ee(r[12])),o(V,"border-radius",te(r[12])),i(R,"class","middleParent svelte-2d7oqk"),i(de,"class","content svelte-2d7oqk"),i(fe,"class","row svelte-2d7oqk"),i(Fe,"class","label svelte-2d7oqk"),i(Pe,"class","min svelte-2d7oqk"),i(Ee,"class","max svelte-2d7oqk"),i(qt,"class","xAxis svelte-2d7oqk"),i(yt,"class","yAxis svelte-2d7oqk"),i(Le,"class","diseaseArea svelte-2d7oqk"),o(Le,"border-radius","6px 0 0 6px"),o(Le,"right","50.3%"),i(Ce,"class","message svelte-2d7oqk"),i(zt,"class","triangle-down svelte-2d7oqk"),i(ve,"class","resultDisplay svelte-2d7oqk"),o(ve,"right",W(r[16])),i(_,"class","result3 svelte-2d7oqk"),o(_,"padding",X(r[16])),o(_,"margin",ee(r[16])),o(_,"border-radius",te(r[16])),i(Y,"class","middleParent svelte-2d7oqk"),i(ne,"class","content svelte-2d7oqk"),i(ke,"class","row svelte-2d7oqk"),i(je,"class","label svelte-2d7oqk"),i(Ie,"class","min svelte-2d7oqk"),i(Re,"class","max svelte-2d7oqk"),i($t,"class","xAxis svelte-2d7oqk"),i(Bt,"class","yAxis svelte-2d7oqk"),i(Te,"class","diseaseArea svelte-2d7oqk"),o(Te,"border-radius","0 6px 6px 0"),o(Te,"left","50.3%"),i(Ve,"class","message svelte-2d7oqk"),i(Pt,"class","triangle-down svelte-2d7oqk"),i(ue,"class","resultDisplay svelte-2d7oqk"),o(ue,"right",W(r[20])),i(K,"class","result3 svelte-2d7oqk"),o(K,"padding",X(r[20])),o(K,"margin",ee(r[20])),o(K,"border-radius",te(r[20])),i(J,"class","middleParent svelte-2d7oqk"),i(ce,"class","content svelte-2d7oqk"),i(xe,"class","row svelte-2d7oqk"),i(_e,"class","lastRow svelte-2d7oqk"),i(t,"class","main svelte-2d7oqk")},m(g,p){y(g,t,p),e(t,l),e(l,n),e(l,c),e(l,v),e(v,d),e(d,a),e(a,b),e(v,h),e(v,f),e(f,z),e(z,se),e(v,x),e(v,A),e(A,G),e(A,P),e(A,le),e(A,E),e(A,T),e(A,C),e(A,Z),e(Z,N),e(N,M),e(M,S),e(S,ie),e(S,O),e(S,H),e(S,D),e(D,L),e(S,F),e(N,$),e(N,qe),e(t,Ae),e(t,re),e(re,he),e(re,ze),e(re,B),e(B,Ne),e(Ne,Ke),e(Ke,Qe),e(B,Ot),e(B,Me),e(Me,Ue),e(Ue,We),e(B,jt),e(B,j),e(j,Xe),e(j,It),e(j,et),e(j,Rt),e(j,ye),e(j,Vt),e(j,I),e(I,oe),e(oe,Ge),e(Ge,ge),e(ge,tt),e(ge,Yt),e(ge,st),e(ge,lt),e(lt,it),e(ge,_t),e(oe,Jt),e(oe,rt),e(t,Kt),e(t,fe),e(fe,$e),e(fe,Qt),e(fe,de),e(de,Be),e(Be,ot),e(ot,dt),e(de,Ut),e(de,Ze),e(Ze,at),e(at,nt),e(de,Wt),e(de,R),e(R,vt),e(R,Xt),e(R,ct),e(R,es),e(R,we),e(R,ts),e(R,V),e(V,ae),e(ae,Se),e(Se,pe),e(pe,ut),e(pe,ss),e(pe,gt),e(pe,pt),e(pt,mt),e(pe,ls),e(ae,is),e(ae,bt),e(t,rs),e(t,ke),e(ke,Fe),e(ke,os),e(ke,ne),e(ne,Pe),e(Pe,ht),e(ht,ft),e(ne,ds),e(ne,Ee),e(Ee,kt),e(kt,xt),e(ne,as),e(ne,Y),e(Y,qt),e(Y,ns),e(Y,yt),e(Y,vs),e(Y,Le),e(Y,cs),e(Y,_),e(_,ve),e(ve,Ce),e(Ce,me),e(me,wt),e(me,us),e(me,Lt),e(me,Tt),e(Tt,At),e(me,gs),e(ve,ps),e(ve,zt),e(t,ms),e(t,xe),e(xe,je),e(xe,bs),e(xe,ce),e(ce,Ie),e(Ie,Nt),e(Nt,Mt),e(ce,hs),e(ce,Re),e(Re,Gt),e(Gt,Ht),e(ce,fs),e(ce,J),e(J,$t),e(J,ks),e(J,Bt),e(J,xs),e(J,Te),e(J,qs),e(J,K),e(K,ue),e(ue,Ve),e(Ve,be),e(be,Zt),e(be,ys),e(be,St),e(be,Dt),e(Dt,Ft),e(be,ws),e(ue,Ls),e(ue,Pt),e(t,Ts),e(t,_e)},p(g,p){p[0]&2&&k(b,g[1]),p[0]&4&&k(se,g[2]),p[0]&8&&k(ie,g[3]),p[0]&16&&k(H,g[4]),p[0]&16&&q!==(q=U(g[4])+"")&&k(L,q),p[0]&16&&o(N,"right",W(g[4])),p[0]&16&&o(Z,"padding",X(g[4])),p[0]&16&&o(Z,"margin",ee(g[4])),p[0]&16&&o(Z,"border-radius",te(g[4])),p[0]&32&&k(Qe,g[5]),p[0]&64&&k(We,g[6]),p[0]&128&&k(tt,g[7]),p[0]&256&&k(st,g[8]),p[0]&256&&He!==(He=U(g[8])+"")&&k(it,He),p[0]&256&&o(oe,"right",W(g[8])),p[0]&256&&o(I,"padding",X(g[8])),p[0]&256&&o(I,"margin",ee(g[8])),p[0]&256&&o(I,"border-radius",te(g[8])),p[0]&512&&k(dt,g[9]),p[0]&1024&&k(nt,g[10]),p[0]&2048&&k(ut,g[11]),p[0]&4096&&k(gt,g[12]),p[0]&4096&&De!==(De=U(g[12])+"")&&k(mt,De),p[0]&4096&&o(ae,"right",W(g[12])),p[0]&4096&&o(V,"padding",X(g[12])),p[0]&4096&&o(V,"margin",ee(g[12])),p[0]&4096&&o(V,"border-radius",te(g[12])),p[0]&8192&&k(ft,g[13]),p[0]&16384&&k(xt,g[14]),p[0]&32768&&k(wt,g[15]),p[0]&65536&&k(Lt,g[16]),p[0]&65536&&Oe!==(Oe=U(g[16])+"")&&k(At,Oe),p[0]&65536&&o(ve,"right",W(g[16])),p[0]&65536&&o(_,"padding",X(g[16])),p[0]&65536&&o(_,"margin",ee(g[16])),p[0]&65536&&o(_,"border-radius",te(g[16])),p[0]&131072&&k(Mt,g[17]),p[0]&262144&&k(Ht,g[18]),p[0]&524288&&k(Zt,g[19]),p[0]&1048576&&k(St,g[20]),p[0]&1048576&&Ye!==(Ye=U(g[20])+"")&&k(Ft,Ye),p[0]&1048576&&o(ue,"right",W(g[20])),p[0]&1048576&&o(K,"padding",X(g[20])),p[0]&1048576&&o(K,"margin",ee(g[20])),p[0]&1048576&&o(K,"border-radius",te(g[20]))},d(g){g&&w(t)}}}function Os(r){let t,l=r[24]&&As(r);return{c(){l&&l.c(),t=Et()},m(n,c){l&&l.m(n,c),y(n,t,c)},p(n,c){n[24]?l?l.p(n,c):(l=As(n),l.c(),l.m(t.parentNode,t)):l&&(l.d(1),l=null)},d(n){n&&w(t),l&&l.d(n)}}}function js(r){let t,l,n,c=r[21]&&Ms(r),v=r[22]&&Gs(r),d=r[23]&&Hs(r);return{c(){t=s("div"),c&&c.c(),l=u(),v&&v.c(),n=u(),d&&d.c(),i(t,"class","header svelte-2d7oqk")},m(a,b){y(a,t,b),c&&c.m(t,null),e(t,l),v&&v.m(t,null),e(t,n),d&&d.m(t,null)},p(a,b){a[21]?c?c.p(a,b):(c=Ms(a),c.c(),c.m(t,l)):c&&(c.d(1),c=null),a[22]?v?v.p(a,b):(v=Gs(a),v.c(),v.m(t,n)):v&&(v.d(1),v=null),a[23]?d?d.p(a,b):(d=Hs(a),d.c(),d.m(t,null)):d&&(d.d(1),d=null)},d(a){a&&w(t),c&&c.d(),v&&v.d(),d&&d.d()}}}function As(r){let t;function l(v,d){return v[23]?Rs:Is}let n=l(r),c=n(r);return{c(){c.c(),t=Et()},m(v,d){c.m(v,d),y(v,t,d)},p(v,d){n===(n=l(v))&&c?c.p(v,d):(c.d(1),c=n(v),c&&(c.c(),c.m(t.parentNode,t)))},d(v){v&&w(t),c.d(v)}}}function Is(r){let t,l,n,c,v,d,a,b,h,f,z,se,x,A,G,P,le,E,T,C,Z,N,M,S,ie,O,H,D,q=r[21]&&zs(),L=r[22]&&Ns();return{c(){t=s("div"),l=s("div"),n=s("div"),q&&q.c(),c=u(),L&&L.c(),v=u(),d=s("div"),a=m("There is "),b=s("b"),b.textContent=`${r[29]()}`,h=m(" of glycan indexes between "),f=s("br"),z=m(` your patient and type 2 diabetes
|
|
2
|
-
disease patients.`),se=u(),x=s("div"),A=s("div"),A.textContent="Symptoms to check for:",G=u(),P=s("div"),P.innerHTML=`<b>Increased thirst and frequent urination:</b> Elevated blood sugar levels lead to
|
|
3
|
-
<br/> increased fluid loss through urination, causing thirst and dehydration.`,le=u(),E=s("div"),E.innerHTML="<b>Fatigue:</b> Lack of sufficient energy from glucose can cause tiredness and fatigue.",T=u(),C=s("div"),C.innerHTML=`<b>Blurred vision:</b> High blood glucose levels can affect the eyes, leading to blurry
|
|
4
|
-
<br/> vision.`,Z=u(),N=s("div"),N.textContent="Possible follow-up tests:",M=u(),S=s("div"),S.innerHTML=`<b>HbA1c test:</b> This blood test provides information about average blood glucose
|
|
5
|
-
<br/> levels over the past 3 months.`,ie=u(),O=s("div"),O.innerHTML=`<b>Fasting blood sugar test:</b> It measures the blood glucose levels after an overnight
|
|
6
|
-
<br/> fast to assess the body s glucose regulation.`,H=u(),D=s("div"),D.innerHTML=`<b>Oral glucose tolerance test (OGTT):</b> This assesses the body s response to <br/>
|
|
7
|
-
glucose to determine insulin resistance and diabetes.`,o(n,"width","10%"),o(n,"padding-left","1.5rem"),o(n,"padding-right","1rem"),o(d,"width","90%"),i(l,"class","summaryHeader svelte-2d7oqk"),o(l,"border-radius","8px 8px 0 0"),o(l,"background-color",r[27]()),o(l,"border-bottom","2px solid "+r[26]()),o(A,"font-size","1.2rem"),o(A,"padding-bottom","1rem"),o(P,"font-size","0.7rem"),o(P,"padding-bottom","0.4rem"),o(E,"font-size","0.7rem"),o(E,"padding-bottom","0.4rem"),o(C,"font-size","0.7rem"),o(C,"padding-bottom","0.4rem"),o(N,"font-size","1.2rem"),o(N,"padding-top","1.2rem"),o(N,"padding-bottom","1rem"),o(S,"font-size","0.7rem"),o(S,"padding-bottom","0.4rem"),o(O,"font-size","0.7rem"),o(O,"padding-bottom","0.4rem"),o(D,"font-size","0.7rem"),o(D,"padding-bottom","0.4rem"),i(x,"class","summaryBody svelte-2d7oqk"),o(x,"background-color",r[28]()),i(t,"class","summaryMain svelte-2d7oqk"),o(t,"border","2px solid "+r[26]())},m(F,$){y(F,t,$),e(t,l),e(l,n),q&&q.m(n,null),e(n,c),L&&L.m(n,null),e(l,v),e(l,d),e(d,a),e(d,b),e(d,h),e(d,f),e(d,z),e(t,se),e(t,x),e(x,A),e(x,G),e(x,P),e(x,le),e(x,E),e(x,T),e(x,C),e(x,Z),e(x,N),e(x,M),e(x,S),e(x,ie),e(x,O),e(x,H),e(x,D)},p(F,$){F[21]?q||(q=zs(),q.c(),q.m(n,c)):q&&(q.d(1),q=null),F[22]?L||(L=Ns(),L.c(),L.m(n,null)):L&&(L.d(1),L=null)},d(F){F&&w(t),q&&q.d(),L&&L.d()}}}function Rs(r){let t;return{c(){t=s("div"),t.innerHTML=`<div class="summaryHeader svelte-2d7oqk" 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
|
-
type 2 diabetes disease patients.</div></div> <div class="summaryBody svelte-2d7oqk" style="opacity: 0.35;"><div style="font-size: 1.2rem; padding-bottom: 1rem;">Symptoms to check for:</div> <div style="font-size: 0.7rem; padding-bottom: 0.4rem;"><b>Increased thirst and frequent urination:</b> Elevated blood sugar levels lead to
|
|
9
|
-
<br/> increased fluid loss through urination, causing thirst and dehydration.</div> <div style="font-size: 0.7rem; padding-bottom: 0.4rem;"><b>Fatigue:</b> Lack of sufficient energy from glucose can cause tiredness and fatigue.</div> <div style="font-size: 0.7rem; padding-bottom: 0.4rem;"><b>Blurred vision:</b> High blood glucose levels can affect the eyes, leading to blurry
|
|
10
|
-
<br/> vision.</div> <div style="font-size: 1.2rem; padding-top: 1.2rem;padding-bottom: 1rem;">Possible follow-up tests:</div> <div style="font-size: 0.7rem; padding-bottom: 0.4rem;"><b>HbA1c test:</b> This blood test provides information about average blood glucose
|
|
11
|
-
<br/> levels over the past 3 months.</div> <div style="font-size: 0.7rem; padding-bottom: 0.4rem;"><b>Fasting blood sugar test:</b> It measures the blood glucose levels after an overnight
|
|
12
|
-
<br/> fast to assess the body s glucose regulation.</div> <div style="font-size: 0.7rem; padding-bottom: 0.4rem;"><b>Oral glucose tolerance test (OGTT):</b> This assesses the body s response to <br/>
|
|
13
|
-
glucose to determine insulin resistance and diabetes.</div></div>`,i(t,"class","summaryMain svelte-2d7oqk")},m(l,n){y(l,t,n)},p:Ct,d(l){l&&w(t)}}}function zs(r){let t,l;return{c(){t=Q("svg"),l=Q("path"),i(l,"fill","#CC0000"),i(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"),i(t,"xmlns","http://www.w3.org/2000/svg"),i(t,"width","50"),i(t,"height","50"),i(t,"viewBox","0 0 24 24")},m(n,c){y(n,t,c),e(t,l)},d(n){n&&w(t)}}}function Ns(r){let t,l;return{c(){t=Q("svg"),l=Q("path"),i(l,"fill","#EE9933"),i(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"),i(t,"xmlns","http://www.w3.org/2000/svg"),i(t,"width","50"),i(t,"height","50"),i(t,"viewBox","0 0 24 24")},m(n,c){y(n,t,c),e(t,l)},d(n){n&&w(t)}}}function Ms(r){let t,l,n,c,v,d,a,b;return{c(){t=s("div"),l=s("b"),n=m(r[25]),c=m("/5"),v=u(),d=Q("svg"),a=Q("path"),b=m(`
|
|
14
|
-
\xA0 Some overlap`),o(t,"padding-right","10px"),i(a,"fill","#F2590D"),i(a,"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"),i(d,"xmlns","http://www.w3.org/2000/svg"),i(d,"width","24"),i(d,"height","24"),i(d,"viewBox","0 0 24 24")},m(h,f){y(h,t,f),e(t,l),e(l,n),e(l,c),y(h,v,f),y(h,d,f),e(d,a),y(h,b,f)},p(h,f){f[0]&33554432&&k(n,h[25])},d(h){h&&(w(t),w(v),w(d),w(b))}}}function Gs(r){let t,l,n,c,v,d,a,b;return{c(){t=s("div"),l=s("b"),n=m(r[25]),c=m("/5"),v=u(),d=Q("svg"),a=Q("path"),b=m(`
|
|
15
|
-
\xA0 Minor overlap`),o(t,"padding-right","10px"),i(a,"fill","#FFAA00"),i(a,"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"),i(d,"xmlns","http://www.w3.org/2000/svg"),i(d,"width","24"),i(d,"height","24"),i(d,"viewBox","0 0 24 24")},m(h,f){y(h,t,f),e(t,l),e(l,n),e(l,c),y(h,v,f),y(h,d,f),e(d,a),y(h,b,f)},p(h,f){f[0]&33554432&&k(n,h[25])},d(h){h&&(w(t),w(v),w(d),w(b))}}}function Hs(r){let t,l,n,c,v,d,a,b;return{c(){t=s("div"),l=s("b"),n=m(r[25]),c=m("/5"),v=u(),d=Q("svg"),a=Q("path"),b=m(`
|
|
16
|
-
\xA0 No significant overlap`),o(t,"padding-right","10px"),i(a,"fill","#12A195"),i(a,"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"),i(d,"xmlns","http://www.w3.org/2000/svg"),i(d,"width","24"),i(d,"height","24"),i(d,"viewBox","0 0 24 24")},m(h,f){y(h,t,f),e(t,l),e(l,n),e(l,c),y(h,v,f),y(h,d,f),e(d,a),y(h,b,f)},p(h,f){f[0]&33554432&&k(n,h[25])},d(h){h&&(w(t),w(v),w(d),w(b))}}}function Vs(r){let t,l,n;function c(a,b){return a[0]==="header"?js:a[0]==="summary"?Os:Cs}let v=c(r),d=v(r);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"/>',l=u(),d.c(),n=Et()},m(a,b){y(a,t,b),y(a,l,b),d.m(a,b),y(a,n,b)},p(a,b){v===(v=c(a))&&d?d.p(a,b):(d.d(1),d=v(a),d&&(d.c(),d.m(n.parentNode,n)))},i:Ct,o:Ct,d(a){a&&(w(t),w(l),w(n)),d.d(a)}}}function Ys(r,t,l){let{language:n}=t,{report:c}=t,{type:v}=t,{service:d=window.GaReportService}=t,a,b=0,h=0,f=0,z=0,se=0,x=0,A=0,G=0,P=0,le=0,E=0,T=0,C=0,Z=0,N=0,M=0,S=0,ie=0,O=0,H=0,D=!1,q=!1,L=!1,F=!1,$=0;function qe(){return D?"#CC0000":q?"#EE9933":"#00AA44"}function Ae(){return D?"rgba(204,0,0,0.15)":q?"rgba(238,153,51,0.15)":"rgba(0,170,68,0.15)"}function re(){return D?"rgba(204,0,0,0.05)":q?"rgba(238,153,51,0.05)":"rgba(0,170,68,0.05)"}function he(){return D?"some overlap":q?"a minor overlap":"no significant overlap"}function ze(){z>50&&l(25,$++,$),G<50&&l(25,$++,$),T<50&&l(25,$++,$),M<50&&l(25,$++,$),H>50&&l(25,$++,$)}return Ps(async()=>{if(a=await d.getReport(c),l(1,b=Number(a.G0xmin)),l(2,h=Number(a.G0xmax)),l(3,f=Number(a.G0yourscore)),l(4,z=Number(a.G0percentile)),l(5,se=Number(a.G1xmin)),l(6,x=Number(a.G1xmax)),l(7,A=Number(a.G1yourscore)),l(8,G=Number(a.G1percentile)),l(9,P=Number(a.G2xmin)),l(10,le=Number(a.G2xmax)),l(11,E=Number(a.G2yourscore)),l(12,T=Number(a.G2percentile)),l(13,C=Number(a.Sxmin)),l(14,Z=Number(a.Sxmax)),l(15,N=Number(a.Syourscore)),l(16,M=Number(a.Spercentile)),l(17,S=Number(a.Bxmin)),l(18,ie=Number(a.Bxmax)),l(19,O=Number(a.Byourscore)),l(20,H=Number(a.Bpercentile)),ze(),z>50&&G<50&&T<50&&M<50&&H>50){l(21,D=!0),l(24,F=!0);return}if(z>50||G<50||T<50||M<50||H>50){if(z>50&&G<50&&T<50||z>50&&G<50&&M<50||z>50&&G<50&&H>50||z>50&&T<50&&M<50||z>50&&T<50&&H>50||z>50&&M<50&&H>50||G<50&&T<50&&M<50||G<50&&T<50&&H>50||T<50&&M<50&&H>50){l(22,q=!0),l(24,F=!0);return}l(23,L=!0),l(24,F=!0);return}l(23,L=!0),l(24,F=!0)}),r.$$set=B=>{"language"in B&&l(30,n=B.language),"report"in B&&l(31,c=B.report),"type"in B&&l(0,v=B.type),"service"in B&&l(32,d=B.service)},[v,b,h,f,z,se,x,A,G,P,le,E,T,C,Z,N,M,S,ie,O,H,D,q,L,F,$,qe,Ae,re,he,n,c,d]}class $s extends Zs{constructor(t){super(),Ss(this,t,Ys,Vs,Ds,{language:30,report:31,type:0,service:32},Es,[-1,-1])}get language(){return this.$$.ctx[30]}set language(t){this.$$set({language:t}),Je()}get report(){return this.$$.ctx[31]}set report(t){this.$$set({report:t}),Je()}get type(){return this.$$.ctx[0]}set type(t){this.$$set({type:t}),Je()}get service(){return this.$$.ctx[32]}set service(t){this.$$set({service:t}),Je()}}customElements.define("ga-diabetes",Bs($s,{language:{},report:{},type:{},service:{}},[],[],!0));export{$s as default};
|
|
1
|
+
import{c as J,S as Q,i as X,f as I,s as ee,a as le,e as w,b as L,d as j,g as k,t as M,h as F,j as T,k as q,o as te,l as S,m as G,n as b,p as r,q as s,r as B,u as R,v as A,w as z,x as C,y as D}from"./index2.js";import{A as H}from"./Arrow.js";import{g as ie}from"./helpers.js";function ne(m){le(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 se(m){let e,l,t,c,u,$,i=m[1]==="mature"&&O(m),p=m[1]==="median"&&E(m),f=m[1]==="youth"&&U(m),o=m[1]==="shield"&&P(m),h=m[1]==="lifestyle"&&W(m);return{c(){i&&i.c(),e=L(),p&&p.c(),l=L(),f&&f.c(),t=L(),o&&o.c(),c=L(),h&&h.c(),u=j()},m(d,n){i&&i.m(d,n),k(d,e,n),p&&p.m(d,n),k(d,l,n),f&&f.m(d,n),k(d,t,n),o&&o.m(d,n),k(d,c,n),h&&h.m(d,n),k(d,u,n),$=!0},p(d,n){d[1]==="mature"?i?(i.p(d,n),n&2&&T(i,1)):(i=O(d),i.c(),T(i,1),i.m(e.parentNode,e)):i&&(S(),M(i,1,1,()=>{i=null}),F()),d[1]==="median"?p?(p.p(d,n),n&2&&T(p,1)):(p=E(d),p.c(),T(p,1),p.m(l.parentNode,l)):p&&(S(),M(p,1,1,()=>{p=null}),F()),d[1]==="youth"?f?(f.p(d,n),n&2&&T(f,1)):(f=U(d),f.c(),T(f,1),f.m(t.parentNode,t)):f&&(S(),M(f,1,1,()=>{f=null}),F()),d[1]==="shield"?o?(o.p(d,n),n&2&&T(o,1)):(o=P(d),o.c(),T(o,1),o.m(c.parentNode,c)):o&&(S(),M(o,1,1,()=>{o=null}),F()),d[1]==="lifestyle"?h?(h.p(d,n),n&2&&T(h,1)):(h=W(d),h.c(),T(h,1),h.m(u.parentNode,u)):h&&(S(),M(h,1,1,()=>{h=null}),F())},i(d){$||(T(i),T(p),T(f),T(o),T(h),$=!0)},o(d){M(i),M(p),M(f),M(o),M(h),$=!1},d(d){d&&(q(e),q(l),q(t),q(c),q(u)),i&&i.d(d),p&&p.d(d),f&&f.d(d),o&&o.d(d),h&&h.d(d)}}}function re(m){let e,l,t,c,u,$,i=m[2]?"Major overlap":m[3]?"Some overlap":"No significant overlap",p,f,o,h,d,n;function v(y,x){return y[2]||y[3]?oe:de}let g=v(m),a=g(m);return{c(){e=w("div"),l=w("div"),t=w("div"),a.c(),c=L(),u=w("div"),$=w("b"),p=G(i),f=G(" of glycan indexes between "),o=w("br"),h=G(" your patient and this condition."),d=L(),n=w("div"),n.innerHTML='<h5>Signs and symptoms</h5> <ul style="font-size: 0.8rem;"><li>Fatigue</li> <li>Increased thirst and frequent urination</li> <li>Slow wound healing, blurred vision, frequent thrush</li></ul> <h5>Possible follow-up</h5> <ul style="font-size: 0.8rem;"><li>Blood tests: full blood count, renal and liver function, fasting glucose and insulin, HbA1c, HOMA-IR</li> <li>BP check</li> <li>BMI and/or body composition check</li></ul> <h5>Related research papers</h5> <a style="color: #E66439;" href="https://pubmed.ncbi.nlm.nih.gov/28668296/">IgG glycan patterns are associated with type 2 diabetes in independent European populations</a> <p style="margin: 0; font-size: 0.8rem; color: #09341FCC;">In the DiaGene study, a population-based case-control study with 1,886 cases and 854 controls, 58 IgG glycan traits were analyzed. The findings were then replicated and meta-analyzed in the combined population-based studies of CROATIA-Korcula, CROATIA-Vis, and ORCADES, involving 162 cases and 3,162 controls. Within this research, 46% of cases and 60% of controls were female, with an average participant age of 65. The analysis revealed a decrease in G1, G2, and S glycans, alongside an increase in G0 and B. A predictive model incorporating four specific glycan peaks achieved an AUC of 0.729. When IgG glycans were added to a model containing only age and sex, the AUC improved from 0.542 to 0.734, although incorporating them into a more comprehensive model did not significantly enhance the AUC.</p>',b(t,"transform","translate(-50%)"),b($,"color",m[2]||m[3]?"#F2590D":"#12A195"),r(l,"class","summaryHeader svelte-yt1d5k"),r(n,"class","summaryBody svelte-yt1d5k"),r(e,"class","summaryMain svelte-yt1d5k")},m(y,x){k(y,e,x),s(e,l),s(l,t),a.m(t,null),s(l,c),s(l,u),s(u,$),s($,p),s(u,f),s(u,o),s(u,h),s(e,d),s(e,n)},p(y,x){g!==(g=v(y))&&(a.d(1),a=g(y),a&&(a.c(),a.m(t,null))),x&12&&i!==(i=y[2]?"Major overlap":y[3]?"Some overlap":"No significant overlap")&&B(p,i),x&12&&b($,"color",y[2]||y[3]?"#F2590D":"#12A195")},i:R,o:R,d(y){y&&q(e),a.d()}}}function ae(m){let e,l,t,c,u,$,i,p=m[2]?"Major overlap":m[3]?"Some overlap":"No significant overlap",f;function o(n,v){return n[2]||n[3]?pe:ce}let h=o(m),d=h(m);return{c(){e=w("div"),l=w("div"),t=w("b"),c=G(m[8]),u=G("/5"),$=L(),d.c(),i=G(`
|
|
2
|
+
\xA0\xA0`),f=G(p),b(l,"padding-right","10px"),r(e,"class","header svelte-yt1d5k")},m(n,v){k(n,e,v),s(e,l),s(l,t),s(t,c),s(t,u),s(e,$),d.m(e,null),s(e,i),s(e,f)},p(n,v){v&256&&B(c,n[8]),h!==(h=o(n))&&(d.d(1),d=h(n),d&&(d.c(),d.m(e,i))),v&12&&p!==(p=n[2]?"Major overlap":n[3]?"Some overlap":"No significant overlap")&&B(f,p)},i:R,o:R,d(n){n&&q(e),d.d()}}}function O(m){let e,l,t,c,u,$,i,p,f,o,h,d,n,v,g;return v=new H({props:{type:"right",percentile:m[7]}}),{c(){e=w("div"),l=w("div"),t=A("svg"),c=A("path"),$=L(),i=w("div"),p=w("div"),p.innerHTML="Glycan <b>Mature (G0)</b>",f=L(),o=w("div"),h=G(m[6]),d=L(),n=w("div"),z(v.$$.fragment),r(c,"fill",u=m[7]<=68?"#12A195":"#F2590D"),r(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"),r(t,"xmlns","http://www.w3.org/2000/svg"),r(t,"width","24"),r(t,"height","24"),r(t,"viewBox","0 0 24 24"),b(i,"display","flex"),b(i,"flex-direction","column"),b(i,"padding-left","0.3rem"),r(l,"class","label svelte-yt1d5k"),b(l,"font-size","0.8rem"),b(n,"width","70%"),b(n,"display","flex"),b(n,"align-items","center"),r(e,"class","main svelte-yt1d5k")},m(a,y){k(a,e,y),s(e,l),s(l,t),s(t,c),s(l,$),s(l,i),s(i,p),s(i,f),s(i,o),s(o,h),s(e,d),s(e,n),C(v,n,null),g=!0},p(a,y){(!g||y&128&&u!==(u=a[7]<=68?"#12A195":"#F2590D"))&&r(c,"fill",u),(!g||y&64)&&B(h,a[6]);const x={};y&128&&(x.percentile=a[7]),v.$set(x)},i(a){g||(T(v.$$.fragment,a),g=!0)},o(a){M(v.$$.fragment,a),g=!1},d(a){a&&q(e),D(v)}}}function E(m){let e,l,t,c,u,$,i,p,f,o,h,d,n,v,g;return v=new H({props:{type:"left",percentile:m[7]}}),{c(){e=w("div"),l=w("div"),t=A("svg"),c=A("path"),$=L(),i=w("div"),p=w("div"),p.innerHTML="Glycan <b>Median (G1)</b>",f=L(),o=w("div"),h=G(m[6]),d=L(),n=w("div"),z(v.$$.fragment),r(c,"fill",u=m[7]>=32?"#12A195":"#F2590D"),r(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"),r(t,"xmlns","http://www.w3.org/2000/svg"),r(t,"width","24"),r(t,"height","24"),r(t,"viewBox","0 0 24 24"),b(i,"display","flex"),b(i,"flex-direction","column"),b(i,"padding-left","0.3rem"),r(l,"class","label svelte-yt1d5k"),b(l,"font-size","0.8rem"),b(n,"width","70%"),b(n,"display","flex"),b(n,"align-items","center"),r(e,"class","main svelte-yt1d5k")},m(a,y){k(a,e,y),s(e,l),s(l,t),s(t,c),s(l,$),s(l,i),s(i,p),s(i,f),s(i,o),s(o,h),s(e,d),s(e,n),C(v,n,null),g=!0},p(a,y){(!g||y&128&&u!==(u=a[7]>=32?"#12A195":"#F2590D"))&&r(c,"fill",u),(!g||y&64)&&B(h,a[6]);const x={};y&128&&(x.percentile=a[7]),v.$set(x)},i(a){g||(T(v.$$.fragment,a),g=!0)},o(a){M(v.$$.fragment,a),g=!1},d(a){a&&q(e),D(v)}}}function U(m){let e,l,t,c,u,$,i,p,f,o,h,d,n,v,g;return v=new H({props:{type:"left",percentile:m[7]}}),{c(){e=w("div"),l=w("div"),t=A("svg"),c=A("path"),$=L(),i=w("div"),p=w("div"),p.innerHTML="Glycan <b>Youth (G2)</b>",f=L(),o=w("div"),h=G(m[6]),d=L(),n=w("div"),z(v.$$.fragment),r(c,"fill",u=m[7]>=32?"#12A195":"#F2590D"),r(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"),r(t,"xmlns","http://www.w3.org/2000/svg"),r(t,"width","24"),r(t,"height","24"),r(t,"viewBox","0 0 24 24"),b(i,"display","flex"),b(i,"flex-direction","column"),b(i,"padding-left","0.3rem"),r(l,"class","label svelte-yt1d5k"),b(l,"font-size","0.8rem"),b(n,"width","70%"),b(n,"display","flex"),b(n,"align-items","center"),r(e,"class","main svelte-yt1d5k")},m(a,y){k(a,e,y),s(e,l),s(l,t),s(t,c),s(l,$),s(l,i),s(i,p),s(i,f),s(i,o),s(o,h),s(e,d),s(e,n),C(v,n,null),g=!0},p(a,y){(!g||y&128&&u!==(u=a[7]>=32?"#12A195":"#F2590D"))&&r(c,"fill",u),(!g||y&64)&&B(h,a[6]);const x={};y&128&&(x.percentile=a[7]),v.$set(x)},i(a){g||(T(v.$$.fragment,a),g=!0)},o(a){M(v.$$.fragment,a),g=!1},d(a){a&&q(e),D(v)}}}function P(m){let e,l,t,c,u,$,i,p,f,o,h,d,n,v,g;return v=new H({props:{type:"left",percentile:m[7]}}),{c(){e=w("div"),l=w("div"),t=A("svg"),c=A("path"),$=L(),i=w("div"),p=w("div"),p.innerHTML="Glycan <b>Shield (S)</b>",f=L(),o=w("div"),h=G(m[6]),d=L(),n=w("div"),z(v.$$.fragment),r(c,"fill",u=m[7]>=32?"#12A195":"#F2590D"),r(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"),r(t,"xmlns","http://www.w3.org/2000/svg"),r(t,"width","24"),r(t,"height","24"),r(t,"viewBox","0 0 24 24"),b(i,"display","flex"),b(i,"flex-direction","column"),b(i,"padding-left","0.3rem"),r(l,"class","label svelte-yt1d5k"),b(l,"font-size","0.8rem"),b(n,"width","70%"),b(n,"display","flex"),b(n,"align-items","center"),r(e,"class","main svelte-yt1d5k")},m(a,y){k(a,e,y),s(e,l),s(l,t),s(t,c),s(l,$),s(l,i),s(i,p),s(i,f),s(i,o),s(o,h),s(e,d),s(e,n),C(v,n,null),g=!0},p(a,y){(!g||y&128&&u!==(u=a[7]>=32?"#12A195":"#F2590D"))&&r(c,"fill",u),(!g||y&64)&&B(h,a[6]);const x={};y&128&&(x.percentile=a[7]),v.$set(x)},i(a){g||(T(v.$$.fragment,a),g=!0)},o(a){M(v.$$.fragment,a),g=!1},d(a){a&&q(e),D(v)}}}function W(m){let e,l,t,c,u,$,i,p,f,o,h,d,n,v,g;return v=new H({props:{type:"right",percentile:m[7]}}),{c(){e=w("div"),l=w("div"),t=A("svg"),c=A("path"),$=L(),i=w("div"),p=w("div"),p.innerHTML="Glycan <b>Lifestyle (B)</b>",f=L(),o=w("div"),h=G(m[6]),d=L(),n=w("div"),z(v.$$.fragment),r(c,"fill",u=m[7]<=68?"#12A195":"#F2590D"),r(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"),r(t,"xmlns","http://www.w3.org/2000/svg"),r(t,"width","24"),r(t,"height","24"),r(t,"viewBox","0 0 24 24"),b(i,"display","flex"),b(i,"flex-direction","column"),b(i,"padding-left","0.3rem"),r(l,"class","label svelte-yt1d5k"),b(l,"font-size","0.8rem"),b(n,"width","70%"),b(n,"display","flex"),b(n,"align-items","center"),r(e,"class","main svelte-yt1d5k")},m(a,y){k(a,e,y),s(e,l),s(l,t),s(t,c),s(l,$),s(l,i),s(i,p),s(i,f),s(i,o),s(o,h),s(e,d),s(e,n),C(v,n,null),g=!0},p(a,y){(!g||y&128&&u!==(u=a[7]<=68?"#12A195":"#F2590D"))&&r(c,"fill",u),(!g||y&64)&&B(h,a[6]);const x={};y&128&&(x.percentile=a[7]),v.$set(x)},i(a){g||(T(v.$$.fragment,a),g=!0)},o(a){M(v.$$.fragment,a),g=!1},d(a){a&&q(e),D(v)}}}function de(m){let e,l;return{c(){e=A("svg"),l=A("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,c){k(t,e,c),s(e,l)},d(t){t&&q(e)}}}function oe(m){let e,l;return{c(){e=A("svg"),l=A("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,c){k(t,e,c),s(e,l)},d(t){t&&q(e)}}}function ce(m){let e,l;return{c(){e=A("svg"),l=A("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,c){k(t,e,c),s(e,l)},d(t){t&&q(e)}}}function pe(m){let e,l;return{c(){e=A("svg"),l=A("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,c){k(t,e,c),s(e,l)},d(t){t&&q(e)}}}function he(m){let e,l,t,c,u,$;const i=[ae,re,se],p=[];function f(o,h){return o[0]==="header"&&o[5]?0:o[0]==="summary"&&o[4]?1:2}return t=f(m),c=p[t]=i[t](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(),u=j()},m(o,h){k(o,e,h),k(o,l,h),p[t].m(o,h),k(o,u,h),$=!0},p(o,[h]){let d=t;t=f(o),t===d?p[t].p(o,h):(S(),M(p[d],1,1,()=>{p[d]=null}),F(),c=p[t],c?c.p(o,h):(c=p[t]=i[t](o),c.c()),T(c,1),c.m(u.parentNode,u))},i(o){$||(T(c),$=!0)},o(o){M(c),$=!1},d(o){o&&(q(e),q(l),q(u)),p[t].d(o)}}}function me(m,e,l){let{report:t}=e,{type:c}=e,{subtype:u}=e,{service:$=window.GaReportService}=e,i=[{name:"mature",csvName:"G0percentile"},{name:"median",csvName:"G1percentile"},{name:"youth",csvName:"G2percentile"},{name:"shield",csvName:"Spercentile"},{name:"lifestyle",csvName:"Bpercentile"}],p,f=!1,o=!1,h=!1,d=!1,n="",v=0,g=0,a=0,y=0,x=0,V=0,Z=0;function Y(){v>68&&l(8,Z++,Z),g<32&&l(8,Z++,Z),a<32&&l(8,Z++,Z),y<32&&l(8,Z++,Z),x>68&&l(8,Z++,Z)}const _=i.find(N=>N.name===u);return te(async()=>{p=await $.getReport(t),_&&(l(7,V=Number(p[_.csvName])),l(6,n=ie(V))),v=Number(p.G0percentile),g=Number(p.G1percentile),a=Number(p.G2percentile),y=Number(p.Spercentile),x=Number(p.Bpercentile),Y(),Z===5&&l(2,f=!0),Z>2&&Z<5&&l(3,o=!0),l(5,d=!0),l(4,h=!0)}),m.$$set=N=>{"report"in N&&l(9,t=N.report),"type"in N&&l(0,c=N.type),"subtype"in N&&l(1,u=N.subtype),"service"in N&&l(10,$=N.service)},[c,u,f,o,h,d,n,V,Z,t,$]}class K extends Q{constructor(e){super(),X(this,e,me,he,ee,{report:9,type:0,subtype:1,service:10},ne)}get report(){return this.$$.ctx[9]}set report(e){this.$$set({report:e}),I()}get type(){return this.$$.ctx[0]}set type(e){this.$$set({type:e}),I()}get subtype(){return this.$$.ctx[1]}set subtype(e){this.$$set({subtype:e}),I()}get service(){return this.$$.ctx[10]}set service(e){this.$$set({service:e}),I()}}customElements.define("ga-diabetes",J(K,{report:{},type:{},subtype:{},service:{}},[],[],!0));export{K as default};
|