(self.__LOADABLE_LOADED_CHUNKS__=self.__LOADABLE_LOADED_CHUNKS__||[]).push([[21107,15376],{94953:(n,e,t)=>{var r=t(82109),i=t(1702),o=t(51400),c=RangeError,a=String.fromCharCode,s=String.fromCodePoint,l=i([].join);r({target:"String",stat:!0,arity:1,forced:!!s&&1!=s.length},{fromCodePoint:function(n){for(var e,t=[],r=arguments.length,i=0;r>i;){if(e=+arguments[i++],o(e,1114111)!==e)throw c(e+" is not a valid code point");t[i]=e<65536?a(e):a(55296+((e-=65536)>>10),e%1024+56320)}return l(t,"")}})},22981:(n,e,t)=>{"use strict";t.d(e,{GS:()=>s,EB:()=>l});var r=t(90542),i=t(67294);var o=t(29715),c={media:"",matches:!1,onchange:o.Z,addListener:o.Z,removeListener:o.Z,addEventListener:o.Z,removeEventListener:o.Z,dispatchEvent:function(n){return!0}},a=function(n){return function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],o=(0,i.useState)(t),a=(0,r.Z)(o,2),s=a[0],l=a[1],u=function(n){return"string"===typeof n?n.replace(/@media\s/,""):Object.entries(n).map((function(n){var e=(0,r.Z)(n,2),t=e[0],i=e[1],o=t.replace(/[A-Z]/g,(function(n){return"-".concat(n.toLowerCase())})).toLowerCase(),c=i;return"boolean"===typeof c?c?o:"not ".concat(o):("number"===typeof c&&/[height|width]$/.test(o)&&(c="".concat(c,"px")),"(".concat(o,": ").concat(c,")"))})).join(" and ")}(e);return n((function(){var n=!0,e="undefined"===typeof window?c:window.matchMedia(u),t=function(){n&&l(Boolean(e.matches))};return e.addListener(t),l(e.matches),function(){n=!1,e.removeListener(t)}}),[u]),s}},s=a(i.useEffect),l=a("undefined"!==typeof window?i.useLayoutEffect:i.useEffect)},38717:(n,e,t)=>{"use strict";t.d(e,{t:()=>i});var r=t(67294),i=function(n,e,t){(0,r.useEffect)((function(){var r=function(r){t&&e.current&&!e.current.contains(r.target)&&n()};return document.addEventListener("mouseup",r),document.addEventListener("touchend",r),function(){document.removeEventListener("mouseup",r),document.removeEventListener("touchend",r)}}),[e,t,n])}},22100:(n,e,t)=>{"use strict";t.d(e,{z:()=>i});var r=t(67294),i=function(n){(0,r.useEffect)((function(){var e=document.body,t=n?"hidden":"auto";return e.style.overflowY=t,function(){e.style.overflowY="auto"}}),[n])}},29715:(n,e,t)=>{"use strict";t.d(e,{Z:()=>r});var r=function(){}},51376:(n,e,t)=>{"use strict";t.d(e,{F:()=>m});var r,i,o=t(67294),c=t(82856),a=t(71893),s=t(24265),l=a.ZP.div(r||(r=(0,c.Z)(["\n position: absolute;\n background-color: #ffffffb8;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n text-align: center;\n z-index: ",";\n"])),(function(n){return n.theme.layout.zIndex.overlay})),u=(0,a.ZP)(s.a)(i||(i=(0,c.Z)(["\n position: absolute;\n top: 50%;\n left: 50%;\n width: ",";\n height: ",";\n"])),(function(n){return n.$big?"5rem":"4rem"}),(function(n){return n.$big?"5rem":"4rem"})),d=t(63742),f=t(53397),m=function(n){var e=n.big;return o.createElement(l,{"data-testid":"centeredPccomLoader"},o.createElement(u,{"data-testid":"centeredPccomLoaderSpinner",$big:e,extra:o.createElement(d.J,{big:e,icon:"pcc_icon",fill:f.n.light.colors.brand.main})}))}},24265:(n,e,t)=>{"use strict";t.d(e,{a:()=>Z});var r,i,o,c,a,s=t(96891),l=t(39780),u=t(67294),d=t(82856),f=t(71893),m=(0,f.F4)(r||(r=(0,d.Z)(["\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n"]))),p=(0,f.F4)(i||(i=(0,d.Z)(["\n 0% {\n stroke-dasharray: 1,200;\n stroke-dashoffset: 0;\n }\n 50% {\n stroke-dasharray: 89,200;\n stroke-dashoffset: -35;\n }\n 100% {\n stroke-dasharray: 89,200;\n stroke-dashoffset: -124;\n }\n"]))),g=f.ZP.svg(o||(o=(0,d.Z)(["\n -webkit-animation: "," 2s linear infinite;\n animation: "," 2s linear infinite;\n height: 100%;\n -webkit-transform-origin: center center;\n -ms-transform-origin: center center;\n transform-origin: center center;\n width: 100%;\n position: absolute;\n margin: auto;\n"])),m,m),h=f.ZP.circle(c||(c=(0,d.Z)(["\n stroke-dasharray: 92, 38;\n -webkit-animation: "," 1.5s ease-in-out infinite,\n color 6s ease-in-out infinite;\n animation: "," 1.5s ease-in-out infinite;\n stroke-linecap: round;\n fill: none;\n stroke: ",";\n stroke-width: 2px;\n"])),p,p,(function(n){return n.theme.colors.brand.main})),v=f.ZP.div(a||(a=(0,d.Z)(["\n display: flex;\n justify-content: center;\n align-items: center;\n height: 100px;\n left: 50%;\n position: fixed;\n top: 50%;\n transform: translate3d(-50%, -50%, 0);\n width: 100px;\n z-index: ",";\n"])),(function(n){return n.theme.layout.zIndex.spinner})),b=["extra"];function y(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),t.push.apply(t,r)}return t}var Z=function(n){var e=n.extra,t=(0,l.Z)(n,b);return u.createElement(v,function(n){for(var e=1;e{"use strict";t.d(e,{u:()=>H});var r,i,o,c,a,s,l,u,d,f,m=t(96891),p=t(39780),g=t(67294),h=t(29715),v=t(38717),b=t(80092),y=t(46229),Z=t(82856),w=t(91044),O=t(71893),E=t(70370),P=O.ZP.div(r||(r=(0,Z.Z)(["\n position: fixed;\n top: 0;\n left: 0;\n width: 100vw;\n height: 100%;\n min-height: -moz-available;\n min-height: -webkit-fill-available;\n min-height: fill-available;\n background-color: ",";\n padding: ",";\n z-index: ",";\n display: flex;\n justify-content: center;\n align-items: center;\n\n @media (min-width: 500px) {\n padding: ",";\n }\n"])),(function(n){return"".concat(n.theme.colors.black,"3D")}),(function(n){var e=n.theme;return n.featured?"".concat(e.spacing.spacing05," 0"):"\n ".concat(e.spacing.spacing05," ").concat(e.spacing.spacing02,";\n ")}),(function(n){return n.theme.layout.zIndex.overlay}),(function(n){var e=n.theme;return(0,O.iv)(i||(i=(0,Z.Z)(["\n "," ","\n "])),e.spacing.spacing05,e.spacing.spacing02)})),k=O.ZP.div(o||(o=(0,Z.Z)(["\n position: relative;\n width: 100%;\n max-height: 100%;\n max-width: ",";\n background-color: ",";\n border-radius: 0.25rem;\n box-shadow: 0 1rem 1.5rem #00000024, 0 0.375rem 2rem #0000001f;\n overflow: hidden;\n z-index: ",";\n display: flex;\n flex-direction: column;\n"])),(function(n){var e=n.customWidth;switch(n.size){case"small":return"25rem";case"medium":return"37.5rem";case"large":return"50rem";default:return null!==e&&void 0!==e?e:"37.5rem"}}),(function(n){return n.theme.colors.white}),(function(n){return n.theme.layout.zIndex.modal})),j=O.ZP.div(c||(c=(0,Z.Z)(["\n display: flex;\n justify-content: space-between;\n padding: ",";\n"])),(function(n){return n.theme.spacing.spacing03})),x=(0,O.ZP)(w.X)(a||(a=(0,Z.Z)(["\n margin: 0;\n"]))),A=(0,O.ZP)(E.h)(s||(s=(0,Z.Z)(["\n margin-left: ",";\n"])),(function(n){return n.theme.spacing.spacing02})),z=O.ZP.div(l||(l=(0,Z.Z)(["\n position: relative;\n padding: ",";\n overflow-y: auto;\n\n /* Firefox (it does not support custom width)*/\n scrollbar-width: auto;\n scrollbar-color: ","\n ",";\n\n /* Webkit */\n /* total scrollbar width */\n ::-webkit-scrollbar {\n width: 0.75rem;\n }\n\n /* Track */\n ::-webkit-scrollbar-track {\n background: ",";\n }\n\n /* Handle */\n ::-webkit-scrollbar-thumb {\n border: 0.125rem solid ",";\n background: ",";\n border-radius: 0.375rem;\n }\n\n /* Handle on hover */\n ::-webkit-scrollbar-thumb:hover {\n background: ",";\n }\n"])),(function(n){var e=n.theme;return(0,O.iv)(u||(u=(0,Z.Z)(["\n ","\n ","\n "])),e.spacing.spacing03,e.spacing.spacing03)}),(function(n){return n.theme.colors.environment.percent20}),(function(n){return n.theme.colors.environment.percent05}),(function(n){return n.theme.colors.environment.percent05}),(function(n){return n.theme.colors.environment.percent05}),(function(n){return n.theme.colors.environment.percent20}),(function(n){return n.theme.colors.environment.percent40})),C=O.ZP.div(d||(d=(0,Z.Z)(["\n display: flex;\n flex-direction: row-reverse;\n padding: ","\n ",";\n min-height: fit-content;\n\n & > :not(:last-child) {\n margin-left: ",";\n }\n"])),(function(n){return n.theme.spacing.spacing02}),(function(n){return n.theme.spacing.spacing03}),(function(n){return n.theme.spacing.spacing02})),D=O.ZP.div(f||(f=(0,Z.Z)(["\n position: relative;\n height: auto;\n"]))),L=t(51376),S=["actionButtons","children","closable","customWidth","featured","loading","onCancel","size","title","visible","notClosableOnClickOutside"];function I(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),t.push.apply(t,r)}return t}function M(n){for(var e=1;e0&&g.createElement(C,null,e.map((function(n,e){var t=n["aria-label"],r=n.secondary,i=n.action,o=n.disabled,c=n.loading,a=n.displayText,s=n.hidden,l=n.analyticData;return!s&&g.createElement(y.z,M({"aria-label":t,key:e,secondary:r,onClick:i,disabled:o,loading:c},l),a)}))))):null}},63350:(n,e,t)=>{"use strict";t.d(e,{a:()=>m});var r,i,o=t(96891),c=t(39780),a=t(67294),s=t(82856),l=t(71893),u=l.ZP.div(r||(r=(0,s.Z)(["\n position: fixed;\n top: 0;\n left: 0;\n width: 100vw;\n height: 100vh;\n max-height: -moz-available;\n max-height: -webkit-fill-available;\n max-height: fill-available;\n z-index: ",";\n background-color: rgba(51, 51, 51, 0.24);\n cursor: pointer;\n opacity: 0;\n visibility: hidden;\n transition: opacity 500ms cubic-bezier(0.25, 0.1, 0.25, 1),\n visibility 500ms cubic-bezier(0.25, 0.1, 0.25, 1);\n\n ","\n"])),(function(n){return n.theme.layout.zIndex.overlay}),(function(n){return n.isActive&&(0,l.iv)(i||(i=(0,s.Z)(["\n opacity: 1;\n visibility: visible;\n "])))})),d=["isActive"];function f(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),t.push.apply(t,r)}return t}var m=function(n){var e=n.isActive,t=(0,c.Z)(n,d);return a.createElement(u,function(n){for(var e=1;e{"use strict";t.d(e,{s:()=>H});var r,i,o,c,a,s,l,u,d,f,m=t(96891),p=t(22100),g=t(67294),h=t(29715),v=t(38717),b=t(46229),y=t(51376),Z=t(63350),w=t(7730),O=t(82856),E=t(71893),P=t(30305),k=t(51062),j=t(63742),x=E.ZP.div(r||(r=(0,O.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(i||(i=(0,O.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,O.Z)(["\n gap: ",";\n "])),t.spacing.spacing005):(0,E.iv)(c||(c=(0,O.Z)(["\n justify-content: space-between;\n "])))}),(function(n){return n.theme.spacing.spacing03})),z=E.ZP.div(a||(a=(0,O.Z)(["\n ",";\n &&& {\n margin-top: 0;\n }\n margin: 0;\n"])),k.g.header.h4),C=E.ZP.div(s||(s=(0,O.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(l||(l=(0,O.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)(j.J)(u||(u=(0,O.Z)(["\n cursor: pointer;\n"]))),S=E.ZP.div(d||(d=(0,O.Z)(["\n display: flex;\n"]))),I=E.ZP.div(f||(f=(0,O.Z)(["\n display: flex;\n justify-content: space-between;\n margin-bottom: ",";\n"])),(function(n){return n.theme.spacing.spacing02}));function M(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),t.push.apply(t,r)}return t}function _(n){for(var e=1;e{"use strict";t.d(e,{r:()=>b});var r,i,o,c,a,s=t(96891),l=t(90542),u=t(39780),d=t(67294),f=t(82856),m=t(71893),p=m.ZP.div(r||(r=(0,f.Z)(["\n width: 40px;\n height: ",";\n border-radius: ",";\n position: relative;\n background-color: ",";\n ",";\n\n transition: all 0.1s ease-in 0s;\n"])),(function(n){return n.theme.spacing.spacing03}),(function(n){return n.theme.spacing.spacing03}),(function(n){var e=n.$active,t=n.theme;return e?t.colors.brand.main:t.colors.environment.percent35}),(function(n){var e=n.$disabled,t=n.$active,r=n.theme;return e?(0,m.iv)(i||(i=(0,f.Z)(["\n background-color: ",";\n cursor: not-allowed;\n "])),t?r.colors.brand.light:r.colors.environment.percent10):(0,m.iv)(o||(o=(0,f.Z)(["\n background-color: ",";\n cursor: pointer;\n "])),t?r.colors.brand.main:r.colors.environment.percent35)})),g=m.ZP.div(c||(c=(0,f.Z)(["\n ",";\n position: absolute;\n width: ",";\n height: ",";\n background-color: ",";\n border-radius: ",";\n margin: ",";\n left: 0;\n transition: all 0.1s ease-in 0s;\n"])),(function(n){return n.$active?(0,m.iv)(a||(a=(0,f.Z)(["\n transform: translateX(100%);\n "]))):null}),(function(n){return n.theme.spacing.spacing02}),(function(n){return n.theme.spacing.spacing02}),(function(n){return n.theme.colors.white}),(function(n){return n.theme.spacing.spacing02}),(function(n){return n.theme.spacing.spacing005})),h=["checked","disabled","onChange"];function v(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),t.push.apply(t,r)}return t}var b=function(n){var e=n.checked,t=n.disabled,r=n.onChange,i=(0,u.Z)(n,h),o=(0,d.useState)(e||!1),c=(0,l.Z)(o,2),a=c[0],f=c[1];return(0,d.useEffect)((function(){void 0!==e&&f(e)}),[e]),d.createElement(p,function(n){for(var e=1;e{"use strict";t.d(e,{U:()=>on});var r,i,o,c,a,s,l,u,d,f,m,p,g,h,v,b,y,Z,w,O,E,P,k,j,x,A,z,C,D,L=t(96891),S=t(90542),I=t(39780),M=t(67294),_=t(72811),H=t(82856),B=t(71893),W=t(51062),$=(0,B.iv)(r||(r=(0,H.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})),N=B.ZP.div(i||(i=(0,H.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}),W.g.body2Regular,$,(function(n){return n.asLink&&(0,B.iv)(o||(o=(0,H.Z)(["\n > span {\n ","\n }\n "])),$)})),T=t(63742),F=t(46229),R=B.ZP.nav(c||(c=(0,H.Z)(["\n width: 100%;\n\n ","\n\n ","\n"])),(function(n){var e=n.collapsed,t=n.isolated,r=n.theme;return!t&&"never"!==e&&(0,B.iv)(a||(a=(0,H.Z)(["\n border-bottom: 1px solid ",";\n "])),r.colors.environment.percent20)}),(function(n){var e=n.collapsed,t=n.theme;return e&&"never"!==e&&(0,B.iv)(s||(s=(0,H.Z)(["\n @media (min-width: ",") {\n border: 0;\n }\n "])),t.layout.breakpoints[e])})),Y=(0,B.ZP)(F.z)(l||(l=(0,H.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})),J=B.ZP.div(u||(u=(0,H.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)(d||(d=(0,H.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)(f||(f=(0,H.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)(m||(m=(0,H.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)(p||(p=(0,H.Z)(["\n transform: rotate(45deg);\n "])))}))}),(function(n){var e=n.collapsed,t=n.theme;return"never"!==e&&(0,B.iv)(g||(g=(0,H.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,H.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])})),X=B.ZP.span(v||(v=(0,H.Z)(["\n ",";\n color: ",";\n line-height: ",";\n ",";\n"])),W.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,H.Z)(["\n ",";\n "])),W.g.body1Bold)})),Q=(0,B.ZP)(T.J)(y||(y=(0,H.Z)(["\n margin-right: ",";\n"])),(function(n){return n.theme.spacing.spacing01})),G=B.ZP.nav(Z||(Z=(0,H.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)(w||(w=(0,H.Z)(["\n max-height: ",";\n "])),n.heightTransform)}),(function(n){return n.isFirstActive&&(0,B.iv)(O||(O=(0,H.Z)(["\n transition: none;\n "])))}),(function(n){var e=n.collapsed,t=n.theme;return e&&"never"!==e&&(0,B.iv)(E||(E=(0,H.Z)(["\n @media (min-width: ",") {\n max-height: none;\n }\n "])),t.layout.breakpoints[e])})),U=B.ZP.ul(P||(P=(0,H.Z)(["\n width: 100%;\n list-style: none;\n margin: 0;\n padding: 0;\n"]))),V=B.ZP.li(k||(k=(0,H.Z)(["\n width: 100%;\n margin: 0;\n"]))),K=B.ZP.span(j||(j=(0,H.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)(x||(x=(0,H.Z)(["\n opacity: 0;\n "])))})),q=B.ZP.span(A||(A=(0,H.Z)(["\n height: 10px;\n margin-left: 6px;\n margin-top: -1px;\n"]))),nn=(0,B.ZP)(N)(z||(z=(0,H.Z)(["\n display: flex;\n text-align: left;\n ","\n"])),(function(n){return!n.noHover&&(0,B.iv)(C||(C=(0,H.Z)(["\n cursor: pointer;\n :hover {\n background: #f2f2f2;\n color: inherit;\n }\n "])))})),en=B.ZP.li(D||(D=(0,H.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 r=Object.getOwnPropertySymbols(n);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),t.push.apply(t,r)}return t}var on=function(n){var e=n.isolated,t=n.iconName,r=n.title,i=n.big,o=n.elements,c=n.collapsed,a=n.active,s=void 0!==a&&a,l=n.elementsToShow,u=n.showIconClose,d=void 0===u||u,f=n.onShowMore,m=n.onShowLess,p=n.onExpand,g=n.onCollapse,h=(0,I.Z)(n,tn),v=(0,M.useState)([]),b=(0,S.Z)(v,2),y=b[0],Z=b[1],w=(0,M.useRef)(null),O=(0,M.useState)("max-content"),E=(0,S.Z)(O,2),P=E[0],k=E[1],j=(0,M.useState)(s),x=(0,S.Z)(j,2),A=x[0],z=x[1],C=(0,M.useState)(s),D=(0,S.Z)(C,2),H=D[0],B=D[1],W=(0,M.useState)(!1),$=(0,S.Z)(W,2),N=$[0],T=$[1],F="never"!==c&&d,on=(0,M.useMemo)((function(){return!!l&&l.count0&&M.createElement(K,{isActive:A},M.createElement(_.P,{amount:an}))),M.createElement(G,{ref:w,isActive:A,isFirstActive:H,heightTransform:P,collapsed:c,"data-testid":"dropdown"},M.createElement(U,null,o.slice(0,cn).map((function(n,e){return(0,M.isValidElement)(n)?M.createElement(V,{key:n.key},n):M.createElement(V,{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(q,null,M.createElement(_.P,{amount:n.notificationsAmount}))))})),y.length>0&&N&&y.map((function(n,e){return(0,M.isValidElement)(n)?M.createElement(V,{key:e},n):M.createElement(V,{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(q,null,M.createElement(_.P,{amount:n.notificationsAmount}))))})),on&&!N&&M.createElement(en,null,M.createElement(Y,{onClick:function(){f&&f(),T((function(n){return!n}))},secondary:!0,small:!0},null===l||void 0===l?void 0:l.moreLabel)),on&&N&&M.createElement(en,null,M.createElement(Y,{onClick:function(){m&&m(),T((function(n){return!n}))},secondary:!0,small:!0},null===l||void 0===l?void 0:l.lessLabel)))))}}}]); //# sourceMappingURL=21107.js.map