import{r as o}from"./redux-1.0.74-D8bIc6ki.js";import{g as b,e as T,f as h,h as C,j as v}from"./CircularProgress-1.0.74-QfwfRJ7i.js";import{j as u}from"./tanstack-1.0.74-aU0azVkW.js";import{u as g}from"./useThemeProps-1.0.74-eOKEtzB-.js";const c=o.createContext(null);function M(){const[e,t]=o.useState(null);return o.useEffect(()=>{t(`mui-p-${Math.round(Math.random()*1e5)}`)},[]),e}function k(e){const{children:t,value:n}=e,s=M(),i=o.useMemo(()=>({idPrefix:s,value:n}),[s,n]);return u.jsx(c.Provider,{value:i,children:t})}function y(){return o.useContext(c)}function j(e,t){const{idPrefix:n}=e;return n===null?null:`${e.idPrefix}-P-${t}`}function R(e,t){const{idPrefix:n}=e;return n===null?null:`${e.idPrefix}-T-${t}`}function U(e){return b("MuiTabPanel",e)}T("MuiTabPanel",["root","hidden"]);const $=e=>{const{classes:t,hidden:n}=e;return v({root:["root",n&&"hidden"]},U,t)},w=h("div",{name:"MuiTabPanel",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({padding:e.spacing(3)})),q=o.forwardRef(function(t,n){const s=g({props:t,name:"MuiTabPanel"}),{children:i,className:d,value:a,keepMounted:f=!1,...p}=s,l={...s},x=$(l),r=y();if(r===null)throw new TypeError("No TabContext provided");const m=j(r,a),P=R(r,a);return u.jsx(w,{"aria-labelledby":P,className:C(x.root,d),hidden:a!==r.value,id:m,ref:n,role:"tabpanel",ownerState:l,...p,children:(f||a===r.value)&&i})});export{k as T,q as a,j as b,R as g,y as u};
