@kosdev-code/kos-ddk-model-components 2.0.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 (519) hide show
  1. package/components/actions/action.d.ts +19 -0
  2. package/components/actions/action.d.ts.map +1 -0
  3. package/components/actions/index.d.ts +4 -0
  4. package/components/actions/index.d.ts.map +1 -0
  5. package/components/actions/intent/calibrate-action.d.ts +8 -0
  6. package/components/actions/intent/calibrate-action.d.ts.map +1 -0
  7. package/components/actions/intent/fixed-45.d.ts +8 -0
  8. package/components/actions/intent/fixed-45.d.ts.map +1 -0
  9. package/components/actions/intent/flush-action.d.ts +8 -0
  10. package/components/actions/intent/flush-action.d.ts.map +1 -0
  11. package/components/actions/intent/high-flow-test-action.d.ts +8 -0
  12. package/components/actions/intent/high-flow-test-action.d.ts.map +1 -0
  13. package/components/actions/intent/hold-to-pour-action.d.ts +8 -0
  14. package/components/actions/intent/hold-to-pour-action.d.ts.map +1 -0
  15. package/components/actions/intent/index.d.ts +12 -0
  16. package/components/actions/intent/index.d.ts.map +1 -0
  17. package/components/actions/intent/intent-action.d.ts +27 -0
  18. package/components/actions/intent/intent-action.d.ts.map +1 -0
  19. package/components/actions/intent/low-flow-test-action.d.ts +8 -0
  20. package/components/actions/intent/low-flow-test-action.d.ts.map +1 -0
  21. package/components/actions/intent/manual-override-action.d.ts +8 -0
  22. package/components/actions/intent/manual-override-action.d.ts.map +1 -0
  23. package/components/actions/intent/msv-reset-action.d.ts +8 -0
  24. package/components/actions/intent/msv-reset-action.d.ts.map +1 -0
  25. package/components/actions/intent/prime-action.d.ts +8 -0
  26. package/components/actions/intent/prime-action.d.ts.map +1 -0
  27. package/components/actions/intent/purge-action.d.ts +8 -0
  28. package/components/actions/intent/purge-action.d.ts.map +1 -0
  29. package/components/actions/trouble/generic-trouble-action.d.ts +8 -0
  30. package/components/actions/trouble/generic-trouble-action.d.ts.map +1 -0
  31. package/components/actions/trouble/index.d.ts +5 -0
  32. package/components/actions/trouble/index.d.ts.map +1 -0
  33. package/components/actions/trouble/trouble-aware-action.d.ts +27 -0
  34. package/components/actions/trouble/trouble-aware-action.d.ts.map +1 -0
  35. package/components/agitate-modal/agitator-modal.d.ts +6 -0
  36. package/components/agitate-modal/agitator-modal.d.ts.map +1 -0
  37. package/components/agitate-modal/index.d.ts +2 -0
  38. package/components/agitate-modal/index.d.ts.map +1 -0
  39. package/components/agitation-control-view/agitation-control-view.d.ts +6 -0
  40. package/components/agitation-control-view/agitation-control-view.d.ts.map +1 -0
  41. package/components/agitation-control-view/index.d.ts +2 -0
  42. package/components/agitation-control-view/index.d.ts.map +1 -0
  43. package/components/calibrate-modal/calibrate-modal.d.ts +11 -0
  44. package/components/calibrate-modal/calibrate-modal.d.ts.map +1 -0
  45. package/components/calibrate-modal/index.d.ts +2 -0
  46. package/components/calibrate-modal/index.d.ts.map +1 -0
  47. package/components/cartridge-agitator/detail/agitator.d.ts +9 -0
  48. package/components/cartridge-agitator/detail/agitator.d.ts.map +1 -0
  49. package/components/cartridge-agitator/index.d.ts +3 -0
  50. package/components/cartridge-agitator/index.d.ts.map +1 -0
  51. package/components/cartridge-agitator/summary/agitator.d.ts +9 -0
  52. package/components/cartridge-agitator/summary/agitator.d.ts.map +1 -0
  53. package/components/config-prop-context/StagedChanges.d.ts +21 -0
  54. package/components/config-prop-context/StagedChanges.d.ts.map +1 -0
  55. package/components/config-prop-context/index.d.ts +2 -0
  56. package/components/config-prop-context/index.d.ts.map +1 -0
  57. package/components/config-prop-info-card/config-prop-info-card.d.ts +9 -0
  58. package/components/config-prop-info-card/config-prop-info-card.d.ts.map +1 -0
  59. package/components/config-prop-info-card/index.d.ts +2 -0
  60. package/components/config-prop-info-card/index.d.ts.map +1 -0
  61. package/components/config-prop-input-card/config-prop-input-card.d.ts +10 -0
  62. package/components/config-prop-input-card/config-prop-input-card.d.ts.map +1 -0
  63. package/components/config-prop-input-card/index.d.ts +2 -0
  64. package/components/config-prop-input-card/index.d.ts.map +1 -0
  65. package/components/config-prop-input-range-card/config-prop-input-range-card.d.ts +10 -0
  66. package/components/config-prop-input-range-card/config-prop-input-range-card.d.ts.map +1 -0
  67. package/components/config-prop-input-range-card/index.d.ts +2 -0
  68. package/components/config-prop-input-range-card/index.d.ts.map +1 -0
  69. package/components/config-prop-multi-input-enable-card/config-prop-multi-input-enable-card.d.ts +19 -0
  70. package/components/config-prop-multi-input-enable-card/config-prop-multi-input-enable-card.d.ts.map +1 -0
  71. package/components/config-prop-multi-input-enable-card/index.d.ts +2 -0
  72. package/components/config-prop-multi-input-enable-card/index.d.ts.map +1 -0
  73. package/components/config-prop-picker-card/config-prop-picker-card.d.ts +13 -0
  74. package/components/config-prop-picker-card/config-prop-picker-card.d.ts.map +1 -0
  75. package/components/config-prop-picker-card/index.d.ts +2 -0
  76. package/components/config-prop-picker-card/index.d.ts.map +1 -0
  77. package/components/config-prop-single-input-enable-card/config-prop-single-input-enable-card.d.ts +15 -0
  78. package/components/config-prop-single-input-enable-card/config-prop-single-input-enable-card.d.ts.map +1 -0
  79. package/components/config-prop-single-input-enable-card/index.d.ts +2 -0
  80. package/components/config-prop-single-input-enable-card/index.d.ts.map +1 -0
  81. package/components/config-prop-switch-card/config-prop-switch-card.d.ts +9 -0
  82. package/components/config-prop-switch-card/config-prop-switch-card.d.ts.map +1 -0
  83. package/components/config-prop-switch-card/index.d.ts +2 -0
  84. package/components/config-prop-switch-card/index.d.ts.map +1 -0
  85. package/components/config-prop-time-picker-card/config-prop-time-picker-card.d.ts +9 -0
  86. package/components/config-prop-time-picker-card/config-prop-time-picker-card.d.ts.map +1 -0
  87. package/components/config-prop-time-picker-card/index.d.ts +2 -0
  88. package/components/config-prop-time-picker-card/index.d.ts.map +1 -0
  89. package/components/config-prop-toggle-card/config-prop-toggle-card.d.ts +10 -0
  90. package/components/config-prop-toggle-card/config-prop-toggle-card.d.ts.map +1 -0
  91. package/components/config-prop-toggle-card/index.d.ts +2 -0
  92. package/components/config-prop-toggle-card/index.d.ts.map +1 -0
  93. package/components/config-property-input/base-config-property-component-factory.d.ts +4 -0
  94. package/components/config-property-input/base-config-property-component-factory.d.ts.map +1 -0
  95. package/components/config-property-input/config-property-input-types.d.ts +32 -0
  96. package/components/config-property-input/config-property-input-types.d.ts.map +1 -0
  97. package/components/config-property-input/config-property-input.d.ts +14 -0
  98. package/components/config-property-input/config-property-input.d.ts.map +1 -0
  99. package/components/config-property-input/index.d.ts +3 -0
  100. package/components/config-property-input/index.d.ts.map +1 -0
  101. package/components/date-picker-card/date-picker-card.d.ts +16 -0
  102. package/components/date-picker-card/date-picker-card.d.ts.map +1 -0
  103. package/components/date-picker-card/index.d.ts +2 -0
  104. package/components/date-picker-card/index.d.ts.map +1 -0
  105. package/components/diagnostics-modal/diagnostics-modal.d.ts +11 -0
  106. package/components/diagnostics-modal/diagnostics-modal.d.ts.map +1 -0
  107. package/components/diagnostics-modal/index.d.ts +2 -0
  108. package/components/diagnostics-modal/index.d.ts.map +1 -0
  109. package/components/dispenser-info-settings/dispenser-info-settings.d.ts +4 -0
  110. package/components/dispenser-info-settings/dispenser-info-settings.d.ts.map +1 -0
  111. package/components/dispenser-info-settings/index.d.ts +2 -0
  112. package/components/dispenser-info-settings/index.d.ts.map +1 -0
  113. package/components/dispenser-serial-number/dispenser-serial-number.d.ts +7 -0
  114. package/components/dispenser-serial-number/dispenser-serial-number.d.ts.map +1 -0
  115. package/components/dispenser-serial-number/index.d.ts +2 -0
  116. package/components/dispenser-serial-number/index.d.ts.map +1 -0
  117. package/components/dispenser-settings/dispenser-settings.d.ts +4 -0
  118. package/components/dispenser-settings/dispenser-settings.d.ts.map +1 -0
  119. package/components/dispenser-settings/index.d.ts +2 -0
  120. package/components/dispenser-settings/index.d.ts.map +1 -0
  121. package/components/enjoy-by-date/enjoy-by-date.d.ts +10 -0
  122. package/components/enjoy-by-date/enjoy-by-date.d.ts.map +1 -0
  123. package/components/enjoy-by-date/index.d.ts +2 -0
  124. package/components/enjoy-by-date/index.d.ts.map +1 -0
  125. package/components/future-progress-bar/future-progress-bar.d.ts +27 -0
  126. package/components/future-progress-bar/future-progress-bar.d.ts.map +1 -0
  127. package/components/future-progress-bar/index.d.ts +2 -0
  128. package/components/future-progress-bar/index.d.ts.map +1 -0
  129. package/components/hardware-info/hardware-info.d.ts +4 -0
  130. package/components/hardware-info/hardware-info.d.ts.map +1 -0
  131. package/components/hardware-info/index.d.ts +2 -0
  132. package/components/hardware-info/index.d.ts.map +1 -0
  133. package/components/hold-to-pour-button/hold-to-pour-button.d.ts +11 -0
  134. package/components/hold-to-pour-button/hold-to-pour-button.d.ts.map +1 -0
  135. package/components/hold-to-pour-button/index.d.ts +2 -0
  136. package/components/hold-to-pour-button/index.d.ts.map +1 -0
  137. package/components/holders/holder-card.d.ts +12 -0
  138. package/components/holders/holder-card.d.ts.map +1 -0
  139. package/components/holders/holder-group-view.d.ts +14 -0
  140. package/components/holders/holder-group-view.d.ts.map +1 -0
  141. package/components/holders/index.d.ts +7 -0
  142. package/components/holders/index.d.ts.map +1 -0
  143. package/components/holders/macro-holder-card.d.ts +14 -0
  144. package/components/holders/macro-holder-card.d.ts.map +1 -0
  145. package/components/holders/macro-holder-group-view.d.ts +12 -0
  146. package/components/holders/macro-holder-group-view.d.ts.map +1 -0
  147. package/components/holders/macro-setup-step-card.d.ts +12 -0
  148. package/components/holders/macro-setup-step-card.d.ts.map +1 -0
  149. package/components/holders/use-visible-troubles.d.ts +7 -0
  150. package/components/holders/use-visible-troubles.d.ts.map +1 -0
  151. package/components/ice-agitator-settings-view/ice-agitator-settings-view.d.ts +19 -0
  152. package/components/ice-agitator-settings-view/ice-agitator-settings-view.d.ts.map +1 -0
  153. package/components/ice-agitator-settings-view/index.d.ts +2 -0
  154. package/components/ice-agitator-settings-view/index.d.ts.map +1 -0
  155. package/components/index.d.ts +45 -0
  156. package/components/index.d.ts.map +1 -0
  157. package/components/localization-settings/index.d.ts +2 -0
  158. package/components/localization-settings/index.d.ts.map +1 -0
  159. package/components/localization-settings/localization-settings.d.ts +8 -0
  160. package/components/localization-settings/localization-settings.d.ts.map +1 -0
  161. package/components/network-test-results/NetworkTestResults.d.ts +9 -0
  162. package/components/network-test-results/NetworkTestResults.d.ts.map +1 -0
  163. package/components/network-test-results/index.d.ts +2 -0
  164. package/components/network-test-results/index.d.ts.map +1 -0
  165. package/components/notification-card-view/index.d.ts +2 -0
  166. package/components/notification-card-view/index.d.ts.map +1 -0
  167. package/components/notification-card-view/notification-card-view.d.ts +11 -0
  168. package/components/notification-card-view/notification-card-view.d.ts.map +1 -0
  169. package/components/plugin-tabs/index.d.ts +2 -0
  170. package/components/plugin-tabs/index.d.ts.map +1 -0
  171. package/components/plugin-tabs/plugin-tabs.d.ts +10 -0
  172. package/components/plugin-tabs/plugin-tabs.d.ts.map +1 -0
  173. package/components/pump-cards/holder-actions/holder-actions.d.ts +7 -0
  174. package/components/pump-cards/holder-actions/holder-actions.d.ts.map +1 -0
  175. package/components/pump-cards/holder-actions/index.d.ts +2 -0
  176. package/components/pump-cards/holder-actions/index.d.ts.map +1 -0
  177. package/components/pump-cards/holder-notifications/holder-notifications.d.ts +9 -0
  178. package/components/pump-cards/holder-notifications/holder-notifications.d.ts.map +1 -0
  179. package/components/pump-cards/holder-notifications/index.d.ts +2 -0
  180. package/components/pump-cards/holder-notifications/index.d.ts.map +1 -0
  181. package/components/pump-cards/index.d.ts +7 -0
  182. package/components/pump-cards/index.d.ts.map +1 -0
  183. package/components/pump-cards/lfcv-pump-card/index.d.ts +2 -0
  184. package/components/pump-cards/lfcv-pump-card/index.d.ts.map +1 -0
  185. package/components/pump-cards/lfcv-pump-card/lfcv-pump-card.d.ts +9 -0
  186. package/components/pump-cards/lfcv-pump-card/lfcv-pump-card.d.ts.map +1 -0
  187. package/components/pump-cards/msv-pump-card/index.d.ts +2 -0
  188. package/components/pump-cards/msv-pump-card/index.d.ts.map +1 -0
  189. package/components/pump-cards/msv-pump-card/msv-pump-card.d.ts +9 -0
  190. package/components/pump-cards/msv-pump-card/msv-pump-card.d.ts.map +1 -0
  191. package/components/pump-cards/valve-card/index.d.ts +2 -0
  192. package/components/pump-cards/valve-card/index.d.ts.map +1 -0
  193. package/components/pump-cards/valve-card/valve-card.d.ts +9 -0
  194. package/components/pump-cards/valve-card/valve-card.d.ts.map +1 -0
  195. package/components/pump-cards/water-pump-card/index.d.ts +2 -0
  196. package/components/pump-cards/water-pump-card/index.d.ts.map +1 -0
  197. package/components/pump-cards/water-pump-card/water-pump-card.d.ts +9 -0
  198. package/components/pump-cards/water-pump-card/water-pump-card.d.ts.map +1 -0
  199. package/components/reboot-view/index.d.ts +2 -0
  200. package/components/reboot-view/index.d.ts.map +1 -0
  201. package/components/reboot-view/reboot-view.d.ts +4 -0
  202. package/components/reboot-view/reboot-view.d.ts.map +1 -0
  203. package/components/replace-line/index.d.ts +2 -0
  204. package/components/replace-line/index.d.ts.map +1 -0
  205. package/components/replace-line/replace-line.d.ts +11 -0
  206. package/components/replace-line/replace-line.d.ts.map +1 -0
  207. package/components/replace-pump/index.d.ts +2 -0
  208. package/components/replace-pump/index.d.ts.map +1 -0
  209. package/components/replace-pump/replace-pump.d.ts +11 -0
  210. package/components/replace-pump/replace-pump.d.ts.map +1 -0
  211. package/components/rfid-override/index.d.ts +2 -0
  212. package/components/rfid-override/index.d.ts.map +1 -0
  213. package/components/rfid-override/rfid-override.d.ts +6 -0
  214. package/components/rfid-override/rfid-override.d.ts.map +1 -0
  215. package/components/setup-required/index.d.ts +2 -0
  216. package/components/setup-required/index.d.ts.map +1 -0
  217. package/components/setup-required/setup-required.d.ts +8 -0
  218. package/components/setup-required/setup-required.d.ts.map +1 -0
  219. package/components/setup-sidebar/index.d.ts +2 -0
  220. package/components/setup-sidebar/index.d.ts.map +1 -0
  221. package/components/setup-sidebar/setup-sidebar.d.ts +19 -0
  222. package/components/setup-sidebar/setup-sidebar.d.ts.map +1 -0
  223. package/components/software/index.d.ts +2 -0
  224. package/components/software/index.d.ts.map +1 -0
  225. package/components/software/software.d.ts +2 -0
  226. package/components/software/software.d.ts.map +1 -0
  227. package/components/state-experience/index.d.ts +2 -0
  228. package/components/state-experience/index.d.ts.map +1 -0
  229. package/components/state-experience/state-experience.d.ts +6 -0
  230. package/components/state-experience/state-experience.d.ts.map +1 -0
  231. package/components/system-date-picker-card/index.d.ts +2 -0
  232. package/components/system-date-picker-card/index.d.ts.map +1 -0
  233. package/components/system-date-picker-card/system-date-picker-card.d.ts +2 -0
  234. package/components/system-date-picker-card/system-date-picker-card.d.ts.map +1 -0
  235. package/components/time-picker-card/index.d.ts +2 -0
  236. package/components/time-picker-card/index.d.ts.map +1 -0
  237. package/components/time-picker-card/time-picker-card.d.ts +12 -0
  238. package/components/time-picker-card/time-picker-card.d.ts.map +1 -0
  239. package/components/time-settings/index.d.ts +2 -0
  240. package/components/time-settings/index.d.ts.map +1 -0
  241. package/components/time-settings/time-settings.d.ts +8 -0
  242. package/components/time-settings/time-settings.d.ts.map +1 -0
  243. package/components/time-zone-picker-card/index.d.ts +2 -0
  244. package/components/time-zone-picker-card/index.d.ts.map +1 -0
  245. package/components/time-zone-picker-card/time-zone-picker-card.d.ts +7 -0
  246. package/components/time-zone-picker-card/time-zone-picker-card.d.ts.map +1 -0
  247. package/components/water-settings/index.d.ts +2 -0
  248. package/components/water-settings/index.d.ts.map +1 -0
  249. package/components/water-settings/water-settings.d.ts +9 -0
  250. package/components/water-settings/water-settings.d.ts.map +1 -0
  251. package/contexts/animation/animation-provider.d.ts +13 -0
  252. package/contexts/animation/animation-provider.d.ts.map +1 -0
  253. package/contexts/animation/index.d.ts +2 -0
  254. package/contexts/animation/index.d.ts.map +1 -0
  255. package/contexts/application/application-component-configuration-provider.d.ts +19 -0
  256. package/contexts/application/application-component-configuration-provider.d.ts.map +1 -0
  257. package/contexts/application/application-provider.d.ts +13 -0
  258. package/contexts/application/application-provider.d.ts.map +1 -0
  259. package/contexts/application/index.d.ts +3 -0
  260. package/contexts/application/index.d.ts.map +1 -0
  261. package/contexts/dashboard-operations/dashboard-operations-provider.d.ts +13 -0
  262. package/contexts/dashboard-operations/dashboard-operations-provider.d.ts.map +1 -0
  263. package/contexts/dashboard-operations/index.d.ts +2 -0
  264. package/contexts/dashboard-operations/index.d.ts.map +1 -0
  265. package/contexts/dispenser-info/dispenser-info-provider.d.ts +14 -0
  266. package/contexts/dispenser-info/dispenser-info-provider.d.ts.map +1 -0
  267. package/contexts/dispenser-info/index.d.ts +2 -0
  268. package/contexts/dispenser-info/index.d.ts.map +1 -0
  269. package/contexts/index.d.ts +15 -0
  270. package/contexts/index.d.ts.map +1 -0
  271. package/contexts/ingredient-summary/index.d.ts +2 -0
  272. package/contexts/ingredient-summary/index.d.ts.map +1 -0
  273. package/contexts/ingredient-summary/ingredient-summary-provider.d.ts +14 -0
  274. package/contexts/ingredient-summary/ingredient-summary-provider.d.ts.map +1 -0
  275. package/contexts/macro-assignment/index.d.ts +2 -0
  276. package/contexts/macro-assignment/index.d.ts.map +1 -0
  277. package/contexts/macro-assignment/macro-assignment-provider.d.ts +13 -0
  278. package/contexts/macro-assignment/macro-assignment-provider.d.ts.map +1 -0
  279. package/contexts/network-test/index.d.ts +2 -0
  280. package/contexts/network-test/index.d.ts.map +1 -0
  281. package/contexts/network-test/network-test-provider.d.ts +14 -0
  282. package/contexts/network-test/network-test-provider.d.ts.map +1 -0
  283. package/contexts/network-test-container/index.d.ts +2 -0
  284. package/contexts/network-test-container/index.d.ts.map +1 -0
  285. package/contexts/network-test-container/network-test-container-provider.d.ts +13 -0
  286. package/contexts/network-test-container/network-test-container-provider.d.ts.map +1 -0
  287. package/contexts/nutritive-sweetener/index.d.ts +2 -0
  288. package/contexts/nutritive-sweetener/index.d.ts.map +1 -0
  289. package/contexts/nutritive-sweetener/nutritive-sweetener-provider.d.ts +14 -0
  290. package/contexts/nutritive-sweetener/nutritive-sweetener-provider.d.ts.map +1 -0
  291. package/contexts/reboot/index.d.ts +2 -0
  292. package/contexts/reboot/index.d.ts.map +1 -0
  293. package/contexts/reboot/reboot-provider.d.ts +14 -0
  294. package/contexts/reboot/reboot-provider.d.ts.map +1 -0
  295. package/contexts/settings/index.d.ts +2 -0
  296. package/contexts/settings/index.d.ts.map +1 -0
  297. package/contexts/settings/settings-provider.d.ts +13 -0
  298. package/contexts/settings/settings-provider.d.ts.map +1 -0
  299. package/contexts/setup-step/index.d.ts +2 -0
  300. package/contexts/setup-step/index.d.ts.map +1 -0
  301. package/contexts/setup-step/setup-step-provider.d.ts +14 -0
  302. package/contexts/setup-step/setup-step-provider.d.ts.map +1 -0
  303. package/contexts/setup-step-container/index.d.ts +2 -0
  304. package/contexts/setup-step-container/index.d.ts.map +1 -0
  305. package/contexts/setup-step-container/setup-step-container-provider.d.ts +13 -0
  306. package/contexts/setup-step-container/setup-step-container-provider.d.ts.map +1 -0
  307. package/contexts/utilities/index.d.ts +2 -0
  308. package/contexts/utilities/index.d.ts.map +1 -0
  309. package/contexts/utilities/utilities-provider.d.ts +14 -0
  310. package/contexts/utilities/utilities-provider.d.ts.map +1 -0
  311. package/contexts/utilities-container/index.d.ts +2 -0
  312. package/contexts/utilities-container/index.d.ts.map +1 -0
  313. package/contexts/utilities-container/utilities-container-provider.d.ts +13 -0
  314. package/contexts/utilities-container/utilities-container-provider.d.ts.map +1 -0
  315. package/hooks/actions/index.d.ts +4 -0
  316. package/hooks/actions/index.d.ts.map +1 -0
  317. package/hooks/actions/types.d.ts +9 -0
  318. package/hooks/actions/types.d.ts.map +1 -0
  319. package/hooks/actions/use-combined-actions.d.ts +9 -0
  320. package/hooks/actions/use-combined-actions.d.ts.map +1 -0
  321. package/hooks/actions/use-pump-action.d.ts +15 -0
  322. package/hooks/actions/use-pump-action.d.ts.map +1 -0
  323. package/hooks/actions/use-trouble-action.d.ts +14 -0
  324. package/hooks/actions/use-trouble-action.d.ts.map +1 -0
  325. package/hooks/agitation-control/index.d.ts +3 -0
  326. package/hooks/agitation-control/index.d.ts.map +1 -0
  327. package/hooks/agitation-control/use-agitation-control.d.ts +14 -0
  328. package/hooks/agitation-control/use-agitation-control.d.ts.map +1 -0
  329. package/hooks/agitation-control/with-agitation-control.d.ts +9 -0
  330. package/hooks/agitation-control/with-agitation-control.d.ts.map +1 -0
  331. package/hooks/animation/index.d.ts +3 -0
  332. package/hooks/animation/index.d.ts.map +1 -0
  333. package/hooks/animation/use-animation.d.ts +14 -0
  334. package/hooks/animation/use-animation.d.ts.map +1 -0
  335. package/hooks/animation/with-animation.d.ts +7 -0
  336. package/hooks/animation/with-animation.d.ts.map +1 -0
  337. package/hooks/application/index.d.ts +3 -0
  338. package/hooks/application/index.d.ts.map +1 -0
  339. package/hooks/application/use-application.d.ts +14 -0
  340. package/hooks/application/use-application.d.ts.map +1 -0
  341. package/hooks/application/with-application.d.ts +8 -0
  342. package/hooks/application/with-application.d.ts.map +1 -0
  343. package/hooks/carb-water/index.d.ts +3 -0
  344. package/hooks/carb-water/index.d.ts.map +1 -0
  345. package/hooks/carb-water/use-carb-water.d.ts +14 -0
  346. package/hooks/carb-water/use-carb-water.d.ts.map +1 -0
  347. package/hooks/carb-water/with-carb-water.d.ts +8 -0
  348. package/hooks/carb-water/with-carb-water.d.ts.map +1 -0
  349. package/hooks/copy-logs/index.d.ts +3 -0
  350. package/hooks/copy-logs/index.d.ts.map +1 -0
  351. package/hooks/copy-logs/use-copy-logs.d.ts +14 -0
  352. package/hooks/copy-logs/use-copy-logs.d.ts.map +1 -0
  353. package/hooks/copy-logs/with-copy-logs.d.ts +9 -0
  354. package/hooks/copy-logs/with-copy-logs.d.ts.map +1 -0
  355. package/hooks/dashboard-operations/index.d.ts +3 -0
  356. package/hooks/dashboard-operations/index.d.ts.map +1 -0
  357. package/hooks/dashboard-operations/use-dashboard-operations.d.ts +14 -0
  358. package/hooks/dashboard-operations/use-dashboard-operations.d.ts.map +1 -0
  359. package/hooks/dashboard-operations/with-dashboard-operations.d.ts +8 -0
  360. package/hooks/dashboard-operations/with-dashboard-operations.d.ts.map +1 -0
  361. package/hooks/dispenser-info/index.d.ts +3 -0
  362. package/hooks/dispenser-info/index.d.ts.map +1 -0
  363. package/hooks/dispenser-info/use-dispenser-info.d.ts +14 -0
  364. package/hooks/dispenser-info/use-dispenser-info.d.ts.map +1 -0
  365. package/hooks/dispenser-info/with-dispenser-info.d.ts +7 -0
  366. package/hooks/dispenser-info/with-dispenser-info.d.ts.map +1 -0
  367. package/hooks/door/index.d.ts +3 -0
  368. package/hooks/door/index.d.ts.map +1 -0
  369. package/hooks/door/use-door.d.ts +14 -0
  370. package/hooks/door/use-door.d.ts.map +1 -0
  371. package/hooks/door/with-door.d.ts +12 -0
  372. package/hooks/door/with-door.d.ts.map +1 -0
  373. package/hooks/extensions/index.d.ts +2 -0
  374. package/hooks/extensions/index.d.ts.map +1 -0
  375. package/hooks/extensions/use-view-extensions.d.ts +12 -0
  376. package/hooks/extensions/use-view-extensions.d.ts.map +1 -0
  377. package/hooks/future/index.d.ts +2 -0
  378. package/hooks/future/index.d.ts.map +1 -0
  379. package/hooks/future/use-future-container.d.ts +9 -0
  380. package/hooks/future/use-future-container.d.ts.map +1 -0
  381. package/hooks/holder-experience/holder-experience.d.ts +14 -0
  382. package/hooks/holder-experience/holder-experience.d.ts.map +1 -0
  383. package/hooks/holder-experience/index.d.ts +2 -0
  384. package/hooks/holder-experience/index.d.ts.map +1 -0
  385. package/hooks/holders/index.d.ts +2 -0
  386. package/hooks/holders/index.d.ts.map +1 -0
  387. package/hooks/holders/use-holder-content.d.ts +27 -0
  388. package/hooks/holders/use-holder-content.d.ts.map +1 -0
  389. package/hooks/index.d.ts +30 -0
  390. package/hooks/index.d.ts.map +1 -0
  391. package/hooks/ingredient-summary/index.d.ts +3 -0
  392. package/hooks/ingredient-summary/index.d.ts.map +1 -0
  393. package/hooks/ingredient-summary/use-ingredient-summary.d.ts +14 -0
  394. package/hooks/ingredient-summary/use-ingredient-summary.d.ts.map +1 -0
  395. package/hooks/ingredient-summary/with-ingredient-summary.d.ts +8 -0
  396. package/hooks/ingredient-summary/with-ingredient-summary.d.ts.map +1 -0
  397. package/hooks/macro-assignment/index.d.ts +3 -0
  398. package/hooks/macro-assignment/index.d.ts.map +1 -0
  399. package/hooks/macro-assignment/use-macro-assignment.d.ts +14 -0
  400. package/hooks/macro-assignment/use-macro-assignment.d.ts.map +1 -0
  401. package/hooks/macro-assignment/with-macro-assignment.d.ts +7 -0
  402. package/hooks/macro-assignment/with-macro-assignment.d.ts.map +1 -0
  403. package/hooks/network-test/index.d.ts +3 -0
  404. package/hooks/network-test/index.d.ts.map +1 -0
  405. package/hooks/network-test/use-network-test.d.ts +14 -0
  406. package/hooks/network-test/use-network-test.d.ts.map +1 -0
  407. package/hooks/network-test/with-network-test.d.ts +8 -0
  408. package/hooks/network-test/with-network-test.d.ts.map +1 -0
  409. package/hooks/network-test-container/index.d.ts +3 -0
  410. package/hooks/network-test-container/index.d.ts.map +1 -0
  411. package/hooks/network-test-container/use-network-test-container.d.ts +14 -0
  412. package/hooks/network-test-container/use-network-test-container.d.ts.map +1 -0
  413. package/hooks/network-test-container/with-network-test-container.d.ts +8 -0
  414. package/hooks/network-test-container/with-network-test-container.d.ts.map +1 -0
  415. package/hooks/nutritive-sweetener/index.d.ts +3 -0
  416. package/hooks/nutritive-sweetener/index.d.ts.map +1 -0
  417. package/hooks/nutritive-sweetener/use-nutritive-sweetener.d.ts +14 -0
  418. package/hooks/nutritive-sweetener/use-nutritive-sweetener.d.ts.map +1 -0
  419. package/hooks/nutritive-sweetener/with-nutritive-sweetener.d.ts +8 -0
  420. package/hooks/nutritive-sweetener/with-nutritive-sweetener.d.ts.map +1 -0
  421. package/hooks/plain-water/index.d.ts +3 -0
  422. package/hooks/plain-water/index.d.ts.map +1 -0
  423. package/hooks/plain-water/use-plain-water.d.ts +14 -0
  424. package/hooks/plain-water/use-plain-water.d.ts.map +1 -0
  425. package/hooks/plain-water/with-plain-water.d.ts +7 -0
  426. package/hooks/plain-water/with-plain-water.d.ts.map +1 -0
  427. package/hooks/plugin-extensions/index.d.ts +2 -0
  428. package/hooks/plugin-extensions/index.d.ts.map +1 -0
  429. package/hooks/plugin-extensions/use-plugin-extensions.d.ts +6 -0
  430. package/hooks/plugin-extensions/use-plugin-extensions.d.ts.map +1 -0
  431. package/hooks/reboot/index.d.ts +3 -0
  432. package/hooks/reboot/index.d.ts.map +1 -0
  433. package/hooks/reboot/use-reboot.d.ts +14 -0
  434. package/hooks/reboot/use-reboot.d.ts.map +1 -0
  435. package/hooks/reboot/with-reboot.d.ts +8 -0
  436. package/hooks/reboot/with-reboot.d.ts.map +1 -0
  437. package/hooks/settings/index.d.ts +3 -0
  438. package/hooks/settings/index.d.ts.map +1 -0
  439. package/hooks/settings/use-settings.d.ts +14 -0
  440. package/hooks/settings/use-settings.d.ts.map +1 -0
  441. package/hooks/settings/with-settings.d.ts +7 -0
  442. package/hooks/settings/with-settings.d.ts.map +1 -0
  443. package/hooks/setup-step/index.d.ts +3 -0
  444. package/hooks/setup-step/index.d.ts.map +1 -0
  445. package/hooks/setup-step/use-setup-step.d.ts +14 -0
  446. package/hooks/setup-step/use-setup-step.d.ts.map +1 -0
  447. package/hooks/setup-step/with-setup-step.d.ts +8 -0
  448. package/hooks/setup-step/with-setup-step.d.ts.map +1 -0
  449. package/hooks/setup-step-container/index.d.ts +3 -0
  450. package/hooks/setup-step-container/index.d.ts.map +1 -0
  451. package/hooks/setup-step-container/use-setup-step-container.d.ts +14 -0
  452. package/hooks/setup-step-container/use-setup-step-container.d.ts.map +1 -0
  453. package/hooks/setup-step-container/with-setup-step-container.d.ts +7 -0
  454. package/hooks/setup-step-container/with-setup-step-container.d.ts.map +1 -0
  455. package/hooks/start/index.d.ts +3 -0
  456. package/hooks/start/index.d.ts.map +1 -0
  457. package/hooks/start/use-start.d.ts +14 -0
  458. package/hooks/start/use-start.d.ts.map +1 -0
  459. package/hooks/start/with-start.d.ts +9 -0
  460. package/hooks/start/with-start.d.ts.map +1 -0
  461. package/hooks/test/index.d.ts +3 -0
  462. package/hooks/test/index.d.ts.map +1 -0
  463. package/hooks/test/use-test.d.ts +14 -0
  464. package/hooks/test/use-test.d.ts.map +1 -0
  465. package/hooks/test/with-test.d.ts +7 -0
  466. package/hooks/test/with-test.d.ts.map +1 -0
  467. package/hooks/trouble-action/index.d.ts +3 -0
  468. package/hooks/trouble-action/index.d.ts.map +1 -0
  469. package/hooks/trouble-action/use-trouble-action.d.ts +14 -0
  470. package/hooks/trouble-action/use-trouble-action.d.ts.map +1 -0
  471. package/hooks/trouble-action/with-trouble-action.d.ts +9 -0
  472. package/hooks/trouble-action/with-trouble-action.d.ts.map +1 -0
  473. package/hooks/troubles/index.d.ts +2 -0
  474. package/hooks/troubles/index.d.ts.map +1 -0
  475. package/hooks/troubles/use-trouble-visibility.d.ts +10 -0
  476. package/hooks/troubles/use-trouble-visibility.d.ts.map +1 -0
  477. package/hooks/utilities/index.d.ts +3 -0
  478. package/hooks/utilities/index.d.ts.map +1 -0
  479. package/hooks/utilities/use-utilities.d.ts +14 -0
  480. package/hooks/utilities/use-utilities.d.ts.map +1 -0
  481. package/hooks/utilities/with-utilities.d.ts +8 -0
  482. package/hooks/utilities/with-utilities.d.ts.map +1 -0
  483. package/hooks/utilities-container/index.d.ts +3 -0
  484. package/hooks/utilities-container/index.d.ts.map +1 -0
  485. package/hooks/utilities-container/use-utilities-container.d.ts +14 -0
  486. package/hooks/utilities-container/use-utilities-container.d.ts.map +1 -0
  487. package/hooks/utilities-container/with-utilities-container.d.ts +7 -0
  488. package/hooks/utilities-container/with-utilities-container.d.ts.map +1 -0
  489. package/index.cjs +371 -0
  490. package/index.d.ts +6 -0
  491. package/index.d.ts.map +1 -0
  492. package/index.js +3708 -0
  493. package/models/index.d.ts +2 -0
  494. package/models/index.d.ts.map +1 -0
  495. package/models/test/index.d.ts +4 -0
  496. package/models/test/index.d.ts.map +1 -0
  497. package/models/test/services/index.d.ts +2 -0
  498. package/models/test/services/index.d.ts.map +1 -0
  499. package/models/test/services/test-services.d.ts +10 -0
  500. package/models/test/services/test-services.d.ts.map +1 -0
  501. package/models/test/test-model.d.ts +23 -0
  502. package/models/test/test-model.d.ts.map +1 -0
  503. package/models/test/test-registration.d.ts +71 -0
  504. package/models/test/test-registration.d.ts.map +1 -0
  505. package/package.json +28 -0
  506. package/styles/actions.d.ts +13 -0
  507. package/styles/actions.d.ts.map +1 -0
  508. package/utils/companion-utils.d.ts +4 -0
  509. package/utils/companion-utils.d.ts.map +1 -0
  510. package/utils/extension-utils.d.ts +29 -0
  511. package/utils/extension-utils.d.ts.map +1 -0
  512. package/utils/index.d.ts +5 -0
  513. package/utils/index.d.ts.map +1 -0
  514. package/utils/plugin-visibility-extension.d.ts +3 -0
  515. package/utils/plugin-visibility-extension.d.ts.map +1 -0
  516. package/utils/troubles/index.d.ts +2 -0
  517. package/utils/troubles/index.d.ts.map +1 -0
  518. package/utils/troubles/trouble-label-factory.d.ts +15 -0
  519. package/utils/troubles/trouble-label-factory.d.ts.map +1 -0
package/index.js ADDED
@@ -0,0 +1,3708 @@
1
+ var Vn = Object.defineProperty;
2
+ var Hn = (e, t, n) => t in e ? Vn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
3
+ var E = (e, t, n) => (Hn(e, typeof t != "symbol" ? t + "" : t, n), n);
4
+ import { FutureManager as Bt, kosComponent as I, useKosTranslation as S, useKosModel as F, kosAutoEffect as ee, FutureEndState as at, KosLog as j, useConfigProperty as W, useKosRegions as X, useRegionTimeProps as Ot, useDateProps as Rt, getKosCompanionModel as He, registerExtensionPoint as _n, ExtensionManager as ce, CoreExtensionManager as zn, useTroubleContainerModel as Un, withDevice as Kn, useFormattedDate as jn, troubleDataFactory as Nt, useSoftwareInfo as Wn, useKosTime as je } from "@kosdev-code/kos-ui-sdk";
5
+ import { jsx as o, jsxs as y, Fragment as $ } from "@emotion/react/jsx-runtime";
6
+ import w from "@emotion/styled";
7
+ import { useComponentConfigurationContext as R, Modal as te, Header as ne, BackButton as le, Content as q, InfoCard as De, Footer as _, Button as T, CloseButton as Gn, ProgressBar as Vt, LabelInformation as H, BodyMediumInformation as J, InputCard as ke, WorkflowModal as Ht, StatusIndicator as We, InputRangeCard as Xn, ToggleCard as Yn, PickerCard as _e, Card as qn, SwitchCard as Pe, MultiPickerCard as Ge, LabelDate as Xe, Table as _t, LabelInformationExtraSmall as Qn, getItemData as Zn, TapAndHoldButton as Jn, ComponentConfigurationProvider as eo, useAbbreviation as zt, getFillColor as to, HolderDashboardCard as Ut, FuelGauge as no, UtilityModalHeading as Kt, TabContainer as de, SettingsSubheading as ue, StatusCard as oo, NotificationCard as ro, TabViewLayout as so, TabRouter as io, CompactCloseButton as ao, QuestionIconStyle as co, CancelProceedFooter as lo, StatusBar as jt, InfoContainer as uo, ErrorInputCard as ct, FailureCard as po, useNavigate as mo, Sidebar as go, FrameContainer as ho, FrameBody as fo, SwitchPickerCard as bo } from "@kosdev-code/kos-ddk-components";
8
+ import lt, { useState as x, useEffect as M, useCallback as L, useMemo as D, createContext as B, useContext as O, useRef as dt, useLayoutEffect as vo, Suspense as Ye } from "react";
9
+ import { AgitationControl as ut, toTimeComponents as yo, toSeconds as wo, Animation as pt, Application as mt, CarbWater as gt, CopyLogs as ht, DashboardOperations as ft, DispenserInfo as bt, Door as Co, FcmPump as ze, IngredientSummary as vt, MacroAssignment as yt, NetworkTest as xo, NetworkTestContainer as wt, NutritiveSweetener as Ct, PlainWater as xt, LfcvPump as So, Reboot as St, Settings as kt, SetupStep as ko, SetupStepContainer as Pt, Start as Tt, TroubleActionManager as It, Utilities as Po, UtilitiesContainer as Dt, troubleVisibilityFilter as To } from "@kosdev-code/kos-ddk-models";
10
+ import { MessageErrorIcon as Io, SuccessIcon as Do, TimeIcon as Wt, CalendarIcon as Lo, MessageInformationIconWithBackground as Ao } from "@kosdev-code/kos-ddk-styles";
11
+ import { DispenseExtensionManager as Eo, useBoardContainer as Fo, withAssembly as $o } from "@kosdev-code/kos-dispense-sdk";
12
+ import { useKosPluginsContext as qe, DynamicComponent as Le } from "@kosdev-code/kos-ui-plugin";
13
+ import { EXTENSION_POINT_SETUP as Gt, EXTENSION_POINT_CUI as Mo, EXTENSION_POINT_UTIL as Bo, EXTENSION_POINT_TROUBLE_ACTION as Ue, EXTENSION_POINT_DASHBOARD as Xt, EXTENSION_POINT_DASHBOARD_PUMP_DETAIL as Yt } from "@kosdev-code/kos-ui-plugin/utilities";
14
+ import { useLocation as Oo, useSearchParams as Ro } from "react-router-dom";
15
+ import { FreestylePump as No } from "@kosdev-code/kos-freestyle-sdk";
16
+ class z {
17
+ constructor(t, n) {
18
+ E(this, "future");
19
+ E(this, "intentContainer");
20
+ E(this, "title");
21
+ E(this, "intent");
22
+ E(this, "namespace");
23
+ E(this, "successMessage");
24
+ E(this, "failureMessage");
25
+ E(this, "actionLabel");
26
+ this.intentContainer = t, this.title = n.title, this.namespace = n.namespace, this.intent = n.intent, this.successMessage = n.successMessage, this.failureMessage = n.failureMessage, this.actionLabel = n.actionLabel;
27
+ }
28
+ get type() {
29
+ return "intentContainer";
30
+ }
31
+ async performAction() {
32
+ const t = await this.intentContainer.performIntent(this.intent);
33
+ t != null && t.tracker && (this.future = Bt.getFuture(t.tracker));
34
+ }
35
+ }
36
+ class Vo extends z {
37
+ constructor(t) {
38
+ super(t, {
39
+ title: "Calibrate",
40
+ intent: "CALIBRATE",
41
+ successMessage: "Calibrate Complete",
42
+ failureMessage: "Calibrate Failed"
43
+ });
44
+ }
45
+ enabled() {
46
+ return !0;
47
+ }
48
+ }
49
+ class Ho extends z {
50
+ constructor(t) {
51
+ super(t, {
52
+ title: "45ml Flow Test",
53
+ intent: "FIXED_45",
54
+ successMessage: "45ml Flow Test Complete",
55
+ failureMessage: "45ml Flow Test Failed"
56
+ });
57
+ }
58
+ enabled() {
59
+ return !0;
60
+ }
61
+ }
62
+ class _o extends z {
63
+ constructor(t) {
64
+ super(t, {
65
+ title: "Flush",
66
+ intent: "FLUSH",
67
+ successMessage: "Flush Complete",
68
+ failureMessage: "Flush Failed"
69
+ });
70
+ }
71
+ enabled() {
72
+ return !0;
73
+ }
74
+ }
75
+ class zo extends z {
76
+ constructor(t) {
77
+ super(t, {
78
+ title: "High Flow Test",
79
+ intent: "HIGH_FLOW_TEST",
80
+ successMessage: "High Flow Test Complete",
81
+ failureMessage: "High Flow Test Failed"
82
+ });
83
+ }
84
+ enabled() {
85
+ return !0;
86
+ }
87
+ }
88
+ class Uo extends z {
89
+ constructor(t) {
90
+ super(t, {
91
+ title: "Hold to Pour",
92
+ intent: "HOLD_TO_POUR",
93
+ successMessage: "Pour Complete",
94
+ failureMessage: "Pour Failed"
95
+ });
96
+ }
97
+ enabled() {
98
+ return !0;
99
+ }
100
+ }
101
+ class Ko extends z {
102
+ constructor(t) {
103
+ super(t, {
104
+ title: "Low Flow Test",
105
+ intent: "LOW_FLOW_TEST",
106
+ successMessage: "Low Flow Test Complete",
107
+ failureMessage: "Low Flow Test Failed"
108
+ });
109
+ }
110
+ enabled() {
111
+ return !0;
112
+ }
113
+ }
114
+ class jo extends z {
115
+ constructor(t) {
116
+ super(t, {
117
+ title: "Manual Override",
118
+ intent: "SOFT_START",
119
+ successMessage: "Manual Override Complete",
120
+ failureMessage: "Manual Override Failed"
121
+ });
122
+ }
123
+ enabled() {
124
+ return !0;
125
+ }
126
+ }
127
+ class Wo extends z {
128
+ constructor(t) {
129
+ super(t, {
130
+ title: "Reset",
131
+ intent: "MSV_RESET",
132
+ successMessage: "Reset Complete",
133
+ failureMessage: "Reset Failed"
134
+ });
135
+ }
136
+ enabled() {
137
+ return !0;
138
+ }
139
+ }
140
+ class Go extends z {
141
+ constructor(t) {
142
+ super(t, {
143
+ title: "Prime",
144
+ intent: "PRIME",
145
+ successMessage: "Prime Complete",
146
+ failureMessage: "Prime Failed"
147
+ });
148
+ }
149
+ enabled() {
150
+ return !0;
151
+ }
152
+ }
153
+ class Xo extends z {
154
+ constructor(t) {
155
+ super(t, {
156
+ title: "Purge",
157
+ intent: "PURGE",
158
+ successMessage: "Purge Complete",
159
+ failureMessage: "Purge Failed"
160
+ });
161
+ }
162
+ enabled() {
163
+ return !0;
164
+ }
165
+ }
166
+ class Yo {
167
+ constructor(t, n) {
168
+ E(this, "future");
169
+ E(this, "troubleAware");
170
+ E(this, "title");
171
+ E(this, "troubleKey");
172
+ E(this, "namespace");
173
+ E(this, "successMessage");
174
+ E(this, "failureMessage");
175
+ E(this, "actionLabel");
176
+ this.troubleAware = t, this.troubleKey = n.trouble, this.namespace = n.namespace || "troubles", this.title = n.title || `${this.namespace}:troubles.${this.troubleKey}.progress`, this.successMessage = n.successMessage || `${this.namespace}:troubles.${this.troubleKey}.success`, this.failureMessage = n.failureMessage || `${this.namespace}:troubles.${this.troubleKey}.error`, this.actionLabel = n.action || `${this.namespace}:troubles.${this.troubleKey}.action`;
177
+ }
178
+ get type() {
179
+ return "troubleAware";
180
+ }
181
+ async performAction() {
182
+ const t = this.troubleAware.troublesByType[this.troubleKey];
183
+ if (!t)
184
+ return;
185
+ const r = await t[0].resolve();
186
+ r != null && r.tracker && (this.future = Bt.getFuture(r.tracker));
187
+ }
188
+ }
189
+ class qo extends Yo {
190
+ constructor(t, n) {
191
+ super(t, {
192
+ trouble: n
193
+ });
194
+ }
195
+ enabled() {
196
+ return !0;
197
+ }
198
+ }
199
+ const ti = "PrimeTrouble", ni = "PurgeTrouble", Qo = w.div`
200
+ display: flex;
201
+ flex-direction: column;
202
+ overflow-y: auto;
203
+ overflow-x: hidden;
204
+ gap: 32px;
205
+ height: 100%;
206
+ `, Zo = I(
207
+ ({ holder: e, onComplete: t }) => {
208
+ const [n, r] = x(!1), { t: s } = S("common"), { componentModeOverride: a } = R(), c = e.data.agitated;
209
+ return /* @__PURE__ */ o(
210
+ te,
211
+ {
212
+ contain: a !== "compact",
213
+ onClosed: t,
214
+ show: !n,
215
+ children: /* @__PURE__ */ y(Qo, { children: [
216
+ /* @__PURE__ */ o(
217
+ ne,
218
+ {
219
+ contain: a === "compact",
220
+ showCloseButton: !0,
221
+ title: s("shelf-agitator"),
222
+ showOpenButton: !1,
223
+ onClose: () => r(!0),
224
+ CloseButton: a === "compact" ? le : void 0
225
+ }
226
+ ),
227
+ /* @__PURE__ */ o(q, { align: "top", children: /* @__PURE__ */ o(
228
+ De,
229
+ {
230
+ label: s("agitating"),
231
+ padding: "x-large",
232
+ value: s(c ? "no" : "yes")
233
+ }
234
+ ) }),
235
+ /* @__PURE__ */ o(_, { children: /* @__PURE__ */ o(
236
+ T,
237
+ {
238
+ mode: "primary",
239
+ disabled: c,
240
+ onPointerDown: () => console.log("agitate!"),
241
+ children: s("test-shelf-agitator")
242
+ }
243
+ ) })
244
+ ] })
245
+ }
246
+ );
247
+ }
248
+ ), qt = () => {
249
+ const e = ut.type;
250
+ return F({
251
+ modelId: e,
252
+ modelType: ut.type,
253
+ options: {}
254
+ });
255
+ }, pe = (e) => {
256
+ var c, i;
257
+ const [t, n] = x(e == null ? void 0 : e.futureHandler.future), [r, s] = x(
258
+ (i = (c = e == null ? void 0 : e.futureHandler) == null ? void 0 : c.future) == null ? void 0 : i.endState
259
+ );
260
+ M(() => {
261
+ const l = ee(() => {
262
+ const d = e == null ? void 0 : e.futureHandler.future;
263
+ n(d), s(d == null ? void 0 : d.endState);
264
+ });
265
+ return () => {
266
+ l(), e == null || e.futureHandler.removeFuture();
267
+ };
268
+ }, [e == null ? void 0 : e.futureHandler]);
269
+ const a = L(() => {
270
+ e == null || e.futureHandler.removeFuture();
271
+ }, [e == null ? void 0 : e.futureHandler]);
272
+ return {
273
+ future: t,
274
+ clearFuture: a,
275
+ success: r === at.Success,
276
+ failure: r && r !== at.Success
277
+ };
278
+ }, Jo = j.createLogger({ name: "future-progress-bar" }), Qt = w(Gn)`
279
+ --ddk-component-icon-button-icon-color-active: var(
280
+ --ddk-component-progress-bar-close-button-color-active
281
+ );
282
+ --ddk-component-icon-button-icon-color-default: var(
283
+ --ddk-component-progress-bar-close-button-color-default
284
+ );
285
+ --ddk-component-icon-button-icon-color-disabled: var(
286
+ --ddk-component-progress-bar-close-button-color-disabled
287
+ );
288
+ --ddk-component-icon-button-icon-color-hover: var(
289
+ --ddk-component-progress-bar-close-button-color-hover
290
+ );
291
+ `, er = w.div`
292
+ display: flex;
293
+ flex-direction: column;
294
+ width: 100%;
295
+ gap: 8px;
296
+ `, Zt = w.div`
297
+ align-items: var(--ddk-component-progress-bar-message-align-items);
298
+ color: var(--ddk-component-progress-bar-message-color);
299
+ display: flex;
300
+ flex-direction: var(--ddk-component-progress-bar-message-flex-direction);
301
+ gap: var(--ddk-component-progress-bar-message-gap);
302
+ justify-content: space-between;
303
+ width: 100%;
304
+ `, Jt = w.div`
305
+ display: flex;
306
+ gap: var(--ddk-component-status-bar-gap);
307
+ align-items: center;
308
+ `, tr = w.div`
309
+ border-top: solid 1px #888888;
310
+ padding-top: 8px;
311
+ width: calc(100% - 10px);
312
+ `, Te = ({ children: e, onPointerDown: t, title: n, subtitle: r }) => {
313
+ const { componentModeOverride: s } = R(), { t: a } = S("common");
314
+ return /* @__PURE__ */ y(Zt, { children: [
315
+ /* @__PURE__ */ y(er, { children: [
316
+ /* @__PURE__ */ y(
317
+ Jt,
318
+ {
319
+ style: {
320
+ fontSize: "var(--ddk-component-progress-bar-message-font-size)"
321
+ },
322
+ children: [
323
+ /* @__PURE__ */ o(
324
+ Io,
325
+ {
326
+ style: {
327
+ color: "var(--ddk-component-progress-bar-icon-color-failure)",
328
+ fontSize: "var(--ddk-component-progress-bar-icon-size)"
329
+ }
330
+ }
331
+ ),
332
+ n ?? e
333
+ ]
334
+ }
335
+ ),
336
+ r && /* @__PURE__ */ o(tr, { children: r })
337
+ ] }),
338
+ s === "compact" ? /* @__PURE__ */ o(T, { mode: "primary", onPointerDown: t, children: a("close", "Close") }) : /* @__PURE__ */ o(
339
+ Qt,
340
+ {
341
+ label: !1,
342
+ size: "large",
343
+ onPointerDown: t
344
+ }
345
+ )
346
+ ] });
347
+ }, Qe = ({ children: e, onPointerDown: t }) => {
348
+ const { componentModeOverride: n } = R(), { t: r } = S("common");
349
+ return /* @__PURE__ */ y(Zt, { children: [
350
+ /* @__PURE__ */ y(Jt, { children: [
351
+ /* @__PURE__ */ o(
352
+ Do,
353
+ {
354
+ style: {
355
+ color: "var(--ddk-semantic-color-system-green)",
356
+ fontSize: "var(--ddk-component-progress-bar-icon-size)"
357
+ }
358
+ }
359
+ ),
360
+ e
361
+ ] }),
362
+ n === "compact" ? /* @__PURE__ */ o(T, { mode: "primary", onPointerDown: t, children: r("close", "Close") }) : /* @__PURE__ */ o(
363
+ Qt,
364
+ {
365
+ label: !1,
366
+ size: "large",
367
+ onPointerDown: t
368
+ }
369
+ )
370
+ ] });
371
+ }, Lt = (e) => (e == null ? void 0 : e.title) && (e == null ? void 0 : e.subtitle), U = I(
372
+ ({
373
+ title: e,
374
+ future: t,
375
+ failureMessage: n,
376
+ successMessage: r,
377
+ cancelMessage: s,
378
+ isCancelable: a = !0,
379
+ onSuccess: c,
380
+ onClose: i
381
+ }) => {
382
+ const { t: l } = S("common"), [d, p] = lt.useState(!0), [u, m] = lt.useState(), g = `${t == null ? void 0 : t.timeRemaining} ${l(
383
+ "remaining",
384
+ "remaining"
385
+ )}`, v = L(() => {
386
+ u !== "in-progress" && (i == null || i(), p(!1));
387
+ }, [i, u]), C = L(() => {
388
+ v(), c == null || c();
389
+ }, [v, c]);
390
+ M(() => {
391
+ (t == null ? void 0 : t.status) === "IN_PROGRESS" || (t == null ? void 0 : t.status) === "NOT_ACTIVE" ? (m("in-progress"), p(!0)) : (t == null ? void 0 : t.status) === "SUCCESS" ? (m("success"), p(!!r), r || (v(), c == null || c())) : (t == null ? void 0 : t.status) === "FAIL" || (t == null ? void 0 : t.status) === "ABORT" ? (m("failure"), p(!!n)) : (t == null ? void 0 : t.status) === "CANCEL" ? (m("cancelled"), p(!!s)) : t && Jo.error("unknown status", t == null ? void 0 : t.status);
392
+ }, [
393
+ n,
394
+ t,
395
+ t == null ? void 0 : t.status,
396
+ r,
397
+ s,
398
+ v,
399
+ c
400
+ ]);
401
+ const b = Lt(n) ? n.subtitle : void 0, k = Lt(n) ? n.title : n ?? l("something-went-wrong", "Something went wrong");
402
+ return t && /* @__PURE__ */ o(
403
+ Vt,
404
+ {
405
+ isCancelable: a,
406
+ onCancel: () => {
407
+ t.cancelFuture();
408
+ },
409
+ blocked: u === "in-progress",
410
+ onClose: v,
411
+ renderFailure: n && /* @__PURE__ */ o(Te, { subtitle: b, onPointerDown: v, children: k }),
412
+ renderCancel: s && /* @__PURE__ */ o(Te, { onPointerDown: v, children: s }),
413
+ renderSuccess: r && /* @__PURE__ */ o(Qe, { onPointerDown: C, children: r }),
414
+ show: d,
415
+ status: u,
416
+ subtitle: g,
417
+ title: e,
418
+ value: t.progress
419
+ }
420
+ );
421
+ }
422
+ ), nr = j.createLogger({ name: "agitation-control-view" });
423
+ nr.debug("agitation-control-view component loaded");
424
+ const or = w.div``, oi = I(() => {
425
+ const { model: e } = qt(), { t, i18n: n } = S("troubles"), { future: r, failure: s } = pe(e), a = L(() => {
426
+ e && e.clearAll();
427
+ }, [e]), c = r == null ? void 0 : r.reason, i = c ? `__troubles.errors.${c}__` : void 0, l = "troubles.agitation.error", d = n.exists(`troubles.errors.${c}`);
428
+ return /* @__PURE__ */ o(or, { children: /* @__PURE__ */ o(
429
+ U,
430
+ {
431
+ title: t("troubles.agitation.title"),
432
+ future: r,
433
+ isCancelable: !0,
434
+ onClose: a,
435
+ failureMessage: t(l, {
436
+ context: i && d ? "reason" : void 0,
437
+ data: {
438
+ reason: i
439
+ }
440
+ })
441
+ }
442
+ ) });
443
+ }), rr = I(
444
+ ({ pump: e, onComplete: t }) => {
445
+ const { t: n } = S("common", { keyPrefix: "fcm-calibration" }), [r, s] = x("high-flow-test-idle"), [a, c] = x(), [i, l] = x(), [d, p] = x(), { future: u } = pe(e);
446
+ M(() => {
447
+ switch (u == null ? void 0 : u.endState) {
448
+ case "CANCEL":
449
+ switch (r) {
450
+ case "high-flow-test-in-progress":
451
+ s("high-flow-test-idle");
452
+ break;
453
+ default:
454
+ c("calibration-canceled"), s("failure");
455
+ }
456
+ break;
457
+ case "SUCCESS":
458
+ switch (r) {
459
+ case "high-flow-test-in-progress":
460
+ s("high-flow-test-success");
461
+ break;
462
+ case "calibration-in-progress":
463
+ s("calibration-input");
464
+ break;
465
+ case "verification-in-progress":
466
+ s("verification-input");
467
+ break;
468
+ }
469
+ break;
470
+ case "FAIL":
471
+ c(u == null ? void 0 : u.reason), s("failure");
472
+ break;
473
+ }
474
+ }, [u == null ? void 0 : u.endState, u == null ? void 0 : u.reason, r]);
475
+ const m = D(() => ({
476
+ "high-flow-test-idle": {
477
+ information: /* @__PURE__ */ o(H, { children: n("high-flow-test-idle-information") }),
478
+ footer: /* @__PURE__ */ o(
479
+ T,
480
+ {
481
+ onPointerDown: () => {
482
+ e.performPreCalibrate(), s("high-flow-test-in-progress");
483
+ },
484
+ children: n("initiate-high-flow-test")
485
+ }
486
+ ),
487
+ status: "information"
488
+ },
489
+ "high-flow-test-in-progress": {
490
+ information: /* @__PURE__ */ o(H, { children: n("high-flow-test-in-progress-information") }),
491
+ footer: /* @__PURE__ */ o(T, { disabled: !0, children: n("initiate-high-flow-test") }),
492
+ status: "loading"
493
+ },
494
+ "high-flow-test-success": {
495
+ information: /* @__PURE__ */ o(H, { children: n("high-flow-test-success-information") }),
496
+ footer: /* @__PURE__ */ o(T, { onPointerDown: () => s("calibration-idle"), children: n("proceed") }),
497
+ status: "success"
498
+ },
499
+ "calibration-idle": {
500
+ information: /* @__PURE__ */ o(J, { children: n("calibration-idle-information") }),
501
+ footer: /* @__PURE__ */ o(
502
+ T,
503
+ {
504
+ onPointerDown: () => {
505
+ e.performCalibrate(), s("calibration-in-progress");
506
+ },
507
+ children: n("calibrate")
508
+ }
509
+ ),
510
+ status: "information"
511
+ },
512
+ "calibration-in-progress": {
513
+ information: /* @__PURE__ */ o(H, { children: n("calibration-in-progress-information") }),
514
+ status: "loading"
515
+ },
516
+ "calibration-input": {
517
+ information: /* @__PURE__ */ y($, { children: [
518
+ /* @__PURE__ */ o(J, { children: n("calibration-input-information") }),
519
+ /* @__PURE__ */ o(
520
+ ke,
521
+ {
522
+ label: "Volume",
523
+ unitValue: "ml",
524
+ layout: "num",
525
+ onChange: (g) => {
526
+ g !== void 0 && l(g);
527
+ },
528
+ value: i !== void 0 ? i : ""
529
+ }
530
+ )
531
+ ] }),
532
+ footer: /* @__PURE__ */ o(
533
+ T,
534
+ {
535
+ disabled: i === void 0,
536
+ onPointerDown: () => {
537
+ i !== void 0 && s("verification-idle");
538
+ },
539
+ children: n("proceed")
540
+ }
541
+ ),
542
+ status: "information"
543
+ },
544
+ // Todo: calibration-input-confirmation if necessary...
545
+ "calibration-input-confirmation": {},
546
+ "verification-idle": {
547
+ information: /* @__PURE__ */ o(J, { children: n("verification-idle-information") }),
548
+ footer: /* @__PURE__ */ o(
549
+ T,
550
+ {
551
+ onPointerDown: async () => {
552
+ i !== void 0 && (e.performVerify(i), s("verification-in-progress"));
553
+ },
554
+ children: n("initiate-verification-pour")
555
+ }
556
+ ),
557
+ status: "information"
558
+ },
559
+ "verification-in-progress": {
560
+ information: /* @__PURE__ */ o(H, { children: n("verification-in-progress-information") }),
561
+ status: "loading"
562
+ },
563
+ "verification-input": {
564
+ information: /* @__PURE__ */ y($, { children: [
565
+ /* @__PURE__ */ o(J, { children: n("verification-input-information") }),
566
+ /* @__PURE__ */ o(
567
+ ke,
568
+ {
569
+ label: "Volume",
570
+ unitValue: "ml",
571
+ layout: "num",
572
+ onChange: (g) => {
573
+ g !== void 0 && p(g);
574
+ },
575
+ value: d !== void 0 ? d : ""
576
+ }
577
+ )
578
+ ] }),
579
+ footer: /* @__PURE__ */ o(
580
+ T,
581
+ {
582
+ disabled: d === void 0,
583
+ onPointerDown: async () => {
584
+ if (i === void 0 || d === void 0)
585
+ return;
586
+ const g = await e.performComplete(i, d);
587
+ g === "success" ? s("verification-success") : (c(g), s(g === "errBadPump" ? "verification-failure" : "failure"));
588
+ },
589
+ children: n("proceed")
590
+ }
591
+ ),
592
+ status: "information"
593
+ },
594
+ // Todo: verification-input-confirmation if necessary...
595
+ "verification-input-confirmation": {},
596
+ "verification-success": {
597
+ information: /* @__PURE__ */ o(H, { children: n("verification-success-information") }),
598
+ footer: /* @__PURE__ */ o(T, { onPointerDown: t, children: n("exit-calibration") }),
599
+ status: "success"
600
+ },
601
+ "verification-failure": {
602
+ information: /* @__PURE__ */ o(H, { children: n(`error.${a}`) }),
603
+ footer: /* @__PURE__ */ o(T, { onPointerDown: t, children: n("exit-calibration") }),
604
+ status: "error"
605
+ },
606
+ failure: {
607
+ information: /* @__PURE__ */ y($, { children: [
608
+ /* @__PURE__ */ o(H, { children: n("calibration-failed") }),
609
+ /* @__PURE__ */ o(J, { children: n(`error.${a || "unknownError"}`) })
610
+ ] }),
611
+ footer: /* @__PURE__ */ o(T, { onPointerDown: t, children: n("exit-calibration") }),
612
+ status: "error"
613
+ }
614
+ }), [a, t, e, n, i, d]);
615
+ return /* @__PURE__ */ y($, { children: [
616
+ /* @__PURE__ */ o(
617
+ Ht,
618
+ {
619
+ title: n(e.name),
620
+ ...m[r],
621
+ onClose: () => t()
622
+ }
623
+ ),
624
+ u && /* @__PURE__ */ o(U, { title: n("initiating"), future: u })
625
+ ] });
626
+ }
627
+ ), ri = I(({ cardModel: e }) => {
628
+ j.debug("Agitator", e.path);
629
+ const { t } = S(["agitator", "common"]), { future: n } = pe(e), r = L(
630
+ (s) => {
631
+ s === "agitate" && (e == null || e.testAgitate());
632
+ },
633
+ [e]
634
+ );
635
+ return /* @__PURE__ */ y($, { children: [
636
+ /* @__PURE__ */ o(q, { children: /* @__PURE__ */ o(
637
+ De,
638
+ {
639
+ label: "Agitating",
640
+ value: e.isAgitating ? t("common:yes") : t("common:no")
641
+ }
642
+ ) }),
643
+ /* @__PURE__ */ o(_, { children: /* @__PURE__ */ o(T, { onPointerDown: () => r("agitate"), children: t("action.label") }) }),
644
+ n && /* @__PURE__ */ o(
645
+ U,
646
+ {
647
+ title: t("testing"),
648
+ future: n
649
+ }
650
+ )
651
+ ] });
652
+ }), sr = w.div`
653
+ font-size: var(--ddk-component-holder-card-footer-font-size);
654
+ color: ${(e) => e.color ?? "var(--ddk-generic-color-black)"};
655
+ `, si = I((e) => {
656
+ j.debug(`summary component loaded for holder ${e}`), j.info(`render agitator summary for holder ${e.cardModel.path}`);
657
+ const { t } = S("common");
658
+ return /* @__PURE__ */ y($, { children: [
659
+ /* @__PURE__ */ o(We, { size: "small", status: "completed" }),
660
+ e.cardModel.isAgitating && /* @__PURE__ */ o(sr, { children: t("agitating") })
661
+ ] });
662
+ }), ir = {
663
+ getStagedChange: void 0,
664
+ updateStagedChange: void 0,
665
+ saveChanges: void 0,
666
+ clearStagedChanges: void 0
667
+ }, en = B(ir), ar = ({
668
+ children: e
669
+ }) => {
670
+ const [t, n] = x({}), r = (i) => t[i], s = (i, l) => {
671
+ n((d) => ({ ...d, [i]: l }));
672
+ }, a = () => n({}), c = async () => {
673
+ for (const i in t)
674
+ t[i].configProperty.updateProperty(
675
+ t[i].value
676
+ );
677
+ a();
678
+ };
679
+ return /* @__PURE__ */ o(
680
+ en.Provider,
681
+ {
682
+ value: {
683
+ getStagedChange: r,
684
+ updateStagedChange: s,
685
+ saveChanges: c,
686
+ clearStagedChanges: a
687
+ },
688
+ children: e
689
+ }
690
+ );
691
+ }, tn = () => O(en), ii = (e) => (t) => /* @__PURE__ */ o(ar, { children: /* @__PURE__ */ o(e, { ...t }) }), cr = ({ label: e, configProperty: t }) => {
692
+ const { value: n } = W({ configProperty: t });
693
+ return /* @__PURE__ */ o(De, { label: e, value: n });
694
+ }, Ze = ({ configProperty: e, hideUnits: t, isValid: n, ...r }) => {
695
+ var p, u;
696
+ const { t: s } = S("common", { keyPrefix: "validation" }), { significantValue: a } = W({
697
+ configProperty: e
698
+ }), c = (m) => {
699
+ m || (m = ""), e.updateProperty(m);
700
+ }, i = (p = e.displayOptions) == null ? void 0 : p.max, l = (u = e.displayOptions) == null ? void 0 : u.min, d = L(
701
+ (m) => {
702
+ const g = n == null ? void 0 : n(m);
703
+ return g || (Number(m) < l ? s("minValue", { data: { minValue: l } }) : Number(m) > i ? s("maxValue", { data: { maxValue: i } }) : void 0);
704
+ },
705
+ [n, i, l, s]
706
+ );
707
+ return /* @__PURE__ */ o(
708
+ ke,
709
+ {
710
+ ...r,
711
+ isValid: d,
712
+ onChange: c,
713
+ unitValue: t ? void 0 : e.unit,
714
+ value: a
715
+ }
716
+ );
717
+ }, ae = ({ configProperty: e, label: t, onChange: n, ...r }) => {
718
+ var c, i;
719
+ const { t: s } = S(["config-properties", "common"]), a = W({ configProperty: e });
720
+ return /* @__PURE__ */ o(
721
+ Xn,
722
+ {
723
+ ...r,
724
+ label: t ?? s(e.id),
725
+ layout: "num",
726
+ maxValue: (c = a.displayOptions) == null ? void 0 : c.max,
727
+ minValue: (i = a.displayOptions) == null ? void 0 : i.min,
728
+ onChange: (l) => e.updateProperty(l),
729
+ unitValue: a.unit,
730
+ value: a.significantValue
731
+ }
732
+ );
733
+ }, Ie = ({ configProperty: e, overrideChecked: t, ...n }) => {
734
+ var l;
735
+ const { getStagedChange: r, updateStagedChange: s } = tn(), { value: a } = W({ configProperty: e }), c = ((l = r == null ? void 0 : r(e.id)) == null ? void 0 : l.value) ?? a;
736
+ return /* @__PURE__ */ o(
737
+ Yn,
738
+ {
739
+ toggleLabel: c === "true" ? "Enabled" : "Disabled",
740
+ ...n,
741
+ onChange: (d) => {
742
+ s ? s(e.id, {
743
+ configProperty: e,
744
+ value: d
745
+ }) : e.updateProperty(d);
746
+ },
747
+ checked: t !== void 0 ? t : c === "true"
748
+ }
749
+ );
750
+ }, lr = (e) => (e == null ? void 0 : e.map((t) => ({ id: t.value, label: t.label }))) || [], Je = ({
751
+ collapse: e,
752
+ cancelButtonLabel: t,
753
+ configProperty: n,
754
+ displayMode: r = "raw",
755
+ displayValue: s,
756
+ float: a,
757
+ items: c,
758
+ label: i,
759
+ onChange: l,
760
+ onSave: d,
761
+ proceedButtonLabel: p,
762
+ selectedItemId: u,
763
+ unitValue: m,
764
+ ...g
765
+ }) => {
766
+ const { t: v } = S(["config-properties", "common"]), C = W({
767
+ configProperty: n,
768
+ optionsTransformer: lr
769
+ });
770
+ return /* @__PURE__ */ o(
771
+ _e,
772
+ {
773
+ ...g,
774
+ cancelButtonLabel: t ?? (v("discard-changes", {
775
+ defaultValue: "Discard Changes",
776
+ ns: "common"
777
+ }) || void 0),
778
+ collapse: e,
779
+ displayValue: s ?? r === "raw" ? C.value : C.displayValue,
780
+ float: a,
781
+ items: c ?? C.mappedOptions,
782
+ label: i ?? v(n.id),
783
+ onSave: (b) => d ? d(b) : n.updateProperty(b),
784
+ proceedButtonLabel: p ?? (v("save", { defaultValue: "Save", ns: "common" }) || void 0),
785
+ selectedItemId: u ?? C.value,
786
+ unitValue: m ?? C.unit
787
+ }
788
+ );
789
+ }, dr = w(Ze)`
790
+ border-top: var(--ddk-component-input-enable-card-input-container-border);
791
+ border-radius: 0;
792
+ cursor: pointer;
793
+ padding: var(--ddk-component-input-enable-card-input-padding);
794
+ & {
795
+ // action-item...
796
+ --ddk-component-action-item-background-color-default: var(
797
+ --ddk-component-input-enable-card-input-background-color
798
+ );
799
+ --ddk-component-action-item-border-color-default: var(
800
+ --ddk-component-input-enable-card-input-border-color
801
+ );
802
+ --ddk-component-action-item-font-weight: var(
803
+ --ddk-component-input-enable-card-input-font-weight
804
+ );
805
+ --ddk-component-action-item-height: var(
806
+ --ddk-component-input-enable-card-input-height
807
+ );
808
+ --ddk-component-action-item-min-width: var(
809
+ --ddk-component-input-enable-card-input-min-width
810
+ );
811
+
812
+ // input-action-item
813
+ --ddk-component-input-action-item-font-family: var(
814
+ --ddk-component-input-enable-card-input-font-family
815
+ );
816
+
817
+ // card...
818
+ --ddk-component-card-color-light: var(
819
+ --ddk-component-input-enable-card-input-color
820
+ );
821
+ --ddk-component-card-font-weight: var(
822
+ --ddk-component-input-enable-card-input-font-weight
823
+ );
824
+ }
825
+ `, ur = w(Je)`
826
+ border-top: var(--ddk-component-input-enable-card-input-container-border);
827
+ border-radius: 0;
828
+ cursor: pointer;
829
+ padding: var(--ddk-component-input-enable-card-input-padding);
830
+ & {
831
+ // action-item...
832
+ --ddk-component-action-item-background-color-default: var(
833
+ --ddk-component-input-enable-card-input-background-color
834
+ );
835
+ --ddk-component-action-item-border-color-default: var(
836
+ --ddk-component-input-enable-card-input-border-color
837
+ );
838
+ --ddk-component-action-item-font-weight: var(
839
+ --ddk-component-input-enable-card-input-font-weight
840
+ );
841
+ --ddk-component-action-item-height: var(
842
+ --ddk-component-input-enable-card-input-height
843
+ );
844
+ --ddk-component-action-item-min-width: var(
845
+ --ddk-component-input-enable-card-input-min-width
846
+ );
847
+ --ddk-component-action-item-button-container-width: initial;
848
+
849
+ // input-action-item
850
+ --ddk-component-input-action-item-font-family: var(
851
+ --ddk-component-input-enable-card-input-font-family
852
+ );
853
+
854
+ // card...
855
+ --ddk-component-card-color-light: var(
856
+ --ddk-component-input-enable-card-input-color
857
+ );
858
+ --ddk-component-card-font-weight: var(
859
+ --ddk-component-input-enable-card-input-font-weight
860
+ );
861
+ }
862
+ `, pr = (e, t, n, r, s) => {
863
+ let a;
864
+ const c = s === "compact" ? dr : Ze, i = s === "compact" ? ur : Je, l = r.label ?? n(e.id);
865
+ switch (e.schemaType) {
866
+ case "boolean":
867
+ a = /* @__PURE__ */ o(
868
+ Ie,
869
+ {
870
+ configProperty: e,
871
+ ...r,
872
+ label: l
873
+ }
874
+ );
875
+ break;
876
+ case "double":
877
+ a = /* @__PURE__ */ o(
878
+ ae,
879
+ {
880
+ configProperty: e,
881
+ ...r,
882
+ label: l
883
+ }
884
+ );
885
+ break;
886
+ case "int":
887
+ a = /* @__PURE__ */ o(
888
+ ae,
889
+ {
890
+ configProperty: e,
891
+ ...r,
892
+ label: l
893
+ }
894
+ );
895
+ break;
896
+ case "String":
897
+ a = /* @__PURE__ */ o(
898
+ c,
899
+ {
900
+ configProperty: e,
901
+ ...r,
902
+ label: l
903
+ }
904
+ );
905
+ break;
906
+ case "enum":
907
+ a = /* @__PURE__ */ o(
908
+ i,
909
+ {
910
+ configProperty: e,
911
+ ...r,
912
+ label: l
913
+ }
914
+ );
915
+ break;
916
+ }
917
+ return a;
918
+ }, mr = (e) => (e == null ? void 0 : e.map((t) => ({ id: t.value, label: t.label }))) || [], nn = ({
919
+ configProperty: e,
920
+ factory: t,
921
+ mappedOptions: n,
922
+ t: r,
923
+ ...s
924
+ }) => {
925
+ const { t: a } = S(["config-properties", "common"]), { componentModeOverride: c } = R(), i = W({
926
+ configProperty: e,
927
+ optionsTransformer: mr
928
+ });
929
+ return t = t ?? pr, t(
930
+ e,
931
+ {
932
+ ...i,
933
+ mappedOptions: n ?? i.mappedOptions
934
+ },
935
+ r ?? a,
936
+ s,
937
+ c
938
+ );
939
+ }, gr = w(qn)`
940
+ align-items: ${(e) => e.mode === "compact" ? "flex-start" : void 0};
941
+ flex-direction: var(
942
+ --ddk-component-input-enable-card-container-flex-direction
943
+ );
944
+ padding: var(--ddk-component-input-enable-card-container-padding);
945
+ gap: var(--ddk-component-input-enable-card-container-gap);
946
+ `, hr = w.div`
947
+ box-sizing: border-box;
948
+ display: flex;
949
+ flex-direction: var(
950
+ --ddk-component-input-enable-card-input-container-flex-direction
951
+ );
952
+ gap: var(--ddk-component-input-enable-card-input-container-gap);
953
+ width: 100%;
954
+ `, fr = w(nn)`
955
+ width: 100%;
956
+ `, br = w.div`
957
+ box-sizing: border-box;
958
+ padding: ${(e) => e.compact ? "var(--ddk-component-input-enable-card-toggle-container-padding)" : "0"};
959
+ width: var(--ddk-component-input-enable-card-toggle-container-width);
960
+ `, vr = ({
961
+ configProperties: e,
962
+ disabled: t,
963
+ enabledConfigProperty: n
964
+ }) => {
965
+ const { value: r } = W({
966
+ configProperty: n
967
+ }), s = r === "true", { componentModeOverride: a } = R(), c = e.length === 1, i = c ? fr : nn;
968
+ return /* @__PURE__ */ y(
969
+ gr,
970
+ {
971
+ disabled: !s || t,
972
+ mode: a,
973
+ children: [
974
+ /* @__PURE__ */ o(hr, { children: e.map((l) => /* @__PURE__ */ o(
975
+ i,
976
+ {
977
+ disabled: !s || t,
978
+ label: l.options ? l.options.label : void 0,
979
+ configProperty: l.configProperty,
980
+ collapse: !c && a === "standard",
981
+ layout: l.options ? l.options.layout : void 0,
982
+ float: !0,
983
+ hideUnits: l.options ? l.options.hideUnits : void 0
984
+ },
985
+ l.configProperty.id
986
+ )) }),
987
+ /* @__PURE__ */ o(
988
+ br,
989
+ {
990
+ compact: !c || a === "compact",
991
+ children: /* @__PURE__ */ o(
992
+ Ie,
993
+ {
994
+ alwaysShowLabel: !0,
995
+ collapse: !0,
996
+ configProperty: n,
997
+ disabled: t,
998
+ stretch: a === "compact"
999
+ }
1000
+ )
1001
+ }
1002
+ )
1003
+ ]
1004
+ }
1005
+ );
1006
+ }, ai = ({
1007
+ configProperty: e,
1008
+ disabled: t,
1009
+ enabledConfigProperty: n,
1010
+ options: r
1011
+ }) => {
1012
+ const s = D(
1013
+ () => [{ configProperty: e, options: r }],
1014
+ [e, r]
1015
+ );
1016
+ return /* @__PURE__ */ o(
1017
+ vr,
1018
+ {
1019
+ configProperties: s,
1020
+ disabled: t,
1021
+ enabledConfigProperty: n
1022
+ }
1023
+ );
1024
+ }, yr = ({
1025
+ configProperty: e,
1026
+ ...t
1027
+ }) => {
1028
+ const { value: n } = W({ configProperty: e });
1029
+ return /* @__PURE__ */ o(Pe, { ...t, onChange: (s) => {
1030
+ s !== void 0 && (e == null || e.updateProperty(String(s)));
1031
+ }, value: n });
1032
+ }, wr = ({
1033
+ description: e,
1034
+ float: t,
1035
+ label: n,
1036
+ modalTitle: r,
1037
+ onSave: s,
1038
+ time: a,
1039
+ ...c
1040
+ }) => {
1041
+ const { regionModel: i } = X(), { t: l } = S("common", { keyPrefix: "schedule" }), {
1042
+ amPmOptions: d,
1043
+ formattedTime: p,
1044
+ hourOptions: u,
1045
+ minuteOptions: m,
1046
+ setTime: g,
1047
+ time: v
1048
+ } = Ot({ initialDate: a }), C = v.getHours(), b = D(
1049
+ () => [
1050
+ {
1051
+ id: "hr",
1052
+ items: u,
1053
+ selectedItemId: C < 12 ? C : C - 12,
1054
+ loop: !0
1055
+ },
1056
+ {
1057
+ id: "min",
1058
+ items: m,
1059
+ selectedItemId: v.getMinutes(),
1060
+ loop: !0
1061
+ },
1062
+ {
1063
+ id: "ampm",
1064
+ items: d,
1065
+ selectedItemId: C < 12 ? "AM" : "PM"
1066
+ }
1067
+ ],
1068
+ [d, u, m, v, C]
1069
+ ), k = D(
1070
+ () => [
1071
+ {
1072
+ id: "hr",
1073
+ items: u,
1074
+ selectedItemId: C,
1075
+ loop: !0
1076
+ },
1077
+ {
1078
+ id: "min",
1079
+ items: m,
1080
+ selectedItemId: v.getMinutes(),
1081
+ loop: !0
1082
+ }
1083
+ ],
1084
+ [u, m, v, C]
1085
+ );
1086
+ return /* @__PURE__ */ o(
1087
+ Ge,
1088
+ {
1089
+ ...c,
1090
+ cancelButtonLabel: l("discard-changes", "Discard Changes") || void 0,
1091
+ closeButtonLabel: l("close", "Close") || void 0,
1092
+ data: i != null && i.is12HourTimeFormat ? b : k,
1093
+ description: e,
1094
+ displayValue: p,
1095
+ float: t,
1096
+ icon: Wt,
1097
+ label: n,
1098
+ modalTitle: r,
1099
+ proceedButtonLabel: l("save", "Save") || void 0,
1100
+ onSave: (A) => {
1101
+ const P = i != null && i.is12HourTimeFormat ? A.ampm === "AM" ? A.hr : A.hr + 12 : A.hr, f = A.min, h = new Date(v);
1102
+ h.setHours(P), h.setMinutes(f), g(h), s == null || s({ hours: P, minutes: f });
1103
+ }
1104
+ }
1105
+ );
1106
+ }, Cr = ({ configProperty: e, ...t }) => {
1107
+ var p;
1108
+ const { getStagedChange: n, updateStagedChange: r } = tn(), { value: s } = W({ configProperty: e }), a = ((p = n == null ? void 0 : n(e.id)) == null ? void 0 : p.value) ?? s, { hours: c, minutes: i } = yo(Number(a)), l = /* @__PURE__ */ new Date();
1109
+ return l.setHours(c), l.setMinutes(i), /* @__PURE__ */ o(wr, { ...t, onSave: (u) => {
1110
+ const m = wo(u.hours, u.minutes);
1111
+ r ? r(e.id, {
1112
+ configProperty: e,
1113
+ value: m
1114
+ }) : e.updateProperty(m);
1115
+ }, time: l });
1116
+ }, xr = [0, 6], Sr = ({
1117
+ day: e = (/* @__PURE__ */ new Date()).getDate(),
1118
+ month: t = (/* @__PURE__ */ new Date()).getMonth(),
1119
+ onSave: n,
1120
+ year: r = (/* @__PURE__ */ new Date()).getFullYear(),
1121
+ ...s
1122
+ }) => {
1123
+ var g, v, C, b, k, A;
1124
+ const { t: a } = S("region"), { regionModel: c } = X(), i = Rt({
1125
+ date: { year: r, month: t, day: e },
1126
+ formatOptions: {
1127
+ dayFormat: "short",
1128
+ yearFormat: "long",
1129
+ monthFormat: "long",
1130
+ formatString: (c == null ? void 0 : c.selectedDateFormat) || "yyyy/MM/dd"
1131
+ },
1132
+ filterOptions: {
1133
+ daysOfWeekFilter: xr,
1134
+ yearsRange: [r - 10, r + 10]
1135
+ }
1136
+ }), l = D(
1137
+ () => {
1138
+ var P, f;
1139
+ return (f = (P = i == null ? void 0 : i.dateState) == null ? void 0 : P.yearsOptionsArray) == null ? void 0 : f.map((h) => ({
1140
+ id: h.value,
1141
+ label: h.label
1142
+ }));
1143
+ },
1144
+ [(g = i == null ? void 0 : i.dateState) == null ? void 0 : g.yearsOptionsArray]
1145
+ ), d = D(
1146
+ () => {
1147
+ var P, f;
1148
+ return (f = (P = i == null ? void 0 : i.dateState) == null ? void 0 : P.daysOptionsArray) == null ? void 0 : f.map((h) => ({
1149
+ id: h.value,
1150
+ label: h.label
1151
+ }));
1152
+ },
1153
+ [(v = i == null ? void 0 : i.dateState) == null ? void 0 : v.daysOptionsArray]
1154
+ ), p = D(
1155
+ () => {
1156
+ var P, f;
1157
+ return (f = (P = i == null ? void 0 : i.dateState) == null ? void 0 : P.monthsOptionsArray) == null ? void 0 : f.map((h) => ({
1158
+ id: h.value,
1159
+ label: String(h.label)
1160
+ }));
1161
+ },
1162
+ [(C = i == null ? void 0 : i.dateState) == null ? void 0 : C.monthsOptionsArray]
1163
+ ), u = D(() => {
1164
+ const P = [];
1165
+ return c == null || c.selectedDateOrder.split("").forEach((f) => {
1166
+ var h, N, V;
1167
+ f === "y" ? P.push({
1168
+ id: "year",
1169
+ items: l,
1170
+ selectedItemId: (h = i == null ? void 0 : i.dateState) == null ? void 0 : h.year,
1171
+ loop: !1
1172
+ }) : f === "m" ? P.push({
1173
+ id: "month",
1174
+ items: p,
1175
+ selectedItemId: (N = i == null ? void 0 : i.dateState) == null ? void 0 : N.month
1176
+ }) : f === "d" && P.push({
1177
+ id: "day",
1178
+ items: d,
1179
+ selectedItemId: (V = i == null ? void 0 : i.dateState) == null ? void 0 : V.day,
1180
+ loop: !1
1181
+ });
1182
+ }), P;
1183
+ }, [
1184
+ (b = i == null ? void 0 : i.dateState) == null ? void 0 : b.day,
1185
+ (k = i == null ? void 0 : i.dateState) == null ? void 0 : k.month,
1186
+ (A = i == null ? void 0 : i.dateState) == null ? void 0 : A.year,
1187
+ d,
1188
+ p,
1189
+ c == null ? void 0 : c.selectedDateOrder,
1190
+ l
1191
+ ]), m = L(
1192
+ async (P) => {
1193
+ const h = new Date(P.year, P.month + 1, 0).getDate(), N = P.day > h ? 1 : P.day;
1194
+ n({
1195
+ day: N,
1196
+ month: P.month,
1197
+ year: P.year
1198
+ });
1199
+ },
1200
+ [n]
1201
+ );
1202
+ return /* @__PURE__ */ o(
1203
+ Ge,
1204
+ {
1205
+ cancelButtonLabel: a("discard-changes", "Discard Changes") || void 0,
1206
+ closeButtonLabel: a("close", "Close") || void 0,
1207
+ data: u,
1208
+ displayValue: i.dateState.formattedDate,
1209
+ icon: Lo,
1210
+ label: a("todays-date", "Today's Date"),
1211
+ onSave: m,
1212
+ proceedButtonLabel: a("save", "Save") || void 0,
1213
+ ...s
1214
+ }
1215
+ );
1216
+ }, kr = I(
1217
+ ({ pump: e, onComplete: t }) => {
1218
+ const { t: n } = S("common", {
1219
+ keyPrefix: "fcm-diagnostics"
1220
+ }), [r, s] = x("idle"), [a, c] = x(), i = L(async () => {
1221
+ s("test"), c(void 0);
1222
+ const d = await e.performElectricalTest();
1223
+ d.error ? (c(d.error), s("failure")) : d.result === "errEEPROM" ? (c("errEEPROM"), s("failure")) : s("success");
1224
+ }, [e]), l = D(() => ({
1225
+ idle: {
1226
+ information: /* @__PURE__ */ o(H, { children: n("perform-electrical-test") }),
1227
+ footer: /* @__PURE__ */ o(T, { onPointerDown: i, children: n("electrical-test") })
1228
+ },
1229
+ test: {
1230
+ information: /* @__PURE__ */ o(H, { children: n("testing") }),
1231
+ footer: /* @__PURE__ */ o(T, { disabled: !0, children: n("electrical-test") }),
1232
+ status: "loading"
1233
+ },
1234
+ success: {
1235
+ information: /* @__PURE__ */ o(H, { children: n("electrical-test-success-header") }),
1236
+ footer: /* @__PURE__ */ o(T, { onPointerDown: i, children: n("electrical-test") }),
1237
+ status: "success"
1238
+ },
1239
+ failure: {
1240
+ information: /* @__PURE__ */ y($, { children: [
1241
+ /* @__PURE__ */ o(H, { children: n("electrical-test-failure-header") }),
1242
+ /* @__PURE__ */ o(J, { children: n(`error.${a}`) })
1243
+ ] }),
1244
+ footer: /* @__PURE__ */ o(T, { onPointerDown: i, children: n("electrical-test") }),
1245
+ status: "information"
1246
+ }
1247
+ }), [a, n, i]);
1248
+ return /* @__PURE__ */ o(
1249
+ Ht,
1250
+ {
1251
+ title: n(e.name),
1252
+ ...l[r],
1253
+ onClose: () => t()
1254
+ }
1255
+ );
1256
+ }
1257
+ ), Ke = {
1258
+ title: "",
1259
+ summary: "",
1260
+ successMessage: "",
1261
+ failureMessage: "",
1262
+ actionLabel: ""
1263
+ }, ci = (e) => {
1264
+ const [t, n] = x(null), [r, s] = x(Ke), a = e.map((c) => {
1265
+ const [i, , l] = c;
1266
+ return [i == null ? void 0 : i.future, i, l];
1267
+ }).flat();
1268
+ return M(() => {
1269
+ const c = e.find((i) => {
1270
+ const [l] = i;
1271
+ return !!(l != null && l.future);
1272
+ });
1273
+ c ? (n(c[0]), s(c[2])) : (n(null), s(Ke));
1274
+ }, [...a, e]), [t, r];
1275
+ }, Pr = (e) => {
1276
+ switch (e) {
1277
+ case "calibrate":
1278
+ return Vo;
1279
+ case "fixed-45":
1280
+ return Ho;
1281
+ case "flush":
1282
+ return _o;
1283
+ case "high-flow-test":
1284
+ return zo;
1285
+ case "hold-to-pour":
1286
+ return Uo;
1287
+ case "low-flow-test":
1288
+ return Ko;
1289
+ case "manual-override":
1290
+ return jo;
1291
+ case "msv-reset":
1292
+ return Wo;
1293
+ case "prime":
1294
+ return Go;
1295
+ case "purge":
1296
+ return Xo;
1297
+ default:
1298
+ return;
1299
+ }
1300
+ }, Tr = (e) => (t, n = "intents") => ({
1301
+ title: e(`${n}:troubles.${t}.progress`),
1302
+ summary: e(`${n}:troubles.${t}.summary`),
1303
+ successMessage: e(`${n}:troubles.${t}.success`),
1304
+ failureMessage: e(`${n}:troubles.${t}.error`),
1305
+ actionLabel: e(`${n}:troubles.${t}.action`)
1306
+ }), Ae = (e, t = Pr) => {
1307
+ const { t: n } = S("troubles"), [r, s] = x(null), [a, c] = x(Ke), i = L(
1308
+ async (l) => {
1309
+ const d = t(l);
1310
+ if (d) {
1311
+ const p = Tr(n)(l);
1312
+ c(p);
1313
+ const u = new d(e);
1314
+ await u.performAction(), s(u);
1315
+ }
1316
+ },
1317
+ [t, e, n]
1318
+ );
1319
+ return [r, i, a];
1320
+ }, Ir = (e) => (j.debug(`pumpActionFactory: actionId=${e}`), qo), Dr = (e) => (t, n = "troubles") => ({
1321
+ title: e(`${n}:troubles.${t}.progress`),
1322
+ summary: e(`${n}:troubles.${t}.summary`),
1323
+ successMessage: e(`${n}:troubles.${t}.success`),
1324
+ failureMessage: e(`${n}:troubles.${t}.error`),
1325
+ actionLabel: e(`${n}:troubles.${t}.action`)
1326
+ }), li = (e, t, n = Ir) => {
1327
+ const { t: r } = S("troubles"), [s, a] = x(null), [c] = x(Dr(r)(t)), i = L(async () => {
1328
+ const l = n(t);
1329
+ if (l) {
1330
+ const d = new l(e, t);
1331
+ await d.performAction(), a(d);
1332
+ }
1333
+ }, [n, e, t]);
1334
+ return [s, i, c];
1335
+ };
1336
+ function di(e) {
1337
+ return (t) => {
1338
+ const { model: n, status: r, KosModelLoader: s } = qt();
1339
+ return /* @__PURE__ */ o(s, { ...r, children: /* @__PURE__ */ o(e, { ...t, agitationControl: n }) });
1340
+ };
1341
+ }
1342
+ const on = () => {
1343
+ const e = pt.type;
1344
+ return F({
1345
+ modelId: e,
1346
+ modelType: pt.type,
1347
+ options: {}
1348
+ });
1349
+ };
1350
+ function Lr(e) {
1351
+ return (t) => {
1352
+ const { model: n, status: r, KosModelLoader: s } = on();
1353
+ return /* @__PURE__ */ o(s, { ...r, children: /* @__PURE__ */ o(e, { ...t, animation: n }) });
1354
+ };
1355
+ }
1356
+ const Ee = () => {
1357
+ const e = mt.type;
1358
+ return F({
1359
+ modelId: e,
1360
+ modelType: mt.type,
1361
+ options: {}
1362
+ });
1363
+ };
1364
+ function ui(e) {
1365
+ return (t) => {
1366
+ const { model: n, status: r, KosModelLoader: s } = Ee();
1367
+ return /* @__PURE__ */ o(s, { ...r, children: /* @__PURE__ */ o(e, { ...t, application: n }) });
1368
+ };
1369
+ }
1370
+ const Ar = () => {
1371
+ const e = gt.type;
1372
+ return F({
1373
+ modelId: e,
1374
+ modelType: gt.type,
1375
+ options: {}
1376
+ });
1377
+ };
1378
+ function pi(e) {
1379
+ return (t) => {
1380
+ const { model: n, status: r, KosModelLoader: s } = Ar();
1381
+ return /* @__PURE__ */ o(s, { ...r, children: /* @__PURE__ */ o(e, { ...t, carbWater: n }) });
1382
+ };
1383
+ }
1384
+ const Er = () => {
1385
+ const e = ht.type;
1386
+ return F({
1387
+ modelId: e,
1388
+ modelType: ht.type,
1389
+ options: {},
1390
+ activate: !0,
1391
+ destroyOnUnmount: !0
1392
+ });
1393
+ };
1394
+ function mi(e) {
1395
+ return (t) => {
1396
+ const { model: n, status: r, KosModelLoader: s } = Er();
1397
+ return /* @__PURE__ */ o(s, { ...r, children: /* @__PURE__ */ o(e, { ...t, copyLogs: n }) });
1398
+ };
1399
+ }
1400
+ const rn = () => {
1401
+ const e = ft.type;
1402
+ return F({
1403
+ modelId: e,
1404
+ modelType: ft.type,
1405
+ options: {}
1406
+ });
1407
+ };
1408
+ function gi(e) {
1409
+ return (t) => {
1410
+ const { model: n, status: r, KosModelLoader: s } = rn();
1411
+ return /* @__PURE__ */ o(s, { ...r, children: /* @__PURE__ */ o(e, { ...t, dashboardOperations: n }) });
1412
+ };
1413
+ }
1414
+ const sn = () => {
1415
+ const e = bt.type;
1416
+ return F({
1417
+ modelId: e,
1418
+ modelType: bt.type,
1419
+ options: {}
1420
+ });
1421
+ };
1422
+ function Fr(e) {
1423
+ return (t) => {
1424
+ const { model: n, status: r, KosModelLoader: s } = sn();
1425
+ return /* @__PURE__ */ o(s, { ...r, children: /* @__PURE__ */ o(e, { ...t, dispenserInfo: n }) });
1426
+ };
1427
+ }
1428
+ const $r = (e) => F({
1429
+ modelId: e,
1430
+ modelType: Co.type,
1431
+ options: {}
1432
+ });
1433
+ function hi(e) {
1434
+ return (t) => {
1435
+ const { model: n, status: r, KosModelLoader: s } = $r(t.id);
1436
+ return /* @__PURE__ */ o(s, { ...r, children: /* @__PURE__ */ o(e, { ...t, door: n }) });
1437
+ };
1438
+ }
1439
+ const At = {
1440
+ [Gt]: "setupDescriptor",
1441
+ [Mo]: "cuiDescriptor",
1442
+ [Bo]: "utilDescriptor"
1443
+ }, Mr = ({
1444
+ defaultNamespace: e,
1445
+ extensionPoint: t
1446
+ }) => {
1447
+ const { getExtensions: n } = qe(), r = n(t), s = r.map((l) => l.data.namespace) || [], { t: a } = S([e, ...new Set(s)]), c = r.reduce(
1448
+ (l, d) => {
1449
+ const p = d;
1450
+ return l[p.data[At[t]]] = {
1451
+ extension: t,
1452
+ module: p.id,
1453
+ namespace: p.data.namespace,
1454
+ title: p.data.title
1455
+ }, l;
1456
+ },
1457
+ {}
1458
+ ), i = r.reduce((l, d) => {
1459
+ const p = d;
1460
+ return l[p.data[At[t]]] = `${p.data.namespace}:${p.data.title}`, l;
1461
+ }, {});
1462
+ return { namespaces: s, t: a, labelMap: i, contributionMap: c };
1463
+ }, et = (e, t) => {
1464
+ const n = D(() => ({
1465
+ agitate: Zo,
1466
+ calibrate: ({ holder: c, pump: i, onComplete: l }) => {
1467
+ const d = He(
1468
+ i ?? c.pumps.data[0],
1469
+ ze.type
1470
+ );
1471
+ return /* @__PURE__ */ o(rr, { pump: d, onComplete: l });
1472
+ },
1473
+ diagnostics: ({ holder: c, pump: i, onComplete: l }) => {
1474
+ const d = He(
1475
+ i ?? c.pumps.data[0],
1476
+ ze.type
1477
+ );
1478
+ return /* @__PURE__ */ o(kr, { pump: d, onComplete: l });
1479
+ },
1480
+ "replace-pump": ({ holder: c, pump: i, onComplete: l }) => /* @__PURE__ */ o(
1481
+ As,
1482
+ {
1483
+ pump: i ?? c.pumps.data[0],
1484
+ onComplete: l
1485
+ }
1486
+ ),
1487
+ "rfid-override": $s,
1488
+ "replace-line": ({ holder: c, onComplete: i }) => /* @__PURE__ */ o(Ds, { holder: c, onComplete: i })
1489
+ }), []), [r, s] = x(void 0), a = r ? n[r] : void 0;
1490
+ return {
1491
+ holderExperience: a ? /* @__PURE__ */ o(
1492
+ a,
1493
+ {
1494
+ holder: e,
1495
+ pump: t,
1496
+ onComplete: () => {
1497
+ console.log("onComplete"), s(void 0);
1498
+ }
1499
+ }
1500
+ ) : void 0,
1501
+ setHolderExperience: s,
1502
+ currentExperienceId: r
1503
+ };
1504
+ }, an = B(void 0), fi = ({ children: e, value: t }) => /* @__PURE__ */ o(an.Provider, { value: t, children: e }), Br = (e) => ({ HolderContent: void 0 }), cn = (e, t = Br) => {
1505
+ const n = O(an);
1506
+ return t = (n == null ? void 0 : n.actionFactory) || t, t(e);
1507
+ }, ln = () => {
1508
+ const e = vt.type;
1509
+ return F({
1510
+ modelId: e,
1511
+ modelType: vt.type,
1512
+ options: {}
1513
+ });
1514
+ };
1515
+ function bi(e) {
1516
+ return () => (t) => {
1517
+ const { model: n, status: r, KosModelLoader: s } = ln();
1518
+ return /* @__PURE__ */ o(s, { ...r, children: /* @__PURE__ */ o(e, { ...t, ingredientSummary: n }) });
1519
+ };
1520
+ }
1521
+ const dn = () => {
1522
+ const e = yt.type;
1523
+ return F({
1524
+ modelId: e,
1525
+ modelType: yt.type,
1526
+ options: {}
1527
+ });
1528
+ };
1529
+ function Or(e) {
1530
+ return (t) => {
1531
+ const { model: n, status: r, KosModelLoader: s } = dn();
1532
+ return /* @__PURE__ */ o(s, { ...r, children: /* @__PURE__ */ o(e, { ...t, macroAssignment: n }) });
1533
+ };
1534
+ }
1535
+ const un = (e) => F({
1536
+ modelId: e,
1537
+ modelType: xo.type,
1538
+ options: {}
1539
+ });
1540
+ function vi(e) {
1541
+ return (t) => (n) => {
1542
+ const { model: r, status: s, KosModelLoader: a } = un(t);
1543
+ return /* @__PURE__ */ o(a, { ...s, children: /* @__PURE__ */ o(e, { ...n, networkTest: r }) });
1544
+ };
1545
+ }
1546
+ const pn = () => {
1547
+ const e = wt.type;
1548
+ return F({
1549
+ modelId: e,
1550
+ modelType: wt.type,
1551
+ options: {}
1552
+ });
1553
+ };
1554
+ function Rr(e) {
1555
+ return (t) => {
1556
+ const { model: n, status: r, KosModelLoader: s } = pn();
1557
+ return /* @__PURE__ */ o(s, { ...r, children: /* @__PURE__ */ o(e, { ...t, networkTestContainer: n }) });
1558
+ };
1559
+ }
1560
+ const Nr = () => {
1561
+ const e = Ct.type;
1562
+ return F({
1563
+ modelId: e,
1564
+ modelType: Ct.type,
1565
+ options: {}
1566
+ });
1567
+ };
1568
+ function yi(e) {
1569
+ return (t) => {
1570
+ const { model: n, status: r, KosModelLoader: s } = Nr();
1571
+ return /* @__PURE__ */ o(s, { ...r, children: /* @__PURE__ */ o(e, { ...t, nutritiveSweetener: n }) });
1572
+ };
1573
+ }
1574
+ const Vr = () => {
1575
+ const e = xt.type;
1576
+ return F({
1577
+ modelId: e,
1578
+ modelType: xt.type,
1579
+ options: {},
1580
+ destroyOnUnmount: !0
1581
+ });
1582
+ };
1583
+ function wi(e) {
1584
+ return (t) => {
1585
+ const { model: n, status: r, KosModelLoader: s } = Vr();
1586
+ return /* @__PURE__ */ o(s, { ...r, children: /* @__PURE__ */ o(e, { ...t, plainWater: n }) });
1587
+ };
1588
+ }
1589
+ const Ci = (e) => {
1590
+ switch (e.type) {
1591
+ case "fcm":
1592
+ return ze.type;
1593
+ case "lfcv":
1594
+ return So.type;
1595
+ default:
1596
+ return;
1597
+ }
1598
+ }, Y = "pluginVisibility", Se = /* @__PURE__ */ new Map();
1599
+ _n(Y, {
1600
+ register: (e, t) => {
1601
+ var n;
1602
+ Se.has(e) || Se.set(e, []), (n = Se.get(e)) == null || n.push(t);
1603
+ },
1604
+ execute: (e, t, n) => {
1605
+ const r = Se.get(e);
1606
+ if (!r)
1607
+ return !0;
1608
+ const s = r.map((a) => a(t, n));
1609
+ return s.length === 0 ? !0 : !s.includes(!1);
1610
+ }
1611
+ });
1612
+ class Hr {
1613
+ constructor(t, n) {
1614
+ E(this, "core");
1615
+ E(this, "dispense");
1616
+ this.core = t, this.dispense = n;
1617
+ }
1618
+ /**
1619
+ * Registers a plugin visibility filter
1620
+ * */
1621
+ registerDashboardVisibilityFilter(t) {
1622
+ return ce[Y].register(
1623
+ Y,
1624
+ t
1625
+ ), this;
1626
+ }
1627
+ registerNavVisibilityFilter(t) {
1628
+ return ce[Y].register(
1629
+ Y,
1630
+ t
1631
+ ), this;
1632
+ }
1633
+ }
1634
+ class xi {
1635
+ constructor() {
1636
+ E(this, "dispense");
1637
+ E(this, "core");
1638
+ E(this, "plugin");
1639
+ this.dispense = new Eo(), this.core = new zn(), this.plugin = new Hr(this.core, this.dispense);
1640
+ }
1641
+ }
1642
+ const tt = (e) => e ? _r(e.type) : {
1643
+ action: "",
1644
+ label: "",
1645
+ progress: "",
1646
+ summary: ""
1647
+ }, _r = (e) => {
1648
+ const t = `troubles:troubles.${e}`;
1649
+ return {
1650
+ action: `${t}.action`,
1651
+ label: `${t}.label`,
1652
+ progress: `${t}.progress`,
1653
+ summary: `${t}.summary`
1654
+ };
1655
+ }, Fe = (e) => {
1656
+ const { getExtensions: t } = qe();
1657
+ return {
1658
+ getExtensions: L(
1659
+ (r) => t(r).filter((c) => {
1660
+ const i = c.id;
1661
+ return ce[Y].execute(
1662
+ Y,
1663
+ i,
1664
+ e
1665
+ );
1666
+ }),
1667
+ [t, e]
1668
+ )
1669
+ };
1670
+ }, nt = () => {
1671
+ const e = St.type;
1672
+ return F({
1673
+ modelId: e,
1674
+ modelType: St.type,
1675
+ options: {}
1676
+ });
1677
+ };
1678
+ function Si(e) {
1679
+ return () => (t) => {
1680
+ const { model: n, status: r, KosModelLoader: s } = nt();
1681
+ return /* @__PURE__ */ o(s, { ...r, children: /* @__PURE__ */ o(e, { ...t, reboot: n }) });
1682
+ };
1683
+ }
1684
+ const ot = () => {
1685
+ const e = kt.type;
1686
+ return F({
1687
+ modelId: e,
1688
+ modelType: kt.type,
1689
+ options: {}
1690
+ });
1691
+ };
1692
+ function mn(e) {
1693
+ return (t) => {
1694
+ const { model: n, status: r, KosModelLoader: s } = ot();
1695
+ return /* @__PURE__ */ o(s, { ...r, children: /* @__PURE__ */ o(e, { ...t, settings: n }) });
1696
+ };
1697
+ }
1698
+ const gn = (e) => F({
1699
+ modelId: e,
1700
+ modelType: ko.type,
1701
+ options: {}
1702
+ });
1703
+ function ki(e) {
1704
+ return (t) => (n) => {
1705
+ const { model: r, status: s, KosModelLoader: a } = gn(t);
1706
+ return /* @__PURE__ */ o(a, { ...s, children: /* @__PURE__ */ o(e, { ...n, setupStep: r }) });
1707
+ };
1708
+ }
1709
+ const hn = () => {
1710
+ const e = Pt.type;
1711
+ return F({
1712
+ modelId: e,
1713
+ modelType: Pt.type,
1714
+ options: {}
1715
+ });
1716
+ };
1717
+ function zr(e) {
1718
+ return (t) => {
1719
+ const { model: n, status: r, KosModelLoader: s } = hn();
1720
+ return /* @__PURE__ */ o(s, { ...r, children: /* @__PURE__ */ o(e, { ...t, setupStepContainer: n }) });
1721
+ };
1722
+ }
1723
+ const Ur = () => {
1724
+ const e = Tt.type;
1725
+ return F({
1726
+ modelId: e,
1727
+ modelType: Tt.type,
1728
+ options: {}
1729
+ });
1730
+ };
1731
+ function Pi(e) {
1732
+ return (t) => {
1733
+ const { model: n, status: r, KosModelLoader: s } = Ur();
1734
+ return /* @__PURE__ */ o(s, { ...r, children: /* @__PURE__ */ o(e, { ...t, start: n }) });
1735
+ };
1736
+ }
1737
+ const fn = () => {
1738
+ const e = It.type, { getExtensions: t } = Fe(), n = t(
1739
+ Ue
1740
+ ).map((s) => s.data);
1741
+ return F({
1742
+ modelId: e,
1743
+ modelType: It.type,
1744
+ options: {
1745
+ definitions: n
1746
+ }
1747
+ });
1748
+ };
1749
+ function Ti(e) {
1750
+ return (t) => {
1751
+ const { model: n, status: r, KosModelLoader: s } = fn();
1752
+ return /* @__PURE__ */ o(s, { ...r, children: /* @__PURE__ */ o(e, { ...t, troubleAction: n }) });
1753
+ };
1754
+ }
1755
+ const Ii = ({
1756
+ troubleType: e,
1757
+ condition: t
1758
+ }) => {
1759
+ const { model: n } = Un(), [r, s] = x(!1), [a, c] = x([]);
1760
+ return M(() => ee(() => {
1761
+ const l = (e ? n == null ? void 0 : n.troubles.getIndexByKey("byType", e) : n == null ? void 0 : n.troubles.data) || [], d = t ? l.filter(t) : l;
1762
+ s(d.length > 0), c(d);
1763
+ }), [t, n, e]), [r, a.length > 0 ? a[0] : void 0, a];
1764
+ }, bn = (e) => F({
1765
+ modelId: e,
1766
+ modelType: Po.type,
1767
+ options: {}
1768
+ });
1769
+ function Di(e) {
1770
+ return (t) => (n) => {
1771
+ const { model: r, status: s, KosModelLoader: a } = bn(t);
1772
+ return /* @__PURE__ */ o(a, { ...s, children: /* @__PURE__ */ o(e, { ...n, utilities: r }) });
1773
+ };
1774
+ }
1775
+ const vn = () => {
1776
+ const e = Dt.type;
1777
+ return F({
1778
+ modelId: e,
1779
+ modelType: Dt.type,
1780
+ options: {}
1781
+ });
1782
+ };
1783
+ function Li(e) {
1784
+ return (t) => {
1785
+ const { model: n, status: r, KosModelLoader: s } = vn();
1786
+ return /* @__PURE__ */ o(s, { ...r, children: /* @__PURE__ */ o(e, { ...t, utilitiesContainer: n }) });
1787
+ };
1788
+ }
1789
+ const Kr = Kn(
1790
+ I(({ device: e }) => {
1791
+ const { t } = S("dispenser-profile"), r = e.serialNumber === "unassigned" ? void 0 : e.serialNumber;
1792
+ return /* @__PURE__ */ o(De, { label: t("dispenser-serial"), value: r });
1793
+ })
1794
+ ), Ai = Fr(
1795
+ I(({ dispenserInfo: e }) => {
1796
+ const { t } = S("dispenser-profile");
1797
+ return /* @__PURE__ */ y($, { children: [
1798
+ /* @__PURE__ */ o(
1799
+ cr,
1800
+ {
1801
+ label: t("dispenser-name", "Dispenser Name"),
1802
+ configProperty: e.name
1803
+ }
1804
+ ),
1805
+ /* @__PURE__ */ o(Kr, {})
1806
+ ] });
1807
+ })
1808
+ ), Ei = mn(
1809
+ I(({ settings: e }) => {
1810
+ const { t } = S("dispenser-profile"), n = (r) => {
1811
+ if (r && r.length >= 25)
1812
+ return "The name shouldn’t exceed 25 characters.";
1813
+ };
1814
+ return /* @__PURE__ */ y($, { children: [
1815
+ /* @__PURE__ */ o(
1816
+ Ze,
1817
+ {
1818
+ closeButtonLabel: t("close", "Close") || void 0,
1819
+ configProperty: e == null ? void 0 : e.name,
1820
+ isValid: n,
1821
+ label: t("dispenser-name", "Dispenser Name"),
1822
+ layout: "alphanumeric",
1823
+ maxLength: 25
1824
+ }
1825
+ ),
1826
+ /* @__PURE__ */ o(
1827
+ Cr,
1828
+ {
1829
+ label: t("activate-and-reboot-time"),
1830
+ configProperty: e.activateAndRebootTime
1831
+ }
1832
+ )
1833
+ ] });
1834
+ })
1835
+ ), yn = w(Xe)`
1836
+ color: var(--ddk-generic-color-grey-60);
1837
+ font-size: var(--ddk-component-enjoy-by-font-size-small);
1838
+ font-weight: var(--ddk-component-enjoy-by-font-weight-small);
1839
+ `, jr = w(Xe)`
1840
+ color: var(--ddk-component-dashboard-enjoy-by-trouble-warning-color);
1841
+ `, Wr = w(yn)`
1842
+ color: var(--ddk-component-dashboard-enjoy-by-trouble-warning-color);
1843
+ `, Gr = ({ holder: e, size: t }) => {
1844
+ const { t: n } = S("common"), { regionModel: r } = X(), s = !!e.enjoyByDate, a = e.enjoyByDate ?? /* @__PURE__ */ new Date(), { formattedDate: c } = jn({
1845
+ year: a.getFullYear(),
1846
+ month: a.getMonth(),
1847
+ day: a.getDay(),
1848
+ formatString: (r == null ? void 0 : r.selectedDateFormat) || ""
1849
+ }), i = e.hasEnjoyByWarning ? t === "small" ? Wr : jr : t === "small" ? yn : Xe;
1850
+ return s && /* @__PURE__ */ o(i, { children: n("enjoy-by", { data: { date: c } }) });
1851
+ }, Xr = ({ item: e, valueKey: t }) => {
1852
+ const { t: n } = S("hardware-info"), { linked: r } = e;
1853
+ if (t === "link.serialNum" && !r)
1854
+ return /* @__PURE__ */ o(Qn, { children: n("not-connected") });
1855
+ const s = Zn(e, t);
1856
+ return s || "—";
1857
+ }, Yr = w(_t)`
1858
+ & ul {
1859
+ list-style-type: none;
1860
+ margin: 0;
1861
+ padding: 0;
1862
+ }
1863
+ `, Fi = I(() => {
1864
+ const { model: e } = Fo(), { t } = S("hardware-info"), n = (e == null ? void 0 : e.boardList.map((r) => {
1865
+ var s, a, c;
1866
+ return {
1867
+ ...r,
1868
+ link: {
1869
+ ...r.link,
1870
+ firmwareVersions: (s = r.link) != null && s.firmwareVersions && r.link.firmwareVersions.length > 0 ? /* @__PURE__ */ o("ul", { children: (c = (a = r.link) == null ? void 0 : a.firmwareVersions) == null ? void 0 : c.map((i, l) => /* @__PURE__ */ o("li", { children: i }, l)) }) : "—"
1871
+ }
1872
+ };
1873
+ })) || [];
1874
+ return e && e.boardList && /* @__PURE__ */ o(
1875
+ Yr,
1876
+ {
1877
+ CellRenderer: Xr,
1878
+ data: n,
1879
+ dataKeys: [
1880
+ "name",
1881
+ "type",
1882
+ "link.hardwareVersion",
1883
+ "link.serialNum",
1884
+ "link.firmwareVersions"
1885
+ ],
1886
+ headers: [
1887
+ t("name"),
1888
+ t("type"),
1889
+ t("revision"),
1890
+ t("serial-number"),
1891
+ t("firmware")
1892
+ ],
1893
+ heading: t("tower") || void 0
1894
+ }
1895
+ );
1896
+ }), $e = ({
1897
+ disabled: e,
1898
+ model: t,
1899
+ onPour: n,
1900
+ onPourCancel: r,
1901
+ ...s
1902
+ }) => {
1903
+ const { t: a } = S("common"), [c, i] = x(
1904
+ t.isPouring ? "halt" : "idle"
1905
+ ), l = dt(), d = dt(!1), p = 250;
1906
+ M(() => ee(() => {
1907
+ t.isPouring || (d.current = !1, clearTimeout(l.current), l.current = void 0, i("idle"));
1908
+ }), [t]), M(
1909
+ () => (
1910
+ // If the model changes, or if the component is unmounted, cancel the
1911
+ // pour...
1912
+ () => {
1913
+ t.isPouring && t.cancelPour();
1914
+ }
1915
+ ),
1916
+ [t]
1917
+ );
1918
+ const u = L(() => {
1919
+ t && (e || t.isPouring || (t.performIntent("HOLD_TO_POUR"), l.current = setTimeout(() => {
1920
+ d.current = !0, l.current = void 0, i("run");
1921
+ }, p)));
1922
+ }, [e, t]), m = L(() => {
1923
+ t && (d.current ? (t.cancelPour(), d.current = !1, i("idle")) : l.current ? (clearTimeout(l.current), l.current = void 0, i("halt")) : t.isPouring && (t.cancelPour(), i("idle")));
1924
+ }, [t]), g = L(() => {
1925
+ c !== "halt" && m();
1926
+ }, [m, c]);
1927
+ return /* @__PURE__ */ o(
1928
+ Jn,
1929
+ {
1930
+ disabled: e,
1931
+ mode: "primary",
1932
+ onPointerCancel: m,
1933
+ onPointerDown: u,
1934
+ onPointerOut: g,
1935
+ onPointerUp: m,
1936
+ ...s,
1937
+ state: c,
1938
+ children: a(
1939
+ a(c === "idle" ? "tapOrHoldToPour" : c === "run" ? "releaseToStop" : "stop")
1940
+ )
1941
+ }
1942
+ );
1943
+ }, wn = B(
1944
+ void 0
1945
+ ), $i = ({ children: e }) => {
1946
+ const { model: t, ready: n } = on(), r = D(() => n && t ? { model: t } : {}, [n, t]);
1947
+ return /* @__PURE__ */ o(wn.Provider, { value: r, children: e });
1948
+ }, Mi = () => {
1949
+ const e = O(wn);
1950
+ if (!e)
1951
+ throw new Error(
1952
+ "useAnimationContext must be used within a AnimationProvider"
1953
+ );
1954
+ return e;
1955
+ }, Bi = Lr(
1956
+ ({
1957
+ animation: e,
1958
+ animationOverrides: t,
1959
+ children: n,
1960
+ componentModeOverride: r,
1961
+ modalModeOverride: s
1962
+ }) => {
1963
+ const [a, c] = x(!0), [i, l] = x(!0), [d, p] = x(!0);
1964
+ return M(() => {
1965
+ const u = ee(() => {
1966
+ const m = !!(!(t != null && t.disableAll) && (t != null && t.enableDial)) && !!(!e.disableAll.value && e.enableDial.value), g = !!(!(t != null && t.disableAll) && (t != null && t.enableModal)) && !!(!e.disableAll.value && e.enableModal.value), v = !!(!(t != null && t.disableAll) && (t != null && t.enableSideBar)) && !!(!e.disableAll.value && e.enableSideBar.value);
1967
+ c(m), l(g), p(v);
1968
+ });
1969
+ return () => {
1970
+ u();
1971
+ };
1972
+ }, [
1973
+ e,
1974
+ t == null ? void 0 : t.disableAll,
1975
+ t == null ? void 0 : t.enableDial,
1976
+ t == null ? void 0 : t.enableModal,
1977
+ t == null ? void 0 : t.enableSideBar
1978
+ ]), /* @__PURE__ */ o(
1979
+ eo,
1980
+ {
1981
+ value: {
1982
+ componentModeOverride: r,
1983
+ enableDialAnimation: a,
1984
+ enableModalAnimation: i,
1985
+ enableSidebarAnimation: d,
1986
+ modalModeOverride: s
1987
+ },
1988
+ children: n
1989
+ }
1990
+ );
1991
+ }
1992
+ ), Cn = B(
1993
+ void 0
1994
+ ), Oi = ({ children: e }) => {
1995
+ const { model: t, ready: n } = Ee(), r = D(() => n && t ? { model: t } : {}, [n, t]);
1996
+ return /* @__PURE__ */ o(Cn.Provider, { value: r, children: e });
1997
+ }, rt = () => {
1998
+ const e = O(Cn);
1999
+ if (!e)
2000
+ throw new Error(
2001
+ "useApplicationContext must be used within a ApplicationProvider"
2002
+ );
2003
+ return e;
2004
+ }, xn = B(void 0), Ri = ({ children: e }) => {
2005
+ const { model: t, ready: n } = rn(), r = D(() => n && t ? { model: t } : {}, [n, t]);
2006
+ return /* @__PURE__ */ o(xn.Provider, { value: r, children: e });
2007
+ }, Ni = () => {
2008
+ const e = O(xn);
2009
+ if (!e)
2010
+ throw new Error(
2011
+ "useDashboardOperationsContext must be used within a DashboardOperationsProvider"
2012
+ );
2013
+ return e;
2014
+ }, Sn = B(void 0), Vi = ({ children: e }) => {
2015
+ const { model: t, ready: n } = sn(), r = D(() => n && t ? { model: t } : {}, [n, t]);
2016
+ return /* @__PURE__ */ o(Sn.Provider, { value: r, children: e });
2017
+ }, Hi = () => {
2018
+ const e = O(Sn);
2019
+ if (!e)
2020
+ throw new Error(
2021
+ "useDispenserInfoContext must be used within a DispenserInfoProvider"
2022
+ );
2023
+ return e;
2024
+ }, kn = B(void 0), _i = ({ children: e }) => {
2025
+ const { model: t, ready: n } = ln(), r = D(() => n && t ? { model: t } : {}, [n, t]);
2026
+ return /* @__PURE__ */ o(kn.Provider, { value: r, children: e });
2027
+ }, zi = () => {
2028
+ const e = O(kn);
2029
+ if (!e)
2030
+ throw new Error(
2031
+ "useIngredientSummaryContext must be used within a IngredientSummaryProvider"
2032
+ );
2033
+ return e;
2034
+ }, Pn = B(void 0), Ui = ({ children: e }) => {
2035
+ const { model: t, ready: n } = dn(), r = D(() => n && t ? { model: t } : {}, [n, t]);
2036
+ return /* @__PURE__ */ o(Pn.Provider, { value: r, children: e });
2037
+ }, Ki = () => {
2038
+ const e = O(Pn);
2039
+ if (!e)
2040
+ throw new Error(
2041
+ "useMacroAssignmentContext must be used within a MacroAssignmentProvider"
2042
+ );
2043
+ return e;
2044
+ }, Tn = B(
2045
+ void 0
2046
+ ), ji = ({ children: e, id: t }) => {
2047
+ const { model: n, ready: r } = un(t), s = D(() => r && n ? { model: n } : {}, [r, n]);
2048
+ return /* @__PURE__ */ o(Tn.Provider, { value: s, children: e });
2049
+ }, Wi = () => {
2050
+ const e = O(Tn);
2051
+ if (!e)
2052
+ throw new Error(
2053
+ "useNetworkTestContext must be used within a NetworkTestProvider"
2054
+ );
2055
+ return e;
2056
+ }, In = B(void 0), Gi = ({ children: e }) => {
2057
+ const { model: t, ready: n } = pn(), r = D(() => n && t ? { model: t } : {}, [n, t]);
2058
+ return /* @__PURE__ */ o(In.Provider, { value: r, children: e });
2059
+ }, Xi = () => {
2060
+ const e = O(In);
2061
+ if (!e)
2062
+ throw new Error(
2063
+ "useNetworkTestContainerContext must be used within a NetworkTestContainerProvider"
2064
+ );
2065
+ return e;
2066
+ }, Dn = B(void 0), Yi = ({ children: e }) => {
2067
+ const { model: t, ready: n } = nt(), r = D(() => n && t ? { model: t } : {}, [n, t]);
2068
+ return /* @__PURE__ */ o(Dn.Provider, { value: r, children: e });
2069
+ }, qi = () => {
2070
+ const e = O(Dn);
2071
+ if (!e)
2072
+ throw new Error("useRebootContext must be used within a RebootProvider");
2073
+ return e;
2074
+ }, Ln = B(
2075
+ void 0
2076
+ ), Qi = ({ children: e }) => {
2077
+ const { model: t, ready: n } = ot(), r = D(() => n && t ? { model: t } : {}, [n, t]);
2078
+ return /* @__PURE__ */ o(Ln.Provider, { value: r, children: e });
2079
+ }, Zi = () => {
2080
+ const e = O(Ln);
2081
+ if (!e)
2082
+ throw new Error(
2083
+ "useSettingsContext must be used within a SettingsProvider"
2084
+ );
2085
+ return e;
2086
+ }, An = B(
2087
+ void 0
2088
+ ), Ji = ({ children: e, id: t }) => {
2089
+ const { model: n, ready: r } = gn(t), s = D(() => r && n ? { model: n } : {}, [r, n]);
2090
+ return /* @__PURE__ */ o(An.Provider, { value: s, children: e });
2091
+ }, ea = () => {
2092
+ const e = O(An);
2093
+ if (!e)
2094
+ throw new Error(
2095
+ "useSetupStepContext must be used within a SetupStepProvider"
2096
+ );
2097
+ return e;
2098
+ }, En = B(void 0), ta = ({ children: e }) => {
2099
+ const { model: t, ready: n } = hn(), r = D(() => n && t ? { model: t } : {}, [n, t]);
2100
+ return /* @__PURE__ */ o(En.Provider, { value: r, children: e });
2101
+ }, na = () => {
2102
+ const e = O(En);
2103
+ if (!e)
2104
+ throw new Error(
2105
+ "useSetupStepContainerContext must be used within a SetupStepContainerProvider"
2106
+ );
2107
+ return e;
2108
+ }, Fn = B(
2109
+ void 0
2110
+ ), oa = ({ children: e, id: t }) => {
2111
+ const { model: n, ready: r } = bn(t), s = D(() => r && n ? { model: n } : {}, [r, n]);
2112
+ return /* @__PURE__ */ o(Fn.Provider, { value: s, children: e });
2113
+ }, ra = () => {
2114
+ const e = O(Fn);
2115
+ if (!e)
2116
+ throw new Error(
2117
+ "useUtilitiesContext must be used within a UtilitiesProvider"
2118
+ );
2119
+ return e;
2120
+ }, $n = B(void 0), sa = ({ children: e }) => {
2121
+ const { model: t, ready: n } = vn(), r = D(() => n && t ? { model: t } : {}, [n, t]);
2122
+ return /* @__PURE__ */ o($n.Provider, { value: r, children: e });
2123
+ }, ia = () => {
2124
+ const e = O($n);
2125
+ if (!e)
2126
+ throw new Error(
2127
+ "useUtilitiesContainerContext must be used within a UtilitiesContainerProvider"
2128
+ );
2129
+ return e;
2130
+ }, Me = (e) => {
2131
+ const { model: t } = rt(), [n, r] = x(), s = t == null ? void 0 : t.currentRole, a = !!n;
2132
+ return vo(() => {
2133
+ const c = ee(() => {
2134
+ const i = e.troubles.filter(To(s));
2135
+ r((l) => {
2136
+ const d = l ?? [];
2137
+ return i.length !== d.length || i.some((p) => !d.includes(p)) ? i : d;
2138
+ });
2139
+ });
2140
+ return () => {
2141
+ c();
2142
+ };
2143
+ }, [e, s]), { visibleTroubles: n, initialized: a };
2144
+ }, qr = j.createLogger({ name: "holder-group-view" });
2145
+ qr.debug("holder-group-view component loaded");
2146
+ const Et = w.div`
2147
+ align-items: start;
2148
+
2149
+ display: flex;
2150
+ flex-wrap: nowrap;
2151
+ gap: 8px;
2152
+ overflow: hidden;
2153
+ text-overflow: ellipsis;
2154
+ width: 100%;
2155
+ color: ${(e) => e.color ?? "var(--ddk-generic-color-black)"};
2156
+ `, Qr = w.div`
2157
+ display: flex;
2158
+ align-items: center;
2159
+ justify-content: center;
2160
+ color: ${(e) => e.color ?? "var(--ddk-generic-color-black)"};
2161
+ `, Zr = w.div`
2162
+ font-size: var(--ddk-component-holder-card-footer-font-size);
2163
+ color: ${(e) => e.color ?? "var(--ddk-generic-color-black)"};
2164
+ `, Jr = (e) => !e || e === "white", es = (e) => e ? void 0 : "white", ts = (e, t) => t && t.hasEnjoyByWarning ? "var(--ddk-component-dashboard-enjoy-by-trouble-warning-color)" : e ? void 0 : "white", ns = I(
2165
+ ({ holder: e, onHolderSelect: t, showNavIcon: n, summaryBody: r }) => {
2166
+ const { model: s } = Ee(), { visibleTroubles: a, initialized: c } = Me(e), i = s == null ? void 0 : s.currentRole, [l, d] = x(), { t: p } = S("troubles"), { t: u } = S("common"), { componentModeOverride: m } = R(), g = m === "compact", { getExtensions: v } = Fe(), [C, b] = x(!1), k = !!e.ingredientId, A = L(() => {
2167
+ b(!1);
2168
+ }, []), P = (a == null ? void 0 : a.length) ?? 0, f = a == null ? void 0 : a[0], h = P > 0, N = e.hasFuelGuage, V = e.fillPercent, G = h ? `${f == null ? void 0 : f.color}` : void 0, me = Jr(G), oe = h ? es(me) : k ? void 0 : "var(--ddk-component-dashboard-card-color-unassigned)", Oe = h ? ts(me, e) : k ? void 0 : "var(--ddk-component-dashboard-card-color-unassigned)", ge = zt(e.name, g), re = e.removed ? u(e.previousIngredientName) : e.unassigned ? u("unassigned") : u(e.ingredientName), Re = /* @__PURE__ */ o(Et, { color: oe, children: re }), he = /* @__PURE__ */ o(Qr, { color: oe, children: ge }), Ne = /* @__PURE__ */ y(Et, { children: [
2169
+ e.name,
2170
+ " ",
2171
+ re
2172
+ ] }), fe = k && N && !h && c ? r ?? /* @__PURE__ */ o(
2173
+ no,
2174
+ {
2175
+ color: h ? "var(--ddk-generic-color-white)" : void 0,
2176
+ size: "small",
2177
+ value: V
2178
+ }
2179
+ ) : null, Ve = k && N && !h && c && to(V) || void 0, se = ce.executeDashboardKeyFactory(e) || "", be = D(
2180
+ () => v(Xt),
2181
+ [v]
2182
+ ), ie = D(
2183
+ () => be.filter((K) => !!K.data.pumpDetail).reduce((K, xe) => (K[xe.data.pumpDetail.dashboardKey] = xe.data.pumpDetail, K), {}),
2184
+ [be]
2185
+ ), ve = !!ie[se], { HolderContent: Q, modalOptions: ye } = cn(e);
2186
+ M(() => {
2187
+ async function K() {
2188
+ if (f) {
2189
+ const xe = await Nt(f);
2190
+ d(xe);
2191
+ }
2192
+ }
2193
+ K();
2194
+ }, [f]);
2195
+ const Z = D(
2196
+ () => {
2197
+ var K;
2198
+ return Q ? /* @__PURE__ */ o(Q, { holder: e, onComplete: A }) : ve ? /* @__PURE__ */ o(
2199
+ Le,
2200
+ {
2201
+ extension: Yt,
2202
+ module: (K = ie[se]) == null ? void 0 : K.id,
2203
+ props: { holder: e }
2204
+ }
2205
+ ) : void 0;
2206
+ },
2207
+ [Q, A, ie, ve, e, se]
2208
+ ), we = tt(f), On = /* @__PURE__ */ o(Zr, { color: h ? oe : Oe, children: h ? p(we.summary, {
2209
+ context: f != null && f.deferred ? "queued" : void 0,
2210
+ data: l
2211
+ }) : !g && /* @__PURE__ */ o(Gr, { size: "small", holder: e }) }), { holderExperience: Rn, setHolderExperience: it } = et(e), { future: Ce } = pe(f), Nn = L(() => {
2212
+ e.sortedPumps.length > 0 && (i === "technician" ? b(!0) : e.unassigned || e.removed ? it("rfid-override") : h && (t == null || t(e)));
2213
+ }, [e, h, t, i, it]);
2214
+ return /* @__PURE__ */ y($, { children: [
2215
+ /* @__PURE__ */ y(
2216
+ te,
2217
+ {
2218
+ contain: !g,
2219
+ ...ye,
2220
+ show: C,
2221
+ onClose: A,
2222
+ children: [
2223
+ /* @__PURE__ */ o(
2224
+ ne,
2225
+ {
2226
+ contain: g,
2227
+ showCloseButton: !0,
2228
+ title: Ne,
2229
+ onClose: A,
2230
+ CloseButton: g ? le : void 0
2231
+ }
2232
+ ),
2233
+ Z
2234
+ ]
2235
+ }
2236
+ ),
2237
+ /* @__PURE__ */ o(Ye, { children: Rn }),
2238
+ /* @__PURE__ */ o(
2239
+ Ut,
2240
+ {
2241
+ avatar: he,
2242
+ color: G,
2243
+ footer: On,
2244
+ cardId: e.path,
2245
+ errors: P,
2246
+ title: Re,
2247
+ indicatorColor: Ve,
2248
+ body: fe,
2249
+ showNavIcon: n,
2250
+ onCardSelect: Nn
2251
+ },
2252
+ e.path
2253
+ ),
2254
+ (f == null ? void 0 : f.future) && /* @__PURE__ */ o(
2255
+ U,
2256
+ {
2257
+ title: Re,
2258
+ future: Ce,
2259
+ failureMessage: p(`troubles.${f.type}.error`, {
2260
+ context: Ce == null ? void 0 : Ce.reason
2261
+ })
2262
+ }
2263
+ )
2264
+ ] });
2265
+ }
2266
+ ), Mn = w.div`
2267
+ display: flex;
2268
+ flex-direction: var(--ddk-component-dashboard-card-flex-direction);
2269
+ row-gap: var(--ddk-component-dashboard-row-gap);
2270
+ column-gap: var(--ddk-component-dashboard-column-gap);
2271
+ height: 100%;
2272
+ user-select: none;
2273
+ `, os = I(({ holder: e, showNavIcons: t }) => {
2274
+ const n = e.troubles[0];
2275
+ return /* @__PURE__ */ o(
2276
+ ns,
2277
+ {
2278
+ holder: e,
2279
+ showNavIcon: t,
2280
+ onHolderSelect: () => {
2281
+ n != null && n.resolvable && n.resolve();
2282
+ }
2283
+ },
2284
+ e.id
2285
+ );
2286
+ }), aa = I(
2287
+ ({ holders: e, showNavIcons: t, ...n }) => {
2288
+ const r = D(
2289
+ () => e.map((s) => /* @__PURE__ */ o(
2290
+ os,
2291
+ {
2292
+ holder: s,
2293
+ showNavIcons: !!t
2294
+ },
2295
+ s.id
2296
+ )),
2297
+ [e, t]
2298
+ );
2299
+ return /* @__PURE__ */ o(Mn, { ...n, children: r });
2300
+ }
2301
+ ), rs = j.createLogger({ name: "holder-group-view" });
2302
+ rs.debug("holder-group-view component loaded");
2303
+ const Ft = ["water", "carb", "ns", "nns"], ss = w.div`
2304
+ display: flex;
2305
+ flex-direction: column;
2306
+ overflow-y: auto;
2307
+ overflow-x: hidden;
2308
+ justify-content: space-between;
2309
+ height: 100%;
2310
+ `, $t = w.div`
2311
+ align-items: start;
2312
+
2313
+ display: flex;
2314
+ flex-wrap: nowrap;
2315
+ gap: 8px;
2316
+ overflow: hidden;
2317
+ text-overflow: ellipsis;
2318
+ width: 100%;
2319
+ color: ${(e) => e.color ?? "var(--ddk-generic-color-black)"};
2320
+ `, is = w.div`
2321
+ display: flex;
2322
+ align-items: center;
2323
+ justify-content: center;
2324
+ color: ${(e) => e.color ?? "var(--ddk-generic-color-black)"};
2325
+ `, as = w.div`
2326
+ font-size: var(--ddk-component-holder-card-footer-font-size);
2327
+ color: ${(e) => e.color ?? "var(--ddk-generic-color-black)"};
2328
+ `, cs = (e) => !e || e === "white", ls = (e) => e ? void 0 : "white", ds = I(
2329
+ ({ holder: e, onHolderSelect: t, showNavIcon: n }) => {
2330
+ var Q, ye;
2331
+ const { model: r } = Ee(), { visibleTroubles: s, initialized: a } = Me(e), { t: c } = S(["troubles", "common"]), { componentModeOverride: i } = R(), l = i === "compact", { getExtensions: d } = Fe(), p = (Q = r == null ? void 0 : r.currentRole) == null ? void 0 : Q.toLowerCase(), [u, m] = x(!1), g = !!e.ingredientId, v = (s == null ? void 0 : s.length) ?? 0, C = s == null ? void 0 : s[0], b = s ? s.length > 0 : !1, k = b ? `${C == null ? void 0 : C.color}` : void 0, A = cs(k), P = b ? ls(A) : g ? void 0 : "var(--ddk-component-dashboard-card-color-unassigned)", f = zt(
2332
+ e.name,
2333
+ i === "compact"
2334
+ ), h = c(`common:macros.${e.name}`), N = c(`common:${e.ingredientName}`), V = g ? Ft.includes(e.name) ? "" : ` ${N}` : ` ${c("common:macros.unassigned")}`, G = `${h}${V}`, me = l ? Ft.includes(e.name) ? h : V : `${h} ${V}`, oe = i === "compact" && /* @__PURE__ */ o(is, { color: P, children: f }), Oe = /* @__PURE__ */ o($t, { color: P, children: me }), ge = /* @__PURE__ */ o($t, { children: G }), re = ce.executeDashboardKeyFactory(e) || "", he = d(Xt).filter((Z) => !!Z.data.pumpDetail).reduce((Z, we) => (Z[we.data.pumpDetail.dashboardKey] = we.data.pumpDetail, Z), {}), Ne = !!he[re], { HolderContent: fe, modalOptions: Ve } = cn(e), se = fe ? /* @__PURE__ */ o(fe, { holder: e, onComplete: () => m(!1) }) : Ne ? /* @__PURE__ */ o(
2335
+ Le,
2336
+ {
2337
+ extension: Yt,
2338
+ module: (ye = he[re]) == null ? void 0 : ye.id,
2339
+ props: { holder: e }
2340
+ }
2341
+ ) : null, be = tt(C), ie = b ? /* @__PURE__ */ o(as, { color: P, children: c(be.summary) }) : null, ve = L(() => {
2342
+ e.sortedPumps.length > 0 && (p === "technician" ? m(!0) : b && (t == null || t(e)));
2343
+ }, [b, e, t, p]);
2344
+ return /* @__PURE__ */ y($, { children: [
2345
+ /* @__PURE__ */ o(
2346
+ Ut,
2347
+ {
2348
+ avatar: oe,
2349
+ color: k,
2350
+ body: b ? null : /* @__PURE__ */ o(
2351
+ We,
2352
+ {
2353
+ size: "small",
2354
+ status: b ? "pending" : "completed"
2355
+ }
2356
+ ),
2357
+ footer: ie,
2358
+ cardId: e.path,
2359
+ errors: v,
2360
+ title: Oe,
2361
+ showNavIcon: n,
2362
+ onCardSelect: ve
2363
+ },
2364
+ e.path
2365
+ ),
2366
+ /* @__PURE__ */ o(
2367
+ te,
2368
+ {
2369
+ contain: i !== "compact",
2370
+ ...Ve,
2371
+ show: u,
2372
+ onClose: () => m(!1),
2373
+ children: /* @__PURE__ */ y(ss, { children: [
2374
+ /* @__PURE__ */ o(
2375
+ ne,
2376
+ {
2377
+ contain: i === "compact",
2378
+ showCloseButton: !0,
2379
+ title: ge,
2380
+ onClose: () => m(!1),
2381
+ CloseButton: i === "compact" ? le : void 0
2382
+ }
2383
+ ),
2384
+ se
2385
+ ] })
2386
+ }
2387
+ ),
2388
+ (C == null ? void 0 : C.future) && /* @__PURE__ */ o(U, { title: ge, future: C == null ? void 0 : C.future })
2389
+ ] });
2390
+ }
2391
+ ), ca = I(
2392
+ ({ holders: e, showNavIcons: t, ...n }) => /* @__PURE__ */ o(Mn, { ...n, children: e.map((r) => {
2393
+ const s = r.troubles[0];
2394
+ return /* @__PURE__ */ o(
2395
+ ds,
2396
+ {
2397
+ holder: r,
2398
+ showNavIcon: t,
2399
+ onHolderSelect: () => {
2400
+ s.resolvable && s.resolve();
2401
+ }
2402
+ },
2403
+ r.id
2404
+ );
2405
+ }) })
2406
+ ), us = w(Ao)`
2407
+ width: var(--ddk-component-macro-card-unavailable-icon-size);
2408
+ height: var(--ddk-component-macro-card-unavailable-icon-size);
2409
+ `, ps = w(Kt)`
2410
+ text-align: center;
2411
+ font-size: var(--ddk-component-sub-modal-heading-font-size-medium);
2412
+ `, ms = w.div`
2413
+ height: 100%;
2414
+ overflow-y: auto;
2415
+ width: 100%;
2416
+ `, gs = w.div`
2417
+ display: grid;
2418
+ gap: var(--ddk-component-macro-setup-card-gap);
2419
+
2420
+ grid-template-columns: ${(e) => e.compact ? "1fr" : "repeat(auto-fit, 145px)"};
2421
+
2422
+ height: ${(e) => !e.compact && "100%"};
2423
+ justify-content: center;
2424
+ width: 100%;
2425
+ user-select: none;
2426
+ `, hs = (e) => {
2427
+ const { componentModeOverride: t } = R();
2428
+ return /* @__PURE__ */ o(
2429
+ gs,
2430
+ {
2431
+ compact: t === "compact",
2432
+ ...e
2433
+ }
2434
+ );
2435
+ }, fs = w.div`
2436
+ align-items: center;
2437
+
2438
+ background: ${(e) => e.selected ? "var(--ddk-generic-color-grey-5)" : "var(--ddk-generic-color-white)"};
2439
+
2440
+ border: ${(e) => e.selected ? "1px solid var(--ddk-generic-color-grey-80)" : "1px solid var(--ddk-generic-color-grey-30)"};
2441
+
2442
+ border-radius: 4px;
2443
+ box-sizing: border-box;
2444
+ color: var(--ddk-generic-color-grey-70);
2445
+ display: flex;
2446
+ flex: 1 0 0;
2447
+ font-size: var(--ddk-component-macro-card-font-size-small);
2448
+ font-style: normal;
2449
+ font-weight: var(--ddk-component-macro-card-font-weight);
2450
+ gap: var(--ddk-component-macro-setup-card-gap);
2451
+ height: var(--ddk-component-macro-card-height);
2452
+ justify-content: center;
2453
+ letter-spacing: 0.64px;
2454
+ line-height: 135%;
2455
+ overflow-wrap: anywhere;
2456
+ padding: var(--ddk-component-macro-setup-card-header-padding-md);
2457
+ text-align: center;
2458
+ `, bs = w.div`
2459
+ align-items: center;
2460
+ display: flex;
2461
+ flex-direction: column;
2462
+ gap: 32px;
2463
+ height: 100%;
2464
+ justify-content: center;
2465
+ `, vs = w.div`
2466
+ color: var(--ddk-component-macro-card-unavailable-font-color);
2467
+ font-size: var(--ddk-component-macro-card-unavailable-font-size);
2468
+ font-weight: var(--ddk-component-macro-card-unavailable-font-weight);
2469
+ `, Bn = Or(({ holder: e, onComplete: t, macroAssignment: n, showCloseButton: r = !0 }) => {
2470
+ const { t: s } = S("setup"), { t: a } = S("common"), { componentModeOverride: c } = R(), [i, l] = x(e.ingredient), d = w.div`
2471
+ display: flex;
2472
+ flex-direction: column;
2473
+ gap: 24px;
2474
+ height: 100%;
2475
+ `;
2476
+ return /* @__PURE__ */ y(d, { children: [
2477
+ /* @__PURE__ */ o(q, { children: n.hasMacroIngredients ? /* @__PURE__ */ y($, { children: [
2478
+ c === "standard" && /* @__PURE__ */ o(ps, { children: s("select-and-assign-ingredients-for", {
2479
+ data: { name: a(`macros.${e.name}`) }
2480
+ }) }),
2481
+ /* @__PURE__ */ o(ms, { children: /* @__PURE__ */ o(hs, { children: n.macroIngredients.map((p) => /* @__PURE__ */ o(
2482
+ fs,
2483
+ {
2484
+ selected: (i == null ? void 0 : i.id) === p.id,
2485
+ onPointerDown: () => {
2486
+ i === p || l(p);
2487
+ },
2488
+ children: p.name
2489
+ },
2490
+ p.id
2491
+ )) }) })
2492
+ ] }) : /* @__PURE__ */ y(bs, { children: [
2493
+ /* @__PURE__ */ o(us, {}),
2494
+ /* @__PURE__ */ o(vs, { children: s("no-ingredients-available-for-assignment") })
2495
+ ] }) }),
2496
+ /* @__PURE__ */ o(_, { children: n.hasMacroIngredients ? /* @__PURE__ */ y($, { children: [
2497
+ c === "standard" && r && /* @__PURE__ */ o(
2498
+ T,
2499
+ {
2500
+ onPointerDown: () => {
2501
+ t == null || t();
2502
+ },
2503
+ children: a("close")
2504
+ }
2505
+ ),
2506
+ /* @__PURE__ */ o(
2507
+ T,
2508
+ {
2509
+ mode: "primary",
2510
+ disabled: !i || i.id === e.ingredientId,
2511
+ onPointerDown: async () => {
2512
+ await e.assignIngredient(i == null ? void 0 : i.id), t == null || t();
2513
+ },
2514
+ children: a("assignIngredient")
2515
+ }
2516
+ )
2517
+ ] }) : r !== !1 && /* @__PURE__ */ o(
2518
+ T,
2519
+ {
2520
+ mode: "primary",
2521
+ onPointerDown: () => {
2522
+ t == null || t();
2523
+ },
2524
+ children: a("proceed")
2525
+ }
2526
+ ) })
2527
+ ] });
2528
+ }), la = w.div`
2529
+ display: flex;
2530
+ flex-direction: column;
2531
+ gap: 24px;
2532
+ padding: 24px;
2533
+ `, da = $o(
2534
+ ({ assembly: e, showHeading: t }) => /* @__PURE__ */ o(
2535
+ ys,
2536
+ {
2537
+ iceAgitator: e.iceAgitator,
2538
+ showHeading: t
2539
+ }
2540
+ )
2541
+ ), ys = I(
2542
+ ({ iceAgitator: e, showHeading: t }) => {
2543
+ const { t: n } = S("about"), r = Oo(), { componentModeOverride: s } = R(), a = (e == null ? void 0 : e.iceTypes.map((i) => ({ id: i, label: i }))) || [], c = L(async () => {
2544
+ (e == null ? void 0 : e.type.value) !== void 0 && (e == null || e.updateIceType(e.type.value));
2545
+ }, [e]);
2546
+ return e ? /* @__PURE__ */ y(de, { children: [
2547
+ t && /* @__PURE__ */ o(ue, { children: n("ice-settings", "Ice Settings") }),
2548
+ s === "compact" ? /* @__PURE__ */ o(
2549
+ yr,
2550
+ {
2551
+ configProperty: e.type,
2552
+ onChange: (i) => e.updateIceType(i),
2553
+ options: a,
2554
+ label: n("ice-type", "Ice Type")
2555
+ }
2556
+ ) : /* @__PURE__ */ o(
2557
+ Je,
2558
+ {
2559
+ configProperty: e.type,
2560
+ onSave: (i) => e.updateIceType(i),
2561
+ items: a,
2562
+ label: n("ice-type", "Ice Type") || void 0
2563
+ }
2564
+ ),
2565
+ /* @__PURE__ */ o(
2566
+ ae,
2567
+ {
2568
+ configProperty: e.durationSec,
2569
+ label: n("agitation-duration", "Agitation duration") || void 0
2570
+ }
2571
+ ),
2572
+ /* @__PURE__ */ o(
2573
+ ae,
2574
+ {
2575
+ configProperty: e.inactivitySec,
2576
+ label: n("agitate-inactivity", "Agitate after inactivity") || void 0
2577
+ }
2578
+ ),
2579
+ /* @__PURE__ */ o(
2580
+ ae,
2581
+ {
2582
+ configProperty: e.volWithoutIceMl,
2583
+ label: n("agitate-without-ice", "Agitate after poured without ice") || void 0
2584
+ }
2585
+ ),
2586
+ s !== "compact" && (r == null ? void 0 : r.pathname.includes("/settings")) && /* @__PURE__ */ o(_, { children: /* @__PURE__ */ o(T, { onPointerDown: c, children: n("reset") }) })
2587
+ ] }) : "Ice model not loaded...";
2588
+ }
2589
+ ), ua = I(({ showHeading: e }) => {
2590
+ var l, d, p, u, m, g, v, C;
2591
+ const { t } = S("region"), { model: n } = ot(), { regionModel: r } = X(), s = L(
2592
+ (b) => ({
2593
+ id: b,
2594
+ label: t(`locale.country.${b}`)
2595
+ }),
2596
+ [t]
2597
+ ), { selectedRegion: a, updateRegion: c, regionSelectProps: i } = X(s);
2598
+ return /* @__PURE__ */ y(de, { children: [
2599
+ e && /* @__PURE__ */ o(ue, { children: t("localization", "Localization") }),
2600
+ /* @__PURE__ */ o(
2601
+ _e,
2602
+ {
2603
+ cancelButtonLabel: t("discard-changes", "Discard Changes") || void 0,
2604
+ closeButtonLabel: t("close", "Close") || void 0,
2605
+ displayValue: t(`locale.country.${a}`) || void 0,
2606
+ items: i.options,
2607
+ label: t("country", "Country"),
2608
+ loop: !1,
2609
+ onSave: (b) => c(b),
2610
+ proceedButtonLabel: t("save", "Save") || void 0,
2611
+ selectedItemId: a
2612
+ }
2613
+ ),
2614
+ ((l = r == null ? void 0 : r.unitSystemOptions) == null ? void 0 : l.length) && /* @__PURE__ */ o(
2615
+ Pe,
2616
+ {
2617
+ label: t("units-of-measurement", "Units of Measurement"),
2618
+ options: (d = r == null ? void 0 : r.unitSystemOptions) == null ? void 0 : d.map((b) => ({
2619
+ id: b.id,
2620
+ label: `${t(`locale.unit.${b.id}`)}/${t(
2621
+ `locale.units.${b.id}`
2622
+ )}`
2623
+ })),
2624
+ onChange: (b) => r == null ? void 0 : r.setSelectedUnitSystem(String(b)),
2625
+ value: String(r == null ? void 0 : r.selectedUnitSystem).toLowerCase()
2626
+ }
2627
+ ),
2628
+ /* @__PURE__ */ o(
2629
+ _e,
2630
+ {
2631
+ cancelButtonLabel: t("discard-changes", "Discard Changes") || void 0,
2632
+ closeButtonLabel: t("close", "Close") || void 0,
2633
+ displayValue: (p = n == null ? void 0 : n.ncuiLanguage) != null && p.displayValue ? t(
2634
+ `locale-ncui-language.${(u = n == null ? void 0 : n.ncuiLanguage) == null ? void 0 : u.displayValue}`
2635
+ ) : void 0,
2636
+ items: (v = (g = (m = n == null ? void 0 : n.ncuiLanguageData) == null ? void 0 : m.data) == null ? void 0 : g.languages) == null ? void 0 : v.map(
2637
+ ({ locale: b, name: k }) => ({
2638
+ id: b,
2639
+ label: k
2640
+ })
2641
+ ),
2642
+ label: t("non-consumer-language", "Non-Consumer Language"),
2643
+ loop: !1,
2644
+ onSave: (b) => {
2645
+ var k;
2646
+ return (k = n == null ? void 0 : n.ncuiLanguage) == null ? void 0 : k.updateProperty(b);
2647
+ },
2648
+ proceedButtonLabel: t("save", "Save") || void 0,
2649
+ selectedItemId: (C = n == null ? void 0 : n.ncuiLanguage) == null ? void 0 : C.displayValue
2650
+ }
2651
+ )
2652
+ ] });
2653
+ });
2654
+ w.div`
2655
+ display: flex;
2656
+ font-size: var(--ddk-generic-font-size-x-small);
2657
+ font-weight: normal;
2658
+ gap: 10px;
2659
+ padding-inline-start: 16px;
2660
+ row-gap: 8px;
2661
+
2662
+ & .label {
2663
+ font-weight: 600;
2664
+ white-space: nowrap;
2665
+ overflow: hidden;
2666
+ text-overflow: ellipsis;
2667
+ position: relative;
2668
+ padding-right: 4px;
2669
+ &::after {
2670
+ position: absolute;
2671
+ right: 0;
2672
+ content: ":";
2673
+ }
2674
+ }
2675
+
2676
+ & .result {
2677
+ flex-grow: 1;
2678
+ overflow: hidden;
2679
+ text-overflow: ellipsis;
2680
+ }
2681
+
2682
+ & .status {
2683
+ margin-left: auto;
2684
+ align-items: center;
2685
+ display: flex;
2686
+ justify-content: flex-end;
2687
+ }
2688
+ `;
2689
+ const ws = w.div`
2690
+ display: flex;
2691
+ align-items: center;
2692
+ justify-content: flex-end;
2693
+ `, Cs = ({ item: e, valueKey: t }) => {
2694
+ const { label: n, value: r } = e;
2695
+ if (t === "label")
2696
+ return /* @__PURE__ */ o("div", { children: /* @__PURE__ */ o("b", { children: n }) });
2697
+ if (t === "value")
2698
+ return /* @__PURE__ */ o(ws, { children: r });
2699
+ }, xs = ({
2700
+ groupName: e,
2701
+ networkTestContainer: t
2702
+ }) => {
2703
+ var r;
2704
+ const { t: n } = S("connectivity");
2705
+ return ((r = t == null ? void 0 : t.models.getIndexByKey("group", e)) == null ? void 0 : r.map((s) => {
2706
+ const a = e === "interface", c = a ? s.results.map((i) => ({
2707
+ label: i.name,
2708
+ value: i.val
2709
+ })) : [];
2710
+ return a ? /* @__PURE__ */ o(
2711
+ _t,
2712
+ {
2713
+ CellRenderer: Cs,
2714
+ data: c,
2715
+ dataKeys: ["label", "value"],
2716
+ heading: s.name
2717
+ }
2718
+ ) : /* @__PURE__ */ o(
2719
+ oo,
2720
+ {
2721
+ leftLabel: n(`${s.name}`),
2722
+ rightLabel: s.inProgress ? n("inProgress") : s.timestamp ? s.passed ? n("success") : n("Fail") : n("testNotRun"),
2723
+ type: s.inProgress ? "InProgress" : s.timestamp ? s.passed ? "Success" : "Fail" : "Default",
2724
+ failureMessage: n("failureMessage"),
2725
+ lastSuccess: s == null ? void 0 : s.timestamp,
2726
+ lastSuccessful: n("lastSuccessful")
2727
+ },
2728
+ s.id
2729
+ );
2730
+ })) || [];
2731
+ }, pa = Rr(
2732
+ xs
2733
+ ), Ss = w.div`
2734
+ background-color: var(--ddk-generic-color-grey-80);
2735
+ color: var(--ddk-generic-color-grey-5);
2736
+ border-radius: 5px;
2737
+ padding: 4px;
2738
+ display: flex;
2739
+ align-items: center;
2740
+ justify-content: center;
2741
+ font-size: var(--ddk-generic-font-size-xx-small);
2742
+ `, ks = I(({ showAction: e = !0, trouble: t, showHolder: n }) => {
2743
+ var k;
2744
+ const { t: r } = S(["troubles"]), { model: s } = rt(), a = s == null ? void 0 : s.currentRole, [c, i] = x({}), { action: l, label: d, progress: p } = tt(t), u = t.resolvable ?? !1;
2745
+ M(() => {
2746
+ async function A() {
2747
+ if (t) {
2748
+ const P = await Nt(t);
2749
+ i(P);
2750
+ }
2751
+ }
2752
+ A();
2753
+ }, [t]);
2754
+ const { future: m } = pe(t), g = (k = t == null ? void 0 : t.data) != null && k.holderNames && t.data.holderNames.length > 0 ? /* @__PURE__ */ o(Ss, { children: t.data.holderNames[0] }) : null, v = (t == null ? void 0 : t.color) ?? "orange", C = (t == null ? void 0 : t.shouldDefer) ?? !1, b = (t == null ? void 0 : t.deferred) ?? !1;
2755
+ return /* @__PURE__ */ y($, { children: [
2756
+ /* @__PURE__ */ o(
2757
+ ro,
2758
+ {
2759
+ label: r(d, { context: a == null ? void 0 : a.toLowerCase(), data: c }),
2760
+ indicatorColor: v,
2761
+ buttonLabel: e ? b ? "Queued" : C ? "Queue" : r(l, { context: a, defaultValue: "" }) : void 0,
2762
+ date: t.createTime,
2763
+ prefix: n ? g : void 0,
2764
+ onAction: e && u && !b ? () => {
2765
+ t.resolve();
2766
+ } : void 0
2767
+ }
2768
+ ),
2769
+ m && /* @__PURE__ */ o(
2770
+ U,
2771
+ {
2772
+ title: r(p, { context: a }),
2773
+ future: b ? void 0 : m,
2774
+ failureMessage: r(`troubles.${t.type}.error`, {
2775
+ context: m != null && m.reason ? "reason" : void 0,
2776
+ data: {
2777
+ reason: m != null && m.reason ? `__troubles.errors.${m == null ? void 0 : m.reason}__` : void 0
2778
+ }
2779
+ })
2780
+ }
2781
+ )
2782
+ ] });
2783
+ }), ma = ({
2784
+ viewContainerId: e,
2785
+ extensionPointId: t,
2786
+ tabs: n,
2787
+ ...r
2788
+ }) => {
2789
+ const { getExtensions: s } = qe(), a = s(e), c = s(t).reduce((u, m) => (u[m.id] = m, u), {}), i = a.map((u) => u.data.namespace), { t: l } = S(["", ...new Set(i)]), d = a.map((u) => {
2790
+ const m = [...u.data.settings].map((g) => {
2791
+ const v = c[g];
2792
+ return /* @__PURE__ */ y(de, { children: [
2793
+ /* @__PURE__ */ o(ue, { children: l(`${v.data.namespace}:${v.data.title}`) }),
2794
+ /* @__PURE__ */ o(
2795
+ Le,
2796
+ {
2797
+ extension: t,
2798
+ module: g
2799
+ }
2800
+ )
2801
+ ] }, v.id);
2802
+ });
2803
+ return {
2804
+ id: u.id,
2805
+ label: l(`${u.data.namespace}:${u.data.title}`),
2806
+ content: /* @__PURE__ */ o(so, { children: m })
2807
+ };
2808
+ }), p = [...n, ...d];
2809
+ return /* @__PURE__ */ o(io, { ...r, tabs: p });
2810
+ }, st = I(
2811
+ ({ holder: e }) => {
2812
+ const { t } = S("common"), { componentModeOverride: n } = R(), r = n === "compact", { visibleTroubles: s, initialized: a } = Me(e), i = ((s == null ? void 0 : s.length) ?? 0) > 0, l = !!e.troublesByType.FlushTrouble, d = !!e.troublesByType.PrimeTrouble, p = !!e.troublesByType.PurgeTrouble, u = l ? e.troublesByType.FlushTrouble[0] : d ? e.troublesByType.PrimeTrouble[0] : p ? e.troublesByType.PurgeTrouble[0] : null, m = (u == null ? void 0 : u.shouldDefer) ?? !1, g = (u == null ? void 0 : u.deferred) ?? !1, [v, C] = Ae(e), b = L(
2813
+ (k) => {
2814
+ m ? u == null || u.resolve() : C(k);
2815
+ },
2816
+ [C, m, u]
2817
+ );
2818
+ return i && a && r ? /* @__PURE__ */ y($, { children: [
2819
+ l ? /* @__PURE__ */ o(
2820
+ T,
2821
+ {
2822
+ disabled: g,
2823
+ mode: "primary",
2824
+ onPointerDown: () => b("flush"),
2825
+ children: t("flush", { context: g ? "queued" : "" })
2826
+ }
2827
+ ) : p ? /* @__PURE__ */ o(
2828
+ T,
2829
+ {
2830
+ disabled: g,
2831
+ mode: "primary",
2832
+ onPointerDown: () => b("purge"),
2833
+ children: t("purge", { context: g ? "queued" : "" })
2834
+ }
2835
+ ) : d ? /* @__PURE__ */ o(
2836
+ T,
2837
+ {
2838
+ disabled: g,
2839
+ mode: "primary",
2840
+ onPointerDown: () => b("prime"),
2841
+ children: t("prime", { context: g ? "queued" : "" })
2842
+ }
2843
+ ) : null,
2844
+ v && /* @__PURE__ */ o(U, { ...v })
2845
+ ] }) : null;
2846
+ }
2847
+ ), Be = ({
2848
+ holder: e,
2849
+ filter: t
2850
+ }) => {
2851
+ const { componentModeOverride: n } = R(), r = n === "standard", { visibleTroubles: s, initialized: a } = Me(e), c = t ? s == null ? void 0 : s.filter(t) : s;
2852
+ return ((c == null ? void 0 : c.length) ?? 0) > 0 && a && (s == null ? void 0 : s.map((d) => /* @__PURE__ */ o(
2853
+ ks,
2854
+ {
2855
+ showAction: r,
2856
+ trouble: d
2857
+ },
2858
+ d.id
2859
+ )));
2860
+ }, ga = I(
2861
+ ({ holder: e }) => {
2862
+ const { t } = S("common"), [n, r] = Ae(e), [s, a] = x();
2863
+ M(() => {
2864
+ async function m() {
2865
+ if (e.ingredientId !== void 0) {
2866
+ const g = await e.resolveIntentVolume("CALIBRATE");
2867
+ a(Math.round(g.volume));
2868
+ }
2869
+ }
2870
+ m();
2871
+ }, [e, e.ingredientId]);
2872
+ const c = e.ingredientId !== void 0, i = s && s > 0, { holderExperience: l, setHolderExperience: d, currentExperienceId: p } = et(e);
2873
+ return c || p === "replace-line" ? /* @__PURE__ */ y($, { children: [
2874
+ /* @__PURE__ */ o(q, { contain: !0, children: /* @__PURE__ */ o(Be, { holder: e }) }),
2875
+ /* @__PURE__ */ y(_, { children: [
2876
+ /* @__PURE__ */ o(
2877
+ T,
2878
+ {
2879
+ disabled: !i,
2880
+ onPointerDown: () => r("calibrate"),
2881
+ children: i ? t("intentPour", {
2882
+ data: {
2883
+ volume: s
2884
+ }
2885
+ }) : t("calibrate")
2886
+ }
2887
+ ),
2888
+ /* @__PURE__ */ o(T, { onPointerDown: () => d("replace-line"), children: t("replace-line") }),
2889
+ /* @__PURE__ */ o($e, { disabled: !c, model: e }),
2890
+ /* @__PURE__ */ o(st, { holder: e })
2891
+ ] }),
2892
+ /* @__PURE__ */ o(Ye, { children: l }),
2893
+ n && /* @__PURE__ */ o(U, { ...n })
2894
+ ] }) : /* @__PURE__ */ o(Bn, { showCloseButton: !1, holder: e });
2895
+ }
2896
+ ), ha = I(
2897
+ ({ holder: e }) => {
2898
+ const { t } = S("common"), [n, r] = Ae(e), [s, a] = x();
2899
+ M(() => {
2900
+ async function l() {
2901
+ if (e.ingredientId !== void 0) {
2902
+ const d = await e.resolveIntentVolume("CALIBRATE");
2903
+ a(Math.round(d.volume));
2904
+ }
2905
+ }
2906
+ l();
2907
+ }, [e, e.ingredientId]);
2908
+ const c = e.ingredientId !== void 0, i = s && s > 0;
2909
+ return c ? /* @__PURE__ */ y($, { children: [
2910
+ /* @__PURE__ */ o(q, { contain: !0, children: /* @__PURE__ */ o(Be, { holder: e }) }),
2911
+ /* @__PURE__ */ y(_, { children: [
2912
+ /* @__PURE__ */ o(
2913
+ T,
2914
+ {
2915
+ disabled: !i,
2916
+ onPointerDown: () => r("calibrate"),
2917
+ children: i ? t("intentPour", {
2918
+ data: {
2919
+ volume: s
2920
+ }
2921
+ }) : t("calibrate")
2922
+ }
2923
+ ),
2924
+ /* @__PURE__ */ o($e, { disabled: !c, model: e }),
2925
+ /* @__PURE__ */ o(st, { holder: e })
2926
+ ] }),
2927
+ n && /* @__PURE__ */ o(U, { ...n })
2928
+ ] }) : /* @__PURE__ */ o(Bn, { showCloseButton: !1, holder: e });
2929
+ }
2930
+ ), fa = I(
2931
+ ({ holder: e }) => /* @__PURE__ */ y($, { children: [
2932
+ /* @__PURE__ */ o(Be, { holder: e }),
2933
+ /* @__PURE__ */ y(_, { children: [
2934
+ /* @__PURE__ */ o($e, { model: e }),
2935
+ /* @__PURE__ */ o(st, { holder: e })
2936
+ ] })
2937
+ ] })
2938
+ ), ba = I(
2939
+ ({ holder: e }) => {
2940
+ const { t } = S("common"), [n, r] = Ae(e), { holderExperience: s, setHolderExperience: a } = et(e);
2941
+ return /* @__PURE__ */ y($, { children: [
2942
+ /* @__PURE__ */ o(Be, { holder: e }),
2943
+ /* @__PURE__ */ y(_, { children: [
2944
+ /* @__PURE__ */ o($e, { model: e }),
2945
+ /* @__PURE__ */ o(T, { onPointerDown: () => r("high-flow-test"), children: t("high-flow-test") }),
2946
+ /* @__PURE__ */ o(T, { onPointerDown: () => r("low-flow-test"), children: t("low-flow-test") }),
2947
+ /* @__PURE__ */ o(T, { onPointerDown: () => a("diagnostics"), children: t("diagnostics") }),
2948
+ /* @__PURE__ */ o(T, { onPointerDown: () => a("calibrate"), children: t("calibrate") })
2949
+ ] }),
2950
+ /* @__PURE__ */ o(Ye, { children: s }),
2951
+ n && /* @__PURE__ */ o(U, { ...n })
2952
+ ] });
2953
+ }
2954
+ ), Ps = w.section`
2955
+ align-items: center;
2956
+ display: flex;
2957
+ flex-direction: column;
2958
+ gap: 32px;
2959
+ height: 100%;
2960
+ justify-content: space-between;
2961
+ `, Ts = w.div`
2962
+ display: flex;
2963
+ gap: 32px;
2964
+ flex-direction: column;
2965
+ align-items: center;
2966
+ padding: 32px;
2967
+ `, Is = w.div`
2968
+ display: flex;
2969
+ flex-direction: column;
2970
+ gap: 12px;
2971
+ text-align: center;
2972
+ `, va = ({ onComplete: e }) => {
2973
+ const { t } = S("reboot"), [n, r] = x(!1), { model: s } = nt(), { componentModeOverride: a } = R();
2974
+ return /* @__PURE__ */ y(
2975
+ te,
2976
+ {
2977
+ show: !n,
2978
+ onClose: () => r(!0),
2979
+ onClosed: e,
2980
+ contain: a !== "compact",
2981
+ children: [
2982
+ a === "compact" && /* @__PURE__ */ o(
2983
+ ne,
2984
+ {
2985
+ title: t("reboot"),
2986
+ showCloseButton: !0,
2987
+ onClose: () => r(!0),
2988
+ CloseButton: ao
2989
+ }
2990
+ ),
2991
+ /* @__PURE__ */ y(Ps, { children: [
2992
+ /* @__PURE__ */ y(Ts, { children: [
2993
+ /* @__PURE__ */ o(co, {}),
2994
+ /* @__PURE__ */ o(Is, { children: /* @__PURE__ */ o(Kt, { children: t("modal-heading", "Are you sure you want to reboot dispenser?") }) })
2995
+ ] }),
2996
+ /* @__PURE__ */ o(
2997
+ lo,
2998
+ {
2999
+ cancelLabel: `${t("cancel", "Cancel")}`,
3000
+ proceedLabel: `${t("reboot", "Reboot")}`,
3001
+ onCancel: () => r(!0),
3002
+ onProceed: () => s == null ? void 0 : s.completeReboot()
3003
+ }
3004
+ )
3005
+ ] })
3006
+ ]
3007
+ }
3008
+ );
3009
+ }, Ds = I(
3010
+ ({ holder: e, onComplete: t }) => {
3011
+ const { t: n } = S("replace-line"), [r, s] = x(), [a, c] = x();
3012
+ return M(() => {
3013
+ e.replaceLine().then(() => {
3014
+ s("success");
3015
+ });
3016
+ }, [e]), /* @__PURE__ */ o(jt, { show: r !== void 0, onClose: () => {
3017
+ if (a) {
3018
+ s(void 0);
3019
+ return;
3020
+ }
3021
+ t();
3022
+ }, children: r === "failure" ? /* @__PURE__ */ o(Te, { children: n(a || "unknownError") }) : r === "success" ? /* @__PURE__ */ o(Qe, { children: n("success") }) : null });
3023
+ }
3024
+ ), Ls = w.div`
3025
+ display: flex;
3026
+ flex-direction: column;
3027
+ overflow-y: auto;
3028
+ overflow-x: hidden;
3029
+ gap: 32px;
3030
+ height: 100%;
3031
+ `, As = I(
3032
+ ({ pump: e, onComplete: t }) => {
3033
+ const [n, r] = x(!1), { t: s } = S("replace-pump"), { componentModeOverride: a } = R(), [c, i] = x(), [l, d] = x(), [p, u] = x(), m = He(
3034
+ e,
3035
+ No.type
3036
+ ), g = e.name, v = L(
3037
+ (k) => {
3038
+ if (k !== void 0 && k.length === 0)
3039
+ return s("pump-calibration-length-error");
3040
+ },
3041
+ [s]
3042
+ ), C = L(async () => {
3043
+ if (c === void 0)
3044
+ return;
3045
+ const [k] = await m.replacePump(c);
3046
+ k ? (d("failure"), u(k)) : d("success");
3047
+ }, [m, c]), b = () => {
3048
+ if (p) {
3049
+ d(void 0);
3050
+ return;
3051
+ }
3052
+ r(!0);
3053
+ };
3054
+ return /* @__PURE__ */ y($, { children: [
3055
+ /* @__PURE__ */ o(
3056
+ te,
3057
+ {
3058
+ contain: a !== "compact",
3059
+ onClosed: t,
3060
+ show: !n,
3061
+ children: /* @__PURE__ */ y(Ls, { children: [
3062
+ /* @__PURE__ */ o(
3063
+ ne,
3064
+ {
3065
+ contain: a === "compact",
3066
+ showCloseButton: !0,
3067
+ title: g ? s("label-replace-pump", {
3068
+ label: g
3069
+ }) : s("replace-pump"),
3070
+ showOpenButton: !1,
3071
+ onClose: () => r(!0),
3072
+ CloseButton: a === "compact" ? le : void 0
3073
+ }
3074
+ ),
3075
+ /* @__PURE__ */ o(q, { align: "top", children: /* @__PURE__ */ o(
3076
+ ke,
3077
+ {
3078
+ isValid: v,
3079
+ label: s("enter-pump-calibration-code"),
3080
+ layout: "hex",
3081
+ value: c,
3082
+ onChange: (k) => {
3083
+ u(void 0), i(k);
3084
+ }
3085
+ }
3086
+ ) }),
3087
+ /* @__PURE__ */ o(_, { children: /* @__PURE__ */ o(
3088
+ T,
3089
+ {
3090
+ mode: "primary",
3091
+ disabled: !c || !!p,
3092
+ onPointerDown: C,
3093
+ children: s("replace-pump")
3094
+ }
3095
+ ) })
3096
+ ] })
3097
+ }
3098
+ ),
3099
+ /* @__PURE__ */ o(jt, { show: l !== void 0, onClose: b, children: l === "failure" ? /* @__PURE__ */ o(Te, { children: s(p || "unknownError") }) : l === "success" ? /* @__PURE__ */ o(Qe, { children: s("success") }) : null })
3100
+ ] });
3101
+ }
3102
+ ), Es = /^[0-9a-fA-F]+$/, Mt = (e) => Es.test(e), Fs = w.div`
3103
+ display: flex;
3104
+ flex-direction: column;
3105
+ overflow-y: auto;
3106
+ overflow-x: hidden;
3107
+ height: 100%;
3108
+ `, $s = I(
3109
+ ({ holder: e, onComplete: t }) => {
3110
+ const n = e.name, [r, s] = x(!1), { t: a } = S("rfid-override"), { componentModeOverride: c } = R(), [i, l] = x(), [d, p] = x(), [u, m] = x(), [g, v] = x(), [C, b] = x(), k = (f) => {
3111
+ if (f !== void 0 && f.length !== 12)
3112
+ return a("errIdLen");
3113
+ if (!Mt(f))
3114
+ return a("errIdFormat");
3115
+ }, A = (f) => {
3116
+ if (f !== void 0 && f.length !== 8)
3117
+ return a("errCodeLen");
3118
+ if (!Mt(f))
3119
+ return a("errCodeFormat");
3120
+ }, P = async () => {
3121
+ try {
3122
+ await e.overrideRfidCode({
3123
+ stickerId: i,
3124
+ stickerCode: d
3125
+ }), s(!0);
3126
+ } catch (f) {
3127
+ switch (f.type) {
3128
+ case "errIdLen":
3129
+ case "errIdFormat":
3130
+ v(f.type);
3131
+ break;
3132
+ case "errCodeLen":
3133
+ case "errCodeFormat":
3134
+ b(f.type);
3135
+ break;
3136
+ case "errVerify":
3137
+ case "errBadJson":
3138
+ m(f.type);
3139
+ break;
3140
+ }
3141
+ }
3142
+ };
3143
+ return /* @__PURE__ */ y(
3144
+ te,
3145
+ {
3146
+ contain: c !== "compact",
3147
+ mode: "maximized",
3148
+ onClosed: t,
3149
+ show: !r,
3150
+ children: [
3151
+ /* @__PURE__ */ o(
3152
+ ne,
3153
+ {
3154
+ contain: c === "compact",
3155
+ showCloseButton: !0,
3156
+ title: n ? a("label-rfid-override", {
3157
+ label: n
3158
+ }) : a("rfid-override"),
3159
+ showOpenButton: !1,
3160
+ onClose: () => s(!0),
3161
+ CloseButton: c === "compact" ? le : void 0
3162
+ }
3163
+ ),
3164
+ /* @__PURE__ */ y(Fs, { children: [
3165
+ /* @__PURE__ */ y(q, { align: "top", children: [
3166
+ /* @__PURE__ */ o(uo, { children: a("info") }),
3167
+ /* @__PURE__ */ o(
3168
+ ct,
3169
+ {
3170
+ isValid: k,
3171
+ description: g ? a(g) : void 0,
3172
+ label: a("enter-cartridge-id"),
3173
+ layout: "hex",
3174
+ value: i,
3175
+ onChange: (f) => {
3176
+ v(void 0), l(f);
3177
+ }
3178
+ }
3179
+ ),
3180
+ /* @__PURE__ */ o(
3181
+ ct,
3182
+ {
3183
+ isValid: A,
3184
+ description: C ? a(C) : void 0,
3185
+ label: a("enter-code"),
3186
+ layout: "hex",
3187
+ value: d,
3188
+ onChange: (f) => {
3189
+ b(void 0), p(f);
3190
+ }
3191
+ }
3192
+ )
3193
+ ] }),
3194
+ /* @__PURE__ */ o(_, { children: /* @__PURE__ */ o(
3195
+ T,
3196
+ {
3197
+ mode: "primary",
3198
+ disabled: !i || !d,
3199
+ onPointerDown: P,
3200
+ children: a("override")
3201
+ }
3202
+ ) }),
3203
+ u && /* @__PURE__ */ o(
3204
+ Vt,
3205
+ {
3206
+ onClose: () => m(void 0),
3207
+ renderFailure: /* @__PURE__ */ o(
3208
+ po,
3209
+ {
3210
+ heading: a("rfid-override"),
3211
+ message: a(u, { holder: e.name })
3212
+ }
3213
+ ),
3214
+ show: !0,
3215
+ status: "failure",
3216
+ title: "",
3217
+ value: 0
3218
+ }
3219
+ )
3220
+ ] })
3221
+ ]
3222
+ }
3223
+ );
3224
+ }
3225
+ ), ya = I(
3226
+ ({ setupPath: e }) => {
3227
+ const { model: t } = rt(), [n, r] = x(!1), [s] = Ro(), a = !!s.get("skipSetup"), c = mo();
3228
+ return M(() => {
3229
+ !n && (t != null && t.setupRequired) && (r(!0), a || c(e));
3230
+ }, [t == null ? void 0 : t.setupRequired, n, c, e, a]), null;
3231
+ }
3232
+ ), Ms = w.div`
3233
+ cursor: pointer;
3234
+ display: flex;
3235
+ gap: 8px;
3236
+ align-items: center;
3237
+ `, Bs = w.div`
3238
+ color: var(--ddk-generic-color-grey-100, #171717);
3239
+ font-size: var(--ddk-component-sidebar-font-size-medium);
3240
+ font-style: normal;
3241
+ font-weight: 600;
3242
+ line-height: 135%;
3243
+ letter-spacing: 0.44px;
3244
+ white-space: nowrap;
3245
+ overflow: hidden;
3246
+ `, Os = I(({ setupStepContainer: e, onStepSelected: t, ...n }) => {
3247
+ const { t: r, labelMap: s } = Mr({
3248
+ defaultNamespace: "setup",
3249
+ extensionPoint: Gt
3250
+ }), a = e == null ? void 0 : e.currentStep, c = (e == null ? void 0 : e.data.map((i) => /* @__PURE__ */ y(
3251
+ Ms,
3252
+ {
3253
+ onPointerDown: () => {
3254
+ e.setCurrentStep(i.id), t(i.id);
3255
+ },
3256
+ children: [
3257
+ /* @__PURE__ */ o(
3258
+ We,
3259
+ {
3260
+ size: "large",
3261
+ status: a === i ? "active" : i.complete ? "completed" : "pending"
3262
+ }
3263
+ ),
3264
+ /* @__PURE__ */ o(Bs, { children: r(s[i.name] ?? i.titleKey) })
3265
+ ]
3266
+ },
3267
+ i.id
3268
+ ))) || [];
3269
+ return /* @__PURE__ */ o(go, { ...n, children: c });
3270
+ }), wa = zr(Os), Ca = () => {
3271
+ const { model: e } = Wn();
3272
+ return (e == null ? void 0 : e.nodes) && e.nodes.map((t, n) => /* @__PURE__ */ o(ho, { name: t.nodeName, children: Object.keys(t.group).map((r, s) => /* @__PURE__ */ o("div", { children: /* @__PURE__ */ o(
3273
+ fo,
3274
+ {
3275
+ keyList: ["name", "version"],
3276
+ tableHead: r === "undefined" ? "" : r,
3277
+ tableData: t.group[r]
3278
+ }
3279
+ ) }, s)) }, n));
3280
+ }, Rs = j.createLogger({ name: "state-experience" });
3281
+ Rs.debug("state-experience component loaded");
3282
+ const Ns = w.div``, xa = I(
3283
+ () => {
3284
+ const { getExtensions: e } = Fe(), { model: t } = fn(), [n, r] = x(null);
3285
+ return M(() => ee(() => {
3286
+ const c = e(Ue).reduce(
3287
+ (u, m) => {
3288
+ const g = m;
3289
+ return u[g.data.stateKey ?? g.data.troubleType] = {
3290
+ extension: Ue,
3291
+ module: g.id,
3292
+ namespace: g.data.namespace,
3293
+ title: g.data.title,
3294
+ stateValue: g.data.stateValue ?? g.data.troubleType
3295
+ }, u;
3296
+ },
3297
+ {}
3298
+ ), i = t == null ? void 0 : t.activeTroubleType, l = t == null ? void 0 : t.activeTrouble, d = i ? c[i] : void 0, p = d ? /* @__PURE__ */ o(
3299
+ Le,
3300
+ {
3301
+ ...d,
3302
+ props: { trouble: l }
3303
+ }
3304
+ ) : null;
3305
+ r(p);
3306
+ }), [e, t]), /* @__PURE__ */ o(Ns, { children: n });
3307
+ }
3308
+ ), Vs = [0, 6], Hs = () => {
3309
+ const { regionModel: e } = X(), { model: t } = je(), [n, r] = x(/* @__PURE__ */ new Date()), s = n.getFullYear(), a = Rt({
3310
+ formatOptions: {
3311
+ dayFormat: "short",
3312
+ yearFormat: "long",
3313
+ monthFormat: "long",
3314
+ formatString: (e == null ? void 0 : e.selectedDateFormat) || "yyyy/MM/dd"
3315
+ },
3316
+ filterOptions: {
3317
+ daysOfWeekFilter: Vs,
3318
+ yearsRange: [s - 10, s + 10]
3319
+ }
3320
+ }), c = L(
3321
+ (d, p) => {
3322
+ switch (d) {
3323
+ case "year":
3324
+ a.dateActions.setYear(p.id);
3325
+ break;
3326
+ case "month":
3327
+ a.dateActions.setMonth(p.id);
3328
+ break;
3329
+ case "day":
3330
+ a.dateActions.setDay(p.id);
3331
+ break;
3332
+ }
3333
+ },
3334
+ [a.dateActions]
3335
+ ), i = L(() => {
3336
+ a.dateActions.setYear(n.getFullYear()), a.dateActions.setMonth(n.getMonth()), a.dateActions.setDay(n.getDate());
3337
+ }, [n, a.dateActions]), l = L(
3338
+ async ({ day: d, month: p, year: u }) => {
3339
+ a.dateActions.setYear(u), a.dateActions.setMonth(p), a.dateActions.setDay(d), await (t == null ? void 0 : t.updateSystemDate({
3340
+ day: d,
3341
+ month: p,
3342
+ year: u
3343
+ })), r(/* @__PURE__ */ new Date());
3344
+ },
3345
+ [a.dateActions, t]
3346
+ );
3347
+ return /* @__PURE__ */ o(
3348
+ Sr,
3349
+ {
3350
+ onDiscard: i,
3351
+ onChange: c,
3352
+ onSave: l
3353
+ }
3354
+ );
3355
+ }, _s = I(
3356
+ ({ ...e }) => {
3357
+ var i;
3358
+ const { regionModel: t } = X(), { model: n } = je(), { t: r } = S("common"), s = t == null ? void 0 : t.allTimeZones.map((l) => ({ id: l, label: l.replace(/_/g, " ") })), a = (i = t == null ? void 0 : t.timeZones) == null ? void 0 : i.map((l) => ({ id: l, label: l.replace(/_/g, " ") })), c = [
3359
+ {
3360
+ id: "region",
3361
+ label: r("suggested"),
3362
+ items: a || []
3363
+ },
3364
+ {
3365
+ id: "all",
3366
+ label: r("all"),
3367
+ items: s || []
3368
+ }
3369
+ ];
3370
+ return /* @__PURE__ */ o(
3371
+ bo,
3372
+ {
3373
+ ...e,
3374
+ label: r("time-zone"),
3375
+ data: c,
3376
+ displayValue: (n == null ? void 0 : n.timezone).replace("_", " "),
3377
+ loop: !1,
3378
+ selectedItemId: n == null ? void 0 : n.timezone,
3379
+ onSave: n == null ? void 0 : n.updateSystemTimezone,
3380
+ closeButtonLabel: r("close", "Close") || void 0,
3381
+ cancelButtonLabel: r("discard-changes", "Discard Changes") || void 0,
3382
+ proceedButtonLabel: r("save", "Save") || void 0
3383
+ }
3384
+ );
3385
+ }
3386
+ ), Sa = I(({ showHeading: e }) => {
3387
+ var g, v, C, b, k, A, P, f;
3388
+ const { t } = S("region"), { regionModel: n } = X(), { model: r } = je(), {
3389
+ amPmOptions: s,
3390
+ formattedTime: a,
3391
+ hourOptions: c,
3392
+ minuteOptions: i,
3393
+ setTime: l,
3394
+ time: d
3395
+ } = Ot(), p = d.getHours(), u = D(
3396
+ () => [
3397
+ {
3398
+ id: "hr",
3399
+ items: c,
3400
+ selectedItemId: p < 12 ? p : p - 12,
3401
+ loop: !0
3402
+ },
3403
+ {
3404
+ id: "min",
3405
+ items: i,
3406
+ selectedItemId: d.getMinutes(),
3407
+ loop: !0
3408
+ },
3409
+ {
3410
+ id: "ampm",
3411
+ items: s,
3412
+ selectedItemId: p < 12 ? "AM" : "PM"
3413
+ }
3414
+ ],
3415
+ [s, c, i, d, p]
3416
+ ), m = D(
3417
+ () => [
3418
+ {
3419
+ id: "hr",
3420
+ items: c,
3421
+ selectedItemId: p,
3422
+ loop: !0
3423
+ },
3424
+ {
3425
+ id: "min",
3426
+ items: i,
3427
+ selectedItemId: d.getMinutes(),
3428
+ loop: !0
3429
+ }
3430
+ ],
3431
+ [c, i, d, p]
3432
+ );
3433
+ return M(() => {
3434
+ const h = setInterval(() => {
3435
+ l(/* @__PURE__ */ new Date());
3436
+ }, 3e4);
3437
+ return () => {
3438
+ clearInterval(h);
3439
+ };
3440
+ }, [l]), /* @__PURE__ */ y(de, { children: [
3441
+ e && /* @__PURE__ */ o(ue, { children: t("time-settings", "Time Settings") }),
3442
+ ((g = n == null ? void 0 : n.dateFormatOptions) == null ? void 0 : g.length) && /* @__PURE__ */ o(
3443
+ Pe,
3444
+ {
3445
+ label: t("date-format", "Date Format"),
3446
+ value: (C = (v = n == null ? void 0 : n.dateFormatOptions) == null ? void 0 : v.find(
3447
+ (h) => h.format === n.selectedDateFormat
3448
+ )) == null ? void 0 : C.id,
3449
+ options: (b = n == null ? void 0 : n.dateFormatOptions) == null ? void 0 : b.map((h) => ({ label: h.format.toUpperCase(), ...h })),
3450
+ onChange: (h) => h && (n == null ? void 0 : n.setSelectedDateFormat(String(h)))
3451
+ }
3452
+ ),
3453
+ /* @__PURE__ */ o(Hs, {}),
3454
+ /* @__PURE__ */ o(_s, {}),
3455
+ ((k = n == null ? void 0 : n.timeFormatOptions) == null ? void 0 : k.length) && /* @__PURE__ */ o(
3456
+ Pe,
3457
+ {
3458
+ label: t("time-format", "Time Format"),
3459
+ value: (P = (A = n == null ? void 0 : n.timeFormatOptions) == null ? void 0 : A.find(
3460
+ (h) => h.format === n.selectedTimeFormat
3461
+ )) == null ? void 0 : P.id,
3462
+ options: (f = n == null ? void 0 : n.timeFormatOptions) == null ? void 0 : f.map((h) => ({ label: h != null && h.ampm ? "12 HR" : "24 HR", ...h })).reverse(),
3463
+ onChange: (h) => h && (n == null ? void 0 : n.setSelectedTimeFormat(String(h)))
3464
+ }
3465
+ ),
3466
+ /* @__PURE__ */ o(
3467
+ Ge,
3468
+ {
3469
+ data: n != null && n.is12HourTimeFormat ? u : m,
3470
+ icon: Wt,
3471
+ displayValue: a,
3472
+ label: t("current-time", "Current Time"),
3473
+ closeButtonLabel: t("close", "Close") || void 0,
3474
+ cancelButtonLabel: t("discard-changes", "Discard Changes") || void 0,
3475
+ proceedButtonLabel: t("save", "Save") || void 0,
3476
+ onSave: (h) => {
3477
+ const N = n != null && n.is12HourTimeFormat ? h.ampm === "AM" ? h.hr : h.hr + 12 : h.hr, V = h.min, G = new Date(d);
3478
+ G.setHours(N), G.setMinutes(V), l(G), r == null || r.updateSystemTime({
3479
+ hour: N,
3480
+ min: V,
3481
+ sec: 0
3482
+ });
3483
+ }
3484
+ }
3485
+ )
3486
+ ] });
3487
+ }), ka = mn(
3488
+ I(({ settings: e, showHeading: t }) => {
3489
+ const { t: n } = S("dispenser-profile");
3490
+ return /* @__PURE__ */ y(de, { children: [
3491
+ t && /* @__PURE__ */ o(ue, { children: n("water-settings", "Water Settings") }),
3492
+ /* @__PURE__ */ o(
3493
+ Ie,
3494
+ {
3495
+ label: n("plain-water", "Plain Water"),
3496
+ configProperty: e.hidePlainWaterBev
3497
+ }
3498
+ ),
3499
+ /* @__PURE__ */ o(
3500
+ Ie,
3501
+ {
3502
+ label: n("carbonated-water", "Carbonated Water"),
3503
+ configProperty: e.hideCarbWaterBev
3504
+ }
3505
+ )
3506
+ ] });
3507
+ })
3508
+ ), Pa = w.div`
3509
+ display: flex;
3510
+ flex-direction: column;
3511
+ gap: 12px;
3512
+ `, Ta = w.div`
3513
+ display: flex;
3514
+ flex-direction: row;
3515
+ gap: 12px;
3516
+ align-items: center;
3517
+ justify-content: center;
3518
+ `, Ia = w(T)`
3519
+ display: block;
3520
+ `;
3521
+ export {
3522
+ Ia as ActionButton,
3523
+ Pa as ActionContainer,
3524
+ Ta as ActionRow,
3525
+ oi as AgitationControlView,
3526
+ ri as AgitatorDetail,
3527
+ Zo as AgitatorModal,
3528
+ si as AgitatorSummary,
3529
+ wn as AnimationContext,
3530
+ $i as AnimationProvider,
3531
+ Bi as ApplicationComponentConfigurationProvider,
3532
+ Cn as ApplicationContext,
3533
+ Oi as ApplicationProvider,
3534
+ Vo as CalibrateAction,
3535
+ rr as CalibrateModal,
3536
+ cr as ConfigPropInfoCard,
3537
+ Ze as ConfigPropInputCard,
3538
+ ae as ConfigPropInputRangeCard,
3539
+ vr as ConfigPropMultiInputEnableCard,
3540
+ Je as ConfigPropPickerCard,
3541
+ ai as ConfigPropSingleInputEnableCard,
3542
+ yr as ConfigPropSwitchCard,
3543
+ Cr as ConfigPropTimePickerCard,
3544
+ Ie as ConfigPropToggleCard,
3545
+ xn as DashboardOperationsContext,
3546
+ Ri as DashboardOperationsProvider,
3547
+ Sr as DatePickerCard,
3548
+ kr as DiagnosticsModal,
3549
+ Sn as DispenserInfoContext,
3550
+ Vi as DispenserInfoProvider,
3551
+ Ai as DispenserInfoSettings,
3552
+ Kr as DispenserSerialNumber,
3553
+ Ei as DispenserSettings,
3554
+ Y as EXTENSION_PLUGIN_VISIBILITY,
3555
+ Gr as EnjoyByDate,
3556
+ Te as FailureMessage,
3557
+ Ho as Fixed45FlowTestAction,
3558
+ _o as FlushAction,
3559
+ U as FutureProgressBar,
3560
+ qo as GenericTroubleAction,
3561
+ Fi as HardwareInfo,
3562
+ zo as HighFlowTestAction,
3563
+ Uo as HoldToPourAction,
3564
+ $e as HoldToPourButton,
3565
+ st as HolderActions,
3566
+ ns as HolderCard,
3567
+ an as HolderContentContext,
3568
+ fi as HolderContentProvider,
3569
+ Mn as HolderGroup,
3570
+ aa as HolderGroupView,
3571
+ Be as HolderNotifications,
3572
+ ys as IceAgitatorSettings,
3573
+ la as IceAgitatorSettingsContainer,
3574
+ da as IceAgitatorSettingsView,
3575
+ kn as IngredientSummaryContext,
3576
+ _i as IngredientSummaryProvider,
3577
+ z as IntentAction,
3578
+ xi as KosPluginExtensionManager,
3579
+ ga as LFCVPumpCard,
3580
+ ua as LocalizationSettings,
3581
+ Ko as LowFlowTestAction,
3582
+ ha as MSVPumpCard,
3583
+ Wo as MSVResetAction,
3584
+ Pn as MacroAssignmentContext,
3585
+ Ui as MacroAssignmentProvider,
3586
+ ds as MacroHolderCard,
3587
+ ca as MacroHolderGroupView,
3588
+ Bn as MacroSetupStepCard,
3589
+ jo as ManualOverrideAction,
3590
+ In as NetworkTestContainerContext,
3591
+ Gi as NetworkTestContainerProvider,
3592
+ Tn as NetworkTestContext,
3593
+ ji as NetworkTestProvider,
3594
+ pa as NetworkTestResults,
3595
+ ks as NotificationCardView,
3596
+ Hr as PluginExtensionManager,
3597
+ ma as PluginTabs,
3598
+ Go as PrimeAction,
3599
+ Xo as PurgeAction,
3600
+ $s as RFIDOverride,
3601
+ Dn as RebootContext,
3602
+ Yi as RebootProvider,
3603
+ va as RebootView,
3604
+ Ds as ReplaceLine,
3605
+ As as ReplacePump,
3606
+ Ln as SettingsContext,
3607
+ Qi as SettingsProvider,
3608
+ ya as SetupRequired,
3609
+ wa as SetupSidebar,
3610
+ Os as SetupSidebarComp,
3611
+ En as SetupStepContainerContext,
3612
+ ta as SetupStepContainerProvider,
3613
+ An as SetupStepContext,
3614
+ Ji as SetupStepProvider,
3615
+ Ca as Software,
3616
+ ar as StagedChangesProvider,
3617
+ xa as StateExperience,
3618
+ Ms as StepItem,
3619
+ Bs as StepTitle,
3620
+ Qe as SuccessMessage,
3621
+ Hs as SystemDatePickerCard,
3622
+ ti as TROUBLE_PRIME,
3623
+ ni as TROUBLE_PURGE,
3624
+ wr as TimePickerCard,
3625
+ Sa as TimeSettings,
3626
+ _s as TimeZonePickerCard,
3627
+ Yo as TroubleAction,
3628
+ $n as UtilitiesContainerContext,
3629
+ sa as UtilitiesContainerProvider,
3630
+ Fn as UtilitiesContext,
3631
+ oa as UtilitiesProvider,
3632
+ fa as ValveCard,
3633
+ ba as WaterPumpCard,
3634
+ ka as WaterSettings,
3635
+ Ci as pumpTypeFactory,
3636
+ _r as troubleLabelByType,
3637
+ tt as troubleLabelFactory,
3638
+ qt as useAgitationControl,
3639
+ on as useAnimation,
3640
+ Mi as useAnimationContext,
3641
+ Ee as useApplication,
3642
+ rt as useApplicationContext,
3643
+ Ar as useCarbWater,
3644
+ ci as useCombinedActions,
3645
+ Er as useCopyLogs,
3646
+ rn as useDashboardOperations,
3647
+ Ni as useDashboardOperationsContext,
3648
+ sn as useDispenserInfo,
3649
+ Hi as useDispenserInfoContext,
3650
+ $r as useDoor,
3651
+ pe as useFutureContainer,
3652
+ cn as useHolderContent,
3653
+ et as useHolderExperience,
3654
+ ln as useIngredientSummary,
3655
+ zi as useIngredientSummaryContext,
3656
+ dn as useMacroAssignment,
3657
+ Ki as useMacroAssignmentContext,
3658
+ un as useNetworkTest,
3659
+ pn as useNetworkTestContainer,
3660
+ Xi as useNetworkTestContainerContext,
3661
+ Wi as useNetworkTestContext,
3662
+ Nr as useNutritiveSweetener,
3663
+ Vr as usePlainWater,
3664
+ Fe as usePluginExtensions,
3665
+ Ae as usePumpAction,
3666
+ nt as useReboot,
3667
+ qi as useRebootContext,
3668
+ ot as useSettings,
3669
+ Zi as useSettingsContext,
3670
+ gn as useSetupStep,
3671
+ hn as useSetupStepContainer,
3672
+ na as useSetupStepContainerContext,
3673
+ ea as useSetupStepContext,
3674
+ tn as useStagedChanges,
3675
+ Ur as useStart,
3676
+ li as useTroubleAction,
3677
+ fn as useTroubleActionState,
3678
+ Ii as useTroubleVisibility,
3679
+ bn as useUtilities,
3680
+ vn as useUtilitiesContainer,
3681
+ ia as useUtilitiesContainerContext,
3682
+ ra as useUtilitiesContext,
3683
+ Mr as useViewExtensions,
3684
+ Me as useVisibleTroubles,
3685
+ di as withAgitationControl,
3686
+ Lr as withAnimation,
3687
+ ui as withApplication,
3688
+ pi as withCarbWater,
3689
+ mi as withCopyLogs,
3690
+ gi as withDashboardOperations,
3691
+ Fr as withDispenserInfo,
3692
+ hi as withDoor,
3693
+ bi as withIngredientSummary,
3694
+ Or as withMacroAssignment,
3695
+ vi as withNetworkTest,
3696
+ Rr as withNetworkTestContainer,
3697
+ yi as withNutritiveSweetener,
3698
+ wi as withPlainWater,
3699
+ Si as withReboot,
3700
+ mn as withSettings,
3701
+ ki as withSetupStep,
3702
+ zr as withSetupStepContainer,
3703
+ ii as withStagedChanges,
3704
+ Pi as withStart,
3705
+ Ti as withTroubleAction,
3706
+ Di as withUtilities,
3707
+ Li as withUtilitiesContainer
3708
+ };