@glycanage/web-components 1.33.0 → 1.35.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 ADDED
@@ -0,0 +1 @@
1
+ import{S as R,i as U,s as V,e as l,b as g,t as H,p as J,k as t,j as f,g as C,l as r,m as K,n as N,h as F,o as W}from"./index2.js";import{s as O}from"./helpers.js";function P(n){let o,d,e;return{c(){o=l("div"),d=g(),e=l("div"),t(o,"position","absolute"),t(o,"right","12px"),t(o,"bottom","8px"),t(o,"height","3px"),t(o,"width","24px"),t(o,"background-color","#DF2020"),t(o,"border-radius","4px"),t(o,"transform","rotate(135deg)"),t(e,"position","absolute"),t(e,"right","12px"),t(e,"top","8px"),t(e,"height","3px"),t(e,"width","24px"),t(e,"background-color","#DF2020"),t(e,"border-radius","4px"),t(e,"transform","rotate(-135deg)")},m(i,s){C(i,o,s),C(i,d,s),C(i,e,s)},d(i){i&&(F(o),F(d),F(e))}}}function Q(n){let o,d,e;return{c(){o=l("div"),d=g(),e=l("div"),t(o,"position","absolute"),t(o,"left","12px"),t(o,"bottom","8px"),t(o,"height","3px"),t(o,"width","24px"),t(o,"background-color","#DF2020"),t(o,"border-radius","4px"),t(o,"transform","rotate(45deg)"),t(e,"position","absolute"),t(e,"left","12px"),t(e,"top","8px"),t(e,"height","3px"),t(e,"width","24px"),t(e,"background-color","#DF2020"),t(e,"border-radius","4px"),t(e,"transform","rotate(-45deg)")},m(i,s){C(i,o,s),C(i,d,s),C(i,e,s)},d(i){i&&(F(o),F(d),F(e))}}}function X(n){let o,d,e,i,s,v,I,m,S,A,T,w,Z,k,$,x,q,p,D,B,j,M,y=O(n[0])+"",z,E,G,b,L,c=n[1]==="left"&&P(),u=n[1]==="right"&&Q();return{c(){o=l("div"),d=l("div"),c&&c.c(),e=g(),i=l("div"),s=g(),v=l("div"),I=g(),m=l("div"),m.innerHTML='<div style="position: absolute; left: 92%; height: 2px; width: 12px; background-color: #32664C; transform: rotate(90deg); border-radius: 4px;"></div>',S=g(),A=l("div"),T=g(),w=l("div"),Z=g(),k=l("div"),$=g(),x=l("div"),u&&u.c(),q=g(),p=l("div"),D=l("div"),B=l("b"),j=H(n[0]),M=l("sup"),z=H(y),E=H(" percentile"),G=g(),b=J("svg"),L=J("path"),t(d,"position","relative"),t(d,"height","100%"),t(d,"width","7%"),t(d,"background-color",n[1]==="left"?"#DF2020":"#CADBD1"),t(d,"border-radius","4px"),t(i,"height","100%"),t(i,"width","13.7%"),t(i,"background-color",n[1]==="left"?"#DF2020":"#CADBD1"),t(i,"border-radius","4px"),t(v,"height","100%"),t(v,"width","13.7%"),t(v,"background-color",n[1]==="left"?"#F2800D":"#CADBD1"),t(v,"border-radius","4px"),t(m,"position","relative"),t(m,"height","100%"),t(m,"width","13.7%"),t(m,"background-color","#CADBD1"),t(m,"border-radius","4px"),t(A,"height","100%"),t(A,"width","13.7%"),t(A,"background-color","#CADBD1"),t(A,"border-radius","4px"),t(w,"height","100%"),t(w,"width","13.7%"),t(w,"background-color",n[1]==="left"?"#CADBD1":"#F2800D"),t(w,"border-radius","4px"),t(k,"height","100%"),t(k,"width","13.7%"),t(k,"background-color",n[1]==="left"?"#CADBD1":"#DF2020"),t(k,"border-radius","4px"),t(x,"position","relative"),t(x,"height","100%"),t(x,"width","7%"),t(x,"background-color",n[1]==="left"?"#CADBD1":"#DF2020"),t(x,"border-radius","4px"),f(D,"class","message"),t(D,"color","#09341F"),t(D,"z-index","99999"),t(D,"min-width","100px"),t(D,"font-size","0.74rem"),t(D,"display","flex"),t(D,"justify-content","center"),f(L,"d","M14.0718 4C17.151 -1.33334 24.849 -1.33333 27.9282 4.00001L40.0525 25C43.1317 30.3333 39.2827 37 33.1243 37L8.87563 37C2.71722 37 -1.13177 30.3333 1.94743 25L14.0718 4Z"),f(L,"fill","#09371F"),f(b,"class","rotateImg"),t(b,"transform","rotate(180deg)"),f(b,"width","24%"),f(b,"height","24%"),f(b,"viewBox","0 0 42 37"),f(b,"fill","none"),f(b,"xmlns","http://www.w3.org/2000/svg"),t(p,"left",n[0]+"%"),t(p,"position","absolute"),t(p,"transform","translate(-50%, -100%)"),t(p,"display","flex"),t(p,"align-items","center"),t(p,"flex-direction","column"),t(p,"width","100px"),t(p,"height","38px"),t(o,"position","relative"),t(o,"width","100%"),t(o,"height","4px"),t(o,"display","flex"),t(o,"justify-content","space-between")},m(a,h){C(a,o,h),r(o,d),c&&c.m(d,null),r(o,e),r(o,i),r(o,s),r(o,v),r(o,I),r(o,m),r(o,S),r(o,A),r(o,T),r(o,w),r(o,Z),r(o,k),r(o,$),r(o,x),u&&u.m(x,null),r(o,q),r(o,p),r(p,D),r(D,B),r(B,j),r(B,M),r(M,z),r(B,E),r(p,G),r(p,b),r(b,L)},p(a,[h]){a[1]==="left"?c||(c=P(),c.c(),c.m(d,null)):c&&(c.d(1),c=null),h&2&&t(d,"background-color",a[1]==="left"?"#DF2020":"#CADBD1"),h&2&&t(i,"background-color",a[1]==="left"?"#DF2020":"#CADBD1"),h&2&&t(v,"background-color",a[1]==="left"?"#F2800D":"#CADBD1"),h&2&&t(w,"background-color",a[1]==="left"?"#CADBD1":"#F2800D"),h&2&&t(k,"background-color",a[1]==="left"?"#CADBD1":"#DF2020"),a[1]==="right"?u||(u=Q(),u.c(),u.m(x,null)):u&&(u.d(1),u=null),h&2&&t(x,"background-color",a[1]==="left"?"#CADBD1":"#DF2020"),h&1&&K(j,a[0]),h&1&&y!==(y=O(a[0])+"")&&K(z,y),h&1&&t(p,"left",a[0]+"%")},i:N,o:N,d(a){a&&F(o),c&&c.d(),u&&u.d()}}}function Y(n,o,d){let{percentile:e=0}=o,{type:i=""}=o;return W(async()=>{console.log("type inside onMount",i)}),n.$$set=s=>{"percentile"in s&&d(0,e=s.percentile),"type"in s&&d(1,i=s.type)},[e,i]}class _ extends R{constructor(o){super(),U(this,o,Y,X,V,{percentile:0,type:1})}}export{_ as A};
@@ -1,2 +1,2 @@
1
- import{S as K,i as O,s as J,e as u,b as D,t as Z,p as B,k as t,j as s,g as k,l as o,m as S,n as z,h as L,o as Q,c as te,f as j,a as ie,d as le,q as U,r as re,u as V,v as oe,w as se,x as ne,y as ae}from"./index2.js";import{s as W}from"./helpers.js";function X(n){let e,i,l;return{c(){e=u("div"),i=D(),l=u("div"),t(e,"position","absolute"),t(e,"right","13px"),t(e,"bottom","8px"),t(e,"height","3px"),t(e,"width","24px"),t(e,"background-color","#DF2020"),t(e,"border-radius","4px"),t(e,"transform","rotate(135deg)"),t(l,"position","absolute"),t(l,"right","13px"),t(l,"top","8px"),t(l,"height","3px"),t(l,"width","24px"),t(l,"background-color","#DF2020"),t(l,"border-radius","4px"),t(l,"transform","rotate(-135deg)")},m(r,d){k(r,e,d),k(r,i,d),k(r,l,d)},d(r){r&&(L(e),L(i),L(l))}}}function Y(n){let e,i,l;return{c(){e=u("div"),i=D(),l=u("div"),t(e,"position","absolute"),t(e,"left","13px"),t(e,"bottom","8px"),t(e,"height","3px"),t(e,"width","24px"),t(e,"background-color","#DF2020"),t(e,"border-radius","4px"),t(e,"transform","rotate(45deg)"),t(l,"position","absolute"),t(l,"left","13px"),t(l,"top","8px"),t(l,"height","3px"),t(l,"width","24px"),t(l,"background-color","#DF2020"),t(l,"border-radius","4px"),t(l,"transform","rotate(-45deg)")},m(r,d){k(r,e,d),k(r,i,d),k(r,l,d)},d(r){r&&(L(e),L(i),L(l))}}}function de(n){let e,i,l,r,d,m,f,p,w,a,h,c,x,b,F,g,y,v,C,H,G,R,N=W(n[0])+"",P,_,E,M,I,A=n[1]==="left"&&X(),$=n[1]==="right"&&Y();return{c(){e=u("div"),i=u("div"),A&&A.c(),l=D(),r=u("div"),d=D(),m=u("div"),f=D(),p=u("div"),p.innerHTML='<div style="position: absolute; left: 92.1%; height: 2px; width: 12px; background-color: #32664C; transform: rotate(90deg); border-radius: 4px;"></div>',w=D(),a=u("div"),h=D(),c=u("div"),x=D(),b=u("div"),F=D(),g=u("div"),$&&$.c(),y=D(),v=u("div"),C=u("div"),H=u("b"),G=Z(n[0]),R=u("sup"),P=Z(N),_=Z(" percentile"),E=D(),M=B("svg"),I=B("path"),t(i,"position","relative"),t(i,"height","100%"),t(i,"width","7%"),t(i,"background-color",n[1]==="left"?"#DF2020":"#CADBD1"),t(i,"border-radius","4px"),t(r,"height","100%"),t(r,"width","13.7%"),t(r,"background-color",n[1]==="left"?"#DF2020":"#CADBD1"),t(r,"border-radius","4px"),t(m,"height","100%"),t(m,"width","13.7%"),t(m,"background-color",n[1]==="left"?"#F2800D":"#CADBD1"),t(m,"border-radius","4px"),t(p,"position","relative"),t(p,"height","100%"),t(p,"width","13.7%"),t(p,"background-color","#CADBD1"),t(p,"border-radius","4px"),t(a,"height","100%"),t(a,"width","13.7%"),t(a,"background-color","#CADBD1"),t(a,"border-radius","4px"),t(c,"height","100%"),t(c,"width","13.7%"),t(c,"background-color",n[1]==="left"?"#CADBD1":"#F2800D"),t(c,"border-radius","4px"),t(b,"height","100%"),t(b,"width","13.7%"),t(b,"background-color",n[1]==="left"?"#CADBD1":"#DF2020"),t(b,"border-radius","4px"),t(g,"position","relative"),t(g,"height","100%"),t(g,"width","7%"),t(g,"background-color",n[1]==="left"?"#CADBD1":"#DF2020"),t(g,"border-radius","4px"),s(C,"class","message"),t(C,"color","#09341F"),t(C,"z-index","99999"),t(C,"min-width","100px"),t(C,"font-size","0.74rem"),t(C,"display","flex"),t(C,"justify-content","center"),s(I,"d","M14.0718 4C17.151 -1.33334 24.849 -1.33333 27.9282 4.00001L40.0525 25C43.1317 30.3333 39.2827 37 33.1243 37L8.87563 37C2.71722 37 -1.13177 30.3333 1.94743 25L14.0718 4Z"),s(I,"fill","#09371F"),s(M,"class","rotateImg"),t(M,"transform","rotate(180deg)"),s(M,"width","24%"),s(M,"height","24%"),s(M,"viewBox","0 0 42 37"),s(M,"fill","none"),s(M,"xmlns","http://www.w3.org/2000/svg"),t(v,"left",n[0]+"%"),t(v,"position","absolute"),t(v,"transform","translate(-50%, -100%)"),t(v,"display","flex"),t(v,"align-items","center"),t(v,"flex-direction","column"),t(v,"width","100px"),t(v,"height","38px"),t(e,"position","relative"),t(e,"width","100%"),t(e,"height","4px"),t(e,"display","flex"),t(e,"justify-content","space-between")},m(q,T){k(q,e,T),o(e,i),A&&A.m(i,null),o(e,l),o(e,r),o(e,d),o(e,m),o(e,f),o(e,p),o(e,w),o(e,a),o(e,h),o(e,c),o(e,x),o(e,b),o(e,F),o(e,g),$&&$.m(g,null),o(e,y),o(e,v),o(v,C),o(C,H),o(H,G),o(H,R),o(R,P),o(H,_),o(v,E),o(v,M),o(M,I)},p(q,[T]){q[1]==="left"?A||(A=X(),A.c(),A.m(i,null)):A&&(A.d(1),A=null),T&2&&t(i,"background-color",q[1]==="left"?"#DF2020":"#CADBD1"),T&2&&t(r,"background-color",q[1]==="left"?"#DF2020":"#CADBD1"),T&2&&t(m,"background-color",q[1]==="left"?"#F2800D":"#CADBD1"),T&2&&t(c,"background-color",q[1]==="left"?"#CADBD1":"#F2800D"),T&2&&t(b,"background-color",q[1]==="left"?"#CADBD1":"#DF2020"),q[1]==="right"?$||($=Y(),$.c(),$.m(g,null)):$&&($.d(1),$=null),T&2&&t(g,"background-color",q[1]==="left"?"#CADBD1":"#DF2020"),T&1&&S(G,q[0]),T&1&&N!==(N=W(q[0])+"")&&S(P,N),T&1&&t(v,"left",q[0]+"%")},i:z,o:z,d(q){q&&L(e),A&&A.d(),$&&$.d()}}}function ce(n,e,i){let{percentile:l=0}=e,{type:r=""}=e;return Q(async()=>{console.log("type inside onMount",r)}),n.$$set=d=>{"percentile"in d&&i(0,l=d.percentile),"type"in d&&i(1,r=d.type)},[l,r]}class pe extends K{constructor(e){super(),O(this,e,ce,de,J,{percentile:0,type:1})}}function he(n){ie(n,"svelte-1kry8q5",".summaryMain.svelte-1kry8q5{width:500px;height:750px;display:flex;flex-direction:column;color:#09341FCC}.summaryHeader.svelte-1kry8q5{width:100%;height:16%;font-size:0.9rem;display:flex;align-items:center}.summaryBody.svelte-1kry8q5{width:80%;height:100%;margin:auto;border-top:2px solid #C9DBD2}.main.svelte-1kry8q5{height:76px;width:650px;display:flex}.label.svelte-1kry8q5{width:30%;display:flex;align-items:center}.header.svelte-1kry8q5{width:100%;height:100%;display:flex;align-items:center}")}function ue(n){let e,i,l,r,d,m,f,p,w,a,h,c,x,b,F;return b=new pe({props:{type:"right",percentile:n[5]}}),{c(){e=u("div"),i=u("div"),l=B("svg"),r=B("path"),m=D(),f=u("div"),p=u("div"),p.innerHTML="Glycan <b>Lifestyle (B)</b>",w=D(),a=u("div"),h=Z(n[4]),c=D(),x=u("div"),se(b.$$.fragment),s(r,"fill",d=n[5]<=68?"#12A195":"#F2590D"),s(r,"d","m8.6 22.5l-1.9-3.2l-3.6-.8l.35-3.7L1 12l2.45-2.8l-.35-3.7l3.6-.8l1.9-3.2L12 2.95l3.4-1.45l1.9 3.2l3.6.8l-.35 3.7L23 12l-2.45 2.8l.35 3.7l-3.6.8l-1.9 3.2l-3.4-1.45l-3.4 1.45ZM12 17q.425 0 .713-.288T13 16q0-.425-.288-.713T12 15q-.425 0-.713.288T11 16q0 .425.288.713T12 17Zm-1-4h2V7h-2v6Z"),s(l,"xmlns","http://www.w3.org/2000/svg"),s(l,"width","24"),s(l,"height","24"),s(l,"viewBox","0 0 24 24"),t(f,"display","flex"),t(f,"flex-direction","column"),t(f,"padding-left","0.3rem"),s(i,"class","label svelte-1kry8q5"),t(i,"font-size","0.8rem"),t(x,"width","70%"),t(x,"display","flex"),t(x,"align-items","center"),s(e,"class","main svelte-1kry8q5")},m(g,y){k(g,e,y),o(e,i),o(i,l),o(l,r),o(i,m),o(i,f),o(f,p),o(f,w),o(f,a),o(a,h),o(e,c),o(e,x),ne(b,x,null),F=!0},p(g,y){(!F||y&32&&d!==(d=g[5]<=68?"#12A195":"#F2590D"))&&s(r,"fill",d),(!F||y&16)&&S(h,g[4]);const v={};y&32&&(v.percentile=g[5]),b.$set(v)},i(g){F||(V(b.$$.fragment,g),F=!0)},o(g){U(b.$$.fragment,g),F=!1},d(g){g&&L(e),ae(b)}}}function ge(n){let e,i,l,r,d,m,f=n[5]>68?"Some overlap":"No significant overlap",p,w,a,h,c,x;function b(y,v){return y[1]?ve:fe}let F=b(n),g=F(n);return{c(){e=u("div"),i=u("div"),l=u("div"),g.c(),r=D(),d=u("div"),m=u("b"),p=Z(f),w=Z(" of glycan indexes between "),a=u("br"),h=Z(" your patient and this condition."),c=D(),x=u("div"),x.innerHTML='<h5>Signs and symptoms</h5> <ul style="font-size: 0.8rem;"><li>Usually asymptomatic</li></ul> <h5>Possible follow-up tests</h5> <ul style="font-size: 0.8rem;"><li>Serial blood pressure (BP) measurements \xB1 24-hour BP monitoring</li> <li>BMI and/or body composition check</li> <li>Basic bloods (lipid profile, renal and liver function)</li></ul> <h5>Related research papers</h5> <a style="color: #E66439;" href="https://pubmed.ncbi.nlm.nih.gov/34285147/">N-glycosylation of immunoglobulin G predicts incident hypertension</a> <p style="margin: 0; font-size: 0.8rem; color: #09341FCC;">In a study investigating the relationship between IgG glycosylation and hypertension, 989 unrelated incident hypertension cases and 1628 controls from the TwinsUK cohort, with a mean follow-up of 6.3 years, were examined. The average age of the participants was 56. The findings, which included an observed increase in B, were validated in additional cohorts from the &quot;10 001 Dalmatians&quot; (106 individuals) and KORA S4 (729 individuals). A predictive model incorporating age, BMI, mean arterial pressure (MAP), and specific glycan peaks with B modifications demonstrated robust predictive accuracy, achieving a very high AUC of 0.923.</p>',t(l,"transform","translate(-50%)"),t(m,"color",n[1]?"#F2590D":"#12A195"),s(i,"class","summaryHeader svelte-1kry8q5"),s(x,"class","summaryBody svelte-1kry8q5"),s(e,"class","summaryMain svelte-1kry8q5")},m(y,v){k(y,e,v),o(e,i),o(i,l),g.m(l,null),o(i,r),o(i,d),o(d,m),o(m,p),o(d,w),o(d,a),o(d,h),o(e,c),o(e,x)},p(y,v){F!==(F=b(y))&&(g.d(1),g=F(y),g&&(g.c(),g.m(l,null))),v&32&&f!==(f=y[5]>68?"Some overlap":"No significant overlap")&&S(p,f),v&2&&t(m,"color",y[1]?"#F2590D":"#12A195")},i:z,o:z,d(y){y&&L(e),g.d()}}}function me(n){let e,i,l,r,d,m,f=n[1]?"Some overlap":"No significant overlap",p;function w(c,x){return c[1]?xe:we}let a=w(n),h=a(n);return{c(){e=u("div"),i=u("div"),l=u("b"),r=Z(n[3]),d=D(),h.c(),m=Z(`
2
- \xA0`),p=Z(f),t(i,"padding-right","10px"),s(e,"class","header svelte-1kry8q5")},m(c,x){k(c,e,x),o(e,i),o(i,l),o(l,r),o(e,d),h.m(e,null),o(e,m),o(e,p)},p(c,x){x&8&&S(r,c[3]),a!==(a=w(c))&&(h.d(1),h=a(c),h&&(h.c(),h.m(e,m))),x&2&&f!==(f=c[1]?"Some overlap":"No significant overlap")&&S(p,f)},i:z,o:z,d(c){c&&L(e),h.d()}}}function fe(n){let e,i;return{c(){e=B("svg"),i=B("path"),s(i,"fill","#12A195"),s(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"),s(e,"xmlns","http://www.w3.org/2000/svg"),s(e,"width","50"),s(e,"height","50"),s(e,"viewBox","0 0 24 24")},m(l,r){k(l,e,r),o(e,i)},d(l){l&&L(e)}}}function ve(n){let e,i;return{c(){e=B("svg"),i=B("path"),s(i,"fill","#F2590D"),s(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"),s(e,"xmlns","http://www.w3.org/2000/svg"),s(e,"width","50"),s(e,"height","50"),s(e,"viewBox","0 0 24 24")},m(l,r){k(l,e,r),o(e,i)},d(l){l&&L(e)}}}function we(n){let e,i;return{c(){e=B("svg"),i=B("path"),s(i,"fill","#12A195"),s(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"),s(e,"xmlns","http://www.w3.org/2000/svg"),s(e,"width","24"),s(e,"height","24"),s(e,"viewBox","0 0 24 24")},m(l,r){k(l,e,r),o(e,i)},d(l){l&&L(e)}}}function xe(n){let e,i;return{c(){e=B("svg"),i=B("path"),s(i,"fill","#F2590D"),s(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"),s(e,"xmlns","http://www.w3.org/2000/svg"),s(e,"width","24"),s(e,"height","24"),s(e,"viewBox","0 0 24 24")},m(l,r){k(l,e,r),o(e,i)},d(l){l&&L(e)}}}function ye(n){let e,i,l,r,d,m;const f=[me,ge,ue],p=[];function w(a,h){return a[0]==="header"?0:a[0]==="summary"&&a[2]?1:2}return l=w(n),r=p[l]=f[l](n),{c(){e=u("head"),e.innerHTML='<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@24,300,1,0"/>',i=D(),r.c(),d=le()},m(a,h){k(a,e,h),k(a,i,h),p[l].m(a,h),k(a,d,h),m=!0},p(a,[h]){let c=l;l=w(a),l===c?p[l].p(a,h):(oe(),U(p[c],1,1,()=>{p[c]=null}),re(),r=p[l],r?r.p(a,h):(r=p[l]=f[l](a),r.c()),V(r,1),r.m(d.parentNode,d))},i(a){m||(V(r),m=!0)},o(a){U(r),m=!1},d(a){a&&(L(e),L(i),L(d)),p[l].d(a)}}}function be(n,e,i){let{report:l}=e,{type:r}=e,{service:d=window.GaReportService}=e,m,f=!1,p=!1,w="",a="",h=0;return Q(async()=>{if(m=await d.getReport(l),i(5,h=Number(m.Bpercentile)),h<32){i(3,w="0/1"),i(4,a="Lower than average"),i(2,p=!0);return}if(h>=32&&h<=68){i(3,w="0/1"),i(4,a="Around average"),i(2,p=!0);return}if(h>68){i(3,w="1/1"),i(4,a="Higher than average"),i(3,w="1/1"),i(1,f=!0),i(2,p=!0);return}}),n.$$set=c=>{"report"in c&&i(6,l=c.report),"type"in c&&i(0,r=c.type),"service"in c&&i(7,d=c.service)},[r,f,p,w,a,h,l,d]}class ee extends K{constructor(e){super(),O(this,e,be,ye,J,{report:6,type:0,service:7},he)}get report(){return this.$$.ctx[6]}set report(e){this.$$set({report:e}),j()}get type(){return this.$$.ctx[0]}set type(e){this.$$set({type:e}),j()}get service(){return this.$$.ctx[7]}set service(e){this.$$set({service:e}),j()}}customElements.define("ga-hypertension-risk",te(ee,{report:{},type:{},service:{}},[],[],!0));export{ee as default};
1
+ import{c as N,S as z,i as C,f as M,s as H,a as G,e as g,b as B,d as I,g as b,q as D,r as R,u as S,h as $,o as P,v as U,p as k,t as q,w as V,j as i,k as x,l as n,x as E,m as A,y as K,n as Z}from"./index2.js";import{A as O}from"./Arrow.js";import"./helpers.js";function j(d){G(d,"svelte-1371dlk",".summaryMain.svelte-1371dlk{width:100%;height:100%;display:flex;flex-direction:column;color:#09341FCC}.summaryHeader.svelte-1371dlk{width:100%;height:16%;font-size:0.9rem;display:flex;align-items:center}.summaryBody.svelte-1371dlk{width:80%;height:100%;margin:auto;border-top:2px solid #C9DBD2}.main.svelte-1371dlk{height:100%;width:100%;display:flex}.label.svelte-1371dlk{width:30%;display:flex;align-items:center}.header.svelte-1371dlk{width:100%;height:100%;display:flex;align-items:center}")}function J(d){let e,l,t,r,c,p,m,h,v,s,a,o,f,L,w;return L=new O({props:{type:"right",percentile:d[5]}}),{c(){e=g("div"),l=g("div"),t=k("svg"),r=k("path"),p=B(),m=g("div"),h=g("div"),h.innerHTML="Glycan <b>Lifestyle (B)</b>",v=B(),s=g("div"),a=q(d[4]),o=B(),f=g("div"),V(L.$$.fragment),i(r,"fill",c=d[5]<=68?"#12A195":"#F2590D"),i(r,"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","24"),i(t,"height","24"),i(t,"viewBox","0 0 24 24"),x(m,"display","flex"),x(m,"flex-direction","column"),x(m,"padding-left","0.3rem"),i(l,"class","label svelte-1371dlk"),x(l,"font-size","0.8rem"),x(f,"width","70%"),x(f,"display","flex"),x(f,"align-items","center"),i(e,"class","main svelte-1371dlk")},m(u,y){b(u,e,y),n(e,l),n(l,t),n(t,r),n(l,p),n(l,m),n(m,h),n(m,v),n(m,s),n(s,a),n(e,o),n(e,f),E(L,f,null),w=!0},p(u,y){(!w||y&32&&c!==(c=u[5]<=68?"#12A195":"#F2590D"))&&i(r,"fill",c),(!w||y&16)&&A(a,u[4]);const T={};y&32&&(T.percentile=u[5]),L.$set(T)},i(u){w||(S(L.$$.fragment,u),w=!0)},o(u){D(L.$$.fragment,u),w=!1},d(u){u&&$(e),K(L)}}}function Q(d){let e,l,t,r,c,p,m=d[5]>68?"Some overlap":"No significant overlap",h,v,s,a,o,f;function L(y,T){return y[1]?Y:X}let w=L(d),u=w(d);return{c(){e=g("div"),l=g("div"),t=g("div"),u.c(),r=B(),c=g("div"),p=g("b"),h=q(m),v=q(" of glycan indexes between "),s=g("br"),a=q(" your patient and this condition."),o=B(),f=g("div"),f.innerHTML='<h5>Signs and symptoms</h5> <ul style="font-size: 0.8rem;"><li>Usually asymptomatic</li></ul> <h5>Possible follow-up tests</h5> <ul style="font-size: 0.8rem;"><li>Serial blood pressure (BP) measurements \xB1 24-hour BP monitoring</li> <li>BMI and/or body composition check</li> <li>Basic bloods (lipid profile, renal and liver function)</li></ul> <h5>Related research papers</h5> <a style="color: #E66439;" href="https://pubmed.ncbi.nlm.nih.gov/34285147/">N-glycosylation of immunoglobulin G predicts incident hypertension</a> <p style="margin: 0; font-size: 0.8rem; color: #09341FCC;">In a study investigating the relationship between IgG glycosylation and hypertension, 989 unrelated incident hypertension cases and 1628 controls from the TwinsUK cohort, with a mean follow-up of 6.3 years, were examined. The average age of the participants was 56. The findings, which included an observed increase in B, were validated in additional cohorts from the &quot;10 001 Dalmatians&quot; (106 individuals) and KORA S4 (729 individuals). A predictive model incorporating age, BMI, mean arterial pressure (MAP), and specific glycan peaks with B modifications demonstrated robust predictive accuracy, achieving a very high AUC of 0.923.</p>',x(t,"transform","translate(-50%)"),x(p,"color",d[1]?"#F2590D":"#12A195"),i(l,"class","summaryHeader svelte-1371dlk"),i(f,"class","summaryBody svelte-1371dlk"),i(e,"class","summaryMain svelte-1371dlk")},m(y,T){b(y,e,T),n(e,l),n(l,t),u.m(t,null),n(l,r),n(l,c),n(c,p),n(p,h),n(c,v),n(c,s),n(c,a),n(e,o),n(e,f)},p(y,T){w!==(w=L(y))&&(u.d(1),u=w(y),u&&(u.c(),u.m(t,null))),T&32&&m!==(m=y[5]>68?"Some overlap":"No significant overlap")&&A(h,m),T&2&&x(p,"color",y[1]?"#F2590D":"#12A195")},i:Z,o:Z,d(y){y&&$(e),u.d()}}}function W(d){let e,l,t,r,c,p,m=d[1]?"Some overlap":"No significant overlap",h;function v(o,f){return o[1]?ee:_}let s=v(d),a=s(d);return{c(){e=g("div"),l=g("div"),t=g("b"),r=q(d[3]),c=B(),a.c(),p=q(`
2
+ \xA0\xA0`),h=q(m),x(l,"padding-right","10px"),i(e,"class","header svelte-1371dlk")},m(o,f){b(o,e,f),n(e,l),n(l,t),n(t,r),n(e,c),a.m(e,null),n(e,p),n(e,h)},p(o,f){f&8&&A(r,o[3]),s!==(s=v(o))&&(a.d(1),a=s(o),a&&(a.c(),a.m(e,p))),f&2&&m!==(m=o[1]?"Some overlap":"No significant overlap")&&A(h,m)},i:Z,o:Z,d(o){o&&$(e),a.d()}}}function X(d){let e,l;return{c(){e=k("svg"),l=k("path"),i(l,"fill","#12A195"),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(e,"xmlns","http://www.w3.org/2000/svg"),i(e,"width","50"),i(e,"height","50"),i(e,"viewBox","0 0 24 24")},m(t,r){b(t,e,r),n(e,l)},d(t){t&&$(e)}}}function Y(d){let e,l;return{c(){e=k("svg"),l=k("path"),i(l,"fill","#F2590D"),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(e,"xmlns","http://www.w3.org/2000/svg"),i(e,"width","50"),i(e,"height","50"),i(e,"viewBox","0 0 24 24")},m(t,r){b(t,e,r),n(e,l)},d(t){t&&$(e)}}}function _(d){let e,l;return{c(){e=k("svg"),l=k("path"),i(l,"fill","#12A195"),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(e,"xmlns","http://www.w3.org/2000/svg"),i(e,"width","24"),i(e,"height","24"),i(e,"viewBox","0 0 24 24")},m(t,r){b(t,e,r),n(e,l)},d(t){t&&$(e)}}}function ee(d){let e,l;return{c(){e=k("svg"),l=k("path"),i(l,"fill","#F2590D"),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(e,"xmlns","http://www.w3.org/2000/svg"),i(e,"width","24"),i(e,"height","24"),i(e,"viewBox","0 0 24 24")},m(t,r){b(t,e,r),n(e,l)},d(t){t&&$(e)}}}function le(d){let e,l,t,r,c,p;const m=[W,Q,J],h=[];function v(s,a){return s[0]==="header"?0:s[0]==="summary"&&s[2]?1:2}return t=v(d),r=h[t]=m[t](d),{c(){e=g("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=B(),r.c(),c=I()},m(s,a){b(s,e,a),b(s,l,a),h[t].m(s,a),b(s,c,a),p=!0},p(s,[a]){let o=t;t=v(s),t===o?h[t].p(s,a):(U(),D(h[o],1,1,()=>{h[o]=null}),R(),r=h[t],r?r.p(s,a):(r=h[t]=m[t](s),r.c()),S(r,1),r.m(c.parentNode,c))},i(s){p||(S(r),p=!0)},o(s){D(r),p=!1},d(s){s&&($(e),$(l),$(c)),h[t].d(s)}}}function te(d,e,l){let{report:t}=e,{type:r}=e,{service:c=window.GaReportService}=e,p,m=!1,h=!1,v="",s="",a=0;return P(async()=>{if(p=await c.getReport(t),l(5,a=Number(p.Bpercentile)),a<32){l(3,v="0/1"),l(4,s="Lower than average"),l(2,h=!0);return}if(a>=32&&a<=68){l(3,v="0/1"),l(4,s="Around average"),l(2,h=!0);return}if(a>68){l(3,v="1/1"),l(4,s="Higher than average"),l(3,v="1/1"),l(1,m=!0),l(2,h=!0);return}}),d.$$set=o=>{"report"in o&&l(6,t=o.report),"type"in o&&l(0,r=o.type),"service"in o&&l(7,c=o.service)},[r,m,h,v,s,a,t,c]}class F extends z{constructor(e){super(),C(this,e,te,le,H,{report:6,type:0,service:7},j)}get report(){return this.$$.ctx[6]}set report(e){this.$$set({report:e}),M()}get type(){return this.$$.ctx[0]}set type(e){this.$$set({type:e}),M()}get service(){return this.$$.ctx[7]}set service(e){this.$$set({service:e}),M()}}customElements.define("ga-hypertension-risk",N(F,{report:{},type:{},service:{}},[],[],!0));export{F as default};
@@ -1,17 +1,2 @@
1
- import{c as oe,S as ae,i as de,f as Y,s as pe,a as me,e as d,b,d as J,g as y,n as K,h as x,o as ce,t as L,j as m,k as o,l as i,m as O,p as P}from"./index2.js";import{s as W,m as X,g as _,a as ee,b as te}from"./helpers.js";function he(a){me(a,"svelte-12034l8",".main.svelte-12034l8{width:450px;background-color:#f0f6f5;border:2px solid #c8dbd0;border-radius:12px;display:flex;flex-direction:column;justify-content:center}.summaryMain.svelte-12034l8{width:500px;height:540px;border-radius:10px;display:flex;flex-direction:column}.summaryHeader.svelte-12034l8{width:100%;height:30%;font-size:0.9rem;display:flex;align-items:center}.summaryBody.svelte-12034l8{width:95%;height:100%;padding:1.5rem 0 0 1.5rem}.row.svelte-12034l8{width:100%;display:flex}.label.svelte-12034l8{width:14%;height:100%;margin-left:1.5rem;line-height:0.9rem;display:flex;align-items:start;justify-content:center;flex-direction:column}.content.svelte-12034l8{width:86%;height:100%;position:relative}.min.svelte-12034l8{position:absolute;top:34%;left:1.6%;font-size:0.6rem;color:#6b8678}.middleParent.svelte-12034l8{position:absolute;width:76%;height:80%;left:10%;top:10%;display:flex;align-items:center;justify-content:center;flex-direction:column}.xAxis.svelte-12034l8{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-12034l8{position:absolute;width:46%;top:10%;height:80%;background-color:#c8dbd0}.result.svelte-12034l8{width:1.5%;height:24%;background-color:#33664d;z-index:9998;position:relative}.yAxis.svelte-12034l8{position:absolute;left:49.72%;width:0.1rem;height:88%;background-color:#08341f;border-radius:10px}.max.svelte-12034l8{position:absolute;top:34%;right:5.5%;font-size:0.6rem;color:#6b8678}.lastRow.svelte-12034l8{width:100%;height:11%;display:flex;align-items:center;justify-content:center;margin-top:12px}.dot1.svelte-12034l8{height:10px;width:10px;border-radius:99px;background-color:#c8dbd0;border:1px solid black;margin-right:6px}.dot2.svelte-12034l8{height:10px;width:10px;border-radius:99px;background-color:#33664d;border:1px solid black;margin:0 6px 0 36px}.resultDisplay.svelte-12034l8{position:absolute;bottom:80%;display:flex;align-items:center;flex-direction:column}.message.svelte-12034l8{color:#33664d;z-index:99999;min-width:100px;font-size:0.48rem;margin-bottom:-8px}.triangle-down.svelte-12034l8{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-12034l8{width:100%;height:100%;display:flex;align-items:center}")}function ge(a){let e,t,l,n,s,r,p,c,v,N,g,E,h,u,H,Z,G,B,q,w,k,z,S,M,j,A,D,R,f=W(a[4])+"",C,F,Q,I,U,V;return{c(){e=d("div"),t=d("div"),l=d("div"),l.innerHTML="Glycan<br/><b>Youth</b>",n=b(),s=d("div"),r=d("div"),p=d("b"),c=L(a[1]),v=b(),N=d("div"),g=d("b"),E=L(a[2]),h=b(),u=d("div"),H=d("div"),Z=b(),G=d("div"),B=b(),q=d("div"),w=b(),k=d("div"),z=d("div"),S=d("div"),M=d("b"),j=L(a[3]),A=L(" ("),D=L(a[4]),R=d("sup"),C=L(f),F=L(" percentile)"),Q=b(),I=d("div"),U=b(),V=d("div"),V.innerHTML='<div class="dot1 svelte-12034l8"></div> <div style="font-size: 0.8rem;">Pre-hypertension</div> <div class="dot2 svelte-12034l8"></div> <div style="font-size: 0.8rem;">Your patient</div>',m(l,"class","label svelte-12034l8"),o(l,"font-size","0.8rem"),m(r,"class","min svelte-12034l8"),m(N,"class","max svelte-12034l8"),m(H,"class","xAxis svelte-12034l8"),m(G,"class","yAxis svelte-12034l8"),m(q,"class","diseaseArea svelte-12034l8"),o(q,"border-radius","6px 0 0 6px"),o(q,"right","50.3%"),m(S,"class","message svelte-12034l8"),m(I,"class","triangle-down svelte-12034l8"),m(z,"class","resultDisplay svelte-12034l8"),o(z,"right",X(a[4])),m(k,"class","result svelte-12034l8"),o(k,"padding",_(a[4])),o(k,"margin",ee(a[4])),o(k,"border-radius",te(a[4])),m(u,"class","middleParent svelte-12034l8"),m(s,"class","content svelte-12034l8"),m(t,"class","row svelte-12034l8"),o(t,"height","30%"),o(t,"padding-bottom","1rem"),m(V,"class","lastRow svelte-12034l8"),m(e,"class","main svelte-12034l8"),o(e,"height","180px")},m($,T){y($,e,T),i(e,t),i(t,l),i(t,n),i(t,s),i(s,r),i(r,p),i(p,c),i(s,v),i(s,N),i(N,g),i(g,E),i(s,h),i(s,u),i(u,H),i(u,Z),i(u,G),i(u,B),i(u,q),i(u,w),i(u,k),i(k,z),i(z,S),i(S,M),i(M,j),i(M,A),i(M,D),i(M,R),i(R,C),i(M,F),i(z,Q),i(z,I),i(e,U),i(e,V)},p($,T){T&2&&O(c,$[1]),T&4&&O(E,$[2]),T&8&&O(j,$[3]),T&16&&O(D,$[4]),T&16&&f!==(f=W($[4])+"")&&O(C,f),T&16&&o(z,"right",X($[4])),T&16&&o(k,"padding",_($[4])),T&16&&o(k,"margin",ee($[4])),T&16&&o(k,"border-radius",te($[4]))},d($){$&&x(e)}}}function be(a){let e,t=a[7]&&ie(a);return{c(){t&&t.c(),e=J()},m(l,n){t&&t.m(l,n),y(l,e,n)},p(l,n){l[7]?t?t.p(l,n):(t=ie(l),t.c(),t.m(e.parentNode,e)):t&&(t.d(1),t=null)},d(l){l&&x(e),t&&t.d(l)}}}function ve(a){let e,t,l,n=a[5]&&re(a),s=a[6]&&le(a);return{c(){e=d("div"),n&&n.c(),t=b(),l=b(),s&&s.c(),m(e,"class","header svelte-12034l8")},m(r,p){y(r,e,p),n&&n.m(e,null),i(e,t),i(e,l),s&&s.m(e,null)},p(r,p){r[5]?n?n.p(r,p):(n=re(r),n.c(),n.m(e,t)):n&&(n.d(1),n=null),r[6]?s?s.p(r,p):(s=le(r),s.c(),s.m(e,null)):s&&(s.d(1),s=null)},d(r){r&&x(e),n&&n.d(),s&&s.d()}}}function ie(a){let e;function t(s,r){return s[6]?fe:ue}let l=t(a),n=l(a);return{c(){n.c(),e=J()},m(s,r){n.m(s,r),y(s,e,r)},p(s,r){l===(l=t(s))&&n?n.p(s,r):(n.d(1),n=l(s),n&&(n.c(),n.m(e.parentNode,e)))},d(s){s&&x(e),n.d(s)}}}function ue(a){let e,t,l,n,s,r,p,c,v,N,g,E,h,u,H,Z,G,B,q,w,k,z,S,M,j,A,D,R,f=a[5]&&se();return{c(){e=d("div"),t=d("div"),l=d("div"),f&&f.c(),n=b(),s=b(),r=d("div"),p=L("There is "),c=d("b"),c.textContent=`${a[12]()}`,v=L(" of glycan indexes between "),N=d("br"),g=L(" your patient and pre-hypertension patients."),E=b(),h=d("div"),u=d("div"),u.textContent="Symptoms to check for:",H=b(),Z=d("div"),Z.innerHTML=`<b>Elevated blood pressure:</b> Blood pressure readings consistently above
2
- <br/> normal but below hypertension thresholds are indicative of pre- <br/>
3
- hypertension`,G=b(),B=d("div"),B.innerHTML=`<b>No notable symptoms:</b> Often, pre-hypertension has no apparent symptoms, <br/>
4
- making regular blood pressure checks vital.`,q=b(),w=d("div"),w.innerHTML=`<b>Mild headaches or dizziness:</b> Occasionally, individuals might experience <br/>
5
- mild headaches or dizziness, which can be early signs. <br/>`,k=b(),z=d("div"),z.textContent="Possible follow-up tests:",S=b(),M=d("div"),M.innerHTML=`<b>Routine blood pressure checks:</b> Essential for monitoring and managing
6
- <br/> blood pressure levels within the pre-hypertension range.`,j=b(),A=d("div"),A.innerHTML=`<b>Lifestyle assessment:</b> Evaluating diet, physical activity, and other lifestyle
7
- <br/> factors to identify areas for improvement.`,D=b(),R=d("div"),R.innerHTML=`<b>Echocardiogram:</b> To assess heart function and detect any early changes
8
- <br/> that may be associated with pre-hypertension.`,o(l,"width","10%"),o(l,"padding-left","1.5rem"),o(l,"padding-right","1rem"),o(r,"width","90%"),o(r,"font-size","0.8rem"),m(t,"class","summaryHeader svelte-12034l8"),o(t,"border-radius","8px 8px 0 0"),o(t,"background-color",a[10]()),o(t,"border-bottom","2px solid "+a[9]()),o(u,"font-size","1.2rem"),o(u,"padding-bottom","1rem"),o(Z,"font-size","0.7rem"),o(Z,"padding-bottom","0.4rem"),o(B,"font-size","0.7rem"),o(B,"padding-bottom","0.4rem"),o(w,"font-size","0.7rem"),o(w,"padding-bottom","0.4rem"),o(z,"font-size","1.2rem"),o(z,"padding-top","0.4rem"),o(z,"padding-bottom","1rem"),o(M,"font-size","0.7rem"),o(M,"padding-bottom","0.4rem"),o(A,"font-size","0.7rem"),o(A,"padding-bottom","0.4rem"),o(R,"font-size","0.7rem"),o(R,"padding-bottom","0.4rem"),m(h,"class","summaryBody svelte-12034l8"),o(h,"background-color",a[11]()),m(e,"class","summaryMain svelte-12034l8"),o(e,"border","2px solid "+a[9]())},m(C,F){y(C,e,F),i(e,t),i(t,l),f&&f.m(l,null),i(l,n),i(t,s),i(t,r),i(r,p),i(r,c),i(r,v),i(r,N),i(r,g),i(e,E),i(e,h),i(h,u),i(h,H),i(h,Z),i(h,G),i(h,B),i(h,q),i(h,w),i(h,k),i(h,z),i(h,S),i(h,M),i(h,j),i(h,A),i(h,D),i(h,R)},p(C,F){C[5]?f||(f=se(),f.c(),f.m(l,n)):f&&(f.d(1),f=null)},d(C){C&&x(e),f&&f.d()}}}function fe(a){let e;return{c(){e=d("div"),e.innerHTML=`<div class="summaryHeader svelte-12034l8" 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 pre-hypertension patients.</div></div> <div class="summaryBody svelte-12034l8" 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>Elevated blood pressure:</b> Blood pressure readings consistently above
9
- <br/> normal but below hypertension thresholds are indicative of pre- <br/>
10
- hypertension</div> <div style="font-size: 0.7rem; padding-bottom: 0.4rem;"><b>No notable symptoms:</b> Often, pre-hypertension has no apparent symptoms, <br/>
11
- making regular blood pressure checks vital.</div> <div style="font-size: 0.7rem; padding-bottom: 0.4rem;"><b>Mild headaches or dizziness:</b> Occasionally, individuals might experience <br/>
12
- mild headaches or dizziness, which can be early signs. <br/></div> <div style="font-size: 1.2rem; padding-top: 0.4rem;padding-bottom: 1rem;">Possible follow-up tests:</div> <div style="font-size: 0.7rem; padding-bottom: 0.4rem;"><b>Routine blood pressure checks:</b> Essential for monitoring and managing
13
- <br/> blood pressure levels within the pre-hypertension range.</div> <div style="font-size: 0.7rem; padding-bottom: 0.4rem;"><b>Lifestyle assessment:</b> Evaluating diet, physical activity, and other lifestyle
14
- <br/> factors to identify areas for improvement.</div> <div style="font-size: 0.7rem; padding-bottom: 0.4rem;"><b>Echocardiogram:</b> To assess heart function and detect any early changes
15
- <br/> that may be associated with pre-hypertension.</div></div>`,m(e,"class","summaryMain svelte-12034l8")},m(t,l){y(t,e,l)},p:K,d(t){t&&x(e)}}}function se(a){let e,t;return{c(){e=P("svg"),t=P("path"),m(t,"fill","#CC0000"),m(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"),m(e,"xmlns","http://www.w3.org/2000/svg"),m(e,"width","50"),m(e,"height","50"),m(e,"viewBox","0 0 24 24")},m(l,n){y(l,e,n),i(e,t)},d(l){l&&x(e)}}}function re(a){let e,t,l,n,s,r,p;return{c(){e=d("div"),t=d("b"),l=L(a[8]),n=b(),s=P("svg"),r=P("path"),p=L(`
16
- \xA0 Some overlap`),o(e,"padding-right","10px"),m(r,"fill","#F2590D"),m(r,"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"),m(s,"xmlns","http://www.w3.org/2000/svg"),m(s,"width","24"),m(s,"height","24"),m(s,"viewBox","0 0 24 24")},m(c,v){y(c,e,v),i(e,t),i(t,l),y(c,n,v),y(c,s,v),i(s,r),y(c,p,v)},p(c,v){v&256&&O(l,c[8])},d(c){c&&(x(e),x(n),x(s),x(p))}}}function le(a){let e,t,l,n,s,r,p;return{c(){e=d("div"),t=d("b"),l=L(a[8]),n=b(),s=P("svg"),r=P("path"),p=L(`
17
- \xA0 No significant overlap`),o(e,"padding-right","10px"),m(r,"fill","#12A195"),m(r,"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"),m(s,"xmlns","http://www.w3.org/2000/svg"),m(s,"width","24"),m(s,"height","24"),m(s,"viewBox","0 0 24 24")},m(c,v){y(c,e,v),i(e,t),i(t,l),y(c,n,v),y(c,s,v),i(s,r),y(c,p,v)},p(c,v){v&256&&O(l,c[8])},d(c){c&&(x(e),x(n),x(s),x(p))}}}function ye(a){let e,t,l;function n(p,c){return p[0]==="header"?ve:p[0]==="summary"?be:ge}let s=n(a),r=s(a);return{c(){e=d("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=b(),r.c(),l=J()},m(p,c){y(p,e,c),y(p,t,c),r.m(p,c),y(p,l,c)},p(p,[c]){s===(s=n(p))&&r?r.p(p,c):(r.d(1),r=s(p),r&&(r.c(),r.m(l.parentNode,l)))},i:K,o:K,d(p){p&&(x(e),x(t),x(l)),r.d(p)}}}function xe(a,e,t){let{language:l}=e,{report:n}=e,{type:s}=e,{service:r=window.GaReportService}=e,p,c=0,v=0,N=0,g=0,E=!1,h=!1,u=!1,H="";function Z(){return g===50?"#00AA44":g<50?"#CC0000":(g>50,"#00AA44")}function G(){return g===50?"rgba(0,170,68,0.15)":g<50?"rgba(204,0,0,0.15)":(g>50,"rgba(0,170,68,0.15)")}function B(){return g===50?"rgba(0,170,68,0.05)":g<50?"rgba(204,0,0,0.05)":(g>50,"rgba(0,170,68,0.05)")}function q(){return g===50?"no significant overlap":g<50?"some overlap":(g>50,"no significant overlap")}return ce(async()=>{if(p=await r.getReport(n),t(1,c=Number(p.G2xmin)),t(2,v=Number(p.G2xmax)),t(3,N=Number(p.G2yourscore)),t(4,g=Number(p.G2percentile)),g===50){t(8,H="0/1"),t(6,h=!0),t(7,u=!0);return}if(g<50){t(8,H="1/1"),t(5,E=!0),t(7,u=!0);return}if(g>50){t(8,H="0/1"),t(6,h=!0),t(7,u=!0);return}}),a.$$set=w=>{"language"in w&&t(13,l=w.language),"report"in w&&t(14,n=w.report),"type"in w&&t(0,s=w.type),"service"in w&&t(15,r=w.service)},[s,c,v,N,g,E,h,u,H,Z,G,B,q,l,n,r]}class ne extends ae{constructor(e){super(),de(this,e,xe,ye,pe,{language:13,report:14,type:0,service:15},he)}get language(){return this.$$.ctx[13]}set language(e){this.$$set({language:e}),Y()}get report(){return this.$$.ctx[14]}set report(e){this.$$set({report:e}),Y()}get type(){return this.$$.ctx[0]}set type(e){this.$$set({type:e}),Y()}get service(){return this.$$.ctx[15]}set service(e){this.$$set({service:e}),Y()}}customElements.define("ga-pre-hypertension",oe(ne,{language:{},report:{},type:{},service:{}},[],[],!0));export{ne as default};
1
+ import{c as F,S as G,i as H,f as S,s as z,a as N,e as g,b as B,d as I,g as b,q as M,r as R,u as C,h as $,o as V,v as E,p as k,t as q,w as P,j as i,k as x,l as n,x as j,m as Z,y as O,n as A}from"./index2.js";import{A as K}from"./Arrow.js";import"./helpers.js";function U(d){N(d,"svelte-1371dlk",".summaryMain.svelte-1371dlk{width:100%;height:100%;display:flex;flex-direction:column;color:#09341FCC}.summaryHeader.svelte-1371dlk{width:100%;height:16%;font-size:0.9rem;display:flex;align-items:center}.summaryBody.svelte-1371dlk{width:80%;height:100%;margin:auto;border-top:2px solid #C9DBD2}.main.svelte-1371dlk{height:100%;width:100%;display:flex}.label.svelte-1371dlk{width:30%;display:flex;align-items:center}.header.svelte-1371dlk{width:100%;height:100%;display:flex;align-items:center}")}function Y(d){let e,l,t,s,m,c,h,p,v,r,o,a,f,L,w;return L=new K({props:{type:"left",percentile:d[5]}}),{c(){e=g("div"),l=g("div"),t=k("svg"),s=k("path"),c=B(),h=g("div"),p=g("div"),p.innerHTML="Glycan <b>Youth (G2)</b>",v=B(),r=g("div"),o=q(d[4]),a=B(),f=g("div"),P(L.$$.fragment),i(s,"fill",m=d[5]>=32?"#12A195":"#F2590D"),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","24"),i(t,"height","24"),i(t,"viewBox","0 0 24 24"),x(h,"display","flex"),x(h,"flex-direction","column"),x(h,"padding-left","0.3rem"),i(l,"class","label svelte-1371dlk"),x(l,"font-size","0.8rem"),x(f,"width","70%"),x(f,"display","flex"),x(f,"align-items","center"),i(e,"class","main svelte-1371dlk")},m(u,y){b(u,e,y),n(e,l),n(l,t),n(t,s),n(l,c),n(l,h),n(h,p),n(h,v),n(h,r),n(r,o),n(e,a),n(e,f),j(L,f,null),w=!0},p(u,y){(!w||y&32&&m!==(m=u[5]>=32?"#12A195":"#F2590D"))&&i(s,"fill",m),(!w||y&16)&&Z(o,u[4]);const T={};y&32&&(T.percentile=u[5]),L.$set(T)},i(u){w||(C(L.$$.fragment,u),w=!0)},o(u){M(L.$$.fragment,u),w=!1},d(u){u&&$(e),O(L)}}}function J(d){let e,l,t,s,m,c,h=d[5]<32?"Some overlap":"No significant overlap",p,v,r,o,a,f;function L(y,T){return y[1]?X:W}let w=L(d),u=w(d);return{c(){e=g("div"),l=g("div"),t=g("div"),u.c(),s=B(),m=g("div"),c=g("b"),p=q(h),v=q(" of glycan indexes between "),r=g("br"),o=q(" your patient and this condition."),a=B(),f=g("div"),f.innerHTML='<h5>Signs and symptoms</h5> <ul style="font-size: 0.8rem;"><li>Usually asymptomatic</li></ul> <h5>Possible follow-up tests</h5> <ul style="font-size: 0.8rem;"><li>Serial blood pressure (BP) measurements \xB1 24-hour BP monitoring</li> <li>BMI and/or body composition check</li> <li>Basic bloods (lipid profile, renal and liver function)</li></ul> <h5>Related research papers</h5> <a style="color: #E66439;" href="https://pubmed.ncbi.nlm.nih.gov/27124023/">The Association Between Glycosylation of Immunoglobulin G and Hypertension: A Multiple Ethnic Cross-Sectional Study</a> <p style="margin: 0; font-size: 0.8rem; color: #09341FCC;">In an extensive study with 4757 participants, including 913 from the Chinese Han Beijing population, 985 from Croatian Kor\u010Dula, 896 from Croatian Vis, and 1963 from Scottish Orkney, researchers investigated changes in IgG glycans associated with prehypertension and hypertension. The demographic composition of the study was approximately 40% female and 60% male participants. A notable observation was the decrease in G2 in the cohort with prehypertension.</p>',x(t,"transform","translate(-50%)"),x(c,"color",d[1]?"#F2590D":"#12A195"),i(l,"class","summaryHeader svelte-1371dlk"),i(f,"class","summaryBody svelte-1371dlk"),i(e,"class","summaryMain svelte-1371dlk")},m(y,T){b(y,e,T),n(e,l),n(l,t),u.m(t,null),n(l,s),n(l,m),n(m,c),n(c,p),n(m,v),n(m,r),n(m,o),n(e,a),n(e,f)},p(y,T){w!==(w=L(y))&&(u.d(1),u=w(y),u&&(u.c(),u.m(t,null))),T&32&&h!==(h=y[5]<32?"Some overlap":"No significant overlap")&&Z(p,h),T&2&&x(c,"color",y[1]?"#F2590D":"#12A195")},i:A,o:A,d(y){y&&$(e),u.d()}}}function Q(d){let e,l,t,s,m,c,h=d[1]?"Some overlap":"No significant overlap",p;function v(a,f){return a[1]?ee:_}let r=v(d),o=r(d);return{c(){e=g("div"),l=g("div"),t=g("b"),s=q(d[3]),m=B(),o.c(),c=q(`
2
+ \xA0\xA0`),p=q(h),x(l,"padding-right","10px"),i(e,"class","header svelte-1371dlk")},m(a,f){b(a,e,f),n(e,l),n(l,t),n(t,s),n(e,m),o.m(e,null),n(e,c),n(e,p)},p(a,f){f&8&&Z(s,a[3]),r!==(r=v(a))&&(o.d(1),o=r(a),o&&(o.c(),o.m(e,c))),f&2&&h!==(h=a[1]?"Some overlap":"No significant overlap")&&Z(p,h)},i:A,o:A,d(a){a&&$(e),o.d()}}}function W(d){let e,l;return{c(){e=k("svg"),l=k("path"),i(l,"fill","#12A195"),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(e,"xmlns","http://www.w3.org/2000/svg"),i(e,"width","50"),i(e,"height","50"),i(e,"viewBox","0 0 24 24")},m(t,s){b(t,e,s),n(e,l)},d(t){t&&$(e)}}}function X(d){let e,l;return{c(){e=k("svg"),l=k("path"),i(l,"fill","#F2590D"),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(e,"xmlns","http://www.w3.org/2000/svg"),i(e,"width","50"),i(e,"height","50"),i(e,"viewBox","0 0 24 24")},m(t,s){b(t,e,s),n(e,l)},d(t){t&&$(e)}}}function _(d){let e,l;return{c(){e=k("svg"),l=k("path"),i(l,"fill","#12A195"),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(e,"xmlns","http://www.w3.org/2000/svg"),i(e,"width","24"),i(e,"height","24"),i(e,"viewBox","0 0 24 24")},m(t,s){b(t,e,s),n(e,l)},d(t){t&&$(e)}}}function ee(d){let e,l;return{c(){e=k("svg"),l=k("path"),i(l,"fill","#F2590D"),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(e,"xmlns","http://www.w3.org/2000/svg"),i(e,"width","24"),i(e,"height","24"),i(e,"viewBox","0 0 24 24")},m(t,s){b(t,e,s),n(e,l)},d(t){t&&$(e)}}}function le(d){let e,l,t,s,m,c;const h=[Q,J,Y],p=[];function v(r,o){return r[0]==="header"?0:r[0]==="summary"&&r[2]?1:2}return t=v(d),s=p[t]=h[t](d),{c(){e=g("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=B(),s.c(),m=I()},m(r,o){b(r,e,o),b(r,l,o),p[t].m(r,o),b(r,m,o),c=!0},p(r,[o]){let a=t;t=v(r),t===a?p[t].p(r,o):(E(),M(p[a],1,1,()=>{p[a]=null}),R(),s=p[t],s?s.p(r,o):(s=p[t]=h[t](r),s.c()),C(s,1),s.m(m.parentNode,m))},i(r){c||(C(s),c=!0)},o(r){M(s),c=!1},d(r){r&&($(e),$(l),$(m)),p[t].d(r)}}}function te(d,e,l){let{report:t}=e,{type:s}=e,{service:m=window.GaReportService}=e,c,h=!1,p=!1,v="",r="",o=0;return V(async()=>{if(c=await m.getReport(t),l(5,o=Number(c.G2percentile)),o<32){l(3,v="1/1"),l(4,r="Lower than average"),l(1,h=!0),l(2,p=!0);return}if(o>=32&&o<=68){l(3,v="0/1"),l(4,r="Around average"),l(2,p=!0);return}if(o>68){l(3,v="0/1"),l(4,r="Higher than average"),l(3,v="1/1"),l(2,p=!0);return}}),d.$$set=a=>{"report"in a&&l(6,t=a.report),"type"in a&&l(0,s=a.type),"service"in a&&l(7,m=a.service)},[s,h,p,v,r,o,t,m]}class D extends G{constructor(e){super(),H(this,e,te,le,z,{report:6,type:0,service:7},U)}get report(){return this.$$.ctx[6]}set report(e){this.$$set({report:e}),S()}get type(){return this.$$.ctx[0]}set type(e){this.$$set({type:e}),S()}get service(){return this.$$.ctx[7]}set service(e){this.$$set({service:e}),S()}}customElements.define("ga-pre-hypertension",F(D,{report:{},type:{},service:{}},[],[],!0));export{D as default};
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@glycanage/web-components",
3
3
  "description": "A collection of web-components",
4
- "version": "1.33.0",
4
+ "version": "1.35.0",
5
5
  "type": "module",
6
6
  "main": "dist/lib/@glycanage/web-components.js",
7
7
  "scripts": {