@glycanage/web-components 1.2.0 → 1.3.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
- var G=Object.defineProperty,H=(e,t,i)=>t in e?G(e,t,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[t]=i,c=(e,t,i)=>(H(e,typeof t!="symbol"?t+"":t,i),i);function $(){}function P(e){return e()}function z(){return Object.create(null)}function v(e){e.forEach(P)}function C(e){return typeof e=="function"}function T(e,t){return e!=e?t==t:e!==t||e&&typeof e=="object"||typeof e=="function"}function J(e){return Object.keys(e).length===0}function D(e,t,i){e.insertBefore(t,i||null)}function x(e){e.parentNode&&e.parentNode.removeChild(e)}function L(e){return document.createElement(e)}function R(e,t,i){i==null?e.removeAttribute(t):e.getAttribute(t)!==i&&e.setAttribute(t,i)}function Y(e){return Array.from(e.childNodes)}function u(e,t,i,o){i==null?e.style.removeProperty(t):e.style.setProperty(t,i,o?"important":"")}function q(e){const t={};return e.childNodes.forEach(i=>{t[i.slot||"default"]=!0}),t}let w;function g(e){w=e}const p=[],N=[];let f=[];const M=[],I=Promise.resolve();let _=!1;function K(){_||(_=!0,I.then(y))}function k(e){f.push(e)}const A=new Set;let b=0;function y(){if(b!==0)return;const e=w;do{try{for(;b<p.length;){const t=p[b];b++,g(t),Q(t.$$)}}catch(t){throw p.length=0,b=0,t}for(g(null),p.length=0,b=0;N.length;)N.pop()();for(let t=0;t<f.length;t+=1){const i=f[t];A.has(i)||(A.add(i),i())}f.length=0}while(p.length);for(;M.length;)M.pop()();_=!1,A.clear(),g(e)}function Q(e){if(e.fragment!==null){e.update(),v(e.before_update);const t=e.dirty;e.dirty=[-1],e.fragment&&e.fragment.p(e.ctx,t),e.after_update.forEach(k)}}function U(e){const t=[],i=[];f.forEach(o=>e.indexOf(o)===-1?t.push(o):i.push(o)),i.forEach(o=>o()),f=t}const V=new Set;function W(e,t){e&&e.i&&(V.delete(e),e.i(t))}function X(e,t,i){const{fragment:o,after_update:r}=e.$$;o&&o.m(t,i),k(()=>{const s=e.$$.on_mount.map(P).filter(C);e.$$.on_destroy?e.$$.on_destroy.push(...s):v(s),e.$$.on_mount=[]}),r.forEach(k)}function Z(e,t){const i=e.$$;i.fragment!==null&&(U(i.after_update),v(i.on_destroy),i.fragment&&i.fragment.d(t),i.on_destroy=i.fragment=null,i.ctx=[])}function tt(e,t){e.$$.dirty[0]===-1&&(p.push(e),K(),e.$$.dirty.fill(0)),e.$$.dirty[t/31|0]|=1<<t%31}function et(e,t,i,o,r,s,a,l=[-1]){const d=w;g(e);const n=e.$$={fragment:null,ctx:[],props:s,update:$,not_equal:r,bound:z(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(t.context||(d?d.$$.context:[])),callbacks:z(),dirty:l,skip_bound:!1,root:t.target||d.$$.root};a&&a(n.root);let E=!1;if(n.ctx=i?i(e,t.props||{},(h,j,...O)=>{const B=O.length?O[0]:j;return n.ctx&&r(n.ctx[h],n.ctx[h]=B)&&(!n.skip_bound&&n.bound[h]&&n.bound[h](B),E&&tt(e,h)),j}):[],n.update(),E=!0,v(n.before_update),n.fragment=o?o(n.ctx):!1,t.target){if(t.hydrate){const h=Y(t.target);n.fragment&&n.fragment.l(h),h.forEach(x)}else n.fragment&&n.fragment.c();t.intro&&W(e.$$.fragment),X(e,t.target,t.anchor),y()}g(d)}let S;typeof HTMLElement=="function"&&(S=class extends HTMLElement{constructor(e,t,i){super(),c(this,"$$ctor"),c(this,"$$s"),c(this,"$$c"),c(this,"$$cn",!1),c(this,"$$d",{}),c(this,"$$r",!1),c(this,"$$p_d",{}),c(this,"$$l",{}),c(this,"$$l_u",new Map),this.$$ctor=e,this.$$s=t,i&&this.attachShadow({mode:"open"})}addEventListener(e,t,i){if(this.$$l[e]=this.$$l[e]||[],this.$$l[e].push(t),this.$$c){const o=this.$$c.$on(e,t);this.$$l_u.set(t,o)}super.addEventListener(e,t,i)}removeEventListener(e,t,i){if(super.removeEventListener(e,t,i),this.$$c){const o=this.$$l_u.get(t);o&&(o(),this.$$l_u.delete(t))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){let e=function(r){return()=>{let s;return{c:function(){s=L("slot"),r!=="default"&&R(s,"name",r)},m:function(a,l){D(a,s,l)},d:function(a){a&&x(s)}}}};if(await Promise.resolve(),!this.$$cn)return;const t={},i=q(this);for(const r of this.$$s)r in i&&(t[r]=[e(r)]);for(const r of this.attributes){const s=this.$$g_p(r.name);s in this.$$d||(this.$$d[s]=m(s,r.value,this.$$p_d,"toProp"))}this.$$c=new this.$$ctor({target:this.shadowRoot||this,props:{...this.$$d,$$slots:t,$$scope:{ctx:[]}}});const o=()=>{this.$$r=!0;for(const r in this.$$p_d)if(this.$$d[r]=this.$$c.$$.ctx[this.$$c.$$.props[r]],this.$$p_d[r].reflect){const s=m(r,this.$$d[r],this.$$p_d,"toAttribute");s==null?this.removeAttribute(r):this.setAttribute(this.$$p_d[r].attribute||r,s)}this.$$r=!1};this.$$c.$$.after_update.push(o),o();for(const r in this.$$l)for(const s of this.$$l[r]){const a=this.$$c.$on(r,s);this.$$l_u.set(s,a)}this.$$l={}}}attributeChangedCallback(e,t,i){var o;this.$$r||(e=this.$$g_p(e),this.$$d[e]=m(e,i,this.$$p_d,"toProp"),(o=this.$$c)==null||o.$set({[e]:this.$$d[e]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{this.$$cn||(this.$$c.$destroy(),this.$$c=void 0)})}$$g_p(e){return Object.keys(this.$$p_d).find(t=>this.$$p_d[t].attribute===e||!this.$$p_d[t].attribute&&t.toLowerCase()===e)||e}});function m(e,t,i,o){var r;const s=(r=i[e])==null?void 0:r.type;if(t=s==="Boolean"&&typeof t!="boolean"?t!=null:t,!o||!i[e])return t;if(o==="toAttribute")switch(s){case"Object":case"Array":return t==null?null:JSON.stringify(t);case"Boolean":return t?"":null;case"Number":return t??null;default:return t}else switch(s){case"Object":case"Array":return t&&JSON.parse(t);case"Boolean":return t;case"Number":return t!=null?+t:t;default:return t}}function it(e,t,i,o,r,s){let a=class extends S{constructor(){super(e,i,r),this.$$p_d=t}static get observedAttributes(){return Object.keys(t).map(l=>(t[l].attribute||l).toLowerCase())}};return Object.keys(t).forEach(l=>{Object.defineProperty(a.prototype,l,{get(){return this.$$c&&l in this.$$c?this.$$c[l]:this.$$d[l]},set(d){var n;d=m(l,d,t),this.$$d[l]=d,(n=this.$$c)==null||n.$set({[l]:d})}})}),o.forEach(l=>{Object.defineProperty(a.prototype,l,{get(){var d;return(d=this.$$c)==null?void 0:d[l]}})}),s&&(a=s(a)),e.element=a,a}class ot{constructor(){c(this,"$$"),c(this,"$$set")}$destroy(){Z(this,1),this.$destroy=$}$on(t,i){if(!C(i))return $;const o=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return o.push(i),()=>{const r=o.indexOf(i);r!==-1&&o.splice(r,1)}}$set(t){this.$$set&&!J(t)&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}}const rt="4";typeof window<"u"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(rt);function st(e){let t;return{c(){t=L("div"),t.innerHTML='<div style="width: 100%; height: 23%; display: flex;"><div style="width: 14%; height: 100%; margin-left: 2.5rem; font-size: 0.8rem; display: flex; align-items: start; justify-content: center; flex-direction: column;">Glycan<br/> <b>Mature</b></div> <div style="width: 86%; height: 100%; position: relative; margin-right: 1rem;"><div id="min" style="position: absolute; top: 34%; left: 1.6%; font-size: 0.7rem; color: #6B8678;"><b>0.081</b></div> <div id="max" style="position: absolute; top: 34%; right: 5.5%; font-size: 0.7rem; color: #6B8678;"><b>0.185</b></div> <div class="middleParent" style="position: absolute; width: 76%; height: 80%; left: 10%; top: 10%;"><div class="xAxis" style="position: absolute; left:0; top:49%; width: 100%; height: 2px; background-color: black; border-radius: 10px; z-index: 9999;"></div> <div class="yAxis" style="position: absolute; left:50%; width: 2px; height: 100%; background-color: black; border-radius: 10px;"></div> <div class="arthritisArea" style="position: absolute;width: 46%; left: 50.6%; top: 5%; height: 90%; background-color: #C8DBD0; border-radius: 0 6px 6px 0;"></div></div></div></div> <div style="width: 100%; height: 23%; display: flex;"><div style="width: 14%; height: 100%; margin-left: 2.5rem; font-size: 0.8rem; display: flex; align-items: start; justify-content: center; flex-direction: column;">Glycan<br/> <b>Median</b></div> <div style="width: 86%; height: 100%; position: relative; margin-right: 1rem;"><div id="min" style="position: absolute; top: 34%; left: 1.6%; font-size: 0.7rem; color: #6B8678;"><b>0.091</b></div> <div id="max" style="position: absolute; top: 34%; right: 5.5%; font-size: 0.7rem; color: #6B8678;"><b>0.216</b></div> <div class="middleParent" style="position: absolute; width: 76%; height: 80%; left: 10%; top: 10%;"><div class="xAxis" style="position: absolute; left:0; top:49%; width: 100%; height: 2px; background-color: black; border-radius: 10px; z-index: 9999;"></div> <div class="yAxis" style="position: absolute; left:50%; width: 2px; height: 100%; background-color: black; border-radius: 10px;"></div> <div class="arthritisArea" style="position: absolute; width: 46%; right: 50%; top: 5%; height: 90%; background-color: #C8DBD0; border-radius: 6px 0 0 6px;"></div></div></div></div> <div style="width: 100%; height: 23%; display: flex;"><div style="width: 14%; height: 100%; margin-left: 2.5rem; font-size: 0.8rem; display: flex; align-items: start; justify-content: center; flex-direction: column;">Glycan<br/> <b>Youth</b></div> <div style="width: 86%; height: 100%; position: relative; margin-right: 1rem;"><div id="min" style="position: absolute; top: 34%; left: 1.6%; font-size: 0.7rem; color: #6B8678;"><b>0.109</b></div> <div id="max" style="position: absolute; top: 34%; right: 5.5%; font-size: 0.7rem; color: #6B8678;"><b>0.175</b></div> <div class="middleParent" style="position: absolute; width: 76%; height: 80%; left: 10%; top: 10%;"><div class="xAxis" style="position: absolute; left:0; top:49%; width: 100%; height: 2px; background-color: black; border-radius: 10px; z-index: 9999;"></div> <div class="yAxis" style="position: absolute; left:50%; width: 2px; height: 100%; background-color: black; border-radius: 10px;"></div> <div class="arthritisArea" style="position: absolute; width: 46%; right: 50%; top: 5%; height: 90%; background-color: #C8DBD0; border-radius: 6px 0 0 6px;"></div></div></div></div> <div style="width: 100%; height: 11%; display: flex; align-items: center; justify-content: center; margin-top: 12px;"><div style="height: 12px; width: 12px; border-radius: 99px; background-color: #C8DBD0; border: 1px solid black; margin-right: 6px;"></div> <div>Rheumatoid arthritis</div> <div style="height: 12px; width: 12px; border-radius: 99px; background-color: #33664D; border: 1px solid black; margin: 0 6px 0 36px;"></div> <div>Your patient</div></div>',u(t,"background-color","#F0F6F5"),u(t,"width","530px"),u(t,"height","230px"),u(t,"border-radius","12px"),u(t,"display","flex"),u(t,"flex-direction","column"),u(t,"justify-content","center"),u(t,"border","2px solid #C8DBD0")},m(i,o){D(i,t,o)},p:$,i:$,o:$,d(i){i&&x(t)}}}function nt(e,t,i){let{language:o}=t,{report:r}=t;return e.$$set=s=>{"language"in s&&i(0,o=s.language),"report"in s&&i(1,r=s.report)},[o,r]}class F extends ot{constructor(t){super(),et(this,t,nt,st,T,{language:0,report:1})}get language(){return this.$$.ctx[0]}set language(t){this.$$set({language:t}),y()}get report(){return this.$$.ctx[1]}set report(t){this.$$set({report:t}),y()}}customElements.define("ga-arthritis",it(F,{language:{},report:{}},[],[],!0));export{F as default};
1
+ import{c as wt,S as pt,i as gt,f as ut,s as xt,a as ht,T as me,e as t,b as s,t as n,d as be,g as fe,h as i,j as r,k as mt,l as e,m as $e,n as bt,o as ye,p as De,q as ft,r as ze,u as ke,v as Ae,w as Ce,x as Me}from"./shared-functions.js";function $t(T){ht(T,"svelte-u1i7lw",".main.svelte-u1i7lw{width:530px;min-height:230px;height:230px;background-color:#F0F6F5;border:2px solid #C8DBD0;border-radius:12px;display:flex;flex-direction:column;justify-content:center}.row.svelte-u1i7lw{width:100%;height:23%;display:flex}.label.svelte-u1i7lw{width:14%;height:100%;margin-left:2.5rem;font-size:0.8rem;line-height:0.9rem;display:flex;align-items:start;justify-content:center;flex-direction:column}.content.svelte-u1i7lw{width:86%;height:100%;position:relative;margin-right:1rem}.min.svelte-u1i7lw{position:absolute;top:34%;left:1.6%;font-size:0.7rem;color:#6B8678}.middleParent.svelte-u1i7lw{position:absolute;width:76%;height:80%;left:10%;top:10%;display:flex;align-items:center;justify-content:center;flex-direction:column}.xAxis.svelte-u1i7lw{position:absolute;left:0;top:48%;width:100%;height:0.1rem;background-color:#08341F;border-radius:10px;z-index:9999}.arthritisArea.svelte-u1i7lw{position:absolute;width:46%;top:10%;height:80%;background-color:#C8DBD0}.result.svelte-u1i7lw{width:1.5%;height:24%;background-color:#33664D;z-index:9998;position:relative}.result2.svelte-u1i7lw{width:1.5%;height:24%;background-color:#33664D;z-index:9998;position:relative}.result3.svelte-u1i7lw{width:1.5%;height:24%;background-color:#33664D;z-index:9998;position:relative}.yAxis.svelte-u1i7lw{position:absolute;left:49.75%;width:0.1rem;height:88%;background-color:#08341F;border-radius:10px}.max.svelte-u1i7lw{position:absolute;top:34%;right:5.5%;font-size:0.7rem;color:#6B8678}.lastRow.svelte-u1i7lw{width:100%;height:11%;display:flex;align-items:center;justify-content:center;margin-top:12px}.dot1.svelte-u1i7lw{height:10px;width:10px;border-radius:99px;background-color:#C8DBD0;border:1px solid black;margin-right:6px}.dot2.svelte-u1i7lw{height:10px;width:10px;border-radius:99px;background-color:#33664D;border:1px solid black;margin:0 6px 0 36px}.resultDisplay.svelte-u1i7lw{position:absolute;bottom:60%;display:flex;align-items:center;flex-direction:column}.message.svelte-u1i7lw{color:#33664D;z-index:99999;min-width:100px;font-size:0.5rem;margin-bottom:-6px}")}function yt(T){let l,c,g,H,a,S,se,je,_,le,Be,d,re,Fe,ae,Pe,L,Te,x,h,I,m,He,Le,Ge,ne,Re,Ye,k,qe,A,J,Ee,w,K,oe,Se,N,de,_e,u,ue,Ie,ve,Je,G,Ke,b,f,O,$,Ne,Oe,Qe,ce,Ue,Ve,C,We,M,Q,Xe,p,U,we,Ze,V,pe,et,v,ge,tt,xe,it,R,st,y,D,W,z,lt,rt,at,he,nt,ot,j,dt,X,Z;return k=new me({props:{color:"#33664D",size:"22"}}),C=new me({props:{color:"#33664D",size:"22"}}),j=new me({props:{color:"#33664D",size:"22"}}),{c(){l=t("div"),c=t("div"),g=t("div"),g.innerHTML="Glycan<br/><b>Mature</b>",H=s(),a=t("div"),S=t("div"),se=t("b"),se.textContent=`${Dt}`,je=s(),_=t("div"),le=t("b"),le.textContent=`${zt}`,Be=s(),d=t("div"),re=t("div"),Fe=s(),ae=t("div"),Pe=s(),L=t("div"),Te=s(),x=t("div"),h=t("div"),I=t("div"),m=t("b"),He=n(Y),Le=n(" ("),Ge=n(B),ne=t("sup"),ne.textContent=`${be(B)}`,Re=n(" percentile)"),Ye=s(),fe(k.$$.fragment),qe=s(),A=t("div"),J=t("div"),J.innerHTML="Glycan<br/> <b>Median</b>",Ee=s(),w=t("div"),K=t("div"),oe=t("b"),oe.textContent=`${kt}`,Se=s(),N=t("div"),de=t("b"),de.textContent=`${At}`,_e=s(),u=t("div"),ue=t("div"),Ie=s(),ve=t("div"),Je=s(),G=t("div"),Ke=s(),b=t("div"),f=t("div"),O=t("div"),$=t("b"),Ne=n(q),Oe=n(" ("),Qe=n(F),ce=t("sup"),ce.textContent=`${be(F)}`,Ue=n(" percentile)"),Ve=s(),fe(C.$$.fragment),We=s(),M=t("div"),Q=t("div"),Q.innerHTML="Glycan<br/> <b>Youth</b>",Xe=s(),p=t("div"),U=t("div"),we=t("b"),we.textContent=`${Ct}`,Ze=s(),V=t("div"),pe=t("b"),pe.textContent=`${Mt}`,et=s(),v=t("div"),ge=t("div"),tt=s(),xe=t("div"),it=s(),R=t("div"),st=s(),y=t("div"),D=t("div"),W=t("div"),z=t("b"),lt=n(E),rt=n(" ("),at=n(P),he=t("sup"),he.textContent=`${be(P)}`,nt=n(" percentile)"),ot=s(),fe(j.$$.fragment),dt=s(),X=t("div"),X.innerHTML='<div class="dot1 svelte-u1i7lw"></div> <div style="font-size: 0.8rem;">Rheumatoid arthritis</div> <div class="dot2 svelte-u1i7lw"></div> <div style="font-size: 0.8rem;">Your patient</div>',i(g,"class","label svelte-u1i7lw"),i(S,"class","min svelte-u1i7lw"),i(_,"class","max svelte-u1i7lw"),i(re,"class","xAxis svelte-u1i7lw"),i(ae,"class","yAxis svelte-u1i7lw"),i(L,"class","arthritisArea svelte-u1i7lw"),r(L,"border-radius","0 6px 6px 0"),r(L,"left","50.3%"),i(I,"class","message svelte-u1i7lw"),i(h,"class","resultDisplay svelte-u1i7lw"),r(h,"right",ke(Y,ee,B)),i(x,"class","result svelte-u1i7lw"),r(x,"padding",Ae(Y,ee,B)),r(x,"margin",Ce(Y,ee,B)),r(x,"border-radius",Me(Y,ee,B)),i(d,"class","middleParent svelte-u1i7lw"),i(a,"class","content svelte-u1i7lw"),i(c,"class","row svelte-u1i7lw"),i(J,"class","label svelte-u1i7lw"),i(K,"class","min svelte-u1i7lw"),i(N,"class","max svelte-u1i7lw"),i(ue,"class","xAxis svelte-u1i7lw"),i(ve,"class","yAxis svelte-u1i7lw"),i(G,"class","arthritisArea svelte-u1i7lw"),r(G,"border-radius","6px 0 0 6px"),r(G,"right","50.3%"),i(O,"class","message svelte-u1i7lw"),i(f,"class","resultDisplay svelte-u1i7lw"),r(f,"right",ke(q,te,F)),i(b,"class","result2 svelte-u1i7lw"),r(b,"padding",Ae(q,te,F)),r(b,"margin",Ce(q,te,F)),r(b,"border-radius",Me(q,te,F)),i(u,"class","middleParent svelte-u1i7lw"),i(w,"class","content svelte-u1i7lw"),i(A,"class","row svelte-u1i7lw"),i(Q,"class","label svelte-u1i7lw"),i(U,"class","min svelte-u1i7lw"),i(V,"class","max svelte-u1i7lw"),i(ge,"class","xAxis svelte-u1i7lw"),i(xe,"class","yAxis svelte-u1i7lw"),i(R,"class","arthritisArea svelte-u1i7lw"),r(R,"border-radius","6px 0 0 6px"),r(R,"right","50.3%"),i(W,"class","message svelte-u1i7lw"),i(D,"class","resultDisplay svelte-u1i7lw"),r(D,"right",ke(E,ie,P)),i(y,"class","result3 svelte-u1i7lw"),r(y,"padding",Ae(E,ie,P)),r(y,"margin",Ce(E,ie,P)),r(y,"border-radius",Me(E,ie,P)),i(v,"class","middleParent svelte-u1i7lw"),i(p,"class","content svelte-u1i7lw"),i(M,"class","row svelte-u1i7lw"),i(X,"class","lastRow svelte-u1i7lw"),i(l,"class","main svelte-u1i7lw")},m(o,ct){mt(o,l,ct),e(l,c),e(c,g),e(c,H),e(c,a),e(a,S),e(S,se),e(a,je),e(a,_),e(_,le),e(a,Be),e(a,d),e(d,re),e(d,Fe),e(d,ae),e(d,Pe),e(d,L),e(d,Te),e(d,x),e(x,h),e(h,I),e(I,m),e(m,He),e(m,Le),e(m,Ge),e(m,ne),e(m,Re),e(h,Ye),$e(k,h,null),e(l,qe),e(l,A),e(A,J),e(A,Ee),e(A,w),e(w,K),e(K,oe),e(w,Se),e(w,N),e(N,de),e(w,_e),e(w,u),e(u,ue),e(u,Ie),e(u,ve),e(u,Je),e(u,G),e(u,Ke),e(u,b),e(b,f),e(f,O),e(O,$),e($,Ne),e($,Oe),e($,Qe),e($,ce),e($,Ue),e(f,Ve),$e(C,f,null),e(l,We),e(l,M),e(M,Q),e(M,Xe),e(M,p),e(p,U),e(U,we),e(p,Ze),e(p,V),e(V,pe),e(p,et),e(p,v),e(v,ge),e(v,tt),e(v,xe),e(v,it),e(v,R),e(v,st),e(v,y),e(y,D),e(D,W),e(W,z),e(z,lt),e(z,rt),e(z,at),e(z,he),e(z,nt),e(D,ot),$e(j,D,null),e(l,dt),e(l,X),Z=!0},p:bt,i(o){Z||(ye(k.$$.fragment,o),ye(C.$$.fragment,o),ye(j.$$.fragment,o),Z=!0)},o(o){De(k.$$.fragment,o),De(C.$$.fragment,o),De(j.$$.fragment,o),Z=!1},d(o){o&&ft(l),ze(k),ze(C),ze(j)}}}let Dt=.081,zt=.185,ee=.133,Y=.141,B=72,kt=.091,At=.216,te=.15,q=.103,F=43,Ct=.109,Mt=.175,ie=.141,E=.126,P=25;function jt(T,l,c){let{language:g}=l,{report:H}=l;return T.$$set=a=>{"language"in a&&c(0,g=a.language),"report"in a&&c(1,H=a.report)},[g,H]}class vt extends pt{constructor(l){super(),gt(this,l,jt,yt,xt,{language:0,report:1},$t)}get language(){return this.$$.ctx[0]}set language(l){this.$$set({language:l}),ut()}get report(){return this.$$.ctx[1]}set report(l){this.$$set({report:l}),ut()}}customElements.define("ga-arthritis",wt(vt,{language:{},report:{}},[],[],!0));export{vt as default};
@@ -0,0 +1 @@
1
+ import{c as Nt,S as Ot,i as Qt,f as It,s as Ut,a as Vt,T as pe,e as t,b as s,t as r,d as xe,g as me,h as l,j as a,k as Wt,l as e,m as he,n as Xt,o as be,p as fe,q as Zt,r as $e,u as we,v as ye,w as De,x as ze}from"./shared-functions.js";function _t(S){Vt(S,"svelte-15gul9a",".main.svelte-15gul9a{width:530px;height:320px;min-height:320px;background-color:#F0F6F5;border:2px solid #C8DBD0;border-radius:12px;display:flex;flex-direction:column;justify-content:center}.row.svelte-15gul9a{width:100%;height:23%;max-height:58px;display:flex}.label.svelte-15gul9a{width:14%;height:100%;margin-left:2.5rem;font-size:0.8rem;line-height:0.9rem;display:flex;align-items:start;justify-content:center;flex-direction:column}.content.svelte-15gul9a{width:86%;height:100%;position:relative;margin-right:1rem}.min.svelte-15gul9a{position:absolute;top:34%;left:1.6%;font-size:0.7rem;color:#6B8678}.middleParent.svelte-15gul9a{position:absolute;width:76%;height:80%;left:10%;top:10%;display:flex;align-items:center;justify-content:center;flex-direction:column}.xAxis.svelte-15gul9a{position:absolute;left:0;top:48%;width:100%;height:0.1rem;background-color:#08341F;border-radius:10px;z-index:9999}.arthritisArea.svelte-15gul9a{position:absolute;width:46%;top:10%;height:80%;background-color:#C8DBD0}.result.svelte-15gul9a{width:1.5%;height:24%;background-color:#33664D;z-index:9998;position:relative}.result2.svelte-15gul9a{width:1.5%;height:24%;background-color:#33664D;z-index:9998;position:relative}.result3.svelte-15gul9a{width:1.5%;height:24%;background-color:#33664D;z-index:9998;position:relative}.yAxis.svelte-15gul9a{position:absolute;left:49.75%;width:0.1rem;height:88%;background-color:#08341F;border-radius:10px}.max.svelte-15gul9a{position:absolute;top:34%;right:5.5%;font-size:0.7rem;color:#6B8678}.lastRow.svelte-15gul9a{width:100%;height:11%;display:flex;align-items:center;justify-content:center;margin-top:12px}.dot1.svelte-15gul9a{height:10px;width:10px;border-radius:99px;background-color:#C8DBD0;border:1px solid black;margin-right:6px}.dot2.svelte-15gul9a{height:10px;width:10px;border-radius:99px;background-color:#33664D;border:1px solid black;margin:0 6px 0 36px}.resultDisplay.svelte-15gul9a{position:absolute;bottom:60%;display:flex;align-items:center;flex-direction:column}.message.svelte-15gul9a{color:#33664D;z-index:99999;min-width:100px;font-size:0.5rem;margin-bottom:-6px}")}function el(S){let i,c,h,I,n,X,Le,Ve,Z,Te,We,g,je,Xe,Be,Ze,J,_e,b,f,_,$,et,tt,lt,Fe,st,at,T,it,j,ee,rt,p,te,He,nt,le,Pe,ot,d,Ge,gt,Ee,dt,K,ut,w,y,se,D,vt,ct,pt,Re,xt,mt,B,ht,F,ae,bt,x,ie,Ye,ft,re,qe,$t,u,Se,wt,Ie,yt,N,Dt,z,A,ne,C,zt,At,Ct,Je,kt,Mt,H,Lt,P,oe,Tt,m,ge,Ke,jt,de,Ne,Bt,v,Oe,Ft,Qe,Ht,O,Pt,k,M,ue,L,Gt,Et,Rt,Ue,Yt,qt,G,St,ve,ce;return T=new pe({props:{color:"#33664D",size:"22"}}),B=new pe({props:{color:"#33664D",size:"22"}}),H=new pe({props:{color:"#33664D",size:"22"}}),G=new pe({props:{color:"#33664D",size:"22"}}),{c(){i=t("div"),c=t("div"),h=t("div"),h.innerHTML="Glycan<br/> <b>Mature</b>",I=s(),n=t("div"),X=t("div"),Le=t("b"),Le.textContent=`${tl}`,Ve=s(),Z=t("div"),Te=t("b"),Te.textContent=`${ll}`,We=s(),g=t("div"),je=t("div"),Xe=s(),Be=t("div"),Ze=s(),J=t("div"),_e=s(),b=t("div"),f=t("div"),_=t("div"),$=t("b"),et=r(Q),tt=r(" ("),lt=r(E),Fe=t("sup"),Fe.textContent=`${xe(E)}`,st=r(" percentile)"),at=s(),me(T.$$.fragment),it=s(),j=t("div"),ee=t("div"),ee.innerHTML="Glycan<br/> <b>Median</b>",rt=s(),p=t("div"),te=t("div"),He=t("b"),He.textContent=`${sl}`,nt=s(),le=t("div"),Pe=t("b"),Pe.textContent=`${al}`,ot=s(),d=t("div"),Ge=t("div"),gt=s(),Ee=t("div"),dt=s(),K=t("div"),ut=s(),w=t("div"),y=t("div"),se=t("div"),D=t("b"),vt=r(U),ct=r(" ("),pt=r(R),Re=t("sup"),Re.textContent=`${xe(R)}`,xt=r(" percentile)"),mt=s(),me(B.$$.fragment),ht=s(),F=t("div"),ae=t("div"),ae.innerHTML="Glycan<br/> <b>Youth</b>",bt=s(),x=t("div"),ie=t("div"),Ye=t("b"),Ye.textContent=`${il}`,ft=s(),re=t("div"),qe=t("b"),qe.textContent=`${rl}`,$t=s(),u=t("div"),Se=t("div"),wt=s(),Ie=t("div"),yt=s(),N=t("div"),Dt=s(),z=t("div"),A=t("div"),ne=t("div"),C=t("b"),zt=r(V),At=r(" ("),Ct=r(Y),Je=t("sup"),Je.textContent=`${xe(Y)}`,kt=r(" percentile)"),Mt=s(),me(H.$$.fragment),Lt=s(),P=t("div"),oe=t("div"),oe.innerHTML="Glycan<br/> <b>Lifestyle</b>",Tt=s(),m=t("div"),ge=t("div"),Ke=t("b"),Ke.textContent=`${nl}`,jt=s(),de=t("div"),Ne=t("b"),Ne.textContent=`${ol}`,Bt=s(),v=t("div"),Oe=t("div"),Ft=s(),Qe=t("div"),Ht=s(),O=t("div"),Pt=s(),k=t("div"),M=t("div"),ue=t("div"),L=t("b"),Gt=r(W),Et=r(" ("),Rt=r(q),Ue=t("sup"),Ue.textContent=`${xe(q)}`,Yt=r(" percentile)"),qt=s(),me(G.$$.fragment),St=s(),ve=t("div"),ve.innerHTML='<div class="dot1 svelte-15gul9a"></div> <div style="font-size: 0.8rem;">Ulcerative colitis</div> <div class="dot2 svelte-15gul9a"></div> <div style="font-size: 0.8rem;">Your patient</div>',l(h,"class","label svelte-15gul9a"),l(X,"class","min svelte-15gul9a"),l(Z,"class","max svelte-15gul9a"),l(je,"class","xAxis svelte-15gul9a"),l(Be,"class","yAxis svelte-15gul9a"),l(J,"class","arthritisArea svelte-15gul9a"),a(J,"border-radius","0 6px 6px 0"),a(J,"left","50.3%"),l(_,"class","message svelte-15gul9a"),l(f,"class","resultDisplay svelte-15gul9a"),a(f,"right",we(Q,Ae,E)),l(b,"class","result svelte-15gul9a"),a(b,"padding",ye(Q,Ae,E)),a(b,"margin",De(Q,Ae,E)),a(b,"border-radius",ze(Q,Ae,E)),l(g,"class","middleParent svelte-15gul9a"),l(n,"class","content svelte-15gul9a"),l(c,"class","row svelte-15gul9a"),l(ee,"class","label svelte-15gul9a"),l(te,"class","min svelte-15gul9a"),l(le,"class","max svelte-15gul9a"),l(Ge,"class","xAxis svelte-15gul9a"),l(Ee,"class","yAxis svelte-15gul9a"),l(K,"class","arthritisArea svelte-15gul9a"),a(K,"border-radius","6px 0 0 6px"),a(K,"right","50.3%"),l(se,"class","message svelte-15gul9a"),l(y,"class","resultDisplay svelte-15gul9a"),a(y,"right",we(U,Ce,R)),l(w,"class","result2 svelte-15gul9a"),a(w,"padding",ye(U,Ce,R)),a(w,"margin",De(U,Ce,R)),a(w,"border-radius",ze(U,Ce,R)),l(d,"class","middleParent svelte-15gul9a"),l(p,"class","content svelte-15gul9a"),l(j,"class","row svelte-15gul9a"),l(ae,"class","label svelte-15gul9a"),l(ie,"class","min svelte-15gul9a"),l(re,"class","max svelte-15gul9a"),l(Se,"class","xAxis svelte-15gul9a"),l(Ie,"class","yAxis svelte-15gul9a"),l(N,"class","arthritisArea svelte-15gul9a"),a(N,"border-radius","6px 0 0 6px"),a(N,"right","50.3%"),l(ne,"class","message svelte-15gul9a"),l(A,"class","resultDisplay svelte-15gul9a"),a(A,"right",we(V,ke,Y)),l(z,"class","result3 svelte-15gul9a"),a(z,"padding",ye(V,ke,Y)),a(z,"margin",De(V,ke,Y)),a(z,"border-radius",ze(V,ke,Y)),l(u,"class","middleParent svelte-15gul9a"),l(x,"class","content svelte-15gul9a"),l(F,"class","row svelte-15gul9a"),l(oe,"class","label svelte-15gul9a"),l(ge,"class","min svelte-15gul9a"),l(de,"class","max svelte-15gul9a"),l(Oe,"class","xAxis svelte-15gul9a"),l(Qe,"class","yAxis svelte-15gul9a"),l(O,"class","arthritisArea svelte-15gul9a"),a(O,"border-radius","6px 0 0 6px"),a(O,"right","50.3%"),l(ue,"class","message svelte-15gul9a"),l(M,"class","resultDisplay svelte-15gul9a"),a(M,"right",we(W,Me,q)),l(k,"class","result3 svelte-15gul9a"),a(k,"padding",ye(W,Me,q)),a(k,"margin",De(W,Me,q)),a(k,"border-radius",ze(W,Me,q)),l(v,"class","middleParent svelte-15gul9a"),l(m,"class","content svelte-15gul9a"),l(P,"class","row svelte-15gul9a"),l(ve,"class","lastRow svelte-15gul9a"),l(i,"class","main svelte-15gul9a")},m(o,Kt){Wt(o,i,Kt),e(i,c),e(c,h),e(c,I),e(c,n),e(n,X),e(X,Le),e(n,Ve),e(n,Z),e(Z,Te),e(n,We),e(n,g),e(g,je),e(g,Xe),e(g,Be),e(g,Ze),e(g,J),e(g,_e),e(g,b),e(b,f),e(f,_),e(_,$),e($,et),e($,tt),e($,lt),e($,Fe),e($,st),e(f,at),he(T,f,null),e(i,it),e(i,j),e(j,ee),e(j,rt),e(j,p),e(p,te),e(te,He),e(p,nt),e(p,le),e(le,Pe),e(p,ot),e(p,d),e(d,Ge),e(d,gt),e(d,Ee),e(d,dt),e(d,K),e(d,ut),e(d,w),e(w,y),e(y,se),e(se,D),e(D,vt),e(D,ct),e(D,pt),e(D,Re),e(D,xt),e(y,mt),he(B,y,null),e(i,ht),e(i,F),e(F,ae),e(F,bt),e(F,x),e(x,ie),e(ie,Ye),e(x,ft),e(x,re),e(re,qe),e(x,$t),e(x,u),e(u,Se),e(u,wt),e(u,Ie),e(u,yt),e(u,N),e(u,Dt),e(u,z),e(z,A),e(A,ne),e(ne,C),e(C,zt),e(C,At),e(C,Ct),e(C,Je),e(C,kt),e(A,Mt),he(H,A,null),e(i,Lt),e(i,P),e(P,oe),e(P,Tt),e(P,m),e(m,ge),e(ge,Ke),e(m,jt),e(m,de),e(de,Ne),e(m,Bt),e(m,v),e(v,Oe),e(v,Ft),e(v,Qe),e(v,Ht),e(v,O),e(v,Pt),e(v,k),e(k,M),e(M,ue),e(ue,L),e(L,Gt),e(L,Et),e(L,Rt),e(L,Ue),e(L,Yt),e(M,qt),he(G,M,null),e(i,St),e(i,ve),ce=!0},p:Xt,i(o){ce||(be(T.$$.fragment,o),be(B.$$.fragment,o),be(H.$$.fragment,o),be(G.$$.fragment,o),ce=!0)},o(o){fe(T.$$.fragment,o),fe(B.$$.fragment,o),fe(H.$$.fragment,o),fe(G.$$.fragment,o),ce=!1},d(o){o&&Zt(i),$e(T),$e(B),$e(H),$e(G)}}}let tl=.081,ll=.185,Ae=.133,Q=.11,E=12,sl=.091,al=.216,Ce=.199,U=.18,R=39,il=.109,rl=.175,ke=.14,V=.18,Y=85,nl=.109,ol=.175,Me=.14,W=.13,q=29;function gl(S,i,c){let{language:h}=i,{report:I}=i;return S.$$set=n=>{"language"in n&&c(0,h=n.language),"report"in n&&c(1,I=n.report)},[h,I]}class Jt extends Ot{constructor(i){super(),Qt(this,i,gl,el,Ut,{language:0,report:1},_t)}get language(){return this.$$.ctx[0]}set language(i){this.$$set({language:i}),It()}get report(){return this.$$.ctx[1]}set report(i){this.$$set({report:i}),It()}}customElements.define("ga-colitis",Nt(Jt,{language:{},report:{}},[],[],!0));export{Jt as default};
package/dist/index.js CHANGED
@@ -1 +1 @@
1
- const t=()=>{import("./arthritis.wc.js"),import("./language.interface.js")};export{t as default};
1
+ const t=()=>{import("./arthritis.wc.js"),import("./colitis.wc.js"),import("./language.interface.js")};export{t as default};
@@ -0,0 +1 @@
1
+ var X=Object.defineProperty,Y=(e,t,n)=>t in e?X(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,h=(e,t,n)=>(Y(e,typeof t!="symbol"?t+"":t,n),n);function d(){}function M(e){return e()}function z(){return Object.create(null)}function k(e){e.forEach(M)}function T(e){return typeof e=="function"}function R(e,t){return e!=e?t==t:e!==t||e&&typeof e=="object"||typeof e=="function"}function Z(e){return Object.keys(e).length===0}function p(e,t){e.appendChild(t)}function tt(e,t,n){const r=et(e);if(!r.getElementById(t)){const i=N("style");i.id=t,i.textContent=n,nt(r,i)}}function et(e){if(!e)return document;const t=e.getRootNode?e.getRootNode():e.ownerDocument;return t&&t.host?t:e.ownerDocument}function nt(e,t){return p(e.head||e,t),t.sheet}function w(e,t,n){e.insertBefore(t,n||null)}function m(e){e.parentNode&&e.parentNode.removeChild(e)}function N(e){return document.createElement(e)}function O(e){return document.createElementNS("http://www.w3.org/2000/svg",e)}function x(e){return document.createTextNode(e)}function rt(){return x(" ")}function it(){return x("")}function a(e,t,n){n==null?e.removeAttribute(t):e.getAttribute(t)!==n&&e.setAttribute(t,n)}function st(e){return Array.from(e.childNodes)}function q(e,t){t=""+t,e.data!==t&&(e.data=t)}function ot(e,t,n,r){n==null?e.style.removeProperty(t):e.style.setProperty(t,n,r?"important":"")}function ct(e){const t={};return e.childNodes.forEach(n=>{t[n.slot||"default"]=!0}),t}let A;function E(e){A=e}const b=[],D=[];let g=[];const J=[],$t=Promise.resolve();let B=!1;function ut(){B||(B=!0,$t.then(S))}function C(e){g.push(e)}const P=new Set;let y=0;function S(){if(y!==0)return;const e=A;do{try{for(;y<b.length;){const t=b[y];y++,E(t),at(t.$$)}}catch(t){throw b.length=0,y=0,t}for(E(null),b.length=0,y=0;D.length;)D.pop()();for(let t=0;t<g.length;t+=1){const n=g[t];P.has(n)||(P.add(n),n())}g.length=0}while(b.length);for(;J.length;)J.pop()();B=!1,P.clear(),E(e)}function at(e){if(e.fragment!==null){e.update(),k(e.before_update);const t=e.dirty;e.dirty=[-1],e.fragment&&e.fragment.p(e.ctx,t),e.after_update.forEach(C)}}function ft(e){const t=[],n=[];g.forEach(r=>e.indexOf(r)===-1?t.push(r):n.push(r)),n.forEach(r=>r()),g=t}const L=new Set;let lt;function I(e,t){e&&e.i&&(L.delete(e),e.i(t))}function ht(e,t,n,r){if(e&&e.o){if(L.has(e))return;L.add(e),lt.c.push(()=>{L.delete(e),r&&(n&&e.d(1),r())}),e.o(t)}else r&&r()}function dt(e){e&&e.c()}function F(e,t,n){const{fragment:r,after_update:i}=e.$$;r&&r.m(t,n),C(()=>{const s=e.$$.on_mount.map(M).filter(T);e.$$.on_destroy?e.$$.on_destroy.push(...s):k(s),e.$$.on_mount=[]}),i.forEach(C)}function G(e,t){const n=e.$$;n.fragment!==null&&(ft(n.after_update),k(n.on_destroy),n.fragment&&n.fragment.d(t),n.on_destroy=n.fragment=null,n.ctx=[])}function pt(e,t){e.$$.dirty[0]===-1&&(b.push(e),ut(),e.$$.dirty.fill(0)),e.$$.dirty[t/31|0]|=1<<t%31}function K(e,t,n,r,i,s,o,c=[-1]){const f=A;E(e);const u=e.$$={fragment:null,ctx:[],props:s,update:d,not_equal:i,bound:z(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(t.context||(f?f.$$.context:[])),callbacks:z(),dirty:c,skip_bound:!1,root:t.target||f.$$.root};o&&o(u.root);let _=!1;if(u.ctx=n?n(e,t.props||{},(l,v,...$)=>{const H=$.length?$[0]:v;return u.ctx&&i(u.ctx[l],u.ctx[l]=H)&&(!u.skip_bound&&u.bound[l]&&u.bound[l](H),_&&pt(e,l)),v}):[],u.update(),_=!0,k(u.before_update),u.fragment=r?r(u.ctx):!1,t.target){if(t.hydrate){const l=st(t.target);u.fragment&&u.fragment.l(l),l.forEach(m)}else u.fragment&&u.fragment.c();t.intro&&I(e.$$.fragment),F(e,t.target,t.anchor),S()}E(f)}let Q;typeof HTMLElement=="function"&&(Q=class extends HTMLElement{constructor(e,t,n){super(),h(this,"$$ctor"),h(this,"$$s"),h(this,"$$c"),h(this,"$$cn",!1),h(this,"$$d",{}),h(this,"$$r",!1),h(this,"$$p_d",{}),h(this,"$$l",{}),h(this,"$$l_u",new Map),this.$$ctor=e,this.$$s=t,n&&this.attachShadow({mode:"open"})}addEventListener(e,t,n){if(this.$$l[e]=this.$$l[e]||[],this.$$l[e].push(t),this.$$c){const r=this.$$c.$on(e,t);this.$$l_u.set(t,r)}super.addEventListener(e,t,n)}removeEventListener(e,t,n){if(super.removeEventListener(e,t,n),this.$$c){const r=this.$$l_u.get(t);r&&(r(),this.$$l_u.delete(t))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){let e=function(i){return()=>{let s;return{c:function(){s=N("slot"),i!=="default"&&a(s,"name",i)},m:function(o,c){w(o,s,c)},d:function(o){o&&m(s)}}}};if(await Promise.resolve(),!this.$$cn)return;const t={},n=ct(this);for(const i of this.$$s)i in n&&(t[i]=[e(i)]);for(const i of this.attributes){const s=this.$$g_p(i.name);s in this.$$d||(this.$$d[s]=j(s,i.value,this.$$p_d,"toProp"))}this.$$c=new this.$$ctor({target:this.shadowRoot||this,props:{...this.$$d,$$slots:t,$$scope:{ctx:[]}}});const r=()=>{this.$$r=!0;for(const i in this.$$p_d)if(this.$$d[i]=this.$$c.$$.ctx[this.$$c.$$.props[i]],this.$$p_d[i].reflect){const s=j(i,this.$$d[i],this.$$p_d,"toAttribute");s==null?this.removeAttribute(i):this.setAttribute(this.$$p_d[i].attribute||i,s)}this.$$r=!1};this.$$c.$$.after_update.push(r),r();for(const i in this.$$l)for(const s of this.$$l[i]){const o=this.$$c.$on(i,s);this.$$l_u.set(s,o)}this.$$l={}}}attributeChangedCallback(e,t,n){var r;this.$$r||(e=this.$$g_p(e),this.$$d[e]=j(e,n,this.$$p_d,"toProp"),(r=this.$$c)==null||r.$set({[e]:this.$$d[e]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{this.$$cn||(this.$$c.$destroy(),this.$$c=void 0)})}$$g_p(e){return Object.keys(this.$$p_d).find(t=>this.$$p_d[t].attribute===e||!this.$$p_d[t].attribute&&t.toLowerCase()===e)||e}});function j(e,t,n,r){var i;const s=(i=n[e])==null?void 0:i.type;if(t=s==="Boolean"&&typeof t!="boolean"?t!=null:t,!r||!n[e])return t;if(r==="toAttribute")switch(s){case"Object":case"Array":return t==null?null:JSON.stringify(t);case"Boolean":return t?"":null;case"Number":return t??null;default:return t}else switch(s){case"Object":case"Array":return t&&JSON.parse(t);case"Boolean":return t;case"Number":return t!=null?+t:t;default:return t}}function mt(e,t,n,r,i,s){let o=class extends Q{constructor(){super(e,n,i),this.$$p_d=t}static get observedAttributes(){return Object.keys(t).map(c=>(t[c].attribute||c).toLowerCase())}};return Object.keys(t).forEach(c=>{Object.defineProperty(o.prototype,c,{get(){return this.$$c&&c in this.$$c?this.$$c[c]:this.$$d[c]},set(f){var u;f=j(c,f,t),this.$$d[c]=f,(u=this.$$c)==null||u.$set({[c]:f})}})}),r.forEach(c=>{Object.defineProperty(o.prototype,c,{get(){var f;return(f=this.$$c)==null?void 0:f[c]}})}),s&&(o=s(o)),e.element=o,o}class U{constructor(){h(this,"$$"),h(this,"$$set")}$destroy(){G(this,1),this.$destroy=d}$on(t,n){if(!T(n))return d;const r=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return r.push(n),()=>{const i=r.indexOf(n);i!==-1&&r.splice(i,1)}}$set(t){this.$$set&&!Z(t)&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}}const bt="4";typeof window<"u"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(bt);function V(e){let t,n;return{c(){t=O("desc"),n=x(e[7])},m(r,i){w(r,t,i),p(t,n)},p(r,i){i&128&&q(n,r[7])},d(r){r&&m(t)}}}function W(e){let t,n;return{c(){t=O("title"),n=x(e[6])},m(r,i){w(r,t,i),p(t,n)},p(r,i){i&64&&q(n,r[6])},d(r){r&&m(t)}}}function gt(e){let t,n,r,i=e[7]&&V(e),s=e[6]&&W(e);return{c(){t=O("svg"),i&&i.c(),n=it(),s&&s.c(),r=O("path"),a(r,"d","M8 9H16L12 16"),a(r,"fill",e[2]),a(t,"viewBox",e[3]),a(t,"width",e[0]),a(t,"height",e[1]),a(t,"class",e[8]),a(t,"aria-label",e[4]),a(t,"aria-hidden",e[5])},m(o,c){w(o,t,c),i&&i.m(t,null),p(t,n),s&&s.m(t,null),p(t,r)},p(o,[c]){o[7]?i?i.p(o,c):(i=V(o),i.c(),i.m(t,n)):i&&(i.d(1),i=null),o[6]?s?s.p(o,c):(s=W(o),s.c(),s.m(t,r)):s&&(s.d(1),s=null),c&4&&a(r,"fill",o[2]),c&8&&a(t,"viewBox",o[3]),c&1&&a(t,"width",o[0]),c&2&&a(t,"height",o[1]),c&256&&a(t,"class",o[8]),c&16&&a(t,"aria-label",o[4]),c&32&&a(t,"aria-hidden",o[5])},i:d,o:d,d(o){o&&m(t),i&&i.d(),s&&s.d()}}}function yt(e,t,n){let{size:r="1em"}=t,{width:i=r}=t,{height:s=r}=t,{color:o="currentColor"}=t,{viewBox:c="0 0 24 24"}=t,{ariaLabel:f=void 0}=t,{ariaHidden:u=void 0}=t,{title:_=void 0}=t,{desc:l=void 0}=t,{class:v=void 0}=t;return e.$$set=$=>{"size"in $&&n(9,r=$.size),"width"in $&&n(0,i=$.width),"height"in $&&n(1,s=$.height),"color"in $&&n(2,o=$.color),"viewBox"in $&&n(3,c=$.viewBox),"ariaLabel"in $&&n(4,f=$.ariaLabel),"ariaHidden"in $&&n(5,u=$.ariaHidden),"title"in $&&n(6,_=$.title),"desc"in $&&n(7,l=$.desc),"class"in $&&n(8,v=$.class)},[i,s,o,c,f,u,_,l,v,r]}class _t extends U{constructor(t){super(),K(this,t,yt,gt,R,{size:9,width:0,height:1,color:2,viewBox:3,ariaLabel:4,ariaHidden:5,title:6,desc:7,class:8})}}function vt(e,t,n){return n===50?"0 0 0 0":e>t?n>90?`0 ${n-37+1.55*(n-51)}px 0 0`:`0 ${n-37+1.6*(n-51)}px 0 0`:n<10?`0 0 0 ${100-n-37+1.6*(100-n-51)}px`:`0 0 0 ${100-n-37+1.7*(100-n-51)}px`}function wt(e,t,n){return n===50?"0 0 0 0":e>t?n>90?`0 0 0 ${n-37+4+1.55*(n-51)}px`:`0 0 0 ${n-37+4+1.6*(n-51)}px`:n<10?`0 ${100-n-37+4+1.6*(100-n-51)}px 0 0`:`0 ${100-n-37+4+1.7*(100-n-51)}px 0 0`}function xt(e,t,n){return n===50?"0 0 0 0":e>t?"0 6px 6px 0":"6px 0 0 6px"}function Et(e,t,n){if(n===50)return"-1030%";if(e>t){if(n>50&&n<55)return`${-270+(n-51)*30}%`;if(n>=55&&n<60)return`${-170+(n-55)*10}%`;if(n>=60&&n<65)return`${-120+(n-60)*8}%`;if(n>=65&&n<70)return`${-90+(n-65+2)*2}%`;if(n>=70&&n<75)return`${-70+(n-70)*2}%`;if(n>=75&&n<80)return`${-60+(n-75)*2}%`;if(n>=80&&n<85)return`${-52+(n-80-1)*2}%`;if(n>=85&&n<90)return`${-48+(n-85)*2}%`;if(n>=90&&n<95)return"-40%";if(n>=95)return`${-38+(n-95-1)}%`}else{if(n>=0&&n<=5)return`${61+(100-n-95)*1.1}%`;if(n>5&&n<=10)return"60%";if(n>10&&n<=15)return`${54+(100-n-85)*1.4}%`;if(n>15&&n<=20)return`${48+(100-n-80)*1.7}%`;if(n>20&&n<=25)return`${40+(100-n-75)*2}%`;if(n>25&&n<=30)return`${28+(100-n-70)*3}%`;if(n>30&&n<=35)return`${10+(100-n-65)*4}%`;if(n>35&&n<=40)return`${-20+(100-n-60)*8}%`;if(n>40&&n<=45)return`${-70+(100-n-55)*12}%`;if(n>45)return`${-170+(100-n-51)*30}%`}}function kt(e){switch(e.toString().split("").pop()){case"1":return"st";case"2":return"nd";case"3":return"rd";default:return"th"}}export{U as S,_t as T,tt as a,rt as b,mt as c,kt as d,N as e,S as f,dt as g,a as h,K as i,ot as j,w as k,p as l,F as m,d as n,I as o,ht as p,m as q,G as r,R as s,x as t,Et as u,vt as v,wt as w,xt as x};
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.2.0",
4
+ "version": "1.3.0",
5
5
  "type": "module",
6
6
  "main": "dist/lib/@glycanage/web-components.js",
7
7
  "scripts": {
@@ -55,5 +55,9 @@
55
55
  },
56
56
  "engines": {
57
57
  "node": ">=16.14"
58
+ },
59
+ "dependencies": {
60
+ "svelte-icons": "^2.1.0",
61
+ "svelte-material-icons": "^3.0.5"
58
62
  }
59
63
  }