(self.__LOADABLE_LOADED_CHUNKS__=self.__LOADABLE_LOADED_CHUNKS__||[]).push([[31787],{14230:(n,e,t)=>{var i=t(1702),r=t(84488),o=t(41340),c=/"/g,a=i("".replace);n.exports=function(n,e,t,i){var s=o(r(n)),u="<"+e;return""!==t&&(u+=" "+t+'="'+a(o(i),c,""")+'"'),u+">"+s+""}},43429:(n,e,t)=>{var i=t(47293);n.exports=function(n){return i((function(){var e=""[n]('"');return e!==e.toLowerCase()||e.split('"').length>3}))}},29254:(n,e,t)=>{"use strict";var i=t(82109),r=t(14230);i({target:"String",proto:!0,forced:t(43429)("link")},{link:function(n){return r(this,"a","href",n)}})},72811:(n,e,t)=>{"use strict";t.d(e,{P:()=>m});var i,r,o=t(96891),c=t(39780),a=t(82856),s=t(67294),u=t(71893),l=["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 g=u.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,u.iv)(r||(r=(0,a.Z)(["\n position: absolute;\n left: 30px;\n top: 6px;\n "])))})),m=function(n){var e=n.amount,t=n.float,i=void 0!==t&&t,r=(0,c.Z)(n,l);return s.createElement(g,function(n){for(var e=1;e{"use strict";t.d(e,{U:()=>on});var i,r,o,c,a,s,u,l,p,g,m,f,h,d,v,b,y,Z,w,O,E,k,P,x,A,j,L,C,S,D=t(96891),H=t(90542),_=t(39780),M=t(67294),I=t(72811),B=t(82856),z=t(71893),N=t(51062),T=(0,z.iv)(i||(i=(0,B.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=z.ZP.div(r||(r=(0,B.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,z.iv)(o||(o=(0,B.Z)(["\n > span {\n ","\n }\n "])),T)})),R=t(63742),J=t(50693),Q=z.ZP.nav(c||(c=(0,B.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,z.iv)(a||(a=(0,B.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,z.iv)(s||(s=(0,B.Z)(["\n @media (min-width: ",") {\n border: 0;\n }\n "])),t.layout.breakpoints[e])})),W=(0,z.ZP)(J.z)(u||(u=(0,B.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})),U=z.ZP.div(l||(l=(0,B.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,z.iv)(p||(p=(0,B.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,z.iv)(g||(g=(0,B.Z)(["\n padding: "," ","\n "," ",";\n "])),t.spacing.spacing02,t.spacing.spacing05,t.spacing.spacing02,t.spacing.spacing02)}),(function(n){return n.showIconClose&&(0,z.iv)(m||(m=(0,B.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,z.iv)(f||(f=(0,B.Z)(["\n transform: rotate(45deg);\n "])))}))}),(function(n){var e=n.collapsed,t=n.theme;return"never"!==e&&(0,z.iv)(h||(h=(0,B.Z)(["\n background: ",";\n "])),t.colors.environment.percent05)}),(function(n){var e=n.collapsed,t=n.theme;return e&&"never"!==e&&(0,z.iv)(d||(d=(0,B.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])})),V=z.ZP.span(v||(v=(0,B.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,z.iv)(b||(b=(0,B.Z)(["\n ",";\n "])),N.g.body1Bold)})),F=(0,z.ZP)(R.J)(y||(y=(0,B.Z)(["\n margin-right: ",";\n"])),(function(n){return n.theme.spacing.spacing01})),G=z.ZP.nav(Z||(Z=(0,B.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,z.iv)(w||(w=(0,B.Z)(["\n max-height: ",";\n "])),n.heightTransform)}),(function(n){return n.isFirstActive&&(0,z.iv)(O||(O=(0,B.Z)(["\n transition: none;\n "])))}),(function(n){var e=n.collapsed,t=n.theme;return e&&"never"!==e&&(0,z.iv)(E||(E=(0,B.Z)(["\n @media (min-width: ",") {\n max-height: none;\n }\n "])),t.layout.breakpoints[e])})),K=z.ZP.ul(k||(k=(0,B.Z)(["\n width: 100%;\n list-style: none;\n margin: 0;\n padding: 0;\n"]))),X=z.ZP.li(P||(P=(0,B.Z)(["\n width: 100%;\n margin: 0;\n"]))),q=z.ZP.span(x||(x=(0,B.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,z.iv)(A||(A=(0,B.Z)(["\n opacity: 0;\n "])))})),$=z.ZP.span(j||(j=(0,B.Z)(["\n height: 10px;\n margin-left: 6px;\n margin-top: -1px;\n"]))),nn=(0,z.ZP)(Y)(L||(L=(0,B.Z)(["\n display: flex;\n text-align: left;\n ","\n"])),(function(n){return!n.noHover&&(0,z.iv)(C||(C=(0,B.Z)(["\n cursor: pointer;\n :hover {\n background: #f2f2f2;\n color: inherit;\n }\n "])))})),en=z.ZP.li(S||(S=(0,B.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,s=void 0!==a&&a,u=n.elementsToShow,l=n.showIconClose,p=void 0===l||l,g=n.onShowMore,m=n.onShowLess,f=n.onExpand,h=n.onCollapse,d=(0,_.Z)(n,tn),v=(0,M.useState)([]),b=(0,H.Z)(v,2),y=b[0],Z=b[1],w=(0,M.useRef)(null),O=(0,M.useState)("max-content"),E=(0,H.Z)(O,2),k=E[0],P=E[1],x=(0,M.useState)(s),A=(0,H.Z)(x,2),j=A[0],L=A[1],C=(0,M.useState)(s),S=(0,H.Z)(C,2),B=S[0],z=S[1],N=(0,M.useState)(!1),T=(0,H.Z)(N,2),Y=T[0],R=T[1],J="never"!==c&&p,on=(0,M.useMemo)((function(){return!!u&&u.count0&&M.createElement(q,{isActive:j},M.createElement(I.P,{amount:an}))),M.createElement(G,{ref:w,isActive:j,isFirstActive:B,heightTransform:k,collapsed:c,"data-testid":"dropdown"},M.createElement(K,null,o.slice(0,cn).map((function(n,e){return(0,M.isValidElement)(n)?M.createElement(X,{key:n.key},n):M.createElement(X,{key:n.id||"Accordion__Item-".concat(e)},M.createElement(nn,{asLink:n.asLink,noHover:n.noHover},n.content,!!n.notificationsAmount&&n.notificationsAmount>0&&M.createElement($,null,M.createElement(I.P,{amount:n.notificationsAmount}))))})),y.length>0&&Y&&y.map((function(n,e){return(0,M.isValidElement)(n)?M.createElement(X,{key:e},n):M.createElement(X,{key:n.id||"Accordion__Item-".concat(e)},M.createElement(nn,{asLink:n.asLink,noHover:n.noHover},n.content,!!n.notificationsAmount&&n.notificationsAmount>0&&M.createElement($,null,M.createElement(I.P,{amount:n.notificationsAmount}))))})),on&&!Y&&M.createElement(en,null,M.createElement(W,{onClick:function(){g&&g(),R((function(n){return!n}))},secondary:!0,small:!0},null===u||void 0===u?void 0:u.moreLabel)),on&&Y&&M.createElement(en,null,M.createElement(W,{onClick:function(){m&&m(),R((function(n){return!n}))},secondary:!0,small:!0},null===u||void 0===u?void 0:u.lessLabel)))))}}}]); //# sourceMappingURL=31787.js.map