@vc-shell/framework 1.1.99-alpha.2 → 1.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (397) hide show
  1. package/core/api/platform.ts +9883 -9883
  2. package/core/composables/useDynamicProperties/index.ts +16 -10
  3. package/core/composables/useNotifications/index.ts +1 -32
  4. package/core/composables/useSettings/index.ts +3 -8
  5. package/core/composables/useUser/index.ts +171 -74
  6. package/core/composables/useUserManagement/index.ts +25 -67
  7. package/core/interceptors/index.ts +56 -19
  8. package/core/plugins/signalR/index.ts +1 -27
  9. package/core/types/index.ts +0 -2
  10. package/dist/core/api/platform.d.ts +1 -1
  11. package/dist/core/api/platform.d.ts.map +1 -1
  12. package/dist/core/composables/useDynamicProperties/index.d.ts.map +1 -1
  13. package/dist/core/composables/useNotifications/index.d.ts.map +1 -1
  14. package/dist/core/composables/useSettings/index.d.ts.map +1 -1
  15. package/dist/core/composables/useUser/index.d.ts +9 -18
  16. package/dist/core/composables/useUser/index.d.ts.map +1 -1
  17. package/dist/core/composables/useUserManagement/index.d.ts +7 -7
  18. package/dist/core/composables/useUserManagement/index.d.ts.map +1 -1
  19. package/dist/core/interceptors/index.d.ts +1 -2
  20. package/dist/core/interceptors/index.d.ts.map +1 -1
  21. package/dist/core/plugins/signalR/index.d.ts +0 -2
  22. package/dist/core/plugins/signalR/index.d.ts.map +1 -1
  23. package/dist/core/types/index.d.ts +1 -1
  24. package/dist/core/types/index.d.ts.map +1 -1
  25. package/dist/index.d.ts +0 -8
  26. package/dist/index.d.ts.map +1 -1
  27. package/dist/injection-keys.d.ts +1 -2
  28. package/dist/injection-keys.d.ts.map +1 -1
  29. package/dist/shared/components/app-switcher/composables/useAppSwitcher/index.d.ts.map +1 -1
  30. package/dist/shared/components/multilanguage-selector/multilanguage-selector.vue.d.ts +1 -1
  31. package/dist/shared/components/notifications/components/notification-container/index.d.ts +10 -10
  32. package/dist/shared/components/notifications/components/notification-container/index.d.ts.map +1 -1
  33. package/dist/shared/components/sign-in/useExternalProvider.d.ts +1 -1
  34. package/dist/shared/components/sign-in/useExternalProvider.d.ts.map +1 -1
  35. package/dist/shared/modules/assets-manager/components/assets-manager/assets-manager.vue.d.ts +2 -2
  36. package/dist/shared/modules/dynamic/helpers/nodeBuilder.d.ts.map +1 -1
  37. package/dist/shared/modules/dynamic/pages/dynamic-blade-form.vue.d.ts +2 -2
  38. package/dist/shared/modules/dynamic/pages/dynamic-blade-list.vue.d.ts +2 -2
  39. package/dist/shared/pages/InvitePage/components/invite/Invite.vue.d.ts +1 -1
  40. package/dist/shared/pages/InvitePage/components/invite/Invite.vue.d.ts.map +1 -1
  41. package/dist/shared/pages/ResetPasswordPage/components/reset-password/ResetPassword.vue.d.ts +1 -1
  42. package/dist/shared/pages/ResetPasswordPage/components/reset-password/ResetPassword.vue.d.ts.map +1 -1
  43. package/dist/tsconfig.tsbuildinfo +1 -1
  44. package/dist/ui/components/atoms/vc-badge/vc-badge.vue.d.ts +1 -1
  45. package/dist/ui/components/atoms/vc-badge/vc-badge.vue.d.ts.map +1 -1
  46. package/dist/ui/components/atoms/vc-container/vc-container.vue.d.ts +2 -2
  47. package/dist/ui/components/atoms/vc-icon/vc-icon.vue.d.ts +1 -1
  48. package/dist/ui/components/atoms/vc-icon/vc-icon.vue.d.ts.map +1 -1
  49. package/dist/ui/components/atoms/vc-progress/vc-progress.vue.d.ts +1 -1
  50. package/dist/ui/components/atoms/vc-progress/vc-progress.vue.d.ts.map +1 -1
  51. package/dist/ui/components/molecules/index.d.ts +1 -0
  52. package/dist/ui/components/molecules/index.d.ts.map +1 -1
  53. package/dist/ui/components/molecules/vc-accordion/_internal/vc-accordion-item/vc-accordion-item.vue.d.ts +34 -0
  54. package/dist/ui/components/molecules/vc-accordion/_internal/vc-accordion-item/vc-accordion-item.vue.d.ts.map +1 -0
  55. package/dist/ui/components/molecules/vc-accordion/index.d.ts +7 -0
  56. package/dist/ui/components/molecules/vc-accordion/index.d.ts.map +1 -0
  57. package/dist/ui/components/molecules/vc-accordion/vc-accordion.vue.d.ts +42 -0
  58. package/dist/ui/components/molecules/vc-accordion/vc-accordion.vue.d.ts.map +1 -0
  59. package/dist/ui/components/molecules/vc-editor/_internal/vc-editor-button.vue.d.ts +1 -1
  60. package/dist/ui/components/molecules/vc-file-upload/vc-file-upload.vue.d.ts +2 -2
  61. package/dist/ui/components/molecules/vc-file-upload/vc-file-upload.vue.d.ts.map +1 -1
  62. package/dist/ui/components/molecules/vc-input-currency/vc-input-currency.vue.d.ts +1 -1
  63. package/dist/ui/components/molecules/vc-input-currency/vc-input-currency.vue.d.ts.map +1 -1
  64. package/dist/ui/components/molecules/vc-multivalue/vc-multivalue.vue.d.ts +1 -1
  65. package/dist/ui/components/molecules/vc-rating/vc-rating.vue.d.ts +1 -1
  66. package/dist/ui/components/molecules/vc-rating/vc-rating.vue.d.ts.map +1 -1
  67. package/dist/ui/components/organisms/vc-app/_internal/vc-app-menu/_internal/vc-app-menu-item/vc-app-menu-item.vue.d.ts +1 -1
  68. package/dist/ui/components/organisms/vc-app/_internal/vc-app-menu/_internal/vc-app-menu-item/vc-app-menu-item.vue.d.ts.map +1 -1
  69. package/dist/ui/components/organisms/vc-app/vc-app.vue.d.ts.map +1 -1
  70. package/dist/ui/components/organisms/vc-blade/_internal/vc-blade-toolbar/_internal/vc-blade-toolbar-buttons/_internal/vc-blade-toolbar-button/vc-blade-toolbar-base-button.vue.d.ts +1 -1
  71. package/dist/ui/components/organisms/vc-blade/_internal/vc-blade-toolbar/_internal/vc-blade-toolbar-buttons/_internal/vc-blade-toolbar-button/vc-blade-toolbar-button.vue.d.ts +1 -1
  72. package/dist/ui/components/organisms/vc-blade/_internal/vc-blade-toolbar/_internal/vc-blade-toolbar-buttons/_internal/vc-blade-toolbar-button/vc-blade-toolbar-button.vue.d.ts.map +1 -1
  73. package/dist/ui/components/organisms/vc-blade/_internal/vc-blade-toolbar/_internal/vc-blade-toolbar-buttons/_internal/vc-blade-toolbar-button/vc-blade-toolbar-circle-button.vue.d.ts +1 -1
  74. package/dist/ui/components/organisms/vc-blade/_internal/vc-blade-toolbar/_internal/vc-blade-toolbar-buttons/_internal/vc-blade-toolbar-button/vc-blade-toolbar-circle-button.vue.d.ts.map +1 -1
  75. package/dist/ui/components/organisms/vc-blade/vc-blade.backupsb.d.ts +3 -3
  76. package/dist/ui/components/organisms/vc-blade/vc-blade.vue.d.ts +1 -1
  77. package/dist/ui/components/organisms/vc-blade/vc-blade.vue.d.ts.map +1 -1
  78. package/dist/ui/components/organisms/vc-dynamic-property/vc-dynamic-property.vue.d.ts.map +1 -1
  79. package/dist/ui/components/organisms/vc-gallery/_internal/vc-gallery-item/vc-gallery-item.vue.d.ts +2 -2
  80. package/dist/ui/components/organisms/vc-gallery/_internal/vc-gallery-preview/vc-gallery-preview.vue.d.ts +1 -1
  81. package/dist/ui/components/organisms/vc-gallery/_internal/vc-gallery-preview/vc-gallery-preview.vue.d.ts.map +1 -1
  82. package/dist/ui/components/organisms/vc-gallery/vc-gallery.vue.d.ts +5 -5
  83. package/dist/ui/components/organisms/vc-gallery/vc-gallery.vue.d.ts.map +1 -1
  84. package/dist/ui/components/organisms/vc-popup/vc-popup.vue.d.ts +1 -1
  85. package/dist/ui/components/organisms/vc-popup/vc-popup.vue.d.ts.map +1 -1
  86. package/dist/ui/components/organisms/vc-table/_internal/vc-table-counter/vc-table-counter.vue.d.ts +1 -1
  87. package/dist/ui/components/organisms/vc-table/_internal/vc-table-counter/vc-table-counter.vue.d.ts.map +1 -1
  88. package/dist/ui/components/organisms/vc-table/_internal/vc-table-desktop-view/_internal/vc-table-body/vc-table-body.vue.d.ts +2 -2
  89. package/dist/ui/components/organisms/vc-table/_internal/vc-table-desktop-view/_internal/vc-table-row/vc-table-row.vue.d.ts +2 -2
  90. package/dist/ui/components/organisms/vc-table/_internal/vc-table-desktop-view/vc-table-desktop-view.vue.d.ts +3 -3
  91. package/dist/ui/components/organisms/vc-table/vc-table.vue.d.ts +1 -1
  92. package/package.json +5 -7
  93. package/shared/components/app-switcher/components/vc-app-switcher/vc-app-switcher.vue +2 -2
  94. package/shared/components/app-switcher/composables/useAppSwitcher/index.ts +1 -15
  95. package/shared/components/sign-in/useExternalProvider.ts +1 -11
  96. package/shared/modules/dynamic/helpers/nodeBuilder.ts +3 -11
  97. package/ui/components/atoms/vc-badge/vc-badge.stories.ts +1 -1
  98. package/ui/components/atoms/vc-button/vc-button.stories.ts +1 -1
  99. package/ui/components/atoms/vc-card/vc-card.stories.ts +1 -1
  100. package/ui/components/atoms/vc-col/vc-col.stories.ts +1 -1
  101. package/ui/components/atoms/vc-container/vc-container.stories.ts +1 -1
  102. package/ui/components/atoms/vc-hint/vc-hint.stories.ts +1 -1
  103. package/ui/components/atoms/vc-icon/vc-icon.stories.ts +1 -1
  104. package/ui/components/atoms/vc-image/vc-image.stories.ts +1 -1
  105. package/ui/components/atoms/vc-label/vc-label.stories.ts +1 -1
  106. package/ui/components/atoms/vc-link/vc-link.stories.ts +1 -1
  107. package/ui/components/atoms/vc-progress/vc-progress.stories.ts +1 -1
  108. package/ui/components/atoms/vc-row/vc-row.stories.ts +1 -1
  109. package/ui/components/atoms/vc-skeleton/vc-skeleton.stories.ts +1 -1
  110. package/ui/components/atoms/vc-status/vc-status.stories.ts +1 -1
  111. package/ui/components/atoms/vc-status-icon/vc-status-icon.stories.ts +1 -1
  112. package/ui/components/atoms/vc-tooltip/vc-tooltip.stories.ts +1 -1
  113. package/ui/components/atoms/vc-video/vc-video.stories.ts +1 -1
  114. package/ui/components/atoms/vc-widget/vc-widget.stories.ts +1 -1
  115. package/ui/components/molecules/index.ts +1 -0
  116. package/ui/components/molecules/vc-accordion/_internal/vc-accordion-item/vc-accordion-item.vue +251 -0
  117. package/ui/components/molecules/vc-accordion/index.ts +11 -0
  118. package/ui/components/molecules/vc-accordion/vc-accordion.stories.ts +526 -0
  119. package/ui/components/molecules/vc-accordion/vc-accordion.vue +176 -0
  120. package/ui/components/molecules/vc-breadcrumbs/vc-breadcrumbs.stories.ts +1 -1
  121. package/ui/components/molecules/vc-checkbox/vc-checkbox.stories.ts +1 -1
  122. package/ui/components/molecules/vc-editor/vc-editor.stories.ts +1 -1
  123. package/ui/components/molecules/vc-field/vc-field.stories.ts +1 -1
  124. package/ui/components/molecules/vc-file-upload/vc-file-upload.stories.ts +1 -1
  125. package/ui/components/molecules/vc-form/vc-form.stories.ts +1 -1
  126. package/ui/components/molecules/vc-input/vc-input.stories.ts +1 -1
  127. package/ui/components/molecules/vc-input-currency/vc-input-currency.stories.ts +1 -1
  128. package/ui/components/molecules/vc-input-dropdown/vc-input-dropdown.stories.ts +1 -1
  129. package/ui/components/molecules/vc-multivalue/vc-multivalue.stories.ts +1 -1
  130. package/ui/components/molecules/vc-pagination/vc-pagination.stories.ts +1 -1
  131. package/ui/components/molecules/vc-radio-button/vc-radio-button.stories.ts +1 -1
  132. package/ui/components/molecules/vc-rating/vc-rating.stories.ts +1 -1
  133. package/ui/components/molecules/vc-select/vc-select.stories.ts +1 -1
  134. package/ui/components/molecules/vc-slider/vc-slider.stories.ts +1 -1
  135. package/ui/components/molecules/vc-switch/vc-switch.stories.ts +1 -1
  136. package/ui/components/molecules/vc-textarea/vc-textarea.stories.ts +1 -1
  137. package/ui/components/molecules/vc-toast/vc-toast.stories.ts +1 -1
  138. package/ui/components/organisms/vc-app/vc-app.vue +2 -20
  139. package/ui/components/organisms/vc-dynamic-property/vc-dynamic-property.vue +4 -0
  140. package/ui/components/organisms/vc-gallery/vc-gallery.stories.ts +1 -1
  141. package/ui/components/organisms/vc-popup/vc-popup.stories.ts +1 -1
  142. package/core/providers/README.md +0 -176
  143. package/core/providers/auth-provider-manager.ts +0 -74
  144. package/core/providers/auth-provider-utils.ts +0 -26
  145. package/core/providers/example-custom-auth-provider.ts +0 -162
  146. package/core/providers/index.ts +0 -3
  147. package/core/providers/platform-auth-provider.ts +0 -207
  148. package/core/types/auth-provider.ts +0 -40
  149. package/dist/assets/042c75b764bc78a7.svg +0 -1
  150. package/dist/assets/0ba156439a339f2a.svg +0 -1
  151. package/dist/assets/0be560bfb22d0e72.woff2 +0 -0
  152. package/dist/assets/0f590f8a94577092.svg +0 -1
  153. package/dist/assets/0fc5820f8be53a1b.svg +0 -1
  154. package/dist/assets/105efd028edc1dfe.woff +0 -0
  155. package/dist/assets/10768e2cc79fc60b.svg +0 -1
  156. package/dist/assets/11b3d25a56fd9a21.woff2 +0 -0
  157. package/dist/assets/154365acf3010d96.woff2 +0 -0
  158. package/dist/assets/157b8721e0600ea8.svg +0 -1
  159. package/dist/assets/15e91cdd649cde9a.svg +0 -1
  160. package/dist/assets/19275e398ae57130.woff2 +0 -0
  161. package/dist/assets/1a3e84b2457f709a.woff +0 -0
  162. package/dist/assets/1de63eb118636cce.svg +0 -1
  163. package/dist/assets/1ea01de36eb5491b.svg +0 -1
  164. package/dist/assets/204eaf512fde2023.svg +0 -1
  165. package/dist/assets/2088983edf42e153.svg +0 -1
  166. package/dist/assets/208f810a9321a327.svg +0 -1
  167. package/dist/assets/21220a9d10e6c558.svg +0 -1
  168. package/dist/assets/220db345a102045d.woff2 +0 -0
  169. package/dist/assets/225da11d23968333.svg +0 -1
  170. package/dist/assets/226f862dd81bdc13.woff2 +0 -0
  171. package/dist/assets/23a2d53395ddb14f.woff +0 -0
  172. package/dist/assets/259e6ad461a52ad7.svg +0 -1
  173. package/dist/assets/261e6dec4d53b9ac.woff +0 -0
  174. package/dist/assets/262f46a0b6d94bb6.svg +0 -1
  175. package/dist/assets/2857c513073467da.svg +0 -1
  176. package/dist/assets/2b3be7889467d98f.woff +0 -0
  177. package/dist/assets/2d4e6190eec72737.svg +0 -1
  178. package/dist/assets/2eba973185078bc8.woff +0 -0
  179. package/dist/assets/334d3f6bc766c516.woff +0 -0
  180. package/dist/assets/34ff7dd0c2285956.svg +0 -1
  181. package/dist/assets/3d26b7c1ab78bbe2.woff +0 -0
  182. package/dist/assets/3d892965ab4f1cbb.woff2 +0 -0
  183. package/dist/assets/3f8c4cc8099e34b6.woff2 +0 -0
  184. package/dist/assets/40a0e53b79ce63c6.woff2 +0 -0
  185. package/dist/assets/41275bcb979cb650.svg +0 -1
  186. package/dist/assets/434f7982590e462f.woff +0 -0
  187. package/dist/assets/475937116ee3314a.woff2 +0 -0
  188. package/dist/assets/489710fb710e73f0.woff +0 -0
  189. package/dist/assets/49791943b3872376.woff2 +0 -0
  190. package/dist/assets/4ae5f23e0ca888e7.woff2 +0 -0
  191. package/dist/assets/4d7a77b0e5373992.svg +0 -1
  192. package/dist/assets/4e43c74354534fb3.svg +0 -1
  193. package/dist/assets/4fe75f5117100705.svg +0 -1
  194. package/dist/assets/52e261a005074e1b.woff +0 -0
  195. package/dist/assets/5304c3d05a5f9789.woff2 +0 -0
  196. package/dist/assets/54cda5482c6c9218.woff +0 -0
  197. package/dist/assets/550f52072e8ccafe.woff2 +0 -0
  198. package/dist/assets/572bb1bb4156a9c1.svg +0 -1
  199. package/dist/assets/6075995d7e74da46.woff2 +0 -0
  200. package/dist/assets/617c4736236e199e.woff +0 -0
  201. package/dist/assets/67230f05dc94a265.svg +0 -1
  202. package/dist/assets/6798e4dd4add9b48.svg +0 -1
  203. package/dist/assets/686d4077c1e26876.woff2 +0 -0
  204. package/dist/assets/698ec6c722d4cb05.woff2 +0 -0
  205. package/dist/assets/6a3e73faf406cf33.svg +0 -1
  206. package/dist/assets/72de3a63bc0b70dd.svg +0 -1
  207. package/dist/assets/74c6a6ab81bb6340.woff2 +0 -0
  208. package/dist/assets/74ed5f8a78e71106.svg +0 -1
  209. package/dist/assets/7a5aa5abd625137f.ttf +0 -0
  210. package/dist/assets/7ce0c166fd6a1204.woff +0 -0
  211. package/dist/assets/7d55399c2a7bc985.svg +0 -1
  212. package/dist/assets/7d970675c69fca1d.woff +0 -0
  213. package/dist/assets/7eda727273fd98d3.svg +0 -1
  214. package/dist/assets/7f6ebfd707b76ca2.woff +0 -0
  215. package/dist/assets/7fa898d213fcc7bc.woff2 +0 -0
  216. package/dist/assets/861e6b7192b3b6c7.woff +0 -0
  217. package/dist/assets/8bbcde81ba21ecb2.woff2 +0 -0
  218. package/dist/assets/8f6657e5e0b8d3e4.woff +0 -0
  219. package/dist/assets/910b0d99b9e26568.svg +0 -1
  220. package/dist/assets/91fe94e424323d61.woff +0 -0
  221. package/dist/assets/92508f8707159b51.svg +0 -1
  222. package/dist/assets/9392bf1d591e1abb.svg +0 -1
  223. package/dist/assets/97e8d4984ba0713a.woff2 +0 -0
  224. package/dist/assets/9cb83236f6bb7ab1.svg +0 -1
  225. package/dist/assets/9d37314695c0b68d.woff +0 -0
  226. package/dist/assets/a03cdcd8da5bb987.woff +0 -0
  227. package/dist/assets/a18404194e3f9047.svg +0 -1
  228. package/dist/assets/a2017fe7f0a26510.svg +0 -1
  229. package/dist/assets/ab6e7190bb1492d5.woff2 +0 -0
  230. package/dist/assets/abf88f301a0730f4.svg +0 -1
  231. package/dist/assets/ac1a99b3d05d8232.woff +0 -0
  232. package/dist/assets/aed17cb6fdad2ada.woff2 +0 -0
  233. package/dist/assets/b1a596e31ad1185a.svg +0 -1
  234. package/dist/assets/b27767411c8427be.woff +0 -0
  235. package/dist/assets/b325adcae33bbe7a.svg +0 -1
  236. package/dist/assets/b372390551ca2fa1.svg +0 -1
  237. package/dist/assets/b5bb1e8fc975decd.svg +0 -1
  238. package/dist/assets/b645a4a2181b9dc1.svg +0 -1
  239. package/dist/assets/b6499ddce0a4ef7d.svg +0 -1
  240. package/dist/assets/b94421fadd23b0f2.svg +0 -1
  241. package/dist/assets/bb28fb0f27f1c11b.svg +0 -1
  242. package/dist/assets/c9191b638a10f67b.woff2 +0 -0
  243. package/dist/assets/ca791c5ca5848a03.svg +0 -1
  244. package/dist/assets/cb32840ce330103f.woff +0 -0
  245. package/dist/assets/ccc878931d74181b.woff2 +0 -0
  246. package/dist/assets/d084bda16abe8a56.svg +0 -1
  247. package/dist/assets/d32b129cae2fffd6.svg +0 -1
  248. package/dist/assets/d35a4c7113315758.woff2 +0 -0
  249. package/dist/assets/d3f792f54ae4c307.svg +0 -1
  250. package/dist/assets/d5a5b8630120073d.svg +0 -1
  251. package/dist/assets/d5f9664ebbfb104b.svg +0 -1
  252. package/dist/assets/d84247b59449dd88.woff2 +0 -0
  253. package/dist/assets/dceaf3b39091e6a4.woff +0 -0
  254. package/dist/assets/dd05d43ff0df2fc7.svg +0 -1
  255. package/dist/assets/e2ad5b3428289141.woff +0 -0
  256. package/dist/assets/e38acaa1757232e0.svg +0 -1
  257. package/dist/assets/e4a8550f1c7ffe36.svg +0 -1
  258. package/dist/assets/e5adb5ae3a3698f6.svg +0 -1
  259. package/dist/assets/e61a1889bac955f4.woff2 +0 -0
  260. package/dist/assets/e72bb11356af94c7.svg +0 -1
  261. package/dist/assets/e98196a9f8dcb2f0.svg +0 -1
  262. package/dist/assets/ebec912a42ad49ff.woff +0 -0
  263. package/dist/assets/ee6983981ffcbb41.woff2 +0 -0
  264. package/dist/assets/f09d89268e4c0317.svg +0 -1
  265. package/dist/assets/f239394367fcf005.woff2 +0 -0
  266. package/dist/assets/f5722262b6e7214e.woff2 +0 -0
  267. package/dist/assets/f7fc8bf46089d8b2.svg +0 -1
  268. package/dist/assets/fc829e3f399b70e0.woff2 +0 -0
  269. package/dist/assets/fe141d99763f5d2b.woff +0 -0
  270. package/dist/assets/fed13b0d59903483.svg +0 -1
  271. package/dist/assets/fed757d2c2344ead.woff2 +0 -0
  272. package/dist/assets/ffc438f20e79ce73.woff +0 -0
  273. package/dist/core/providers/auth-provider-manager.d.ts +0 -34
  274. package/dist/core/providers/auth-provider-manager.d.ts.map +0 -1
  275. package/dist/core/providers/auth-provider-utils.d.ts +0 -17
  276. package/dist/core/providers/auth-provider-utils.d.ts.map +0 -1
  277. package/dist/core/providers/example-custom-auth-provider.d.ts +0 -45
  278. package/dist/core/providers/example-custom-auth-provider.d.ts.map +0 -1
  279. package/dist/core/providers/index.d.ts +0 -3
  280. package/dist/core/providers/index.d.ts.map +0 -1
  281. package/dist/core/providers/platform-auth-provider.d.ts +0 -34
  282. package/dist/core/providers/platform-auth-provider.d.ts.map +0 -1
  283. package/dist/core/types/auth-provider.d.ts +0 -27
  284. package/dist/core/types/auth-provider.d.ts.map +0 -1
  285. package/dist/framework.js +0 -25048
  286. package/dist/index.css +0 -9
  287. package/dist/vendor-boolbase-A_-Pp38P.js +0 -23
  288. package/dist/vendor-cheerio-C46iBpCu.js +0 -1053
  289. package/dist/vendor-cheerio-select-C8emRZsx.js +0 -191
  290. package/dist/vendor-core-js-DDuR6YMQ.js +0 -1206
  291. package/dist/vendor-css-select-DR9bp36p.js +0 -622
  292. package/dist/vendor-css-what-CZZaquJM.js +0 -267
  293. package/dist/vendor-cypress-signalr-mock-DjBxJHA6.js +0 -769
  294. package/dist/vendor-date-fns-sZ1zMzTH.js +0 -3008
  295. package/dist/vendor-dom-serializer-Sk3xHhQk.js +0 -213
  296. package/dist/vendor-domelementtype-B3sFIGaC.js +0 -21
  297. package/dist/vendor-domhandler-CL40eeX9.js +0 -311
  298. package/dist/vendor-dompurify-BuxjWxA2.js +0 -553
  299. package/dist/vendor-domutils-BiVCXO8c.js +0 -386
  300. package/dist/vendor-entities-CCReaWqU.js +0 -364
  301. package/dist/vendor-floating-ui-core-Cl9nBI4j.js +0 -349
  302. package/dist/vendor-floating-ui-dom-3z44E4mf.js +0 -395
  303. package/dist/vendor-floating-ui-utils-D2sT7feD.js +0 -259
  304. package/dist/vendor-floating-ui-vue-ClrgkeO5.js +0 -107
  305. package/dist/vendor-headlessui-vue-D7tzx4PC.js +0 -961
  306. package/dist/vendor-htmlparser2-CpQu33io.js +0 -735
  307. package/dist/vendor-intlify-core-base-Da62SG4M.js +0 -1130
  308. package/dist/vendor-intlify-message-compiler-CHvGSH2u.js +0 -952
  309. package/dist/vendor-intlify-shared-jWBPd9WB.js +0 -144
  310. package/dist/vendor-iso-639-1-BJO6WZAt.js +0 -781
  311. package/dist/vendor-linkify-it-LzoUhj6C.js +0 -199
  312. package/dist/vendor-linkifyjs-dCH9UYes.js +0 -701
  313. package/dist/vendor-lodash-es-BqkGj3Jl.js +0 -4816
  314. package/dist/vendor-lucide-vue-next-m0L4DzUL.js +0 -29780
  315. package/dist/vendor-markdown-it-Czg9qJTh.js +0 -2263
  316. package/dist/vendor-markdown-it-task-lists-BxLwscWK.js +0 -69
  317. package/dist/vendor-mdurl-DZFDNdqC.js +0 -192
  318. package/dist/vendor-microsoft-applicationinsights-analytics-js-C1Yxuzwg.js +0 -1207
  319. package/dist/vendor-microsoft-applicationinsights-cfgsync-js-DArHD4Dn.js +0 -261
  320. package/dist/vendor-microsoft-applicationinsights-channel-js-Dbs0XRes.js +0 -1822
  321. package/dist/vendor-microsoft-applicationinsights-common-OjU3Zs6r.js +0 -1921
  322. package/dist/vendor-microsoft-applicationinsights-core-js-DWRvqBek.js +0 -4276
  323. package/dist/vendor-microsoft-applicationinsights-dependencies-js-BxTNw-Sk.js +0 -1407
  324. package/dist/vendor-microsoft-applicationinsights-properties-js-Gfhpu-At.js +0 -572
  325. package/dist/vendor-microsoft-applicationinsights-shims-CxtPYiwp.js +0 -43
  326. package/dist/vendor-microsoft-applicationinsights-web-9yeJ0EZv.js +0 -487
  327. package/dist/vendor-microsoft-dynamicproto-js-DSkQkH3T.js +0 -147
  328. package/dist/vendor-microsoft-signalr-Bgpbb4fW.js +0 -1761
  329. package/dist/vendor-moment-DMLRxgRE.js +0 -2589
  330. package/dist/vendor-nevware21-ts-async-CdMc_sGt.js +0 -261
  331. package/dist/vendor-nevware21-ts-utils-Dy41wRhA.js +0 -853
  332. package/dist/vendor-nth-check-CS1D-zr5.js +0 -45
  333. package/dist/vendor-orderedmap-B3SOk52B.js +0 -103
  334. package/dist/vendor-parse5-htmlparser2-tree-adapter-BWywtwol.js +0 -143
  335. package/dist/vendor-parse5-zq5Hn0y9.js +0 -5749
  336. package/dist/vendor-prettier-cZc5sCiS.js +0 -4875
  337. package/dist/vendor-prosemirror-commands-Cu1q5ZDk.js +0 -385
  338. package/dist/vendor-prosemirror-dropcursor-BuGmFgFS.js +0 -86
  339. package/dist/vendor-prosemirror-gapcursor-CyYcCWVK.js +0 -203
  340. package/dist/vendor-prosemirror-history-DzRcbrCw.js +0 -248
  341. package/dist/vendor-prosemirror-keymap-KfbdOEJw.js +0 -62
  342. package/dist/vendor-prosemirror-markdown-OyxRuawK.js +0 -650
  343. package/dist/vendor-prosemirror-model-DFp4ML7B.js +0 -2730
  344. package/dist/vendor-prosemirror-schema-list-CwCUArvx.js +0 -87
  345. package/dist/vendor-prosemirror-state-DHaVEu5h.js +0 -821
  346. package/dist/vendor-prosemirror-tables-mYok4vGT.js +0 -1711
  347. package/dist/vendor-prosemirror-transform-CAHmg-qG.js +0 -1508
  348. package/dist/vendor-prosemirror-view-CspJa44O.js +0 -3751
  349. package/dist/vendor-punycode-js-CgGegfA_.js +0 -133
  350. package/dist/vendor-rope-sequence-BWC2FSrq.js +0 -100
  351. package/dist/vendor-semver-Dar8oU3V.js +0 -1023
  352. package/dist/vendor-swiper-1bp0oJwt.js +0 -3387
  353. package/dist/vendor-tanstack-virtual-core-l0sNRNKZ.js +0 -1
  354. package/dist/vendor-tanstack-vue-virtual-CD9yLWd7.js +0 -1
  355. package/dist/vendor-tiptap-core-ClsTgaMv.js +0 -3699
  356. package/dist/vendor-tiptap-extension-blockquote-r1MBx4hD.js +0 -54
  357. package/dist/vendor-tiptap-extension-bold-BjLI4i8b.js +0 -74
  358. package/dist/vendor-tiptap-extension-code-D5-kDnMW.js +0 -52
  359. package/dist/vendor-tiptap-extension-code-block-RjEb0zPA.js +0 -215
  360. package/dist/vendor-tiptap-extension-document--PLOxIdq.js +0 -12
  361. package/dist/vendor-tiptap-extension-hard-break-9cxC2YOS.js +0 -59
  362. package/dist/vendor-tiptap-extension-heading-2w0TutHn.js +0 -63
  363. package/dist/vendor-tiptap-extension-horizontal-rule-CFowa_lc.js +0 -56
  364. package/dist/vendor-tiptap-extension-image-aWn-na6j.js +0 -127
  365. package/dist/vendor-tiptap-extension-italic-Bn-6saY0.js +0 -73
  366. package/dist/vendor-tiptap-extension-link-BmcG1_k-.js +0 -298
  367. package/dist/vendor-tiptap-extension-list-BrNBJ45n.js +0 -707
  368. package/dist/vendor-tiptap-extension-paragraph-DAiYhwUB.js +0 -41
  369. package/dist/vendor-tiptap-extension-placeholder-9tURDKy-.js +0 -1
  370. package/dist/vendor-tiptap-extension-strike-DqbXPfos.js +0 -64
  371. package/dist/vendor-tiptap-extension-table-DQwPaR7v.js +0 -374
  372. package/dist/vendor-tiptap-extension-table-cell-C0tEP_0i.js +0 -1
  373. package/dist/vendor-tiptap-extension-table-header-C0tEP_0i.js +0 -1
  374. package/dist/vendor-tiptap-extension-table-row-C0tEP_0i.js +0 -1
  375. package/dist/vendor-tiptap-extension-text-BFnfj70b.js +0 -13
  376. package/dist/vendor-tiptap-extension-text-style-Darua3qr.js +0 -235
  377. package/dist/vendor-tiptap-extension-underline-QyVnBqQZ.js +0 -65
  378. package/dist/vendor-tiptap-extensions-CU-D7bfm.js +0 -290
  379. package/dist/vendor-tiptap-markdown-BwATYN5A.js +0 -826
  380. package/dist/vendor-tiptap-pm-d91nGny8.js +0 -1
  381. package/dist/vendor-tiptap-starter-kit-5luf7zzS.js +0 -28
  382. package/dist/vendor-tiptap-vue-3-CFBErZGb.js +0 -157
  383. package/dist/vendor-truncate-html-DYC0Lj9o.js +0 -145
  384. package/dist/vendor-uc-micro-4lbSaZOs.js +0 -17
  385. package/dist/vendor-vee-validate-i18n-zT8NxX3R.js +0 -93
  386. package/dist/vendor-vee-validate-rules-4oWUZPpG.js +0 -316
  387. package/dist/vendor-vue-currency-input-BqaYAdhD.js +0 -317
  388. package/dist/vendor-vue-demi-CD9yLWd7.js +0 -1
  389. package/dist/vendor-vue-devtools-api-aVYGocXp.js +0 -93
  390. package/dist/vendor-vue-i18n-CO5LWKE0.js +0 -1370
  391. package/dist/vendor-vue3-application-insights-BKiiWnf2.js +0 -69
  392. package/dist/vendor-vue3-touch-events-DqysuuWh.js +0 -169
  393. package/dist/vendor-vuepic-vue-datepicker-CaY_xSnG.js +0 -4998
  394. package/dist/vendor-vueuse-components-sgKpNzof.js +0 -542
  395. package/dist/vendor-vueuse-core-D0cN7FqY.js +0 -5130
  396. package/dist/vendor-vueuse-shared-Pt0UEStA.js +0 -1169
  397. package/dist/vendor-w3c-keyname-CLxH8j-f.js +0 -92
@@ -1,1370 +0,0 @@
1
- import { C as jt, D as qe, u as X, c as Bt, a as Ce, b as Ae, i as z, A as Xt, s as Jt, g as Kt, N as zt, d as qt, e as Qt, f as Zt, h as Qe, j as Se, p as ye, t as Ve, M as Me, k as Ue, l as We, m as $e, n as we, o as ea, q as ta, r as aa, v as na, w as sa, x as ra, y as la, z as oa, B as ia } from "./vendor-intlify-core-base-Da62SG4M.js";
2
- import { f as N, h as Ze, B as S, l as ca, c as h, C as Te, a as d, b as P, g as re, i as $, r as le, e as A, d as C, D as se, k as oe, j as R, n as q, w as ie, o as _a, m as K } from "./vendor-intlify-shared-jWBPd9WB.js";
3
- import { effectScope as ua, ref as ma, shallowRef as fa, computed as J, watch as Ee, isRef as ga, defineComponent as Le, getCurrentInstance as Q, h as et, Fragment as tt, inject as Ea, onMounted as da, onUnmounted as ba, createVNode as va, Text as Ia } from "vue";
4
- import { s as pa } from "./vendor-vue-devtools-api-aVYGocXp.js";
5
- import { c as Na } from "./vendor-intlify-message-compiler-CHvGSH2u.js";
6
- /*!
7
- * vue-i18n v11.1.12
8
- * (c) 2025 kazuya kawaguchi
9
- * Released under the MIT License.
10
- */
11
- const at = "11.1.12";
12
- function Ta() {
13
- typeof __VUE_I18N_FULL_INSTALL__ != "boolean" && (K().__VUE_I18N_FULL_INSTALL__ = !0), typeof __VUE_I18N_LEGACY_API__ != "boolean" && (K().__VUE_I18N_LEGACY_API__ = !0), typeof __INTLIFY_DROP_MESSAGE_COMPILER__ != "boolean" && (K().__INTLIFY_DROP_MESSAGE_COMPILER__ = !1), typeof __INTLIFY_PROD_DEVTOOLS__ != "boolean" && (K().__INTLIFY_PROD_DEVTOOLS__ = !1);
14
- }
15
- const b = {
16
- // composer module errors
17
- UNEXPECTED_RETURN_TYPE: Zt,
18
- // 24
19
- // legacy module errors
20
- INVALID_ARGUMENT: 25,
21
- // i18n module errors
22
- MUST_BE_CALL_SETUP_TOP: 26,
23
- NOT_INSTALLED: 27,
24
- // directive module errors
25
- REQUIRED_VALUE: 28,
26
- INVALID_VALUE: 29,
27
- // vue-devtools errors
28
- CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN: 30,
29
- NOT_INSTALLED_WITH_PROVIDE: 31,
30
- // unexpected error
31
- UNEXPECTED_ERROR: 32,
32
- // not compatible legacy vue-i18n constructor
33
- NOT_COMPATIBLE_LEGACY_VUE_I18N: 33,
34
- // Not available Compostion API in Legacy API mode. Please make sure that the legacy API mode is working properly
35
- NOT_AVAILABLE_COMPOSITION_IN_LEGACY: 34
36
- };
37
- function F(e, ...t) {
38
- return Na(e, null, process.env.NODE_ENV !== "production" ? { messages: La, args: t } : void 0);
39
- }
40
- const La = {
41
- [b.UNEXPECTED_RETURN_TYPE]: "Unexpected return type in composer",
42
- [b.INVALID_ARGUMENT]: "Invalid argument",
43
- [b.MUST_BE_CALL_SETUP_TOP]: "Must be called at the top of a `setup` function",
44
- [b.NOT_INSTALLED]: "Need to install with `app.use` function",
45
- [b.UNEXPECTED_ERROR]: "Unexpected error",
46
- [b.REQUIRED_VALUE]: "Required in value: {0}",
47
- [b.INVALID_VALUE]: "Invalid value",
48
- [b.CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN]: "Cannot setup vue-devtools plugin",
49
- [b.NOT_INSTALLED_WITH_PROVIDE]: "Need to install with `provide` function",
50
- [b.NOT_COMPATIBLE_LEGACY_VUE_I18N]: "Not compatible legacy VueI18n.",
51
- [b.NOT_AVAILABLE_COMPOSITION_IN_LEGACY]: "Not available Compostion API in Legacy API mode. Please make sure that the legacy API mode is working properly"
52
- }, de = /* @__PURE__ */ S("__translateVNode"), be = /* @__PURE__ */ S("__datetimeParts"), ve = /* @__PURE__ */ S("__numberParts"), w = /* @__PURE__ */ S("__enableEmitter"), Z = /* @__PURE__ */ S("__disableEmitter"), nt = S("__setPluralRules"), st = /* @__PURE__ */ S("__injectWithOption"), Ie = /* @__PURE__ */ S("__dispose"), D = {
53
- FALLBACK_TO_ROOT: jt,
54
- // 8
55
- NOT_FOUND_PARENT_SCOPE: 9,
56
- IGNORE_OBJ_FLATTEN: 10,
57
- /**
58
- * @deprecated will be removed at vue-i18n v12
59
- */
60
- DEPRECATE_LEGACY_MODE: 11,
61
- /**
62
- * @deprecated will be removed at vue-i18n v12
63
- */
64
- DEPRECATE_TRANSLATE_CUSTOME_DIRECTIVE: 12,
65
- // duplicate `useI18n` calling
66
- DUPLICATE_USE_I18N_CALLING: 13
67
- }, Oa = {
68
- [D.FALLBACK_TO_ROOT]: "Fall back to {type} '{key}' with root locale.",
69
- [D.NOT_FOUND_PARENT_SCOPE]: "Not found parent scope. use the global scope.",
70
- [D.IGNORE_OBJ_FLATTEN]: "Ignore object flatten: '{key}' key has an string value",
71
- /**
72
- * @deprecated will be removed at vue-i18n v12
73
- */
74
- [D.DEPRECATE_LEGACY_MODE]: `Legacy API mode has been deprecated in v11. Use Composition API mode instead.
75
- About how to use the Composition API mode, see https://vue-i18n.intlify.dev/guide/advanced/composition.html`,
76
- /**
77
- * @deprecated will be removed at vue-i18n v12
78
- */
79
- [D.DEPRECATE_TRANSLATE_CUSTOME_DIRECTIVE]: "'v-t' has been deprecated in v11. Use translate APIs ('t' or '$t') instead.",
80
- [D.DUPLICATE_USE_I18N_CALLING]: "Duplicate `useI18n` calling by local scope. Please don't call it on local scope, due to it does not work properly in component."
81
- };
82
- function G(e, ...t) {
83
- return ca(Oa[e], ...t);
84
- }
85
- function ee(e) {
86
- if (!R(e) || z(e))
87
- return e;
88
- for (const t in e)
89
- if (oe(e, t))
90
- if (!t.includes("."))
91
- R(e[t]) && ee(e[t]);
92
- else {
93
- const s = t.split("."), n = s.length - 1;
94
- let a = e, o = !1;
95
- for (let l = 0; l < n; l++) {
96
- if (s[l] === "__proto__")
97
- throw new Error(`unsafe key: ${s[l]}`);
98
- if (s[l] in a || (a[s[l]] = C()), !R(a[s[l]])) {
99
- process.env.NODE_ENV !== "production" && ie(G(D.IGNORE_OBJ_FLATTEN, {
100
- key: s[l]
101
- })), o = !0;
102
- break;
103
- }
104
- a = a[s[l]];
105
- }
106
- if (o || (z(a) ? Xt.includes(s[n]) || delete e[t] : (a[s[n]] = e[t], delete e[t])), !z(a)) {
107
- const l = a[s[n]];
108
- R(l) && ee(l);
109
- }
110
- }
111
- return e;
112
- }
113
- function Oe(e, t) {
114
- const { messages: s, __i18n: n, messageResolver: a, flatJson: o } = t, l = h(s) ? s : P(n) ? C() : { [e]: C() };
115
- if (P(n) && n.forEach((c) => {
116
- if ("locale" in c && "resource" in c) {
117
- const { locale: u, resource: m } = c;
118
- u ? (l[u] = l[u] || C(), se(m, l[u])) : se(m, l);
119
- } else
120
- d(c) && se(JSON.parse(c), l);
121
- }), a == null && o)
122
- for (const c in l)
123
- oe(l, c) && ee(l[c]);
124
- return l;
125
- }
126
- function rt(e) {
127
- return e.type;
128
- }
129
- function lt(e, t, s) {
130
- let n = R(t.messages) ? t.messages : C();
131
- "__i18nGlobal" in s && (n = Oe(e.locale.value, {
132
- messages: n,
133
- __i18n: s.__i18nGlobal
134
- }));
135
- const a = Object.keys(n);
136
- a.length && a.forEach((o) => {
137
- e.mergeLocaleMessage(o, n[o]);
138
- });
139
- {
140
- if (R(t.datetimeFormats)) {
141
- const o = Object.keys(t.datetimeFormats);
142
- o.length && o.forEach((l) => {
143
- e.mergeDateTimeFormat(l, t.datetimeFormats[l]);
144
- });
145
- }
146
- if (R(t.numberFormats)) {
147
- const o = Object.keys(t.numberFormats);
148
- o.length && o.forEach((l) => {
149
- e.mergeNumberFormat(l, t.numberFormats[l]);
150
- });
151
- }
152
- }
153
- }
154
- function xe(e) {
155
- return va(Ia, null, e, 0);
156
- }
157
- const Ge = "__INTLIFY_META__", He = () => [], ha = () => !1;
158
- let Ye = 0;
159
- function je(e) {
160
- return ((t, s, n, a) => e(s, n, Q() || void 0, a));
161
- }
162
- const Fa = /* @__NO_SIDE_EFFECTS__ */ () => {
163
- const e = Q();
164
- let t = null;
165
- return e && (t = rt(e)[Ge]) ? { [Ge]: t } : null;
166
- };
167
- function he(e = {}) {
168
- const { __root: t, __injectWithOption: s } = e, n = t === void 0, a = e.flatJson, o = le ? ma : fa;
169
- let l = N(e.inheritLocale) ? e.inheritLocale : !0;
170
- const c = o(
171
- // prettier-ignore
172
- t && l ? t.locale.value : d(e.locale) ? e.locale : qe
173
- ), u = o(
174
- // prettier-ignore
175
- t && l ? t.fallbackLocale.value : d(e.fallbackLocale) || P(e.fallbackLocale) || h(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : c.value
176
- ), m = o(Oe(c.value, e)), E = o(h(e.datetimeFormats) ? e.datetimeFormats : { [c.value]: {} }), f = o(h(e.numberFormats) ? e.numberFormats : { [c.value]: {} });
177
- let v = t ? t.missingWarn : N(e.missingWarn) || re(e.missingWarn) ? e.missingWarn : !0, T = t ? t.fallbackWarn : N(e.fallbackWarn) || re(e.fallbackWarn) ? e.fallbackWarn : !0, L = t ? t.fallbackRoot : N(e.fallbackRoot) ? e.fallbackRoot : !0, O = !!e.fallbackFormat, y = $(e.missing) ? e.missing : null, k = $(e.missing) ? je(e.missing) : null, V = $(e.postTranslation) ? e.postTranslation : null, H = t ? t.warnHtmlMessage : N(e.warnHtmlMessage) ? e.warnHtmlMessage : !0, Y = !!e.escapeParameter;
178
- const j = t ? t.modifiers : h(e.modifiers) ? e.modifiers : {};
179
- let B = e.pluralRules || t && t.pluralRules, _;
180
- _ = (() => {
181
- n && Se(null);
182
- const r = {
183
- version: at,
184
- locale: c.value,
185
- fallbackLocale: u.value,
186
- messages: m.value,
187
- modifiers: j,
188
- pluralRules: B,
189
- missing: k === null ? void 0 : k,
190
- missingWarn: v,
191
- fallbackWarn: T,
192
- fallbackFormat: O,
193
- unresolving: !0,
194
- postTranslation: V === null ? void 0 : V,
195
- warnHtmlMessage: H,
196
- escapeParameter: Y,
197
- messageResolver: e.messageResolver,
198
- messageCompiler: e.messageCompiler,
199
- __meta: { framework: "vue" }
200
- };
201
- r.datetimeFormats = E.value, r.numberFormats = f.value, r.__datetimeFormatters = h(_) ? _.__datetimeFormatters : void 0, r.__numberFormatters = h(_) ? _.__numberFormatters : void 0, process.env.NODE_ENV !== "production" && (r.__v_emitter = h(_) ? _.__v_emitter : void 0);
202
- const i = Bt(r);
203
- return n && Se(i), i;
204
- })(), X(_, c.value, u.value);
205
- function fe() {
206
- return [
207
- c.value,
208
- u.value,
209
- m.value,
210
- E.value,
211
- f.value
212
- ];
213
- }
214
- const gt = J({
215
- get: () => c.value,
216
- set: (r) => {
217
- _.locale = r, c.value = r;
218
- }
219
- }), Et = J({
220
- get: () => u.value,
221
- set: (r) => {
222
- _.fallbackLocale = r, u.value = r, X(_, c.value, r);
223
- }
224
- }), dt = J(() => m.value), bt = /* @__PURE__ */ J(() => E.value), vt = /* @__PURE__ */ J(() => f.value);
225
- function It() {
226
- return $(V) ? V : null;
227
- }
228
- function pt(r) {
229
- V = r, _.postTranslation = r;
230
- }
231
- function Nt() {
232
- return y;
233
- }
234
- function Tt(r) {
235
- r !== null && (k = je(r)), y = r, _.missing = k;
236
- }
237
- function Lt(r, i) {
238
- return r !== "translate" || !i.resolvedMessage;
239
- }
240
- const M = (r, i, g, I, U, ne) => {
241
- fe();
242
- let x;
243
- try {
244
- (process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__) && Jt(/* @__PURE__ */ Fa()), n || (_.fallbackContext = t ? Kt() : void 0), x = r(_);
245
- } finally {
246
- process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__, n || (_.fallbackContext = void 0);
247
- }
248
- if (g !== "translate exists" && // for not `te` (e.g `t`)
249
- q(x) && x === zt || g === "translate exists" && !x) {
250
- const [W, Yt] = i();
251
- if (process.env.NODE_ENV !== "production" && t && d(W) && Lt(g, Yt) && (L && (qt(T, W) || Qt(v, W)) && ie(G(D.FALLBACK_TO_ROOT, {
252
- key: W,
253
- type: g
254
- })), process.env.NODE_ENV !== "production")) {
255
- const { __v_emitter: De } = _;
256
- De && L && De.emit("fallback", {
257
- type: g,
258
- key: W,
259
- to: "global",
260
- groupId: `${g}:${W}`
261
- });
262
- }
263
- return t && L ? I(t) : U(W);
264
- } else {
265
- if (ne(x))
266
- return x;
267
- throw F(b.UNEXPECTED_RETURN_TYPE);
268
- }
269
- };
270
- function ke(...r) {
271
- return M((i) => Reflect.apply(Ve, null, [i, ...r]), () => ye(...r), "translate", (i) => Reflect.apply(i.t, i, [...r]), (i) => i, (i) => d(i));
272
- }
273
- function Ot(...r) {
274
- const [i, g, I] = r;
275
- if (I && !R(I))
276
- throw F(b.INVALID_ARGUMENT);
277
- return ke(i, g, A({ resolvedMessage: !0 }, I || {}));
278
- }
279
- function ht(...r) {
280
- return M((i) => Reflect.apply(We, null, [i, ...r]), () => Ue(...r), "datetime format", (i) => Reflect.apply(i.d, i, [...r]), () => Me, (i) => d(i) || P(i));
281
- }
282
- function Ft(...r) {
283
- return M((i) => Reflect.apply(we, null, [i, ...r]), () => $e(...r), "number format", (i) => Reflect.apply(i.n, i, [...r]), () => Me, (i) => d(i) || P(i));
284
- }
285
- function Rt(r) {
286
- return r.map((i) => d(i) || q(i) || N(i) ? xe(String(i)) : i);
287
- }
288
- const kt = {
289
- normalize: Rt,
290
- interpolate: (r) => r,
291
- type: "vnode"
292
- };
293
- function Pt(...r) {
294
- return M((i) => {
295
- let g;
296
- const I = i;
297
- try {
298
- I.processor = kt, g = Reflect.apply(Ve, null, [I, ...r]);
299
- } finally {
300
- I.processor = null;
301
- }
302
- return g;
303
- }, () => ye(...r), "translate", (i) => i[de](...r), (i) => [xe(i)], (i) => P(i));
304
- }
305
- function Dt(...r) {
306
- return M((i) => Reflect.apply(we, null, [i, ...r]), () => $e(...r), "number format", (i) => i[ve](...r), He, (i) => d(i) || P(i));
307
- }
308
- function Ct(...r) {
309
- return M((i) => Reflect.apply(We, null, [i, ...r]), () => Ue(...r), "datetime format", (i) => i[be](...r), He, (i) => d(i) || P(i));
310
- }
311
- function At(r) {
312
- B = r, _.pluralRules = B;
313
- }
314
- function St(r, i) {
315
- return M(() => {
316
- if (!r)
317
- return !1;
318
- const g = d(i) ? i : c.value, I = Pe(g), U = _.messageResolver(I, r);
319
- return z(U) || ea(U) || d(U);
320
- }, () => [r], "translate exists", (g) => Reflect.apply(g.te, g, [r, i]), ha, (g) => N(g));
321
- }
322
- function yt(r) {
323
- let i = null;
324
- const g = Qe(_, u.value, c.value);
325
- for (let I = 0; I < g.length; I++) {
326
- const U = m.value[g[I]] || {}, ne = _.messageResolver(U, r);
327
- if (ne != null) {
328
- i = ne;
329
- break;
330
- }
331
- }
332
- return i;
333
- }
334
- function Vt(r) {
335
- const i = yt(r);
336
- return i ?? (t ? t.tm(r) || {} : {});
337
- }
338
- function Pe(r) {
339
- return m.value[r] || {};
340
- }
341
- function Mt(r, i) {
342
- if (a) {
343
- const g = { [r]: i };
344
- for (const I in g)
345
- oe(g, I) && ee(g[I]);
346
- i = g[r];
347
- }
348
- m.value[r] = i, _.messages = m.value;
349
- }
350
- function Ut(r, i) {
351
- m.value[r] = m.value[r] || {};
352
- const g = { [r]: i };
353
- if (a)
354
- for (const I in g)
355
- oe(g, I) && ee(g[I]);
356
- i = g[r], se(i, m.value[r]), _.messages = m.value;
357
- }
358
- function Wt(r) {
359
- return E.value[r] || {};
360
- }
361
- function $t(r, i) {
362
- E.value[r] = i, _.datetimeFormats = E.value, Ce(_, r, i);
363
- }
364
- function wt(r, i) {
365
- E.value[r] = A(E.value[r] || {}, i), _.datetimeFormats = E.value, Ce(_, r, i);
366
- }
367
- function xt(r) {
368
- return f.value[r] || {};
369
- }
370
- function Gt(r, i) {
371
- f.value[r] = i, _.numberFormats = f.value, Ae(_, r, i);
372
- }
373
- function Ht(r, i) {
374
- f.value[r] = A(f.value[r] || {}, i), _.numberFormats = f.value, Ae(_, r, i);
375
- }
376
- Ye++, t && le && (Ee(t.locale, (r) => {
377
- l && (c.value = r, _.locale = r, X(_, c.value, u.value));
378
- }), Ee(t.fallbackLocale, (r) => {
379
- l && (u.value = r, _.fallbackLocale = r, X(_, c.value, u.value));
380
- }));
381
- const p = {
382
- id: Ye,
383
- locale: gt,
384
- fallbackLocale: Et,
385
- get inheritLocale() {
386
- return l;
387
- },
388
- set inheritLocale(r) {
389
- l = r, r && t && (c.value = t.locale.value, u.value = t.fallbackLocale.value, X(_, c.value, u.value));
390
- },
391
- get availableLocales() {
392
- return Object.keys(m.value).sort();
393
- },
394
- messages: dt,
395
- get modifiers() {
396
- return j;
397
- },
398
- get pluralRules() {
399
- return B || {};
400
- },
401
- get isGlobal() {
402
- return n;
403
- },
404
- get missingWarn() {
405
- return v;
406
- },
407
- set missingWarn(r) {
408
- v = r, _.missingWarn = v;
409
- },
410
- get fallbackWarn() {
411
- return T;
412
- },
413
- set fallbackWarn(r) {
414
- T = r, _.fallbackWarn = T;
415
- },
416
- get fallbackRoot() {
417
- return L;
418
- },
419
- set fallbackRoot(r) {
420
- L = r;
421
- },
422
- get fallbackFormat() {
423
- return O;
424
- },
425
- set fallbackFormat(r) {
426
- O = r, _.fallbackFormat = O;
427
- },
428
- get warnHtmlMessage() {
429
- return H;
430
- },
431
- set warnHtmlMessage(r) {
432
- H = r, _.warnHtmlMessage = r;
433
- },
434
- get escapeParameter() {
435
- return Y;
436
- },
437
- set escapeParameter(r) {
438
- Y = r, _.escapeParameter = r;
439
- },
440
- t: ke,
441
- getLocaleMessage: Pe,
442
- setLocaleMessage: Mt,
443
- mergeLocaleMessage: Ut,
444
- getPostTranslationHandler: It,
445
- setPostTranslationHandler: pt,
446
- getMissingHandler: Nt,
447
- setMissingHandler: Tt,
448
- [nt]: At
449
- };
450
- return p.datetimeFormats = bt, p.numberFormats = vt, p.rt = Ot, p.te = St, p.tm = Vt, p.d = ht, p.n = Ft, p.getDateTimeFormat = Wt, p.setDateTimeFormat = $t, p.mergeDateTimeFormat = wt, p.getNumberFormat = xt, p.setNumberFormat = Gt, p.mergeNumberFormat = Ht, p[st] = s, p[de] = Pt, p[be] = Ct, p[ve] = Dt, process.env.NODE_ENV !== "production" && (p[w] = (r) => {
451
- _.__v_emitter = r;
452
- }, p[Z] = () => {
453
- _.__v_emitter = void 0;
454
- }), p;
455
- }
456
- const ot = "vue-i18n: composer properties", ge = {
457
- "vue-devtools-plugin-vue-i18n": "Vue I18n DevTools",
458
- "vue-i18n-resource-inspector": "Vue I18n DevTools",
459
- "vue-i18n-timeline": "Vue I18n"
460
- }, Ra = {
461
- "vue-i18n-resource-inspector": "Search for scopes ..."
462
- }, ka = {
463
- "vue-i18n-timeline": 16764185
464
- };
465
- let pe;
466
- async function Pa(e, t) {
467
- return new Promise((s, n) => {
468
- try {
469
- pa({
470
- id: "vue-devtools-plugin-vue-i18n",
471
- label: ge["vue-devtools-plugin-vue-i18n"],
472
- packageName: "vue-i18n",
473
- homepage: "https://vue-i18n.intlify.dev",
474
- logo: "https://vue-i18n.intlify.dev/vue-i18n-devtools-logo.png",
475
- componentStateTypes: [ot],
476
- app: e
477
- // eslint-disable-line @typescript-eslint/no-explicit-any
478
- }, (a) => {
479
- pe = a, a.on.visitComponentTree(({ componentInstance: l, treeNode: c }) => {
480
- Da(l, c, t);
481
- }), a.on.inspectComponent(({ componentInstance: l, instanceData: c }) => {
482
- l.vnode.el && l.vnode.el.__VUE_I18N__ && c && (t.mode === "legacy" ? l.vnode.el.__VUE_I18N__ !== t.global.__composer && Be(c, l.vnode.el.__VUE_I18N__) : Be(c, l.vnode.el.__VUE_I18N__));
483
- }), a.addInspector({
484
- id: "vue-i18n-resource-inspector",
485
- label: ge["vue-i18n-resource-inspector"],
486
- icon: "language",
487
- treeFilterPlaceholder: Ra["vue-i18n-resource-inspector"]
488
- }), a.on.getInspectorTree((l) => {
489
- l.app === e && l.inspectorId === "vue-i18n-resource-inspector" && Va(l, t);
490
- });
491
- const o = /* @__PURE__ */ new Map();
492
- a.on.getInspectorState(async (l) => {
493
- if (l.app === e && l.inspectorId === "vue-i18n-resource-inspector")
494
- if (a.unhighlightElement(), Ua(l, t), l.nodeId === "global") {
495
- if (!o.has(l.app)) {
496
- const [c] = await a.getComponentInstances(l.app);
497
- o.set(l.app, c);
498
- }
499
- a.highlightElement(o.get(l.app));
500
- } else {
501
- const c = Ma(l.nodeId, t);
502
- c && a.highlightElement(c);
503
- }
504
- }), a.on.editInspectorState((l) => {
505
- l.app === e && l.inspectorId === "vue-i18n-resource-inspector" && $a(l, t);
506
- }), a.addTimelineLayer({
507
- id: "vue-i18n-timeline",
508
- label: ge["vue-i18n-timeline"],
509
- color: ka["vue-i18n-timeline"]
510
- }), s(!0);
511
- });
512
- } catch (a) {
513
- console.error(a), n(!1);
514
- }
515
- });
516
- }
517
- function it(e) {
518
- return e.type.name || e.type.displayName || e.type.__file || "Anonymous";
519
- }
520
- function Da(e, t, s) {
521
- const n = s.mode === "composition" ? s.global : s.global.__composer;
522
- if (e && e.vnode.el && e.vnode.el.__VUE_I18N__ && e.vnode.el.__VUE_I18N__ !== n) {
523
- const a = {
524
- label: `i18n (${it(e)} Scope)`,
525
- textColor: 0,
526
- backgroundColor: 16764185
527
- };
528
- t.tags.push(a);
529
- }
530
- }
531
- function Be(e, t) {
532
- const s = ot;
533
- e.state.push({
534
- type: s,
535
- key: "locale",
536
- editable: !0,
537
- value: t.locale.value
538
- }), e.state.push({
539
- type: s,
540
- key: "availableLocales",
541
- editable: !1,
542
- value: t.availableLocales
543
- }), e.state.push({
544
- type: s,
545
- key: "fallbackLocale",
546
- editable: !0,
547
- value: t.fallbackLocale.value
548
- }), e.state.push({
549
- type: s,
550
- key: "inheritLocale",
551
- editable: !0,
552
- value: t.inheritLocale
553
- }), e.state.push({
554
- type: s,
555
- key: "messages",
556
- editable: !1,
557
- value: Fe(t.messages.value)
558
- }), e.state.push({
559
- type: s,
560
- key: "datetimeFormats",
561
- editable: !1,
562
- value: t.datetimeFormats.value
563
- }), e.state.push({
564
- type: s,
565
- key: "numberFormats",
566
- editable: !1,
567
- value: t.numberFormats.value
568
- });
569
- }
570
- function Fe(e) {
571
- const t = {};
572
- return Object.keys(e).forEach((s) => {
573
- const n = e[s];
574
- $(n) && "source" in n ? t[s] = ya(n) : z(n) && n.loc && n.loc.source ? t[s] = n.loc.source : R(n) ? t[s] = Fe(n) : t[s] = n;
575
- }), t;
576
- }
577
- const Ca = {
578
- "<": "&lt;",
579
- ">": "&gt;",
580
- '"': "&quot;",
581
- "&": "&amp;"
582
- };
583
- function Aa(e) {
584
- return e.replace(/[<>"&]/g, Sa);
585
- }
586
- function Sa(e) {
587
- return Ca[e] || e;
588
- }
589
- function ya(e) {
590
- return {
591
- _custom: {
592
- type: "function",
593
- display: `<span>ƒ</span> ${e.source ? `("${Aa(e.source)}")` : "(?)"}`
594
- }
595
- };
596
- }
597
- function Va(e, t) {
598
- e.rootNodes.push({
599
- id: "global",
600
- label: "Global Scope"
601
- });
602
- const s = t.mode === "composition" ? t.global : t.global.__composer;
603
- for (const [n, a] of t.__instances) {
604
- const o = t.mode === "composition" ? a : a.__composer;
605
- s !== o && e.rootNodes.push({
606
- id: o.id.toString(),
607
- label: `${it(n)} Scope`
608
- });
609
- }
610
- }
611
- function Ma(e, t) {
612
- let s = null;
613
- if (e !== "global") {
614
- for (const [n, a] of t.__instances.entries())
615
- if (a.id.toString() === e) {
616
- s = n;
617
- break;
618
- }
619
- }
620
- return s;
621
- }
622
- function ct(e, t) {
623
- if (e === "global")
624
- return t.mode === "composition" ? t.global : t.global.__composer;
625
- {
626
- const s = Array.from(t.__instances.values()).find((n) => n.id.toString() === e);
627
- return s ? t.mode === "composition" ? s : s.__composer : null;
628
- }
629
- }
630
- function Ua(e, t) {
631
- const s = ct(e.nodeId, t);
632
- return s && (e.state = Wa(s)), null;
633
- }
634
- function Wa(e) {
635
- const t = {}, s = "Locale related info", n = [
636
- {
637
- type: s,
638
- key: "locale",
639
- editable: !0,
640
- value: e.locale.value
641
- },
642
- {
643
- type: s,
644
- key: "fallbackLocale",
645
- editable: !0,
646
- value: e.fallbackLocale.value
647
- },
648
- {
649
- type: s,
650
- key: "availableLocales",
651
- editable: !1,
652
- value: e.availableLocales
653
- },
654
- {
655
- type: s,
656
- key: "inheritLocale",
657
- editable: !0,
658
- value: e.inheritLocale
659
- }
660
- ];
661
- t[s] = n;
662
- const a = "Locale messages info", o = [
663
- {
664
- type: a,
665
- key: "messages",
666
- editable: !1,
667
- value: Fe(e.messages.value)
668
- }
669
- ];
670
- t[a] = o;
671
- {
672
- const l = "Datetime formats info", c = [
673
- {
674
- type: l,
675
- key: "datetimeFormats",
676
- editable: !1,
677
- value: e.datetimeFormats.value
678
- }
679
- ];
680
- t[l] = c;
681
- const u = "Datetime formats info", m = [
682
- {
683
- type: u,
684
- key: "numberFormats",
685
- editable: !1,
686
- value: e.numberFormats.value
687
- }
688
- ];
689
- t[u] = m;
690
- }
691
- return t;
692
- }
693
- function te(e, t) {
694
- if (pe) {
695
- let s;
696
- t && "groupId" in t && (s = t.groupId, delete t.groupId), pe.addTimelineEvent({
697
- layerId: "vue-i18n-timeline",
698
- event: {
699
- title: e,
700
- groupId: s,
701
- time: Date.now(),
702
- meta: {},
703
- data: t || {},
704
- logType: e === "compile-error" ? "error" : e === "fallback" || e === "missing" ? "warning" : "default"
705
- }
706
- });
707
- }
708
- }
709
- function $a(e, t) {
710
- const s = ct(e.nodeId, t);
711
- if (s) {
712
- const [n] = e.path;
713
- n === "locale" && d(e.state.value) ? s.locale.value = e.state.value : n === "fallbackLocale" && (d(e.state.value) || P(e.state.value) || R(e.state.value)) ? s.fallbackLocale.value = e.state.value : n === "inheritLocale" && N(e.state.value) && (s.inheritLocale = e.state.value);
714
- }
715
- }
716
- function wa(e) {
717
- const t = d(e.locale) ? e.locale : qe, s = d(e.fallbackLocale) || P(e.fallbackLocale) || h(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : t, n = $(e.missing) ? e.missing : void 0, a = N(e.silentTranslationWarn) || re(e.silentTranslationWarn) ? !e.silentTranslationWarn : !0, o = N(e.silentFallbackWarn) || re(e.silentFallbackWarn) ? !e.silentFallbackWarn : !0, l = N(e.fallbackRoot) ? e.fallbackRoot : !0, c = !!e.formatFallbackMessages, u = h(e.modifiers) ? e.modifiers : {}, m = e.pluralizationRules, E = $(e.postTranslation) ? e.postTranslation : void 0, f = d(e.warnHtmlInMessage) ? e.warnHtmlInMessage !== "off" : !0, v = !!e.escapeParameterHtml, T = N(e.sync) ? e.sync : !0;
718
- let L = e.messages;
719
- if (h(e.sharedMessages)) {
720
- const j = e.sharedMessages;
721
- L = Object.keys(j).reduce((_, ae) => {
722
- const fe = _[ae] || (_[ae] = {});
723
- return A(fe, j[ae]), _;
724
- }, L || {});
725
- }
726
- const { __i18n: O, __root: y, __injectWithOption: k } = e, V = e.datetimeFormats, H = e.numberFormats, Y = e.flatJson;
727
- return {
728
- locale: t,
729
- fallbackLocale: s,
730
- messages: L,
731
- flatJson: Y,
732
- datetimeFormats: V,
733
- numberFormats: H,
734
- missing: n,
735
- missingWarn: a,
736
- fallbackWarn: o,
737
- fallbackRoot: l,
738
- fallbackFormat: c,
739
- modifiers: u,
740
- pluralRules: m,
741
- postTranslation: E,
742
- warnHtmlMessage: f,
743
- escapeParameter: v,
744
- messageResolver: e.messageResolver,
745
- inheritLocale: T,
746
- __i18n: O,
747
- __root: y,
748
- __injectWithOption: k
749
- };
750
- }
751
- function Ne(e = {}) {
752
- const t = he(wa(e)), { __extender: s } = e, n = {
753
- // id
754
- id: t.id,
755
- // locale
756
- get locale() {
757
- return t.locale.value;
758
- },
759
- set locale(a) {
760
- t.locale.value = a;
761
- },
762
- // fallbackLocale
763
- get fallbackLocale() {
764
- return t.fallbackLocale.value;
765
- },
766
- set fallbackLocale(a) {
767
- t.fallbackLocale.value = a;
768
- },
769
- // messages
770
- get messages() {
771
- return t.messages.value;
772
- },
773
- // datetimeFormats
774
- get datetimeFormats() {
775
- return t.datetimeFormats.value;
776
- },
777
- // numberFormats
778
- get numberFormats() {
779
- return t.numberFormats.value;
780
- },
781
- // availableLocales
782
- get availableLocales() {
783
- return t.availableLocales;
784
- },
785
- // missing
786
- get missing() {
787
- return t.getMissingHandler();
788
- },
789
- set missing(a) {
790
- t.setMissingHandler(a);
791
- },
792
- // silentTranslationWarn
793
- get silentTranslationWarn() {
794
- return N(t.missingWarn) ? !t.missingWarn : t.missingWarn;
795
- },
796
- set silentTranslationWarn(a) {
797
- t.missingWarn = N(a) ? !a : a;
798
- },
799
- // silentFallbackWarn
800
- get silentFallbackWarn() {
801
- return N(t.fallbackWarn) ? !t.fallbackWarn : t.fallbackWarn;
802
- },
803
- set silentFallbackWarn(a) {
804
- t.fallbackWarn = N(a) ? !a : a;
805
- },
806
- // modifiers
807
- get modifiers() {
808
- return t.modifiers;
809
- },
810
- // formatFallbackMessages
811
- get formatFallbackMessages() {
812
- return t.fallbackFormat;
813
- },
814
- set formatFallbackMessages(a) {
815
- t.fallbackFormat = a;
816
- },
817
- // postTranslation
818
- get postTranslation() {
819
- return t.getPostTranslationHandler();
820
- },
821
- set postTranslation(a) {
822
- t.setPostTranslationHandler(a);
823
- },
824
- // sync
825
- get sync() {
826
- return t.inheritLocale;
827
- },
828
- set sync(a) {
829
- t.inheritLocale = a;
830
- },
831
- // warnInHtmlMessage
832
- get warnHtmlInMessage() {
833
- return t.warnHtmlMessage ? "warn" : "off";
834
- },
835
- set warnHtmlInMessage(a) {
836
- t.warnHtmlMessage = a !== "off";
837
- },
838
- // escapeParameterHtml
839
- get escapeParameterHtml() {
840
- return t.escapeParameter;
841
- },
842
- set escapeParameterHtml(a) {
843
- t.escapeParameter = a;
844
- },
845
- // pluralizationRules
846
- get pluralizationRules() {
847
- return t.pluralRules || {};
848
- },
849
- // for internal
850
- __composer: t,
851
- // t
852
- t(...a) {
853
- return Reflect.apply(t.t, t, [...a]);
854
- },
855
- // rt
856
- rt(...a) {
857
- return Reflect.apply(t.rt, t, [...a]);
858
- },
859
- // te
860
- te(a, o) {
861
- return t.te(a, o);
862
- },
863
- // tm
864
- tm(a) {
865
- return t.tm(a);
866
- },
867
- // getLocaleMessage
868
- getLocaleMessage(a) {
869
- return t.getLocaleMessage(a);
870
- },
871
- // setLocaleMessage
872
- setLocaleMessage(a, o) {
873
- t.setLocaleMessage(a, o);
874
- },
875
- // mergeLocaleMessage
876
- mergeLocaleMessage(a, o) {
877
- t.mergeLocaleMessage(a, o);
878
- },
879
- // d
880
- d(...a) {
881
- return Reflect.apply(t.d, t, [...a]);
882
- },
883
- // getDateTimeFormat
884
- getDateTimeFormat(a) {
885
- return t.getDateTimeFormat(a);
886
- },
887
- // setDateTimeFormat
888
- setDateTimeFormat(a, o) {
889
- t.setDateTimeFormat(a, o);
890
- },
891
- // mergeDateTimeFormat
892
- mergeDateTimeFormat(a, o) {
893
- t.mergeDateTimeFormat(a, o);
894
- },
895
- // n
896
- n(...a) {
897
- return Reflect.apply(t.n, t, [...a]);
898
- },
899
- // getNumberFormat
900
- getNumberFormat(a) {
901
- return t.getNumberFormat(a);
902
- },
903
- // setNumberFormat
904
- setNumberFormat(a, o) {
905
- t.setNumberFormat(a, o);
906
- },
907
- // mergeNumberFormat
908
- mergeNumberFormat(a, o) {
909
- t.mergeNumberFormat(a, o);
910
- }
911
- };
912
- return n.__extender = s, process.env.NODE_ENV !== "production" && (n.__enableEmitter = (a) => {
913
- const o = t;
914
- o[w] && o[w](a);
915
- }, n.__disableEmitter = () => {
916
- const a = t;
917
- a[Z] && a[Z]();
918
- }), n;
919
- }
920
- function xa(e, t, s) {
921
- return {
922
- beforeCreate() {
923
- const n = Q();
924
- if (!n)
925
- throw F(b.UNEXPECTED_ERROR);
926
- const a = this.$options;
927
- if (a.i18n) {
928
- const o = a.i18n;
929
- if (a.__i18n && (o.__i18n = a.__i18n), o.__root = t, this === this.$root)
930
- this.$i18n = Xe(e, o);
931
- else {
932
- o.__injectWithOption = !0, o.__extender = s.__vueI18nExtend, this.$i18n = Ne(o);
933
- const l = this.$i18n;
934
- l.__extender && (l.__disposer = l.__extender(this.$i18n));
935
- }
936
- } else if (a.__i18n)
937
- if (this === this.$root)
938
- this.$i18n = Xe(e, a);
939
- else {
940
- this.$i18n = Ne({
941
- __i18n: a.__i18n,
942
- __injectWithOption: !0,
943
- __extender: s.__vueI18nExtend,
944
- __root: t
945
- });
946
- const o = this.$i18n;
947
- o.__extender && (o.__disposer = o.__extender(this.$i18n));
948
- }
949
- else
950
- this.$i18n = e;
951
- a.__i18nGlobal && lt(t, a, a), this.$t = (...o) => this.$i18n.t(...o), this.$rt = (...o) => this.$i18n.rt(...o), this.$te = (o, l) => this.$i18n.te(o, l), this.$d = (...o) => this.$i18n.d(...o), this.$n = (...o) => this.$i18n.n(...o), this.$tm = (o) => this.$i18n.tm(o), s.__setInstance(n, this.$i18n);
952
- },
953
- mounted() {
954
- if (process.env.NODE_ENV !== "production" && this.$el && this.$i18n) {
955
- const n = this.$i18n;
956
- this.$el.__VUE_I18N__ = n.__composer;
957
- const a = this.__v_emitter = Te();
958
- n.__enableEmitter && n.__enableEmitter(a), a.on("*", te);
959
- }
960
- },
961
- unmounted() {
962
- const n = Q();
963
- if (!n)
964
- throw F(b.UNEXPECTED_ERROR);
965
- const a = this.$i18n;
966
- process.env.NODE_ENV !== "production" && this.$el && this.$el.__VUE_I18N__ && (this.__v_emitter && (this.__v_emitter.off("*", te), delete this.__v_emitter), this.$i18n && (a.__disableEmitter && a.__disableEmitter(), delete this.$el.__VUE_I18N__)), delete this.$t, delete this.$rt, delete this.$te, delete this.$d, delete this.$n, delete this.$tm, a.__disposer && (a.__disposer(), delete a.__disposer, delete a.__extender), s.__deleteInstance(n), delete this.$i18n;
967
- }
968
- };
969
- }
970
- function Xe(e, t) {
971
- e.locale = t.locale || e.locale, e.fallbackLocale = t.fallbackLocale || e.fallbackLocale, e.missing = t.missing || e.missing, e.silentTranslationWarn = t.silentTranslationWarn || e.silentFallbackWarn, e.silentFallbackWarn = t.silentFallbackWarn || e.silentFallbackWarn, e.formatFallbackMessages = t.formatFallbackMessages || e.formatFallbackMessages, e.postTranslation = t.postTranslation || e.postTranslation, e.warnHtmlInMessage = t.warnHtmlInMessage || e.warnHtmlInMessage, e.escapeParameterHtml = t.escapeParameterHtml || e.escapeParameterHtml, e.sync = t.sync || e.sync, e.__composer[nt](t.pluralizationRules || e.pluralizationRules);
972
- const s = Oe(e.locale, {
973
- messages: t.messages,
974
- __i18n: t.__i18n
975
- });
976
- return Object.keys(s).forEach((n) => e.mergeLocaleMessage(n, s[n])), t.datetimeFormats && Object.keys(t.datetimeFormats).forEach((n) => e.mergeDateTimeFormat(n, t.datetimeFormats[n])), t.numberFormats && Object.keys(t.numberFormats).forEach((n) => e.mergeNumberFormat(n, t.numberFormats[n])), e;
977
- }
978
- const Re = {
979
- tag: {
980
- type: [String, Object]
981
- },
982
- locale: {
983
- type: String
984
- },
985
- scope: {
986
- type: String,
987
- // NOTE: avoid https://github.com/microsoft/rushstack/issues/1050
988
- validator: (e) => e === "parent" || e === "global",
989
- default: "parent"
990
- /* ComponentI18nScope */
991
- },
992
- i18n: {
993
- type: Object
994
- }
995
- };
996
- function Ga({ slots: e }, t) {
997
- return t.length === 1 && t[0] === "default" ? (e.default ? e.default() : []).reduce((n, a) => [
998
- ...n,
999
- // prettier-ignore
1000
- ...a.type === tt ? a.children : [a]
1001
- ], []) : t.reduce((s, n) => {
1002
- const a = e[n];
1003
- return a && (s[n] = a()), s;
1004
- }, C());
1005
- }
1006
- function _t() {
1007
- return tt;
1008
- }
1009
- const Ha = /* @__PURE__ */ Le({
1010
- /* eslint-disable */
1011
- name: "i18n-t",
1012
- props: A({
1013
- keypath: {
1014
- type: String,
1015
- required: !0
1016
- },
1017
- plural: {
1018
- type: [Number, String],
1019
- validator: (e) => q(e) || !isNaN(e)
1020
- }
1021
- }, Re),
1022
- /* eslint-enable */
1023
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
1024
- setup(e, t) {
1025
- const { slots: s, attrs: n } = t, a = e.i18n || me({
1026
- useScope: e.scope,
1027
- __useComponent: !0
1028
- });
1029
- return () => {
1030
- const o = Object.keys(s).filter((f) => f[0] !== "_"), l = C();
1031
- e.locale && (l.locale = e.locale), e.plural !== void 0 && (l.plural = d(e.plural) ? +e.plural : e.plural);
1032
- const c = Ga(t, o), u = a[de](e.keypath, c, l), m = A(C(), n), E = d(e.tag) || R(e.tag) ? e.tag : _t();
1033
- return et(E, m, u);
1034
- };
1035
- }
1036
- }), ce = Ha, Ya = ce;
1037
- function ja(e) {
1038
- return P(e) && !d(e[0]);
1039
- }
1040
- function ut(e, t, s, n) {
1041
- const { slots: a, attrs: o } = t;
1042
- return () => {
1043
- const l = { part: !0 };
1044
- let c = C();
1045
- e.locale && (l.locale = e.locale), d(e.format) ? l.key = e.format : R(e.format) && (d(e.format.key) && (l.key = e.format.key), c = Object.keys(e.format).reduce((v, T) => s.includes(T) ? A(C(), v, { [T]: e.format[T] }) : v, C()));
1046
- const u = n(e.value, l, c);
1047
- let m = [l.key];
1048
- P(u) ? m = u.map((v, T) => {
1049
- const L = a[v.type], O = L ? L({ [v.type]: v.value, index: T, parts: u }) : [v.value];
1050
- return ja(O) && (O[0].key = `${v.type}-${T}`), O;
1051
- }) : d(u) && (m = [u]);
1052
- const E = A(C(), o), f = d(e.tag) || R(e.tag) ? e.tag : _t();
1053
- return et(f, E, m);
1054
- };
1055
- }
1056
- const Ba = /* @__PURE__ */ Le({
1057
- /* eslint-disable */
1058
- name: "i18n-n",
1059
- props: A({
1060
- value: {
1061
- type: Number,
1062
- required: !0
1063
- },
1064
- format: {
1065
- type: [String, Object]
1066
- }
1067
- }, Re),
1068
- /* eslint-enable */
1069
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
1070
- setup(e, t) {
1071
- const s = e.i18n || me({
1072
- useScope: e.scope,
1073
- __useComponent: !0
1074
- });
1075
- return ut(e, t, ta, (...n) => (
1076
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
1077
- s[ve](...n)
1078
- ));
1079
- }
1080
- }), _e = Ba, Xa = _e;
1081
- function Ja(e, t) {
1082
- const s = e;
1083
- if (e.mode === "composition")
1084
- return s.__getInstance(t) || e.global;
1085
- {
1086
- const n = s.__getInstance(t);
1087
- return n != null ? n.__composer : e.global.__composer;
1088
- }
1089
- }
1090
- function mt(e) {
1091
- const t = (l) => {
1092
- process.env.NODE_ENV !== "production" && Ze(G(D.DEPRECATE_TRANSLATE_CUSTOME_DIRECTIVE));
1093
- const { instance: c, value: u } = l;
1094
- if (!c || !c.$)
1095
- throw F(b.UNEXPECTED_ERROR);
1096
- const m = Ja(e, c.$), E = Je(u);
1097
- return [
1098
- Reflect.apply(m.t, m, [...Ke(E)]),
1099
- m
1100
- ];
1101
- };
1102
- return {
1103
- created: (l, c) => {
1104
- const [u, m] = t(c);
1105
- le && e.global === m && (l.__i18nWatcher = Ee(m.locale, () => {
1106
- c.instance && c.instance.$forceUpdate();
1107
- })), l.__composer = m, l.textContent = u;
1108
- },
1109
- unmounted: (l) => {
1110
- le && l.__i18nWatcher && (l.__i18nWatcher(), l.__i18nWatcher = void 0, delete l.__i18nWatcher), l.__composer && (l.__composer = void 0, delete l.__composer);
1111
- },
1112
- beforeUpdate: (l, { value: c }) => {
1113
- if (l.__composer) {
1114
- const u = l.__composer, m = Je(c);
1115
- l.textContent = Reflect.apply(u.t, u, [
1116
- ...Ke(m)
1117
- ]);
1118
- }
1119
- },
1120
- getSSRProps: (l) => {
1121
- const [c] = t(l);
1122
- return { textContent: c };
1123
- }
1124
- };
1125
- }
1126
- function Je(e) {
1127
- if (d(e))
1128
- return { path: e };
1129
- if (h(e)) {
1130
- if (!("path" in e))
1131
- throw F(b.REQUIRED_VALUE, "path");
1132
- return e;
1133
- } else
1134
- throw F(b.INVALID_VALUE);
1135
- }
1136
- function Ke(e) {
1137
- const { path: t, locale: s, args: n, choice: a, plural: o } = e, l = {}, c = n || {};
1138
- return d(s) && (l.locale = s), q(a) && (l.plural = a), q(o) && (l.plural = o), [t, c, l];
1139
- }
1140
- function Ka(e, t, ...s) {
1141
- const n = h(s[0]) ? s[0] : {};
1142
- (N(n.globalInstall) ? n.globalInstall : !0) && ([ce.name, "I18nT"].forEach((o) => e.component(o, ce)), [_e.name, "I18nN"].forEach((o) => e.component(o, _e)), [ue.name, "I18nD"].forEach((o) => e.component(o, ue))), e.directive("t", mt(t));
1143
- }
1144
- const ft = /* @__PURE__ */ S("global-vue-i18n");
1145
- function za(e = {}) {
1146
- const t = __VUE_I18N_LEGACY_API__ && N(e.legacy) ? e.legacy : __VUE_I18N_LEGACY_API__;
1147
- process.env.NODE_ENV !== "production" && t && Ze(G(D.DEPRECATE_LEGACY_MODE));
1148
- const s = N(e.globalInjection) ? e.globalInjection : !0, n = /* @__PURE__ */ new Map(), [a, o] = qa(e, t), l = /* @__PURE__ */ S(process.env.NODE_ENV !== "production" ? "vue-i18n" : "");
1149
- function c(f) {
1150
- return n.get(f) || null;
1151
- }
1152
- function u(f, v) {
1153
- n.set(f, v);
1154
- }
1155
- function m(f) {
1156
- n.delete(f);
1157
- }
1158
- const E = {
1159
- // mode
1160
- get mode() {
1161
- return __VUE_I18N_LEGACY_API__ && t ? "legacy" : "composition";
1162
- },
1163
- // install plugin
1164
- async install(f, ...v) {
1165
- if (process.env.NODE_ENV !== "production" && (f.__VUE_I18N__ = E), f.__VUE_I18N_SYMBOL__ = l, f.provide(f.__VUE_I18N_SYMBOL__, E), h(v[0])) {
1166
- const O = v[0];
1167
- E.__composerExtend = O.__composerExtend, E.__vueI18nExtend = O.__vueI18nExtend;
1168
- }
1169
- let T = null;
1170
- !t && s && (T = rn(f, E.global)), __VUE_I18N_FULL_INSTALL__ && Ka(f, E, ...v), __VUE_I18N_LEGACY_API__ && t && f.mixin(xa(o, o.__composer, E));
1171
- const L = f.unmount;
1172
- if (f.unmount = () => {
1173
- T && T(), E.dispose(), L();
1174
- }, process.env.NODE_ENV !== "production") {
1175
- if (!await Pa(f, E))
1176
- throw F(b.CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN);
1177
- const y = Te();
1178
- if (t) {
1179
- const k = o;
1180
- k.__enableEmitter && k.__enableEmitter(y);
1181
- } else {
1182
- const k = o;
1183
- k[w] && k[w](y);
1184
- }
1185
- y.on("*", te);
1186
- }
1187
- },
1188
- // global accessor
1189
- get global() {
1190
- return o;
1191
- },
1192
- dispose() {
1193
- a.stop();
1194
- },
1195
- // @internal
1196
- __instances: n,
1197
- // @internal
1198
- __getInstance: c,
1199
- // @internal
1200
- __setInstance: u,
1201
- // @internal
1202
- __deleteInstance: m
1203
- };
1204
- return E;
1205
- }
1206
- function me(e = {}) {
1207
- const t = Q();
1208
- if (t == null)
1209
- throw F(b.MUST_BE_CALL_SETUP_TOP);
1210
- if (!t.isCE && t.appContext.app != null && !t.appContext.app.__VUE_I18N_SYMBOL__)
1211
- throw F(b.NOT_INSTALLED);
1212
- const s = Qa(t), n = en(s), a = rt(t), o = Za(e, a);
1213
- if (o === "global")
1214
- return lt(n, e, a), n;
1215
- if (o === "parent") {
1216
- let u = tn(s, t, e.__useComponent);
1217
- return u == null && (process.env.NODE_ENV !== "production" && ie(G(D.NOT_FOUND_PARENT_SCOPE)), u = n), u;
1218
- }
1219
- const l = s;
1220
- let c = l.__getInstance(t);
1221
- if (c == null) {
1222
- const u = A({}, e);
1223
- "__i18n" in a && (u.__i18n = a.__i18n), n && (u.__root = n), c = he(u), l.__composerExtend && (c[Ie] = l.__composerExtend(c)), nn(l, t, c), l.__setInstance(t, c);
1224
- } else
1225
- process.env.NODE_ENV !== "production" && o === "local" && ie(G(D.DUPLICATE_USE_I18N_CALLING));
1226
- return c;
1227
- }
1228
- function qa(e, t) {
1229
- const s = ua(), n = __VUE_I18N_LEGACY_API__ && t ? s.run(() => Ne(e)) : s.run(() => he(e));
1230
- if (n == null)
1231
- throw F(b.UNEXPECTED_ERROR);
1232
- return [s, n];
1233
- }
1234
- function Qa(e) {
1235
- const t = Ea(e.isCE ? ft : e.appContext.app.__VUE_I18N_SYMBOL__);
1236
- if (!t)
1237
- throw F(e.isCE ? b.NOT_INSTALLED_WITH_PROVIDE : b.UNEXPECTED_ERROR);
1238
- return t;
1239
- }
1240
- function Za(e, t) {
1241
- return _a(e) ? "__i18n" in t ? "local" : "global" : e.useScope ? e.useScope : "local";
1242
- }
1243
- function en(e) {
1244
- return e.mode === "composition" ? e.global : e.global.__composer;
1245
- }
1246
- function tn(e, t, s = !1) {
1247
- let n = null;
1248
- const a = t.root;
1249
- let o = an(t, s);
1250
- for (; o != null; ) {
1251
- const l = e;
1252
- if (e.mode === "composition")
1253
- n = l.__getInstance(o);
1254
- else if (__VUE_I18N_LEGACY_API__) {
1255
- const c = l.__getInstance(o);
1256
- c != null && (n = c.__composer, s && n && !n[st] && (n = null));
1257
- }
1258
- if (n != null || a === o)
1259
- break;
1260
- o = o.parent;
1261
- }
1262
- return n;
1263
- }
1264
- function an(e, t = !1) {
1265
- return e == null ? null : t && e.vnode.ctx || e.parent;
1266
- }
1267
- function nn(e, t, s) {
1268
- let n = null;
1269
- da(() => {
1270
- if (process.env.NODE_ENV !== "production" && t.vnode.el) {
1271
- t.vnode.el.__VUE_I18N__ = s, n = Te();
1272
- const a = s;
1273
- a[w] && a[w](n), n.on("*", te);
1274
- }
1275
- }, t), ba(() => {
1276
- const a = s;
1277
- process.env.NODE_ENV !== "production" && t.vnode.el && t.vnode.el.__VUE_I18N__ && (n && n.off("*", te), a[Z] && a[Z](), delete t.vnode.el.__VUE_I18N__), e.__deleteInstance(t);
1278
- const o = a[Ie];
1279
- o && (o(), delete a[Ie]);
1280
- }, t);
1281
- }
1282
- const sn = [
1283
- "locale",
1284
- "fallbackLocale",
1285
- "availableLocales"
1286
- ], ze = ["t", "rt", "d", "n", "tm", "te"];
1287
- function rn(e, t) {
1288
- const s = /* @__PURE__ */ Object.create(null);
1289
- return sn.forEach((a) => {
1290
- const o = Object.getOwnPropertyDescriptor(t, a);
1291
- if (!o)
1292
- throw F(b.UNEXPECTED_ERROR);
1293
- const l = ga(o.value) ? {
1294
- get() {
1295
- return o.value.value;
1296
- },
1297
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
1298
- set(c) {
1299
- o.value.value = c;
1300
- }
1301
- } : {
1302
- get() {
1303
- return o.get && o.get();
1304
- }
1305
- };
1306
- Object.defineProperty(s, a, l);
1307
- }), e.config.globalProperties.$i18n = s, ze.forEach((a) => {
1308
- const o = Object.getOwnPropertyDescriptor(t, a);
1309
- if (!o || !o.value)
1310
- throw F(b.UNEXPECTED_ERROR);
1311
- Object.defineProperty(e.config.globalProperties, `$${a}`, o);
1312
- }), () => {
1313
- delete e.config.globalProperties.$i18n, ze.forEach((a) => {
1314
- delete e.config.globalProperties[`$${a}`];
1315
- });
1316
- };
1317
- }
1318
- const ln = /* @__PURE__ */ Le({
1319
- /* eslint-disable */
1320
- name: "i18n-d",
1321
- props: A({
1322
- value: {
1323
- type: [Number, Date],
1324
- required: !0
1325
- },
1326
- format: {
1327
- type: [String, Object]
1328
- }
1329
- }, Re),
1330
- /* eslint-enable */
1331
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
1332
- setup(e, t) {
1333
- const s = e.i18n || me({
1334
- useScope: e.scope,
1335
- __useComponent: !0
1336
- });
1337
- return ut(e, t, aa, (...n) => (
1338
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
1339
- s[be](...n)
1340
- ));
1341
- }
1342
- }), ue = ln, on = ue;
1343
- Ta();
1344
- na(oa);
1345
- sa(ia);
1346
- ra(Qe);
1347
- if (process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__) {
1348
- const e = K();
1349
- e.__INTLIFY__ = !0, la(e.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__);
1350
- }
1351
- process.env.NODE_ENV;
1352
- const En = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1353
- __proto__: null,
1354
- DatetimeFormat: ue,
1355
- I18nD: on,
1356
- I18nInjectionKey: ft,
1357
- I18nN: Xa,
1358
- I18nT: Ya,
1359
- NumberFormat: _e,
1360
- Translation: ce,
1361
- VERSION: at,
1362
- createI18n: za,
1363
- useI18n: me,
1364
- vTDirective: mt
1365
- }, Symbol.toStringTag, { value: "Module" }));
1366
- export {
1367
- En as V,
1368
- za as c,
1369
- me as u
1370
- };