@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
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Breadcrumbs.d.ts","sourceRoot":"","sources":["../../../../src/components/@extended/Breadcrumbs.jsx"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"Breadcrumbs.d.ts","sourceRoot":"","sources":["../../../../src/components/@extended/Breadcrumbs.jsx"],"names":[],"mappings":";AAgCA;;;;;;;;;;;;;;;;4CAwPC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;sBAhRqB,YAAY"}
|
package/dist/react-admin.cjs.js
CHANGED
|
@@ -36,13 +36,13 @@ Valid keys: `+JSON.stringify(Object.keys(W),null," "));var ie=ye(Ie,Ae,ue,ge,pe
|
|
|
36
36
|
*/var Th;function IP(){return Th||(Th=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"),m=Symbol.for("react.offscreen"),I=!1,B=!1,y=!1,O=!1,M=!1,w;w=Symbol.for("react.module.reference");function T($){return!!(typeof $=="string"||typeof $=="function"||$===n||$===i||M||$===r||$===g||$===p||O||$===m||I||B||y||typeof $=="object"&&$!==null&&($.$$typeof===h||$.$$typeof===E||$.$$typeof===a||$.$$typeof===l||$.$$typeof===d||$.$$typeof===w||$.getModuleId!==void 0))}function P($){if(typeof $=="object"&&$!==null){var Ot=$.$$typeof;switch(Ot){case e:var Yt=$.type;switch(Yt){case n:case i:case r:case g:case p:return Yt;default:var It=Yt&&Yt.$$typeof;switch(It){case u:case l:case d:case h:case E:case a:return It;default:return Ot}}case t:return Ot}}}var H=l,F=a,K=e,Z=d,G=n,ee=h,le=E,de=t,_=i,q=r,Y=g,X=p,z=!1,ne=!1;function W($){return z||(z=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")),!1}function N($){return ne||(ne=!0,console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")),!1}function ae($){return P($)===l}function fe($){return P($)===a}function ue($){return typeof $=="object"&&$!==null&&$.$$typeof===e}function ge($){return P($)===d}function pe($){return P($)===n}function Ie($){return P($)===h}function Be($){return P($)===E}function Ce($){return P($)===t}function Ae($){return P($)===i}function ye($){return P($)===r}function ie($){return P($)===g}function Fe($){return P($)===p}nt.ContextConsumer=H,nt.ContextProvider=F,nt.Element=K,nt.ForwardRef=Z,nt.Fragment=G,nt.Lazy=ee,nt.Memo=le,nt.Portal=de,nt.Profiler=_,nt.StrictMode=q,nt.Suspense=Y,nt.SuspenseList=X,nt.isAsyncMode=W,nt.isConcurrentMode=N,nt.isContextConsumer=ae,nt.isContextProvider=fe,nt.isElement=ue,nt.isForwardRef=ge,nt.isFragment=pe,nt.isLazy=Ie,nt.isMemo=Be,nt.isPortal=Ce,nt.isProfiler=Ae,nt.isStrictMode=ye,nt.isSuspense=ie,nt.isSuspenseList=Fe,nt.isValidElementType=T,nt.typeOf=P}()),nt}process.env.NODE_ENV==="production"?uA.exports=mP():uA.exports=IP();var Ph=uA.exports;const BP=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function yP(e){const t=`${e}`.match(BP);return t&&t[1]||""}function pm(e,t=""){return e.displayName||e.name||yP(e)||t}function Sh(e,t,n){const r=pm(t);return e.displayName||(r!==""?`${n}(${r})`:n)}function vP(e){if(e!=null){if(typeof e=="string")return e;if(typeof e=="function")return pm(e,"Component");if(typeof e=="object")switch(e.$$typeof){case Ph.ForwardRef:return Sh(e,e.render,"ForwardRef");case Ph.Memo:return Sh(e,e.type,"memo");default:return}}}function KA(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 bP=c.oneOfType([c.func,c.object]),QP=bP;function be(e){if(typeof e!="string")throw new Error(process.env.NODE_ENV!=="production"?"MUI: `capitalize(string)` expects a string argument.":hi(7));return e.charAt(0).toUpperCase()+e.slice(1)}function AA(...e){return e.reduce((t,n)=>n==null?t:function(...i){t.apply(this,i),n.apply(this,i)},()=>{})}function hm(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 xP(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 wP(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 Ir(e){return e&&e.ownerDocument||document}function Bi(e){return Ir(e).defaultView||window}function TP(e,t){if(process.env.NODE_ENV==="production")return()=>null;const n=t?U({},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 m=h(a,l,u,d,g,...p);if(m)return m}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 _a(e,t){typeof e=="function"?e(t):e&&(e.current=t)}const PP=typeof window<"u"?k.useLayoutEffect:k.useEffect,qa=PP;let Rh=0;function SP(e){const[t,n]=k.useState(e),r=e||t;return k.useEffect(()=>{t==null&&(Rh+=1,n(`mui-${Rh}`))},[t]),r}const Oh=k["useId".toString()];function _A(e){if(Oh!==void 0){const t=Oh();return e??t}return SP(e)}function RP(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 OP({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 Qo(e){const t=k.useRef(e);return qa(()=>{t.current=e}),k.useCallback((...n)=>(0,t.current)(...n),[])}function vr(...e){return k.useMemo(()=>e.every(t=>t==null)?null:t=>{e.forEach(n=>{_a(n,t)})},e)}let bl=!0,dA=!1,Dh;const DP={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 MP(e){const{type:t,tagName:n}=e;return!!(n==="INPUT"&&DP[t]&&!e.readOnly||n==="TEXTAREA"&&!e.readOnly||e.isContentEditable)}function jP(e){e.metaKey||e.altKey||e.ctrlKey||(bl=!0)}function Ou(){bl=!1}function kP(){this.visibilityState==="hidden"&&dA&&(bl=!0)}function FP(e){e.addEventListener("keydown",jP,!0),e.addEventListener("mousedown",Ou,!0),e.addEventListener("pointerdown",Ou,!0),e.addEventListener("touchstart",Ou,!0),e.addEventListener("visibilitychange",kP,!0)}function LP(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch{}return bl||MP(t)}function Cm(){const e=k.useCallback(i=>{i!=null&&FP(i.ownerDocument)},[]),t=k.useRef(!1);function n(){return t.current?(dA=!0,window.clearTimeout(Dh),Dh=window.setTimeout(()=>{dA=!1},100),t.current=!1,!0):!1}function r(i){return LP(i)?(t.current=!0,!0):!1}return{isFocusVisibleRef:t,onFocus:r,onBlur:n,ref:e}}function NP(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}function VP(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 HP(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e}const zP=Number.isInteger||HP;function Em(e,t,n,r){const i=e[t];if(i==null||!zP(i)){const a=VP(i);return new RangeError(`Invalid ${r} \`${t}\` of type \`${a}\` supplied to \`${n}\`, expected \`integer\`.`)}return null}function mm(e,t,...n){return e[t]===void 0?null:Em(e,t,...n)}function gA(){return null}mm.isRequired=Em;gA.isRequired=gA;const rs=process.env.NODE_ENV==="production"?gA:mm;function qA(e,t){const n=U({},t);return Object.keys(e).forEach(r=>{if(r.toString().match(/^(components|slots)$/))n[r]=U({},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]=U({},a),Object.keys(i).forEach(l=>{n[r][l]=qA(i[l],a[l])}))}else n[r]===void 0&&(n[r]=e[r])}),n}function jt(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 Mh=e=>e,WP=()=>{let e=Mh;return{configure(t){e=t},generate(t){return e(t)},reset(){e=Mh}}},UP=WP(),Im=UP,YP={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 wt(e,t,n="Mui"){const r=YP[t];return r?`${n}-${r}`:`${Im.generate(e)}-${t}`}function St(e,t,n="Mui"){const r={};return t.forEach(i=>{r[i]=wt(e,i,n)}),r}const hs="$$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 GP(e,t){const n=tP(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 KP=(e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))},_P=["values","unit","step"],qP=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)=>U({},n,{[r.key]:r.val}),{})};function JP(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5}=e,i=We(e,_P),a=qP(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,m){const I=l.indexOf(m);return`@media (min-width:${typeof t[h]=="number"?t[h]:h}${n}) and (max-width:${(I!==-1&&typeof t[l[I]]=="number"?t[l[I]]:m)-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 m=l.indexOf(h);return m===0?u(l[1]):m===l.length-1?d(l[m]):g(h,l[l.indexOf(h)+1]).replace("@media","@media not all and")}return U({keys:l,values:a,up:u,down:d,between:g,only:p,not:E,unit:n},i)}const XP={borderRadius:4},ZP=XP,$P=process.env.NODE_ENV!=="production"?c.oneOfType([c.number,c.string,c.object,c.array]):{},eo=$P;function os(e,t){return t?qn(e,t,{clone:!1}):e}const JA={xs:0,sm:600,md:900,lg:1200,xl:1536},jh={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${JA[e]}px)`};function br(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const a=r.breakpoints||jh;return t.reduce((l,u,d)=>(l[a.up(a.keys[d])]=n(t[d]),l),{})}if(typeof t=="object"){const a=r.breakpoints||jh;return Object.keys(t).reduce((l,u)=>{if(Object.keys(a.values||JA).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 eS(e={}){var t;return((t=e.keys)==null?void 0:t.reduce((r,i)=>{const a=e.up(i);return r[a]={},r},{}))||{}}function tS(e,t){return e.reduce((n,r)=>{const i=n[r];return(!i||Object.keys(i).length===0)&&delete n[r],n},t)}function Ql(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 Ja(e,t,n,r=n){let i;return typeof e=="function"?i=e(n):Array.isArray(e)?i=e[n]||r:i=Ql(e,n)||r,t&&(i=t(i,r,e)),i}function st(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=Ql(d,r)||{};return br(l,u,E=>{let h=Ja(g,i,E);return E===h&&typeof E=="string"&&(h=Ja(g,i,`${t}${E==="default"?"":be(E)}`,E)),n===!1?h:{[n]:h}})};return a.propTypes=process.env.NODE_ENV!=="production"?{[t]:eo}:{},a.filterProps=[t],a}function nS(e){const t={};return n=>(t[n]===void 0&&(t[n]=e(n)),t[n])}const rS={m:"margin",p:"padding"},oS={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},kh={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},iS=nS(e=>{if(e.length>2)if(kh[e])e=kh[e];else return[e];const[t,n]=e.split(""),r=rS[t],i=oS[n]||"";return Array.isArray(i)?i.map(a=>r+a):[r+i]}),xl=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],wl=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"],sS=[...xl,...wl];function bs(e,t,n,r){var i;const a=(i=Ql(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 KP=(e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))},_P=["values","unit","step"],qP=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)=>U({},n,{[r.key]:r.val}),{})};function JP(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5}=e,i=We(e,_P),a=qP(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,m){const I=l.indexOf(m);return`@media (min-width:${typeof t[h]=="number"?t[h]:h}${n}) and (max-width:${(I!==-1&&typeof t[l[I]]=="number"?t[l[I]]:m)-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 m=l.indexOf(h);return m===0?u(l[1]):m===l.length-1?d(l[m]):g(h,l[l.indexOf(h)+1]).replace("@media","@media not all and")}return U({keys:l,values:a,up:u,down:d,between:g,only:p,not:E,unit:n},i)}const XP={borderRadius:4},ZP=XP,$P=process.env.NODE_ENV!=="production"?c.oneOfType([c.number,c.string,c.object,c.array]):{},eo=$P;function os(e,t){return t?qn(e,t,{clone:!1}):e}const JA={xs:0,sm:600,md:900,lg:1200,xl:1536},jh={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${JA[e]}px)`};function br(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const a=r.breakpoints||jh;return t.reduce((l,u,d)=>(l[a.up(a.keys[d])]=n(t[d]),l),{})}if(typeof t=="object"){const a=r.breakpoints||jh;return Object.keys(t).reduce((l,u)=>{if(Object.keys(a.values||JA).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 eS(e={}){var t;return((t=e.keys)==null?void 0:t.reduce((r,i)=>{const a=e.up(i);return r[a]={},r},{}))||{}}function tS(e,t){return e.reduce((n,r)=>{const i=n[r];return(!i||Object.keys(i).length===0)&&delete n[r],n},t)}function Ql(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 Ja(e,t,n,r=n){let i;return typeof e=="function"?i=e(n):Array.isArray(e)?i=e[n]||r:i=Ql(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 st(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=Ql(d,r)||{};return br(l,u,E=>{let h=Ja(g,i,E);return E===h&&typeof E=="string"&&(h=Ja(g,i,`${t}${E==="default"?"":be(E)}`,E)),n===!1?h:{[n]:h}})};return a.propTypes=process.env.NODE_ENV!=="production"?{[t]:eo}:{},a.filterProps=[t],a}function nS(e){const t={};return n=>(t[n]===void 0&&(t[n]=e(n)),t[n])}const rS={m:"margin",p:"padding"},oS={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},kh={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},iS=nS(e=>{if(e.length>2)if(kh[e])e=kh[e];else return[e];const[t,n]=e.split(""),r=rS[t],i=oS[n]||"";return Array.isArray(i)?i.map(a=>r+a):[r+i]}),xl=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],wl=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"],sS=[...xl,...wl];function bs(e,t,n,r){var i;const a=(i=Ql(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 Bm(e){return bs(e,"spacing",8,"spacing")}function Qs(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 aS(e,t){return n=>e.reduce((r,i)=>(r[i]=Qs(t,n),r),{})}function lS(e,t,n,r){if(t.indexOf(n)===-1)return null;const i=iS(n),a=aS(i,r),l=e[n];return br(e,l,a)}function ym(e,t){const n=Bm(e.theme);return Object.keys(e).map(r=>lS(e,t,r,n)).reduce(os,{})}function bt(e){return ym(e,xl)}bt.propTypes=process.env.NODE_ENV!=="production"?xl.reduce((e,t)=>(e[t]=eo,e),{}):{};bt.filterProps=xl;function Qt(e){return ym(e,wl)}Qt.propTypes=process.env.NODE_ENV!=="production"?wl.reduce((e,t)=>(e[t]=eo,e),{}):{};Qt.filterProps=wl;process.env.NODE_ENV!=="production"&&sS.reduce((e,t)=>(e[t]=eo,e),{});function cS(e=8){if(e.mui)return e;const t=Bm({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 Tl(...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]?os(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 rr(e){return typeof e!="number"?e:`${e}px solid`}const uS=st({prop:"border",themeKey:"borders",transform:rr}),AS=st({prop:"borderTop",themeKey:"borders",transform:rr}),dS=st({prop:"borderRight",themeKey:"borders",transform:rr}),gS=st({prop:"borderBottom",themeKey:"borders",transform:rr}),fS=st({prop:"borderLeft",themeKey:"borders",transform:rr}),pS=st({prop:"borderColor",themeKey:"palette"}),hS=st({prop:"borderTopColor",themeKey:"palette"}),CS=st({prop:"borderRightColor",themeKey:"palette"}),ES=st({prop:"borderBottomColor",themeKey:"palette"}),mS=st({prop:"borderLeftColor",themeKey:"palette"}),Pl=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=bs(e.theme,"shape.borderRadius",4,"borderRadius"),n=r=>({borderRadius:Qs(t,r)});return br(e,e.borderRadius,n)}return null};Pl.propTypes=process.env.NODE_ENV!=="production"?{borderRadius:eo}:{};Pl.filterProps=["borderRadius"];Tl(uS,AS,dS,gS,fS,pS,hS,CS,ES,mS,Pl);const Sl=e=>{if(e.gap!==void 0&&e.gap!==null){const t=bs(e.theme,"spacing",8,"gap"),n=r=>({gap:Qs(t,r)});return br(e,e.gap,n)}return null};Sl.propTypes=process.env.NODE_ENV!=="production"?{gap:eo}:{};Sl.filterProps=["gap"];const Rl=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=bs(e.theme,"spacing",8,"columnGap"),n=r=>({columnGap:Qs(t,r)});return br(e,e.columnGap,n)}return null};Rl.propTypes=process.env.NODE_ENV!=="production"?{columnGap:eo}:{};Rl.filterProps=["columnGap"];const Ol=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=bs(e.theme,"spacing",8,"rowGap"),n=r=>({rowGap:Qs(t,r)});return br(e,e.rowGap,n)}return null};Ol.propTypes=process.env.NODE_ENV!=="production"?{rowGap:eo}:{};Ol.filterProps=["rowGap"];const IS=st({prop:"gridColumn"}),BS=st({prop:"gridRow"}),yS=st({prop:"gridAutoFlow"}),vS=st({prop:"gridAutoColumns"}),bS=st({prop:"gridAutoRows"}),QS=st({prop:"gridTemplateColumns"}),xS=st({prop:"gridTemplateRows"}),wS=st({prop:"gridTemplateAreas"}),TS=st({prop:"gridArea"});Tl(Sl,Rl,Ol,IS,BS,yS,vS,bS,QS,xS,wS,TS);function di(e,t){return t==="grey"?t:e}const PS=st({prop:"color",themeKey:"palette",transform:di}),SS=st({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:di}),RS=st({prop:"backgroundColor",themeKey:"palette",transform:di});Tl(PS,SS,RS);function bn(e){return e<=1&&e!==0?`${e*100}%`:e}const OS=st({prop:"width",transform:bn}),XA=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])||JA[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:bn(n)}};return br(e,e.maxWidth,t)}return null};XA.filterProps=["maxWidth"];const DS=st({prop:"minWidth",transform:bn}),MS=st({prop:"height",transform:bn}),jS=st({prop:"maxHeight",transform:bn}),kS=st({prop:"minHeight",transform:bn});st({prop:"size",cssProperty:"width",transform:bn});st({prop:"size",cssProperty:"height",transform:bn});const FS=st({prop:"boxSizing"});Tl(OS,XA,DS,MS,jS,kS,FS);const LS={border:{themeKey:"borders",transform:rr},borderTop:{themeKey:"borders",transform:rr},borderRight:{themeKey:"borders",transform:rr},borderBottom:{themeKey:"borders",transform:rr},borderLeft:{themeKey:"borders",transform:rr},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:Pl},color:{themeKey:"palette",transform:di},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:di},backgroundColor:{themeKey:"palette",transform:di},p:{style:Qt},pt:{style:Qt},pr:{style:Qt},pb:{style:Qt},pl:{style:Qt},px:{style:Qt},py:{style:Qt},padding:{style:Qt},paddingTop:{style:Qt},paddingRight:{style:Qt},paddingBottom:{style:Qt},paddingLeft:{style:Qt},paddingX:{style:Qt},paddingY:{style:Qt},paddingInline:{style:Qt},paddingInlineStart:{style:Qt},paddingInlineEnd:{style:Qt},paddingBlock:{style:Qt},paddingBlockStart:{style:Qt},paddingBlockEnd:{style:Qt},m:{style:bt},mt:{style:bt},mr:{style:bt},mb:{style:bt},ml:{style:bt},mx:{style:bt},my:{style:bt},margin:{style:bt},marginTop:{style:bt},marginRight:{style:bt},marginBottom:{style:bt},marginLeft:{style:bt},marginX:{style:bt},marginY:{style:bt},marginInline:{style:bt},marginInlineStart:{style:bt},marginInlineEnd:{style:bt},marginBlock:{style:bt},marginBlockStart:{style:bt},marginBlockEnd:{style:bt},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:Sl},rowGap:{style:Ol},columnGap:{style:Rl},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:bn},maxWidth:{style:XA},minWidth:{transform:bn},height:{transform:bn},maxHeight:{transform:bn},minHeight:{transform:bn},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}},Dl=LS;function NS(...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 VS(e,t){return typeof e=="function"?e(t):e}function HS(){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=Ql(i,g)||{};return E?E(l):br(l,r,I=>{let B=Ja(h,p,I);return I===B&&typeof I=="string"&&(B=Ja(h,p,`${n}${I==="default"?"":be(I)}`,I)),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:Dl;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=eS(a.breakpoints),E=Object.keys(p);let h=p;return Object.keys(g).forEach(m=>{const I=VS(g[m],a);if(I!=null)if(typeof I=="object")if(l[m])h=os(h,e(m,I,a,l));else{const B=br({theme:a},I,y=>({[m]:y}));NS(B,I)?h[m]=t({sx:I,theme:a}):h=os(h,B)}else h=os(h,e(m,I,a,l))}),tS(E,h)}return Array.isArray(i)?i.map(u):u(i)}return t}const vm=HS();vm.filterProps=["sx"];const ZA=vm,zS=["breakpoints","palette","spacing","shape"];function $A(e={},...t){const{breakpoints:n={},palette:r={},spacing:i,shape:a={}}=e,l=We(e,zS),u=JP(n),d=cS(i);let g=qn({breakpoints:u,direction:"ltr",components:{},palette:U({mode:"light"},r),spacing:d,shape:U({},ZP,a)},l);return g=t.reduce((p,E)=>qn(p,E),g),g.unstable_sxConfig=U({},Dl,l==null?void 0:l.unstable_sxConfig),g.unstable_sx=function(E){return ZA({sx:E,theme:this})},g}function WS(e){return Object.keys(e).length===0}function bm(e=null){const t=k.useContext(Wt.ThemeContext);return!t||WS(t)?e:t}const US=$A();function Qm(e=US){return bm(e)}const YS=["sx"],GS=e=>{var t,n;const r={systemProps:{},otherProps:{}},i=(t=e==null||(n=e.theme)==null?void 0:n.unstable_sxConfig)!=null?t:Dl;return Object.keys(e).forEach(a=>{i[a]?r.systemProps[a]=e[a]:r.otherProps[a]=e[a]}),r};function KS(e){const{sx:t}=e,n=We(e,YS),{systemProps:r,otherProps:i}=GS(n);let a;return Array.isArray(t)?a=[r,...t]:typeof t=="function"?a=(...l)=>{const u=t(...l);return Er(u)?U({},r,u):r}:a=U({},r,t),U({},i,{sx:a})}function xm(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=xm(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}function ze(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=xm(e))&&(r&&(r+=" "),r+=t);return r}const _S=["variant"];function Fh(e){return e.length===0}function wm(e){const{variant:t}=e,n=We(e,_S);let r=t||"";return Object.keys(n).sort().forEach(i=>{i==="color"?r+=Fh(r)?e[i]:be(e[i]):r+=`${Fh(r)?i:be(i)}${be(e[i].toString())}`}),r}const qS=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function JS(e){return Object.keys(e).length===0}function XS(e){return typeof e=="string"&&e.charCodeAt(0)>96}const ZS=(e,t)=>t.components&&t.components[e]&&t.components[e].styleOverrides?t.components[e].styleOverrides:null,Xa=e=>{const t={};return e&&e.forEach(n=>{const r=wm(n.props);t[r]=n.style}),t},$S=(e,t)=>{let n=[];return t&&t.components&&t.components[e]&&t.components[e].variants&&(n=t.components[e].variants),Xa(n)},Za=(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[wm(a.props)])}),i},e4=(e,t,n,r)=>{var i;const a=n==null||(i=n.components)==null||(i=i[r])==null?void 0:i.variants;return Za(e,t,a)};function Va(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const t4=$A(),Lh=e=>e&&e.charAt(0).toLowerCase()+e.slice(1);function Ha({defaultTheme:e,theme:t,themeId:n}){return JS(t)?e:t[n]||t}function n4(e){return e?(t,n)=>n[e]:null}const Nh=({styledArg:e,props:t,defaultTheme:n,themeId:r})=>{const i=e(U({},t,{theme:Ha(U({},t,{defaultTheme:n,themeId:r}))}));let a;if(i&&i.variants&&(a=i.variants,delete i.variants),a){const l=Za(t,Xa(a),a);return[i,...l]}return i};function Tm(e={}){const{themeId:t,defaultTheme:n=t4,rootShouldForwardProp:r=Va,slotShouldForwardProp:i=Va}=e,a=l=>ZA(U({},l,{theme:Ha(U({},l,{defaultTheme:n,themeId:t}))}));return a.__mui_systemSx=!0,(l,u={})=>{KP(l,T=>T.filter(P=>!(P!=null&&P.__mui_systemSx)));const{name:d,slot:g,skipVariantsResolver:p,skipSx:E,overridesResolver:h=n4(Lh(g))}=u,m=We(u,qS),I=p!==void 0?p:g&&g!=="Root"&&g!=="root"||!1,B=E||!1;let y;process.env.NODE_ENV!=="production"&&d&&(y=`${d}-${Lh(g||"Root")}`);let O=Va;g==="Root"||g==="root"?O=r:g?O=i:XS(l)&&(O=void 0);const M=GP(l,U({shouldForwardProp:O,label:y},m)),w=(T,...P)=>{const H=P?P.map(G=>{if(typeof G=="function"&&G.__emotion_real!==G)return ee=>Nh({styledArg:G,props:ee,defaultTheme:n,themeId:t});if(Er(G)){let ee=G,le;return G&&G.variants&&(le=G.variants,delete ee.variants,ee=de=>{let _=G;return Za(de,Xa(le),le).forEach(Y=>{_=qn(_,Y)}),_}),ee}return G}):[];let F=T;if(Er(T)){let G;T&&T.variants&&(G=T.variants,delete F.variants,F=ee=>{let le=T;return Za(ee,Xa(G),G).forEach(_=>{le=qn(le,_)}),le})}else typeof T=="function"&&T.__emotion_real!==T&&(F=G=>Nh({styledArg:T,props:G,defaultTheme:n,themeId:t}));d&&h&&H.push(G=>{const ee=Ha(U({},G,{defaultTheme:n,themeId:t})),le=ZS(d,ee);if(le){const de={};return Object.entries(le).forEach(([_,q])=>{de[_]=typeof q=="function"?q(U({},G,{theme:ee})):q}),h(G,de)}return null}),d&&!I&&H.push(G=>{const ee=Ha(U({},G,{defaultTheme:n,themeId:t}));return e4(G,$S(d,ee),ee,d)}),B||H.push(a);const K=H.length-P.length;if(Array.isArray(T)&&K>0){const G=new Array(K).fill("");F=[...T,...G],F.raw=[...T.raw,...G]}const Z=M(F,...H);if(process.env.NODE_ENV!=="production"){let G;d&&(G=`${d}${be(g||"")}`),G===void 0&&(G=`Styled(${vP(l)})`),Z.displayName=G}return l.muiName&&(Z.muiName=l.muiName),Z};return M.withConfig&&(w.withConfig=M.withConfig),w}}const r4=Tm(),yi=r4;function o4(e){const{theme:t,name:n,props:r}=e;return!t||!t.components||!t.components[n]||!t.components[n].defaultProps?r:qA(t.components[n].defaultProps,r)}function i4({props:e,name:t,defaultTheme:n,themeId:r}){let i=Qm(n);return r&&(i=i[r]||i),o4({theme:i,name:t,props:e})}function ed(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 s4(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 Po(e){if(e.type)return e;if(e.charAt(0)==="#")return Po(s4(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
|
`),Fn.rippleVisible,$R,IA,({theme:e})=>e.transitions.easing.easeInOut,Fn.ripplePulsate,({theme:e})=>e.transitions.duration.shorter,Fn.child,Fn.childLeaving,eO,IA,({theme:e})=>e.transitions.easing.easeInOut,Fn.childPulsate,tO,({theme:e})=>e.transitions.easing.easeInOut),Km=k.forwardRef(function(t,n){const r=Rt({props:t,name:"MuiTouchRipple"}),{center:i=!1,classes:a={},className:l}=r,u=We(r,XR),[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),m=k.useRef(0),I=k.useRef(null),B=k.useRef(null);k.useEffect(()=>()=>{m.current&&clearTimeout(m.current)},[]);const y=k.useCallback(T=>{const{pulsate:P,rippleX:H,rippleY:F,rippleSize:K,cb:Z}=T;g(G=>[...G,f.jsx(rO,{classes:{ripple:ze(a.ripple,Fn.ripple),rippleVisible:ze(a.rippleVisible,Fn.rippleVisible),ripplePulsate:ze(a.ripplePulsate,Fn.ripplePulsate),child:ze(a.child,Fn.child),childLeaving:ze(a.childLeaving,Fn.childLeaving),childPulsate:ze(a.childPulsate,Fn.childPulsate)},timeout:IA,pulsate:P,rippleX:H,rippleY:F,rippleSize:K},p.current)]),p.current+=1,E.current=Z},[a]),O=k.useCallback((T={},P={},H=()=>{})=>{const{pulsate:F=!1,center:K=i||P.pulsate,fakeElement:Z=!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 G=Z?null:B.current,ee=G?G.getBoundingClientRect():{width:0,height:0,left:0,top:0};let le,de,_;if(K||T===void 0||T.clientX===0&&T.clientY===0||!T.clientX&&!T.touches)le=Math.round(ee.width/2),de=Math.round(ee.height/2);else{const{clientX:q,clientY:Y}=T.touches&&T.touches.length>0?T.touches[0]:T;le=Math.round(q-ee.left),de=Math.round(Y-ee.top)}if(K)_=Math.sqrt((2*ee.width**2+ee.height**2)/3),_%2===0&&(_+=1);else{const q=Math.max(Math.abs((G?G.clientWidth:0)-le),le)*2+2,Y=Math.max(Math.abs((G?G.clientHeight:0)-de),de)*2+2;_=Math.sqrt(q**2+Y**2)}T!=null&&T.touches?I.current===null&&(I.current=()=>{y({pulsate:F,rippleX:le,rippleY:de,rippleSize:_,cb:H})},m.current=setTimeout(()=>{I.current&&(I.current(),I.current=null)},ZR)):y({pulsate:F,rippleX:le,rippleY:de,rippleSize:_,cb:H})},[i,y]),M=k.useCallback(()=>{O({},{pulsate:!0})},[O]),w=k.useCallback((T,P)=>{if(clearTimeout(m.current),(T==null?void 0:T.type)==="touchend"&&I.current){I.current(),I.current=null,m.current=setTimeout(()=>{w(T,P)});return}I.current=null,g(H=>H.length>0?H.slice(1):H),E.current=P},[]);return k.useImperativeHandle(n,()=>({pulsate:M,start:O,stop:w}),[M,O,w]),f.jsx(nO,U({className:ze(Fn.root,a.root,l),ref:B},u,{children:f.jsx(qR,{component:null,exit:!0,children:d})}))});process.env.NODE_ENV!=="production"&&(Km.propTypes={center:c.bool,classes:c.object,className:c.string});const oO=Km;function iO(e){return wt("MuiButtonBase",e)}const sO=St("MuiButtonBase",["root","disabled","focusVisible"]),aO=sO,lO=["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"],cO=e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:i}=e,l=jt({root:["root",t&&"disabled",n&&"focusVisible"]},iO,i);return n&&r&&(l.root+=` ${r}`),l},uO=ce("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"},[`&.${aO.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),_m=k.forwardRef(function(t,n){const r=Rt({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:m="a",onBlur:I,onClick:B,onContextMenu:y,onDragLeave:O,onFocus:M,onFocusVisible:w,onKeyDown:T,onKeyUp:P,onMouseDown:H,onMouseLeave:F,onMouseUp:K,onTouchEnd:Z,onTouchMove:G,onTouchStart:ee,tabIndex:le=0,TouchRippleProps:de,touchRippleRef:_,type:q}=r,Y=We(r,lO),X=k.useRef(null),z=k.useRef(null),ne=vr(z,_),{isFocusVisibleRef:W,onFocus:N,onBlur:ae,ref:fe}=Cm(),[ue,ge]=k.useState(!1);g&&ue&&ge(!1),k.useImperativeHandle(i,()=>({focusVisible:()=>{ge(!0),X.current.focus()}}),[]);const[pe,Ie]=k.useState(!1);k.useEffect(()=>{Ie(!0)},[]);const Be=pe&&!p&&!g;k.useEffect(()=>{ue&&h&&!p&&pe&&z.current.pulsate()},[p,h,ue,pe]);function Ce(xe,Gt,Ye=E){return Qo(we=>(Gt&&Gt(we),!Ye&&z.current&&z.current[xe](we),!0))}const Ae=Ce("start",H),ye=Ce("stop",y),ie=Ce("stop",O),Fe=Ce("stop",K),$=Ce("stop",xe=>{ue&&xe.preventDefault(),F&&F(xe)}),Ot=Ce("start",ee),Yt=Ce("stop",Z),It=Ce("stop",G),Pr=Ce("stop",xe=>{ae(xe),W.current===!1&&ge(!1),I&&I(xe)},!1),Ri=Qo(xe=>{X.current||(X.current=xe.currentTarget),N(xe),W.current===!0&&(ge(!0),w&&w(xe)),M&&M(xe)}),wn=()=>{const xe=X.current;return d&&d!=="button"&&!(xe.tagName==="A"&&xe.href)},Nt=k.useRef(!1),kt=Qo(xe=>{h&&!Nt.current&&ue&&z.current&&xe.key===" "&&(Nt.current=!0,z.current.stop(xe,()=>{z.current.start(xe)})),xe.target===xe.currentTarget&&wn()&&xe.key===" "&&xe.preventDefault(),T&&T(xe),xe.target===xe.currentTarget&&wn()&&xe.key==="Enter"&&!g&&(xe.preventDefault(),B&&B(xe))}),fn=Qo(xe=>{h&&xe.key===" "&&z.current&&ue&&!xe.defaultPrevented&&(Nt.current=!1,z.current.stop(xe,()=>{z.current.pulsate(xe)})),P&&P(xe),B&&xe.target===xe.currentTarget&&wn()&&xe.key===" "&&!xe.defaultPrevented&&B(xe)});let Wn=d;Wn==="button"&&(Y.href||Y.to)&&(Wn=m);const De={};Wn==="button"?(De.type=q===void 0?"button":q,De.disabled=g):(!Y.href&&!Y.to&&(De.role="button"),g&&(De["aria-disabled"]=g));const qe=vr(n,fe,X);process.env.NODE_ENV!=="production"&&k.useEffect(()=>{Be&&!z.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
|
`))},[Be]);const Te=U({},r,{centerRipple:a,component:d,disabled:g,disableRipple:p,disableTouchRipple:E,focusRipple:h,tabIndex:le,focusVisible:ue}),Ke=cO(Te);return f.jsxs(uO,U({as:Wn,className:ze(Ke.root,u),ownerState:Te,onBlur:Pr,onClick:B,onContextMenu:ye,onFocus:Ri,onKeyDown:kt,onKeyUp:fn,onMouseDown:Ae,onMouseLeave:$,onMouseUp:Fe,onDragLeave:ie,onTouchEnd:Yt,onTouchMove:It,onTouchStart:Ot,ref:qe,tabIndex:g?-1:le,type:q},De,Y,{children:[l,Be?f.jsx(oO,U({ref:ne,center:a},de)):null]}))});process.env.NODE_ENV!=="production"&&(_m.propTypes={action:QP,centerRipple:c.bool,children:c.node,classes:c.object,className:c.string,component:CP,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 Cd=_m,AO=["slots","slotProps"],dO=ce(Cd)(({theme:e})=>U({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":U({},e.palette.mode==="light"?{backgroundColor:e.palette.grey[200]}:{backgroundColor:e.palette.grey[600]}),"&:active":U({boxShadow:e.shadows[0]},e.palette.mode==="light"?{backgroundColor:Hh(e.palette.grey[200],.12)}:{backgroundColor:Hh(e.palette.grey[600],.12)})})),gO=ce(VR)({width:24,height:16});function qm(e){const{slots:t={},slotProps:n={}}=e,r=We(e,AO),i=e;return f.jsx("li",{children:f.jsx(dO,U({focusRipple:!0},r,{ownerState:i,children:f.jsx(gO,U({as:t.CollapsedIcon,ownerState:i},n.collapsedIcon))}))})}process.env.NODE_ENV!=="production"&&(qm.propTypes={slotProps:c.shape({collapsedIcon:c.oneOfType([c.func,c.object])}),slots:c.shape({CollapsedIcon:c.elementType}),sx:c.object});function fO(e){return wt("MuiBreadcrumbs",e)}const pO=St("MuiBreadcrumbs",["root","ol","li","separator"]),hO=pO,CO=["children","className","component","slots","slotProps","expandText","itemsAfterCollapse","itemsBeforeCollapse","maxItems","separator"],EO=e=>{const{classes:t}=e;return jt({root:["root"],li:["li"],ol:["ol"],separator:["separator"]},fO,t)},mO=ce(dd,{name:"MuiBreadcrumbs",slot:"Root",overridesResolver:(e,t)=>[{[`& .${hO.li}`]:t.li},t.root]})({}),IO=ce("ol",{name:"MuiBreadcrumbs",slot:"Ol",overridesResolver:(e,t)=>t.ol})({display:"flex",flexWrap:"wrap",alignItems:"center",padding:0,margin:0,listStyle:"none"}),BO=ce("li",{name:"MuiBreadcrumbs",slot:"Separator",overridesResolver:(e,t)=>t.separator})({display:"flex",userSelect:"none",marginLeft:8,marginRight:8});function yO(e,t,n,r){return e.reduce((i,a,l)=>(l<e.length-1?i=i.concat(a,f.jsx(BO,{"aria-hidden":!0,className:t,ownerState:r,children:n},`separator-${l}`)):i.push(a),i),[])}const Jm=k.forwardRef(function(t,n){const r=Rt({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:m="/"}=r,I=We(r,CO),[B,y]=k.useState(!1),O=U({},r,{component:l,expanded:B,expandText:g,itemsAfterCollapse:p,itemsBeforeCollapse:E,maxItems:h,separator:m}),M=EO(O),w=CA({elementType:u.CollapsedIcon,externalSlotProps:d.collapsedIcon,ownerState:O}),T=k.useRef(null),P=F=>{const K=()=>{y(!0);const Z=T.current.querySelector("a[href],button,[tabindex]");Z&&Z.focus()};return E+p>=F.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
|
`)),F):[...F.slice(0,E),f.jsx(qm,{"aria-label":g,slots:{CollapsedIcon:u.CollapsedIcon},slotProps:{collapsedIcon:w},onClick:K},"ellipsis"),...F.slice(F.length-p,F.length)]},H=k.Children.toArray(i).filter(F=>(process.env.NODE_ENV!=="production"&&lR.isFragment(F)&&console.error(["MUI: The Breadcrumbs component doesn't accept a Fragment as a child.","Consider providing an array instead."].join(`
|
|
189
|
-
`)),k.isValidElement(F))).map((F,K)=>f.jsx("li",{className:M.li,children:F},`child-${K}`));return f.jsx(mO,U({ref:n,component:l,color:"text.secondary",className:ze(M.root,a),ownerState:O},I,{children:f.jsx(IO,{className:M.ol,ref:T,ownerState:O,children:yO(B||h&&H.length<=h?H:P(H),M.separator,m,O)})}))});process.env.NODE_ENV!=="production"&&(Jm.propTypes={children:c.node,classes:c.object,className:c.string,component:c.elementType,expandText:c.string,itemsAfterCollapse:rs,itemsBeforeCollapse:rs,maxItems:rs,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 ju=Jm,vO=({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)},Ll=({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:m,...I})=>{const B=ut(),y=gt.useLocation(),[O,M]=S.useState(),[w,T]=S.useState();let P=y.pathname;const H={marginRight:B.spacing(.75),marginTop:`-${B.spacing(.25)}`,width:"1rem",height:"1rem",color:B.palette.secondary.main},F=X=>{X.children&&X.children.filter(z=>(z.type&&z.type==="collapse"?(F(z),z.url===P&&(M(z),T(z))):z.type&&z.type==="item"&&P.includes(z.url)&&(M(X),T(z)),!1))};S.useEffect(()=>{var X;(X=l==null?void 0:l.items)==null||X.map(z=>(z.type&&z.type==="group"&&F(z),!1))});const K=d,Z=d?f.jsx(K,{style:{fontSize:"0.75rem",marginTop:2}}):"/",G={mb:2,bgcolor:t===!1?"transparent":"inherit",...E,[B.breakpoints.down("sm")]:{mb:1}};let ee,le,de=f.jsx(Q.Typography,{}),_="",q,Y;return m==="breadcrumbs"?f.jsxs(Nn,{border:t,sx:G,...I,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(ju,{"aria-label":"breadcrumb",maxItems:a||8,separator:Z,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:H}),r&&!i&&f.jsx(ct.HomeFilled,{style:{...H,marginRight:0}}),(!r||i)&&e]}),h.map(vO)]})}),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}})]}):(O&&O.type==="collapse"&&O.breadcrumbs===!0&&(q=O.icon?O.icon:ct.ApartmentOutlined,ee=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(q,{style:H}),O.title]}),de=f.jsxs(Nn,{border:t,sx:G,...I,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(ju,{"aria-label":"breadcrumb",maxItems:a||8,separator:Z,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:H}),r&&!i&&f.jsx(ct.HomeFilled,{style:{...H,marginRight:0}}),(!r||i)&&e]}),ee]})}),g&&p&&f.jsx(Q.Grid,{item:!0,sx:{mt:t===!1?.25:1},children:f.jsx(Q.Typography,{variant:"h2",children:O.title})})]}),t===!1&&n!==!1&&f.jsx(Q.Divider,{sx:{mt:2}})]})),w&&w.type==="item"&&(_=w.title,Y=w.icon?w.icon:ct.ApartmentOutlined,le=f.jsxs(Q.Typography,{variant:"subtitle1",color:"textPrimary",component:gt.Link,to:w.url,sx:{textDecoration:"none"},children:[i&&f.jsx(Y,{style:H}),_]}),w.breadcrumbs!==!1&&(de=f.jsxs(Nn,{border:t,sx:{mb:3,bgcolor:t===!1?"transparent":"inherit",...E,[B.breakpoints.down("sm")]:{mb:1}},...I,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(ju,{"aria-label":"breadcrumb",maxItems:a||8,separator:Z,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:H}),r&&!i&&f.jsx(ct.HomeFilled,{style:{...H,marginRight:0}}),(!r||i)&&e]}),ee,le]})}),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}})]}))),de)};Ll.defaultProps={home:"Home",mode:"navigation"};Ll.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(Ci),mode:c.oneOf(["navigation","breadcrumbs"])};const bO=yi(R.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)}})),Tr=e=>f.jsx(bO,{...e});Tr.defaultProps={...R.Toolbar.defaultProps};Tr.propTypes={...R.Toolbar.propTypes};const Ed=({children:e,content:t,title:n,subheader:r,secondary:i,toolbar:a,...l})=>{const u=R.useTranslate(),d=R.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(Nn,{content:t,title:g,subheader:p,secondary:i,divider:!0,children:f.jsxs(S.Fragment,{children:[e,a===!0?f.jsx(Tr,{children:f.jsx(R.SaveButton,{})}):a]})})})};Ed.defaultProps={...Q.Grid.defaultProps,content:!0,subheader:null,title:null,secondary:null,toolbar:!1,item:!0,lg:12,md:12,sm:12,xs:12};Ed.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 QO=ce(R.Form,{name:"RaApplicaCardForm",slot:"root"})(({theme:e,spacing:t})=>({backgroundColor:"transparent","& .RaToolbar-desktopToolbar":{marginTop:e.spacing(t*2),padding:0}})),Nl=({children:e,spacing:t,defaultValues:n,...r})=>{const{spacing:i}=Ut();return f.jsx(QO,{defaultValues:n,spacing:t||i,children:f.jsx(Q.Grid,{container:!0,...r,spacing:t||i,children:e})})};Nl.propTypes={...Q.Grid.propTypes,...R.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};Nl.defaultProps={...Q.Stack.defaultProps};Nl.Section=Ed;var Xm={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})(Xm);var to=Xm.exports,ku={};const xO={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(F))).map((F,K)=>f.jsx("li",{className:M.li,children:F},`child-${K}`));return f.jsx(mO,U({ref:n,component:l,color:"text.secondary",className:ze(M.root,a),ownerState:O},I,{children:f.jsx(IO,{className:M.ol,ref:T,ownerState:O,children:yO(B||h&&H.length<=h?H:P(H),M.separator,m,O)})}))});process.env.NODE_ENV!=="production"&&(Jm.propTypes={children:c.node,classes:c.object,className:c.string,component:c.elementType,expandText:c.string,itemsAfterCollapse:rs,itemsBeforeCollapse:rs,maxItems:rs,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 ju=Jm,vO=({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)},Ll=({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:m,...I})=>{const B=ut(),y=gt.useLocation(),[O,M]=S.useState(),[w,T]=S.useState();let P=y.pathname;const H={marginRight:B.spacing(.75),marginTop:`-${B.spacing(.25)}`,width:"1rem",height:"1rem",color:B.palette.secondary.main},F=X=>{X.children&&X.children.filter(z=>(z.type&&z.type==="collapse"?(F(z),z.url===P&&(M(z),T(z))):z.type&&z.type==="item"&&P.includes(z.url)&&(M(X),T(z)),!1))};S.useEffect(()=>{var X;(X=l==null?void 0:l.items)==null||X.map(z=>(z.type&&z.type==="group"&&F(z),!1))});const K=d,Z=d?f.jsx(K,{style:{fontSize:"0.75rem",marginTop:2}}):"/",G={mb:2,bgcolor:t===!1?"transparent":"inherit",...E,[B.breakpoints.down("sm")]:{mb:1}};let ee,le,de=f.jsx(Q.Typography,{}),_="",q,Y;return m==="breadcrumbs"?f.jsxs(Nn,{border:t,sx:G,...I,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(ju,{"aria-label":"breadcrumb",maxItems:a||8,separator:Z,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:H}),r&&!i&&f.jsx(ct.HomeFilled,{style:{...H,marginRight:0}}),(!r||i)&&e]}),h.map(vO)]})}),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}})]}):(O&&O.type==="collapse"&&O.breadcrumbs===!0&&(q=O.icon?O.icon:ct.ApartmentOutlined,ee=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(q,{style:H}),O.title]}),de=f.jsxs(Nn,{border:t,sx:G,...I,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(ju,{"aria-label":"breadcrumb",maxItems:a||8,separator:Z,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:H}),r&&!i&&f.jsx(ct.HomeFilled,{style:{...H,marginRight:0}}),(!r||i)&&e]}),ee]})}),g&&p&&f.jsx(Q.Grid,{item:!0,sx:{mt:t===!1?.25:1},children:f.jsx(Q.Typography,{variant:"h2",children:O.title})})]}),t===!1&&n!==!1&&f.jsx(Q.Divider,{sx:{mt:2}})]})),w&&w.type==="item"&&(_=w.title,Y=w.icon?w.icon:ct.ApartmentOutlined,le=f.jsxs(Q.Typography,{variant:"subtitle1",color:"textPrimary",component:gt.Link,to:w.url,sx:{textDecoration:"none"},children:[i&&f.jsx(Y,{style:H}),_]}),w.breadcrumbs!==!1&&(de=f.jsxs(Nn,{border:t,sx:{mb:3,bgcolor:t===!1?"transparent":"inherit",...E,[B.breakpoints.down("sm")]:{mb:1}},...I,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(ju,{"aria-label":"breadcrumb",maxItems:a||8,separator:Z,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:H}),r&&!i&&f.jsx(ct.HomeFilled,{style:{...H,marginRight:0}}),(!r||i)&&e]}),ee,le]})}),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}})]}))),de)};Ll.defaultProps={home:"Home",mode:"navigation"};Ll.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(Ci),mode:c.oneOf(["navigation","breadcrumbs"])};const bO=yi(R.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)}})),Tr=e=>f.jsx(bO,{...e});Tr.defaultProps={...R.Toolbar.defaultProps};Tr.propTypes={...R.Toolbar.propTypes};const Ed=({children:e,content:t,title:n,subheader:r,secondary:i,toolbar:a,...l})=>{const u=R.useTranslate(),d=R.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(Nn,{content:t,title:g,subheader:p,secondary:i,divider:!0,children:f.jsxs(S.Fragment,{children:[e,a===!0?f.jsx(Tr,{children:f.jsx(R.SaveButton,{})}):a]})})})};Ed.defaultProps={...Q.Grid.defaultProps,content:!0,subheader:null,title:null,secondary:null,toolbar:!1,item:!0,lg:12,md:12,sm:12,xs:12};Ed.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 QO=ce(R.Form,{name:"RaApplicaCardForm",slot:"root"})(({theme:e,spacing:t})=>({backgroundColor:"transparent","& .RaToolbar-desktopToolbar":{marginTop:e.spacing(t*2),padding:0}})),Nl=({children:e,spacing:t,defaultValues:n,...r})=>{const{spacing:i}=Ut();return f.jsx(QO,{defaultValues:n,spacing:t||i,children:f.jsx(Q.Grid,{container:!0,...r,spacing:t||i,children:e})})};Nl.propTypes={...Q.Grid.propTypes,...R.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};Nl.defaultProps={...Q.Stack.defaultProps};Nl.Section=Ed;var Xm={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})(Xm);var to=Xm.exports,ku={};const xO={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
|
`)),Im.configure(e)}},wO=Object.freeze(Object.defineProperty({__proto__:null,capitalize:be,createChainedFunction:AA,createSvgIcon:fd,debounce:hm,deprecatedPropType:xP,isMuiElement:wP,ownerDocument:Ir,ownerWindow:Bi,requirePropFactory:TP,setRef:_a,unstable_ClassNameGenerator:xO,unstable_useEnhancedEffect:qa,unstable_useId:_A,unsupportedProp:RP,useControlled:OP,useEventCallback:Qo,useForkRef:vr,useIsFocusVisible:Cm},Symbol.toStringTag,{value:"Module"})),TO=oP(wO);var uC;function no(){return uC||(uC=1,function(e){"use client";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.createSvgIcon}});var t=TO}(ku)),ku}function Zm(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=Zm(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}function gi(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=Zm(e))&&(r&&(r+=" "),r+=t);return r}function PO(){this.__data__=[],this.size=0}var SO=PO;function RO(e,t){return e===t||e!==e&&t!==t}var OO=RO,DO=OO;function MO(e,t){for(var n=e.length;n--;)if(DO(e[n][0],t))return n;return-1}var Vl=MO,jO=Vl,kO=Array.prototype,FO=kO.splice;function LO(e){var t=this.__data__,n=jO(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():FO.call(t,n,1),--this.size,!0}var NO=LO,VO=Vl;function HO(e){var t=this.__data__,n=VO(t,e);return n<0?void 0:t[n][1]}var zO=HO,WO=Vl;function UO(e){return WO(this.__data__,e)>-1}var YO=UO,GO=Vl;function KO(e,t){var n=this.__data__,r=GO(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}var _O=KO,qO=SO,JO=NO,XO=zO,ZO=YO,$O=_O;function vi(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])}}vi.prototype.clear=qO;vi.prototype.delete=JO;vi.prototype.get=XO;vi.prototype.has=ZO;vi.prototype.set=$O;var e3=vi,t3=typeof Ln=="object"&&Ln&&Ln.Object===Object&&Ln,n3=t3,r3=n3,o3=typeof self=="object"&&self&&self.Object===Object&&self,i3=r3||o3||Function("return this")(),md=i3,s3=md,a3=s3.Symbol,Id=a3,AC=Id,$m=Object.prototype,l3=$m.hasOwnProperty,c3=$m.toString,qi=AC?AC.toStringTag:void 0;function u3(e){var t=l3.call(e,qi),n=e[qi];try{e[qi]=void 0;var r=!0}catch{}var i=c3.call(e);return r&&(t?e[qi]=n:delete e[qi]),i}var A3=u3,d3=Object.prototype,g3=d3.toString;function f3(e){return g3.call(e)}var p3=f3,dC=Id,h3=A3,C3=p3,E3="[object Null]",m3="[object Undefined]",gC=dC?dC.toStringTag:void 0;function I3(e){return e==null?e===void 0?m3:E3:gC&&gC in Object(e)?h3(e):C3(e)}var e0=I3;function B3(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var t0=B3,y3=e0,v3=t0,b3="[object AsyncFunction]",Q3="[object Function]",x3="[object GeneratorFunction]",w3="[object Proxy]";function T3(e){if(!v3(e))return!1;var t=y3(e);return t==Q3||t==x3||t==b3||t==w3}var P3=T3,S3=md,R3=S3["__core-js_shared__"],O3=R3,Fu=O3,fC=function(){var e=/[^.]+$/.exec(Fu&&Fu.keys&&Fu.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function D3(e){return!!fC&&fC in e}var M3=D3,j3=Function.prototype,k3=j3.toString;function F3(e){if(e!=null){try{return k3.call(e)}catch{}try{return e+""}catch{}}return""}var L3=F3,N3=P3,V3=M3,H3=t0,z3=L3,W3=/[\\^$.*+?()[\]{}|]/g,U3=/^\[object .+?Constructor\]$/,Y3=Function.prototype,G3=Object.prototype,K3=Y3.toString,_3=G3.hasOwnProperty,q3=RegExp("^"+K3.call(_3).replace(W3,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function J3(e){if(!H3(e)||V3(e))return!1;var t=N3(e)?q3:U3;return t.test(z3(e))}var X3=J3;function Z3(e,t){return e==null?void 0:e[t]}var $3=Z3,eD=X3,tD=$3;function nD(e,t){var n=tD(e,t);return eD(n)?n:void 0}var n0=nD,rD=n0,oD=md,iD=rD(oD,"Map"),sD=iD,aD=n0,lD=aD(Object,"create"),Hl=lD,pC=Hl;function cD(){this.__data__=pC?pC(null):{},this.size=0}var uD=cD;function AD(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var dD=AD,gD=Hl,fD="__lodash_hash_undefined__",pD=Object.prototype,hD=pD.hasOwnProperty;function CD(e){var t=this.__data__;if(gD){var n=t[e];return n===fD?void 0:n}return hD.call(t,e)?t[e]:void 0}var ED=CD,mD=Hl,ID=Object.prototype,BD=ID.hasOwnProperty;function yD(e){var t=this.__data__;return mD?t[e]!==void 0:BD.call(t,e)}var vD=yD,bD=Hl,QD="__lodash_hash_undefined__";function xD(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=bD&&t===void 0?QD:t,this}var wD=xD,TD=uD,PD=dD,SD=ED,RD=vD,OD=wD;function bi(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])}}bi.prototype.clear=TD;bi.prototype.delete=PD;bi.prototype.get=SD;bi.prototype.has=RD;bi.prototype.set=OD;var DD=bi,hC=DD,MD=e3,jD=sD;function kD(){this.size=0,this.__data__={hash:new hC,map:new(jD||MD),string:new hC}}var FD=kD;function LD(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}var ND=LD,VD=ND;function HD(e,t){var n=e.__data__;return VD(t)?n[typeof t=="string"?"string":"hash"]:n.map}var zl=HD,zD=zl;function WD(e){var t=zD(this,e).delete(e);return this.size-=t?1:0,t}var UD=WD,YD=zl;function GD(e){return YD(this,e).get(e)}var KD=GD,_D=zl;function qD(e){return _D(this,e).has(e)}var JD=qD,XD=zl;function ZD(e,t){var n=XD(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}var $D=ZD,eM=FD,tM=UD,nM=KD,rM=JD,oM=$D;function Qi(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])}}Qi.prototype.clear=eM;Qi.prototype.delete=tM;Qi.prototype.get=nM;Qi.prototype.has=rM;Qi.prototype.set=oM;var iM=Qi,sM=Array.isArray,Bd=sM;function aM(e){return e!=null&&typeof e=="object"}var lM=aM;function cM(e){return wt("MuiCircularProgress",e)}St("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);const uM=["className","color","disableShrink","size","style","thickness","value","variant"];let Wl=e=>e,CC,EC,mC,IC;const Nr=44,AM=Wt.keyframes(CC||(CC=Wl`
|
|
191
191
|
0% {
|
|
192
192
|
transform: rotate(0deg);
|