@kvaser/canking-api 7.1.0-beta.241 → 7.2.0

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 (565) hide show
  1. package/README.md +98 -64
  2. package/REDISTRIBUTABLES.txt +88 -2
  3. package/dist/ElectronAPIFake.js +1 -1
  4. package/dist/ElectronAPIFake.mjs +20 -14
  5. package/dist/controls/CanIdentifierControl.d.ts +45 -8
  6. package/dist/controls/ColumnItemControl.d.ts +1 -1
  7. package/dist/controls/DropdownButton.d.ts +1 -1
  8. package/dist/controls/LinChannelSelectControl.d.ts +34 -0
  9. package/dist/controls/LinIdentifierControl.d.ts +224 -0
  10. package/dist/controls/SelectMessageDialog.d.ts +28 -0
  11. package/dist/controls/SelectSignalControl.d.ts +11 -0
  12. package/dist/controls/SelectSignalDialog.d.ts +21 -0
  13. package/dist/controls/TableControl.d.ts +7 -1
  14. package/dist/controls/index.d.ts +10 -0
  15. package/dist/controls.js +1 -1
  16. package/dist/controls.mjs +1862 -1054
  17. package/dist/grpc.js +1 -1
  18. package/dist/grpc.mjs +123 -95
  19. package/dist/hooks/index.d.ts +6 -1
  20. package/dist/hooks.js +1 -1
  21. package/dist/hooks.mjs +17 -16
  22. package/dist/icons/index.d.ts +6 -0
  23. package/dist/icons.js +1 -1
  24. package/dist/icons.mjs +87 -75
  25. package/dist/index.js +1 -1
  26. package/dist/index.mjs +48 -42
  27. package/dist/ipc/index.d.ts +30 -0
  28. package/dist/ipc.js +1 -1
  29. package/dist/ipc.mjs +64 -51
  30. package/dist/measurement_settings.js +1 -1
  31. package/dist/measurement_settings.mjs +3196 -1353
  32. package/dist/models/index.d.ts +4 -1
  33. package/dist/models.js +1 -1
  34. package/dist/models.mjs +235 -223
  35. package/dist/protos/app_params.d.ts +10 -0
  36. package/dist/protos/device_params.d.ts +14 -25
  37. package/dist/protos/frame_params.d.ts +10 -6
  38. package/dist/protos/measurement_params.d.ts +11 -0
  39. package/dist/protos/measurement_service.d.ts +58 -2
  40. package/dist/protos/measurement_settings.d.ts +106 -35
  41. package/dist/protos/signal_params.d.ts +3 -0
  42. package/dist/protos/status_params.d.ts +9 -9
  43. package/dist/status_params.js +1 -1
  44. package/dist/status_params.mjs +699 -2115
  45. package/doc/assets/favicon.png +0 -0
  46. package/doc/assets/hierarchy.js +1 -0
  47. package/doc/assets/highlight.css +16 -16
  48. package/doc/assets/icons.js +1 -1
  49. package/doc/assets/icons.svg +1 -1
  50. package/doc/assets/main.js +5 -5
  51. package/doc/assets/navigation.js +1 -1
  52. package/doc/assets/search.js +1 -1
  53. package/doc/assets/style.css +1405 -1288
  54. package/doc/classes/controls.LocalizedStrings.html +3 -176
  55. package/doc/classes/models.DataBuffer.html +16 -189
  56. package/doc/classes/models.DataBufferView.html +11 -184
  57. package/doc/classes/models.Point.html +7 -180
  58. package/doc/enums/models.AccessMode.html +9 -182
  59. package/doc/enums/models.AppEvent.html +6 -179
  60. package/doc/enums/models.CanChannelCap.html +44 -217
  61. package/doc/enums/models.CanFrameFlag.html +27 -200
  62. package/doc/enums/models.CanMessageFilterType.html +6 -0
  63. package/doc/enums/models.CanMode.html +7 -180
  64. package/doc/enums/models.DecimalChar.html +5 -178
  65. package/doc/enums/models.DeviceEvent.html +6 -179
  66. package/doc/enums/models.FileConflictAction.html +7 -180
  67. package/doc/enums/models.FileType.html +7 -0
  68. package/doc/enums/models.LinFrameFlag.html +12 -185
  69. package/doc/enums/models.LogFileFormat.html +48 -221
  70. package/doc/enums/models.LogLevel.html +17 -190
  71. package/doc/enums/models.LogReplayState.html +6 -179
  72. package/doc/enums/models.LoggerState.html +7 -0
  73. package/doc/enums/models.MeasurementEvent.html +12 -185
  74. package/doc/enums/models.Protocols.html +9 -182
  75. package/doc/enums/models.Separator.html +5 -178
  76. package/doc/enums/models.SignalEncoding.html +5 -178
  77. package/doc/enums/models.SignalType.html +12 -185
  78. package/doc/enums/models.SignalValueTriggerOperator.html +13 -186
  79. package/doc/enums/models.StatusLevel.html +7 -180
  80. package/doc/enums/models.TimeReference.html +5 -178
  81. package/doc/enums/models.TriggerOperator.html +6 -179
  82. package/doc/functions/controls.CanChannelSelectControl.html +2 -175
  83. package/doc/functions/controls.CanIdentifierControl.html +2 -175
  84. package/doc/functions/controls.CanIdentifierFrameControl.html +2 -175
  85. package/doc/functions/controls.CanIdentifierGeneratorControl.html +2 -175
  86. package/doc/functions/controls.CanIdentifierGeneratorSettingsControl.html +2 -175
  87. package/doc/functions/controls.CanKingDataProvider.html +5 -178
  88. package/doc/functions/controls.CheckboxControl.html +2 -175
  89. package/doc/functions/controls.ColumnItemControl.html +2 -175
  90. package/doc/functions/controls.ContextMenu.html +2 -175
  91. package/doc/functions/controls.DropdownButton.html +2 -175
  92. package/doc/functions/controls.DropdownButtonTextItems.html +2 -175
  93. package/doc/functions/controls.DropdownPanel.html +2 -175
  94. package/doc/functions/controls.FillBox.html +19 -192
  95. package/doc/functions/controls.FormControlRow.html +2 -175
  96. package/doc/functions/controls.InlineEditor.html +2 -175
  97. package/doc/functions/controls.LinChannelSelectControl.html +4 -0
  98. package/doc/functions/controls.LinIdentifierControl.html +4 -0
  99. package/doc/functions/controls.LinIdentifierFrameControl.html +4 -0
  100. package/doc/functions/controls.LinIdentifierGeneratorControl.html +4 -0
  101. package/doc/functions/controls.LinIdentifierGeneratorSettingsControl.html +5 -0
  102. package/doc/functions/controls.NumberRangeControl.html +2 -175
  103. package/doc/functions/controls.OneLineButton.html +19 -192
  104. package/doc/functions/controls.RadioControl.html +2 -175
  105. package/doc/functions/controls.RadioGroupControl.html +2 -175
  106. package/doc/functions/controls.SectionControl.html +2 -175
  107. package/doc/functions/controls.SelectControl.html +2 -175
  108. package/doc/functions/controls.SelectMessageDialog.html +2 -0
  109. package/doc/functions/controls.SelectSignalControl.html +1 -0
  110. package/doc/functions/controls.SelectSignalDialog.html +2 -0
  111. package/doc/functions/controls.SizedBox.html +19 -192
  112. package/doc/functions/controls.TableControl.html +3 -176
  113. package/doc/functions/controls.TabsPanel.html +19 -192
  114. package/doc/functions/controls.TextControl.html +2 -175
  115. package/doc/functions/controls.ToolbarControl.html +2 -175
  116. package/doc/functions/controls.ValidateableTextControl.html +2 -175
  117. package/doc/functions/controls.useColumnItem.html +3 -176
  118. package/doc/functions/controls.useColumnItems.html +3 -176
  119. package/doc/functions/controls.useMessageDatabases.html +2 -0
  120. package/doc/functions/hooks.useDevices.html +3 -176
  121. package/doc/functions/hooks.useIsOnline.html +3 -176
  122. package/doc/functions/hooks.useLanguage.html +3 -176
  123. package/doc/functions/hooks.useLocalizedStrings.html +3 -176
  124. package/doc/functions/hooks.useLogMessages.html +3 -176
  125. package/doc/functions/hooks.useMaxDataBytes.html +2 -175
  126. package/doc/functions/hooks.useMeasurementSetup.html +3 -176
  127. package/doc/functions/hooks.useMeasurementStatus.html +3 -176
  128. package/doc/functions/hooks.useMessageLogFileFormats.html +3 -175
  129. package/doc/functions/hooks.useNewMeasurementData.html +5 -178
  130. package/doc/functions/hooks.useNodeStatus.html +3 -176
  131. package/doc/functions/hooks.useNumericRadix.html +3 -176
  132. package/doc/functions/hooks.useOnlineStatus.html +3 -176
  133. package/doc/functions/hooks.useOverallStatusLevel.html +3 -176
  134. package/doc/functions/hooks.useProjectData.html +5 -178
  135. package/doc/functions/hooks.useRecentProjectFiles.html +2 -175
  136. package/doc/functions/hooks.useRunningPeriodicTransmissions.html +3 -176
  137. package/doc/functions/hooks.useSessionData.html +5 -178
  138. package/doc/functions/hooks.useSignalLogFileFormats.html +2 -0
  139. package/doc/functions/hooks.useUserSettings.html +3 -176
  140. package/doc/functions/hooks.useWorkspacePaneWithId.html +2 -175
  141. package/doc/functions/icons.AddIcon.html +4 -175
  142. package/doc/functions/icons.ArrowDownIcon.html +4 -175
  143. package/doc/functions/icons.ArrowLeftIcon.html +4 -175
  144. package/doc/functions/icons.ArrowRightIcon.html +4 -175
  145. package/doc/functions/icons.ArrowUpIcon.html +4 -175
  146. package/doc/functions/icons.BusIsOffIcon.html +4 -175
  147. package/doc/functions/icons.BusIsOnIcon.html +4 -175
  148. package/doc/functions/icons.CloseIcon.html +4 -175
  149. package/doc/functions/icons.ColumnSettingsIcon.html +4 -0
  150. package/doc/functions/icons.CopyIcon.html +4 -175
  151. package/doc/functions/icons.DarkModeIcon.html +4 -175
  152. package/doc/functions/icons.DeleteIcon.html +4 -175
  153. package/doc/functions/icons.DisableIcon.html +4 -175
  154. package/doc/functions/icons.EditIcon.html +4 -175
  155. package/doc/functions/icons.EnableIcon.html +4 -0
  156. package/doc/functions/icons.FilterIcon.html +4 -175
  157. package/doc/functions/icons.FixedPositionIcon.html +4 -175
  158. package/doc/functions/icons.LeaveFullScreenIcon.html +4 -175
  159. package/doc/functions/icons.LightModeIcon.html +4 -175
  160. package/doc/functions/icons.LineArrowDownIcon.html +4 -175
  161. package/doc/functions/icons.LineArrowUpIcon.html +4 -175
  162. package/doc/functions/icons.MaximizeWindowIcon.html +4 -175
  163. package/doc/functions/icons.MeasurementSetupIcon.html +4 -175
  164. package/doc/functions/icons.MoreHorizIcon.html +4 -175
  165. package/doc/functions/icons.MoreVertIcon.html +4 -175
  166. package/doc/functions/icons.NewIcon.html +4 -175
  167. package/doc/functions/icons.OpenExternallyIcon.html +4 -175
  168. package/doc/functions/icons.OpenIcon.html +4 -175
  169. package/doc/functions/icons.PauseIcon.html +4 -175
  170. package/doc/functions/icons.PlayIcon.html +4 -175
  171. package/doc/functions/icons.PlaySolidIcon.html +4 -175
  172. package/doc/functions/icons.SaveIcon.html +4 -175
  173. package/doc/functions/icons.SelectAllIcon.html +4 -175
  174. package/doc/functions/icons.ServiceIconActive.html +4 -175
  175. package/doc/functions/icons.ServiceIconInactive.html +4 -175
  176. package/doc/functions/icons.SettingsIcon.html +4 -175
  177. package/doc/functions/icons.StopIcon.html +4 -175
  178. package/doc/functions/icons.StopSolidIcon.html +4 -175
  179. package/doc/functions/icons.ToolsPanelHiddenIcon.html +4 -175
  180. package/doc/functions/icons.ToolsPanelVisibleIcon.html +4 -175
  181. package/doc/functions/icons.UnmaximizeWindowIcon.html +4 -175
  182. package/doc/functions/icons.WorkspacesIcon.html +4 -175
  183. package/doc/functions/ipc.addDataProcessor.html +3 -176
  184. package/doc/functions/ipc.addSource.html +3 -176
  185. package/doc/functions/ipc.addTarget.html +3 -176
  186. package/doc/functions/ipc.clearLinMessage.html +4 -0
  187. package/doc/functions/ipc.connectNodes.html +3 -176
  188. package/doc/functions/ipc.deleteDataProcessor.html +3 -176
  189. package/doc/functions/ipc.deleteSource.html +3 -176
  190. package/doc/functions/ipc.deleteTarget.html +3 -176
  191. package/doc/functions/ipc.disableNode.html +3 -176
  192. package/doc/functions/ipc.disconnectNodes.html +3 -176
  193. package/doc/functions/ipc.enableNode.html +3 -176
  194. package/doc/functions/ipc.getFrameDefinitions.html +3 -176
  195. package/doc/functions/ipc.getLogger.html +3 -176
  196. package/doc/functions/ipc.getMessageLogFileFormats.html +3 -176
  197. package/doc/functions/ipc.getSignalLogFileFormats.html +3 -0
  198. package/doc/functions/ipc.requestLinMessage.html +5 -0
  199. package/doc/functions/ipc.sendCanMessage.html +4 -177
  200. package/doc/functions/ipc.sendMessage.html +3 -176
  201. package/doc/functions/ipc.showMessageBox.html +3 -176
  202. package/doc/functions/ipc.showQuestionBox.html +3 -176
  203. package/doc/functions/ipc.startLogReplay.html +3 -176
  204. package/doc/functions/ipc.startMeasurement.html +2 -175
  205. package/doc/functions/ipc.startPeriodicTransmission.html +3 -176
  206. package/doc/functions/ipc.stopLogReplay.html +3 -176
  207. package/doc/functions/ipc.stopMeasurement.html +2 -175
  208. package/doc/functions/ipc.stopPeriodicTransmission.html +3 -176
  209. package/doc/functions/ipc.updateDataProcessor.html +3 -176
  210. package/doc/functions/ipc.updateLinMessage.html +4 -0
  211. package/doc/functions/ipc.updatePeriodicTransmission.html +4 -0
  212. package/doc/functions/ipc.updateSource.html +3 -176
  213. package/doc/functions/ipc.updateTarget.html +3 -176
  214. package/doc/functions/models.accessModeFromJSON.html +1 -174
  215. package/doc/functions/models.accessModeToJSON.html +1 -174
  216. package/doc/functions/models.appEventFromJSON.html +1 -174
  217. package/doc/functions/models.appEventToJSON.html +1 -174
  218. package/doc/functions/models.canChannelCapFromJSON.html +1 -174
  219. package/doc/functions/models.canChannelCapToJSON.html +1 -174
  220. package/doc/functions/models.canFrameFlagFromJSON.html +1 -174
  221. package/doc/functions/models.canFrameFlagToJSON.html +1 -174
  222. package/doc/functions/models.canMessageFilterTypeFromJSON.html +1 -0
  223. package/doc/functions/models.canMessageFilterTypeToJSON.html +1 -0
  224. package/doc/functions/models.canModeFromJSON.html +1 -174
  225. package/doc/functions/models.canModeToJSON.html +1 -174
  226. package/doc/functions/models.createElectronApiFake.html +3 -176
  227. package/doc/functions/models.decimalCharFromJSON.html +1 -174
  228. package/doc/functions/models.decimalCharToJSON.html +1 -174
  229. package/doc/functions/models.decimalToFixed.html +1 -174
  230. package/doc/functions/models.decimalToHex.html +1 -174
  231. package/doc/functions/models.deviceEventFromJSON.html +1 -174
  232. package/doc/functions/models.deviceEventToJSON.html +1 -174
  233. package/doc/functions/models.fileConflictActionFromJSON.html +1 -174
  234. package/doc/functions/models.fileConflictActionToJSON.html +1 -174
  235. package/doc/functions/models.fileTypeFromJSON.html +1 -0
  236. package/doc/functions/models.fileTypeToJSON.html +1 -0
  237. package/doc/functions/models.linFrameFlagFromJSON.html +1 -174
  238. package/doc/functions/models.linFrameFlagToJSON.html +1 -174
  239. package/doc/functions/models.logFileFormatFromJSON.html +1 -174
  240. package/doc/functions/models.logFileFormatToJSON.html +1 -174
  241. package/doc/functions/models.logLevelFromJSON.html +1 -174
  242. package/doc/functions/models.logLevelToJSON.html +1 -174
  243. package/doc/functions/models.logReplayStateFromJSON.html +1 -174
  244. package/doc/functions/models.logReplayStateToJSON.html +1 -174
  245. package/doc/functions/models.loggerStateFromJSON.html +1 -0
  246. package/doc/functions/models.loggerStateToJSON.html +1 -0
  247. package/doc/functions/models.longToNumber.html +1 -174
  248. package/doc/functions/models.measurementEventFromJSON.html +1 -174
  249. package/doc/functions/models.measurementEventToJSON.html +1 -174
  250. package/doc/functions/models.protocolsFromJSON.html +1 -174
  251. package/doc/functions/models.protocolsToJSON.html +1 -174
  252. package/doc/functions/models.separatorFromJSON.html +1 -174
  253. package/doc/functions/models.separatorToJSON.html +1 -174
  254. package/doc/functions/models.signalEncodingFromJSON.html +1 -174
  255. package/doc/functions/models.signalEncodingToJSON.html +1 -174
  256. package/doc/functions/models.signalTypeFromJSON.html +1 -174
  257. package/doc/functions/models.signalTypeToJSON.html +1 -174
  258. package/doc/functions/models.signalValueTriggerOperatorFromJSON.html +1 -174
  259. package/doc/functions/models.signalValueTriggerOperatorToJSON.html +1 -174
  260. package/doc/functions/models.statusLevelFromJSON.html +1 -174
  261. package/doc/functions/models.statusLevelToJSON.html +1 -174
  262. package/doc/functions/models.timeReferenceFromJSON.html +1 -174
  263. package/doc/functions/models.timeReferenceToJSON.html +1 -174
  264. package/doc/functions/models.triggerOperatorFromJSON.html +1 -174
  265. package/doc/functions/models.triggerOperatorToJSON.html +1 -174
  266. package/doc/hierarchy.html +1 -174
  267. package/doc/index.html +65 -237
  268. package/doc/interfaces/controls.ButtonGroupProps.html +6 -179
  269. package/doc/interfaces/controls.ButtonProps.html +10 -183
  270. package/doc/interfaces/controls.CanChannelSelectControlProps.html +14 -187
  271. package/doc/interfaces/controls.CanIdentifierControlProps.html +32 -189
  272. package/doc/interfaces/controls.CanIdentifierFrameControlProps.html +28 -187
  273. package/doc/interfaces/controls.CanIdentifierGeneratorControlProps.html +28 -201
  274. package/doc/interfaces/controls.CanIdentifierGeneratorSettingsControlProps.html +17 -190
  275. package/doc/interfaces/controls.CheckboxControlProps.html +7 -180
  276. package/doc/interfaces/controls.ColumnItem.html +3 -0
  277. package/doc/interfaces/controls.ColumnItemControlProps.html +3 -176
  278. package/doc/interfaces/controls.ContextMenuProps.html +6 -179
  279. package/doc/interfaces/controls.DropdownButtonChildrenProps.html +4 -177
  280. package/doc/interfaces/controls.DropdownButtonProps.html +11 -184
  281. package/doc/interfaces/controls.DropdownButtonTextItemsProps.html +9 -182
  282. package/doc/interfaces/controls.DropdownPanelProps.html +15 -188
  283. package/doc/interfaces/controls.FormControlRowProps.html +7 -180
  284. package/doc/interfaces/controls.ILocalizedStrings.html +3 -176
  285. package/doc/interfaces/controls.IMessageDatabase.html +4 -0
  286. package/doc/interfaces/controls.InlineEditorProps.html +9 -182
  287. package/doc/interfaces/controls.LabelProps.html +3 -176
  288. package/doc/interfaces/controls.LinChannelSelectControlProps.html +20 -0
  289. package/doc/interfaces/controls.LinIdentifierControlProps.html +35 -0
  290. package/doc/interfaces/controls.LinIdentifierFrameControlProps.html +33 -0
  291. package/doc/interfaces/controls.LinIdentifierGeneratorControlProps.html +37 -0
  292. package/doc/interfaces/controls.LinIdentifierGeneratorSettingsControlProps.html +25 -0
  293. package/doc/interfaces/controls.NumberRangeControlProps.html +41 -214
  294. package/doc/interfaces/controls.RadioControlProps.html +4 -177
  295. package/doc/interfaces/controls.RadioGroupControlProps.html +6 -179
  296. package/doc/interfaces/controls.SectionControlProps.html +8 -181
  297. package/doc/interfaces/controls.SelectControlProps.html +20 -193
  298. package/doc/interfaces/controls.SelectMessageDialogProps.html +8 -0
  299. package/doc/interfaces/controls.SelectSignalDialogProps.html +12 -0
  300. package/doc/interfaces/controls.TableColumn.html +10 -183
  301. package/doc/interfaces/controls.TableControlProps.html +24 -191
  302. package/doc/interfaces/controls.TextControlProps.html +24 -197
  303. package/doc/interfaces/controls.ToggleButtonGroupProps.html +9 -182
  304. package/doc/interfaces/controls.ToggleButtonProps.html +5 -178
  305. package/doc/interfaces/controls.ToolbarControlProps.html +9 -182
  306. package/doc/interfaces/controls.ValidateableTextControlProps.html +40 -213
  307. package/doc/interfaces/controls.toolbarItem.html +7 -180
  308. package/doc/interfaces/ipc.ILogger.html +3 -176
  309. package/doc/interfaces/models.AboutInformation.html +8 -181
  310. package/doc/interfaces/models.ActivateLicenseRequest.html +6 -179
  311. package/doc/interfaces/models.AddAllConnectedCanChannelsRequest.html +3 -176
  312. package/doc/interfaces/models.AddAllConnectedLinChannelsRequest.html +3 -176
  313. package/doc/interfaces/models.AddOrUpdateDataProcessorRequest.html +9 -182
  314. package/doc/interfaces/models.AddOrUpdateSourceRequest.html +5 -178
  315. package/doc/interfaces/models.AddOrUpdateTargetRequest.html +5 -178
  316. package/doc/interfaces/models.ApiPreferences.html +5 -178
  317. package/doc/interfaces/models.AppEventArgs.html +4 -177
  318. package/doc/interfaces/models.BaseNodeProperties.html +5 -178
  319. package/doc/interfaces/models.BusStatus.html +17 -190
  320. package/doc/interfaces/models.CanBusParamLimits.html +7 -180
  321. package/doc/interfaces/models.CanBusParams.html +3 -176
  322. package/doc/interfaces/models.CanBusSpeedInfo.html +12 -191
  323. package/doc/interfaces/models.CanChannelCapacity.html +7 -180
  324. package/doc/interfaces/models.CanChannelConfiguration.html +16 -185
  325. package/doc/interfaces/models.CanFDBusSpeedCombination.html +4 -177
  326. package/doc/interfaces/models.CanFDBusSpeedInfo.html +8 -189
  327. package/doc/interfaces/models.CanFrameFlags.html +3 -176
  328. package/doc/interfaces/models.CanMessageFilterSettings.html +5 -178
  329. package/doc/interfaces/models.Channel.html +5 -178
  330. package/doc/interfaces/models.ChannelSettings.html +20 -193
  331. package/doc/interfaces/models.ClearLinMessageRequest.html +6 -179
  332. package/doc/interfaces/models.ConnectNodesRequest.html +4 -177
  333. package/doc/interfaces/models.DataProcessingStatus.html +6 -179
  334. package/doc/interfaces/models.DataProcessorNodeProperties.html +8 -181
  335. package/doc/interfaces/models.DatabaseFiles.html +6 -0
  336. package/doc/interfaces/models.DatabasesSettings.html +3 -176
  337. package/doc/interfaces/models.Device.html +6 -179
  338. package/doc/interfaces/models.DeviceEventArgs.html +4 -177
  339. package/doc/interfaces/models.Devices.html +2 -175
  340. package/doc/interfaces/models.DisconnectNodesRequest.html +4 -177
  341. package/doc/interfaces/models.Empty.html +2 -175
  342. package/doc/interfaces/models.ErrorStatus.html +3 -176
  343. package/doc/interfaces/models.Frame.html +19 -192
  344. package/doc/interfaces/models.FrameDefinition.html +10 -181
  345. package/doc/interfaces/models.FrameDefinitions.html +2 -175
  346. package/doc/interfaces/models.FramePropertyValue.html +4 -177
  347. package/doc/interfaces/models.FrameReceivedTrigger.html +6 -179
  348. package/doc/interfaces/models.Frame_PropertiesEntry.html +2 -175
  349. package/doc/interfaces/models.Frames.html +2 -175
  350. package/doc/interfaces/models.GetCanChannelBusSpeedsRequest.html +6 -176
  351. package/doc/interfaces/models.GetCanChannelBusSpeedsResponse.html +6 -179
  352. package/doc/interfaces/models.GetCanFdBusSpeedsRequest.html +5 -178
  353. package/doc/interfaces/models.GetCanFdBusSpeedsResponse.html +4 -177
  354. package/doc/interfaces/models.GetChannelsFromLogFileRequest.html +4 -177
  355. package/doc/interfaces/models.GetChannelsFromLogFileResponse.html +3 -176
  356. package/doc/interfaces/models.GetClassicCanBusSpeedsRequest.html +4 -177
  357. package/doc/interfaces/models.GetClassicCanBusSpeedsResponse.html +4 -177
  358. package/doc/interfaces/models.GetDataProcessorResponse.html +3 -176
  359. package/doc/interfaces/models.GetDevicesRequest.html +3 -176
  360. package/doc/interfaces/models.GetDevicesResponse.html +3 -176
  361. package/doc/interfaces/models.GetFrameDefinitionsFromDatabaseFilesRequest.html +3 -176
  362. package/doc/interfaces/models.GetLicensesResponse.html +3 -176
  363. package/doc/interfaces/models.GetLogFileFormatsRequest.html +8 -179
  364. package/doc/interfaces/models.GetLogFileFormatsResponse.html +3 -176
  365. package/doc/interfaces/models.GetLogLevelResponse.html +4 -177
  366. package/doc/interfaces/models.GetScheduleTablesFromDatabaseFilesRequest.html +3 -176
  367. package/doc/interfaces/models.GetScheduleTablesFromDatabaseFilesResponse.html +3 -176
  368. package/doc/interfaces/models.GetServiceExtensionInfoRequest.html +4 -177
  369. package/doc/interfaces/models.GetServiceExtensionInfoResponse.html +7 -180
  370. package/doc/interfaces/models.GetSignalDataFromMessageDataRequest.html +5 -178
  371. package/doc/interfaces/models.GetSignalDataFromMessageDataResponse.html +4 -177
  372. package/doc/interfaces/models.GetSourceResponse.html +3 -176
  373. package/doc/interfaces/models.GetTargetResponse.html +3 -176
  374. package/doc/interfaces/models.ILogFileFormat.html +3 -176
  375. package/doc/interfaces/models.IProject.html +4 -177
  376. package/doc/interfaces/models.IUserSettings.html +13 -183
  377. package/doc/interfaces/models.IWorkspaceComponentPaneData.html +4 -177
  378. package/doc/interfaces/models.IWorkspaceContainerPaneData.html +4 -177
  379. package/doc/interfaces/models.IWorkspaceData.html +4 -177
  380. package/doc/interfaces/models.IWorkspacePaneData.html +4 -177
  381. package/doc/interfaces/models.IdentifierRequest.html +3 -176
  382. package/doc/interfaces/models.IdentifiersRequest.html +3 -176
  383. package/doc/interfaces/models.InstallServiceExtensionRequest.html +6 -179
  384. package/doc/interfaces/models.InterpreterSettings.html +4 -177
  385. package/doc/interfaces/models.J1939InterpreterSettings.html +2 -175
  386. package/doc/interfaces/models.LicenseInformation.html +18 -191
  387. package/doc/interfaces/models.Licenses.html +3 -176
  388. package/doc/interfaces/models.LinChannelConfiguration.html +14 -185
  389. package/doc/interfaces/models.LinFrameFlags.html +3 -176
  390. package/doc/interfaces/models.LogMessage.html +8 -181
  391. package/doc/interfaces/models.LogMessages.html +3 -176
  392. package/doc/interfaces/models.LogReplaySettings.html +24 -197
  393. package/doc/interfaces/models.LogReplaySettings_ChannelIdentifiersEntry.html +2 -175
  394. package/doc/interfaces/models.LogReplayStatus.html +3 -176
  395. package/doc/interfaces/models.LoggerStatus.html +3 -0
  396. package/doc/interfaces/models.MeasurementEventArgs.html +5 -178
  397. package/doc/interfaces/models.MeasurementSetup.html +3 -176
  398. package/doc/interfaces/models.MessageLoggerSettings.html +44 -213
  399. package/doc/interfaces/models.NodeStatus.html +18 -191
  400. package/doc/interfaces/models.NodeStatuses.html +3 -176
  401. package/doc/interfaces/models.OnlineStatus.html +3 -176
  402. package/doc/interfaces/models.PeriodicTransmissionSettings.html +34 -207
  403. package/doc/interfaces/models.RequestLinMessageRequest.html +6 -179
  404. package/doc/interfaces/models.ScheduleTable.html +5 -178
  405. package/doc/interfaces/models.ScheduleTableEntry.html +5 -178
  406. package/doc/interfaces/models.SendLinWakeupFrameRequest.html +4 -177
  407. package/doc/interfaces/models.SendMessageRequest.html +3 -176
  408. package/doc/interfaces/models.ServiceExtensionSettings.html +4 -177
  409. package/doc/interfaces/models.SetLogLevelRequest.html +4 -177
  410. package/doc/interfaces/models.SetMeasurementSetupRequest.html +3 -176
  411. package/doc/interfaces/models.SetSignalDataToMessageDataRequest.html +7 -180
  412. package/doc/interfaces/models.SetSignalDataToMessageDataResponse.html +5 -178
  413. package/doc/interfaces/models.SignalDefinition.html +11 -181
  414. package/doc/interfaces/models.SignalDefinition_EnumValuesEntry.html +2 -175
  415. package/doc/interfaces/models.SignalDefinitions.html +2 -175
  416. package/doc/interfaces/models.SignalFilterSettings.html +4 -0
  417. package/doc/interfaces/models.SignalLoggerSettings.html +56 -0
  418. package/doc/interfaces/models.SignalValue.html +5 -180
  419. package/doc/interfaces/models.SignalValueTrigger.html +14 -187
  420. package/doc/interfaces/models.SourceNodeProperties.html +7 -180
  421. package/doc/interfaces/models.StartPeriodicTransmissionRequest.html +3 -176
  422. package/doc/interfaces/models.StartPeriodicTransmissionResponse.html +3 -176
  423. package/doc/interfaces/models.TargetNodeProperties.html +6 -178
  424. package/doc/interfaces/models.TriggerSettings.html +8 -181
  425. package/doc/interfaces/models.UninstallServiceExtensionRequest.html +3 -176
  426. package/doc/interfaces/models.UpdateLinMessageRequest.html +4 -177
  427. package/doc/interfaces/models.UpdatePeriodicTransmissionRequest.html +7 -0
  428. package/doc/interfaces/models.WriteFrame.html +6 -183
  429. package/doc/modules/controls.html +3 -241
  430. package/doc/modules/hooks.html +3 -196
  431. package/doc/modules/icons.html +2 -216
  432. package/doc/modules/ipc.html +2 -202
  433. package/doc/modules/models.html +2 -478
  434. package/doc/modules.html +1 -179
  435. package/doc/types/controls.ContextMenuOption.html +6 -179
  436. package/doc/types/controls.SelectOption.html +4 -177
  437. package/doc/types/controls.StringsMap.html +2 -175
  438. package/doc/types/controls.canIdentifierGeneratorType.html +2 -0
  439. package/doc/types/controls.canIdentifierType.html +2 -175
  440. package/doc/types/controls.linIdentifierGeneratorType.html +2 -0
  441. package/doc/types/models.IReadOnlyDataBuffer.html +1 -174
  442. package/doc/types/models.themes.html +1 -174
  443. package/doc/variables/models.AboutInformation-1.html +1 -174
  444. package/doc/variables/models.ActivateLicenseRequest-1.html +1 -174
  445. package/doc/variables/models.AddAllConnectedCanChannelsRequest-1.html +1 -174
  446. package/doc/variables/models.AddAllConnectedLinChannelsRequest-1.html +1 -174
  447. package/doc/variables/models.AddOrUpdateDataProcessorRequest-1.html +1 -174
  448. package/doc/variables/models.AddOrUpdateSourceRequest-1.html +1 -174
  449. package/doc/variables/models.AddOrUpdateTargetRequest-1.html +1 -174
  450. package/doc/variables/models.ApiPreferences-1.html +1 -174
  451. package/doc/variables/models.AppEventArgs-1.html +1 -174
  452. package/doc/variables/models.BaseNodeProperties-1.html +1 -174
  453. package/doc/variables/models.BusStatus-1.html +1 -174
  454. package/doc/variables/models.CanBusParamLimits-1.html +1 -174
  455. package/doc/variables/models.CanBusParams-1.html +1 -174
  456. package/doc/variables/models.CanBusSpeedInfo-1.html +1 -174
  457. package/doc/variables/models.CanChannelCapacity-1.html +1 -174
  458. package/doc/variables/models.CanChannelConfiguration-1.html +1 -174
  459. package/doc/variables/models.CanFDBusSpeedCombination-1.html +1 -174
  460. package/doc/variables/models.CanFDBusSpeedInfo-1.html +1 -174
  461. package/doc/variables/models.CanFrameFlags-1.html +1 -174
  462. package/doc/variables/models.CanMessageFilterSettings-1.html +1 -174
  463. package/doc/variables/models.Channel-1.html +1 -174
  464. package/doc/variables/models.ChannelSettings-1.html +1 -174
  465. package/doc/variables/models.ClearLinMessageRequest-1.html +1 -174
  466. package/doc/variables/models.ConnectNodesRequest-1.html +1 -174
  467. package/doc/variables/models.DataProcessingStatus-1.html +1 -174
  468. package/doc/variables/models.DataProcessorNodeProperties-1.html +1 -174
  469. package/doc/variables/models.DatabaseFiles-1.html +1 -0
  470. package/doc/variables/models.DatabasesSettings-1.html +1 -174
  471. package/doc/variables/models.Device-1.html +1 -174
  472. package/doc/variables/models.DeviceEventArgs-1.html +1 -174
  473. package/doc/variables/models.Devices-1.html +1 -174
  474. package/doc/variables/models.DisconnectNodesRequest-1.html +1 -174
  475. package/doc/variables/models.Empty-1.html +1 -174
  476. package/doc/variables/models.ErrorStatus-1.html +1 -174
  477. package/doc/variables/models.Frame-1.html +1 -174
  478. package/doc/variables/models.FrameDefinition-1.html +1 -174
  479. package/doc/variables/models.FrameDefinitions-1.html +1 -174
  480. package/doc/variables/models.FramePropertyValue-1.html +1 -174
  481. package/doc/variables/models.FrameReceivedTrigger-1.html +1 -174
  482. package/doc/variables/models.Frame_PropertiesEntry-1.html +1 -174
  483. package/doc/variables/models.Frames-1.html +1 -174
  484. package/doc/variables/models.GetCanChannelBusSpeedsRequest-1.html +1 -174
  485. package/doc/variables/models.GetCanChannelBusSpeedsResponse-1.html +1 -174
  486. package/doc/variables/models.GetCanFdBusSpeedsRequest-1.html +1 -174
  487. package/doc/variables/models.GetCanFdBusSpeedsResponse-1.html +1 -174
  488. package/doc/variables/models.GetChannelsFromLogFileRequest-1.html +1 -174
  489. package/doc/variables/models.GetChannelsFromLogFileResponse-1.html +1 -174
  490. package/doc/variables/models.GetClassicCanBusSpeedsRequest-1.html +1 -174
  491. package/doc/variables/models.GetClassicCanBusSpeedsResponse-1.html +1 -174
  492. package/doc/variables/models.GetDataProcessorResponse-1.html +1 -174
  493. package/doc/variables/models.GetDevicesRequest-1.html +1 -174
  494. package/doc/variables/models.GetDevicesResponse-1.html +1 -174
  495. package/doc/variables/models.GetFrameDefinitionsFromDatabaseFilesRequest-1.html +1 -174
  496. package/doc/variables/models.GetLicensesResponse-1.html +1 -174
  497. package/doc/variables/models.GetLogFileFormatsRequest-1.html +1 -174
  498. package/doc/variables/models.GetLogFileFormatsResponse-1.html +1 -174
  499. package/doc/variables/models.GetLogLevelResponse-1.html +1 -174
  500. package/doc/variables/models.GetScheduleTablesFromDatabaseFilesRequest-1.html +1 -174
  501. package/doc/variables/models.GetScheduleTablesFromDatabaseFilesResponse-1.html +1 -174
  502. package/doc/variables/models.GetServiceExtensionInfoRequest-1.html +1 -174
  503. package/doc/variables/models.GetServiceExtensionInfoResponse-1.html +1 -174
  504. package/doc/variables/models.GetSignalDataFromMessageDataRequest-1.html +1 -174
  505. package/doc/variables/models.GetSignalDataFromMessageDataResponse-1.html +1 -174
  506. package/doc/variables/models.GetSourceResponse-1.html +1 -174
  507. package/doc/variables/models.GetTargetResponse-1.html +1 -174
  508. package/doc/variables/models.IdentifierRequest-1.html +1 -174
  509. package/doc/variables/models.IdentifiersRequest-1.html +1 -174
  510. package/doc/variables/models.InstallServiceExtensionRequest-1.html +1 -174
  511. package/doc/variables/models.InterpreterSettings-1.html +1 -174
  512. package/doc/variables/models.J1939InterpreterSettings-1.html +1 -174
  513. package/doc/variables/models.LicenseInformation-1.html +1 -174
  514. package/doc/variables/models.Licenses-1.html +1 -174
  515. package/doc/variables/models.LinChannelConfiguration-1.html +1 -174
  516. package/doc/variables/models.LinFrameFlags-1.html +1 -174
  517. package/doc/variables/models.LogMessage-1.html +1 -174
  518. package/doc/variables/models.LogMessages-1.html +1 -174
  519. package/doc/variables/models.LogReplaySettings-1.html +1 -174
  520. package/doc/variables/models.LogReplaySettings_ChannelIdentifiersEntry-1.html +1 -174
  521. package/doc/variables/models.LogReplayStatus-1.html +1 -174
  522. package/doc/variables/models.LoggerStatus-1.html +1 -0
  523. package/doc/variables/models.MeasurementEventArgs-1.html +1 -174
  524. package/doc/variables/models.MeasurementSetup-1.html +1 -174
  525. package/doc/variables/models.MessageLoggerSettings-1.html +1 -174
  526. package/doc/variables/models.NodeStatus-1.html +1 -174
  527. package/doc/variables/models.NodeStatuses-1.html +1 -174
  528. package/doc/variables/models.OnlineStatus-1.html +1 -174
  529. package/doc/variables/models.PeriodicTransmissionSettings-1.html +1 -174
  530. package/doc/variables/models.RequestLinMessageRequest-1.html +1 -174
  531. package/doc/variables/models.ScheduleTable-1.html +1 -174
  532. package/doc/variables/models.ScheduleTableEntry-1.html +1 -174
  533. package/doc/variables/models.SendLinWakeupFrameRequest-1.html +1 -174
  534. package/doc/variables/models.SendMessageRequest-1.html +1 -174
  535. package/doc/variables/models.ServiceExtensionSettings-1.html +1 -174
  536. package/doc/variables/models.SetLogLevelRequest-1.html +1 -174
  537. package/doc/variables/models.SetMeasurementSetupRequest-1.html +1 -174
  538. package/doc/variables/models.SetSignalDataToMessageDataRequest-1.html +1 -174
  539. package/doc/variables/models.SetSignalDataToMessageDataResponse-1.html +1 -174
  540. package/doc/variables/models.SignalDefinition-1.html +1 -174
  541. package/doc/variables/models.SignalDefinition_EnumValuesEntry-1.html +1 -174
  542. package/doc/variables/models.SignalDefinitions-1.html +1 -174
  543. package/doc/variables/models.SignalFilterSettings-1.html +1 -0
  544. package/doc/variables/models.SignalLoggerSettings-1.html +1 -0
  545. package/doc/variables/models.SignalValue-1.html +1 -174
  546. package/doc/variables/models.SignalValueTrigger-1.html +1 -174
  547. package/doc/variables/models.SourceNodeProperties-1.html +1 -174
  548. package/doc/variables/models.StartPeriodicTransmissionRequest-1.html +1 -174
  549. package/doc/variables/models.StartPeriodicTransmissionResponse-1.html +1 -174
  550. package/doc/variables/models.TargetNodeProperties-1.html +1 -174
  551. package/doc/variables/models.TriggerSettings-1.html +1 -174
  552. package/doc/variables/models.UninstallServiceExtensionRequest-1.html +1 -174
  553. package/doc/variables/models.UpdateLinMessageRequest-1.html +1 -174
  554. package/doc/variables/models.UpdatePeriodicTransmissionRequest-1.html +1 -0
  555. package/doc/variables/models.WriteFrame-1.html +1 -174
  556. package/doc/variables/models.defaultUserSettings.html +2 -175
  557. package/package.json +15 -3
  558. package/doc/assets/material-style.css +0 -338
  559. package/doc/enums/models.MessageLoggerState.html +0 -180
  560. package/doc/functions/models.messageLoggerStateFromJSON.html +0 -174
  561. package/doc/functions/models.messageLoggerStateToJSON.html +0 -174
  562. package/doc/interfaces/models.CanBusSpeed.html +0 -187
  563. package/doc/interfaces/models.MessageLoggerStatus.html +0 -176
  564. package/doc/variables/models.CanBusSpeed-1.html +0 -174
  565. package/doc/variables/models.MessageLoggerStatus-1.html +0 -174
package/dist/controls.mjs CHANGED
@@ -1,205 +1,208 @@
1
- import { u as H, a as We, b as re, c as De, d as Ue } from "./index.mjs";
2
- import { C as br, D as mr, L as pr, g as vr, f as xr, M as Cr, O as Sr, R as Nr, U as yr, W as Ir, e as $r, r as Fr } from "./index.mjs";
3
- import { jsx as c, jsxs as L, Fragment as J } from "react/jsx-runtime";
4
- import * as Y from "react";
5
- import oe, { useCallback as F, useRef as $e, useState as A, useEffect as k, useMemo as j } from "react";
6
- import { FormControlLabel as Fe, Checkbox as ze, Box as Q, styled as W, Button as Ke, IconButton as we, Popover as Xe, MenuItem as se, FormControl as Me, Stack as Re, TextField as Ge, InputAdornment as he, Radio as qe, RadioGroup as Ye, Divider as He, Tooltip as ne, InputLabel as Je, Select as Qe, FormHelperText as Ze, ListSubheader as Ve, TableContainer as en, Table as nn, TableHead as tn, TableRow as ge, TableCell as be, TableBody as rn, Toolbar as an, Typography as Te, ToggleButtonGroup as ln, toggleButtonGroupClasses as me, ButtonGroup as on, buttonGroupClasses as Z, Paper as dn, ToggleButton as sn, Menu as un, ListItemIcon as cn, ListItemText as pe } from "@mui/material";
7
- import { LineArrowDownIcon as _e, LineArrowUpIcon as fn } from "./icons.mjs";
8
- import ue from "fast-deep-equal";
1
+ import { u as ne, a as hn, b as bn, r as pn, c as le, d as qe, e as He } from "./index.mjs";
2
+ import { C as ea, D as na, L as ta, g as ra, f as aa, M as ia, O as sa, R as la, U as da, W as oa } from "./index.mjs";
3
+ import { jsx as s, jsxs as T, Fragment as ce } from "react/jsx-runtime";
4
+ import * as be from "react";
5
+ import we, { useCallback as w, useRef as Ke, useState as U, useEffect as z, useMemo as O, Fragment as Sn } from "react";
6
+ import { FormControlLabel as Qe, Checkbox as xn, Box as xe, styled as V, Button as Nn, IconButton as Xe, Popover as vn, MenuItem as We, FormControl as Ye, Stack as Je, TextField as Ze, InputAdornment as Ee, Radio as Cn, RadioGroup as In, Divider as $n, Tooltip as Se, InputLabel as Mn, Select as Fn, FormHelperText as Ln, ListSubheader as wn, Dialog as Ve, DialogTitle as Ge, DialogContent as en, DialogActions as Re, Autocomplete as Rn, TableContainer as Wn, Table as An, TableHead as _n, TableRow as Be, TableCell as Fe, TableBody as kn, Toolbar as En, Typography as nn, ToggleButtonGroup as Bn, toggleButtonGroupClasses as Ue, ButtonGroup as Un, buttonGroupClasses as Ce, Paper as yn, ToggleButton as On, Menu as Pn, ListItemIcon as jn, ListItemText as ye } from "@mui/material";
7
+ import { LineArrowDownIcon as tn, LineArrowUpIcon as Dn, CloseIcon as zn } from "./icons.mjs";
8
+ import { v4 as Tn } from "uuid";
9
+ import { SimpleTreeView as rn, TreeItem as pe } from "@mui/x-tree-view";
10
+ import { getFrameDefinitions as qn } from "./ipc.mjs";
11
+ import ge from "fast-deep-equal";
9
12
  import "long";
10
- import { C as U, W as hn } from "./measurement_settings.mjs";
11
- function Ae({
13
+ import { C as ee, W as an } from "./measurement_settings.mjs";
14
+ function sn({
12
15
  id: e = void 0,
13
16
  label: n,
14
17
  checked: t,
15
18
  onChange: r,
16
19
  disabled: a = !1,
17
- size: i = "small",
18
- sx: f = void 0
20
+ size: l = "small",
21
+ sx: u = void 0
19
22
  }) {
20
- const d = F((l) => {
21
- if (l.key === "Enter" && !l.ctrlKey && !l.altKey && !l.shiftKey) {
22
- l.preventDefault();
23
+ const d = w((i) => {
24
+ if (i.key === "Enter" && !i.ctrlKey && !i.altKey && !i.shiftKey) {
25
+ i.preventDefault();
23
26
  return;
24
27
  }
25
28
  }, []);
26
- return /* @__PURE__ */ c(
27
- Fe,
29
+ return /* @__PURE__ */ s(
30
+ Qe,
28
31
  {
29
32
  id: e,
30
33
  "aria-label": e,
31
34
  disabled: a,
32
35
  "aria-disabled": a,
33
- control: /* @__PURE__ */ c(ze, { size: i, checked: t, onChange: (l, s) => r(s), onKeyDown: d }),
36
+ control: /* @__PURE__ */ s(xn, { size: l, checked: t, onChange: (i, o) => r(o), onKeyDown: d }),
34
37
  label: n,
35
38
  slotProps: { typography: { noWrap: !0 } },
36
- sx: f
39
+ sx: u
37
40
  }
38
41
  );
39
42
  }
40
- var V = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
41
- function Le(e) {
43
+ var Ie = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
44
+ function ln(e) {
42
45
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
43
46
  }
44
- function gn(e) {
47
+ function Hn(e) {
45
48
  var n = typeof e;
46
49
  return e != null && (n == "object" || n == "function");
47
50
  }
48
- var ce = gn, bn = typeof V == "object" && V && V.Object === Object && V, mn = bn, pn = mn, vn = typeof self == "object" && self && self.Object === Object && self, xn = pn || vn || Function("return this")(), Ee = xn, Cn = Ee, Sn = function() {
49
- return Cn.Date.now();
50
- }, Nn = Sn, yn = /\s/;
51
- function In(e) {
52
- for (var n = e.length; n-- && yn.test(e.charAt(n)); )
51
+ var Ae = Hn, Kn = typeof Ie == "object" && Ie && Ie.Object === Object && Ie, Qn = Kn, Xn = Qn, Yn = typeof self == "object" && self && self.Object === Object && self, Jn = Xn || Yn || Function("return this")(), dn = Jn, Zn = dn, Vn = function() {
52
+ return Zn.Date.now();
53
+ }, Gn = Vn, et = /\s/;
54
+ function nt(e) {
55
+ for (var n = e.length; n-- && et.test(e.charAt(n)); )
53
56
  ;
54
57
  return n;
55
58
  }
56
- var $n = In, Fn = $n, wn = /^\s+/;
57
- function Mn(e) {
58
- return e && e.slice(0, Fn(e) + 1).replace(wn, "");
59
+ var tt = nt, rt = tt, at = /^\s+/;
60
+ function it(e) {
61
+ return e && e.slice(0, rt(e) + 1).replace(at, "");
59
62
  }
60
- var Rn = Mn, Tn = Ee, _n = Tn.Symbol, Be = _n, ve = Be, Oe = Object.prototype, An = Oe.hasOwnProperty, Ln = Oe.toString, q = ve ? ve.toStringTag : void 0;
61
- function En(e) {
62
- var n = An.call(e, q), t = e[q];
63
+ var st = it, lt = dn, dt = lt.Symbol, on = dt, Oe = on, un = Object.prototype, ot = un.hasOwnProperty, ut = un.toString, he = Oe ? Oe.toStringTag : void 0;
64
+ function ct(e) {
65
+ var n = ot.call(e, he), t = e[he];
63
66
  try {
64
- e[q] = void 0;
67
+ e[he] = void 0;
65
68
  var r = !0;
66
69
  } catch {
67
70
  }
68
- var a = Ln.call(e);
69
- return r && (n ? e[q] = t : delete e[q]), a;
71
+ var a = ut.call(e);
72
+ return r && (n ? e[he] = t : delete e[he]), a;
70
73
  }
71
- var Bn = En, On = Object.prototype, kn = On.toString;
72
- function jn(e) {
73
- return kn.call(e);
74
+ var ft = ct, gt = Object.prototype, mt = gt.toString;
75
+ function ht(e) {
76
+ return mt.call(e);
74
77
  }
75
- var Pn = jn, xe = Be, Wn = Bn, Dn = Pn, Un = "[object Null]", zn = "[object Undefined]", Ce = xe ? xe.toStringTag : void 0;
76
- function Kn(e) {
77
- return e == null ? e === void 0 ? zn : Un : Ce && Ce in Object(e) ? Wn(e) : Dn(e);
78
+ var bt = ht, Pe = on, pt = ft, St = bt, xt = "[object Null]", Nt = "[object Undefined]", je = Pe ? Pe.toStringTag : void 0;
79
+ function vt(e) {
80
+ return e == null ? e === void 0 ? Nt : xt : je && je in Object(e) ? pt(e) : St(e);
78
81
  }
79
- var Xn = Kn;
80
- function Gn(e) {
82
+ var Ct = vt;
83
+ function It(e) {
81
84
  return e != null && typeof e == "object";
82
85
  }
83
- var qn = Gn, Yn = Xn, Hn = qn, Jn = "[object Symbol]";
84
- function Qn(e) {
85
- return typeof e == "symbol" || Hn(e) && Yn(e) == Jn;
86
+ var $t = It, Mt = Ct, Ft = $t, Lt = "[object Symbol]";
87
+ function wt(e) {
88
+ return typeof e == "symbol" || Ft(e) && Mt(e) == Lt;
86
89
  }
87
- var Zn = Qn, Vn = Rn, Se = ce, et = Zn, Ne = NaN, nt = /^[-+]0x[0-9a-f]+$/i, tt = /^0b[01]+$/i, rt = /^0o[0-7]+$/i, at = parseInt;
88
- function lt(e) {
90
+ var Rt = wt, Wt = st, De = Ae, At = Rt, ze = NaN, _t = /^[-+]0x[0-9a-f]+$/i, kt = /^0b[01]+$/i, Et = /^0o[0-7]+$/i, Bt = parseInt;
91
+ function Ut(e) {
89
92
  if (typeof e == "number")
90
93
  return e;
91
- if (et(e))
92
- return Ne;
93
- if (Se(e)) {
94
+ if (At(e))
95
+ return ze;
96
+ if (De(e)) {
94
97
  var n = typeof e.valueOf == "function" ? e.valueOf() : e;
95
- e = Se(n) ? n + "" : n;
98
+ e = De(n) ? n + "" : n;
96
99
  }
97
100
  if (typeof e != "string")
98
101
  return e === 0 ? e : +e;
99
- e = Vn(e);
100
- var t = tt.test(e);
101
- return t || rt.test(e) ? at(e.slice(2), t ? 2 : 8) : nt.test(e) ? Ne : +e;
102
+ e = Wt(e);
103
+ var t = kt.test(e);
104
+ return t || Et.test(e) ? Bt(e.slice(2), t ? 2 : 8) : _t.test(e) ? ze : +e;
102
105
  }
103
- var it = lt, ot = ce, le = Nn, ye = it, dt = "Expected a function", st = Math.max, ut = Math.min;
104
- function ct(e, n, t) {
105
- var r, a, i, f, d, l, s = 0, g = !1, x = !1, y = !0;
106
+ var yt = Ut, Ot = Ae, Le = Gn, Te = yt, Pt = "Expected a function", jt = Math.max, Dt = Math.min;
107
+ function zt(e, n, t) {
108
+ var r, a, l, u, d, i, o = 0, g = !1, c = !1, I = !0;
106
109
  if (typeof e != "function")
107
- throw new TypeError(dt);
108
- n = ye(n) || 0, ot(t) && (g = !!t.leading, x = "maxWait" in t, i = x ? st(ye(t.maxWait) || 0, n) : i, y = "trailing" in t ? !!t.trailing : y);
109
- function C(o) {
110
- var M = r, E = a;
111
- return r = a = void 0, s = o, f = e.apply(E, M), f;
110
+ throw new TypeError(Pt);
111
+ n = Te(n) || 0, Ot(t) && (g = !!t.leading, c = "maxWait" in t, l = c ? jt(Te(t.maxWait) || 0, n) : l, I = "trailing" in t ? !!t.trailing : I);
112
+ function N(M) {
113
+ var b = r, $ = a;
114
+ return r = a = void 0, o = M, u = e.apply($, b), u;
112
115
  }
113
- function S(o) {
114
- return s = o, d = setTimeout(T, n), g ? C(o) : f;
116
+ function m(M) {
117
+ return o = M, d = setTimeout(F, n), g ? N(M) : u;
115
118
  }
116
- function I(o) {
117
- var M = o - l, E = o - s, P = n - M;
118
- return x ? ut(P, i - E) : P;
119
+ function f(M) {
120
+ var b = M - i, $ = M - o, R = n - b;
121
+ return c ? Dt(R, l - $) : R;
119
122
  }
120
- function w(o) {
121
- var M = o - l, E = o - s;
122
- return l === void 0 || M >= n || M < 0 || x && E >= i;
123
+ function h(M) {
124
+ var b = M - i, $ = M - o;
125
+ return i === void 0 || b >= n || b < 0 || c && $ >= l;
123
126
  }
124
- function T() {
125
- var o = le();
126
- if (w(o))
127
- return N(o);
128
- d = setTimeout(T, I(o));
127
+ function F() {
128
+ var M = Le();
129
+ if (h(M))
130
+ return p(M);
131
+ d = setTimeout(F, f(M));
129
132
  }
130
- function N(o) {
131
- return d = void 0, y && r ? C(o) : (r = a = void 0, f);
133
+ function p(M) {
134
+ return d = void 0, I && r ? N(M) : (r = a = void 0, u);
132
135
  }
133
- function m() {
134
- d !== void 0 && clearTimeout(d), s = 0, r = l = a = d = void 0;
136
+ function L() {
137
+ d !== void 0 && clearTimeout(d), o = 0, r = i = a = d = void 0;
135
138
  }
136
- function h() {
137
- return d === void 0 ? f : N(le());
139
+ function S() {
140
+ return d === void 0 ? u : p(Le());
138
141
  }
139
142
  function v() {
140
- var o = le(), M = w(o);
141
- if (r = arguments, a = this, l = o, M) {
143
+ var M = Le(), b = h(M);
144
+ if (r = arguments, a = this, i = M, b) {
142
145
  if (d === void 0)
143
- return S(l);
144
- if (x)
145
- return clearTimeout(d), d = setTimeout(T, n), C(l);
146
+ return m(i);
147
+ if (c)
148
+ return clearTimeout(d), d = setTimeout(F, n), N(i);
146
149
  }
147
- return d === void 0 && (d = setTimeout(T, n)), f;
150
+ return d === void 0 && (d = setTimeout(F, n)), u;
148
151
  }
149
- return v.cancel = m, v.flush = h, v;
152
+ return v.cancel = L, v.flush = S, v;
150
153
  }
151
- var ke = ct;
152
- const ft = /* @__PURE__ */ Le(ke);
153
- var ht = ke, gt = ce, bt = "Expected a function";
154
- function mt(e, n, t) {
154
+ var cn = zt;
155
+ const Tt = /* @__PURE__ */ ln(cn);
156
+ var qt = cn, Ht = Ae, Kt = "Expected a function";
157
+ function Qt(e, n, t) {
155
158
  var r = !0, a = !0;
156
159
  if (typeof e != "function")
157
- throw new TypeError(bt);
158
- return gt(t) && (r = "leading" in t ? !!t.leading : r, a = "trailing" in t ? !!t.trailing : a), ht(e, n, {
160
+ throw new TypeError(Kt);
161
+ return Ht(t) && (r = "leading" in t ? !!t.leading : r, a = "trailing" in t ? !!t.trailing : a), qt(e, n, {
159
162
  leading: r,
160
163
  maxWait: n,
161
164
  trailing: a
162
165
  });
163
166
  }
164
- var pt = mt;
165
- const vt = /* @__PURE__ */ Le(pt), xt = (e, n, t, r) => {
167
+ var Xt = Qt;
168
+ const Yt = /* @__PURE__ */ ln(Xt), Jt = (e, n, t, r) => {
166
169
  switch (n) {
167
170
  case "debounce":
168
- return ft(e, t, r);
171
+ return Tt(e, t, r);
169
172
  case "throttle":
170
- return vt(e, t, r);
173
+ return Yt(e, t, r);
171
174
  default:
172
175
  return e;
173
176
  }
174
- }, Ct = (
177
+ }, Zt = (
175
178
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
176
179
  (e) => {
177
- const n = Y.useRef(e);
178
- return Y.useEffect(() => {
180
+ const n = be.useRef(e);
181
+ return be.useEffect(() => {
179
182
  n.current = e;
180
- }), Y.useMemo(() => (...t) => {
183
+ }), be.useMemo(() => (...t) => {
181
184
  var r;
182
185
  return (r = n.current) === null || r === void 0 ? void 0 : r.call(n, ...t);
183
186
  }, []);
184
187
  }
185
- ), St = (
188
+ ), Vt = (
186
189
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
187
190
  (e) => {
188
- const [n, t] = Y.useState((e == null ? void 0 : e.current) || null);
191
+ const [n, t] = be.useState((e == null ? void 0 : e.current) || null);
189
192
  return e && setTimeout(() => {
190
193
  e.current !== n && t(e.current);
191
- }, 0), { refProxy: Y.useMemo(() => new Proxy((a) => {
194
+ }, 0), { refProxy: be.useMemo(() => new Proxy((a) => {
192
195
  a !== n && t(a);
193
196
  }, {
194
- get(a, i) {
195
- return i === "current" ? n : a[i];
197
+ get(a, l) {
198
+ return l === "current" ? n : a[l];
196
199
  },
197
- set(a, i, f) {
198
- return i === "current" ? t(f) : a[i] = f, !0;
200
+ set(a, l, u) {
201
+ return l === "current" ? t(u) : a[l] = u, !0;
199
202
  }
200
203
  }), [n]), refElement: n, setRefElement: t };
201
204
  }
202
- ), Nt = (e, n) => n === "border-box" ? {
205
+ ), Gt = (e, n) => n === "border-box" ? {
203
206
  width: e.borderBoxSize[0].inlineSize,
204
207
  height: e.borderBoxSize[0].blockSize
205
208
  } : n === "content-box" ? {
@@ -209,137 +212,137 @@ const vt = /* @__PURE__ */ Le(pt), xt = (e, n, t, r) => {
209
212
  width: e.contentRect.width,
210
213
  height: e.contentRect.height
211
214
  };
212
- function yt({ skipOnMount: e = !1, refreshMode: n, refreshRate: t = 1e3, refreshOptions: r, handleWidth: a = !0, handleHeight: i = !0, targetRef: f, observerOptions: d, onResize: l } = {}) {
213
- const s = $e(e), g = Ct(l), [x, y] = A({
215
+ function er({ skipOnMount: e = !1, refreshMode: n, refreshRate: t = 1e3, refreshOptions: r, handleWidth: a = !0, handleHeight: l = !0, targetRef: u, observerOptions: d, onResize: i } = {}) {
216
+ const o = Ke(e), g = Zt(i), [c, I] = U({
214
217
  width: void 0,
215
218
  height: void 0
216
- }), { refProxy: C, refElement: S } = St(f), { box: I } = d || {}, w = F((N) => {
217
- if (!a && !i)
219
+ }), { refProxy: N, refElement: m } = Vt(u), { box: f } = d || {}, h = w((p) => {
220
+ if (!a && !l)
218
221
  return;
219
- if (s.current) {
220
- s.current = !1;
222
+ if (o.current) {
223
+ o.current = !1;
221
224
  return;
222
225
  }
223
- const m = (h, v) => a && h.width !== v.width || i && h.height !== v.height;
224
- N.forEach((h) => {
225
- const v = Nt(h, I);
226
- y((o) => m(o, v) ? (g == null || g({
226
+ const L = (S, v) => a && S.width !== v.width || l && S.height !== v.height;
227
+ p.forEach((S) => {
228
+ const v = Gt(S, f);
229
+ I((M) => L(M, v) ? (g == null || g({
227
230
  width: v.width,
228
231
  height: v.height,
229
- entry: h
230
- }), v) : o);
232
+ entry: S
233
+ }), v) : M);
231
234
  });
232
- }, [a, i, s, I]), T = F(xt(w, n, t, r), [
233
- w,
235
+ }, [a, l, o, f]), F = w(Jt(h, n, t, r), [
236
+ h,
234
237
  n,
235
238
  t,
236
239
  r
237
240
  ]);
238
- return k(() => {
239
- let N;
240
- return S ? (N = new window.ResizeObserver(T), N.observe(S, d)) : (x.width || x.height) && (g == null || g({
241
+ return z(() => {
242
+ let p;
243
+ return m ? (p = new window.ResizeObserver(F), p.observe(m, d)) : (c.width || c.height) && (g == null || g({
241
244
  width: null,
242
245
  height: null,
243
246
  entry: null
244
- }), y({ width: void 0, height: void 0 })), () => {
245
- var m, h, v;
246
- (m = N == null ? void 0 : N.disconnect) === null || m === void 0 || m.call(N), (v = (h = T).cancel) === null || v === void 0 || v.call(h);
247
+ }), I({ width: void 0, height: void 0 })), () => {
248
+ var L, S, v;
249
+ (L = p == null ? void 0 : p.disconnect) === null || L === void 0 || L.call(p), (v = (S = F).cancel) === null || v === void 0 || v.call(S);
247
250
  };
248
- }, [T, S]), Object.assign({ ref: C }, x);
251
+ }, [F, m]), Object.assign({ ref: N }, c);
249
252
  }
250
- const It = () => {
251
- const { ref: e, width: n } = yt();
253
+ const de = () => {
254
+ const { ref: e, width: n } = er();
252
255
  return {
253
256
  ref: e,
254
257
  width: n
255
258
  };
256
- }, $t = (...e) => {
257
- const [n, t] = A();
258
- return k(() => {
259
+ }, Ne = (...e) => {
260
+ const [n, t] = U();
261
+ return z(() => {
259
262
  const r = e.filter((a) => a.width !== void 0).map((a) => Number(a.width.toFixed(1)));
260
263
  if (r.length === e.length) {
261
264
  const a = Math.max(...r);
262
- t((i) => i === void 0 ? a : i);
265
+ t((l) => l === void 0 ? a : l);
263
266
  }
264
267
  }, [e]), n;
265
268
  };
266
- function Ft({ columnItem: e, width: n = void 0, children: t = void 0 }) {
267
- return /* @__PURE__ */ c("div", { ref: e.ref, children: /* @__PURE__ */ c(Q, { sx: { width: n }, children: t }) });
269
+ function oe({ columnItem: e, width: n = void 0, children: t = void 0 }) {
270
+ return /* @__PURE__ */ s("div", { ref: e.ref, children: /* @__PURE__ */ s(xe, { sx: { width: n }, children: t }) });
268
271
  }
269
- const te = W(Ke)(() => ({
272
+ const Z = V(Nn)(() => ({
270
273
  whiteSpace: "nowrap",
271
274
  minWidth: "max-content"
272
275
  }));
273
- function er({ items: e, onSelect: n, onClose: t = void 0 }) {
274
- const r = F(
275
- (a) => {
276
- n(a), t && t();
276
+ function Er({ items: e, onSelect: n, onClose: t = void 0 }) {
277
+ const r = w(
278
+ (a, l) => {
279
+ n(a, l), t && t();
277
280
  },
278
281
  [t, n]
279
282
  );
280
- return /* @__PURE__ */ c(J, { children: e.map((a) => /* @__PURE__ */ c(se, { onClick: () => r(a.key), children: a.text }, a.key)) });
283
+ return /* @__PURE__ */ s(ce, { children: e.map((a) => /* @__PURE__ */ s(We, { onClick: () => r(a.key, a.text), children: a.text }, a.key)) });
281
284
  }
282
- function wt({
285
+ function nr({
283
286
  id: e = "dropdown-button",
284
287
  startIcon: n = void 0,
285
288
  endIcon: t = void 0,
286
289
  text: r = void 0,
287
290
  variant: a = "outlined",
288
- color: i = void 0,
289
- size: f = "medium",
291
+ color: l = void 0,
292
+ size: u = "medium",
290
293
  disabled: d = !1,
291
- children: l
294
+ children: i
292
295
  }) {
293
- const [s, g] = A(null), x = !!s, y = F((I) => {
294
- g(I.currentTarget);
295
- }, []), C = F(() => {
296
+ const [o, g] = U(null), c = !!o, I = w((f) => {
297
+ g(f.currentTarget);
298
+ }, []), N = w(() => {
296
299
  g(null);
297
- }, []), S = oe.cloneElement(oe.Children.only(l), {
298
- onClose: C
300
+ }, []), m = we.cloneElement(we.Children.only(i), {
301
+ onClose: N
299
302
  });
300
- return /* @__PURE__ */ L(J, { children: [
301
- !r && /* @__PURE__ */ c(
302
- we,
303
+ return /* @__PURE__ */ T(ce, { children: [
304
+ !r && /* @__PURE__ */ s(
305
+ Xe,
303
306
  {
304
307
  id: e,
305
308
  "data-testid": e,
306
- "aria-controls": x ? `${e}-popover` : void 0,
309
+ "aria-controls": c ? `${e}-popover` : void 0,
307
310
  "aria-haspopup": "true",
308
- "aria-expanded": x ? "true" : void 0,
309
- onClick: y,
310
- size: f,
311
- color: i,
311
+ "aria-expanded": c ? "true" : void 0,
312
+ onClick: I,
313
+ size: u,
314
+ color: l,
312
315
  disabled: d,
313
316
  children: n
314
317
  }
315
318
  ),
316
- r && /* @__PURE__ */ c(
317
- te,
319
+ r && /* @__PURE__ */ s(
320
+ Z,
318
321
  {
319
322
  id: e,
320
323
  "data-testid": e,
321
- "aria-controls": x ? `${e}-popover` : void 0,
324
+ "aria-controls": c ? `${e}-popover` : void 0,
322
325
  "aria-haspopup": "true",
323
- "aria-expanded": x ? "true" : void 0,
326
+ "aria-expanded": c ? "true" : void 0,
324
327
  variant: a,
325
328
  disableElevation: !0,
326
- onClick: y,
329
+ onClick: I,
327
330
  startIcon: n,
328
- endIcon: t ?? /* @__PURE__ */ c(_e, {}),
329
- size: f,
330
- color: i,
331
+ endIcon: t ?? /* @__PURE__ */ s(tn, {}),
332
+ size: u,
333
+ color: l,
331
334
  disabled: d,
332
335
  children: r
333
336
  }
334
337
  ),
335
- /* @__PURE__ */ c(
336
- Xe,
338
+ /* @__PURE__ */ s(
339
+ vn,
337
340
  {
338
341
  id: `${e}-popover`,
339
342
  "aria-labelledby": e,
340
- anchorEl: s,
341
- open: x,
342
- onClose: C,
343
+ anchorEl: o,
344
+ open: c,
345
+ onClose: N,
343
346
  anchorOrigin: {
344
347
  vertical: "bottom",
345
348
  horizontal: "left"
@@ -348,46 +351,46 @@ function wt({
348
351
  vertical: "top",
349
352
  horizontal: "left"
350
353
  },
351
- children: S
354
+ children: m
352
355
  }
353
356
  )
354
357
  ] });
355
358
  }
356
- const Mt = W("div")(({ top: e, left: n, width: t, height: r }) => ({
359
+ const tr = V("div")(({ top: e, left: n, width: t, height: r }) => ({
357
360
  top: e,
358
361
  left: n,
359
362
  width: t,
360
363
  height: r,
361
364
  position: "absolute",
362
365
  zIndex: 1
363
- })), Rt = W("div")(({ top: e, left: n, width: t, height: r, position: a, theme: i }) => ({
366
+ })), rr = V("div")(({ top: e, left: n, width: t, height: r, position: a, theme: l }) => ({
364
367
  top: e,
365
368
  left: n,
366
369
  width: t,
367
370
  height: r,
368
371
  position: "absolute",
369
372
  zIndex: 2,
370
- color: i.palette.primary.contrastText,
371
- backgroundColor: i.palette.primary.main,
373
+ color: l.palette.primary.contrastText,
374
+ backgroundColor: l.palette.primary.main,
372
375
  display: "flex",
373
376
  flexDirection: a === "left" || a === "right" ? "column" : "row",
374
377
  borderTopLeftRadius: a === "top" || a === "left" ? 0 : 8,
375
378
  borderTopRightRadius: a === "top" || a === "right" ? 0 : 8,
376
379
  borderBottomRightRadius: a === "bottom" || a === "right" ? 0 : 8,
377
380
  borderBottomLeftRadius: a === "bottom" || a === "left" ? 0 : 8
378
- })), ee = 8;
379
- function nr({
381
+ })), $e = 8;
382
+ function Br({
380
383
  id: e = void 0,
381
384
  position: n,
382
385
  parentWidth: t,
383
386
  parentHeight: r,
384
387
  maxLength: a,
385
- dropDownSize: i,
386
- autoHideTimeout: f = 0,
388
+ dropDownSize: l,
389
+ autoHideTimeout: u = 0,
387
390
  forceShow: d = !1,
388
- children: l = null
391
+ children: i = null
389
392
  }) {
390
- const s = j(() => {
393
+ const o = O(() => {
391
394
  switch (n) {
392
395
  case "left":
393
396
  case "right":
@@ -398,498 +401,501 @@ function nr({
398
401
  default:
399
402
  return a;
400
403
  }
401
- }, [a, r, t, n]), g = j(() => {
404
+ }, [a, r, t, n]), g = O(() => {
402
405
  switch (n) {
403
406
  case "left":
404
407
  case "right":
405
- return (r - s) / 2;
408
+ return (r - o) / 2;
406
409
  case "top":
407
410
  return 0;
408
411
  case "bottom":
409
- return r - ee;
412
+ return r - $e;
410
413
  default:
411
414
  return 0;
412
415
  }
413
- }, [s, r, n]), x = j(() => {
416
+ }, [o, r, n]), c = O(() => {
414
417
  switch (n) {
415
418
  case "left":
416
419
  return 0;
417
420
  case "right":
418
- return t - ee;
421
+ return t - $e;
419
422
  case "top":
420
423
  case "bottom":
421
- return (t - s) / 2;
424
+ return (t - o) / 2;
422
425
  default:
423
426
  return 0;
424
427
  }
425
- }, [s, t, n]), y = j(() => {
428
+ }, [o, t, n]), I = O(() => {
426
429
  switch (n) {
427
430
  case "left":
428
431
  case "right":
429
- return ee;
432
+ return $e;
430
433
  case "top":
431
434
  case "bottom":
432
- return s;
435
+ return o;
433
436
  default:
434
437
  return 0;
435
438
  }
436
- }, [s, n]), C = j(() => {
439
+ }, [o, n]), N = O(() => {
437
440
  switch (n) {
438
441
  case "left":
439
442
  case "right":
440
- return s;
443
+ return o;
441
444
  case "top":
442
445
  case "bottom":
443
- return ee;
446
+ return $e;
444
447
  default:
445
448
  return 0;
446
449
  }
447
- }, [s, n]), S = j(() => {
450
+ }, [o, n]), m = O(() => {
448
451
  switch (n) {
449
452
  case "left":
450
453
  case "right":
451
- return (r - s) / 2;
454
+ return (r - o) / 2;
452
455
  case "top":
453
456
  return 0;
454
457
  case "bottom":
455
- return r - i;
458
+ return r - l;
456
459
  default:
457
460
  return 0;
458
461
  }
459
- }, [i, s, r, n]), I = j(() => {
462
+ }, [l, o, r, n]), f = O(() => {
460
463
  switch (n) {
461
464
  case "left":
462
465
  return 0;
463
466
  case "right":
464
- return t - i;
467
+ return t - l;
465
468
  case "top":
466
469
  case "bottom":
467
- return (t - s) / 2;
470
+ return (t - o) / 2;
468
471
  default:
469
472
  return 0;
470
473
  }
471
- }, [i, s, t, n]), w = j(() => {
474
+ }, [l, o, t, n]), h = O(() => {
472
475
  switch (n) {
473
476
  case "left":
474
477
  case "right":
475
- return i;
478
+ return l;
476
479
  case "top":
477
480
  case "bottom":
478
- return s;
481
+ return o;
479
482
  default:
480
483
  return 0;
481
484
  }
482
- }, [i, s, n]), T = j(() => {
485
+ }, [l, o, n]), F = O(() => {
483
486
  switch (n) {
484
487
  case "left":
485
488
  case "right":
486
- return s;
489
+ return o;
487
490
  case "top":
488
491
  case "bottom":
489
- return i;
492
+ return l;
490
493
  default:
491
494
  return 0;
492
495
  }
493
- }, [i, s, n]), [N, m] = A(!1), h = F(
494
- (o) => {
495
- o.buttons === 0 && f && m(!0);
496
+ }, [l, o, n]), [p, L] = U(!1), S = w(
497
+ (M) => {
498
+ M.buttons === 0 && u && L(!0);
496
499
  },
497
- [f]
498
- ), v = F(() => {
499
- m(!1);
500
+ [u]
501
+ ), v = w(() => {
502
+ L(!1);
500
503
  }, []);
501
- return k(() => {
502
- let o;
503
- return N && f && (o = setTimeout(() => m(!1), f)), () => {
504
- o && clearTimeout(o);
504
+ return z(() => {
505
+ let M;
506
+ return p && u && (M = setTimeout(() => L(!1), u)), () => {
507
+ M && clearTimeout(M);
505
508
  };
506
- }, [f, N]), /* @__PURE__ */ L(J, { children: [
507
- /* @__PURE__ */ c(
508
- Mt,
509
+ }, [u, p]), /* @__PURE__ */ T(ce, { children: [
510
+ /* @__PURE__ */ s(
511
+ tr,
509
512
  {
510
513
  id: e,
511
514
  top: g,
512
- left: x,
513
- width: y,
514
- height: C,
515
+ left: c,
516
+ width: I,
517
+ height: N,
515
518
  "aria-haspopup": "true",
516
- onMouseEnter: h
519
+ onMouseEnter: S
517
520
  }
518
521
  ),
519
- (N || d === !0) && /* @__PURE__ */ c(
520
- Rt,
522
+ (p || d === !0) && /* @__PURE__ */ s(
523
+ rr,
521
524
  {
522
- top: S,
523
- left: I,
524
- width: w,
525
- height: T,
525
+ top: m,
526
+ left: f,
527
+ width: h,
528
+ height: F,
526
529
  position: n,
527
530
  onMouseLeave: v,
528
- children: l
531
+ children: i
529
532
  }
530
533
  )
531
534
  ] });
532
535
  }
533
- function de({
536
+ function ue({
534
537
  children: e,
535
538
  fullWidth: n = !0,
536
539
  spacing: t = "4px",
537
540
  alignItems: r = "center"
538
541
  }) {
539
- return /* @__PURE__ */ c(Me, { margin: "dense", fullWidth: n, variant: "standard", children: /* @__PURE__ */ c(Re, { direction: "row", spacing: t, alignItems: r, children: e }) });
542
+ return /* @__PURE__ */ s(Ye, { margin: "dense", fullWidth: n, variant: "standard", children: /* @__PURE__ */ s(Je, { direction: "row", spacing: t, alignItems: r, children: e }) });
540
543
  }
541
- const Tt = W("input")(({ variant: e, theme: n }) => ({
544
+ const ar = V("input")(({ variant: e, theme: n }) => ({
542
545
  ...n.typography[e]
543
- })), _t = W("span")(({ variant: e, theme: n }) => ({
546
+ })), ir = V("span")(({ variant: e, theme: n }) => ({
544
547
  ...n.typography[e]
545
548
  }));
546
- function At({ value: e, onChange: n, ariaLabel: t = void 0, variant: r = "body1" }) {
547
- const a = $e(null), [i, f] = A(e), d = F(
548
- (g) => f(g.target.value),
549
+ function sr({ value: e, onChange: n, ariaLabel: t = void 0, variant: r = "body1" }) {
550
+ const a = Ke(null), [l, u] = U(e), d = w(
551
+ (g) => u(g.target.value),
549
552
  []
550
- ), l = F(
553
+ ), i = w(
551
554
  (g) => {
552
- (g.key === "Enter" || g.key === "Escape") && (g.key === "Escape" && (f(e), g.currentTarget.value = e), g.currentTarget.blur());
555
+ (g.key === "Enter" || g.key === "Escape") && (g.key === "Escape" && (u(e), g.currentTarget.value = e), g.currentTarget.blur());
553
556
  },
554
557
  [e]
555
- ), s = F(
558
+ ), o = w(
556
559
  (g) => {
557
560
  n(g.target.value);
558
561
  },
559
562
  [n]
560
563
  );
561
- return k(() => {
564
+ return z(() => {
562
565
  var g;
563
566
  (g = a.current) == null || g.focus();
564
- }, []), /* @__PURE__ */ c(
565
- Tt,
567
+ }, []), /* @__PURE__ */ s(
568
+ ar,
566
569
  {
567
570
  ref: a,
568
571
  variant: r ?? "body1",
569
572
  type: "text",
570
573
  "aria-label": t,
571
- value: i,
574
+ value: l,
572
575
  onChange: d,
573
- onKeyDown: l,
574
- onBlur: s
576
+ onKeyDown: i,
577
+ onBlur: o
575
578
  }
576
579
  );
577
580
  }
578
- function tr({ editMode: e, value: n, onValueChange: t, ariaLabel: r = void 0, variant: a = "body1" }) {
579
- return /* @__PURE__ */ L(J, { children: [
580
- e && /* @__PURE__ */ c(At, { ariaLabel: r, value: n, onChange: t, variant: a }),
581
- !e && /* @__PURE__ */ c(_t, { variant: a ?? "body1", children: n })
581
+ function Ur({ editMode: e, value: n, onValueChange: t, ariaLabel: r = void 0, variant: a = "body1" }) {
582
+ return /* @__PURE__ */ T(ce, { children: [
583
+ e && /* @__PURE__ */ s(sr, { ariaLabel: r, value: n, onChange: t, variant: a }),
584
+ !e && /* @__PURE__ */ s(ir, { variant: a ?? "body1", children: n })
582
585
  ] });
583
586
  }
584
- function Lt({
587
+ function lr({
585
588
  id: e = void 0,
586
589
  label: n = void 0,
587
590
  helperText: t = "",
588
591
  value: r,
589
592
  onChange: a = void 0,
590
- onBlur: i = void 0,
591
- disabled: f = !1,
593
+ onBlur: l = void 0,
594
+ disabled: u = !1,
592
595
  error: d = !1,
593
- required: l = !1,
594
- margin: s = "dense",
596
+ required: i = !1,
597
+ margin: o = "dense",
595
598
  size: g = "small",
596
- fullWidth: x = !1,
597
- inputMode: y = void 0,
598
- pattern: C = void 0,
599
- startAdornment: S = void 0,
600
- endAdornment: I = void 0,
601
- sx: w = void 0,
602
- sxStartAdornment: T = void 0,
603
- sxEndAdornment: N = void 0
599
+ fullWidth: c = !1,
600
+ inputMode: I = void 0,
601
+ pattern: N = void 0,
602
+ startAdornment: m = void 0,
603
+ endAdornment: f = void 0,
604
+ sx: h = void 0,
605
+ sxStartAdornment: F = void 0,
606
+ sxEndAdornment: p = void 0
604
607
  }) {
605
- const m = F(
606
- (M) => {
607
- a && a(M.target.value);
608
+ const L = w(
609
+ (b) => {
610
+ a && a(b.target.value);
608
611
  },
609
612
  [a]
610
- ), h = F((M) => {
611
- if (M.key === "Enter" && !M.ctrlKey && !M.altKey && !M.shiftKey) {
612
- M.preventDefault(), M.stopPropagation(), document.activeElement instanceof HTMLElement && document.activeElement.blur();
613
+ ), S = w((b) => {
614
+ if (b.key === "Enter" && !b.ctrlKey && !b.altKey && !b.shiftKey) {
615
+ b.preventDefault(), b.stopPropagation(), document.activeElement instanceof HTMLElement && document.activeElement.blur();
613
616
  return;
614
617
  }
615
- }, []), v = T ?? { marginBottom: 1 }, o = N ?? { marginBottom: 1 };
616
- return /* @__PURE__ */ c(
617
- Ge,
618
+ }, []), v = F ?? { marginBottom: 1 }, M = p ?? { marginBottom: 1 };
619
+ return /* @__PURE__ */ s(
620
+ Ze,
618
621
  {
619
622
  id: e,
620
623
  "aria-label": e,
621
624
  type: "text",
622
625
  label: n,
623
626
  helperText: t,
624
- margin: s,
627
+ margin: o,
625
628
  size: g,
626
- fullWidth: x,
629
+ fullWidth: c,
627
630
  variant: "standard",
628
631
  value: r,
629
- onChange: m,
630
- onBlur: i,
631
- disabled: f,
632
- "aria-disabled": f,
632
+ onChange: L,
633
+ onBlur: l,
634
+ disabled: u,
635
+ "aria-disabled": u,
633
636
  error: d,
634
- required: l,
637
+ required: i,
635
638
  slotProps: {
636
639
  input: {
637
- startAdornment: S ? /* @__PURE__ */ c(he, { position: "start", sx: { ...v }, children: S }) : null,
638
- endAdornment: I ? /* @__PURE__ */ c(he, { position: "end", sx: { ...o }, children: I }) : null
640
+ startAdornment: m ? /* @__PURE__ */ s(Ee, { position: "start", sx: { ...v }, children: m }) : null,
641
+ endAdornment: f ? /* @__PURE__ */ s(Ee, { position: "end", sx: { ...M }, children: f }) : null
639
642
  },
640
643
  htmlInput: {
641
- inputMode: y,
642
- pattern: C
644
+ inputMode: I,
645
+ pattern: N
643
646
  }
644
647
  },
645
- sx: w,
646
- onKeyDown: h
648
+ sx: h,
649
+ onKeyDown: S
647
650
  }
648
651
  );
649
652
  }
650
- function G({
653
+ function re({
651
654
  id: e,
652
655
  label: n = void 0,
653
656
  helperText: t = "",
654
657
  value: r,
655
658
  onChange: a = void 0,
656
- onBlur: i = void 0,
657
- disabled: f = !1,
659
+ onBlur: l = void 0,
660
+ disabled: u = !1,
658
661
  required: d = !1,
659
- margin: l = "dense",
660
- size: s = "small",
662
+ margin: i = "dense",
663
+ size: o = "small",
661
664
  fullWidth: g = !1,
662
- inputMode: x = void 0,
663
- pattern: y = void 0,
664
- startAdornment: C = void 0,
665
- endAdornment: S = void 0,
666
- sx: I = void 0,
667
- sxStartAdornment: w = void 0,
668
- sxEndAdornment: T = void 0,
669
- error: N = void 0,
670
- onErrorChange: m = void 0,
671
- onValidate: h = void 0,
672
- numberType: v = "int",
673
- minValue: o = void 0,
674
- maxValue: M = void 0
665
+ inputMode: c = void 0,
666
+ pattern: I = void 0,
667
+ startAdornment: N = void 0,
668
+ endAdornment: m = void 0,
669
+ sx: f = void 0,
670
+ sxStartAdornment: h = void 0,
671
+ sxEndAdornment: F = void 0,
672
+ error: p = void 0,
673
+ onErrorChange: L = void 0,
674
+ onValidate: S = void 0,
675
+ numberType: v = void 0,
676
+ minValue: M = void 0,
677
+ maxValue: b = void 0
675
678
  }) {
676
- const [E, P] = A(r), [_, B] = A(N !== void 0 ? N : !1);
677
- k(() => {
678
- P((u) => r !== u ? r : u);
679
- }, [r]), k(() => {
680
- B((u) => N !== void 0 && N !== u ? N : u);
681
- }, [N]);
682
- const z = F(
683
- (u) => {
684
- const $ = Number.parseInt(u, u.startsWith("0x") ? 16 : 10);
685
- let b = Number.isNaN($);
686
- return b || (b = o !== void 0 && $ < o), b || (b = M !== void 0 && $ > M), { val: u, err: b };
679
+ const [$, R] = U(r), [k, _] = U(p !== void 0 ? p : !1);
680
+ z(() => {
681
+ R((x) => r !== x ? r : x);
682
+ }, [r]), z(() => {
683
+ _((x) => p !== void 0 && p !== x ? p : x);
684
+ }, [p]);
685
+ const W = w(
686
+ (x) => {
687
+ const B = Number.parseInt(x, x.startsWith("0x") ? 16 : 10);
688
+ let y = Number.isNaN(B);
689
+ return y || (y = M !== void 0 && B < M), y || (y = b !== void 0 && B > b), { val: x, err: y };
687
690
  },
688
- [M, o]
689
- ), K = F(
690
- (u) => {
691
- let $ = !1;
692
- if (u.endsWith(",") || u.endsWith("."))
693
- return $ = !0, { val: u, err: $ };
694
- const b = Number.parseFloat(u.replace(",", "."));
695
- return $ = Number.isNaN(b), $ || ($ = o !== void 0 && b < o), $ || ($ = M !== void 0 && b > M), { val: b.toString(), err: $ };
691
+ [b, M]
692
+ ), j = w(
693
+ (x) => {
694
+ let B = !1;
695
+ if (x.endsWith(",") || x.endsWith("."))
696
+ return B = !0, { val: x, err: B };
697
+ const y = Number.parseFloat(x.replace(",", "."));
698
+ return B = Number.isNaN(y), B || (B = M !== void 0 && y < M), B || (B = b !== void 0 && y > b), { val: y.toString(), err: B };
696
699
  },
697
- [M, o]
698
- ), X = F(
699
- (u) => v === "int" ? z(u) : K(u),
700
- [v, K, z]
701
- ), D = F(
702
- (u, $) => {
703
- let b = u, O = !1;
704
- return !d && (b === void 0 || b === "") ? { val: b, err: O } : (v !== void 0 && ({ val: b, err: O } = X(u)), !O && h && ({ val: b, err: O } = h(b, $)), { val: b, err: O });
700
+ [b, M]
701
+ ), X = w(
702
+ (x) => v === "int" ? W(x) : j(x),
703
+ [v, j, W]
704
+ ), P = w(
705
+ (x, B) => {
706
+ let y = x, D = !1;
707
+ return !d && (y === void 0 || y === "") ? { val: y, err: D } : (v !== void 0 && ({ val: y, err: D } = X(x)), !D && S && ({ val: y, err: D } = S(y, B)), { val: y, err: D });
705
708
  },
706
- [h, X]
707
- ), R = F(
708
- (u) => {
709
- const { val: $, err: b } = D(u, "change");
710
- (N === void 0 || N === !1) && B(b), P(b ? u : $), !b && a && a($);
709
+ [S, X]
710
+ ), A = w(
711
+ (x) => {
712
+ const { val: B, err: y } = P(x, "change");
713
+ _(y), R(y ? x : B), !y && a && a(B);
711
714
  },
712
- [a, D]
713
- ), p = F(() => {
714
- const { val: u, err: $ } = D(E, "blur");
715
- (N === void 0 || N === !1) && B($), !$ && i && i(u);
716
- }, [i, D, E]);
717
- return k(() => {
718
- m && m(_);
719
- }, [_, m]), /* @__PURE__ */ c(
720
- Lt,
715
+ [a, P]
716
+ ), C = w(() => {
717
+ const { val: x, err: B } = P($, "blur");
718
+ _(B), !B && l && l(x);
719
+ }, [l, P, $]);
720
+ return z(() => {
721
+ L && L(k);
722
+ }, [k, L]), z(() => {
723
+ let x = !1;
724
+ u || (x = P($, "blur").err), _(x);
725
+ }, [u]), /* @__PURE__ */ s(
726
+ lr,
721
727
  {
722
728
  id: e,
723
729
  label: n,
724
730
  helperText: t,
725
- value: E,
726
- onChange: R,
727
- onBlur: p,
728
- disabled: f,
729
- error: _,
731
+ value: $,
732
+ onChange: A,
733
+ onBlur: C,
734
+ disabled: u,
735
+ error: k,
730
736
  required: d,
731
- margin: l,
732
- size: s,
737
+ margin: i,
738
+ size: o,
733
739
  fullWidth: g,
734
- inputMode: x,
735
- pattern: y,
736
- startAdornment: C,
737
- endAdornment: S,
738
- sx: I,
739
- sxStartAdornment: w,
740
- sxEndAdornment: T
740
+ inputMode: c,
741
+ pattern: I,
742
+ startAdornment: N,
743
+ endAdornment: m,
744
+ sx: f,
745
+ sxStartAdornment: h,
746
+ sxEndAdornment: F
741
747
  }
742
748
  );
743
749
  }
744
- function rr({
750
+ function yr({
745
751
  minValue: e,
746
752
  maxValue: n,
747
753
  onChange: t = void 0,
748
754
  onBlur: r = void 0,
749
755
  minError: a = void 0,
750
- onMinErrorChange: i = void 0,
751
- maxError: f = void 0,
756
+ onMinErrorChange: l = void 0,
757
+ maxError: u = void 0,
752
758
  onMaxErrorChange: d = void 0,
753
- onMinValidate: l = void 0,
754
- onMaxValidate: s = void 0,
759
+ onMinValidate: i = void 0,
760
+ onMaxValidate: o = void 0,
755
761
  minDisabled: g = !1,
756
- maxDisabled: x = !1,
757
- unit: y = void 0,
758
- lowerLimit: C = void 0,
759
- upperLimit: S = void 0
762
+ maxDisabled: c = !1,
763
+ unit: I = void 0,
764
+ lowerLimit: N = void 0,
765
+ upperLimit: m = void 0
760
766
  }) {
761
- const I = H(), w = Number.parseInt(e), T = Number.parseInt(n), [N, m] = A(e.toString()), [h, v] = A(n.toString()), [o, M] = A(
762
- a === !0 || Number.isNaN(w) || w < (C ?? 0) || S && w > S || !Number.isNaN(T) && w >= T
763
- ), [E, P] = A(
764
- f === !0 || Number.isNaN(T) || T < (C ?? 0) || S && T > S || !Number.isNaN(w) && w >= T
767
+ const f = ne(), h = Number.parseInt(e), F = Number.parseInt(n), [p, L] = U(e.toString()), [S, v] = U(n.toString()), [M, b] = U(
768
+ a === !0 || Number.isNaN(h) || h < (N ?? 0) || m && h > m || !Number.isNaN(F) && h >= F
769
+ ), [$, R] = U(
770
+ u === !0 || Number.isNaN(F) || F < (N ?? 0) || m && F > m || !Number.isNaN(h) && h >= F
765
771
  );
766
- k(() => {
767
- m((R) => e.toString() !== R ? e.toString() : R);
768
- }, [e]), k(() => {
769
- M((R) => a !== void 0 && a !== R ? a : R);
770
- }, [a]), k(() => {
771
- v((R) => n.toString() !== R ? n.toString() : R);
772
- }, [n]), k(() => {
773
- P((R) => f !== void 0 && f !== R ? f : R);
774
- }, [f]);
775
- const _ = F(
776
- (R) => {
777
- const p = Number.parseInt(R, R.startsWith("0x") ? 16 : 10), u = Number.parseInt(h), $ = Number.isNaN(p) || p < (C ?? 0) || S && p > S || !Number.isNaN(u) && p >= u;
778
- return { val: R, err: $ };
772
+ z(() => {
773
+ L((A) => e.toString() !== A ? e.toString() : A);
774
+ }, [e]), z(() => {
775
+ b((A) => a !== void 0 && a !== A ? a : A);
776
+ }, [a]), z(() => {
777
+ v((A) => n.toString() !== A ? n.toString() : A);
778
+ }, [n]), z(() => {
779
+ R((A) => u !== void 0 && u !== A ? u : A);
780
+ }, [u]);
781
+ const k = w(
782
+ (A) => {
783
+ const C = Number.parseInt(A, A.startsWith("0x") ? 16 : 10), x = Number.parseInt(S), B = Number.isNaN(C) || C < (N ?? 0) || m && C > m || !Number.isNaN(x) && C >= x;
784
+ return { val: A, err: B };
779
785
  },
780
- [h, C, S]
781
- ), B = F(
782
- (R) => {
783
- const p = Number.parseInt(R, R.startsWith("0x") ? 16 : 10), u = Number.parseInt(N), $ = Number.isNaN(p) || p < (C ?? 0) || S && p > S || !Number.isNaN(u) && u >= p;
784
- return { val: R, err: $ };
786
+ [S, N, m]
787
+ ), _ = w(
788
+ (A) => {
789
+ const C = Number.parseInt(A, A.startsWith("0x") ? 16 : 10), x = Number.parseInt(p), B = Number.isNaN(C) || C < (N ?? 0) || m && C > m || !Number.isNaN(x) && x >= C;
790
+ return { val: A, err: B };
785
791
  },
786
- [N, C, S]
787
- ), z = F(
788
- (R) => {
789
- let { val: p, err: u } = _(R);
790
- if (!u && l && ({ val: p, err: u } = l(R, "change")), (a === void 0 || a === !1) && M(u), u)
791
- t && t(R, h);
792
+ [p, N, m]
793
+ ), W = w(
794
+ (A) => {
795
+ let { val: C, err: x } = k(A);
796
+ if (!x && i && ({ val: C, err: x } = i(A, "change")), (a === void 0 || a === !1) && b(x), x)
797
+ t && t(A, S);
792
798
  else {
793
- const $ = Number.parseInt(p, p.startsWith("0x") ? 16 : 10).toString();
794
- m($), t && t($, h);
799
+ const B = Number.parseInt(C, C.startsWith("0x") ? 16 : 10).toString();
800
+ L(B), t && t(B, S);
795
801
  }
796
802
  },
797
- [_, l, a, t, h]
798
- ), K = F(
799
- (R) => {
800
- let { val: p, err: u } = _(R);
801
- !u && l && ({ val: p, err: u } = l(p, "blur")), M(u), !u && r && r(p, h);
803
+ [k, i, a, t, S]
804
+ ), j = w(
805
+ (A) => {
806
+ let { val: C, err: x } = k(A);
807
+ !x && i && ({ val: C, err: x } = i(C, "blur")), b(x), !x && r && r(C, S);
802
808
  },
803
- [_, l, r, h]
804
- ), X = F(
805
- (R) => {
806
- let { val: p, err: u } = B(R);
807
- if (!u && s && ({ val: p, err: u } = s(R, "change")), (f === void 0 || f === !1) && P(u), u)
808
- t && t(N, R);
809
+ [k, i, r, S]
810
+ ), X = w(
811
+ (A) => {
812
+ let { val: C, err: x } = _(A);
813
+ if (!x && o && ({ val: C, err: x } = o(A, "change")), (u === void 0 || u === !1) && R(x), x)
814
+ t && t(p, A);
809
815
  else {
810
- const $ = Number.parseInt(p, p.startsWith("0x") ? 16 : 10).toString();
811
- v($), t && t(N, $);
816
+ const B = Number.parseInt(C, C.startsWith("0x") ? 16 : 10).toString();
817
+ v(B), t && t(p, B);
812
818
  }
813
819
  },
814
- [B, s, f, t, N]
815
- ), D = F(
816
- (R) => {
817
- let { val: p, err: u } = B(R);
818
- !u && s && ({ val: p, err: u } = s(p, "blur")), P(u), !u && r && r(N, p);
820
+ [_, o, u, t, p]
821
+ ), P = w(
822
+ (A) => {
823
+ let { val: C, err: x } = _(A);
824
+ !x && o && ({ val: C, err: x } = o(C, "blur")), R(x), !x && r && r(p, C);
819
825
  },
820
- [B, s, r, N]
826
+ [_, o, r, p]
821
827
  );
822
- return k(() => {
823
- i && i(o), d && d(E);
824
- }, [E, o, d, i]), /* @__PURE__ */ L(J, { children: [
825
- /* @__PURE__ */ c(
826
- G,
828
+ return z(() => {
829
+ l && l(M), d && d($);
830
+ }, [$, M, d, l]), /* @__PURE__ */ T(ce, { children: [
831
+ /* @__PURE__ */ s(
832
+ re,
827
833
  {
828
834
  id: "min-value",
829
835
  disabled: g,
830
836
  inputMode: "numeric",
831
837
  fullWidth: !0,
832
- value: N,
833
- onChange: z,
834
- onBlur: K,
835
- startAdornment: I.getString("LabelFrom"),
836
- endAdornment: y,
838
+ value: p,
839
+ onChange: W,
840
+ onBlur: j,
841
+ startAdornment: f.getString("LabelFrom"),
842
+ endAdornment: I,
837
843
  numberType: "int",
838
- error: o,
839
- onErrorChange: M
844
+ error: M,
845
+ onErrorChange: b
840
846
  }
841
847
  ),
842
- /* @__PURE__ */ c(
843
- G,
848
+ /* @__PURE__ */ s(
849
+ re,
844
850
  {
845
851
  id: "max-value",
846
- disabled: x,
852
+ disabled: c,
847
853
  inputMode: "numeric",
848
854
  fullWidth: !0,
849
- value: h,
855
+ value: S,
850
856
  onChange: X,
851
- onBlur: D,
852
- startAdornment: I.getString("LabelTo"),
853
- endAdornment: y,
857
+ onBlur: P,
858
+ startAdornment: f.getString("LabelTo"),
859
+ endAdornment: I,
854
860
  numberType: "int",
855
- error: E,
856
- onErrorChange: P
861
+ error: $,
862
+ onErrorChange: R
857
863
  }
858
864
  )
859
865
  ] });
860
866
  }
861
- function ie({
867
+ function fe({
862
868
  id: e = void 0,
863
869
  label: n,
864
870
  value: t,
865
871
  disabled: r = !1,
866
872
  size: a = "small",
867
- sx: i = void 0
873
+ sx: l = void 0
868
874
  }) {
869
- return /* @__PURE__ */ c(
870
- Fe,
875
+ return /* @__PURE__ */ s(
876
+ Qe,
871
877
  {
872
878
  id: e,
873
879
  "aria-label": e,
874
880
  value: t,
875
881
  disabled: r,
876
882
  "aria-disabled": r,
877
- control: /* @__PURE__ */ c(qe, { size: a }),
883
+ control: /* @__PURE__ */ s(Cn, { size: a }),
878
884
  label: n,
879
885
  componentsProps: { typography: { noWrap: !0 } },
880
- sx: i
886
+ sx: l
881
887
  }
882
888
  );
883
889
  }
884
- function Et({
890
+ function fn({
885
891
  children: e,
886
892
  id: n = void 0,
887
893
  value: t,
888
894
  onChange: r
889
895
  }) {
890
- return /* @__PURE__ */ c(Ye, { id: n, "aria-label": n, value: t, onChange: (a, i) => r(i), children: e });
896
+ return /* @__PURE__ */ s(In, { id: n, "aria-label": n, value: t, onChange: (a, l) => r(l), children: e });
891
897
  }
892
- const Bt = W(Q, {
898
+ const dr = V(xe, {
893
899
  shouldForwardProp: (e) => e !== "collapsed"
894
900
  })(({ collapsed: e, theme: n }) => ({
895
901
  paddingTop: e ? "4px" : "8px",
@@ -900,192 +906,483 @@ const Bt = W(Q, {
900
906
  "&:hover, &:focus-within": {
901
907
  background: n.palette.action.hover
902
908
  }
903
- })), je = W("span")(({ theme: e }) => ({
909
+ })), gn = V("span")(({ theme: e }) => ({
904
910
  color: e.palette.divider
905
- })), Ot = W(je)(() => ({
911
+ })), or = V(gn)(() => ({
906
912
  "&:hover": {
907
913
  cursor: "pointer"
908
914
  }
909
- })), kt = W(we)(({ theme: e }) => ({
915
+ })), ur = V(Xe)(({ theme: e }) => ({
910
916
  color: e.palette.divider,
911
917
  padding: "0px"
912
918
  }));
913
- function fe({
919
+ function me({
914
920
  textAlign: e = "left",
915
921
  text: n = void 0,
916
922
  summary: t = void 0,
917
923
  children: r = void 0,
918
924
  collapsible: a = !1,
919
- collapsed: i = !1,
920
- collapsedChange: f = void 0
925
+ collapsed: l = !1,
926
+ collapsedChange: u = void 0
921
927
  }) {
922
- const d = We(), l = H(), [s, g] = A(i);
923
- k(() => g(i), [i]);
924
- const x = F(
925
- (y) => {
926
- f ? f(y) : g(y);
928
+ const d = hn(), i = ne(), [o, g] = U(l);
929
+ z(() => g(l), [l]);
930
+ const c = w(
931
+ (I) => {
932
+ u ? u(I) : g(I);
927
933
  },
928
- [f]
934
+ [u]
929
935
  );
930
- return /* @__PURE__ */ L(Bt, { collapsed: s, children: [
931
- n && /* @__PURE__ */ c(He, { textAlign: e, variant: "fullWidth", children: a ? /* @__PURE__ */ L(Re, { direction: "row", spacing: 1, alignItems: "center", children: [
932
- /* @__PURE__ */ L(Ot, { onClick: () => x(!s), children: [
936
+ return /* @__PURE__ */ T(dr, { collapsed: o, children: [
937
+ n && /* @__PURE__ */ s($n, { textAlign: e, variant: "fullWidth", children: a ? /* @__PURE__ */ T(Je, { direction: "row", spacing: 1, alignItems: "center", children: [
938
+ /* @__PURE__ */ T(or, { onClick: () => c(!o), children: [
933
939
  n.toLocaleUpperCase(d),
934
- s && t ? ` (${t})` : ""
940
+ o && t ? ` (${t})` : ""
935
941
  ] }),
936
- /* @__PURE__ */ c(
937
- ne,
942
+ /* @__PURE__ */ s(
943
+ Se,
938
944
  {
939
- title: s ? l == null ? void 0 : l.getString("TooltipExpandSection", n) : l == null ? void 0 : l.getString("TooltipCollapseSection", n),
940
- children: /* @__PURE__ */ c(kt, { onClick: () => x(!s), children: s ? /* @__PURE__ */ c(_e, {}) : /* @__PURE__ */ c(fn, {}) })
945
+ title: o ? i == null ? void 0 : i.getString("TooltipExpandSection", n) : i == null ? void 0 : i.getString("TooltipCollapseSection", n),
946
+ children: /* @__PURE__ */ s(ur, { onClick: () => c(!o), children: o ? /* @__PURE__ */ s(tn, {}) : /* @__PURE__ */ s(Dn, {}) })
941
947
  }
942
948
  )
943
- ] }) : /* @__PURE__ */ c(je, { children: n.toLocaleUpperCase(d) }) }),
944
- !s && r
949
+ ] }) : /* @__PURE__ */ s(gn, { children: n.toLocaleUpperCase(d) }) }),
950
+ !o && r
945
951
  ] });
946
952
  }
947
- function Ie({
953
+ function Me({
948
954
  id: e,
949
955
  label: n,
950
956
  showLabel: t = !1,
951
957
  helperText: r = "",
952
958
  options: a,
953
- value: i,
954
- onChange: f,
959
+ value: l,
960
+ onChange: u,
955
961
  disabled: d = !1,
956
- required: l = !1,
957
- margin: s = "dense",
962
+ required: i = !1,
963
+ margin: o = "dense",
958
964
  size: g = "small",
959
- fullWidth: x = !1,
960
- minWidth: y = void 0,
961
- prefixTextWithValue: C = !1
965
+ fullWidth: c = !1,
966
+ minWidth: I = void 0,
967
+ prefixTextWithValue: N = !1
962
968
  }) {
963
- const S = F(
964
- (m) => {
965
- typeof m.target.value == "string" ? f("") : f(m.target.value);
969
+ const m = w(
970
+ (L) => {
971
+ typeof L.target.value == "string" ? u("") : u(L.target.value);
966
972
  },
967
- [f]
968
- ), I = F(
969
- (m) => m.map((h) => /* @__PURE__ */ c(se, { "aria-label": `menu-item-${h.value}`, value: h.value, children: C ? `${h.value} - ${h.displayText}` : h.displayText }, h.value)),
970
- [C]
971
- ), w = F(
972
- (m, h) => {
973
+ [u]
974
+ ), f = w(
975
+ (L) => L.map((S) => /* @__PURE__ */ s(We, { "aria-label": `menu-item-${S.value}`, value: S.value, children: N ? `${S.value} - ${S.displayText}` : S.displayText }, S.value)),
976
+ [N]
977
+ ), h = w(
978
+ (L, S) => {
973
979
  const v = [
974
- /* @__PURE__ */ c(Ve, { color: "primary", children: m }, m)
980
+ /* @__PURE__ */ s(wn, { color: "primary", children: L }, L)
975
981
  ];
976
- return v.push(...I(h)), v;
982
+ return v.push(...f(S)), v;
977
983
  },
978
- [I]
979
- ), T = F(
980
- (m) => {
981
- const h = [];
982
- return m.forEach((v, o) => {
983
- h.push(...w(o, v));
984
- }), h;
984
+ [f]
985
+ ), F = w(
986
+ (L) => {
987
+ const S = [];
988
+ return L.forEach((v, M) => {
989
+ S.push(...h(M, v));
990
+ }), S;
985
991
  },
986
- [w]
987
- ), N = F(
988
- (m) => {
989
- let h = "";
992
+ [h]
993
+ ), p = w(
994
+ (L) => {
995
+ let S = "";
990
996
  if (a instanceof Map)
991
- a.forEach((v, o) => {
992
- if (h === "") {
993
- const M = v.find((E) => E.value === m);
994
- M && (h = C ? `${M.value} - ${o} - ${M.displayText}` : `${o} - ${M.displayText}`);
997
+ a.forEach((v, M) => {
998
+ if (S === "") {
999
+ const b = v.find(($) => $.value === L);
1000
+ b && (S = N ? `${b.value} - ${M} - ${b.displayText}` : `${M} - ${b.displayText}`);
995
1001
  }
996
1002
  });
997
1003
  else {
998
- const v = a.find((o) => o.value === m);
999
- v && (h = C ? `${v.value} - ${v.displayText}` : v.displayText);
1004
+ const v = a.find((M) => M.value === L);
1005
+ v && (S = N ? `${v.value} - ${v.displayText}` : v.displayText);
1000
1006
  }
1001
- return h === "" && (h = l ? `${n} *` : n), h;
1007
+ return S === "" && (S = i ? `${n} *` : n), S;
1002
1008
  },
1003
- [n, a, C, l]
1009
+ [n, a, N, i]
1004
1010
  );
1005
- return /* @__PURE__ */ L(Me, { fullWidth: x, variant: "standard", sx: { minWidth: y }, margin: s, size: g, children: [
1006
- t && /* @__PURE__ */ c(Je, { id: `${e}-label`, children: l ? `${n} *` : n }),
1007
- /* @__PURE__ */ L(
1008
- Qe,
1011
+ return /* @__PURE__ */ T(Ye, { fullWidth: c, variant: "standard", sx: { minWidth: I }, margin: o, size: g, children: [
1012
+ t && /* @__PURE__ */ s(Mn, { id: `${e}-label`, children: i ? `${n} *` : n }),
1013
+ /* @__PURE__ */ T(
1014
+ Fn,
1009
1015
  {
1010
1016
  labelId: `${e}-label`,
1011
1017
  "aria-label": e,
1012
1018
  id: e,
1013
- value: i,
1014
- renderValue: N,
1015
- onChange: S,
1019
+ value: l,
1020
+ renderValue: p,
1021
+ onChange: m,
1016
1022
  displayEmpty: !t,
1017
1023
  disabled: d,
1018
1024
  "aria-disabled": d,
1019
1025
  children: [
1020
- a instanceof Map && T(a),
1021
- a instanceof Array && I(a)
1026
+ a instanceof Map && F(a),
1027
+ a instanceof Array && f(a)
1022
1028
  ]
1023
1029
  }
1024
1030
  ),
1025
- r && /* @__PURE__ */ c(Ze, { children: r })
1031
+ r && /* @__PURE__ */ s(Ln, { children: r })
1032
+ ] });
1033
+ }
1034
+ const _e = (e) => {
1035
+ const [n, t] = U([]);
1036
+ return z(() => {
1037
+ const r = () => {
1038
+ qn(e).then((l) => {
1039
+ const u = [];
1040
+ for (let d = 0; d < l.length; d += 1) {
1041
+ let i;
1042
+ const o = l[d];
1043
+ if (o.messageQualifiedName !== void 0) {
1044
+ const g = o.messageQualifiedName.indexOf(".");
1045
+ if (g !== -1) {
1046
+ const c = o.messageQualifiedName.substring(0, g);
1047
+ i = u.find((I) => I.name === c), i || (i = { name: c, messages: [] }, u.push(i));
1048
+ }
1049
+ }
1050
+ i && i.messages.push(o);
1051
+ }
1052
+ return t(u), u;
1053
+ });
1054
+ }, a = Tn();
1055
+ return bn(a, "meas-setup-changed", r), r(), () => {
1056
+ pn(a, "meas-setup-changed");
1057
+ };
1058
+ }, [e]), n;
1059
+ };
1060
+ function Or({
1061
+ parentDialogTitle: e = void 0,
1062
+ open: n,
1063
+ onSelect: t,
1064
+ nodeIdentifier: r = void 0,
1065
+ onClose: a,
1066
+ modal: l = !1
1067
+ }) {
1068
+ const u = ne(), d = _e(r), i = O(
1069
+ () => e ? `${e} > ${u.getString("DialogHeaderSelectMessage")}` : u.getString("DialogHeaderSelectMessage"),
1070
+ [u, e]
1071
+ ), o = w(
1072
+ (c) => {
1073
+ if (c !== null)
1074
+ for (let I = 0; I < d.length; I += 1) {
1075
+ const m = d[I].messages.find((f) => f.messageQualifiedName === c);
1076
+ m && (t(m), a && a());
1077
+ }
1078
+ },
1079
+ [d, a, t]
1080
+ ), g = O(() => d.map((c) => c.name), [d]);
1081
+ return /* @__PURE__ */ T(
1082
+ Ve,
1083
+ {
1084
+ open: n,
1085
+ fullScreen: l !== !0,
1086
+ fullWidth: l === !0,
1087
+ maxWidth: l === !0 ? "md" : void 0,
1088
+ children: [
1089
+ /* @__PURE__ */ s(Ge, { className: "draggable", children: i }),
1090
+ /* @__PURE__ */ s(en, { dividers: !0, children: /* @__PURE__ */ s(
1091
+ rn,
1092
+ {
1093
+ "aria-label": "frame-selector",
1094
+ onSelectedItemsChange: (c, I) => o(I),
1095
+ multiSelect: !1,
1096
+ defaultExpandedItems: g,
1097
+ sx: { height: 400 },
1098
+ children: d.map((c) => /* @__PURE__ */ s(pe, { itemId: c.name, label: c.name, children: c.messages.map((I) => /* @__PURE__ */ s(pe, { itemId: I.messageQualifiedName, label: I.messageName }, I.messageQualifiedName)) }, c.name))
1099
+ }
1100
+ ) }),
1101
+ /* @__PURE__ */ s(Re, { children: /* @__PURE__ */ s(Z, { onClick: a, variant: "outlined", size: "large", children: u.getString("ButtonBack") }) })
1102
+ ]
1103
+ }
1104
+ );
1105
+ }
1106
+ function cr({
1107
+ parentDialogTitle: e = void 0,
1108
+ nodeIdentifier: n = void 0,
1109
+ open: t,
1110
+ multiSelect: r = !1,
1111
+ checkboxSelection: a = !1,
1112
+ onSelect: l = void 0,
1113
+ onMultiSelect: u = void 0,
1114
+ onClose: d,
1115
+ selectedMessages: i = void 0,
1116
+ selectedSignals: o = void 0
1117
+ }) {
1118
+ const g = ne(), c = _e(n), I = O(
1119
+ () => e ? `${e} > ${g.getString("DialogHeaderSelectSignal")}` : g.getString("DialogHeaderSelectSignal"),
1120
+ [g, e]
1121
+ ), [N, m] = U(() => i ? c.map((b) => b.messages.filter(($) => i.includes($.messageQualifiedName))).flat() : []);
1122
+ z(() => {
1123
+ if (i) {
1124
+ const b = c.map(($) => $.messages.filter((R) => i.includes(R.messageQualifiedName))).flat();
1125
+ m(b);
1126
+ }
1127
+ }, [i, c]);
1128
+ const [f, h] = U(() => o ? c.map(
1129
+ (b) => b.messages.filter(
1130
+ ($) => $.signals && $.signals.find((R) => o.includes(R.qualifiedName))
1131
+ )
1132
+ ).flat().map((b) => b.signals.filter(($) => o.includes($.qualifiedName))).flat() : []);
1133
+ z(() => {
1134
+ if (o) {
1135
+ const b = c.map(
1136
+ ($) => $.messages.filter(
1137
+ (R) => R.signals && R.signals.find((k) => o.includes(k.qualifiedName))
1138
+ )
1139
+ ).flat().map(($) => $.signals.filter((R) => o.includes(R.qualifiedName))).flat();
1140
+ h(b);
1141
+ }
1142
+ }, [o, c]);
1143
+ const [F, p] = U(!1), L = O(() => {
1144
+ if (r)
1145
+ return [
1146
+ ...N.map((b) => b.messageQualifiedName),
1147
+ ...f.map((b) => b.qualifiedName)
1148
+ ];
1149
+ }, [r, N, f]), S = w(
1150
+ (b) => {
1151
+ if (b === null)
1152
+ return;
1153
+ if (!r)
1154
+ for (let R = 0; R < c.length; R += 1) {
1155
+ const _ = c[R].messages.find(
1156
+ (W) => W.signals && W.signals.findIndex((j) => j.qualifiedName === b) !== -1
1157
+ );
1158
+ if (_ != null && _.signals) {
1159
+ const W = _.signals.find((j) => j.qualifiedName === b);
1160
+ if (W && l && (l(_, W), d)) {
1161
+ d();
1162
+ return;
1163
+ }
1164
+ }
1165
+ }
1166
+ let $ = [];
1167
+ m((R) => {
1168
+ let k = [];
1169
+ for (let _ = 0; _ < c.length; _ += 1) {
1170
+ const W = c[_], j = W.messages.filter(
1171
+ (C) => C.signals && C.signals.length > 0 && C.signals.every((x) => b.includes(x.qualifiedName))
1172
+ ), X = W.messages.filter(
1173
+ (C) => C.signals && C.signals.some((x) => b.includes(x.qualifiedName))
1174
+ );
1175
+ if (X) {
1176
+ const C = X.map((x) => x.signals).flat().filter((x) => b.includes(x.qualifiedName));
1177
+ C && (k = [...new Set(k.concat(j))], $ = [...new Set($.concat(C))]);
1178
+ }
1179
+ const P = W.messages.filter(
1180
+ (C) => C.signals.length > 0 && b.includes(C.messageQualifiedName) && !R.some((x) => x.messageQualifiedName === C.messageQualifiedName)
1181
+ );
1182
+ if (P.length > 0) {
1183
+ const C = P.map((x) => x.signals).flat();
1184
+ C && (k = [...new Set(k.concat(P))], $ = [...new Set($.concat(C))]);
1185
+ }
1186
+ const A = W.messages.filter(
1187
+ (C) => !b.includes(C.messageQualifiedName) && R.some((x) => x.messageQualifiedName === C.messageQualifiedName)
1188
+ );
1189
+ if (A.length > 0) {
1190
+ const C = A.map((x) => x.signals).flat();
1191
+ C && (k = k.filter(
1192
+ (x) => !A.some((B) => B.messageQualifiedName === x.messageQualifiedName)
1193
+ ), $ = $.filter(
1194
+ (x) => !C.some((B) => B.qualifiedName === x.qualifiedName)
1195
+ ));
1196
+ }
1197
+ }
1198
+ return k;
1199
+ }), h($);
1200
+ },
1201
+ [c, r, d, l]
1202
+ ), v = w(() => {
1203
+ u && (u(N, f), m([]), h([])), d && d();
1204
+ }, [d, u, N, f]);
1205
+ z(() => {
1206
+ p(f.length === 0);
1207
+ }, [f.length]);
1208
+ const M = O(() => {
1209
+ const b = c.map((R) => R.name), $ = c.map((R) => R.messages).flat().filter(
1210
+ (R) => R.signals && R.signals.some((k) => f.some((_) => _.qualifiedName === k.qualifiedName))
1211
+ ).map((R) => R.messageQualifiedName);
1212
+ return [...b, ...$];
1213
+ }, [c, f]);
1214
+ return /* @__PURE__ */ T(Ve, { open: t, fullScreen: !0, children: [
1215
+ /* @__PURE__ */ s(Ge, { className: "draggable", children: I }),
1216
+ /* @__PURE__ */ s(en, { dividers: !0, children: /* @__PURE__ */ s(
1217
+ rn,
1218
+ {
1219
+ "aria-label": "signal-selector",
1220
+ multiSelect: r,
1221
+ checkboxSelection: a,
1222
+ selectedItems: L,
1223
+ onSelectedItemsChange: (b, $) => S($),
1224
+ defaultExpandedItems: M,
1225
+ children: c.map((b) => /* @__PURE__ */ s(pe, { itemId: b.name, label: b.name, children: b.messages.map(($) => /* @__PURE__ */ s(pe, { itemId: $.messageQualifiedName, label: $.messageName, children: $.signals && $.signals.map((R) => /* @__PURE__ */ s(pe, { itemId: R.qualifiedName, label: R.name }, R.qualifiedName)) }, $.messageQualifiedName)) }, b.name))
1226
+ }
1227
+ ) }),
1228
+ r && /* @__PURE__ */ T(Re, { children: [
1229
+ /* @__PURE__ */ s(
1230
+ Z,
1231
+ {
1232
+ onClick: v,
1233
+ variant: "contained",
1234
+ size: "large",
1235
+ disabled: F,
1236
+ children: g.getString("ButtonSave")
1237
+ }
1238
+ ),
1239
+ /* @__PURE__ */ s(Z, { onClick: d, variant: "outlined", size: "large", children: g.getString("ButtonCancel") })
1240
+ ] }),
1241
+ !r && /* @__PURE__ */ s(Re, { children: /* @__PURE__ */ s(Z, { onClick: d, variant: "outlined", size: "large", children: g.getString("ButtonBack") }) })
1026
1242
  ] });
1027
1243
  }
1028
- const ar = W(Q)(({ height: e, width: n }) => ({
1244
+ function Pr({
1245
+ selectedSignals: e,
1246
+ onSelectedSignalseChange: n,
1247
+ onErrorsChange: t = void 0,
1248
+ signalFilterError: r = void 0,
1249
+ parentDialogTitle: a = void 0,
1250
+ nodeIdentifier: l = void 0,
1251
+ disabled: u = !1
1252
+ }) {
1253
+ const d = ne(), i = de(), o = Ne(i), g = _e(l), c = O(() => {
1254
+ const h = /* @__PURE__ */ new Set();
1255
+ return g.forEach((F) => {
1256
+ F.messages.forEach((p) => {
1257
+ p.signals.length > 0 && p.signals.every((L) => e.includes(L.qualifiedName)) && h.add(p.messageQualifiedName);
1258
+ });
1259
+ }), Array.from(h);
1260
+ }, [g, e]), I = w(
1261
+ (h, F) => {
1262
+ n(F.map((p) => p.qualifiedName));
1263
+ },
1264
+ [n]
1265
+ ), N = w(
1266
+ (h, F) => {
1267
+ n(F);
1268
+ },
1269
+ [n]
1270
+ );
1271
+ z(() => {
1272
+ r && (r.current = e.length === 0), t && t(e.length === 0);
1273
+ }, [t, e, r]);
1274
+ const [m, f] = U(!1);
1275
+ return /* @__PURE__ */ s(ce, { children: /* @__PURE__ */ T(ue, { children: [
1276
+ /* @__PURE__ */ s(
1277
+ Rn,
1278
+ {
1279
+ id: "selected-signals",
1280
+ multiple: !0,
1281
+ limitTags: 3,
1282
+ freeSolo: !0,
1283
+ options: [],
1284
+ value: e,
1285
+ renderInput: (h) => /* @__PURE__ */ s(Ze, { ...h, label: d.getString("LabelSelectedSignals") }),
1286
+ size: "small",
1287
+ fullWidth: !0,
1288
+ onChange: N,
1289
+ inputValue: ""
1290
+ }
1291
+ ),
1292
+ /* @__PURE__ */ s(oe, { columnItem: i, width: o, children: /* @__PURE__ */ s(Se, { title: d.getString("TooltipSelectSignals"), children: /* @__PURE__ */ s(
1293
+ Z,
1294
+ {
1295
+ disabled: u,
1296
+ onClick: () => f(!0),
1297
+ variant: "outlined",
1298
+ size: "large",
1299
+ children: d.getString("ButtonSelectSignals")
1300
+ }
1301
+ ) }) }),
1302
+ /* @__PURE__ */ s(
1303
+ cr,
1304
+ {
1305
+ parentDialogTitle: a,
1306
+ open: m,
1307
+ onClose: () => f(!1),
1308
+ nodeIdentifier: l,
1309
+ onMultiSelect: I,
1310
+ multiSelect: !0,
1311
+ selectedMessages: c,
1312
+ selectedSignals: e,
1313
+ checkboxSelection: !0
1314
+ }
1315
+ )
1316
+ ] }) });
1317
+ }
1318
+ const jr = V(xe)(({ height: e, width: n }) => ({
1029
1319
  height: e,
1030
1320
  width: n,
1031
1321
  padding: "4px",
1032
1322
  overflow: "auto"
1033
1323
  }));
1034
- function jt({ label: e, variant: n = "h6" }) {
1035
- return /* @__PURE__ */ c(an, { children: /* @__PURE__ */ c(Te, { sx: { flex: "1 1 100%" }, variant: n, id: "tableTitle", component: "div", children: e }) });
1324
+ function fr({ label: e, variant: n = "h6" }) {
1325
+ return /* @__PURE__ */ s(En, { children: /* @__PURE__ */ s(nn, { sx: { flex: "1 1 100%" }, variant: n, id: "tableTitle", component: "div", children: e }) });
1036
1326
  }
1037
- function lr({
1327
+ function Dr({
1038
1328
  data: e,
1039
1329
  dataKey: n,
1040
- selectedKey: t = void 0,
1041
- onClickRow: r = void 0,
1042
- columns: a,
1330
+ hasRemoveButton: t = !1,
1331
+ removeButtonTitle: r = void 0,
1332
+ onRemoveRow: a = void 0,
1333
+ selectedKey: l = void 0,
1334
+ onClickRow: u = void 0,
1335
+ columns: d,
1043
1336
  label: i = void 0,
1044
- labelVariant: f = "h6",
1045
- maxHeight: d = void 0,
1046
- size: l = "medium",
1047
- stickyHeader: s = !1,
1048
- hover: g = !1
1337
+ labelVariant: o = "h6",
1338
+ maxHeight: g = void 0,
1339
+ size: c = "medium",
1340
+ stickyHeader: I = !1,
1341
+ hover: N = !1
1049
1342
  }) {
1050
- const x = F(
1051
- (y) => {
1052
- r && r(y);
1343
+ const m = w(
1344
+ (f) => {
1345
+ u && u(f);
1053
1346
  },
1054
- [r]
1347
+ [u]
1055
1348
  );
1056
- return /* @__PURE__ */ L(Q, { children: [
1057
- i && /* @__PURE__ */ c(jt, { label: i, variant: f }),
1058
- /* @__PURE__ */ c(en, { children: /* @__PURE__ */ L(nn, { "aria-labelledby": "tableTitle", size: l, stickyHeader: s, sx: { maxHeight: d }, padding: "none", children: [
1059
- /* @__PURE__ */ c(tn, { children: /* @__PURE__ */ c(ge, { children: a.map((y) => (
1349
+ return /* @__PURE__ */ T(xe, { children: [
1350
+ i && /* @__PURE__ */ s(fr, { label: i, variant: o }),
1351
+ /* @__PURE__ */ s(Wn, { children: /* @__PURE__ */ T(An, { "aria-labelledby": "tableTitle", size: c, stickyHeader: I, sx: { maxHeight: g }, padding: "none", children: [
1352
+ /* @__PURE__ */ s(_n, { children: /* @__PURE__ */ s(Be, { children: d.map((f) => (
1060
1353
  // eslint-disable-next-line react/jsx-props-no-spreading
1061
- /* @__PURE__ */ c(be, { ...y.headProps, children: y.headCell }, y.key)
1354
+ /* @__PURE__ */ s(Fe, { ...f.headProps, children: f.headCell }, f.key)
1062
1355
  )) }) }),
1063
- /* @__PURE__ */ c(rn, { children: e.map((y) => {
1064
- const C = n(y);
1065
- return /* @__PURE__ */ c(ge, { hover: g, selected: C === t, onClick: () => x(y), children: a.map((S) => /* @__PURE__ */ c(
1066
- be,
1067
- {
1068
- ...S.dataProps,
1069
- children: S.dataCell(y)
1070
- },
1071
- `${C}-${S.key}`
1072
- )) }, C);
1356
+ /* @__PURE__ */ s(kn, { children: e.map((f) => {
1357
+ const h = n(f);
1358
+ return /* @__PURE__ */ s(Be, { hover: N, selected: h === l, children: d.map((F) => /* @__PURE__ */ T(Sn, { children: [
1359
+ /* @__PURE__ */ s(
1360
+ Fe,
1361
+ {
1362
+ onClick: () => m(f),
1363
+ ...F.dataProps,
1364
+ children: F.dataCell(f)
1365
+ },
1366
+ `${h}-${F.key}-project-file`
1367
+ ),
1368
+ t && /* @__PURE__ */ s(Fe, { children: /* @__PURE__ */ s(Z, { size: "small", title: r, onClick: () => a(f), children: /* @__PURE__ */ s(zn, { fontSize: "small" }) }) }, `${h}-${F.key}-remove-button`)
1369
+ ] }, `${h}-${F.key}`)) }, h);
1073
1370
  }) })
1074
1371
  ] }) })
1075
1372
  ] });
1076
1373
  }
1077
- const ir = W("div")(({ theme: e }) => ({
1374
+ const zr = V("div")(({ theme: e }) => ({
1078
1375
  borderBottom: "1px solid",
1079
1376
  borderColor: e.palette.divider
1080
- })), Pt = W(ln)(({ theme: e }) => ({
1081
- [`& .${me.grouped}`]: {
1377
+ })), gr = V(Bn)(({ theme: e }) => ({
1378
+ [`& .${Ue.grouped}`]: {
1082
1379
  margin: e.spacing(0.5),
1083
1380
  padding: e.spacing(1.25),
1084
1381
  minWidth: 24,
1085
1382
  color: e.palette.action.active,
1086
1383
  border: 0,
1087
1384
  borderRadius: e.shape.borderRadius,
1088
- [`&.${me.disabled}`]: {
1385
+ [`&.${Ue.disabled}`]: {
1089
1386
  border: 0
1090
1387
  }
1091
1388
  }
@@ -1093,89 +1390,89 @@ const ir = W("div")(({ theme: e }) => ({
1093
1390
  // marginLeft: -1,
1094
1391
  // borderLeft: '1px solid transparent',
1095
1392
  // },
1096
- })), Wt = W(on)(({ theme: e }) => ({
1097
- [`& .${Z.grouped}`]: {
1393
+ })), mr = V(Un)(({ theme: e }) => ({
1394
+ [`& .${Ce.grouped}`]: {
1098
1395
  margin: e.spacing(0.5),
1099
1396
  padding: e.spacing(1.25),
1100
1397
  minWidth: 24,
1101
1398
  color: e.palette.action.active,
1102
1399
  border: 0,
1103
1400
  borderRadius: e.shape.borderRadius,
1104
- [`&.${Z.disabled}`]: {
1401
+ [`&.${Ce.disabled}`]: {
1105
1402
  border: 0
1106
1403
  }
1107
1404
  },
1108
- [`& .${Z.middleButton},& .${Z.lastButton}`]: {
1405
+ [`& .${Ce.middleButton},& .${Ce.lastButton}`]: {
1109
1406
  marginLeft: -1,
1110
1407
  borderLeft: "1px solid transparent"
1111
1408
  }
1112
1409
  }));
1113
- function Pe({
1410
+ function mn({
1114
1411
  onClick: e,
1115
1412
  icon: n = void 0,
1116
1413
  text: t = void 0,
1117
1414
  size: r = "small",
1118
1415
  variant: a = void 0,
1119
- color: i = "inherit",
1120
- tooltip: f = void 0,
1416
+ color: l = "inherit",
1417
+ tooltip: u = void 0,
1121
1418
  ariaLabel: d = void 0,
1122
- children: l = void 0,
1123
- disabled: s = !1
1419
+ children: i = void 0,
1420
+ disabled: o = !1
1124
1421
  }) {
1125
- return l ? /* @__PURE__ */ c(
1126
- wt,
1422
+ return i ? /* @__PURE__ */ s(
1423
+ nr,
1127
1424
  {
1128
1425
  size: typeof r == "string" ? r : "small",
1129
1426
  variant: a,
1130
- color: i,
1427
+ color: l,
1131
1428
  startIcon: n,
1132
1429
  text: t,
1133
- disabled: s,
1134
- children: l
1430
+ disabled: o,
1431
+ children: i
1135
1432
  }
1136
- ) : t ? /* @__PURE__ */ L(
1137
- te,
1433
+ ) : t ? /* @__PURE__ */ T(
1434
+ Z,
1138
1435
  {
1139
1436
  size: typeof r == "string" ? r : "small",
1140
1437
  variant: a,
1141
- color: i,
1438
+ color: l,
1142
1439
  "aria-label": d,
1143
1440
  onClick: e,
1144
1441
  startIcon: n,
1145
- disabled: s,
1442
+ disabled: o,
1146
1443
  children: [
1147
- f && /* @__PURE__ */ c(ne, { placement: "bottom-start", title: f, children: /* @__PURE__ */ c("span", { children: t }) }),
1148
- !f && t
1444
+ u && /* @__PURE__ */ s(Se, { placement: "bottom-start", title: u, children: /* @__PURE__ */ s("span", { children: t }) }),
1445
+ !u && t
1149
1446
  ]
1150
1447
  }
1151
- ) : /* @__PURE__ */ L(
1152
- te,
1448
+ ) : /* @__PURE__ */ T(
1449
+ Z,
1153
1450
  {
1154
1451
  size: typeof r == "string" ? r : "small",
1155
1452
  variant: a,
1156
- color: i,
1453
+ color: l,
1157
1454
  "aria-label": d,
1158
1455
  onClick: e,
1159
- disabled: s,
1456
+ disabled: o,
1160
1457
  sx: {
1161
1458
  height: typeof r == "number" ? `${r}px` : void 0,
1162
1459
  width: typeof r == "number" ? `${r}px` : void 0
1163
1460
  },
1164
1461
  children: [
1165
- f && /* @__PURE__ */ c(ne, { placement: "bottom-start", title: f, children: /* @__PURE__ */ c("span", { children: n }) }),
1166
- !f && n
1462
+ u && /* @__PURE__ */ s(Se, { placement: "bottom-start", title: u, children: /* @__PURE__ */ s("span", { children: n }) }),
1463
+ !u && n
1167
1464
  ]
1168
1465
  }
1169
1466
  );
1170
1467
  }
1171
- function Dt({
1468
+ function hr({
1172
1469
  buttons: e,
1173
1470
  size: n = "small",
1174
1471
  ariaLabel: t = void 0,
1175
1472
  orientation: r = "horizontal"
1176
1473
  }) {
1177
- return /* @__PURE__ */ c(Wt, { size: n, "aria-label": t, orientation: r, children: e.map((a, i) => /* @__PURE__ */ c(
1178
- Pe,
1474
+ return /* @__PURE__ */ s(mr, { size: n, "aria-label": t, orientation: r, children: e.map((a, l) => /* @__PURE__ */ s(
1475
+ mn,
1179
1476
  {
1180
1477
  onClick: a.onClick,
1181
1478
  icon: a.icon,
@@ -1188,29 +1485,29 @@ function Dt({
1188
1485
  disabled: a.disabled,
1189
1486
  children: a.children
1190
1487
  },
1191
- i
1488
+ l
1192
1489
  )) });
1193
1490
  }
1194
- function Ut({
1491
+ function br({
1195
1492
  value: e,
1196
1493
  onChange: n,
1197
1494
  size: t = "small",
1198
1495
  ariaLabel: r = void 0,
1199
1496
  exclusive: a = void 0,
1200
- buttons: i,
1201
- orientation: f = "horizontal"
1497
+ buttons: l,
1498
+ orientation: u = "horizontal"
1202
1499
  }) {
1203
- return /* @__PURE__ */ c(
1204
- Pt,
1500
+ return /* @__PURE__ */ s(
1501
+ gr,
1205
1502
  {
1206
1503
  size: t,
1207
1504
  value: e,
1208
- onChange: (d, l) => n(l),
1505
+ onChange: (d, i) => n(i),
1209
1506
  "aria-label": r,
1210
1507
  exclusive: a,
1211
- orientation: f,
1212
- children: i.map((d, l) => /* @__PURE__ */ L(
1213
- sn,
1508
+ orientation: u,
1509
+ children: l.map((d, i) => /* @__PURE__ */ T(
1510
+ On,
1214
1511
  {
1215
1512
  size: typeof t == "string" ? t : "small",
1216
1513
  value: d.value,
@@ -1223,95 +1520,95 @@ function Ut({
1223
1520
  },
1224
1521
  disabled: d.disabled,
1225
1522
  children: [
1226
- d.tooltip && /* @__PURE__ */ c(ne, { placement: "bottom-start", title: d.tooltip, children: /* @__PURE__ */ c("span", { children: d.icon }) }),
1523
+ d.tooltip && /* @__PURE__ */ s(Se, { placement: "bottom-start", title: d.tooltip, children: /* @__PURE__ */ s("span", { children: d.icon }) }),
1227
1524
  !d.tooltip && d.icon
1228
1525
  ]
1229
1526
  },
1230
- l
1527
+ i
1231
1528
  ))
1232
1529
  }
1233
1530
  );
1234
1531
  }
1235
- function or({
1532
+ function Tr({
1236
1533
  items: e,
1237
1534
  height: n = 34,
1238
1535
  width: t = 34,
1239
1536
  justifyContent: r = "left",
1240
1537
  borderSize: a = 1,
1241
- padding: i = 1,
1242
- backgroundColor: f = void 0,
1538
+ padding: l = 1,
1539
+ backgroundColor: u = void 0,
1243
1540
  orientation: d = "horizontal"
1244
1541
  }) {
1245
- return /* @__PURE__ */ c(
1246
- dn,
1542
+ return /* @__PURE__ */ s(
1543
+ yn,
1247
1544
  {
1248
1545
  elevation: 0,
1249
1546
  sx: {
1250
1547
  display: "flex",
1251
1548
  alignItems: "center",
1252
1549
  justifyContent: r,
1253
- border: (l) => `${a}px solid ${l.palette.divider}`,
1550
+ border: (i) => `${a}px solid ${i.palette.divider}`,
1254
1551
  flexWrap: "wrap",
1255
1552
  height: d === "horizontal" ? `${n}px` : "100%",
1256
1553
  minHeight: d === "horizontal" ? `${n}px` : void 0,
1257
1554
  width: d === "vertical" ? `${t}px` : "100%",
1258
1555
  minWidth: d === "vertical" ? `${t}px` : void 0,
1259
- paddingLeft: d === "horizontal" ? i : 0,
1260
- paddingRight: d === "horizontal" ? i : 0,
1261
- paddingTop: d === "vertical" ? i : 0,
1262
- paddingBottom: d === "vertical" ? i : 0,
1556
+ paddingLeft: d === "horizontal" ? l : 0,
1557
+ paddingRight: d === "horizontal" ? l : 0,
1558
+ paddingTop: d === "vertical" ? l : 0,
1559
+ paddingBottom: d === "vertical" ? l : 0,
1263
1560
  borderRadius: "0px",
1264
- backgroundColor: f
1561
+ backgroundColor: u
1265
1562
  },
1266
- children: e.map((l, s) => l.label ? (
1563
+ children: e.map((i, o) => i.label ? (
1267
1564
  // eslint-disable-next-line react/no-array-index-key
1268
- /* @__PURE__ */ c(Te, { variant: l.label.variant, component: "div", children: l.label.text }, s)
1269
- ) : l.toggleButtonGroup ? /* @__PURE__ */ c(
1270
- Ut,
1565
+ /* @__PURE__ */ s(nn, { variant: i.label.variant, component: "div", children: i.label.text }, o)
1566
+ ) : i.toggleButtonGroup ? /* @__PURE__ */ s(
1567
+ br,
1271
1568
  {
1272
- value: l.toggleButtonGroup.value,
1273
- onChange: l.toggleButtonGroup.onChange,
1274
- ariaLabel: l.toggleButtonGroup.ariaLabel,
1275
- exclusive: l.toggleButtonGroup.exclusive,
1276
- buttons: l.toggleButtonGroup.buttons,
1569
+ value: i.toggleButtonGroup.value,
1570
+ onChange: i.toggleButtonGroup.onChange,
1571
+ ariaLabel: i.toggleButtonGroup.ariaLabel,
1572
+ exclusive: i.toggleButtonGroup.exclusive,
1573
+ buttons: i.toggleButtonGroup.buttons,
1277
1574
  orientation: d
1278
1575
  },
1279
- s
1280
- ) : l.button ? /* @__PURE__ */ c(
1281
- Pe,
1576
+ o
1577
+ ) : i.button ? /* @__PURE__ */ s(
1578
+ mn,
1282
1579
  {
1283
- onClick: l.button.onClick,
1284
- icon: l.button.icon,
1285
- text: l.button.text,
1286
- variant: l.button.variant,
1287
- color: l.button.color,
1288
- tooltip: l.button.tooltip,
1289
- ariaLabel: l.button.ariaLabel,
1290
- disabled: l.button.disabled
1580
+ onClick: i.button.onClick,
1581
+ icon: i.button.icon,
1582
+ text: i.button.text,
1583
+ variant: i.button.variant,
1584
+ color: i.button.color,
1585
+ tooltip: i.button.tooltip,
1586
+ ariaLabel: i.button.ariaLabel,
1587
+ disabled: i.button.disabled
1291
1588
  },
1292
- s
1293
- ) : l.buttonGroup ? (
1589
+ o
1590
+ ) : i.buttonGroup ? (
1294
1591
  // eslint-disable-next-line react/no-array-index-key
1295
- /* @__PURE__ */ c(
1296
- Dt,
1592
+ /* @__PURE__ */ s(
1593
+ hr,
1297
1594
  {
1298
- ariaLabel: l.buttonGroup.ariaLabel,
1299
- buttons: l.buttonGroup.buttons,
1595
+ ariaLabel: i.buttonGroup.ariaLabel,
1596
+ buttons: i.buttonGroup.buttons,
1300
1597
  orientation: d
1301
1598
  },
1302
- s
1599
+ o
1303
1600
  )
1304
- ) : l.other)
1601
+ ) : i.other)
1305
1602
  }
1306
1603
  );
1307
1604
  }
1308
- function dr({ options: e, onSelect: n, children: t = void 0 }) {
1309
- const [r, a] = oe.useState(null), i = F(
1310
- (l) => {
1311
- e.length !== 0 && (l.preventDefault(), a(
1605
+ function qr({ options: e, onSelect: n, children: t = void 0 }) {
1606
+ const [r, a] = we.useState(null), l = w(
1607
+ (i) => {
1608
+ e.length !== 0 && (i.preventDefault(), a(
1312
1609
  r === null ? {
1313
- mouseX: l.clientX + 2,
1314
- mouseY: l.clientY - 6
1610
+ mouseX: i.clientX + 2,
1611
+ mouseY: i.clientY - 6
1315
1612
  } : (
1316
1613
  // repeated contextmenu when it is already open closes it with Chrome 84 on Ubuntu
1317
1614
  // Other native context menus might behave different.
@@ -1321,439 +1618,474 @@ function dr({ options: e, onSelect: n, children: t = void 0 }) {
1321
1618
  ));
1322
1619
  },
1323
1620
  [r, e.length]
1324
- ), f = F(() => {
1621
+ ), u = w(() => {
1325
1622
  a(null);
1326
- }, []), d = F(
1327
- (l) => {
1328
- n(l), f();
1623
+ }, []), d = w(
1624
+ (i) => {
1625
+ n(i), u();
1329
1626
  },
1330
- [f, n]
1627
+ [u, n]
1331
1628
  );
1332
- return /* @__PURE__ */ L("div", { onContextMenu: i, style: { cursor: "context-menu" }, children: [
1629
+ return /* @__PURE__ */ T("div", { onContextMenu: l, style: { cursor: "context-menu" }, children: [
1333
1630
  t,
1334
- /* @__PURE__ */ c(
1335
- un,
1631
+ /* @__PURE__ */ s(
1632
+ Pn,
1336
1633
  {
1337
1634
  open: r !== null,
1338
- onClose: f,
1635
+ onClose: u,
1339
1636
  anchorReference: "anchorPosition",
1340
1637
  anchorPosition: r !== null ? { top: r.mouseY, left: r.mouseX } : void 0,
1341
- children: e.map((l) => /* @__PURE__ */ L(se, { onClick: () => d(l.value), children: [
1342
- l.icon && /* @__PURE__ */ c(cn, { children: l.icon }),
1343
- /* @__PURE__ */ c(pe, { children: l.displayText }),
1344
- l.shortcut && /* @__PURE__ */ c(pe, { sx: { pl: 2, textAlign: "right" }, children: l.shortcut })
1345
- ] }, l.value))
1638
+ children: e.map((i) => /* @__PURE__ */ T(We, { onClick: () => d(i.value), children: [
1639
+ i.icon && /* @__PURE__ */ s(jn, { children: i.icon }),
1640
+ /* @__PURE__ */ s(ye, { children: i.displayText }),
1641
+ i.shortcut && /* @__PURE__ */ s(ye, { sx: { pl: 2, textAlign: "right" }, children: i.shortcut })
1642
+ ] }, i.value))
1346
1643
  }
1347
1644
  )
1348
1645
  ] });
1349
1646
  }
1350
- function zt({
1647
+ function pr({
1351
1648
  canIdentifier: e,
1352
1649
  canIdentifierType: n,
1353
1650
  onCanIdentifierChange: t,
1354
1651
  onErrorsChange: r = void 0,
1355
- hideSection: a = !1,
1356
- disabled: i = !1,
1357
- collapsible: f = !1,
1358
- collapsed: d = !1,
1359
- collapsedChange: l = void 0
1652
+ showSelectMessageDialogChange: a = void 0,
1653
+ showSelectSignalDialogChange: l = void 0,
1654
+ disabled: u = !1,
1655
+ disableSelectMessageButton: d = !1,
1656
+ disableSelectSignalButton: i = !1,
1657
+ hideSection: o = !1,
1658
+ hideSelectMessageButton: g = !1,
1659
+ showSelectSignalButton: c = !1,
1660
+ collapsible: I = !1,
1661
+ collapsed: N = !1,
1662
+ collapsedChange: m = void 0
1360
1663
  }) {
1361
- const s = H(), g = re(), [x, y] = A(!1);
1362
- k(() => {
1363
- r && r(x);
1364
- }, [x, r]);
1365
- const [C, S] = A(n);
1366
- k(() => {
1367
- S(n);
1664
+ const f = ne(), h = le(), F = de(), p = de(), L = Ne(F, p), [S, v] = U(!1);
1665
+ z(() => {
1666
+ r && r(S);
1667
+ }, [S, r]);
1668
+ const [M, b] = U(!1), [$, R] = U(n);
1669
+ z(() => {
1670
+ R(n);
1368
1671
  }, [n]);
1369
- const I = F((m) => {
1370
- S(m ? "extended" : "standard");
1371
- }, []), w = F(
1372
- (m) => {
1373
- let h = m, v = !1;
1374
- if (h.length > 2 && h.toLowerCase().startsWith("0x") && (h = h.substring(2), v = !0), h = h.toUpperCase(), C === "extended") {
1375
- const o = parseInt(h, v ? 16 : g);
1376
- if (Number.isNaN(o) || o < 0 || o > 536870911)
1377
- return t(m, C), { val: m, err: !0 };
1378
- h = `${o.toString(g).toUpperCase()}`;
1379
- } else if (C === "standard") {
1380
- const o = parseInt(h, v ? 16 : g);
1381
- if (Number.isNaN(o) || o < 0 || o > 2047)
1382
- return t(m, C), { val: m, err: !0 };
1383
- h = `${o.toString(g).toUpperCase()}`;
1384
- }
1385
- return t(h, C), { val: m, err: !1 };
1672
+ const k = w((P) => {
1673
+ R(P ? "extended" : "standard");
1674
+ }, []), _ = w(
1675
+ (P) => {
1676
+ let A = P;
1677
+ const C = parseInt(A, A.startsWith("0x") ? 16 : h);
1678
+ if ($ === "extended") {
1679
+ if (Number.isNaN(C) || C < 0 || C > 536870911)
1680
+ return Number.isNaN(C) || t(`${C.toString(h).toUpperCase()}`, $), { val: P, err: !0 };
1681
+ } else if ($ === "standard" && (Number.isNaN(C) || C < 0 || C > 2047))
1682
+ return Number.isNaN(C) || t(`${C.toString(h).toUpperCase()}`, $), { val: P, err: !0 };
1683
+ return t(`${C.toString(h).toUpperCase()}`, $), b(A.startsWith("0x")), { val: P, err: !1 };
1386
1684
  },
1387
- [C, g, t]
1388
- ), T = F(
1389
- (m) => {
1390
- if (m !== C) {
1391
- let h = !1, v = e;
1392
- if (m === "standard") {
1393
- const o = parseInt(v, g);
1394
- (Number.isNaN(o) || o < 0 || o > 2047) && (h = !0);
1395
- } else if (m === "extended") {
1396
- const o = parseInt(v, g);
1397
- (Number.isNaN(o) || o < 0 || o > 536870911) && (h = !0);
1398
- }
1399
- t(v, m), y(h);
1685
+ [$, h, t]
1686
+ ), W = w(
1687
+ (P) => {
1688
+ if (P !== $) {
1689
+ let A = !1;
1690
+ const C = parseInt(e, e.startsWith("0x") ? 16 : h);
1691
+ P === "standard" ? (Number.isNaN(C) || C < 0 || C > 2047) && (A = !0) : P === "extended" && (Number.isNaN(C) || C < 0 || C > 536870911) && (A = !0), t(e, P), v(A);
1400
1692
  }
1401
1693
  },
1402
- [C, e, t, g]
1403
- ), N = j(
1404
- () => /* @__PURE__ */ L(de, { spacing: 4, children: [
1405
- /* @__PURE__ */ c(
1406
- G,
1694
+ [$, e, t, h]
1695
+ ), j = O(() => {
1696
+ const P = parseInt(e, e.startsWith("0x") ? 16 : h);
1697
+ return M ? `0x${P.toString(16).toUpperCase()}` : P.toString(h).toUpperCase();
1698
+ }, [M, e, h]), X = O(
1699
+ () => /* @__PURE__ */ T(ue, { spacing: 4, children: [
1700
+ /* @__PURE__ */ s(
1701
+ re,
1407
1702
  {
1408
1703
  id: "constant-id",
1409
1704
  fullWidth: !0,
1410
- value: e,
1411
- onBlur: w,
1412
- error: x,
1413
- onErrorChange: y,
1414
- disabled: i
1705
+ value: j,
1706
+ error: S,
1707
+ onValidate: _,
1708
+ onErrorChange: v,
1709
+ disabled: u
1415
1710
  }
1416
1711
  ),
1417
- /* @__PURE__ */ c(
1418
- Ae,
1712
+ /* @__PURE__ */ s(
1713
+ sn,
1419
1714
  {
1420
1715
  id: "id-type",
1421
- label: s.getString("LabelUseExtendedIdentifier"),
1422
- checked: C === "extended",
1423
- onChange: (m) => {
1424
- I(m), T(m ? "extended" : "standard");
1716
+ label: f.getString("LabelUseExtendedIdentifier"),
1717
+ checked: $ === "extended",
1718
+ onChange: (P) => {
1719
+ k(P), W(P ? "extended" : "standard");
1425
1720
  },
1426
- disabled: i
1721
+ disabled: u
1427
1722
  }
1428
- )
1723
+ ),
1724
+ !g && /* @__PURE__ */ s(oe, { columnItem: F, width: L, children: /* @__PURE__ */ s(
1725
+ Z,
1726
+ {
1727
+ disabled: d,
1728
+ onClick: () => {
1729
+ a && a(!0);
1730
+ },
1731
+ variant: "outlined",
1732
+ size: "large",
1733
+ children: f.getString("ButtonSelectMessage")
1734
+ }
1735
+ ) }),
1736
+ c && /* @__PURE__ */ s(oe, { columnItem: p, width: L, children: /* @__PURE__ */ s(
1737
+ Z,
1738
+ {
1739
+ disabled: i,
1740
+ onClick: () => {
1741
+ l && l(!0);
1742
+ },
1743
+ variant: "outlined",
1744
+ size: "large",
1745
+ children: f.getString("ButtonSelectSignal")
1746
+ }
1747
+ ) })
1429
1748
  ] }),
1430
- [
1431
- e,
1432
- C,
1433
- i,
1434
- x,
1435
- s,
1436
- T,
1437
- w
1438
- ]
1749
+ [j, $, u, S, f, W, _]
1439
1750
  );
1440
- return a ? N : /* @__PURE__ */ c(
1441
- fe,
1751
+ return o ? X : /* @__PURE__ */ s(
1752
+ me,
1442
1753
  {
1443
- text: s.getString("LabelCanIdentifier"),
1754
+ text: f.getString("LabelCanIdentifier"),
1444
1755
  summary: e,
1445
- collapsible: f,
1446
- collapsed: d,
1447
- collapsedChange: l,
1448
- children: N
1756
+ collapsible: I,
1757
+ collapsed: N,
1758
+ collapsedChange: m,
1759
+ children: X
1449
1760
  }
1450
1761
  );
1451
1762
  }
1452
- function sr({
1763
+ function Hr({
1453
1764
  frame: e,
1454
1765
  onFrameChange: n,
1455
1766
  onErrorsChange: t = void 0,
1456
- hideSection: r = !1,
1457
- collapsible: a = !1,
1458
- collapsed: i = !1,
1459
- collapsedChange: f = void 0
1767
+ showSelectMessageDialogChange: r = void 0,
1768
+ showSelectSignalDialogChange: a = void 0,
1769
+ disableSelectMessageButton: l = !1,
1770
+ disableSelectSignalButton: u = !1,
1771
+ hideSection: d = !1,
1772
+ hideSelectMessageButton: i = !1,
1773
+ showSelectSignalButton: o = !1,
1774
+ collapsible: g = !1,
1775
+ collapsed: c = !1,
1776
+ collapsedChange: I = void 0
1460
1777
  }) {
1461
- var x;
1462
- const d = re(), l = j(
1778
+ var F;
1779
+ const N = le(), m = O(
1463
1780
  () => {
1464
- var y, C;
1465
- return ((C = (y = e.canFrameFlags) == null ? void 0 : y.flags) == null ? void 0 : C.includes(U.CAN_FRAME_FLAG_EXT)) === !0 ? "extended" : "standard";
1781
+ var p, L;
1782
+ return ((L = (p = e.canFrameFlags) == null ? void 0 : p.flags) == null ? void 0 : L.includes(ee.CAN_FRAME_FLAG_EXT)) === !0 ? "extended" : "standard";
1466
1783
  },
1467
- [(x = e.canFrameFlags) == null ? void 0 : x.flags]
1468
- ), s = j(() => `${(e.id ?? 0).toString(d).toUpperCase()}`, [l, e.id, d]), g = F(
1469
- (y, C) => {
1470
- var N;
1471
- let S = e.id ?? 0;
1472
- S = parseInt(y, d);
1473
- const I = (N = e.canFrameFlags) != null && N.flags ? { flags: [...e.canFrameFlags.flags] } : { flags: [] }, w = I.flags.indexOf(U.CAN_FRAME_FLAG_STD);
1474
- w !== -1 && I.flags.splice(w, 1);
1475
- const T = I.flags.indexOf(U.CAN_FRAME_FLAG_EXT);
1476
- if (T !== -1 && I.flags.splice(T, 1), C === "extended" ? I.flags.push(U.CAN_FRAME_FLAG_EXT) : C === "standard" && I.flags.push(U.CAN_FRAME_FLAG_STD), S !== e.id || !ue(I, e.canFrameFlags)) {
1477
- const m = { ...e };
1478
- m.id = S, m.canFrameFlags = I, n(m);
1784
+ [(F = e.canFrameFlags) == null ? void 0 : F.flags]
1785
+ ), f = O(() => `${(e.id ?? 0).toString(N).toUpperCase()}`, [m, e.id, N]), h = w(
1786
+ (p, L) => {
1787
+ var $;
1788
+ const S = parseInt(p, p.startsWith("0x") ? 16 : N), v = ($ = e.canFrameFlags) != null && $.flags ? { flags: [...e.canFrameFlags.flags] } : { flags: [] }, M = v.flags.indexOf(ee.CAN_FRAME_FLAG_STD);
1789
+ M !== -1 && v.flags.splice(M, 1);
1790
+ const b = v.flags.indexOf(ee.CAN_FRAME_FLAG_EXT);
1791
+ if (b !== -1 && v.flags.splice(b, 1), L === "extended" ? v.flags.push(ee.CAN_FRAME_FLAG_EXT) : L === "standard" && v.flags.push(ee.CAN_FRAME_FLAG_STD), S !== e.id || !ge(v, e.canFrameFlags)) {
1792
+ const R = { ...e };
1793
+ R.id = S, R.canFrameFlags = v, n(R);
1479
1794
  }
1480
1795
  },
1481
- [e, d, n]
1796
+ [e, N, n]
1482
1797
  );
1483
- return /* @__PURE__ */ c(
1484
- zt,
1798
+ return /* @__PURE__ */ s(
1799
+ pr,
1485
1800
  {
1486
- canIdentifier: s,
1487
- canIdentifierType: l,
1488
- onCanIdentifierChange: g,
1801
+ canIdentifier: f,
1802
+ canIdentifierType: m,
1803
+ onCanIdentifierChange: h,
1489
1804
  onErrorsChange: t,
1490
- hideSection: r,
1491
- collapsible: a,
1492
- collapsed: i,
1493
- collapsedChange: f
1805
+ showSelectMessageDialogChange: r,
1806
+ showSelectSignalDialogChange: a,
1807
+ disableSelectMessageButton: l,
1808
+ disableSelectSignalButton: u,
1809
+ hideSection: d,
1810
+ hideSelectMessageButton: i,
1811
+ showSelectSignalButton: o,
1812
+ collapsible: g,
1813
+ collapsed: c,
1814
+ collapsedChange: I
1494
1815
  }
1495
1816
  );
1496
1817
  }
1497
- function Kt({
1818
+ function Sr({
1498
1819
  canIdentifier: e,
1499
1820
  identifierGeneratorType: n,
1500
1821
  minCanIdentifier: t,
1501
1822
  maxCanIdentifier: r,
1502
1823
  canIdentifierType: a,
1503
- onChange: i,
1504
- onErrorsChange: f = void 0,
1824
+ onChange: l,
1825
+ onErrorsChange: u = void 0,
1505
1826
  canIdentifierGeneratorSettingsError: d = void 0,
1506
- disabled: l = !1,
1507
- collapsible: s = !1,
1827
+ disabled: i = !1,
1828
+ collapsible: o = !1,
1508
1829
  collapsed: g = !1,
1509
- collapsedChange: x = void 0,
1510
- showSelectMessageDialogChange: y,
1511
- showSignalValuesTable: C
1830
+ collapsedChange: c = void 0,
1831
+ showSelectMessageDialogChange: I,
1832
+ showSignalValuesTable: N
1512
1833
  }) {
1513
- const S = H(), I = re(), [w, T] = A(!1), [N, m] = A(!1), [h, v] = A(!1), [o, M] = A(a);
1514
- k(() => {
1515
- M(a);
1834
+ const m = ne(), f = le(), [h, F] = U(!1), [p, L] = U(!1), [S, v] = U(!1), [M, b] = U(!1), [$, R] = U(!1), [k, _] = U(!1), [W, j] = U(a);
1835
+ z(() => {
1836
+ j(a);
1516
1837
  }, [a]);
1517
- const E = F((p) => {
1518
- M(p ? "extended" : "standard");
1519
- }, []), P = F(
1520
- (p) => {
1521
- let u = p, $ = !1;
1522
- if (u.length > 2 && u.toLowerCase().startsWith("0x") && (u = u.substring(2), $ = !0), u = u.toUpperCase(), o === "extended") {
1523
- const b = parseInt(u, $ ? 16 : I);
1524
- if (Number.isNaN(b) || b < 0 || b > 536870911)
1525
- return i(p, n, t, r, o), { val: p, err: !0 };
1526
- u = `${b.toString(I).toUpperCase()}`;
1527
- } else if (o === "standard") {
1528
- const b = parseInt(u, $ ? 16 : I);
1529
- if (Number.isNaN(b) || b < 0 || b > 2047)
1530
- return i(p, n, t, r, o), { val: p, err: !0 };
1531
- u = `${b.toString(I).toUpperCase()}`;
1532
- }
1533
- return i(u, n, t, r, o), { val: p, err: !1 };
1838
+ const X = w((E) => {
1839
+ j(E ? "extended" : "standard");
1840
+ }, []), P = w(
1841
+ (E) => {
1842
+ let H = E;
1843
+ const q = parseInt(H, H.startsWith("0x") ? 16 : f);
1844
+ if (W === "extended") {
1845
+ if (Number.isNaN(q) || q < 0 || q > 536870911)
1846
+ return Number.isNaN(q) || l(
1847
+ `${q.toString(f).toUpperCase()}`,
1848
+ n,
1849
+ t,
1850
+ r,
1851
+ W
1852
+ ), { val: E, err: !0 };
1853
+ } else if (W === "standard" && (Number.isNaN(q) || q < 0 || q > 2047))
1854
+ return Number.isNaN(q) || l(
1855
+ `${q.toString(f).toUpperCase()}`,
1856
+ n,
1857
+ t,
1858
+ r,
1859
+ W
1860
+ ), { val: E, err: !0 };
1861
+ return l(
1862
+ `${q.toString(f).toUpperCase()}`,
1863
+ n,
1864
+ t,
1865
+ r,
1866
+ W
1867
+ ), b(H.startsWith("0x")), { val: E, err: !1 };
1534
1868
  },
1535
- [o, n, r, t, I, i]
1536
- ), _ = F(
1537
- (p, u, $) => {
1538
- let b = p, O = -1, ae = !1;
1539
- if (b.length > 2 && b.toLowerCase().startsWith("0x") && (b = b.substring(2), ae = !0), b = b.toUpperCase(), u === "extended") {
1540
- if (O = parseInt(b, ae ? 16 : I), Number.isNaN(O) || O < 0 || O > 536870911)
1541
- return $(p), { val: p, err: !0, id: O };
1542
- b = `${O.toString(I).toUpperCase()}`;
1543
- } else if (u === "standard") {
1544
- if (O = parseInt(b, ae ? 16 : I), Number.isNaN(O) || O < 0 || O > 2047)
1545
- return $(p), { val: p, err: !0, id: O };
1546
- b = `${O.toString(I).toUpperCase()}`;
1547
- }
1548
- return $(b), { val: b, err: !1, id: O };
1869
+ [W, n, r, t, f, l]
1870
+ ), A = w(
1871
+ (E, H, q, J) => {
1872
+ let ae = E;
1873
+ const Y = parseInt(ae, ae.startsWith("0x") ? 16 : f);
1874
+ if (H === "extended") {
1875
+ if (Number.isNaN(Y) || Y < 0 || Y > 536870911)
1876
+ return Number.isNaN(Y) || q(`${Y.toString(f).toUpperCase()}`), { val: E, err: !0, id: Y };
1877
+ } else if (H === "standard" && (Number.isNaN(Y) || Y < 0 || Y > 2047))
1878
+ return Number.isNaN(Y) || q(`${Y.toString(f).toUpperCase()}`), { val: E, err: !0, id: Y };
1879
+ return q(`${Y.toString(f).toUpperCase()}`), J(ae.startsWith("0x")), { val: E, err: !1, id: Y };
1549
1880
  },
1550
- [I]
1551
- ), B = F(
1552
- (p) => {
1553
- const u = _(
1554
- p,
1555
- o,
1556
- (b) => i(e, n, b, r, o)
1557
- ), $ = _(
1881
+ [f]
1882
+ ), C = w(
1883
+ (E) => {
1884
+ const H = A(
1885
+ E,
1886
+ W,
1887
+ (J) => l(e, n, J, r, W),
1888
+ (J) => R(J)
1889
+ ), q = A(
1558
1890
  r,
1559
- o,
1891
+ W,
1892
+ // eslint-disable-next-line @typescript-eslint/no-empty-function
1893
+ () => {
1894
+ },
1560
1895
  // eslint-disable-next-line @typescript-eslint/no-empty-function
1561
1896
  () => {
1562
1897
  }
1563
1898
  );
1564
- return !u.err && !$.err && (u.id >= $.id ? (u.err = !0, m(!0)) : m(!1)), { val: u.val, err: u.err };
1899
+ return H.id >= q.id ? H.err = !0 : q.err && v(q.err), { val: H.val, err: H.err };
1565
1900
  },
1566
1901
  [
1567
1902
  e,
1568
- o,
1903
+ W,
1569
1904
  n,
1570
1905
  r,
1571
- i,
1572
- _
1906
+ l,
1907
+ A
1573
1908
  ]
1574
- ), z = F(
1575
- (p) => {
1576
- const u = _(
1577
- p,
1578
- o,
1579
- (b) => i(e, n, t, b, o)
1580
- ), $ = _(
1909
+ ), x = w(
1910
+ (E) => {
1911
+ const H = A(
1912
+ E,
1913
+ W,
1914
+ (J) => l(e, n, t, J, W),
1915
+ (J) => _(J)
1916
+ ), q = A(
1581
1917
  t,
1582
- o,
1918
+ W,
1919
+ // eslint-disable-next-line @typescript-eslint/no-empty-function
1920
+ () => {
1921
+ },
1583
1922
  // eslint-disable-next-line @typescript-eslint/no-empty-function
1584
1923
  () => {
1585
1924
  }
1586
1925
  );
1587
- return !$.err && !u.err && ($.id >= u.id ? (u.err = !0, v(!0)) : v(!1)), { val: u.val, err: u.err };
1926
+ return q.id >= H.id ? H.err = !0 : q.err && L(q.err), { val: H.val, err: H.err };
1588
1927
  },
1589
1928
  [
1590
1929
  e,
1591
- o,
1930
+ W,
1592
1931
  n,
1593
1932
  t,
1594
- i,
1595
- _
1933
+ l,
1934
+ A
1596
1935
  ]
1597
- ), K = F(
1598
- (p) => {
1599
- if (p !== o) {
1600
- let u = e;
1601
- const $ = _(t, p, () => {
1602
- }), b = _(r, p, () => {
1603
- });
1604
- i(u, n, $.val, b.val, p);
1936
+ ), B = w(
1937
+ (E) => {
1938
+ if (E !== W) {
1939
+ let H = !1, q = e;
1940
+ const J = parseInt(q, q.startsWith("0x") ? 16 : f);
1941
+ E === "standard" ? ((Number.isNaN(J) || J < 0 || J > 2047) && (H = !0), F(H)) : E === "extended" && ((Number.isNaN(J) || J < 0 || J > 536870911) && (H = !0), F(H));
1942
+ let ae = !1, Y = t;
1943
+ const ie = parseInt(Y, Y.startsWith("0x") ? 16 : f);
1944
+ E === "standard" ? (Number.isNaN(ie) || ie < 0 || ie > 2047) && (ae = !0) : E === "extended" && (Number.isNaN(ie) || ie < 0 || ie > 536870911) && (ae = !0);
1945
+ let ve = !1, ke = r;
1946
+ const se = parseInt(ke, ke.startsWith("0x") ? 16 : f);
1947
+ E === "standard" ? (Number.isNaN(se) || se < 0 || se > 2047) && (ve = !0) : E === "extended" && (Number.isNaN(se) || se < 0 || se > 536870911) && (ve = !0), !Number.isNaN(ie) && !Number.isNaN(se) && ie >= se && (ae = !0, ve = !0), L(ae), v(ve), l(e, n, t, r, E);
1605
1948
  }
1606
1949
  },
1607
1950
  [
1608
- o,
1951
+ W,
1609
1952
  e,
1610
- _,
1611
1953
  t,
1612
1954
  r,
1613
- i,
1955
+ l,
1614
1956
  n,
1615
- I
1957
+ f
1616
1958
  ]
1617
- ), X = F(
1618
- (p) => {
1619
- let u = e;
1620
- const $ = _(t, o, () => {
1621
- }), b = _(r, o, () => {
1622
- });
1623
- C(p === "constant"), i(
1624
- u,
1625
- p,
1626
- $.val,
1627
- b.val,
1628
- o
1629
- );
1959
+ ), y = w(
1960
+ (E) => {
1961
+ N(E === "constant"), l(e, E, t, r, W);
1630
1962
  },
1631
- [
1632
- o,
1633
- e,
1634
- _,
1635
- t,
1636
- r,
1637
- i,
1638
- n,
1639
- I
1640
- ]
1963
+ [W, e, t, r, l]
1641
1964
  );
1642
- k(() => {
1643
- f && f(
1644
- n === "constant" && w || (n === "random" || n === "scan") && (N || h)
1645
- ), d && (d.current = n === "constant" && w || (n === "random" || n === "scan") && (N || h));
1965
+ z(() => {
1966
+ u && u(
1967
+ n === "constant" && h || (n === "random" || n === "scan") && (p || S)
1968
+ ), d && (d.current = n === "constant" && h || (n === "random" || n === "scan") && (p || S));
1646
1969
  }, [
1647
- w,
1970
+ h,
1648
1971
  d,
1649
1972
  n,
1650
- h,
1651
- N,
1652
- f
1973
+ S,
1974
+ p,
1975
+ u
1653
1976
  ]);
1654
- const D = It(), R = $t(D);
1655
- return /* @__PURE__ */ c(
1656
- fe,
1977
+ const D = de(), K = Ne(D), Q = O(() => {
1978
+ const E = parseInt(e, e.startsWith("0x") ? 16 : f);
1979
+ return M ? `0x${E.toString(16).toUpperCase()}` : E.toString(f).toUpperCase();
1980
+ }, [M, e, f]), G = O(() => {
1981
+ const E = parseInt(t, t.startsWith("0x") ? 16 : f);
1982
+ return $ ? `0x${E.toString(16).toUpperCase()}` : E.toString(f).toUpperCase();
1983
+ }, [$, t, f]), te = O(() => {
1984
+ const E = parseInt(r, r.startsWith("0x") ? 16 : f);
1985
+ return k ? `0x${E.toString(16).toUpperCase()}` : E.toString(f).toUpperCase();
1986
+ }, [k, r, f]);
1987
+ return /* @__PURE__ */ s(
1988
+ me,
1657
1989
  {
1658
- text: S.getString("LabelCanIdentifier"),
1659
- summary: n === "constant" ? e : n === "random" ? `${S.getString("LabelRandom")} ${t}-${r}` : `${S.getString("LabelScan")} ${t}-${r}`,
1660
- collapsible: s,
1990
+ text: m.getString("LabelCanIdentifier"),
1991
+ summary: n === "constant" ? e : n === "random" ? `${m.getString("LabelRandom")} ${t}-${r}` : `${m.getString("LabelScan")} ${t}-${r}`,
1992
+ collapsible: o,
1661
1993
  collapsed: g,
1662
- collapsedChange: x,
1663
- children: /* @__PURE__ */ L(
1664
- Et,
1994
+ collapsedChange: c,
1995
+ children: /* @__PURE__ */ T(
1996
+ fn,
1665
1997
  {
1666
1998
  id: "identifier-radio-group",
1667
1999
  value: n,
1668
- onChange: (p) => {
1669
- X(p);
2000
+ onChange: (E) => {
2001
+ y(E);
1670
2002
  },
1671
2003
  children: [
1672
- /* @__PURE__ */ L(de, { spacing: 4, children: [
1673
- /* @__PURE__ */ c(
1674
- ie,
2004
+ /* @__PURE__ */ T(ue, { spacing: 4, children: [
2005
+ /* @__PURE__ */ s(
2006
+ fe,
1675
2007
  {
1676
2008
  id: "constant-id-radio",
1677
2009
  value: "constant",
1678
- label: S.getString("LabelConstantIdentifier"),
2010
+ label: m.getString("LabelConstantIdentifier"),
1679
2011
  sx: { marginLeft: "-11px !important" },
1680
- disabled: l
2012
+ disabled: i
1681
2013
  }
1682
2014
  ),
1683
- /* @__PURE__ */ c(
1684
- G,
2015
+ /* @__PURE__ */ s(
2016
+ re,
1685
2017
  {
1686
2018
  id: "constant-id",
1687
2019
  fullWidth: !0,
1688
- value: e,
1689
- error: w,
1690
- onErrorChange: T,
1691
- disabled: l || n !== "constant",
1692
- required: n === "constant",
1693
- onBlur: P
2020
+ value: Q,
2021
+ error: !i && n === "constant" && h,
2022
+ onErrorChange: F,
2023
+ onValidate: P,
2024
+ disabled: i || n !== "constant",
2025
+ required: n === "constant"
1694
2026
  }
1695
2027
  ),
1696
- /* @__PURE__ */ c(
1697
- Ae,
2028
+ /* @__PURE__ */ s(
2029
+ sn,
1698
2030
  {
1699
2031
  id: "id-type",
1700
- label: S.getString("LabelUseExtendedIdentifier"),
1701
- checked: o === "extended",
1702
- onChange: (p) => {
1703
- E(p), K(p ? "extended" : "standard");
2032
+ label: m.getString("LabelUseExtendedIdentifier"),
2033
+ checked: W === "extended",
2034
+ onChange: (E) => {
2035
+ X(E), B(E ? "extended" : "standard");
1704
2036
  },
1705
- disabled: l
2037
+ disabled: i
1706
2038
  }
1707
2039
  ),
1708
- /* @__PURE__ */ c(Ft, { columnItem: D, width: R, children: /* @__PURE__ */ c(te, { onClick: () => y(!0), variant: "outlined", size: "large", children: S.getString("ButtonSelectMessage") }) })
2040
+ /* @__PURE__ */ s(oe, { columnItem: D, width: K, children: /* @__PURE__ */ s(Z, { onClick: () => I(!0), variant: "outlined", size: "large", children: m.getString("ButtonSelectMessage") }) })
1709
2041
  ] }),
1710
- /* @__PURE__ */ L(de, { spacing: 4, children: [
1711
- /* @__PURE__ */ c(
1712
- ie,
2042
+ /* @__PURE__ */ T(ue, { spacing: 4, children: [
2043
+ /* @__PURE__ */ s(
2044
+ fe,
1713
2045
  {
1714
2046
  id: "random-identifier-radio",
1715
2047
  value: "random",
1716
- label: S.getString("LabelRandomIdentifier"),
2048
+ label: m.getString("LabelRandomIdentifier"),
1717
2049
  sx: { marginLeft: "-11px !important" },
1718
- disabled: l
2050
+ disabled: i
1719
2051
  }
1720
2052
  ),
1721
- /* @__PURE__ */ c(
1722
- ie,
2053
+ /* @__PURE__ */ s(
2054
+ fe,
1723
2055
  {
1724
2056
  id: "scan-identifier-radio",
1725
2057
  value: "scan",
1726
- label: S.getString("LabelScanIdentifier"),
1727
- disabled: l
2058
+ label: m.getString("LabelScanIdentifier"),
2059
+ disabled: i
1728
2060
  }
1729
2061
  ),
1730
- /* @__PURE__ */ c(
1731
- G,
2062
+ /* @__PURE__ */ s(
2063
+ re,
1732
2064
  {
1733
2065
  id: "identifier-min",
1734
- disabled: l || n !== "random" && n !== "scan",
2066
+ disabled: i || n !== "random" && n !== "scan",
1735
2067
  required: n === "random" || n === "scan",
1736
2068
  fullWidth: !0,
1737
- value: t ?? "",
1738
- error: N,
1739
- onErrorChange: m,
1740
- startAdornment: S.getString("LabelFrom"),
1741
- onBlur: B,
2069
+ value: G,
2070
+ error: !i && (n === "random" || n === "scan") && p,
2071
+ onErrorChange: L,
2072
+ onValidate: C,
2073
+ startAdornment: m.getString("LabelFrom"),
1742
2074
  sxStartAdornment: { marginBottom: 0.8 }
1743
2075
  }
1744
2076
  ),
1745
- /* @__PURE__ */ c(
1746
- G,
2077
+ /* @__PURE__ */ s(
2078
+ re,
1747
2079
  {
1748
2080
  id: "identifier-max",
1749
- disabled: l || n !== "random" && n !== "scan",
2081
+ disabled: i || n !== "random" && n !== "scan",
1750
2082
  required: n === "random" || n === "scan",
1751
2083
  fullWidth: !0,
1752
- value: r ?? "",
1753
- error: h,
2084
+ value: te,
2085
+ error: !i && (n === "random" || n === "scan") && S,
1754
2086
  onErrorChange: v,
1755
- startAdornment: S.getString("LabelTo"),
1756
- onBlur: z,
2087
+ onValidate: x,
2088
+ startAdornment: m.getString("LabelTo"),
1757
2089
  sxStartAdornment: { marginBottom: 0.8 }
1758
2090
  }
1759
2091
  )
@@ -1764,143 +2096,143 @@ function Kt({
1764
2096
  }
1765
2097
  );
1766
2098
  }
1767
- function ur({
2099
+ function Kr({
1768
2100
  settings: e,
1769
2101
  onSettingsChange: n,
1770
2102
  onErrorsChange: t = void 0,
1771
2103
  canIdentifierGeneratorSettingsError: r = void 0,
1772
2104
  disabled: a = !1,
1773
- collapsible: i = !1,
1774
- collapsed: f = !1,
2105
+ collapsible: l = !1,
2106
+ collapsed: u = !1,
1775
2107
  collapsedChange: d = void 0,
1776
- showSelectMessageDialogChange: l,
1777
- showSignalValuesTable: s
2108
+ showSelectMessageDialogChange: i,
2109
+ showSignalValuesTable: o
1778
2110
  }) {
1779
- var T, N, m;
1780
- const g = re(), x = j(
2111
+ var F, p, L;
2112
+ const g = le(), c = O(
1781
2113
  () => {
1782
- var h, v, o;
1783
- return ((o = (v = (h = e.frame) == null ? void 0 : h.canFrameFlags) == null ? void 0 : v.flags) == null ? void 0 : o.includes(U.CAN_FRAME_FLAG_EXT)) === !0 ? "extended" : "standard";
2114
+ var S, v, M;
2115
+ return ((M = (v = (S = e.frame) == null ? void 0 : S.canFrameFlags) == null ? void 0 : v.flags) == null ? void 0 : M.includes(ee.CAN_FRAME_FLAG_EXT)) === !0 ? "extended" : "standard";
1784
2116
  },
1785
- [(N = (T = e.frame) == null ? void 0 : T.canFrameFlags) == null ? void 0 : N.flags]
1786
- ), y = j(() => {
2117
+ [(p = (F = e.frame) == null ? void 0 : F.canFrameFlags) == null ? void 0 : p.flags]
2118
+ ), I = O(() => {
1787
2119
  var v;
1788
2120
  return `${(((v = e.frame) == null ? void 0 : v.id) ?? 0).toString(g).toUpperCase()}`;
1789
- }, [g, (m = e.frame) == null ? void 0 : m.id]), C = j(() => `${(e.identifierMin ?? 0).toString(g).toUpperCase()}`, [g, e.identifierMin]), S = j(() => `${(e.identifierMax ?? 0).toString(g).toUpperCase()}`, [g, e.identifierMax]), I = j(() => e.randomIdentifier === !0 ? "random" : e.scanIdentifier === !0 ? "scan" : "constant", [e.randomIdentifier, e.scanIdentifier]), w = F(
1790
- (h, v, o, M, E) => {
1791
- var R, p, u, $;
1792
- const P = E, _ = parseInt(h, g), B = (p = (R = e.frame) == null ? void 0 : R.canFrameFlags) != null && p.flags ? { flags: [...e.frame.canFrameFlags.flags] } : { flags: [] }, z = B.flags.indexOf(U.CAN_FRAME_FLAG_STD), K = parseInt(o, g), X = parseInt(M, g), D = B.flags.indexOf(U.CAN_FRAME_FLAG_EXT);
1793
- if (z !== -1 && B.flags.splice(z, 1), D !== -1 && B.flags.splice(D, 1), P === "extended" ? B.flags.push(U.CAN_FRAME_FLAG_EXT) : P === "standard" && B.flags.push(U.CAN_FRAME_FLAG_STD), _ !== ((u = e.frame) == null ? void 0 : u.id) || !ue(B, ($ = e.frame) == null ? void 0 : $.canFrameFlags) || v !== I || K !== e.identifierMin || X !== e.identifierMax) {
1794
- const b = { ...e };
1795
- b.frame = e.frame ? { ...e.frame } : hn.fromPartial({
2121
+ }, [g, (L = e.frame) == null ? void 0 : L.id]), N = O(() => `${(e.identifierMin ?? 0).toString(g).toUpperCase()}`, [g, e.identifierMin]), m = O(() => `${(e.identifierMax ?? 0).toString(g).toUpperCase()}`, [g, e.identifierMax]), f = O(() => e.randomIdentifier === !0 ? "random" : e.scanIdentifier === !0 ? "scan" : "constant", [e.randomIdentifier, e.scanIdentifier]), h = w(
2122
+ (S, v, M, b, $) => {
2123
+ var A, C, x, B;
2124
+ const R = $, k = parseInt(S, S.startsWith("0x") ? 16 : g), _ = (C = (A = e.frame) == null ? void 0 : A.canFrameFlags) != null && C.flags ? { flags: [...e.frame.canFrameFlags.flags] } : { flags: [] }, W = _.flags.indexOf(ee.CAN_FRAME_FLAG_STD), j = parseInt(M, M.startsWith("0x") ? 16 : g), X = parseInt(b, b.startsWith("0x") ? 16 : g), P = _.flags.indexOf(ee.CAN_FRAME_FLAG_EXT);
2125
+ if (W !== -1 && _.flags.splice(W, 1), P !== -1 && _.flags.splice(P, 1), R === "extended" ? _.flags.push(ee.CAN_FRAME_FLAG_EXT) : R === "standard" && _.flags.push(ee.CAN_FRAME_FLAG_STD), k !== ((x = e.frame) == null ? void 0 : x.id) || !ge(_, (B = e.frame) == null ? void 0 : B.canFrameFlags) || v !== f || j !== e.identifierMin || X !== e.identifierMax) {
2126
+ const y = { ...e };
2127
+ y.frame = e.frame ? { ...e.frame } : an.fromPartial({
1796
2128
  id: 0,
1797
- canFrameFlags: { flags: [U.CAN_FRAME_FLAG_STD] },
2129
+ canFrameFlags: { flags: [ee.CAN_FRAME_FLAG_STD] },
1798
2130
  data: Array.from({ length: 8 }, () => 0)
1799
- }), b.frame.id = _, b.frame.canFrameFlags = B, v === "constant" ? (b.randomIdentifier = !1, b.scanIdentifier = !1) : v === "random" ? (b.randomIdentifier = !0, b.scanIdentifier = !1) : v === "scan" && (b.randomIdentifier = !1, b.scanIdentifier = !0), b.identifierMin = K, b.identifierMax = X, n(b);
2131
+ }), y.frame.id = k, y.frame.canFrameFlags = _, v === "constant" ? (y.randomIdentifier = !1, y.scanIdentifier = !1) : v === "random" ? (y.randomIdentifier = !0, y.scanIdentifier = !1) : v === "scan" && (y.randomIdentifier = !1, y.scanIdentifier = !0), y.identifierMin = j, y.identifierMax = X, n(y);
1800
2132
  }
1801
2133
  },
1802
- [I, g, n, e]
2134
+ [f, g, n, e]
1803
2135
  );
1804
- return /* @__PURE__ */ c(
1805
- Kt,
2136
+ return /* @__PURE__ */ s(
2137
+ Sr,
1806
2138
  {
1807
- canIdentifier: y,
1808
- identifierGeneratorType: I,
1809
- minCanIdentifier: C,
1810
- maxCanIdentifier: S,
1811
- canIdentifierType: x,
1812
- onChange: w,
2139
+ canIdentifier: I,
2140
+ identifierGeneratorType: f,
2141
+ minCanIdentifier: N,
2142
+ maxCanIdentifier: m,
2143
+ canIdentifierType: c,
2144
+ onChange: h,
1813
2145
  onErrorsChange: t,
1814
2146
  canIdentifierGeneratorSettingsError: r,
1815
2147
  disabled: a,
1816
- collapsible: i,
1817
- collapsed: f,
2148
+ collapsible: l,
2149
+ collapsed: u,
1818
2150
  collapsedChange: d,
1819
- showSelectMessageDialogChange: l,
1820
- showSignalValuesTable: s
2151
+ showSelectMessageDialogChange: i,
2152
+ showSignalValuesTable: o
1821
2153
  }
1822
2154
  );
1823
2155
  }
1824
- function Xt(e, n, t, r) {
1825
- const [a, i] = A(""), [f, d] = A([]);
1826
- return k(() => {
1827
- d((l) => {
2156
+ function xr(e, n, t, r) {
2157
+ const [a, l] = U(""), [u, d] = U([]);
2158
+ return z(() => {
2159
+ d((i) => {
1828
2160
  var g;
1829
- const s = (g = t == null ? void 0 : t.sources) == null ? void 0 : g.filter((x) => {
1830
- var C, S;
1831
- const y = (S = (C = r == null ? void 0 : r.find((I) => {
1832
- var w;
1833
- return I.nodeId === ((w = x.baseNode) == null ? void 0 : w.identifier);
1834
- })) == null ? void 0 : C.errorStatus) == null ? void 0 : S.errors;
1835
- return y === void 0 || y === "" ? x.baseNode && x.channelSettings && x.channelSettings.canConfiguration && (!n || x.channelSettings.canConfiguration.silentMode !== !0) : !1;
1836
- }).map((x) => ({
1837
- value: x.channelSettings.channelNumber,
1838
- displayText: x.baseNode.name,
1839
- canFdMode: x.channelSettings.canConfiguration.canMode > 0,
1840
- identifier: x.baseNode.identifier
2161
+ const o = (g = t == null ? void 0 : t.sources) == null ? void 0 : g.filter((c) => {
2162
+ var N, m;
2163
+ const I = (m = (N = r == null ? void 0 : r.find((f) => {
2164
+ var h;
2165
+ return f.nodeId === ((h = c.baseNode) == null ? void 0 : h.identifier);
2166
+ })) == null ? void 0 : N.errorStatus) == null ? void 0 : m.errors;
2167
+ return I === void 0 || I === "" ? c.baseNode && c.channelSettings && c.channelSettings.canConfiguration && (!n || c.channelSettings.canConfiguration.silentMode !== !0) : !1;
2168
+ }).map((c) => ({
2169
+ value: c.channelSettings.channelNumber,
2170
+ displayText: c.baseNode.name,
2171
+ canFdMode: c.channelSettings.canConfiguration.canMode > 0,
2172
+ identifier: c.baseNode.identifier
1841
2173
  }));
1842
- return !s || ue(l, s) ? l : s;
2174
+ return !o || ge(i, o) ? i : o;
1843
2175
  });
1844
- }, [n, t == null ? void 0 : t.sources, r]), k(() => {
1845
- const l = f.find((s) => s.identifier === e);
1846
- i(l ? (s) => l.value === s ? s : l.value : "");
1847
- }, [e, f]), {
1848
- channelOptions: f,
2176
+ }, [n, t == null ? void 0 : t.sources, r]), z(() => {
2177
+ const i = u.find((o) => o.identifier === e);
2178
+ l(i ? (o) => i.value === o ? o : i.value : "");
2179
+ }, [e, u]), {
2180
+ channelOptions: u,
1849
2181
  selectedChannelOption: a
1850
2182
  };
1851
2183
  }
1852
- function cr({
2184
+ function Qr({
1853
2185
  channelIdentifier: e,
1854
2186
  onChannelIdentifierChange: n,
1855
2187
  hideSilentChannels: t = !1,
1856
2188
  hideSectionControl: r = !1,
1857
2189
  disabled: a = !1,
1858
- collapsible: i = !1,
1859
- collapsed: f = !1,
2190
+ collapsible: l = !1,
2191
+ collapsed: u = !1,
1860
2192
  collapsedChange: d = void 0
1861
2193
  }) {
1862
- var S;
1863
- const l = De(), s = Ue(), g = H(), { channelOptions: x, selectedChannelOption: y } = Xt(
2194
+ var m;
2195
+ const i = qe(), o = He(), g = ne(), { channelOptions: c, selectedChannelOption: I } = xr(
1864
2196
  e,
1865
2197
  t === !0,
1866
- l,
1867
- s
1868
- ), C = F(
1869
- (I) => {
1870
- const w = x.find((m) => m.value === I), T = (w == null ? void 0 : w.identifier) ?? "", N = (w == null ? void 0 : w.canFdMode) === !0;
1871
- n(T, N);
2198
+ i,
2199
+ o
2200
+ ), N = w(
2201
+ (f) => {
2202
+ const h = c.find((L) => L.value === f), F = (h == null ? void 0 : h.identifier) ?? "", p = (h == null ? void 0 : h.canFdMode) === !0;
2203
+ n(F, p);
1872
2204
  },
1873
- [x, n]
2205
+ [c, n]
1874
2206
  );
1875
- return r === !0 ? /* @__PURE__ */ c(
1876
- Ie,
2207
+ return r === !0 ? /* @__PURE__ */ s(
2208
+ Me,
1877
2209
  {
1878
2210
  id: "channel",
1879
2211
  label: g.getString("LabelChannel"),
1880
2212
  fullWidth: !0,
1881
- value: y,
1882
- onChange: C,
1883
- options: x,
2213
+ value: I,
2214
+ onChange: N,
2215
+ options: c,
1884
2216
  required: !0,
1885
2217
  disabled: a
1886
2218
  }
1887
- ) : /* @__PURE__ */ c(
1888
- fe,
2219
+ ) : /* @__PURE__ */ s(
2220
+ me,
1889
2221
  {
1890
2222
  text: g.getString("LabelChannel"),
1891
- summary: y === "" || (S = x.find((I) => I.value === y)) == null ? void 0 : S.displayText,
1892
- collapsible: i,
1893
- collapsed: f,
2223
+ summary: I === "" || (m = c.find((f) => f.value === I)) == null ? void 0 : m.displayText,
2224
+ collapsible: l,
2225
+ collapsed: u,
1894
2226
  collapsedChange: d,
1895
- children: /* @__PURE__ */ c(
1896
- Ie,
2227
+ children: /* @__PURE__ */ s(
2228
+ Me,
1897
2229
  {
1898
2230
  id: "channel",
1899
2231
  label: g.getString("LabelChannel"),
1900
2232
  fullWidth: !0,
1901
- value: y,
1902
- onChange: C,
1903
- options: x,
2233
+ value: I,
2234
+ onChange: N,
2235
+ options: c,
1904
2236
  required: !0,
1905
2237
  disabled: a
1906
2238
  }
@@ -1908,51 +2240,527 @@ function cr({
1908
2240
  }
1909
2241
  );
1910
2242
  }
1911
- const fr = W(Q)(() => ({
2243
+ function Nr(e, n, t, r) {
2244
+ const [a, l] = U(""), [u, d] = U([]);
2245
+ return z(() => {
2246
+ d((i) => {
2247
+ var g;
2248
+ const o = (g = t == null ? void 0 : t.sources) == null ? void 0 : g.filter((c) => {
2249
+ var N, m;
2250
+ const I = (m = (N = r == null ? void 0 : r.find((f) => {
2251
+ var h;
2252
+ return f.nodeId === ((h = c.baseNode) == null ? void 0 : h.identifier);
2253
+ })) == null ? void 0 : N.errorStatus) == null ? void 0 : m.errors;
2254
+ return (I === void 0 || I === "") && c.channelSettings !== void 0 && c.channelSettings.linConfiguration !== void 0 && c.channelSettings.linConfiguration.masterMode === n ? c.baseNode && c.channelSettings && c.channelSettings.linConfiguration : !1;
2255
+ }).map((c) => ({
2256
+ value: c.channelSettings.channelNumber,
2257
+ displayText: c.baseNode.name,
2258
+ identifier: c.baseNode.identifier
2259
+ }));
2260
+ return !o || ge(i, o) ? i : o;
2261
+ });
2262
+ }, [t == null ? void 0 : t.sources, r]), z(() => {
2263
+ const i = u.find((o) => o.identifier === e);
2264
+ l(i ? (o) => i.value === o ? o : i.value : "");
2265
+ }, [e, u]), {
2266
+ channelOptions: u,
2267
+ selectedChannelOption: a
2268
+ };
2269
+ }
2270
+ function Xr({
2271
+ channelIdentifier: e,
2272
+ selectMasterChannels: n,
2273
+ onChannelIdentifierChange: t,
2274
+ hideSectionControl: r = !1,
2275
+ disabled: a = !1,
2276
+ collapsible: l = !1,
2277
+ collapsed: u = !1,
2278
+ collapsedChange: d = void 0
2279
+ }) {
2280
+ var m;
2281
+ const i = qe(), o = He(), g = ne(), { channelOptions: c, selectedChannelOption: I } = Nr(
2282
+ e,
2283
+ n,
2284
+ i,
2285
+ o
2286
+ ), N = w(
2287
+ (f) => {
2288
+ const h = c.find((p) => p.value === f), F = (h == null ? void 0 : h.identifier) ?? "";
2289
+ t(F);
2290
+ },
2291
+ [c, t]
2292
+ );
2293
+ return r === !0 ? /* @__PURE__ */ s(
2294
+ Me,
2295
+ {
2296
+ id: "channel",
2297
+ label: n ? g.getString("LabelChannelLinModeMaster") : g.getString("LabelChannelLinModeSlave"),
2298
+ fullWidth: !0,
2299
+ value: I,
2300
+ onChange: N,
2301
+ options: c,
2302
+ required: !0,
2303
+ disabled: a
2304
+ }
2305
+ ) : /* @__PURE__ */ s(
2306
+ me,
2307
+ {
2308
+ text: n ? g.getString("LabelChannelLinModeMaster") : g.getString("LabelChannelLinModeSlave"),
2309
+ summary: I === "" || (m = c.find((f) => f.value === I)) == null ? void 0 : m.displayText,
2310
+ collapsible: l,
2311
+ collapsed: u,
2312
+ collapsedChange: d,
2313
+ children: /* @__PURE__ */ s(
2314
+ Me,
2315
+ {
2316
+ id: "channel",
2317
+ label: n ? g.getString("LabelChannelLinModeMaster") : g.getString("LabelChannelLinModeSlave"),
2318
+ fullWidth: !0,
2319
+ value: I,
2320
+ onChange: N,
2321
+ options: c,
2322
+ required: !0,
2323
+ disabled: a
2324
+ }
2325
+ )
2326
+ }
2327
+ );
2328
+ }
2329
+ function vr({
2330
+ linIdentifier: e,
2331
+ onLinIdentifierChange: n,
2332
+ onErrorsChange: t = void 0,
2333
+ showSelectMessageDialogChange: r = void 0,
2334
+ showSelectSignalDialogChange: a = void 0,
2335
+ disabled: l = !1,
2336
+ disableSelectMessageButton: u = !1,
2337
+ disableSelectSignalButton: d = !1,
2338
+ hideSection: i = !1,
2339
+ hideSelectMessageButton: o = !1,
2340
+ showSelectSignalButton: g = !1,
2341
+ collapsible: c = !1,
2342
+ collapsed: I = !1,
2343
+ collapsedChange: N = void 0
2344
+ }) {
2345
+ const m = ne(), f = le(), h = de(), F = de(), p = Ne(h, F), [L, S] = U(!1);
2346
+ z(() => {
2347
+ t && t(L);
2348
+ }, [L, t]);
2349
+ const [v, M] = U(!1), b = w(
2350
+ (k) => {
2351
+ let _ = k;
2352
+ const W = parseInt(_, _.startsWith("0x") ? 16 : f);
2353
+ return Number.isNaN(W) || W < 0 || W > 63 ? (Number.isNaN(W) || n(`${W.toString(f).toUpperCase()}`), { val: k, err: !0 }) : (n(`${W.toString(f).toUpperCase()}`), M(_.startsWith("0x")), { val: k, err: !1 });
2354
+ },
2355
+ [f, n]
2356
+ ), $ = O(() => {
2357
+ const k = parseInt(e, e.startsWith("0x") ? 16 : f);
2358
+ return v ? `0x${k.toString(16).toUpperCase()}` : k.toString(f).toUpperCase();
2359
+ }, [v, e, f]), R = O(
2360
+ () => /* @__PURE__ */ T(ue, { spacing: 4, children: [
2361
+ /* @__PURE__ */ s(
2362
+ re,
2363
+ {
2364
+ id: "constant-id",
2365
+ fullWidth: !0,
2366
+ value: $,
2367
+ error: L,
2368
+ onValidate: b,
2369
+ onErrorChange: S,
2370
+ disabled: l
2371
+ }
2372
+ ),
2373
+ !o && /* @__PURE__ */ s(oe, { columnItem: h, width: p, children: /* @__PURE__ */ s(
2374
+ Z,
2375
+ {
2376
+ disabled: u,
2377
+ onClick: () => {
2378
+ r && r(!0);
2379
+ },
2380
+ variant: "outlined",
2381
+ size: "large",
2382
+ children: m.getString("ButtonSelectMessage")
2383
+ }
2384
+ ) }),
2385
+ g && /* @__PURE__ */ s(oe, { columnItem: F, width: p, children: /* @__PURE__ */ s(
2386
+ Z,
2387
+ {
2388
+ disabled: d,
2389
+ onClick: () => {
2390
+ a && a(!0);
2391
+ },
2392
+ variant: "outlined",
2393
+ size: "large",
2394
+ children: m.getString("ButtonSelectSignal")
2395
+ }
2396
+ ) })
2397
+ ] }),
2398
+ [$, l, L, m, b]
2399
+ );
2400
+ return i ? R : /* @__PURE__ */ s(
2401
+ me,
2402
+ {
2403
+ text: m.getString("LabelLinIdentifier"),
2404
+ summary: e,
2405
+ collapsible: c,
2406
+ collapsed: I,
2407
+ collapsedChange: N,
2408
+ children: R
2409
+ }
2410
+ );
2411
+ }
2412
+ function Yr({
2413
+ frame: e,
2414
+ onFrameChange: n,
2415
+ onErrorsChange: t = void 0,
2416
+ showSelectMessageDialogChange: r = void 0,
2417
+ showSelectSignalDialogChange: a = void 0,
2418
+ disableSelectMessageButton: l = !1,
2419
+ disableSelectSignalButton: u = !1,
2420
+ hideSection: d = !1,
2421
+ hideSelectMessageButton: i = !1,
2422
+ showSelectSignalButton: o = !1,
2423
+ collapsible: g = !1,
2424
+ collapsed: c = !1,
2425
+ collapsedChange: I = void 0
2426
+ }) {
2427
+ const N = le(), m = O(() => `${(e.id ?? 0).toString(N).toUpperCase()}`, [e.id, N]), f = w(
2428
+ (h) => {
2429
+ var L;
2430
+ const F = parseInt(h, h.startsWith("0x") ? 16 : N), p = (L = e.linFrameFlags) != null && L.flags ? { flags: [...e.linFrameFlags.flags] } : { flags: [] };
2431
+ if (F !== e.id || !ge(p, e.linFrameFlags)) {
2432
+ const S = { ...e };
2433
+ S.id = F, S.linFrameFlags = p, n(S);
2434
+ }
2435
+ },
2436
+ [e, N, n]
2437
+ );
2438
+ return /* @__PURE__ */ s(ce, { children: /* @__PURE__ */ s(
2439
+ vr,
2440
+ {
2441
+ linIdentifier: m,
2442
+ onLinIdentifierChange: f,
2443
+ onErrorsChange: t,
2444
+ showSelectMessageDialogChange: r,
2445
+ showSelectSignalDialogChange: a,
2446
+ disableSelectMessageButton: l,
2447
+ disableSelectSignalButton: u,
2448
+ hideSection: d,
2449
+ hideSelectMessageButton: i,
2450
+ showSelectSignalButton: o,
2451
+ collapsible: g,
2452
+ collapsed: c,
2453
+ collapsedChange: I
2454
+ }
2455
+ ) });
2456
+ }
2457
+ function Cr({
2458
+ linIdentifier: e,
2459
+ identifierGeneratorType: n,
2460
+ minLinIdentifier: t,
2461
+ maxLinIdentifier: r,
2462
+ onChange: a,
2463
+ onErrorsChange: l = void 0,
2464
+ linIdentifierGeneratorSettingsError: u = void 0,
2465
+ disabled: d = !1,
2466
+ collapsible: i = !1,
2467
+ collapsed: o = !1,
2468
+ collapsedChange: g = void 0,
2469
+ showSelectMessageDialogChange: c,
2470
+ showSignalValuesTable: I
2471
+ }) {
2472
+ const N = ne(), m = le(), [f, h] = U(!1), [F, p] = U(!1), [L, S] = U(!1), [v, M] = U(!1), [b, $] = U(!1), [R, k] = U(!1), _ = w(
2473
+ (D) => {
2474
+ let K = D;
2475
+ const Q = parseInt(K, K.startsWith("0x") ? 16 : m);
2476
+ return Number.isNaN(Q) || Q < 0 || Q > 63 ? (Number.isNaN(Q) || a(
2477
+ `${Q.toString(m).toUpperCase()}`,
2478
+ n,
2479
+ t,
2480
+ r
2481
+ ), { val: D, err: !0 }) : (a(
2482
+ `${Q.toString(m).toUpperCase()}`,
2483
+ n,
2484
+ t,
2485
+ r
2486
+ ), M(K.startsWith("0x")), { val: D, err: !1 });
2487
+ },
2488
+ [n, r, t, m, a]
2489
+ ), W = w(
2490
+ (D, K, Q) => {
2491
+ let G = D;
2492
+ const te = parseInt(G, G.startsWith("0x") ? 16 : m);
2493
+ return Number.isNaN(te) || te < 0 || te > 63 ? (Number.isNaN(te) || K(`${te.toString(m).toUpperCase()}`), { val: D, err: !0, id: te }) : (K(`${te.toString(m).toUpperCase()}`), Q(G.startsWith("0x")), { val: D, err: !1, id: te });
2494
+ },
2495
+ [m]
2496
+ ), j = w(
2497
+ (D) => {
2498
+ const K = W(
2499
+ D,
2500
+ (G) => a(e, n, G, r),
2501
+ (G) => $(G)
2502
+ ), Q = W(
2503
+ r,
2504
+ // eslint-disable-next-line @typescript-eslint/no-empty-function
2505
+ () => {
2506
+ },
2507
+ // eslint-disable-next-line @typescript-eslint/no-empty-function
2508
+ () => {
2509
+ }
2510
+ );
2511
+ return K.id >= Q.id ? K.err = !0 : Q.err && S(Q.err), { val: K.val, err: K.err };
2512
+ },
2513
+ [e, n, r, a, W]
2514
+ ), X = w(
2515
+ (D) => {
2516
+ const K = W(
2517
+ D,
2518
+ (G) => a(e, n, t, G),
2519
+ (G) => k(G)
2520
+ ), Q = W(
2521
+ t,
2522
+ // eslint-disable-next-line @typescript-eslint/no-empty-function
2523
+ () => {
2524
+ },
2525
+ // eslint-disable-next-line @typescript-eslint/no-empty-function
2526
+ () => {
2527
+ }
2528
+ );
2529
+ return Q.id >= K.id ? K.err = !0 : Q.err && p(Q.err), { val: K.val, err: K.err };
2530
+ },
2531
+ [e, n, t, a, W]
2532
+ ), P = w(
2533
+ (D) => {
2534
+ I(D === "constant"), a(e, D, t, r);
2535
+ },
2536
+ [e, t, r, a]
2537
+ );
2538
+ z(() => {
2539
+ l && l(
2540
+ n === "constant" && f || (n === "random" || n === "scan") && (F || L)
2541
+ ), u && (u.current = n === "constant" && f || (n === "random" || n === "scan") && (F || L));
2542
+ }, [
2543
+ f,
2544
+ u,
2545
+ n,
2546
+ L,
2547
+ F,
2548
+ l
2549
+ ]);
2550
+ const A = de(), C = Ne(A), x = O(() => {
2551
+ const D = parseInt(e, e.startsWith("0x") ? 16 : m);
2552
+ return v ? `0x${D.toString(16).toUpperCase()}` : D.toString(m).toUpperCase();
2553
+ }, [v, e, m]), B = O(() => {
2554
+ const D = parseInt(t, t.startsWith("0x") ? 16 : m);
2555
+ return b ? `0x${D.toString(16).toUpperCase()}` : D.toString(m).toUpperCase();
2556
+ }, [b, t, m]), y = O(() => {
2557
+ const D = parseInt(r, r.startsWith("0x") ? 16 : m);
2558
+ return R ? `0x${D.toString(16).toUpperCase()}` : D.toString(m).toUpperCase();
2559
+ }, [R, r, m]);
2560
+ return /* @__PURE__ */ s(
2561
+ me,
2562
+ {
2563
+ text: N.getString("LabelLinIdentifier"),
2564
+ summary: n === "constant" ? e : n === "random" ? `${N.getString("LabelRandom")} ${t}-${r}` : `${N.getString("LabelScan")} ${t}-${r}`,
2565
+ collapsible: i,
2566
+ collapsed: o,
2567
+ collapsedChange: g,
2568
+ children: /* @__PURE__ */ T(
2569
+ fn,
2570
+ {
2571
+ id: "identifier-radio-group",
2572
+ value: n,
2573
+ onChange: (D) => {
2574
+ P(D);
2575
+ },
2576
+ children: [
2577
+ /* @__PURE__ */ T(ue, { spacing: 4, children: [
2578
+ /* @__PURE__ */ s(
2579
+ fe,
2580
+ {
2581
+ id: "constant-id-radio",
2582
+ value: "constant",
2583
+ label: N.getString("LabelConstantIdentifier"),
2584
+ sx: { marginLeft: "-11px !important" },
2585
+ disabled: d
2586
+ }
2587
+ ),
2588
+ /* @__PURE__ */ s(
2589
+ re,
2590
+ {
2591
+ id: "constant-id",
2592
+ fullWidth: !0,
2593
+ value: x,
2594
+ error: !d && n === "constant" && f,
2595
+ onErrorChange: h,
2596
+ onValidate: _,
2597
+ disabled: d || n !== "constant",
2598
+ required: n === "constant"
2599
+ }
2600
+ ),
2601
+ /* @__PURE__ */ s(oe, { columnItem: A, width: C, children: /* @__PURE__ */ s(Z, { onClick: () => c(!0), variant: "outlined", size: "large", children: N.getString("ButtonSelectMessage") }) })
2602
+ ] }),
2603
+ /* @__PURE__ */ T(ue, { spacing: 4, children: [
2604
+ /* @__PURE__ */ s(
2605
+ fe,
2606
+ {
2607
+ id: "random-identifier-radio",
2608
+ value: "random",
2609
+ label: N.getString("LabelRandomIdentifier"),
2610
+ sx: { marginLeft: "-11px !important" },
2611
+ disabled: d
2612
+ }
2613
+ ),
2614
+ /* @__PURE__ */ s(
2615
+ fe,
2616
+ {
2617
+ id: "scan-identifier-radio",
2618
+ value: "scan",
2619
+ label: N.getString("LabelScanIdentifier"),
2620
+ disabled: d
2621
+ }
2622
+ ),
2623
+ /* @__PURE__ */ s(
2624
+ re,
2625
+ {
2626
+ id: "identifier-min",
2627
+ disabled: d || n !== "random" && n !== "scan",
2628
+ required: n === "random" || n === "scan",
2629
+ fullWidth: !0,
2630
+ value: B,
2631
+ error: !d && (n === "random" || n === "scan") && F,
2632
+ onErrorChange: p,
2633
+ onValidate: j,
2634
+ startAdornment: N.getString("LabelFrom"),
2635
+ sxStartAdornment: { marginBottom: 0.8 }
2636
+ }
2637
+ ),
2638
+ /* @__PURE__ */ s(
2639
+ re,
2640
+ {
2641
+ id: "identifier-max",
2642
+ disabled: d || n !== "random" && n !== "scan",
2643
+ required: n === "random" || n === "scan",
2644
+ fullWidth: !0,
2645
+ value: y,
2646
+ error: !d && (n === "random" || n === "scan") && L,
2647
+ onErrorChange: S,
2648
+ onValidate: X,
2649
+ startAdornment: N.getString("LabelTo"),
2650
+ sxStartAdornment: { marginBottom: 0.8 }
2651
+ }
2652
+ )
2653
+ ] })
2654
+ ]
2655
+ }
2656
+ )
2657
+ }
2658
+ );
2659
+ }
2660
+ function Jr({
2661
+ settings: e,
2662
+ onSettingsChange: n,
2663
+ onErrorsChange: t = void 0,
2664
+ linIdentifierGeneratorSettingsError: r = void 0,
2665
+ disabled: a = !1,
2666
+ collapsible: l = !1,
2667
+ collapsed: u = !1,
2668
+ collapsedChange: d = void 0,
2669
+ showSelectMessageDialogChange: i,
2670
+ showSignalValuesTable: o
2671
+ }) {
2672
+ var h;
2673
+ const g = le(), c = O(() => {
2674
+ var p;
2675
+ return `${(((p = e.frame) == null ? void 0 : p.id) ?? 0).toString(g).toUpperCase()}`;
2676
+ }, [g, (h = e.frame) == null ? void 0 : h.id]), I = O(() => `${(e.identifierMin ?? 0).toString(g).toUpperCase()}`, [g, e.identifierMin]), N = O(() => `${(e.identifierMax ?? 0).toString(g).toUpperCase()}`, [g, e.identifierMax]), m = O(() => e.randomIdentifier === !0 ? "random" : e.scanIdentifier === !0 ? "scan" : "constant", [e.randomIdentifier, e.scanIdentifier]), f = w(
2677
+ (F, p, L, S) => {
2678
+ var R, k, _, W;
2679
+ const v = parseInt(F, F.startsWith("0x") ? 16 : g), M = (k = (R = e.frame) == null ? void 0 : R.linFrameFlags) != null && k.flags ? { flags: [...e.frame.linFrameFlags.flags] } : { flags: [] }, b = parseInt(L, L.startsWith("0x") ? 16 : g), $ = parseInt(S, S.startsWith("0x") ? 16 : g);
2680
+ if (v !== ((_ = e.frame) == null ? void 0 : _.id) || !ge(M, (W = e.frame) == null ? void 0 : W.linFrameFlags) || p !== m || b !== e.identifierMin || $ !== e.identifierMax) {
2681
+ const j = { ...e };
2682
+ j.frame = e.frame ? { ...e.frame } : an.fromPartial({
2683
+ id: 0,
2684
+ linFrameFlags: void 0,
2685
+ data: Array.from({ length: 8 }, () => 0)
2686
+ }), j.frame.id = v, j.frame.linFrameFlags = M, p === "constant" ? (j.randomIdentifier = !1, j.scanIdentifier = !1) : p === "random" ? (j.randomIdentifier = !0, j.scanIdentifier = !1) : p === "scan" && (j.randomIdentifier = !1, j.scanIdentifier = !0), j.identifierMin = b, j.identifierMax = $, n(j);
2687
+ }
2688
+ },
2689
+ [m, g, n, e]
2690
+ );
2691
+ return /* @__PURE__ */ s(
2692
+ Cr,
2693
+ {
2694
+ linIdentifier: c,
2695
+ identifierGeneratorType: m,
2696
+ minLinIdentifier: I,
2697
+ maxLinIdentifier: N,
2698
+ onChange: f,
2699
+ onErrorsChange: t,
2700
+ linIdentifierGeneratorSettingsError: r,
2701
+ disabled: a,
2702
+ collapsible: l,
2703
+ collapsed: u,
2704
+ collapsedChange: d,
2705
+ showSelectMessageDialogChange: i,
2706
+ showSignalValuesTable: o
2707
+ }
2708
+ );
2709
+ }
2710
+ const Zr = V(xe)(() => ({
1912
2711
  height: "100%",
1913
2712
  width: "100%",
1914
2713
  padding: "4px",
1915
2714
  overflow: "auto"
1916
2715
  }));
1917
2716
  export {
1918
- cr as CanChannelSelectControl,
1919
- zt as CanIdentifierControl,
1920
- sr as CanIdentifierFrameControl,
1921
- Kt as CanIdentifierGeneratorControl,
1922
- ur as CanIdentifierGeneratorSettingsControl,
1923
- br as CanKingDataProvider,
1924
- Ae as CheckboxControl,
1925
- Ft as ColumnItemControl,
1926
- dr as ContextMenu,
1927
- mr as DevicesContext,
1928
- wt as DropdownButton,
1929
- er as DropdownButtonTextItems,
1930
- nr as DropdownPanel,
1931
- fr as FillBox,
1932
- de as FormControlRow,
1933
- tr as InlineEditor,
1934
- pr as LocalizedStrings,
1935
- vr as LogMessagesContext,
1936
- xr as MeasurementSetupContext,
1937
- Cr as MeasurementStatusContext,
1938
- rr as NumberRangeControl,
1939
- te as OneLineButton,
1940
- Sr as OnlineStatusContext,
1941
- ie as RadioControl,
1942
- Et as RadioGroupControl,
1943
- Nr as RunningPeriodicTransmissionsContext,
1944
- fe as SectionControl,
1945
- Ie as SelectControl,
1946
- ar as SizedBox,
1947
- lr as TableControl,
1948
- ir as TabsPanel,
1949
- Lt as TextControl,
1950
- or as ToolbarControl,
1951
- yr as UserSettingsContext,
1952
- G as ValidateableTextControl,
1953
- Ir as WorkspacePanesContext,
1954
- $r as addEventListener,
1955
- Fr as removeEventListener,
1956
- It as useColumnItem,
1957
- $t as useColumnItems
2717
+ Qr as CanChannelSelectControl,
2718
+ pr as CanIdentifierControl,
2719
+ Hr as CanIdentifierFrameControl,
2720
+ Sr as CanIdentifierGeneratorControl,
2721
+ Kr as CanIdentifierGeneratorSettingsControl,
2722
+ ea as CanKingDataProvider,
2723
+ sn as CheckboxControl,
2724
+ oe as ColumnItemControl,
2725
+ qr as ContextMenu,
2726
+ na as DevicesContext,
2727
+ nr as DropdownButton,
2728
+ Er as DropdownButtonTextItems,
2729
+ Br as DropdownPanel,
2730
+ Zr as FillBox,
2731
+ ue as FormControlRow,
2732
+ Ur as InlineEditor,
2733
+ Xr as LinChannelSelectControl,
2734
+ vr as LinIdentifierControl,
2735
+ Yr as LinIdentifierFrameControl,
2736
+ Cr as LinIdentifierGeneratorControl,
2737
+ Jr as LinIdentifierGeneratorSettingsControl,
2738
+ ta as LocalizedStrings,
2739
+ ra as LogMessagesContext,
2740
+ aa as MeasurementSetupContext,
2741
+ ia as MeasurementStatusContext,
2742
+ yr as NumberRangeControl,
2743
+ Z as OneLineButton,
2744
+ sa as OnlineStatusContext,
2745
+ fe as RadioControl,
2746
+ fn as RadioGroupControl,
2747
+ la as RunningPeriodicTransmissionsContext,
2748
+ me as SectionControl,
2749
+ Me as SelectControl,
2750
+ Or as SelectMessageDialog,
2751
+ Pr as SelectSignalControl,
2752
+ cr as SelectSignalDialog,
2753
+ jr as SizedBox,
2754
+ Dr as TableControl,
2755
+ zr as TabsPanel,
2756
+ lr as TextControl,
2757
+ Tr as ToolbarControl,
2758
+ da as UserSettingsContext,
2759
+ re as ValidateableTextControl,
2760
+ oa as WorkspacePanesContext,
2761
+ bn as addEventListener,
2762
+ pn as removeEventListener,
2763
+ de as useColumnItem,
2764
+ Ne as useColumnItems,
2765
+ _e as useMessageDatabases
1958
2766
  };