@kvaser/canking-api 7.1.0-beta.231

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 (554) hide show
  1. package/EULA.pdf +0 -0
  2. package/README.md +87 -0
  3. package/REDISTRIBUTABLES.txt +5 -0
  4. package/dist/ElectronAPIFake.js +1 -0
  5. package/dist/ElectronAPIFake.mjs +266 -0
  6. package/dist/controls/CanChannelSelectControl.d.ts +35 -0
  7. package/dist/controls/CanIdentifierControl.d.ts +176 -0
  8. package/dist/controls/CanKingDataProvider.d.ts +116 -0
  9. package/dist/controls/CheckboxControl.d.ts +30 -0
  10. package/dist/controls/ContextMenu.d.ts +44 -0
  11. package/dist/controls/DropdownButton.d.ts +73 -0
  12. package/dist/controls/DropdownPanel.d.ts +41 -0
  13. package/dist/controls/FillBox.d.ts +8 -0
  14. package/dist/controls/FormControlRow.d.ts +30 -0
  15. package/dist/controls/InlineEditor.d.ts +26 -0
  16. package/dist/controls/LocalizedStrings.d.ts +21 -0
  17. package/dist/controls/NumberRangeControl.d.ts +80 -0
  18. package/dist/controls/OneLineButton.d.ts +9 -0
  19. package/dist/controls/RadioControl.d.ts +25 -0
  20. package/dist/controls/RadioGroupControl.d.ts +31 -0
  21. package/dist/controls/SectionControl.d.ts +40 -0
  22. package/dist/controls/SelectControl.d.ts +55 -0
  23. package/dist/controls/SizedBox.d.ts +11 -0
  24. package/dist/controls/TableControl.d.ts +61 -0
  25. package/dist/controls/TabsPanel.d.ts +5 -0
  26. package/dist/controls/TextControl.d.ts +56 -0
  27. package/dist/controls/ToolbarControl.d.ts +143 -0
  28. package/dist/controls/ValidateableTextControl.d.ts +82 -0
  29. package/dist/controls/index.d.ts +103 -0
  30. package/dist/controls.js +1 -0
  31. package/dist/controls.mjs +1714 -0
  32. package/dist/grpc/index.d.ts +7 -0
  33. package/dist/grpc.js +1 -0
  34. package/dist/grpc.mjs +917 -0
  35. package/dist/hooks/index.d.ts +112 -0
  36. package/dist/hooks.js +1 -0
  37. package/dist/hooks.mjs +28 -0
  38. package/dist/icons/index.d.ts +121 -0
  39. package/dist/icons.js +1 -0
  40. package/dist/icons.mjs +1237 -0
  41. package/dist/index.d.ts +6 -0
  42. package/dist/index.js +1 -0
  43. package/dist/index.mjs +596 -0
  44. package/dist/ipc/index.d.ts +160 -0
  45. package/dist/ipc.js +1 -0
  46. package/dist/ipc.mjs +123 -0
  47. package/dist/measurement_settings.js +1 -0
  48. package/dist/measurement_settings.mjs +4132 -0
  49. package/dist/models/DataBuffer.d.ts +100 -0
  50. package/dist/models/ElectronAPIFake.d.ts +13 -0
  51. package/dist/models/Point.d.ts +30 -0
  52. package/dist/models/index.d.ts +95 -0
  53. package/dist/models.js +1 -0
  54. package/dist/models.mjs +448 -0
  55. package/dist/protos/app_params.d.ts +208 -0
  56. package/dist/protos/app_service.d.ts +354 -0
  57. package/dist/protos/common_params.d.ts +33 -0
  58. package/dist/protos/device_params.d.ts +271 -0
  59. package/dist/protos/device_service.d.ts +154 -0
  60. package/dist/protos/frame_params.d.ts +189 -0
  61. package/dist/protos/google/protobuf/empty.d.ts +35 -0
  62. package/dist/protos/measurement_params.d.ts +308 -0
  63. package/dist/protos/measurement_service.d.ts +1333 -0
  64. package/dist/protos/measurement_settings.d.ts +453 -0
  65. package/dist/protos/signal_params.d.ts +72 -0
  66. package/dist/protos/status_params.d.ts +118 -0
  67. package/dist/status_params.js +1 -0
  68. package/dist/status_params.mjs +5045 -0
  69. package/doc/.nojekyll +1 -0
  70. package/doc/assets/highlight.css +120 -0
  71. package/doc/assets/icons.js +18 -0
  72. package/doc/assets/icons.svg +1 -0
  73. package/doc/assets/main.js +60 -0
  74. package/doc/assets/material-style.css +247 -0
  75. package/doc/assets/navigation.js +1 -0
  76. package/doc/assets/search.js +1 -0
  77. package/doc/assets/style.css +1493 -0
  78. package/doc/classes/controls.LocalizedStrings.html +177 -0
  79. package/doc/classes/models.DataBuffer.html +205 -0
  80. package/doc/classes/models.DataBufferView.html +193 -0
  81. package/doc/classes/models.Point.html +187 -0
  82. package/doc/enums/models.AccessMode.html +188 -0
  83. package/doc/enums/models.AppEvent.html +179 -0
  84. package/doc/enums/models.CanChannelCap.html +217 -0
  85. package/doc/enums/models.CanFrameFlag.html +200 -0
  86. package/doc/enums/models.CanMode.html +180 -0
  87. package/doc/enums/models.DecimalChar.html +178 -0
  88. package/doc/enums/models.DeviceEvent.html +179 -0
  89. package/doc/enums/models.FileConflictAction.html +180 -0
  90. package/doc/enums/models.LinFrameFlag.html +185 -0
  91. package/doc/enums/models.LogFileFormat.html +221 -0
  92. package/doc/enums/models.LogLevel.html +195 -0
  93. package/doc/enums/models.LogReplayState.html +179 -0
  94. package/doc/enums/models.MeasurementEvent.html +185 -0
  95. package/doc/enums/models.MessageLoggerState.html +180 -0
  96. package/doc/enums/models.Protocols.html +182 -0
  97. package/doc/enums/models.Separator.html +178 -0
  98. package/doc/enums/models.SignalEncoding.html +178 -0
  99. package/doc/enums/models.SignalType.html +185 -0
  100. package/doc/enums/models.SignalValueTriggerOperator.html +186 -0
  101. package/doc/enums/models.StatusLevel.html +180 -0
  102. package/doc/enums/models.TimeReference.html +178 -0
  103. package/doc/enums/models.TriggerOperator.html +179 -0
  104. package/doc/functions/controls.CanChannelSelectControl.html +177 -0
  105. package/doc/functions/controls.CanIdentifierControl.html +177 -0
  106. package/doc/functions/controls.CanIdentifierFrameControl.html +177 -0
  107. package/doc/functions/controls.CanIdentifierGeneratorControl.html +177 -0
  108. package/doc/functions/controls.CanIdentifierGeneratorSettingsControl.html +178 -0
  109. package/doc/functions/controls.CanKingDataProvider.html +182 -0
  110. package/doc/functions/controls.CheckboxControl.html +177 -0
  111. package/doc/functions/controls.ContextMenu.html +177 -0
  112. package/doc/functions/controls.DropdownButton.html +177 -0
  113. package/doc/functions/controls.DropdownButtonTextItems.html +177 -0
  114. package/doc/functions/controls.DropdownPanel.html +177 -0
  115. package/doc/functions/controls.FillBox.html +206 -0
  116. package/doc/functions/controls.FormControlRow.html +177 -0
  117. package/doc/functions/controls.InlineEditor.html +177 -0
  118. package/doc/functions/controls.NumberRangeControl.html +177 -0
  119. package/doc/functions/controls.OneLineButton.html +205 -0
  120. package/doc/functions/controls.RadioControl.html +177 -0
  121. package/doc/functions/controls.RadioGroupControl.html +177 -0
  122. package/doc/functions/controls.SectionControl.html +177 -0
  123. package/doc/functions/controls.SelectControl.html +177 -0
  124. package/doc/functions/controls.SizedBox.html +206 -0
  125. package/doc/functions/controls.TableControl.html +177 -0
  126. package/doc/functions/controls.TabsPanel.html +205 -0
  127. package/doc/functions/controls.TextControl.html +177 -0
  128. package/doc/functions/controls.ToolbarControl.html +177 -0
  129. package/doc/functions/controls.ValidateableTextControl.html +177 -0
  130. package/doc/functions/hooks.useDevices.html +176 -0
  131. package/doc/functions/hooks.useIsOnline.html +176 -0
  132. package/doc/functions/hooks.useLanguage.html +176 -0
  133. package/doc/functions/hooks.useLocalizedStrings.html +176 -0
  134. package/doc/functions/hooks.useLogMessages.html +176 -0
  135. package/doc/functions/hooks.useMaxDataBytes.html +175 -0
  136. package/doc/functions/hooks.useMeasurementSetup.html +176 -0
  137. package/doc/functions/hooks.useMeasurementStatus.html +176 -0
  138. package/doc/functions/hooks.useMessageLogFileFormats.html +175 -0
  139. package/doc/functions/hooks.useNewMeasurementData.html +178 -0
  140. package/doc/functions/hooks.useNodeStatus.html +176 -0
  141. package/doc/functions/hooks.useNumericRadix.html +176 -0
  142. package/doc/functions/hooks.useOnlineStatus.html +176 -0
  143. package/doc/functions/hooks.useOverallStatusLevel.html +176 -0
  144. package/doc/functions/hooks.useProjectData.html +178 -0
  145. package/doc/functions/hooks.useRecentProjectFiles.html +175 -0
  146. package/doc/functions/hooks.useRunningPeriodicTransmissions.html +176 -0
  147. package/doc/functions/hooks.useSessionData.html +178 -0
  148. package/doc/functions/hooks.useUserSettings.html +176 -0
  149. package/doc/functions/hooks.useWorkspacePaneWithId.html +175 -0
  150. package/doc/functions/icons.AddIcon.html +175 -0
  151. package/doc/functions/icons.ArrowDownIcon.html +175 -0
  152. package/doc/functions/icons.ArrowLeftIcon.html +175 -0
  153. package/doc/functions/icons.ArrowRightIcon.html +175 -0
  154. package/doc/functions/icons.ArrowUpIcon.html +175 -0
  155. package/doc/functions/icons.BusIsOffIcon.html +175 -0
  156. package/doc/functions/icons.BusIsOnIcon.html +175 -0
  157. package/doc/functions/icons.CloseIcon.html +175 -0
  158. package/doc/functions/icons.CopyIcon.html +175 -0
  159. package/doc/functions/icons.DarkModeIcon.html +175 -0
  160. package/doc/functions/icons.DeleteIcon.html +175 -0
  161. package/doc/functions/icons.DisableIcon.html +175 -0
  162. package/doc/functions/icons.EditIcon.html +175 -0
  163. package/doc/functions/icons.FilterIcon.html +175 -0
  164. package/doc/functions/icons.FixedPositionIcon.html +175 -0
  165. package/doc/functions/icons.LeaveFullScreenIcon.html +175 -0
  166. package/doc/functions/icons.LightModeIcon.html +175 -0
  167. package/doc/functions/icons.LineArrowDownIcon.html +175 -0
  168. package/doc/functions/icons.LineArrowUpIcon.html +175 -0
  169. package/doc/functions/icons.MaximizeWindowIcon.html +175 -0
  170. package/doc/functions/icons.MeasurementSetupIcon.html +175 -0
  171. package/doc/functions/icons.MoreHorizIcon.html +175 -0
  172. package/doc/functions/icons.MoreVertIcon.html +175 -0
  173. package/doc/functions/icons.NewIcon.html +175 -0
  174. package/doc/functions/icons.OpenExternallyIcon.html +175 -0
  175. package/doc/functions/icons.OpenIcon.html +175 -0
  176. package/doc/functions/icons.PauseIcon.html +175 -0
  177. package/doc/functions/icons.PlayIcon.html +175 -0
  178. package/doc/functions/icons.PlaySolidIcon.html +175 -0
  179. package/doc/functions/icons.SaveIcon.html +175 -0
  180. package/doc/functions/icons.SelectAllIcon.html +175 -0
  181. package/doc/functions/icons.ServiceIconActive.html +175 -0
  182. package/doc/functions/icons.ServiceIconInactive.html +175 -0
  183. package/doc/functions/icons.SettingsIcon.html +175 -0
  184. package/doc/functions/icons.StopIcon.html +175 -0
  185. package/doc/functions/icons.StopSolidIcon.html +175 -0
  186. package/doc/functions/icons.ToolsPanelHiddenIcon.html +175 -0
  187. package/doc/functions/icons.ToolsPanelVisibleIcon.html +175 -0
  188. package/doc/functions/icons.UnmaximizeWindowIcon.html +175 -0
  189. package/doc/functions/icons.WorkspacesIcon.html +175 -0
  190. package/doc/functions/ipc.addDataProcessor.html +178 -0
  191. package/doc/functions/ipc.addSource.html +176 -0
  192. package/doc/functions/ipc.addTarget.html +176 -0
  193. package/doc/functions/ipc.connectNodes.html +177 -0
  194. package/doc/functions/ipc.deleteDataProcessor.html +176 -0
  195. package/doc/functions/ipc.deleteSource.html +176 -0
  196. package/doc/functions/ipc.deleteTarget.html +176 -0
  197. package/doc/functions/ipc.disableNode.html +176 -0
  198. package/doc/functions/ipc.disconnectNodes.html +177 -0
  199. package/doc/functions/ipc.enableNode.html +176 -0
  200. package/doc/functions/ipc.getFrameDefinitions.html +178 -0
  201. package/doc/functions/ipc.getLogger.html +177 -0
  202. package/doc/functions/ipc.getMessageLogFileFormats.html +176 -0
  203. package/doc/functions/ipc.sendCanMessage.html +179 -0
  204. package/doc/functions/ipc.sendMessage.html +177 -0
  205. package/doc/functions/ipc.showMessageBox.html +177 -0
  206. package/doc/functions/ipc.showQuestionBox.html +183 -0
  207. package/doc/functions/ipc.startLogReplay.html +176 -0
  208. package/doc/functions/ipc.startMeasurement.html +175 -0
  209. package/doc/functions/ipc.startPeriodicTransmission.html +177 -0
  210. package/doc/functions/ipc.stopLogReplay.html +176 -0
  211. package/doc/functions/ipc.stopMeasurement.html +175 -0
  212. package/doc/functions/ipc.stopPeriodicTransmission.html +176 -0
  213. package/doc/functions/ipc.updateDataProcessor.html +176 -0
  214. package/doc/functions/ipc.updateSource.html +176 -0
  215. package/doc/functions/ipc.updateTarget.html +176 -0
  216. package/doc/functions/models.accessModeFromJSON.html +174 -0
  217. package/doc/functions/models.accessModeToJSON.html +174 -0
  218. package/doc/functions/models.appEventFromJSON.html +174 -0
  219. package/doc/functions/models.appEventToJSON.html +174 -0
  220. package/doc/functions/models.canChannelCapFromJSON.html +174 -0
  221. package/doc/functions/models.canChannelCapToJSON.html +174 -0
  222. package/doc/functions/models.canFrameFlagFromJSON.html +174 -0
  223. package/doc/functions/models.canFrameFlagToJSON.html +174 -0
  224. package/doc/functions/models.canModeFromJSON.html +174 -0
  225. package/doc/functions/models.canModeToJSON.html +174 -0
  226. package/doc/functions/models.createElectronApiFake.html +177 -0
  227. package/doc/functions/models.decimalCharFromJSON.html +174 -0
  228. package/doc/functions/models.decimalCharToJSON.html +174 -0
  229. package/doc/functions/models.decimalToFixed.html +174 -0
  230. package/doc/functions/models.decimalToHex.html +174 -0
  231. package/doc/functions/models.deviceEventFromJSON.html +174 -0
  232. package/doc/functions/models.deviceEventToJSON.html +174 -0
  233. package/doc/functions/models.fileConflictActionFromJSON.html +174 -0
  234. package/doc/functions/models.fileConflictActionToJSON.html +174 -0
  235. package/doc/functions/models.linFrameFlagFromJSON.html +174 -0
  236. package/doc/functions/models.linFrameFlagToJSON.html +174 -0
  237. package/doc/functions/models.logFileFormatFromJSON.html +174 -0
  238. package/doc/functions/models.logFileFormatToJSON.html +174 -0
  239. package/doc/functions/models.logLevelFromJSON.html +174 -0
  240. package/doc/functions/models.logLevelToJSON.html +174 -0
  241. package/doc/functions/models.logReplayStateFromJSON.html +174 -0
  242. package/doc/functions/models.logReplayStateToJSON.html +174 -0
  243. package/doc/functions/models.longToNumber.html +174 -0
  244. package/doc/functions/models.measurementEventFromJSON.html +174 -0
  245. package/doc/functions/models.measurementEventToJSON.html +174 -0
  246. package/doc/functions/models.messageLoggerStateFromJSON.html +174 -0
  247. package/doc/functions/models.messageLoggerStateToJSON.html +174 -0
  248. package/doc/functions/models.protocolsFromJSON.html +174 -0
  249. package/doc/functions/models.protocolsToJSON.html +174 -0
  250. package/doc/functions/models.separatorFromJSON.html +174 -0
  251. package/doc/functions/models.separatorToJSON.html +174 -0
  252. package/doc/functions/models.signalEncodingFromJSON.html +174 -0
  253. package/doc/functions/models.signalEncodingToJSON.html +174 -0
  254. package/doc/functions/models.signalTypeFromJSON.html +174 -0
  255. package/doc/functions/models.signalTypeToJSON.html +174 -0
  256. package/doc/functions/models.signalValueTriggerOperatorFromJSON.html +174 -0
  257. package/doc/functions/models.signalValueTriggerOperatorToJSON.html +174 -0
  258. package/doc/functions/models.statusLevelFromJSON.html +174 -0
  259. package/doc/functions/models.statusLevelToJSON.html +174 -0
  260. package/doc/functions/models.timeReferenceFromJSON.html +174 -0
  261. package/doc/functions/models.timeReferenceToJSON.html +174 -0
  262. package/doc/functions/models.triggerOperatorFromJSON.html +174 -0
  263. package/doc/functions/models.triggerOperatorToJSON.html +174 -0
  264. package/doc/hierarchy.html +174 -0
  265. package/doc/index.html +244 -0
  266. package/doc/interfaces/controls.ButtonGroupProps.html +183 -0
  267. package/doc/interfaces/controls.ButtonProps.html +195 -0
  268. package/doc/interfaces/controls.CanChannelSelectControlProps.html +194 -0
  269. package/doc/interfaces/controls.CanIdentifierControlProps.html +195 -0
  270. package/doc/interfaces/controls.CanIdentifierFrameControlProps.html +190 -0
  271. package/doc/interfaces/controls.CanIdentifierGeneratorControlProps.html +208 -0
  272. package/doc/interfaces/controls.CanIdentifierGeneratorSettingsControlProps.html +194 -0
  273. package/doc/interfaces/controls.CheckboxControlProps.html +190 -0
  274. package/doc/interfaces/controls.ContextMenuProps.html +182 -0
  275. package/doc/interfaces/controls.DropdownButtonChildrenProps.html +177 -0
  276. package/doc/interfaces/controls.DropdownButtonProps.html +193 -0
  277. package/doc/interfaces/controls.DropdownButtonTextItemsProps.html +183 -0
  278. package/doc/interfaces/controls.DropdownPanelProps.html +193 -0
  279. package/doc/interfaces/controls.FormControlRowProps.html +181 -0
  280. package/doc/interfaces/controls.ILocalizedStrings.html +176 -0
  281. package/doc/interfaces/controls.InlineEditorProps.html +186 -0
  282. package/doc/interfaces/controls.LabelProps.html +179 -0
  283. package/doc/interfaces/controls.NumberRangeControlProps.html +225 -0
  284. package/doc/interfaces/controls.RadioControlProps.html +187 -0
  285. package/doc/interfaces/controls.RadioGroupControlProps.html +182 -0
  286. package/doc/interfaces/controls.SectionControlProps.html +190 -0
  287. package/doc/interfaces/controls.SelectControlProps.html +205 -0
  288. package/doc/interfaces/controls.TableColumn.html +185 -0
  289. package/doc/interfaces/controls.TableControlProps.html +197 -0
  290. package/doc/interfaces/controls.TextControlProps.html +214 -0
  291. package/doc/interfaces/controls.ToggleButtonGroupProps.html +190 -0
  292. package/doc/interfaces/controls.ToggleButtonProps.html +187 -0
  293. package/doc/interfaces/controls.ToolbarControlProps.html +191 -0
  294. package/doc/interfaces/controls.ValidateableTextControlProps.html +233 -0
  295. package/doc/interfaces/controls.toolbarItem.html +185 -0
  296. package/doc/interfaces/ipc.ILogger.html +181 -0
  297. package/doc/interfaces/models.AboutInformation.html +181 -0
  298. package/doc/interfaces/models.ActivateLicenseRequest.html +181 -0
  299. package/doc/interfaces/models.AddAllConnectedCanChannelsRequest.html +177 -0
  300. package/doc/interfaces/models.AddAllConnectedLinChannelsRequest.html +177 -0
  301. package/doc/interfaces/models.AddOrUpdateDataProcessorRequest.html +185 -0
  302. package/doc/interfaces/models.AddOrUpdateSourceRequest.html +181 -0
  303. package/doc/interfaces/models.AddOrUpdateTargetRequest.html +181 -0
  304. package/doc/interfaces/models.ApiPreferences.html +183 -0
  305. package/doc/interfaces/models.AppEventArgs.html +179 -0
  306. package/doc/interfaces/models.BaseNodeProperties.html +181 -0
  307. package/doc/interfaces/models.BusStatus.html +190 -0
  308. package/doc/interfaces/models.CanBusParamLimits.html +180 -0
  309. package/doc/interfaces/models.CanBusParams.html +197 -0
  310. package/doc/interfaces/models.CanBusSpeed.html +187 -0
  311. package/doc/interfaces/models.CanBusSpeedInfo.html +193 -0
  312. package/doc/interfaces/models.CanChannelCapacity.html +180 -0
  313. package/doc/interfaces/models.CanChannelConfiguration.html +185 -0
  314. package/doc/interfaces/models.CanFDBusSpeedCombination.html +177 -0
  315. package/doc/interfaces/models.CanFDBusSpeedInfo.html +191 -0
  316. package/doc/interfaces/models.CanFrameFlags.html +177 -0
  317. package/doc/interfaces/models.CanMessageFilterSettings.html +178 -0
  318. package/doc/interfaces/models.Channel.html +180 -0
  319. package/doc/interfaces/models.ChannelSettings.html +193 -0
  320. package/doc/interfaces/models.ClearLinMessageRequest.html +180 -0
  321. package/doc/interfaces/models.ConnectNodesRequest.html +178 -0
  322. package/doc/interfaces/models.DataProcessingStatus.html +179 -0
  323. package/doc/interfaces/models.DataProcessorNodeProperties.html +181 -0
  324. package/doc/interfaces/models.DatabasesSettings.html +176 -0
  325. package/doc/interfaces/models.Device.html +182 -0
  326. package/doc/interfaces/models.DeviceEventArgs.html +177 -0
  327. package/doc/interfaces/models.Devices.html +175 -0
  328. package/doc/interfaces/models.DisconnectNodesRequest.html +178 -0
  329. package/doc/interfaces/models.Empty.html +182 -0
  330. package/doc/interfaces/models.ErrorStatus.html +177 -0
  331. package/doc/interfaces/models.Frame.html +203 -0
  332. package/doc/interfaces/models.FrameDefinition.html +185 -0
  333. package/doc/interfaces/models.FrameDefinitions.html +175 -0
  334. package/doc/interfaces/models.FramePropertyValue.html +177 -0
  335. package/doc/interfaces/models.FrameReceivedTrigger.html +179 -0
  336. package/doc/interfaces/models.Frame_PropertiesEntry.html +176 -0
  337. package/doc/interfaces/models.Frames.html +175 -0
  338. package/doc/interfaces/models.GetCanChannelBusSpeedsRequest.html +177 -0
  339. package/doc/interfaces/models.GetCanChannelBusSpeedsResponse.html +179 -0
  340. package/doc/interfaces/models.GetCanFdBusSpeedsRequest.html +179 -0
  341. package/doc/interfaces/models.GetCanFdBusSpeedsResponse.html +177 -0
  342. package/doc/interfaces/models.GetChannelsFromLogFileRequest.html +178 -0
  343. package/doc/interfaces/models.GetChannelsFromLogFileResponse.html +177 -0
  344. package/doc/interfaces/models.GetClassicCanBusSpeedsRequest.html +178 -0
  345. package/doc/interfaces/models.GetClassicCanBusSpeedsResponse.html +177 -0
  346. package/doc/interfaces/models.GetDataProcessorResponse.html +176 -0
  347. package/doc/interfaces/models.GetDevicesRequest.html +177 -0
  348. package/doc/interfaces/models.GetDevicesResponse.html +176 -0
  349. package/doc/interfaces/models.GetFrameDefinitionsFromDatabaseFilesRequest.html +178 -0
  350. package/doc/interfaces/models.GetLicensesResponse.html +177 -0
  351. package/doc/interfaces/models.GetLogFileFormatsRequest.html +180 -0
  352. package/doc/interfaces/models.GetLogFileFormatsResponse.html +183 -0
  353. package/doc/interfaces/models.GetLogLevelResponse.html +177 -0
  354. package/doc/interfaces/models.GetScheduleTablesFromDatabaseFilesRequest.html +178 -0
  355. package/doc/interfaces/models.GetScheduleTablesFromDatabaseFilesResponse.html +177 -0
  356. package/doc/interfaces/models.GetServiceExtensionInfoRequest.html +181 -0
  357. package/doc/interfaces/models.GetServiceExtensionInfoResponse.html +187 -0
  358. package/doc/interfaces/models.GetSignalDataFromMessageDataRequest.html +180 -0
  359. package/doc/interfaces/models.GetSignalDataFromMessageDataResponse.html +177 -0
  360. package/doc/interfaces/models.GetSourceResponse.html +176 -0
  361. package/doc/interfaces/models.GetTargetResponse.html +176 -0
  362. package/doc/interfaces/models.ILogFileFormat.html +179 -0
  363. package/doc/interfaces/models.IProject.html +179 -0
  364. package/doc/interfaces/models.IUserSettings.html +187 -0
  365. package/doc/interfaces/models.IWorkspaceComponentPaneData.html +177 -0
  366. package/doc/interfaces/models.IWorkspaceContainerPaneData.html +178 -0
  367. package/doc/interfaces/models.IWorkspaceData.html +178 -0
  368. package/doc/interfaces/models.IWorkspacePaneData.html +178 -0
  369. package/doc/interfaces/models.IdentifierRequest.html +178 -0
  370. package/doc/interfaces/models.IdentifiersRequest.html +178 -0
  371. package/doc/interfaces/models.InstallServiceExtensionRequest.html +181 -0
  372. package/doc/interfaces/models.InterpreterSettings.html +177 -0
  373. package/doc/interfaces/models.J1939InterpreterSettings.html +175 -0
  374. package/doc/interfaces/models.LicenseInformation.html +191 -0
  375. package/doc/interfaces/models.Licenses.html +177 -0
  376. package/doc/interfaces/models.LinChannelConfiguration.html +185 -0
  377. package/doc/interfaces/models.LinFrameFlags.html +177 -0
  378. package/doc/interfaces/models.LogMessage.html +185 -0
  379. package/doc/interfaces/models.LogMessages.html +177 -0
  380. package/doc/interfaces/models.LogReplaySettings.html +199 -0
  381. package/doc/interfaces/models.LogReplaySettings_ChannelIdentifiersEntry.html +176 -0
  382. package/doc/interfaces/models.LogReplayStatus.html +176 -0
  383. package/doc/interfaces/models.MeasurementEventArgs.html +179 -0
  384. package/doc/interfaces/models.MeasurementSetup.html +179 -0
  385. package/doc/interfaces/models.MessageLoggerSettings.html +213 -0
  386. package/doc/interfaces/models.MessageLoggerStatus.html +176 -0
  387. package/doc/interfaces/models.NodeStatus.html +191 -0
  388. package/doc/interfaces/models.NodeStatuses.html +176 -0
  389. package/doc/interfaces/models.OnlineStatus.html +176 -0
  390. package/doc/interfaces/models.PeriodicTransmissionSettings.html +209 -0
  391. package/doc/interfaces/models.RequestLinMessageRequest.html +180 -0
  392. package/doc/interfaces/models.ScheduleTable.html +181 -0
  393. package/doc/interfaces/models.ScheduleTableEntry.html +179 -0
  394. package/doc/interfaces/models.SendLinWakeupFrameRequest.html +182 -0
  395. package/doc/interfaces/models.SendMessageRequest.html +178 -0
  396. package/doc/interfaces/models.ServiceExtensionSettings.html +177 -0
  397. package/doc/interfaces/models.SetLogLevelRequest.html +179 -0
  398. package/doc/interfaces/models.SetMeasurementSetupRequest.html +177 -0
  399. package/doc/interfaces/models.SetSignalDataToMessageDataRequest.html +182 -0
  400. package/doc/interfaces/models.SetSignalDataToMessageDataResponse.html +180 -0
  401. package/doc/interfaces/models.SignalDefinition.html +188 -0
  402. package/doc/interfaces/models.SignalDefinition_EnumValuesEntry.html +176 -0
  403. package/doc/interfaces/models.SignalDefinitions.html +175 -0
  404. package/doc/interfaces/models.SignalValue.html +180 -0
  405. package/doc/interfaces/models.SignalValueTrigger.html +189 -0
  406. package/doc/interfaces/models.SourceNodeProperties.html +180 -0
  407. package/doc/interfaces/models.StartPeriodicTransmissionRequest.html +178 -0
  408. package/doc/interfaces/models.StartPeriodicTransmissionResponse.html +176 -0
  409. package/doc/interfaces/models.TargetNodeProperties.html +178 -0
  410. package/doc/interfaces/models.TriggerSettings.html +181 -0
  411. package/doc/interfaces/models.UninstallServiceExtensionRequest.html +179 -0
  412. package/doc/interfaces/models.UpdateLinMessageRequest.html +181 -0
  413. package/doc/interfaces/models.WriteFrame.html +183 -0
  414. package/doc/modules/controls.html +242 -0
  415. package/doc/modules/hooks.html +201 -0
  416. package/doc/modules/icons.html +216 -0
  417. package/doc/modules/ipc.html +202 -0
  418. package/doc/modules/models.html +478 -0
  419. package/doc/modules.html +179 -0
  420. package/doc/types/controls.ContextMenuOption.html +179 -0
  421. package/doc/types/controls.SelectOption.html +177 -0
  422. package/doc/types/controls.StringsMap.html +175 -0
  423. package/doc/types/controls.canIdentifierType.html +175 -0
  424. package/doc/types/models.IReadOnlyDataBuffer.html +174 -0
  425. package/doc/types/models.themes.html +174 -0
  426. package/doc/variables/models.AboutInformation-1.html +174 -0
  427. package/doc/variables/models.ActivateLicenseRequest-1.html +174 -0
  428. package/doc/variables/models.AddAllConnectedCanChannelsRequest-1.html +174 -0
  429. package/doc/variables/models.AddAllConnectedLinChannelsRequest-1.html +174 -0
  430. package/doc/variables/models.AddOrUpdateDataProcessorRequest-1.html +174 -0
  431. package/doc/variables/models.AddOrUpdateSourceRequest-1.html +174 -0
  432. package/doc/variables/models.AddOrUpdateTargetRequest-1.html +174 -0
  433. package/doc/variables/models.ApiPreferences-1.html +174 -0
  434. package/doc/variables/models.AppEventArgs-1.html +174 -0
  435. package/doc/variables/models.BaseNodeProperties-1.html +174 -0
  436. package/doc/variables/models.BusStatus-1.html +174 -0
  437. package/doc/variables/models.CanBusParamLimits-1.html +174 -0
  438. package/doc/variables/models.CanBusParams-1.html +174 -0
  439. package/doc/variables/models.CanBusSpeed-1.html +174 -0
  440. package/doc/variables/models.CanBusSpeedInfo-1.html +174 -0
  441. package/doc/variables/models.CanChannelCapacity-1.html +174 -0
  442. package/doc/variables/models.CanChannelConfiguration-1.html +174 -0
  443. package/doc/variables/models.CanFDBusSpeedCombination-1.html +174 -0
  444. package/doc/variables/models.CanFDBusSpeedInfo-1.html +174 -0
  445. package/doc/variables/models.CanFrameFlags-1.html +174 -0
  446. package/doc/variables/models.CanMessageFilterSettings-1.html +174 -0
  447. package/doc/variables/models.Channel-1.html +174 -0
  448. package/doc/variables/models.ChannelSettings-1.html +174 -0
  449. package/doc/variables/models.ClearLinMessageRequest-1.html +174 -0
  450. package/doc/variables/models.ConnectNodesRequest-1.html +174 -0
  451. package/doc/variables/models.DataProcessingStatus-1.html +174 -0
  452. package/doc/variables/models.DataProcessorNodeProperties-1.html +174 -0
  453. package/doc/variables/models.DatabasesSettings-1.html +174 -0
  454. package/doc/variables/models.Device-1.html +174 -0
  455. package/doc/variables/models.DeviceEventArgs-1.html +174 -0
  456. package/doc/variables/models.Devices-1.html +174 -0
  457. package/doc/variables/models.DisconnectNodesRequest-1.html +174 -0
  458. package/doc/variables/models.Empty-1.html +174 -0
  459. package/doc/variables/models.ErrorStatus-1.html +174 -0
  460. package/doc/variables/models.Frame-1.html +174 -0
  461. package/doc/variables/models.FrameDefinition-1.html +174 -0
  462. package/doc/variables/models.FrameDefinitions-1.html +174 -0
  463. package/doc/variables/models.FramePropertyValue-1.html +174 -0
  464. package/doc/variables/models.FrameReceivedTrigger-1.html +174 -0
  465. package/doc/variables/models.Frame_PropertiesEntry-1.html +174 -0
  466. package/doc/variables/models.Frames-1.html +174 -0
  467. package/doc/variables/models.GetCanChannelBusSpeedsRequest-1.html +174 -0
  468. package/doc/variables/models.GetCanChannelBusSpeedsResponse-1.html +174 -0
  469. package/doc/variables/models.GetCanFdBusSpeedsRequest-1.html +174 -0
  470. package/doc/variables/models.GetCanFdBusSpeedsResponse-1.html +174 -0
  471. package/doc/variables/models.GetChannelsFromLogFileRequest-1.html +174 -0
  472. package/doc/variables/models.GetChannelsFromLogFileResponse-1.html +174 -0
  473. package/doc/variables/models.GetClassicCanBusSpeedsRequest-1.html +174 -0
  474. package/doc/variables/models.GetClassicCanBusSpeedsResponse-1.html +174 -0
  475. package/doc/variables/models.GetDataProcessorResponse-1.html +174 -0
  476. package/doc/variables/models.GetDevicesRequest-1.html +174 -0
  477. package/doc/variables/models.GetDevicesResponse-1.html +174 -0
  478. package/doc/variables/models.GetFrameDefinitionsFromDatabaseFilesRequest-1.html +174 -0
  479. package/doc/variables/models.GetLicensesResponse-1.html +174 -0
  480. package/doc/variables/models.GetLogFileFormatsRequest-1.html +174 -0
  481. package/doc/variables/models.GetLogFileFormatsResponse-1.html +174 -0
  482. package/doc/variables/models.GetLogLevelResponse-1.html +174 -0
  483. package/doc/variables/models.GetScheduleTablesFromDatabaseFilesRequest-1.html +174 -0
  484. package/doc/variables/models.GetScheduleTablesFromDatabaseFilesResponse-1.html +174 -0
  485. package/doc/variables/models.GetServiceExtensionInfoRequest-1.html +174 -0
  486. package/doc/variables/models.GetServiceExtensionInfoResponse-1.html +174 -0
  487. package/doc/variables/models.GetSignalDataFromMessageDataRequest-1.html +174 -0
  488. package/doc/variables/models.GetSignalDataFromMessageDataResponse-1.html +174 -0
  489. package/doc/variables/models.GetSourceResponse-1.html +174 -0
  490. package/doc/variables/models.GetTargetResponse-1.html +174 -0
  491. package/doc/variables/models.IdentifierRequest-1.html +174 -0
  492. package/doc/variables/models.IdentifiersRequest-1.html +174 -0
  493. package/doc/variables/models.InstallServiceExtensionRequest-1.html +174 -0
  494. package/doc/variables/models.InterpreterSettings-1.html +174 -0
  495. package/doc/variables/models.J1939InterpreterSettings-1.html +174 -0
  496. package/doc/variables/models.LicenseInformation-1.html +174 -0
  497. package/doc/variables/models.Licenses-1.html +174 -0
  498. package/doc/variables/models.LinChannelConfiguration-1.html +174 -0
  499. package/doc/variables/models.LinFrameFlags-1.html +174 -0
  500. package/doc/variables/models.LogMessage-1.html +174 -0
  501. package/doc/variables/models.LogMessages-1.html +174 -0
  502. package/doc/variables/models.LogReplaySettings-1.html +174 -0
  503. package/doc/variables/models.LogReplaySettings_ChannelIdentifiersEntry-1.html +174 -0
  504. package/doc/variables/models.LogReplayStatus-1.html +174 -0
  505. package/doc/variables/models.MeasurementEventArgs-1.html +174 -0
  506. package/doc/variables/models.MeasurementSetup-1.html +174 -0
  507. package/doc/variables/models.MessageLoggerSettings-1.html +174 -0
  508. package/doc/variables/models.MessageLoggerStatus-1.html +174 -0
  509. package/doc/variables/models.NodeStatus-1.html +174 -0
  510. package/doc/variables/models.NodeStatuses-1.html +174 -0
  511. package/doc/variables/models.OnlineStatus-1.html +174 -0
  512. package/doc/variables/models.PeriodicTransmissionSettings-1.html +174 -0
  513. package/doc/variables/models.RequestLinMessageRequest-1.html +174 -0
  514. package/doc/variables/models.ScheduleTable-1.html +174 -0
  515. package/doc/variables/models.ScheduleTableEntry-1.html +174 -0
  516. package/doc/variables/models.SendLinWakeupFrameRequest-1.html +174 -0
  517. package/doc/variables/models.SendMessageRequest-1.html +174 -0
  518. package/doc/variables/models.ServiceExtensionSettings-1.html +174 -0
  519. package/doc/variables/models.SetLogLevelRequest-1.html +174 -0
  520. package/doc/variables/models.SetMeasurementSetupRequest-1.html +174 -0
  521. package/doc/variables/models.SetSignalDataToMessageDataRequest-1.html +174 -0
  522. package/doc/variables/models.SetSignalDataToMessageDataResponse-1.html +174 -0
  523. package/doc/variables/models.SignalDefinition-1.html +174 -0
  524. package/doc/variables/models.SignalDefinition_EnumValuesEntry-1.html +174 -0
  525. package/doc/variables/models.SignalDefinitions-1.html +174 -0
  526. package/doc/variables/models.SignalValue-1.html +174 -0
  527. package/doc/variables/models.SignalValueTrigger-1.html +174 -0
  528. package/doc/variables/models.SourceNodeProperties-1.html +174 -0
  529. package/doc/variables/models.StartPeriodicTransmissionRequest-1.html +174 -0
  530. package/doc/variables/models.StartPeriodicTransmissionResponse-1.html +174 -0
  531. package/doc/variables/models.TargetNodeProperties-1.html +174 -0
  532. package/doc/variables/models.TriggerSettings-1.html +174 -0
  533. package/doc/variables/models.UninstallServiceExtensionRequest-1.html +174 -0
  534. package/doc/variables/models.UpdateLinMessageRequest-1.html +174 -0
  535. package/doc/variables/models.WriteFrame-1.html +174 -0
  536. package/doc/variables/models.defaultUserSettings.html +175 -0
  537. package/package.json +129 -0
  538. package/scripts/createCanKingExtension.js +403 -0
  539. package/scripts/index.js +39 -0
  540. package/scripts/template/_.eslintrc.cjs +38 -0
  541. package/scripts/template/_.gitignore +24 -0
  542. package/scripts/template/_.npmrc +2 -0
  543. package/scripts/template/_.prettierrc +8 -0
  544. package/scripts/template/_.vscode/_launch.json +28 -0
  545. package/scripts/template/_index.html +15 -0
  546. package/scripts/template/_tsconfig.app.json +27 -0
  547. package/scripts/template/_tsconfig.json +11 -0
  548. package/scripts/template/_tsconfig.node.json +13 -0
  549. package/scripts/template/_vite.config.ts +7 -0
  550. package/scripts/template/src/App.tsx +12 -0
  551. package/scripts/template/src/WorkspaceView/index.tsx +47 -0
  552. package/scripts/template/src/main.css +9 -0
  553. package/scripts/template/src/main.tsx +19 -0
  554. package/scripts/template/src/vite-env.d.ts +1 -0
@@ -0,0 +1,1714 @@
1
+ import { u as G, a as Se, b as z, c as Fe, d as Ie } from "./index.mjs";
2
+ import { C as Pt, D as Wt, L as Ut, g as Ot, f as Kt, M as Xt, O as qt, R as Yt, U as jt, W as Gt, e as Ht, r as Jt } from "./index.mjs";
3
+ import { jsx as s, Fragment as H, jsxs as k } from "react/jsx-runtime";
4
+ import te, { useCallback as S, useState as D, useMemo as P, useEffect as W, useRef as Me } from "react";
5
+ import { FormControlLabel as he, Checkbox as Ae, styled as U, Button as $e, MenuItem as ae, IconButton as ve, Popover as Re, FormControl as pe, Stack as ge, TextField as Le, InputAdornment as se, Radio as ye, RadioGroup as Be, Box as V, Divider as we, Tooltip as Z, InputLabel as Ee, Select as _e, FormHelperText as ke, ListSubheader as Te, TableContainer as De, Table as Pe, TableHead as We, TableRow as ie, TableCell as de, TableBody as Ue, Toolbar as Oe, Typography as me, ToggleButtonGroup as Ke, toggleButtonGroupClasses as ce, ButtonGroup as Xe, buttonGroupClasses as J, Paper as qe, ToggleButton as Ye, Menu as je, ListItemIcon as Ge, ListItemText as ue } from "@mui/material";
6
+ import { LineArrowDownIcon as be, LineArrowUpIcon as He } from "./icons.mjs";
7
+ import oe from "fast-deep-equal";
8
+ import "long";
9
+ import { C as X, W as Je } from "./measurement_settings.mjs";
10
+ function Ce({
11
+ id: e = void 0,
12
+ label: t,
13
+ checked: r,
14
+ onChange: a,
15
+ disabled: o = !1,
16
+ size: l = "small",
17
+ sx: c = void 0
18
+ }) {
19
+ const u = S((n) => {
20
+ if (n.key === "Enter" && !n.ctrlKey && !n.altKey && !n.shiftKey) {
21
+ n.preventDefault();
22
+ return;
23
+ }
24
+ }, []);
25
+ return /* @__PURE__ */ s(
26
+ he,
27
+ {
28
+ id: e,
29
+ "aria-label": e,
30
+ disabled: o,
31
+ "aria-disabled": o,
32
+ control: /* @__PURE__ */ s(Ae, { size: l, checked: r, onChange: (n, d) => a(d), onKeyDown: u }),
33
+ label: t,
34
+ slotProps: { typography: { noWrap: !0 } },
35
+ sx: c
36
+ }
37
+ );
38
+ }
39
+ const ne = U($e)(() => ({
40
+ whiteSpace: "nowrap",
41
+ minWidth: "max-content"
42
+ }));
43
+ function Ft({ items: e, onSelect: t, onClose: r = void 0 }) {
44
+ const a = S(
45
+ (o) => {
46
+ t(o), r && r();
47
+ },
48
+ [r, t]
49
+ );
50
+ return /* @__PURE__ */ s(H, { children: e.map((o) => /* @__PURE__ */ s(ae, { onClick: () => a(o.key), children: o.text }, o.key)) });
51
+ }
52
+ function Qe({
53
+ id: e = "dropdown-button",
54
+ startIcon: t = void 0,
55
+ endIcon: r = void 0,
56
+ text: a = void 0,
57
+ variant: o = "outlined",
58
+ color: l = void 0,
59
+ size: c = "medium",
60
+ disabled: u = !1,
61
+ children: n
62
+ }) {
63
+ const [d, m] = D(null), b = !!d, g = S((R) => {
64
+ m(R.currentTarget);
65
+ }, []), v = S(() => {
66
+ m(null);
67
+ }, []), C = te.cloneElement(te.Children.only(n), {
68
+ onClose: v
69
+ });
70
+ return /* @__PURE__ */ k(H, { children: [
71
+ !a && /* @__PURE__ */ s(
72
+ ve,
73
+ {
74
+ id: e,
75
+ "data-testid": e,
76
+ "aria-controls": b ? `${e}-popover` : void 0,
77
+ "aria-haspopup": "true",
78
+ "aria-expanded": b ? "true" : void 0,
79
+ onClick: g,
80
+ size: c,
81
+ color: l,
82
+ disabled: u,
83
+ children: t
84
+ }
85
+ ),
86
+ a && /* @__PURE__ */ s(
87
+ ne,
88
+ {
89
+ id: e,
90
+ "data-testid": e,
91
+ "aria-controls": b ? `${e}-popover` : void 0,
92
+ "aria-haspopup": "true",
93
+ "aria-expanded": b ? "true" : void 0,
94
+ variant: o,
95
+ disableElevation: !0,
96
+ onClick: g,
97
+ startIcon: t,
98
+ endIcon: r ?? /* @__PURE__ */ s(be, {}),
99
+ size: c,
100
+ color: l,
101
+ disabled: u,
102
+ children: a
103
+ }
104
+ ),
105
+ /* @__PURE__ */ s(
106
+ Re,
107
+ {
108
+ id: `${e}-popover`,
109
+ "aria-labelledby": e,
110
+ anchorEl: d,
111
+ open: b,
112
+ onClose: v,
113
+ anchorOrigin: {
114
+ vertical: "bottom",
115
+ horizontal: "left"
116
+ },
117
+ transformOrigin: {
118
+ vertical: "top",
119
+ horizontal: "left"
120
+ },
121
+ children: C
122
+ }
123
+ )
124
+ ] });
125
+ }
126
+ const Ze = U("div")(({ top: e, left: t, width: r, height: a }) => ({
127
+ top: e,
128
+ left: t,
129
+ width: r,
130
+ height: a,
131
+ position: "absolute",
132
+ zIndex: 1
133
+ })), ze = U("div")(({ top: e, left: t, width: r, height: a, position: o, theme: l }) => ({
134
+ top: e,
135
+ left: t,
136
+ width: r,
137
+ height: a,
138
+ position: "absolute",
139
+ zIndex: 2,
140
+ color: l.palette.primary.contrastText,
141
+ backgroundColor: l.palette.primary.main,
142
+ display: "flex",
143
+ flexDirection: o === "left" || o === "right" ? "column" : "row",
144
+ borderTopLeftRadius: o === "top" || o === "left" ? 0 : 8,
145
+ borderTopRightRadius: o === "top" || o === "right" ? 0 : 8,
146
+ borderBottomRightRadius: o === "bottom" || o === "right" ? 0 : 8,
147
+ borderBottomLeftRadius: o === "bottom" || o === "left" ? 0 : 8
148
+ })), Q = 8;
149
+ function It({
150
+ id: e = void 0,
151
+ position: t,
152
+ parentWidth: r,
153
+ parentHeight: a,
154
+ maxLength: o,
155
+ dropDownSize: l,
156
+ autoHideTimeout: c = 0,
157
+ forceShow: u = !1,
158
+ children: n = null
159
+ }) {
160
+ const d = P(() => {
161
+ switch (t) {
162
+ case "left":
163
+ case "right":
164
+ return Math.min(o, a);
165
+ case "top":
166
+ case "bottom":
167
+ return Math.min(o, r);
168
+ default:
169
+ return o;
170
+ }
171
+ }, [o, a, r, t]), m = P(() => {
172
+ switch (t) {
173
+ case "left":
174
+ case "right":
175
+ return (a - d) / 2;
176
+ case "top":
177
+ return 0;
178
+ case "bottom":
179
+ return a - Q;
180
+ default:
181
+ return 0;
182
+ }
183
+ }, [d, a, t]), b = P(() => {
184
+ switch (t) {
185
+ case "left":
186
+ return 0;
187
+ case "right":
188
+ return r - Q;
189
+ case "top":
190
+ case "bottom":
191
+ return (r - d) / 2;
192
+ default:
193
+ return 0;
194
+ }
195
+ }, [d, r, t]), g = P(() => {
196
+ switch (t) {
197
+ case "left":
198
+ case "right":
199
+ return Q;
200
+ case "top":
201
+ case "bottom":
202
+ return d;
203
+ default:
204
+ return 0;
205
+ }
206
+ }, [d, t]), v = P(() => {
207
+ switch (t) {
208
+ case "left":
209
+ case "right":
210
+ return d;
211
+ case "top":
212
+ case "bottom":
213
+ return Q;
214
+ default:
215
+ return 0;
216
+ }
217
+ }, [d, t]), C = P(() => {
218
+ switch (t) {
219
+ case "left":
220
+ case "right":
221
+ return (a - d) / 2;
222
+ case "top":
223
+ return 0;
224
+ case "bottom":
225
+ return a - l;
226
+ default:
227
+ return 0;
228
+ }
229
+ }, [l, d, a, t]), R = P(() => {
230
+ switch (t) {
231
+ case "left":
232
+ return 0;
233
+ case "right":
234
+ return r - l;
235
+ case "top":
236
+ case "bottom":
237
+ return (r - d) / 2;
238
+ default:
239
+ return 0;
240
+ }
241
+ }, [l, d, r, t]), I = P(() => {
242
+ switch (t) {
243
+ case "left":
244
+ case "right":
245
+ return l;
246
+ case "top":
247
+ case "bottom":
248
+ return d;
249
+ default:
250
+ return 0;
251
+ }
252
+ }, [l, d, t]), y = P(() => {
253
+ switch (t) {
254
+ case "left":
255
+ case "right":
256
+ return d;
257
+ case "top":
258
+ case "bottom":
259
+ return l;
260
+ default:
261
+ return 0;
262
+ }
263
+ }, [l, d, t]), [x, p] = D(!1), i = S(
264
+ (N) => {
265
+ N.buttons === 0 && c && p(!0);
266
+ },
267
+ [c]
268
+ ), $ = S(() => {
269
+ p(!1);
270
+ }, []);
271
+ return W(() => {
272
+ let N;
273
+ return x && c && (N = setTimeout(() => p(!1), c)), () => {
274
+ N && clearTimeout(N);
275
+ };
276
+ }, [c, x]), /* @__PURE__ */ k(H, { children: [
277
+ /* @__PURE__ */ s(
278
+ Ze,
279
+ {
280
+ id: e,
281
+ top: m,
282
+ left: b,
283
+ width: g,
284
+ height: v,
285
+ "aria-haspopup": "true",
286
+ onMouseEnter: i
287
+ }
288
+ ),
289
+ (x || u === !0) && /* @__PURE__ */ s(
290
+ ze,
291
+ {
292
+ top: C,
293
+ left: R,
294
+ width: I,
295
+ height: y,
296
+ position: t,
297
+ onMouseLeave: $,
298
+ children: n
299
+ }
300
+ )
301
+ ] });
302
+ }
303
+ function re({
304
+ children: e,
305
+ fullWidth: t = !0,
306
+ spacing: r = "4px",
307
+ alignItems: a = "center"
308
+ }) {
309
+ return /* @__PURE__ */ s(pe, { margin: "dense", fullWidth: t, variant: "standard", children: /* @__PURE__ */ s(ge, { direction: "row", spacing: r, alignItems: a, children: e }) });
310
+ }
311
+ const Ve = U("input")(({ variant: e, theme: t }) => ({
312
+ ...t.typography[e]
313
+ })), et = U("span")(({ variant: e, theme: t }) => ({
314
+ ...t.typography[e]
315
+ }));
316
+ function tt({ value: e, onChange: t, ariaLabel: r = void 0, variant: a = "body1" }) {
317
+ const o = Me(null), [l, c] = D(e), u = S(
318
+ (m) => c(m.target.value),
319
+ []
320
+ ), n = S(
321
+ (m) => {
322
+ (m.key === "Enter" || m.key === "Escape") && (m.key === "Escape" && (c(e), m.currentTarget.value = e), m.currentTarget.blur());
323
+ },
324
+ [e]
325
+ ), d = S(
326
+ (m) => {
327
+ t(m.target.value);
328
+ },
329
+ [t]
330
+ );
331
+ return W(() => {
332
+ var m;
333
+ (m = o.current) == null || m.focus();
334
+ }, []), /* @__PURE__ */ s(
335
+ Ve,
336
+ {
337
+ ref: o,
338
+ variant: a ?? "body1",
339
+ type: "text",
340
+ "aria-label": r,
341
+ value: l,
342
+ onChange: u,
343
+ onKeyDown: n,
344
+ onBlur: d
345
+ }
346
+ );
347
+ }
348
+ function Mt({ editMode: e, value: t, onValueChange: r, ariaLabel: a = void 0, variant: o = "body1" }) {
349
+ return /* @__PURE__ */ k(H, { children: [
350
+ e && /* @__PURE__ */ s(tt, { ariaLabel: a, value: t, onChange: r, variant: o }),
351
+ !e && /* @__PURE__ */ s(et, { variant: o ?? "body1", children: t })
352
+ ] });
353
+ }
354
+ function nt({
355
+ id: e = void 0,
356
+ label: t = void 0,
357
+ helperText: r = "",
358
+ value: a,
359
+ onChange: o = void 0,
360
+ onBlur: l = void 0,
361
+ disabled: c = !1,
362
+ error: u = !1,
363
+ required: n = !1,
364
+ margin: d = "dense",
365
+ size: m = "small",
366
+ fullWidth: b = !1,
367
+ inputMode: g = void 0,
368
+ pattern: v = void 0,
369
+ startAdornment: C = void 0,
370
+ endAdornment: R = void 0,
371
+ sx: I = void 0,
372
+ sxStartAdornment: y = void 0,
373
+ sxEndAdornment: x = void 0
374
+ }) {
375
+ const p = S(
376
+ (L) => {
377
+ o && o(L.target.value);
378
+ },
379
+ [o]
380
+ ), i = S((L) => {
381
+ if (L.key === "Enter" && !L.ctrlKey && !L.altKey && !L.shiftKey) {
382
+ L.preventDefault(), L.stopPropagation(), document.activeElement instanceof HTMLElement && document.activeElement.blur();
383
+ return;
384
+ }
385
+ }, []), $ = y ?? { marginBottom: 1 }, N = x ?? { marginBottom: 1 };
386
+ return /* @__PURE__ */ s(
387
+ Le,
388
+ {
389
+ id: e,
390
+ "aria-label": e,
391
+ type: "text",
392
+ label: t,
393
+ helperText: r,
394
+ margin: d,
395
+ size: m,
396
+ fullWidth: b,
397
+ variant: "standard",
398
+ value: a,
399
+ onChange: p,
400
+ onBlur: l,
401
+ disabled: c,
402
+ "aria-disabled": c,
403
+ error: u,
404
+ required: n,
405
+ slotProps: {
406
+ input: {
407
+ startAdornment: C ? /* @__PURE__ */ s(se, { position: "start", sx: { ...$ }, children: C }) : null,
408
+ endAdornment: R ? /* @__PURE__ */ s(se, { position: "end", sx: { ...N }, children: R }) : null
409
+ },
410
+ htmlInput: {
411
+ inputMode: g,
412
+ pattern: v
413
+ }
414
+ },
415
+ sx: I,
416
+ onKeyDown: i
417
+ }
418
+ );
419
+ }
420
+ function Y({
421
+ id: e,
422
+ label: t = void 0,
423
+ helperText: r = "",
424
+ value: a,
425
+ onChange: o = void 0,
426
+ onBlur: l = void 0,
427
+ disabled: c = !1,
428
+ required: u = !1,
429
+ margin: n = "dense",
430
+ size: d = "small",
431
+ fullWidth: m = !1,
432
+ inputMode: b = void 0,
433
+ pattern: g = void 0,
434
+ startAdornment: v = void 0,
435
+ endAdornment: C = void 0,
436
+ sx: R = void 0,
437
+ sxStartAdornment: I = void 0,
438
+ sxEndAdornment: y = void 0,
439
+ error: x = void 0,
440
+ onErrorChange: p = void 0,
441
+ onValidate: i = void 0,
442
+ numberType: $ = "int",
443
+ minValue: N = void 0,
444
+ maxValue: L = void 0
445
+ }) {
446
+ const [E, T] = D(a), [O, K] = D(x !== void 0 ? x : !1);
447
+ W(() => {
448
+ T((f) => a !== f ? a : f);
449
+ }, [a]), W(() => {
450
+ K((f) => x !== void 0 && x !== f ? x : f);
451
+ }, [x]);
452
+ const q = S(
453
+ (f) => {
454
+ const B = Number.parseInt(f, f.startsWith("0x") ? 16 : 10);
455
+ let _ = Number.isNaN(B);
456
+ return _ || (_ = N !== void 0 && B < N), _ || (_ = L !== void 0 && B > L), { val: f, err: _ };
457
+ },
458
+ [L, N]
459
+ ), M = S(
460
+ (f) => {
461
+ let B = !1;
462
+ if (f.endsWith(",") || f.endsWith("."))
463
+ return B = !0, { val: f, err: B };
464
+ const _ = Number.parseFloat(f.replace(",", "."));
465
+ return B = Number.isNaN(_), B || (B = N !== void 0 && _ < N), B || (B = L !== void 0 && _ > L), { val: _.toString(), err: B };
466
+ },
467
+ [L, N]
468
+ ), A = S(
469
+ (f) => $ === "int" ? q(f) : M(f),
470
+ [$, M, q]
471
+ ), w = S(
472
+ (f, B) => {
473
+ let _ = f, j = !1;
474
+ return !u && (_ === void 0 || _ === "") ? { val: _, err: j } : ($ !== void 0 && ({ val: _, err: j } = A(f)), !j && i && ({ val: _, err: j } = i(_, B)), { val: _, err: j });
475
+ },
476
+ [i, A]
477
+ ), h = S(
478
+ (f) => {
479
+ const { val: B, err: _ } = w(f, "change");
480
+ (x === void 0 || x === !1) && K(_), T(_ ? f : B), !_ && o && o(B);
481
+ },
482
+ [o, w]
483
+ ), F = S(() => {
484
+ const { val: f, err: B } = w(E, "blur");
485
+ (x === void 0 || x === !1) && K(B), !B && l && l(f);
486
+ }, [l, w, E]);
487
+ return W(() => {
488
+ p && p(O);
489
+ }, [O, p]), /* @__PURE__ */ s(
490
+ nt,
491
+ {
492
+ id: e,
493
+ label: t,
494
+ helperText: r,
495
+ value: E,
496
+ onChange: h,
497
+ onBlur: F,
498
+ disabled: c,
499
+ error: O,
500
+ required: u,
501
+ margin: n,
502
+ size: d,
503
+ fullWidth: m,
504
+ inputMode: b,
505
+ pattern: g,
506
+ startAdornment: v,
507
+ endAdornment: C,
508
+ sx: R,
509
+ sxStartAdornment: I,
510
+ sxEndAdornment: y
511
+ }
512
+ );
513
+ }
514
+ function At({
515
+ minValue: e,
516
+ maxValue: t,
517
+ onChange: r = void 0,
518
+ onBlur: a = void 0,
519
+ minError: o = void 0,
520
+ onMinErrorChange: l = void 0,
521
+ maxError: c = void 0,
522
+ onMaxErrorChange: u = void 0,
523
+ onMinValidate: n = void 0,
524
+ onMaxValidate: d = void 0,
525
+ minDisabled: m = !1,
526
+ maxDisabled: b = !1,
527
+ unit: g = void 0,
528
+ lowerLimit: v = void 0,
529
+ upperLimit: C = void 0
530
+ }) {
531
+ const R = G(), I = Number.parseInt(e), y = Number.parseInt(t), [x, p] = D(e.toString()), [i, $] = D(t.toString()), [N, L] = D(
532
+ o === !0 || Number.isNaN(I) || I < (v ?? 0) || C && I > C || !Number.isNaN(y) && I >= y
533
+ ), [E, T] = D(
534
+ c === !0 || Number.isNaN(y) || y < (v ?? 0) || C && y > C || !Number.isNaN(I) && I >= y
535
+ );
536
+ W(() => {
537
+ p((h) => e.toString() !== h ? e.toString() : h);
538
+ }, [e]), W(() => {
539
+ L((h) => o !== void 0 && o !== h ? o : h);
540
+ }, [o]), W(() => {
541
+ $((h) => t.toString() !== h ? t.toString() : h);
542
+ }, [t]), W(() => {
543
+ T((h) => c !== void 0 && c !== h ? c : h);
544
+ }, [c]);
545
+ const O = S(
546
+ (h) => {
547
+ const F = Number.parseInt(h, h.startsWith("0x") ? 16 : 10), f = Number.parseInt(i), B = Number.isNaN(F) || F < (v ?? 0) || C && F > C || !Number.isNaN(f) && F >= f;
548
+ return { val: h, err: B };
549
+ },
550
+ [i, v, C]
551
+ ), K = S(
552
+ (h) => {
553
+ const F = Number.parseInt(h, h.startsWith("0x") ? 16 : 10), f = Number.parseInt(x), B = Number.isNaN(F) || F < (v ?? 0) || C && F > C || !Number.isNaN(f) && f >= F;
554
+ return { val: h, err: B };
555
+ },
556
+ [x, v, C]
557
+ ), q = S(
558
+ (h) => {
559
+ let { val: F, err: f } = O(h);
560
+ if (!f && n && ({ val: F, err: f } = n(h, "change")), (o === void 0 || o === !1) && L(f), f)
561
+ r && r(h, i);
562
+ else {
563
+ const B = Number.parseInt(F, F.startsWith("0x") ? 16 : 10).toString();
564
+ p(B), r && r(B, i);
565
+ }
566
+ },
567
+ [O, n, o, r, i]
568
+ ), M = S(
569
+ (h) => {
570
+ let { val: F, err: f } = O(h);
571
+ !f && n && ({ val: F, err: f } = n(F, "blur")), L(f), !f && a && a(F, i);
572
+ },
573
+ [O, n, a, i]
574
+ ), A = S(
575
+ (h) => {
576
+ let { val: F, err: f } = K(h);
577
+ if (!f && d && ({ val: F, err: f } = d(h, "change")), (c === void 0 || c === !1) && T(f), f)
578
+ r && r(x, h);
579
+ else {
580
+ const B = Number.parseInt(F, F.startsWith("0x") ? 16 : 10).toString();
581
+ $(B), r && r(x, B);
582
+ }
583
+ },
584
+ [K, d, c, r, x]
585
+ ), w = S(
586
+ (h) => {
587
+ let { val: F, err: f } = K(h);
588
+ !f && d && ({ val: F, err: f } = d(F, "blur")), T(f), !f && a && a(x, F);
589
+ },
590
+ [K, d, a, x]
591
+ );
592
+ return W(() => {
593
+ l && l(N), u && u(E);
594
+ }, [E, N, u, l]), /* @__PURE__ */ k(H, { children: [
595
+ /* @__PURE__ */ s(
596
+ Y,
597
+ {
598
+ id: "min-value",
599
+ disabled: m,
600
+ inputMode: "numeric",
601
+ fullWidth: !0,
602
+ value: x,
603
+ onChange: q,
604
+ onBlur: M,
605
+ startAdornment: R.getString("LabelFrom"),
606
+ endAdornment: g,
607
+ numberType: "int",
608
+ error: N,
609
+ onErrorChange: L
610
+ }
611
+ ),
612
+ /* @__PURE__ */ s(
613
+ Y,
614
+ {
615
+ id: "max-value",
616
+ disabled: b,
617
+ inputMode: "numeric",
618
+ fullWidth: !0,
619
+ value: i,
620
+ onChange: A,
621
+ onBlur: w,
622
+ startAdornment: R.getString("LabelTo"),
623
+ endAdornment: g,
624
+ numberType: "int",
625
+ error: E,
626
+ onErrorChange: T
627
+ }
628
+ )
629
+ ] });
630
+ }
631
+ function ee({
632
+ id: e = void 0,
633
+ label: t,
634
+ value: r,
635
+ disabled: a = !1,
636
+ size: o = "small",
637
+ sx: l = void 0
638
+ }) {
639
+ return /* @__PURE__ */ s(
640
+ he,
641
+ {
642
+ id: e,
643
+ "aria-label": e,
644
+ value: r,
645
+ disabled: a,
646
+ "aria-disabled": a,
647
+ control: /* @__PURE__ */ s(ye, { size: o }),
648
+ label: t,
649
+ componentsProps: { typography: { noWrap: !0 } },
650
+ sx: l
651
+ }
652
+ );
653
+ }
654
+ function rt({
655
+ children: e,
656
+ id: t = void 0,
657
+ value: r,
658
+ onChange: a
659
+ }) {
660
+ return /* @__PURE__ */ s(Be, { id: t, "aria-label": t, value: r, onChange: (o, l) => a(l), children: e });
661
+ }
662
+ const at = U(V, {
663
+ shouldForwardProp: (e) => e !== "collapsed"
664
+ })(({ collapsed: e, theme: t }) => ({
665
+ paddingTop: e ? "4px" : "8px",
666
+ paddingLeft: "2px",
667
+ paddingRight: "2px",
668
+ paddingBottom: e ? "0px" : "2px",
669
+ marginTop: "2px",
670
+ "&:hover, &:focus-within": {
671
+ background: t.palette.action.hover
672
+ }
673
+ })), xe = U("span")(({ theme: e }) => ({
674
+ color: e.palette.divider
675
+ })), ot = U(xe)(() => ({
676
+ "&:hover": {
677
+ cursor: "pointer"
678
+ }
679
+ })), lt = U(ve)(({ theme: e }) => ({
680
+ color: e.palette.divider,
681
+ padding: "0px"
682
+ }));
683
+ function le({
684
+ textAlign: e = "left",
685
+ text: t = void 0,
686
+ summary: r = void 0,
687
+ children: a = void 0,
688
+ collapsible: o = !1,
689
+ collapsed: l = !1,
690
+ collapsedChange: c = void 0
691
+ }) {
692
+ const u = Se(), n = G(), [d, m] = D(l);
693
+ W(() => m(l), [l]);
694
+ const b = S(
695
+ (g) => {
696
+ c ? c(g) : m(g);
697
+ },
698
+ [c]
699
+ );
700
+ return /* @__PURE__ */ k(at, { collapsed: d, children: [
701
+ t && /* @__PURE__ */ s(we, { textAlign: e, variant: "fullWidth", children: o ? /* @__PURE__ */ k(ge, { direction: "row", spacing: 1, alignItems: "center", children: [
702
+ /* @__PURE__ */ k(ot, { onClick: () => b(!d), children: [
703
+ t.toLocaleUpperCase(u),
704
+ d && r ? ` (${r})` : ""
705
+ ] }),
706
+ /* @__PURE__ */ s(
707
+ Z,
708
+ {
709
+ title: d ? n == null ? void 0 : n.getString("TooltipExpandSection", t) : n == null ? void 0 : n.getString("TooltipCollapseSection", t),
710
+ children: /* @__PURE__ */ s(lt, { onClick: () => b(!d), children: d ? /* @__PURE__ */ s(be, {}) : /* @__PURE__ */ s(He, {}) })
711
+ }
712
+ )
713
+ ] }) : /* @__PURE__ */ s(xe, { children: t.toLocaleUpperCase(u) }) }),
714
+ !d && a
715
+ ] });
716
+ }
717
+ function fe({
718
+ id: e,
719
+ label: t,
720
+ showLabel: r = !1,
721
+ helperText: a = "",
722
+ options: o,
723
+ value: l,
724
+ onChange: c,
725
+ disabled: u = !1,
726
+ required: n = !1,
727
+ margin: d = "dense",
728
+ size: m = "small",
729
+ fullWidth: b = !1,
730
+ minWidth: g = void 0,
731
+ prefixTextWithValue: v = !1
732
+ }) {
733
+ const C = S(
734
+ (p) => {
735
+ typeof p.target.value == "string" ? c("") : c(p.target.value);
736
+ },
737
+ [c]
738
+ ), R = S(
739
+ (p) => p.map((i) => /* @__PURE__ */ s(ae, { "aria-label": `menu-item-${i.value}`, value: i.value, children: v ? `${i.value} - ${i.displayText}` : i.displayText }, i.value)),
740
+ [v]
741
+ ), I = S(
742
+ (p, i) => {
743
+ const $ = [
744
+ /* @__PURE__ */ s(Te, { color: "primary", children: p }, p)
745
+ ];
746
+ return $.push(...R(i)), $;
747
+ },
748
+ [R]
749
+ ), y = S(
750
+ (p) => {
751
+ const i = [];
752
+ return p.forEach(($, N) => {
753
+ i.push(...I(N, $));
754
+ }), i;
755
+ },
756
+ [I]
757
+ ), x = S(
758
+ (p) => {
759
+ let i = "";
760
+ if (o instanceof Map)
761
+ o.forEach(($, N) => {
762
+ if (i === "") {
763
+ const L = $.find((E) => E.value === p);
764
+ L && (i = v ? `${L.value} - ${N} - ${L.displayText}` : `${N} - ${L.displayText}`);
765
+ }
766
+ });
767
+ else {
768
+ const $ = o.find((N) => N.value === p);
769
+ $ && (i = v ? `${$.value} - ${$.displayText}` : $.displayText);
770
+ }
771
+ return i === "" && (i = n ? `${t} *` : t), i;
772
+ },
773
+ [t, o, v, n]
774
+ );
775
+ return /* @__PURE__ */ k(pe, { fullWidth: b, variant: "standard", sx: { minWidth: g }, margin: d, size: m, children: [
776
+ r && /* @__PURE__ */ s(Ee, { id: `${e}-label`, children: n ? `${t} *` : t }),
777
+ /* @__PURE__ */ k(
778
+ _e,
779
+ {
780
+ labelId: `${e}-label`,
781
+ "aria-label": e,
782
+ id: e,
783
+ value: l,
784
+ renderValue: x,
785
+ onChange: C,
786
+ displayEmpty: !r,
787
+ disabled: u,
788
+ "aria-disabled": u,
789
+ children: [
790
+ o instanceof Map && y(o),
791
+ o instanceof Array && R(o)
792
+ ]
793
+ }
794
+ ),
795
+ a && /* @__PURE__ */ s(ke, { children: a })
796
+ ] });
797
+ }
798
+ const $t = U(V)(({ height: e, width: t }) => ({
799
+ height: e,
800
+ width: t,
801
+ padding: "4px",
802
+ overflow: "auto"
803
+ }));
804
+ function st({ label: e, variant: t = "h6" }) {
805
+ return /* @__PURE__ */ s(Oe, { children: /* @__PURE__ */ s(me, { sx: { flex: "1 1 100%" }, variant: t, id: "tableTitle", component: "div", children: e }) });
806
+ }
807
+ function Rt({
808
+ data: e,
809
+ dataKey: t,
810
+ selectedKey: r = void 0,
811
+ onClickRow: a = void 0,
812
+ columns: o,
813
+ label: l = void 0,
814
+ labelVariant: c = "h6",
815
+ maxHeight: u = void 0,
816
+ size: n = "medium",
817
+ stickyHeader: d = !1,
818
+ hover: m = !1
819
+ }) {
820
+ const b = S(
821
+ (g) => {
822
+ a && a(g);
823
+ },
824
+ [a]
825
+ );
826
+ return /* @__PURE__ */ k(V, { children: [
827
+ l && /* @__PURE__ */ s(st, { label: l, variant: c }),
828
+ /* @__PURE__ */ s(De, { children: /* @__PURE__ */ k(Pe, { "aria-labelledby": "tableTitle", size: n, stickyHeader: d, sx: { maxHeight: u }, padding: "none", children: [
829
+ /* @__PURE__ */ s(We, { children: /* @__PURE__ */ s(ie, { children: o.map((g) => (
830
+ // eslint-disable-next-line react/jsx-props-no-spreading
831
+ /* @__PURE__ */ s(de, { ...g.headProps, children: g.headCell }, g.key)
832
+ )) }) }),
833
+ /* @__PURE__ */ s(Ue, { children: e.map((g) => {
834
+ const v = t(g);
835
+ return /* @__PURE__ */ s(ie, { hover: m, selected: v === r, onClick: () => b(g), children: o.map((C) => /* @__PURE__ */ s(
836
+ de,
837
+ {
838
+ ...C.dataProps,
839
+ children: C.dataCell(g)
840
+ },
841
+ `${v}-${C.key}`
842
+ )) }, v);
843
+ }) })
844
+ ] }) })
845
+ ] });
846
+ }
847
+ const Lt = U("div")(({ theme: e }) => ({
848
+ borderBottom: "1px solid",
849
+ borderColor: e.palette.divider
850
+ })), it = U(Ke)(({ theme: e }) => ({
851
+ [`& .${ce.grouped}`]: {
852
+ margin: e.spacing(0.5),
853
+ padding: e.spacing(1.25),
854
+ minWidth: 24,
855
+ color: e.palette.action.active,
856
+ border: 0,
857
+ borderRadius: e.shape.borderRadius,
858
+ [`&.${ce.disabled}`]: {
859
+ border: 0
860
+ }
861
+ }
862
+ // [`& .${toggleButtonGroupClasses.middleButton},& .${toggleButtonGroupClasses.lastButton}`]: {
863
+ // marginLeft: -1,
864
+ // borderLeft: '1px solid transparent',
865
+ // },
866
+ })), dt = U(Xe)(({ theme: e }) => ({
867
+ [`& .${J.grouped}`]: {
868
+ margin: e.spacing(0.5),
869
+ padding: e.spacing(1.25),
870
+ minWidth: 24,
871
+ color: e.palette.action.active,
872
+ border: 0,
873
+ borderRadius: e.shape.borderRadius,
874
+ [`&.${J.disabled}`]: {
875
+ border: 0
876
+ }
877
+ },
878
+ [`& .${J.middleButton},& .${J.lastButton}`]: {
879
+ marginLeft: -1,
880
+ borderLeft: "1px solid transparent"
881
+ }
882
+ }));
883
+ function Ne({
884
+ onClick: e,
885
+ icon: t = void 0,
886
+ text: r = void 0,
887
+ size: a = "small",
888
+ variant: o = void 0,
889
+ color: l = "inherit",
890
+ tooltip: c = void 0,
891
+ ariaLabel: u = void 0,
892
+ children: n = void 0,
893
+ disabled: d = !1
894
+ }) {
895
+ return n ? /* @__PURE__ */ s(
896
+ Qe,
897
+ {
898
+ size: typeof a == "string" ? a : "small",
899
+ variant: o,
900
+ color: l,
901
+ startIcon: t,
902
+ text: r,
903
+ disabled: d,
904
+ children: n
905
+ }
906
+ ) : r ? /* @__PURE__ */ k(
907
+ ne,
908
+ {
909
+ size: typeof a == "string" ? a : "small",
910
+ variant: o,
911
+ color: l,
912
+ "aria-label": u,
913
+ onClick: e,
914
+ startIcon: t,
915
+ disabled: d,
916
+ children: [
917
+ c && /* @__PURE__ */ s(Z, { placement: "bottom-start", title: c, children: /* @__PURE__ */ s("span", { children: r }) }),
918
+ !c && r
919
+ ]
920
+ }
921
+ ) : /* @__PURE__ */ k(
922
+ ne,
923
+ {
924
+ size: typeof a == "string" ? a : "small",
925
+ variant: o,
926
+ color: l,
927
+ "aria-label": u,
928
+ onClick: e,
929
+ disabled: d,
930
+ sx: {
931
+ height: typeof a == "number" ? `${a}px` : void 0,
932
+ width: typeof a == "number" ? `${a}px` : void 0
933
+ },
934
+ children: [
935
+ c && /* @__PURE__ */ s(Z, { placement: "bottom-start", title: c, children: /* @__PURE__ */ s("span", { children: t }) }),
936
+ !c && t
937
+ ]
938
+ }
939
+ );
940
+ }
941
+ function ct({
942
+ buttons: e,
943
+ size: t = "small",
944
+ ariaLabel: r = void 0,
945
+ orientation: a = "horizontal"
946
+ }) {
947
+ return /* @__PURE__ */ s(dt, { size: t, "aria-label": r, orientation: a, children: e.map((o, l) => /* @__PURE__ */ s(
948
+ Ne,
949
+ {
950
+ onClick: o.onClick,
951
+ icon: o.icon,
952
+ text: o.text,
953
+ size: o.size,
954
+ variant: o.variant,
955
+ color: o.color,
956
+ tooltip: o.tooltip,
957
+ ariaLabel: o.ariaLabel,
958
+ disabled: o.disabled,
959
+ children: o.children
960
+ },
961
+ l
962
+ )) });
963
+ }
964
+ function ut({
965
+ value: e,
966
+ onChange: t,
967
+ size: r = "small",
968
+ ariaLabel: a = void 0,
969
+ exclusive: o = void 0,
970
+ buttons: l,
971
+ orientation: c = "horizontal"
972
+ }) {
973
+ return /* @__PURE__ */ s(
974
+ it,
975
+ {
976
+ size: r,
977
+ value: e,
978
+ onChange: (u, n) => t(n),
979
+ "aria-label": a,
980
+ exclusive: o,
981
+ orientation: c,
982
+ children: l.map((u, n) => /* @__PURE__ */ k(
983
+ Ye,
984
+ {
985
+ size: typeof r == "string" ? r : "small",
986
+ value: u.value,
987
+ "aria-label": u.ariaLabel,
988
+ sx: {
989
+ height: typeof r == "number" ? `${r}px` : void 0,
990
+ width: typeof r == "number" ? `${r}px` : void 0,
991
+ padding: u.size === "small" || typeof r == "number" ? 1 : void 0,
992
+ margin: u.size === "small" || typeof r == "number" ? 0 : void 0
993
+ },
994
+ disabled: u.disabled,
995
+ children: [
996
+ u.tooltip && /* @__PURE__ */ s(Z, { placement: "bottom-start", title: u.tooltip, children: /* @__PURE__ */ s("span", { children: u.icon }) }),
997
+ !u.tooltip && u.icon
998
+ ]
999
+ },
1000
+ n
1001
+ ))
1002
+ }
1003
+ );
1004
+ }
1005
+ function yt({
1006
+ items: e,
1007
+ height: t = 34,
1008
+ width: r = 34,
1009
+ justifyContent: a = "left",
1010
+ borderSize: o = 1,
1011
+ padding: l = 1,
1012
+ backgroundColor: c = void 0,
1013
+ orientation: u = "horizontal"
1014
+ }) {
1015
+ return /* @__PURE__ */ s(
1016
+ qe,
1017
+ {
1018
+ elevation: 0,
1019
+ sx: {
1020
+ display: "flex",
1021
+ alignItems: "center",
1022
+ justifyContent: a,
1023
+ border: (n) => `${o}px solid ${n.palette.divider}`,
1024
+ flexWrap: "wrap",
1025
+ height: u === "horizontal" ? `${t}px` : "100%",
1026
+ minHeight: u === "horizontal" ? `${t}px` : void 0,
1027
+ width: u === "vertical" ? `${r}px` : "100%",
1028
+ minWidth: u === "vertical" ? `${r}px` : void 0,
1029
+ paddingLeft: u === "horizontal" ? l : 0,
1030
+ paddingRight: u === "horizontal" ? l : 0,
1031
+ paddingTop: u === "vertical" ? l : 0,
1032
+ paddingBottom: u === "vertical" ? l : 0,
1033
+ borderRadius: "0px",
1034
+ backgroundColor: c
1035
+ },
1036
+ children: e.map((n, d) => n.label ? (
1037
+ // eslint-disable-next-line react/no-array-index-key
1038
+ /* @__PURE__ */ s(me, { variant: n.label.variant, component: "div", children: n.label.text }, d)
1039
+ ) : n.toggleButtonGroup ? /* @__PURE__ */ s(
1040
+ ut,
1041
+ {
1042
+ value: n.toggleButtonGroup.value,
1043
+ onChange: n.toggleButtonGroup.onChange,
1044
+ ariaLabel: n.toggleButtonGroup.ariaLabel,
1045
+ exclusive: n.toggleButtonGroup.exclusive,
1046
+ buttons: n.toggleButtonGroup.buttons,
1047
+ orientation: u
1048
+ },
1049
+ d
1050
+ ) : n.button ? /* @__PURE__ */ s(
1051
+ Ne,
1052
+ {
1053
+ onClick: n.button.onClick,
1054
+ icon: n.button.icon,
1055
+ text: n.button.text,
1056
+ variant: n.button.variant,
1057
+ color: n.button.color,
1058
+ tooltip: n.button.tooltip,
1059
+ ariaLabel: n.button.ariaLabel,
1060
+ disabled: n.button.disabled
1061
+ },
1062
+ d
1063
+ ) : n.buttonGroup ? (
1064
+ // eslint-disable-next-line react/no-array-index-key
1065
+ /* @__PURE__ */ s(
1066
+ ct,
1067
+ {
1068
+ ariaLabel: n.buttonGroup.ariaLabel,
1069
+ buttons: n.buttonGroup.buttons,
1070
+ orientation: u
1071
+ },
1072
+ d
1073
+ )
1074
+ ) : n.other)
1075
+ }
1076
+ );
1077
+ }
1078
+ function Bt({ options: e, onSelect: t, children: r = void 0 }) {
1079
+ const [a, o] = te.useState(null), l = S(
1080
+ (n) => {
1081
+ e.length !== 0 && (n.preventDefault(), o(
1082
+ a === null ? {
1083
+ mouseX: n.clientX + 2,
1084
+ mouseY: n.clientY - 6
1085
+ } : (
1086
+ // repeated contextmenu when it is already open closes it with Chrome 84 on Ubuntu
1087
+ // Other native context menus might behave different.
1088
+ // With this behavior we prevent contextmenu from the backdrop to re-locale existing context menus.
1089
+ null
1090
+ )
1091
+ ));
1092
+ },
1093
+ [a, e.length]
1094
+ ), c = S(() => {
1095
+ o(null);
1096
+ }, []), u = S(
1097
+ (n) => {
1098
+ t(n), c();
1099
+ },
1100
+ [c, t]
1101
+ );
1102
+ return /* @__PURE__ */ k("div", { onContextMenu: l, style: { cursor: "context-menu" }, children: [
1103
+ r,
1104
+ /* @__PURE__ */ s(
1105
+ je,
1106
+ {
1107
+ open: a !== null,
1108
+ onClose: c,
1109
+ anchorReference: "anchorPosition",
1110
+ anchorPosition: a !== null ? { top: a.mouseY, left: a.mouseX } : void 0,
1111
+ children: e.map((n) => /* @__PURE__ */ k(ae, { onClick: () => u(n.value), children: [
1112
+ n.icon && /* @__PURE__ */ s(Ge, { children: n.icon }),
1113
+ /* @__PURE__ */ s(ue, { children: n.displayText }),
1114
+ n.shortcut && /* @__PURE__ */ s(ue, { sx: { pl: 2, textAlign: "right" }, children: n.shortcut })
1115
+ ] }, n.value))
1116
+ }
1117
+ )
1118
+ ] });
1119
+ }
1120
+ function ft({
1121
+ canIdentifier: e,
1122
+ canIdentifierType: t,
1123
+ onCanIdentifierChange: r,
1124
+ onErrorsChange: a = void 0,
1125
+ hideSection: o = !1,
1126
+ disabled: l = !1,
1127
+ collapsible: c = !1,
1128
+ collapsed: u = !1,
1129
+ collapsedChange: n = void 0
1130
+ }) {
1131
+ const d = G(), m = z(), [b, g] = D(!1);
1132
+ W(() => {
1133
+ a && a(b);
1134
+ }, [b, a]);
1135
+ const [v, C] = D(t);
1136
+ W(() => {
1137
+ C(t);
1138
+ }, [t]);
1139
+ const R = S((p) => {
1140
+ C(p ? "extended" : "standard");
1141
+ }, []), I = S(
1142
+ (p) => {
1143
+ let i = p, $ = !1;
1144
+ if (i.length > 2 && i.toLowerCase().startsWith("0x") && (i = i.substring(2), $ = !0), i = i.toUpperCase(), v === "extended") {
1145
+ const N = parseInt(i, $ ? 16 : m);
1146
+ if (Number.isNaN(N) || N < 0 || N > 536870911)
1147
+ return r(p, v), { val: p, err: !0 };
1148
+ i = `${N.toString(m).toUpperCase()}`;
1149
+ } else if (v === "standard") {
1150
+ const N = parseInt(i, $ ? 16 : m);
1151
+ if (Number.isNaN(N) || N < 0 || N > 2047)
1152
+ return r(p, v), { val: p, err: !0 };
1153
+ i = `${N.toString(m).toUpperCase()}`;
1154
+ }
1155
+ return r(i, v), { val: p, err: !1 };
1156
+ },
1157
+ [v, m, r]
1158
+ ), y = S(
1159
+ (p) => {
1160
+ if (p !== v) {
1161
+ let i = !1, $ = e;
1162
+ if (p === "standard") {
1163
+ const N = parseInt($, m);
1164
+ (Number.isNaN(N) || N < 0 || N > 2047) && (i = !0);
1165
+ } else if (p === "extended") {
1166
+ const N = parseInt($, m);
1167
+ (Number.isNaN(N) || N < 0 || N > 536870911) && (i = !0);
1168
+ }
1169
+ r($, p), g(i);
1170
+ }
1171
+ },
1172
+ [v, e, r, m]
1173
+ ), x = P(
1174
+ () => /* @__PURE__ */ k(re, { spacing: 4, children: [
1175
+ /* @__PURE__ */ s(
1176
+ Y,
1177
+ {
1178
+ id: "constant-id",
1179
+ fullWidth: !0,
1180
+ value: e,
1181
+ onBlur: I,
1182
+ error: b,
1183
+ onErrorChange: g,
1184
+ disabled: l
1185
+ }
1186
+ ),
1187
+ /* @__PURE__ */ s(
1188
+ Ce,
1189
+ {
1190
+ id: "id-type",
1191
+ label: d.getString("LabelUseExtendedIdentifier"),
1192
+ checked: v === "extended",
1193
+ onChange: (p) => {
1194
+ R(p), y(p ? "extended" : "standard");
1195
+ },
1196
+ disabled: l
1197
+ }
1198
+ )
1199
+ ] }),
1200
+ [
1201
+ e,
1202
+ v,
1203
+ l,
1204
+ b,
1205
+ d,
1206
+ y,
1207
+ I
1208
+ ]
1209
+ );
1210
+ return o ? x : /* @__PURE__ */ s(
1211
+ le,
1212
+ {
1213
+ text: d.getString("LabelCanIdentifier"),
1214
+ summary: e,
1215
+ collapsible: c,
1216
+ collapsed: u,
1217
+ collapsedChange: n,
1218
+ children: x
1219
+ }
1220
+ );
1221
+ }
1222
+ function wt({
1223
+ frame: e,
1224
+ onFrameChange: t,
1225
+ onErrorsChange: r = void 0,
1226
+ collapsible: a = !1,
1227
+ collapsed: o = !1,
1228
+ collapsedChange: l = void 0
1229
+ }) {
1230
+ var m;
1231
+ const c = z(), u = P(
1232
+ () => {
1233
+ var b, g;
1234
+ return ((g = (b = e.canFrameFlags) == null ? void 0 : b.flags) == null ? void 0 : g.includes(X.CAN_FRAME_FLAG_EXT)) === !0 ? "extended" : "standard";
1235
+ },
1236
+ [(m = e.canFrameFlags) == null ? void 0 : m.flags]
1237
+ ), n = P(() => `${(e.id ?? 0).toString(c).toUpperCase()}`, [u, e.id, c]), d = S(
1238
+ (b, g) => {
1239
+ var y;
1240
+ let v = e.id ?? 0;
1241
+ v = parseInt(b, c);
1242
+ const C = (y = e.canFrameFlags) != null && y.flags ? { flags: [...e.canFrameFlags.flags] } : { flags: [] }, R = C.flags.indexOf(X.CAN_FRAME_FLAG_STD);
1243
+ R !== -1 && C.flags.splice(R, 1);
1244
+ const I = C.flags.indexOf(X.CAN_FRAME_FLAG_EXT);
1245
+ if (I !== -1 && C.flags.splice(I, 1), g === "extended" ? C.flags.push(X.CAN_FRAME_FLAG_EXT) : g === "standard" && C.flags.push(X.CAN_FRAME_FLAG_STD), v !== e.id || !oe(C, e.canFrameFlags)) {
1246
+ const x = { ...e };
1247
+ x.id = v, x.canFrameFlags = C, t(x);
1248
+ }
1249
+ },
1250
+ [e, c, t]
1251
+ );
1252
+ return /* @__PURE__ */ s(
1253
+ ft,
1254
+ {
1255
+ canIdentifier: n,
1256
+ canIdentifierType: u,
1257
+ onCanIdentifierChange: d,
1258
+ onErrorsChange: r,
1259
+ collapsible: a,
1260
+ collapsed: o,
1261
+ collapsedChange: l
1262
+ }
1263
+ );
1264
+ }
1265
+ function ht({
1266
+ canIdentifier: e,
1267
+ identifierGeneratorType: t,
1268
+ minCanIdentifier: r,
1269
+ maxCanIdentifier: a,
1270
+ canIdentifierType: o,
1271
+ onChange: l,
1272
+ onErrorsChange: c = void 0,
1273
+ canIdentifierGeneratorSettingsError: u = void 0,
1274
+ disabled: n = !1,
1275
+ collapsible: d = !1,
1276
+ collapsed: m = !1,
1277
+ collapsedChange: b = void 0
1278
+ }) {
1279
+ const g = G(), v = z(), [C, R] = D(!1), [I, y] = D(!1), [x, p] = D(!1), [i, $] = D(o);
1280
+ W(() => {
1281
+ $(o);
1282
+ }, [o]);
1283
+ const N = S((M) => {
1284
+ $(M ? "extended" : "standard");
1285
+ }, []), L = S(
1286
+ (M) => {
1287
+ let A = M, w = !1;
1288
+ if (A.length > 2 && A.toLowerCase().startsWith("0x") && (A = A.substring(2), w = !0), A = A.toUpperCase(), i === "extended") {
1289
+ const h = parseInt(A, w ? 16 : v);
1290
+ if (Number.isNaN(h) || h < 0 || h > 536870911)
1291
+ return l(M, t, r, a, i), { val: M, err: !0 };
1292
+ A = `${h.toString(v).toUpperCase()}`;
1293
+ } else if (i === "standard") {
1294
+ const h = parseInt(A, w ? 16 : v);
1295
+ if (Number.isNaN(h) || h < 0 || h > 2047)
1296
+ return l(M, t, r, a, i), { val: M, err: !0 };
1297
+ A = `${h.toString(v).toUpperCase()}`;
1298
+ }
1299
+ return l(A, t, r, a, i), { val: M, err: !1 };
1300
+ },
1301
+ [i, t, a, r, v, l]
1302
+ ), E = S(
1303
+ (M, A, w) => {
1304
+ let h = M, F = -1, f = !1;
1305
+ if (h.length > 2 && h.toLowerCase().startsWith("0x") && (h = h.substring(2), f = !0), h = h.toUpperCase(), A === "extended") {
1306
+ if (F = parseInt(h, f ? 16 : v), Number.isNaN(F) || F < 0 || F > 536870911)
1307
+ return w(M), { val: M, err: !0, id: F };
1308
+ h = `${F.toString(v).toUpperCase()}`;
1309
+ } else if (A === "standard") {
1310
+ if (F = parseInt(h, f ? 16 : v), Number.isNaN(F) || F < 0 || F > 2047)
1311
+ return w(M), { val: M, err: !0, id: F };
1312
+ h = `${F.toString(v).toUpperCase()}`;
1313
+ }
1314
+ return w(h), { val: h, err: !1, id: F };
1315
+ },
1316
+ [v]
1317
+ ), T = S(
1318
+ (M) => {
1319
+ const A = E(
1320
+ M,
1321
+ i,
1322
+ (h) => l(e, t, h, a, i)
1323
+ ), w = E(
1324
+ a,
1325
+ i,
1326
+ // eslint-disable-next-line @typescript-eslint/no-empty-function
1327
+ () => {
1328
+ }
1329
+ );
1330
+ return !A.err && !w.err && (A.id >= w.id ? (A.err = !0, y(!0)) : y(!1)), { val: A.val, err: A.err };
1331
+ },
1332
+ [
1333
+ e,
1334
+ i,
1335
+ t,
1336
+ a,
1337
+ l,
1338
+ E
1339
+ ]
1340
+ ), O = S(
1341
+ (M) => {
1342
+ const A = E(
1343
+ M,
1344
+ i,
1345
+ (h) => l(e, t, r, h, i)
1346
+ ), w = E(
1347
+ r,
1348
+ i,
1349
+ // eslint-disable-next-line @typescript-eslint/no-empty-function
1350
+ () => {
1351
+ }
1352
+ );
1353
+ return !w.err && !A.err && (w.id >= A.id ? (A.err = !0, p(!0)) : p(!1)), { val: A.val, err: A.err };
1354
+ },
1355
+ [
1356
+ e,
1357
+ i,
1358
+ t,
1359
+ r,
1360
+ l,
1361
+ E
1362
+ ]
1363
+ ), K = S(
1364
+ (M) => {
1365
+ if (M !== i) {
1366
+ let A = e;
1367
+ const w = E(r, M, () => {
1368
+ }), h = E(a, M, () => {
1369
+ });
1370
+ l(A, t, w.val, h.val, M);
1371
+ }
1372
+ },
1373
+ [
1374
+ i,
1375
+ e,
1376
+ E,
1377
+ r,
1378
+ a,
1379
+ l,
1380
+ t,
1381
+ v
1382
+ ]
1383
+ ), q = S(
1384
+ (M) => {
1385
+ let A = e;
1386
+ const w = E(r, i, () => {
1387
+ }), h = E(a, i, () => {
1388
+ });
1389
+ l(
1390
+ A,
1391
+ M,
1392
+ w.val,
1393
+ h.val,
1394
+ i
1395
+ );
1396
+ },
1397
+ [
1398
+ i,
1399
+ e,
1400
+ E,
1401
+ r,
1402
+ a,
1403
+ l,
1404
+ t,
1405
+ v
1406
+ ]
1407
+ );
1408
+ return W(() => {
1409
+ c && c(
1410
+ t === "constant" && C || (t === "random" || t === "scan") && (I || x)
1411
+ ), u && (u.current = t === "constant" && C || (t === "random" || t === "scan") && (I || x));
1412
+ }, [
1413
+ C,
1414
+ u,
1415
+ t,
1416
+ x,
1417
+ I,
1418
+ c
1419
+ ]), /* @__PURE__ */ s(
1420
+ le,
1421
+ {
1422
+ text: g.getString("LabelCanIdentifier"),
1423
+ summary: t === "constant" ? e : t === "random" ? `${g.getString("LabelRandom")} ${r}-${a}` : `${g.getString("LabelScan")} ${r}-${a}`,
1424
+ collapsible: d,
1425
+ collapsed: m,
1426
+ collapsedChange: b,
1427
+ children: /* @__PURE__ */ k(
1428
+ rt,
1429
+ {
1430
+ id: "identifier-radio-group",
1431
+ value: t,
1432
+ onChange: (M) => {
1433
+ q(M);
1434
+ },
1435
+ children: [
1436
+ /* @__PURE__ */ k(re, { spacing: 4, children: [
1437
+ /* @__PURE__ */ s(
1438
+ ee,
1439
+ {
1440
+ id: "constant-id-radio",
1441
+ value: "constant",
1442
+ label: g.getString("LabelConstantIdentifier"),
1443
+ sx: { marginLeft: "-11px !important" },
1444
+ disabled: n
1445
+ }
1446
+ ),
1447
+ /* @__PURE__ */ s(
1448
+ Y,
1449
+ {
1450
+ id: "constant-id",
1451
+ fullWidth: !0,
1452
+ value: e,
1453
+ error: C,
1454
+ onErrorChange: R,
1455
+ disabled: n || t !== "constant",
1456
+ required: t === "constant",
1457
+ onBlur: L
1458
+ }
1459
+ ),
1460
+ /* @__PURE__ */ s(
1461
+ Ce,
1462
+ {
1463
+ id: "id-type",
1464
+ label: g.getString("LabelUseExtendedIdentifier"),
1465
+ checked: i === "extended",
1466
+ onChange: (M) => {
1467
+ N(M), K(M ? "extended" : "standard");
1468
+ },
1469
+ disabled: n
1470
+ }
1471
+ )
1472
+ ] }),
1473
+ /* @__PURE__ */ k(re, { spacing: 4, children: [
1474
+ /* @__PURE__ */ s(
1475
+ ee,
1476
+ {
1477
+ id: "random-identifier-radio",
1478
+ value: "random",
1479
+ label: g.getString("LabelRandomIdentifier"),
1480
+ sx: { marginLeft: "-11px !important" },
1481
+ disabled: n
1482
+ }
1483
+ ),
1484
+ /* @__PURE__ */ s(
1485
+ ee,
1486
+ {
1487
+ id: "scan-identifier-radio",
1488
+ value: "scan",
1489
+ label: g.getString("LabelScanIdentifier"),
1490
+ disabled: n
1491
+ }
1492
+ ),
1493
+ /* @__PURE__ */ s(
1494
+ Y,
1495
+ {
1496
+ id: "identifier-min",
1497
+ disabled: n || t !== "random" && t !== "scan",
1498
+ required: t === "random" || t === "scan",
1499
+ fullWidth: !0,
1500
+ value: r ?? "",
1501
+ error: I,
1502
+ onErrorChange: y,
1503
+ startAdornment: g.getString("LabelFrom"),
1504
+ onBlur: T,
1505
+ sxStartAdornment: { marginBottom: 0.8 }
1506
+ }
1507
+ ),
1508
+ /* @__PURE__ */ s(
1509
+ Y,
1510
+ {
1511
+ id: "identifier-max",
1512
+ disabled: n || t !== "random" && t !== "scan",
1513
+ required: t === "random" || t === "scan",
1514
+ fullWidth: !0,
1515
+ value: a ?? "",
1516
+ error: x,
1517
+ onErrorChange: p,
1518
+ startAdornment: g.getString("LabelTo"),
1519
+ onBlur: O,
1520
+ sxStartAdornment: { marginBottom: 0.8 }
1521
+ }
1522
+ )
1523
+ ] })
1524
+ ]
1525
+ }
1526
+ )
1527
+ }
1528
+ );
1529
+ }
1530
+ function Et({
1531
+ settings: e,
1532
+ onSettingsChange: t,
1533
+ onErrorsChange: r = void 0,
1534
+ canIdentifierGeneratorSettingsError: a = void 0,
1535
+ disabled: o = !1,
1536
+ collapsible: l = !1,
1537
+ collapsed: c = !1,
1538
+ collapsedChange: u = void 0
1539
+ }) {
1540
+ var R, I, y;
1541
+ const n = z(), d = P(
1542
+ () => {
1543
+ var x, p, i;
1544
+ return ((i = (p = (x = e.frame) == null ? void 0 : x.canFrameFlags) == null ? void 0 : p.flags) == null ? void 0 : i.includes(X.CAN_FRAME_FLAG_EXT)) === !0 ? "extended" : "standard";
1545
+ },
1546
+ [(I = (R = e.frame) == null ? void 0 : R.canFrameFlags) == null ? void 0 : I.flags]
1547
+ ), m = P(() => {
1548
+ var p;
1549
+ return `${(((p = e.frame) == null ? void 0 : p.id) ?? 0).toString(n).toUpperCase()}`;
1550
+ }, [n, (y = e.frame) == null ? void 0 : y.id]), b = P(() => `${(e.identifierMin ?? 0).toString(n).toUpperCase()}`, [n, e.identifierMin]), g = P(() => `${(e.identifierMax ?? 0).toString(n).toUpperCase()}`, [n, e.identifierMax]), v = P(() => e.randomIdentifier === !0 ? "random" : e.scanIdentifier === !0 ? "scan" : "constant", [e.randomIdentifier, e.scanIdentifier]), C = S(
1551
+ (x, p, i, $, N) => {
1552
+ var A, w, h, F;
1553
+ const L = N, E = parseInt(x, n), T = (w = (A = e.frame) == null ? void 0 : A.canFrameFlags) != null && w.flags ? { flags: [...e.frame.canFrameFlags.flags] } : { flags: [] }, O = T.flags.indexOf(X.CAN_FRAME_FLAG_STD), K = parseInt(i, n), q = parseInt($, n), M = T.flags.indexOf(X.CAN_FRAME_FLAG_EXT);
1554
+ if (O !== -1 && T.flags.splice(O, 1), M !== -1 && T.flags.splice(M, 1), L === "extended" ? T.flags.push(X.CAN_FRAME_FLAG_EXT) : L === "standard" && T.flags.push(X.CAN_FRAME_FLAG_STD), E !== ((h = e.frame) == null ? void 0 : h.id) || !oe(T, (F = e.frame) == null ? void 0 : F.canFrameFlags) || p !== v || K !== e.identifierMin || q !== e.identifierMax) {
1555
+ const f = { ...e };
1556
+ f.frame = e.frame ? { ...e.frame } : Je.fromPartial({
1557
+ id: 0,
1558
+ canFrameFlags: { flags: [X.CAN_FRAME_FLAG_STD] },
1559
+ data: Array.from({ length: 8 }, () => 0)
1560
+ }), f.frame.id = E, f.frame.canFrameFlags = T, p === "constant" ? (f.randomIdentifier = !1, f.scanIdentifier = !1) : p === "random" ? (f.randomIdentifier = !0, f.scanIdentifier = !1) : p === "scan" && (f.randomIdentifier = !1, f.scanIdentifier = !0), f.identifierMin = K, f.identifierMax = q, t(f);
1561
+ }
1562
+ },
1563
+ [v, n, t, e]
1564
+ );
1565
+ return /* @__PURE__ */ s(
1566
+ ht,
1567
+ {
1568
+ canIdentifier: m,
1569
+ identifierGeneratorType: v,
1570
+ minCanIdentifier: b,
1571
+ maxCanIdentifier: g,
1572
+ canIdentifierType: d,
1573
+ onChange: C,
1574
+ onErrorsChange: r,
1575
+ canIdentifierGeneratorSettingsError: a,
1576
+ disabled: o,
1577
+ collapsible: l,
1578
+ collapsed: c,
1579
+ collapsedChange: u
1580
+ }
1581
+ );
1582
+ }
1583
+ function vt(e, t, r, a) {
1584
+ const [o, l] = D(""), [c, u] = D([]);
1585
+ return W(() => {
1586
+ u((n) => {
1587
+ var m;
1588
+ const d = (m = r == null ? void 0 : r.sources) == null ? void 0 : m.filter((b) => {
1589
+ var v, C;
1590
+ const g = (C = (v = a == null ? void 0 : a.find((R) => {
1591
+ var I;
1592
+ return R.nodeId === ((I = b.baseNode) == null ? void 0 : I.identifier);
1593
+ })) == null ? void 0 : v.errorStatus) == null ? void 0 : C.errors;
1594
+ return g === void 0 || g === "" ? b.baseNode && b.channelSettings && b.channelSettings.canConfiguration && (!t || b.channelSettings.canConfiguration.silentMode !== !0) : !1;
1595
+ }).map((b) => ({
1596
+ value: b.channelSettings.channelNumber,
1597
+ displayText: b.baseNode.name,
1598
+ canFdMode: b.channelSettings.canConfiguration.canMode > 0,
1599
+ identifier: b.baseNode.identifier
1600
+ }));
1601
+ return !d || oe(n, d) ? n : d;
1602
+ });
1603
+ }, [t, r == null ? void 0 : r.sources, a]), W(() => {
1604
+ const n = c.find((d) => d.identifier === e);
1605
+ l(n ? (d) => n.value === d ? d : n.value : "");
1606
+ }, [e, c]), {
1607
+ channelOptions: c,
1608
+ selectedChannelOption: o
1609
+ };
1610
+ }
1611
+ function _t({
1612
+ channelIdentifier: e,
1613
+ onChannelIdentifierChange: t,
1614
+ hideSilentChannels: r = !1,
1615
+ hideSectionControl: a = !1,
1616
+ disabled: o = !1,
1617
+ collapsible: l = !1,
1618
+ collapsed: c = !1,
1619
+ collapsedChange: u = void 0
1620
+ }) {
1621
+ var C;
1622
+ const n = Fe(), d = Ie(), m = G(), { channelOptions: b, selectedChannelOption: g } = vt(
1623
+ e,
1624
+ r === !0,
1625
+ n,
1626
+ d
1627
+ ), v = S(
1628
+ (R) => {
1629
+ const I = b.find((p) => p.value === R), y = (I == null ? void 0 : I.identifier) ?? "", x = (I == null ? void 0 : I.canFdMode) === !0;
1630
+ t(y, x);
1631
+ },
1632
+ [b, t]
1633
+ );
1634
+ return a === !0 ? /* @__PURE__ */ s(
1635
+ fe,
1636
+ {
1637
+ id: "channel",
1638
+ label: m.getString("LabelChannel"),
1639
+ fullWidth: !0,
1640
+ value: g,
1641
+ onChange: v,
1642
+ options: b,
1643
+ required: !0,
1644
+ disabled: o
1645
+ }
1646
+ ) : /* @__PURE__ */ s(
1647
+ le,
1648
+ {
1649
+ text: m.getString("LabelChannel"),
1650
+ summary: g === "" || (C = b.find((R) => R.value === g)) == null ? void 0 : C.displayText,
1651
+ collapsible: l,
1652
+ collapsed: c,
1653
+ collapsedChange: u,
1654
+ children: /* @__PURE__ */ s(
1655
+ fe,
1656
+ {
1657
+ id: "channel",
1658
+ label: m.getString("LabelChannel"),
1659
+ fullWidth: !0,
1660
+ value: g,
1661
+ onChange: v,
1662
+ options: b,
1663
+ required: !0,
1664
+ disabled: o
1665
+ }
1666
+ )
1667
+ }
1668
+ );
1669
+ }
1670
+ const kt = U(V)(() => ({
1671
+ height: "100%",
1672
+ width: "100%",
1673
+ padding: "4px",
1674
+ overflow: "auto"
1675
+ }));
1676
+ export {
1677
+ _t as CanChannelSelectControl,
1678
+ ft as CanIdentifierControl,
1679
+ wt as CanIdentifierFrameControl,
1680
+ ht as CanIdentifierGeneratorControl,
1681
+ Et as CanIdentifierGeneratorSettingsControl,
1682
+ Pt as CanKingDataProvider,
1683
+ Ce as CheckboxControl,
1684
+ Bt as ContextMenu,
1685
+ Wt as DevicesContext,
1686
+ Qe as DropdownButton,
1687
+ Ft as DropdownButtonTextItems,
1688
+ It as DropdownPanel,
1689
+ kt as FillBox,
1690
+ re as FormControlRow,
1691
+ Mt as InlineEditor,
1692
+ Ut as LocalizedStrings,
1693
+ Ot as LogMessagesContext,
1694
+ Kt as MeasurementSetupContext,
1695
+ Xt as MeasurementStatusContext,
1696
+ At as NumberRangeControl,
1697
+ ne as OneLineButton,
1698
+ qt as OnlineStatusContext,
1699
+ ee as RadioControl,
1700
+ rt as RadioGroupControl,
1701
+ Yt as RunningPeriodicTransmissionsContext,
1702
+ le as SectionControl,
1703
+ fe as SelectControl,
1704
+ $t as SizedBox,
1705
+ Rt as TableControl,
1706
+ Lt as TabsPanel,
1707
+ nt as TextControl,
1708
+ yt as ToolbarControl,
1709
+ jt as UserSettingsContext,
1710
+ Y as ValidateableTextControl,
1711
+ Gt as WorkspacePanesContext,
1712
+ Ht as addEventListener,
1713
+ Jt as removeEventListener
1714
+ };