@carto/meridian-ds 1.4.2 → 1.4.3-alpha-codemirror.1

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 (502) hide show
  1. package/CHANGELOG.md +15 -0
  2. package/dist/Alert-Bcn_9-oO.cjs +4 -0
  3. package/dist/{Alert-Cn0nq6aq.js → Alert-mpNEqtBu.js} +36 -33
  4. package/dist/ArrowDown-BD0WmQR3.cjs +1 -0
  5. package/dist/ArrowDown-CMhYkZ2p.js +31 -0
  6. package/dist/{MenuItem-vbfSlKyV.js → MenuItem-Cd34y6F3.js} +41 -15
  7. package/dist/MenuItem-Dbss-WG1.cjs +1 -0
  8. package/dist/OpenDiagonallyRight-BkCaUpcr.js +56 -0
  9. package/dist/OpenDiagonallyRight-DqSU7b6o.cjs +1 -0
  10. package/dist/SwatchSquare-C34ayL4L.cjs +1 -0
  11. package/dist/SwatchSquare-CVpwEFFV.js +48 -0
  12. package/dist/TablePaginationActions-BfAn9gSh.cjs +9 -0
  13. package/dist/{TablePaginationActions-EC4ynZRa.js → TablePaginationActions-Cj_BbjKR.js} +364 -333
  14. package/dist/components/index.cjs +2 -1
  15. package/dist/components/index.js +2522 -1352
  16. package/dist/custom-icons/index.cjs +1 -1
  17. package/dist/custom-icons/index.js +5476 -4340
  18. package/dist/theme/index.cjs +1 -1
  19. package/dist/theme/index.js +4 -4
  20. package/dist/types/components/atoms/Button.d.ts.map +1 -1
  21. package/dist/types/components/atoms/IconButton.d.ts.map +1 -1
  22. package/dist/types/components/atoms/SelectField.d.ts.map +1 -1
  23. package/dist/types/components/atoms/Typography.d.ts.map +1 -1
  24. package/dist/types/components/molecules/Alert.d.ts.map +1 -1
  25. package/dist/types/components/molecules/Copy/CopiableComponent.d.ts +20 -0
  26. package/dist/types/components/molecules/Copy/CopiableComponent.d.ts.map +1 -0
  27. package/dist/types/components/molecules/Copy/copyString.d.ts +3 -0
  28. package/dist/types/components/molecules/Copy/copyString.d.ts.map +1 -0
  29. package/dist/types/components/molecules/Copy/index.d.ts +5 -0
  30. package/dist/types/components/molecules/Copy/index.d.ts.map +1 -0
  31. package/dist/types/components/molecules/Copy/useCopyValue.d.ts +5 -0
  32. package/dist/types/components/molecules/Copy/useCopyValue.d.ts.map +1 -0
  33. package/dist/types/components/molecules/Menu/Menu.d.ts +2 -1
  34. package/dist/types/components/molecules/Menu/Menu.d.ts.map +1 -1
  35. package/dist/types/components/molecules/Menu/MenuItem.d.ts +2 -1
  36. package/dist/types/components/molecules/Menu/MenuItem.d.ts.map +1 -1
  37. package/dist/types/components/molecules/Menu/MenuItemFilter.d.ts +11 -0
  38. package/dist/types/components/molecules/Menu/MenuItemFilter.d.ts.map +1 -0
  39. package/dist/types/components/molecules/Menu/MenuList.d.ts +2 -1
  40. package/dist/types/components/molecules/Menu/MenuList.d.ts.map +1 -1
  41. package/dist/types/components/molecules/Menu/index.d.ts +2 -2
  42. package/dist/types/components/molecules/Menu/index.d.ts.map +1 -1
  43. package/dist/types/components/molecules/index.d.ts +2 -0
  44. package/dist/types/components/molecules/index.d.ts.map +1 -1
  45. package/dist/types/components/organisms/CodeArea/CodeAreaDialog/CodeAreaDialog.d.ts +16 -0
  46. package/dist/types/components/organisms/CodeArea/CodeAreaDialog/CodeAreaDialog.d.ts.map +1 -0
  47. package/dist/types/components/organisms/CodeArea/CodeAreaDialog/CodeAreaDialogConfirmation.d.ts +16 -0
  48. package/dist/types/components/organisms/CodeArea/CodeAreaDialog/CodeAreaDialogConfirmation.d.ts.map +1 -0
  49. package/dist/types/components/organisms/CodeArea/CodeAreaDialog/CodeAreaDialogContent.d.ts +10 -0
  50. package/dist/types/components/organisms/CodeArea/CodeAreaDialog/CodeAreaDialogContent.d.ts.map +1 -0
  51. package/dist/types/components/organisms/CodeArea/CodeAreaDialog/CodeAreaDialogError.d.ts +8 -0
  52. package/dist/types/components/organisms/CodeArea/CodeAreaDialog/CodeAreaDialogError.d.ts.map +1 -0
  53. package/dist/types/components/organisms/CodeArea/CodeAreaField.d.ts +4 -0
  54. package/dist/types/components/organisms/CodeArea/CodeAreaField.d.ts.map +1 -0
  55. package/dist/types/components/organisms/CodeArea/CodeAreaFooter.d.ts +13 -0
  56. package/dist/types/components/organisms/CodeArea/CodeAreaFooter.d.ts.map +1 -0
  57. package/dist/types/components/organisms/CodeArea/CodeAreaHeader.d.ts +9 -0
  58. package/dist/types/components/organisms/CodeArea/CodeAreaHeader.d.ts.map +1 -0
  59. package/dist/types/components/organisms/CodeArea/CodeAreaInput.d.ts +27 -0
  60. package/dist/types/components/organisms/CodeArea/CodeAreaInput.d.ts.map +1 -0
  61. package/dist/types/components/organisms/CodeArea/CodeAreaTheme.d.ts +7 -0
  62. package/dist/types/components/organisms/CodeArea/CodeAreaTheme.d.ts.map +1 -0
  63. package/dist/types/components/organisms/CodeArea/index.d.ts +4 -0
  64. package/dist/types/components/organisms/CodeArea/index.d.ts.map +1 -0
  65. package/dist/types/components/organisms/CodeArea/types.d.ts +39 -0
  66. package/dist/types/components/organisms/CodeArea/types.d.ts.map +1 -0
  67. package/dist/types/components/organisms/CodeArea/utils.d.ts +5 -0
  68. package/dist/types/components/organisms/CodeArea/utils.d.ts.map +1 -0
  69. package/dist/types/components/organisms/DatePickers/DatePicker.d.ts +1 -1
  70. package/dist/types/components/organisms/DatePickers/DatePicker.d.ts.map +1 -1
  71. package/dist/types/components/organisms/DatePickers/DateRangePicker.d.ts +1 -1
  72. package/dist/types/components/organisms/DatePickers/DateRangePicker.d.ts.map +1 -1
  73. package/dist/types/components/organisms/DatePickers/DateTimePicker.d.ts +1 -1
  74. package/dist/types/components/organisms/DatePickers/DateTimePicker.d.ts.map +1 -1
  75. package/dist/types/components/organisms/DatePickers/PickersDay.d.ts.map +1 -1
  76. package/dist/types/components/organisms/DatePickers/TimePicker.d.ts +1 -1
  77. package/dist/types/components/organisms/DatePickers/TimePicker.d.ts.map +1 -1
  78. package/dist/types/components/organisms/DatePickers/types.d.ts +2 -0
  79. package/dist/types/components/organisms/DatePickers/types.d.ts.map +1 -1
  80. package/dist/types/components/organisms/Dialog/Dialog.d.ts +1 -1
  81. package/dist/types/components/organisms/Dialog/Dialog.d.ts.map +1 -1
  82. package/dist/types/components/organisms/Dialog/DialogConfirmation.d.ts.map +1 -1
  83. package/dist/types/components/organisms/Dialog/DialogContent.d.ts.map +1 -1
  84. package/dist/types/components/organisms/Dialog/DialogFooter.d.ts.map +1 -1
  85. package/dist/types/components/organisms/Dialog/DialogHeader.d.ts.map +1 -1
  86. package/dist/types/components/organisms/index.d.ts +2 -0
  87. package/dist/types/components/organisms/index.d.ts.map +1 -1
  88. package/dist/types/custom-icons/AccessIn.d.ts +3 -3
  89. package/dist/types/custom-icons/AccessIn.d.ts.map +1 -1
  90. package/dist/types/custom-icons/AddApp.d.ts +3 -3
  91. package/dist/types/custom-icons/AddApp.d.ts.map +1 -1
  92. package/dist/types/custom-icons/AddSection.d.ts +3 -3
  93. package/dist/types/custom-icons/AddSection.d.ts.map +1 -1
  94. package/dist/types/custom-icons/AdvancedSettings.d.ts +3 -3
  95. package/dist/types/custom-icons/AdvancedSettings.d.ts.map +1 -1
  96. package/dist/types/custom-icons/Annotation.d.ts +3 -3
  97. package/dist/types/custom-icons/Annotation.d.ts.map +1 -1
  98. package/dist/types/custom-icons/ApiCall.d.ts +3 -3
  99. package/dist/types/custom-icons/ApiCall.d.ts.map +1 -1
  100. package/dist/types/custom-icons/ArrowDown.d.ts +3 -3
  101. package/dist/types/custom-icons/ArrowDown.d.ts.map +1 -1
  102. package/dist/types/custom-icons/ArrowLeft.d.ts +3 -3
  103. package/dist/types/custom-icons/ArrowLeft.d.ts.map +1 -1
  104. package/dist/types/custom-icons/ArrowRight.d.ts +3 -3
  105. package/dist/types/custom-icons/ArrowRight.d.ts.map +1 -1
  106. package/dist/types/custom-icons/ArrowUp.d.ts +3 -3
  107. package/dist/types/custom-icons/ArrowUp.d.ts.map +1 -1
  108. package/dist/types/custom-icons/Autostyle.d.ts +3 -3
  109. package/dist/types/custom-icons/Autostyle.d.ts.map +1 -1
  110. package/dist/types/custom-icons/Avg.d.ts +3 -3
  111. package/dist/types/custom-icons/Avg.d.ts.map +1 -1
  112. package/dist/types/custom-icons/Behavioral.d.ts +3 -3
  113. package/dist/types/custom-icons/Behavioral.d.ts.map +1 -1
  114. package/dist/types/custom-icons/Bigquery.d.ts +3 -3
  115. package/dist/types/custom-icons/Bigquery.d.ts.map +1 -1
  116. package/dist/types/custom-icons/Blending.d.ts +3 -3
  117. package/dist/types/custom-icons/Blending.d.ts.map +1 -1
  118. package/dist/types/custom-icons/BlockLabel.d.ts +3 -3
  119. package/dist/types/custom-icons/BlockLabel.d.ts.map +1 -1
  120. package/dist/types/custom-icons/BlockLabelOff.d.ts +3 -3
  121. package/dist/types/custom-icons/BlockLabelOff.d.ts.map +1 -1
  122. package/dist/types/custom-icons/BottomRow.d.ts +3 -3
  123. package/dist/types/custom-icons/BottomRow.d.ts.map +1 -1
  124. package/dist/types/custom-icons/Carto.d.ts +3 -3
  125. package/dist/types/custom-icons/Carto.d.ts.map +1 -1
  126. package/dist/types/custom-icons/CartoAi.d.ts +3 -3
  127. package/dist/types/custom-icons/CartoAi.d.ts.map +1 -1
  128. package/dist/types/custom-icons/CartoSymbol.d.ts +3 -3
  129. package/dist/types/custom-icons/CartoSymbol.d.ts.map +1 -1
  130. package/dist/types/custom-icons/CatalogView.d.ts +3 -3
  131. package/dist/types/custom-icons/CatalogView.d.ts.map +1 -1
  132. package/dist/types/custom-icons/CatastropheModeling.d.ts +3 -3
  133. package/dist/types/custom-icons/CatastropheModeling.d.ts.map +1 -1
  134. package/dist/types/custom-icons/Center.d.ts +3 -3
  135. package/dist/types/custom-icons/Center.d.ts.map +1 -1
  136. package/dist/types/custom-icons/CenterLayer.d.ts +3 -3
  137. package/dist/types/custom-icons/CenterLayer.d.ts.map +1 -1
  138. package/dist/types/custom-icons/CloseDiagonallyLeft.d.ts +3 -3
  139. package/dist/types/custom-icons/CloseDiagonallyLeft.d.ts.map +1 -1
  140. package/dist/types/custom-icons/CloseDiagonallyRight.d.ts +3 -3
  141. package/dist/types/custom-icons/CloseDiagonallyRight.d.ts.map +1 -1
  142. package/dist/types/custom-icons/CloseVertically.d.ts +3 -3
  143. package/dist/types/custom-icons/CloseVertically.d.ts.map +1 -1
  144. package/dist/types/custom-icons/CodeBlock.d.ts +3 -3
  145. package/dist/types/custom-icons/CodeBlock.d.ts.map +1 -1
  146. package/dist/types/custom-icons/Comments.d.ts +3 -3
  147. package/dist/types/custom-icons/Comments.d.ts.map +1 -1
  148. package/dist/types/custom-icons/Console.d.ts +3 -3
  149. package/dist/types/custom-icons/Console.d.ts.map +1 -1
  150. package/dist/types/custom-icons/Covid19.d.ts +3 -3
  151. package/dist/types/custom-icons/Covid19.d.ts.map +1 -1
  152. package/dist/types/custom-icons/CreateMap.d.ts +3 -3
  153. package/dist/types/custom-icons/CreateMap.d.ts.map +1 -1
  154. package/dist/types/custom-icons/CreateSpatialAnalysis.d.ts +3 -3
  155. package/dist/types/custom-icons/CreateSpatialAnalysis.d.ts.map +1 -1
  156. package/dist/types/custom-icons/CreateTileset.d.ts +3 -3
  157. package/dist/types/custom-icons/CreateTileset.d.ts.map +1 -1
  158. package/dist/types/custom-icons/CreateWorkflow.d.ts +3 -3
  159. package/dist/types/custom-icons/CreateWorkflow.d.ts.map +1 -1
  160. package/dist/types/custom-icons/Data.d.ts +3 -3
  161. package/dist/types/custom-icons/Data.d.ts.map +1 -1
  162. package/dist/types/custom-icons/DataAccess.d.ts +3 -3
  163. package/dist/types/custom-icons/DataAccess.d.ts.map +1 -1
  164. package/dist/types/custom-icons/DataExplorer.d.ts +3 -3
  165. package/dist/types/custom-icons/DataExplorer.d.ts.map +1 -1
  166. package/dist/types/custom-icons/DataFilter.d.ts +4 -0
  167. package/dist/types/custom-icons/DataFilter.d.ts.map +1 -0
  168. package/dist/types/custom-icons/DataMonetization.d.ts +3 -3
  169. package/dist/types/custom-icons/DataMonetization.d.ts.map +1 -1
  170. package/dist/types/custom-icons/DataObservatory.d.ts +3 -3
  171. package/dist/types/custom-icons/DataObservatory.d.ts.map +1 -1
  172. package/dist/types/custom-icons/DataOk.d.ts +3 -3
  173. package/dist/types/custom-icons/DataOk.d.ts.map +1 -1
  174. package/dist/types/custom-icons/DataPending.d.ts +3 -3
  175. package/dist/types/custom-icons/DataPending.d.ts.map +1 -1
  176. package/dist/types/custom-icons/DataPremium.d.ts +3 -3
  177. package/dist/types/custom-icons/DataPremium.d.ts.map +1 -1
  178. package/dist/types/custom-icons/DataPublic.d.ts +3 -3
  179. package/dist/types/custom-icons/DataPublic.d.ts.map +1 -1
  180. package/dist/types/custom-icons/DataSample.d.ts +3 -3
  181. package/dist/types/custom-icons/DataSample.d.ts.map +1 -1
  182. package/dist/types/custom-icons/DataUnavailable.d.ts +3 -3
  183. package/dist/types/custom-icons/DataUnavailable.d.ts.map +1 -1
  184. package/dist/types/custom-icons/Databricks.d.ts +3 -3
  185. package/dist/types/custom-icons/Databricks.d.ts.map +1 -1
  186. package/dist/types/custom-icons/Demographics.d.ts +3 -3
  187. package/dist/types/custom-icons/Demographics.d.ts.map +1 -1
  188. package/dist/types/custom-icons/Derived.d.ts +3 -3
  189. package/dist/types/custom-icons/Derived.d.ts.map +1 -1
  190. package/dist/types/custom-icons/Distance.d.ts +3 -3
  191. package/dist/types/custom-icons/Distance.d.ts.map +1 -1
  192. package/dist/types/custom-icons/Dot.d.ts +3 -3
  193. package/dist/types/custom-icons/Dot.d.ts.map +1 -1
  194. package/dist/types/custom-icons/DrawCircle.d.ts +3 -3
  195. package/dist/types/custom-icons/DrawCircle.d.ts.map +1 -1
  196. package/dist/types/custom-icons/DrawLasso.d.ts +3 -3
  197. package/dist/types/custom-icons/DrawLasso.d.ts.map +1 -1
  198. package/dist/types/custom-icons/DrawLine.d.ts +3 -3
  199. package/dist/types/custom-icons/DrawLine.d.ts.map +1 -1
  200. package/dist/types/custom-icons/DrawPolygon.d.ts +3 -3
  201. package/dist/types/custom-icons/DrawPolygon.d.ts.map +1 -1
  202. package/dist/types/custom-icons/DrawSquare.d.ts +3 -3
  203. package/dist/types/custom-icons/DrawSquare.d.ts.map +1 -1
  204. package/dist/types/custom-icons/DropAPin.d.ts +3 -3
  205. package/dist/types/custom-icons/DropAPin.d.ts.map +1 -1
  206. package/dist/types/custom-icons/DualMap.d.ts +3 -3
  207. package/dist/types/custom-icons/DualMap.d.ts.map +1 -1
  208. package/dist/types/custom-icons/Environmental.d.ts +3 -3
  209. package/dist/types/custom-icons/Environmental.d.ts.map +1 -1
  210. package/dist/types/custom-icons/EnvironmentalManagement.d.ts +3 -3
  211. package/dist/types/custom-icons/EnvironmentalManagement.d.ts.map +1 -1
  212. package/dist/types/custom-icons/Equal.d.ts +3 -3
  213. package/dist/types/custom-icons/Equal.d.ts.map +1 -1
  214. package/dist/types/custom-icons/ExitToAppLeft.d.ts +3 -3
  215. package/dist/types/custom-icons/ExitToAppLeft.d.ts.map +1 -1
  216. package/dist/types/custom-icons/Fabric.d.ts +3 -3
  217. package/dist/types/custom-icons/Fabric.d.ts.map +1 -1
  218. package/dist/types/custom-icons/Facebook.d.ts +3 -3
  219. package/dist/types/custom-icons/Facebook.d.ts.map +1 -1
  220. package/dist/types/custom-icons/Financial.d.ts +3 -3
  221. package/dist/types/custom-icons/Financial.d.ts.map +1 -1
  222. package/dist/types/custom-icons/FlipInverse.d.ts +3 -3
  223. package/dist/types/custom-icons/FlipInverse.d.ts.map +1 -1
  224. package/dist/types/custom-icons/Framed.d.ts +3 -3
  225. package/dist/types/custom-icons/Framed.d.ts.map +1 -1
  226. package/dist/types/custom-icons/FraudDetection.d.ts +3 -3
  227. package/dist/types/custom-icons/FraudDetection.d.ts.map +1 -1
  228. package/dist/types/custom-icons/Functions.d.ts +3 -3
  229. package/dist/types/custom-icons/Functions.d.ts.map +1 -1
  230. package/dist/types/custom-icons/GeneratingDescription.d.ts +3 -3
  231. package/dist/types/custom-icons/GeneratingDescription.d.ts.map +1 -1
  232. package/dist/types/custom-icons/GeocodeTable.d.ts +3 -3
  233. package/dist/types/custom-icons/GeocodeTable.d.ts.map +1 -1
  234. package/dist/types/custom-icons/Geography.d.ts +3 -3
  235. package/dist/types/custom-icons/Geography.d.ts.map +1 -1
  236. package/dist/types/custom-icons/Geomarketing.d.ts +3 -3
  237. package/dist/types/custom-icons/Geomarketing.d.ts.map +1 -1
  238. package/dist/types/custom-icons/Geometry.d.ts +3 -3
  239. package/dist/types/custom-icons/Geometry.d.ts.map +1 -1
  240. package/dist/types/custom-icons/Github.d.ts +3 -3
  241. package/dist/types/custom-icons/Github.d.ts.map +1 -1
  242. package/dist/types/custom-icons/Google.d.ts +3 -3
  243. package/dist/types/custom-icons/Google.d.ts.map +1 -1
  244. package/dist/types/custom-icons/H3.d.ts +3 -3
  245. package/dist/types/custom-icons/H3.d.ts.map +1 -1
  246. package/dist/types/custom-icons/HealthAnalytics.d.ts +3 -3
  247. package/dist/types/custom-icons/HealthAnalytics.d.ts.map +1 -1
  248. package/dist/types/custom-icons/HideComments.d.ts +3 -3
  249. package/dist/types/custom-icons/HideComments.d.ts.map +1 -1
  250. package/dist/types/custom-icons/HideLeftsidebar.d.ts +3 -3
  251. package/dist/types/custom-icons/HideLeftsidebar.d.ts.map +1 -1
  252. package/dist/types/custom-icons/Home.d.ts +3 -3
  253. package/dist/types/custom-icons/Home.d.ts.map +1 -1
  254. package/dist/types/custom-icons/Housing.d.ts +3 -3
  255. package/dist/types/custom-icons/Housing.d.ts.map +1 -1
  256. package/dist/types/custom-icons/HumanMobility.d.ts +3 -3
  257. package/dist/types/custom-icons/HumanMobility.d.ts.map +1 -1
  258. package/dist/types/custom-icons/Id.d.ts +3 -3
  259. package/dist/types/custom-icons/Id.d.ts.map +1 -1
  260. package/dist/types/custom-icons/Image.d.ts +3 -3
  261. package/dist/types/custom-icons/Image.d.ts.map +1 -1
  262. package/dist/types/custom-icons/Infrastructure.d.ts +3 -3
  263. package/dist/types/custom-icons/Infrastructure.d.ts.map +1 -1
  264. package/dist/types/custom-icons/IotAnalytics.d.ts +3 -3
  265. package/dist/types/custom-icons/IotAnalytics.d.ts.map +1 -1
  266. package/dist/types/custom-icons/LabelDeprecated.d.ts +3 -3
  267. package/dist/types/custom-icons/LabelDeprecated.d.ts.map +1 -1
  268. package/dist/types/custom-icons/Layers.d.ts +3 -3
  269. package/dist/types/custom-icons/Layers.d.ts.map +1 -1
  270. package/dist/types/custom-icons/Linkedin.d.ts +3 -3
  271. package/dist/types/custom-icons/Linkedin.d.ts.map +1 -1
  272. package/dist/types/custom-icons/MapCoordinates.d.ts +3 -3
  273. package/dist/types/custom-icons/MapCoordinates.d.ts.map +1 -1
  274. package/dist/types/custom-icons/MapCopy.d.ts +3 -3
  275. package/dist/types/custom-icons/MapCopy.d.ts.map +1 -1
  276. package/dist/types/custom-icons/MapOthers.d.ts +3 -3
  277. package/dist/types/custom-icons/MapOthers.d.ts.map +1 -1
  278. package/dist/types/custom-icons/MapPin.d.ts +3 -3
  279. package/dist/types/custom-icons/MapPin.d.ts.map +1 -1
  280. package/dist/types/custom-icons/MarkCommentRead.d.ts +3 -3
  281. package/dist/types/custom-icons/MarkCommentRead.d.ts.map +1 -1
  282. package/dist/types/custom-icons/MarketAnalysis.d.ts +3 -3
  283. package/dist/types/custom-icons/MarketAnalysis.d.ts.map +1 -1
  284. package/dist/types/custom-icons/Max.d.ts +3 -3
  285. package/dist/types/custom-icons/Max.d.ts.map +1 -1
  286. package/dist/types/custom-icons/MeasureTool.d.ts +3 -3
  287. package/dist/types/custom-icons/MeasureTool.d.ts.map +1 -1
  288. package/dist/types/custom-icons/Min.d.ts +3 -3
  289. package/dist/types/custom-icons/Min.d.ts.map +1 -1
  290. package/dist/types/custom-icons/MobilityPlanning.d.ts +3 -3
  291. package/dist/types/custom-icons/MobilityPlanning.d.ts.map +1 -1
  292. package/dist/types/custom-icons/NetworkDeployment.d.ts +3 -3
  293. package/dist/types/custom-icons/NetworkDeployment.d.ts.map +1 -1
  294. package/dist/types/custom-icons/NightsThermostat.d.ts +3 -3
  295. package/dist/types/custom-icons/NightsThermostat.d.ts.map +1 -1
  296. package/dist/types/custom-icons/NoApp.d.ts +3 -3
  297. package/dist/types/custom-icons/NoApp.d.ts.map +1 -1
  298. package/dist/types/custom-icons/NoMap.d.ts +3 -3
  299. package/dist/types/custom-icons/NoMap.d.ts.map +1 -1
  300. package/dist/types/custom-icons/NoSpatialExtension.d.ts +3 -3
  301. package/dist/types/custom-icons/NoSpatialExtension.d.ts.map +1 -1
  302. package/dist/types/custom-icons/NoTileset.d.ts +3 -3
  303. package/dist/types/custom-icons/NoTileset.d.ts.map +1 -1
  304. package/dist/types/custom-icons/NotEqual.d.ts +3 -3
  305. package/dist/types/custom-icons/NotEqual.d.ts.map +1 -1
  306. package/dist/types/custom-icons/Number.d.ts +3 -3
  307. package/dist/types/custom-icons/Number.d.ts.map +1 -1
  308. package/dist/types/custom-icons/Onboarding.d.ts +3 -3
  309. package/dist/types/custom-icons/Onboarding.d.ts.map +1 -1
  310. package/dist/types/custom-icons/OohAnalytics.d.ts +3 -3
  311. package/dist/types/custom-icons/OohAnalytics.d.ts.map +1 -1
  312. package/dist/types/custom-icons/Opacity.d.ts +3 -3
  313. package/dist/types/custom-icons/Opacity.d.ts.map +1 -1
  314. package/dist/types/custom-icons/OpenDiagonallyLeft.d.ts +3 -3
  315. package/dist/types/custom-icons/OpenDiagonallyLeft.d.ts.map +1 -1
  316. package/dist/types/custom-icons/OpenDiagonallyRight.d.ts +3 -3
  317. package/dist/types/custom-icons/OpenDiagonallyRight.d.ts.map +1 -1
  318. package/dist/types/custom-icons/OpenNewWindow.d.ts +3 -3
  319. package/dist/types/custom-icons/OpenNewWindow.d.ts.map +1 -1
  320. package/dist/types/custom-icons/OpenVertically.d.ts +3 -3
  321. package/dist/types/custom-icons/OpenVertically.d.ts.map +1 -1
  322. package/dist/types/custom-icons/ParameterSettings.d.ts +3 -3
  323. package/dist/types/custom-icons/ParameterSettings.d.ts.map +1 -1
  324. package/dist/types/custom-icons/PawnChess.d.ts +3 -3
  325. package/dist/types/custom-icons/PawnChess.d.ts.map +1 -1
  326. package/dist/types/custom-icons/PlaceSelect.d.ts +3 -3
  327. package/dist/types/custom-icons/PlaceSelect.d.ts.map +1 -1
  328. package/dist/types/custom-icons/PointsOfInterest.d.ts +3 -3
  329. package/dist/types/custom-icons/PointsOfInterest.d.ts.map +1 -1
  330. package/dist/types/custom-icons/Postgre.d.ts +3 -3
  331. package/dist/types/custom-icons/Postgre.d.ts.map +1 -1
  332. package/dist/types/custom-icons/PostgreOutlined.d.ts +3 -3
  333. package/dist/types/custom-icons/PostgreOutlined.d.ts.map +1 -1
  334. package/dist/types/custom-icons/Preferences.d.ts +3 -3
  335. package/dist/types/custom-icons/Preferences.d.ts.map +1 -1
  336. package/dist/types/custom-icons/ProcessData.d.ts +3 -3
  337. package/dist/types/custom-icons/ProcessData.d.ts.map +1 -1
  338. package/dist/types/custom-icons/PublicWithPassword.d.ts +3 -3
  339. package/dist/types/custom-icons/PublicWithPassword.d.ts.map +1 -1
  340. package/dist/types/custom-icons/Publish.d.ts +3 -3
  341. package/dist/types/custom-icons/Publish.d.ts.map +1 -1
  342. package/dist/types/custom-icons/Quadbin.d.ts +3 -3
  343. package/dist/types/custom-icons/Quadbin.d.ts.map +1 -1
  344. package/dist/types/custom-icons/Quadkey.d.ts +3 -3
  345. package/dist/types/custom-icons/Quadkey.d.ts.map +1 -1
  346. package/dist/types/custom-icons/QueryTable.d.ts +3 -3
  347. package/dist/types/custom-icons/QueryTable.d.ts.map +1 -1
  348. package/dist/types/custom-icons/Rain.d.ts +3 -3
  349. package/dist/types/custom-icons/Rain.d.ts.map +1 -1
  350. package/dist/types/custom-icons/Raster.d.ts +3 -3
  351. package/dist/types/custom-icons/Raster.d.ts.map +1 -1
  352. package/dist/types/custom-icons/Redshift.d.ts +3 -3
  353. package/dist/types/custom-icons/Redshift.d.ts.map +1 -1
  354. package/dist/types/custom-icons/Report.d.ts +3 -3
  355. package/dist/types/custom-icons/Report.d.ts.map +1 -1
  356. package/dist/types/custom-icons/Reset.d.ts +3 -3
  357. package/dist/types/custom-icons/Reset.d.ts.map +1 -1
  358. package/dist/types/custom-icons/RiskAnalysis.d.ts +3 -3
  359. package/dist/types/custom-icons/RiskAnalysis.d.ts.map +1 -1
  360. package/dist/types/custom-icons/RoadTraffic.d.ts +3 -3
  361. package/dist/types/custom-icons/RoadTraffic.d.ts.map +1 -1
  362. package/dist/types/custom-icons/RunSettings.d.ts +3 -3
  363. package/dist/types/custom-icons/RunSettings.d.ts.map +1 -1
  364. package/dist/types/custom-icons/RunStep.d.ts +3 -3
  365. package/dist/types/custom-icons/RunStep.d.ts.map +1 -1
  366. package/dist/types/custom-icons/Salesforce.d.ts +3 -3
  367. package/dist/types/custom-icons/Salesforce.d.ts.map +1 -1
  368. package/dist/types/custom-icons/Sample.d.ts +3 -3
  369. package/dist/types/custom-icons/Sample.d.ts.map +1 -1
  370. package/dist/types/custom-icons/SaveOk.d.ts +3 -3
  371. package/dist/types/custom-icons/SaveOk.d.ts.map +1 -1
  372. package/dist/types/custom-icons/ScheduleRun.d.ts +3 -3
  373. package/dist/types/custom-icons/ScheduleRun.d.ts.map +1 -1
  374. package/dist/types/custom-icons/Search.d.ts +3 -3
  375. package/dist/types/custom-icons/Search.d.ts.map +1 -1
  376. package/dist/types/custom-icons/SelectDestination.d.ts +3 -3
  377. package/dist/types/custom-icons/SelectDestination.d.ts.map +1 -1
  378. package/dist/types/custom-icons/SelectTool.d.ts +3 -3
  379. package/dist/types/custom-icons/SelectTool.d.ts.map +1 -1
  380. package/dist/types/custom-icons/SelectVariable.d.ts +3 -3
  381. package/dist/types/custom-icons/SelectVariable.d.ts.map +1 -1
  382. package/dist/types/custom-icons/SingleLayer.d.ts +3 -3
  383. package/dist/types/custom-icons/SingleLayer.d.ts.map +1 -1
  384. package/dist/types/custom-icons/SiteSelection.d.ts +3 -3
  385. package/dist/types/custom-icons/SiteSelection.d.ts.map +1 -1
  386. package/dist/types/custom-icons/Snowflake.d.ts +3 -3
  387. package/dist/types/custom-icons/Snowflake.d.ts.map +1 -1
  388. package/dist/types/custom-icons/SpatialAnalysis.d.ts +3 -3
  389. package/dist/types/custom-icons/SpatialAnalysis.d.ts.map +1 -1
  390. package/dist/types/custom-icons/SpatialExtension.d.ts +3 -3
  391. package/dist/types/custom-icons/SpatialExtension.d.ts.map +1 -1
  392. package/dist/types/custom-icons/SpatialIndexes.d.ts +3 -3
  393. package/dist/types/custom-icons/SpatialIndexes.d.ts.map +1 -1
  394. package/dist/types/custom-icons/Sql.d.ts +3 -3
  395. package/dist/types/custom-icons/Sql.d.ts.map +1 -1
  396. package/dist/types/custom-icons/SqlError.d.ts +3 -3
  397. package/dist/types/custom-icons/SqlError.d.ts.map +1 -1
  398. package/dist/types/custom-icons/Sso.d.ts +3 -3
  399. package/dist/types/custom-icons/Sso.d.ts.map +1 -1
  400. package/dist/types/custom-icons/StrokeCustom.d.ts +3 -3
  401. package/dist/types/custom-icons/StrokeCustom.d.ts.map +1 -1
  402. package/dist/types/custom-icons/StrokeDash.d.ts +3 -3
  403. package/dist/types/custom-icons/StrokeDash.d.ts.map +1 -1
  404. package/dist/types/custom-icons/StrokeSolid.d.ts +3 -3
  405. package/dist/types/custom-icons/StrokeSolid.d.ts.map +1 -1
  406. package/dist/types/custom-icons/SupplyChain.d.ts +3 -3
  407. package/dist/types/custom-icons/SupplyChain.d.ts.map +1 -1
  408. package/dist/types/custom-icons/SwatchCircle.d.ts +3 -3
  409. package/dist/types/custom-icons/SwatchCircle.d.ts.map +1 -1
  410. package/dist/types/custom-icons/SwatchCircleNone.d.ts +3 -3
  411. package/dist/types/custom-icons/SwatchCircleNone.d.ts.map +1 -1
  412. package/dist/types/custom-icons/SwatchSquare.d.ts +3 -3
  413. package/dist/types/custom-icons/SwatchSquare.d.ts.map +1 -1
  414. package/dist/types/custom-icons/TableColumn.d.ts +3 -3
  415. package/dist/types/custom-icons/TableColumn.d.ts.map +1 -1
  416. package/dist/types/custom-icons/TableColumnLimited.d.ts +3 -3
  417. package/dist/types/custom-icons/TableColumnLimited.d.ts.map +1 -1
  418. package/dist/types/custom-icons/TempTable.d.ts +3 -3
  419. package/dist/types/custom-icons/TempTable.d.ts.map +1 -1
  420. package/dist/types/custom-icons/TerritoryPlanning.d.ts +3 -3
  421. package/dist/types/custom-icons/TerritoryPlanning.d.ts.map +1 -1
  422. package/dist/types/custom-icons/TextBox.d.ts +3 -3
  423. package/dist/types/custom-icons/TextBox.d.ts.map +1 -1
  424. package/dist/types/custom-icons/Tileset.d.ts +3 -3
  425. package/dist/types/custom-icons/Tileset.d.ts.map +1 -1
  426. package/dist/types/custom-icons/TilesetsAggregated.d.ts +3 -3
  427. package/dist/types/custom-icons/TilesetsAggregated.d.ts.map +1 -1
  428. package/dist/types/custom-icons/TimeBuckets.d.ts +3 -3
  429. package/dist/types/custom-icons/TimeBuckets.d.ts.map +1 -1
  430. package/dist/types/custom-icons/TimeCar.d.ts +3 -3
  431. package/dist/types/custom-icons/TimeCar.d.ts.map +1 -1
  432. package/dist/types/custom-icons/TimeWindowIncremental.d.ts +3 -3
  433. package/dist/types/custom-icons/TimeWindowIncremental.d.ts.map +1 -1
  434. package/dist/types/custom-icons/TimeWindowMoving.d.ts +3 -3
  435. package/dist/types/custom-icons/TimeWindowMoving.d.ts.map +1 -1
  436. package/dist/types/custom-icons/Tooltip.d.ts +3 -3
  437. package/dist/types/custom-icons/Tooltip.d.ts.map +1 -1
  438. package/dist/types/custom-icons/TopRow.d.ts +3 -3
  439. package/dist/types/custom-icons/TopRow.d.ts.map +1 -1
  440. package/dist/types/custom-icons/TwinArea.d.ts +3 -3
  441. package/dist/types/custom-icons/TwinArea.d.ts.map +1 -1
  442. package/dist/types/custom-icons/Twitter.d.ts +3 -3
  443. package/dist/types/custom-icons/Twitter.d.ts.map +1 -1
  444. package/dist/types/custom-icons/UpdateGen.d.ts +3 -3
  445. package/dist/types/custom-icons/UpdateGen.d.ts.map +1 -1
  446. package/dist/types/custom-icons/UploadFileUrl.d.ts +3 -3
  447. package/dist/types/custom-icons/UploadFileUrl.d.ts.map +1 -1
  448. package/dist/types/custom-icons/View2d.d.ts +3 -3
  449. package/dist/types/custom-icons/View2d.d.ts.map +1 -1
  450. package/dist/types/custom-icons/View3d.d.ts +3 -3
  451. package/dist/types/custom-icons/View3d.d.ts.map +1 -1
  452. package/dist/types/custom-icons/ViewLeftsidebar.d.ts +3 -3
  453. package/dist/types/custom-icons/ViewLeftsidebar.d.ts.map +1 -1
  454. package/dist/types/custom-icons/WfComponent.d.ts +3 -3
  455. package/dist/types/custom-icons/WfComponent.d.ts.map +1 -1
  456. package/dist/types/custom-icons/WfComponentInvalid.d.ts +3 -3
  457. package/dist/types/custom-icons/WfComponentInvalid.d.ts.map +1 -1
  458. package/dist/types/custom-icons/WfExtensionPackageDefault.d.ts +3 -3
  459. package/dist/types/custom-icons/WfExtensionPackageDefault.d.ts.map +1 -1
  460. package/dist/types/custom-icons/WfInput.d.ts +3 -3
  461. package/dist/types/custom-icons/WfInput.d.ts.map +1 -1
  462. package/dist/types/custom-icons/WfInputAlt.d.ts +3 -3
  463. package/dist/types/custom-icons/WfInputAlt.d.ts.map +1 -1
  464. package/dist/types/custom-icons/WfModule.d.ts +3 -3
  465. package/dist/types/custom-icons/WfModule.d.ts.map +1 -1
  466. package/dist/types/custom-icons/WfOutput.d.ts +3 -3
  467. package/dist/types/custom-icons/WfOutput.d.ts.map +1 -1
  468. package/dist/types/custom-icons/WfOutputAlt.d.ts +3 -3
  469. package/dist/types/custom-icons/WfOutputAlt.d.ts.map +1 -1
  470. package/dist/types/custom-icons/WhiteSpace.d.ts +3 -3
  471. package/dist/types/custom-icons/WhiteSpace.d.ts.map +1 -1
  472. package/dist/types/custom-icons/WidgetOptions.d.ts +3 -3
  473. package/dist/types/custom-icons/WidgetOptions.d.ts.map +1 -1
  474. package/dist/types/custom-icons/Workflow.d.ts +3 -3
  475. package/dist/types/custom-icons/Workflow.d.ts.map +1 -1
  476. package/dist/types/custom-icons/WorkflowTemp.d.ts +3 -3
  477. package/dist/types/custom-icons/WorkflowTemp.d.ts.map +1 -1
  478. package/dist/types/custom-icons/index.d.ts +1 -0
  479. package/dist/types/custom-icons/index.d.ts.map +1 -1
  480. package/dist/types/custom-icons/types.d.ts +14 -0
  481. package/dist/types/custom-icons/types.d.ts.map +1 -0
  482. package/dist/types/localization/en.d.ts +10 -0
  483. package/dist/types/localization/en.d.ts.map +1 -1
  484. package/dist/types/localization/es.d.ts +10 -0
  485. package/dist/types/localization/es.d.ts.map +1 -1
  486. package/dist/types/localization/id.d.ts +10 -0
  487. package/dist/types/localization/id.d.ts.map +1 -1
  488. package/dist/types/localization/index.d.ts +30 -0
  489. package/dist/types/localization/index.d.ts.map +1 -1
  490. package/dist/types/widgets/RangeWidgetUI/RangeSkeleton.d.ts.map +1 -1
  491. package/dist/widgets/index.cjs +3 -3
  492. package/dist/widgets/index.js +5 -5
  493. package/package.json +10 -3
  494. package/dist/Alert-B2JgFj6Y.cjs +0 -4
  495. package/dist/ArrowDown-B1AG0MlL.js +0 -24
  496. package/dist/ArrowDown-CGnG0E-4.cjs +0 -1
  497. package/dist/MenuItem-CuEx97RN.cjs +0 -1
  498. package/dist/SwatchSquare-C-QxZLYN.cjs +0 -1
  499. package/dist/SwatchSquare-DAne_6Gi.js +0 -35
  500. package/dist/TablePaginationActions-7wkkiCXh.cjs +0 -9
  501. package/dist/types/components/molecules/Menu/MenuFilter.d.ts +0 -8
  502. package/dist/types/components/molecules/Menu/MenuFilter.d.ts.map +0 -1
@@ -1,20 +1,45 @@
1
- import { jsx as i, jsxs as x, Fragment as j } from "react/jsx-runtime";
2
- import { forwardRef as L, useState as T, useEffect as H, useMemo as pt, useRef as U, Fragment as Ot, useImperativeHandle as Lt, useCallback as nt } from "react";
3
- import { styled as p, Box as v, Button as gt, CircularProgress as _, TextField as ft, InputAdornment as Y, IconButton as O, Tooltip as W, Select as Wt, MenuItem as mt, FormControl as Et, InputLabel as Ht, FormHelperText as ht, ToggleButtonGroup as _t, Menu as Pt, MenuList as Gt, Checkbox as q, Link as jt, ListItemText as bt, Autocomplete as z, Divider as G, ListItemIcon as Vt, createFilterOptions as Nt, Accordion as Ut, AccordionSummary as Yt, AccordionDetails as qt, Avatar as zt, Snackbar as Zt, Portal as Jt, Fade as Xt, Slide as xt, alpha as Kt, useTheme as V, Toolbar as Qt, AppBar as te, Paper as ee, Dialog as ne, DialogTitle as oe, Chip as ie, DialogContent as re, DialogActions as ae } from "@mui/material";
4
- import { T as B, c as P, u as $, N as ot, A as le } from "../TablePaginationActions-EC4ynZRa.js";
5
- import { a as _o } from "../TablePaginationActions-EC4ynZRa.js";
1
+ import { jsx as n, jsxs as x, Fragment as H } from "react/jsx-runtime";
2
+ import { forwardRef as O, useState as B, useEffect as z, useMemo as At, useRef as Z, Fragment as te, useCallback as ot, useImperativeHandle as ee } from "react";
3
+ import { styled as m, Box as D, Button as St, CircularProgress as G, TextField as It, InputAdornment as it, IconButton as W, Tooltip as P, Select as oe, MenuItem as $t, FormControl as Bt, InputLabel as Tt, FormHelperText as J, ToggleButtonGroup as re, Menu as ne, MenuList as ie, Link as ae, Checkbox as at, ListItemText as U, Autocomplete as lt, Divider as _, ListItemIcon as rt, createFilterOptions as le, Accordion as ce, AccordionSummary as de, AccordionDetails as se, Avatar as ue, Snackbar as pe, Portal as ge, Fade as fe, Slide as Rt, alpha as Ot, useTheme as j, Toolbar as me, AppBar as be, Paper as he, Dialog as xe, DialogTitle as ye, Chip as Ce, DialogContent as Me, DialogActions as ke } from "@mui/material";
4
+ import { T as F, c as N, u as T, N as ft, A as ve } from "../TablePaginationActions-Cj_BbjKR.js";
5
+ import { a as ei } from "../TablePaginationActions-Cj_BbjKR.js";
6
6
  import { useIntl as R } from "react-intl";
7
- import { VisibilityOffOutlined as ce, VisibilityOutlined as se, Cancel as yt, AddCircleOutlineOutlined as de, CloseOutlined as Mt, MenuOutlined as ue, HelpOutline as Z, TodayOutlined as pe, Check as ge } from "@mui/icons-material";
8
- import { A as Ct } from "../Alert-Cn0nq6aq.js";
7
+ import { VisibilityOffOutlined as we, VisibilityOutlined as De, Cancel as Ft, AddCircleOutlineOutlined as Ae, ContentCopyOutlined as Lt, CloseOutlined as Wt, MenuOutlined as Se, HelpOutline as K, TodayOutlined as Ie, MoreVertOutlined as $e, ErrorOutline as Be, Check as Te } from "@mui/icons-material";
8
+ import { A as Et } from "../Alert-mpNEqtBu.js";
9
9
  import "cartocolor";
10
- import { M as vt } from "../MenuItem-vbfSlKyV.js";
11
- import { A as J } from "../ArrowDown-B1AG0MlL.js";
12
- import { DatePicker as fe } from "@mui/x-date-pickers/DatePicker";
13
- import { PickersDay as me } from "@mui/x-date-pickers";
14
- import { TimePicker as he } from "@mui/x-date-pickers/TimePicker";
15
- import { DateTimePicker as be } from "@mui/x-date-pickers/DateTimePicker";
16
- import xe from "@mui/material/ClickAwayListener";
17
- const ye = p(v)({
10
+ import { M as Y } from "../MenuItem-Cd34y6F3.js";
11
+ import { A as ct } from "../ArrowDown-CMhYkZ2p.js";
12
+ import { DatePicker as Re } from "@mui/x-date-pickers/DatePicker";
13
+ import { PickersDay as Oe } from "@mui/x-date-pickers";
14
+ import { TimePicker as Fe } from "@mui/x-date-pickers/TimePicker";
15
+ import { DateTimePicker as Le } from "@mui/x-date-pickers/DateTimePicker";
16
+ import { O as mt, C as We } from "../OpenDiagonallyRight-BkCaUpcr.js";
17
+ import { Controlled as Ee, UnControlled as He } from "react-codemirror2";
18
+ import { lime as bt, blue as tt, purple as Pe, teal as ze, red as Ne, indigo as _e } from "@mui/material/colors";
19
+ import "codemirror/lib/codemirror.css";
20
+ import "codemirror/lib/codemirror.js";
21
+ import "codemirror/mode/sql/sql.js";
22
+ import "codemirror/mode/javascript/javascript.js";
23
+ import "codemirror/mode/htmlmixed/htmlmixed.js";
24
+ import "codemirror/mode/markdown/markdown.js";
25
+ import "codemirror/mode/shell/shell.js";
26
+ import "codemirror/mode/python/python.js";
27
+ import "codemirror/addon/display/placeholder";
28
+ import "codemirror/addon/hint/sql-hint.js";
29
+ import "codemirror/addon/hint/show-hint.css";
30
+ import "codemirror/addon/hint/show-hint.js";
31
+ import "codemirror/addon/selection/active-line.js";
32
+ import "codemirror/addon/edit/matchbrackets.js";
33
+ import "codemirror/addon/fold/foldcode.js";
34
+ import "codemirror/addon/fold/foldgutter.js";
35
+ import "codemirror/addon/fold/foldgutter.css";
36
+ import "codemirror/addon/fold/brace-fold.js";
37
+ import "codemirror/addon/fold/xml-fold.js";
38
+ import "codemirror/addon/fold/indent-fold.js";
39
+ import "codemirror/addon/fold/markdown-fold.js";
40
+ import "codemirror/addon/fold/comment-fold.js";
41
+ import Ge from "@mui/material/ClickAwayListener";
42
+ const je = m(D)({
18
43
  position: "absolute",
19
44
  top: 0,
20
45
  left: 0,
@@ -23,52 +48,53 @@ const ye = p(v)({
23
48
  display: "flex",
24
49
  alignItems: "center",
25
50
  justifyContent: "center"
26
- }), Me = p(v)({
51
+ }), Ve = m(D)({
27
52
  visibility: "hidden",
28
53
  pointerEvents: "none"
29
54
  });
30
- function Ce({
55
+ function Ue({
31
56
  children: t,
32
57
  loading: e,
33
- disabled: n,
34
- startIcon: o,
35
- endIcon: r,
36
- loadingPosition: a,
37
- ...l
58
+ disabled: o,
59
+ startIcon: r,
60
+ endIcon: i,
61
+ loadingPosition: l,
62
+ ...a
38
63
  }, c) {
39
- const s = /* @__PURE__ */ i(_, { size: 18, color: "inherit" }), d = e && a === void 0, h = () => d ? /* @__PURE__ */ x(v, { sx: { position: "relative" }, children: [
40
- /* @__PURE__ */ i(ye, { children: s }),
41
- /* @__PURE__ */ i(Me, { children: t })
42
- ] }) : t, u = (g) => {
43
- if (!d)
44
- return e && a !== void 0 ? a === g ? s : void 0 : g === "start" ? o : r;
64
+ const d = /* @__PURE__ */ n(G, { size: 18, color: "inherit" }), u = e && l === void 0, p = () => u ? /* @__PURE__ */ x(D, { sx: { position: "relative" }, children: [
65
+ /* @__PURE__ */ n(je, { children: d }),
66
+ /* @__PURE__ */ n(Ve, { children: t })
67
+ ] }) : t, s = (b) => {
68
+ if (!u)
69
+ return e && l !== void 0 ? l === b ? d : void 0 : b === "start" ? r : i;
45
70
  };
46
- return /* @__PURE__ */ i(
47
- gt,
71
+ return /* @__PURE__ */ n(
72
+ St,
48
73
  {
49
- disabled: e || n,
50
- startIcon: u("start"),
51
- endIcon: u("end"),
52
- ...l,
74
+ disabled: e || o,
75
+ startIcon: s("start"),
76
+ endIcon: s("end"),
77
+ ...a,
78
+ role: a.href ? "link" : "button",
53
79
  ref: c,
54
- children: /* @__PURE__ */ i(B, { variant: "inherit", color: "inherit", noWrap: !0, component: "span", children: h() })
80
+ children: /* @__PURE__ */ n(F, { variant: "inherit", color: "inherit", noWrap: !0, component: "span", children: p() })
55
81
  }
56
82
  );
57
83
  }
58
- const go = L(Ce), ve = p(v)(({ theme: t }) => ({
84
+ const nt = O(Ue), Ye = m(D)(({ theme: t }) => ({
59
85
  display: "flex",
60
86
  alignItems: "center",
61
87
  gap: t.spacing(0.5)
62
- })), De = p(B)(({ theme: t }) => ({
88
+ })), qe = m(F)(({ theme: t }) => ({
63
89
  ".Mui-disabled &": {
64
90
  color: t.palette.text.disabled
65
91
  }
66
- })), Ae = p(v)(({ theme: t }) => ({
92
+ })), Ze = m(D)(({ theme: t }) => ({
67
93
  display: "flex",
68
94
  svg: {
69
- width: P,
70
- height: P,
71
- fontSize: P,
95
+ width: N,
96
+ height: N,
97
+ fontSize: N,
72
98
  path: {
73
99
  fill: t.palette.text.secondary,
74
100
  ".Mui-disabled &": {
@@ -80,55 +106,55 @@ const go = L(Ce), ve = p(v)(({ theme: t }) => ({
80
106
  function X({
81
107
  label: t,
82
108
  type: e,
83
- icon: n,
84
- inheritSize: o
109
+ icon: o,
110
+ inheritSize: r
85
111
  }) {
86
- return /* @__PURE__ */ x(ve, { children: [
112
+ return /* @__PURE__ */ x(Ye, { children: [
87
113
  t,
88
- e && /* @__PURE__ */ i(
89
- De,
114
+ e && /* @__PURE__ */ n(
115
+ qe,
90
116
  {
91
117
  component: "span",
92
- variant: o ? "inherit" : "caption",
118
+ variant: r ? "inherit" : "caption",
93
119
  color: "textSecondary",
94
120
  weight: "regular",
95
121
  children: e === "required" ? "(required)" : "(optional)"
96
122
  }
97
123
  ),
98
- n && /* @__PURE__ */ i(Ae, { children: n })
124
+ o && /* @__PURE__ */ n(Ze, { children: o })
99
125
  ] });
100
126
  }
101
- function ke({ InputProps: t, size: e = "small", ...n }, o) {
102
- const r = R(), a = $(r), [l, c] = T(!1);
103
- return /* @__PURE__ */ i(
104
- ft,
127
+ function Je({ InputProps: t, size: e = "small", ...o }, r) {
128
+ const i = R(), l = T(i), [a, c] = B(!1);
129
+ return /* @__PURE__ */ n(
130
+ It,
105
131
  {
106
- ...n,
107
- ref: o,
108
- type: l ? "text" : "password",
132
+ ...o,
133
+ ref: r,
134
+ type: a ? "text" : "password",
109
135
  size: e,
110
136
  InputProps: {
111
137
  ...t,
112
- endAdornment: /* @__PURE__ */ i(Y, { position: "end", children: /* @__PURE__ */ i(O, { size: e, onClick: () => c(!l), children: /* @__PURE__ */ i(
113
- W,
138
+ endAdornment: /* @__PURE__ */ n(it, { position: "end", children: /* @__PURE__ */ n(W, { size: e, onClick: () => c(!a), children: /* @__PURE__ */ n(
139
+ P,
114
140
  {
115
- title: a.formatMessage({
116
- id: `c4r.form.${l ? "hidePassword" : "showPassword"}`
141
+ title: l.formatMessage({
142
+ id: `c4r.form.${a ? "hidePassword" : "showPassword"}`
117
143
  }),
118
- children: l ? /* @__PURE__ */ i(ce, {}) : /* @__PURE__ */ i(se, {})
144
+ children: a ? /* @__PURE__ */ n(we, {}) : /* @__PURE__ */ n(De, {})
119
145
  }
120
146
  ) }) })
121
147
  }
122
148
  }
123
149
  );
124
150
  }
125
- const fo = L(ke), N = {};
126
- function Ie(t = "$lodash$") {
127
- N[t] || (N[t] = 0);
128
- const e = ++N[t];
151
+ const Ln = O(Je), et = {};
152
+ function Ke(t = "$lodash$") {
153
+ et[t] || (et[t] = 0);
154
+ const e = ++et[t];
129
155
  return t === "$lodash$" ? `${e}` : `${t}${e}`;
130
156
  }
131
- const we = p(Wt)(({ theme: t }) => ({
157
+ const Xe = m(oe)(({ theme: t }) => ({
132
158
  "& .MuiInputAdornment-positionStart": {
133
159
  paddingLeft: t.spacing(2),
134
160
  "&.MuiInputAdornment-sizeSmall": {
@@ -144,60 +170,62 @@ const we = p(Wt)(({ theme: t }) => ({
144
170
  "&.MuiInputBase-root .MuiSelect-select.MuiSelect-multiple": {
145
171
  paddingRight: t.spacing(7)
146
172
  }
147
- })), Be = p(mt)(() => ({
173
+ })), Qe = m($t)(() => ({
148
174
  display: "none"
149
175
  }));
150
- function Se({
176
+ function to({
151
177
  children: t,
152
178
  placeholder: e,
153
- size: n = "small",
154
- displayEmpty: o,
155
- menuProps: r,
156
- inputProps: a,
157
- labelId: l,
179
+ size: o = "small",
180
+ displayEmpty: r,
181
+ menuProps: i,
182
+ inputProps: l,
183
+ labelId: a,
158
184
  label: c,
159
- labelSecondary: s,
160
- helperText: d,
161
- name: h,
162
- error: u,
163
- focused: g,
164
- disabled: f,
165
- fullWidth: m,
185
+ labelSecondary: d,
186
+ helperText: u,
187
+ name: p,
188
+ error: s,
189
+ focused: b,
190
+ disabled: g,
191
+ fullWidth: f,
166
192
  required: y,
167
- "aria-label": b,
168
- ...D
169
- }, w) {
170
- const A = n === "small", [M] = T(() => Ie("select-label-")), k = c ? l ?? M : void 0;
193
+ "aria-label": h,
194
+ ...w
195
+ }, M) {
196
+ const A = o === "small", [C] = B(() => Ke("select-label-")), k = c ? a ?? C : void 0;
171
197
  return /* @__PURE__ */ x(
172
- Et,
198
+ Bt,
173
199
  {
174
- size: n,
175
- error: u,
176
- focused: g,
177
- disabled: f,
178
- fullWidth: m,
200
+ size: o,
201
+ error: s,
202
+ focused: b,
203
+ disabled: g,
204
+ fullWidth: f,
179
205
  required: y,
206
+ "data-name": "select-field",
207
+ "data-size": o,
180
208
  children: [
181
- /* @__PURE__ */ x(v, { display: "flex", alignItems: "center", justifyContent: "space-between", children: [
182
- c && /* @__PURE__ */ i(Ht, { shrink: !0, id: k, children: c }),
183
- s && /* @__PURE__ */ i(v, { display: "flex", alignItems: "center", ml: 2, mb: 0.5, children: s })
209
+ /* @__PURE__ */ x(D, { display: "flex", alignItems: "center", justifyContent: "space-between", children: [
210
+ c && /* @__PURE__ */ n(Tt, { shrink: !0, id: k, children: c }),
211
+ d && /* @__PURE__ */ n(D, { display: "flex", alignItems: "center", ml: 2, mb: 0.5, children: d })
184
212
  ] }),
185
213
  /* @__PURE__ */ x(
186
- we,
214
+ Xe,
187
215
  {
188
- ...D,
216
+ ...w,
189
217
  labelId: k,
190
- name: h,
191
- ref: w,
192
- size: n,
193
- fullWidth: m,
194
- displayEmpty: o ?? !!e,
218
+ name: p,
219
+ ref: M,
220
+ size: o,
221
+ fullWidth: f,
222
+ displayEmpty: r ?? !!e,
195
223
  inputProps: {
196
- ...a,
197
- "aria-label": b
224
+ ...l,
225
+ "aria-label": h
198
226
  },
199
227
  MenuProps: {
200
- ...r,
228
+ ...i,
201
229
  PopoverClasses: {
202
230
  paper: A ? "MuiMenu-paper-sizeSmall" : void 0
203
231
  },
@@ -211,8 +239,8 @@ function Se({
211
239
  }
212
240
  },
213
241
  children: [
214
- e && /* @__PURE__ */ i(Be, { disabled: !0, value: "", children: /* @__PURE__ */ i(
215
- B,
242
+ e && /* @__PURE__ */ n(Qe, { disabled: !0, value: "", children: /* @__PURE__ */ n(
243
+ F,
216
244
  {
217
245
  variant: A ? "body2" : "body1",
218
246
  color: "text.hint",
@@ -224,30 +252,30 @@ function Se({
224
252
  ]
225
253
  }
226
254
  ),
227
- d && /* @__PURE__ */ i(ht, { "aria-label": `${h}-helper`, children: d })
255
+ u && /* @__PURE__ */ n(J, { "aria-label": `${p}-helper`, children: u })
228
256
  ]
229
257
  }
230
258
  );
231
259
  }
232
- const Te = L(Se), $e = p(_t, {
260
+ const eo = O(to), oo = m(re, {
233
261
  shouldForwardProp: (t) => t !== "variant" && t !== "backgroundColor"
234
- })(({ variant: t, backgroundColor: e, theme: n }) => ({
262
+ })(({ variant: t, backgroundColor: e, theme: o }) => ({
235
263
  // Variants
236
264
  ...t === "contained" && {
237
265
  boxShadow: "none"
238
266
  },
239
267
  ...t === "unbounded" && {
240
268
  boxShadow: "none",
241
- borderRadius: n.spacing(0.5),
269
+ borderRadius: o.spacing(0.5),
242
270
  "& .MuiDivider-root": {
243
- height: n.spacing(4),
271
+ height: o.spacing(4),
244
272
  "&.MuiToggleButtonGroup-groupedHorizontal": {
245
- height: n.spacing(4)
273
+ height: o.spacing(4)
246
274
  },
247
275
  "&.MuiToggleButtonGroup-groupedVertical": {
248
276
  height: "auto",
249
- width: n.spacing(4),
250
- margin: `${n.spacing(0.5, 0, 1)} !important`,
277
+ width: o.spacing(4),
278
+ margin: `${o.spacing(0.5, 0, 1)} !important`,
251
279
  borderRadius: "0 !important"
252
280
  }
253
281
  },
@@ -257,11 +285,11 @@ const Te = L(Se), $e = p(_t, {
257
285
  margin: 0
258
286
  },
259
287
  "& + .MuiDivider-root.MuiToggleButtonGroup-groupedHorizontal": {
260
- height: n.spacing(3)
288
+ height: o.spacing(3)
261
289
  },
262
290
  "& + .MuiDivider-root.MuiToggleButtonGroup-groupedVertical": {
263
291
  height: "auto",
264
- width: n.spacing(3)
292
+ width: o.spacing(3)
265
293
  }
266
294
  },
267
295
  ".MuiToggleButtonGroup-grouped:not(.MuiDivider-root)": {
@@ -270,17 +298,17 @@ const Te = L(Se), $e = p(_t, {
270
298
  marginLeft: 0
271
299
  },
272
300
  "&:not(:last-of-type)": {
273
- marginRight: n.spacing(0.5)
301
+ marginRight: o.spacing(0.5)
274
302
  }
275
303
  },
276
304
  "&.MuiToggleButtonGroup-horizontal:not(.MuiDivider-root)": {
277
305
  ".MuiToggleButtonGroup-grouped": {
278
- margin: n.spacing(0, 0.5)
306
+ margin: o.spacing(0, 0.5)
279
307
  }
280
308
  },
281
309
  "&.MuiToggleButtonGroup-vertical:not(.MuiDivider-root)": {
282
310
  ".MuiToggleButtonGroup-grouped": {
283
- margin: n.spacing(0, 0, 0.5),
311
+ margin: o.spacing(0, 0, 0.5),
284
312
  "&:not(:last-of-type)": {
285
313
  marginRight: 0
286
314
  },
@@ -292,32 +320,32 @@ const Te = L(Se), $e = p(_t, {
292
320
  },
293
321
  // Colors
294
322
  ...e === "primary" && {
295
- backgroundColor: n.palette.background.paper
323
+ backgroundColor: o.palette.background.paper
296
324
  },
297
325
  ...e === "secondary" && {
298
- backgroundColor: n.palette.background.default
326
+ backgroundColor: o.palette.background.default
299
327
  },
300
328
  ...e === "transparent" && {
301
329
  backgroundColor: "transparent"
302
330
  }
303
331
  }));
304
- function mo({
332
+ function Wn({
305
333
  children: t,
306
334
  variant: e = "floating",
307
- backgroundColor: n,
308
- ...o
335
+ backgroundColor: o,
336
+ ...r
309
337
  }) {
310
- return /* @__PURE__ */ i(
311
- $e,
338
+ return /* @__PURE__ */ n(
339
+ oo,
312
340
  {
313
- ...o,
341
+ ...r,
314
342
  variant: e,
315
- backgroundColor: n ?? (e === "unbounded" ? "transparent" : "primary"),
343
+ backgroundColor: o ?? (e === "unbounded" ? "transparent" : "primary"),
316
344
  children: t
317
345
  }
318
346
  );
319
347
  }
320
- const Re = p("div")(({ theme: t }) => ({
348
+ const ro = m("div")(({ theme: t }) => ({
321
349
  position: "relative",
322
350
  display: "inline-flex",
323
351
  // TODO: Remove this once we have a better way to handle the spacing between icon buttons:
@@ -325,7 +353,7 @@ const Re = p("div")(({ theme: t }) => ({
325
353
  "& + &, & + .optionIconButton": {
326
354
  marginLeft: t.spacing(0.5)
327
355
  }
328
- })), Fe = p(O, {
356
+ })), no = m(W, {
329
357
  shouldForwardProp: (t) => !["active"].includes(t)
330
358
  })(({ active: t, theme: e }) => ({
331
359
  ...t && {
@@ -336,92 +364,122 @@ const Re = p("div")(({ theme: t }) => ({
336
364
  }
337
365
  }
338
366
  }));
339
- function Oe({
367
+ function io({
340
368
  tooltip: t,
341
369
  tooltipPlacement: e = "top",
342
- icon: n,
343
- size: o = "medium",
344
- variant: r = "icon",
345
- color: a = "default",
346
- sx: l,
370
+ icon: o,
371
+ size: r = "medium",
372
+ variant: i = "icon",
373
+ color: l = "default",
374
+ sx: a,
347
375
  className: c,
348
- loading: s,
349
- disabled: d,
350
- active: h,
351
- ...u
352
- }, g) {
353
- return /* @__PURE__ */ i(W, { placement: e, title: t ?? "", children: /* @__PURE__ */ i(
354
- Re,
376
+ loading: d,
377
+ disabled: u,
378
+ active: p,
379
+ ...s
380
+ }, b) {
381
+ return /* @__PURE__ */ n(P, { placement: e, title: t ?? "", children: /* @__PURE__ */ n(
382
+ ro,
355
383
  {
356
384
  className: `optionIconButton ${c ?? ""}`,
357
- sx: l,
385
+ sx: a,
358
386
  "data-testid": "icon-button",
359
- children: /* @__PURE__ */ i(
360
- Fe,
387
+ children: /* @__PURE__ */ n(
388
+ no,
361
389
  {
362
- ...u,
363
- ref: g,
364
- size: o,
365
- variant: r,
366
- color: a,
367
- active: h,
368
- disabled: d || s,
369
- children: s ? /* @__PURE__ */ i(_, { size: 18, color: "inherit" }) : n
390
+ ...s,
391
+ ref: b,
392
+ size: r,
393
+ variant: i,
394
+ color: l,
395
+ active: p,
396
+ disabled: u || d,
397
+ role: "button",
398
+ children: d ? /* @__PURE__ */ n(G, { size: 18, color: "inherit" }) : o
370
399
  }
371
400
  )
372
401
  }
373
402
  ) });
374
403
  }
375
- const Le = L(Oe), We = p(Pt, {
404
+ const q = O(io), ao = m(ne, {
376
405
  shouldForwardProp: (t) => !["extended", "width", "height"].includes(t)
377
- })(({ theme: t, extended: e, width: n, height: o }) => ({
406
+ })(({ theme: t, extended: e, width: o, height: r }) => ({
378
407
  ...e && {
379
408
  ".MuiMenuItem-root": {
380
409
  minHeight: t.spacing(6)
381
410
  }
382
411
  },
383
- ...n && {
412
+ ...o && {
384
413
  ".MuiList-root": {
385
- width: n,
386
- minWidth: n
414
+ width: o,
415
+ minWidth: o
387
416
  }
388
417
  },
389
- ...o && {
418
+ ...r && {
390
419
  ".MuiMenu-paper": {
391
420
  overflow: "hidden"
392
421
  },
393
422
  ".MuiList-root": {
394
- maxHeight: o
423
+ maxHeight: r
395
424
  }
396
425
  }
397
426
  }));
398
- function ho(t) {
399
- return /* @__PURE__ */ i(We, { ...t });
427
+ function lo({ extended: t, width: e, height: o, MenuListProps: r, ...i }, l) {
428
+ return /* @__PURE__ */ n(
429
+ ao,
430
+ {
431
+ ...i,
432
+ ref: l,
433
+ "data-name": "menu",
434
+ width: e,
435
+ height: o,
436
+ extended: t,
437
+ MenuListProps: {
438
+ ...r,
439
+ "data-width": e,
440
+ "data-height": o,
441
+ "data-extended": t
442
+ }
443
+ }
444
+ );
400
445
  }
401
- const Ee = p(Gt, {
446
+ const co = O(lo), so = m(ie, {
402
447
  shouldForwardProp: (t) => !["extended", "width", "height"].includes(t)
403
- })(({ theme: t, extended: e, width: n, height: o }) => ({
448
+ })(({ theme: t, extended: e, width: o, height: r }) => ({
404
449
  ...e && {
405
450
  ".MuiMenuItem-root": {
406
451
  minHeight: t.spacing(6)
407
452
  }
408
453
  },
409
454
  "&.MuiList-root": {
410
- ...n && {
411
- width: n,
412
- minWidth: n
413
- },
414
455
  ...o && {
415
- maxHeight: o
456
+ width: o,
457
+ minWidth: o
458
+ },
459
+ ...r && {
460
+ maxHeight: r
416
461
  }
417
462
  }
418
463
  }));
419
- function bo(t) {
420
- return /* @__PURE__ */ i(Ee, { ...t });
464
+ function uo({ extended: t, width: e, height: o, ...r }, i) {
465
+ return /* @__PURE__ */ n(
466
+ so,
467
+ {
468
+ ...r,
469
+ ref: i,
470
+ width: e,
471
+ height: o,
472
+ extended: t,
473
+ "data-name": "menu-list",
474
+ "data-width": e,
475
+ "data-height": o,
476
+ "data-extended": t
477
+ }
478
+ );
421
479
  }
422
- const He = p(vt)(() => ({
480
+ const En = O(uo), po = m(Y)(() => ({
423
481
  marginTop: "0 !important"
424
- })), _e = p(jt)(
482
+ })), go = m(ae)(
425
483
  ({ disabled: t, theme: e }) => ({
426
484
  display: "flex",
427
485
  alignItems: "center",
@@ -434,74 +492,87 @@ const He = p(vt)(() => ({
434
492
  }
435
493
  })
436
494
  );
437
- function Dt({
495
+ function fo({
438
496
  areAllSelected: t,
439
497
  areAnySelected: e,
440
- selectAll: n,
441
- selectAllDisabled: o
442
- }) {
443
- const r = R(), a = $(r);
444
- return /* @__PURE__ */ i(He, { fixed: !0, children: /* @__PURE__ */ x(
445
- _e,
498
+ selectAll: o,
499
+ selectAllDisabled: r,
500
+ "aria-label": i,
501
+ "data-testid": l
502
+ }, a) {
503
+ const c = R(), d = T(c);
504
+ return /* @__PURE__ */ n(
505
+ po,
446
506
  {
447
- variant: "body2",
448
- color: "textPrimary",
449
- component: "button",
450
- underline: "none",
451
- disabled: !!o,
452
- onClick: n,
453
- tabIndex: 0,
454
- children: [
455
- /* @__PURE__ */ i(
456
- q,
457
- {
458
- checked: t,
459
- indeterminate: e && !t,
460
- disabled: o
461
- }
462
- ),
463
- a.formatMessage({ id: "c4r.form.selectAll" })
464
- ]
507
+ ref: a,
508
+ fixed: !0,
509
+ "data-name": "menu-filter",
510
+ "aria-label": i,
511
+ "data-testid": l,
512
+ children: /* @__PURE__ */ x(
513
+ go,
514
+ {
515
+ variant: "body2",
516
+ color: "textPrimary",
517
+ component: "button",
518
+ underline: "none",
519
+ disabled: !!r,
520
+ onClick: o,
521
+ tabIndex: 0,
522
+ children: [
523
+ /* @__PURE__ */ n(
524
+ at,
525
+ {
526
+ checked: t,
527
+ indeterminate: e && !t,
528
+ disabled: r
529
+ }
530
+ ),
531
+ d.formatMessage({ id: "c4r.form.selectAll" })
532
+ ]
533
+ }
534
+ )
465
535
  }
466
- ) });
536
+ );
467
537
  }
468
- function Pe({
538
+ const Ht = O(fo);
539
+ function mo({
469
540
  selectedOptions: t,
470
541
  options: e,
471
- onChange: n
542
+ onChange: o
472
543
  }) {
473
- const [o, r] = T(t ?? []), a = e.length === o.length, l = o.length > 0;
474
- return H(() => {
475
- o !== t && r(o);
544
+ const [r, i] = B(t ?? []), l = e.length === r.length, a = r.length > 0;
545
+ return z(() => {
546
+ r !== t && i(r);
476
547
  }, [t]), {
477
- areAllSelected: a,
478
- areAnySelected: l,
479
- currentOptions: o,
480
- handleChange: (h) => {
548
+ areAllSelected: l,
549
+ areAnySelected: a,
550
+ currentOptions: r,
551
+ handleChange: (p) => {
481
552
  const {
482
- target: { value: u }
483
- } = h, g = typeof u == "string" ? u.split(",") : u.filter((f) => f !== void 0);
484
- r(g), n(g);
553
+ target: { value: s }
554
+ } = p, b = typeof s == "string" ? s.split(",") : s.filter((g) => g !== void 0);
555
+ i(b), o(b);
485
556
  },
486
557
  selectAll: () => {
487
- const h = e == null ? void 0 : e.filter(({ disabled: u }) => !u).map(({ value: u }) => u);
488
- h && (h.every(
489
- (g) => o.includes(g)
490
- ) ? (r([]), n([])) : (r(h), n(h)));
558
+ const p = e == null ? void 0 : e.filter(({ disabled: s }) => !s).map(({ value: s }) => s);
559
+ p && (p.every(
560
+ (b) => r.includes(b)
561
+ ) ? (i([]), o([])) : (i(p), o(p)));
491
562
  },
492
563
  unselectAll: () => {
493
- r([]), n([]);
564
+ i([]), o([]);
494
565
  }
495
566
  };
496
567
  }
497
- const Ge = p(mt)(({ theme: t }) => ({
568
+ const bo = m($t)(({ theme: t }) => ({
498
569
  "&.Mui-disabled": {
499
570
  pointerEvents: "auto",
500
571
  "&:hover": {
501
572
  backgroundColor: `${t.palette.background.default} !important`
502
573
  }
503
574
  }
504
- })), je = p(Y, {
575
+ })), ho = m(it, {
505
576
  shouldForwardProp: (t) => t !== "size"
506
577
  })(({ theme: t, size: e }) => ({
507
578
  display: "none",
@@ -518,86 +589,86 @@ const Ge = p(mt)(({ theme: t }) => ({
518
589
  top: t.spacing(3),
519
590
  right: t.spacing(5)
520
591
  }
521
- })), Ve = [], Ne = () => {
592
+ })), xo = [], yo = () => {
522
593
  };
523
- function Ue({
524
- options: t = Ve,
594
+ function Co({
595
+ options: t = xo,
525
596
  selectedOptions: e,
526
- size: n = "small",
527
- placeholder: o,
528
- showCounter: r,
529
- showFilters: a = !0,
530
- onChange: l = Ne,
597
+ size: o = "small",
598
+ placeholder: r,
599
+ showCounter: i,
600
+ showFilters: l = !0,
601
+ onChange: a = yo,
531
602
  selectAllDisabled: c,
532
- tooltipPlacement: s,
533
- variant: d,
534
- ...h
535
- }, u) {
603
+ tooltipPlacement: d,
604
+ variant: u,
605
+ ...p
606
+ }, s) {
536
607
  const {
537
- areAllSelected: g,
538
- areAnySelected: f,
539
- currentOptions: m,
608
+ areAllSelected: b,
609
+ areAnySelected: g,
610
+ currentOptions: f,
540
611
  handleChange: y,
541
- selectAll: b,
542
- unselectAll: D
543
- } = Pe({
612
+ selectAll: h,
613
+ unselectAll: w
614
+ } = mo({
544
615
  options: t,
545
616
  selectedOptions: e,
546
- onChange: l
547
- }), w = n === "small", A = w || d === "standard" ? 0 : 2, M = R(), k = $(M), I = `${m.length} ${k.formatMessage({
617
+ onChange: a
618
+ }), M = o === "small", A = M || u === "standard" ? 0 : 2, C = R(), k = T(C), v = `${f.length} ${k.formatMessage({
548
619
  id: "c4r.form.selected"
549
- })}`, F = pt(() => g ? /* @__PURE__ */ i(
550
- B,
620
+ })}`, $ = At(() => b ? /* @__PURE__ */ n(
621
+ F,
551
622
  {
552
623
  component: "span",
553
- variant: w ? "body2" : "body1",
624
+ variant: M ? "body2" : "body1",
554
625
  color: "textPrimary",
555
626
  ml: A,
556
627
  children: k.formatMessage({ id: "c4r.form.allSelected" })
557
628
  }
558
- ) : f ? /* @__PURE__ */ i(
559
- B,
629
+ ) : g ? /* @__PURE__ */ n(
630
+ F,
560
631
  {
561
632
  component: "span",
562
- variant: w ? "body2" : "body1",
633
+ variant: M ? "body2" : "body1",
563
634
  color: "textPrimary",
564
635
  ml: A,
565
- children: r && m.length > 1 ? I : m.join(", ")
636
+ children: i && f.length > 1 ? v : f.join(", ")
566
637
  }
567
- ) : /* @__PURE__ */ i(
568
- B,
638
+ ) : /* @__PURE__ */ n(
639
+ F,
569
640
  {
570
641
  component: "span",
571
- variant: w ? "body2" : "body1",
642
+ variant: M ? "body2" : "body1",
572
643
  color: "text.hint",
573
644
  ml: A,
574
- children: o ?? k.formatMessage({ id: "c4r.form.noneSelected" })
645
+ children: r ?? k.formatMessage({ id: "c4r.form.noneSelected" })
575
646
  }
576
647
  ), [
648
+ b,
577
649
  g,
650
+ v,
578
651
  f,
579
- I,
580
- m,
581
652
  k,
582
- w,
653
+ M,
583
654
  A,
584
- o,
585
- r
655
+ r,
656
+ i
586
657
  ]);
587
658
  return /* @__PURE__ */ x(
588
- Te,
659
+ eo,
589
660
  {
590
- ...h,
591
- ref: u,
661
+ ...p,
662
+ ref: s,
592
663
  multiple: !0,
593
664
  displayEmpty: !0,
594
- placeholder: o,
595
- value: m,
596
- renderValue: () => F,
665
+ placeholder: r,
666
+ value: f,
667
+ renderValue: () => $,
597
668
  onChange: y,
598
- size: n,
599
- variant: d,
600
- endAdornment: a && f && /* @__PURE__ */ i(je, { position: "end", size: n, children: /* @__PURE__ */ i(O, { onClick: D, size: n, children: /* @__PURE__ */ i(yt, {}) }) }),
669
+ size: o,
670
+ variant: u,
671
+ endAdornment: l && g && /* @__PURE__ */ n(ho, { position: "end", size: o, children: /* @__PURE__ */ n(W, { onClick: w, size: o, children: /* @__PURE__ */ n(Ft, {}) }) }),
601
672
  menuProps: {
602
673
  PaperProps: {
603
674
  sx: {
@@ -608,50 +679,50 @@ function Ue({
608
679
  }
609
680
  },
610
681
  children: [
611
- a && /* @__PURE__ */ i(
612
- Dt,
682
+ l && /* @__PURE__ */ n(
683
+ Ht,
613
684
  {
614
- areAllSelected: g,
615
- areAnySelected: f,
616
- selectAll: b,
685
+ areAllSelected: b,
686
+ areAnySelected: g,
687
+ selectAll: h,
617
688
  selectAllDisabled: c
618
689
  }
619
690
  ),
620
- t == null ? void 0 : t.map((C) => {
621
- const S = /* @__PURE__ */ x(
622
- Ge,
691
+ t == null ? void 0 : t.map((I) => {
692
+ const E = /* @__PURE__ */ x(
693
+ bo,
623
694
  {
624
- value: C.value,
625
- disabled: C.disabled,
695
+ value: I.value,
696
+ disabled: I.disabled,
626
697
  tabIndex: 0,
627
698
  children: [
628
- /* @__PURE__ */ i(
629
- q,
699
+ /* @__PURE__ */ n(
700
+ at,
630
701
  {
631
- disabled: C.disabled,
632
- checked: m.includes(C.value)
702
+ disabled: I.disabled,
703
+ checked: f.includes(I.value)
633
704
  }
634
705
  ),
635
- /* @__PURE__ */ i(bt, { primary: C.label })
706
+ /* @__PURE__ */ n(U, { primary: I.label })
636
707
  ]
637
708
  },
638
- C.value
709
+ I.value
639
710
  );
640
- return C.tooltip ? /* @__PURE__ */ i(
641
- W,
711
+ return I.tooltip ? /* @__PURE__ */ n(
712
+ P,
642
713
  {
643
- title: C.tooltip,
644
- placement: s,
645
- children: S
714
+ title: I.tooltip,
715
+ placement: d,
716
+ children: E
646
717
  },
647
- C.value
648
- ) : S;
718
+ I.value
719
+ ) : E;
649
720
  })
650
721
  ]
651
722
  }
652
723
  );
653
724
  }
654
- const xo = L(Ue), Ye = p(ft, {
725
+ const Hn = O(Co), Mo = m(It, {
655
726
  shouldForwardProp: (t) => t !== "cursor"
656
727
  })(
657
728
  ({ cursor: t, theme: e }) => ({
@@ -679,286 +750,286 @@ const xo = L(Ue), Ye = p(ft, {
679
750
  }
680
751
  })
681
752
  );
682
- function qe({
753
+ function ko({
683
754
  buttonText: t,
684
755
  hasFiles: e,
685
- size: n,
686
- error: o,
687
- disabled: r,
688
- handleReset: a,
689
- handleOpen: l,
756
+ size: o,
757
+ error: r,
758
+ disabled: i,
759
+ handleReset: l,
760
+ handleOpen: a,
690
761
  inProgress: c
691
762
  }) {
692
- return /* @__PURE__ */ i(Y, { position: "end", children: c ? /* @__PURE__ */ i(O, { "aria-label": "loading", disabled: !0, size: n, children: /* @__PURE__ */ i(_, { size: 18 }) }) : e ? /* @__PURE__ */ i(
693
- O,
763
+ return /* @__PURE__ */ n(it, { position: "end", children: c ? /* @__PURE__ */ n(W, { "aria-label": "Loading", disabled: !0, size: o, children: /* @__PURE__ */ n(G, { size: 18 }) }) : e ? /* @__PURE__ */ n(
764
+ W,
694
765
  {
695
- onClick: a,
696
- size: n,
697
- "aria-label": "delete",
698
- disabled: r,
699
- children: /* @__PURE__ */ i(yt, {})
766
+ onClick: l,
767
+ size: o,
768
+ "aria-label": "Delete",
769
+ disabled: i,
770
+ children: /* @__PURE__ */ n(Ft, {})
700
771
  }
701
- ) : /* @__PURE__ */ i(
702
- gt,
772
+ ) : /* @__PURE__ */ n(
773
+ St,
703
774
  {
704
- onClick: l,
705
- size: n,
775
+ onClick: a,
776
+ size: o,
706
777
  variant: "text",
707
- color: o ? "default" : "primary",
708
- disabled: r,
778
+ color: r ? "default" : "primary",
779
+ disabled: i,
709
780
  children: t
710
781
  }
711
782
  ) });
712
783
  }
713
- function ze({
784
+ function vo({
714
785
  name: t,
715
786
  // eslint-disable-next-line @typescript-eslint/no-unused-vars
716
787
  multiple: e,
717
788
  // multiple prop defined here for compatibility with cloud-native but not used in the component
718
- handleReset: n,
719
- handleOpen: o,
720
- dragOver: r,
721
- error: a,
722
- placeholder: l,
789
+ handleReset: o,
790
+ handleOpen: r,
791
+ dragOver: i,
792
+ error: l,
793
+ placeholder: a,
723
794
  focused: c,
724
- buttonText: s = "Browse",
725
- inProgress: d,
726
- InputProps: h,
727
- size: u = "small",
728
- hasFiles: g,
729
- cursor: f = "pointer",
730
- ...m
795
+ buttonText: d = "Browse",
796
+ inProgress: u,
797
+ InputProps: p,
798
+ size: s = "small",
799
+ hasFiles: b,
800
+ cursor: g = "pointer",
801
+ ...f
731
802
  }) {
732
- return /* @__PURE__ */ i(
733
- Ye,
803
+ return /* @__PURE__ */ n(
804
+ Mo,
734
805
  {
735
- ...m,
736
- size: u,
737
- error: a,
738
- placeholder: l,
739
- focused: c ?? r,
740
- cursor: f,
806
+ ...f,
807
+ size: s,
808
+ error: l,
809
+ placeholder: a,
810
+ focused: c ?? i,
811
+ cursor: g,
741
812
  InputProps: {
742
- ...h,
813
+ ...p,
743
814
  name: t,
744
815
  // multiple prop cannot be used here because it is not a valid prop for TextField InputProps
745
816
  // not used for any UI logic
746
817
  readOnly: !0,
747
- endAdornment: /* @__PURE__ */ i(
748
- qe,
818
+ endAdornment: /* @__PURE__ */ n(
819
+ ko,
749
820
  {
750
- buttonText: s,
751
- hasFiles: g,
752
- size: u,
753
- error: a,
754
- disabled: !!r,
755
- handleReset: n,
756
- handleOpen: o,
757
- inProgress: d
821
+ buttonText: d,
822
+ hasFiles: b,
823
+ size: s,
824
+ error: l,
825
+ disabled: !!i,
826
+ handleReset: o,
827
+ handleOpen: r,
828
+ inProgress: u
758
829
  }
759
830
  )
760
831
  }
761
832
  }
762
833
  );
763
834
  }
764
- function Ze({
835
+ function wo({
765
836
  onChange: t,
766
837
  files: e,
767
- multiple: n,
768
- placeholder: o,
769
- uploadInputRef: r
838
+ multiple: o,
839
+ placeholder: r,
840
+ uploadInputRef: i
770
841
  }) {
771
- const a = R(), l = $(a), [c, s] = T(""), [d, h] = T(!1);
772
- H(() => {
773
- !e || e.length === 0 ? s("") : e.length === 1 ? s(e[0].name) : s(
774
- l.formatMessage(
842
+ const l = R(), a = T(l), [c, d] = B(""), [u, p] = B(!1);
843
+ z(() => {
844
+ !e || e.length === 0 ? d("") : e.length === 1 ? d(e[0].name) : d(
845
+ a.formatMessage(
775
846
  { id: "c4r.form.filesSelected" },
776
847
  { count: e.length }
777
848
  )
778
849
  );
779
- }, [e, l]);
780
- const u = () => {
781
- var M;
782
- (M = r.current) == null || M.click();
783
- }, g = (M) => {
784
- M.preventDefault(), h(!0);
785
- }, f = (M) => {
786
- M.preventDefault(), h(!1);
787
- }, m = (M) => {
788
- M.preventDefault(), h(!1);
789
- const k = M.dataTransfer.items, I = y(k);
790
- t == null || t(I);
791
- }, y = (M) => {
850
+ }, [e, a]);
851
+ const s = () => {
852
+ var C;
853
+ (C = i.current) == null || C.click();
854
+ }, b = (C) => {
855
+ C.preventDefault(), p(!0);
856
+ }, g = (C) => {
857
+ C.preventDefault(), p(!1);
858
+ }, f = (C) => {
859
+ C.preventDefault(), p(!1);
860
+ const k = C.dataTransfer.items, v = y(k);
861
+ t == null || t(v);
862
+ }, y = (C) => {
792
863
  const k = [];
793
- for (const I of Array.from(M))
794
- if (I.kind === "file") {
795
- const F = I.getAsFile();
796
- k.push(F);
864
+ for (const v of Array.from(C))
865
+ if (v.kind === "file") {
866
+ const $ = v.getAsFile();
867
+ k.push($);
797
868
  }
798
869
  return k;
799
- }, b = (M) => {
800
- const k = Array.from(M.target.files);
870
+ }, h = (C) => {
871
+ const k = Array.from(C.target.files);
801
872
  t == null || t(k);
802
- }, D = (M) => {
803
- M.stopPropagation(), s("");
804
- }, w = pt(() => {
805
- const M = l.formatMessage(
873
+ }, w = (C) => {
874
+ C.stopPropagation(), d("");
875
+ }, M = At(() => {
876
+ const C = a.formatMessage(
806
877
  { id: "c4r.form.dragPlaceholder" },
807
- { count: n ? 0 : 1 }
808
- ), k = l.formatMessage(
878
+ { count: o ? 0 : 1 }
879
+ ), k = a.formatMessage(
809
880
  { id: "c4r.form.dragActivePlaceholder" },
810
- { count: n ? 0 : 1 }
881
+ { count: o ? 0 : 1 }
811
882
  );
812
- let I = "";
813
- return d ? I = k : I = o ?? M, I;
814
- }, [d, n, o, l]);
883
+ let v = "";
884
+ return u ? v = k : v = r ?? C, v;
885
+ }, [u, o, r, a]);
815
886
  return {
816
887
  filesText: c,
817
- getPlaceholder: w,
818
- dragOver: d,
888
+ getPlaceholder: M,
889
+ dragOver: u,
819
890
  inputEvents: {
820
- onDragOver: g,
821
- onDragLeave: f,
822
- onDrop: m,
823
- onClick: u
891
+ onDragOver: b,
892
+ onDragLeave: g,
893
+ onDrop: f,
894
+ onClick: s
824
895
  },
825
- handleFiles: b,
826
- handleReset: D
896
+ handleFiles: h,
897
+ handleReset: w
827
898
  };
828
899
  }
829
- const Je = ["application/JSON"];
830
- function yo({
900
+ const Do = ["application/JSON"];
901
+ function Pn({
831
902
  name: t,
832
903
  buttonText: e,
833
- accept: n,
834
- files: o,
835
- inProgress: r,
836
- onChange: a,
837
- multiple: l,
904
+ accept: o,
905
+ files: r,
906
+ inProgress: i,
907
+ onChange: l,
908
+ multiple: a,
838
909
  placeholder: c,
839
- error: s,
840
- focused: d,
841
- nativeInputProps: h,
842
- ...u
910
+ error: d,
911
+ focused: u,
912
+ nativeInputProps: p,
913
+ ...s
843
914
  }) {
844
- const g = n ?? Je, f = U(null), {
845
- filesText: m,
915
+ const b = o ?? Do, g = Z(null), {
916
+ filesText: f,
846
917
  getPlaceholder: y,
847
- dragOver: b,
848
- inputEvents: D,
849
- handleFiles: w,
918
+ dragOver: h,
919
+ inputEvents: w,
920
+ handleFiles: M,
850
921
  handleReset: A
851
- } = Ze({
852
- uploadInputRef: f,
853
- files: o,
854
- onChange: a,
855
- multiple: l,
922
+ } = wo({
923
+ uploadInputRef: g,
924
+ files: r,
925
+ onChange: l,
926
+ multiple: a,
856
927
  placeholder: c
857
928
  });
858
- return /* @__PURE__ */ x(j, { children: [
859
- /* @__PURE__ */ i(
860
- ze,
929
+ return /* @__PURE__ */ x(H, { children: [
930
+ /* @__PURE__ */ n(
931
+ vo,
861
932
  {
862
- ...u,
933
+ ...s,
863
934
  placeholder: y,
864
- value: m,
865
- error: s,
866
- focused: d ?? b,
935
+ value: f,
936
+ error: d,
937
+ focused: u ?? h,
867
938
  handleReset: A,
868
- dragOver: b,
869
- inProgress: r,
870
- hasFiles: !!m,
871
- InputProps: D,
939
+ dragOver: h,
940
+ inProgress: i,
941
+ hasFiles: !!f,
942
+ InputProps: w,
872
943
  buttonText: e
873
944
  }
874
945
  ),
875
- /* @__PURE__ */ i(
946
+ /* @__PURE__ */ n(
876
947
  "input",
877
948
  {
878
- ...h,
879
- ref: f,
949
+ ...p,
950
+ ref: g,
880
951
  style: { display: "none" },
881
952
  type: "file",
882
953
  "aria-label": t,
883
954
  name: t,
884
- accept: String(g),
885
- multiple: l,
886
- onChange: w
955
+ accept: String(b),
956
+ multiple: a,
957
+ onChange: M
887
958
  }
888
959
  )
889
960
  ] });
890
961
  }
891
- function Xe({
962
+ function Ao({
892
963
  disabled: t,
893
964
  loading: e,
894
- ...n
895
- }, o) {
896
- return /* @__PURE__ */ i(
897
- z,
965
+ ...o
966
+ }, r) {
967
+ return /* @__PURE__ */ n(
968
+ lt,
898
969
  {
899
- ...n,
900
- ref: o,
970
+ ...o,
971
+ ref: r,
901
972
  disabled: t || e,
902
- popupIcon: e ? /* @__PURE__ */ i(_, { size: 18, color: "inherit" }) : /* @__PURE__ */ i(J, {}),
973
+ popupIcon: e ? /* @__PURE__ */ n(G, { size: 18, color: "inherit" }) : /* @__PURE__ */ n(ct, {}),
903
974
  "data-name": "autocomplete",
904
975
  ListboxProps: {
905
976
  "aria-multiselectable": !1,
906
- ...n.ListboxProps
977
+ ...o.ListboxProps
907
978
  }
908
979
  }
909
980
  );
910
981
  }
911
- const Mo = L(Xe), At = (t) => t && typeof t == "object" ? t.title ?? String(t) : String(t), kt = (t, e) => typeof t != "object" || t === null ? { value: t, multiple: e } : { ...t, multiple: e }, It = (t) => /* @__PURE__ */ i("span", { "data-testid": "more-options-tag", children: `+${t}` });
912
- function wt() {
913
- return { renderOption: (e, n, o, r, a) => {
982
+ const zn = O(Ao), Pt = (t) => t && typeof t == "object" ? t.title ?? String(t) : String(t), zt = (t, e) => typeof t != "object" || t === null ? { value: t, multiple: e } : { ...t, multiple: e }, Nt = (t) => /* @__PURE__ */ n("span", { "data-testid": "more-options-tag", children: `+${t}` });
983
+ function _t() {
984
+ return { renderOption: (e, o, r, i, l) => {
914
985
  const {
915
- title: l,
986
+ title: a,
916
987
  inputValue: c,
917
- divider: s,
918
- fixed: d,
919
- extended: h,
920
- dense: u,
921
- destructive: g,
922
- disabled: f,
923
- subtitle: m,
988
+ divider: d,
989
+ fixed: u,
990
+ extended: p,
991
+ dense: s,
992
+ destructive: b,
993
+ disabled: g,
994
+ subtitle: f,
924
995
  iconColor: y,
925
- startAdornment: b,
926
- endAdornment: D,
927
- alternativeTitle: w,
996
+ startAdornment: h,
997
+ endAdornment: w,
998
+ alternativeTitle: M,
928
999
  secondaryText: A,
929
- multiple: M
930
- } = n, { key: k, ...I } = e, F = typeof n == "string" || typeof n == "number", C = (S, E, tt, et) => tt || et || (E && typeof E == "object" && "value" in E ? String(E.value) : S(E));
931
- return /* @__PURE__ */ i(Ot, { children: s ? /* @__PURE__ */ i(G, {}) : /* @__PURE__ */ x(j, { children: [
932
- c && /* @__PURE__ */ i(G, {}),
1000
+ multiple: C
1001
+ } = o, { key: k, ...v } = e, $ = typeof o == "string" || typeof o == "number", I = (E, S, L, V) => L || V || (S && typeof S == "object" && "value" in S ? String(S.value) : E(S));
1002
+ return /* @__PURE__ */ n(te, { children: d ? /* @__PURE__ */ n(_, {}) : /* @__PURE__ */ x(H, { children: [
1003
+ c && /* @__PURE__ */ n(_, {}),
933
1004
  /* @__PURE__ */ x(
934
- vt,
1005
+ Y,
935
1006
  {
936
- ...I,
937
- ...!F && {
938
- fixed: d,
939
- extended: h,
940
- dense: u,
941
- destructive: g,
942
- disabled: f,
943
- subtitle: m,
1007
+ ...v,
1008
+ ...!$ && {
1009
+ fixed: u,
1010
+ extended: p,
1011
+ dense: s,
1012
+ destructive: b,
1013
+ disabled: g,
1014
+ subtitle: f,
944
1015
  iconColor: y
945
1016
  },
946
- "aria-disabled": m || f,
947
- "aria-selected": o.selected,
1017
+ "aria-disabled": f || g,
1018
+ "aria-selected": r.selected,
948
1019
  children: [
949
- !m && (b || M || a) && /* @__PURE__ */ x(Vt, { children: [
950
- a || M && /* @__PURE__ */ i(q, { checked: o.selected }),
951
- b
1020
+ !f && (h || C || l) && /* @__PURE__ */ x(rt, { children: [
1021
+ l || C && /* @__PURE__ */ n(at, { checked: r.selected }),
1022
+ h
952
1023
  ] }),
953
- /* @__PURE__ */ x(bt, { children: [
954
- C(
955
- r ?? At,
956
- n,
957
- w,
958
- l
1024
+ /* @__PURE__ */ x(U, { children: [
1025
+ I(
1026
+ i ?? Pt,
1027
+ o,
1028
+ M,
1029
+ a
959
1030
  ),
960
- A && /* @__PURE__ */ i(
961
- B,
1031
+ A && /* @__PURE__ */ n(
1032
+ F,
962
1033
  {
963
1034
  component: "p",
964
1035
  variant: "caption",
@@ -967,114 +1038,114 @@ function wt() {
967
1038
  }
968
1039
  )
969
1040
  ] }),
970
- !m && D
1041
+ !f && w
971
1042
  ]
972
1043
  }
973
1044
  )
974
1045
  ] }) }, k);
975
1046
  } };
976
1047
  }
977
- function Ke({
1048
+ function So({
978
1049
  getOptionLabel: t,
979
1050
  newItemLabel: e,
980
- newItemIcon: n,
981
- multiple: o
1051
+ newItemIcon: o,
1052
+ multiple: r
982
1053
  }) {
983
- const r = R(), a = $(r), l = Nt(), { renderOption: c } = wt();
1054
+ const i = R(), l = T(i), a = le(), { renderOption: c } = _t();
984
1055
  return {
985
- creatableFilterOptions: (u, g) => {
986
- const f = l(
987
- u,
988
- g
989
- ), { inputValue: m } = g, y = u.some(
990
- (b) => m === t(b)
1056
+ creatableFilterOptions: (s, b) => {
1057
+ const g = a(
1058
+ s,
1059
+ b
1060
+ ), { inputValue: f } = b, y = s.some(
1061
+ (h) => f === t(h)
991
1062
  );
992
- if (m.length > 1 && m !== "" && !y) {
993
- let b;
994
- typeof e == "function" ? b = e(m) : e ? b = `${e} "${m}"` : b = `${a.formatMessage({ id: "c4r.form.add" })} "${m}"`, f.push({
995
- inputValue: m,
996
- title: b
1063
+ if (f.length > 1 && f !== "" && !y) {
1064
+ let h;
1065
+ typeof e == "function" ? h = e(f) : e ? h = `${e} "${f}"` : h = `${l.formatMessage({ id: "c4r.form.add" })} "${f}"`, g.push({
1066
+ inputValue: f,
1067
+ title: h
997
1068
  });
998
1069
  }
999
- return f;
1070
+ return g;
1000
1071
  },
1001
- creatableOptionLabel: (u) => typeof u == "string" ? u : u.inputValue ? u.inputValue : t(u),
1002
- creatableRenderOption: (u, g, f) => {
1003
- const m = g.inputValue ? n ?? /* @__PURE__ */ i(de, {}) : void 0, y = kt(g, !!o);
1072
+ creatableOptionLabel: (s) => typeof s == "string" ? s : s.inputValue ? s.inputValue : t(s),
1073
+ creatableRenderOption: (s, b, g) => {
1074
+ const f = b.inputValue ? o ?? /* @__PURE__ */ n(Ae, {}) : void 0, y = zt(b, !!r);
1004
1075
  return c(
1005
- u,
1076
+ s,
1006
1077
  y,
1007
- f,
1078
+ g,
1008
1079
  t,
1009
- m
1080
+ f
1010
1081
  );
1011
1082
  }
1012
1083
  };
1013
1084
  }
1014
- function Bt({
1085
+ function Gt({
1015
1086
  options: t,
1016
1087
  value: e,
1017
- onChange: n,
1018
- getOptionLabel: o
1088
+ onChange: o,
1089
+ getOptionLabel: r
1019
1090
  }) {
1020
- const [r, a] = T(
1091
+ const [i, l] = B(
1021
1092
  Array.isArray(e) ? e : e ? [e] : []
1022
- ), { renderOption: l } = wt();
1023
- H(() => {
1024
- const g = Array.isArray(e) ? e : e ? [e] : [];
1025
- a(g);
1093
+ ), { renderOption: a } = _t();
1094
+ z(() => {
1095
+ const b = Array.isArray(e) ? e : e ? [e] : [];
1096
+ l(b);
1026
1097
  }, [e]);
1027
- const c = r.length === t.length, s = r.length > 0 && r.length < t.length;
1098
+ const c = i.length === t.length, d = i.length > 0 && i.length < t.length;
1028
1099
  return {
1029
- multipleValue: r,
1100
+ multipleValue: i,
1030
1101
  allSelected: c,
1031
- someSelected: s,
1032
- handleSelectAll: (g) => {
1033
- const f = c ? [] : [...t];
1034
- a(f), n == null || n(
1102
+ someSelected: d,
1103
+ handleSelectAll: (b) => {
1104
+ const g = c ? [] : [...t];
1105
+ l(g), o == null || o(
1106
+ b,
1035
1107
  g,
1036
- f,
1037
1108
  "selectOption"
1038
1109
  );
1039
1110
  },
1040
- handleChange: (g, f, m) => {
1041
- a(f === null ? [] : f), n == null || n(g, f, m);
1111
+ handleChange: (b, g, f) => {
1112
+ l(g === null ? [] : g), o == null || o(b, g, f);
1042
1113
  },
1043
- multipleRenderOption: (g, f, m) => {
1044
- const y = kt(f, !0);
1045
- return l(
1046
- g,
1114
+ multipleRenderOption: (b, g, f) => {
1115
+ const y = zt(g, !0);
1116
+ return a(
1117
+ b,
1047
1118
  y,
1048
- m,
1049
- o
1119
+ f,
1120
+ r
1050
1121
  );
1051
1122
  }
1052
1123
  };
1053
1124
  }
1054
- function Qe({
1125
+ function Io({
1055
1126
  children: t,
1056
1127
  showFilters: e,
1057
- allSelected: n,
1058
- someSelected: o,
1059
- handleSelectAll: r = () => {
1128
+ allSelected: o,
1129
+ someSelected: r,
1130
+ handleSelectAll: i = () => {
1060
1131
  },
1061
- multiple: a,
1062
- ...l
1132
+ multiple: l,
1133
+ ...a
1063
1134
  }, c) {
1064
1135
  return /* @__PURE__ */ x(
1065
1136
  "ul",
1066
1137
  {
1067
1138
  ref: c,
1068
- ...l,
1139
+ ...a,
1069
1140
  role: "listbox",
1070
- "aria-multiselectable": a,
1141
+ "aria-multiselectable": l,
1071
1142
  children: [
1072
- e && a && /* @__PURE__ */ i(
1073
- Dt,
1143
+ e && l && /* @__PURE__ */ n(
1144
+ Ht,
1074
1145
  {
1075
- areAllSelected: !!n,
1076
- areAnySelected: !!o,
1077
- selectAll: r
1146
+ areAllSelected: !!o,
1147
+ areAnySelected: !!r,
1148
+ selectAll: i
1078
1149
  }
1079
1150
  ),
1080
1151
  t
@@ -1082,127 +1153,206 @@ function Qe({
1082
1153
  }
1083
1154
  );
1084
1155
  }
1085
- const St = L(Qe);
1086
- function tn({
1156
+ const jt = O(Io);
1157
+ function $o({
1087
1158
  newItemLabel: t,
1088
1159
  newItemIcon: e,
1089
- getOptionLabel: n = At,
1090
- multiple: o,
1091
- disableCloseOnSelect: r,
1092
- disabled: a,
1093
- loading: l,
1160
+ getOptionLabel: o = Pt,
1161
+ multiple: r,
1162
+ disableCloseOnSelect: i,
1163
+ disabled: l,
1164
+ loading: a,
1094
1165
  showFilters: c,
1095
- options: s = [],
1096
- value: d,
1097
- onChange: h,
1098
- getLimitTagsText: u,
1099
- ...g
1100
- }, f) {
1101
- const { freeSolo: m = !0, ...y } = g, {
1102
- multipleValue: b,
1103
- allSelected: D,
1104
- someSelected: w,
1166
+ options: d = [],
1167
+ value: u,
1168
+ onChange: p,
1169
+ getLimitTagsText: s,
1170
+ ...b
1171
+ }, g) {
1172
+ const { freeSolo: f = !0, ...y } = b, {
1173
+ multipleValue: h,
1174
+ allSelected: w,
1175
+ someSelected: M,
1105
1176
  handleSelectAll: A,
1106
- handleChange: M
1107
- } = Bt({
1108
- options: s,
1109
- value: d,
1110
- onChange: h
1177
+ handleChange: C
1178
+ } = Gt({
1179
+ options: d,
1180
+ value: u,
1181
+ onChange: p
1111
1182
  }), {
1112
1183
  creatableFilterOptions: k,
1113
- creatableOptionLabel: I,
1114
- creatableRenderOption: F
1115
- } = Ke({
1116
- getOptionLabel: n,
1184
+ creatableOptionLabel: v,
1185
+ creatableRenderOption: $
1186
+ } = So({
1187
+ getOptionLabel: o,
1117
1188
  newItemLabel: t,
1118
1189
  newItemIcon: e,
1119
- multiple: o
1190
+ multiple: r
1120
1191
  });
1121
- return /* @__PURE__ */ i(
1122
- z,
1192
+ return /* @__PURE__ */ n(
1193
+ lt,
1123
1194
  {
1124
1195
  ...y,
1125
- ref: f,
1126
- options: s,
1127
- value: o ? b : d,
1128
- onChange: M,
1196
+ ref: g,
1197
+ options: d,
1198
+ value: r ? h : u,
1199
+ onChange: C,
1129
1200
  filterOptions: k,
1130
- getOptionLabel: I,
1131
- renderOption: F,
1132
- freeSolo: m,
1201
+ getOptionLabel: v,
1202
+ renderOption: $,
1203
+ freeSolo: f,
1133
1204
  forcePopupIcon: !0,
1134
- multiple: o,
1135
- disableCloseOnSelect: r ?? o,
1136
- ListboxComponent: St,
1205
+ multiple: r,
1206
+ disableCloseOnSelect: i ?? r,
1207
+ ListboxComponent: jt,
1137
1208
  ListboxProps: {
1138
1209
  showFilters: c,
1139
- allSelected: D,
1140
- someSelected: w,
1210
+ allSelected: w,
1211
+ someSelected: M,
1141
1212
  handleSelectAll: A,
1142
- multiple: o
1213
+ multiple: r
1143
1214
  },
1144
- getLimitTagsText: u ?? It,
1145
- disabled: a || l,
1146
- popupIcon: l ? /* @__PURE__ */ i(_, { size: 18, color: "inherit" }) : /* @__PURE__ */ i(J, {}),
1215
+ getLimitTagsText: s ?? Nt,
1216
+ disabled: l || a,
1217
+ popupIcon: a ? /* @__PURE__ */ n(G, { size: 18, color: "inherit" }) : /* @__PURE__ */ n(ct, {}),
1147
1218
  "data-name": "creatable-autocomplete"
1148
1219
  }
1149
1220
  );
1150
1221
  }
1151
- const Co = L(tn);
1152
- function en({
1222
+ const Nn = O($o);
1223
+ function Bo({
1153
1224
  renderOption: t,
1154
1225
  disableCloseOnSelect: e = !0,
1155
- disabled: n,
1156
- loading: o,
1157
- showFilters: r,
1158
- options: a,
1159
- value: l,
1226
+ disabled: o,
1227
+ loading: r,
1228
+ showFilters: i,
1229
+ options: l,
1230
+ value: a,
1160
1231
  onChange: c,
1161
- getOptionLabel: s,
1162
- getLimitTagsText: d,
1163
- ...h
1164
- }, u) {
1232
+ getOptionLabel: d,
1233
+ getLimitTagsText: u,
1234
+ ...p
1235
+ }, s) {
1165
1236
  const {
1166
- multipleValue: g,
1167
- allSelected: f,
1168
- someSelected: m,
1237
+ multipleValue: b,
1238
+ allSelected: g,
1239
+ someSelected: f,
1169
1240
  handleSelectAll: y,
1170
- handleChange: b,
1171
- multipleRenderOption: D
1172
- } = Bt({
1173
- options: a,
1174
- value: l,
1241
+ handleChange: h,
1242
+ multipleRenderOption: w
1243
+ } = Gt({
1244
+ options: l,
1245
+ value: a,
1175
1246
  onChange: c,
1176
- getOptionLabel: s
1247
+ getOptionLabel: d
1177
1248
  });
1178
- return /* @__PURE__ */ i(
1179
- z,
1249
+ return /* @__PURE__ */ n(
1250
+ lt,
1180
1251
  {
1181
- ...h,
1182
- ref: u,
1183
- options: a,
1184
- value: g,
1185
- onChange: b,
1186
- getOptionLabel: s,
1187
- renderOption: t ?? D,
1188
- ListboxComponent: St,
1252
+ ...p,
1253
+ ref: s,
1254
+ options: l,
1255
+ value: b,
1256
+ onChange: h,
1257
+ getOptionLabel: d,
1258
+ renderOption: t ?? w,
1259
+ ListboxComponent: jt,
1189
1260
  ListboxProps: {
1190
- showFilters: r,
1191
- allSelected: f,
1192
- someSelected: m,
1261
+ showFilters: i,
1262
+ allSelected: g,
1263
+ someSelected: f,
1193
1264
  handleSelectAll: y,
1194
1265
  multiple: !0
1195
1266
  },
1196
1267
  multiple: !0,
1197
- getLimitTagsText: d ?? It,
1268
+ getLimitTagsText: u ?? Nt,
1198
1269
  disableCloseOnSelect: e,
1199
- disabled: n || o,
1200
- popupIcon: o ? /* @__PURE__ */ i(_, { size: 18, color: "inherit" }) : /* @__PURE__ */ i(J, {}),
1270
+ disabled: o || r,
1271
+ popupIcon: r ? /* @__PURE__ */ n(G, { size: 18, color: "inherit" }) : /* @__PURE__ */ n(ct, {}),
1201
1272
  "data-name": "multiple-autocomplete"
1202
1273
  }
1203
1274
  );
1204
1275
  }
1205
- const vo = L(en), nn = p("div", {
1276
+ const _n = O(Bo), To = ({
1277
+ children: t,
1278
+ disabled: e,
1279
+ value: o,
1280
+ onCopied: r,
1281
+ copyText: i = "c4r.button.copy",
1282
+ copiedText: l = "c4r.notifications.copiedToClipboard",
1283
+ button: a,
1284
+ buttonLabel: c,
1285
+ buttonProps: d,
1286
+ ariaLabel: u,
1287
+ dataTestId: p,
1288
+ tooltipPlacement: s = "top",
1289
+ ...b
1290
+ }, g) => {
1291
+ const f = R(), y = T(f), [h, w] = B(!1), { copy: M } = Vt(i, l), A = (C) => {
1292
+ C.preventDefault(), M(o).then(() => {
1293
+ r == null || r(), w(!0);
1294
+ }).catch(console.error);
1295
+ };
1296
+ return /* @__PURE__ */ x(H, { children: [
1297
+ /* @__PURE__ */ n(
1298
+ P,
1299
+ {
1300
+ title: y.formatMessage({ id: i }),
1301
+ leaveDelay: 0,
1302
+ placement: s,
1303
+ children: /* @__PURE__ */ x(
1304
+ D,
1305
+ {
1306
+ ...b,
1307
+ sx: { cursor: e ? void 0 : "pointer" },
1308
+ onClick: A,
1309
+ "data-name": "copiable",
1310
+ ref: g,
1311
+ children: [
1312
+ t,
1313
+ a && /* @__PURE__ */ n(
1314
+ q,
1315
+ {
1316
+ ...d,
1317
+ disabled: e,
1318
+ icon: /* @__PURE__ */ n(Lt, {}),
1319
+ "data-testid": p,
1320
+ "aria-label": u || c,
1321
+ sx: {
1322
+ display: "flex"
1323
+ }
1324
+ }
1325
+ )
1326
+ ]
1327
+ }
1328
+ )
1329
+ }
1330
+ ),
1331
+ /* @__PURE__ */ n(
1332
+ dt,
1333
+ {
1334
+ open: h,
1335
+ autoWidth: !0,
1336
+ closeable: !1,
1337
+ autoHideDuration: 4e3,
1338
+ onClose: () => w(!1),
1339
+ children: y.formatMessage({ id: l })
1340
+ }
1341
+ )
1342
+ ] });
1343
+ }, Ro = O(To);
1344
+ async function Oo(t) {
1345
+ return await navigator.clipboard.writeText(t);
1346
+ }
1347
+ const Vt = (t = "c4r.button.copy", e = "c4r.notifications.copiedToClipboard") => {
1348
+ const [o, r] = B(t);
1349
+ return {
1350
+ message: o,
1351
+ copy: async (l) => {
1352
+ await Oo(l), r(e), setTimeout(() => r(t), 1e3);
1353
+ }
1354
+ };
1355
+ }, Fo = m("div", {
1206
1356
  shouldForwardProp: (t) => t !== "variant"
1207
1357
  })(({ variant: t, theme: e }) => ({
1208
1358
  width: "100%",
@@ -1212,42 +1362,42 @@ const vo = L(en), nn = p("div", {
1212
1362
  boxShadow: `inset 0 0 0 1px ${e.palette.divider}`
1213
1363
  }
1214
1364
  }));
1215
- function Do({
1365
+ function Gn({
1216
1366
  variant: t = "standard",
1217
1367
  items: e,
1218
- ...n
1368
+ ...o
1219
1369
  }) {
1220
- return /* @__PURE__ */ i(nn, { ...n, variant: t, children: e.map((o, r) => /* @__PURE__ */ x(
1221
- Ut,
1370
+ return /* @__PURE__ */ n(Fo, { ...o, variant: t, children: e.map((r, i) => /* @__PURE__ */ x(
1371
+ ce,
1222
1372
  {
1223
- disabled: o.disabled,
1224
- defaultExpanded: o.defaultExpanded,
1225
- onChange: o.onChange,
1373
+ disabled: r.disabled,
1374
+ defaultExpanded: r.defaultExpanded,
1375
+ onChange: r.onChange,
1226
1376
  children: [
1227
- /* @__PURE__ */ i(
1228
- Yt,
1377
+ /* @__PURE__ */ n(
1378
+ de,
1229
1379
  {
1230
- "aria-controls": `${r}-content`,
1231
- id: `${r}-header`,
1232
- children: o.summary
1380
+ "aria-controls": `${i}-content`,
1381
+ id: `${i}-header`,
1382
+ children: r.summary
1233
1383
  }
1234
1384
  ),
1235
- /* @__PURE__ */ i(qt, { children: o.content })
1385
+ /* @__PURE__ */ n(se, { children: r.content })
1236
1386
  ]
1237
1387
  },
1238
- r
1388
+ i
1239
1389
  )) });
1240
1390
  }
1241
- const it = {
1391
+ const ht = {
1242
1392
  large: 5,
1243
1393
  medium: 4,
1244
1394
  small: 3,
1245
1395
  xsmall: 2.25
1246
- }, on = p(zt, {
1396
+ }, Lo = m(ue, {
1247
1397
  shouldForwardProp: (t) => t !== "size" && t !== "disabled"
1248
- })(({ theme: t, size: e = "medium", disabled: n = !1 }) => ({
1249
- width: t.spacing(it[e]),
1250
- height: t.spacing(it[e]),
1398
+ })(({ theme: t, size: e = "medium", disabled: o = !1 }) => ({
1399
+ width: t.spacing(ht[e]),
1400
+ height: t.spacing(ht[e]),
1251
1401
  ...t.typography.subtitle1,
1252
1402
  ...e === "large" && {
1253
1403
  ...t.typography.h6
@@ -1260,18 +1410,18 @@ const it = {
1260
1410
  ...t.typography.caption,
1261
1411
  fontWeight: 500,
1262
1412
  svg: {
1263
- width: P,
1264
- height: P
1413
+ width: N,
1414
+ height: N
1265
1415
  }
1266
1416
  },
1267
- ...n && {
1417
+ ...o && {
1268
1418
  opacity: 0.6
1269
1419
  }
1270
1420
  }));
1271
- function Ao(t) {
1272
- return /* @__PURE__ */ i(on, { ...t });
1421
+ function jn(t) {
1422
+ return /* @__PURE__ */ n(Lo, { ...t });
1273
1423
  }
1274
- const Tt = 480, rn = p(Zt)(({ theme: t }) => ({
1424
+ const Ut = 480, Wo = m(pe)(({ theme: t }) => ({
1275
1425
  bottom: t.spacing(2),
1276
1426
  right: t.spacing(2),
1277
1427
  left: t.spacing(2),
@@ -1280,13 +1430,13 @@ const Tt = 480, rn = p(Zt)(({ theme: t }) => ({
1280
1430
  right: "auto",
1281
1431
  left: "50%",
1282
1432
  width: "100%",
1283
- maxWidth: `${Tt}px`
1433
+ maxWidth: `${Ut}px`
1284
1434
  }
1285
- })), an = p(v, {
1435
+ })), Eo = m(D, {
1286
1436
  shouldForwardProp: (t) => t !== "autoWidth"
1287
1437
  })(({ autoWidth: t, theme: e }) => ({
1288
1438
  minWidth: "100%",
1289
- maxWidth: `${Tt}px`,
1439
+ maxWidth: `${Ut}px`,
1290
1440
  margin: e.spacing(0, 1),
1291
1441
  ...t && {
1292
1442
  minWidth: "auto"
@@ -1297,59 +1447,59 @@ const Tt = 480, rn = p(Zt)(({ theme: t }) => ({
1297
1447
  minWidth: "auto"
1298
1448
  }
1299
1449
  }
1300
- })), ln = p(Ct, {
1450
+ })), Ho = m(Et, {
1301
1451
  shouldForwardProp: (t) => !["hasActions", "closeable"].includes(t)
1302
- })(({ hasActions: t, closeable: e, icon: n, theme: o }) => ({
1452
+ })(({ hasActions: t, closeable: e, icon: o, theme: r }) => ({
1303
1453
  position: "relative",
1304
1454
  display: "flex",
1305
1455
  flexWrap: "wrap",
1306
- columnGap: o.spacing(1),
1307
- rowGap: o.spacing(0.25),
1308
- padding: o.spacing(1),
1309
- paddingLeft: o.spacing(2),
1310
- color: o.palette.common.white,
1311
- backgroundColor: o.palette.common.black,
1456
+ columnGap: r.spacing(1),
1457
+ rowGap: r.spacing(0.25),
1458
+ padding: r.spacing(1),
1459
+ paddingLeft: r.spacing(2),
1460
+ color: r.palette.common.white,
1461
+ backgroundColor: r.palette.common.black,
1312
1462
  ".MuiAlert-message": {
1313
- padding: o.spacing(0.75, 0)
1463
+ padding: r.spacing(0.75, 0)
1314
1464
  },
1315
1465
  ".MuiAlert-message .MuiTypography-root, .MuiAlert-icon": {
1316
- color: o.palette.common.white
1466
+ color: r.palette.common.white
1317
1467
  },
1318
1468
  ".MuiAlert-message .MuiTypography-root:not(.MuiAlertTitle-root)": {
1319
- ...o.typography.body2
1469
+ ...r.typography.body2
1320
1470
  },
1321
1471
  ".MuiAlert-message .MuiCircularProgress-circle": {
1322
- color: o.palette.common.white
1472
+ color: r.palette.common.white
1323
1473
  },
1324
1474
  ".MuiAlert-icon": {
1325
1475
  position: "absolute",
1326
- top: o.spacing(1),
1327
- left: o.spacing(1.5),
1476
+ top: r.spacing(1),
1477
+ left: r.spacing(1.5),
1328
1478
  display: "flex",
1329
1479
  alignItems: "center",
1330
1480
  justifyContent: "center",
1331
- width: o.spacing(3),
1332
- marginTop: o.spacing(0.5)
1481
+ width: r.spacing(3),
1482
+ marginTop: r.spacing(0.5)
1333
1483
  },
1334
1484
  "&.MuiAlert-standardError": {
1335
- backgroundColor: o.palette.error.main
1485
+ backgroundColor: r.palette.error.main
1336
1486
  },
1337
- ...n !== !1 && {
1338
- paddingLeft: o.spacing(5.5)
1487
+ ...o !== !1 && {
1488
+ paddingLeft: r.spacing(5.5)
1339
1489
  },
1340
1490
  ...e && {
1341
- paddingRight: o.spacing(6)
1491
+ paddingRight: r.spacing(6)
1342
1492
  },
1343
1493
  ...!e && !t && {
1344
- paddingRight: o.spacing(1.5)
1494
+ paddingRight: r.spacing(1.5)
1345
1495
  },
1346
1496
  ...t && {
1347
1497
  ".MuiAlert-message": {
1348
1498
  minWidth: "fit-content",
1349
- padding: o.spacing(0.75, 0)
1499
+ padding: r.spacing(0.75, 0)
1350
1500
  }
1351
1501
  }
1352
- })), cn = p(v)(({ theme: t }) => ({
1502
+ })), Po = m(D)(({ theme: t }) => ({
1353
1503
  position: "absolute",
1354
1504
  top: t.spacing(1),
1355
1505
  right: t.spacing(1),
@@ -1360,58 +1510,58 @@ const Tt = 480, rn = p(Zt)(({ theme: t }) => ({
1360
1510
  color: t.palette.white[60]
1361
1511
  }
1362
1512
  }));
1363
- function ko({
1513
+ function dt({
1364
1514
  severity: t = "neutral",
1365
- autoHideDuration: e = ot,
1366
- closeable: n = !0,
1367
- children: o,
1368
- title: r,
1369
- action: a,
1370
- open: l,
1515
+ autoHideDuration: e = ft,
1516
+ closeable: o = !0,
1517
+ children: r,
1518
+ title: i,
1519
+ action: l,
1520
+ open: a,
1371
1521
  onClose: c = () => {
1372
1522
  },
1373
- autoWidth: s,
1374
- icon: d,
1375
- ...h
1523
+ autoWidth: d,
1524
+ icon: u,
1525
+ ...p
1376
1526
  }) {
1377
- const u = R(), g = $(u);
1378
- return /* @__PURE__ */ i(Jt, { children: /* @__PURE__ */ i(
1379
- rn,
1527
+ const s = R(), b = T(s);
1528
+ return /* @__PURE__ */ n(ge, { children: /* @__PURE__ */ n(
1529
+ Wo,
1380
1530
  {
1381
- ...h,
1382
- open: l,
1383
- autoHideDuration: e === null ? null : e || ot,
1531
+ ...p,
1532
+ open: a,
1533
+ autoHideDuration: e === null ? null : e || ft,
1384
1534
  onClose: c,
1385
- TransitionComponent: s ? Xt : xt,
1386
- "data-auto-width": s,
1535
+ TransitionComponent: d ? fe : Rt,
1536
+ "data-auto-width": d,
1387
1537
  children: /* @__PURE__ */ x(
1388
- an,
1538
+ Eo,
1389
1539
  {
1390
1540
  sx: {
1391
1541
  position: "relative"
1392
1542
  },
1393
- autoWidth: s,
1543
+ autoWidth: d,
1394
1544
  children: [
1395
- /* @__PURE__ */ i(
1396
- ln,
1545
+ /* @__PURE__ */ n(
1546
+ Ho,
1397
1547
  {
1398
1548
  severity: t,
1399
- action: a,
1400
- icon: d === !1 || t === "neutral" && !d ? !1 : d,
1549
+ action: l,
1550
+ icon: u === !1 || t === "neutral" && !u ? !1 : u,
1401
1551
  elevation: 6,
1402
- hasActions: !!a,
1403
- closeable: n,
1404
- title: r,
1405
- children: o
1552
+ hasActions: !!l,
1553
+ closeable: o,
1554
+ title: i,
1555
+ children: r
1406
1556
  }
1407
1557
  ),
1408
- n && /* @__PURE__ */ i(cn, { children: /* @__PURE__ */ i(
1409
- Le,
1558
+ o && /* @__PURE__ */ n(Po, { children: /* @__PURE__ */ n(
1559
+ q,
1410
1560
  {
1411
1561
  color: "default",
1412
- onClick: (D) => c(D, "timeout"),
1413
- icon: /* @__PURE__ */ i(Mt, {}),
1414
- tooltip: g.formatMessage({
1562
+ onClick: (w) => c(w, "timeout"),
1563
+ icon: /* @__PURE__ */ n(Wt, {}),
1564
+ tooltip: b.formatMessage({
1415
1565
  id: "c4r.button.close"
1416
1566
  })
1417
1567
  }
@@ -1422,40 +1572,40 @@ function ko({
1422
1572
  }
1423
1573
  ) });
1424
1574
  }
1425
- const sn = p("div")(({ theme: t }) => ({
1575
+ const zo = m("div")(({ theme: t }) => ({
1426
1576
  display: "flex",
1427
1577
  alignItems: "center",
1428
- height: le,
1578
+ height: ve,
1429
1579
  marginRight: t.spacing(1.5)
1430
- })), dn = p(O)(({ theme: t }) => ({
1580
+ })), No = m(W)(({ theme: t }) => ({
1431
1581
  marginRight: t.spacing(1),
1432
1582
  "&.MuiButtonBase-root svg path": {
1433
1583
  fill: t.palette.brand.appBarContrastText
1434
1584
  }
1435
- })), un = p(G)(({ theme: t }) => ({
1436
- borderColor: Kt(t.palette.brand.appBarContrastText, 0.12)
1585
+ })), _o = m(_)(({ theme: t }) => ({
1586
+ borderColor: Ot(t.palette.brand.appBarContrastText, 0.12)
1437
1587
  }));
1438
- function pn({
1588
+ function Go({
1439
1589
  onClickMenu: t
1440
1590
  }) {
1441
1591
  return (
1442
1592
  // replacing deprecated `<Hidden />` with sx following this MUI5 guide:
1443
1593
  // https://mui.com/material-ui/migration/v5-component-changes/#hidden
1444
- /* @__PURE__ */ i(
1445
- v,
1594
+ /* @__PURE__ */ n(
1595
+ D,
1446
1596
  {
1447
1597
  sx: {
1448
1598
  display: { md: "none", xs: "block" }
1449
1599
  },
1450
- children: /* @__PURE__ */ x(sn, { children: [
1451
- /* @__PURE__ */ i(dn, { onClick: t, children: /* @__PURE__ */ i(ue, {}) }),
1452
- /* @__PURE__ */ i(un, { orientation: "vertical", flexItem: !0 })
1600
+ children: /* @__PURE__ */ x(zo, { children: [
1601
+ /* @__PURE__ */ n(No, { onClick: t, children: /* @__PURE__ */ n(Se, {}) }),
1602
+ /* @__PURE__ */ n(_o, { orientation: "vertical", flexItem: !0 })
1453
1603
  ] })
1454
1604
  }
1455
1605
  )
1456
1606
  );
1457
1607
  }
1458
- const gn = p("div")(({ theme: t }) => ({
1608
+ const jo = m("div")(({ theme: t }) => ({
1459
1609
  display: "flex",
1460
1610
  marginRight: t.spacing(1.5),
1461
1611
  "& a": {
@@ -1466,18 +1616,18 @@ const gn = p("div")(({ theme: t }) => ({
1466
1616
  height: t.spacing(4)
1467
1617
  }
1468
1618
  }));
1469
- function fn({ logo: t }) {
1470
- return /* @__PURE__ */ i(gn, { children: t });
1619
+ function Vo({ logo: t }) {
1620
+ return /* @__PURE__ */ n(jo, { children: t });
1471
1621
  }
1472
- const mn = p(B)({
1622
+ const Uo = m(F)({
1473
1623
  display: "flex",
1474
1624
  alignItems: "center",
1475
1625
  whiteSpace: "nowrap"
1476
1626
  });
1477
- function hn({ text: t }) {
1478
- const e = V();
1479
- return /* @__PURE__ */ i(
1480
- mn,
1627
+ function Yo({ text: t }) {
1628
+ const e = j();
1629
+ return /* @__PURE__ */ n(
1630
+ Uo,
1481
1631
  {
1482
1632
  component: "span",
1483
1633
  variant: "subtitle1",
@@ -1486,7 +1636,7 @@ function hn({ text: t }) {
1486
1636
  }
1487
1637
  );
1488
1638
  }
1489
- const bn = p(B)(({ theme: t }) => ({
1639
+ const qo = m(F)(({ theme: t }) => ({
1490
1640
  display: "flex",
1491
1641
  alignItems: "center",
1492
1642
  "&::before": {
@@ -1496,10 +1646,10 @@ const bn = p(B)(({ theme: t }) => ({
1496
1646
  color: t.palette.brand.appBarContrastText
1497
1647
  }
1498
1648
  }));
1499
- function xn({ text: t }) {
1500
- const e = V();
1501
- return /* @__PURE__ */ i(
1502
- bn,
1649
+ function Zo({ text: t }) {
1650
+ const e = j();
1651
+ return /* @__PURE__ */ n(
1652
+ qo,
1503
1653
  {
1504
1654
  component: "span",
1505
1655
  variant: "body2",
@@ -1509,7 +1659,7 @@ function xn({ text: t }) {
1509
1659
  }
1510
1660
  );
1511
1661
  }
1512
- const yn = p(te)(({ theme: t }) => ({
1662
+ const Jo = m(be)(({ theme: t }) => ({
1513
1663
  backgroundColor: t.palette.brand.appBarMain,
1514
1664
  "& .MuiTypography-root": {
1515
1665
  color: t.palette.brand.appBarContrastText
@@ -1517,7 +1667,7 @@ const yn = p(te)(({ theme: t }) => ({
1517
1667
  "& .MuiIconButton-root path": {
1518
1668
  fill: t.palette.brand.appBarContrastText
1519
1669
  }
1520
- })), Mn = p("div")(({ theme: t }) => ({
1670
+ })), Ko = m("div")(({ theme: t }) => ({
1521
1671
  display: "flex",
1522
1672
  alignItems: "center",
1523
1673
  maxWidth: "calc(100% - 300px)",
@@ -1525,179 +1675,192 @@ const yn = p(te)(({ theme: t }) => ({
1525
1675
  [t.breakpoints.down("sm")]: {
1526
1676
  minWidth: "192px"
1527
1677
  }
1528
- })), Cn = p("div")(({ theme: t }) => ({
1678
+ })), Xo = m("div")(({ theme: t }) => ({
1529
1679
  display: "flex",
1530
1680
  alignItems: "center",
1531
1681
  justifyContent: "space-between",
1532
1682
  flex: 1,
1533
1683
  marginLeft: t.spacing(1)
1534
1684
  }));
1535
- function Io({
1685
+ function Vn({
1536
1686
  children: t,
1537
1687
  brandLogo: e,
1538
- brandText: n,
1539
- secondaryText: o,
1540
- showBurgerMenu: r = !1,
1541
- onClickMenu: a,
1542
- ...l
1688
+ brandText: o,
1689
+ secondaryText: r,
1690
+ showBurgerMenu: i = !1,
1691
+ onClickMenu: l,
1692
+ ...a
1543
1693
  }) {
1544
- return /* @__PURE__ */ i(yn, { ...l, children: /* @__PURE__ */ x(Qt, { children: [
1545
- /* @__PURE__ */ x(Mn, { children: [
1546
- r && /* @__PURE__ */ i(pn, { onClickMenu: a }),
1547
- e && /* @__PURE__ */ i(fn, { logo: e }),
1548
- n && /* @__PURE__ */ i(hn, { text: n }),
1549
- o && /* @__PURE__ */ i(xn, { text: o })
1694
+ return /* @__PURE__ */ n(Jo, { ...a, children: /* @__PURE__ */ x(me, { children: [
1695
+ /* @__PURE__ */ x(Ko, { children: [
1696
+ i && /* @__PURE__ */ n(Go, { onClickMenu: l }),
1697
+ e && /* @__PURE__ */ n(Vo, { logo: e }),
1698
+ o && /* @__PURE__ */ n(Yo, { text: o }),
1699
+ r && /* @__PURE__ */ n(Zo, { text: r })
1550
1700
  ] }),
1551
- /* @__PURE__ */ i(Cn, { children: t })
1701
+ /* @__PURE__ */ n(Xo, { children: t })
1552
1702
  ] }) });
1553
1703
  }
1554
- const vn = p(v, {
1704
+ const Qo = m(D, {
1555
1705
  shouldForwardProp: (t) => !["size", "variant"].includes(t)
1556
- })(({ size: t, variant: e, theme: n }) => ({
1706
+ })(({ size: t, variant: e, theme: o }) => ({
1557
1707
  position: "absolute",
1558
- right: n.spacing(5.75),
1708
+ right: o.spacing(5.75),
1559
1709
  ...t === "small" && {
1560
- right: n.spacing(4),
1710
+ right: o.spacing(4),
1561
1711
  top: "3px"
1562
1712
  // to align with design specs
1563
1713
  },
1564
1714
  ...e === "standard" && {
1565
- right: n.spacing(4.75),
1715
+ right: o.spacing(4.75),
1566
1716
  ...t === "small" && {
1567
- right: n.spacing(3.5)
1717
+ right: o.spacing(3.5)
1568
1718
  }
1569
1719
  }
1570
1720
  }));
1571
- function K({
1721
+ function st({
1572
1722
  size: t,
1573
1723
  variant: e,
1574
- ...n
1724
+ ...o
1575
1725
  }) {
1576
- const o = R(), r = $(o);
1577
- return /* @__PURE__ */ i(vn, { size: t, variant: e, children: /* @__PURE__ */ i(
1578
- O,
1726
+ const r = R(), i = T(r);
1727
+ return /* @__PURE__ */ n(Qo, { size: t, variant: e, children: /* @__PURE__ */ n(
1728
+ W,
1579
1729
  {
1580
- ...n,
1730
+ ...o,
1581
1731
  size: t,
1582
- "aria-label": r.formatMessage({
1732
+ "aria-label": i.formatMessage({
1583
1733
  id: "c4r.form.clearSelection"
1584
1734
  })
1585
1735
  }
1586
1736
  ) });
1587
1737
  }
1588
- const Dn = p(v, {
1738
+ const tr = m(D, {
1589
1739
  shouldForwardProp: (t) => !["size", "variant", "readOnly"].includes(t)
1590
- })(({ size: t, variant: e, readOnly: n, theme: o }) => ({
1740
+ })(({ size: t, variant: e, readOnly: o, theme: r }) => ({
1591
1741
  // There is no specific slot to change TextField styles at DatePicker level, so we need to wrap our component to isolate this override. https://mui.com/x/react-date-pickers/date-picker/#customization
1592
1742
  ".MuiInputBase-root": {
1593
1743
  "& .clearButton svg": {
1594
- color: o.palette.text.hint
1744
+ color: r.palette.text.hint
1595
1745
  },
1596
1746
  ...t === "small" && {
1597
- paddingRight: `${o.spacing(1)} !important`
1747
+ paddingRight: `${r.spacing(1)} !important`
1598
1748
  },
1599
1749
  ...t === "medium" && {
1600
1750
  "& .MuiInputAdornment-root": {
1601
1751
  "& .MuiIconButton-edgeEnd": {
1602
- marginRight: o.spacing(-1)
1752
+ marginRight: r.spacing(-1)
1603
1753
  }
1604
1754
  }
1605
1755
  },
1606
1756
  ...e === "standard" && {
1607
- paddingRight: `${o.spacing(1)} !important`,
1757
+ paddingRight: `${r.spacing(1)} !important`,
1608
1758
  ...t === "small" && {
1609
- paddingRight: `${o.spacing(0.5)} !important`
1759
+ paddingRight: `${r.spacing(0.5)} !important`
1610
1760
  }
1611
1761
  },
1612
- ...n && {
1762
+ ...o && {
1613
1763
  "& .MuiInputAdornment-root": {
1614
1764
  "& svg": {
1615
- color: o.palette.text.disabled
1765
+ color: r.palette.text.disabled
1616
1766
  }
1617
1767
  }
1618
1768
  }
1619
1769
  }
1620
1770
  }));
1621
- function Q({
1771
+ function ut({
1622
1772
  children: t,
1623
1773
  size: e,
1624
- variant: n,
1625
- readOnly: o,
1626
- ...r
1774
+ variant: o,
1775
+ readOnly: r,
1776
+ ...i
1627
1777
  }) {
1628
- return /* @__PURE__ */ i(Dn, { ...r, size: e, variant: n, readOnly: o, children: t });
1778
+ return /* @__PURE__ */ n(tr, { ...i, size: e, variant: o, readOnly: r, children: t });
1629
1779
  }
1630
- function rt({
1780
+ function xt({
1631
1781
  handleClear: t,
1632
1782
  variant: e = "outlined",
1633
- size: n = "small",
1634
- label: o,
1635
- labelHelpTooltip: r,
1636
- type: a,
1637
- helperText: l,
1783
+ size: o = "small",
1784
+ label: r,
1785
+ labelHelpTooltip: i,
1786
+ type: l,
1787
+ helperText: a,
1638
1788
  placeholder: c,
1639
- slotProps: s,
1640
- slots: d,
1641
- error: h,
1642
- showCalendar: u = !0,
1643
- readOnly: g,
1644
- ...f
1789
+ slotProps: d,
1790
+ slots: u,
1791
+ error: p,
1792
+ showCalendar: s = !0,
1793
+ readOnly: b,
1794
+ "aria-label": g,
1795
+ "data-testid": f,
1796
+ ...y
1645
1797
  }) {
1646
- const m = R(), y = $(m);
1798
+ const h = R(), w = T(h);
1647
1799
  return (
1648
1800
  // Don't remove className, it's used for styling
1649
- /* @__PURE__ */ i(v, { className: "CartoDatePicker-root", "data-testid": "date-picker", children: /* @__PURE__ */ i(Q, { size: n, variant: e, readOnly: g, children: /* @__PURE__ */ i(
1650
- fe,
1801
+ /* @__PURE__ */ n(D, { className: "CartoDatePicker-root", "data-testid": "date-picker", children: /* @__PURE__ */ n(
1802
+ ut,
1651
1803
  {
1652
- ...f,
1653
- label: o && /* @__PURE__ */ i(
1654
- X,
1804
+ size: o,
1805
+ variant: e,
1806
+ readOnly: b,
1807
+ "data-name": "date-picker",
1808
+ "aria-label": g,
1809
+ "data-testid": f,
1810
+ children: /* @__PURE__ */ n(
1811
+ Re,
1655
1812
  {
1656
- label: o,
1657
- type: a,
1658
- icon: r && /* @__PURE__ */ i(W, { title: r, children: /* @__PURE__ */ i(Z, { htmlColor: "text.secondary" }) })
1813
+ ...y,
1814
+ label: r && /* @__PURE__ */ n(
1815
+ X,
1816
+ {
1817
+ label: r,
1818
+ type: l,
1819
+ icon: i && /* @__PURE__ */ n(P, { title: i, children: /* @__PURE__ */ n(K, { htmlColor: "text.secondary" }) })
1820
+ }
1821
+ ),
1822
+ slotProps: {
1823
+ // https://mui.com/x/api/date-pickers/date-picker/#slots
1824
+ textField: {
1825
+ variant: e,
1826
+ helperText: a,
1827
+ placeholder: c,
1828
+ size: o,
1829
+ error: p ?? void 0,
1830
+ // undefined is needed to allow the component to control the error state for the default validation
1831
+ inputProps: {
1832
+ "data-testid": "date-picker-input"
1833
+ }
1834
+ },
1835
+ field: {
1836
+ clearable: !!t,
1837
+ onClear: t
1838
+ },
1839
+ ...d
1840
+ },
1841
+ slots: {
1842
+ clearButton: (M) => /* @__PURE__ */ n(st, { ...M, size: o, variant: e }),
1843
+ openPickerButton: (M) => /* @__PURE__ */ n(
1844
+ W,
1845
+ {
1846
+ ...M,
1847
+ size: o,
1848
+ "aria-label": w.formatMessage({
1849
+ id: "c4r.form.chooseDate"
1850
+ })
1851
+ }
1852
+ ),
1853
+ ...u
1854
+ },
1855
+ disableOpenPicker: !s,
1856
+ readOnly: b
1659
1857
  }
1660
- ),
1661
- slotProps: {
1662
- // https://mui.com/x/api/date-pickers/date-picker/#slots
1663
- textField: {
1664
- variant: e,
1665
- helperText: l,
1666
- placeholder: c,
1667
- size: n,
1668
- error: h ?? void 0,
1669
- // undefined is needed to allow the component to control the error state for the default validation
1670
- inputProps: {
1671
- "data-testid": "date-picker-input"
1672
- }
1673
- },
1674
- field: {
1675
- clearable: !!t,
1676
- onClear: t
1677
- },
1678
- ...s
1679
- },
1680
- slots: {
1681
- clearButton: (b) => /* @__PURE__ */ i(K, { ...b, size: n, variant: e }),
1682
- openPickerButton: (b) => /* @__PURE__ */ i(
1683
- O,
1684
- {
1685
- ...b,
1686
- size: n,
1687
- "aria-label": y.formatMessage({
1688
- id: "c4r.form.chooseDate"
1689
- })
1690
- }
1691
- ),
1692
- ...d
1693
- },
1694
- disableOpenPicker: !u,
1695
- readOnly: g
1858
+ )
1696
1859
  }
1697
- ) }) })
1860
+ ) })
1698
1861
  );
1699
1862
  }
1700
- const An = p(v, {
1863
+ const er = m(D, {
1701
1864
  shouldForwardProp: (t) => ![
1702
1865
  "isSelected",
1703
1866
  "isStartDate",
@@ -1710,11 +1873,11 @@ const An = p(v, {
1710
1873
  ({
1711
1874
  theme: t,
1712
1875
  isSelected: e,
1713
- isStartDate: n,
1714
- isEndDate: o,
1715
- isSelectedMonth: r,
1716
- isLastDay: a,
1717
- isFirstDay: l
1876
+ isStartDate: o,
1877
+ isEndDate: r,
1878
+ isSelectedMonth: i,
1879
+ isLastDay: l,
1880
+ isFirstDay: a
1718
1881
  }) => ({
1719
1882
  position: "relative",
1720
1883
  margin: t.spacing(0.25),
@@ -1722,7 +1885,7 @@ const An = p(v, {
1722
1885
  margin: 0
1723
1886
  },
1724
1887
  // Highlight the selected date range
1725
- ...e && r && {
1888
+ ...e && i && {
1726
1889
  // Creates a continuous background color between start and end date
1727
1890
  "&::before": {
1728
1891
  content: '""',
@@ -1733,12 +1896,12 @@ const An = p(v, {
1733
1896
  left: "-2px",
1734
1897
  backgroundColor: t.palette.primary.background,
1735
1898
  // Selected start date OR first day of the month
1736
- ...(n || l) && {
1899
+ ...(o || a) && {
1737
1900
  left: 0,
1738
1901
  borderRadius: `${t.shape.borderRadius}px 0 0 ${t.shape.borderRadius}px`
1739
1902
  },
1740
1903
  // Selected end date OR last day of the month
1741
- ...(o || a) && {
1904
+ ...(r || l) && {
1742
1905
  right: 0,
1743
1906
  borderRadius: `0 ${t.shape.borderRadius}px ${t.shape.borderRadius}px 0`
1744
1907
  }
@@ -1754,7 +1917,7 @@ const An = p(v, {
1754
1917
  borderRadius: `0 ${t.shape.borderRadius}px ${t.shape.borderRadius}px 0`
1755
1918
  },
1756
1919
  // First day of month and last selected day in a week
1757
- ...l && {
1920
+ ...a && {
1758
1921
  "&:last-of-type::before": {
1759
1922
  left: 0,
1760
1923
  right: 0,
@@ -1762,7 +1925,7 @@ const An = p(v, {
1762
1925
  }
1763
1926
  },
1764
1927
  // Last day of month and first selected day in a week
1765
- ...a && {
1928
+ ...l && {
1766
1929
  "&:first-of-type::before": {
1767
1930
  left: 0,
1768
1931
  right: 0,
@@ -1771,7 +1934,7 @@ const An = p(v, {
1771
1934
  },
1772
1935
  "& .MuiPickersDay-today": {
1773
1936
  borderColor: `${t.palette.default.outlinedBorder} !important`,
1774
- ...(n || o) && {
1937
+ ...(o || r) && {
1775
1938
  boxShadow: `0 0 0 1px inset ${t.palette.background.paper}`
1776
1939
  }
1777
1940
  },
@@ -1792,7 +1955,7 @@ const An = p(v, {
1792
1955
  }
1793
1956
  }
1794
1957
  })
1795
- ), kn = p(me, {
1958
+ ), or = m(Oe, {
1796
1959
  shouldForwardProp: (t) => t !== "isDateRangeLimit"
1797
1960
  })(({ theme: t, isDateRangeLimit: e }) => ({
1798
1961
  "&.MuiPickersDay-root": {
@@ -1812,37 +1975,38 @@ const An = p(v, {
1812
1975
  }
1813
1976
  }
1814
1977
  }
1815
- })), at = (t, e) => !t || !e ? !1 : t.getFullYear() === e.getFullYear() && t.getMonth() === e.getMonth() && t.getDate() === e.getDate();
1816
- function lt({
1978
+ })), yt = (t, e) => !t || !e ? !1 : t.getFullYear() === e.getFullYear() && t.getMonth() === e.getMonth() && t.getDate() === e.getDate();
1979
+ function Ct({
1817
1980
  day: t,
1818
1981
  startDate: e,
1819
- endDate: n,
1820
- selectedMonth: o,
1821
- ...r
1982
+ endDate: o,
1983
+ selectedMonth: r,
1984
+ ...i
1822
1985
  }) {
1823
- const a = !!(e && at(e, t)), l = !!(n && at(n, t)), c = !!(e && n && t.getTime() >= e.getTime() && t.getTime() <= n.getTime()), s = t.getDate() === 1, d = t.getDate() === new Date(t.getFullYear(), t.getMonth() + 1, 0).getDate(), h = !!(o && t.getMonth() === o.getMonth());
1824
- return /* @__PURE__ */ i(
1825
- An,
1986
+ const l = !!(e && yt(e, t)), a = !!(o && yt(o, t)), c = !!(e && o && t.getTime() >= e.getTime() && t.getTime() <= o.getTime()), d = t.getDate() === 1, u = t.getDate() === new Date(t.getFullYear(), t.getMonth() + 1, 0).getDate(), p = !!(r && t.getMonth() === r.getMonth());
1987
+ return /* @__PURE__ */ n(
1988
+ er,
1826
1989
  {
1827
1990
  isSelected: c,
1828
- isStartDate: a,
1829
- isEndDate: l,
1830
- isSelectedMonth: h,
1831
- isLastDay: d,
1832
- isFirstDay: s,
1833
- children: /* @__PURE__ */ i(
1834
- kn,
1991
+ isStartDate: l,
1992
+ isEndDate: a,
1993
+ isSelectedMonth: p,
1994
+ isLastDay: u,
1995
+ isFirstDay: d,
1996
+ children: /* @__PURE__ */ n(
1997
+ or,
1835
1998
  {
1836
- ...r,
1999
+ ...i,
1837
2000
  day: t,
1838
- selected: c || a || l,
1839
- isDateRangeLimit: a || l
2001
+ selected: c || l || a,
2002
+ isDateRangeLimit: l || a,
2003
+ "data-name": "pickers-day"
1840
2004
  }
1841
2005
  )
1842
2006
  }
1843
2007
  );
1844
2008
  }
1845
- const In = p(v, {
2009
+ const rr = m(D, {
1846
2010
  shouldForwardProp: (t) => !["variant"].includes(t)
1847
2011
  })(({ variant: t, theme: e }) => ({
1848
2012
  display: "flex",
@@ -1892,182 +2056,197 @@ const In = p(v, {
1892
2056
  }
1893
2057
  }
1894
2058
  }));
1895
- function wo({
2059
+ function Un({
1896
2060
  globalHelperText: t,
1897
2061
  error: e,
1898
- variant: n = "outlined",
1899
- startProps: o,
1900
- endProps: r,
1901
- ...a
2062
+ variant: o = "outlined",
2063
+ startProps: r,
2064
+ endProps: i,
2065
+ "aria-label": l,
2066
+ "data-testid": a,
2067
+ ...c
1902
2068
  }) {
1903
- const l = R(), c = $(l), [s, d] = T(!1), [h, u] = T(!1), [g, f] = T(
1904
- (o == null ? void 0 : o.value) || null
1905
- ), [m, y] = T((r == null ? void 0 : r.value) || null), [b, D] = T(
1906
- (r == null ? void 0 : r.value) ?? (o == null ? void 0 : o.value) ?? /* @__PURE__ */ new Date()
1907
- ), w = e ?? (o == null ? void 0 : o.error) ?? (r == null ? void 0 : r.error), A = (C, S) => {
1908
- f(C), o != null && o.onChange && o.onChange(C, S), C && S.validationError === null && !h && S.trigger === null && (u(!1), d(!0));
1909
- }, M = (C, S) => {
1910
- y(C), r != null && r.onChange && r.onChange(C, S);
1911
- }, k = () => {
1912
- u(!0), d(!1), setTimeout(() => {
1913
- D(g ?? /* @__PURE__ */ new Date());
2069
+ const d = R(), u = T(d), [p, s] = B(!1), [b, g] = B(!1), [f, y] = B(
2070
+ (r == null ? void 0 : r.value) || null
2071
+ ), [h, w] = B((i == null ? void 0 : i.value) || null), [M, A] = B(
2072
+ (i == null ? void 0 : i.value) ?? (r == null ? void 0 : r.value) ?? /* @__PURE__ */ new Date()
2073
+ ), C = e ?? (r == null ? void 0 : r.error) ?? (i == null ? void 0 : i.error), k = (S, L) => {
2074
+ y(S), r != null && r.onChange && r.onChange(S, L), S && L.validationError === null && !b && L.trigger === null && (g(!1), s(!0));
2075
+ }, v = (S, L) => {
2076
+ w(S), i != null && i.onChange && i.onChange(S, L);
2077
+ }, $ = () => {
2078
+ g(!0), s(!1), setTimeout(() => {
2079
+ A(f ?? /* @__PURE__ */ new Date());
1914
2080
  }, 120);
1915
2081
  }, I = () => {
1916
- u(!1), d(!0), setTimeout(() => {
1917
- D(m ?? g ?? /* @__PURE__ */ new Date());
2082
+ g(!1), s(!0), setTimeout(() => {
2083
+ A(h ?? f ?? /* @__PURE__ */ new Date());
1918
2084
  }, 120);
1919
- }, F = () => {
1920
- u(!1), d(!0), setTimeout(() => {
1921
- D(m ?? g ?? /* @__PURE__ */ new Date());
2085
+ }, E = () => {
2086
+ g(!1), s(!0), setTimeout(() => {
2087
+ A(h ?? f ?? /* @__PURE__ */ new Date());
1922
2088
  }, 120);
1923
2089
  };
1924
- return /* @__PURE__ */ x(v, { children: [
1925
- /* @__PURE__ */ x(In, { variant: n, children: [
1926
- /* @__PURE__ */ i(
1927
- rt,
1928
- {
1929
- ...a,
1930
- ...o,
1931
- value: (o == null ? void 0 : o.value) ?? g,
1932
- maxDate: m ?? void 0,
1933
- label: (o == null ? void 0 : o.label) ?? c.formatMessage({ id: "c4r.form.startDate" }),
1934
- slotProps: {
1935
- popper: {
1936
- placement: "bottom-start",
1937
- "aria-label": c.formatMessage({
1938
- id: "c4r.form.startDateCalendar"
1939
- })
1940
- },
1941
- ...o == null ? void 0 : o.slotProps
1942
- },
1943
- slots: {
1944
- openPickerIcon: pe,
1945
- day: (C) => /* @__PURE__ */ i(
1946
- lt,
1947
- {
1948
- ...C,
1949
- startDate: g,
1950
- endDate: m,
1951
- selectedMonth: b
1952
- }
1953
- ),
1954
- ...o == null ? void 0 : o.slots
1955
- },
1956
- error: (o == null ? void 0 : o.error) ?? e,
1957
- open: h,
1958
- onChange: A,
1959
- onOpen: k,
1960
- onClose: I,
1961
- onMonthChange: (C) => D(C),
1962
- variant: n
1963
- }
1964
- ),
1965
- /* @__PURE__ */ i(
1966
- rt,
1967
- {
1968
- ...a,
1969
- ...r,
1970
- value: (r == null ? void 0 : r.value) ?? m,
1971
- minDate: g ?? void 0,
1972
- slotProps: {
1973
- popper: {
1974
- "aria-label": c.formatMessage({
1975
- id: "c4r.form.endDateCalendar"
1976
- })
1977
- },
1978
- ...r == null ? void 0 : r.slotProps
1979
- },
1980
- slots: {
1981
- day: (C) => /* @__PURE__ */ i(
1982
- lt,
1983
- {
1984
- ...C,
1985
- startDate: g,
1986
- endDate: m,
1987
- selectedMonth: b
1988
- }
1989
- ),
1990
- ...r == null ? void 0 : r.slots
1991
- },
1992
- label: (r == null ? void 0 : r.label) ?? c.formatMessage({ id: "c4r.form.endDate" }),
1993
- error: (r == null ? void 0 : r.error) ?? e,
1994
- open: s,
1995
- onOpen: F,
1996
- onClose: () => d(!1),
1997
- onChange: M,
1998
- onMonthChange: (C) => D(C),
1999
- variant: n
2000
- }
2001
- )
2002
- ] }),
2003
- t && /* @__PURE__ */ i(ht, { error: w, children: t })
2090
+ return /* @__PURE__ */ x(D, { children: [
2091
+ /* @__PURE__ */ x(
2092
+ rr,
2093
+ {
2094
+ variant: o,
2095
+ "data-name": "date-range-picker",
2096
+ "aria-label": l,
2097
+ "data-testid": a,
2098
+ children: [
2099
+ /* @__PURE__ */ n(
2100
+ xt,
2101
+ {
2102
+ ...c,
2103
+ ...r,
2104
+ value: (r == null ? void 0 : r.value) ?? f,
2105
+ maxDate: h ?? void 0,
2106
+ label: (r == null ? void 0 : r.label) ?? u.formatMessage({ id: "c4r.form.startDate" }),
2107
+ slotProps: {
2108
+ popper: {
2109
+ placement: "bottom-start",
2110
+ "aria-label": u.formatMessage({
2111
+ id: "c4r.form.startDateCalendar"
2112
+ })
2113
+ },
2114
+ ...r == null ? void 0 : r.slotProps
2115
+ },
2116
+ slots: {
2117
+ openPickerIcon: Ie,
2118
+ day: (S) => /* @__PURE__ */ n(
2119
+ Ct,
2120
+ {
2121
+ ...S,
2122
+ startDate: f,
2123
+ endDate: h,
2124
+ selectedMonth: M
2125
+ }
2126
+ ),
2127
+ ...r == null ? void 0 : r.slots
2128
+ },
2129
+ error: (r == null ? void 0 : r.error) ?? e,
2130
+ open: b,
2131
+ onChange: k,
2132
+ onOpen: $,
2133
+ onClose: I,
2134
+ onMonthChange: (S) => A(S),
2135
+ variant: o
2136
+ }
2137
+ ),
2138
+ /* @__PURE__ */ n(
2139
+ xt,
2140
+ {
2141
+ ...c,
2142
+ ...i,
2143
+ value: (i == null ? void 0 : i.value) ?? h,
2144
+ minDate: f ?? void 0,
2145
+ slotProps: {
2146
+ popper: {
2147
+ "aria-label": u.formatMessage({
2148
+ id: "c4r.form.endDateCalendar"
2149
+ })
2150
+ },
2151
+ ...i == null ? void 0 : i.slotProps
2152
+ },
2153
+ slots: {
2154
+ day: (S) => /* @__PURE__ */ n(
2155
+ Ct,
2156
+ {
2157
+ ...S,
2158
+ startDate: f,
2159
+ endDate: h,
2160
+ selectedMonth: M
2161
+ }
2162
+ ),
2163
+ ...i == null ? void 0 : i.slots
2164
+ },
2165
+ label: (i == null ? void 0 : i.label) ?? u.formatMessage({ id: "c4r.form.endDate" }),
2166
+ error: (i == null ? void 0 : i.error) ?? e,
2167
+ open: p,
2168
+ onOpen: E,
2169
+ onClose: () => s(!1),
2170
+ onChange: v,
2171
+ onMonthChange: (S) => A(S),
2172
+ variant: o
2173
+ }
2174
+ )
2175
+ ]
2176
+ }
2177
+ ),
2178
+ t && /* @__PURE__ */ n(J, { error: C, children: t })
2004
2179
  ] });
2005
2180
  }
2006
- const $t = (t, e, n, o) => {
2007
- const r = t == null ? void 0 : t.includes("hours"), a = t == null ? void 0 : t.includes("seconds"), l = t == null ? void 0 : t.includes("minutes"), c = (t == null ? void 0 : t.length) === 1 && t[0] === "hours";
2008
- if (o) return o;
2009
- const s = [];
2010
- return e && s.push("MM/dd/yyyy "), r && s.push(n ? "hh" : "HH"), c || s.push(":"), l && s.push("mm"), a && s.push(":ss"), n && s.push(" a"), s.join("");
2181
+ const Yt = (t, e, o, r) => {
2182
+ const i = t == null ? void 0 : t.includes("hours"), l = t == null ? void 0 : t.includes("seconds"), a = t == null ? void 0 : t.includes("minutes"), c = (t == null ? void 0 : t.length) === 1 && t[0] === "hours";
2183
+ if (r) return r;
2184
+ const d = [];
2185
+ return e && d.push("MM/dd/yyyy "), i && d.push(o ? "hh" : "HH"), c || d.push(":"), a && d.push("mm"), l && d.push(":ss"), o && d.push(" a"), d.join("");
2011
2186
  };
2012
- function Bo({
2187
+ function Yn({
2013
2188
  handleClear: t,
2014
2189
  variant: e = "outlined",
2015
- size: n = "small",
2016
- label: o,
2017
- labelHelpTooltip: r,
2018
- type: a,
2019
- helperText: l,
2190
+ size: o = "small",
2191
+ label: r,
2192
+ labelHelpTooltip: i,
2193
+ type: l,
2194
+ helperText: a,
2020
2195
  placeholder: c,
2021
- error: s,
2022
- showClock: d = !0,
2023
- readOnly: h,
2024
- slotProps: u,
2025
- slots: g,
2026
- ampm: f = !0,
2027
- views: m = ["hours", "minutes"],
2196
+ error: d,
2197
+ showClock: u = !0,
2198
+ readOnly: p,
2199
+ slotProps: s,
2200
+ slots: b,
2201
+ ampm: g = !0,
2202
+ views: f = ["hours", "minutes"],
2028
2203
  format: y,
2029
- ...b
2204
+ "data-testid": h,
2205
+ "aria-label": w,
2206
+ ...M
2030
2207
  }) {
2031
- const D = R(), w = $(D), A = U(null), [M, k] = T(0);
2032
- return H(() => {
2033
- if (!A.current) return;
2034
- const I = new ResizeObserver((F) => {
2035
- var S;
2036
- const C = (S = F[0]) == null ? void 0 : S.contentRect.width;
2037
- C && k(C);
2208
+ const A = R(), C = T(A), k = Z(null), [v, $] = B(0);
2209
+ return z(() => {
2210
+ if (!k.current) return;
2211
+ const I = new ResizeObserver((E) => {
2212
+ var L;
2213
+ const S = (L = E[0]) == null ? void 0 : L.contentRect.width;
2214
+ S && $(S);
2038
2215
  });
2039
- return I.observe(A.current), () => {
2216
+ return I.observe(k.current), () => {
2040
2217
  I.disconnect();
2041
2218
  };
2042
- }, []), /* @__PURE__ */ i(
2043
- Q,
2219
+ }, []), /* @__PURE__ */ n(
2220
+ ut,
2044
2221
  {
2045
- size: n,
2222
+ size: o,
2046
2223
  variant: e,
2047
- readOnly: h,
2048
- "data-testid": "time-picker",
2049
- children: /* @__PURE__ */ i(
2050
- he,
2224
+ readOnly: p,
2225
+ "data-name": "time-picker",
2226
+ "data-testid": h ?? "time-picker",
2227
+ "aria-label": w,
2228
+ children: /* @__PURE__ */ n(
2229
+ Fe,
2051
2230
  {
2052
- ...b,
2053
- ref: A,
2054
- label: /* @__PURE__ */ i(
2231
+ ...M,
2232
+ ref: k,
2233
+ label: /* @__PURE__ */ n(
2055
2234
  X,
2056
2235
  {
2057
- label: o ?? w.formatMessage({ id: "c4r.form.time" }),
2058
- type: a,
2059
- icon: r && /* @__PURE__ */ i(W, { title: r, children: /* @__PURE__ */ i(Z, { htmlColor: "text.secondary" }) })
2236
+ label: r ?? C.formatMessage({ id: "c4r.form.time" }),
2237
+ type: l,
2238
+ icon: i && /* @__PURE__ */ n(P, { title: i, children: /* @__PURE__ */ n(K, { htmlColor: "text.secondary" }) })
2060
2239
  }
2061
2240
  ),
2062
2241
  views: ["hours"],
2063
- format: $t(m, !1, f, y),
2242
+ format: Yt(f, !1, g, y),
2064
2243
  slotProps: {
2065
2244
  textField: {
2066
2245
  variant: e,
2067
- helperText: l,
2246
+ helperText: a,
2068
2247
  placeholder: c,
2069
- size: n,
2070
- error: s ?? void 0,
2248
+ size: o,
2249
+ error: d ?? void 0,
2071
2250
  // undefined is needed to allow the component to control the error state for the default validation
2072
2251
  inputProps: {
2073
2252
  "data-testid": "time-picker-input"
@@ -2082,81 +2261,85 @@ function Bo({
2082
2261
  },
2083
2262
  layout: {
2084
2263
  sx: {
2085
- width: M
2264
+ width: v
2086
2265
  }
2087
2266
  },
2088
- ...u
2267
+ ...s
2089
2268
  },
2090
2269
  slots: {
2091
- clearButton: (I) => /* @__PURE__ */ i(K, { ...I, size: n, variant: e }),
2092
- openPickerButton: (I) => /* @__PURE__ */ i(
2093
- O,
2270
+ clearButton: (I) => /* @__PURE__ */ n(st, { ...I, size: o, variant: e }),
2271
+ openPickerButton: (I) => /* @__PURE__ */ n(
2272
+ W,
2094
2273
  {
2095
2274
  ...I,
2096
- size: n,
2097
- "aria-label": w.formatMessage({
2275
+ size: o,
2276
+ "aria-label": C.formatMessage({
2098
2277
  id: "c4r.form.chooseDate"
2099
2278
  })
2100
2279
  }
2101
2280
  ),
2102
- ...g
2281
+ ...b
2103
2282
  },
2104
- disableOpenPicker: !d,
2105
- readOnly: h,
2106
- ampm: f
2283
+ disableOpenPicker: !u,
2284
+ readOnly: p,
2285
+ ampm: g
2107
2286
  }
2108
2287
  )
2109
2288
  }
2110
2289
  );
2111
2290
  }
2112
- function So({
2291
+ function qn({
2113
2292
  handleClear: t,
2114
2293
  variant: e = "outlined",
2115
- size: n = "small",
2116
- label: o,
2117
- labelHelpTooltip: r,
2118
- type: a,
2119
- helperText: l,
2294
+ size: o = "small",
2295
+ label: r,
2296
+ labelHelpTooltip: i,
2297
+ type: l,
2298
+ helperText: a,
2120
2299
  placeholder: c,
2121
- error: s,
2122
- showCalendar: d = !0,
2123
- readOnly: h,
2124
- slotProps: u,
2125
- slots: g,
2126
- ampm: f = !0,
2127
- views: m = ["hours", "minutes"],
2300
+ error: d,
2301
+ showCalendar: u = !0,
2302
+ readOnly: p,
2303
+ slotProps: s,
2304
+ slots: b,
2305
+ ampm: g = !0,
2306
+ views: f = ["hours", "minutes"],
2128
2307
  format: y,
2129
- ...b
2308
+ "data-testid": h,
2309
+ "aria-label": w,
2310
+ ...M
2130
2311
  }) {
2131
- const D = R(), w = $(D);
2132
- return /* @__PURE__ */ i(
2133
- Q,
2312
+ const A = R(), C = T(A);
2313
+ return /* @__PURE__ */ n(
2314
+ ut,
2134
2315
  {
2135
- size: n,
2316
+ size: o,
2136
2317
  variant: e,
2137
- readOnly: h,
2138
- "data-testid": "date-time-picker",
2139
- children: /* @__PURE__ */ i(
2140
- be,
2318
+ readOnly: p,
2319
+ "data-name": "date-time-picker",
2320
+ "data-testid": h ?? "date-time-picker",
2321
+ "aria-label": w,
2322
+ children: /* @__PURE__ */ n(
2323
+ Le,
2141
2324
  {
2142
- ...b,
2143
- label: /* @__PURE__ */ i(
2325
+ ...M,
2326
+ label: /* @__PURE__ */ n(
2144
2327
  X,
2145
2328
  {
2146
- label: o ?? w.formatMessage({ id: "c4r.form.time" }),
2147
- type: a,
2148
- icon: r && /* @__PURE__ */ i(W, { title: r, children: /* @__PURE__ */ i(Z, { htmlColor: "text.secondary" }) })
2329
+ label: r ?? C.formatMessage({ id: "c4r.form.time" }),
2330
+ type: l,
2331
+ icon: i && /* @__PURE__ */ n(P, { title: i, children: /* @__PURE__ */ n(K, { htmlColor: "text.secondary" }) })
2149
2332
  }
2150
2333
  ),
2151
2334
  views: ["year", "month", "day", "hours"],
2152
- format: $t(m, !0, f, y),
2335
+ format: Yt(f, !0, g, y),
2153
2336
  slotProps: {
2154
2337
  textField: {
2155
2338
  variant: e,
2156
- helperText: l,
2339
+ helperText: a,
2157
2340
  placeholder: c,
2158
- size: n,
2159
- error: s ?? void 0,
2341
+ size: o,
2342
+ error: d ?? void 0,
2160
2343
  // undefined is needed to allow the component to control the error state for the default validation
2161
2344
  inputProps: {
2162
2345
  "data-testid": "date-time-picker-input"
@@ -2166,140 +2349,964 @@ function So({
2166
2349
  clearable: !!t,
2167
2350
  onClear: t
2168
2351
  },
2169
- ...u
2352
+ ...s
2170
2353
  },
2171
2354
  slots: {
2172
- clearButton: (A) => /* @__PURE__ */ i(K, { ...A, size: n, variant: e }),
2173
- openPickerButton: (A) => /* @__PURE__ */ i(
2174
- O,
2355
+ clearButton: (k) => /* @__PURE__ */ n(st, { ...k, size: o, variant: e }),
2356
+ openPickerButton: (k) => /* @__PURE__ */ n(
2357
+ W,
2175
2358
  {
2176
- ...A,
2177
- size: n,
2178
- "aria-label": w.formatMessage({
2359
+ ...k,
2360
+ size: o,
2361
+ "aria-label": C.formatMessage({
2179
2362
  id: "c4r.form.chooseDate"
2180
2363
  })
2181
2364
  }
2182
2365
  ),
2183
- ...g
2366
+ ...b
2184
2367
  },
2185
- disableOpenPicker: !d,
2186
- readOnly: h,
2187
- ampm: f
2368
+ disableOpenPicker: !u,
2369
+ readOnly: p,
2370
+ ampm: g
2188
2371
  }
2189
2372
  )
2190
2373
  }
2191
2374
  );
2192
2375
  }
2193
- const wn = [{ outlinedBullet: !1, value: "" }], Bn = p("ul")(({ theme: t }) => ({
2376
+ const nr = [{ outlinedBullet: !1, value: "" }], ir = m("ul")(({ theme: t }) => ({
2194
2377
  listStyle: "none",
2195
2378
  paddingLeft: 0,
2196
2379
  margin: t.spacing(0.5, 0, 0, 0)
2197
- })), Sn = p("li")(({ theme: t }) => ({
2380
+ })), ar = m("li")(({ theme: t }) => ({
2198
2381
  display: "flex",
2199
2382
  alignItems: "center",
2200
2383
  justifyContent: "space-between",
2201
2384
  "&:not(:last-child)": {
2202
2385
  marginBottom: t.spacing(0.5)
2203
2386
  }
2204
- })), Tn = p("span")(({ theme: t }) => ({
2387
+ })), lr = m("span")(({ theme: t }) => ({
2205
2388
  width: t.spacing(1),
2206
2389
  height: t.spacing(1),
2207
2390
  marginRight: t.spacing(0.5),
2208
2391
  border: `2px solid ${t.palette.qualitative.bold[1]}`,
2209
2392
  borderRadius: "50%",
2210
2393
  backgroundColor: t.palette.qualitative.bold[1]
2211
- })), $n = p(B)(({ theme: t }) => ({
2394
+ })), cr = m(F)(({ theme: t }) => ({
2212
2395
  minWidth: t.spacing(10),
2213
2396
  marginRight: t.spacing(1.5)
2214
2397
  }));
2215
- function To({
2216
- items: t = wn,
2398
+ function Zn({
2399
+ items: t = nr,
2217
2400
  title: e
2218
2401
  }) {
2219
- return /* @__PURE__ */ x(j, { children: [
2220
- e && /* @__PURE__ */ i(B, { color: "inherit", variant: "caption", weight: "medium", children: e }),
2221
- /* @__PURE__ */ i(Bn, { children: t.map((n, o) => /* @__PURE__ */ x(Sn, { children: [
2222
- /* @__PURE__ */ i(
2223
- Tn,
2402
+ return /* @__PURE__ */ x(H, { children: [
2403
+ e && /* @__PURE__ */ n(F, { color: "inherit", variant: "caption", weight: "medium", children: e }),
2404
+ /* @__PURE__ */ n(ir, { children: t.map((o, r) => /* @__PURE__ */ x(ar, { children: [
2405
+ /* @__PURE__ */ n(
2406
+ lr,
2224
2407
  {
2225
2408
  style: {
2226
- backgroundColor: `${n.outlinedBullet ? "transparent" : n.color}`,
2227
- borderColor: n.color
2409
+ backgroundColor: `${o.outlinedBullet ? "transparent" : o.color}`,
2410
+ borderColor: o.color
2228
2411
  }
2229
2412
  }
2230
2413
  ),
2231
- n.category && /* @__PURE__ */ i($n, { color: "inherit", variant: "caption", children: n.category }),
2232
- /* @__PURE__ */ i(B, { color: "inherit", variant: "caption", weight: "medium", children: n.value })
2233
- ] }, o)) })
2414
+ o.category && /* @__PURE__ */ n(cr, { color: "inherit", variant: "caption", children: o.category }),
2415
+ /* @__PURE__ */ n(F, { color: "inherit", variant: "caption", weight: "medium", children: o.value })
2416
+ ] }, r)) })
2234
2417
  ] });
2235
2418
  }
2236
- const ct = {
2237
- small: "480px",
2238
- medium: "640px",
2239
- large: "640px",
2240
- xlarge: "720px"
2241
- }, st = {
2242
- small: {
2243
- width: "432px",
2244
- maxWidth: "432px"
2245
- },
2246
- medium: {
2247
- width: "592px",
2248
- maxWidth: "592px"
2249
- },
2250
- large: {
2251
- width: "768px",
2252
- maxWidth: "768px",
2253
- minHeight: "576px"
2254
- },
2255
- xlarge: {
2256
- width: "calc(100vw - 80px)",
2257
- height: "calc(100vh - 80px)",
2258
- maxWidth: "960px"
2259
- }
2260
- }, dt = p(ee, {
2261
- shouldForwardProp: (t) => !["fullScreen", "height", "width", "hasForm"].includes(t)
2419
+ const dr = m(D, {
2420
+ shouldForwardProp: (t) => !["withGutter", "disabled"].includes(t)
2262
2421
  })(
2263
- ({
2264
- fullScreen: t,
2265
- height: e,
2266
- width: n,
2267
- hasForm: o,
2268
- size: r = "small",
2269
- theme: a
2270
- }) => ({
2271
- "&.MuiPaper-root": {
2272
- position: "relative",
2273
- display: "flex",
2274
- flexDirection: "column",
2275
- margin: a.spacing(5),
2276
- borderRadius: a.spacing(1),
2277
- ...st[r],
2278
- maxHeight: ct[r],
2279
- [`@media (max-height:${ct[r]})`]: {
2280
- maxHeight: "calc(100vh - 80px)",
2281
- ...r === "large" && {
2282
- minHeight: e !== "auto" ? "calc(100vh - 80px)" : "auto"
2283
- }
2284
- },
2285
- ...t && {
2286
- width: "100vw",
2287
- maxWidth: `calc(100vw - ${a.spacing(10)})`,
2288
- height: "100vh",
2289
- maxHeight: `calc(100vh - ${a.spacing(10)})`,
2290
- margin: a.spacing(5),
2291
- borderRadius: a.spacing(1)
2292
- },
2293
- ...e && {
2294
- height: e,
2295
- minHeight: e
2296
- },
2297
- ...n && {
2298
- width: n
2299
- },
2300
- [a.breakpoints.down("sm")]: {
2301
- position: "absolute",
2302
- width: "100%",
2422
+ ({ withGutter: t, disabled: e, theme: o }) => ({
2423
+ display: "flex",
2424
+ alignItems: "center",
2425
+ justifyContent: "flex-end",
2426
+ gap: o.spacing(1),
2427
+ ...t && {
2428
+ height: o.spacing(4),
2429
+ padding: o.spacing(0, 0.5),
2430
+ borderTop: `1px solid ${o.palette.divider}`,
2431
+ borderBottom: "1px solid transparent"
2432
+ },
2433
+ ...e && {
2434
+ backgroundColor: o.palette.default.background
2435
+ }
2436
+ })
2437
+ );
2438
+ function qt({
2439
+ onClickFooter: t,
2440
+ labelIdButtonFooter: e,
2441
+ ariaLabelButtonFooter: o,
2442
+ disabledButtonFooter: r,
2443
+ withGutter: i = !0,
2444
+ showSnackbar: l,
2445
+ onCloseSnackbar: a,
2446
+ loading: c,
2447
+ disabled: d,
2448
+ ...u
2449
+ }) {
2450
+ const p = R(), s = T(p);
2451
+ return t ? /* @__PURE__ */ x(
2452
+ dr,
2453
+ {
2454
+ withGutter: i,
2455
+ disabled: d,
2456
+ "data-name": "code-area-footer",
2457
+ "data-gutter": i,
2458
+ children: [
2459
+ /* @__PURE__ */ n(
2460
+ nt,
2461
+ {
2462
+ variant: "text",
2463
+ ...u,
2464
+ loading: c,
2465
+ onClick: t,
2466
+ "aria-label": o || "save-form-button",
2467
+ disabled: d || r,
2468
+ children: s.formatMessage({
2469
+ id: e || "c4r.button.save"
2470
+ })
2471
+ }
2472
+ ),
2473
+ /* @__PURE__ */ n(
2474
+ dt,
2475
+ {
2476
+ open: l,
2477
+ autoWidth: !0,
2478
+ closeable: !1,
2479
+ autoHideDuration: 4e3,
2480
+ onClose: a,
2481
+ children: s.formatMessage({
2482
+ id: "c4r.notifications.changesSaved"
2483
+ })
2484
+ }
2485
+ )
2486
+ ]
2487
+ }
2488
+ ) : null;
2489
+ }
2490
+ const Mt = m(D, { shouldForwardProp: (t) => t !== "size" })(({ size: t, theme: e }) => ({
2491
+ position: "absolute",
2492
+ top: 0,
2493
+ right: e.spacing(0.5),
2494
+ zIndex: 1,
2495
+ display: "flex",
2496
+ justifyContent: "flex-end",
2497
+ gap: e.spacing(1),
2498
+ padding: t === "small" ? e.spacing(0.5) : e.spacing(1, 2, 2),
2499
+ paddingRight: t === "small" ? 0 : e.spacing(1.5)
2500
+ }));
2501
+ function sr({
2502
+ disabled: t,
2503
+ copyValue: e,
2504
+ onClickExpand: o,
2505
+ size: r
2506
+ }) {
2507
+ const i = R(), l = T(i), a = !!o, c = e !== void 0, d = a && c, { copy: u } = Vt(), [p, s] = B(!1), [b, g] = B(null), f = !!b, y = (M) => {
2508
+ g(M.currentTarget);
2509
+ }, h = () => {
2510
+ g(null);
2511
+ }, w = (M) => {
2512
+ M.preventDefault(), e && u(e).then(() => {
2513
+ s(!0);
2514
+ }).catch(console.error);
2515
+ };
2516
+ return !a && !c ? null : d ? /* @__PURE__ */ x(H, { children: [
2517
+ /* @__PURE__ */ x(Mt, { size: r, "data-size": r, "data-name": "code-area-header", children: [
2518
+ /* @__PURE__ */ n(
2519
+ q,
2520
+ {
2521
+ color: "default",
2522
+ size: r,
2523
+ icon: /* @__PURE__ */ n($e, {}),
2524
+ disabled: t,
2525
+ tooltip: l.formatMessage({ id: "c4r.button.showOptions" }),
2526
+ tooltipPlacement: "top",
2527
+ "aria-controls": f ? "basic-menu" : void 0,
2528
+ "aria-haspopup": "true",
2529
+ "aria-expanded": f ? "true" : void 0,
2530
+ onClick: y
2531
+ }
2532
+ ),
2533
+ /* @__PURE__ */ x(
2534
+ co,
2535
+ {
2536
+ anchorEl: b,
2537
+ open: f,
2538
+ onClose: h,
2539
+ id: "menu",
2540
+ MenuListProps: { "aria-labelledby": "menu-button" },
2541
+ "aria-label": "Code area actions",
2542
+ transformOrigin: { vertical: "top", horizontal: "right" },
2543
+ anchorOrigin: { vertical: "bottom", horizontal: "right" },
2544
+ children: [
2545
+ /* @__PURE__ */ x(Y, { onClick: w, disabled: t, id: "copy", children: [
2546
+ /* @__PURE__ */ n(rt, { children: /* @__PURE__ */ n(Lt, {}) }),
2547
+ /* @__PURE__ */ n(U, { children: l.formatMessage({ id: "c4r.button.copy" }) })
2548
+ ] }),
2549
+ /* @__PURE__ */ x(Y, { onClick: o, disabled: t, id: "expand", children: [
2550
+ /* @__PURE__ */ n(rt, { children: /* @__PURE__ */ n(mt, {}) }),
2551
+ /* @__PURE__ */ n(U, { children: l.formatMessage({ id: "c4r.button.expand" }) })
2552
+ ] })
2553
+ ]
2554
+ }
2555
+ )
2556
+ ] }),
2557
+ /* @__PURE__ */ n(
2558
+ dt,
2559
+ {
2560
+ open: p,
2561
+ autoWidth: !0,
2562
+ closeable: !1,
2563
+ autoHideDuration: 4e3,
2564
+ onClose: () => s(!1),
2565
+ children: l.formatMessage({
2566
+ id: "c4r.notifications.copiedToClipboard"
2567
+ })
2568
+ }
2569
+ )
2570
+ ] }) : /* @__PURE__ */ x(Mt, { size: r, "data-size": r, "data-name": "code-area-header", children: [
2571
+ c && /* @__PURE__ */ n(
2572
+ Ro,
2573
+ {
2574
+ disabled: t,
2575
+ value: e,
2576
+ button: !0,
2577
+ buttonProps: { size: r }
2578
+ }
2579
+ ),
2580
+ a && /* @__PURE__ */ n(
2581
+ q,
2582
+ {
2583
+ color: "default",
2584
+ size: r,
2585
+ onClick: o,
2586
+ icon: /* @__PURE__ */ n(mt, {}),
2587
+ disabled: t,
2588
+ tooltip: l.formatMessage({ id: "c4r.button.expand" }),
2589
+ tooltipPlacement: "top"
2590
+ }
2591
+ )
2592
+ ] });
2593
+ }
2594
+ const ur = m(D, {
2595
+ shouldForwardProp: (t) => !["size", "height"].includes(t)
2596
+ })(({ size: t, height: e, theme: o }) => ({
2597
+ position: "relative",
2598
+ flex: 1,
2599
+ display: "flex",
2600
+ cursor: "text",
2601
+ ":focus-within &, .error &": {
2602
+ marginBottom: 0
2603
+ },
2604
+ "& .react-codemirror2": {
2605
+ width: "100%",
2606
+ height: "100% !important",
2607
+ position: "relative"
2608
+ },
2609
+ "& .CodeMirror": {
2610
+ position: "absolute",
2611
+ top: 0,
2612
+ bottom: 0,
2613
+ left: 0,
2614
+ right: 0,
2615
+ zIndex: 1,
2616
+ height: "100% !important",
2617
+ backgroundColor: o.palette.background.default
2618
+ },
2619
+ "& .CodeMirror-code": {
2620
+ "&> div:first-of-type .CodeMirror-line": {
2621
+ marginTop: o.spacing(-0.25)
2622
+ }
2623
+ },
2624
+ "& .CodeMirror-scroll": {
2625
+ paddingLeft: o.spacing(1),
2626
+ paddingRight: o.spacing(1),
2627
+ backgroundColor: "transparent"
2628
+ },
2629
+ "& .CodeMirror-lines": {
2630
+ padding: o.spacing(1, 0)
2631
+ },
2632
+ "& .CodeMirror pre.CodeMirror-line, & .CodeMirror pre.CodeMirror-line-like": {
2633
+ boxSizing: "border-box",
2634
+ paddingLeft: 0,
2635
+ paddingTop: o.spacing(0.25),
2636
+ lineHeight: 1.2
2637
+ },
2638
+ "& .CodeMirror-linenumbers": {
2639
+ width: `${o.spacing(4.5)} !important`
2640
+ },
2641
+ "& .CodeMirror-linenumber": {
2642
+ width: `${o.spacing(4.5)} !important`,
2643
+ height: o.spacing(2),
2644
+ marginBottom: `${o.spacing(-0.25)} !important`,
2645
+ paddingTop: o.spacing(0.25),
2646
+ paddingRight: o.spacing(1.25),
2647
+ boxSizing: "border-box !important",
2648
+ color: o.palette.text.secondary
2649
+ },
2650
+ // Active line addon
2651
+ "& .CodeMirror-activeline-background, & .CodeMirror-activeline-gutter": {
2652
+ backgroundColor: "transparent"
2653
+ },
2654
+ "& .CodeMirror-gutter-background": {
2655
+ width: `${o.spacing(6.25)} !important`
2656
+ // Hack needed to simulate active line background
2657
+ },
2658
+ "& .CodeMirror-sizer": {
2659
+ paddingTop: o.spacing(0.25),
2660
+ marginLeft: `${o.spacing(5.25)} !important`,
2661
+ borderRightWidth: `${o.spacing(4)} !important`
2662
+ // Hack needed to simulate active line background
2663
+ },
2664
+ "& .CodeMirror-matchingbracket": {
2665
+ color: `${bt[900]} !important`,
2666
+ backgroundColor: o.palette.black[4],
2667
+ boxShadow: `0 0 0 1px ${o.palette.text.hint}`
2668
+ },
2669
+ // Selected line
2670
+ "& .CodeMirror-selected, & .CodeMirror-focused .CodeMirror-selected, & .CodeMirror-line::selection, & .CodeMirror-line > span::selection, & .CodeMirror-line > span > span::selection": {
2671
+ background: `${Ot(tt[800], 0.2)} !important`
2672
+ },
2673
+ "& .CodeMirror-gutters": {
2674
+ borderRight: 0,
2675
+ color: o.palette.text.secondary,
2676
+ backgroundColor: o.palette.default.background
2677
+ },
2678
+ "& .CodeMirror-gutter-elt": {
2679
+ "& .CodeMirror-foldgutter-open, .CodeMirror-foldgutter-folded": {
2680
+ marginLeft: o.spacing(-1),
2681
+ "&:after": {
2682
+ fontSize: o.typography.caption.fontSize
2683
+ }
2684
+ }
2685
+ },
2686
+ "& .CodeMirror-placeholder": {
2687
+ paddingTop: "0 !important",
2688
+ marginLeft: `${o.spacing(-0.5)} !important`,
2689
+ marginBottom: `${o.spacing(-0.25)} !important`,
2690
+ color: `${o.palette.text.hint} !important`
2691
+ },
2692
+ "& .MuiLinearProgress-root": {
2693
+ height: "2px",
2694
+ position: "absolute",
2695
+ top: 0,
2696
+ left: 0,
2697
+ right: 0,
2698
+ zIndex: 1
2699
+ },
2700
+ "& .pre.CodeMirror-line, .CodeMirror pre.CodeMirror-line-like, & .cm-bracket": {
2701
+ color: o.palette.text.primary
2702
+ },
2703
+ "& .CodeMirror pre.CodeMirror-placeholder": {
2704
+ color: o.palette.text.hint
2705
+ },
2706
+ "& .CodeMirror-composing": {
2707
+ border: 0
2708
+ },
2709
+ // Theme: light
2710
+ "& .cm-keyword, & .cm-string, & .cm-string-2, & .cm-other": {
2711
+ color: Pe[500]
2712
+ },
2713
+ "& .cm-operator, & .cm-tag, & .cm-attribute": {
2714
+ color: ze[700]
2715
+ },
2716
+ "& .cm-number, & .cm-property, & .cm-builtin": {
2717
+ color: Ne[700]
2718
+ },
2719
+ "& .cm-comment": {
2720
+ color: o.palette.text.secondary
2721
+ },
2722
+ "& .cm-variable": {
2723
+ color: bt[900]
2724
+ },
2725
+ "& .cm-variable-2": {
2726
+ color: o.palette.text.primary
2727
+ },
2728
+ "& .cm-punctuation, & .cm-def, ": {
2729
+ color: tt[800]
2730
+ },
2731
+ "& .cm-variable-3, & .cm-type": {
2732
+ color: _e[800]
2733
+ },
2734
+ "& .CodeMirror-foldmarker": {
2735
+ textShadow: "none",
2736
+ color: o.palette.primary.main
2737
+ },
2738
+ "& .cm-error": {
2739
+ color: o.palette.error.main
2740
+ },
2741
+ "& .CodeMirror-selected": {
2742
+ background: tt[800]
2743
+ },
2744
+ "& .cm-header-1": {
2745
+ fontSize: o.typography.h2.fontSize
2746
+ },
2747
+ "& .cm-header-2": {
2748
+ fontSize: o.typography.h3.fontSize
2749
+ },
2750
+ "& .cm-header-3": {
2751
+ fontSize: o.typography.h4.fontSize
2752
+ },
2753
+ "& .cm-header-4": {
2754
+ fontSize: o.typography.h5.fontSize
2755
+ },
2756
+ "& .cm-header-5": {
2757
+ fontSize: o.typography.h6.fontSize
2758
+ },
2759
+ ...t === "small" && {
2760
+ "& .CodeMirror": {
2761
+ height: e || "auto",
2762
+ minHeight: o.spacing(9),
2763
+ ...o.typography.code3
2764
+ }
2765
+ }
2766
+ }));
2767
+ function pr(t) {
2768
+ const e = t.split(`
2769
+ `), o = [], r = [];
2770
+ for (e.forEach((i, l) => {
2771
+ const a = l + 1;
2772
+ if (i.trim() === "-- BEGIN CONTROL CODE")
2773
+ r.push(a);
2774
+ else if (i.trim() === "-- END CONTROL CODE" && r.length > 0) {
2775
+ const c = r.pop();
2776
+ o.push({
2777
+ from: c,
2778
+ to: a
2779
+ });
2780
+ }
2781
+ }); r.length > 0; ) {
2782
+ const i = r.pop();
2783
+ o.push({
2784
+ from: i,
2785
+ to: e.length
2786
+ // Set end to last line for unmatched BEGIN
2787
+ });
2788
+ }
2789
+ return o;
2790
+ }
2791
+ function gr({
2792
+ options: t,
2793
+ value: e,
2794
+ defaultValue: o,
2795
+ id: r,
2796
+ onEditorDidMount: i,
2797
+ onChange: l,
2798
+ onBlur: a,
2799
+ onFocus: c,
2800
+ placeholder: d,
2801
+ disabled: u,
2802
+ size: p = "small",
2803
+ height: s,
2804
+ "data-testid": b,
2805
+ "aria-label": g = "Code editor text area",
2806
+ "aria-labelledby": f,
2807
+ ...y
2808
+ }) {
2809
+ var k;
2810
+ const h = Z(), w = {
2811
+ mode: "sql",
2812
+ theme: "light",
2813
+ lineNumbers: !0,
2814
+ lineWrapping: !0,
2815
+ extraKeys: { "Ctrl-Space": "autocomplete" },
2816
+ placeholder: d,
2817
+ disabled: u,
2818
+ gutters: ["CodeMirror-linenumbers", "CodeMirror-foldgutter"],
2819
+ styleActiveLine: { nonEmpty: !0 },
2820
+ styleActiveSelected: !0,
2821
+ matchBrackets: !0,
2822
+ foldOptions: {
2823
+ minFoldSize: 1,
2824
+ scanUp: !1
2825
+ },
2826
+ ...t
2827
+ }, [M, A] = B(null);
2828
+ z(() => () => {
2829
+ A(null);
2830
+ }, []);
2831
+ const C = ot(
2832
+ ({ from: v, to: $ }) => {
2833
+ M.foldCode(
2834
+ 0,
2835
+ {
2836
+ rangeFinder: () => {
2837
+ if ($)
2838
+ return {
2839
+ from: { line: v - 1, ch: 0 },
2840
+ to: { line: $ - 1, ch: 0 }
2841
+ };
2842
+ }
2843
+ },
2844
+ "fold"
2845
+ );
2846
+ },
2847
+ [M]
2848
+ );
2849
+ return z(() => {
2850
+ if (!e || !M) return;
2851
+ const v = pr(e);
2852
+ if (v.length)
2853
+ for (const $ of v)
2854
+ C($);
2855
+ }, [e, C, M]), /* @__PURE__ */ x(
2856
+ ur,
2857
+ {
2858
+ size: p,
2859
+ height: s,
2860
+ id: r,
2861
+ "data-size": p,
2862
+ "data-height": s,
2863
+ "data-mode": typeof (t == null ? void 0 : t.mode) == "object" && ((k = t.mode) != null && k.name) ? t.mode.name : t == null ? void 0 : t.mode,
2864
+ "data-fold-gutter": t == null ? void 0 : t.foldGutter,
2865
+ "data-testid": b,
2866
+ "aria-label": f ? void 0 : g,
2867
+ "aria-labelledby": f,
2868
+ "data-name": "code-area-input",
2869
+ children: [
2870
+ e !== void 0 && /* @__PURE__ */ n(
2871
+ Ee,
2872
+ {
2873
+ ...y,
2874
+ value: e,
2875
+ editorDidMount: (v) => {
2876
+ h.current = v, A(v), i == null || i(v);
2877
+ },
2878
+ options: w,
2879
+ onBeforeChange: (v, $, I) => {
2880
+ l == null || l(I);
2881
+ },
2882
+ onBlur: (v) => {
2883
+ a == null || a(v.getValue());
2884
+ },
2885
+ onFocus: c
2886
+ }
2887
+ ),
2888
+ o !== void 0 && /* @__PURE__ */ n(
2889
+ He,
2890
+ {
2891
+ ...y,
2892
+ value: o,
2893
+ options: w,
2894
+ onBlur: (v) => {
2895
+ a == null || a(v.getValue());
2896
+ },
2897
+ onFocus: c
2898
+ }
2899
+ )
2900
+ ]
2901
+ }
2902
+ );
2903
+ }
2904
+ const fr = m(Bt)(() => ({
2905
+ display: "flex",
2906
+ flexDirection: "column",
2907
+ flex: 1
2908
+ })), mr = m(D, {
2909
+ shouldForwardProp: (t) => ![
2910
+ "variant",
2911
+ "error",
2912
+ "disabled",
2913
+ "readOnly",
2914
+ "lineNumbers",
2915
+ "fullScreen"
2916
+ ].includes(t)
2917
+ })(
2918
+ ({ variant: t, error: e, disabled: o, readOnly: r, lineNumbers: i, fullScreen: l, theme: a }) => ({
2919
+ position: "relative",
2920
+ overflow: "auto",
2921
+ display: "flex",
2922
+ flexDirection: "column",
2923
+ flex: 1,
2924
+ width: "100%",
2925
+ minHeight: 0,
2926
+ background: a.palette.background.paper,
2927
+ // Active line addon
2928
+ ".CodeMirror-focused .CodeMirror-activeline": {
2929
+ "& .CodeMirror-activeline-background, & .CodeMirror-activeline-gutter": {
2930
+ background: a.palette.primary.background
2931
+ }
2932
+ },
2933
+ ...l && {
2934
+ maxWidth: "100%",
2935
+ maxHeight: "100vh",
2936
+ height: "100vh"
2937
+ },
2938
+ ...(t === "filled" || t === "outlined") && {
2939
+ borderRadius: a.spacing(0.5),
2940
+ transition: a.transitions.create("background-color", {
2941
+ easing: a.transitions.easing.easeInOut,
2942
+ duration: a.transitions.duration.shortest
2943
+ }),
2944
+ "&:after": {
2945
+ content: '""',
2946
+ position: "absolute",
2947
+ top: 0,
2948
+ left: 0,
2949
+ right: 0,
2950
+ bottom: 0,
2951
+ pointerEvents: "none",
2952
+ border: `1px solid ${a.palette.default.outlinedBorder}`,
2953
+ borderRadius: a.spacing(0.5),
2954
+ transition: a.transitions.create("border-color", {
2955
+ easing: a.transitions.easing.easeInOut,
2956
+ duration: a.transitions.duration.shortest
2957
+ })
2958
+ },
2959
+ "&:hover:after": {
2960
+ borderColor: a.palette.common.black
2961
+ },
2962
+ "&:focus-within": {
2963
+ overflow: "hidden",
2964
+ "&:after": {
2965
+ borderWidth: "2px",
2966
+ borderColor: a.palette.primary.main
2967
+ }
2968
+ },
2969
+ ...e && {
2970
+ "&.MuiBox-root:after": {
2971
+ borderWidth: "2px",
2972
+ borderColor: a.palette.error.main
2973
+ }
2974
+ }
2975
+ },
2976
+ ...t === "filled" && {
2977
+ backgroundColor: a.palette.background.paper,
2978
+ "&.codeArea-filled:after": {
2979
+ borderColor: "transparent"
2980
+ },
2981
+ "&.codeArea-filled:hover:after": {
2982
+ borderColor: a.palette.common.black
2983
+ },
2984
+ "&.codeArea-filled:focus-within:after": {
2985
+ borderWidth: "2px",
2986
+ borderColor: a.palette.primary.main
2987
+ },
2988
+ "& .CodeMirror": {
2989
+ backgroundColor: a.palette.default.background,
2990
+ "&:focus-within": {
2991
+ backgroundColor: a.palette.background.paper
2992
+ }
2993
+ },
2994
+ ...e && {
2995
+ borderColor: a.palette.error.main,
2996
+ "& .CodeMirror": {
2997
+ backgroundColor: a.palette.default.background
2998
+ },
2999
+ "&:hover, &:focus-within, &.codeArea-filled:after, &.codeArea-filled:hover:after, &.codeArea-filled:focus-within:after": {
3000
+ borderColor: a.palette.error.main
3001
+ },
3002
+ "&:focus-within": {
3003
+ "& .CodeMirror": {
3004
+ backgroundColor: a.palette.background.paper
3005
+ }
3006
+ }
3007
+ }
3008
+ },
3009
+ ...r && {
3010
+ "& .CodeMirror": {
3011
+ backgroundColor: a.palette.default.background,
3012
+ ".CodeMirror-cursors": {
3013
+ visibility: "hidden !important"
3014
+ }
3015
+ },
3016
+ ...t === "filled" && {
3017
+ backgroundColor: a.palette.background.paper
3018
+ }
3019
+ },
3020
+ ...o && {
3021
+ pointerEvents: "none",
3022
+ "& .CodeMirror": {
3023
+ color: a.palette.text.disabled,
3024
+ backgroundColor: a.palette.default.background,
3025
+ "& span, .CodeMirror-linenumber, .CodeMirror-guttermarker-subtle": {
3026
+ color: a.palette.text.disabled
3027
+ }
3028
+ },
3029
+ ...t === "filled" && {
3030
+ backgroundColor: a.palette.background.paper
3031
+ }
3032
+ },
3033
+ ...!i && {
3034
+ "& .CodeMirror-scroll .CodeMirror-sizer": {
3035
+ marginLeft: `${a.spacing(1)} !important`
3036
+ },
3037
+ "& .CodeMirror-gutter-background": {
3038
+ width: `${a.spacing(2)} !important`
3039
+ }
3040
+ }
3041
+ })
3042
+ ), br = m(D, {
3043
+ shouldForwardProp: (t) => t !== "hasActions"
3044
+ })(({ theme: t, hasActions: e }) => ({
3045
+ flex: "1 1 auto",
3046
+ overflowY: "auto",
3047
+ display: "flex",
3048
+ flexDirection: "column",
3049
+ ...e && {
3050
+ ".CodeMirror-line": {
3051
+ paddingRight: `${t.spacing(4)} !important`
3052
+ }
3053
+ }
3054
+ })), hr = m(K)(({ theme: t }) => ({
3055
+ width: N,
3056
+ height: N,
3057
+ fill: t.palette.text.secondary
3058
+ }));
3059
+ function xr({
3060
+ value: t,
3061
+ defaultValue: e,
3062
+ validate: o,
3063
+ onChange: r,
3064
+ onBlur: i,
3065
+ onFocus: l,
3066
+ label: a,
3067
+ labelHelpTooltip: c,
3068
+ placeholder: d,
3069
+ type: u,
3070
+ disabled: p,
3071
+ copyValue: s,
3072
+ helperText: b,
3073
+ error: g,
3074
+ size: f = "small",
3075
+ variant: y = "outlined",
3076
+ onClickExpand: h,
3077
+ onClickFooter: w,
3078
+ disabledButtonFooter: M,
3079
+ labelIdButtonFooter: A,
3080
+ ariaLabelButtonFooter: C,
3081
+ options: k,
3082
+ id: v = "code-area-field",
3083
+ saveLoading: $,
3084
+ showSaveSnackbar: I,
3085
+ onCloseSaveSnackbar: E,
3086
+ fullScreen: S,
3087
+ isExpanded: L,
3088
+ ...V
3089
+ }) {
3090
+ const [Xt, pt] = B(!1), gt = (k == null ? void 0 : k.readOnly) ?? !1, Qt = (k == null ? void 0 : k.lineNumbers) ?? !0;
3091
+ return /* @__PURE__ */ x(
3092
+ fr,
3093
+ {
3094
+ size: f,
3095
+ error: g,
3096
+ disabled: p,
3097
+ "aria-disabled": p,
3098
+ "data-size": f,
3099
+ "data-full-screen": S,
3100
+ "data-variant": y,
3101
+ "data-name": "code-area-field",
3102
+ children: [
3103
+ a && /* @__PURE__ */ n(
3104
+ Tt,
3105
+ {
3106
+ htmlFor: v,
3107
+ disabled: p,
3108
+ error: g,
3109
+ focused: Xt,
3110
+ shrink: !0,
3111
+ id: `${v}-label`,
3112
+ children: /* @__PURE__ */ n(
3113
+ X,
3114
+ {
3115
+ label: a,
3116
+ type: u,
3117
+ icon: c ? /* @__PURE__ */ n(P, { title: c, children: /* @__PURE__ */ n(
3118
+ hr,
3119
+ {
3120
+ "aria-label": typeof c == "string" ? c : void 0
3121
+ }
3122
+ ) }) : void 0
3123
+ }
3124
+ )
3125
+ }
3126
+ ),
3127
+ /* @__PURE__ */ x(
3128
+ mr,
3129
+ {
3130
+ variant: y,
3131
+ error: !!g,
3132
+ disabled: p,
3133
+ readOnly: gt,
3134
+ lineNumbers: Qt,
3135
+ className: y === "filled" ? "codeArea-filled" : "",
3136
+ fullScreen: S,
3137
+ children: [
3138
+ /* @__PURE__ */ n(
3139
+ sr,
3140
+ {
3141
+ onClickExpand: h,
3142
+ copyValue: s,
3143
+ disabled: p,
3144
+ size: L ? "medium" : "small"
3145
+ }
3146
+ ),
3147
+ /* @__PURE__ */ n(br, { hasActions: !!s || !!h, children: /* @__PURE__ */ n(
3148
+ gr,
3149
+ {
3150
+ ...V,
3151
+ id: v,
3152
+ disabled: p,
3153
+ value: t,
3154
+ defaultValue: e,
3155
+ placeholder: d,
3156
+ onFocus: () => {
3157
+ pt(!0), l == null || l();
3158
+ },
3159
+ onBlur: (Q) => {
3160
+ i && i(Q), r && r(Q), o && o(Q), pt(!1);
3161
+ },
3162
+ onChange: r,
3163
+ size: f,
3164
+ options: {
3165
+ ...gt && {
3166
+ styleActiveLine: !1,
3167
+ matchBrackets: !1
3168
+ },
3169
+ ...k
3170
+ },
3171
+ "aria-labelledby": a ? `${v}-label` : void 0
3172
+ }
3173
+ ) }),
3174
+ /* @__PURE__ */ n(
3175
+ qt,
3176
+ {
3177
+ labelIdButtonFooter: A,
3178
+ ariaLabelButtonFooter: C,
3179
+ onClickFooter: w,
3180
+ disabled: p,
3181
+ disabledButtonFooter: M,
3182
+ size: "small",
3183
+ loading: !!$,
3184
+ showSnackbar: I,
3185
+ onCloseSnackbar: E
3186
+ }
3187
+ )
3188
+ ]
3189
+ }
3190
+ ),
3191
+ b && /* @__PURE__ */ n(J, { children: b })
3192
+ ]
3193
+ }
3194
+ );
3195
+ }
3196
+ const yr = m(D)(({ theme: t }) => ({
3197
+ position: "relative",
3198
+ marginBottom: "1px",
3199
+ padding: t.spacing(1.5, 2, 1.5, 5.5),
3200
+ "&:before": {
3201
+ content: '""',
3202
+ position: "absolute",
3203
+ top: 0,
3204
+ left: 0,
3205
+ bottom: 0,
3206
+ zIndex: 1,
3207
+ width: t.spacing(5),
3208
+ background: t.palette.background.default
3209
+ },
3210
+ "&:after": {
3211
+ content: '""',
3212
+ position: "absolute",
3213
+ top: 0,
3214
+ right: 0,
3215
+ left: 0,
3216
+ bottom: 0,
3217
+ zIndex: 2,
3218
+ background: "linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, #FFFFFF 40%)"
3219
+ },
3220
+ ".MuiFormHelperText-root": {
3221
+ marginTop: 0
3222
+ }
3223
+ })), Cr = m(D)(({ theme: t }) => ({
3224
+ position: "relative",
3225
+ zIndex: 3,
3226
+ display: "flex",
3227
+ alignItems: "center",
3228
+ gap: t.spacing(1)
3229
+ }));
3230
+ function Mr({
3231
+ children: t,
3232
+ hasDivider: e
3233
+ }) {
3234
+ const o = j();
3235
+ return t ? /* @__PURE__ */ x(H, { children: [
3236
+ /* @__PURE__ */ n(yr, { children: /* @__PURE__ */ x(Cr, { children: [
3237
+ /* @__PURE__ */ n(Be, { htmlColor: o.palette.error.main }),
3238
+ /* @__PURE__ */ n(J, { error: !0, children: t })
3239
+ ] }) }),
3240
+ e && /* @__PURE__ */ n(_, {})
3241
+ ] }) : null;
3242
+ }
3243
+ const kt = {
3244
+ small: "480px",
3245
+ medium: "640px",
3246
+ large: "640px",
3247
+ xlarge: "720px"
3248
+ }, vt = {
3249
+ small: {
3250
+ width: "432px",
3251
+ maxWidth: "432px"
3252
+ },
3253
+ medium: {
3254
+ width: "592px",
3255
+ maxWidth: "592px"
3256
+ },
3257
+ large: {
3258
+ width: "768px",
3259
+ maxWidth: "768px",
3260
+ minHeight: "576px"
3261
+ },
3262
+ xlarge: {
3263
+ width: "calc(100vw - 80px)",
3264
+ height: "calc(100vh - 80px)",
3265
+ maxWidth: "960px"
3266
+ }
3267
+ }, wt = m(he, {
3268
+ shouldForwardProp: (t) => !["fullScreen", "height", "width", "hasForm"].includes(t)
3269
+ })(
3270
+ ({
3271
+ fullScreen: t,
3272
+ height: e,
3273
+ width: o,
3274
+ hasForm: r,
3275
+ size: i = "small",
3276
+ theme: l
3277
+ }) => ({
3278
+ "&.MuiPaper-root": {
3279
+ position: "relative",
3280
+ display: "flex",
3281
+ flexDirection: "column",
3282
+ margin: l.spacing(5),
3283
+ borderRadius: l.spacing(1),
3284
+ ...vt[i],
3285
+ maxHeight: kt[i],
3286
+ [`@media (max-height:${kt[i]})`]: {
3287
+ maxHeight: "calc(100vh - 80px)",
3288
+ ...i === "large" && {
3289
+ minHeight: e !== "auto" ? "calc(100vh - 80px)" : "auto"
3290
+ }
3291
+ },
3292
+ ...t && {
3293
+ width: "100vw",
3294
+ maxWidth: `calc(100vw - ${l.spacing(10)})`,
3295
+ height: "100vh",
3296
+ maxHeight: `calc(100vh - ${l.spacing(10)})`,
3297
+ margin: l.spacing(5),
3298
+ borderRadius: l.spacing(1)
3299
+ },
3300
+ ...e && {
3301
+ height: e,
3302
+ minHeight: e
3303
+ },
3304
+ ...o && {
3305
+ width: o
3306
+ },
3307
+ [l.breakpoints.down("sm")]: {
3308
+ position: "absolute",
3309
+ width: "100%",
2303
3310
  maxWidth: "100%",
2304
3311
  height: "100vh",
2305
3312
  maxHeight: "100vh",
@@ -2311,21 +3318,21 @@ const ct = {
2311
3318
  borderRadius: 0,
2312
3319
  ...e && {
2313
3320
  top: "auto",
2314
- borderRadius: a.spacing(1, 1, 0, 0),
3321
+ borderRadius: l.spacing(1, 1, 0, 0),
2315
3322
  height: e,
2316
3323
  minHeight: e
2317
3324
  }
2318
3325
  },
2319
3326
  // Special case for Dialogs wrapped in Form
2320
- ...o && {
2321
- maxHeight: `calc(100vh - ${a.spacing(10)})`,
3327
+ ...r && {
3328
+ maxHeight: `calc(100vh - ${l.spacing(10)})`,
2322
3329
  form: {
2323
3330
  flex: 1,
2324
3331
  display: "flex",
2325
3332
  flexDirection: "column",
2326
3333
  justifyContent: "space-between",
2327
3334
  overflow: "hidden",
2328
- ...st[r],
3335
+ ...vt[i],
2329
3336
  maxWidth: "100%",
2330
3337
  ...t && {
2331
3338
  width: "100%",
@@ -2337,17 +3344,17 @@ const ct = {
2337
3344
  height: e,
2338
3345
  minHeight: e
2339
3346
  },
2340
- ...n && {
2341
- width: n
3347
+ ...o && {
3348
+ width: o
2342
3349
  },
2343
- [a.breakpoints.down("sm")]: {
3350
+ [l.breakpoints.down("sm")]: {
2344
3351
  width: "100%",
2345
3352
  maxWidth: "100%",
2346
3353
  height: "100vh",
2347
3354
  maxHeight: "100vh",
2348
3355
  ...e && {
2349
3356
  top: "auto",
2350
- borderRadius: a.spacing(1, 1, 0, 0),
3357
+ borderRadius: l.spacing(1, 1, 0, 0),
2351
3358
  height: e,
2352
3359
  minHeight: e
2353
3360
  }
@@ -2357,125 +3364,130 @@ const ct = {
2357
3364
  }
2358
3365
  })
2359
3366
  );
2360
- function $o({
3367
+ function kr({
2361
3368
  nonModal: t,
2362
3369
  children: e,
2363
- size: n = "small",
2364
- PaperProps: o,
2365
- fullScreen: r,
2366
- height: a,
2367
- width: l,
3370
+ size: o = "small",
3371
+ PaperProps: r,
3372
+ fullScreen: i,
3373
+ height: l,
3374
+ width: a,
2368
3375
  hasForm: c,
2369
- "aria-label": s,
2370
- "data-testid": d,
2371
- ...h
2372
- }) {
2373
- return t ? /* @__PURE__ */ i(
2374
- dt,
3376
+ "aria-label": d,
3377
+ "data-testid": u,
3378
+ ...p
3379
+ }, s) {
3380
+ return t ? /* @__PURE__ */ n(
3381
+ wt,
2375
3382
  {
2376
- size: n,
2377
- fullScreen: r,
2378
- height: a,
2379
- width: l,
3383
+ size: o,
3384
+ fullScreen: i,
3385
+ height: l,
3386
+ width: a,
2380
3387
  hasForm: c,
2381
- "aria-label": s,
2382
- "data-testid": d,
2383
- ...h,
3388
+ "aria-label": d,
3389
+ "data-testid": u,
3390
+ "data-name": "dialog",
3391
+ ...p,
3392
+ ref: s,
2384
3393
  children: e
2385
3394
  }
2386
- ) : /* @__PURE__ */ i(
2387
- ne,
3395
+ ) : /* @__PURE__ */ n(
3396
+ xe,
2388
3397
  {
2389
- PaperComponent: dt,
3398
+ PaperComponent: wt,
2390
3399
  PaperProps: {
2391
- ...o,
2392
- size: n,
2393
- fullScreen: r,
2394
- height: a,
2395
- width: l,
3400
+ ...r,
3401
+ size: o,
3402
+ fullScreen: i,
3403
+ height: l,
3404
+ width: a,
2396
3405
  hasForm: c
2397
3406
  },
2398
- fullScreen: r,
3407
+ fullScreen: i,
2399
3408
  role: "section",
2400
- "aria-label": s,
2401
- "data-testid": d,
2402
- "data-size": n,
2403
- "data-width": l,
2404
- "data-height": a,
2405
- ...h,
3409
+ "aria-label": d,
3410
+ "data-testid": u,
3411
+ "data-size": o,
3412
+ "data-width": a,
3413
+ "data-height": l,
3414
+ "data-name": "dialog",
3415
+ ...p,
3416
+ ref: s,
2406
3417
  children: e
2407
3418
  }
2408
3419
  );
2409
3420
  }
2410
- const Rn = p(oe)(() => ({
3421
+ const vr = O(kr), wr = m(ye)(() => ({
2411
3422
  padding: 0,
2412
3423
  zIndex: 10
2413
- })), Fn = p(v)(({ theme: t }) => ({
3424
+ })), Dr = m(D)(({ theme: t }) => ({
2414
3425
  display: "flex",
2415
3426
  alignItems: "center",
2416
3427
  justifyContent: "space-between",
2417
3428
  padding: t.spacing(2),
2418
3429
  minHeight: t.spacing(8)
2419
- })), ut = p(v)(({ theme: t }) => ({
3430
+ })), Dt = m(D)(({ theme: t }) => ({
2420
3431
  display: "flex",
2421
3432
  alignItems: "center",
2422
3433
  gap: t.spacing(1),
2423
3434
  overflow: "hidden"
2424
- })), On = p(Mt)(({ theme: t }) => ({
3435
+ })), Ar = m(Wt)(({ theme: t }) => ({
2425
3436
  color: t.palette.text.secondary
2426
- })), Ln = p(G)(() => ({
3437
+ })), Sr = m(_)(() => ({
2427
3438
  "+ .MuiDialogContent-root": {
2428
3439
  borderTop: "none !important"
2429
3440
  }
2430
3441
  }));
2431
- function Ro({
3442
+ function Ir({
2432
3443
  title: t,
2433
3444
  chipLabel: e,
2434
- chipProps: n,
2435
- children: o,
2436
- onClose: r,
2437
- secondaryActions: a,
2438
- "aria-label": l,
3445
+ chipProps: o,
3446
+ children: r,
3447
+ onClose: i,
3448
+ secondaryActions: l,
3449
+ "aria-label": a,
2439
3450
  closeIcon: c,
2440
- ...s
3451
+ ...d
2441
3452
  }) {
2442
- const d = R(), h = $(d);
2443
- return /* @__PURE__ */ x(j, { children: [
2444
- /* @__PURE__ */ x(Rn, { component: "div", ...s, children: [
2445
- /* @__PURE__ */ x(Fn, { children: [
2446
- /* @__PURE__ */ x(ut, { flex: 1, maxWidth: 0.8, children: [
2447
- /* @__PURE__ */ i(
2448
- B,
3453
+ const u = R(), p = T(u);
3454
+ return /* @__PURE__ */ x(H, { children: [
3455
+ /* @__PURE__ */ x(wr, { component: "div", "data-name": "dialog-header", ...d, children: [
3456
+ /* @__PURE__ */ x(Dr, { children: [
3457
+ /* @__PURE__ */ x(Dt, { flex: 1, maxWidth: 0.8, children: [
3458
+ /* @__PURE__ */ n(
3459
+ F,
2449
3460
  {
2450
3461
  component: "h2",
2451
3462
  variant: "inherit",
2452
3463
  noWrap: !0,
2453
- "aria-label": l,
3464
+ "aria-label": a,
3465
+ role: "heading",
2454
3466
  children: t
2455
3467
  }
2456
3468
  ),
2457
- e && /* @__PURE__ */ i(ie, { color: "default", label: e, ...n })
3469
+ e && /* @__PURE__ */ n(Ce, { color: "default", label: e, ...o })
2458
3470
  ] }),
2459
- /* @__PURE__ */ x(ut, { children: [
2460
- a,
2461
- r && /* @__PURE__ */ i(
2462
- W,
3471
+ /* @__PURE__ */ x(Dt, { children: [
3472
+ l,
3473
+ i && /* @__PURE__ */ n(
3474
+ P,
2463
3475
  {
2464
- title: h.formatMessage({ id: "c4r.button.close" }),
3476
+ title: p.formatMessage({ id: "c4r.button.close" }),
2465
3477
  placement: "left",
2466
- children: /* @__PURE__ */ i(O, { onClick: r, children: c || /* @__PURE__ */ i(On, { "data-testid": "CloseIcon" }) })
3478
+ children: /* @__PURE__ */ n(W, { onClick: i, children: c || /* @__PURE__ */ n(Ar, { "data-testid": "CloseIcon" }) })
2467
3479
  }
2468
3480
  )
2469
3481
  ] })
2470
3482
  ] }),
2471
- o
3483
+ r
2472
3484
  ] }),
2473
- o && /* @__PURE__ */ i(Ln, {})
3485
+ r && /* @__PURE__ */ n(Sr, {})
2474
3486
  ] });
2475
3487
  }
2476
- const Wn = p(re, {
3488
+ const $r = m(Me, {
2477
3489
  shouldForwardProp: (t) => !["scrollableContent", "withGutter", "withBottomGutter"].includes(t)
2478
- })(({ theme: t, scrollableContent: e, withGutter: n, withBottomGutter: o }) => ({
3490
+ })(({ theme: t, scrollableContent: e, withGutter: o, withBottomGutter: r }) => ({
2479
3491
  display: "flex",
2480
3492
  flexDirection: "column",
2481
3493
  gap: t.spacing(3),
@@ -2491,75 +3503,76 @@ const Wn = p(re, {
2491
3503
  display: "none"
2492
3504
  }
2493
3505
  },
2494
- ...n && {
3506
+ ...o && {
2495
3507
  padding: ` ${t.spacing(1, 2, 0)} !important`,
2496
3508
  ".MuiDialog-paperFullScreen &": {
2497
3509
  padding: `${t.spacing(2, 2, 0)} !important`
2498
3510
  }
2499
3511
  },
2500
- ...o && {
3512
+ ...r && {
2501
3513
  paddingBottom: `${t.spacing(3)} !important`,
2502
3514
  ".MuiDialog-paperFullScreen &": {
2503
3515
  paddingBottom: `${t.spacing(3)} !important`
2504
3516
  }
2505
3517
  }
2506
3518
  }));
2507
- function En({
3519
+ function Br({
2508
3520
  children: t,
2509
3521
  scrollableContent: e,
2510
- hasFooterAlert: n,
2511
- withGutter: o = !0,
2512
- withBottomGutter: r = !0,
2513
- onScroll: a,
2514
- ...l
3522
+ hasFooterAlert: o,
3523
+ withGutter: r = !0,
3524
+ withBottomGutter: i = !0,
3525
+ onScroll: l,
3526
+ ...a
2515
3527
  }, c) {
2516
- const s = V(), [d, h] = T(null);
2517
- Lt(
3528
+ const d = j(), [u, p] = B(null);
3529
+ ee(
2518
3530
  c,
2519
- () => d,
2520
- [d]
3531
+ () => u,
3532
+ [u]
2521
3533
  );
2522
- const u = nt(
2523
- (f) => {
2524
- const m = Math.abs(f.scrollHeight - f.clientHeight - f.scrollTop) < 1, y = f.scrollTop === 0, b = `1px solid ${s.palette.divider}`;
2525
- f.style.borderTop = y ? "none" : b, f.style.borderBottom = m && !n ? "none" : b;
3534
+ const s = ot(
3535
+ (g) => {
3536
+ const f = Math.abs(g.scrollHeight - g.clientHeight - g.scrollTop) < 1, y = g.scrollTop === 0, h = `1px solid ${d.palette.divider}`;
3537
+ g.style.borderTop = y ? "none" : h, g.style.borderBottom = f && !o ? "none" : h;
2526
3538
  },
2527
- [s.palette.divider, n]
2528
- ), g = nt(
2529
- (f) => {
2530
- u(f.target), a == null || a(f);
3539
+ [d.palette.divider, o]
3540
+ ), b = ot(
3541
+ (g) => {
3542
+ s(g.target), l == null || l(g);
2531
3543
  },
2532
- [u, a]
3544
+ [s, l]
2533
3545
  );
2534
- return H(() => {
2535
- d && u(d);
2536
- }, [d, u]), H(() => {
2537
- if (!d || typeof ResizeObserver > "u") return;
2538
- const f = new ResizeObserver(() => {
2539
- u(d);
3546
+ return z(() => {
3547
+ u && s(u);
3548
+ }, [u, s]), z(() => {
3549
+ if (!u || typeof ResizeObserver > "u") return;
3550
+ const g = new ResizeObserver(() => {
3551
+ s(u);
2540
3552
  });
2541
- return f.observe(d), () => f.disconnect();
2542
- }, [d, u]), /* @__PURE__ */ i(
2543
- Wn,
3553
+ return g.observe(u), () => g.disconnect();
3554
+ }, [u, s]), /* @__PURE__ */ n(
3555
+ $r,
2544
3556
  {
2545
- ref: h,
2546
- onScroll: g,
3557
+ ref: p,
3558
+ onScroll: b,
2547
3559
  scrollableContent: e,
2548
- withGutter: o,
2549
- withBottomGutter: r && o,
2550
- ...l,
3560
+ withGutter: r,
3561
+ withBottomGutter: i && r,
3562
+ "data-name": "dialog-content",
3563
+ ...a,
2551
3564
  children: t
2552
3565
  }
2553
3566
  );
2554
3567
  }
2555
- const Hn = L(En), Fo = p(Hn, {
3568
+ const Zt = O(Br), Jn = m(Zt, {
2556
3569
  shouldForwardProp: (t) => t !== "withAlert"
2557
3570
  })(({ withAlert: t, theme: e }) => ({
2558
3571
  padding: `${e.spacing(0, 2)} !important`,
2559
3572
  ...t && {
2560
3573
  paddingBottom: `${e.spacing(3)} !important`
2561
3574
  }
2562
- })), _n = p(Ct)(({ theme: t }) => ({
3575
+ })), Tr = m(Et)(({ theme: t }) => ({
2563
3576
  minHeight: "auto",
2564
3577
  padding: 0,
2565
3578
  backgroundColor: "transparent",
@@ -2573,43 +3586,43 @@ const Hn = L(En), Fo = p(Hn, {
2573
3586
  color: t.palette.text.primary
2574
3587
  }
2575
3588
  }));
2576
- function Rt({
3589
+ function Jt({
2577
3590
  children: t,
2578
3591
  severity: e = "neutral",
2579
- ...n
3592
+ ...o
2580
3593
  }) {
2581
- return /* @__PURE__ */ i(_n, { severity: e, ...n, children: t });
3594
+ return /* @__PURE__ */ n(Tr, { severity: e, ...o, "data-name": "dialog-alert", children: t });
2582
3595
  }
2583
- const Pn = p(v, {
3596
+ const Rr = m(D, {
2584
3597
  shouldForwardProp: (t) => !["dark", "hasChildren"].includes(t)
2585
- })(({ dark: t, hasChildren: e, theme: n }) => ({
3598
+ })(({ dark: t, hasChildren: e, theme: o }) => ({
2586
3599
  flex: "0 0 auto",
2587
3600
  display: "block",
2588
- minHeight: e ? n.spacing(8) : "auto",
3601
+ minHeight: e ? o.spacing(8) : "auto",
2589
3602
  zIndex: 10,
2590
3603
  ...t && {
2591
- backgroundColor: n.palette.common.black,
2592
- color: n.palette.white[60],
3604
+ backgroundColor: o.palette.common.black,
3605
+ color: o.palette.white[60],
2593
3606
  ".MuiAlert-root": {
2594
3607
  ".MuiTypography-root, .MuiAlert-message :not(.MuiAlertTitle-root)": {
2595
- color: n.palette.white[60],
3608
+ color: o.palette.white[60],
2596
3609
  a: {
2597
- color: `${n.palette.secondary.main} !important`
3610
+ color: `${o.palette.secondary.main} !important`
2598
3611
  }
2599
3612
  },
2600
3613
  ".MuiAlert-icon": {
2601
- color: n.palette.white[60]
3614
+ color: o.palette.white[60]
2602
3615
  }
2603
3616
  }
2604
3617
  }
2605
- })), Gn = p(v)(() => ({
3618
+ })), Or = m(D)(() => ({
2606
3619
  display: "flex",
2607
3620
  alignItems: "center",
2608
3621
  justifyContent: "space-between",
2609
3622
  "& > div:empty": {
2610
3623
  padding: 0
2611
3624
  }
2612
- })), jn = p(v, {
3625
+ })), Fr = m(D, {
2613
3626
  shouldForwardProp: (t) => t !== "hasAlert"
2614
3627
  })(({ hasAlert: t, theme: e }) => ({
2615
3628
  display: "flex",
@@ -2617,7 +3630,7 @@ const Pn = p(v, {
2617
3630
  gap: e.spacing(1),
2618
3631
  padding: e.spacing(2),
2619
3632
  paddingTop: t ? 0 : e.spacing(2)
2620
- })), Ft = p(ae, {
3633
+ })), Kt = m(ke, {
2621
3634
  shouldForwardProp: (t) => t !== "hasAlert"
2622
3635
  })(({ hasAlert: t, theme: e }) => ({
2623
3636
  gap: e.spacing(1),
@@ -2627,41 +3640,42 @@ const Pn = p(v, {
2627
3640
  ".MuiButton-root + .MuiButton-root": {
2628
3641
  marginLeft: 0
2629
3642
  }
2630
- })), Vn = p(G)(() => ({
3643
+ })), Lr = m(_)(() => ({
2631
3644
  // To prevent double border in the top when content is scrollable
2632
3645
  marginTop: "-1px"
2633
3646
  }));
2634
- function Oo({
3647
+ function Wr({
2635
3648
  children: t,
2636
3649
  secondaryActions: e,
2637
- alertContent: n,
2638
- alertProps: o,
2639
- dark: r,
2640
- topContent: a,
2641
- ...l
3650
+ alertContent: o,
3651
+ alertProps: r,
3652
+ dark: i,
3653
+ topContent: l,
3654
+ ...a
2642
3655
  }) {
2643
- return /* @__PURE__ */ x(j, { children: [
2644
- a,
2645
- !!n && /* @__PURE__ */ i(Vn, {}),
3656
+ return /* @__PURE__ */ x(H, { children: [
3657
+ l,
3658
+ !!o && /* @__PURE__ */ n(Lr, {}),
2646
3659
  /* @__PURE__ */ x(
2647
- Pn,
3660
+ Rr,
2648
3661
  {
2649
- ...l,
2650
- dark: r,
2651
- "data-theme": r ? "dark" : "light",
3662
+ ...a,
3663
+ dark: i,
3664
+ "data-theme": i ? "dark" : "light",
3665
+ "data-name": "dialog-footer",
2652
3666
  hasChildren: !!t,
2653
3667
  children: [
2654
- !!n && /* @__PURE__ */ i(v, { sx: { p: 2, pt: 1.5, pb: 1 }, children: /* @__PURE__ */ i(Rt, { ...o, children: n }) }),
2655
- /* @__PURE__ */ x(Gn, { children: [
2656
- /* @__PURE__ */ i(jn, { hasAlert: !!n, children: e }),
2657
- /* @__PURE__ */ i(Ft, { hasAlert: !!n, children: t })
3668
+ !!o && /* @__PURE__ */ n(D, { sx: { p: 2, pt: 1.5, pb: 1 }, children: /* @__PURE__ */ n(Jt, { ...r, children: o }) }),
3669
+ /* @__PURE__ */ x(Or, { children: [
3670
+ /* @__PURE__ */ n(Fr, { hasAlert: !!o, children: e }),
3671
+ /* @__PURE__ */ n(Kt, { hasAlert: !!o, children: t })
2658
3672
  ] })
2659
3673
  ]
2660
3674
  }
2661
3675
  )
2662
3676
  ] });
2663
3677
  }
2664
- const Nn = p(v)(({ theme: t }) => ({
3678
+ const Er = m(D)(({ theme: t }) => ({
2665
3679
  position: "absolute",
2666
3680
  width: "100%",
2667
3681
  zIndex: 100,
@@ -2674,9 +3688,9 @@ const Nn = p(v)(({ theme: t }) => ({
2674
3688
  boxSizing: "border-box",
2675
3689
  alignItems: "flex-end",
2676
3690
  background: t.palette.white[60]
2677
- })), Un = p("div")(() => ({
3691
+ })), Hr = m("div")(() => ({
2678
3692
  width: "100%"
2679
- })), Yn = p(v)(({ theme: t }) => ({
3693
+ })), Pr = m(D)(({ theme: t }) => ({
2680
3694
  width: "100%",
2681
3695
  padding: t.spacing(1.5, 2, 2),
2682
3696
  backgroundColor: t.palette.background.paper,
@@ -2686,46 +3700,47 @@ const Nn = p(v)(({ theme: t }) => ({
2686
3700
  marginTop: t.spacing(1)
2687
3701
  }
2688
3702
  }));
2689
- function Lo({
3703
+ function zr({
2690
3704
  children: t,
2691
3705
  onClickAway: e,
2692
- actions: n,
2693
- severity: o = "warning",
2694
- opened: r,
2695
- "data-testid": a,
2696
- "aria-label": l,
3706
+ actions: o,
3707
+ severity: r = "warning",
3708
+ opened: i,
3709
+ "data-testid": l,
3710
+ "aria-label": a,
2697
3711
  ...c
2698
3712
  }) {
2699
- const s = U(null), d = V();
2700
- return /* @__PURE__ */ i(
2701
- Nn,
3713
+ const d = Z(null), u = j();
3714
+ return /* @__PURE__ */ n(
3715
+ Er,
2702
3716
  {
2703
- ref: s,
2704
- "data-testid": a,
2705
- "aria-label": l,
3717
+ ref: d,
3718
+ "data-testid": l,
3719
+ "aria-label": a,
2706
3720
  role: "presentation",
2707
- children: /* @__PURE__ */ i(xe, { onClickAway: () => {
3721
+ "data-name": "dialog-confirmation",
3722
+ children: /* @__PURE__ */ n(Ge, { onClickAway: () => {
2708
3723
  e && e();
2709
- }, children: /* @__PURE__ */ i(
2710
- xt,
3724
+ }, children: /* @__PURE__ */ n(
3725
+ Rt,
2711
3726
  {
2712
3727
  direction: "up",
2713
- in: r,
2714
- container: s.current,
3728
+ in: i,
3729
+ container: d.current,
2715
3730
  mountOnEnter: !0,
2716
3731
  unmountOnExit: !0,
2717
- easing: d.transitions.easing.easeOut,
3732
+ easing: u.transitions.easing.easeOut,
2718
3733
  timeout: 350,
2719
- children: /* @__PURE__ */ i(Un, { children: /* @__PURE__ */ x(Yn, { children: [
2720
- /* @__PURE__ */ i(Rt, { severity: o, ...c, children: t }),
2721
- /* @__PURE__ */ i(Ft, { children: n })
3734
+ children: /* @__PURE__ */ n(Hr, { children: /* @__PURE__ */ x(Pr, { children: [
3735
+ /* @__PURE__ */ n(Jt, { severity: r, ...c, children: t }),
3736
+ /* @__PURE__ */ n(Kt, { children: o })
2722
3737
  ] }) })
2723
3738
  }
2724
3739
  ) })
2725
3740
  }
2726
3741
  );
2727
3742
  }
2728
- const qn = p(v)(({ theme: t }) => ({
3743
+ const Nr = m(D)(({ theme: t }) => ({
2729
3744
  display: "flex",
2730
3745
  alignItems: "center",
2731
3746
  justifyContent: "center",
@@ -2734,7 +3749,7 @@ const qn = p(v)(({ theme: t }) => ({
2734
3749
  "& > div": {
2735
3750
  flex: 1
2736
3751
  }
2737
- })), zn = p(v)(({ theme: t }) => ({
3752
+ })), _r = m(D)(({ theme: t }) => ({
2738
3753
  display: "flex",
2739
3754
  flex: 1,
2740
3755
  flexDirection: "column",
@@ -2762,16 +3777,16 @@ const qn = p(v)(({ theme: t }) => ({
2762
3777
  content: "none"
2763
3778
  }
2764
3779
  }));
2765
- function Zn({
3780
+ function Gr({
2766
3781
  theme: t,
2767
3782
  completed: e,
2768
- current: n
3783
+ current: o
2769
3784
  }) {
2770
3785
  return e ? {
2771
3786
  background: t.palette.success.main,
2772
3787
  borderColor: t.palette.success.main,
2773
3788
  color: t.palette.common.white
2774
- } : n ? {
3789
+ } : o ? {
2775
3790
  background: t.palette.text.primary,
2776
3791
  borderColor: t.palette.text.primary,
2777
3792
  color: t.palette.common.white
@@ -2780,9 +3795,9 @@ function Zn({
2780
3795
  color: t.palette.text.secondary
2781
3796
  };
2782
3797
  }
2783
- const Jn = p("span", {
3798
+ const jr = m("span", {
2784
3799
  shouldForwardProp: (t) => t !== "completed" && t !== "current"
2785
- })(({ theme: t, completed: e, current: n }) => ({
3800
+ })(({ theme: t, completed: e, current: o }) => ({
2786
3801
  display: "flex",
2787
3802
  justifyContent: "center",
2788
3803
  alignItems: "center",
@@ -2792,66 +3807,221 @@ const Jn = p("span", {
2792
3807
  borderRadius: "50%",
2793
3808
  border: `${t.spacing(0.25)} solid currentColor`,
2794
3809
  ...t.typography.caption,
2795
- ...Zn({ theme: t, completed: e, current: n })
3810
+ ...Gr({ theme: t, completed: e, current: o })
2796
3811
  }));
2797
- function Wo({
3812
+ function Kn({
2798
3813
  currentStep: t,
2799
3814
  stepsLabels: e,
2800
- ...n
3815
+ ...o
2801
3816
  }) {
2802
- return /* @__PURE__ */ i(qn, { ...n, children: /* @__PURE__ */ i(v, { sx: { display: "flex" }, children: e.map((o, r) => {
2803
- const a = r + 1, l = a === t, c = a < t;
3817
+ return /* @__PURE__ */ n(Nr, { ...o, "data-name": "dialog-stepper", children: /* @__PURE__ */ n(D, { sx: { display: "flex" }, children: e.map((r, i) => {
3818
+ const l = i + 1, a = l === t, c = l < t;
2804
3819
  return /* @__PURE__ */ x(
2805
- zn,
3820
+ _r,
2806
3821
  {
2807
- "data-state": c ? "completed" : l ? "current" : "uncompleted",
3822
+ "data-state": c ? "completed" : a ? "current" : "uncompleted",
2808
3823
  children: [
2809
- /* @__PURE__ */ i(Jn, { completed: c, current: l, children: c ? /* @__PURE__ */ i(ge, { fontSize: "small", "aria-label": "Completed step" }) : a }),
2810
- /* @__PURE__ */ i(B, { variant: "caption", component: "div", color: c ? "success.main" : l ? "textPrimary" : "textSecondary", children: o })
3824
+ /* @__PURE__ */ n(jr, { completed: c, current: a, children: c ? /* @__PURE__ */ n(Te, { fontSize: "small", "aria-label": "Completed step" }) : l }),
3825
+ /* @__PURE__ */ n(F, { variant: "caption", component: "div", color: c ? "success.main" : a ? "textPrimary" : "textSecondary", children: r })
2811
3826
  ]
2812
3827
  },
2813
- r
3828
+ i
2814
3829
  );
2815
3830
  }) }) });
2816
3831
  }
3832
+ const Vr = m(Zt, {
3833
+ shouldForwardProp: (t) => !["error", "withBorder"].includes(t)
3834
+ })(
3835
+ ({ error: t, withBorder: e, theme: o }) => ({
3836
+ gap: 0,
3837
+ border: e ? `1px solid ${o.palette.divider} !important` : void 0,
3838
+ borderBottom: t ? "none !important" : void 0,
3839
+ ".react-codemirror2": {
3840
+ display: "flex",
3841
+ flexDirection: "column",
3842
+ minHeight: "100%"
3843
+ },
3844
+ ".CodeMirror-wrap": {
3845
+ display: "flex",
3846
+ flexDirection: "column",
3847
+ flex: 1
3848
+ },
3849
+ "& + .MuiDivider-root": {
3850
+ display: "none"
3851
+ }
3852
+ })
3853
+ );
3854
+ function Ur({
3855
+ children: t,
3856
+ error: e,
3857
+ withBorder: o = !0,
3858
+ withGutter: r = !1
3859
+ }) {
3860
+ return t ? /* @__PURE__ */ n(Vr, { withGutter: r, error: e, withBorder: o, children: t }) : null;
3861
+ }
3862
+ function Yr({
3863
+ onClose: t,
3864
+ onCancel: e,
3865
+ cancelLabel: o,
3866
+ cancelButton: r,
3867
+ closeButton: i,
3868
+ contentLabel: l,
3869
+ titleLabel: a,
3870
+ severity: c = "warning",
3871
+ content: d
3872
+ }) {
3873
+ const u = R(), p = T(u);
3874
+ return !t || !e ? null : /* @__PURE__ */ n(
3875
+ zr,
3876
+ {
3877
+ opened: !0,
3878
+ severity: c,
3879
+ title: p.formatMessage({
3880
+ id: a || "c4r.dialog.confirmation.title"
3881
+ }),
3882
+ actions: /* @__PURE__ */ x(H, { children: [
3883
+ e && (r || /* @__PURE__ */ n(nt, { onClick: e, children: p.formatMessage({
3884
+ id: o || "c4r.button.cancel"
3885
+ }) })),
3886
+ t && (i || /* @__PURE__ */ n(nt, { variant: "contained", onClick: t, children: p.formatMessage({
3887
+ id: "c4r.button.leave"
3888
+ }) }))
3889
+ ] }),
3890
+ children: d || p.formatMessage({
3891
+ id: l || "c4r.dialog.confirmation.content"
3892
+ })
3893
+ }
3894
+ );
3895
+ }
3896
+ function Xn({
3897
+ open: t,
3898
+ onClose: e,
3899
+ title: o,
3900
+ error: r,
3901
+ helperText: i,
3902
+ onClickFooter: l,
3903
+ disabledButtonFooter: a,
3904
+ labelIdButtonFooter: c,
3905
+ ariaLabelButtonFooter: d,
3906
+ disabled: u,
3907
+ showConfirmation: p,
3908
+ onCancelConfirm: s,
3909
+ onCloseConfirm: b,
3910
+ footerProps: g,
3911
+ saveLoading: f,
3912
+ showSaveSnackbar: y,
3913
+ onCloseSaveSnackbar: h,
3914
+ "data-testid": w,
3915
+ "aria-label": M,
3916
+ ...A
3917
+ }) {
3918
+ const C = r || !!l || !!g;
3919
+ return t ? /* @__PURE__ */ x(
3920
+ vr,
3921
+ {
3922
+ open: t,
3923
+ fullScreen: !0,
3924
+ onClose: e,
3925
+ "data-testid": w,
3926
+ "aria-label": M,
3927
+ "data-name": "code-area-dialog",
3928
+ children: [
3929
+ /* @__PURE__ */ n(
3930
+ Ir,
3931
+ {
3932
+ title: o,
3933
+ onClose: e,
3934
+ closeIcon: !l && /* @__PURE__ */ n(We, {})
3935
+ }
3936
+ ),
3937
+ /* @__PURE__ */ n(Ur, { error: r, children: /* @__PURE__ */ n(
3938
+ xr,
3939
+ {
3940
+ ...A,
3941
+ disabled: u,
3942
+ variant: null,
3943
+ isExpanded: !0
3944
+ }
3945
+ ) }),
3946
+ C && /* @__PURE__ */ n(
3947
+ Wr,
3948
+ {
3949
+ ...g,
3950
+ topContent: r && /* @__PURE__ */ n(Mr, { hasDivider: !!l, children: i }),
3951
+ children: !!l && /* @__PURE__ */ n(
3952
+ qt,
3953
+ {
3954
+ onClickFooter: l,
3955
+ labelIdButtonFooter: c,
3956
+ ariaLabelButtonFooter: d,
3957
+ disabled: u,
3958
+ disabledButtonFooter: a,
3959
+ withGutter: !1,
3960
+ variant: "contained",
3961
+ size: "medium",
3962
+ loading: !!f,
3963
+ showSnackbar: y,
3964
+ onCloseSnackbar: h
3965
+ }
3966
+ )
3967
+ }
3968
+ ),
3969
+ p && /* @__PURE__ */ n(
3970
+ Yr,
3971
+ {
3972
+ onClose: b ?? e,
3973
+ onCancel: s,
3974
+ cancelLabel: "c4r.button.keepEditing"
3975
+ }
3976
+ )
3977
+ ]
3978
+ }
3979
+ ) : null;
3980
+ }
2817
3981
  export {
2818
- Do as AccordionGroup,
2819
- Ct as Alert,
2820
- Io as AppBar,
2821
- Mo as Autocomplete,
2822
- Ao as Avatar,
2823
- go as Button,
2824
- Co as CreatableAutocomplete,
2825
- rt as DatePicker,
2826
- wo as DateRangePicker,
2827
- So as DateTimePicker,
2828
- $o as Dialog,
2829
- Ft as DialogActions,
2830
- Rt as DialogAlert,
2831
- Lo as DialogConfirmation,
2832
- Hn as DialogContent,
2833
- Fo as DialogContentPadded,
2834
- Oo as DialogFooter,
2835
- Ro as DialogHeader,
2836
- dt as DialogPaper,
2837
- Wo as DialogStepper,
2838
- Le as IconButton,
3982
+ Gn as AccordionGroup,
3983
+ Et as Alert,
3984
+ Vn as AppBar,
3985
+ zn as Autocomplete,
3986
+ jn as Avatar,
3987
+ nt as Button,
3988
+ Xn as CodeAreaDialog,
3989
+ xr as CodeAreaField,
3990
+ gr as CodeAreaInput,
3991
+ Ro as CopiableComponent,
3992
+ Nn as CreatableAutocomplete,
3993
+ xt as DatePicker,
3994
+ Un as DateRangePicker,
3995
+ qn as DateTimePicker,
3996
+ vr as Dialog,
3997
+ Kt as DialogActions,
3998
+ Jt as DialogAlert,
3999
+ zr as DialogConfirmation,
4000
+ Zt as DialogContent,
4001
+ Jn as DialogContentPadded,
4002
+ Wr as DialogFooter,
4003
+ Ir as DialogHeader,
4004
+ wt as DialogPaper,
4005
+ Kn as DialogStepper,
4006
+ q as IconButton,
2839
4007
  X as LabelWithIndicator,
2840
- ho as Menu,
2841
- Dt as MenuFilter,
2842
- vt as MenuItem,
2843
- bo as MenuList,
2844
- vo as MultipleAutocomplete,
2845
- xo as MultipleSelectField,
2846
- fo as PasswordField,
2847
- Te as SelectField,
2848
- ko as Snackbar,
2849
- _o as TablePaginationActions,
2850
- Bo as TimePicker,
2851
- mo as ToggleButtonGroup,
2852
- To as TooltipData,
2853
- B as Typography,
2854
- yo as UploadField,
2855
- ze as UploadFieldBase,
2856
- st as dialogDimensionsBySize
4008
+ co as Menu,
4009
+ Y as MenuItem,
4010
+ Ht as MenuItemFilter,
4011
+ En as MenuList,
4012
+ _n as MultipleAutocomplete,
4013
+ Hn as MultipleSelectField,
4014
+ Ln as PasswordField,
4015
+ eo as SelectField,
4016
+ dt as Snackbar,
4017
+ ei as TablePaginationActions,
4018
+ Yn as TimePicker,
4019
+ Wn as ToggleButtonGroup,
4020
+ Zn as TooltipData,
4021
+ F as Typography,
4022
+ Pn as UploadField,
4023
+ vo as UploadFieldBase,
4024
+ Oo as copyString,
4025
+ vt as dialogDimensionsBySize,
4026
+ Vt as useCopyValue
2857
4027
  };