"use strict";(self.__LOADABLE_LOADED_CHUNKS__=self.__LOADABLE_LOADED_CHUNKS__||[]).push([[71539],{22100:(n,e,t)=>{t.d(e,{z:()=>r});var i=t(67294),r=function(n){(0,i.useEffect)((function(){var e=document.body,t=n?"hidden":"auto";return e.style.overflowY=t,function(){e.style.overflowY="auto"}}),[n])}},72811:(n,e,t)=>{t.d(e,{P:()=>g});var i,r,o=t(96891),c=t(39780),a=t(82856),l=t(67294),s=t(71893),u=["amount","float"];function p(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(n);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),t.push.apply(t,i)}return t}var m=s.ZP.span(i||(i=(0,a.Z)(["\n display: inline-block;\n padding: 0 "," 0;\n border-radius: ",";\n min-width: ",";\n height: ",";\n font-size: ",";\n line-height: ",";\n font-weight: ",";\n letter-spacing: ",";\n background-color: ",";\n color: ",";\n text-align: center;\n\n ","\n"])),(function(n){return n.amount>9?"4px":"2px"}),(function(n){return n.amount>9?"15px":"50%"}),(function(n){return n.theme.spacing.spacing02}),(function(n){return n.theme.spacing.spacing02}),(function(n){return n.theme.typography.captionBold.size}),(function(n){return n.theme.typography.captionBold.lineHeight}),(function(n){return n.theme.typography.captionBold.weight}),(function(n){return n.theme.typography.captionBold.letter}),(function(n){return n.dotColor||n.theme.colors.danger.main}),(function(n){return n.amountColor||n.theme.colors.white}),(function(n){return n.float&&(0,s.iv)(r||(r=(0,a.Z)(["\n position: absolute;\n left: 30px;\n top: 6px;\n "])))})),g=function(n){var e=n.amount,t=n.float,i=void 0!==t&&t,r=(0,c.Z)(n,u);return l.createElement(m,function(n){for(var e=1;e{t.d(e,{s:()=>M});var i,r,o,c,a,l,s,u,p,m,g=t(96891),d=t(22100),f=t(67294),h=t(29715),v=t(38717),b=t(50693),y=t(51376),Z=t(63350),O=t(7730),w=t(82856),E=t(71893),P=t(30305),x=t(51062),k=t(63742),j=E.ZP.div(i||(i=(0,w.Z)(["\n position: absolute;\n top: 0;\n right: 0;\n width: 100%;\n height: 100%;\n background-color: ",";\n box-shadow: ",";\n overflow: hidden;\n z-index: ",";\n display: flex;\n flex-direction: column;\n transition: all 500ms;\n transition-timing-function: cubic-bezier(0.25, 0.1, 0.25, 1);\n transform: ",";\n\n "," {\n width: ",";\n }\n"])),(function(n){return n.theme.colors.white}),(function(n){return n.theme.elevation.depth.depth16}),(function(n){return n.theme.layout.zIndex.modal}),(function(n){return n.visible?"translateX(0)":"translateX(100%)"}),P.B.tabletPortrait,(function(n){return"small"===n.size?"25rem":"37.5rem"})),A=E.ZP.div(r||(r=(0,w.Z)(["\n display: flex;\n ","\n\n align-items: center;\n padding: ",";\n"])),(function(n){var e=n.closeWithBackIcon,t=n.theme;return e?(0,E.iv)(o||(o=(0,w.Z)(["\n gap: ",";\n "])),t.spacing.spacing005):(0,E.iv)(c||(c=(0,w.Z)(["\n justify-content: space-between;\n "])))}),(function(n){return n.theme.spacing.spacing03})),C=E.ZP.div(a||(a=(0,w.Z)(["\n ",";\n &&& {\n margin-top: 0;\n }\n margin: 0;\n"])),x.g.header.h4),z=E.ZP.div(l||(l=(0,w.Z)(["\n height: 100%;\n padding: ",";\n margin-bottom: ",";\n overflow-y: auto;\n"])),(function(n){var e=n.theme;return"0 ".concat(e.spacing.spacing03)}),(function(n){return n.theme.spacing.spacing03})),D=E.ZP.div(s||(s=(0,w.Z)(["\n display: flex;\n flex-direction: column;\n box-shadow: ",";\n padding: ",";\n & button:nth-child(2) {\n margin-left: ",";\n }\n"])),(function(n){return n.theme.elevation.depth.depth08}),(function(n){var e=n.theme;return"small"===n.size?"".concat(e.spacing.spacing02," ").concat(e.spacing.spacing03):"".concat(e.spacing.spacing02," ").concat(e.spacing.spacing05)}),(function(n){return n.theme.spacing.spacing02})),L=(0,E.ZP)(k.J)(u||(u=(0,w.Z)(["\n cursor: pointer;\n"]))),S=E.ZP.div(p||(p=(0,w.Z)(["\n display: flex;\n"]))),I=E.ZP.div(m||(m=(0,w.Z)(["\n display: flex;\n justify-content: space-between;\n margin-bottom: ",";\n"])),(function(n){return n.theme.spacing.spacing02}));function _(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(n);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),t.push.apply(t,i)}return t}function H(n){for(var e=1;e{t.d(e,{U:()=>on});var i,r,o,c,a,l,s,u,p,m,g,d,f,h,v,b,y,Z,O,w,E,P,x,k,j,A,C,z,D,L=t(96891),S=t(90542),I=t(39780),_=t(67294),H=t(72811),M=t(82856),B=t(71893),N=t(51062),T=(0,B.iv)(i||(i=(0,M.Z)(["\n text-decoration: none;\n color: inherit;\n height: 100%;\n display: flex;\n align-items: center;\n cursor: pointer;\n transition: color 0.3s, background 0.3s;\n\n // Adjust the all anchors frame\n width: calc(100% + ",");\n margin: 0 -",";\n padding: 0 ",";\n\n &:hover {\n background: ",";\n color: inherit;\n }\n"])),(function(n){return n.theme.spacing.spacing04}),(function(n){return n.theme.spacing.spacing02}),(function(n){return n.theme.spacing.spacing02}),(function(n){return n.theme.colors.environment.percent05})),Y=B.ZP.div(r||(r=(0,M.Z)(["\n width: 100%;\n min-height: ",";\n display: flex;\n align-items: center;\n padding: 0 ",";\n ",";\n transition: background 0.3s;\n cursor: initial;\n\n /* TODO: May be the anchor styles should be set with the content */\n > a {\n ","\n }\n\n ","\n"])),(function(n){return n.theme.spacing.spacing05}),(function(n){return n.theme.spacing.spacing02}),N.g.body2Regular,T,(function(n){return n.asLink&&(0,B.iv)(o||(o=(0,M.Z)(["\n > span {\n ","\n }\n "])),T)})),W=t(63742),R=t(50693),J=B.ZP.nav(c||(c=(0,M.Z)(["\n width: 100%;\n\n ","\n\n ","\n"])),(function(n){var e=n.collapsed,t=n.isolated,i=n.theme;return!t&&"never"!==e&&(0,B.iv)(a||(a=(0,M.Z)(["\n border-bottom: 1px solid ",";\n "])),i.colors.environment.percent20)}),(function(n){var e=n.collapsed,t=n.theme;return e&&"never"!==e&&(0,B.iv)(l||(l=(0,M.Z)(["\n @media (min-width: ",") {\n border: 0;\n }\n "])),t.layout.breakpoints[e])})),Q=(0,B.ZP)(R.z)(s||(s=(0,M.Z)(["\n margin: ","\n ",";\n padding: ","\n ",";\n"])),(function(n){return n.theme.spacing.spacing01}),(function(n){return n.theme.spacing.spacing02}),(function(n){return n.theme.spacing.spacing005}),(function(n){return n.theme.spacing.spacing01})),X=B.ZP.div(u||(u=(0,M.Z)(["\n display: flex;\n align-items: center;\n position: relative;\n background: ",";\n transition: background 0.3s;\n cursor: ",";\n ","\n\n ","\n\n","\n\n&:hover {\n ",";\n\n @media (hover: none) {\n background: none;\n }\n }\n\n ","\n"])),(function(n){return n.theme.colors.white}),(function(n){return"never"===n.collapsed?"auto":"pointer"}),(function(n){var e=n.theme;return(0,B.iv)(p||(p=(0,M.Z)(["\n padding: "," ","\n "," ",";\n "])),e.spacing.spacing01,e.spacing.spacing05,e.spacing.spacing01,e.spacing.spacing02)}),(function(n){var e=n.big,t=n.theme;return e&&(0,B.iv)(m||(m=(0,M.Z)(["\n padding: "," ","\n "," ",";\n "])),t.spacing.spacing02,t.spacing.spacing05,t.spacing.spacing02,t.spacing.spacing02)}),(function(n){return n.showIconClose&&(0,B.iv)(g||(g=(0,M.Z)(["\n &::before {\n content: '';\n position: absolute;\n top: 50%;\n margin-top: -",";\n width: ",";\n height: ",";\n right: 16px;\n background: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyNCAyNCIgZW5hYmxlLWJhY2tncm91bmQ9Im5ldyAwIDAgMjQgMjQiPjxwYXRoIGQ9Ik0yMSAxMWgtOHYtOGgtMnY4aC04djJoOHY4aDJ2LThoOHoiLz48L3N2Zz4=')\n no-repeat center center;\n transition: transform 0.3s;\n\n ",";\n }\n "])),(function(n){return n.theme.spacing.spacing01}),(function(n){return n.theme.spacing.spacing02}),(function(n){return n.theme.spacing.spacing02}),(function(n){return n.isActive&&(0,B.iv)(d||(d=(0,M.Z)(["\n transform: rotate(45deg);\n "])))}))}),(function(n){var e=n.collapsed,t=n.theme;return"never"!==e&&(0,B.iv)(f||(f=(0,M.Z)(["\n background: ",";\n "])),t.colors.environment.percent05)}),(function(n){var e=n.collapsed,t=n.theme;return e&&"never"!==e&&(0,B.iv)(h||(h=(0,M.Z)(["\n @media (min-width: ",") {\n cursor: auto;\n\n &:hover {\n background: inherit;\n }\n\n &::before {\n display: none;\n }\n }\n "])),t.layout.breakpoints[e])})),F=B.ZP.span(v||(v=(0,M.Z)(["\n ",";\n color: ",";\n line-height: ",";\n ",";\n"])),N.g.body2Bold,(function(n){return n.theme.colors.black}),(function(n){return n.theme.typography.body1Regular.lineHeight}),(function(n){return n.big&&(0,B.iv)(b||(b=(0,M.Z)(["\n ",";\n "])),N.g.body1Bold)})),U=(0,B.ZP)(W.J)(y||(y=(0,M.Z)(["\n margin-right: ",";\n"])),(function(n){return n.theme.spacing.spacing01})),V=B.ZP.nav(Z||(Z=(0,M.Z)(["\n width: 100%;\n overflow: hidden;\n background-color: #fff;\n max-height: ",";\n transition: max-height 500ms cubic-bezier(0.25, 0.1, 0.25, 1);\n\n ",";\n\n ","\n\n ","\n"])),(function(n){return"never"===n.collapsed?"none":0}),(function(n){return n.isActive&&(0,B.iv)(O||(O=(0,M.Z)(["\n max-height: ",";\n "])),n.heightTransform)}),(function(n){return n.isFirstActive&&(0,B.iv)(w||(w=(0,M.Z)(["\n transition: none;\n "])))}),(function(n){var e=n.collapsed,t=n.theme;return e&&"never"!==e&&(0,B.iv)(E||(E=(0,M.Z)(["\n @media (min-width: ",") {\n max-height: none;\n }\n "])),t.layout.breakpoints[e])})),G=B.ZP.ul(P||(P=(0,M.Z)(["\n width: 100%;\n list-style: none;\n margin: 0;\n padding: 0;\n"]))),K=B.ZP.li(x||(x=(0,M.Z)(["\n width: 100%;\n margin: 0;\n"]))),q=B.ZP.span(k||(k=(0,M.Z)(["\n margin-left: ",";\n display: flex;\n backface-visibility: hidden;\n\n ",";\n"])),(function(n){return n.theme.spacing.spacing0025}),(function(n){return n.isActive&&(0,B.iv)(j||(j=(0,M.Z)(["\n opacity: 0;\n "])))})),$=B.ZP.span(A||(A=(0,M.Z)(["\n height: 10px;\n margin-left: 6px;\n margin-top: -1px;\n"]))),nn=(0,B.ZP)(Y)(C||(C=(0,M.Z)(["\n display: flex;\n text-align: left;\n ","\n"])),(function(n){return!n.noHover&&(0,B.iv)(z||(z=(0,M.Z)(["\n cursor: pointer;\n :hover {\n background: #f2f2f2;\n color: inherit;\n }\n "])))})),en=B.ZP.li(D||(D=(0,M.Z)(["\n margin: 0;\n"]))),tn=["isolated","iconName","title","big","elements","collapsed","active","elementsToShow","showIconClose","onShowMore","onShowLess","onExpand","onCollapse"];function rn(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(n);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),t.push.apply(t,i)}return t}var on=function(n){var e=n.isolated,t=n.iconName,i=n.title,r=n.big,o=n.elements,c=n.collapsed,a=n.active,l=void 0!==a&&a,s=n.elementsToShow,u=n.showIconClose,p=void 0===u||u,m=n.onShowMore,g=n.onShowLess,d=n.onExpand,f=n.onCollapse,h=(0,I.Z)(n,tn),v=(0,_.useState)([]),b=(0,S.Z)(v,2),y=b[0],Z=b[1],O=(0,_.useRef)(null),w=(0,_.useState)("max-content"),E=(0,S.Z)(w,2),P=E[0],x=E[1],k=(0,_.useState)(l),j=(0,S.Z)(k,2),A=j[0],C=j[1],z=(0,_.useState)(l),D=(0,S.Z)(z,2),M=D[0],B=D[1],N=(0,_.useState)(!1),T=(0,S.Z)(N,2),Y=T[0],W=T[1],R="never"!==c&&p,on=(0,_.useMemo)((function(){return!!s&&s.count0&&_.createElement(q,{isActive:A},_.createElement(H.P,{amount:an}))),_.createElement(V,{ref:O,isActive:A,isFirstActive:M,heightTransform:P,collapsed:c,"data-testid":"dropdown"},_.createElement(G,null,o.slice(0,cn).map((function(n,e){return(0,_.isValidElement)(n)?_.createElement(K,{key:n.key},n):_.createElement(K,{key:n.id||"Accordion__Item-".concat(e)},_.createElement(nn,{asLink:n.asLink,noHover:n.noHover},n.content,!!n.notificationsAmount&&n.notificationsAmount>0&&_.createElement($,null,_.createElement(H.P,{amount:n.notificationsAmount}))))})),y.length>0&&Y&&y.map((function(n,e){return(0,_.isValidElement)(n)?_.createElement(K,{key:e},n):_.createElement(K,{key:n.id||"Accordion__Item-".concat(e)},_.createElement(nn,{asLink:n.asLink,noHover:n.noHover},n.content,!!n.notificationsAmount&&n.notificationsAmount>0&&_.createElement($,null,_.createElement(H.P,{amount:n.notificationsAmount}))))})),on&&!Y&&_.createElement(en,null,_.createElement(Q,{onClick:function(){m&&m(),W((function(n){return!n}))},secondary:!0,small:!0},null===s||void 0===s?void 0:s.moreLabel)),on&&Y&&_.createElement(en,null,_.createElement(Q,{onClick:function(){g&&g(),W((function(n){return!n}))},secondary:!0,small:!0},null===s||void 0===s?void 0:s.lessLabel)))))}}}]); //# sourceMappingURL=71539.js.map