@openmrs/esm-billing-app 1.0.2-pre.98 → 1.0.2-pre.980

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 (214) hide show
  1. package/.eslintrc +16 -2
  2. package/README.md +54 -9
  3. package/__mocks__/bills.mock.ts +12 -0
  4. package/__mocks__/react-i18next.js +6 -5
  5. package/dist/1119.js +1 -1
  6. package/dist/1146.js +1 -2
  7. package/dist/1146.js.map +1 -1
  8. package/dist/1197.js +1 -1
  9. package/dist/1537.js +1 -0
  10. package/dist/1537.js.map +1 -0
  11. package/dist/1856.js +1 -0
  12. package/dist/1856.js.map +1 -0
  13. package/dist/2146.js +1 -1
  14. package/dist/2524.js +1 -0
  15. package/dist/2524.js.map +1 -0
  16. package/dist/2690.js +1 -1
  17. package/dist/3099.js +1 -1
  18. package/dist/3584.js +1 -1
  19. package/dist/3717.js +2 -0
  20. package/dist/3717.js.map +1 -0
  21. package/dist/4055.js +1 -1
  22. package/dist/4132.js +1 -1
  23. package/dist/4300.js +1 -1
  24. package/dist/4335.js +1 -1
  25. package/dist/4618.js +1 -1
  26. package/dist/4652.js +1 -1
  27. package/dist/4724.js +1 -0
  28. package/dist/4724.js.map +1 -0
  29. package/dist/4739.js +1 -1
  30. package/dist/4739.js.map +1 -1
  31. package/dist/4944.js +1 -1
  32. package/dist/5173.js +1 -1
  33. package/dist/5241.js +1 -1
  34. package/dist/5442.js +1 -1
  35. package/dist/5661.js +1 -1
  36. package/dist/6022.js +1 -1
  37. package/dist/6468.js +1 -1
  38. package/dist/6540.js +1 -1
  39. package/dist/6540.js.map +1 -1
  40. package/dist/6679.js +1 -1
  41. package/dist/6840.js +1 -1
  42. package/dist/6859.js +1 -1
  43. package/dist/7097.js +1 -1
  44. package/dist/7159.js +1 -1
  45. package/dist/723.js +1 -1
  46. package/dist/7255.js +1 -1
  47. package/dist/7255.js.map +1 -1
  48. package/dist/7617.js +1 -1
  49. package/dist/795.js +1 -1
  50. package/dist/8163.js +1 -1
  51. package/dist/8349.js +1 -1
  52. package/dist/8572.js +1 -0
  53. package/dist/8572.js.map +1 -0
  54. package/dist/8618.js +1 -1
  55. package/dist/8708.js +2 -0
  56. package/dist/{6557.js.LICENSE.txt → 8708.js.LICENSE.txt} +22 -0
  57. package/dist/8708.js.map +1 -0
  58. package/dist/890.js +1 -1
  59. package/dist/9214.js +1 -1
  60. package/dist/9538.js +1 -1
  61. package/dist/9569.js +1 -1
  62. package/dist/961.js +1 -1
  63. package/dist/961.js.map +1 -1
  64. package/dist/986.js +1 -1
  65. package/dist/9879.js +1 -1
  66. package/dist/9895.js +1 -1
  67. package/dist/9900.js +1 -1
  68. package/dist/9913.js +1 -1
  69. package/dist/main.js +1 -1
  70. package/dist/main.js.map +1 -1
  71. package/dist/openmrs-esm-billing-app.js +1 -1
  72. package/dist/openmrs-esm-billing-app.js.buildmanifest.json +271 -285
  73. package/dist/openmrs-esm-billing-app.js.map +1 -1
  74. package/dist/routes.json +1 -1
  75. package/e2e/README.md +19 -18
  76. package/e2e/core/test.ts +1 -1
  77. package/e2e/fixtures/api.ts +1 -1
  78. package/e2e/specs/sample-test.spec.ts +0 -1
  79. package/e2e/support/github/Dockerfile +1 -1
  80. package/package.json +18 -15
  81. package/src/bill-history/bill-history.component.tsx +20 -28
  82. package/src/bill-history/bill-history.scss +4 -94
  83. package/src/bill-history/bill-history.test.tsx +37 -78
  84. package/src/bill-item-actions/bill-item-actions.scss +21 -5
  85. package/src/bill-item-actions/edit-bill-item.modal.tsx +226 -0
  86. package/src/bill-item-actions/edit-bill-item.test.tsx +233 -40
  87. package/src/billable-services/bill-waiver/bill-selection.component.tsx +5 -5
  88. package/src/billable-services/bill-waiver/bill-waiver-form.component.tsx +34 -37
  89. package/src/billable-services/bill-waiver/patient-bills.component.tsx +7 -7
  90. package/src/billable-services/bill-waiver/utils.ts +13 -3
  91. package/src/billable-services/{create-edit/add-billable-service.scss → billable-service-form/billable-service-form.scss} +32 -64
  92. package/src/billable-services/billable-service-form/billable-service-form.test.tsx +1048 -0
  93. package/src/billable-services/billable-service-form/billable-service-form.workspace.tsx +515 -0
  94. package/src/billable-services/billable-service.resource.ts +71 -27
  95. package/src/billable-services/billable-services-home.component.tsx +13 -42
  96. package/src/billable-services/billable-services-left-panel-link.component.tsx +48 -0
  97. package/src/billable-services/billable-services-left-panel-menu.component.tsx +46 -0
  98. package/src/billable-services/billable-services-menu-item/item.component.tsx +5 -4
  99. package/src/billable-services/billable-services.component.tsx +156 -152
  100. package/src/billable-services/billable-services.scss +29 -0
  101. package/src/billable-services/billable-services.test.tsx +6 -49
  102. package/src/billable-services/cash-point/add-cash-point.modal.tsx +170 -0
  103. package/src/billable-services/cash-point/cash-point-configuration.component.tsx +19 -193
  104. package/src/billable-services/cash-point/cash-point-configuration.scss +1 -5
  105. package/src/billable-services/dashboard/dashboard.component.tsx +0 -2
  106. package/src/billable-services/payment-modes/delete-payment-mode.modal.tsx +77 -0
  107. package/src/billable-services/payment-modes/payment-mode-form.modal.tsx +131 -0
  108. package/src/billable-services/payment-modes/payment-modes-config.component.tsx +139 -0
  109. package/src/billable-services/{payyment-modes → payment-modes}/payment-modes-config.scss +5 -4
  110. package/src/billable-services-admin-card-link.component.test.tsx +2 -2
  111. package/src/billable-services-admin-card-link.component.tsx +1 -1
  112. package/src/billing-dashboard/billing-dashboard.scss +1 -1
  113. package/src/billing-form/billing-checkin-form.component.tsx +21 -17
  114. package/src/billing-form/billing-checkin-form.test.tsx +99 -26
  115. package/src/billing-form/billing-form.component.tsx +226 -289
  116. package/src/billing-form/billing-form.scss +143 -0
  117. package/src/billing-form/visit-attributes/visit-attributes-form.component.tsx +1 -1
  118. package/src/billing.resource.ts +69 -74
  119. package/src/bills-table/bills-table.component.tsx +3 -3
  120. package/src/bills-table/bills-table.test.tsx +98 -54
  121. package/src/config-schema.ts +52 -24
  122. package/src/dashboard.meta.ts +4 -2
  123. package/src/helpers/functions.ts +5 -4
  124. package/src/index.ts +71 -9
  125. package/src/invoice/invoice-table.component.tsx +36 -70
  126. package/src/invoice/invoice-table.scss +8 -5
  127. package/src/invoice/invoice-table.test.tsx +273 -62
  128. package/src/invoice/invoice.component.tsx +39 -33
  129. package/src/invoice/invoice.scss +11 -4
  130. package/src/invoice/invoice.test.tsx +324 -120
  131. package/src/invoice/payments/invoice-breakdown/invoice-breakdown.scss +9 -9
  132. package/src/invoice/payments/payment-form/payment-form.component.tsx +43 -34
  133. package/src/invoice/payments/payment-form/payment-form.scss +5 -6
  134. package/src/invoice/payments/payment-form/payment-form.test.tsx +216 -66
  135. package/src/invoice/payments/payment-history/payment-history.component.tsx +6 -4
  136. package/src/invoice/payments/payment-history/payment-history.test.tsx +9 -14
  137. package/src/invoice/payments/payments.component.tsx +55 -67
  138. package/src/invoice/payments/payments.scss +4 -3
  139. package/src/invoice/payments/payments.test.tsx +282 -0
  140. package/src/invoice/payments/utils.ts +15 -27
  141. package/src/invoice/printable-invoice/print-receipt.component.tsx +3 -3
  142. package/src/invoice/printable-invoice/print-receipt.test.tsx +14 -25
  143. package/src/invoice/printable-invoice/printable-footer.component.tsx +2 -2
  144. package/src/invoice/printable-invoice/printable-footer.test.tsx +4 -13
  145. package/src/invoice/printable-invoice/printable-invoice-header.component.tsx +20 -11
  146. package/src/invoice/printable-invoice/printable-invoice-header.test.tsx +95 -16
  147. package/src/invoice/printable-invoice/printable-invoice.component.tsx +21 -35
  148. package/src/left-panel-link.test.tsx +1 -4
  149. package/src/metrics-cards/metrics-cards.component.tsx +16 -6
  150. package/src/metrics-cards/metrics-cards.scss +4 -0
  151. package/src/metrics-cards/metrics-cards.test.tsx +18 -5
  152. package/src/modal/require-payment-modal.test.tsx +27 -22
  153. package/src/modal/{require-payment-modal.component.tsx → require-payment.modal.tsx} +18 -19
  154. package/src/routes.json +44 -20
  155. package/src/types/index.ts +87 -24
  156. package/translations/am.json +135 -78
  157. package/translations/ar.json +136 -79
  158. package/translations/ar_SY.json +136 -79
  159. package/translations/bn.json +138 -81
  160. package/translations/de.json +136 -79
  161. package/translations/en.json +136 -79
  162. package/translations/en_US.json +136 -79
  163. package/translations/es.json +135 -78
  164. package/translations/es_MX.json +136 -79
  165. package/translations/fr.json +141 -84
  166. package/translations/he.json +135 -78
  167. package/translations/hi.json +136 -79
  168. package/translations/hi_IN.json +136 -79
  169. package/translations/id.json +136 -79
  170. package/translations/it.json +162 -105
  171. package/translations/ka.json +136 -79
  172. package/translations/km.json +135 -78
  173. package/translations/ku.json +136 -79
  174. package/translations/ky.json +136 -79
  175. package/translations/lg.json +136 -79
  176. package/translations/ne.json +136 -79
  177. package/translations/pl.json +136 -79
  178. package/translations/pt.json +136 -79
  179. package/translations/pt_BR.json +136 -79
  180. package/translations/qu.json +136 -79
  181. package/translations/ro_RO.json +222 -165
  182. package/translations/ru_RU.json +136 -79
  183. package/translations/si.json +136 -79
  184. package/translations/sw.json +136 -79
  185. package/translations/sw_KE.json +136 -79
  186. package/translations/tr.json +136 -79
  187. package/translations/tr_TR.json +136 -79
  188. package/translations/uk.json +136 -79
  189. package/translations/uz.json +136 -79
  190. package/translations/uz@Latn.json +136 -79
  191. package/translations/uz_UZ.json +136 -79
  192. package/translations/vi.json +136 -79
  193. package/translations/zh.json +136 -79
  194. package/translations/zh_CN.json +166 -109
  195. package/dist/1146.js.LICENSE.txt +0 -21
  196. package/dist/2352.js +0 -1
  197. package/dist/2352.js.map +0 -1
  198. package/dist/246.js +0 -1
  199. package/dist/246.js.map +0 -1
  200. package/dist/4689.js +0 -2
  201. package/dist/4689.js.map +0 -1
  202. package/dist/6557.js +0 -2
  203. package/dist/6557.js.map +0 -1
  204. package/dist/8638.js +0 -1
  205. package/dist/8638.js.map +0 -1
  206. package/dist/9968.js +0 -1
  207. package/dist/9968.js.map +0 -1
  208. package/src/bill-item-actions/edit-bill-item.component.tsx +0 -221
  209. package/src/billable-services/create-edit/add-billable-service.component.tsx +0 -401
  210. package/src/billable-services/create-edit/add-billable-service.test.tsx +0 -154
  211. package/src/billable-services/dashboard/service-metrics.component.tsx +0 -41
  212. package/src/billable-services/payyment-modes/payment-modes-config.component.tsx +0 -280
  213. package/src/invoice/payments/payments.component.test.tsx +0 -121
  214. /package/dist/{4689.js.LICENSE.txt → 3717.js.LICENSE.txt} +0 -0
package/.eslintrc CHANGED
@@ -2,13 +2,27 @@
2
2
  "env": {
3
3
  "node": true
4
4
  },
5
- "extends": ["eslint:recommended", "plugin:@typescript-eslint/recommended"],
5
+ "extends": ["eslint:recommended", "plugin:@typescript-eslint/recommended", "plugin:jest-dom/recommended"],
6
+ "overrides": [
7
+ {
8
+ "files": ["**/*.test.tsx"],
9
+ "extends": ["plugin:testing-library/react"]
10
+ },
11
+ {
12
+ "files": ["e2e/**/*.ts"],
13
+ "extends": ["plugin:playwright/recommended"],
14
+ "rules": {
15
+ "testing-library/prefer-screen-queries": "off",
16
+ "react-hooks/rules-of-hooks": "off"
17
+ }
18
+ }
19
+ ],
6
20
  "parser": "@typescript-eslint/parser",
7
21
  "parserOptions": {
8
22
  "project": true,
9
23
  "tsconfigRootDir": "__dirname"
10
24
  },
11
- "plugins": ["@typescript-eslint", "import", "react-hooks"],
25
+ "plugins": ["@typescript-eslint", "import", "jest-dom", "react-hooks", "testing-library"],
12
26
  "root": true,
13
27
  "rules": {
14
28
  // The following rules need `noImplicitAny` to be set to `true` in our tsconfig. They are too restrictive for now, but should be reconsidered in future
package/README.md CHANGED
@@ -1,15 +1,24 @@
1
1
  # OpenMRS 3.x Billing ESM
2
2
 
3
+ ![OpenMRS CI](https://github.com/openmrs/openmrs-esm-billing-app/actions/workflows/ci.yml/badge.svg)
4
+
3
5
  The OpenMRS Billing Module is designed to streamline the financial operations within healthcare settings by facilitating the management of patient billing, payments, and service pricing. This module integrates seamlessly with the OpenMRS platform, allowing healthcare providers to generate bills, track payments, and manage various billable services. It is an essential tool for ensuring transparency and accuracy in financial transactions within healthcare facilities, contributing to efficient service delivery.
4
6
 
5
- Dependency: Note that this frontend module depends on the backend module called "Billing Module": https://github.com/openmrs/openmrs-module-billing
7
+ The **Billing ESM** is a microfrontend for OpenMRS 3.x designed to manage healthcare billing workflows. It allows users to:
8
+
9
+ - Generate and manage bills
10
+ - Capture payments and insurance details
11
+ - Configure billable services and categories
12
+ - Integrate with visits and patient dashboards
13
+
14
+ Dependency: Note that this frontend module depends on the backend module called "Billing Module": <https://github.com/openmrs/openmrs-module-billing>
6
15
 
7
16
  For more information, please see the
8
- [OpenMRS Frontend Developer Documentation](https://o3-docs.openmrs.org/#/).
17
+ [OpenMRS Frontend Developer Documentation](https://openmrs.atlassian.net/wiki/x/IABBHg).
9
18
 
10
19
  ## Local development
11
20
 
12
- Check out the developer documentation [here](http://o3-dev.docs.openmrs.org).
21
+ Check out the developer documentation [in the OpenMRS Wiki](https://openmrs.atlassian.net/wiki/x/IABBHg).
13
22
 
14
23
  This monorepo uses [yarn](https://yarnpkg.com).
15
24
 
@@ -27,8 +36,8 @@ yarn start
27
36
 
28
37
  Once the dev server launches, log in and select a location. You will get redirected to the home page. Once there:
29
38
 
30
- * Go to the Implementers tools, under the feature flags, toggle on the Billing Module feature flag to access billing functionalities.
31
- * For more information on how to navigate and use the billing module, please refer to this [documentation](https://www.notion.so/ucsf-ighs/Billing-User-Manual-7f0427617e714b7db14432312cbb7cad)
39
+ - Navigate to the Billing dashboard on the left panel to view the billing history. Additional billing functionality exists in the Patient Chart. You'll also find the Billable Services dashboard in the System Administration page.
40
+ - For more information on how to navigate and use the billing module, please refer to this [documentation](https://www.notion.so/ucsf-ighs/Billing-User-Manual-7f0427617e714b7db14432312cbb7cad)
32
41
 
33
42
  ## Running tests
34
43
 
@@ -43,6 +52,7 @@ To run tests in `watch` mode, run:
43
52
  ```bash
44
53
  yarn turbo run test:watch
45
54
  ```
55
+
46
56
  To run a specific test file, run:
47
57
 
48
58
  ```bash
@@ -75,12 +85,43 @@ To run end-to-end tests, run:
75
85
  yarn test-e2e
76
86
  ```
77
87
 
78
- Read the [e2e testing guide](https://o3-docs.openmrs.org/docs/frontend-modules/end-to-end-testing) to learn more about End-to-End tests in this project.
88
+ Read the [e2e testing guide](https://openmrs.atlassian.net/wiki/x/Z8CEAQ) to learn more about End-to-End tests in this project.
79
89
 
80
90
  ### Updating Playwright
81
91
 
82
92
  The Playwright version in the [Bamboo e2e Dockerfile](e2e/support/bamboo/playwright.Dockerfile#L2) and the `package.json` file must match. If you update the Playwright version in one place, you must update it in the other.
83
93
 
94
+ ## ⚙️ Configuration
95
+
96
+ You can customize billing behavior using OpenMRS frontend config overrides.
97
+
98
+ ### 🔧 Example Config
99
+
100
+ ``` bash
101
+ {
102
+ "openmrs": {
103
+ "config": {
104
+ "billing": {
105
+ "defaultCurrency": "UGX",
106
+ "pageSize": 20,
107
+ "patientCatergory": {
108
+ "paymentDetails": "fbc0702d-...",
109
+ "insuranceScheme": "aac48226-..."
110
+ },
111
+ "nonPayingPatientCategories": {
112
+ "childUnder5": "1528AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
113
+ }
114
+ }
115
+ }
116
+ }
117
+ }
118
+ ```
119
+
120
+ ``` bash
121
+ 📌 Ensure all UUIDs used here exist in your OpenMRS instance.
122
+ 🧩 Configuration can be managed via your MF shell app or import-map-deployer
123
+ ```
124
+
84
125
  ## Troubleshooting
85
126
 
86
127
  If you notice that your local version of the application is not working or that there's a mismatch between what you see locally versus what's in [dev3](https://dev3.openmrs.org/openmrs/spa), you likely have outdated versions of core libraries. To update core libraries, run the following commands:
@@ -90,12 +131,14 @@ If you notice that your local version of the application is not working or that
90
131
  yarn up openmrs@next @openmrs/esm-framework@next
91
132
  ```
92
133
 
93
- ### Reset version specifiers to `next`. Don't commit actual version numbers.
134
+ ### Reset version specifiers to `next`. Don't commit actual version numbers
135
+
94
136
  ```bash
95
137
  git checkout package.json
96
138
  ```
97
139
 
98
140
  ### Run `yarn` to recreate the lockfile
141
+
99
142
  ```bash
100
143
  yarn
101
144
  ```
@@ -110,8 +153,10 @@ Please see the [Implementer Documentation](https://wiki.openmrs.org/pages/viewpa
110
153
 
111
154
  ## Deployment
112
155
 
113
- See [Creating a Distribution](http://o3-dev.docs.openmrs.org/#/main/distribution?id=creating-a-distribution) for information about adding microfrontends to a distribution.
156
+ See [Creating a Distribution](https://openmrs.atlassian.net/wiki/x/IABBHg) for information about adding microfrontends to a distribution.
114
157
 
115
158
  ## Contributing
116
159
 
117
- For more information on how to get started, please refer to [OpenMRS Frontend Developer Documentation](https://o3-docs.openmrs.org/docs/introduction).
160
+ For more information on how to get started, please refer to [OpenMRS Frontend Developer Documentation](https://openmrs.atlassian.net/wiki/x/94ABCQ).
161
+
162
+ Detailed documentation on Billing Module can be found [in the OpenMRS Wiki](https://openmrs.atlassian.net/wiki/x/0w2bAQ)
@@ -1,5 +1,17 @@
1
1
  import { restBaseUrl } from '@openmrs/esm-framework';
2
2
 
3
+ export const mockPatient = {
4
+ uuid: 'dda9b65f-0037-11ec-85e7-04ed33c79a3e',
5
+ display: 'MGFRYY - WACERA WACERA WACERA',
6
+ links: [
7
+ {
8
+ rel: 'self',
9
+ uri: `http://localhost:8089/openmrs${restBaseUrl}/patient/dda9b65f-0037-11ec-85e7-04ed33c79a3e`,
10
+ resourceAlias: 'patient',
11
+ },
12
+ ],
13
+ };
14
+
3
15
  export const billsSummary = [
4
16
  {
5
17
  uuid: '65f9f19a-f70e-44f4-9c6c-55b23dab4a3f',
@@ -31,9 +31,11 @@ const renderNodes = (reactNodes) => {
31
31
 
32
32
  const useMock = [(key) => key, {}];
33
33
  useMock.t = (key, defaultValue, options = {}) => {
34
- let translatedString = defaultValue;
35
- Object.keys(options).forEach((key) => {
36
- translatedString = defaultValue.replace(`{{${key}}}`, `${options[key]}`);
34
+ let translatedString = defaultValue || key;
35
+ Object.entries(options).forEach(([k, v]) => {
36
+ if (key !== 'interpolation') {
37
+ translatedString = translatedString.replace(new RegExp(`{{${k}}}`, 'g'), v);
38
+ }
37
39
  });
38
40
 
39
41
  return translatedString;
@@ -43,10 +45,9 @@ useMock.i18n = { language: 'en_US' };
43
45
 
44
46
  module.exports = {
45
47
  // this mock makes sure any components using the translate HoC receive the t function as a prop
46
- Trans: ({ children }) => renderNodes(children),
48
+ Trans: ({ children }) => (Array.isArray(children) ? renderNodes(children) : renderNodes([children])),
47
49
  Translation: ({ children }) => children((k) => k, { i18n: {} }),
48
50
  useTranslation: () => useMock,
49
-
50
51
  // mock if needed
51
52
  I18nextProvider: reactI18next.I18nextProvider,
52
53
  initReactI18next: reactI18next.initReactI18next,
package/dist/1119.js CHANGED
@@ -1 +1 @@
1
- "use strict";(globalThis.webpackChunk_openmrs_esm_billing_app=globalThis.webpackChunk_openmrs_esm_billing_app||[]).push([[1119],{41119:e=>{e.exports=JSON.parse('{"actions":"Actions","addBill":"Add bill item(s)","addBillableServices":"Add Billable Services","addCashPoint":"Add Cash Point","addNewBillableService":"Add new billable service","addNewService":"Add new service","addPaymentMode":"Add Payment Mode","addPaymentOptions":"Add payment option","amount":"Amount","amountDue":"Amount Due","amountToWaiveAriaLabel":"Enter amount to waive","amountToWaiveHelper":"Specify the amount to be deducted from the bill","amountToWaiveLabel":"Amount to Waive","billableService":"Billable service","billableServices":"Billable Services","billedItems":"Billed Items","billedTo":"Billed to","billErrorService":"Bill service error","billing":"Billing","billingForm":"Billing form","billingHistory":"Billing History","billingSettings":"Billing Settings","billItem":"Bill item","billItems":"Bill Items","billLineItemEmpty":"This bill has no line items","billList":"Bill list","billMetrics":"Bill metrics","billName":" {{billName}} ","billPayment":"Bill payment","billPaymentError":"Bill payment error","billPaymentRequiredMessage":"The current patient has pending bill. Advice patient to settle bill before receiving services","billServicesManagement":"Bill services management","billsList":"Bill list","billTotal":"Bill total","billWaiver":"Bill waiver","billWaiverError":"Bill waiver failed {{error}}","billWaiverSuccess":"Bill waiver successful","cancel":"Cancel","cashPointConfig":"Cash Point Config","cashPointHistory":"Cash Point History","cashPointLocation":"Cash Point Location","cashPointName":"Cash Point Name","cashPointNamePlaceholder":"e.g., Pharmacy Cash Point","cashPointSaved":"Cash point was successfully saved.","cashPointUuid":"Cash Point UUID","cashPointUuidPlaceholder":"Enter UUID","checkFilters":"Check the filters above","clearSearchInput":"Clear search input","clientBalance":"Client Balance","confirmDeleteMessage":"Are you sure you want to delete this payment mode? Proceed cautiously.","createdSuccessfully":"Billable service created successfully","currentPrice":"Current price","delete":"Delete","deletePaymentMode":"Delete Payment Mode","description":"Description","descriptionPlaceholder":"e.g., Used for all cash transactions","discard":"Discard","discount":"Discount","duplicateCashPointError":"A cash point with the same name or UUID already exists. Please use a unique name and UUID.","duplicatePaymentModeError":"A payment mode with the same name already exists. Please create another payment mode","editBillableService":"Edit billable service","editBillableServices":"Edit Billable Services","editBillLineItem":"Edit bill line item?","editThisBillItem":"Edit this bill item","enterAmount":"Enter amount","enterConcept":"Associated concept","enterReferenceNumber":"Enter ref. number","error":"Error","errorDeletingPaymentMode":"An error occurred while deleting the payment mode.","errorFetchingCashPoints":"An error occurred while fetching cash points.","errorFetchingLocations":"An error occurred while fetching locations.","errorFetchingPaymentModes":"An error occurred while fetching payment modes.","errorLoadingBillServices":"Error loading bill services","errorLoadingPaymentModes":"Payment modes error","errorSavingCashPoint":"An error occurred while saving the cash point.","errorSavingPaymentMode":"An error occurred while saving the payment mode.","filterBy":"Filter by","filterTable":"Filter table","grandTotal":"Grand total","home":"Home","identifier":"Identifier","inlineLoading":"Loading bill items...","insuranceScheme":"Insurance scheme","invalidWaiverAmount":"Invalid waiver amount","invoice":"Invoice","invoiceError":"Invoice error","item":"Item","itemsToBeBilled":"Items to be billed","launchBillForm":"Launch bill form","lineItems":"Line items","loading":"Loading data...","loadingBillingServices":"Loading billing services...","loadingDescription":"Loading","location":"Select Location","manageBillableServices":"Manage billable services","name":"Name","nextPage":"Next page","noBilltoDisplay":"There are no bills to display for this patient","noMatchingBillsToDisplay":"No matching bills to display","noMatchingItemsToDisplay":"No matching items to display","noMatchingServicesToDisplay":"No matching services to display","noResultsFor":"No results for","noResultsFound":"No results found","noServicesToDisplay":"There are no services to display","ok":"OK","patientBillingAlert":"Patient Billing Alert","patientBills":"Patient bill","patientBillsDescription":"List of patient bills","patientCategory":"Patient category","paymentDetails":"Payment Details","paymentMethod":"Payment method","paymentMethods":"Payment methods","paymentMode":"Payment Mode","paymentModeDeleted":"Payment mode was successfully deleted.","paymentModeHistory":"Payment Mode History","paymentModeName":"Payment Mode Name","paymentModeNamePlaceholder":"e.g., Cash, Credit Card","paymentModeSaved":"Payment mode was successfully saved.","paymentModesConfig":"Payment Modes Config","payments":"Payments","pleaseRequiredFields":"Please fill all required fields","policyNumber":"Policy number","postWaiver":"Post waiver","previousPage":"Previous page","price":"Unit Price","priceIsRequired":"Price is required","prices":"Prices","printBill":"Print bill","printReceipt":"Print receipt","processPayment":"Process Payment","quantity":"Quantity","quantityGreaterThanZero":"Quantity must be greater than zero","quantityRequired":"Quantity is required","referenceNumber":"Reference number","save":"Save","saveAndClose":"Save and close","saving":"Saving","searchConcepts":"Search associated concept","searching":"Searching","searchItems":"Search items and services","searchThisTable":"Search this table","selectBillableService":"Select a billable service...","selectCategory":"Select category","selectPatientCategory":"Select patient category","selectPaymentMethod":"Select payment method","sellingAmount":"Enter selling price","sellingPrice":"Selling Price","service":"Service","serviceMetrics":"Service Metrics","serviceName":"Service Name","serviceNameExceedsLimit":"Service Name exceeds the character limit of {{MAX_NAME_LENGTH}}.","serviceShortName":"Short Name","servicesList":"Services list","serviceType":"Service Type","shortName":"Short Name","shortNameExceedsLimit":"Short Name exceeds the character limit of {{MAX_NAME_LENGTH}}.","status":"Service Status","stockItem":"Stock Item","submitting":"Submitting...","success":"Success","total":"Total","totalAmount":"Total Amount","totalTendered":"Total Tendered","unitPrice":"Unit price","updatedSuccessfully":"Billable service updated successfully","uuid":"UUID","visitTime":"Visit time","waiverForm":"Waiver form"}')}}]);
1
+ "use strict";(globalThis.webpackChunk_openmrs_esm_billing_app=globalThis.webpackChunk_openmrs_esm_billing_app||[]).push([[1119],{41119:e=>{e.exports=JSON.parse('{"add":"Add","addBill":"Add bill items","addBillableService":"Add billable service","addCashPoint":"Add cash point","addNewBillableService":"Add new billable service","addNewCashPoint":"Add new cash point","addNewPaymentMode":"Add new payment mode","addNewService":"Add new service","addPaymentMethod":"Add payment method","addPaymentMode":"Add payment mode","addPaymentOption":"Add payment option","amount":"Amount","amountDue":"Amount due","amountMustBePositive":"Amount must be greater than 0","amountRequired":"Amount is required","amountTendered":"Amount tendered","amountToWaiveAriaLabel":"Enter amount to waive","amountToWaiveHelper":"Specify the amount to be deducted from the bill","amountToWaiveLabel":"Amount to waive","associatedConcept":"Associated concept","billableService":"Billable service","billableServiceCreated":"Billable service created","billableServiceCreatedSuccessfully":"Billable service created successfully","billableServiceForm":"Billable service form","billableServices":"Billable services","billableServices__lower":"billable services","billableServicesManagement":"Billable services management","billableServiceUpdated":"Billable service updated","billableServiceUpdatedSuccessfully":"Billable service updated successfully","billAmount":"Bill amount","billCode":"Bill code","billCreatedSuccessfully":"Bill created successfully","billCreationError":"Bill creation error","billedItems":"Billed items","billedTo":"Billed to","billErrorService":"Billing service error","billing":"Billing","billingForm":"Billing form","billingHistory":"Billing history","billingSettings":"Billing settings","billItem":"Bill item","billItems":"Bill items","billLineItemEmpty":"This bill has no line items","billList":"Bill list","billMetrics":"Bill metrics","billName":"{{billName}}","billPayment":"Bill payment","billPaymentError":"Bill payment error","billPaymentRequiredMessage":"The current patient has a pending bill. Advise the patient to settle the bill before receiving services","billProcessedSuccessfully":"Bill processed successfully","billProcessingError":"Bill processing error","billsTable":"Bills table","billTotal":"Bill total","billWaiver":"Bill waiver","billWaiverError":"Bill waiver failed {{error}}","billWaiverSuccess":"Bill waiver successful","birthDate":"Date of birth","cashPointConfig":"Cash point configuration","cashPointHistory":"Cash point history","cashPointLocation":"Cash point location","cashPointName":"Cash point name","cashPointNamePlaceholder":"For example, Pharmacy Cash Point","cashPointNameRequired":"Cash point name is required","cashPointSaved":"Cash point was successfully saved.","cashPointUuid":"Cash point UUID","cashPointUuidPlaceholder":"Enter UUID","checkFilters":"Check the filters above","confirmDeleteMessage":"Are you sure you want to delete this payment mode? Proceed cautiously.","cumulativeBills":"Cumulative bills","currentPrice":"Current price","date":"Date","dateAndTime":"Date and time","dateOfPayment":"Date of payment","deletePaymentMode":"Delete payment mode","deleting":"Deleting","description":"Description","descriptionPlaceholder":"For example, Used for all cash transactions","discard":"Discard","discount":"Discount","discountAmount":"Discount amount","editBillableService":"Edit billable service","editBillLineItem":"Edit bill line item","editPaymentMode":"Edit payment mode","editThisBillItem":"Edit this bill item","enterAmount":"Enter amount","enterReferenceNumber":"Enter reference number","enterSellingPrice":"Enter selling price","enterServiceName":"Enter service name","enterServiceShortName":"Enter service short name","errorCreatingBill":"An error occurred while creating the bill","errorDeletingPaymentMode":"An error occurred while deleting the payment mode.","errorFetchingCashPoints":"An error occurred while fetching cash points.","errorFetchingLocations":"An error occurred while fetching locations.","errorLoadingBillableServices":"Error loading billable services","errorLoadingBillServices":"Error loading bill services","errorLoadingPaymentModes":"Payment modes error","errorPrintingInvoice":"Error printing invoice","errorProcessingPayment":"Error processing payment","errorSavingCashPoint":"An error occurred while saving the cash point.","errorSavingPaymentMode":"An error occurred while saving the payment mode.","filterBy":"Filter by:","filterTable":"Filter table","gender":"Gender","grandTotal":"Grand total","home":"Home","identifier":"Identifier","insuranceScheme":"Insurance scheme","invalidUuidFormat":"Invalid UUID format","invalidWaiverAmount":"Invalid waiver amount","inventoryItem":"Inventory item","invoice":"Invoice","invoiceDate":"Invoice date","invoiceError":"Invoice error","invoiceLineItems":"Invoice line items","invoiceNumber":"Invoice #","invoiceStatus":"Invoice status","item":"Item","itemsToBeBilled":"Items to be billed","launchBillForm":"Launch bill form","lineItems":"Line items","lineItemUpdated":"Line item updated","lineItemUpdateErrorDefault":"Unable to update the bill line item. Please try again.","lineItemUpdateFailed":"Failed to update line item","lineItemUpdateSuccess":"The bill line item has been updated successfully","loading":"Loading data","loadingBillInfo":"Loading bill information","loadingBillingServices":"Loading billing services","loadingBillItems":"Loading bill items","loadingBillMetrics":"Loading bill metrics","loadingDescription":"Loading","location":"Location","locationRequired":"Location is required","manageBillableServices":"Manage billable services","name":"Name","nextPage":"Next page","noBillToDisplay":"There are no bills to display for this patient","noMatchingBillsToDisplay":"No matching bills to display","noMatchingItemsToDisplay":"No matching items to display","noMatchingServicesToDisplay":"No matching services to display","noResultsFor":"No results for {{searchTerm}}","number":"Number","ok":"OK","paidBills":"Paid bills","patientBill":"Patient bill","patientBillingAlert":"Patient billing alert","patientBills":"Patient bills","patientBillsDescription":"List of patient bills","patientCategory":"Patient category","paymentAmountCannotExceedAmountDue":"Payment amount cannot exceed amount due","paymentDetails":"Payment details","paymentMethod":"Payment method","paymentMethodRequired":"Payment method is required for all items","paymentMethods":"Payment methods","paymentMode":"Payment mode","paymentModeDeleted":"Payment mode was successfully deleted.","paymentModeHistory":"Payment mode history","paymentModeNameLabel":"Payment mode name","paymentModeNamePlaceholder":"For example, Cash, Credit Card","paymentModeNameRequired":"Payment mode name is required","paymentModeNameToDelete":"Payment mode name: {{paymentModeName}}","paymentModeRequired":"Payment mode is required","paymentModeSaved":"Payment mode was successfully saved.","paymentModesConfig":"Payment modes configuration","paymentOptionRequired":"At least one payment option is required","paymentProcessedSuccessfully":"Payment processed successfully","payments":"Payments","pendingBills":"Pending bills","policyNumber":"Policy number","postWaiver":"Post waiver","previousPage":"Previous page","price":"Price","priceIsRequired":"Price is required","priceMustBeNumber":"Price must be a valid number","priceMustBePositive":"Price must be greater than 0","prices":"Prices","printBill":"Print bill","printReceipt":"Print receipt","processPayment":"Process payment","quantity":"Quantity","quantityCannotExceed100":"Quantity cannot exceed 100","quantityMustBeAtLeastOne":"Quantity must be at least 1","quantityMustBeInteger":"Quantity must be a whole number","quantityMustBeNumber":"Quantity must be a valid number","quantityRequired":"Quantity is required","referenceNumber":"Reference number","remove":"Remove","removePaymentMethod":"Remove payment method","saveAndClose":"Save and close","saveBill":"Save bill","saving":"Saving","searchConcepts":"Search associated concept","searching":"Searching","searchItems":"Search items and services","searchThisTable":"Search this table","selectBillableService":"Select a billable service","selectedItems":"Selected items","selectLocation":"Select location","selectPatientCategory":"Select patient category","selectPaymentMethod":"Select payment method","selectPaymentMode":"Select payment mode","selectServiceType":"Select service type","sellingPrice":"Selling price","serviceList":"Service list","serviceName":"Service name","serviceNameExceedsLimit":"Service name cannot exceed {{MAX_NAME_LENGTH}} characters","serviceNameRequired":"Service name is required","servicesList":"Services list","serviceStatus":"Service status","serviceType":"Service type","serviceTypeRequired":"Service type is required","shortName":"Short name","shortNameExceedsLimit":"Short name cannot exceed {{MAX_NAME_LENGTH}} characters","status":"Service status","submitting":"Submitting","success":"Success","total":"Total","totalAmount":"Total amount","totalTendered":"Total tendered","unitPrice":"Unit price","unitPriceHelperText":"This is the unit price for this item","uuid":"UUID","uuidRequired":"UUID is required","validationError":"Validation error","visitTime":"Visit time","waiverForm":"Waiver form"}')}}]);
package/dist/1146.js CHANGED
@@ -1,2 +1 @@
1
- /*! For license information please see 1146.js.LICENSE.txt */
2
- "use strict";(globalThis.webpackChunk_openmrs_esm_billing_app=globalThis.webpackChunk_openmrs_esm_billing_app||[]).push([[1146],{23379:(e,t,n)=>{n.d(t,{A:()=>R});var r=n(11754),a=n(86993);var o=n(23149);const i=function(e){return e==e&&!(0,o.A)(e)};var l=n(27422);const u=function(e,t){return function(n){return null!=n&&n[e]===t&&(void 0!==t||e in Object(n))}},s=function(e){var t=function(e){for(var t=(0,l.A)(e),n=t.length;n--;){var r=t[n],a=e[r];t[n]=[r,a,i(a)]}return t}(e);return 1==t.length&&t[0][2]?u(t[0][0],t[0][1]):function(n){return n===e||function(e,t,n,o){var i=n.length,l=i,u=!o;if(null==e)return!l;for(e=Object(e);i--;){var s=n[i];if(u&&s[2]?s[1]!==e[s[0]]:!(s[0]in e))return!1}for(;++i<l;){var c=(s=n[i])[0],h=e[c],d=s[1];if(u&&s[2]){if(void 0===h&&!(c in e))return!1}else{var p=new r.A;if(o)var f=o(h,d,c,e,t,p);if(!(void 0===f?(0,a.A)(d,h,3,o,p):f))return!1}}return!0}(n,e,t)}};var c=n(66318);const h=function(e,t){return null!=e&&t in Object(e)};var d=n(63442),p=n(52274),f=n(92049),m=n(25353),v=n(5254),g=n(30901);const y=function(e,t){return null!=e&&function(e,t,n){for(var r=-1,a=(t=(0,d.A)(t,e)).length,o=!1;++r<a;){var i=(0,g.A)(t[r]);if(!(o=null!=e&&n(e,i)))break;e=e[i]}return o||++r!=a?o:!!(a=null==e?0:e.length)&&(0,v.A)(a)&&(0,m.A)(i,a)&&((0,f.A)(e)||(0,p.A)(e))}(e,t,h)};var b=n(86586);const w=function(e,t){return(0,b.A)(e)&&i(t)?u((0,g.A)(e),t):function(n){var r=function(e,t,n){var r=null==e?void 0:(0,c.A)(e,t);return void 0===r?n:r}(n,e);return void 0===r&&r===t?y(n,e):(0,a.A)(t,r,3)}};var E=n(29008);const x=function(e){return(0,b.A)(e)?(t=(0,g.A)(e),function(e){return null==e?void 0:e[t]}):function(e){return function(t){return(0,c.A)(t,e)}}(e);var t},R=function(e){return"function"==typeof e?e:null==e?E.A:"object"==typeof e?(0,f.A)(e)?w(e[0],e[1]):s(e):x(e)}},45588:(e,t,n)=>{function r(){return r=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},r.apply(this,arguments)}var a;n.d(t,{HS:()=>U,Oi:()=>l,Rr:()=>d,pX:()=>B,pb:()=>A,rc:()=>a,tH:()=>L,ue:()=>f,zR:()=>i}),function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"}(a||(a={}));const o="popstate";function i(e){return void 0===e&&(e={}),function(e,t,n,i){void 0===i&&(i={});let{window:u=document.defaultView,v5Compat:d=!1}=i,p=u.history,f=a.Pop,m=null,v=g();function g(){return(p.state||{idx:null}).idx}function y(){f=a.Pop;let e=g(),t=null==e?null:e-v;v=e,m&&m({action:f,location:w.location,delta:t})}function b(e){let t="null"!==u.location.origin?u.location.origin:u.location.href,n="string"==typeof e?e:h(e);return l(t,"No window.location.(origin|href) available to create URL for href: "+n),new URL(n,t)}null==v&&(v=0,p.replaceState(r({},p.state,{idx:v}),""));let w={get action(){return f},get location(){return e(u,p)},listen(e){if(m)throw new Error("A history only accepts one active listener");return u.addEventListener(o,y),m=e,()=>{u.removeEventListener(o,y),m=null}},createHref:e=>t(u,e),createURL:b,encodeLocation(e){let t=b(e);return{pathname:t.pathname,search:t.search,hash:t.hash}},push:function(e,t){f=a.Push;let r=c(w.location,e,t);n&&n(r,e),v=g()+1;let o=s(r,v),i=w.createHref(r);try{p.pushState(o,"",i)}catch(e){if(e instanceof DOMException&&"DataCloneError"===e.name)throw e;u.location.assign(i)}d&&m&&m({action:f,location:w.location,delta:1})},replace:function(e,t){f=a.Replace;let r=c(w.location,e,t);n&&n(r,e),v=g();let o=s(r,v),i=w.createHref(r);p.replaceState(o,"",i),d&&m&&m({action:f,location:w.location,delta:0})},go:e=>p.go(e)};return w}((function(e,t){let{pathname:n,search:r,hash:a}=e.location;return c("",{pathname:n,search:r,hash:a},t.state&&t.state.usr||null,t.state&&t.state.key||"default")}),(function(e,t){return"string"==typeof t?t:h(t)}),null,e)}function l(e,t){if(!1===e||null==e)throw new Error(t)}function u(e,t){if(!e){"undefined"!=typeof console&&console.warn(t);try{throw new Error(t)}catch(e){}}}function s(e,t){return{usr:e.state,key:e.key,idx:t}}function c(e,t,n,a){return void 0===n&&(n=null),r({pathname:"string"==typeof e?e:e.pathname,search:"",hash:""},"string"==typeof t?d(t):t,{state:n,key:t&&t.key||a||Math.random().toString(36).substr(2,8)})}function h(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&"?"!==n&&(t+="?"===n.charAt(0)?n:"?"+n),r&&"#"!==r&&(t+="#"===r.charAt(0)?r:"#"+r),t}function d(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}var p;function f(e,t,n){void 0===n&&(n="/");let r=A(("string"==typeof t?d(t):t).pathname||"/",n);if(null==r)return null;let a=m(e);!function(e){e.sort(((e,t)=>e.score!==t.score?t.score-e.score:function(e,t){return e.length===t.length&&e.slice(0,-1).every(((e,n)=>e===t[n]))?e[e.length-1]-t[t.length-1]:0}(e.routesMeta.map((e=>e.childrenIndex)),t.routesMeta.map((e=>e.childrenIndex)))))}(a);let o=null;for(let e=0;null==o&&e<a.length;++e)o=C(a[e],P(r));return o}function m(e,t,n,r){void 0===t&&(t=[]),void 0===n&&(n=[]),void 0===r&&(r="");let a=(e,a,o)=>{let i={relativePath:void 0===o?e.path||"":o,caseSensitive:!0===e.caseSensitive,childrenIndex:a,route:e};i.relativePath.startsWith("/")&&(l(i.relativePath.startsWith(r),'Absolute route path "'+i.relativePath+'" nested under path "'+r+'" is not valid. An absolute child route path must start with the combined path of all its parent routes.'),i.relativePath=i.relativePath.slice(r.length));let u=U([r,i.relativePath]),s=n.concat(i);e.children&&e.children.length>0&&(l(!0!==e.index,'Index routes must not have child routes. Please remove all child routes from route path "'+u+'".'),m(e.children,t,s,u)),(null!=e.path||e.index)&&t.push({path:u,score:S(u,e.index),routesMeta:s})};return e.forEach(((e,t)=>{var n;if(""!==e.path&&null!=(n=e.path)&&n.includes("?"))for(let n of v(e.path))a(e,t,n);else a(e,t)})),t}function v(e){let t=e.split("/");if(0===t.length)return[];let[n,...r]=t,a=n.endsWith("?"),o=n.replace(/\?$/,"");if(0===r.length)return a?[o,""]:[o];let i=v(r.join("/")),l=[];return l.push(...i.map((e=>""===e?o:[o,e].join("/")))),a&&l.push(...i),l.map((t=>e.startsWith("/")&&""===t?"/":t))}!function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"}(p||(p={})),new Set(["lazy","caseSensitive","path","id","index","children"]);const g=/^:[\w-]+$/,y=3,b=2,w=1,E=10,x=-2,R=e=>"*"===e;function S(e,t){let n=e.split("/"),r=n.length;return n.some(R)&&(r+=x),t&&(r+=b),n.filter((e=>!R(e))).reduce(((e,t)=>e+(g.test(t)?y:""===t?w:E)),r)}function C(e,t){let{routesMeta:n}=e,r={},a="/",o=[];for(let e=0;e<n.length;++e){let i=n[e],l=e===n.length-1,u="/"===a?t:t.slice(a.length)||"/",s=O({path:i.relativePath,caseSensitive:i.caseSensitive,end:l},u);if(!s)return null;Object.assign(r,s.params);let c=i.route;o.push({params:r,pathname:U([a,s.pathname]),pathnameBase:k(U([a,s.pathnameBase])),route:c}),"/"!==s.pathnameBase&&(a=U([a,s.pathnameBase]))}return o}function O(e,t){"string"==typeof e&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=function(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!0),u("*"===e||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were "'+e.replace(/\*$/,"/*")+'" because the `*` character must always follow a `/` in the pattern. To get rid of this warning, please change the route path to "'+e.replace(/\*$/,"/*")+'".');let r=[],a="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,((e,t,n)=>(r.push({paramName:t,isOptional:null!=n}),n?"/?([^\\/]+)?":"/([^\\/]+)")));return e.endsWith("*")?(r.push({paramName:"*"}),a+="*"===e||"/*"===e?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?a+="\\/*$":""!==e&&"/"!==e&&(a+="(?:(?=\\/|$))"),[new RegExp(a,t?void 0:"i"),r]}(e.path,e.caseSensitive,e.end),a=t.match(n);if(!a)return null;let o=a[0],i=o.replace(/(.)\/+$/,"$1"),l=a.slice(1);return{params:r.reduce(((e,t,n)=>{let{paramName:r,isOptional:a}=t;if("*"===r){let e=l[n]||"";i=o.slice(0,o.length-e.length).replace(/(.)\/+$/,"$1")}const s=l[n];return e[r]=a&&!s?void 0:function(e,t){try{return decodeURIComponent(e)}catch(n){return u(!1,'The value for the URL param "'+t+'" will not be decoded because the string "'+e+'" is a malformed URL segment. This is probably due to a bad percent encoding ('+n+")."),e}}(s||"",r),e}),{}),pathname:o,pathnameBase:i,pattern:e}}function P(e){try{return decodeURI(e)}catch(t){return u(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent encoding ('+t+")."),e}}function A(e,t){if("/"===t)return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&"/"!==r?null:e.slice(n)||"/"}const U=e=>e.join("/").replace(/\/\/+/g,"/"),k=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/");class L extends Error{}function B(e){return null!=e&&"number"==typeof e.status&&"string"==typeof e.statusText&&"boolean"==typeof e.internal&&"data"in e}const T=["post","put","patch","delete"],j=(new Set(T),["get",...T]);new Set(j),new Set([301,302,303,307,308]),new Set([307,308]),Symbol("deferred")},47767:(e,t,n)=>{n.d(t,{BV:()=>S,Ix:()=>R,g:()=>f,qh:()=>x,zy:()=>p});var r=n(16072),a=n(45588);function o(){return o=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o.apply(this,arguments)}const i=r.createContext(null),l=r.createContext(null),u=r.createContext(null),s=r.createContext(null),c=r.createContext({outlet:null,matches:[],isDataRoute:!1}),h=r.createContext(null);function d(){return null!=r.useContext(s)}function p(){return d()||(0,a.Oi)(!1),r.useContext(s).location}function f(){let{matches:e}=r.useContext(c),t=e[e.length-1];return t?t.params:{}}function m(e,t,n,i){d()||(0,a.Oi)(!1);let{navigator:l}=r.useContext(u),{matches:h}=r.useContext(c),f=h[h.length-1],m=f?f.params:{},v=(f&&f.pathname,f?f.pathnameBase:"/");f&&f.route;let w,x=p();if(t){var R;let e="string"==typeof t?(0,a.Rr)(t):t;"/"===v||(null==(R=e.pathname)?void 0:R.startsWith(v))||(0,a.Oi)(!1),w=e}else w=x;let S=w.pathname||"/",C="/"===v?S:S.slice(v.length)||"/",O=(0,a.ue)(e,{pathname:C}),P=function(e,t,n,o){var i;if(void 0===t&&(t=[]),void 0===n&&(n=null),void 0===o&&(o=null),null==e){var l;if(null==(l=n)||!l.errors)return null;e=n.matches}let u=e,s=null==(i=n)?void 0:i.errors;if(null!=s){let e=u.findIndex((e=>e.route.id&&(null==s?void 0:s[e.route.id])));e>=0||(0,a.Oi)(!1),u=u.slice(0,Math.min(u.length,e+1))}let c=!1,h=-1;if(n&&o&&o.v7_partialHydration)for(let e=0;e<u.length;e++){let t=u[e];if((t.route.HydrateFallback||t.route.hydrateFallbackElement)&&(h=e),t.route.id){let{loaderData:e,errors:r}=n,a=t.route.loader&&void 0===e[t.route.id]&&(!r||void 0===r[t.route.id]);if(t.route.lazy||a){c=!0,u=h>=0?u.slice(0,h+1):[u[0]];break}}}return u.reduceRight(((e,a,o)=>{let i,l=!1,d=null,p=null;var f;n&&(i=s&&a.route.id?s[a.route.id]:void 0,d=a.route.errorElement||g,c&&(h<0&&0===o?(E[f="route-fallback"]||(E[f]=!0),l=!0,p=null):h===o&&(l=!0,p=a.route.hydrateFallbackElement||null)));let m=t.concat(u.slice(0,o+1)),v=()=>{let t;return t=i?d:l?p:a.route.Component?r.createElement(a.route.Component,null):a.route.element?a.route.element:e,r.createElement(b,{match:a,routeContext:{outlet:e,matches:m,isDataRoute:null!=n},children:t})};return n&&(a.route.ErrorBoundary||a.route.errorElement||0===o)?r.createElement(y,{location:n.location,revalidation:n.revalidation,component:d,error:i,children:v(),routeContext:{outlet:null,matches:m,isDataRoute:!0}}):v()}),null)}(O&&O.map((e=>Object.assign({},e,{params:Object.assign({},m,e.params),pathname:(0,a.HS)([v,l.encodeLocation?l.encodeLocation(e.pathname).pathname:e.pathname]),pathnameBase:"/"===e.pathnameBase?v:(0,a.HS)([v,l.encodeLocation?l.encodeLocation(e.pathnameBase).pathname:e.pathnameBase])}))),h,n,i);return t&&P?r.createElement(s.Provider,{value:{location:o({pathname:"/",search:"",hash:"",state:null,key:"default"},w),navigationType:a.rc.Pop}},P):P}function v(){let e=function(){var e;let t=r.useContext(h),n=function(){let e=r.useContext(l);return e||(0,a.Oi)(!1),e}(w.UseRouteError),o=function(){let e=function(){let e=r.useContext(c);return e||(0,a.Oi)(!1),e}(),t=e.matches[e.matches.length-1];return t.route.id||(0,a.Oi)(!1),t.route.id}(w.UseRouteError);return void 0!==t?t:null==(e=n.errors)?void 0:e[o]}(),t=(0,a.pX)(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,o={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return r.createElement(r.Fragment,null,r.createElement("h2",null,"Unexpected Application Error!"),r.createElement("h3",{style:{fontStyle:"italic"}},t),n?r.createElement("pre",{style:o},n):null,null)}const g=r.createElement(v,null);class y extends r.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||"idle"!==t.revalidation&&"idle"===e.revalidation?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:void 0!==e.error?e.error:t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){console.error("React Router caught the following error during render",e,t)}render(){return void 0!==this.state.error?r.createElement(c.Provider,{value:this.props.routeContext},r.createElement(h.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function b(e){let{routeContext:t,match:n,children:a}=e,o=r.useContext(i);return o&&o.static&&o.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(o.staticContext._deepestRenderedBoundaryId=n.route.id),r.createElement(c.Provider,{value:t},a)}var w=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(w||{});const E={};function x(e){(0,a.Oi)(!1)}function R(e){let{basename:t="/",children:n=null,location:i,navigationType:l=a.rc.Pop,navigator:c,static:h=!1,future:p}=e;d()&&(0,a.Oi)(!1);let f=t.replace(/^\/*/,"/"),m=r.useMemo((()=>({basename:f,navigator:c,static:h,future:o({v7_relativeSplatPath:!1},p)})),[f,p,c,h]);"string"==typeof i&&(i=(0,a.Rr)(i));let{pathname:v="/",search:g="",hash:y="",state:b=null,key:w="default"}=i,E=r.useMemo((()=>{let e=(0,a.pb)(v,f);return null==e?null:{location:{pathname:e,search:g,hash:y,state:b,key:w},navigationType:l}}),[f,v,g,y,b,w,l]);return null==E?null:r.createElement(u.Provider,{value:m},r.createElement(s.Provider,{children:n,value:E}))}function S(e){let{children:t,location:n}=e;return m(C(t),n)}function C(e,t){void 0===t&&(t=[]);let n=[];return r.Children.forEach(e,((e,o)=>{if(!r.isValidElement(e))return;let i=[...t,o];if(e.type===r.Fragment)return void n.push.apply(n,C(e.props.children,i));e.type!==x&&(0,a.Oi)(!1),e.props.index&&e.props.children&&(0,a.Oi)(!1);let l={id:e.props.id||i.join("-"),caseSensitive:e.props.caseSensitive,element:e.props.element,Component:e.props.Component,index:e.props.index,path:e.props.path,loader:e.props.loader,action:e.props.action,errorElement:e.props.errorElement,ErrorBoundary:e.props.ErrorBoundary,hasErrorBoundary:null!=e.props.ErrorBoundary||null!=e.props.errorElement,shouldRevalidate:e.props.shouldRevalidate,handle:e.props.handle,lazy:e.props.lazy};e.props.children&&(l.children=C(e.props.children,i)),n.push(l)})),n}r.startTransition,new Promise((()=>{})),r.Component},84976:(e,t,n)=>{n.d(t,{Kd:()=>u});var r=n(16072),a=n(92646),o=n(47767),i=n(45588);new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]),new Map;const l=r.startTransition;function u(e){let{basename:t,children:n,future:a,window:u}=e,s=r.useRef();null==s.current&&(s.current=(0,i.zR)({window:u,v5Compat:!0}));let c=s.current,[h,d]=r.useState({action:c.action,location:c.location}),{v7_startTransition:p}=a||{},f=r.useCallback((e=>{p&&l?l((()=>d(e))):d(e)}),[d,p]);return r.useLayoutEffect((()=>c.listen(f)),[c,f]),r.createElement(o.Ix,{basename:t,children:n,location:h.location,navigationType:h.action,navigator:c,future:a})}var s,c;a.flushSync,r.useId,"undefined"!=typeof window&&void 0!==window.document&&window.document.createElement,function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"}(s||(s={})),function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"}(c||(c={}))}}]);
1
+ "use strict";(globalThis.webpackChunk_openmrs_esm_billing_app=globalThis.webpackChunk_openmrs_esm_billing_app||[]).push([[1146],{23379:(n,t,e)=>{e.d(t,{A:()=>F});var r=e(11754),o=e(86993);var u=e(23149);const i=function(n){return n==n&&!(0,u.A)(n)};var a=e(27422);const c=function(n,t){return function(e){return null!=e&&e[n]===t&&(void 0!==t||n in Object(e))}},l=function(n){var t=function(n){for(var t=(0,a.A)(n),e=t.length;e--;){var r=t[e],o=n[r];t[e]=[r,o,i(o)]}return t}(n);return 1==t.length&&t[0][2]?c(t[0][0],t[0][1]):function(e){return e===n||function(n,t,e,u){var i=e.length,a=i,c=!u;if(null==n)return!a;for(n=Object(n);i--;){var l=e[i];if(c&&l[2]?l[1]!==n[l[0]]:!(l[0]in n))return!1}for(;++i<a;){var s=(l=e[i])[0],f=n[s],v=l[1];if(c&&l[2]){if(void 0===f&&!(s in n))return!1}else{var d=new r.A;if(u)var h=u(f,v,s,n,t,d);if(!(void 0===h?(0,o.A)(v,f,3,u,d):h))return!1}}return!0}(e,n,t)}};var s=e(66318);const f=function(n,t){return null!=n&&t in Object(n)};var v=e(63442),d=e(52274),h=e(92049),w=e(25353),A=e(5254),p=e(30901);const b=function(n,t){return null!=n&&function(n,t,e){for(var r=-1,o=(t=(0,v.A)(t,n)).length,u=!1;++r<o;){var i=(0,p.A)(t[r]);if(!(u=null!=n&&e(n,i)))break;n=n[i]}return u||++r!=o?u:!!(o=null==n?0:n.length)&&(0,A.A)(o)&&(0,w.A)(i,o)&&((0,h.A)(n)||(0,d.A)(n))}(n,t,f)};var m=e(86586);const S=function(n,t){return(0,m.A)(n)&&i(t)?c((0,p.A)(n),t):function(e){var r=function(n,t,e){var r=null==n?void 0:(0,s.A)(n,t);return void 0===r?e:r}(e,n);return void 0===r&&r===t?b(e,n):(0,o.A)(t,r,3)}};var g=e(29008);const _=function(n){return(0,m.A)(n)?(t=(0,p.A)(n),function(n){return null==n?void 0:n[t]}):function(n){return function(t){return(0,s.A)(t,n)}}(n);var t},F=function(n){return"function"==typeof n?n:null==n?g.A:"object"==typeof n?(0,h.A)(n)?S(n[0],n[1]):l(n):_(n)}},84976:(n,t,e)=>{e.d(t,{Kd:()=>c});var r=e(16072),o=e(92646),u=e(47767),i=e(45588);new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]),new Map;const a=r.startTransition;function c(n){let{basename:t,children:e,future:o,window:c}=n,l=r.useRef();null==l.current&&(l.current=(0,i.zR)({window:c,v5Compat:!0}));let s=l.current,[f,v]=r.useState({action:s.action,location:s.location}),{v7_startTransition:d}=o||{},h=r.useCallback((n=>{d&&a?a((()=>v(n))):v(n)}),[v,d]);return r.useLayoutEffect((()=>s.listen(h)),[s,h]),r.createElement(u.Ix,{basename:t,children:e,location:f.location,navigationType:f.action,navigator:s,future:o})}var l,s;o.flushSync,r.useId,"undefined"!=typeof window&&void 0!==window.document&&window.document.createElement,function(n){n.UseScrollRestoration="useScrollRestoration",n.UseSubmit="useSubmit",n.UseSubmitFetcher="useSubmitFetcher",n.UseFetcher="useFetcher",n.useViewTransitionState="useViewTransitionState"}(l||(l={})),function(n){n.UseFetcher="useFetcher",n.UseFetchers="useFetchers",n.UseScrollRestoration="useScrollRestoration"}(s||(s={}))}}]);
package/dist/1146.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"1146.js","mappings":";2MAcA,QAJA,SAA4BA,GAC1B,OAAOA,GAAUA,KAAU,EAAAC,EAAA,GAASD,EACtC,iBCWA,MCJA,EAVA,SAAiCE,EAAKC,GACpC,OAAO,SAASC,GACd,OAAc,MAAVA,GAGGA,EAAOF,KAASC,SACPE,IAAbF,GAA2BD,KAAOI,OAAOF,GAC9C,CACF,ECIA,EAVA,SAAqBG,GACnB,IAAIC,EFFN,SAAsBJ,GAIpB,IAHA,IAAIK,GAAS,EAAAC,EAAA,GAAKN,GACdO,EAASF,EAAOE,OAEbA,KAAU,CACf,IAAIT,EAAMO,EAAOE,GACbX,EAAQI,EAAOF,GAEnBO,EAAOE,GAAU,CAACT,EAAKF,EAAO,EAAmBA,GACnD,CACA,OAAOS,CACT,CETkB,CAAaF,GAC7B,OAAwB,GAApBC,EAAUG,QAAeH,EAAU,GAAG,GACjC,EAAwBA,EAAU,GAAG,GAAIA,EAAU,GAAG,IAExD,SAASJ,GACd,OAAOA,IAAWG,GCAtB,SAAqBH,EAAQG,EAAQC,EAAWI,GAC9C,IAAIC,EAAQL,EAAUG,OAClBA,EAASE,EACTC,GAAgBF,EAEpB,GAAc,MAAVR,EACF,OAAQO,EAGV,IADAP,EAASE,OAAOF,GACTS,KAAS,CACd,IAAIE,EAAOP,EAAUK,GACrB,GAAKC,GAAgBC,EAAK,GAClBA,EAAK,KAAOX,EAAOW,EAAK,MACtBA,EAAK,KAAMX,GAEnB,OAAO,CAEX,CACA,OAASS,EAAQF,GAAQ,CAEvB,IAAIT,GADJa,EAAOP,EAAUK,IACF,GACXG,EAAWZ,EAAOF,GAClBC,EAAWY,EAAK,GAEpB,GAAID,GAAgBC,EAAK,IACvB,QAAiBV,IAAbW,KAA4Bd,KAAOE,GACrC,OAAO,MAEJ,CACL,IAAIa,EAAQ,IAAI,IAChB,GAAIL,EACF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UA,EACV4B,SAAUA,EACVrF,SAAUL,EAAMK,SAChBiN,eAAgBtN,EAAMJ,OACtBiL,UAAWlL,EACXiL,OAAQA,GAEZ,CAiTA,IAAIqG,EAQAvD,EAlmBkB,EAAmB,UAEvB,EAAY,MAmXM,oBAAXpO,aAAqD,IAApBA,OAAOC,UAAmCD,OAAOC,SAAS2R,cAsOpH,SAAWD,GACTA,EAAqC,qBAAI,uBACzCA,EAA0B,UAAI,YAC9BA,EAAiC,iBAAI,mBACrCA,EAA2B,WAAI,aAC/BA,EAAuC,uBAAI,wBAC5C,CAND,CAMGA,IAAmBA,EAAiB,CAAC,IAExC,SAAWvD,GACTA,EAAgC,WAAI,aACpCA,EAAiC,YAAI,cACrCA,EAA0C,qBAAI,sBAC/C,CAJD,CAIGA,IAAwBA,EAAsB,CAAC","sources":["webpack://@openmrs/esm-billing-app/./node_modules/lodash-es/_isStrictComparable.js","webpack://@openmrs/esm-billing-app/./node_modules/lodash-es/_getMatchData.js","webpack://@openmrs/esm-billing-app/./node_modules/lodash-es/_matchesStrictComparable.js","webpack://@openmrs/esm-billing-app/./node_modules/lodash-es/_baseMatches.js","webpack://@openmrs/esm-billing-app/./node_modules/lodash-es/_baseIsMatch.js","webpack://@openmrs/esm-billing-app/./node_modules/lodash-es/get.js","webpack://@openmrs/esm-billing-app/./node_modules/lodash-es/_baseHasIn.js","webpack://@openmrs/esm-billing-app/./node_modules/lodash-es/_hasPath.js","webpack://@openmrs/esm-billing-app/./node_modules/lodash-es/hasIn.js","webpack://@openmrs/esm-billing-app/./node_modules/lodash-es/_baseMatchesProperty.js","webpack://@openmrs/esm-billing-app/./node_modules/lodash-es/_baseProperty.js","webpack://@openmrs/esm-billing-app/./node_modules/lodash-es/property.js","webpack://@openmrs/esm-billing-app/./node_modules/lodash-es/_basePropertyDeep.js","webpack://@openmrs/esm-billing-app/./node_modules/lodash-es/_baseIteratee.js","webpack://@openmrs/esm-billing-app/./node_modules/@remix-run/router/dist/router.js","webpack://@openmrs/esm-billing-app/./node_modules/react-router/dist/index.js","webpack://@openmrs/esm-billing-app/./node_modules/react-router-dom/dist/index.js"],"names":["value","isObject","key","srcValue","object","undefined","Object","source","matchData","result","keys","length","customizer","index","noCustomizer","data","objValue","stack","COMPARE_PARTIAL_FLAG","path","hasFunc","isLength","isArray","isArguments","defaultValue","identity","_extends","assign","bind","target","i","arguments","prototype","hasOwnProperty","call","apply","this","Action","PopStateEventType","createBrowserHistory","options","getLocation","createHref","validateLocation","window","document","defaultView","v5Compat","globalHistory","history","action","Pop","listener","getIndex","state","idx","handlePop","nextIndex","delta","location","createURL","to","base","origin","href","createPath","invariant","URL","replaceState","listen","fn","Error","addEventListener","removeEventListener","encodeLocation","url","pathname","search","hash","push","Push","createLocation","historyState","getHistoryState","pushState","error","DOMException","name","replace","Replace","go","n","getUrlBasedHistory","usr","message","warning","cond","console","warn","e","current","parsePath","Math","random","toString","substr","_ref","charAt","parsedPath","hashIndex","indexOf","searchIndex","ResultType","matchRoutes","routes","locationArg","basename","stripBasename","branches","flattenRoutes","sort","a","b","score","slice","every","compareIndexes","routesMeta","map","meta","childrenIndex","rankRouteBranches","matches","matchRouteBranch","safelyDecodeURI","parentsMeta","parentPath","flattenRoute","route","relativePath","caseSensitive","startsWith","joinPaths","concat","children","computeScore","forEach","_route$path","includes","exploded","explodeOptionalSegments","segments","split","first","rest","isOptional","endsWith","required","restExploded","join","subpath","Set","paramRe","dynamicSegmentValue","indexRouteValue","emptySegmentValue","staticSegmentValue","splatPenalty","isSplat","s","initialScore","some","filter","reduce","segment","test","branch","matchedParams","matchedPathname","end","remainingPathname","match","matchPath","params","pathnameBase","normalizePathname","pattern","matcher","compiledParams","regexpSource","_","paramName","RegExp","compilePath","captureGroups","memo","splatValue","decodeURIComponent","safelyDecodeURIComponent","decodeURI","toLowerCase","startIndex","nextChar","paths","AbortedDeferredError","isRouteErrorResponse","status","statusText","internal","validMutationMethodsArr","validRequestMethodsArr","Symbol","DataRouterContext","DataRouterStateContext","NavigationContext","LocationContext","RouteContext","outlet","isDataRoute","RouteErrorContext","useInRouterContext","useLocation","useParams","routeMatch","useRoutesImpl","dataRouterState","future","navigator","parentMatches","parentParams","parentPathnameBase","locationFromContext","_parsedLocationArg$pa","parsedLocationArg","renderedMatches","_dataRouterState2","_dataRouterState","errors","errorIndex","findIndex","m","id","min","renderFallback","fallbackIndex","v7_partialHydration","HydrateFallback","hydrateFallbackElement","loaderData","needsToRunLoader","loader","lazy","reduceRight","shouldRenderHydrateFallback","errorElement","defaultErrorElement","alreadyWarned","getChildren","Component","element","RenderedRoute","routeContext","ErrorBoundary","RenderErrorBoundary","revalidation","component","_renderMatches","Provider","navigationType","DefaultErrorComponent","_state$errors","useDataRouterState","DataRouterStateHook","UseRouteError","routeId","useRouteContext","thisRoute","useCurrentRouteId","useRouteError","JSON","stringify","preStyles","padding","backgroundColor","style","fontStyle","constructor","props","super","getDerivedStateFromError","getDerivedStateFromProps","componentDidCatch","errorInfo","render","dataRouterContext","static","staticContext","_deepestRenderedBoundaryId","Route","_props","Router","_ref5","basenameProp","locationProp","staticProp","navigationContext","v7_relativeSplatPath","locationContext","trailingPathname","Routes","_ref6","createRoutesFromChildren","treePath","type","hasErrorBoundary","shouldRevalidate","handle","Promise","Map","startTransitionImpl","BrowserRouter","_ref4","historyRef","setStateImpl","v7_startTransition","setState","newState","DataRouterHook","createElement"],"sourceRoot":""}
1
+ {"version":3,"file":"1146.js","mappings":"2MAcA,QAJA,SAA4BA,GAC1B,OAAOA,GAAUA,KAAU,EAAAC,EAAA,GAASD,EACtC,E,eCWA,MCJA,EAVA,SAAiCE,EAAKC,GACpC,OAAO,SAASC,GACd,OAAc,MAAVA,GAGGA,EAAOF,KAASC,SACPE,IAAbF,GAA2BD,KAAOI,OAAOF,GAC9C,CACF,ECIA,EAVA,SAAqBG,GACnB,IAAIC,EFFN,SAAsBJ,GAIpB,IAHA,IAAIK,GAAS,EAAAC,EAAA,GAAKN,GACdO,EAASF,EAAOE,OAEbA,KAA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AsK1C,IAAIC,IA6B7D,MACMC,EAAsB,EAAsB,gBAyQlD,SAASC,EAAcC,GACrB,IAAI,SACFC,EAAQ,SACRC,EAAQ,OACRC,EAAM,OACNC,GACEJ,EACAK,EAAa,WACS,MAAtBA,EAAWC,UACbD,EAAWC,SAAU,QAAqB,CACxCF,SACAG,UAAU,KAGd,IAAIC,EAAUH,EAAWC,SACpBG,EAAOC,GAAgB,WAAe,CACzCC,OAAQH,EAAQG,OAChBC,SAAUJ,EAAQI,YAEhB,mBACFC,GACEV,GAAU,CAAC,EACXW,EAAW,eAAkBC,IAC/BF,GAAsBf,EAAsBA,GAAoB,IAAMY,EAAaK,KAAaL,EAAaK,KAC5G,CAACL,EAAcG,IAElB,OADA,mBAAsB,IAAML,EAAQQ,OAAOF,IAAW,CAACN,EAASM,IAC5C,gBAAoB,KAAQ,CAC9Cb,SAAUA,EACVC,SAAUA,EACVU,SAAUH,EAAMG,SAChBK,eAAgBR,EAAME,OACtBO,UAAWV,EACXL,OAAQA,GAEZ,CAiTA,IAAIgB,EAQAC,EAlmBkB,EAAmB,UAEvB,EAAY,MAmXM,oBAAXhB,aAAqD,IAApBA,OAAOiB,UAAmCjB,OAAOiB,SAASC,cAsOpH,SAAWH,GACTA,EAAqC,qBAAI,uBACzCA,EAA0B,UAAI,YAC9BA,EAAiC,iBAAI,mBACrCA,EAA2B,WAAI,aAC/BA,EAAuC,uBAAI,wBAC5C,CAND,CAMGA,IAAmBA,EAAiB,CAAC,IAExC,SAAWC,GACTA,EAAgC,WAAI,aACpCA,EAAiC,YAAI,cACrCA,EAA0C,qBAAI,sBAC/C,CAJD,CAIGA,IAAwBA,EAAsB,CAAC,G","sources":["webpack://@openmrs/esm-billing-app/./node_modules/lodash-es/_isStrictComparable.js","webpack://@openmrs/esm-billing-app/./node_modules/lodash-es/_getMatchData.js","webpack://@openmrs/esm-billing-app/./node_modules/lodash-es/_matchesStrictComparable.js","webpack://@openmrs/esm-billing-app/./node_modules/lodash-es/_baseMatches.js","webpack://@openmrs/esm-billing-app/./node_modules/lodash-es/_baseIsMatch.js","webpack://@openmrs/esm-billing-app/./node_modules/lodash-es/get.js","webpack://@openmrs/esm-billing-app/./node_modules/lodash-es/_baseHasIn.js","webpack://@openmrs/esm-billing-app/./node_modules/lodash-es/_hasPath.js","webpack://@openmrs/esm-billing-app/./node_modules/lodash-es/hasIn.js","webpack://@openmrs/esm-billing-app/./node_modules/lodash-es/_baseMatchesProperty.js","webpack://@openmrs/esm-billing-app/./node_modules/lodash-es/_baseProperty.js","webpack://@openmrs/esm-billing-app/./node_modules/lodash-es/property.js","webpack://@openmrs/esm-billing-app/./node_modules/lodash-es/_basePropertyDeep.js","webpack://@openmrs/esm-billing-app/./node_modules/lodash-es/_baseIteratee.js","webpack://@openmrs/esm-billing-app/./node_modules/react-router-dom/dist/index.js"],"names":["value","isObject","key","srcValue","object","undefined","Object","source","matchData","result","keys","length","customizer","index","noCustomizer","data","objValue","stack","COMPARE_PARTIAL_FLAG","path","hasFunc","isLength","isArray","isArguments","defaultValue","identity","Set","Map","startTransitionImpl","BrowserRouter","_ref4","basename","children","future","window","historyRef","current","v5Compat","history","state","setStateImpl","action","location","v7_startTransition","setState","newState","listen","navigationType","navigator","DataRouterHook","DataRouterStateHook","document","createElement"],"sourceRoot":""}
package/dist/1197.js CHANGED
@@ -1 +1 @@
1
- "use strict";(globalThis.webpackChunk_openmrs_esm_billing_app=globalThis.webpackChunk_openmrs_esm_billing_app||[]).push([[1197],{81197:e=>{e.exports=JSON.parse('{"actions":"Actions","addBill":"Add bill item(s)","addBillableServices":"Add Billable Services","addCashPoint":"Add Cash Point","addNewBillableService":"Add new billable service","addNewService":"Add new service","addPaymentMode":"Add Payment Mode","addPaymentOptions":"Add payment option","amount":"Amount","amountDue":"Amount Due","amountToWaiveAriaLabel":"Enter amount to waive","amountToWaiveHelper":"Specify the amount to be deducted from the bill","amountToWaiveLabel":"Amount to Waive","billableService":"Billable service","billableServices":"Billable Services","billedItems":"Billed Items","billedTo":"Billed to","billErrorService":"Bill service error","billing":"Billing","billingForm":"Billing form","billingHistory":"Billing History","billingSettings":"Billing Settings","billItem":"Bill item","billItems":"Bill Items","billLineItemEmpty":"This bill has no line items","billList":"Bill list","billMetrics":"Bill metrics","billName":" {{billName}} ","billPayment":"Bill payment","billPaymentError":"Bill payment error","billPaymentRequiredMessage":"The current patient has pending bill. Advice patient to settle bill before receiving services","billServicesManagement":"Bill services management","billsList":"Bill list","billTotal":"Bill total","billWaiver":"Bill waiver","billWaiverError":"Bill waiver failed {{error}}","billWaiverSuccess":"Bill waiver successful","cancel":"Cancel","cashPointConfig":"Cash Point Config","cashPointHistory":"Cash Point History","cashPointLocation":"Cash Point Location","cashPointName":"Cash Point Name","cashPointNamePlaceholder":"e.g., Pharmacy Cash Point","cashPointSaved":"Cash point was successfully saved.","cashPointUuid":"Cash Point UUID","cashPointUuidPlaceholder":"Enter UUID","checkFilters":"Check the filters above","clearSearchInput":"Clear search input","clientBalance":"Client Balance","confirmDeleteMessage":"Are you sure you want to delete this payment mode? Proceed cautiously.","createdSuccessfully":"Billable service created successfully","currentPrice":"Current price","delete":"Delete","deletePaymentMode":"Delete Payment Mode","description":"Description","descriptionPlaceholder":"e.g., Used for all cash transactions","discard":"Discard","discount":"Discount","duplicateCashPointError":"A cash point with the same name or UUID already exists. Please use a unique name and UUID.","duplicatePaymentModeError":"A payment mode with the same name already exists. Please create another payment mode","editBillableService":"Edit billable service","editBillableServices":"Edit Billable Services","editBillLineItem":"Edit bill line item?","editThisBillItem":"Edit this bill item","enterAmount":"Enter amount","enterConcept":"Associated concept","enterReferenceNumber":"Enter ref. number","error":"Error","errorDeletingPaymentMode":"An error occurred while deleting the payment mode.","errorFetchingCashPoints":"An error occurred while fetching cash points.","errorFetchingLocations":"An error occurred while fetching locations.","errorFetchingPaymentModes":"An error occurred while fetching payment modes.","errorLoadingBillServices":"Error loading bill services","errorLoadingPaymentModes":"Payment modes error","errorSavingCashPoint":"An error occurred while saving the cash point.","errorSavingPaymentMode":"An error occurred while saving the payment mode.","filterBy":"Filter by","filterTable":"Filter table","grandTotal":"Grand total","home":"Home","identifier":"Identifier","inlineLoading":"Loading bill items...","insuranceScheme":"Insurance scheme","invalidWaiverAmount":"Invalid waiver amount","invoice":"Invoice","invoiceError":"Invoice error","item":"Item","itemsToBeBilled":"Items to be billed","launchBillForm":"Launch bill form","lineItems":"Line items","loading":"Loading data...","loadingBillingServices":"Loading billing services...","loadingDescription":"Loading","location":"Select Location","manageBillableServices":"Manage billable services","name":"Name","nextPage":"Next page","noBilltoDisplay":"There are no bills to display for this patient","noMatchingBillsToDisplay":"No matching bills to display","noMatchingItemsToDisplay":"No matching items to display","noMatchingServicesToDisplay":"No matching services to display","noResultsFor":"No results for","noResultsFound":"No results found","noServicesToDisplay":"There are no services to display","ok":"OK","patientBillingAlert":"Patient Billing Alert","patientBills":"Patient bill","patientBillsDescription":"List of patient bills","patientCategory":"Patient category","paymentDetails":"Payment Details","paymentMethod":"Payment method","paymentMethods":"Payment methods","paymentMode":"Payment Mode","paymentModeDeleted":"Payment mode was successfully deleted.","paymentModeHistory":"Payment Mode History","paymentModeName":"Payment Mode Name","paymentModeNamePlaceholder":"e.g., Cash, Credit Card","paymentModeSaved":"Payment mode was successfully saved.","paymentModesConfig":"Payment Modes Config","payments":"Payments","pleaseRequiredFields":"Please fill all required fields","policyNumber":"Policy number","postWaiver":"Post waiver","previousPage":"Previous page","price":"Price","priceIsRequired":"Price is required","prices":"Prices","printBill":"Print bill","printReceipt":"Print receipt","processPayment":"Process Payment","quantity":"Quantity","quantityGreaterThanZero":"Quantity must be greater than zero","quantityRequired":"Quantity is required","referenceNumber":"Reference number","save":"Save","saveAndClose":"Save and close","saving":"Saving","searchConcepts":"Search associated concept","searching":"Searching","searchItems":"Search items and services","searchThisTable":"Search this table","selectBillableService":"Select a billable service...","selectCategory":"Select category","selectPatientCategory":"Select patient category","selectPaymentMethod":"Select payment method","sellingAmount":"Enter selling price","sellingPrice":"Selling Price","service":"Service","serviceMetrics":"Service Metrics","serviceName":"Service Name","serviceNameExceedsLimit":"Service Name exceeds the character limit of {{MAX_NAME_LENGTH}}.","serviceShortName":"Short Name","servicesList":"Services list","serviceType":"Service Type","shortName":"Short Name","shortNameExceedsLimit":"Short Name exceeds the character limit of {{MAX_NAME_LENGTH}}.","status":"Service Status","stockItem":"Stock Item","submitting":"Submitting...","success":"Success","total":"Total","totalAmount":"Total Amount","totalTendered":"Total Tendered","unitPrice":"Unit price","updatedSuccessfully":"Billable service updated successfully","uuid":"UUID","visitTime":"Visit time","waiverForm":"Waiver form"}')}}]);
1
+ "use strict";(globalThis.webpackChunk_openmrs_esm_billing_app=globalThis.webpackChunk_openmrs_esm_billing_app||[]).push([[1197],{81197:e=>{e.exports=JSON.parse('{"add":"Add","addBill":"Add bill items","addBillableService":"Add billable service","addCashPoint":"Add cash point","addNewBillableService":"Add new billable service","addNewCashPoint":"Add new cash point","addNewPaymentMode":"Add new payment mode","addNewService":"Add new service","addPaymentMethod":"Add payment method","addPaymentMode":"Add payment mode","addPaymentOption":"Add payment option","amount":"Amount","amountDue":"Amount due","amountMustBePositive":"Amount must be greater than 0","amountRequired":"Amount is required","amountTendered":"Amount tendered","amountToWaiveAriaLabel":"Enter amount to waive","amountToWaiveHelper":"Specify the amount to be deducted from the bill","amountToWaiveLabel":"Amount to waive","associatedConcept":"Associated concept","billableService":"Billable service","billableServiceCreated":"Billable service created","billableServiceCreatedSuccessfully":"Billable service created successfully","billableServiceForm":"Billable service form","billableServices":"Billable services","billableServices__lower":"billable services","billableServicesManagement":"Billable services management","billableServiceUpdated":"Billable service updated","billableServiceUpdatedSuccessfully":"Billable service updated successfully","billAmount":"Bill amount","billCode":"Bill code","billCreatedSuccessfully":"Bill created successfully","billCreationError":"Bill creation error","billedItems":"Billed items","billedTo":"Billed to","billErrorService":"Billing service error","billing":"Billing","billingForm":"Billing form","billingHistory":"Billing history","billingSettings":"Billing settings","billItem":"Bill item","billItems":"Bill items","billLineItemEmpty":"This bill has no line items","billList":"Bill list","billMetrics":"Bill metrics","billName":"{{billName}}","billPayment":"Bill payment","billPaymentError":"Bill payment error","billPaymentRequiredMessage":"The current patient has a pending bill. Advise the patient to settle the bill before receiving services","billProcessedSuccessfully":"Bill processed successfully","billProcessingError":"Bill processing error","billsTable":"Bills table","billTotal":"Bill total","billWaiver":"Bill waiver","billWaiverError":"Bill waiver failed {{error}}","billWaiverSuccess":"Bill waiver successful","birthDate":"Date of birth","cashPointConfig":"Cash point configuration","cashPointHistory":"Cash point history","cashPointLocation":"Cash point location","cashPointName":"Cash point name","cashPointNamePlaceholder":"For example, Pharmacy Cash Point","cashPointNameRequired":"Cash point name is required","cashPointSaved":"Cash point was successfully saved.","cashPointUuid":"Cash point UUID","cashPointUuidPlaceholder":"Enter UUID","checkFilters":"Check the filters above","confirmDeleteMessage":"Are you sure you want to delete this payment mode? Proceed cautiously.","cumulativeBills":"Cumulative bills","currentPrice":"Current price","date":"Date","dateAndTime":"Date and time","dateOfPayment":"Date of payment","deletePaymentMode":"Delete payment mode","deleting":"Deleting","description":"Description","descriptionPlaceholder":"For example, Used for all cash transactions","discard":"Discard","discount":"Discount","discountAmount":"Discount amount","editBillableService":"Edit billable service","editBillLineItem":"Edit bill line item","editPaymentMode":"Edit payment mode","editThisBillItem":"Edit this bill item","enterAmount":"Enter amount","enterReferenceNumber":"Enter reference number","enterSellingPrice":"Enter selling price","enterServiceName":"Enter service name","enterServiceShortName":"Enter service short name","errorCreatingBill":"An error occurred while creating the bill","errorDeletingPaymentMode":"An error occurred while deleting the payment mode.","errorFetchingCashPoints":"An error occurred while fetching cash points.","errorFetchingLocations":"An error occurred while fetching locations.","errorLoadingBillableServices":"Error loading billable services","errorLoadingBillServices":"Error loading bill services","errorLoadingPaymentModes":"Payment modes error","errorPrintingInvoice":"Error printing invoice","errorProcessingPayment":"Error processing payment","errorSavingCashPoint":"An error occurred while saving the cash point.","errorSavingPaymentMode":"An error occurred while saving the payment mode.","filterBy":"Filter by:","filterTable":"Filter table","gender":"Gender","grandTotal":"Grand total","home":"Home","identifier":"Identifier","insuranceScheme":"Insurance scheme","invalidUuidFormat":"Invalid UUID format","invalidWaiverAmount":"Invalid waiver amount","inventoryItem":"Inventory item","invoice":"Invoice","invoiceDate":"Invoice date","invoiceError":"Invoice error","invoiceLineItems":"Invoice line items","invoiceNumber":"Invoice #","invoiceStatus":"Invoice status","item":"Item","itemsToBeBilled":"Items to be billed","launchBillForm":"Launch bill form","lineItems":"Line items","lineItemUpdated":"Line item updated","lineItemUpdateErrorDefault":"Unable to update the bill line item. Please try again.","lineItemUpdateFailed":"Failed to update line item","lineItemUpdateSuccess":"The bill line item has been updated successfully","loading":"Loading data","loadingBillInfo":"Loading bill information","loadingBillingServices":"Loading billing services","loadingBillItems":"Loading bill items","loadingBillMetrics":"Loading bill metrics","loadingDescription":"Loading","location":"Location","locationRequired":"Location is required","manageBillableServices":"Manage billable services","name":"Name","nextPage":"Next page","noBillToDisplay":"There are no bills to display for this patient","noMatchingBillsToDisplay":"No matching bills to display","noMatchingItemsToDisplay":"No matching items to display","noMatchingServicesToDisplay":"No matching services to display","noResultsFor":"No results for {{searchTerm}}","number":"Number","ok":"OK","paidBills":"Paid bills","patientBill":"Patient bill","patientBillingAlert":"Patient billing alert","patientBills":"Patient bills","patientBillsDescription":"List of patient bills","patientCategory":"Patient category","paymentAmountCannotExceedAmountDue":"Payment amount cannot exceed amount due","paymentDetails":"Payment details","paymentMethod":"Payment method","paymentMethodRequired":"Payment method is required for all items","paymentMethods":"Payment methods","paymentMode":"Payment mode","paymentModeDeleted":"Payment mode was successfully deleted.","paymentModeHistory":"Payment mode history","paymentModeNameLabel":"Payment mode name","paymentModeNamePlaceholder":"For example, Cash, Credit Card","paymentModeNameRequired":"Payment mode name is required","paymentModeNameToDelete":"Payment mode name: {{paymentModeName}}","paymentModeRequired":"Payment mode is required","paymentModeSaved":"Payment mode was successfully saved.","paymentModesConfig":"Payment modes configuration","paymentOptionRequired":"At least one payment option is required","paymentProcessedSuccessfully":"Payment processed successfully","payments":"Payments","pendingBills":"Pending bills","policyNumber":"Policy number","postWaiver":"Post waiver","previousPage":"Previous page","price":"Price","priceIsRequired":"Price is required","priceMustBeNumber":"Price must be a valid number","priceMustBePositive":"Price must be greater than 0","prices":"Prices","printBill":"Print bill","printReceipt":"Print receipt","processPayment":"Process payment","quantity":"Quantity","quantityCannotExceed100":"Quantity cannot exceed 100","quantityMustBeAtLeastOne":"Quantity must be at least 1","quantityMustBeInteger":"Quantity must be a whole number","quantityMustBeNumber":"Quantity must be a valid number","quantityRequired":"Quantity is required","referenceNumber":"Reference number","remove":"Remove","removePaymentMethod":"Remove payment method","saveAndClose":"Save and close","saveBill":"Save bill","saving":"Saving","searchConcepts":"Search associated concept","searching":"Searching","searchItems":"Search items and services","searchThisTable":"Search this table","selectBillableService":"Select a billable service","selectedItems":"Selected items","selectLocation":"Select location","selectPatientCategory":"Select patient category","selectPaymentMethod":"Select payment method","selectPaymentMode":"Select payment mode","selectServiceType":"Select service type","sellingPrice":"Selling price","serviceList":"Service list","serviceName":"Service name","serviceNameExceedsLimit":"Service name cannot exceed {{MAX_NAME_LENGTH}} characters","serviceNameRequired":"Service name is required","servicesList":"Services list","serviceStatus":"Service status","serviceType":"Service type","serviceTypeRequired":"Service type is required","shortName":"Short name","shortNameExceedsLimit":"Short name cannot exceed {{MAX_NAME_LENGTH}} characters","status":"Service status","submitting":"Submitting","success":"Success","total":"Total","totalAmount":"Total amount","totalTendered":"Total tendered","unitPrice":"Unit price","unitPriceHelperText":"This is the unit price for this item","uuid":"UUID","uuidRequired":"UUID is required","validationError":"Validation error","visitTime":"Visit time","waiverForm":"Waiver form"}')}}]);