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