import{r as e,j as n,_ as r,i as o}from"./react-CuSWQC63.js";import{g as a,a as t,s,c as i,e as l,o as u}from"./index-C9xmTedB.js";import{_ as c}from"./history-CBi_mSPs.js";const d=e.createContext(null);function f(r){const{children:o,value:a}=r,t=function(){const[n,r]=e.useState(null);return e.useEffect((()=>{r(`mui-p-${Math.round(1e5*Math.random())}`)}),[]),n}(),s=e.useMemo((()=>({idPrefix:t,value:a})),[t,a]);return n.jsx(d.Provider,{value:s,children:o})}function m(e){return a("MuiTabPanel",e)}t("MuiTabPanel",["root"]);const x=["children","className","value"],p=s("div",{name:"MuiTabPanel",slot:"Root",overridesResolver:(e,n)=>n.root})((({theme:e})=>({padding:e.spacing(3)}))),v=e.forwardRef((function(a,t){const s=i({props:a,name:"MuiTabPanel"}),{children:u,className:f,value:v}=s,P=r(s,x),h=c({},s),b=(e=>{const{classes:n}=e;return l({root:["root"]},m,n)})(h),T=e.useContext(d);if(null===T)throw new TypeError("No TabContext provided");const M=function(e,n){const{idPrefix:r}=e;return null===r?null:`${e.idPrefix}-P-${n}`}(T,v),j=function(e,n){const{idPrefix:r}=e;return null===r?null:`${e.idPrefix}-T-${n}`}(T,v);return n.jsx(p,c({"aria-labelledby":j,className:o(b.root,f),hidden:v!==T.value,id:M,ref:t,role:"tabpanel",ownerState:h},P,{children:v===T.value&&u}))})),P={"&.MuiTabPanel-root":{p:0,overflow:"hidden auto"}};const h=u((function({sx:e,...r}){return n.jsx(v,{...r,sx:{...e,...P}})}));export{h as P,f as T};