@glycanage/web-components 1.76.0 → 1.77.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.
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as ue,S as
|
|
1
|
+
import{c as ue,S as ge,i as xe,f as X,s as he,a as ye,d as be,g as m,w as ce,k as n,o as fe,e as c,b as u,p as Z,x as A,q as g,r as e,C as me,D as ne,E as pe,u as s,v as _}from"./helpers.js";function je(p){ye(p,"svelte-1jvtypm",".parent.svelte-1jvtypm{display:flex;width:100%;height:10px;position:relative;font-family:'Sen', 'Noto Sans JP', sans-serif}.slider.svelte-1jvtypm{display:flex;flex-direction:column;align-items:center;position:absolute;transform:translate(-50%, -110%);width:24%;max-height:70px}.bottom-triangle.svelte-1jvtypm{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.svelte-1jvtypm{position:absolute;top:4rem;width:90%;height:3rem;transform:translate(-50%, 0%);left:50%;max-height:40px;display:flex;align-items:center;justify-content:center;font-size:0.95rem;gap:.25rem;color:#36614B}.colored-percentile.svelte-1jvtypm{height:90%;width:27%;min-width:145px;color:white;display:flex;align-items:center;justify-content:center;border-radius:8px;padding:0 0.2rem 0 0.2rem}.colorBox.svelte-1jvtypm{width:14%;border-radius:24px;margin-left:0.2%;margin-right:0.2%}.colorBoxShort.svelte-1jvtypm{width:10%;border-radius:24px}.rotateImg.svelte-1jvtypm{transform:rotate(180deg)}p.svelte-1jvtypm{margin:0}")}function ve(p){let r,t,l,h,j,i,b,w,f,x,y,N,d,B,k,o,a,P,H,Y,D,S,z,ee,K,O,Q,te,F,$,E,re,T,U,V,se,L,I,oe,M,R,W,le,ie,q;function ae(v,C){return v[0]==="shield"||v[0]==="youth"?Be:we}let J=ae(p),G=J(p);return{c(){r=c("div"),G.c(),t=u(),l=c("div"),h=c("p"),h.textContent="\u3042\u306A\u305F\u306E\u7D50\u679C",j=u(),i=c("p"),b=c("b"),w=Z(p[4]),f=u(),x=A("svg"),y=A("path"),N=u(),d=c("div"),B=A("svg"),k=A("path"),o=u(),a=c("div"),P=c("b"),H=Z(p[1]),Y=u(),D=c("div"),S=A("svg"),z=A("path"),ee=u(),K=c("div"),O=c("b"),Q=Z(p[2]),te=u(),F=c("div"),$=A("svg"),E=A("path"),re=u(),T=c("div"),U=c("b"),V=Z(p[3]),se=u(),L=c("div"),I=c("p"),I.textContent="\u3053\u306E\u7D50\u679C\u306B\u3088\u308A\u3001\u3042\u306A\u305F\u306F",oe=u(),M=c("div"),R=c("b"),W=Z(p[5]),le=Z(" \u30D1\u30FC\u30BB\u30F3\u30BF\u30A4\u30EB"),ie=u(),q=c("p"),q.textContent="* \u306B\u30E9\u30F3\u30AF\u4ED8\u3051\u3055\u308C\u307E\u3057\u305F\u3002",g(h,"font-size","1rem"),e(h,"class","svelte-1jvtypm"),g(i,"font-size","1.2rem"),e(i,"class","svelte-1jvtypm"),e(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"),e(y,"fill","#09371F"),e(x,"class","rotateImg svelte-1jvtypm"),e(x,"width","14%"),e(x,"height","14%"),e(x,"viewBox","0 0 42 37"),e(x,"fill","none"),e(x,"xmlns","http://www.w3.org/2000/svg"),e(l,"class","slider svelte-1jvtypm"),g(l,"left",me(p[1],p[2],p[3],p[4])+"%"),e(k,"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"),e(k,"fill","#6B8779"),e(B,"width","30%"),e(B,"height","30%"),e(B,"viewBox","0 0 42 37"),e(B,"fill","none"),e(B,"xmlns","http://www.w3.org/2000/svg"),e(d,"class","bottom-triangle svelte-1jvtypm"),g(d,"left","9.5%"),e(z,"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"),e(z,"fill","#6B8779"),e(S,"width","30%"),e(S,"height","30%"),e(S,"viewBox","0 0 42 37"),e(S,"fill","none"),e(S,"xmlns","http://www.w3.org/2000/svg"),e(D,"class","bottom-triangle svelte-1jvtypm"),g(D,"left","50%"),e(E,"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"),e(E,"fill","#6B8779"),e($,"width","30%"),e($,"height","30%"),e($,"viewBox","0 0 42 37"),e($,"fill","none"),e($,"xmlns","http://www.w3.org/2000/svg"),e(F,"class","bottom-triangle svelte-1jvtypm"),g(F,"left","90.5%"),e(I,"class","svelte-1jvtypm"),e(M,"class","colored-percentile svelte-1jvtypm"),g(M,"background-color",p[0]==="shield"||p[0]==="youth"?ne(p[1],p[2],p[3],p[4]):pe(p[1],p[2],p[3],p[4])),e(q,"class","svelte-1jvtypm"),e(L,"class","message svelte-1jvtypm"),e(r,"class","parent svelte-1jvtypm")},m(v,C){m(v,r,C),G.m(r,null),s(r,t),s(r,l),s(l,h),s(l,j),s(l,i),s(i,b),s(b,w),s(l,f),s(l,x),s(x,y),s(r,N),s(r,d),s(d,B),s(B,k),s(d,o),s(d,a),s(a,P),s(P,H),s(r,Y),s(r,D),s(D,S),s(S,z),s(D,ee),s(D,K),s(K,O),s(O,Q),s(r,te),s(r,F),s(F,$),s($,E),s(F,re),s(F,T),s(T,U),s(U,V),s(r,se),s(r,L),s(L,I),s(L,oe),s(L,M),s(M,R),s(R,W),s(R,le),s(L,ie),s(L,q)},p(v,C){J!==(J=ae(v))&&(G.d(1),G=J(v),G&&(G.c(),G.m(r,t))),C&16&&_(w,v[4]),C&30&&g(l,"left",me(v[1],v[2],v[3],v[4])+"%"),C&2&&_(H,v[1]),C&4&&_(Q,v[2]),C&8&&_(V,v[3]),C&32&&_(W,v[5]),C&31&&g(M,"background-color",v[0]==="shield"||v[0]==="youth"?ne(v[1],v[2],v[3],v[4]):pe(v[1],v[2],v[3],v[4]))},d(v){v&&n(r),G.d()}}}function we(p){let r,t,l,h,j,i,b,w,f,x,y,N,d,B,k;return{c(){r=c("div"),t=u(),l=c("div"),h=u(),j=c("div"),i=u(),b=c("div"),w=u(),f=c("div"),x=u(),y=c("div"),N=u(),d=c("div"),B=u(),k=c("div"),e(r,"class","colorBoxShort svelte-1jvtypm"),g(r,"background-color","#015566"),e(l,"class","colorBox svelte-1jvtypm"),g(l,"background-color","#015566"),e(j,"class","colorBox svelte-1jvtypm"),g(j,"background-color","#13A195"),e(b,"class","colorBox svelte-1jvtypm"),g(b,"background-color","#66CCAA"),e(f,"class","colorBox svelte-1jvtypm"),g(f,"background-color","#66CCAA"),e(y,"class","colorBox svelte-1jvtypm"),g(y,"background-color","#F2800D"),e(d,"class","colorBox svelte-1jvtypm"),g(d,"background-color","#DF2120"),e(k,"class","colorBoxShort svelte-1jvtypm"),g(k,"background-color","#DF2120")},m(o,a){m(o,r,a),m(o,t,a),m(o,l,a),m(o,h,a),m(o,j,a),m(o,i,a),m(o,b,a),m(o,w,a),m(o,f,a),m(o,x,a),m(o,y,a),m(o,N,a),m(o,d,a),m(o,B,a),m(o,k,a)},d(o){o&&(n(r),n(t),n(l),n(h),n(j),n(i),n(b),n(w),n(f),n(x),n(y),n(N),n(d),n(B),n(k))}}}function Be(p){let r,t,l,h,j,i,b,w,f,x,y,N,d,B,k;return{c(){r=c("div"),t=u(),l=c("div"),h=u(),j=c("div"),i=u(),b=c("div"),w=u(),f=c("div"),x=u(),y=c("div"),N=u(),d=c("div"),B=u(),k=c("div"),e(r,"class","colorBoxShort svelte-1jvtypm"),g(r,"background-color","#DF2120"),e(l,"class","colorBox svelte-1jvtypm"),g(l,"background-color","#DF2120"),e(j,"class","colorBox svelte-1jvtypm"),g(j,"background-color","#F2800D"),e(b,"class","colorBox svelte-1jvtypm"),g(b,"background-color","#66CCAA"),e(f,"class","colorBox svelte-1jvtypm"),g(f,"background-color","#66CCAA"),e(y,"class","colorBox svelte-1jvtypm"),g(y,"background-color","#13A195"),e(d,"class","colorBox svelte-1jvtypm"),g(d,"background-color","#015566"),e(k,"class","colorBoxShort svelte-1jvtypm"),g(k,"background-color","#015566")},m(o,a){m(o,r,a),m(o,t,a),m(o,l,a),m(o,h,a),m(o,j,a),m(o,i,a),m(o,b,a),m(o,w,a),m(o,f,a),m(o,x,a),m(o,y,a),m(o,N,a),m(o,d,a),m(o,B,a),m(o,k,a)},d(o){o&&(n(r),n(t),n(l),n(h),n(j),n(i),n(b),n(w),n(f),n(x),n(y),n(N),n(d),n(B),n(k))}}}function ke(p){let r,t=p[6]&&ve(p);return{c(){t&&t.c(),r=be()},m(l,h){t&&t.m(l,h),m(l,r,h)},p(l,[h]){l[6]?t?t.p(l,h):(t=ve(l),t.c(),t.m(r.parentNode,r)):t&&(t.d(1),t=null)},i:ce,o:ce,d(l){l&&n(r),t&&t.d(l)}}}function Ne(p,r,t){let{report:l}=r,{type:h}=r,{service:j=window.GaReportService}=r,i,b=0,w=0,f=0,x=0,y=0,N=!1;return fe(async()=>{switch(i=await j.getReport(l),h){case"shield":t(1,b=Number(i.Sxmin)),t(2,w=Number(i.Sxaverage)),t(3,f=Number(i.Sxmax)),t(4,x=Number(i.Syourscore)),t(5,y=Number(i.Spercentile));break;case"youth":t(1,b=Number(i.G2xmin)),t(2,w=Number(i.G2xaverage)),t(3,f=Number(i.G2xmax)),t(4,x=Number(i.G2yourscore)),t(5,y=Number(i.G2percentile));break;case"mature":t(1,b=Number(i.G0xmin)),t(2,w=Number(i.G0xaverage)),t(3,f=Number(i.G0xmax)),t(4,x=Number(i.G0yourscore)),t(5,y=Number(i.G0percentile));break;case"lifestyle":t(1,b=Number(i.Bxmin)),t(2,w=Number(i.Bxaverage)),t(3,f=Number(i.Bxmax)),t(4,x=Number(i.Byourscore)),t(5,y=Number(i.Bpercentile))}t(6,N=!0)}),p.$$set=d=>{"report"in d&&t(7,l=d.report),"type"in d&&t(0,h=d.type),"service"in d&&t(8,j=d.service)},[h,b,w,f,x,y,N,l,j]}class de extends ge{constructor(r){super(),xe(this,r,Ne,ke,he,{report:7,type:0,service:8},je)}get report(){return this.$$.ctx[7]}set report(r){this.$$set({report:r}),X()}get type(){return this.$$.ctx[0]}set type(r){this.$$set({type:r}),X()}get service(){return this.$$.ctx[8]}set service(r){this.$$set({service:r}),X()}}customElements.define("ga-index-graph-japanese",ue(de,{report:{},type:{},service:{}},[],[],!0));export{de as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as
|
|
1
|
+
import{c as Le,S as ke,i as $e,f as fe,s as Ne,a as Ae,d as Se,g as ue,w as ye,k as we,o as Fe,e as r,b as i,p as N,x as w,r as t,q as n,C as je,F as be,u as e,v as D}from"./helpers.js";function Ge(l){Ae(l,"svelte-1jvtypm",".parent.svelte-1jvtypm{display:flex;width:100%;height:10px;position:relative;font-family:'Sen', 'Noto Sans JP', sans-serif}.slider.svelte-1jvtypm{display:flex;flex-direction:column;align-items:center;position:absolute;transform:translate(-50%, -110%);width:24%;max-height:70px}.bottom-triangle.svelte-1jvtypm{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.svelte-1jvtypm{position:absolute;top:4rem;width:90%;height:3rem;transform:translate(-50%, 0%);left:50%;max-height:40px;display:flex;align-items:center;justify-content:center;font-size:0.95rem;gap:.25rem;color:#36614B}.colored-percentile.svelte-1jvtypm{height:90%;width:27%;min-width:145px;color:white;display:flex;align-items:center;justify-content:center;border-radius:8px;padding:0 0.2rem 0 0.2rem}.colorBox.svelte-1jvtypm{width:14%;border-radius:24px;margin-left:0.2%;margin-right:0.2%}.colorBoxShort.svelte-1jvtypm{width:10%;border-radius:24px}.rotateImg.svelte-1jvtypm{transform:rotate(180deg)}p.svelte-1jvtypm{margin:0}")}function Ce(l){let s,o,v,c,m,j,A,b,S,C,F,d,se,Z,oe,z,re,p,G,le,M,H,K,ie,g,I,ae,B,x,R,ne,O,Q,T,ve,L,f,q,ce,U,V,W,pe,k,u,E,me,X,Y,ee,de,y,J,ge,$,P,te,he,xe,_;return{c(){s=r("div"),o=r("div"),v=i(),c=r("div"),m=i(),j=r("div"),A=i(),b=r("div"),S=i(),C=r("div"),F=i(),d=r("div"),se=i(),Z=r("div"),oe=i(),z=r("div"),re=i(),p=r("div"),G=r("p"),G.textContent="\u3042\u306A\u305F\u306E\u7D50\u679C",le=i(),M=r("p"),H=r("b"),K=N(l[3]),ie=i(),g=w("svg"),I=w("path"),ae=i(),B=r("div"),x=w("svg"),R=w("path"),ne=i(),O=r("div"),Q=r("b"),T=N(l[0]),ve=i(),L=r("div"),f=w("svg"),q=w("path"),ce=i(),U=r("div"),V=r("b"),W=N(l[1]),pe=i(),k=r("div"),u=w("svg"),E=w("path"),me=i(),X=r("div"),Y=r("b"),ee=N(l[2]),de=i(),y=r("div"),J=r("p"),J.textContent="\u3053\u306E\u7D50\u679C\u306B\u3088\u308A\u3001\u3042\u306A\u305F\u306F",ge=i(),$=r("div"),P=r("b"),te=N(l[4]),he=N(" \u30D1\u30FC\u30BB\u30F3\u30BF\u30A4\u30EB"),xe=i(),_=r("p"),_.textContent="* \u306B\u30E9\u30F3\u30AF\u4ED8\u3051\u3055\u308C\u307E\u3057\u305F\u3002",t(o,"class","colorBoxShort svelte-1jvtypm"),n(o,"background-color","#DF2120"),t(c,"class","colorBox svelte-1jvtypm"),n(c,"background-color","#F2800D"),t(j,"class","colorBox svelte-1jvtypm"),n(j,"background-color","#13A195"),t(b,"class","colorBox svelte-1jvtypm"),n(b,"background-color","#66CCAA"),t(C,"class","colorBox svelte-1jvtypm"),n(C,"background-color","#66CCAA"),t(d,"class","colorBox svelte-1jvtypm"),n(d,"background-color","#13A195"),t(Z,"class","colorBox svelte-1jvtypm"),n(Z,"background-color","#F2800D"),t(z,"class","colorBoxShort svelte-1jvtypm"),n(z,"background-color","#DF2120"),n(G,"font-size","1rem"),t(G,"class","svelte-1jvtypm"),n(M,"font-size","1.2rem"),t(M,"class","svelte-1jvtypm"),t(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"),t(I,"fill","#09371F"),t(g,"class","rotateImg svelte-1jvtypm"),t(g,"width","14%"),t(g,"height","14%"),t(g,"viewBox","0 0 42 37"),t(g,"fill","none"),t(g,"xmlns","http://www.w3.org/2000/svg"),t(p,"class","slider svelte-1jvtypm"),n(p,"left",je(l[0],l[1],l[2],l[3])+"%"),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","#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(B,"class","bottom-triangle svelte-1jvtypm"),n(B,"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(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(L,"class","bottom-triangle svelte-1jvtypm"),n(L,"left","50%"),t(E,"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(E,"fill","#6B8779"),t(u,"width","30%"),t(u,"height","30%"),t(u,"viewBox","0 0 42 37"),t(u,"fill","none"),t(u,"xmlns","http://www.w3.org/2000/svg"),t(k,"class","bottom-triangle svelte-1jvtypm"),n(k,"left","90.5%"),t(J,"class","svelte-1jvtypm"),t($,"class","colored-percentile svelte-1jvtypm"),n($,"background-color",be(l[0],l[1],l[2],l[3])),t(_,"class","svelte-1jvtypm"),t(y,"class","message svelte-1jvtypm"),t(s,"class","parent svelte-1jvtypm")},m(a,h){ue(a,s,h),e(s,o),e(s,v),e(s,c),e(s,m),e(s,j),e(s,A),e(s,b),e(s,S),e(s,C),e(s,F),e(s,d),e(s,se),e(s,Z),e(s,oe),e(s,z),e(s,re),e(s,p),e(p,G),e(p,le),e(p,M),e(M,H),e(H,K),e(p,ie),e(p,g),e(g,I),e(s,ae),e(s,B),e(B,x),e(x,R),e(B,ne),e(B,O),e(O,Q),e(Q,T),e(s,ve),e(s,L),e(L,f),e(f,q),e(L,ce),e(L,U),e(U,V),e(V,W),e(s,pe),e(s,k),e(k,u),e(u,E),e(k,me),e(k,X),e(X,Y),e(Y,ee),e(s,de),e(s,y),e(y,J),e(y,ge),e(y,$),e($,P),e(P,te),e(P,he),e(y,xe),e(y,_)},p(a,h){h&8&&D(K,a[3]),h&15&&n(p,"left",je(a[0],a[1],a[2],a[3])+"%"),h&1&&D(T,a[0]),h&2&&D(W,a[1]),h&4&&D(ee,a[2]),h&16&&D(te,a[4]),h&15&&n($,"background-color",be(a[0],a[1],a[2],a[3]))},d(a){a&&we(s)}}}function Me(l){let s,o=l[5]&&Ce(l);return{c(){o&&o.c(),s=Se()},m(v,c){o&&o.m(v,c),ue(v,s,c)},p(v,[c]){v[5]?o?o.p(v,c):(o=Ce(v),o.c(),o.m(s.parentNode,s)):o&&(o.d(1),o=null)},i:ye,o:ye,d(v){v&&we(s),o&&o.d(v)}}}function De(l,s,o){let{report:v}=s,{service:c=window.GaReportService}=s,m,j=0,A=0,b=0,S=0,C=0,F=!1;return Fe(async()=>{m=await c.getReport(v),o(0,j=Number(m.G1xmin)),o(1,A=Number(m.G1xaverage)),o(2,b=Number(m.G1xmax)),o(3,S=Number(m.G1yourscore)),o(4,C=Number(m.G1percentile)),o(5,F=!0)}),l.$$set=d=>{"report"in d&&o(6,v=d.report),"service"in d&&o(7,c=d.service)},[j,A,b,S,C,F,v,c]}class Be extends ke{constructor(s){super(),$e(this,s,De,Me,Ne,{report:6,service:7},Ge)}get report(){return this.$$.ctx[6]}set report(s){this.$$set({report:s}),fe()}get service(){return this.$$.ctx[7]}set service(s){this.$$set({service:s}),fe()}}customElements.define("ga-median-graph-japanese",Le(Be,{report:{},service:{}},[],[],!0));export{Be as default};
|