@glycanage/web-components 1.193.0 → 1.195.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/index.js +1 -1
- package/dist/insights-overview-custom-clinical.wc.js +1 -0
- package/dist/main-result-custom-clinical.wc.js +1 -0
- package/dist/results-overview-custom-clinical.wc.js +1 -0
- package/dist/scatter-plot-custom-clinical.wc.js +1 -0
- package/dist/single-overview-custom-clinical.wc.js +1 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const t=()=>{import("./arthritis.wc.js"),import("./colitis.wc.js"),import("./crohn.wc.js"),import("./lupus.wc.js"),import("./diabetes.wc.js"),import("./myocardial.wc.js"),import("./menopause.wc.js"),import("./hypertension.wc.js"),import("./chronic.wc.js"),import("./dyslipidemia.wc.js"),import("./atherosclerosis.wc.js"),import("./coronary.wc.js"),import("./copd.wc.js"),import("./hypertension-risk.wc.js"),import("./pre-hypertension.wc.js"),import("./language.interface.js"),import("./colorectal.wc.js"),import("./endometrial.wc.js"),import("./ovarian.wc.js"),import("./age-graph.wc.js"),import("./index-graph.wc.js"),import("./median-graph.wc.js"),import("./median-graph-japanese.wc.js"),import("./index-graph-japanese.wc.js"),import("./results-overview.wc.js"),import("./results-overview-custom.wc.js"),import("./single-overview.wc.js"),import("./single-overview-custom.wc.js"),import("./main-result.wc.js"),import("./main-result-custom.wc.js"),import("./main-result-three.wc.js"),import("./main-result-three-client.wc.js"),import("./results-overview-three.wc.js"),import("./insights-overview.wc.js"),import("./insights-overview-three.wc.js"),import("./insights-overview-three-clp.wc.js"),import("./insights-overview-custom.wc.js"),import("./insights-overview-three-client.wc.js"),import("./insights-overview-latest.wc.js"),import("./action-steps-three.wc.js"),import("./action-steps-three-clp.wc.js"),import("./action-steps-three-client.wc.js"),import("./arrow-graph.wc.js"),import("./arrow-graph-three.wc.js"),import("./overlap-title.wc.js"),import("./overlap-title-three.wc.js"),import("./scatter-plot.wc.js"),import("./scatter-plot-custom.wc.js"),import("./results-overview-clp.wc.js"),import("./insights-overview-clp.wc.js"),import("./main-result-clp.wc.js"),import("./single-overview-clp.wc.js"),import("./single-overview-clp-new.wc.js"),import("./single-overview-three.wc.js"),import("./arrow-graph-clp.wc.js"),import("./overlap-title-clp.wc.js"),import("./scatter-plot-clp.wc.js"),import("./over-time.wc.js"),import("./over-time-clp.wc.js"),import("./over-time-indexes.wc.js")};export{t as default};
|
|
1
|
+
const t=()=>{import("./arthritis.wc.js"),import("./colitis.wc.js"),import("./crohn.wc.js"),import("./lupus.wc.js"),import("./diabetes.wc.js"),import("./myocardial.wc.js"),import("./menopause.wc.js"),import("./hypertension.wc.js"),import("./chronic.wc.js"),import("./dyslipidemia.wc.js"),import("./atherosclerosis.wc.js"),import("./coronary.wc.js"),import("./copd.wc.js"),import("./hypertension-risk.wc.js"),import("./pre-hypertension.wc.js"),import("./language.interface.js"),import("./colorectal.wc.js"),import("./endometrial.wc.js"),import("./ovarian.wc.js"),import("./age-graph.wc.js"),import("./index-graph.wc.js"),import("./median-graph.wc.js"),import("./median-graph-japanese.wc.js"),import("./index-graph-japanese.wc.js"),import("./results-overview.wc.js"),import("./results-overview-custom.wc.js"),import("./results-overview-custom-clinical.wc.js"),import("./single-overview.wc.js"),import("./single-overview-custom.wc.js"),import("./single-overview-custom-clinical.wc.js"),import("./main-result.wc.js"),import("./main-result-custom.wc.js"),import("./main-result-custom-clinical.wc.js"),import("./main-result-three.wc.js"),import("./main-result-three-client.wc.js"),import("./results-overview-three.wc.js"),import("./insights-overview.wc.js"),import("./insights-overview-three.wc.js"),import("./insights-overview-three-clp.wc.js"),import("./insights-overview-custom.wc.js"),import("./insights-overview-custom-clinical.wc.js"),import("./insights-overview-three-client.wc.js"),import("./insights-overview-latest.wc.js"),import("./action-steps-three.wc.js"),import("./action-steps-three-clp.wc.js"),import("./action-steps-three-client.wc.js"),import("./arrow-graph.wc.js"),import("./arrow-graph-three.wc.js"),import("./overlap-title.wc.js"),import("./overlap-title-three.wc.js"),import("./scatter-plot.wc.js"),import("./scatter-plot-custom.wc.js"),import("./scatter-plot-custom-clinical.wc.js"),import("./results-overview-clp.wc.js"),import("./insights-overview-clp.wc.js"),import("./main-result-clp.wc.js"),import("./single-overview-clp.wc.js"),import("./single-overview-clp-new.wc.js"),import("./single-overview-three.wc.js"),import("./arrow-graph-clp.wc.js"),import("./overlap-title-clp.wc.js"),import("./scatter-plot-clp.wc.js"),import("./over-time.wc.js"),import("./over-time-clp.wc.js"),import("./over-time-indexes.wc.js")};export{t as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{c as oe,S as se,i as ce,f as B,s as re,a as ie,d as ne,g as q,u as $,k as j,o as pe,e as d,b as m,p as f,q as p,n as u,z as R,m as V}from"./index2.js";import{e as k}from"./each.js";function ue(i){ie(i,"svelte-ajvqca",".main.svelte-ajvqca.svelte-ajvqca{height:100%;width:100%;display:flex;flex-direction:column}.causes.svelte-ajvqca.svelte-ajvqca{display:flex;flex:1;gap:0.2rem;padding:0.5rem;align-items:center}.cause-chip.svelte-ajvqca.svelte-ajvqca{display:flex;align-items:center;height:1rem;gap:0.15rem;padding:0 .5rem;font-size:6px;font-weight:bold;border-radius:999px}.cause-chip-dot.svelte-ajvqca.svelte-ajvqca{width:5px;height:5px;border-radius:999px}.cause-chip.good.svelte-ajvqca.svelte-ajvqca{background-color:rgba(17,153,153,.1);color:#119999}.cause-chip.good.svelte-ajvqca .cause-chip-dot.svelte-ajvqca{background-color:#119999}.cause-chip.slightly-bad.svelte-ajvqca .cause-chip-dot.svelte-ajvqca{background-color:#FFAA00}.cause-chip.bad.svelte-ajvqca .cause-chip-dot.svelte-ajvqca{background-color:#DD2222}.cause-chip.slightly-bad.svelte-ajvqca.svelte-ajvqca{background-color:#FFAA001A;color:#FFAA00}.cause-chip.bad.svelte-ajvqca.svelte-ajvqca{background-color:rgba(221,34,34,.1);color:#DD2222}.cause-chip.good.svelte-ajvqca.svelte-ajvqca{background-color:rgba(17,153,153,.1);color:#119999}.cause-chip.slightly-bad.svelte-ajvqca.svelte-ajvqca{background-color:#FFAA001A;color:#FFAA00}.cause-chip.bad.svelte-ajvqca.svelte-ajvqca{background-color:rgba(221,34,34,.1);color:#DD2222}")}function J(i,e,o){const r=i.slice();return r[34]=e[o],r}function K(i,e,o){const r=i.slice();return r[37]=e[o],r}function Q(i,e,o){const r=i.slice();return r[40]=e[o],r}function W(i){let e,o,r,c=i[1].length&&de(i),s=i[2].length&&he(i),a=i[3].length&&ve(i);return{c(){e=d("div"),c&&c.c(),o=m(),s&&s.c(),r=m(),a&&a.c(),f(e,"class","main svelte-ajvqca")},m(l,n){q(l,e,n),c&&c.m(e,null),p(e,o),s&&s.m(e,null),p(e,r),a&&a.m(e,null)},p(l,n){l[1].length&&c.p(l,n),l[2].length&&s.p(l,n),l[3].length&&a.p(l,n)},d(l){l&&j(e),c&&c.d(),s&&s.d(),a&&a.d()}}}function de(i){let e,o,r,c,s=k(i[1]),a=[];for(let l=0;l<s.length;l+=1)a[l]=X(Q(i,s,l));return{c(){e=d("div"),o=d("span"),o.textContent="High impact",r=m(),c=d("div");for(let l=0;l<a.length;l+=1)a[l].c();u(o,"font-size","0.58rem"),u(o,"min-width","72px"),u(c,"display","flex"),u(c,"flex-wrap","wrap"),u(c,"gap","0.2rem"),f(e,"class","causes svelte-ajvqca"),u(e,"border-top","1px solid #09341F33"),u(e,"border-bottom",i[3].length||i[2].length?"none":"1px solid #09341F33")},m(l,n){q(l,e,n),p(e,o),p(e,r),p(e,c);for(let t=0;t<a.length;t+=1)a[t]&&a[t].m(c,null)},p(l,n){if(n[0]&2){s=k(l[1]);let t;for(t=0;t<s.length;t+=1){const g=Q(l,s,t);a[t]?a[t].p(g,n):(a[t]=X(g),a[t].c(),a[t].m(c,null))}for(;t<a.length;t+=1)a[t].d(1);a.length=s.length}},d(l){l&&j(e),R(a,l)}}}function X(i){let e,o,r,c=i[40].label+"",s,a;return{c(){e=d("div"),o=d("div"),r=m(),s=V(c),a=m(),f(o,"class","cause-chip-dot svelte-ajvqca"),f(e,"class","cause-chip bad svelte-ajvqca")},m(l,n){q(l,e,n),p(e,o),p(e,r),p(e,s),p(e,a)},p:$,d(l){l&&j(e)}}}function he(i){let e,o,r,c,s=k(i[2]),a=[];for(let l=0;l<s.length;l+=1)a[l]=Y(K(i,s,l));return{c(){e=d("div"),o=d("div"),o.textContent="Medium impact",r=m(),c=d("div");for(let l=0;l<a.length;l+=1)a[l].c();u(o,"font-size","0.58rem"),u(o,"min-width","72px"),u(c,"display","flex"),u(c,"flex-wrap","wrap"),u(c,"gap","0.2rem"),f(e,"class","causes svelte-ajvqca"),u(e,"border-top","1px solid #09341F33"),u(e,"border-bottom",i[3].length?"none":"1px solid #09341F33")},m(l,n){q(l,e,n),p(e,o),p(e,r),p(e,c);for(let t=0;t<a.length;t+=1)a[t]&&a[t].m(c,null)},p(l,n){if(n[0]&4){s=k(l[2]);let t;for(t=0;t<s.length;t+=1){const g=K(l,s,t);a[t]?a[t].p(g,n):(a[t]=Y(g),a[t].c(),a[t].m(c,null))}for(;t<a.length;t+=1)a[t].d(1);a.length=s.length}},d(l){l&&j(e),R(a,l)}}}function Y(i){let e,o,r,c=i[37].label+"",s,a;return{c(){e=d("div"),o=d("div"),r=m(),s=V(c),a=m(),f(o,"class","cause-chip-dot svelte-ajvqca"),f(e,"class","cause-chip slightly-bad svelte-ajvqca")},m(l,n){q(l,e,n),p(e,o),p(e,r),p(e,s),p(e,a)},p:$,d(l){l&&j(e)}}}function ve(i){let e,o,r,c,s=k(i[3]),a=[];for(let l=0;l<s.length;l+=1)a[l]=Z(J(i,s,l));return{c(){e=d("div"),o=d("span"),o.textContent="Low impact",r=m(),c=d("div");for(let l=0;l<a.length;l+=1)a[l].c();u(o,"font-size","0.58rem"),u(o,"min-width","72px"),u(c,"display","flex"),u(c,"flex-wrap","wrap"),u(c,"gap","0.2rem"),f(e,"class","causes svelte-ajvqca"),u(e,"border-top","1px solid #09341F33"),u(e,"border-bottom","1px solid #09341F33")},m(l,n){q(l,e,n),p(e,o),p(e,r),p(e,c);for(let t=0;t<a.length;t+=1)a[t]&&a[t].m(c,null)},p(l,n){if(n[0]&8){s=k(l[3]);let t;for(t=0;t<s.length;t+=1){const g=J(l,s,t);a[t]?a[t].p(g,n):(a[t]=Z(g),a[t].c(),a[t].m(c,null))}for(;t<a.length;t+=1)a[t].d(1);a.length=s.length}},d(l){l&&j(e),R(a,l)}}}function Z(i){let e,o,r,c=i[34].label+"",s,a;return{c(){e=d("div"),o=d("div"),r=m(),s=V(c),a=m(),f(o,"class","cause-chip-dot svelte-ajvqca"),f(e,"class","cause-chip good svelte-ajvqca")},m(l,n){q(l,e,n),p(e,o),p(e,r),p(e,s),p(e,a)},p:$,d(l){l&&j(e)}}}function ge(i){let e,o=i[0]&&W(i);return{c(){o&&o.c(),e=ne()},m(r,c){o&&o.m(r,c),q(r,e,c)},p(r,c){r[0]?o?o.p(r,c):(o=W(r),o.c(),o.m(e.parentNode,e)):o&&(o.d(1),o=null)},i:$,o:$,d(r){r&&j(e),o&&o.d(r)}}}function be(i,e,o){let{service:r=window.GaReportService}=e,{type:c}=e,s,a="",l=0,n=0,t=0,g=0,x=0,N=0,y=0,F=0,w=0,C=0,A=0,D=0,P=0,z=0,E=0,G=0,L=0,H=0,I=0,O=0,T=0,U=0,M=!1,h=[],b=[],v=[];function ee(){a==="F"?g===0?v.push({label:"MI & CVA",color:"green"}):g===1&&h.push({label:"MI & CVA",color:"red"}):t<3?v.push({label:"MI & CVA",color:"green"}):t===3?b.push({label:"MI & CVA",color:"orange"}):t===4&&h.push({label:"MI & CVA",color:"red"}),a==="F"&&(x<3?v.push({label:"Atherosclerosis",color:"green"}):x===5?h.push({label:"Atherosclerosis",color:"red"}):b.push({label:"Atherosclerosis",color:"orange"})),a==="F"&&(N===0?v.push({label:"Coronary artery disease",color:"green"}):N===1?b.push({label:"Coronary artery disease",color:"orange"}):N===2&&h.push({label:"Coronary artery disease",color:"red"})),l===0&&n<2?v.push({label:"Hypertension",color:"green"}):h.push({label:"Hypertension",color:"red"})}function le(){y<3?v.push({label:"Type 2 diabetes",color:"green"}):y===5?h.push({label:"Type 2 diabetes",color:"red"}):b.push({label:"Type 2 diabetes",color:"orange"}),F<3?v.push({label:"Dyslipidemia",color:"green"}):F===3?b.push({label:"Dyslipidemia",color:"orange"}):h.push({label:"Dyslipidemia",color:"red"})}function ae(){w<3?v.push({label:"Rheumatoid arthritis",color:"green"}):w===3?b.push({label:"Rheumatoid arthritis",color:"orange"}):h.push({label:"Rheumatoid arthritis",color:"red"}),C<3?v.push({label:"Ulcerative colitis",color:"green"}):C===3?b.push({label:"Ulcerative colitis",color:"orange"}):h.push({label:"Ulcerative colitis",color:"red"}),A<3?v.push({label:"Crohn's disease",color:"green"}):A===5?h.push({label:"Crohn's disease",color:"red"}):b.push({label:"Crohn's disease",color:"orange"}),D<3?v.push({label:"SLE",color:"green"}):D===3?b.push({label:"SLE",color:"orange"}):h.push({label:"SLE",color:"red"})}function te(){P===0?v.push({label:"COPD",color:"green"}):P===1?b.push({label:"COPD",color:"orange"}):h.push({label:"COPD",color:"red"})}return pe(async()=>{s=await r.getReport(),a=s.sex,z=Number(s.Bpercentile),E=Number(s.Spercentile),G=Number(s.G0percentile),L=Number(s.G1percentile),H=Number(s.G2percentile),O=Number(s.P18percentile),I=Number(s.P22percentile),T=Number(s.P23percentile),U=Number(s.P26percentile),z>=67&&(l++,t++,x++,y++,F++,A++,P++),z<=33&&C++,E<=33&&(t++,x++,N++,y++,F++,w++,A++),G>=67&&(n++,t++,x++,N++,y++,F++,C++,A++,w++),L<=33&&(n++,x++,y++,w++,C++,A++,P++),H<=33&&(n++,t++,x++,y++,F++,w++,C++,A++),O>=67&&D++,I<=33&&D++,T>=67&&D++,U<=33&&D++,I<=33&&a==="F"&&g++,ee(),le(),ae(),te(),o(0,M=!0)}),i.$$set=S=>{"service"in S&&o(4,r=S.service),"type"in S&&o(5,c=S.type)},[M,h,b,v,r,c]}class _ extends se{constructor(e){super(),ce(this,e,be,ge,re,{service:4,type:5},ue,[-1,-1])}get service(){return this.$$.ctx[4]}set service(e){this.$$set({service:e}),B()}get type(){return this.$$.ctx[5]}set type(e){this.$$set({type:e}),B()}}customElements.define("ga-insights-overview-custom-clinical",oe(_,{service:{},type:{}},[],[],!0));export{_ as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{c as $,S as k,i as S,f as h,s as D,a as z,d as M,g as b,u as C,k as y,o as j,e as f,v as w,b as q,m as N,p as r,n as F,q as o,r as H}from"./index2.js";function L(c){z(c,"svelte-qdcddn",".graph-container.svelte-qdcddn.svelte-qdcddn{width:100%;height:100%;gap:.25rem;display:flex;flex-direction:column;position:relative}.colorBox.svelte-qdcddn.svelte-qdcddn{height:3px;width:14.3%;border-radius:24px}.colorBoxShort.svelte-qdcddn.svelte-qdcddn{height:3px;width:5%;border-radius:24px}.slider-number.svelte-qdcddn.svelte-qdcddn{display:flex;flex-direction:column;align-items:center;position:absolute;color:white;top:25%;left:50%;transform:translate(-50%, -12.5%)}.slider.svelte-qdcddn.svelte-qdcddn{position:relative;display:flex;flex-direction:column;align-items:center}.slider-pin.svelte-qdcddn.svelte-qdcddn{position:absolute;transform:translate(-50%, .5rem);bottom:0}.slider-pin.svelte-qdcddn svg.svelte-qdcddn{transform:rotate(180deg)}.slider-bar.svelte-qdcddn.svelte-qdcddn{width:100%;display:flex;gap:.25rem}.texts.svelte-qdcddn.svelte-qdcddn{display:flex;gap:.25rem}.text-left.svelte-qdcddn.svelte-qdcddn{border-left:1px solid #09341F33;border-right:1px solid #09341F33;display:flex;flex:2.5 2.5 0;align-items:center;justify-content:center;font-size:0.45rem;color:#09341F80;max-height:0.6rem}.text-middle.svelte-qdcddn.svelte-qdcddn{position:relative;display:flex;align-items:center;justify-content:center;flex:2 2 0;font-size:0.45rem;color:#09341F80;max-height:0.6rem}.text-right.svelte-qdcddn.svelte-qdcddn{border-left:1px solid #09341F33;border-right:1px solid #09341F33;display:flex;flex:2.5 2.5 0;align-items:center;justify-content:center;font-size:0.45rem;color:#09341F80;max-height:0.6rem}")}function B(c){let d,t,s,l,v,n,i,e,m,g,u,a;return{c(){d=f("div"),t=f("div"),s=f("div"),l=w("svg"),v=w("path"),n=q(),i=f("b"),e=N(c[0]),m=q(),g=f("div"),g.innerHTML='<div class="colorBoxShort svelte-qdcddn" style="background-color: #015566;"></div> <div class="colorBox svelte-qdcddn" style="background-color: #015566;"></div> <div class="colorBox svelte-qdcddn" style="background-color: #13A195;"></div> <div class="colorBox svelte-qdcddn" style="background-color: #66CCAA;"></div> <div class="colorBox svelte-qdcddn" style="background-color: #66CCAA;"></div> <div class="colorBox svelte-qdcddn" style="background-color: #F2800D;"></div> <div class="colorBox svelte-qdcddn" style="background-color: #DF2120;"></div> <div class="colorBoxShort svelte-qdcddn" style="background-color: #DF2120;"></div>',u=q(),a=f("div"),a.innerHTML='<div class="text-left svelte-qdcddn">Optimal</div> <div class="text-middle svelte-qdcddn">Average</div> <div class="text-right svelte-qdcddn">Suboptimal</div>',r(v,"d","M22.0002 0.133165C22.6224 0.133165 23.2446 0.244272 23.8668 0.466494C24.4891 0.688719 25.0446 1.02205 25.5335 1.46649C28.4224 4.13316 30.9779 6.73316 33.2002 9.2665C35.4224 11.7998 37.2779 14.2554 38.7668 16.6332C40.2557 19.0109 41.3891 21.2998 42.1668 23.4998C42.9446 25.6998 43.3335 27.7998 43.3335 29.7998C43.3335 36.4665 41.1891 41.7776 36.9002 45.7332C32.6113 49.6887 27.6446 51.6665 22.0002 51.6665C16.3557 51.6665 11.3891 49.6887 7.10016 45.7332C2.81128 41.7776 0.666833 36.4665 0.666834 29.7998C0.666834 27.7998 1.05572 25.6998 1.8335 23.4998C2.61128 21.2998 3.74461 19.0109 5.2335 16.6332C6.72239 14.2554 8.57795 11.7998 10.8002 9.2665C13.0224 6.73316 15.5779 4.13316 18.4668 1.46649C18.9557 1.02205 19.5113 0.688719 20.1335 0.466493C20.7557 0.244272 21.3779 0.133165 22.0002 0.133165Z"),r(v,"fill",c[2]()),r(l,"width","20"),r(l,"height","28"),r(l,"viewBox","0 0 44 52"),r(l,"fill","none"),r(l,"xmlns","http://www.w3.org/2000/svg"),r(l,"class","svelte-qdcddn"),r(i,"class","slider-number svelte-qdcddn"),F(i,"font-size","0.46rem"),r(s,"class","slider-pin svelte-qdcddn"),F(s,"left",c[3]()+"%"),r(t,"class","slider svelte-qdcddn"),r(g,"class","slider-bar svelte-qdcddn"),r(a,"class","texts svelte-qdcddn"),r(d,"class","graph-container svelte-qdcddn")},m(x,p){b(x,d,p),o(d,t),o(t,s),o(s,l),o(l,v),o(s,n),o(s,i),o(i,e),o(d,m),o(d,g),o(d,u),o(d,a)},p(x,p){p&1&&H(e,x[0])},d(x){x&&y(d)}}}function R(c){let d,t=c[1]&&B(c);return{c(){t&&t.c(),d=M()},m(s,l){t&&t.m(s,l),b(s,d,l)},p(s,[l]){s[1]?t?t.p(s,l):(t=B(s),t.c(),t.m(d.parentNode,d)):t&&(t.d(1),t=null)},i:C,o:C,d(s){s&&y(d),t&&t.d(s)}}}function T(c,d,t){let{lang:s}=d,{service:l=window.GaReportService}=d,v,n=0,i=0,e=0;function m(){if(n===i||e<=6)return"#66CCAA";if(n<i&&e<=12)return"#13A195";if(n<i&&e>12)return"#015566";if(n>i&&e<=12)return"#F2800D";if(n>i&&e>12)return"#DF2120"}function g(){if(n===i)return 50;if(n>i)return e<=6?51+(2*e+e*.3):e<=12?52+(e+2*e*.65):e<=18?55+(2*e+e*.2):97.2;if(n<i)return e<=6?49-(2*e+e*.3):e<=12?48-(e+2*e*.65):e<=18?45-(2*e+e*.2):2.8}let u=!1;return j(async()=>{v=await l.getReport(),t(0,n=Number(v.glycanage)),i=Number(v.chronologicalage),e=Math.abs(n-i),t(1,u=!0)}),c.$$set=a=>{"lang"in a&&t(4,s=a.lang),"service"in a&&t(5,l=a.service)},[n,u,m,g,s,l]}class A extends k{constructor(d){super(),S(this,d,T,R,D,{lang:4,service:5},L)}get lang(){return this.$$.ctx[4]}set lang(d){this.$$set({lang:d}),h()}get service(){return this.$$.ctx[5]}set service(d){this.$$set({service:d}),h()}}customElements.define("ga-main-result-custom-clinical",$(A,{lang:{},service:{}},[],[],!0));export{A as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{c as ue,S as ve,i as he,f as ee,s as ge,a as pe,d as we,g as c,u as re,k as d,o as fe,e as m,m as N,b as p,v as J,n as u,p as e,q as a,r as G}from"./index2.js";import{s as ce,f as K,h as Q,j as _}from"./helpers.js";function be(s){pe(s,"svelte-knwm88",".main.svelte-knwm88{height:100%;width:100%;display:flex}.label.svelte-knwm88{width:30%;display:flex;align-items:center}.label-container.svelte-knwm88{display:flex;flex-direction:column}.graph-container.svelte-knwm88{width:70%;display:flex;align-items:center;justify-content:space-between;position:relative}.colorBox.svelte-knwm88{height:3px;width:14.3%;border-radius:24px}.colorBoxShort.svelte-knwm88{height:3px;width:5%;border-radius:24px}.slider.svelte-knwm88{display:flex;flex-direction:column;align-items:center;position:absolute;transform:translate(-50%, -55%);width:24%;max-height:70px}.slider-number.svelte-knwm88{display:flex;flex-direction:column;align-items:center;position:absolute;transform:translate(-50%, -145%);width:26%;font-size:0.38rem;color:white}.slider-triangle.svelte-knwm88{display:flex;flex-direction:column;align-items:center;position:absolute;transform:translate(-50%, -105%);width:24%}.text-left.svelte-knwm88{position:absolute;height:15%;border-left:1px solid #09341F33;border-right:1px solid #09341F33;top:62%;left:0;display:flex;align-items:center;justify-content:center;font-size:0.44rem;color:#09341F80}.text-middle.svelte-knwm88{position:absolute;height:15%;top:62%;display:flex;align-items:center;justify-content:center;font-size:0.44rem;color:#09341F80}.text-right.svelte-knwm88{position:absolute;height:15%;border-left:1px solid #09341F33;border-right:1px solid #09341F33;top:62%;right:0;display:flex;align-items:center;justify-content:center;font-size:0.44rem;color:#09341F80}")}function de(s){let o,t,r,w,b,f,k,F,y,v,x,A,g,h,S,l,n,D,P,te,I,j,U,V,q=ce(s[5],s[1])+"",W,le,ne,O,B,M,H,ie,R,T=s[0]==="shield"||s[0]==="youth"||s[0]==="median"?"Suboptimal":"Optimal",X,se,z,oe,E,Z=s[0]==="shield"||s[0]==="youth"||s[0]==="median"?"Optimal":"Suboptimal",Y;function ae(i,C){if(i[0]==="mature"||i[0]==="lifestyle"||i[0]==="age")return xe;if(i[0]==="shield"||i[0]==="youth"||i[0]==="median")return ke}let L=ae(s),$=L&&L(s);return{c(){o=m("div"),t=m("div"),r=m("div"),w=m("span"),b=N(s[2]),f=p(),k=m("span"),F=N(s[3]),y=p(),v=m("div"),x=m("b"),A=N(s[4]),g=p(),h=m("div"),$&&$.c(),S=p(),l=m("div"),n=J("svg"),D=J("rect"),te=p(),I=m("div"),j=m("b"),U=N(s[5]),V=m("sup"),W=N(q),le=N(" percentile"),ne=p(),O=m("div"),B=J("svg"),M=J("path"),ie=p(),R=m("div"),X=N(T),se=p(),z=m("div"),z.textContent="Average",oe=p(),E=m("div"),Y=N(Z),u(w,"font-size","0.7rem"),u(k,"font-size","0.48rem"),u(v,"font-size","0.44rem"),u(v,"color",s[4]==="Anti-inflammatory"?"#119999":"#DD2222"),e(r,"class","label-container svelte-knwm88"),e(t,"class","label svelte-knwm88"),e(D,"width","100"),e(D,"height","24"),e(D,"rx","4"),e(D,"fill",P=s[0]==="shield"||s[0]==="youth"||s[0]==="median"?K(s[5]):Q(s[5])),e(n,"width","55"),e(n,"height","24"),e(n,"viewBox","0 0 100 24"),e(n,"fill","none"),e(n,"xmlns","http://www.w3.org/2000/svg"),e(l,"class","slider svelte-knwm88"),u(l,"left",_(s[5])+"%"),e(I,"class","slider-number svelte-knwm88"),u(I,"left",_(s[5])+"%"),e(M,"d","M6.8 6.93333C6.4 7.46667 5.6 7.46667 5.2 6.93333L0 8.07577e-07L12 0L6.8 6.93333Z"),e(M,"fill",H=s[0]==="shield"||s[0]==="youth"||s[0]==="median"?K(s[5]):Q(s[5])),e(B,"width","9"),e(B,"height","5"),e(B,"viewBox","0 0 12 8"),e(B,"fill","none"),e(B,"xmlns","http://www.w3.org/2000/svg"),e(O,"class","slider-triangle svelte-knwm88"),u(O,"left",_(s[5])+"%"),e(R,"class","text-left svelte-knwm88"),u(R,"width","34.7%"),e(z,"class","text-middle svelte-knwm88"),u(z,"width","30%"),u(z,"left","35%"),e(E,"class","text-right svelte-knwm88"),u(E,"width","34.7%"),e(h,"class","graph-container svelte-knwm88"),e(o,"class","main svelte-knwm88")},m(i,C){c(i,o,C),a(o,t),a(t,r),a(r,w),a(w,b),a(r,f),a(r,k),a(k,F),a(r,y),a(r,v),a(v,x),a(x,A),a(o,g),a(o,h),$&&$.m(h,null),a(h,S),a(h,l),a(l,n),a(n,D),a(h,te),a(h,I),a(I,j),a(j,U),a(j,V),a(V,W),a(j,le),a(h,ne),a(h,O),a(O,B),a(B,M),a(h,ie),a(h,R),a(R,X),a(h,se),a(h,z),a(h,oe),a(h,E),a(E,Y)},p(i,C){C&4&&G(b,i[2]),C&8&&G(F,i[3]),C&16&&G(A,i[4]),C&16&&u(v,"color",i[4]==="Anti-inflammatory"?"#119999":"#DD2222"),L!==(L=ae(i))&&($&&$.d(1),$=L&&L(i),$&&($.c(),$.m(h,S))),C&33&&P!==(P=i[0]==="shield"||i[0]==="youth"||i[0]==="median"?K(i[5]):Q(i[5]))&&e(D,"fill",P),C&32&&u(l,"left",_(i[5])+"%"),C&32&&G(U,i[5]),C&34&&q!==(q=ce(i[5],i[1])+"")&&G(W,q),C&32&&u(I,"left",_(i[5])+"%"),C&33&&H!==(H=i[0]==="shield"||i[0]==="youth"||i[0]==="median"?K(i[5]):Q(i[5]))&&e(M,"fill",H),C&32&&u(O,"left",_(i[5])+"%"),C&1&&T!==(T=i[0]==="shield"||i[0]==="youth"||i[0]==="median"?"Suboptimal":"Optimal")&&G(X,T),C&1&&Z!==(Z=i[0]==="shield"||i[0]==="youth"||i[0]==="median"?"Optimal":"Suboptimal")&&G(Y,Z)},d(i){i&&d(o),$&&$.d()}}}function ke(s){let o,t,r,w,b,f,k,F,y,v,x,A,g,h,S;return{c(){o=m("div"),t=p(),r=m("div"),w=p(),b=m("div"),f=p(),k=m("div"),F=p(),y=m("div"),v=p(),x=m("div"),A=p(),g=m("div"),h=p(),S=m("div"),e(o,"class","colorBoxShort svelte-knwm88"),u(o,"background-color","#DF2120"),e(r,"class","colorBox svelte-knwm88"),u(r,"background-color","#DF2120"),e(b,"class","colorBox svelte-knwm88"),u(b,"background-color","#F2800D"),e(k,"class","colorBox svelte-knwm88"),u(k,"background-color","#66CCAA"),e(y,"class","colorBox svelte-knwm88"),u(y,"background-color","#66CCAA"),e(x,"class","colorBox svelte-knwm88"),u(x,"background-color","#13A195"),e(g,"class","colorBox svelte-knwm88"),u(g,"background-color","#015566"),e(S,"class","colorBoxShort svelte-knwm88"),u(S,"background-color","#015566")},m(l,n){c(l,o,n),c(l,t,n),c(l,r,n),c(l,w,n),c(l,b,n),c(l,f,n),c(l,k,n),c(l,F,n),c(l,y,n),c(l,v,n),c(l,x,n),c(l,A,n),c(l,g,n),c(l,h,n),c(l,S,n)},d(l){l&&(d(o),d(t),d(r),d(w),d(b),d(f),d(k),d(F),d(y),d(v),d(x),d(A),d(g),d(h),d(S))}}}function xe(s){let o,t,r,w,b,f,k,F,y,v,x,A,g,h,S;return{c(){o=m("div"),t=p(),r=m("div"),w=p(),b=m("div"),f=p(),k=m("div"),F=p(),y=m("div"),v=p(),x=m("div"),A=p(),g=m("div"),h=p(),S=m("div"),e(o,"class","colorBoxShort svelte-knwm88"),u(o,"background-color","#015566"),e(r,"class","colorBox svelte-knwm88"),u(r,"background-color","#015566"),e(b,"class","colorBox svelte-knwm88"),u(b,"background-color","#13A195"),e(k,"class","colorBox svelte-knwm88"),u(k,"background-color","#66CCAA"),e(y,"class","colorBox svelte-knwm88"),u(y,"background-color","#66CCAA"),e(x,"class","colorBox svelte-knwm88"),u(x,"background-color","#F2800D"),e(g,"class","colorBox svelte-knwm88"),u(g,"background-color","#DF2120"),e(S,"class","colorBoxShort svelte-knwm88"),u(S,"background-color","#DF2120")},m(l,n){c(l,o,n),c(l,t,n),c(l,r,n),c(l,w,n),c(l,b,n),c(l,f,n),c(l,k,n),c(l,F,n),c(l,y,n),c(l,v,n),c(l,x,n),c(l,A,n),c(l,g,n),c(l,h,n),c(l,S,n)},d(l){l&&(d(o),d(t),d(r),d(w),d(b),d(f),d(k),d(F),d(y),d(v),d(x),d(A),d(g),d(h),d(S))}}}function ye(s){let o,t=s[6]&&de(s);return{c(){t&&t.c(),o=we()},m(r,w){t&&t.m(r,w),c(r,o,w)},p(r,[w]){r[6]?t?t.p(r,w):(t=de(r),t.c(),t.m(o.parentNode,o)):t&&(t.d(1),t=null)},i:re,o:re,d(r){r&&d(o),t&&t.d(r)}}}function Ae(s,o,t){let{type:r}=o,{lang:w}=o,{service:b=window.GaReportService}=o,f,k="",F="",y="",v=0,x=!1;const A=[{name:"age",label:"BIOLOGICAL_AGE",description:"CHRONIC_INFLAMMATION"},{name:"shield",label:"S Index",subtitle:"Sialylation",description:"Anti-inflammatory"},{name:"youth",label:"G2 Index",subtitle:"Digalactosylation",description:"Anti-inflammatory"},{name:"mature",label:"G0 Index",subtitle:"Agalactosylation",description:"Pro-inflammatory"},{name:"median",label:"G1 Index",subtitle:"Monogalactosylation",description:"Anti-inflammatory"},{name:"lifestyle",label:"B Index",subtitle:"Bisecting GlcNAc",description:"Pro-inflammatory"}].find(g=>g.name===r);return fe(async()=>{switch(f=await b.getReport(),Number(f.glycanage),Number(f.chronologicalage),r){case"age":t(5,v=Number(f.glycanage));break;case"shield":t(5,v=Number(f.Spercentile));break;case"youth":t(5,v=Number(f.G2percentile));break;case"mature":t(5,v=Number(f.G0percentile));break;case"median":t(5,v=Number(f.G1percentile));break;case"lifestyle":t(5,v=Number(f.Bpercentile))}(v===100||v===0)&&t(5,v=v===100?99:1),A&&(t(2,k=A.label),t(4,y=A.description),t(3,F=A.subtitle)),t(6,x=!0)}),s.$$set=g=>{"type"in g&&t(0,r=g.type),"lang"in g&&t(1,w=g.lang),"service"in g&&t(7,b=g.service)},[r,w,k,F,y,v,x,b]}class me extends ve{constructor(o){super(),he(this,o,Ae,ye,ge,{type:0,lang:1,service:7},be)}get type(){return this.$$.ctx[0]}set type(o){this.$$set({type:o}),ee()}get lang(){return this.$$.ctx[1]}set lang(o){this.$$set({lang:o}),ee()}get service(){return this.$$.ctx[7]}set service(o){this.$$set({service:o}),ee()}}customElements.define("ga-results-overview-custom-clinical",ue(me,{type:{},lang:{},service:{}},[],[],!0));export{me as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{c as W,S as B,i as I,f as b,s as M,e as L,b as H,n as A,p as G,g as k,q as V,u as P,k as F,o as Z,A as q}from"./index2.js";import{g as X}from"./globals.js";import{a as E,f as _,h as j}from"./helpers.js";const{document:J}=X;function K(m){let e,a,t;return{c(){e=L("div"),a=H(),t=L("link"),A(e,"width","100%"),A(e,"height","100%"),A(e,"position","relative"),G(t,"href","https://fonts.googleapis.com/css2?family=Sen:wght@400..800&display=swap"),G(t,"rel","stylesheet")},m(r,c){k(r,e,c),m[4](e),k(r,a,c),V(J.head,t)},p:P,i:P,o:P,d(r){r&&(F(e),F(a)),m[4](null),F(t)}}}function Q(m,e,a){let{type:t}=e,{lang:r}=e,{service:c=window.GaReportService}=e,R=[{name:"mature",csvPerc:"G0percentile",csvScore:"G0yourscore"},{name:"youth",csvPerc:"G2percentile",csvScore:"G2yourscore"},{name:"shield",csvPerc:"Spercentile",csvScore:"Syourscore"},{name:"lifestyle",csvPerc:"Bpercentile",csvScore:"Byourscore"},{name:"median",csvPerc:"G1percentile",csvScore:"G1yourscore"}],u,$,T,f=0,p=0,i={},v="",y=0,x;const g=R.find(o=>o.name===t);function h(){if(t=="shield"||t=="youth"||t=="median")return _(f);if(t=="mature"||t=="lifestyle")return j(f)}function D(){x&&(i=echarts.init(x,null,{devicePixelRatio:4,renderer:"svg"}));const o=x.getBoundingClientRect();var d={textStyle:{fontFamily:"Sen, sans serif"},animation:!1,backgroundColor:"transparent",grid:{top:"34px",left:"37px",right:"44px",bottom:"28px"},dataset:[{source:$.data.map(s=>[s.x,s.y])},{source:T.data.map(s=>[s.x,s.y])}],tooltip:{show:!1},xAxis:{min:0,max:100,interval:20,name:E(r,"AGE"),nameTextStyle:{color:"#09341F",opacity:.8,fontSize:8},axisLine:{show:!0,lineStyle:{color:"#09341F",opacity:.1},symbol:["none","arrow"],symbolSize:[5,10],symbolOffset:[8]},axisTick:{show:!1},axisLabel:{show:!0,color:"#09341F",fontSize:8,opacity:.8,formatter(s){return s===0||s===100?"":s}},splitLine:{show:!0}},yAxis:{min:0,max:.6,name:E(r,"INDEX_SCORE"),nameTextStyle:{color:"#09341F",opacity:.8,fontSize:8},axisLine:{show:!0,lineStyle:{color:"#09341F",opacity:.1},symbol:["none","arrow"],symbolSize:[5,10],symbolOffset:[5]},axisTick:{show:!1},axisLabel:{show:!0,color:"#09341F",fontSize:8,opacity:.8,formatter(s){return s===0||s===.6?"":s}},splitLine:{show:!0}},series:[{type:"scatter",tooltip:{},itemStyle:{color:"#09341F",opacity:.1,borderWidth:1}},{name:"Result",type:"scatter",data:[{x:y,y:p}],itemStyle:{color:h()}},{name:"Average population",type:"line",smooth:!0,datasetIndex:1,symbol:"line",lineStyle:{name:"line",type:"line",color:"#09341F",opacity:.5,symbol:"none",width:5},showSymbol:!1}],graphic:[],legend:{show:!0,right:"50%",top:"1%",left:"67%",itemGap:.2,itemWidth:10,itemHeight:6,textStyle:{color:"#09341F",opacity:.8,fontSize:8},selected:{"Measured result":!0,"Population average":!0},inactiveColor:"#fff"}};i.setOption(d),d.graphic.push({type:"line",shape:{x1:i.convertToPixel("xAxis",y),y1:i.convertToPixel("yAxis",0),x2:i.convertToPixel("xAxis",y),y2:i.convertToPixel("yAxis",p)},style:{stroke:h(),lineDash:[8,8],lineWidth:1.7},z:8}),d.graphic.push({type:"line",shape:{x1:i.convertToPixel("xAxis",0),y1:i.convertToPixel("yAxis",p),x2:i.convertToPixel("xAxis",y),y2:i.convertToPixel("yAxis",p)},style:{stroke:h(),lineDash:[8,8],lineWidth:1.7},z:8}),d.graphic.push({name:"Measured result",type:"circle",shape:{cx:i.convertToPixel("xAxis",y),cy:i.convertToPixel("yAxis",p),r:4},style:{fill:h(),stroke:"#FFFFFF",lineWidth:1},z:15});const C=i.convertToPixel("xAxis",y),z=i.convertToPixel("yAxis",p),n=document.createElementNS("http://www.w3.org/2000/svg","svg"),l=document.createElement("div");n.setAttribute("width","52"),n.setAttribute("height","18"),n.setAttribute("viewBox","0 0 71 32"),n.setAttribute("fill","none"),n.setAttribute("xmlns","http://www.w3.org/2000/svg");const w=document.createElementNS("http://www.w3.org/2000/svg","path");w.setAttribute("d","M7 4C7 1.79086 8.79086 0 11 0H67C69.2091 0 71 1.79086 71 4V28C71 30.2091 69.2091 32 67 32H11C8.79086 32 7 30.2091 7 28V4Z"),w.setAttribute("fill",h());const S=document.createElementNS("http://www.w3.org/2000/svg","path");S.setAttribute("d","M1.13333 17.6C0.0666666 16.8 0.0666666 15.2 1.13333 14.4L7 10L7 22L1.13333 17.6Z"),S.setAttribute("fill",h()),n.appendChild(w),n.appendChild(S),n.style.position="absolute",n.style.left=`${o.left+C-95}px`,n.style.top=`${o.top+z-10}px`,n.style.zIndex="8",l.innerText=`${Number.parseFloat(p).toFixed(3)}`,l.style.position="absolute",l.style.left=`${o.left+C-79}px`,l.style.top=`${o.top+z-7}px`,l.style.font="bold 10px sans-serif",l.style.color="white",l.style.zIndex="999",l.style.fontFamily="Sen",document.body.appendChild(l),document.body.appendChild(n),i.setOption(d)}Z(async()=>{u=await c.getReport(),v=u.sex,$=await c.getScatterData(t,v),T=await c.getLineData(t,v),y=Number(u.chronologicalage),g&&(f=Number(u[g.csvPerc]),p=Number(u[g.csvScore])),D()});function O(o){q[o?"unshift":"push"](()=>{x=o,a(0,x)})}return m.$$set=o=>{"type"in o&&a(1,t=o.type),"lang"in o&&a(2,r=o.lang),"service"in o&&a(3,c=o.service)},[x,t,r,c,O]}class N extends B{constructor(e){super(),I(this,e,Q,K,M,{type:1,lang:2,service:3})}get type(){return this.$$.ctx[1]}set type(e){this.$$set({type:e}),b()}get lang(){return this.$$.ctx[2]}set lang(e){this.$$set({lang:e}),b()}get service(){return this.$$.ctx[3]}set service(e){this.$$set({service:e}),b()}}customElements.define("ga-scatter-plot-custom-clinical",W(N,{type:{},lang:{},service:{}},[],[],!1));export{N as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{c as ee,S as te,i as le,f as K,s as se,a as ie,d as oe,g as a,u as V,k as c,o as re,e as v,b as k,v as E,m as L,p as t,n as h,q as g,r as M}from"./index2.js";import{s as W,f as Z,h as H,j}from"./helpers.js";function ae(o){ie(o,"svelte-1kvxs83",".graph.svelte-1kvxs83{height:100%;width:100%;display:flex;align-items:center;justify-content:center;border:1px solid #09341F33;border-radius:10px}.graph-container.svelte-1kvxs83{width:75%;height:100%;display:flex;align-items:center;justify-content:space-between;position:relative}.colorBox.svelte-1kvxs83{height:4px;width:14.3%;border-radius:24px}.colorBoxShort.svelte-1kvxs83{height:4px;width:5%;border-radius:24px}.slider.svelte-1kvxs83{display:flex;flex-direction:column;align-items:center;position:absolute;transform:translate(-50%, -55%);width:24%;max-height:70px}.slider-number.svelte-1kvxs83{display:flex;flex-direction:column;align-items:center;position:absolute;transform:translate(-50%, -135%);width:24%;color:white;font-weight:500;font-size:0.4rem}.text-left.svelte-1kvxs83{position:absolute;height:15%;border-left:1px solid #09341F33;border-right:1px solid #09341F33;top:62%;left:0;display:flex;align-items:center;justify-content:center;font-size:0.5rem;color:#09341F80}.text-middle.svelte-1kvxs83{position:absolute;height:15%;top:62%;left:35%;display:flex;align-items:center;justify-content:center;font-size:0.5rem;color:#09341F80}.text-right.svelte-1kvxs83{position:absolute;height:15%;border-left:1px solid #09341F33;border-right:1px solid #09341F33;top:62%;right:0;display:flex;align-items:center;justify-content:center;font-size:0.5rem;color:#09341F80}.slider-triangle.svelte-1kvxs83{display:flex;flex-direction:column;align-items:center;position:absolute;transform:translate(-50%, -105%);width:24%}")}function X(o){let i,e,n,p,u,m,d,w,x,B,b,C,f=W(o[2],o[1])+"",A,y,l,s,D,z,R,P,G,_=o[0]==="shield"||o[0]==="youth"||o[0]==="median"?"Suboptimal":"Optimal",I,Q,O,T,S,q=o[0]==="shield"||o[0]==="youth"||o[0]==="median"?"Optimal":"Suboptimal",J;function U(r,$){if(r[0]==="mature"||r[0]==="lifestyle")return ne;if(r[0]==="shield"||r[0]==="youth"||r[0]==="median")return ce}let N=U(o),F=N&&N(o);return{c(){i=v("div"),e=v("div"),F&&F.c(),n=k(),p=v("div"),u=E("svg"),m=E("rect"),w=k(),x=v("div"),B=v("b"),b=L(o[2]),C=v("sup"),A=L(f),y=L(" percentile"),l=k(),s=v("div"),D=E("svg"),z=E("path"),P=k(),G=v("div"),I=L(_),Q=k(),O=v("div"),O.textContent="Average",T=k(),S=v("div"),J=L(q),t(m,"width","100"),t(m,"height","24"),t(m,"rx","4"),t(m,"fill",d=o[0]==="shield"||o[0]==="youth"||o[0]==="median"?Z(o[2]):H(o[2])),t(u,"width","60"),t(u,"height","24"),t(u,"viewBox","0 0 100 24"),t(u,"fill","none"),t(u,"xmlns","http://www.w3.org/2000/svg"),t(p,"class","slider svelte-1kvxs83"),h(p,"left",j(o[2])+"%"),t(x,"class","slider-number svelte-1kvxs83"),h(x,"left",j(o[2])+"%"),t(z,"d","M6.8 6.93333C6.4 7.46667 5.6 7.46667 5.2 6.93333L0 8.07577e-07L12 0L6.8 6.93333Z"),t(z,"fill",R=o[0]==="shield"||o[0]==="youth"||o[0]==="median"?Z(o[2]):H(o[2])),t(D,"width","9"),t(D,"height","5"),t(D,"viewBox","0 0 12 8"),t(D,"fill","none"),t(D,"xmlns","http://www.w3.org/2000/svg"),t(s,"class","slider-triangle svelte-1kvxs83"),h(s,"left",j(o[2])+"%"),t(G,"class","text-left svelte-1kvxs83"),h(G,"width","34.7%"),t(O,"class","text-middle svelte-1kvxs83"),h(O,"width","29.5%"),t(S,"class","text-right svelte-1kvxs83"),h(S,"width","34.7%"),t(e,"class","graph-container svelte-1kvxs83"),t(i,"class","graph svelte-1kvxs83")},m(r,$){a(r,i,$),g(i,e),F&&F.m(e,null),g(e,n),g(e,p),g(p,u),g(u,m),g(e,w),g(e,x),g(x,B),g(B,b),g(B,C),g(C,A),g(B,y),g(e,l),g(e,s),g(s,D),g(D,z),g(e,P),g(e,G),g(G,I),g(e,Q),g(e,O),g(e,T),g(e,S),g(S,J)},p(r,$){N!==(N=U(r))&&(F&&F.d(1),F=N&&N(r),F&&(F.c(),F.m(e,n))),$&5&&d!==(d=r[0]==="shield"||r[0]==="youth"||r[0]==="median"?Z(r[2]):H(r[2]))&&t(m,"fill",d),$&4&&h(p,"left",j(r[2])+"%"),$&4&&M(b,r[2]),$&6&&f!==(f=W(r[2],r[1])+"")&&M(A,f),$&4&&h(x,"left",j(r[2])+"%"),$&5&&R!==(R=r[0]==="shield"||r[0]==="youth"||r[0]==="median"?Z(r[2]):H(r[2]))&&t(z,"fill",R),$&4&&h(s,"left",j(r[2])+"%"),$&1&&_!==(_=r[0]==="shield"||r[0]==="youth"||r[0]==="median"?"Suboptimal":"Optimal")&&M(I,_),$&1&&q!==(q=r[0]==="shield"||r[0]==="youth"||r[0]==="median"?"Optimal":"Suboptimal")&&M(J,q)},d(r){r&&c(i),F&&F.d()}}}function ce(o){let i,e,n,p,u,m,d,w,x,B,b,C,f,A,y;return{c(){i=v("div"),e=k(),n=v("div"),p=k(),u=v("div"),m=k(),d=v("div"),w=k(),x=v("div"),B=k(),b=v("div"),C=k(),f=v("div"),A=k(),y=v("div"),t(i,"class","colorBoxShort svelte-1kvxs83"),h(i,"background-color","#DF2120"),t(n,"class","colorBox svelte-1kvxs83"),h(n,"background-color","#DF2120"),t(u,"class","colorBox svelte-1kvxs83"),h(u,"background-color","#F2800D"),t(d,"class","colorBox svelte-1kvxs83"),h(d,"background-color","#66CCAA"),t(x,"class","colorBox svelte-1kvxs83"),h(x,"background-color","#66CCAA"),t(b,"class","colorBox svelte-1kvxs83"),h(b,"background-color","#13A195"),t(f,"class","colorBox svelte-1kvxs83"),h(f,"background-color","#015566"),t(y,"class","colorBoxShort svelte-1kvxs83"),h(y,"background-color","#015566")},m(l,s){a(l,i,s),a(l,e,s),a(l,n,s),a(l,p,s),a(l,u,s),a(l,m,s),a(l,d,s),a(l,w,s),a(l,x,s),a(l,B,s),a(l,b,s),a(l,C,s),a(l,f,s),a(l,A,s),a(l,y,s)},d(l){l&&(c(i),c(e),c(n),c(p),c(u),c(m),c(d),c(w),c(x),c(B),c(b),c(C),c(f),c(A),c(y))}}}function ne(o){let i,e,n,p,u,m,d,w,x,B,b,C,f,A,y;return{c(){i=v("div"),e=k(),n=v("div"),p=k(),u=v("div"),m=k(),d=v("div"),w=k(),x=v("div"),B=k(),b=v("div"),C=k(),f=v("div"),A=k(),y=v("div"),t(i,"class","colorBoxShort svelte-1kvxs83"),h(i,"background-color","#015566"),t(n,"class","colorBox svelte-1kvxs83"),h(n,"background-color","#015566"),t(u,"class","colorBox svelte-1kvxs83"),h(u,"background-color","#13A195"),t(d,"class","colorBox svelte-1kvxs83"),h(d,"background-color","#66CCAA"),t(x,"class","colorBox svelte-1kvxs83"),h(x,"background-color","#66CCAA"),t(b,"class","colorBox svelte-1kvxs83"),h(b,"background-color","#F2800D"),t(f,"class","colorBox svelte-1kvxs83"),h(f,"background-color","#DF2120"),t(y,"class","colorBoxShort svelte-1kvxs83"),h(y,"background-color","#DF2120")},m(l,s){a(l,i,s),a(l,e,s),a(l,n,s),a(l,p,s),a(l,u,s),a(l,m,s),a(l,d,s),a(l,w,s),a(l,x,s),a(l,B,s),a(l,b,s),a(l,C,s),a(l,f,s),a(l,A,s),a(l,y,s)},d(l){l&&(c(i),c(e),c(n),c(p),c(u),c(m),c(d),c(w),c(x),c(B),c(b),c(C),c(f),c(A),c(y))}}}function de(o){let i,e=o[3]&&X(o);return{c(){e&&e.c(),i=oe()},m(n,p){e&&e.m(n,p),a(n,i,p)},p(n,[p]){n[3]?e?e.p(n,p):(e=X(n),e.c(),e.m(i.parentNode,i)):e&&(e.d(1),e=null)},i:V,o:V,d(n){n&&c(i),e&&e.d(n)}}}function ve(o,i,e){let{type:n}=i,{lang:p}=i,{service:u=window.GaReportService}=i,m,d=0,w=!1;return re(async()=>{switch(m=await u.getReport(),n){case"shield":e(2,d=Number(m.Spercentile));break;case"youth":e(2,d=Number(m.G2percentile));break;case"mature":e(2,d=Number(m.G0percentile));break;case"median":e(2,d=Number(m.G1percentile));break;case"lifestyle":e(2,d=Number(m.Bpercentile))}(d===100||d===0)&&e(2,d=d===100?99:1),e(3,w=!0)}),o.$$set=x=>{"type"in x&&e(0,n=x.type),"lang"in x&&e(1,p=x.lang),"service"in x&&e(4,u=x.service)},[n,p,d,w,u]}class Y extends te{constructor(i){super(),le(this,i,ve,de,se,{type:0,lang:1,service:4},ae)}get type(){return this.$$.ctx[0]}set type(i){this.$$set({type:i}),K()}get lang(){return this.$$.ctx[1]}set lang(i){this.$$set({lang:i}),K()}get service(){return this.$$.ctx[4]}set service(i){this.$$set({service:i}),K()}}customElements.define("ga-single-overview-custom-clinical",ee(Y,{type:{},lang:{},service:{}},[],[],!0));export{Y as default};
|