@applica-software-guru/react-admin 1.0.77 → 1.0.78
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/@extended/Breadcrumbs.d.ts.map +1 -1
- package/dist/react-admin.cjs.js +3 -3
- package/dist/react-admin.cjs.js.map +1 -1
- package/dist/react-admin.es.js +12 -10
- package/dist/react-admin.es.js.map +1 -1
- package/dist/react-admin.umd.js +3 -3
- package/dist/react-admin.umd.js.map +1 -1
- package/package.json +1 -1
- package/src/components/@extended/Breadcrumbs.jsx +4 -2
package/dist/react-admin.umd.js
CHANGED
|
@@ -36,13 +36,13 @@ Valid keys: `+JSON.stringify(Object.keys(U),null," "));var se=ve(Be,de,Ae,fe,he
|
|
|
36
36
|
*/var af;function Vv(){return af||(af=1,process.env.NODE_ENV!=="production"&&function(){var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),l=Symbol.for("react.context"),u=Symbol.for("react.server_context"),d=Symbol.for("react.forward_ref"),g=Symbol.for("react.suspense"),p=Symbol.for("react.suspense_list"),E=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),I=Symbol.for("react.offscreen"),m=!1,B=!1,y=!1,D=!1,R=!1,w;w=Symbol.for("react.module.reference");function T(ee){return!!(typeof ee=="string"||typeof ee=="function"||ee===n||ee===i||R||ee===r||ee===g||ee===p||D||ee===I||m||B||y||typeof ee=="object"&&ee!==null&&(ee.$$typeof===h||ee.$$typeof===E||ee.$$typeof===a||ee.$$typeof===l||ee.$$typeof===d||ee.$$typeof===w||ee.getModuleId!==void 0))}function P(ee){if(typeof ee=="object"&&ee!==null){var kt=ee.$$typeof;switch(kt){case e:var Yt=ee.type;switch(Yt){case n:case i:case r:case g:case p:return Yt;default:var yt=Yt&&Yt.$$typeof;switch(yt){case u:case l:case d:case h:case E:case a:return yt;default:return kt}}case t:return kt}}}var z=l,L=a,_=e,$=d,K=n,te=h,ce=E,ge=t,J=i,X=r,Y=g,q=p,W=!1,re=!1;function U(ee){return W||(W=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")),!1}function V(ee){return re||(re=!0,console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")),!1}function le(ee){return P(ee)===l}function pe(ee){return P(ee)===a}function Ae(ee){return typeof ee=="object"&&ee!==null&&ee.$$typeof===e}function fe(ee){return P(ee)===d}function he(ee){return P(ee)===n}function Be(ee){return P(ee)===h}function ye(ee){return P(ee)===E}function Ee(ee){return P(ee)===t}function de(ee){return P(ee)===i}function ve(ee){return P(ee)===r}function se(ee){return P(ee)===g}function Le(ee){return P(ee)===p}nt.ContextConsumer=z,nt.ContextProvider=L,nt.Element=_,nt.ForwardRef=$,nt.Fragment=K,nt.Lazy=te,nt.Memo=ce,nt.Portal=ge,nt.Profiler=J,nt.StrictMode=X,nt.Suspense=Y,nt.SuspenseList=q,nt.isAsyncMode=U,nt.isConcurrentMode=V,nt.isContextConsumer=le,nt.isContextProvider=pe,nt.isElement=Ae,nt.isForwardRef=fe,nt.isFragment=he,nt.isLazy=Be,nt.isMemo=ye,nt.isPortal=Ee,nt.isProfiler=de,nt.isStrictMode=ve,nt.isSuspense=se,nt.isSuspenseList=Le,nt.isValidElementType=T,nt.typeOf=P}()),nt}process.env.NODE_ENV==="production"?Bc.exports=Nv():Bc.exports=Vv();var lf=Bc.exports;const Hv=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function zv(e){const t=`${e}`.match(Hv);return t&&t[1]||""}function cf(e,t=""){return e.displayName||e.name||zv(e)||t}function uf(e,t,n){const r=cf(t);return e.displayName||(r!==""?`${n}(${r})`:n)}function Wv(e){if(e!=null){if(typeof e=="string")return e;if(typeof e=="function")return cf(e,"Component");if(typeof e=="object")switch(e.$$typeof){case lf.ForwardRef:return uf(e,e.render,"ForwardRef");case lf.Memo:return uf(e,e.type,"memo");default:return}}}function yc(e,t,n,r,i){if(process.env.NODE_ENV==="production")return null;const a=e[t],l=i||t;return a==null?null:a&&a.nodeType!==1?new Error(`Invalid ${r} \`${l}\` supplied to \`${n}\`. Expected an HTMLElement.`):null}const Uv=c.oneOfType([c.func,c.object]);function be(e){if(typeof e!="string")throw new Error(process.env.NODE_ENV!=="production"?"MUI: `capitalize(string)` expects a string argument.":jo(7));return e.charAt(0).toUpperCase()+e.slice(1)}function vc(...e){return e.reduce((t,n)=>n==null?t:function(...i){t.apply(this,i),n.apply(this,i)},()=>{})}function Af(e,t=166){let n;function r(...i){const a=()=>{e.apply(this,i)};clearTimeout(n),n=setTimeout(a,t)}return r.clear=()=>{clearTimeout(n)},r}function Gv(e,t){return process.env.NODE_ENV==="production"?()=>null:(n,r,i,a,l)=>{const u=i||"<<anonymous>>",d=l||r;return typeof n[r]<"u"?new Error(`The ${a} \`${d}\` of \`${u}\` is deprecated. ${t}`):null}}function Yv(e,t){var n,r;return k.isValidElement(e)&&t.indexOf((n=e.type.muiName)!=null?n:(r=e.type)==null||(r=r._payload)==null||(r=r.value)==null?void 0:r.muiName)!==-1}function cr(e){return e&&e.ownerDocument||document}function ko(e){return cr(e).defaultView||window}function Kv(e,t){if(process.env.NODE_ENV==="production")return()=>null;const n=t?G({},t.propTypes):null;return i=>(a,l,u,d,g,...p)=>{const E=g||l,h=n==null?void 0:n[E];if(h){const I=h(a,l,u,d,g,...p);if(I)return I}return typeof a[l]<"u"&&!a[i]?new Error(`The prop \`${E}\` of \`${e}\` can only be used together with the \`${i}\` prop.`):null}}function Hs(e,t){typeof e=="function"?e(t):e&&(e.current=t)}const zs=typeof window<"u"?k.useLayoutEffect:k.useEffect;let df=0;function _v(e){const[t,n]=k.useState(e),r=e||t;return k.useEffect(()=>{t==null&&(df+=1,n(`mui-${df}`))},[t]),r}const gf=k["useId".toString()];function bc(e){if(gf!==void 0){const t=gf();return e??t}return _v(e)}function Jv(e,t,n,r,i){if(process.env.NODE_ENV==="production")return null;const a=i||t;return typeof e[t]<"u"?new Error(`The prop \`${a}\` is not supported. Please remove it.`):null}function Xv({controlled:e,default:t,name:n,state:r="value"}){const{current:i}=k.useRef(e!==void 0),[a,l]=k.useState(t),u=i?e:a;if(process.env.NODE_ENV!=="production"){k.useEffect(()=>{i!==(e!==void 0)&&console.error([`MUI: A component is changing the ${i?"":"un"}controlled ${r} state of ${n} to be ${i?"un":""}controlled.`,"Elements should not switch from uncontrolled to controlled (or vice versa).",`Decide between using a controlled or uncontrolled ${n} element for the lifetime of the component.`,"The nature of the state is determined during the first render. It's considered controlled if the value is not `undefined`.","More info: https://fb.me/react-controlled-components"].join(`
|
|
37
37
|
`))},[r,n,e]);const{current:g}=k.useRef(t);k.useEffect(()=>{!i&&g!==t&&console.error([`MUI: A component is changing the default ${r} state of an uncontrolled ${n} after being initialized. To suppress this warning opt to use a controlled ${n}.`].join(`
|
|
38
38
|
`))},[JSON.stringify(t)])}const d=k.useCallback(g=>{i||l(g)},[]);return[u,d]}function lo(e){const t=k.useRef(e);return zs(()=>{t.current=e}),k.useCallback((...n)=>(0,t.current)(...n),[])}function ur(...e){return k.useMemo(()=>e.every(t=>t==null)?null:t=>{e.forEach(n=>{Hs(n,t)})},e)}let Ws=!0,Qc=!1,ff;const Zv={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function qv(e){const{type:t,tagName:n}=e;return!!(n==="INPUT"&&Zv[t]&&!e.readOnly||n==="TEXTAREA"&&!e.readOnly||e.isContentEditable)}function $v(e){e.metaKey||e.altKey||e.ctrlKey||(Ws=!0)}function xc(){Ws=!1}function eb(){this.visibilityState==="hidden"&&Qc&&(Ws=!0)}function tb(e){e.addEventListener("keydown",$v,!0),e.addEventListener("mousedown",xc,!0),e.addEventListener("pointerdown",xc,!0),e.addEventListener("touchstart",xc,!0),e.addEventListener("visibilitychange",eb,!0)}function nb(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch{}return Ws||qv(t)}function pf(){const e=k.useCallback(i=>{i!=null&&tb(i.ownerDocument)},[]),t=k.useRef(!1);function n(){return t.current?(Qc=!0,window.clearTimeout(ff),ff=window.setTimeout(()=>{Qc=!1},100),t.current=!1,!0):!1}function r(i){return nb(i)?(t.current=!0,!0):!1}return{isFocusVisibleRef:t,onFocus:r,onBlur:n,ref:e}}function rb(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}function ob(e){const t=typeof e;switch(t){case"number":return Number.isNaN(e)?"NaN":Number.isFinite(e)?e!==Math.floor(e)?"float":"number":"Infinity";case"object":return e===null?"null":e.constructor.name;default:return t}}function ib(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e}const sb=Number.isInteger||ib;function hf(e,t,n,r){const i=e[t];if(i==null||!sb(i)){const a=ob(i);return new RangeError(`Invalid ${r} \`${t}\` of type \`${a}\` supplied to \`${n}\`, expected \`integer\`.`)}return null}function Cf(e,t,...n){return e[t]===void 0?null:hf(e,t,...n)}function wc(){return null}Cf.isRequired=hf,wc.isRequired=wc;const Mi=process.env.NODE_ENV==="production"?wc:Cf;function Tc(e,t){const n=G({},t);return Object.keys(e).forEach(r=>{if(r.toString().match(/^(components|slots)$/))n[r]=G({},e[r],n[r]);else if(r.toString().match(/^(componentsProps|slotProps)$/)){const i=e[r]||{},a=t[r];n[r]={},!a||!Object.keys(a)?n[r]=i:!i||!Object.keys(i)?n[r]=a:(n[r]=G({},a),Object.keys(i).forEach(l=>{n[r][l]=Tc(i[l],a[l])}))}else n[r]===void 0&&(n[r]=e[r])}),n}function Mt(e,t,n=void 0){const r={};return Object.keys(e).forEach(i=>{r[i]=e[i].reduce((a,l)=>{if(l){const u=t(l);u!==""&&a.push(u),n&&n[l]&&a.push(n[l])}return a},[]).join(" ")}),r}const Ef=e=>e,If=(()=>{let e=Ef;return{configure(t){e=t},generate(t){return e(t)},reset(){e=Ef}}})(),ab={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function bt(e,t,n="Mui"){const r=ab[t];return r?`${n}-${r}`:`${If.generate(e)}-${t}`}function Pt(e,t,n="Mui"){const r={};return t.forEach(i=>{r[i]=bt(e,i,n)}),r}const Ri="$$material";function We(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}/**
|
|
39
|
-
* @mui/styled-engine v5.14.
|
|
39
|
+
* @mui/styled-engine v5.14.13
|
|
40
40
|
*
|
|
41
41
|
* @license MIT
|
|
42
42
|
* This source code is licensed under the MIT license found in the
|
|
43
43
|
* LICENSE file in the root directory of this source tree.
|
|
44
44
|
*/function lb(e,t){const n=Bv(e,t);return process.env.NODE_ENV!=="production"?(...r)=>{const i=typeof e=="string"?`"${e}"`:"component";return r.length===0?console.error([`MUI: Seems like you called \`styled(${i})()\` without a \`style\` argument.`,'You must provide a `styles` argument: `styled("div")(styleYouForgotToPass)`.'].join(`
|
|
45
|
-
`)):r.some(a=>a===void 0)&&console.error(`MUI: the styled(${i})(...args) API requires all its args to be defined.`),n(...r)}:n}const cb=(e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))},ub=["values","unit","step"],Ab=e=>{const t=Object.keys(e).map(n=>({key:n,val:e[n]}))||[];return t.sort((n,r)=>n.val-r.val),t.reduce((n,r)=>G({},n,{[r.key]:r.val}),{})};function db(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5}=e,i=We(e,ub),a=Ab(t),l=Object.keys(a);function u(h){return`@media (min-width:${typeof t[h]=="number"?t[h]:h}${n})`}function d(h){return`@media (max-width:${(typeof t[h]=="number"?t[h]:h)-r/100}${n})`}function g(h,I){const m=l.indexOf(I);return`@media (min-width:${typeof t[h]=="number"?t[h]:h}${n}) and (max-width:${(m!==-1&&typeof t[l[m]]=="number"?t[l[m]]:I)-r/100}${n})`}function p(h){return l.indexOf(h)+1<l.length?g(h,l[l.indexOf(h)+1]):u(h)}function E(h){const I=l.indexOf(h);return I===0?u(l[1]):I===l.length-1?d(l[I]):g(h,l[l.indexOf(h)+1]).replace("@media","@media not all and")}return G({keys:l,values:a,up:u,down:d,between:g,only:p,not:E,unit:n},i)}const gb={borderRadius:4},Dr=process.env.NODE_ENV!=="production"?c.oneOfType([c.number,c.string,c.object,c.array]):{};function ji(e,t){return t?Gn(e,t,{clone:!1}):e}const Pc={xs:0,sm:600,md:900,lg:1200,xl:1536},mf={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${Pc[e]}px)`};function Ar(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const a=r.breakpoints||mf;return t.reduce((l,u,d)=>(l[a.up(a.keys[d])]=n(t[d]),l),{})}if(typeof t=="object"){const a=r.breakpoints||mf;return Object.keys(t).reduce((l,u)=>{if(Object.keys(a.values||Pc).indexOf(u)!==-1){const d=a.up(u);l[d]=n(t[u],u)}else{const d=u;l[d]=t[d]}return l},{})}return n(t)}function fb(e={}){var t;return((t=e.keys)==null?void 0:t.reduce((r,i)=>{const a=e.up(i);return r[a]={},r},{}))||{}}function pb(e,t){return e.reduce((n,r)=>{const i=n[r];return(!i||Object.keys(i).length===0)&&delete n[r],n},t)}function Us(e,t,n=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&n){const r=`vars.${t}`.split(".").reduce((i,a)=>i&&i[a]?i[a]:null,e);if(r!=null)return r}return t.split(".").reduce((r,i)=>r&&r[i]!=null?r[i]:null,e)}function Gs(e,t,n,r=n){let i;return typeof e=="function"?i=e(n):Array.isArray(e)?i=e[n]||r:i=Us(e,n)||r,t&&(i=t(i,r,e)),i}function rt(e){const{prop:t,cssProperty:n=e.prop,themeKey:r,transform:i}=e,a=l=>{if(l[t]==null)return null;const u=l[t],d=l.theme,g=Us(d,r)||{};return Ar(l,u,E=>{let h=Gs(g,i,E);return E===h&&typeof E=="string"&&(h=Gs(g,i,`${t}${E==="default"?"":be(E)}`,E)),n===!1?h:{[n]:h}})};return a.propTypes=process.env.NODE_ENV!=="production"?{[t]:Dr}:{},a.filterProps=[t],a}function hb(e){const t={};return n=>(t[n]===void 0&&(t[n]=e(n)),t[n])}const Cb={m:"margin",p:"padding"},Eb={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},Bf={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},Ib=hb(e=>{if(e.length>2)if(Bf[e])e=Bf[e];else return[e];const[t,n]=e.split(""),r=Cb[t],i=Eb[n]||"";return Array.isArray(i)?i.map(a=>r+a):[r+i]}),Ys=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],Ks=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"],mb=[...Ys,...Ks];function ki(e,t,n,r){var i;const a=(i=Us(e,t,!1))!=null?i:n;return typeof a=="number"?l=>typeof l=="string"?l:(process.env.NODE_ENV!=="production"&&typeof l!="number"&&console.error(`MUI: Expected ${r} argument to be a number or a string, got ${l}.`),a*l):Array.isArray(a)?l=>typeof l=="string"?l:(process.env.NODE_ENV!=="production"&&(Number.isInteger(l)?l>a.length-1&&console.error([`MUI: The value provided (${l}) overflows.`,`The supported values are: ${JSON.stringify(a)}.`,`${l} > ${a.length-1}, you need to add the missing values.`].join(`
|
|
45
|
+
`)):r.some(a=>a===void 0)&&console.error(`MUI: the styled(${i})(...args) API requires all its args to be defined.`),n(...r)}:n}const cb=(e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))},ub=["values","unit","step"],Ab=e=>{const t=Object.keys(e).map(n=>({key:n,val:e[n]}))||[];return t.sort((n,r)=>n.val-r.val),t.reduce((n,r)=>G({},n,{[r.key]:r.val}),{})};function db(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5}=e,i=We(e,ub),a=Ab(t),l=Object.keys(a);function u(h){return`@media (min-width:${typeof t[h]=="number"?t[h]:h}${n})`}function d(h){return`@media (max-width:${(typeof t[h]=="number"?t[h]:h)-r/100}${n})`}function g(h,I){const m=l.indexOf(I);return`@media (min-width:${typeof t[h]=="number"?t[h]:h}${n}) and (max-width:${(m!==-1&&typeof t[l[m]]=="number"?t[l[m]]:I)-r/100}${n})`}function p(h){return l.indexOf(h)+1<l.length?g(h,l[l.indexOf(h)+1]):u(h)}function E(h){const I=l.indexOf(h);return I===0?u(l[1]):I===l.length-1?d(l[I]):g(h,l[l.indexOf(h)+1]).replace("@media","@media not all and")}return G({keys:l,values:a,up:u,down:d,between:g,only:p,not:E,unit:n},i)}const gb={borderRadius:4},Dr=process.env.NODE_ENV!=="production"?c.oneOfType([c.number,c.string,c.object,c.array]):{};function ji(e,t){return t?Gn(e,t,{clone:!1}):e}const Pc={xs:0,sm:600,md:900,lg:1200,xl:1536},mf={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${Pc[e]}px)`};function Ar(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const a=r.breakpoints||mf;return t.reduce((l,u,d)=>(l[a.up(a.keys[d])]=n(t[d]),l),{})}if(typeof t=="object"){const a=r.breakpoints||mf;return Object.keys(t).reduce((l,u)=>{if(Object.keys(a.values||Pc).indexOf(u)!==-1){const d=a.up(u);l[d]=n(t[u],u)}else{const d=u;l[d]=t[d]}return l},{})}return n(t)}function fb(e={}){var t;return((t=e.keys)==null?void 0:t.reduce((r,i)=>{const a=e.up(i);return r[a]={},r},{}))||{}}function pb(e,t){return e.reduce((n,r)=>{const i=n[r];return(!i||Object.keys(i).length===0)&&delete n[r],n},t)}function Us(e,t,n=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&n){const r=`vars.${t}`.split(".").reduce((i,a)=>i&&i[a]?i[a]:null,e);if(r!=null)return r}return t.split(".").reduce((r,i)=>r&&r[i]!=null?r[i]:null,e)}function Gs(e,t,n,r=n){let i;return typeof e=="function"?i=e(n):Array.isArray(e)?i=e[n]||r:i=Us(e,n)||r,typeof i=="object"&&process.env.NODE_ENV!=="production"&&console.warn(`MUI: The value found in theme for prop: "${n}" is an [Object] instead of string or number. Check if you forgot to add the correct dotted notation, eg, "background.paper" instead of "background".`),t&&(i=t(i,r,e)),i}function rt(e){const{prop:t,cssProperty:n=e.prop,themeKey:r,transform:i}=e,a=l=>{if(l[t]==null)return null;const u=l[t],d=l.theme,g=Us(d,r)||{};return Ar(l,u,E=>{let h=Gs(g,i,E);return E===h&&typeof E=="string"&&(h=Gs(g,i,`${t}${E==="default"?"":be(E)}`,E)),n===!1?h:{[n]:h}})};return a.propTypes=process.env.NODE_ENV!=="production"?{[t]:Dr}:{},a.filterProps=[t],a}function hb(e){const t={};return n=>(t[n]===void 0&&(t[n]=e(n)),t[n])}const Cb={m:"margin",p:"padding"},Eb={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},Bf={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},Ib=hb(e=>{if(e.length>2)if(Bf[e])e=Bf[e];else return[e];const[t,n]=e.split(""),r=Cb[t],i=Eb[n]||"";return Array.isArray(i)?i.map(a=>r+a):[r+i]}),Ys=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],Ks=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"],mb=[...Ys,...Ks];function ki(e,t,n,r){var i;const a=(i=Us(e,t,!1))!=null?i:n;return typeof a=="number"?l=>typeof l=="string"?l:(process.env.NODE_ENV!=="production"&&typeof l!="number"&&console.error(`MUI: Expected ${r} argument to be a number or a string, got ${l}.`),a*l):Array.isArray(a)?l=>typeof l=="string"?l:(process.env.NODE_ENV!=="production"&&(Number.isInteger(l)?l>a.length-1&&console.error([`MUI: The value provided (${l}) overflows.`,`The supported values are: ${JSON.stringify(a)}.`,`${l} > ${a.length-1}, you need to add the missing values.`].join(`
|
|
46
46
|
`)):console.error([`MUI: The \`theme.${t}\` array type cannot be combined with non integer values.You should either use an integer value that can be used as index, or define the \`theme.${t}\` as a number.`].join(`
|
|
47
47
|
`))),a[l]):typeof a=="function"?a:(process.env.NODE_ENV!=="production"&&console.error([`MUI: The \`theme.${t}\` value (${a}) is invalid.`,"It should be a number, an array or a function."].join(`
|
|
48
48
|
`)),()=>{})}function yf(e){return ki(e,"spacing",8,"spacing")}function Fi(e,t){if(typeof t=="string"||t==null)return t;const n=Math.abs(t),r=e(n);return t>=0?r:typeof r=="number"?-r:`-${r}`}function Bb(e,t){return n=>e.reduce((r,i)=>(r[i]=Fi(t,n),r),{})}function yb(e,t,n,r){if(t.indexOf(n)===-1)return null;const i=Ib(n),a=Bb(i,r),l=e[n];return Ar(e,l,a)}function vf(e,t){const n=yf(e.theme);return Object.keys(e).map(r=>yb(e,t,r,n)).reduce(ji,{})}function Qt(e){return vf(e,Ys)}Qt.propTypes=process.env.NODE_ENV!=="production"?Ys.reduce((e,t)=>(e[t]=Dr,e),{}):{},Qt.filterProps=Ys;function xt(e){return vf(e,Ks)}xt.propTypes=process.env.NODE_ENV!=="production"?Ks.reduce((e,t)=>(e[t]=Dr,e),{}):{},xt.filterProps=Ks,process.env.NODE_ENV!=="production"&&mb.reduce((e,t)=>(e[t]=Dr,e),{});function vb(e=8){if(e.mui)return e;const t=yf({spacing:e}),n=(...r)=>(process.env.NODE_ENV!=="production"&&(r.length<=4||console.error(`MUI: Too many arguments provided, expected between 0 and 4, got ${r.length}`)),(r.length===0?[1]:r).map(a=>{const l=t(a);return typeof l=="number"?`${l}px`:l}).join(" "));return n.mui=!0,n}function _s(...e){const t=e.reduce((r,i)=>(i.filterProps.forEach(a=>{r[a]=i}),r),{}),n=r=>Object.keys(r).reduce((i,a)=>t[a]?ji(i,t[a](r)):i,{});return n.propTypes=process.env.NODE_ENV!=="production"?e.reduce((r,i)=>Object.assign(r,i.propTypes),{}):{},n.filterProps=e.reduce((r,i)=>r.concat(i.filterProps),[]),n}function $n(e){return typeof e!="number"?e:`${e}px solid`}const bb=rt({prop:"border",themeKey:"borders",transform:$n}),Qb=rt({prop:"borderTop",themeKey:"borders",transform:$n}),xb=rt({prop:"borderRight",themeKey:"borders",transform:$n}),wb=rt({prop:"borderBottom",themeKey:"borders",transform:$n}),Tb=rt({prop:"borderLeft",themeKey:"borders",transform:$n}),Pb=rt({prop:"borderColor",themeKey:"palette"}),Sb=rt({prop:"borderTopColor",themeKey:"palette"}),Ob=rt({prop:"borderRightColor",themeKey:"palette"}),Db=rt({prop:"borderBottomColor",themeKey:"palette"}),Mb=rt({prop:"borderLeftColor",themeKey:"palette"}),Js=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=ki(e.theme,"shape.borderRadius",4,"borderRadius"),n=r=>({borderRadius:Fi(t,r)});return Ar(e,e.borderRadius,n)}return null};Js.propTypes=process.env.NODE_ENV!=="production"?{borderRadius:Dr}:{},Js.filterProps=["borderRadius"],_s(bb,Qb,xb,wb,Tb,Pb,Sb,Ob,Db,Mb,Js);const Xs=e=>{if(e.gap!==void 0&&e.gap!==null){const t=ki(e.theme,"spacing",8,"gap"),n=r=>({gap:Fi(t,r)});return Ar(e,e.gap,n)}return null};Xs.propTypes=process.env.NODE_ENV!=="production"?{gap:Dr}:{},Xs.filterProps=["gap"];const Zs=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=ki(e.theme,"spacing",8,"columnGap"),n=r=>({columnGap:Fi(t,r)});return Ar(e,e.columnGap,n)}return null};Zs.propTypes=process.env.NODE_ENV!=="production"?{columnGap:Dr}:{},Zs.filterProps=["columnGap"];const qs=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=ki(e.theme,"spacing",8,"rowGap"),n=r=>({rowGap:Fi(t,r)});return Ar(e,e.rowGap,n)}return null};qs.propTypes=process.env.NODE_ENV!=="production"?{rowGap:Dr}:{},qs.filterProps=["rowGap"];const Rb=rt({prop:"gridColumn"}),jb=rt({prop:"gridRow"}),kb=rt({prop:"gridAutoFlow"}),Fb=rt({prop:"gridAutoColumns"}),Lb=rt({prop:"gridAutoRows"}),Nb=rt({prop:"gridTemplateColumns"}),Vb=rt({prop:"gridTemplateRows"}),Hb=rt({prop:"gridTemplateAreas"}),zb=rt({prop:"gridArea"});_s(Xs,Zs,qs,Rb,jb,kb,Fb,Lb,Nb,Vb,Hb,zb);function Fo(e,t){return t==="grey"?t:e}const Wb=rt({prop:"color",themeKey:"palette",transform:Fo}),Ub=rt({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Fo}),Gb=rt({prop:"backgroundColor",themeKey:"palette",transform:Fo});_s(Wb,Ub,Gb);function pn(e){return e<=1&&e!==0?`${e*100}%`:e}const Yb=rt({prop:"width",transform:pn}),Sc=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=n=>{var r,i;const a=((r=e.theme)==null||(r=r.breakpoints)==null||(r=r.values)==null?void 0:r[n])||Pc[n];return a?((i=e.theme)==null||(i=i.breakpoints)==null?void 0:i.unit)!=="px"?{maxWidth:`${a}${e.theme.breakpoints.unit}`}:{maxWidth:a}:{maxWidth:pn(n)}};return Ar(e,e.maxWidth,t)}return null};Sc.filterProps=["maxWidth"];const Kb=rt({prop:"minWidth",transform:pn}),_b=rt({prop:"height",transform:pn}),Jb=rt({prop:"maxHeight",transform:pn}),Xb=rt({prop:"minHeight",transform:pn});rt({prop:"size",cssProperty:"width",transform:pn}),rt({prop:"size",cssProperty:"height",transform:pn});const Zb=rt({prop:"boxSizing"});_s(Yb,Sc,Kb,_b,Jb,Xb,Zb);const $s={border:{themeKey:"borders",transform:$n},borderTop:{themeKey:"borders",transform:$n},borderRight:{themeKey:"borders",transform:$n},borderBottom:{themeKey:"borders",transform:$n},borderLeft:{themeKey:"borders",transform:$n},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:Js},color:{themeKey:"palette",transform:Fo},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Fo},backgroundColor:{themeKey:"palette",transform:Fo},p:{style:xt},pt:{style:xt},pr:{style:xt},pb:{style:xt},pl:{style:xt},px:{style:xt},py:{style:xt},padding:{style:xt},paddingTop:{style:xt},paddingRight:{style:xt},paddingBottom:{style:xt},paddingLeft:{style:xt},paddingX:{style:xt},paddingY:{style:xt},paddingInline:{style:xt},paddingInlineStart:{style:xt},paddingInlineEnd:{style:xt},paddingBlock:{style:xt},paddingBlockStart:{style:xt},paddingBlockEnd:{style:xt},m:{style:Qt},mt:{style:Qt},mr:{style:Qt},mb:{style:Qt},ml:{style:Qt},mx:{style:Qt},my:{style:Qt},margin:{style:Qt},marginTop:{style:Qt},marginRight:{style:Qt},marginBottom:{style:Qt},marginLeft:{style:Qt},marginX:{style:Qt},marginY:{style:Qt},marginInline:{style:Qt},marginInlineStart:{style:Qt},marginInlineEnd:{style:Qt},marginBlock:{style:Qt},marginBlockStart:{style:Qt},marginBlockEnd:{style:Qt},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:Xs},rowGap:{style:qs},columnGap:{style:Zs},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:pn},maxWidth:{style:Sc},minWidth:{transform:pn},height:{transform:pn},maxHeight:{transform:pn},minHeight:{transform:pn},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function qb(...e){const t=e.reduce((r,i)=>r.concat(Object.keys(i)),[]),n=new Set(t);return e.every(r=>n.size===Object.keys(r).length)}function $b(e,t){return typeof e=="function"?e(t):e}function eQ(){function e(n,r,i,a){const l={[n]:r,theme:i},u=a[n];if(!u)return{[n]:r};const{cssProperty:d=n,themeKey:g,transform:p,style:E}=u;if(r==null)return null;if(g==="typography"&&r==="inherit")return{[n]:r};const h=Us(i,g)||{};return E?E(l):Ar(l,r,m=>{let B=Gs(h,p,m);return m===B&&typeof m=="string"&&(B=Gs(h,p,`${n}${m==="default"?"":be(m)}`,m)),d===!1?B:{[d]:B}})}function t(n){var r;const{sx:i,theme:a={}}=n||{};if(!i)return null;const l=(r=a.unstable_sxConfig)!=null?r:$s;function u(d){let g=d;if(typeof d=="function")g=d(a);else if(typeof d!="object")return d;if(!g)return null;const p=fb(a.breakpoints),E=Object.keys(p);let h=p;return Object.keys(g).forEach(I=>{const m=$b(g[I],a);if(m!=null)if(typeof m=="object")if(l[I])h=ji(h,e(I,m,a,l));else{const B=Ar({theme:a},m,y=>({[I]:y}));qb(B,m)?h[I]=t({sx:m,theme:a}):h=ji(h,B)}else h=ji(h,e(I,m,a,l))}),pb(E,h)}return Array.isArray(i)?i.map(u):u(i)}return t}const bf=eQ();bf.filterProps=["sx"];const Oc=bf,tQ=["breakpoints","palette","spacing","shape"];function Dc(e={},...t){const{breakpoints:n={},palette:r={},spacing:i,shape:a={}}=e,l=We(e,tQ),u=db(n),d=vb(i);let g=Gn({breakpoints:u,direction:"ltr",components:{},palette:G({mode:"light"},r),spacing:d,shape:G({},gb,a)},l);return g=t.reduce((p,E)=>Gn(p,E),g),g.unstable_sxConfig=G({},$s,l==null?void 0:l.unstable_sxConfig),g.unstable_sx=function(E){return Oc({sx:E,theme:this})},g}function nQ(e){return Object.keys(e).length===0}function Qf(e=null){const t=k.useContext(Vt.ThemeContext);return!t||nQ(t)?e:t}const rQ=Dc();function xf(e=rQ){return Qf(e)}const oQ=["sx"],iQ=e=>{var t,n;const r={systemProps:{},otherProps:{}},i=(t=e==null||(n=e.theme)==null?void 0:n.unstable_sxConfig)!=null?t:$s;return Object.keys(e).forEach(a=>{i[a]?r.systemProps[a]=e[a]:r.otherProps[a]=e[a]}),r};function sQ(e){const{sx:t}=e,n=We(e,oQ),{systemProps:r,otherProps:i}=iQ(n);let a;return Array.isArray(t)?a=[r,...t]:typeof t=="function"?a=(...l)=>{const u=t(...l);return lr(u)?G({},r,u):r}:a=G({},r,t),G({},i,{sx:a})}function wf(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=wf(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}function Ue(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=wf(e))&&(r&&(r+=" "),r+=t);return r}const aQ=["variant"];function Tf(e){return e.length===0}function Pf(e){const{variant:t}=e,n=We(e,aQ);let r=t||"";return Object.keys(n).sort().forEach(i=>{i==="color"?r+=Tf(r)?e[i]:be(e[i]):r+=`${Tf(r)?i:be(i)}${be(e[i].toString())}`}),r}const lQ=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function cQ(e){return Object.keys(e).length===0}function uQ(e){return typeof e=="string"&&e.charCodeAt(0)>96}const AQ=(e,t)=>t.components&&t.components[e]&&t.components[e].styleOverrides?t.components[e].styleOverrides:null,ea=e=>{const t={};return e&&e.forEach(n=>{const r=Pf(n.props);t[r]=n.style}),t},dQ=(e,t)=>{let n=[];return t&&t.components&&t.components[e]&&t.components[e].variants&&(n=t.components[e].variants),ea(n)},ta=(e,t,n)=>{const{ownerState:r={}}=e,i=[];return n&&n.forEach(a=>{let l=!0;Object.keys(a.props).forEach(u=>{r[u]!==a.props[u]&&e[u]!==a.props[u]&&(l=!1)}),l&&i.push(t[Pf(a.props)])}),i},gQ=(e,t,n,r)=>{var i;const a=n==null||(i=n.components)==null||(i=i[r])==null?void 0:i.variants;return ta(e,t,a)};function na(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const fQ=Dc(),Sf=e=>e&&e.charAt(0).toLowerCase()+e.slice(1);function ra({defaultTheme:e,theme:t,themeId:n}){return cQ(t)?e:t[n]||t}function pQ(e){return e?(t,n)=>n[e]:null}const Of=({styledArg:e,props:t,defaultTheme:n,themeId:r})=>{const i=e(G({},t,{theme:ra(G({},t,{defaultTheme:n,themeId:r}))}));let a;if(i&&i.variants&&(a=i.variants,delete i.variants),a){const l=ta(t,ea(a),a);return[i,...l]}return i};function Df(e={}){const{themeId:t,defaultTheme:n=fQ,rootShouldForwardProp:r=na,slotShouldForwardProp:i=na}=e,a=l=>Oc(G({},l,{theme:ra(G({},l,{defaultTheme:n,themeId:t}))}));return a.__mui_systemSx=!0,(l,u={})=>{cb(l,T=>T.filter(P=>!(P!=null&&P.__mui_systemSx)));const{name:d,slot:g,skipVariantsResolver:p,skipSx:E,overridesResolver:h=pQ(Sf(g))}=u,I=We(u,lQ),m=p!==void 0?p:g&&g!=="Root"&&g!=="root"||!1,B=E||!1;let y;process.env.NODE_ENV!=="production"&&d&&(y=`${d}-${Sf(g||"Root")}`);let D=na;g==="Root"||g==="root"?D=r:g?D=i:uQ(l)&&(D=void 0);const R=lb(l,G({shouldForwardProp:D,label:y},I)),w=(T,...P)=>{const z=P?P.map(K=>{if(typeof K=="function"&&K.__emotion_real!==K)return te=>Of({styledArg:K,props:te,defaultTheme:n,themeId:t});if(lr(K)){let te=K,ce;return K&&K.variants&&(ce=K.variants,delete te.variants,te=ge=>{let J=K;return ta(ge,ea(ce),ce).forEach(Y=>{J=Gn(J,Y)}),J}),te}return K}):[];let L=T;if(lr(T)){let K;T&&T.variants&&(K=T.variants,delete L.variants,L=te=>{let ce=T;return ta(te,ea(K),K).forEach(J=>{ce=Gn(ce,J)}),ce})}else typeof T=="function"&&T.__emotion_real!==T&&(L=K=>Of({styledArg:T,props:K,defaultTheme:n,themeId:t}));d&&h&&z.push(K=>{const te=ra(G({},K,{defaultTheme:n,themeId:t})),ce=AQ(d,te);if(ce){const ge={};return Object.entries(ce).forEach(([J,X])=>{ge[J]=typeof X=="function"?X(G({},K,{theme:te})):X}),h(K,ge)}return null}),d&&!m&&z.push(K=>{const te=ra(G({},K,{defaultTheme:n,themeId:t}));return gQ(K,dQ(d,te),te,d)}),B||z.push(a);const _=z.length-P.length;if(Array.isArray(T)&&_>0){const K=new Array(_).fill("");L=[...T,...K],L.raw=[...T.raw,...K]}const $=R(L,...z);if(process.env.NODE_ENV!=="production"){let K;d&&(K=`${d}${be(g||"")}`),K===void 0&&(K=`Styled(${Wv(l)})`),$.displayName=K}return l.muiName&&($.muiName=l.muiName),$};return R.withConfig&&(w.withConfig=R.withConfig),w}}const Lo=Df();function hQ(e){const{theme:t,name:n,props:r}=e;return!t||!t.components||!t.components[n]||!t.components[n].defaultProps?r:Tc(t.components[n].defaultProps,r)}function CQ({props:e,name:t,defaultTheme:n,themeId:r}){let i=xf(n);return r&&(i=i[r]||i),hQ({theme:i,name:t,props:e})}function Mc(e,t=0,n=1){return process.env.NODE_ENV!=="production"&&(e<t||e>n)&&console.error(`MUI: The value provided ${e} is out of range [${t}, ${n}].`),Math.min(Math.max(t,e),n)}function EQ(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let n=e.match(t);return n&&n[0].length===1&&(n=n.map(r=>r+r)),n?`rgb${n.length===4?"a":""}(${n.map((r,i)=>i<3?parseInt(r,16):Math.round(parseInt(r,16)/255*1e3)/1e3).join(", ")})`:""}function co(e){if(e.type)return e;if(e.charAt(0)==="#")return co(EQ(e));const t=e.indexOf("("),n=e.substring(0,t);if(["rgb","rgba","hsl","hsla","color"].indexOf(n)===-1)throw new Error(process.env.NODE_ENV!=="production"?`MUI: Unsupported \`${e}\` color.
|
|
@@ -186,7 +186,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
186
186
|
`),Sn.rippleVisible,Xx,ou,({theme:e})=>e.transitions.easing.easeInOut,Sn.ripplePulsate,({theme:e})=>e.transitions.duration.shorter,Sn.child,Sn.childLeaving,Zx,ou,({theme:e})=>e.transitions.easing.easeInOut,Sn.childPulsate,qx,({theme:e})=>e.transitions.easing.easeInOut),Bp=k.forwardRef(function(t,n){const r=St({props:t,name:"MuiTouchRipple"}),{center:i=!1,classes:a={},className:l}=r,u=We(r,_x),[d,g]=k.useState([]),p=k.useRef(0),E=k.useRef(null);k.useEffect(()=>{E.current&&(E.current(),E.current=null)},[d]);const h=k.useRef(!1),I=k.useRef(0),m=k.useRef(null),B=k.useRef(null);k.useEffect(()=>()=>{I.current&&clearTimeout(I.current)},[]);const y=k.useCallback(T=>{const{pulsate:P,rippleX:z,rippleY:L,rippleSize:_,cb:$}=T;g(K=>[...K,f.jsx(e1,{classes:{ripple:Ue(a.ripple,Sn.ripple),rippleVisible:Ue(a.rippleVisible,Sn.rippleVisible),ripplePulsate:Ue(a.ripplePulsate,Sn.ripplePulsate),child:Ue(a.child,Sn.child),childLeaving:Ue(a.childLeaving,Sn.childLeaving),childPulsate:Ue(a.childPulsate,Sn.childPulsate)},timeout:ou,pulsate:P,rippleX:z,rippleY:L,rippleSize:_},p.current)]),p.current+=1,E.current=$},[a]),D=k.useCallback((T={},P={},z=()=>{})=>{const{pulsate:L=!1,center:_=i||P.pulsate,fakeElement:$=!1}=P;if((T==null?void 0:T.type)==="mousedown"&&h.current){h.current=!1;return}(T==null?void 0:T.type)==="touchstart"&&(h.current=!0);const K=$?null:B.current,te=K?K.getBoundingClientRect():{width:0,height:0,left:0,top:0};let ce,ge,J;if(_||T===void 0||T.clientX===0&&T.clientY===0||!T.clientX&&!T.touches)ce=Math.round(te.width/2),ge=Math.round(te.height/2);else{const{clientX:X,clientY:Y}=T.touches&&T.touches.length>0?T.touches[0]:T;ce=Math.round(X-te.left),ge=Math.round(Y-te.top)}if(_)J=Math.sqrt((2*te.width**2+te.height**2)/3),J%2===0&&(J+=1);else{const X=Math.max(Math.abs((K?K.clientWidth:0)-ce),ce)*2+2,Y=Math.max(Math.abs((K?K.clientHeight:0)-ge),ge)*2+2;J=Math.sqrt(X**2+Y**2)}T!=null&&T.touches?m.current===null&&(m.current=()=>{y({pulsate:L,rippleX:ce,rippleY:ge,rippleSize:J,cb:z})},I.current=setTimeout(()=>{m.current&&(m.current(),m.current=null)},Jx)):y({pulsate:L,rippleX:ce,rippleY:ge,rippleSize:J,cb:z})},[i,y]),R=k.useCallback(()=>{D({},{pulsate:!0})},[D]),w=k.useCallback((T,P)=>{if(clearTimeout(I.current),(T==null?void 0:T.type)==="touchend"&&m.current){m.current(),m.current=null,I.current=setTimeout(()=>{w(T,P)});return}m.current=null,g(z=>z.length>0?z.slice(1):z),E.current=P},[]);return k.useImperativeHandle(n,()=>({pulsate:R,start:D,stop:w}),[R,D,w]),f.jsx($x,G({className:Ue(Sn.root,a.root,l),ref:B},u,{children:f.jsx(Kx,{component:null,exit:!0,children:d})}))});process.env.NODE_ENV!=="production"&&(Bp.propTypes={center:c.bool,classes:c.object,className:c.string});const t1=Bp;function n1(e){return bt("MuiButtonBase",e)}const r1=Pt("MuiButtonBase",["root","disabled","focusVisible"]),o1=["action","centerRipple","children","className","component","disabled","disableRipple","disableTouchRipple","focusRipple","focusVisibleClassName","LinkComponent","onBlur","onClick","onContextMenu","onDragLeave","onFocus","onFocusVisible","onKeyDown","onKeyUp","onMouseDown","onMouseLeave","onMouseUp","onTouchEnd","onTouchMove","onTouchStart","tabIndex","TouchRippleProps","touchRippleRef","type"],i1=e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:i}=e,l=Mt({root:["root",t&&"disabled",n&&"focusVisible"]},n1,i);return n&&r&&(l.root+=` ${r}`),l},s1=ue("button",{name:"MuiButtonBase",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},[`&.${r1.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),yp=k.forwardRef(function(t,n){const r=St({props:t,name:"MuiButtonBase"}),{action:i,centerRipple:a=!1,children:l,className:u,component:d="button",disabled:g=!1,disableRipple:p=!1,disableTouchRipple:E=!1,focusRipple:h=!1,LinkComponent:I="a",onBlur:m,onClick:B,onContextMenu:y,onDragLeave:D,onFocus:R,onFocusVisible:w,onKeyDown:T,onKeyUp:P,onMouseDown:z,onMouseLeave:L,onMouseUp:_,onTouchEnd:$,onTouchMove:K,onTouchStart:te,tabIndex:ce=0,TouchRippleProps:ge,touchRippleRef:J,type:X}=r,Y=We(r,o1),q=k.useRef(null),W=k.useRef(null),re=ur(W,J),{isFocusVisibleRef:U,onFocus:V,onBlur:le,ref:pe}=pf(),[Ae,fe]=k.useState(!1);g&&Ae&&fe(!1),k.useImperativeHandle(i,()=>({focusVisible:()=>{fe(!0),q.current.focus()}}),[]);const[he,Be]=k.useState(!1);k.useEffect(()=>{Be(!0)},[]);const ye=he&&!p&&!g;k.useEffect(()=>{Ae&&h&&!p&&he&&W.current.pulsate()},[p,h,Ae,he]);function Ee(we,Kt,Ye=E){return lo(Te=>(Kt&&Kt(Te),!Ye&&W.current&&W.current[we](Te),!0))}const de=Ee("start",z),ve=Ee("stop",y),se=Ee("stop",D),Le=Ee("stop",_),ee=Ee("stop",we=>{Ae&&we.preventDefault(),L&&L(we)}),kt=Ee("start",te),Yt=Ee("stop",$),yt=Ee("stop",K),Zr=Ee("stop",we=>{le(we),U.current===!1&&fe(!1),m&&m(we)},!1),Bs=lo(we=>{q.current||(q.current=we.currentTarget),V(we),U.current===!0&&(fe(!0),w&&w(we)),R&&R(we)}),jn=()=>{const we=q.current;return d&&d!=="button"&&!(we.tagName==="A"&&we.href)},Ut=k.useRef(!1),Ft=lo(we=>{h&&!Ut.current&&Ae&&W.current&&we.key===" "&&(Ut.current=!0,W.current.stop(we,()=>{W.current.start(we)})),we.target===we.currentTarget&&jn()&&we.key===" "&&we.preventDefault(),T&&T(we),we.target===we.currentTarget&&jn()&&we.key==="Enter"&&!g&&(we.preventDefault(),B&&B(we))}),Bn=lo(we=>{h&&we.key===" "&&W.current&&Ae&&!we.defaultPrevented&&(Ut.current=!1,W.current.stop(we,()=>{W.current.pulsate(we)})),P&&P(we),B&&we.target===we.currentTarget&&jn()&&we.key===" "&&!we.defaultPrevented&&B(we)});let _n=d;_n==="button"&&(Y.href||Y.to)&&(_n=I);const Re={};_n==="button"?(Re.type=X===void 0?"button":X,Re.disabled=g):(!Y.href&&!Y.to&&(Re.role="button"),g&&(Re["aria-disabled"]=g));const Xe=ur(n,pe,q);process.env.NODE_ENV!=="production"&&k.useEffect(()=>{ye&&!W.current&&console.error(["MUI: The `component` prop provided to ButtonBase is invalid.","Please make sure the children prop is rendered in this custom component."].join(`
|
|
187
187
|
`))},[ye]);const Pe=G({},r,{centerRipple:a,component:d,disabled:g,disableRipple:p,disableTouchRipple:E,focusRipple:h,tabIndex:ce,focusVisible:Ae}),_e=i1(Pe);return f.jsxs(s1,G({as:_n,className:Ue(_e.root,u),ownerState:Pe,onBlur:Zr,onClick:B,onContextMenu:ve,onFocus:Bs,onKeyDown:Ft,onKeyUp:Bn,onMouseDown:de,onMouseLeave:ee,onMouseUp:Le,onDragLeave:se,onTouchEnd:Yt,onTouchMove:yt,onTouchStart:kt,ref:Xe,tabIndex:g?-1:ce,type:X},Re,Y,{children:[l,ye?f.jsx(t1,G({ref:re,center:a},ge)):null]}))});process.env.NODE_ENV!=="production"&&(yp.propTypes={action:Uv,centerRipple:c.bool,children:c.node,classes:c.object,className:c.string,component:Fv,disabled:c.bool,disableRipple:c.bool,disableTouchRipple:c.bool,focusRipple:c.bool,focusVisibleClassName:c.string,href:c.any,LinkComponent:c.elementType,onBlur:c.func,onClick:c.func,onContextMenu:c.func,onDragLeave:c.func,onFocus:c.func,onFocusVisible:c.func,onKeyDown:c.func,onKeyUp:c.func,onMouseDown:c.func,onMouseLeave:c.func,onMouseUp:c.func,onTouchEnd:c.func,onTouchMove:c.func,onTouchStart:c.func,sx:c.oneOfType([c.arrayOf(c.oneOfType([c.func,c.object,c.bool])),c.func,c.object]),tabIndex:c.number,TouchRippleProps:c.object,touchRippleRef:c.oneOfType([c.func,c.shape({current:c.shape({pulsate:c.func.isRequired,start:c.func.isRequired,stop:c.func.isRequired})})]),type:c.oneOfType([c.oneOf(["button","reset","submit"]),c.string])});const iu=yp,a1=["slots","slotProps"],l1=ue(iu)(({theme:e})=>G({display:"flex",marginLeft:`calc(${e.spacing(1)} * 0.5)`,marginRight:`calc(${e.spacing(1)} * 0.5)`},e.palette.mode==="light"?{backgroundColor:e.palette.grey[100],color:e.palette.grey[700]}:{backgroundColor:e.palette.grey[700],color:e.palette.grey[100]},{borderRadius:2,"&:hover, &:focus":G({},e.palette.mode==="light"?{backgroundColor:e.palette.grey[200]}:{backgroundColor:e.palette.grey[600]}),"&:active":G({boxShadow:e.shadows[0]},e.palette.mode==="light"?{backgroundColor:Rf(e.palette.grey[200],.12)}:{backgroundColor:Rf(e.palette.grey[600],.12)})})),c1=ue(Lx)({width:24,height:16});function vp(e){const{slots:t={},slotProps:n={}}=e,r=We(e,a1),i=e;return f.jsx("li",{children:f.jsx(l1,G({focusRipple:!0},r,{ownerState:i,children:f.jsx(c1,G({as:t.CollapsedIcon,ownerState:i},n.collapsedIcon))}))})}process.env.NODE_ENV!=="production"&&(vp.propTypes={slotProps:c.shape({collapsedIcon:c.oneOfType([c.func,c.object])}),slots:c.shape({CollapsedIcon:c.elementType}),sx:c.object});function u1(e){return bt("MuiBreadcrumbs",e)}const A1=Pt("MuiBreadcrumbs",["root","ol","li","separator"]),d1=["children","className","component","slots","slotProps","expandText","itemsAfterCollapse","itemsBeforeCollapse","maxItems","separator"],g1=e=>{const{classes:t}=e;return Mt({root:["root"],li:["li"],ol:["ol"],separator:["separator"]},u1,t)},f1=ue(Zc,{name:"MuiBreadcrumbs",slot:"Root",overridesResolver:(e,t)=>[{[`& .${A1.li}`]:t.li},t.root]})({}),p1=ue("ol",{name:"MuiBreadcrumbs",slot:"Ol",overridesResolver:(e,t)=>t.ol})({display:"flex",flexWrap:"wrap",alignItems:"center",padding:0,margin:0,listStyle:"none"}),h1=ue("li",{name:"MuiBreadcrumbs",slot:"Separator",overridesResolver:(e,t)=>t.separator})({display:"flex",userSelect:"none",marginLeft:8,marginRight:8});function C1(e,t,n,r){return e.reduce((i,a,l)=>(l<e.length-1?i=i.concat(a,f.jsx(h1,{"aria-hidden":!0,className:t,ownerState:r,children:n},`separator-${l}`)):i.push(a),i),[])}const bp=k.forwardRef(function(t,n){const r=St({props:t,name:"MuiBreadcrumbs"}),{children:i,className:a,component:l="nav",slots:u={},slotProps:d={},expandText:g="Show path",itemsAfterCollapse:p=1,itemsBeforeCollapse:E=1,maxItems:h=8,separator:I="/"}=r,m=We(r,d1),[B,y]=k.useState(!1),D=G({},r,{component:l,expanded:B,expandText:g,itemsAfterCollapse:p,itemsBeforeCollapse:E,maxItems:h,separator:I}),R=g1(D),w=Jc({elementType:u.CollapsedIcon,externalSlotProps:d.collapsedIcon,ownerState:D}),T=k.useRef(null),P=L=>{const _=()=>{y(!0);const $=T.current.querySelector("a[href],button,[tabindex]");$&&$.focus()};return E+p>=L.length?(process.env.NODE_ENV!=="production"&&console.error(["MUI: You have provided an invalid combination of props to the Breadcrumbs.",`itemsAfterCollapse={${p}} + itemsBeforeCollapse={${E}} >= maxItems={${h}}`].join(`
|
|
188
188
|
`)),L):[...L.slice(0,E),f.jsx(vp,{"aria-label":g,slots:{CollapsedIcon:u.CollapsedIcon},slotProps:{collapsedIcon:w},onClick:_},"ellipsis"),...L.slice(L.length-p,L.length)]},z=k.Children.toArray(i).filter(L=>(process.env.NODE_ENV!=="production"&&sx.isFragment(L)&&console.error(["MUI: The Breadcrumbs component doesn't accept a Fragment as a child.","Consider providing an array instead."].join(`
|
|
189
|
-
`)),k.isValidElement(L))).map((L,_)=>f.jsx("li",{className:R.li,children:L},`child-${_}`));return f.jsx(f1,G({ref:n,component:l,color:"text.secondary",className:Ue(R.root,a),ownerState:D},m,{children:f.jsx(p1,{className:R.ol,ref:T,ownerState:D,children:C1(B||h&&z.length<=h?z:P(z),R.separator,I,D)})}))});process.env.NODE_ENV!=="production"&&(bp.propTypes={children:c.node,classes:c.object,className:c.string,component:c.elementType,expandText:c.string,itemsAfterCollapse:Mi,itemsBeforeCollapse:Mi,maxItems:Mi,separator:c.node,slotProps:c.shape({collapsedIcon:c.oneOfType([c.func,c.object])}),slots:c.shape({CollapsedIcon:c.elementType}),sx:c.oneOfType([c.arrayOf(c.oneOfType([c.func,c.object,c.bool])),c.func,c.object])});const su=bp,E1=({id:e,title:t,icon:n,url:r,last:i})=>{const a=n||ct.ApartmentOutlined;return f.jsxs(Q.Typography,{component:gt.Link,to:r,variant:i?"subtitle1":"h6",sx:{textDecoration:"none"},color:"textSecondary",children:[n&&f.jsx(a,{style:{marginRight:8}}),t]},e)},fa=({home:e,card:t,divider:n=!0,icon:r,icons:i,maxItems:a,navigation:l,rightAlign:u,separator:d,title:g,titleBottom:p,sx:E,breadcrumbs:h,mode:I,...m})=>{const B=At(),y=gt.useLocation(),[D,R]=S.useState(),[w,T]=S.useState();let P=y.pathname;const z={marginRight:B.spacing(.75),marginTop:`-${B.spacing(.25)}`,width:"1rem",height:"1rem",color:B.palette.secondary.main},L=q=>{q.children&&q.children.filter(W=>(W.type&&W.type==="collapse"?(L(W),W.url===P&&(R(W),T(W))):W.type&&W.type==="item"&&P.includes(W.url)&&(R(q),T(W)),!1))};S.useEffect(()=>{var q;(q=l==null?void 0:l.items)==null||q.map(W=>(W.type&&W.type==="group"&&L(W),!1))});const _=d,$=d?f.jsx(_,{style:{fontSize:"0.75rem",marginTop:2}}):"/",K={mb:2,bgcolor:t===!1?"transparent":"inherit",...E,[B.breakpoints.down("sm")]:{mb:1}};let te,ce,ge=f.jsx(Q.Typography,{}),J="",X,Y;return I==="breadcrumbs"?f.jsxs(Pn,{border:t,sx:K,...m,content:t,shadow:"none",children:[f.jsxs(Q.Grid,{container:!0,direction:u?"row":"column",justifyContent:u?"space-between":"flex-start",alignItems:u?"center":"flex-start",spacing:1,children:[g&&!p&&f.jsx(Q.Grid,{item:!0,children:f.jsx(Q.Typography,{variant:"h2",children:w.title})}),f.jsx(Q.Grid,{item:!0,children:f.jsxs(su,{"aria-label":"breadcrumb",maxItems:a||8,separator:$,sx:{[B.breakpoints.down("sm")]:{mt:1}},children:[e!==!1&&f.jsxs(Q.Typography,{component:gt.Link,to:"/",color:"textSecondary",variant:"h6",sx:{textDecoration:"none"},children:[i&&f.jsx(ct.HomeOutlined,{style:z}),r&&!i&&f.jsx(ct.HomeFilled,{style:{...z,marginRight:0}}),(!r||i)&&e]}),h.map(E1)]})}),g&&p&&f.jsx(Q.Grid,{item:!0,sx:{mt:t===!1?.25:1},children:f.jsx(Q.Typography,{variant:"h2",children:w.title})})]}),t===!1&&n!==!1&&f.jsx(Q.Divider,{sx:{mt:2}})]}):(D&&D.type==="collapse"&&D.breadcrumbs===!0&&(X=D.icon?D.icon:ct.ApartmentOutlined,te=f.jsxs(Q.Typography,{component:gt.Link,to:(w==null?void 0:w.url)||document.location.pathname,variant:"h6",sx:{textDecoration:"none"},color:"textSecondary",children:[i&&f.jsx(X,{style:z}),D.title]}),ge=f.jsxs(Pn,{border:t,sx:K,...m,content:t,shadow:"none",children:[f.jsxs(Q.Grid,{container:!0,direction:u?"row":"column",justifyContent:u?"space-between":"flex-start",alignItems:u?"center":"flex-start",spacing:1,children:[f.jsx(Q.Grid,{item:!0,children:f.jsxs(su,{"aria-label":"breadcrumb",maxItems:a||8,separator:$,children:[e!==!1&&f.jsxs(Q.Typography,{component:gt.Link,to:"/",color:"textSecondary",variant:"h6",sx:{textDecoration:"none"},children:[i&&f.jsx(ct.HomeOutlined,{style:z}),r&&!i&&f.jsx(ct.HomeFilled,{style:{...z,marginRight:0}}),(!r||i)&&e]}),te]})}),g&&p&&f.jsx(Q.Grid,{item:!0,sx:{mt:t===!1?.25:1},children:f.jsx(Q.Typography,{variant:"h2",children:D.title})})]}),t===!1&&n!==!1&&f.jsx(Q.Divider,{sx:{mt:2}})]})),w&&w.type==="item"&&(J=w.title,Y=w.icon?w.icon:ct.ApartmentOutlined,ce=f.jsxs(Q.Typography,{variant:"subtitle1",color:"textPrimary",component:gt.Link,to:w.url,sx:{textDecoration:"none"},children:[i&&f.jsx(Y,{style:z}),J]}),w.breadcrumbs!==!1&&(ge=f.jsxs(Pn,{border:t,sx:{mb:3,bgcolor:t===!1?"transparent":"inherit",...E,[B.breakpoints.down("sm")]:{mb:1}},...m,content:t,shadow:"none",children:[f.jsxs(Q.Grid,{container:!0,direction:u?"row":"column",justifyContent:u?"space-between":"flex-start",alignItems:u?"center":"flex-start",spacing:1,children:[g&&!p&&f.jsx(Q.Grid,{item:!0,children:f.jsx(Q.Typography,{variant:"h2",children:w.title})}),f.jsx(Q.Grid,{item:!0,children:f.jsxs(su,{"aria-label":"breadcrumb",maxItems:a||8,separator:$,children:[e!==!1&&f.jsxs(Q.Typography,{component:gt.Link,to:"/",color:"textSecondary",variant:"h6",sx:{textDecoration:"none"},children:[i&&f.jsx(ct.HomeOutlined,{style:z}),r&&!i&&f.jsx(ct.HomeFilled,{style:{...z,marginRight:0}}),(!r||i)&&e]}),te,ce]})}),g&&p&&f.jsx(Q.Grid,{item:!0,sx:{mt:t===!1?.25:1},children:f.jsx(Q.Typography,{variant:"h2",children:w.title})})]}),t===!1&&n!==!1&&f.jsx(Q.Divider,{sx:{mt:2}})]}))),ge)};fa.defaultProps={home:"Home",mode:"navigation"},fa.propTypes={home:c.oneOfType([c.string,c.bool]),card:c.bool,divider:c.bool,icon:c.bool,icons:c.bool,maxItems:c.number,navigation:c.object,rightAlign:c.bool,separator:c.oneOfType([c.func,c.object]),title:c.bool,titleBottom:c.bool,sx:c.oneOfType([c.object,c.string]),breadcrumbs:c.arrayOf(Uo),mode:c.oneOf(["navigation","breadcrumbs"])};const I1=Lo(O.Toolbar,{name:"RaApplicaToolbar",slot:"Root"})(({theme:e})=>({...e.mixins.toolbar,backgroundColor:e.palette.background.paper,justifyContent:"flex-end","& .RaToolbar-defaultToolbar":{justifyContent:"right",paddingBottom:e.spacing(2),"& > *":{marginLeft:e.spacing(1)}},"& .MuiButtonBase-root":{marginLeft:e.spacing(1)}})),gr=e=>f.jsx(I1,{...e});gr.defaultProps={...O.Toolbar.defaultProps},gr.propTypes={...O.Toolbar.propTypes};const au=({children:e,content:t,title:n,subheader:r,secondary:i,toolbar:a,...l})=>{const u=O.useTranslate(),d=O.useResourceContext(),{cardTitle:g,cardSubheader:p}=S.useMemo(()=>{const E=n||`resources.${d}.title`;return{cardTitle:u(E,{_:E}),cardSubheader:r!==null?u(r,{_:r}):null}},[d,r,n,u]);return f.jsx(Q.Grid,{item:!0,...l,children:f.jsx(Pn,{content:t,title:g,subheader:p,secondary:i,divider:!0,children:f.jsxs(S.Fragment,{children:[e,a===!0?f.jsx(gr,{children:f.jsx(O.SaveButton,{})}):a]})})})};au.defaultProps={...Q.Grid.defaultProps,content:!0,subheader:null,title:null,secondary:null,toolbar:!1,item:!0,lg:12,md:12,sm:12,xs:12},au.propTypes={...Q.Grid.propTypes,children:c.oneOfType([c.node,c.arrayOf(c.node)]),contained:c.bool,content:c.bool,subheader:c.oneOfType([c.string,c.node]),title:c.oneOfType([c.string,c.node]),secondary:c.oneOfType([c.node,c.string,c.object]),spacing:c.number,toolbar:c.oneOfType([c.node,c.bool])};const m1=ue(O.Form,{name:"RaApplicaCardForm",slot:"root"})(({theme:e,spacing:t})=>({backgroundColor:"transparent","& .RaToolbar-desktopToolbar":{marginTop:e.spacing(t*2),padding:0}})),pa=({children:e,spacing:t,defaultValues:n,...r})=>{const{spacing:i}=Ht();return f.jsx(m1,{defaultValues:n,spacing:t||i,children:f.jsx(Q.Grid,{container:!0,...r,spacing:t||i,children:e})})};pa.propTypes={...Q.Grid.propTypes,...O.Form.propTypes,children:c.oneOfType([c.node,c.arrayOf(c.node)]),spacing:c.number,defaultValues:c.oneOfType([c.object,c.func]),record:c.object,validate:c.func},pa.defaultProps={...Q.Stack.defaultProps},pa.Section=au;var Qp={exports:{}};(function(e){function t(n){return n&&n.__esModule?n:{default:n}}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(Qp);var Mr=Qp.exports,lu={};const B1=bv(Object.freeze(Object.defineProperty({__proto__:null,capitalize:be,createChainedFunction:vc,createSvgIcon:$c,debounce:Af,deprecatedPropType:Gv,isMuiElement:Yv,ownerDocument:cr,ownerWindow:ko,requirePropFactory:Kv,setRef:Hs,unstable_ClassNameGenerator:{configure:e=>{process.env.NODE_ENV!=="production"&&console.warn(["MUI: `ClassNameGenerator` import from `@mui/material/utils` is outdated and might cause unexpected issues.","","You should use `import { unstable_ClassNameGenerator } from '@mui/material/className'` instead","","The detail of the issue: https://github.com/mui/material-ui/issues/30011#issuecomment-1024993401","","The updated documentation: https://mui.com/guides/classname-generator/"].join(`
|
|
189
|
+
`)),k.isValidElement(L))).map((L,_)=>f.jsx("li",{className:R.li,children:L},`child-${_}`));return f.jsx(f1,G({ref:n,component:l,color:"text.secondary",className:Ue(R.root,a),ownerState:D},m,{children:f.jsx(p1,{className:R.ol,ref:T,ownerState:D,children:C1(B||h&&z.length<=h?z:P(z),R.separator,I,D)})}))});process.env.NODE_ENV!=="production"&&(bp.propTypes={children:c.node,classes:c.object,className:c.string,component:c.elementType,expandText:c.string,itemsAfterCollapse:Mi,itemsBeforeCollapse:Mi,maxItems:Mi,separator:c.node,slotProps:c.shape({collapsedIcon:c.oneOfType([c.func,c.object])}),slots:c.shape({CollapsedIcon:c.elementType}),sx:c.oneOfType([c.arrayOf(c.oneOfType([c.func,c.object,c.bool])),c.func,c.object])});const su=bp,E1=({id:e,title:t,icon:n,url:r,last:i})=>{const a=n||ct.ApartmentOutlined;return f.jsxs(Q.Typography,{component:gt.Link,to:r,variant:i?"subtitle1":"h6",sx:{textDecoration:"none",display:"inline-flex",alignItems:"center"},color:"textSecondary",children:[n&&f.jsx(a,{style:{marginRight:8,fontSize:"0.875rem"}}),t]},e)},fa=({home:e,card:t,divider:n=!0,icon:r,icons:i,maxItems:a,navigation:l,rightAlign:u,separator:d,title:g,titleBottom:p,sx:E,breadcrumbs:h,mode:I,...m})=>{const B=At(),y=gt.useLocation(),[D,R]=S.useState(),[w,T]=S.useState();let P=y.pathname;const z={marginRight:B.spacing(.75),marginTop:`-${B.spacing(.25)}`,width:"1rem",height:"1rem",color:B.palette.secondary.main},L=q=>{q.children&&q.children.filter(W=>(W.type&&W.type==="collapse"?(L(W),W.url===P&&(R(W),T(W))):W.type&&W.type==="item"&&P.includes(W.url)&&(R(q),T(W)),!1))};S.useEffect(()=>{var q;(q=l==null?void 0:l.items)==null||q.map(W=>(W.type&&W.type==="group"&&L(W),!1))});const _=d,$=d?f.jsx(_,{style:{fontSize:"0.75rem",marginTop:2}}):"/",K={mb:2,bgcolor:t===!1?"transparent":"inherit",...E,[B.breakpoints.down("sm")]:{mb:1}};let te,ce,ge=f.jsx(Q.Typography,{}),J="",X,Y;return I==="breadcrumbs"?f.jsxs(Pn,{border:t,sx:K,...m,content:t,shadow:"none",children:[f.jsxs(Q.Grid,{container:!0,direction:u?"row":"column",justifyContent:u?"space-between":"flex-start",alignItems:u?"center":"flex-start",spacing:1,children:[g&&!p&&f.jsx(Q.Grid,{item:!0,children:f.jsx(Q.Typography,{variant:"h2",children:w.title})}),f.jsx(Q.Grid,{item:!0,children:f.jsxs(su,{"aria-label":"breadcrumb",maxItems:a||8,separator:$,sx:{[B.breakpoints.down("sm")]:{mt:1}},children:[e!==!1&&f.jsxs(Q.Typography,{component:gt.Link,to:"/",color:"textSecondary",variant:"h6",sx:{textDecoration:"none"},children:[i&&f.jsx(ct.HomeOutlined,{style:z}),r&&!i&&f.jsx(ct.HomeFilled,{style:{...z,marginRight:0}}),(!r||i)&&e]}),h.map(E1)]})}),g&&p&&f.jsx(Q.Grid,{item:!0,sx:{mt:t===!1?.25:1},children:f.jsx(Q.Typography,{variant:"h2",children:w.title})})]}),t===!1&&n!==!1&&f.jsx(Q.Divider,{sx:{mt:2}})]}):(D&&D.type==="collapse"&&D.breadcrumbs===!0&&(X=D.icon?D.icon:ct.ApartmentOutlined,te=f.jsxs(Q.Typography,{component:gt.Link,to:(w==null?void 0:w.url)||document.location.pathname,variant:"h6",sx:{textDecoration:"none"},color:"textSecondary",children:[i&&f.jsx(X,{style:z}),D.title]}),ge=f.jsxs(Pn,{border:t,sx:K,...m,content:t,shadow:"none",children:[f.jsxs(Q.Grid,{container:!0,direction:u?"row":"column",justifyContent:u?"space-between":"flex-start",alignItems:u?"center":"flex-start",spacing:1,children:[f.jsx(Q.Grid,{item:!0,children:f.jsxs(su,{"aria-label":"breadcrumb",maxItems:a||8,separator:$,children:[e!==!1&&f.jsxs(Q.Typography,{component:gt.Link,to:"/",color:"textSecondary",variant:"h6",sx:{textDecoration:"none"},children:[i&&f.jsx(ct.HomeOutlined,{style:z}),r&&!i&&f.jsx(ct.HomeFilled,{style:{...z,marginRight:0}}),(!r||i)&&e]}),te]})}),g&&p&&f.jsx(Q.Grid,{item:!0,sx:{mt:t===!1?.25:1},children:f.jsx(Q.Typography,{variant:"h2",children:D.title})})]}),t===!1&&n!==!1&&f.jsx(Q.Divider,{sx:{mt:2}})]})),w&&w.type==="item"&&(J=w.title,Y=w.icon?w.icon:ct.ApartmentOutlined,ce=f.jsxs(Q.Typography,{variant:"subtitle1",color:"textPrimary",component:gt.Link,to:w.url,sx:{textDecoration:"none"},children:[i&&f.jsx(Y,{style:z}),J]}),w.breadcrumbs!==!1&&(ge=f.jsxs(Pn,{border:t,sx:{mb:3,bgcolor:t===!1?"transparent":"inherit",...E,[B.breakpoints.down("sm")]:{mb:1}},...m,content:t,shadow:"none",children:[f.jsxs(Q.Grid,{container:!0,direction:u?"row":"column",justifyContent:u?"space-between":"flex-start",alignItems:u?"center":"flex-start",spacing:1,children:[g&&!p&&f.jsx(Q.Grid,{item:!0,children:f.jsx(Q.Typography,{variant:"h2",children:w.title})}),f.jsx(Q.Grid,{item:!0,children:f.jsxs(su,{"aria-label":"breadcrumb",maxItems:a||8,separator:$,children:[e!==!1&&f.jsxs(Q.Typography,{component:gt.Link,to:"/",color:"textSecondary",variant:"h6",sx:{textDecoration:"none"},children:[i&&f.jsx(ct.HomeOutlined,{style:z}),r&&!i&&f.jsx(ct.HomeFilled,{style:{...z,marginRight:0}}),(!r||i)&&e]}),te,ce]})}),g&&p&&f.jsx(Q.Grid,{item:!0,sx:{mt:t===!1?.25:1},children:f.jsx(Q.Typography,{variant:"h2",children:w.title})})]}),t===!1&&n!==!1&&f.jsx(Q.Divider,{sx:{mt:2}})]}))),ge)};fa.defaultProps={home:"Home",mode:"navigation"},fa.propTypes={home:c.oneOfType([c.string,c.bool]),card:c.bool,divider:c.bool,icon:c.bool,icons:c.bool,maxItems:c.number,navigation:c.object,rightAlign:c.bool,separator:c.oneOfType([c.func,c.object]),title:c.bool,titleBottom:c.bool,sx:c.oneOfType([c.object,c.string]),breadcrumbs:c.arrayOf(Uo),mode:c.oneOf(["navigation","breadcrumbs"])};const I1=Lo(O.Toolbar,{name:"RaApplicaToolbar",slot:"Root"})(({theme:e})=>({...e.mixins.toolbar,backgroundColor:e.palette.background.paper,justifyContent:"flex-end","& .RaToolbar-defaultToolbar":{justifyContent:"right",paddingBottom:e.spacing(2),"& > *":{marginLeft:e.spacing(1)}},"& .MuiButtonBase-root":{marginLeft:e.spacing(1)}})),gr=e=>f.jsx(I1,{...e});gr.defaultProps={...O.Toolbar.defaultProps},gr.propTypes={...O.Toolbar.propTypes};const au=({children:e,content:t,title:n,subheader:r,secondary:i,toolbar:a,...l})=>{const u=O.useTranslate(),d=O.useResourceContext(),{cardTitle:g,cardSubheader:p}=S.useMemo(()=>{const E=n||`resources.${d}.title`;return{cardTitle:u(E,{_:E}),cardSubheader:r!==null?u(r,{_:r}):null}},[d,r,n,u]);return f.jsx(Q.Grid,{item:!0,...l,children:f.jsx(Pn,{content:t,title:g,subheader:p,secondary:i,divider:!0,children:f.jsxs(S.Fragment,{children:[e,a===!0?f.jsx(gr,{children:f.jsx(O.SaveButton,{})}):a]})})})};au.defaultProps={...Q.Grid.defaultProps,content:!0,subheader:null,title:null,secondary:null,toolbar:!1,item:!0,lg:12,md:12,sm:12,xs:12},au.propTypes={...Q.Grid.propTypes,children:c.oneOfType([c.node,c.arrayOf(c.node)]),contained:c.bool,content:c.bool,subheader:c.oneOfType([c.string,c.node]),title:c.oneOfType([c.string,c.node]),secondary:c.oneOfType([c.node,c.string,c.object]),spacing:c.number,toolbar:c.oneOfType([c.node,c.bool])};const m1=ue(O.Form,{name:"RaApplicaCardForm",slot:"root"})(({theme:e,spacing:t})=>({backgroundColor:"transparent","& .RaToolbar-desktopToolbar":{marginTop:e.spacing(t*2),padding:0}})),pa=({children:e,spacing:t,defaultValues:n,...r})=>{const{spacing:i}=Ht();return f.jsx(m1,{defaultValues:n,spacing:t||i,children:f.jsx(Q.Grid,{container:!0,...r,spacing:t||i,children:e})})};pa.propTypes={...Q.Grid.propTypes,...O.Form.propTypes,children:c.oneOfType([c.node,c.arrayOf(c.node)]),spacing:c.number,defaultValues:c.oneOfType([c.object,c.func]),record:c.object,validate:c.func},pa.defaultProps={...Q.Stack.defaultProps},pa.Section=au;var Qp={exports:{}};(function(e){function t(n){return n&&n.__esModule?n:{default:n}}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(Qp);var Mr=Qp.exports,lu={};const B1=bv(Object.freeze(Object.defineProperty({__proto__:null,capitalize:be,createChainedFunction:vc,createSvgIcon:$c,debounce:Af,deprecatedPropType:Gv,isMuiElement:Yv,ownerDocument:cr,ownerWindow:ko,requirePropFactory:Kv,setRef:Hs,unstable_ClassNameGenerator:{configure:e=>{process.env.NODE_ENV!=="production"&&console.warn(["MUI: `ClassNameGenerator` import from `@mui/material/utils` is outdated and might cause unexpected issues.","","You should use `import { unstable_ClassNameGenerator } from '@mui/material/className'` instead","","The detail of the issue: https://github.com/mui/material-ui/issues/30011#issuecomment-1024993401","","The updated documentation: https://mui.com/guides/classname-generator/"].join(`
|
|
190
190
|
`)),If.configure(e)}},unstable_useEnhancedEffect:zs,unstable_useId:bc,unsupportedProp:Jv,useControlled:Xv,useEventCallback:lo,useForkRef:ur,useIsFocusVisible:pf},Symbol.toStringTag,{value:"Module"})));var xp;function Rr(){return xp||(xp=1,function(e){"use client";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.createSvgIcon}});var t=B1}(lu)),lu}function wp(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=wp(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}function Ko(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=wp(e))&&(r&&(r+=" "),r+=t);return r}function y1(){this.__data__=[],this.size=0}var v1=y1;function b1(e,t){return e===t||e!==e&&t!==t}var Q1=b1,x1=Q1;function w1(e,t){for(var n=e.length;n--;)if(x1(e[n][0],t))return n;return-1}var ha=w1,T1=ha,P1=Array.prototype,S1=P1.splice;function O1(e){var t=this.__data__,n=T1(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():S1.call(t,n,1),--this.size,!0}var D1=O1,M1=ha;function R1(e){var t=this.__data__,n=M1(t,e);return n<0?void 0:t[n][1]}var j1=R1,k1=ha;function F1(e){return k1(this.__data__,e)>-1}var L1=F1,N1=ha;function V1(e,t){var n=this.__data__,r=N1(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}var H1=V1,z1=v1,W1=D1,U1=j1,G1=L1,Y1=H1;function _o(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}_o.prototype.clear=z1,_o.prototype.delete=W1,_o.prototype.get=U1,_o.prototype.has=G1,_o.prototype.set=Y1;var K1=_o,_1=typeof Tn=="object"&&Tn&&Tn.Object===Object&&Tn,J1=_1,X1=J1,Z1=typeof self=="object"&&self&&self.Object===Object&&self,q1=X1||Z1||Function("return this")(),cu=q1,$1=cu,ew=$1.Symbol,uu=ew,Tp=uu,Pp=Object.prototype,tw=Pp.hasOwnProperty,nw=Pp.toString,Gi=Tp?Tp.toStringTag:void 0;function rw(e){var t=tw.call(e,Gi),n=e[Gi];try{e[Gi]=void 0;var r=!0}catch{}var i=nw.call(e);return r&&(t?e[Gi]=n:delete e[Gi]),i}var ow=rw,iw=Object.prototype,sw=iw.toString;function aw(e){return sw.call(e)}var lw=aw,Sp=uu,cw=ow,uw=lw,Aw="[object Null]",dw="[object Undefined]",Op=Sp?Sp.toStringTag:void 0;function gw(e){return e==null?e===void 0?dw:Aw:Op&&Op in Object(e)?cw(e):uw(e)}var Dp=gw;function fw(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var Mp=fw,pw=Dp,hw=Mp,Cw="[object AsyncFunction]",Ew="[object Function]",Iw="[object GeneratorFunction]",mw="[object Proxy]";function Bw(e){if(!hw(e))return!1;var t=pw(e);return t==Ew||t==Iw||t==Cw||t==mw}var yw=Bw,vw=cu,bw=vw["__core-js_shared__"],Qw=bw,Au=Qw,Rp=function(){var e=/[^.]+$/.exec(Au&&Au.keys&&Au.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function xw(e){return!!Rp&&Rp in e}var ww=xw,Tw=Function.prototype,Pw=Tw.toString;function Sw(e){if(e!=null){try{return Pw.call(e)}catch{}try{return e+""}catch{}}return""}var Ow=Sw,Dw=yw,Mw=ww,Rw=Mp,jw=Ow,kw=/[\\^$.*+?()[\]{}|]/g,Fw=/^\[object .+?Constructor\]$/,Lw=Function.prototype,Nw=Object.prototype,Vw=Lw.toString,Hw=Nw.hasOwnProperty,zw=RegExp("^"+Vw.call(Hw).replace(kw,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Ww(e){if(!Rw(e)||Mw(e))return!1;var t=Dw(e)?zw:Fw;return t.test(jw(e))}var Uw=Ww;function Gw(e,t){return e==null?void 0:e[t]}var Yw=Gw,Kw=Uw,_w=Yw;function Jw(e,t){var n=_w(e,t);return Kw(n)?n:void 0}var jp=Jw,Xw=jp,Zw=cu,qw=Xw(Zw,"Map"),$w=qw,eT=jp,tT=eT(Object,"create"),Ca=tT,kp=Ca;function nT(){this.__data__=kp?kp(null):{},this.size=0}var rT=nT;function oT(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var iT=oT,sT=Ca,aT="__lodash_hash_undefined__",lT=Object.prototype,cT=lT.hasOwnProperty;function uT(e){var t=this.__data__;if(sT){var n=t[e];return n===aT?void 0:n}return cT.call(t,e)?t[e]:void 0}var AT=uT,dT=Ca,gT=Object.prototype,fT=gT.hasOwnProperty;function pT(e){var t=this.__data__;return dT?t[e]!==void 0:fT.call(t,e)}var hT=pT,CT=Ca,ET="__lodash_hash_undefined__";function IT(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=CT&&t===void 0?ET:t,this}var mT=IT,BT=rT,yT=iT,vT=AT,bT=hT,QT=mT;function Jo(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Jo.prototype.clear=BT,Jo.prototype.delete=yT,Jo.prototype.get=vT,Jo.prototype.has=bT,Jo.prototype.set=QT;var xT=Jo,Fp=xT,wT=K1,TT=$w;function PT(){this.size=0,this.__data__={hash:new Fp,map:new(TT||wT),string:new Fp}}var ST=PT;function OT(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}var DT=OT,MT=DT;function RT(e,t){var n=e.__data__;return MT(t)?n[typeof t=="string"?"string":"hash"]:n.map}var Ea=RT,jT=Ea;function kT(e){var t=jT(this,e).delete(e);return this.size-=t?1:0,t}var FT=kT,LT=Ea;function NT(e){return LT(this,e).get(e)}var VT=NT,HT=Ea;function zT(e){return HT(this,e).has(e)}var WT=zT,UT=Ea;function GT(e,t){var n=UT(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}var YT=GT,KT=ST,_T=FT,JT=VT,XT=WT,ZT=YT;function Xo(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Xo.prototype.clear=KT,Xo.prototype.delete=_T,Xo.prototype.get=JT,Xo.prototype.has=XT,Xo.prototype.set=ZT;var qT=Xo,$T=Array.isArray,du=$T;function eP(e){return e!=null&&typeof e=="object"}var tP=eP;function nP(e){return bt("MuiCircularProgress",e)}Pt("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);const rP=["className","color","disableShrink","size","style","thickness","value","variant"];let Ia=e=>e,Lp,Np,Vp,Hp;const jr=44,oP=Vt.keyframes(Lp||(Lp=Ia`
|
|
191
191
|
0% {
|
|
192
192
|
transform: rotate(0deg);
|