PageSourceSearch

https://accredo.evernorth.com/6438.131967c42116b015.js

js evernorth.com collected 2026-10-02 06:26:03 UTC 34,232 bytes, 1 lines download raw bytes

1(self.webpackChunkevn_accredo_web=self.webpackChunkevn_accredo_web||[]).push([[6438],{6438:(e,t,a)=>{a.r(t),a.d(t,{HEALTH_TRACKER_BASE_PATH:()=>$,HEALTH_TRACKER_BREADCRUMB_ROUTE_NAMES:()=>Z,HEALTH_TRACKER_LD_FLAG:()=>O,HEALTH_TRACKER_LD_FLAG_FORCE_ENABLED:()=>A,HealthTracker:()=>se,HealthTrackerSection:()=>de,useIsHealthTrackerFeatureEnabled:()=>q,useShouldShowHealthTrackerToolsEntry:()=>oe});var r=a(61762),l=a(87251),n=a(58254),i=a(36234),s=a(24102),d=a(11346);const o={stack:"health-tracker_shared_stack__ZbCjN",row:"health-tracker_shared_row__1SnqL",cardHeader:"health-tracker_shared_cardHeader__bu5Hx",wellbeingRow:"health-tracker_shared_wellbeingRow__ik+6P",wellbeingIcon:"health-tracker_shared_wellbeingIcon__JFvDV",symptomGrid:"health-tracker_shared_symptomGrid__H4kDE",symptomCell:"health-tracker_shared_symptomCell__dVVvC",pageLayout:"health-tracker_shared_pageLayout__+1xyv",heroRow:"health-tracker_shared_heroRow__7qJLR",heroActions:"health-tracker_shared_heroActions__ya1ti",heroActionButton:"health-tracker_shared_heroActionButton__3QT6-",contentLayout:"health-tracker_shared_contentLayout__tkr6W",filterSidebar:"health-tracker_shared_filterSidebar__9oWVG",filterSidebarFooter:"health-tracker_shared_filterSidebarFooter__KLUfS",filterMobileTrigger:"health-tracker_shared_filterMobileTrigger__ioa+o",historyColumn:"health-tracker_shared_historyColumn__aihk1",historyToolbar:"health-tracker_shared_historyToolbar__HyXgN",entryCountLabel:"health-tracker_shared_entryCountLabel__huTMt",notesLabel:"health-tracker_shared_notesLabel__IfQgR",entryList:"health-tracker_shared_entryList__W5kbY",loadMoreWrapper:"health-tracker_shared_loadMoreWrapper__dOrGC",modalFooter:"health-tracker_shared_modalFooter__x-T-1",dashboardCard:"health-tracker_shared_dashboardCard__8X2RK",dashboardCardHeader:"health-tracker_shared_dashboardCardHeader__-D9Ur",dashboardCardIcon:"health-tracker_shared_dashboardCardIcon__4ZrJy"};function c(e){if(!e)return"";const t=e.trim().split(" ")[0],[a,r,l]=t.split("-");return a&&r&&l?`${r}/${l}/${a}`:e}const h={HDYF:"feeling",MS:"multipleSclerosis",ONCO:"cancer"},u=["feeling","cancer","multipleSclerosis"];function f(e){return(null!=e?e:"").trim().toUpperCase()}function p(e){const t=f(e);if(t)return h[t]}var C=a(52322);const g=({dailyTrackerId:e,onEdit:t})=>{const{t:a}=(0,l.useTranslation)();return t?(0,C.jsx)(i.LeafLink,{href:"#","data-test-id":`health-tracker-edit-link-${e}`,onClick:a=>{a.preventDefault(),t(e)},children:a("healthTracker.list.editButton")}):(0,C.jsx)(i.LeafLink,{href:"#","aria-disabled":"true","data-test-id":`health-tracker-edit-link-${e}`,onClick:e=>e.preventDefault(),title:a("healthTracker.list.editUnavailable"),children:a("healthTracker.list.editButton")})},k={1:{text:"Very severe",status:"error",iconStart:{name:"error",category:"system",weight:"regular"}},2:{text:"Severe",status:"warning",iconStart:{name:"warning",category:"system",weight:"fill"}},3:{text:"Moderate",status:"neutral"},4:{text:"Mild",status:"neutral"},5:{text:"Very mild",status:"neutral"}},v=({severity:e})=>{const t=k[e];return t?(0,C.jsx)(i.LeafBadge,{status:t.status,variant:"subtle",text:t.text,iconStart:t.iconStart,"data-test-id":`health-tracker-severity-badge-${e}`}):null},y=({result:e,onEdit:t})=>{var a;const{t:r}=(0,l.useTranslation)(),n=c(e.trackedDate),s="multipleSclerosis"===p(e.healthTrackerType||e.therapyType)?"healthTracker.list.multipleSclerosisSymptomTitle":"healthTracker.list.cancerSymptomTitle",h=(null!=(a=e.notes)?a:"").trim().length>0;return(0,C.jsxs)(i.LeafCard,{"data-test-id":`health-tracker-symptom-card-${e.dailyTrackerId}`,children:[(0,C.jsxs)("div",{className:o.cardHeader,children:[(0,C.jsxs)("div",{children:[(0,C.jsx)(i.LeafHeading,{type:"title-small",tagVariant:"h3","data-test-id":`health-tracker-symptom-title-${e.dailyTrackerId}`,children:r(s)}),(0,C.jsx)(d.NpeLeafText,{tag:"p",styleTag:"body-small-subtle","data-test-id":`health-tracker-symptom-date-${e.dailyTrackerId}`,children:n})]}),(0,C.jsx)(g,{dailyTrackerId:e.dailyTrackerId,onEdit:t})]}),(0,C.jsx)(i.LeafDivider,{}),(0,C.jsx)("div",{className:o.symptomGrid,children:e.symptoms.map(((t,a)=>(0,C.jsxs)("div",{className:o.symptomCell,"data-test-id":`health-tracker-symptom-item-${e.dailyTrackerId}-${a}
1`,children:[(0,C.jsx)(d.NpeLeafText,{tag:"p",styleTag:"body-default",children:t.description}),t.severity?(0,C.jsx)(v,{severity:t.severity}):null]},`${e.dailyTrackerId}-${a}`)))}),h?(0,C.jsxs)("div",{className:o.stack,children:[(0,C.jsx)("p",{className:o.notesLabel,children:r("healthTracker.list.notesLabel")}),(0,C.jsx)(d.NpeLeafText,{tag:"p",styleTag:"body-default","data-test-id":`health-tracker-symptom-notes-${e.dailyTrackerId}`,children:e.notes})]}):null]})},m=({isOpen:e,isSubmitting:t=!1,onCancel:a,onContinue:r})=>{const{t:n}=(0,l.useTranslation)(),s=()=>{t||a()};return(0,C.jsxs)(i.LeafModal,{isActive:e,ariaLabel:n("healthTracker.disclaimer.title"),onClose:s,"data-test-id":"health-tracker-disclaimer-modal",children:[(0,C.jsx)(i.LeafHeading,{type:"title-small",slot:"header",children:n("healthTracker.disclaimer.title")}),(0,C.jsx)(d.NpeLeafText,{tag:"p",styleTag:"body-default","data-test-id":"health-tracker-disclaimer-body-1",children:n("healthTracker.disclaimer.body1")}),(0,C.jsx)(d.NpeLeafText,{tag:"p",styleTag:"body-default","data-test-id":"health-tracker-disclaimer-body-2",children:n("healthTracker.disclaimer.body2")}),(0,C.jsxs)("div",{className:o.modalFooter,slot:"footer",children:[(0,C.jsx)(i.LeafButton,{fullWidth:!0,loading:t,disabled:t,text:n("healthTracker.disclaimer.continue"),"data-test-id":"health-tracker-disclaimer-continue-button",onClick:r}),(0,C.jsx)(i.LeafButton,{fullWidth:!0,variant:"secondary",disabled:t,text:n("healthTracker.disclaimer.cancel"),"data-test-id":"health-tracker-disclaimer-cancel-button",onClick:s})]})]})};var x=a(42256);const _='<svg width="48" height="48" viewBox="0 0 48 48" fill="none" xmlns="http://www.w3.org/2000/svg">\n  <defs>\n    <clipPath id="feeling-awful-clip">\n      <circle cx="24" cy="24" r="24" />\n    </clipPath>\n  </defs>\n  <g clip-path="url(#feeling-awful-clip)">\n    <circle cx="23.9997" cy="24.0002" r="22.6667" fill="#F05E35" />\n    <path fill-rule="evenodd" clip-rule="evenodd" d="M24.1712 1.3335C23.5745 1.3335 22.9855 1.36395 22.4004 1.40893C34.0907 2.31348 43.2962 12.0779 43.2962 24.0002C43.2962 35.9228 34.0907 45.6872 22.4004 46.5918C22.9855 46.6367 23.5745 46.6668 24.1712 46.6668C36.6903 46.6668 46.8379 36.5192 46.8379 24.0002C46.8379 11.4811 36.6903 1.3335 24.1712 1.3335Z" fill="#CE4A25" />\n    <path fill-rule="evenodd" clip-rule="evenodd" d="M37.1637 34.8214V36.8814C35.7554 36.8814 35.0795 35.7468 34.6342 34.9957C34.2667 34.3761 34.079 34.1186 33.8751 34.1186C33.6712 34.1186 33.4862 34.3788 33.116 34.9957C32.6707 35.7468 31.9948 36.8814 30.5865 36.8814C29.1783 36.8814 28.5023 35.7468 28.0571 34.9957C27.6896 34.3761 27.5019 34.1186 27.298 34.1186C27.0941 34.1186 26.909 34.3788 26.5389 34.9957C26.0936 35.7468 25.4177 36.8814 24.0094 36.8814C22.6012 36.8814 21.928 35.7468 21.48 34.9957C21.1125 34.3761 20.9247 34.1186 20.7209 34.1186C20.517 34.1186 20.3292 34.3788 19.9617 34.9957C19.5138 35.7468 18.8379 36.8814 17.4296 36.8814C16.0214 36.8814 15.3454 35.7468 14.8975 34.9984C14.5273 34.3788 14.3396 34.1186 14.1357 34.1186C13.9319 34.1186 13.7441 34.3788 13.3739 34.9984C12.926 35.7495 12.25 36.8814 10.8418 36.8814V34.8214C11.0483 34.8214 11.2334 34.5612 11.6036 33.9416C12.0515 33.1905 12.7275 32.0586 14.1357 32.0586C15.5439 32.0586 16.2199 33.1932 16.6678 33.9416C17.038 34.5612 17.2258 34.8214 17.4296 34.8214C17.6335 34.8214 17.8212 34.5612 18.1914 33.9416C18.6394 33.1905 19.3126 32.0586 20.7209 32.0586C22.1291 32.0586 22.8023 33.1932 23.2503 33.9443C23.6178 34.5639 23.8055 34.8214 24.0094 34.8214C24.2133 34.8214 24.3984 34.5612 24.7685 33.9443C25.2138 33.1932 25.8897 32.0586 27.298 32.0586C28.7062 32.0586 29.3794 33.1932 29.8274 33.9416C30.1949 34.5612 30.3827 34.8214 30.5865 34.8214C30.7904 34.8214 30.9782 34.5612 31.3457 33.9443C31.7909 33.1932 32.4669 32.0586 33.8751 32.0586C35.2833 32.0586 35.9565 33.1932 36.4045 33.9443C36.772 34.5639 36.9598 34.8214 37.1637 34.8214Z" fill="#515761" />\n    <path fill-rule="evenodd" clip-rule="evenodd" d="M19.3955 18.4375C18.8087 18.4375 18.333 18.9135 18.333 19.5C18.333 21.2577 16.9029 22.6875 15.1455 22.6875C13.3881 22.6875 11.958 21.2577 11.958 19.5C11.958 18.9135 11.4824 18.4375 10.8955 18.4375C10.3087 18.4375 9.83301 18.9135 9.83301 19.5C9.83301 22.4293 12.2162 24.8125 15.1455 24.8125C18.0748 24.8125 20.458 22.4293 20.458 19.5C20.458 18.9135 19.9824 18.4375 19.3955 18.4375Z" fill="#515761" />\n    <path fill-rule="evenodd" clip-rule="evenodd" d="M37.1035 18.4375C36.5167 18.4375 36.041 18.9135 36.041 19.5C36.041 21.2577 34.6109 22.6875 32.8535 22.6875C31.0961 22.6875 29.666 21.2577 29.666 19.5C29.666 18.9135 29.1904 18.4375 28.6035 18.4375C28.0167 18.4375 27.541 18.9135 27.541 19.5C27.541 22.4293 29.9242 24.8125 32.8535 24.8125C35.7828 24.8125 38.166 22.4293 38.166 19.5C38.166 18.9135 37.6904 18.4375 37.1035 18.4375Z" fill="#515761" />\n  </g>\n</svg>\n',T='<svg width="48" height="48" viewBox="0 0 48 48" fill="none" xmlns="http://www.w3.org/2000/svg">\n  <defs>\n    <clipPath id="feeling-bad-clip">\n      <circle cx="24" cy="24" r="24" />\n    </clipPath>\n  </defs>\n  <g clip-path="url(#feeling-bad-clip)">\n    <circle cx="23.9997" cy="24" r="22.6667" fill="#F07C35" />\n    <path fill-rule="evenodd" clip-rule="evenodd" d="M24.1712 1.33331C23.5745 1.33331 22.9855 1.36377 22.4004 1.40875C34.0907 2.31329 43.2962 12.0777 43.2962 24C43.2962 35.9226 34.0907 45.687 22.4004 46.5916C22.9855 46.6365 23.5745 46.6666 24.1712 46.6666C36.6903 46.6666 46.8379 36.5191 46.8379 24C46.8379 11.4809 36.6903 1.33331 24.1712 1.33331Z" fill="#D6631C" />\n    <path fill-rule="evenodd" clip-rule="evenodd" d="M23.9863 28.8398C29.1593 28.8398 34.0631 31.0247 37.4404 34.8345C37.8017 35.2414 37.7641 35.8644 37.3572 36.2256C36.9492 36.5869 36.3269 36.5493 35.966 36.1417C32.9623 32.7537 28.5958 30.8108 23.9863 30.8108C19.3882 30.8108 15.0312 32.7435 12.0322 36.1134C11.6705 36.5196 11.0479 36.5564 10.641 36.1945C10.2344 35.8325 10.1979 35.2099 10.5599 34.8033C13.9326 31.0134 18.8261 28.8398 23.9863 28.8398Z" fill="#515761" />\n    <path fill-rule="evenodd" clip-rule="evenodd" d="M35.415 19.4251C35.415 21.2888 33.9038 22.8001 32.04 22.8001C30.1763 22.8001 28.665 21.2888 28.665 19.4251C28.665 17.5613 30.1763 16.0501 32.04 16.0501C33.9038 16.0501 35.415 17.5613 35.415 19.4251Z" fill="#515761" />\n    <path fill-rule="evenodd" clip-rule="evenodd" d="M19.3349 19.4251C19.3349 21.2888 17.8237 22.8001 15.9599 22.8001C14.0962 22.8001 12.585 21.2888 12.585 19.4251C12.585 17.5613 14.0962 16.0501 15.9599 16.0501C17.8237 16.0501 19.3349 17.5613 19.3349 19.4251Z" fill="#515761" />\n    <path fill-rule="evenodd" clip-rule="evenodd" d="M9.92746 17.4167C9.70964 17.4167 9.49467 17.3164 9.35583 17.1273C9.12456 16.8117 9.19292 16.3687 9.50812 16.137L14.8206 12.2412C15.1362 12.011 15.5792 12.0783 15.8109 12.3939C16.0421 12.7091 15.9738 13.1525 15.6586 13.3841L10.3461 17.2799C10.2196 17.3724 10.073 17.4167 9.92746 17.4167Z" fill="#515761" />\n    <path fill-rule="evenodd" clip-rule="evenodd" d="M38.0723 17.4167C38.2901 17.4167 38.505 17.3164 38.6439 17.1273C38.8752 16.8117 38.8068 16.3687 38.4916 16.137L33.1791 12.2412C32.8635 12.011 32.4205 12.0783 32.1888 12.3939C31.9576 12.7091 32.0259 13.1525 32.3411 13.3841L37.6536 17.2799C37.7801 17.3724 37.9267 17.4167 38.0723 17.4167Z" fill="#515761" />\n  </g>\n</svg>\n',b='<svg width="48" height="48" viewBox="0 0 48 48" fill="none" xmlns="http://www.w3.org/2000/svg">\n  <defs>\n    <clipPath id="feeling-fine-clip">\n      <circle cx="24" cy="24" r="24" />\n    </clipPath>\n  </defs>\n  <g clip-path="url(#feeling-fine-clip)">\n    <circle cx="23.9997" cy="23.9999" r="22.6667" fill="#FFCD34" />\n    <path fill-rule="evenodd" clip-rule="evenodd" d="M24.1712 1.33325C23.5745 1.33325 22.9855 1.36371 22.4004 1.40869C34.0907 2.31323 43.2962 12.0776 43.2962 23.9999C43.2962 35.9226 34.0907 45.687 22.4004 46.5915C22.9855 46.6365 23.5745 46.6666 24.1712 46.6666C36.6903 46.6666 46.8379 36.519 46.8379 23.9999C46.8379 11.4808 36.6903 1.33325 24.1712 1.33325Z" fill="#E6B321" />\n    <path fill-rule="evenodd" clip-rule="evenodd" d="M23.9998 37.8028C18.66 37.8028 13.598 35.5475 10.
11117 31.6148C9.73881 31.1948 9.77756 30.5517 10.1976 30.1788C10.6184 29.8059 11.2611 29.8446 11.6337 30.2654C14.7342 33.7627 19.2416 35.7683 23.9998 35.7683C28.7463 35.7683 33.2438 33.7733 36.3396 30.2947C36.7129 29.8753 37.3556 29.8373 37.7756 30.2109C38.1953 30.5846 38.233 31.2273 37.8594 31.647C34.3778 35.5592 29.3265 37.8028 23.9998 37.8028Z" fill="#515761" />\n    <path fill-rule="evenodd" clip-rule="evenodd" d="M35.415 19.425C35.415 21.2888 33.9038 22.8 32.04 22.8C30.1763 22.8 28.665 21.2888 28.665 19.425C28.665 17.5613 30.1763 16.05 32.04 16.05C33.9038 16.05 35.415 17.5613 35.415 19.425Z" fill="#515761" />\n    <path fill-rule="evenodd" clip-rule="evenodd" d="M19.3349 19.425C19.3349 21.2888 17.8237 22.8 15.9599 22.8C14.0962 22.8 12.585 21.2888 12.585 19.425C12.585 17.5613 14.0962 16.05 15.9599 16.05C17.8237 16.05 19.3349 17.5613 19.3349 19.425Z" fill="#515761" />\n  </g>\n</svg>\n',L='<svg width="48" height="48" viewBox="0 0 48 48" fill="none" xmlns="http://www.w3.org/2000/svg">\n  <defs>\n    <clipPath id="feeling-great-clip">\n      <circle cx="24" cy="24" r="24" />\n    </clipPath>\n  </defs>\n  <g clip-path="url(#feeling-great-clip)">\n    <circle cx="23.9997" cy="24.0002" r="22.6667" fill="#FFCD34" />\n    <path fill-rule="evenodd" clip-rule="evenodd" d="M24.1712 1.3335C23.5745 1.3335 22.9855 1.36395 22.4004 1.40893C34.0907 2.31348 43.2962 12.0778 43.2962 24.0002C43.2962 35.9228 34.0907 45.6872 22.4004 46.5917C22.9855 46.6367 23.5745 46.6668 24.1712 46.6668C36.6903 46.6668 46.8379 36.5192 46.8379 24.0002C46.8379 11.4811 36.6903 1.3335 24.1712 1.3335Z" fill="#E6B321" />\n    <path fill-rule="evenodd" clip-rule="evenodd" d="M8.8291 25.3369V26.4994C8.8291 34.9614 15.7132 41.8446 24.1743 41.8446C32.6362 41.8446 39.5203 34.9614 39.5203 26.4994V25.3369H8.8291Z" fill="#515761" />\n    <path fill-rule="evenodd" clip-rule="evenodd" d="M24.2001 40.1002C17.2122 40.1002 11.4569 34.4207 10.8496 27.2002H37.5496C36.9432 34.4207 31.1879 40.1002 24.2001 40.1002Z" fill="white" />\n    <path fill-rule="evenodd" clip-rule="evenodd" d="M19.3085 17.7779C18.7279 17.7779 18.2573 17.3074 18.2573 16.7267C18.2573 14.988 16.8424 13.5731 15.1037 13.5731C13.365 13.5731 11.9501 14.988 11.9501 16.7267C11.9501 17.3074 11.4795 17.7779 10.8989 17.7779C10.3182 17.7779 9.84766 17.3074 9.84766 16.7267C9.84766 13.8286 12.2055 11.4707 15.1037 11.4707C18.0019 11.4707 20.3597 13.8286 20.3597 16.7267C20.3597 17.3074 19.8891 17.7779 19.3085 17.7779Z" fill="#515761" />\n    <path fill-rule="evenodd" clip-rule="evenodd" d="M36.829 17.7779C36.2484 17.7779 35.7778 17.3074 35.7778 16.7267C35.7778 14.988 34.3629 13.5731 32.6242 13.5731C30.8855 13.5731 29.4706 14.988 29.4706 16.7267C29.4706 17.3074 29 17.7779 28.4194 17.7779C27.8388 17.7779 27.3682 17.3074 27.3682 16.7267C27.3682 13.8286 29.726 11.4707 32.6242 11.4707C35.5224 11.4707 37.8802 13.8286 37.8802 16.7267C37.8802 17.3074 37.4097 17.7779 36.829 17.7779Z" fill="#515761" />\n  </g>\n</svg>\n',w='<svg width="48" height="48" viewBox="0 0 48 48" fill="none" xmlns="http://www.w3.org/2000/svg">\n  <defs>\n    <clipPath id="feeling-ok-clip">\n      <circle cx="24" cy="24" r="24" />\n    </clipPath>\n  </defs>\n  <g clip-path="url(#feeling-ok-clip)">\n    <circle cx="23.9997" cy="24.0002" r="22.6667" fill="#FFCD34" />\n    <path fill-rule="evenodd" clip-rule="evenodd" d="M24.1712 1.3335C23.5745 1.3335 22.9855 1.36395 22.4004 1.40893C34.0907 2.31348 43.2962 12.0778 43.2962 24.0002C43.2962 35.9228 34.0907 45.6872 22.4004 46.5917C22.9855 46.6367 23.5745 46.6668 24.1712 46.6668C36.6903 46.6668 46.8379 36.5192 46.8379 24.0002C46.8379 11.4811 36.6903 1.3335 24.1712 1.3335Z" fill="#E6B321" />\n    <path fill-rule="evenodd" clip-rule="evenodd" d="M35.415 19.4253C35.415 21.289 33.9038 22.8002 32.04 22.8002C30.1763 22.8002 28.665 21.289 28.665 19.4253C28.665 17.5615 30.1763 16.0503 32.04 16.0503C33.9038 16.0503 35.415 17.5615 35.415 19.4253Z" fill="#515761" />\n    <path fill-rule="evenodd" clip-rule="evenodd" d="M19.3349 19.4253C19.3349 21.289 17.8237 22.8002 15.9599 22.8002C14.0962 22.8002 12.585 21.289 12.585 19.4253C12.585 17.5615 14.0962 16.0503 15.9599 16.0503C17.8237 16.0503 19.3349 17.5615 19.3349 19.4253Z" fill="#515761" />\n    <path fill-rule="evenodd" clip-rule="evenodd" d="M15.4671 31.6802C14.8775 31.6802 14.4004 32.1573 14.4004 32.7468C14.4004 33.3364 14.8775 33.8135 15.4671 33.8135H32.5337C33.1233 33.8135 33.6004 33.3364 33.6004 32.7468C33.6004 32.1573 33.1233 31.6802 32.5337 31.6802H15.4671Z" fill="#515761" />\n  </g>\n</svg>\n',j={great:{text:"Great",svg:L},good:{text:"Good",svg:b},okay:{text:"Ok",svg:w},ok:{text:"Ok",svg:w},bad:{text:"Bad",svg:T},awful:{text:"Awful",svg:_},1:{text:"Awful",svg:_},2:{text:"Bad",svg:T},3:{text:"Ok",svg:w},4:{text:"Good",svg:b},5:{text:"Great",svg:L}},S=({result:e,onEdit:t})=>{var a,r,n;const{t:s}=(0,l.useTranslation)(),h=function(e){var t;const a=e.trim().toLowerCase();return null!=(t=j[a])?t:j.good}(null!=(a=null==e||null==(r=e.symptoms[0])?void 0:r.severity)?a:""),u=c(null==e?void 0:e.trackedDate),f=(null!=(n=null==e?void 0:e.notes)?n:"").trim().length>0;return(0,C.jsxs)(i.LeafCard,{"data-test-id":`health-tracker-feeling-card-${null==e?void 0:e.dailyTrackerId}`,children:[(0,C.jsxs)("div",{className:o.cardHeader,children:[(0,C.jsxs)("div",{children:[(0,C.jsx)(i.LeafHeading,{type:"title-small",tagVariant:"h3","data-test-id":`health-tracker-feeling-card-title-${null==e?void 0:e.dailyTrackerId}`,children:s("healthTracker.list.feelingTitle")}),(0,C.jsx)(d.NpeLeafText,{tag:"p",styleTag:"body-small-subtle","data-test-id":`health-tracker-feeling-card-date-${null==e?void 0:e.dailyTrackerId}`,children:u})]}),null!=e&&e.dailyTrackerId?(0,C.jsx)(g,{dailyTrackerId:e.dailyTrackerId,onEdit:t}):null]}),(0,C.jsx)(i.LeafDivider,{}),(0,C.jsxs)("div",{className:o.wellbeingRow,"data-test-id":`health-tracker-feeling-card-wellbeing-row-${null==e?void 0:e.dailyTrackerId}
1`,children:[(0,C.jsx)(x.Z,{"aria-hidden":!0,className:o.wellbeingIcon,svg:h.svg,height:48,width:48}),(0,C.jsx)(d.NpeLeafText,{tag:"span",styleTag:"body-default",children:h.text})]}),f?(0,C.jsxs)("div",{className:o.stack,children:[(0,C.jsx)("p",{className:o.notesLabel,children:s("healthTracker.list.notesLabel")}),(0,C.jsx)(d.NpeLeafText,{tag:"p",styleTag:"body-default","data-test-id":`health-tracker-feeling-card-notes-${null==e?void 0:e.dailyTrackerId}`,children:null==e?void 0:e.notes})]}):null]})},N="healthTracker.filterModal.title",M={feeling:"healthTracker.filterModal.entryType.feelingText",cancer:"healthTracker.filterModal.entryType.cancerText",multipleSclerosis:"healthTracker.filterModal.entryType.multipleSclerosisText"},B=(0,r.createContext)(null);function F(){const e=(0,r.useContext)(B);if(!e)throw new Error("HealthTrackerFilter components must be used within provider");return e}function E(){const{t:e}=(0,l.useTranslation)(),{draftEntryFilter:t,setDraftEntryFilter:a,entryTypeRadios:r}=F();return(0,C.jsx)(C.Fragment,{children:(0,C.jsx)(i.LeafRadioField,{label:e("healthTracker.filterModal.entryTypeSectionLabel"),"data-test-id":"health-tracker-filter-radio-field",children:r.map((r=>(0,C.jsx)(i.LeafRadioFieldItem,{name:"health-tracker-entry-filter",value:r.value,label:e(r.labelKey),checked:t===r.value,onChange:()=>a(r.value),"data-test-id":`health-tracker-filter-option-${r.value}`},r.value)))})})}const I=({patientKinds:e,appliedEntryFilter:t,onAppliedEntryFilterChange:a,children:n})=>{const{t:s}=(0,l.useTranslation)(),[d,c]=(0,r.useState)(!1),[h,u]=(0,r.useState)(t);(0,r.useEffect)((()=>{u(t)}),[t]);const f=(0,r.useMemo)((()=>{const t=[];e.length>1&&t.push({value:"all",labelKey:"healthTracker.filterModal.entryTypeAllLabel"});for(const a of e)t.push({value:a,labelKey:M[a]});return t}),[e]),p=(0,r.useCallback)((()=>{a(h)}),[h,a]),g=(0,r.useCallback)((()=>{u(t),c(!0)}),[t]),k=(0,r.useCallback)((()=>{c(!1)}),[]),v=(0,r.useCallback)((()=>{p(),c(!1)}),[p]),y=(0,r.useMemo)((()=>({openFilterModal:g,draftEntryFilter:h,setDraftEntryFilter:u,entryTypeRadios:f,applyDraftFilter:p})),[p,h,f,g]);return(0,C.jsxs)(B.Provider,{value:y,children:[n,(0,C.jsxs)(i.LeafModal,{isActive:d,ariaLabel:s(N),onClose:k,"data-test-id":"health-tracker-filter-modal",children:[(0,C.jsx)(i.LeafHeading,{type:"title-small",slot:"header",children:s(N)}),(0,C.jsx)(E,{}),(0,C.jsxs)("div",{className:o.modalFooter,slot:"footer",children:[(0,C.jsx)(i.LeafButton,{fullWidth:!0,text:s("healthTracker.filterModal.applyButtonLabel"),"data-test-id":"health-tracker-filter-apply-button",onClick:v}),(0,C.jsx)(i.LeafButton,{fullWidth:!0,variant:"secondary",text:s("healthTracker.filterModal.closeButtonLabel"),"data-test-id":"health-tracker-filter-close-button",onClick:k})]})]})]})},H=()=>{const{t:e}=(0,l.useTranslation)(),{applyDraftFilter:t}=F();return(0,C.jsx)("aside",{className:o.filterSidebar,"data-test-id":"health-tracker-filter-sidebar",children:(0,C.jsxs)(i.LeafCard,{children:[(0,C.jsx)(i.LeafHeading,{type:"title-default",tagVariant:"h2",slot:"header",children:e(N)}),(0,C.jsx)(E,{}),(0,C.jsx)("div",{className:o.filterSidebarFooter,slot:"footer",children:(0,C.jsx)(i.LeafButton,{fullWidth:!0,text:e("healthTracker.filterModal.applyButtonLabel"),"data-test-id":"health-tracker-filter-sidebar-apply-button",onClick:t})})]})})},R=()=>{const{t:e}=(0,l.useTranslation)(),{openFilterModal:t}=F();return(0,C.jsx)("div",{className:o.filterMobileTrigger,children:(0,C.jsx)(i.LeafButton,{variant:"secondary",fullWidth:!0,text:e("healthTracker.list.filterLabel"),svg:'<svg fill="currentColor" width="16" height="16" viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg">\n<path d="M14.4113 2.59552C14.3344 2.41771 14.2068 2.26645 14.0446 2.16055C13.8824 2.05465 13.6926 1.99878 13.4988 1.99989H2.49882C2.30528 2.00028 2.11601 2.05681 1.95396 2.16265C1.79192 2.26848 1.66407 2.41907 1.58593 2.59613C1.50778 2.7732 1.4827 2.96914 1.51372 3.16018C1.54475 3.35122 1.63054 3.52915 1.7607 3.67239L1.7657 3.67802L5.99882 8.19802V12.9999C5.99878 13.1809 6.04786 13.3585 6.14082 13.5138C6.23378 13.6691 6.36715 13.7962 6.52669 13.8817C6.68624 13.9671 6.86598 14.0077 7.04676 13.999C7.22753 13.9903 7.40257 13.9327 7.5532 13.8324L9.5532 12.4986C9.6903 12.4073 9.80272 12.2835 9.88046 12.1383C9.9582 11.9931 9.99886 11.8309 9.99882 11.6661V8.19802L14.2326 3.67802L14.2376 3.67239C14.3691 3.52981 14.4557 3.35164 14.4866 3.16012C14.5175 2.96861 14.4913 2.77224 14.4113 2.59552ZM9.13507 7.66114C9.04858 7.75285 8.99991 7.87384 8.99882 7.99989V11.6661L6.99882 12.9999V7.99989C6.99886 7.87293 6.9506 7.7507 6.86382 7.65802L2.49882 2.99989H13.4988L9.13507 7.66114Z"/>\n</svg>\n',iconPosition:"before","data-test-id":"health-tracker-filter-trigger",onClick:t})})},O="ftr-accredo-home-team-web-health-tracker-tool",A=!1,D=!1,Z={list:"Health tracker"},$="/new-patient/health-tracker",P={feeling:"HealthTracker_HDYF",cancer:"HealthTracker_ONCO",multipleSclerosis:"HealthTracker_MS"},V={feeling:"healthTracker.trackers.feelingTitle",cancer:"healthTracker.trackers.cancerTitle",multipleSclerosis:"healthTracker.trackers.msTitle"},K={feeling:`${$}/feeling`,cancer:`${$}/cancer`,multipleSclerosis:`${$}/ms`},U=({kinds:e,onSelectTracker:t})=>{const{t:a}=(0,l.useTranslation)();return(0,C.jsxs)("section",{className:o.heroRow,"data-test-id":"health-tracker-hero-section",children:[(0,C.jsx)(d.NpeLeafText,{tag:"p",styleTag:"body-large","data-test-id":"health-tracker-hero-title",children:a("healthTracker.hero.title")}),(0,C.jsx)("div",{className:o.heroActions,children:e.map((e=>(0,C.jsx)("div",{className:o.heroActionButton,children:(0,C.jsx)(i.LeafButton,{text:a(V[e]),"data-test-id":`health-tracker-select-${e}`,onClick:()=>t(e)})},e)))})]})},W=({sortOrder:e,onSortOrderChange:t})=>{const{t:a}=(0,l.useTranslation)(),r=a("newest"===e?"healthTracker.list.sortNewestLabel":"healthTracker.list.sortOldestLabel");return(0,C.jsxs)(i.LeafDropdownButton,{variant:"secondary",buttonText:r,"data-test-id":"health-tracker-sort-control",children:[(0,C.jsx)(i.LeafDropdownItem,{onClick:()=>t("newest"),"data-test-id":"health-tracker-sort-option-newest",children:a("healthTracker.list.sortNewestLabel")}),(0,C.jsx)(i.LeafDropdownItem,{onClick:()=>t("oldest"),"data-test-id":"health-tracker-sort-option-oldest",children:a("healthTracker.list.sortOldestLabel")})]})},G=({heading:e,description:t,testId:a="health-tracker-screen-error-alert"})=>(0,C.jsxs)(i.LeafInlineAlert,{status:"error",fullWidth:!0,"data-test-id":a,children:[(0,C.jsx)("strong",{children:e}),(0,C.jsx)("div",{children:t})]});var z=a(77314);function q(){const e=(0,z.useLDClient)();return!!A||(e?e.variation(O,D):D)}const Q="@cigna/accredo-web/health-tracker";function J(e,t){return`${Q}/disclaimer-accepted:${function(e){return(null==e?void 0:e.trim())||"unknown"}(t)}:${e}`}var X=a(30737);const Y="/accredo/v1/core/health-tracker",ee=10,te=e=>e.data;function ae(e,t=ee,a=0){return[Y,null!=e?e:"",t,a]}const re=e=>e.data;function le(e){var t;if(!e)return;const a=null!=(t=e["Pagination-Total"])?t:e["X-Total-Count"];let r=Number.NaN;return"number"==typeof a?r=a:"string"==typeof a&&(r=Number(a)),Number.isFinite(r)&&r>=0?r:void 0}function ne(e,t){const a=function(e){var t,a;const r=le(e.headers);return void 0!==r?r:null!=(t=null==(a=e.body)?void 0:a.numberOfRecords)?t:0}(e),r=t.reduce(((e,t)=>{var a,r;return e+(null!=(a=null==(r=t.body)?void 0:r.surveyResults.length)?a:0)}),0);if(r<a)return r}const ie={"screen-reader-text":"health-tracker_screen-reader-text__igUz+",container:"health-tracker_container__gtR4O","video-embed":"health-tracker_video-embed__CORXh",centerContainer:"health-tracker_centerContainer__7ce4s",commonLoadingContainer:"health-tracker_commonLoadingContainer__IO49n",alignLeft:"health-tracker_alignLeft__qAyBx",alignCenter:"health-tracker_alignCenter__1hVa2",marginBottom8:"health-tracker_marginBottom8__e4z3v",marginBottom16:"health-tracker_marginBottom16__DTS9S",marginBottom24:"health-tracker_marginBottom24__FFA21",evnBrandColor:"health-tracker_evnBrandColor__8h3xg",marginTop1:"health-tracker_marginTop1__C7czI",marginTop2:"health-tracker_marginTop2__2ygMO",page:"health-tracker_page__vL6ng",heroSection:"health-tracker_heroSection__xtlmB",heroContent:"health-tracker_heroContent__CFJ6t",contentSection:"health-tracker_contentSection__CTVIz"};function se({patientId:e,surveyResults:t,patientHealthTrackerTypes:a}={}){const{t:c}=(0,l.useTranslation)(),h=(0,n.useNavigate)(),g=(0,d.useEksUrl)(),{updatePageConfig:k}=(0,r.useContext)(d.BreadcrumbsContext),v=(0,s.useQueryClient)(),x=q(),[_,T]=(0,r.useState)(null),[b,L]=(0,r.useState)(!1),[w,j]=(0,r.useState)(!1),[N,M]=(0,r.useState)("all"),[B,F]=(0,r.useState)("newest"),E=void 0===t,O=(0,r.useRef)(void 0);(0,r.useEffect)((()=>{O.current=void 0}),[e]),(0,r.useEffect)((()=>{k(Z.list,{path:["Home",Z.list]})}),[k]),(0,r.useEffect)((()=>{x||h("/new-patient/dashboard",{replace:!0})}),[x,h]);const{data:A,isLoading:D,isError:$,hasNextPage:V,fetchNextPage:z,isFetchingNextPage:Q}=function({patientId:e,overrideRootUrl:t,appliedEntryKindFilter:a="all",sortOrder:r="newest",enabled:l=!0}){const n=function(e){if("all"!==e)return{feeling:"HDYF",cancer:"ONCO",multipleSclerosis:"MS"}[e]}(a);return(0,X.useInfiniteQuery)({url:Y,overrideRootUrl:t,params:t=>Object.assign({},e?{patientId:e}:{},{_limit:ee,_offset:t,_sort:r},n?{type:n}:{}),dataFilter:re},{queryKey:[...(i={patientId:e,appliedEntryKindFilter:a,sortOrder:r},[Y,"infinite",null!=(s=i.patientId)?s:"",ee,null!=(d=i.appliedEntryKindFilter)?d:"all",null!=(o=i.sortOrder)?o:"newest"])],refetchOnWindowFocus:!1,enabled:l&&Boolean(e),getNextPageParam:ne});var i,s,d,o}({patientId:e,overrideRootUrl:g,appliedEntryKindFilter:N,sortOrder:B,enabled:E&&Boolean(e)&&x}),te=E&&Boolean(e)&&x;(0,r.useEffect)((()=>()=>{E&&e&&function(e,t){e.removeQueries({predicate:e=>{const a=e.queryKey;return Array.isArray(a)&&a.length>=4&&a[0]===Y&&"infinite"===a[1]&&a[2]===t}})}(v,e)}),[e,v,E]);const ae=(0,r.useMemo)((()=>{var e;return void 0!==t?t:null!=(e=null==A?void 0:A.pages.flatMap((e=>{var t,a;return null!=(t=null==(a=e.body)?void 0:a.surveyResults)?t:[]})))?e:[]}),[t,A]),se=(0,r.useMemo)((()=>{var e,t;if(null!=a&&a.length)return O.current=a,a;const r=null==A||null==(e=A.pages[0])||null==(e=e.body)?void 0:e.healthTrackers;return null!=r&&r.length&&(O.current=r),null!=(t=null!=a?a:r)?t:O.current}),[a,null==A?void 0:A.pages]),de=(0,r.useMemo)((()=>function(e,t){var a;const r=null!=(a=null==e?void 0:e.filter(Boolean).map(f))?a:[],l=[...new Set(t.filter((e=>!e.cancelled)).map((e=>
1f(e.healthTrackerType||e.therapyType))).filter(Boolean))],n=[...new Set([...r,...l])],i=new Set;for(const e of n){const t=p(e);t&&i.add(t)}return u.filter((e=>i.has(e)))}(se,ae)),[se,ae]),oe=(0,r.useMemo)((()=>function(e){var t;const a=null!=(t=null==e?void 0:e.filter(Boolean).map(f))?t:[],r=new Set;for(const e of a){const t=p(e);t&&r.add(t)}return 0===r.size&&r.add("feeling"),u.filter((e=>r.has(e)))}(se)),[se]);(0,r.useEffect)((()=>{M((e=>{return t=e,(0===(a=de).length?"all"===t:"all"===t?a.length>1:a.includes(t))?e:function(e){return 0===e.length?"all":1===e.length?e[0]:"all"}(de);var t,a}))}),[de]);const ce=(0,r.useMemo)((()=>{return e=ae,"all"===(t=N)?[...e]:e.filter((e=>{return r=t,p((a=e).healthTrackerType||a.therapyType)===r;var a,r}));var e,t}),[N,ae]),he=(0,r.useMemo)((()=>{const e=null==A?void 0:A.pages.at(-1);return le(null==e?void 0:e.headers)}),[null==A?void 0:A.pages]),ue=(0,r.useMemo)((()=>E&&"number"==typeof he&&he>=0?he:ce.length),[he,ce.length,E]),fe=(0,r.useCallback)((e=>{h(K[e])}),[h]),pe=(0,r.useCallback)((async t=>{await async function(e,t){return function(e,t){try{return"1"===window.localStorage.getItem(J(e,t))}catch(e){return!1}}(e,t)}(t,e)?fe(t):(T(t),L(!0))}),[fe,e]),Ce=(0,r.useCallback)((()=>{L(!1),T(null),j(!1)}),[]),ge=(0,r.useCallback)((async()=>{if(!_||w)return;j(!0);try{await async function(e,t){!function(e){var t;const a=P[e];null!=(t=window.OneTrust)&&t.UpdateConsent&&(window.OneTrust.UpdateConsent(a,!0),null==window.OneTrust.SaveConsent||window.OneTrust.SaveConsent())}(e),function(e,t){try{window.localStorage.setItem(J(e,t),"1")}catch(e){}}(e,t)}(_,e)}catch(e){}const t=_;L(!1),T(null),j(!1),fe(t)}),[w,fe,_,e]);return x?te&&D?(0,C.jsx)("div",{className:ie.container,"data-test-id":"health-tracker-loading",children:(0,C.jsx)(i.LeafLoadingSpinner,{label:c("healthTracker.loadingLabel")})}):te&&$?(0,C.jsx)("div",{className:ie.container,"data-test-id":"health-tracker-screen-error",children:(0,C.jsx)(G,{heading:c("healthTracker.errorTitle"),description:c("healthTracker.errorDescription"),testId:"health-tracker-load-error-alert"})}):(0,C.jsxs)(I,{patientKinds:de,appliedEntryFilter:N,onAppliedEntryFilterChange:M,children:[(0,C.jsxs)("div",{className:ie.page,"data-test-id":"health-tracker-page",children:[(0,C.jsx)("section",{className:ie.heroSection,"data-test-id":"health-tracker-hero-band",children:(0,C.jsx)("div",{className:ie.container,children:(0,C.jsxs)("div",{className:ie.heroContent,children:[(0,C.jsx)(i.LeafHeading,{type:"headline-default",tagVariant:"h1","data-test-id":"health-tracker-page-title",children:c("healthTracker.title")}),(0,C.jsx)(U,{kinds:oe,onSelectTracker:e=>{pe(e)}})]})})}),(0,C.jsx)("section",{className:ie.contentSection,children:(0,C.jsx)("div",{className:ie.container,children:(0,C.jsxs)("div",{className:o.contentLayout,children:[(0,C.jsx)(H,{}),(0,C.jsxs)("div",{className:o.historyColumn,children:[(0,C.jsx)(R,{}),(0,C.jsxs)("div",{className:o.historyToolbar,children:[(0,C.jsx)("span",{className:o.entryCountLabel,"data-test-id":"health-tracker-entry-count",children:c("healthTracker.list.entryCountLabel",{count:ue})}),(0,C.jsx)(W,{sortOrder:B,onSortOrderChange:F})]}),(0,C.jsxs)("div",{className:o.entryList,children:[0===ce.length?(0,C.jsx)(d.NpeLeafText,{tag:"p",styleTag:"body-default","data-test-id":"health-tracker-no-entries-message",children:c("healthTracker.list.noEntriesFound")}):null,ce.map((e=>{const t=p(e.healthTrackerType||e.therapyType);return(0,C.jsxs)("div",{"data-test-id":`health-tracker-entry-item-${e.dailyTrackerId}`,children:["feeling"===t?(0,C.jsx)(S,{result:e}):null,"cancer"===t||"multipleSclerosis"===t?(0,C.jsx)(y,{result:e}):null]},e.dailyTrackerId)}))]}),E&&V?(0,C.jsx)("div",{className:o.loadMoreWrapper,children:(0,C.jsx)(i.LeafButton,{variant:"secondary",size:"lg",loading:Q,disabled:Q,text:c("healthTracker.list.loadMoreButton"),"data-test-id":"health-tracker-load-more-button",onClick:()=>{z()}})}):null]})]})})})]}),(0,C.jsx)(m,{isOpen:b,isSubmitting:w,onCancel:Ce,onContinue:()=>{ge()}})]}):null}const de=({onOpenHealthTracker:e})=>{const{t}=(0,l.useTranslation)();return(0,C.jsx)(i.LeafCard,{"data-test-id":"health-tracker-section-card",children:(0,C.jsxs)("div",{className:o.dashboardCard,children:[(0,C.jsxs)("div",{className:o.dashboardCardHeader,children:[(0,C.jsx)(x.Z,{"aria-hidden":!0,
1className:o.dashboardCardIcon,svg:L,height:48,width:48,"data-test-id":"health-tracker-section-icon"}),(0,C.jsx)(i.LeafHeading,{type:"title-small",tagVariant:"h3","data-test-id":"health-tracker-section-title",children:t("healthTracker.tools.title")})]}),(0,C.jsx)(d.NpeLeafText,{tag:"p",styleTag:"body-default","data-test-id":"health-tracker-section-description",children:t("healthTracker.tools.description")}),(0,C.jsx)(i.LeafButton,{variant:"secondary",size:"md",text:t("healthTracker.tools.button"),"data-test-id":"health-tracker-section-open-button",onClick:e})]})})};function oe(e,t,a=!0){const{data:r,isSuccess:l}=function({patientId:e,overrideRootUrl:t,limit:a=ee,offset:r=0,enabled:l=!0}){return(0,X.useQuery)({url:Y,overrideRootUrl:t,params:Object.assign({},e?{patientId:e}:{},{_limit:a,_offset:r}),dataFilter:te},{queryKey:ae(e,a,r),refetchOnWindowFocus:!1,enabled:l&&Boolean(e)})}({patientId:e,overrideRootUrl:t,enabled:a&&Boolean(e)});if(!e||!l||void 0===(null==(n=r)?void 0:n.body))return!1;var n;const{surveyResults:i=[],numberOfRecords:s}=r.body;return"number"==typeof s&&s>0||i.length>0}}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.