@ampath/esm-dha-workflow-app 4.0.0-next.45 → 4.0.0-next.453

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 (973) hide show
  1. package/README.md +47 -0
  2. package/dist/1100.js +1 -0
  3. package/dist/1100.js.map +1 -0
  4. package/dist/{197.js → 1197.js} +1 -1
  5. package/dist/1371.js +2 -0
  6. package/dist/1371.js.LICENSE.txt +282 -0
  7. package/dist/1371.js.map +1 -0
  8. package/dist/1435.js +1 -0
  9. package/dist/1435.js.map +1 -0
  10. package/dist/1673.js +1 -0
  11. package/dist/1673.js.map +1 -0
  12. package/dist/1843.js +1 -0
  13. package/dist/1843.js.map +1 -0
  14. package/dist/1931.js +1 -0
  15. package/dist/1931.js.map +1 -0
  16. package/dist/2257.js +2 -0
  17. package/dist/{246.js.LICENSE.txt → 2257.js.LICENSE.txt} +1 -10
  18. package/dist/2257.js.map +1 -0
  19. package/dist/2272.js +2 -0
  20. package/dist/2272.js.map +1 -0
  21. package/dist/2383.js +1 -0
  22. package/dist/2383.js.map +1 -0
  23. package/dist/2439.js +1 -0
  24. package/dist/2439.js.map +1 -0
  25. package/dist/2535.js +1 -0
  26. package/dist/2535.js.map +1 -0
  27. package/dist/2592.js +1 -0
  28. package/dist/2592.js.map +1 -0
  29. package/dist/2632.js +1 -0
  30. package/dist/2632.js.map +1 -0
  31. package/dist/2635.js +1 -0
  32. package/dist/2635.js.map +1 -0
  33. package/dist/2663.js +1 -0
  34. package/dist/2663.js.map +1 -0
  35. package/dist/2687.js +1 -0
  36. package/dist/2687.js.map +1 -0
  37. package/dist/2802.js +1 -0
  38. package/dist/2802.js.map +1 -0
  39. package/dist/2808.js +1 -0
  40. package/dist/2808.js.map +1 -0
  41. package/dist/282.js +1 -1
  42. package/dist/282.js.LICENSE.txt +3 -3
  43. package/dist/282.js.map +1 -1
  44. package/dist/2848.js +1 -0
  45. package/dist/2848.js.map +1 -0
  46. package/dist/2904.js +1 -0
  47. package/dist/2904.js.map +1 -0
  48. package/dist/3.js +1 -0
  49. package/dist/3.js.map +1 -0
  50. package/dist/3016.js +1 -0
  51. package/dist/3016.js.map +1 -0
  52. package/dist/3041.js +1 -0
  53. package/dist/3041.js.map +1 -0
  54. package/dist/3099.js +1 -0
  55. package/dist/3182.js +1 -0
  56. package/dist/3182.js.map +1 -0
  57. package/dist/3184.js +2 -0
  58. package/dist/3184.js.map +1 -0
  59. package/dist/3196.js +1 -0
  60. package/dist/3196.js.map +1 -0
  61. package/dist/3242.js +1 -0
  62. package/dist/3242.js.map +1 -0
  63. package/dist/3270.js +1 -0
  64. package/dist/3270.js.map +1 -0
  65. package/dist/3288.js +1 -0
  66. package/dist/3288.js.map +1 -0
  67. package/dist/3311.js +2 -0
  68. package/dist/3311.js.LICENSE.txt +9 -0
  69. package/dist/3311.js.map +1 -0
  70. package/dist/3558.js +1 -0
  71. package/dist/3558.js.map +1 -0
  72. package/dist/3612.js +1 -0
  73. package/dist/3612.js.map +1 -0
  74. package/dist/3636.js +1 -0
  75. package/dist/3636.js.map +1 -0
  76. package/dist/3654.js +1 -0
  77. package/dist/3654.js.map +1 -0
  78. package/dist/3794.js +1 -0
  79. package/dist/3794.js.map +1 -0
  80. package/dist/3816.js +1 -0
  81. package/dist/3816.js.map +1 -0
  82. package/dist/3897.js +1 -0
  83. package/dist/3897.js.map +1 -0
  84. package/dist/3949.js +1 -0
  85. package/dist/3949.js.map +1 -0
  86. package/dist/4055.js +1 -0
  87. package/dist/408.js +1 -0
  88. package/dist/408.js.map +1 -0
  89. package/dist/409.js +1 -0
  90. package/dist/409.js.map +1 -0
  91. package/dist/411.js +1 -0
  92. package/dist/411.js.map +1 -0
  93. package/dist/4225.js +1 -0
  94. package/dist/4225.js.map +1 -0
  95. package/dist/4300.js +1 -0
  96. package/dist/{335.js → 4335.js} +1 -1
  97. package/dist/4353.js +1 -0
  98. package/dist/4353.js.map +1 -0
  99. package/dist/4399.js +1 -0
  100. package/dist/4399.js.map +1 -0
  101. package/dist/4457.js +1 -0
  102. package/dist/4457.js.map +1 -0
  103. package/dist/4535.js +1 -0
  104. package/dist/4535.js.map +1 -0
  105. package/dist/4569.js +1 -0
  106. package/dist/4569.js.map +1 -0
  107. package/dist/{652.js → 4652.js} +1 -1
  108. package/dist/474.js +1 -0
  109. package/dist/474.js.map +1 -0
  110. package/dist/4993.js +1 -0
  111. package/dist/4993.js.map +1 -0
  112. package/dist/5006.js +1 -0
  113. package/dist/5006.js.map +1 -0
  114. package/dist/5119.js +1 -0
  115. package/dist/5119.js.map +1 -0
  116. package/dist/5138.js +1 -0
  117. package/dist/5138.js.map +1 -0
  118. package/dist/5179.js +1 -0
  119. package/dist/5179.js.map +1 -0
  120. package/dist/5244.js +1 -0
  121. package/dist/5244.js.map +1 -0
  122. package/dist/5353.js +1 -0
  123. package/dist/5353.js.map +1 -0
  124. package/dist/5377.js +1 -0
  125. package/dist/5377.js.map +1 -0
  126. package/dist/5413.js +1 -0
  127. package/dist/5413.js.map +1 -0
  128. package/dist/5422.js +1 -0
  129. package/dist/5422.js.map +1 -0
  130. package/dist/5500.js +1 -0
  131. package/dist/5500.js.map +1 -0
  132. package/dist/5754.js +1 -0
  133. package/dist/5754.js.map +1 -0
  134. package/dist/5771.js +1 -0
  135. package/dist/5771.js.map +1 -0
  136. package/dist/5805.js +1 -0
  137. package/dist/5805.js.map +1 -0
  138. package/dist/6048.js +1 -0
  139. package/dist/6048.js.map +1 -0
  140. package/dist/6055.js +1 -0
  141. package/dist/6055.js.map +1 -0
  142. package/dist/6206.js +1 -0
  143. package/dist/6206.js.map +1 -0
  144. package/dist/6279.js +1 -0
  145. package/dist/6279.js.map +1 -0
  146. package/dist/6399.js +1 -0
  147. package/dist/6399.js.map +1 -0
  148. package/dist/6540.js +2 -0
  149. package/dist/6540.js.map +1 -0
  150. package/dist/6606.js +1 -0
  151. package/dist/6606.js.map +1 -0
  152. package/dist/6682.js +1 -0
  153. package/dist/6682.js.map +1 -0
  154. package/dist/6802.js +1 -0
  155. package/dist/6802.js.map +1 -0
  156. package/dist/7024.js +1 -0
  157. package/dist/7024.js.map +1 -0
  158. package/dist/72.js +1 -0
  159. package/dist/72.js.map +1 -0
  160. package/dist/7332.js +1 -0
  161. package/dist/7332.js.map +1 -0
  162. package/dist/7369.js +1 -0
  163. package/dist/7369.js.map +1 -0
  164. package/dist/7593.js +1 -0
  165. package/dist/7593.js.map +1 -0
  166. package/dist/7694.js +1 -0
  167. package/dist/7694.js.map +1 -0
  168. package/dist/7698.js +1 -0
  169. package/dist/7698.js.map +1 -0
  170. package/dist/7734.js +1 -0
  171. package/dist/7734.js.map +1 -0
  172. package/dist/774.js +1 -0
  173. package/dist/774.js.map +1 -0
  174. package/dist/7852.js +1 -0
  175. package/dist/7852.js.map +1 -0
  176. package/dist/8137.js +1 -0
  177. package/dist/8137.js.map +1 -0
  178. package/dist/8167.js +1 -0
  179. package/dist/8167.js.map +1 -0
  180. package/dist/818.js +1 -0
  181. package/dist/818.js.map +1 -0
  182. package/dist/8250.js +1 -0
  183. package/dist/8250.js.map +1 -0
  184. package/dist/8308.js +1 -0
  185. package/dist/8308.js.map +1 -0
  186. package/dist/8735.js +1 -0
  187. package/dist/8735.js.map +1 -0
  188. package/dist/8947.js +1 -0
  189. package/dist/8947.js.map +1 -0
  190. package/dist/8961.js +1 -0
  191. package/dist/8961.js.map +1 -0
  192. package/dist/902.js +1 -0
  193. package/dist/902.js.map +1 -0
  194. package/dist/9062.js +1 -0
  195. package/dist/9062.js.map +1 -0
  196. package/dist/9134.js +1 -0
  197. package/dist/9134.js.map +1 -0
  198. package/dist/9249.js +1 -0
  199. package/dist/9249.js.map +1 -0
  200. package/dist/9418.js +2 -0
  201. package/dist/9418.js.LICENSE.txt +1 -0
  202. package/dist/9418.js.map +1 -0
  203. package/dist/9429.js +1 -0
  204. package/dist/9429.js.map +1 -0
  205. package/dist/9442.js +1 -0
  206. package/dist/9442.js.map +1 -0
  207. package/dist/961.js +1 -1
  208. package/dist/961.js.map +1 -1
  209. package/dist/968.js +1 -0
  210. package/dist/968.js.map +1 -0
  211. package/dist/9709.js +1 -0
  212. package/dist/9709.js.map +1 -0
  213. package/dist/9768.js +1 -0
  214. package/dist/9768.js.map +1 -0
  215. package/dist/9770.js +1 -0
  216. package/dist/9770.js.map +1 -0
  217. package/dist/9879.js +1 -0
  218. package/dist/9879.js.map +1 -0
  219. package/dist/9974.js +1 -0
  220. package/dist/9974.js.map +1 -0
  221. package/dist/esm-dha-workflow-app.js +1 -1
  222. package/dist/esm-dha-workflow-app.js.buildmanifest.json +2276 -227
  223. package/dist/esm-dha-workflow-app.js.map +1 -1
  224. package/dist/main.js +1 -1
  225. package/dist/main.js.map +1 -1
  226. package/dist/routes.json +1 -1
  227. package/jest.config.js +4 -0
  228. package/local-config.json +9 -0
  229. package/package.json +29 -11
  230. package/src/admissions/admission-request-list/admission-request-list.scss +0 -0
  231. package/src/admissions/admission-request-list/admission-request-list.tsx +263 -0
  232. package/src/admissions/admissions-dashboard.component.scss +15 -0
  233. package/src/admissions/admissions-dashboard.component.tsx +277 -0
  234. package/src/admissions/admissions.resource.ts +233 -0
  235. package/src/admissions/admitted-list/admitted-patients-list.tsx +268 -0
  236. package/src/admissions/awaiting-discharge-list/awaiting-discharge-list.tsx +197 -0
  237. package/src/admissions/bed-assigment-request/bed-assignment-request-list.tsx +134 -0
  238. package/src/admissions/constants/index.ts +33 -0
  239. package/src/admissions/discharged-list/discharged-list.scss +0 -0
  240. package/src/admissions/discharged-list/discharged-list.tsx +67 -0
  241. package/src/admissions/form-entry-workspace/form-entry-workspace.tsx +62 -0
  242. package/src/admissions/inpatient/admission-history/patient-admission-history.tsx +76 -0
  243. package/src/admissions/inpatient/admission-requests/patient-admission-requests.scss +19 -0
  244. package/src/admissions/inpatient/admission-requests/patient-admission-requests.tsx +72 -0
  245. package/src/admissions/inpatient/inpatient-admissions.component.scss +7 -0
  246. package/src/admissions/inpatient/inpatient-admissions.component.tsx +46 -0
  247. package/src/admissions/modal/add-bill-items/add-bill-items.modal.scss +17 -0
  248. package/src/admissions/modal/add-bill-items/add-bill-items.modal.tsx +220 -0
  249. package/src/admissions/modal/admit-elsewhere/admit-elsewhere.modal.scss +23 -0
  250. package/src/admissions/modal/admit-elsewhere/admit-elsewhere.modal.tsx +156 -0
  251. package/src/admissions/modal/admit-patient/admit-patient.modal.scss +0 -0
  252. package/src/admissions/modal/admit-patient/admit-patient.modal.tsx +111 -0
  253. package/src/admissions/modal/bed-swap/bed-swap.modal.scss +0 -0
  254. package/src/admissions/modal/bed-swap/bed-swap.modal.tsx +102 -0
  255. package/src/admissions/modal/cancel-admission-request/cancel-admission-request.scss +11 -0
  256. package/src/admissions/modal/cancel-admission-request/cancel-admission-request.tsx +105 -0
  257. package/src/admissions/modal/discharge/discharge-patient.modal.scss +13 -0
  258. package/src/admissions/modal/discharge/discharge-patient.modal.tsx +86 -0
  259. package/src/admissions/types/index.ts +263 -0
  260. package/src/appointments/appointments.component.scss +6 -0
  261. package/src/appointments/appointments.component.tsx +8 -1
  262. package/src/billing/admin/claims/claims-list.component.scss +13 -0
  263. package/src/billing/admin/claims/claims-list.component.tsx +163 -0
  264. package/src/billing/admin/claims-admin-dashboard.component.scss +0 -0
  265. package/src/billing/admin/claims-admin-dashboard.component.tsx +32 -0
  266. package/src/billing/api/billing.api.ts +139 -0
  267. package/src/billing/billing-claims.resource.ts +1112 -0
  268. package/src/billing/billing-dashboard-link.component.tsx +31 -0
  269. package/src/billing/billing-dashboard-reset.ts +27 -0
  270. package/src/billing/billing-root.tsx +37 -0
  271. package/src/billing/dashboard/billingDashboard.component.scss +0 -0
  272. package/src/billing/dashboard/billingDashboard.component.tsx +25 -0
  273. package/src/billing/dashboard/v2/active-visits/active-visits.component.tsx +257 -0
  274. package/src/billing/dashboard/v2/active-visits/active-visits.resource.ts +85 -0
  275. package/src/billing/dashboard/v2/active-visits/active-visits.scss +15 -0
  276. package/src/billing/dashboard/v2/active-visits.component.tsx +102 -0
  277. package/src/billing/dashboard/v2/admissions/admission-requests-tab.component.tsx +79 -0
  278. package/src/billing/dashboard/v2/billing-and-claims-patient-chart.component.tsx +52 -0
  279. package/src/billing/dashboard/v2/billing-claims-dashboard.component.scss +221 -0
  280. package/src/billing/dashboard/v2/billing-claims-dashboard.component.tsx +342 -0
  281. package/src/billing/dashboard/v2/cash-checklist/bill-document.component.scss +90 -0
  282. package/src/billing/dashboard/v2/cash-checklist/bill-document.component.tsx +101 -0
  283. package/src/billing/dashboard/v2/cash-checklist/cash-checklist.component.scss +199 -0
  284. package/src/billing/dashboard/v2/cash-checklist/cash-checklist.component.tsx +361 -0
  285. package/src/billing/dashboard/v2/cash-checklist/cash-checklist.resource.ts +239 -0
  286. package/src/billing/dashboard/v2/cash-checklist/payment-drawer.component.scss +246 -0
  287. package/src/billing/dashboard/v2/cash-checklist/payment-drawer.component.tsx +182 -0
  288. package/src/billing/dashboard/v2/claim-statuses.ts +143 -0
  289. package/src/billing/dashboard/v2/claim-visits/claim-diagnosis-details/claim-diagnosis-details.component.scss +0 -0
  290. package/src/billing/dashboard/v2/claim-visits/claim-diagnosis-details/claim-diagnosis-details.component.tsx +35 -0
  291. package/src/billing/dashboard/v2/claim-visits/claim-diagnosis-details/claim-diagnosis-panel.component.scss +67 -0
  292. package/src/billing/dashboard/v2/claim-visits/claim-diagnosis-details/claim-diagnosis-panel.component.tsx +90 -0
  293. package/src/billing/dashboard/v2/claim-visits/claim-doctors/claim-doctors.scss +28 -0
  294. package/src/billing/dashboard/v2/claim-visits/claim-doctors/claim-doctors.tsx +36 -0
  295. package/src/billing/dashboard/v2/claim-visits/claim-history/claim-history.component.scss +119 -0
  296. package/src/billing/dashboard/v2/claim-visits/claim-history/claim-history.component.tsx +198 -0
  297. package/src/billing/dashboard/v2/claim-visits/claim-intervention-details/claim-intervention-details.component.scss +5 -0
  298. package/src/billing/dashboard/v2/claim-visits/claim-intervention-details/claim-intervention-details.component.tsx +160 -0
  299. package/src/billing/dashboard/v2/claim-visits/claim-intervention-details/claim-intervention-panel.component.scss +105 -0
  300. package/src/billing/dashboard/v2/claim-visits/claim-intervention-details/claim-intervention-panel.component.tsx +184 -0
  301. package/src/billing/dashboard/v2/claim-visits/claim-intervention-details/intervention-attachments.component.scss +161 -0
  302. package/src/billing/dashboard/v2/claim-visits/claim-intervention-details/intervention-attachments.component.tsx +328 -0
  303. package/src/billing/dashboard/v2/claim-visits/claim-invoice-details/claim-invoice-details.component.tsx +96 -0
  304. package/src/billing/dashboard/v2/claim-visits/claim-invoice-details/claim-invoice-document.component.tsx +236 -0
  305. package/src/billing/dashboard/v2/claim-visits/claim-invoice-details/claim-invoice-panel.component.scss +98 -0
  306. package/src/billing/dashboard/v2/claim-visits/claim-invoice-details/claim-invoice-panel.component.tsx +293 -0
  307. package/src/billing/dashboard/v2/claim-visits/claim-invoice-line-details/claim-invoice-line-details.component.scss +133 -0
  308. package/src/billing/dashboard/v2/claim-visits/claim-invoice-line-details/claim-invoice-line-details.component.tsx +217 -0
  309. package/src/billing/dashboard/v2/claim-visits/claim-list/claim-visits.component.scss +28 -0
  310. package/src/billing/dashboard/v2/claim-visits/claim-list/claim-visits.component.tsx +315 -0
  311. package/src/billing/dashboard/v2/claim-visits/claim-visit-details/claim-details-by-token.component.tsx +150 -0
  312. package/src/billing/dashboard/v2/claim-visits/claim-visit-details/claim-details-page.component.scss +13 -0
  313. package/src/billing/dashboard/v2/claim-visits/claim-visit-details/claim-details-page.component.tsx +116 -0
  314. package/src/billing/dashboard/v2/claim-visits/claim-visit-details/claim-visit-details.component.scss +338 -0
  315. package/src/billing/dashboard/v2/claim-visits/claim-visit-details/claim-visit-details.component.tsx +616 -0
  316. package/src/billing/dashboard/v2/claim-visits/modal/claim-doctors/add-claim-doctor/add-claim-doctor.modal.scss +5 -0
  317. package/src/billing/dashboard/v2/claim-visits/modal/claim-doctors/add-claim-doctor/add-claim-doctor.modal.tsx +49 -0
  318. package/src/billing/dashboard/v2/claim-visits/modal/claim-visit-details/claim-visit-details.modal.scss +17 -0
  319. package/src/billing/dashboard/v2/claim-visits/modal/claim-visit-details/claim-visit-details.modal.tsx +56 -0
  320. package/src/billing/dashboard/v2/claim-visits/modal/close-claim/close-claim.modal.scss +0 -0
  321. package/src/billing/dashboard/v2/claim-visits/modal/close-claim/close-claim.modal.tsx +129 -0
  322. package/src/billing/dashboard/v2/claim-visits/modal/submit-claim/submit-claim.modal.tsx +280 -0
  323. package/src/billing/dashboard/v2/claim-visits/shared/_empty-state.scss +28 -0
  324. package/src/billing/dashboard/v2/claim-visits/shared/record-cards.component.scss +298 -0
  325. package/src/billing/dashboard/v2/claim-visits/shared/record-cards.component.tsx +252 -0
  326. package/src/billing/dashboard/v2/claim-visits/shared/record-details.workspace.scss +42 -0
  327. package/src/billing/dashboard/v2/claim-visits/shared/record-details.workspace.tsx +67 -0
  328. package/src/billing/dashboard/v2/claim-visits/shared/record-table.component.scss +61 -0
  329. package/src/billing/dashboard/v2/claim-visits/shared/record-table.component.tsx +150 -0
  330. package/src/billing/dashboard/v2/claim-visits/switch-intervention/switch-intervention.resource.ts +51 -0
  331. package/src/billing/dashboard/v2/claim-visits/switch-intervention/switch-intervention.workspace.scss +191 -0
  332. package/src/billing/dashboard/v2/claim-visits/switch-intervention/switch-intervention.workspace.tsx +660 -0
  333. package/src/billing/dashboard/v2/claim-workspace/claim-workspace.component.scss +595 -0
  334. package/src/billing/dashboard/v2/claim-workspace/claim-workspace.component.tsx +810 -0
  335. package/src/billing/dashboard/v2/claim-workspace/claim-workspace.resource.ts +282 -0
  336. package/src/billing/dashboard/v2/claims-accounting/bill-utils.ts +134 -0
  337. package/src/billing/dashboard/v2/claims-accounting/claim-detail.component.tsx +346 -0
  338. package/src/billing/dashboard/v2/claims-accounting/claims-accounting.component.scss +546 -0
  339. package/src/billing/dashboard/v2/claims-accounting/claims-accounting.component.tsx +206 -0
  340. package/src/billing/dashboard/v2/claims-accounting/claims-accounting.resource.ts +337 -0
  341. package/src/billing/dashboard/v2/claims-accounting/invoice-document.component.scss +90 -0
  342. package/src/billing/dashboard/v2/claims-accounting/invoice-document.component.tsx +90 -0
  343. package/src/billing/dashboard/v2/claims-accounting/remittances.component.tsx +169 -0
  344. package/src/billing/dashboard/v2/claims-accounting/remittances.resource.ts +46 -0
  345. package/src/billing/dashboard/v2/claims-accounting/status-meta.ts +25 -0
  346. package/src/billing/dashboard/v2/clearance/cash-patients.scss +18 -0
  347. package/src/billing/dashboard/v2/clearance/cash.component.tsx +145 -0
  348. package/src/billing/dashboard/v2/clearance/clearance.component.scss +84 -0
  349. package/src/billing/dashboard/v2/clearance/clearance.component.tsx +225 -0
  350. package/src/billing/dashboard/v2/clearance/pay-cash.component.tsx +199 -0
  351. package/src/billing/dashboard/v2/clearance/pay-cash.scss +28 -0
  352. package/src/billing/dashboard/v2/clearance/prepaid-services.component.tsx +112 -0
  353. package/src/billing/dashboard/v2/facility-bills/claim-status.ts +249 -0
  354. package/src/billing/dashboard/v2/facility-bills/facility-bills.component.scss +140 -0
  355. package/src/billing/dashboard/v2/facility-bills/facility-bills.component.tsx +688 -0
  356. package/src/billing/dashboard/v2/facility-bills/preauths-datatables/pending-preauths.component.tsx +132 -0
  357. package/src/billing/dashboard/v2/facility-bills/preauths-datatables/preauth-preview-table.component.tsx +267 -0
  358. package/src/billing/dashboard/v2/facility-bills/preauths.component.tsx +130 -0
  359. package/src/billing/dashboard/v2/inpatient-requests/inpatient-requests.component.scss +22 -0
  360. package/src/billing/dashboard/v2/inpatient-requests/inpatient-requests.component.tsx +382 -0
  361. package/src/billing/dashboard/v2/inpatient-requests/modal/start-inpatient-claim/start-inpatient-claim.component.scss +0 -0
  362. package/src/billing/dashboard/v2/inpatient-requests/modal/start-inpatient-claim/start-inpatient-claim.component.tsx +0 -0
  363. package/src/billing/dashboard/v2/new-facility-bills/bills-table.component.tsx +78 -0
  364. package/src/billing/dashboard/v2/new-facility-bills/bills-table.scss +18 -0
  365. package/src/billing/dashboard/v2/new-facility-bills/new-facility-bills.component.tsx +64 -0
  366. package/src/billing/dashboard/v2/new-facility-bills/new-facility-bills.scss +146 -0
  367. package/src/billing/dashboard/v2/patient-bill-details/attachments/add-attachments.component.tsx +234 -0
  368. package/src/billing/dashboard/v2/patient-bill-details/attachments/attachment.component.tsx +157 -0
  369. package/src/billing/dashboard/v2/patient-bill-details/attachments/attachments.scss +92 -0
  370. package/src/billing/dashboard/v2/patient-bill-details/attachments/case-summary/case-summary.scss +295 -0
  371. package/src/billing/dashboard/v2/patient-bill-details/attachments/case-summary/case-summary.tsx +326 -0
  372. package/src/billing/dashboard/v2/patient-bill-details/attachments/death-notification.component.tsx +162 -0
  373. package/src/billing/dashboard/v2/patient-bill-details/attachments/death-notification.resource.ts +112 -0
  374. package/src/billing/dashboard/v2/patient-bill-details/attachments/death-notification.scss +88 -0
  375. package/src/billing/dashboard/v2/patient-bill-details/attachments/dialysis/dialysis-chart.scss +238 -0
  376. package/src/billing/dashboard/v2/patient-bill-details/attachments/dialysis/dialysis-chart.tsx +269 -0
  377. package/src/billing/dashboard/v2/patient-bill-details/attachments/discharge-summary/discharge-summary.scss +96 -0
  378. package/src/billing/dashboard/v2/patient-bill-details/attachments/discharge-summary/discharge-summary.tsx +124 -0
  379. package/src/billing/dashboard/v2/patient-bill-details/attachments/final-bill.component.tsx +152 -0
  380. package/src/billing/dashboard/v2/patient-bill-details/attachments/final-bill.scss +225 -0
  381. package/src/billing/dashboard/v2/patient-bill-details/attachments/general-discharge-summary/general-discharge-summary.scss +182 -0
  382. package/src/billing/dashboard/v2/patient-bill-details/attachments/general-discharge-summary/general-discharge-summary.tsx +173 -0
  383. package/src/billing/dashboard/v2/patient-bill-details/attachments/generate-attachments.component.tsx +450 -0
  384. package/src/billing/dashboard/v2/patient-bill-details/attachments/invoice.component.tsx +151 -0
  385. package/src/billing/dashboard/v2/patient-bill-details/attachments/invoice.scss +225 -0
  386. package/src/billing/dashboard/v2/patient-bill-details/attachments/type.ts +44 -0
  387. package/src/billing/dashboard/v2/patient-bill-details/bill-details/bill-details.scss +107 -0
  388. package/src/billing/dashboard/v2/patient-bill-details/bill-details/bill-details.tsx +508 -0
  389. package/src/billing/dashboard/v2/patient-bill-details/bill-details-page.component.scss +30 -0
  390. package/src/billing/dashboard/v2/patient-bill-details/bill-details-page.component.tsx +94 -0
  391. package/src/billing/dashboard/v2/patient-bill-details/claim-details/claim-details-skeleton.component.scss +89 -0
  392. package/src/billing/dashboard/v2/patient-bill-details/claim-details/claim-details-skeleton.component.tsx +53 -0
  393. package/src/billing/dashboard/v2/patient-bill-details/claim-details/patient-claim-details.component.scss +32 -0
  394. package/src/billing/dashboard/v2/patient-bill-details/claim-details/patient-claim-details.component.tsx +215 -0
  395. package/src/billing/dashboard/v2/patient-bill-details/modals/add-claim-diagnosis/add-claim-diagnosis.modal.scss +0 -0
  396. package/src/billing/dashboard/v2/patient-bill-details/modals/add-claim-diagnosis/add-claim-diagnosis.modal.tsx +99 -0
  397. package/src/billing/dashboard/v2/patient-bill-details/modals/add-claim-line/add-claim-line.modal.tsx +187 -0
  398. package/src/billing/dashboard/v2/patient-bill-details/patient-bill-details.scss +153 -0
  399. package/src/billing/dashboard/v2/patient-bill-details/patient-bill-details.tsx +458 -0
  400. package/src/billing/dashboard/v2/patient-bill-details/payment-mode.ts +124 -0
  401. package/src/billing/dashboard/v2/patient-bill-details/workspaces/add-claim-line/add-claim-line.workspace.scss +27 -0
  402. package/src/billing/dashboard/v2/patient-bill-details/workspaces/add-claim-line/add-claim-line.workspace.tsx +234 -0
  403. package/src/billing/dashboard/v2/patient-bill-details/workspaces/bill-item-payment/bill-item-payment.workspace.scss +27 -0
  404. package/src/billing/dashboard/v2/patient-bill-details/workspaces/bill-item-payment/bill-item-payment.workspace.tsx +123 -0
  405. package/src/billing/dashboard/v2/preauth/preauth-attachments.component.tsx +389 -0
  406. package/src/billing/dashboard/v2/preauth/preauth-list.component.scss +38 -0
  407. package/src/billing/dashboard/v2/preauth/preauth-list.component.tsx +241 -0
  408. package/src/billing/dashboard/v2/preauth/preauth-status-tag.component.tsx +75 -0
  409. package/src/billing/dashboard/v2/preauth/preauth-typed-fields.md +125 -0
  410. package/src/billing/dashboard/v2/preauth/preauth.resource.ts +1032 -0
  411. package/src/billing/dashboard/v2/preauth/preauth.workspace.scss +91 -0
  412. package/src/billing/dashboard/v2/preauth/preauth.workspace.tsx +1802 -0
  413. package/src/billing/dashboard/v2/preauth/preauthorizations-tab.component.tsx +53 -0
  414. package/src/billing/dashboard/v2/sha-claims/sha-claims-table.component.tsx +36 -0
  415. package/src/billing/dashboard/v2/sha-claims/sha-claims.component.tsx +60 -0
  416. package/src/billing/dashboard/v2/sha-claims/sha-claims.scss +8 -0
  417. package/src/billing/dashboard/v2/shared/dash-board-card/dash-board-card.component.scss +17 -0
  418. package/src/billing/dashboard/v2/shared/dash-board-card/dash-board-card.component.tsx +15 -0
  419. package/src/billing/dashboard/v2/shared/empty-state.component.scss +24 -0
  420. package/src/billing/dashboard/v2/shared/empty-state.component.tsx +13 -0
  421. package/src/billing/dashboard/v2/shared/scroll-to-top.component.scss +54 -0
  422. package/src/billing/dashboard/v2/shared/scroll-to-top.component.tsx +54 -0
  423. package/src/billing/dashboard/v2/shared/table-toolbar.component.scss +77 -0
  424. package/src/billing/dashboard/v2/shared/table-toolbar.component.tsx +48 -0
  425. package/src/billing/dashboard/v2/types/index.ts +534 -0
  426. package/src/billing/dashboard/v3/active-visits/active-visits.component.tsx +256 -0
  427. package/src/billing/dashboard/v3/active-visits/active-visits.resource.ts +57 -0
  428. package/src/billing/dashboard/v3/active-visits/active-visits.scss +15 -0
  429. package/src/billing/dashboard/v3/cash-checklist/bill-document.component.scss +90 -0
  430. package/src/billing/dashboard/v3/cash-checklist/bill-document.component.tsx +101 -0
  431. package/src/billing/dashboard/v3/cash-checklist/cash-checklist.component.scss +199 -0
  432. package/src/billing/dashboard/v3/cash-checklist/cash-checklist.component.tsx +361 -0
  433. package/src/billing/dashboard/v3/cash-checklist/cash-checklist.resource.ts +240 -0
  434. package/src/billing/dashboard/v3/cash-checklist/payment-drawer.component.scss +246 -0
  435. package/src/billing/dashboard/v3/cash-checklist/payment-drawer.component.tsx +182 -0
  436. package/src/billing/dashboard/v3/claim-visits/claim-diagnosis-details/claim-diagnosis-details.component.scss +0 -0
  437. package/src/billing/dashboard/v3/claim-visits/claim-diagnosis-details/claim-diagnosis-details.component.tsx +44 -0
  438. package/src/billing/dashboard/v3/claim-visits/claim-doctors/claim-doctors.scss +5 -0
  439. package/src/billing/dashboard/v3/claim-visits/claim-doctors/claim-doctors.tsx +40 -0
  440. package/src/billing/dashboard/v3/claim-visits/claim-documents/claim-documents.scss +10 -0
  441. package/src/billing/dashboard/v3/claim-visits/claim-documents/claim-documents.tsx +25 -0
  442. package/src/billing/dashboard/v3/claim-visits/claim-intervention-details/claim-intervention-details.component.tsx +268 -0
  443. package/src/billing/dashboard/v3/claim-visits/claim-invoice-details/claim-invoice-details.component.scss +6 -0
  444. package/src/billing/dashboard/v3/claim-visits/claim-invoice-details/claim-invoice-details.component.tsx +85 -0
  445. package/src/billing/dashboard/v3/claim-visits/claim-invoice-line-details/claim-invoice-line-details.component.scss +0 -0
  446. package/src/billing/dashboard/v3/claim-visits/claim-invoice-line-details/claim-invoice-line-details.component.tsx +109 -0
  447. package/src/billing/dashboard/v3/claim-visits/claim-visit-details/claim-visit-details.component.scss +103 -0
  448. package/src/billing/dashboard/v3/claim-visits/claim-visit-details/claim-visit-details.component.tsx +519 -0
  449. package/src/billing/dashboard/v3/claim-visits/claim-visits.component.scss +5 -0
  450. package/src/billing/dashboard/v3/claim-visits/claim-visits.component.tsx +139 -0
  451. package/src/billing/dashboard/v3/claim-visits/modal/claim-doctors/add-claim-doctor/add-claim-doctor.modal.scss +5 -0
  452. package/src/billing/dashboard/v3/claim-visits/modal/claim-doctors/add-claim-doctor/add-claim-doctor.modal.tsx +49 -0
  453. package/src/billing/dashboard/v3/claim-visits/modal/claim-invoice-lines/claim-invoice-lines.modal.scss +7 -0
  454. package/src/billing/dashboard/v3/claim-visits/modal/claim-invoice-lines/claim-invoice-lines.modal.tsx +35 -0
  455. package/src/billing/dashboard/v3/claim-visits/modal/claim-visit-details/claim-visit-details.modal.scss +6 -0
  456. package/src/billing/dashboard/v3/claim-visits/modal/claim-visit-details/claim-visit-details.modal.tsx +33 -0
  457. package/src/billing/dashboard/v3/claim-visits/modal/close-claim/close-claim.modal.scss +0 -0
  458. package/src/billing/dashboard/v3/claim-visits/modal/close-claim/close-claim.modal.tsx +129 -0
  459. package/src/billing/dashboard/v3/claim-visits/modal/identify-emergency-unknown-patient/identify-emergencu-unknown-patient.scss +407 -0
  460. package/src/billing/dashboard/v3/claim-visits/modal/identify-emergency-unknown-patient/identify-emergency-unknown-patient.component.tsx +523 -0
  461. package/src/billing/dashboard/v3/claim-visits/modal/identify-emergency-unknown-patient/identify-patient-helper.ts +77 -0
  462. package/src/billing/dashboard/v3/claim-visits/modal/submit-claim/submit-claim.modal.tsx +280 -0
  463. package/src/billing/dashboard/v3/claim-visits/modal/submit-emergency-claim/submit-emergency-claim.component.tsx +91 -0
  464. package/src/billing/dashboard/v3/claim-visits/modal/submit-emergency-claim/submit-emergency.scss +14 -0
  465. package/src/billing/dashboard/v3/claim-visits/payer-preview/index.scss +140 -0
  466. package/src/billing/dashboard/v3/claim-visits/payer-preview/payer-preview-tile.component.tsx +55 -0
  467. package/src/billing/dashboard/v3/claim-visits/payer-preview/payer-preview-workspace.component.tsx +171 -0
  468. package/src/billing/dashboard/v3/claim-visits/payer-preview/tables/payer-claim-doctors.component.tsx +54 -0
  469. package/src/billing/dashboard/v3/claim-visits/payer-preview/tables/payer-claim-lines.component.tsx +48 -0
  470. package/src/billing/dashboard/v3/claim-visits/payer-preview/tables/payer-claim-notes.component.tsx +47 -0
  471. package/src/billing/dashboard/v3/claim-visits/payer-preview/tables/payer-diagnoses.component.tsx +44 -0
  472. package/src/billing/dashboard/v3/claim-visits/payer-preview/tables/payer-interventions.component.tsx +44 -0
  473. package/src/billing/dashboard/v3/claim-visits/switch-intervention/switch-intervention.resource.ts +51 -0
  474. package/src/billing/dashboard/v3/claim-visits/switch-intervention/switch-intervention.workspace.scss +191 -0
  475. package/src/billing/dashboard/v3/claim-visits/switch-intervention/switch-intervention.workspace.tsx +644 -0
  476. package/src/billing/dashboard/v3/claim-workspace/claim-workspace.component.scss +595 -0
  477. package/src/billing/dashboard/v3/claim-workspace/claim-workspace.component.tsx +810 -0
  478. package/src/billing/dashboard/v3/claim-workspace/claim-workspace.resource.ts +282 -0
  479. package/src/billing/dashboard/v3/claims-accounting/bill-utils.ts +134 -0
  480. package/src/billing/dashboard/v3/claims-accounting/claim-detail.component.tsx +346 -0
  481. package/src/billing/dashboard/v3/claims-accounting/claims-accounting.component.scss +546 -0
  482. package/src/billing/dashboard/v3/claims-accounting/claims-accounting.component.tsx +206 -0
  483. package/src/billing/dashboard/v3/claims-accounting/claims-accounting.resource.ts +337 -0
  484. package/src/billing/dashboard/v3/claims-accounting/invoice-document.component.scss +90 -0
  485. package/src/billing/dashboard/v3/claims-accounting/invoice-document.component.tsx +90 -0
  486. package/src/billing/dashboard/v3/claims-accounting/remittances.component.tsx +169 -0
  487. package/src/billing/dashboard/v3/claims-accounting/remittances.resource.ts +46 -0
  488. package/src/billing/dashboard/v3/claims-accounting/status-meta.ts +25 -0
  489. package/src/billing/dashboard/v3/claims-stats-dashboard/claim-stat/claim-stat.component.scss +27 -0
  490. package/src/billing/dashboard/v3/claims-stats-dashboard/claim-stat/claim-stat.component.tsx +42 -0
  491. package/src/billing/dashboard/v3/claims-stats-dashboard/claims-stats-dashboard.component.scss +16 -0
  492. package/src/billing/dashboard/v3/claims-stats-dashboard/claims-stats-dashboard.component.tsx +184 -0
  493. package/src/billing/dashboard/v3/claims-stats-dashboard/modal/claim-stats-list/claim-stats-list.modal.scss +0 -0
  494. package/src/billing/dashboard/v3/claims-stats-dashboard/modal/claim-stats-list/claim-stats-list.modal.tsx +27 -0
  495. package/src/billing/dashboard/v3/clearance/clearance.component.scss +100 -0
  496. package/src/billing/dashboard/v3/clearance/clearance.component.tsx +0 -0
  497. package/src/billing/dashboard/v3/clearance/prepaid-services.component.tsx +112 -0
  498. package/src/billing/dashboard/v3/facility-bills/claim-status.ts +243 -0
  499. package/src/billing/dashboard/v3/facility-bills/facility-bills.component.scss +92 -0
  500. package/src/billing/dashboard/v3/facility-bills/facility-bills.component.tsx +306 -0
  501. package/src/billing/dashboard/v3/facility-bills/preauths-datatables/pending-preauths.component.tsx +132 -0
  502. package/src/billing/dashboard/v3/facility-bills/preauths-datatables/preauth-preview-table.component.tsx +232 -0
  503. package/src/billing/dashboard/v3/facility-bills/preauths.component.tsx +127 -0
  504. package/src/billing/dashboard/v3/finalize-bill/bill-line-items/bill-line-items.component.tsx +101 -0
  505. package/src/billing/dashboard/v3/finalize-bill/bill-line-items/bill-line-items.scss +69 -0
  506. package/src/billing/dashboard/v3/finalize-bill/finalize-bill-confirmation.modal.scss +11 -0
  507. package/src/billing/dashboard/v3/finalize-bill/finalize-bill-confirmation.modal.tsx +72 -0
  508. package/src/billing/dashboard/v3/finalize-bill/finalize-bill.component.scss +68 -0
  509. package/src/billing/dashboard/v3/finalize-bill/finalize-bill.component.tsx +261 -0
  510. package/src/billing/dashboard/v3/finalize-bill/finalize-bill.resource.ts +68 -0
  511. package/src/billing/dashboard/v3/finalize-bill/helpers/functions.ts +85 -0
  512. package/src/billing/dashboard/v3/finalize-bill/helpers/index.ts +1 -0
  513. package/src/billing/dashboard/v3/finalize-bill/payments/invoice-breakdown/invoice-breakdown.component.tsx +17 -0
  514. package/src/billing/dashboard/v3/finalize-bill/payments/invoice-breakdown/invoice-breakdown.scss +29 -0
  515. package/src/billing/dashboard/v3/finalize-bill/payments/payment-form/payment-form.component.tsx +60 -0
  516. package/src/billing/dashboard/v3/finalize-bill/payments/payment-form/payment-form.scss +53 -0
  517. package/src/billing/dashboard/v3/finalize-bill/payments/payment-form/payment-form.test.tsx +211 -0
  518. package/src/billing/dashboard/v3/finalize-bill/payments/payment-form/payment-form.utils.ts +87 -0
  519. package/src/billing/dashboard/v3/finalize-bill/payments/payment-history/payment-history.component.tsx +77 -0
  520. package/src/billing/dashboard/v3/finalize-bill/payments/payment-history/payment-history.test.tsx +158 -0
  521. package/src/billing/dashboard/v3/finalize-bill/payments/payments.component.tsx +238 -0
  522. package/src/billing/dashboard/v3/finalize-bill/payments/payments.scss +77 -0
  523. package/src/billing/dashboard/v3/finalize-bill/payments/printable-invoice/print-receipt.component.tsx +43 -0
  524. package/src/billing/dashboard/v3/finalize-bill/payments/printable-invoice/print-receipt.scss +14 -0
  525. package/src/billing/dashboard/v3/finalize-bill/payments/printable-invoice/print-receipt.test.tsx +133 -0
  526. package/src/billing/dashboard/v3/finalize-bill/payments/printable-invoice/printable-footer.component.tsx +19 -0
  527. package/src/billing/dashboard/v3/finalize-bill/payments/printable-invoice/printable-footer.scss +17 -0
  528. package/src/billing/dashboard/v3/finalize-bill/payments/printable-invoice/printable-footer.test.tsx +22 -0
  529. package/src/billing/dashboard/v3/finalize-bill/payments/printable-invoice/printable-invoice-header.component.tsx +109 -0
  530. package/src/billing/dashboard/v3/finalize-bill/payments/printable-invoice/printable-invoice-header.scss +62 -0
  531. package/src/billing/dashboard/v3/finalize-bill/payments/printable-invoice/printable-invoice-header.test.tsx +159 -0
  532. package/src/billing/dashboard/v3/finalize-bill/payments/printable-invoice/printable-invoice.component.tsx +221 -0
  533. package/src/billing/dashboard/v3/finalize-bill/payments/printable-invoice/printable-invoice.scss +55 -0
  534. package/src/billing/dashboard/v3/finalize-bill/types.ts +248 -0
  535. package/src/billing/dashboard/v3/patient-bill-details/attachments/add-attachments.component.tsx +228 -0
  536. package/src/billing/dashboard/v3/patient-bill-details/attachments/attachment.component.tsx +157 -0
  537. package/src/billing/dashboard/v3/patient-bill-details/attachments/attachments.scss +92 -0
  538. package/src/billing/dashboard/v3/patient-bill-details/attachments/case-summary/case-summary-helper.ts +58 -0
  539. package/src/billing/dashboard/v3/patient-bill-details/attachments/case-summary/case-summary.scss +295 -0
  540. package/src/billing/dashboard/v3/patient-bill-details/attachments/case-summary/case-summary.tsx +287 -0
  541. package/src/billing/dashboard/v3/patient-bill-details/attachments/dialysis/dialysis-chart.scss +238 -0
  542. package/src/billing/dashboard/v3/patient-bill-details/attachments/dialysis/dialysis-chart.tsx +352 -0
  543. package/src/billing/dashboard/v3/patient-bill-details/attachments/dialysis/dialysis-helper.ts +117 -0
  544. package/src/billing/dashboard/v3/patient-bill-details/attachments/discharge-summary/discharge-summary.scss +96 -0
  545. package/src/billing/dashboard/v3/patient-bill-details/attachments/discharge-summary/discharge-summary.tsx +126 -0
  546. package/src/billing/dashboard/v3/patient-bill-details/attachments/final-bill.component.tsx +75 -0
  547. package/src/billing/dashboard/v3/patient-bill-details/attachments/general-discharge-summary/general-discharge-summary.scss +182 -0
  548. package/src/billing/dashboard/v3/patient-bill-details/attachments/general-discharge-summary/general-discharge-summary.tsx +253 -0
  549. package/src/billing/dashboard/v3/patient-bill-details/attachments/generate-attachments.component.tsx +450 -0
  550. package/src/billing/dashboard/v3/patient-bill-details/attachments/invoice.component.tsx +151 -0
  551. package/src/billing/dashboard/v3/patient-bill-details/attachments/invoice.scss +225 -0
  552. package/src/billing/dashboard/v3/patient-bill-details/attachments/lab-results/lab-orders.component.tsx +198 -0
  553. package/src/billing/dashboard/v3/patient-bill-details/attachments/lab-results/lab-orders.scss +227 -0
  554. package/src/billing/dashboard/v3/patient-bill-details/attachments/medical-report/medical-report.component.tsx +346 -0
  555. package/src/billing/dashboard/v3/patient-bill-details/attachments/medical-report/medical-report.scss +265 -0
  556. package/src/billing/dashboard/v3/patient-bill-details/attachments/proforma-invoice/proforma-invoice.component.tsx +347 -0
  557. package/src/billing/dashboard/v3/patient-bill-details/attachments/proforma-invoice/proforma-invoice.scss +285 -0
  558. package/src/billing/dashboard/v3/patient-bill-details/attachments/type.ts +280 -0
  559. package/src/billing/dashboard/v3/patient-bill-details/attachments/ultrasound-report/ultrasound-report.scss +273 -0
  560. package/src/billing/dashboard/v3/patient-bill-details/attachments/ultrasound-report/utlrasound-report.component.tsx +435 -0
  561. package/src/billing/dashboard/v3/patient-bill-details/bill-details/bill-details.scss +17 -0
  562. package/src/billing/dashboard/v3/patient-bill-details/bill-details/bill-details.tsx +377 -0
  563. package/src/billing/dashboard/v3/patient-bill-details/claim-details/patient-claim-details.component.scss +0 -0
  564. package/src/billing/dashboard/v3/patient-bill-details/claim-details/patient-claim-details.component.tsx +71 -0
  565. package/src/billing/dashboard/v3/patient-bill-details/modals/add-claim-diagnosis/add-claim-diagnosis.modal.scss +0 -0
  566. package/src/billing/dashboard/v3/patient-bill-details/modals/add-claim-diagnosis/add-claim-diagnosis.modal.tsx +99 -0
  567. package/src/billing/dashboard/v3/patient-bill-details/modals/add-claim-line/add-claim-line.modal.scss +14 -0
  568. package/src/billing/dashboard/v3/patient-bill-details/modals/add-claim-line/add-claim-line.modal.tsx +156 -0
  569. package/src/billing/dashboard/v3/patient-bill-details/modals/bill-item-payment/bill-item-payment.modal.scss +6 -0
  570. package/src/billing/dashboard/v3/patient-bill-details/modals/bill-item-payment/bill-item-payment.modal.tsx +137 -0
  571. package/src/billing/dashboard/v3/patient-bill-details/modals/claim-details/claim-details.modal.scss +28 -0
  572. package/src/billing/dashboard/v3/patient-bill-details/modals/claim-details/claim-details.modal.tsx +170 -0
  573. package/src/billing/dashboard/v3/patient-bill-details/modals/pomsf/pomsf-scheme-balance.util.test.ts +56 -0
  574. package/src/billing/dashboard/v3/patient-bill-details/modals/pomsf/pomsf-scheme-balance.util.ts +27 -0
  575. package/src/billing/dashboard/v3/patient-bill-details/modals/pomsf/set-effective-pomsf-coverage.component.tsx +128 -0
  576. package/src/billing/dashboard/v3/patient-bill-details/modals/pomsf/set-effective-pomsf-coverage.scss +27 -0
  577. package/src/billing/dashboard/v3/patient-bill-details/patient-bill-details.scss +85 -0
  578. package/src/billing/dashboard/v3/patient-bill-details/patient-bill-details.tsx +363 -0
  579. package/src/billing/dashboard/v3/patient-bill-details/patient-visit-details.tsx +291 -0
  580. package/src/billing/dashboard/v3/patient-bill-details/patient-visit.scss +16 -0
  581. package/src/billing/dashboard/v3/patient-bill-details/visit-diagnosis-details/visit-diagnosis-details.component.scss +0 -0
  582. package/src/billing/dashboard/v3/patient-bill-details/visit-diagnosis-details/visit-diagnosis-details.component.tsx +102 -0
  583. package/src/billing/dashboard/v3/preauth/elective/elective-authorize.resource.ts +284 -0
  584. package/src/billing/dashboard/v3/preauth/elective/elective-preauth-request.workspace.scss +125 -0
  585. package/src/billing/dashboard/v3/preauth/elective/elective-preauth-request.workspace.tsx +1184 -0
  586. package/src/billing/dashboard/v3/preauth/elective/elective-preauth.component.scss +15 -0
  587. package/src/billing/dashboard/v3/preauth/elective/elective-preauth.component.tsx +377 -0
  588. package/src/billing/dashboard/v3/preauth/elective/elective-preauth.resource.ts +1378 -0
  589. package/src/billing/dashboard/v3/preauth/elective/elective-requests-list.component.tsx +357 -0
  590. package/src/billing/dashboard/v3/preauth/preauth-attachments.component.tsx +388 -0
  591. package/src/billing/dashboard/v3/preauth/preauth-list.component.scss +34 -0
  592. package/src/billing/dashboard/v3/preauth/preauth-list.component.tsx +300 -0
  593. package/src/billing/dashboard/v3/preauth/preauth-status-tag.component.tsx +75 -0
  594. package/src/billing/dashboard/v3/preauth/preauth-typed-fields.md +125 -0
  595. package/src/billing/dashboard/v3/preauth/preauth.resource.ts +1549 -0
  596. package/src/billing/dashboard/v3/preauth/preauth.workspace.scss +176 -0
  597. package/src/billing/dashboard/v3/preauth/preauth.workspace.tsx +2458 -0
  598. package/src/billing/dashboard/v3/preauth/preauthorizations-tab.component.tsx +55 -0
  599. package/src/billing/dashboard/v3/shared/empty-state.component.scss +25 -0
  600. package/src/billing/dashboard/v3/shared/empty-state.component.tsx +13 -0
  601. package/src/billing/dashboard/v3/shared/table-toolbar.component.scss +64 -0
  602. package/src/billing/dashboard/v3/shared/table-toolbar.component.tsx +48 -0
  603. package/src/billing/dashboard/v3/types/index.ts +450 -0
  604. package/src/billing/extensions/generate-order-bill-button/generate-order-bill-button.extension.tsx +55 -0
  605. package/src/billing/extensions/generate-order-bill-button/generate-order-bill-button.scss +16 -0
  606. package/src/billing/extensions/visit-billing/visit-billing.extension.scss +0 -0
  607. package/src/billing/extensions/visit-billing/visit-billing.extension.tsx +514 -0
  608. package/src/billing/invoice/bill.resource.ts +47 -0
  609. package/src/billing/invoice/invoice-header/header-card/header-card.scss +17 -0
  610. package/src/billing/invoice/invoice-header/header-card/header-card.tsx +21 -0
  611. package/src/billing/invoice/invoice.scss +113 -0
  612. package/src/billing/invoice/invoice.tsx +1441 -0
  613. package/src/billing/invoice/line-items/line-items.scss +0 -0
  614. package/src/billing/invoice/line-items/line-items.tsx +120 -0
  615. package/src/billing/invoice/modal/delete-bill-item/delete-bill-item.modal.scss +23 -0
  616. package/src/billing/invoice/modal/delete-bill-item/delete-bill-item.modal.tsx +114 -0
  617. package/src/billing/invoice/modal/edit-bill-item/edit-bill-item.modal.scss +0 -0
  618. package/src/billing/invoice/modal/edit-bill-item/edit-bill-item.modal.tsx +122 -0
  619. package/src/billing/invoice/payment-details/payment-details.scss +0 -0
  620. package/src/billing/invoice/payment-details/payment-details.tsx +43 -0
  621. package/src/billing/invoice/print-invoice/print-receipt.component.tsx +44 -0
  622. package/src/billing/invoice/print-invoice/print-receipt.scss +14 -0
  623. package/src/billing/maternity-discharge.resource.ts +21 -0
  624. package/src/billing/reports/billing-and-claims-reports-dashboard.scss +40 -0
  625. package/src/billing/reports/billing-and-claims-reports-dashboard.tsx +32 -0
  626. package/src/billing/reports/claims/claims-report-dashboard.scss +55 -0
  627. package/src/billing/reports/claims/claims-report-dashboard.tsx +136 -0
  628. package/src/billing/reports/claims/summary-data/summary-data.scss +24 -0
  629. package/src/billing/reports/claims/summary-data/summary-data.tsx +184 -0
  630. package/src/billing/types/index.ts +411 -0
  631. package/src/billing/utils/index.ts +17 -0
  632. package/src/billing/widgets/billingTotalsRow.component.scss +0 -0
  633. package/src/billing/widgets/billingTotalsRow.component.tsx +712 -0
  634. package/src/billing/workspaces/create-order-bill-form-workspace/create-order-bill-form.resource.ts +223 -0
  635. package/src/billing/workspaces/create-order-bill-form-workspace/create-order-bill-form.scss +58 -0
  636. package/src/billing/workspaces/create-order-bill-form-workspace/create-order-bill-form.workspace.tsx +874 -0
  637. package/src/billing/workspaces/create-order-bill-form-workspace/schema.ts +20 -0
  638. package/src/billing/workspaces/create-order-bill-form-workspace/types.ts +49 -0
  639. package/src/bookings/bookings.component.scss +7 -0
  640. package/src/bookings/bookings.component.tsx +35 -0
  641. package/src/bookings/daily/daily-bookings.resource.ts +2 -1
  642. package/src/case-summary/case-summary.extension.scss +13 -0
  643. package/src/case-summary/case-summary.extension.tsx +40 -0
  644. package/src/case-summary/case-summary.resource.test.ts +69 -0
  645. package/src/case-summary/case-summary.resource.ts +52 -0
  646. package/src/case-summary/components/case-summary-printable.component.scss +174 -0
  647. package/src/case-summary/components/case-summary-printable.component.tsx +288 -0
  648. package/src/case-summary/components/case-summary-printable.utils.ts +51 -0
  649. package/src/case-summary/types/case-summary.types.ts +152 -0
  650. package/src/claims/claims.component.scss +70 -0
  651. package/src/claims/claims.component.tsx +743 -0
  652. package/src/claims/claims.resource.ts +1855 -0
  653. package/src/claims/index.ts +365 -0
  654. package/src/claims/interventions.resource.ts +131 -0
  655. package/src/claims/utils.ts +64 -0
  656. package/src/config-schema.ts +295 -1
  657. package/src/context/patient-context.tsx +27 -0
  658. package/src/critical-care-unit/critical-care-root.tsx +23 -0
  659. package/src/critical-care-unit/hdu/hdu-queues.component.scss +7 -0
  660. package/src/critical-care-unit/hdu/hdu-queues.component.tsx +31 -0
  661. package/src/critical-care-unit/hdu/queues/consultation/hdu-consultation.tsx +18 -0
  662. package/src/critical-care-unit/icu/icu-queues.component.scss +7 -0
  663. package/src/critical-care-unit/icu/icu-queues.component.tsx +31 -0
  664. package/src/critical-care-unit/icu/queues/consultation/icu-consultation.tsx +17 -0
  665. package/src/critical-care-unit/icu-burns/icu-burns-queues.component.scss +7 -0
  666. package/src/critical-care-unit/icu-burns/icu-burns-queues.component.tsx +30 -0
  667. package/src/critical-care-unit/icu-burns/queues/consultation/icu-burns-consultation.tsx +17 -0
  668. package/src/critical-care-unit/nicu/nicu-queues.component.scss +7 -0
  669. package/src/critical-care-unit/nicu/nicu-queues.component.tsx +31 -0
  670. package/src/critical-care-unit/nicu/queues/consultation/nicu-consultation.tsx +17 -0
  671. package/src/critical-care-unit/picu/picu-queues.component.scss +7 -0
  672. package/src/critical-care-unit/picu/picu-queues.component.tsx +31 -0
  673. package/src/critical-care-unit/picu/queues/consultation/picu-consultation.tsx +17 -0
  674. package/src/dashboard/charts/chart.component.scss +24 -0
  675. package/src/dashboard/charts/chart.component.tsx +56 -0
  676. package/src/dashboard/dashboard.component.scss +48 -3
  677. package/src/dashboard/dashboard.component.tsx +29 -38
  678. package/src/dashboard/overview/overview.component.scss +40 -59
  679. package/src/dashboard/overview/overview.component.tsx +55 -41
  680. package/src/dashboard-meta/accounting-dashboard.meta.ts +6 -0
  681. package/src/dashboard-meta/admissions-dashboard.meta.ts +6 -0
  682. package/src/dashboard-meta/billing-dashboard.meta.ts +6 -0
  683. package/src/dashboard-meta/bookings-dashboard.meta.ts +6 -0
  684. package/src/dashboard-meta/case-summary.meta.ts +6 -0
  685. package/src/dashboard-meta/claims-admin.meta.ts +6 -0
  686. package/src/dashboard-meta/elective-preauth.meta.ts +6 -0
  687. package/src/dashboard-meta/emt-dashboard.meta.ts +6 -0
  688. package/src/dashboard-meta/inpatient-admissions.meta.ts +6 -0
  689. package/src/dashboard-meta/maternity-dashboard.meta.ts +6 -0
  690. package/src/dashboard-meta/mch-dashboard.meta.ts +6 -0
  691. package/src/dashboard-meta/registers-dashboard.meta.ts +6 -0
  692. package/src/dashboard-meta/registry-dashboard.meta.ts +2 -2
  693. package/src/dashboard-meta/service-queue-admin.meta.ts +6 -0
  694. package/src/dashboard-meta/shr-dashboard.meta.ts +19 -0
  695. package/src/dashboard-meta/specialized-clinics-dashboard.meta.ts +6 -0
  696. package/src/dashboard-meta/telemedicine-dashboard.meta.ts +6 -0
  697. package/src/dashboard-meta/telemedicine-patient-chart.meta.ts +6 -0
  698. package/src/death-reporting/death-reporting-form-button.component.tsx +50 -0
  699. package/src/death-reporting/death-reporting-form-button.resource.ts +64 -0
  700. package/src/emt/cr-lookup.resource.test.ts +88 -0
  701. package/src/emt/cr-lookup.resource.ts +42 -0
  702. package/src/emt/emt-queue.component.test.tsx +353 -0
  703. package/src/emt/emt-queue.component.tsx +463 -0
  704. package/src/emt/emt-queue.scss +85 -0
  705. package/src/emt/emt.resource.test.ts +247 -0
  706. package/src/emt/emt.resource.ts +150 -0
  707. package/src/emt/handover-modal/handover-modal.component.test.tsx +273 -0
  708. package/src/emt/handover-modal/handover-modal.component.tsx +538 -0
  709. package/src/emt/handover-modal/handover-modal.scss +113 -0
  710. package/src/emt/types/emt.types.ts +137 -0
  711. package/src/index.ts +218 -7
  712. package/src/mnch/maternity/maternity-queues.component.scss +7 -0
  713. package/src/mnch/maternity/maternity-queues.component.tsx +32 -0
  714. package/src/mnch/maternity/queues/triage/maternity-triage.tsx +15 -0
  715. package/src/mnch/mch/mch-queues.component.scss +10 -0
  716. package/src/mnch/mch/mch-queues.component.tsx +36 -0
  717. package/src/{mch → mnch/mch}/queues/consultation/mch-consultation.tsx +2 -2
  718. package/src/{mch → mnch/mch}/queues/triage/mch-triage.tsx +2 -2
  719. package/src/mnch/mnch-root.tsx +17 -0
  720. package/src/mortuary/mortuary.component.tsx +2 -2
  721. package/src/pharmacy/pharmacy.component.scss +16 -0
  722. package/src/pharmacy/pharmacy.component.tsx +11 -6
  723. package/src/registers/registers.component.tsx +8 -0
  724. package/src/registry/drawer/emr-compare.component.scss +263 -0
  725. package/src/registry/drawer/emr-compare.component.tsx +302 -0
  726. package/src/registry/drawer/emr-compare.resource.ts +181 -0
  727. package/src/registry/drawer/emr-create-preview.component.tsx +123 -0
  728. package/src/registry/drawer/otp-verification-step.component.tsx +398 -0
  729. package/src/registry/drawer/pomsf-balance.util.test.ts +177 -0
  730. package/src/registry/drawer/pomsf-balance.util.ts +116 -0
  731. package/src/registry/drawer/verification.resource.ts +60 -0
  732. package/src/registry/drawer/workflow-drawer.component.scss +1242 -0
  733. package/src/registry/drawer/workflow-drawer.component.tsx +1542 -0
  734. package/src/registry/eligibility/eligibility-details/eligibility-details.scss +38 -0
  735. package/src/registry/eligibility/eligibility-details/eligibility-details.tsx +101 -0
  736. package/src/registry/eligibility/eliigibility-tags/eligibility-tags.scss +16 -0
  737. package/src/registry/eligibility/eliigibility-tags/eligibility-tags.tsx +120 -0
  738. package/src/registry/eligibility/modal/eligibility-details.modal.scss +0 -0
  739. package/src/registry/eligibility/modal/eligibility-details.modal.tsx +45 -0
  740. package/src/registry/emergency/emergency-extension.component.tsx +599 -0
  741. package/src/registry/emergency/emergency-helper.ts +47 -0
  742. package/src/registry/emergency/emergency.resource.ts +291 -0
  743. package/src/registry/emergency/emergency.scss +123 -0
  744. package/src/registry/emergency/otp-component.tsx +289 -0
  745. package/src/registry/emergency/type/index.ts +77 -0
  746. package/src/registry/emergency/unidentified/unidentified-registration.component.tsx +154 -0
  747. package/src/registry/emergency/unidentified/unidentified-registration.scss +0 -0
  748. package/src/registry/emergency/unidentified/unidentified.component.tsx +376 -0
  749. package/src/registry/emergency/unidentified/unidentified.scss +0 -0
  750. package/src/registry/hie.resource.ts +481 -0
  751. package/src/registry/hie.types.ts +63 -0
  752. package/src/registry/modal/biometrics-verification-modal/biometrics-verification-modal.scss +277 -0
  753. package/src/registry/modal/biometrics-verification-modal/biometrics-verification-modal.tsx +218 -0
  754. package/src/registry/modal/biometrics-verification-modal/type.ts +39 -0
  755. package/src/registry/modal/client-details-modal/client-details-modal.tsx +65 -29
  756. package/src/registry/modal/otp-modal/otp-whitlisting-modal.component.tsx +809 -0
  757. package/src/registry/modal/otp-modal/otp-whitlisting-modal.scss +354 -0
  758. package/src/registry/modal/otp-modal/otp-whitlisting.scss +0 -0
  759. package/src/registry/modal/otp-verification-modal/claims-consent.scss +72 -0
  760. package/src/registry/modal/otp-verification-modal/claims-consent.tsx +135 -0
  761. package/src/registry/modal/otp-verification-modal/extension/claims-consent.extension.tsx +130 -0
  762. package/src/registry/modal/otp-verification-modal/otp-verification-modal.scss +15 -3
  763. package/src/registry/modal/otp-verification-modal/otp-verification-modal.tsx +136 -44
  764. package/src/registry/modal/send-to-triage/payment-details.tsx +120 -0
  765. package/src/registry/modal/send-to-triage/payment-method.component.tsx +54 -0
  766. package/src/registry/modal/send-to-triage/send-to-queue.modal.tsx +991 -0
  767. package/src/registry/modal/send-to-triage/send-to-queue.workspace.tsx +24 -0
  768. package/src/registry/modal/send-to-triage/send-to-triage.modal.scss +156 -3
  769. package/src/registry/modal/send-to-triage/send-to-triage.modal.tsx +1086 -130
  770. package/src/registry/modal/start-patient-visit/start-patient-visit.modal.scss +34 -0
  771. package/src/registry/modal/start-patient-visit/start-patient-visit.modal.tsx +231 -0
  772. package/src/registry/payment-details/payment-options/payment-options.scss +13 -0
  773. package/src/registry/payment-details/payment-options/payment-options.tsx +61 -14
  774. package/src/registry/registration-list/registration-list.component.scss +32 -0
  775. package/src/registry/registration-list/registration-list.component.tsx +103 -0
  776. package/src/registry/registry-entry.tsx +11 -0
  777. package/src/registry/registry.component.scss +402 -78
  778. package/src/registry/registry.component.tsx +732 -220
  779. package/src/registry/registry.resource.ts +22 -3
  780. package/src/registry/types/index.ts +126 -9
  781. package/src/registry/utils/error-handler.ts +54 -0
  782. package/src/registry/utils/format-dependant-display-data.ts +1 -1
  783. package/src/registry/utils/hie-client-adapter.ts +7 -4
  784. package/src/registry/utils/mask-data.ts +40 -0
  785. package/src/registry/utils/phone-number-formatter.ts +11 -0
  786. package/src/resources/dashboard.resource.ts +20 -0
  787. package/src/resources/identifier-types.ts +2 -0
  788. package/src/resources/patient-resource.ts +7 -2
  789. package/src/resources/queue.resource.ts +3 -3
  790. package/src/resources/superset.resource.ts +41 -0
  791. package/src/resources/visit.resource.ts +19 -1
  792. package/src/root.component.tsx +9 -7
  793. package/src/routes.json +628 -20
  794. package/src/service-queues/admin/queue/modal/create-queue/create-queue.modal.scss +31 -0
  795. package/src/service-queues/admin/queue/modal/create-queue/create-queue.modal.tsx +193 -0
  796. package/src/service-queues/admin/queue/modal/edit-queue/edit-queue.modal.scss +0 -0
  797. package/src/service-queues/admin/queue/modal/edit-queue/edit-queue.modal.tsx +201 -0
  798. package/src/service-queues/admin/queue/queue-list/queue-list.scss +33 -0
  799. package/src/service-queues/admin/queue/queue-list/queue-list.tsx +113 -0
  800. package/src/service-queues/admin/queue-entry/queue-entry-list.component.scss +6 -0
  801. package/src/service-queues/admin/queue-entry/queue-entry-list.component.tsx +137 -0
  802. package/src/service-queues/admin/queue-room/modal/create-queue-room/create-queue-room.modal.scss +31 -0
  803. package/src/service-queues/admin/queue-room/modal/create-queue-room/create-queue-room.modal.tsx +137 -0
  804. package/src/service-queues/admin/queue-room/modal/edit-queue-room/edit-queue-room.modal.scss +0 -0
  805. package/src/service-queues/admin/queue-room/modal/edit-queue-room/edit-queue-room.modal.tsx +146 -0
  806. package/src/service-queues/admin/queue-room/queue-room-list/queue-room-list.scss +22 -0
  807. package/src/service-queues/admin/queue-room/queue-room-list/queue-room-list.tsx +120 -0
  808. package/src/service-queues/admin/service-queue-admin-dashboard.component.scss +6 -0
  809. package/src/service-queues/admin/service-queue-admin-dashboard.component.tsx +35 -0
  810. package/src/service-queues/consultation/consultation.component.tsx +9 -0
  811. package/src/service-queues/extensions/service-queue-patient-banner/service-queue-patient-banner.scss +30 -0
  812. package/src/service-queues/extensions/service-queue-patient-banner/service-queue-patient-banner.tsx +108 -0
  813. package/src/service-queues/modals/daily-report-patient-list/daily-report-patient-list.scss +26 -0
  814. package/src/service-queues/modals/daily-report-patient-list/daily-report-patient-list.tsx +110 -0
  815. package/src/service-queues/modals/move/move-patient.component.scss +1 -1
  816. package/src/service-queues/modals/move/move-patient.component.tsx +31 -17
  817. package/src/service-queues/queue-list/check-in.service.ts +26 -0
  818. package/src/service-queues/queue-list/queue-list.component.scss +37 -0
  819. package/src/service-queues/queue-list/queue-list.component.tsx +296 -60
  820. package/src/service-queues/service-queue/service-queue.component.tsx +151 -8
  821. package/src/service-queues/service-queue/stats/stat-details/stat-details.component.scss +5 -0
  822. package/src/service-queues/service-queue/stats/stat-details/stat-details.component.tsx +36 -7
  823. package/src/service-queues/service-queue.tsx +22 -16
  824. package/src/service-queues/service-queues.resource.ts +293 -2
  825. package/src/service-queues/service.resource.ts +1 -1
  826. package/src/shared/constants/concepts.ts +70 -0
  827. package/src/shared/constants/patient-category.ts +6 -0
  828. package/src/shared/constants/patient-type.ts +10 -0
  829. package/src/shared/constants/visit-types.ts +9 -0
  830. package/src/shared/services/billable-service.resource.ts +121 -0
  831. package/src/shared/services/billing.resource.ts +112 -0
  832. package/src/shared/services/claims.resource.ts +47 -0
  833. package/src/shared/services/client-payment-mode.resource.ts +27 -0
  834. package/src/shared/services/client-payment.resource.ts +17 -0
  835. package/src/shared/services/consultation-clearance.resource.ts +210 -0
  836. package/src/shared/services/eligibility.resource.ts +20 -0
  837. package/src/shared/services/encounters.resource.ts +33 -0
  838. package/src/shared/types/index.ts +156 -0
  839. package/src/shared/ui/aggregate-stat-card/aggregate-stat-card.scss +42 -0
  840. package/src/shared/ui/aggregate-stat-card/aggregate-stat-card.tsx +42 -0
  841. package/src/shared/ui/confirm-modal/confirm.modal.scss +18 -0
  842. package/src/shared/ui/confirm-modal/confirm.modal.tsx +38 -0
  843. package/src/shared/ui/facility-worker-slot/facility-worker.component-slot.component.scss +39 -0
  844. package/src/shared/ui/facility-worker-slot/facility-worker.component-slot.component.tsx +19 -0
  845. package/src/shared/ui/otp-input/otp-input.component.scss +12 -12
  846. package/src/shared/ui/otp-input/otp-input.component.tsx +13 -6
  847. package/src/{service-queues/service-queue/stats → shared/ui}/stat-card/stat-card.component.tsx +6 -3
  848. package/src/shared/utils/format-title-case.ts +8 -0
  849. package/src/shared/utils/get-base-url.ts +15 -0
  850. package/src/shared/utils/get-tag-type.ts +75 -0
  851. package/src/shr/shr-close-visit-form.component.tsx +102 -0
  852. package/src/shr/shr-code-systems.json +363 -0
  853. package/src/shr/shr-terminology.resource.test.ts +66 -0
  854. package/src/shr/shr-terminology.resource.ts +64 -0
  855. package/src/shr/shr-viewer/shr-categories.test.ts +241 -0
  856. package/src/shr/shr-viewer/shr-categories.ts +209 -0
  857. package/src/shr/shr-viewer/shr-presentation.test.ts +511 -0
  858. package/src/shr/shr-viewer/shr-presentation.ts +883 -0
  859. package/src/shr/shr-viewer/shr-viewer.component.test.tsx +176 -0
  860. package/src/shr/shr-viewer/shr-viewer.component.tsx +432 -0
  861. package/src/shr/shr-viewer/shr-viewer.scss +239 -0
  862. package/src/shr/shr-visit-sync.test.ts +88 -0
  863. package/src/shr/shr-visit-sync.ts +62 -0
  864. package/src/shr/shr.component.tsx +730 -0
  865. package/src/shr/shr.resource.test.ts +737 -0
  866. package/src/shr/shr.resource.ts +463 -0
  867. package/src/shr/shr.scss +114 -0
  868. package/src/shr/shr.types.ts +682 -0
  869. package/src/shr/workspaces/shr-consent-workspace/schema.ts +53 -0
  870. package/src/shr/workspaces/shr-consent-workspace/shr-consent.scss +71 -0
  871. package/src/shr/workspaces/shr-consent-workspace/shr-consent.workspace.tsx +686 -0
  872. package/src/side-nav-menu/accounting-nav-link-config.ts +16 -0
  873. package/src/side-nav-menu/accounting-nav-links.tsx +42 -0
  874. package/src/side-nav-menu/critical-care-nav-links.tsx +42 -0
  875. package/src/side-nav-menu/critical-care-unit-nav-link-config.ts +28 -0
  876. package/src/side-nav-menu/mnch-nav-link-config.ts +16 -0
  877. package/src/side-nav-menu/mnch-nav-links.tsx +42 -0
  878. package/src/side-nav-menu/nav-link-config.ts +5 -5
  879. package/src/side-nav-menu/specialized-clinics-nav-link-config.ts +32 -0
  880. package/src/side-nav-menu/specialized-clinics-nav-links.tsx +42 -0
  881. package/src/specialized-clinics/dental/dental-queues.component.scss +7 -0
  882. package/src/specialized-clinics/dental/dental-queues.component.tsx +36 -0
  883. package/src/specialized-clinics/dental/queues/consultation/dental-consultation.tsx +15 -0
  884. package/src/specialized-clinics/dental/queues/triage/dental-triage.tsx +15 -0
  885. package/src/specialized-clinics/diagnostic-and-imaging/diagnostic-and-imaging.component.scss +7 -0
  886. package/src/specialized-clinics/diagnostic-and-imaging/diagnostic-and-imaging.component.tsx +36 -0
  887. package/src/specialized-clinics/diagnostic-and-imaging/queues/consultation/diagnosis-and-imaging-consultation.tsx +15 -0
  888. package/src/specialized-clinics/diagnostic-and-imaging/queues/triage/diagnosis-and-imaging-triage.tsx +15 -0
  889. package/src/specialized-clinics/oncology/oncology-queues.component.scss +7 -0
  890. package/src/specialized-clinics/oncology/oncology-queues.component.tsx +36 -0
  891. package/src/specialized-clinics/oncology/queues/consultation/oncology-consultation.tsx +15 -0
  892. package/src/specialized-clinics/oncology/queues/triage/oncology-triage.tsx +15 -0
  893. package/src/specialized-clinics/ophthalmology/ophthalmology-queues.component.scss +7 -0
  894. package/src/specialized-clinics/ophthalmology/ophthalmology-queues.component.tsx +36 -0
  895. package/src/specialized-clinics/ophthalmology/queues/consultation/ophthalmology-consultation.tsx +15 -0
  896. package/src/specialized-clinics/ophthalmology/queues/triage/ophthalmology-triage.tsx +15 -0
  897. package/src/specialized-clinics/psychiatry/psychiatry-queues.component.scss +7 -0
  898. package/src/specialized-clinics/psychiatry/psychiatry-queues.component.tsx +36 -0
  899. package/src/specialized-clinics/psychiatry/queues/consultation/psychiatry-consultation.tsx +15 -0
  900. package/src/specialized-clinics/psychiatry/queues/triage/psychiatry-triage.tsx +15 -0
  901. package/src/specialized-clinics/renal/queues/consultation/dialysis-consultation.tsx +15 -0
  902. package/src/specialized-clinics/renal/queues/triage/renal-triage.tsx +15 -0
  903. package/src/specialized-clinics/renal/renal-queues.component.scss +7 -0
  904. package/src/specialized-clinics/renal/renal-queues.component.tsx +36 -0
  905. package/src/specialized-clinics/specialized-clinics-root.tsx +25 -0
  906. package/src/telemedicine/telemedicine-patient-chart.component.test.tsx +123 -0
  907. package/src/telemedicine/telemedicine-patient-chart.component.tsx +131 -0
  908. package/src/telemedicine/telemedicine.component.test.tsx +113 -0
  909. package/src/telemedicine/telemedicine.component.tsx +310 -0
  910. package/src/telemedicine/telemedicine.resource.test.ts +171 -0
  911. package/src/telemedicine/telemedicine.resource.ts +125 -0
  912. package/src/telemedicine/telemedicine.scss +91 -0
  913. package/src/triage/triage.component.scss +6 -0
  914. package/src/triage/triage.component.tsx +4 -0
  915. package/src/types/types.ts +56 -1
  916. package/tools/fetch-shr-code-systems.mjs +135 -0
  917. package/tools/strip-openmrs-declaration-maps.mjs +44 -0
  918. package/tools/update-openmrs-deps.mjs +36 -5
  919. package/translations/en.json +136 -0
  920. package/tsconfig.json +7 -4
  921. package/webpack.config.js +74 -1
  922. package/dist/104.js +0 -2
  923. package/dist/104.js.map +0 -1
  924. package/dist/125.js +0 -1
  925. package/dist/125.js.map +0 -1
  926. package/dist/15.js +0 -1
  927. package/dist/15.js.map +0 -1
  928. package/dist/184.js +0 -2
  929. package/dist/184.js.map +0 -1
  930. package/dist/246.js +0 -2
  931. package/dist/246.js.map +0 -1
  932. package/dist/249.js +0 -1
  933. package/dist/249.js.map +0 -1
  934. package/dist/255.js +0 -1
  935. package/dist/255.js.map +0 -1
  936. package/dist/28.js +0 -1
  937. package/dist/28.js.map +0 -1
  938. package/dist/300.js +0 -1
  939. package/dist/321.js +0 -1
  940. package/dist/321.js.map +0 -1
  941. package/dist/327.js +0 -1
  942. package/dist/327.js.map +0 -1
  943. package/dist/339.js +0 -1
  944. package/dist/339.js.map +0 -1
  945. package/dist/352.js +0 -1
  946. package/dist/352.js.map +0 -1
  947. package/dist/353.js +0 -1
  948. package/dist/353.js.map +0 -1
  949. package/dist/420.js +0 -1
  950. package/dist/420.js.map +0 -1
  951. package/dist/440.js +0 -1
  952. package/dist/440.js.map +0 -1
  953. package/dist/540.js +0 -2
  954. package/dist/540.js.map +0 -1
  955. package/dist/55.js +0 -1
  956. package/dist/710.js +0 -2
  957. package/dist/710.js.LICENSE.txt +0 -14
  958. package/dist/710.js.map +0 -1
  959. package/dist/729.js +0 -1
  960. package/dist/729.js.map +0 -1
  961. package/dist/744.js +0 -1
  962. package/dist/744.js.map +0 -1
  963. package/dist/752.js +0 -1
  964. package/dist/752.js.map +0 -1
  965. package/dist/833.js +0 -1
  966. package/dist/833.js.map +0 -1
  967. package/dist/93.js +0 -1
  968. package/dist/93.js.map +0 -1
  969. package/dist/99.js +0 -1
  970. /package/dist/{104.js.LICENSE.txt → 2272.js.LICENSE.txt} +0 -0
  971. /package/dist/{184.js.LICENSE.txt → 3184.js.LICENSE.txt} +0 -0
  972. /package/dist/{540.js.LICENSE.txt → 6540.js.LICENSE.txt} +0 -0
  973. /package/src/{service-queues/service-queue/stats → shared/ui}/stat-card/stat-card.component.scss +0 -0
package/dist/4535.js ADDED
@@ -0,0 +1 @@
1
+ "use strict";(globalThis.webpackChunk_ampath_esm_dha_workflow_app=globalThis.webpackChunk_ampath_esm_dha_workflow_app||[]).push([[4535],{54535(a,h,t){t.d(h,{K7:()=>w});var e=t(60428),r=t(96031),p=t.n(r),o=t(21020);const w=p().forwardRef(function({children:a,size:h=16,...t},r){return p().createElement(e.A,{width:h,height:h,ref:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",...t},(0,o.Y)("path",{d:"M16 22H30V24H16z"}),(0,o.Y)("path",{d:"M14 19.4 12.6 18 6 24.6 3.4 22 2 23.4 6 27.4z"}),(0,o.Y)("path",{d:"M16 8H30V10H16z"}),(0,o.Y)("path",{d:"M14 5.4 12.6 4 6 10.6 3.4 8 2 9.4 6 13.4z"}),a)})}}]);
@@ -0,0 +1 @@
1
+ {"version":3,"file":"4535.js","mappings":"sNAksDA,MAAAA,EAAkCC,IAAAC,WAAgB,UAAAC,SAAwBA,EAAAC,KAAAA,EAAA,MAAAC,GAA8BC,GACxG,OAAQL,IAAAM,cAAoBC,EAAAC,EAAI,CAChCC,MAAAN,EACAO,OAAAP,EACAE,MACAM,MAAA,6BACAC,QAAA,YACAC,KAAA,kBACAT,IACoB,EAAAU,EAAAC,GAAG,QAAWC,EAAA,sBAA0C,EAAAF,EAAAC,GAAG,QAAWC,EAAA,mDAAuE,EAAAF,EAAAC,GAAG,QAAWC,EAAA,qBAAyC,EAAAF,EAAAC,GAAG,QAAWC,EAAA,8CAAgDd,EACtR","sources":["webpack://@ampath/esm-dha-workflow-app/./node_modules/@carbon/icons-react/es/generated/bucket-11.js"],"names":["ListChecked","react__WEBPACK_IMPORTED_MODULE_1___default","forwardRef","children","size","rest","ref","createElement","_Icon_js__WEBPACK_IMPORTED_MODULE_0__","A","width","height","xmlns","viewBox","fill","react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__","Y","d"],"sourceRoot":""}
package/dist/4569.js ADDED
@@ -0,0 +1 @@
1
+ "use strict";(globalThis.webpackChunk_ampath_esm_dha_workflow_app=globalThis.webpackChunk_ampath_esm_dha_workflow_app||[]).push([[4569],{28876(e,t,n){n.d(t,{A:()=>u});var r=n(72996),a=n.n(r),o=n(70159),l=n.n(o)()(a());l.push([e.id,".-esm-dha-workflow__queue-entry-list-component__entryListLayout___AaerD{display:flex;flex-direction:column;row-gap:10px;width:100%}","",{version:3,sources:["webpack://./src/service-queues/admin/queue-entry/queue-entry-list.component.scss"],names:[],mappings:"AAAA,wEACI,YAAA,CACA,qBAAA,CACA,YAAA,CACA,UAAA",sourcesContent:[".entryListLayout{\n display: flex;\n flex-direction: column;\n row-gap: 10px;\n width: 100%;\n}"],sourceRoot:""}]),l.locals={entryListLayout:"-esm-dha-workflow__queue-entry-list-component__entryListLayout___AaerD"};const u=l},45559(e,t,n){n.d(t,{A:()=>u});var r=n(72996),a=n.n(r),o=n(70159),l=n.n(o)()(a());l.push([e.id,".-esm-dha-workflow__create-queue-room-modal__createQueueModalLayout___chGmi{display:flex;flex-direction:column;width:100%;row-gap:10px;padding:15px 15px}.-esm-dha-workflow__create-queue-room-modal__createQueueModalLayout___chGmi .-esm-dha-workflow__create-queue-room-modal__sectionHeader___EOIhE{display:flex;flex-direction:column;row-gap:15px;width:100%;padding-bottom:15px}.-esm-dha-workflow__create-queue-room-modal__createQueueModalLayout___chGmi .-esm-dha-workflow__create-queue-room-modal__createQueueModalContentSection___Cxzy2{display:flex;flex-direction:column;width:100%;row-gap:10px}.-esm-dha-workflow__create-queue-room-modal__createQueueModalLayout___chGmi .-esm-dha-workflow__create-queue-room-modal__createQueueModalFormRow___hpNVi{display:flex;flex-direction:row;width:100%;column-gap:10px}.-esm-dha-workflow__create-queue-room-modal__createQueueModalLayout___chGmi .-esm-dha-workflow__create-queue-room-modal__createQueueModalFormControl___9IrAx{display:flex;flex-direction:column;width:100%}","",{version:3,sources:["webpack://./src/service-queues/admin/queue-room/modal/create-queue-room/create-queue-room.modal.scss"],names:[],mappings:"AAAA,4EACI,YAAA,CACA,qBAAA,CACA,UAAA,CACA,YAAA,CACA,iBAAA,CACA,+IACI,YAAA,CACA,qBAAA,CACA,YAAA,CACA,UAAA,CACA,mBAAA,CAEJ,gKACI,YAAA,CACA,qBAAA,CACA,UAAA,CACA,YAAA,CAEJ,yJACI,YAAA,CACA,kBAAA,CACA,UAAA,CACA,eAAA,CAEJ,6JACI,YAAA,CACA,qBAAA,CACA,UAAA",sourcesContent:[".createQueueModalLayout{\n display: flex;\n flex-direction: column;\n width: 100%;\n row-gap: 10px;\n padding: 15px 15px;\n .sectionHeader{\n display: flex;\n flex-direction: column;\n row-gap: 15px;\n width: 100%;\n padding-bottom: 15px;\n }\n .createQueueModalContentSection{\n display: flex;\n flex-direction: column;\n width: 100%;\n row-gap: 10px;\n }\n .createQueueModalFormRow{\n display: flex;\n flex-direction: row;\n width: 100%;\n column-gap: 10px;\n }\n .createQueueModalFormControl{\n display: flex;\n flex-direction: column;\n width: 100%;\n }\n}"],sourceRoot:""}]),l.locals={createQueueModalLayout:"-esm-dha-workflow__create-queue-room-modal__createQueueModalLayout___chGmi",sectionHeader:"-esm-dha-workflow__create-queue-room-modal__sectionHeader___EOIhE",createQueueModalContentSection:"-esm-dha-workflow__create-queue-room-modal__createQueueModalContentSection___Cxzy2",createQueueModalFormRow:"-esm-dha-workflow__create-queue-room-modal__createQueueModalFormRow___hpNVi",createQueueModalFormControl:"-esm-dha-workflow__create-queue-room-modal__createQueueModalFormControl___9IrAx"};const u=l},49067(e,t,n){n.d(t,{A:()=>u});var r=n(72996),a=n.n(r),o=n(70159),l=n.n(o)()(a());l.push([e.id,"","",{version:3,sources:[],names:[],mappings:"",sourceRoot:""}]),l.locals={};const u=l},17910(e,t,n){n.d(t,{A:()=>u});var r=n(72996),a=n.n(r),o=n(70159),l=n.n(o)()(a());l.push([e.id,".-esm-dha-workflow__queue-room-list__queueRoomListLayout___tJwuC{display:flex;flex-direction:column;width:100%;row-gap:10px}.-esm-dha-workflow__queue-room-list__queueRoomListLayout___tJwuC .-esm-dha-workflow__queue-room-list__layoutAction___Lud8B{display:flex;flex-direction:row;justify-content:flex-end;width:100%;column-gap:5px}.-esm-dha-workflow__queue-room-list__actionBtns___JTBc0{display:flex;flex-direction:row;column-gap:10px}.-esm-dha-workflow__queue-room-list__iconBtn___dfvSv:hover{cursor:pointer}","",{version:3,sources:["webpack://./src/service-queues/admin/queue-room/queue-room-list/queue-room-list.scss"],names:[],mappings:"AAAA,iEACI,YAAA,CACA,qBAAA,CACA,UAAA,CACA,YAAA,CACA,2HACI,YAAA,CACA,kBAAA,CACA,wBAAA,CACA,UAAA,CACA,cAAA,CAIR,wDACI,YAAA,CACA,kBAAA,CACA,eAAA,CAEJ,2DACE,cAAA",sourcesContent:[".queueRoomListLayout{\n display: flex;\n flex-direction: column;\n width: 100%;\n row-gap: 10px;\n .layoutAction{\n display: flex;\n flex-direction: row;\n justify-content: flex-end;\n width: 100%;\n column-gap: 5px;\n }\n}\n\n.actionBtns{\n display: flex;\n flex-direction: row;\n column-gap: 10px;\n}\n.iconBtn:hover {\n cursor: pointer;\n}"],sourceRoot:""}]),l.locals={queueRoomListLayout:"-esm-dha-workflow__queue-room-list__queueRoomListLayout___tJwuC",layoutAction:"-esm-dha-workflow__queue-room-list__layoutAction___Lud8B",actionBtns:"-esm-dha-workflow__queue-room-list__actionBtns___JTBc0",iconBtn:"-esm-dha-workflow__queue-room-list__iconBtn___dfvSv"};const u=l},34173(e,t,n){n.d(t,{A:()=>u});var r=n(72996),a=n.n(r),o=n(70159),l=n.n(o)()(a());l.push([e.id,".-esm-dha-workflow__create-queue-modal__createQueueModalLayout___nEDlz{display:flex;flex-direction:column;width:100%;row-gap:10px;padding:15px 15px}.-esm-dha-workflow__create-queue-modal__createQueueModalLayout___nEDlz .-esm-dha-workflow__create-queue-modal__sectionHeader___mLC4N{display:flex;flex-direction:column;row-gap:15px;width:100%;padding-bottom:15px}.-esm-dha-workflow__create-queue-modal__createQueueModalLayout___nEDlz .-esm-dha-workflow__create-queue-modal__createQueueModalContentSection___tv-yP{display:flex;flex-direction:column;width:100%;row-gap:10px}.-esm-dha-workflow__create-queue-modal__createQueueModalLayout___nEDlz .-esm-dha-workflow__create-queue-modal__createQueueModalFormRow___6Os8-{display:flex;flex-direction:row;width:100%;column-gap:10px}.-esm-dha-workflow__create-queue-modal__createQueueModalLayout___nEDlz .-esm-dha-workflow__create-queue-modal__createQueueModalFormControl___9N8-5{display:flex;flex-direction:column;width:100%}","",{version:3,sources:["webpack://./src/service-queues/admin/queue/modal/create-queue/create-queue.modal.scss"],names:[],mappings:"AAAA,uEACI,YAAA,CACA,qBAAA,CACA,UAAA,CACA,YAAA,CACA,iBAAA,CACA,qIACI,YAAA,CACA,qBAAA,CACA,YAAA,CACA,UAAA,CACA,mBAAA,CAEJ,sJACI,YAAA,CACA,qBAAA,CACA,UAAA,CACA,YAAA,CAEJ,+IACI,YAAA,CACA,kBAAA,CACA,UAAA,CACA,eAAA,CAEJ,mJACI,YAAA,CACA,qBAAA,CACA,UAAA",sourcesContent:[".createQueueModalLayout{\n display: flex;\n flex-direction: column;\n width: 100%;\n row-gap: 10px;\n padding: 15px 15px;\n .sectionHeader{\n display: flex;\n flex-direction: column;\n row-gap: 15px;\n width: 100%;\n padding-bottom: 15px;\n }\n .createQueueModalContentSection{\n display: flex;\n flex-direction: column;\n width: 100%;\n row-gap: 10px;\n }\n .createQueueModalFormRow{\n display: flex;\n flex-direction: row;\n width: 100%;\n column-gap: 10px;\n }\n .createQueueModalFormControl{\n display: flex;\n flex-direction: column;\n width: 100%;\n }\n}"],sourceRoot:""}]),l.locals={createQueueModalLayout:"-esm-dha-workflow__create-queue-modal__createQueueModalLayout___nEDlz",sectionHeader:"-esm-dha-workflow__create-queue-modal__sectionHeader___mLC4N",createQueueModalContentSection:"-esm-dha-workflow__create-queue-modal__createQueueModalContentSection___tv-yP",createQueueModalFormRow:"-esm-dha-workflow__create-queue-modal__createQueueModalFormRow___6Os8-",createQueueModalFormControl:"-esm-dha-workflow__create-queue-modal__createQueueModalFormControl___9N8-5"};const u=l},17209(e,t,n){n.d(t,{A:()=>u});var r=n(72996),a=n.n(r),o=n(70159),l=n.n(o)()(a());l.push([e.id,"","",{version:3,sources:[],names:[],mappings:"",sourceRoot:""}]),l.locals={};const u=l},25060(e,t,n){n.d(t,{A:()=>u});var r=n(72996),a=n.n(r),o=n(70159),l=n.n(o)()(a());l.push([e.id,".-esm-dha-workflow__queue-list__queueListLayout___-qkB7{display:flex;flex-direction:column;width:100%;row-gap:10px}.-esm-dha-workflow__queue-list__queueListLayout___-qkB7 .-esm-dha-workflow__queue-list__layoutHeader___lyZtJ{display:flex;flex-direction:row;justify-content:flex-start;width:100%}.-esm-dha-workflow__queue-list__queueListLayout___-qkB7 .-esm-dha-workflow__queue-list__layoutAction___15Irn{display:flex;flex-direction:row;justify-content:flex-end;width:100%;column-gap:5px}.-esm-dha-workflow__queue-list__queueListLayout___-qkB7 .-esm-dha-workflow__queue-list__tableSection___4Cvaq{display:flex;flex-direction:column;width:100%}.-esm-dha-workflow__queue-list__actionBtns___bpgLH{display:flex;flex-direction:row;column-gap:10px}.-esm-dha-workflow__queue-list__iconBtn___xkl2b:hover{cursor:pointer}","",{version:3,sources:["webpack://./src/service-queues/admin/queue/queue-list/queue-list.scss"],names:[],mappings:"AAAA,wDACI,YAAA,CACA,qBAAA,CACA,UAAA,CACA,YAAA,CACA,6GACI,YAAA,CACA,kBAAA,CACA,0BAAA,CACA,UAAA,CAEJ,6GACI,YAAA,CACA,kBAAA,CACA,wBAAA,CACA,UAAA,CACA,cAAA,CAEJ,6GACI,YAAA,CACA,qBAAA,CACA,UAAA,CAIR,mDACI,YAAA,CACA,kBAAA,CACA,eAAA,CAEJ,sDACE,cAAA",sourcesContent:[".queueListLayout{\n display: flex;\n flex-direction: column;\n width: 100%;\n row-gap: 10px;\n .layoutHeader{\n display: flex;\n flex-direction: row;\n justify-content: flex-start;\n width: 100%;\n }\n .layoutAction{\n display: flex;\n flex-direction: row;\n justify-content: flex-end;\n width: 100%;\n column-gap: 5px;\n }\n .tableSection{\n display: flex;\n flex-direction: column;\n width: 100%;\n }\n}\n\n.actionBtns{\n display: flex;\n flex-direction: row;\n column-gap: 10px;\n}\n.iconBtn:hover {\n cursor: pointer;\n}\n"],sourceRoot:""}]),l.locals={queueListLayout:"-esm-dha-workflow__queue-list__queueListLayout___-qkB7",layoutHeader:"-esm-dha-workflow__queue-list__layoutHeader___lyZtJ",layoutAction:"-esm-dha-workflow__queue-list__layoutAction___15Irn",tableSection:"-esm-dha-workflow__queue-list__tableSection___4Cvaq",actionBtns:"-esm-dha-workflow__queue-list__actionBtns___bpgLH",iconBtn:"-esm-dha-workflow__queue-list__iconBtn___xkl2b"};const u=l},54418(e,t,n){n.d(t,{A:()=>u});var r=n(72996),a=n.n(r),o=n(70159),l=n.n(o)()(a());l.push([e.id,".-esm-dha-workflow__service-queue-admin-dashboard-component__queueDashboardLayout___e6ZMk{display:flex;flex-direction:column;row-gap:5px;padding:15px 15px}","",{version:3,sources:["webpack://./src/service-queues/admin/service-queue-admin-dashboard.component.scss"],names:[],mappings:"AAAA,0FACI,YAAA,CACA,qBAAA,CACA,WAAA,CACA,iBAAA",sourcesContent:[".queueDashboardLayout{\n display: flex;\n flex-direction: column;\n row-gap: 5px;\n padding: 15px 15px;\n}"],sourceRoot:""}]),l.locals={queueDashboardLayout:"-esm-dha-workflow__service-queue-admin-dashboard-component__queueDashboardLayout___e6ZMk"};const u=l},34569(e,t,n){n.r(t),n.d(t,{default:()=>qe});var r=n(42257),a=n(96031),o=n.n(a),l=n(97419),u=n(97333),i=n(85072),c=n.n(i),s=n(97825),d=n.n(s),m=n(77659),A=n.n(m),f=n(55056),_=n.n(f),p=n(10540),v=n.n(p),y=n(41113),E=n.n(y),C=n(25060),h={};h.styleTagTransform=E(),h.setAttributes=_(),h.insert=A().bind(null,"head"),h.domAPI=d(),h.insertStyleElement=v(),c()(C.A,h);const b=C.A&&C.A.locals?C.A.locals:void 0;var w=n(34173),I={};I.styleTagTransform=E(),I.setAttributes=_(),I.insert=A().bind(null,"head"),I.domAPI=d(),I.insertStyleElement=v(),c()(w.A,I);const x=w.A&&w.A.locals?w.A.locals:void 0;var S=n(53539);function T(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function g(e,t,n,r,a,o,l){try{var u=e[o](l),i=u.value}catch(e){return void n(e)}u.done?t(i):Promise.resolve(i).then(r,a)}function U(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,a,o=[],l=!0,u=!1;try{for(n=n.call(e);!(l=(r=n.next()).done)&&(o.push(r.value),!t||o.length!==t);l=!0);}catch(e){u=!0,a=e}finally{try{l||null==n.return||n.return()}finally{if(u)throw a}}return o}}(e,t)||function(e,t){if(e){if("string"==typeof e)return T(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?T(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}const N=function(e){var t=e.open,n=e.onModalClose,i=(0,l.useSession)().sessionLocation,c=U((0,a.useState)(),2),s=c[0],d=c[1],m=U((0,a.useState)(),2),A=m[0],f=m[1],_=U((0,a.useState)(),2),p=_[0],v=_[1],y=function(e,t){(0,l.showSnackbar)({kind:t,title:"Queue Deleted",subtitle:e})};return o().createElement(o().Fragment,null,o().createElement(r.aFV,{open:t,size:"md",onSecondarySubmit:function(){return n()},onRequestClose:function(){return n()},onRequestSubmit:function(){return(e=function(){var e;return function(e,t){var n,r,a,o={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]},l=Object.create(("function"==typeof Iterator?Iterator:Object).prototype),u=Object.defineProperty;return u(l,"next",{value:i(0)}),u(l,"throw",{value:i(1)}),u(l,"return",{value:i(2)}),"function"==typeof Symbol&&u(l,Symbol.iterator,{value:function(){return this}}),l;function i(u){return function(i){return function(u){if(n)throw new TypeError("Generator is already executing.");for(;l&&(l=0,u[0]&&(o=0)),o;)try{if(n=1,r&&(a=2&u[0]?r.return:u[0]?r.throw||((a=r.return)&&a.call(r),0):r.next)&&!(a=a.call(r,u[1])).done)return a;switch(r=0,a&&(u=[2&u[0],a.value]),u[0]){case 0:case 1:a=u;break;case 4:return o.label++,{value:u[1],done:!1};case 5:o.label++,r=u[1],u=[0];continue;case 7:u=o.ops.pop(),o.trys.pop();continue;default:if(!((a=(a=o.trys).length>0&&a[a.length-1])||6!==u[0]&&2!==u[0])){o=0;continue}if(3===u[0]&&(!a||u[1]>a[0]&&u[1]<a[3])){o.label=u[1];break}if(6===u[0]&&o.label<a[1]){o.label=a[1],a=u;break}if(a&&o.label<a[2]){o.label=a[2],o.ops.push(u);break}a[2]&&o.ops.pop(),o.trys.pop();continue}u=t.call(e,o)}catch(e){u=[6,e],r=0}finally{n=a=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}([u,i])}}}(this,function(t){switch(t.label){case 0:return function(e){return e.name?e.description?e.service?!!e.service.uuid||(y("Please select as service","error"),!1):(y("Please add the queue service","error"),!1):(y("Please add the queue description","error"),!1):(y("Please add the queue name","error"),!1)}(e={name:s,description:A,service:{uuid:p},location:{uuid:i.uuid}})?[4,(0,u.y0)(e)]:[3,2];case 1:t.sent()&&(y("Queue created successfully!","success"),n()),t.label=2;case 2:return[2]}})},function(){var t=this,n=arguments;return new Promise(function(r,a){var o=e.apply(t,n);function l(e){g(o,r,a,l,u,"next",e)}function u(e){g(o,r,a,l,u,"throw",e)}l(void 0)})})();var e},primaryButtonText:"Create Queue",secondaryButtonText:"Cancel"},o().createElement(r.cwr,null,o().createElement("div",{className:x.createQueueModalLayout},o().createElement("div",{className:x.sectionHeader},o().createElement("h4",{className:x.sectionTitle},"Create Service Queue")),o().createElement("div",{className:x.createQueueModalContentSection},o().createElement("div",{className:x.createQueueModalFormRow},o().createElement("div",{className:x.createQueueModalFormControl},o().createElement(r.ksK,{id:"queue-name",labelText:"Queue Name",onChange:function(e){return function(e){d(e)}(e.target.value)},type:"text"}))),o().createElement("div",{className:x.createQueueModalFormRow},o().createElement("div",{className:x.createQueueModalFormControl},o().createElement(r.ksK,{id:"description",labelText:"Description",onChange:function(e){return t=e.target.value,void f(t);var t},type:"text"}))),o().createElement("div",{className:x.createQueueModalFormRow},o().createElement("div",{className:x.createQueueModalFormControl},o().createElement(r.l6P,{id:"service",labelText:"Service",onChange:function(e){return t=e.target.value,void v(t);var t}},o().createElement(r.ebT,{value:"",text:"Select Service"}),o().createElement(r.ebT,{value:S.XA.TRIAGE_SERVICE_UUID,text:"Triage Service"}),o().createElement(r.ebT,{value:S.XA.CLINICAL_CONSULTATION_SERVICE_UUID,text:"Clinical Consultation Service"}),o().createElement(r.ebT,{value:S.XA.MCH_TRIAGE_SERVICE_UUID,text:"Maternal Child Health Triage Service"}),o().createElement(r.ebT,{value:S.XA.MCH_CLINICAL_CONSULTATION_SERVICE_UUID,text:"Maternal Child Health Consultation Service"}),o().createElement(r.ebT,{value:S.XA.MATERNITY_TRIAGE_SERVICE_UUID,text:"Maternity Triage"}),o().createElement(r.ebT,{value:S.XA.DIALYSIS_TRIAGE_SERVICE_UUID,text:"Renal Triage"}),o().createElement(r.ebT,{value:S.XA.DIALYSIS_CONSULTATION_SERVICE_UUID,text:"Renal Consultation"}),o().createElement(r.ebT,{value:S.XA.ONCOLOGY_TRIAGE_SERVICE_UUID,text:"Oncology Triage"}),o().createElement(r.ebT,{value:S.XA.ONCOLOGY_CONSULTATION_SERVICE_UUID,text:"Oncology Consultation"}),o().createElement(r.ebT,{value:S.XA.DENTAL_TRIAGE_SERVICE_UUID,text:"Dental Triage"}),o().createElement(r.ebT,{value:S.XA.DENTAL_CONSULTATION_SERVICE_UUID,text:"Dental Consultation"}),o().createElement(r.ebT,{value:S.XA.DIAGNOSTIC_AND_IMAGING_TRIAGE_SERVICE_UUID,text:"Diagnosis and Imaging Triage"}),o().createElement(r.ebT,{value:S.XA.DIAGNOSTIC_AND_IMAGING_CONSULTATION_SERVICE_UUID,text:"Diagnosis and Imaging Consultation"}),o().createElement(r.ebT,{value:S.XA.OPTHALMOLOGY_TRIAGE_SERVICE_UUID,text:"Opthalmology Triage"}),o().createElement(r.ebT,{value:S.XA.OPTHALMOLOGY_CONSULTATION_SERVICE_UUID,text:"Opthalmology Consultation"}),o().createElement(r.ebT,{value:S.XA.ICU_TRIAGE_SERVICE_UUID,text:"ICU Triage"}),o().createElement(r.ebT,{value:S.XA.ICU_CONSULTATION_SERVICE_UUID,text:"ICU Consultation"}),o().createElement(r.ebT,{value:S.XA.HDU_TRIAGE_SERVICE_UUID,text:"HDU Triage"}),o().createElement(r.ebT,{value:S.XA.HDU_CONSULTATION_SERVICE_UUID,text:"HDU Consultation"}),o().createElement(r.ebT,{value:S.XA.NICU_NBU_TRIAGE_SERVICE_UUID,text:"NICU/NBU Triage"}),o().createElement(r.ebT,{value:S.XA.NICU_NBU_CONSULTATION_SERVICE_UUID,text:"NICU/NBU Consultation"}),o().createElement(r.ebT,{value:S.XA.PICU_TRIAGE_SERVICE_UUID,text:"PICU Triage"}),o().createElement(r.ebT,{value:S.XA.PICU_CONSULTATION_SERVICE_UUID,text:"PICU Consultation"}),o().createElement(r.ebT,{value:S.XA.ICU_BURNS_UNIT_TRIAGE_SERVICE_UUID,text:"ICU Burns Triage"}),o().createElement(r.ebT,{value:S.XA.ICU_BURNS_UNIT_CONSULTATION_SERVICE_UUID,text:"ICU Burns Consultation"})))))))))};var q=n(92137),k=n(63654),R=n(40771),L=n(17209),O={};O.styleTagTransform=E(),O.setAttributes=_(),O.insert=A().bind(null,"head"),O.domAPI=d(),O.insertStyleElement=v(),c()(L.A,O);const D=L.A&&L.A.locals?L.A.locals:void 0;function Q(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function M(e,t,n,r,a,o,l){try{var u=e[o](l),i=u.value}catch(e){return void n(e)}u.done?t(i):Promise.resolve(i).then(r,a)}function B(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,a,o=[],l=!0,u=!1;try{for(n=n.call(e);!(l=(r=n.next()).done)&&(o.push(r.value),!t||o.length!==t);l=!0);}catch(e){u=!0,a=e}finally{try{l||null==n.return||n.return()}finally{if(u)throw a}}return o}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Q(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Q(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}const F=function(e){var t=e.open,n=e.queue,i=e.onModalClose,c=(0,l.useSession)().sessionLocation,s=B((0,a.useState)(n.name),2),d=s[0],m=s[1],A=B((0,a.useState)(n.description),2),f=A[0],_=A[1],p=B((0,a.useState)(),2),v=p[0],y=p[1];if(!n)return o().createElement(o().Fragment,null,"No Queue selected");var E=function(e,t){(0,l.showSnackbar)({kind:t,title:"Queue Deleted",subtitle:e})};return o().createElement(o().Fragment,null,o().createElement(r.aFV,{open:t,size:"md",onSecondarySubmit:function(){return i()},onRequestClose:function(){return i()},onRequestSubmit:function(){return(e=function(){var e;return function(e,t){var n,r,a,o={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]},l=Object.create(("function"==typeof Iterator?Iterator:Object).prototype),u=Object.defineProperty;return u(l,"next",{value:i(0)}),u(l,"throw",{value:i(1)}),u(l,"return",{value:i(2)}),"function"==typeof Symbol&&u(l,Symbol.iterator,{value:function(){return this}}),l;function i(u){return function(i){return function(u){if(n)throw new TypeError("Generator is already executing.");for(;l&&(l=0,u[0]&&(o=0)),o;)try{if(n=1,r&&(a=2&u[0]?r.return:u[0]?r.throw||((a=r.return)&&a.call(r),0):r.next)&&!(a=a.call(r,u[1])).done)return a;switch(r=0,a&&(u=[2&u[0],a.value]),u[0]){case 0:case 1:a=u;break;case 4:return o.label++,{value:u[1],done:!1};case 5:o.label++,r=u[1],u=[0];continue;case 7:u=o.ops.pop(),o.trys.pop();continue;default:if(!((a=(a=o.trys).length>0&&a[a.length-1])||6!==u[0]&&2!==u[0])){o=0;continue}if(3===u[0]&&(!a||u[1]>a[0]&&u[1]<a[3])){o.label=u[1];break}if(6===u[0]&&o.label<a[1]){o.label=a[1],a=u;break}if(a&&o.label<a[2]){o.label=a[2],o.ops.push(u);break}a[2]&&o.ops.pop(),o.trys.pop();continue}u=t.call(e,o)}catch(e){u=[6,e],r=0}finally{n=a=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}([u,i])}}}(this,function(t){switch(t.label){case 0:return function(e){return e.name?e.description?e.service?!!e.service.uuid||(E("Please select as service","error"),!1):(E("Please add the queue service","error"),!1):(E("Please add the queue description","error"),!1):(E("Please add the queue name","error"),!1)}(e={name:d,description:f,service:{uuid:v},location:{uuid:c.uuid}})?[4,(0,u.EP)(n.uuid,e)]:[3,2];case 1:t.sent()&&(E("Queue updated successfully!","success"),i()),t.label=2;case 2:return[2]}})},function(){var t=this,n=arguments;return new Promise(function(r,a){var o=e.apply(t,n);function l(e){M(o,r,a,l,u,"next",e)}function u(e){M(o,r,a,l,u,"throw",e)}l(void 0)})})();var e},primaryButtonText:"Update Queue",secondaryButtonText:"Cancel"},o().createElement(r.cwr,null,o().createElement("div",{className:D.createQueueModalLayout},o().createElement("div",{className:D.sectionHeader},o().createElement("h4",{className:D.sectionTitle},"Create Service Queue")),o().createElement("div",{className:D.createQueueModalContentSection},o().createElement("div",{className:D.createQueueModalFormRow},o().createElement("div",{className:D.createQueueModalFormControl},o().createElement(r.ksK,{id:"queue-name",labelText:"Queue Name",value:d,onChange:function(e){return function(e){m(e)}(e.target.value)},type:"text"}))),o().createElement("div",{className:D.createQueueModalFormRow},o().createElement("div",{className:D.createQueueModalFormControl},o().createElement(r.ksK,{id:"description",value:f,labelText:"Description",onChange:function(e){return t=e.target.value,void _(t);var t},type:"text"}))),o().createElement("div",{className:D.createQueueModalFormRow},o().createElement("div",{className:D.createQueueModalFormControl},o().createElement(r.l6P,{id:"service",labelText:"Service",onChange:function(e){return t=e.target.value,void y(t);var t}},o().createElement(r.ebT,{value:"",text:"Select Service"}),o().createElement(r.ebT,{value:S.XA.TRIAGE_SERVICE_UUID,text:"Triage Service"}),o().createElement(r.ebT,{value:S.XA.CLINICAL_CONSULTATION_SERVICE_UUID,text:"Clinical Consultation Service"}),o().createElement(r.ebT,{value:S.XA.MCH_TRIAGE_SERVICE_UUID,text:"Maternal Child Health Triage Service"}),o().createElement(r.ebT,{value:S.XA.MCH_CLINICAL_CONSULTATION_SERVICE_UUID,text:"Maternal Child Health Consultation Service"}),o().createElement(r.ebT,{value:S.XA.MATERNITY_TRIAGE_SERVICE_UUID,text:"Maternity Triage"}),o().createElement(r.ebT,{value:S.XA.DIALYSIS_TRIAGE_SERVICE_UUID,text:"Renal Triage"}),o().createElement(r.ebT,{value:S.XA.DIALYSIS_CONSULTATION_SERVICE_UUID,text:"Renal Consultation"}),o().createElement(r.ebT,{value:S.XA.ONCOLOGY_TRIAGE_SERVICE_UUID,text:"Oncology Triage"}),o().createElement(r.ebT,{value:S.XA.ONCOLOGY_CONSULTATION_SERVICE_UUID,text:"Oncology Consultation"}),o().createElement(r.ebT,{value:S.XA.DENTAL_TRIAGE_SERVICE_UUID,text:"Dental Triage"}),o().createElement(r.ebT,{value:S.XA.DENTAL_CONSULTATION_SERVICE_UUID,text:"Dental Consultation"}),o().createElement(r.ebT,{value:S.XA.DIAGNOSTIC_AND_IMAGING_TRIAGE_SERVICE_UUID,text:"Diagnosis and Imaging Triage"}),o().createElement(r.ebT,{value:S.XA.DIAGNOSTIC_AND_IMAGING_CONSULTATION_SERVICE_UUID,text:"Diagnosis and Imaging Consultation"}),o().createElement(r.ebT,{value:S.XA.OPTHALMOLOGY_TRIAGE_SERVICE_UUID,text:"Opthalmology Triage"}),o().createElement(r.ebT,{value:S.XA.OPTHALMOLOGY_CONSULTATION_SERVICE_UUID,text:"Opthalmology Consultation"}),o().createElement(r.ebT,{value:S.XA.ICU_TRIAGE_SERVICE_UUID,text:"ICU Triage"}),o().createElement(r.ebT,{value:S.XA.ICU_CONSULTATION_SERVICE_UUID,text:"ICU Consultation"}),o().createElement(r.ebT,{value:S.XA.HDU_TRIAGE_SERVICE_UUID,text:"HDU Triage"}),o().createElement(r.ebT,{value:S.XA.HDU_CONSULTATION_SERVICE_UUID,text:"HDU Consultation"}),o().createElement(r.ebT,{value:S.XA.NICU_NBU_TRIAGE_SERVICE_UUID,text:"NICU/NBU Triage"}),o().createElement(r.ebT,{value:S.XA.NICU_NBU_CONSULTATION_SERVICE_UUID,text:"NICU/NBU Consultation"}),o().createElement(r.ebT,{value:S.XA.PICU_TRIAGE_SERVICE_UUID,text:"PICU Triage"}),o().createElement(r.ebT,{value:S.XA.PICU_CONSULTATION_SERVICE_UUID,text:"PICU Consultation"}),o().createElement(r.ebT,{value:S.XA.ICU_BURNS_UNIT_TRIAGE_SERVICE_UUID,text:"ICU Burns Triage"}),o().createElement(r.ebT,{value:S.XA.ICU_BURNS_UNIT_CONSULTATION_SERVICE_UUID,text:"ICU Burns Consultation"})))))))))};function P(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function G(e,t,n,r,a,o,l){try{var u=e[o](l),i=u.value}catch(e){return void n(e)}u.done?t(i):Promise.resolve(i).then(r,a)}function V(e){return function(){var t=this,n=arguments;return new Promise(function(r,a){var o=e.apply(t,n);function l(e){G(o,r,a,l,u,"next",e)}function u(e){G(o,r,a,l,u,"throw",e)}l(void 0)})}}function j(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,a,o=[],l=!0,u=!1;try{for(n=n.call(e);!(l=(r=n.next()).done)&&(o.push(r.value),!t||o.length!==t);l=!0);}catch(e){u=!0,a=e}finally{try{l||null==n.return||n.return()}finally{if(u)throw a}}return o}}(e,t)||function(e,t){if(e){if("string"==typeof e)return P(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?P(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function X(e,t){var n,r,a,o={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]},l=Object.create(("function"==typeof Iterator?Iterator:Object).prototype),u=Object.defineProperty;return u(l,"next",{value:i(0)}),u(l,"throw",{value:i(1)}),u(l,"return",{value:i(2)}),"function"==typeof Symbol&&u(l,Symbol.iterator,{value:function(){return this}}),l;function i(u){return function(i){return function(u){if(n)throw new TypeError("Generator is already executing.");for(;l&&(l=0,u[0]&&(o=0)),o;)try{if(n=1,r&&(a=2&u[0]?r.return:u[0]?r.throw||((a=r.return)&&a.call(r),0):r.next)&&!(a=a.call(r,u[1])).done)return a;switch(r=0,a&&(u=[2&u[0],a.value]),u[0]){case 0:case 1:a=u;break;case 4:return o.label++,{value:u[1],done:!1};case 5:o.label++,r=u[1],u=[0];continue;case 7:u=o.ops.pop(),o.trys.pop();continue;default:if(!((a=(a=o.trys).length>0&&a[a.length-1])||6!==u[0]&&2!==u[0])){o=0;continue}if(3===u[0]&&(!a||u[1]>a[0]&&u[1]<a[3])){o.label=u[1];break}if(6===u[0]&&o.label<a[1]){o.label=a[1],a=u;break}if(a&&o.label<a[2]){o.label=a[2],o.ops.push(u);break}a[2]&&o.ops.pop(),o.trys.pop();continue}u=t.call(e,o)}catch(e){u=[6,e],r=0}finally{n=a=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}([u,i])}}}const H=function(){var e=(0,l.useSession)().sessionLocation.uuid,t=j((0,a.useState)([]),2),n=t[0],i=t[1],c=j((0,a.useState)(),2),s=c[0],d=c[1],m=j((0,a.useState)(!1),2),A=m[0],f=m[1],_=j((0,a.useState)(!1),2),p=_[0],v=_[1];(0,a.useEffect)(function(){y()},[e]);var y=function(){return V(function(){var t;return X(this,function(n){switch(n.label){case 0:return[4,(0,u.e9)(e)];case 1:return t=n.sent(),i(t),[2]}})})()};return o().createElement(o().Fragment,null,o().createElement("div",{className:b.queueListLayout},o().createElement("div",{className:b.layoutHeader},o().createElement("h4",null,"Queue Management")),o().createElement("div",{className:b.layoutAction},o().createElement(r.K0,{label:"Add",onClick:function(){return V(function(){return X(this,function(e){return f(!0),y(),[2]})})()}},o().createElement(q.OM,null)),o().createElement(r.$nd,{kind:"ghost",onClick:function(){y()}},"Refresh")),o().createElement("div",null,o().createElement(r.XIK,null,o().createElement(r.ndF,null,o().createElement(r.Hjg,null,o().createElement(r.A0N,null,"No"),o().createElement(r.A0N,null,"Name"),o().createElement(r.A0N,null,"Description"),o().createElement(r.A0N,null,"Location"),o().createElement(r.A0N,null,"Service"),o().createElement(r.A0N,null,"Action"))),o().createElement(r.BFY,null,n.map(function(e,t){return o().createElement(r.Hjg,{key:e.uuid},o().createElement(r.nA6,null,t+1),o().createElement(r.nA6,null,e.name),o().createElement(r.nA6,null,e.description),o().createElement(r.nA6,null,e.location.name),o().createElement(r.nA6,null,e.service.display),o().createElement(r.nA6,null,o().createElement("div",{className:b.actionBtns},o().createElement(k.ep,{onClick:function(){return t=e.uuid,V(function(){return X(this,function(e){switch(e.label){case 0:return[4,(0,u.jv)(t)];case 1:return e.sent(),y(),n="Queue deleted successfully",r="success",(0,l.showSnackbar)({kind:r,title:"Queue Deleted",subtitle:n}),[2]}var n,r})})();var t},className:b.iconBtn}),o().createElement(R.ff,{onClick:function(){return function(e){return V(function(){return X(this,function(t){return d(e),v(!0),[2]})})()}(e)},className:b.iconBtn}))))})))),o().createElement(N,{open:A,onModalClose:function(){f(!1)}}),s&&p?o().createElement(F,{open:p,queue:s,onModalClose:function(){v(!1),y()}}):o().createElement(o().Fragment,null)))};var Y=n(54418),J={};J.styleTagTransform=E(),J.setAttributes=_(),J.insert=A().bind(null,"head"),J.domAPI=d(),J.insertStyleElement=v(),c()(Y.A,J);const K=Y.A&&Y.A.locals?Y.A.locals:void 0;var z=n(17910),$={};$.styleTagTransform=E(),$.setAttributes=_(),$.insert=A().bind(null,"head"),$.domAPI=d(),$.insertStyleElement=v(),c()(z.A,$);const Z=z.A&&z.A.locals?z.A.locals:void 0;var W=n(45559),ee={};ee.styleTagTransform=E(),ee.setAttributes=_(),ee.insert=A().bind(null,"head"),ee.domAPI=d(),ee.insertStyleElement=v(),c()(W.A,ee);const te=W.A&&W.A.locals?W.A.locals:void 0;function ne(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function re(e,t,n,r,a,o,l){try{var u=e[o](l),i=u.value}catch(e){return void n(e)}u.done?t(i):Promise.resolve(i).then(r,a)}function ae(e){return function(){var t=this,n=arguments;return new Promise(function(r,a){var o=e.apply(t,n);function l(e){re(o,r,a,l,u,"next",e)}function u(e){re(o,r,a,l,u,"throw",e)}l(void 0)})}}function oe(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,a,o=[],l=!0,u=!1;try{for(n=n.call(e);!(l=(r=n.next()).done)&&(o.push(r.value),!t||o.length!==t);l=!0);}catch(e){u=!0,a=e}finally{try{l||null==n.return||n.return()}finally{if(u)throw a}}return o}}(e,t)||function(e,t){if(e){if("string"==typeof e)return ne(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ne(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function le(e,t){var n,r,a,o={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]},l=Object.create(("function"==typeof Iterator?Iterator:Object).prototype),u=Object.defineProperty;return u(l,"next",{value:i(0)}),u(l,"throw",{value:i(1)}),u(l,"return",{value:i(2)}),"function"==typeof Symbol&&u(l,Symbol.iterator,{value:function(){return this}}),l;function i(u){return function(i){return function(u){if(n)throw new TypeError("Generator is already executing.");for(;l&&(l=0,u[0]&&(o=0)),o;)try{if(n=1,r&&(a=2&u[0]?r.return:u[0]?r.throw||((a=r.return)&&a.call(r),0):r.next)&&!(a=a.call(r,u[1])).done)return a;switch(r=0,a&&(u=[2&u[0],a.value]),u[0]){case 0:case 1:a=u;break;case 4:return o.label++,{value:u[1],done:!1};case 5:o.label++,r=u[1],u=[0];continue;case 7:u=o.ops.pop(),o.trys.pop();continue;default:if(!((a=(a=o.trys).length>0&&a[a.length-1])||6!==u[0]&&2!==u[0])){o=0;continue}if(3===u[0]&&(!a||u[1]>a[0]&&u[1]<a[3])){o.label=u[1];break}if(6===u[0]&&o.label<a[1]){o.label=a[1],a=u;break}if(a&&o.label<a[2]){o.label=a[2],o.ops.push(u);break}a[2]&&o.ops.pop(),o.trys.pop();continue}u=t.call(e,o)}catch(e){u=[6,e],r=0}finally{n=a=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}([u,i])}}}const ue=function(e){var t=e.open,n=e.onModalClose,i=(0,l.useSession)().sessionLocation.uuid,c=oe((0,a.useState)(),2),s=c[0],d=c[1],m=oe((0,a.useState)(),2),A=m[0],f=m[1],_=oe((0,a.useState)([]),2),p=_[0],v=_[1],y=oe((0,a.useState)(),2),E=y[0],C=y[1];(0,a.useEffect)(function(){h()},[i]);var h=function(){return ae(function(){var e;return le(this,function(t){switch(t.label){case 0:return[4,(0,u.e9)(i)];case 1:return e=t.sent(),v(e),[2]}})})()},b=function(e,t){(0,l.showSnackbar)({kind:t,title:"Queue Deleted",subtitle:e})};return o().createElement(o().Fragment,null,o().createElement(r.aFV,{open:t,size:"md",onSecondarySubmit:function(){return n()},onRequestClose:function(){return n()},onRequestSubmit:function(){return ae(function(){var e;return le(this,function(t){switch(t.label){case 0:return function(e){return e.name?e.description?e.queue?!!e.queue.uuid||(b("Please select a queue service","error"),!1):(b("Please add the queue service","error"),!1):(b("Please add the queue room description","error"),!1):(b("Please add the queue room name","error"),!1)}(e={name:s,description:A,queue:{uuid:E}})?[4,(0,u.HC)(e)]:[3,2];case 1:t.sent()&&(b("Queue Room created successfully!","success"),n()),t.label=2;case 2:return[2]}})})()},primaryButtonText:"Create Queue Room",secondaryButtonText:"Cancel"},o().createElement(r.cwr,null,o().createElement("div",{className:te.createQueueModalLayout},o().createElement("div",{className:te.sectionHeader},o().createElement("h4",{className:te.sectionTitle},"Create Queue Room")),o().createElement("div",{className:te.createQueueModalContentSection},o().createElement("div",{className:te.createQueueModalFormRow},o().createElement("div",{className:te.createQueueModalFormControl},o().createElement(r.ksK,{id:"queue-room-name",labelText:"Queue Room Name",onChange:function(e){return t=e.target.value,void d(t);var t},type:"text"}))),o().createElement("div",{className:te.createQueueModalFormRow},o().createElement("div",{className:te.createQueueModalFormControl},o().createElement(r.ksK,{id:"description",labelText:"Description",onChange:function(e){return t=e.target.value,void f(t);var t},type:"text"}))),o().createElement("div",{className:te.createQueueModalFormRow},o().createElement("div",{className:te.createQueueModalFormControl},o().createElement(r.l6P,{id:"service",labelText:"Service Queue",onChange:function(e){return t=e.target.value,void C(t);var t}},o().createElement(r.ebT,{value:"",text:"Select Queue"}),p.map(function(e){return o().createElement(r.ebT,{value:e.uuid,text:e.display})})))))))))};var ie=n(49067),ce={};ce.styleTagTransform=E(),ce.setAttributes=_(),ce.insert=A().bind(null,"head"),ce.domAPI=d(),ce.insertStyleElement=v(),c()(ie.A,ce);const se=ie.A&&ie.A.locals?ie.A.locals:void 0;function de(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function me(e,t,n,r,a,o,l){try{var u=e[o](l),i=u.value}catch(e){return void n(e)}u.done?t(i):Promise.resolve(i).then(r,a)}function Ae(e){return function(){var t=this,n=arguments;return new Promise(function(r,a){var o=e.apply(t,n);function l(e){me(o,r,a,l,u,"next",e)}function u(e){me(o,r,a,l,u,"throw",e)}l(void 0)})}}function fe(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,a,o=[],l=!0,u=!1;try{for(n=n.call(e);!(l=(r=n.next()).done)&&(o.push(r.value),!t||o.length!==t);l=!0);}catch(e){u=!0,a=e}finally{try{l||null==n.return||n.return()}finally{if(u)throw a}}return o}}(e,t)||function(e,t){if(e){if("string"==typeof e)return de(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?de(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _e(e,t){var n,r,a,o={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]},l=Object.create(("function"==typeof Iterator?Iterator:Object).prototype),u=Object.defineProperty;return u(l,"next",{value:i(0)}),u(l,"throw",{value:i(1)}),u(l,"return",{value:i(2)}),"function"==typeof Symbol&&u(l,Symbol.iterator,{value:function(){return this}}),l;function i(u){return function(i){return function(u){if(n)throw new TypeError("Generator is already executing.");for(;l&&(l=0,u[0]&&(o=0)),o;)try{if(n=1,r&&(a=2&u[0]?r.return:u[0]?r.throw||((a=r.return)&&a.call(r),0):r.next)&&!(a=a.call(r,u[1])).done)return a;switch(r=0,a&&(u=[2&u[0],a.value]),u[0]){case 0:case 1:a=u;break;case 4:return o.label++,{value:u[1],done:!1};case 5:o.label++,r=u[1],u=[0];continue;case 7:u=o.ops.pop(),o.trys.pop();continue;default:if(!((a=(a=o.trys).length>0&&a[a.length-1])||6!==u[0]&&2!==u[0])){o=0;continue}if(3===u[0]&&(!a||u[1]>a[0]&&u[1]<a[3])){o.label=u[1];break}if(6===u[0]&&o.label<a[1]){o.label=a[1],a=u;break}if(a&&o.label<a[2]){o.label=a[2],o.ops.push(u);break}a[2]&&o.ops.pop(),o.trys.pop();continue}u=t.call(e,o)}catch(e){u=[6,e],r=0}finally{n=a=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}([u,i])}}}const pe=function(e){var t=e.open,n=e.queueRoom,i=e.onModalClose,c=(0,l.useSession)().sessionLocation.uuid,s=fe((0,a.useState)(n.name),2),d=s[0],m=s[1],A=fe((0,a.useState)(n.description),2),f=A[0],_=A[1],p=fe((0,a.useState)(),2),v=p[0],y=p[1],E=fe((0,a.useState)([]),2),C=E[0],h=E[1];(0,a.useEffect)(function(){b()},[c]);var b=function(){return Ae(function(){var e;return _e(this,function(t){switch(t.label){case 0:return[4,(0,u.e9)(c)];case 1:return e=t.sent(),h(e),[2]}})})()};if(!n)return o().createElement(o().Fragment,null,"No Queue room selected");var w=function(e,t){(0,l.showSnackbar)({kind:t,title:"Queue Room Updated",subtitle:e})};return o().createElement(o().Fragment,null,o().createElement(r.aFV,{open:t,size:"md",onSecondarySubmit:function(){return i()},onRequestClose:function(){return i()},onRequestSubmit:function(){return Ae(function(){var e;return _e(this,function(t){switch(t.label){case 0:return function(e){return e.name?e.description?e.queue?!!e.queue.uuid||(w("Please select a queue service","error"),!1):(w("Please add the queue service","error"),!1):(w("Please add the queue room description","error"),!1):(w("Please add the queue room name","error"),!1)}(e={name:d,description:f,queue:{uuid:v}})?[4,(0,u.H_)(n.uuid,e)]:[3,2];case 1:t.sent()&&(w("Queue updated successfully!","success"),i()),t.label=2;case 2:return[2]}})})()},primaryButtonText:"Update Queue Room",secondaryButtonText:"Cancel"},o().createElement(r.cwr,null,o().createElement("div",{className:se.createQueueModalLayout},o().createElement("div",{className:se.sectionHeader},o().createElement("h4",{className:se.sectionTitle},"Update Queue Room")),o().createElement("div",{className:se.createQueueModalContentSection},o().createElement("div",{className:se.createQueueModalFormRow},o().createElement("div",{className:se.createQueueModalFormControl},o().createElement(r.ksK,{id:"queue-room-name",labelText:"Queue Room Name",value:d,onChange:function(e){return function(e){m(e)}(e.target.value)},type:"text"}))),o().createElement("div",{className:se.createQueueModalFormRow},o().createElement("div",{className:se.createQueueModalFormControl},o().createElement(r.ksK,{id:"description",value:f,labelText:"Description",onChange:function(e){return t=e.target.value,void _(t);var t},type:"text"}))),o().createElement("div",{className:se.createQueueModalFormRow},o().createElement("div",{className:se.createQueueModalFormControl},o().createElement(r.l6P,{id:"service",labelText:"Service Queue",onChange:function(e){return function(e){y(e)}(e.target.value)}},o().createElement(r.ebT,{value:"",text:"Select Queue"}),C.map(function(e){return o().createElement(r.ebT,{value:e.uuid,text:e.display})})))))))))};function ve(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function ye(e,t,n,r,a,o,l){try{var u=e[o](l),i=u.value}catch(e){return void n(e)}u.done?t(i):Promise.resolve(i).then(r,a)}function Ee(e){return function(){var t=this,n=arguments;return new Promise(function(r,a){var o=e.apply(t,n);function l(e){ye(o,r,a,l,u,"next",e)}function u(e){ye(o,r,a,l,u,"throw",e)}l(void 0)})}}function Ce(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,a,o=[],l=!0,u=!1;try{for(n=n.call(e);!(l=(r=n.next()).done)&&(o.push(r.value),!t||o.length!==t);l=!0);}catch(e){u=!0,a=e}finally{try{l||null==n.return||n.return()}finally{if(u)throw a}}return o}}(e,t)||function(e,t){if(e){if("string"==typeof e)return ve(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ve(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function he(e,t){var n,r,a,o={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]},l=Object.create(("function"==typeof Iterator?Iterator:Object).prototype),u=Object.defineProperty;return u(l,"next",{value:i(0)}),u(l,"throw",{value:i(1)}),u(l,"return",{value:i(2)}),"function"==typeof Symbol&&u(l,Symbol.iterator,{value:function(){return this}}),l;function i(u){return function(i){return function(u){if(n)throw new TypeError("Generator is already executing.");for(;l&&(l=0,u[0]&&(o=0)),o;)try{if(n=1,r&&(a=2&u[0]?r.return:u[0]?r.throw||((a=r.return)&&a.call(r),0):r.next)&&!(a=a.call(r,u[1])).done)return a;switch(r=0,a&&(u=[2&u[0],a.value]),u[0]){case 0:case 1:a=u;break;case 4:return o.label++,{value:u[1],done:!1};case 5:o.label++,r=u[1],u=[0];continue;case 7:u=o.ops.pop(),o.trys.pop();continue;default:if(!((a=(a=o.trys).length>0&&a[a.length-1])||6!==u[0]&&2!==u[0])){o=0;continue}if(3===u[0]&&(!a||u[1]>a[0]&&u[1]<a[3])){o.label=u[1];break}if(6===u[0]&&o.label<a[1]){o.label=a[1],a=u;break}if(a&&o.label<a[2]){o.label=a[2],o.ops.push(u);break}a[2]&&o.ops.pop(),o.trys.pop();continue}u=t.call(e,o)}catch(e){u=[6,e],r=0}finally{n=a=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}([u,i])}}}const be=function(){var e=(0,l.useSession)().sessionLocation.uuid,t=Ce((0,a.useState)([]),2),n=t[0],i=t[1],c=Ce((0,a.useState)(),2),s=c[0],d=c[1],m=Ce((0,a.useState)(!1),2),A=m[0],f=m[1],_=Ce((0,a.useState)(!1),2),p=_[0],v=_[1];(0,a.useEffect)(function(){y()},[e]);var y=function(){return Ee(function(){var t;return he(this,function(n){switch(n.label){case 0:return[4,(0,u.Bx)(e)];case 1:return t=n.sent(),i(t),[2]}})})()};return o().createElement(o().Fragment,null,o().createElement("div",{className:Z.queueRoomListLayout},o().createElement("div",{className:Z.layoutHeader},o().createElement("h4",null,"Queue Room Management")),o().createElement("div",{className:Z.layoutAction},o().createElement(r.K0,{label:"Add",onClick:function(){return Ee(function(){return he(this,function(e){return f(!0),y(),[2]})})()}},o().createElement(q.OM,null)),o().createElement(r.$nd,{kind:"ghost",onClick:function(){y()}},"Refresh")),o().createElement("div",null,o().createElement(r.XIK,null,o().createElement(r.ndF,null,o().createElement(r.Hjg,null,o().createElement(r.A0N,null,"No"),o().createElement(r.A0N,null,"Name"),o().createElement(r.A0N,null,"Description"),o().createElement(r.A0N,null,"Location"),o().createElement(r.A0N,null,"Queue"),o().createElement(r.A0N,null,"Service"),o().createElement(r.A0N,null,"Action"))),o().createElement(r.BFY,null,n.map(function(e,t){return o().createElement(r.Hjg,{key:e.uuid},o().createElement(r.nA6,null,t+1),o().createElement(r.nA6,null,e.display),o().createElement(r.nA6,null,e.description),o().createElement(r.nA6,null,e.queue.location.display.name),o().createElement(r.nA6,null,e.queue.display),o().createElement(r.nA6,null,e.queue.service.display),o().createElement(r.nA6,null,o().createElement("div",{className:Z.actionBtns},o().createElement(k.ep,{onClick:function(){return t=e.uuid,Ee(function(){return he(this,function(e){switch(e.label){case 0:return[4,(0,u.iL)(t)];case 1:return e.sent(),y(),n="Queue Room deleted successfully",r="success",(0,l.showSnackbar)({kind:r,title:"Queue Deleted",subtitle:n}),[2]}var n,r})})();var t},className:Z.iconBtn}),o().createElement(R.ff,{onClick:function(){return t=e,Ee(function(){return he(this,function(e){return d(t),v(!0),[2]})})();var t},className:Z.iconBtn}))))})))),o().createElement(ue,{open:A,onModalClose:function(){f(!1)}}),s&&p?o().createElement(o().Fragment,null,o().createElement(pe,{open:p,queueRoom:s,onModalClose:function(){v(!1),y()}})):o().createElement(o().Fragment,null)))};var we=n(28876),Ie={};Ie.styleTagTransform=E(),Ie.setAttributes=_(),Ie.insert=A().bind(null,"head"),Ie.domAPI=d(),Ie.insertStyleElement=v(),c()(we.A,Ie);const xe=we.A&&we.A.locals?we.A.locals:void 0;function Se(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Te(e,t,n,r,a,o,l){try{var u=e[o](l),i=u.value}catch(e){return void n(e)}u.done?t(i):Promise.resolve(i).then(r,a)}function ge(e){return function(){var t=this,n=arguments;return new Promise(function(r,a){var o=e.apply(t,n);function l(e){Te(o,r,a,l,u,"next",e)}function u(e){Te(o,r,a,l,u,"throw",e)}l(void 0)})}}function Ue(e,t){var n,r,a,o={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]},l=Object.create(("function"==typeof Iterator?Iterator:Object).prototype),u=Object.defineProperty;return u(l,"next",{value:i(0)}),u(l,"throw",{value:i(1)}),u(l,"return",{value:i(2)}),"function"==typeof Symbol&&u(l,Symbol.iterator,{value:function(){return this}}),l;function i(u){return function(i){return function(u){if(n)throw new TypeError("Generator is already executing.");for(;l&&(l=0,u[0]&&(o=0)),o;)try{if(n=1,r&&(a=2&u[0]?r.return:u[0]?r.throw||((a=r.return)&&a.call(r),0):r.next)&&!(a=a.call(r,u[1])).done)return a;switch(r=0,a&&(u=[2&u[0],a.value]),u[0]){case 0:case 1:a=u;break;case 4:return o.label++,{value:u[1],done:!1};case 5:o.label++,r=u[1],u=[0];continue;case 7:u=o.ops.pop(),o.trys.pop();continue;default:if(!((a=(a=o.trys).length>0&&a[a.length-1])||6!==u[0]&&2!==u[0])){o=0;continue}if(3===u[0]&&(!a||u[1]>a[0]&&u[1]<a[3])){o.label=u[1];break}if(6===u[0]&&o.label<a[1]){o.label=a[1],a=u;break}if(a&&o.label<a[2]){o.label=a[2],o.ops.push(u);break}a[2]&&o.ops.pop(),o.trys.pop();continue}u=t.call(e,o)}catch(e){u=[6,e],r=0}finally{n=a=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}([u,i])}}}const Ne=function(){var e,t,n=function(e){return ge(function(){var t;return Ue(this,function(n){switch(n.label){case 0:return[4,(0,u.je)(e)];case 1:return(t=n.sent())&&m(t),[2]}})})()},i=function(){n(c)},c=(0,l.useSession)().sessionLocation.uuid,s=(e=(0,a.useState)([]),t=2,function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,a,o=[],l=!0,u=!1;try{for(n=n.call(e);!(l=(r=n.next()).done)&&(o.push(r.value),!t||o.length!==t);l=!0);}catch(e){u=!0,a=e}finally{try{l||null==n.return||n.return()}finally{if(u)throw a}}return o}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Se(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Se(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),d=s[0],m=s[1];return(0,a.useEffect)(function(){c&&n(c)},[c]),d&&0!==d.length?o().createElement(o().Fragment,null,o().createElement("div",{className:xe.entryListLayout},o().createElement(r.XIK,null,o().createElement(r.ndF,null,o().createElement(r.Hjg,null,o().createElement(r.A0N,null,"No"),o().createElement(r.A0N,null,"Name"),o().createElement(r.A0N,null,"Current Queue"),o().createElement(r.A0N,null,"Coming From"),o().createElement(r.A0N,null,"Status"),o().createElement(r.A0N,null,"Priority"),o().createElement(r.A0N,null,"Started At"),o().createElement(r.A0N,null,"Ended At"),o().createElement(r.A0N,null,"Visit End At"),o().createElement(r.A0N,null,"Action"))),o().createElement(r.BFY,null,d&&d.map(function(e,t){var n;return o().createElement(r.Hjg,{id:e.uuid},o().createElement(r.nA6,null,t+1),o().createElement(r.nA6,null,e.patient?o().createElement(o().Fragment,null,o().createElement(r.N_E,{href:"".concat(window.spaBase,"/patient/").concat(e.patient.uuid,"/chart/")},e.patient?e.patient.person.display:e.display)):o().createElement(o().Fragment,null)),o().createElement(r.nA6,null,e.queue.display),o().createElement(r.nA6,null,e.queueComingFrom?e.queueComingFrom.display:""),o().createElement(r.nA6,null,e.status.display),o().createElement(r.nA6,null,e.priority.display),o().createElement(r.nA6,null,null!==(n=e.startedAt)&&void 0!==n?n:""),o().createElement(r.nA6,null,e.endedAt?(0,l.formatDate)((0,l.parseDate)(e.endedAt)):""),o().createElement(r.nA6,null,e.visit&&e.visit.stopDatetime?(0,l.formatDate)((0,l.parseDate)(e.visit.stopDatetime)):""),o().createElement(r.nA6,null,o().createElement(o().Fragment,null,o().createElement(r.obU,{"aria-label":"overflow-menu"},o().createElement(r.XSD,{itemText:"End",onClick:function(){return t=e,ge(function(){var e,n,r;return Ue(this,function(a){switch(a.label){case 0:return a.trys.push([0,2,3,4]),e=t.visit.stopDatetime?t.visit.stopDatetime:(new Date).toISOString(),[4,(0,u.XG)(t.uuid,e)];case 1:return a.sent(),(0,l.showSnackbar)({kind:"success",title:"Queue entry ended successfully",subtitle:"Queue entry ended successfully"}),[3,4];case 2:return n=a.sent(),(0,l.showSnackbar)({kind:"error",title:"Error closing Queue entry",subtitle:null!==(r=n.message)&&void 0!==r?r:"An error occurred while closing the queue entry"}),[3,4];case 3:return i(),[7];case 4:return[2]}})})();var t}}),o().createElement(r.XSD,{itemText:"Delete",onClick:function(){return t=e,ge(function(){var e,n;return Ue(this,function(r){switch(r.label){case 0:return r.trys.push([0,2,3,4]),[4,(0,u.Jv)(t.uuid)];case 1:return r.sent(),(0,l.showSnackbar)({kind:"success",title:"Queue entry voided successfully",subtitle:"Queue entry voided successfully"}),[3,4];case 2:return e=r.sent(),(0,l.showSnackbar)({kind:"error",title:"Error voiding Queue entry",subtitle:null!==(n=e.message)&&void 0!==n?n:"An error occurred while voiding the queue entry"}),[3,4];case 3:return i(),[7];case 4:return[2]}})})();var t}})))))}))))):o().createElement("h4",null,"No Data to display")},qe=function(){return console.log("service queue admin..."),o().createElement(o().Fragment,null,o().createElement("div",{className:K.queueDashboardLayout},o().createElement(r.tUM,null,o().createElement(r.wbY,{contained:!0},o().createElement(r.ozo,null,"Service Queues"),o().createElement(r.ozo,null,"Queue Rooms"),o().createElement(r.ozo,null,"Queue Entries")),o().createElement(r.T2N,null,o().createElement(r.KpK,null,o().createElement(H,null)),o().createElement(r.KpK,null,o().createElement(be,null)),o().createElement(r.KpK,null,o().createElement(Ne,null))))))}}}]);
@@ -0,0 +1 @@
1
+ {"version":3,"file":"4569.js","mappings":"0MAGAA,QAA8BC,GAA4BC,KAE1DF,EAAAG,KAAA,CAAAC,EAAAC,GAAA,sIAA6K,IAAOC,QAAA,EAAAC,QAAA,qFAAAC,MAAA,GAAAC,SAAA,iDAAAC,eAAA,gHAAgTC,WAAA,MAEpeX,EAAAY,OAAA,CACAC,gBAAA,0EAEA,MAAAC,EAAA,oECPAd,QAA8BC,GAA4BC,KAE1DF,EAAAG,KAAA,CAAAC,EAAAC,GAAA,o/BAA2hC,IAAOC,QAAA,EAAAC,QAAA,yGAAAC,MAAA,GAAAC,SAAA,yPAAAC,eAAA,4sBAAwmCC,WAAA,MAE1oEX,EAAAY,OAAA,CACAG,uBAAA,6EACAC,cAAA,oEACAC,+BAAA,qFACAC,wBAAA,8EACAC,4BAAA,mFAEA,MAAAL,EAAA,oECXAd,QAA8BC,GAA4BC,KAE1DF,EAAAG,KAAA,CAAAC,EAAAC,GAAA,OAAiDC,QAAA,EAAAC,QAAA,GAAAC,MAAA,GAAAC,SAAA,GAAAE,WAAA,MAEjDX,EAAAY,OAAA,GACA,MAAAE,EAAA,oECLAd,QAA8BC,GAA4BC,KAE1DF,EAAAG,KAAA,CAAAC,EAAAC,GAAA,+fAAsiB,IAAOC,QAAA,EAAAC,QAAA,yFAAAC,MAAA,GAAAC,SAAA,gKAAAC,eAAA,0ZAA6sBC,WAAA,MAE1vCX,EAAAY,OAAA,CACAQ,oBAAA,kEACAC,aAAA,2DACAC,WAAA,yDACAC,QAAA,uDAEA,MAAAT,EAAA,oECVAd,Q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pack://@ampath/esm-dha-workflow-app/./src/service-queues/admin/queue-room/modal/create-queue-room/create-queue-room.modal.scss","webpack://@ampath/esm-dha-workflow-app/./src/service-queues/admin/queue-room/modal/edit-queue-room/edit-queue-room.modal.scss","webpack://@ampath/esm-dha-workflow-app/./src/service-queues/admin/queue-room/queue-room-list/queue-room-list.scss","webpack://@ampath/esm-dha-workflow-app/./src/service-queues/admin/queue/modal/create-queue/create-queue.modal.scss","webpack://@ampath/esm-dha-workflow-app/./src/service-queues/admin/queue/modal/edit-queue/edit-queue.modal.scss","webpack://@ampath/esm-dha-workflow-app/./src/service-queues/admin/queue/queue-list/queue-list.scss","webpack://@ampath/esm-dha-workflow-app/./src/service-queues/admin/service-queue-admin-dashboard.component.scss","webpack://@ampath/esm-dha-workflow-app/./src/service-queues/admin/queue/queue-list/queue-list.scss?b3bd","webpack://@ampath/esm-dha-workflow-app/./src/service-queues/admin/queue/modal/create-queue/create-queue.modal.scss?c3d0","webpack://@ampath/esm-dha-workflow-app/./src/service-queues/admin/queue/modal/create-queue/create-queue.modal.tsx","webpack://@ampath/esm-dha-workflow-app/./src/service-queues/admin/queue/modal/edit-queue/edit-queue.modal.scss?bb4f","webpack://@ampath/esm-dha-workflow-app/./src/service-queues/admin/queue/modal/edit-queue/edit-queue.modal.tsx","webpack://@ampath/esm-dha-workflow-app/./src/service-queues/admin/queue/queue-list/queue-list.tsx","webpack://@ampath/esm-dha-workflow-app/./src/service-queues/admin/service-queue-admin-dashboard.component.scss?bbdb","webpack://@ampath/esm-dha-workflow-app/./src/service-queues/admin/queue-room/queue-room-list/queue-room-list.scss?55f3","webpack://@ampath/esm-dha-workflow-app/./src/service-queues/admin/queue-room/modal/create-queue-room/create-queue-room.modal.scss?499e","webpack://@ampath/esm-dha-workflow-app/./src/service-queues/admin/queue-room/modal/create-queue-room/create-queue-room.modal.tsx","webpack://@ampath/esm-dha-workflow-app/./src/service-queues/admin/queue-room/modal/edit-queue-room/edit-queue-room.modal.scss?cffc","webpack://@ampath/esm-dha-workflow-app/./src/service-queues/admin/queue-room/modal/edit-queue-room/edit-queue-room.modal.tsx","webpack://@ampath/esm-dha-workflow-app/./src/service-queues/admin/queue-room/queue-room-list/queue-room-list.tsx","webpack://@ampath/esm-dha-workflow-app/./src/service-queues/admin/queue-entry/queue-entry-list.component.scss?9035","webpack://@ampath/esm-dha-workflow-app/./src/service-queues/admin/queue-entry/queue-entry-list.component.tsx","webpack://@ampath/esm-dha-workflow-app/./src/service-queues/admin/service-queue-admin-dashboard.component.tsx"],"names":["___CSS_LOADER_EXPORT___","_node_modules_openmrs_webpack_config_node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1___default","_node_modules_openmrs_webpack_config_node_modules_css_loader_dist_runtime_cssWithMappingToString_js__WEBPACK_IMPORTED_MODULE_0___default","push","module","id","version","sources","names","mappings","sourcesContent","sourceRoot","locals","entryListLayout","__WEBPACK_DEFAULT_EXPORT__","createQueueModalLayout","sectionHeader","createQueueModalContentSection","createQueueModalFormRow","createQueueModalFormControl","queueRoomListLayout","layoutAction","actionBtns","iconBtn","queueListLayout","layoutHeader","tableSection","queueDashboardLayout","options","styleTagTransform","styleTagTransform_default","setAttributes","setAttributesWithoutAttributes_default","insert","insertBySelector_default","bind","domAPI","styleDomAPI_default","insertStyleElement","insertStyleElement_default","injectStylesIntoStyleTag_default","queue_list","A","queue_list_queue_list","undefined","create_queue_modal_options","create_queue_modal","create_queue_create_queue_modal","modal_create_queue_create_queue_modal","param","open","onModalClose","location","useSession","sessionLocation","useState","queueName","setQueueName","description","setDescription","queueService","setQueueService","showAlert","message","alertType","showSnackbar","kind","title","subtitle","index_js_default","createElement","Fragment","Modal","size","onSecondarySubmit","onRequestClose","onRequestSubmit","payload","name","service","uuid","isValidateCreateQueueDto","createQueue","_state","sent","primaryButtonText","secondaryButtonText","ModalBody","div","className","styles","h4","sectionTitle","TextInput","labelText","onChange","e","handleQueueName","target","value","type","queueDescription","Select","queueServiceUuid","SelectItem","text","QUEUE_SERVICE_UUIDS","TRIAGE_SERVICE_UUID","CLINICAL_CONSULTATION_SERVICE_UUID","MCH_TRIAGE_SERVICE_UUID","MCH_CLINICAL_CONSULTATION_SERVICE_UUID","MATERNITY_TRIAGE_SERVICE_UUID","DIALYSIS_TRIAGE_SERVICE_UUID","DIALYSIS_CONSULTATION_SERVICE_UUID","ONCOLOGY_TRIAGE_SERVICE_UUID","ONCOLOGY_CONSULTATION_SERVICE_UUID","DENTAL_TRIAGE_SERVICE_UUID","DENTAL_CONSULTATION_SERVICE_UUID","DIAGNOSTIC_AND_IMAGING_TRIAGE_SERVICE_UUID","DIAGNOSTIC_AND_IMAGING_CONSULTATION_SERVICE_UUID","OPTHALMOLOGY_TRIAGE_SERVICE_UUID","OPTHALMOLOGY_CONSULTATION_SERVICE_UUID","ICU_TRIAGE_SERVICE_UUID","ICU_CONSULTATION_SERVICE_UUID","HDU_TRIAGE_SERVICE_UUID","HDU_CONSULTATION_SERVICE_UUID","NICU_NBU_TRIAGE_SERVICE_UUID","NICU_NBU_CONSULTATION_SERVICE_UUID","PICU_TRIAGE_SERVICE_UUID","PICU_CONSULTATION_SERVICE_UUID","ICU_BURNS_UNIT_TRIAGE_SERVICE_UUID","ICU_BURNS_UNIT_CONSULTATION_SERVICE_UUID","edit_queue_modal_options","edit_queue_modal","edit_queue_edit_queue_modal","modal_edit_queue_edit_queue_modal","queue","isValidateEditQueueDto","editQueue","queue_queue_list_queue_list","locationUuid","queues","setQueues","selectedQueue","setSelectedQueue","displayCreateQueueModal","setDisplayCreateQueueModal","displayEditQueueModal","setDisplayEditQueueModal","useEffect","fetchQueues","getQueuesByLocationUuid","IconButton","label","onClick","Add","Button","Table","TableHead","TableRow","TableHeader","TableBody","map","index","key","TableCell","display","Delete","queueUuid","deleteQueue","Edit","handleEditQueue","CreateQueueModal","EditQueueModal","service_queue_admin_dashboard_component_options","service_queue_admin_dashboard_component","admin_service_queue_admin_dashboard_component","queue_room_list_options","queue_room_list","queue_room_list_queue_room_list","create_queue_room_modal_options","create_queue_room_modal","create_queue_room_create_queue_room_modal","modal_create_queue_room_create_queue_room_modal","queueRoomName","setQueueRoomName","selectedQueueServiceUuid","setSelectedQueueServiceUuid","isValidateCreateQueueRoomDto","createQueueRoom","edit_queue_room_modal_options","edit_queue_room_modal","edit_queue_room_edit_queue_room_modal","modal_edit_queue_room_edit_queue_room_modal","queueRoom","setQueueServiceUuid","isValidateEditQueueRoomDto","editQueueRoom","handleQueueRoomName","handleQueueService","queue_room_queue_room_list_queue_room_list","queueRooms","setQueueRooms","selectedQueueRoom","setSelectedQueueRoom","displayCreateRoomQueueModal","setDisplayCreateQueueRoomModal","displayEditQueueRoomModal","setDisplayEditQueueRoomModal","fetchQueueRooms","getQueueRoomsByLocationUuid","deleteQueueRoom","CreateQueueRoomModal","EditQueueRoomModal","queue_entry_list_component_options","queue_entry_list_component","queue_entry_queue_entry_list_component","admin_queue_entry_queue_entry_list_component","getQueueEntryList","resp","getQueueEntryByLocationUuid","setQueueEntryList","refreshData","queueEntryList","length","val","patient","Link","href","window","spaBase","concat","person","queueComingFrom","status","priority","startedAt","endedAt","formatDate","parseDate","visit","stopDatetime","OverflowMenu","aria-label","OverflowMenuItem","itemText","queueEntry","error","Date","toISOString","endQueueEntry","deleteQueueEntry","service_queues_admin_service_queue_admin_dashboard_component","console","log","Tabs","TabList","contained","Tab","TabPanels","TabPanel","AdminQueueList","QueueRoomList","QueueEntryList"],"sourceRoot":""}
@@ -1 +1 @@
1
- "use strict";(globalThis.webpackChunk_ampath_esm_dha_workflow_app=globalThis.webpackChunk_ampath_esm_dha_workflow_app||[]).push([[652],{84652:e=>{e.exports=JSON.parse('{"casualGreeting":"hey","configSystem":"מערכת התצורה","configSystemExplainer":"הברכה המוצגת להלן מונעת על ידי מערכת התצורה. כדי לשנות את מאפייני התצורה, לחץ על סמל מפתח הברגים בסרגל הניווט כדי למשוך את החלונית Implementer Tools. לאחר מכן, הקלד <2>תבנית</2> בקלט <4>תצורת חיפוש</4>. זה אמור לסנן את מאפייני התצורה כדי להציג רק את אלו הרלוונטיים למודול זה. אתה יכול לשנות את הערכים של מאפיינים אלה וללחוץ על <6>שמור</6> כדי לראות את השינויים המשתקפים בממשק המשתמש","connect":"לְחַבֵּר","connectExplainer":"צור קשר עם הקהילה","dataFetching":"איסוף נתונים","designDocs":"תיעוד עיצוב","designDocsExplainer":"קרא את תיעוד התכנון של O3","explainer":"הדוגמאות הבאות מדגימות כמה תכונות מפתח של מסגרת O3","extensionExplainer":"הנה כמה קופסאות צבעוניות. מכיוון שהם מחוברים כהרחבות בתוך חריץ, מנהל מערכת יכול לשנות אילו תיבות יוצגו באמצעות תצורה. התיבות האלה מוגדרות במקרה במודול הזה, אבל הן יכולות להכנס למשבצת הזו גם אם הן היו במודול אחר","extensionSystem":"מערכת ההרחבה","formalGreeting":"שלום","frontendDocs":"תיעוד חזיתי","getPatient":"קח מטופל בשם","getStarted":"להתחיל","getStartedExplainer":"צור מודול מתבנית זו","learnExplainer":"למד כיצד להשתמש במסגרת O3","loading":"טוען","patientGetterExplainer":"נסה ללחוץ על הכפתור למטה כדי להביא מטופל מאחור","resources":"משאבים נוספים","usefulLinks":"להלן כמה קישורים למשאבים שימושיים","welcomeText":"ברוכים הבאים לאפליקציית O3 Template"}')}}]);
1
+ "use strict";(globalThis.webpackChunk_ampath_esm_dha_workflow_app=globalThis.webpackChunk_ampath_esm_dha_workflow_app||[]).push([[4652],{84652(e){e.exports=JSON.parse('{"casualGreeting":"hey","configSystem":"מערכת התצורה","configSystemExplainer":"הברכה המוצגת להלן מונעת על ידי מערכת התצורה. כדי לשנות את מאפייני התצורה, לחץ על סמל מפתח הברגים בסרגל הניווט כדי למשוך את החלונית Implementer Tools. לאחר מכן, הקלד <2>תבנית</2> בקלט <4>תצורת חיפוש</4>. זה אמור לסנן את מאפייני התצורה כדי להציג רק את אלו הרלוונטיים למודול זה. אתה יכול לשנות את הערכים של מאפיינים אלה וללחוץ על <6>שמור</6> כדי לראות את השינויים המשתקפים בממשק המשתמש","connect":"לְחַבֵּר","connectExplainer":"צור קשר עם הקהילה","dataFetching":"איסוף נתונים","designDocs":"תיעוד עיצוב","designDocsExplainer":"קרא את תיעוד התכנון של O3","explainer":"הדוגמאות הבאות מדגימות כמה תכונות מפתח של מסגרת O3","extensionExplainer":"הנה כמה קופסאות צבעוניות. מכיוון שהם מחוברים כהרחבות בתוך חריץ, מנהל מערכת יכול לשנות אילו תיבות יוצגו באמצעות תצורה. התיבות האלה מוגדרות במקרה במודול הזה, אבל הן יכולות להכנס למשבצת הזו גם אם הן היו במודול אחר","extensionSystem":"מערכת ההרחבה","formalGreeting":"שלום","frontendDocs":"תיעוד חזיתי","getPatient":"קח מטופל בשם","getStarted":"להתחיל","getStartedExplainer":"צור מודול מתבנית זו","learnExplainer":"למד כיצד להשתמש במסגרת O3","loading":"טוען","patientGetterExplainer":"נסה ללחוץ על הכפתור למטה כדי להביא מטופל מאחור","resources":"משאבים נוספים","usefulLinks":"להלן כמה קישורים למשאבים שימושיים","welcomeText":"ברוכים הבאים לאפליקציית O3 Template"}')}}]);
package/dist/474.js ADDED
@@ -0,0 +1 @@
1
+ "use strict";(globalThis.webpackChunk_ampath_esm_dha_workflow_app=globalThis.webpackChunk_ampath_esm_dha_workflow_app||[]).push([[474,9709],{9410(e,n,t){t.d(n,{A:()=>l});var a=t(72996),r=t.n(a),i=t(70159),o=t.n(i)()(r());o.push([e.id,':root{--brand-01: #005d5d;--brand-02: #004144;--brand-03: #007d79;--bottom-nav-height: 4rem;--workspace-header-height: 3rem;--tablet-workspace-window-height: calc(100vh - var(--omrs-navbar-height) - var(--bottom-nav-height));--desktop-workspace-window-height: calc(100vh - var(--omrs-navbar-height) - var(--workspace-header-height))}.-esm-dha-workflow__switch-intervention-workspace__form___6nO6E{display:flex;flex-direction:column;min-height:100%}.-esm-dha-workflow__switch-intervention-workspace__body___24wPK{display:flex;flex-direction:column;gap:1.5rem;padding:1rem;flex:1 1 auto;min-width:0}.-esm-dha-workflow__switch-intervention-workspace__section___wDnT5{display:flex;flex-direction:column;gap:.75rem;min-width:0}.-esm-dha-workflow__switch-intervention-workspace__sectionTitle___Oa3jo{font-size:var(--cds-heading-compact-02-font-size, 1rem);font-weight:var(--cds-heading-compact-02-font-weight, 600);line-height:var(--cds-heading-compact-02-line-height, 1.375);letter-spacing:var(--cds-heading-compact-02-letter-spacing, 0);color:#161616;margin:0}.-esm-dha-workflow__switch-intervention-workspace__sectionSub___SudRA{font-size:var(--cds-label-01-font-size, 0.75rem);font-weight:var(--cds-label-01-font-weight, 400);line-height:var(--cds-label-01-line-height, 1.33333);letter-spacing:var(--cds-label-01-letter-spacing, 0.32px);color:#525252;margin:0;max-width:56ch}.-esm-dha-workflow__switch-intervention-workspace__emptyState___zGQXy{padding:1.5rem;color:#525252;font-size:var(--cds-body-01-font-size, 0.875rem);font-weight:var(--cds-body-01-font-weight, 400);line-height:var(--cds-body-01-line-height, 1.42857);letter-spacing:var(--cds-body-01-letter-spacing, 0.16px)}.-esm-dha-workflow__switch-intervention-workspace__currentCard___z-155{border:1px solid #e0e0e0;background-color:#edf5ff;padding:.75rem;min-width:0}.-esm-dha-workflow__switch-intervention-workspace__ivGrid___FTT57{display:grid;grid-template-columns:repeat(auto-fill, minmax(14rem, 1fr));gap:.75rem}@media(max-width: 42rem){.-esm-dha-workflow__switch-intervention-workspace__ivGrid___FTT57{grid-template-columns:1fr}}.-esm-dha-workflow__switch-intervention-workspace__ivTile___z\\+K70{text-align:left;background-color:#f4f4f4;border:1px solid #e0e0e0;padding:.75rem;cursor:pointer;min-width:0;transition:border-color 70ms,background-color 70ms}.-esm-dha-workflow__switch-intervention-workspace__ivTile___z\\+K70:hover{border-color:#78a9ff}.-esm-dha-workflow__switch-intervention-workspace__ivTileActive___nM7vM{border-color:#0f62fe;background-color:#edf5ff;box-shadow:inset 0 0 0 1px #0f62fe}.-esm-dha-workflow__switch-intervention-workspace__ivHead___RIXql{display:flex;align-items:center;justify-content:space-between;gap:.5rem;min-width:0}.-esm-dha-workflow__switch-intervention-workspace__ivCode___FF9wm{font-size:var(--cds-label-01-font-size, 0.75rem);font-weight:var(--cds-label-01-font-weight, 400);line-height:var(--cds-label-01-line-height, 1.33333);letter-spacing:var(--cds-label-01-letter-spacing, 0.32px);font-family:"IBM Plex Mono",monospace;color:#0043ce;overflow-wrap:anywhere}.-esm-dha-workflow__switch-intervention-workspace__ivName___JpZz8{font-size:var(--cds-heading-compact-01-font-size, 0.875rem);font-weight:var(--cds-heading-compact-01-font-weight, 600);line-height:var(--cds-heading-compact-01-line-height, 1.28572);letter-spacing:var(--cds-heading-compact-01-letter-spacing, 0.16px);color:#161616;margin:.25rem 0;overflow-wrap:anywhere}.-esm-dha-workflow__switch-intervention-workspace__ivFlags___JJKSp{display:flex;flex-wrap:wrap;gap:.25rem;font-size:var(--cds-label-01-font-size, 0.75rem);font-weight:var(--cds-label-01-font-weight, 400);line-height:var(--cds-label-01-line-height, 1.33333);letter-spacing:var(--cds-label-01-letter-spacing, 0.32px);color:#525252;text-transform:capitalize}.-esm-dha-workflow__switch-intervention-workspace__dateRange___rMqIm{display:grid;grid-template-columns:repeat(auto-fit, minmax(12rem, 1fr));gap:.75rem}.-esm-dha-workflow__switch-intervention-workspace__tagRow___L90yR{display:flex;flex-wrap:wrap;gap:.25rem}.-esm-dha-workflow__switch-intervention-workspace__hintBad___WaVB1{font-size:var(--cds-label-01-font-size, 0.75rem);font-weight:var(--cds-label-01-font-weight, 400);line-height:var(--cds-label-01-line-height, 1.33333);letter-spacing:var(--cds-label-01-letter-spacing, 0.32px);color:#da1e28;margin:0}.-esm-dha-workflow__switch-intervention-workspace__switchPrompt___buLNA{display:flex;align-items:flex-start;gap:.5rem;padding:.75rem 1rem;background-color:#fcf4d6;border-left:3px solid #f1c21b;min-width:0}.-esm-dha-workflow__switch-intervention-workspace__switchPrompt___buLNA svg{color:#b28600;flex:0 0 auto;margin-top:2px}.-esm-dha-workflow__switch-intervention-workspace__switchBody___h2192{min-width:0}.-esm-dha-workflow__switch-intervention-workspace__switchBody___h2192 p{font-size:var(--cds-body-compact-01-font-size, 0.875rem);font-weight:var(--cds-body-compact-01-font-weight, 400);line-height:var(--cds-body-compact-01-line-height, 1.28572);letter-spacing:var(--cds-body-compact-01-letter-spacing, 0.16px);color:#161616;margin:0 0 .5rem;overflow-wrap:anywhere}.-esm-dha-workflow__switch-intervention-workspace__warn___GNzdl{display:flex;align-items:center;gap:.25rem;color:#da1e28}.-esm-dha-workflow__switch-intervention-workspace__switchActions___WiqHJ{display:flex;flex-wrap:wrap;gap:.5rem}.-esm-dha-workflow__switch-intervention-workspace__buttonSet___P8BGN{display:flex;gap:.5rem;padding:.75rem 1rem;border-top:1px solid #e0e0e0}@media(max-width: 42rem){.-esm-dha-workflow__switch-intervention-workspace__buttonSet___P8BGN{flex-direction:column}}',"",{version:3,sources:["webpack://./node_modules/@openmrs/esm-styleguide/src/_vars.scss","webpack://./src/billing/dashboard/v2/claim-visits/switch-intervention/switch-intervention.workspace.scss","webpack://./node_modules/@carbon/layout/scss/generated/_spacing.scss","webpack://./node_modules/@carbon/type/scss/_styles.scss","webpack://./node_modules/@carbon/colors/index.scss"],names:[],mappings:"AAsDA,MACE,mBAAA,CACA,mBAAA,CACA,mBAAA,CACA,yBAAA,CACA,+BAAA,CACA,oGAAA,CACA,2GAAA,CCxDF,gEACE,YAAA,CACA,qBAAA,CACA,eAAA,CAGF,gEACE,YAAA,CACA,qBAAA,CACA,UCsBW,CDrBX,YCgBW,CDfX,aAAA,CACA,WAAA,CAGF,mEACE,YAAA,CACA,qBAAA,CACA,UCGW,CDFX,WAAA,CAGF,wEEu0BI,uDAAA,CAAA,0DAAA,CAAA,4DAAA,CAAA,8DAAA,CFr0BF,aDvBM,CCwBN,QAAA,CAGF,sEEi0BI,gDAAA,CAAA,gDAAA,CAAA,oDAAA,CAAA,yDAAA,CF/zBF,aD5BQ,CC6BR,QAAA,CACA,cAAA,CAGF,sEACE,cCLW,CDMX,aDnC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UCxJW,CDyJX,aGxEO,CH2ET,yEACE,YAAA,CACA,cAAA,CACA,SC1JW,CD8Jb,qEACE,YAAA,CACA,SChKW,CDiKX,mBAAA,CACA,4BAAA,CAGF,yBACE,qEACE,qBAAA,CAAA",sourcesContent:["@use '@carbon/layout';\n\n$ui-01: #f4f4f4;\n$ui-02: #ffffff;\n$ui-03: #e0e0e0;\n$ui-04: #8d8d8d;\n$ui-05: #161616;\n$text-02: #525252;\n$text-03: #a8a8a8;\n$ui-background: #ffffff;\n$color-gray-30: #c6c6c6;\n$color-gray-70: #525252;\n$color-gray-100: #161616;\n$color-blue-60-2: #0f62fe;\n$color-blue-10: #edf5ff;\n$color-yellow-50: #feecae;\n$carbon--red-50: #fa4d56;\n$inverse-link: #78a9ff;\n$support-02: #24a148;\n$inverse-support-03: #f1c21b;\n$warning-background: #fff8e1;\n$openmrs-background-grey: #f4f4f4;\n$danger: #da1e28;\n$interactive-01: #0f62fe;\n$field-01: #f4f4f4;\n$grey-2: #e0e0e0;\n$labeldropdown: #c6c6c6;\n\n$brand-primary-10: #d9fbfb;\n$brand-primary-20: #9ef0f0;\n$brand-primary-30: #3ddbd9;\n$brand-primary-40: #08bdba;\n$brand-primary-50: #009d9a;\n\n/* 60,70 and 80 are already declared as brand-01, 02 and 03 respectively */\n\n$brand-primary-90: #022b30;\n$brand-primary-100: #081a1c;\n\n@mixin brand-01($property) {\n #{$property}: #005d5d;\n #{$property}: var(--brand-01);\n}\n\n@mixin brand-02($property) {\n #{$property}: #004144;\n #{$property}: var(--brand-02);\n}\n\n@mixin brand-03($property) {\n #{$property}: #007d79;\n #{$property}: var(--brand-03);\n}\n\n:root {\n --brand-01: #005d5d;\n --brand-02: #004144;\n --brand-03: #007d79;\n --bottom-nav-height: #{layout.$spacing-10};\n --workspace-header-height: #{layout.$spacing-09};\n --tablet-workspace-window-height: calc(100vh - var(--omrs-navbar-height) - var(--bottom-nav-height));\n --desktop-workspace-window-height: calc(100vh - var(--omrs-navbar-height) - var(--workspace-header-height));\n}\n\n$breakpoint-phone-min: 0px;\n$breakpoint-phone-max: 600px;\n$breakpoint-tablet-min: 601px;\n$breakpoint-tablet-max: 1023px;\n$breakpoint-small-desktop-min: 1024px;\n$breakpoint-small-desktop-max: 1439px;\n$breakpoint-large-desktop-min: 1440px;\n$breakpoint-large-desktop-max: 99999999px;\n\n/* These color variables will be removed in a future release */\n$brand-teal-01: #007d79;\n$brand-01: #005d5d;\n$brand-02: #004144;\n","@use '@carbon/layout';\n@use '@carbon/type';\n@use '@carbon/colors';\n@use '@openmrs/esm-styleguide/src/vars' as *;\n\n.form {\n display: flex;\n flex-direction: column;\n min-height: 100%;\n}\n\n.body {\n display: flex;\n flex-direction: column;\n gap: layout.$spacing-06;\n padding: layout.$spacing-05;\n flex: 1 1 auto;\n min-width: 0;\n}\n\n.section {\n display: flex;\n flex-direction: column;\n gap: layout.$spacing-04;\n min-width: 0;\n}\n\n.sectionTitle {\n @include type.type-style('heading-compact-02');\n color: $ui-05;\n margin: 0;\n}\n\n.sectionSub {\n @include type.type-style('label-01');\n color: $text-02;\n margin: 0;\n max-width: 56ch;\n}\n\n.emptyState {\n padding: layout.$spacing-06;\n color: $text-02;\n @include type.type-style('body-01');\n}\n\n/* current intervention summary */\n.currentCard {\n border: 1px solid $ui-03;\n background-color: colors.$blue-10;\n padding: layout.$spacing-04;\n min-width: 0;\n}\n\n/* alternatives grid — collapses to a single column on narrow widths */\n.ivGrid {\n display: grid;\n grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr));\n gap: layout.$spacing-04;\n}\n\n@media (max-width: 42rem) {\n .ivGrid {\n grid-template-columns: 1fr;\n }\n}\n\n.ivTile {\n text-align: left;\n background-color: $ui-01;\n border: 1px solid $ui-03;\n padding: layout.$spacing-04;\n cursor: pointer;\n min-width: 0;\n transition: border-color 70ms, background-color 70ms;\n\n &:hover {\n border-color: colors.$blue-40;\n }\n}\n\n.ivTileActive {\n border-color: colors.$blue-60;\n background-color: colors.$blue-10;\n box-shadow: inset 0 0 0 1px colors.$blue-60;\n}\n\n.ivHead {\n display: flex;\n align-items: center;\n justify-content: space-between;\n gap: layout.$spacing-03;\n min-width: 0;\n}\n\n.ivCode {\n @include type.type-style('label-01');\n font-family: 'IBM Plex Mono', monospace;\n color: colors.$blue-70;\n overflow-wrap: anywhere;\n}\n\n.ivName {\n @include type.type-style('heading-compact-01');\n color: $ui-05;\n margin: layout.$spacing-02 0;\n overflow-wrap: anywhere;\n}\n\n.ivFlags {\n display: flex;\n flex-wrap: wrap;\n gap: layout.$spacing-02;\n @include type.type-style('label-01');\n color: $text-02;\n text-transform: capitalize;\n}\n\n/* retain bill items date range */\n.dateRange {\n display: grid;\n grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));\n gap: layout.$spacing-04;\n}\n\n.tagRow {\n display: flex;\n flex-wrap: wrap;\n gap: layout.$spacing-02;\n}\n\n.hintBad {\n @include type.type-style('label-01');\n color: colors.$red-60;\n margin: 0;\n}\n\n/* confirmation prompt — mirrors the claim-workspace switch prompt */\n.switchPrompt {\n display: flex;\n align-items: flex-start;\n gap: layout.$spacing-03;\n padding: layout.$spacing-04 layout.$spacing-05;\n background-color: colors.$yellow-10;\n border-left: 3px solid colors.$yellow-30;\n min-width: 0;\n}\n\n.switchPrompt svg {\n color: #b28600;\n flex: 0 0 auto;\n margin-top: 2px;\n}\n\n.switchBody {\n min-width: 0;\n}\n\n.switchBody p {\n @include type.type-style('body-compact-01');\n color: $ui-05;\n margin: 0 0 layout.$spacing-03;\n overflow-wrap: anywhere;\n}\n\n.warn {\n display: flex;\n align-items: center;\n gap: layout.$spacing-02;\n color: colors.$red-60;\n}\n\n.switchActions {\n display: flex;\n flex-wrap: wrap;\n gap: layout.$spacing-03;\n}\n\n/* footer */\n.buttonSet {\n display: flex;\n gap: layout.$spacing-03;\n padding: layout.$spacing-04 layout.$spacing-05;\n border-top: 1px solid $ui-03;\n}\n\n@media (max-width: 42rem) {\n .buttonSet {\n flex-direction: column;\n }\n}\n","// Code generated by @carbon/layout. DO NOT EDIT.\n//\n// Copyright IBM Corp. 2018, 2023\n//\n// This source code is licensed under the Apache-2.0 license found in the\n// LICENSE file in the root directory of this source tree.\n//\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-01: 0.125rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-02: 0.25rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-03: 0.5rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-04: 0.75rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-05: 1rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-06: 1.5rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-07: 2rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-08: 2.5rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-09: 3rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-10: 4rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-11: 5rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-12: 6rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-13: 10rem !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/layout\n$spacing: (\n spacing-01: $spacing-01,\n spacing-02: $spacing-02,\n spacing-03: $spacing-03,\n spacing-04: $spacing-04,\n spacing-05: $spacing-05,\n spacing-06: $spacing-06,\n spacing-07: $spacing-07,\n spacing-08: $spacing-08,\n spacing-09: $spacing-09,\n spacing-10: $spacing-10,\n spacing-11: $spacing-11,\n spacing-12: $spacing-12,\n spacing-13: $spacing-13,\n);\n","//\n// Copyright IBM Corp. 2018, 2023\n//\n// This source code is licensed under the Apache-2.0 license found in the\n// LICENSE file in the root directory of this source tree.\n//\n\n// stylelint-disable number-max-precision\n\n@use 'sass:map';\n@use 'sass:math';\n@use '@carbon/grid/scss/config' as gridconfig;\n@use '@carbon/grid/scss/breakpoint' as grid;\n@use 'prefix' as *;\n@use 'font-family';\n@use 'scale';\n\n/// @type Map\n/// @access public\n/// @deprecated\n/// @group @carbon/type\n$caption-01: (\n font-size: scale.type-scale(1),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.33333,\n letter-spacing: 0.32px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @deprecated\n/// @group @carbon/type\n$caption-02: (\n font-size: scale.type-scale(2),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.28572,\n letter-spacing: 0.32px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$label-01: (\n font-size: scale.type-scale(1),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.33333,\n letter-spacing: 0.32px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$label-02: (\n font-size: scale.type-scale(2),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.28572,\n letter-spacing: 0.16px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$legal-01: (\n font-size: scale.type-scale(1),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.33333,\n letter-spacing: 0.32px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$legal-02: (\n font-size: scale.type-scale(2),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.28572,\n letter-spacing: 0.16px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @deprecated\n/// @group @carbon/type\n$helper-text-01: (\n font-size: scale.type-scale(1),\n line-height: 1.33333,\n letter-spacing: 0.32px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @deprecated\n/// @group @carbon/type\n$helper-text-02: (\n font-size: scale.type-scale(2),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.28572,\n letter-spacing: 0.16px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$body-short-01: (\n font-size: scale.type-scale(2),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.28572,\n letter-spacing: 0.16px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$body-compact-01: $body-short-01 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$body-long-01: (\n font-size: scale.type-scale(2),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.42857,\n letter-spacing: 0.16px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$body-01: $body-long-01 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$body-short-02: (\n font-size: scale.type-scale(3),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.375,\n letter-spacing: 0,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$body-compact-02: $body-short-02 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$body-long-02: (\n font-size: scale.type-scale(3),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.5,\n letter-spacing: 0,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$body-02: $body-long-02 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$code-01: (\n font-family: font-family.font-family('mono'),\n font-size: scale.type-scale(1),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.33333,\n letter-spacing: 0.32px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$code-02: (\n font-family: font-family.font-family('mono'),\n font-size: scale.type-scale(2),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.42857,\n letter-spacing: 0.32px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$heading-01: (\n font-size: scale.type-scale(2),\n font-weight: font-family.font-weight('semibold'),\n line-height: 1.42857,\n letter-spacing: 0.16px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$productive-heading-01: (\n font-size: scale.type-scale(2),\n font-weight: font-family.font-weight('semibold'),\n line-height: 1.28572,\n letter-spacing: 0.16px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$heading-compact-01: $productive-heading-01 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$heading-02: (\n font-size: scale.type-scale(3),\n font-weight: font-family.font-weight('semibold'),\n line-height: 1.5,\n letter-spacing: 0,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$productive-heading-02: (\n font-size: scale.type-scale(3),\n font-weight: font-family.font-weight('semibold'),\n line-height: 1.375,\n letter-spacing: 0,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$heading-compact-02: $productive-heading-02 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$productive-heading-03: (\n font-size: scale.type-scale(5),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.4,\n letter-spacing: 0,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$heading-03: $productive-heading-03 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$productive-heading-04: (\n font-size: scale.type-scale(7),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.28572,\n letter-spacing: 0,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$heading-04: $productive-heading-04 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$productive-heading-05: (\n font-size: scale.type-scale(8),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.25,\n letter-spacing: 0,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$heading-05: $productive-heading-05 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$productive-heading-06: (\n font-size: scale.type-scale(10),\n font-weight: font-family.font-weight('light'),\n // Extra digit needed for precision in Chrome\n line-height: 1.199,\n letter-spacing: 0,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$heading-06: $productive-heading-06 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$productive-heading-07: (\n font-size: scale.type-scale(12),\n font-weight: font-family.font-weight('light'),\n line-height: 1.19,\n letter-spacing: 0,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$heading-07: $productive-heading-07 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$expressive-heading-01: $heading-01 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$expressive-heading-02: $heading-02 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$expressive-heading-03: (\n font-size: scale.type-scale(5),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.4,\n letter-spacing: 0,\n breakpoints: (\n xlg: (\n font-size: scale.type-scale(5),\n line-height: 1.4,\n ),\n max: (\n font-size: scale.type-scale(6),\n line-height: 1.334,\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-heading-03: $expressive-heading-03 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$expressive-heading-04: (\n font-size: scale.type-scale(7),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.28572,\n letter-spacing: 0,\n breakpoints: (\n xlg: (\n font-size: scale.type-scale(8),\n line-height: 1.25,\n font-weight: font-family.font-weight('regular'),\n ),\n max: (\n font-size: scale.type-scale(8),\n font-weight: font-family.font-weight('regular'),\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-heading-04: $expressive-heading-04 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$expressive-heading-05: (\n font-size: scale.type-scale(8),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.25,\n letter-spacing: 0,\n breakpoints: (\n md: (\n font-size: scale.type-scale(9),\n font-weight: font-family.font-weight('light'),\n line-height: 1.22,\n ),\n lg: (\n font-size: scale.type-scale(10),\n line-height: 1.19,\n ),\n xlg: (\n font-size: scale.type-scale(11),\n line-height: 1.17,\n ),\n max: (\n font-size: scale.type-scale(13),\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-heading-05: $expressive-heading-05 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$expressive-heading-06: (\n font-size: scale.type-scale(8),\n font-weight: font-family.font-weight('semibold'),\n line-height: 1.25,\n letter-spacing: 0,\n breakpoints: (\n md: (\n font-size: scale.type-scale(9),\n line-height: 1.22,\n ),\n lg: (\n font-size: scale.type-scale(10),\n line-height: 1.19,\n ),\n xlg: (\n font-size: scale.type-scale(11),\n line-height: 1.17,\n ),\n max: (\n font-size: scale.type-scale(13),\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-heading-06: $expressive-heading-06 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$expressive-paragraph-01: (\n font-size: scale.type-scale(6),\n font-weight: font-family.font-weight('light'),\n line-height: 1.334,\n letter-spacing: 0,\n breakpoints: (\n lg: (\n font-size: scale.type-scale(7),\n line-height: 1.28572,\n ),\n max: (\n font-size: scale.type-scale(8),\n line-height: 1.25,\n ),\n ),\n);\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-paragraph-01: $expressive-paragraph-01 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$quotation-01: (\n font-family: font-family.font-family('serif'),\n font-size: scale.type-scale(5),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.3,\n letter-spacing: 0,\n breakpoints: (\n md: (\n font-size: scale.type-scale(5),\n ),\n lg: (\n font-size: scale.type-scale(6),\n line-height: 1.334,\n ),\n xlg: (\n font-size: scale.type-scale(7),\n line-height: 1.28572,\n ),\n max: (\n font-size: scale.type-scale(8),\n line-height: 1.25,\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-quotation-01: $quotation-01 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$quotation-02: (\n font-family: font-family.font-family('serif'),\n font-size: scale.type-scale(8),\n font-weight: font-family.font-weight('light'),\n line-height: 1.25,\n letter-spacing: 0,\n breakpoints: (\n md: (\n font-size: scale.type-scale(9),\n line-height: 1.22,\n ),\n lg: (\n font-size: scale.type-scale(10),\n line-height: 1.19,\n ),\n xlg: (\n font-size: scale.type-scale(11),\n line-height: 1.17,\n ),\n max: (\n font-size: scale.type-scale(13),\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-quotation-02: $quotation-02 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$display-01: (\n font-size: scale.type-scale(10),\n font-weight: font-family.font-weight('light'),\n line-height: 1.19,\n letter-spacing: 0,\n breakpoints: (\n md: (\n font-size: scale.type-scale(10),\n ),\n lg: (\n font-size: scale.type-scale(12),\n ),\n xlg: (\n font-size: scale.type-scale(13),\n line-height: 1.17,\n ),\n max: (\n font-size: scale.type-scale(15),\n line-height: 1.13,\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-display-01: $display-01 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$display-02: (\n font-size: scale.type-scale(10),\n font-weight: font-family.font-weight('semibold'),\n line-height: 1.19,\n letter-spacing: 0,\n breakpoints: (\n md: (\n font-size: scale.type-scale(10),\n ),\n lg: (\n font-size: scale.type-scale(12),\n ),\n xlg: (\n font-size: scale.type-scale(13),\n line-height: 1.16,\n ),\n max: (\n font-size: scale.type-scale(15),\n line-height: 1.13,\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-display-02: $display-02 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$display-03: (\n font-size: scale.type-scale(10),\n font-weight: font-family.font-weight('light'),\n line-height: 1.19,\n letter-spacing: 0,\n breakpoints: (\n md: (\n font-size: scale.type-scale(12),\n line-height: 1.18,\n ),\n lg: (\n font-size: scale.type-scale(13),\n line-height: 1.16,\n letter-spacing: -0.64px,\n ),\n xlg: (\n font-size: scale.type-scale(15),\n line-height: 1.13,\n letter-spacing: -0.64px,\n ),\n max: (\n font-size: scale.type-scale(16),\n line-height: 1.11,\n letter-spacing: -0.96px,\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-display-03: $display-03 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$display-04: (\n font-size: scale.type-scale(10),\n font-weight: font-family.font-weight('light'),\n line-height: 1.19,\n letter-spacing: 0,\n breakpoints: (\n md: (\n font-size: scale.type-scale(14),\n line-height: 1.15,\n ),\n lg: (\n font-size: scale.type-scale(17),\n line-height: 1.11,\n letter-spacing: -0.64px,\n ),\n xlg: (\n font-size: scale.type-scale(20),\n line-height: 1.07,\n letter-spacing: -0.64px,\n ),\n max: (\n font-size: scale.type-scale(23),\n line-height: 1.05,\n letter-spacing: -0.96px,\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-display-04: $display-04 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$tokens: (\n caption-01: $caption-01,\n caption-02: $caption-02,\n label-01: $label-01,\n label-02: $label-02,\n helper-text-01: $helper-text-01,\n helper-text-02: $helper-text-02,\n body-short-01: $body-short-01,\n body-short-02: $body-short-02,\n body-long-01: $body-long-01,\n body-long-02: $body-long-02,\n code-01: $code-01,\n code-02: $code-02,\n heading-01: $heading-01,\n heading-02: $heading-02,\n productive-heading-01: $productive-heading-01,\n productive-heading-02: $productive-heading-02,\n productive-heading-03: $productive-heading-03,\n productive-heading-04: $productive-heading-04,\n productive-heading-05: $productive-heading-05,\n productive-heading-06: $productive-heading-06,\n productive-heading-07: $productive-heading-07,\n expressive-paragraph-01: $expressive-paragraph-01,\n expressive-heading-01: $expressive-heading-01,\n expressive-heading-02: $expressive-heading-02,\n expressive-heading-03: $expressive-heading-03,\n expressive-heading-04: $expressive-heading-04,\n expressive-heading-05: $expressive-heading-05,\n expressive-heading-06: $expressive-heading-06,\n quotation-01: $quotation-01,\n quotation-02: $quotation-02,\n display-01: $display-01,\n display-02: $display-02,\n display-03: $display-03,\n display-04: $display-04,\n // V11 Tokens\n legal-01: $legal-01,\n legal-02: $legal-02,\n body-compact-01: $body-compact-01,\n body-compact-02: $body-compact-02,\n heading-compact-01: $heading-compact-01,\n heading-compact-02: $heading-compact-02,\n body-01: $body-01,\n body-02: $body-02,\n heading-03: $heading-03,\n heading-04: $heading-04,\n heading-05: $heading-05,\n heading-06: $heading-06,\n heading-07: $heading-07,\n fluid-heading-03: $fluid-heading-03,\n fluid-heading-04: $fluid-heading-04,\n fluid-heading-05: $fluid-heading-05,\n fluid-heading-06: $fluid-heading-06,\n fluid-paragraph-01: $fluid-paragraph-01,\n fluid-quotation-01: $fluid-quotation-01,\n fluid-quotation-02: $fluid-quotation-02,\n fluid-display-01: $fluid-display-01,\n fluid-display-02: $fluid-display-02,\n fluid-display-03: $fluid-display-03,\n fluid-display-04: $fluid-display-04,\n) !default;\n\n/// @param {Map} $map\n/// @access public\n/// @group @carbon/type\n@mixin properties($map) {\n @each $name, $value in $map {\n #{$name}: $value;\n }\n}\n\n/// @param {Number} $value - Number with units\n/// @return {Number} Without units\n/// @access public\n/// @group @carbon/type\n@function strip-unit($value) {\n @return math.div($value, $value * 0 + 1);\n}\n\n/// This helper includes fluid type styles for the given token value. Fluid type\n/// means that the `font-size` is computed using `calc()` in order to be\n/// determined by the screen size instead of a breakpoint. As a result, fluid\n/// styles should be used with caution in fixed width contexts.\n///\n/// In addition, we make use of %-based line-heights so that the line-height of\n/// each type style is computed correctly due to the dynamic nature of the\n/// `font-size`.\n///\n/// Most of the logic for this work comes from CSS Tricks:\n/// https://css-tricks.com/snippets/css/fluid-typography/\n///\n/// @param {Map} $type-styles - The value of a given type token\n/// @param {Map} $breakpoints [$grid-breakpoints] - Custom breakpoints to use\n/// @access public\n/// @group @carbon/type\n@mixin fluid-type($type-styles, $breakpoints: gridconfig.$grid-breakpoints) {\n // Include the initial styles for the given token by default without any\n // media query guard. This includes `font-size` as a fallback in the case\n // that a browser does not support `calc()`\n @include properties(map.remove($type-styles, breakpoints));\n // We also need to include the `sm` styles by default since they don't\n // appear in the fluid styles for tokens\n @include fluid-type-size($type-styles, sm, $breakpoints);\n\n // Finally, we need to go through all the breakpoints defined in the type\n // token and apply the properties and fluid type size for that given\n // breakpoint\n @each $name, $values in map.get($type-styles, breakpoints) {\n @include grid.breakpoint($name) {\n @include properties($values);\n @include fluid-type-size($type-styles, $name, $breakpoints);\n }\n }\n}\n\n/// Computes the fluid `font-size` for a given type style and breakpoint\n/// @param {Map} $type-styles - The styles for a given token\n/// @param {String} $name - The name of the breakpoint to which we apply the fluid\n/// @param {Map} $breakpoints [$grid-breakpoints] - The breakpoints for the grid system\n/// @access public\n/// @group @carbon/type\n@mixin fluid-type-size(\n $type-styles,\n $name,\n $breakpoints: gridconfig.$grid-breakpoints\n) {\n // Get the information about the breakpoint we're currently working in. Useful\n // for getting initial width information\n $breakpoint: map.get($breakpoints, $name);\n\n // Our fluid styles are captured under the 'breakpoints' property in our type\n // styles map. These define what values to treat as `max-` variables below\n $fluid-sizes: map.get($type-styles, breakpoints);\n $fluid-breakpoint: ();\n // Special case for `sm` because the styles for small are on the type style\n // directly\n @if $name == sm {\n $fluid-breakpoint: map.remove($type-styles, breakpoints);\n } @else {\n $fluid-breakpoint: map.get($fluid-sizes, $name);\n }\n\n // Initialize our font-sizes to the default size for the type style\n $max-font-size: map.get($type-styles, font-size);\n $min-font-size: map.get($type-styles, font-size);\n @if map.has-key($fluid-breakpoint, font-size) {\n $min-font-size: map.get($fluid-breakpoint, font-size);\n }\n\n // Initialize our min and max width to the width of the current breakpoint\n $max-vw: map.get($breakpoint, width);\n $min-vw: map.get($breakpoint, width);\n\n // We can use `breakpoint-next` to see if there is another breakpoint we can\n // use to update `max-font-size` and `max-vw` with larger values\n $next-breakpoint-available: grid.breakpoint-next($name, $breakpoints);\n $next-fluid-breakpoint-name: null;\n\n // We need to figure out what the next available fluid breakpoint is for our\n // given $type-styles. In this loop we try and iterate through breakpoints\n // until we either manually set $next-breakpoint-available to null or\n // `breakpoint-next` returns null.\n @while $next-breakpoint-available {\n @if map.has-key($fluid-sizes, $next-breakpoint-available) {\n $next-fluid-breakpoint-name: $next-breakpoint-available;\n $next-breakpoint-available: null;\n } @else {\n $next-breakpoint-available: grid.breakpoint-next(\n $next-breakpoint-available,\n $breakpoints\n );\n }\n }\n\n // If we have found the next available fluid breakpoint name, then we know\n // that we have values that we can use to set max-font-size and max-vw as both\n // values derive from the next breakpoint\n @if $next-fluid-breakpoint-name {\n $next-fluid-breakpoint: map.get($breakpoints, $next-fluid-breakpoint-name);\n $max-font-size: map.get(\n map.get($fluid-sizes, $next-fluid-breakpoint-name),\n font-size\n );\n $max-vw: map.get($next-fluid-breakpoint, width);\n\n // prettier-ignore\n font-size: calc(#{$min-font-size} +\n #{strip-unit($max-font-size - $min-font-size)} *\n ((100vw - #{$min-vw}) / #{strip-unit($max-vw - $min-vw)})\n );\n } @else {\n // Otherwise, just default to setting the font size found from the type\n // style or the given fluid breakpoint in the type style\n font-size: $min-font-size;\n }\n}\n\n// TODO: move following variable and `custom-property` mixin into shared file for\n// both `@carbon/type` and `@carbon/themes`\n\n/// @access private\n/// @group @carbon/type\n@mixin custom-properties($name, $value) {\n @each $property, $value in $value {\n #{$property}: var(\n --#{$custom-property-prefix}-#{$name}-#{$property},\n #{$value}\n );\n }\n}\n\n/// Helper mixin to include the styles for a given token in any selector in your\n/// project. Also includes an optional fluid option that will enable fluid\n/// styles for the token if they are defined. Fluid styles will cause the\n/// token's font-size to be computed based on the viewport size. As a result, use\n/// with caution in fixed contexts.\n/// @param {String} $name - The name of the token to get the styles for\n/// @param {Boolean} $fluid [false] - Specify whether to include fluid styles for the\n/// @param {Map} $breakpoints [$grid-breakpoints] - Provide a custom breakpoint map to use\n/// @access public\n/// @group @carbon/type\n@mixin type-style(\n $name,\n $fluid: false,\n $breakpoints: gridconfig.$grid-breakpoints\n) {\n @if not map.has-key($tokens, $name) {\n @error 'Unable to find a token with the name: `#{$name}`';\n }\n\n $token: map.get($tokens, $name);\n\n // If $fluid is set to true and the token has breakpoints defined for fluid\n // styles, delegate to the fluid-type helper for the given token\n @if $fluid == true and map.has-key($token, 'breakpoints') {\n @include fluid-type($token, $breakpoints);\n } @else {\n @include custom-properties($name, $token);\n }\n}\n","// Code generated by @carbon/colors. DO NOT EDIT.\n//\n// Copyright IBM Corp. 2018, 2026\n//\n// This source code is licensed under the Apache-2.0 license found in the\n// LICENSE file in the root directory of this source tree.\n//\n\n$black: #000000 !default;\n$white: #ffffff !default;\n\n$black-100: #000000 !default;\n$blue-10: #edf5ff !default;\n$blue-20: #d0e2ff !default;\n$blue-30: #a6c8ff !default;\n$blue-40: #78a9ff !default;\n$blue-50: #4589ff !default;\n$blue-60: #0f62fe !default;\n$blue-70: #0043ce !default;\n$blue-80: #002d9c !default;\n$blue-90: #001d6c !default;\n$blue-100: #001141 !default;\n$cool-gray-10: #f2f4f8 !default;\n$cool-gray-20: #dde1e6 !default;\n$cool-gray-30: #c1c7cd !default;\n$cool-gray-40: #a2a9b0 !default;\n$cool-gray-50: #878d96 !default;\n$cool-gray-60: #697077 !default;\n$cool-gray-70: #4d5358 !default;\n$cool-gray-80: #343a3f !default;\n$cool-gray-90: #21272a !default;\n$cool-gray-100: #121619 !default;\n$cyan-10: #e5f6ff !default;\n$cyan-20: #bae6ff !default;\n$cyan-30: #82cfff !default;\n$cyan-40: #33b1ff !default;\n$cyan-50: #1192e8 !default;\n$cyan-60: #0072c3 !default;\n$cyan-70: #00539a !default;\n$cyan-80: #003a6d !default;\n$cyan-90: #012749 !default;\n$cyan-100: #061727 !default;\n$gray-10: #f4f4f4 !default;\n$gray-20: #e0e0e0 !default;\n$gray-30: #c6c6c6 !default;\n$gray-40: #a8a8a8 !default;\n$gray-50: #8d8d8d !default;\n$gray-60: #6f6f6f !default;\n$gray-70: #525252 !default;\n$gray-80: #393939 !default;\n$gray-90: #262626 !default;\n$gray-100: #161616 !default;\n$green-10: #defbe6 !default;\n$green-20: #a7f0ba !default;\n$green-30: #6fdc8c !default;\n$green-40: #42be65 !default;\n$green-50: #24a148 !default;\n$green-60: #198038 !default;\n$green-70: #0e6027 !default;\n$green-80: #044317 !default;\n$green-90: #022d0d !default;\n$green-100: #071908 !default;\n$magenta-10: #fff0f7 !default;\n$magenta-20: #ffd6e8 !default;\n$magenta-30: #ffafd2 !default;\n$magenta-40: #ff7eb6 !default;\n$magenta-50: #ee5396 !default;\n$magenta-60: #d02670 !default;\n$magenta-70: #9f1853 !default;\n$magenta-80: #740937 !default;\n$magenta-90: #510224 !default;\n$magenta-100: #2a0a18 !default;\n$orange-10: #fff2e8 !default;\n$orange-20: #ffd9be !default;\n$orange-30: #ffb784 !default;\n$orange-40: #ff832b !default;\n$orange-50: #eb6200 !default;\n$orange-60: #ba4e00 !default;\n$orange-70: #8a3800 !default;\n$orange-80: #5e2900 !default;\n$orange-90: #3e1a00 !default;\n$orange-100: #231000 !default;\n$purple-10: #f6f2ff !default;\n$purple-20: #e8daff !default;\n$purple-30: #d4bbff !default;\n$purple-40: #be95ff !default;\n$purple-50: #a56eff !default;\n$purple-60: #8a3ffc !default;\n$purple-70: #6929c4 !default;\n$purple-80: #491d8b !default;\n$purple-90: #31135e !default;\n$purple-100: #1c0f30 !default;\n$red-10: #fff1f1 !default;\n$red-20: #ffd7d9 !default;\n$red-30: #ffb3b8 !default;\n$red-40: #ff8389 !default;\n$red-50: #fa4d56 !default;\n$red-60: #da1e28 !default;\n$red-70: #a2191f !default;\n$red-80: #750e13 !default;\n$red-90: #520408 !default;\n$red-100: #2d0709 !default;\n$teal-10: #d9fbfb !default;\n$teal-20: #9ef0f0 !default;\n$teal-30: #3ddbd9 !default;\n$teal-40: #08bdba !default;\n$teal-50: #009d9a !default;\n$teal-60: #007d79 !default;\n$teal-70: #005d5d !default;\n$teal-80: #004144 !default;\n$teal-90: #022b30 !default;\n$teal-100: #081a1c !default;\n$warm-gray-10: #f7f3f2 !default;\n$warm-gray-20: #e5e0df !default;\n$warm-gray-30: #cac5c4 !default;\n$warm-gray-40: #ada8a8 !default;\n$warm-gray-50: #8f8b8b !default;\n$warm-gray-60: #726e6e !default;\n$warm-gray-70: #565151 !default;\n$warm-gray-80: #3c3838 !default;\n$warm-gray-90: #272525 !default;\n$warm-gray-100: #171414 !default;\n$white-0: #ffffff !default;\n$yellow-10: #fcf4d6 !default;\n$yellow-20: #fddc69 !default;\n$yellow-30: #f1c21b !default;\n$yellow-40: #d2a106 !default;\n$yellow-50: #b28600 !default;\n$yellow-60: #8e6a00 !default;\n$yellow-70: #684e00 !default;\n$yellow-80: #483700 !default;\n$yellow-90: #302400 !default;\n$yellow-100: #1c1500 !default;\n\n$white-hover: #e8e8e8 !default;\n$black-hover: #212121 !default;\n$blue-10-hover: #dbebff !default;\n$blue-20-hover: #b8d3ff !default;\n$blue-30-hover: #8ab6ff !default;\n$blue-40-hover: #5c97ff !default;\n$blue-50-hover: #1f70ff !default;\n$blue-60-hover: #0050e6 !default;\n$blue-70-hover: #0053ff !default;\n$blue-80-hover: #0039c7 !default;\n$blue-90-hover: #00258a !default;\n$blue-100-hover: #001f75 !default;\n$cool-gray-10-hover: #e4e9f1 !default;\n$cool-gray-20-hover: #cdd3da !default;\n$cool-gray-30-hover: #adb5bd !default;\n$cool-gray-40-hover: #9199a1 !default;\n$cool-gray-50-hover: #757b85 !default;\n$cool-gray-60-hover: #585e64 !default;\n$cool-gray-70-hover: #5d646a !default;\n$cool-gray-80-hover: #434a51 !default;\n$cool-gray-90-hover: #2b3236 !default;\n$cool-gray-100-hover: #222a2f !default;\n$cyan-10-hover: #cceeff !default;\n$cyan-20-hover: #99daff !default;\n$cyan-30-hover: #57beff !default;\n$cyan-40-hover: #059fff !default;\n$cyan-50-hover: #0f7ec8 !default;\n$cyan-60-hover: #005fa3 !default;\n$cyan-70-hover: #0066bd !default;\n$cyan-80-hover: #00498a !default;\n$cyan-90-hover: #013360 !default;\n$cyan-100-hover: #0b2947 !default;\n$gray-10-hover: #e8e8e8 !default;\n$gray-20-hover: #d1d1d1 !default;\n$gray-30-hover: #b5b5b5 !default;\n$gray-40-hover: #999999 !default;\n$gray-50-hover: #7a7a7a !default;\n$gray-60-hover: #5e5e5e !default;\n$gray-70-hover: #636363 !default;\n$gray-80-hover: #474747 !default;\n$gray-90-hover: #333333 !default;\n$gray-100-hover: #292929 !default;\n$green-10-hover: #b6f6c8 !default;\n$green-20-hover: #74e792 !default;\n$green-30-hover: #36ce5e !default;\n$green-40-hover: #3bab5a !default;\n$green-50-hover: #208e3f !default;\n$green-60-hover: #166f31 !default;\n$green-70-hover: #11742f !default;\n$green-80-hover: #05521c !default;\n$green-90-hover: #033b11 !default;\n$green-100-hover: #0d300f !default;\n$magenta-10-hover: #ffe0ef !default;\n$magenta-20-hover: #ffbdda !default;\n$magenta-30-hover: #ff94c3 !default;\n$magenta-40-hover: #ff57a0 !default;\n$magenta-50-hover: #e3176f !default;\n$magenta-60-hover: #b0215f !default;\n$magenta-70-hover: #bf1d63 !default;\n$magenta-80-hover: #8e0b43 !default;\n$magenta-90-hover: #68032e !default;\n$magenta-100-hover: #53142f !default;\n$orange-10-hover: #ffe2cc !default;\n$orange-20-hover: #ffc69e !default;\n$orange-30-hover: #ff9d57 !default;\n$orange-40-hover: #fa6800 !default;\n$orange-50-hover: #cc5500 !default;\n$orange-60-hover: #9e4200 !default;\n$orange-70-hover: #a84400 !default;\n$orange-80-hover: #753300 !default;\n$orange-90-hover: #522200 !default;\n$orange-100-hover: #421e00 !default;\n$purple-10-hover: #ede5ff !default;\n$purple-20-hover: #dcc7ff !default;\n$purple-30-hover: #c5a3ff !default;\n$purple-40-hover: #ae7aff !default;\n$purple-50-hover: #9352ff !default;\n$purple-60-hover: #7822fb !default;\n$purple-70-hover: #7c3dd6 !default;\n$purple-80-hover: #5b24ad !default;\n$purple-90-hover: #40197b !default;\n$purple-100-hover: #341c59 !default;\n$red-10-hover: #ffe0e0 !default;\n$red-20-hover: #ffc2c5 !default;\n$red-30-hover: #ff99a0 !default;\n$red-40-hover: #ff6168 !default;\n$red-50-hover: #ee0713 !default;\n$red-60-hover: #b81922 !default;\n$red-70-hover: #c21e25 !default;\n$red-80-hover: #921118 !default;\n$red-90-hover: #66050a !default;\n$red-100-hover: #540d11 !default;\n$teal-10-hover: #acf6f6 !default;\n$teal-20-hover: #57e5e5 !default;\n$teal-30-hover: #25cac8 !default;\n$teal-40-hover: #07aba9 !default;\n$teal-50-hover: #008a87 !default;\n$teal-60-hover: #006b68 !default;\n$teal-70-hover: #007070 !default;\n$teal-80-hover: #005357 !default;\n$teal-90-hover: #033940 !default;\n$teal-100-hover: #0f3034 !default;\n$warm-gray-10-hover: #f0e8e6 !default;\n$warm-gray-20-hover: #d8d0cf !default;\n$warm-gray-30-hover: #b9b3b1 !default;\n$warm-gray-40-hover: #9c9696 !default;\n$warm-gray-50-hover: #7f7b7b !default;\n$warm-gray-60-hover: #605d5d !default;\n$warm-gray-70-hover: #696363 !default;\n$warm-gray-80-hover: #4c4848 !default;\n$warm-gray-90-hover: #343232 !default;\n$warm-gray-100-hover: #2c2626 !default;\n$yellow-10-hover: #f8e6a0 !default;\n$yellow-20-hover: #fccd27 !default;\n$yellow-30-hover: #ddb00e !default;\n$yellow-40-hover: #bc9005 !default;\n$yellow-50-hover: #9e7700 !default;\n$yellow-60-hover: #755800 !default;\n$yellow-70-hover: #806000 !default;\n$yellow-80-hover: #5c4600 !default;\n$yellow-90-hover: #3d2e00 !default;\n$yellow-100-hover: #332600 !default;\n\n/// Colors from the IBM Design Language\n/// @access public\n/// @group @carbon/colors\n$colors: (\n black: (\n 100: #000000,\n ),\n blue: (\n 10: #edf5ff,\n 20: #d0e2ff,\n 30: #a6c8ff,\n 40: #78a9ff,\n 50: #4589ff,\n 60: #0f62fe,\n 70: #0043ce,\n 80: #002d9c,\n 90: #001d6c,\n 100: #001141,\n ),\n cool-gray: (\n 10: #f2f4f8,\n 20: #dde1e6,\n 30: #c1c7cd,\n 40: #a2a9b0,\n 50: #878d96,\n 60: #697077,\n 70: #4d5358,\n 80: #343a3f,\n 90: #21272a,\n 100: #121619,\n ),\n cyan: (\n 10: #e5f6ff,\n 20: #bae6ff,\n 30: #82cfff,\n 40: #33b1ff,\n 50: #1192e8,\n 60: #0072c3,\n 70: #00539a,\n 80: #003a6d,\n 90: #012749,\n 100: #061727,\n ),\n gray: (\n 10: #f4f4f4,\n 20: #e0e0e0,\n 30: #c6c6c6,\n 40: #a8a8a8,\n 50: #8d8d8d,\n 60: #6f6f6f,\n 70: #525252,\n 80: #393939,\n 90: #262626,\n 100: #161616,\n ),\n green: (\n 10: #defbe6,\n 20: #a7f0ba,\n 30: #6fdc8c,\n 40: #42be65,\n 50: #24a148,\n 60: #198038,\n 70: #0e6027,\n 80: #044317,\n 90: #022d0d,\n 100: #071908,\n ),\n magenta: (\n 10: #fff0f7,\n 20: #ffd6e8,\n 30: #ffafd2,\n 40: #ff7eb6,\n 50: #ee5396,\n 60: #d02670,\n 70: #9f1853,\n 80: #740937,\n 90: #510224,\n 100: #2a0a18,\n ),\n orange: (\n 10: #fff2e8,\n 20: #ffd9be,\n 30: #ffb784,\n 40: #ff832b,\n 50: #eb6200,\n 60: #ba4e00,\n 70: #8a3800,\n 80: #5e2900,\n 90: #3e1a00,\n 100: #231000,\n ),\n purple: (\n 10: #f6f2ff,\n 20: #e8daff,\n 30: #d4bbff,\n 40: #be95ff,\n 50: #a56eff,\n 60: #8a3ffc,\n 70: #6929c4,\n 80: #491d8b,\n 90: #31135e,\n 100: #1c0f30,\n ),\n red: (\n 10: #fff1f1,\n 20: #ffd7d9,\n 30: #ffb3b8,\n 40: #ff8389,\n 50: #fa4d56,\n 60: #da1e28,\n 70: #a2191f,\n 80: #750e13,\n 90: #520408,\n 100: #2d0709,\n ),\n teal: (\n 10: #d9fbfb,\n 20: #9ef0f0,\n 30: #3ddbd9,\n 40: #08bdba,\n 50: #009d9a,\n 60: #007d79,\n 70: #005d5d,\n 80: #004144,\n 90: #022b30,\n 100: #081a1c,\n ),\n warm-gray: (\n 10: #f7f3f2,\n 20: #e5e0df,\n 30: #cac5c4,\n 40: #ada8a8,\n 50: #8f8b8b,\n 60: #726e6e,\n 70: #565151,\n 80: #3c3838,\n 90: #272525,\n 100: #171414,\n ),\n white: (\n 0: #ffffff,\n ),\n yellow: (\n 10: #fcf4d6,\n 20: #fddc69,\n 30: #f1c21b,\n 40: #d2a106,\n 50: #b28600,\n 60: #8e6a00,\n 70: #684e00,\n 80: #483700,\n 90: #302400,\n 100: #1c1500,\n ),\n) !default;\n"],sourceRoot:""}]),o.locals={form:"-esm-dha-workflow__switch-intervention-workspace__form___6nO6E",body:"-esm-dha-workflow__switch-intervention-workspace__body___24wPK",section:"-esm-dha-workflow__switch-intervention-workspace__section___wDnT5",sectionTitle:"-esm-dha-workflow__switch-intervention-workspace__sectionTitle___Oa3jo",sectionSub:"-esm-dha-workflow__switch-intervention-workspace__sectionSub___SudRA",emptyState:"-esm-dha-workflow__switch-intervention-workspace__emptyState___zGQXy",currentCard:"-esm-dha-workflow__switch-intervention-workspace__currentCard___z-155",ivGrid:"-esm-dha-workflow__switch-intervention-workspace__ivGrid___FTT57",ivTile:"-esm-dha-workflow__switch-intervention-workspace__ivTile___z+K70",ivTileActive:"-esm-dha-workflow__switch-intervention-workspace__ivTileActive___nM7vM",ivHead:"-esm-dha-workflow__switch-intervention-workspace__ivHead___RIXql",ivCode:"-esm-dha-workflow__switch-intervention-workspace__ivCode___FF9wm",ivName:"-esm-dha-workflow__switch-intervention-workspace__ivName___JpZz8",ivFlags:"-esm-dha-workflow__switch-intervention-workspace__ivFlags___JJKSp",dateRange:"-esm-dha-workflow__switch-intervention-workspace__dateRange___rMqIm",tagRow:"-esm-dha-workflow__switch-intervention-workspace__tagRow___L90yR",hintBad:"-esm-dha-workflow__switch-intervention-workspace__hintBad___WaVB1",switchPrompt:"-esm-dha-workflow__switch-intervention-workspace__switchPrompt___buLNA",switchBody:"-esm-dha-workflow__switch-intervention-workspace__switchBody___h2192",warn:"-esm-dha-workflow__switch-intervention-workspace__warn___GNzdl",switchActions:"-esm-dha-workflow__switch-intervention-workspace__switchActions___WiqHJ",buttonSet:"-esm-dha-workflow__switch-intervention-workspace__buttonSet___P8BGN"};const l=o},70159(e){e.exports=function(e){var n=[];return n.toString=function(){return this.map(function(n){var t=e(n);return n[2]?"@media ".concat(n[2]," {").concat(t,"}"):t}).join("")},n.i=function(e,t,a){"string"==typeof e&&(e=[[null,e,""]]);var r={};if(a)for(var i=0;i<this.length;i++){var o=this[i][0];null!=o&&(r[o]=!0)}for(var l=0;l<e.length;l++){var c=[].concat(e[l]);a&&r[c[0]]||(t&&(c[2]?c[2]="".concat(t," and ").concat(c[2]):c[2]=t),n.push(c))}},n}},72996(e){function n(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,a=new Array(n);t<n;t++)a[t]=e[t];return a}e.exports=function(e){var t,a,r=(a=4,function(e){if(Array.isArray(e))return e}(t=e)||function(e,n){var t=e&&("undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"]);if(null!=t){var a,r,i=[],o=!0,l=!1;try{for(t=t.call(e);!(o=(a=t.next()).done)&&(i.push(a.value),!n||i.length!==n);o=!0);}catch(e){l=!0,r=e}finally{try{o||null==t.return||t.return()}finally{if(l)throw r}}return i}}(t,a)||function(e,t){if(e){if("string"==typeof e)return n(e,t);var a=Object.prototype.toString.call(e).slice(8,-1);return"Object"===a&&e.constructor&&(a=e.constructor.name),"Map"===a||"Set"===a?Array.from(e):"Arguments"===a||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a)?n(e,t):void 0}}(t,a)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),i=r[1],o=r[3];if(!o)return i;if("function"==typeof btoa){var l=btoa(unescape(encodeURIComponent(JSON.stringify(o)))),c="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(l),s="/*# ".concat(c," */"),u=o.sources.map(function(e){return"/*# sourceURL=".concat(o.sourceRoot||"").concat(e," */")});return[i].concat(u).concat([s]).join("\n")}return[i].join("\n")}},50474(e,n,t){t.r(n),t.d(n,{default:()=>j});var a=t(96031),r=t.n(a),i=t(42257),o=t(83270),l=t(87176),c=t(97419),s=t(13987),u=t(85072),d=t.n(u),f=t(97825),p=t.n(f),h=t(77659),g=t.n(h),m=t(55056),y=t.n(m),b=t(10540),v=t.n(b),w=t(41113),$=t.n(w),A=t(9410),_={};_.styleTagTransform=$(),_.setAttributes=y(),_.insert=g().bind(null,"head"),_.domAPI=p(),_.insertStyleElement=v(),d()(A.A,_);const k=A.A&&A.A.locals?A.A.locals:void 0;var C=t(5413),x=t(41843),E=t(62404),S=t(72343);function z(e,n,t,a,r,i,o){try{var l=e[i](o),c=l.value}catch(e){return void t(e)}l.done?n(c):Promise.resolve(c).then(a,r)}function B(e){return(n=function(e){var n,t,a,r,i,o,l,c,s,u,d,f;return function(e,n){var t,a,r,i={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]},o=Object.create(("function"==typeof Iterator?Iterator:Object).prototype),l=Object.defineProperty;return l(o,"next",{value:c(0)}),l(o,"throw",{value:c(1)}),l(o,"return",{value:c(2)}),"function"==typeof Symbol&&l(o,Symbol.iterator,{value:function(){return this}}),o;function c(l){return function(c){return function(l){if(t)throw new TypeError("Generator is already executing.");for(;o&&(o=0,l[0]&&(i=0)),i;)try{if(t=1,a&&(r=2&l[0]?a.return:l[0]?a.throw||((r=a.return)&&r.call(a),0):a.next)&&!(r=r.call(a,l[1])).done)return r;switch(a=0,r&&(l=[2&l[0],r.value]),l[0]){case 0:case 1:r=l;break;case 4:return i.label++,{value:l[1],done:!1};case 5:i.label++,a=l[1],l=[0];continue;case 7:l=i.ops.pop(),i.trys.pop();continue;default:if(!((r=(r=i.trys).length>0&&r[r.length-1])||6!==l[0]&&2!==l[0])){i=0;continue}if(3===l[0]&&(!r||l[1]>r[0]&&l[1]<r[3])){i.label=l[1];break}if(6===l[0]&&i.label<r[1]){i.label=r[1],r=l;break}if(r&&i.label<r[2]){i.label=r[2],i.ops.push(l);break}r[2]&&i.ops.pop(),i.trys.pop();continue}l=n.call(e,i)}catch(e){l=[6,e],a=0}finally{t=r=0}if(5&l[0])throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}([l,c])}}}(this,function(p){switch(p.label){case 0:return n=e.patientUuid,t=e.visitUuid,a=e.locationUuid,r=e.providerUuid,i=e.orderEncounterTypeUuid,o=e.outPatientCareSettingUuid,l=e.shaInterventionSwitchingUuid,s={patient:n,location:a,encounterType:i,encounterDatetime:(new Date).toISOString(),visit:t,obs:[],orders:[{action:"NEW",type:"order",patient:n,careSetting:o,orderer:r,concept:l,urgency:"ROUTINE"}]},[4,(0,S.iw)(s)];case 1:if(u=p.sent(),!(null==(d=null==u||null===(c=u.orders)||void 0===c?void 0:c[0])?void 0:d.uuid))throw new Error("Order encounter was created without an order");return[4,(0,S.r$)(d.uuid)];case 2:return f=p.sent(),[2,{orderUuid:d.uuid,orderNumber:null==f?void 0:f.orderNumber}]}})},function(){var e=this,t=arguments;return new Promise(function(a,r){var i=n.apply(e,t);function o(e){z(i,a,r,o,l,"next",e)}function l(e){z(i,a,r,o,l,"throw",e)}o(void 0)})}).apply(this,arguments);var n}function T(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,a=new Array(n);t<n;t++)a[t]=e[t];return a}function I(e,n,t,a,r,i,o){try{var l=e[i](o),c=l.value}catch(e){return void t(e)}l.done?n(c):Promise.resolve(c).then(a,r)}function M(e){return function(){var n=this,t=arguments;return new Promise(function(a,r){var i=e.apply(n,t);function o(e){I(i,a,r,o,l,"next",e)}function l(e){I(i,a,r,o,l,"throw",e)}o(void 0)})}}function N(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function F(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,n){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var a,r,i=[],o=!0,l=!1;try{for(t=t.call(e);!(o=(a=t.next()).done)&&(i.push(a.value),!n||i.length!==n);o=!0);}catch(e){l=!0,r=e}finally{try{o||null==t.return||t.return()}finally{if(l)throw r}}return i}}(e,n)||function(e,n){if(e){if("string"==typeof e)return T(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(t):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?T(e,n):void 0}}(e,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function O(e,n){var t,a,r,i={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]},o=Object.create(("function"==typeof Iterator?Iterator:Object).prototype),l=Object.defineProperty;return l(o,"next",{value:c(0)}),l(o,"throw",{value:c(1)}),l(o,"return",{value:c(2)}),"function"==typeof Symbol&&l(o,Symbol.iterator,{value:function(){return this}}),o;function c(l){return function(c){return function(l){if(t)throw new TypeError("Generator is already executing.");for(;o&&(o=0,l[0]&&(i=0)),i;)try{if(t=1,a&&(r=2&l[0]?a.return:l[0]?a.throw||((r=a.return)&&r.call(a),0):a.next)&&!(r=r.call(a,l[1])).done)return r;switch(a=0,r&&(l=[2&l[0],r.value]),l[0]){case 0:case 1:r=l;break;case 4:return i.label++,{value:l[1],done:!1};case 5:i.label++,a=l[1],l=[0];continue;case 7:l=i.ops.pop(),i.trys.pop();continue;default:if(!((r=(r=i.trys).length>0&&r[r.length-1])||6!==l[0]&&2!==l[0])){i=0;continue}if(3===l[0]&&(!r||l[1]>r[0]&&l[1]<r[3])){i.label=l[1];break}if(6===l[0]&&i.label<r[1]){i.label=r[1],r=l;break}if(r&&i.label<r[2]){i.label=r[2],i.ops.push(l);break}r[2]&&i.ops.pop(),i.trys.pop();continue}l=n.call(e,i)}catch(e){l=[6,e],a=0}finally{t=r=0}if(5&l[0])throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}([l,c])}}}var D=function(e){var n;return"ACTIVE"===(null!==(n=null==e?void 0:e.workflow_state)&&void 0!==n?n:"").toUpperCase()},P=function(e){if(!e)return"";var n,t,a=(n=e,(null!=(t=Date)&&"undefined"!=typeof Symbol&&t[Symbol.hasInstance]?t[Symbol.hasInstance](n):n instanceof t)?e:new Date(e));return Number.isNaN(a.getTime())?"":a.toISOString()},U=function(e){var n,t,u,d,f=e.closeWorkspace,p=e.consentToken,h=e.currentInterventions,g=e.patientId,m=e.patientUuid,y=e.visitUuid,b=e.billDate,v=e.onSwitchSuccess,w=(0,s.useTranslation)().t,$=(0,c.useSession)(),A=null===(u=$.sessionLocation)||void 0===u?void 0:u.uuid,_=(0,c.useConfig)(),S=_.orderEncounterTypeUuid,z=_.outPatientCareSettingUuid,T=_.shaInterventionSwitchingUuid,I=_.shaPaymentModeUuid,N=F((0,a.useState)(null!==(n=null===(d=(null!=h?h:[]).find(D))||void 0===d?void 0:d.intervention_code)&&void 0!==n?n:""),2),U=N[0],j=N[1],G=F((0,a.useState)(""),2),L=G[0],W=G[1],R=F((0,a.useState)(""),2),q=R[0],H=R[1],J=F((0,a.useState)(!0),2),X=J[0],Y=J[1],V=F((0,a.useState)(""),2),Q=V[0],K=V[1],Z=F((0,a.useState)(""),2),ee=Z[0],ne=Z[1],te=F((0,a.useState)(""),2),ae=te[0],re=te[1],ie=F((0,a.useState)(!1),2),oe=ie[0],le=ie[1],ce=F((0,a.useState)(!1),2),se=ce[0],ue=ce[1],de=F((0,a.useState)(""),2),fe=de[0],pe=de[1],he=F((0,a.useState)(""),2),ge=he[0],me=he[1],ye=F((0,a.useState)(!1),2),be=ye[0],ve=ye[1],we=F((0,a.useState)(!1),2),$e=we[0],Ae=we[1],_e=F((0,a.useState)(""),2),ke=_e[0],Ce=_e[1],xe=F((0,a.useState)(!1),2),Ee=xe[0],Se=xe[1],ze=F((0,a.useState)(!1),2),Be=ze[0],Te=ze[1],Ie=(0,c.useVisit)(m).activeVisit,Me=(0,E.ZT)().lineItems,Ne=(0,E.Ps)().cashPoints,Fe=(0,a.useMemo)(function(){return(null!=Me?Me:[]).find(function(e){return e.uuid===ae})},[Me,ae]),Oe=(0,a.useMemo)(function(){var e;return null==Fe||null===(e=Fe.servicePrices)||void 0===e?void 0:e.find(function(e){var n;return(null===(n=e.paymentMode)||void 0===n?void 0:n.uuid)===I})},[Fe,I]),De=(0,x.zo)(g),Pe=De.clientSubBenefits,Ue=De.isLoadingClientSubBenefits,je=(0,x.qX)(g,L),Ge=je.interventions,Le=je.isLoadingInterventions,We=(0,a.useMemo)(function(){return(null!=h?h:[]).filter(D)},[h]),Re=(0,a.useMemo)(function(){return We.find(function(e){return e.intervention_code===U})},[We,U]),qe=(0,a.useMemo)(function(){return(null!=Ge?Ge:[]).filter(function(e){return e.code!==U})},[Ge,U]),He=(0,a.useMemo)(function(){return qe.find(function(e){return e.code===q})},[qe,q]),Je=function(e){return M(function(){var n,t,a,r,i,o,l,s,u,d,h,g,y,b;return O(this,function($){switch($.label){case 0:if(!Fe||!Oe)return Ce(w("missingServiceType","Select a service type before creating the bill item.")),[2];if(!(t=null==Ne||null===(n=Ne[0])||void 0===n?void 0:n.uuid)||!m)return Ce(w("missingBillContext","Cash point or patient context unavailable — cannot create the bill item.")),[2];ve(!0),Ce(""),$.label=1;case 1:return $.trys.push([1,9,10,11]),s={lineItems:[{quantity:1,priceUuid:Oe.uuid,status:0===Oe.price?"PAID":"PENDING"}],visit:null!==(a=null==Ie?void 0:Ie.uuid)&&void 0!==a?a:"",cashPoint:t,patient:m,status:"PENDING",payments:[]},[4,(0,E.zg)(s)];case 2:if(u=$.sent(),d=null==u||null===(r=u.data)||void 0===r?void 0:r.uuid,h=null==u||null===(l=u.data)||void 0===l||null===(o=l.lineItems)||void 0===o||null===(i=o.find(function(e){return 0===e.lineItemOrder}))||void 0===i?void 0:i.uuid,!d)throw new Error("Bill was created without a uuid");$.label=3;case 3:return $.trys.push([3,5,,7]),[4,(0,E.pC)({bill_uuid:d,order_no:e,line_item_uuid:h,intervention_code:null==He?void 0:He.code,consent_token:p})];case 4:return $.sent(),[3,7];case 5:return g=$.sent(),[4,(0,E.F9)(d)];case 6:throw $.sent(),g;case 7:return Ae(!0),null==v||v(),[4,f({discardUnsavedChanges:!0})];case 8:return $.sent(),[3,11];case 9:return y=$.sent(),Ce("string"==typeof y?y:null!==(b=null==y?void 0:y.message)&&void 0!==b?b:"Failed to create bill item."),(0,c.showSnackbar)({kind:"error",title:w("billItemCreationFailed","Bill item creation failed"),subtitle:w("billItemCreationFailedSubtitle","The order was already created. Retry creating the bill item below.")}),[3,11];case 10:return ve(!1),[7];case 11:return[2]}})})()},Xe=function(){return M(function(){var e,n,t,a,r,i;return O(this,function(o){switch(o.label){case 0:if(!m||!y||!A)return me(w("missingOrderContext","Patient or visit context unavailable — cannot create an order.")),[2];ue(!0),me(""),o.label=1;case 1:return o.trys.push([1,4,5,6]),[4,B({patientUuid:m,visitUuid:y,locationUuid:A,providerUuid:null!==(e=null===(n=$.currentProvider)||void 0===n?void 0:n.uuid)&&void 0!==e?e:"",orderEncounterTypeUuid:S,outPatientCareSettingUuid:z,shaInterventionSwitchingUuid:T})];case 2:return t=o.sent(),a=t.orderNumber,pe(a),[4,Je(a)];case 3:return o.sent(),[3,6];case 4:return r=o.sent(),me("string"==typeof r?r:null!==(i=null==r?void 0:r.message)&&void 0!==i?i:"Failed to create order."),(0,c.showSnackbar)({kind:"error",title:w("orderCreationFailed","Order creation failed"),subtitle:w("orderCreationFailedSubtitle","The intervention switch already succeeded. Retry creating the order below.")}),[3,6];case 5:return ue(!1),[7];case 6:return[2]}})})()},Ye=Boolean(Re&&L&&L!==Re.sub_benefit_code),Ve=Boolean(q)&&(!oe||!fe||!$e);if(!We.length)return r().createElement(c.Workspace2,{title:w("switchIntervention","Switch Intervention")},r().createElement("div",{className:k.emptyState},r().createElement("p",null,w("noInterventionsToSwitch","This claim has no active interventions to switch."))));var Qe=function(){re(""),le(!1),pe(""),me(""),Ae(!1),Ce("")};return r().createElement(c.Workspace2,{title:w("switchIntervention","Switch Intervention"),hasUnsavedChanges:Ve},r().createElement(i.lVW,{className:k.form,onSubmit:function(e){return e.preventDefault()}},r().createElement("div",{className:k.body},r().createElement("section",{className:k.section},r().createElement("h5",{className:k.sectionTitle},w("switchFrom","Intervention to switch")),We.length>1?r().createElement(i.zWQ,{legendText:w("whichToSwitch","Which intervention do you want to switch?"),name:"current-intervention",orientation:"vertical",onChange:function(e){return j(e),H(""),Se(!1),void Qe()}},We.map(function(e){return r().createElement(i.aaP,{key:e.intervention_code,id:"cur-".concat(e.intervention_code),value:e.intervention_code,labelText:"".concat(e.intervention_code," · ").concat(e.intervention_name)})})):null,Re?r().createElement("div",{className:k.currentCard},r().createElement("div",{className:k.ivHead},r().createElement("span",{className:k.ivCode},Re.intervention_code),r().createElement(i.vwO,{size:"sm",type:"blue"},Re.sub_benefit_code||w("noSubBenefit","No sub-benefit"))),r().createElement("div",{className:k.ivName},Re.intervention_name),r().createElement("div",{className:k.ivFlags},r().createElement("span",null,Re.intervention_payment_mechanism),Re.needs_preauth?r().createElement(r().Fragment,null,r().createElement("span",null,"·"),r().createElement("span",null,w("preauth","preauth"))):null)):null),r().createElement("section",{className:k.section},r().createElement("h5",{className:k.sectionTitle},w("switchTo","Switch to")),r().createElement("p",{className:k.sectionSub},w("pickSubBenefitFirst","Pick a sub-benefit to load its interventions — not limited to the source’s.")),g?r().createElement(r().Fragment,null,r().createElement(i.msM,{id:"sub-benefit",titleText:w("subBenefit","Sub-benefit"),label:Ue?w("loading","Loading…"):w("selectSubBenefit","Select a sub-benefit"),items:null!=Pe?Pe:[],itemToString:function(e){return e?"".concat(e.name," (").concat(e.code,")"):""},selectedItem:null!==(t=(null!=Pe?Pe:[]).find(function(e){return e.code===L}))&&void 0!==t?t:null,disabled:Ue,onChange:function(e){var n,t,a=e.selectedItem;return t=null!==(n=null==a?void 0:a.code)&&void 0!==n?n:"",W(t),H(""),Se(!1),void Qe()}}),L?Le?r().createElement(i.OuH,{description:w("loadingInterventions","Loading interventions…")}):0===qe.length?r().createElement("p",{className:k.hintBad},w("noInterventionsInSubBenefit","No other interventions available in this sub-benefit.")):r().createElement(i.a32,{id:"target-intervention",titleText:w("targetIntervention","Target intervention"),placeholder:w("searchIntervention","Search by code or name"),items:qe,itemToString:function(e){return e?"".concat(e.code," · ").concat(e.name):""},selectedItem:null!=He?He:null,onChange:function(e){var n,t,a=e.selectedItem;return t=null!==(n=null==a?void 0:a.code)&&void 0!==n?n:"",H(t),Se(!1),void Qe()}}):null):r().createElement("p",{className:k.hintBad},w("missingPatientId","Patient identifier unavailable — can't load interventions.")),He?r().createElement("div",{className:k.ivGrid},r().createElement("div",{className:"".concat(k.ivTile," ").concat(k.ivTileActive)},r().createElement("div",{className:k.ivHead},r().createElement("span",{className:k.ivCode},He.code),r().createElement("div",{className:k.tagRow},r().createElement(i.vwO,{size:"sm",type:"cyan"},L||w("noSubBenefit","No sub-benefit")),He.needsPreauth?r().createElement(i.vwO,{size:"sm",type:"magenta"},w("preauthTag","Preauth")):null)),r().createElement("div",{className:k.ivName},He.name),r().createElement("div",{className:k.ivFlags},r().createElement("span",null,He.paymentMechanism)))):null),He&&!oe?r().createElement("section",{className:k.section},r().createElement("h5",{className:k.sectionTitle},w("serviceType","Service type")),r().createElement(i.a32,{id:"service-type",titleText:w("serviceType","Service type"),placeholder:w("searchServiceType","Search billable service"),items:null!=Me?Me:[],itemToString:function(e){var n;return null!==(n=null==e?void 0:e.name)&&void 0!==n?n:""},selectedItem:null!=Fe?Fe:null,onChange:function(e){var n,t=e.selectedItem;return re(null!==(n=null==t?void 0:t.uuid)&&void 0!==n?n:"")}}),Fe?Oe?r().createElement("p",{className:k.sectionSub},"".concat(Fe.name," (SHA: ").concat(Oe.price,")")):r().createElement("p",{className:k.hintBad},w("noShaPrice","This service has no SHA price configured.")):null):null,oe?r().createElement("section",{className:k.section},r().createElement("h5",{className:k.sectionTitle},w("switchOrder","Switch order")),se?r().createElement(i.OuH,{description:w("creatingOrder","Creating order…")}):fe?r().createElement("div",{className:k.currentCard},r().createElement("span",null,w("orderCreated","Order created"),": ",r().createElement("strong",null,fe))):ge?r().createElement(r().Fragment,null,r().createElement("p",{className:k.hintBad},ge),r().createElement(i.$nd,{kind:"ghost",size:"sm",onClick:Xe},w("retry","Retry"))):null,fe?be?r().createElement(i.OuH,{description:w("creatingBillItem","Creating bill item…")}):$e?r().createElement("div",{className:k.currentCard},r().createElement("span",null,w("billItemCreated","Bill item created"))):ke?r().createElement(r().Fragment,null,r().createElement("p",{className:k.hintBad},ke),r().createElement(i.$nd,{kind:"ghost",size:"sm",onClick:function(){return Je(fe)}},w("retry","Retry"))):null:null):null,r().createElement("section",{className:k.section},r().createElement(i.lMk,{id:"retain-bill-items",size:"sm",labelText:w("retainBillItems","Retain bill items"),labelA:w("no","No"),labelB:w("yes","Yes"),toggled:X,onToggle:function(e){return Y(e)}}),X?r().createElement("div",{className:k.dateRange},r().createElement(i.lrV,{datePickerType:"single",dateFormat:"Y-m-d",onChange:function(e){return K(P(null==e?void 0:e[0]))}},r().createElement(i.tKA,{id:"bill-from",labelText:w("billFrom","Bill from"),placeholder:"yyyy-mm-dd",size:"md"})),r().createElement(i.lrV,{datePickerType:"single",dateFormat:"Y-m-d",onChange:function(e){return ne(P(null==e?void 0:e[0]))}},r().createElement(i.tKA,{id:"bill-to",labelText:w("billTo","Bill to"),placeholder:"yyyy-mm-dd",size:"md"}))):null),Ee&&!oe&&Re&&He?r().createElement("div",{className:k.switchPrompt},r().createElement(o.wM,{size:18}),r().createElement("div",{className:k.switchBody},r().createElement("p",null,w("switchConfirmPrompt","Switch")," ",r().createElement("strong",null,Re.intervention_code," · ",Re.intervention_name)," ","→"," ",r().createElement("strong",null,He.code," · ",He.name),", ",w("billedAt","billed at")," ",r().createElement("strong",null,null==Oe?void 0:Oe.price," ",w("via","via")," ",null==Fe?void 0:Fe.name),". ",w("billItemsWillBe","Bill items will be")," ",r().createElement("strong",null,X?w("retained","retained"):w("notRetained","not retained")),"."),Ye?r().createElement("p",{className:k.warn},r().createElement(l.OR,{size:16}),r().createElement("span",null,w("subBenefitChanges","Sub-benefit changes from {{from}} to {{to}}.",{from:Re.sub_benefit_code||"—",to:L||"—"}))):null,He.needsPreauth?r().createElement("p",{className:k.warn},r().createElement(l.OR,{size:16}),r().createElement("span",null,w("targetNeedsPreauth","{{name}} requires preauthorisation.",{name:He.name}))):null,r().createElement("div",{className:k.switchActions},r().createElement(i.$nd,{kind:"danger--tertiary",size:"sm",onClick:function(){return M(function(){var e,n,t;return O(this,function(a){switch(a.label){case 0:if(!(Re&&He&&A&&Oe))return[2];Te(!0),e=(new Date).toISOString(),n={consentToken:p,existingInterventionCode:Re.intervention_code,newInterventionCode:He.code,retainBillItems:X,billFrom:X?Q:P(b)||e,billTo:X?ee:e,locationUuid:A,billedAmount:String(Oe.price)},a.label=1;case 1:return a.trys.push([1,4,5,6]),[4,(0,C.C3)(n)];case 2:return a.sent(),le(!0),(0,c.showSnackbar)({kind:"success",title:w("interventionSwitched","Intervention switched"),subtitle:w("interventionSwitchedSubtitle","Switched {{from}} → {{to}}.",{from:Re.intervention_code,to:He.code})}),null==v||v(),[4,Xe()];case 3:return a.sent(),[3,6];case 4:return t=a.sent(),(0,c.showSnackbar)({kind:"error",title:w("switchInterventionFailed","Switch failed"),subtitle:"string"==typeof t?t:null==t?void 0:t.message}),[3,6];case 5:return Te(!1),[7];case 6:return[2]}})})()},disabled:Be},Be?r().createElement(i.OuH,{description:w("switching","Switching…")}):w("confirmSwitch","Confirm switch")),r().createElement(i.$nd,{kind:"ghost",size:"sm",onClick:function(){return Se(!1)},disabled:Be},w("cancel","Cancel"))))):null),r().createElement(i.Te$,{className:k.buttonSet},r().createElement(i.$nd,{kind:"secondary",onClick:function(){return f()},disabled:Be},w("cancel","Cancel")),r().createElement(i.$nd,{kind:"primary",onClick:function(){return Se(!0)},disabled:!q||!Oe||Be||Ee||oe},w("switchIntervention","Switch intervention")))))};const j=function(e){var n,t,a,i=e.workspaceProps,o=e.closeWorkspace,l=null!=i?i:{};return r().createElement(U,(t=function(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{},a=Object.keys(t);"function"==typeof Object.getOwnPropertySymbols&&(a=a.concat(Object.getOwnPropertySymbols(t).filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),a.forEach(function(n){N(e,n,t[n])})}return e}({key:"".concat(l.consentToken,"::").concat(null!==(n=l.patientId)&&void 0!==n?n:"")},l),a=null!=(a={closeWorkspace:o})?a:{},Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(a)):function(e){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(e);n.push.apply(n,t)}return n}(Object(a)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(a,e))}),t))}},62404(e,n,t){t.d(n,{F9:()=>y,Ps:()=>h,RV:()=>A,UX:()=>$,Vi:()=>m,ZT:()=>d,bS:()=>f,i7:()=>w,pC:()=>b,rE:()=>v,vt:()=>p,zg:()=>g});var a=t(97419),r=t(96031),i=t(22272),o=t(78560),l=t(2468),c=t(6199);function s(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,a=new Array(n);t<n;t++)a[t]=e[t];return a}function u(e,n,t,a,r,i,o){try{var l=e[i](o),c=l.value}catch(e){return void t(e)}l.done?n(c):Promise.resolve(c).then(a,r)}t(67680);var d=function(){var e,n,t,l,c,u=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",d=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{enabled:!0},f=(0,o.m0)(),p=void 0===d.locationUuid?f:d.locationUuid,h=!1===d.enabled?null:(0,o.Wn)({v:o.j9,locationUuid:p}),g=(0,i.u)(h,a.openmrsFetch),m=g.data,y=g.isLoading,b=g.error,v=(l=(0,r.useState)(""),c=2,function(e){if(Array.isArray(e))return e}(l)||function(e,n){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var a,r,i=[],o=!0,l=!1;try{for(t=t.call(e);!(o=(a=t.next()).done)&&(i.push(a.value),!n||i.length!==n);o=!0);}catch(e){l=!0,r=e}finally{try{o||null==t.return||t.return()}finally{if(l)throw r}}return i}}(l,c)||function(e,n){if(e){if("string"==typeof e)return s(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(t):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?s(e,n):void 0}}(l,c)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),w=v[0],$=v[1],A=null!==(e=null==m||null===(t=m.data)||void 0===t||null===(n=t.results)||void 0===n?void 0:n.filter(function(e){return e.name.toLowerCase().includes(w.toLowerCase())}))&&void 0!==e?e:[];return u&&(A=null==A?void 0:A.filter(function(e){var n;return(null==e||null===(n=e.serviceType)||void 0===n?void 0:n.uuid)===u})),{lineItems:A,isLoading:y,error:b,searchTerm:w,setSearchTerm:$}},f=function(e,n){var t=d("",{enabled:!n}),r=t.lineItems,o=t.isLoading,l=t.error,c=function(e,n){var t,r=n?"".concat(a.restBaseUrl,"/billing/billableDrug?v=full&locationUuid=").concat(e):null,o=(0,i.u)(r,a.openmrsFetch),l=o.data,c=o.isLoading,s=o.error;return{drugBillableItems:null==l||null===(t=l.data)||void 0===t?void 0:t.results,isLoading:c,error:s}}(e,n),s=c.drugBillableItems,u=c.isLoading,f=c.error;return{lineItems:n?null!=s?s:[]:r,isLoading:o||u,error:l||f}},p=function(e){var n,t=e?"".concat(a.restBaseUrl,"/billing/bill?visitUuid=").concat(e,"&v=").concat("custom:(uuid,status,patient:(uuid),lineItems)"):null,r=(0,i.u)(t,a.openmrsFetch,{keepPreviousData:!0}),o=r.data,l=r.error,c=r.isLoading,s=r.isValidating;return{currentDayBills:null==o||null===(n=o.data)||void 0===n?void 0:n.results,error:l,isLoading:c,isValidating:s}},h=function(){var e,n=(0,a.useSession)(),t="/ws/rest/v1/billing/cashPoint?v=".concat("custom:(uuid,name,description,location:(uuid,display))"),r=(0,i.u)(t,a.openmrsFetch),o=r.data,l=r.isLoading,c=r.error,s=null==o||null===(e=o.data)||void 0===e?void 0:e.results;return s&&(s=null==s?void 0:s.filter(function(e){var t,a;return(null==e||null===(t=e.location)||void 0===t?void 0:t.uuid)===(null==n||null===(a=n.sessionLocation)||void 0===a?void 0:a.uuid)})),{isLoading:l,error:c,cashPoints:null!=s?s:[]}},g=function(e){var n="".concat(a.restBaseUrl,"/billing/bill");return(0,a.openmrsFetch)(n,{method:"POST",headers:{"Content-Type":"application/json"},body:e})},m=function(e,n){var t="".concat(a.restBaseUrl,"/billing/bill/").concat(e,"/lineItem");return(0,a.openmrsFetch)(t,{method:"POST",headers:{"Content-Type":"application/json"},body:n})},y=function(e){var n="".concat(a.restBaseUrl,"/billing/bill/").concat(e,"?purge=true");return(0,a.openmrsFetch)(n,{method:"DELETE"})},b=function(e){return(n=function(){var n,t;return function(e,n){var t,a,r,i={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]},o=Object.create(("function"==typeof Iterator?Iterator:Object).prototype),l=Object.defineProperty;return l(o,"next",{value:c(0)}),l(o,"throw",{value:c(1)}),l(o,"return",{value:c(2)}),"function"==typeof Symbol&&l(o,Symbol.iterator,{value:function(){return this}}),o;function c(l){return function(c){return function(l){if(t)throw new TypeError("Generator is already executing.");for(;o&&(o=0,l[0]&&(i=0)),i;)try{if(t=1,a&&(r=2&l[0]?a.return:l[0]?a.throw||((r=a.return)&&r.call(a),0):a.next)&&!(r=r.call(a,l[1])).done)return r;switch(a=0,r&&(l=[2&l[0],r.value]),l[0]){case 0:case 1:r=l;break;case 4:return i.label++,{value:l[1],done:!1};case 5:i.label++,a=l[1],l=[0];continue;case 7:l=i.ops.pop(),i.trys.pop();continue;default:if(!((r=(r=i.trys).length>0&&r[r.length-1])||6!==l[0]&&2!==l[0])){i=0;continue}if(3===l[0]&&(!r||l[1]>r[0]&&l[1]<r[3])){i.label=l[1];break}if(6===l[0]&&i.label<r[1]){i.label=r[1],r=l;break}if(r&&i.label<r[2]){i.label=r[2],i.ops.push(l);break}r[2]&&i.ops.pop(),i.trys.pop();continue}l=n.call(e,i)}catch(e){l=[6,e],a=0}finally{t=r=0}if(5&l[0])throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}([l,c])}}}(this,function(a){switch(a.label){case 0:return[4,(0,l.bo)()];case 1:return n=a.sent(),t="".concat(n,"/bill-order"),[2,(0,c.B2)(t,e)]}})},function(){var e=this,t=arguments;return new Promise(function(a,r){var i=n.apply(e,t);function o(e){u(i,a,r,o,l,"next",e)}function l(e){u(i,a,r,o,l,"throw",e)}o(void 0)})})();var n},v=function(e){var n,t="/ws/rest/v1/patient/".concat(e,"?v=").concat("custom:(identifiers:(identifier,identifierType:(uuid,display)))"),r=(0,i.u)(t,a.openmrsFetch),o=r.data;return{isLoading:r.isLoading,error:r.error,identifiers:null==o||null===(n=o.data)||void 0===n?void 0:n.identifiers}},w=function(){var e,n=(0,a.useSession)().sessionLocation,t=null==n?void 0:n.uuid,r="/ws/rest/v1/location/".concat(t,"?v=").concat("custom:(attributes)"),o=(0,i.u)(r,a.openmrsFetch),l=o.data;return{isLoadingLocationAttributes:o.isLoading,error:o.error,locationAttributes:null==l||null===(e=l.data)||void 0===e?void 0:e.attributes}},$=function(e,n){var t=(0,a.useConfig)({externalModuleName:"@ampath/esm-dha-workflow-app"}).etlBaseUrl,r=e?"".concat(t,"/odoo/inventory/batches?openmrs_drug_uuid=").concat(e,"&company_external_id=").concat(n):null,o=(0,i.u)(r,a.openmrsFetch),l=o.data;return{isLoadingBatches:o.isLoading,error:o.error,drugBatches:null==l?void 0:l.data}},A=function(e,n){var t,r=e?null==e?void 0:e.split(" "):[],o=(null==r?void 0:r.length)?r[0]:null,l=n&&o?"".concat(a.restBaseUrl,"/drug?s=ampathOrderableDrugs&q=").concat(o,"&v=").concat("custom:(uuid,display,dosageForm:(uuid,display),concept:(uuid,display))"):null,c=(0,i.u)(l,a.openmrsFetch),s=c.data;return{isLoadingDrugFormulations:c.isLoading,error:c.error,drugFormulations:null==s||null===(t=s.data)||void 0===t?void 0:t.results}}},6199(e,n,t){t.d(n,{B2:()=>c,lr:()=>d,un:()=>s,zB:()=>u});var a=t(97419),r=t(2468);function i(e,n,t,a,r,i,o){try{var l=e[i](o),c=l.value}catch(e){return void t(e)}l.done?n(c):Promise.resolve(c).then(a,r)}function o(e){return function(){var n=this,t=arguments;return new Promise(function(a,r){var o=e.apply(n,t);function l(e){i(o,a,r,l,c,"next",e)}function c(e){i(o,a,r,l,c,"throw",e)}l(void 0)})}}function l(e,n){var t,a,r,i={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]},o=Object.create(("function"==typeof Iterator?Iterator:Object).prototype),l=Object.defineProperty;return l(o,"next",{value:c(0)}),l(o,"throw",{value:c(1)}),l(o,"return",{value:c(2)}),"function"==typeof Symbol&&l(o,Symbol.iterator,{value:function(){return this}}),o;function c(l){return function(c){return function(l){if(t)throw new TypeError("Generator is already executing.");for(;o&&(o=0,l[0]&&(i=0)),i;)try{if(t=1,a&&(r=2&l[0]?a.return:l[0]?a.throw||((r=a.return)&&r.call(a),0):a.next)&&!(r=r.call(a,l[1])).done)return r;switch(a=0,r&&(l=[2&l[0],r.value]),l[0]){case 0:case 1:r=l;break;case 4:return i.label++,{value:l[1],done:!1};case 5:i.label++,a=l[1],l=[0];continue;case 7:l=i.ops.pop(),i.trys.pop();continue;default:if(!((r=(r=i.trys).length>0&&r[r.length-1])||6!==l[0]&&2!==l[0])){i=0;continue}if(3===l[0]&&(!r||l[1]>r[0]&&l[1]<r[3])){i.label=l[1];break}if(6===l[0]&&i.label<r[1]){i.label=r[1],r=l;break}if(r&&i.label<r[2]){i.label=r[2],i.ops.push(l);break}r[2]&&i.ops.pop(),i.trys.pop();continue}l=n.call(e,i)}catch(e){l=[6,e],a=0}finally{t=r=0}if(5&l[0])throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}([l,c])}}}function c(e,n){return o(function(){var t,r,i,o,c;return l(this,function(l){switch(l.label){case 0:return[4,(0,a.openmrsFetch)(e,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(n)})];case 1:return(t=l.sent()).ok?[3,3]:[4,t.text()];case 2:r=l.sent(),i="Request failed with ".concat(t.status);try{(null==(o=r?JSON.parse(r):void 0)?void 0:o.message)&&(i=o.message)}catch(e){r&&(i=r)}throw(c=new Error(i)).statusCode=t.status,c.responseBody=o,c;case 3:return[2,t.json()]}})})()}function s(e){return o(function(){var n,t,a;return l(this,function(i){switch(i.label){case 0:return[4,(0,r.bo)()];case 1:return n=i.sent(),t="".concat(n,"/client/send-custom-otp"),a={identificationNumber:e.identificationNumber,identificationType:e.identificationType,locationUuid:e.locationUuid,phoneNumber:e.phoneNumber},[2,c(t,a)]}})})()}function u(e){return o(function(){var n,t,a;return l(this,function(i){switch(i.label){case 0:return[4,(0,r.bo)()];case 1:return n=i.sent(),t="".concat(n,"/client/validate-custom-otp"),a={sessionId:e.sessionId,otp:e.otp,locationUuid:e.locationUuid},[2,c(t,a)]}})})()}function d(e){return o(function(){var n,t,a;return l(this,function(i){switch(i.label){case 0:return[4,(0,r.bo)()];case 1:return n=i.sent(),t="".concat(n,"/client/search"),a={identificationNumber:e.identificationNumber,identificationType:e.identificationType,locationUuid:e.locationUuid},[2,c(t,a)]}})})()}},78560(e,n,t){t.d(n,{Wn:()=>c,hC:()=>s,j9:()=>l,m0:()=>u,mB:()=>d});var a=t(97419);function r(e,n,t,a,r,i,o){try{var l=e[i](o),c=l.value}catch(e){return void t(e)}l.done?n(c):Promise.resolve(c).then(a,r)}function i(e){return function(){var n=this,t=arguments;return new Promise(function(a,i){var o=e.apply(n,t);function l(e){r(o,a,i,l,c,"next",e)}function c(e){r(o,a,i,l,c,"throw",e)}l(void 0)})}}function o(e,n){var t,a,r,i={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]},o=Object.create(("function"==typeof Iterator?Iterator:Object).prototype),l=Object.defineProperty;return l(o,"next",{value:c(0)}),l(o,"throw",{value:c(1)}),l(o,"return",{value:c(2)}),"function"==typeof Symbol&&l(o,Symbol.iterator,{value:function(){return this}}),o;function c(l){return function(c){return function(l){if(t)throw new TypeError("Generator is already executing.");for(;o&&(o=0,l[0]&&(i=0)),i;)try{if(t=1,a&&(r=2&l[0]?a.return:l[0]?a.throw||((r=a.return)&&r.call(a),0):a.next)&&!(r=r.call(a,l[1])).done)return r;switch(a=0,r&&(l=[2&l[0],r.value]),l[0]){case 0:case 1:r=l;break;case 4:return i.label++,{value:l[1],done:!1};case 5:i.label++,a=l[1],l=[0];continue;case 7:l=i.ops.pop(),i.trys.pop();continue;default:if(!((r=(r=i.trys).length>0&&r[r.length-1])||6!==l[0]&&2!==l[0])){i=0;continue}if(3===l[0]&&(!r||l[1]>r[0]&&l[1]<r[3])){i.label=l[1];break}if(6===l[0]&&i.label<r[1]){i.label=r[1],r=l;break}if(r&&i.label<r[2]){i.label=r[2],i.ops.push(l);break}r[2]&&i.ops.pop(),i.trys.pop();continue}l=n.call(e,i)}catch(e){l=[6,e],a=0}finally{t=r=0}if(5&l[0])throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}([l,c])}}}var l="custom:(location:(uuid,name),uuid,name,shortName,serviceStatus,serviceType:(uuid,display),servicePrices:(uuid,name,price,paymentMode),concept:(uuid))";function c(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.v,t=void 0===n?"custom:(location:(uuid,name),uuid,name,shortName,serviceStatus,serviceCategory,concept:(uuid,display,name:(name)),serviceType:(display,uuid),servicePrices:(uuid,name,price,paymentMode:(uuid,name)))":n,r=e.locationUuid,i=e.limit,o=e.startIndex,l="".concat(a.restBaseUrl,"/billing/billableService?v=").concat(t);return r&&(l+="&locationUuid=".concat(r)),null!=i&&(l+="&limit=".concat(i)),null!=o&&(l+="&startIndex=".concat(o)),l}function s(){return i(function(){var e,n,t,r;return o(this,function(i){return e=(0,a.getSessionStore)(),(n=e.getState()).loaded?[2,null===(r=n.session)||void 0===r||null===(t=r.sessionLocation)||void 0===t?void 0:t.uuid]:[2,new Promise(function(n){var t,a=!1,r=function(e){a||(a=!0,clearTimeout(i),null==t||t(),n(e))},i=setTimeout(function(){return r(void 0)},1e4);t=e.subscribe(function(e){var n,t;e.loaded&&r(null===(t=e.session)||void 0===t||null===(n=t.sessionLocation)||void 0===n?void 0:n.uuid)}),a&&(null==t||t())})]})})()}function u(){var e=(0,a.useSession)().sessionLocation;return null==e?void 0:e.uuid}function d(){return i(function(){var e,n,t,r,i=arguments;return o(this,function(o){switch(o.label){case 0:return e=i.length>0&&void 0!==i[0]?i[0]:{},[4,(0,a.openmrsFetch)(c(e))];case 1:return r=o.sent(),[2,null!==(n=null==r||null===(t=r.data)||void 0===t?void 0:t.results)&&void 0!==n?n:[]]}})}).apply(this,arguments)}},72343(e,n,t){t.d(n,{iw:()=>s,r$:()=>u,xH:()=>l,yn:()=>c});var a=t(97419);function r(e,n,t,a,r,i,o){try{var l=e[i](o),c=l.value}catch(e){return void t(e)}l.done?n(c):Promise.resolve(c).then(a,r)}function i(e){return function(){var n=this,t=arguments;return new Promise(function(a,i){var o=e.apply(n,t);function l(e){r(o,a,i,l,c,"next",e)}function c(e){r(o,a,i,l,c,"throw",e)}l(void 0)})}}function o(e,n){var t,a,r,i={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]},o=Object.create(("function"==typeof Iterator?Iterator:Object).prototype),l=Object.defineProperty;return l(o,"next",{value:c(0)}),l(o,"throw",{value:c(1)}),l(o,"return",{value:c(2)}),"function"==typeof Symbol&&l(o,Symbol.iterator,{value:function(){return this}}),o;function c(l){return function(c){return function(l){if(t)throw new TypeError("Generator is already executing.");for(;o&&(o=0,l[0]&&(i=0)),i;)try{if(t=1,a&&(r=2&l[0]?a.return:l[0]?a.throw||((r=a.return)&&r.call(a),0):a.next)&&!(r=r.call(a,l[1])).done)return r;switch(a=0,r&&(l=[2&l[0],r.value]),l[0]){case 0:case 1:r=l;break;case 4:return i.label++,{value:l[1],done:!1};case 5:i.label++,a=l[1],l=[0];continue;case 7:l=i.ops.pop(),i.trys.pop();continue;default:if(!((r=(r=i.trys).length>0&&r[r.length-1])||6!==l[0]&&2!==l[0])){i=0;continue}if(3===l[0]&&(!r||l[1]>r[0]&&l[1]<r[3])){i.label=l[1];break}if(6===l[0]&&i.label<r[1]){i.label=r[1],r=l;break}if(r&&i.label<r[2]){i.label=r[2],i.ops.push(l);break}r[2]&&i.ops.pop(),i.trys.pop();continue}l=n.call(e,i)}catch(e){l=[6,e],a=0}finally{t=r=0}if(5&l[0])throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}([l,c])}}}function l(e,n){return i(function(){var t,r;return o(this,function(i){switch(i.label){case 0:return[4,(0,a.openmrsFetch)("".concat(a.restBaseUrl,"/encounter?patient=").concat(e,"&encounterType=").concat(n,"&v=full"))];case 1:return r=i.sent(),[2,null!==(t=r.data.results)&&void 0!==t?t:[]]}})})()}function c(e){return i(function(){var n,t;return o(this,function(r){switch(r.label){case 0:return[4,(0,a.openmrsFetch)("".concat(a.restBaseUrl,"/encounter?patient=").concat(e,"&v=full"))];case 1:return t=r.sent(),[2,null!==(n=t.data.results)&&void 0!==n?n:[]]}})})()}function s(e){return i(function(){var n;return o(this,function(t){switch(t.label){case 0:return n="".concat(a.restBaseUrl,"/encounter"),[4,(0,a.openmrsFetch)(n,{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(e)})];case 1:return[2,t.sent().data]}})})()}function u(e){return i(function(){var n;return o(this,function(t){switch(t.label){case 0:return n="".concat(a.restBaseUrl,"/order/").concat(e),[4,(0,a.openmrsFetch)(n)];case 1:return[2,t.sent().data]}})})()}},85072(e){var n=[];function t(e){for(var t=-1,a=0;a<n.length;a++)if(n[a].identifier===e){t=a;break}return t}function a(e,a){for(var i={},o=[],l=0;l<e.length;l++){var c=e[l],s=a.base?c[0]+a.base:c[0],u=i[s]||0,d="".concat(s," ").concat(u);i[s]=u+1;var f=t(d),p={css:c[1],media:c[2],sourceMap:c[3],supports:c[4],layer:c[5]};if(-1!==f)n[f].references++,n[f].updater(p);else{var h=r(p,a);a.byIndex=l,n.splice(l,0,{identifier:d,updater:h,references:1})}o.push(d)}return o}function r(e,n){var t=n.domAPI(n);return t.update(e),function(n){if(n){if(n.css===e.css&&n.media===e.media&&n.sourceMap===e.sourceMap&&n.supports===e.supports&&n.layer===e.layer)return;t.update(e=n)}else t.remove()}}e.exports=function(e,r){var i=a(e=e||[],r=r||{});return function(e){e=e||[];for(var o=0;o<i.length;o++){var l=t(i[o]);n[l].references--}for(var c=a(e,r),s=0;s<i.length;s++){var u=t(i[s]);0===n[u].references&&(n[u].updater(),n.splice(u,1))}i=c}}},77659(e){var n={};e.exports=function(e,t){var a=function(e){if(void 0===n[e]){var t=document.querySelector(e);if(window.HTMLIFrameElement&&t instanceof window.HTMLIFrameElement)try{t=t.contentDocument.head}catch(e){t=null}n[e]=t}return n[e]}(e);if(!a)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");a.appendChild(t)}},10540(e){e.exports=function(e){var n=document.createElement("style");return e.setAttributes(n,e.attributes),e.insert(n,e.options),n}},55056(e,n,t){e.exports=function(e){var n=t.nc;n&&e.setAttribute("nonce",n)}},97825(e){e.exports=function(e){if("undefined"==typeof document)return{update:function(){},remove:function(){}};var n=e.insertStyleElement(e);return{update:function(t){!function(e,n,t){var a="";t.supports&&(a+="@supports (".concat(t.supports,") {")),t.media&&(a+="@media ".concat(t.media," {"));var r=void 0!==t.layer;r&&(a+="@layer".concat(t.layer.length>0?" ".concat(t.layer):""," {")),a+=t.css,r&&(a+="}"),t.media&&(a+="}"),t.supports&&(a+="}");var i=t.sourceMap;i&&"undefined"!=typeof btoa&&(a+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(i))))," */")),n.styleTagTransform(a,e,n.options)}(n,e,t)},remove:function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(n)}}}},41113(e){e.exports=function(e,n){if(n.styleSheet)n.styleSheet.cssText=e;else{for(;n.firstChild;)n.removeChild(n.firstChild);n.appendChild(document.createTextNode(e))}}}}]);