profinansy-ui-lib 4.0.35 → 4.0.36
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/uikit/Dropdown/Dropdown.d.ts +1 -1
- package/dist/components/uikit/FilterButton/components/Drop/Drop.d.ts +1 -1
- package/dist/components/uikit/Hint/Hint.d.ts +1 -1
- package/dist/components/uikit/Popup/components/PopupDesktop.d.ts +1 -1
- package/dist/components/uikit/Tooltip/Tooltip.d.ts +1 -1
- package/dist/profinansy-ui-lib.cjs.js +5 -5
- package/dist/profinansy-ui-lib.cjs.js.map +1 -1
- package/dist/profinansy-ui-lib.es.js +5 -5
- package/dist/profinansy-ui-lib.es.js.map +1 -1
- package/dist/urls/constant.d.ts +3 -3
- package/package.json +1 -1
- package/dist/Icons.stories.d.ts +0 -5
- package/dist/components/blocks/Comment/Comment.stories.d.ts +0 -7
- package/dist/components/blocks/CompanyInfo/CompanyInfo.stories.d.ts +0 -7
- package/dist/components/blocks/Cookies/Cookies.stories.d.ts +0 -7
- package/dist/components/blocks/Favourite/Favourite.stories.d.ts +0 -7
- package/dist/components/blocks/Like/Like.stories.d.ts +0 -7
- package/dist/components/blocks/Notification/Notification.stories.d.ts +0 -7
- package/dist/components/blocks/ShareList/ShareList.stories.d.ts +0 -7
- package/dist/components/blocks/Views/Views.stories.d.ts +0 -7
- package/dist/components/blocks/footer/Footer.stories.d.ts +0 -16
- package/dist/components/blocks/footerV2/FooterV2.stories.d.ts +0 -16
- package/dist/components/blocks/header/Header.stories.d.ts +0 -75
- package/dist/components/blocks/headerV2/HeaderV2.stories.d.ts +0 -104
- package/dist/components/blocks/headerWelcome/HeaderWelcome.stories.d.ts +0 -7
- package/dist/components/blocks/sideMenu/SideMenu.stories.d.ts +0 -6
- package/dist/components/blocks/sideMenuV2/SideMenuV2.stories.d.ts +0 -6
- package/dist/components/layouts/LayoutSideMenu/LayoutSideMenu.stories.d.ts +0 -12
- package/dist/components/layouts/LayoutSideMenuV2/LayoutSideMenuV2.stories.d.ts +0 -12
- package/dist/components/modals/SuccessModal/SuccessModal.stories.d.ts +0 -6
- package/dist/components/uikit/Alert/Alert.stories.d.ts +0 -13
- package/dist/components/uikit/ArrowButton/ArrowButton.stories.d.ts +0 -7
- package/dist/components/uikit/Avatar/Avatar.stories.d.ts +0 -13
- package/dist/components/uikit/AvatarCompany/AvatarCompany.stories.d.ts +0 -7
- package/dist/components/uikit/Bubbles/Bubbles.stories.d.ts +0 -13
- package/dist/components/uikit/Button/Button.stories.d.ts +0 -14
- package/dist/components/uikit/ButtonPaging/ButtonPaging.stories.d.ts +0 -13
- package/dist/components/uikit/Card/Card.stories.d.ts +0 -8
- package/dist/components/uikit/Checkbox/Checkbox.stories.d.ts +0 -13
- package/dist/components/uikit/ControlButton/ControlButton.stories.d.ts +0 -8
- package/dist/components/uikit/Counter/Counter.stories.d.ts +0 -13
- package/dist/components/uikit/Datepicker/Datepicker.stories.d.ts +0 -7
- package/dist/components/uikit/Dropdown/Dropdown.stories.d.ts +0 -8
- package/dist/components/uikit/ErrorText/ErrorText.stories.d.ts +0 -7
- package/dist/components/uikit/FieldRow/FieldRow.stories.d.ts +0 -7
- package/dist/components/uikit/FilterButton/FilterButton.stories.d.ts +0 -14
- package/dist/components/uikit/HiddenText/HiddenText.stories.d.ts +0 -7
- package/dist/components/uikit/Hint/Hint.stories.d.ts +0 -7
|
@@ -43,7 +43,7 @@ export declare function useDrop({ placement, onOpenList }: {
|
|
|
43
43
|
};
|
|
44
44
|
getReferenceProps: (userProps?: React.HTMLProps<Element>) => Record<string, unknown>;
|
|
45
45
|
getFloatingProps: (userProps?: React.HTMLProps<HTMLElement>) => Record<string, unknown>;
|
|
46
|
-
getItemProps: (userProps?: Omit<React.HTMLProps<HTMLElement>, "
|
|
46
|
+
getItemProps: (userProps?: Omit<React.HTMLProps<HTMLElement>, "active" | "selected"> & {
|
|
47
47
|
active?: boolean;
|
|
48
48
|
selected?: boolean;
|
|
49
49
|
}) => Record<string, unknown>;
|
|
@@ -42,7 +42,7 @@ export declare function useDrop({ placement }: {
|
|
|
42
42
|
};
|
|
43
43
|
getReferenceProps: (userProps?: React.HTMLProps<Element>) => Record<string, unknown>;
|
|
44
44
|
getFloatingProps: (userProps?: React.HTMLProps<HTMLElement>) => Record<string, unknown>;
|
|
45
|
-
getItemProps: (userProps?: Omit<React.HTMLProps<HTMLElement>, "
|
|
45
|
+
getItemProps: (userProps?: Omit<React.HTMLProps<HTMLElement>, "active" | "selected"> & {
|
|
46
46
|
active?: boolean;
|
|
47
47
|
selected?: boolean;
|
|
48
48
|
}) => Record<string, unknown>;
|
|
@@ -44,7 +44,7 @@ export declare function useHint({ placement, isClickMobile }?: HintOptions): {
|
|
|
44
44
|
};
|
|
45
45
|
getReferenceProps: (userProps?: React.HTMLProps<Element>) => Record<string, unknown>;
|
|
46
46
|
getFloatingProps: (userProps?: React.HTMLProps<HTMLElement>) => Record<string, unknown>;
|
|
47
|
-
getItemProps: (userProps?: Omit<React.HTMLProps<HTMLElement>, "
|
|
47
|
+
getItemProps: (userProps?: Omit<React.HTMLProps<HTMLElement>, "active" | "selected"> & {
|
|
48
48
|
active?: boolean;
|
|
49
49
|
selected?: boolean;
|
|
50
50
|
}) => Record<string, unknown>;
|
|
@@ -47,7 +47,7 @@ export declare function usePopup({ placement, isHover }: {
|
|
|
47
47
|
};
|
|
48
48
|
getReferenceProps: (userProps?: React.HTMLProps<Element>) => Record<string, unknown>;
|
|
49
49
|
getFloatingProps: (userProps?: React.HTMLProps<HTMLElement>) => Record<string, unknown>;
|
|
50
|
-
getItemProps: (userProps?: Omit<React.HTMLProps<HTMLElement>, "
|
|
50
|
+
getItemProps: (userProps?: Omit<React.HTMLProps<HTMLElement>, "active" | "selected"> & {
|
|
51
51
|
active?: boolean;
|
|
52
52
|
selected?: boolean;
|
|
53
53
|
}) => Record<string, unknown>;
|
|
@@ -45,7 +45,7 @@ export declare function useTooltip({ placement, isHover, showArrow, onOpenToolti
|
|
|
45
45
|
};
|
|
46
46
|
getReferenceProps: (userProps?: React.HTMLProps<Element>) => Record<string, unknown>;
|
|
47
47
|
getFloatingProps: (userProps?: React.HTMLProps<HTMLElement>) => Record<string, unknown>;
|
|
48
|
-
getItemProps: (userProps?: Omit<React.HTMLProps<HTMLElement>, "
|
|
48
|
+
getItemProps: (userProps?: Omit<React.HTMLProps<HTMLElement>, "active" | "selected"> & {
|
|
49
49
|
active?: boolean;
|
|
50
50
|
selected?: boolean;
|
|
51
51
|
}) => Record<string, unknown>;
|
|
@@ -2420,7 +2420,7 @@ Check the top-level render call using <`+ne+">.")}return Y}}function n2(_,Y){{if
|
|
|
2420
2420
|
color: ${e=>e.color||e.theme.text.primary};
|
|
2421
2421
|
overflow: hidden;
|
|
2422
2422
|
text-overflow: ellipsis;
|
|
2423
|
-
`,m1=({checked:e=!1,text:t,htmlText:n,name:r,onChange:o,size:i="L",form:s="square",color:l,verticalAlign:c="center",horizontalAlign:u="start",value:p,isTextLeft:h,readonly:C=!1,className:g,classNameText:v,disabled:x=!1})=>{const{mode:b}=K(),y=k=>{o&&!C&&o(k.target.checked,k)};return a.jsx(f.ThemeProvider,{theme:G[b],children:a.jsxs(Jb,{$verticalAlign:c,$horizontalAlign:u,$readonly:C,className:Be(g,"checkbox-container"),children:[a.jsx(R3,{onClick:k=>k.stopPropagation(),value:p,type:"checkbox",readOnly:C,checked:e,name:r,onChange:y,disabled:x}),a.jsx(R1,{className:"checkbox-element",size:i,form:s}),n?a.jsx(Qb,{isTextLeft:h,children:n}):null,!!t&&a.jsx(qb,{className:Be(v,"checkbox-text"),color:l,isTextLeft:h,variant:i==="S"?"description-Medium":i==="M"?"text-Medium":"controls-Medium",tag:"span",children:t})]})})},zs=e=>d.createElement("svg",{width:20,height:20,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},d.createElement("path",{d:"M9.99984 18.9583C5.05817 18.9583 1.0415 14.9417 1.0415 9.99999C1.0415 5.05832 5.05817 1.04166 9.99984 1.04166C14.9415 1.04166 18.9582 5.05832 18.9582 9.99999C18.9582 14.9417 14.9415 18.9583 9.99984 18.9583ZM9.99984 2.29166C5.74984 2.29166 2.2915 5.74999 2.2915 9.99999C2.2915 14.25 5.74984 17.7083 9.99984 17.7083C14.2498 17.7083 17.7082 14.25 17.7082 9.99999C17.7082 5.74999 14.2498 2.29166 9.99984 2.29166Z",fill:"#3038F5"}),d.createElement("path",{d:"M10 11.4583C9.65833 11.4583 9.375 11.175 9.375 10.8333V6.66666C9.375 6.32499 9.65833 6.04166 10 6.04166C10.3417 6.04166 10.625 6.32499 10.625 6.66666V10.8333C10.625 11.175 10.3417 11.4583 10 11.4583Z",fill:"#3038F5"}),d.createElement("path",{d:"M9.99984 14.1667C9.8915 14.1667 9.78317 14.1417 9.68317 14.1C9.58317 14.0583 9.4915 14 9.40817 13.925C9.33317 13.8417 9.27484 13.7583 9.23317 13.65C9.1915 13.55 9.1665 13.4417 9.1665 13.3333C9.1665 13.225 9.1915 13.1167 9.23317 13.0167C9.27484 12.9167 9.33317 12.825 9.40817 12.7417C9.4915 12.6667 9.58317 12.6083 9.68317 12.5667C9.88317 12.4833 10.1165 12.4833 10.3165 12.5667C10.4165 12.6083 10.5082 12.6667 10.5915 12.7417C10.6665 12.825 10.7248 12.9167 10.7665 13.0167C10.8082 13.1167 10.8332 13.225 10.8332 13.3333C10.8332 13.4417 10.8082 13.55 10.7665 13.65C10.7248 13.7583 10.6665 13.8417 10.5915 13.925C10.5082 14 10.4165 14.0583 10.3165 14.1C10.2165 14.1417 10.1082 14.1667 9.99984 14.1667Z",fill:"#3038F5"})),Kb=({openCreateList:e})=>{const[t,n]=m.useState(!0),{groups:r,selectedGroups:o,loader:i,onSave:s,onCheckboxClick:l}=ca(),{locale:c}=z(),u=p=>{l(p),n(!1)};return r.length===0?a.jsxs(a5,{children:[a.jsxs(Wb,{children:[a.jsx(Yb,{children:a.jsx(zs,{})}),a.jsx(P,{variant:"text-Medium",colorName:"primary",children:Ot[c].notGroupsTitle})]}),a.jsx(P,{variant:"text-Regular",colorName:"fourth",marginBottom:"16px",children:Ot[c].notGroupsMessage}),a.jsx(Ys,{children:a.jsx(st,{onClick:()=>e(!0),mode:"primary",text:Ot[c].createList})})]}):a.jsxs(a.Fragment,{children:[a.jsx(a5,{children:r?.map(p=>a.jsxs(zb,{onClick:()=>u(p.id),children:[a.jsx(m1,{checked:o.includes(p.id),text:p.name}),a.jsxs(Gb,{children:[p.instruments?.length||0,Ot[c].amount]})]},p.id))}),a.jsxs(Ys,{children:[a.jsx(st,{onClick:()=>e(!0),mode:"secondary",text:Ot[c].createList}),a.jsx(st,{width:"156px",disabled:t,loading:i,mode:"primary",text:Ot[c].save,onClick:s})]})]})},ey=({onClose:e})=>{const[t,n]=m.useState(""),[r,o]=m.useState(!1),{locale:i}=z(),{submitNewList:s}=ca(),l=async()=>{o(!0),await s(t),o(!1),e()};return a.jsxs("div",{children:[a.jsx(Ul,{label:Ot[i].nameList,children:a.jsx(Dr,{name:"groupName",placeholder:Ot[i].input,value:t,onChange:c=>n(c)})}),a.jsxs(Ys,{children:[a.jsx(st,{onClick:e,mode:"secondary",text:Ot[i].cancel}),a.jsx(st,{disabled:!t||r,mode:"primary",text:Ot[i].save,onClick:l})]})]})},ty=()=>{const[e,t]=m.useState(!1),{instrumentId:n,handleClose:r}=ca(),{locale:o}=z();return a.jsx(Wt,{open:n!==null,onClose:r,title:e?Ot[o].titleCreate:Ot[o].title,maxWidth:"564px",children:e?a.jsx(ey,{onClose:()=>t(!1)}):a.jsx(Kb,{openCreateList:()=>t(!0)})})},ua=({onClose:e,isWithoutTitle:t,category:n})=>{const{data:r,searchText:o,isLoading:i}=Bb(n),{listItems:s,tabs:l,bubbles:c,selectedTab:u,setSelectedTab:p,setSelectedBubble:h,selectedBubble:C}=Dv(r),g=!!o&&!l&&r!==null,v=!r&&(!n||n===jt.invest);return a.jsxs(qx,{children:[a.jsxs(Iv,{children:[a.jsx(hx,{isWithoutTitle:t,bubbles:c,tabs:l,category:n,selectedTab:u,setSelectedTab:p,selectedBubble:C,setSelectedBubble:h}),a.jsxs(_v,{children:[n!==jt.club&&a.jsx(Kx,{isRenderSelections:v,onClose:e}),!!s?.length&&a.jsx(Hb,{searchText:o,listItems:s,onClose:e}),a.jsx(Zb,{isEmpty:g,isLoading:i,category:n})]})]}),a.jsx(ty,{})]})},H3=({isOpenSearch:e})=>{const[t,n]=m.useState(!1);m.useEffect(()=>{n(e)},[e]);const{locale:r}=z();return a.jsxs(a.Fragment,{children:[a.jsxs(uv,{onClick:()=>n(!0),children:[a.jsx(dv,{children:a.jsx(ql,{})}),a.jsx("span",{children:ze[r].search})]}),t&&a.jsxs(pv,{children:[a.jsxs(fv,{children:[a.jsxs(hv,{children:[ze[r].search_header,a.jsx(mv,{onClick:()=>n(!1),children:a.jsx(p3,{})})]}),a.jsx(h3,{locale:r})]}),a.jsx(gv,{children:a.jsx(ua,{isWithoutTitle:!0,onClose:()=>n(!1)})})]})]})},ny=({isLeaderboardPermission:e,isOpenSearch:t})=>{const[n,r]=m.useState(null),{hostnames:{hostname:o,hostnameLenta:i,hostnameLMS:s},userRole:l,user:c}=J();$o(!0),Eo();const u=h6(o,i,s,e,l,c.type),{locale:p}=z();return a.jsxs(a.Fragment,{children:[a.jsxs(_f,{children:[a.jsxs(Sf,{children:[a.jsx(Df,{children:be[p].main_menu}),a.jsx(H3,{isOpenSearch:t})]}),a.jsx(jf,{children:u.map((h,C)=>a.jsx(xg,{data:h,setShowQuiz:r},C))})]}),l==="authorized"&&a.jsx(h1,{isOpen:!!n,name:n?.name||"",description:n?.description||"",imagePlug:n?.imagePlug||"",imagePlugMob:n?.imagePlugMob||"",setIsOpen:r})]})},pt={ru:{logo:"Логотип компании",search:"Поиск по сайту",profile:"Меню профиля",header:"Шапка сайта",burger:"Боковое меню",favourite:"Мое избранное",notifications:"Мои уведомления",basket:"Корзина"},en:{logo:"Company logo",search:"Site search",profile:"Profile menu",header:"Site header",burger:"Side menu",favourite:"My favourite",notifications:"My notifications",basket:"My basket"}},ry=({isLeaderboardPermission:e})=>{const[t,n]=m.useState(!1),[r,o]=m.useState(!1),{locale:i}=z(),{pathname:s}=J();return m.useEffect(()=>{n(!1)},[s]),m.useEffect(()=>{const l=()=>{n(!0),o(!0)},c=Xe.subscribe(We.SearchOpen,l);return()=>{c()}},[]),a.jsxs(a.Fragment,{children:[t&&a.jsx($f,{onClick:()=>n(!1)}),a.jsxs(Ef,{children:[a.jsxs(Mf,{onClick:()=>n(!t),$isOpen:t,"aria-label":pt[i].burger,children:[a.jsx("div",{}),a.jsx("div",{}),a.jsx("div",{})]}),t&&a.jsx(ny,{isOpenSearch:r,isLeaderboardPermission:e})]})]})},F3=e=>d.createElement("svg",{width:152,height:24,viewBox:"0 0 152 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},d.createElement("path",{d:"M3.98022 20.3909V16.0391H6.72072C10.3312 16.0391 12.18 12.9615 12.18 9.88386C12.2452 6.71009 10.3747 3.56036 6.72072 3.56036C4.45872 3.53632 2.262 3.56036 0 3.56036V20.3909H3.98022ZM3.915 12.2161V7.38331H6.72072C7.80822 7.38331 8.37372 8.56146 8.37372 9.76364C8.37372 10.9899 7.76472 12.2161 6.72072 12.2161H3.915ZM24.234 14.4281C25.7347 13.2981 26.4742 11.4467 26.496 9.52321C26.496 6.56583 24.6907 3.56036 21.0149 3.56036C18.7747 3.53632 16.5779 3.56036 14.3159 3.56036V20.3909H18.2962V15.1254H20.3842L22.9942 20.3909H27.2137V19.7658L24.234 14.4281ZM18.2309 11.5428V7.38331H20.9932C22.1242 7.38331 22.6462 8.36911 22.6462 9.42703C22.6462 10.485 22.1024 11.5428 20.9932 11.5428H18.2309ZM64.3101 11.1341H59.4381V7.40736H64.9626V3.58441H55.4578V20.415H59.4381V14.9811H64.3101V11.1341ZM72.6601 16.8565V7.14288H74.4218V3.58441H66.9182V7.14288H68.6799V16.8565H66.7438V20.415H74.5955V16.8565H72.6601ZM89.256 20.4631H90.43V3.58441H86.4498V11.8074L78.5112 3.51228H77.2714V20.415H81.2515V11.7352L89.256 20.4631ZM102.521 18.3232L103.413 20.415H107.523V19.8139L100.606 3.4161H98.7796L91.7979 19.8139V20.415H95.9524L96.8224 18.3232H102.521ZM99.6713 10.5811L101.259 14.6445H98.1057L99.6713 10.5811ZM120.904 20.4631H122.078V3.58441H118.098V11.8074L110.159 3.51228H108.919V20.415H112.899V11.7352L120.904 20.4631ZM124.577 15.2456C124.512 19.0205 127.6 20.7997 130.819 20.7997C133.929 20.7997 137.039 18.9483 137.039 15.4139C137.039 11.3265 134.212 10.485 130.972 10.1724C129.514 10.0041 128.644 9.7396 128.644 8.60954C128.644 7.33523 129.819 7.07075 130.711 7.07075C131.776 7.07075 132.755 7.55162 132.777 8.70572H136.496C136.561 5.05107 133.582 3.19971 130.645 3.19971C127.535 3.19971 124.729 5.05107 124.729 8.70572C124.729 12.2161 127.514 13.4423 130.297 13.6347C131.407 13.7068 133.103 13.7789 133.103 15.3898C133.103 16.3997 131.907 16.9767 130.776 16.9767C129.558 16.9767 128.362 16.3997 128.362 15.2456H124.577ZM144.345 9.16255L141.582 3.58441H137.319V4.23359L142.43 13.7549V20.415H146.41V13.7549L151.5 4.23359V3.58441H147.28L144.518 9.16255H144.345Z",fill:"#A8A8A8"}),d.createElement("path",{d:"M35.2008 18.5389L35.6556 17.7242L35.3664 17.5464L34.567 18.9784L34.6583 19.0345L35.876 18.6886L35.4245 19.4973L35.7157 19.6763L36.514 18.2463L36.4266 18.1926L35.2008 18.5389Z",fill:"#A8A8A8"}),d.createElement("path",{d:"M34.0924 16.2656L32.9589 17.4128L33.1931 17.6677L33.6255 17.2301L34.044 17.6855L33.6116 18.123L33.8443 18.3763L34.9779 17.2292L34.7452 16.976L34.2658 17.461L33.8473 17.0056L34.3267 16.5205L34.0924 16.2656Z",fill:"#A8A8A8"}),d.createElement("path",{d:"M32.2445 15.3205C31.9874 15.4718 31.9396 15.7491 32.0806 16.0126L32.4076 16.624L33.7789 15.8163L33.4211 15.1472C33.2669 14.859 33.0118 14.7873 32.7705 14.9294C32.6292 15.0126 32.5559 15.1505 32.5746 15.3156C32.4732 15.2562 32.3445 15.2616 32.2445 15.3205ZM32.3438 15.8873C32.2866 15.7802 32.3149 15.6742 32.4161 15.6173C32.5094 15.565 32.5996 15.5986 32.6558 15.7036L32.8066 15.9856L32.4946 16.1694L32.3438 15.8873ZM32.8708 15.5173C32.8455 15.47 32.8274 15.4264 32.8322 15.3776C32.8385 15.3171 32.8774 15.2644 32.9335 15.234C33.029 15.186 33.1209 15.213 33.177 15.318L33.3598 15.6598L33.0459 15.8446L32.8708 15.5173Z",fill:"#A8A8A8"}),d.createElement("path",{d:"M31.2693 13.7934L31.5359 14.7668L33.0494 14.3104L32.7779 13.3188L32.4839 13.4075L32.6615 14.0564L32.3156 14.1607L32.154 13.5708L31.8708 13.6562L32.0324 14.2461L31.7253 14.3387L31.5526 13.708L31.2693 13.7934Z",fill:"#A8A8A8"}),d.createElement("path",{d:"M31.8991 12.9557C32.4208 12.9409 32.6891 12.5224 32.6779 12.0881C32.669 11.7436 32.4868 11.3969 32.0689 11.3379L32.0777 11.6777C32.2703 11.7289 32.3668 11.8939 32.3721 12.0992C32.3797 12.3941 32.1597 12.5917 31.8899 12.5994C31.5908 12.6078 31.3833 12.4177 31.3758 12.1251C31.3707 11.9268 31.4456 11.7759 31.6214 11.6977L31.6126 11.3556C31.2255 11.4421 31.0636 11.8009 31.0722 12.1337C31.0767 12.5681 31.3751 12.9706 31.8991 12.9557Z",fill:"#A8A8A8"}),d.createElement("path",{d:"M31.5348 10.2594L32.7864 10.5517L32.8573 10.2176L31.6056 9.92523L31.6965 9.49661L31.411 9.42993L31.1579 10.6236L31.4434 10.6903L31.5348 10.2594Z",fill:"#A8A8A8"}),d.createElement("path",{d:"M32.6805 8.11039L33.4869 8.52935L33.6356 8.21411L32.2183 7.47778L32.1714 7.57722L32.5856 8.82766L31.7852 8.41183L31.6354 8.72919L33.0508 9.46448L33.0957 9.36927L32.6805 8.11039Z",fill:"#A8A8A8"}),d.createElement("path",{d:"M34.6633 6.90948L34.814 7.05131L35.0138 6.81752L34.6503 6.47555L34.5242 6.6232L33.5643 5.72021L33.3376 5.98564L34.2823 6.87445L33.9038 7.31741L32.9592 6.42861L32.7339 6.69227L33.9064 7.7954L34.6633 6.90948Z",fill:"#A8A8A8"}),d.createElement("path",{d:"M35.516 5.07213L35.9991 5.86885L36.2819 5.68002L35.4329 4.27979L35.3437 4.33935L35.0808 5.63412L34.6014 4.84338L34.3167 5.03348L35.1645 6.43171L35.2499 6.37469L35.516 5.07213Z",fill:"#A8A8A8"}),d.createElement("path",{d:"M37.4177 4.26129L37.676 5.16585L37.9971 5.06489L37.5431 3.4751L37.4419 3.50695L36.8533 4.67785L36.597 3.78006L36.2737 3.88172L36.7271 5.46923L36.824 5.43874L37.4177 4.26129Z",fill:"#A8A8A8"}),d.createElement("path",{d:"M39.7889 3.63976L40.1901 3.67557L40.1049 4.72705L39.5154 4.67443C39.5864 4.63339 39.6263 4.53268 39.6389 4.46037L39.7889 3.63976ZM39.0565 4.62636L39.0134 5.15798L39.3294 5.18619L39.3483 4.95331C39.6868 4.98352 39.9401 5.00613 40.2785 5.03634L40.2597 5.26921L40.56 5.29602L40.6031 4.76441L40.435 4.7494L40.5443 3.40154C40.2237 3.37293 39.8426 3.33891 39.5221 3.3103L39.3083 4.41664C39.2775 4.57264 39.2449 4.64081 39.1103 4.63116L39.0565 4.62636Z",fill:"#A8A8A8"}),d.createElement("path",{d:"M42.667 4.95915C42.8564 4.4412 42.5946 4.01715 42.2102 3.86235C41.8196 3.70501 41.3555 3.83417 41.1653 4.35432C40.975 4.87447 41.2284 5.29514 41.6212 5.45333C42.0664 5.63266 42.4952 5.42861 42.667 4.95915ZM41.4824 4.48206C41.6017 4.15585 41.868 4.07346 42.099 4.16651C42.328 4.25871 42.4742 4.50471 42.354 4.83311C42.2307 5.17033 41.9648 5.24527 41.7358 5.15307C41.5006 5.05832 41.3591 4.81927 41.4824 4.48206Z",fill:"#A8A8A8"}),d.createElement("path",{d:"M43.1248 5.23009C42.8071 5.66463 42.9479 6.14693 43.2763 6.41134C43.5369 6.62115 43.9082 6.69105 44.2151 6.38765L43.9581 6.18071C43.7989 6.30544 43.616 6.2802 43.4607 6.15518C43.2376 5.97555 43.23 5.67184 43.3944 5.44707C43.5765 5.19796 43.8478 5.14867 44.0692 5.32686C44.2191 5.44758 44.2836 5.60366 44.2308 5.79618L44.4895 6.00455C44.6693 5.63454 44.5057 5.27663 44.2541 5.07401C43.9298 4.80397 43.4439 4.79367 43.1248 5.23009Z",fill:"#A8A8A8"}),d.createElement("path",{d:"M45.339 6.60757L44.336 7.446L44.5393 7.71375L45.5422 6.87531L45.8029 7.21877L46.0317 7.02755L45.3056 6.07104L45.0769 6.26227L45.339 6.60757Z",fill:"#A8A8A8"}),d.createElement("path",{d:"M45.466 8.46952C45.2899 8.47339 45.2251 8.39368 45.2154 8.21728L44.9491 8.30171C44.9892 8.74125 45.2129 8.82329 45.5631 8.81133L46.9032 8.81577L46.9335 8.80018L46.776 8.46316L46.0112 8.48341L46.0063 8.47281L46.4729 7.81458L46.3094 7.46484L46.271 7.48459L45.623 8.46761L45.466 8.46952Z",fill:"#A8A8A8"}),d.createElement("path",{d:"M47.1502 9.46289L45.608 9.79728C45.6308 9.91288 45.6536 10.0285 45.6763 10.1441L46.9188 9.87465L47.0403 10.4919L45.7978 10.7613C45.8206 10.8769 45.8434 10.9925 45.8661 11.1081L47.4083 10.7738L47.1502 9.46289Z",fill:"#A8A8A8"}),d.createElement("path",{d:"M45.8237 13.0055L47.3947 13.1201L47.4181 12.7669L46.8189 12.7231L46.8607 12.092L47.4599 12.1357L47.4831 11.7848L45.9122 11.6702L45.8889 12.0211L46.5532 12.0696L46.5114 12.7007L45.8471 12.6522L45.8237 13.0055Z",fill:"#A8A8A8"}),d.createElement("path",{d:"M47.0839 14.5381L47.2062 14.2182L45.7446 13.603L45.4968 14.2516C45.3736 14.5737 45.5041 14.8474 45.7284 14.9773C45.9947 15.1302 46.3537 15.0599 46.501 14.6743L46.6266 14.3456L47.0484 14.5231C47.0589 14.5276 47.0714 14.5329 47.0839 14.5381ZM46.2254 14.5583C46.1668 14.7117 46.0101 14.7475 45.8836 14.6789C45.7517 14.6056 45.7267 14.4806 45.7912 14.3119C45.8264 14.2199 45.8636 14.1288 45.898 14.039L46.351 14.2296L46.238 14.5255C46.2338 14.5364 46.2297 14.5473 46.2254 14.5583ZM46.5404 15.9602L46.6652 15.6337L45.2036 15.0185L45.0789 15.3449L46.5404 15.9602Z",fill:"#A8A8A8"}),d.createElement("path",{d:"M44.3599 18.0249C44.5698 18.242 44.8369 18.2133 45.039 17.9981L45.508 17.4987L44.388 16.3403L43.8748 16.8868C43.6537 17.1222 43.6588 17.3993 43.8559 17.6031C43.9712 17.7224 44.1179 17.758 44.2637 17.6935C44.2375 17.8122 44.2782 17.9405 44.3599 18.0249ZM44.8513 17.7675C44.7691 17.8549 44.6641 17.8557 44.584 17.7695C44.5103 17.6899 44.516 17.5897 44.5965 17.504L44.8128 17.2737L45.0676 17.5371L44.8513 17.7675ZM44.3663 17.3388C44.33 17.3775 44.2952 17.4078 44.2491 17.4165C44.1919 17.4269 44.1329 17.4023 44.0896 17.3542C44.019 17.2713 44.0183 17.1712 44.0989 17.0854L44.361 16.8063L44.6174 17.0715L44.3663 17.3388Z",fill:"#A8A8A8"}),d.createElement("path",{d:"M43.7067 18.1751C43.4429 17.7025 42.9641 17.6575 42.607 17.8771C42.3236 18.0513 42.1219 18.386 42.274 18.7986L42.5536 18.6268C42.5035 18.425 42.5947 18.2567 42.7635 18.1529C43.0062 18.0038 43.2771 18.1108 43.4136 18.3553C43.5649 18.6262 43.5061 18.9085 43.2654 19.0565C43.1023 19.1568 42.9402 19.1607 42.7902 19.0367L42.5087 19.2097C42.7676 19.5239 43.1452 19.4998 43.4188 19.3315C43.7795 19.1181 43.9716 18.6497 43.7067 18.1751Z",fill:"#A8A8A8"}),d.createElement("path",{d:"M41.0545 20.3067L41.9831 20.0307L41.5539 18.4407L40.608 18.7219L40.6914 19.0307L41.3105 18.8468L41.4086 19.2102L40.8458 19.3774L40.9261 19.675L41.4889 19.5077L41.5759 19.8302L40.9742 20.0091L41.0545 20.3067Z",fill:"#A8A8A8"}),d.createElement("path",{d:"M39.3932 19.7146L40.0368 20.4903L40.1606 20.4884L40.1361 18.8313L39.7987 18.8368L39.8119 19.7314L39.4084 19.2185L39.3656 19.2192L38.9774 19.7449L38.9643 18.8502L38.6268 18.8557L38.6512 20.5129L38.7727 20.5109L39.3932 19.7146Z",fill:"#A8A8A8"}),d.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M39.2716 17.3467C42.0976 17.3467 44.4027 14.9372 44.4027 11.9467C44.4027 8.95624 42.0976 6.5467 39.2716 6.5467C36.4455 6.5467 34.1404 8.95624 34.1404 11.9467C34.1404 14.9372 36.4455 17.3467 39.2716 17.3467ZM39.2716 17.6134C42.2502 17.6134 44.6648 15.0763 44.6648 11.9467C44.6648 8.81708 42.2502 6.28003 39.2716 6.28003C36.293 6.28003 33.8783 8.81708 33.8783 11.9467C33.8783 15.0763 36.293 17.6134 39.2716 17.6134Z",fill:"#A8A8A8"})),B3=()=>{const{LinkWrapper:e,hostnames:{hostname:t}}=J(),{locale:n}=z(),r=n===jn.ru?`${t}/`:`${t}/market/dashboard`;return a.jsx(e,{style:{height:"24px"},href:r,"aria-label":pt[n].logo,children:a.jsx(F3,{})})},oy=f.styled.div`
|
|
2423
|
+
`,m1=({checked:e=!1,text:t,htmlText:n,name:r,onChange:o,size:i="L",form:s="square",color:l,verticalAlign:c="center",horizontalAlign:u="start",value:p,isTextLeft:h,readonly:C=!1,className:g,classNameText:v,disabled:x=!1})=>{const{mode:b}=K(),y=k=>{o&&!C&&o(k.target.checked,k)};return a.jsx(f.ThemeProvider,{theme:G[b],children:a.jsxs(Jb,{$verticalAlign:c,$horizontalAlign:u,$readonly:C,className:Be(g,"checkbox-container"),children:[a.jsx(R3,{onClick:k=>k.stopPropagation(),value:p,type:"checkbox",readOnly:C,checked:e,name:r,onChange:y,disabled:x}),a.jsx(R1,{className:"checkbox-element",size:i,form:s}),n?a.jsx(Qb,{isTextLeft:h,children:n}):null,!!t&&a.jsx(qb,{className:Be(v,"checkbox-text"),color:l,isTextLeft:h,variant:i==="S"?"description-Medium":i==="M"?"text-Medium":"controls-Medium",tag:"span",children:t})]})})},zs=e=>d.createElement("svg",{width:20,height:20,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},d.createElement("path",{d:"M9.99984 18.9583C5.05817 18.9583 1.0415 14.9417 1.0415 9.99999C1.0415 5.05832 5.05817 1.04166 9.99984 1.04166C14.9415 1.04166 18.9582 5.05832 18.9582 9.99999C18.9582 14.9417 14.9415 18.9583 9.99984 18.9583ZM9.99984 2.29166C5.74984 2.29166 2.2915 5.74999 2.2915 9.99999C2.2915 14.25 5.74984 17.7083 9.99984 17.7083C14.2498 17.7083 17.7082 14.25 17.7082 9.99999C17.7082 5.74999 14.2498 2.29166 9.99984 2.29166Z",fill:"#3038F5"}),d.createElement("path",{d:"M10 11.4583C9.65833 11.4583 9.375 11.175 9.375 10.8333V6.66666C9.375 6.32499 9.65833 6.04166 10 6.04166C10.3417 6.04166 10.625 6.32499 10.625 6.66666V10.8333C10.625 11.175 10.3417 11.4583 10 11.4583Z",fill:"#3038F5"}),d.createElement("path",{d:"M9.99984 14.1667C9.8915 14.1667 9.78317 14.1417 9.68317 14.1C9.58317 14.0583 9.4915 14 9.40817 13.925C9.33317 13.8417 9.27484 13.7583 9.23317 13.65C9.1915 13.55 9.1665 13.4417 9.1665 13.3333C9.1665 13.225 9.1915 13.1167 9.23317 13.0167C9.27484 12.9167 9.33317 12.825 9.40817 12.7417C9.4915 12.6667 9.58317 12.6083 9.68317 12.5667C9.88317 12.4833 10.1165 12.4833 10.3165 12.5667C10.4165 12.6083 10.5082 12.6667 10.5915 12.7417C10.6665 12.825 10.7248 12.9167 10.7665 13.0167C10.8082 13.1167 10.8332 13.225 10.8332 13.3333C10.8332 13.4417 10.8082 13.55 10.7665 13.65C10.7248 13.7583 10.6665 13.8417 10.5915 13.925C10.5082 14 10.4165 14.0583 10.3165 14.1C10.2165 14.1417 10.1082 14.1667 9.99984 14.1667Z",fill:"#3038F5"})),Kb=({openCreateList:e})=>{const[t,n]=m.useState(!0),{groups:r,selectedGroups:o,loader:i,onSave:s,onCheckboxClick:l}=ca(),{locale:c}=z(),u=p=>{l(p),n(!1)};return r.length===0?a.jsxs(a5,{children:[a.jsxs(Wb,{children:[a.jsx(Yb,{children:a.jsx(zs,{})}),a.jsx(P,{variant:"text-Medium",colorName:"primary",children:Ot[c].notGroupsTitle})]}),a.jsx(P,{variant:"text-Regular",colorName:"fourth",marginBottom:"16px",children:Ot[c].notGroupsMessage}),a.jsx(Ys,{children:a.jsx(st,{onClick:()=>e(!0),mode:"primary",text:Ot[c].createList})})]}):a.jsxs(a.Fragment,{children:[a.jsx(a5,{children:r?.map(p=>a.jsxs(zb,{onClick:()=>u(p.id),children:[a.jsx(m1,{checked:o.includes(p.id),text:p.name}),a.jsxs(Gb,{children:[p.instruments?.length||0,Ot[c].amount]})]},p.id))}),a.jsxs(Ys,{children:[a.jsx(st,{onClick:()=>e(!0),mode:"secondary",text:Ot[c].createList}),a.jsx(st,{width:"156px",disabled:t,loading:i,mode:"primary",text:Ot[c].save,onClick:s})]})]})},ey=({onClose:e})=>{const[t,n]=m.useState(""),[r,o]=m.useState(!1),{locale:i}=z(),{submitNewList:s}=ca(),l=async()=>{o(!0),await s(t),o(!1),e()};return a.jsxs("div",{children:[a.jsx(Ul,{label:Ot[i].nameList,children:a.jsx(Dr,{name:"groupName",placeholder:Ot[i].input,value:t,onChange:c=>n(c)})}),a.jsxs(Ys,{children:[a.jsx(st,{onClick:e,mode:"secondary",text:Ot[i].cancel}),a.jsx(st,{disabled:!t||r,mode:"primary",text:Ot[i].save,onClick:l})]})]})},ty=()=>{const[e,t]=m.useState(!1),{instrumentId:n,handleClose:r}=ca(),{locale:o}=z();return a.jsx(Wt,{open:n!==null,onClose:r,title:e?Ot[o].titleCreate:Ot[o].title,maxWidth:"564px",children:e?a.jsx(ey,{onClose:()=>t(!1)}):a.jsx(Kb,{openCreateList:()=>t(!0)})})},ua=({onClose:e,isWithoutTitle:t,category:n})=>{const{data:r,searchText:o,isLoading:i}=Bb(n),{listItems:s,tabs:l,bubbles:c,selectedTab:u,setSelectedTab:p,setSelectedBubble:h,selectedBubble:C}=Dv(r),g=!!o&&!l&&r!==null,v=!r&&(!n||n===jt.invest);return a.jsxs(qx,{children:[a.jsxs(Iv,{children:[a.jsx(hx,{isWithoutTitle:t,bubbles:c,tabs:l,category:n,selectedTab:u,setSelectedTab:p,selectedBubble:C,setSelectedBubble:h}),a.jsxs(_v,{children:[n!==jt.club&&a.jsx(Kx,{isRenderSelections:v,onClose:e}),!!s?.length&&a.jsx(Hb,{searchText:o,listItems:s,onClose:e}),a.jsx(Zb,{isEmpty:g,isLoading:i,category:n})]})]}),a.jsx(ty,{})]})},H3=({isOpenSearch:e})=>{const[t,n]=m.useState(!1);m.useEffect(()=>{n(e)},[e]);const{locale:r}=z();return a.jsxs(a.Fragment,{children:[a.jsxs(uv,{onClick:()=>n(!0),children:[a.jsx(dv,{children:a.jsx(ql,{})}),a.jsx("span",{children:ze[r].search})]}),t&&a.jsxs(pv,{children:[a.jsxs(fv,{children:[a.jsxs(hv,{children:[ze[r].search_header,a.jsx(mv,{onClick:()=>n(!1),children:a.jsx(p3,{})})]}),a.jsx(h3,{locale:r})]}),a.jsx(gv,{children:a.jsx(ua,{isWithoutTitle:!0,onClose:()=>n(!1)})})]})]})},ny=({isLeaderboardPermission:e,isOpenSearch:t})=>{const[n,r]=m.useState(null),{hostnames:{hostname:o,hostnameLenta:i,hostnameLMS:s},userRole:l,user:c}=J();$o(!0),Eo();const u=h6(o,i,s,e,l,c.type),{locale:p}=z();return a.jsxs(a.Fragment,{children:[a.jsxs(_f,{children:[a.jsxs(Sf,{children:[a.jsx(Df,{children:be[p].main_menu}),a.jsx(H3,{isOpenSearch:t})]}),a.jsx(jf,{children:u.map((h,C)=>a.jsx(xg,{data:h,setShowQuiz:r},C))})]}),(l==="authorized"||l==="standard")&&a.jsx(h1,{isOpen:!!n,name:n?.name||"",description:n?.description||"",imagePlug:n?.imagePlug||"",imagePlugMob:n?.imagePlugMob||"",setIsOpen:r})]})},pt={ru:{logo:"Логотип компании",search:"Поиск по сайту",profile:"Меню профиля",header:"Шапка сайта",burger:"Боковое меню",favourite:"Мое избранное",notifications:"Мои уведомления",basket:"Корзина"},en:{logo:"Company logo",search:"Site search",profile:"Profile menu",header:"Site header",burger:"Side menu",favourite:"My favourite",notifications:"My notifications",basket:"My basket"}},ry=({isLeaderboardPermission:e})=>{const[t,n]=m.useState(!1),[r,o]=m.useState(!1),{locale:i}=z(),{pathname:s}=J();return m.useEffect(()=>{n(!1)},[s]),m.useEffect(()=>{const l=()=>{n(!0),o(!0)},c=Xe.subscribe(We.SearchOpen,l);return()=>{c()}},[]),a.jsxs(a.Fragment,{children:[t&&a.jsx($f,{onClick:()=>n(!1)}),a.jsxs(Ef,{children:[a.jsxs(Mf,{onClick:()=>n(!t),$isOpen:t,"aria-label":pt[i].burger,children:[a.jsx("div",{}),a.jsx("div",{}),a.jsx("div",{})]}),t&&a.jsx(ny,{isOpenSearch:r,isLeaderboardPermission:e})]})]})},F3=e=>d.createElement("svg",{width:152,height:24,viewBox:"0 0 152 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},d.createElement("path",{d:"M3.98022 20.3909V16.0391H6.72072C10.3312 16.0391 12.18 12.9615 12.18 9.88386C12.2452 6.71009 10.3747 3.56036 6.72072 3.56036C4.45872 3.53632 2.262 3.56036 0 3.56036V20.3909H3.98022ZM3.915 12.2161V7.38331H6.72072C7.80822 7.38331 8.37372 8.56146 8.37372 9.76364C8.37372 10.9899 7.76472 12.2161 6.72072 12.2161H3.915ZM24.234 14.4281C25.7347 13.2981 26.4742 11.4467 26.496 9.52321C26.496 6.56583 24.6907 3.56036 21.0149 3.56036C18.7747 3.53632 16.5779 3.56036 14.3159 3.56036V20.3909H18.2962V15.1254H20.3842L22.9942 20.3909H27.2137V19.7658L24.234 14.4281ZM18.2309 11.5428V7.38331H20.9932C22.1242 7.38331 22.6462 8.36911 22.6462 9.42703C22.6462 10.485 22.1024 11.5428 20.9932 11.5428H18.2309ZM64.3101 11.1341H59.4381V7.40736H64.9626V3.58441H55.4578V20.415H59.4381V14.9811H64.3101V11.1341ZM72.6601 16.8565V7.14288H74.4218V3.58441H66.9182V7.14288H68.6799V16.8565H66.7438V20.415H74.5955V16.8565H72.6601ZM89.256 20.4631H90.43V3.58441H86.4498V11.8074L78.5112 3.51228H77.2714V20.415H81.2515V11.7352L89.256 20.4631ZM102.521 18.3232L103.413 20.415H107.523V19.8139L100.606 3.4161H98.7796L91.7979 19.8139V20.415H95.9524L96.8224 18.3232H102.521ZM99.6713 10.5811L101.259 14.6445H98.1057L99.6713 10.5811ZM120.904 20.4631H122.078V3.58441H118.098V11.8074L110.159 3.51228H108.919V20.415H112.899V11.7352L120.904 20.4631ZM124.577 15.2456C124.512 19.0205 127.6 20.7997 130.819 20.7997C133.929 20.7997 137.039 18.9483 137.039 15.4139C137.039 11.3265 134.212 10.485 130.972 10.1724C129.514 10.0041 128.644 9.7396 128.644 8.60954C128.644 7.33523 129.819 7.07075 130.711 7.07075C131.776 7.07075 132.755 7.55162 132.777 8.70572H136.496C136.561 5.05107 133.582 3.19971 130.645 3.19971C127.535 3.19971 124.729 5.05107 124.729 8.70572C124.729 12.2161 127.514 13.4423 130.297 13.6347C131.407 13.7068 133.103 13.7789 133.103 15.3898C133.103 16.3997 131.907 16.9767 130.776 16.9767C129.558 16.9767 128.362 16.3997 128.362 15.2456H124.577ZM144.345 9.16255L141.582 3.58441H137.319V4.23359L142.43 13.7549V20.415H146.41V13.7549L151.5 4.23359V3.58441H147.28L144.518 9.16255H144.345Z",fill:"#A8A8A8"}),d.createElement("path",{d:"M35.2008 18.5389L35.6556 17.7242L35.3664 17.5464L34.567 18.9784L34.6583 19.0345L35.876 18.6886L35.4245 19.4973L35.7157 19.6763L36.514 18.2463L36.4266 18.1926L35.2008 18.5389Z",fill:"#A8A8A8"}),d.createElement("path",{d:"M34.0924 16.2656L32.9589 17.4128L33.1931 17.6677L33.6255 17.2301L34.044 17.6855L33.6116 18.123L33.8443 18.3763L34.9779 17.2292L34.7452 16.976L34.2658 17.461L33.8473 17.0056L34.3267 16.5205L34.0924 16.2656Z",fill:"#A8A8A8"}),d.createElement("path",{d:"M32.2445 15.3205C31.9874 15.4718 31.9396 15.7491 32.0806 16.0126L32.4076 16.624L33.7789 15.8163L33.4211 15.1472C33.2669 14.859 33.0118 14.7873 32.7705 14.9294C32.6292 15.0126 32.5559 15.1505 32.5746 15.3156C32.4732 15.2562 32.3445 15.2616 32.2445 15.3205ZM32.3438 15.8873C32.2866 15.7802 32.3149 15.6742 32.4161 15.6173C32.5094 15.565 32.5996 15.5986 32.6558 15.7036L32.8066 15.9856L32.4946 16.1694L32.3438 15.8873ZM32.8708 15.5173C32.8455 15.47 32.8274 15.4264 32.8322 15.3776C32.8385 15.3171 32.8774 15.2644 32.9335 15.234C33.029 15.186 33.1209 15.213 33.177 15.318L33.3598 15.6598L33.0459 15.8446L32.8708 15.5173Z",fill:"#A8A8A8"}),d.createElement("path",{d:"M31.2693 13.7934L31.5359 14.7668L33.0494 14.3104L32.7779 13.3188L32.4839 13.4075L32.6615 14.0564L32.3156 14.1607L32.154 13.5708L31.8708 13.6562L32.0324 14.2461L31.7253 14.3387L31.5526 13.708L31.2693 13.7934Z",fill:"#A8A8A8"}),d.createElement("path",{d:"M31.8991 12.9557C32.4208 12.9409 32.6891 12.5224 32.6779 12.0881C32.669 11.7436 32.4868 11.3969 32.0689 11.3379L32.0777 11.6777C32.2703 11.7289 32.3668 11.8939 32.3721 12.0992C32.3797 12.3941 32.1597 12.5917 31.8899 12.5994C31.5908 12.6078 31.3833 12.4177 31.3758 12.1251C31.3707 11.9268 31.4456 11.7759 31.6214 11.6977L31.6126 11.3556C31.2255 11.4421 31.0636 11.8009 31.0722 12.1337C31.0767 12.5681 31.3751 12.9706 31.8991 12.9557Z",fill:"#A8A8A8"}),d.createElement("path",{d:"M31.5348 10.2594L32.7864 10.5517L32.8573 10.2176L31.6056 9.92523L31.6965 9.49661L31.411 9.42993L31.1579 10.6236L31.4434 10.6903L31.5348 10.2594Z",fill:"#A8A8A8"}),d.createElement("path",{d:"M32.6805 8.11039L33.4869 8.52935L33.6356 8.21411L32.2183 7.47778L32.1714 7.57722L32.5856 8.82766L31.7852 8.41183L31.6354 8.72919L33.0508 9.46448L33.0957 9.36927L32.6805 8.11039Z",fill:"#A8A8A8"}),d.createElement("path",{d:"M34.6633 6.90948L34.814 7.05131L35.0138 6.81752L34.6503 6.47555L34.5242 6.6232L33.5643 5.72021L33.3376 5.98564L34.2823 6.87445L33.9038 7.31741L32.9592 6.42861L32.7339 6.69227L33.9064 7.7954L34.6633 6.90948Z",fill:"#A8A8A8"}),d.createElement("path",{d:"M35.516 5.07213L35.9991 5.86885L36.2819 5.68002L35.4329 4.27979L35.3437 4.33935L35.0808 5.63412L34.6014 4.84338L34.3167 5.03348L35.1645 6.43171L35.2499 6.37469L35.516 5.07213Z",fill:"#A8A8A8"}),d.createElement("path",{d:"M37.4177 4.26129L37.676 5.16585L37.9971 5.06489L37.5431 3.4751L37.4419 3.50695L36.8533 4.67785L36.597 3.78006L36.2737 3.88172L36.7271 5.46923L36.824 5.43874L37.4177 4.26129Z",fill:"#A8A8A8"}),d.createElement("path",{d:"M39.7889 3.63976L40.1901 3.67557L40.1049 4.72705L39.5154 4.67443C39.5864 4.63339 39.6263 4.53268 39.6389 4.46037L39.7889 3.63976ZM39.0565 4.62636L39.0134 5.15798L39.3294 5.18619L39.3483 4.95331C39.6868 4.98352 39.9401 5.00613 40.2785 5.03634L40.2597 5.26921L40.56 5.29602L40.6031 4.76441L40.435 4.7494L40.5443 3.40154C40.2237 3.37293 39.8426 3.33891 39.5221 3.3103L39.3083 4.41664C39.2775 4.57264 39.2449 4.64081 39.1103 4.63116L39.0565 4.62636Z",fill:"#A8A8A8"}),d.createElement("path",{d:"M42.667 4.95915C42.8564 4.4412 42.5946 4.01715 42.2102 3.86235C41.8196 3.70501 41.3555 3.83417 41.1653 4.35432C40.975 4.87447 41.2284 5.29514 41.6212 5.45333C42.0664 5.63266 42.4952 5.42861 42.667 4.95915ZM41.4824 4.48206C41.6017 4.15585 41.868 4.07346 42.099 4.16651C42.328 4.25871 42.4742 4.50471 42.354 4.83311C42.2307 5.17033 41.9648 5.24527 41.7358 5.15307C41.5006 5.05832 41.3591 4.81927 41.4824 4.48206Z",fill:"#A8A8A8"}),d.createElement("path",{d:"M43.1248 5.23009C42.8071 5.66463 42.9479 6.14693 43.2763 6.41134C43.5369 6.62115 43.9082 6.69105 44.2151 6.38765L43.9581 6.18071C43.7989 6.30544 43.616 6.2802 43.4607 6.15518C43.2376 5.97555 43.23 5.67184 43.3944 5.44707C43.5765 5.19796 43.8478 5.14867 44.0692 5.32686C44.2191 5.44758 44.2836 5.60366 44.2308 5.79618L44.4895 6.00455C44.6693 5.63454 44.5057 5.27663 44.2541 5.07401C43.9298 4.80397 43.4439 4.79367 43.1248 5.23009Z",fill:"#A8A8A8"}),d.createElement("path",{d:"M45.339 6.60757L44.336 7.446L44.5393 7.71375L45.5422 6.87531L45.8029 7.21877L46.0317 7.02755L45.3056 6.07104L45.0769 6.26227L45.339 6.60757Z",fill:"#A8A8A8"}),d.createElement("path",{d:"M45.466 8.46952C45.2899 8.47339 45.2251 8.39368 45.2154 8.21728L44.9491 8.30171C44.9892 8.74125 45.2129 8.82329 45.5631 8.81133L46.9032 8.81577L46.9335 8.80018L46.776 8.46316L46.0112 8.48341L46.0063 8.47281L46.4729 7.81458L46.3094 7.46484L46.271 7.48459L45.623 8.46761L45.466 8.46952Z",fill:"#A8A8A8"}),d.createElement("path",{d:"M47.1502 9.46289L45.608 9.79728C45.6308 9.91288 45.6536 10.0285 45.6763 10.1441L46.9188 9.87465L47.0403 10.4919L45.7978 10.7613C45.8206 10.8769 45.8434 10.9925 45.8661 11.1081L47.4083 10.7738L47.1502 9.46289Z",fill:"#A8A8A8"}),d.createElement("path",{d:"M45.8237 13.0055L47.3947 13.1201L47.4181 12.7669L46.8189 12.7231L46.8607 12.092L47.4599 12.1357L47.4831 11.7848L45.9122 11.6702L45.8889 12.0211L46.5532 12.0696L46.5114 12.7007L45.8471 12.6522L45.8237 13.0055Z",fill:"#A8A8A8"}),d.createElement("path",{d:"M47.0839 14.5381L47.2062 14.2182L45.7446 13.603L45.4968 14.2516C45.3736 14.5737 45.5041 14.8474 45.7284 14.9773C45.9947 15.1302 46.3537 15.0599 46.501 14.6743L46.6266 14.3456L47.0484 14.5231C47.0589 14.5276 47.0714 14.5329 47.0839 14.5381ZM46.2254 14.5583C46.1668 14.7117 46.0101 14.7475 45.8836 14.6789C45.7517 14.6056 45.7267 14.4806 45.7912 14.3119C45.8264 14.2199 45.8636 14.1288 45.898 14.039L46.351 14.2296L46.238 14.5255C46.2338 14.5364 46.2297 14.5473 46.2254 14.5583ZM46.5404 15.9602L46.6652 15.6337L45.2036 15.0185L45.0789 15.3449L46.5404 15.9602Z",fill:"#A8A8A8"}),d.createElement("path",{d:"M44.3599 18.0249C44.5698 18.242 44.8369 18.2133 45.039 17.9981L45.508 17.4987L44.388 16.3403L43.8748 16.8868C43.6537 17.1222 43.6588 17.3993 43.8559 17.6031C43.9712 17.7224 44.1179 17.758 44.2637 17.6935C44.2375 17.8122 44.2782 17.9405 44.3599 18.0249ZM44.8513 17.7675C44.7691 17.8549 44.6641 17.8557 44.584 17.7695C44.5103 17.6899 44.516 17.5897 44.5965 17.504L44.8128 17.2737L45.0676 17.5371L44.8513 17.7675ZM44.3663 17.3388C44.33 17.3775 44.2952 17.4078 44.2491 17.4165C44.1919 17.4269 44.1329 17.4023 44.0896 17.3542C44.019 17.2713 44.0183 17.1712 44.0989 17.0854L44.361 16.8063L44.6174 17.0715L44.3663 17.3388Z",fill:"#A8A8A8"}),d.createElement("path",{d:"M43.7067 18.1751C43.4429 17.7025 42.9641 17.6575 42.607 17.8771C42.3236 18.0513 42.1219 18.386 42.274 18.7986L42.5536 18.6268C42.5035 18.425 42.5947 18.2567 42.7635 18.1529C43.0062 18.0038 43.2771 18.1108 43.4136 18.3553C43.5649 18.6262 43.5061 18.9085 43.2654 19.0565C43.1023 19.1568 42.9402 19.1607 42.7902 19.0367L42.5087 19.2097C42.7676 19.5239 43.1452 19.4998 43.4188 19.3315C43.7795 19.1181 43.9716 18.6497 43.7067 18.1751Z",fill:"#A8A8A8"}),d.createElement("path",{d:"M41.0545 20.3067L41.9831 20.0307L41.5539 18.4407L40.608 18.7219L40.6914 19.0307L41.3105 18.8468L41.4086 19.2102L40.8458 19.3774L40.9261 19.675L41.4889 19.5077L41.5759 19.8302L40.9742 20.0091L41.0545 20.3067Z",fill:"#A8A8A8"}),d.createElement("path",{d:"M39.3932 19.7146L40.0368 20.4903L40.1606 20.4884L40.1361 18.8313L39.7987 18.8368L39.8119 19.7314L39.4084 19.2185L39.3656 19.2192L38.9774 19.7449L38.9643 18.8502L38.6268 18.8557L38.6512 20.5129L38.7727 20.5109L39.3932 19.7146Z",fill:"#A8A8A8"}),d.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M39.2716 17.3467C42.0976 17.3467 44.4027 14.9372 44.4027 11.9467C44.4027 8.95624 42.0976 6.5467 39.2716 6.5467C36.4455 6.5467 34.1404 8.95624 34.1404 11.9467C34.1404 14.9372 36.4455 17.3467 39.2716 17.3467ZM39.2716 17.6134C42.2502 17.6134 44.6648 15.0763 44.6648 11.9467C44.6648 8.81708 42.2502 6.28003 39.2716 6.28003C36.293 6.28003 33.8783 8.81708 33.8783 11.9467C33.8783 15.0763 36.293 17.6134 39.2716 17.6134Z",fill:"#A8A8A8"})),B3=()=>{const{LinkWrapper:e,hostnames:{hostname:t}}=J(),{locale:n}=z(),r=n===jn.ru?`${t}/`:`${t}/market/dashboard`;return a.jsx(e,{style:{height:"24px"},href:r,"aria-label":pt[n].logo,children:a.jsx(F3,{})})},oy=f.styled.div`
|
|
2424
2424
|
display: flex;
|
|
2425
2425
|
align-items: center;
|
|
2426
2426
|
`,iy=f.styled.div`
|
|
@@ -4016,7 +4016,7 @@ Check the top-level render call using <`+ne+">.")}return Y}}function n2(_,Y){{if
|
|
|
4016
4016
|
border-radius: 12px;
|
|
4017
4017
|
padding: 4px 8px;
|
|
4018
4018
|
background: ${e=>e.theme.icons.accent};
|
|
4019
|
-
`,I5=()=>a.jsx(S$,{variant:"tag-Medium11",colorName:"contrastThemed",tag:"span",children:"Новинка"}),D$=m.memo(({item:e,isOpen:t,handleClose:n})=>{const[r,o]=m.useState(0),[i,s]=m.useState(null),{structure:l}=e,c=m.useRef(null),{LinkWrapper:u,userRole:p}=J(),{locale:h}=z(),C=e.isWithoutSubpage;m.useEffect(()=>{if(c.current&&t){const v=c.current.scrollHeight;o(v)}},[t,e]);const g=(v,x)=>{if(v&&!x.isOpenUnavailable){s(x);return}};return a.jsxs($$,{ref:c,$isOpen:t,$height:r,children:[l.map((v,x)=>a.jsx(M$,{children:v?.map(b=>{const y=b.unavailable,k=b.isHit,w=b.isNew,$=y&&!b.isOpenUnavailable?"div":u;return b.isNotVisible||b.isDeleteCommonNavigation?null:a.jsxs(L$,{$isOpen:t,onClick:n,children:[a.jsx($,{href:b.href,onClick:()=>g(y,b),children:a.jsxs(qu,{variant:"header6-SemiBold",tag:"span",colorName:"primary",children:[be[h][b.name],y&&a.jsx(T1,{style:{minWidth:"22px"}}),!y&&k&&a.jsx(L5,{}),!y&&!k&&w&&a.jsx(I5,{})]})}),b.subPages&&!C&&a.jsx(I$,{children:b.subPages?.map(E=>a.jsx(u,{href:E.href,children:a.jsxs(Ku,{variant:"description-Medium",tag:"span",colorName:"fourth",children:[be[h][E.name],E.isNew&&a.jsx(I5,{}),E.isHit&&a.jsx(L5,{})]})},E.name))})]},b.name)})},x)),p==="authorized"&&a.jsx(h1,{isOpen:!!i,name:i?.name||"",description:i?.description||"",imagePlug:i?.imagePlug||"",imagePlugMob:i?.imagePlugMob||"",setIsOpen:s})]})}),j$=m.memo(e=>{const{item:t,handleOpenItem:n,openItem:r,isOpenSearch:o}=e,{locale:i}=z(),{name:s,href:l}=t,c=m.useMemo(()=>{const u=kc();let p=!1;if(s==="idv"&&u){const h=wc(u);Array.isArray(h.tariff)&&h.tariff.forEach(C=>{(C.t===10078||C.t===10578)&&C.f===13&&C.p?.includes(54)&&(p=!0)})}return p},[s]);return a.jsxs(k$,{children:[a.jsx(A$,{item:t,isOpenSearch:o,handleOpenItem:n,children:a.jsx(Qu,{$isHover:r===s,$isIdv:c,children:a.jsx("div",{onClick:()=>l?n(null):null,onMouseEnter:()=>n(s),children:a.jsx(yc,{variant:"description-SemiBold",tag:"span",children:be[i][s]})})})}),a.jsx(D$,{item:t,isOpen:r===s,handleClose:()=>n(null)})]})}),A$=({item:e,isOpenSearch:t,handleOpenItem:n,children:r})=>{const{LinkWrapper:o}=J(),{locale:i}=z();return e.href?a.jsx(o,{href:e.href,tabIndex:t?-1:0,"aria-label":be[i][e.name],children:r}):a.jsx(E$,{onClick:()=>n(e.name),"aria-label":be[i][e.name],tabIndex:t?-1:0,children:r})},$i=e=>d.createElement("svg",{width:25,height:24,viewBox:"0 0 25 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},d.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 18.5C15.866 18.5 19 15.366 19 11.5C19 7.63401 15.866 4.5 12 4.5C8.13401 4.5 5 7.63401 5 11.5C5 15.366 8.13401 18.5 12 18.5ZM12 20C16.6944 20 20.5 16.1944 20.5 11.5C20.5 6.80558 16.6944 3 12 3C7.30558 3 3.5 6.80558 3.5 11.5C3.5 16.1944 7.30558 20 12 20Z",fill:"white"}),d.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M17.9697 18.4697C18.2626 18.1768 18.7374 18.1768 19.0303 18.4697L21.0303 20.4697C21.3232 20.7626 21.3232 21.2374 21.0303 21.5303C20.7374 21.8232 20.2626 21.8232 19.9697 21.5303L17.9697 19.5303C17.6768 19.2374 17.6768 18.7626 17.9697 18.4697Z",fill:"white"})),_5=e=>f.keyframes`
|
|
4019
|
+
`,I5=()=>a.jsx(S$,{variant:"tag-Medium11",colorName:"contrastThemed",tag:"span",children:"Новинка"}),D$=m.memo(({item:e,isOpen:t,handleClose:n})=>{const[r,o]=m.useState(0),[i,s]=m.useState(null),{structure:l}=e,c=m.useRef(null),{LinkWrapper:u,userRole:p}=J(),{locale:h}=z(),C=e.isWithoutSubpage;m.useEffect(()=>{if(c.current&&t){const v=c.current.scrollHeight;o(v)}},[t,e]);const g=(v,x)=>{if(v&&!x.isOpenUnavailable){s(x);return}};return a.jsxs($$,{ref:c,$isOpen:t,$height:r,children:[l.map((v,x)=>a.jsx(M$,{children:v?.map(b=>{const y=b.unavailable,k=b.isHit,w=b.isNew,$=y&&!b.isOpenUnavailable?"div":u;return b.isNotVisible||b.isDeleteCommonNavigation?null:a.jsxs(L$,{$isOpen:t,onClick:n,children:[a.jsx($,{href:b.href,onClick:()=>g(y,b),children:a.jsxs(qu,{variant:"header6-SemiBold",tag:"span",colorName:"primary",children:[be[h][b.name],y&&a.jsx(T1,{style:{minWidth:"22px"}}),!y&&k&&a.jsx(L5,{}),!y&&!k&&w&&a.jsx(I5,{})]})}),b.subPages&&!C&&a.jsx(I$,{children:b.subPages?.map(E=>a.jsx(u,{href:E.href,children:a.jsxs(Ku,{variant:"description-Medium",tag:"span",colorName:"fourth",children:[be[h][E.name],E.isNew&&a.jsx(I5,{}),E.isHit&&a.jsx(L5,{})]})},E.name))})]},b.name)})},x)),(p==="authorized"||p==="standard")&&a.jsx(h1,{isOpen:!!i,name:i?.name||"",description:i?.description||"",imagePlug:i?.imagePlug||"",imagePlugMob:i?.imagePlugMob||"",setIsOpen:s})]})}),j$=m.memo(e=>{const{item:t,handleOpenItem:n,openItem:r,isOpenSearch:o}=e,{locale:i}=z(),{name:s,href:l}=t,c=m.useMemo(()=>{const u=kc();let p=!1;if(s==="idv"&&u){const h=wc(u);Array.isArray(h.tariff)&&h.tariff.forEach(C=>{(C.t===10078||C.t===10578)&&C.f===13&&C.p?.includes(54)&&(p=!0)})}return p},[s]);return a.jsxs(k$,{children:[a.jsx(A$,{item:t,isOpenSearch:o,handleOpenItem:n,children:a.jsx(Qu,{$isHover:r===s,$isIdv:c,children:a.jsx("div",{onClick:()=>l?n(null):null,onMouseEnter:()=>n(s),children:a.jsx(yc,{variant:"description-SemiBold",tag:"span",children:be[i][s]})})})}),a.jsx(D$,{item:t,isOpen:r===s,handleClose:()=>n(null)})]})}),A$=({item:e,isOpenSearch:t,handleOpenItem:n,children:r})=>{const{LinkWrapper:o}=J(),{locale:i}=z();return e.href?a.jsx(o,{href:e.href,tabIndex:t?-1:0,"aria-label":be[i][e.name],children:r}):a.jsx(E$,{onClick:()=>n(e.name),"aria-label":be[i][e.name],tabIndex:t?-1:0,children:r})},$i=e=>d.createElement("svg",{width:25,height:24,viewBox:"0 0 25 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},d.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 18.5C15.866 18.5 19 15.366 19 11.5C19 7.63401 15.866 4.5 12 4.5C8.13401 4.5 5 7.63401 5 11.5C5 15.366 8.13401 18.5 12 18.5ZM12 20C16.6944 20 20.5 16.1944 20.5 11.5C20.5 6.80558 16.6944 3 12 3C7.30558 3 3.5 6.80558 3.5 11.5C3.5 16.1944 7.30558 20 12 20Z",fill:"white"}),d.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M17.9697 18.4697C18.2626 18.1768 18.7374 18.1768 19.0303 18.4697L21.0303 20.4697C21.3232 20.7626 21.3232 21.2374 21.0303 21.5303C20.7374 21.8232 20.2626 21.8232 19.9697 21.5303L17.9697 19.5303C17.6768 19.2374 17.6768 18.7626 17.9697 18.4697Z",fill:"white"})),_5=e=>f.keyframes`
|
|
4020
4020
|
from {
|
|
4021
4021
|
width: 48px;
|
|
4022
4022
|
opacity: 0;
|
|
@@ -4494,7 +4494,7 @@ Check the top-level render call using <`+ne+">.")}return Y}}function n2(_,Y){{if
|
|
|
4494
4494
|
opacity: 0.6;
|
|
4495
4495
|
}
|
|
4496
4496
|
}
|
|
4497
|
-
`,tL=({data:e})=>{const{isActive:t}=Zt(e.href,e.subPages,e.innerPages),{LinkWrapper:n}=J(),{locale:r}=z();return a.jsx(eL,{$isActive:t,children:a.jsxs(n,{href:e.href,children:[a.jsx("span",{children:be[r][e.name]}),e.isNew&&a.jsx(ra,{})]})})},nL=({data:e})=>a.jsx(KM,{children:e.map((t,n)=>a.jsx(tL,{data:t},n))}),rL=({data:e,setShowQuiz:t})=>{const[n,r]=m.useState(!1),{LinkWrapper:o}=J(),{locale:i}=z(),{isActive:s}=Zt(e.href,e.subPages,e.innerPages),l=e.unavailable,c=e.isOpenUnavailable,u=e.locked,p=m.useMemo(()=>u||c?e.href:l||e.subPages?null:e.href,[l,e,u]),h=()=>{if(l){t(e);return}if(e.subPages){r(!n);return}},C=()=>a.jsxs(a.Fragment,{children:[be[i][e.name],a.jsxs(QM,{children:[e.isNew&&a.jsx(ra,{}),e.isHit&&a.jsx(X6,{}),e.locked&&!l&&a.jsx(G6,{}),!e.locked&&!!e.subPages&&!l&&a.jsx(oa,{isOpen:n}),l&&a.jsx(u1,{})]})]});return e.isNotVisible?null:p?a.jsx(D5,{isLocked:u,isOpen:n,isActive:s,children:a.jsx(o,{href:p,children:C()})}):a.jsxs(D5,{isLocked:u,isOpen:n,isActive:s,children:[a.jsx("button",{onClick:h,children:C()}),n&&a.jsx(nL,{data:e.subPages})]})},oL=({data:e,setShowQuiz:t})=>a.jsx(JM,{children:e.map((n,r)=>a.jsx(rL,{data:n,setShowQuiz:t},r))}),iL=({data:e,setShowQuiz:t})=>{const[n,r]=m.useState(!1),{locale:o}=z(),{isActive:i}=Zt(e.config.href,e.config.subPages);return a.jsxs("div",{children:[a.jsxs(GM,{onClick:()=>r(!n),isOpen:n,isActive:i,children:[a.jsxs(I4,{isActive:i,"data-icon-fill":e.config?.isFill,children:[e.config?.Icon&&a.jsx(e.config.Icon,{}),a.jsx(XM,{isActive:i,children:a.jsx("span",{children:be[o][e.name]})})]}),a.jsx(oa,{isOpen:n})]}),n&&a.jsx(oL,{data:e.config.subPages,setShowQuiz:t})]})},aL=({isLeaderboardPermission:e,isOpenSearch:t})=>{const[n,r]=m.useState(null),{hostnames:{hostname:o,hostnameLenta:i,hostnameLMS:s},userRole:l,user:c}=J();$o(!0),Eo();const u=L4(o,i,s,e,l,c.type,!0),{locale:p}=z();return a.jsxs(a.Fragment,{children:[a.jsxs(tM,{children:[a.jsxs(nM,{children:[a.jsx(rM,{children:be[p].main_menu}),a.jsx(H3,{isOpenSearch:t})]}),a.jsx(oM,{children:u.map((h,C)=>a.jsx(iL,{data:h,setShowQuiz:r},C))})]}),l==="authorized"&&a.jsx(h1,{isOpen:!!n,name:n?.name||"",description:n?.description||"",imagePlug:n?.imagePlug||"",imagePlugMob:n?.imagePlugMob||"",setIsOpen:r})]})},sL=({isLeaderboardPermission:e})=>{const[t,n]=m.useState(!1),[r,o]=m.useState(!1),{locale:i}=z(),{pathname:s}=J();return m.useEffect(()=>{n(!1)},[s]),m.useEffect(()=>{const l=()=>{n(!0),o(!0)},c=Xe.subscribe(We.SearchOpen,l);return()=>{c()}},[]),a.jsxs(a.Fragment,{children:[t&&a.jsx(Q$,{onClick:()=>n(!1)}),a.jsxs(J$,{children:[a.jsxs(q$,{onClick:()=>n(!t),$isOpen:t,"aria-label":pt[i].burger,children:[a.jsx("div",{}),a.jsx("div",{}),a.jsx("div",{})]}),t&&a.jsx(aL,{isOpenSearch:r,isLeaderboardPermission:e})]})]})},_4=()=>{const{LinkWrapper:e,hostnames:{hostname:t}}=J(),{locale:n}=z(),r=n===jn.ru?`${t}/`:`${t}/market/dashboard`;return a.jsx(e,{style:{height:"24px"},href:r,"aria-label":pt[n].logo,children:a.jsx(F3,{})})},lL=f.styled.div`
|
|
4497
|
+
`,tL=({data:e})=>{const{isActive:t}=Zt(e.href,e.subPages,e.innerPages),{LinkWrapper:n}=J(),{locale:r}=z();return a.jsx(eL,{$isActive:t,children:a.jsxs(n,{href:e.href,children:[a.jsx("span",{children:be[r][e.name]}),e.isNew&&a.jsx(ra,{})]})})},nL=({data:e})=>a.jsx(KM,{children:e.map((t,n)=>a.jsx(tL,{data:t},n))}),rL=({data:e,setShowQuiz:t})=>{const[n,r]=m.useState(!1),{LinkWrapper:o}=J(),{locale:i}=z(),{isActive:s}=Zt(e.href,e.subPages,e.innerPages),l=e.unavailable,c=e.isOpenUnavailable,u=e.locked,p=m.useMemo(()=>u||c?e.href:l||e.subPages?null:e.href,[l,e,u]),h=()=>{if(l){t(e);return}if(e.subPages){r(!n);return}},C=()=>a.jsxs(a.Fragment,{children:[be[i][e.name],a.jsxs(QM,{children:[e.isNew&&a.jsx(ra,{}),e.isHit&&a.jsx(X6,{}),e.locked&&!l&&a.jsx(G6,{}),!e.locked&&!!e.subPages&&!l&&a.jsx(oa,{isOpen:n}),l&&a.jsx(u1,{})]})]});return e.isNotVisible?null:p?a.jsx(D5,{isLocked:u,isOpen:n,isActive:s,children:a.jsx(o,{href:p,children:C()})}):a.jsxs(D5,{isLocked:u,isOpen:n,isActive:s,children:[a.jsx("button",{onClick:h,children:C()}),n&&a.jsx(nL,{data:e.subPages})]})},oL=({data:e,setShowQuiz:t})=>a.jsx(JM,{children:e.map((n,r)=>a.jsx(rL,{data:n,setShowQuiz:t},r))}),iL=({data:e,setShowQuiz:t})=>{const[n,r]=m.useState(!1),{locale:o}=z(),{isActive:i}=Zt(e.config.href,e.config.subPages);return a.jsxs("div",{children:[a.jsxs(GM,{onClick:()=>r(!n),isOpen:n,isActive:i,children:[a.jsxs(I4,{isActive:i,"data-icon-fill":e.config?.isFill,children:[e.config?.Icon&&a.jsx(e.config.Icon,{}),a.jsx(XM,{isActive:i,children:a.jsx("span",{children:be[o][e.name]})})]}),a.jsx(oa,{isOpen:n})]}),n&&a.jsx(oL,{data:e.config.subPages,setShowQuiz:t})]})},aL=({isLeaderboardPermission:e,isOpenSearch:t})=>{const[n,r]=m.useState(null),{hostnames:{hostname:o,hostnameLenta:i,hostnameLMS:s},userRole:l,user:c}=J();$o(!0),Eo();const u=L4(o,i,s,e,l,c.type,!0),{locale:p}=z();return a.jsxs(a.Fragment,{children:[a.jsxs(tM,{children:[a.jsxs(nM,{children:[a.jsx(rM,{children:be[p].main_menu}),a.jsx(H3,{isOpenSearch:t})]}),a.jsx(oM,{children:u.map((h,C)=>a.jsx(iL,{data:h,setShowQuiz:r},C))})]}),(l==="authorized"||l==="standard")&&a.jsx(h1,{isOpen:!!n,name:n?.name||"",description:n?.description||"",imagePlug:n?.imagePlug||"",imagePlugMob:n?.imagePlugMob||"",setIsOpen:r})]})},sL=({isLeaderboardPermission:e})=>{const[t,n]=m.useState(!1),[r,o]=m.useState(!1),{locale:i}=z(),{pathname:s}=J();return m.useEffect(()=>{n(!1)},[s]),m.useEffect(()=>{const l=()=>{n(!0),o(!0)},c=Xe.subscribe(We.SearchOpen,l);return()=>{c()}},[]),a.jsxs(a.Fragment,{children:[t&&a.jsx(Q$,{onClick:()=>n(!1)}),a.jsxs(J$,{children:[a.jsxs(q$,{onClick:()=>n(!t),$isOpen:t,"aria-label":pt[i].burger,children:[a.jsx("div",{}),a.jsx("div",{}),a.jsx("div",{})]}),t&&a.jsx(aL,{isOpenSearch:r,isLeaderboardPermission:e})]})]})},_4=()=>{const{LinkWrapper:e,hostnames:{hostname:t}}=J(),{locale:n}=z(),r=n===jn.ru?`${t}/`:`${t}/market/dashboard`;return a.jsx(e,{style:{height:"24px"},href:r,"aria-label":pt[n].logo,children:a.jsx(F3,{})})},lL=f.styled.div`
|
|
4498
4498
|
display: flex;
|
|
4499
4499
|
align-items: center;
|
|
4500
4500
|
`,cL=f.styled.div`
|
|
@@ -5379,7 +5379,7 @@ Check the top-level render call using <`+ne+">.")}return Y}}function n2(_,Y){{if
|
|
|
5379
5379
|
`,VI=f.styled.img`
|
|
5380
5380
|
border-radius: ${e=>e.$withOutBorderRadius?"0px":"12px"};
|
|
5381
5381
|
object-fit: cover;
|
|
5382
|
-
`,OI=typeof window<"u"&&!!window.ym,B5=(e,t)=>{OI&&window.ym(89369871,"reachGoal",e,t)},NI=(e,t)=>ut(`/modal/list?code=${t}`,"GET",{...e,baseUrl:kl}),ZI=(e,t)=>ut(`/modal/view?banner_platform_id=${t.banner_platform_id}&banner_id=${t.banner_id}`,"PUT",{...e,baseUrl:kl}),WI=(e,t)=>ut(`/modal/click?view_id=${t.view_id}`,"PUT",{...e,baseUrl:kl},t),YI=({yandexEvent:e,yandexEventView:t,isNotBannerShow:n,bannerData:r})=>{const[o,i]=m.useState(null),{user:s}=J(),l=s.token,c=m.useRef(null);m.useEffect(()=>{if(n)return;const h=c.current;if(!h)return;const C=new IntersectionObserver(([g],v)=>{g.isIntersecting&&(p(),v.unobserve(g.target))},{threshold:.5});return C.observe(h),()=>{C.disconnect()}},[n]);const u=async()=>{e&&B5(e),o&&await WI({token:l},{view_id:o})},p=async()=>{if(!r)return;t&&B5(t);const h=await ZI({token:l},{banner_id:r.id,banner_platform_id:r.banner_platform_id});h?.view_id&&i(h.view_id)};return{handleClick:u,ref:c}},ls="your_banner_key",zI=({bannerData:e})=>{const[t,n]=m.useState(!0),r=e?.id;return m.useEffect(()=>{if(r&&!JSON.parse(localStorage.getItem(ls)??"[]").includes(r)){n(!1);return}},[r]),{handleCloseBanner:i=>{i.preventDefault(),i.stopPropagation(),n(!0);const s=JSON.parse(localStorage.getItem(ls)??"[]");if(s?.includes(r))return;const l=[r,...s];localStorage.setItem(ls,JSON.stringify(l))},bannerClosed:t}},GI=({bannerCode:e})=>{const[t,n]=m.useState(null),{user:r}=J(),o=r.token;return m.useEffect(()=>{o&&(async()=>{try{const s=await NI({token:o},e);if(!s?.data.length){n(null);return}n(s.data[0])}catch{n(null)}})()},[e,o]),{bannerData:t}},XI=({bannerData:e,size:t})=>{const n=at(it.down(600)),r=at(it.down(960)),o=at(it.down(1200)),i={"688x334":n,"688x452":r,"1052x688":o,"1300x1052":!n&&!r&&!o},s=Object.keys(i).find(c=>i[c]);return{bannerUrl:e?.photos[t||s]}},N4=({bannerCode:e,size:t,bannerMaxWidth:n,mb:r,mt:o,closeButtonHidden:i,yandexEvent:s,yandexEventView:l,rootStyles:c,target:u="_blank",withOutBorderRadius:p})=>{const{user:h}=J(),{bannerData:C}=GI({bannerCode:e}),{bannerUrl:g}=XI({bannerData:C,size:t}),{handleCloseBanner:v,bannerClosed:x}=zI({bannerData:C}),b=!!C&&!!g,y=h.type===2,k=!b||x||y,{handleClick:w,ref:$}=YI({yandexEventView:l,yandexEvent:s,isNotBannerShow:k,bannerData:C});return k?null:a.jsxs(HI,{ref:$,target:u,href:C?.url,style:c,rel:"noreferrer",$bannerMaxWidth:n,$mt:o,$mb:r,onClick:w,children:[!i&&a.jsx(FI,{onClick:v,children:a.jsx(BI,{})}),g&&a.jsx(VI,{src:Lo(g,"_"),alt:"Картинка баннера",$withOutBorderRadius:p})]})},UI=m.memo(({item:e,isOpen:t,handleClose:n,itemIndex:r=0,tabRef:o})=>{const[i,s]=m.useState(0),[l,c]=m.useState(null),[u,p]=m.useState(null),h=m.useRef(null),{LinkWrapper:C,userRole:g}=J(),{locale:v}=z(),{config:x}=e,b=r<=1;m.useEffect(()=>{if(h.current&&t){const w=h.current.scrollHeight;s(w)}},[t,e]),m.useEffect(()=>{if(o?.current&&b){const w=o.current.getBoundingClientRect();p(w.left)}},[o,b,t]);const y=(w,$)=>{if(w&&!$.isOpenUnavailable){c($);return}n()},k=(w,$)=>{const{type:E,items:L,image:M,hasViewAllButton:I,viewAllButtonText:D,href:V,icon:N,bannerCode:R}=w,O=L?.filter(S=>!S.isNotVisible).length||0;if(E==="first")return a.jsx(j5,{$isFirst:!0,$isSecond:!1,$isFirstRowHorizontal:x.isFirstRowHorizontal,$isSecondRowHorizontal:x.isSecondRowHorizontal,children:L?.map((S,B)=>{if(S.isNotVisible)return null;const A=S.unavailable,j=a.jsxs(A5,{onClick:S.href&&!A?n:void 0,$isHorizontal:x.isFirstRowHorizontal,$itemsCount:O,$isFirstColumnHorizontal:x.isSecondRowHorizontal,$isFirstRowHorizontal:x.isFirstRowHorizontal&&B===0,$isSecondRowHorizontal:!1,style:{cursor:S.comingSoon?"default":"pointer"},children:[a.jsx(P5,{variant:"header6-Bold",tag:"span",colorName:"primary",$textWidth:S.textWidth,children:be[v][S.title]}),A&&a.jsx(H5,{children:a.jsx(T1,{})}),S.image&&a.jsx(T5,{src:S.image.src,alt:be[v][S.title],style:{width:`${S.image.width}px`,height:`${S.image.height}px`,maxWidth:"none",maxHeight:"none"}}),S.comingSoon&&a.jsx(R5,{children:a.jsx(P,{variant:"caption2-Medium",tag:"span",colorName:"contrast",textAlign:"center",children:be[v].coming_soon})})]});return a.jsx("div",{children:S.href&&(!A||S.isOpenUnavailable)?a.jsx(C,{href:S.href,children:j}):a.jsx("div",{onClick:()=>y(A,{name:S.name||S.title,description:S.description||"",imagePlug:S.imagePlug||"",href:S.href||"",isOpenUnavailable:S.isOpenUnavailable}),children:j})},B)})},$);if(E==="second")return a.jsx(j5,{$isFirst:!1,$isSecond:!0,$isFirstRowHorizontal:x.isFirstRowHorizontal,$isSecondRowHorizontal:x.isSecondRowHorizontal,children:L?.map((S,B)=>{if(S.isNotVisible)return null;const A=S.unavailable,j=a.jsxs(A5,{onClick:S.href&&!A?n:void 0,$isHorizontal:x.isFirstRowHorizontal||x.isSecondRowHorizontal,$itemsCount:O,$isFirstColumnHorizontal:!1,$isFirstRowHorizontal:x.isFirstRowHorizontal,$isSecondRowHorizontal:x.isSecondRowHorizontal&&B===0,$isSecondColumnFirstRow:x.isFirstRowHorizontal,style:{cursor:S.comingSoon?"default":"pointer"},children:[a.jsx(P5,{variant:"header6-Bold",tag:"span",colorName:"primary",$textWidth:S.textWidth,children:be[v][S.title]}),A&&a.jsx(H5,{children:a.jsx(T1,{})}),S.image&&a.jsx(T5,{src:S.image.src,alt:be[v][S.title],style:{width:`${S.image.width}px`,height:`${S.image.height}px`,maxWidth:"none",maxHeight:"none"}}),S.comingSoon&&a.jsx(R5,{children:a.jsx(P,{variant:"caption2-Medium",tag:"span",colorName:"contrast",children:be[v].coming_soon})})]});return a.jsx("div",{children:S.href&&(!A||S.isOpenUnavailable)?a.jsx(C,{href:S.href,children:j}):a.jsx("div",{onClick:()=>y(A,{name:S.name||S.title,description:S.description||"",imagePlug:S.imagePlug||"",href:S.href||"",isOpenUnavailable:S.isOpenUnavailable}),children:j})},B)})},$);if(E==="third")return a.jsxs(SI,{children:[L?.map((S,B)=>{if(S.isNotVisible)return null;const A=S.unavailable,j=a.jsxs(qo,{onClick:S.href&&!A?n:void 0,children:[a.jsxs(DI,{"data-icon-fill":S.isFill,children:[S.icon&&(typeof S.icon=="string"?a.jsx("img",{src:S.icon,alt:"",width:18,height:18}):a.jsx(S.icon,{})),a.jsx(jI,{variant:"text-Medium",tag:"span",colorName:"primary",children:be[v][S.title]})]}),A&&a.jsx(_I,{children:a.jsx(T1,{})})]});return a.jsx("div",{children:S.href&&(!A||S.isOpenUnavailable)?a.jsx(C,{href:S.href,children:j}):a.jsx("div",{onClick:()=>y(A,{name:S.name||S.title,description:S.description||"",imagePlug:S.imagePlug||"",href:S.href||"",isOpenUnavailable:S.isOpenUnavailable}),children:j})},B)}),I&&D&&V&&a.jsx(C,{href:V,children:a.jsxs(AI,{onClick:n,children:[a.jsx(TI,{variant:"text-Medium",tag:"span",colorName:"accent",children:be[v][D]}),N&&m.createElement(N)]})})]},$);if(E==="fourth"){const S=a.jsx(RI,{src:M,alt:"App",style:{width:"236px",height:"340px",maxWidth:"none",maxHeight:"none"}});return a.jsx(PI,{children:R&&g!=="guest"?a.jsx(F5,{children:a.jsx(N4,{bannerCode:R,size:"236x340",target:"_self",closeButtonHidden:!0,withOutBorderRadius:!0})}):V?a.jsx(C,{href:V,children:a.jsx(F5,{children:S})}):S},$)}return null};return a.jsxs(xI,{$isOpen:t,children:[a.jsx(bI,{ref:h,$isOpen:t,$height:i,$shouldAlignLeft:b,$tabPosition:u,children:a.jsx(yI,{children:x.columns.map((w,$)=>k(w,$))})}),g==="authorized"&&a.jsx(h1,{isOpen:!!l,name:l?.name||"",description:l?.description||"",imagePlug:l?.imagePlug||"",imagePlugMob:l?.imagePlugMob||"",setIsOpen:c})]})}),JI=m.memo(e=>{const{item:t,handleOpenItem:n,openItem:r,itemIndex:o}=e,i=m.useRef(null),{locale:s}=z(),{name:l,config:c}=t,u=m.useMemo(()=>{const p=kc();let h=!1;if(l==="idv"&&p){const C=wc(p);Array.isArray(C.tariff)&&C.tariff.forEach(g=>{(g.t===10078||g.t===10578)&&g.f===13&&g.p?.includes(54)&&(h=!0)})}return h},[l]);return a.jsxs(CI,{children:[a.jsx(QI,{item:t,handleOpenItem:n,children:a.jsx(O4,{ref:i,$isHover:r===l,$isIdv:u,children:a.jsx("div",{onClick:()=>c.href?n(null):null,onMouseEnter:()=>n(l),children:a.jsx(H1,{variant:"description-SemiBold",tag:"span",children:be[s][l]})})})}),a.jsx(UI,{item:t,isOpen:r===l,handleClose:()=>n(null),itemIndex:o,tabRef:i})]})}),QI=({item:e,handleOpenItem:t,children:n})=>{const{LinkWrapper:r}=J(),{locale:o}=z();return e.config.href?a.jsx(r,{href:e.config.href,tabIndex:0,"aria-label":be[o][e.name],children:n}):a.jsx(vI,{onClick:()=>t(e.name),"aria-label":be[o][e.name],tabIndex:0,children:n})},qI=({leaderBoardPermission:e,isOpenSearch:t})=>{const[n,r]=m.useState(null),[o,i]=m.useState(!1),{userRole:s,user:l,hostnames:{hostname:c,hostnameLenta:u,hostnameLMS:p}}=J(),h=L4(c,u,p,e,s,l.type),C=g=>{t||(i(!!g),r(g))};return a.jsxs(a.Fragment,{children:[a.jsx(s4,{"aria-hidden":!0,$isOpen:o}),a.jsx(a4,{children:a.jsx(U$,{onMouseLeave:()=>C(null),onClick:g=>g.stopPropagation(),children:h?.map((g,v)=>a.jsx(JI,{openItem:n,handleOpenItem:C,item:g,itemIndex:v},v))})})]})},KI=({leaderBoardPermission:e,isPossibleTrial:t,onLogout:n})=>{const[r,o]=m.useState(!1),[i,s]=m.useState(!1),[l,c]=m.useState(0),{locale:u}=z(),{mode:p}=K();m.useEffect(()=>{Ba(!1),document.documentElement.style.setProperty("--header-height","118px")},[]);const h=m.useCallback(()=>{const C=window.scrollY;if(C<=10){s(!1),Ba(!1),document.documentElement.style.setProperty("--header-height","118px"),c(C);return}Math.abs(C-l)>50&&(C>l&&(s(!0),Ba(!0),document.documentElement.style.setProperty("--header-height","64px")),c(C))},[l]);return m.useEffect(()=>(window.addEventListener("scroll",h,{passive:!0}),()=>window.removeEventListener("scroll",h)),[h]),a.jsx(f.ThemeProvider,{theme:G[p],children:a.jsxs("div",{"aria-label":pt[u].header,children:[a.jsx(i4,{$isCollapsed:i}),a.jsx(n4,{id:"header-container",children:a.jsx(r4,{$isCollapsed:i,children:a.jsxs(o4,{$isCollapsed:i,children:[a.jsxs(z$,{$isCollapsed:i,children:[a.jsx(_4,{}),a.jsx(hI,{isOpenSearch:r,setIsOpenSearch:o}),a.jsx(V4,{isPossibleTrial:t,onLogout:n})]}),a.jsx(G$,{$isCollapsed:i,children:a.jsx(qI,{leaderBoardPermission:e,isOpenSearch:r})})]})})})]})})},e_=({onLogout:e,leaderBoardPermission:t})=>{const{user:n}=J(),{device:r}=Rn(),o=at(it.down(Zi)),l=(typeof window<"u"?window.screen.width:0)>=1200&&r==="mobile"?o:r==="mobile"||o,{rights:c={},purchased:u={}}=n,{isPossibleTrial:p}=Y$(c,u);return l?a.jsx(oI,{leaderBoardPermission:t,isPossibleTrial:p,onLogout:e}):a.jsx(KI,{leaderBoardPermission:t,isPossibleTrial:p,onLogout:e})},_c=e=>d.createElement("svg",{width:152,height:25,viewBox:"0 0 152 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},d.createElement("path",{d:"M3.98022 21.202V16.8502H6.72072C10.3312 16.8502 12.18 13.7726 12.18 10.695C12.2452 7.52122 10.3747 4.37149 6.72072 4.37149C4.45872 4.34745 2.262 4.37149 0 4.37149V21.202H3.98022ZM3.915 13.0272V8.19444H6.72072C7.80822 8.19444 8.37372 9.37258 8.37372 10.5748C8.37372 11.801 7.76472 13.0272 6.72072 13.0272H3.915ZM24.234 15.2392C25.7347 14.1092 26.4742 12.2578 26.496 10.3343C26.496 7.37696 24.6907 4.37149 21.0149 4.37149C18.7747 4.34745 16.5779 4.37149 14.3159 4.37149V21.202H18.2962V15.9365H20.3842L22.9942 21.202H27.2137V20.5769L24.234 15.2392ZM18.2309 12.354V8.19444H20.9932C22.1242 8.19444 22.6462 9.18023 22.6462 10.2382C22.6462 11.2961 22.1024 12.354 20.9932 12.354H18.2309ZM64.3101 11.9453H59.4381V8.21848H64.9626V4.39553H55.4578V21.2261H59.4381V15.7923H64.3101V11.9453ZM72.6601 17.6677V7.954H74.4218V4.39553H66.9182V7.954H68.6799V17.6677H66.7438V21.2261H74.5955V17.6677H72.6601ZM89.256 21.2742H90.43V4.39553H86.4498V12.6185L78.5112 4.3234H77.2714V21.2261H81.2515V12.5463L89.256 21.2742ZM102.521 19.1343L103.413 21.2261H107.523V20.625L100.606 4.22723H98.7796L91.7979 20.625V21.2261H95.9524L96.8224 19.1343H102.521ZM99.6713 11.3923L101.259 15.4556H98.1057L99.6713 11.3923ZM120.904 21.2742H122.078V4.39553H118.098V12.6185L110.159 4.3234H108.919V21.2261H112.899V12.5463L120.904 21.2742ZM124.577 16.0567C124.512 19.8316 127.6 21.6108 130.819 21.6108C133.929 21.6108 137.039 19.7594 137.039 16.225C137.039 12.1376 134.212 11.2961 130.972 10.9835C129.514 10.8152 128.644 10.5507 128.644 9.42067C128.644 8.14635 129.819 7.88187 130.711 7.88187C131.776 7.88187 132.755 8.36275 132.777 9.51684H136.496C136.561 5.8622 133.582 4.01083 130.645 4.01083C127.535 4.01083 124.729 5.8622 124.729 9.51684C124.729 13.0272 127.514 14.2535 130.297 14.4458C131.407 14.5179 133.103 14.5901 133.103 16.201C133.103 17.2108 131.907 17.7878 130.776 17.7878C129.558 17.7878 128.362 17.2108 128.362 16.0567H124.577ZM144.345 9.97368L141.582 4.39553H137.319V5.04471L142.43 14.566V21.2261H146.41V14.566L151.5 5.04471V4.39553H147.28L144.518 9.97368H144.345Z",fill:"#6553F5"}),d.createElement("path",{d:"M35.2008 19.3501L35.6556 18.5353L35.3664 18.3575L34.567 19.7895L34.6583 19.8457L35.876 19.4998L35.4245 20.3085L35.7157 20.4875L36.514 19.0575L36.4266 19.0038L35.2008 19.3501Z",fill:"#6553F5"}),d.createElement("path",{d:"M34.0924 17.0767L32.9589 18.2238L33.1931 18.4787L33.6255 18.0411L34.044 18.4966L33.6116 18.9341L33.8443 19.1873L34.9779 18.0402L34.7452 17.787L34.2658 18.2721L33.8473 17.8166L34.3267 17.3316L34.0924 17.0767Z",fill:"#6553F5"}),d.createElement("path",{d:"M32.2445 16.1317C31.9874 16.283 31.9396 16.5603 32.0806 16.8238L32.4076 17.4352L33.7789 16.6275L33.4211 15.9584C33.2669 15.6702 33.0118 15.5985 32.7705 15.7406C32.6292 15.8238 32.5559 15.9617 32.5746 16.1267C32.4732 16.0674 32.3445 16.0728 32.2445 16.1317ZM32.3438 16.6985C32.2866 16.5914 32.3149 16.4854 32.4161 16.4285C32.5094 16.3762 32.5996 16.4098 32.6558 16.5148L32.8066 16.7968L32.4946 16.9805L32.3438 16.6985ZM32.8708 16.3285C32.8455 16.2812 32.8274 16.2376 32.8322 16.1888C32.8385 16.1283 32.8774 16.0756 32.9335 16.0452C33.029 15.9971 33.1209 16.0242 33.177 16.1292L33.3598 16.471L33.0459 16.6558L32.8708 16.3285Z",fill:"#6553F5"}),d.createElement("path",{d:"M31.2693 14.6046L31.5359 15.5779L33.0494 15.1215L32.7779 14.13L32.4839 14.2187L32.6615 14.8676L32.3156 14.9719L32.154 14.382L31.8708 14.4674L32.0323 15.0573L31.7253 15.1499L31.5526 14.5191L31.2693 14.6046Z",fill:"#6553F5"}),d.createElement("path",{d:"M31.8991 13.7667C32.4208 13.7519 32.6891 13.3334 32.6779 12.8992C32.669 12.5546 32.4868 12.2079 32.0689 12.1489L32.0777 12.4888C32.2703 12.54 32.3668 12.7049 32.3721 12.9102C32.3797 13.2052 32.1597 13.4028 31.8899 13.4104C31.5908 13.4188 31.3833 13.2287 31.3758 12.9361C31.3707 12.7379 31.4456 12.5869 31.6214 12.5088L31.6126 12.1666C31.2255 12.2531 31.0636 12.6119 31.0722 12.9447C31.0767 13.3791 31.3751 13.7816 31.8991 13.7667Z",fill:"#6553F5"}),d.createElement("path",{d:"M31.5348 11.0706L32.7864 11.3629L32.8572 11.0288L31.6056 10.7364L31.6965 10.3078L31.411 10.2411L31.1579 11.4348L31.4433 11.5015L31.5348 11.0706Z",fill:"#6553F5"}),d.createElement("path",{d:"M32.6805 8.92139L33.4869 9.34036L33.6356 9.02512L32.2183 8.28879L32.1714 8.38823L32.5856 9.63866L31.7852 9.22284L31.6354 9.5402L33.0508 10.2755L33.0957 10.1803L32.6805 8.92139Z",fill:"#6553F5"}),d.createElement("path",{d:"M34.6633 7.72069L34.814 7.86252L35.0138 7.62874L34.6503 7.28676L34.5242 7.43442L33.5643 6.53143L33.3376 6.79686L34.2823 7.68567L33.9038 8.12863L32.9592 7.23983L32.7339 7.50349L33.9064 8.60662L34.6633 7.72069Z",fill:"#6553F5"}),d.createElement("path",{d:"M35.516 5.88313L35.9991 6.67985L36.2819 6.49102L35.4329 5.09079L35.3437 5.15035L35.0808 6.44513L34.6014 5.65439L34.3167 5.84448L35.1645 7.24271L35.2499 7.18569L35.516 5.88313Z",fill:"#6553F5"}),d.createElement("path",{d:"M37.4178 5.07245L37.676 5.97701L37.9971 5.87604L37.5431 4.28625L37.4419 4.31811L36.8533 5.489L36.597 4.59122L36.2738 4.69287L36.7271 6.28039L36.824 6.2499L37.4178 5.07245Z",fill:"#6553F5"}),d.createElement("path",{d:"M39.7889 4.45085L40.1901 4.48667L40.1049 5.53814L39.5154 5.48552C39.5864 5.44448 39.6263 5.34378 39.6389 5.27146L39.7889 4.45085ZM39.0565 5.43745L39.0134 5.96907L39.3294 5.99729L39.3483 5.76441C39.6868 5.79462 39.9401 5.81723 40.2785 5.84744L40.2597 6.08031L40.56 6.10712L40.6031 5.5755L40.435 5.5605L40.5442 4.21263C40.2237 4.18402 39.8426 4.15001 39.5221 4.1214L39.3083 5.22773C39.2775 5.38374 39.2449 5.4519 39.1103 5.44226L39.0565 5.43745Z",fill:"#6553F5"}),d.createElement("path",{d:"M42.667 5.77031C42.8564 5.25236 42.5946 4.82831 42.2102 4.67351C41.8196 4.51617 41.3555 4.64533 41.1653 5.16547C40.975 5.68563 41.2284 6.10629 41.6212 6.26448C42.0664 6.44382 42.4952 6.23977 42.667 5.77031ZM41.4824 5.29321C41.6017 4.96701 41.868 4.88462 42.099 4.97766C42.328 5.06987 42.4742 5.31586 42.354 5.64426C42.2307 5.98148 41.9648 6.05643 41.7358 5.96422C41.5006 5.86948 41.3591 5.63043 41.4824 5.29321Z",fill:"#6553F5"}),d.createElement("path",{d:"M43.1248 6.04115C42.8071 6.47569 42.9479 6.95799 43.2763 7.2224C43.5369 7.43222 43.9082 7.50212 44.2151 7.19871L43.9581 6.99178C43.7989 7.1165 43.616 7.09127 43.4607 6.96624C43.2376 6.78661 43.23 6.48291 43.3944 6.25814C43.5765 6.00903 43.8478 5.95974 44.0692 6.13792C44.2191 6.25864 44.2836 6.41473 44.2308 6.60725L44.4895 6.81561C44.6693 6.4456 44.5057 6.08769 44.2541 5.88507C43.9298 5.61503 43.4439 5.60473 43.1248 6.04115Z",fill:"#6553F5"}),d.createElement("path",{d:"M45.339 7.41866L44.336 8.2571L44.5393 8.52484L45.5422 7.68641L45.8029 8.02986L46.0317 7.83864L45.3056 6.88214L45.0769 7.07337L45.339 7.41866Z",fill:"#6553F5"}),d.createElement("path",{d:"M45.466 9.28056C45.2899 9.28442 45.2251 9.20472 45.2154 9.02831L44.9491 9.11275C44.9891 9.55229 45.2129 9.63433 45.5631 9.62236L46.9032 9.62681L46.9335 9.61121L46.776 9.2742L46.0112 9.29444L46.0063 9.28385L46.4729 8.62561L46.3094 8.27588L46.271 8.29563L45.623 9.27865L45.466 9.28056Z",fill:"#6553F5"}),d.createElement("path",{d:"M47.1502 10.2739L45.608 10.6083C45.6308 10.7239 45.6536 10.8395 45.6763 10.9551L46.9188 10.6857L47.0403 11.303L45.7978 11.5724C45.8206 11.688 45.8434 11.8036 45.8661 11.9192L47.4082 11.5848L47.1502 10.2739Z",fill:"#6553F5"}),d.createElement("path",{d:"M45.8237 13.8165L47.3947 13.9312L47.4181 13.5779L46.8189 13.5341L46.8607 12.903L47.4599 12.9467L47.4831 12.5958L45.9122 12.4812L45.8889 12.8321L46.5532 12.8806L46.5114 13.5117L45.8471 13.4632L45.8237 13.8165Z",fill:"#6553F5"}),d.createElement("path",{d:"M47.0839 15.3492L47.2062 15.0293L45.7446 14.4141L45.4968 15.0627C45.3736 15.3848 45.5041 15.6585 45.7284 15.7884C45.9947 15.9413 46.3537 15.871 46.501 15.4854L46.6266 15.1567L47.0484 15.3342C47.0589 15.3387 47.0714 15.3439 47.0839 15.3492ZM46.2254 15.3694C46.1668 15.5228 46.0101 15.5586 45.8836 15.49C45.7516 15.4167 45.7267 15.2917 45.7912 15.123C45.8264 15.031 45.8636 14.9399 45.898 14.8501L46.351 15.0407L46.238 15.3365C46.2338 15.3475 46.2296 15.3584 46.2254 15.3694ZM46.5404 16.7712L46.6652 16.4448L45.2036 15.8296L45.0788 16.156L46.5404 16.7712Z",fill:"#6553F5"}),d.createElement("path",{d:"M44.36 18.836C44.5698 19.0531 44.8369 19.0243 45.039 18.8092L45.508 18.3098L44.388 17.1514L43.8748 17.6978C43.6537 17.9332 43.6589 18.2103 43.8559 18.4141C43.9712 18.5335 44.1179 18.5691 44.2638 18.5046C44.2375 18.6233 44.2782 18.7515 44.36 18.836ZM44.8513 18.5785C44.7691 18.6659 44.6641 18.6667 44.584 18.5805C44.5103 18.501 44.516 18.4008 44.5965 18.315L44.8128 18.0847L45.0676 18.3481L44.8513 18.5785ZM44.3663 18.1498C44.33 18.1885 44.2952 18.2189 44.2491 18.2275C44.1919 18.238 44.1329 18.2134 44.0896 18.1653C44.019 18.0824 44.0184 17.9823 44.0989 17.8965L44.361 17.6173L44.6174 17.8825L44.3663 18.1498Z",fill:"#6553F5"}),d.createElement("path",{d:"M43.7067 18.9863C43.4429 18.5137 42.9641 18.4687 42.607 18.6882C42.3236 18.8625 42.1219 19.1972 42.274 19.6098L42.5536 19.438C42.5035 19.2362 42.5947 19.0679 42.7636 18.9641C43.0062 18.815 43.2771 18.922 43.4136 19.1664C43.5649 19.4374 43.5061 19.7197 43.2654 19.8677C43.1023 19.9679 42.9402 19.9718 42.7903 19.8479L42.5087 20.0209C42.7676 20.3351 43.1452 20.311 43.4188 20.1427C43.7795 19.9292 43.9716 19.4609 43.7067 18.9863Z",fill:"#6553F5"}),d.createElement("path",{d:"M41.0545 21.1177L41.9831 20.8417L41.5539 19.2517L40.608 19.5329L40.6914 19.8417L41.3105 19.6578L41.4086 20.0212L40.8458 20.1884L40.9261 20.486L41.4889 20.3188L41.5759 20.6412L40.9742 20.8201L41.0545 21.1177Z",fill:"#6553F5"}),d.createElement("path",{d:"M39.3932 20.5257L40.0368 21.3015L40.1606 21.2995L40.1361 19.6425L39.7987 19.648L39.8119 20.5426L39.4084 20.0297L39.3656 20.0303L38.9774 20.5561L38.9642 19.6614L38.6268 19.6669L38.6512 21.3241L38.7727 21.3221L39.3932 20.5257Z",fill:"#6553F5"}),d.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M39.2716 18.1578C42.0976 18.1578 44.4027 15.7482 44.4027 12.7578C44.4027 9.76734 42.0976 7.35779 39.2716 7.35779C36.4455 7.35779 34.1404 9.76734 34.1404 12.7578C34.1404 15.7482 36.4455 18.1578 39.2716 18.1578ZM39.2716 18.4245C42.2502 18.4245 44.6648 15.8874 44.6648 12.7578C44.6648 9.62818 42.2502 7.09113 39.2716 7.09113C36.293 7.09113 33.8783 9.62818 33.8783 12.7578C33.8783 15.8874 36.293 18.4245 39.2716 18.4245Z",fill:"#6553F5"})),t_=f.styled.div`
|
|
5382
|
+
`,OI=typeof window<"u"&&!!window.ym,B5=(e,t)=>{OI&&window.ym(89369871,"reachGoal",e,t)},NI=(e,t)=>ut(`/modal/list?code=${t}`,"GET",{...e,baseUrl:kl}),ZI=(e,t)=>ut(`/modal/view?banner_platform_id=${t.banner_platform_id}&banner_id=${t.banner_id}`,"PUT",{...e,baseUrl:kl}),WI=(e,t)=>ut(`/modal/click?view_id=${t.view_id}`,"PUT",{...e,baseUrl:kl},t),YI=({yandexEvent:e,yandexEventView:t,isNotBannerShow:n,bannerData:r})=>{const[o,i]=m.useState(null),{user:s}=J(),l=s.token,c=m.useRef(null);m.useEffect(()=>{if(n)return;const h=c.current;if(!h)return;const C=new IntersectionObserver(([g],v)=>{g.isIntersecting&&(p(),v.unobserve(g.target))},{threshold:.5});return C.observe(h),()=>{C.disconnect()}},[n]);const u=async()=>{e&&B5(e),o&&await WI({token:l},{view_id:o})},p=async()=>{if(!r)return;t&&B5(t);const h=await ZI({token:l},{banner_id:r.id,banner_platform_id:r.banner_platform_id});h?.view_id&&i(h.view_id)};return{handleClick:u,ref:c}},ls="your_banner_key",zI=({bannerData:e})=>{const[t,n]=m.useState(!0),r=e?.id;return m.useEffect(()=>{if(r&&!JSON.parse(localStorage.getItem(ls)??"[]").includes(r)){n(!1);return}},[r]),{handleCloseBanner:i=>{i.preventDefault(),i.stopPropagation(),n(!0);const s=JSON.parse(localStorage.getItem(ls)??"[]");if(s?.includes(r))return;const l=[r,...s];localStorage.setItem(ls,JSON.stringify(l))},bannerClosed:t}},GI=({bannerCode:e})=>{const[t,n]=m.useState(null),{user:r}=J(),o=r.token;return m.useEffect(()=>{o&&(async()=>{try{const s=await NI({token:o},e);if(!s?.data.length){n(null);return}n(s.data[0])}catch{n(null)}})()},[e,o]),{bannerData:t}},XI=({bannerData:e,size:t})=>{const n=at(it.down(600)),r=at(it.down(960)),o=at(it.down(1200)),i={"688x334":n,"688x452":r,"1052x688":o,"1300x1052":!n&&!r&&!o},s=Object.keys(i).find(c=>i[c]);return{bannerUrl:e?.photos[t||s]}},N4=({bannerCode:e,size:t,bannerMaxWidth:n,mb:r,mt:o,closeButtonHidden:i,yandexEvent:s,yandexEventView:l,rootStyles:c,target:u="_blank",withOutBorderRadius:p})=>{const{user:h}=J(),{bannerData:C}=GI({bannerCode:e}),{bannerUrl:g}=XI({bannerData:C,size:t}),{handleCloseBanner:v,bannerClosed:x}=zI({bannerData:C}),b=!!C&&!!g,y=h.type===2,k=!b||x||y,{handleClick:w,ref:$}=YI({yandexEventView:l,yandexEvent:s,isNotBannerShow:k,bannerData:C});return k?null:a.jsxs(HI,{ref:$,target:u,href:C?.url,style:c,rel:"noreferrer",$bannerMaxWidth:n,$mt:o,$mb:r,onClick:w,children:[!i&&a.jsx(FI,{onClick:v,children:a.jsx(BI,{})}),g&&a.jsx(VI,{src:Lo(g,"_"),alt:"Картинка баннера",$withOutBorderRadius:p})]})},UI=m.memo(({item:e,isOpen:t,handleClose:n,itemIndex:r=0,tabRef:o})=>{const[i,s]=m.useState(0),[l,c]=m.useState(null),[u,p]=m.useState(null),h=m.useRef(null),{LinkWrapper:C,userRole:g}=J(),{locale:v}=z(),{config:x}=e,b=r<=1;m.useEffect(()=>{if(h.current&&t){const w=h.current.scrollHeight;s(w)}},[t,e]),m.useEffect(()=>{if(o?.current&&b){const w=o.current.getBoundingClientRect();p(w.left)}},[o,b,t]);const y=(w,$)=>{if(w&&!$.isOpenUnavailable){c($);return}n()},k=(w,$)=>{const{type:E,items:L,image:M,hasViewAllButton:I,viewAllButtonText:D,href:V,icon:N,bannerCode:R}=w,O=L?.filter(S=>!S.isNotVisible).length||0;if(E==="first")return a.jsx(j5,{$isFirst:!0,$isSecond:!1,$isFirstRowHorizontal:x.isFirstRowHorizontal,$isSecondRowHorizontal:x.isSecondRowHorizontal,children:L?.map((S,B)=>{if(S.isNotVisible)return null;const A=S.unavailable,j=a.jsxs(A5,{onClick:S.href&&!A?n:void 0,$isHorizontal:x.isFirstRowHorizontal,$itemsCount:O,$isFirstColumnHorizontal:x.isSecondRowHorizontal,$isFirstRowHorizontal:x.isFirstRowHorizontal&&B===0,$isSecondRowHorizontal:!1,style:{cursor:S.comingSoon?"default":"pointer"},children:[a.jsx(P5,{variant:"header6-Bold",tag:"span",colorName:"primary",$textWidth:S.textWidth,children:be[v][S.title]}),A&&a.jsx(H5,{children:a.jsx(T1,{})}),S.image&&a.jsx(T5,{src:S.image.src,alt:be[v][S.title],style:{width:`${S.image.width}px`,height:`${S.image.height}px`,maxWidth:"none",maxHeight:"none"}}),S.comingSoon&&a.jsx(R5,{children:a.jsx(P,{variant:"caption2-Medium",tag:"span",colorName:"contrast",textAlign:"center",children:be[v].coming_soon})})]});return a.jsx("div",{children:S.href&&(!A||S.isOpenUnavailable)?a.jsx(C,{href:S.href,children:j}):a.jsx("div",{onClick:()=>y(A,{name:S.name||S.title,description:S.description||"",imagePlug:S.imagePlug||"",href:S.href||"",isOpenUnavailable:S.isOpenUnavailable}),children:j})},B)})},$);if(E==="second")return a.jsx(j5,{$isFirst:!1,$isSecond:!0,$isFirstRowHorizontal:x.isFirstRowHorizontal,$isSecondRowHorizontal:x.isSecondRowHorizontal,children:L?.map((S,B)=>{if(S.isNotVisible)return null;const A=S.unavailable,j=a.jsxs(A5,{onClick:S.href&&!A?n:void 0,$isHorizontal:x.isFirstRowHorizontal||x.isSecondRowHorizontal,$itemsCount:O,$isFirstColumnHorizontal:!1,$isFirstRowHorizontal:x.isFirstRowHorizontal,$isSecondRowHorizontal:x.isSecondRowHorizontal&&B===0,$isSecondColumnFirstRow:x.isFirstRowHorizontal,style:{cursor:S.comingSoon?"default":"pointer"},children:[a.jsx(P5,{variant:"header6-Bold",tag:"span",colorName:"primary",$textWidth:S.textWidth,children:be[v][S.title]}),A&&a.jsx(H5,{children:a.jsx(T1,{})}),S.image&&a.jsx(T5,{src:S.image.src,alt:be[v][S.title],style:{width:`${S.image.width}px`,height:`${S.image.height}px`,maxWidth:"none",maxHeight:"none"}}),S.comingSoon&&a.jsx(R5,{children:a.jsx(P,{variant:"caption2-Medium",tag:"span",colorName:"contrast",children:be[v].coming_soon})})]});return a.jsx("div",{children:S.href&&(!A||S.isOpenUnavailable)?a.jsx(C,{href:S.href,children:j}):a.jsx("div",{onClick:()=>y(A,{name:S.name||S.title,description:S.description||"",imagePlug:S.imagePlug||"",href:S.href||"",isOpenUnavailable:S.isOpenUnavailable}),children:j})},B)})},$);if(E==="third")return a.jsxs(SI,{children:[L?.map((S,B)=>{if(S.isNotVisible)return null;const A=S.unavailable,j=a.jsxs(qo,{onClick:S.href&&!A?n:void 0,children:[a.jsxs(DI,{"data-icon-fill":S.isFill,children:[S.icon&&(typeof S.icon=="string"?a.jsx("img",{src:S.icon,alt:"",width:18,height:18}):a.jsx(S.icon,{})),a.jsx(jI,{variant:"text-Medium",tag:"span",colorName:"primary",children:be[v][S.title]})]}),A&&a.jsx(_I,{children:a.jsx(T1,{})})]});return a.jsx("div",{children:S.href&&(!A||S.isOpenUnavailable)?a.jsx(C,{href:S.href,children:j}):a.jsx("div",{onClick:()=>y(A,{name:S.name||S.title,description:S.description||"",imagePlug:S.imagePlug||"",href:S.href||"",isOpenUnavailable:S.isOpenUnavailable}),children:j})},B)}),I&&D&&V&&a.jsx(C,{href:V,children:a.jsxs(AI,{onClick:n,children:[a.jsx(TI,{variant:"text-Medium",tag:"span",colorName:"accent",children:be[v][D]}),N&&m.createElement(N)]})})]},$);if(E==="fourth"){const S=a.jsx(RI,{src:M,alt:"App",style:{width:"236px",height:"340px",maxWidth:"none",maxHeight:"none"}});return a.jsx(PI,{children:R&&g!=="guest"?a.jsx(F5,{children:a.jsx(N4,{bannerCode:R,size:"236x340",target:"_self",closeButtonHidden:!0,withOutBorderRadius:!0})}):V?a.jsx(C,{href:V,children:a.jsx(F5,{children:S})}):S},$)}return null};return a.jsxs(xI,{$isOpen:t,children:[a.jsx(bI,{ref:h,$isOpen:t,$height:i,$shouldAlignLeft:b,$tabPosition:u,children:a.jsx(yI,{children:x.columns.map((w,$)=>k(w,$))})}),(g==="authorized"||g==="standard")&&a.jsx(h1,{isOpen:!!l,name:l?.name||"",description:l?.description||"",imagePlug:l?.imagePlug||"",imagePlugMob:l?.imagePlugMob||"",setIsOpen:c})]})}),JI=m.memo(e=>{const{item:t,handleOpenItem:n,openItem:r,itemIndex:o}=e,i=m.useRef(null),{locale:s}=z(),{name:l,config:c}=t,u=m.useMemo(()=>{const p=kc();let h=!1;if(l==="idv"&&p){const C=wc(p);Array.isArray(C.tariff)&&C.tariff.forEach(g=>{(g.t===10078||g.t===10578)&&g.f===13&&g.p?.includes(54)&&(h=!0)})}return h},[l]);return a.jsxs(CI,{children:[a.jsx(QI,{item:t,handleOpenItem:n,children:a.jsx(O4,{ref:i,$isHover:r===l,$isIdv:u,children:a.jsx("div",{onClick:()=>c.href?n(null):null,onMouseEnter:()=>n(l),children:a.jsx(H1,{variant:"description-SemiBold",tag:"span",children:be[s][l]})})})}),a.jsx(UI,{item:t,isOpen:r===l,handleClose:()=>n(null),itemIndex:o,tabRef:i})]})}),QI=({item:e,handleOpenItem:t,children:n})=>{const{LinkWrapper:r}=J(),{locale:o}=z();return e.config.href?a.jsx(r,{href:e.config.href,tabIndex:0,"aria-label":be[o][e.name],children:n}):a.jsx(vI,{onClick:()=>t(e.name),"aria-label":be[o][e.name],tabIndex:0,children:n})},qI=({leaderBoardPermission:e,isOpenSearch:t})=>{const[n,r]=m.useState(null),[o,i]=m.useState(!1),{userRole:s,user:l,hostnames:{hostname:c,hostnameLenta:u,hostnameLMS:p}}=J(),h=L4(c,u,p,e,s,l.type),C=g=>{t||(i(!!g),r(g))};return a.jsxs(a.Fragment,{children:[a.jsx(s4,{"aria-hidden":!0,$isOpen:o}),a.jsx(a4,{children:a.jsx(U$,{onMouseLeave:()=>C(null),onClick:g=>g.stopPropagation(),children:h?.map((g,v)=>a.jsx(JI,{openItem:n,handleOpenItem:C,item:g,itemIndex:v},v))})})]})},KI=({leaderBoardPermission:e,isPossibleTrial:t,onLogout:n})=>{const[r,o]=m.useState(!1),[i,s]=m.useState(!1),[l,c]=m.useState(0),{locale:u}=z(),{mode:p}=K();m.useEffect(()=>{Ba(!1),document.documentElement.style.setProperty("--header-height","118px")},[]);const h=m.useCallback(()=>{const C=window.scrollY;if(C<=10){s(!1),Ba(!1),document.documentElement.style.setProperty("--header-height","118px"),c(C);return}Math.abs(C-l)>50&&(C>l&&(s(!0),Ba(!0),document.documentElement.style.setProperty("--header-height","64px")),c(C))},[l]);return m.useEffect(()=>(window.addEventListener("scroll",h,{passive:!0}),()=>window.removeEventListener("scroll",h)),[h]),a.jsx(f.ThemeProvider,{theme:G[p],children:a.jsxs("div",{"aria-label":pt[u].header,children:[a.jsx(i4,{$isCollapsed:i}),a.jsx(n4,{id:"header-container",children:a.jsx(r4,{$isCollapsed:i,children:a.jsxs(o4,{$isCollapsed:i,children:[a.jsxs(z$,{$isCollapsed:i,children:[a.jsx(_4,{}),a.jsx(hI,{isOpenSearch:r,setIsOpenSearch:o}),a.jsx(V4,{isPossibleTrial:t,onLogout:n})]}),a.jsx(G$,{$isCollapsed:i,children:a.jsx(qI,{leaderBoardPermission:e,isOpenSearch:r})})]})})})]})})},e_=({onLogout:e,leaderBoardPermission:t})=>{const{user:n}=J(),{device:r}=Rn(),o=at(it.down(Zi)),l=(typeof window<"u"?window.screen.width:0)>=1200&&r==="mobile"?o:r==="mobile"||o,{rights:c={},purchased:u={}}=n,{isPossibleTrial:p}=Y$(c,u);return l?a.jsx(oI,{leaderBoardPermission:t,isPossibleTrial:p,onLogout:e}):a.jsx(KI,{leaderBoardPermission:t,isPossibleTrial:p,onLogout:e})},_c=e=>d.createElement("svg",{width:152,height:25,viewBox:"0 0 152 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},d.createElement("path",{d:"M3.98022 21.202V16.8502H6.72072C10.3312 16.8502 12.18 13.7726 12.18 10.695C12.2452 7.52122 10.3747 4.37149 6.72072 4.37149C4.45872 4.34745 2.262 4.37149 0 4.37149V21.202H3.98022ZM3.915 13.0272V8.19444H6.72072C7.80822 8.19444 8.37372 9.37258 8.37372 10.5748C8.37372 11.801 7.76472 13.0272 6.72072 13.0272H3.915ZM24.234 15.2392C25.7347 14.1092 26.4742 12.2578 26.496 10.3343C26.496 7.37696 24.6907 4.37149 21.0149 4.37149C18.7747 4.34745 16.5779 4.37149 14.3159 4.37149V21.202H18.2962V15.9365H20.3842L22.9942 21.202H27.2137V20.5769L24.234 15.2392ZM18.2309 12.354V8.19444H20.9932C22.1242 8.19444 22.6462 9.18023 22.6462 10.2382C22.6462 11.2961 22.1024 12.354 20.9932 12.354H18.2309ZM64.3101 11.9453H59.4381V8.21848H64.9626V4.39553H55.4578V21.2261H59.4381V15.7923H64.3101V11.9453ZM72.6601 17.6677V7.954H74.4218V4.39553H66.9182V7.954H68.6799V17.6677H66.7438V21.2261H74.5955V17.6677H72.6601ZM89.256 21.2742H90.43V4.39553H86.4498V12.6185L78.5112 4.3234H77.2714V21.2261H81.2515V12.5463L89.256 21.2742ZM102.521 19.1343L103.413 21.2261H107.523V20.625L100.606 4.22723H98.7796L91.7979 20.625V21.2261H95.9524L96.8224 19.1343H102.521ZM99.6713 11.3923L101.259 15.4556H98.1057L99.6713 11.3923ZM120.904 21.2742H122.078V4.39553H118.098V12.6185L110.159 4.3234H108.919V21.2261H112.899V12.5463L120.904 21.2742ZM124.577 16.0567C124.512 19.8316 127.6 21.6108 130.819 21.6108C133.929 21.6108 137.039 19.7594 137.039 16.225C137.039 12.1376 134.212 11.2961 130.972 10.9835C129.514 10.8152 128.644 10.5507 128.644 9.42067C128.644 8.14635 129.819 7.88187 130.711 7.88187C131.776 7.88187 132.755 8.36275 132.777 9.51684H136.496C136.561 5.8622 133.582 4.01083 130.645 4.01083C127.535 4.01083 124.729 5.8622 124.729 9.51684C124.729 13.0272 127.514 14.2535 130.297 14.4458C131.407 14.5179 133.103 14.5901 133.103 16.201C133.103 17.2108 131.907 17.7878 130.776 17.7878C129.558 17.7878 128.362 17.2108 128.362 16.0567H124.577ZM144.345 9.97368L141.582 4.39553H137.319V5.04471L142.43 14.566V21.2261H146.41V14.566L151.5 5.04471V4.39553H147.28L144.518 9.97368H144.345Z",fill:"#6553F5"}),d.createElement("path",{d:"M35.2008 19.3501L35.6556 18.5353L35.3664 18.3575L34.567 19.7895L34.6583 19.8457L35.876 19.4998L35.4245 20.3085L35.7157 20.4875L36.514 19.0575L36.4266 19.0038L35.2008 19.3501Z",fill:"#6553F5"}),d.createElement("path",{d:"M34.0924 17.0767L32.9589 18.2238L33.1931 18.4787L33.6255 18.0411L34.044 18.4966L33.6116 18.9341L33.8443 19.1873L34.9779 18.0402L34.7452 17.787L34.2658 18.2721L33.8473 17.8166L34.3267 17.3316L34.0924 17.0767Z",fill:"#6553F5"}),d.createElement("path",{d:"M32.2445 16.1317C31.9874 16.283 31.9396 16.5603 32.0806 16.8238L32.4076 17.4352L33.7789 16.6275L33.4211 15.9584C33.2669 15.6702 33.0118 15.5985 32.7705 15.7406C32.6292 15.8238 32.5559 15.9617 32.5746 16.1267C32.4732 16.0674 32.3445 16.0728 32.2445 16.1317ZM32.3438 16.6985C32.2866 16.5914 32.3149 16.4854 32.4161 16.4285C32.5094 16.3762 32.5996 16.4098 32.6558 16.5148L32.8066 16.7968L32.4946 16.9805L32.3438 16.6985ZM32.8708 16.3285C32.8455 16.2812 32.8274 16.2376 32.8322 16.1888C32.8385 16.1283 32.8774 16.0756 32.9335 16.0452C33.029 15.9971 33.1209 16.0242 33.177 16.1292L33.3598 16.471L33.0459 16.6558L32.8708 16.3285Z",fill:"#6553F5"}),d.createElement("path",{d:"M31.2693 14.6046L31.5359 15.5779L33.0494 15.1215L32.7779 14.13L32.4839 14.2187L32.6615 14.8676L32.3156 14.9719L32.154 14.382L31.8708 14.4674L32.0323 15.0573L31.7253 15.1499L31.5526 14.5191L31.2693 14.6046Z",fill:"#6553F5"}),d.createElement("path",{d:"M31.8991 13.7667C32.4208 13.7519 32.6891 13.3334 32.6779 12.8992C32.669 12.5546 32.4868 12.2079 32.0689 12.1489L32.0777 12.4888C32.2703 12.54 32.3668 12.7049 32.3721 12.9102C32.3797 13.2052 32.1597 13.4028 31.8899 13.4104C31.5908 13.4188 31.3833 13.2287 31.3758 12.9361C31.3707 12.7379 31.4456 12.5869 31.6214 12.5088L31.6126 12.1666C31.2255 12.2531 31.0636 12.6119 31.0722 12.9447C31.0767 13.3791 31.3751 13.7816 31.8991 13.7667Z",fill:"#6553F5"}),d.createElement("path",{d:"M31.5348 11.0706L32.7864 11.3629L32.8572 11.0288L31.6056 10.7364L31.6965 10.3078L31.411 10.2411L31.1579 11.4348L31.4433 11.5015L31.5348 11.0706Z",fill:"#6553F5"}),d.createElement("path",{d:"M32.6805 8.92139L33.4869 9.34036L33.6356 9.02512L32.2183 8.28879L32.1714 8.38823L32.5856 9.63866L31.7852 9.22284L31.6354 9.5402L33.0508 10.2755L33.0957 10.1803L32.6805 8.92139Z",fill:"#6553F5"}),d.createElement("path",{d:"M34.6633 7.72069L34.814 7.86252L35.0138 7.62874L34.6503 7.28676L34.5242 7.43442L33.5643 6.53143L33.3376 6.79686L34.2823 7.68567L33.9038 8.12863L32.9592 7.23983L32.7339 7.50349L33.9064 8.60662L34.6633 7.72069Z",fill:"#6553F5"}),d.createElement("path",{d:"M35.516 5.88313L35.9991 6.67985L36.2819 6.49102L35.4329 5.09079L35.3437 5.15035L35.0808 6.44513L34.6014 5.65439L34.3167 5.84448L35.1645 7.24271L35.2499 7.18569L35.516 5.88313Z",fill:"#6553F5"}),d.createElement("path",{d:"M37.4178 5.07245L37.676 5.97701L37.9971 5.87604L37.5431 4.28625L37.4419 4.31811L36.8533 5.489L36.597 4.59122L36.2738 4.69287L36.7271 6.28039L36.824 6.2499L37.4178 5.07245Z",fill:"#6553F5"}),d.createElement("path",{d:"M39.7889 4.45085L40.1901 4.48667L40.1049 5.53814L39.5154 5.48552C39.5864 5.44448 39.6263 5.34378 39.6389 5.27146L39.7889 4.45085ZM39.0565 5.43745L39.0134 5.96907L39.3294 5.99729L39.3483 5.76441C39.6868 5.79462 39.9401 5.81723 40.2785 5.84744L40.2597 6.08031L40.56 6.10712L40.6031 5.5755L40.435 5.5605L40.5442 4.21263C40.2237 4.18402 39.8426 4.15001 39.5221 4.1214L39.3083 5.22773C39.2775 5.38374 39.2449 5.4519 39.1103 5.44226L39.0565 5.43745Z",fill:"#6553F5"}),d.createElement("path",{d:"M42.667 5.77031C42.8564 5.25236 42.5946 4.82831 42.2102 4.67351C41.8196 4.51617 41.3555 4.64533 41.1653 5.16547C40.975 5.68563 41.2284 6.10629 41.6212 6.26448C42.0664 6.44382 42.4952 6.23977 42.667 5.77031ZM41.4824 5.29321C41.6017 4.96701 41.868 4.88462 42.099 4.97766C42.328 5.06987 42.4742 5.31586 42.354 5.64426C42.2307 5.98148 41.9648 6.05643 41.7358 5.96422C41.5006 5.86948 41.3591 5.63043 41.4824 5.29321Z",fill:"#6553F5"}),d.createElement("path",{d:"M43.1248 6.04115C42.8071 6.47569 42.9479 6.95799 43.2763 7.2224C43.5369 7.43222 43.9082 7.50212 44.2151 7.19871L43.9581 6.99178C43.7989 7.1165 43.616 7.09127 43.4607 6.96624C43.2376 6.78661 43.23 6.48291 43.3944 6.25814C43.5765 6.00903 43.8478 5.95974 44.0692 6.13792C44.2191 6.25864 44.2836 6.41473 44.2308 6.60725L44.4895 6.81561C44.6693 6.4456 44.5057 6.08769 44.2541 5.88507C43.9298 5.61503 43.4439 5.60473 43.1248 6.04115Z",fill:"#6553F5"}),d.createElement("path",{d:"M45.339 7.41866L44.336 8.2571L44.5393 8.52484L45.5422 7.68641L45.8029 8.02986L46.0317 7.83864L45.3056 6.88214L45.0769 7.07337L45.339 7.41866Z",fill:"#6553F5"}),d.createElement("path",{d:"M45.466 9.28056C45.2899 9.28442 45.2251 9.20472 45.2154 9.02831L44.9491 9.11275C44.9891 9.55229 45.2129 9.63433 45.5631 9.62236L46.9032 9.62681L46.9335 9.61121L46.776 9.2742L46.0112 9.29444L46.0063 9.28385L46.4729 8.62561L46.3094 8.27588L46.271 8.29563L45.623 9.27865L45.466 9.28056Z",fill:"#6553F5"}),d.createElement("path",{d:"M47.1502 10.2739L45.608 10.6083C45.6308 10.7239 45.6536 10.8395 45.6763 10.9551L46.9188 10.6857L47.0403 11.303L45.7978 11.5724C45.8206 11.688 45.8434 11.8036 45.8661 11.9192L47.4082 11.5848L47.1502 10.2739Z",fill:"#6553F5"}),d.createElement("path",{d:"M45.8237 13.8165L47.3947 13.9312L47.4181 13.5779L46.8189 13.5341L46.8607 12.903L47.4599 12.9467L47.4831 12.5958L45.9122 12.4812L45.8889 12.8321L46.5532 12.8806L46.5114 13.5117L45.8471 13.4632L45.8237 13.8165Z",fill:"#6553F5"}),d.createElement("path",{d:"M47.0839 15.3492L47.2062 15.0293L45.7446 14.4141L45.4968 15.0627C45.3736 15.3848 45.5041 15.6585 45.7284 15.7884C45.9947 15.9413 46.3537 15.871 46.501 15.4854L46.6266 15.1567L47.0484 15.3342C47.0589 15.3387 47.0714 15.3439 47.0839 15.3492ZM46.2254 15.3694C46.1668 15.5228 46.0101 15.5586 45.8836 15.49C45.7516 15.4167 45.7267 15.2917 45.7912 15.123C45.8264 15.031 45.8636 14.9399 45.898 14.8501L46.351 15.0407L46.238 15.3365C46.2338 15.3475 46.2296 15.3584 46.2254 15.3694ZM46.5404 16.7712L46.6652 16.4448L45.2036 15.8296L45.0788 16.156L46.5404 16.7712Z",fill:"#6553F5"}),d.createElement("path",{d:"M44.36 18.836C44.5698 19.0531 44.8369 19.0243 45.039 18.8092L45.508 18.3098L44.388 17.1514L43.8748 17.6978C43.6537 17.9332 43.6589 18.2103 43.8559 18.4141C43.9712 18.5335 44.1179 18.5691 44.2638 18.5046C44.2375 18.6233 44.2782 18.7515 44.36 18.836ZM44.8513 18.5785C44.7691 18.6659 44.6641 18.6667 44.584 18.5805C44.5103 18.501 44.516 18.4008 44.5965 18.315L44.8128 18.0847L45.0676 18.3481L44.8513 18.5785ZM44.3663 18.1498C44.33 18.1885 44.2952 18.2189 44.2491 18.2275C44.1919 18.238 44.1329 18.2134 44.0896 18.1653C44.019 18.0824 44.0184 17.9823 44.0989 17.8965L44.361 17.6173L44.6174 17.8825L44.3663 18.1498Z",fill:"#6553F5"}),d.createElement("path",{d:"M43.7067 18.9863C43.4429 18.5137 42.9641 18.4687 42.607 18.6882C42.3236 18.8625 42.1219 19.1972 42.274 19.6098L42.5536 19.438C42.5035 19.2362 42.5947 19.0679 42.7636 18.9641C43.0062 18.815 43.2771 18.922 43.4136 19.1664C43.5649 19.4374 43.5061 19.7197 43.2654 19.8677C43.1023 19.9679 42.9402 19.9718 42.7903 19.8479L42.5087 20.0209C42.7676 20.3351 43.1452 20.311 43.4188 20.1427C43.7795 19.9292 43.9716 19.4609 43.7067 18.9863Z",fill:"#6553F5"}),d.createElement("path",{d:"M41.0545 21.1177L41.9831 20.8417L41.5539 19.2517L40.608 19.5329L40.6914 19.8417L41.3105 19.6578L41.4086 20.0212L40.8458 20.1884L40.9261 20.486L41.4889 20.3188L41.5759 20.6412L40.9742 20.8201L41.0545 21.1177Z",fill:"#6553F5"}),d.createElement("path",{d:"M39.3932 20.5257L40.0368 21.3015L40.1606 21.2995L40.1361 19.6425L39.7987 19.648L39.8119 20.5426L39.4084 20.0297L39.3656 20.0303L38.9774 20.5561L38.9642 19.6614L38.6268 19.6669L38.6512 21.3241L38.7727 21.3221L39.3932 20.5257Z",fill:"#6553F5"}),d.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M39.2716 18.1578C42.0976 18.1578 44.4027 15.7482 44.4027 12.7578C44.4027 9.76734 42.0976 7.35779 39.2716 7.35779C36.4455 7.35779 34.1404 9.76734 34.1404 12.7578C34.1404 15.7482 36.4455 18.1578 39.2716 18.1578ZM39.2716 18.4245C42.2502 18.4245 44.6648 15.8874 44.6648 12.7578C44.6648 9.62818 42.2502 7.09113 39.2716 7.09113C36.293 7.09113 33.8783 9.62818 33.8783 12.7578C33.8783 15.8874 36.293 18.4245 39.2716 18.4245Z",fill:"#6553F5"})),t_=f.styled.div`
|
|
5383
5383
|
position: fixed;
|
|
5384
5384
|
z-index: 2000;
|
|
5385
5385
|
top: 0;
|
|
@@ -6450,7 +6450,7 @@ Check the top-level render call using <`+ne+">.")}return Y}}function n2(_,Y){{if
|
|
|
6450
6450
|
border-top: ${e=>`1px dashed ${e.theme.stroke.primary}`};
|
|
6451
6451
|
margin: 12px 12px 0 12px;
|
|
6452
6452
|
padding-top: 12px;
|
|
6453
|
-
`,cD=({children:e,setFooterHeight:t})=>{const n=m.useRef(null);return m.useEffect(()=>{n.current&&t(n.current.clientHeight+12)},[e]),a.jsx(lD,{ref:n,children:e})},Ea=m.createContext({apiSettings:null,setShowQuiz:null,LinkWrapper:null}),dD=({banners:e,category:t,isLeaderboardPermission:n,userRole:r,apiSettings:o,footerSlot:i,LinkWrapper:s,isBurgerMode:l,excludePages:c,isHoverMode:u=!1})=>{const{mode:p}=K(),{isOpen:h,setOpenSideMenu:C,handleHover:g,isOpenOrHover:v,isAnimated:x}=c7(u),[b,y]=m.useState(null),[k,w]=m.useState(0),[$,E]=m.useState(0),L=m.useRef(null),{locale:M}=z(),{hostnames:{hostname:I,hostnameLenta:D,hostnameLMS:V}}=J(),N=e?.length||0;m.useEffect(()=>{L.current&&E(L.current.clientHeight+24)},[L]);const{heightContent:R,heightSide:O}=sD(N),S=wS(t,I,D,V,r,n),B=m.useMemo(()=>({apiSettings:o,setShowQuiz:y,LinkWrapper:s}),[o,y,s]);return a.jsx(f.ThemeProvider,{theme:G[p],children:a.jsxs(Ea.Provider,{value:B,children:[a.jsx(pS,{$heightSide:O,$isOpen:h,$isBurgerMode:l}),a.jsxs(fS,{id:"side-menu","data-hovered":u,$isBurgerMode:l,children:[a.jsxs(hS,{$isBurgerMode:l,$isAnimated:x,$isOpenOrHover:v,$heightContent:R,onMouseOver:()=>g(!0),onMouseLeave:()=>g(!1),children:[a.jsxs(mS,{ref:L,children:[a.jsxs(gS,{children:[a.jsx(CS,{$isOpen:h,onClick:()=>C(!h),children:a.jsx(yS,{})}),v&&a.jsx(vS,{children:S.name==="idv"?"Инвестиции доступны всем":be[M][S.name]})]}),a.jsx(d7,{category:Pb(t),isOpenMode:v,height:R})]}),a.jsx(xS,{}),a.jsx(bS,{$isBurgerMode:l,id:"side-menu-items",$footerHeight:k,$headerHeight:$,children:S.subPages?.map((A,j)=>a.jsx(ZS,{excludePages:c,isHoverMode:u,isOpenMode:v,data:A},j))}),!!i&&a.jsx(cD,{setFooterHeight:w,children:i})]}),h&&a.jsx(YS,{data:e})]}),r==="authorized"&&a.jsx(h1,{isOpen:!!b,name:b?.name||"",description:b?.description||"",imagePlug:b?.imagePlug||"",imagePlugMob:b?.imagePlugMob||"",setIsOpen:y})]})})},uD=f.keyframes`
|
|
6453
|
+
`,cD=({children:e,setFooterHeight:t})=>{const n=m.useRef(null);return m.useEffect(()=>{n.current&&t(n.current.clientHeight+12)},[e]),a.jsx(lD,{ref:n,children:e})},Ea=m.createContext({apiSettings:null,setShowQuiz:null,LinkWrapper:null}),dD=({banners:e,category:t,isLeaderboardPermission:n,userRole:r,apiSettings:o,footerSlot:i,LinkWrapper:s,isBurgerMode:l,excludePages:c,isHoverMode:u=!1})=>{const{mode:p}=K(),{isOpen:h,setOpenSideMenu:C,handleHover:g,isOpenOrHover:v,isAnimated:x}=c7(u),[b,y]=m.useState(null),[k,w]=m.useState(0),[$,E]=m.useState(0),L=m.useRef(null),{locale:M}=z(),{hostnames:{hostname:I,hostnameLenta:D,hostnameLMS:V}}=J(),N=e?.length||0;m.useEffect(()=>{L.current&&E(L.current.clientHeight+24)},[L]);const{heightContent:R,heightSide:O}=sD(N),S=wS(t,I,D,V,r,n),B=m.useMemo(()=>({apiSettings:o,setShowQuiz:y,LinkWrapper:s}),[o,y,s]);return a.jsx(f.ThemeProvider,{theme:G[p],children:a.jsxs(Ea.Provider,{value:B,children:[a.jsx(pS,{$heightSide:O,$isOpen:h,$isBurgerMode:l}),a.jsxs(fS,{id:"side-menu","data-hovered":u,$isBurgerMode:l,children:[a.jsxs(hS,{$isBurgerMode:l,$isAnimated:x,$isOpenOrHover:v,$heightContent:R,onMouseOver:()=>g(!0),onMouseLeave:()=>g(!1),children:[a.jsxs(mS,{ref:L,children:[a.jsxs(gS,{children:[a.jsx(CS,{$isOpen:h,onClick:()=>C(!h),children:a.jsx(yS,{})}),v&&a.jsx(vS,{children:S.name==="idv"?"Инвестиции доступны всем":be[M][S.name]})]}),a.jsx(d7,{category:Pb(t),isOpenMode:v,height:R})]}),a.jsx(xS,{}),a.jsx(bS,{$isBurgerMode:l,id:"side-menu-items",$footerHeight:k,$headerHeight:$,children:S.subPages?.map((A,j)=>a.jsx(ZS,{excludePages:c,isHoverMode:u,isOpenMode:v,data:A},j))}),!!i&&a.jsx(cD,{setFooterHeight:w,children:i})]}),h&&a.jsx(YS,{data:e})]}),(r==="authorized"||r==="standard")&&a.jsx(h1,{isOpen:!!b,name:b?.name||"",description:b?.description||"",imagePlug:b?.imagePlug||"",imagePlugMob:b?.imagePlugMob||"",setIsOpen:y})]})})},uD=f.keyframes`
|
|
6454
6454
|
from {
|
|
6455
6455
|
transform: translateX(-100%);
|
|
6456
6456
|
}
|