@zydon/common 2.1.72 → 2.1.74

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.
Files changed (34) hide show
  1. package/dist/chunk-2ASANKMO.js +17 -0
  2. package/dist/chunk-53KWNYSW.js +43 -0
  3. package/dist/chunk-6FD4QTPD.js +21 -0
  4. package/dist/chunk-ACBPYYHL.js +18 -0
  5. package/dist/chunk-D27ND54J.js +16 -0
  6. package/dist/{chunk-CPOHV43Y.js → chunk-E5WA43MY.js} +3 -3
  7. package/dist/{chunk-4BAL5HQX.js → chunk-RXVJRSTE.js} +2 -2
  8. package/dist/{chunk-UL4XNPI2.js → chunk-U3ISU3GH.js} +2 -2
  9. package/dist/{chunk-ZD4A6AP3.js → chunk-YUXWB7D7.js} +4 -4
  10. package/dist/chunk-ZODC2MGF.js +10 -0
  11. package/dist/components/Common/index.js +9 -9
  12. package/dist/components/DataGrid/index.js +2 -2
  13. package/dist/components/EmptyContent/index.js +2 -2
  14. package/dist/components/Label/index.js +4 -4
  15. package/dist/components/SplashScreen/index.js +3 -3
  16. package/dist/components/animate/index.d.ts +1 -1
  17. package/dist/components/animate/index.js +1 -1
  18. package/dist/components/carousel/index.js +9 -9
  19. package/dist/components/form/UploadAvatarWithCrop/index.js +3 -3
  20. package/dist/components/form/UploadWithCrop/index.js +4 -4
  21. package/dist/components/table/index.js +2 -2
  22. package/dist/components/upload/index.js +8 -8
  23. package/dist/theme/core/index.js +3 -3
  24. package/dist/theme/styles/index.d.ts +6 -8
  25. package/dist/theme/styles/index.js +1 -1
  26. package/dist/theme/theme-provider.js +5 -5
  27. package/dist/theme/with-settings/index.js +3 -3
  28. package/package.json +1 -1
  29. package/dist/chunk-2MK3HC7U.js +0 -21
  30. package/dist/chunk-63CPL562.js +0 -18
  31. package/dist/chunk-HRELVSCJ.js +0 -10
  32. package/dist/chunk-I3WCQOJG.js +0 -16
  33. package/dist/chunk-MQZWHADG.js +0 -43
  34. package/dist/chunk-PYQSTVMS.js +0 -17
@@ -1,22 +1,22 @@
1
- import { a } from '../../chunk-ZD4A6AP3.js';
2
- import '../../chunk-UL4XNPI2.js';
3
- import '../../chunk-4BAL5HQX.js';
1
+ import { a } from '../../chunk-YUXWB7D7.js';
2
+ import '../../chunk-U3ISU3GH.js';
3
+ import '../../chunk-RXVJRSTE.js';
4
4
  import '../../chunk-CFVUZ4S5.js';
5
- import '../../chunk-MQZWHADG.js';
5
+ import '../../chunk-53KWNYSW.js';
6
6
  import '../../chunk-OGS2HFSH.js';
7
- import { j, i } from '../../chunk-I3WCQOJG.js';
7
+ import { i } from '../../chunk-D27ND54J.js';
8
8
  import { a as a$1 } from '../../chunk-P4KEDWSP.js';
9
9
  import '../../chunk-7QYYR6YS.js';
10
10
  import { LazyMotion, domMax } from 'framer-motion';
11
11
  import { jsx, jsxs } from 'react/jsx-runtime';
12
- import $ from '@mui/material/Portal';
12
+ import y from '@mui/material/Portal';
13
13
  import { styled } from '@mui/material/styles';
14
14
  import { Toaster } from 'sonner';
15
15
  import 'dayjs/locale/pt-br';
16
- import w from 'dayjs';
16
+ import h from 'dayjs';
17
17
  import { AdapterDayjs } from '@mui/x-date-pickers-pro/AdapterDayjs';
18
18
  import { LocalizationProvider } from '@mui/x-date-pickers-pro/LocalizationProvider';
19
19
 
20
- var d=({children:t})=>jsx(LazyMotion,{strict:!0,features:domMax,children:t});var o={root:"toaster__root",toast:"toaster__toast",title:"toaster__title",icon:"toaster__icon",iconSvg:"toaster__icon__svg",content:"toaster__content",description:"toaster__description",actionButton:"toaster__action__button",cancelButton:"toaster__cancel__button",closeButton:"toaster__close_button",loadingIcon:"toaster__loading_icon",default:"toaster__default",error:"toaster__error",success:"toaster__success",warning:"toaster__warning",info:"toaster__info",loader:"sonner-loader",loaderVisible:'&[data-visible="true"]',closeBtnVisible:'[data-close-button="true"]'};var p=styled(Toaster)(({theme:t})=>{let n={toastDefault:{padding:t.spacing(1,1,1,1.5),boxShadow:t.customShadows.z8,color:j(t).palette.background.paper,backgroundColor:j(t).palette.text.primary},toastColor:{padding:t.spacing(.5,1,.5,.5),boxShadow:t.customShadows.z8,color:j(t).palette.text.primary,backgroundColor:j(t).palette.background.paper},toastLoader:{padding:t.spacing(.5,1,.5,.5),boxShadow:t.customShadows.z8,color:j(t).palette.text.primary,backgroundColor:j(t).palette.background.paper}},s={top:0,left:0,width:"100%",height:"100%",display:"none",transform:"none",overflow:"hidden",alignItems:"center",position:"relative",borderRadius:"inherit",justifyContent:"center",background:j(t).palette.background.neutral,[`& .${o.loadingIcon}`]:{zIndex:9,width:24,height:24,borderRadius:"50%",animation:"rotate 3s infinite linear",background:`conic-gradient(${i(j(t).palette.text.primaryChannel,0)}, ${i(j(t).palette.text.disabledChannel,.64)})`},[o.loaderVisible]:{display:"flex"}};return {width:300,[`& .${o.toast}`]:{gap:12,width:"100%",minHeight:52,display:"flex",borderRadius:12,alignItems:"center"},[`& .${o.content}`]:{gap:0,flex:"1 1 auto"},[`& .${o.title}`]:{fontSize:t.typography.subtitle2.fontSize},[`& .${o.description}`]:{...t.typography.caption,opacity:.64},[`& .${o.actionButton}`]:{},[`& .${o.cancelButton}`]:{},[`& .${o.closeButton}`]:{top:0,right:0,left:"auto",color:"currentColor",backgroundColor:"transparent",transform:"translate(-6px, 6px)",borderColor:i(j(t).palette.grey["500Channel"],.16),transition:t.transitions.create(["background-color","border-color"]),"&:hover":{borderColor:i(j(t).palette.grey["500Channel"],.24),backgroundColor:i(j(t).palette.grey["500Channel"],.08)}},[`& .${o.icon}`]:{margin:0,width:48,height:48,alignItems:"center",borderRadius:"inherit",justifyContent:"center",alignSelf:"flex-start",[`& .${o.iconSvg}`]:{width:24,height:24,fontSize:0}},"@keyframes rotate":{to:{transform:"rotate(1turn)"}},[`& .${o.default}`]:{...n.toastDefault,[`&:has(${o.closeBtnVisible})`]:{[`& .${o.content}`]:{paddingRight:32}},[`&:has(.${o.loader})`]:n.toastLoader,[`&:has(.${o.loader})`]:n.toastLoader,[`& .${o.loader}`]:s},[`& .${o.error}`]:{...n.toastColor,[`& .${o.icon}`]:{color:j(t).palette.error.main,backgroundColor:i(j(t).palette.error.mainChannel,.08)}},[`& .${o.success}`]:{...n.toastColor,[`& .${o.icon}`]:{color:j(t).palette.success.main,backgroundColor:i(j(t).palette.success.mainChannel,.08)}},[`& .${o.warning}`]:{...n.toastColor,[`& .${o.icon}`]:{color:j(t).palette.warning.main,backgroundColor:i(j(t).palette.warning.mainChannel,.08)}},[`& .${o.info}`]:{...n.toastColor,[`& .${o.icon}`]:{color:j(t).palette.info.main,backgroundColor:i(j(t).palette.info.mainChannel,.08)}}}});var u=()=>jsx($,{container:typeof window<"u"?document.getElementById("snackbar-container-provider"):null,children:jsx(p,{expand:!0,gap:12,closeButton:!0,offset:16,visibleToasts:4,position:"top-right",className:o.root,toastOptions:{unstyled:!0,classNames:{toast:o.toast,icon:o.icon,content:o.content,title:o.title,description:o.description,actionButton:o.actionButton,cancelButton:o.cancelButton,closeButton:o.closeButton,default:o.default,info:o.info,error:o.error,success:o.success,warning:o.warning}},icons:{loading:jsx("span",{className:o.loadingIcon}),info:jsx(a$1,{className:o.iconSvg,icon:"INFO_CIRCLE"}),success:jsx(a$1,{className:o.iconSvg,icon:"CHECK_CIRCLE"}),warning:jsx(a$1,{className:o.iconSvg,icon:"WARNING_TRIANGULE"}),error:jsx(a$1,{className:o.iconSvg,icon:"ALERT_CIRCLE"})}})});var k=({children:t})=>(w.locale("pt-br"),jsx(LocalizationProvider,{dateAdapter:AdapterDayjs,adapterLocale:"pt-br",children:t})),g=k;var P=({primaryColor:t,colorScheme:n,contrast:s,children:f,cssVarPrefix:m})=>jsx(g,{children:jsx(a,{primaryColor:t,colorScheme:n,contrast:s,cssVarPrefix:m,children:jsxs(d,{children:[f,jsx(u,{})]})})}),to=P;
20
+ var c=({children:t})=>jsx(LazyMotion,{strict:!0,features:domMax,children:t});var o={root:"toaster__root",toast:"toaster__toast",title:"toaster__title",icon:"toaster__icon",iconSvg:"toaster__icon__svg",content:"toaster__content",description:"toaster__description",actionButton:"toaster__action__button",cancelButton:"toaster__cancel__button",closeButton:"toaster__close_button",loadingIcon:"toaster__loading_icon",default:"toaster__default",error:"toaster__error",success:"toaster__success",warning:"toaster__warning",info:"toaster__info",loader:"sonner-loader",loaderVisible:'&[data-visible="true"]',closeBtnVisible:'[data-close-button="true"]'};var d=styled(Toaster)(({theme:t})=>{let a={toastDefault:{padding:t.spacing(1,1,1,1.5),boxShadow:t.customShadows.z8,color:t.vars.palette.background.paper,backgroundColor:t.vars.palette.text.primary},toastColor:{padding:t.spacing(.5,1,.5,.5),boxShadow:t.customShadows.z8,color:t.vars.palette.text.primary,backgroundColor:t.vars.palette.background.paper},toastLoader:{padding:t.spacing(.5,1,.5,.5),boxShadow:t.customShadows.z8,color:t.vars.palette.text.primary,backgroundColor:t.vars.palette.background.paper}},i$1={top:0,left:0,width:"100%",height:"100%",display:"none",transform:"none",overflow:"hidden",alignItems:"center",position:"relative",borderRadius:"inherit",justifyContent:"center",background:t.vars.palette.background.neutral,[`& .${o.loadingIcon}`]:{zIndex:9,width:24,height:24,borderRadius:"50%",animation:"rotate 3s infinite linear",background:`conic-gradient(${i(t.vars.palette.text.primaryChannel,0)}, ${i(t.vars.palette.text.disabledChannel,.64)})`},[o.loaderVisible]:{display:"flex"}};return {width:300,[`& .${o.toast}`]:{gap:12,width:"100%",minHeight:52,display:"flex",borderRadius:12,alignItems:"center"},[`& .${o.content}`]:{gap:0,flex:"1 1 auto"},[`& .${o.title}`]:{fontSize:t.typography.subtitle2.fontSize},[`& .${o.description}`]:{...t.typography.caption,opacity:.64},[`& .${o.actionButton}`]:{},[`& .${o.cancelButton}`]:{},[`& .${o.closeButton}`]:{top:0,right:0,left:"auto",color:"currentColor",backgroundColor:"transparent",transform:"translate(-6px, 6px)",borderColor:i(t.vars.palette.grey["500Channel"],.16),transition:t.transitions.create(["background-color","border-color"]),"&:hover":{borderColor:i(t.vars.palette.grey["500Channel"],.24),backgroundColor:i(t.vars.palette.grey["500Channel"],.08)}},[`& .${o.icon}`]:{margin:0,width:48,height:48,alignItems:"center",borderRadius:"inherit",justifyContent:"center",alignSelf:"flex-start",[`& .${o.iconSvg}`]:{width:24,height:24,fontSize:0}},"@keyframes rotate":{to:{transform:"rotate(1turn)"}},[`& .${o.default}`]:{...a.toastDefault,[`&:has(${o.closeBtnVisible})`]:{[`& .${o.content}`]:{paddingRight:32}},[`&:has(.${o.loader})`]:a.toastLoader,[`&:has(.${o.loader})`]:a.toastLoader,[`& .${o.loader}`]:i$1},[`& .${o.error}`]:{...a.toastColor,[`& .${o.icon}`]:{color:t.vars.palette.error.main,backgroundColor:i(t.vars.palette.error.mainChannel,.08)}},[`& .${o.success}`]:{...a.toastColor,[`& .${o.icon}`]:{color:t.vars.palette.success.main,backgroundColor:i(t.vars.palette.success.mainChannel,.08)}},[`& .${o.warning}`]:{...a.toastColor,[`& .${o.icon}`]:{color:t.vars.palette.warning.main,backgroundColor:i(t.vars.palette.warning.mainChannel,.08)}},[`& .${o.info}`]:{...a.toastColor,[`& .${o.icon}`]:{color:t.vars.palette.info.main,backgroundColor:i(t.vars.palette.info.mainChannel,.08)}}}});var p=()=>jsx(y,{container:typeof window<"u"?document.getElementById("snackbar-container-provider"):null,children:jsx(d,{expand:!0,gap:12,closeButton:!0,offset:16,visibleToasts:4,position:"top-right",className:o.root,toastOptions:{unstyled:!0,classNames:{toast:o.toast,icon:o.icon,content:o.content,title:o.title,description:o.description,actionButton:o.actionButton,cancelButton:o.cancelButton,closeButton:o.closeButton,default:o.default,info:o.info,error:o.error,success:o.success,warning:o.warning}},icons:{loading:jsx("span",{className:o.loadingIcon}),info:jsx(a$1,{className:o.iconSvg,icon:"INFO_CIRCLE"}),success:jsx(a$1,{className:o.iconSvg,icon:"CHECK_CIRCLE"}),warning:jsx(a$1,{className:o.iconSvg,icon:"WARNING_TRIANGULE"}),error:jsx(a$1,{className:o.iconSvg,icon:"ALERT_CIRCLE"})}})});var S=({children:t})=>(h.locale("pt-br"),jsx(LocalizationProvider,{dateAdapter:AdapterDayjs,adapterLocale:"pt-br",children:t})),u=S;var x=({primaryColor:t,colorScheme:a$1,contrast:i,children:g,cssVarPrefix:f})=>jsx(u,{children:jsx(a,{primaryColor:t,colorScheme:a$1,contrast:i,cssVarPrefix:f,children:jsxs(c,{children:[g,jsx(p,{})]})})}),Z=x;
21
21
 
22
- export { to as default };
22
+ export { Z as default };
@@ -1,7 +1,7 @@
1
- import { a as a$1 } from '../../chunk-HRELVSCJ.js';
1
+ import { a as a$1 } from '../../chunk-ZODC2MGF.js';
2
2
  import '../../chunk-ZDHXW74M.js';
3
3
  import { a } from '../../chunk-YWEB6IAI.js';
4
- import '../../chunk-I3WCQOJG.js';
4
+ import '../../chunk-D27ND54J.js';
5
5
  import x, { useState } from 'react';
6
6
  import { GRID_CHECKBOX_SELECTION_COL_DEF, DataGridPremium, GridToolbarContainer, GridToolbarColumnsButton, GridToolbarFilterButton, GridToolbarDensitySelector, GridToolbarExport, useGridApiContext, useGridRootProps, gridColumnsTotalWidthSelector, gridColumnPositionsSelector } from '@mui/x-data-grid-premium';
7
7
  import E from '@mui/material/Box';
@@ -1,3 +1,3 @@
1
- export { a as default } from '../../chunk-HRELVSCJ.js';
1
+ export { a as default } from '../../chunk-ZODC2MGF.js';
2
2
  import '../../chunk-ZDHXW74M.js';
3
- import '../../chunk-I3WCQOJG.js';
3
+ import '../../chunk-D27ND54J.js';
@@ -1,9 +1,9 @@
1
- import { j, a } from '../../chunk-I3WCQOJG.js';
1
+ import { a } from '../../chunk-D27ND54J.js';
2
2
  import { forwardRef } from 'react';
3
- import c from '@mui/material/Box';
3
+ import d from '@mui/material/Box';
4
4
  import { styled, lighten, useTheme } from '@mui/material/styles';
5
5
  import { jsxs, jsx } from 'react/jsx-runtime';
6
6
 
7
- var p={root:"mnl__label__root",icon:"mnl__label__icon"};var d=styled(c)(({theme:t,ownerState:{color:e,variant:r}})=>{let l={...e==="default"&&{...r==="filled"&&{color:j(t).palette.common.white,backgroundColor:j(t).palette.text.primary,[a.dark]:{color:j(t).palette.grey[800]}},...r==="outlined"&&{backgroundColor:"transparent",color:j(t).palette.text.primary,border:`2px solid ${j(t).palette.text.primary}`},...r==="soft"&&{color:j(t).palette.text.secondary,border:`1px solid ${lighten(t.palette.grey[500],.32)}`},...r==="inverted"&&{color:j(t).palette.grey[800],backgroundColor:j(t).palette.grey[300]}}},a$1={...e!=="default"&&{...r==="filled"&&{color:j(t).palette[e].contrastText,backgroundColor:j(t).palette[e].main},...r==="outlined"&&{backgroundColor:"transparent",color:j(t).palette[e].main,border:`2px solid ${j(t).palette[e].main}`},...r==="soft"&&{color:j(t).palette[e].dark,backgroundColor:lighten(t.palette[e].main,.84),[a.dark]:{color:j(t).palette[e].light}},...r==="inverted"&&{color:j(t).palette[e].darker,backgroundColor:j(t).palette[e].lighter}}};return {height:24,minWidth:24,lineHeight:0,cursor:"default",alignItems:"center",whiteSpace:"nowrap",display:"inline-flex",justifyContent:"center",padding:t.spacing(0,.75),fontSize:t.typography.pxToRem(12),fontWeight:t.typography.fontWeightBold,borderRadius:t.shape.borderRadius*.75,transition:t.transitions.create("all",{duration:t.transitions.duration.shorter}),...l,...a$1}});var S=t=>t.charAt(0).toUpperCase()+t.slice(1),f=forwardRef(({children:t,color:e="default",variant:r="soft",startIcon:l,endIcon:a,sx:g,...b},y)=>{let u=useTheme(),i={width:16,height:16,"& svg, img":{width:1,height:1,objectFit:"cover"}};return jsxs(d,{ref:y,component:"span",className:p.root,ownerState:{color:e,variant:r},sx:{...l&&{pl:.75},...a&&{pr:.75},...g},theme:u,...b,children:[l&&jsx(c,{component:"span",className:p.icon,sx:{mr:.75,...i},children:l}),typeof t=="string"?S(t):t,a&&jsx(c,{component:"span",className:p.icon,sx:{ml:.75,...i},children:a})]})});f.displayName="Label";var V=f;
7
+ var l={root:"mnl__label__root",icon:"mnl__label__icon"};var i=styled(d)(({theme:o,ownerState:{color:t,variant:r}})=>{let e={...t==="default"&&{...r==="filled"&&{color:o.vars.palette.common.white,backgroundColor:o.vars.palette.text.primary,[a.dark]:{color:o.vars.palette.grey[800]}},...r==="outlined"&&{backgroundColor:"transparent",color:o.vars.palette.text.primary,border:`2px solid ${o.vars.palette.text.primary}`},...r==="soft"&&{color:o.vars.palette.text.secondary,border:`1px solid ${lighten(o.palette.grey[500],.32)}`},...r==="inverted"&&{color:o.vars.palette.grey[800],backgroundColor:o.vars.palette.grey[300]}}},a$1={...t!=="default"&&{...r==="filled"&&{color:o.vars.palette[t].contrastText,backgroundColor:o.vars.palette[t].main},...r==="outlined"&&{backgroundColor:"transparent",color:o.vars.palette[t].main,border:`2px solid ${o.vars.palette[t].main}`},...r==="soft"&&{color:o.vars.palette[t].dark,backgroundColor:lighten(o.palette[t].main,.84),[a.dark]:{color:o.vars.palette[t].light}},...r==="inverted"&&{color:o.vars.palette[t].darker,backgroundColor:o.vars.palette[t].lighter}}};return {height:24,minWidth:24,lineHeight:0,cursor:"default",alignItems:"center",whiteSpace:"nowrap",display:"inline-flex",justifyContent:"center",padding:o.spacing(0,.75),fontSize:o.typography.pxToRem(12),fontWeight:o.typography.fontWeightBold,borderRadius:o.shape.borderRadius*.75,transition:o.transitions.create("all",{duration:o.transitions.duration.shorter}),...e,...a$1}});var L=o=>o.charAt(0).toUpperCase()+o.slice(1),f=forwardRef(({children:o,color:t="default",variant:r="soft",startIcon:e,endIcon:a,sx:m,...b},g)=>{let y=useTheme(),p={width:16,height:16,"& svg, img":{width:1,height:1,objectFit:"cover"}};return jsxs(i,{ref:g,component:"span",className:l.root,ownerState:{color:t,variant:r},sx:{...e&&{pl:.75},...a&&{pr:.75},...m},theme:y,...b,children:[e&&jsx(d,{component:"span",className:l.icon,sx:{mr:.75,...p},children:e}),typeof o=="string"?L(o):o,a&&jsx(d,{component:"span",className:l.icon,sx:{ml:.75,...p},children:a})]})});f.displayName="Label";var H=f;
8
8
 
9
- export { V as default };
9
+ export { H as default };
@@ -1,8 +1,8 @@
1
- import { i, j } from '../../chunk-I3WCQOJG.js';
1
+ import { i } from '../../chunk-D27ND54J.js';
2
2
  import e from '@mui/material/Box';
3
3
  import { m } from 'framer-motion';
4
4
  import { jsx, jsxs } from 'react/jsx-runtime';
5
5
 
6
- var s=({children:l,sx:n,...p})=>jsx(e,{sx:{overflow:"hidden"},children:jsx(e,{sx:{right:0,width:1,bottom:0,height:1,zIndex:9998,display:"flex",position:"fixed",alignItems:"center",justifyContent:"center",bgcolor:"background.default",...n},...p,children:jsxs(e,{sx:{width:120,height:120,alignItems:"center",position:"relative",display:"inline-flex",justifyContent:"center",...n},...p,children:[jsx(e,{component:m.div,animate:{scale:[1,.9,.9,1,1],opacity:[1,.48,.48,1,1]},transition:{duration:2,repeatDelay:1,repeat:1/0,ease:"easeInOut"},sx:{display:"inline-flex"},children:l}),jsx(e,{component:m.div,animate:{scale:[1.6,1,1,1.6,1.6],rotate:[270,0,0,270,270],opacity:[.25,1,1,1,.25],borderRadius:["25%","25%","50%","50%","25%"]},transition:{ease:"linear",duration:3.2,repeat:1/0},sx:{position:"absolute",width:"calc(100% - 20px)",height:"calc(100% - 20px)",border:i$1=>`solid 3px ${i(j(i$1).palette.primary.darkChannel,.24)}`}}),jsx(e,{component:m.div,animate:{scale:[1,1.2,1.2,1,1],rotate:[0,270,270,0,0],opacity:[1,.25,.25,.25,1],borderRadius:["25%","25%","50%","50%","25%"]},transition:{ease:"linear",duration:3.2,repeat:1/0},sx:{width:1,height:1,position:"absolute",border:i$1=>`solid 8px ${i(j(i$1).palette.primary.darkChannel,.24)}`}})]})})}),f=s;
6
+ var p=({children:s,sx:r,...n})=>jsx(e,{sx:{overflow:"hidden"},children:jsx(e,{sx:{right:0,width:1,bottom:0,height:1,zIndex:9998,display:"flex",position:"fixed",alignItems:"center",justifyContent:"center",bgcolor:"background.default",...r},...n,children:jsxs(e,{sx:{width:120,height:120,alignItems:"center",position:"relative",display:"inline-flex",justifyContent:"center",...r},...n,children:[jsx(e,{component:m.div,animate:{scale:[1,.9,.9,1,1],opacity:[1,.48,.48,1,1]},transition:{duration:2,repeatDelay:1,repeat:1/0,ease:"easeInOut"},sx:{display:"inline-flex"},children:s}),jsx(e,{component:m.div,animate:{scale:[1.6,1,1,1.6,1.6],rotate:[270,0,0,270,270],opacity:[.25,1,1,1,.25],borderRadius:["25%","25%","50%","50%","25%"]},transition:{ease:"linear",duration:3.2,repeat:1/0},sx:{position:"absolute",width:"calc(100% - 20px)",height:"calc(100% - 20px)",border:i$1=>`solid 3px ${i(i$1.vars.palette.primary.darkChannel,.24)}`}}),jsx(e,{component:m.div,animate:{scale:[1,1.2,1.2,1,1],rotate:[0,270,270,0,0],opacity:[1,.25,.25,.25,1],borderRadius:["25%","25%","50%","50%","25%"]},transition:{ease:"linear",duration:3.2,repeat:1/0},sx:{width:1,height:1,position:"absolute",border:i$1=>`solid 8px ${i(i$1.vars.palette.primary.darkChannel,.24)}`}})]})})}),h=p;
7
7
 
8
- export { f as default };
8
+ export { h as default };
@@ -1,7 +1,7 @@
1
1
  import * as react from 'react';
2
2
  import * as framer_motion from 'framer-motion';
3
3
  import { MotionProps, Easing } from 'framer-motion';
4
- export { AnimatePresence, m } from 'framer-motion';
4
+ export * from 'framer-motion';
5
5
  import { BoxProps } from '@mui/material/Box';
6
6
 
7
7
  type MotionContainerProps = BoxProps & MotionProps & {
@@ -1,2 +1,2 @@
1
- export { t as AnimatePresence, r as MotionContainer, s as MotionViewport, l as TRANSITION, u as m, b as varBgColor, c as varBgKenburns, d as varBgPan, h as varBounce, i as varContainer, j as varFade, k as varFlip, a as varHover, m as varPath, n as varRotate, o as varScale, p as varSlide, f as varTranEnter, g as varTranExit, e as varTranHover, q as varZoom } from '../../chunk-CPOHV43Y.js';
1
+ export { r as MotionContainer, s as MotionViewport, l as TRANSITION, b as varBgColor, c as varBgKenburns, d as varBgPan, h as varBounce, i as varContainer, j as varFade, k as varFlip, a as varHover, m as varPath, n as varRotate, o as varScale, p as varSlide, f as varTranEnter, g as varTranExit, e as varTranHover, q as varZoom } from '../../chunk-E5WA43MY.js';
2
2
  import '../../chunk-ILHUUK4X.js';
@@ -1,16 +1,16 @@
1
- import { j, i, a } from '../../chunk-I3WCQOJG.js';
1
+ import { i, a } from '../../chunk-D27ND54J.js';
2
2
  import { a as a$1 } from '../../chunk-P4KEDWSP.js';
3
3
  import '../../chunk-7QYYR6YS.js';
4
4
  import { forwardRef, Children, isValidElement, useMemo, useState, useCallback, useEffect, useRef } from 'react';
5
- import O from '@mui/material/Box';
5
+ import N from '@mui/material/Box';
6
6
  import { styled, useTheme } from '@mui/material/styles';
7
7
  import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
8
- import Q, { buttonBaseClasses } from '@mui/material/ButtonBase';
9
- import q from '@mui/material/Stack';
10
- import Se from '@mui/material/SvgIcon';
11
- import Be from '@mui/material/NoSsr';
12
- import Ye from 'embla-carousel-react';
8
+ import J, { buttonBaseClasses } from '@mui/material/ButtonBase';
9
+ import Y from '@mui/material/Stack';
10
+ import he from '@mui/material/SvgIcon';
11
+ import _e from '@mui/material/NoSsr';
12
+ import Xe from 'embla-carousel-react';
13
13
 
14
- var Ze={xs:"(min-width: 0px)",sm:"(min-width: 600px)",md:"(min-width: 900px)",lg:"(min-width: 1200px)",xl:"(min-width: 1536px)"};var c={root:"mnl__carousel__root",container:"mnl__carousel__container",dots:"mnl__carousel__dots",dot:"mnl__carousel__dot",arrows:"mnl__carousel__arrows",arrowsLabel:"mnl__carousel__arrows_label",arrowPrev:"mnl__carousel__btn--prev",arrowNext:"mnl__carousel__btn--next",arrowSvg:"mnl__carousel__btn__svg",slide:"mnl__carousel__slide",slideContent:"mnl__carousel__slide__content",thumbs:"mnl__carousel__thumbs",thumb:"mnl__carousel__thumb",thumbContainer:"mnl__carousel__thumbs__container",thumbImage:"mnl__carousel__thumb__image",progress:"mnl__carousel__progress",progressBar:"mnl__carousel__progress__bar",state:{selected:"state--selected",disabled:"state--disabled"}};var me=styled(O,{shouldForwardProp:e=>e!=="axis"&&e!=="slideSpacing"})(({axis:e,slideSpacing:o})=>({display:"block",position:"relative",...e==="x"&&{minWidth:0,paddingLeft:o},...e==="y"&&{minHeight:0,paddingTop:o}})),de=styled(O)(()=>({overflow:"hidden",position:"relative",borderRadius:"inherit"}));function P({sx:e,options:o,children:s,...r}){let i=fe(o?.slidesToShow);return jsx(me,{component:"li",axis:o?.axis??"x",slideSpacing:o?.slideSpacing,className:c.slide,sx:{flex:i,...e},...r,children:o?.parallax?jsx(de,{className:c.slideContent,children:jsx("div",{className:"slide__parallax__layer",children:s})}):s})}function fe(e){return e&&typeof e=="object"?Object.keys(e).reduce((o,s)=>{let r=e[s];return o[s]=H(r),o},{}):H(e)}function H(e=1){if(typeof e=="string"){if(!(e==="auto"||e.endsWith("%")||e.endsWith("px")))throw new Error("Only accepts values: auto, px, %, or number.");return `0 0 ${e}`}if(typeof e=="number")return `0 0 ${100/e}%`;throw new Error("Invalid value type. Only accepts values: auto, px, %, or number.")}var I=styled(O,{shouldForwardProp:e=>e!=="axis"})(({axis:e})=>({margin:"auto",width:"100%",maxWidth:"100%",overflow:"hidden",position:"relative",...e==="y"&&{height:"100%"}})),N=styled(O,{shouldForwardProp:e=>e!=="axis"&&e!=="slideSpacing"})(({axis:e,slideSpacing:o})=>({display:"flex",backfaceVisibility:"hidden",...e==="x"&&{touchAction:"pan-y pinch-zoom",marginLeft:`calc(${o} * -1)`},...e==="y"&&{height:"100%",flexDirection:"column",touchAction:"pan-x pinch-zoom",marginTop:`calc(${o} * -1)`}}));function uo({carousel:e,children:o,sx:s,slotProps:r}){let{mainRef:i,options:n}=e,t=n?.axis??"x",a=n?.slideSpacing??"0px",u=n?.direction??"ltr",p=Children.map(o,l=>{if(isValidElement(l)){let m=l;return jsx(P,{options:e.options,sx:r?.slide,children:l},m.key)}return null});return jsx(I,{sx:s,axis:t,ref:i,dir:u,className:c.root,children:jsx(N,{component:"ul",axis:t,slideSpacing:a,className:c.container,sx:{...e.pluginNames?.includes("autoHeight")&&{alignItems:"flex-start",transition:l=>l.transitions.create(["height"],{easing:l.transitions.easing.easeInOut,duration:l.transitions.duration.shorter})},...r?.container},children:p})})}function So({options:e,slotProps:o,totalSlides:s,selectedIndex:r,onClickPrev:i,onClickNext:n,disablePrev:t,disableNext:a,sx:u,...p}){return jsxs(q,{direction:"row",alignItems:"center",display:"inline-flex",className:c.arrows,sx:{gap:.5,zIndex:9,color:"action.active",...u},...p,children:[jsx(S,{variant:"prev",options:e,disabled:t,onClick:i,svgIcon:o?.prevBtn?.svgIcon,svgSize:o?.prevBtn?.svgSize,sx:o?.prevBtn?.sx}),jsx(S,{variant:"next",options:e,disabled:a,onClick:n,svgIcon:o?.nextBtn?.svgIcon,svgSize:o?.prevBtn?.svgSize,sx:o?.prevBtn?.sx})]})}function _o({options:e,slotProps:o,totalSlides:s,selectedIndex:r,onClickPrev:i$1,onClickNext:n,disablePrev:t,disableNext:a,sx:u,...p}){let l=useTheme();return jsxs(q,{direction:"row",alignItems:"center",display:"inline-flex",className:c.arrows,sx:{p:.5,gap:.25,zIndex:9,borderRadius:1.25,color:"common.white",bgcolor:i(j(l).palette.grey["900Channel"],.48),...u},...p,children:[jsx(S,{variant:"prev",options:e,disabled:t,onClick:i$1,sx:{p:.75,borderRadius:"inherit",...o?.prevBtn?.sx},svgIcon:o?.prevBtn?.svgIcon,svgSize:o?.prevBtn?.svgSize??16}),jsxs(O,{component:"span",className:c.arrowsLabel,sx:{mx:.5,typography:"subtitle2"},children:[r,"/",s]}),jsx(S,{variant:"next",options:e,disabled:a,onClick:n,sx:{p:.75,borderRadius:"inherit",...o?.nextBtn?.sx},svgIcon:o?.nextBtn?.svgIcon,svgSize:o?.prevBtn?.svgSize??16})]})}function vo({options:e,slotProps:o,onClickPrev:s,onClickNext:r,disablePrev:i,disableNext:n}){let t={zIndex:9,top:"50%",borderRadius:1.5,position:"absolute",color:"common.white",bgcolor:"text.primary",transform:"translateY(-50%)","&:hover":{opacity:.8},[a.dark]:{color:"grey.800"}};return jsxs(Fragment,{children:[jsx(S,{variant:"prev",options:e,disabled:i,onClick:s,svgIcon:o?.prevBtn?.svgIcon,svgSize:o?.prevBtn?.svgSize,sx:{left:-16,...t,...o?.prevBtn?.sx}}),jsx(S,{variant:"next",options:e,disabled:n,onClick:r,svgIcon:o?.nextBtn?.svgIcon,svgSize:o?.nextBtn?.svgSize,sx:{right:-16,...t,...o?.nextBtn?.sx}})]})}function S({sx:e,svgIcon:o,svgSize:s,options:r,variant:i,...n}){let t=i==="prev",a=i==="next",u=o||jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M15.488 4.43a.75.75 0 0 1 .081 1.058L9.988 12l5.581 6.512a.75.75 0 1 1-1.138.976l-6-7a.75.75 0 0 1 0-.976l6-7a.75.75 0 0 1 1.057-.081",clipRule:"evenodd"}),p=o||jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M8.512 4.43a.75.75 0 0 1 1.057.082l6 7a.75.75 0 0 1 0 .976l-6 7a.75.75 0 0 1-1.138-.976L14.012 12L8.431 5.488a.75.75 0 0 1 .08-1.057",clipRule:"evenodd"});return jsx(Q,{className:t?c.arrowPrev:c.arrowPrev,"aria-label":t?"Prev button":"Next button",sx:{p:1,borderRadius:"50%",boxSizing:"content-box",transition:l=>l.transitions.create(["all"],{easing:l.transitions.easing.sharp,duration:l.transitions.duration.short}),[`&.${buttonBaseClasses.disabled}`]:{opacity:.4},...e,...r?.direction==="rtl"&&{...t&&{right:-16,left:"auto"},...a&&{left:-16,right:"auto"}}},...n,children:jsx(Se,{className:c.arrowSvg,sx:{width:s??20,height:s??20,...r?.axis==="y"&&{transform:" rotate(90deg)"},...r?.direction==="rtl"&&{transform:" scaleX(-1)"}},children:t?u:p})})}function Oo({sx:e,gap:o,slotProps:s,onClickDot:r,scrollSnaps:i$1,selectedIndex:n,fallbackCount:t=1,variant:a$1="circular",fallback:u=!1,...p}){let l=useTheme(),m={number:o??6,rounded:o??2,circular:o??2},d={circular:s?.dot?.size??18,number:s?.dot?.size??28},_=jsx(O,{sx:{height:d.circular,width:`calc(${t*d.circular+m.circular*(t-1)}px )`,...a$1==="number"&&{height:d.number,width:`calc(${t*d.number+m.number*(t-1)}px )`}}}),y={circular:b=>({width:d.circular,height:d.circular,"&::before":{width:8,height:8,content:'""',opacity:.24,borderRadius:"50%",bgcolor:"primary.main",transition:l.transitions.create(["opacity"],{easing:l.transitions.easing.sharp,duration:l.transitions.duration.short}),...b&&{opacity:1}}}),rounded:b=>({width:d.circular,height:d.circular,"&::before":{width:8,height:8,content:'""',opacity:.24,borderRadius:"50%",bgcolor:"primary.main",transition:l.transitions.create(["width","opacity"],{easing:l.transitions.easing.sharp,duration:l.transitions.duration.short}),...b&&{width:"calc(100% - 4px)",opacity:1,borderRadius:1}}}),number:b=>({width:d.number,height:d.number,borderRadius:"50%",typography:"caption",color:"text.disabled",border:`solid 1px ${i(j(l).palette.grey["500Channel"],.16)}`,...b&&{color:"common.white",bgcolor:"text.primary",fontWeight:"fontWeightSemiBold",[a.dark]:{color:"grey.800"}}})};return jsx(Be,{fallback:u?_:null,children:jsx(O,{component:"ul",className:c.dots,sx:{zIndex:9,display:"inline-flex",...a$1==="circular"&&{gap:`${m.circular}px`},...a$1==="rounded"&&{gap:`${m.rounded}px`},...a$1==="number"&&{gap:`${m.number}px`},...e},...p,children:i$1.map((b,x)=>{let v=x===n;return jsx(O,{component:"li",sx:{display:"inline-flex"},children:jsx(Q,{disableRipple:!0,"aria-label":`dot-${x}`,className:c.dot.concat(v?` ${c.state.selected}`:""),onClick:()=>r(x),sx:{...a$1==="circular"&&y.circular(v),...a$1==="rounded"&&y.rounded(v),...a$1==="number"&&y.number(v),[`&.${c.state.selected}`]:{...s?.dot?.selected},...s?.dot?.sx},children:a$1==="number"&&x+1})},x)})})})}var Pe=styled(O)(({theme:e})=>({height:6,maxWidth:120,width:"100%",borderRadius:6,overflow:"hidden",position:"relative",color:j(e).palette.text.primary,backgroundColor:i(j(e).palette.grey["500Channel"],.2)})),ke=styled(O)(()=>({top:0,bottom:0,width:"100%",left:"-100%",position:"absolute",backgroundColor:"currentColor"}));function Fo({value:e,sx:o,...s}){return jsx(Pe,{sx:o,className:c.progress,...s,children:jsx(ke,{className:c.progressBar,sx:{transform:`translate3d(${e}%, 0px, 0px)`}})})}var Oe=forwardRef(({children:e,slotProps:o,options:s,sx:r,...i},n)=>{let t=s?.axis??"x",a=s?.slideSpacing??"12px",u=$e(t),p=Children.map(e,l=>{if(isValidElement(l)){let m=l;return jsx(P,{options:{...s,slideSpacing:a},sx:o?.slide,children:l},m.key)}return null});return jsx(I,{ref:n,slideSpacing:void 0,axis:t,className:c.thumbs,sx:{flexShrink:0,...t==="x"&&{p:.5,maxWidth:1},...t==="y"&&{p:.5,maxHeight:1},...!o?.disableMask&&u,...r},...i,children:jsx(N,{component:"ul",axis:t,slideSpacing:a,className:c.thumbContainer,sx:{...o?.container},children:p})})});Oe.displayName="CarouselThumbs";function et({thumbType:e="image",sx:o,src:s,index:r,selected:i,...n}){return e==="image"&&s?jsx(Q,{className:c.thumb,sx:{width:64,height:64,opacity:.48,flexShrink:0,cursor:"pointer",borderRadius:1.25,transition:t=>t.transitions.create(["opacity","box-shadow"],{easing:t.transitions.easing.sharp,duration:t.transitions.duration.short}),...i&&{opacity:1,boxShadow:t=>`0 0 0 2px ${j(t).palette.primary.main}`},...o},...n,children:jsx(O,{component:"img",alt:`carousel-thumb-${r}`,src:s,className:c.thumbImage,sx:{width:1,height:1,objectFit:"cover",borderRadius:"inherit"}})}):e==="video"?jsx(Q,{className:c.thumb,sx:{width:64,height:64,opacity:.48,flexShrink:0,cursor:"pointer",borderRadius:1.25,color:t=>j(t).palette.primary.main,transition:t=>t.transitions.create(["opacity","box-shadow"],{easing:t.transitions.easing.sharp,duration:t.transitions.duration.short}),...i&&{opacity:1,boxShadow:t=>`0 0 0 2px ${j(t).palette.primary.main}`},...o},...n,children:jsx(a$1,{icon:"PLAY_CIRCLE",width:32})}):null}function $e(e){let o=useTheme(),s={zIndex:9,content:'""',position:"absolute"},r=`${j(o).palette.background.paper} 20%, ${i(j(o).palette.background.paperChannel,0)} 100%)`;return e==="y"?{"&::before, &::after":{...s,left:0,height:40,width:"100%"},"&::before":{top:-8,background:`linear-gradient(to bottom, ${r}`},"&::after":{bottom:-8,background:`linear-gradient(to top, ${r}`}}:{"&::before, &::after":{...s,top:0,width:40,height:"100%"},"&::before":{left:-8,background:`linear-gradient(to right, ${r}`},"&::after":{right:-8,background:`linear-gradient(to left, ${r}`}}}var ee=e=>{let[o,s]=useState(!0),[r,i]=useState(!0),n=useCallback(()=>{e&&e.scrollPrev();},[e]),t=useCallback(()=>{e&&e.scrollNext();},[e]),a=useCallback(u=>{s(!u.canScrollPrev()),i(!u.canScrollNext());},[]);return useEffect(()=>{e&&(a(e),e.on("reInit",a),e.on("select",a));},[e,a]),{disablePrev:o,disableNext:r,onClickPrev:n,onClickNext:t}};function te(e){let[o,s]=useState(!1),r=useCallback(n=>{let t=e?.plugins()?.autoplay;if(!t)return;(t.options.stopOnInteraction===!1?t.reset:t.stop)(),n();},[e]),i=useCallback(()=>{let n=e?.plugins()?.autoplay;if(!n)return;(n.isPlaying()?n.stop:n.play)();},[e]);return useEffect(()=>{let n=e?.plugins()?.autoplay;n&&(s(n.isPlaying()),e.on("autoplay:play",()=>s(!0)).on("autoplay:stop",()=>s(!1)).on("reInit",()=>s(!1)));},[e]),{isPlaying:o,onTogglePlay:i,onClickAutoplay:r}}function se(e){let[o,s]=useState(!1),r=useCallback(n=>{let t=e?.plugins()?.autoScroll;if(!t)return;(t.options.stopOnInteraction===!1?t.reset:t.stop)(),n();},[e]),i=useCallback(()=>{let n=e?.plugins()?.autoScroll;if(!n)return;(n.isPlaying()?n.stop:n.play)();},[e]);return useEffect(()=>{let n=e?.plugins()?.autoScroll;n&&(s(n.isPlaying()),e.on("autoScroll:play",()=>s(!0)).on("autoScroll:stop",()=>s(!1)).on("reInit",()=>s(!1)));},[e]),{isPlaying:o,onTogglePlay:i,onClickAutoplay:r}}function ne(e){let[o,s]=useState(0),[r,i]=useState(0),[n,t]=useState([]),a=useCallback(l=>{e&&e.scrollTo(l);},[e]),u=useCallback(l=>{t(l.scrollSnapList());},[]),p=useCallback(l=>{i(l.selectedScrollSnap()),s(l.scrollSnapList().length);},[]);return useEffect(()=>{e&&(u(e),p(e),e.on("reInit",u),e.on("reInit",p),e.on("select",p));},[e,u,p]),{dotCount:o,scrollSnaps:n,selectedIndex:r,onClickDot:a}}function le(e,o){let s=useRef(0),r=useRef([]),i=typeof o=="number"?o:.24,n=useCallback(u=>{r.current=u.slideNodes().map(p=>p.querySelector(".slide__parallax__layer"));},[]),t=useCallback(u=>{s.current=i*u.scrollSnapList().length;},[i]),a=useCallback((u,p)=>{let l=u.internalEngine(),m=u.scrollProgress(),d=u.slidesInView(),_=p==="scroll";u.scrollSnapList().forEach((y,b)=>{let x=y-m;l.slideRegistry[b].forEach(E=>{if(_&&!d.includes(E))return;l.options.loop&&l.slideLooper.loopPoints.forEach(M=>{let V=M.target();if(E===M.index&&V!==0){let F=Math.sign(V);F===-1&&(x=y-(1+m)),F===1&&(x=y+(1-m));}});let pe=x*(-1*s.current)*100,D=r.current[E];D&&(D.style.transform=`translateX(${pe}%)`);});});},[]);return useEffect(()=>{!e||!o||(n(e),t(e),a(e),e.on("reInit",n).on("reInit",t).on("reInit",a).on("scroll",a));},[e,a]),null}function ie(e){let[o,s]=useState(0),r=useCallback(i=>{let n=Math.max(0,Math.min(1,i.scrollProgress()));s(n*100);},[]);return useEffect(()=>{e&&(r(e),e.on("reInit",r),e.on("scroll",r));},[e,r]),{value:o}}function ce(e,o){let[s,r]=Ye({containScroll:"keepSnaps",dragFree:!0,...o}),[i,n]=useState(0),t=useCallback(u=>{!e||!r||e.scrollTo(u);},[e,r]),a=useCallback(()=>{!e||!r||(n(e.selectedScrollSnap()),r.scrollTo(e.selectedScrollSnap()));},[e,r,n]);return useEffect(()=>{e&&(a(),e.on("select",a),e.on("reInit",a));},[e,a]),{onClickThumb:t,thumbsRef:s,thumbsApi:r,selectedIndex:i}}var kt=(e,o)=>{let[s,r]=Ye(e,o),{disablePrev:i,disableNext:n,onClickPrev:t,onClickNext:a}=ee(r),u=o?.map(b=>b.name),p=ne(r),l=te(r),m=se(r),d=ie(r),_=ce(r,e?.thumbs);le(r,e?.parallax);let y=useMemo(()=>u?.includes("autoplay")?{onClickPrev:()=>l.onClickAutoplay(t),onClickNext:()=>l.onClickAutoplay(a)}:u?.includes("autoScroll")?{onClickPrev:()=>m.onClickAutoplay(t),onClickNext:()=>m.onClickAutoplay(a)}:{onClickPrev:t,onClickNext:a},[m,l,a,t,u]);return {options:{...e,...r?.internalEngine().options},pluginNames:u,mainRef:s,mainApi:r,arrows:{disablePrev:i,disableNext:n,onClickPrev:y.onClickPrev,onClickNext:y.onClickNext},dots:p,thumbs:_,progress:d,autoplay:l,autoScroll:m}};
14
+ var Ge={xs:"(min-width: 0px)",sm:"(min-width: 600px)",md:"(min-width: 900px)",lg:"(min-width: 1200px)",xl:"(min-width: 1536px)"};var c={root:"mnl__carousel__root",container:"mnl__carousel__container",dots:"mnl__carousel__dots",dot:"mnl__carousel__dot",arrows:"mnl__carousel__arrows",arrowsLabel:"mnl__carousel__arrows_label",arrowPrev:"mnl__carousel__btn--prev",arrowNext:"mnl__carousel__btn--next",arrowSvg:"mnl__carousel__btn__svg",slide:"mnl__carousel__slide",slideContent:"mnl__carousel__slide__content",thumbs:"mnl__carousel__thumbs",thumb:"mnl__carousel__thumb",thumbContainer:"mnl__carousel__thumbs__container",thumbImage:"mnl__carousel__thumb__image",progress:"mnl__carousel__progress",progressBar:"mnl__carousel__progress__bar",state:{selected:"state--selected",disabled:"state--disabled"}};var pe=styled(N,{shouldForwardProp:e=>e!=="axis"&&e!=="slideSpacing"})(({axis:e,slideSpacing:o})=>({display:"block",position:"relative",...e==="x"&&{minWidth:0,paddingLeft:o},...e==="y"&&{minHeight:0,paddingTop:o}})),me=styled(N)(()=>({overflow:"hidden",position:"relative",borderRadius:"inherit"}));function w({sx:e,options:o,children:s,...r}){let i=de(o?.slidesToShow);return jsx(pe,{component:"li",axis:o?.axis??"x",slideSpacing:o?.slideSpacing,className:c.slide,sx:{flex:i,...e},...r,children:o?.parallax?jsx(me,{className:c.slideContent,children:jsx("div",{className:"slide__parallax__layer",children:s})}):s})}function de(e){return e&&typeof e=="object"?Object.keys(e).reduce((o,s)=>{let r=e[s];return o[s]=W(r),o},{}):W(e)}function W(e=1){if(typeof e=="string"){if(!(e==="auto"||e.endsWith("%")||e.endsWith("px")))throw new Error("Only accepts values: auto, px, %, or number.");return `0 0 ${e}`}if(typeof e=="number")return `0 0 ${100/e}%`;throw new Error("Invalid value type. Only accepts values: auto, px, %, or number.")}var T=styled(N,{shouldForwardProp:e=>e!=="axis"})(({axis:e})=>({margin:"auto",width:"100%",maxWidth:"100%",overflow:"hidden",position:"relative",...e==="y"&&{height:"100%"}})),I=styled(N,{shouldForwardProp:e=>e!=="axis"&&e!=="slideSpacing"})(({axis:e,slideSpacing:o})=>({display:"flex",backfaceVisibility:"hidden",...e==="x"&&{touchAction:"pan-y pinch-zoom",marginLeft:`calc(${o} * -1)`},...e==="y"&&{height:"100%",flexDirection:"column",touchAction:"pan-x pinch-zoom",marginTop:`calc(${o} * -1)`}}));function io({carousel:e,children:o,sx:s,slotProps:r}){let{mainRef:i,options:a}=e,t=a?.axis??"x",n=a?.slideSpacing??"0px",u=a?.direction??"ltr",p=Children.map(o,l=>{if(isValidElement(l)){let m=l;return jsx(w,{options:e.options,sx:r?.slide,children:l},m.key)}return null});return jsx(T,{sx:s,axis:t,ref:i,dir:u,className:c.root,children:jsx(I,{component:"ul",axis:t,slideSpacing:n,className:c.container,sx:{...e.pluginNames?.includes("autoHeight")&&{alignItems:"flex-start",transition:l=>l.transitions.create(["height"],{easing:l.transitions.easing.easeInOut,duration:l.transitions.duration.shorter})},...r?.container},children:p})})}function Co({options:e,slotProps:o,totalSlides:s,selectedIndex:r,onClickPrev:i,onClickNext:a,disablePrev:t,disableNext:n,sx:u,...p}){return jsxs(Y,{direction:"row",alignItems:"center",display:"inline-flex",className:c.arrows,sx:{gap:.5,zIndex:9,color:"action.active",...u},...p,children:[jsx(h,{variant:"prev",options:e,disabled:t,onClick:i,svgIcon:o?.prevBtn?.svgIcon,svgSize:o?.prevBtn?.svgSize,sx:o?.prevBtn?.sx}),jsx(h,{variant:"next",options:e,disabled:n,onClick:a,svgIcon:o?.nextBtn?.svgIcon,svgSize:o?.prevBtn?.svgSize,sx:o?.prevBtn?.sx})]})}function ho({options:e,slotProps:o,totalSlides:s,selectedIndex:r,onClickPrev:i$1,onClickNext:a,disablePrev:t,disableNext:n,sx:u,...p}){let l=useTheme();return jsxs(Y,{direction:"row",alignItems:"center",display:"inline-flex",className:c.arrows,sx:{p:.5,gap:.25,zIndex:9,borderRadius:1.25,color:"common.white",bgcolor:i(l.vars.palette.grey["900Channel"],.48),...u},...p,children:[jsx(h,{variant:"prev",options:e,disabled:t,onClick:i$1,sx:{p:.75,borderRadius:"inherit",...o?.prevBtn?.sx},svgIcon:o?.prevBtn?.svgIcon,svgSize:o?.prevBtn?.svgSize??16}),jsxs(N,{component:"span",className:c.arrowsLabel,sx:{mx:.5,typography:"subtitle2"},children:[r,"/",s]}),jsx(h,{variant:"next",options:e,disabled:n,onClick:a,sx:{p:.75,borderRadius:"inherit",...o?.nextBtn?.sx},svgIcon:o?.nextBtn?.svgIcon,svgSize:o?.prevBtn?.svgSize??16})]})}function So({options:e,slotProps:o,onClickPrev:s,onClickNext:r,disablePrev:i,disableNext:a$1}){let t={zIndex:9,top:"50%",borderRadius:1.5,position:"absolute",color:"common.white",bgcolor:"text.primary",transform:"translateY(-50%)","&:hover":{opacity:.8},[a.dark]:{color:"grey.800"}};return jsxs(Fragment,{children:[jsx(h,{variant:"prev",options:e,disabled:i,onClick:s,svgIcon:o?.prevBtn?.svgIcon,svgSize:o?.prevBtn?.svgSize,sx:{left:-16,...t,...o?.prevBtn?.sx}}),jsx(h,{variant:"next",options:e,disabled:a$1,onClick:r,svgIcon:o?.nextBtn?.svgIcon,svgSize:o?.nextBtn?.svgSize,sx:{right:-16,...t,...o?.nextBtn?.sx}})]})}function h({sx:e,svgIcon:o,svgSize:s,options:r,variant:i,...a}){let t=i==="prev",n=i==="next",u=o||jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M15.488 4.43a.75.75 0 0 1 .081 1.058L9.988 12l5.581 6.512a.75.75 0 1 1-1.138.976l-6-7a.75.75 0 0 1 0-.976l6-7a.75.75 0 0 1 1.057-.081",clipRule:"evenodd"}),p=o||jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M8.512 4.43a.75.75 0 0 1 1.057.082l6 7a.75.75 0 0 1 0 .976l-6 7a.75.75 0 0 1-1.138-.976L14.012 12L8.431 5.488a.75.75 0 0 1 .08-1.057",clipRule:"evenodd"});return jsx(J,{className:t?c.arrowPrev:c.arrowPrev,"aria-label":t?"Prev button":"Next button",sx:{p:1,borderRadius:"50%",boxSizing:"content-box",transition:l=>l.transitions.create(["all"],{easing:l.transitions.easing.sharp,duration:l.transitions.duration.short}),[`&.${buttonBaseClasses.disabled}`]:{opacity:.4},...e,...r?.direction==="rtl"&&{...t&&{right:-16,left:"auto"},...n&&{left:-16,right:"auto"}}},...a,children:jsx(he,{className:c.arrowSvg,sx:{width:s??20,height:s??20,...r?.axis==="y"&&{transform:" rotate(90deg)"},...r?.direction==="rtl"&&{transform:" scaleX(-1)"}},children:t?u:p})})}function To({sx:e,gap:o,slotProps:s,onClickDot:r,scrollSnaps:i$1,selectedIndex:a$1,fallbackCount:t=1,variant:n="circular",fallback:u=!1,...p}){let l=useTheme(),m={number:o??6,rounded:o??2,circular:o??2},d={circular:s?.dot?.size??18,number:s?.dot?.size??28},S=jsx(N,{sx:{height:d.circular,width:`calc(${t*d.circular+m.circular*(t-1)}px )`,...n==="number"&&{height:d.number,width:`calc(${t*d.number+m.number*(t-1)}px )`}}}),f={circular:y=>({width:d.circular,height:d.circular,"&::before":{width:8,height:8,content:'""',opacity:.24,borderRadius:"50%",bgcolor:"primary.main",transition:l.transitions.create(["opacity"],{easing:l.transitions.easing.sharp,duration:l.transitions.duration.short}),...y&&{opacity:1}}}),rounded:y=>({width:d.circular,height:d.circular,"&::before":{width:8,height:8,content:'""',opacity:.24,borderRadius:"50%",bgcolor:"primary.main",transition:l.transitions.create(["width","opacity"],{easing:l.transitions.easing.sharp,duration:l.transitions.duration.short}),...y&&{width:"calc(100% - 4px)",opacity:1,borderRadius:1}}}),number:y=>({width:d.number,height:d.number,borderRadius:"50%",typography:"caption",color:"text.disabled",border:`solid 1px ${i(l.vars.palette.grey["500Channel"],.16)}`,...y&&{color:"common.white",bgcolor:"text.primary",fontWeight:"fontWeightSemiBold",[a.dark]:{color:"grey.800"}}})};return jsx(_e,{fallback:u?S:null,children:jsx(N,{component:"ul",className:c.dots,sx:{zIndex:9,display:"inline-flex",...n==="circular"&&{gap:`${m.circular}px`},...n==="rounded"&&{gap:`${m.rounded}px`},...n==="number"&&{gap:`${m.number}px`},...e},...p,children:i$1.map((y,g)=>{let v=g===a$1;return jsx(N,{component:"li",sx:{display:"inline-flex"},children:jsx(J,{disableRipple:!0,"aria-label":`dot-${g}`,className:c.dot.concat(v?` ${c.state.selected}`:""),onClick:()=>r(g),sx:{...n==="circular"&&f.circular(v),...n==="rounded"&&f.rounded(v),...n==="number"&&f.number(v),[`&.${c.state.selected}`]:{...s?.dot?.selected},...s?.dot?.sx},children:n==="number"&&g+1})},g)})})})}var we=styled(N)(({theme:e})=>({height:6,maxWidth:120,width:"100%",borderRadius:6,overflow:"hidden",position:"relative",color:e.vars.palette.text.primary,backgroundColor:i(e.vars.palette.grey["500Channel"],.2)})),Pe=styled(N)(()=>({top:0,bottom:0,width:"100%",left:"-100%",position:"absolute",backgroundColor:"currentColor"}));function Uo({value:e,sx:o,...s}){return jsx(we,{sx:o,className:c.progress,...s,children:jsx(Pe,{className:c.progressBar,sx:{transform:`translate3d(${e}%, 0px, 0px)`}})})}var Ne=forwardRef(({children:e,slotProps:o,options:s,sx:r,...i},a)=>{let t=s?.axis??"x",n=s?.slideSpacing??"12px",u=Oe(t),p=Children.map(e,l=>{if(isValidElement(l)){let m=l;return jsx(w,{options:{...s,slideSpacing:n},sx:o?.slide,children:l},m.key)}return null});return jsx(T,{ref:a,slideSpacing:void 0,axis:t,className:c.thumbs,sx:{flexShrink:0,...t==="x"&&{p:.5,maxWidth:1},...t==="y"&&{p:.5,maxHeight:1},...!o?.disableMask&&u,...r},...i,children:jsx(I,{component:"ul",axis:t,slideSpacing:n,className:c.thumbContainer,sx:{...o?.container},children:p})})});Ne.displayName="CarouselThumbs";function Go({thumbType:e="image",sx:o,src:s,index:r,selected:i,...a}){return e==="image"&&s?jsx(J,{className:c.thumb,sx:{width:64,height:64,opacity:.48,flexShrink:0,cursor:"pointer",borderRadius:1.25,transition:t=>t.transitions.create(["opacity","box-shadow"],{easing:t.transitions.easing.sharp,duration:t.transitions.duration.short}),...i&&{opacity:1,boxShadow:t=>`0 0 0 2px ${t.vars.palette.primary.main}`},...o},...a,children:jsx(N,{component:"img",alt:`carousel-thumb-${r}`,src:s,className:c.thumbImage,sx:{width:1,height:1,objectFit:"cover",borderRadius:"inherit"}})}):e==="video"?jsx(J,{className:c.thumb,sx:{width:64,height:64,opacity:.48,flexShrink:0,cursor:"pointer",borderRadius:1.25,color:t=>t.vars.palette.primary.main,transition:t=>t.transitions.create(["opacity","box-shadow"],{easing:t.transitions.easing.sharp,duration:t.transitions.duration.short}),...i&&{opacity:1,boxShadow:t=>`0 0 0 2px ${t.vars.palette.primary.main}`},...o},...a,children:jsx(a$1,{icon:"PLAY_CIRCLE",width:32})}):null}function Oe(e){let o=useTheme(),s={zIndex:9,content:'""',position:"absolute"},r=`${o.vars.palette.background.paper} 20%, ${i(o.vars.palette.background.paperChannel,0)} 100%)`;return e==="y"?{"&::before, &::after":{...s,left:0,height:40,width:"100%"},"&::before":{top:-8,background:`linear-gradient(to bottom, ${r}`},"&::after":{bottom:-8,background:`linear-gradient(to top, ${r}`}}:{"&::before, &::after":{...s,top:0,width:40,height:"100%"},"&::before":{left:-8,background:`linear-gradient(to right, ${r}`},"&::after":{right:-8,background:`linear-gradient(to left, ${r}`}}}var A=e=>{let[o,s]=useState(!0),[r,i]=useState(!0),a=useCallback(()=>{e&&e.scrollPrev();},[e]),t=useCallback(()=>{e&&e.scrollNext();},[e]),n=useCallback(u=>{s(!u.canScrollPrev()),i(!u.canScrollNext());},[]);return useEffect(()=>{e&&(n(e),e.on("reInit",n),e.on("select",n));},[e,n]),{disablePrev:o,disableNext:r,onClickPrev:a,onClickNext:t}};function oe(e){let[o,s]=useState(!1),r=useCallback(a=>{let t=e?.plugins()?.autoplay;if(!t)return;(t.options.stopOnInteraction===!1?t.reset:t.stop)(),a();},[e]),i=useCallback(()=>{let a=e?.plugins()?.autoplay;if(!a)return;(a.isPlaying()?a.stop:a.play)();},[e]);return useEffect(()=>{let a=e?.plugins()?.autoplay;a&&(s(a.isPlaying()),e.on("autoplay:play",()=>s(!0)).on("autoplay:stop",()=>s(!1)).on("reInit",()=>s(!1)));},[e]),{isPlaying:o,onTogglePlay:i,onClickAutoplay:r}}function re(e){let[o,s]=useState(!1),r=useCallback(a=>{let t=e?.plugins()?.autoScroll;if(!t)return;(t.options.stopOnInteraction===!1?t.reset:t.stop)(),a();},[e]),i=useCallback(()=>{let a=e?.plugins()?.autoScroll;if(!a)return;(a.isPlaying()?a.stop:a.play)();},[e]);return useEffect(()=>{let a=e?.plugins()?.autoScroll;a&&(s(a.isPlaying()),e.on("autoScroll:play",()=>s(!0)).on("autoScroll:stop",()=>s(!1)).on("reInit",()=>s(!1)));},[e]),{isPlaying:o,onTogglePlay:i,onClickAutoplay:r}}function se(e){let[o,s]=useState(0),[r,i]=useState(0),[a,t]=useState([]),n=useCallback(l=>{e&&e.scrollTo(l);},[e]),u=useCallback(l=>{t(l.scrollSnapList());},[]),p=useCallback(l=>{i(l.selectedScrollSnap()),s(l.scrollSnapList().length);},[]);return useEffect(()=>{e&&(u(e),p(e),e.on("reInit",u),e.on("reInit",p),e.on("select",p));},[e,u,p]),{dotCount:o,scrollSnaps:a,selectedIndex:r,onClickDot:n}}function ne(e,o){let s=useRef(0),r=useRef([]),i=typeof o=="number"?o:.24,a=useCallback(u=>{r.current=u.slideNodes().map(p=>p.querySelector(".slide__parallax__layer"));},[]),t=useCallback(u=>{s.current=i*u.scrollSnapList().length;},[i]),n=useCallback((u,p)=>{let l=u.internalEngine(),m=u.scrollProgress(),d=u.slidesInView(),S=p==="scroll";u.scrollSnapList().forEach((f,y)=>{let g=f-m;l.slideRegistry[y].forEach(k=>{if(S&&!d.includes(k))return;l.options.loop&&l.slideLooper.loopPoints.forEach(D=>{let M=D.target();if(k===D.index&&M!==0){let V=Math.sign(M);V===-1&&(g=f-(1+m)),V===1&&(g=f+(1-m));}});let ce=g*(-1*s.current)*100,U=r.current[k];U&&(U.style.transform=`translateX(${ce}%)`);});});},[]);return useEffect(()=>{!e||!o||(a(e),t(e),n(e),e.on("reInit",a).on("reInit",t).on("reInit",n).on("scroll",n));},[e,n]),null}function le(e){let[o,s]=useState(0),r=useCallback(i=>{let a=Math.max(0,Math.min(1,i.scrollProgress()));s(a*100);},[]);return useEffect(()=>{e&&(r(e),e.on("reInit",r),e.on("scroll",r));},[e,r]),{value:o}}function ue(e,o){let[s,r]=Xe({containScroll:"keepSnaps",dragFree:!0,...o}),[i,a]=useState(0),t=useCallback(u=>{!e||!r||e.scrollTo(u);},[e,r]),n=useCallback(()=>{!e||!r||(a(e.selectedScrollSnap()),r.scrollTo(e.selectedScrollSnap()));},[e,r,a]);return useEffect(()=>{e&&(n(),e.on("select",n),e.on("reInit",n));},[e,n]),{onClickThumb:t,thumbsRef:s,thumbsApi:r,selectedIndex:i}}var vt=(e,o)=>{let[s,r]=Xe(e,o),{disablePrev:i,disableNext:a,onClickPrev:t,onClickNext:n}=A(r),u=o?.map(y=>y.name),p=se(r),l=oe(r),m=re(r),d=le(r),S=ue(r,e?.thumbs);ne(r,e?.parallax);let f=useMemo(()=>u?.includes("autoplay")?{onClickPrev:()=>l.onClickAutoplay(t),onClickNext:()=>l.onClickAutoplay(n)}:u?.includes("autoScroll")?{onClickPrev:()=>m.onClickAutoplay(t),onClickNext:()=>m.onClickAutoplay(n)}:{onClickPrev:t,onClickNext:n},[m,l,n,t,u]);return {options:{...e,...r?.internalEngine().options},pluginNames:u,mainRef:s,mainApi:r,arrows:{disablePrev:i,disableNext:a,onClickPrev:f.onClickPrev,onClickNext:f.onClickNext},dots:p,thumbs:S,progress:d,autoplay:l,autoScroll:m}};
15
15
 
16
- export { S as ArrowButton, uo as Carousel, So as CarouselArrowBasicButtons, vo as CarouselArrowFloatButtons, _o as CarouselArrowNumberButtons, Oo as CarouselDotButtons, Fo as CarouselProgressBar, P as CarouselSlide, et as CarouselThumb, Oe as CarouselThumbs, N as StyledContainer, I as StyledRoot, Ze as carouselBreakpoints, c as carouselClasses, kt as useCarousel };
16
+ export { h as ArrowButton, io as Carousel, Co as CarouselArrowBasicButtons, So as CarouselArrowFloatButtons, ho as CarouselArrowNumberButtons, To as CarouselDotButtons, Uo as CarouselProgressBar, w as CarouselSlide, Go as CarouselThumb, Ne as CarouselThumbs, I as StyledContainer, T as StyledRoot, Ge as carouselBreakpoints, c as carouselClasses, vt as useCarousel };
@@ -1,10 +1,10 @@
1
- import { b } from '../../../chunk-63CPL562.js';
2
- import '../../../chunk-PYQSTVMS.js';
1
+ import { b } from '../../../chunk-ACBPYYHL.js';
2
+ import '../../../chunk-2ASANKMO.js';
3
3
  import '../../../chunk-POYHCRBF.js';
4
4
  import '../../../chunk-7K5LEO3G.js';
5
5
  import '../../../chunk-T7I256S6.js';
6
6
  import '../../../chunk-HIZ3EEIX.js';
7
- import '../../../chunk-I3WCQOJG.js';
7
+ import '../../../chunk-D27ND54J.js';
8
8
  import '../../../chunk-P4KEDWSP.js';
9
9
  import '../../../chunk-7QYYR6YS.js';
10
10
  import '../../../chunk-KFZEM7KS.js';
@@ -1,18 +1,18 @@
1
- import { d as d$1 } from '../../../chunk-2MK3HC7U.js';
2
- import { d, e as e$1 } from '../../../chunk-PYQSTVMS.js';
1
+ import { d as d$1 } from '../../../chunk-6FD4QTPD.js';
2
+ import { d, e as e$1 } from '../../../chunk-2ASANKMO.js';
3
3
  import { a as a$5 } from '../../../chunk-POYHCRBF.js';
4
4
  import '../../../chunk-7K5LEO3G.js';
5
5
  import '../../../chunk-T7I256S6.js';
6
6
  import { e } from '../../../chunk-HIZ3EEIX.js';
7
7
  import { a as a$3 } from '../../../chunk-YWEB6IAI.js';
8
- import '../../../chunk-I3WCQOJG.js';
8
+ import '../../../chunk-D27ND54J.js';
9
9
  import { a as a$4 } from '../../../chunk-P4KEDWSP.js';
10
10
  import '../../../chunk-7QYYR6YS.js';
11
11
  import { a as a$2 } from '../../../chunk-KFZEM7KS.js';
12
12
  import { a } from '../../../chunk-GA4A5P3S.js';
13
13
  import { a as a$1 } from '../../../chunk-M6QHAL4V.js';
14
14
  import '../../../chunk-W3MYAMTH.js';
15
- import '../../../chunk-CPOHV43Y.js';
15
+ import '../../../chunk-E5WA43MY.js';
16
16
  import '../../../chunk-ILHUUK4X.js';
17
17
  import { useFormContext, Controller } from 'react-hook-form';
18
18
  import J from '@mui/material/FormHelperText';
@@ -1,6 +1,6 @@
1
- import { a } from '../../chunk-HRELVSCJ.js';
1
+ import { a } from '../../chunk-ZODC2MGF.js';
2
2
  import '../../chunk-ZDHXW74M.js';
3
- import '../../chunk-I3WCQOJG.js';
3
+ import '../../chunk-D27ND54J.js';
4
4
  import C from '@mui/material/TableCell';
5
5
  import F from '@mui/material/TableRow';
6
6
  import { jsx, jsxs } from 'react/jsx-runtime';
@@ -1,22 +1,22 @@
1
- export { a as UploadAvatar, b as UploadAvatarWithCrop, b as UploadWithCrop } from '../../chunk-63CPL562.js';
2
- export { c as DeleteButton, a as MultiFilePreview, b as SingleFilePreview, d as Upload } from '../../chunk-2MK3HC7U.js';
3
- export { c as RejectionFiles } from '../../chunk-PYQSTVMS.js';
1
+ export { a as UploadAvatar, b as UploadAvatarWithCrop, b as UploadWithCrop } from '../../chunk-ACBPYYHL.js';
2
+ export { c as DeleteButton, a as MultiFilePreview, b as SingleFilePreview, d as Upload } from '../../chunk-6FD4QTPD.js';
3
+ export { c as RejectionFiles } from '../../chunk-2ASANKMO.js';
4
4
  import '../../chunk-POYHCRBF.js';
5
5
  import '../../chunk-7K5LEO3G.js';
6
6
  import '../../chunk-T7I256S6.js';
7
7
  import '../../chunk-HIZ3EEIX.js';
8
- import { i, j } from '../../chunk-I3WCQOJG.js';
8
+ import { i } from '../../chunk-D27ND54J.js';
9
9
  import '../../chunk-P4KEDWSP.js';
10
10
  import '../../chunk-7QYYR6YS.js';
11
11
  import '../../chunk-KFZEM7KS.js';
12
12
  import '../../chunk-M6QHAL4V.js';
13
13
  import '../../chunk-W3MYAMTH.js';
14
- import '../../chunk-CPOHV43Y.js';
14
+ import '../../chunk-E5WA43MY.js';
15
15
  import '../../chunk-ILHUUK4X.js';
16
16
  import { useDropzone } from 'react-dropzone';
17
- import h from '@mui/material/Box';
17
+ import x from '@mui/material/Box';
18
18
  import { jsxs, jsx } from 'react/jsx-runtime';
19
19
 
20
- function R({error:a,disabled:t,sx:i$1,...n}){let{getRootProps:l,getInputProps:m,isDragActive:f,isDragReject:s}=useDropzone({disabled:t,...n}),d=s||a;return jsxs(h,{...l(),sx:{width:64,height:64,flexShrink:0,display:"flex",borderRadius:1,cursor:"pointer",alignItems:"center",color:"text.disabled",justifyContent:"center",bgcolor:o=>i(j(o).palette.grey["500Channel"],.08),border:o=>`dashed 1px ${i(j(o).palette.grey["500Channel"],.16)}`,...f&&{opacity:.72},...t&&{opacity:.48,pointerEvents:"none"},...d&&{color:"error.main",borderColor:"error.main",bgcolor:o=>i(j(o).palette.error.mainChannel,.08)},"&:hover":{opacity:.72},...i$1},children:[jsx("input",{...m()}),"Selecionar arquivo"]})}
20
+ function B({error:p,disabled:e,sx:a,...n}){let{getRootProps:i$1,getInputProps:l,isDragActive:s,isDragReject:m}=useDropzone({disabled:e,...n}),f=m||p;return jsxs(x,{...i$1(),sx:{width:64,height:64,flexShrink:0,display:"flex",borderRadius:1,cursor:"pointer",alignItems:"center",color:"text.disabled",justifyContent:"center",bgcolor:o=>i(o.vars.palette.grey["500Channel"],.08),border:o=>`dashed 1px ${i(o.vars.palette.grey["500Channel"],.16)}`,...s&&{opacity:.72},...e&&{opacity:.48,pointerEvents:"none"},...f&&{color:"error.main",borderColor:"error.main",bgcolor:o=>i(o.vars.palette.error.mainChannel,.08)},"&:hover":{opacity:.72},...a},children:[jsx("input",{...l()}),"Selecionar arquivo"]})}
21
21
 
22
- export { R as UploadBox };
22
+ export { B as UploadBox };
@@ -1,3 +1,3 @@
1
- export { b as defaultFont, c as primaryFont, d as secondaryFont, a as shadows, e as typography } from '../../chunk-UL4XNPI2.js';
2
- export { m as action, k as background, l as baseAction, n as basePalette, q as colorSchemes, i as common, a as components, r as createShadowColor, s as customShadows, p as darkPalette, h as error, b as grey, e as info, o as lightPalette, c as primary, d as secondary, f as success, j as text, g as warning } from '../../chunk-MQZWHADG.js';
3
- import '../../chunk-I3WCQOJG.js';
1
+ export { b as defaultFont, c as primaryFont, d as secondaryFont, a as shadows, e as typography } from '../../chunk-U3ISU3GH.js';
2
+ export { m as action, k as background, l as baseAction, n as basePalette, q as colorSchemes, i as common, a as components, r as createShadowColor, s as customShadows, p as darkPalette, h as error, b as grey, e as info, o as lightPalette, c as primary, d as secondary, f as success, j as text, g as warning } from '../../chunk-53KWNYSW.js';
3
+ import '../../chunk-D27ND54J.js';
@@ -1,6 +1,5 @@
1
1
  import * as _mui_material_styles_createTypography from '@mui/material/styles/createTypography';
2
2
  import * as csstype from 'csstype';
3
- import * as _mui_material_styles from '@mui/material/styles';
4
3
  import { CSSObject, Theme } from '@mui/material/styles';
5
4
 
6
5
  /**
@@ -12,12 +11,12 @@ declare const hideScrollX: CSSObject;
12
11
  declare const hideScrollY: CSSObject;
13
12
  /**
14
13
  * Usage:
15
- * ...textGradient(`to right, ${getPalette(theme).palette.text.primary}, ${alpha(getPalette(theme).palette.text.primary, 0.2)}`
14
+ * ...textGradient(`to right, ${theme.vars.palette.text.primary}, ${alpha(theme.vars.palette.text.primary, 0.2)}`
16
15
  */
17
16
  declare function textGradient(color: string): CSSObject;
18
17
  /**
19
18
  * Usage:
20
- * ...borderGradient({ color: `to right, ${getPalette(theme).palette.text.primary}, ${alpha(getPalette(theme).palette.text.primary, 0.2)}`, padding: '4px' }),
19
+ * ...borderGradient({ color: `to right, ${theme.vars.palette.text.primary}, ${alpha(theme.vars.palette.text.primary, 0.2)}`, padding: '4px' }),
21
20
  */
22
21
  type BorderGradientProps = {
23
22
  color?: string;
@@ -26,7 +25,7 @@ type BorderGradientProps = {
26
25
  declare function borderGradient(props?: BorderGradientProps): CSSObject;
27
26
  /**
28
27
  * Usage:
29
- * ...bgGradient({ color: `to right, ${getPalette(theme).palette.grey[900]} 25%, ${varAlpha(getPalette(theme).palette.primary.darkerChannel, 0.88)}`, imgUrl: '/assets/background/overlay.png' }),
28
+ * ...bgGradient({ color: `to right, ${theme.vars.palette.grey[900]} 25%, ${varAlpha(theme.vars.palette.primary.darkerChannel, 0.88)}`, imgUrl: '/assets/background/overlay.png' }),
30
29
  */
31
30
  type BgGradientProps = {
32
31
  color: string;
@@ -35,7 +34,7 @@ type BgGradientProps = {
35
34
  declare function bgGradient({ color, imgUrl }: BgGradientProps): CSSObject;
36
35
  /**
37
36
  * Usage:
38
- * ...bgBlur({ color: `varAlpha(getPalette(theme).palette.background.paperChannel, 0.8)`, imgUrl: '/assets/background/overlay.png', blur: 6 }),
37
+ * ...bgBlur({ color: `varAlpha(theme.vars.palette.background.paperChannel, 0.8)`, imgUrl: '/assets/background/overlay.png', blur: 6 }),
39
38
  */
40
39
  type BgBlurProps = {
41
40
  color: string;
@@ -59,7 +58,7 @@ type MaxLineProps = {
59
58
  declare function maxLine({ line, persistent }: MaxLineProps): CSSObject;
60
59
  /**
61
60
  * Usage:
62
- * ...paper({ theme, color: varAlpha(getPalette(theme).palette.background.paperChannel, 0.9), dropdown: true }),
61
+ * ...paper({ theme, color: varAlpha(theme.vars.palette.background.paperChannel, 0.9), dropdown: true }),
63
62
  */
64
63
  type PaperProps = {
65
64
  theme: Theme;
@@ -1911,6 +1910,5 @@ declare function createPaletteChannel(hexPalette: Record<string, string>): {
1911
1910
  * Color with alpha channel
1912
1911
  */
1913
1912
  declare function varAlpha(color: string, opacity?: number): string;
1914
- declare const getPalette: (theme: Theme) => _mui_material_styles.ThemeVars;
1915
1913
 
1916
- export { BgBlurProps, BgGradientProps, BorderGradientProps, MaxLineProps, MediaFontSize, bgBlur, bgGradient, borderGradient, createPaletteChannel, getPalette, hexToRgbChannel, hideScrollX, hideScrollY, maxLine, mediaQueries, menuItem, paper, pxToRem, remToPx, responsiveFontSizes, setFont, stylesMode, textGradient, varAlpha };
1914
+ export { BgBlurProps, BgGradientProps, BorderGradientProps, MaxLineProps, MediaFontSize, bgBlur, bgGradient, borderGradient, createPaletteChannel, hexToRgbChannel, hideScrollX, hideScrollY, maxLine, mediaQueries, menuItem, paper, pxToRem, remToPx, responsiveFontSizes, setFont, stylesMode, textGradient, varAlpha };
@@ -1 +1 @@
1
- export { p as bgBlur, o as bgGradient, n as borderGradient, h as createPaletteChannel, j as getPalette, g as hexToRgbChannel, k as hideScrollX, l as hideScrollY, q as maxLine, b as mediaQueries, s as menuItem, r as paper, e as pxToRem, d as remToPx, f as responsiveFontSizes, c as setFont, a as stylesMode, m as textGradient, i as varAlpha } from '../../chunk-I3WCQOJG.js';
1
+ export { o as bgBlur, n as bgGradient, m as borderGradient, h as createPaletteChannel, g as hexToRgbChannel, j as hideScrollX, k as hideScrollY, p as maxLine, b as mediaQueries, r as menuItem, q as paper, e as pxToRem, d as remToPx, f as responsiveFontSizes, c as setFont, a as stylesMode, l as textGradient, i as varAlpha } from '../../chunk-D27ND54J.js';
@@ -1,7 +1,7 @@
1
- export { a as default } from '../chunk-ZD4A6AP3.js';
2
- import '../chunk-UL4XNPI2.js';
3
- import '../chunk-4BAL5HQX.js';
1
+ export { a as default } from '../chunk-YUXWB7D7.js';
2
+ import '../chunk-U3ISU3GH.js';
3
+ import '../chunk-RXVJRSTE.js';
4
4
  import '../chunk-CFVUZ4S5.js';
5
- import '../chunk-MQZWHADG.js';
5
+ import '../chunk-53KWNYSW.js';
6
6
  import '../chunk-OGS2HFSH.js';
7
- import '../chunk-I3WCQOJG.js';
7
+ import '../chunk-D27ND54J.js';
@@ -1,4 +1,4 @@
1
- export { c as buildPrimaryColors, b as updateComponentsWithSettings, a as updateCoreWithSettings } from '../../chunk-4BAL5HQX.js';
1
+ export { c as buildPrimaryColors, b as updateComponentsWithSettings, a as updateCoreWithSettings } from '../../chunk-RXVJRSTE.js';
2
2
  import '../../chunk-CFVUZ4S5.js';
3
- import '../../chunk-MQZWHADG.js';
4
- import '../../chunk-I3WCQOJG.js';
3
+ import '../../chunk-53KWNYSW.js';
4
+ import '../../chunk-D27ND54J.js';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zydon/common",
3
- "version": "2.1.72",
3
+ "version": "2.1.74",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "module": "./dist/index.js",
@@ -1,21 +0,0 @@
1
- import { a, b, c } from './chunk-PYQSTVMS.js';
2
- import { e } from './chunk-HIZ3EEIX.js';
3
- import { i, j as j$1 } from './chunk-I3WCQOJG.js';
4
- import { a as a$1 } from './chunk-P4KEDWSP.js';
5
- import { j } from './chunk-CPOHV43Y.js';
6
- import u1 from '@mui/material/Badge';
7
- import T from '@mui/material/IconButton';
8
- import M from '@mui/material/Stack';
9
- import { styled, alpha, useTheme } from '@mui/material/styles';
10
- import x from '@mui/material/Typography';
11
- import { AnimatePresence, m } from 'framer-motion';
12
- import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
13
- import B from '@mui/material/Box';
14
- import { useDropzone } from 'react-dropzone';
15
- import a1 from '@mui/material/Button';
16
- import w1 from '@mui/material/FormHelperText';
17
- import { memo, useId } from 'react';
18
-
19
- var U=({thumbnail:e$1,files:n,onRemove:i,onHandleMainImage:c,mainUrl:t,sx:p})=>n?.length?jsx(AnimatePresence,{initial:!1,children:n.map((r,u)=>{let{key:z,name:g="",size:I=0}=a(r),F=typeof r=="string";return e$1?jsx(u1,{anchorOrigin:{vertical:"top",horizontal:"left"},badgeContent:c&&jsx(T,{size:"small",onClick:()=>c(r),sx:{color:a=>r===t?a.palette.secondary.main:a.palette.action.disabled,bgcolor:a=>a.palette.common.white,"&:hover":{bgcolor:a=>a.palette.common.white},border:a=>r===t?`1px solid ${a.palette.secondary.main}`:`1px solid ${a.palette.divider}`},children:r===t?jsx(a$1,{icon:"STAR_02",width:18}):jsx(a$1,{icon:"STAR",width:18})}),children:jsxs(M,{component:m.div,...j().inUp,alignItems:"center",display:"inline-flex",justifyContent:"center",sx:{m:.5,width:80,height:80,borderRadius:1.25,overflow:"hidden",position:"relative",border:a=>`solid 1px ${a.palette.divider}`,...p},children:[jsx(b,{tooltip:!0,imageView:!0,file:r,sx:{position:"absolute"},slotProps:{img:{position:"absolute"}}}),i&&jsx(T,{size:"small",onClick:()=>i(r),sx:{top:4,right:4,p:"1px",position:"absolute",color:a=>alpha(a.palette.common.white,.72),bgcolor:a=>alpha(a.palette.grey[900],.48),"&:hover":{bgcolor:a=>alpha(a.palette.grey[900],.72)}},children:jsx(a$1,{icon:"CLOSE_MARK_BUTTON",width:16})})]},z)},u):jsxs(M,{component:m.div,...j().inUp,spacing:2,direction:"row",alignItems:"center",sx:{my:1,px:1,py:.75,borderRadius:.75,border:a=>`solid 1px ${a.palette.divider}`,...p},children:[jsx(b,{file:r}),jsxs(M,{flexGrow:1,sx:{minWidth:0},children:[jsx(x,{variant:"subtitle2",noWrap:!0,children:F?r:g}),jsx(x,{variant:"caption",sx:{color:"text.secondary"},children:F?"":e(I)})]}),i&&jsx(T,{edge:"end",size:"small",onClick:()=>i(r),children:jsx(a$1,{icon:"CLOSE_MARK_BUTTON"})})]},z)})}):null;function t1({file:e}){let n=typeof e=="string"?e:e.name,i=typeof e=="string"?e:URL.createObjectURL(e);return jsx(B,{sx:{p:1,top:0,left:0,width:1,height:1,position:"absolute"},children:jsx(B,{component:"img",alt:n,src:i,sx:{width:1,height:1,borderRadius:1,objectFit:"cover"}})})}function j1({sx:e,...n}){return jsx(T,{size:"small",sx:{top:16,right:16,zIndex:9,position:"absolute",color:i$1=>i(j$1(i$1).palette.common.whiteChannel,.8),bgcolor:i$1=>i(j$1(i$1).palette.grey["900Channel"],.72),"&:hover":{bgcolor:i$1=>i(j$1(i$1).palette.grey["900Channel"],.48)},...e},...n,children:jsx(a$1,{icon:"CLOSE_MARK_BUTTON",width:18})})}function l1(){let e=useTheme(),n=useId(),i=j$1(e).palette.primary.main;return jsxs(Fragment,{children:[jsx("defs",{children:jsxs("linearGradient",{id:n,x1:"19.496%",x2:"77.479%",y1:"71.822%",y2:"16.69%",children:[jsx("stop",{offset:"0%",stopColor:i}),jsx("stop",{offset:"100%",stopColor:i,stopOpacity:"0"})]})}),jsx("path",{fill:`url(#${n})`,fillRule:"nonzero",d:"M0 198.78c0 41.458 14.945 79.236 39.539 107.786 28.214 32.765 69.128 53.365 114.734 53.434a148.44 148.44 0 0056.495-11.036c9.051-3.699 19.182-3.274 27.948 1.107a75.779 75.779 0 0033.957 8.01c5.023 0 9.942-.494 14.7-1.433 13.58-2.67 25.94-8.99 36.09-17.94 6.378-5.627 14.547-8.456 22.897-8.446h.142c27.589 0 53.215-8.732 74.492-23.696 19.021-13.36 34.554-31.696 44.904-53.224C474.92 234.58 480 213.388 480 190.958c0-76.93-59.774-139.305-133.498-139.305-7.516 0-14.88.663-22.063 1.899C305.418 21.42 271.355 0 232.499 0a103.651 103.651 0 00-45.88 10.661c-13.24 6.487-25.011 15.705-34.64 26.939-32.698.544-62.931 11.69-87.676 30.291C25.351 97.155 0 144.882 0 198.781z",opacity:"0.2"})]})}function v1({hideBackground:e,sx:n,...i}){let c=useTheme(),t=j$1(c).palette.primary.main,p=j$1(c).palette.primary.dark,r=j$1(c).palette.primary.darker;return jsxs(B,{component:"svg",width:"100%",height:"100%",viewBox:"0 0 480 360",xmlns:"http://www.w3.org/2000/svg",sx:{width:320,maxWidth:1,flexShrink:0,height:"auto",...n},...i,children:[!e&&jsx(l1,{}),jsx("defs",{children:jsxs("linearGradient",{id:"linearGradient-2",x1:"30.113%",x2:"30.113%",y1:"0%",y2:"100%",children:[jsx("stop",{offset:"0%",stopOpacity:"0"}),jsx("stop",{offset:"100%"})]})}),jsx("path",{fill:"#FF4842",fillRule:"nonzero",d:"M293.006 206.192c-2.248 2.672-4.676 2.628-6.123 2.251l.054-1.384s5.979-2.733 5.827-2.159c-.057.215.057.733.242 1.292zM309.393 209.217c-3.818 2.206-6.058-.38-6.578-1.112.32-.84.801-2.204.703-2.592-.144-.577 5.827 2.155 5.827 2.155l.048 1.549zM305.303 187.204s3.632-2.093 4.425-1.151c.792.942-4.425 1.151-4.425 1.151zM307.497 188.355s-.598.299.721.681c1.318.383-.721-.681-.721-.681zM285.532 182.599c-.123.036 3.022 2.123 5.862.395-.012 0-5.154-.61-5.862-.395zM291.239 186.591s-.861 1.692-2.625 1.943c-1.764.251 2.625-1.943 2.625-1.943zM302.785 190.262s4.138 6.578 3.346 8.129c-.793 1.552-3.346-8.129-3.346-8.129zM294.62 216.416c0 .368 0 .712-.036.996-.107 1.33-3.381.828-3.381.828-2.99.416-4.066-1.019-4.422-2.392a5.444 5.444 0 01-.164-1.363 5.606 5.606 0 01.054-.819v-.272a1.998 1.998 0 011.859.379c1.331 1.08 3.095.252 3.095.252s1.294.107 1.793.538c.281.242.745-.341 1.098-.897.021.359.054 1.007.074 1.701.024.356.03.714.03 1.049z",opacity:"0.05"}),jsx("path",{fill:"#FF4842",fillRule:"nonzero",d:"M289.37 216.339s-.897.879-2.589-.479a5.444 5.444 0 01-.164-1.363c.864.658 2.466 1.842 2.753 1.842zM294.62 216.416a.67.67 0 01-.519.132.672.672 0 01-.452-.287c.348-.266.669-.566.956-.897.009.359.015.717.015 1.052zM301.637 217.032c0 .371 0 .715.033.996.108 1.333 3.382.828 3.382.828 2.989.419 4.066-1.017 4.421-2.392a5.728 5.728 0 00.111-2.182v-.272a2.024 2.024 0 00-1.862.379c-1.331 1.08-3.092.251-3.092.251s-1.294.111-1.794.542c-.281.242-.744-.341-1.094-.897a61.426 61.426 0 00-.078 1.701c-.024.35-.03.708-.027 1.046z",opacity:"0.05"}),jsx("path",{fill:"#FF4842",fillRule:"nonzero",d:"M306.887 216.949s.897.879 2.587-.479c.112-.444.169-.901.167-1.36-.867.655-2.47 1.839-2.754 1.839zM301.637 217.032a.67.67 0 00.969-.155 6.35 6.35 0 01-.957-.897c-.009.356-.014.714-.012 1.052zM319.614 106.269c.063-.138.123-.275.18-.41.057-.134.077-.209.11-.317-.11.237-.206.48-.29.727z",opacity:"0.05"}),jsx("path",{fill:r,fillRule:"nonzero",d:"M157.592 279.461a4.114 4.114 0 01-.917-3.131l13.196-107.979 1.094-8.97a4.142 4.142 0 014.078-3.635l38.654-.257a4.135 4.135 0 004.108-4.249l-.015-.409a4.14 4.14 0 014.135-4.279h40.619a4.134 4.134 0 014.098 4.682 4.137 4.137 0 003.995 4.682l39.01.996a4.13 4.13 0 013.97 4.831l-19.502 113.909-.368 2.152a4.042 4.042 0 01-.598 1.543l-135.557.114z"}),jsx("path",{fill:"#FFF",fillRule:"nonzero",d:"M251.256817 123.296578L274.098317 123.296578 274.098317 200.823078 251.256817 200.823078z",transform:"rotate(34.64 262.678 162.06)"}),jsx("path",{fill:"#FFC107",fillRule:"nonzero",d:"M270.624591 129.857671L286.750291 129.857671 286.750291 145.983371 270.624591 145.983371z",transform:"rotate(34.804 278.687 137.92)"}),jsx("path",{fill:"#FFC107",fillRule:"nonzero",d:"M260.275579 145.813111L276.423079 145.813111 276.423079 161.960611 260.275579 161.960611z",opacity:"0.5",transform:"rotate(34.64 268.35 153.887)"}),jsx("path",{fill:"#FFC107",fillRule:"nonzero",d:"M249.191579 161.852111L265.339079 161.852111 265.339079 177.999611 249.191579 177.999611z",opacity:"0.3",transform:"rotate(34.64 257.265 169.926)"}),jsx("path",{fill:"#FFF",fillRule:"nonzero",d:"M237.472537 121.334214L260.314037 121.334214 260.314037 198.567714 237.472537 198.567714z",transform:"rotate(16.29 248.893 159.951)"}),jsx("path",{fill:"#FF4842",fillRule:"nonzero",d:"M249.053192 123.761554L265.200692 123.761554 265.200692 139.909054 249.053192 139.909054z",transform:"rotate(16.29 257.127 131.835)"}),jsx("path",{fill:"#FF4842",fillRule:"nonzero",d:"M243.584192 142.473554L259.731692 142.473554 259.731692 158.621053 243.584192 158.621053z",opacity:"0.5",transform:"rotate(16.29 251.658 150.547)"}),jsx("path",{fill:"#FF4842",fillRule:"nonzero",d:"M238.116192 161.182554L254.263692 161.182554 254.263692 177.330054 238.116192 177.330054z",opacity:"0.3",transform:"rotate(16.29 246.19 169.256)"}),jsx("path",{fill:"#FFF",fillRule:"nonzero",d:"M230.099192 121.641542L252.940692 121.641542 252.940692 198.875042 230.099192 198.875042z",transform:"rotate(4.6 241.52 160.258)"}),jsx("path",{fill:"#1890FF",fillRule:"nonzero",d:"M235.800489 122.985499L251.947989 122.985499 251.947989 139.132999 235.800489 139.132999z",transform:"rotate(4.6 243.874 131.06)"}),jsx("path",{fill:"#1890FF",fillRule:"nonzero",d:"M234.234488 142.413498L250.381988 142.413498 250.381988 158.560998 234.234488 158.560998z",opacity:"0.5",transform:"rotate(4.6 242.308 150.487)"}),jsx("path",{fill:"#1890FF",fillRule:"nonzero",d:"M232.672488 161.846499L248.819988 161.846499 248.819988 177.993999 232.672488 177.993999z",opacity:"0.3",transform:"rotate(4.6 240.746 169.92)"}),jsx("path",{fill:"#FFF",fillRule:"nonzero",d:"M224.736657 123.384871L247.578157 123.384871 247.578157 200.618371 224.736657 200.618371z",transform:"rotate(-2.61 236.157 162.002)"}),jsx("path",{fill:t,fillRule:"nonzero",d:"M226.751283 124.659968L242.898783 124.659968 242.898783 140.807468 226.751283 140.807468z",transform:"rotate(-2.61 234.825 132.734)"}),jsx("path",{fill:t,fillRule:"nonzero",d:"M228.305601 143.479224L244.473301 143.479224 244.473301 159.646924 228.305601 159.646924z",opacity:"0.5",transform:"rotate(-2.862 236.39 151.563)"}),jsx("path",{fill:t,fillRule:"nonzero",d:"M228.525282 163.608968L244.672782 163.608968 244.672782 179.756468 228.525282 179.756468z",opacity:"0.3",transform:"rotate(-2.61 236.599 171.683)"}),jsx("path",{fill:"#F4F6F8",fillRule:"nonzero",d:"M232.679 225.726l-20.294 7.851-29.661 11.466c-1.121-2.093-2.771-4.921-4.813-8.297-7.026-11.642-18.65-29.75-29.001-45.665-11.66-17.938-21.696-33.075-21.696-33.075l7.265-2.093 59.346-17.23 38.854 87.043z"}),jsx("path",{fill:"#000",fillRule:"nonzero",d:"M232.679 225.726l-20.294 7.851a152.535 152.535 0 01-34.484 3.169c-7.026-11.642-18.65-29.75-29-45.665l-14.42-35.18 59.343-17.218 38.855 87.043z",opacity:"0.1"}),jsx("path",{fill:t,fillRule:"nonzero",d:"M247.777 220.841s-31.526 18.65-78.596 14.432l-37.525-91.486 17.984-3.091 62.168-10.677 35.279 89.043.69 1.779z"}),jsx("path",{fill:"#FF4842",fillRule:"nonzero",d:"M247.075 219.074c-7.424.365-16.013.329-24.654-.702-9.351-1.101-18.757-3.367-26.82-7.523-6.742-3.471-12.506-7.247-17.532-11.776-13.074-11.759-21.164-28.579-28.429-58.365l62.168-10.677 35.267 89.043z",opacity:"0.1"}),jsx("path",{fill:"#FFF",fillRule:"nonzero",d:"M270.203 213.959s-23.239 4.55-46.894 1.749c-9.351-1.1-18.757-3.367-26.82-7.522-6.742-3.471-12.503-7.247-17.532-11.777-16.181-14.557-24.725-36.866-33.536-81.918 0 0 38.633 9.325 76.836-11.101-.012.015 12.865 80.373 47.946 110.569z"}),jsx("path",{fill:t,fillRule:"nonzero",d:"M165.405 131.03s31.416-1.776 40.187-8.548l1.331 4.276s-20.758 9.157-41.518 9.268v-4.996zM165.405 152.137s30.417-1.665 53.399-12.766l.777 1.776s-18.237 10.647-54.176 13.433v-2.443zM167.853 160.362s30.418-1.665 53.397-12.766l.777 1.776s-18.237 10.643-54.174 13.433v-2.443zM170.299 168.599s30.417-1.666 53.399-12.766l.774 1.775s-18.237 10.647-54.173 13.433v-2.442zM172.748 176.835s30.417-1.665 53.396-12.766l.777 1.776s-18.237 10.647-54.173 13.433v-2.443zM175.193 185.075s30.417-1.665 53.399-12.766l.774 1.776s-18.237 10.643-54.173 13.433v-2.443z",opacity:"0.3"}),jsx("path",{fill:t,fillRule:"nonzero",d:"M389.069 287.344s-12.641-.762-11.152 8.097c0 0-.299 1.563 1.124 2.275 0 0 .021-.658 1.295-.434.454.077.916.099 1.375.066a2.832 2.832 0 001.677-.694c.468-.409 3.555-1.468 4.936-7.274 0 0 1.023-1.267.981-1.593l-2.132.897s.73 1.54.156 2.816c0 0-.069-2.759-.479-2.691-.083 0-1.109.533-1.109.533s1.253 2.69.299 4.628c0 0 .359-3.304-.699-4.434l-1.495.876s1.465 2.768.472 5.029c0 0 .254-3.465-.789-4.817l-1.361 1.062s1.379 2.729.539 4.604c0 0-.111-4.036-.835-4.341 0 0-1.195 1.049-1.369 1.494 0 0 .942 1.98.356 3.026 0 0-.359-2.691-.652-2.691 0 0-1.196 1.794-1.309 2.99 0 0 .051-1.818 1.022-3.172a3.593 3.593 0 00-1.818.942s.186-1.262 2.111-1.37c0 0 .981-1.351 1.241-1.435 0 0-1.914-.158-3.074.356 0 0 1.023-1.196 3.427-.649l1.342-1.094s-2.52-.347-3.588.036c0 0 1.229-1.052 3.95-.299l1.462-.873s-2.147-.463-3.426-.299c0 0 1.348-.729 3.856.06l1.044-.47s-1.573-.299-2.033-.358c-.461-.06-.488-.174-.488-.174a5.426 5.426 0 012.957.329s2.222-.813 2.186-.954z"}),jsx("ellipse",{cx:"380.363",cy:"298.487",fill:t,fillRule:"nonzero",opacity:"0.1",rx:"8.945",ry:"1.513"}),jsx("path",{fill:t,fillRule:"nonzero",d:"M394.956 258.102s-7.125-.43-6.279 4.565a1.218 1.218 0 00.631 1.283s.015-.371.733-.245c.255.042.515.054.774.036.349-.023.681-.159.945-.389.264-.23 2.003-.828 2.783-4.102 0 0 .577-.714.553-.897l-1.196.511s.41.87.087 1.591c0 0-.039-1.558-.269-1.522-.048 0-.625.299-.625.299s.706 1.495.173 2.61c0 0 .204-1.862-.394-2.502l-.846.496s.825 1.561.266 2.834c0 0 .143-1.955-.446-2.714l-.765.598s.774 1.539.299 2.595c0 0-.063-2.275-.469-2.446a4.75 4.75 0 00-.775.834s.532 1.118.204 1.707c0 0-.204-1.515-.368-1.521 0 0-.67 1.001-.739 1.689a3.671 3.671 0 01.577-1.794 2.007 2.007 0 00-1.025.532s.104-.711 1.196-.771c0 0 .553-.763.699-.81 0 0-1.079-.09-1.734.2 0 0 .577-.67 1.932-.365l.759-.619s-1.423-.194-2.024.021c0 0 .694-.598 2.227-.161l.826-.494a7.445 7.445 0 00-1.935-.164s.763-.413 2.174.033l.598-.263s-.897-.177-1.148-.203c-.252-.027-.275-.099-.275-.099a3.078 3.078 0 011.668.185s1.232-.46 1.208-.538z"}),jsx("ellipse",{cx:"390.052",cy:"264.383",fill:t,fillRule:"nonzero",opacity:"0.1",rx:"5.044",ry:"1"}),jsx("path",{fill:t,fillRule:"nonzero",d:"M352.896 262.437s-8.604-.52-7.588 5.51a1.47 1.47 0 00.763 1.549s0-.449.897-.299c.309.052.623.067.935.045a1.923 1.923 0 001.142-.473c.318-.279 2.419-.998 3.361-4.951 0 0 .697-.861.667-1.085l-1.468.622s.496 1.046.104 1.916c0 0-.048-1.877-.326-1.835-.056 0-.753.364-.753.364s.852 1.824.209 3.152c0 0 .245-2.249-.475-3.02l-1.023.598s.996 1.886.32 3.423c0 0 .174-2.359-.535-3.289l-.927.724s.939 1.857.365 3.133c0 0-.072-2.747-.565-2.954 0 0-.81.715-.933 1.008 0 0 .64 1.348.242 2.06 0 0-.245-1.83-.445-1.839 0 0-.804 1.214-.897 2.042.04-.768.28-1.512.697-2.159a2.427 2.427 0 00-1.235.643s.125-.858 1.435-.933c0 0 .667-.92.846-.974 0 0-1.303-.111-2.093.239 0 0 .694-.807 2.329-.44l.915-.747s-1.713-.233-2.442.024c0 0 .837-.715 2.69-.191l.996-.598s-1.462-.314-2.335-.201c0 0 .921-.496 2.625.042l.711-.32s-1.07-.209-1.384-.242c-.314-.033-.329-.119-.329-.119a3.69 3.69 0 012.012.221s1.519-.553 1.492-.646z"}),jsx("ellipse",{cx:"346.97",cy:"270.022",fill:t,fillRule:"nonzero",opacity:"0.1",rx:"6.09",ry:"1.028"}),jsx("rect",{width:"51.026",height:"91.312",x:"303.926",y:"69.211",fill:"#FFF",fillRule:"nonzero",rx:"4.737",transform:"rotate(-71.99 329.44 114.867)"}),jsx("circle",{cx:"303.613",cy:"103.507",r:"9.376",fill:t,fillRule:"nonzero",opacity:"0.2"}),jsx("path",{fill:t,fillRule:"nonzero",d:"M344.582495 86.4883769L347.150665 86.4883769 347.150665 127.336977 344.582495 127.336977z",opacity:"0.2",transform:"rotate(-71.99 345.867 106.913)"}),jsx("path",{fill:t,fillRule:"nonzero",d:"M333.028401 99.6373982L335.596571 99.6373982 335.596571 120.445898 333.028401 120.445898z",opacity:"0.2",transform:"rotate(-71.99 334.312 110.042)"}),jsx("path",{fill:t,fillRule:"nonzero",d:"M337.109071 101.431004L339.677241 101.431004 339.677241 135.086304 337.109071 135.086304z",opacity:"0.2",transform:"rotate(-71.99 338.393 118.259)"}),jsx("path",{fill:t,fillRule:"nonzero",d:"M338.505494 105.174377L341.073664 105.174377 341.073664 146.022978 338.505494 146.022978z",opacity:"0.2",transform:"rotate(-71.99 339.79 125.599)"}),jsx("path",{fill:t,fillRule:"nonzero",d:"M348.060839 134.648161L353.026769 134.648161 353.026769 145.952261 348.060839 145.952261z",opacity:"0.5",transform:"rotate(-71.99 350.544 140.3)"}),jsx("rect",{width:"50.3",height:"78.305",x:"291.549",y:"174.486",fill:"#FFF",fillRule:"nonzero",rx:"4",transform:"rotate(-57.265 316.7 213.638)"}),jsx("path",{fill:"#DFE3E8",fillRule:"nonzero",d:"M278.038439 203.88874L292.269539 203.88874 292.269539 207.23723 278.038439 207.23723z",transform:"rotate(-57.57 285.154 205.563)"}),jsx("path",{fill:"#DFE3E8",fillRule:"nonzero",d:"M283.007935 199.201889L314.262535 199.201889 314.262535 202.272339 283.007935 202.272339z",transform:"rotate(-57.57 298.635 200.737)"}),jsx("path",{fill:"#DFE3E8",fillRule:"nonzero",d:"M288.543935 202.715889L319.798535 202.715889 319.798535 205.786339 288.543935 205.786339z",transform:"rotate(-57.57 304.171 204.251)"}),jsx("path",{fill:"#DFE3E8",fillRule:"nonzero",d:"M294.078936 206.235889L325.333536 206.235889 325.333536 209.306339 294.078936 209.306339z",transform:"rotate(-57.57 309.706 207.771)"}),jsx("path",{fill:"#DFE3E8",fillRule:"nonzero",d:"M299.879919 211.40702L331.090719 211.40702 331.090719 214.47316 299.879919 214.47316z",transform:"rotate(-57.265 315.485 212.94)"}),jsx("path",{fill:"#F4F6F8",fillRule:"nonzero",d:"M305.149936 213.268889L336.404536 213.268889 336.404536 216.339339 305.149936 216.339339z",transform:"rotate(-57.57 320.777 214.804)"}),jsx("path",{fill:"#F4F6F8",fillRule:"nonzero",d:"M310.685935 216.782889L341.940535 216.782889 341.940535 219.853339 310.685935 219.853339z",transform:"rotate(-57.57 326.313 218.318)"}),jsx("path",{fill:"#DFE3E8",fillRule:"nonzero",d:"M341.417983 210.406958L349.511163 210.406958 349.511163 218.500138 341.417983 218.500138z",transform:"rotate(-57.57 345.465 214.454)"}),jsx("path",{fill:t,fillRule:"nonzero",d:"M269.277 168.76l-45.767.493a3.127 3.127 0 00-3.094 3.125v3.782a3.127 3.127 0 01-3.05 3.124l-33.024.792a3.124 3.124 0 01-3.095-2.308l-1.551-5.701a3.124 3.124 0 00-3.053-2.308l-44.113.475a3.125 3.125 0 00-3.05 3.648l17.747 104.449a3.129 3.129 0 003.071 2.604l139.363.598a3.129 3.129 0 003.082-3.714l-20.366-106.521a3.125 3.125 0 00-3.1-2.538z"}),jsx("path",{fill:p,fillRule:"nonzero",d:"M269.277 168.76l-45.767.493a3.127 3.127 0 00-3.094 3.125v3.782a3.127 3.127 0 01-3.05 3.124l-33.024.792a3.124 3.124 0 01-3.095-2.308l-1.551-5.701a3.124 3.124 0 00-3.053-2.308l-44.113.475a3.125 3.125 0 00-3.05 3.648l17.747 104.449a3.129 3.129 0 003.071 2.604l139.363.598a3.129 3.129 0 003.082-3.714l-20.366-106.521a3.125 3.125 0 00-3.1-2.538z",opacity:"0.243"}),jsx("path",{fill:"url(#linearGradient-2)",fillRule:"nonzero",d:"M269.277 168.76l-45.767.493a3.127 3.127 0 00-3.094 3.125v3.782a3.127 3.127 0 01-3.05 3.124l-33.024.792a3.124 3.124 0 01-3.095-2.308l-1.551-5.701a3.124 3.124 0 00-3.053-2.308l-44.113.475a3.125 3.125 0 00-3.05 3.648l17.747 104.449a3.129 3.129 0 003.071 2.604l139.363.598a3.129 3.129 0 003.082-3.714l-20.366-106.521a3.125 3.125 0 00-3.1-2.538z",opacity:"0.32"}),jsx("ellipse",{cx:"119.593",cy:"258.664",fill:t,fillRule:"nonzero",opacity:"0.1",rx:"4.846",ry:"1"}),jsx("ellipse",{cx:"101.03",cy:"260.545",fill:t,fillRule:"nonzero",opacity:"0.1",rx:"4.846",ry:"1"}),jsx("ellipse",{cx:"108.459",cy:"265.905",fill:t,fillRule:"nonzero",opacity:"0.1",rx:"3.444",ry:"1"}),jsx("ellipse",{cx:"89.193",cy:"265.433",fill:t,fillRule:"nonzero",opacity:"0.1",rx:"3.444",ry:"1"}),jsx("path",{fill:t,fillRule:"nonzero",d:"M100.925 260.398s6.796-22.279-1.064-31.204c-5.881-6.676-12.557-5.877-15.547-5.052a5.528 5.528 0 00-3.564 2.963c-1.046 2.254-.858 5.913 6.521 10.186 12.35 7.151 13.119 16.96 13.119 16.96l.535 6.147z"}),jsx("path",{stroke:r,strokeLinecap:"round",strokeWidth:"0.5",d:"M85.382 227.302s20.031 6.278 15.546 33.096M97.083 229.547s-2.76 1.86-1.88 4.655M87.39 231.203s1.687-1.716 3.741-.768M95.31 239.832s2.963-1.495 3.728.379M102.638 242.962s-2.224-.176-2.263.897"}),jsx("path",{fill:t,fillRule:"nonzero",d:"M101.2 260.575s-7.961-16.193-10.147-15.846c-1.037.17-1.516 1.196-1.734 2.218a6.516 6.516 0 00.434 3.941c1.13 2.601 4.165 7.519 11.447 9.687z"}),jsx("path",{stroke:r,strokeLinecap:"round",strokeWidth:"0.5",d:"M91.113 247.808s8.353 12.115 9.968 12.647"}),jsx("path",{stroke:r,strokeLinecap:"round",strokeWidth:"0.5",d:"M90.344 249.701L92.293 249.701"}),jsx("path",{stroke:r,strokeLinecap:"round",strokeWidth:"0.5",d:"M92.68 254.132L95.738 254.263"}),jsx("path",{stroke:r,strokeLinecap:"round",strokeWidth:"0.5",d:"M94.542 250.586L94.21 252.179"}),jsx("path",{stroke:r,strokeLinecap:"round",strokeWidth:"0.5",d:"M97.792 255.432L97.732 256.879"}),jsx("path",{fill:t,fillRule:"nonzero",d:"M100.964 260.575s7.959-16.193 10.144-15.846c1.041.17 1.519 1.196 1.734 2.218a6.514 6.514 0 01-.433 3.941c-1.13 2.601-4.168 7.519-11.445 9.687z"}),jsx("path",{stroke:r,strokeLinecap:"round",strokeWidth:"0.5",d:"M111.051 247.808s-8.371 12.115-9.97 12.647"}),jsx("path",{stroke:r,strokeLinecap:"round",strokeWidth:"0.5",d:"M111.82 249.701L109.871 249.701"}),jsx("path",{stroke:r,strokeLinecap:"round",strokeWidth:"0.5",d:"M109.485 254.132L106.426 254.263"}),jsx("path",{stroke:r,strokeLinecap:"round",strokeWidth:"0.5",d:"M107.622 250.586L107.954 252.179"}),jsx("path",{stroke:r,strokeLinecap:"round",strokeWidth:"0.5",d:"M104.372 255.432L104.432 256.879"}),jsx("path",{fill:t,fillRule:"nonzero",d:"M87.295 264.357a1.375 1.375 0 01-.452-.685.599.599 0 01.317-.697c.3-.11.598.09.837.299.24.21.512.431.81.38a1.237 1.237 0 01-.382-1.16.47.47 0 01.105-.236c.161-.174.454-.099.648.039.598.43.787 1.264.79 2.018.03-.277.03-.555 0-.831a.853.853 0 01.334-.727.938.938 0 01.476-.114.988.988 0 01.774.222.767.767 0 01-.03.947c-.229.257-.5.474-.801.64a1.805 1.805 0 00-.571.547.399.399 0 00-.042.096h-1.74a4.826 4.826 0 01-1.073-.738zM117.626 257.833a1.355 1.355 0 01-.452-.682.599.599 0 01.314-.696c.299-.111.598.089.837.299.239.209.509.436.817.391a1.236 1.236 0 01-.386-1.157.472.472 0 01.107-.236c.162-.173.455-.099.649.036.613.433.787 1.268.79 2.021a4.008 4.008 0 000-.834.852.852 0 01.299-.736.955.955 0 01.475-.11.998.998 0 01.774.218.768.768 0 01-.033.951 2.996 2.996 0 01-.798.64 1.767 1.767 0 00-.571.544.499.499 0 00-.042.098h-1.701a4.78 4.78 0 01-1.079-.747zM107.518 264.357a1.406 1.406 0 01-.455-.685.6.6 0 01.317-.697c.299-.11.598.09.837.299.239.21.505.437.816.395a1.247 1.247 0 01-.385-1.16.472.472 0 01.107-.236c.162-.174.455-.099.649.039.613.43.783 1.264.789 2.018.03-.277.03-.555 0-.832a.855.855 0 01.314-.735.93.93 0 01.476-.114.988.988 0 01.774.222.764.764 0 01-.033.947 3.028 3.028 0 01-.798.64 1.798 1.798 0 00-.571.547.411.411 0 00-.042.096h-1.734c-.385-.2-.742-.45-1.061-.744z"}),jsx("circle",{cx:"84.467",cy:"87.003",r:"6.467",fill:t,fillRule:"nonzero",opacity:"0.1"}),jsx("circle",{cx:"395.425",cy:"138.681",r:"6.467",fill:t,fillRule:"nonzero",opacity:"0.1"}),jsx("circle",{cx:"279.178",cy:"66.467",r:"6.467",fill:t,fillRule:"nonzero",opacity:"0.1"}),jsx("circle",{cx:"97.4",cy:"122.68",r:"10.838",fill:t,fillRule:"nonzero",opacity:"0.1"}),jsx("path",{fill:p,fillRule:"nonzero",d:"M206.029 209.911c-7.975 0-14.44 6.465-14.44 14.44s6.465 14.44 14.44 14.44 14.44-6.465 14.44-14.44-6.465-14.44-14.44-14.44z"}),jsx("path",{fill:t,fillRule:"nonzero",d:"M206.029 211.59c7.047 0 12.761 5.714 12.761 12.761 0 7.048-5.714 12.761-12.761 12.761-7.048 0-12.761-5.713-12.761-12.761.006-7.045 5.716-12.754 12.761-12.761",opacity:"0.72"}),jsx("path",{fill:p,fillRule:"nonzero",d:"M200.058 225.406l-.699-.681a.721.721 0 010-1.065l6.127-5.984a.753.753 0 01.546-.231c.206 0 .404.083.545.231l6.127 5.978a.733.733 0 010 1.065l-.699.682a.768.768 0 01-1.091 0l-3.622-3.727v8.843a.725.725 0 01-.219.523.76.76 0 01-.534.217h-1.009a.75.75 0 01-.759-.74v-8.832l-3.622 3.726a.768.768 0 01-1.091-.005z"})]})}var i1=memo(v1);var p1=styled("div")(({theme:e})=>({outline:"none",cursor:"pointer",overflow:"hidden",position:"relative",padding:e.spacing(5),borderRadius:e.shape.borderRadius,transition:e.transitions.create("padding"),backgroundColor:e.palette.background.neutral,border:`1px dashed ${alpha(e.palette.grey[500],.32)}`,"&:hover":{opacity:.72}})),s1=({header:e,description:n,sx:i,...c})=>jsxs(M,{spacing:5,alignItems:"center",justifyContent:"center",direction:{xs:"column",md:"row"},sx:{width:1,textAlign:{xs:"center",md:"left"},...i},...c,children:[jsx(i1,{sx:{width:220}}),jsxs("div",{children:[jsx(x,{gutterBottom:!0,variant:"h5",children:e||"Soltar ou selecionar arquivos"}),jsx(x,{variant:"body2",sx:{color:"text.secondary"},children:n||jsxs(Fragment,{children:["Solte os arquivos aqui ou clique",jsx(x,{variant:"body2",component:"span",sx:{mx:.5,color:"primary.main",textDecoration:"underline"},children:"procurar"}),"na sua m\xE1quina"]})})]})]}),P1=({id:e$1,disabled:n,multiple:i=!1,error:c$1,helperText:t,file:p,onDelete:r,files:u,thumbnail:z,onRemove:g,onHandleMainImage:I,mainUrl:F,sx:a,dropZoneProps:c1,placeholderProps:O,placeholderAlt:_,image:N,tabIndex:f1,preview:d1="image",onRemoveAll:G,onUpload:K,...m1})=>{let{getRootProps:$,getInputProps:q,isDragActive:Y,isDragReject:h1,fileRejections:j$1}=useDropzone({multiple:i,disabled:n,...m1}),S=!!p&&!i,k=S||N,Z=u&&i&&u.length>0,H=typeof p=="string",V=h1||!!c$1;return d1==="file"?jsxs(B,{sx:{width:1,position:"relative",...a},children:[jsxs(p1,{...$(),sx:{...Y&&{opacity:.72},...V&&{color:"error.main",bgcolor:"error.lighter",borderColor:"error.light"},...n&&{opacity:.48,pointerEvents:"none"}},children:[jsx("input",{...q()}),jsx(s1,{sx:{...S&&{display:"none"}}}),S&&jsxs(M,{component:m.div,...j().inUp,spacing:2,direction:"row",alignItems:"center",sx:{my:1,px:1,py:.75,borderRadius:.75,border:h=>`solid 1px ${h.palette.divider}`,...a},children:[jsx(b,{file:p}),jsxs(M,{flexGrow:1,sx:{minWidth:0},children:[jsx(x,{variant:"subtitle2",noWrap:!0,children:H?p:p.name}),jsx(x,{variant:"caption",sx:{color:"text.secondary"},children:H?"":e(p.size)})]}),r&&jsx(T,{edge:"end",size:"small",onClick:r,children:jsx(a$1,{icon:"CLOSE_MARK_BUTTON"})})]})]}),t&&t,jsx(c,{files:j$1}),Z&&jsxs(Fragment,{children:[jsx(B,{sx:{my:3},children:jsx(U,{files:u,thumbnail:z,onRemove:g})}),jsxs(M,{direction:"row",justifyContent:"flex-end",spacing:1.5,children:[G&&jsx(a1,{color:"inherit",variant:"outlined",size:"small",onClick:G,children:"Remover todos"}),K&&jsx(a1,{size:"small",variant:"contained",onClick:K,children:"Enviar arquivos"})]})]})]}):jsxs(B,{sx:{width:1,position:"relative",...a},children:[jsxs(p1,{...$(),sx:{...Y&&{opacity:.72},...V&&{color:"error.main",bgcolor:"error.lighter",borderColor:"error.light"},...n&&{opacity:.48,pointerEvents:"none"},...c1},children:[jsx("input",{...q(),id:e$1,tabIndex:f1}),_?jsx(M,{sx:{...k&&{opacity:0}},children:_}):jsx(s1,{sx:{...k&&{opacity:0}},header:O?.title,description:O?.description}),k&&jsx(t1,{file:p||N||""})]}),t&&jsx(w1,{error:!!c$1,sx:h=>({mx:"14px",color:n?h.palette.grey[500]:void 0}),children:t}),jsx(c,{files:j$1}),k&&r&&jsx(T,{size:"small",onClick:r,sx:{top:16,right:16,zIndex:9,position:"absolute",color:h=>alpha(h.palette.common.white,.8),bgcolor:h=>alpha(h.palette.grey[900],.72),"&:hover":{bgcolor:h=>alpha(h.palette.grey[900],.48)}},children:jsx(a$1,{icon:"CLOSE_MARK_BUTTON",width:18})}),Z&&jsx(Fragment,{children:jsx(B,{sx:{my:3},children:jsx(U,{files:u,thumbnail:z,onRemove:g,onHandleMainImage:I,mainUrl:F})})})]})},w2=P1;
20
-
21
- export { U as a, t1 as b, j1 as c, w2 as d };
@@ -1,18 +0,0 @@
1
- import { c, f } from './chunk-PYQSTVMS.js';
2
- import { a as a$3 } from './chunk-POYHCRBF.js';
3
- import { e } from './chunk-HIZ3EEIX.js';
4
- import { i, j } from './chunk-I3WCQOJG.js';
5
- import { a } from './chunk-P4KEDWSP.js';
6
- import { a as a$2 } from './chunk-KFZEM7KS.js';
7
- import { a as a$1 } from './chunk-M6QHAL4V.js';
8
- import { useState, useEffect } from 'react';
9
- import { useDropzone } from 'react-dropzone';
10
- import U from '@mui/material/Box';
11
- import _ from '@mui/material/Typography';
12
- import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
13
- import J from '@mui/material/Dialog';
14
- import K from '@mui/material/Stack';
15
-
16
- function k({sx:p,error:s,file:e,disabled:m,helperText:f,...g}){let{getRootProps:C,getInputProps:b,isDragActive:w,isDragReject:h,fileRejections:v}=useDropzone({multiple:!1,disabled:m,accept:{"image/*":[]},...g}),r=!!e,t=h||!!s,[P,u]=useState("");useEffect(()=>{typeof e=="string"?u(e):e instanceof File&&u(URL.createObjectURL(e));},[e]);let x=r&&jsx("img",{alt:"avatar",src:P,style:{width:"100%",height:"100%",borderRadius:"50%",objectFit:"cover"}}),R=jsxs(U,{className:"upload-placeholder",sx:{top:0,gap:1,left:0,width:1,height:1,zIndex:9,display:"flex",borderRadius:"50%",position:"absolute",alignItems:"center",color:"text.disabled",flexDirection:"column",justifyContent:"center",bgcolor:o=>i(j(o).palette.grey["500Channel"],.08),transition:o=>o.transitions.create(["opacity"],{duration:o.transitions.duration.shorter}),"&:hover":{opacity:.72},...t&&{color:"error.main",bgcolor:o=>i(j(o).palette.error.mainChannel,.08)},...r&&{zIndex:9,opacity:0,color:"common.white",bgcolor:o=>i(j(o).palette.grey["900Channel"],.64)}},children:[jsx(a,{icon:"ADD_IMAGE",width:32}),jsx(_,{variant:"caption",children:r?"Atualizar foto":"Enviar foto"})]}),I=jsxs(U,{sx:{width:1,height:1,overflow:"hidden",borderRadius:"50%",position:"relative"},children:[x,R]});return jsxs(Fragment,{children:[jsxs(U,{...C(),sx:{p:1,m:"auto",width:144,height:144,cursor:"pointer",overflow:"hidden",borderRadius:"50%",border:o=>`1px dashed ${i(j(o).palette.grey["500Channel"],.2)}`,...w&&{opacity:.72},...m&&{opacity:.48,pointerEvents:"none"},...t&&{borderColor:"error.main"},...r&&{...t&&{bgcolor:o=>i(j(o).palette.error.mainChannel,.08)},"&:hover .upload-placeholder":{opacity:1}},...p},children:[jsx("input",{...b()}),I]}),f&&f,jsx(c,{files:v})]})}var Q=({onFileCropped:p,onImageUploaded:s,onCancel:e$1,aspect:m,label:f$1,image:g="",uploading:C,file:b,tabIndex:w,maxSize:h,onDropRejected:v,...r})=>{let{id:t,setCropModalOpen:P,handleRemove:u,cropModalOpen:x,cancelChanges:R,saveChanges:I,previewImage:o,setCropper:W,preview:D,closePreviewImage:$,saving:q}=a$1({onFileCropped:p,onImageUploaded:s,onCancel:e$1}),{error:F}=a$2();return jsxs(Fragment,{children:[jsxs(K,{position:"relative",alignItems:"center",justifyContent:"center",children:[C&&jsx(f,{}),jsx(k,{...r,maxSize:h,id:t,file:b,onDrop:i=>{if(i.length>0){P(!0);let l=new FileReader;l.addEventListener("load",()=>{let A=l.result?.toString()||"";s(A),p(i[0]);}),l.readAsDataURL(i[0]);}},image:g,tabIndex:w,onDropRejected:(i,l)=>{let A=i[0]?.errors[0]?.code;s(void 0),p(void 0),F(A==="file-too-large"?`Imagem n\xE3o pode ser maior que ${e(h)}`:"Erro ao enviar imagem"),v&&v(i,l);}})]}),jsx(a$3,{id:t,open:x,onClose:R,label:f$1,aspectRatio:m,imageSrc:g,onRemove:u,onSave:I,onPreview:o,onInitialized:W,loading:q}),jsx(J,{open:!!D,onClose:$,scroll:"body",PaperProps:{sx:{p:2}},children:D&&jsx("img",{src:D,alt:"Preview"})})]})},vo=Q;
17
-
18
- export { k as a, vo as b };
@@ -1,10 +0,0 @@
1
- import { a } from './chunk-ZDHXW74M.js';
2
- import { i, j } from './chunk-I3WCQOJG.js';
3
- import g from '@mui/material/Box';
4
- import h from '@mui/material/Stack';
5
- import y from '@mui/material/Typography';
6
- import { jsxs, jsx } from 'react/jsx-runtime';
7
-
8
- var f=({sx:c,imgUrl:p,action:a$1,filled:d,slotProps:e,description:m,title:i$1="No data",...x})=>jsxs(h,{flexGrow:1,alignItems:"center",justifyContent:"center",sx:{px:3,height:1,...d&&{borderRadius:2,bgcolor:o=>i(j(o).palette.grey["500Channel"],.04),border:o=>`dashed 1px ${i(j(o).palette.grey["500Channel"],.08)}`},...c},...x,children:[p?jsx(g,{component:"img",alt:"empty content",src:p,sx:{width:1,maxWidth:160,...e?.img}}):jsx(a,{}),i$1&&jsx(y,{variant:"h6",component:"span",sx:{mt:1,textAlign:"center",...e?.title,color:"text.disabled"},children:i$1}),m&&jsx(y,{variant:"caption",sx:{mt:1,textAlign:"center",color:"text.disabled",...e?.description},children:m}),a$1&&a$1]}),S=f;
9
-
10
- export { S as a };