@argusoft/medplat-core 1.0.31 → 1.0.32

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 (199) hide show
  1. package/dist/{AccessRights-DUgY6ewy.js → AccessRights-DBjTQA1-.js} +421 -424
  2. package/dist/AccessRights-DBjTQA1-.js.map +1 -0
  3. package/dist/{AddFeatures-D1sU8RjY.js → AddFeatures-COj4ZTIM.js} +2 -2
  4. package/dist/{AddFeatures-D1sU8RjY.js.map → AddFeatures-COj4ZTIM.js.map} +1 -1
  5. package/dist/AddMenuConfiguration-Creeib5X.js +11223 -0
  6. package/dist/AddMenuConfiguration-Creeib5X.js.map +1 -0
  7. package/dist/AddMenuConfiguration.css +1 -1
  8. package/dist/{BrandsPage-DMw2vT0u-BVhvhc6J.js → BrandsPage-CdcAvaml-ZtVTX6vX.js} +45 -45
  9. package/dist/{BrandsPage-DMw2vT0u-BVhvhc6J.js.map → BrandsPage-CdcAvaml-ZtVTX6vX.js.map} +1 -1
  10. package/dist/{CategoriesPage-D3ihx9Gi-CT58g0ry.js → CategoriesPage-BprQEYJw-CclreTv1.js} +43 -43
  11. package/dist/{CategoriesPage-D3ihx9Gi-CT58g0ry.js.map → CategoriesPage-BprQEYJw-CclreTv1.js.map} +1 -1
  12. package/dist/{ChangePasswordModalCore-lQ9GamH1.js → ChangePasswordModalCore-DZGOkbRY.js} +3 -3
  13. package/dist/{ChangePasswordModalCore-lQ9GamH1.js.map → ChangePasswordModalCore-DZGOkbRY.js.map} +1 -1
  14. package/dist/{ConditionConfig-BQBmBHaM.js → ConditionConfig-Bpm6OoV5.js} +3 -3
  15. package/dist/{ConditionConfig-BQBmBHaM.js.map → ConditionConfig-Bpm6OoV5.js.map} +1 -1
  16. package/dist/{DashboardPage-asr2XDRu-uOOlX9Vq.js → DashboardPage-CTiGSx71-CsYohJ5e.js} +29 -29
  17. package/dist/{DashboardPage-asr2XDRu-uOOlX9Vq.js.map → DashboardPage-CTiGSx71-CsYohJ5e.js.map} +1 -1
  18. package/dist/EntityManagement-BGwJGl9k.js +62 -0
  19. package/dist/EntityManagement-BGwJGl9k.js.map +1 -0
  20. package/dist/{EventConfigurations-CUPEN5BV.js → EventConfigurations-B-z7xHh_.js} +3 -3
  21. package/dist/{EventConfigurations-CUPEN5BV.js.map → EventConfigurations-B-z7xHh_.js.map} +1 -1
  22. package/dist/{EventsExceptionModal-BX-ArkBE.js → EventsExceptionModal-DafomIv6.js} +2 -2
  23. package/dist/{EventsExceptionModal-BX-ArkBE.js.map → EventsExceptionModal-DafomIv6.js.map} +1 -1
  24. package/dist/{EventsUi-D6O9S7BK.js → EventsUi-Dl_yckSA.js} +37 -32
  25. package/dist/EventsUi-Dl_yckSA.js.map +1 -0
  26. package/dist/FacilityPicker-BXa2VF7i-Dab_Jwa5.js +112 -0
  27. package/dist/FacilityPicker-BXa2VF7i-Dab_Jwa5.js.map +1 -0
  28. package/dist/{FeatureMenu-CHsBbw3W.js → FeatureMenu-Kc73yPHH.js} +2 -2
  29. package/dist/{FeatureMenu-CHsBbw3W.js.map → FeatureMenu-Kc73yPHH.js.map} +1 -1
  30. package/dist/{FhirServerList-iXBPkRVF.js → FhirServerList-CrIHMAxz.js} +19 -19
  31. package/dist/{FhirServerList-iXBPkRVF.js.map → FhirServerList-CrIHMAxz.js.map} +1 -1
  32. package/dist/{FhirServerProfile-CUOwC6Wb.js → FhirServerProfile-D3aYcpwY.js} +8 -8
  33. package/dist/{FhirServerProfile-CUOwC6Wb.js.map → FhirServerProfile-D3aYcpwY.js.map} +1 -1
  34. package/dist/{FhirServerWizard-DZI8Olku.js → FhirServerWizard-Db6Hm4bQ.js} +15 -15
  35. package/dist/{FhirServerWizard-DZI8Olku.js.map → FhirServerWizard-Db6Hm4bQ.js.map} +1 -1
  36. package/dist/{ImmunizationConfigurationBase-aUtx0JEe.js → ImmunizationConfigurationBase-lKsJZMak.js} +1342 -1301
  37. package/dist/ImmunizationConfigurationBase-lKsJZMak.js.map +1 -0
  38. package/dist/InventoryPage-JadYMCzU-CzJQfQ2A.js +1017 -0
  39. package/dist/InventoryPage-JadYMCzU-CzJQfQ2A.js.map +1 -0
  40. package/dist/LocationWiseExpectedTargetPage-CjKk1aTF.js +1344 -0
  41. package/dist/LocationWiseExpectedTargetPage-CjKk1aTF.js.map +1 -0
  42. package/dist/{ManageDynamicFeature-BU0I45dd.js → ManageDynamicFeature-CuyYfx_P.js} +104 -97
  43. package/dist/ManageDynamicFeature-CuyYfx_P.js.map +1 -0
  44. package/dist/{ManageEventConfiguration-DqW3krT6.js → ManageEventConfiguration-DqPbn3Oi.js} +5 -5
  45. package/dist/{ManageEventConfiguration-DqW3krT6.js.map → ManageEventConfiguration-DqPbn3Oi.js.map} +1 -1
  46. package/dist/ManageRole-CyfpySt9.js +981 -0
  47. package/dist/ManageRole-CyfpySt9.js.map +1 -0
  48. package/dist/{ManageUser-DZltBina.js → ManageUser-Dm0l833u.js} +172 -172
  49. package/dist/{ManageUser-DZltBina.js.map → ManageUser-Dm0l833u.js.map} +1 -1
  50. package/dist/{MemberProfileCard-D5CgkTdJ-D2NgDJl3.js → MemberProfileCard-01d_jz3w-DYHtbgMX.js} +37 -37
  51. package/dist/{MemberProfileCard-D5CgkTdJ-D2NgDJl3.js.map → MemberProfileCard-01d_jz3w-DYHtbgMX.js.map} +1 -1
  52. package/dist/MobileAnalytics-C9oc2yAo.js +18399 -0
  53. package/dist/MobileAnalytics-C9oc2yAo.js.map +1 -0
  54. package/dist/MobileMenuManagement-BmzTPXy7.js +231 -0
  55. package/dist/MobileMenuManagement-BmzTPXy7.js.map +1 -0
  56. package/dist/{MobileTypeEventConfigModal-CMcj7Ozp.js → MobileTypeEventConfigModal-DodU3beR.js} +3 -3
  57. package/dist/{MobileTypeEventConfigModal-CMcj7Ozp.js.map → MobileTypeEventConfigModal-DodU3beR.js.map} +1 -1
  58. package/dist/{NewServerManagement-Cxe0dV0O.js → NewServerManagement-BdayO78D.js} +368 -352
  59. package/dist/NewServerManagement-BdayO78D.js.map +1 -0
  60. package/dist/OtherTypeEventConfigModal-D_9S50aI.js +1414 -0
  61. package/dist/OtherTypeEventConfigModal-D_9S50aI.js.map +1 -0
  62. package/dist/{PaymentCreatePage-DfvSZ-kB-CckogYoe.js → PaymentCreatePage-D6NZBUC3-DxXf2kvH.js} +56 -56
  63. package/dist/{PaymentCreatePage-DfvSZ-kB-CckogYoe.js.map → PaymentCreatePage-D6NZBUC3-DxXf2kvH.js.map} +1 -1
  64. package/dist/{PaymentsPage-DMNjYWAJ-ChO9IXmk.js → PaymentsPage-CHieGNrn-BnYCtqHd.js} +38 -38
  65. package/dist/{PaymentsPage-DMNjYWAJ-ChO9IXmk.js.map → PaymentsPage-CHieGNrn-BnYCtqHd.js.map} +1 -1
  66. package/dist/{PermissionsModal-CCYkcKlC.js → PermissionsModal-Dxbkkrqe.js} +18 -18
  67. package/dist/PermissionsModal-Dxbkkrqe.js.map +1 -0
  68. package/dist/{PickupBatchLinesEditor-CE2RuyJT-BPceiJr8.js → PickupBatchLinesEditor-QPaqFtUO-CY7BShYh.js} +2 -2
  69. package/dist/{PickupBatchLinesEditor-CE2RuyJT-BPceiJr8.js.map → PickupBatchLinesEditor-QPaqFtUO-CY7BShYh.js.map} +1 -1
  70. package/dist/PickupCreatePage-C7_67u_u-OId8-e2a.js +801 -0
  71. package/dist/PickupCreatePage-C7_67u_u-OId8-e2a.js.map +1 -0
  72. package/dist/{PickupsPage-D7zyioJB-bHKnARYw.js → PickupsPage-BWblMlic-CWkgeBw0.js} +122 -122
  73. package/dist/PickupsPage-BWblMlic-CWkgeBw0.js.map +1 -0
  74. package/dist/PmGuard-BvUUbU80-BpYNaDzl.js +641 -0
  75. package/dist/PmGuard-BvUUbU80-BpYNaDzl.js.map +1 -0
  76. package/dist/ProductEditPage-Dbq4vUAA-BoBmTPPL.js +1523 -0
  77. package/dist/ProductEditPage-Dbq4vUAA-BoBmTPPL.js.map +1 -0
  78. package/dist/{ProductsPage-DvNHIeZt-BoOOJJtk.js → ProductsPage-BI22nPb4-CQBjnc-n.js} +29 -29
  79. package/dist/{ProductsPage-DvNHIeZt-BoOOJJtk.js.map → ProductsPage-BI22nPb4-CQBjnc-n.js.map} +1 -1
  80. package/dist/PurchaseCreatePage-C0EK9z4w-BQMTsjE7.js +724 -0
  81. package/dist/PurchaseCreatePage-C0EK9z4w-BQMTsjE7.js.map +1 -0
  82. package/dist/{PurchaseRequestDetailPage-CA9KFOfE-CtjG4Gx6.js → PurchaseRequestDetailPage-DhBuOGHZ-CWZPqzt9.js} +446 -436
  83. package/dist/PurchaseRequestDetailPage-DhBuOGHZ-CWZPqzt9.js.map +1 -0
  84. package/dist/{PurchaseRequestsPage-DS9i4o0--TpoxA5Kd.js → PurchaseRequestsPage-Bj9HUMxb-B7-AxT8m.js} +55 -55
  85. package/dist/{PurchaseRequestsPage-DS9i4o0--TpoxA5Kd.js.map → PurchaseRequestsPage-Bj9HUMxb-B7-AxT8m.js.map} +1 -1
  86. package/dist/{PurchasesPage-DgL5T6BY-DePUuE9l.js → PurchasesPage-Djl1AqD_-DXeYFMrX.js} +61 -61
  87. package/dist/{PurchasesPage-DgL5T6BY-DePUuE9l.js.map → PurchasesPage-Djl1AqD_-DXeYFMrX.js.map} +1 -1
  88. package/dist/{RoleManagement-s8iNx2Mu.js → RoleManagement-DVYufwy-.js} +3 -3
  89. package/dist/{RoleManagement-s8iNx2Mu.js.map → RoleManagement-DVYufwy-.js.map} +1 -1
  90. package/dist/Roles-BoNGJhtR.js +19 -0
  91. package/dist/Roles-BoNGJhtR.js.map +1 -0
  92. package/dist/{SaleCreatePage-CZnIOydv-DKBw-qp7.js → SaleCreatePage-DHBLmlBr-BlgjVsq6.js} +33 -33
  93. package/dist/{SaleCreatePage-CZnIOydv-DKBw-qp7.js.map → SaleCreatePage-DHBLmlBr-BlgjVsq6.js.map} +1 -1
  94. package/dist/{SalesPage-DPIRrC_O-M8rqnK7z.js → SalesPage-eF9Yr42z-BQ9FlXC3.js} +34 -34
  95. package/dist/SalesPage-eF9Yr42z-BQ9FlXC3.js.map +1 -0
  96. package/dist/SettingsPage-Cre-UE3r-9ntnLYsQ.js +741 -0
  97. package/dist/SettingsPage-Cre-UE3r-9ntnLYsQ.js.map +1 -0
  98. package/dist/{StorageUnitsPage-BDRkdCjW-UF64rf7q.js → StorageUnitsPage-CTEVuemZ-B4osG74N.js} +213 -190
  99. package/dist/StorageUnitsPage-CTEVuemZ-B4osG74N.js.map +1 -0
  100. package/dist/{SubMenu-BdMTYtC1.js → SubMenu-OO2zhKiu.js} +2 -2
  101. package/dist/{SubMenu-BdMTYtC1.js.map → SubMenu-OO2zhKiu.js.map} +1 -1
  102. package/dist/{TableDetails-BtafRxXb.js → TableDetails-Cc40dEUs.js} +272 -267
  103. package/dist/TableDetails-Cc40dEUs.js.map +1 -0
  104. package/dist/{TableList-Dpo6dO7S.js → TableList-B5tX4wII.js} +316 -312
  105. package/dist/TableList-B5tX4wII.js.map +1 -0
  106. package/dist/{TransactionsPage-CqWTMNU8-Df6eGFDW.js → TransactionsPage-Zuu7sjID-B-ACzvd1.js} +185 -170
  107. package/dist/TransactionsPage-Zuu7sjID-B-ACzvd1.js.map +1 -0
  108. package/dist/TransferCreatePage-DlT0nCDj-B2SdPgYB.js +635 -0
  109. package/dist/TransferCreatePage-DlT0nCDj-B2SdPgYB.js.map +1 -0
  110. package/dist/TransfersPage-DqaSvHda-G2tFa5Jq.js +600 -0
  111. package/dist/TransfersPage-DqaSvHda-G2tFa5Jq.js.map +1 -0
  112. package/dist/{TypeConfiguration-JbRCN6GR.js → TypeConfiguration-EaFiOzRE.js} +3 -3
  113. package/dist/{TypeConfiguration-JbRCN6GR.js.map → TypeConfiguration-EaFiOzRE.js.map} +1 -1
  114. package/dist/UserList-Cf5B-o_1.js +1904 -0
  115. package/dist/UserList-Cf5B-o_1.js.map +1 -0
  116. package/dist/Users-MC7txo1V.js +43 -0
  117. package/dist/{Users-CsJ08Kjm.js.map → Users-MC7txo1V.js.map} +1 -1
  118. package/dist/VaccineEducation-T_UE57Ef.js +231 -0
  119. package/dist/VaccineEducation-T_UE57Ef.js.map +1 -0
  120. package/dist/VaccineEducation.css +1 -0
  121. package/dist/VaccineEducationConfigurator-CWc20_rv.js +50948 -0
  122. package/dist/VaccineEducationConfigurator-CWc20_rv.js.map +1 -0
  123. package/dist/VaccineEducationConfigurator.css +4 -0
  124. package/dist/VaccineEducationList-Ok7_5EFb.js +334 -0
  125. package/dist/VaccineEducationList-Ok7_5EFb.js.map +1 -0
  126. package/dist/VialsPage-LoDaUqVv-DmMXbK8j.js +457 -0
  127. package/dist/VialsPage-LoDaUqVv-DmMXbK8j.js.map +1 -0
  128. package/dist/{constants-DpXnLsAB-D6lN5cjK.js → constants-BTpJFQe_-CYPZIqQF.js} +160 -61
  129. package/dist/constants-BTpJFQe_-CYPZIqQF.js.map +1 -0
  130. package/dist/dashboardLayoutUtils--xUnoKPa.js +615 -0
  131. package/dist/dashboardLayoutUtils--xUnoKPa.js.map +1 -0
  132. package/dist/index-mfoqII2U.js +524 -0
  133. package/dist/index-mfoqII2U.js.map +1 -0
  134. package/dist/{index-D9YNFPn9.js → index-o8Pyt1Bt.js} +445 -439
  135. package/dist/index-o8Pyt1Bt.js.map +1 -0
  136. package/dist/index.css +1 -1
  137. package/dist/index.js +1 -1
  138. package/dist/{index.lib-ETRQOzvE.js → index.lib-BySa9-Z-.js} +302 -260
  139. package/dist/index.lib-BySa9-Z-.js.map +1 -0
  140. package/dist/listValueStore-5d4vNGQM-WclZ5nBG.js +43 -0
  141. package/dist/listValueStore-5d4vNGQM-WclZ5nBG.js.map +1 -0
  142. package/package.json +5 -1
  143. package/dist/AccessRights-DUgY6ewy.js.map +0 -1
  144. package/dist/AddMenuConfiguration-c6ZKiN0i.js +0 -8898
  145. package/dist/AddMenuConfiguration-c6ZKiN0i.js.map +0 -1
  146. package/dist/EntityManagement-CPQL6qBj.js +0 -50
  147. package/dist/EntityManagement-CPQL6qBj.js.map +0 -1
  148. package/dist/EventsUi-D6O9S7BK.js.map +0 -1
  149. package/dist/FacilityPicker-DYl_PDyt-Cbwo2tAY.js +0 -79
  150. package/dist/FacilityPicker-DYl_PDyt-Cbwo2tAY.js.map +0 -1
  151. package/dist/ImmunizationConfigurationBase-aUtx0JEe.js.map +0 -1
  152. package/dist/InventoryPage-DOotGZrj-CoPjOJEI.js +0 -665
  153. package/dist/InventoryPage-DOotGZrj-CoPjOJEI.js.map +0 -1
  154. package/dist/ManageDynamicFeature-BU0I45dd.js.map +0 -1
  155. package/dist/ManageRole-CNZBRKGU.js +0 -776
  156. package/dist/ManageRole-CNZBRKGU.js.map +0 -1
  157. package/dist/MobileAnalytics-BLOionG_.js +0 -17301
  158. package/dist/MobileAnalytics-BLOionG_.js.map +0 -1
  159. package/dist/MobileMenuManagement-68Wijb0X.js +0 -220
  160. package/dist/MobileMenuManagement-68Wijb0X.js.map +0 -1
  161. package/dist/NewServerManagement-Cxe0dV0O.js.map +0 -1
  162. package/dist/OtherTypeEventConfigModal-stNmuSv_.js +0 -1812
  163. package/dist/OtherTypeEventConfigModal-stNmuSv_.js.map +0 -1
  164. package/dist/PermissionsModal-CCYkcKlC.js.map +0 -1
  165. package/dist/PickupCreatePage-B4O_-vE5-DoOo9nJO.js +0 -783
  166. package/dist/PickupCreatePage-B4O_-vE5-DoOo9nJO.js.map +0 -1
  167. package/dist/PickupsPage-D7zyioJB-bHKnARYw.js.map +0 -1
  168. package/dist/PmGuard-BZE-y4In-D_pUm5MP.js +0 -599
  169. package/dist/PmGuard-BZE-y4In-D_pUm5MP.js.map +0 -1
  170. package/dist/ProductEditPage-BVlVUCtD-BR-tJ5Wb.js +0 -1305
  171. package/dist/ProductEditPage-BVlVUCtD-BR-tJ5Wb.js.map +0 -1
  172. package/dist/PurchaseCreatePage-Cq_i9snz-DRtHHFWw.js +0 -675
  173. package/dist/PurchaseCreatePage-Cq_i9snz-DRtHHFWw.js.map +0 -1
  174. package/dist/PurchaseRequestDetailPage-CA9KFOfE-CtjG4Gx6.js.map +0 -1
  175. package/dist/Roles-BIyiic67.js +0 -14
  176. package/dist/Roles-BIyiic67.js.map +0 -1
  177. package/dist/SalesPage-DPIRrC_O-M8rqnK7z.js.map +0 -1
  178. package/dist/SettingsPage-BC_R6Z-Q-CKNt9zRu.js +0 -676
  179. package/dist/SettingsPage-BC_R6Z-Q-CKNt9zRu.js.map +0 -1
  180. package/dist/StorageUnitsPage-BDRkdCjW-UF64rf7q.js.map +0 -1
  181. package/dist/TableDetails-BtafRxXb.js.map +0 -1
  182. package/dist/TableList-Dpo6dO7S.js.map +0 -1
  183. package/dist/TransactionsPage-CqWTMNU8-Df6eGFDW.js.map +0 -1
  184. package/dist/TransferCreatePage-DF7FZaTJ-CL79V3aR.js +0 -315
  185. package/dist/TransferCreatePage-DF7FZaTJ-CL79V3aR.js.map +0 -1
  186. package/dist/TransfersPage-CGrRFaBF-cTwBUv0o.js +0 -476
  187. package/dist/TransfersPage-CGrRFaBF-cTwBUv0o.js.map +0 -1
  188. package/dist/UserList-L41Xw0Q6.js +0 -1129
  189. package/dist/UserList-L41Xw0Q6.js.map +0 -1
  190. package/dist/Users-CsJ08Kjm.js +0 -40
  191. package/dist/VialsPage-rvvXjgZG-Oqo1v6kQ.js +0 -321
  192. package/dist/VialsPage-rvvXjgZG-Oqo1v6kQ.js.map +0 -1
  193. package/dist/constants-DpXnLsAB-D6lN5cjK.js.map +0 -1
  194. package/dist/dashboardLayoutUtils-CJivzaU1.js +0 -408
  195. package/dist/dashboardLayoutUtils-CJivzaU1.js.map +0 -1
  196. package/dist/index-D9YNFPn9.js.map +0 -1
  197. package/dist/index.lib-ETRQOzvE.js.map +0 -1
  198. package/dist/listValueStore-BFQtDYIR-Bj0yX145.js +0 -36
  199. package/dist/listValueStore-BFQtDYIR-Bj0yX145.js.map +0 -1
@@ -0,0 +1,524 @@
1
+ import d, { memo as S, forwardRef as m, useRef as g, useEffect as _ } from "react";
2
+ function x() {
3
+ const e = {
4
+ resolve: null,
5
+ promise: null
6
+ };
7
+ return e.promise = new Promise((t) => {
8
+ e.resolve = t;
9
+ }), e;
10
+ }
11
+ function D(e) {
12
+ let t = null;
13
+ return (...n) => (t || (t = {
14
+ current: e(...n)
15
+ }), t.current);
16
+ }
17
+ const c = new Array(256).fill("").map((e, t) => ("0" + t.toString(16)).slice(-2));
18
+ function M() {
19
+ const [e, t, n, r] = crypto.getRandomValues(new Uint32Array(4));
20
+ return "e" + c[e >> 0 & 255] + c[e >> 8 & 255] + c[e >> 16 & 255] + c[e >> 24 & 255] + c[t >> 0 & 255] + c[t >> 8 & 255] + c[t >> 16 & 255] + c[t >> 24 & 255] + c[n >> 0 & 255] + c[n >> 8 & 255] + c[n >> 16 & 255] + c[n >> 24 & 255] + c[r >> 0 & 255] + c[r >> 8 & 255] + c[r >> 16 & 255] + c[r >> 24 & 255];
21
+ }
22
+ function E(e) {
23
+ return !!e && /^\d+\.\d+\.\d+/.test(e);
24
+ }
25
+ function W(e) {
26
+ if (!E(e))
27
+ throw new Error(`Invalid semantic version: ${e || "<blank>"}.`);
28
+ const [t, n, r] = e.split(".");
29
+ return {
30
+ major: Number.parseInt(t, 10),
31
+ minor: Number.parseInt(n, 10),
32
+ patch: Number.parseInt(r, 10)
33
+ };
34
+ }
35
+ function y(e) {
36
+ return e ? ["nightly", "alpha", "internal", "nightly-", "staging"].some((t) => e.includes(t)) : !1;
37
+ }
38
+ function L(e) {
39
+ return E(e) || y(e);
40
+ }
41
+ function V(e, t) {
42
+ const n = e.extraPlugins || [];
43
+ return {
44
+ ...e,
45
+ extraPlugins: [
46
+ ...n,
47
+ ...t.filter((r) => !n.includes(r))
48
+ ]
49
+ };
50
+ }
51
+ function T(e) {
52
+ if (y(e))
53
+ return 3;
54
+ const { major: t } = W(e);
55
+ switch (!0) {
56
+ case t >= 44:
57
+ return 3;
58
+ case t >= 38:
59
+ return 2;
60
+ default:
61
+ return 1;
62
+ }
63
+ }
64
+ function k() {
65
+ const { CKEDITOR_VERSION: e, CKEDITOR: t } = window;
66
+ return L(e) ? {
67
+ source: t ? "cdn" : "npm",
68
+ version: e
69
+ } : null;
70
+ }
71
+ function K() {
72
+ const e = k();
73
+ return e ? T(e.version) : null;
74
+ }
75
+ function C(e, t) {
76
+ switch (t || (t = K() || void 0), t) {
77
+ case 1:
78
+ case 2:
79
+ return e === void 0;
80
+ case 3:
81
+ return e === "GPL";
82
+ default:
83
+ return !1;
84
+ }
85
+ }
86
+ function P(e, t) {
87
+ return function(r) {
88
+ C(r.config.get("licenseKey")) || r.on("collectUsageData", (i, { setUsageData: s }) => {
89
+ s(`integration.${e}`, t);
90
+ });
91
+ };
92
+ }
93
+ var O = Object.defineProperty, A = (e, t, n) => t in e ? O(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, u = (e, t, n) => A(e, typeof t != "symbol" ? t + "" : t, n);
94
+ /**
95
+ * @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
96
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
97
+ */
98
+ const w = class v {
99
+ constructor(t, n) {
100
+ u(this, "_lifecycle"), u(this, "_element"), u(this, "_releaseLock", null), u(this, "_value", null), u(this, "_afterMountCallbacks", []), u(this, "_state", {
101
+ destroyedBeforeInitialization: !1,
102
+ mountingInProgress: null
103
+ }), u(this, "release", D(() => {
104
+ const { _releaseLock: r, _state: i, _element: s, _lifecycle: o } = this;
105
+ i.mountingInProgress ? i.mountingInProgress.then(() => o.unmount({
106
+ element: s,
107
+ // Mount result might be overridden by watchdog during restart so use instance variable.
108
+ mountResult: this.value
109
+ })).catch((a) => {
110
+ console.error("Semaphore unmounting error:", a);
111
+ }).then(r.resolve).then(() => {
112
+ this._value = null;
113
+ }) : (i.destroyedBeforeInitialization = !0, r.resolve());
114
+ })), this._element = t, this._lifecycle = n, this._lock();
115
+ }
116
+ /**
117
+ * Getter for {@link #_value}.
118
+ */
119
+ get value() {
120
+ return this._value;
121
+ }
122
+ /**
123
+ * Occasionally, the Watchdog restarts the editor instance, resulting in a new instance being assigned to the semaphore.
124
+ * In terms of race conditions, it's generally safer to simply override the semaphore value rather than recreating it
125
+ * with a different one.
126
+ */
127
+ unsafeSetValue(t) {
128
+ this._value = t, this._afterMountCallbacks.forEach((n) => n(t)), this._afterMountCallbacks = [];
129
+ }
130
+ /**
131
+ * This registers a callback that will be triggered after the editor has been successfully mounted.
132
+ *
133
+ * * If the editor is already mounted, the callback will be executed immediately.
134
+ * * If the editor is in the process of mounting, the callback will be executed upon successful mounting.
135
+ * * If the editor is never mounted, the passed callback will not be executed.
136
+ * * If an exception is thrown within the callback, it will be re-thrown in the semaphore.
137
+ */
138
+ runAfterMount(t) {
139
+ const { _value: n, _afterMountCallbacks: r } = this;
140
+ n ? t(n) : r.push(t);
141
+ }
142
+ /**
143
+ * This method is used to inform other components that the {@link #_element} will be used by the editor,
144
+ * which is initialized by the {@link #_lifecycle} methods.
145
+ *
146
+ * * If an editor is already present on the provided element, the initialization of the current one
147
+ * will be postponed until the previous one is destroyed.
148
+ *
149
+ * * If the element is empty and does not have an editor attached to it, the currently locked editor will
150
+ * be mounted immediately.
151
+ *
152
+ * After the successful initialization of the editor and the assignment of the {@link #_value} member,
153
+ * the `onReady` lifecycle method is called.
154
+ *
155
+ * *Important note:*
156
+ *
157
+ * It’s really important to keep this method *sync*. If we make this method *async*, it won’t work well because
158
+ * it will cause problems when we’re trying to set up the {@link LifeCycleEditorElementSemaphore#_semaphores} map entries.
159
+ */
160
+ _lock() {
161
+ const { _semaphores: t } = v, { _state: n, _element: r, _lifecycle: i } = this, s = t.get(r) || Promise.resolve(null), o = x();
162
+ this._releaseLock = o;
163
+ const a = s.then(() => n.destroyedBeforeInitialization ? Promise.resolve(void 0) : (n.mountingInProgress = i.mount().then((l) => (l && this.unsafeSetValue(l), l)), n.mountingInProgress)).then(async (l) => {
164
+ l && i.afterMount && await i.afterMount({
165
+ element: r,
166
+ mountResult: l
167
+ });
168
+ }).then(() => o.promise).catch((l) => {
169
+ console.error("Semaphore mounting error:", l);
170
+ }).then(() => {
171
+ t.get(r) === a && t.delete(r);
172
+ });
173
+ t.set(r, a);
174
+ }
175
+ };
176
+ u(w, "_semaphores", /* @__PURE__ */ new Map());
177
+ let U = w;
178
+ /**
179
+ * @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
180
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
181
+ */
182
+ const z = "$__CKEditorReactContextMetadata";
183
+ function N(e, t) {
184
+ return {
185
+ ...t,
186
+ [z]: e
187
+ };
188
+ }
189
+ /**
190
+ * @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
191
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
192
+ */
193
+ const B = d.createContext(null), F = (e) => !!e && typeof e == "object" && "status" in e && ["initializing", "initialized", "error"].includes(e.status), R = (e) => (t) => F(t) && t.status === e, p = R("initializing"), $ = (e) => R("initialized")(e) && e.watchdog.state === "ready";
194
+ /**
195
+ * @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
196
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
197
+ */
198
+ const G = P(
199
+ "react",
200
+ {
201
+ version: "9.5.0",
202
+ frameworkVersion: d.version
203
+ }
204
+ );
205
+ /**
206
+ * @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
207
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
208
+ */
209
+ function H(e) {
210
+ return C(e.licenseKey) ? e : V(e, [
211
+ /**
212
+ * This part of the code is not executed in open-source implementations using a GPL key.
213
+ * It only runs when a specific license key is provided. If you are uncertain whether
214
+ * this applies to your installation, please contact our support team.
215
+ */
216
+ G
217
+ ]);
218
+ }
219
+ /**
220
+ * @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
221
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
222
+ */
223
+ const h = "Lock from React integration (@ckeditor/ckeditor5-react)";
224
+ class q extends d.Component {
225
+ constructor(t) {
226
+ super(t), u(this, "domContainer", d.createRef()), u(this, "editorSemaphore", null), this._checkVersion();
227
+ }
228
+ /**
229
+ * Checks if the CKEditor version used in the application is compatible with the component.
230
+ */
231
+ _checkVersion() {
232
+ const { CKEDITOR_VERSION: t } = window;
233
+ if (!t)
234
+ return console.warn('Cannot find the "CKEDITOR_VERSION" in the "window" scope.');
235
+ const [n] = t.split(".").map(Number);
236
+ n >= 42 || t.startsWith("0.0.0") || console.warn("The <CKEditor> component requires using CKEditor 5 in version 42+ or nightly build.");
237
+ }
238
+ get _semaphoreValue() {
239
+ const { editorSemaphore: t } = this;
240
+ return t ? t.value : null;
241
+ }
242
+ /**
243
+ * An watchdog instance.
244
+ */
245
+ get watchdog() {
246
+ const { _semaphoreValue: t } = this;
247
+ return t ? t.watchdog : null;
248
+ }
249
+ /**
250
+ * An editor instance.
251
+ */
252
+ get editor() {
253
+ const { _semaphoreValue: t } = this;
254
+ return t ? t.instance : null;
255
+ }
256
+ /**
257
+ * The CKEditor component should not be updated by React itself.
258
+ * However, if the component identifier changes, the whole structure should be created once again.
259
+ */
260
+ shouldComponentUpdate(t) {
261
+ const { props: n, editorSemaphore: r } = this;
262
+ return t.id !== n.id || t.disableWatchdog !== n.disableWatchdog ? !0 : (r && (r.runAfterMount(({ instance: i }) => {
263
+ this._shouldUpdateEditorData(n, t, i) && i.data.set(t.data);
264
+ }), "disabled" in t && r.runAfterMount(({ instance: i }) => {
265
+ t.disabled ? i.enableReadOnlyMode(h) : i.disableReadOnlyMode(h);
266
+ })), !1);
267
+ }
268
+ /**
269
+ * Initialize the editor when the component is mounted.
270
+ */
271
+ componentDidMount() {
272
+ p(this.context) || this._initLifeCycleSemaphore();
273
+ }
274
+ /**
275
+ * Re-render the entire component once again. The old editor will be destroyed and the new one will be created.
276
+ */
277
+ componentDidUpdate() {
278
+ p(this.context) || this._initLifeCycleSemaphore();
279
+ }
280
+ /**
281
+ * Destroy the editor before unmounting the component.
282
+ */
283
+ componentWillUnmount() {
284
+ this._unlockLifeCycleSemaphore();
285
+ }
286
+ /**
287
+ * Async destroy attached editor and unlock element semaphore.
288
+ */
289
+ _unlockLifeCycleSemaphore() {
290
+ this.editorSemaphore && (this.editorSemaphore.release(), this.editorSemaphore = null);
291
+ }
292
+ /**
293
+ * Unlocks previous editor semaphore and creates new one..
294
+ */
295
+ _initLifeCycleSemaphore() {
296
+ this._unlockLifeCycleSemaphore(), this.editorSemaphore = new U(this.domContainer.current, {
297
+ mount: async () => this._initializeEditor(),
298
+ afterMount: ({ mountResult: t }) => {
299
+ const { onReady: n } = this.props;
300
+ n && this.domContainer.current !== null && n(t.instance);
301
+ },
302
+ unmount: async ({ element: t, mountResult: n }) => {
303
+ const { onAfterDestroy: r } = this.props;
304
+ try {
305
+ await this._destroyEditor(n), t.innerHTML = "";
306
+ } finally {
307
+ r && r(n.instance);
308
+ }
309
+ }
310
+ });
311
+ }
312
+ /**
313
+ * Render a <div> element which will be replaced by CKEditor.
314
+ */
315
+ render() {
316
+ return /* @__PURE__ */ d.createElement("div", { ref: this.domContainer });
317
+ }
318
+ /**
319
+ * Initializes the editor by creating a proper watchdog and initializing it with the editor's configuration.
320
+ */
321
+ async _initializeEditor() {
322
+ if (this.props.disableWatchdog)
323
+ return {
324
+ instance: await this._createEditor(this.domContainer.current, this._getConfig()),
325
+ watchdog: null
326
+ };
327
+ const t = $(this.context) ? new X(this.context.watchdog) : new this.props.editor.EditorWatchdog(this.props.editor, this.props.watchdogConfig), n = {
328
+ current: 0
329
+ };
330
+ return t.setCreator(async (r, i) => {
331
+ var s;
332
+ const { editorSemaphore: o } = this, { onAfterDestroy: a } = this.props;
333
+ n.current > 0 && a && ((s = o == null ? void 0 : o.value) != null && s.instance) && a(o.value.instance);
334
+ const l = await this._createEditor(r, i);
335
+ return o && n.current > 0 && (o.unsafeSetValue({
336
+ instance: l,
337
+ watchdog: t
338
+ }), setTimeout(() => {
339
+ this.props.onReady && this.props.onReady(t.editor);
340
+ })), n.current++, l;
341
+ }), t.on("error", (r, { error: i, causesRestart: s }) => {
342
+ (this.props.onError || console.error)(i, { phase: "runtime", willEditorRestart: s });
343
+ }), await t.create(this.domContainer.current, this._getConfig()).catch((r) => {
344
+ (this.props.onError || console.error)(r, { phase: "initialization", willEditorRestart: !1 });
345
+ }), {
346
+ watchdog: t,
347
+ instance: t.editor
348
+ };
349
+ }
350
+ /**
351
+ * Creates an editor from the element and configuration.
352
+ *
353
+ * @param element The source element.
354
+ * @param config CKEditor 5 editor configuration.
355
+ */
356
+ _createEditor(t, n) {
357
+ const { contextItemMetadata: r } = this.props;
358
+ return r && (n = N(r, n)), this.props.editor.create(
359
+ t,
360
+ H(n)
361
+ ).then((i) => {
362
+ if ("disabled" in this.props) {
363
+ /* istanbul ignore else -- @preserve */
364
+ this.props.disabled && i.enableReadOnlyMode(h);
365
+ }
366
+ const s = i.model.document, o = i.editing.view.document;
367
+ return s.on("change:data", (a) => {
368
+ /* istanbul ignore else -- @preserve */
369
+ this.props.onChange && this.props.onChange(a, i);
370
+ }), o.on("focus", (a) => {
371
+ /* istanbul ignore else -- @preserve */
372
+ this.props.onFocus && this.props.onFocus(a, i);
373
+ }), o.on("blur", (a) => {
374
+ /* istanbul ignore else -- @preserve */
375
+ this.props.onBlur && this.props.onBlur(a, i);
376
+ }), i;
377
+ });
378
+ }
379
+ /**
380
+ * Destroys the editor by destroying the watchdog.
381
+ */
382
+ async _destroyEditor(t) {
383
+ const { watchdog: n, instance: r } = t;
384
+ return new Promise((i, s) => {
385
+ /* istanbul ignore next -- @preserve */
386
+ setTimeout(async () => {
387
+ try {
388
+ if (n)
389
+ return await n.destroy(), i();
390
+ if (r)
391
+ return await r.destroy(), i();
392
+ i();
393
+ } catch (o) {
394
+ console.error(o), s(o);
395
+ }
396
+ });
397
+ });
398
+ }
399
+ /**
400
+ * Returns true when the editor should be updated.
401
+ *
402
+ * @param prevProps Previous react's properties.
403
+ * @param nextProps React's properties.
404
+ * @param editor Current editor instance.
405
+ */
406
+ _shouldUpdateEditorData(t, n, r) {
407
+ return !(t.data === n.data || r.data.get() === n.data);
408
+ }
409
+ /**
410
+ * Returns the editor configuration.
411
+ */
412
+ _getConfig() {
413
+ const t = this.props.config || {};
414
+ return this.props.data && t.initialData && console.warn(
415
+ "Editor data should be provided either using `config.initialData` or `content` property. The config value takes precedence over `content` property and will be used when both are specified."
416
+ ), {
417
+ ...t,
418
+ initialData: t.initialData || this.props.data || ""
419
+ };
420
+ }
421
+ }
422
+ u(q, "contextType", B);
423
+ class X {
424
+ /**
425
+ * @param contextWatchdog The context watchdog instance that will be wrapped into editor watchdog API.
426
+ */
427
+ constructor(t) {
428
+ u(this, "_contextWatchdog"), u(this, "_id"), u(this, "_creator"), this._contextWatchdog = t, this._id = M();
429
+ }
430
+ /**
431
+ * @param creator A watchdog's editor creator function.
432
+ */
433
+ setCreator(t) {
434
+ this._creator = t;
435
+ }
436
+ /**
437
+ * Adds an editor configuration to the context watchdog registry. Creates an instance of it.
438
+ *
439
+ * @param sourceElementOrData A source element or data for the new editor.
440
+ * @param config CKEditor 5 editor config.
441
+ */
442
+ create(t, n) {
443
+ return this._contextWatchdog.add({
444
+ sourceElementOrData: t,
445
+ config: n,
446
+ creator: this._creator,
447
+ id: this._id,
448
+ type: "editor"
449
+ });
450
+ }
451
+ /**
452
+ * Creates a listener that is attached to context watchdog's item and run when the context watchdog fires.
453
+ * Currently works only for the `error` event.
454
+ */
455
+ on(t, n) {
456
+ this._contextWatchdog.on("itemError", (r, { itemId: i, error: s }) => {
457
+ i === this._id && n(null, { error: s, causesRestart: void 0 });
458
+ });
459
+ }
460
+ destroy() {
461
+ return this._contextWatchdog.state === "ready" ? this._contextWatchdog.remove(this._id) : Promise.resolve();
462
+ }
463
+ /**
464
+ * An editor instance.
465
+ */
466
+ get editor() {
467
+ return this._contextWatchdog.getItem(this._id);
468
+ }
469
+ }
470
+ /**
471
+ * @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
472
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
473
+ */
474
+ function b(...e) {
475
+ return (t) => {
476
+ e.forEach((n) => {
477
+ typeof n == "function" ? n(t) : n != null && (n.current = t);
478
+ });
479
+ };
480
+ }
481
+ const Y = S(m(({ id: e, semaphore: t, rootName: n }, r) => {
482
+ const i = g(null);
483
+ return _(() => {
484
+ let s, o;
485
+ return t.runAfterMount(({ instance: a }) => {
486
+ if (!i.current)
487
+ return;
488
+ o = a;
489
+ const { ui: l, model: I } = o, f = I.document.getRoot(n);
490
+ f && o.ui.getEditableElement(n) && o.detachEditable(f), s = l.view.createEditable(n, i.current), l.addEditable(s), a.editing.view.forceRender();
491
+ }), () => {
492
+ if (o && o.state !== "destroyed" && i.current) {
493
+ const a = o.model.document.getRoot(n);
494
+ /* istanbul ignore else -- @preserve */
495
+ a && o.detachEditable(a);
496
+ }
497
+ };
498
+ }, [t.revision]), /* @__PURE__ */ d.createElement(
499
+ "div",
500
+ {
501
+ key: t.revision,
502
+ id: e,
503
+ ref: b(r, i)
504
+ }
505
+ );
506
+ }));
507
+ Y.displayName = "EditorEditable";
508
+ const J = m(({ editor: e }, t) => {
509
+ const n = g(null);
510
+ return _(() => {
511
+ const r = n.current;
512
+ if (!e || !r)
513
+ return;
514
+ const i = e.ui.view.toolbar.element;
515
+ return r.appendChild(i), () => {
516
+ r.contains(i) && r.removeChild(i);
517
+ };
518
+ }, [e && e.id]), /* @__PURE__ */ d.createElement("div", { ref: b(n, t) });
519
+ });
520
+ J.displayName = "EditorToolbarWrapper";
521
+ export {
522
+ q as C
523
+ };
524
+ //# sourceMappingURL=index-mfoqII2U.js.map