import{jsx as o,jsxs as i}from"react/jsx-runtime";import{useEffect as s}from"react";import{makeStyles as n,Typography as c}from"@material-ui/core";import{CheckSmallIcon as t}from"../../icons/iconParkIcons.js";import"../../icons/customIcons/icons/AddMessage.js";import"../../icons/customIcons/icons/Attention.js";import"../../icons/customIcons/icons/Collapse.js";import"../../icons/customIcons/icons/Dashboard.js";import"../../icons/customIcons/icons/Expand.js";import"../../icons/customIcons/icons/FolderClosed.js";import"../../icons/customIcons/icons/FolderClosedFilled.js";import"../../icons/customIcons/icons/FolderOpened.js";import"../../icons/customIcons/icons/GreaterOrEqual.js";import"../../icons/customIcons/icons/LessOrEqual.js";import"../../icons/customIcons/icons/Search.js";import"../../icons/customIcons/icons/Wellhub.js";import"../../icons/customIcons/icons/MultiRuler.js";import"../../icons/customIcons/icons/Checkbox.js";import"../../icons/customIcons/icons/CheckboxChecked.js";import"../../icons/customIcons/icons/CheckboxIndeterminate.js";import"../../icons/customIcons/icons/Radio.js";import"../../icons/customIcons/icons/RadioChecked.js";import"../../icons/customIcons/icons/SimulFrac.js";import"../../icons/customIcons/icons/ZipperFrac.js";import"../../icons/customIcons/icons/CautionFilled.js";import"../../icons/customIcons/icons/MoreApp.js";var e=n((function(o){return{notificationContainer:{position:"absolute",height:24,left:0,right:0,display:"flex",justifyContent:"center",marginTop:16,zIndex:999},notificationContent:{display:"flex",alignItems:"center",background:"rgba(65, 65, 65, 0.7)",boxShadow:"0px 4px 12px 0px #0000001F",borderRadius:4,paddingRight:12,paddingLeft:8},notificationIcon:{width:12,color:o.palette.primary.text6,fontSize:12,marginRight:4},notificationLabel:{color:o.palette.primary.text6,fontWeight:400,fontSize:12,lineHeight:"17px",letterSpacing:.4}}})),r=3e3;function m(n){var r=n.message,m=n.autoHideDuration,a=void 0===m?3e3:m,p=n.onDismiss,u=e();return s((function(){var o=setTimeout(p,a);return function(){return clearTimeout(o)}}),[]),o("div",{className:u.notificationContainer,children:i("div",{className:u.notificationContent,children:[o(t,{size:12,className:u.notificationIcon}),o(c,{className:u.notificationLabel,children:r})]})})}export{r as DEFAULT_AUTO_HIDE_DURATION,m as Toaster};
