import{a as e,n as t}from"./preload-helper-DxX6f4wy.js";import{$ as n,E as r,F as i,I as a,P as o,d as s,f as c,g as l}from"./Fade-Bj1YUcWe.js";import{t as u}from"./ButtonBase-dVPwHUcG.js";import{t as d}from"./useSlot-dcyUConq.js";var f=e(t());function p(e){return i(`MuiCardActionArea`,e)}var m=o(`MuiCardActionArea`,[`root`,`focusVisible`,`focusHighlight`]),h=n(),g=e=>{let{classes:t}=e;return r({root:[`root`],focusHighlight:[`focusHighlight`]},p,t)},_=l(u,{name:`MuiCardActionArea`,slot:`Root`,overridesResolver:(e,t)=>t.root})(c(({theme:e})=>({display:`block`,textAlign:`inherit`,borderRadius:`inherit`,width:`100%`,[`&:hover .${m.focusHighlight}`]:{opacity:(e.vars||e).palette.action.hoverOpacity,"@media (hover: none)":{opacity:0}},[`&.${m.focusVisible} .${m.focusHighlight}`]:{opacity:(e.vars||e).palette.action.focusOpacity}}))),v=l(`span`,{name:`MuiCardActionArea`,slot:`FocusHighlight`,overridesResolver:(e,t)=>t.focusHighlight})(c(({theme:e})=>({overflow:`hidden`,pointerEvents:`none`,position:`absolute`,top:0,right:0,bottom:0,left:0,borderRadius:`inherit`,opacity:0,backgroundColor:`currentcolor`,transition:e.transitions.create(`opacity`,{duration:e.transitions.duration.short})}))),y=f.forwardRef(function(e,t){let n=s({props:e,name:`MuiCardActionArea`}),{children:r,className:i,focusVisibleClassName:o,slots:c={},slotProps:l={},...u}=n,f=n,p=g(f),m={slots:c,slotProps:l},[y,b]=d(`root`,{elementType:_,externalForwardedProps:{...m,...u},shouldForwardComponentProp:!0,ownerState:f,ref:t,className:a(p.root,i),additionalProps:{focusVisibleClassName:a(o,p.focusVisible)}}),[x,S]=d(`focusHighlight`,{elementType:v,externalForwardedProps:m,ownerState:f,ref:t,className:p.focusHighlight});return(0,h.jsxs)(y,{...b,children:[r,(0,h.jsx)(x,{...S})]})});export{y as t};