1"use strict";(self.webpackChunk_metafox_react=self.webpackChunk_metafox_react||[]).push([["metafox-toast-ToastItem"],{25872:function(e,t,a){a.r(t),a.d(t,{default:function(){return y}});var o=a(8729),n=a(88607),r=a(64233),l=a(56585),i=a(52848),s=a(81330),c=a.n(s),d=a(30758),f=a(81972),m=a(63569),u=(0,f.A)(e=>(0,m.A)({root:{height:"auto","&.MuiAlert-filledSuccess":{backgroundColor:`${e.palette.primary.main} !important`,color:"#fff"},"&.MuiAlert-filledInfo":{backgroundColor:"light"===e.palette.mode?`${e.palette.grey["800"]} !important`:`${e.palette.grey["200"]} !important`,color:e.palette.grey["500"]}},action:{padding:0},standardSuccess:{backgroundColor:e.palette.primary.main,color:"#fff"},standardError:{backgroundColor:e.palette.error.main,color:"#fff"},message:{fontSize:e.mixins.pxToRem(15),display:"flex",alignItems:"center"}}),{name:"ToastItem"});let p=(0,n.Ay)(r.A,{name:"AlertStyled"})(({theme:e})=>({"& .MuiAlert-action":{padding:e.spacing(0),paddingLeft:e.spacing(2),[e.breakpoints.down("sm")]:{display:"none"}}})),g=(0,n.Ay)(l.A,{name:"CloseButton"})(({theme:e})=>({padding:`${e.spacing(1)} !important`,height:"100%",".MuiAlert-filledInfo &":{color:e.palette.grey["500"]}}));function y({severity:e,message:t,duration:a,className:n,id:r,onClose:l}){let s=u(),[f,m]=(0,d.useState)(!0),{i18n:y}=(0,o.PCX)(),A=(0,d.useCallback)(()=>{m(!1),c()(l)&&l(r)},[r,l]);return(0,d.useEffect)(()=>{if("manual"===a||0===a)return;let e=window.setTimeout(A,a);return()=>window.clearTimeout(e)},[]),d.createElement(i.A,{in:f},d.createElement(p,{variant:"filled",classes:s,severity:e,icon:!1,onClose:A,className:n,"data-testid":"flashMessage",action:d.createElement(g,{"data-testid":"btnClose",color:"inherit",onClick:A},y.formatMessage({id:"close"}))},t))}}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.