@ozdao/prometheus-framework 0.1.40 → 0.1.42

Sign up to get free protection for your applications and to get access to all the features.
Files changed (868) hide show
  1. package/dist/LeftoverAdd-5a8988d9.js +1 -0
  2. package/dist/{LeftoverAdd-08d9fb54.mjs → LeftoverAdd-c4f37f47.mjs} +4 -5
  3. package/dist/{Leftovers-296c0042.js → Leftovers-470a1689.js} +1 -1
  4. package/dist/{Leftovers-685d9f19.mjs → Leftovers-69c7dcd9.mjs} +1 -1
  5. package/dist/{Members-7251dd52.mjs → Members-87278466.mjs} +3 -3
  6. package/dist/{Members-d35ab7e8.js → Members-bbcb79ae.js} +1 -1
  7. package/dist/{Product-299070ad.mjs → Product-2f8e6943.mjs} +2 -2
  8. package/dist/{Product-aacb05f3.js → Product-4a834930.js} +1 -1
  9. package/dist/{ProductEdit-70bed802.mjs → ProductEdit-959b3cd3.mjs} +4 -5
  10. package/dist/ProductEdit-bae5e898.js +1 -0
  11. package/dist/ProductsBackoffice-0716123f.js +1 -0
  12. package/dist/{ProductsBackoffice-3d987c60.mjs → ProductsBackoffice-a36ecbc6.mjs} +3 -4
  13. package/dist/backoffice.client.cjs +1 -1
  14. package/dist/backoffice.client.js +7 -7
  15. package/dist/{categories-52a561a4.mjs → categories-5b08da53.mjs} +14 -15
  16. package/dist/categories-7ccd6be9.js +1 -0
  17. package/dist/{leftovers-be37c7a5.mjs → leftovers-5d1ff88b.mjs} +6 -6
  18. package/dist/leftovers-b60180cf.js +1 -0
  19. package/dist/{organizations.client-8f263e28.js → organizations.client-7e11a989.js} +2 -2
  20. package/dist/{organizations.client-9ffc023f.mjs → organizations.client-e519ef17.mjs} +6 -6
  21. package/dist/organizations.client.cjs +1 -1
  22. package/dist/organizations.client.js +3 -3
  23. package/dist/products-3c43eb18.js +1 -0
  24. package/dist/{products-aabe5c02.mjs → products-943fb95e.mjs} +2 -3
  25. package/package.json +1 -1
  26. package/src/components/Sidebar/Sidebar.vue +8 -10
  27. package/src/modules/backoffice/components/admin/ProductEdit.vue +0 -2
  28. package/src/modules/products/components/sections/FilterProducts.vue +2 -0
  29. package/src/modules/products/components/sections/SortProducts.vue +0 -2
  30. package/src/modules/products/store/categories.js +9 -9
  31. package/src/modules/products/store/leftovers.js +9 -6
  32. package/src/modules/products/store/products.js +0 -2
  33. package/dist/BackofficeGallery-02c9721b.mjs +0 -304
  34. package/dist/BackofficeGallery-08d96af1.mjs +0 -305
  35. package/dist/BackofficeGallery-0e0132f5.mjs +0 -306
  36. package/dist/BackofficeGallery-1d117a40.js +0 -1
  37. package/dist/BackofficeGallery-2e695fed.js +0 -1
  38. package/dist/BackofficeGallery-3bb55ea2.mjs +0 -357
  39. package/dist/BackofficeGallery-7ae8fbba.mjs +0 -307
  40. package/dist/BackofficeGallery-a52a27b6.js +0 -1
  41. package/dist/BackofficeGallery-e54a33a3.js +0 -1
  42. package/dist/BackofficeGallery-fe39cff3.js +0 -1
  43. package/dist/Breadcrumbs.vue_vue_type_style_index_0_lang-19e23006.mjs +0 -1945
  44. package/dist/Breadcrumbs.vue_vue_type_style_index_0_lang-2426cb6f.mjs +0 -1945
  45. package/dist/Breadcrumbs.vue_vue_type_style_index_0_lang-505c3ca5.js +0 -1
  46. package/dist/Breadcrumbs.vue_vue_type_style_index_0_lang-561d6db3.js +0 -1
  47. package/dist/Breadcrumbs.vue_vue_type_style_index_0_lang-579e2c7a.mjs +0 -1945
  48. package/dist/Breadcrumbs.vue_vue_type_style_index_0_lang-6f807eb5.js +0 -1
  49. package/dist/Breadcrumbs.vue_vue_type_style_index_0_lang-8660f9cb.js +0 -1
  50. package/dist/Breadcrumbs.vue_vue_type_style_index_0_lang-97217d38.mjs +0 -1945
  51. package/dist/Breadcrumbs.vue_vue_type_style_index_0_lang-9e474158.mjs +0 -1945
  52. package/dist/Breadcrumbs.vue_vue_type_style_index_0_lang-b1873cb7.mjs +0 -1945
  53. package/dist/Breadcrumbs.vue_vue_type_style_index_0_lang-bd3889ee.mjs +0 -1945
  54. package/dist/Breadcrumbs.vue_vue_type_style_index_0_lang-c6aba800.js +0 -1
  55. package/dist/Breadcrumbs.vue_vue_type_style_index_0_lang-cab2bcd2.js +0 -1
  56. package/dist/Breadcrumbs.vue_vue_type_style_index_0_lang-cf9f6aed.js +0 -1
  57. package/dist/Breadcrumbs.vue_vue_type_style_index_0_lang-d9c6e4d1.mjs +0 -1945
  58. package/dist/Breadcrumbs.vue_vue_type_style_index_0_lang-e32a3041.js +0 -1
  59. package/dist/Breadcrumbs.vue_vue_type_style_index_0_lang-e60b6b7d.mjs +0 -1945
  60. package/dist/Breadcrumbs.vue_vue_type_style_index_0_lang-ec801e39.mjs +0 -1945
  61. package/dist/Breadcrumbs.vue_vue_type_style_index_0_lang-f3d37f29.js +0 -1
  62. package/dist/Button-2ca405bd.js +0 -1
  63. package/dist/Button-c59d387c.mjs +0 -283
  64. package/dist/Button-d8e72ac0.mjs +0 -296
  65. package/dist/Button-ee08e6bf.js +0 -1
  66. package/dist/ButtonFollow-00d85977.mjs +0 -133
  67. package/dist/ButtonFollow-23c4d9fc.mjs +0 -132
  68. package/dist/ButtonFollow-351486b0.js +0 -1
  69. package/dist/ButtonFollow-38d9a720.mjs +0 -131
  70. package/dist/ButtonFollow-3a05d29f.mjs +0 -132
  71. package/dist/ButtonFollow-4049a57e.js +0 -1
  72. package/dist/ButtonFollow-5e19fc49.mjs +0 -131
  73. package/dist/ButtonFollow-6765c266.mjs +0 -131
  74. package/dist/ButtonFollow-7c0180b3.js +0 -1
  75. package/dist/ButtonFollow-81508d85.mjs +0 -132
  76. package/dist/ButtonFollow-959861db.js +0 -1
  77. package/dist/ButtonFollow-9a33ab06.js +0 -1
  78. package/dist/ButtonFollow-bf5e6d42.js +0 -1
  79. package/dist/ButtonFollow-d4552677.mjs +0 -131
  80. package/dist/ButtonFollow-daa0e9e4.js +0 -1
  81. package/dist/ButtonFollow-df6317f0.js +0 -1
  82. package/dist/ButtonFollow-f0cefb85.mjs +0 -131
  83. package/dist/ButtonFollow.vue_vue_type_style_index_0_scoped_0634d4a1_lang-0ea8fbf8.js +0 -1
  84. package/dist/ButtonFollow.vue_vue_type_style_index_0_scoped_0634d4a1_lang-4ed993c7.mjs +0 -1
  85. package/dist/ButtonToggleMembership-15f149cb.js +0 -1
  86. package/dist/ButtonToggleMembership-3bb9139e.mjs +0 -90
  87. package/dist/CardBlogpost-38016b80.mjs +0 -246
  88. package/dist/CardBlogpost-ae3b4d23.js +0 -1
  89. package/dist/CardBlogpost-cc208f93.js +0 -1
  90. package/dist/CardBlogpost-d6f49156.mjs +0 -246
  91. package/dist/CardOrganization-01c2e248.mjs +0 -210
  92. package/dist/CardOrganization-18c1e3fa.mjs +0 -297
  93. package/dist/CardOrganization-1b0da77c.mjs +0 -230
  94. package/dist/CardOrganization-1be3651b.js +0 -1
  95. package/dist/CardOrganization-26714a5e.mjs +0 -297
  96. package/dist/CardOrganization-3049931d.mjs +0 -230
  97. package/dist/CardOrganization-3f4a13d3.mjs +0 -230
  98. package/dist/CardOrganization-43e80590.js +0 -1
  99. package/dist/CardOrganization-4d22037e.js +0 -1
  100. package/dist/CardOrganization-522845c7.mjs +0 -230
  101. package/dist/CardOrganization-63dcc83b.js +0 -1
  102. package/dist/CardOrganization-79eb2b6f.js +0 -1
  103. package/dist/CardOrganization-7d679e75.js +0 -1
  104. package/dist/CardOrganization-82c5b4c6.js +0 -1
  105. package/dist/CardOrganization-88c6d479.js +0 -1
  106. package/dist/CardOrganization-8b376cbb.js +0 -1
  107. package/dist/CardOrganization-8c5b582b.mjs +0 -230
  108. package/dist/CardOrganization-b2098e42.js +0 -1
  109. package/dist/CardOrganization-bf366e4e.js +0 -1
  110. package/dist/CardOrganization-c2e7e903.mjs +0 -229
  111. package/dist/CardOrganization-d3a9d898.mjs +0 -230
  112. package/dist/CardOrganization-d8f209ee.js +0 -1
  113. package/dist/CardOrganization-d93c9bdb.js +0 -1
  114. package/dist/CardOrganization-de8ec36e.mjs +0 -230
  115. package/dist/CardOrganization-df0a4506.mjs +0 -229
  116. package/dist/CardOrganization-e530c9d5.mjs +0 -230
  117. package/dist/CardOrganization-e920be73.mjs +0 -234
  118. package/dist/Chips-03ff0c34.mjs +0 -108
  119. package/dist/Chips-0e5bdd54.js +0 -1
  120. package/dist/Chips-2a0d9bfe.js +0 -1
  121. package/dist/Chips-2ada5eda.mjs +0 -200
  122. package/dist/Chips-32092a52.js +0 -1
  123. package/dist/Chips-3a07f374.js +0 -1
  124. package/dist/Chips-3dac276c.js +0 -1
  125. package/dist/Chips-41cd6570.mjs +0 -203
  126. package/dist/Chips-4316f652.mjs +0 -110
  127. package/dist/Chips-493042f7.js +0 -1
  128. package/dist/Chips-4d8ac62e.js +0 -1
  129. package/dist/Chips-5e32c8cb.mjs +0 -200
  130. package/dist/Chips-8d0a1d2c.js +0 -1
  131. package/dist/Chips-92ccc11f.js +0 -1
  132. package/dist/Chips-9cf6c0da.mjs +0 -286
  133. package/dist/Chips-9d81b215.mjs +0 -214
  134. package/dist/Chips-a8681edd.mjs +0 -213
  135. package/dist/Chips-c3d7341e.js +0 -1
  136. package/dist/Chips-cc08d85a.mjs +0 -108
  137. package/dist/Chips-d47704e6.js +0 -1
  138. package/dist/Chips-f0b7ce36.mjs +0 -110
  139. package/dist/Community-72dbb933.js +0 -1
  140. package/dist/Community-87522a04.mjs +0 -132
  141. package/dist/Community-aef23aee.js +0 -1
  142. package/dist/Community-b4d10da6.mjs +0 -130
  143. package/dist/Dashboard-239fb7a6.mjs +0 -52
  144. package/dist/Dashboard-91d73bc5.js +0 -1
  145. package/dist/Dashboard-94267906.js +0 -1
  146. package/dist/Dashboard-ea9035bc.mjs +0 -152
  147. package/dist/Dropdown-31115457.js +0 -1
  148. package/dist/Dropdown-cab3605b.mjs +0 -146
  149. package/dist/EULA-8265b0cf.mjs +0 -4218
  150. package/dist/EULA-cbb27503.js +0 -1
  151. package/dist/EULA-f5fba925.js +0 -1
  152. package/dist/EmptyState-34d85f10.mjs +0 -36
  153. package/dist/EmptyState-7658d7d6.js +0 -1
  154. package/dist/Events-0c6e3ef4.mjs +0 -134
  155. package/dist/Events-4742f070.js +0 -1
  156. package/dist/Events-cdfbca78.js +0 -1
  157. package/dist/Events-e9dd58f7.mjs +0 -123
  158. package/dist/Feed-046852fc.js +0 -1
  159. package/dist/Feed-09b0790d.js +0 -1
  160. package/dist/Feed-0b1dad65.js +0 -1
  161. package/dist/Feed-0dbe15b9.js +0 -1
  162. package/dist/Feed-12b12380.js +0 -1
  163. package/dist/Feed-13499a3a.mjs +0 -428
  164. package/dist/Feed-1d0d9853.js +0 -1
  165. package/dist/Feed-22464fcd.js +0 -1
  166. package/dist/Feed-275a14d8.mjs +0 -371
  167. package/dist/Feed-27f62b1c.mjs +0 -368
  168. package/dist/Feed-2c92ceed.js +0 -1
  169. package/dist/Feed-345d8513.mjs +0 -355
  170. package/dist/Feed-361761f5.mjs +0 -366
  171. package/dist/Feed-3a187776.js +0 -1
  172. package/dist/Feed-406e3b66.mjs +0 -368
  173. package/dist/Feed-416d84b0.mjs +0 -439
  174. package/dist/Feed-44beaa4c.mjs +0 -368
  175. package/dist/Feed-44f715a7.mjs +0 -439
  176. package/dist/Feed-4d9001aa.mjs +0 -368
  177. package/dist/Feed-4df9352b.js +0 -1
  178. package/dist/Feed-4efa2a93.mjs +0 -394
  179. package/dist/Feed-505b3fa8.mjs +0 -383
  180. package/dist/Feed-51eef23f.js +0 -1
  181. package/dist/Feed-530e40ab.mjs +0 -428
  182. package/dist/Feed-536c8a92.mjs +0 -439
  183. package/dist/Feed-585d5821.mjs +0 -124
  184. package/dist/Feed-5d8c16da.mjs +0 -368
  185. package/dist/Feed-5ecd756e.js +0 -1
  186. package/dist/Feed-66095e66.js +0 -1
  187. package/dist/Feed-67f403fb.mjs +0 -366
  188. package/dist/Feed-6e96d3dd.mjs +0 -124
  189. package/dist/Feed-6fd26cb4.mjs +0 -367
  190. package/dist/Feed-76fc4475.mjs +0 -383
  191. package/dist/Feed-793b3eef.mjs +0 -146
  192. package/dist/Feed-79839e67.mjs +0 -368
  193. package/dist/Feed-7b80704d.mjs +0 -361
  194. package/dist/Feed-7c8c901a.mjs +0 -380
  195. package/dist/Feed-807d265b.mjs +0 -156
  196. package/dist/Feed-8110366a.mjs +0 -439
  197. package/dist/Feed-82ad8e29.mjs +0 -368
  198. package/dist/Feed-8a151970.js +0 -1
  199. package/dist/Feed-8a867bfc.js +0 -1
  200. package/dist/Feed-8acc6844.js +0 -1
  201. package/dist/Feed-8bbb7077.mjs +0 -428
  202. package/dist/Feed-8f6eb29d.mjs +0 -439
  203. package/dist/Feed-90f74d6c.mjs +0 -361
  204. package/dist/Feed-986ddd21.mjs +0 -355
  205. package/dist/Feed-a0df5d24.js +0 -1
  206. package/dist/Feed-a2870bbf.js +0 -1
  207. package/dist/Feed-a47977d3.js +0 -1
  208. package/dist/Feed-a5229528.js +0 -1
  209. package/dist/Feed-a75d053e.js +0 -1
  210. package/dist/Feed-a7a6bd2e.mjs +0 -368
  211. package/dist/Feed-acfbb839.mjs +0 -371
  212. package/dist/Feed-aee74095.js +0 -1
  213. package/dist/Feed-af94027c.js +0 -1
  214. package/dist/Feed-b30ef609.js +0 -1
  215. package/dist/Feed-b616f102.mjs +0 -439
  216. package/dist/Feed-bbe44c17.mjs +0 -368
  217. package/dist/Feed-bf575b72.mjs +0 -428
  218. package/dist/Feed-bfd7d1d9.js +0 -1
  219. package/dist/Feed-c25dc839.js +0 -1
  220. package/dist/Feed-c4084664.mjs +0 -368
  221. package/dist/Feed-c5d4390a.js +0 -1
  222. package/dist/Feed-c6b67df4.js +0 -1
  223. package/dist/Feed-c88eb3aa.js +0 -1
  224. package/dist/Feed-c8b1c72d.js +0 -1
  225. package/dist/Feed-c8dc4359.js +0 -1
  226. package/dist/Feed-c9e6190e.js +0 -1
  227. package/dist/Feed-d0da2943.js +0 -1
  228. package/dist/Feed-d78d4b91.mjs +0 -439
  229. package/dist/Feed-e55bc6fa.js +0 -1
  230. package/dist/Feed-e6e84388.js +0 -1
  231. package/dist/Feed-e77e3bb3.js +0 -1
  232. package/dist/Feed-e9bddb71.mjs +0 -439
  233. package/dist/Feed-ee36f80b.js +0 -1
  234. package/dist/Feed-ef6c6ca3.mjs +0 -371
  235. package/dist/Feed-f0a40b33.js +0 -1
  236. package/dist/Feed-f3b2bd74.mjs +0 -439
  237. package/dist/Feed-f4e9769e.js +0 -1
  238. package/dist/Feed-f987d8bb.js +0 -1
  239. package/dist/Feed-fb4f7ee6.mjs +0 -368
  240. package/dist/Feed-fea84ce7.mjs +0 -439
  241. package/dist/Feed-ff3b96b2.js +0 -1
  242. package/dist/Gallery-1f82841a.mjs +0 -357
  243. package/dist/Gallery-9305f294.mjs +0 -357
  244. package/dist/Gallery-dd29c7f6.js +0 -1
  245. package/dist/Gallery-dea27e94.js +0 -1
  246. package/dist/IconChevronRight-a55f838e.js +0 -1
  247. package/dist/IconChevronRight-fae9d012.mjs +0 -28
  248. package/dist/IconCommunity-468dc457.mjs +0 -65
  249. package/dist/IconCommunity-b339e806.js +0 -1
  250. package/dist/IconCross-5bf93179.js +0 -1
  251. package/dist/IconCross-84cb1292.mjs +0 -28
  252. package/dist/IconEdit-1b7b5874.js +0 -1
  253. package/dist/IconEdit-4cfe2115.js +0 -1
  254. package/dist/IconEdit-680dc269.mjs +0 -339
  255. package/dist/IconEdit-823ddda9.js +0 -1
  256. package/dist/IconEdit-c98d3d06.mjs +0 -339
  257. package/dist/IconEdit-e4d0cc6e.js +0 -1
  258. package/dist/IconEdit-eacf3856.mjs +0 -44
  259. package/dist/IconEdit-f0ad8b9a.mjs +0 -205
  260. package/dist/Image-04944a2f.js +0 -9
  261. package/dist/Image-052a3cc2.mjs +0 -480
  262. package/dist/Image-0e21ae0a.mjs +0 -477
  263. package/dist/Image-0f2814f0.js +0 -9
  264. package/dist/Image-1281bc48.mjs +0 -477
  265. package/dist/Image-1f7252c0.mjs +0 -477
  266. package/dist/Image-2269667e.js +0 -9
  267. package/dist/Image-22e17cef.js +0 -9
  268. package/dist/Image-245c003d.mjs +0 -480
  269. package/dist/Image-268e2a1b.js +0 -9
  270. package/dist/Image-2d2e606a.js +0 -9
  271. package/dist/Image-35d31936.js +0 -9
  272. package/dist/Image-3fee8409.mjs +0 -477
  273. package/dist/Image-448f9228.js +0 -9
  274. package/dist/Image-5423e8ce.mjs +0 -480
  275. package/dist/Image-58efaf35.mjs +0 -477
  276. package/dist/Image-661e2fbc.mjs +0 -477
  277. package/dist/Image-75f5becb.js +0 -9
  278. package/dist/Image-7dcfe90d.mjs +0 -477
  279. package/dist/Image-89b2a540.js +0 -9
  280. package/dist/Image-8e67dd2d.js +0 -9
  281. package/dist/Image-93c3a270.mjs +0 -480
  282. package/dist/Image-95c0fb07.mjs +0 -480
  283. package/dist/Image-9e90a5f6.mjs +0 -477
  284. package/dist/Image-a2c2ab9c.js +0 -9
  285. package/dist/Image-ad6d4f0f.mjs +0 -477
  286. package/dist/Image-b2131fa0.mjs +0 -477
  287. package/dist/Image-be69af9c.mjs +0 -477
  288. package/dist/Image-c0ae2c5f.mjs +0 -477
  289. package/dist/Image-c90ee624.js +0 -9
  290. package/dist/Image-d01026cf.js +0 -9
  291. package/dist/Image-d42a89db.mjs +0 -477
  292. package/dist/Image-d5c4d8d9.js +0 -9
  293. package/dist/Image-d74c19ee.mjs +0 -477
  294. package/dist/Image-de94b883.js +0 -9
  295. package/dist/Image-f66dbbf4.js +0 -9
  296. package/dist/Image-fd501859.js +0 -9
  297. package/dist/LabelGooglePlay-24feb437.mjs +0 -31
  298. package/dist/LabelGooglePlay-f80e5ff0.js +0 -1
  299. package/dist/LeftoverAdd-21311275.js +0 -1
  300. package/dist/LeftoverAdd-ccf4595f.mjs +0 -228
  301. package/dist/LeftoverAdd-fc673884.js +0 -1
  302. package/dist/Members-2cb2ff58.mjs +0 -114
  303. package/dist/Members-85534d1f.js +0 -1
  304. package/dist/Members-9b013515.js +0 -1
  305. package/dist/Members-d64149f3.mjs +0 -109
  306. package/dist/Menu-b5d6a0c7.js +0 -1
  307. package/dist/Menu-dd7645c1.mjs +0 -13
  308. package/dist/MenuItem-0b249b94.mjs +0 -93
  309. package/dist/MenuItem-1216a99f.js +0 -1
  310. package/dist/MenuItem-56ae7f94.js +0 -1
  311. package/dist/MenuItem-6296d02f.mjs +0 -63
  312. package/dist/MenuItem-8b70d2cf.js +0 -1
  313. package/dist/MenuItem-97c50b97.mjs +0 -93
  314. package/dist/Organizations-0cb37d68.js +0 -1
  315. package/dist/Organizations-0fd5bc8b.mjs +0 -72
  316. package/dist/Organizations-d360c360.js +0 -1
  317. package/dist/Organizations-d6ef2113.mjs +0 -73
  318. package/dist/PlaceholderUserpic-14c6ea7e.mjs +0 -28
  319. package/dist/PlaceholderUserpic-20d58460.js +0 -1
  320. package/dist/PlaceholderUserpic-47f6f319.js +0 -1
  321. package/dist/Popup-0106ee0c.js +0 -1
  322. package/dist/Popup-0420381f.js +0 -1
  323. package/dist/Popup-0915427c.mjs +0 -74
  324. package/dist/Popup-0b38b537.js +0 -1
  325. package/dist/Popup-31c7ffc6.mjs +0 -76
  326. package/dist/Popup-383abb2e.js +0 -1
  327. package/dist/Popup-47b37484.mjs +0 -76
  328. package/dist/Popup-709634dc.mjs +0 -76
  329. package/dist/Popup-795f5c88.js +0 -1
  330. package/dist/Popup-ad5f59d0.js +0 -1
  331. package/dist/Popup-b7609baa.js +0 -1
  332. package/dist/Popup-d5c4cb46.mjs +0 -76
  333. package/dist/Popup-d7dbc670.mjs +0 -76
  334. package/dist/Popup-e6685f31.mjs +0 -76
  335. package/dist/Popup-e7c9a43e.mjs +0 -76
  336. package/dist/Popup-ee4bd834.js +0 -1
  337. package/dist/Popup-f5cdd3c1.js +0 -1
  338. package/dist/Popup-f7a5e86b.mjs +0 -76
  339. package/dist/Popup-fca78130.mjs +0 -76
  340. package/dist/Product-0095681c.mjs +0 -838
  341. package/dist/Product-09a39f0b.js +0 -7
  342. package/dist/Product-1892b14a.js +0 -7
  343. package/dist/Product-2459e9da.mjs +0 -838
  344. package/dist/Product-2c6df98d.mjs +0 -838
  345. package/dist/Product-2d05acc8.mjs +0 -839
  346. package/dist/Product-3001d998.mjs +0 -838
  347. package/dist/Product-3c2ae338.js +0 -7
  348. package/dist/Product-3c7b2921.mjs +0 -841
  349. package/dist/Product-3c9c8197.js +0 -7
  350. package/dist/Product-4b58701f.js +0 -7
  351. package/dist/Product-54854cd1.js +0 -7
  352. package/dist/Product-58a83c67.mjs +0 -838
  353. package/dist/Product-5994a8c9.mjs +0 -653
  354. package/dist/Product-601a9d5b.mjs +0 -838
  355. package/dist/Product-68fa1e9e.js +0 -7
  356. package/dist/Product-6aa1c9ee.mjs +0 -844
  357. package/dist/Product-6ca8d04d.js +0 -7
  358. package/dist/Product-6d05d027.js +0 -7
  359. package/dist/Product-6df77924.js +0 -7
  360. package/dist/Product-748ec8b7.mjs +0 -842
  361. package/dist/Product-7f86f9d4.js +0 -7
  362. package/dist/Product-84e2c789.js +0 -7
  363. package/dist/Product-852f952c.js +0 -7
  364. package/dist/Product-86bb1a63.mjs +0 -838
  365. package/dist/Product-89ca1bff.js +0 -7
  366. package/dist/Product-8bee8d1c.mjs +0 -838
  367. package/dist/Product-9170a446.mjs +0 -838
  368. package/dist/Product-943b64bb.mjs +0 -838
  369. package/dist/Product-977a8a7f.js +0 -7
  370. package/dist/Product-a23f852f.js +0 -7
  371. package/dist/Product-a39f3ca3.js +0 -7
  372. package/dist/Product-a6251018.mjs +0 -844
  373. package/dist/Product-a9efa410.js +0 -7
  374. package/dist/Product-abf86516.js +0 -7
  375. package/dist/Product-b054c74c.mjs +0 -838
  376. package/dist/Product-b1336cde.js +0 -7
  377. package/dist/Product-b32fb0e1.js +0 -7
  378. package/dist/Product-b7c53f33.mjs +0 -838
  379. package/dist/Product-bbdc8460.mjs +0 -841
  380. package/dist/Product-bbe7171a.mjs +0 -842
  381. package/dist/Product-c085f00f.mjs +0 -838
  382. package/dist/Product-d01e3a0d.mjs +0 -839
  383. package/dist/Product-d3f1d10a.mjs +0 -844
  384. package/dist/Product-d9c3b9b9.js +0 -7
  385. package/dist/Product-dc5024f6.js +0 -7
  386. package/dist/Product-dccb371a.mjs +0 -838
  387. package/dist/Product-e43dd2f1.js +0 -7
  388. package/dist/Product-e4e583f0.mjs +0 -652
  389. package/dist/Product-e825edfc.mjs +0 -838
  390. package/dist/Product-f017e6cd.js +0 -7
  391. package/dist/ProductEdit-052b0aef.mjs +0 -350
  392. package/dist/ProductEdit-171c9923.js +0 -1
  393. package/dist/ProductEdit-17f4e395.mjs +0 -304
  394. package/dist/ProductEdit-23d35d67.mjs +0 -350
  395. package/dist/ProductEdit-2b4d1d88.js +0 -1
  396. package/dist/ProductEdit-2e309add.js +0 -1
  397. package/dist/ProductEdit-3350274e.js +0 -1
  398. package/dist/ProductEdit-36e5cfdd.js +0 -1
  399. package/dist/ProductEdit-3aecb5bf.js +0 -1
  400. package/dist/ProductEdit-3d7f2823.js +0 -1
  401. package/dist/ProductEdit-3ff2af92.js +0 -1
  402. package/dist/ProductEdit-4af06681.js +0 -1
  403. package/dist/ProductEdit-4f9b6d56.js +0 -1
  404. package/dist/ProductEdit-55b6cb06.mjs +0 -350
  405. package/dist/ProductEdit-56752bbe.mjs +0 -350
  406. package/dist/ProductEdit-576c9ff8.js +0 -1
  407. package/dist/ProductEdit-590b7a01.js +0 -1
  408. package/dist/ProductEdit-5e479343.mjs +0 -300
  409. package/dist/ProductEdit-64207814.mjs +0 -296
  410. package/dist/ProductEdit-6abcc97b.mjs +0 -306
  411. package/dist/ProductEdit-70ddae4d.js +0 -1
  412. package/dist/ProductEdit-737e2a5a.mjs +0 -302
  413. package/dist/ProductEdit-777bb9e2.mjs +0 -350
  414. package/dist/ProductEdit-82658f2f.mjs +0 -350
  415. package/dist/ProductEdit-86fedffe.mjs +0 -350
  416. package/dist/ProductEdit-8e779ed8.js +0 -1
  417. package/dist/ProductEdit-a1050ab6.mjs +0 -303
  418. package/dist/ProductEdit-a322f1ba.js +0 -1
  419. package/dist/ProductEdit-a434240f.js +0 -1
  420. package/dist/ProductEdit-a57fd2b0.mjs +0 -350
  421. package/dist/ProductEdit-ab0530e8.js +0 -1
  422. package/dist/ProductEdit-ab5d71ce.mjs +0 -350
  423. package/dist/ProductEdit-aca44ef7.mjs +0 -300
  424. package/dist/ProductEdit-ba3fef8c.mjs +0 -350
  425. package/dist/ProductEdit-c08ee26f.mjs +0 -350
  426. package/dist/ProductEdit-c99ab559.js +0 -1
  427. package/dist/ProductEdit-cdc3415a.mjs +0 -350
  428. package/dist/ProductEdit-d2666662.js +0 -1
  429. package/dist/ProductEdit-d5dec3cf.js +0 -1
  430. package/dist/ProductEdit-d74fddb1.mjs +0 -350
  431. package/dist/ProductEdit-dae66a53.js +0 -1
  432. package/dist/ProductEdit-e22cc4ef.js +0 -1
  433. package/dist/ProductEdit-e4cad9d1.js +0 -1
  434. package/dist/ProductEdit-e5a2e0f6.js +0 -1
  435. package/dist/ProductEdit-e71dbe52.js +0 -1
  436. package/dist/ProductEdit-e827ea38.mjs +0 -350
  437. package/dist/ProductEdit-ebcc3f98.mjs +0 -306
  438. package/dist/ProductEdit-f7a9af17.mjs +0 -303
  439. package/dist/ProductEdit-f901314c.mjs +0 -306
  440. package/dist/ProductEdit-fa0117b6.mjs +0 -350
  441. package/dist/ProductsBackoffice-0c93f9b6.js +0 -1
  442. package/dist/ProductsBackoffice-3c182d6a.mjs +0 -86
  443. package/dist/ProductsBackoffice-b684913d.js +0 -1
  444. package/dist/ProfileBlogposts-03d04b92.mjs +0 -66
  445. package/dist/ProfileBlogposts-070cb7e9.mjs +0 -65
  446. package/dist/ProfileBlogposts-08f784c3.mjs +0 -64
  447. package/dist/ProfileBlogposts-0b81d964.js +0 -1
  448. package/dist/ProfileBlogposts-2063c511.mjs +0 -65
  449. package/dist/ProfileBlogposts-39c20b79.mjs +0 -64
  450. package/dist/ProfileBlogposts-3aea0091.mjs +0 -64
  451. package/dist/ProfileBlogposts-4293a1e3.js +0 -1
  452. package/dist/ProfileBlogposts-4c326fed.mjs +0 -65
  453. package/dist/ProfileBlogposts-5379335e.js +0 -1
  454. package/dist/ProfileBlogposts-5382274b.mjs +0 -64
  455. package/dist/ProfileBlogposts-57931834.mjs +0 -70
  456. package/dist/ProfileBlogposts-5c0f3b58.js +0 -1
  457. package/dist/ProfileBlogposts-5c6ab74a.mjs +0 -64
  458. package/dist/ProfileBlogposts-5deee0c5.mjs +0 -65
  459. package/dist/ProfileBlogposts-62d5e809.mjs +0 -70
  460. package/dist/ProfileBlogposts-67e1bd8f.mjs +0 -64
  461. package/dist/ProfileBlogposts-69beaa14.js +0 -1
  462. package/dist/ProfileBlogposts-6c715a38.js +0 -1
  463. package/dist/ProfileBlogposts-6f80b734.mjs +0 -64
  464. package/dist/ProfileBlogposts-8b66ae1b.js +0 -1
  465. package/dist/ProfileBlogposts-8c10a505.js +0 -1
  466. package/dist/ProfileBlogposts-8f6191d6.js +0 -1
  467. package/dist/ProfileBlogposts-92c4addb.mjs +0 -64
  468. package/dist/ProfileBlogposts-a2d04221.js +0 -1
  469. package/dist/ProfileBlogposts-a2f7cd4c.mjs +0 -70
  470. package/dist/ProfileBlogposts-a798df3d.js +0 -1
  471. package/dist/ProfileBlogposts-aa839fcb.mjs +0 -77
  472. package/dist/ProfileBlogposts-af88ce98.js +0 -1
  473. package/dist/ProfileBlogposts-b59992cf.mjs +0 -79
  474. package/dist/ProfileBlogposts-b6bf0c42.js +0 -1
  475. package/dist/ProfileBlogposts-bf3cd8e5.mjs +0 -64
  476. package/dist/ProfileBlogposts-c31917ec.js +0 -1
  477. package/dist/ProfileBlogposts-d1d3326e.js +0 -1
  478. package/dist/ProfileBlogposts-d6bba033.js +0 -1
  479. package/dist/ProfileBlogposts-e3ea2c82.js +0 -1
  480. package/dist/ProfileBlogposts-eaecd267.js +0 -1
  481. package/dist/ProfileBlogposts-f90f947b.mjs +0 -64
  482. package/dist/ProfileBlogposts-f9312adf.js +0 -1
  483. package/dist/ProfileComments-03f88b54.mjs +0 -44
  484. package/dist/ProfileComments-061ea40b.mjs +0 -44
  485. package/dist/ProfileComments-06985576.mjs +0 -44
  486. package/dist/ProfileComments-0d22a8ec.js +0 -1
  487. package/dist/ProfileComments-12b51ae3.js +0 -1
  488. package/dist/ProfileComments-1525663e.mjs +0 -44
  489. package/dist/ProfileComments-17352b6a.mjs +0 -44
  490. package/dist/ProfileComments-1ae70859.js +0 -1
  491. package/dist/ProfileComments-1cbf5c45.js +0 -1
  492. package/dist/ProfileComments-1e0d72cc.mjs +0 -44
  493. package/dist/ProfileComments-3cf3e265.mjs +0 -44
  494. package/dist/ProfileComments-473c3413.js +0 -1
  495. package/dist/ProfileComments-6d863cd3.mjs +0 -45
  496. package/dist/ProfileComments-761ce00e.js +0 -1
  497. package/dist/ProfileComments-78231e6a.mjs +0 -44
  498. package/dist/ProfileComments-8a0c489c.mjs +0 -44
  499. package/dist/ProfileComments-8c9146ef.js +0 -1
  500. package/dist/ProfileComments-9398be62.mjs +0 -44
  501. package/dist/ProfileComments-96f6cde8.mjs +0 -44
  502. package/dist/ProfileComments-bae499e9.js +0 -1
  503. package/dist/ProfileComments-c3290211.js +0 -1
  504. package/dist/ProfileComments-c7230f42.mjs +0 -44
  505. package/dist/ProfileComments-cdaccefe.mjs +0 -44
  506. package/dist/ProfileComments-d6779ee2.mjs +0 -44
  507. package/dist/ProfileComments-db4b6fbc.js +0 -1
  508. package/dist/ProfileComments-dd923865.js +0 -1
  509. package/dist/ProfileComments-e0116e5f.js +0 -1
  510. package/dist/ProfileComments-e6970923.js +0 -1
  511. package/dist/ProfileComments-f0000ea6.js +0 -1
  512. package/dist/ProfileEvents-0bdd36e4.mjs +0 -57
  513. package/dist/ProfileEvents-11dc4034.mjs +0 -56
  514. package/dist/ProfileEvents-1ca72873.mjs +0 -56
  515. package/dist/ProfileEvents-1e0c1291.js +0 -1
  516. package/dist/ProfileEvents-26a72fe2.mjs +0 -56
  517. package/dist/ProfileEvents-2f22e7cf.mjs +0 -56
  518. package/dist/ProfileEvents-3089a526.mjs +0 -56
  519. package/dist/ProfileEvents-314eadc3.js +0 -1
  520. package/dist/ProfileEvents-3f7ca2c1.js +0 -1
  521. package/dist/ProfileEvents-47409c9e.mjs +0 -62
  522. package/dist/ProfileEvents-48c70286.mjs +0 -56
  523. package/dist/ProfileEvents-4a2fa422.mjs +0 -57
  524. package/dist/ProfileEvents-588eadf9.js +0 -1
  525. package/dist/ProfileEvents-6b3fb52e.mjs +0 -68
  526. package/dist/ProfileEvents-7502ed90.mjs +0 -57
  527. package/dist/ProfileEvents-76166bc5.mjs +0 -56
  528. package/dist/ProfileEvents-7b202655.js +0 -1
  529. package/dist/ProfileEvents-82517a3b.mjs +0 -56
  530. package/dist/ProfileEvents-893285bb.js +0 -1
  531. package/dist/ProfileEvents-89471c05.js +0 -1
  532. package/dist/ProfileEvents-8b88287a.js +0 -1
  533. package/dist/ProfileEvents-90448f97.js +0 -1
  534. package/dist/ProfileEvents-917169c6.mjs +0 -58
  535. package/dist/ProfileEvents-980b0281.mjs +0 -56
  536. package/dist/ProfileEvents-996bce18.js +0 -1
  537. package/dist/ProfileEvents-a28a4ee5.js +0 -1
  538. package/dist/ProfileEvents-a9b96fec.js +0 -1
  539. package/dist/ProfileEvents-af2536a3.js +0 -1
  540. package/dist/ProfileEvents-ba769f57.mjs +0 -56
  541. package/dist/ProfileEvents-bbdd62e7.mjs +0 -70
  542. package/dist/ProfileEvents-bff6e071.js +0 -1
  543. package/dist/ProfileEvents-c9aa3d41.mjs +0 -56
  544. package/dist/ProfileEvents-cc65404c.js +0 -1
  545. package/dist/ProfileEvents-cdebd612.js +0 -1
  546. package/dist/ProfileEvents-d0c5e3dc.js +0 -1
  547. package/dist/ProfileEvents-d978617d.mjs +0 -57
  548. package/dist/ProfileEvents-db12cf78.js +0 -1
  549. package/dist/ProfileEvents-e070d9d4.mjs +0 -62
  550. package/dist/ProfileEvents-e62e76cf.js +0 -1
  551. package/dist/ProfileEvents-ea023c17.js +0 -1
  552. package/dist/ProfileEvents-ed7f9603.mjs +0 -62
  553. package/dist/ProfileLikes-0402d1fb.js +0 -1
  554. package/dist/ProfileLikes-05911934.mjs +0 -44
  555. package/dist/ProfileLikes-0c8a7255.mjs +0 -44
  556. package/dist/ProfileLikes-11ca8c11.js +0 -1
  557. package/dist/ProfileLikes-23b6f2f9.js +0 -1
  558. package/dist/ProfileLikes-36373ac1.mjs +0 -44
  559. package/dist/ProfileLikes-3c5c02be.mjs +0 -44
  560. package/dist/ProfileLikes-3edf6fb8.mjs +0 -44
  561. package/dist/ProfileLikes-51729962.js +0 -1
  562. package/dist/ProfileLikes-553c52df.js +0 -1
  563. package/dist/ProfileLikes-5b52e4ae.mjs +0 -44
  564. package/dist/ProfileLikes-6cf19687.js +0 -1
  565. package/dist/ProfileLikes-74c78a16.mjs +0 -44
  566. package/dist/ProfileLikes-75215d15.mjs +0 -44
  567. package/dist/ProfileLikes-92196922.mjs +0 -45
  568. package/dist/ProfileLikes-a2c1b585.js +0 -1
  569. package/dist/ProfileLikes-b1060d1e.js +0 -1
  570. package/dist/ProfileLikes-b48ce0ef.js +0 -1
  571. package/dist/ProfileLikes-c068c6c6.js +0 -1
  572. package/dist/ProfileLikes-c8dab14d.mjs +0 -44
  573. package/dist/ProfileLikes-ca197731.mjs +0 -44
  574. package/dist/ProfileLikes-d5f9f058.js +0 -1
  575. package/dist/ProfileLikes-da6303a4.js +0 -1
  576. package/dist/ProfileLikes-e31f28dc.js +0 -1
  577. package/dist/ProfileLikes-e4fa0792.mjs +0 -44
  578. package/dist/ProfileLikes-e88dae8f.mjs +0 -44
  579. package/dist/ProfileLikes-f5ad4497.mjs +0 -44
  580. package/dist/ProfileLikes-f838ff5e.mjs +0 -44
  581. package/dist/ProfileLikes-fa41bad0.js +0 -1
  582. package/dist/ProfileOrganizations-1f9f1841.js +0 -1
  583. package/dist/ProfileOrganizations-3a879480.mjs +0 -212
  584. package/dist/ProfileOrganizations-422d1fa5.js +0 -1
  585. package/dist/ProfileOrganizations-43710687.js +0 -1
  586. package/dist/ProfileOrganizations-4734c02e.mjs +0 -73
  587. package/dist/ProfileOrganizations-5348e892.js +0 -1
  588. package/dist/ProfileOrganizations-55914b43.js +0 -1
  589. package/dist/ProfileOrganizations-58ebfe44.mjs +0 -212
  590. package/dist/ProfileOrganizations-5b5480d5.mjs +0 -212
  591. package/dist/ProfileOrganizations-600d310d.js +0 -1
  592. package/dist/ProfileOrganizations-6b1bc5b2.mjs +0 -213
  593. package/dist/ProfileOrganizations-6f4df3da.js +0 -1
  594. package/dist/ProfileOrganizations-738f444a.js +0 -1
  595. package/dist/ProfileOrganizations-769325c7.js +0 -1
  596. package/dist/ProfileOrganizations-774c6508.mjs +0 -212
  597. package/dist/ProfileOrganizations-78fef72e.js +0 -1
  598. package/dist/ProfileOrganizations-7911deec.mjs +0 -219
  599. package/dist/ProfileOrganizations-8961aaee.mjs +0 -213
  600. package/dist/ProfileOrganizations-930ca51f.mjs +0 -212
  601. package/dist/ProfileOrganizations-974a50ca.mjs +0 -212
  602. package/dist/ProfileOrganizations-ae258581.js +0 -1
  603. package/dist/ProfileOrganizations-bee6a3ae.js +0 -1
  604. package/dist/ProfileOrganizations-c4fb03a1.mjs +0 -72
  605. package/dist/ProfileOrganizations-c5151835.mjs +0 -214
  606. package/dist/ProfileOrganizations-cef668b5.mjs +0 -212
  607. package/dist/ProfileOrganizations-cf8a12f5.mjs +0 -213
  608. package/dist/ProfileOrganizations-d4ec181b.js +0 -1
  609. package/dist/ProfileOrganizations-d55ee487.js +0 -1
  610. package/dist/ProfileOrganizations-db313b5e.mjs +0 -219
  611. package/dist/ProfileOrganizations-ec908108.mjs +0 -212
  612. package/dist/ProfileOrganizations-f52e62e1.js +0 -1
  613. package/dist/Publics-0762210a.js +0 -1
  614. package/dist/Publics-103da60e.js +0 -1
  615. package/dist/Publics-24f055eb.js +0 -1
  616. package/dist/Publics-4438ca51.js +0 -1
  617. package/dist/Publics-4db36606.js +0 -1
  618. package/dist/Publics-50c0ff6c.js +0 -1
  619. package/dist/Publics-538180a8.mjs +0 -45
  620. package/dist/Publics-5472f70c.mjs +0 -123
  621. package/dist/Publics-5ae33b91.mjs +0 -123
  622. package/dist/Publics-640d32fc.mjs +0 -123
  623. package/dist/Publics-660e851c.mjs +0 -45
  624. package/dist/Publics-6b7c97bd.js +0 -1
  625. package/dist/Publics-70a0ca9c.mjs +0 -45
  626. package/dist/Publics-71b9efbe.js +0 -1
  627. package/dist/Publics-8595ab7e.js +0 -1
  628. package/dist/Publics-8bb9a680.js +0 -1
  629. package/dist/Publics-8bc74cc3.js +0 -1
  630. package/dist/Publics-abbe2e0c.mjs +0 -123
  631. package/dist/Publics-b1cbfd97.mjs +0 -45
  632. package/dist/Publics-bbab7a79.js +0 -1
  633. package/dist/Publics-bed70f0c.mjs +0 -123
  634. package/dist/Publics-cbb8eaaa.mjs +0 -123
  635. package/dist/Publics-e14d36ed.js +0 -1
  636. package/dist/Publics-f34131bf.mjs +0 -45
  637. package/dist/Publics-f4c3ef5b.mjs +0 -123
  638. package/dist/Publics-fcb1f708.mjs +0 -123
  639. package/dist/Publics-ffc08ad7.mjs +0 -123
  640. package/dist/Select-90d4b7c8.mjs +0 -81
  641. package/dist/Select-b9299fb6.js +0 -1
  642. package/dist/Select.vue_vue_type_style_index_0_scoped_a78dbba1_lang-0ea8fbf8.js +0 -1
  643. package/dist/Select.vue_vue_type_style_index_0_scoped_a78dbba1_lang-4ed993c7.mjs +0 -1
  644. package/dist/SkeletonBlogpost-95db0fa9.js +0 -1
  645. package/dist/SkeletonBlogpost-e0621af7.mjs +0 -16
  646. package/dist/SkeletonEventShort-6c9e3940.js +0 -1
  647. package/dist/SkeletonEventShort-f030e56f.mjs +0 -16
  648. package/dist/SkeletonOrganization-5c09cfc5.js +0 -1
  649. package/dist/SkeletonOrganization-8690422d.mjs +0 -16
  650. package/dist/Socials-31c06635.mjs +0 -74
  651. package/dist/Socials-3fe01af1.mjs +0 -275
  652. package/dist/Socials-821bd677.js +0 -1
  653. package/dist/Socials-9b2d27a6.js +0 -1
  654. package/dist/Socials-b19d0cb1.js +0 -1
  655. package/dist/Socials-becde7dc.mjs +0 -275
  656. package/dist/Socials-cceaeaf2.js +0 -1
  657. package/dist/Tab-6f0a4909.js +0 -1
  658. package/dist/Tab-a243605d.mjs +0 -46
  659. package/dist/Tab-dcd62005.js +0 -1
  660. package/dist/UploadImage-15e24d71.mjs +0 -83
  661. package/dist/UploadImage-1b4c2a5e.mjs +0 -83
  662. package/dist/UploadImage-2170c4df.js +0 -1
  663. package/dist/UploadImage-33f6a9f4.js +0 -1
  664. package/dist/UploadImage-39483aee.mjs +0 -83
  665. package/dist/UploadImage-39d42048.js +0 -1
  666. package/dist/UploadImage-6344f789.js +0 -1
  667. package/dist/UploadImage-739cab04.js +0 -1
  668. package/dist/UploadImage-73d66f27.js +0 -1
  669. package/dist/UploadImage-802b81db.js +0 -1
  670. package/dist/UploadImage-86fda95d.mjs +0 -83
  671. package/dist/UploadImage-8835be69.mjs +0 -83
  672. package/dist/UploadImage-a3ef4012.mjs +0 -83
  673. package/dist/UploadImage-c9711af2.js +0 -1
  674. package/dist/UploadImage-dfb36cdb.js +0 -1
  675. package/dist/UploadImage-e4418b43.mjs +0 -83
  676. package/dist/UploadImage-ec3714e8.mjs +0 -83
  677. package/dist/UploadImage-f04e4bc0.mjs +0 -83
  678. package/dist/UploadImage-f7b0335f.mjs +0 -83
  679. package/dist/UploadImageMultiple-297b3897.js +0 -1
  680. package/dist/UploadImageMultiple-7b132ba0.mjs +0 -58
  681. package/dist/UploadImageMultiple-b4c8d627.js +0 -1
  682. package/dist/UploadImageMultiple-c9a7b54f.js +0 -1
  683. package/dist/UploadImageMultiple-d2d48f39.mjs +0 -58
  684. package/dist/UploadImageMultiple-ebcc51e6.mjs +0 -58
  685. package/dist/addMembersQuantity-ea216f92.mjs +0 -85
  686. package/dist/addMembersQuantity-f922d82b.js +0 -84
  687. package/dist/auth-06d35b82.js +0 -7
  688. package/dist/auth-2f9b2dfc.js +0 -7
  689. package/dist/auth-3dedf391.js +0 -8
  690. package/dist/auth-4415a97a.js +0 -7
  691. package/dist/auth-45a454f2.js +0 -7
  692. package/dist/auth-5217f6a5.mjs +0 -1498
  693. package/dist/auth-5a58f8cb.js +0 -8
  694. package/dist/auth-5cd34aae.mjs +0 -905
  695. package/dist/auth-60c81f40.mjs +0 -1836
  696. package/dist/auth-78d9392a.mjs +0 -612
  697. package/dist/auth-962e3b73.mjs +0 -1836
  698. package/dist/auth-96449d96.js +0 -7
  699. package/dist/auth-98fe3efb.mjs +0 -612
  700. package/dist/auth-acbe3ae1.js +0 -7
  701. package/dist/auth-afa25b86.mjs +0 -905
  702. package/dist/auth-b047fdc0.mjs +0 -612
  703. package/dist/auth-b61483ce.js +0 -8
  704. package/dist/auth-c3234662.mjs +0 -1836
  705. package/dist/auth-cfeacd61.mjs +0 -1839
  706. package/dist/auth-e8f6d979.js +0 -8
  707. package/dist/auth-ec618cb3.mjs +0 -627
  708. package/dist/auth.validation-02e0629b.mjs +0 -20
  709. package/dist/auth.validation-0ce9e326.js +0 -1
  710. package/dist/auth.validation-1b60cef5.mjs +0 -20
  711. package/dist/auth.validation-1d5f2990.mjs +0 -20
  712. package/dist/auth.validation-2cdd2231.mjs +0 -17
  713. package/dist/auth.validation-2dfb450f.js +0 -1
  714. package/dist/auth.validation-2f00457e.js +0 -1
  715. package/dist/auth.validation-30bb0efd.js +0 -1
  716. package/dist/auth.validation-3e93dc23.mjs +0 -20
  717. package/dist/auth.validation-3fd4cc7c.mjs +0 -20
  718. package/dist/auth.validation-495e9d6d.js +0 -1
  719. package/dist/auth.validation-4b016fa5.js +0 -1
  720. package/dist/auth.validation-6a59443b.js +0 -1
  721. package/dist/auth.validation-892bea9b.js +0 -1
  722. package/dist/auth.validation-9e493d2f.mjs +0 -20
  723. package/dist/auth.validation-9f87ea95.mjs +0 -20
  724. package/dist/auth.validation-a17cd085.js +0 -1
  725. package/dist/auth.validation-a52304cf.mjs +0 -20
  726. package/dist/auth.validation-ba3606bf.mjs +0 -24
  727. package/dist/auth.validation-be05e981.js +0 -1
  728. package/dist/auth.validation-c8d5adf5.mjs +0 -20
  729. package/dist/auth.validation-d4795c25.js +0 -1
  730. package/dist/auth.validation-e265b496.mjs +0 -23
  731. package/dist/carousel.es-ee047568.js +0 -5
  732. package/dist/categories-4327a81c.js +0 -1
  733. package/dist/categories-82b28618.js +0 -1
  734. package/dist/categories-df3240a7.mjs +0 -122
  735. package/dist/components/CardFooter/CardFooter.vue.d.ts +0 -8
  736. package/dist/components/CardHeader/CardHeader.vue.d.ts +0 -15
  737. package/dist/dribbble-8e8e169b.js +0 -1
  738. package/dist/dribbble-ae37c2ac.mjs +0 -127
  739. package/dist/icons.client.cjs +0 -1
  740. package/dist/icons.client.js +0 -84
  741. package/dist/index-0ab9d59c.mjs +0 -934
  742. package/dist/index-2059e444.js +0 -2
  743. package/dist/index-2a0269fc.js +0 -2
  744. package/dist/index-4e469a71.mjs +0 -941
  745. package/dist/index-7ecbf72a.js +0 -2
  746. package/dist/index-9128ade5.mjs +0 -1228
  747. package/dist/inputs.validation-14e8e01f.mjs +0 -93
  748. package/dist/inputs.validation-24ae76b9.js +0 -1
  749. package/dist/leftovers-66951de6.js +0 -1
  750. package/dist/mailing-25d08f4c.js +0 -49
  751. package/dist/mailing-ebc6e90f.mjs +0 -50
  752. package/dist/metadata.schema-147f9902.mjs +0 -212
  753. package/dist/metadata.schema-4f856191.js +0 -85
  754. package/dist/metadata.schema-7f36e829.mjs +0 -86
  755. package/dist/metadata.schema-93397f9f.js +0 -211
  756. package/dist/modules/backoffice/components/admin/LeftoverAdd.vue.d.ts +0 -2
  757. package/dist/modules/backoffice/components/admin/Leftovers.vue.d.ts +0 -2
  758. package/dist/modules/backoffice/components/admin/Order.vue.d.ts +0 -6
  759. package/dist/modules/backoffice/components/admin/Orders.vue.d.ts +0 -2
  760. package/dist/modules/backoffice/components/admin/Product.vue.d.ts +0 -2
  761. package/dist/modules/backoffice/components/admin/Products.vue.d.ts +0 -2
  762. package/dist/modules/backoffice/components/layouts/Account.vue.d.ts +0 -2
  763. package/dist/modules/backoffice/components/pages/Favorites.vue.d.ts +0 -6
  764. package/dist/modules/backoffice/components/pages/History.vue.d.ts +0 -6
  765. package/dist/modules/backoffice/components/pages/Organizations.vue.d.ts +0 -2
  766. package/dist/modules/backoffice/components/pages/Profile.vue.d.ts +0 -2
  767. package/dist/modules/backoffice/components/pages/Wallet.vue.d.ts +0 -2
  768. package/dist/modules/backoffice/components/pages/profile/ProfileEdit.vue.d.ts +0 -2
  769. package/dist/modules/gallery/components/sections/Gallery.vue.d.ts +0 -2
  770. package/dist/modules/landing/components/pages/Legal.vue.d.ts +0 -2
  771. package/dist/modules/landing/components/pages/legal/Cookies.vue.d.ts +0 -2
  772. package/dist/modules/landing/components/pages/legal/Privacy.vue.d.ts +0 -2
  773. package/dist/modules/landing/components/pages/legal/Terms.vue.d.ts +0 -2
  774. package/dist/modules/orders/components/pages/History.vue.d.ts +0 -6
  775. package/dist/modules/organizations/components/blocks/DepartmentSubDepartmentModify.vue.d.ts +0 -11
  776. package/dist/modules/organizations/components/elements/ButtonFollow.vue.d.ts +0 -10
  777. package/dist/modules/organizations/components/pages/OrganizationsAccount.vue.d.ts +0 -2
  778. package/dist/modules/organizations/components/sections/Department.vue.d.ts +0 -7
  779. package/dist/modules/organizations/components/sections/Department2.vue.d.ts +0 -7
  780. package/dist/modules/organizations/components/sections/MembersTab.vue.d.ts +0 -7
  781. package/dist/modules/organizations/components/sections/PlaceModify.vue.d.ts +0 -9
  782. package/dist/modules/organizations/components/sections/Places.vue.d.ts +0 -9
  783. package/dist/modules/organizations/components/sections/StructureTab.vue.d.ts +0 -8
  784. package/dist/modules/products/components/blocks/Leftover.vue.d.ts +0 -6
  785. package/dist/modules/products/components/blocks/ProductCard.vue.d.ts +0 -6
  786. package/dist/organizations-0fb56927.mjs +0 -122
  787. package/dist/organizations-195ec134.js +0 -1
  788. package/dist/organizations-2adff182.mjs +0 -121
  789. package/dist/organizations-4157d81d.js +0 -1
  790. package/dist/organizations-49a10611.js +0 -1
  791. package/dist/organizations-4d18a2e2.js +0 -1
  792. package/dist/organizations-52438d24.mjs +0 -121
  793. package/dist/organizations-65937ba4.js +0 -1
  794. package/dist/organizations-6ed907e3.mjs +0 -122
  795. package/dist/organizations-81e762e7.mjs +0 -122
  796. package/dist/organizations-8408770b.mjs +0 -121
  797. package/dist/organizations-8ffdf84d.mjs +0 -121
  798. package/dist/organizations-a241b21d.js +0 -1
  799. package/dist/organizations-aed4245d.mjs +0 -122
  800. package/dist/organizations-af965fcf.mjs +0 -122
  801. package/dist/organizations-bb8f676d.js +0 -1
  802. package/dist/organizations-cf1ab766.js +0 -1
  803. package/dist/organizations-e1bfd3a8.mjs +0 -121
  804. package/dist/organizations-e74f4f84.js +0 -1
  805. package/dist/organizations-e97a0f85.js +0 -1
  806. package/dist/organizations-ea9de495.mjs +0 -122
  807. package/dist/organizations.client-0071acee.js +0 -3
  808. package/dist/organizations.client-01593e4d.js +0 -3
  809. package/dist/organizations.client-13fc2cbe.js +0 -3
  810. package/dist/organizations.client-16ee6b43.js +0 -3
  811. package/dist/organizations.client-1b0906f9.js +0 -3
  812. package/dist/organizations.client-1b9fa66e.mjs +0 -2997
  813. package/dist/organizations.client-1e9361ec.js +0 -3
  814. package/dist/organizations.client-1eb0b49c.js +0 -3
  815. package/dist/organizations.client-21cfcf36.mjs +0 -3038
  816. package/dist/organizations.client-292e8444.js +0 -3
  817. package/dist/organizations.client-2e452fee.js +0 -3
  818. package/dist/organizations.client-37ec4817.js +0 -3
  819. package/dist/organizations.client-39196bef.mjs +0 -3041
  820. package/dist/organizations.client-43816e25.mjs +0 -3018
  821. package/dist/organizations.client-48568171.mjs +0 -3017
  822. package/dist/organizations.client-49eaeca6.mjs +0 -3017
  823. package/dist/organizations.client-52d2951c.mjs +0 -3017
  824. package/dist/organizations.client-5548024c.js +0 -3
  825. package/dist/organizations.client-63b476ff.mjs +0 -2996
  826. package/dist/organizations.client-6947e530.js +0 -3
  827. package/dist/organizations.client-696eacbb.js +0 -3
  828. package/dist/organizations.client-6a69b54a.js +0 -3
  829. package/dist/organizations.client-6f1f8b73.mjs +0 -3017
  830. package/dist/organizations.client-6fc91683.mjs +0 -3072
  831. package/dist/organizations.client-723ebb3b.js +0 -3
  832. package/dist/organizations.client-76c3660a.mjs +0 -3072
  833. package/dist/organizations.client-7e51b4a8.js +0 -3
  834. package/dist/organizations.client-85a2ae66.js +0 -3
  835. package/dist/organizations.client-88d41199.mjs +0 -3038
  836. package/dist/organizations.client-8aa34e80.mjs +0 -3017
  837. package/dist/organizations.client-91e84d4f.mjs +0 -3022
  838. package/dist/organizations.client-976762d2.mjs +0 -3021
  839. package/dist/organizations.client-9e480f60.js +0 -3
  840. package/dist/organizations.client-b0878617.js +0 -3
  841. package/dist/organizations.client-b39db194.js +0 -3
  842. package/dist/organizations.client-b692a78a.mjs +0 -3018
  843. package/dist/organizations.client-bae43c7c.mjs +0 -3017
  844. package/dist/organizations.client-bdc9b044.js +0 -3
  845. package/dist/organizations.client-be1224a1.mjs +0 -3017
  846. package/dist/organizations.client-bf73e73d.mjs +0 -3017
  847. package/dist/organizations.client-c288ff44.mjs +0 -3072
  848. package/dist/organizations.client-c6fd9351.js +0 -3
  849. package/dist/organizations.client-c7844bc2.mjs +0 -3038
  850. package/dist/organizations.client-cdbaf6aa.mjs +0 -3017
  851. package/dist/organizations.client-d0cae5f4.mjs +0 -3017
  852. package/dist/organizations.client-d21a22ec.js +0 -3
  853. package/dist/organizations.client-d47f0b3f.js +0 -3
  854. package/dist/organizations.client-ddbf8809.js +0 -3
  855. package/dist/organizations.client-df5e8a6f.mjs +0 -3020
  856. package/dist/organizations.client-f4dff584.mjs +0 -3017
  857. package/dist/organizations.client-fa3b0839.mjs +0 -3017
  858. package/dist/products-7960bbd4.js +0 -1
  859. package/dist/products-7e4253eb.js +0 -1
  860. package/dist/products-bf5783aa.mjs +0 -108
  861. package/dist/states.validation-02ba0aee.js +0 -1
  862. package/dist/states.validation-03f7cd49.js +0 -1
  863. package/dist/states.validation-50e3a5a0.mjs +0 -13
  864. package/dist/states.validation-766a62a6.mjs +0 -13
  865. package/dist/states.validation-92231934.js +0 -1
  866. package/dist/states.validation-e5f4fa3a.mjs +0 -13
  867. package/dist/vue-draggable-next.esm-bundler-80731ae0.js +0 -10
  868. package/dist/vuex.esm-bundler-e8cf3cd2.js +0 -5
@@ -1,58 +0,0 @@
1
- import { ref as s, openBlock as h, createElementBlock as v, withModifiers as x, createElementVNode as i } from "vue";
2
- import { a as g } from "./index-0ab9d59c.mjs";
3
- const _ = /* @__PURE__ */ i("div", { class: "flex-v-center flex-h-center flex w-100 h-100" }, " upload ", -1), D = {
4
- __name: "UploadImageMultiple",
5
- props: [
6
- "uploadPath"
7
- ],
8
- emits: ["update:images"],
9
- setup(p, { emit: f }) {
10
- const c = p, a = s([]), n = s(null);
11
- function u() {
12
- n.value.click();
13
- }
14
- async function l(t) {
15
- let o = t.target.files, r = new FormData();
16
- for (let e = 0; e < o.length; e++)
17
- r.append("file", o[e]);
18
- try {
19
- (await g.create({ baseURL: process.env.API_URL, withCredentials: !0 }).post(`/api/upload/multiple?folderName=${encodeURIComponent(c.uploadPath)}`, r, {
20
- headers: {
21
- "Content-Type": "multipart/form-data"
22
- }
23
- })).data.forEach((d) => {
24
- a.value.push(d.filepath);
25
- }), f("update:images", a.value);
26
- } catch (e) {
27
- console.error(e);
28
- }
29
- }
30
- function m(t) {
31
- t.preventDefault(), l({
32
- target: {
33
- files: t.dataTransfer.files
34
- }
35
- });
36
- }
37
- return (t, o) => (h(), v("div", {
38
- onClick: u,
39
- onDrop: m,
40
- onDragover: o[0] || (o[0] = x(() => {
41
- }, ["prevent"])),
42
- class: "flex-v-center flex-h-center flex"
43
- }, [
44
- _,
45
- i("input", {
46
- type: "file",
47
- ref_key: "fileInput",
48
- ref: n,
49
- onChange: l,
50
- multiple: "",
51
- style: { display: "none" }
52
- }, null, 544)
53
- ], 32));
54
- }
55
- };
56
- export {
57
- D as _
58
- };
@@ -1 +0,0 @@
1
- "use strict";const e=require("vue"),m=require("./index-2a0269fc.js"),h=e.createElementVNode("div",{class:"flex-v-center flex-h-center flex w-100 h-100"}," upload ",-1),v={__name:"UploadImageMultiple",props:["uploadPath"],emits:["update:images"],setup(i,{emit:p}){const c=i,a=e.ref([]),l=e.ref(null);function f(){l.value.click()}async function r(n){let o=n.target.files,s=new FormData;for(let t=0;t<o.length;t++)s.append("file",o[t]);try{(await m.axios.create({baseURL:process.env.API_URL,withCredentials:!0}).post(`/api/upload/multiple?folderName=${encodeURIComponent(c.uploadPath)}`,s,{headers:{"Content-Type":"multipart/form-data"}})).data.forEach(d=>{a.value.push(d.filepath)}),p("update:images",a.value)}catch(t){console.error(t)}}function u(n){n.preventDefault(),r({target:{files:n.dataTransfer.files}})}return(n,o)=>(e.openBlock(),e.createElementBlock("div",{onClick:f,onDrop:u,onDragover:o[0]||(o[0]=e.withModifiers(()=>{},["prevent"])),class:"flex-v-center flex-h-center flex"},[h,e.createElementVNode("input",{type:"file",ref_key:"fileInput",ref:l,onChange:r,multiple:"",style:{display:"none"}},null,544)],32))}};exports._sfc_main=v;
@@ -1 +0,0 @@
1
- "use strict";const e=require("vue"),m=require("./index-2059e444.js"),h=e.createElementVNode("div",{class:"flex-v-center flex-h-center flex w-100 h-100"}," upload ",-1),v={__name:"UploadImageMultiple",props:["uploadPath"],emits:["update:images"],setup(i,{emit:p}){const c=i,a=e.ref([]),l=e.ref(null);function f(){l.value.click()}async function r(n){let o=n.target.files,s=new FormData;for(let t=0;t<o.length;t++)s.append("file",o[t]);try{(await m.axios.create({baseURL:process.env.API_URL,withCredentials:!0}).post(`/api/upload/multiple?folderName=${encodeURIComponent(c.uploadPath)}`,s,{headers:{"Content-Type":"multipart/form-data"}})).data.forEach(d=>{a.value.push(d.filepath)}),p("update:images",a.value)}catch(t){console.error(t)}}function u(n){n.preventDefault(),r({target:{files:n.dataTransfer.files}})}return(n,o)=>(e.openBlock(),e.createElementBlock("div",{onClick:f,onDrop:u,onDragover:o[0]||(o[0]=e.withModifiers(()=>{},["prevent"])),class:"flex-v-center flex-h-center flex"},[h,e.createElementVNode("input",{type:"file",ref_key:"fileInput",ref:l,onChange:r,multiple:"",style:{display:"none"}},null,544)],32))}};exports._sfc_main=v;
@@ -1,58 +0,0 @@
1
- import { ref as s, openBlock as h, createElementBlock as v, withModifiers as x, createElementVNode as i } from "vue";
2
- import { a as g } from "./index-4e469a71.mjs";
3
- const _ = /* @__PURE__ */ i("div", { class: "flex-v-center flex-h-center flex w-100 h-100" }, " upload ", -1), D = {
4
- __name: "UploadImageMultiple",
5
- props: [
6
- "uploadPath"
7
- ],
8
- emits: ["update:images"],
9
- setup(p, { emit: f }) {
10
- const c = p, a = s([]), n = s(null);
11
- function u() {
12
- n.value.click();
13
- }
14
- async function l(t) {
15
- let o = t.target.files, r = new FormData();
16
- for (let e = 0; e < o.length; e++)
17
- r.append("file", o[e]);
18
- try {
19
- (await g.create({ baseURL: process.env.API_URL, withCredentials: !0 }).post(`/api/upload/multiple?folderName=${encodeURIComponent(c.uploadPath)}`, r, {
20
- headers: {
21
- "Content-Type": "multipart/form-data"
22
- }
23
- })).data.forEach((d) => {
24
- a.value.push(d.filepath);
25
- }), f("update:images", a.value);
26
- } catch (e) {
27
- console.error(e);
28
- }
29
- }
30
- function m(t) {
31
- t.preventDefault(), l({
32
- target: {
33
- files: t.dataTransfer.files
34
- }
35
- });
36
- }
37
- return (t, o) => (h(), v("div", {
38
- onClick: u,
39
- onDrop: m,
40
- onDragover: o[0] || (o[0] = x(() => {
41
- }, ["prevent"])),
42
- class: "flex-v-center flex-h-center flex"
43
- }, [
44
- _,
45
- i("input", {
46
- type: "file",
47
- ref_key: "fileInput",
48
- ref: n,
49
- onChange: l,
50
- multiple: "",
51
- style: { display: "none" }
52
- }, null, 544)
53
- ], 32));
54
- }
55
- };
56
- export {
57
- D as _
58
- };
@@ -1,58 +0,0 @@
1
- import { ref as s, openBlock as h, createElementBlock as v, withModifiers as x, createElementVNode as i } from "vue";
2
- import { a as g } from "./index-9128ade5.mjs";
3
- const _ = /* @__PURE__ */ i("div", { class: "flex-v-center flex-h-center flex w-100 h-100" }, " upload ", -1), D = {
4
- __name: "UploadImageMultiple",
5
- props: [
6
- "uploadPath"
7
- ],
8
- emits: ["update:images"],
9
- setup(p, { emit: f }) {
10
- const c = p, a = s([]), n = s(null);
11
- function u() {
12
- n.value.click();
13
- }
14
- async function l(t) {
15
- let o = t.target.files, r = new FormData();
16
- for (let e = 0; e < o.length; e++)
17
- r.append("file", o[e]);
18
- try {
19
- (await g.create({ baseURL: process.env.API_URL, withCredentials: !0 }).post(`/api/upload/multiple?folderName=${encodeURIComponent(c.uploadPath)}`, r, {
20
- headers: {
21
- "Content-Type": "multipart/form-data"
22
- }
23
- })).data.forEach((d) => {
24
- a.value.push(d.filepath);
25
- }), f("update:images", a.value);
26
- } catch (e) {
27
- console.error(e);
28
- }
29
- }
30
- function m(t) {
31
- t.preventDefault(), l({
32
- target: {
33
- files: t.dataTransfer.files
34
- }
35
- });
36
- }
37
- return (t, o) => (h(), v("div", {
38
- onClick: u,
39
- onDrop: m,
40
- onDragover: o[0] || (o[0] = x(() => {
41
- }, ["prevent"])),
42
- class: "flex-v-center flex-h-center flex"
43
- }, [
44
- _,
45
- i("input", {
46
- type: "file",
47
- ref_key: "fileInput",
48
- ref: n,
49
- onChange: l,
50
- multiple: "",
51
- style: { display: "none" }
52
- }, null, 544)
53
- ], 32));
54
- }
55
- };
56
- export {
57
- D as _
58
- };
@@ -1,85 +0,0 @@
1
- import require$$0 from "mongodb";
2
- const { ObjectId } = require$$0;
3
- const addUserStatusFields = (user) => {
4
- return {
5
- $addFields: {
6
- isSubscriber: {
7
- $cond: {
8
- if: {
9
- $and: [
10
- user,
11
- {
12
- $in: [new ObjectId(user), "$memberships.user"]
13
- },
14
- {
15
- $in: ["subscriber", "$memberships.role"]
16
- }
17
- ]
18
- },
19
- then: true,
20
- else: false
21
- }
22
- },
23
- isMember: {
24
- $cond: {
25
- if: {
26
- $and: [
27
- user,
28
- {
29
- $in: [new ObjectId(user), "$memberships.user"]
30
- },
31
- {
32
- $not: [
33
- {
34
- $in: ["$memberships.role", ["subscriber", "blocked"]]
35
- }
36
- ]
37
- }
38
- ]
39
- },
40
- then: true,
41
- else: false
42
- }
43
- },
44
- isBlocked: {
45
- $cond: {
46
- if: {
47
- $and: [
48
- user,
49
- {
50
- $in: [new ObjectId(user), "$memberships.user"]
51
- },
52
- {
53
- $in: ["blocked", "$memberships.role"]
54
- }
55
- ]
56
- },
57
- then: true,
58
- else: false
59
- }
60
- }
61
- }
62
- };
63
- };
64
- var addUserStatusFields_1 = addUserStatusFields;
65
- const addMembersQuantity = (user) => {
66
- return {
67
- $addFields: {
68
- numberOfSubscribers: {
69
- $size: {
70
- $filter: {
71
- input: "$memberships",
72
- as: "membership",
73
- cond: { $eq: ["$$membership.role", "subscriber"] }
74
- // здесь мы проверяем, что роль должна быть "subscriber"
75
- }
76
- }
77
- }
78
- }
79
- };
80
- };
81
- var addMembersQuantity_1 = addMembersQuantity;
82
- export {
83
- addUserStatusFields_1 as a,
84
- addMembersQuantity_1 as b
85
- };
@@ -1,84 +0,0 @@
1
- "use strict";
2
- const require$$0 = require("mongodb");
3
- const { ObjectId } = require$$0;
4
- const addUserStatusFields = (user) => {
5
- return {
6
- $addFields: {
7
- isSubscriber: {
8
- $cond: {
9
- if: {
10
- $and: [
11
- user,
12
- {
13
- $in: [new ObjectId(user), "$memberships.user"]
14
- },
15
- {
16
- $in: ["subscriber", "$memberships.role"]
17
- }
18
- ]
19
- },
20
- then: true,
21
- else: false
22
- }
23
- },
24
- isMember: {
25
- $cond: {
26
- if: {
27
- $and: [
28
- user,
29
- {
30
- $in: [new ObjectId(user), "$memberships.user"]
31
- },
32
- {
33
- $not: [
34
- {
35
- $in: ["$memberships.role", ["subscriber", "blocked"]]
36
- }
37
- ]
38
- }
39
- ]
40
- },
41
- then: true,
42
- else: false
43
- }
44
- },
45
- isBlocked: {
46
- $cond: {
47
- if: {
48
- $and: [
49
- user,
50
- {
51
- $in: [new ObjectId(user), "$memberships.user"]
52
- },
53
- {
54
- $in: ["blocked", "$memberships.role"]
55
- }
56
- ]
57
- },
58
- then: true,
59
- else: false
60
- }
61
- }
62
- }
63
- };
64
- };
65
- var addUserStatusFields_1 = addUserStatusFields;
66
- const addMembersQuantity = (user) => {
67
- return {
68
- $addFields: {
69
- numberOfSubscribers: {
70
- $size: {
71
- $filter: {
72
- input: "$memberships",
73
- as: "membership",
74
- cond: { $eq: ["$$membership.role", "subscriber"] }
75
- // здесь мы проверяем, что роль должна быть "subscriber"
76
- }
77
- }
78
- }
79
- }
80
- };
81
- };
82
- var addMembersQuantity_1 = addMembersQuantity;
83
- exports.addMembersQuantity_1 = addMembersQuantity_1;
84
- exports.addUserStatusFields_1 = addUserStatusFields_1;
@@ -1,7 +0,0 @@
1
- "use strict";const G=require("./index-b41aac19.js"),M=require("vue"),j=require("./globals-928eb13c.js");var Q={exports:{}};/*!
2
- * JavaScript Cookie v2.2.1
3
- * https://github.com/js-cookie/js-cookie
4
- *
5
- * Copyright 2006, 2015 Klaus Hartl & Fagner Brack
6
- * Released under the MIT license
7
- */(function(t,e){(function(r){var o;if(t.exports=r(),o=!0,!o){var n=window.Cookies,s=window.Cookies=r();s.noConflict=function(){return window.Cookies=n,s}}})(function(){function r(){for(var s=0,i={};s<arguments.length;s++){var a=arguments[s];for(var d in a)i[d]=a[d]}return i}function o(s){return s.replace(/(%[0-9A-Z]{2})+/g,decodeURIComponent)}function n(s){function i(){}function a(c,p,l){if(!(typeof document>"u")){l=r({path:"/"},i.defaults,l),typeof l.expires=="number"&&(l.expires=new Date(new Date*1+l.expires*864e5)),l.expires=l.expires?l.expires.toUTCString():"";try{var b=JSON.stringify(p);/^[\{\[]/.test(b)&&(p=b)}catch{}p=s.write?s.write(p,c):encodeURIComponent(String(p)).replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g,decodeURIComponent),c=encodeURIComponent(String(c)).replace(/%(23|24|26|2B|5E|60|7C)/g,decodeURIComponent).replace(/[\(\)]/g,escape);var y="";for(var C in l)l[C]&&(y+="; "+C,l[C]!==!0&&(y+="="+l[C].split(";")[0]));return document.cookie=c+"="+p+y}}function d(c,p){if(!(typeof document>"u")){for(var l={},b=document.cookie?document.cookie.split("; "):[],y=0;y<b.length;y++){var C=b[y].split("="),h=C.slice(1).join("=");!p&&h.charAt(0)==='"'&&(h=h.slice(1,-1));try{var A=o(C[0]);if(h=(s.read||s)(h,A)||o(h),p)try{h=JSON.parse(h)}catch{}if(l[A]=h,c===A)break}catch{}}return c?l[c]:l}}return i.set=a,i.get=function(c){return d(c,!1)},i.getJSON=function(c){return d(c,!0)},i.remove=function(c,p){a(c,"",r(p,{expires:-1}))},i.defaults={},i.withConverter=n,i}return n(function(){})})})(Q);var de=Q.exports;const H=G.getDefaultExportFromCjs(de);/*! Capacitor: https://capacitorjs.com/ - MIT License */const ue=t=>{const e=new Map;e.set("web",{name:"web"});const r=t.CapacitorPlatforms||{currentPlatform:{name:"web"},platforms:e},o=(s,i)=>{r.platforms.set(s,i)},n=s=>{r.platforms.has(s)&&(r.currentPlatform=r.platforms.get(s))};return r.addPlatform=o,r.setPlatform=n,r},fe=t=>t.CapacitorPlatforms=ue(t),X=fe(typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});X.addPlatform;X.setPlatform;var S;(function(t){t.Unimplemented="UNIMPLEMENTED",t.Unavailable="UNAVAILABLE"})(S||(S={}));class F extends Error{constructor(e,r,o){super(e),this.message=e,this.code=r,this.data=o}}const pe=t=>{var e,r;return t!=null&&t.androidBridge?"android":!((r=(e=t==null?void 0:t.webkit)===null||e===void 0?void 0:e.messageHandlers)===null||r===void 0)&&r.bridge?"ios":"web"},ge=t=>{var e,r,o,n,s;const i=t.CapacitorCustomPlatform||null,a=t.Capacitor||{},d=a.Plugins=a.Plugins||{},c=t.CapacitorPlatforms,p=()=>i!==null?i.name:pe(t),l=((e=c==null?void 0:c.currentPlatform)===null||e===void 0?void 0:e.getPlatform)||p,b=()=>l()!=="web",y=((r=c==null?void 0:c.currentPlatform)===null||r===void 0?void 0:r.isNativePlatform)||b,C=u=>{const f=B.get(u);return!!(f!=null&&f.platforms.has(l())||R(u))},h=((o=c==null?void 0:c.currentPlatform)===null||o===void 0?void 0:o.isPluginAvailable)||C,A=u=>{var f;return(f=a.PluginHeaders)===null||f===void 0?void 0:f.find(x=>x.name===u)},R=((n=c==null?void 0:c.currentPlatform)===null||n===void 0?void 0:n.getPluginHeader)||A,se=u=>t.console.error(u),ne=(u,f,x)=>Promise.reject(`${x} does not have an implementation of "${f}".`),B=new Map,oe=(u,f={})=>{const x=B.get(u);if(x)return console.warn(`Capacitor plugin "${u}" already registered. Cannot register plugins twice.`),x.proxy;const E=l(),_=R(u);let O;const ie=async()=>(!O&&E in f?O=typeof f[E]=="function"?O=await f[E]():O=f[E]:i!==null&&!O&&"web"in f&&(O=typeof f.web=="function"?O=await f.web():O=f.web),O),ce=(g,w)=>{var P,L;if(_){const k=_==null?void 0:_.methods.find(v=>w===v.name);if(k)return k.rtype==="promise"?v=>a.nativePromise(u,w.toString(),v):(v,T)=>a.nativeCallback(u,w.toString(),v,T);if(g)return(P=g[w])===null||P===void 0?void 0:P.bind(g)}else{if(g)return(L=g[w])===null||L===void 0?void 0:L.bind(g);throw new F(`"${u}" plugin is not implemented on ${E}`,S.Unimplemented)}},q=g=>{let w;const P=(...L)=>{const k=ie().then(v=>{const T=ce(v,g);if(T){const I=T(...L);return w=I==null?void 0:I.remove,I}else throw new F(`"${u}.${g}()" is not implemented on ${E}`,S.Unimplemented)});return g==="addListener"&&(k.remove=async()=>w()),k};return P.toString=()=>`${g.toString()}() { [capacitor code] }`,Object.defineProperty(P,"name",{value:g,writable:!1,configurable:!1}),P},K=q("addListener"),N=q("removeListener"),le=(g,w)=>{const P=K({eventName:g},w),L=async()=>{const v=await P;N({eventName:g,callbackId:v},w)},k=new Promise(v=>P.then(()=>v({remove:L})));return k.remove=async()=>{console.warn("Using addListener() without 'await' is deprecated."),await L()},k},W=new Proxy({},{get(g,w){switch(w){case"$$typeof":return;case"toJSON":return()=>({});case"addListener":return _?le:K;case"removeListener":return N;default:return q(w)}}});return d[u]=W,B.set(u,{name:u,proxy:W,platforms:new Set([...Object.keys(f),..._?[E]:[]])}),W},ae=((s=c==null?void 0:c.currentPlatform)===null||s===void 0?void 0:s.registerPlugin)||oe;return a.convertFileSrc||(a.convertFileSrc=u=>u),a.getPlatform=l,a.handleError=se,a.isNativePlatform=y,a.isPluginAvailable=h,a.pluginMethodNoop=ne,a.registerPlugin=ae,a.Exception=F,a.DEBUG=!!a.DEBUG,a.isLoggingEnabled=!!a.isLoggingEnabled,a.platform=a.getPlatform(),a.isNative=a.isNativePlatform(),a},me=t=>t.Capacitor=ge(t),D=me(typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{}),Y=D.registerPlugin;D.Plugins;class ee{constructor(e){this.listeners={},this.windowListeners={},e&&(console.warn(`Capacitor WebPlugin "${e.name}" config object was deprecated in v3 and will be removed in v4.`),this.config=e)}addListener(e,r){this.listeners[e]||(this.listeners[e]=[]),this.listeners[e].push(r);const n=this.windowListeners[e];n&&!n.registered&&this.addWindowListener(n);const s=async()=>this.removeListener(e,r),i=Promise.resolve({remove:s});return Object.defineProperty(i,"remove",{value:async()=>{console.warn("Using addListener() without 'await' is deprecated."),await s()}}),i}async removeAllListeners(){this.listeners={};for(const e in this.windowListeners)this.removeWindowListener(this.windowListeners[e]);this.windowListeners={}}notifyListeners(e,r){const o=this.listeners[e];o&&o.forEach(n=>n(r))}hasListeners(e){return!!this.listeners[e].length}registerWindowListener(e,r){this.windowListeners[r]={registered:!1,windowEventName:e,pluginEventName:r,handler:o=>{this.notifyListeners(r,o)}}}unimplemented(e="not implemented"){return new D.Exception(e,S.Unimplemented)}unavailable(e="not available"){return new D.Exception(e,S.Unavailable)}async removeListener(e,r){const o=this.listeners[e];if(!o)return;const n=o.indexOf(r);this.listeners[e].splice(n,1),this.listeners[e].length||this.removeWindowListener(this.windowListeners[e])}addWindowListener(e){window.addEventListener(e.windowEventName,e.handler),e.registered=!0}removeWindowListener(e){e&&(window.removeEventListener(e.windowEventName,e.handler),e.registered=!1)}}const V=t=>encodeURIComponent(t).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape),Z=t=>t.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent);class we extends ee{async getCookies(){const e=document.cookie,r={};return e.split(";").forEach(o=>{if(o.length<=0)return;let[n,s]=o.replace(/=/,"CAP_COOKIE").split("CAP_COOKIE");n=Z(n).trim(),s=Z(s).trim(),r[n]=s}),r}async setCookie(e){try{const r=V(e.key),o=V(e.value),n=`; expires=${(e.expires||"").replace("expires=","")}`,s=(e.path||"/").replace("path=",""),i=e.url!=null&&e.url.length>0?`domain=${e.url}`:"";document.cookie=`${r}=${o||""}${n}; path=${s}; ${i};`}catch(r){return Promise.reject(r)}}async deleteCookie(e){try{document.cookie=`${e.key}=; Max-Age=0`}catch(r){return Promise.reject(r)}}async clearCookies(){try{const e=document.cookie.split(";")||[];for(const r of e)document.cookie=r.replace(/^ +/,"").replace(/=.*/,`=;expires=${new Date().toUTCString()};path=/`)}catch(e){return Promise.reject(e)}}async clearAllCookies(){try{await this.clearCookies()}catch(e){return Promise.reject(e)}}}const z=Y("CapacitorCookies",{web:()=>new we}),he=async t=>new Promise((e,r)=>{const o=new FileReader;o.onload=()=>{const n=o.result;e(n.indexOf(",")>=0?n.split(",")[1]:n)},o.onerror=n=>r(n),o.readAsDataURL(t)}),ve=(t={})=>{const e=Object.keys(t);return Object.keys(t).map(n=>n.toLocaleLowerCase()).reduce((n,s,i)=>(n[s]=t[e[i]],n),{})},Pe=(t,e=!0)=>t?Object.entries(t).reduce((o,n)=>{const[s,i]=n;let a,d;return Array.isArray(i)?(d="",i.forEach(c=>{a=e?encodeURIComponent(c):c,d+=`${s}=${a}&`}),d.slice(0,-1)):(a=e?encodeURIComponent(i):i,d=`${s}=${a}`),`${o}&${d}`},"").substr(1):null,be=(t,e={})=>{const r=Object.assign({method:t.method||"GET",headers:t.headers},e),n=ve(t.headers)["content-type"]||"";if(typeof t.data=="string")r.body=t.data;else if(n.includes("application/x-www-form-urlencoded")){const s=new URLSearchParams;for(const[i,a]of Object.entries(t.data||{}))s.set(i,a);r.body=s.toString()}else if(n.includes("multipart/form-data")){const s=new FormData;if(t.data instanceof FormData)t.data.forEach((a,d)=>{s.append(d,a)});else for(const a of Object.keys(t.data))s.append(a,t.data[a]);r.body=s;const i=new Headers(r.headers);i.delete("content-type"),r.headers=i}else(n.includes("application/json")||typeof t.data=="object")&&(r.body=JSON.stringify(t.data));return r};class ye extends ee{async request(e){const r=be(e,e.webFetchExtra),o=Pe(e.params,e.shouldEncodeUrlParams),n=o?`${e.url}?${o}`:e.url,s=await fetch(n,r),i=s.headers.get("content-type")||"";let{responseType:a="text"}=s.ok?e:{};i.includes("application/json")&&(a="json");let d,c;switch(a){case"arraybuffer":case"blob":c=await s.blob(),d=await he(c);break;case"json":d=await s.json();break;case"document":case"text":default:d=await s.text()}const p={};return s.headers.forEach((l,b)=>{p[b]=l}),{data:d,headers:p,status:s.status,url:s.url}}async get(e){return this.request(Object.assign(Object.assign({},e),{method:"GET"}))}async post(e){return this.request(Object.assign(Object.assign({},e),{method:"POST"}))}async put(e){return this.request(Object.assign(Object.assign({},e),{method:"PUT"}))}async patch(e){return this.request(Object.assign(Object.assign({},e),{method:"PATCH"}))}async delete(e){return this.request(Object.assign(Object.assign({},e),{method:"DELETE"}))}}Y("CapacitorHttp",{web:()=>new ye});const Ce=G.axios.create({baseURL:process.env.API_URL,withCredentials:!0}),U=M.reactive({code:{value:"",type:"",method:"",isSended:!1,isValid:!1}});async function te(t,e,r){return await Ce.post("/api/twofa/sendcode",{phone:t.phone.number,email:t.email,method:e,type:r}).then(o=>(U.code=o.data,U.code.isSended=!0,Promise.resolve(o.data)),o=>(console.log(o),j.setError(o),Promise.reject(o)))}M.watch(U,(t,e)=>{});const Oe=Object.freeze(Object.defineProperty({__proto__:null,sendCode:te,state:U},Symbol.toStringTag,{value:"Module"})),$=G.axios.create({baseURL:process.env.API_URL,withCredentials:!0}),m=M.reactive({user:{_id:void 0,username:"",email:"",phone:"",password:"",passwordRepeat:""},access:{roles:null,token:null,status:!1}});async function Le(){const t=await Ee("user");if(t){const{_id:e,email:r,phone:o,roles:n,accessToken:s}=t;Object.assign(m.user,{_id:e,email:r,phone:o}),Object.assign(m.access,{token:s,roles:n,status:!!s}),$.interceptors.request.use(i=>(s&&(i.headers["x-access-token"]=s),i),i=>Promise.reject(i))}}Le();const re={async login(t,e){try{const r=await $.post("/api/auth/signin",{...t,type:e});return J("user",r.data),Object.assign(m.user,{...r.data}),Object.assign(m.access,{token:r.data.accessToken,status:!0,roles:r.data.roles}),r.data}catch(r){return Object.assign(m.access,{token:null,status:!1,roles:null}),j.setError(r),Promise.reject(r)}},async signup(t,e,r){const{password:o,passwordRepeat:n}=m.user;if(o!==n){const s={response:{data:{errorCode:"PASSWORDS_DO_NOT_MATCH"}}};throw j.setError(s),new Error(s.response.status)}try{t.phone=t.phone.number;const s=await $.post("/api/auth/signup",{...t,type:e,inviteCode:r});return s.data.accessToken&&J("user",s.data),Object.assign(m.user,{...s.data}),Object.assign(m.access,{token:s.data.accessToken,status:!0,roles:s.data.roles}),s.data}catch(s){throw j.setError(s),console.log("Sign up falied"),s}},logout(){je("user"),Object.assign(m.user,{email:"",phone:"",password:"",passwordRepeat:""}),Object.assign(m.access,{token:null,status:!1})},async resetPassword(t,e){try{const r=await $.post("/api/auth/reset-password",{email:t.email,phone:t.phone.number,type:e});return Object.assign(U.code,{...r.data,isSended:!0}),r.data}catch(r){return j.setError(r),Promise.reject(r)}},async updatePassword(t,e){const{password:r,passwordRepeat:o}=m.user;if(r!==o){const n={response:{data:{errorCode:"PASSWORDS_DO_NOT_MATCH"}}};throw j.setError(n),new Error(n.response.status)}try{const n=await $.post("/api/auth/update-password",{email:t.email,phone:t.phone.number,password:t.password,passwordRepeat:t.passwordRepeat,type:e});return n.data.accessToken&&J("user",n.data),Object.assign(m.user,{...n.data}),Object.assign(m.access,{token:n.data.accessToken,status:!0}),n.data}catch(n){return j.setError(n),Promise.reject(n)}}},ke={development:{secure:!1,expires:1},production:{expires:1,domain:process.env.API_URL,sameSite:"none",secure:!0}};function Ee(t){if(process.env.MOBILE_APP)return z.getCookie({url:process.env.API_URL,key:t}).then(e=>JSON.parse(e.value));{const e=H.get(t);return e?JSON.parse(e):null}}function J(t,e,r=process.env.NODE_ENV){process.env.MOBILE_APP?z.setCookie({url:process.env.API_URL,key:t,value:JSON.stringify(e)}):H.set(t,JSON.stringify(e),ke[r])}function je(t,e=process.env.NODE_ENV){if(process.env.MOBILE_APP)z.deleteCookie({url:process.env.API_URL,key:t});else{const r=e==="production"?{domain:process.env.API_URL}:{};H.remove(t,r)}}M.watch(m,(t,e)=>{});const xe=Object.freeze(Object.defineProperty({__proto__:null,actions:re,state:m},Symbol.toStringTag,{value:"Module"}));exports.Cookies=H;exports.actions=re;exports.auth=xe;exports.sendCode=te;exports.state=m;exports.state$1=U;exports.twofa=Oe;
@@ -1,7 +0,0 @@
1
- "use strict";const G=require("./index-7ecbf72a.js"),H=require("vue"),j=require("./globals-928eb13c.js");var Z={exports:{}};/*!
2
- * JavaScript Cookie v2.2.1
3
- * https://github.com/js-cookie/js-cookie
4
- *
5
- * Copyright 2006, 2015 Klaus Hartl & Fagner Brack
6
- * Released under the MIT license
7
- */(function(r,e){(function(t){var o;if(r.exports=t(),o=!0,!o){var n=window.Cookies,s=window.Cookies=t();s.noConflict=function(){return window.Cookies=n,s}}})(function(){function t(){for(var s=0,i={};s<arguments.length;s++){var a=arguments[s];for(var d in a)i[d]=a[d]}return i}function o(s){return s.replace(/(%[0-9A-Z]{2})+/g,decodeURIComponent)}function n(s){function i(){}function a(c,p,l){if(!(typeof document>"u")){l=t({path:"/"},i.defaults,l),typeof l.expires=="number"&&(l.expires=new Date(new Date*1+l.expires*864e5)),l.expires=l.expires?l.expires.toUTCString():"";try{var b=JSON.stringify(p);/^[\{\[]/.test(b)&&(p=b)}catch{}p=s.write?s.write(p,c):encodeURIComponent(String(p)).replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g,decodeURIComponent),c=encodeURIComponent(String(c)).replace(/%(23|24|26|2B|5E|60|7C)/g,decodeURIComponent).replace(/[\(\)]/g,escape);var y="";for(var C in l)l[C]&&(y+="; "+C,l[C]!==!0&&(y+="="+l[C].split(";")[0]));return document.cookie=c+"="+p+y}}function d(c,p){if(!(typeof document>"u")){for(var l={},b=document.cookie?document.cookie.split("; "):[],y=0;y<b.length;y++){var C=b[y].split("="),h=C.slice(1).join("=");!p&&h.charAt(0)==='"'&&(h=h.slice(1,-1));try{var A=o(C[0]);if(h=(s.read||s)(h,A)||o(h),p)try{h=JSON.parse(h)}catch{}if(l[A]=h,c===A)break}catch{}}return c?l[c]:l}}return i.set=a,i.get=function(c){return d(c,!1)},i.getJSON=function(c){return d(c,!0)},i.remove=function(c,p){a(c,"",t(p,{expires:-1}))},i.defaults={},i.withConverter=n,i}return n(function(){})})})(Z);var de=Z.exports;const R=G.getDefaultExportFromCjs(de);/*! Capacitor: https://capacitorjs.com/ - MIT License */const ue=r=>{const e=new Map;e.set("web",{name:"web"});const t=r.CapacitorPlatforms||{currentPlatform:{name:"web"},platforms:e},o=(s,i)=>{t.platforms.set(s,i)},n=s=>{t.platforms.has(s)&&(t.currentPlatform=t.platforms.get(s))};return t.addPlatform=o,t.setPlatform=n,t},fe=r=>r.CapacitorPlatforms=ue(r),Q=fe(typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});Q.addPlatform;Q.setPlatform;var _;(function(r){r.Unimplemented="UNIMPLEMENTED",r.Unavailable="UNAVAILABLE"})(_||(_={}));class F extends Error{constructor(e,t,o){super(e),this.message=e,this.code=t,this.data=o}}const pe=r=>{var e,t;return r!=null&&r.androidBridge?"android":!((t=(e=r==null?void 0:r.webkit)===null||e===void 0?void 0:e.messageHandlers)===null||t===void 0)&&t.bridge?"ios":"web"},ge=r=>{var e,t,o,n,s;const i=r.CapacitorCustomPlatform||null,a=r.Capacitor||{},d=a.Plugins=a.Plugins||{},c=r.CapacitorPlatforms,p=()=>i!==null?i.name:pe(r),l=((e=c==null?void 0:c.currentPlatform)===null||e===void 0?void 0:e.getPlatform)||p,b=()=>l()!=="web",y=((t=c==null?void 0:c.currentPlatform)===null||t===void 0?void 0:t.isNativePlatform)||b,C=u=>{const f=B.get(u);return!!(f!=null&&f.platforms.has(l())||T(u))},h=((o=c==null?void 0:c.currentPlatform)===null||o===void 0?void 0:o.isPluginAvailable)||C,A=u=>{var f;return(f=a.PluginHeaders)===null||f===void 0?void 0:f.find(x=>x.name===u)},T=((n=c==null?void 0:c.currentPlatform)===null||n===void 0?void 0:n.getPluginHeader)||A,se=u=>r.console.error(u),ne=(u,f,x)=>Promise.reject(`${x} does not have an implementation of "${f}".`),B=new Map,oe=(u,f={})=>{const x=B.get(u);if(x)return console.warn(`Capacitor plugin "${u}" already registered. Cannot register plugins twice.`),x.proxy;const k=l(),S=T(u);let O;const ie=async()=>(!O&&k in f?O=typeof f[k]=="function"?O=await f[k]():O=f[k]:i!==null&&!O&&"web"in f&&(O=typeof f.web=="function"?O=await f.web():O=f.web),O),ce=(g,w)=>{var P,L;if(S){const E=S==null?void 0:S.methods.find(v=>w===v.name);if(E)return E.rtype==="promise"?v=>a.nativePromise(u,w.toString(),v):(v,I)=>a.nativeCallback(u,w.toString(),v,I);if(g)return(P=g[w])===null||P===void 0?void 0:P.bind(g)}else{if(g)return(L=g[w])===null||L===void 0?void 0:L.bind(g);throw new F(`"${u}" plugin is not implemented on ${k}`,_.Unimplemented)}},W=g=>{let w;const P=(...L)=>{const E=ie().then(v=>{const I=ce(v,g);if(I){const D=I(...L);return w=D==null?void 0:D.remove,D}else throw new F(`"${u}.${g}()" is not implemented on ${k}`,_.Unimplemented)});return g==="addListener"&&(E.remove=async()=>w()),E};return P.toString=()=>`${g.toString()}() { [capacitor code] }`,Object.defineProperty(P,"name",{value:g,writable:!1,configurable:!1}),P},K=W("addListener"),V=W("removeListener"),le=(g,w)=>{const P=K({eventName:g},w),L=async()=>{const v=await P;V({eventName:g,callbackId:v},w)},E=new Promise(v=>P.then(()=>v({remove:L})));return E.remove=async()=>{console.warn("Using addListener() without 'await' is deprecated."),await L()},E},q=new Proxy({},{get(g,w){switch(w){case"$$typeof":return;case"toJSON":return()=>({});case"addListener":return S?le:K;case"removeListener":return V;default:return W(w)}}});return d[u]=q,B.set(u,{name:u,proxy:q,platforms:new Set([...Object.keys(f),...S?[k]:[]])}),q},ae=((s=c==null?void 0:c.currentPlatform)===null||s===void 0?void 0:s.registerPlugin)||oe;return a.convertFileSrc||(a.convertFileSrc=u=>u),a.getPlatform=l,a.handleError=se,a.isNativePlatform=y,a.isPluginAvailable=h,a.pluginMethodNoop=ne,a.registerPlugin=ae,a.Exception=F,a.DEBUG=!!a.DEBUG,a.isLoggingEnabled=!!a.isLoggingEnabled,a.platform=a.getPlatform(),a.isNative=a.isNativePlatform(),a},me=r=>r.Capacitor=ge(r),M=me(typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{}),X=M.registerPlugin;M.Plugins;class Y{constructor(e){this.listeners={},this.windowListeners={},e&&(console.warn(`Capacitor WebPlugin "${e.name}" config object was deprecated in v3 and will be removed in v4.`),this.config=e)}addListener(e,t){this.listeners[e]||(this.listeners[e]=[]),this.listeners[e].push(t);const n=this.windowListeners[e];n&&!n.registered&&this.addWindowListener(n);const s=async()=>this.removeListener(e,t),i=Promise.resolve({remove:s});return Object.defineProperty(i,"remove",{value:async()=>{console.warn("Using addListener() without 'await' is deprecated."),await s()}}),i}async removeAllListeners(){this.listeners={};for(const e in this.windowListeners)this.removeWindowListener(this.windowListeners[e]);this.windowListeners={}}notifyListeners(e,t){const o=this.listeners[e];o&&o.forEach(n=>n(t))}hasListeners(e){return!!this.listeners[e].length}registerWindowListener(e,t){this.windowListeners[t]={registered:!1,windowEventName:e,pluginEventName:t,handler:o=>{this.notifyListeners(t,o)}}}unimplemented(e="not implemented"){return new M.Exception(e,_.Unimplemented)}unavailable(e="not available"){return new M.Exception(e,_.Unavailable)}async removeListener(e,t){const o=this.listeners[e];if(!o)return;const n=o.indexOf(t);this.listeners[e].splice(n,1),this.listeners[e].length||this.removeWindowListener(this.windowListeners[e])}addWindowListener(e){window.addEventListener(e.windowEventName,e.handler),e.registered=!0}removeWindowListener(e){e&&(window.removeEventListener(e.windowEventName,e.handler),e.registered=!1)}}const z=r=>encodeURIComponent(r).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape),N=r=>r.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent);class we extends Y{async getCookies(){const e=document.cookie,t={};return e.split(";").forEach(o=>{if(o.length<=0)return;let[n,s]=o.replace(/=/,"CAP_COOKIE").split("CAP_COOKIE");n=N(n).trim(),s=N(s).trim(),t[n]=s}),t}async setCookie(e){try{const t=z(e.key),o=z(e.value),n=`; expires=${(e.expires||"").replace("expires=","")}`,s=(e.path||"/").replace("path=",""),i=e.url!=null&&e.url.length>0?`domain=${e.url}`:"";document.cookie=`${t}=${o||""}${n}; path=${s}; ${i};`}catch(t){return Promise.reject(t)}}async deleteCookie(e){try{document.cookie=`${e.key}=; Max-Age=0`}catch(t){return Promise.reject(t)}}async clearCookies(){try{const e=document.cookie.split(";")||[];for(const t of e)document.cookie=t.replace(/^ +/,"").replace(/=.*/,`=;expires=${new Date().toUTCString()};path=/`)}catch(e){return Promise.reject(e)}}async clearAllCookies(){try{await this.clearCookies()}catch(e){return Promise.reject(e)}}}const ee=X("CapacitorCookies",{web:()=>new we}),he=async r=>new Promise((e,t)=>{const o=new FileReader;o.onload=()=>{const n=o.result;e(n.indexOf(",")>=0?n.split(",")[1]:n)},o.onerror=n=>t(n),o.readAsDataURL(r)}),ve=(r={})=>{const e=Object.keys(r);return Object.keys(r).map(n=>n.toLocaleLowerCase()).reduce((n,s,i)=>(n[s]=r[e[i]],n),{})},Pe=(r,e=!0)=>r?Object.entries(r).reduce((o,n)=>{const[s,i]=n;let a,d;return Array.isArray(i)?(d="",i.forEach(c=>{a=e?encodeURIComponent(c):c,d+=`${s}=${a}&`}),d.slice(0,-1)):(a=e?encodeURIComponent(i):i,d=`${s}=${a}`),`${o}&${d}`},"").substr(1):null,be=(r,e={})=>{const t=Object.assign({method:r.method||"GET",headers:r.headers},e),n=ve(r.headers)["content-type"]||"";if(typeof r.data=="string")t.body=r.data;else if(n.includes("application/x-www-form-urlencoded")){const s=new URLSearchParams;for(const[i,a]of Object.entries(r.data||{}))s.set(i,a);t.body=s.toString()}else if(n.includes("multipart/form-data")){const s=new FormData;if(r.data instanceof FormData)r.data.forEach((a,d)=>{s.append(d,a)});else for(const a of Object.keys(r.data))s.append(a,r.data[a]);t.body=s;const i=new Headers(t.headers);i.delete("content-type"),t.headers=i}else(n.includes("application/json")||typeof r.data=="object")&&(t.body=JSON.stringify(r.data));return t};class ye extends Y{async request(e){const t=be(e,e.webFetchExtra),o=Pe(e.params,e.shouldEncodeUrlParams),n=o?`${e.url}?${o}`:e.url,s=await fetch(n,t),i=s.headers.get("content-type")||"";let{responseType:a="text"}=s.ok?e:{};i.includes("application/json")&&(a="json");let d,c;switch(a){case"arraybuffer":case"blob":c=await s.blob(),d=await he(c);break;case"json":d=await s.json();break;case"document":case"text":default:d=await s.text()}const p={};return s.headers.forEach((l,b)=>{p[b]=l}),{data:d,headers:p,status:s.status,url:s.url}}async get(e){return this.request(Object.assign(Object.assign({},e),{method:"GET"}))}async post(e){return this.request(Object.assign(Object.assign({},e),{method:"POST"}))}async put(e){return this.request(Object.assign(Object.assign({},e),{method:"PUT"}))}async patch(e){return this.request(Object.assign(Object.assign({},e),{method:"PATCH"}))}async delete(e){return this.request(Object.assign(Object.assign({},e),{method:"DELETE"}))}}X("CapacitorHttp",{web:()=>new ye});const Ce=G.axios.create({baseURL:process.env.API_URL,withCredentials:!0}),U=H.reactive({code:{value:"",type:"",method:"",isSended:!1,isValid:!1}});async function te(r,e,t){return await Ce.post("/api/twofa/sendcode",{phone:r.phone.number,email:r.email,method:e,type:t}).then(o=>(U.code=o.data,U.code.isSended=!0,Promise.resolve(o.data)),o=>(console.log(o),j.setError(o),Promise.reject(o)))}H.watch(U,(r,e)=>{});const Oe=Object.freeze(Object.defineProperty({__proto__:null,sendCode:te,state:U},Symbol.toStringTag,{value:"Module"})),$=G.axios.create({baseURL:process.env.API_URL,withCredentials:!0}),m=H.reactive({user:{_id:"",username:"",email:"",phone:"",password:"",passwordRepeat:""},access:{roles:null,token:null,status:!1}});if(R.get("user")){const{_id:r,email:e,phone:t,roles:o,accessToken:n}=JSON.parse(R.get("user"));Object.assign(m.user,{_id:r,email:e,phone:t}),Object.assign(m.access,{token:n,roles:o,status:!!n}),$.interceptors.request.use(s=>(n&&(s.headers["x-access-token"]=n),s),s=>Promise.reject(s))}const re={async login(r,e){try{const t=await $.post("/api/auth/signin",{...r,type:e});return J("user",t.data),Object.assign(m.user,{...t.data}),Object.assign(m.access,{token:t.data.accessToken,status:!0,roles:t.data.roles}),t.data}catch(t){return Object.assign(m.access,{token:null,status:!1,roles:null}),j.setError(t),Promise.reject(t)}},async signup(r,e,t){const{password:o,passwordRepeat:n}=m.user;if(o!==n){const s={response:{data:{errorCode:"PASSWORDS_DO_NOT_MATCH"}}};throw j.setError(s),new Error(s.response.status)}try{r.phone=r.phone.number;const s=await $.post("/api/auth/signup",{...r,type:e,inviteCode:t});return s.data.accessToken&&J("user",s.data),Object.assign(m.user,{...s.data}),Object.assign(m.access,{token:s.data.accessToken,status:!0,roles:s.data.roles}),s.data}catch(s){throw j.setError(s),console.log("Sign up falied"),s}},logout(){Ee("user"),Object.assign(m.user,{email:"",phone:"",password:"",passwordRepeat:""}),Object.assign(m.access,{token:null,status:!1})},async resetPassword(r,e){try{const t=await $.post("/api/auth/reset-password",{email:r.email,phone:r.phone.number,type:e});return Object.assign(U.code,{...t.data,isSended:!0}),t.data}catch(t){return j.setError(t),Promise.reject(t)}},async updatePassword(r,e){const{password:t,passwordRepeat:o}=m.user;if(t!==o){const n={response:{data:{errorCode:"PASSWORDS_DO_NOT_MATCH"}}};throw j.setError(n),new Error(n.response.status)}try{const n=await $.post("/api/auth/update-password",{email:r.email,phone:r.phone.number,password:r.password,passwordRepeat:r.passwordRepeat,type:e});return n.data.accessToken&&J("user",n.data),Object.assign(m.user,{...n.data}),Object.assign(m.access,{token:n.data.accessToken,status:!0}),n.data}catch(n){return j.setError(n),Promise.reject(n)}}},Le={development:{secure:!1,expires:1},production:{expires:1,domain:process.env.API_URL,sameSite:"none",secure:!0}};function J(r,e,t=process.env.NODE_ENV){process.env.MOBILE_APP?ee.setCookie({url:process.env.API_URL,key:r,value:JSON.stringify(e)}):R.set(r,JSON.stringify(e),Le[t])}function Ee(r,e=process.env.NODE_ENV){if(process.env.MOBILE_APP)ee.deleteCookie({url:process.env.API_URL,key:r});else{const t=e==="production"?{domain:process.env.API_URL}:{};R.remove(r,t)}}H.watch(m,(r,e)=>{});const ke=Object.freeze(Object.defineProperty({__proto__:null,actions:re,state:m},Symbol.toStringTag,{value:"Module"}));exports.Cookies=R;exports.actions=re;exports.auth=ke;exports.sendCode=te;exports.state=m;exports.state$1=U;exports.twofa=Oe;
@@ -1,8 +0,0 @@
1
- "use strict";const u=require("vue"),qt=require("./_plugin-vue_export-helper-f246444f.js"),M=require("./globals-928eb13c.js");const It={key:0,class:"t-transp mn-r-small"},Ft={class:"w-100"},Vt=["type","value","placeholder"],Mt=["value","placeholder"],Ht={key:0,class:"mn-t-thin mn-thin mn-b-thin invalid-feedback"},Wt={__name:"Field",props:{label:null,type:"text",placeholder:"Enter something here",field:null,validation:!1,disabled:!1},emits:["update:field","focus","blur"],setup(t,{emit:e}){const r=t,s=u.ref(r.field);return(n,a)=>(u.openBlock(),u.createElementBlock(u.Fragment,null,[u.createElementVNode("div",{class:u.normalizeClass([[n.$attrs.class,{"bg-fourth-nano":t.validation}],"flex-center flex-nowrap flex"])},[t.label?(u.openBlock(),u.createElementBlock("div",It,[u.createElementVNode("span",null,u.toDisplayString(t.label),1)])):u.createCommentVNode("",!0),u.createElementVNode("div",Ft,[t.type!=="textarea"?(u.openBlock(),u.createElementBlock("input",{key:0,onInput:a[0]||(a[0]=o=>s.value=e("update:field",o.target.value)),onFocus:a[1]||(a[1]=o=>e("focus",o)),onBlur:a[2]||(a[2]=o=>e("blur",o)),type:t.type,class:"w-100",value:t.field,placeholder:t.placeholder},null,40,Vt)):(u.openBlock(),u.createElementBlock("textarea",{key:1,onInput:a[3]||(a[3]=o=>s.value=e("update:field",o.target.value)),onFocus:a[4]||(a[4]=o=>e("focus",o)),onBlur:a[5]||(a[5]=o=>e("blur",o)),class:"w-100",value:t.field,placeholder:t.placeholder},null,40,Mt))])],2),u.createVNode(u.Transition,{name:"fade"},{default:u.withCtx(()=>[t.validation?(u.openBlock(),u.createElementBlock("div",Ht," * "+u.toDisplayString(t.validation.message),1)):u.createCommentVNode("",!0)]),_:1})],64))}},Jt=qt._export_sfc(Wt,[["__scopeId","data-v-e4056b41"]]);const zt=["onClick","disabled"],Kt={key:0},Gt={key:0,class:"loading"},Xt=u.createElementVNode("span",null,[u.createElementVNode("svg",{class:"i-small",width:"135",height:"140",viewBox:"0 0 135 140",xmlns:"http://www.w3.org/2000/svg",fill:"#fff"},[u.createElementVNode("rect",{y:"10",width:"15",height:"120",rx:"6"},[u.createElementVNode("animate",{attributeName:"height",begin:"0.5s",dur:"1s",values:"120;110;100;90;80;70;60;50;40;140;120",calcMode:"linear",repeatCount:"indefinite"}),u.createTextVNode(),u.createElementVNode("animate",{attributeName:"y",begin:"0.5s",dur:"1s",values:"10;15;20;25;30;35;40;45;50;0;10",calcMode:"linear",repeatCount:"indefinite"})]),u.createElementVNode("rect",{x:"30",y:"10",width:"15",height:"120",rx:"6"},[u.createElementVNode("animate",{attributeName:"height",begin:"0.25s",dur:"1s",values:"120;110;100;90;80;70;60;50;40;140;120",calcMode:"linear",repeatCount:"indefinite"}),u.createTextVNode(),u.createElementVNode("animate",{attributeName:"y",begin:"0.25s",dur:"1s",values:"10;15;20;25;30;35;40;45;50;0;10",calcMode:"linear",repeatCount:"indefinite"})]),u.createElementVNode("rect",{x:"60",width:"15",height:"140",rx:"6"},[u.createElementVNode("animate",{attributeName:"height",begin:"0s",dur:"1s",values:"120;110;100;90;80;70;60;50;40;140;120",calcMode:"linear",repeatCount:"indefinite"}),u.createTextVNode(),u.createElementVNode("animate",{attributeName:"y",begin:"0s",dur:"1s",values:"10;15;20;25;30;35;40;45;50;0;10",calcMode:"linear",repeatCount:"indefinite"})]),u.createElementVNode("rect",{x:"90",y:"10",width:"15",height:"120",rx:"6"},[u.createElementVNode("animate",{attributeName:"height",begin:"0.25s",dur:"1s",values:"120;110;100;90;80;70;60;50;40;140;120",calcMode:"linear",repeatCount:"indefinite"}),u.createTextVNode(),u.createElementVNode("animate",{attributeName:"y",begin:"0.25s",dur:"1s",values:"10;15;20;25;30;35;40;45;50;0;10",calcMode:"linear",repeatCount:"indefinite"})]),u.createElementVNode("rect",{x:"120",y:"10",width:"15",height:"120",rx:"6"},[u.createElementVNode("animate",{attributeName:"height",begin:"0.5s",dur:"1s",values:"120;110;100;90;80;70;60;50;40;140;120",calcMode:"linear",repeatCount:"indefinite"}),u.createTextVNode(),u.createElementVNode("animate",{attributeName:"y",begin:"0.5s",dur:"1s",values:"10;15;20;25;30;35;40;45;50;0;10",calcMode:"linear",repeatCount:"indefinite"})])])],-1),Qt=[Xt],Yt={key:0,class:"h4 loading"},Zt=u.createElementVNode("span",{class:"p-small t-white"},"✔",-1),er=[Zt],tr={key:0,class:"error"},rr={__name:"Button",props:{submit:{type:Function,default:async()=>{console.log("Button click.")}},callback:{type:Function,default:async()=>{console.log("Button callback.")}},callbackDelay:{type:Number,default:750},validation:{type:Boolean,default:!1}},setup(t){const e=t,r=u.ref(null),s=u.ref(null),n=u.ref(!1),a=u.ref(!1);async function o(){r.value.style["pointer-events"]="none",s.value=null,n.value=!0;try{await e.submit(),r.value.classList.replace("bg-main","bg-light-main"),n.value=!1,a.value=!0,setTimeout(()=>{r.value&&(r.value.classList.replace("bg-light-main","bg-main"),r.value.style.pointerEvents="auto",n.value=!1,a.value=!1,s.value=null)},500),e.callback&&setTimeout(()=>e.callback(),e.callbackDelay)}catch{r.value.classList.replace("bg-main","bg-fourth-nano"),s.value="❌",setTimeout(()=>{r.value.classList.replace("bg-fourth-nano","bg-main"),r.value.style.pointerEvents="auto",n.value=!1,a.value=!1,s.value=null},1330)}}return(i,l)=>(u.openBlock(),u.createElementBlock("button",{onClick:u.withModifiers(o,["stop"]),disabled:t.validation,ref_key:"button",ref:r,class:"w-100 bg-main button"},[u.createVNode(u.Transition,{mode:"out-in",name:"fadeIn"},{default:u.withCtx(()=>[!n.value&&!s.value&&!a.value?(u.openBlock(),u.createElementBlock("span",Kt,[u.renderSlot(i.$slots,"default")])):u.createCommentVNode("",!0)]),_:3}),u.createVNode(u.Transition,{mode:"out-in",name:"fadeIn"},{default:u.withCtx(()=>[n.value&&!s.value?(u.openBlock(),u.createElementBlock("div",Gt,Qt)):u.createCommentVNode("",!0)]),_:1}),u.createVNode(u.Transition,{mode:"out-in",name:"fadeIn"},{default:u.withCtx(()=>[a.value?(u.openBlock(),u.createElementBlock("div",Yt,er)):u.createCommentVNode("",!0)]),_:1}),u.createVNode(u.Transition,{mode:"out-in",name:"fadeIn"},{default:u.withCtx(()=>[s.value?(u.openBlock(),u.createElementBlock("div",tr,[u.createElementVNode("span",null,u.toDisplayString(s.value),1)])):u.createCommentVNode("",!0)]),_:1})],8,zt))}};function Le(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var Ue={exports:{}},mt=function(e,r){return function(){for(var n=new Array(arguments.length),a=0;a<n.length;a++)n[a]=arguments[a];return e.apply(r,n)}},nr=mt,Be=Object.prototype.toString,De=function(t){return function(e){var r=Be.call(e);return t[r]||(t[r]=r.slice(8,-1).toLowerCase())}}(Object.create(null));function H(t){return t=t.toLowerCase(),function(r){return De(r)===t}}function je(t){return Array.isArray(t)}function ie(t){return typeof t>"u"}function ar(t){return t!==null&&!ie(t)&&t.constructor!==null&&!ie(t.constructor)&&typeof t.constructor.isBuffer=="function"&&t.constructor.isBuffer(t)}var vt=H("ArrayBuffer");function sr(t){var e;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?e=ArrayBuffer.isView(t):e=t&&t.buffer&&vt(t.buffer),e}function or(t){return typeof t=="string"}function ir(t){return typeof t=="number"}function wt(t){return t!==null&&typeof t=="object"}function se(t){if(De(t)!=="object")return!1;var e=Object.getPrototypeOf(t);return e===null||e===Object.prototype}var ur=H("Date"),lr=H("File"),cr=H("Blob"),dr=H("FileList");function $e(t){return Be.call(t)==="[object Function]"}function fr(t){return wt(t)&&$e(t.pipe)}function pr(t){var e="[object FormData]";return t&&(typeof FormData=="function"&&t instanceof FormData||Be.call(t)===e||$e(t.toString)&&t.toString()===e)}var hr=H("URLSearchParams");function mr(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}function vr(){return typeof navigator<"u"&&(navigator.product==="ReactNative"||navigator.product==="NativeScript"||navigator.product==="NS")?!1:typeof window<"u"&&typeof document<"u"}function qe(t,e){if(!(t===null||typeof t>"u"))if(typeof t!="object"&&(t=[t]),je(t))for(var r=0,s=t.length;r<s;r++)e.call(null,t[r],r,t);else for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.call(null,t[n],n,t)}function Te(){var t={};function e(n,a){se(t[a])&&se(n)?t[a]=Te(t[a],n):se(n)?t[a]=Te({},n):je(n)?t[a]=n.slice():t[a]=n}for(var r=0,s=arguments.length;r<s;r++)qe(arguments[r],e);return t}function wr(t,e,r){return qe(e,function(n,a){r&&typeof n=="function"?t[a]=nr(n,r):t[a]=n}),t}function br(t){return t.charCodeAt(0)===65279&&(t=t.slice(1)),t}function yr(t,e,r,s){t.prototype=Object.create(e.prototype,s),t.prototype.constructor=t,r&&Object.assign(t.prototype,r)}function gr(t,e,r){var s,n,a,o={};e=e||{};do{for(s=Object.getOwnPropertyNames(t),n=s.length;n-- >0;)a=s[n],o[a]||(e[a]=t[a],o[a]=!0);t=Object.getPrototypeOf(t)}while(t&&(!r||r(t,e))&&t!==Object.prototype);return e}function Er(t,e,r){t=String(t),(r===void 0||r>t.length)&&(r=t.length),r-=e.length;var s=t.indexOf(e,r);return s!==-1&&s===r}function Cr(t){if(!t)return null;var e=t.length;if(ie(e))return null;for(var r=new Array(e);e-- >0;)r[e]=t[e];return r}var Pr=function(t){return function(e){return t&&e instanceof t}}(typeof Uint8Array<"u"&&Object.getPrototypeOf(Uint8Array)),E={isArray:je,isArrayBuffer:vt,isBuffer:ar,isFormData:pr,isArrayBufferView:sr,isString:or,isNumber:ir,isObject:wt,isPlainObject:se,isUndefined:ie,isDate:ur,isFile:lr,isBlob:cr,isFunction:$e,isStream:fr,isURLSearchParams:hr,isStandardBrowserEnv:vr,forEach:qe,merge:Te,extend:wr,trim:mr,stripBOM:br,inherits:yr,toFlatObject:gr,kindOf:De,kindOfTest:H,endsWith:Er,toArray:Cr,isTypedArray:Pr,isFileList:dr},z=E;function He(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}var bt=function(e,r,s){if(!r)return e;var n;if(s)n=s(r);else if(z.isURLSearchParams(r))n=r.toString();else{var a=[];z.forEach(r,function(l,d){l===null||typeof l>"u"||(z.isArray(l)?d=d+"[]":l=[l],z.forEach(l,function(f){z.isDate(f)?f=f.toISOString():z.isObject(f)&&(f=JSON.stringify(f)),a.push(He(d)+"="+He(f))}))}),n=a.join("&")}if(n){var o=e.indexOf("#");o!==-1&&(e=e.slice(0,o)),e+=(e.indexOf("?")===-1?"?":"&")+n}return e},Or=E;function le(){this.handlers=[]}le.prototype.use=function(e,r,s){return this.handlers.push({fulfilled:e,rejected:r,synchronous:s?s.synchronous:!1,runWhen:s?s.runWhen:null}),this.handlers.length-1};le.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)};le.prototype.forEach=function(e){Or.forEach(this.handlers,function(s){s!==null&&e(s)})};var Rr=le,xr=E,_r=function(e,r){xr.forEach(e,function(n,a){a!==r&&a.toUpperCase()===r.toUpperCase()&&(e[r]=n,delete e[a])})},yt=E;function G(t,e,r,s,n){Error.call(this),this.message=t,this.name="AxiosError",e&&(this.code=e),r&&(this.config=r),s&&(this.request=s),n&&(this.response=n)}yt.inherits(G,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code,status:this.response&&this.response.status?this.response.status:null}}});var gt=G.prototype,Et={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED"].forEach(function(t){Et[t]={value:t}});Object.defineProperties(G,Et);Object.defineProperty(gt,"isAxiosError",{value:!0});G.from=function(t,e,r,s,n,a){var o=Object.create(gt);return yt.toFlatObject(t,o,function(l){return l!==Error.prototype}),G.call(o,t.message,e,r,s,n),o.name=t.name,a&&Object.assign(o,a),o};var Z=G,Ct={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},N=E;function Sr(t,e){e=e||new FormData;var r=[];function s(a){return a===null?"":N.isDate(a)?a.toISOString():N.isArrayBuffer(a)||N.isTypedArray(a)?typeof Blob=="function"?new Blob([a]):Buffer.from(a):a}function n(a,o){if(N.isPlainObject(a)||N.isArray(a)){if(r.indexOf(a)!==-1)throw Error("Circular reference detected in "+o);r.push(a),N.forEach(a,function(l,d){if(!N.isUndefined(l)){var p=o?o+"."+d:d,f;if(l&&!o&&typeof l=="object"){if(N.endsWith(d,"{}"))l=JSON.stringify(l);else if(N.endsWith(d,"[]")&&(f=N.toArray(l))){f.forEach(function(c){!N.isUndefined(c)&&e.append(p,s(c))});return}}n(l,p)}}),r.pop()}else e.append(o,s(a))}return n(t),e}var Pt=Sr,me,We;function Ar(){if(We)return me;We=1;var t=Z;return me=function(r,s,n){var a=n.config.validateStatus;!n.status||!a||a(n.status)?r(n):s(new t("Request failed with status code "+n.status,[t.ERR_BAD_REQUEST,t.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))},me}var ve,Je;function Nr(){if(Je)return ve;Je=1;var t=E;return ve=t.isStandardBrowserEnv()?function(){return{write:function(s,n,a,o,i,l){var d=[];d.push(s+"="+encodeURIComponent(n)),t.isNumber(a)&&d.push("expires="+new Date(a).toGMTString()),t.isString(o)&&d.push("path="+o),t.isString(i)&&d.push("domain="+i),l===!0&&d.push("secure"),document.cookie=d.join("; ")},read:function(s){var n=document.cookie.match(new RegExp("(^|;\\s*)("+s+")=([^;]*)"));return n?decodeURIComponent(n[3]):null},remove:function(s){this.write(s,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}(),ve}var kr=function(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)},Tr=function(e,r){return r?e.replace(/\/+$/,"")+"/"+r.replace(/^\/+/,""):e},Lr=kr,Ur=Tr,Ot=function(e,r){return e&&!Lr(r)?Ur(e,r):r},we,ze;function Br(){if(ze)return we;ze=1;var t=E,e=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];return we=function(s){var n={},a,o,i;return s&&t.forEach(s.split(`
2
- `),function(d){if(i=d.indexOf(":"),a=t.trim(d.substr(0,i)).toLowerCase(),o=t.trim(d.substr(i+1)),a){if(n[a]&&e.indexOf(a)>=0)return;a==="set-cookie"?n[a]=(n[a]?n[a]:[]).concat([o]):n[a]=n[a]?n[a]+", "+o:o}}),n},we}var be,Ke;function Dr(){if(Ke)return be;Ke=1;var t=E;return be=t.isStandardBrowserEnv()?function(){var r=/(msie|trident)/i.test(navigator.userAgent),s=document.createElement("a"),n;function a(o){var i=o;return r&&(s.setAttribute("href",i),i=s.href),s.setAttribute("href",i),{href:s.href,protocol:s.protocol?s.protocol.replace(/:$/,""):"",host:s.host,search:s.search?s.search.replace(/^\?/,""):"",hash:s.hash?s.hash.replace(/^#/,""):"",hostname:s.hostname,port:s.port,pathname:s.pathname.charAt(0)==="/"?s.pathname:"/"+s.pathname}}return n=a(window.location.href),function(i){var l=t.isString(i)?a(i):i;return l.protocol===n.protocol&&l.host===n.host}}():function(){return function(){return!0}}(),be}var ye,Ge;function ce(){if(Ge)return ye;Ge=1;var t=Z,e=E;function r(s){t.call(this,s??"canceled",t.ERR_CANCELED),this.name="CanceledError"}return e.inherits(r,t,{__CANCEL__:!0}),ye=r,ye}var ge,Xe;function jr(){return Xe||(Xe=1,ge=function(e){var r=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return r&&r[1]||""}),ge}var Ee,Qe;function Ye(){if(Qe)return Ee;Qe=1;var t=E,e=Ar(),r=Nr(),s=bt,n=Ot,a=Br(),o=Dr(),i=Ct,l=Z,d=ce(),p=jr();return Ee=function(c){return new Promise(function(_,y){var S=c.data,k=c.headers,V=c.responseType,j;function W(){c.cancelToken&&c.cancelToken.unsubscribe(j),c.signal&&c.signal.removeEventListener("abort",j)}t.isFormData(S)&&t.isStandardBrowserEnv()&&delete k["Content-Type"];var h=new XMLHttpRequest;if(c.auth){var pe=c.auth.username||"",w=c.auth.password?unescape(encodeURIComponent(c.auth.password)):"";k.Authorization="Basic "+btoa(pe+":"+w)}var m=n(c.baseURL,c.url);h.open(c.method.toUpperCase(),s(m,c.params,c.paramsSerializer),!0),h.timeout=c.timeout;function B(){if(h){var b="getAllResponseHeaders"in h?a(h.getAllResponseHeaders()):null,$=!V||V==="text"||V==="json"?h.responseText:h.response,D={data:$,status:h.status,statusText:h.statusText,headers:b,config:c,request:h};e(function(J){_(J),W()},function(J){y(J),W()},D),h=null}}if("onloadend"in h?h.onloadend=B:h.onreadystatechange=function(){!h||h.readyState!==4||h.status===0&&!(h.responseURL&&h.responseURL.indexOf("file:")===0)||setTimeout(B)},h.onabort=function(){h&&(y(new l("Request aborted",l.ECONNABORTED,c,h)),h=null)},h.onerror=function(){y(new l("Network Error",l.ERR_NETWORK,c,h,h)),h=null},h.ontimeout=function(){var $=c.timeout?"timeout of "+c.timeout+"ms exceeded":"timeout exceeded",D=c.transitional||i;c.timeoutErrorMessage&&($=c.timeoutErrorMessage),y(new l($,D.clarifyTimeoutError?l.ETIMEDOUT:l.ECONNABORTED,c,h)),h=null},t.isStandardBrowserEnv()){var T=(c.withCredentials||o(m))&&c.xsrfCookieName?r.read(c.xsrfCookieName):void 0;T&&(k[c.xsrfHeaderName]=T)}"setRequestHeader"in h&&t.forEach(k,function($,D){typeof S>"u"&&D.toLowerCase()==="content-type"?delete k[D]:h.setRequestHeader(D,$)}),t.isUndefined(c.withCredentials)||(h.withCredentials=!!c.withCredentials),V&&V!=="json"&&(h.responseType=c.responseType),typeof c.onDownloadProgress=="function"&&h.addEventListener("progress",c.onDownloadProgress),typeof c.onUploadProgress=="function"&&h.upload&&h.upload.addEventListener("progress",c.onUploadProgress),(c.cancelToken||c.signal)&&(j=function(b){h&&(y(!b||b&&b.type?new d:b),h.abort(),h=null)},c.cancelToken&&c.cancelToken.subscribe(j),c.signal&&(c.signal.aborted?j():c.signal.addEventListener("abort",j))),S||(S=null);var L=p(m);if(L&&["http","https","file"].indexOf(L)===-1){y(new l("Unsupported protocol "+L+":",l.ERR_BAD_REQUEST,c));return}h.send(S)})},Ee}var Ce,Ze;function $r(){return Ze||(Ze=1,Ce=null),Ce}var g=E,et=_r,tt=Z,qr=Ct,Ir=Pt,Fr={"Content-Type":"application/x-www-form-urlencoded"};function rt(t,e){!g.isUndefined(t)&&g.isUndefined(t["Content-Type"])&&(t["Content-Type"]=e)}function Vr(){var t;return(typeof XMLHttpRequest<"u"||typeof process<"u"&&Object.prototype.toString.call(process)==="[object process]")&&(t=Ye()),t}function Mr(t,e,r){if(g.isString(t))try{return(e||JSON.parse)(t),g.trim(t)}catch(s){if(s.name!=="SyntaxError")throw s}return(r||JSON.stringify)(t)}var de={transitional:qr,adapter:Vr(),transformRequest:[function(e,r){if(et(r,"Accept"),et(r,"Content-Type"),g.isFormData(e)||g.isArrayBuffer(e)||g.isBuffer(e)||g.isStream(e)||g.isFile(e)||g.isBlob(e))return e;if(g.isArrayBufferView(e))return e.buffer;if(g.isURLSearchParams(e))return rt(r,"application/x-www-form-urlencoded;charset=utf-8"),e.toString();var s=g.isObject(e),n=r&&r["Content-Type"],a;if((a=g.isFileList(e))||s&&n==="multipart/form-data"){var o=this.env&&this.env.FormData;return Ir(a?{"files[]":e}:e,o&&new o)}else if(s||n==="application/json")return rt(r,"application/json"),Mr(e);return e}],transformResponse:[function(e){var r=this.transitional||de.transitional,s=r&&r.silentJSONParsing,n=r&&r.forcedJSONParsing,a=!s&&this.responseType==="json";if(a||n&&g.isString(e)&&e.length)try{return JSON.parse(e)}catch(o){if(a)throw o.name==="SyntaxError"?tt.from(o,tt.ERR_BAD_RESPONSE,this,null,this.response):o}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:$r()},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};g.forEach(["delete","get","head"],function(e){de.headers[e]={}});g.forEach(["post","put","patch"],function(e){de.headers[e]=g.merge(Fr)});var Ie=de,Hr=E,Wr=Ie,Jr=function(e,r,s){var n=this||Wr;return Hr.forEach(s,function(o){e=o.call(n,e,r)}),e},Pe,nt;function Rt(){return nt||(nt=1,Pe=function(e){return!!(e&&e.__CANCEL__)}),Pe}var at=E,Oe=Jr,zr=Rt(),Kr=Ie,Gr=ce();function Re(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new Gr}var Xr=function(e){Re(e),e.headers=e.headers||{},e.data=Oe.call(e,e.data,e.headers,e.transformRequest),e.headers=at.merge(e.headers.common||{},e.headers[e.method]||{},e.headers),at.forEach(["delete","get","head","post","put","patch","common"],function(n){delete e.headers[n]});var r=e.adapter||Kr.adapter;return r(e).then(function(n){return Re(e),n.data=Oe.call(e,n.data,n.headers,e.transformResponse),n},function(n){return zr(n)||(Re(e),n&&n.response&&(n.response.data=Oe.call(e,n.response.data,n.response.headers,e.transformResponse))),Promise.reject(n)})},x=E,xt=function(e,r){r=r||{};var s={};function n(p,f){return x.isPlainObject(p)&&x.isPlainObject(f)?x.merge(p,f):x.isPlainObject(f)?x.merge({},f):x.isArray(f)?f.slice():f}function a(p){if(x.isUndefined(r[p])){if(!x.isUndefined(e[p]))return n(void 0,e[p])}else return n(e[p],r[p])}function o(p){if(!x.isUndefined(r[p]))return n(void 0,r[p])}function i(p){if(x.isUndefined(r[p])){if(!x.isUndefined(e[p]))return n(void 0,e[p])}else return n(void 0,r[p])}function l(p){if(p in r)return n(e[p],r[p]);if(p in e)return n(void 0,e[p])}var d={url:o,method:o,data:o,baseURL:i,transformRequest:i,transformResponse:i,paramsSerializer:i,timeout:i,timeoutMessage:i,withCredentials:i,adapter:i,responseType:i,xsrfCookieName:i,xsrfHeaderName:i,onUploadProgress:i,onDownloadProgress:i,decompress:i,maxContentLength:i,maxBodyLength:i,beforeRedirect:i,transport:i,httpAgent:i,httpsAgent:i,cancelToken:i,socketPath:i,responseEncoding:i,validateStatus:l};return x.forEach(Object.keys(e).concat(Object.keys(r)),function(f){var c=d[f]||a,v=c(f);x.isUndefined(v)&&c!==l||(s[f]=v)}),s},xe,st;function _t(){return st||(st=1,xe={version:"0.27.2"}),xe}var Qr=_t().version,F=Z,Fe={};["object","boolean","number","function","string","symbol"].forEach(function(t,e){Fe[t]=function(s){return typeof s===t||"a"+(e<1?"n ":" ")+t}});var ot={};Fe.transitional=function(e,r,s){function n(a,o){return"[Axios v"+Qr+"] Transitional option '"+a+"'"+o+(s?". "+s:"")}return function(a,o,i){if(e===!1)throw new F(n(o," has been removed"+(r?" in "+r:"")),F.ERR_DEPRECATED);return r&&!ot[o]&&(ot[o]=!0,console.warn(n(o," has been deprecated since v"+r+" and will be removed in the near future"))),e?e(a,o,i):!0}};function Yr(t,e,r){if(typeof t!="object")throw new F("options must be an object",F.ERR_BAD_OPTION_VALUE);for(var s=Object.keys(t),n=s.length;n-- >0;){var a=s[n],o=e[a];if(o){var i=t[a],l=i===void 0||o(i,a,t);if(l!==!0)throw new F("option "+a+" must be "+l,F.ERR_BAD_OPTION_VALUE);continue}if(r!==!0)throw new F("Unknown option "+a,F.ERR_BAD_OPTION)}}var Zr={assertOptions:Yr,validators:Fe},St=E,en=bt,it=Rr,ut=Xr,fe=xt,tn=Ot,At=Zr,K=At.validators;function X(t){this.defaults=t,this.interceptors={request:new it,response:new it}}X.prototype.request=function(e,r){typeof e=="string"?(r=r||{},r.url=e):r=e||{},r=fe(this.defaults,r),r.method?r.method=r.method.toLowerCase():this.defaults.method?r.method=this.defaults.method.toLowerCase():r.method="get";var s=r.transitional;s!==void 0&&At.assertOptions(s,{silentJSONParsing:K.transitional(K.boolean),forcedJSONParsing:K.transitional(K.boolean),clarifyTimeoutError:K.transitional(K.boolean)},!1);var n=[],a=!0;this.interceptors.request.forEach(function(v){typeof v.runWhen=="function"&&v.runWhen(r)===!1||(a=a&&v.synchronous,n.unshift(v.fulfilled,v.rejected))});var o=[];this.interceptors.response.forEach(function(v){o.push(v.fulfilled,v.rejected)});var i;if(!a){var l=[ut,void 0];for(Array.prototype.unshift.apply(l,n),l=l.concat(o),i=Promise.resolve(r);l.length;)i=i.then(l.shift(),l.shift());return i}for(var d=r;n.length;){var p=n.shift(),f=n.shift();try{d=p(d)}catch(c){f(c);break}}try{i=ut(d)}catch(c){return Promise.reject(c)}for(;o.length;)i=i.then(o.shift(),o.shift());return i};X.prototype.getUri=function(e){e=fe(this.defaults,e);var r=tn(e.baseURL,e.url);return en(r,e.params,e.paramsSerializer)};St.forEach(["delete","get","head","options"],function(e){X.prototype[e]=function(r,s){return this.request(fe(s||{},{method:e,url:r,data:(s||{}).data}))}});St.forEach(["post","put","patch"],function(e){function r(s){return function(a,o,i){return this.request(fe(i||{},{method:e,headers:s?{"Content-Type":"multipart/form-data"}:{},url:a,data:o}))}}X.prototype[e]=r(),X.prototype[e+"Form"]=r(!0)});var rn=X,_e,lt;function nn(){if(lt)return _e;lt=1;var t=ce();function e(r){if(typeof r!="function")throw new TypeError("executor must be a function.");var s;this.promise=new Promise(function(o){s=o});var n=this;this.promise.then(function(a){if(n._listeners){var o,i=n._listeners.length;for(o=0;o<i;o++)n._listeners[o](a);n._listeners=null}}),this.promise.then=function(a){var o,i=new Promise(function(l){n.subscribe(l),o=l}).then(a);return i.cancel=function(){n.unsubscribe(o)},i},r(function(o){n.reason||(n.reason=new t(o),s(n.reason))})}return e.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},e.prototype.subscribe=function(s){if(this.reason){s(this.reason);return}this._listeners?this._listeners.push(s):this._listeners=[s]},e.prototype.unsubscribe=function(s){if(this._listeners){var n=this._listeners.indexOf(s);n!==-1&&this._listeners.splice(n,1)}},e.source=function(){var s,n=new e(function(o){s=o});return{token:n,cancel:s}},_e=e,_e}var Se,ct;function an(){return ct||(ct=1,Se=function(e){return function(s){return e.apply(null,s)}}),Se}var Ae,dt;function sn(){if(dt)return Ae;dt=1;var t=E;return Ae=function(r){return t.isObject(r)&&r.isAxiosError===!0},Ae}var ft=E,on=mt,oe=rn,un=xt,ln=Ie;function Nt(t){var e=new oe(t),r=on(oe.prototype.request,e);return ft.extend(r,oe.prototype,e),ft.extend(r,e),r.create=function(n){return Nt(un(t,n))},r}var R=Nt(ln);R.Axios=oe;R.CanceledError=ce();R.CancelToken=nn();R.isCancel=Rt();R.VERSION=_t().version;R.toFormData=Pt;R.AxiosError=Z;R.Cancel=R.CanceledError;R.all=function(e){return Promise.all(e)};R.spread=an();R.isAxiosError=sn();Ue.exports=R;Ue.exports.default=R;var cn=Ue.exports,dn=cn;const Ve=Le(dn);var kt={exports:{}};/*!
3
- * JavaScript Cookie v2.2.1
4
- * https://github.com/js-cookie/js-cookie
5
- *
6
- * Copyright 2006, 2015 Klaus Hartl & Fagner Brack
7
- * Released under the MIT license
8
- */(function(t,e){(function(r){var s;if(t.exports=r(),s=!0,!s){var n=window.Cookies,a=window.Cookies=r();a.noConflict=function(){return window.Cookies=n,a}}})(function(){function r(){for(var a=0,o={};a<arguments.length;a++){var i=arguments[a];for(var l in i)o[l]=i[l]}return o}function s(a){return a.replace(/(%[0-9A-Z]{2})+/g,decodeURIComponent)}function n(a){function o(){}function i(d,p,f){if(!(typeof document>"u")){f=r({path:"/"},o.defaults,f),typeof f.expires=="number"&&(f.expires=new Date(new Date*1+f.expires*864e5)),f.expires=f.expires?f.expires.toUTCString():"";try{var c=JSON.stringify(p);/^[\{\[]/.test(c)&&(p=c)}catch{}p=a.write?a.write(p,d):encodeURIComponent(String(p)).replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g,decodeURIComponent),d=encodeURIComponent(String(d)).replace(/%(23|24|26|2B|5E|60|7C)/g,decodeURIComponent).replace(/[\(\)]/g,escape);var v="";for(var _ in f)f[_]&&(v+="; "+_,f[_]!==!0&&(v+="="+f[_].split(";")[0]));return document.cookie=d+"="+p+v}}function l(d,p){if(!(typeof document>"u")){for(var f={},c=document.cookie?document.cookie.split("; "):[],v=0;v<c.length;v++){var _=c[v].split("="),y=_.slice(1).join("=");!p&&y.charAt(0)==='"'&&(y=y.slice(1,-1));try{var S=s(_[0]);if(y=(a.read||a)(y,S)||s(y),p)try{y=JSON.parse(y)}catch{}if(f[S]=y,d===S)break}catch{}}return d?f[d]:f}}return o.set=i,o.get=function(d){return l(d,!1)},o.getJSON=function(d){return l(d,!0)},o.remove=function(d,p){i(d,"",r(p,{expires:-1}))},o.defaults={},o.withConverter=n,o}return n(function(){})})})(kt);var fn=kt.exports;const re=Le(fn);/*! Capacitor: https://capacitorjs.com/ - MIT License */const pn=t=>{const e=new Map;e.set("web",{name:"web"});const r=t.CapacitorPlatforms||{currentPlatform:{name:"web"},platforms:e},s=(a,o)=>{r.platforms.set(a,o)},n=a=>{r.platforms.has(a)&&(r.currentPlatform=r.platforms.get(a))};return r.addPlatform=s,r.setPlatform=n,r},hn=t=>t.CapacitorPlatforms=pn(t),Tt=hn(typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});Tt.addPlatform;Tt.setPlatform;var Q;(function(t){t.Unimplemented="UNIMPLEMENTED",t.Unavailable="UNAVAILABLE"})(Q||(Q={}));class Ne extends Error{constructor(e,r,s){super(e),this.message=e,this.code=r,this.data=s}}const mn=t=>{var e,r;return t!=null&&t.androidBridge?"android":!((r=(e=t==null?void 0:t.webkit)===null||e===void 0?void 0:e.messageHandlers)===null||r===void 0)&&r.bridge?"ios":"web"},vn=t=>{var e,r,s,n,a;const o=t.CapacitorCustomPlatform||null,i=t.Capacitor||{},l=i.Plugins=i.Plugins||{},d=t.CapacitorPlatforms,p=()=>o!==null?o.name:mn(t),f=((e=d==null?void 0:d.currentPlatform)===null||e===void 0?void 0:e.getPlatform)||p,c=()=>f()!=="web",v=((r=d==null?void 0:d.currentPlatform)===null||r===void 0?void 0:r.isNativePlatform)||c,_=w=>{const m=W.get(w);return!!(m!=null&&m.platforms.has(f())||k(w))},y=((s=d==null?void 0:d.currentPlatform)===null||s===void 0?void 0:s.isPluginAvailable)||_,S=w=>{var m;return(m=i.PluginHeaders)===null||m===void 0?void 0:m.find(B=>B.name===w)},k=((n=d==null?void 0:d.currentPlatform)===null||n===void 0?void 0:n.getPluginHeader)||S,V=w=>t.console.error(w),j=(w,m,B)=>Promise.reject(`${B} does not have an implementation of "${m}".`),W=new Map,h=(w,m={})=>{const B=W.get(w);if(B)return console.warn(`Capacitor plugin "${w}" already registered. Cannot register plugins twice.`),B.proxy;const T=f(),L=k(w);let b;const $=async()=>(!b&&T in m?b=typeof m[T]=="function"?b=await m[T]():b=m[T]:o!==null&&!b&&"web"in m&&(b=typeof m.web=="function"?b=await m.web():b=m.web),b),D=(C,O)=>{var U,q;if(L){const I=L==null?void 0:L.methods.find(A=>O===A.name);if(I)return I.rtype==="promise"?A=>i.nativePromise(w,O.toString(),A):(A,ne)=>i.nativeCallback(w,O.toString(),A,ne);if(C)return(U=C[O])===null||U===void 0?void 0:U.bind(C)}else{if(C)return(q=C[O])===null||q===void 0?void 0:q.bind(C);throw new Ne(`"${w}" plugin is not implemented on ${T}`,Q.Unimplemented)}},ee=C=>{let O;const U=(...q)=>{const I=$().then(A=>{const ne=D(A,C);if(ne){const ae=ne(...q);return O=ae==null?void 0:ae.remove,ae}else throw new Ne(`"${w}.${C}()" is not implemented on ${T}`,Q.Unimplemented)});return C==="addListener"&&(I.remove=async()=>O()),I};return U.toString=()=>`${C.toString()}() { [capacitor code] }`,Object.defineProperty(U,"name",{value:C,writable:!1,configurable:!1}),U},J=ee("addListener"),Me=ee("removeListener"),$t=(C,O)=>{const U=J({eventName:C},O),q=async()=>{const A=await U;Me({eventName:C,callbackId:A},O)},I=new Promise(A=>U.then(()=>A({remove:q})));return I.remove=async()=>{console.warn("Using addListener() without 'await' is deprecated."),await q()},I},he=new Proxy({},{get(C,O){switch(O){case"$$typeof":return;case"toJSON":return()=>({});case"addListener":return L?$t:J;case"removeListener":return Me;default:return ee(O)}}});return l[w]=he,W.set(w,{name:w,proxy:he,platforms:new Set([...Object.keys(m),...L?[T]:[]])}),he},pe=((a=d==null?void 0:d.currentPlatform)===null||a===void 0?void 0:a.registerPlugin)||h;return i.convertFileSrc||(i.convertFileSrc=w=>w),i.getPlatform=f,i.handleError=V,i.isNativePlatform=v,i.isPluginAvailable=y,i.pluginMethodNoop=j,i.registerPlugin=pe,i.Exception=Ne,i.DEBUG=!!i.DEBUG,i.isLoggingEnabled=!!i.isLoggingEnabled,i.platform=i.getPlatform(),i.isNative=i.isNativePlatform(),i},wn=t=>t.Capacitor=vn(t),ue=wn(typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{}),Lt=ue.registerPlugin;ue.Plugins;class Ut{constructor(e){this.listeners={},this.windowListeners={},e&&(console.warn(`Capacitor WebPlugin "${e.name}" config object was deprecated in v3 and will be removed in v4.`),this.config=e)}addListener(e,r){this.listeners[e]||(this.listeners[e]=[]),this.listeners[e].push(r);const n=this.windowListeners[e];n&&!n.registered&&this.addWindowListener(n);const a=async()=>this.removeListener(e,r),o=Promise.resolve({remove:a});return Object.defineProperty(o,"remove",{value:async()=>{console.warn("Using addListener() without 'await' is deprecated."),await a()}}),o}async removeAllListeners(){this.listeners={};for(const e in this.windowListeners)this.removeWindowListener(this.windowListeners[e]);this.windowListeners={}}notifyListeners(e,r){const s=this.listeners[e];s&&s.forEach(n=>n(r))}hasListeners(e){return!!this.listeners[e].length}registerWindowListener(e,r){this.windowListeners[r]={registered:!1,windowEventName:e,pluginEventName:r,handler:s=>{this.notifyListeners(r,s)}}}unimplemented(e="not implemented"){return new ue.Exception(e,Q.Unimplemented)}unavailable(e="not available"){return new ue.Exception(e,Q.Unavailable)}async removeListener(e,r){const s=this.listeners[e];if(!s)return;const n=s.indexOf(r);this.listeners[e].splice(n,1),this.listeners[e].length||this.removeWindowListener(this.windowListeners[e])}addWindowListener(e){window.addEventListener(e.windowEventName,e.handler),e.registered=!0}removeWindowListener(e){e&&(window.removeEventListener(e.windowEventName,e.handler),e.registered=!1)}}const pt=t=>encodeURIComponent(t).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape),ht=t=>t.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent);class bn extends Ut{async getCookies(){const e=document.cookie,r={};return e.split(";").forEach(s=>{if(s.length<=0)return;let[n,a]=s.replace(/=/,"CAP_COOKIE").split("CAP_COOKIE");n=ht(n).trim(),a=ht(a).trim(),r[n]=a}),r}async setCookie(e){try{const r=pt(e.key),s=pt(e.value),n=`; expires=${(e.expires||"").replace("expires=","")}`,a=(e.path||"/").replace("path=",""),o=e.url!=null&&e.url.length>0?`domain=${e.url}`:"";document.cookie=`${r}=${s||""}${n}; path=${a}; ${o};`}catch(r){return Promise.reject(r)}}async deleteCookie(e){try{document.cookie=`${e.key}=; Max-Age=0`}catch(r){return Promise.reject(r)}}async clearCookies(){try{const e=document.cookie.split(";")||[];for(const r of e)document.cookie=r.replace(/^ +/,"").replace(/=.*/,`=;expires=${new Date().toUTCString()};path=/`)}catch(e){return Promise.reject(e)}}async clearAllCookies(){try{await this.clearCookies()}catch(e){return Promise.reject(e)}}}const Bt=Lt("CapacitorCookies",{web:()=>new bn}),yn=async t=>new Promise((e,r)=>{const s=new FileReader;s.onload=()=>{const n=s.result;e(n.indexOf(",")>=0?n.split(",")[1]:n)},s.onerror=n=>r(n),s.readAsDataURL(t)}),gn=(t={})=>{const e=Object.keys(t);return Object.keys(t).map(n=>n.toLocaleLowerCase()).reduce((n,a,o)=>(n[a]=t[e[o]],n),{})},En=(t,e=!0)=>t?Object.entries(t).reduce((s,n)=>{const[a,o]=n;let i,l;return Array.isArray(o)?(l="",o.forEach(d=>{i=e?encodeURIComponent(d):d,l+=`${a}=${i}&`}),l.slice(0,-1)):(i=e?encodeURIComponent(o):o,l=`${a}=${i}`),`${s}&${l}`},"").substr(1):null,Cn=(t,e={})=>{const r=Object.assign({method:t.method||"GET",headers:t.headers},e),n=gn(t.headers)["content-type"]||"";if(typeof t.data=="string")r.body=t.data;else if(n.includes("application/x-www-form-urlencoded")){const a=new URLSearchParams;for(const[o,i]of Object.entries(t.data||{}))a.set(o,i);r.body=a.toString()}else if(n.includes("multipart/form-data")){const a=new FormData;if(t.data instanceof FormData)t.data.forEach((i,l)=>{a.append(l,i)});else for(const i of Object.keys(t.data))a.append(i,t.data[i]);r.body=a;const o=new Headers(r.headers);o.delete("content-type"),r.headers=o}else(n.includes("application/json")||typeof t.data=="object")&&(r.body=JSON.stringify(t.data));return r};class Pn extends Ut{async request(e){const r=Cn(e,e.webFetchExtra),s=En(e.params,e.shouldEncodeUrlParams),n=s?`${e.url}?${s}`:e.url,a=await fetch(n,r),o=a.headers.get("content-type")||"";let{responseType:i="text"}=a.ok?e:{};o.includes("application/json")&&(i="json");let l,d;switch(i){case"arraybuffer":case"blob":d=await a.blob(),l=await yn(d);break;case"json":l=await a.json();break;case"document":case"text":default:l=await a.text()}const p={};return a.headers.forEach((f,c)=>{p[c]=f}),{data:l,headers:p,status:a.status,url:a.url}}async get(e){return this.request(Object.assign(Object.assign({},e),{method:"GET"}))}async post(e){return this.request(Object.assign(Object.assign({},e),{method:"POST"}))}async put(e){return this.request(Object.assign(Object.assign({},e),{method:"PUT"}))}async patch(e){return this.request(Object.assign(Object.assign({},e),{method:"PATCH"}))}async delete(e){return this.request(Object.assign(Object.assign({},e),{method:"DELETE"}))}}Lt("CapacitorHttp",{web:()=>new Pn});const On=Ve.create({baseURL:process.env.API_URL,withCredentials:!0}),Y=u.reactive({code:{value:"",type:"",method:"",isSended:!1,isValid:!1}});async function Dt(t,e,r){return await On.post("/api/twofa/sendcode",{phone:t.phone.number,email:t.email,method:e,type:r}).then(s=>(Y.code=s.data,Y.code.isSended=!0,Promise.resolve(s.data)),s=>(console.log(s),M.setError(s),Promise.reject(s)))}u.watch(Y,(t,e)=>{});const Rn=Object.freeze(Object.defineProperty({__proto__:null,sendCode:Dt,state:Y},Symbol.toStringTag,{value:"Module"})),te=Ve.create({baseURL:process.env.API_URL,withCredentials:!0}),P=u.reactive({user:{_id:"",username:"",email:"",phone:"",password:"",passwordRepeat:""},access:{roles:null,token:null,status:!1}});if(re.get("user")){const{_id:t,email:e,phone:r,roles:s,accessToken:n}=JSON.parse(re.get("user"));Object.assign(P.user,{_id:t,email:e,phone:r}),Object.assign(P.access,{token:n,roles:s,status:!!n}),te.interceptors.request.use(a=>(n&&(a.headers["x-access-token"]=n),a),a=>Promise.reject(a))}const jt={async login(t,e){try{const r=await te.post("/api/auth/signin",{...t,type:e});return ke("user",r.data),Object.assign(P.user,{...r.data}),Object.assign(P.access,{token:r.data.accessToken,status:!0,roles:r.data.roles}),r.data}catch(r){return Object.assign(P.access,{token:null,status:!1,roles:null}),M.setError(r),Promise.reject(r)}},async signup(t,e,r){const{password:s,passwordRepeat:n}=P.user;if(s!==n){const a={response:{data:{errorCode:"PASSWORDS_DO_NOT_MATCH"}}};throw M.setError(a),new Error(a.response.status)}try{t.phone=t.phone.number;const a=await te.post("/api/auth/signup",{...t,type:e,inviteCode:r});return a.data.accessToken&&ke("user",a.data),Object.assign(P.user,{...a.data}),Object.assign(P.access,{token:a.data.accessToken,status:!0,roles:a.data.roles}),a.data}catch(a){throw M.setError(a),console.log("Sign up falied"),a}},logout(){_n("user"),Object.assign(P.user,{email:"",phone:"",password:"",passwordRepeat:""}),Object.assign(P.access,{token:null,status:!1})},async resetPassword(t,e){try{const r=await te.post("/api/auth/reset-password",{email:t.email,phone:t.phone.number,type:e});return Object.assign(Y.code,{...r.data,isSended:!0}),r.data}catch(r){return M.setError(r),Promise.reject(r)}},async updatePassword(t,e){const{password:r,passwordRepeat:s}=P.user;if(r!==s){const n={response:{data:{errorCode:"PASSWORDS_DO_NOT_MATCH"}}};throw M.setError(n),new Error(n.response.status)}try{const n=await te.post("/api/auth/update-password",{email:t.email,phone:t.phone.number,password:t.password,passwordRepeat:t.passwordRepeat,type:e});return n.data.accessToken&&ke("user",n.data),Object.assign(P.user,{...n.data}),Object.assign(P.access,{token:n.data.accessToken,status:!0}),n.data}catch(n){return M.setError(n),Promise.reject(n)}}},xn={development:{secure:!1,expires:1},production:{expires:1,domain:process.env.API_URL,sameSite:"none",secure:!0}};function ke(t,e,r=process.env.NODE_ENV){process.env.MOBILE_APP?Bt.setCookie({url:process.env.API_URL,key:t,value:JSON.stringify(e)}):re.set(t,JSON.stringify(e),xn[r])}function _n(t,e=process.env.NODE_ENV){if(process.env.MOBILE_APP)Bt.deleteCookie({url:process.env.API_URL,key:t});else{const r=e==="production"?{domain:process.env.API_URL}:{};re.remove(t,r)}}u.watch(P,(t,e)=>{});const Sn=Object.freeze(Object.defineProperty({__proto__:null,actions:jt,state:P},Symbol.toStringTag,{value:"Module"}));exports.Cookies=re;exports.Field=Jt;exports._sfc_main=rr;exports.actions=jt;exports.auth=Sn;exports.axios=Ve;exports.getDefaultExportFromCjs=Le;exports.sendCode=Dt;exports.state=P;exports.state$1=Y;exports.twofa=Rn;
@@ -1,7 +0,0 @@
1
- "use strict";const a=require("vue"),de=require("./_plugin-vue_export-helper-f246444f.js"),W=require("./index-b41aac19.js"),L=require("./globals-928eb13c.js");const ue={key:0,class:"t-transp mn-r-small"},fe={class:"w-100"},pe=["type","value","placeholder"],me=["value","placeholder"],ge={key:0,class:"mn-t-thin mn-thin mn-b-thin invalid-feedback"},he={__name:"Field",props:{label:null,type:"text",placeholder:"Enter something here",field:null,validation:!1,disabled:!1},emits:["update:field","focus","blur"],setup(t,{emit:e}){const n=t,s=a.ref(n.field);return(o,r)=>(a.openBlock(),a.createElementBlock(a.Fragment,null,[a.createElementVNode("div",{class:a.normalizeClass([[o.$attrs.class,{"bg-fourth-nano":t.validation}],"flex-center flex-nowrap flex"])},[t.label?(a.openBlock(),a.createElementBlock("div",ue,[a.createElementVNode("span",null,a.toDisplayString(t.label),1)])):a.createCommentVNode("",!0),a.createElementVNode("div",fe,[t.type!=="textarea"?(a.openBlock(),a.createElementBlock("input",{key:0,onInput:r[0]||(r[0]=i=>s.value=e("update:field",i.target.value)),onFocus:r[1]||(r[1]=i=>e("focus",i)),onBlur:r[2]||(r[2]=i=>e("blur",i)),type:t.type,class:"w-100",value:t.field,placeholder:t.placeholder},null,40,pe)):(a.openBlock(),a.createElementBlock("textarea",{key:1,onInput:r[3]||(r[3]=i=>s.value=e("update:field",i.target.value)),onFocus:r[4]||(r[4]=i=>e("focus",i)),onBlur:r[5]||(r[5]=i=>e("blur",i)),class:"w-100",value:t.field,placeholder:t.placeholder},null,40,me))])],2),a.createVNode(a.Transition,{name:"fade"},{default:a.withCtx(()=>[t.validation?(a.openBlock(),a.createElementBlock("div",ge," * "+a.toDisplayString(t.validation.message),1)):a.createCommentVNode("",!0)]),_:1})],64))}},ve=de._export_sfc(he,[["__scopeId","data-v-e4056b41"]]);const we=["onClick","disabled"],be={key:0},ye={key:0,class:"loading"},Pe=a.createElementVNode("span",null,[a.createElementVNode("svg",{class:"i-small",width:"135",height:"140",viewBox:"0 0 135 140",xmlns:"http://www.w3.org/2000/svg",fill:"#fff"},[a.createElementVNode("rect",{y:"10",width:"15",height:"120",rx:"6"},[a.createElementVNode("animate",{attributeName:"height",begin:"0.5s",dur:"1s",values:"120;110;100;90;80;70;60;50;40;140;120",calcMode:"linear",repeatCount:"indefinite"}),a.createTextVNode(),a.createElementVNode("animate",{attributeName:"y",begin:"0.5s",dur:"1s",values:"10;15;20;25;30;35;40;45;50;0;10",calcMode:"linear",repeatCount:"indefinite"})]),a.createElementVNode("rect",{x:"30",y:"10",width:"15",height:"120",rx:"6"},[a.createElementVNode("animate",{attributeName:"height",begin:"0.25s",dur:"1s",values:"120;110;100;90;80;70;60;50;40;140;120",calcMode:"linear",repeatCount:"indefinite"}),a.createTextVNode(),a.createElementVNode("animate",{attributeName:"y",begin:"0.25s",dur:"1s",values:"10;15;20;25;30;35;40;45;50;0;10",calcMode:"linear",repeatCount:"indefinite"})]),a.createElementVNode("rect",{x:"60",width:"15",height:"140",rx:"6"},[a.createElementVNode("animate",{attributeName:"height",begin:"0s",dur:"1s",values:"120;110;100;90;80;70;60;50;40;140;120",calcMode:"linear",repeatCount:"indefinite"}),a.createTextVNode(),a.createElementVNode("animate",{attributeName:"y",begin:"0s",dur:"1s",values:"10;15;20;25;30;35;40;45;50;0;10",calcMode:"linear",repeatCount:"indefinite"})]),a.createElementVNode("rect",{x:"90",y:"10",width:"15",height:"120",rx:"6"},[a.createElementVNode("animate",{attributeName:"height",begin:"0.25s",dur:"1s",values:"120;110;100;90;80;70;60;50;40;140;120",calcMode:"linear",repeatCount:"indefinite"}),a.createTextVNode(),a.createElementVNode("animate",{attributeName:"y",begin:"0.25s",dur:"1s",values:"10;15;20;25;30;35;40;45;50;0;10",calcMode:"linear",repeatCount:"indefinite"})]),a.createElementVNode("rect",{x:"120",y:"10",width:"15",height:"120",rx:"6"},[a.createElementVNode("animate",{attributeName:"height",begin:"0.5s",dur:"1s",values:"120;110;100;90;80;70;60;50;40;140;120",calcMode:"linear",repeatCount:"indefinite"}),a.createTextVNode(),a.createElementVNode("animate",{attributeName:"y",begin:"0.5s",dur:"1s",values:"10;15;20;25;30;35;40;45;50;0;10",calcMode:"linear",repeatCount:"indefinite"})])])],-1),Ce=[Pe],ke={key:0,class:"h4 loading"},Ee=a.createElementVNode("span",{class:"p-small t-white"},"✔",-1),xe=[Ee],_e={key:0,class:"error"},Oe={__name:"Button",props:{submit:{type:Function,default:async()=>{console.log("Button click.")}},callback:{type:Function,default:async()=>{console.log("Button callback.")}},callbackDelay:{type:Number,default:750},validation:{type:Boolean,default:!1}},setup(t){const e=t,n=a.ref(null),s=a.ref(null),o=a.ref(!1),r=a.ref(!1);async function i(){n.value.style["pointer-events"]="none",s.value=null,o.value=!0;try{await e.submit(),n.value.classList.replace("bg-main","bg-light-main"),o.value=!1,r.value=!0,setTimeout(()=>{n.value&&(n.value.classList.replace("bg-light-main","bg-main"),n.value.style.pointerEvents="auto",o.value=!1,r.value=!1,s.value=null)},500),e.callback&&setTimeout(()=>e.callback(),e.callbackDelay)}catch{n.value.classList.replace("bg-main","bg-fourth-nano"),s.value="❌",setTimeout(()=>{n.value.classList.replace("bg-fourth-nano","bg-main"),n.value.style.pointerEvents="auto",o.value=!1,r.value=!1,s.value=null},1330)}}return(l,u)=>(a.openBlock(),a.createElementBlock("button",{onClick:a.withModifiers(i,["stop"]),disabled:t.validation,ref_key:"button",ref:n,class:"w-100 bg-main button"},[a.createVNode(a.Transition,{mode:"out-in",name:"fadeIn"},{default:a.withCtx(()=>[!o.value&&!s.value&&!r.value?(a.openBlock(),a.createElementBlock("span",be,[a.renderSlot(l.$slots,"default")])):a.createCommentVNode("",!0)]),_:3}),a.createVNode(a.Transition,{mode:"out-in",name:"fadeIn"},{default:a.withCtx(()=>[o.value&&!s.value?(a.openBlock(),a.createElementBlock("div",ye,Ce)):a.createCommentVNode("",!0)]),_:1}),a.createVNode(a.Transition,{mode:"out-in",name:"fadeIn"},{default:a.withCtx(()=>[r.value?(a.openBlock(),a.createElementBlock("div",ke,xe)):a.createCommentVNode("",!0)]),_:1}),a.createVNode(a.Transition,{mode:"out-in",name:"fadeIn"},{default:a.withCtx(()=>[s.value?(a.openBlock(),a.createElementBlock("div",_e,[a.createElementVNode("span",null,a.toDisplayString(s.value),1)])):a.createCommentVNode("",!0)]),_:1})],8,we))}};var Z={exports:{}};/*!
2
- * JavaScript Cookie v2.2.1
3
- * https://github.com/js-cookie/js-cookie
4
- *
5
- * Copyright 2006, 2015 Klaus Hartl & Fagner Brack
6
- * Released under the MIT license
7
- */(function(t,e){(function(n){var s;if(t.exports=n(),s=!0,!s){var o=window.Cookies,r=window.Cookies=n();r.noConflict=function(){return window.Cookies=o,r}}})(function(){function n(){for(var r=0,i={};r<arguments.length;r++){var l=arguments[r];for(var u in l)i[u]=l[u]}return i}function s(r){return r.replace(/(%[0-9A-Z]{2})+/g,decodeURIComponent)}function o(r){function i(){}function l(c,m,d){if(!(typeof document>"u")){d=n({path:"/"},i.defaults,d),typeof d.expires=="number"&&(d.expires=new Date(new Date*1+d.expires*864e5)),d.expires=d.expires?d.expires.toUTCString():"";try{var P=JSON.stringify(m);/^[\{\[]/.test(P)&&(m=P)}catch{}m=r.write?r.write(m,c):encodeURIComponent(String(m)).replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g,decodeURIComponent),c=encodeURIComponent(String(c)).replace(/%(23|24|26|2B|5E|60|7C)/g,decodeURIComponent).replace(/[\(\)]/g,escape);var C="";for(var k in d)d[k]&&(C+="; "+k,d[k]!==!0&&(C+="="+d[k].split(";")[0]));return document.cookie=c+"="+m+C}}function u(c,m){if(!(typeof document>"u")){for(var d={},P=document.cookie?document.cookie.split("; "):[],C=0;C<P.length;C++){var k=P[C].split("="),w=k.slice(1).join("=");!m&&w.charAt(0)==='"'&&(w=w.slice(1,-1));try{var $=s(k[0]);if(w=(r.read||r)(w,$)||s(w),m)try{w=JSON.parse(w)}catch{}if(d[$]=w,c===$)break}catch{}}return c?d[c]:d}}return i.set=l,i.get=function(c){return u(c,!1)},i.getJSON=function(c){return u(c,!0)},i.remove=function(c,m){l(c,"",n(m,{expires:-1}))},i.defaults={},i.withConverter=o,i}return o(function(){})})})(Z);var Le=Z.exports;const T=W.getDefaultExportFromCjs(Le);/*! Capacitor: https://capacitorjs.com/ - MIT License */const Ne=t=>{const e=new Map;e.set("web",{name:"web"});const n=t.CapacitorPlatforms||{currentPlatform:{name:"web"},platforms:e},s=(r,i)=>{n.platforms.set(r,i)},o=r=>{n.platforms.has(r)&&(n.currentPlatform=n.platforms.get(r))};return n.addPlatform=s,n.setPlatform=o,n},je=t=>t.CapacitorPlatforms=Ne(t),Q=je(typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});Q.addPlatform;Q.setPlatform;var S;(function(t){t.Unimplemented="UNIMPLEMENTED",t.Unavailable="UNAVAILABLE"})(S||(S={}));class H extends Error{constructor(e,n,s){super(e),this.message=e,this.code=n,this.data=s}}const Se=t=>{var e,n;return t!=null&&t.androidBridge?"android":!((n=(e=t==null?void 0:t.webkit)===null||e===void 0?void 0:e.messageHandlers)===null||n===void 0)&&n.bridge?"ios":"web"},Ve=t=>{var e,n,s,o,r;const i=t.CapacitorCustomPlatform||null,l=t.Capacitor||{},u=l.Plugins=l.Plugins||{},c=t.CapacitorPlatforms,m=()=>i!==null?i.name:Se(t),d=((e=c==null?void 0:c.currentPlatform)===null||e===void 0?void 0:e.getPlatform)||m,P=()=>d()!=="web",C=((n=c==null?void 0:c.currentPlatform)===null||n===void 0?void 0:n.isNativePlatform)||P,k=f=>{const p=M.get(f);return!!(p!=null&&p.platforms.has(d())||U(f))},w=((s=c==null?void 0:c.currentPlatform)===null||s===void 0?void 0:s.isPluginAvailable)||k,$=f=>{var p;return(p=l.PluginHeaders)===null||p===void 0?void 0:p.find(N=>N.name===f)},U=((o=c==null?void 0:c.currentPlatform)===null||o===void 0?void 0:o.getPluginHeader)||$,re=f=>t.console.error(f),ae=(f,p,N)=>Promise.reject(`${N} does not have an implementation of "${p}".`),M=new Map,oe=(f,p={})=>{const N=M.get(f);if(N)return console.warn(`Capacitor plugin "${f}" already registered. Cannot register plugins twice.`),N.proxy;const O=d(),j=U(f);let E;const ie=async()=>(!E&&O in p?E=typeof p[O]=="function"?E=await p[O]():E=p[O]:i!==null&&!E&&"web"in p&&(E=typeof p.web=="function"?E=await p.web():E=p.web),E),le=(g,v)=>{var y,x;if(j){const _=j==null?void 0:j.methods.find(b=>v===b.name);if(_)return _.rtype==="promise"?b=>l.nativePromise(f,v.toString(),b):(b,A)=>l.nativeCallback(f,v.toString(),b,A);if(g)return(y=g[v])===null||y===void 0?void 0:y.bind(g)}else{if(g)return(x=g[v])===null||x===void 0?void 0:x.bind(g);throw new H(`"${f}" plugin is not implemented on ${O}`,S.Unimplemented)}},D=g=>{let v;const y=(...x)=>{const _=ie().then(b=>{const A=le(b,g);if(A){const R=A(...x);return v=R==null?void 0:R.remove,R}else throw new H(`"${f}.${g}()" is not implemented on ${O}`,S.Unimplemented)});return g==="addListener"&&(_.remove=async()=>v()),_};return y.toString=()=>`${g.toString()}() { [capacitor code] }`,Object.defineProperty(y,"name",{value:g,writable:!1,configurable:!1}),y},J=D("addListener"),G=D("removeListener"),ce=(g,v)=>{const y=J({eventName:g},v),x=async()=>{const b=await y;G({eventName:g,callbackId:b},v)},_=new Promise(b=>y.then(()=>b({remove:x})));return _.remove=async()=>{console.warn("Using addListener() without 'await' is deprecated."),await x()},_},F=new Proxy({},{get(g,v){switch(v){case"$$typeof":return;case"toJSON":return()=>({});case"addListener":return j?ce:J;case"removeListener":return G;default:return D(v)}}});return u[f]=F,M.set(f,{name:f,proxy:F,platforms:new Set([...Object.keys(p),...j?[O]:[]])}),F},se=((r=c==null?void 0:c.currentPlatform)===null||r===void 0?void 0:r.registerPlugin)||oe;return l.convertFileSrc||(l.convertFileSrc=f=>f),l.getPlatform=d,l.handleError=re,l.isNativePlatform=C,l.isPluginAvailable=w,l.pluginMethodNoop=ae,l.registerPlugin=se,l.Exception=H,l.DEBUG=!!l.DEBUG,l.isLoggingEnabled=!!l.isLoggingEnabled,l.platform=l.getPlatform(),l.isNative=l.isNativePlatform(),l},$e=t=>t.Capacitor=Ve(t),I=$e(typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{}),X=I.registerPlugin;I.Plugins;class Y{constructor(e){this.listeners={},this.windowListeners={},e&&(console.warn(`Capacitor WebPlugin "${e.name}" config object was deprecated in v3 and will be removed in v4.`),this.config=e)}addListener(e,n){this.listeners[e]||(this.listeners[e]=[]),this.listeners[e].push(n);const o=this.windowListeners[e];o&&!o.registered&&this.addWindowListener(o);const r=async()=>this.removeListener(e,n),i=Promise.resolve({remove:r});return Object.defineProperty(i,"remove",{value:async()=>{console.warn("Using addListener() without 'await' is deprecated."),await r()}}),i}async removeAllListeners(){this.listeners={};for(const e in this.windowListeners)this.removeWindowListener(this.windowListeners[e]);this.windowListeners={}}notifyListeners(e,n){const s=this.listeners[e];s&&s.forEach(o=>o(n))}hasListeners(e){return!!this.listeners[e].length}registerWindowListener(e,n){this.windowListeners[n]={registered:!1,windowEventName:e,pluginEventName:n,handler:s=>{this.notifyListeners(n,s)}}}unimplemented(e="not implemented"){return new I.Exception(e,S.Unimplemented)}unavailable(e="not available"){return new I.Exception(e,S.Unavailable)}async removeListener(e,n){const s=this.listeners[e];if(!s)return;const o=s.indexOf(n);this.listeners[e].splice(o,1),this.listeners[e].length||this.removeWindowListener(this.windowListeners[e])}addWindowListener(e){window.addEventListener(e.windowEventName,e.handler),e.registered=!0}removeWindowListener(e){e&&(window.removeEventListener(e.windowEventName,e.handler),e.registered=!1)}}const z=t=>encodeURIComponent(t).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape),K=t=>t.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent);class Be extends Y{async getCookies(){const e=document.cookie,n={};return e.split(";").forEach(s=>{if(s.length<=0)return;let[o,r]=s.replace(/=/,"CAP_COOKIE").split("CAP_COOKIE");o=K(o).trim(),r=K(r).trim(),n[o]=r}),n}async setCookie(e){try{const n=z(e.key),s=z(e.value),o=`; expires=${(e.expires||"").replace("expires=","")}`,r=(e.path||"/").replace("path=",""),i=e.url!=null&&e.url.length>0?`domain=${e.url}`:"";document.cookie=`${n}=${s||""}${o}; path=${r}; ${i};`}catch(n){return Promise.reject(n)}}async deleteCookie(e){try{document.cookie=`${e.key}=; Max-Age=0`}catch(n){return Promise.reject(n)}}async clearCookies(){try{const e=document.cookie.split(";")||[];for(const n of e)document.cookie=n.replace(/^ +/,"").replace(/=.*/,`=;expires=${new Date().toUTCString()};path=/`)}catch(e){return Promise.reject(e)}}async clearAllCookies(){try{await this.clearCookies()}catch(e){return Promise.reject(e)}}}const ee=X("CapacitorCookies",{web:()=>new Be}),Te=async t=>new Promise((e,n)=>{const s=new FileReader;s.onload=()=>{const o=s.result;e(o.indexOf(",")>=0?o.split(",")[1]:o)},s.onerror=o=>n(o),s.readAsDataURL(t)}),Ue=(t={})=>{const e=Object.keys(t);return Object.keys(t).map(o=>o.toLocaleLowerCase()).reduce((o,r,i)=>(o[r]=t[e[i]],o),{})},Ae=(t,e=!0)=>t?Object.entries(t).reduce((s,o)=>{const[r,i]=o;let l,u;return Array.isArray(i)?(u="",i.forEach(c=>{l=e?encodeURIComponent(c):c,u+=`${r}=${l}&`}),u.slice(0,-1)):(l=e?encodeURIComponent(i):i,u=`${r}=${l}`),`${s}&${u}`},"").substr(1):null,Re=(t,e={})=>{const n=Object.assign({method:t.method||"GET",headers:t.headers},e),o=Ue(t.headers)["content-type"]||"";if(typeof t.data=="string")n.body=t.data;else if(o.includes("application/x-www-form-urlencoded")){const r=new URLSearchParams;for(const[i,l]of Object.entries(t.data||{}))r.set(i,l);n.body=r.toString()}else if(o.includes("multipart/form-data")){const r=new FormData;if(t.data instanceof FormData)t.data.forEach((l,u)=>{r.append(u,l)});else for(const l of Object.keys(t.data))r.append(l,t.data[l]);n.body=r;const i=new Headers(n.headers);i.delete("content-type"),n.headers=i}else(o.includes("application/json")||typeof t.data=="object")&&(n.body=JSON.stringify(t.data));return n};class Ie extends Y{async request(e){const n=Re(e,e.webFetchExtra),s=Ae(e.params,e.shouldEncodeUrlParams),o=s?`${e.url}?${s}`:e.url,r=await fetch(o,n),i=r.headers.get("content-type")||"";let{responseType:l="text"}=r.ok?e:{};i.includes("application/json")&&(l="json");let u,c;switch(l){case"arraybuffer":case"blob":c=await r.blob(),u=await Te(c);break;case"json":u=await r.json();break;case"document":case"text":default:u=await r.text()}const m={};return r.headers.forEach((d,P)=>{m[P]=d}),{data:u,headers:m,status:r.status,url:r.url}}async get(e){return this.request(Object.assign(Object.assign({},e),{method:"GET"}))}async post(e){return this.request(Object.assign(Object.assign({},e),{method:"POST"}))}async put(e){return this.request(Object.assign(Object.assign({},e),{method:"PUT"}))}async patch(e){return this.request(Object.assign(Object.assign({},e),{method:"PATCH"}))}async delete(e){return this.request(Object.assign(Object.assign({},e),{method:"DELETE"}))}}X("CapacitorHttp",{web:()=>new Ie});const Me=W.axios.create({baseURL:process.env.API_URL,withCredentials:!0}),V=a.reactive({code:{value:"",type:"",method:"",isSended:!1,isValid:!1}});async function te(t,e,n){return await Me.post("/api/twofa/sendcode",{phone:t.phone.number,email:t.email,method:e,type:n}).then(s=>(V.code=s.data,V.code.isSended=!0,Promise.resolve(s.data)),s=>(console.log(s),L.setError(s),Promise.reject(s)))}a.watch(V,(t,e)=>{});const De=Object.freeze(Object.defineProperty({__proto__:null,sendCode:te,state:V},Symbol.toStringTag,{value:"Module"})),B=W.axios.create({baseURL:process.env.API_URL,withCredentials:!0}),h=a.reactive({user:{_id:"",username:"",email:"",phone:"",password:"",passwordRepeat:""},access:{roles:null,token:null,status:!1}});if(T.get("user")){const{_id:t,email:e,phone:n,roles:s,accessToken:o}=JSON.parse(T.get("user"));Object.assign(h.user,{_id:t,email:e,phone:n}),Object.assign(h.access,{token:o,roles:s,status:!!o}),B.interceptors.request.use(r=>(o&&(r.headers["x-access-token"]=o),r),r=>Promise.reject(r))}const ne={async login(t,e){try{const n=await B.post("/api/auth/signin",{...t,type:e});return q("user",n.data),Object.assign(h.user,{...n.data}),Object.assign(h.access,{token:n.data.accessToken,status:!0,roles:n.data.roles}),n.data}catch(n){return Object.assign(h.access,{token:null,status:!1,roles:null}),L.setError(n),Promise.reject(n)}},async signup(t,e,n){const{password:s,passwordRepeat:o}=h.user;if(s!==o){const r={response:{data:{errorCode:"PASSWORDS_DO_NOT_MATCH"}}};throw L.setError(r),new Error(r.response.status)}try{t.phone=t.phone.number;const r=await B.post("/api/auth/signup",{...t,type:e,inviteCode:n});return r.data.accessToken&&q("user",r.data),Object.assign(h.user,{...r.data}),Object.assign(h.access,{token:r.data.accessToken,status:!0,roles:r.data.roles}),r.data}catch(r){throw L.setError(r),console.log("Sign up falied"),r}},logout(){He("user"),Object.assign(h.user,{email:"",phone:"",password:"",passwordRepeat:""}),Object.assign(h.access,{token:null,status:!1})},async resetPassword(t,e){try{const n=await B.post("/api/auth/reset-password",{email:t.email,phone:t.phone.number,type:e});return Object.assign(V.code,{...n.data,isSended:!0}),n.data}catch(n){return L.setError(n),Promise.reject(n)}},async updatePassword(t,e){const{password:n,passwordRepeat:s}=h.user;if(n!==s){const o={response:{data:{errorCode:"PASSWORDS_DO_NOT_MATCH"}}};throw L.setError(o),new Error(o.response.status)}try{const o=await B.post("/api/auth/update-password",{email:t.email,phone:t.phone.number,password:t.password,passwordRepeat:t.passwordRepeat,type:e});return o.data.accessToken&&q("user",o.data),Object.assign(h.user,{...o.data}),Object.assign(h.access,{token:o.data.accessToken,status:!0}),o.data}catch(o){return L.setError(o),Promise.reject(o)}}},Fe={development:{secure:!1,expires:1},production:{expires:1,domain:process.env.API_URL,sameSite:"none",secure:!0}};function q(t,e,n=process.env.NODE_ENV){process.env.MOBILE_APP?ee.setCookie({url:process.env.API_URL,key:t,value:JSON.stringify(e)}):T.set(t,JSON.stringify(e),Fe[n])}function He(t,e=process.env.NODE_ENV){if(process.env.MOBILE_APP)ee.deleteCookie({url:process.env.API_URL,key:t});else{const n=e==="production"?{domain:process.env.API_URL}:{};T.remove(t,n)}}a.watch(h,(t,e)=>{});const qe=Object.freeze(Object.defineProperty({__proto__:null,actions:ne,state:h},Symbol.toStringTag,{value:"Module"}));exports.Cookies=T;exports.Field=ve;exports._sfc_main=Oe;exports.actions=ne;exports.auth=qe;exports.sendCode=te;exports.state=h;exports.state$1=V;exports.twofa=De;