iBet uBet web content aggregator. Adding the entire web to your favor.
iBet uBet web content aggregator. Adding the entire web to your favor.



Link to original content: https://d36jcksde1wxzq.cloudfront.net/hub-ui/BQo9jGM9.js
import{u as M,_ as j}from"./DcVH_7_i.js";import{_ as v}from"./HIc1H8f7.js";import{r as t,j as A}from"./BL9F-HQ1.js";const D=["localeText"],x=t.createContext(null),I=function(r){const{localeText:s}=r,f=v(r,D),{utils:o,localeText:i}=t.useContext(x)??{utils:void 0,localeText:void 0},T=M({props:f,name:"MuiLocalizationProvider"}),{children:h,dateAdapter:a,dateFormats:n,dateLibInstance:c,adapterLocale:l,localeText:d}=T,u=t.useMemo(()=>j({},d,i,s),[d,i,s]),e=t.useMemo(()=>{if(!a)return o||null;const m=new a({locale:l,formats:n,instance:c});if(!m.isMUIAdapter)throw new Error(["MUI X: The date adapter should be imported from `@mui/x-date-pickers` or `@mui/x-date-pickers-pro`, not from `@date-io`","For example, `import { AdapterDayjs } from '@mui/x-date-pickers/AdapterDayjs'` instead of `import AdapterDayjs from '@date-io/dayjs'`","More information on the installation documentation: https://mui.com/x/react-date-pickers/getting-started/#installation"].join(` `));return m},[a,l,n,c,o]),p=t.useMemo(()=>e?{minDate:e.date("1900-01-01T00:00:00.000"),maxDate:e.date("2099-12-31T00:00:00.000")}:null,[e]),L=t.useMemo(()=>({utils:e,defaultDates:p,localeText:u}),[p,e,u]);return A.jsx(x.Provider,{value:L,children:h})};export{I as L,x as M};