@glycanage/web-components 1.70.0 → 1.72.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/helpers.js +1 -1
- package/dist/index-graph.wc.js +1 -0
- package/dist/index.js +1 -1
- package/dist/median-graph.wc.js +1 -0
- package/package.json +1 -1
- package/dist/shield-graph.wc.js +0 -1
package/dist/helpers.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
let t={BIOLOGICAL_AGE:"Biological age",GLYCAN:"Glycan",PEAK:"Peak",LOWER_THAN_AVERAGE:"Lower than average",AROUND_AVERAGE:"Around average",HIGHER_THAN_AVERAGE:"Higher than average",SOME_OVERLAP_LONG:"Some overlap",MINOR_OVERLAP_LONG:"Minor overlap",NO_OVERLAP_LONG:"No significant overlap",SOME_OVERLAP:"Some overlap",MINOR_OVERLAP:"Minor overlap",NO_OVERLAP:"No significant overlap",OVERLAP_TEXT:"of glycan indexes between your patient and this condition.",SYMPTOMS:"Signs and symptoms",SYMPTOM_ONE:"Usually asymptomatic",SYMPTOM_TWO:"BP consistently >140/90 mmHg",SYMPTOM_THREE:"Signs of malignant hypertension (headache, dizziness, breathlessness, etc.)",SYMPTOM_FOUR:"Signs of coronary artery disease (e.g., self-resolving chest pain, breathlessness)",SYMPTOM_FIVE:"Signs of peripheral artery disease (e.g., leg pain during activity)",SYMPTOM_SIX:"Self-limiting chest pain \xB1 radiation into jaw/left arm/back",SYMPTOM_SEVEN:"Breathlessness",SYMPTOM_EIGHT:"Other (syncope, palpitations, leg edema, orthopnea, etc.)",SYMPTOM_NINE:"Abdominal pain and cramping/left arm/back",SYMPTOM_TEN:"Recurring diarrhea (\xB1 blood)",SYMPTOM_ELEVEN:"Weight loss",SYMPTOM_TWELVE:"Systemic (e.g., fatigue, weight loss, mouth ulcers, butterfly skin rash)",SYMPTOM_THIRTEEN:"Organ-specific (chest pain, difficulty breathing, leg swelling, anaemia, etc.)",SYMPTOM_FOURTEEN:"Joint pain and swelling",SYMPTOM_FIFTEEN:"Fatigue",SYMPTOM_SIXTEEN:"Increased thirst and frequent urination",SYMPTOM_SEVENTEEN:"Slow wound healing, blurred vision, frequent thrush",SYMPTOM_EIGHTEEN:"Difficulty breathing",SYMPTOM_NINETEEN:"Chronic cough (\xB1 productive)",SYMPTOM_TWENTY:"Irregular menstrual cycle",SYMPTOM_TWENTYONE:"Vasomotor symptoms (e.g., hot flushes)",SYMPTOM_TWENTYTWO:"Other (e.g., mood swings, cognitive difficulties, sleep disturbance)",SYMPTOM_TWENTYTHREE:"Joint pain, swelling, stiffness and erythema",SYMPTOM_TWENTYFOUR:"Smaller and distant joint involvement (fingers, toes), usually symmetrical",SYMPTOM_TWENTYFIVE:"Systemic (fatigue, weight loss, etc.)",POSSIBLE_FOLLOW_UP:"Possible follow-up",POSSIBLE_FOLLOW_UP_ONE:"Serial blood pressure (BP) measurements \xC2\xB1 24-hour BP monitoring",POSSIBLE_FOLLOW_UP_TWO:"BMI and/or body composition check",POSSIBLE_FOLLOW_UP_THREE:"Basic bloods (lipid profile, renal and liver function)",POSSIBLE_FOLLOW_UP_FOUR:"Blood tests: basic and extended lipid profile (e.g., Lp(a), ApoB), hsCRP, homocysteine, renal and liver function, HbA1c",POSSIBLE_FOLLOW_UP_FIVE:"BP check",POSSIBLE_FOLLOW_UP_SIX:"ECG",POSSIBLE_FOLLOW_UP_SEVEN:"CardiologyBlood pressure check referral for other tests (e.g., cardiac echo, coronary CT)",POSSIBLE_FOLLOW_UP_EIGHT:"Blood tests: full blood count, renal and liver function, CRP",POSSIBLE_FOLLOW_UP_NINE:"Stool tests: faecal immunochemical test (FIT), faecal calprotectin",POSSIBLE_FOLLOW_UP_TEN:"Referral for CT colonoscopy",POSSIBLE_FOLLOW_UP_ELEVEN:"Blood tests: full blood count, renal and liver function, CRP, ESR, autoantibodies (e.g., ANA, anti-dsDNA)",POSSIBLE_FOLLOW_UP_TWELVE:"Urinalysis",POSSIBLE_FOLLOW_UP_THIRTEEN:"Organ-targeted imaging (e.g., CT thorax, CT abdomen)",POSSIBLE_FOLLOW_UP_FOURTEEN:"Blood tests: full blood count, renal and liver function, fasting glucose and insulin, HbA1c, HOMA-IR",POSSIBLE_FOLLOW_UP_FIFTEEN:"Lipid profile blood tests: basic and extended (incl. oxLDL, VLDL, LDL-P, Lp-PLA2, Lp(a), ApoB))",POSSIBLE_FOLLOW_UP_SIXTEEN:"Other blood tests hsCRP, homocysteine, renal and liver function, HbA1c",POSSIBLE_FOLLOW_UP_SEVENTEEN:"Blood tests: full blood count",POSSIBLE_FOLLOW_UP_EIGHTEEN:"Spirometry",POSSIBLE_FOLLOW_UP_NINETEEN:"ECG, chest X-ray",POSSIBLE_FOLLOW_UP_TWENTY:"Blood tests (incl. FSH, oestradiol, progesterone, testosterone, AMH)",POSSIBLE_FOLLOW_UP_TWENTYONE:"Referral to (peri)menopause specialist",POSSIBLE_FOLLOW_UP_TWENTYTWO:"Blood tests: full blood count, rheumatoid factor, anti-CCP antibodies, CRP",POSSIBLE_FOLLOW_UP_TWENTYTHREE:"Joint imaging (X-rays, MRI)",RISK_FACTORS:"Risk factors",RISK_FACTOR_ONE:"Past medical history (cardiometabolic syndrome, autoimmune disease)",RISK_FACTOR_TWO:"Medication history (e.g., statins, blood thinners)",RISK_FACTOR_THREE:"Current/previous smoking history",RELATED_RESEARCH_PAPERS:"Related research papers"},O={BIOLOGICAL_AGE:"Wiek biologiczny",GLYCAN:"Glikan",PEAK:"Pik",LOWER_THAN_AVERAGE:"ni\u017Cszy od warto\u015Bci \u015Bredniej",AROUND_AVERAGE:"W okolicach warto\u015Bci \u015Bredniej",HIGHER_THAN_AVERAGE:"wy\u017Cszy od warto\u015Bci \u015Bredniej",SOME_OVERLAP_LONG:"Znaczny stopie\u0144 pokrywania si\u0119",MINOR_OVERLAP_LONG:"Nieznaczne stopie\u0144 pokrywania si\u0119",NO_OVERLAP_LONG:"Brak znacz\u0105cego pokrywania si\u0119",SOME_OVERLAP:"Cz\u0119\u015Bciowy",MINOR_OVERLAP:"Niewielki",NO_OVERLAP:"Brak",OVERLAP_TEXT:"indeks\xF3w glikanowych mi\u0119dzy pacjentem a badanymi z tym schorzeniem.",SYMPTOMS:"Sygna\u0142y i objawy",SYMPTOM_ONE:"Przewa\u017Cnie przebiega w spos\xF3b bezobjawowy",SYMPTOM_TWO:"Ci\u015Bnienie t\u0119tnicze stale >140/90 mmHg",SYMPTOM_THREE:"Objawy nadci\u015Bnienia z\u0142o\u015Bliwego (b\xF3l g\u0142owy, zawroty g\u0142owy, duszno\u015B\u0107 itp.)",SYMPTOM_FOUR:"Objawy choroby wie\u0144cowej (np. samoistnie ust\u0119puj\u0105cy b\xF3l w klatce piersiowej, bezdech)",SYMPTOM_FIVE:"Objawy choroby t\u0119tnic obwodowych (np. b\xF3l n\xF3g podczas aktywno\u015Bci)",SYMPTOM_SIX:"Samoograniczaj\u0105cy si\u0119 b\xF3l w klatce piersiowej \xB1 promieniuj\u0105cy do szcz\u0119ki/lewego ramienia/plec\xF3w",SYMPTOM_SEVEN:"Duszno\u015B\u0107",SYMPTOM_EIGHT:"Inne (omdlenia, ko\u0142atanie serca, obrz\u0119k n\xF3g, orhhopnoe itp.)",SYMPTOM_NINE:"B\xF3l brzucha i skurcze",SYMPTOM_TEN:"Nawracaj\u0105ca biegunka (\xB1 krew)",SYMPTOM_ELEVEN:"Utrata masy cia\u0142a",SYMPTOM_TWELVE:"Og\xF3lnoustrojowe (np. zm\u0119czenie, utrata masy cia\u0142a, owrzodzenia jamy ustnej, wysypka w kszta\u0142cie motyla w okolicy policzk\xF3w i nosa)",SYMPTOM_THIRTEEN:"Narz\u0105dowe (b\xF3l w klatce piersiowej, trudno\u015Bci w oddychaniu, obrz\u0119k n\xF3g, niedokrwisto\u015B\u0107 itp.)",SYMPTOM_FOURTEEN:"B\xF3l i obrz\u0119k staw\xF3w",SYMPTOM_FIFTEEN:"Zm\u0119czenie",SYMPTOM_SIXTEEN:"Zwi\u0119kszone pragnienie i cz\u0119ste oddawanie moczu",SYMPTOM_SEVENTEEN:"Powolne gojenie si\u0119 ran, niewyra\u017Ane widzenie, cz\u0119ste ple\u015Bniawki",SYMPTOM_EIGHTEEN:"Trudno\u015Bci w oddychaniu",SYMPTOM_NINETEEN:"Przewlek\u0142y kaszel (\xB1 produktywny)",SYMPTOM_TWENTY:"Nieregularny cykl menstruacyjny",SYMPTOM_TWENTYONE:"Objawy naczynioruchowe (np. uderzenia gor\u0105ca)",SYMPTOM_TWENTYTWO:"Inne (np. wahania nastroju, trudno\u015Bci poznawcze, zaburzenia snu)",SYMPTOM_TWENTYTHREE:"Joint pain, swelling, stiffness and erythema",SYMPTOM_TWENTYFOUR:"Smaller and distant joint involvement (fingers, toes), usually symmetrical",SYMPTOM_TWENTYFIVE:"Systemic (fatigue, weight loss, etc.)",POSSIBLE_FOLLOW_UP:"Ewentualne dalsze dzia\u0142ania",POSSIBLE_FOLLOW_UP_ONE:"Seryjne pomiary ci\u015Bnienia t\u0119tniczego i/lub 24-godzinne monitorowanie ci\u015Bnienia t\u0119tniczego",POSSIBLE_FOLLOW_UP_TWO:"BMI i/lub kontrola sk\u0142adu cia\u0142a",POSSIBLE_FOLLOW_UP_THREE:"Podstawowe badania krwi (profil lipidowy, czynno\u015B\u0107 nerek i w\u0105troby)",POSSIBLE_FOLLOW_UP_FOUR:"Badania krwi: podstawowy i rozszerzony profil lipidowy (np. Lp(a), ApoB), hsCRP, homocysteina, czynno\u015B\u0107 nerek i w\u0105troby, HbA1c",POSSIBLE_FOLLOW_UP_FIVE:"Kontrola ci\u015Bnienia t\u0119tniczego",POSSIBLE_FOLLOW_UP_SIX:"EKG",POSSIBLE_FOLLOW_UP_SEVEN:"Skierowanie do kardiologa na inne badania (np. echo serca, TK naczy\u0144 wie\u0144cowych)",POSSIBLE_FOLLOW_UP_EIGHT:"Badania krwi: pe\u0142na morfologia krwi, czynno\u015B\u0107 nerek i w\u0105troby, CRP",POSSIBLE_FOLLOW_UP_NINE:"Badania ka\u0142u: test na obecno\u015B\u0107 krwi utajonej (FIT), kalprotektyna w kale",POSSIBLE_FOLLOW_UP_TEN:"Skierowanie na kolonoskopi\u0119, TK",POSSIBLE_FOLLOW_UP_ELEVEN:"Badania krwi: pe\u0142na morfologia krwi, czynno\u015B\u0107 nerek i w\u0105troby, CRP, OB, autoprzeciwcia\u0142a (np. ANA, w tym anty-dsDNA).",POSSIBLE_FOLLOW_UP_TWELVE:"Badanie og\xF3lne moczu",POSSIBLE_FOLLOW_UP_THIRTEEN:"Badania obrazowe ukierunkowane na narz\u0105dy (np. TK klatki piersiowej, TK jamy brzusznej)",POSSIBLE_FOLLOW_UP_FOURTEEN:"Badania krwi: pe\u0142na morfologia krwi, czynno\u015B\u0107 nerek i w\u0105troby, st\u0119\u017Cenie glukozy i insuliny na czczo, HbA1c, HOMA-IR",POSSIBLE_FOLLOW_UP_FIFTEEN:"Badania profilu lipidowego krwi: podstawowe i rozszerzone (np. oxLDL, Lp(a), ApoB))",POSSIBLE_FOLLOW_UP_SIXTEEN:"Inne badania krwi hsCRP, homocysteina, czynno\u015B\u0107 nerek i w\u0105troby, HbA1c",POSSIBLE_FOLLOW_UP_SEVENTEEN:"Badania krwi: pe\u0142na morfologia krwi",POSSIBLE_FOLLOW_UP_EIGHTEEN:"Spirometria",POSSIBLE_FOLLOW_UP_NINETEEN:"EKG, RTG klatki piersiowej",POSSIBLE_FOLLOW_UP_TWENTY:"Badania krwi (w tym FSH, estradiol, progesteron, testosteron, AMH)",POSSIBLE_FOLLOW_UP_TWENTYONE:"Skierowanie do specjalisty/ginekologa zajmuj\u0105cego si\u0119 (peri)menopauz\u0105",POSSIBLE_FOLLOW_UP_TWENTYTWO:"Badania krwi: pe\u0142na morfologia krwi, czynnik reumatoidalny, przeciwcia\u0142a anty-CCP, CRP",POSSIBLE_FOLLOW_UP_TWENTYTHREE:"Obrazowanie staw\xF3w (zdj\u0119cia rentgenowskie, rezonans magnetyczny)",RISK_FACTORS:"Czynniki ryzyka",RISK_FACTOR_ONE:"Historia chor\xF3b (np. zesp\xF3\u0142 kardiometaboliczny, choroby autoimmunologiczne)",RISK_FACTOR_TWO:"Historia przyjmowania lek\xF3w (np. statyn, lek\xF3w przeciwzakrzepowych)",RISK_FACTOR_THREE:"Palenie tytoniu",RELATED_RESEARCH_PAPERS:"Publikacje naukowe"};function _(e){if(e===11||e===12||e===13)return"th";switch(e.toString().split("").pop()){case"1":return"st";case"2":return"nd";case"3":return"rd";default:return"th"}}function l(e,n="english"){const a={english:t,polish:O};if(e<32)return a[n].LOWER_THAN_AVERAGE;if(e>=32&&e<=68)return a[n].AROUND_AVERAGE;if(e>68)return a[n].HIGHER_THAN_AVERAGE}function S(e="english",n){return{english:t,polish:O}[e][n]}function E(e,n,a,i,o){const r=(e-n)*(o-i)/(a-n)+i;return r<i?i:r>o?o:r}function s(e,n,a,i){return i===n?50:i===e?9.5:i===a?90.5:i<e?5:i>a?95:i>e&&i<n?E(i,e,n,10,50):i>n&&i<a?E(i,n,a,50,90):0}function c(e,n,a,i){const o=s(e,n,a,i);if(o<23)return"#DF2120";if(o>=23&&o<=36)return"#F2800D";if(o>36&&o<64)return"#66CCAA";if(o>=64&&o<=77)return"#13A195";if(o>77)return"#015566"}export{S as a,c as b,s as c,l as g,_ as s};
|
|
1
|
+
let O={BIOLOGICAL_AGE:"Biological age",GLYCAN:"Glycan",PEAK:"Peak",LOWER_THAN_AVERAGE:"Lower than average",AROUND_AVERAGE:"Around average",HIGHER_THAN_AVERAGE:"Higher than average",SOME_OVERLAP_LONG:"Some overlap",MINOR_OVERLAP_LONG:"Minor overlap",NO_OVERLAP_LONG:"No significant overlap",SOME_OVERLAP:"Some overlap",MINOR_OVERLAP:"Minor overlap",NO_OVERLAP:"No significant overlap",OVERLAP_TEXT:"of glycan indexes between your patient and this condition.",SYMPTOMS:"Signs and symptoms",SYMPTOM_ONE:"Usually asymptomatic",SYMPTOM_TWO:"BP consistently >140/90 mmHg",SYMPTOM_THREE:"Signs of malignant hypertension (headache, dizziness, breathlessness, etc.)",SYMPTOM_FOUR:"Signs of coronary artery disease (e.g., self-resolving chest pain, breathlessness)",SYMPTOM_FIVE:"Signs of peripheral artery disease (e.g., leg pain during activity)",SYMPTOM_SIX:"Self-limiting chest pain \xB1 radiation into jaw/left arm/back",SYMPTOM_SEVEN:"Breathlessness",SYMPTOM_EIGHT:"Other (syncope, palpitations, leg edema, orthopnea, etc.)",SYMPTOM_NINE:"Abdominal pain and cramping/left arm/back",SYMPTOM_TEN:"Recurring diarrhea (\xB1 blood)",SYMPTOM_ELEVEN:"Weight loss",SYMPTOM_TWELVE:"Systemic (e.g., fatigue, weight loss, mouth ulcers, butterfly skin rash)",SYMPTOM_THIRTEEN:"Organ-specific (chest pain, difficulty breathing, leg swelling, anaemia, etc.)",SYMPTOM_FOURTEEN:"Joint pain and swelling",SYMPTOM_FIFTEEN:"Fatigue",SYMPTOM_SIXTEEN:"Increased thirst and frequent urination",SYMPTOM_SEVENTEEN:"Slow wound healing, blurred vision, frequent thrush",SYMPTOM_EIGHTEEN:"Difficulty breathing",SYMPTOM_NINETEEN:"Chronic cough (\xB1 productive)",SYMPTOM_TWENTY:"Irregular menstrual cycle",SYMPTOM_TWENTYONE:"Vasomotor symptoms (e.g., hot flushes)",SYMPTOM_TWENTYTWO:"Other (e.g., mood swings, cognitive difficulties, sleep disturbance)",SYMPTOM_TWENTYTHREE:"Joint pain, swelling, stiffness and erythema",SYMPTOM_TWENTYFOUR:"Smaller and distant joint involvement (fingers, toes), usually symmetrical",SYMPTOM_TWENTYFIVE:"Systemic (fatigue, weight loss, etc.)",POSSIBLE_FOLLOW_UP:"Possible follow-up",POSSIBLE_FOLLOW_UP_ONE:"Serial blood pressure (BP) measurements \xC2\xB1 24-hour BP monitoring",POSSIBLE_FOLLOW_UP_TWO:"BMI and/or body composition check",POSSIBLE_FOLLOW_UP_THREE:"Basic bloods (lipid profile, renal and liver function)",POSSIBLE_FOLLOW_UP_FOUR:"Blood tests: basic and extended lipid profile (e.g., Lp(a), ApoB), hsCRP, homocysteine, renal and liver function, HbA1c",POSSIBLE_FOLLOW_UP_FIVE:"BP check",POSSIBLE_FOLLOW_UP_SIX:"ECG",POSSIBLE_FOLLOW_UP_SEVEN:"CardiologyBlood pressure check referral for other tests (e.g., cardiac echo, coronary CT)",POSSIBLE_FOLLOW_UP_EIGHT:"Blood tests: full blood count, renal and liver function, CRP",POSSIBLE_FOLLOW_UP_NINE:"Stool tests: faecal immunochemical test (FIT), faecal calprotectin",POSSIBLE_FOLLOW_UP_TEN:"Referral for CT colonoscopy",POSSIBLE_FOLLOW_UP_ELEVEN:"Blood tests: full blood count, renal and liver function, CRP, ESR, autoantibodies (e.g., ANA, anti-dsDNA)",POSSIBLE_FOLLOW_UP_TWELVE:"Urinalysis",POSSIBLE_FOLLOW_UP_THIRTEEN:"Organ-targeted imaging (e.g., CT thorax, CT abdomen)",POSSIBLE_FOLLOW_UP_FOURTEEN:"Blood tests: full blood count, renal and liver function, fasting glucose and insulin, HbA1c, HOMA-IR",POSSIBLE_FOLLOW_UP_FIFTEEN:"Lipid profile blood tests: basic and extended (incl. oxLDL, VLDL, LDL-P, Lp-PLA2, Lp(a), ApoB))",POSSIBLE_FOLLOW_UP_SIXTEEN:"Other blood tests hsCRP, homocysteine, renal and liver function, HbA1c",POSSIBLE_FOLLOW_UP_SEVENTEEN:"Blood tests: full blood count",POSSIBLE_FOLLOW_UP_EIGHTEEN:"Spirometry",POSSIBLE_FOLLOW_UP_NINETEEN:"ECG, chest X-ray",POSSIBLE_FOLLOW_UP_TWENTY:"Blood tests (incl. FSH, oestradiol, progesterone, testosterone, AMH)",POSSIBLE_FOLLOW_UP_TWENTYONE:"Referral to (peri)menopause specialist",POSSIBLE_FOLLOW_UP_TWENTYTWO:"Blood tests: full blood count, rheumatoid factor, anti-CCP antibodies, CRP",POSSIBLE_FOLLOW_UP_TWENTYTHREE:"Joint imaging (X-rays, MRI)",RISK_FACTORS:"Risk factors",RISK_FACTOR_ONE:"Past medical history (cardiometabolic syndrome, autoimmune disease)",RISK_FACTOR_TWO:"Medication history (e.g., statins, blood thinners)",RISK_FACTOR_THREE:"Current/previous smoking history",RELATED_RESEARCH_PAPERS:"Related research papers"},E={BIOLOGICAL_AGE:"Wiek biologiczny",GLYCAN:"Glikan",PEAK:"Pik",LOWER_THAN_AVERAGE:"ni\u017Cszy od warto\u015Bci \u015Bredniej",AROUND_AVERAGE:"W okolicach warto\u015Bci \u015Bredniej",HIGHER_THAN_AVERAGE:"wy\u017Cszy od warto\u015Bci \u015Bredniej",SOME_OVERLAP_LONG:"Znaczny stopie\u0144 pokrywania si\u0119",MINOR_OVERLAP_LONG:"Nieznaczne stopie\u0144 pokrywania si\u0119",NO_OVERLAP_LONG:"Brak znacz\u0105cego pokrywania si\u0119",SOME_OVERLAP:"Cz\u0119\u015Bciowy",MINOR_OVERLAP:"Niewielki",NO_OVERLAP:"Brak",OVERLAP_TEXT:"indeks\xF3w glikanowych mi\u0119dzy pacjentem a badanymi z tym schorzeniem.",SYMPTOMS:"Sygna\u0142y i objawy",SYMPTOM_ONE:"Przewa\u017Cnie przebiega w spos\xF3b bezobjawowy",SYMPTOM_TWO:"Ci\u015Bnienie t\u0119tnicze stale >140/90 mmHg",SYMPTOM_THREE:"Objawy nadci\u015Bnienia z\u0142o\u015Bliwego (b\xF3l g\u0142owy, zawroty g\u0142owy, duszno\u015B\u0107 itp.)",SYMPTOM_FOUR:"Objawy choroby wie\u0144cowej (np. samoistnie ust\u0119puj\u0105cy b\xF3l w klatce piersiowej, bezdech)",SYMPTOM_FIVE:"Objawy choroby t\u0119tnic obwodowych (np. b\xF3l n\xF3g podczas aktywno\u015Bci)",SYMPTOM_SIX:"Samoograniczaj\u0105cy si\u0119 b\xF3l w klatce piersiowej \xB1 promieniuj\u0105cy do szcz\u0119ki/lewego ramienia/plec\xF3w",SYMPTOM_SEVEN:"Duszno\u015B\u0107",SYMPTOM_EIGHT:"Inne (omdlenia, ko\u0142atanie serca, obrz\u0119k n\xF3g, orhhopnoe itp.)",SYMPTOM_NINE:"B\xF3l brzucha i skurcze",SYMPTOM_TEN:"Nawracaj\u0105ca biegunka (\xB1 krew)",SYMPTOM_ELEVEN:"Utrata masy cia\u0142a",SYMPTOM_TWELVE:"Og\xF3lnoustrojowe (np. zm\u0119czenie, utrata masy cia\u0142a, owrzodzenia jamy ustnej, wysypka w kszta\u0142cie motyla w okolicy policzk\xF3w i nosa)",SYMPTOM_THIRTEEN:"Narz\u0105dowe (b\xF3l w klatce piersiowej, trudno\u015Bci w oddychaniu, obrz\u0119k n\xF3g, niedokrwisto\u015B\u0107 itp.)",SYMPTOM_FOURTEEN:"B\xF3l i obrz\u0119k staw\xF3w",SYMPTOM_FIFTEEN:"Zm\u0119czenie",SYMPTOM_SIXTEEN:"Zwi\u0119kszone pragnienie i cz\u0119ste oddawanie moczu",SYMPTOM_SEVENTEEN:"Powolne gojenie si\u0119 ran, niewyra\u017Ane widzenie, cz\u0119ste ple\u015Bniawki",SYMPTOM_EIGHTEEN:"Trudno\u015Bci w oddychaniu",SYMPTOM_NINETEEN:"Przewlek\u0142y kaszel (\xB1 produktywny)",SYMPTOM_TWENTY:"Nieregularny cykl menstruacyjny",SYMPTOM_TWENTYONE:"Objawy naczynioruchowe (np. uderzenia gor\u0105ca)",SYMPTOM_TWENTYTWO:"Inne (np. wahania nastroju, trudno\u015Bci poznawcze, zaburzenia snu)",SYMPTOM_TWENTYTHREE:"Joint pain, swelling, stiffness and erythema",SYMPTOM_TWENTYFOUR:"Smaller and distant joint involvement (fingers, toes), usually symmetrical",SYMPTOM_TWENTYFIVE:"Systemic (fatigue, weight loss, etc.)",POSSIBLE_FOLLOW_UP:"Ewentualne dalsze dzia\u0142ania",POSSIBLE_FOLLOW_UP_ONE:"Seryjne pomiary ci\u015Bnienia t\u0119tniczego i/lub 24-godzinne monitorowanie ci\u015Bnienia t\u0119tniczego",POSSIBLE_FOLLOW_UP_TWO:"BMI i/lub kontrola sk\u0142adu cia\u0142a",POSSIBLE_FOLLOW_UP_THREE:"Podstawowe badania krwi (profil lipidowy, czynno\u015B\u0107 nerek i w\u0105troby)",POSSIBLE_FOLLOW_UP_FOUR:"Badania krwi: podstawowy i rozszerzony profil lipidowy (np. Lp(a), ApoB), hsCRP, homocysteina, czynno\u015B\u0107 nerek i w\u0105troby, HbA1c",POSSIBLE_FOLLOW_UP_FIVE:"Kontrola ci\u015Bnienia t\u0119tniczego",POSSIBLE_FOLLOW_UP_SIX:"EKG",POSSIBLE_FOLLOW_UP_SEVEN:"Skierowanie do kardiologa na inne badania (np. echo serca, TK naczy\u0144 wie\u0144cowych)",POSSIBLE_FOLLOW_UP_EIGHT:"Badania krwi: pe\u0142na morfologia krwi, czynno\u015B\u0107 nerek i w\u0105troby, CRP",POSSIBLE_FOLLOW_UP_NINE:"Badania ka\u0142u: test na obecno\u015B\u0107 krwi utajonej (FIT), kalprotektyna w kale",POSSIBLE_FOLLOW_UP_TEN:"Skierowanie na kolonoskopi\u0119, TK",POSSIBLE_FOLLOW_UP_ELEVEN:"Badania krwi: pe\u0142na morfologia krwi, czynno\u015B\u0107 nerek i w\u0105troby, CRP, OB, autoprzeciwcia\u0142a (np. ANA, w tym anty-dsDNA).",POSSIBLE_FOLLOW_UP_TWELVE:"Badanie og\xF3lne moczu",POSSIBLE_FOLLOW_UP_THIRTEEN:"Badania obrazowe ukierunkowane na narz\u0105dy (np. TK klatki piersiowej, TK jamy brzusznej)",POSSIBLE_FOLLOW_UP_FOURTEEN:"Badania krwi: pe\u0142na morfologia krwi, czynno\u015B\u0107 nerek i w\u0105troby, st\u0119\u017Cenie glukozy i insuliny na czczo, HbA1c, HOMA-IR",POSSIBLE_FOLLOW_UP_FIFTEEN:"Badania profilu lipidowego krwi: podstawowe i rozszerzone (np. oxLDL, Lp(a), ApoB))",POSSIBLE_FOLLOW_UP_SIXTEEN:"Inne badania krwi hsCRP, homocysteina, czynno\u015B\u0107 nerek i w\u0105troby, HbA1c",POSSIBLE_FOLLOW_UP_SEVENTEEN:"Badania krwi: pe\u0142na morfologia krwi",POSSIBLE_FOLLOW_UP_EIGHTEEN:"Spirometria",POSSIBLE_FOLLOW_UP_NINETEEN:"EKG, RTG klatki piersiowej",POSSIBLE_FOLLOW_UP_TWENTY:"Badania krwi (w tym FSH, estradiol, progesteron, testosteron, AMH)",POSSIBLE_FOLLOW_UP_TWENTYONE:"Skierowanie do specjalisty/ginekologa zajmuj\u0105cego si\u0119 (peri)menopauz\u0105",POSSIBLE_FOLLOW_UP_TWENTYTWO:"Badania krwi: pe\u0142na morfologia krwi, czynnik reumatoidalny, przeciwcia\u0142a anty-CCP, CRP",POSSIBLE_FOLLOW_UP_TWENTYTHREE:"Obrazowanie staw\xF3w (zdj\u0119cia rentgenowskie, rezonans magnetyczny)",RISK_FACTORS:"Czynniki ryzyka",RISK_FACTOR_ONE:"Historia chor\xF3b (np. zesp\xF3\u0142 kardiometaboliczny, choroby autoimmunologiczne)",RISK_FACTOR_TWO:"Historia przyjmowania lek\xF3w (np. statyn, lek\xF3w przeciwzakrzepowych)",RISK_FACTOR_THREE:"Palenie tytoniu",RELATED_RESEARCH_PAPERS:"Publikacje naukowe"};function _(i){if(i===11||i===12||i===13)return"th";switch(i.toString().split("").pop()){case"1":return"st";case"2":return"nd";case"3":return"rd";default:return"th"}}function c(i,a="english"){const o={english:O,polish:E};if(i<32)return o[a].LOWER_THAN_AVERAGE;if(i>=32&&i<=68)return o[a].AROUND_AVERAGE;if(i>68)return o[a].HIGHER_THAN_AVERAGE}function l(i="english",a){return{english:O,polish:E}[i][a]}function s(i,a,o,n,e){const t=(i-a)*(e-n)/(o-a)+n;return t<n?n:t>e?e:t}function r(i,a,o,n){return n===a?50:n===i?9.5:n===o?90.5:n<i?5:n>o?95:n>i&&n<a?s(n,i,a,10,50):n>a&&n<o?s(n,a,o,50,90):0}function S(i,a,o,n){const e=r(i,a,o,n);if(e<23)return"#DF2120";if(e>=23&&e<=36)return"#F2800D";if(e>36&&e<64)return"#66CCAA";if(e>=64&&e<=77)return"#13A195";if(e>77)return"#015566"}function L(i,a,o,n){const e=r(i,a,o,n);if(e<23)return"#015566";if(e>=23&&e<=36)return"#13A195";if(e>36&&e<64)return"#66CCAA";if(e>=64&&e<=77)return"#F2800D";if(e>77)return"#DF2120"}function P(i,a,o,n){const e=r(i,a,o,n);if(console.log("position:",e),e<9.5)return"#DF2120";if(e>=9.5&&e<=23)return"#F2800D";if(e>23&&e<37)return"#13A195";if(e>=37&&e<=63)return"#66CCAA";if(e>63&&e<77)return"#13A195";if(e>=77&&e<=90.5)return"#F2800D";if(e>90.5)return"#DF2120"}export{l as a,S as b,r as c,L as d,P as e,c as g,_ as s};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{c as ue,S as be,i as we,f as te,s as Be,a as ye,d as ke,g as x,u as fe,k as f,o as Ce,e as o,b as d,m as Z,v as F,n as g,p as e,q as s,r as z}from"./index2.js";import{s as ve,c as me,b as de,d as ge}from"./helpers.js";function Ne(n){ye(n,"svelte-1axi4lf",".parent.svelte-1axi4lf{display:flex;width:100%;height:10px;position:relative;font-family:'Sen', 'Noto Sans JP', sans-serif}.slider.svelte-1axi4lf{display:flex;flex-direction:column;align-items:center;position:absolute;transform:translate(-50%, -110%);width:24%;max-height:70px}.bottom-triangle.svelte-1axi4lf{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-1axi4lf{position:absolute;top:4rem;width:70%;height:3rem;transform:translate(-50%, 0%);left:50%;max-height:40px;display:flex;align-items:center;justify-content:center;font-size:1.1rem;gap:.25rem;color:#36614B}.colored-percentile.svelte-1axi4lf{height:90%;width:28%;min-width:145px;color:white;display:flex;align-items:center;justify-content:center;border-radius:8px}.colorBox.svelte-1axi4lf{width:14%;border-radius:24px;margin-left:0.2%;margin-right:0.2%}.colorBoxShort.svelte-1axi4lf{width:10%;border-radius:24px}.rotateImg.svelte-1axi4lf{transform:rotate(180deg)}p.svelte-1axi4lf{margin:0}")}function pe(n){let r,t,i,h,B,a,b,y,w,p,u,N,m,k,C,l,c,T,Y,re,D,$,I,se,H,K,O,le,M,L,R,ie,Q,U,V,oe,G,q,ae,j,_,W,X,E=ve(n[5])+"",ee,ce,ne,J;function xe(v,S){return v[0]==="shield"||v[0]==="youth"?$e:Se}let P=xe(n),A=P(n);return{c(){r=o("div"),A.c(),t=d(),i=o("div"),h=o("p"),h.textContent="Your result",B=d(),a=o("p"),b=o("b"),y=Z(n[4]),w=d(),p=F("svg"),u=F("path"),N=d(),m=o("div"),k=F("svg"),C=F("path"),l=d(),c=o("div"),T=o("b"),Y=Z(n[1]),re=d(),D=o("div"),$=F("svg"),I=F("path"),se=d(),H=o("div"),K=o("b"),O=Z(n[2]),le=d(),M=o("div"),L=F("svg"),R=F("path"),ie=d(),Q=o("div"),U=o("b"),V=Z(n[3]),oe=d(),G=o("div"),q=o("p"),q.textContent="This result ranks you in the",ae=d(),j=o("div"),_=o("b"),W=Z(n[5]),X=o("sup"),ee=Z(E),ce=Z(" percentile"),ne=d(),J=o("p"),J.textContent="*",g(h,"font-size","1rem"),e(h,"class","svelte-1axi4lf"),g(a,"font-size","1.2rem"),e(a,"class","svelte-1axi4lf"),e(u,"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(u,"fill","#09371F"),e(p,"class","rotateImg svelte-1axi4lf"),e(p,"width","14%"),e(p,"height","14%"),e(p,"viewBox","0 0 42 37"),e(p,"fill","none"),e(p,"xmlns","http://www.w3.org/2000/svg"),e(i,"class","slider svelte-1axi4lf"),g(i,"left",me(n[1],n[2],n[3],n[4])+"%"),e(C,"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(C,"fill","#6B8779"),e(k,"width","30%"),e(k,"height","30%"),e(k,"viewBox","0 0 42 37"),e(k,"fill","none"),e(k,"xmlns","http://www.w3.org/2000/svg"),e(m,"class","bottom-triangle svelte-1axi4lf"),g(m,"left","9.5%"),e(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"),e(I,"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(D,"class","bottom-triangle svelte-1axi4lf"),g(D,"left","50%"),e(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"),e(R,"fill","#6B8779"),e(L,"width","30%"),e(L,"height","30%"),e(L,"viewBox","0 0 42 37"),e(L,"fill","none"),e(L,"xmlns","http://www.w3.org/2000/svg"),e(M,"class","bottom-triangle svelte-1axi4lf"),g(M,"left","90.5%"),e(q,"class","svelte-1axi4lf"),e(j,"class","colored-percentile svelte-1axi4lf"),g(j,"background-color",n[0]==="shield"||n[0]==="youth"?de(n[1],n[2],n[3],n[4]):ge(n[1],n[2],n[3],n[4])),e(J,"class","svelte-1axi4lf"),e(G,"class","message svelte-1axi4lf"),e(r,"class","parent svelte-1axi4lf")},m(v,S){x(v,r,S),A.m(r,null),s(r,t),s(r,i),s(i,h),s(i,B),s(i,a),s(a,b),s(b,y),s(i,w),s(i,p),s(p,u),s(r,N),s(r,m),s(m,k),s(k,C),s(m,l),s(m,c),s(c,T),s(T,Y),s(r,re),s(r,D),s(D,$),s($,I),s(D,se),s(D,H),s(H,K),s(K,O),s(r,le),s(r,M),s(M,L),s(L,R),s(M,ie),s(M,Q),s(Q,U),s(U,V),s(r,oe),s(r,G),s(G,q),s(G,ae),s(G,j),s(j,_),s(_,W),s(_,X),s(X,ee),s(_,ce),s(G,ne),s(G,J)},p(v,S){P!==(P=xe(v))&&(A.d(1),A=P(v),A&&(A.c(),A.m(r,t))),S&16&&z(y,v[4]),S&30&&g(i,"left",me(v[1],v[2],v[3],v[4])+"%"),S&2&&z(Y,v[1]),S&4&&z(O,v[2]),S&8&&z(V,v[3]),S&32&&z(W,v[5]),S&32&&E!==(E=ve(v[5])+"")&&z(ee,E),S&31&&g(j,"background-color",v[0]==="shield"||v[0]==="youth"?de(v[1],v[2],v[3],v[4]):ge(v[1],v[2],v[3],v[4]))},d(v){v&&f(r),A.d()}}}function Se(n){let r,t,i,h,B,a,b,y,w,p,u,N,m,k,C;return{c(){r=o("div"),t=d(),i=o("div"),h=d(),B=o("div"),a=d(),b=o("div"),y=d(),w=o("div"),p=d(),u=o("div"),N=d(),m=o("div"),k=d(),C=o("div"),e(r,"class","colorBoxShort svelte-1axi4lf"),g(r,"background-color","#015566"),e(i,"class","colorBox svelte-1axi4lf"),g(i,"background-color","#015566"),e(B,"class","colorBox svelte-1axi4lf"),g(B,"background-color","#13A195"),e(b,"class","colorBox svelte-1axi4lf"),g(b,"background-color","#66CCAA"),e(w,"class","colorBox svelte-1axi4lf"),g(w,"background-color","#66CCAA"),e(u,"class","colorBox svelte-1axi4lf"),g(u,"background-color","#F2800D"),e(m,"class","colorBox svelte-1axi4lf"),g(m,"background-color","#DF2120"),e(C,"class","colorBoxShort svelte-1axi4lf"),g(C,"background-color","#DF2120")},m(l,c){x(l,r,c),x(l,t,c),x(l,i,c),x(l,h,c),x(l,B,c),x(l,a,c),x(l,b,c),x(l,y,c),x(l,w,c),x(l,p,c),x(l,u,c),x(l,N,c),x(l,m,c),x(l,k,c),x(l,C,c)},d(l){l&&(f(r),f(t),f(i),f(h),f(B),f(a),f(b),f(y),f(w),f(p),f(u),f(N),f(m),f(k),f(C))}}}function $e(n){let r,t,i,h,B,a,b,y,w,p,u,N,m,k,C;return{c(){r=o("div"),t=d(),i=o("div"),h=d(),B=o("div"),a=d(),b=o("div"),y=d(),w=o("div"),p=d(),u=o("div"),N=d(),m=o("div"),k=d(),C=o("div"),e(r,"class","colorBoxShort svelte-1axi4lf"),g(r,"background-color","#DF2120"),e(i,"class","colorBox svelte-1axi4lf"),g(i,"background-color","#DF2120"),e(B,"class","colorBox svelte-1axi4lf"),g(B,"background-color","#F2800D"),e(b,"class","colorBox svelte-1axi4lf"),g(b,"background-color","#66CCAA"),e(w,"class","colorBox svelte-1axi4lf"),g(w,"background-color","#66CCAA"),e(u,"class","colorBox svelte-1axi4lf"),g(u,"background-color","#13A195"),e(m,"class","colorBox svelte-1axi4lf"),g(m,"background-color","#015566"),e(C,"class","colorBoxShort svelte-1axi4lf"),g(C,"background-color","#015566")},m(l,c){x(l,r,c),x(l,t,c),x(l,i,c),x(l,h,c),x(l,B,c),x(l,a,c),x(l,b,c),x(l,y,c),x(l,w,c),x(l,p,c),x(l,u,c),x(l,N,c),x(l,m,c),x(l,k,c),x(l,C,c)},d(l){l&&(f(r),f(t),f(i),f(h),f(B),f(a),f(b),f(y),f(w),f(p),f(u),f(N),f(m),f(k),f(C))}}}function Le(n){let r,t=n[6]&&pe(n);return{c(){t&&t.c(),r=ke()},m(i,h){t&&t.m(i,h),x(i,r,h)},p(i,[h]){i[6]?t?t.p(i,h):(t=pe(i),t.c(),t.m(r.parentNode,r)):t&&(t.d(1),t=null)},i:fe,o:fe,d(i){i&&f(r),t&&t.d(i)}}}function Ge(n,r,t){let{report:i}=r,{type:h}=r,{service:B=window.GaReportService}=r,a,b=0,y=0,w=0,p=0,u=0,N=!1;return Ce(async()=>{switch(a=await B.getReport(i),h){case"shield":t(1,b=Number(a.Sxmin)),t(2,y=Number(a.Sxaverage)),t(3,w=Number(a.Sxmax)),t(4,p=Number(a.Syourscore)),t(5,u=Number(a.Spercentile));break;case"youth":t(1,b=Number(a.G2xmin)),t(2,y=Number(a.G2xaverage)),t(3,w=Number(a.G2xmax)),t(4,p=Number(a.G2yourscore)),t(5,u=Number(a.G2percentile));break;case"mature":t(1,b=Number(a.G0xmin)),t(2,y=Number(a.G0xaverage)),t(3,w=Number(a.G0xmax)),t(4,p=Number(a.G0yourscore)),t(5,u=Number(a.G0percentile));break;case"lifestyle":t(1,b=Number(a.Bxmin)),t(2,y=Number(a.Bxaverage)),t(3,w=Number(a.Bxmax)),t(4,p=Number(a.Byourscore)),t(5,u=Number(a.Bpercentile))}t(6,N=!0)}),n.$$set=m=>{"report"in m&&t(7,i=m.report),"type"in m&&t(0,h=m.type),"service"in m&&t(8,B=m.service)},[h,b,y,w,p,u,N,i,B]}class he extends be{constructor(r){super(),we(this,r,Ge,Le,Be,{report:7,type:0,service:8},Ne)}get report(){return this.$$.ctx[7]}set report(r){this.$$set({report:r}),te()}get type(){return this.$$.ctx[0]}set type(r){this.$$set({type:r}),te()}get service(){return this.$$.ctx[8]}set service(r){this.$$set({service:r}),te()}}customElements.define("ga-index-graph",ue(he,{report:{},type:{},service:{}},[],[],!0));export{he as default};
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const t=()=>{import("./arthritis.wc.js"),import("./colitis.wc.js"),import("./crohn.wc.js"),import("./lupus.wc.js"),import("./diabetes.wc.js"),import("./myocardial.wc.js"),import("./menopause.wc.js"),import("./hypertension.wc.js"),import("./chronic.wc.js"),import("./dyslipidemia.wc.js"),import("./atherosclerosis.wc.js"),import("./coronary.wc.js"),import("./copd.wc.js"),import("./hypertension-risk.wc.js"),import("./pre-hypertension.wc.js"),import("./language.interface.js"),import("./colorectal.wc.js"),import("./endometrial.wc.js"),import("./ovarian.wc.js"),import("./age-graph.wc.js"),import("./
|
|
1
|
+
const t=()=>{import("./arthritis.wc.js"),import("./colitis.wc.js"),import("./crohn.wc.js"),import("./lupus.wc.js"),import("./diabetes.wc.js"),import("./myocardial.wc.js"),import("./menopause.wc.js"),import("./hypertension.wc.js"),import("./chronic.wc.js"),import("./dyslipidemia.wc.js"),import("./atherosclerosis.wc.js"),import("./coronary.wc.js"),import("./copd.wc.js"),import("./hypertension-risk.wc.js"),import("./pre-hypertension.wc.js"),import("./language.interface.js"),import("./colorectal.wc.js"),import("./endometrial.wc.js"),import("./ovarian.wc.js"),import("./age-graph.wc.js"),import("./index-graph.wc.js"),import("./median-graph.wc.js")};export{t as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{c as Ne,S as Se,i as De,f as be,s as Fe,a as Me,d as Ze,g as Be,u as Ce,k as ke,o as je,e as i,b as o,m as A,v as b,p as t,n,q as e,r as N}from"./index2.js";import{s as ye,c as Le,e as $e}from"./helpers.js";function ze(a){Me(a,"svelte-1axi4lf",".parent.svelte-1axi4lf{display:flex;width:100%;height:10px;position:relative;font-family:'Sen', 'Noto Sans JP', sans-serif}.slider.svelte-1axi4lf{display:flex;flex-direction:column;align-items:center;position:absolute;transform:translate(-50%, -110%);width:24%;max-height:70px}.bottom-triangle.svelte-1axi4lf{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-1axi4lf{position:absolute;top:4rem;width:70%;height:3rem;transform:translate(-50%, 0%);left:50%;max-height:40px;display:flex;align-items:center;justify-content:center;font-size:1.1rem;gap:.25rem;color:#36614B}.colored-percentile.svelte-1axi4lf{height:90%;width:28%;min-width:145px;color:white;display:flex;align-items:center;justify-content:center;border-radius:8px}.colorBox.svelte-1axi4lf{width:14%;border-radius:24px;margin-left:0.2%;margin-right:0.2%}.colorBoxShort.svelte-1axi4lf{width:10%;border-radius:24px}.rotateImg.svelte-1axi4lf{transform:rotate(180deg)}p.svelte-1axi4lf{margin:0}")}function Ae(a){let l,s,c,x,f,B,S,C,D,k,F,p,ae,z,oe,I,re,d,M,ne,Z,Y,H,ce,g,q,xe,y,h,R,de,K,O,Q,ve,L,m,_,fe,U,V,W,pe,$,u,E,ge,X,ee,te,he,w,J,me,G,j,le,se,P=ye(a[4])+"",ie,ue,we,T;return{c(){l=i("div"),s=i("div"),c=o(),x=i("div"),f=o(),B=i("div"),S=o(),C=i("div"),D=o(),k=i("div"),F=o(),p=i("div"),ae=o(),z=i("div"),oe=o(),I=i("div"),re=o(),d=i("div"),M=i("p"),M.textContent="Your result",ne=o(),Z=i("p"),Y=i("b"),H=A(a[3]),ce=o(),g=b("svg"),q=b("path"),xe=o(),y=i("div"),h=b("svg"),R=b("path"),de=o(),K=i("div"),O=i("b"),Q=A(a[0]),ve=o(),L=i("div"),m=b("svg"),_=b("path"),fe=o(),U=i("div"),V=i("b"),W=A(a[1]),pe=o(),$=i("div"),u=b("svg"),E=b("path"),ge=o(),X=i("div"),ee=i("b"),te=A(a[2]),he=o(),w=i("div"),J=i("p"),J.textContent="This result ranks you in the",me=o(),G=i("div"),j=i("b"),le=A(a[4]),se=i("sup"),ie=A(P),ue=A(" percentile"),we=o(),T=i("p"),T.textContent="*",t(s,"class","colorBoxShort svelte-1axi4lf"),n(s,"background-color","#DF2120"),t(x,"class","colorBox svelte-1axi4lf"),n(x,"background-color","#F2800D"),t(B,"class","colorBox svelte-1axi4lf"),n(B,"background-color","#13A195"),t(C,"class","colorBox svelte-1axi4lf"),n(C,"background-color","#66CCAA"),t(k,"class","colorBox svelte-1axi4lf"),n(k,"background-color","#66CCAA"),t(p,"class","colorBox svelte-1axi4lf"),n(p,"background-color","#13A195"),t(z,"class","colorBox svelte-1axi4lf"),n(z,"background-color","#F2800D"),t(I,"class","colorBoxShort svelte-1axi4lf"),n(I,"background-color","#DF2120"),n(M,"font-size","1rem"),t(M,"class","svelte-1axi4lf"),n(Z,"font-size","1.2rem"),t(Z,"class","svelte-1axi4lf"),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","#09371F"),t(g,"class","rotateImg svelte-1axi4lf"),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(d,"class","slider svelte-1axi4lf"),n(d,"left",Le(a[0],a[1],a[2],a[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(h,"width","30%"),t(h,"height","30%"),t(h,"viewBox","0 0 42 37"),t(h,"fill","none"),t(h,"xmlns","http://www.w3.org/2000/svg"),t(y,"class","bottom-triangle svelte-1axi4lf"),n(y,"left","9.5%"),t(_,"d","M14.0718 4C17.151 -1.33334 24.849 -1.33333 27.9282 4.00001L40.0525 25C43.1317 30.3333 39.2827 37 33.1243 37L8.87563 37C2.71722 37 -1.13177 30.3333 1.94743 25L14.0718 4Z"),t(_,"fill","#6B8779"),t(m,"width","30%"),t(m,"height","30%"),t(m,"viewBox","0 0 42 37"),t(m,"fill","none"),t(m,"xmlns","http://www.w3.org/2000/svg"),t(L,"class","bottom-triangle svelte-1axi4lf"),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($,"class","bottom-triangle svelte-1axi4lf"),n($,"left","90.5%"),t(J,"class","svelte-1axi4lf"),t(G,"class","colored-percentile svelte-1axi4lf"),n(G,"background-color",$e(a[0],a[1],a[2],a[3])),t(T,"class","svelte-1axi4lf"),t(w,"class","message svelte-1axi4lf"),t(l,"class","parent svelte-1axi4lf")},m(r,v){Be(r,l,v),e(l,s),e(l,c),e(l,x),e(l,f),e(l,B),e(l,S),e(l,C),e(l,D),e(l,k),e(l,F),e(l,p),e(l,ae),e(l,z),e(l,oe),e(l,I),e(l,re),e(l,d),e(d,M),e(d,ne),e(d,Z),e(Z,Y),e(Y,H),e(d,ce),e(d,g),e(g,q),e(l,xe),e(l,y),e(y,h),e(h,R),e(y,de),e(y,K),e(K,O),e(O,Q),e(l,ve),e(l,L),e(L,m),e(m,_),e(L,fe),e(L,U),e(U,V),e(V,W),e(l,pe),e(l,$),e($,u),e(u,E),e($,ge),e($,X),e(X,ee),e(ee,te),e(l,he),e(l,w),e(w,J),e(w,me),e(w,G),e(G,j),e(j,le),e(j,se),e(se,ie),e(j,ue),e(w,we),e(w,T)},p(r,v){v&8&&N(H,r[3]),v&15&&n(d,"left",Le(r[0],r[1],r[2],r[3])+"%"),v&1&&N(Q,r[0]),v&2&&N(W,r[1]),v&4&&N(te,r[2]),v&16&&N(le,r[4]),v&16&&P!==(P=ye(r[4])+"")&&N(ie,P),v&15&&n(G,"background-color",$e(r[0],r[1],r[2],r[3]))},d(r){r&&ke(l)}}}function Ie(a){let l,s=a[5]&&Ae(a);return{c(){s&&s.c(),l=Ze()},m(c,x){s&&s.m(c,x),Be(c,l,x)},p(c,[x]){c[5]?s?s.p(c,x):(s=Ae(c),s.c(),s.m(l.parentNode,l)):s&&(s.d(1),s=null)},i:Ce,o:Ce,d(c){c&&ke(l),s&&s.d(c)}}}function qe(a,l,s){let{report:c}=l,{service:x=window.GaReportService}=l,f,B=0,S=0,C=0,D=0,k=0,F=!1;return je(async()=>{f=await x.getReport(c),s(0,B=Number(f.G1xmin)),s(1,S=Number(f.G1xaverage)),s(2,C=Number(f.G1xmax)),s(3,D=Number(f.G1yourscore)),s(4,k=Number(f.G1percentile)),s(5,F=!0)}),a.$$set=p=>{"report"in p&&s(6,c=p.report),"service"in p&&s(7,x=p.service)},[B,S,C,D,k,F,c,x]}class Ge extends Se{constructor(l){super(),De(this,l,qe,Ie,Fe,{report:6,service:7},ze)}get report(){return this.$$.ctx[6]}set report(l){this.$$set({report:l}),be()}get service(){return this.$$.ctx[7]}set service(l){this.$$set({service:l}),be()}}customElements.define("ga-median-graph",Ne(Ge,{report:{},service:{}},[],[],!0));export{Ge as default};
|
package/package.json
CHANGED
package/dist/shield-graph.wc.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{c as ze,S as Me,i as Fe,f as Be,s as Ze,a as De,d as He,g as ye,u as ke,k as Le,o as Ie,e as o,b as i,m as $,v as b,p as t,n as a,q as e,r as j}from"./index2.js";import{s as Se,c as $e,b as Ne}from"./helpers.js";function Re(l){De(l,"svelte-1od27u5",".parent.svelte-1od27u5{display:flex;width:100%;height:10px;position:relative;font-family:'Sen', 'Noto Sans JP', sans-serif}.slider.svelte-1od27u5{display:flex;flex-direction:column;align-items:center;position:absolute;transform:translate(-50%, -110%);width:24%;max-height:70px}.bottom-triangle.svelte-1od27u5{position:absolute;top:100%;transform:translate(-50%, 2%);width:8%;max-height:36px;display:flex;flex-direction:column;justify-content:center;align-items:center;color:#6B8779}.message-one.svelte-1od27u5{position:absolute;top:5rem;width:70%;height:3rem;transform:translate(-50%, 0%);left:50%;max-height:40px;display:flex;align-items:center;justify-content:center;font-size:1.1rem;gap:.25rem}.message-two.svelte-1od27u5{position:absolute;top:7.4rem;width:70%;height:2rem;transform:translate(-50%, 0%);left:50%;max-height:30px;display:flex;align-items:center;justify-content:center;font-size:0.75rem;gap:.25rem}.colored-percentile.svelte-1od27u5{height:90%;width:30%;min-width:150px;color:white;display:flex;align-items:center;justify-content:center;border-radius:7px}.higher.svelte-1od27u5{height:70%;width:12%;background-color:#015566;color:white;border-radius:4px;display:flex;align-items:center;justify-content:center}.colorBox.svelte-1od27u5{width:14%;border-radius:24px;margin-left:0.2%;margin-right:0.2%}.colorBoxShort.svelte-1od27u5{width:10%;border-radius:24px}.rotateImg.svelte-1od27u5{transform:rotate(180deg)}p.svelte-1od27u5{margin:0}")}function je(l){let s,r,d,c,p,C,A,B,z,y,M,g,ie,H,ne,I,ae,u,F,de,Z,Y,K,ce,h,R,ue,k,m,T,ve,O,Q,U,pe,L,x,q,ge,V,W,X,he,S,f,_,me,ee,te,se,xe,w,E,fe,N,D,oe,re,G=Se(l[4])+"",le,we,be,J,Ce,P;return{c(){s=o("div"),r=o("div"),d=i(),c=o("div"),p=i(),C=o("div"),A=i(),B=o("div"),z=i(),y=o("div"),M=i(),g=o("div"),ie=i(),H=o("div"),ne=i(),I=o("div"),ae=i(),u=o("div"),F=o("p"),F.textContent="Your result",de=i(),Z=o("p"),Y=o("b"),K=$(l[3]),ce=i(),h=b("svg"),R=b("path"),ue=i(),k=o("div"),m=b("svg"),T=b("path"),ve=i(),O=o("div"),Q=o("b"),U=$(l[0]),pe=i(),L=o("div"),x=b("svg"),q=b("path"),ge=i(),V=o("div"),W=o("b"),X=$(l[1]),he=i(),S=o("div"),f=b("svg"),_=b("path"),me=i(),ee=o("div"),te=o("b"),se=$(l[2]),xe=i(),w=o("div"),E=o("p"),E.textContent="This result ranks you in the",fe=i(),N=o("div"),D=o("b"),oe=$(l[4]),re=o("sup"),le=$(G),we=$(" percentile"),be=i(),J=o("p"),J.textContent="*",Ce=i(),P=o("div"),P.innerHTML='<p class="svelte-1od27u5">Having a</p> <div class="higher svelte-1od27u5"><b>higher</b></div> <p class="svelte-1od27u5">percentile ranking <b>is better</b> for this index.</p>',t(r,"class","colorBoxShort svelte-1od27u5"),a(r,"background-color","#DF2120"),t(c,"class","colorBox svelte-1od27u5"),a(c,"background-color","#DF2120"),t(C,"class","colorBox svelte-1od27u5"),a(C,"background-color","#F2800D"),t(B,"class","colorBox svelte-1od27u5"),a(B,"background-color","#66CCAA"),t(y,"class","colorBox svelte-1od27u5"),a(y,"background-color","#66CCAA"),t(g,"class","colorBox svelte-1od27u5"),a(g,"background-color","#13A195"),t(H,"class","colorBox svelte-1od27u5"),a(H,"background-color","#015566"),t(I,"class","colorBoxShort svelte-1od27u5"),a(I,"background-color","#015566"),a(F,"font-size","1rem"),t(F,"class","svelte-1od27u5"),a(Z,"font-size","1.2rem"),t(Z,"class","svelte-1od27u5"),t(R,"d","M14.0718 4C17.151 -1.33334 24.849 -1.33333 27.9282 4.00001L40.0525 25C43.1317 30.3333 39.2827 37 33.1243 37L8.87563 37C2.71722 37 -1.13177 30.3333 1.94743 25L14.0718 4Z"),t(R,"fill","#09371F"),t(h,"class","rotateImg svelte-1od27u5"),t(h,"width","14%"),t(h,"height","14%"),t(h,"viewBox","0 0 42 37"),t(h,"fill","none"),t(h,"xmlns","http://www.w3.org/2000/svg"),t(u,"class","slider svelte-1od27u5"),a(u,"left",$e(l[0],l[1],l[2],l[3])+"%"),t(T,"d","M14.0718 4C17.151 -1.33334 24.849 -1.33333 27.9282 4.00001L40.0525 25C43.1317 30.3333 39.2827 37 33.1243 37L8.87563 37C2.71722 37 -1.13177 30.3333 1.94743 25L14.0718 4Z"),t(T,"fill","#6B8779"),t(m,"width","30%"),t(m,"height","30%"),t(m,"viewBox","0 0 42 37"),t(m,"fill","none"),t(m,"xmlns","http://www.w3.org/2000/svg"),t(k,"class","bottom-triangle svelte-1od27u5"),a(k,"left","9.5%"),t(q,"d","M14.0718 4C17.151 -1.33334 24.849 -1.33333 27.9282 4.00001L40.0525 25C43.1317 30.3333 39.2827 37 33.1243 37L8.87563 37C2.71722 37 -1.13177 30.3333 1.94743 25L14.0718 4Z"),t(q,"fill","#6B8779"),t(x,"width","30%"),t(x,"height","30%"),t(x,"viewBox","0 0 42 37"),t(x,"fill","none"),t(x,"xmlns","http://www.w3.org/2000/svg"),t(L,"class","bottom-triangle svelte-1od27u5"),a(L,"left","50%"),t(_,"d","M14.0718 4C17.151 -1.33334 24.849 -1.33333 27.9282 4.00001L40.0525 25C43.1317 30.3333 39.2827 37 33.1243 37L8.87563 37C2.71722 37 -1.13177 30.3333 1.94743 25L14.0718 4Z"),t(_,"fill","#6B8779"),t(f,"width","30%"),t(f,"height","30%"),t(f,"viewBox","0 0 42 37"),t(f,"fill","none"),t(f,"xmlns","http://www.w3.org/2000/svg"),t(S,"class","bottom-triangle svelte-1od27u5"),a(S,"left","90.5%"),t(E,"class","svelte-1od27u5"),t(N,"class","colored-percentile svelte-1od27u5"),a(N,"background-color",Ne(l[0],l[1],l[2],l[3])),t(J,"class","svelte-1od27u5"),t(w,"class","message-one svelte-1od27u5"),t(P,"class","message-two svelte-1od27u5"),t(s,"class","parent svelte-1od27u5")},m(n,v){ye(n,s,v),e(s,r),e(s,d),e(s,c),e(s,p),e(s,C),e(s,A),e(s,B),e(s,z),e(s,y),e(s,M),e(s,g),e(s,ie),e(s,H),e(s,ne),e(s,I),e(s,ae),e(s,u),e(u,F),e(u,de),e(u,Z),e(Z,Y),e(Y,K),e(u,ce),e(u,h),e(h,R),e(s,ue),e(s,k),e(k,m),e(m,T),e(k,ve),e(k,O),e(O,Q),e(Q,U),e(s,pe),e(s,L),e(L,x),e(x,q),e(L,ge),e(L,V),e(V,W),e(W,X),e(s,he),e(s,S),e(S,f),e(f,_),e(S,me),e(S,ee),e(ee,te),e(te,se),e(s,xe),e(s,w),e(w,E),e(w,fe),e(w,N),e(N,D),e(D,oe),e(D,re),e(re,le),e(D,we),e(w,be),e(w,J),e(s,Ce),e(s,P)},p(n,v){v&8&&j(K,n[3]),v&15&&a(u,"left",$e(n[0],n[1],n[2],n[3])+"%"),v&1&&j(U,n[0]),v&2&&j(X,n[1]),v&4&&j(se,n[2]),v&16&&j(oe,n[4]),v&16&&G!==(G=Se(n[4])+"")&&j(le,G),v&15&&a(N,"background-color",Ne(n[0],n[1],n[2],n[3]))},d(n){n&&Le(s)}}}function Te(l){let s,r=l[5]&&je(l);return{c(){r&&r.c(),s=He()},m(d,c){r&&r.m(d,c),ye(d,s,c)},p(d,[c]){d[5]?r?r.p(d,c):(r=je(d),r.c(),r.m(s.parentNode,s)):r&&(r.d(1),r=null)},i:ke,o:ke,d(d){d&&Le(s),r&&r.d(d)}}}function qe(l,s,r){let{report:d}=s,{service:c=window.GaReportService}=s,p,C=0,A=0,B=0,z=0,y=0,M=!1;return Ie(async()=>{p=await c.getReport(d),r(0,C=Number(p.Sxmin)),r(1,A=Number(p.Sxaverage)),r(2,B=Number(p.Sxmax)),r(3,z=Number(p.Syourscore)),r(4,y=Number(p.Spercentile)),r(5,M=!0)}),l.$$set=g=>{"report"in g&&r(6,d=g.report),"service"in g&&r(7,c=g.service)},[C,A,B,z,y,M,d,c]}class Ae extends Me{constructor(s){super(),Fe(this,s,qe,Te,Ze,{report:6,service:7},Re)}get report(){return this.$$.ctx[6]}set report(s){this.$$set({report:s}),Be()}get service(){return this.$$.ctx[7]}set service(s){this.$$set({service:s}),Be()}}customElements.define("ga-shield-graph",ze(Ae,{report:{},service:{}},[],[],!0));export{Ae as default};
|