@glycanage/web-components 1.143.0 → 1.144.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
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("./single-overview.wc.js"),import("./main-result.wc.js"),import("./main-result-three.wc.js"),import("./results-overview-three.wc.js"),import("./insights-overview.wc.js"),import("./insights-overview-three.wc.js"),import("./action-steps-three.wc.js"),import("./arrow-graph.wc.js"),import("./overlap-title.wc.js"),import("./scatter-plot.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("./arrow-graph-clp.wc.js"),import("./overlap-title-clp.wc.js"),import("./scatter-plot-clp.wc.js"),import("./over-time.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("./single-overview.wc.js"),import("./main-result.wc.js"),import("./main-result-three.wc.js"),import("./results-overview-three.wc.js"),import("./insights-overview.wc.js"),import("./insights-overview-three.wc.js"),import("./action-steps-three.wc.js"),import("./arrow-graph.wc.js"),import("./overlap-title.wc.js"),import("./scatter-plot.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-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")};export{t as default};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{c as Ae,S as Se,i as Fe,f as ue,s as Le,a as $e,d as Oe,g as c,u as ye,k as n,o as Me,e as h,m as $,b as f,v as oe,n as a,p as s,q as u,r as P}from"./index2.js";import{a as F,s as ie,f as T,i as re,h as C,k as le,j as V}from"./helpers.js";function De(e){$e(e,"svelte-8jht07",".main.svelte-8jht07{height:100%;width:100%;display:flex;flex-direction:column}.label.svelte-8jht07{height:15%;width:100%;display:flex;justify-content:center}.graph.svelte-8jht07{height:85%;width:100%;display:flex;align-items:center;justify-content:center;border:1px solid #09341F33;border-radius:10px}.graph-container.svelte-8jht07{width:85%;height:100%;display:flex;align-items:center;justify-content:space-between;position:relative}.colorBox.svelte-8jht07{height:7px;width:14.3%;border-radius:24px}.colorBoxShort.svelte-8jht07{height:7px;width:5%;border-radius:24px}.slider.svelte-8jht07{display:flex;flex-direction:column;align-items:center;position:absolute;transform:translate(-50%, -90%);width:24%;max-height:70px}.slider-number.svelte-8jht07{display:flex;flex-direction:column;align-items:center;position:absolute;transform:translate(-50%, -120%);width:24%;font-size:0.71rem;color:white}.text-left.svelte-8jht07{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.8rem;color:#09341F80}.text-middle.svelte-8jht07{position:absolute;height:15%;top:62%;left:35%;display:flex;align-items:center;justify-content:center;font-size:0.8rem;color:#09341F80}.text-right.svelte-8jht07{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.8rem;color:#09341F80}.slider-triangle.svelte-8jht07{display:flex;flex-direction:column;align-items:center;position:absolute;transform:translate(-50%, -90%);width:24%}")}function we(e){let l,i,d=F(e[1],"RANKS_YOU")+"",g,x,p,v,B,m,k,b,A=ie(e[2],e[1])+"",j,S,w,r,o,se,z,D,N,H,ve,G,Y,ce,J,Q=ie(e[2],e[1])+"",ne,fe,me,R,I,q,W,pe,U,X=(e[0]==="shield"||e[0]==="youth"||e[0]==="median"?F(e[1],"SUBOPTIMAL"):F(e[1],"OPTIMAL"))+"",ae,xe,Z,ee=(e[0]==="median"?F(e[1],"OPTIMAL"):F(e[1],"AVERAGE"))+"",de,ge,_,te=(e[0]==="shield"||e[0]==="youth"?F(e[1],"OPTIMAL"):F(e[1],"SUBOPTIMAL"))+"",he,L=e[1]==="japanese"&&Be();function be(t,y){if(t[1]==="japanese")return Pe;if(t[1]==="english")return Ie}let E=be(e),O=E&&E(e);function je(t,y){if(t[0]==="mature"||t[0]==="lifestyle")return Ne;if(t[0]==="shield"||t[0]==="youth")return Ce;if(t[0]==="median")return Te}let K=je(e),M=K&&K(e);return{c(){l=h("div"),i=h("div"),g=$(d),x=$(`\xA0
|
|
2
|
+
`),p=h("span"),v=h("b"),B=$(e[2]),L&&L.c(),m=f(),k=h("sup"),b=h("b"),j=$(A),S=f(),O&&O.c(),w=f(),r=h("div"),o=h("div"),M&&M.c(),se=f(),z=h("div"),D=oe("svg"),N=oe("rect"),ve=f(),G=h("div"),Y=h("b"),ce=$(e[2]),J=h("sup"),ne=$(Q),fe=$(" percentile"),me=f(),R=h("div"),I=oe("svg"),q=oe("path"),pe=f(),U=h("div"),ae=$(X),xe=f(),Z=h("div"),de=$(ee),ge=f(),_=h("div"),he=$(te),a(p,"color",e[0]==="shield"||e[0]==="youth"?T(e[2]):e[0]==="median"?re(e[2]):C(e[2])),a(p,"height","80%"),a(p,"display","flex"),a(k,"color",e[0]==="shield"||e[0]==="youth"?T(e[2]):e[0]==="median"?re(e[2]):C(e[2])),a(k,"font-size","0.65rem"),s(i,"class","label svelte-8jht07"),s(N,"width","100"),s(N,"height","24"),s(N,"rx","4"),s(N,"fill",H=e[0]==="shield"||e[0]==="youth"?T(e[2]):e[0]==="mature"||e[0]==="lifestyle"?C(e[2]):le(e[2])),s(D,"width","100"),s(D,"height","24"),s(D,"viewBox","0 0 100 24"),s(D,"fill","none"),s(D,"xmlns","http://www.w3.org/2000/svg"),s(z,"class","slider svelte-8jht07"),a(z,"left",V(e[2])+"%"),a(J,"font-size","0.5rem"),s(G,"class","slider-number svelte-8jht07"),a(G,"left",V(e[2])+"%"),s(q,"d","M6.8 6.93333C6.4 7.46667 5.6 7.46667 5.2 6.93333L0 8.07577e-07L12 0L6.8 6.93333Z"),s(q,"fill",W=e[0]==="shield"||e[0]==="youth"?T(e[2]):e[0]==="mature"||e[0]==="lifestyle"?C(e[2]):le(e[2])),s(I,"width","12"),s(I,"height","8"),s(I,"viewBox","0 0 12 8"),s(I,"fill","none"),s(I,"xmlns","http://www.w3.org/2000/svg"),s(R,"class","slider-triangle svelte-8jht07"),a(R,"left",V(e[2])+"%"),s(U,"class","text-left svelte-8jht07"),a(U,"width",(e[0]==="median"?"19.7":"34.7")+"%"),s(Z,"class","text-middle svelte-8jht07"),a(Z,"width","29.5%"),s(_,"class","text-right svelte-8jht07"),a(_,"width",(e[0]==="median"?"19.8":"34.7")+"%"),s(o,"class","graph-container svelte-8jht07"),s(r,"class","graph svelte-8jht07"),s(l,"class","main svelte-8jht07")},m(t,y){c(t,l,y),u(l,i),u(i,g),u(i,x),u(i,p),u(p,v),u(v,B),L&&L.m(v,null),u(i,m),u(i,k),u(k,b),u(b,j),u(i,S),O&&O.m(i,null),u(l,w),u(l,r),u(r,o),M&&M.m(o,null),u(o,se),u(o,z),u(z,D),u(D,N),u(o,ve),u(o,G),u(G,Y),u(Y,ce),u(Y,J),u(J,ne),u(Y,fe),u(o,me),u(o,R),u(R,I),u(I,q),u(o,pe),u(o,U),u(U,ae),u(o,xe),u(o,Z),u(Z,de),u(o,ge),u(o,_),u(_,he)},p(t,y){y&2&&d!==(d=F(t[1],"RANKS_YOU")+"")&&P(g,d),y&4&&P(B,t[2]),t[1]==="japanese"?L||(L=Be(),L.c(),L.m(v,null)):L&&(L.d(1),L=null),y&5&&a(p,"color",t[0]==="shield"||t[0]==="youth"?T(t[2]):t[0]==="median"?re(t[2]):C(t[2])),y&6&&A!==(A=ie(t[2],t[1])+"")&&P(j,A),y&5&&a(k,"color",t[0]==="shield"||t[0]==="youth"?T(t[2]):t[0]==="median"?re(t[2]):C(t[2])),E!==(E=be(t))&&(O&&O.d(1),O=E&&E(t),O&&(O.c(),O.m(i,null))),K!==(K=je(t))&&(M&&M.d(1),M=K&&K(t),M&&(M.c(),M.m(o,se))),y&5&&H!==(H=t[0]==="shield"||t[0]==="youth"?T(t[2]):t[0]==="mature"||t[0]==="lifestyle"?C(t[2]):le(t[2]))&&s(N,"fill",H),y&4&&a(z,"left",V(t[2])+"%"),y&4&&P(ce,t[2]),y&6&&Q!==(Q=ie(t[2],t[1])+"")&&P(ne,Q),y&4&&a(G,"left",V(t[2])+"%"),y&5&&W!==(W=t[0]==="shield"||t[0]==="youth"?T(t[2]):t[0]==="mature"||t[0]==="lifestyle"?C(t[2]):le(t[2]))&&s(q,"fill",W),y&4&&a(R,"left",V(t[2])+"%"),y&3&&X!==(X=(t[0]==="shield"||t[0]==="youth"||t[0]==="median"?F(t[1],"SUBOPTIMAL"):F(t[1],"OPTIMAL"))+"")&&P(ae,X),y&1&&a(U,"width",(t[0]==="median"?"19.7":"34.7")+"%"),y&3&&ee!==(ee=(t[0]==="median"?F(t[1],"OPTIMAL"):F(t[1],"AVERAGE"))+"")&&P(de,ee),y&3&&te!==(te=(t[0]==="shield"||t[0]==="youth"?F(t[1],"OPTIMAL"):F(t[1],"SUBOPTIMAL"))+"")&&P(he,te),y&1&&a(_,"width",(t[0]==="median"?"19.8":"34.7")+"%")},d(t){t&&n(l),L&&L.d(),O&&O.d(),M&&M.d()}}}function Be(e){let l;return{c(){l=$("\u30D1\u30FC\u30BB\u30F3\u30BF\u30A4\u30EB")},m(i,d){c(i,l,d)},d(i){i&&n(l)}}}function Ie(e){let l;return{c(){l=$("\xA0percentile:")},m(i,d){c(i,l,d)},d(i){i&&n(l)}}}function Pe(e){let l;return{c(){l=$("\u306B\u30E9\u30F3\u30AF\u4ED8\u3051\u3055\u308C\u307E\u3057\u305F\u3002")},m(i,d){c(i,l,d)},d(i){i&&n(l)}}}function Te(e){let l,i,d,g,x,p,v,B,m,k,b,A,j,S,w;return{c(){l=h("div"),i=f(),d=h("div"),g=f(),x=h("div"),p=f(),v=h("div"),B=f(),m=h("div"),k=f(),b=h("div"),A=f(),j=h("div"),S=f(),w=h("div"),s(l,"class","colorBoxShort svelte-8jht07"),a(l,"background-color","#DF2120"),s(d,"class","colorBox svelte-8jht07"),a(d,"background-color","#F2800D"),s(x,"class","colorBox svelte-8jht07"),a(x,"background-color","#13A195"),s(v,"class","colorBox svelte-8jht07"),a(v,"background-color","#015566"),s(m,"class","colorBox svelte-8jht07"),a(m,"background-color","#015566"),s(b,"class","colorBox svelte-8jht07"),a(b,"background-color","#13A195"),s(j,"class","colorBox svelte-8jht07"),a(j,"background-color","#F2800D"),s(w,"class","colorBoxShort svelte-8jht07"),a(w,"background-color","#DF2120")},m(r,o){c(r,l,o),c(r,i,o),c(r,d,o),c(r,g,o),c(r,x,o),c(r,p,o),c(r,v,o),c(r,B,o),c(r,m,o),c(r,k,o),c(r,b,o),c(r,A,o),c(r,j,o),c(r,S,o),c(r,w,o)},d(r){r&&(n(l),n(i),n(d),n(g),n(x),n(p),n(v),n(B),n(m),n(k),n(b),n(A),n(j),n(S),n(w))}}}function Ce(e){let l,i,d,g,x,p,v,B,m,k,b,A,j,S,w;return{c(){l=h("div"),i=f(),d=h("div"),g=f(),x=h("div"),p=f(),v=h("div"),B=f(),m=h("div"),k=f(),b=h("div"),A=f(),j=h("div"),S=f(),w=h("div"),s(l,"class","colorBoxShort svelte-8jht07"),a(l,"background-color","#DF2120"),s(d,"class","colorBox svelte-8jht07"),a(d,"background-color","#DF2120"),s(x,"class","colorBox svelte-8jht07"),a(x,"background-color","#F2800D"),s(v,"class","colorBox svelte-8jht07"),a(v,"background-color","#66CCAA"),s(m,"class","colorBox svelte-8jht07"),a(m,"background-color","#66CCAA"),s(b,"class","colorBox svelte-8jht07"),a(b,"background-color","#13A195"),s(j,"class","colorBox svelte-8jht07"),a(j,"background-color","#015566"),s(w,"class","colorBoxShort svelte-8jht07"),a(w,"background-color","#015566")},m(r,o){c(r,l,o),c(r,i,o),c(r,d,o),c(r,g,o),c(r,x,o),c(r,p,o),c(r,v,o),c(r,B,o),c(r,m,o),c(r,k,o),c(r,b,o),c(r,A,o),c(r,j,o),c(r,S,o),c(r,w,o)},d(r){r&&(n(l),n(i),n(d),n(g),n(x),n(p),n(v),n(B),n(m),n(k),n(b),n(A),n(j),n(S),n(w))}}}function Ne(e){let l,i,d,g,x,p,v,B,m,k,b,A,j,S,w;return{c(){l=h("div"),i=f(),d=h("div"),g=f(),x=h("div"),p=f(),v=h("div"),B=f(),m=h("div"),k=f(),b=h("div"),A=f(),j=h("div"),S=f(),w=h("div"),s(l,"class","colorBoxShort svelte-8jht07"),a(l,"background-color","#015566"),s(d,"class","colorBox svelte-8jht07"),a(d,"background-color","#015566"),s(x,"class","colorBox svelte-8jht07"),a(x,"background-color","#13A195"),s(v,"class","colorBox svelte-8jht07"),a(v,"background-color","#66CCAA"),s(m,"class","colorBox svelte-8jht07"),a(m,"background-color","#66CCAA"),s(b,"class","colorBox svelte-8jht07"),a(b,"background-color","#F2800D"),s(j,"class","colorBox svelte-8jht07"),a(j,"background-color","#DF2120"),s(w,"class","colorBoxShort svelte-8jht07"),a(w,"background-color","#DF2120")},m(r,o){c(r,l,o),c(r,i,o),c(r,d,o),c(r,g,o),c(r,x,o),c(r,p,o),c(r,v,o),c(r,B,o),c(r,m,o),c(r,k,o),c(r,b,o),c(r,A,o),c(r,j,o),c(r,S,o),c(r,w,o)},d(r){r&&(n(l),n(i),n(d),n(g),n(x),n(p),n(v),n(B),n(m),n(k),n(b),n(A),n(j),n(S),n(w))}}}function ze(e){let l,i=e[3]&&we(e);return{c(){i&&i.c(),l=Oe()},m(d,g){i&&i.m(d,g),c(d,l,g)},p(d,[g]){d[3]?i?i.p(d,g):(i=we(d),i.c(),i.m(l.parentNode,l)):i&&(i.d(1),i=null)},i:ye,o:ye,d(d){d&&n(l),i&&i.d(d)}}}function Ge(e,l,i){let{type:d}=l,{lang:g}=l,{service:x=window.GaReportService}=l,p,v=0,B=!1;return Me(async()=>{switch(p=await x.getReport(),d){case"shield":i(2,v=Number(p.Spercentile));break;case"youth":i(2,v=Number(p.G2percentile));break;case"mature":i(2,v=Number(p.G0percentile));break;case"median":i(2,v=Number(p.G1percentile));break;case"lifestyle":i(2,v=Number(p.Bpercentile))}(v===100||v===0)&&i(2,v=v===100?99:1),i(3,B=!0)}),e.$$set=m=>{"type"in m&&i(0,d=m.type),"lang"in m&&i(1,g=m.lang),"service"in m&&i(4,x=m.service)},[d,g,v,B,x]}class ke extends Se{constructor(l){super(),Fe(this,l,Ge,ze,Le,{type:0,lang:1,service:4},De)}get type(){return this.$$.ctx[0]}set type(l){this.$$set({type:l}),ue()}get lang(){return this.$$.ctx[1]}set lang(l){this.$$set({lang:l}),ue()}get service(){return this.$$.ctx[4]}set service(l){this.$$set({service:l}),ue()}}customElements.define("ga-single-overview-three",Ae(ke,{type:{},lang:{},service:{}},[],[],!0));export{ke as default};
|