@applica-software-guru/react-admin 1.4.210 → 1.4.211
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/ActionsMenu.d.ts.map +1 -1
- package/dist/react-admin.cjs.js +1 -1
- package/dist/react-admin.cjs.js.map +1 -1
- package/dist/react-admin.es.js +1 -1
- package/dist/react-admin.es.js.map +1 -1
- package/dist/react-admin.umd.js +1 -1
- package/dist/react-admin.umd.js.map +1 -1
- package/package.json +1 -1
- package/src/components/ActionsMenu.tsx +0 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ActionsMenu.d.ts","sourceRoot":"","sources":["../../../src/components/ActionsMenu.tsx"],"names":[],"mappings":"AAGA,OAAO,KAA0C,MAAM,OAAO,CAAC;AAsB/D,MAAM,MAAM,gBAAgB,GAAG;IAC7B,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB,CAAC;AAEF;;;;;;;;;GASG;AACH,wBAAgB,WAAW,CAAC,EAAE,UAAkB,EAAE,QAAQ,EAAE,EAAE,gBAAgB,GAAG,KAAK,CAAC,YAAY,GAAG,IAAI,
|
|
1
|
+
{"version":3,"file":"ActionsMenu.d.ts","sourceRoot":"","sources":["../../../src/components/ActionsMenu.tsx"],"names":[],"mappings":"AAGA,OAAO,KAA0C,MAAM,OAAO,CAAC;AAsB/D,MAAM,MAAM,gBAAgB,GAAG;IAC7B,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB,CAAC;AAEF;;;;;;;;;GASG;AACH,wBAAgB,WAAW,CAAC,EAAE,UAAkB,EAAE,QAAQ,EAAE,EAAE,gBAAgB,GAAG,KAAK,CAAC,YAAY,GAAG,IAAI,CAqDzG;AAED,eAAe,WAAW,CAAC"}
|
package/dist/react-admin.cjs.js
CHANGED
|
@@ -67,7 +67,7 @@ const theme2 = createTheme({ palette: {
|
|
|
67
67
|
primary: { main: green[500] },
|
|
68
68
|
} });`:Cs(12,v?` (${v})`:"",JSON.stringify(B.main)));return Ym(B,"light",O,r),Ym(B,"dark",x,r),B.contrastText||(B.contrastText=h(B.main)),B},m={dark:Od,light:Um};return process.env.NODE_ENV!=="production"&&(m[t]||console.error(`MUI: The palette mode \`${t}\` is not supported.`)),Zr(z({common:z({},Oa),mode:t,primary:C({color:s,name:"primary"}),secondary:C({color:a,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:C({color:c,name:"error"}),warning:C({color:p,name:"warning"}),info:C({color:u,name:"info"}),success:C({color:A,name:"success"}),grey:Pj,contrastThreshold:n,getContrastText:h,augmentColor:C,tonalOffset:r},m[t]),o)}const Yj=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];function Gj(e){return Math.round(e*1e5)/1e5}const Gm={textTransform:"uppercase"},Km='"Roboto", "Helvetica", "Arial", sans-serif';function Kj(e,t){const n=typeof t=="function"?t(e):t,{fontFamily:r=Km,fontSize:o=14,fontWeightLight:s=300,fontWeightRegular:a=400,fontWeightMedium:c=500,fontWeightBold:u=700,htmlFontSize:A=16,allVariants:p,pxToRem:h}=n,C=Ne(n,Yj);process.env.NODE_ENV!=="production"&&(typeof o!="number"&&console.error("MUI: `fontSize` is required to be a number."),typeof A!="number"&&console.error("MUI: `htmlFontSize` is required to be a number."));const m=o/14,I=h||(P=>`${P/A*m}rem`),B=(P,O,x,R,S)=>z({fontFamily:r,fontWeight:P,fontSize:I(O),lineHeight:x},r===Km?{letterSpacing:`${Gj(R/O)}em`}:{},S,p),v={h1:B(s,96,1.167,-1.5),h2:B(s,60,1.2,-.5),h3:B(a,48,1.167,0),h4:B(a,34,1.235,.25),h5:B(a,24,1.334,0),h6:B(c,20,1.6,.15),subtitle1:B(a,16,1.75,.15),subtitle2:B(c,14,1.57,.1),body1:B(a,16,1.5,.15),body2:B(a,14,1.43,.15),button:B(c,14,1.75,.4,Gm),caption:B(a,12,1.66,.4),overline:B(a,12,2.66,1,Gm),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return Zr(z({htmlFontSize:A,pxToRem:I,fontFamily:r,fontSize:o,fontWeightLight:s,fontWeightRegular:a,fontWeightMedium:c,fontWeightBold:u},v),C,{clone:!1})}const qj=.2,Jj=.14,Xj=.12;function Bt(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${qj})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${Jj})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${Xj})`].join(",")}const Zj=["none",Bt(0,2,1,-1,0,1,1,0,0,1,3,0),Bt(0,3,1,-2,0,2,2,0,0,1,5,0),Bt(0,3,3,-2,0,3,4,0,0,1,8,0),Bt(0,2,4,-1,0,4,5,0,0,1,10,0),Bt(0,3,5,-1,0,5,8,0,0,1,14,0),Bt(0,3,5,-1,0,6,10,0,0,1,18,0),Bt(0,4,5,-2,0,7,10,1,0,2,16,1),Bt(0,5,5,-3,0,8,10,1,0,3,14,2),Bt(0,5,6,-3,0,9,12,1,0,3,16,2),Bt(0,6,6,-3,0,10,14,1,0,4,18,3),Bt(0,6,7,-4,0,11,15,1,0,4,20,3),Bt(0,7,8,-4,0,12,17,2,0,5,22,4),Bt(0,7,8,-4,0,13,19,2,0,5,24,4),Bt(0,7,9,-4,0,14,21,2,0,5,26,4),Bt(0,8,9,-5,0,15,22,2,0,6,28,5),Bt(0,8,10,-5,0,16,24,2,0,6,30,5),Bt(0,8,11,-5,0,17,26,2,0,6,32,5),Bt(0,9,11,-5,0,18,28,2,0,7,34,6),Bt(0,9,12,-6,0,19,29,2,0,7,36,6),Bt(0,10,13,-6,0,20,31,3,0,8,38,7),Bt(0,10,13,-6,0,21,33,3,0,8,40,7),Bt(0,10,14,-6,0,22,35,3,0,8,42,7),Bt(0,11,14,-7,0,23,36,3,0,9,44,8),Bt(0,11,15,-7,0,24,38,3,0,9,46,8)],_j=Zj,$j=["duration","easing","delay"],eD={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},tD={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function qm(e){return`${Math.round(e)}ms`}function nD(e){if(!e)return 0;const t=e/36;return Math.round((4+15*t**.25+t/5)*10)}function rD(e){const t=z({},eD,e.easing),n=z({},tD,e.duration);return z({getAutoHeightDuration:nD,create:(o=["all"],s={})=>{const{duration:a=n.standard,easing:c=t.easeInOut,delay:u=0}=s,A=Ne(s,$j);if(process.env.NODE_ENV!=="production"){const p=C=>typeof C=="string",h=C=>!isNaN(parseFloat(C));!p(o)&&!Array.isArray(o)&&console.error('MUI: Argument "props" must be a string or Array.'),!h(a)&&!p(a)&&console.error(`MUI: Argument "duration" must be a number or a string but found ${a}.`),p(c)||console.error('MUI: Argument "easing" must be a string.'),!h(u)&&!p(u)&&console.error('MUI: Argument "delay" must be a number or a string.'),typeof s!="object"&&console.error(["MUI: Secong argument of transition.create must be an object.","Arguments should be either `create('prop1', options)` or `create(['prop1', 'prop2'], options)`"].join(`
|
|
69
69
|
`)),Object.keys(A).length!==0&&console.error(`MUI: Unrecognized argument(s) [${Object.keys(A).join(",")}].`)}return(Array.isArray(o)?o:[o]).map(p=>`${p} ${typeof a=="string"?a:qm(a)} ${c} ${typeof u=="string"?u:qm(u)}`).join(",")}},e,{easing:t,duration:n})}const oD={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},iD=oD,sD=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function Cf(e={},...t){const{mixins:n={},palette:r={},transitions:o={},typography:s={}}=e,a=Ne(e,sD);if(e.vars)throw new Error(process.env.NODE_ENV!=="production"?"MUI: `vars` is a private field used for CSS variables support.\nPlease use another name.":Cs(18));const c=Uj(r),u=df(e);let A=Zr(u,{mixins:wj(u.breakpoints,n),palette:c,shadows:_j.slice(),typography:Kj(c,s),transitions:rD(o),zIndex:z({},iD)});if(A=Zr(A,a),A=t.reduce((p,h)=>Zr(p,h),A),process.env.NODE_ENV!=="production"){const p=["active","checked","completed","disabled","error","expanded","focused","focusVisible","required","selected"],h=(C,m)=>{let I;for(I in C){const B=C[I];if(p.indexOf(I)!==-1&&Object.keys(B).length>0){if(process.env.NODE_ENV!=="production"){const v=Dt("",I);console.error([`MUI: The \`${m}\` component increases the CSS specificity of the \`${I}\` internal state.`,"You can not override it like this: ",JSON.stringify(C,null,2),"",`Instead, you need to use the '&.${v}' syntax:`,JSON.stringify({root:{[`&.${v}`]:B}},null,2),"","https://mui.com/r/state-classes-guide"].join(`
|
|
70
|
-
`))}C[I]={}}}};Object.keys(A.components).forEach(C=>{const m=A.components[C].styleOverrides;m&&C.indexOf("Mui")===0&&h(m,C)})}return A.unstable_sxConfig=z({},wu,a==null?void 0:a.unstable_sxConfig),A.unstable_sx=function(h){return Af({sx:h,theme:this})},A}const aD=Cf(),mf=aD;function bt(){const e=ff(mf);return process.env.NODE_ENV!=="production"&&k.useDebugValue(e),e[Ra]||e}function Ht({props:e,name:t}){return Ej({props:e,name:t,defaultTheme:mf,themeId:Ra})}const Ef=e=>Qc(e)&&e!=="classes",lD=Y0({themeId:Ra,defaultTheme:mf,rootShouldForwardProp:Ef}),Ae=lD,cD=["theme"];function X0(e){let{theme:t}=e,n=Ne(e,cD);const r=t[Ra];return g.jsx(Wc,z({},n,{themeId:r?Ra:void 0,theme:r||t}))}process.env.NODE_ENV!=="production"&&(X0.propTypes={children:f.node,theme:f.oneOfType([f.object,f.func]).isRequired});const uD=e=>{let t;return e<1?t=5.11916*e**2:t=4.5*Math.log(e+1)+2,(t/100).toFixed(2)},Jm=uD,AD=Ae("span")(({arrow:e,theme:t})=>{const o=t.palette.mode==="dark"?"none":`solid 1px ${ze(t.palette.grey[500],.12)}`,s={borderRadius:"0 0 3px 0",top:-6,borderBottom:o,borderRight:o},a={borderRadius:"3px 0 0 0",bottom:-6,borderTop:o,borderLeft:o},c={borderRadius:"0 3px 0 0",left:-6,borderTop:o,borderRight:o},u={borderRadius:"0 0 0 3px",right:-6,borderBottom:o,borderLeft:o};return{display:"none",[t.breakpoints.up("sm")]:{zIndex:1,width:12,height:12,content:"''",display:"block",position:"absolute",transform:"rotate(-135deg)",background:t.palette.background.paper,backgroundImage:"inherit",borderLeft:o,borderBottom:o},...e==="top-left"&&{...s,left:20},...e==="top-center"&&{...s,left:0,right:0,margin:"auto"},...e==="top-right"&&{...s,right:20},...e==="bottom-left"&&{...a,left:20},...e==="bottom-center"&&{...a,left:0,right:0,margin:"auto"},...e==="bottom-right"&&{...a,right:20},...e==="left-top"&&{...c,top:20},...e==="left-center"&&{...c,top:0,bottom:0,margin:"auto"},...e==="left-bottom"&&{...c,bottom:20},...e==="right-top"&&{...u,top:20},...e==="right-center"&&{...u,top:0,bottom:0,margin:"auto"},...e==="right-bottom"&&{...u,bottom:20}}});function dD(e){let t;switch(e){case"top-left":t={style:{ml:-.75},anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"left"}};break;case"top-center":t={style:{},anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"}};break;case"top-right":t={style:{ml:.75},anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"}};break;case"bottom-left":t={style:{ml:-.75},anchorOrigin:{vertical:"top",horizontal:"left"},transformOrigin:{vertical:"bottom",horizontal:"left"}};break;case"bottom-center":t={style:{},anchorOrigin:{vertical:"top",horizontal:"center"},transformOrigin:{vertical:"bottom",horizontal:"center"}};break;case"bottom-right":t={style:{ml:.75},anchorOrigin:{vertical:"top",horizontal:"right"},transformOrigin:{vertical:"bottom",horizontal:"right"}};break;case"left-top":t={style:{mt:-.75},anchorOrigin:{vertical:"top",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"left"}};break;case"left-center":t={anchorOrigin:{vertical:"center",horizontal:"right"},transformOrigin:{vertical:"center",horizontal:"left"}};break;case"left-bottom":t={style:{mt:.75},anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"bottom",horizontal:"left"}};break;case"right-top":t={style:{mt:-.75},anchorOrigin:{vertical:"top",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"right"}};break;case"right-center":t={anchorOrigin:{vertical:"center",horizontal:"left"},transformOrigin:{vertical:"center",horizontal:"right"}};break;case"right-bottom":t={style:{mt:.75},anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"bottom",horizontal:"right"}};break;default:t={style:{ml:.75},anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"}}}return t}const If=({open:e,children:t,arrow:n="top-right",disabledArrow:r,sx:o,...s})=>{const{style:a,anchorOrigin:c,transformOrigin:u}=dD(n);return g.jsxs(y.Popover,{open:!!e,anchorEl:e,anchorOrigin:c,transformOrigin:u,keepMounted:!0,PaperProps:{sx:{p:1,width:"auto",overflow:"inherit",...a,"& .MuiMenuItem-root":{px:1,typography:"body2",borderRadius:.75,"& svg":{mr:2,width:20,height:20,flexShrink:0}},...o}},...s,children:[!r&&g.jsx(AD,{arrow:n}),t]})};If.propTypes={sx:f.object,open:f.object,children:f.node,disabledArrow:f.bool,arrow:f.oneOf(["top-left","top-center","top-right","bottom-left","bottom-center","bottom-right","left-top","left-center","left-bottom","right-top","right-center","right-bottom"])};const gD=y.styled("div",{shouldForwardProp:e=>e!=="color"&&e!=="variant"&&e!=="sx",slot:"root",overridesResolver:(e,t)=>[t.root]})(()=>({textAlign:"right"})),fD=y.styled(If,{slot:"root"})(({theme:e})=>({"& .MuiMenuItem-root":{padding:0,margin:0,"& .MuiButton-startIcon":{marginRight:e.spacing(0)}}}));function Bi({horizontal:e=!1,children:t}){const[n,r]=Q.useState(null),o=Q.useRef(null),s=A=>{A.stopPropagation(),A.preventDefault(),r(A.currentTarget),o.current=A.currentTarget},a=Q.useCallback(A=>{A.stopPropagation(),A.preventDefault(),r(null)},[]);if(!t||Q.Children.count(t)===0||t!=null&&t.filter&&(t==null?void 0:t.filter(A=>Q.isValidElement(A)).length)===0)return null;const c=Q.useCallback(A=>{var p;
|
|
70
|
+
`))}C[I]={}}}};Object.keys(A.components).forEach(C=>{const m=A.components[C].styleOverrides;m&&C.indexOf("Mui")===0&&h(m,C)})}return A.unstable_sxConfig=z({},wu,a==null?void 0:a.unstable_sxConfig),A.unstable_sx=function(h){return Af({sx:h,theme:this})},A}const aD=Cf(),mf=aD;function bt(){const e=ff(mf);return process.env.NODE_ENV!=="production"&&k.useDebugValue(e),e[Ra]||e}function Ht({props:e,name:t}){return Ej({props:e,name:t,defaultTheme:mf,themeId:Ra})}const Ef=e=>Qc(e)&&e!=="classes",lD=Y0({themeId:Ra,defaultTheme:mf,rootShouldForwardProp:Ef}),Ae=lD,cD=["theme"];function X0(e){let{theme:t}=e,n=Ne(e,cD);const r=t[Ra];return g.jsx(Wc,z({},n,{themeId:r?Ra:void 0,theme:r||t}))}process.env.NODE_ENV!=="production"&&(X0.propTypes={children:f.node,theme:f.oneOfType([f.object,f.func]).isRequired});const uD=e=>{let t;return e<1?t=5.11916*e**2:t=4.5*Math.log(e+1)+2,(t/100).toFixed(2)},Jm=uD,AD=Ae("span")(({arrow:e,theme:t})=>{const o=t.palette.mode==="dark"?"none":`solid 1px ${ze(t.palette.grey[500],.12)}`,s={borderRadius:"0 0 3px 0",top:-6,borderBottom:o,borderRight:o},a={borderRadius:"3px 0 0 0",bottom:-6,borderTop:o,borderLeft:o},c={borderRadius:"0 3px 0 0",left:-6,borderTop:o,borderRight:o},u={borderRadius:"0 0 0 3px",right:-6,borderBottom:o,borderLeft:o};return{display:"none",[t.breakpoints.up("sm")]:{zIndex:1,width:12,height:12,content:"''",display:"block",position:"absolute",transform:"rotate(-135deg)",background:t.palette.background.paper,backgroundImage:"inherit",borderLeft:o,borderBottom:o},...e==="top-left"&&{...s,left:20},...e==="top-center"&&{...s,left:0,right:0,margin:"auto"},...e==="top-right"&&{...s,right:20},...e==="bottom-left"&&{...a,left:20},...e==="bottom-center"&&{...a,left:0,right:0,margin:"auto"},...e==="bottom-right"&&{...a,right:20},...e==="left-top"&&{...c,top:20},...e==="left-center"&&{...c,top:0,bottom:0,margin:"auto"},...e==="left-bottom"&&{...c,bottom:20},...e==="right-top"&&{...u,top:20},...e==="right-center"&&{...u,top:0,bottom:0,margin:"auto"},...e==="right-bottom"&&{...u,bottom:20}}});function dD(e){let t;switch(e){case"top-left":t={style:{ml:-.75},anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"left"}};break;case"top-center":t={style:{},anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"}};break;case"top-right":t={style:{ml:.75},anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"}};break;case"bottom-left":t={style:{ml:-.75},anchorOrigin:{vertical:"top",horizontal:"left"},transformOrigin:{vertical:"bottom",horizontal:"left"}};break;case"bottom-center":t={style:{},anchorOrigin:{vertical:"top",horizontal:"center"},transformOrigin:{vertical:"bottom",horizontal:"center"}};break;case"bottom-right":t={style:{ml:.75},anchorOrigin:{vertical:"top",horizontal:"right"},transformOrigin:{vertical:"bottom",horizontal:"right"}};break;case"left-top":t={style:{mt:-.75},anchorOrigin:{vertical:"top",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"left"}};break;case"left-center":t={anchorOrigin:{vertical:"center",horizontal:"right"},transformOrigin:{vertical:"center",horizontal:"left"}};break;case"left-bottom":t={style:{mt:.75},anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"bottom",horizontal:"left"}};break;case"right-top":t={style:{mt:-.75},anchorOrigin:{vertical:"top",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"right"}};break;case"right-center":t={anchorOrigin:{vertical:"center",horizontal:"left"},transformOrigin:{vertical:"center",horizontal:"right"}};break;case"right-bottom":t={style:{mt:.75},anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"bottom",horizontal:"right"}};break;default:t={style:{ml:.75},anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"}}}return t}const If=({open:e,children:t,arrow:n="top-right",disabledArrow:r,sx:o,...s})=>{const{style:a,anchorOrigin:c,transformOrigin:u}=dD(n);return g.jsxs(y.Popover,{open:!!e,anchorEl:e,anchorOrigin:c,transformOrigin:u,keepMounted:!0,PaperProps:{sx:{p:1,width:"auto",overflow:"inherit",...a,"& .MuiMenuItem-root":{px:1,typography:"body2",borderRadius:.75,"& svg":{mr:2,width:20,height:20,flexShrink:0}},...o}},...s,children:[!r&&g.jsx(AD,{arrow:n}),t]})};If.propTypes={sx:f.object,open:f.object,children:f.node,disabledArrow:f.bool,arrow:f.oneOf(["top-left","top-center","top-right","bottom-left","bottom-center","bottom-right","left-top","left-center","left-bottom","right-top","right-center","right-bottom"])};const gD=y.styled("div",{shouldForwardProp:e=>e!=="color"&&e!=="variant"&&e!=="sx",slot:"root",overridesResolver:(e,t)=>[t.root]})(()=>({textAlign:"right"})),fD=y.styled(If,{slot:"root"})(({theme:e})=>({"& .MuiMenuItem-root":{padding:0,margin:0,"& .MuiButton-startIcon":{marginRight:e.spacing(0)}}}));function Bi({horizontal:e=!1,children:t}){const[n,r]=Q.useState(null),o=Q.useRef(null),s=A=>{A.stopPropagation(),A.preventDefault(),r(A.currentTarget),o.current=A.currentTarget},a=Q.useCallback(A=>{A.stopPropagation(),A.preventDefault(),r(null)},[]);if(!t||Q.Children.count(t)===0||t!=null&&t.filter&&(t==null?void 0:t.filter(A=>Q.isValidElement(A)).length)===0)return null;const c=Q.useCallback(A=>{var p;r(null),typeof((p=A.currentTarget)==null?void 0:p.onClick)=="function"&&A.currentTarget.onClick(A)},[]),u={width:"100%",justifyContent:"flex-start"};return g.jsxs(gD,{children:[g.jsx(y.IconButton,{"aria-label":"more","aria-haspopup":"true",onClick:s,color:n?"inherit":"default",children:e?g.jsx(rr.MoreHoriz,{}):g.jsx(rr.MoreVert,{})}),g.jsx(fD,{open:n,onClose:a,arrow:"right-top",children:Q.Children.map(t,(A,p)=>Q.isValidElement(A)&&g.jsx(y.MenuItem,{onClick:c,children:Q.cloneElement(A,{style:{...u}})},p))})]})}function pD(e){return Dt("MuiPaper",e)}Vt("MuiPaper",["root","rounded","outlined","elevation","elevation0","elevation1","elevation2","elevation3","elevation4","elevation5","elevation6","elevation7","elevation8","elevation9","elevation10","elevation11","elevation12","elevation13","elevation14","elevation15","elevation16","elevation17","elevation18","elevation19","elevation20","elevation21","elevation22","elevation23","elevation24"]);const hD=["className","component","elevation","square","variant"],CD=e=>{const{square:t,elevation:n,variant:r,classes:o}=e,s={root:["root",r,!t&&"rounded",r==="elevation"&&`elevation${n}`]};return nn(s,pD,o)},mD=Ae("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],!n.square&&t.rounded,n.variant==="elevation"&&t[`elevation${n.elevation}`]]}})(({theme:e,ownerState:t})=>{var n;return z({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,transition:e.transitions.create("box-shadow")},!t.square&&{borderRadius:e.shape.borderRadius},t.variant==="outlined"&&{border:`1px solid ${(e.vars||e).palette.divider}`},t.variant==="elevation"&&z({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&e.palette.mode==="dark"&&{backgroundImage:`linear-gradient(${ze("#fff",Jm(t.elevation))}, ${ze("#fff",Jm(t.elevation))})`},e.vars&&{backgroundImage:(n=e.vars.overlays)==null?void 0:n[t.elevation]}))}),Z0=k.forwardRef(function(t,n){const r=Ht({props:t,name:"MuiPaper"}),{className:o,component:s="div",elevation:a=1,square:c=!1,variant:u="elevation"}=r,A=Ne(r,hD),p=z({},r,{component:s,elevation:a,square:c,variant:u}),h=CD(p);return process.env.NODE_ENV!=="production"&&bt().shadows[a]===void 0&&console.error([`MUI: The elevation provided <Paper elevation={${a}}> is not available in the theme.`,`Please make sure that \`theme.shadows[${a}]\` is defined.`].join(`
|
|
71
71
|
`)),g.jsx(mD,z({as:s,ownerState:p,className:Ge(h.root,o),ref:n},A))});process.env.NODE_ENV!=="production"&&(Z0.propTypes={children:f.node,classes:f.object,className:f.string,component:f.elementType,elevation:Or(Ia,e=>{const{elevation:t,variant:n}=e;return t>0&&n==="outlined"?new Error(`MUI: Combining \`elevation={${t}}\` with \`variant="${n}"\` has no effect. Either use \`elevation={0}\` or use a different \`variant\`.`):null}),square:f.bool,sx:f.oneOfType([f.arrayOf(f.oneOfType([f.func,f.object,f.bool])),f.func,f.object]),variant:f.oneOfType([f.oneOf(["elevation","outlined"]),f.string])});const Bf=Z0;function ED(e){return Dt("MuiAppBar",e)}Vt("MuiAppBar",["root","positionFixed","positionAbsolute","positionSticky","positionStatic","positionRelative","colorDefault","colorPrimary","colorSecondary","colorInherit","colorTransparent"]);const ID=["className","color","enableColorOnDark","position"],BD=e=>{const{color:t,position:n,classes:r}=e,o={root:["root",`color${Pe(t)}`,`position${Pe(n)}`]};return nn(o,ED,r)},sc=(e,t)=>e?`${e==null?void 0:e.replace(")","")}, ${t})`:t,vD=Ae(Bf,{name:"MuiAppBar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${Pe(n.position)}`],t[`color${Pe(n.color)}`]]}})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light"?e.palette.grey[100]:e.palette.grey[900];return z({display:"flex",flexDirection:"column",width:"100%",boxSizing:"border-box",flexShrink:0},t.position==="fixed"&&{position:"fixed",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0,"@media print":{position:"absolute"}},t.position==="absolute"&&{position:"absolute",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0},t.position==="sticky"&&{position:"sticky",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0},t.position==="static"&&{position:"static"},t.position==="relative"&&{position:"relative"},!e.vars&&z({},t.color==="default"&&{backgroundColor:n,color:e.palette.getContrastText(n)},t.color&&t.color!=="default"&&t.color!=="inherit"&&t.color!=="transparent"&&{backgroundColor:e.palette[t.color].main,color:e.palette[t.color].contrastText},t.color==="inherit"&&{color:"inherit"},e.palette.mode==="dark"&&!t.enableColorOnDark&&{backgroundColor:null,color:null},t.color==="transparent"&&z({backgroundColor:"transparent",color:"inherit"},e.palette.mode==="dark"&&{backgroundImage:"none"})),e.vars&&z({},t.color==="default"&&{"--AppBar-background":t.enableColorOnDark?e.vars.palette.AppBar.defaultBg:sc(e.vars.palette.AppBar.darkBg,e.vars.palette.AppBar.defaultBg),"--AppBar-color":t.enableColorOnDark?e.vars.palette.text.primary:sc(e.vars.palette.AppBar.darkColor,e.vars.palette.text.primary)},t.color&&!t.color.match(/^(default|inherit|transparent)$/)&&{"--AppBar-background":t.enableColorOnDark?e.vars.palette[t.color].main:sc(e.vars.palette.AppBar.darkBg,e.vars.palette[t.color].main),"--AppBar-color":t.enableColorOnDark?e.vars.palette[t.color].contrastText:sc(e.vars.palette.AppBar.darkColor,e.vars.palette[t.color].contrastText)},{backgroundColor:"var(--AppBar-background)",color:t.color==="inherit"?"inherit":"var(--AppBar-color)"},t.color==="transparent"&&{backgroundImage:"none",backgroundColor:"transparent",color:"inherit"}))}),_0=k.forwardRef(function(t,n){const r=Ht({props:t,name:"MuiAppBar"}),{className:o,color:s="primary",enableColorOnDark:a=!1,position:c="fixed"}=r,u=Ne(r,ID),A=z({},r,{color:s,position:c,enableColorOnDark:a}),p=BD(A);return g.jsx(vD,z({square:!0,component:"header",ownerState:A,elevation:4,className:Ge(p.root,o,c==="fixed"&&"mui-fixed"),ref:n},u))});process.env.NODE_ENV!=="production"&&(_0.propTypes={children:f.node,classes:f.object,className:f.string,color:f.oneOfType([f.oneOf(["default","inherit","primary","secondary","transparent"]),f.string]),enableColorOnDark:f.bool,position:f.oneOf(["absolute","fixed","relative","static","sticky"]),sx:f.oneOfType([f.arrayOf(f.oneOfType([f.func,f.object,f.bool])),f.func,f.object])});const bD=_0,$0={openDialogs:[],getCurrentDialog:()=>null,openDialog:(e,t)=>{throw new Error(`openDialog not yet ready for: ${e}, ${t}`)},closeDialog:(e,t)=>{throw new Error(`closeDialog not yet ready for: ${e}, ${t}`)}},vf=Q.createContext($0),bf=({children:e})=>{const[t,n]=Q.useState($0),r=(a,c)=>{n(u=>({...u,openDialogs:[...u.openDialogs,a]})),c&&c()},o=(a,c)=>{n(u=>({...u,openDialogs:u.openDialogs.filter(A=>A!==a)})),c&&c()},s=()=>t.openDialogs.length>0?t.openDialogs[t.openDialogs.length-1]:null;return g.jsx(vf.Provider,{value:{...t,openDialog:r,closeDialog:o,getCurrentDialog:s},children:e})};bf.propTypes={children:f.node};const vi=()=>Q.useContext(vf);var Uc={exports:{}};/**
|
|
72
72
|
* @license
|
|
73
73
|
* Lodash <https://lodash.com/>
|