PageSourceSearch

https://gnii.ai/_next/static/chunks/pages/performance-c4adfd53b84d2c49.js

js gnii.ai collected 2026-10-05 12:11:59 UTC 58,965 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[187],{56649:function(e,t,a){"use strict";var r=a(8081),n=a.n(r),o=a(23645),i=a.n(o)()(n());i.push([e.id,'.theme-light{--text-primary: #3A3A6F;--text-secondary: #55557e;--text-active: #00003e;--text-disabled: #64649f;--sidebar-scroll: #00003e;--text-increase: #25af0c;--text-decrease: #ef4e4e;--background-primary: #fff;--background-secondary: #f4f4f8;--background-ticker: #f4f4f8;--background-ticker-scroll: #f4f4f8;--background-additional: #dcdce9;--graphs-bg: #dcdce9;--common-scrollbar: #a1a1a1;--btn-color: #efeff5;--headingColor: #00003e;--linkColor: #007dff;--tableChildren: #ebebf2;--text-heading: #00003e;--line-chart-bg: #fff;--theme-toggle-text: #ffd45d}.theme-dark{--text-primary: #b6b6ce;--text-secondary: #55557e;--text-increase: #25af0c;--text-decrease: #ef4e4e;--text-active: #ffd45d;--text-disabled: #f3dfaa;--text-heading: #8D8DB5;--sidebar-scroll: #f1d993;--background-primary: #0d0d47;--background-secondary: #00003e;--common-scrollbar: #555;--background-ticker: #36364f;--background-ticker-scroll: #1f1f46;--graphs-bg: #0D0D47;--background-additional: #252759;--btn-color: #060642;--headingColor: #fff;--linkColor: #ffd45d;--tableChildren: #181750;
1--line-chart-bg: #0D0D47;--theme-toggle-text: #1a1a1a}.theme-black{--text-primary: #a0a0b0;--text-secondary: #5e5f67;--text-increase: #25af0c;--text-decrease: #ef4e4e;--text-active: #ffd45d;--text-disabled: #f3dfaa;--text-heading: #8D8DB5;--sidebar-scroll: #f1d993;--background-primary: #0D0D0D;--background-secondary: #15171B;--common-scrollbar: #555;--background-ticker: #36364f;--background-ticker-scroll: #1f1f46;--graphs-bg: #0D0D47;--background-additional: #293033;--btn-color: #1f1f1f;--headingColor: #fff;--linkColor: #ffd45d;--tableChildren: #181750;--line-chart-bg: #0D0D0D;--theme-toggle-text: #1a1a1a}.app{background:var(--background-primary)}.increase{color:var(--text-increase) !important}.decrease{color:var(--text-decrease) !important}.down{color:var(--text-primary);margin-right:5px}.golden .MuiTabs-root .MuiSvgIcon-root{filter:invert(88%) sepia(51%) saturate(715%) hue-rotate(320deg) brightness(103%) contrast(100%) !important}.theme-light{--text-primary: #3A3A6F;--text-secondary: #55557e;--text-active: #00003e;--text-disabled: #64649f;--sidebar-scroll: #00003e;--text-increase: #25af0c;--text-decrease: #ef4e4e;--background-primary: #fff;--background-secondary: #f4f4f8;--background-ticker: #f4f4f8;--background-ticker-scroll: #f4f4f8;--background-additional: #dcdce9;--graphs-bg: #dcdce9;--common-scrollbar: #a1a1a1;--btn-color: #efeff5;--headingColor: #00003e;--linkColor: #007dff;--tableChildren: #ebebf2;--text-heading: #00003e;--line-chart-bg: #fff;--theme-toggle-text: #ffd45d}.theme-dark{--text-primary: #b6b6ce;--text-secondary: #55557e;--text-increase: #25af0c;--text-decrease: #ef4e4e;--text-active: #ffd45d;--text-disabled: #f3dfaa;--text-heading: #8D8DB5;--sidebar-scroll: #f1d993;--background-primary: #0d0d47;--background-secondary: #00003e;--common-scrollbar: #555;--background-ticker: #36364f;--background-ticker-scroll: #1f1f46;--graphs-bg: #0D0D47;--background-additional: #252759;--btn-color: #060642;--headingColor: #fff;--linkColor: #ffd45d;--tableChildren: #181750;
1--line-chart-bg: #0D0D47;--theme-toggle-text: #1a1a1a}.theme-black{--text-primary: #a0a0b0;--text-secondary: #5e5f67;--text-increase: #25af0c;--text-decrease: #ef4e4e;--text-active: #ffd45d;--text-disabled: #f3dfaa;--text-heading: #8D8DB5;--sidebar-scroll: #f1d993;--background-primary: #0D0D0D;--background-secondary: #15171B;--common-scrollbar: #555;--background-ticker: #36364f;--background-ticker-scroll: #1f1f46;--graphs-bg: #0D0D47;--background-additional: #293033;--btn-color: #1f1f1f;--headingColor: #fff;--linkColor: #ffd45d;--tableChildren: #181750;--line-chart-bg: #0D0D0D;--theme-toggle-text: #1a1a1a}.app{background:var(--background-primary)}.increase{color:var(--text-increase) !important}.decrease{color:var(--text-decrease) !important}.down{color:var(--text-primary);margin-right:5px}.golden .MuiTabs-root .MuiSvgIcon-root{filter:invert(88%) sepia(51%) saturate(715%) hue-rotate(320deg) brightness(103%) contrast(100%) !important}.checkbox-container{display:block;position:relative;padding-left:20px;margin-top:-1px;margin-left:5px;margin-bottom:12px;cursor:pointer;font-size:22px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.checkbox-container input{position:absolute;opacity:0;cursor:pointer;height:0;width:0}.checkmark{position:absolute;top:0;left:0;height:14px;width:14px;border-radius:4px;border:2px solid var(--background-);background:var(--background-additional)}.checkbox-container:hover input~.checkmark{background-color:#ccc}.checkbox-container input:checked~.checkmark{background-color:var(--text-active)}.checkmark:after{content:"";position:absolute;display:none}.checkbox-container input:checked~.checkmark:after{display:block}.checkbox-container .checkmark:after{left:5px;top:2px;width:2px;height:5px;border:solid var(--background-secondary);border-width:0 2px 2px 0;-webkit-transform:rotate(45deg);-ms-transform:rotate(45deg);transform:rotate(45deg)}.label{margin-top:30px;font-size:20px !important;font-weight:400;font-style:normal;letter-spacing:normal;line-height:normal;color:var(--headingColor);font-weight:700}.mainChart{border-radius:10px;padding:20px;background:var(--background-primary)}.mainChart ::-webkit-scrollbar-track{background:var(--background-secondary)}.mainChart ::-webkit-scrollbar{width:5px;height:4px}.mainChart ::-webkit-scrollbar-thumb{background:var(--background-additional);border-radius:10px}.mainChart ::-webkit-scrollbar-thumb:hover{background:var(--common-scrollbar)}@media(max-width: 768px){.mainChart{padding:10px}}.mainChart__header{display:flex;margin-top:10px;align-items:center;justify-content:space-between}@media(max-width: 1170px){.mainChart__header{flex-wrap:wrap}}.mainChart__header-title{flex:0 0 250px;align-self:self-start;font-size:12px !important;font-weight:400;font-style:normal;letter-spacing:normal;line-height:normal;color:var(--headingColor);font-weight:700}@media(max-width: 1400px){.mainChart__header-title{flex:0 0 150px}}.mainChart__header-info{width:100%;justify-content:space-between;font-size:12px !important;font-weight:400;font-style:normal;letter-spacing:normal;line-height:normal;color:var(--text-primary);display:flex;align-items:center}@media(max-width: 1170px){.mainChart__header-info{display:none}}.mainChart__header-info .icon{color:var(--text-active);margin-right:3px}.mainChart__header-info .update,.mainChart__header-info .print,.mainChart__header-info .date{margin:0px 40px}@media(max-width: 768px){.mainChart__header-info .update,.mainChart__header-info .print,.mainChart__header-info .date{margin:0px 10px}}@media(max-width: 600px){.mainChart__header-info .update,.mainChart__header-info .print,.mainChart__header-info .date{display:none}}.mainChart__header-info .print{margin:0px 40px}@media(max-width: 768px){.mainChart__header-info .print{margin:0px 10px}}.mainChart__header-info .print,.mainChart__header-info .refresh{cursor:pointer}@media(max-width: 1170px){.mainChart__header-mainchart{display:none}}.mainChart-wrap{margin-top:20px;display:flex;justify-content:space-between}.mainChart-wrap__sidebar{flex:0 0 250px}.mainChart-wrap__sidebar .col{height:50%;margin-bottom:10px;position:relative}
1.mainChart-wrap__sidebar-label{font-size:10px !important;font-weight:400;font-style:normal;letter-spacing:normal;line-height:normal;color:var(--text-primary);margin-bottom:5px}.mainChart-wrap__sidebar .empty{font-size:12px !important;font-weight:400;font-style:normal;letter-spacing:normal;line-height:normal;color:var(--text-primary);padding:5px 0px}.mainChart-wrap__sidebar-choose{display:flex;align-items:center;border-radius:4px;padding:2px;margin-bottom:10px;background-color:var(--background-secondary);border:1px solid var(--background-additional)}.mainChart-wrap__sidebar-choose p{font-size:14px !important;font-weight:400;font-style:normal;letter-spacing:normal;line-height:normal;color:var(--text-primary);padding:0;margin:0}.mainChart-wrap__sidebar-choose .add{cursor:pointer;font-size:16px;padding:8px 12px;border-radius:4px;color:var(--text-active);font-weight:500;background-color:var(--background-additional)}.mainChart-wrap__sidebar-choose .add:nth-child(2){margin-left:auto}.mainChart-wrap__sidebar-choose .browse{margin-left:auto;margin-right:5px;font-size:14px !important;font-weight:400;font-style:normal;letter-spacing:normal;line-height:normal;color:var(--text-primary);font-weight:500;color:var(--text-active);cursor:pointer}.mainChart-wrap__sidebar-choose input{width:100%;border:0px;background-color:rgba(0,0,0,0);outline:none;padding:10px 0px;font-weight:400;padding-left:10px;font-size:12px !important;font-weight:400;font-style:normal;letter-spacing:normal;line-height:normal;color:var(--text-primary);font-style:normal}.mainChart-wrap__sidebar-choose ::placeholder{font-size:12px !important;font-weight:400;font-style:normal;letter-spacing:normal;line-height:normal;color:var(--text-primary);font-family:"Montserrat"}.mainChart-wrap__sidebar-row{display:flex;align-items:center;padding:2px;margin-bottom:10px;background-color:var(--background-secondary)}.mainChart-wrap__sidebar-row p{font-size:14px !important;font-weight:400;font-style:normal;letter-spacing:normal;line-height:normal;color:var(--text-primary);padding:0;margin:0}.mainChart-wrap__sidebar-row .add{cursor:pointer;font-size:16px;padding:8px 12px;color:var(--text-active);font-weight:500;background-color:var(--background-additional)}.mainChart-wrap__sidebar-row input{width:100%;border:0px;background-color:rgba(0,0,0,0);outline:none;padding:10px 0px;font-weight:400;padding-left:10px;font-size:12px !important;font-weight:400;font-style:normal;letter-spacing:normal;line-height:normal;color:var(--text-primary);font-style:normal}.mainChart-wrap__sidebar-row ::placeholder{font-size:12px !important;font-weight:400;font-style:normal;letter-spacing:normal;line-height:normal;color:var(--text-primary);font-family:"Montserrat"}.mainChart-wrap__sidebar-list{position:relative;overflow-y:scroll;margin:2px 4px;height:200px;border-radius:4px;background-color:var(--background-secondary)}.mainChart-wrap__sidebar-list-popup{display:none;position:absolute;z-index:100;padding:3px;top:0px;left:0px;width:95%;background:var(--background-primary);border-radius:4px;border:1px solid var(--background-additional)}.mainChart-wrap__sidebar-list-popup__item{cursor:pointer;background:var(--background-secondary);padding:5px;font-size:12px !important;font-weight:400;font-style:normal;letter-spacing:normal;line-height:normal;color:var(--text-primary);opacity:.8;width:100%}.mainChart-wrap__sidebar-list-popup__item:hover{opacity:1}.mainChart-wrap__sidebar-list-popup__item:active{background:var(--text-active)}.mainChart-wrap__sidebar-list__item{padding:10px 5px;display:flex;align-items:center;border-bottom:1px solid var(--background-primary)}.mainChart-wrap__sidebar-list__item .point{width:8px;height:8px;border-radius:8px;background-color:#9acd32;margin-right:5px}.mainChart-wrap__sidebar-list__item .delete{margin-left:auto;width:16px;height:16px;color:var(--text-active);cursor:pointer}.mainChart-wrap__sidebar-list__item .name{font-size:12px !important;font-weight:400;font-style:normal;letter-spacing:normal;line-height:normal;color:var(--text-primary);max-width:70%}@media(max-width: 1170px){.mainChart-wrap__sidebar-list{height:115px}}@media(max-width: 480px){.mainChart-wrap__sidebar-list{height:auto;min-height:120px}}@media(max-width: 1170px){.mainChart-wrap__sidebar{width:100%;display:flex;justify-content:space-between}.mainChart-wrap__sidebar .col{width:49%}}@media(max-width: 480px){.mainChart-wrap__sidebar{flex-direction:column}.mainChart-wrap__sidebar .col{width:100%}}.mainChart-wrap__content{width:calc(100% - 250px);padding:10px}.mainChart-wrap__content .filter{display:flex}
1.mainChart-wrap__content .filter .legends{display:flex;align-self:center;justify-content:center;align-items:center;width:100%;text-align:center;cursor:pointer;font-size:12px !important;font-weight:400;font-style:normal;letter-spacing:normal;line-height:normal;color:var(--common-scrollbar);align-content:center}.mainChart-wrap__content .filter .legends .legend{display:flex;margin:0 10px}.mainChart-wrap__content .filter .legends .active{font-size:12px !important;font-weight:400;font-style:normal;letter-spacing:normal;line-height:normal;color:var(--text-active);font-weight:600}.mainChart-wrap__content .filter .dropdown{margin-top:10px;width:200px;margin-left:auto}@media(max-width: 979px){.mainChart-wrap__content .filter .dropdown{width:100%}}.mainChart-wrap__content-header{display:flex;justify-content:flex-start;align-items:center}.mainChart-wrap__content-header__buttons{flex:0 0 448px;background-color:var(--background-secondary);border:2px solid var(--background-additional);border-radius:4px;padding:5px 0px;z-index:3}@media(max-width: 1170px){.mainChart-wrap__content-header__buttons{flex:0 0 auto}}@media(max-width: 768px){.mainChart-wrap__content-header__buttons{flex:0 0 100%}}.mainChart-wrap__content-header__buttons .btn{cursor:pointer;background-color:rgba(0,0,0,0);border:0px;padding:2px 10px;border-right:2px solid var(--background-additional);color:var(--text-secondary)}@media(max-width: 480px){.mainChart-wrap__content-header__buttons .btn{padding:0px 7px;font-size:12px}}.mainChart-wrap__content-header__buttons .active{color:var(--text-active)}.mainChart-wrap__content-header__buttons .icon{color:var(--text-active);margin-right:5px}@media(max-width: 979px){.mainChart-wrap__content-header__buttons{margin-bottom:10px}}@media(max-width: 979px){.mainChart-wrap__content-header{flex-direction:column-reverse;align-items:flex-start}}@media(max-width: 480px){.mainChart-wrap__content-header{padding:0px 5px}}.mainChart-wrap__content .chart-wrap{overflow-x:hidden}.mainChart-wrap__content-chart{margin-top:20px;position:relative}.mainChart-wrap__content-chart canvas{height:520px !important}.mainChart-wrap__content-chart .loader{font-size:12px !important;font-style:normal;letter-spacing:normal;text-align:center;margin-left:20px;line-height:normal;color:var(--headingColor);font-weight:700}.mainChart-wrap__content-chart .pos-arrow,.mainChart-wrap__content-chart .guide-label__arrow{position:absolute;border:9px solid rgba(0,0,0,0)}.mainChart-wrap__content-chart .stock-wrap{display:flex;padding:5px 20px}.mainChart-wrap__content-chart .zero{font-size:10px !important;font-weight:400;font-style:normal;letter-spacing:normal;line-height:normal;color:var(--text-secondary)}.mainChart-wrap__content-chart .line{position:absolute;top:0px;right:120px;width:1px;height:95%;background-color:var(--background-additional)}@media(max-width: 1400px){.mainChart-wrap__content-chart .line{right:90px}}@media(max-width: 480px){.mainChart-wrap__content-chart .line{right:95px}}.mainChart-wrap__content-chart .guide-label__arrow{border-right:7px solid var(--text-active)}.mainChart-wrap__content-chart .guide-label{position:absolute;top:0px;background-color:var(--text-active);color:var(--background-primary)}@media(max-width: 1170px){.mainChart-wrap__content{width:100%}}@media(max-width: 480px){.mainChart-wrap__content{padding:0px}}@media(max-width: 1170px){.mainChart-wrap{flex-direction:column}}.mainChart .datepicker{border:0px;background:rgba(0,0,0,0)}.mainChart .datepicker .btn{border:0px}@media(min-width: 2000px){.mainChart-wrap__sidebar-list{min-height:230px}}',""]),t.Z=i},20907:function(e,t,a){"use strict";var r=a(8081),n=a.n(r),o=a(23645),i=a.n(o)()(n());i.push([e.id,".theme-light{--text-primary: #3A3A6F;--text-secondary: #55557e;--text-active: #00003e;--text-disabled: #64649f;--sidebar-scroll: #00003e;--text-increase: #25af0c;--text-decrease: #ef4e4e;--background-primary: #fff;--background-secondary: #f4f4f8;--background-ticker: #f4f4f8;--background-ticker-scroll: #f4f4f8;--background-additional: #dcdce9;--graphs-bg: #dcdce9;--common-scrollbar: #a1a1a1;--btn-color: #efeff5;--headingColor: #00003e;--linkColor: #007dff;--tableChildren: #ebebf2;--text-heading: #00003e;--line-chart-bg: #fff;--theme-toggle-text: #ffd45d}.theme-dark{--text-primary: #b6b6ce;--text-secondary: #55557e;--text-increase: #25af0c;--text-decrease: #ef4e4e;--text-active: #ffd45d;--text-disabled: #f3dfaa;--text-heading: #8D8DB5;--sidebar-scroll: #f1d993;--background-primary: #0d0d47;--background-secondary: #00003e;--common-scrollbar: #555;--background-ticker: #36364f;--background-ticker-scroll: #1f1f46;--graphs-bg: #0D0D47;--background-additional: #252759;--btn-color: #060642;--headingColor: #fff;--linkColor: #ffd45d;--tableChildren: #181750;
1--line-chart-bg: #0D0D47;--theme-toggle-text: #1a1a1a}.theme-black{--text-primary: #a0a0b0;--text-secondary: #5e5f67;--text-increase: #25af0c;--text-decrease: #ef4e4e;--text-active: #ffd45d;--text-disabled: #f3dfaa;--text-heading: #8D8DB5;--sidebar-scroll: #f1d993;--background-primary: #0D0D0D;--background-secondary: #15171B;--common-scrollbar: #555;--background-ticker: #36364f;--background-ticker-scroll: #1f1f46;--graphs-bg: #0D0D47;--background-additional: #293033;--btn-color: #1f1f1f;--headingColor: #fff;--linkColor: #ffd45d;--tableChildren: #181750;--line-chart-bg: #0D0D0D;--theme-toggle-text: #1a1a1a}.app{background:var(--background-primary)}.increase{color:var(--text-increase) !important}.decrease{color:var(--text-decrease) !important}.down{color:var(--text-primary);margin-right:5px}.golden .MuiTabs-root .MuiSvgIcon-root{filter:invert(88%) sepia(51%) saturate(715%) hue-rotate(320deg) brightness(103%) contrast(100%) !important}.performance{margin-top:30px}.performance .items-wrap{overflow:auto;border-radius:10px;padding:20px;background:var(--background-primary);border-top-left-radius:0px}@media(max-width: 768px){.performance .items-wrap{padding:10px}}.performance__label{color:var(--headingColor)}.performance__tabs-indicator .MuiTabs-indicator{background:var(--text-active) !important}.performance__tabs-tab{font-size:12px !important;font-weight:500;font-style:normal;letter-spacing:normal;line-height:normal;color:var(--text-primary);padding:20px;color:var(--text-secondary) !important;font-weight:500 !important;text-transform:capitalize !important;background-color:var(--btn-color) !important;cursor:pointer;border-top-left-radius:10px !important;border-top-right-radius:10px !important}.performance__tabs-tab.active{background:var(--background-primary) !important;color:var(--headingColor) !important;font-weight:700 !important}.performance__content{display:flex;flex-wrap:wrap;justify-content:space-around}.performance__content p{font-size:12px !important;font-style:normal;letter-spacing:normal;text-align:left;line-height:normal;color:var(--headingColor);font-weight:700}.performance__content-item{display:flex;justify-content:space-between;width:22%;padding:10px 11px;margin-top:10px;border-radius:4px;background-color:var(--background-secondary)}.performance__content-item__title{font-size:12px !important;font-weight:400;font-style:normal;letter-spacing:normal;line-height:normal;color:var(--text-primary)}.performance__content-item__value{font-size:12px !important;font-weight:400;font-style:normal;letter-spacing:normal;line-height:normal;color:var(--text-active)}@media(max-width: 979px){.performance__content-item{width:20%}}@media(max-width: 600px){.performance__content{width:1000px}}",""]),t.Z=i},45:function(e,t,a){"use strict";var r=a(8081),n=a.n(r),o=a(23645),i=a.n(o)()(n());i.push([e.id,".theme-light{--text-primary: #3A3A6F;--text-secondary: #55557e;--text-active: #00003e;--text-disabled: #64649f;--sidebar-scroll: #00003e;--text-increase: #25af0c;--text-decrease: #ef4e4e;--background-primary: #fff;--background-secondary: #f4f4f8;--background-ticker: #f4f4f8;--background-ticker-scroll: #f4f4f8;--background-additional: #dcdce9;--graphs-bg: #dcdce9;--common-scrollbar: #a1a1a1;--btn-color: #efeff5;--headingColor: #00003e;--linkColor: #007dff;--tableChildren: #ebebf2;--text-heading: #00003e;--line-chart-bg: #fff;--theme-toggle-text: #ffd45d}.theme-dark{--text-primary: #b6b6ce;--text-secondary: #55557e;--text-increase: #25af0c;--text-decrease: #ef4e4e;--text-active: #ffd45d;--text-disabled: #f3dfaa;--text-heading: #8D8DB5;--sidebar-scroll: #f1d993;--background-primary: #0d0d47;--background-secondary: #00003e;--common-scrollbar: #555;--background-ticker: #36364f;--background-ticker-scroll: #1f1f46;--graphs-bg: #0D0D47;--background-additional: #252759;--btn-color: #060642;--headingColor: #fff;--linkColor: #ffd45d;--tableChildren: #181750;
1--line-chart-bg: #0D0D47;--theme-toggle-text: #1a1a1a}.theme-black{--text-primary: #a0a0b0;--text-secondary: #5e5f67;--text-increase: #25af0c;--text-decrease: #ef4e4e;--text-active: #ffd45d;--text-disabled: #f3dfaa;--text-heading: #8D8DB5;--sidebar-scroll: #f1d993;--background-primary: #0D0D0D;--background-secondary: #15171B;--common-scrollbar: #555;--background-ticker: #36364f;--background-ticker-scroll: #1f1f46;--graphs-bg: #0D0D47;--background-additional: #293033;--btn-color: #1f1f1f;--headingColor: #fff;--linkColor: #ffd45d;--tableChildren: #181750;--line-chart-bg: #0D0D0D;--theme-toggle-text: #1a1a1a}.app{background:var(--background-primary)}.increase{color:var(--text-increase) !important}.decrease{color:var(--text-decrease) !important}.down{color:var(--text-primary);margin-right:5px}.golden .MuiTabs-root .MuiSvgIcon-root{filter:invert(88%) sepia(51%) saturate(715%) hue-rotate(320deg) brightness(103%) contrast(100%) !important}.securities{border-bottom-left-radius:10px;border-bottom-right-radius:10px;border-top-right-radius:10px;background:var(--background-primary);padding:20px}.securities .subTabs__tabs-indicator .MuiTabs-indicator{background:var(--text-active) !important}.securities .subTabs__tabs-tab{font-size:12px !important;font-weight:500;font-style:normal;letter-spacing:normal;line-height:normal;color:var(--text-primary);padding:20px;color:var(--text-secondary) !important;font-weight:500 !important;text-transform:capitalize !important;background-color:var(--btn-color) !important;cursor:pointer;border-top-left-radius:10px !important;border-top-right-radius:10px !important}.securities .subTabs__tabs-tab.active{background:var(--background-primary) !important;color:var(--headingColor) !important;font-weight:700 !important}.securities .filters{display:flex;justify-content:space-between}.securities .filters .wrapper{display:flex}.securities .filters .wrapper .search_filter{margin-left:10px;width:200px}.securities .filters .search-box{height:36px;border-radius:3px;margin-bottom:20px;outline:none;padding:0 10px;width:200px;background-color:var(--background-secondary) !important;border:1px solid var(--background-additional) !important;color:var(--text-primary)}.securities .loader{font-size:12px !important;font-style:normal;letter-spacing:normal;text-align:left;margin-left:20px;margin-top:20px;line-height:normal;color:var(--headingColor);font-weight:700}.securities__label{margin-top:30px;color:var(--headingColor)}.slick-prev:before,.slick-next:before{display:none}",""]),t.Z=i},20610:function(e,t,a){"use strict";var r=a(8081),n=a.n(r),o=a(23645),i=a.n(o)()(n());i.push([e.id,".theme-light{--text-primary: #3A3A6F;--text-secondary: #55557e;--text-active: #00003e;--text-disabled: #64649f;--sidebar-scroll: #00003e;--text-increase: #25af0c;--text-decrease: #ef4e4e;--background-primary: #fff;--background-secondary: #f4f4f8;--background-ticker: #f4f4f8;--background-ticker-scroll: #f4f4f8;--background-additional: #dcdce9;--graphs-bg: #dcdce9;--common-scrollbar: #a1a1a1;--btn-color: #efeff5;--headingColor: #00003e;--linkColor: #007dff;--tableChildren: #ebebf2;--text-heading: #00003e;--line-chart-bg: #fff;--theme-toggle-text: #ffd45d}.theme-dark{--text-primary: #b6b6ce;--text-secondary: #55557e;--text-increase: #25af0c;--text-decrease: #ef4e4e;--text-active: #ffd45d;--text-disabled: #f3dfaa;--text-heading: #8D8DB5;--sidebar-scroll: #f1d993;--background-primary: #0d0d47;--background-secondary: #00003e;--common-scrollbar: #555;--background-ticker: #36364f;--background-ticker-scroll: #1f1f46;--graphs-bg: #0D0D47;--background-additional: #252759;--btn-color: #060642;--headingColor: #fff;--linkColor: #ffd45d;--tableChildren: #181750;
1--line-chart-bg: #0D0D47;--theme-toggle-text: #1a1a1a}.theme-black{--text-primary: #a0a0b0;--text-secondary: #5e5f67;--text-increase: #25af0c;--text-decrease: #ef4e4e;--text-active: #ffd45d;--text-disabled: #f3dfaa;--text-heading: #8D8DB5;--sidebar-scroll: #f1d993;--background-primary: #0D0D0D;--background-secondary: #15171B;--common-scrollbar: #555;--background-ticker: #36364f;--background-ticker-scroll: #1f1f46;--graphs-bg: #0D0D47;--background-additional: #293033;--btn-color: #1f1f1f;--headingColor: #fff;--linkColor: #ffd45d;--tableChildren: #181750;--line-chart-bg: #0D0D0D;--theme-toggle-text: #1a1a1a}.app{background:var(--background-primary)}.increase{color:var(--text-increase) !important}.decrease{color:var(--text-decrease) !important}.down{color:var(--text-primary);margin-right:5px}.golden .MuiTabs-root .MuiSvgIcon-root{filter:invert(88%) sepia(51%) saturate(715%) hue-rotate(320deg) brightness(103%) contrast(100%) !important}.css-26l3qy-menu{background:var(--background-primary) !important;color:var(--text-primary);border:1px solid var(--background-additional);margin-top:unset !important;font-size:12px}.css-1s2u09g-control,.css-1pahdxg-control{background-color:var(--background-secondary) !important;border:1px solid var(--background-additional) !important;color:var(--text-primary);box-shadow:unset !important}.css-14el2xx-placeholder,.css-qc6sy-singleValue{color:unset !important;font-size:12px}.css-yt9ioa-option{background:var(--background-primary) !important}.css-9gakcf-option{background:var(--background-additional) !important;color:var(--text-primary) !important}.css-1pndypt-Input{color:var(--text-primary) !important}.css-4ljt47-MenuList div:hover,.css-4ljt47-MenuList .css-1n7v3ny-option{background-color:var(--background-secondary) !important;color:var(--text-primary) !important}",""]),t.Z=i},83034:function(e,t,a){"use strict";a.r(t),a.d(t,{default:function(){return H}});var r=a(67294),n=a(7450),o=a(59499),i=a(27812),l=a(16835),c=a(9198),d=a.n(c),s=a(78425),p=a(30381),u=a.n(p),m=a(53328),f=a(55376),h=a(75980),g=a(85893);function b(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function v(e){var t=e.stocks,a=e.portfolio,c=e.dateRangeProps,d=e.theme,p=e.riskList,m=e.activeLegend,v=e.activeLegend2,x=e.activeLegend3,k=e.selectedPortfolio,y=(0,n.m)().selectedClient,_=r.useState(),w=(0,l.Z)(_,2),C=w[0],D=w[1],j=r.useState(),P=(0,l.Z)(j,2),S=P[0],N=P[1],O=r.useState(),Z=(0,l.Z)(O,2),M=Z[0],I=Z[1],Y=r.useState([]),R=(0,l.Z)(Y,2),T=R[0],z=R[1],A=r.useState(),E=(0,l.Z)(A,2),L=E[0],B=E[1],F=r.useState(),U=(0,l.Z)(F,2),V=U[0],G=U[1],Q=r.useState(),q=(0,l.Z)(Q,2),J=q[0],K=q[1],X=r.useState(),W=(0,l.Z)(X,2),$=W[0],H=W[1],ee=r.useState(!1),te=(0,l.Z)(ee,2),ae=te[0],re=te[1],ne=r.useState(),oe=(0,l.Z)(ne,2),ie=oe[0],le=oe[1];(0,r.useEffect)((function(){if(re(!0),sessionStorage.getItem("clientId")){var e=[];null===t||void 0===t||t.map((function(t){null!==t&&void 0!==t&&t.active&&e.push(null===t||void 0===t?void 0:t.securityId)}));var r=[];null===a||void 0===a||a.map((function(e){null!==e&&void 0!==e&&e.active&&r.push(null===e||void 0===e?void 0:e.id)}));var n={portfolioIdList:r,clientIdList:(null===r||void 0===r?void 0:r.length)>0?[]:[sessionStorage.getItem("clientId")],securityIdList:[].concat(e,[ie])};c[0]&&c[1]&&(p&&(0,s.kb)(n,u()(c[0]).format("DD-MM-YYYY"),u()(c[1]).format("DD-MM-YYYY")).then((function(e){I(e)})).catch((function(e){console.log(e)})).finally((function(){re(!1)})),(0,s.bb)(n,u()(c[0]).format("DD-MM-YYYY"),u()(c[1]).format("DD-MM-YYYY")).then((function(e){N(e),D(e),B("")})).catch((function(e){console.log(e)})).finally((function(){re(!1)})))}}),[c,t,a,p]),(0,r.useEffect)((function(){re(!0),(0,s.ys)(k||"").then((function(e){if(e.securityUUID){var r=[];null===a||void 0===a||a.map((function(e){null!==e&&void 0!==e&&e.active&&r.push(null===e||void 0===e?void 0:e.id)}));var n=[];null===t||void 0===t||t.map((function(e){null!==e&&void 0!==e&&e.active&&n.push(null===e||void 0===e?void 0:e.securityId)})),le(e.securityUUID);var o={portfolioIdList:r,clientIdList:(null===r||void 0===r?void 0:r.length)>0?[]:[sessionStorage.getItem("clientId")],securityIdList:[].concat(n,[e.securityUUID])};(0,s.bb)(o,u()(c[0]).format("DD-MM-YYYY"),u()(c[1]).format("DD-MM-YYYY")).then((function(t){N(t);var a=[];a.push(e.securityUUID),z(a)})).catch((function(e){console.log(e)})).finally((function(){re(!1)}))}}))}),[k,c,a]);var ce={responsive:!0,maintainAspectRatio:!1,interaction:{intersect:!1},elements:{point:{radius:0}}
1,stacked:!1,plugins:{legend:{display:!1},tooltip:{callbacks:{label:function(e){var t,a=e.dataset.label||"";null!==e.parsed.y&&(null!==e&&void 0!==e&&null!==(t=e.dataset)&&void 0!==t&&t.yAxisID?a+=": "+(0,h.QV)(e.parsed.y):a+=": "+(0,h.QV)(e.parsed.y)+"%");return a}}}},scales:{yAxes:{grid:{color:"rgba(129,129,129,0.11)"},title:{display:!0,text:"Performance",color:1===d?"#3c3c6c":2===d?"#5b5757":"#54548f"},ticks:{beginAtZero:!0,color:1===d?"#3c3c6c":2===d?"#5b5757":"#54548f",callback:function(e){var t;return(null===(t=parseFloat(e))||void 0===t?void 0:t.toFixed(1))+"%"}}},xAxes:{grid:{drawBorder:!1,color:"rgba(129,129,129,0.11)"},ticks:{beginAtZero:!0,color:1===d?"#3c3c6c":2===d?"#5b5757":"#54548f"}},barY:{type:"linear",display:!0,title:{display:!0,text:null!==p&&void 0!==p&&p.label?null===p||void 0===p?void 0:p.label:"No risk selected",color:1===d?"#3c3c6c":2===d?"#5b5757":"#54548f"},position:"right",grid:{drawBorder:!1,color:"rgba(129,129,129,0.11)"},ticks:{beginAtZero:!0,color:1===d?"#3c3c6c":2===d?"#5b5757":"#54548f",callback:function(e){var t;return null===(t=parseFloat(e))||void 0===t?void 0:t.toFixed(2)}}}}};return(0,r.useEffect)((function(){if(C){var e,r,n,o,i=[],l=[],c=[];(null===t||void 0===t?void 0:t.length)>0&&(null===t||void 0===t||t.map((function(e){var t,a,r;null!==e&&void 0!==e&&e.active&&(null===C||void 0===C||null===(t=C.benchmark)||void 0===t||null===(a=t[null===e||void 0===e?void 0:e.securityId])||void 0===a||a.forEach((function(t){t.color=null===e||void 0===e?void 0:e.color,t.secondaryColor=null===e||void 0===e?void 0:e.secondaryColor})),null===i||void 0===i||i.push(null===C||void 0===C||null===(r=C.benchmark)||void 0===r?void 0:r[null===e||void 0===e?void 0:e.securityId]))}))),(null===a||void 0===a?void 0:a.length)>0&&(null===a||void 0===a||a.map((function(e){var t,a,r;null!==e&&void 0!==e&&e.active&&(null===C||void 0===C||null===(t=C.portfolioPerformance)||void 0===t||null===(a=t[null===e||void 0===e?void 0:e.id])||void 0===a||a.forEach((function(t){t.color=null===e||void 0===e?void 0:e.color,t.secondaryColor=null===e||void 0===e?void 0:e.secondaryColor})),null===l||void 0===l||l.push(null===C||void 0===C||null===(r=C.portfolioPerformance)||void 0===r?void 0:r[null===e||void 0===e?void 0:e.id]))}))),null===C||void 0===C||null===(e=C.clientPerformance)||void 0===e||null===(r=e["".concat(sessionStorage.getItem("clientId"))])||void 0===r||r.forEach((function(e){e.color="rgba(67, 83, 254, 0.5)",e.secondaryColor="rgba(67, 83, 254, 0.2)"})),o=null===C||void 0===C||null===(n=C.clientPerformance)||void 0===n?void 0:n["".concat(sessionStorage.getItem("clientId"))],(null===l||void 0===l?void 0:l.length)>0&&(null===l||void 0===l||l.map((function(e){(null===e||void 0===e?void 0:e.length)>0&&c.push(e)}))),(null===i||void 0===i?void 0:i.length)>0&&(null===i||void 0===i||i.map((function(e){(null===e||void 0===e?void 0:e.length)>0&&c.push(e)}))),o&&c.push(o),B(c)}}),[C]),(0,r.useEffect)((function(){if(S&&T){var e=[],t=[];null===T||void 0===T||T.map((function(t){var a,r,n;null===S||void 0===S||null===(a=S.benchmark)||void 0===a||null===(r=a[t])||void 0===r||r.forEach((function(e){e.color="red",e.secondaryColor="red"})),null===e||void 0===e||e.push(null===S||void 0===S||null===(n=S.benchmark)||void 0===n?void 0:n[t])})),(null===e||void 0===e?void 0:e.length)>0&&(null===e||void 0===e||e.map((function(e){(null===e||void 0===e?void 0:e.length)>0&&t.push(e)}))),G(t)}}),[S,T]),(0,r.useEffect)((function(){if(M){var e,t,r,n,o=[],i=[];(null===a||void 0===a?void 0:a.length)>0&&(null===a||void 0===a||a.map((function(e){var t,a,r;null!==e&&void 0!==e&&e.active&&(null===M||void 0===M||null===(t=M.portfolioPerformance)||void 0===t||null===(a=t[null===e||void 0===e?void 0:e.id])||void 0===a||a.forEach((function(t){t.color=null===e||void 0===e?void 0:e.color,t.secondaryColor=null===e||void 0===e?void 0:e.secondaryColor,t.portfolio=null===e||void 0===e?void 0:e.name})),null===o||void 0===o||o.push(null===M||void 0===M||null===(r=M.portfolioPerformance)||void 0===r?void 0:r[null===e||void 0===e?void 0:e.id]))}))),(null===o||void 0===o?void 0:o.length)>0&&(null===o||void 0===o||o.map((function(e){(null===e||void 0===e?void 0:e.length)>0&&i.push(e)}))),null===M||void 0===M||null===(e=M.clientPerformance)||void 0===e||null===(t=e["".concat(sessionStorage.getItem("clientId"))])||void 0===t||t.forEach((function(e){e.color="rgba(67, 83, 254, 0.5)",e.secondaryColor="rgba(67, 83, 254, 0.2)",e.portfolio=null===y||void 0===y?void 0:y.name})),(n=null===M||void 0===M||null===(r=M.clientPerformance)||void 0===r?void 0:r["".concat(sessionStorage.getItem("clientId"))])&&i.push(n),K(i)}}),[M]),(0,r.useEffect)((function(){var e=[];
1if((null===L||void 0===L?void 0:L.length)>0){var t=[];m&&(null===L||void 0===L||L.map((function(t){null===t||void 0===t||t.map((function(t){var a=null===t||void 0===t?void 0:t.timestamp.split("-"),r=new Date(a[2],a[1]-1,a[0]);e.push(r.getTime())}))}))),v&&(null===J||void 0===J||J.map((function(t){null===t||void 0===t||t.map((function(t){var a=null===t||void 0===t?void 0:t.date.split("-"),r=new Date(a[2],a[1]-1,a[0]);e.push(r.getTime())}))}))),x&&(null===V||void 0===V?void 0:V.length)>0&&(null===V||void 0===V||V.map((function(t){null===t||void 0===t||t.map((function(t){var a=null===t||void 0===t?void 0:t.timestamp.split("-"),r=new Date(a[2],a[1]-1,a[0]);e.push(r.getTime())}))})));var a=(0,i.Z)(new Set(e));a.sort((function(e,t){return e-t})),null===a||void 0===a||a.map((function(e){var t;null===(t=u()(e))||void 0===t||t.format("DD-MM-YYYY")})),m&&(null===L||void 0===L||L.map((function(e,a){var r,n,o;null===t||void 0===t||t.push({label:null===(r=L[a][0])||void 0===r?void 0:r.name,data:L[a].map((function(e){return{x:null===e||void 0===e?void 0:e.timestamp,y:null===e||void 0===e?void 0:e.change}})),borderColor:null===(n=L[a])||void 0===n?void 0:n.map((function(e){return null===e||void 0===e?void 0:e.color})),backgroundColor:null===(o=L[a])||void 0===o?void 0:o.map((function(e){return null===e||void 0===e?void 0:e.color})),lineTension:.5})}))),v&&(null===J||void 0===J||J.map((function(e,a){var r,n,o;null===t||void 0===t||t.push({yAxisID:"barY",label:(null===(r=e[0])||void 0===r?void 0:r.portfolio)+" "+(null===p||void 0===p?void 0:p.label),data:J[a].map((function(e){return{x:null===e||void 0===e?void 0:e.date,y:null===e||void 0===e?void 0:e[null===p||void 0===p?void 0:p.value]}})),borderColor:null===(n=J[a])||void 0===n?void 0:n.map((function(e){return null===e||void 0===e?void 0:e.color})),backgroundColor:null===(o=J[a])||void 0===o?void 0:o.map((function(e){return null===e||void 0===e?void 0:e.color})),lineTension:.5,borderDash:[10,5]})}))),x&&(null===V||void 0===V||V.map((function(e,a){var r,n,o;null===t||void 0===t||t.push({label:null===(r=V[a][0])||void 0===r?void 0:r.name,data:V[a].map((function(e){return{x:null===e||void 0===e?void 0:e.timestamp,y:null===e||void 0===e?void 0:e.change}})),borderColor:null===(n=V[a])||void 0===n?void 0:n.map((function(e){return null===e||void 0===e?void 0:e.color})),backgroundColor:null===(o=V[a])||void 0===o?void 0:o.map((function(e){return null===e||void 0===e?void 0:e.color})),lineTension:.5})})));var r=[];null===a||void 0===a||a.map((function(e){var t;r.push(null===(t=u()(e))||void 0===t?void 0:t.format("DD-MM-YYYY"))}));var n={labels:r,datasets:t};H((function(){return function(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{};t%2?b(Object(a),!0).forEach((function(t){(0,o.Z)(e,t,a[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):b(Object(a)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))}))}return e}({},n)}))}}),[L,J,V,m,v,x]),(0,g.jsx)(g.Fragment,{children:!ae&&(null===L||void 0===L?void 0:L.length)>0&&null!==$&&void 0!==$&&$.labels?(0,g.jsx)(f.x1,{options:ce,data:$}):(0,g.jsx)(g.Fragment,{children:(0,g.jsx)("p",{className:"loader",children:"Loading..."})})})}m.kL.register(m.uw,m.f$,m.od,m.jn,m.Dx,m.u,m.De);a(59339),a(49801),a(92479),a(15745),a(77444);var x=a(26613),k=a(54364),y=a(46066),_=a(20724),w=a(13379);function C(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function D(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{};t%2?C(Object(a),!0).forEach((function(t){(0,o.Z)(e,t,a[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):C(Object(a)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))}))}return e}var j=function(e){var t=e.refresh,a=e.selectedDate,n=e.theme,o=(0,r.useState)([]),i=o[0],l=o[1];(0,r.useEffect)((function(){var e,t=a?null===(e=u()(a))||void 0===e?void 0:e.format("DD-MM-YYYY"):u()().format("DD-MM-YYYY");(0,s.ik)(t).then((function(e){l(e)})).catch((function(){}))}),[a,t]);var c={dots:!1,infinite:!1,speed:500,slidesToShow:5,nextArrow:(0,g.jsx)(w.Z,{sx:{fill:1===n?"#00003e":"#ffd45d"}}),prevArrow:(0,g.jsx)(_.Z,{sx:{fill:1===n?"#00003e":"#ffd45d"}}),slidesToScroll:5,responsive:[{breakpoint:1400,settings:{slidesToShow:4,slidesToScroll:4}},{breakpoint:1024,settings:{slidesToShow:3,slidesToScroll:3}},{breakpoint:760,settings:{slidesToShow:2,slidesToScroll:2}},{breakpoint:560,settings:{slidesToShow:1,slidesToScroll:1}}]};return(0,g.jsx)("div",{className:"analysis__slider",children:(0,g.jsx)(y.Z,D(D({},c),{},{children:(null===i||void 0===i?void 0:i.length)>0&&(null===i||void 0===i?void 0:i.map((function(e,t){return(0,g.jsxs)("div",{className:"card",children:[(null===e||void 0===e?void 0:e.change)<0?(0,g.jsx)(x.Z,{style:{color:"#ef4e4e",marginRight:"2px"}}):(0,g.jsx)(k.Z,{style:{color:"#25af0c",marginRight:"2px"}}),(0,g.jsxs)("div",{children:[(0,g.jsx)("h3",{className:"category",children:null!==e&&void 0!==e&&e.name?null===e||void 0===e?void 0:e.name:"-"}),(0,g.jsx)("p",{className:"unitPrice",children:null!==e&&void 0!==e&&e.unitPrice?
1(0,h.QV)(null===e||void 0===e?void 0:e.unitPrice):"-"}),(0,g.jsxs)("div",{className:"flex",children:[(0,g.jsxs)("p",{className:(null===e||void 0===e?void 0:e.changeInValue)<0?"decrease":"increase",children:[(null===e||void 0===e?void 0:e.changeInValue)>0?"+":"",null!==e&&void 0!==e&&e.changeInValue?(0,h.QV)(null===e||void 0===e?void 0:e.changeInValue):"-"]}),(0,g.jsxs)("p",{className:"value2 ".concat((null===e||void 0===e?void 0:e.change)<0?"decrease":"increase"),children:[(null===e||void 0===e?void 0:e.change)>0?"+":"",null!==e&&void 0!==e&&e.change?(0,h.QV)(null===e||void 0===e?void 0:e.change)+"%":"-"]})]})]})]},t)})))}))})},P=a(69271);function S(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function N(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{};t%2?S(Object(a),!0).forEach((function(t){(0,o.Z)(e,t,a[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):S(Object(a)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))}))}return e}var O=[{label:"Standard deviation",value:"standardDeviation"},{label:"Gain standard deviation",value:"gainStandardDeviation"},{label:"Loss standard deviation",value:"lossStandardDeviation"},{label:"Downside deviation",value:"downsideDeviation"},{label:"Semi deviation",value:"semiDeviation"},{label:"Sharpe Ratio",value:"sharpeRatio"},{label:"Sortino Ratio",value:"sortinoRatio"},{label:"Calmar Ratio",value:"calmarRatio"},{label:"Sterling Ratio",value:"sterlingRatio"},{label:"Gain to Loss Ratio",value:"gainToLossRatio"},{label:"Skewness",value:"skewness"},{label:"Kurtosis",value:"kurtosis"},{label:"Profit to Loss Ratio",value:"profitToLossRatio"},{label:"Max DrawDown",value:"maxDrawdown"},{label:"Duration",value:"duration"},{label:"Sherman Ratio",value:"shermanRatio"}],Z=function(e){var t,a,c=r.useState([]),p=(0,l.Z)(c,2),u=p[0],m=p[1],f=r.useState([]),b=(0,l.Z)(f,2),x=b[0],k=b[1],y=r.useState([]),_=(0,l.Z)(y,2),w=_[0],C=_[1],D=r.useState([]),S=(0,l.Z)(D,2),Z=S[0],M=S[1],I=r.useState([]),Y=(0,l.Z)(I,2),R=Y[0],T=Y[1],z=r.useState("Jan"),A=(0,l.Z)(z,2),E=A[0],L=A[1],B=r.useState({benchmark:[],portfolio:[]}),F=(0,l.Z)(B,2),U=F[0],V=F[1],G=r.useState(!1),Q=(0,l.Z)(G,2),q=Q[0],J=Q[1],K=r.useState(!0),X=(0,l.Z)(K,2),W=X[0],$=X[1],H=r.useState(!0),ee=(0,l.Z)(H,2),te=ee[0],ae=ee[1],re=r.useState(!0),ne=(0,l.Z)(re,2),oe=ne[0],ie=ne[1],le=r.useState(!1),ce=(0,l.Z)(le,2),de=ce[0],se=ce[1],pe=r.useState(""),ue=(0,l.Z)(pe,2),me=ue[0],fe=ue[1],he=r.useState(""),ge=(0,l.Z)(he,2),be=ge[0],ve=ge[1],xe=r.useState([new Date((new Date).getFullYear(),0,1),new Date]),ke=(0,l.Z)(xe,2),ye=ke[0],_e=ke[1],we=(0,l.Z)(ye,2),Ce=we[0],De=we[1],je=(0,n.m)().selectedClient,Pe=function(t){if("number"===typeof t){var a=new Date,r=a.setMonth(a.getMonth()-t);_e([new Date(r),new Date]),L(t)}else if("inception"===t){var n,o=[];null===(n=e.availablePortfolios)||void 0===n||n.map((function(e){if(null!==e&&void 0!==e&&e.portfolioStartDate){var t,a=null===e||void 0===e||null===(t=e.portfolioStartDate)||void 0===t?void 0:t.split("-");o.push("".concat(a[2],"-").concat(a[1],"-").concat(a[0]))}}));var l=new Date(Math.min.apply(Math,(0,i.Z)(o.map((function(e){return new Date(e)})))));_e([new Date(l),new Date]),L(t)}else{var c=(new Date).getFullYear(),d=new Date(c,0,1);_e([new Date(d),new Date]),L(t)}},Se=r.forwardRef((function(e,t){var a=e.onClick;return(0,g.jsxs)("button",{className:"btn",onClick:a,ref:t,children:[(0,g.jsx)("i",{className:"bi bi-calendar4-week icon"})," From - To"]})})),Ne=function(e,t){V((function(a){return N(N({},a),{},(0,o.Z)({},t,U[t].map((function(t,a){return a===e?N(N({},t),{},{active:!t.active}):t}))))}))};(0,r.useEffect)((function(){var e=setTimeout((function(){(0,s.wW)(0,100,me).then((function(e){C(null===e||void 0===e?void 0:e.content)}))}),1e3);return function(){return clearTimeout(e)}}),[me]),(0,r.useEffect)((function(){(0,s.KS)().then((function(e){M(e)}))}),[je]),r.useEffect((function(){if((null===w||void 0===w?void 0:w.length)>0){var e=w.map((function(e,t){var a,r,n=["rgba(218, 60, 60, 0.7)","rgba(235, 128, 50, 0.7)","rgba(133, 225, 61, 0.7)","rgba(61, 225, 186, 0.7)","rgba(227, 221, 57, 0.7)","rgba(139, 60, 218, 0.7)","rgba(50, 57, 235, 0.7)","rgba(183, 61, 225, 0.7)","rgba(128, 144, 203, 0.7)","rgba(158, 36, 139, 0.7)","rgba(54, 169, 251, 0.7)","rgba(254, 170, 95, 0.7)","rgba(245, 105, 107, 0.7)","rgba(168, 71, 94, 0.7)","rgba(188, 143, 176, 0.7)","rgba(243, 217, 147, 0.7)","rgba(141, 0, 9, 0.7)","rgba(253, 80, 26, 0.7)","rgba(207, 210, 58, 0.7)","rgba(155, 182, 196, 0.7)","rgba(93, 116, 97, 0.7)","rgba(71, 142, 15, 0.7)","rgba(248, 96, 124, 0.7)","rgba(137, 172, 249, 0.7)","rgba(251, 240, 111, 0.7)"];return{name:e.name,active:!0,color:n[(null===U||void 0===U||null===(a=U.benchmark)||void 0===a?void 0:a.length)+1],secondaryColor:n[(null===U||void 0===U||null===(r=U.benchmark)||void 0===r?void 0:r.length)+1],securityId:null===e||void 0===e?void 0:e.securityUUID}}));m(e)}}),[w,U.benchmark]),r.useEffect((function(){if((null===Z||void 0===Z?void 0:Z.length)>0){var e=Z.map((function(e,t){var a,r,n=["rgba(131, 208, 224, 0.7)","rgba(24, 135, 113, 0.7)","rgba(154, 111, 130, 0.7)","rgba(237, 215, 191, 0.7)","rgba(195, 197, 71, 0.7)","rgba(187, 201, 139, 0.7)","rgba(248, 208, 138, 0.7)","rgba(142, 112, 75, 0.7)","rgba(209, 67, 141, 0.7)","rgba(114, 124, 185, 0.7)","rgba(229, 160, 93, 0.7)","rgba(75, 140, 199, 0.7)","rgba(251, 188, 157, 0.7)","rgba(237, 15, 148, 0.7)","rgba(202, 19, 232, 0.7)","rgba(252, 63, 3, 0.7)","rgba(142, 94, 1, 0.7)","rgba(194, 253, 26, 0.7)","rgba(255, 107, 0, 0.7)","rgba(0, 86, 131, 0.7)","rgba(144, 211, 0, 0.7)","rgba(0, 161, 103, 0.7)","rgba(142, 62, 170, 0.7)","rgba(5, 0, 255, 0.7)","rgba(94, 139, 149, 0.7)"];return{name:e.name,active:!0,color:n[(null===U||void 0===U||null===(a=U.portfolio)||void 0===a?void 0:a.length)+1],secondaryColor:n[(null===U||void 0===U||null===(r=U.portfolio)||void 0===r?void 0:r.length)+1],id:null===e||void 0===e?void 0:e.id}}));k(e)}}),[Z,U.portfolio]);var Oe=function(e,t){V((function(a){return N(N({},a),{},(0,o.Z)({},t,[].concat((0,i.Z)(a[t]),[e])))})),J(!1),se(!1)},Ze=function(e,t){V((function(a){var r=a[t].findIndex((function(t){return t.name===e.name}));return N(N({},a),{},(0,o.Z)({},t,[].concat((0,i.Z)(a[t].slice(0,r)),(0,i.Z)(a[t].slice(r+1)))))}
1))},Me=function(e,t){"risk"===t?ie(e):"benchmark"===t?ae(e):$(e)},Ie=(0,r.useRef)();return(0,h.O3)(Ie,(function(){de&&se(!1),q&&J(!1)})),(0,g.jsxs)("div",{className:"mainChart",children:[(0,g.jsx)(j,{refresh:null===e||void 0===e?void 0:e.refresh,selectedDate:null===e||void 0===e?void 0:e.selectedDate,theme:e.theme}),(0,g.jsxs)("div",{className:"mainChart__header",children:[(0,g.jsx)("div",{className:"mainChart__header-title",children:"Performance"}),(0,g.jsxs)("div",{className:"mainChart-wrap__content-header__buttons",children:[(0,g.jsx)("button",{className:"btn ".concat(1===E?"active":""),onClick:function(){return Pe(1)},children:"1 Mo"}),(0,g.jsx)("button",{className:"btn ".concat(3===E?"active":""),onClick:function(){return Pe(3)},children:"3 Mo"}),(0,g.jsx)("button",{className:"btn ".concat(6===E?"active":""),onClick:function(){return Pe(6)},children:"6 Mo"}),(0,g.jsx)("button",{className:"btn ".concat("Jan"===E?"active":""),onClick:function(){return Pe("Jan")},children:"YTD"}),(0,g.jsx)("button",{className:"btn ".concat(12===E?"active":""),onClick:function(){return Pe(12)},children:"1 Yr"}),(0,g.jsx)("button",{className:"btn ".concat("inception"===E?"active":""),onClick:function(){return Pe("inception")},children:"Inception"}),(0,g.jsx)("button",{className:"datepicker",children:(0,g.jsx)(d(),{selectsRange:!0,startDate:Ce,endDate:De,yearDropdownItemNumber:100,scrollableYearDropdown:!0,showYearDropdown:!0,showMonthDropdown:!0,onChange:function(e){_e(e)},customInput:(0,g.jsx)(Se,{})})})]})]}),(0,g.jsxs)("div",{className:"mainChart-wrap",children:[(0,g.jsxs)("div",{className:"mainChart-wrap__sidebar",children:[(0,g.jsxs)("div",{className:"col",ref:Ie,children:[(0,g.jsx)("div",{className:"mainChart-wrap__sidebar-label",children:"Portfolio"}),(0,g.jsxs)("div",{className:"mainChart-wrap__sidebar-choose",children:[(0,g.jsx)("input",{placeholder:"Select Portfolio",value:be,onChange:function(e){return t=e.target.value,ve(t),void se(!0);var t}}),(0,g.jsx)("div",{className:"browse",onClick:function(){return se(!de)},children:"Browse"}),(0,g.jsx)("div",{className:"add",onClick:function(){return se(!de)},children:"+"})]}),(0,g.jsxs)("div",{className:"mainChart-wrap__sidebar-list",children:[(0,g.jsx)("div",{className:"mainChart-wrap__sidebar-list-popup",style:{display:de?"block":"none"},children:function(e){var t=be,a=x.filter((function(e){return U.portfolio.filter((function(t){return t.name===e.name})).length<1})).filter((function(e){var a;return(null===(a=e.name.toLowerCase())||void 0===a?void 0:a.indexOf(null===t||void 0===t?void 0:t.toLowerCase()))>-1}));return u&&0!=a.length?(0,g.jsx)(g.Fragment,{children:null===a||void 0===a?void 0:a.map((function(t,a){return(0,g.jsx)("div",{className:"mainChart-wrap__sidebar-list-popup__item",onClick:function(){return Oe(t,e)},children:t.name},a)}))}):(0,g.jsx)("div",{className:"empty",children:"There is no portfolio"})}("portfolio")}),null===(t=U.portfolio)||void 0===t?void 0:t.map((function(e,t){return(0,g.jsxs)("div",{className:"mainChart-wrap__sidebar-list__item",children:[(0,g.jsxs)("label",{className:"checkbox-container",children:[(0,g.jsx)("input",{type:"checkbox",checked:e.active,onChange:function(){return Ne(t,"portfolio")}}),(0,g.jsx)("span",{className:"checkmark"})]}),(0,g.jsx)("div",{className:"point",style:{backgroundColor:e.color}}),(0,g.jsx)("div",{className:"name",children:e.name}),(0,g.jsx)("i",{className:"bi bi-x delete",onClick:function(){return Ze(e,"portfolio")}})]},t)}))]})]}),(0,g.jsxs)("div",{className:"col",ref:Ie,children:[(0,g.jsx)("div",{className:"mainChart-wrap__sidebar-label",children:"Index"}),(0,g.jsxs)("div",{className:"mainChart-wrap__sidebar-choose",children:[(0,g.jsx)("input",{placeholder:"Search",value:me,onChange:function(e){return t=e.target.value,fe(t),void J(!0);var t}}),(0,g.jsx)("div",{className:"browse",onClick:function(){return J(!q)},children:"Browse"}),(0,g.jsx)("div",{className:"add",onClick:function(){return J(!q)},children:"+"})]}),(0,g.jsxs)("div",{className:"mainChart-wrap__sidebar-list",children:[(0,g.jsx)("div",{className:"mainChart-wrap__sidebar-list-popup",style:{display:q?"block":"none"}
1,children:function(e){var t=me,a=u.filter((function(e){return U.benchmark.filter((function(t){return t.name===e.name})).length<1})).filter((function(e){return e.name.toLowerCase().indexOf(t.toLowerCase())>-1}));return u&&0!=a.length?(0,g.jsx)(g.Fragment,{children:a.map((function(t,a){return(0,g.jsx)("div",{className:"mainChart-wrap__sidebar-list-popup__item",onClick:function(){return Oe(t,e)},children:t.name},a)}))}):(0,g.jsx)("div",{className:"empty",children:"There is no stocks"})}("benchmark")}),U.benchmark.map((function(e,t){return(0,g.jsxs)("div",{className:"mainChart-wrap__sidebar-list__item",children:[(0,g.jsxs)("label",{className:"checkbox-container",children:[(0,g.jsx)("input",{type:"checkbox",checked:e.active,onChange:function(){return Ne(t,"benchmark")}}),(0,g.jsx)("span",{className:"checkmark"})]}),(0,g.jsx)("div",{className:"point",style:{backgroundColor:null===e||void 0===e?void 0:e.color}}),(0,g.jsx)("div",{className:"name",children:e.name}),(0,g.jsx)("i",{className:"bi bi-x delete",onClick:function(){return Ze(e,"benchmark")}})]},t)}))]})]})]}),(0,g.jsxs)("div",{className:"mainChart-wrap__content",children:[(0,g.jsxs)("div",{className:"filter",children:[(0,g.jsxs)("div",{className:"legends",children:[(0,g.jsxs)("div",{className:"legend ".concat(W&&"active"),onClick:function(){return Me(!W,"performance")},children:[(0,g.jsx)("span",{className:"line",children:"\u2501\u2501"}),"\xa0Performance"]}),(0,g.jsxs)("div",{className:"legend ".concat(te&&"active"),onClick:function(){return Me(!te,"benchmark")},children:[(0,g.jsx)("span",{className:"line",children:"\u2501\u2501"}),"\xa0Benchmark"]}),(null===R||void 0===R?void 0:R.label)&&(0,g.jsxs)("div",{className:"legend ".concat(oe&&"active"),onClick:function(){return Me(!oe,"risk")},children:[(0,g.jsx)("span",{className:"dotted_line",children:"\u2501 \u2501"}),"\xa0",null!==R&&void 0!==R&&R.label?null===R||void 0===R?void 0:R.label:"No risk selected"]})]}),(0,g.jsx)("div",{className:"dropdown",children:(0,g.jsx)(P.ZP,{options:O,isClearable:!0,onChange:function(e){!function(e){T(e)}(e)},value:R,placeholder:"Select Risk"})})]}),(0,g.jsx)("div",{className:"chart-wrap",id:"chart-wrap",children:(0,g.jsx)("div",{className:"mainChart-wrap__content-chart",children:(0,g.jsx)(v,{theme:e.theme,selectedPortfolio:null===e||void 0===e||null===(a=e.selectedPortfolio)||void 0===a?void 0:a.id,stocks:U.benchmark,riskList:R,portfolio:U.portfolio,dateRangeProps:ye,activeLegend:W,activeLegend2:oe,activeLegend3:te})})})]})]})]})},M=a(93379),I=a.n(M),Y=a(7795),R=a.n(Y),T=a(90569),z=a.n(T),A=a(3565),E=a.n(A),L=a(19216),B=a.n(L),F=a(44589),U=a.n(F),V=a(20907),G={};G.styleTagTransform=U(),G.setAttributes=E(),G.insert=z().bind(null,"head"),G.domAPI=R(),G.insertStyleElement=B();I()(V.Z,G),V.Z&&V.Z.locals&&V.Z.locals;var Q=[[{name:"Year to Date",key:"ytdProfitLossPercentage"},{name:"1 Month",key:"roi1monthPercentage"},{name:"2 Month",key:"roi2MonthPercentage"},{name:"3 Month",key:"roi3monthPercentage"},{name:"6 Month",key:"roi6monthPercentage"},{name:"1 Year",key:"roi1yearPercentage"},{name:"2 Years",key:"roi2yearPercentage"},{name:"Average Return",key:"averageReturn"},{name:"Average Gain",key:"averageGain"},{name:"Average Loss",key:"averageLoss"},{name:"CAGR",key:"compoundAverageReturn"},{name:"Inception",key:"inception"}],[{name:"Standard deviation",key:"standardDeviation"},{name:"Gain standard deviation",key:"gainStandardDeviation"},{name:"Loss standard deviation",key:"lossStandardDeviation"},{name:"Downside deviation",key:"downsideDeviation"},{name:"Semi deviation",key:"semiDeviation"},{name:"Sharpe Ratio",key:"sharpeRatio"},{name:"Sortino Ratio",key:"sortinoRatio"},{name:"Calmar Ratio",key:"calmarRatio"},{name:"Sterling Ratio",key:"sterlingRatio"},{name:"Gain to Loss Ratio",key:"gainToLossRatio"},{name:"Skewness",key:"skewness"},{name:"Kurtosis",key:"kurtosis"},{name:"Profit to Loss Ratio",key:"profitToLossRatio"},{name:"Max DrawDown",key:"maxDrawdown"},{name:"Duration",key:"duration"},{name:"Sherman Ratio",key:"shermanRatio"}],[{name:"Beta",key:"beta"},{name:"Alpha",key:"alpha"},{name:"Value at risk",key:"valueAtRisk"},{name:"Jensen alpha",key:"jensenAlpha"},{name:"Active premium",key:"activePremium"},{name:"Treynor ratio",key:"treynorRatio"},{name:"Tracking error",key:"trackingError"},{name:"Percentage gain ratio",key:"percentGainRatio"},{name:"Up number ratio",key:"upNumberRatio"},{name:"Down number ratio",key:"downNumberRatio"},{name:"Up percentage ratio",key:"upPercentageRatio"},{name:"Down percentage ratio",key:"downPercentageRatio"}]],q=a(4747),J=a(56802),K=a(40044),X=a(79011);function W(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}var $=function(e){var t=r.useState(),a=(0,l.Z)(t,2),n=a[0],i=a[1],c=r.useState(0),d=(0,l.Z)(c,2),p=d[0],m=d[1],f=r.useState(!1),b=(0,l.Z)(f,2),v=b[0],x=b[1];(0,r.useEffect)((function(){x(!0);var t,a=null!==e&&void 0!==e&&e.selectedDate?u()(null===e||void 0===e?void 0:e.selectedDate).format("DD-MM-yyyy"):u()().format("DD-MM-yyyy");if(0===p)e.selectedPortfolio&&e.selectedPortfolio.id?(0,s.Bz)(a,null===e||void 0===e||null===(t=e.selectedPortfolio)||void 0===t?void 0:t.id).then((function(e){i(e)})).finally((function(){x(!1)})):(0,s.Bz)(a).then((function(e){i(e)})).finally((function(){x(!1)}));else if(1===p){var r;if(e.selectedPortfolio&&e.selectedPortfolio.id)(0,s.qo)(a,null===e||void 0===e||null===(r=e.selectedPortfolio)||void 0===r?void 0:r.id).then((function(e){i(e)})).finally((function(){x(!1)}));else(0,s.qo)(a).then((function(e){i(e)})).finally((function(){x(!1)}))}else{var n;if(e.selectedPortfolio&&e.selectedPortfolio.id)(0,s.O9)(a,null===e||void 0===e||null===(n=e.selectedPortfolio)||void 0===n?void 0:n.id).then((function(e){i(e)})).catch((function(e){x(!1)})).finally((function(){x(!1)}));else(0,s.O9)(a).then((function(e){i(e)})).finally((function(){x(!1)}))}}),[p,e.selectedPortfolio,null===e||void 0===e?void 0:e.selectedDate,null===e||void 0===e?void 0:e.refresh]);return(0,g.jsxs)(g.Fragment,{children:[v&&(0,g.jsx)(X.Z,{}),(0,g.jsxs)("div",{className:"performance",children:[(0,g.jsx)("h3",{className:"performance__label",children:"Analytics"}),(0,g.jsx)("div",{className:"performance__tabs",children:(0,g.jsx)(q.Z,{sx:{width:"100%",typography:"body1"},children:(0,g.jsx)(J.Z,{className:"performance__tabs-indicator",variant:"scrollable",scrollButtons:"auto",value:p,onChange:function(e,t){m(t)},children:["Performance","Risk","Benchmark"].map((function(e,t){return(0,g.jsx)(K.Z,function(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{};
1t%2?W(Object(a),!0).forEach((function(t){(0,o.Z)(e,t,a[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):W(Object(a)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))}))}return e}({className:"performance__tabs-tab ".concat(t===p?"active":""),label:e},{id:"simple-tab-".concat(a=t),"aria-controls":"simple-tabpanel-".concat(a)}));var a}))})})}),(0,g.jsx)("div",{className:"items-wrap",children:(0,g.jsx)("div",{className:"performance__content",children:v?(0,g.jsx)("p",{children:"Loading..."}):Q[p].map((function(e,t){var a;return(0,g.jsxs)("div",{className:"performance__content-item ".concat(!v&&"fade-in"),children:[(0,g.jsx)("div",{className:"performance__content-item__title",children:e.name}),(0,g.jsx)("div",{className:"performance__content-item__value",children:n&&(null!==(a=(0,h.QV)(n[e.key]))&&void 0!==a?a:"-")})]},t)}))})})]})]})},H=(a(12217),function(e){var t=e.theme,a=e.portfolio,r=e.selectedDate,o=e.setPortfolio,i=e.setSelectedDate,l=e.refresh,c=e.availablePortfolios,d=(0,n.m)().selectedClient;return(0,g.jsxs)("div",{children:[(0,g.jsx)(Z,{selectedDate:r,theme:t,selectedPortfolio:a,refresh:l,availablePortfolios:c,selectedClient:d,setPortfolio:o,setSelectedDate:i}),(0,g.jsx)($,{selectedDate:r,selectedPortfolio:a,refresh:l})]},null===d||void 0===d?void 0:d.id)})},16974:function(e,t,a){(window.__NEXT_P=window.__NEXT_P||[]).push(["/performance",function(){return a(83034)}])},49801:function(e,t,a){"use strict";var r=a(93379),n=a.n(r),o=a(7795),i=a.n(o),l=a(90569),c=a.n(l),d=a(3565),s=a.n(d),p=a(19216),u=a.n(p),m=a(44589),f=a.n(m),h=a(56649),g={};g.styleTagTransform=f(),g.setAttributes=s(),g.insert=c().bind(null,"head"),g.domAPI=i(),g.insertStyleElement=u();n()(h.Z,g),h.Z&&h.Z.locals&&h.Z.locals},77444:function(e,t,a){"use strict";var r=a(93379),n=a.n(r),o=a(7795),i=a.n(o),l=a(90569),c=a.n(l),d=a(3565),s=a.n(d),p=a(19216),u=a.n(p),m=a(44589),f=a.n(m),h=a(45),g={};g.styleTagTransform=f(),g.setAttributes=s(),g.insert=c().bind(null,"head"),g.domAPI=i(),g.insertStyleElement=u();n()(h.Z,g),h.Z&&h.Z.locals&&h.Z.locals},92479:function(e,t,a){"use strict";var r=a(93379),n=a.n(r),o=a(7795),i=a.n(o),l=a(90569),c=a.n(l),d=a(3565),s=a.n(d),p=a(19216),u=a.n(p),m=a(44589),f=a.n(m),h=a(20610),g={};g.styleTagTransform=f(),g.setAttributes=s(),g.insert=c().bind(null,"head"),g.domAPI=i(),g.insertStyleElement=u();n()(h.Z,g),h.Z&&h.Z.locals&&h.Z.locals}},function(e){e.O(0,[570,707,502,271,205,304,774,888,179],(function(){return t=16974,e(e.s=t);var t}));var t=e.O();_N_E=t}]);

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.