@zydon/common 2.9.62 → 2.9.64

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 (129) hide show
  1. package/README.md +10 -0
  2. package/dist/{chunk-W5SQJCRV.js → chunk-35HI7WFI.js} +2 -2
  3. package/dist/{chunk-6XWND7WS.js → chunk-3RFXFIBL.js} +2 -2
  4. package/dist/chunk-4L2H6KB4.js +36 -0
  5. package/dist/chunk-4L2H6KB4.js.map +1 -0
  6. package/dist/{chunk-ORYUMPWA.js → chunk-5ZMA4N4W.js} +1 -1
  7. package/dist/{chunk-GUESB6KF.js → chunk-7BIG6SAF.js} +2 -2
  8. package/dist/{chunk-VOWFY2XJ.js → chunk-COAGQGZA.js} +2 -2
  9. package/dist/{chunk-NS4YQBCL.js → chunk-CZ5Y53WA.js} +2 -2
  10. package/dist/{chunk-BGS7C2JO.js → chunk-EICUAMNN.js} +2 -2
  11. package/dist/{chunk-3MKH4GA7.js → chunk-FC4OALKP.js} +3 -3
  12. package/dist/{chunk-EH3H2KRA.js → chunk-G7TQARLI.js} +5 -5
  13. package/dist/{chunk-XQELM32G.js → chunk-H762KDPN.js} +2 -2
  14. package/dist/{chunk-RJDUZM6J.js → chunk-H7OG32Y5.js} +2 -2
  15. package/dist/{chunk-2XNZB6R7.js → chunk-IT6HMYIE.js} +3 -3
  16. package/dist/{chunk-ABUPUFBM.js → chunk-JKAMT5TC.js} +2 -2
  17. package/dist/{chunk-QJOC2VQK.js → chunk-KDSM2AIT.js} +2 -2
  18. package/dist/{chunk-GYQF73N2.js → chunk-L6CMWQCC.js} +2 -2
  19. package/dist/{chunk-44KLQXRW.js → chunk-MY4CZ5PC.js} +2 -2
  20. package/dist/{chunk-5GKALBQA.js → chunk-OWJ6XY6F.js} +3 -3
  21. package/dist/{chunk-YGLJRGMO.js → chunk-PMKM67BB.js} +2 -2
  22. package/dist/{chunk-Q5PV6YKW.js → chunk-TOZ66UM4.js} +2 -2
  23. package/dist/{chunk-VDATDEFK.js → chunk-TS7QZPD6.js} +2 -2
  24. package/dist/{chunk-KQM24IXA.js → chunk-TSEVZMIE.js} +2 -2
  25. package/dist/{chunk-HHN35KIG.js → chunk-VELCTMU2.js} +2 -2
  26. package/dist/{chunk-TYX6CIOM.js → chunk-VPZL6AIF.js} +2 -2
  27. package/dist/{chunk-7OQ2INNY.js → chunk-YJYS2LQQ.js} +2 -2
  28. package/dist/{chunk-BVWXGGJY.js → chunk-YKCEUH6C.js} +5 -5
  29. package/dist/{chunk-K2PVYOH6.js → chunk-YU5R3EXT.js} +2 -2
  30. package/dist/components/Accordion/index.js +2 -2
  31. package/dist/components/ActionButton/index.js +2 -2
  32. package/dist/components/Analytics/Carts/index.js +14 -14
  33. package/dist/components/Analytics/OrderProjection/index.js +7 -7
  34. package/dist/components/Analytics/OverviewAnalytics/index.js +11 -11
  35. package/dist/components/Analytics/PartnerAnalysis/index.js +10 -10
  36. package/dist/components/Analytics/index.js +6 -6
  37. package/dist/components/Autocomplete/index.js +2 -2
  38. package/dist/components/AvatarButton/index.js +2 -2
  39. package/dist/components/BuilderLayout/index.js +2 -2
  40. package/dist/components/BuilderSidebar/index.js +1 -1
  41. package/dist/components/BulkEditModal/index.js +4 -4
  42. package/dist/components/CardBrand/index.js +1 -1
  43. package/dist/components/ColorPickerInput/index.js +2 -2
  44. package/dist/components/Common/index.js +1 -1
  45. package/dist/components/CopyButton/index.js +2 -2
  46. package/dist/components/DataGrid/index.js +3 -3
  47. package/dist/components/DataView/index.js +6 -6
  48. package/dist/components/DragButton/index.js +2 -2
  49. package/dist/components/Drawer/index.js +2 -2
  50. package/dist/components/DynamicDataView/index.js +9 -9
  51. package/dist/components/EasyCropModal/index.js +3 -3
  52. package/dist/components/Error/index.js +1 -1
  53. package/dist/components/ExpandableGroup/index.js +1 -1
  54. package/dist/components/FileUpload/index.js +6 -6
  55. package/dist/components/Filters/index.js +3 -3
  56. package/dist/components/FrameSkeleton/index.js +1 -1
  57. package/dist/components/HelpButton/index.js +2 -2
  58. package/dist/components/Icon/index.js +1 -1
  59. package/dist/components/IconButton/index.js +2 -2
  60. package/dist/components/ImageCropModal/index.js +2 -2
  61. package/dist/components/Incrementer/index.js +2 -2
  62. package/dist/components/InfoCircle/index.js +2 -2
  63. package/dist/components/ListBundles/index.js +2 -2
  64. package/dist/components/MenuItem/index.js +2 -2
  65. package/dist/components/Modal/index.js +2 -2
  66. package/dist/components/MoreMenu/index.js +2 -2
  67. package/dist/components/NotFound/index.js +1 -1
  68. package/dist/components/PasswordRules/index.js +1 -1
  69. package/dist/components/PopoverSelect/index.js +1 -1
  70. package/dist/components/PortalBrandImage/index.js +1 -1
  71. package/dist/components/SearchInput/index.js +2 -2
  72. package/dist/components/SelectList/index.d.ts +1 -1
  73. package/dist/components/SelectList/index.js +6 -4
  74. package/dist/components/SelectableCards/index.js +3 -3
  75. package/dist/components/SeoPreview/index.js +1 -1
  76. package/dist/components/StateDisplay/index.js +2 -2
  77. package/dist/components/StepNavigator/index.js +2 -2
  78. package/dist/components/StepUpDialog/index.js +1 -1
  79. package/dist/components/Steps/index.js +1 -1
  80. package/dist/components/StyledTab/index.js +1 -1
  81. package/dist/components/SwapList/index.js +2 -2
  82. package/dist/components/WebhookCard/index.js +1 -1
  83. package/dist/components/carousel/index.js +2 -2
  84. package/dist/components/form/Address/index.js +3 -3
  85. package/dist/components/form/Autocomplete/index.js +3 -3
  86. package/dist/components/form/ColorPicker/index.js +2 -2
  87. package/dist/components/form/FileUpload/index.js +6 -6
  88. package/dist/components/form/Incrementer/index.js +2 -2
  89. package/dist/components/form/Password/index.js +1 -1
  90. package/dist/components/form/SelectList/index.d.ts +3 -2
  91. package/dist/components/form/SelectList/index.js +8 -6
  92. package/dist/components/form/SelectList/index.js.map +1 -1
  93. package/dist/components/form/SelectableCards/index.js +3 -3
  94. package/dist/components/form/Webhook/index.js +4 -4
  95. package/dist/components/lightbox/index.js +1 -1
  96. package/dist/components/table/index.js +2 -2
  97. package/dist/hooks/useSelectedOptions.d.ts +19 -0
  98. package/dist/hooks/useSelectedOptions.js +6 -0
  99. package/dist/hooks/useSelectedOptions.js.map +1 -0
  100. package/dist/types/selectList.d.ts +36 -9
  101. package/package.json +1 -1
  102. package/dist/chunk-ODYYZSIQ.js +0 -20
  103. package/dist/chunk-ODYYZSIQ.js.map +0 -1
  104. /package/dist/{chunk-W5SQJCRV.js.map → chunk-35HI7WFI.js.map} +0 -0
  105. /package/dist/{chunk-6XWND7WS.js.map → chunk-3RFXFIBL.js.map} +0 -0
  106. /package/dist/{chunk-ORYUMPWA.js.map → chunk-5ZMA4N4W.js.map} +0 -0
  107. /package/dist/{chunk-GUESB6KF.js.map → chunk-7BIG6SAF.js.map} +0 -0
  108. /package/dist/{chunk-VOWFY2XJ.js.map → chunk-COAGQGZA.js.map} +0 -0
  109. /package/dist/{chunk-NS4YQBCL.js.map → chunk-CZ5Y53WA.js.map} +0 -0
  110. /package/dist/{chunk-BGS7C2JO.js.map → chunk-EICUAMNN.js.map} +0 -0
  111. /package/dist/{chunk-3MKH4GA7.js.map → chunk-FC4OALKP.js.map} +0 -0
  112. /package/dist/{chunk-EH3H2KRA.js.map → chunk-G7TQARLI.js.map} +0 -0
  113. /package/dist/{chunk-XQELM32G.js.map → chunk-H762KDPN.js.map} +0 -0
  114. /package/dist/{chunk-RJDUZM6J.js.map → chunk-H7OG32Y5.js.map} +0 -0
  115. /package/dist/{chunk-2XNZB6R7.js.map → chunk-IT6HMYIE.js.map} +0 -0
  116. /package/dist/{chunk-ABUPUFBM.js.map → chunk-JKAMT5TC.js.map} +0 -0
  117. /package/dist/{chunk-QJOC2VQK.js.map → chunk-KDSM2AIT.js.map} +0 -0
  118. /package/dist/{chunk-GYQF73N2.js.map → chunk-L6CMWQCC.js.map} +0 -0
  119. /package/dist/{chunk-44KLQXRW.js.map → chunk-MY4CZ5PC.js.map} +0 -0
  120. /package/dist/{chunk-5GKALBQA.js.map → chunk-OWJ6XY6F.js.map} +0 -0
  121. /package/dist/{chunk-YGLJRGMO.js.map → chunk-PMKM67BB.js.map} +0 -0
  122. /package/dist/{chunk-Q5PV6YKW.js.map → chunk-TOZ66UM4.js.map} +0 -0
  123. /package/dist/{chunk-VDATDEFK.js.map → chunk-TS7QZPD6.js.map} +0 -0
  124. /package/dist/{chunk-KQM24IXA.js.map → chunk-TSEVZMIE.js.map} +0 -0
  125. /package/dist/{chunk-HHN35KIG.js.map → chunk-VELCTMU2.js.map} +0 -0
  126. /package/dist/{chunk-TYX6CIOM.js.map → chunk-VPZL6AIF.js.map} +0 -0
  127. /package/dist/{chunk-7OQ2INNY.js.map → chunk-YJYS2LQQ.js.map} +0 -0
  128. /package/dist/{chunk-BVWXGGJY.js.map → chunk-YKCEUH6C.js.map} +0 -0
  129. /package/dist/{chunk-K2PVYOH6.js.map → chunk-YU5R3EXT.js.map} +0 -0
@@ -1,10 +1,10 @@
1
- import { a } from './chunk-VDATDEFK.js';
2
- import { a as a$5 } from './chunk-GUESB6KF.js';
3
- import { a as a$2 } from './chunk-6XWND7WS.js';
1
+ import { a } from './chunk-TS7QZPD6.js';
2
+ import { a as a$5 } from './chunk-7BIG6SAF.js';
3
+ import { a as a$2 } from './chunk-3RFXFIBL.js';
4
4
  import { e } from './chunk-OF6623HG.js';
5
5
  import { a as a$3 } from './chunk-5J35UAV6.js';
6
6
  import { a as a$6 } from './chunk-6U5LS7MP.js';
7
- import { a as a$4 } from './chunk-ORYUMPWA.js';
7
+ import { a as a$4 } from './chunk-5ZMA4N4W.js';
8
8
  import { j } from './chunk-HW6M33F3.js';
9
9
  import { a as a$1 } from './chunk-XNKYJHNL.js';
10
10
  import { a as a$7 } from './chunk-SVX7EWV4.js';
@@ -31,4 +31,4 @@ import ci from '@mui/material/CircularProgress';
31
31
  var ur=({helperText:e,disabled:o,isError:r})=>e?jsx(fr,{error:r,sx:n=>({mx:"14px",color:o?n.palette.grey[500]:void 0}),children:e}):null,D=memo(ur);var Ge=styled(Pe)({position:"relative",width:"100%",borderRadius:8,overflow:"hidden","&:hover .actions":{display:"flex"}}),je=styled(Pe)({position:"absolute",top:4,right:4,gap:.5,"& svg":{width:16,height:16}}),fo=styled(_e,{shouldForwardProp:e=>!["isDragActive","isError","disabled"].includes(e)})(({theme:e,isDragActive:o,isError:r,disabled:n})=>({outline:"none",cursor:"pointer",overflow:"hidden",position:"relative",padding:e.spacing(5),borderRadius:e.shape.borderRadius,transition:e.transitions.create("padding"),backgroundColor:e.palette.background.neutral,border:`dashed 1px ${e.palette.divider}`,...o&&{opacity:.72},...r&&{color:e.palette.error.main,backgroundColor:e.palette.error.lighter,borderColor:e.palette.error.light},...n&&{opacity:.48,pointerEvents:"none"},"&:hover":{opacity:.72}})),uo=styled(xr)(({theme:e})=>({position:"relative",zIndex:999,pointerEvents:"auto",color:e.palette.grey[700],backgroundColor:e.palette.grey[100],"&:hover":{color:e.palette.grey[900],backgroundColor:e.palette.grey[300]}})),Qe=styled("div")({position:"relative",zIndex:1,userSelect:"none","&:hover":{zIndex:2}}),go=styled(Pe,{shouldForwardProp:e=>!["isDragging"].includes(e)})(({theme:e,width:o,isDragging:r})=>({width:o,height:100,alignItems:"center",display:"inline-flex",justifyContent:"center",margin:e.spacing(.5),padding:e.spacing(2,1,2,1),gap:e.spacing(1),borderRadius:e.spacing(1.25),overflow:"hidden",position:"relative",border:`solid 1px ${e.palette.divider}`,backgroundColor:e.palette.common.white,zIndex:1,transition:"box-shadow 150ms ease-in-out",boxShadow:r?`0 0 0 2px ${e.palette.primary.main}, ${e.customShadows.z8}, inset 0 0 0 1000px ${alpha(e.palette.primary.main,.06)}`:"0px 0px 0px 0px rgba(0, 0, 0, 0)"})),xo=styled(m.div)(({theme:e,width:o,isDragging:r})=>({width:o,height:60,alignItems:"center",display:"inline-flex",justifyContent:"center",margin:e.spacing(.5),padding:e.spacing(2),borderRadius:e.spacing(1.25),overflow:"hidden",position:"relative",border:`solid 1px ${e.palette.divider}`,backgroundColor:e.palette.common.white,zIndex:1,transition:"box-shadow 150ms ease-in-out",boxShadow:r?`0 0 0 2px ${e.palette.primary.main}, ${e.customShadows.z8}, inset 0 0 0 1000px ${alpha(e.palette.primary.main,.06)}`:"0px 0px 0px 0px rgba(0, 0, 0, 0)"})),ho=styled(a)(({theme:e})=>({top:16,right:16,zIndex:9,position:"absolute",color:e.palette.common.white,backgroundColor:alpha(e.palette.grey[900],.72),"&:hover":{backgroundColor:alpha(e.palette.grey[900],.48)}})),bo=styled(_e,{shouldForwardProp:e=>e!=="isDragActive"&&e!=="disabled"&&e!=="hasError"})(({theme:e,isDragActive:o,disabled:r,hasError:n})=>({width:64,height:64,flexShrink:0,display:"flex",borderRadius:1,cursor:"pointer",alignItems:"center",color:e.palette.text.disabled,justifyContent:"center",backgroundColor:alpha(e.palette.grey[500],.08),border:`dashed 1px ${alpha(e.palette.grey[500],.16)}`,...o&&{opacity:.72},...r&&{opacity:.48,pointerEvents:"none"},...n&&{color:e.palette.error.main,borderColor:e.palette.error.main,backgroundColor:alpha(e.palette.error.main,.08)},"&:hover":{opacity:.72}})),Io=styled(_e)(({theme:e})=>({padding:e.spacing(1),top:0,left:0,width:"100%",height:"100%",position:"absolute",display:"flex",justifyContent:"center",alignItems:"center",transition:"all 0.3s ease-in-out",filter:"blur(0)","&:hover .single-file-preview-img":{filter:"blur(3px)",transition:"all 0.1s ease-in-out"},"&:hover .single-file-preview-hover-overlay":{opacity:1}})),Po=styled("img",{shouldForwardProp:e=>e!=="aspectRatio"&&e!=="isLoading"&&e!=="isUploading"&&e!=="maxWidth"&&e!=="maxHeight"&&e!=="cropSize"&&e!=="fill"})(({theme:e,aspectRatio:o,maxWidth:r,maxHeight:n,isLoading:t,isUploading:s,fill:a})=>({borderRadius:e.shape.borderRadius,objectFit:"cover",position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%) scale(1)",filter:"blur(0)",zIndex:1,backgroundColor:e.palette.background.paper,...a&&{width:"100%",height:"100%"},...!a&&Math.abs(o)>=1&&{maxWidth:r,maxHeight:n,aspectRatio:Math.abs(o),width:"calc(100% - 16px)",height:void 0},...!a&&Math.abs(o)<1&&{maxWidth:r,maxHeight:n,aspectRatio:Math.abs(o),width:void 0,height:"calc(100% - 16px)"},transition:"all 0.3s ease-in-out",...t||s?{opacity:0,filter:"blur(1.5rem)",transform:"translate(-50%, -50%) scale(0.7)"}:{}})),vo=styled("img",{shouldForwardProp:e=>e!=="isLoading"&&e!=="isUploading"})(({isLoading:e,isUploading:o})=>({width:"100%",height:"100%",objectFit:"cover",top:0,left:0,filter:"blur(1.5rem)",transform:"scale(1.1)",position:"absolute",zIndex:0,transition:"opacity 0.3s ease-in-out",...e&&{opacity:0},...o&&{opacity:.7,filter:"blur(2rem)"}})),Fo=styled(Pe)(({theme:e})=>({position:"absolute",top:0,left:0,right:0,bottom:0,display:"flex",alignItems:"center",justifyContent:"center",backgroundColor:alpha(e.palette.primary.darker,.75),zIndex:2,pointerEvents:"none",opacity:0,transition:"opacity 0.3s ease-in-out"})),Eo=styled(Pe)({width:"100%",height:"100%",position:"relative",overflow:"hidden",borderRadius:"50%",justifyContent:"center",alignItems:"center"});styled(hr)(({theme:e})=>({py:1,px:2,mt:3,textAlign:"left",borderStyle:"dashed",borderColor:"error.main",backgroundColor:alpha(e.palette.error.main,.08)}));var Ye=styled(_e,{shouldForwardProp:e=>e!=="isError"&&e!=="hasFile"})(({theme:e,isError:o,hasFile:r})=>({top:0,gap:e.spacing(1),left:0,width:"100%",height:"100%",zIndex:9,display:"flex",borderRadius:"50%",position:"absolute",alignItems:"center",color:e.palette.text.disabled,flexDirection:"column",justifyContent:"center",backgroundColor:alpha(e.palette.grey[500],.08),transition:e.transitions.create(["opacity"],{duration:e.transitions.duration.shorter}),"&:hover":{opacity:.92},...o&&{color:e.palette.error.main},...r&&{zIndex:9,opacity:0,color:e.palette.common.white,backgroundColor:alpha(e.palette.common.black,.54)}})),Ro=styled(Pe)({top:0,left:0,right:0,bottom:0,position:"absolute",zIndex:10,alignItems:"center",justifyContent:"center",opacity:.8});styled(Pe)(({theme:e})=>({padding:20,justifyContent:"center",alignItems:"center",gap:4,alignSelf:"stretch",borderRadius:12,background:e.palette.divider,color:e.palette.text.disabled,height:160}));var wo=styled(_e,{shouldForwardProp:e=>e!=="isDragActive"&&e!=="isError"&&e!=="hasFile"})(({theme:e,isDragActive:o,disabled:r,isError:n,hasFile:t})=>({padding:e.spacing(1),margin:"auto",width:144,height:144,cursor:"pointer",overflow:"hidden",borderRadius:"50%",border:`1px dashed ${e.palette.divider}`,...o&&{opacity:.72},...r&&{opacity:.48,pointerEvents:"none"},...n&&{borderColor:"error.main"},...t&&{...n&&{bgcolor:alpha(e.palette.error.main,.08)},"&:hover .upload-placeholder":{opacity:1},"& img":{filter:"blur(0)"},"&:hover img":{filter:"blur(3px)"}}})),Ao=styled("img")({width:"100%",height:"100%",borderRadius:"50%",objectFit:"cover",transition:"all 0.3s ease-in-out"}),zo=styled(a)(({theme:e})=>({backgroundColor:alpha(e.palette.grey[900],.72),color:e.palette.common.white,"&:hover":{backgroundColor:alpha(e.palette.grey[600],.64),color:e.palette.common.white},"& svg":{width:14,height:14}}));var vr=({onRemove:e,sx:o,file:r,disableDrag:n,attributes:t,listeners:s,innerWidth:a,isDragging:p})=>{let c=r?.id;return c?jsx(Pr,{anchorOrigin:{vertical:"top",horizontal:"left"},children:jsxs(xo,{width:a,isDragging:p,"data-testid":`preview-multi-img-${c}`,...j().inUp,sx:o,children:[jsx(a$2,{disableDrag:n,...t,...s}),jsx(ze,{imageView:!0,file:r}),jsx(je,{sx:{position:"absolute",right:3,top:3,zIndex:1},children:e&&jsx(zo,{size:"small",label:"Remover arquivo",onClick:()=>e(r),icon:"DELETE_MARK_BUTTON_02"})})]})},`badge-${c}`):null},Mo=memo(vr);var zr=({file:e$1,thumbnail:o,onRemove:r,sx:n,disableDrag:t=!1,disableTransitions:s=!1})=>{let a$1=e$1.size||0,p=e$1.name||e$1.id,c=e$1.id,f=typeof e$1=="string",d=t?70:80,{attributes:m,listeners:x,setNodeRef:h,transform:w,transition:A,isDragging:E}=useSortable({id:c,disabled:t}),T={transform:s?void 0:CSS.Transform.toString(w),transition:s?"none":A,opacity:s?.2:1,display:"inline-block",alignItems:"center",justifyContent:"center",width:`${d+8}px`,height:"68px"};return o&&e$1?jsx(Qe,{ref:h,style:T,children:jsx(Mo,{innerWidth:d,isDragging:E,sx:n,file:e$1,disableDrag:t,attributes:m,listeners:x,onRemove:r})}):jsx(Qe,{ref:h,style:{...T,height:"80px",width:`${d+38}px`},children:jsxs(go,{width:d+30,isDragging:E,"data-testid":`preview-multi-img-${c}`,...j().inUp,sx:n,children:[jsx(a$2,{disableDrag:t,...m,...x}),e$1&&jsx(ze,{file:e$1}),jsxs(Pe,{flexGrow:1,sx:{width:"100%"},children:[jsx(a$3,{title:p,children:jsx(ao,{variant:"subtitle2",noWrap:!0,children:p})}),jsx(ao,{variant:"caption",sx:{color:"text.secondary"},children:f?"":e(a$1)})]}),jsx(je,{children:r&&jsx(a,{size:"small",label:"Remover arquivo",onClick:()=>r(e$1),icon:"DELETE_MARK_BUTTON_02"})})]})})},Lo=memo(zr);var jr=({thumbnail:e,files:o,onRemove:r,onReorder:n,sx:t})=>{let[s,a]=useState(!1),p=useSensors(useSensor(PointerSensor,{activationConstraint:{distance:8}}),useSensor(KeyboardSensor,{coordinateGetter:sortableKeyboardCoordinates})),c=useCallback(d=>{let{active:m,over:x}=d;if(!(!m||!x||m.id===x.id)&&n){let h=o.findIndex(({id:A})=>A===m.id),w=o.findIndex(({id:A})=>A===x.id);h!==-1&&w!==-1&&(n(h,w,o),a(!0),setTimeout(()=>{a(!1);},300));}},[o,n]),f=jsx(AnimatePresence,{initial:!1,children:o.map(d=>jsx(Lo,{sx:t,id:`preview-file-${d.id}`,file:d,onRemove:r,thumbnail:e,disableDrag:!n,disableTransitions:s},`preview-file-${d.id}`))});return n?jsx(DndContext,{sensors:p,collisionDetection:closestCenter,onDragEnd:c,modifiers:[restrictToHorizontalAxis,restrictToParentElement,restrictToWindowEdges],children:jsx(SortableContext,{items:o.map(d=>d.id),strategy:horizontalListSortingStrategy,children:f})}):f},Oe=memo(jr);var So=forwardRef(({onLoading:e,aspectRatio:o,cropSize:r,...n},t)=>{let{maxWidth:s,maxHeight:a}=useMemo(()=>r&&typeof r=="object"?{maxWidth:r.width,maxHeight:r.height}:r&&typeof r=="number"?{maxWidth:r,maxHeight:r}:{maxWidth:"100%",maxHeight:"100%"},[r]);a$1(()=>{e?.(!0);}),useLayoutEffect(()=>{typeof t=="object"&&t?.current?e?.(!t.current.complete):e?.(!1);},[t,e]);let p=useCallback(()=>{e?.(!1);},[e]);return jsx(Po,{...n,maxWidth:s,maxHeight:a,ref:t,aspectRatio:o,onLoad:p,onError:p})});So.displayName="LoadingPreviewImage";var Oo=So;var Yr=({file:e,aspectRatio:o=1,isUploading:r,isLoading:n,onLoading:t,cropSize:s,maxWidth:a,maxHeight:p,hoverAlt:c,fill:f})=>{let d=useRef(null),m=e?.id||"",x=e?.name||"",[h,w]=useState("");return useEffect(()=>{if(!e){w("");return}let A=URL.createObjectURL(e);return w(A),()=>URL.revokeObjectURL(A)},[e]),!m||!h?null:jsxs(Io,{className:"single-file-preview-box",children:[jsx(Oo,{className:"single-file-preview-img",aspectRatio:o,cropSize:s,isLoading:n,isUploading:r,alt:x,src:h,ref:d,loading:"lazy",onLoading:t,onLoad:()=>t?.(!1),onError:()=>t?.(!1),maxWidth:a,maxHeight:p,fill:f},`image-preview-${m}`),jsx(vo,{className:"single-file-preview-bg",alt:x,src:h,isLoading:n,isUploading:r}),c&&jsx(Fo,{className:"single-file-preview-hover-overlay",children:c})]})},oo=memo(Yr);var Uo=["pdf"],To=["txt"],Co=["psd"],ko=["doc","docx"],No=["xls","xlsx"],Bo=["zip","rar","iso"],Wo=["ai","eps"],Go=["ppt","pptx"],jo=["wav","aif","mp3","aac"],Zo=["jpg","jpeg","gif","bmp","png","svg","webp"],Ho=["m4v","avi","mpg","mp4","webm"];function ot(e){return e.startsWith("image/")?"image":e.startsWith("video/")?"video":e.startsWith("audio/")?"audio":e==="application/pdf"?"pdf":e==="text/plain"?"txt":e==="application/msword"||e==="application/vnd.openxmlformats-officedocument.wordprocessingml.document"?"word":e==="application/vnd.ms-excel"||e==="application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"?"excel":e==="application/vnd.ms-powerpoint"||e==="application/vnd.openxmlformats-officedocument.presentationml.presentation"?"powerpoint":e==="application/zip"||e==="application/x-rar-compressed"||e==="application/x-iso9660-image"?"zip":e==="image/vnd.adobe.photoshop"?"photoshop":e==="application/illustrator"||e==="application/postscript"?"illustrator":null}function $o(e,o){if(o){let n=ot(o);if(n)return n}let r=qo(e);return To.includes(r)?"txt":Bo.includes(r)?"zip":jo.includes(r)?"audio":Zo.includes(r)?"image":Ho.includes(r)?"video":ko.includes(r)?"word":No.includes(r)?"excel":Go.includes(r)?"powerpoint":Uo.includes(r)?"pdf":Co.includes(r)?"photoshop":Wo.includes(r)?"illustrator":"file"}function rt(e){let o=qo(e);return To.includes(o)?"txt":Bo.includes(o)?"zip":jo.includes(o)?"audio":Zo.includes(o)?"image":Ho.includes(o)?"video":ko.includes(o)?"word":No.includes(o)?"excel":Go.includes(o)?"powerpoint":Uo.includes(o)?"pdf":Co.includes(o)?"photoshop":Wo.includes(o)?"illustrator":e?.startsWith("http")?"image":o||"file"}function Xo(e){let o;switch(rt(e)){case"folder":o="IC_FOLDER";break;case"txt":o="IC_TXT";break;case"zip":o="IC_ZIP";break;case"audio":o="IC_AUDIO";break;case"video":o="IC_VIDEO";break;case"word":o="IC_WORD";break;case"excel":o="IC_EXCEL";break;case"powerpoint":o="IC_POWER_POINT";break;case"pdf":o="IC_PDF";break;case"photoshop":o="IC_PTS";break;case"illustrator":o="IC_AI";break;case"image":o="IC_IMG";break;default:o="IC_FILE";}return o}function qo(e){return e&&e.split(".").pop()||""}function Ra(e){return e.split("/").pop()}var He={root:"mnl__file__thumbnail__root",img:"mnl__file__thumbnail__img",icon:"mnl__file__thumbnail__icon",removeBtn:"mnl__file__thumbnail__remove__button",downloadBtn:"mnl__file__thumbnail__download__button"},ze=({sx:e,file:o,tooltip:r,onRemove:n,imageView:t,slotProps:s,onDownload:a,...p})=>{let c=useMemo(()=>o.size>0?URL.createObjectURL(o):o.url,[o]),f=o?.name||"",d=$o(f,o.type);useEffect(()=>{if(o.size>0)return ()=>URL.revokeObjectURL(c)},[o,c]);let m=jsx(_e,{component:"img",src:c,className:He.img,sx:{width:1,height:1,objectFit:"cover",borderRadius:"inherit",...s?.img}}),x=jsx(a$4,{icon:Xo(d),sx:{width:32,height:32,flexShrink:0,...e}}),h=jsxs(Pe,{component:"span",className:He.root,sx:{width:36,height:36,flexShrink:0,borderRadius:1.25,alignItems:"center",position:"relative",display:"inline-flex",justifyContent:"center",...e},...p,children:[d==="image"&&t?m:x,n&&jsx(nt,{"aria-label":"Remover arquivo",onClick:n,className:He.removeBtn,sx:s?.removeBtn,children:jsx(a$4,{icon:"CLOSE_MARK_BUTTON",width:24})}),a&&jsx(xr,{"aria-label":"Baixar arquivo",onClick:a,className:He.downloadBtn,sx:s?.downloadBtn,size:"small",children:jsx(a$4,{icon:"ARROW_DOWN_CICLE",width:12})})]});return r?jsx(pt,{arrow:!0,title:f,slotProps:{popper:{modifiers:[{name:"offset",options:{offset:[0,-12]}}]}},children:h}):h};var Ta=e=>e.startsWith("image/"),Vo=(e,o=.8)=>new Promise((r,n)=>{let t=document.createElement("canvas"),s=t.getContext("2d"),a=new Image;a.onload=()=>{t.width=a.width,t.height=a.height,s?(s.drawImage(a,0,0),t.toBlob(p=>{if(p){let c=new File([p],e.name.replace(/\.[^/.]+$/,".webp"),{type:"image/webp",lastModified:Date.now()});r(c);}else n(new Error("Falha ao converter para WebP"));},"image/webp",o)):n(new Error("N\xE3o foi poss\xEDvel obter contexto do canvas"));},a.onerror=()=>n(new Error("Falha ao carregar imagem")),a.src=URL.createObjectURL(e);}),Ko=(e,o=.8,r,n)=>new Promise((t,s)=>{let a=document.createElement("canvas"),p=a.getContext("2d"),c=new Image;c.onload=()=>{let{width:f,height:d}=c;r&&f>r&&(d=d*r/f,f=r),n&&d>n&&(f=f*n/d,d=n),a.width=f,a.height=d,p?(p.imageSmoothingEnabled=!0,p.imageSmoothingQuality="high",p.drawImage(c,0,0,f,d),a.toBlob(m=>{if(m){let x=new File([m],e.name.replace(/\.[^/.]+$/,".webp"),{type:"image/webp",lastModified:Date.now()});t(x);}else s(new Error("Falha ao comprimir imagem"));},"image/webp",o)):s(new Error("N\xE3o foi poss\xEDvel obter contexto do canvas"));},c.onerror=()=>s(new Error("Falha ao carregar imagem")),c.src=URL.createObjectURL(e);}),Jo=e=>{let o=e.match(/filename\*=UTF-8''([^;]+)|filename="?([^";]+)"?/i);return o?.[1]||o?.[2]||""},Qo=e=>`UTF-8''${encodeURIComponent(e)}`;var gt=({onFilesSelect:e$1,onFileSelect:o,onReorder:r,onRemove:n,onUploadLifecycle:t,uploadFiles:s,filesPreview:a,dropzoneOptions:p,enableCrop:c=!1,customAspectRatio:f,convertToWebp:d=!0,cropSize:m,maxFiles:x,compressionQuality:h=.8,maxCompressedWidth:w,maxCompressedHeight:A})=>{let{showErrorMessage:E}=a$7(),T=useId(),v=useRef(0),R=()=>(v.current+=1,`${T}-${v.current}`),P=useMemo(()=>f||(m&&typeof m!="number"?m.width/m.height:1),[f,m]),[I,z]=useState([]),[U,g]=useState(!1),[u,F]=useState(null),[M,N]=useState(null),[_,S]=useState(""),[G,C]=useState(!1),[X,j]=useState([]),[be,ne]=useState(0),[ue,le]=useState(0),Z=b=>{if(b.length<1)return;let y=b[0];F(y),ne(k=>k+1);let O=new FileReader;O.onload=()=>{S(O.result),g(!0);},O.readAsDataURL(y);},Y=(b,y)=>{N(y);},ee=async b=>!u||!M?null:new Promise(y=>{let O=document.createElement("canvas"),k=O.getContext("2d"),B=new Image;B.onload=async()=>{let{width:q,height:H,x:Ie,y:Ue}=M,dr=Math.abs(P),Te=q,Ce=H;m&&typeof m=="object"?(Te=m.width,Ce=m.height):m&&typeof m=="number"&&(Te=m,Ce=m/dr),O.width=Te,O.height=Ce,k?(k.drawImage(B,Ie,Ue,q,H,0,0,Te,Ce),O.toBlob(async po=>{if(po){let Je=new File([po],u.name,{type:u.type,lastModified:Date.now()});if(d)try{Je=await Vo(Je,h);}catch(cr){E(cr,"Erro ao converter para WebP");}let co=Je;co.id=b,y(co);}else y(null);},"image/png")):y(null);},B.src=_;}),se=async()=>{if(!(!u||!M||X.length===0)){C(!0);try{let b=X[0],y=await ee(b.id);if(y){let k=await s([y]);k&&(!e$1&&!o&&z(B=>[...B,...k]),e$1?.([...a||[],...k]),o?.(y));}g(!1),C(!1),S(""),F(null);let O=X.slice(1);j(O),Z(O);}catch(b){E(b,"Erro ao processar imagem"),C(!1);}}},pe=()=>{g(!1),C(!1),S(""),F(null),j([]),ne(0),le(0);},l=async b=>{if(b.length===0)return;let y=Object.keys(p?.accept||{}).some(B=>B.includes("image/")),O=I.length+b.length;if(x&&O>x){E(new Error(`M\xE1ximo de ${x} arquivos`),"Erro ao fazer upload");return}let k=t?R():void 0;try{if(y&&c){let q=b.filter(H=>H.type.startsWith("image/")).map((H,Ie)=>{let Ue=H;return Ue.id=`temp-crop-${Date.now()}-${Ie}`,Ue});le(q.length),ne(0),j(q),Z(q);}else {k&&t?.({id:k,status:"started"});let B=[];for(let H of b)if(H.type.startsWith("image/")&&d)try{let Ie=await Ko(H,h,w,A);B.push(Ie);}catch(Ie){E(Ie,"Erro ao comprimir imagem"),B.push(H);}else B.push(H);let q=await s(B);if(!q){k&&t?.({id:k,status:"failed"});return}!e$1&&!o&&z(H=>[...H,...q]),e$1?.([...a||[],...q]),o?.(q[0]),k&&t?.({id:k,status:"completed"});}}catch(B){k&&t?.({id:k,status:"failed"}),E(B,"Erro ao processar arquivos");}},de=b=>{if(!b.length)return;let y=b[0]?.errors[0]?.code,O=p?.maxSize||3145728;E(y==="file-too-large"?new Error(`O arquivo excede o tamanho m\xE1ximo de ${e(O)}`):y==="file-invalid-type"?new Error("Formato de arquivo n\xE3o suportado"):b[0]?.errors[0]||new Error("Erro ao enviar arquivo"),"Erro ao fazer upload");},{getRootProps:oe,getInputProps:Fe,isDragActive:ye,isDragReject:Ee,fileRejections:ce}=useDropzone({onDrop:l,onDropRejected:de,...p}),re=b=>{if(!b){n||z([]),n?.(void 0);return}let y=I.filter(O=>O.id!==b.id);n||z(y),n?.(b);},te=(b,y,O)=>{r?.(b,y,O);},De=useRef("");return useEffect(()=>{let b=a?.map(y=>y.id).join(",")||"";b!==De.current&&(De.current=b,z(a||[]));},[a]),{file:I?.[0],files:I,aspectRatio:P,dropzoneProps:{getRootProps:oe,getInputProps:Fe,isDragActive:ye,isDragReject:Ee,fileRejections:ce},cropState:{cropModalOpen:U,imagePreview:_,cropLoading:G,setCropModalOpen:g,onCropInitialized:Y,handleCropSave:se,handleCropCancel:pe,currentImageIndex:be,totalPendingImages:ue},setInitialFiles:z,handleRemove:re,handleReorder:te}},K=gt;var ro=(l=>(l.APPLICATION_OCTET_STREAM="application/octet-stream",l.IMAGE_JPEG="image/jpeg",l.IMAGE_JPG="image/jpg",l.IMAGE_PNG="image/png",l.IMAGE_GIF="image/gif",l.IMAGE_WEBP="image/webp",l.IMAGE_SVG="image/svg+xml",l.IMAGE_BMP="image/bmp",l.IMAGE_TIFF="image/tiff",l.IMAGE_ICO="image/x-icon",l.IMAGE_AVIF="image/avif",l.APPLICATION_PDF="application/pdf",l.TEXT_PLAIN="text/plain",l.TEXT_CSV="text/csv",l.APPLICATION_RTF="application/rtf",l.APPLICATION_MSWORD="application/msword",l.APPLICATION_DOCX="application/vnd.openxmlformats-officedocument.wordprocessingml.document",l.APPLICATION_MSEXCEL="application/vnd.ms-excel",l.APPLICATION_XLSX="application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",l.APPLICATION_MSPOWERPOINT="application/vnd.ms-powerpoint",l.APPLICATION_PPTX="application/vnd.openxmlformats-officedocument.presentationml.presentation",l.APPLICATION_ODT="application/vnd.oasis.opendocument.text",l.APPLICATION_ODS="application/vnd.oasis.opendocument.spreadsheet",l.APPLICATION_ODP="application/vnd.oasis.opendocument.presentation",l.APPLICATION_XML="application/xml",l.TEXT_XML="text/xml",l.TEXT_HTML="text/html",l.TEXT_CSS="text/css",l.APPLICATION_JSON="application/json",l.TEXT_JAVASCRIPT="text/javascript",l.APPLICATION_ZIP="application/zip",l.APPLICATION_GZIP="application/gzip",l.APPLICATION_RAR="application/vnd.rar",l.APPLICATION_7Z="application/x-7z-compressed",l.AUDIO_MPEG="audio/mpeg",l.AUDIO_WAV="audio/wav",l.AUDIO_OGG="audio/ogg",l.AUDIO_WEBM="audio/webm",l.AUDIO_AAC="audio/aac",l.VIDEO_MP4="video/mp4",l.VIDEO_MPEG="video/mpeg",l.VIDEO_OGG="video/ogg",l.VIDEO_WEBM="video/webm",l.VIDEO_QUICKTIME="video/quicktime",l))(ro||{}),$e=(e=>(e["application/octet-stream"]="APPLICATION_OCTET_STREAM",e["image/jpeg"]="IMAGE_JPEG",e["image/jpg"]="IMAGE_JPG",e["image/png"]="IMAGE_PNG",e["image/gif"]="IMAGE_GIF",e["image/webp"]="IMAGE_WEBP",e["image/svg+xml"]="IMAGE_SVG",e["image/bmp"]="IMAGE_BMP",e["image/tiff"]="IMAGE_TIFF",e["image/x-icon"]="IMAGE_ICO",e["image/avif"]="IMAGE_AVIF",e["application/pdf"]="APPLICATION_PDF",e["text/plain"]="TEXT_PLAIN",e["text/csv"]="TEXT_CSV",e["application/rtf"]="APPLICATION_RTF",e["application/msword"]="APPLICATION_MSWORD",e["application/vnd.openxmlformats-officedocument.wordprocessingml.document"]="APPLICATION_DOCX",e["application/vnd.ms-excel"]="APPLICATION_MSEXCEL",e["application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"]="APPLICATION_XLSX",e["application/vnd.ms-powerpoint"]="APPLICATION_MSPOWERPOINT",e["application/vnd.openxmlformats-officedocument.presentationml.presentation"]="APPLICATION_PPTX",e["application/vnd.oasis.opendocument.text"]="APPLICATION_ODT",e["application/vnd.oasis.opendocument.spreadsheet"]="APPLICATION_ODS",e["application/vnd.oasis.opendocument.presentation"]="APPLICATION_ODP",e["application/xml"]="APPLICATION_XML",e["text/xml"]="TEXT_XML",e["text/html"]="TEXT_HTML",e["text/css"]="TEXT_CSS",e["application/json"]="APPLICATION_JSON",e["text/javascript"]="TEXT_JAVASCRIPT",e["application/zip"]="APPLICATION_ZIP",e["application/gzip"]="APPLICATION_GZIP",e["application/vnd.rar"]="APPLICATION_RAR",e["application/x-7z-compressed"]="APPLICATION_7Z",e["audio/mpeg"]="AUDIO_MPEG",e["audio/wav"]="AUDIO_WAV",e["audio/ogg"]="AUDIO_OGG",e["audio/webm"]="AUDIO_WEBM",e["audio/aac"]="AUDIO_AAC",e["video/mp4"]="VIDEO_MP4",e["video/mpeg"]="VIDEO_MPEG",e["video/ogg"]="VIDEO_OGG",e["video/webm"]="VIDEO_WEBM",e["video/quicktime"]="VIDEO_QUICKTIME",e))($e||{});var It=({createFilesMutation:e,filesDetails:o})=>{let{showErrorMessage:r}=a$7(),[n,t]=useState(!1),[s,a]=useState(!1),[p,c]=useState(null),[f,d]=useState([]),m=useMemo(()=>f?.[0],[f]),x=s||n,h=useCallback(async v=>{if(!v.length){d([]),a(!1);return}a(!0);try{let P=(await Promise.all(v.map(async({url:I,id:z,name:U})=>{try{if(!I)return null;let g=await fetch(I,{cache:"no-store"});if(!g.ok)throw new Error(g.statusText);let u=await g.blob(),F=null;if(!U){let _=g.headers.get("content-disposition")||void 0;if(_){let S=Jo(_);if(S)try{F=decodeURIComponent(S);}catch{F=S;}}}let M=F||U||z,N=new File([u],M,{type:u.type});return N.id=z,N.url=I,N}catch{return null}}))).filter(Boolean);d(P),a(!1);}catch(R){r(R,"Erro ao carregar arquivos"),d([]),a(!1);}},[r]),w=useRef("");useEffect(()=>{let v=o?.map(({id:R})=>R).join(",")||"";v!==w.current&&(async()=>(w.current=v,await h(o)))();},[o,h]);let A=async v=>{if(!v||!Array.isArray(v))throw new Error("Arquivos inv\xE1lidos");let R=v.filter(P=>P instanceof File);if(R?.length){t(!0);try{let P=R.map(g=>{let u=g.type||"application/octet-stream",F=$e[u];if(!F)throw new Error(`Tipo de arquivo n\xE3o suportado: ${u}`);return {file:g,mimeType:u,contentTypeEnum:F}}),I=await e({files:P.map(({file:g,contentTypeEnum:u})=>({content_type:u,name:g.name}))}).unwrap(),z=I.files.map((g,u)=>{let F=P[u].file,M=F;return M.id=g.id,M.url=URL.createObjectURL(F),M});if((await Promise.all(I.files.map((g,u)=>{let{mimeType:F}=P[u],M=z[u];return fetch(g.url,{method:"PUT",headers:{"Content-Type":F,"Content-Disposition":`inline; filename*=${Qo(M.name)}`,"X-File-Id":g.id},body:M})}))).some(g=>!g.ok))throw new Error("Erro no upload do arquivo.");return z}catch(P){throw c(P),r(P,"Erro no upload"),P}finally{t(!1);}}},E=useMemo(()=>p&&p instanceof Error?p.message:p,[p]),T=useMemo(()=>o.filter(v=>!f.some(R=>R.id===v.id)),[o,f]);return {setFilesPreview:d,uploadFiles:A,filesPreview:f,filePreview:m,isLoadingPreview:s,isUploadingFiles:n,isUploadOrLoadingFiles:x,uploadErrorText:E,invalidFiles:T}},J=It;var vt=({sx:e,id:o,name:r,tabIndex:n,uploading:t,getRootProps:s,getInputProps:a,isDragActive:p,isError:c,disabled:f,dropZoneSxProps:d,dropZoneContent:m,children:x,...h})=>jsxs(Ge,{children:[t&&jsx(a$6,{"data-testid":"uploading-progress-bar",sx:{zIndex:1}}),jsxs(_e,{sx:{width:1,position:"relative",...e},children:[jsxs(fo,{...s(),"data-testid":"drop-zone-styled-area",isError:c,isDragActive:p,disabled:!!f,sx:d,...h,children:[jsx("input",{...a(),id:o,tabIndex:n,name:r}),m]}),x]})]}),ge=vt;function rr(){let e=useTheme(),o=useId(),r=e.vars.palette.primary.main;return jsxs(Fragment,{children:[jsx("defs",{children:jsxs("linearGradient",{id:o,x1:"19.496%",x2:"77.479%",y1:"71.822%",y2:"16.69%",children:[jsx("stop",{offset:"0%",stopColor:r}),jsx("stop",{offset:"100%",stopColor:r,stopOpacity:"0"})]})}),jsx("path",{fill:`url(#${o})`,fillRule:"nonzero",d:"M0 198.78c0 41.458 14.945 79.236 39.539 107.786 28.214 32.765 69.128 53.365 114.734 53.434a148.44 148.44 0 0056.495-11.036c9.051-3.699 19.182-3.274 27.948 1.107a75.779 75.779 0 0033.957 8.01c5.023 0 9.942-.494 14.7-1.433 13.58-2.67 25.94-8.99 36.09-17.94 6.378-5.627 14.547-8.456 22.897-8.446h.142c27.589 0 53.215-8.732 74.492-23.696 19.021-13.36 34.554-31.696 44.904-53.224C474.92 234.58 480 213.388 480 190.958c0-76.93-59.774-139.305-133.498-139.305-7.516 0-14.88.663-22.063 1.899C305.418 21.42 271.355 0 232.499 0a103.651 103.651 0 00-45.88 10.661c-13.24 6.487-25.011 15.705-34.64 26.939-32.698.544-62.931 11.69-87.676 30.291C25.351 97.155 0 144.882 0 198.781z",opacity:"0.2"})]})}function Mt({hideBackground:e,sx:o,...r}){let n=useTheme(),t=n.vars.palette.primary.main,s=n.vars.palette.primary.dark,a=n.vars.palette.primary.darker;return jsxs(_e,{component:"svg",width:"100%",height:"100%",viewBox:"0 0 480 360",xmlns:"http://www.w3.org/2000/svg",sx:{width:320,maxWidth:1,flexShrink:0,height:"auto",...o},...r,children:[!e&&jsx(rr,{}),jsx("defs",{children:jsxs("linearGradient",{id:"linearGradient-2",x1:"30.113%",x2:"30.113%",y1:"0%",y2:"100%",children:[jsx("stop",{offset:"0%",stopOpacity:"0"}),jsx("stop",{offset:"100%"})]})}),jsx("path",{fill:"#FF4842",fillRule:"nonzero",d:"M293.006 206.192c-2.248 2.672-4.676 2.628-6.123 2.251l.054-1.384s5.979-2.733 5.827-2.159c-.057.215.057.733.242 1.292zM309.393 209.217c-3.818 2.206-6.058-.38-6.578-1.112.32-.84.801-2.204.703-2.592-.144-.577 5.827 2.155 5.827 2.155l.048 1.549zM305.303 187.204s3.632-2.093 4.425-1.151c.792.942-4.425 1.151-4.425 1.151zM307.497 188.355s-.598.299.721.681c1.318.383-.721-.681-.721-.681zM285.532 182.599c-.123.036 3.022 2.123 5.862.395-.012 0-5.154-.61-5.862-.395zM291.239 186.591s-.861 1.692-2.625 1.943c-1.764.251 2.625-1.943 2.625-1.943zM302.785 190.262s4.138 6.578 3.346 8.129c-.793 1.552-3.346-8.129-3.346-8.129zM294.62 216.416c0 .368 0 .712-.036.996-.107 1.33-3.381.828-3.381.828-2.99.416-4.066-1.019-4.422-2.392a5.444 5.444 0 01-.164-1.363 5.606 5.606 0 01.054-.819v-.272a1.998 1.998 0 011.859.379c1.331 1.08 3.095.252 3.095.252s1.294.107 1.793.538c.281.242.745-.341 1.098-.897.021.359.054 1.007.074 1.701.024.356.03.714.03 1.049z",opacity:"0.05"}),jsx("path",{fill:"#FF4842",fillRule:"nonzero",d:"M289.37 216.339s-.897.879-2.589-.479a5.444 5.444 0 01-.164-1.363c.864.658 2.466 1.842 2.753 1.842zM294.62 216.416a.67.67 0 01-.519.132.672.672 0 01-.452-.287c.348-.266.669-.566.956-.897.009.359.015.717.015 1.052zM301.637 217.032c0 .371 0 .715.033.996.108 1.333 3.382.828 3.382.828 2.989.419 4.066-1.017 4.421-2.392a5.728 5.728 0 00.111-2.182v-.272a2.024 2.024 0 00-1.862.379c-1.331 1.08-3.092.251-3.092.251s-1.294.111-1.794.542c-.281.242-.744-.341-1.094-.897a61.426 61.426 0 00-.078 1.701c-.024.35-.03.708-.027 1.046z",opacity:"0.05"}),jsx("path",{fill:"#FF4842",fillRule:"nonzero",d:"M306.887 216.949s.897.879 2.587-.479c.112-.444.169-.901.167-1.36-.867.655-2.47 1.839-2.754 1.839zM301.637 217.032a.67.67 0 00.969-.155 6.35 6.35 0 01-.957-.897c-.009.356-.014.714-.012 1.052zM319.614 106.269c.063-.138.123-.275.18-.41.057-.134.077-.209.11-.317-.11.237-.206.48-.29.727z",opacity:"0.05"}),jsx("path",{fill:a,fillRule:"nonzero",d:"M157.592 279.461a4.114 4.114 0 01-.917-3.131l13.196-107.979 1.094-8.97a4.142 4.142 0 014.078-3.635l38.654-.257a4.135 4.135 0 004.108-4.249l-.015-.409a4.14 4.14 0 014.135-4.279h40.619a4.134 4.134 0 014.098 4.682 4.137 4.137 0 003.995 4.682l39.01.996a4.13 4.13 0 013.97 4.831l-19.502 113.909-.368 2.152a4.042 4.042 0 01-.598 1.543l-135.557.114z"}),jsx("path",{fill:"#FFF",fillRule:"nonzero",d:"M251.256817 123.296578L274.098317 123.296578 274.098317 200.823078 251.256817 200.823078z",transform:"rotate(34.64 262.678 162.06)"}),jsx("path",{fill:"#FFC107",fillRule:"nonzero",d:"M270.624591 129.857671L286.750291 129.857671 286.750291 145.983371 270.624591 145.983371z",transform:"rotate(34.804 278.687 137.92)"}),jsx("path",{fill:"#FFC107",fillRule:"nonzero",d:"M260.275579 145.813111L276.423079 145.813111 276.423079 161.960611 260.275579 161.960611z",opacity:"0.5",transform:"rotate(34.64 268.35 153.887)"}),jsx("path",{fill:"#FFC107",fillRule:"nonzero",d:"M249.191579 161.852111L265.339079 161.852111 265.339079 177.999611 249.191579 177.999611z",opacity:"0.3",transform:"rotate(34.64 257.265 169.926)"}),jsx("path",{fill:"#FFF",fillRule:"nonzero",d:"M237.472537 121.334214L260.314037 121.334214 260.314037 198.567714 237.472537 198.567714z",transform:"rotate(16.29 248.893 159.951)"}),jsx("path",{fill:"#FF4842",fillRule:"nonzero",d:"M249.053192 123.761554L265.200692 123.761554 265.200692 139.909054 249.053192 139.909054z",transform:"rotate(16.29 257.127 131.835)"}),jsx("path",{fill:"#FF4842",fillRule:"nonzero",d:"M243.584192 142.473554L259.731692 142.473554 259.731692 158.621053 243.584192 158.621053z",opacity:"0.5",transform:"rotate(16.29 251.658 150.547)"}),jsx("path",{fill:"#FF4842",fillRule:"nonzero",d:"M238.116192 161.182554L254.263692 161.182554 254.263692 177.330054 238.116192 177.330054z",opacity:"0.3",transform:"rotate(16.29 246.19 169.256)"}),jsx("path",{fill:"#FFF",fillRule:"nonzero",d:"M230.099192 121.641542L252.940692 121.641542 252.940692 198.875042 230.099192 198.875042z",transform:"rotate(4.6 241.52 160.258)"}),jsx("path",{fill:"#1890FF",fillRule:"nonzero",d:"M235.800489 122.985499L251.947989 122.985499 251.947989 139.132999 235.800489 139.132999z",transform:"rotate(4.6 243.874 131.06)"}),jsx("path",{fill:"#1890FF",fillRule:"nonzero",d:"M234.234488 142.413498L250.381988 142.413498 250.381988 158.560998 234.234488 158.560998z",opacity:"0.5",transform:"rotate(4.6 242.308 150.487)"}),jsx("path",{fill:"#1890FF",fillRule:"nonzero",d:"M232.672488 161.846499L248.819988 161.846499 248.819988 177.993999 232.672488 177.993999z",opacity:"0.3",transform:"rotate(4.6 240.746 169.92)"}),jsx("path",{fill:"#FFF",fillRule:"nonzero",d:"M224.736657 123.384871L247.578157 123.384871 247.578157 200.618371 224.736657 200.618371z",transform:"rotate(-2.61 236.157 162.002)"}),jsx("path",{fill:t,fillRule:"nonzero",d:"M226.751283 124.659968L242.898783 124.659968 242.898783 140.807468 226.751283 140.807468z",transform:"rotate(-2.61 234.825 132.734)"}),jsx("path",{fill:t,fillRule:"nonzero",d:"M228.305601 143.479224L244.473301 143.479224 244.473301 159.646924 228.305601 159.646924z",opacity:"0.5",transform:"rotate(-2.862 236.39 151.563)"}),jsx("path",{fill:t,fillRule:"nonzero",d:"M228.525282 163.608968L244.672782 163.608968 244.672782 179.756468 228.525282 179.756468z",opacity:"0.3",transform:"rotate(-2.61 236.599 171.683)"}),jsx("path",{fill:"#F4F6F8",fillRule:"nonzero",d:"M232.679 225.726l-20.294 7.851-29.661 11.466c-1.121-2.093-2.771-4.921-4.813-8.297-7.026-11.642-18.65-29.75-29.001-45.665-11.66-17.938-21.696-33.075-21.696-33.075l7.265-2.093 59.346-17.23 38.854 87.043z"}),jsx("path",{fill:"#000",fillRule:"nonzero",d:"M232.679 225.726l-20.294 7.851a152.535 152.535 0 01-34.484 3.169c-7.026-11.642-18.65-29.75-29-45.665l-14.42-35.18 59.343-17.218 38.855 87.043z",opacity:"0.1"}),jsx("path",{fill:t,fillRule:"nonzero",d:"M247.777 220.841s-31.526 18.65-78.596 14.432l-37.525-91.486 17.984-3.091 62.168-10.677 35.279 89.043.69 1.779z"}),jsx("path",{fill:"#FF4842",fillRule:"nonzero",d:"M247.075 219.074c-7.424.365-16.013.329-24.654-.702-9.351-1.101-18.757-3.367-26.82-7.523-6.742-3.471-12.506-7.247-17.532-11.776-13.074-11.759-21.164-28.579-28.429-58.365l62.168-10.677 35.267 89.043z",opacity:"0.1"}),jsx("path",{fill:"#FFF",fillRule:"nonzero",d:"M270.203 213.959s-23.239 4.55-46.894 1.749c-9.351-1.1-18.757-3.367-26.82-7.522-6.742-3.471-12.503-7.247-17.532-11.777-16.181-14.557-24.725-36.866-33.536-81.918 0 0 38.633 9.325 76.836-11.101-.012.015 12.865 80.373 47.946 110.569z"}),jsx("path",{fill:t,fillRule:"nonzero",d:"M165.405 131.03s31.416-1.776 40.187-8.548l1.331 4.276s-20.758 9.157-41.518 9.268v-4.996zM165.405 152.137s30.417-1.665 53.399-12.766l.777 1.776s-18.237 10.647-54.176 13.433v-2.443zM167.853 160.362s30.418-1.665 53.397-12.766l.777 1.776s-18.237 10.643-54.174 13.433v-2.443zM170.299 168.599s30.417-1.666 53.399-12.766l.774 1.775s-18.237 10.647-54.173 13.433v-2.442zM172.748 176.835s30.417-1.665 53.396-12.766l.777 1.776s-18.237 10.647-54.173 13.433v-2.443zM175.193 185.075s30.417-1.665 53.399-12.766l.774 1.776s-18.237 10.643-54.173 13.433v-2.443z",opacity:"0.3"}),jsx("path",{fill:t,fillRule:"nonzero",d:"M389.069 287.344s-12.641-.762-11.152 8.097c0 0-.299 1.563 1.124 2.275 0 0 .021-.658 1.295-.434.454.077.916.099 1.375.066a2.832 2.832 0 001.677-.694c.468-.409 3.555-1.468 4.936-7.274 0 0 1.023-1.267.981-1.593l-2.132.897s.73 1.54.156 2.816c0 0-.069-2.759-.479-2.691-.083 0-1.109.533-1.109.533s1.253 2.69.299 4.628c0 0 .359-3.304-.699-4.434l-1.495.876s1.465 2.768.472 5.029c0 0 .254-3.465-.789-4.817l-1.361 1.062s1.379 2.729.539 4.604c0 0-.111-4.036-.835-4.341 0 0-1.195 1.049-1.369 1.494 0 0 .942 1.98.356 3.026 0 0-.359-2.691-.652-2.691 0 0-1.196 1.794-1.309 2.99 0 0 .051-1.818 1.022-3.172a3.593 3.593 0 00-1.818.942s.186-1.262 2.111-1.37c0 0 .981-1.351 1.241-1.435 0 0-1.914-.158-3.074.356 0 0 1.023-1.196 3.427-.649l1.342-1.094s-2.52-.347-3.588.036c0 0 1.229-1.052 3.95-.299l1.462-.873s-2.147-.463-3.426-.299c0 0 1.348-.729 3.856.06l1.044-.47s-1.573-.299-2.033-.358c-.461-.06-.488-.174-.488-.174a5.426 5.426 0 012.957.329s2.222-.813 2.186-.954z"}),jsx("ellipse",{cx:"380.363",cy:"298.487",fill:t,fillRule:"nonzero",opacity:"0.1",rx:"8.945",ry:"1.513"}),jsx("path",{fill:t,fillRule:"nonzero",d:"M394.956 258.102s-7.125-.43-6.279 4.565a1.218 1.218 0 00.631 1.283s.015-.371.733-.245c.255.042.515.054.774.036.349-.023.681-.159.945-.389.264-.23 2.003-.828 2.783-4.102 0 0 .577-.714.553-.897l-1.196.511s.41.87.087 1.591c0 0-.039-1.558-.269-1.522-.048 0-.625.299-.625.299s.706 1.495.173 2.61c0 0 .204-1.862-.394-2.502l-.846.496s.825 1.561.266 2.834c0 0 .143-1.955-.446-2.714l-.765.598s.774 1.539.299 2.595c0 0-.063-2.275-.469-2.446a4.75 4.75 0 00-.775.834s.532 1.118.204 1.707c0 0-.204-1.515-.368-1.521 0 0-.67 1.001-.739 1.689a3.671 3.671 0 01.577-1.794 2.007 2.007 0 00-1.025.532s.104-.711 1.196-.771c0 0 .553-.763.699-.81 0 0-1.079-.09-1.734.2 0 0 .577-.67 1.932-.365l.759-.619s-1.423-.194-2.024.021c0 0 .694-.598 2.227-.161l.826-.494a7.445 7.445 0 00-1.935-.164s.763-.413 2.174.033l.598-.263s-.897-.177-1.148-.203c-.252-.027-.275-.099-.275-.099a3.078 3.078 0 011.668.185s1.232-.46 1.208-.538z"}),jsx("ellipse",{cx:"390.052",cy:"264.383",fill:t,fillRule:"nonzero",opacity:"0.1",rx:"5.044",ry:"1"}),jsx("path",{fill:t,fillRule:"nonzero",d:"M352.896 262.437s-8.604-.52-7.588 5.51a1.47 1.47 0 00.763 1.549s0-.449.897-.299c.309.052.623.067.935.045a1.923 1.923 0 001.142-.473c.318-.279 2.419-.998 3.361-4.951 0 0 .697-.861.667-1.085l-1.468.622s.496 1.046.104 1.916c0 0-.048-1.877-.326-1.835-.056 0-.753.364-.753.364s.852 1.824.209 3.152c0 0 .245-2.249-.475-3.02l-1.023.598s.996 1.886.32 3.423c0 0 .174-2.359-.535-3.289l-.927.724s.939 1.857.365 3.133c0 0-.072-2.747-.565-2.954 0 0-.81.715-.933 1.008 0 0 .64 1.348.242 2.06 0 0-.245-1.83-.445-1.839 0 0-.804 1.214-.897 2.042.04-.768.28-1.512.697-2.159a2.427 2.427 0 00-1.235.643s.125-.858 1.435-.933c0 0 .667-.92.846-.974 0 0-1.303-.111-2.093.239 0 0 .694-.807 2.329-.44l.915-.747s-1.713-.233-2.442.024c0 0 .837-.715 2.69-.191l.996-.598s-1.462-.314-2.335-.201c0 0 .921-.496 2.625.042l.711-.32s-1.07-.209-1.384-.242c-.314-.033-.329-.119-.329-.119a3.69 3.69 0 012.012.221s1.519-.553 1.492-.646z"}),jsx("ellipse",{cx:"346.97",cy:"270.022",fill:t,fillRule:"nonzero",opacity:"0.1",rx:"6.09",ry:"1.028"}),jsx("rect",{width:"51.026",height:"91.312",x:"303.926",y:"69.211",fill:"#FFF",fillRule:"nonzero",rx:"4.737",transform:"rotate(-71.99 329.44 114.867)"}),jsx("circle",{cx:"303.613",cy:"103.507",r:"9.376",fill:t,fillRule:"nonzero",opacity:"0.2"}),jsx("path",{fill:t,fillRule:"nonzero",d:"M344.582495 86.4883769L347.150665 86.4883769 347.150665 127.336977 344.582495 127.336977z",opacity:"0.2",transform:"rotate(-71.99 345.867 106.913)"}),jsx("path",{fill:t,fillRule:"nonzero",d:"M333.028401 99.6373982L335.596571 99.6373982 335.596571 120.445898 333.028401 120.445898z",opacity:"0.2",transform:"rotate(-71.99 334.312 110.042)"}),jsx("path",{fill:t,fillRule:"nonzero",d:"M337.109071 101.431004L339.677241 101.431004 339.677241 135.086304 337.109071 135.086304z",opacity:"0.2",transform:"rotate(-71.99 338.393 118.259)"}),jsx("path",{fill:t,fillRule:"nonzero",d:"M338.505494 105.174377L341.073664 105.174377 341.073664 146.022978 338.505494 146.022978z",opacity:"0.2",transform:"rotate(-71.99 339.79 125.599)"}),jsx("path",{fill:t,fillRule:"nonzero",d:"M348.060839 134.648161L353.026769 134.648161 353.026769 145.952261 348.060839 145.952261z",opacity:"0.5",transform:"rotate(-71.99 350.544 140.3)"}),jsx("rect",{width:"50.3",height:"78.305",x:"291.549",y:"174.486",fill:"#FFF",fillRule:"nonzero",rx:"4",transform:"rotate(-57.265 316.7 213.638)"}),jsx("path",{fill:"#DFE3E8",fillRule:"nonzero",d:"M278.038439 203.88874L292.269539 203.88874 292.269539 207.23723 278.038439 207.23723z",transform:"rotate(-57.57 285.154 205.563)"}),jsx("path",{fill:"#DFE3E8",fillRule:"nonzero",d:"M283.007935 199.201889L314.262535 199.201889 314.262535 202.272339 283.007935 202.272339z",transform:"rotate(-57.57 298.635 200.737)"}),jsx("path",{fill:"#DFE3E8",fillRule:"nonzero",d:"M288.543935 202.715889L319.798535 202.715889 319.798535 205.786339 288.543935 205.786339z",transform:"rotate(-57.57 304.171 204.251)"}),jsx("path",{fill:"#DFE3E8",fillRule:"nonzero",d:"M294.078936 206.235889L325.333536 206.235889 325.333536 209.306339 294.078936 209.306339z",transform:"rotate(-57.57 309.706 207.771)"}),jsx("path",{fill:"#DFE3E8",fillRule:"nonzero",d:"M299.879919 211.40702L331.090719 211.40702 331.090719 214.47316 299.879919 214.47316z",transform:"rotate(-57.265 315.485 212.94)"}),jsx("path",{fill:"#F4F6F8",fillRule:"nonzero",d:"M305.149936 213.268889L336.404536 213.268889 336.404536 216.339339 305.149936 216.339339z",transform:"rotate(-57.57 320.777 214.804)"}),jsx("path",{fill:"#F4F6F8",fillRule:"nonzero",d:"M310.685935 216.782889L341.940535 216.782889 341.940535 219.853339 310.685935 219.853339z",transform:"rotate(-57.57 326.313 218.318)"}),jsx("path",{fill:"#DFE3E8",fillRule:"nonzero",d:"M341.417983 210.406958L349.511163 210.406958 349.511163 218.500138 341.417983 218.500138z",transform:"rotate(-57.57 345.465 214.454)"}),jsx("path",{fill:t,fillRule:"nonzero",d:"M269.277 168.76l-45.767.493a3.127 3.127 0 00-3.094 3.125v3.782a3.127 3.127 0 01-3.05 3.124l-33.024.792a3.124 3.124 0 01-3.095-2.308l-1.551-5.701a3.124 3.124 0 00-3.053-2.308l-44.113.475a3.125 3.125 0 00-3.05 3.648l17.747 104.449a3.129 3.129 0 003.071 2.604l139.363.598a3.129 3.129 0 003.082-3.714l-20.366-106.521a3.125 3.125 0 00-3.1-2.538z"}),jsx("path",{fill:s,fillRule:"nonzero",d:"M269.277 168.76l-45.767.493a3.127 3.127 0 00-3.094 3.125v3.782a3.127 3.127 0 01-3.05 3.124l-33.024.792a3.124 3.124 0 01-3.095-2.308l-1.551-5.701a3.124 3.124 0 00-3.053-2.308l-44.113.475a3.125 3.125 0 00-3.05 3.648l17.747 104.449a3.129 3.129 0 003.071 2.604l139.363.598a3.129 3.129 0 003.082-3.714l-20.366-106.521a3.125 3.125 0 00-3.1-2.538z",opacity:"0.243"}),jsx("path",{fill:"url(#linearGradient-2)",fillRule:"nonzero",d:"M269.277 168.76l-45.767.493a3.127 3.127 0 00-3.094 3.125v3.782a3.127 3.127 0 01-3.05 3.124l-33.024.792a3.124 3.124 0 01-3.095-2.308l-1.551-5.701a3.124 3.124 0 00-3.053-2.308l-44.113.475a3.125 3.125 0 00-3.05 3.648l17.747 104.449a3.129 3.129 0 003.071 2.604l139.363.598a3.129 3.129 0 003.082-3.714l-20.366-106.521a3.125 3.125 0 00-3.1-2.538z",opacity:"0.32"}),jsx("ellipse",{cx:"119.593",cy:"258.664",fill:t,fillRule:"nonzero",opacity:"0.1",rx:"4.846",ry:"1"}),jsx("ellipse",{cx:"101.03",cy:"260.545",fill:t,fillRule:"nonzero",opacity:"0.1",rx:"4.846",ry:"1"}),jsx("ellipse",{cx:"108.459",cy:"265.905",fill:t,fillRule:"nonzero",opacity:"0.1",rx:"3.444",ry:"1"}),jsx("ellipse",{cx:"89.193",cy:"265.433",fill:t,fillRule:"nonzero",opacity:"0.1",rx:"3.444",ry:"1"}),jsx("path",{fill:t,fillRule:"nonzero",d:"M100.925 260.398s6.796-22.279-1.064-31.204c-5.881-6.676-12.557-5.877-15.547-5.052a5.528 5.528 0 00-3.564 2.963c-1.046 2.254-.858 5.913 6.521 10.186 12.35 7.151 13.119 16.96 13.119 16.96l.535 6.147z"}),jsx("path",{stroke:a,strokeLinecap:"round",strokeWidth:"0.5",d:"M85.382 227.302s20.031 6.278 15.546 33.096M97.083 229.547s-2.76 1.86-1.88 4.655M87.39 231.203s1.687-1.716 3.741-.768M95.31 239.832s2.963-1.495 3.728.379M102.638 242.962s-2.224-.176-2.263.897"}),jsx("path",{fill:t,fillRule:"nonzero",d:"M101.2 260.575s-7.961-16.193-10.147-15.846c-1.037.17-1.516 1.196-1.734 2.218a6.516 6.516 0 00.434 3.941c1.13 2.601 4.165 7.519 11.447 9.687z"}),jsx("path",{stroke:a,strokeLinecap:"round",strokeWidth:"0.5",d:"M91.113 247.808s8.353 12.115 9.968 12.647"}),jsx("path",{stroke:a,strokeLinecap:"round",strokeWidth:"0.5",d:"M90.344 249.701L92.293 249.701"}),jsx("path",{stroke:a,strokeLinecap:"round",strokeWidth:"0.5",d:"M92.68 254.132L95.738 254.263"}),jsx("path",{stroke:a,strokeLinecap:"round",strokeWidth:"0.5",d:"M94.542 250.586L94.21 252.179"}),jsx("path",{stroke:a,strokeLinecap:"round",strokeWidth:"0.5",d:"M97.792 255.432L97.732 256.879"}),jsx("path",{fill:t,fillRule:"nonzero",d:"M100.964 260.575s7.959-16.193 10.144-15.846c1.041.17 1.519 1.196 1.734 2.218a6.514 6.514 0 01-.433 3.941c-1.13 2.601-4.168 7.519-11.445 9.687z"}),jsx("path",{stroke:a,strokeLinecap:"round",strokeWidth:"0.5",d:"M111.051 247.808s-8.371 12.115-9.97 12.647"}),jsx("path",{stroke:a,strokeLinecap:"round",strokeWidth:"0.5",d:"M111.82 249.701L109.871 249.701"}),jsx("path",{stroke:a,strokeLinecap:"round",strokeWidth:"0.5",d:"M109.485 254.132L106.426 254.263"}),jsx("path",{stroke:a,strokeLinecap:"round",strokeWidth:"0.5",d:"M107.622 250.586L107.954 252.179"}),jsx("path",{stroke:a,strokeLinecap:"round",strokeWidth:"0.5",d:"M104.372 255.432L104.432 256.879"}),jsx("path",{fill:t,fillRule:"nonzero",d:"M87.295 264.357a1.375 1.375 0 01-.452-.685.599.599 0 01.317-.697c.3-.11.598.09.837.299.24.21.512.431.81.38a1.237 1.237 0 01-.382-1.16.47.47 0 01.105-.236c.161-.174.454-.099.648.039.598.43.787 1.264.79 2.018.03-.277.03-.555 0-.831a.853.853 0 01.334-.727.938.938 0 01.476-.114.988.988 0 01.774.222.767.767 0 01-.03.947c-.229.257-.5.474-.801.64a1.805 1.805 0 00-.571.547.399.399 0 00-.042.096h-1.74a4.826 4.826 0 01-1.073-.738zM117.626 257.833a1.355 1.355 0 01-.452-.682.599.599 0 01.314-.696c.299-.111.598.089.837.299.239.209.509.436.817.391a1.236 1.236 0 01-.386-1.157.472.472 0 01.107-.236c.162-.173.455-.099.649.036.613.433.787 1.268.79 2.021a4.008 4.008 0 000-.834.852.852 0 01.299-.736.955.955 0 01.475-.11.998.998 0 01.774.218.768.768 0 01-.033.951 2.996 2.996 0 01-.798.64 1.767 1.767 0 00-.571.544.499.499 0 00-.042.098h-1.701a4.78 4.78 0 01-1.079-.747zM107.518 264.357a1.406 1.406 0 01-.455-.685.6.6 0 01.317-.697c.299-.11.598.09.837.299.239.21.505.437.816.395a1.247 1.247 0 01-.385-1.16.472.472 0 01.107-.236c.162-.174.455-.099.649.039.613.43.783 1.264.789 2.018.03-.277.03-.555 0-.832a.855.855 0 01.314-.735.93.93 0 01.476-.114.988.988 0 01.774.222.764.764 0 01-.033.947 3.028 3.028 0 01-.798.64 1.798 1.798 0 00-.571.547.411.411 0 00-.042.096h-1.734c-.385-.2-.742-.45-1.061-.744z"}),jsx("circle",{cx:"84.467",cy:"87.003",r:"6.467",fill:t,fillRule:"nonzero",opacity:"0.1"}),jsx("circle",{cx:"395.425",cy:"138.681",r:"6.467",fill:t,fillRule:"nonzero",opacity:"0.1"}),jsx("circle",{cx:"279.178",cy:"66.467",r:"6.467",fill:t,fillRule:"nonzero",opacity:"0.1"}),jsx("circle",{cx:"97.4",cy:"122.68",r:"10.838",fill:t,fillRule:"nonzero",opacity:"0.1"}),jsx("path",{fill:s,fillRule:"nonzero",d:"M206.029 209.911c-7.975 0-14.44 6.465-14.44 14.44s6.465 14.44 14.44 14.44 14.44-6.465 14.44-14.44-6.465-14.44-14.44-14.44z"}),jsx("path",{fill:t,fillRule:"nonzero",d:"M206.029 211.59c7.047 0 12.761 5.714 12.761 12.761 0 7.048-5.714 12.761-12.761 12.761-7.048 0-12.761-5.713-12.761-12.761.006-7.045 5.716-12.754 12.761-12.761",opacity:"0.72"}),jsx("path",{fill:s,fillRule:"nonzero",d:"M200.058 225.406l-.699-.681a.721.721 0 010-1.065l6.127-5.984a.753.753 0 01.546-.231c.206 0 .404.083.545.231l6.127 5.978a.733.733 0 010 1.065l-.699.682a.768.768 0 01-1.091 0l-3.622-3.727v8.843a.725.725 0 01-.219.523.76.76 0 01-.534.217h-1.009a.75.75 0 01-.759-.74v-8.832l-3.622 3.726a.768.768 0 01-1.091-.005z"})]})}var ir=memo(Mt);var Lt=({header:e,description:o,sx:r,...n})=>jsxs(Pe,{spacing:5,alignItems:"center",justifyContent:"center",direction:{xs:"column",md:"row"},sx:{width:1,textAlign:{xs:"center",md:"left"},...r},...n,children:[jsx(ir,{sx:{width:220}}),jsxs("div",{children:[jsx(ao,{gutterBottom:!0,variant:"h5",children:e||"Soltar ou selecionar arquivos"}),jsx(ao,{variant:"body2",sx:{color:"text.secondary"},children:o||jsxs(Fragment,{children:["Solte os arquivos aqui ou clique",jsx(ao,{variant:"body2",component:"span",sx:{mx:.5,color:"primary.main",textDecoration:"underline"},children:"procurar"}),"na sua m\xE1quina"]})})]})]}),xe=memo(Lt);var Tt=({onRemove:e,onReorder:o,onFilesSelect:r,onUploadLifecycle:n,createFilesMutation:t,filesDetails:s=[],id:a,disabled:p,error:c,helperText:f,thumbnail:d,dropZoneSxProps:m,uploading:x,tabIndex:h,maxFiles:w,placeholderAlt:A,placeholderProps:E,...T})=>{let{filesPreview:v,isUploadOrLoadingFiles:R,uploadErrorText:P,uploadFiles:I}=J({createFilesMutation:t,filesDetails:s}),{files:z,dropzoneProps:U,handleRemove:g,handleReorder:u}=K({onFilesSelect:r,onUploadLifecycle:n,onReorder:o,onRemove:e,filesPreview:v,dropzoneOptions:{multiple:!0,disabled:p,...T},maxFiles:w,uploadFiles:I}),{getRootProps:F,getInputProps:M,isDragActive:N,isDragReject:_}=U,S=!!z?.filter(C=>!!C.id).length,G=_||!!c||!!P;return jsxs(ge,{id:a,uploading:x||R,disabled:p,dropZoneSxProps:m,tabIndex:h,getRootProps:F,getInputProps:M,isDragActive:N,isError:G,dropZoneContent:jsx(Fragment,{children:A?jsx(Pe,{children:A}):jsx(xe,{header:E?.header,description:E?.description})}),children:[jsx(D,{disabled:p,helperText:f,isError:G}),c?jsx(D,{helperText:c,isError:!0}):null,P?jsx(D,{helperText:P,isError:!0}):null,S&&jsx(_e,{sx:{my:3},children:jsx(Oe,{files:z,thumbnail:!!d,onRemove:e?g:void 0,onReorder:o?u:void 0})})]})},Ct=memo(Tt);var jt=({onRemove:e,onReorder:o,onFilesSelect:r,createFilesMutation:n,filesDetails:t=[],id:s,disabled:a,error:p,helperText:c,dropZoneSxProps:f,placeholderProps:d,placeholderAlt:m,uploading:x,tabIndex:h,maxFiles:w,aspectRatio:A,enableCrop:E=!0,convertToWebp:T=!0,cropSize:v,name:R,label:P,keepInvalidFiles:I=!1,...z})=>{let{filesPreview:U,isUploadOrLoadingFiles:g,uploadErrorText:u,uploadFiles:F,invalidFiles:M}=J({createFilesMutation:n,filesDetails:t}),N=x||g,{files:_,dropzoneProps:S,cropState:G,aspectRatio:C,handleRemove:X,handleReorder:j}=K({onFilesSelect:r,onReorder:o,onRemove:e,filesPreview:U,dropzoneOptions:{accept:{"image/*":[".jpeg",".jpg",".png",".gif",".webp"]},multiple:!0,disabled:a,...z},enableCrop:E,customAspectRatio:A,convertToWebp:T,maxFiles:w,cropSize:v,uploadFiles:F}),{getRootProps:be,getInputProps:ne,isDragActive:ue,isDragReject:le}=S,{cropModalOpen:Z,imagePreview:Y,cropLoading:ee,onCropInitialized:se,handleCropSave:pe,handleCropCancel:l,currentImageIndex:de,totalPendingImages:oe}=G,Fe=useMemo(()=>{if(!I)return _;let re=M.map(te=>({...new File([],te.name??"invalid-file"),id:te.id,url:"url.invalid"}));return [..._,...re]},[I,_,M]),ye=!!Fe?.filter(re=>!!re.id).length,Ee=le||!!p||!!u,ce=useMemo(()=>{let re=P??"Ajustar Imagem",te=oe>1||de>1?` (${de} de ${oe})`:"";return `${re}${te}`},[P,oe,de]);return jsxs(ge,{id:s,name:R,uploading:N,disabled:a,dropZoneSxProps:f,tabIndex:h,getRootProps:be,getInputProps:ne,isDragActive:ue,isError:Ee,dropZoneContent:jsx(Fragment,{children:m?jsx(Pe,{children:m}):jsx(xe,{header:d?.header,description:d?.description})}),children:[jsx(D,{disabled:a,helperText:c,isError:Ee}),p?jsx(D,{helperText:p,isError:!0}):null,u?jsx(D,{helperText:u,isError:!0}):null,ye&&jsx(_e,{sx:{my:3,ml:.5},children:jsx(Oe,{files:Fe,thumbnail:!0,onRemove:X,onReorder:o?j:void 0})}),jsx(a$5,{open:Z,onClose:l,label:ce,imageSrc:Y,aspectRatio:C,onInitialized:se,onSave:pe,loading:ee,cropSize:v})]})},Zt=memo(jt);var Kt=({onFileSelect:e$1,onUploadLifecycle:o,onRemove:r,createFilesMutation:n,fileDetails:t,id:s,disabled:a,error:p,helperText:c,sx:f,dropZoneSxProps:d,uploading:m$1,tabIndex:x,placeholderAlt:h,placeholderProps:w,...A})=>{let{filesPreview:E,isUploadOrLoadingFiles:T,uploadErrorText:v,uploadFiles:R}=J({createFilesMutation:n,filesDetails:t?[t]:[]}),P=T||m$1,{file:I,dropzoneProps:z,handleRemove:U}=K({uploadFiles:R,onFileSelect:e$1,onUploadLifecycle:o,onRemove:r,filesPreview:E,dropzoneOptions:{multiple:!1,disabled:a,...A}}),{getRootProps:g,getInputProps:u,isDragActive:F,isDragReject:M}=z,N=useCallback(C=>{C.stopPropagation(),U(I||void 0);},[I,U]),_=!!I,S=typeof I=="string",G=M||!!p||!!v;return jsxs(ge,{id:s,uploading:P,disabled:a,dropZoneSxProps:d,tabIndex:x,getRootProps:g,getInputProps:u,isDragActive:F,isError:G,dropZoneContent:jsxs(Fragment,{children:[!_&&(h?jsx(Pe,{...w,children:h}):jsx(xe,{})),_&&jsxs(Pe,{component:m.div,...j().inUp,spacing:2,direction:"row",alignItems:"center",sx:{my:1,px:1,py:.75,borderRadius:.75,border:C=>`solid 1px ${C.palette.divider}`,...f},children:[jsx(ze,{file:I}),jsxs(Pe,{flexGrow:1,sx:{minWidth:0},children:[jsx(ao,{variant:"subtitle2",noWrap:!0,children:S?I:I.name}),jsx(ao,{variant:"caption",sx:{color:"text.secondary"},children:S?"":e(I.size)})]}),r&&jsx(a$3,{title:"Remover arquivo",children:jsx(uo,{edge:"end",size:"small",disabled:a,"aria-label":"Remover arquivo",onClick:N,children:jsx(a$4,{icon:"DELETE_MARK_BUTTON_02",width:16})})})]})]}),children:[jsx(D,{disabled:a,helperText:c,isError:G}),p?jsx(D,{helperText:p,isError:!0}):null,v?jsx(D,{helperText:v,isError:!0}):null]})},Jt=memo(Kt);var ii=({onRemove:e,onFileSelect:o,createFilesMutation:r,fileDetails:n,id:t,disabled:s,error:a,helperText:p,dropZoneSxProps:c,placeholderProps:f,placeholderAlt:d,hoverAlt:m,uploading:x,tabIndex:h,aspectRatio:w,enableCrop:A=!0,convertToWebp:E=!0,name:T,label:v,cropSize:R,sx:P,maxWidth:I,maxHeight:z,compressionQuality:U=.8,maxCompressedWidth:g,maxCompressedHeight:u,fill:F,...M})=>{let{filesPreview:N,isUploadOrLoadingFiles:_,uploadErrorText:S,uploadFiles:G}=J({createFilesMutation:r,filesDetails:n?[n]:[]}),[C,X]=useState(!1),{file:j,dropzoneProps:be,cropState:ne,handleRemove:ue,aspectRatio:le}=K({onFileSelect:o,onRemove:e,dropzoneOptions:{accept:{"image/*":[".jpeg",".jpg",".png",".gif",".webp"]},multiple:!1,disabled:s,...M},filesPreview:N,enableCrop:A,customAspectRatio:w,convertToWebp:E,cropSize:R,uploadFiles:G,compressionQuality:U,maxCompressedWidth:g,maxCompressedHeight:u}),{getRootProps:Z,getInputProps:Y,isDragActive:ee,isDragReject:se}=be,{cropModalOpen:pe,imagePreview:l,cropLoading:de,onCropInitialized:oe,handleCropSave:Fe,handleCropCancel:ye}=ne,Ee=useCallback(()=>{ue(j||void 0);},[j,ue]),ce=!!j,re=se||!!a||!!S,te=x||_,De=ce?{opacity:0}:{opacity:1},b=c?.width;return useEffect(()=>{ce||X(!1);},[ce]),jsxs(Ge,{sx:{...P,...b&&{width:b}},children:[(te||C)&&jsx(a$6,{}),jsxs(ge,{id:t,uploading:te,disabled:s,dropZoneSxProps:c,tabIndex:h,getRootProps:Z,getInputProps:Y,isDragActive:ee,isError:re,name:T,dropZoneContent:jsxs(Fragment,{children:[d?jsx(Pe,{sx:De,children:d}):jsx(xe,{sx:De,header:f?.title,description:f?.description}),ce&&jsx(oo,{file:j,cropSize:R,isLoading:C,isUploading:te,onLoading:X,aspectRatio:le,maxWidth:I,maxHeight:z,hoverAlt:m,fill:F})]}),children:[jsx(D,{disabled:s,helperText:p,isError:re}),a?jsx(D,{helperText:a,isError:!0}):null,S?jsx(D,{helperText:S,isError:!0}):null,ce&&e&&jsx(ho,{size:"small",onClick:Ee,disabled:s,label:"Remover arquivo",children:jsx(a$4,{icon:"DELETE_MARK_BUTTON_02",width:16})}),jsx(a$5,{open:pe,onClose:ye,label:v??"Ajustar Imagem",imageSrc:l,aspectRatio:le,onInitialized:oe,onSave:Fe,loading:de,cropSize:R})]})]})},ai=memo(ii);var mi=({onRemove:e,onFileSelect:o,createFilesMutation:r,fileDetails:n,disabled:t,label:s,id:a,tabIndex:p,error:c,helperText:f,sx:d,name:m,maxSize:x,uploading:h,aspectRatio:w=1,enableCrop:A=!0,convertToWebp:E=!0,cropSize:T,...v})=>{let[R,P]=useState(!1),{filesPreview:I,isUploadOrLoadingFiles:z,uploadErrorText:U,uploadFiles:g}=J({createFilesMutation:r,filesDetails:n?[n]:[]}),{file:u,dropzoneProps:F,cropState:M,handleRemove:N}=K({filesPreview:I,onFileSelect:o,onRemove:e,dropzoneOptions:{accept:{"image/*":[".jpeg",".jpg",".png",".gif",".webp"]},multiple:!1,disabled:t,maxSize:x,...v},enableCrop:A,customAspectRatio:w,convertToWebp:E,cropSize:T,uploadFiles:g}),{getRootProps:_,getInputProps:S,isDragActive:G,isDragReject:C}=F,{cropModalOpen:X,imagePreview:j,cropLoading:be,onCropInitialized:ne,handleCropSave:ue,handleCropCancel:le}=M,Z=C||!!c||!!U,Y=R||z||h,ee=!!e,se=useRef(n?.url||""),pe=useRef(void 0);useEffect(()=>{if(!u){se.current="",pe.current=void 0;return}if(pe.current===u.id)return;pe.current=u.id,P(!0);let oe=URL.createObjectURL(u);return se.current=oe,()=>{URL.revokeObjectURL(oe);}},[u]);let l=()=>{P(!1);},de=useCallback(()=>ee&&u?()=>N(u):_().onClick,[ee,u,_,N]);return jsxs(Fragment,{children:[jsxs(Pe,{sx:{alignItems:"center"},children:[jsxs(wo,{sx:d,isError:Z,isDragActive:G,hasFile:!!u,..._(),onClick:de(),children:[jsxs(Eo,{children:[Y&&jsx(Ro,{children:jsx(ci,{size:135,thickness:2,color:"primary"})}),u&&jsx(Ao,{alt:"Avatar Preview",src:se.current,onLoad:l,...Y&&{sx:{filter:"blur(5px) !important",scale:1.2,opacity:.7}}}),!u&&!Y&&jsxs(Ye,{isError:Z,hasFile:!1,children:[jsx(a$4,{icon:"ADD_IMAGE",width:32}),jsx(ao,{variant:"caption",textAlign:"center",sx:{color:Z?"error.main":"text.disabled"},children:"Adicionar foto"})]}),u&&!Y&&jsxs(Ye,{isError:Z,hasFile:!0,children:[jsx(a$4,{icon:ee?"DELETE_MARK_BUTTON_02":"ADD_IMAGE",width:32}),jsx(ao,{variant:"caption",textAlign:"center",sx:{color:Z?"error.main":"common.white"},children:ee?"Remover foto":"Alterar foto"})]})]}),jsx("input",{name:m,id:a,tabIndex:p,...S()})]}),jsx(Pe,{sx:{alignItems:"center",mt:-.5},children:jsx(D,{helperText:f,disabled:t,isError:Z})}),U?jsx(D,{helperText:U,isError:!0}):null,c?jsx(D,{helperText:c,isError:!0}):null]}),X&&j&&jsx(a$5,{open:X,onClose:le,label:s??"Ajustar Imagem",imageSrc:j,aspectRatio:w,onInitialized:ne,onSave:ue,loading:be,cropSize:T,cropShape:"round"})]})},fi=memo(mi);var hi=({error:e,name:o,disabled:r,sx:n,...t})=>{let{getRootProps:s,getInputProps:a,isDragActive:p,isDragReject:c}=useDropzone({disabled:r,...t}),f=c||e;return jsxs(bo,{...s(),isDragActive:p,hasError:!!f,disabled:!!r,sx:n,"data-testid":"upload-box",children:[jsx("input",{name:o,...a()}),"Selecionar arquivo"]})},bi=memo(hi);
32
32
 
33
33
  export { D as a, Oe as b, oo as c, ot as d, $o as e, rt as f, Xo as g, qo as h, Ra as i, He as j, ze as k, Ta as l, Vo as m, Ko as n, Jo as o, Qo as p, K as q, ro as r, $e as s, J as t, Ct as u, Zt as v, Jt as w, ai as x, fi as y, bi as z };
34
- //# sourceMappingURL=chunk-EH3H2KRA.js.map
34
+ //# sourceMappingURL=chunk-G7TQARLI.js.map
@@ -1,4 +1,4 @@
1
- import { a } from './chunk-ORYUMPWA.js';
1
+ import { a } from './chunk-5ZMA4N4W.js';
2
2
  import c from '@mui/material/CircularProgress';
3
3
  import d from '@mui/material/MenuItem';
4
4
  import p from '@mui/material/Stack';
@@ -8,4 +8,4 @@ import { jsx, jsxs } from 'react/jsx-runtime';
8
8
  var i=styled(p)({width:20,height:20,marginRight:16});var u=({icon:o,children:m,loading:t,disabled:n,...a$1})=>jsx(d,{...a$1,disabled:n||t,children:jsxs(p,{direction:"row",color:"grey.600",alignItems:"center",children:[o&&!t&&jsx(a,{icon:o,color:"primary.main","data-testid":o}),t&&jsx(i,{children:jsx(c,{size:20})}),m]})}),P=u;
9
9
 
10
10
  export { P as a };
11
- //# sourceMappingURL=chunk-XQELM32G.js.map
11
+ //# sourceMappingURL=chunk-H762KDPN.js.map
@@ -1,4 +1,4 @@
1
- import { a } from './chunk-ORYUMPWA.js';
1
+ import { a } from './chunk-5ZMA4N4W.js';
2
2
  import { k, b } from './chunk-Y66XXBB3.js';
3
3
  import { forwardRef, Children, isValidElement, useMemo, useState, useCallback, useEffect, useRef } from 'react';
4
4
  import N from '@mui/material/Box';
@@ -13,4 +13,4 @@ import Ge from 'embla-carousel-react';
13
13
  var Qe={xs:"(min-width: 0px)",sm:"(min-width: 600px)",md:"(min-width: 900px)",lg:"(min-width: 1200px)",xl:"(min-width: 1536px)"};var p={root:"mnl__carousel__root",container:"mnl__carousel__container",dots:"mnl__carousel__dots",dot:"mnl__carousel__dot",arrows:"mnl__carousel__arrows",arrowsLabel:"mnl__carousel__arrows_label",arrowPrev:"mnl__carousel__btn--prev",arrowNext:"mnl__carousel__btn--next",arrowSvg:"mnl__carousel__btn__svg",slide:"mnl__carousel__slide",slideContent:"mnl__carousel__slide__content",thumbs:"mnl__carousel__thumbs",thumb:"mnl__carousel__thumb",thumbContainer:"mnl__carousel__thumbs__container",thumbImage:"mnl__carousel__thumb__image",progress:"mnl__carousel__progress",progressBar:"mnl__carousel__progress__bar",state:{selected:"state--selected",disabled:"state--disabled"}};var me=styled(N,{shouldForwardProp:e=>e!=="axis"&&e!=="slideSpacing"})(({axis:e,slideSpacing:o})=>({display:"block",position:"relative",...e==="x"&&{minWidth:0,paddingLeft:o},...e==="y"&&{minHeight:0,paddingTop:o}})),de=styled(N)(()=>({overflow:"hidden",position:"relative",borderRadius:"inherit"}));function w({sx:e,options:o,children:a,...t}){let i=fe(o?.slidesToShow);return jsx(me,{component:"li",axis:o?.axis??"x",slideSpacing:o?.slideSpacing,className:p.slide,sx:{flex:i,...e},...t,children:o?.parallax?jsx(de,{className:p.slideContent,children:jsx("div",{className:"slide__parallax__layer",children:a})}):a})}function fe(e){return e&&typeof e=="object"?Object.keys(e).reduce((o,a)=>{let t=e[a];return o[a]=F(t),o},{}):F(e)}function F(e=1){if(typeof e=="string"){if(!(e==="auto"||e.endsWith("%")||e.endsWith("px")))throw new Error("Only accepts values: auto, px, %, or number.");return `0 0 ${e}`}if(typeof e=="number")return `0 0 ${100/e}%`;throw new Error("Invalid value type. Only accepts values: auto, px, %, or number.")}var T=styled(N,{shouldForwardProp:e=>e!=="axis"})(({axis:e})=>({margin:"auto",width:"100%",maxWidth:"100%",overflow:"hidden",position:"relative",...e==="y"&&{height:"100%"}})),R=styled(N,{shouldForwardProp:e=>e!=="axis"&&e!=="slideSpacing"})(({axis:e,slideSpacing:o})=>({display:"flex",backfaceVisibility:"hidden",...e==="x"&&{touchAction:"pan-y pinch-zoom",marginLeft:`calc(${o} * -1)`},...e==="y"&&{height:"100%",flexDirection:"column",touchAction:"pan-x pinch-zoom",marginTop:`calc(${o} * -1)`}}));function po({carousel:e,children:o,sx:a,slotProps:t,...i}){let{mainRef:n,options:r}=e,s=r?.axis??"x",l=r?.slideSpacing??"0px",c=r?.direction??"ltr",u=Children.map(o,m=>{if(isValidElement(m)){let d=m;return jsx(w,{options:e.options,sx:t?.slide,...i,children:m},d.key)}return null});return jsx(T,{sx:a,axis:s,ref:n,dir:c,className:p.root,children:jsx(R,{component:"ul",axis:s,slideSpacing:l,className:p.container,sx:{...e.pluginNames?.includes("autoHeight")&&{alignItems:"flex-start",transition:m=>m.transitions.create(["height"],{easing:m.transitions.easing.easeInOut,duration:m.transitions.duration.shorter})},...t?.container},children:u})})}function vo({options:e,slotProps:o,totalSlides:a,selectedIndex:t,onClickPrev:i,onClickNext:n,disablePrev:r,disableNext:s,sx:l,...c}){return jsxs(Y,{direction:"row",alignItems:"center",display:"inline-flex",className:p.arrows,sx:{gap:.5,zIndex:9,color:"action.active",...l},...c,children:[jsx(C,{variant:"prev",options:e,disabled:r,onClick:i,svgIcon:o?.prevBtn?.svgIcon,svgSize:o?.prevBtn?.svgSize,sx:o?.prevBtn?.sx}),jsx(C,{variant:"next",options:e,disabled:s,onClick:n,svgIcon:o?.nextBtn?.svgIcon,svgSize:o?.prevBtn?.svgSize,sx:o?.prevBtn?.sx})]})}function _o({options:e,slotProps:o,totalSlides:a,selectedIndex:t,onClickPrev:i,onClickNext:n,disablePrev:r,disableNext:s,sx:l,...c}){let u=useTheme();return jsxs(Y,{direction:"row",alignItems:"center",display:"inline-flex",className:p.arrows,sx:{p:.5,gap:.25,zIndex:9,borderRadius:1.25,color:"common.white",bgcolor:k(u.vars.palette.grey["900Channel"],.48),...l},...c,children:[jsx(C,{variant:"prev",options:e,disabled:r,onClick:i,sx:{p:.75,borderRadius:"inherit",...o?.prevBtn?.sx},svgIcon:o?.prevBtn?.svgIcon,svgSize:o?.prevBtn?.svgSize??16}),jsxs(N,{component:"span",className:p.arrowsLabel,sx:{mx:.5,typography:"subtitle2"},"data-testid":"carousel-number-display",children:[t,"/",a]}),jsx(C,{variant:"next",options:e,disabled:s,onClick:n,sx:{p:.75,borderRadius:"inherit",...o?.nextBtn?.sx},svgIcon:o?.nextBtn?.svgIcon,svgSize:o?.prevBtn?.svgSize??16})]})}function Bo({options:e,slotProps:o,onClickPrev:a,onClickNext:t,disablePrev:i,disableNext:n}){let r={zIndex:9,top:"50%",borderRadius:1.5,position:"absolute",color:"common.white",bgcolor:"text.primary",transform:"translateY(-50%)","&:hover":{opacity:.8},[b.dark]:{color:"grey.800"}};return jsxs(Fragment,{children:[jsx(C,{variant:"prev",options:e,disabled:i,onClick:a,svgIcon:o?.prevBtn?.svgIcon,svgSize:o?.prevBtn?.svgSize,sx:{left:-16,...r,...o?.prevBtn?.sx}}),jsx(C,{variant:"next",options:e,disabled:n,onClick:t,svgIcon:o?.nextBtn?.svgIcon,svgSize:o?.nextBtn?.svgSize,sx:{right:-16,...r,...o?.nextBtn?.sx}})]})}function C({sx:e,svgIcon:o,svgSize:a,options:t,variant:i,...n}){let r=i==="prev",s=i==="next",l=o||jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M15.488 4.43a.75.75 0 0 1 .081 1.058L9.988 12l5.581 6.512a.75.75 0 1 1-1.138.976l-6-7a.75.75 0 0 1 0-.976l6-7a.75.75 0 0 1 1.057-.081",clipRule:"evenodd"}),c=o||jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M8.512 4.43a.75.75 0 0 1 1.057.082l6 7a.75.75 0 0 1 0 .976l-6 7a.75.75 0 0 1-1.138-.976L14.012 12L8.431 5.488a.75.75 0 0 1 .08-1.057",clipRule:"evenodd"});return jsx(J,{className:r?p.arrowPrev:p.arrowPrev,"aria-label":r?"Prev button":"Next button",sx:{p:1,borderRadius:"50%",boxSizing:"content-box",transition:u=>u.transitions.create(["all"],{easing:u.transitions.easing.sharp,duration:u.transitions.duration.short}),[`&.${buttonBaseClasses.disabled}`]:{opacity:.4},...e,...t?.direction==="rtl"&&{...r&&{right:-16,left:"auto"},...s&&{left:-16,right:"auto"}}},...n,children:jsx(Se,{className:p.arrowSvg,sx:{width:a??20,height:a??20,...t?.axis==="y"&&{transform:" rotate(90deg)"},...t?.direction==="rtl"&&{transform:" scaleX(-1)"}},children:r?l:c})})}function Oo({sx:e,gap:o,slotProps:a,onClickDot:t,scrollSnaps:i,selectedIndex:n,fallbackCount:r=1,variant:s="circular",fallback:l=!1,...c}){let u=useTheme(),m={number:o??6,rounded:o??2,circular:o??2},d={circular:a?.dot?.size??18,number:a?.dot?.size??28},S=jsx(N,{sx:{height:d.circular,width:`calc(${r*d.circular+m.circular*(r-1)}px )`,...s==="number"&&{height:d.number,width:`calc(${r*d.number+m.number*(r-1)}px )`}}}),f={circular:y=>({width:d.circular,height:d.circular,"&::before":{width:8,height:8,content:'""',opacity:.24,borderRadius:"50%",bgcolor:"primary.main",transition:u.transitions.create(["opacity"],{easing:u.transitions.easing.sharp,duration:u.transitions.duration.short}),...y&&{opacity:1}}}),rounded:y=>({width:d.circular,height:d.circular,"&::before":{width:8,height:8,content:'""',opacity:.24,borderRadius:"50%",bgcolor:"primary.main",transition:u.transitions.create(["width","opacity"],{easing:u.transitions.easing.sharp,duration:u.transitions.duration.short}),...y&&{width:"calc(100% - 4px)",opacity:1,borderRadius:1}}}),number:y=>({width:d.number,height:d.number,borderRadius:"50%",typography:"caption",color:"text.disabled",border:`solid 1px ${k(u.vars.palette.grey["500Channel"],.16)}`,...y&&{color:"common.white",bgcolor:"text.primary",fontWeight:"fontWeightSemiBold",[b.dark]:{color:"grey.800"}}})};return jsx(Be,{fallback:l?S:null,children:jsx(N,{"data-testid":"carousel-dots",component:"ul",className:p.dots,sx:{zIndex:9,display:"inline-flex",...s==="circular"&&{gap:`${m.circular}px`},...s==="rounded"&&{gap:`${m.rounded}px`},...s==="number"&&{gap:`${m.number}px`},...e},...c,children:i.map((y,x)=>{let v=x===n;return jsx(N,{component:"li",sx:{display:"inline-flex"},children:jsx(J,{disableRipple:!0,"aria-label":`dot-${x}`,className:p.dot.concat(v?` ${p.state.selected}`:""),onClick:()=>t(x),sx:{...s==="circular"&&f.circular(v),...s==="rounded"&&f.rounded(v),...s==="number"&&f.number(v),[`&.${p.state.selected}`]:{...a?.dot?.selected},...a?.dot?.sx},children:s==="number"&&x+1})},x)})})})}var Pe=styled(N)(({theme:e})=>({height:6,maxWidth:120,width:"100%",borderRadius:6,overflow:"hidden",position:"relative",color:e.palette.text.primary,backgroundColor:e.palette.divider})),ke=styled(N)(()=>({top:0,bottom:0,width:"100%",left:"-100%",position:"absolute",backgroundColor:"currentColor"}));function Uo({value:e,sx:o,...a}){return jsx(Pe,{"data-testid":"carousel-progress",sx:o,className:p.progress,...a,children:jsx(ke,{"data-testid":"carousel-progress-bar",className:p.progressBar,sx:{transform:`translate3d(${e}%, 0px, 0px)`}})})}var Oe=forwardRef(({children:e,slotProps:o,options:a,sx:t,...i},n)=>{let r=a?.axis??"x",s=a?.slideSpacing??"12px",l=$e(r),c=Children.map(e,u=>{if(isValidElement(u)){let m=u;return jsx(w,{options:{...a,slideSpacing:s},sx:o?.slide,children:u},m.key)}return null});return jsx(T,{ref:n,axis:r,"data-testid":"carousel-root",className:p.thumbs,sx:{flexShrink:0,...r==="x"&&{p:.5,maxWidth:1},...r==="y"&&{p:.5,maxHeight:1},...!o?.disableMask&&l,...t},...i,children:jsx(R,{component:"ul",axis:r,"data-testid":"carousel-container",slideSpacing:s,className:p.thumbContainer,sx:{...o?.container},children:c})})});Oe.displayName="CarouselThumbs";function Jo({thumbType:e="image",sx:o,src:a$1,index:t,selected:i,imageRender:n,thumbAlt:r,...s}){if(e==="image"&&(a$1||n)){let l={width:1,height:1,aspectRatio:1,objectFit:"cover",borderRadius:"inherit"};return jsx(J,{className:p.thumb,"data-testid":"carousel-thumb",sx:{width:64,height:64,opacity:.48,flexShrink:0,cursor:"pointer",borderRadius:1.25,transition:c=>c.transitions.create(["opacity","box-shadow"],{easing:c.transitions.easing.sharp,duration:c.transitions.duration.short}),...i&&{opacity:1,boxShadow:c=>`0 0 0 2px ${c.vars.palette.primary.main}`},...o},...s,children:n?.({sx:l,classes:p.thumbImage})||jsx(N,{component:"img",alt:r||`Imagem do slide ${t}`,src:a$1,"data-testid":"carousel-thumb-image",className:p.thumbImage,sx:l})})}return e==="video"?jsx(J,{className:p.thumb,"data-testid":"carousel-thumb",sx:{width:64,height:64,opacity:.48,flexShrink:0,cursor:"pointer",borderRadius:1.25,color:l=>l.vars.palette.primary.main,transition:l=>l.transitions.create(["opacity","box-shadow"],{easing:l.transitions.easing.sharp,duration:l.transitions.duration.short}),...i&&{opacity:1,boxShadow:l=>`0 0 0 2px ${l.vars.palette.primary.main}`},...o},...s,children:jsx(a,{icon:"PLAY_CIRCLE",width:32})}):null}function $e(e){let o=useTheme(),a={zIndex:9,content:'""',position:"absolute"},t=`${o.vars.palette.background.paper} 20%, ${k(o.vars.palette.background.paperChannel,0)} 100%)`;return e==="y"?{"&::before, &::after":{...a,left:0,height:40,width:"100%"},"&::before":{top:-8,background:`linear-gradient(to bottom, ${t}`},"&::after":{bottom:-8,background:`linear-gradient(to top, ${t}`}}:{"&::before, &::after":{...a,top:0,width:40,height:"100%"},"&::before":{left:-8,background:`linear-gradient(to right, ${t}`},"&::after":{right:-8,background:`linear-gradient(to left, ${t}`}}}var A=e=>{let[o,a]=useState(!0),[t,i]=useState(!0),n=useCallback(()=>{e&&e.scrollPrev();},[e]),r=useCallback(()=>{e&&e.scrollNext();},[e]),s=useCallback(l=>{a(!l.canScrollPrev()),i(!l.canScrollNext());},[]);return useEffect(()=>{if(e)return s(e),e.on("reInit",s),e.on("select",s),()=>{e.off("reInit",s),e.off("select",s);}},[e,s]),{disablePrev:o,disableNext:t,onClickPrev:n,onClickNext:r}};function oe(e){let[o,a]=useState(!1),t=useCallback(n=>{let r=e?.plugins()?.autoplay;if(!r)return;(r.options.stopOnInteraction===!1?r.reset:r.stop)(),n();},[e]),i=useCallback(()=>{let n=e?.plugins()?.autoplay;if(!n)return;(n.isPlaying()?n.stop:n.play)();},[e]);return useEffect(()=>{let n=e?.plugins()?.autoplay;if(!n)return;let r=()=>a(!0),s=()=>a(!1),l=()=>a(!1);return a(n.isPlaying()),e.on("autoplay:play",r).on("autoplay:stop",s).on("reInit",l),()=>{e.off("autoplay:play",r).off("autoplay:stop",s).off("reInit",l);}},[e]),{isPlaying:o,onTogglePlay:i,onClickAutoplay:t}}function re(e){let[o,a]=useState(!1),t=useCallback(n=>{let r=e?.plugins()?.autoScroll;if(!r)return;(r.options.stopOnInteraction===!1?r.reset:r.stop)(),n();},[e]),i=useCallback(()=>{let n=e?.plugins()?.autoScroll;if(!n)return;(n.isPlaying()?n.stop:n.play)();},[e]);return useEffect(()=>{let n=e?.plugins()?.autoScroll;if(!n)return;let r=()=>a(!0),s=()=>a(!1),l=()=>a(!1);return a(n.isPlaying()),e.on("autoScroll:play",r).on("autoScroll:stop",s).on("reInit",l),()=>{e.off("autoScroll:play",r).off("autoScroll:stop",s).off("reInit",l);}},[e]),{isPlaying:o,onTogglePlay:i,onClickAutoplay:t}}function se(e){let[o,a]=useState(0),[t,i]=useState(0),[n,r]=useState([]),s=useCallback(u=>{e&&e.scrollTo(u);},[e]),l=useCallback(u=>{r(u.scrollSnapList());},[]),c=useCallback(u=>{i(u.selectedScrollSnap()),a(u.scrollSnapList().length);},[]);return useEffect(()=>{if(e)return l(e),c(e),e.on("reInit",l),e.on("reInit",c),e.on("select",c),()=>{e.off("reInit",l),e.off("reInit",c),e.off("select",c);}},[e,l,c]),{dotCount:o,scrollSnaps:n,selectedIndex:t,onClickDot:s}}function le(e,o){let a=useRef(0),t=useRef([]),i=typeof o=="number"?o:.24,n=useCallback(l=>{t.current=l.slideNodes().map(c=>c.querySelector(".slide__parallax__layer"));},[]),r=useCallback(l=>{a.current=i*l.scrollSnapList().length;},[i]),s=useCallback((l,c)=>{let u=l.internalEngine(),m=l.scrollProgress(),d=l.slidesInView(),S=c==="scroll";l.scrollSnapList().forEach((f,y)=>{let x=f-m;u.slideRegistry[y].forEach(k=>{if(S&&!d.includes(k))return;u.options.loop&&u.slideLooper.loopPoints.forEach(D=>{let U=D.target();if(k===D.index&&U!==0){let V=Math.sign(U);V===-1&&(x=f-(1+m)),V===1&&(x=f+(1-m));}});let pe=x*(-1*a.current)*100,M=t.current[k];M&&(M.style.transform=`translateX(${pe}%)`);});});},[]);return useEffect(()=>{if(!(!e||!o))return n(e),r(e),s(e),e.on("reInit",n).on("reInit",r).on("reInit",s).on("scroll",s),()=>{e.off("reInit",n).off("reInit",r).off("reInit",s).off("scroll",s);}},[e,s]),null}function ne(e){let[o,a]=useState(0),t=useCallback(i=>{let n=Math.max(0,Math.min(1,i.scrollProgress()));a(n*100);},[]);return useEffect(()=>{if(e)return t(e),e.on("reInit",t),e.on("scroll",t),()=>{e.off("reInit",t).off("scroll",t);}},[e,t]),{value:o}}var Ke=50,ie=e=>{useEffect(()=>{if(!e)return;let o=0,a=i=>{Math.abs(i.deltaX)<=Math.abs(i.deltaY)||(i.preventDefault(),o+=i.deltaX,!(Math.abs(o)<Ke)&&(o>0?e.scrollNext():e.scrollPrev(),o=0));},t=e.rootNode();if(t)return t.addEventListener("wheel",a,{passive:!1}),()=>t.removeEventListener("wheel",a)},[e]);};function ce(e,o){let[a,t]=Ge({containScroll:"keepSnaps",dragFree:!0,...o}),[i,n]=useState(0),r=useCallback(l=>{!e||!t||e.scrollTo(l);},[e,t]),s=useCallback(()=>{!e||!t||(n(e.selectedScrollSnap()),t.scrollTo(e.selectedScrollSnap()));},[e,t,n]);return useEffect(()=>{if(e)return s(),e.on("select",s),e.on("reInit",s),()=>{e.off("select",s),e.off("reInit",s);}},[e,s]),{onClickThumb:r,thumbsRef:a,thumbsApi:t,selectedIndex:i}}var kt=(e,o)=>{let[a,t]=Ge(e,o),{disablePrev:i,disableNext:n,onClickPrev:r,onClickNext:s}=A(t);ie(t);let l=o?.map(y=>y.name),c=se(t),u=oe(t),m=re(t),d=ne(t),S=ce(t,e?.thumbs);le(t,e?.parallax);let f=useMemo(()=>l?.includes("autoplay")?{onClickPrev:()=>u.onClickAutoplay(r),onClickNext:()=>u.onClickAutoplay(s)}:l?.includes("autoScroll")?{onClickPrev:()=>m.onClickAutoplay(r),onClickNext:()=>m.onClickAutoplay(s)}:{onClickPrev:r,onClickNext:s},[m,u,s,r,l]);return {options:{...e,...t?.internalEngine().options},pluginNames:l,mainRef:a,mainApi:t,arrows:{disablePrev:i,disableNext:n,onClickPrev:f.onClickPrev,onClickNext:f.onClickNext},dots:c,thumbs:S,progress:d,autoplay:u,autoScroll:m}};
14
14
 
15
15
  export { Qe as a, p as b, w as c, T as d, R as e, po as f, vo as g, _o as h, Bo as i, C as j, Oo as k, Uo as l, Oe as m, Jo as n, kt as o };
16
- //# sourceMappingURL=chunk-RJDUZM6J.js.map
16
+ //# sourceMappingURL=chunk-H7OG32Y5.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-W5SQJCRV.js';
2
+ import { a as a$1 } from './chunk-35HI7WFI.js';
3
3
  import { a as a$3 } from './chunk-4F2NKGF6.js';
4
- import { a } from './chunk-ORYUMPWA.js';
4
+ import { a } from './chunk-5ZMA4N4W.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-2XNZB6R7.js.map
19
+ //# sourceMappingURL=chunk-IT6HMYIE.js.map
@@ -1,8 +1,8 @@
1
- import { a as a$1 } from './chunk-ORYUMPWA.js';
1
+ import { a as a$1 } from './chunk-5ZMA4N4W.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-ABUPUFBM.js.map
8
+ //# sourceMappingURL=chunk-JKAMT5TC.js.map
@@ -1,5 +1,5 @@
1
1
  import { a as a$2 } from './chunk-5J35UAV6.js';
2
- import { a as a$3 } from './chunk-ORYUMPWA.js';
2
+ import { a as a$3 } from './chunk-5ZMA4N4W.js';
3
3
  import { a as a$1 } from './chunk-IAOMC4C4.js';
4
4
  import { a } from './chunk-SV2GIIMQ.js';
5
5
  import { memo } from 'react';
@@ -9,4 +9,4 @@ import { jsx } from 'react/jsx-runtime';
9
9
  var u=({label:t="Copiar conte\xFAdo",message:c="Conte\xFAdo copiado!",toCopy:m,iconProps:e})=>{let{copy:s}=a(),{success:a$4}=a$1();return jsx(a$2,{title:t,arrow:!0,children:jsx(l,{"aria-label":t,size:"small",onClick:()=>{s(m),a$4(c);},children:jsx(a$3,{icon:"COPY_CONTENT",color:"text.secondary",width:16,...e})})})},P=memo(u);
10
10
 
11
11
  export { P as a };
12
- //# sourceMappingURL=chunk-QJOC2VQK.js.map
12
+ //# sourceMappingURL=chunk-KDSM2AIT.js.map
@@ -1,4 +1,4 @@
1
- import { a as a$1 } from './chunk-ORYUMPWA.js';
1
+ import { a as a$1 } from './chunk-5ZMA4N4W.js';
2
2
  import { a } from './chunk-LQRRMVFN.js';
3
3
  import { useState } from 'react';
4
4
  import A from '@mui/material/Box';
@@ -14,4 +14,4 @@ import { jsxs, Fragment, jsx } from 'react/jsx-runtime';
14
14
  var c=styled(ChromePicker)({fontFamily:"inherit",boxShadow:"none"});var O=({value:C,tabIndex:f,onChangeColor:e,...r})=>{let[P,p]=useState(),l=P??C??"",n=l?"#"+l.replaceAll("#",""):"",t=a(),g=()=>{t.onClose(),e(n);},x=i=>{let a=i.target.value.replace(/[^0-9a-fA-F#]/g,"").replaceAll("#","");p(a),e(a?"#"+a:"");},I=()=>{p(""),e("");};return jsxs(Fragment,{children:[jsx(E,{...r,value:n,onChange:x,InputProps:{...r.InputProps,sx:{[`& .${inputBaseClasses.input}`]:{paddingLeft:"0 !important",paddingRight:"0 !important"},...r.InputProps?.sx},startAdornment:jsx(u,{position:"start",sx:{mr:.5},children:jsx(d,{"aria-label":"Escolher cor",onClick:t.onOpen,sx:{p:.5},children:jsx(A,{sx:{minWidth:23,minHeight:23,backgroundColor:n,borderRadius:.5,boxShadow:"0 0 0 2px rgba(0, 0, 0, 0.0375)"}})})}),endAdornment:jsxs(u,{position:"end",sx:{ml:0,gap:.5},children:[!!n&&jsx(d,{"aria-label":"Remover cor",size:"small",onClick:I,sx:{p:.5},children:jsx(a$1,{icon:"CLOSE_MARK_BUTTON",width:16})}),r.InputProps?.endAdornment]})},inputProps:{...r.inputProps,maxLength:7,tabIndex:f}}),jsx(y,{className:"popover-color-picker",open:!!t.open,anchorEl:t.open,onClose:g,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"center",horizontal:"center"},slotProps:{paper:{style:{borderRadius:8}}},children:jsx(c,{color:n,onChange:({hex:i})=>p(i),styles:{default:{picker:{fontFamily:"inherit",boxShadow:"none"}}},disableAlpha:!0})})]})},W=O;
15
15
 
16
16
  export { W as a };
17
- //# sourceMappingURL=chunk-GYQF73N2.js.map
17
+ //# sourceMappingURL=chunk-L6CMWQCC.js.map
@@ -1,8 +1,8 @@
1
- import { a } from './chunk-ORYUMPWA.js';
1
+ import { a } from './chunk-5ZMA4N4W.js';
2
2
  import c from '@mui/lab/LoadingButton';
3
3
  import { jsx } from 'react/jsx-runtime';
4
4
 
5
5
  var i=({actionType:n,children:E,...r})=>{let A={SAVE:"SAVE_MARK",NEW:"SIMPLE_ADD",CREATE:"SAVE_MARK",SETTINGS:"SETTINGS",EDIT:"SAVE_MARK",DELETE:"DELETE_MARK_BUTTON_02",VIEW:"SHARE_BUTTON_MARK",CANCEL:"CANCEL_CIRCLE",CONFIRM:"SIMPLE_CHECK"}[n];return jsx(c,{startIcon:jsx(a,{icon:A}),variant:"contained",color:"primary",...r,children:E})},C=i;
6
6
 
7
7
  export { C as a };
8
- //# sourceMappingURL=chunk-44KLQXRW.js.map
8
+ //# sourceMappingURL=chunk-MY4CZ5PC.js.map
@@ -1,7 +1,7 @@
1
- import { a as a$2, b, c } from './chunk-BGS7C2JO.js';
1
+ import { a as a$2, b, c } from './chunk-EICUAMNN.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-K2PVYOH6.js';
4
+ import { a as a$3 } from './chunk-YU5R3EXT.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-5GKALBQA.js.map
16
+ //# sourceMappingURL=chunk-OWJ6XY6F.js.map
@@ -1,8 +1,8 @@
1
1
  import { a } from './chunk-5J35UAV6.js';
2
- import { a as a$1 } from './chunk-ORYUMPWA.js';
2
+ import { a as a$1 } from './chunk-5ZMA4N4W.js';
3
3
  import { jsx } from 'react/jsx-runtime';
4
4
 
5
5
  var f=({text:i,icon:l="INFO_CIRCLE",width:p,color:c="text.secondary",...e})=>jsx(a,{title:i,...e,children:jsx(a$1,{icon:l,width:p,color:c})}),m=f;
6
6
 
7
7
  export { m as a };
8
- //# sourceMappingURL=chunk-YGLJRGMO.js.map
8
+ //# sourceMappingURL=chunk-PMKM67BB.js.map
@@ -1,8 +1,8 @@
1
- import { a } from './chunk-K2PVYOH6.js';
1
+ import { a } from './chunk-YU5R3EXT.js';
2
2
  import { useFormContext, Controller } from 'react-hook-form';
3
3
  import { jsx } from 'react/jsx-runtime';
4
4
 
5
5
  var A=({name:t,helperText:u,rules:m,onSelectOption:r,InputLabelProps:p,onBlur:n,...c})=>{let{control:i}=useFormContext(),C=o=>e=>{r&&r(e,o.value),o.onChange(e);};return jsx(Controller,{name:t,control:i,rules:m,render:({field:{ref:o,...e},fieldState:{error:l}})=>{let g=d=>{e.onBlur(),n&&n(d);};return jsx(a,{"data-intercom-target":t,...e,...c,inputRef:o,onChange:C(e),onBlur:g,error:!!l,helperText:l?.message||u,InputLabelProps:p})}})},B=A;
6
6
 
7
7
  export { B as a };
8
- //# sourceMappingURL=chunk-Q5PV6YKW.js.map
8
+ //# sourceMappingURL=chunk-TOZ66UM4.js.map
@@ -1,4 +1,4 @@
1
- import { a } from './chunk-ORYUMPWA.js';
1
+ import { a } from './chunk-5ZMA4N4W.js';
2
2
  import { memo, forwardRef, useMemo } from 'react';
3
3
  import w from '@mui/material/Box';
4
4
  import E from '@mui/material/CircularProgress';
@@ -8,4 +8,4 @@ import { jsx } from 'react/jsx-runtime';
8
8
  var c=memo(forwardRef(({icon:o,label:e,loading:r=!1,disabled:s=!1,iconProps:m={},children:n,color:a$1="primary.main",boxProps:B={},...l},p)=>{if(!o&&!n)throw new Error("IconButton: icon or children is required");let i=useMemo(()=>o?jsx(a,{icon:o,...m}):n,[o,n,m]),I=useMemo(()=>r?jsx(E,{size:20,color:"inherit"}):i,[r,i]);return jsx(w,{color:a$1,...B,children:jsx(R,{ref:p,color:"inherit","aria-label":e,title:e,disabled:r||s,...l,children:I})})}));c.displayName="IconButton";var L=c;
9
9
 
10
10
  export { L as a };
11
- //# sourceMappingURL=chunk-VDATDEFK.js.map
11
+ //# sourceMappingURL=chunk-TS7QZPD6.js.map
@@ -1,4 +1,4 @@
1
- import { a } from './chunk-ORYUMPWA.js';
1
+ import { a } from './chunk-5ZMA4N4W.js';
2
2
  import M from '@mui/material/Dialog';
3
3
  import k from '@mui/material/DialogTitle';
4
4
  import B from '@mui/material/IconButton';
@@ -11,4 +11,4 @@ import { jsxs, jsx } from 'react/jsx-runtime';
11
11
  var l=styled(P)(({theme:o})=>({flexDirection:"row",alignItems:"center",justifyContent:"space-between",borderBottom:`1px solid ${o.palette.divider}`,button:{marginRight:24}})),p=styled(D)({padding:24}),c=styled(x)(({theme:o})=>({borderTop:`1px solid ${o.palette.divider}`,backgroundColor:o.palette.background.paper}));var h=({children:o,actionsProps:i})=>jsx(c,{"data-testid":"modal-actions",...i,children:o}),m=h;var O=({actions:o,actionsProps:i,children:A,dialogContentProps:b,dialogTitle:r,dialogTitleProps:g,onClose:e,id:a$1,...C})=>{let u=a$1||"actions",s="caixa de di\xE1logo";return jsxs(M,{"aria-label":r?`${s}: ${r}`:s,id:a$1,scroll:"body",...C,onClose:e,children:[jsxs(l,{children:[r&&jsx(k,{variant:"subtitle1",...g,children:r}),jsx(B,{onClick:e,"aria-label":"Fechar caixa de di\xE1logo","data-testid":"close-modal-btn",children:jsx(a,{icon:"CLOSE_MARK_BUTTON"})})]}),jsx(p,{"data-testid":"modal-content",...b,children:A}),o&&jsx(m,{actionsProps:{...i,id:u},children:o})]})},K=O;
12
12
 
13
13
  export { K as a };
14
- //# sourceMappingURL=chunk-KQM24IXA.js.map
14
+ //# sourceMappingURL=chunk-TSEVZMIE.js.map
@@ -1,4 +1,4 @@
1
- import { a } from './chunk-ORYUMPWA.js';
1
+ import { a } from './chunk-5ZMA4N4W.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-HHN35KIG.js.map
14
+ //# sourceMappingURL=chunk-VELCTMU2.js.map
@@ -1,4 +1,4 @@
1
- import { a } from './chunk-ORYUMPWA.js';
1
+ import { a } from './chunk-5ZMA4N4W.js';
2
2
  import { memo } from 'react';
3
3
  import d from '@mui/material/Button';
4
4
  import o from '@mui/material/Stack';
@@ -9,4 +9,4 @@ import { jsxs, jsx } from 'react/jsx-runtime';
9
9
  var R=r=>{switch(r){case"success":return jsx(a,{"data-testid":"icon-SUCCESS",icon:"CHECK_CIRCLE",width:120,height:120});case"error":return jsx(a,{"data-testid":"icon-ERROR",icon:"CANCEL_CIRCLE",width:120,height:120});case"info":return jsx(a,{"data-testid":"icon-INFO",icon:"INFO_CIRCLE",width:120,height:120});case"empty":default:return jsx(a,{"data-testid":"icon-DEFAULT",icon:"PACKAGE",width:120,height:120})}},L=(r,e)=>{switch(r){case"success":return e.palette.success.main;case"error":return e.palette.error.main;case"info":return e.palette.primary.main;case"empty":default:return e.palette.text.disabled}},b=({icon:r,title:e,description:i,primaryAction:p,secondaryAction:l,primaryActionLabel:g,secondaryActionLabel:f,onPrimaryAction:n,onSecondaryAction:s,primaryActionProps:C,secondaryActionProps:y,variant:m="default",iconSize:h=120,maxWidth:x=768,sx:S,...w})=>{let E=useTheme(),T=typeof e=="string"?"h3":"div",v=typeof i=="string"?"p":"div",I=L(m,E);return jsxs(o,{alignItems:"center",justifyContent:"center",spacing:3,sx:{height:"100%",textAlign:"center",py:4,px:2,...S},...w,children:[jsx(o,{sx:{color:I,"& svg":{width:h,height:h}},children:r||R(m)}),jsxs(o,{spacing:1,sx:{maxWidth:x},children:[e&&jsx(u,{component:T,variant:"subtitle1",fontWeight:"600",color:"text.primary",sx:{mb:.5},children:e}),i&&jsx(u,{component:v,variant:"body1",color:"text.secondary",sx:{lineHeight:1.6},children:i})]}),(p||l||n||s)&&jsxs(o,{direction:"row",spacing:2,flexWrap:"wrap",justifyContent:"center",children:[l||s&&jsx(d,{variant:"outlined",color:"inherit",onClick:s,sx:{minWidth:120},...y,children:f||"Cancelar"}),p||n&&jsx(d,{variant:"contained",color:"primary",onClick:n,sx:{minWidth:120},...C,children:g||"Confirmar"})]})]})},_=memo(b);
10
10
 
11
11
  export { _ as a };
12
- //# sourceMappingURL=chunk-TYX6CIOM.js.map
12
+ //# sourceMappingURL=chunk-VPZL6AIF.js.map
@@ -1,5 +1,5 @@
1
1
  import { a as a$2 } from './chunk-CO2KQFUN.js';
2
- import { a as a$1 } from './chunk-ORYUMPWA.js';
2
+ import { a as a$1 } from './chunk-5ZMA4N4W.js';
3
3
  import { a } from './chunk-LQRRMVFN.js';
4
4
  import M from '@mui/material/IconButton';
5
5
  import s from '@mui/material/Stack';
@@ -9,4 +9,4 @@ import { jsxs, Fragment, jsx } from 'react/jsx-runtime';
9
9
  var d=({actions:i,disablePortal:m,actionLabel:r="A\xE7\xF5es",placement:l,arrow:u=!0,...a$3})=>{let{open:t,onClose:c,onOpen:f}=a();return jsxs(Fragment,{children:[jsx(P,{title:r,placement:l,arrow:u,children:jsx(M,{...a$3,"aria-label":r,color:t?"inherit":"default",onClick:f,children:jsx(a$1,{icon:"MORE_BOLD"})})}),jsx(a$2,{open:t,onClose:c,arrow:"right-top",disablePortal:m,children:jsx(s,{component:"ul",gap:.5,minWidth:160,children:i})})]})},w=d;
10
10
 
11
11
  export { w as a };
12
- //# sourceMappingURL=chunk-7OQ2INNY.js.map
12
+ //# sourceMappingURL=chunk-YJYS2LQQ.js.map
@@ -1,12 +1,12 @@
1
- import { a as a$9 } from './chunk-W5SQJCRV.js';
1
+ import { a as a$9 } from './chunk-35HI7WFI.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-3MKH4GA7.js';
4
+ import { c, a as a$7, b as b$2 } from './chunk-FC4OALKP.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
- import { a } from './chunk-ORYUMPWA.js';
8
- import { a as a$8 } from './chunk-F65ZXAGV.js';
9
7
  import { a as a$3 } from './chunk-I4PPSW36.js';
8
+ import { a } from './chunk-5ZMA4N4W.js';
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';
12
12
  import { memo, forwardRef, useState, useRef, useEffect, useMemo, Children, isValidElement, cloneElement, useCallback, Fragment as Fragment$1 } from 'react';
@@ -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-BVWXGGJY.js.map
27
+ //# sourceMappingURL=chunk-YKCEUH6C.js.map
@@ -1,4 +1,4 @@
1
- import { a } from './chunk-ORYUMPWA.js';
1
+ import { a } from './chunk-5ZMA4N4W.js';
2
2
  import { memo, createContext, forwardRef, useContext, useMemo, useCallback, useRef, useEffect } from 'react';
3
3
  import $t, { autocompleteClasses } from '@mui/material/Autocomplete';
4
4
  import gt from '@mui/material/CircularProgress';
@@ -15,4 +15,4 @@ import Nt from '@mui/material/Popper';
15
15
  var It=t=>{if(!(!t||Array.isArray(t))){if(t.startAdornment)return t.startAdornment;if(t.icon)return jsx(a,{icon:t.icon})}},$=memo(({params:t,name:e,placeholder:i,error:s,helperText:u,label:l,required:A,multiple:a,formattedValue:p,loading:c,tabIndex:m,InputLabelProps:y,inputRef:g})=>jsx(Pt,{...t,name:e,placeholder:i,fullWidth:!0,error:!!s,helperText:u,label:l,required:A,inputRef:g,InputProps:{...t.InputProps,...!a&&{startAdornment:It(p)},endAdornment:jsxs(Fragment,{children:[c?jsx(gt,{color:"primary",size:20}):null,t.InputProps.endAdornment]})},inputProps:{...t.inputProps,name:e,tabIndex:m},InputLabelProps:y}));$.displayName="AutocompleteInput";var F=$;var w=8,U=memo(t=>{let{data:e,index:i,style:s}=t,u=e[i],l={...s,top:s.top+w,paddingTop:8};if(Object.prototype.hasOwnProperty.call(u,"group")){let y=u;return jsx(ht,{component:"div",style:l,children:y.group},`list-box-item-group-${y.group}`)}let[A,a$1]=u,{showValueInLabel:p,key:c,...m}=A;return jsx(q,{component:"li",...m,noWrap:!0,style:l,children:jsxs(St,{component:"div",direction:"row",flex:1,gap:1,justifyContent:"start",children:[a$1.icon&&jsx(a,{icon:a$1.icon}),a$1.label,p&&jsxs(q,{variant:"inherit",color:"grey.400",children:["(",a$1.value,")"]})]})},`list-box-item-${c}`)});U.displayName="ListboxRow";var W=U;var Tt=createContext(void 0),h=Tt;var Y=createContext({}),Z=forwardRef((t,e)=>{let i=useContext(Y);return jsx("div",{ref:e,...t,...i})});Z.displayName="OuterElementType";var Ht=t=>{let e=useRef(null);return useEffect(()=>{e.current!=null&&e.current.resetAfterIndex(0,!0);},[t]),e},kt=forwardRef(function(e,i){let{children:s,...u}=e,l=useMemo(()=>{let r=[];return s.forEach(b=>{r.push(b),Object.prototype.hasOwnProperty.call(b,"children")&&Array.isArray(b.children)&&r.push(...b.children);}),r},[s]),A=useTheme(),a=wt(A.breakpoints.up("sm")),p=l.length,c=a?36:48,m=useCallback(r=>Object.prototype.hasOwnProperty.call(r,"group")?48:c,[c]),y=useMemo(()=>p>8?8*c:l.map(m).reduce((r,b)=>r+b,0),[p,c,l,m]),g=Ht(p),P=useContext(h),d=useRef(!1);useEffect(()=>{d.current=!1;},[p]);let R=useCallback(({visibleStopIndex:r})=>{P&&!d.current&&r>=p-3&&(d.current=!0,P());},[P,p]);return jsx("div",{ref:i,children:jsx(Y.Provider,{value:u,children:jsx(VariableSizeList,{itemData:l,height:y+2*w,width:"100%",ref:g,outerElementType:Z,innerElementType:"ul",itemSize:r=>m(l[r]),overscanCount:5,itemCount:p,onItemsRendered:R,children:W})})})}),tt=kt;var et=styled(Nt)({[`& .${autocompleteClasses.listbox}`]:{boxSizing:"border-box","& ul":{padding:0,margin:0}}});var k=t=>t&&typeof t=="object"?t.value.toString():t.toString(),Ft=t=>t,qt=(t,e)=>k(t)===k(e),Bt=(t,e)=>{let i=e.inputValue.toLocaleUpperCase();return t.filter(s=>`${s.value} ${s.label}`.toLocaleUpperCase().includes(i))},nt=memo(forwardRef(({name:t,label:e,value:i,options:s=[],loading:u,noOptionsText:l="Nenhum resultado encontrado.",loadingText:A="Carregando op\xE7\xF5es...",error:a,helperText:p,placeholder:c,onChange:m,groupBy:y,showValueInLabel:g,disabled:P,multiple:d,required:R,renderOption:r,tabIndex:b,onInputChange:C,onSearch:L,onBlur:T,onScrollEnd:it,InputLabelProps:G,inputRef:N,filterOptions:st,...pt},ut)=>{let z=useRef(null),D=useRef(null),v=useMemo(()=>{if(d)return (Array.isArray(i)?i:[]).reduce((x,yt)=>{let V=s.find(At=>At.value.toString()===yt.toString());return V?[...x,V]:[...x]},[]);let n=s.find(f=>f.value.toString()===i?.toString())||null,o=D.current;return !n&&o?.value.toString()===i?.toString()||o&&n&&o.value===n.value&&o.label===n.label?o:(D.current=n,n)},[s,i,d]),lt=st??(z.current==="reset"?void 0:Bt),mt=useCallback((n,o,f)=>{if(z.current=f,C&&C(n,o,f),f==="input"){L&&L(o);return}f==="reset"&&L&&L(void 0),f==="clear"&&L&&L("");},[C,L]),at=useCallback((n,o)=>{if(!o){m(d?[]:null);return}if(Array.isArray(o)){m(o.map(k));return}m(typeof o=="string"?o.toString():o.value.toString());},[m,d]),ct=useCallback(n=>{T&&T(n);},[T]),dt=useCallback((n,o,f,x)=>r?r(n,o,f,x):[{...n,showValueInLabel:g},o],[r,g]),ft=useMemo(()=>r?void 0:tt,[r]),bt=useCallback(n=>jsx(F,{params:n,name:t,placeholder:c,error:a,helperText:p,label:e,required:R,multiple:d,formattedValue:v,loading:u,tabIndex:b,InputLabelProps:G,inputRef:N}),[t,c,a,p,e,R,d,v,u,b,G,N]);return jsx(h.Provider,{value:it,children:jsx($t,{ref:ut,value:v,onInputChange:mt,options:s,loading:u,noOptionsText:l,loadingText:A,disabled:P,disableListWrap:!0,PopperComponent:et,ListboxComponent:ft,filterOptions:lt,isOptionEqualToValue:qt,onChange:at,onBlur:ct,renderOption:dt,renderGroup:Ft,groupBy:y,multiple:d,renderInput:bt,...pt})})}));nt.displayName="Autocomplete";var Me=nt;
16
16
 
17
17
  export { Me as a };
18
- //# sourceMappingURL=chunk-K2PVYOH6.js.map
18
+ //# sourceMappingURL=chunk-YU5R3EXT.js.map
@@ -1,4 +1,4 @@
1
- export { a as Accordion, c as AccordionDetails, b as AccordionSummary } from '../../chunk-BGS7C2JO.js';
2
- import '../../chunk-ORYUMPWA.js';
1
+ export { a as Accordion, c as AccordionDetails, b as AccordionSummary } from '../../chunk-EICUAMNN.js';
2
+ import '../../chunk-5ZMA4N4W.js';
3
3
  import '../../chunk-Z6YXPKWP.js';
4
4
  //# sourceMappingURL=index.js.map
@@ -1,4 +1,4 @@
1
- export { a as default } from '../../chunk-44KLQXRW.js';
2
- import '../../chunk-ORYUMPWA.js';
1
+ export { a as default } from '../../chunk-MY4CZ5PC.js';
2
+ import '../../chunk-5ZMA4N4W.js';
3
3
  import '../../chunk-Z6YXPKWP.js';
4
4
  //# sourceMappingURL=index.js.map
@@ -1,35 +1,35 @@
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$b } from '../../../chunk-5GKALBQA.js';
3
- import { i, h as h$2 } from '../../../chunk-BBVOF2BY.js';
4
- import { a as a$c, b as b$1, c as c$3 } from '../../../chunk-BGS7C2JO.js';
5
2
  import { a as a$2 } from '../../../chunk-Q2R3X4EB.js';
3
+ import { a as a$b } from '../../../chunk-OWJ6XY6F.js';
4
+ 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';
6
6
  import '../../../chunk-DRGARBKB.js';
7
7
  import '../../../chunk-55XSPNSX.js';
8
- import { a as a$5 } from '../../../chunk-7OQ2INNY.js';
8
+ import { a as a$5 } from '../../../chunk-YJYS2LQQ.js';
9
9
  import { a as a$4 } from '../../../chunk-PUMCHXCD.js';
10
- import { a as a$6 } from '../../../chunk-XQELM32G.js';
11
- import { a as a$a } from '../../../chunk-NS4YQBCL.js';
10
+ import { a as a$6 } from '../../../chunk-H762KDPN.js';
11
+ import { a as a$a } from '../../../chunk-CZ5Y53WA.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 { a as a$7 } from '../../../chunk-MTJT2RGA.js';
15
- import { d as d$1 } from '../../../chunk-BVWXGGJY.js';
16
- import '../../../chunk-W5SQJCRV.js';
14
+ import { d as d$1 } from '../../../chunk-YKCEUH6C.js';
15
+ import '../../../chunk-35HI7WFI.js';
17
16
  import '../../../chunk-4F2NKGF6.js';
17
+ import { a as a$7 } from '../../../chunk-MTJT2RGA.js';
18
18
  import '../../../chunk-PRWQQJDL.js';
19
- import '../../../chunk-3MKH4GA7.js';
20
- import '../../../chunk-TYX6CIOM.js';
19
+ import '../../../chunk-FC4OALKP.js';
20
+ import '../../../chunk-VPZL6AIF.js';
21
21
  import '../../../chunk-6U5LS7MP.js';
22
22
  import '../../../chunk-JUAHRU5E.js';
23
23
  import '../../../chunk-NIQW2J3M.js';
24
24
  import '../../../chunk-XUDTPZHF.js';
25
25
  import '../../../chunk-UVPQR2Q2.js';
26
26
  import '../../../chunk-RBTYTONM.js';
27
- import '../../../chunk-K2PVYOH6.js';
27
+ import '../../../chunk-I4PPSW36.js';
28
+ import '../../../chunk-YU5R3EXT.js';
28
29
  import { a } from '../../../chunk-CO2KQFUN.js';
29
- import { a as a$3 } from '../../../chunk-ORYUMPWA.js';
30
+ import { a as a$3 } from '../../../chunk-5ZMA4N4W.js';
30
31
  import '../../../chunk-Z6YXPKWP.js';
31
32
  import '../../../chunk-F65ZXAGV.js';
32
- import '../../../chunk-I4PPSW36.js';
33
33
  import { a as a$9 } from '../../../chunk-E3R7W7GK.js';
34
34
  import { a as a$1 } from '../../../chunk-BBLPAVHA.js';
35
35
  import '../../../chunk-UWTX4JMW.js';