@zydon/common 2.2.42 → 2.2.43

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 (189) hide show
  1. package/dist/components/ActionButton/index.js +8 -3
  2. package/dist/components/Autocomplete/index.js +12 -3
  3. package/dist/components/AutocompleteDetailed/index.js +13 -3
  4. package/dist/components/BuilderLayout/index.js +5 -9
  5. package/dist/components/BuilderSidebar/index.js +5 -7
  6. package/dist/components/ColorPickerInput/index.js +12 -2
  7. package/dist/components/ColoredLabel/index.js +5 -4
  8. package/dist/components/Common/index.js +6 -19
  9. package/dist/components/Confirm/index.js +3 -3
  10. package/dist/components/CustomAvatar/index.js +9 -1
  11. package/dist/components/CustomAvatarGroup/index.js +3 -3
  12. package/dist/components/DashedDivider/index.js +6 -1
  13. package/dist/components/DataCards/index.js +12 -18
  14. package/dist/components/DataGrid/index.js +8 -12
  15. package/dist/components/DatePicker/index.js +3 -3
  16. package/dist/components/DateRangePicker/index.js +3 -3
  17. package/dist/components/DateTimePicker/index.js +3 -3
  18. package/dist/components/Delayed/index.js +2 -2
  19. package/dist/components/Drawer/index.js +8 -9
  20. package/dist/components/EmptyContent/index.js +10 -3
  21. package/dist/components/EmptyView/index.js +8 -2
  22. package/dist/components/Error/index.js +7 -7
  23. package/dist/components/ExpandableGroup/index.js +8 -10
  24. package/dist/components/FixedProgressBar/index.js +6 -1
  25. package/dist/components/FrameSkeleton/index.js +10 -13
  26. package/dist/components/HelpButton/index.js +7 -3
  27. package/dist/components/Icon/index.js +58 -2
  28. package/dist/components/ImageCrop/index.js +7 -1
  29. package/dist/components/ImageCropModal/index.js +14 -5
  30. package/dist/components/Incrementer/index.js +11 -5
  31. package/dist/components/Label/index.js +7 -6
  32. package/dist/components/LoadingScreen/index.js +4 -5
  33. package/dist/components/MaskedInput/index.js +8 -1
  34. package/dist/components/MenuItem/index.js +7 -8
  35. package/dist/components/MenuPopover/index.js +8 -1
  36. package/dist/components/Modal/index.js +11 -3
  37. package/dist/components/ModalActions/index.js +3 -3
  38. package/dist/components/MoreMenu/index.js +7 -8
  39. package/dist/components/NumberInput/index.js +8 -1
  40. package/dist/components/PasswordRules/index.js +5 -7
  41. package/dist/components/PopoverSelect/index.js +6 -10
  42. package/dist/components/Portal/index.js +6 -1
  43. package/dist/components/Result/index.js +5 -1
  44. package/dist/components/SavedChanges/index.js +4 -4
  45. package/dist/components/Scrollbar/index.js +9 -1
  46. package/dist/components/SearchInput/index.js +10 -3
  47. package/dist/components/SelectableCards/index.js +17 -8
  48. package/dist/components/SeoPreview/index.js +8 -10
  49. package/dist/components/SplashScreen/index.js +4 -4
  50. package/dist/components/Steps/index.js +9 -11
  51. package/dist/components/StyledTab/index.js +6 -7
  52. package/dist/components/StyledTabs/index.js +3 -3
  53. package/dist/components/Summary/index.js +3 -5
  54. package/dist/components/SwapList/index.js +13 -17
  55. package/dist/components/TabPanel/index.js +3 -3
  56. package/dist/components/TextMaxLine/index.js +9 -2
  57. package/dist/components/TimePicker/index.js +3 -3
  58. package/dist/components/ToggleButtonGroup/index.js +3 -4
  59. package/dist/components/Tooltip/index.js +2 -2
  60. package/dist/components/WhiteBox/index.js +6 -1
  61. package/dist/components/animate/index.js +4 -2
  62. package/dist/components/carousel/index.js +9 -16
  63. package/dist/components/form/Address/index.js +8 -12
  64. package/dist/components/form/Autocomplete/index.js +7 -4
  65. package/dist/components/form/AutocompleteDetailed/index.js +4 -6
  66. package/dist/components/form/Checkbox/index.js +3 -3
  67. package/dist/components/form/Codes/index.js +7 -7
  68. package/dist/components/form/ColorPicker/index.js +4 -5
  69. package/dist/components/form/DatePicker/index.js +3 -3
  70. package/dist/components/form/DateRangePicker/index.js +3 -3
  71. package/dist/components/form/DateTimePicker/index.js +3 -3
  72. package/dist/components/form/Field/index.js +7 -1
  73. package/dist/components/form/Form/index.js +3 -3
  74. package/dist/components/form/Incrementer/index.js +4 -8
  75. package/dist/components/form/InputTags/index.js +3 -3
  76. package/dist/components/form/MaskedInput/index.js +7 -2
  77. package/dist/components/form/MultiCheckbox/index.js +3 -3
  78. package/dist/components/form/MultiChipField/index.js +3 -3
  79. package/dist/components/form/NumberInput/index.js +4 -4
  80. package/dist/components/form/Password/index.js +8 -9
  81. package/dist/components/form/RadioGroup/index.js +3 -3
  82. package/dist/components/form/SelectableCards/index.js +4 -11
  83. package/dist/components/form/Switch/index.js +3 -3
  84. package/dist/components/form/TimePicker/index.js +3 -3
  85. package/dist/components/form/UploadAvatarWithCrop/index.js +6 -17
  86. package/dist/components/form/UploadWithCrop/index.js +6 -20
  87. package/dist/components/form/Webhook/index.js +15 -16
  88. package/dist/components/lightbox/index.js +2 -16
  89. package/dist/components/table/index.js +9 -21
  90. package/dist/components/upload/index.js +8 -23
  91. package/dist/hooks/useActiveElement.js +1 -1
  92. package/dist/hooks/useApiMessage.js +1 -1
  93. package/dist/hooks/useAutocomplete.js +2 -2
  94. package/dist/hooks/useCopyToClipboard.js +1 -1
  95. package/dist/hooks/useDatagrid.js +1 -1
  96. package/dist/hooks/useDebounceValue.js +1 -1
  97. package/dist/hooks/useDeepCompareEffect.js +2 -2
  98. package/dist/hooks/useEventCallback.js +6 -2
  99. package/dist/hooks/useEventListener.js +5 -1
  100. package/dist/hooks/useIsMounting.js +1 -1
  101. package/dist/hooks/useIsomorphicLayoutEffect.js +5 -1
  102. package/dist/hooks/useLocalStorage.js +3 -4
  103. package/dist/hooks/useMount.js +1 -1
  104. package/dist/hooks/useOnClickOutside.js +3 -3
  105. package/dist/hooks/usePagination.js +1 -1
  106. package/dist/hooks/usePopover.js +5 -1
  107. package/dist/hooks/useResponsive.js +6 -1
  108. package/dist/hooks/useScrollOffSetTop.js +1 -1
  109. package/dist/hooks/useSnackbar.js +5 -1
  110. package/dist/hooks/useTabs.js +1 -1
  111. package/dist/hooks/useToggle.js +5 -1
  112. package/dist/hooks/useUpload.js +6 -1
  113. package/dist/hooks/useUploadImage.js +7 -2
  114. package/dist/index.js +4 -2
  115. package/dist/locales/all-langs.js +7 -1
  116. package/dist/theme/core/index.js +5 -3
  117. package/dist/theme/styles/index.js +2 -1
  118. package/dist/theme/theme-provider.js +10 -7
  119. package/dist/theme/with-settings/index.js +1 -4
  120. package/dist/types/icon.js +3 -1
  121. package/dist/types/webhook.js +2 -2
  122. package/dist/utils/color.js +5 -1
  123. package/dist/utils/compare.js +5 -1
  124. package/dist/utils/date.js +1 -1
  125. package/dist/utils/formatNumber.js +3 -1
  126. package/dist/utils/formatTime.js +7 -1
  127. package/dist/utils/loadable.js +3 -3
  128. package/dist/utils/mask.js +1 -1
  129. package/dist/utils/number.js +3 -1
  130. package/dist/utils/sort.js +1 -1
  131. package/dist/utils/uuidv4.js +1 -1
  132. package/dist/utils/validators.js +3 -1
  133. package/package.json +2 -1
  134. package/dist/chunk-2MVQI7NJ.js +0 -8
  135. package/dist/chunk-2MW433JI.js +0 -17
  136. package/dist/chunk-2Z4AFXGP.js +0 -10
  137. package/dist/chunk-3APKMSVD.js +0 -5
  138. package/dist/chunk-3E5A45HM.js +0 -3
  139. package/dist/chunk-3SFA4YEZ.js +0 -7
  140. package/dist/chunk-4INDXVIX.js +0 -5
  141. package/dist/chunk-4SHVMCT6.js +0 -7
  142. package/dist/chunk-5YJTSVA2.js +0 -6
  143. package/dist/chunk-7F56LFN2.js +0 -17
  144. package/dist/chunk-7KZ2UT76.js +0 -8
  145. package/dist/chunk-ANAHA3L6.js +0 -3
  146. package/dist/chunk-BUYQKDFG.js +0 -13
  147. package/dist/chunk-BYAPKKGB.js +0 -7
  148. package/dist/chunk-CFVUZ4S5.js +0 -5
  149. package/dist/chunk-CFYNJQGN.js +0 -43
  150. package/dist/chunk-CQDKXUUX.js +0 -3
  151. package/dist/chunk-D27ND54J.js +0 -16
  152. package/dist/chunk-E5MGOPPQ.js +0 -8
  153. package/dist/chunk-EFUFJKJD.js +0 -7
  154. package/dist/chunk-GA4A5P3S.js +0 -6
  155. package/dist/chunk-GOC7PC2S.js +0 -6
  156. package/dist/chunk-ILHUUK4X.js +0 -6
  157. package/dist/chunk-J76XIRCA.js +0 -18
  158. package/dist/chunk-JHCOHKLL.js +0 -7
  159. package/dist/chunk-KFZEM7KS.js +0 -5
  160. package/dist/chunk-M6QHAL4V.js +0 -7
  161. package/dist/chunk-MCT77MRN.js +0 -8
  162. package/dist/chunk-NF42ENKE.js +0 -9
  163. package/dist/chunk-OJKIWVED.js +0 -10
  164. package/dist/chunk-ORYAES3Q.js +0 -5
  165. package/dist/chunk-P4HPVV7B.js +0 -14
  166. package/dist/chunk-P5FKEHCD.js +0 -11
  167. package/dist/chunk-PIYBPQAC.js +0 -17
  168. package/dist/chunk-PPUFQMAW.js +0 -9
  169. package/dist/chunk-QCWALW56.js +0 -18
  170. package/dist/chunk-QNAXGE5H.js +0 -8
  171. package/dist/chunk-QQB3DGHT.js +0 -3
  172. package/dist/chunk-R6FUU7Z7.js +0 -7
  173. package/dist/chunk-REM462FC.js +0 -26
  174. package/dist/chunk-RLMWIJKJ.js +0 -10
  175. package/dist/chunk-SEVJABAI.js +0 -7
  176. package/dist/chunk-T7I256S6.js +0 -8
  177. package/dist/chunk-TRI6XGH4.js +0 -7
  178. package/dist/chunk-TWGGHTU5.js +0 -5
  179. package/dist/chunk-UGH5FWZQ.js +0 -13
  180. package/dist/chunk-VTHBHXM2.js +0 -7
  181. package/dist/chunk-VVMQMROT.js +0 -5
  182. package/dist/chunk-W3MYAMTH.js +0 -5
  183. package/dist/chunk-WAAV5ZRR.js +0 -13
  184. package/dist/chunk-WKD3OXUA.js +0 -6
  185. package/dist/chunk-YWEB6IAI.js +0 -6
  186. package/dist/chunk-Z2TDWMRU.js +0 -6
  187. package/dist/chunk-ZDHXW74M.js +0 -5
  188. package/dist/chunk-ZODC2MGF.js +0 -10
  189. package/dist/index.css +0 -10
@@ -1,3 +1,8 @@
1
- export { a as default } from '../../chunk-R6FUU7Z7.js';
2
- import '../../chunk-PPUFQMAW.js';
3
- import '../../chunk-3E5A45HM.js';
1
+ import { jsx } from 'react/jsx-runtime';
2
+ import i from '@mui/lab/LoadingButton';
3
+ import I from 'components/Icon';
4
+ import { Icon } from 'types/icon';
5
+
6
+ const T=({actionType:n,children:E,...r})=>{const c={SAVE:Icon.SIMPLE_CHECK,NEW:Icon.SIMPLE_ADD,CREATE:Icon.SAVE_MARK,SETTINGS:Icon.SETTINGS,EDIT:Icon.PENCIL_EDIT,DELETE:Icon.DELETE_MARK_BUTTON_02,VIEW:Icon.SHARE_BUTTON_MARK}[n];return jsx(i,{startIcon:jsx(I,{icon:c}),variant:"contained",color:"primary",...r,children:E})};var _=T;
7
+
8
+ export { _ as default };
@@ -1,3 +1,12 @@
1
- export { a as default } from '../../chunk-PIYBPQAC.js';
2
- import '../../chunk-PPUFQMAW.js';
3
- import '../../chunk-3E5A45HM.js';
1
+ import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
2
+ import { forwardRef, useState, useMemo } from 'react';
3
+ import q from '@mui/material/Autocomplete';
4
+ import z from '@mui/material/CircularProgress';
5
+ import B from '@mui/material/TextField';
6
+ import F from '../Icon';
7
+ import G from './Listbox';
8
+ import { StyledPopper } from './styles';
9
+
10
+ const y=forwardRef(({label:P,value:i,options:u=[],loading:d,noOptionsText:S="Nenhum resultado encontrado.",loadingText:b="Carregando op\xE7\xF5es...",error:x,helperText:C,placeholder:I,onChange:f,groupBy:L,showValueInLabel:N,disabled:O,multiple:o,required:h,renderOption:l,tabIndex:R,onInputChange:m,onSearch:c,onBlur:g,...T},v)=>{const[w,a]=useState(),k=r=>r&&typeof r=="object"?r.value.toString():r.toString(),n=useMemo(()=>o?(Array.isArray(i)?i:[]).reduce((t,s)=>{const A=u.find(M=>M.value.toString()===s.toString());return A?[...t,A]:[...t]},[]):u.find(e=>e.value.toString()===i?.toString())||null,[u,i,o]);return jsx(q,{ref:v,value:w||n,onInputChange:(r,e,t)=>{if(m&&m(r,e,t),t==="input"){c&&(c(e),a(e));return}a(void 0);},options:u,loading:d,noOptionsText:S,loadingText:b,disabled:d||O,disableListWrap:!0,PopperComponent:StyledPopper,ListboxComponent:l?void 0:G,filterOptions:(r,e)=>r.filter(t=>`${t.value} ${t.label}`.toLocaleUpperCase().includes(e.inputValue.toLocaleUpperCase())),onChange:(r,e)=>{if(!e){f(o?[]:null);return}if(Array.isArray(e)){f(e.map(k));return}f(typeof e=="string"?e.toString():e.value.toString());},onBlur:r=>{g&&g(r),a(void 0);},renderOption:(r,e,t,s)=>l?l(r,e,t,s):[{...r,showValueInLabel:N},e],renderGroup:r=>r,groupBy:L,multiple:o,renderInput:r=>jsx(B,{...r,placeholder:I,fullWidth:!0,error:!!x,helperText:C,label:P,required:h,InputProps:{...r.InputProps,...!o&&{startAdornment:n&&!Array.isArray(n)&&n.icon?jsx(F,{icon:n.icon}):void 0},endAdornment:jsxs(Fragment,{children:[d?jsx(z,{color:"primary",size:20}):null,r.InputProps.endAdornment]})},inputProps:{...r.inputProps,tabIndex:R}}),...T})});y.displayName="Autocomplete";var or=y;
11
+
12
+ export { or as default };
@@ -1,3 +1,13 @@
1
- export { a as default } from '../../chunk-7F56LFN2.js';
2
- import '../../chunk-NF42ENKE.js';
3
- import '../../chunk-ILHUUK4X.js';
1
+ import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
2
+ import { forwardRef, useState, useMemo } from 'react';
3
+ import U from '@mui/material/Autocomplete';
4
+ import E from '@mui/material/CircularProgress';
5
+ import G from '@mui/material/TextField';
6
+ import W from 'hooks/useResponsive';
7
+ import _ from './Listbox';
8
+ import j from './ListItem';
9
+ import { StyledPopper } from './styles';
10
+
11
+ const c=forwardRef(({label:b,value:o,options:i=[],loading:u,noOptionsText:g="Nenhum resultado encontrado.",loadingText:y="Carregando op\xE7\xF5es...",error:A,helperText:P,placeholder:$,onChange:d,groupBy:L,disabled:O,multiple:l,required:v,renderOption:S,tabIndex:T,onSearch:s,onInputChange:a,...I},h)=>{const[x,f]=useState(),C=W("down","md"),k=r=>r&&typeof r=="object"?r.value.toString():r.toString(),w=useMemo(()=>l?(Array.isArray(o)?o:[]).reduce((e,m)=>{const p=i.find(M=>M.value.toString()===m.toString());return p?[...e,p]:[...e]},[]):i.find(t=>t.value.toString()===o?.toString())||null,[i,o,l]),H=C&&i[0]?Object.keys(i[0]).length*24:void 0;return jsx(U,{ref:h,value:x||w,onInputChange:(r,t,e)=>{if(a&&a(r,t,e),e==="input"){s&&s(t),f(t);return}f(void 0);},options:i,loading:u,noOptionsText:g,loadingText:y,disabled:u||O,disableListWrap:!0,PopperComponent:StyledPopper,ListboxProps:{"data-item-height":H},ListboxComponent:S?void 0:_,filterOptions:(r,t)=>r.filter(e=>`${e.field1?.value} ${e.field1?.label} ${e.field2?.label} ${e.field2?.value} ${e.field3?.label} ${e.field3?.value} ${e.field4?.label} ${e.field4?.value} ${e.field5?.label} ${e.field5?.value} ${e.label}${e.value}`.toLocaleUpperCase().includes(t.inputValue.toLocaleUpperCase())),onChange:(r,t)=>{if(!t){d(l?[]:null);return}if(Array.isArray(t)){d(t.map(k));return}d(typeof t=="string"?t.toString():t.value.toString());},renderOption:({key:r,...t},e)=>jsx("li",{...t,style:{display:"block"},children:jsx(j,{option:e})},r),renderGroup:r=>r,groupBy:L,multiple:l,renderInput:r=>jsx(G,{...r,placeholder:$,fullWidth:!0,error:!!A,helperText:P,label:b,required:v,InputProps:{...r.InputProps,endAdornment:jsxs(Fragment,{children:[u?jsx(E,{color:"primary",size:20}):null,r.InputProps.endAdornment]})},inputProps:{...r.inputProps,tabIndex:T}}),...I})});c.displayName="Autocomplete";var le=c;
12
+
13
+ export { le as default };
@@ -1,12 +1,8 @@
1
- import { a as a$1 } from '../../chunk-4SHVMCT6.js';
2
- import '../../chunk-PPUFQMAW.js';
3
- import '../../chunk-3E5A45HM.js';
4
- import a from '@mui/material/Stack';
5
- import { styled, alpha } from '@mui/material/styles';
6
1
  import { jsxs, Fragment, jsx } from 'react/jsx-runtime';
2
+ import p from '@mui/material/Stack';
3
+ import a from '../HelpButton';
4
+ import { Header, Content } from './styles';
7
5
 
8
- var m=60,p=styled(a)(({theme:t})=>({position:"sticky",width:"100%",minHeight:m,top:0,flexDirection:"row",alignItems:"center",justifyContent:"space-between",padding:"0 24px",gap:12,borderBottom:`1px solid ${alpha(t.palette.grey[500],.25)}`,backgroundColor:"#fff",zIndex:999,"& .logo svg":{width:24,height:24,color:t.palette.primary.main}})),o=styled(a)({flex:1,background:`linear-gradient(90deg, var(--dot-bg) calc(var(--dot-space) - var(--dot-size)), transparent 1%) center / var(--dot-space) var(--dot-space),
9
- linear-gradient(var(--dot-bg) calc(var(--dot-space) - var(--dot-size)), transparent 1%) center / var(--dot-space) var(--dot-space),
10
- var(--dot-color)`});o.defaultProps={style:{"--dot-bg":"#F1F2FD","--dot-color":"#000","--dot-size":"1px","--dot-space":"56px"}};var f=({children:t,header:d,helpLink:s,configButton:c})=>jsxs(Fragment,{children:[jsxs(p,{children:[d,jsxs(a,{direction:"row",alignItems:"center",gap:2,children:[jsx(a$1,{link:s,children:"Ajuda"}),c]})]}),jsx(o,{children:t})]}),b=f;
6
+ const m=({children:t,header:e,helpLink:i,configButton:n})=>jsxs(Fragment,{children:[jsxs(Header,{children:[e,jsxs(p,{direction:"row",alignItems:"center",gap:2,children:[jsx(a,{link:i,children:"Ajuda"}),n]})]}),jsx(Content,{children:t})]});var P=m;
11
7
 
12
- export { b as default };
8
+ export { P as default };
@@ -1,10 +1,8 @@
1
- import { a as a$1 } from '../../chunk-PPUFQMAW.js';
2
- import '../../chunk-3E5A45HM.js';
3
- import { a } from '../../chunk-W3MYAMTH.js';
4
- import p from '@mui/material/Stack';
5
- import { styled, alpha } from '@mui/material/styles';
6
1
  import { jsx, jsxs } from 'react/jsx-runtime';
2
+ import p from 'hooks/useToggle';
3
+ import d from '../Icon';
4
+ import { Sidebar, SidebarContent, SidebarOpenClose } from './styles';
7
5
 
8
- var l=styled(p,{shouldForwardProp:o=>o!=="open"})(({theme:o,open:r})=>({position:"relative",backgroundColor:"#fff",borderRight:`1px solid ${alpha(o.palette.grey[500],.24)}`,transition:"width 0.125s",...r?{width:304,"> div":{display:"flex"}}:{width:0,padding:0,"> div":{"> *":{display:"none"},"> button":{display:"flex"}}}})),s=styled(p)({position:"sticky",zIndex:1,flex:1}),b=styled("button")(({theme:o})=>({position:"absolute",top:36,right:-18,display:"flex",alignItems:"center",justifyContent:"center",width:18,height:37,backgroundColor:"#fff",border:`1px solid ${alpha(o.palette.grey[500],.24)}`,borderLeft:0,borderRadius:"0 6px 6px 0",color:o.palette.text.secondary,zIndex:999,svg:{minWidth:16},"&:hover":{color:o.palette.primary.main,backgroundColor:o.palette.primary.lighter,cursor:"pointer"}}));var g=({children:o,expandable:r,...c})=>{let[i,f]=a(!0);return jsx(l,{open:i,children:jsxs(s,{maxHeight:"calc(100vh - 60px)",...c,children:[r&&jsx(b,{onClick:f,children:jsx(a$1,{icon:i?"CHEVRON_LEFT":"CHEVRON_RIGHT"})}),o]})})},P=g;
6
+ const b=({children:o,expandable:i,...t})=>{const[e,n]=p(!0);return jsx(Sidebar,{open:e,children:jsxs(SidebarContent,{maxHeight:"calc(100vh - 60px)",...t,children:[i&&jsx(SidebarOpenClose,{onClick:n,children:jsx(d,{icon:e?"CHEVRON_LEFT":"CHEVRON_RIGHT"})}),o]})})};var O=b;
9
7
 
10
- export { P as default };
8
+ export { O as default };
@@ -1,2 +1,12 @@
1
- export { a as default } from '../../chunk-BUYQKDFG.js';
2
- import '../../chunk-ORYAES3Q.js';
1
+ import { jsxs, Fragment, jsx } from 'react/jsx-runtime';
2
+ import s from '@mui/material/Box';
3
+ import m from '@mui/material/IconButton';
4
+ import c from '@mui/material/InputAdornment';
5
+ import h from '@mui/material/Popover';
6
+ import u from '@mui/material/TextField';
7
+ import d from 'hooks/usePopover';
8
+ import { ChromePicker } from './Style';
9
+
10
+ const P=({value:n,onChangeColor:i,tabIndex:l,...p})=>{const t=n?"#"+n.replaceAll("#",""):"",e=d(),a=(o="")=>{(/^#[0-9a-fA-F]*$/.test(o)||o===""||o==="#")&&i("#"+o.replaceAll("#",""));};return jsxs(Fragment,{children:[jsx(u,{...p,value:t,onChange:o=>a(o.target.value),InputProps:{inputProps:{...p.inputProps,maxLength:7,tabIndex:l},startAdornment:jsx(c,{position:"start",sx:{ml:2},children:jsx(m,{edge:"start","aria-label":"Escolher cor",onClick:e.onOpen,children:jsx(s,{sx:{minWidth:24,minHeight:24,backgroundColor:t,borderRadius:.5}})})})}}),jsx(h,{open:!!e.open,anchorEl:e.open,onClose:e.onClose,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"center",horizontal:"center"},slotProps:{paper:{style:{borderRadius:8}}},children:jsx(ChromePicker,{color:t,onChange:({hex:o})=>i(o),styles:{default:{picker:{fontFamily:"inherit",boxShadow:"none"}}},disableAlpha:!0})})]})};var O=P;
11
+
12
+ export { O as default };
@@ -1,7 +1,8 @@
1
- import d from '@mui/material/Box';
2
- import { styled, lighten, useTheme } from '@mui/material/styles';
3
1
  import { jsxs, jsx } from 'react/jsx-runtime';
2
+ import r from '@mui/material/Box';
3
+ import { useTheme } from '@mui/material/styles';
4
+ import { RootStyle } from './styles';
4
5
 
5
- var g=styled("span")(({theme:o,ownerState:i})=>{let n=o.palette.mode==="light",{color:e,variant:r,backgroundColor:l}=i,a=t=>({color:t,backgroundColor:l||t}),s=t=>({color:t,backgroundColor:"transparent",border:`1px solid ${t}`}),p=t=>({color:t,backgroundColor:lighten(t,.84)});return {height:22,minWidth:22,lineHeight:0,borderRadius:6,cursor:"default",alignItems:"center",whiteSpace:"nowrap",display:"inline-flex",justifyContent:"center",padding:o.spacing(0,1),color:o.palette.grey[800],fontSize:o.typography.pxToRem(12),fontFamily:o.typography.fontFamily,backgroundColor:o.palette.grey[300],fontWeight:o.typography.fontWeightBold,...e!=="default"?{...r==="filled"&&{...a(e)},...r==="outlined"&&{...s(e)},...r==="ghost"&&{...p(e)}}:{...r==="outlined"&&{backgroundColor:"transparent",color:o.palette.text.primary,border:`1px solid ${o.palette.grey[500]}`},...r==="ghost"&&{color:n?o.palette.text.secondary:o.palette.common.white,backgroundColor:o.palette.grey[500]}}}});var b=({children:o,color:i="#000",backgroundColor:n,variant:e="ghost",startIcon:r,endIcon:l,sx:a,...s})=>{let p=useTheme(),t={width:16,height:16,"& svg, img":{width:1,height:1,objectFit:"cover"}};return jsxs(g,{ownerState:{color:i,variant:e,backgroundColor:n},sx:{...r&&{pl:.75},...l&&{pr:.75},...a},theme:p,...s,children:[r&&jsx(d,{sx:{mr:.75,...t},children:r}),o,l&&jsx(d,{sx:{ml:.75,...t},children:l})]})},L=b;
6
+ const d=({children:l,color:h="#000",backgroundColor:i,variant:p="ghost",startIcon:o,endIcon:e,sx:s,...x})=>{const f=useTheme(),t={width:16,height:16,"& svg, img":{width:1,height:1,objectFit:"cover"}};return jsxs(RootStyle,{ownerState:{color:h,variant:p,backgroundColor:i},sx:{...o&&{pl:.75},...e&&{pr:.75},...s},theme:f,...x,children:[o&&jsx(r,{sx:{mr:.75,...t},children:o}),l,e&&jsx(r,{sx:{ml:.75,...t},children:e})]})};var a=d;
6
7
 
7
- export { L as default };
8
+ export { a as default };
@@ -1,22 +1,9 @@
1
- import { a } from '../../chunk-UGH5FWZQ.js';
2
- import '../../chunk-WKD3OXUA.js';
3
- import '../../chunk-GOC7PC2S.js';
4
- import '../../chunk-MCT77MRN.js';
5
- import '../../chunk-CFVUZ4S5.js';
6
- import '../../chunk-CFYNJQGN.js';
7
- import { i } from '../../chunk-D27ND54J.js';
8
- import { a as a$1 } from '../../chunk-PPUFQMAW.js';
9
- import '../../chunk-3E5A45HM.js';
10
- import { LazyMotion, domMax } from 'framer-motion';
11
1
  import { jsx, jsxs } from 'react/jsx-runtime';
12
- import y from '@mui/material/Portal';
13
- import { styled } from '@mui/material/styles';
14
- import { Toaster } from 'sonner';
15
- import 'dayjs/locale/pt-br';
16
- import h from 'dayjs';
17
- import { AdapterDayjs } from '@mui/x-date-pickers-pro/AdapterDayjs';
18
- import { LocalizationProvider } from '@mui/x-date-pickers-pro/LocalizationProvider';
2
+ import { MotionLazy } from 'components/animate/motion-lazy';
3
+ import { Snackbar } from 'components/snackbar/snackbar';
4
+ import a from 'locales/localization-provider';
5
+ import P from 'theme/theme-provider';
19
6
 
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;
7
+ const f=({primaryColor:r,colorScheme:i,contrast:m,children:t,cssVarPrefix:e})=>jsx(a,{children:jsx(P,{primaryColor:r,colorScheme:i,contrast:m,cssVarPrefix:e,children:jsxs(MotionLazy,{children:[t,jsx(Snackbar,{})]})})});var y=f;
21
8
 
22
- export { Z as default };
9
+ export { y as default };
@@ -1,11 +1,11 @@
1
+ import { jsxs, jsx } from 'react/jsx-runtime';
1
2
  import s from '@mui/lab/LoadingButton';
2
3
  import d from '@mui/material/Button';
3
4
  import p from '@mui/material/Dialog';
4
5
  import c from '@mui/material/DialogActions';
5
6
  import u from '@mui/material/DialogContent';
6
7
  import C from '@mui/material/DialogTitle';
7
- import { jsxs, jsx } from 'react/jsx-runtime';
8
8
 
9
- var D=({modalTitle:r="Tem certeza que deseja excluir?",message:n="Essa a\xE7\xE3o n\xE3o poder\xE1 ser desfeita.",cancelButtonText:a="Cancelar",confirmButtonText:e="Sim, excluir registro",onClose:i,onConfirm:l,confirming:m,child:g,...f})=>jsxs(p,{fullWidth:!0,maxWidth:"xs",...f,onClose:i,children:[jsx(C,{children:r}),jsx(u,{children:n}),g,jsxs(c,{children:[jsx(d,{variant:"outlined",color:"inherit",onClick:i,size:"large",children:a}),jsx(s,{variant:"contained",onClick:l,size:"large",loading:m,children:e})]})]}),v=D;
9
+ const D=({modalTitle:r="Tem certeza que deseja excluir?",message:n="Essa a\xE7\xE3o n\xE3o poder\xE1 ser desfeita.",cancelButtonText:a="Cancelar",confirmButtonText:e="Sim, excluir registro",onClose:i,onConfirm:l,confirming:m,child:g,...f})=>jsxs(p,{fullWidth:!0,maxWidth:"xs",...f,onClose:i,children:[jsx(C,{children:r}),jsx(u,{children:n}),g,jsxs(c,{children:[jsx(d,{variant:"outlined",color:"inherit",onClick:i,size:"large",children:a}),jsx(s,{variant:"contained",onClick:l,size:"large",loading:m,children:e})]})]});var L=D;
10
10
 
11
- export { v as default };
11
+ export { L as default };
@@ -1 +1,9 @@
1
- export { a as default } from '../../chunk-NF42ENKE.js';
1
+ import { jsxs, jsx } from 'react/jsx-runtime';
2
+ import { forwardRef } from 'react';
3
+ import m from '@mui/material/Avatar';
4
+ import v from '@mui/material/Badge';
5
+ import { useTheme } from '@mui/material/styles';
6
+
7
+ const t=r=>r&&r.charAt(0).toUpperCase(),C=r=>["A","N","H","L","Q"].includes(t(r))?"primary":["F","G","T","I","J"].includes(t(r))?"info":["K","D","Y","B","O"].includes(t(r))?"success":["P","E","R","S","U"].includes(t(r))?"warning":["V","W","X","M","Z"].includes(t(r))?"error":"default",p=forwardRef(({color:r,name:o="",BadgeProps:i,children:n,sx:s,...c},u)=>{const e=useTheme(),l=t(o),g=C(o),a=r||g,f=a==="default"?jsxs(m,{ref:u,sx:s,...c,children:[o&&l,n]}):jsxs(m,{ref:u,sx:{color:e.palette[a]?.contrastText,backgroundColor:e.palette[a]?.main,fontWeight:e.typography.fontWeightMedium,...s},...c,children:[o&&l,n]});return i?jsx(v,{overlap:"circular",anchorOrigin:{vertical:"bottom",horizontal:"right"},...i,children:f}):f});p.displayName="CustomAvatar";var w=p;
8
+
9
+ export { w as default };
@@ -1,7 +1,7 @@
1
+ import { jsx } from 'react/jsx-runtime';
1
2
  import { forwardRef } from 'react';
2
3
  import g from '@mui/material/AvatarGroup';
3
- import { jsx } from 'react/jsx-runtime';
4
4
 
5
- var t={tiny:24,small:32,medium:40,large:56},m=forwardRef(({size:o="small",compact:a,max:e,children:s,sx:l,...p},u)=>{let i=o==="tiny",r=o==="small",h=o==="medium",n=o==="large",d={width:40,height:40,position:"relative","& .MuiAvatarGroup-avatar":{m:0,width:28,height:28,position:"absolute","&:first-of-type":{left:0,bottom:0,zIndex:9},"&:last-of-type":{top:0,right:0}}};return jsx(g,{ref:u,max:a?3:e,spacing:(i||r)&&"medium"||"small",sx:{"& .MuiAvatar-root":{...n&&{width:t.large,height:t.large,"&:first-of-type":{fontSize:16}},...h&&{width:t.medium,height:t.medium},...r&&{width:t.small,height:t.small},...i&&{width:t.tiny,height:t.tiny}},...a&&{...d},...l},...p,children:s})});m.displayName="CustomAvatarGroup";var A=m;
5
+ const t={tiny:24,small:32,medium:40,large:56},m=forwardRef(({size:o="small",compact:a,max:e,children:s,sx:l,...p},u)=>{const i=o==="tiny",r=o==="small",h=o==="medium",n=o==="large",d={width:40,height:40,position:"relative","& .MuiAvatarGroup-avatar":{m:0,width:28,height:28,position:"absolute","&:first-of-type":{left:0,bottom:0,zIndex:9},"&:last-of-type":{top:0,right:0}}};return jsx(g,{ref:u,max:a?3:e,spacing:(i||r)&&"medium"||"small",sx:{"& .MuiAvatar-root":{...n&&{width:t.large,height:t.large,"&:first-of-type":{fontSize:16}},...h&&{width:t.medium,height:t.medium},...r&&{width:t.small,height:t.small},...i&&{width:t.tiny,height:t.tiny}},...a&&{...d},...l},...p,children:s})});m.displayName="CustomAvatarGroup";var G=m;
6
6
 
7
- export { A as default };
7
+ export { G as default };
@@ -1 +1,6 @@
1
- export { a as default } from '../../chunk-3SFA4YEZ.js';
1
+ import { jsx } from 'react/jsx-runtime';
2
+ import { DashedDividerStyled } from './styles';
3
+
4
+ const e=()=>jsx(DashedDividerStyled,{className:"dashed-divider"});var a=e;
5
+
6
+ export { a as default };
@@ -1,20 +1,14 @@
1
- import { c } from '../../chunk-QQB3DGHT.js';
2
- import { a } from '../../chunk-3SFA4YEZ.js';
3
- import { a as a$1 } from '../../chunk-YWEB6IAI.js';
4
- import { a as a$2 } from '../../chunk-ZODC2MGF.js';
5
- import '../../chunk-ZDHXW74M.js';
6
- import '../../chunk-D27ND54J.js';
7
- import H from '@mui/material/Pagination';
8
- import d from '@mui/material/Stack';
9
- import { useMemo } from 'react';
10
- import P from '@mui/material/Card';
11
- import N from '@mui/material/CardContent';
12
- import u from '@mui/material/Typography';
13
- import G from '@mui/material/CardActionArea';
14
- import { styled } from '@mui/material/styles';
15
- import { jsxs, jsx, Fragment } from 'react/jsx-runtime';
16
- import l from '@mui/material/Skeleton';
1
+ import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
2
+ import k from '@mui/material/Pagination';
3
+ import i from '@mui/material/Stack';
4
+ import u from 'components/EmptyContent';
5
+ import D from 'components/FixedProgressBar';
6
+ import p from './DataCard';
7
+ export { default as DataCard } from './DataCard';
8
+ import { DataCardsSkeleton } from './DataCardSkeleton';
9
+ export { DataCardsSkeleton } from './DataCardSkeleton';
10
+ import { getFieldData } from './getFieldData';
17
11
 
18
- var M=styled(G)(({disableRipple:r})=>({".MuiCardActionArea-focusHighlight":{background:"transparent"},...r&&{"&:hover":{cursor:"default"}}}));var T=r=>{r.stopPropagation();},j=({fields:r,id:o,title:s,onClick:n})=>{let e=r.find(t=>t.label.toLowerCase()==="status"||t.type==="status"||t.field==="status"),v=useMemo(()=>e?.renderCell?.({value:e.value,field:o,row:{[o]:e.value}})||e?.value,[e,o]),g=r.find(t=>t.type==="actions"||t.id==="actions"),p=useMemo(()=>g?.getActions({id:o})||null,[g,o]),y=useMemo(()=>r.filter(t=>t.label.toLowerCase()!=="status"&&t.value?.toString()!==o&&t.type!=="actions"),[r,o]),c$1=t=>{n?.({id:o},t,r);},C=jsxs(N,{sx:{padding:"0!important"},children:[jsxs(d,{flexDirection:"row",justifyContent:"space-between",p:2,children:[jsxs(d,{flexDirection:"row",alignItems:"center",gap:1,children:[jsx(u,{variant:"body1",fontWeight:600,color:"text.secondary",children:s}),jsxs(u,{variant:"body1",fontWeight:600,children:[c(o)?"#":"",o]})]}),jsxs(d,{className:"actions",flexDirection:"row",alignItems:"center",gap:1,children:[jsx(u,{variant:"body2",color:"text.secondary",textTransform:"uppercase",fontSize:14,fontWeight:600,children:v}),jsx(d,{onClick:T,onMouseDown:T,children:p})]})]}),jsx(a,{}),jsx(d,{flexWrap:"wrap",direction:"row",justifyContent:"space-between",p:2,pb:0,children:y.map(t=>t.value!=o&&jsxs(d,{flexBasis:"50%",pb:2,order:t.order,children:[jsx(u,{variant:"body2",color:"text.secondary",children:t.label}),jsx(u,{variant:"body1",children:t.valueGetter?t.valueFormatter(t.valueGetter(t.value)):t.value})]},`data-card-field-${o}-${t.label}`))})]});return n?jsx(P,{onClick:c$1,children:jsx(M,{component:"div",children:C})}):jsx(P,{children:C})},E=j;var w=()=>jsxs(P,{children:[jsxs(d,{justifyContent:"space-between",direction:"row",spacing:2,p:2,children:[jsx(l,{height:24,width:200}),jsx(l,{height:24,width:100})]}),jsxs(d,{justifyContent:"space-between",flexWrap:"wrap",direction:"row",p:2,children:[jsxs(d,{width:"50%",spacing:1,children:[jsx(l,{height:24,width:100}),jsx(l,{sx:{maxWidth:"95%"},height:24,width:230})]}),jsxs(d,{width:"50%",spacing:1,children:[jsx(l,{height:24,width:80}),jsx(l,{sx:{maxWidth:"100%"},height:27,width:250})]})]})]});var R=(r,o)=>{let s=[];r.forEach(e=>{e.field&&e.field!=="actions"&&s.push({...e,label:e.headerName||e.field,value:o[e.field],type:e.type,order:e?.order||0,id:e.field});});let n=r.find(e=>e.field==="actions");return n&&s.push({...n,label:"Actions",value:null,order:0,type:"actions",id:"actions"}),s};var $=({title:r,rows:o,columns:s,getRowId:n,onClick:e,loading:v,fetching:g,pagination:p})=>{let y=g&&jsx(a$1,{sx:{zIndex:1}});return v?jsxs(Fragment,{children:[y,jsx(w,{}),jsx(w,{}),jsx(w,{})]}):jsxs(d,{spacing:2,children:[y,o.length===0&&jsx(a$2,{sx:{mb:3},title:"Nenhum registro encontrado"}),o.map(c=>jsx(E,{title:r,id:n(c),fields:R(s,c),onClick:e},`data-card-${n(c)}`)),p&&o.length>0&&jsx(d,{direction:"row",justifyContent:"center",children:jsx(H,{page:p?.page,onChange:(c,C)=>{p?.onPageChange(C);},count:p?.total})})]})},ut=$;
12
+ const x=({title:d,rows:o,columns:f,getRowId:m,onClick:c,loading:l,fetching:C,pagination:r})=>{const n=C&&jsx(D,{sx:{zIndex:1}});return l?jsxs(Fragment,{children:[n,jsx(DataCardsSkeleton,{}),jsx(DataCardsSkeleton,{}),jsx(DataCardsSkeleton,{})]}):jsxs(i,{spacing:2,children:[n,o.length===0&&jsx(u,{sx:{mb:3},title:"Nenhum registro encontrado"}),o.map(a=>jsx(p,{title:d,id:m(a),fields:getFieldData(f,a),onClick:c},`data-card-${m(a)}`)),r&&o.length>0&&jsx(i,{direction:"row",justifyContent:"center",children:jsx(k,{page:r?.page,onChange:(a,g)=>{r?.onPageChange(g);},count:r?.total})})]})};var $=x;
19
13
 
20
- export { E as DataCard, w as DataCardsSkeleton, ut as default };
14
+ export { $ as default };
@@ -1,15 +1,11 @@
1
- import { a } from '../../chunk-YWEB6IAI.js';
2
- import { a as a$1 } from '../../chunk-ZODC2MGF.js';
3
- import '../../chunk-ZDHXW74M.js';
4
- import '../../chunk-D27ND54J.js';
5
- import x, { useState } from 'react';
6
- import { GRID_CHECKBOX_SELECTION_COL_DEF, DataGridPremium, GridToolbarContainer, GridToolbarColumnsButton, GridToolbarFilterButton, GridToolbarDensitySelector, GridToolbarExport, useGridApiContext, useGridRootProps, gridColumnsTotalWidthSelector, gridColumnPositionsSelector } from '@mui/x-data-grid-premium';
7
- import E from '@mui/material/Box';
8
1
  import { jsxs, Fragment, jsx } from 'react/jsx-runtime';
9
- import N from '@mui/material/Skeleton';
10
- import $ from '@mui/material/Stack';
11
- import { styled } from '@mui/material/styles';
2
+ import { useState } from 'react';
3
+ import { GRID_CHECKBOX_SELECTION_COL_DEF, DataGridPremium } from '@mui/x-data-grid-premium';
4
+ import r from 'components/EmptyContent';
5
+ import b from '../FixedProgressBar';
6
+ import y from './CustomToolbar';
7
+ import D from './LoadingOverlay';
12
8
 
13
- var F=({showToolbar:r,disableExport:e,setFilterButtonEl:i,toolbarContent:n})=>{if(r)return jsxs(GridToolbarContainer,{children:[jsx(GridToolbarColumnsButton,{slotProps:{button:{color:"inherit"}}}),jsx(GridToolbarFilterButton,{ref:i,slotProps:{button:{color:"inherit"}}}),jsx(GridToolbarDensitySelector,{slotProps:{button:{color:"inherit"}}}),!e&&jsx(GridToolbarExport,{slotProps:{button:{color:"inherit"}}}),jsx(E,{sx:{flexGrow:1}}),n]})},S=F;var G=styled(E)({display:"flex",flexDirection:"row",alignItems:"center",padding:"0 16px"}),V=()=>{let r=useGridApiContext(),{rowHeight:e,paginationModel:i,initialState:n}=useGridRootProps(),m=i?.pageSize||n?.pagination?.paginationModel?.pageSize||10,p=gridColumnsTotalWidthSelector(r),d=gridColumnPositionsSelector(r),g=x.useMemo(()=>d.filter(o=>o<=p).length,[p,d]),l=r.current.getVisibleColumns().slice(0,g),s=l.length>1?l:[...l,...Array.from({length:8},(o,t)=>({field:`fake${String(t+1).padStart(2,"0")}`,headerName:"",computedWidth:200,align:"flex-start"}))],h=x.useMemo(()=>{let o=[];for(let t=0;t<m;t+=1){for(let u of s)o.push(jsx(G,{sx:{justifyContent:u.align},children:jsx(N,{width:"100%"})},`column-${t}-${u.field}`));o.push(jsx(G,{},`fill-${t}`));}return o},[m,s]);return jsx($,{display:"grid",sx:{display:"grid",gridTemplateColumns:`${s.map(({computedWidth:o})=>`${o}px`).join(" ")} 1fr`,gridAutoRows:e,backgroundColor:"#fff",overflow:"hidden",maxHeight:"100%"},children:h})},y=V;var X=({columns:r,rows:e=[],loading:i,fetching:n,hideFooter:m,sx:p,showToolbar:d,disableExport:g,columnHeaderHeight:l=56,rowHeight:s=76,rowSpacingType:h="margin",getRowSpacing:o=()=>({top:0,bottom:0}),autoHeight:t=!1,toolbarContent:u,slots:P,...w})=>{let[T,k]=useState(null),R=[{...GRID_CHECKBOX_SELECTION_COL_DEF,width:71},...r];return jsxs(Fragment,{children:[n&&jsx(a,{sx:{zIndex:1}}),jsx(DataGridPremium,{columns:R,rows:e,loading:i,autoHeight:t,hideFooter:e.length===0?!0:m,rowHeight:s,columnHeaderHeight:l,getRowSpacing:o,rowSpacingType:h,slots:{toolbar:S,noRowsOverlay:()=>jsx(a$1,{title:"Nenhum registro encontrado"}),noResultsOverlay:()=>jsx(a$1,{title:"Nenhum registro encontrado"}),loadingOverlay:y,...P},slotProps:{panel:{anchorEl:T},toolbar:{setFilterButtonEl:k,showQuickFilter:!0,disableExport:g,showToolbar:d,toolbarContent:u}},sx:p,...w})]})},bo=X;
9
+ const H=({columns:e,rows:t=[],loading:n,fetching:l,hideFooter:a,sx:i,showToolbar:s,disableExport:m,columnHeaderHeight:p=56,rowHeight:u=76,rowSpacingType:d="margin",getRowSpacing:g=()=>({top:0,bottom:0}),autoHeight:c=!1,toolbarContent:f,slots:h,...C})=>{const[E,G]=useState(null),S=[{...GRID_CHECKBOX_SELECTION_COL_DEF,width:71},...e];return jsxs(Fragment,{children:[l&&jsx(b,{sx:{zIndex:1}}),jsx(DataGridPremium,{columns:S,rows:t,loading:n,autoHeight:c,hideFooter:t.length===0?!0:a,rowHeight:u,columnHeaderHeight:p,getRowSpacing:g,rowSpacingType:d,slots:{toolbar:y,noRowsOverlay:()=>jsx(r,{title:"Nenhum registro encontrado"}),noResultsOverlay:()=>jsx(r,{title:"Nenhum registro encontrado"}),loadingOverlay:D,...h},slotProps:{panel:{anchorEl:E},toolbar:{setFilterButtonEl:G,showQuickFilter:!0,disableExport:m,showToolbar:s,toolbarContent:f}},sx:i,...C})]})};var z=H;
14
10
 
15
- export { bo as default };
11
+ export { z as default };
@@ -1,7 +1,7 @@
1
+ import { jsx } from 'react/jsx-runtime';
1
2
  import { DatePicker } from '@mui/x-date-pickers-pro';
2
3
  import s from 'dayjs';
3
- import { jsx } from 'react/jsx-runtime';
4
4
 
5
- var P=({value:t,onChange:l,tabIndex:e,helperText:i,required:p,...o})=>jsx(DatePicker,{...o,format:"DD/MM/YYYY",value:t?s(t):null,onChange:r=>l(r?r.toDate():null),slotProps:{textField:{...o.slotProps?.textField,required:p,helperText:i,autoComplete:"off",spellCheck:"false",fullWidth:!0,inputProps:{tabIndex:e}},openPickerButton:{tabIndex:e}}}),c=P;
5
+ const P=({value:t,onChange:l,tabIndex:e,helperText:i,required:p,...o})=>jsx(DatePicker,{...o,format:"DD/MM/YYYY",value:t?s(t):null,onChange:r=>l(r?r.toDate():null),slotProps:{textField:{...o.slotProps?.textField,required:p,helperText:i,autoComplete:"off",spellCheck:"false",fullWidth:!0,inputProps:{tabIndex:e}},openPickerButton:{tabIndex:e}}});var m=P;
6
6
 
7
- export { c as default };
7
+ export { m as default };
@@ -1,7 +1,7 @@
1
+ import { jsx } from 'react/jsx-runtime';
1
2
  import { DateRangePicker } from '@mui/x-date-pickers-pro';
2
3
  import r from 'dayjs';
3
- import { jsx } from 'react/jsx-runtime';
4
4
 
5
- var p=({label:o,value:t,onChange:l,tabIndex:n,helperText:s,required:D,...a})=>jsx(DateRangePicker,{format:"DD/MM/YYYY",value:[t?.startDate?r(t.startDate):null,t?.endDate?r(t.endDate):null],onChange:e=>l({startDate:e[0]?e[0].toDate():null,endDate:e[1]?e[1].toDate():null}),...a,slotProps:{textField:()=>({...a.slotProps?.textField,required:D,helperText:s,autoComplete:"off",spellCheck:"false",fullWidth:!0,label:o,inputProps:{tabIndex:n}})},sx:{width:1}}),u=p;
5
+ const p=({label:o,value:t,onChange:l,tabIndex:n,helperText:s,required:D,...a})=>jsx(DateRangePicker,{format:"DD/MM/YYYY",value:[t?.startDate?r(t.startDate):null,t?.endDate?r(t.endDate):null],onChange:e=>l({startDate:e[0]?e[0].toDate():null,endDate:e[1]?e[1].toDate():null}),...a,slotProps:{textField:()=>({...a.slotProps?.textField,required:D,helperText:s,autoComplete:"off",spellCheck:"false",fullWidth:!0,label:o,inputProps:{tabIndex:n}})},sx:{width:1}});var c=p;
6
6
 
7
- export { u as default };
7
+ export { c as default };
@@ -1,7 +1,7 @@
1
+ import { jsx } from 'react/jsx-runtime';
1
2
  import { DateTimePicker } from '@mui/x-date-pickers-pro';
2
3
  import a from 'dayjs';
3
- import { jsx } from 'react/jsx-runtime';
4
4
 
5
- var s=({value:e,onChange:i,tabIndex:t,helperText:l,required:m,...o})=>jsx(DateTimePicker,{...o,format:"DD/MM/YYYY HH:mm",value:e?a(e):null,onChange:r=>i(r?r.toDate():null),slotProps:{textField:{...o.slotProps?.textField,required:m,helperText:l,autoComplete:"off",spellCheck:"false",fullWidth:!0,inputProps:{tabIndex:t}},openPickerButton:{tabIndex:t}}}),D=s;
5
+ const s=({value:e,onChange:i,tabIndex:t,helperText:l,required:m,...o})=>jsx(DateTimePicker,{...o,format:"DD/MM/YYYY HH:mm",value:e?a(e):null,onChange:r=>i(r?r.toDate():null),slotProps:{textField:{...o.slotProps?.textField,required:m,helperText:l,autoComplete:"off",spellCheck:"false",fullWidth:!0,inputProps:{tabIndex:t}},openPickerButton:{tabIndex:t}}});var k=s;
6
6
 
7
- export { D as default };
7
+ export { k as default };
@@ -1,5 +1,5 @@
1
1
  import { useState, useEffect } from 'react';
2
2
 
3
- var i=({children:t,waitBeforeShow:e=500})=>{let[r,o]=useState(!1);return useEffect(()=>{let s=setTimeout(()=>o(!0),e);return ()=>clearTimeout(s)},[e]),r?t:null},p=i;
3
+ const i=({children:t,waitBeforeShow:e=500})=>{const[r,o]=useState(!1);return useEffect(()=>{const s=setTimeout(()=>o(!0),e);return ()=>clearTimeout(s)},[e]),r?t:null};var d=i;
4
4
 
5
- export { p as default };
5
+ export { d as default };
@@ -1,12 +1,11 @@
1
- import { a as a$2 } from '../../chunk-E5MGOPPQ.js';
2
- import { a as a$1 } from '../../chunk-PPUFQMAW.js';
3
- import '../../chunk-3E5A45HM.js';
4
- import g from '@mui/material/Drawer';
5
- import x from '@mui/material/IconButton';
6
- import a from '@mui/material/Stack';
7
- import { styled } from '@mui/material/styles';
8
1
  import { jsxs, jsx } from 'react/jsx-runtime';
2
+ import c from '@mui/material/Drawer';
3
+ import l from '@mui/material/IconButton';
4
+ import n from '@mui/material/Stack';
5
+ import d from '../Icon';
6
+ import f from '../Scrollbar';
7
+ import { Header, HeaderTitle } from './styles';
9
8
 
10
- var n=styled(a)(({theme:r})=>({flexDirection:"row",alignItems:"center",borderBottom:`1px solid ${r.palette.grey[300]}`,padding:"22px 20px",gap:16})),l=styled(a)(({theme:r})=>({flexDirection:"row",alignItems:"center",gap:8,flex:1,fontSize:r.typography.subtitle1.fontSize,fontWeight:r.typography.subtitle1.fontWeight,fontFamily:r.typography.fontFamily}));var w=({headerTitle:r,onClose:t,children:f,contentProps:c,maxWidth:d=684,...s})=>jsxs(g,{anchor:"right",PaperProps:{sx:{width:1,maxWidth:d}},onClose:t,...s,children:[jsxs(n,{children:[jsx(x,{size:"small",onClick:t,children:jsx(a$1,{icon:"CLOSE_MARK_BUTTON",width:18})}),jsx(l,{children:r})]}),jsx(a$2,{children:jsx(a,{p:3,...c,children:f})})]}),B=w;
9
+ const h=({headerTitle:e,onClose:o,children:a,contentProps:i,maxWidth:m=684,...p})=>jsxs(c,{anchor:"right",PaperProps:{sx:{width:1,maxWidth:m}},onClose:o,...p,children:[jsxs(Header,{children:[jsx(l,{size:"small",onClick:o,children:jsx(d,{icon:"CLOSE_MARK_BUTTON",width:18})}),jsx(HeaderTitle,{children:e})]}),jsx(f,{children:jsx(n,{p:3,...i,children:a})})]});var I=h;
11
10
 
12
- export { B as default };
11
+ export { I as default };
@@ -1,3 +1,10 @@
1
- export { a as default } from '../../chunk-ZODC2MGF.js';
2
- import '../../chunk-ZDHXW74M.js';
3
- import '../../chunk-D27ND54J.js';
1
+ import { jsxs, jsx } from 'react/jsx-runtime';
2
+ import l from '@mui/material/Box';
3
+ import x from '@mui/material/Stack';
4
+ import m from '@mui/material/Typography';
5
+ import h from 'assets/illustrations/EmptyContent';
6
+ import { varAlpha } from 'theme/styles';
7
+
8
+ const s=({sx:y,imgUrl:r,action:n,filled:c,slotProps:e,description:a,title:p="No data",...d})=>jsxs(x,{flexGrow:1,alignItems:"center",justifyContent:"center",sx:{px:3,height:1,...c&&{borderRadius:2,bgcolor:o=>varAlpha(o.vars.palette.grey["500Channel"],.04),border:o=>`dashed 1px ${varAlpha(o.vars.palette.grey["500Channel"],.08)}`},...y},...d,children:[r?jsx(l,{component:"img",alt:"empty content",src:r,sx:{width:1,maxWidth:160,...e?.img}}):jsx(h,{}),p&&jsx(m,{variant:"h6",component:"span",sx:{mt:1,textAlign:"center",...e?.title,color:"text.disabled"},children:p}),a&&jsx(m,{variant:"caption",sx:{mt:1,textAlign:"center",color:"text.disabled",...e?.description},children:a}),n&&n]});var S=s;
9
+
10
+ export { S as default };
@@ -1,2 +1,8 @@
1
- export { a as default } from '../../chunk-2MVQI7NJ.js';
2
- import '../../chunk-ZDHXW74M.js';
1
+ import { jsxs, jsx } from 'react/jsx-runtime';
2
+ import e from '@mui/material/Stack';
3
+ import p from '@mui/material/Typography';
4
+ import i from 'assets/illustrations/EmptyContent';
5
+
6
+ const n=({text:o,sx:r})=>jsxs(e,{alignItems:"center",justifyContent:"center",gap:3.75,sx:{textAlign:"center",height:1,backgroundColor:"#fff",padding:2,borderRadius:2,"& svg":{width:"100%"},...r},children:[jsx(i,{}),jsx(p,{variant:"body1",sx:{color:"text.secondary"},children:o})]});var s=n;
7
+
8
+ export { s as default };
@@ -1,10 +1,10 @@
1
- import { a } from '../../chunk-PPUFQMAW.js';
2
- import '../../chunk-3E5A45HM.js';
3
- import f from '@mui/material/Button';
4
- import l from '@mui/material/Stack';
5
- import e from '@mui/material/Typography';
6
1
  import { jsxs, jsx } from 'react/jsx-runtime';
2
+ import c from '@mui/material/Button';
3
+ import o from '@mui/material/Stack';
4
+ import t from '@mui/material/Typography';
5
+ import m from 'assets/illustrations/ImSorry';
6
+ import y from '../Icon';
7
7
 
8
- var c=()=>jsxs("svg",{width:"270",height:"240",viewBox:"0 0 270 240",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[jsx("path",{d:"M134.533 239.195C60.232 239.195 0 235.603 0 231.173C0 226.744 60.232 223.152 134.533 223.152C208.835 223.152 269.067 226.744 269.067 231.173C269.067 235.603 208.835 239.195 134.533 239.195Z",fill:"#989898"}),jsx("path",{d:"M3.30371 156.829V184.359C3.30371 186.993 5.45705 189.141 8.08905 189.141H260.978C263.614 189.141 265.764 186.993 265.764 184.359V156.829H3.30371Z",fill:"#CFCFCF"}),jsx("path",{d:"M265.764 4.78535C265.764 2.15202 263.615 0 260.979 0H8.08933C5.45599 0 3.30266 2.15202 3.30266 4.78535V156.829H265.764L265.764 4.78535Z",fill:"#989898"}),jsx("path",{d:"M180.226 216.856H89.9502V189.14H180.226V216.856Z",fill:"#D8D7D5"}),jsx("path",{d:"M200.68 229.833H68.2568V216.859H200.68V229.833Z",fill:"#CFCFCF"}),jsx("path",{d:"M180.226 199.157H89.9502V189.14H180.226V199.157Z",fill:"#BCBBB9"}),jsx("path",{d:"M16.872 13.652H252.247V142.804H16.872V13.652Z",fill:"white"}),jsx("ellipse",{cx:"95.0798",cy:"73.1186",rx:"5.56321",ry:"7.64941",fill:"#CFCFCF"}),jsx("ellipse",{cx:"88.8218",cy:"88.3312",rx:"11.8218",ry:"4.1724",fill:"#EFEFEF",fillOpacity:"0.59"}),jsx("ellipse",{cx:"180.614",cy:"88.3312",rx:"11.8218",ry:"4.1724",fill:"#EFEFEF",fillOpacity:"0.59"}),jsx("ellipse",{cx:"172.965",cy:"73.1186",rx:"5.56321",ry:"7.64941",fill:"#CFCFCF"}),jsx("path",{d:"M122.896 88.4174C128.459 99.5438 140.281 97.4576 145.148 88.4174",stroke:"#CFCFCF",strokeWidth:"2.7816",strokeLinecap:"round"}),jsx("path",{d:"M168.792 52.952C175.051 57.8198 175.746 58.5152 183.395 57.8198",stroke:"#CFCFCF",strokeWidth:"2.7816",strokeLinecap:"round"}),jsx("path",{d:"M99.9473 52.952C93.6887 57.8198 92.9933 58.5152 85.3439 57.8198",stroke:"#CFCFCF",strokeWidth:"2.7816",strokeLinecap:"round"})]}),i=c;var s=({title:C,description:a$1,onClickButton:n,textButton:F="Atualizar"})=>jsxs(l,{height:1,width:1,alignItems:"center",justifyContent:"center",textAlign:"center",gap:3,children:[jsx(i,{}),jsxs(l,{children:[jsx(e,{variant:"h5",color:"grey.600",children:C}),jsx(e,{variant:"body1",color:"grey.600",children:a$1})]}),jsx(f,{variant:"contained",size:"large",startIcon:jsx(a,{icon:"REFRESH_CHANGE"}),onClick:n,children:F})]}),x=s;
8
+ const g=({title:n,description:i,onClickButton:e,textButton:p="Atualizar"})=>jsxs(o,{height:1,width:1,alignItems:"center",justifyContent:"center",textAlign:"center",gap:3,children:[jsx(m,{}),jsxs(o,{children:[jsx(t,{variant:"h5",color:"grey.600",children:n}),jsx(t,{variant:"body1",color:"grey.600",children:i})]}),jsx(c,{variant:"contained",size:"large",startIcon:jsx(y,{icon:"REFRESH_CHANGE"}),onClick:e,children:p})]});var d=g;
9
9
 
10
- export { x as default };
10
+ export { d as default };
@@ -1,13 +1,11 @@
1
- import { a as a$1 } from '../../chunk-PPUFQMAW.js';
2
- import '../../chunk-3E5A45HM.js';
3
- import { a } from '../../chunk-W3MYAMTH.js';
4
- import s from '@mui/material/IconButton';
5
- import p from '@mui/material/Stack';
6
- import g from '@mui/material/Typography';
7
- import G from '@mui/material/Collapse';
8
- import { styled, alpha } from '@mui/material/styles';
9
1
  import { jsxs, jsx } from 'react/jsx-runtime';
2
+ import n from '@mui/material/IconButton';
3
+ import p from '@mui/material/Stack';
4
+ import e from '@mui/material/Typography';
5
+ import f from 'hooks/useToggle';
6
+ import i from '../Icon';
7
+ import { Container, GroupTop, CollapseGroup } from './styles';
10
8
 
11
- var d=styled(p)(({theme:r})=>({border:`1px solid ${alpha(r.palette.grey[500],.32)}`,borderRadius:8,alignItems:"center",overflow:"hidden"})),c=styled(p)(()=>({backgroundColor:"#F5F5F5",padding:8,width:"100%",justifyContent:"space-between",alignItems:"center",gap:12,"& .MuiInputBase-root":{backgroundColor:"#fff"}}));styled(p)(({theme:r})=>({border:`1px solid ${alpha(r.palette.grey[500],.32)}`,borderRadius:8,alignItems:"center"}));var m=styled(G)(()=>({width:"100%",padding:"12px 16px"}));var T=({description:r,name:f,children:x,header:C,onDelete:y})=>{let[i,h]=a(!0);return jsxs(d,{children:[jsxs(c,{direction:"row",children:[jsxs(p,{direction:"row",alignItems:"center",gap:1.5,flex:1,children:[jsx(s,{edge:"end",onClick:h,children:jsx(a$1,{icon:i?"CHEVRON_UP":"CHEVRON_RIGHT"})}),jsx(g,{variant:"overline",color:"text.primary",children:f}),jsx(g,{variant:"overline",color:"text.secondary",children:r}),jsx(p,{flex:1,children:C})]}),jsx(s,{color:"error",onClick:y,children:jsx(a$1,{icon:"DELETE_MARK_BUTTON_02"})})]}),jsx(m,{in:i,timeout:"auto",unmountOnExit:!0,children:x})]})},S=T;
9
+ const C=({description:a,name:l,children:c,header:m,onDelete:u})=>{const[t,d]=f(!0);return jsxs(Container,{children:[jsxs(GroupTop,{direction:"row",children:[jsxs(p,{direction:"row",alignItems:"center",gap:1.5,flex:1,children:[jsx(n,{edge:"end",onClick:d,children:jsx(i,{icon:t?"CHEVRON_UP":"CHEVRON_RIGHT"})}),jsx(e,{variant:"overline",color:"text.primary",children:l}),jsx(e,{variant:"overline",color:"text.secondary",children:a}),jsx(p,{flex:1,children:m})]}),jsx(n,{color:"error",onClick:u,children:jsx(i,{icon:"DELETE_MARK_BUTTON_02"})})]}),jsx(CollapseGroup,{in:t,timeout:"auto",unmountOnExit:!0,children:c})]})};var B=C;
12
10
 
13
- export { S as default };
11
+ export { B as default };
@@ -1 +1,6 @@
1
- export { a as default } from '../../chunk-YWEB6IAI.js';
1
+ import { jsx } from 'react/jsx-runtime';
2
+ import o from '@mui/material/LinearProgress';
3
+
4
+ const s=({sx:r})=>jsx(o,{sx:{position:"absolute",top:0,left:0,width:1,zIndex:9999,...r}});var n=s;
5
+
6
+ export { n as default };
@@ -1,16 +1,13 @@
1
- import { a as a$3 } from '../../chunk-BYAPKKGB.js';
2
- import { a } from '../../chunk-E5MGOPPQ.js';
3
- import { a as a$2 } from '../../chunk-4SHVMCT6.js';
4
- import { a as a$1 } from '../../chunk-PPUFQMAW.js';
5
- import '../../chunk-3E5A45HM.js';
6
- import v from '@mui/material/Divider';
7
- import F from '@mui/material/IconButton';
8
- import n from '@mui/material/Stack';
9
- import g from '@mui/material/Typography';
10
- import C from '@mui/material/Button';
11
- import { styled } from '@mui/material/styles';
12
1
  import { jsx, jsxs } from 'react/jsx-runtime';
2
+ import c from '@mui/material/Divider';
3
+ import S from '@mui/material/IconButton';
4
+ import o from '@mui/material/Stack';
5
+ import l from '@mui/material/Typography';
6
+ import f from 'components/HelpButton';
7
+ import h from 'components/WhiteBox';
8
+ import k from '../Icon';
9
+ import { LeftBox, StyledScrollbar, SideBarWrapper, SectionTile, TopBox, FrameHeader, Children, SectionTitle, SectionSubtitle } from './style';
13
10
 
14
- var S=styled(n)(({theme:o})=>({backgroundColor:"#fff",minWidth:"250px",padding:24,minHeight:"100vh",borderRight:`1px solid ${o.palette.grey[300]}`})),h=styled(n)(({theme:o})=>({backgroundColor:"#fff",position:"sticky",top:0,zIndex:999,width:"100%",padding:24,gap:24,borderBottom:`1px solid ${o.palette.grey[300]}`})),s=styled(n)({flexDirection:"row",alignItems:"center",justifyContent:"space-between",gap:24}),x=styled(n)(({theme:o})=>({height:"100%",width:"50%",flex:1,[o.breakpoints.down(1680)]:{width:"70%"}})),b=styled(g)(({theme:o})=>({color:o.palette.grey[800],fontSize:18,fontWeight:700})),k=styled(g)(({theme:o})=>({color:o.palette.grey[500],fontSize:14,fontWeight:400,paddingBottom:24})),y=styled(C)(({theme:o})=>({paddingTop:6,paddingBottom:6,paddingLeft:0,margin:0,marginBottom:4,marginTop:4,width:"100%",display:"block",cursor:"pointer",color:o.palette.grey[600],textAlign:"left",fontWeight:400,fontSize:14,"> span":{color:o.palette.error.main}})),B=styled(a)(()=>({height:1,"& .simplebar-content":{height:1}})),T=styled(n)(()=>({position:"fixed",width:"202px"}));var H=({title:o,sections:l,headerLeftContent:w,headerRightContent:I,onClickBack:W})=>jsx(n,{children:jsxs(n,{direction:"row",children:[jsx(S,{id:"frame-skeleton-left-box",children:jsx(B,{children:jsxs(T,{children:[jsx(g,{variant:"overline",color:"text.disabled",fontWeight:700,children:"ACESSO R\xC1PIDO"}),l.map((e,p)=>jsxs(n,{children:[jsxs(y,{onClick:()=>{e.ref.current&&e.ref.current.scrollIntoView({block:"start",behavior:"smooth"});},children:[e.title,e.isRequired&&jsx("span",{children:"*"})]}),p<l.length-1&&jsx(v,{})]},p))]})})}),jsxs(n,{width:"100%",alignItems:"center",mb:8,children:[jsx(h,{children:jsxs(s,{children:[jsxs(n,{flexDirection:"row",gap:2,alignItems:"center",children:[jsx(F,{color:"primary",onClick:()=>W(),children:jsx(a$1,{icon:"CHEVRON_LEFT"})}),jsx(g,{variant:"h4",children:o}),w]}),jsxs(n,{direction:"row",gap:2,alignItems:"center",minWidth:"max-content",children:[jsx(a$2,{disabled:!0}),I]})]})}),jsx(x,{children:l.map((e,p)=>jsxs(n,{paddingTop:3,paddingBottom:2,alignItems:"start",width:"100%",id:`section-${p}`,children:[jsx(b,{ref:e.ref,children:e.title}),jsx(k,{children:e.subTitle}),jsx(a$3,{width:"100%",borderRadius:1,gap:1.5,padding:3,children:e.child})]},e.title))})]})]})}),_=H;
11
+ const w=({title:n,sections:a,headerLeftContent:p,headerRightContent:m,onClickBack:d})=>jsx(o,{children:jsxs(o,{direction:"row",children:[jsx(LeftBox,{id:"frame-skeleton-left-box",children:jsx(StyledScrollbar,{children:jsxs(SideBarWrapper,{children:[jsx(l,{variant:"overline",color:"text.disabled",fontWeight:700,children:"ACESSO R\xC1PIDO"}),a.map((e,i)=>jsxs(o,{children:[jsxs(SectionTile,{onClick:()=>{e.ref.current&&e.ref.current.scrollIntoView({block:"start",behavior:"smooth"});},children:[e.title,e.isRequired&&jsx("span",{children:"*"})]}),i<a.length-1&&jsx(c,{})]},i))]})})}),jsxs(o,{width:"100%",alignItems:"center",mb:8,children:[jsx(TopBox,{children:jsxs(FrameHeader,{children:[jsxs(o,{flexDirection:"row",gap:2,alignItems:"center",children:[jsx(S,{color:"primary",onClick:()=>d(),children:jsx(k,{icon:"CHEVRON_LEFT"})}),jsx(l,{variant:"h4",children:n}),p]}),jsxs(o,{direction:"row",gap:2,alignItems:"center",minWidth:"max-content",children:[jsx(f,{disabled:!0}),m]})]})}),jsx(Children,{children:a.map((e,i)=>jsxs(o,{paddingTop:3,paddingBottom:2,alignItems:"start",width:"100%",id:`section-${i}`,children:[jsx(SectionTitle,{ref:e.ref,children:e.title}),jsx(SectionSubtitle,{children:e.subTitle}),jsx(h,{width:"100%",borderRadius:1,gap:1.5,padding:3,children:e.child})]},e.title))})]})]})});var P=w;
15
12
 
16
- export { _ as default };
13
+ export { P as default };
@@ -1,3 +1,7 @@
1
- export { a as default } from '../../chunk-4SHVMCT6.js';
2
- import '../../chunk-PPUFQMAW.js';
3
- import '../../chunk-3E5A45HM.js';
1
+ import { jsx } from 'react/jsx-runtime';
2
+ import n from '@mui/material/Button';
3
+ import p from '../Icon';
4
+
5
+ const e=({link:o,...r})=>jsx(n,{...r,startIcon:jsx(p,{icon:"HELP_CIRCLE"}),variant:"outlined",color:"inherit",...o&&{href:o,target:"_blank"},children:"Ajuda"});var c=e;
6
+
7
+ export { c as default };