@zydon/common 2.9.73 → 2.9.75

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 (152) hide show
  1. package/README.md +4 -3
  2. package/dist/{chunk-35HI7WFI.js → chunk-33LSXTPO.js} +2 -2
  3. package/dist/{chunk-YJYS2LQQ.js → chunk-33SY23DN.js} +2 -2
  4. package/dist/{chunk-FC4OALKP.js → chunk-4IHN3WGD.js} +3 -3
  5. package/dist/{chunk-CZ5Y53WA.js → chunk-4XN57SLB.js} +2 -2
  6. package/dist/{chunk-VPZL6AIF.js → chunk-5NLFXSCK.js} +2 -2
  7. package/dist/{chunk-YU5R3EXT.js → chunk-7VKM3HYT.js} +2 -2
  8. package/dist/{chunk-G7TQARLI.js → chunk-ANR6TAGJ.js} +5 -5
  9. package/dist/{chunk-7BIG6SAF.js → chunk-BEAXX74S.js} +2 -2
  10. package/dist/{chunk-TS7QZPD6.js → chunk-BTVG4NW3.js} +2 -2
  11. package/dist/{chunk-H762KDPN.js → chunk-C2T2YAFC.js} +2 -2
  12. package/dist/{chunk-TAA5KCEG.js → chunk-CA65HZ2Z.js} +4 -4
  13. package/dist/{chunk-COAGQGZA.js → chunk-DYZC2NKL.js} +2 -2
  14. package/dist/chunk-ECF3YSTK.js +8 -0
  15. package/dist/chunk-ECF3YSTK.js.map +1 -0
  16. package/dist/{chunk-BKL525ZD.js → chunk-EOF7RBR3.js} +2 -2
  17. package/dist/{chunk-5ZMA4N4W.js → chunk-FMFS42U2.js} +1 -1
  18. package/dist/{chunk-MY4CZ5PC.js → chunk-G6HGDG22.js} +2 -2
  19. package/dist/{chunk-KDSM2AIT.js → chunk-GR5GSCOD.js} +2 -2
  20. package/dist/{chunk-TOZ66UM4.js → chunk-H33QKOVI.js} +2 -2
  21. package/dist/chunk-JLJQNAJB.js +46 -0
  22. package/dist/chunk-JLJQNAJB.js.map +1 -0
  23. package/dist/{chunk-L6CMWQCC.js → chunk-JWX3OMRI.js} +2 -2
  24. package/dist/{chunk-TSEVZMIE.js → chunk-LTXQ3A3C.js} +2 -2
  25. package/dist/{chunk-EICUAMNN.js → chunk-MWKWO5P2.js} +2 -2
  26. package/dist/{chunk-H7OG32Y5.js → chunk-NBERBY2S.js} +2 -2
  27. package/dist/{chunk-PMKM67BB.js → chunk-NDX5YJV7.js} +2 -2
  28. package/dist/{chunk-YKCEUH6C.js → chunk-NM3VHC2R.js} +4 -4
  29. package/dist/{chunk-7GJMLPJV.js → chunk-OQIEF5BC.js} +2 -2
  30. package/dist/{chunk-OWJ6XY6F.js → chunk-Q7VIAAF7.js} +3 -3
  31. package/dist/{chunk-IT6HMYIE.js → chunk-R4IVYFP2.js} +3 -3
  32. package/dist/{chunk-VELCTMU2.js → chunk-RTXMZGBW.js} +2 -2
  33. package/dist/{chunk-UCQA4HF7.js → chunk-UFBKEQMU.js} +5 -5
  34. package/dist/chunk-VYBJ5SNV.js +10 -0
  35. package/dist/chunk-VYBJ5SNV.js.map +1 -0
  36. package/dist/{chunk-JKAMT5TC.js → chunk-YO4G7OZA.js} +2 -2
  37. package/dist/{chunk-3RFXFIBL.js → chunk-ZHY3VDHD.js} +2 -2
  38. package/dist/components/Accordion/index.js +2 -2
  39. package/dist/components/ActionButton/index.js +2 -2
  40. package/dist/components/Analytics/Carts/index.js +13 -13
  41. package/dist/components/Analytics/OrderProjection/index.js +6 -6
  42. package/dist/components/Analytics/OverviewAnalytics/index.js +9 -9
  43. package/dist/components/Analytics/PartnerAnalysis/index.js +9 -9
  44. package/dist/components/Analytics/index.js +5 -5
  45. package/dist/components/Autocomplete/index.js +2 -2
  46. package/dist/components/AvatarButton/index.js +6 -6
  47. package/dist/components/BuilderLayout/index.js +2 -2
  48. package/dist/components/BuilderSidebar/index.js +1 -1
  49. package/dist/components/BulkEditModal/index.js +3 -3
  50. package/dist/components/CardBrand/index.js +1 -1
  51. package/dist/components/ColorPickerInput/index.js +2 -2
  52. package/dist/components/Common/index.js +8 -8
  53. package/dist/components/Common/index.js.map +1 -1
  54. package/dist/components/CopyButton/index.js +2 -2
  55. package/dist/components/DataGrid/index.js +3 -3
  56. package/dist/components/DataView/index.js +5 -5
  57. package/dist/components/DatePicker/index.js +1 -7
  58. package/dist/components/DatePicker/index.js.map +1 -1
  59. package/dist/components/DragButton/index.js +2 -2
  60. package/dist/components/Drawer/index.js +2 -2
  61. package/dist/components/DynamicDataView/index.js +9 -9
  62. package/dist/components/EasyCropModal/index.js +3 -3
  63. package/dist/components/Error/index.js +1 -1
  64. package/dist/components/ExpandableGroup/index.js +1 -1
  65. package/dist/components/FileUpload/index.js +6 -6
  66. package/dist/components/Filters/index.js +3 -3
  67. package/dist/components/FrameSkeleton/index.js +1 -1
  68. package/dist/components/HelpButton/index.js +2 -2
  69. package/dist/components/Icon/index.js +1 -1
  70. package/dist/components/IconButton/index.js +2 -2
  71. package/dist/components/ImageCropModal/index.js +2 -2
  72. package/dist/components/Incrementer/index.js +2 -2
  73. package/dist/components/InfoCircle/index.js +2 -2
  74. package/dist/components/Label/index.js +1 -1
  75. package/dist/components/ListBundles/index.js +2 -2
  76. package/dist/components/MenuItem/index.js +2 -2
  77. package/dist/components/Modal/index.js +2 -2
  78. package/dist/components/MoreMenu/index.js +2 -2
  79. package/dist/components/NotFound/index.js +1 -1
  80. package/dist/components/PasswordRules/index.js +1 -1
  81. package/dist/components/PopoverSelect/index.js +1 -1
  82. package/dist/components/PortalBrandImage/index.js +1 -1
  83. package/dist/components/RescheduleBilletDialog/index.d.ts +49 -0
  84. package/dist/components/RescheduleBilletDialog/index.js +18 -0
  85. package/dist/components/RescheduleBilletDialog/index.js.map +1 -0
  86. package/dist/components/SearchInput/index.js +2 -2
  87. package/dist/components/SelectList/index.js +5 -5
  88. package/dist/components/SelectableCards/index.js +3 -3
  89. package/dist/components/SeoPreview/index.js +1 -1
  90. package/dist/components/StateDisplay/index.js +2 -2
  91. package/dist/components/StepNavigator/index.js +2 -2
  92. package/dist/components/StepUpDialog/index.js +1 -1
  93. package/dist/components/Steps/index.js +1 -1
  94. package/dist/components/StyledTab/index.js +1 -1
  95. package/dist/components/SwapList/index.js +2 -2
  96. package/dist/components/ToggleTheme/index.js +5 -5
  97. package/dist/components/WebhookCard/index.js +2 -2
  98. package/dist/components/carousel/index.js +2 -2
  99. package/dist/components/form/Address/index.js +3 -3
  100. package/dist/components/form/Autocomplete/index.js +3 -3
  101. package/dist/components/form/ColorPicker/index.js +2 -2
  102. package/dist/components/form/FileUpload/index.js +6 -6
  103. package/dist/components/form/Incrementer/index.js +2 -2
  104. package/dist/components/form/Password/index.js +1 -1
  105. package/dist/components/form/SelectList/index.js +5 -5
  106. package/dist/components/form/SelectableCards/index.js +3 -3
  107. package/dist/components/form/Webhook/index.js +4 -4
  108. package/dist/components/lightbox/index.js +1 -1
  109. package/dist/components/table/index.js +2 -2
  110. package/dist/hooks/useThemeToggle.js +5 -5
  111. package/dist/index.js +5 -5
  112. package/dist/motion-features-DVZXIFXF.js +2 -0
  113. package/dist/motion-features-DVZXIFXF.js.map +1 -0
  114. package/dist/theme/core/index.js +2 -2
  115. package/dist/theme/theme-provider.js +5 -5
  116. package/dist/theme/with-settings/index.js +2 -2
  117. package/dist/utils/buildExportPayload.js +1 -1
  118. package/package.json +1 -1
  119. package/dist/chunk-4734QSYC.js +0 -46
  120. package/dist/chunk-4734QSYC.js.map +0 -1
  121. package/dist/chunk-PUMCHXCD.js +0 -10
  122. package/dist/chunk-PUMCHXCD.js.map +0 -1
  123. /package/dist/{chunk-35HI7WFI.js.map → chunk-33LSXTPO.js.map} +0 -0
  124. /package/dist/{chunk-YJYS2LQQ.js.map → chunk-33SY23DN.js.map} +0 -0
  125. /package/dist/{chunk-FC4OALKP.js.map → chunk-4IHN3WGD.js.map} +0 -0
  126. /package/dist/{chunk-CZ5Y53WA.js.map → chunk-4XN57SLB.js.map} +0 -0
  127. /package/dist/{chunk-VPZL6AIF.js.map → chunk-5NLFXSCK.js.map} +0 -0
  128. /package/dist/{chunk-YU5R3EXT.js.map → chunk-7VKM3HYT.js.map} +0 -0
  129. /package/dist/{chunk-G7TQARLI.js.map → chunk-ANR6TAGJ.js.map} +0 -0
  130. /package/dist/{chunk-7BIG6SAF.js.map → chunk-BEAXX74S.js.map} +0 -0
  131. /package/dist/{chunk-TS7QZPD6.js.map → chunk-BTVG4NW3.js.map} +0 -0
  132. /package/dist/{chunk-H762KDPN.js.map → chunk-C2T2YAFC.js.map} +0 -0
  133. /package/dist/{chunk-TAA5KCEG.js.map → chunk-CA65HZ2Z.js.map} +0 -0
  134. /package/dist/{chunk-COAGQGZA.js.map → chunk-DYZC2NKL.js.map} +0 -0
  135. /package/dist/{chunk-BKL525ZD.js.map → chunk-EOF7RBR3.js.map} +0 -0
  136. /package/dist/{chunk-5ZMA4N4W.js.map → chunk-FMFS42U2.js.map} +0 -0
  137. /package/dist/{chunk-MY4CZ5PC.js.map → chunk-G6HGDG22.js.map} +0 -0
  138. /package/dist/{chunk-KDSM2AIT.js.map → chunk-GR5GSCOD.js.map} +0 -0
  139. /package/dist/{chunk-TOZ66UM4.js.map → chunk-H33QKOVI.js.map} +0 -0
  140. /package/dist/{chunk-L6CMWQCC.js.map → chunk-JWX3OMRI.js.map} +0 -0
  141. /package/dist/{chunk-TSEVZMIE.js.map → chunk-LTXQ3A3C.js.map} +0 -0
  142. /package/dist/{chunk-EICUAMNN.js.map → chunk-MWKWO5P2.js.map} +0 -0
  143. /package/dist/{chunk-H7OG32Y5.js.map → chunk-NBERBY2S.js.map} +0 -0
  144. /package/dist/{chunk-PMKM67BB.js.map → chunk-NDX5YJV7.js.map} +0 -0
  145. /package/dist/{chunk-YKCEUH6C.js.map → chunk-NM3VHC2R.js.map} +0 -0
  146. /package/dist/{chunk-7GJMLPJV.js.map → chunk-OQIEF5BC.js.map} +0 -0
  147. /package/dist/{chunk-OWJ6XY6F.js.map → chunk-Q7VIAAF7.js.map} +0 -0
  148. /package/dist/{chunk-IT6HMYIE.js.map → chunk-R4IVYFP2.js.map} +0 -0
  149. /package/dist/{chunk-VELCTMU2.js.map → chunk-RTXMZGBW.js.map} +0 -0
  150. /package/dist/{chunk-UCQA4HF7.js.map → chunk-UFBKEQMU.js.map} +0 -0
  151. /package/dist/{chunk-JKAMT5TC.js.map → chunk-YO4G7OZA.js.map} +0 -0
  152. /package/dist/{chunk-3RFXFIBL.js.map → chunk-ZHY3VDHD.js.map} +0 -0
@@ -1,11 +1,11 @@
1
- import { a as a$9 } from './chunk-35HI7WFI.js';
1
+ import { a as a$9 } from './chunk-33LSXTPO.js';
2
2
  import { a as a$5 } from './chunk-4F2NKGF6.js';
3
3
  import { a as a$4 } from './chunk-PRWQQJDL.js';
4
- import { c, a as a$7, b as b$2 } from './chunk-FC4OALKP.js';
4
+ import { c, a as a$7, b as b$2 } from './chunk-4IHN3WGD.js';
5
5
  import { a as a$6 } from './chunk-6U5LS7MP.js';
6
6
  import { i, r, k, n, l, a as a$2, p, j, m, b as b$1, c as c$1, d, q, h, f, e, o, g } from './chunk-XUDTPZHF.js';
7
7
  import { a as a$3 } from './chunk-I4PPSW36.js';
8
- import { a } from './chunk-5ZMA4N4W.js';
8
+ import { a } from './chunk-FMFS42U2.js';
9
9
  import { a as a$8 } from './chunk-F65ZXAGV.js';
10
10
  import { b } from './chunk-TXJ45CNA.js';
11
11
  import { a as a$1 } from './chunk-LQRRMVFN.js';
@@ -24,4 +24,4 @@ import { GridToolbarColumnsButton } from '@mui/x-data-grid-premium';
24
24
  var $o=(o,e)=>typeof o=="function"?o(e):!!o,be=(o,e)=>{if(o)return o===!0?{}:typeof o=="function"?o(e):o},Re=({actions:o,context:e})=>{let[t,n]=useState(null),[a$1,r]=useState(null),l=useMemo(()=>o.filter(i=>!$o(i.hidden,e)),[o,e]),s=useCallback(async i=>{r(i.actionId);try{await i.handler(e);}finally{r(null);}},[e]),d=useCallback(i=>{if(i.confirmation){n(i);return}s(i).catch(()=>{});},[s]),p=useCallback(async()=>{t&&(await s(t),n(null));},[t,s]),S=useCallback(()=>{a$1||n(null);},[a$1]),c=be(t?.confirmation,e);return jsxs(Fragment,{children:[jsx(m,{children:l.map(i=>{let g=!!a$1||$o(i.disabled,e),m=a$1===i.actionId;return jsx(we,{size:"small",variant:"text",onClick:()=>d(i),loading:m,disabled:g,sx:{color:"text.primary"},startIcon:typeof i.icon=="string"?jsx(a,{icon:i.icon}):i.icon,children:i.label},i.actionId)})}),t&&jsx(a$4,{open:!0,onClose:S,onConfirm:()=>{p().catch(()=>{});},confirming:a$1===t.actionId,modalTitle:c?.title??`${t.action??"Excluir"} ${e.selectedCount} ${t.entityName??"registro"}${e.selectedCount!==1?"s":""}?`,message:c?.message??"Esta a\xE7\xE3o n\xE3o poder\xE1 ser desfeita.",cancelButtonText:c?.cancelButtonText??"Cancelar",confirmButtonText:c?.confirmButtonText??"Sim, excluir"})]})},qo=Re;var De=({title:o,breakpoint:e,actions:t,showActions:n,showAdd:a$1,showHeaderMoreActions:r,showActionsContainer:l,onAdd:s,onOpenMoreActions:d$1})=>jsxs(b$1,{breakpoint:e,children:[jsx(oe,{variant:"overline",color:"text.secondary",noWrap:!0,children:o}),l&&jsxs(c$1,{breakpoint:e,children:[n&&t,a$1&&jsxs(Fragment,{children:[n&&jsx(d,{orientation:"vertical",flexItem:!0}),jsx(Ko,{startIcon:jsx(a,{icon:"SIMPLE_ADD"}),variant:"contained",onClick:s,children:"Adicionar"})]}),r&&jsxs(Fragment,{children:[(n||a$1)&&jsx(d,{orientation:"vertical",flexItem:!0}),jsx(Ko,{color:"inherit",startIcon:jsx(a,{icon:"MORE_BOLD"}),size:"small",onClick:d$1,children:"Mais"})]})]})]}),Jo=De;var xe=({fetching:o,loading:e,rows:t,mobileSlots:n,mobileSlotsProps:a,slots:r$1,scrollableNodeRef:l,mobileRender:s,hideFooter:d,onPaginationChange:p,rowCount:S,paginationModel:c,error:i,onRetry:g})=>jsxs(a$5,{isFetching:o,fetching:jsx(a$6,{}),isLoading:e,loading:jsx(q,{}),anError:a$7(i)&&t.length===0,error:jsx(b$2,{onRetry:g}),isEmpty:t.length===0,empty:jsxs(to,{flex:1,direction:"column",...a,children:[n&&n,jsx(to,{flex:1,alignItems:"center",justifyContent:"center",children:r$1?.noRowsOverlay?jsx(r$1.noRowsOverlay,{}):jsx(oe,{variant:"body2",color:"text.secondary",children:"Nenhum registro encontrado"})})]}),children:[jsxs(to,{direction:"column",flex:1,minHeight:0,...a,children:[n&&n,jsx(a$8,{fillContent:!0,ref:l,children:t.map(m=>jsx(Fragment$1,{children:s(m)},m.id))})]}),!d&&p&&jsx(h,{children:jsx(r,{count:S,page:c.page,rowsPerPage:c.pageSize,onPageChange:m=>p?.(m,c.pageSize),onRowsPerPageChange:m=>p?.(0,m)})})]}),Xo=xe;var z="datagrid-actions";var Yo=(o,e)=>Children.map(o,t=>{if(!isValidElement(t))return t;let n=t.props.onClick,a={};a.onClick=(...l)=>{e(),n&&n(...l);};let r=t.props;return r?.children&&(a.children=Yo(r.children,e)),cloneElement(t,a)}),He=({children:o,onClose:e})=>o?Yo(o,e):null,ro=memo(He);var Le=({breakpoint:o$1,isMobile:e$1,showSearch:t,showMoreActions:n,showTopbarMoreActions:a$1,showHeaderMoreActions:r,filterButton:l,searchValue:s,onSearch:d,onSearchChange:p,moreActions:S,popover:c})=>jsxs(f,{breakpoint:o$1,children:[jsxs(to,{flex:1,direction:"row",alignItems:"center",id:z,gap:.5,children:[n&&jsxs(Fragment,{children:[a$1&&jsxs(Fragment,{children:[jsx(Ko,{color:"inherit",startIcon:jsx(a,{icon:"MORE_BOLD"}),size:"small",onClick:c.onOpen,children:"Mais"}),!e$1&&jsx(e,{orientation:"vertical",flexItem:!0})]}),(a$1||r)&&jsx(o,{open:c.open,anchorEl:c.open,onClose:c.onClose,disabledArrow:!0,children:jsx(ro,{onClose:c.onClose,children:S})})]}),!e$1&&l&&jsxs(Fragment,{children:[l,a$1&&jsx(e,{orientation:"vertical",flexItem:!0})]})]}),t&&jsxs(g,{breakpoint:o$1,children:[jsx(a$9,{value:s,placeholder:"Buscar",onSearch:i=>d(i??""),onChange:i=>p?.(i.target.value),size:"small",fullWidth:!0,iconPosition:"start"}),e$1&&l&&jsx(to,{ml:1,children:l})]})]}),jo=Le;var Fe=({rowCount:o,page:e,rowsPerPage:t,onPaginationChange:n})=>jsxs(i,{children:[jsxs(to,{direction:"row",alignItems:"center",gap:.5,children:[jsx(oe,{variant:"body2",color:"text.disabled",children:"Total de itens:"}),jsx(oe,{variant:"body2",children:o})]}),jsx(r,{count:o,page:e,rowsPerPage:t,onPageChange:a=>n(a,t),onRowsPerPageChange:a=>n(0,a)})]}),lo=memo(Fe);var qe=forwardRef(({children:o,...e},t)=>jsx(Ko,{...e,ref:t,color:"inherit",startIcon:jsx(a,{icon:"COLUMNS"}),children:o??"Colunas"}));qe.displayName="ColumnsButton";var Ke=({setFilterButtonEl:o})=>{let e=useCallback(t=>{o(t);},[o]);return jsx(a$3,{container:z,children:jsx(GridToolbarColumnsButton,{ref:e,slotProps:{button:{color:"inherit",startIcon:jsx(a,{icon:"COLUMNS"}),children:"Colunas"}}})})},so=Ke;var Xe=({slots:o,showColumnButton:e,rowCount:t,paginationModel:n,onPaginationChange:a})=>{let r=useCallback(()=>a?jsx(lo,{rowCount:t,page:n.page,rowsPerPage:n.pageSize,onPaginationChange:a}):null,[t,n,a]);return {dataGridSlots:useMemo(()=>({...o,footer:r,...e&&!o?.toolbar&&{toolbar:so}}),[o,r,e])}},te=Xe;var Ze=({rows:o,rowSelectionModel:e,onRowSelectionModelChange:t,getRowId:n,bulkActions:a})=>{let r=useMemo(()=>Array.isArray(e)?e:[],[e]),l=r.length,s=useMemo(()=>o.map(h=>n(h)),[o,n]),d=useMemo(()=>new Set(s),[s]),p=useMemo(()=>r.reduce((h,A)=>h+(d.has(A)?1:0),0),[r,d]),S=s.length>0&&p===s.length,c=p>0&&!S,i=useCallback(h=>{t&&t(h);},[t]),g=useCallback(()=>{i([]);},[i]),m=useMemo(()=>new Set(r),[r]),D=useMemo(()=>o.filter(h=>m.has(n(h))),[o,m,n]),_=useMemo(()=>({selectedIds:r,selectedRowsInPage:D,selectedCount:l,clearSelection:g}),[r,D,l,g]),W=!!a?.length,v=useCallback((h,A)=>{if(!t)return;if(A){let I=new Set(r),E=[...r];s.forEach(M=>{I.has(M)||E.push(M);}),i(E);return}let G=r.filter(I=>!d.has(I));i(G);},[t,r,s,d,i]);return {selectionModel:r,numSelected:l,allSelected:S,someSelected:c,hasBulkActions:W,bulkActionContext:_,clearSelection:g,handleSelectAllToggle:v}},ne=Ze;var lt=({title:o,header:e,headerProps:t,breakpoint:n$1="md",columns:a$3,rows:r=[],mobileSlots:l$1,mobileSlotsProps:s,mobileRender:d,rowCount:p$1=0,paginationModel:S={page:0,pageSize:25},onPaginationChange:c$1,actions:i,moreActions:g,onAdd:m,onSearch:D,searchValue:_,onSearchChange:W,slots:v,slotProps:h,loading:A,fetching:G,fetchingNextPage:I,containerProps:E={height:562,maxHeight:562},hideFooter:M,showColumnButton:mo=!1,filterButton:po,activeFilters:uo,bulkActions:fo,onRowsScrollEnd:V,scrollEndThreshold:$=200,error:So,onRetry:go,...R})=>{let ho=a$1(),T=b("down",n$1),[ae,le]=useState(null),Co=useRef(null);useEffect(()=>{let P=Co.current;if(!P||!T||!V)return;let Ro=()=>{let{scrollTop:Ce,scrollHeight:Ae,clientHeight:ke}=P;Ae-Ce-ke<=$&&V();};return P.addEventListener("scroll",Ro,{passive:!0}),()=>{P.removeEventListener("scroll",Ro);}},[T,V,$,r.length]);let se=useMemo(()=>R.getRowId??(P=>P.id),[R.getRowId]),{numSelected:q,allSelected:ce,someSelected:de,hasBulkActions:me,bulkActionContext:pe,clearSelection:ue,handleSelectAllToggle:fe}=ne({rows:r,rowSelectionModel:Array.isArray(R.rowSelectionModel)?R.rowSelectionModel:void 0,onRowSelectionModelChange:R.onRowSelectionModelChange,getRowId:se,bulkActions:fo}),{dataGridSlots:Se}=te({slots:v,showColumnButton:mo,rowCount:p$1,paginationModel:S,onPaginationChange:c$1}),Ao=!!D,ko=!!m,To=!!i,K=!!g,Q=T&&K,wo=!T&&K,ge=To||ko||Q,bo=wo||Ao||mo||!!po||!T,he=me&&q>0&&jsxs(k,{children:[jsxs(to,{flexDirection:"row",alignItems:"center",gap:1,flex:1,children:[jsx(ie,{title:"Selecione todos nessa pagina",children:jsx(n,{size:"small",checked:ce,indeterminate:de,onChange:fe})}),jsxs(l,{variant:"body2",children:[q," selecionado",q>1?"s":""]}),jsx(ie,{title:"Desselecionar tudo",children:jsx(it,{size:"small",onClick:ue,"aria-label":"Desselecionar tudo",sx:{color:"primary.main"},children:jsx(a,{icon:"CLOSE_MARK_BUTTON",width:18,height:18})})})]}),jsx(qo,{actions:fo??[],context:pe})]});return jsxs(a$2,{breakpoint:n$1,...E,flex:A?1:void 0,minHeight:A||r.length===0?562:void 0,children:[e?jsx(to,{p:3,...t,children:e}):jsxs(Fragment,{children:[jsx(Jo,{title:o,breakpoint:n$1,actions:i,showActions:To,showAdd:ko,showHeaderMoreActions:Q,showActionsContainer:ge,onAdd:m,onOpenMoreActions:ho.onOpen}),bo&&jsx(jo,{breakpoint:n$1,isMobile:T,showSearch:Ao,showMoreActions:K,showTopbarMoreActions:wo,showHeaderMoreActions:Q,filterButton:po,searchValue:_,onSearch:D,onSearchChange:W,moreActions:g,popover:ho}),uo&&uo,!bo&&jsx(p,{})]}),T?jsx(Xo,{fetching:G,loading:A,rows:r,mobileSlots:l$1,mobileSlotsProps:s,slots:v,scrollableNodeRef:Co,mobileRender:d,hideFooter:M,onPaginationChange:c$1,rowCount:p$1,paginationModel:S,error:So,onRetry:go}):jsxs(j,{children:[he,jsx(c,{columns:a$3,rows:r,slots:Se,slotProps:{panel:{anchorEl:ae},toolbar:{setFilterButtonEl:le,showQuickFilter:!0},...h},columnHeaderHeight:48,getRowHeight:()=>68,loading:A,fetching:G,hideFooter:M,onRowsScrollEnd:V,scrollEndThreshold:$,error:So,onRetry:go,...R})]}),I&&jsx(at,{})]})},On=memo(lt,rt);
25
25
 
26
26
  export { ro as a, lo as b, so as c, On as d };
27
- //# sourceMappingURL=chunk-YKCEUH6C.js.map
27
+ //# sourceMappingURL=chunk-NM3VHC2R.js.map
@@ -1,9 +1,9 @@
1
1
  import { a } from './chunk-LNESYSHP.js';
2
- import { r, b, a as a$2 } from './chunk-4734QSYC.js';
2
+ import { r, b, a as a$2 } from './chunk-JLJQNAJB.js';
3
3
  import { h as h$1, j } from './chunk-Y66XXBB3.js';
4
4
  import a$1 from 'color';
5
5
 
6
6
  function P(t,e){let{colorSchemes:r$1,customShadows:o}=t;return {...t,colorSchemes:{...r$1,light:{palette:{...r$1?.light?.palette,primary:d(e.primaryColor),background:{...r$1?.light?.palette?.background,default:h(e.contrast),defaultChannel:h$1(h(e.contrast))}}},dark:{palette:{...r$1?.dark?.palette,primary:d(e.primaryColor)}}},customShadows:{...o,primary:r("light",e.primaryColor).primary}}}function T(t){let e={};if(t.contrast==="hight"){let r={styleOverrides:{root:({theme:o,ownerState:c})=>{let i={};return typeof a$2?.MuiCard?.styleOverrides?.root=="function"&&(i=a$2.MuiCard.styleOverrides.root({ownerState:c,theme:o})??{}),{...i,boxShadow:o.customShadows.z1}}}};e.MuiCard=r;}return {components:e}}function d(t){let e=f(t);return j(e)}function h(t){return t==="default"?"#FFFFFF":b[200]}function f(t){let e=a(t);return {lighter:a$1(t).lighten(.55).hex(),light:a$1(t).lighten(.225).hex(),main:t,dark:a$1(t).darken(.15).hex(),darker:a$1(t).darken(.35).hex(),contrastText:e<=.55?"#ffffff":"#3E3E3E"}}
7
7
 
8
8
  export { P as a, T as b, f as c };
9
- //# sourceMappingURL=chunk-7GJMLPJV.js.map
9
+ //# sourceMappingURL=chunk-OQIEF5BC.js.map
@@ -1,7 +1,7 @@
1
- import { a as a$2, b, c } from './chunk-EICUAMNN.js';
1
+ import { a as a$2, b, c } from './chunk-MWKWO5P2.js';
2
2
  import { a as a$4 } from './chunk-DRGARBKB.js';
3
3
  import { a as a$5 } from './chunk-4F2NKGF6.js';
4
- import { a as a$3 } from './chunk-YU5R3EXT.js';
4
+ import { a as a$3 } from './chunk-7VKM3HYT.js';
5
5
  import { a } from './chunk-E3R7W7GK.js';
6
6
  import { a as a$1 } from './chunk-GGJJ3II3.js';
7
7
  import { useState, useMemo, useCallback } from 'react';
@@ -13,4 +13,4 @@ import { jsxs, jsx } from 'react/jsx-runtime';
13
13
  var K=({name:v,title:s,placeholder:C,emptyText:I,testIdPrefix:V,defaultExpanded:w,selected:n,onChange:i,useOptions:D})=>{let[m,E]=a(w),[L,c$1]=useState(""),{buildOptions:u,finishSearch:P,onSearch:W,onSelectValue:d,search:R,searching:l}=a$1(),{items:g,isFetching:r,isLoading:$}=D({search:R,skip:!m}),a$6=useMemo(()=>l||r?[]:u(g.map(({id:o,name:t})=>({value:o,label:t})),r),[u,r,g,l]),q=n.length>0,z=useCallback(o=>{d(a$6,o);let t=typeof o=="string"?o:String(o?.value||""),H=a$6.find(p=>String(p.value)===t)?.label||(typeof o=="string"?o:String(o?.label||""));t&&!n.some(p=>p.id===t)&&i([...n,{id:t,name:H}]),c$1("");},[i,d,a$6,n]),B=useCallback(o=>{i(n.filter(t=>t.id!==o.id));},[i,n]);return jsxs(a$2,{expanded:m,onChange:E,children:[jsx(b,{children:jsx(F,{variant:"body2",fontWeight:"bold",color:"text.primary",children:s})}),jsx(c,{children:jsxs(J,{gap:1,children:[jsx(a$3,{name:v,label:s,placeholder:C,size:"small",options:a$6,isOptionEqualToValue:(o,t)=>o.value===t.value,loading:$,inputValue:L,onInputChange:(o,t)=>c$1(t),onSearch:W,onBlur:P,onChange:z,filterOptions:o=>o,noOptionsText:l||r?"Carregando...":void 0,InputLabelProps:{shrink:!0},fullWidth:!0}),jsx(a$4,{direction:"row",alignItems:"center",flexWrap:"wrap",overflow:"auto",maxHeight:148,p:1.5,sx:{bgcolor:"grey.50"},children:jsx(a$5,{isEmpty:!q,empty:jsx(F,{variant:"body2",color:"text.secondary",children:I}),children:n.map((o,t)=>jsx(G,{variant:"outlined",label:o.name,color:"default",onDelete:()=>B(o),"data-testid":`${V}-${t}`},t))})})]})})]})},io=K;
14
14
 
15
15
  export { io as a };
16
- //# sourceMappingURL=chunk-OWJ6XY6F.js.map
16
+ //# sourceMappingURL=chunk-Q7VIAAF7.js.map
@@ -1,7 +1,7 @@
1
1
  import { a as a$4 } from './chunk-6ZSTKYGL.js';
2
- import { a as a$1 } from './chunk-35HI7WFI.js';
2
+ import { a as a$1 } from './chunk-33LSXTPO.js';
3
3
  import { a as a$3 } from './chunk-4F2NKGF6.js';
4
- import { a } from './chunk-5ZMA4N4W.js';
4
+ import { a } from './chunk-FMFS42U2.js';
5
5
  import { a as a$2 } from './chunk-F65ZXAGV.js';
6
6
  import { memo, useCallback, useState, useMemo } from 'react';
7
7
  import Q from '@mui/material/Button';
@@ -16,4 +16,4 @@ import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
16
16
  var T=styled(H,{shouldForwardProp:t=>t!=="active"&&t!=="disabled"})(({theme:t,active:a,disabled:i})=>({boxShadow:"none",borderRadius:8,borderStyle:"solid",borderWidth:1.5,borderColor:a?t.palette.primary.main:t.palette.grey[300],color:t.palette.primary.main,backgroundColor:a?alpha(t.palette.primary.main,.04):"white","&:hover":{borderColor:t.palette.primary.main},...i?{opacity:.6,cursor:"default"}:{opacity:1,cursor:"pointer"}}));var D=memo(({item:t,isSelected:a$1,disabled:i,onSelectItem:n})=>{let o=useCallback(()=>{n(t);},[t,n]);return jsx(q,{item:!0,xs:4,children:jsx(T,{active:a$1,onClick:o,disabled:i,children:jsxs(d,{padding:1.5,width:"100%",children:[jsxs(d,{direction:"row",alignItems:"center",justifyContent:"space-between",children:[jsx(h,{color:a$1?"primary.main":"text.primary",variant:"subtitle2",textAlign:"left",noWrap:!0,children:t.title}),a$1&&jsx(a,{icon:"CHECK_CIRCLE",width:24})]}),t.options.map(l=>jsx(h,{mt:1,variant:"body2",color:"text.disabled",fontSize:12,textAlign:"left",noWrap:!0,children:`${l.label}: ${l.value}`},l.label))]})})},t.title)});D.displayName="CardItem";var O=D;var Y=new Intl.PluralRules("pt-BR"),Z=new Map([["one","selecionado"],["other","selecionados"]]),tt=t=>{let a=Y.select(t),i=Z.get(a);return `${t} ${i}`},rt=({title:t,action:a,loading:i,items:n,values:o,onChange:l,onSearch:C,disabled:s=!1})=>{let[p,$]=useState(),b=useMemo(()=>new Set(o),[o]),y=useCallback(r=>b.has(r),[b]),A=useMemo(()=>{if(!p)return n;let r=p.toLowerCase();return n.filter(g=>g.title.toLowerCase().includes(r))},[n,p]),B=useCallback(r=>{if(s)return;let g=y(r.value),u;g?u=o.filter(N=>N!==r.value):u=[...o,r.value],l(u);},[s,y,l,o]),w=useMemo(()=>n.map(r=>r.value),[n]),G=useCallback(()=>{s||(o.length===n.length?l([]):l(w));},[s,n.length,l,o.length,w]),K=useCallback(r=>{$(r),C?.(r);},[C]),W=r=>{r.key==="Enter"&&r.preventDefault();},z=useMemo(()=>o.length===0?"nenhum selecionado":tt(o.length),[o.length]),M=useMemo(()=>typeof t=="string"?jsx(h,{variant:"overline",color:"text.disabled",children:t}):t,[t]);return jsxs(d,{gap:1.5,height:450,children:[jsxs(d,{direction:"row",justifyContent:"space-between",children:[M,jsx(h,{variant:"overline",color:"text.disabled",children:z})]}),jsxs(d,{direction:"row",alignItems:"center",spacing:1.5,children:[jsx(a$1,{fullWidth:!0,size:"small",iconPosition:"start",placeholder:"Buscar",trigger:"change",onSearch:K,onKeyDown:W}),a?jsx(Fragment,{children:a}):jsx(Q,{onClick:G,size:"small",disabled:s,children:jsx(h,{variant:"overline",children:"TODOS"})})]}),jsx(a$2,{children:jsx(d,{flex:1,mb:2,children:jsx(a$3,{isLoading:i,loading:jsx(d,{alignItems:"center",mt:3,children:jsx(U,{})}),isEmpty:n.length===0,empty:jsx(a$4,{sx:{svg:{height:140}},text:p?`N\xE3o foi possivel encontrar o item "${p}"`:"Nenhum item dispon\xEDvel"}),children:jsx(q,{container:!0,spacing:1.5,children:A.map(r=>jsx(O,{item:r,isSelected:y(r.value),disabled:s,onSelectItem:B},r.value))})})})})]})},xt=rt;
17
17
 
18
18
  export { xt as a };
19
- //# sourceMappingURL=chunk-IT6HMYIE.js.map
19
+ //# sourceMappingURL=chunk-R4IVYFP2.js.map
@@ -1,4 +1,4 @@
1
- import { a } from './chunk-5ZMA4N4W.js';
1
+ import { a } from './chunk-FMFS42U2.js';
2
2
  import e from '@mui/material/Box';
3
3
  import f from '@mui/material/Card';
4
4
  import b from '@mui/material/CardHeader';
@@ -11,4 +11,4 @@ import { jsxs, jsx } from 'react/jsx-runtime';
11
11
  var y=styled(f)(({theme:o})=>({width:"100%",border:`1px solid ${o.palette.divider}`,boxShadow:"none",overflow:"visible"})),k=styled(b)(({theme:o})=>({[o.breakpoints.down("sm")]:{flexWrap:"wrap",gap:o.spacing(2),"& .MuiCardHeader-action":{width:"100%"}}})),v=styled(t)({position:"relative",width:"100%",overflow:"visible","& .recharts-wrapper, & .recharts-wrapper *":{outline:"none !important",boxShadow:"none !important",WebkitTapHighlightColor:"transparent"}}),S=styled(e)(({theme:o})=>({backgroundColor:o.palette.background.paper,border:"1px solid",borderColor:o.palette.divider,borderRadius:o.shape.borderRadius,padding:o.spacing(1.5),boxShadow:o.shadows[3]})),T=styled(e)(({theme:o})=>({width:"100%",height:"1px",backgroundColor:o.palette.divider,marginBottom:o.spacing(1.5)})),D=styled(e,{shouldForwardProp:o=>o!=="dotColor"})(({dotColor:o})=>({width:10,height:10,borderRadius:"50%",backgroundColor:o})),I=styled(t)({flexDirection:"row",flexWrap:"wrap",justifyContent:"center",alignItems:"center",gap:16,marginTop:16}),H=styled(t)({flexDirection:"row",alignItems:"center",cursor:"pointer"}),R=styled(w,{shouldForwardProp:o=>o!=="checkboxColor"})(({checkboxColor:o})=>({color:o,"&.Mui-checked":{color:o},padding:4})),A=styled(t)({flexDirection:"row",alignItems:"flex-start",gap:32,marginBottom:24,flexWrap:"wrap"}),W=styled(e)(({theme:o})=>({width:"1px",height:40,backgroundColor:o.palette.divider,alignSelf:"center"})),L=styled(t)({minHeight:350,alignItems:"center",justifyContent:"center",gap:12});var M=()=>jsxs(t,{minHeight:300,alignItems:"center",justifyContent:"center",gap:1.5,children:[jsx(a,{icon:"CALENDAR_TODAY",width:60,color:"text.secondary"}),jsxs(t,{textAlign:"center",children:[jsx(g,{variant:"subtitle1",children:"Nenhum dado dispon\xEDvel ainda"}),jsx(g,{variant:"body2",color:"text.secondary",children:"Assim que houver registros, os dados ser\xE3o exibidos aqui."})]})]}),J=M;var E=o=>{let{x:p,y:d,payload:a,tickFormatter:l,index:C=0,maxChars:s=10}=o;if(p==null||d==null||!a)return null;let i=l?l(a.value,C):a.value,u=i.length>s?`${i.slice(0,s)}...`:i;return jsx("g",{transform:`translate(${p},${d})`,children:jsx("text",{x:0,y:0,dy:4,textAnchor:"end",fill:"#637381",fontSize:11,transform:"rotate(-45)",children:u})})},U=E;
12
12
 
13
13
  export { y as a, k as b, v as c, S as d, T as e, D as f, I as g, H as h, R as i, A as j, W as k, L as l, J as m, U as n };
14
- //# sourceMappingURL=chunk-VELCTMU2.js.map
14
+ //# sourceMappingURL=chunk-RTXMZGBW.js.map
@@ -1,10 +1,10 @@
1
1
  import { a } from './chunk-RUABKHIV.js';
2
- import { a as a$6 } from './chunk-TSEVZMIE.js';
3
- import { a as a$1 } from './chunk-35HI7WFI.js';
2
+ import { a as a$6 } from './chunk-LTXQ3A3C.js';
3
+ import { a as a$1 } from './chunk-33LSXTPO.js';
4
4
  import { a as a$2 } from './chunk-4F2NKGF6.js';
5
5
  import { a as a$3 } from './chunk-6U5LS7MP.js';
6
- import { a as a$5 } from './chunk-MY4CZ5PC.js';
7
- import { a as a$4 } from './chunk-5ZMA4N4W.js';
6
+ import { a as a$5 } from './chunk-G6HGDG22.js';
7
+ import { a as a$4 } from './chunk-FMFS42U2.js';
8
8
  import xe from '@mui/material/FormControlLabel';
9
9
  import fe from '@mui/material/FormHelperText';
10
10
  import Te from '@mui/material/Radio';
@@ -30,4 +30,4 @@ import vt from '@mui/material/TableRow';
30
30
  var q=Array.from({length:12},(t,e)=>jsx(a,{height:48},e)),V=jsx(A,{variant:"body1",color:"text.secondary",align:"center",my:3,children:"Nenhum resultado encontrado"}),Y=(t,e)=>Math.ceil(t/(e||1)),N=t=>t.searchText??(typeof t.label=="string"?t.label:t.value),gt=(t,e)=>({"aria-label":e,"data-testid":t}),X=({page:t,count:e,onChange:n,...o})=>e>1?jsx(Ht,{page:t+1,count:e,onChange:(s,i)=>n(i-1),variant:"soft",sx:{mx:"auto"},...o}):null,H=({feminine:t},e)=>`vinculad${t?"a":"o"}${e?"s":""}`,nt=({feminine:t})=>t?"Nenhuma":"Nenhum",ut=({feminine:t})=>t?"encontrada":"encontrado",at=t=>t.normalize("NFD").replace(/[\u0300-\u036f]/g,"").toLowerCase().trim(),ft=({feminine:t})=>t?"as":"os";var St=styled(tt)(({theme:t})=>({flexDirection:"row",minHeight:48,alignItems:"flex-start",justifyContent:"flex-start",padding:t.spacing(1.5,0),borderBottom:`1px dashed ${t.palette.divider}`,"& label":{marginInline:0,userSelect:"none",alignItems:"flex-start","& .MuiFormControlLabel-label":{minHeight:36,display:"flex",alignItems:"center"}}})),kt=styled(yt)(({theme:t})=>({display:"grid",gap:t.spacing(1),gridTemplateColumns:"minmax(0, 1fr)",[t.breakpoints.up("sm")]:{gridTemplateColumns:"repeat(2, minmax(0, 1fr))"}})),Lt=styled(tt)(({theme:t})=>({flexDirection:"row",alignItems:"center",gap:t.spacing(1.5),minWidth:0,minHeight:68,padding:t.spacing(1.5,1.5,1.5,2),backgroundColor:t.palette.background.paper,border:t.palette.mode==="dark"?"1px solid transparent":`1px solid ${t.palette.divider}`,borderRadius:12})),xt=styled(Dt)(({theme:t})=>({flexShrink:0,width:32,height:32,color:t.palette.error.main,"&:hover":{backgroundColor:alpha(t.palette.error.main,.08)}}));var ct=12,Ut=(t,e)=>{if(!e)return t;let n=typeof e.description=="string"?e.description:"";return `${N(e)} ${n}`},Kt=(t,e)=>typeof e=="string"&&!e.startsWith(`${t} - `)?`${t} - ${e}`:e,qt=({value:t,search:e,optionsById:n,entityLabel:o,readOnly:s,loading:i,onRemove:u})=>{let[f,S]=useState({search:e,page:0});f.search!==e&&S({search:e,page:0});let h=at(e),k=useMemo(()=>h?t.filter(l=>at(Ut(l,n.get(l))).includes(h)):t,[t,n,h]);if(t.length===0)return jsxs(tt,{"data-testid":"select-list-linked-empty",alignItems:"center",gap:1,py:6,textAlign:"center",children:[jsx(a$4,{icon:"USER_CIRCLE_02",width:64,height:64,color:"text.disabled"}),jsxs(A,{variant:"subtitle1",children:[nt(o)," ",o.singular," ",H(o,!1)]}),!s&&jsxs(A,{variant:"body2",color:"text.secondary",maxWidth:420,children:["Clique em ",jsx("strong",{children:"Vincular"})," para escolher na lista completa."]})]});let T=t.length===1,L=Y(k.length,ct),a$1=Math.max(0,Math.min(f.page,L-1)),v=k.slice(a$1*ct,(a$1+1)*ct);return jsxs(tt,{gap:1,children:[jsxs(A,{variant:"body2",color:"text.secondary","data-testid":"select-list-linked-count",children:[jsx("strong",{children:t.length})," ",T?o.singular:o.plural," ",H(o,!T)]}),k.length===0?jsxs(A,{variant:"body2",color:"text.secondary",align:"center",py:3,"data-testid":"select-list-linked-no-results",children:[nt(o)," ",o.singular," ",ut(o)]}):jsx(kt,{"data-testid":"select-list-linked",children:v.map(l=>{let m=n.get(l),I=m?N(m):l;return jsxs(Lt,{"data-testid":`select-list-linked-item-${l}`,children:[m?.startContent,jsxs(yt,{flex:1,minWidth:0,children:[jsx(A,{variant:"body2",component:"div",noWrap:!0,children:m?Kt(l,m.label):jsxs(tt,{direction:"row",gap:1,alignItems:"center",children:[l,i&&jsx(a,{width:96,height:16})]})}),m?.description&&jsx(A,{variant:"caption",color:"text.secondary",component:"div",noWrap:!0,children:m.description})]}),!s&&jsx(xt,{"aria-label":`Remover ${I}`,onClick:()=>u(l),"data-testid":`select-list-linked-remove-${l}`,children:jsx(a$4,{icon:"DELETE_BUTTON_MARK",width:18,height:18})})]},l)})}),jsx(yt,{mt:1,children:jsx(X,{page:a$1,count:L,onChange:l=>S({search:e,page:l}),"data-testid":"select-list-linked-pagination"})})]})},Tt=qt;var Zt=({search:t,entityLabel:e,disabled:n,onSearchChange:o,onLink:s})=>jsxs(tt,{direction:"row",alignItems:"center",gap:1,children:[jsx(Xt,{fullWidth:!0,size:"small",value:t,disabled:n,onChange:i=>o(i.target.value),placeholder:`Buscar ${e.singular} ${H(e,!1)}`,inputProps:{"data-testid":"select-list-search"},InputProps:{startAdornment:jsx(Vt,{position:"start",children:jsx(a$4,{icon:"SEARCH_MAGNIFYING_GLASS",width:20,height:20,color:"text.secondary"})})}}),jsx(a$5,{actionType:"NEW",onClick:s,size:"small",variant:"text","data-testid":"select-list-link",sx:{flexShrink:0},children:"Vincular"})]}),Ct=Zt;var le=[{key:"name",header:"Nome"}],se={"data-testid":"select-list-modal-title"},ce=440,pe=120,me=(t,e)=>{let n=new Set(t.map(s=>s.value)),o=e.filter(s=>!n.has(s.value));return o.length?[...t,...o]:t},de=({value:t,options:e,columns:n,entityLabel:o,total:s=0,pagination:i,onSearch:u,loading:f,loadingView:S,fetching:h,fetchingView:k,emptyView:T,onApply:L,onClose:a})=>{let[v,l]=useState(t),[m]=useState(()=>new Set(t)),[I,et]=useState(!1),[P,w]=useState(null),E=useRef(null),x=useRef(null),C=i?.page??0,d=C+1,M=!!i&&d*i.perPage<s,$=!!(f||h),D=C===0,[O,At]=useState({page:C,options:e,items:e});(O.page!==C||O.options!==e)&&At({page:C,options:e,items:D?e:me(O.items,e)});let ot=useMemo(()=>O.items.filter(r=>!m.has(r.value)),[O.items,m]),mt=n??le,Rt=(r,b)=>n?r.cells?.[b.key]:r.label,rt=useCallback(()=>{let r=E.current;!i||!P||!r||$||!M||x.current===d||r.getBoundingClientRect().top-P.getBoundingClientRect().bottom>pe||(x.current=d,i.onChange(d,i.perPage));},[P,i,$,M,d]);useEffect(()=>rt(),[rt,ot]);let wt=(r,b)=>l(F=>b?[...F,r]:F.filter(Nt=>Nt!==r)),Ot=r=>{x.current=null,P?.scrollTo?.({top:0}),et(!!r),u?.(r||void 0);},it=()=>{I&&u?.(void 0),i&&C>0&&i.onChange(0,i.perPage),a();},Bt=()=>{L(v),it();},_t=ot.length===0&&!$&&!M;return jsx(a$6,{open:!0,maxWidth:"md",fullWidth:!0,onClose:it,dialogTitle:`Marque ${ft(o)} ${o.plural} que deseja vincular`,dialogTitleProps:se,"data-testid":"select-list-modal",actions:jsxs(Fragment,{children:[jsx(a$5,{actionType:"CANCEL",variant:"text",color:"inherit",onClick:it,"data-testid":"select-list-modal-cancel",children:"Cancelar"}),jsx(a$5,{actionType:"CONFIRM",onClick:Bt,"data-testid":"select-list-modal-apply",children:"Aplicar"})]}),children:jsxs(tt,{gap:2,children:[u&&jsx(a$1,{onSearch:Ot,size:"small",fullWidth:!0,placeholder:`Buscar ${o.singular}`,iconPosition:"start",inputProps:{"data-testid":"select-list-modal-search"}}),jsx(a$2,{isLoading:f&&D,loading:S||q,isFetching:h&&D,fetching:k||jsx(a$3,{}),children:_t?T||V:jsxs(ne,{ref:w,onScroll:rt,sx:{maxHeight:ce},"data-testid":"select-list-modal-list",children:[jsxs(re,{size:"small",stickyHeader:!0,children:[jsx(ae,{children:jsxs(vt,{children:[jsx(Q,{padding:"checkbox"}),mt.map(r=>jsx(Q,{sx:{width:r.width},children:r.header},r.key))]})}),jsx(ie,{children:ot.map(r=>jsxs(vt,{hover:!0,"data-testid":`select-list-modal-row-${r.value}`,children:[jsx(Q,{padding:"checkbox",children:jsx(ee,{checked:v.includes(r.value),disabled:r.disabled,onChange:(b,F)=>wt(r.value,F),inputProps:gt(`select-list-modal-check-${r.value}`,`Selecionar ${N(r)}`)})}),mt.map(b=>jsx(Q,{children:Rt(r,b)},b.key))]},r.value))})]}),jsx(tt,{ref:E,alignItems:"center",justifyContent:"center",minHeight:M?56:0,"data-testid":"select-list-modal-load-more",children:$&&!D&&jsx(oe,{size:24})})]})})]})})},It=de;var he=[],Se=({value:t,options:e,selectedOptions:n,entityLabel:o,columns:s,readOnly:i,selectedLoading:u,onChange:f,onSearch:S,total:h,pagination:k,loading:T,loadingView:L,fetching:a,fetchingView:v,emptyView:l,error:m,helperText:I})=>{let[et,P]=useState(!1),[w,E]=useState(""),x=Array.isArray(t)?t:he;x.length===0&&w&&E("");let C=useMemo(()=>new Map(n.map(d=>[d.value,d])),[n]);return jsxs(Fragment,{children:[!i&&jsx(Ct,{search:w,entityLabel:o,disabled:x.length===0,onSearchChange:E,onLink:()=>P(!0)}),jsx(Tt,{value:x,search:i?"":w,optionsById:C,entityLabel:o,readOnly:i,loading:u,onRemove:d=>f(x.filter(M=>M!==d))}),I&&jsx(fe,{error:m,children:I}),et&&jsx(It,{value:x,options:e,columns:s,entityLabel:o,total:h,pagination:k,onSearch:S,loading:T,loadingView:L,fetching:a,fetchingView:v,emptyView:l,onApply:d=>{E(""),f(d);},onClose:()=>P(!1)})]})},Mt=Se;var be=({value:t,options:e,onChange:n,pagination:o,onSearch:s,total:i=0,loading:u,loadingView:f,fetching:S,fetchingView:h,emptyView:k,error:T,helperText:L})=>jsxs(Fragment,{children:[s&&jsx(tt,{maxWidth:280,children:jsx(a$1,{onSearch:s,trigger:"click",size:"small",fullWidth:!0,placeholder:"Buscar",iconPosition:"start"})}),jsx(tt,{display:"grid",gridTemplateColumns:{xs:"1fr",sm:"1fr 1fr"},gap:1,children:jsx(a$2,{isFetching:S,fetching:h||jsx(a$3,{}),isLoading:u,loading:f||q,children:e.map(a=>jsxs(St,{minHeight:48,justifyContent:"center",p:1.5,children:[a.startContent&&jsx(tt,{children:a.startContent}),jsx(xe,{label:a.label,control:jsx(Te,{checked:t===a.value,onChange:()=>n(a.value),disabled:a.disabled}),componentsProps:{typography:{ml:.5}}})]},a.value))})}),L&&jsx(fe,{error:T,children:L}),!u&&!S&&e.length===0&&(k||V),o&&jsx(X,{page:o.page,count:Y(i,o.perPage),onChange:a=>o.onChange(a,o.perPage)})]}),Pe=t=>jsxs(tt,{gap:2,width:1,children:[t.label&&jsx(A,{variant:"overline",color:"text.secondary",children:t.label}),t.multiple?jsx(Mt,{...t}):jsx(be,{...t})]}),Wo=Pe;
31
31
 
32
32
  export { Wo as a };
33
- //# sourceMappingURL=chunk-UCQA4HF7.js.map
33
+ //# sourceMappingURL=chunk-UFBKEQMU.js.map
@@ -0,0 +1,10 @@
1
+ import { b } from './chunk-Y66XXBB3.js';
2
+ import { memo, forwardRef } from 'react';
3
+ import d from '@mui/material/Box';
4
+ import { styled, lighten, useTheme } from '@mui/material/styles';
5
+ import { jsxs, jsx } from 'react/jsx-runtime';
6
+
7
+ var l={root:"mnl__label__root",icon:"mnl__label__icon"};var i=styled(d)(({theme:r,ownerState:{color:t,variant:o}})=>{let e={...t==="default"&&{...o==="filled"&&{color:r.vars.palette.common.white,backgroundColor:r.vars.palette.text.primary,[b.dark]:{color:r.vars.palette.grey[800]}},...o==="outlined"&&{backgroundColor:"transparent",color:r.vars.palette.text.primary,border:`2px solid ${r.vars.palette.text.primary}`},...o==="soft"&&{color:r.vars.palette.text.secondary,border:`1px solid ${lighten(r.palette.grey[500],.32)}`},...o==="inverted"&&{color:r.vars.palette.grey[800],backgroundColor:r.vars.palette.grey[300]}}},a={...t!=="default"&&{...o==="filled"&&{color:r.vars.palette[t].contrastText,backgroundColor:r.vars.palette[t].main},...o==="outlined"&&{backgroundColor:"transparent",color:r.vars.palette[t].main,border:`2px solid ${r.vars.palette[t].main}`},...o==="soft"&&{color:t==="warning"?r.vars.palette.warning.darker:r.vars.palette[t].dark,backgroundColor:lighten(r.palette[t].main,.84),[b.dark]:{color:r.vars.palette[t].light}},...o==="inverted"&&{color:r.vars.palette[t].darker,backgroundColor:r.vars.palette[t].lighter}}};return {height:24,minWidth:24,lineHeight:0,cursor:"default",alignItems:"center",whiteSpace:"nowrap",display:"inline-flex",justifyContent:"center",padding:r.spacing(0,.75),fontSize:r.typography.pxToRem(12),fontWeight:r.typography.fontWeightBold,borderRadius:r.shape.borderRadius*.75,transition:r.transitions.create("all",{duration:r.transitions.duration.shorter}),...e,...a}});var L=r=>r.charAt(0).toUpperCase()+r.slice(1),m=memo(forwardRef(({children:r,color:t="default",variant:o="soft",startIcon:e,endIcon:a,sx:f,...g},b)=>{let y=useTheme(),p={width:16,height:16,"& svg, img":{width:1,height:1,objectFit:"cover"}};return jsxs(i,{ref:b,component:"span",className:l.root,ownerState:{color:t,variant:o},sx:{...e&&{pl:.75},...a&&{pr:.75},...f},theme:y,...g,children:[e&&jsx(d,{component:"span",className:l.icon,sx:{mr:.75,...p},children:e}),typeof r=="string"?L(r):r,a&&jsx(d,{component:"span",className:l.icon,sx:{ml:.75,...p},children:a})]})}));m.displayName="Label";var M=m;
8
+
9
+ export { M as a };
10
+ //# sourceMappingURL=chunk-VYBJ5SNV.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/components/Label/index.tsx","../src/components/Label/classes.ts","../src/components/Label/styles.ts"],"names":["forwardRef","memo","Box","useTheme","labelClasses","lighten","styled","StyledLabel","theme","color","variant","defaultColor","stylesMode","styleColors","jsx","jsxs","sentenceCase","string","Label","children","startIcon","endIcon","sx","other","ref","iconStyles","Label_default"],"mappings":"wCAAA,OAAS,cAAAA,EAAY,QAAAC,MAAY,QACjC,OAAOC,MAAS,oBAChB,OAAS,YAAAC,MAAgB,uBCFlB,IAAMC,EAAe,CAC1B,KAAM,mBACN,KAAM,kBACR,ECHA,OAAOF,MAAS,oBAEhB,OAAS,WAAAG,EAAS,UAAAC,MAAc,uBAKzB,IAAMC,EAAcD,EAAOJ,CAAG,EAAE,CAAC,CACtC,MAAAM,EACA,WAAY,CAAE,MAAAC,EAAO,QAAAC,CAAQ,CAC/B,IAMM,CACJ,IAAMC,EAAe,CACnB,GAAIF,IAAU,WAAa,CAIzB,GAAIC,IAAY,UAAY,CAC1B,MAAOF,EAAM,KAAK,QAAQ,OAAO,MACjC,gBAAiBA,EAAM,KAAK,QAAQ,KAAK,QACzC,CAACI,EAAW,IAAI,EAAG,CAAE,MAAOJ,EAAM,KAAK,QAAQ,KAAK,GAAG,CAAE,CAC3D,EAIA,GAAIE,IAAY,YAAc,CAC5B,gBAAiB,cACjB,MAAOF,EAAM,KAAK,QAAQ,KAAK,QAC/B,OAAQ,aAAaA,EAAM,KAAK,QAAQ,KAAK,SAC/C,EAIA,GAAIE,IAAY,QAAU,CACxB,MAAOF,EAAM,KAAK,QAAQ,KAAK,UAC/B,OAAQ,aAAaH,EAAQG,EAAM,QAAQ,KAAK,GAAG,EAAG,GAAI,GAC5D,EAIA,GAAIE,IAAY,YAAc,CAC5B,MAAOF,EAAM,KAAK,QAAQ,KAAK,GAAG,EAClC,gBAAiBA,EAAM,KAAK,QAAQ,KAAK,GAAG,CAC9C,CACF,CACF,EAEMK,EAAc,CAClB,GAAIJ,IAAU,WAAa,CAIzB,GAAIC,IAAY,UAAY,CAC1B,MAAOF,EAAM,KAAK,QAAQC,CAAK,EAAE,aACjC,gBAAiBD,EAAM,KAAK,QAAQC,CAAK,EAAE,IAC7C,EAIA,GAAIC,IAAY,YAAc,CAC5B,gBAAiB,cACjB,MAAOF,EAAM,KAAK,QAAQC,CAAK,EAAE,KACjC,OAAQ,aAAaD,EAAM,KAAK,QAAQC,CAAK,EAAE,MACjD,EAIA,GAAIC,IAAY,QAAU,CAGxB,MACED,IAAU,UACND,EAAM,KAAK,QAAQ,QAAQ,OAC3BA,EAAM,KAAK,QAAQC,CAAK,EAAE,KAChC,gBAAiBJ,EAAQG,EAAM,QAAQC,CAAK,EAAE,KAAM,GAAI,EACxD,CAACG,EAAW,IAAI,EAAG,CAAE,MAAOJ,EAAM,KAAK,QAAQC,CAAK,EAAE,KAAM,CAC9D,EAIA,GAAIC,IAAY,YAAc,CAC5B,MAAOF,EAAM,KAAK,QAAQC,CAAK,EAAE,OACjC,gBAAiBD,EAAM,KAAK,QAAQC,CAAK,EAAE,OAC7C,CACF,CACF,EAEA,MAAO,CACL,OAAQ,GACR,SAAU,GACV,WAAY,EACZ,OAAQ,UACR,WAAY,SACZ,WAAY,SACZ,QAAS,cACT,eAAgB,SAChB,QAASD,EAAM,QAAQ,EAAG,GAAI,EAC9B,SAAUA,EAAM,WAAW,QAAQ,EAAE,EACrC,WAAYA,EAAM,WAAW,eAC7B,aAAcA,EAAM,MAAM,aAAe,IACzC,WAAYA,EAAM,YAAY,OAAO,MAAO,CAC1C,SAAUA,EAAM,YAAY,SAAS,OACvC,CAAC,EACD,GAAGG,EACH,GAAGE,CACL,CACF,CAAC,EFxEO,OAcI,OAAAC,EAdJ,QAAAC,MAAA,oBA/BR,IAAMC,EAAgBC,GACbA,EAAO,OAAO,CAAC,EAAE,YAAY,EAAIA,EAAO,MAAM,CAAC,EAGlDC,EAAQjB,EACZD,EACE,CACE,CACE,SAAAmB,EACA,MAAAV,EAAQ,UACR,QAAAC,EAAU,OACV,UAAAU,EACA,QAAAC,EACA,GAAAC,EACA,GAAGC,CACL,EACAC,IACG,CACH,IAAMhB,EAAQL,EAAS,EAEjBsB,EAAa,CACjB,MAAO,GACP,OAAQ,GACR,aAAc,CACZ,MAAO,EACP,OAAQ,EACR,UAAW,OACb,CACF,EAEA,OACEV,EAACR,EAAA,CACC,IAAKiB,EACL,UAAU,OACV,UAAWpB,EAAa,KACxB,WAAY,CAAE,MAAAK,EAAO,QAAAC,CAAQ,EAC7B,GAAI,CACF,GAAIU,GAAa,CAAE,GAAI,GAAK,EAC5B,GAAIC,GAAW,CAAE,GAAI,GAAK,EAC1B,GAAGC,CACL,EACA,MAAOd,EACN,GAAGe,EAEH,UAAAH,GACCN,EAACZ,EAAA,CACC,UAAU,OACV,UAAWE,EAAa,KACxB,GAAI,CAAE,GAAI,IAAM,GAAGqB,CAAW,EAE7B,SAAAL,EACH,EAGD,OAAOD,GAAa,SAAWH,EAAaG,CAAQ,EAAIA,EAExDE,GACCP,EAACZ,EAAA,CACC,UAAU,OACV,UAAWE,EAAa,KACxB,GAAI,CAAE,GAAI,IAAM,GAAGqB,CAAW,EAE7B,SAAAJ,EACH,GAEJ,CAEJ,CACF,CACF,EAEAH,EAAM,YAAc,QAEpB,IAAOQ,EAAQR","sourcesContent":["import { forwardRef, memo } from 'react';\nimport Box from '@mui/material/Box';\nimport { useTheme } from '@mui/material/styles';\n\nimport { labelClasses } from './classes';\nimport type { LabelProps } from './props';\nimport { StyledLabel } from './styles';\n\nconst sentenceCase = (string: string) => {\n return string.charAt(0).toUpperCase() + string.slice(1);\n};\n\nconst Label = memo(\n forwardRef<HTMLSpanElement, LabelProps>(\n (\n {\n children,\n color = 'default',\n variant = 'soft',\n startIcon,\n endIcon,\n sx,\n ...other\n },\n ref,\n ) => {\n const theme = useTheme();\n\n const iconStyles = {\n width: 16,\n height: 16,\n '& svg, img': {\n width: 1,\n height: 1,\n objectFit: 'cover',\n },\n };\n\n return (\n <StyledLabel\n ref={ref}\n component=\"span\"\n className={labelClasses.root}\n ownerState={{ color, variant }}\n sx={{\n ...(startIcon && { pl: 0.75 }),\n ...(endIcon && { pr: 0.75 }),\n ...sx,\n }}\n theme={theme}\n {...other}\n >\n {startIcon && (\n <Box\n component=\"span\"\n className={labelClasses.icon}\n sx={{ mr: 0.75, ...iconStyles }}\n >\n {startIcon}\n </Box>\n )}\n\n {typeof children === 'string' ? sentenceCase(children) : children}\n\n {endIcon && (\n <Box\n component=\"span\"\n className={labelClasses.icon}\n sx={{ ml: 0.75, ...iconStyles }}\n >\n {endIcon}\n </Box>\n )}\n </StyledLabel>\n );\n },\n ),\n);\n\nLabel.displayName = 'Label';\n\nexport default Label;\n","export const labelClasses = {\n root: 'mnl__label__root',\n icon: 'mnl__label__icon',\n};\n","import Box from '@mui/material/Box';\nimport type { Theme } from '@mui/material/styles';\nimport { lighten, styled } from '@mui/material/styles';\nimport { stylesMode } from 'theme/styles';\n\nimport type { LabelColor, LabelVariant } from './props';\n\nexport const StyledLabel = styled(Box)(({\n theme,\n ownerState: { color, variant },\n}: {\n theme: Theme;\n ownerState: {\n color: LabelColor;\n variant: LabelVariant;\n };\n}) => {\n const defaultColor = {\n ...(color === 'default' && {\n /**\n * @variant filled\n */\n ...(variant === 'filled' && {\n color: theme.vars.palette.common.white,\n backgroundColor: theme.vars.palette.text.primary,\n [stylesMode.dark]: { color: theme.vars.palette.grey[800] },\n }),\n /**\n * @variant outlined\n */\n ...(variant === 'outlined' && {\n backgroundColor: 'transparent',\n color: theme.vars.palette.text.primary,\n border: `2px solid ${theme.vars.palette.text.primary}`,\n }),\n /**\n * @variant soft\n */\n ...(variant === 'soft' && {\n color: theme.vars.palette.text.secondary,\n border: `1px solid ${lighten(theme.palette.grey[500], 0.32)}`,\n }),\n /**\n * @variant inverted\n */\n ...(variant === 'inverted' && {\n color: theme.vars.palette.grey[800],\n backgroundColor: theme.vars.palette.grey[300],\n }),\n }),\n };\n\n const styleColors = {\n ...(color !== 'default' && {\n /**\n * @variant filled\n */\n ...(variant === 'filled' && {\n color: theme.vars.palette[color].contrastText,\n backgroundColor: theme.vars.palette[color].main,\n }),\n /**\n * @variant outlined\n */\n ...(variant === 'outlined' && {\n backgroundColor: 'transparent',\n color: theme.vars.palette[color].main,\n border: `2px solid ${theme.vars.palette[color].main}`,\n }),\n /**\n * @variant soft\n */\n ...(variant === 'soft' && {\n // Amarelo escuro (#B76E00) sobre o fundo claro fica em 3,6:1; o tom\n // darker passa dos 4,5:1. As demais cores já atendem com dark.\n color:\n color === 'warning'\n ? theme.vars.palette.warning.darker\n : theme.vars.palette[color].dark,\n backgroundColor: lighten(theme.palette[color].main, 0.84),\n [stylesMode.dark]: { color: theme.vars.palette[color].light },\n }),\n /**\n * @variant inverted\n */\n ...(variant === 'inverted' && {\n color: theme.vars.palette[color].darker,\n backgroundColor: theme.vars.palette[color].lighter,\n }),\n }),\n };\n\n return {\n height: 24,\n minWidth: 24,\n lineHeight: 0,\n cursor: 'default',\n alignItems: 'center',\n whiteSpace: 'nowrap',\n display: 'inline-flex',\n justifyContent: 'center',\n padding: theme.spacing(0, 0.75),\n fontSize: theme.typography.pxToRem(12),\n fontWeight: theme.typography.fontWeightBold,\n borderRadius: theme.shape.borderRadius * 0.75,\n transition: theme.transitions.create('all', {\n duration: theme.transitions.duration.shorter,\n }),\n ...defaultColor,\n ...styleColors,\n };\n});\n"]}
@@ -1,8 +1,8 @@
1
- import { a as a$1 } from './chunk-5ZMA4N4W.js';
1
+ import { a as a$1 } from './chunk-FMFS42U2.js';
2
2
  import p from '@mui/material/Button';
3
3
  import { jsx } from 'react/jsx-runtime';
4
4
 
5
5
  var e=({link:o,...n})=>jsx(p,{...n,startIcon:jsx(a$1,{icon:"HELP_CIRCLE"}),variant:"outlined",color:"inherit",...o&&{href:o,target:"_blank"},children:"Ajuda"}),a=e;
6
6
 
7
7
  export { a };
8
- //# sourceMappingURL=chunk-JKAMT5TC.js.map
8
+ //# sourceMappingURL=chunk-YO4G7OZA.js.map
@@ -1,4 +1,4 @@
1
- import { a as a$1 } from './chunk-5ZMA4N4W.js';
1
+ import { a as a$1 } from './chunk-FMFS42U2.js';
2
2
  import c from '@mui/material/IconButton';
3
3
  import s from '@mui/material/Stack';
4
4
  import { styled } from '@mui/material/styles';
@@ -7,4 +7,4 @@ import { jsx, jsxs } from 'react/jsx-runtime';
7
7
  var a=styled(c,{shouldForwardProp:t=>t!=="disableDrag"})(({theme:t})=>({position:"absolute",top:0,left:-2,zIndex:1,color:t.palette.grey[500],padding:"22px 5px",userSelect:"none",WebkitUserSelect:"none",WebkitTouchCallout:"none",cursor:"grab","&:active":{cursor:"grabbing"},"@media (pointer:coarse)":{userSelect:"none",WebkitUserSelect:"none",MozUserSelect:"none",msUserSelect:"none",WebkitTouchCallout:"none",WebkitTapHighlightColor:"transparent",touchAction:"none","&:active":{pointerEvents:"none"}}})),i=styled(s)({flexDirection:"row",alignItems:"center",justifyContent:"center",width:16,height:16,overflow:"hidden",transform:"scale(0.8)"});var u=({disableDrag:t,...l})=>t?null:jsx(a,{className:"dragIcon",disableRipple:!0,"aria-label":"Arrastar para ordenar",onTouchStart:e=>e.preventDefault(),onTouchMove:e=>e.preventDefault(),...l,children:jsxs(i,{children:[jsx(a$1,{sx:{marginLeft:0},icon:"MORE_BOLD",width:16}),jsx(a$1,{sx:{marginLeft:"-10px"},icon:"MORE_BOLD",width:16})]})}),D=u;
8
8
 
9
9
  export { D as a };
10
- //# sourceMappingURL=chunk-3RFXFIBL.js.map
10
+ //# sourceMappingURL=chunk-ZHY3VDHD.js.map
@@ -1,4 +1,4 @@
1
- export { a as Accordion, c as AccordionDetails, b as AccordionSummary } from '../../chunk-EICUAMNN.js';
2
- import '../../chunk-5ZMA4N4W.js';
1
+ export { a as Accordion, c as AccordionDetails, b as AccordionSummary } from '../../chunk-MWKWO5P2.js';
2
+ import '../../chunk-FMFS42U2.js';
3
3
  import '../../chunk-Z6YXPKWP.js';
4
4
  //# sourceMappingURL=index.js.map
@@ -1,4 +1,4 @@
1
- export { a as default } from '../../chunk-MY4CZ5PC.js';
2
- import '../../chunk-5ZMA4N4W.js';
1
+ export { a as default } from '../../chunk-G6HGDG22.js';
2
+ import '../../chunk-FMFS42U2.js';
3
3
  import '../../chunk-Z6YXPKWP.js';
4
4
  //# sourceMappingURL=index.js.map
@@ -1,23 +1,23 @@
1
1
  import { e, c as c$1, f, a as a$d, d as d$3 } from '../../../chunk-Z3HTIXB2.js';
2
- import { a as a$2 } from '../../../chunk-Q2R3X4EB.js';
3
- import { a as a$b } from '../../../chunk-OWJ6XY6F.js';
2
+ import { a as a$b } from '../../../chunk-Q7VIAAF7.js';
4
3
  import { i, h as h$2 } from '../../../chunk-BBVOF2BY.js';
5
- import { a as a$c, b as b$1, c as c$3 } from '../../../chunk-EICUAMNN.js';
4
+ import { a as a$2 } from '../../../chunk-Q2R3X4EB.js';
5
+ import { a as a$c, b as b$1, c as c$3 } from '../../../chunk-MWKWO5P2.js';
6
6
  import '../../../chunk-DRGARBKB.js';
7
7
  import '../../../chunk-55XSPNSX.js';
8
- import { a as a$5 } from '../../../chunk-YJYS2LQQ.js';
9
- import { a as a$4 } from '../../../chunk-PUMCHXCD.js';
10
- import { a as a$6 } from '../../../chunk-H762KDPN.js';
11
- import { a as a$a } from '../../../chunk-CZ5Y53WA.js';
8
+ import { a as a$5 } from '../../../chunk-33SY23DN.js';
9
+ import { a as a$4 } from '../../../chunk-VYBJ5SNV.js';
10
+ import { a as a$6 } from '../../../chunk-C2T2YAFC.js';
11
+ import { a as a$a } from '../../../chunk-4XN57SLB.js';
12
12
  import { d as d$2, h as h$1, m } from '../../../chunk-2W5FGLTC.js';
13
13
  import { h, c as c$2 } from '../../../chunk-OF6623HG.js';
14
- import { d as d$1 } from '../../../chunk-YKCEUH6C.js';
15
- import '../../../chunk-35HI7WFI.js';
14
+ import { d as d$1 } from '../../../chunk-NM3VHC2R.js';
15
+ import '../../../chunk-33LSXTPO.js';
16
16
  import '../../../chunk-4F2NKGF6.js';
17
17
  import { a as a$7 } from '../../../chunk-MTJT2RGA.js';
18
18
  import '../../../chunk-PRWQQJDL.js';
19
- import '../../../chunk-FC4OALKP.js';
20
- import '../../../chunk-VPZL6AIF.js';
19
+ import '../../../chunk-4IHN3WGD.js';
20
+ import '../../../chunk-5NLFXSCK.js';
21
21
  import '../../../chunk-6U5LS7MP.js';
22
22
  import '../../../chunk-JUAHRU5E.js';
23
23
  import '../../../chunk-NIQW2J3M.js';
@@ -25,9 +25,9 @@ import '../../../chunk-XUDTPZHF.js';
25
25
  import '../../../chunk-UVPQR2Q2.js';
26
26
  import '../../../chunk-RBTYTONM.js';
27
27
  import '../../../chunk-I4PPSW36.js';
28
- import '../../../chunk-YU5R3EXT.js';
28
+ import '../../../chunk-7VKM3HYT.js';
29
29
  import { a } from '../../../chunk-CO2KQFUN.js';
30
- import { a as a$3 } from '../../../chunk-5ZMA4N4W.js';
30
+ import { a as a$3 } from '../../../chunk-FMFS42U2.js';
31
31
  import '../../../chunk-Z6YXPKWP.js';
32
32
  import '../../../chunk-F65ZXAGV.js';
33
33
  import { a as a$9 } from '../../../chunk-E3R7W7GK.js';
@@ -1,22 +1,22 @@
1
1
  import { d, e as e$1 } from '../../../chunk-K2PWIYEM.js';
2
2
  import { a as a$d } from '../../../chunk-K34AZXX4.js';
3
- import { a as a$h } from '../../../chunk-OWJ6XY6F.js';
3
+ import { a as a$h } from '../../../chunk-Q7VIAAF7.js';
4
4
  import { i as i$1, h as h$1 } from '../../../chunk-BBVOF2BY.js';
5
- import { a as a$g, b as b$1, c as c$1 } from '../../../chunk-EICUAMNN.js';
5
+ import { a as a$g, b as b$1, c as c$1 } from '../../../chunk-MWKWO5P2.js';
6
6
  import { a as a$5 } from '../../../chunk-DRGARBKB.js';
7
7
  import '../../../chunk-55XSPNSX.js';
8
8
  import { a as a$7 } from '../../../chunk-RUABKHIV.js';
9
- import { a as a$c } from '../../../chunk-TS7QZPD6.js';
10
- import { a as a$b } from '../../../chunk-CZ5Y53WA.js';
9
+ import { a as a$c } from '../../../chunk-BTVG4NW3.js';
10
+ import { a as a$b } from '../../../chunk-4XN57SLB.js';
11
11
  import { d as d$1, g } from '../../../chunk-2W5FGLTC.js';
12
12
  import { h } from '../../../chunk-OF6623HG.js';
13
13
  import { a as a$e } from '../../../chunk-4F2NKGF6.js';
14
14
  import { a as a$3 } from '../../../chunk-HE2LUROB.js';
15
15
  import { a as a$f } from '../../../chunk-5J35UAV6.js';
16
16
  import { a } from '../../../chunk-AZJ3VCNL.js';
17
- import '../../../chunk-YU5R3EXT.js';
17
+ import '../../../chunk-7VKM3HYT.js';
18
18
  import { a as a$a } from '../../../chunk-CO2KQFUN.js';
19
- import { a as a$1 } from '../../../chunk-5ZMA4N4W.js';
19
+ import { a as a$1 } from '../../../chunk-FMFS42U2.js';
20
20
  import '../../../chunk-Z6YXPKWP.js';
21
21
  import '../../../chunk-F65ZXAGV.js';
22
22
  import { a as a$6 } from '../../../chunk-CB4KDKZY.js';
@@ -1,19 +1,19 @@
1
1
  import { b, c, d as d$3 } from '../../../chunk-FYG3YWFZ.js';
2
- import { a, m, c as c$1, n } from '../../../chunk-VELCTMU2.js';
2
+ import { a, m, c as c$1, n } from '../../../chunk-RTXMZGBW.js';
3
3
  import { a as a$2 } from '../../../chunk-Q2R3X4EB.js';
4
4
  import { a as a$8 } from '../../../chunk-DRGARBKB.js';
5
- import { a as a$7 } from '../../../chunk-PMKM67BB.js';
6
- import { a as a$5 } from '../../../chunk-TSEVZMIE.js';
7
- import { a as a$4 } from '../../../chunk-CZ5Y53WA.js';
5
+ import { a as a$7 } from '../../../chunk-NDX5YJV7.js';
6
+ import { a as a$5 } from '../../../chunk-LTXQ3A3C.js';
7
+ import { a as a$4 } from '../../../chunk-4XN57SLB.js';
8
8
  import { d as d$2 } from '../../../chunk-2W5FGLTC.js';
9
9
  import { h, d as d$1, c as c$2 } from '../../../chunk-OF6623HG.js';
10
- import { d } from '../../../chunk-YKCEUH6C.js';
11
- import { a as a$3 } from '../../../chunk-35HI7WFI.js';
10
+ import { d } from '../../../chunk-NM3VHC2R.js';
11
+ import { a as a$3 } from '../../../chunk-33LSXTPO.js';
12
12
  import { a as a$1 } from '../../../chunk-4F2NKGF6.js';
13
13
  import '../../../chunk-PRWQQJDL.js';
14
14
  import '../../../chunk-5J35UAV6.js';
15
- import '../../../chunk-FC4OALKP.js';
16
- import '../../../chunk-VPZL6AIF.js';
15
+ import '../../../chunk-4IHN3WGD.js';
16
+ import '../../../chunk-5NLFXSCK.js';
17
17
  import '../../../chunk-6U5LS7MP.js';
18
18
  import '../../../chunk-JUAHRU5E.js';
19
19
  import '../../../chunk-NIQW2J3M.js';
@@ -22,7 +22,7 @@ import '../../../chunk-UVPQR2Q2.js';
22
22
  import '../../../chunk-RBTYTONM.js';
23
23
  import '../../../chunk-I4PPSW36.js';
24
24
  import '../../../chunk-CO2KQFUN.js';
25
- import '../../../chunk-5ZMA4N4W.js';
25
+ import '../../../chunk-FMFS42U2.js';
26
26
  import '../../../chunk-Z6YXPKWP.js';
27
27
  import '../../../chunk-F65ZXAGV.js';
28
28
  import { b as b$1 } from '../../../chunk-TXJ45CNA.js';
@@ -1,18 +1,18 @@
1
+ import '../../../chunk-K2PWIYEM.js';
1
2
  import { b as b$3, a as a$6 } from '../../../chunk-XL6SZZGI.js';
2
- import { a, b as b$1, m, n, c } from '../../../chunk-VELCTMU2.js';
3
+ import { a, b as b$1, m, n, c } from '../../../chunk-RTXMZGBW.js';
3
4
  import { a as a$2 } from '../../../chunk-Q2R3X4EB.js';
4
- import '../../../chunk-K2PWIYEM.js';
5
5
  import { a as a$9 } from '../../../chunk-DRGARBKB.js';
6
- import { a as a$5 } from '../../../chunk-TSEVZMIE.js';
7
- import { a as a$4 } from '../../../chunk-CZ5Y53WA.js';
6
+ import { a as a$5 } from '../../../chunk-LTXQ3A3C.js';
7
+ import { a as a$4 } from '../../../chunk-4XN57SLB.js';
8
8
  import { d as d$2 } from '../../../chunk-2W5FGLTC.js';
9
9
  import { h, d, a as a$7, c as c$1 } from '../../../chunk-OF6623HG.js';
10
- import { d as d$1 } from '../../../chunk-YKCEUH6C.js';
11
- import { a as a$3 } from '../../../chunk-35HI7WFI.js';
10
+ import { d as d$1 } from '../../../chunk-NM3VHC2R.js';
11
+ import { a as a$3 } from '../../../chunk-33LSXTPO.js';
12
12
  import { a as a$1 } from '../../../chunk-4F2NKGF6.js';
13
13
  import '../../../chunk-PRWQQJDL.js';
14
- import '../../../chunk-FC4OALKP.js';
15
- import '../../../chunk-VPZL6AIF.js';
14
+ import '../../../chunk-4IHN3WGD.js';
15
+ import '../../../chunk-5NLFXSCK.js';
16
16
  import '../../../chunk-6U5LS7MP.js';
17
17
  import '../../../chunk-JUAHRU5E.js';
18
18
  import '../../../chunk-NIQW2J3M.js';
@@ -21,7 +21,7 @@ import '../../../chunk-UVPQR2Q2.js';
21
21
  import '../../../chunk-RBTYTONM.js';
22
22
  import '../../../chunk-I4PPSW36.js';
23
23
  import '../../../chunk-CO2KQFUN.js';
24
- import '../../../chunk-5ZMA4N4W.js';
24
+ import '../../../chunk-FMFS42U2.js';
25
25
  import '../../../chunk-Z6YXPKWP.js';
26
26
  import { a as a$8 } from '../../../chunk-F65ZXAGV.js';
27
27
  import { b } from '../../../chunk-TXJ45CNA.js';
@@ -1,16 +1,16 @@
1
1
  export { a as ReferenceCircle, b as WrappedTick } from '../../chunk-XL6SZZGI.js';
2
- export { a as ChartCard, b as ChartCardHeader, c as ChartWrapper, i as ColoredCheckbox, m as EmptyState, l as EmptyStateContainer, g as LegendContainer, h as LegendItem, n as RotatedTick, k as SummaryDivider, j as SummaryStack, d as TooltipContainer, e as TooltipDivider, f as TooltipDot } from '../../chunk-VELCTMU2.js';
2
+ export { a as ChartCard, b as ChartCardHeader, c as ChartWrapper, i as ColoredCheckbox, m as EmptyState, l as EmptyStateContainer, g as LegendContainer, h as LegendItem, n as RotatedTick, k as SummaryDivider, j as SummaryStack, d as TooltipContainer, e as TooltipDivider, f as TooltipDot } from '../../chunk-RTXMZGBW.js';
3
3
  import { a as a$9 } from '../../chunk-DRGARBKB.js';
4
4
  import { a as a$c } from '../../chunk-RUABKHIV.js';
5
5
  import { a as a$8 } from '../../chunk-J7RPKCIN.js';
6
6
  import { a as a$7 } from '../../chunk-XAPSXJZO.js';
7
- import { a as a$1 } from '../../chunk-TSEVZMIE.js';
8
- import { a } from '../../chunk-CZ5Y53WA.js';
7
+ import { a as a$1 } from '../../chunk-LTXQ3A3C.js';
8
+ import { a } from '../../chunk-4XN57SLB.js';
9
9
  import { a as a$3 } from '../../chunk-4F2NKGF6.js';
10
10
  import { c } from '../../chunk-VGTQYKAC.js';
11
- import { a as a$a } from '../../chunk-YU5R3EXT.js';
11
+ import { a as a$a } from '../../chunk-7VKM3HYT.js';
12
12
  import { a as a$6 } from '../../chunk-CO2KQFUN.js';
13
- import { a as a$4 } from '../../chunk-5ZMA4N4W.js';
13
+ import { a as a$4 } from '../../chunk-FMFS42U2.js';
14
14
  import '../../chunk-Z6YXPKWP.js';
15
15
  import '../../chunk-F65ZXAGV.js';
16
16
  import { a as a$2 } from '../../chunk-E3R7W7GK.js';
@@ -1,4 +1,4 @@
1
- export { a as default } from '../../chunk-YU5R3EXT.js';
2
- import '../../chunk-5ZMA4N4W.js';
1
+ export { a as default } from '../../chunk-7VKM3HYT.js';
2
+ import '../../chunk-FMFS42U2.js';
3
3
  import '../../chunk-Z6YXPKWP.js';
4
4
  //# sourceMappingURL=index.js.map
@@ -2,18 +2,18 @@ import { a as a$4 } from '../../chunk-5EKUS6HX.js';
2
2
  import { a as a$5 } from '../../chunk-A7AOWJKX.js';
3
3
  import { a } from '../../chunk-CO2KQFUN.js';
4
4
  import { a as a$2 } from '../../chunk-VR3K2Y2C.js';
5
- import { a as a$3 } from '../../chunk-5ZMA4N4W.js';
5
+ import { a as a$3 } from '../../chunk-FMFS42U2.js';
6
6
  import '../../chunk-Z6YXPKWP.js';
7
7
  import { a as a$1 } from '../../chunk-LQRRMVFN.js';
8
8
  import '../../chunk-5KEVIB7P.js';
9
- import '../../chunk-TAA5KCEG.js';
9
+ import '../../chunk-CA65HZ2Z.js';
10
10
  import '../../chunk-373WGZZL.js';
11
+ import '../../chunk-OQIEF5BC.js';
12
+ import '../../chunk-LNESYSHP.js';
11
13
  import '../../chunk-WUFEPE2G.js';
12
14
  import '../../chunk-BX2DSNRV.js';
13
- import '../../chunk-BKL525ZD.js';
14
- import '../../chunk-7GJMLPJV.js';
15
- import '../../chunk-LNESYSHP.js';
16
- import '../../chunk-4734QSYC.js';
15
+ import '../../chunk-EOF7RBR3.js';
16
+ import '../../chunk-JLJQNAJB.js';
17
17
  import '../../chunk-HBOBTNB5.js';
18
18
  import '../../chunk-Y66XXBB3.js';
19
19
  import E from '@mui/material/Avatar';
@@ -1,5 +1,5 @@
1
- import { a as a$1 } from '../../chunk-JKAMT5TC.js';
2
- import '../../chunk-5ZMA4N4W.js';
1
+ import { a as a$1 } from '../../chunk-YO4G7OZA.js';
2
+ import '../../chunk-FMFS42U2.js';
3
3
  import '../../chunk-Z6YXPKWP.js';
4
4
  import a from '@mui/material/Stack';
5
5
  import { styled, alpha } from '@mui/material/styles';
@@ -1,4 +1,4 @@
1
- import { a as a$2 } from '../../chunk-5ZMA4N4W.js';
1
+ import { a as a$2 } from '../../chunk-FMFS42U2.js';
2
2
  import '../../chunk-Z6YXPKWP.js';
3
3
  import { a as a$1 } from '../../chunk-E3R7W7GK.js';
4
4
  import a from '@mui/material/Stack';
@@ -1,11 +1,11 @@
1
- import { a } from '../../chunk-TOZ66UM4.js';
1
+ import { a } from '../../chunk-H33QKOVI.js';
2
2
  import { r } from '../../chunk-XUDTPZHF.js';
3
3
  import '../../chunk-UVPQR2Q2.js';
4
4
  import { a as a$1 } from '../../chunk-RBTYTONM.js';
5
5
  import { a as a$3 } from '../../chunk-I4PPSW36.js';
6
- import '../../chunk-YU5R3EXT.js';
6
+ import '../../chunk-7VKM3HYT.js';
7
7
  import '../../chunk-CO2KQFUN.js';
8
- import { a as a$2 } from '../../chunk-5ZMA4N4W.js';
8
+ import { a as a$2 } from '../../chunk-FMFS42U2.js';
9
9
  import '../../chunk-Z6YXPKWP.js';
10
10
  import { memo, useRef, useEffect, useState, useMemo, useCallback } from 'react';
11
11
  import { useFormContext, useWatch, useForm, FormProvider } from 'react-hook-form';
@@ -2,7 +2,7 @@ import '../../chunk-MZN5X6GM.js';
2
2
  import { a as a$1 } from '../../chunk-RFAAH7QG.js';
3
3
  import '../../chunk-HSJS3HUW.js';
4
4
  import '../../chunk-IL3EAU5G.js';
5
- import { a } from '../../chunk-5ZMA4N4W.js';
5
+ import { a } from '../../chunk-FMFS42U2.js';
6
6
  import '../../chunk-Z6YXPKWP.js';
7
7
  import { jsx } from 'react/jsx-runtime';
8
8
 
@@ -1,5 +1,5 @@
1
- export { a as default } from '../../chunk-L6CMWQCC.js';
2
- import '../../chunk-5ZMA4N4W.js';
1
+ export { a as default } from '../../chunk-JWX3OMRI.js';
2
+ import '../../chunk-FMFS42U2.js';
3
3
  import '../../chunk-Z6YXPKWP.js';
4
4
  import '../../chunk-LQRRMVFN.js';
5
5
  //# sourceMappingURL=index.js.map
@@ -1,13 +1,13 @@
1
- import { a } from '../../chunk-5ZMA4N4W.js';
1
+ import { a } from '../../chunk-FMFS42U2.js';
2
2
  import '../../chunk-Z6YXPKWP.js';
3
- import { b } from '../../chunk-TAA5KCEG.js';
3
+ import { b } from '../../chunk-CA65HZ2Z.js';
4
4
  import '../../chunk-373WGZZL.js';
5
+ import '../../chunk-OQIEF5BC.js';
6
+ import '../../chunk-LNESYSHP.js';
5
7
  import '../../chunk-WUFEPE2G.js';
6
8
  import '../../chunk-BX2DSNRV.js';
7
- import '../../chunk-BKL525ZD.js';
8
- import '../../chunk-7GJMLPJV.js';
9
- import '../../chunk-LNESYSHP.js';
10
- import '../../chunk-4734QSYC.js';
9
+ import '../../chunk-EOF7RBR3.js';
10
+ import '../../chunk-JLJQNAJB.js';
11
11
  import '../../chunk-HBOBTNB5.js';
12
12
  import { k } from '../../chunk-Y66XXBB3.js';
13
13
  import 'dayjs/locale/pt-br';
@@ -15,12 +15,12 @@ import _ from 'dayjs';
15
15
  import { AdapterDayjs } from '@mui/x-date-pickers-pro/AdapterDayjs';
16
16
  import { LocalizationProvider } from '@mui/x-date-pickers-pro/LocalizationProvider';
17
17
  import { jsx, jsxs } from 'react/jsx-runtime';
18
- import { LazyMotion, domMax } from 'framer-motion';
18
+ import { LazyMotion } from 'framer-motion';
19
19
  import L from '@mui/material/Portal';
20
20
  import { styled } from '@mui/material/styles';
21
21
  import { Toaster } from 'sonner';
22
22
 
23
- var h=({children:t})=>(_.locale("pt-br"),jsx(LocalizationProvider,{dateAdapter:AdapterDayjs,adapterLocale:"pt-br",children:t})),c=h;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 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={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(${k(t.vars.palette.text.primaryChannel,0)}, ${k(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:k(t.vars.palette.grey["500Channel"],.16),transition:t.transitions.create(["background-color","border-color"]),"&:hover":{borderColor:k(t.vars.palette.grey["500Channel"],.24),backgroundColor:k(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},[`& .${o.error}`]:{...a.toastColor,[`& .${o.icon}`]:{color:t.vars.palette.error.main,backgroundColor:k(t.vars.palette.error.mainChannel,.08)}},[`& .${o.success}`]:{...a.toastColor,[`& .${o.icon}`]:{color:t.vars.palette.success.main,backgroundColor:k(t.vars.palette.success.mainChannel,.08)}},[`& .${o.warning}`]:{...a.toastColor,[`& .${o.icon}`]:{color:t.vars.palette.warning.main,backgroundColor:k(t.vars.palette.warning.mainChannel,.08)}},[`& .${o.info}`]:{...a.toastColor,[`& .${o.icon}`]:{color:t.vars.palette.info.main,backgroundColor:k(t.vars.palette.info.mainChannel,.08)}}}});var u=()=>jsx(L,{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,{className:o.iconSvg,icon:"INFO_CIRCLE"}),success:jsx(a,{className:o.iconSvg,icon:"CHECK_CIRCLE"}),warning:jsx(a,{className:o.iconSvg,icon:"WARNING_TRIANGULE"}),error:jsx(a,{className:o.iconSvg,icon:"ALERT_CIRCLE"})}})});var g=({primaryColor:t,colorScheme:a="light",contrast:i="default",children:f,cssVarPrefix:m="app",snackbar:C=!0,storageKey:b$1})=>jsx(c,{children:jsx(b,{primaryColor:t,colorScheme:a,contrast:i,cssVarPrefix:m,storageKey:b$1,children:jsxs(d,{children:[f,C&&jsx(u,{})]})})});g.displayName="Common";var to=g;
23
+ var h=({children:t})=>(_.locale("pt-br"),jsx(LocalizationProvider,{dateAdapter:AdapterDayjs,adapterLocale:"pt-br",children:t})),c=h;var S=()=>import('../../motion-features-DVZXIFXF.js').then(t=>t.default),d=({children:t})=>jsx(LazyMotion,{strict:!0,features:S,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 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={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(${k(t.vars.palette.text.primaryChannel,0)}, ${k(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:k(t.vars.palette.grey["500Channel"],.16),transition:t.transitions.create(["background-color","border-color"]),"&:hover":{borderColor:k(t.vars.palette.grey["500Channel"],.24),backgroundColor:k(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},[`& .${o.error}`]:{...a.toastColor,[`& .${o.icon}`]:{color:t.vars.palette.error.main,backgroundColor:k(t.vars.palette.error.mainChannel,.08)}},[`& .${o.success}`]:{...a.toastColor,[`& .${o.icon}`]:{color:t.vars.palette.success.main,backgroundColor:k(t.vars.palette.success.mainChannel,.08)}},[`& .${o.warning}`]:{...a.toastColor,[`& .${o.icon}`]:{color:t.vars.palette.warning.main,backgroundColor:k(t.vars.palette.warning.mainChannel,.08)}},[`& .${o.info}`]:{...a.toastColor,[`& .${o.icon}`]:{color:t.vars.palette.info.main,backgroundColor:k(t.vars.palette.info.mainChannel,.08)}}}});var u=()=>jsx(L,{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,{className:o.iconSvg,icon:"INFO_CIRCLE"}),success:jsx(a,{className:o.iconSvg,icon:"CHECK_CIRCLE"}),warning:jsx(a,{className:o.iconSvg,icon:"WARNING_TRIANGULE"}),error:jsx(a,{className:o.iconSvg,icon:"ALERT_CIRCLE"})}})});var g=({primaryColor:t,colorScheme:a="light",contrast:i="default",children:f,cssVarPrefix:m="app",snackbar:C=!0,storageKey:b$1})=>jsx(c,{children:jsx(b,{primaryColor:t,colorScheme:a,contrast:i,cssVarPrefix:m,storageKey:b$1,children:jsxs(d,{children:[f,C&&jsx(u,{})]})})});g.displayName="Common";var to=g;
24
24
 
25
25
  export { to as default };
26
26
  //# sourceMappingURL=index.js.map