@openmrs/esm-billing-app 1.0.2-pre.80 → 1.0.2-pre.802

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 (205) 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/1856.js +1 -0
  10. package/dist/1856.js.map +1 -0
  11. package/dist/2146.js +1 -1
  12. package/dist/2177.js +2 -0
  13. package/dist/2177.js.LICENSE.txt +9 -0
  14. package/dist/2177.js.map +1 -0
  15. package/dist/2524.js +1 -0
  16. package/dist/2524.js.map +1 -0
  17. package/dist/2690.js +1 -1
  18. package/dist/3041.js +1 -0
  19. package/dist/3041.js.map +1 -0
  20. package/dist/3099.js +1 -1
  21. package/dist/3584.js +1 -1
  22. package/dist/4055.js +1 -1
  23. package/dist/4132.js +1 -1
  24. package/dist/4225.js +1 -0
  25. package/dist/4225.js.map +1 -0
  26. package/dist/4300.js +1 -1
  27. package/dist/4335.js +1 -1
  28. package/dist/4618.js +1 -1
  29. package/dist/4652.js +1 -1
  30. package/dist/4724.js +1 -0
  31. package/dist/4724.js.map +1 -0
  32. package/dist/4739.js +1 -1
  33. package/dist/4739.js.map +1 -1
  34. package/dist/4944.js +1 -1
  35. package/dist/5173.js +1 -1
  36. package/dist/5241.js +1 -1
  37. package/dist/5422.js +1 -0
  38. package/dist/5422.js.map +1 -0
  39. package/dist/5442.js +1 -1
  40. package/dist/5661.js +1 -1
  41. package/dist/6022.js +1 -1
  42. package/dist/6468.js +1 -1
  43. package/dist/6540.js +1 -1
  44. package/dist/6540.js.map +1 -1
  45. package/dist/6606.js +1 -0
  46. package/dist/6606.js.map +1 -0
  47. package/dist/6679.js +1 -1
  48. package/dist/6840.js +1 -1
  49. package/dist/6859.js +1 -1
  50. package/dist/7097.js +1 -1
  51. package/dist/7159.js +1 -1
  52. package/dist/723.js +1 -1
  53. package/dist/7452.js +2 -0
  54. package/dist/7452.js.map +1 -0
  55. package/dist/7617.js +1 -1
  56. package/dist/795.js +1 -1
  57. package/dist/8163.js +1 -1
  58. package/dist/8349.js +1 -1
  59. package/dist/8618.js +1 -1
  60. package/dist/890.js +1 -1
  61. package/dist/8930.js +2 -0
  62. package/dist/{6525.js.LICENSE.txt → 8930.js.LICENSE.txt} +16 -4
  63. package/dist/8930.js.map +1 -0
  64. package/dist/9214.js +1 -1
  65. package/dist/942.js +1 -0
  66. package/dist/942.js.map +1 -0
  67. package/dist/9538.js +1 -1
  68. package/dist/9569.js +1 -1
  69. package/dist/961.js +1 -1
  70. package/dist/961.js.map +1 -1
  71. package/dist/986.js +1 -1
  72. package/dist/9879.js +1 -1
  73. package/dist/9895.js +1 -1
  74. package/dist/9900.js +1 -1
  75. package/dist/9913.js +1 -1
  76. package/dist/main.js +1 -1
  77. package/dist/main.js.map +1 -1
  78. package/dist/openmrs-esm-billing-app.js +1 -1
  79. package/dist/openmrs-esm-billing-app.js.buildmanifest.json +368 -262
  80. package/dist/openmrs-esm-billing-app.js.map +1 -1
  81. package/dist/routes.json +1 -1
  82. package/e2e/README.md +19 -18
  83. package/e2e/core/test.ts +1 -1
  84. package/e2e/fixtures/api.ts +1 -1
  85. package/e2e/specs/sample-test.spec.ts +0 -1
  86. package/e2e/support/github/Dockerfile +1 -1
  87. package/package.json +13 -10
  88. package/src/bill-history/bill-history.component.tsx +17 -25
  89. package/src/bill-history/bill-history.scss +4 -94
  90. package/src/bill-history/bill-history.test.tsx +37 -78
  91. package/src/bill-item-actions/bill-item-actions.scss +0 -4
  92. package/src/bill-item-actions/{edit-bill-item.component.tsx → edit-bill-item.modal.tsx} +100 -78
  93. package/src/bill-item-actions/edit-bill-item.test.tsx +116 -31
  94. package/src/billable-services/bill-waiver/bill-selection.component.tsx +2 -2
  95. package/src/billable-services/bill-waiver/patient-bills.component.tsx +3 -3
  96. package/src/billable-services/billable-service.resource.ts +17 -9
  97. package/src/billable-services/billable-services-home.component.tsx +1 -1
  98. package/src/billable-services/billable-services.component.tsx +142 -145
  99. package/src/billable-services/billable-services.scss +3 -0
  100. package/src/billable-services/billable-services.test.tsx +2 -45
  101. package/src/billable-services/cash-point/add-cash-point.modal.tsx +168 -0
  102. package/src/billable-services/cash-point/cash-point-configuration.component.tsx +18 -192
  103. package/src/billable-services/cash-point/cash-point-configuration.scss +1 -5
  104. package/src/billable-services/create-edit/add-billable-service.component.tsx +349 -298
  105. package/src/billable-services/create-edit/add-billable-service.scss +5 -6
  106. package/src/billable-services/create-edit/add-billable-service.test.tsx +166 -80
  107. package/src/billable-services/create-edit/edit-billable-service.modal.tsx +51 -0
  108. package/src/billable-services/payment-modes/add-payment-mode.modal.tsx +121 -0
  109. package/src/billable-services/payment-modes/delete-payment-mode.modal.tsx +72 -0
  110. package/src/billable-services/payment-modes/payment-modes-config.component.tsx +125 -0
  111. package/src/billable-services/{payyment-modes → payment-modes}/payment-modes-config.scss +5 -4
  112. package/src/billing-form/billing-checkin-form.component.tsx +2 -3
  113. package/src/billing-form/billing-checkin-form.test.tsx +97 -24
  114. package/src/billing-form/billing-form.component.tsx +216 -269
  115. package/src/billing-form/billing-form.scss +143 -0
  116. package/src/billing.resource.ts +16 -19
  117. package/src/bills-table/bills-table.test.tsx +98 -54
  118. package/src/config-schema.ts +52 -24
  119. package/src/dashboard.meta.ts +4 -2
  120. package/src/helpers/functions.ts +5 -4
  121. package/src/index.ts +17 -6
  122. package/src/invoice/invoice-table.component.tsx +34 -68
  123. package/src/invoice/invoice-table.scss +8 -5
  124. package/src/invoice/invoice-table.test.tsx +273 -62
  125. package/src/invoice/invoice.component.tsx +38 -29
  126. package/src/invoice/invoice.scss +11 -4
  127. package/src/invoice/invoice.test.tsx +324 -120
  128. package/src/invoice/payments/invoice-breakdown/invoice-breakdown.scss +9 -9
  129. package/src/invoice/payments/payment-form/payment-form.component.tsx +43 -34
  130. package/src/invoice/payments/payment-form/payment-form.scss +5 -6
  131. package/src/invoice/payments/payment-form/payment-form.test.tsx +216 -66
  132. package/src/invoice/payments/payment-history/payment-history.component.tsx +6 -4
  133. package/src/invoice/payments/payment-history/payment-history.test.tsx +9 -14
  134. package/src/invoice/payments/payments.component.tsx +53 -65
  135. package/src/invoice/payments/payments.scss +4 -3
  136. package/src/invoice/payments/payments.test.tsx +282 -0
  137. package/src/invoice/payments/utils.ts +5 -23
  138. package/src/invoice/printable-invoice/print-receipt.component.tsx +3 -2
  139. package/src/invoice/printable-invoice/print-receipt.test.tsx +14 -25
  140. package/src/invoice/printable-invoice/printable-footer.component.tsx +2 -2
  141. package/src/invoice/printable-invoice/printable-footer.test.tsx +4 -13
  142. package/src/invoice/printable-invoice/printable-invoice-header.component.tsx +12 -11
  143. package/src/invoice/printable-invoice/printable-invoice-header.test.tsx +16 -14
  144. package/src/invoice/printable-invoice/printable-invoice.component.tsx +19 -33
  145. package/src/left-panel-link.test.tsx +1 -4
  146. package/src/metrics-cards/metrics-cards.test.tsx +18 -5
  147. package/src/modal/require-payment-modal.test.tsx +27 -22
  148. package/src/modal/{require-payment-modal.component.tsx → require-payment.modal.tsx} +17 -18
  149. package/src/routes.json +22 -2
  150. package/src/types/index.ts +26 -17
  151. package/translations/am.json +70 -21
  152. package/translations/ar.json +70 -21
  153. package/translations/ar_SY.json +70 -21
  154. package/translations/bn.json +75 -26
  155. package/translations/de.json +70 -21
  156. package/translations/en.json +69 -21
  157. package/translations/en_US.json +70 -21
  158. package/translations/es.json +70 -21
  159. package/translations/es_MX.json +70 -21
  160. package/translations/fr.json +83 -34
  161. package/translations/he.json +70 -21
  162. package/translations/hi.json +70 -21
  163. package/translations/hi_IN.json +70 -21
  164. package/translations/id.json +70 -21
  165. package/translations/it.json +105 -56
  166. package/translations/ka.json +70 -21
  167. package/translations/km.json +70 -21
  168. package/translations/ku.json +70 -21
  169. package/translations/ky.json +70 -21
  170. package/translations/lg.json +70 -21
  171. package/translations/ne.json +70 -21
  172. package/translations/pl.json +70 -21
  173. package/translations/pt.json +70 -21
  174. package/translations/pt_BR.json +70 -21
  175. package/translations/qu.json +70 -21
  176. package/translations/ro_RO.json +214 -165
  177. package/translations/ru_RU.json +70 -21
  178. package/translations/si.json +70 -21
  179. package/translations/sw.json +70 -21
  180. package/translations/sw_KE.json +70 -21
  181. package/translations/tr.json +70 -21
  182. package/translations/tr_TR.json +70 -21
  183. package/translations/uk.json +70 -21
  184. package/translations/uz.json +70 -21
  185. package/translations/uz@Latn.json +70 -21
  186. package/translations/uz_UZ.json +70 -21
  187. package/translations/vi.json +70 -21
  188. package/translations/zh.json +70 -21
  189. package/translations/zh_CN.json +125 -76
  190. package/dist/1146.js.LICENSE.txt +0 -21
  191. package/dist/2352.js +0 -1
  192. package/dist/2352.js.map +0 -1
  193. package/dist/246.js +0 -1
  194. package/dist/246.js.map +0 -1
  195. package/dist/6525.js +0 -2
  196. package/dist/6525.js.map +0 -1
  197. package/dist/8556.js +0 -2
  198. package/dist/8556.js.map +0 -1
  199. package/dist/8638.js +0 -1
  200. package/dist/8638.js.map +0 -1
  201. package/dist/9968.js +0 -1
  202. package/dist/9968.js.map +0 -1
  203. package/src/billable-services/payyment-modes/payment-modes-config.component.tsx +0 -280
  204. package/src/invoice/payments/payments.component.test.tsx +0 -121
  205. /package/dist/{8556.js.LICENSE.txt → 7452.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
+ - Go to the Implementers tools, under the feature flags, toggle on the Billing Module feature flag to access billing functionalities.
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 item(s)","addBillableServices":"Add Billable Services","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","billableServices":"Billable Services","billableServices__lower":"billable services","billAmount":"Bill amount","billCode":"Bill code","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 a pending bill. Advise the patient to settle the bill before receiving services","billProcessingError":"Bill processing error","billProcessingSuccess":"Bill processing has been successful","billServicesManagement":"Bill services management","billsList":"Bill list","billTotal":"Bill total","billWaiver":"Bill waiver","billWaiverError":"Bill waiver failed {{error}}","billWaiverSuccess":"Bill waiver successful","cashPointConfig":"Cash Point Config","cashPointHistory":"Cash Point History","cashPointLocation":"Cash Point Location","cashPointName":"Cash Point Name","cashPointNamePlaceholder":"e.g., 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.","createdSuccessfully":"Billable service created successfully","currentPrice":"Current price","date":"Date","dateAndTime":"Date And Time","dateOfPayment":"Date of payment","deletePaymentMode":"Delete Payment Mode","deleting":"Deleting","description":"Description","descriptionPlaceholder":"e.g., Used for all cash transactions","discard":"Discard","discount":"Discount","discountAmount":"Discount Amount","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 reference number","enterSellingPrice":"Enter selling price","enterServiceName":"Enter service name","enterServiceShortName":"Enter service short name","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","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","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","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","loadingData":"Loading data","loadingDescription":"Loading","location":"Select 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","number":"No","ok":"OK","patientBillingAlert":"Patient Billing Alert","patientBills":"Patient bill","patientBillsDescription":"List of patient bills","patientCategory":"Patient category","paymentAmountCannotExceedAmountDue":"Payment amount cannot exceed amount due","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: {{paymentModeName}}","paymentModeNamePlaceholder":"e.g., Cash, Credit Card","paymentModeNameRequired":"Payment Mode Name is required","paymentModeRequired":"Payment mode is required","paymentModeSaved":"Payment mode was successfully saved.","paymentModesConfig":"Payment Modes Config","paymentOptionRequired":"At least one payment option is required","paymentProcessedSuccessfully":"Payment processed successfully","payments":"Payments","pleaseRequiredFields":"Please fill all required fields","policyNumber":"Policy number","postWaiver":"Post waiver","previousPage":"Previous page","price":"Unit Price","priceIsRequired":"Price is required","priceMustBeGreaterThanZero":"Price must be greater than 0","priceMustBeNumber":"Price must be a valid number","priceMustBePositive":"Price must be greater than 0","priceMustBeValidPositiveNumber":"Price must be a valid positive number","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","selectPaymentMethodRequired":"Please select a payment method for all items","selectPaymentMode":"Select payment mode","selectServiceType":"Select service type","sellingPrice":"Selling Price","serviceMetrics":"Service Metrics","serviceName":"Service Name","serviceNameExceedsLimit":"Service Name exceeds the character limit of {{MAX_NAME_LENGTH}}.","serviceNameRequired":"Service name is required","serviceShortName":"Short Name","servicesList":"Services list","serviceStatus":"Service Status","serviceType":"Service Type","serviceTypeRequired":"Service type is required","shortName":"Short Name","shortNameExceedsLimit":"Short Name exceeds the character limit of {{MAX_NAME_LENGTH}}.","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.","updatedSuccessfully":"Billable service updated successfully","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,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-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,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,CA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K,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 item(s)","addBillableServices":"Add Billable Services","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","billableServices":"Billable Services","billableServices__lower":"billable services","billAmount":"Bill amount","billCode":"Bill code","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 a pending bill. Advise the patient to settle the bill before receiving services","billProcessingError":"Bill processing error","billProcessingSuccess":"Bill processing has been successful","billServicesManagement":"Bill services management","billsList":"Bill list","billTotal":"Bill total","billWaiver":"Bill waiver","billWaiverError":"Bill waiver failed {{error}}","billWaiverSuccess":"Bill waiver successful","cashPointConfig":"Cash Point Config","cashPointHistory":"Cash Point History","cashPointLocation":"Cash Point Location","cashPointName":"Cash Point Name","cashPointNamePlaceholder":"e.g., 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.","createdSuccessfully":"Billable service created successfully","currentPrice":"Current price","date":"Date","dateAndTime":"Date And Time","dateOfPayment":"Date of payment","deletePaymentMode":"Delete Payment Mode","deleting":"Deleting","description":"Description","descriptionPlaceholder":"e.g., Used for all cash transactions","discard":"Discard","discount":"Discount","discountAmount":"Discount Amount","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 reference number","enterSellingPrice":"Enter selling price","enterServiceName":"Enter service name","enterServiceShortName":"Enter service short name","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","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","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","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","loadingData":"Loading data","loadingDescription":"Loading","location":"Select 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","number":"No","ok":"OK","patientBillingAlert":"Patient Billing Alert","patientBills":"Patient bill","patientBillsDescription":"List of patient bills","patientCategory":"Patient category","paymentAmountCannotExceedAmountDue":"Payment amount cannot exceed amount due","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: {{paymentModeName}}","paymentModeNamePlaceholder":"e.g., Cash, Credit Card","paymentModeNameRequired":"Payment Mode Name is required","paymentModeRequired":"Payment mode is required","paymentModeSaved":"Payment mode was successfully saved.","paymentModesConfig":"Payment Modes Config","paymentOptionRequired":"At least one payment option is required","paymentProcessedSuccessfully":"Payment processed successfully","payments":"Payments","pleaseRequiredFields":"Please fill all required fields","policyNumber":"Policy number","postWaiver":"Post waiver","previousPage":"Previous page","price":"Price","priceIsRequired":"Price is required","priceMustBeGreaterThanZero":"Price must be greater than 0","priceMustBeNumber":"Price must be a valid number","priceMustBePositive":"Price must be greater than 0","priceMustBeValidPositiveNumber":"Price must be a valid positive number","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","selectPaymentMethodRequired":"Please select a payment method for all items","selectPaymentMode":"Select payment mode","selectServiceType":"Select service type","sellingPrice":"Selling Price","serviceMetrics":"Service Metrics","serviceName":"Service Name","serviceNameExceedsLimit":"Service Name exceeds the character limit of {{MAX_NAME_LENGTH}}.","serviceNameRequired":"Service name is required","serviceShortName":"Short Name","servicesList":"Services list","serviceStatus":"Service Status","serviceType":"Service Type","serviceTypeRequired":"Service type is required","shortName":"Short Name","shortNameExceedsLimit":"Short Name exceeds the character limit of {{MAX_NAME_LENGTH}}.","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.","updatedSuccessfully":"Billable service updated successfully","uuid":"UUID","uuidRequired":"UUID is required","validationError":"Validation Error","visitTime":"Visit time","waiverForm":"Waiver form"}')}}]);
package/dist/1856.js ADDED
@@ -0,0 +1 @@
1
+ (globalThis.webpackChunk_openmrs_esm_billing_app=globalThis.webpackChunk_openmrs_esm_billing_app||[]).push([[1856],{848:(e,t,r)=>{const{MAX_LENGTH:n}=r(1754),{re:o,t:s}=r(53238),i=r(65476);e.exports=(e,t)=>{if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof i)return e;if("string"!=typeof e)return null;if(e.length>n)return null;if(!(t.loose?o[s.LOOSE]:o[s.FULL]).test(e))return null;try{return new i(e,t)}catch(e){return null}}},1754:e=>{const t=Number.MAX_SAFE_INTEGER||9007199254740991;e.exports={SEMVER_SPEC_VERSION:"2.0.0",MAX_LENGTH:256,MAX_SAFE_INTEGER:t,MAX_SAFE_COMPONENT_LENGTH:16}},4469:(e,t,r)=>{const n=r(53238);e.exports={re:n.re,src:n.src,tokens:n.t,SEMVER_SPEC_VERSION:r(1754).SEMVER_SPEC_VERSION,SemVer:r(65476),compareIdentifiers:r(70803).compareIdentifiers,rcompareIdentifiers:r(70803).rcompareIdentifiers,parse:r(848),valid:r(86473),clean:r(55446),inc:r(46431),diff:r(35720),major:r(81274),minor:r(59646),patch:r(81821),prerelease:r(45889),compare:r(33296),rcompare:r(67298),compareLoose:r(33507),compareBuild:r(65373),sort:r(40679),rsort:r(51413),gt:r(87404),lt:r(6531),eq:r(85857),neq:r(89983),gte:r(37785),lte:r(28576),cmp:r(78943),coerce:r(97450),Comparator:r(58944),Range:r(16791),satisfies:r(90198),toComparators:r(12111),maxSatisfying:r(79420),minSatisfying:r(61150),minVersion:r(27133),validRange:r(4578),outside:r(64835),gtr:r(60259),ltr:r(99342),intersects:r(53788),simplifyRange:r(34877),subset:r(45960)}},4578:(e,t,r)=>{const n=r(16791);e.exports=(e,t)=>{try{return new n(e,t).range||"*"}catch(e){return null}}},6531:(e,t,r)=>{const n=r(33296);e.exports=(e,t,r)=>n(e,t,r)<0},12111:(e,t,r)=>{const n=r(16791);e.exports=(e,t)=>new n(e,t).set.map((e=>e.map((e=>e.value)).join(" ").trim().split(" ")))},16791:(e,t,r)=>{class n{constructor(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof n)return e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease?e:new n(e.raw,t);if(e instanceof o)return this.raw=e.value,this.set=[[e]],this.format(),this;if(this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease,this.raw=e,this.set=e.split(/\s*\|\|\s*/).map((e=>this.parseRange(e.trim()))).filter((e=>e.length)),!this.set.length)throw new TypeError(`Invalid SemVer Range: ${e}`);this.format()}format(){return this.range=this.set.map((e=>e.join(" ").trim())).join("||").trim(),this.range}toString(){return this.range}parseRange(e){const t=this.options.loose;e=e.trim();const r=t?a[c.HYPHENRANGELOOSE]:a[c.HYPHENRANGE];e=e.replace(r,A(this.options.includePrerelease)),s("hyphen replace",e),e=e.replace(a[c.COMPARATORTRIM],l),s("comparator trim",e,a[c.COMPARATORTRIM]),e=(e=(e=e.replace(a[c.TILDETRIM],p)).replace(a[c.CARETTRIM],u)).split(/\s+/).join(" ");const n=t?a[c.COMPARATORLOOSE]:a[c.COMPARATOR];return e.split(" ").map((e=>h(e,this.options))).join(" ").split(/\s+/).map((e=>S(e,this.options))).filter(this.options.loose?e=>!!e.match(n):()=>!0).map((e=>new o(e,this.options)))}intersects(e,t){if(!(e instanceof n))throw new TypeError("a Range is required");return this.set.some((r=>f(r,t)&&e.set.some((e=>f(e,t)&&r.every((r=>e.every((e=>r.intersects(e,t)))))))))}test(e){if(!e)return!1;if("string"==typeof e)try{e=new i(e,this.options)}catch(e){return!1}for(let t=0;t<this.set.length;t++)if(R(this.set[t],e,this.options))return!0;return!1}}e.exports=n;const o=r(58944),s=r(61832),i=r(65476),{re:a,t:c,comparatorTrimReplace:l,tildeTrimReplace:p,caretTrimReplace:u}=r(53238),f=(e,t)=>{let r=!0;const n=e.slice();let o=n.pop();for(;r&&n.length;)r=n.every((e=>o.intersects(e,t))),o=n.pop();return r},h=(e,t)=>(s("comp",e,t),e=E(e,t),s("caret",e),e=d(e,t),s("tildes",e),e=$(e,t),s("xrange",e),e=y(e,t),s("stars",e),e),m=e=>!e||"x"===e.toLowerCase()||"*"===e,d=(e,t)=>e.trim().split(/\s+/).map((e=>g(e,t))).join(" "),g=(e,t)=>{const r=t.loose?a[c.TILDELOOSE]:a[c.TILDE];return e.replace(r,((t,r,n,o,i)=>{let a;return s("tilde",e,t,r,n,o,i),m(r)?a="":m(n)?a=`>=${r}.0.0 <${+r+1}.0.0-0`:m(o)?a=`>=${r}.${n}.0 <${r}.${+n+1}.0-0`:i?(s("replaceTilde pr",i),a=`>=${r}.${n}.${o}-${i} <${r}.${+n+1}.0-0`):a=`>=${r}.${n}.${o} <${r}.${+n+1}.0-0`,s("tilde return",a),a}))},E=(e,t)=>e.trim().split(/\s+/).map((e=>I(e,t))).join(" "),I=(e,t)=>{s("caret",e,t);const r=t.loose?a[c.CARETLOOSE]:a[c.CARET],n=t.includePrerelease?"-0":"";return e.replace(r,((t,r,o,i,a)=>{let c;return s("caret",e,t,r,o,i,a),m(r)?c="":m(o)?c=`>=${r}.0.0${n} <${+r+1}.0.0-0`:m(i)?c="0"===r?`>=${r}.${o}.0${n} <${r}.${+o+1}.0-0`:`>=${r}.${o}.0${n} <${+r+1}.0.0-0`:a?(s("replaceCaret pr",a),c="0"===r?"0"===o?`>=${r}.${o}.${i}-${a} <${r}.${o}.${+i+1}-0`:`>=${r}.${o}.${i}-${a} <${r}.${+o+1}.0-0`:`>=${r}.${o}.${i}-${a} <${+r+1}.0.0-0`):(s("no pr"),c="0"===r?"0"===o?`>=${r}.${o}.${i}${n} <${r}.${o}.${+i+1}-0`:`>=${r}.${o}.${i}${n} <${r}.${+o+1}.0-0`:`>=${r}.${o}.${i} <${+r+1}.0.0-0`),s("caret return",c),c}))},$=(e,t)=>(s("replaceXRanges",e,t),e.split(/\s+/).map((e=>O(e,t))).join(" ")),O=(e,t)=>{e=e.trim();const r=t.loose?a[c.XRANGELOOSE]:a[c.XRANGE];return e.replace(r,((r,n,o,i,a,c)=>{s("xRange",e,r,n,o,i,a,c);const l=m(o),p=l||m(i),u=p||m(a),f=u;return"="===n&&f&&(n=""),c=t.includePrerelease?"-0":"",l?r=">"===n||"<"===n?"<0.0.0-0":"*":n&&f?(p&&(i=0),a=0,">"===n?(n=">=",p?(o=+o+1,i=0,a=0):(i=+i+1,a=0)):"<="===n&&(n="<",p?o=+o+1:i=+i+1),"<"===n&&(c="-0"),r=`${n+o}.${i}.${a}${c}`):p?r=`>=${o}.0.0${c} <${+o+1}.0.0-0`:u&&(r=`>=${o}.${i}.0${c} <${o}.${+i+1}.0-0`),s("xRange return",r),r}))},y=(e,t)=>(s("replaceStars",e,t),e.trim().replace(a[c.STAR],"")),S=(e,t)=>(s("replaceGTE0",e,t),e.trim().replace(a[t.includePrerelease?c.GTE0PRE:c.GTE0],"")),A=e=>(t,r,n,o,s,i,a,c,l,p,u,f,h)=>`${r=m(n)?"":m(o)?`>=${n}.0.0${e?"-0":""}`:m(s)?`>=${n}.${o}.0${e?"-0":""}`:i?`>=${r}`:`>=${r}${e?"-0":""}`} ${c=m(l)?"":m(p)?`<${+l+1}.0.0-0`:m(u)?`<${l}.${+p+1}.0-0`:f?`<=${l}.${p}.${u}-${f}`:e?`<${l}.${p}.${+u+1}-0`:`<=${c}`}`.trim(),R=(e,t,r)=>{for(let r=0;r<e.length;r++)if(!e[r].test(t))return!1;if(t.prerelease.length&&!r.includePrerelease){for(let r=0;r<e.length;r++)if(s(e[r].semver),e[r].semver!==o.ANY&&e[r].semver.prerelease.length>0){const n=e[r].semver;if(n.major===t.major&&n.minor===t.minor&&n.patch===t.patch)return!0}return!1}return!0}},27133:(e,t,r)=>{const n=r(65476),o=r(16791),s=r(87404);e.exports=(e,t)=>{e=new o(e,t);let r=new n("0.0.0");if(e.test(r))return r;if(r=new n("0.0.0-0"),e.test(r))return r;r=null;for(let t=0;t<e.set.length;++t)e.set[t].forEach((e=>{const t=new n(e.semver.version);switch(e.operator){case">":0===t.prerelease.length?t.patch++:t.prerelease.push(0),t.raw=t.format();case"":case">=":r&&!s(r,t)||(r=t);break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${e.operator}`)}}));return r&&e.test(r)?r:null}},28576:(e,t,r)=>{const n=r(33296);e.exports=(e,t,r)=>n(e,t,r)<=0},33296:(e,t,r)=>{const n=r(65476);e.exports=(e,t,r)=>new n(e,r).compare(new n(t,r))},33507:(e,t,r)=>{const n=r(33296);e.exports=(e,t)=>n(e,t,!0)},34877:(e,t,r)=>{const n=r(90198),o=r(33296);e.exports=(e,t,r)=>{const s=[];let i=null,a=null;const c=e.sort(((e,t)=>o(e,t,r)));for(const e of c)n(e,t,r)?(a=e,i||(i=e)):(a&&s.push([i,a]),a=null,i=null);i&&s.push([i,null]);const l=[];for(const[e,t]of s)e===t?l.push(e):t||e!==c[0]?t?e===c[0]?l.push(`<=${t}`):l.push(`${e} - ${t}`):l.push(`>=${e}`):l.push("*");const p=l.join(" || "),u="string"==typeof t.raw?t.raw:String(t);return p.length<u.length?p:t}},35720:(e,t,r)=>{const n=r(848),o=r(85857);e.exports=(e,t)=>{if(o(e,t))return null;{const r=n(e),o=n(t),s=r.prerelease.length||o.prerelease.length,i=s?"pre":"",a=s?"prerelease":"";for(const e in r)if(("major"===e||"minor"===e||"patch"===e)&&r[e]!==o[e])return i+e;return a}}},37785:(e,t,r)=>{const n=r(33296);e.exports=(e,t,r)=>n(e,t,r)>=0},40679:(e,t,r)=>{const n=r(65373);e.exports=(e,t)=>e.sort(((e,r)=>n(e,r,t)))},41856:(e,t,r)=>{"use strict";r.r(t),r.d(t,{ActionMenu:()=>G.WyE,ActionMenuButton:()=>G.EDM,ActionMenuButton2:()=>G.Wjo,ActionableNotificationComponent:()=>G.drd,ActivityIcon:()=>G.npY,AddIcon:()=>G.REV,AllergiesIcon:()=>G.UgN,AppointmentsAltPictogram:()=>G.MnZ,AppointmentsPictogram:()=>G.B1u,ArrowDownIcon:()=>G.ZLN,ArrowLeftIcon:()=>G.A60,ArrowRightIcon:()=>G.flY,ArrowUpIcon:()=>G.Kpk,Assessment1Pictogram:()=>G.IHy,Assessment2Pictogram:()=>G.$iy,AttachmentIcon:()=>G.PtA,BabyIcon:()=>G.qYP,BloodBankPictogram:()=>G.nvs,Breakpoint:()=>G.EA,CalendarHeatMapIcon:()=>G.mmM,CalendarIcon:()=>G.CTc,CardiologyPictogram:()=>G.uU$,CaretDownIcon:()=>G.bDP,CaretLeftIcon:()=>G.eCO,CaretRightIcon:()=>G.JJd,CaretUpIcon:()=>G.SwV,ChartAverageIcon:()=>G.ZHE,CheckmarkFilledIcon:()=>G.FtQ,CheckmarkOutlineIcon:()=>G.pm$,ChemistryIcon:()=>G.W4t,ChevronDownIcon:()=>G.D3D,ChevronLeftIcon:()=>G.YJP,ChevronRightIcon:()=>G.vKP,ChevronUpIcon:()=>G.Mtm,CloseFilledIcon:()=>G.oCk,CloseIcon:()=>G.USm,CloseOutlineIcon:()=>G.Wdn,ComponentContext:()=>$.zq,ConditionsIcon:()=>G.ci3,ConfigurableLink:()=>$.i_,CtScanPictogram:()=>G.DeE,CustomOverflowMenu:()=>G.TQT,DashboardExtension:()=>G.cJN,DentistryPictogram:()=>G.TNY,DiagnosisTags:()=>G.Fzf,DocumentAttachmentIcon:()=>G.Ce6,DocumentIcon:()=>G.pyG,DownloadIcon:()=>G.s3U,DrugOrderIcon:()=>G.uqj,EditIcon:()=>G.qUP,EmergencyDepartmentPictogram:()=>G.sgv,ErrorState:()=>G.W5n,EventScheduleIcon:()=>G.XaH,EventsIcon:()=>G.Jc,Extension:()=>$.YY,ExtensionSlot:()=>$.W3,FacilityPictogram:()=>G.ECF,GenderFemaleIcon:()=>G.XB2,GenderMaleIcon:()=>G.szA,GenderOtherIcon:()=>G.hXZ,GenderUnknownIcon:()=>G.x1U,GenericOrderTypeIcon:()=>G.naI,GeriatricsPictogram:()=>G.SQq,GroupAccessIcon:()=>G.Pyy,GroupIcon:()=>G.nFg,GynaecologyPictogram:()=>G.owH,HomePictogram:()=>G.KKH,HospitalBedIcon:()=>G.jMM,Icon:()=>G.Int,ImageMedicalIcon:()=>G.Ix5,InPatientPictogram:()=>G.thS,InformationFilledIcon:()=>G._e_,InformationIcon:()=>G.uQc,InformationSquareIcon:()=>G.ZrL,InventoryManagementIcon:()=>G.vFG,LabOrderIcon:()=>G.hi6,LaboratoryPictogram:()=>G.ehn,Labs2Pictogram:()=>G.rpF,LeftNavMenu:()=>G.Ojh,ListCheckedIcon:()=>G.Rt$,LocationIcon:()=>G.BT6,LocationPicker:()=>G.MTs,MaterialOrderIcon:()=>G.zZ0,MaximizeIcon:()=>G._Xm,MaybeIcon:()=>G.oy0,MaybePictogram:()=>G.bmf,MedicationIcon:()=>G.Fnj,MessageQueueIcon:()=>G.uFu,MicroscopeIcon:()=>G.u4h,MoneyIcon:()=>G.yBj,MotherIcon:()=>G.XEq,MovementIcon:()=>G.lyJ,Notification:()=>G.Eg0,ObstetricsPictogram:()=>G.Bk2,OpenmrsAppContext:()=>$.p6,OpenmrsDatePicker:()=>G.rnR,OpenmrsDateRangePicker:()=>G.Yem,OpenmrsFetchError:()=>n.$f,OverflowMenuHorizontalIcon:()=>G.rv3,OverflowMenuVerticalIcon:()=>G.Rnm,PageHeader:()=>G.zYs,PageHeaderContent:()=>G.gpz,PasswordIcon:()=>G.BGy,PatientBannerActionsMenu:()=>G.k1U,PatientBannerContactDetails:()=>G.m5G,PatientBannerPatientIdentifiers:()=>G.XIV,PatientBannerPatientInfo:()=>G.zvf,PatientBannerToggleContactDetailsButton:()=>G.Qgu,PatientListsPictogram:()=>G.$2H,PatientPhoto:()=>G.yV,PatientSearchPictogram:()=>G.cxq,PatientsPictogram:()=>G.X25,PaymentsDeskPictogram:()=>G.dNG,PedestrianFamilyIcon:()=>G.PPo,PenIcon:()=>G.rZj,Pharmacy2Pictogram:()=>G.Q92,PharmacyPictogram:()=>G.w21,Pictogram:()=>G.bF1,PrinterIcon:()=>G.wwY,ProcedureOrderIcon:()=>G.H0x,ProgramsIcon:()=>G.lq$,RadiologyIcon:()=>G.SA3,ReferralOrderIcon:()=>G.tCH,RegistrationPictogram:()=>G.et7,RenderIfValueIsTruthy:()=>$.fS,RenewIcon:()=>G.JTN,ReportIcon:()=>G.cQD,ResetIcon:()=>G.NAP,ResponsiveWrapper:()=>G.KFv,SaveIcon:()=>G.LPu,SearchIcon:()=>G.WIv,ServiceQueuesPictogram:()=>G.Y21,SettingsIcon:()=>G.Zes,ShoppingCartAddItemIcon:()=>G.Uve,ShoppingCartArrowDownIcon:()=>G.Lfm,ShoppingCartIcon:()=>G.aJF,Snackbar:()=>G.qb_,StickyNoteAddIcon:()=>G.OC$,StockManagementPictogram:()=>G.q__,SwitcherIcon:()=>G.RFy,SyringeIcon:()=>G.hZg,TableIcon:()=>G.KbA,TableOfContentsIcon:()=>G.pYV,TimeIcon:()=>G.b1c,Toast:()=>G.y8,ToolsIcon:()=>G.dwU,TransferPictogram:()=>G.SKX,TranslateIcon:()=>G.SwB,TrashCanIcon:()=>G.EJV,TreeViewAltIcon:()=>G.MO4,TriagePictogram:()=>G.XHu,Type:()=>o.ZU,UserAvatarIcon:()=>G.yDT,UserFollowIcon:()=>G.osL,UserHasAccess:()=>$.qw,UserIcon:()=>G.nys,UserXrayIcon:()=>G.feL,ViewIcon:()=>G.tCQ,ViewOffIcon:()=>G.Oi_,VisitMode:()=>i.dx,VisitStatus:()=>i.Cj,WarningIcon:()=>G.id,Workspace2:()=>G.ozP,WorkspaceContainer:()=>G.XvC,WorkspaceNotification:()=>G.tMf,XrayPictogram:()=>G.B2u,activateOfflineCapability:()=>I.nr,addRoutesOverride:()=>P,age:()=>U.K,attach:()=>m.K0,attachmentUrl:()=>i.Zu,backendDependencies:()=>n.QE,beginEditSynchronizationItem:()=>I.FO,canAccessStorage:()=>L,canBeginEditSynchronizationItemsOfType:()=>I.xN,canCloseWorkspaceWithoutPrompting:()=>G.SvQ,cancelPrompt:()=>G.zlb,changeWorkspaceContext:()=>G.JKc,checkStatus:()=>m.dO,checkStatusFor:()=>m.Ef,cleanupObsoleteFeatureFlags:()=>d.D3,clearConfigErrors:()=>o.Nh,clearCurrentUser:()=>n.g$,clearHistory:()=>E.g4,closeAllWorkspaces:()=>G.G_3,closeWorkspace:()=>G.MJ8,closeWorkspaceGroup2:()=>G.biy,compile:()=>c.wE,configExtensionStore:()=>o.hs,configInternalStore:()=>o.Rt,convertToLocaleCalendar:()=>W.d4,createAttachment:()=>i.cD,createErrorHandler:()=>a.J,createGlobalStore:()=>M.Zd,createUseStore:()=>$.rr,defaultVisitCustomRepresentation:()=>i.Rb,defineConfigSchema:()=>o.T0,defineExtensionConfigSchema:()=>o.ks,deleteAttachmentPermanently:()=>i.SY,deleteSynchronizationItem:()=>I.lY,detach:()=>m.Yo,detachAll:()=>m.No,dispatchActionableNotificationShown:()=>g.LQ,dispatchConnectivityChanged:()=>g.Yt,dispatchNotificationShown:()=>g.FI,dispatchPrecacheStaticDependencies:()=>g.pc,dispatchSnackbarShown:()=>g.$3,dispatchToastShown:()=>g.Vt,displayName:()=>V.QC,esmStyleGuideSchema:()=>G.uQD,evaluate:()=>c._3,evaluateAsBoolean:()=>c.eb,evaluateAsBooleanAsync:()=>c.Gz,evaluateAsNumber:()=>c.dX,evaluateAsNumberAsync:()=>c.$F,evaluateAsType:()=>c.Sj,evaluateAsTypeAsync:()=>c.uN,evaluateAsync:()=>c.mv,extractVariableNames:()=>u,featureFlagsStore:()=>d.jX,fetchCurrentPatient:()=>i.hG,fhirBaseUrl:()=>n.IU,filterBreadcrumbs:()=>E.D_,finishRegisteringAllApps:()=>N,formatDate:()=>W.Yq,formatDatetime:()=>W.Rt,formatDuration:()=>W.a3,formatPartialDate:()=>W.LW,formatPatientName:()=>V.Qr,formatTime:()=>W.fU,formattedName:()=>V.qK,generateOfflineUuid:()=>I.sA,getAssignedExtensions:()=>m.zx,getAsyncExtensionLifecycle:()=>$.sc,getAsyncLifecycle:()=>$.ns,getAttachmentByUuid:()=>i.KU,getAttachments:()=>i.Bv,getBreadcrumbs:()=>E.lz,getBreadcrumbsFor:()=>E.qh,getConfig:()=>o.zj,getConfigStore:()=>o.IS,getCoreTranslation:()=>j.V,getCurrentImportMap:()=>s.Ln,getCurrentOfflineMode:()=>I.wJ,getCurrentUser:()=>n.HW,getDefaultCalendar:()=>W.a7,getDefaultsFromConfigSchema:()=>_,getDynamicOfflineDataEntries:()=>I.FE,getDynamicOfflineDataEntriesFor:()=>I.WA,getDynamicOfflineDataHandlers:()=>I.qb,getExtensionConfig:()=>o.UY,getExtensionConfigFromExtensionSlotStore:()=>o.g$,getExtensionConfigFromStore:()=>o.P0,getExtensionInternalStore:()=>m.a9,getExtensionNameFromId:()=>m.ES,getExtensionRegistration:()=>m.Tj,getExtensionRegistrationFrom:()=>m.xg,getExtensionSlotConfig:()=>o.G9,getExtensionSlotConfigFromStore:()=>o.vu,getExtensionSlotsConfigStore:()=>o.YP,getExtensionStore:()=>m.zF,getExtensionsConfigStore:()=>o.GI,getFeatureFlag:()=>d.jj,getFhirServerPaginationHandlers:()=>$.mw,getFullSynchronizationItems:()=>I.C$,getFullSynchronizationItemsFor:()=>I.xc,getGlobalStore:()=>M.jf,getGroupByWindowName:()=>m.o1,getHistory:()=>E.JK,getLifecycle:()=>$.JK,getLocale:()=>B.J,getLocations:()=>i.Vs,getLoggedInUser:()=>n.xC,getModalRegistration:()=>m.Fg,getOfflineDb:()=>I.e,getOfflinePatientDataStore:()=>I.WK,getOfflineSynchronizationStore:()=>I.LM,getOmrsServiceWorker:()=>I.Rs,getOpenedWindowIndexByWorkspace:()=>m.YX,getPatientName:()=>V.Vp,getPromptBeforeClosingFcn:()=>G.OeE,getSessionLocation:()=>n.Kx,getSessionStore:()=>n.EW,getStartedVisit:()=>i.DK,getSyncLifecycle:()=>$.g9,getSynchronizationItem:()=>I.Gp,getSynchronizationItems:()=>I.pb,getSynchronizationItemsFor:()=>I.Io,getTranslationOverrides:()=>o.td,getVisitStore:()=>i.BX,getVisitTypes:()=>i.Pu,getVisitsForPatient:()=>i.BR,getWindowByWorkspaceName:()=>m.Ml,getWorkspaceGroupRegistration:()=>m.Q_,getWorkspaceGroupStore:()=>G.e_T,getWorkspaceRegistration:()=>m.Xb,getWorkspaceStore:()=>G.XzH,goBackInHistory:()=>E.tA,iconIds:()=>G.kE8,implementerToolsConfigStore:()=>o.tN,importDynamic:()=>s.rL,inRange:()=>o.r4,integrateBreakpoints:()=>G.WMK,interpolateString:()=>E.zl,interpolateUrl:()=>E.JG,isDesktop:()=>$.xl,isDevEnabled:()=>n.L7,isOfflineUuid:()=>I.bO,isOmrsDateStrict:()=>W.hl,isOmrsDateToday:()=>W.vU,isOnline:()=>H.s,isOpenmrsAppRoutes:()=>F,isOpenmrsRoutes:()=>k,isUrl:()=>o.gU,isUrlWithTemplateParameters:()=>o.qG,isVersionSatisfied:()=>J,jsep:()=>c.PQ,launchWorkspace:()=>G.TC2,launchWorkspace2:()=>G.pTx,launchWorkspaceGroup:()=>G.aN0,launchWorkspaceGroup2:()=>G.GYk,leftNavStore:()=>m.Gp,loadLifeCycles:()=>S.o,localStorageRoutesPrefix:()=>O,makeUrl:()=>n.Gm,messageOmrsServiceWorker:()=>I.ms,navigate:()=>E.oo,navigateAndLaunchWorkspace:()=>G.Fmw,offlineUuidPrefix:()=>I.jU,omrsOfflineCachingStrategyHttpHeaderName:()=>I.JC,omrsOfflineResponseBodyHttpHeaderName:()=>I.UH,omrsOfflineResponseStatusHttpHeaderName:()=>I.Gj,oneOf:()=>o.yL,openmrsComponentDecorator:()=>$.F7,openmrsFetch:()=>n.lo,openmrsObservableFetch:()=>n.ut,parseDate:()=>W._U,pictogramIds:()=>G.vJW,preloadImport:()=>s.zC,processConfig:()=>o.mq,promptBeforeClosing:()=>G.F3N,promptForClosingWorkspaces:()=>G.hLN,provide:()=>o.Gt,putDynamicOfflineData:()=>I.yD,putDynamicOfflineDataFor:()=>I.ff,queueSynchronizationItem:()=>I.Zr,queueSynchronizationItemFor:()=>I.Iq,refetchCurrentUser:()=>n.yH,registerApp:()=>w,registerBreadcrumb:()=>E.vf,registerBreadcrumbs:()=>E.MY,registerDefaultCalendar:()=>W.XE,registerExtension:()=>m.VK,registerExtensionSlot:()=>m.FY,registerFeatureFlag:()=>d.uA,registerGlobalStore:()=>M.CE,registerModal:()=>m.Ju,registerModuleLoad:()=>o.kl,registerModuleWithConfigSystem:()=>o.FL,registerOfflinePatientHandler:()=>I.KG,registerOmrsServiceWorker:()=>I.sZ,registerTranslationNamespace:()=>o.GV,registerWorkspace:()=>m.pm,registerWorkspaceGroup:()=>m.io,registerWorkspaceGroups2:()=>m.rD,registerWorkspaceWindows2:()=>m.Qb,registerWorkspaces2:()=>m.Uh,removeDynamicOfflineData:()=>I.NU,removeDynamicOfflineDataFor:()=>I.wn,removeRoutesOverride:()=>C,renderActionableNotifications:()=>G.zfR,renderExtension:()=>m.wG,renderInlineNotifications:()=>G.CU$,renderLoadingSpinner:()=>G.uWG,renderSnackbars:()=>G.ZLm,renderToasts:()=>G.f1b,renderWorkspaceWindowsAndMenu:()=>G.jCr,reportError:()=>a.N,reset:()=>m.cL,resetAllRoutesOverrides:()=>x,resetWorkspaceStore:()=>G._1W,restBaseUrl:()=>n.Jj,retry:()=>Q,runSynchronization:()=>I.AO,saveVisit:()=>i.Ds,selectPreferredName:()=>V.VO,sessionEndpoint:()=>n.Ct,sessionStore:()=>n.eA,setCurrentOfflineMode:()=>I.Og,setCurrentVisit:()=>i.NH,setFeatureFlag:()=>d.B4,setLeftNav:()=>m.Vx,setSessionLocation:()=>n.Gp,setUserLanguage:()=>n.E4,setUserProperties:()=>n.Fi,setupApiModule:()=>n.Y0,setupDynamicOfflineDataHandler:()=>I.iD,setupHistory:()=>E.Wh,setupModals:()=>G.EPe,setupOfflineSync:()=>I.cy,shallowEqual:()=>X.b,showActionableNotification:()=>G.ZyP,showModal:()=>G.toY,showNotification:()=>G.Dsh,showSnackbar:()=>G.tdF,showToast:()=>G.P0c,showWorkspacePrompts:()=>G.ctS,slugify:()=>s.Yv,subscribeActionableNotificationShown:()=>g.bK,subscribeConnectivity:()=>g.sT,subscribeConnectivityChanged:()=>g.gj,subscribeNotificationShown:()=>g.bJ,subscribePrecacheStaticDependencies:()=>g.ff,subscribeSnackbarShown:()=>g.ls,subscribeTo:()=>M.i7,subscribeToFeatureFlag:()=>d.sM,subscribeToastShown:()=>g.dX,syncAllDynamicOfflineData:()=>I.Td,syncDynamicOfflineData:()=>I.u1,syncOfflinePatientData:()=>I.sK,temporaryConfigStore:()=>o.H,toDateObjectStrict:()=>W.kQ,toLocationObject:()=>i.E$,toOmrsIsoString:()=>W.l0,toVisitTypeObject:()=>i.Qx,translateFrom:()=>j.t,tryRegisterExtension:()=>A,unsetLeftNav:()=>m.sr,updateInternalExtensionStore:()=>m.DQ,updateVisit:()=>i.xL,updateWorkspaceWindowState:()=>G._RD,useAbortController:()=>$.Ie,useAppContext:()=>$.Us,useAssignedExtensionIds:()=>$.Tt,useAssignedExtensions:()=>$.CX,useAttachments:()=>$._9,useBodyScrollLock:()=>$.yJ,useConfig:()=>$.UK,useConnectedExtensions:()=>$.zD,useConnectivity:()=>$.Fx,useDebounce:()=>$.d7,useDefineAppContext:()=>$.jn,useEmrConfiguration:()=>$.E4,useExtensionInternalStore:()=>$.$B,useExtensionSlot:()=>$.br,useExtensionSlotMeta:()=>$.Wq,useExtensionSlotStore:()=>$.uL,useExtensionStore:()=>$.Gz,useFeatureFlag:()=>$.u,useFhirFetchAll:()=>$.oq,useFhirInfinite:()=>$.vL,useFhirPagination:()=>$.to,useForceUpdate:()=>$.CH,useLayoutType:()=>$.qv,useLeftNav:()=>$.if,useLeftNavStore:()=>$.TA,useLocations:()=>$.kH,useOnClickOutside:()=>$.Wr,useOnVisible:()=>$.Jm,useOpenmrsFetchAll:()=>$.Bf,useOpenmrsInfinite:()=>$.iy,useOpenmrsPagination:()=>$.Ed,useOpenmrsSWR:()=>$.M3,usePagination:()=>$.WQ,usePatient:()=>$.tQ,usePatientPhoto:()=>G.R9n,usePrimaryIdentifierCode:()=>$.wJ,useRenderableExtensions:()=>$.oU,useSession:()=>$.wV,useStore:()=>$.Pj,useStoreWithActions:()=>$.mQ,useVisit:()=>$.fq,useVisitContextStore:()=>$.xH,useVisitTypes:()=>$.wr,useWorkspace2Store:()=>G.AkA,useWorkspaces:()=>G.CH0,userHasAccess:()=>n.st,validator:()=>o.Nc,validators:()=>o.y$,workspace2Store:()=>m.J_,workspaceStore:()=>G.x9q});var n=r(72905),o=r(34145),s=r(80343),i=r(50171),a=r(89103),c=r(81490),l=r(69493),p=r(97881);function u(e){if(!("string"==typeof e||"object"==typeof e&&e&&"type"in e))throw`Unknown expression type ${e}. Expressions must either be a string or pre-compiled string.`;const t=(r=p.f,{globals:{...r},isLocalExpression:!1,variables:new Set});var r;return f("string"==typeof e?(0,l.A)(e):e,t),[...t.variables]}function f(e,t){switch(e.type){case"UnaryExpression":return function(e,t){return f(e.argument,t)}(e,t);case"BinaryExpression":return function(e,t){return[f(e.left,t),f(e.right,t)].filter(Boolean)}(e,t);case"ConditionalExpression":return function(e,t){return[f(e.consequent,t),f(e.test,t),f(e.alternate,t)].filter(Boolean)}(e,t);case"CallExpression":return function(e,t){const r=f(e.callee,t);return e.arguments?.map(h(t)),r}(e,t);case"ArrowFunctionExpression":return function(e,t){const r={...t};r.isLocalExpression=!0;const n=e.params?.map(h(r))??[],o=f(e.body,r)??[];if(o&&Array.isArray(o))for(const e of o)n.includes(e)||t.variables.add(e)}(e,t);case"MemberExpression":return function(e,t){f(e.object,t);const r={...t};r.isLocalExpression=!0,f(e.property,r)}(e,t);case"ArrayExpression":return function(e,t){e.elements?.map(h(t))}(e,t);case"SequenceExpression":return function(e,t){e.expressions?.map(h(t))}(e,t);case"NewExpression":return function(e,t){e.arguments?.map(h(t))}(e,t);case"Literal":case"TemplateElement":return;case"Identifier":return function(e,t){if(!(e.name in t.globals)){if(t.isLocalExpression)return e.name;t.variables.add(e.name)}}(e,t);case"TemplateLiteral":return function(e,t){e.expressions?.map(h(t)),e.quasis?.map(h(t))}(e,t);default:throw`Expression evaluator does not support expression of type '${e.type}'`}}function h(e){return function(t){return null===t?null:f(t,e)}}var m=r(46481),d=r(8200),g=r(34898),E=r(36523),I=r(62478),$=r(15965);const O="openmrs-routes:";var y=r(70599),S=r(93008);function A(e,t){const r=t.name;if(!r)return void console.error(`An extension definition in ${e} is missing an name and thus cannot be\nregistered. To fix this, ensure that you define the "name" field inside the\nextension definition.`,t);t.slots&&t.slot&&console.warn(`The extension ${r} from ${e} declares both a 'slots' property and\na 'slot' property. Only the 'slots' property will be honored.`);const n=t.slots?t.slots:t.slot?[t.slot]:[];if(t.component){(0,m.VK)({name:r,load:()=>(0,S.o)(e,t.component),meta:t.meta||{},order:t.order,moduleName:e,privileges:t.privileges,online:t.online??!0,offline:t.offline??!1,featureFlag:t.featureFlag});for(const e of n)(0,m.K0)(e,r)}else console.error(`The extension ${r} from ${e} is missing a 'component' entry and thus cannot be registered.\nTo fix this, ensure that you define a 'component' field inside the extension definition.`,t)}const R=[];function v(e){if(Array.isArray(e)){const t=e.map(v);return e=>t.some((t=>t(e)))}return"string"==typeof e?(0,y.fz)(window.getOpenmrsSpaBase()+e):e instanceof RegExp?t=>function(e,t){return e.test(t.pathname.replace(window.getOpenmrsSpaBase(),""))}(e,t):()=>e}function w(e,t){if(e&&t&&"object"==typeof t){(0,o.FL)(e);const n=t.extensions??[],s=t.modals??[],i=t.workspaces??[],a=t.workspaceGroups??[],c=t.featureFlags??[],l=t.workspaceGroups2??[],p=t.workspaceWindows2??[],u=t.workspaces2??[];t.pages?.forEach((t=>{t&&"object"==typeof t&&Object.hasOwn(t,"component")&&(Object.hasOwn(t,"route")||Object.hasOwn(t,"routeRegex")||Object.hasOwn(t,"routes"))?R.push({...t,appName:e}):console.warn(`A page for ${e} could not be registered as it does not appear to have the required properties`,t)})),n.forEach((t=>{t&&"object"==typeof t&&Object.hasOwn(t,"name")&&Object.hasOwn(t,"component")?A(e,t):console.warn(`An extension for ${e} could not be registered as it does not appear to have the required properties`,t)})),s.forEach((t=>{t&&"object"==typeof t&&Object.hasOwn(t,"name")&&Object.hasOwn(t,"component")?function(e,t){const r=t.name;r?t.component?(0,m.Ju)({name:r,moduleName:e,load:()=>(0,S.o)(e,t.component)}):console.error(`The modal ${r} from ${e} is missing a 'component' entry and thus cannot be registered.\nTo fix this, ensure that you define a 'component' field inside the modal definition.`,t):console.error(`A modal definition in ${e} is missing an name and thus cannot be\nregistered. To fix this, ensure that you define the "name" field inside the\nmodal definition.`,t)}(e,t):console.warn(`A modal for ${e} could not be registered as it does not appear to have the required properties`,t)})),i.forEach((t=>{t&&"object"==typeof t&&Object.hasOwn(t,"name")&&Object.hasOwn(t,"component")?function(e,t){const r=t.name;if(!r)return void console.error(`A workspace definition in ${e} is missing a name and thus cannot be registered.\nTo fix this, ensure that you define the "name" field inside the workspace definition.`,t);const n=t.title;if(n)if(t.component){(0,m.pm)({name:r,title:n,component:t.component,moduleName:e,type:t.type,canHide:t.canHide,canMaximize:t.canMaximize,width:t.width,preferredWindowSize:t.preferredWindowSize,groups:t.groups,load:()=>(0,S.o)(e,t.component)});for(const e of t.groups||[])(0,m.io)({name:e,members:[r]})}else console.error(`The workspace ${r} from ${e} is missing a 'component' entry and thus cannot be registered.\nTo fix this, ensure that you define a 'component' field inside the workspace definition.`,t);else console.error(`A workspace definition in ${e} is missing a title and thus cannot be registered.\nTo fix this, ensure that you define the "title" field inside the workspace definition.`,t)}(e,t):console.warn(`A workspace for ${e} could not be registered as it does not appear to have the required properties`,t)})),a.forEach((t=>{t&&"object"==typeof t&&Object.hasOwn(t,"name")?function(e,t){const r=t.name;r?(0,m.io)({name:r,members:t.members??[]}):console.error(`A workspace group definition in ${e} is missing a name and thus cannot be registered.\nTo fix this, ensure that you define the "name" field inside the workspace definition.`,t)}(e,t):console.warn(`A workspace group for ${e} could not be registered as it does not appear to have the required properties`,t)})),r=l,(0,m.rD)(r),function(e,t){(0,m.Qb)(e,t)}(e,p),function(e,t){(0,m.Uh)(e,t)}(e,u),c.forEach((t=>{t&&"object"==typeof t&&Object.hasOwn(t,"flagName")?function(e,t){t.flagName?t.label?t.description?(0,d.uA)(t.flagName,t.label,t.description):console.error(`A feature flag definition in ${e} is missing a description and thus cannot be registered.\nTo fix this, ensure that you define the "description" field inside the feature flag definition.`,t):console.error(`A feature flag definition in ${e} is missing a description and thus cannot be registered.\nTo fix this, ensure that you define the "label" field inside the feature flag definition.`,t):console.error(`A feature flag definition in ${e} is missing a name and thus cannot be registered.\nTo fix this, ensure that you define the "name" field inside the feature flag definition.`,t)}(e,t):console.warn(`A feature flag for ${e} could not be registered as it does not appear to have the required properties`,t)}))}var r}function N(){R.sort(((e,t)=>e.appName.localeCompare(t.appName,"en")));let e=new Map;for(let t of R){e.has(t.appName)?e.set(t.appName,e.get(t.appName)+1):e.set(t.appName,0);const r=e.get(t.appName),n=`${t.appName}-page-${r}`,o=t.containerDomId??"omrs-apps-container",s=document.getElementById(o),i=`single-spa-application:${n}`;if(!s)throw new Error(`${t.appName} ${t.component} cannot be mounted to "${o}"; DOM element does not exist.`);{const e=document.createElement("div");e.id=i,s?.appendChild(e)}T(n,t)}}function T(e,t){const r=void 0!==t.route?t.route:void 0!==t.routeRegex&&new RegExp(t.routeRegex);if(!1===r)return void console.warn('A registered page definition is missing a route and thus cannot be registered.\nTo fix this, ensure that you define the "route" (or alternatively the "routeRegex") field inside the extension definition.',e);if(!t.component)return void console.warn('A registered page definition is missing a component and thus cannot be registered.\nTo fix this, ensure that you define the "component" field inside the page definition.',e);const n=function(e,{online:t,offline:r,featureFlag:n}){return window.offlineEnabled?o=>!!(navigator.onLine&&(t??1)||!navigator.onLine&&r)&&!(n&&!(0,d.jj)(n))&&e(o):e}(v(r),t);(0,y.AG)(e,(()=>(0,S.o)(t.appName,t.component)),n)}function L(e=window.localStorage){try{return e.getItem("test"),!0}catch{return!1}}const b=L();function P(e,t){if(b){if("string"==typeof t){if(t.startsWith("http"))return D(e,t);try{const r=JSON.parse(t);if(F(r))return D(e,r);console.error(`The supplied routes for ${e} is not a valid OpenmrsAppRoutes object`,t)}catch(t){console.error(`Could not add routes override for ${e}: `,t)}}else{if(t instanceof URL)return D(e,t.toString());if(F(t))return D(e,t)}console.error(`Override for ${e} is not in a valid format. Expected either a Javascript Object, a JSON string of a Javascript object, or a URL`,t)}}function C(e){if(!b)return;const t=O+e;localStorage.removeItem(t)}function x(){if(!b)return;const e=window.localStorage;for(let t=0;t<e.length;t++){const r=e.key(t);r?.startsWith(O)&&e.removeItem(r)}}function D(e,t){const r=O+e;localStorage.setItem(r,JSON.stringify(t))}function F(e){if(e&&"object"==typeof e){const t=Object.prototype.hasOwnProperty,r=e;return!!((!t.call(e,"pages")||Boolean(r.pages)&&Array.isArray(r.pages))&&(!t.call(e,"extensions")||Boolean(r.extensions)&&Array.isArray(r.extensions))&&(!t.call(e,"workspaces")||Boolean(r.workspaces)&&Array.isArray(r.workspaces))&&(!t.call(e,"modals")||Boolean(r.modals)&&Array.isArray(r.modals)))}return!1}function k(e){if(e&&"object"==typeof e){const t=e;return Object.entries(t).every((([e,t])=>"string"==typeof e&&F(t)))}return!1}var M=r(82711),G=r(87452),j=r(68241),U=r(4011),W=r(93717),B=r(40863),H=r(99400),V=r(78497),X=r(75658);function _(e){let t={};for(let r of Object.keys(e))if(z(e[r])&&e[r].hasOwnProperty("_default"))t[r]=e[r]._default;else{if(r.startsWith("_"))continue;z(e[r])?t[r]=_(e[r]):t[r]=e[r]}return t}function z(e){return!!e&&e.constructor===Object}var q=r(4469);function Y(e){const[t,r,n]=e.split(".");return`${t}.${r}.${n}`}function J(e,t){const r=function(e){const t=e.indexOf("-");return t>=0?`${Y(e.slice(0,t))}-${e.slice(t+1)}`:Y(e)}(t);return q.satisfies(r,e,{includePrerelease:!0})}async function Q(e,t={}){let{shouldRetry:r,getDelay:n,onError:o}=t;r=r??(e=>function(e){return e<=5}(e)),n=n??(e=>function(e,t,r=!1){const n=r?e+1:e;return 1e3*Math.pow(2,n)}(e));let s,i=0;do{try{return await K(n(i)),await e()}catch(e){o?.(e,i),s=e}}while(r(i++));throw s}async function K(e){if(!(e<=0))return new Promise((t=>setTimeout(t,e)))}},45889:(e,t,r)=>{const n=r(848);e.exports=(e,t)=>{const r=n(e,t);return r&&r.prerelease.length?r.prerelease:null}},45960:(e,t,r)=>{const n=r(16791),{ANY:o}=r(58944),s=r(90198),i=r(33296),a=(e,t,r)=>{if(1===e.length&&e[0].semver===o)return 1===t.length&&t[0].semver===o;const n=new Set;let a,p,u,f,h,m,d;for(const t of e)">"===t.operator||">="===t.operator?a=c(a,t,r):"<"===t.operator||"<="===t.operator?p=l(p,t,r):n.add(t.semver);if(n.size>1)return null;if(a&&p){if(u=i(a.semver,p.semver,r),u>0)return null;if(0===u&&(">="!==a.operator||"<="!==p.operator))return null}for(const e of n){if(a&&!s(e,String(a),r))return null;if(p&&!s(e,String(p),r))return null;for(const n of t)if(!s(e,String(n),r))return!1;return!0}for(const e of t){if(d=d||">"===e.operator||">="===e.operator,m=m||"<"===e.operator||"<="===e.operator,a)if(">"===e.operator||">="===e.operator){if(f=c(a,e,r),f===e)return!1}else if(">="===a.operator&&!s(a.semver,String(e),r))return!1;if(p)if("<"===e.operator||"<="===e.operator){if(h=l(p,e,r),h===e)return!1}else if("<="===p.operator&&!s(p.semver,String(e),r))return!1;if(!e.operator&&(p||a)&&0!==u)return!1}return!(a&&m&&!p&&0!==u||p&&d&&!a&&0!==u)},c=(e,t,r)=>{if(!e)return t;const n=i(e.semver,t.semver,r);return n>0?e:n<0||">"===t.operator&&">="===e.operator?t:e},l=(e,t,r)=>{if(!e)return t;const n=i(e.semver,t.semver,r);return n<0?e:n>0||"<"===t.operator&&"<="===e.operator?t:e};e.exports=(e,t,r)=>{e=new n(e,r),t=new n(t,r);let o=!1;e:for(const n of e.set){for(const e of t.set){const t=a(n,e,r);if(o=o||null!==t,t)continue e}if(o)return!1}return!0}},46431:(e,t,r)=>{const n=r(65476);e.exports=(e,t,r,o)=>{"string"==typeof r&&(o=r,r=void 0);try{return new n(e,r).inc(t,o).version}catch(e){return null}}},51413:(e,t,r)=>{const n=r(65373);e.exports=(e,t)=>e.sort(((e,r)=>n(r,e,t)))},53238:(e,t,r)=>{const{MAX_SAFE_COMPONENT_LENGTH:n}=r(1754),o=r(61832),s=(t=e.exports={}).re=[],i=t.src=[],a=t.t={};let c=0;const l=(e,t,r)=>{const n=c++;o(n,t),a[e]=n,i[n]=t,s[n]=new RegExp(t,r?"g":void 0)};l("NUMERICIDENTIFIER","0|[1-9]\\d*"),l("NUMERICIDENTIFIERLOOSE","[0-9]+"),l("NONNUMERICIDENTIFIER","\\d*[a-zA-Z-][a-zA-Z0-9-]*"),l("MAINVERSION",`(${i[a.NUMERICIDENTIFIER]})\\.(${i[a.NUMERICIDENTIFIER]})\\.(${i[a.NUMERICIDENTIFIER]})`),l("MAINVERSIONLOOSE",`(${i[a.NUMERICIDENTIFIERLOOSE]})\\.(${i[a.NUMERICIDENTIFIERLOOSE]})\\.(${i[a.NUMERICIDENTIFIERLOOSE]})`),l("PRERELEASEIDENTIFIER",`(?:${i[a.NUMERICIDENTIFIER]}|${i[a.NONNUMERICIDENTIFIER]})`),l("PRERELEASEIDENTIFIERLOOSE",`(?:${i[a.NUMERICIDENTIFIERLOOSE]}|${i[a.NONNUMERICIDENTIFIER]})`),l("PRERELEASE",`(?:-(${i[a.PRERELEASEIDENTIFIER]}(?:\\.${i[a.PRERELEASEIDENTIFIER]})*))`),l("PRERELEASELOOSE",`(?:-?(${i[a.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${i[a.PRERELEASEIDENTIFIERLOOSE]})*))`),l("BUILDIDENTIFIER","[0-9A-Za-z-]+"),l("BUILD",`(?:\\+(${i[a.BUILDIDENTIFIER]}(?:\\.${i[a.BUILDIDENTIFIER]})*))`),l("FULLPLAIN",`v?${i[a.MAINVERSION]}${i[a.PRERELEASE]}?${i[a.BUILD]}?`),l("FULL",`^${i[a.FULLPLAIN]}$`),l("LOOSEPLAIN",`[v=\\s]*${i[a.MAINVERSIONLOOSE]}${i[a.PRERELEASELOOSE]}?${i[a.BUILD]}?`),l("LOOSE",`^${i[a.LOOSEPLAIN]}$`),l("GTLT","((?:<|>)?=?)"),l("XRANGEIDENTIFIERLOOSE",`${i[a.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),l("XRANGEIDENTIFIER",`${i[a.NUMERICIDENTIFIER]}|x|X|\\*`),l("XRANGEPLAIN",`[v=\\s]*(${i[a.XRANGEIDENTIFIER]})(?:\\.(${i[a.XRANGEIDENTIFIER]})(?:\\.(${i[a.XRANGEIDENTIFIER]})(?:${i[a.PRERELEASE]})?${i[a.BUILD]}?)?)?`),l("XRANGEPLAINLOOSE",`[v=\\s]*(${i[a.XRANGEIDENTIFIERLOOSE]})(?:\\.(${i[a.XRANGEIDENTIFIERLOOSE]})(?:\\.(${i[a.XRANGEIDENTIFIERLOOSE]})(?:${i[a.PRERELEASELOOSE]})?${i[a.BUILD]}?)?)?`),l("XRANGE",`^${i[a.GTLT]}\\s*${i[a.XRANGEPLAIN]}$`),l("XRANGELOOSE",`^${i[a.GTLT]}\\s*${i[a.XRANGEPLAINLOOSE]}$`),l("COERCE",`(^|[^\\d])(\\d{1,${n}})(?:\\.(\\d{1,${n}}))?(?:\\.(\\d{1,${n}}))?(?:$|[^\\d])`),l("COERCERTL",i[a.COERCE],!0),l("LONETILDE","(?:~>?)"),l("TILDETRIM",`(\\s*)${i[a.LONETILDE]}\\s+`,!0),t.tildeTrimReplace="$1~",l("TILDE",`^${i[a.LONETILDE]}${i[a.XRANGEPLAIN]}$`),l("TILDELOOSE",`^${i[a.LONETILDE]}${i[a.XRANGEPLAINLOOSE]}$`),l("LONECARET","(?:\\^)"),l("CARETTRIM",`(\\s*)${i[a.LONECARET]}\\s+`,!0),t.caretTrimReplace="$1^",l("CARET",`^${i[a.LONECARET]}${i[a.XRANGEPLAIN]}$`),l("CARETLOOSE",`^${i[a.LONECARET]}${i[a.XRANGEPLAINLOOSE]}$`),l("COMPARATORLOOSE",`^${i[a.GTLT]}\\s*(${i[a.LOOSEPLAIN]})$|^$`),l("COMPARATOR",`^${i[a.GTLT]}\\s*(${i[a.FULLPLAIN]})$|^$`),l("COMPARATORTRIM",`(\\s*)${i[a.GTLT]}\\s*(${i[a.LOOSEPLAIN]}|${i[a.XRANGEPLAIN]})`,!0),t.comparatorTrimReplace="$1$2$3",l("HYPHENRANGE",`^\\s*(${i[a.XRANGEPLAIN]})\\s+-\\s+(${i[a.XRANGEPLAIN]})\\s*$`),l("HYPHENRANGELOOSE",`^\\s*(${i[a.XRANGEPLAINLOOSE]})\\s+-\\s+(${i[a.XRANGEPLAINLOOSE]})\\s*$`),l("STAR","(<|>)?=?\\s*\\*"),l("GTE0","^\\s*>=\\s*0.0.0\\s*$"),l("GTE0PRE","^\\s*>=\\s*0.0.0-0\\s*$")},53788:(e,t,r)=>{const n=r(16791);e.exports=(e,t,r)=>(e=new n(e,r),t=new n(t,r),e.intersects(t))},55446:(e,t,r)=>{const n=r(848);e.exports=(e,t)=>{const r=n(e.trim().replace(/^[=v]+/,""),t);return r?r.version:null}},58944:(e,t,r)=>{const n=Symbol("SemVer ANY");class o{static get ANY(){return n}constructor(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof o){if(e.loose===!!t.loose)return e;e=e.value}c("comparator",e,t),this.options=t,this.loose=!!t.loose,this.parse(e),this.semver===n?this.value="":this.value=this.operator+this.semver.version,c("comp",this)}parse(e){const t=this.options.loose?s[i.COMPARATORLOOSE]:s[i.COMPARATOR],r=e.match(t);if(!r)throw new TypeError(`Invalid comparator: ${e}`);this.operator=void 0!==r[1]?r[1]:"","="===this.operator&&(this.operator=""),r[2]?this.semver=new l(r[2],this.options.loose):this.semver=n}toString(){return this.value}test(e){if(c("Comparator.test",e,this.options.loose),this.semver===n||e===n)return!0;if("string"==typeof e)try{e=new l(e,this.options)}catch(e){return!1}return a(e,this.operator,this.semver,this.options)}intersects(e,t){if(!(e instanceof o))throw new TypeError("a Comparator is required");if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),""===this.operator)return""===this.value||new p(e.value,t).test(this.value);if(""===e.operator)return""===e.value||new p(this.value,t).test(e.semver);const r=!(">="!==this.operator&&">"!==this.operator||">="!==e.operator&&">"!==e.operator),n=!("<="!==this.operator&&"<"!==this.operator||"<="!==e.operator&&"<"!==e.operator),s=this.semver.version===e.semver.version,i=!(">="!==this.operator&&"<="!==this.operator||">="!==e.operator&&"<="!==e.operator),c=a(this.semver,"<",e.semver,t)&&(">="===this.operator||">"===this.operator)&&("<="===e.operator||"<"===e.operator),l=a(this.semver,">",e.semver,t)&&("<="===this.operator||"<"===this.operator)&&(">="===e.operator||">"===e.operator);return r||n||s&&i||c||l}}e.exports=o;const{re:s,t:i}=r(53238),a=r(78943),c=r(61832),l=r(65476),p=r(16791)},59646:(e,t,r)=>{const n=r(65476);e.exports=(e,t)=>new n(e,t).minor},60259:(e,t,r)=>{const n=r(64835);e.exports=(e,t,r)=>n(e,t,">",r)},61150:(e,t,r)=>{const n=r(65476),o=r(16791);e.exports=(e,t,r)=>{let s=null,i=null,a=null;try{a=new o(t,r)}catch(e){return null}return e.forEach((e=>{a.test(e)&&(s&&1!==i.compare(e)||(s=e,i=new n(s,r)))})),s}},61832:e=>{const t="object"==typeof process&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...e)=>console.error("SEMVER",...e):()=>{};e.exports=t},64835:(e,t,r)=>{const n=r(65476),o=r(58944),{ANY:s}=o,i=r(16791),a=r(90198),c=r(87404),l=r(6531),p=r(28576),u=r(37785);e.exports=(e,t,r,f)=>{let h,m,d,g,E;switch(e=new n(e,f),t=new i(t,f),r){case">":h=c,m=p,d=l,g=">",E=">=";break;case"<":h=l,m=u,d=c,g="<",E="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(a(e,t,f))return!1;for(let r=0;r<t.set.length;++r){const n=t.set[r];let i=null,a=null;if(n.forEach((e=>{e.semver===s&&(e=new o(">=0.0.0")),i=i||e,a=a||e,h(e.semver,i.semver,f)?i=e:d(e.semver,a.semver,f)&&(a=e)})),i.operator===g||i.operator===E)return!1;if((!a.operator||a.operator===g)&&m(e,a.semver))return!1;if(a.operator===E&&d(e,a.semver))return!1}return!0}},65373:(e,t,r)=>{const n=r(65476);e.exports=(e,t,r)=>{const o=new n(e,r),s=new n(t,r);return o.compare(s)||o.compareBuild(s)}},65476:(e,t,r)=>{const n=r(61832),{MAX_LENGTH:o,MAX_SAFE_INTEGER:s}=r(1754),{re:i,t:a}=r(53238),{compareIdentifiers:c}=r(70803);class l{constructor(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof l){if(e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease)return e;e=e.version}else if("string"!=typeof e)throw new TypeError(`Invalid Version: ${e}`);if(e.length>o)throw new TypeError(`version is longer than ${o} characters`);n("SemVer",e,t),this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease;const r=e.trim().match(t.loose?i[a.LOOSE]:i[a.FULL]);if(!r)throw new TypeError(`Invalid Version: ${e}`);if(this.raw=e,this.major=+r[1],this.minor=+r[2],this.patch=+r[3],this.major>s||this.major<0)throw new TypeError("Invalid major version");if(this.minor>s||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>s||this.patch<0)throw new TypeError("Invalid patch version");r[4]?this.prerelease=r[4].split(".").map((e=>{if(/^[0-9]+$/.test(e)){const t=+e;if(t>=0&&t<s)return t}return e})):this.prerelease=[],this.build=r[5]?r[5].split("."):[],this.format()}format(){return this.version=`${this.major}.${this.minor}.${this.patch}`,this.prerelease.length&&(this.version+=`-${this.prerelease.join(".")}`),this.version}toString(){return this.version}compare(e){if(n("SemVer.compare",this.version,this.options,e),!(e instanceof l)){if("string"==typeof e&&e===this.version)return 0;e=new l(e,this.options)}return e.version===this.version?0:this.compareMain(e)||this.comparePre(e)}compareMain(e){return e instanceof l||(e=new l(e,this.options)),c(this.major,e.major)||c(this.minor,e.minor)||c(this.patch,e.patch)}comparePre(e){if(e instanceof l||(e=new l(e,this.options)),this.prerelease.length&&!e.prerelease.length)return-1;if(!this.prerelease.length&&e.prerelease.length)return 1;if(!this.prerelease.length&&!e.prerelease.length)return 0;let t=0;do{const r=this.prerelease[t],o=e.prerelease[t];if(n("prerelease compare",t,r,o),void 0===r&&void 0===o)return 0;if(void 0===o)return 1;if(void 0===r)return-1;if(r!==o)return c(r,o)}while(++t)}compareBuild(e){e instanceof l||(e=new l(e,this.options));let t=0;do{const r=this.build[t],o=e.build[t];if(n("prerelease compare",t,r,o),void 0===r&&void 0===o)return 0;if(void 0===o)return 1;if(void 0===r)return-1;if(r!==o)return c(r,o)}while(++t)}inc(e,t){switch(e){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",t);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",t);break;case"prepatch":this.prerelease.length=0,this.inc("patch",t),this.inc("pre",t);break;case"prerelease":0===this.prerelease.length&&this.inc("patch",t),this.inc("pre",t);break;case"major":0===this.minor&&0===this.patch&&0!==this.prerelease.length||this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":0===this.patch&&0!==this.prerelease.length||this.minor++,this.patch=0,this.prerelease=[];break;case"patch":0===this.prerelease.length&&this.patch++,this.prerelease=[];break;case"pre":if(0===this.prerelease.length)this.prerelease=[0];else{let e=this.prerelease.length;for(;--e>=0;)"number"==typeof this.prerelease[e]&&(this.prerelease[e]++,e=-2);-1===e&&this.prerelease.push(0)}t&&(this.prerelease[0]===t?isNaN(this.prerelease[1])&&(this.prerelease=[t,0]):this.prerelease=[t,0]);break;default:throw new Error(`invalid increment argument: ${e}`)}return this.format(),this.raw=this.version,this}}e.exports=l},67298:(e,t,r)=>{const n=r(33296);e.exports=(e,t,r)=>n(t,e,r)},70803:e=>{const t=/^[0-9]+$/,r=(e,r)=>{const n=t.test(e),o=t.test(r);return n&&o&&(e=+e,r=+r),e===r?0:n&&!o?-1:o&&!n?1:e<r?-1:1};e.exports={compareIdentifiers:r,rcompareIdentifiers:(e,t)=>r(t,e)}},78943:(e,t,r)=>{const n=r(85857),o=r(89983),s=r(87404),i=r(37785),a=r(6531),c=r(28576);e.exports=(e,t,r,l)=>{switch(t){case"===":return"object"==typeof e&&(e=e.version),"object"==typeof r&&(r=r.version),e===r;case"!==":return"object"==typeof e&&(e=e.version),"object"==typeof r&&(r=r.version),e!==r;case"":case"=":case"==":return n(e,r,l);case"!=":return o(e,r,l);case">":return s(e,r,l);case">=":return i(e,r,l);case"<":return a(e,r,l);case"<=":return c(e,r,l);default:throw new TypeError(`Invalid operator: ${t}`)}}},79420:(e,t,r)=>{const n=r(65476),o=r(16791);e.exports=(e,t,r)=>{let s=null,i=null,a=null;try{a=new o(t,r)}catch(e){return null}return e.forEach((e=>{a.test(e)&&(s&&-1!==i.compare(e)||(s=e,i=new n(s,r)))})),s}},81274:(e,t,r)=>{const n=r(65476);e.exports=(e,t)=>new n(e,t).major},81821:(e,t,r)=>{const n=r(65476);e.exports=(e,t)=>new n(e,t).patch},85857:(e,t,r)=>{const n=r(33296);e.exports=(e,t,r)=>0===n(e,t,r)},86473:(e,t,r)=>{const n=r(848);e.exports=(e,t)=>{const r=n(e,t);return r?r.version:null}},87404:(e,t,r)=>{const n=r(33296);e.exports=(e,t,r)=>n(e,t,r)>0},89983:(e,t,r)=>{const n=r(33296);e.exports=(e,t,r)=>0!==n(e,t,r)},90198:(e,t,r)=>{const n=r(16791);e.exports=(e,t,r)=>{try{t=new n(t,r)}catch(e){return!1}return t.test(e)}},97450:(e,t,r)=>{const n=r(65476),o=r(848),{re:s,t:i}=r(53238);e.exports=(e,t)=>{if(e instanceof n)return e;if("number"==typeof e&&(e=String(e)),"string"!=typeof e)return null;let r=null;if((t=t||{}).rtl){let t;for(;(t=s[i.COERCERTL].exec(e))&&(!r||r.index+r[0].length!==e.length);)r&&t.index+t[0].length===r.index+r[0].length||(r=t),s[i.COERCERTL].lastIndex=t.index+t[1].length+t[2].length;s[i.COERCERTL].lastIndex=-1}else r=e.match(s[i.COERCE]);return null===r?null:o(`${r[2]}.${r[3]||"0"}.${r[4]||"0"}`,t)}},99342:(e,t,r)=>{const n=r(64835);e.exports=(e,t,r)=>n(e,t,"<",r)}}]);