"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var s=require('./../../ext-esm/tslib/tslib.es6.js'),o=require("react/jsx-runtime"),e=require("react"),i=require("@material-ui/core"),n=require("../../icons/iconParkIcons.js");require("../../icons/customIcons/icons/AddMessage.js"),require("../../icons/customIcons/icons/Attention.js"),require("../../icons/customIcons/icons/Collapse.js"),require("../../icons/customIcons/icons/Dashboard.js"),require("../../icons/customIcons/icons/Expand.js"),require("../../icons/customIcons/icons/FolderClosed.js"),require("../../icons/customIcons/icons/FolderClosedFilled.js"),require("../../icons/customIcons/icons/FolderOpened.js"),require("../../icons/customIcons/icons/GreaterOrEqual.js"),require("../../icons/customIcons/icons/LessOrEqual.js"),require("../../icons/customIcons/icons/Search.js"),require("../../icons/customIcons/icons/Wellhub.js"),require("../../icons/customIcons/icons/MultiRuler.js"),require("../../icons/customIcons/icons/Checkbox.js"),require("../../icons/customIcons/icons/CheckboxChecked.js"),require("../../icons/customIcons/icons/CheckboxIndeterminate.js"),require("../../icons/customIcons/icons/Radio.js"),require("../../icons/customIcons/icons/RadioChecked.js"),require("../../icons/customIcons/icons/SimulFrac.js"),require("../../icons/customIcons/icons/ZipperFrac.js"),require("../../icons/customIcons/icons/CautionFilled.js"),require("../../icons/customIcons/icons/MoreApp.js");var c=i.makeStyles((function(s){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:s.palette.primary.text6,fontSize:12,marginRight:4},notificationLabel:{color:s.palette.primary.text6,fontWeight:400,fontSize:12,lineHeight:"17px",letterSpacing:.4}}}));exports.Toaster=function(r){var t=r.message,u=r.autoHideDuration,a=void 0===u?3e3:u,l=r.onDismiss,m=c();return e.useEffect((function(){var s=setTimeout(l,a);return function(){return clearTimeout(s)}}),[]),o.jsx("div",s.__assign({className:m.notificationContainer},{children:o.jsxs("div",s.__assign({className:m.notificationContent},{children:[o.jsx(n.CheckSmallIcon,{size:12,className:m.notificationIcon}),o.jsx(i.Typography,s.__assign({className:m.notificationLabel},{children:t}))]}))}))};
