import{r as e,j as n,_ as r,h as o}from"./react-B_SyE9nW.js";import{g as a,a as t,s,c as i,e as l,o as u}from"./index-Flm6m8Wj.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"],h=s("div",{name:"MuiTabPanel",slot:"Root",overridesResolver:(e,n)=>n.root})((({theme:e})=>({padding:e.spacing(3)}))),p=e.forwardRef((function(a,t){const s=i({props:a,name:"MuiTabPanel"}),{children:u,className:f,value:p}=s,v=r(s,x),P=c({},s),b=(e=>{const{classes:n}=e;return l({root:["root"]},m,n)})(P),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,p),j=function(e,n){const{idPrefix:r}=e;return null===r?null:`${e.idPrefix}-T-${n}`}(T,p);return n.jsx(h,c({"aria-labelledby":j,className:o(b.root,f),hidden:p!==T.value,id:M,ref:t,role:"tabpanel",ownerState:P},v,{children:p===T.value&&u}))})),v={"&.MuiTabPanel-root":{p:0,overflow:"hidden auto"}};const P=u((function({sx:e,...r}){return n.jsx(p,{...r,sx:{...e,...v}})}));export{P,f as T};