"use strict";(self.__LOADABLE_LOADED_CHUNKS__=self.__LOADABLE_LOADED_CHUNKS__||[]).push([[26475],{90245:(n,e,t)=>{t.d(e,{b:()=>z});var i,r,c,a,o,s,u,l,f,p,g,d,m,h,v,b,y=t(96891),Z=t(90542),O=t(39780),w=t(67294),E=t(82856),_=t(71893),x=t(51062),P=_.ZP.div(i||(i=(0,E.Z)(["\n min-height: ",";\n border: 1px solid ",";\n border-left-width: ",";\n border-radius: ",";\n display: none;\n z-index: 99;\n ","\n\n ","\n \n ","\n\n ","\n ","\n"])),(function(n){return n.theme.spacing.spacing06}),(function(n){return k(n.theme.colors,n.type)}),(function(n){return n.theme.spacing.spacing005}),(function(n){return n.theme.spacing.spacing005}),(function(n){return n.floating&&(0,_.iv)(r||(r=(0,E.Z)(["\n position: fixed;\n background-color: white;\n max-width: 90%;\n "])))}),(function(n){var e=n.positionX;if(!n.floating)return(0,_.iv)(s||(s=(0,E.Z)(["\n left: 0;\n right: 0;\n transform: none;\n "])));switch(e){case"left":return(0,_.iv)(c||(c=(0,E.Z)(["\n left: 5%;\n "])));case"right":return(0,_.iv)(a||(a=(0,E.Z)(["\n right: 5%;\n "])));default:return(0,_.iv)(o||(o=(0,E.Z)(["\n left: 50%;\n transform: translate(-50%, 0);\n "])))}}),(function(n){var e=n.positionY;if(!n.floating)return(0,_.iv)(f||(f=(0,E.Z)(["\n top: 0;\n bottom: 0;\n transform: none;\n "])));switch(e){case"top":default:return;case"bottom":return(0,_.iv)(u||(u=(0,E.Z)(["\n bottom: 5%;\n "])));case"middle":return(0,_.iv)(l||(l=(0,E.Z)(["\n top: 50%;\n "])))}}),(function(n){return n.hasIcon&&(0,_.iv)(p||(p=(0,E.Z)(["\n border-left-width: 1px;\n "])))}),(function(n){return n.visible&&(0,_.iv)(g||(g=(0,E.Z)(["\n display: flex;\n "])))})),j=_.ZP.div(d||(d=(0,E.Z)(["\n height: auto;\n width: ",";\n min-width: ",";\n padding-top: 0.75rem;\n background: ",";\n text-align: center;\n"])),(function(n){return n.theme.spacing.spacing05}),(function(n){return n.theme.spacing.spacing05}),(function(n){return k(n.theme.colors,n.type)})),D=_.ZP.div(m||(m=(0,E.Z)(["\n display: flex;\n flex-direction: column;\n"]))),A=_.ZP.span(h||(h=(0,E.Z)(["\n display: ",";\n padding: 0.875rem ","\n ","\n ",";\n ",";\n"])),(function(n){return n.visible?"block":"none"}),(function(n){return n.theme.spacing.spacing02}),(function(n){return n.theme.spacing.spacing01}),(function(n){return n.theme.spacing.spacing02}),x.g.body2Bold),L=_.ZP.span(v||(v=(0,E.Z)(["\n padding: ","\n "," 0.8125rem\n ",";\n ",";\n"])),(function(n){return n.hasTitle?0:"0.8125rem"}),(function(n){return n.theme.spacing.spacing02}),(function(n){return n.theme.spacing.spacing02}),x.g.body2Regular),S=_.ZP.div(b||(b=(0,E.Z)(["\n max-height: ",";\n margin: calc("," - 1px)\n ","\n calc("," - 1px) auto;\n & svg {\n cursor: pointer;\n }\n"])),(function(n){return n.theme.spacing.spacing02}),(function(n){return n.theme.spacing.spacing02}),(function(n){return n.theme.spacing.spacing02}),(function(n){return n.theme.spacing.spacing02})),k=function(n,e){switch(e){case"danger":return n.danger.main;case"info":return n.secondary.main;case"warning":return n.warning.main;case"success":return n.success.main;default:return n.environment.percent40}},I=t(63742),X=["title","text","hasIcon","dismissible","type","dismissAction","visible","positionX","positionY","floating","children"];function Y(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 z=function(n){var e=n.title,t=n.text,i=n.hasIcon,r=n.dismissible,c=n.type,a=n.dismissAction,o=n.visible,s=n.positionX,u=n.positionY,l=n.floating,f=void 0!==l&&l,p=n.children,g=(0,O.Z)(n,X),d=(0,w.useState)(o||!1),m=(0,Z.Z)(d,2),h=m[0],v=m[1];(0,w.useEffect)((function(){void 0!=o&&v(o)}),[o]);var b;return w.createElement(P,function(n){for(var e=1;e{t.r(e),t.d(e,{default:()=>s});var i=t(71893),r=t(90245);function c(){var n,e,t=(n=["\n margin: ",";\n"],e||(e=n.slice(0)),Object.freeze(Object.defineProperties(n,{raw:{value:Object.freeze(e)}})));return c=function(){return t},t}var a=(0,i.ZP)(r.b)(c(),(function(n){var e=n.theme;return"".concat(e.spacing.spacing03," 0")})),o=t(67294);const s=function(n){var e=n.message,t=n.type,i=void 0===t?"info":t,r=n.isShown;return o.createElement(a,{text:e,type:i,visible:r})}}}]); //# sourceMappingURL=AlertSection.js.map