PageSourceSearch

https://www.autoclip.ai/_next/static/chunks/pages/components/mui/alert-24d7eda9c2a5dfce.js

js autoclip.ai collected 2026-10-05 13:38:09 UTC 13,727 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4960],{19604:function(e,t,n){"use strict";n.d(t,{Z:function(){return R}});var r=n(63366),o=n(87462),i=n(67294),s=n(86010),a=n(94780),l=n(41796),c=n(81719),d=n(78884),u=n(36622),h=n(81401),p=n(1588),m=n(34867);function x(e){return(0,m.Z)("MuiAlert",e)}var v=(0,p.Z)("MuiAlert",["root","action","icon","message","filled","filledSuccess","filledInfo","filledWarning","filledError","outlined","outlinedSuccess","outlinedInfo","outlinedWarning","outlinedError","standard","standardSuccess","standardInfo","standardWarning","standardError"]),f=n(80562),g=n(54235),Z=n(85893),j=(0,g.Z)((0,Z.jsx)("path",{d:"M20,12A8,8 0 0,1 12,20A8,8 0 0,1 4,12A8,8 0 0,1 12,4C12.76,4 13.5,4.11 14.2, 4.31L15.77,2.74C14.61,2.26 13.34,2 12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0, 0 22,12M7.91,10.08L6.5,11.5L11,16L21,6L19.59,4.58L11,13.17L7.91,10.08Z"}),"SuccessOutlined"),y=(0,g.Z)((0,Z.jsx)("path",{d:"M12 5.99L19.53 19H4.47L12 5.99M12 2L1 21h22L12 2zm1 14h-2v2h2v-2zm0-6h-2v4h2v-4z"}),"ReportProblemOutlined"),b=(0,g.Z)((0,Z.jsx)("path",{d:"M11 15h2v2h-2zm0-8h2v6h-2zm.99-5C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),"ErrorOutline"),C=(0,g.Z)((0,Z.jsx)("path",{d:"M11,9H13V7H11M12,20C7.59,20 4,16.41 4,12C4,7.59 7.59,4 12,4C16.41,4 20,7.59 20, 12C20,16.41 16.41,20 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10, 10 0 0,0 12,2M11,17H13V11H11V17Z"}),"InfoOutlined"),A=n(96903);const k=["action","children","className","closeText","color","components","componentsProps","icon","iconMapping","onClose","role","severity","slotProps","slots","variant"],M=(0,c.ZP)(h.Z,{name:"MuiAlert",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${(0,u.Z)(n.color||n.severity)}`]]}})((({theme:e,ownerState:t})=>{const n="light"===e.palette.mode?l._j:l.$n,r="light"===e.palette.mode?l.$n:l._j,i=t.color||t.severity;return(0,o.Z)({},e.typography.body2,{backgroundColor:"transparent",display:"flex",padding:"6px 16px"},i&&"standard"===t.variant&&{color:e.vars?e.vars.palette.Alert[`${i}Color`]:n(e.palette[i].light,.6),backgroundColor:e.vars?e.vars.palette.Alert[`${i}StandardBg`]:r(e.palette[i].light,.9),[`& .${v.icon}`]:e.vars?{color:e.vars.palette.Alert[`${i}IconColor`]}:{color:"dark"===e.palette.mode?e.palette[i].main:e.palette[i].light}},i&&"outlined"===t.variant&&{color:e.vars?e.vars.palette.Alert[`${i}Color`]:n(e.palette[i].light,.6),border:`1px solid ${(e.vars||e).palette[i].light}`,[`& .${v.icon}`]:e.vars?{color:e.vars.palette.Alert[`${i}IconColor`]}:{color:"dark"===e.palette.mode?e.palette[i].main:e.palette[i].light}},i&&"filled"===t.variant&&(0,o.Z)({fontWeight:e.typography.fontWeightMedium},e.vars?{color:e.vars.palette.Alert[`${i}FilledColor`],backgroundColor:e.vars.palette.Alert[`${i}FilledBg`]}:{backgroundColor:"dark"===e.palette.mode?e.palette[i].dark:e.palette[i].main,color:e.palette.getContrastText("dark"===e.palette.mode?e.palette[i].dark:e.palette[i].main)}))})),w=(0,c.ZP)("div",{name:"MuiAlert",slot:"Icon",overridesResolver:(e,t)=>t.icon})({marginRight:12,padding:"7px 0",display:"flex",fontSize:22,opacity:.9}),S=(0,c.ZP)("div",{name:"MuiAlert",slot:"Message",overridesResolver:(e,t)=>t.message})({padding:"8px 0",minWidth:0,overflow:"auto"}),T=(0,c.ZP)("div",{name:"MuiAlert",slot:"Action",overridesResolver:(e,t)=>t.action})({display:"flex",alignItems:"flex-start",padding:"4px 0 0 16px",marginLeft:"auto",marginRight:-8}),N={success:(0,Z.jsx)(j,{fontSize:"inherit"}),warning:(0,Z.jsx)(y,{fontSize:"inherit"}),error:(0,Z.jsx)(b,{fontSize:"inherit"}),info:(0,Z.jsx)(C,{fontSize:"inherit"})};var R=i.forwardRef((function(e,t){var n,i,l,c,h,p;const m=(0,d.Z)({props:e,name:"MuiAlert"}),{action:v,children:g,className:j,closeText:y="Close",color:b,components:C={},componentsProps:R={},icon:P,iconMapping:z=N,onClose:L,role:$="alert",severity:I="success",slotProps:_={},slots:H={},variant:E="standard"}=m,B=(0,r.Z)(m,k),F=(0,o.Z)({},m,{color:b,severity:I,variant:E}),W=(e=>{const{variant:t,color:n,severity:r,classes:o}=e,i={root:["root",`${t}${(0,u.Z)(n||r)}`,`${t}`],icon:["icon"],message:["message"],action:["action"]};return(0,a.Z)(i,x,o)})(F),O=null!=(n=null!=(i=H.closeButton)?i:C.CloseButton)?n:f.Z,G=null!=(l=null!=(c=H.closeIcon)?c:C.CloseIcon)?l:A.Z,U=null!=(h=_.closeButton)?h:R.closeButton,V=null!=(p=_.closeIcon)?p:R.closeIcon;return(0,Z.jsxs)(M,(0,o.Z)({role:$,elevation:0,ownerState:F,className:(0,s.Z)(W.root,j),ref:t},B,{children:[!1!==P?(0,Z.jsx)(w,{ownerState:F,className:W.icon,
1children:P||z[I]||N[I]}):null,(0,Z.jsx)(S,{ownerState:F,className:W.message,children:g}),null!=v?(0,Z.jsx)(T,{ownerState:F,className:W.action,children:v}):null,null==v&&L?(0,Z.jsx)(T,{ownerState:F,className:W.action,children:(0,Z.jsx)(O,(0,o.Z)({size:"small","aria-label":y,title:y,color:"inherit",onClick:L},U,{children:(0,Z.jsx)(G,(0,o.Z)({fontSize:"small"},V))}))}):null]}))}))},59742:function(e,t,n){"use strict";n.d(t,{Z:function(){return y}});var r=n(63366),o=n(87462),i=n(67294),s=n(86010),a=n(94780),l=n(29630),c=n(78884),d=n(81719),u=n(1588),h=n(34867);function p(e){return(0,h.Z)("MuiCardHeader",e)}var m=(0,u.Z)("MuiCardHeader",["root","avatar","action","content","title","subheader"]),x=n(85893);const v=["action","avatar","className","component","disableTypography","subheader","subheaderTypographyProps","title","titleTypographyProps"],f=(0,d.ZP)("div",{name:"MuiCardHeader",slot:"Root",overridesResolver:(e,t)=>(0,o.Z)({[`& .${m.title}`]:t.title,[`& .${m.subheader}`]:t.subheader},t.root)})({display:"flex",alignItems:"center",padding:16}),g=(0,d.ZP)("div",{name:"MuiCardHeader",slot:"Avatar",overridesResolver:(e,t)=>t.avatar})({display:"flex",flex:"0 0 auto",marginRight:16}),Z=(0,d.ZP)("div",{name:"MuiCardHeader",slot:"Action",overridesResolver:(e,t)=>t.action})({flex:"0 0 auto",alignSelf:"flex-start",marginTop:-4,marginRight:-8,marginBottom:-4}),j=(0,d.ZP)("div",{name:"MuiCardHeader",slot:"Content",overridesResolver:(e,t)=>t.content})({flex:"1 1 auto"});var y=i.forwardRef((function(e,t){const n=(0,c.Z)({props:e,name:"MuiCardHeader"}),{action:i,avatar:d,className:u,component:h="div",disableTypography:m=!1,subheader:y,subheaderTypographyProps:b,title:C,titleTypographyProps:A}=n,k=(0,r.Z)(n,v),M=(0,o.Z)({},n,{component:h,disableTypography:m}),w=(e=>{const{classes:t}=e;return(0,a.Z)({root:["root"],avatar:["avatar"],action:["action"],content:["content"],title:["title"],subheader:["subheader"]},p,t)})(M);let S=C;null==S||S.type===l.Z||m||(S=(0,x.jsx)(l.Z,(0,o.Z)({variant:d?"body2":"h5",className:w.title,component:"span",display:"block"},A,{children:S})));let T=y;return null==T||T.type===l.Z||m||(T=(0,x.jsx)(l.Z,(0,o.Z)({variant:d?"body2":"body1",className:w.subheader,color:"text.secondary",component:"span",display:"block"},b,{children:T}))),(0,x.jsxs)(f,(0,o.Z)({className:(0,s.Z)(w.root,u),as:h,ref:t,ownerState:M},k,{children:[d&&(0,x.jsx)(g,{className:w.avatar,ownerState:M,children:d}),(0,x.jsxs)(j,{className:w.content,ownerState:M,children:[S,T]}),i&&(0,x.jsx)(Z,{className:w.action,ownerState:M,children:i})]}))}))},96903:function(e,t,n){"use strict";n(67294);var r=n(54235),o=n(85893);t.Z=(0,r.Z)((0,o.jsx)("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close")},66649:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/components/mui/alert",function(){return n(57595)}])},89606:function(e,t,n){"use strict";n.d(t,{Z:function(){return h}});var r=n(85893),o=n(61953),i=n(9144),s=n(29630),a=n(64489),l=n(68346),c=n(41664),d=n.n(c);function u(e){let{link:t,activeLast:n,disabled:i}=e;const{name:s,href:a,icon:c}=t,u={display:"inline-flex",alignItems:"center",color:"text.primary",...i&&!n&&{cursor:"default",pointerEvents:"none",color:"text.disabled"}},h=(0,r.jsxs)(r.Fragment,{children:[c&&(0,r.jsx)(o.Z,{component:"span",sx:{mr:1,display:"inherit","& svg":{width:20,height:20}},children:c}),s]});return a?(0,r.jsx)(l.Z,{component:d(),href:a,sx:u,children:h}):(0,r.jsxs)(o.Z,{sx:u,children:[" ",h," "]})}function h(e){let{links:t,action:n,heading:c,moreLink:d,activeLast:h,sx:m,mb:x=5,...v}=e;const f=t[t.length-1].name;return(0,r.jsxs)(o.Z,{sx:{mb:x,...m},children:[(0,r.jsxs)(i.Z,{direction:"row",alignItems:"center",children:[(0,r.jsxs)(o.Z,{sx:{flexGrow:1},children:[c&&(0,r.jsx)(s.Z,{variant:"h4",gutterBottom:!0,children:c}),!!t.length&&(0,r.jsx)(a.Z,{separator:(0,r.jsx)(p,{}),...v,children:t.map((e=>(0,r.jsx)(u,{link:e,activeLast:h,disabled:e.name===f},e.name||"")))})]}),n&&(0,r.jsxs)(o.Z,{sx:{flexShrink:0},children:[" ",n," "]})]}),!!d&&(0,r.jsx)(o.Z,{sx:{mt:2},children:d.map((e=>(0,r.jsx)(l.Z,{noWrap:!0,href:e,variant:"body2",target:"_blank",rel:"noopener",sx:{dis
1play:"table"},children:e},e)))})]})}function p(){return(0,r.jsx)(o.Z,{component:"span",sx:{width:4,height:4,borderRadius:"50%",bgcolor:"text.disabled"}})}},58299:function(e,t,n){"use strict";n.d(t,{Z:function(){return d}});var r=n(85893),o=n(5152),i=n.n(o),s=n(11163),a=n(61953);const l=i()((()=>n.e(1450).then(n.bind(n,1450))),{loadableGenerated:{webpack:()=>[1450]},ssr:!1}),c=i()((()=>Promise.all([n.e(9072),n.e(9410)]).then(n.bind(n,99410))),{loadableGenerated:{webpack:()=>[99410]},ssr:!1});function d(e){let{children:t}=e;const{pathname:n}=(0,s.useRouter)(),o="/"===n;return(0,r.jsxs)(a.Z,{sx:{display:"flex",flexDirection:"column",height:1},children:[(0,r.jsx)(l,{}),(0,r.jsx)(a.Z,{component:"main",sx:{flexGrow:1,...!o&&{pt:{xs:8,md:11}}},children:t}),(0,r.jsx)(c,{})]})}},57595:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return P}});var r=n(85893),o=n(67294),i=n(9008),s=n.n(i),a=n(41796),l=n(61953),c=n(36336),d=n(9144),u=n(19604),h=n(87462),p=n(63366),m=n(86010),x=n(94780),v=n(81719),f=n(78884),g=n(29630),Z=n(1588),j=n(34867);function y(e){return(0,j.Z)("MuiAlertTitle",e)}(0,Z.Z)("MuiAlertTitle",["root"]);const b=["className"],C=(0,v.ZP)(g.Z,{name:"MuiAlertTitle",slot:"Root",overridesResolver:(e,t)=>t.root})((({theme:e})=>({fontWeight:e.typography.fontWeightMedium,marginTop:-2})));var A=o.forwardRef((function(e,t){const n=(0,f.Z)({props:e,name:"MuiAlertTitle"}),{className:o}=n,i=(0,p.Z)(n,b),s=n,a=(e=>{const{classes:t}=e;return(0,x.Z)({root:["root"]},y,t)})(s);return(0,r.jsx)(C,(0,h.Z)({gutterBottom:!0,component:"div",ownerState:s,ref:t,className:(0,m.Z)(a.root,o)},i))})),k=n(54225),M=n(78672),w=n(92924),S=n(58299),T=n(89606),N=n(33600);const R=["info","success","warning","error"];function P(){const[e,t]=(0,o.useState)(!1);return(0,o.useEffect)((()=>t(!0)),[]),e?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(s(),{children:(0,r.jsx)("title",{children:" MUI Components: Alert | AutoClip"})}),(0,r.jsx)(l.Z,{sx:{pt:6,pb:1,bgcolor:e=>"light"===e.palette.mode?"grey.200":"grey.800"},children:(0,r.jsx)(c.Z,{children:(0,r.jsx)(T.Z,{heading:"Alert",links:[{name:"Components",href:w.ko.components},{name:"Alert"}],moreLink:["https://mui.com/components/alert"]})})}),(0,r.jsx)(c.Z,{sx:{my:10},children:(0,r.jsxs)(M.ZP,{columns:2,spacing:3,children:[(0,r.jsx)(N.g,{title:"Standard",children:(0,r.jsx)(d.Z,{spacing:2,children:R.map((e=>(0,r.jsxs)(u.Z,{severity:e,onClose:()=>{},children:["This is an ",e," alert \u2014 check it out!"]},e)))})}),(0,r.jsx)(N.g,{title:"Filled",children:(0,r.jsx)(d.Z,{spacing:2,children:R.map((e=>(0,r.jsxs)(u.Z,{severity:e,variant:"filled",onClose:()=>{},children:["This is an ",e," alert \u2014 check it out!"]},e)))})}),(0,r.jsx)(N.g,{title:"Outlined",children:(0,r.jsx)(d.Z,{spacing:2,children:R.map((e=>(0,r.jsxs)(u.Z,{severity:e,variant:"outlined",onClose:()=>{},children:["This is an ",e," alert \u2014 check it out!"]},e)))})}),(0,r.jsx)(N.g,{title:"Description",children:(0,r.jsx)(d.Z,{spacing:2,children:R.map((e=>(0,r.jsxs)(u.Z,{severity:e,onClose:()=>{},children:[(0,r.jsxs)(A,{sx:{textTransform:"capitalize"},children:[" ",e," "]}),"This is an ",e," alert \u2014 ",(0,r.jsx)("strong",{children:"check it out!"})]},e)))})}),(0,r.jsx)(N.g,{title:"Actions",children:(0,r.jsxs)(d.Z,{spacing:2,children:[(0,r.jsx)(u.Z,{severity:"info",action:(0,r.jsx)(k.Z,{color:"info",size:"small",variant:"soft",children:"Action"}),children:"This is an info alert \u2014 check it out!"}),(0,r.jsx)(u.Z,{severity:"info",variant:"filled",action:(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(k.Z,{color:"inherit",size:"small",variant:"outlined",sx:{mr:1,border:e=>"1px solid ".concat((0,a.Fq)(e.palette.common.white,.48))},children:"Undo"}),(0,r.jsx)(k.Z,{size:"small",color:"inherit",variant:"contained",sx:{bgcolor:"common.white"},children:"Action"})]}),children:"This is an info alert \u2014 check it out!"}),(0,r.jsx)(u.Z,{severity:"info",variant:"outlined",action:(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(k.Z,{color:"info",size:"small",variant:"outlined",sx:{mr:1},children:"Undo"}),(0,r.jsx)(k.Z,{color:"info",size:"small",variant:"contained",children:"Action"})]}),children:"This is an info alert \u2014 check it out!"})]})})]})})]}):null}P.getLayout=e=>(0,r.jsx)(S.Z,{children:e})},33600:function(e,t,n){"use strict";n.d(t,{_:function(){return d},g:function(){return c}});var r=n(85893),o=n(41796),i=n(81401),s=n(59742),a=n(61953),l=n(29630);function c(e){let{title:t,sx:n,children:l}=e;return(0,r.jsxs)(i.Z,{variant:"outlined",sx:{borderRadius:1.5,bgcolor:e=>(0,o.Fq)(e.palette.grey[500],.04)},children:[t&&(0,r.jsx)(s.Z,{title:t}),(0,r.jsx)(a.Z,{sx:{p:5,minHeight:180,...n},children:l})]})}function d(e){let{title:t}=e;return(0,r.jsx)(l.Z,{variant:"overline",component:"p",gutterBottom:!0,sx:{color:"text.secondary"},children:t})}}},function(e){e.O(0,[9629,9774,2888,179],(function(){return t=66649,e(e.s=t);var t}));var t=e.O();_N_E=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.