@glycanage/web-components 1.68.0 → 1.70.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/age-graph.wc.js +1 -1
- package/dist/shield-graph.wc.js +1 -1
- package/package.json +1 -1
package/dist/age-graph.wc.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as
|
|
1
|
+
import{c as Y,S as ee,i as se,f as K,s as oe,a as te,d as re,g as O,u as Q,k as T,o as le,e as r,b as c,m as U,v as N,p as o,n as i,q as s,r as V}from"./index2.js";function ne(u){te(u,"svelte-1uosnqx",".parent.svelte-1uosnqx{display:flex;width:100%;height:14px;font-family:'Sen', 'Noto Sans JP', sans-serif}.slider-top.svelte-1uosnqx{display:flex;flex-direction:column;align-items:center;position:absolute;transform:translate(-50%, -102%);width:24%;max-height:85px;padding:0.1rem}.slider-bottom.svelte-1uosnqx{display:flex;flex-direction:column;align-items:center;position:absolute;width:28%;transform:translate(-50%, 17%);left:50%;max-height:85px;padding:0.1rem}.colorBox.svelte-1uosnqx{width:14%;border-radius:24px;margin-left:0.2%;margin-right:0.2%}.colorBoxShort.svelte-1uosnqx{width:8%;border-radius:24px}.rotateImg.svelte-1uosnqx{transform:rotate(180deg)}p.svelte-1uosnqx{margin:0}")}function W(u){let e,t,l,a,x,d,f,h,B,n,R,C,Z,$,E,k,G,v,w,J,b,D,F,P,g,S,_,p,m,y,j,L,M,I,H,A;return{c(){e=r("div"),t=r("div"),l=c(),a=r("div"),x=c(),d=r("div"),f=c(),h=r("div"),B=c(),n=r("div"),R=c(),C=r("div"),Z=c(),$=r("div"),E=c(),k=r("div"),G=c(),v=r("div"),w=r("p"),w.textContent="Biological age",J=c(),b=r("p"),D=r("b"),F=U(u[0]),P=c(),g=N("svg"),S=N("path"),_=c(),p=r("div"),m=N("svg"),y=N("path"),j=c(),L=r("div"),M=r("b"),I=U(u[1]),H=c(),A=r("div"),A.textContent="Chronological age",o(t,"class","colorBoxShort svelte-1uosnqx"),i(t,"background-color","#015566"),o(a,"class","colorBox svelte-1uosnqx"),i(a,"background-color","#015566"),o(d,"class","colorBox svelte-1uosnqx"),i(d,"background-color","#13A195"),o(h,"class","colorBox svelte-1uosnqx"),i(h,"background-color","#66CCAA"),o(n,"class","colorBox svelte-1uosnqx"),i(n,"background-color","#66CCAA"),o(C,"class","colorBox svelte-1uosnqx"),i(C,"background-color","#F2800D"),o($,"class","colorBox svelte-1uosnqx"),i($,"background-color","#DF2120"),o(k,"class","colorBoxShort svelte-1uosnqx"),i(k,"background-color","#DF2120"),i(w,"font-size","1rem"),o(w,"class","svelte-1uosnqx"),i(b,"font-size","1.5rem"),o(b,"class","svelte-1uosnqx"),o(S,"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"),o(S,"fill","#09371F"),o(g,"class","rotateImg svelte-1uosnqx"),o(g,"width","14%"),o(g,"height","14%"),o(g,"viewBox","0 0 42 37"),o(g,"fill","none"),o(g,"xmlns","http://www.w3.org/2000/svg"),o(v,"class","slider-top svelte-1uosnqx"),i(v,"left",u[3]()+"%"),o(y,"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"),o(y,"fill","#09371F"),o(m,"width","12%"),o(m,"height","12%"),o(m,"viewBox","0 0 42 37"),o(m,"fill","none"),o(m,"xmlns","http://www.w3.org/2000/svg"),i(L,"font-size","1.5rem"),i(A,"font-size","1rem"),o(p,"class","slider-bottom svelte-1uosnqx"),o(e,"class","parent svelte-1uosnqx"),i(e,"position","relative")},m(q,z){O(q,e,z),s(e,t),s(e,l),s(e,a),s(e,x),s(e,d),s(e,f),s(e,h),s(e,B),s(e,n),s(e,R),s(e,C),s(e,Z),s(e,$),s(e,E),s(e,k),s(e,G),s(e,v),s(v,w),s(v,J),s(v,b),s(b,D),s(D,F),s(v,P),s(v,g),s(g,S),s(e,_),s(e,p),s(p,m),s(m,y),s(p,j),s(p,L),s(L,M),s(M,I),s(p,H),s(p,A)},p(q,z){z&1&&V(F,q[0]),z&2&&V(I,q[1])},d(q){q&&T(e)}}}function ie(u){let e,t=u[2]&&W(u);return{c(){t&&t.c(),e=re()},m(l,a){t&&t.m(l,a),O(l,e,a)},p(l,[a]){l[2]?t?t.p(l,a):(t=W(l),t.c(),t.m(e.parentNode,e)):t&&(t.d(1),t=null)},i:Q,o:Q,d(l){l&&T(e),t&&t.d(l)}}}function ae(u,e,t){let{report:l}=e,{service:a=window.GaReportService}=e,x=0,d=0,f,h=!1;function B(){const n=Math.abs(x-d);if(x===d)return 50;if(x>d)return n>35?85:52+n;if(x<d)return n>35?15:48-n}return le(async()=>{f=await a.getReport(l),t(0,x=Number(f.glycanage)),t(1,d=Number(f.chronologicalage)),t(2,h=!0)}),u.$$set=n=>{"report"in n&&t(4,l=n.report),"service"in n&&t(5,a=n.service)},[x,d,h,B,l,a]}class X extends ee{constructor(e){super(),se(this,e,ae,ie,oe,{report:4,service:5},ne)}get report(){return this.$$.ctx[4]}set report(e){this.$$set({report:e}),K()}get service(){return this.$$.ctx[5]}set service(e){this.$$set({service:e}),K()}}customElements.define("ga-age-graph",Y(X,{report:{},service:{}},[],[],!0));export{X as default};
|
package/dist/shield-graph.wc.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as
|
|
1
|
+
import{c as ze,S as Me,i as Fe,f as Be,s as Ze,a as De,d as He,g as ye,u as ke,k as Le,o as Ie,e as o,b as i,m as $,v as b,p as t,n as a,q as e,r as j}from"./index2.js";import{s as Se,c as $e,b as Ne}from"./helpers.js";function Re(l){De(l,"svelte-1od27u5",".parent.svelte-1od27u5{display:flex;width:100%;height:10px;position:relative;font-family:'Sen', 'Noto Sans JP', sans-serif}.slider.svelte-1od27u5{display:flex;flex-direction:column;align-items:center;position:absolute;transform:translate(-50%, -110%);width:24%;max-height:70px}.bottom-triangle.svelte-1od27u5{position:absolute;top:100%;transform:translate(-50%, 2%);width:8%;max-height:36px;display:flex;flex-direction:column;justify-content:center;align-items:center;color:#6B8779}.message-one.svelte-1od27u5{position:absolute;top:5rem;width:70%;height:3rem;transform:translate(-50%, 0%);left:50%;max-height:40px;display:flex;align-items:center;justify-content:center;font-size:1.1rem;gap:.25rem}.message-two.svelte-1od27u5{position:absolute;top:7.4rem;width:70%;height:2rem;transform:translate(-50%, 0%);left:50%;max-height:30px;display:flex;align-items:center;justify-content:center;font-size:0.75rem;gap:.25rem}.colored-percentile.svelte-1od27u5{height:90%;width:30%;min-width:150px;color:white;display:flex;align-items:center;justify-content:center;border-radius:7px}.higher.svelte-1od27u5{height:70%;width:12%;background-color:#015566;color:white;border-radius:4px;display:flex;align-items:center;justify-content:center}.colorBox.svelte-1od27u5{width:14%;border-radius:24px;margin-left:0.2%;margin-right:0.2%}.colorBoxShort.svelte-1od27u5{width:10%;border-radius:24px}.rotateImg.svelte-1od27u5{transform:rotate(180deg)}p.svelte-1od27u5{margin:0}")}function je(l){let s,r,d,c,p,C,A,B,z,y,M,g,ie,H,ne,I,ae,u,F,de,Z,Y,K,ce,h,R,ue,k,m,T,ve,O,Q,U,pe,L,x,q,ge,V,W,X,he,S,f,_,me,ee,te,se,xe,w,E,fe,N,D,oe,re,G=Se(l[4])+"",le,we,be,J,Ce,P;return{c(){s=o("div"),r=o("div"),d=i(),c=o("div"),p=i(),C=o("div"),A=i(),B=o("div"),z=i(),y=o("div"),M=i(),g=o("div"),ie=i(),H=o("div"),ne=i(),I=o("div"),ae=i(),u=o("div"),F=o("p"),F.textContent="Your result",de=i(),Z=o("p"),Y=o("b"),K=$(l[3]),ce=i(),h=b("svg"),R=b("path"),ue=i(),k=o("div"),m=b("svg"),T=b("path"),ve=i(),O=o("div"),Q=o("b"),U=$(l[0]),pe=i(),L=o("div"),x=b("svg"),q=b("path"),ge=i(),V=o("div"),W=o("b"),X=$(l[1]),he=i(),S=o("div"),f=b("svg"),_=b("path"),me=i(),ee=o("div"),te=o("b"),se=$(l[2]),xe=i(),w=o("div"),E=o("p"),E.textContent="This result ranks you in the",fe=i(),N=o("div"),D=o("b"),oe=$(l[4]),re=o("sup"),le=$(G),we=$(" percentile"),be=i(),J=o("p"),J.textContent="*",Ce=i(),P=o("div"),P.innerHTML='<p class="svelte-1od27u5">Having a</p> <div class="higher svelte-1od27u5"><b>higher</b></div> <p class="svelte-1od27u5">percentile ranking <b>is better</b> for this index.</p>',t(r,"class","colorBoxShort svelte-1od27u5"),a(r,"background-color","#DF2120"),t(c,"class","colorBox svelte-1od27u5"),a(c,"background-color","#DF2120"),t(C,"class","colorBox svelte-1od27u5"),a(C,"background-color","#F2800D"),t(B,"class","colorBox svelte-1od27u5"),a(B,"background-color","#66CCAA"),t(y,"class","colorBox svelte-1od27u5"),a(y,"background-color","#66CCAA"),t(g,"class","colorBox svelte-1od27u5"),a(g,"background-color","#13A195"),t(H,"class","colorBox svelte-1od27u5"),a(H,"background-color","#015566"),t(I,"class","colorBoxShort svelte-1od27u5"),a(I,"background-color","#015566"),a(F,"font-size","1rem"),t(F,"class","svelte-1od27u5"),a(Z,"font-size","1.2rem"),t(Z,"class","svelte-1od27u5"),t(R,"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"),t(R,"fill","#09371F"),t(h,"class","rotateImg svelte-1od27u5"),t(h,"width","14%"),t(h,"height","14%"),t(h,"viewBox","0 0 42 37"),t(h,"fill","none"),t(h,"xmlns","http://www.w3.org/2000/svg"),t(u,"class","slider svelte-1od27u5"),a(u,"left",$e(l[0],l[1],l[2],l[3])+"%"),t(T,"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"),t(T,"fill","#6B8779"),t(m,"width","30%"),t(m,"height","30%"),t(m,"viewBox","0 0 42 37"),t(m,"fill","none"),t(m,"xmlns","http://www.w3.org/2000/svg"),t(k,"class","bottom-triangle svelte-1od27u5"),a(k,"left","9.5%"),t(q,"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"),t(q,"fill","#6B8779"),t(x,"width","30%"),t(x,"height","30%"),t(x,"viewBox","0 0 42 37"),t(x,"fill","none"),t(x,"xmlns","http://www.w3.org/2000/svg"),t(L,"class","bottom-triangle svelte-1od27u5"),a(L,"left","50%"),t(_,"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"),t(_,"fill","#6B8779"),t(f,"width","30%"),t(f,"height","30%"),t(f,"viewBox","0 0 42 37"),t(f,"fill","none"),t(f,"xmlns","http://www.w3.org/2000/svg"),t(S,"class","bottom-triangle svelte-1od27u5"),a(S,"left","90.5%"),t(E,"class","svelte-1od27u5"),t(N,"class","colored-percentile svelte-1od27u5"),a(N,"background-color",Ne(l[0],l[1],l[2],l[3])),t(J,"class","svelte-1od27u5"),t(w,"class","message-one svelte-1od27u5"),t(P,"class","message-two svelte-1od27u5"),t(s,"class","parent svelte-1od27u5")},m(n,v){ye(n,s,v),e(s,r),e(s,d),e(s,c),e(s,p),e(s,C),e(s,A),e(s,B),e(s,z),e(s,y),e(s,M),e(s,g),e(s,ie),e(s,H),e(s,ne),e(s,I),e(s,ae),e(s,u),e(u,F),e(u,de),e(u,Z),e(Z,Y),e(Y,K),e(u,ce),e(u,h),e(h,R),e(s,ue),e(s,k),e(k,m),e(m,T),e(k,ve),e(k,O),e(O,Q),e(Q,U),e(s,pe),e(s,L),e(L,x),e(x,q),e(L,ge),e(L,V),e(V,W),e(W,X),e(s,he),e(s,S),e(S,f),e(f,_),e(S,me),e(S,ee),e(ee,te),e(te,se),e(s,xe),e(s,w),e(w,E),e(w,fe),e(w,N),e(N,D),e(D,oe),e(D,re),e(re,le),e(D,we),e(w,be),e(w,J),e(s,Ce),e(s,P)},p(n,v){v&8&&j(K,n[3]),v&15&&a(u,"left",$e(n[0],n[1],n[2],n[3])+"%"),v&1&&j(U,n[0]),v&2&&j(X,n[1]),v&4&&j(se,n[2]),v&16&&j(oe,n[4]),v&16&&G!==(G=Se(n[4])+"")&&j(le,G),v&15&&a(N,"background-color",Ne(n[0],n[1],n[2],n[3]))},d(n){n&&Le(s)}}}function Te(l){let s,r=l[5]&&je(l);return{c(){r&&r.c(),s=He()},m(d,c){r&&r.m(d,c),ye(d,s,c)},p(d,[c]){d[5]?r?r.p(d,c):(r=je(d),r.c(),r.m(s.parentNode,s)):r&&(r.d(1),r=null)},i:ke,o:ke,d(d){d&&Le(s),r&&r.d(d)}}}function qe(l,s,r){let{report:d}=s,{service:c=window.GaReportService}=s,p,C=0,A=0,B=0,z=0,y=0,M=!1;return Ie(async()=>{p=await c.getReport(d),r(0,C=Number(p.Sxmin)),r(1,A=Number(p.Sxaverage)),r(2,B=Number(p.Sxmax)),r(3,z=Number(p.Syourscore)),r(4,y=Number(p.Spercentile)),r(5,M=!0)}),l.$$set=g=>{"report"in g&&r(6,d=g.report),"service"in g&&r(7,c=g.service)},[C,A,B,z,y,M,d,c]}class Ae extends Me{constructor(s){super(),Fe(this,s,qe,Te,Ze,{report:6,service:7},Re)}get report(){return this.$$.ctx[6]}set report(s){this.$$set({report:s}),Be()}get service(){return this.$$.ctx[7]}set service(s){this.$$set({service:s}),Be()}}customElements.define("ga-shield-graph",ze(Ae,{report:{},service:{}},[],[],!0));export{Ae as default};
|