@ozdao/prometheus-framework 0.1.41 → 0.1.42

Sign up to get free protection for your applications and to get access to all the features.
Files changed (861) 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/dist/BackofficeGallery-02c9721b.mjs +0 -304
  27. package/dist/BackofficeGallery-08d96af1.mjs +0 -305
  28. package/dist/BackofficeGallery-0e0132f5.mjs +0 -306
  29. package/dist/BackofficeGallery-1d117a40.js +0 -1
  30. package/dist/BackofficeGallery-2e695fed.js +0 -1
  31. package/dist/BackofficeGallery-3bb55ea2.mjs +0 -357
  32. package/dist/BackofficeGallery-7ae8fbba.mjs +0 -307
  33. package/dist/BackofficeGallery-a52a27b6.js +0 -1
  34. package/dist/BackofficeGallery-e54a33a3.js +0 -1
  35. package/dist/BackofficeGallery-fe39cff3.js +0 -1
  36. package/dist/Breadcrumbs.vue_vue_type_style_index_0_lang-19e23006.mjs +0 -1945
  37. package/dist/Breadcrumbs.vue_vue_type_style_index_0_lang-2426cb6f.mjs +0 -1945
  38. package/dist/Breadcrumbs.vue_vue_type_style_index_0_lang-505c3ca5.js +0 -1
  39. package/dist/Breadcrumbs.vue_vue_type_style_index_0_lang-561d6db3.js +0 -1
  40. package/dist/Breadcrumbs.vue_vue_type_style_index_0_lang-579e2c7a.mjs +0 -1945
  41. package/dist/Breadcrumbs.vue_vue_type_style_index_0_lang-6f807eb5.js +0 -1
  42. package/dist/Breadcrumbs.vue_vue_type_style_index_0_lang-8660f9cb.js +0 -1
  43. package/dist/Breadcrumbs.vue_vue_type_style_index_0_lang-97217d38.mjs +0 -1945
  44. package/dist/Breadcrumbs.vue_vue_type_style_index_0_lang-9e474158.mjs +0 -1945
  45. package/dist/Breadcrumbs.vue_vue_type_style_index_0_lang-b1873cb7.mjs +0 -1945
  46. package/dist/Breadcrumbs.vue_vue_type_style_index_0_lang-bd3889ee.mjs +0 -1945
  47. package/dist/Breadcrumbs.vue_vue_type_style_index_0_lang-c6aba800.js +0 -1
  48. package/dist/Breadcrumbs.vue_vue_type_style_index_0_lang-cab2bcd2.js +0 -1
  49. package/dist/Breadcrumbs.vue_vue_type_style_index_0_lang-cf9f6aed.js +0 -1
  50. package/dist/Breadcrumbs.vue_vue_type_style_index_0_lang-d9c6e4d1.mjs +0 -1945
  51. package/dist/Breadcrumbs.vue_vue_type_style_index_0_lang-e32a3041.js +0 -1
  52. package/dist/Breadcrumbs.vue_vue_type_style_index_0_lang-e60b6b7d.mjs +0 -1945
  53. package/dist/Breadcrumbs.vue_vue_type_style_index_0_lang-ec801e39.mjs +0 -1945
  54. package/dist/Breadcrumbs.vue_vue_type_style_index_0_lang-f3d37f29.js +0 -1
  55. package/dist/Button-2ca405bd.js +0 -1
  56. package/dist/Button-c59d387c.mjs +0 -283
  57. package/dist/Button-d8e72ac0.mjs +0 -296
  58. package/dist/Button-ee08e6bf.js +0 -1
  59. package/dist/ButtonFollow-00d85977.mjs +0 -133
  60. package/dist/ButtonFollow-23c4d9fc.mjs +0 -132
  61. package/dist/ButtonFollow-351486b0.js +0 -1
  62. package/dist/ButtonFollow-38d9a720.mjs +0 -131
  63. package/dist/ButtonFollow-3a05d29f.mjs +0 -132
  64. package/dist/ButtonFollow-4049a57e.js +0 -1
  65. package/dist/ButtonFollow-5e19fc49.mjs +0 -131
  66. package/dist/ButtonFollow-6765c266.mjs +0 -131
  67. package/dist/ButtonFollow-7c0180b3.js +0 -1
  68. package/dist/ButtonFollow-81508d85.mjs +0 -132
  69. package/dist/ButtonFollow-959861db.js +0 -1
  70. package/dist/ButtonFollow-9a33ab06.js +0 -1
  71. package/dist/ButtonFollow-bf5e6d42.js +0 -1
  72. package/dist/ButtonFollow-d4552677.mjs +0 -131
  73. package/dist/ButtonFollow-daa0e9e4.js +0 -1
  74. package/dist/ButtonFollow-df6317f0.js +0 -1
  75. package/dist/ButtonFollow-f0cefb85.mjs +0 -131
  76. package/dist/ButtonFollow.vue_vue_type_style_index_0_scoped_0634d4a1_lang-0ea8fbf8.js +0 -1
  77. package/dist/ButtonFollow.vue_vue_type_style_index_0_scoped_0634d4a1_lang-4ed993c7.mjs +0 -1
  78. package/dist/ButtonToggleMembership-15f149cb.js +0 -1
  79. package/dist/ButtonToggleMembership-3bb9139e.mjs +0 -90
  80. package/dist/CardBlogpost-38016b80.mjs +0 -246
  81. package/dist/CardBlogpost-ae3b4d23.js +0 -1
  82. package/dist/CardBlogpost-cc208f93.js +0 -1
  83. package/dist/CardBlogpost-d6f49156.mjs +0 -246
  84. package/dist/CardOrganization-01c2e248.mjs +0 -210
  85. package/dist/CardOrganization-18c1e3fa.mjs +0 -297
  86. package/dist/CardOrganization-1b0da77c.mjs +0 -230
  87. package/dist/CardOrganization-1be3651b.js +0 -1
  88. package/dist/CardOrganization-26714a5e.mjs +0 -297
  89. package/dist/CardOrganization-3049931d.mjs +0 -230
  90. package/dist/CardOrganization-3f4a13d3.mjs +0 -230
  91. package/dist/CardOrganization-43e80590.js +0 -1
  92. package/dist/CardOrganization-4d22037e.js +0 -1
  93. package/dist/CardOrganization-522845c7.mjs +0 -230
  94. package/dist/CardOrganization-63dcc83b.js +0 -1
  95. package/dist/CardOrganization-79eb2b6f.js +0 -1
  96. package/dist/CardOrganization-7d679e75.js +0 -1
  97. package/dist/CardOrganization-82c5b4c6.js +0 -1
  98. package/dist/CardOrganization-88c6d479.js +0 -1
  99. package/dist/CardOrganization-8b376cbb.js +0 -1
  100. package/dist/CardOrganization-8c5b582b.mjs +0 -230
  101. package/dist/CardOrganization-b2098e42.js +0 -1
  102. package/dist/CardOrganization-bf366e4e.js +0 -1
  103. package/dist/CardOrganization-c2e7e903.mjs +0 -229
  104. package/dist/CardOrganization-d3a9d898.mjs +0 -230
  105. package/dist/CardOrganization-d8f209ee.js +0 -1
  106. package/dist/CardOrganization-d93c9bdb.js +0 -1
  107. package/dist/CardOrganization-de8ec36e.mjs +0 -230
  108. package/dist/CardOrganization-df0a4506.mjs +0 -229
  109. package/dist/CardOrganization-e530c9d5.mjs +0 -230
  110. package/dist/CardOrganization-e920be73.mjs +0 -234
  111. package/dist/Chips-03ff0c34.mjs +0 -108
  112. package/dist/Chips-0e5bdd54.js +0 -1
  113. package/dist/Chips-2a0d9bfe.js +0 -1
  114. package/dist/Chips-2ada5eda.mjs +0 -200
  115. package/dist/Chips-32092a52.js +0 -1
  116. package/dist/Chips-3a07f374.js +0 -1
  117. package/dist/Chips-3dac276c.js +0 -1
  118. package/dist/Chips-41cd6570.mjs +0 -203
  119. package/dist/Chips-4316f652.mjs +0 -110
  120. package/dist/Chips-493042f7.js +0 -1
  121. package/dist/Chips-4d8ac62e.js +0 -1
  122. package/dist/Chips-5e32c8cb.mjs +0 -200
  123. package/dist/Chips-8d0a1d2c.js +0 -1
  124. package/dist/Chips-92ccc11f.js +0 -1
  125. package/dist/Chips-9cf6c0da.mjs +0 -286
  126. package/dist/Chips-9d81b215.mjs +0 -214
  127. package/dist/Chips-a8681edd.mjs +0 -213
  128. package/dist/Chips-c3d7341e.js +0 -1
  129. package/dist/Chips-cc08d85a.mjs +0 -108
  130. package/dist/Chips-d47704e6.js +0 -1
  131. package/dist/Chips-f0b7ce36.mjs +0 -110
  132. package/dist/Community-72dbb933.js +0 -1
  133. package/dist/Community-87522a04.mjs +0 -132
  134. package/dist/Community-aef23aee.js +0 -1
  135. package/dist/Community-b4d10da6.mjs +0 -130
  136. package/dist/Dashboard-239fb7a6.mjs +0 -52
  137. package/dist/Dashboard-91d73bc5.js +0 -1
  138. package/dist/Dashboard-94267906.js +0 -1
  139. package/dist/Dashboard-ea9035bc.mjs +0 -152
  140. package/dist/Dropdown-31115457.js +0 -1
  141. package/dist/Dropdown-cab3605b.mjs +0 -146
  142. package/dist/EULA-8265b0cf.mjs +0 -4218
  143. package/dist/EULA-cbb27503.js +0 -1
  144. package/dist/EULA-f5fba925.js +0 -1
  145. package/dist/EmptyState-34d85f10.mjs +0 -36
  146. package/dist/EmptyState-7658d7d6.js +0 -1
  147. package/dist/Events-0c6e3ef4.mjs +0 -134
  148. package/dist/Events-4742f070.js +0 -1
  149. package/dist/Events-cdfbca78.js +0 -1
  150. package/dist/Events-e9dd58f7.mjs +0 -123
  151. package/dist/Feed-046852fc.js +0 -1
  152. package/dist/Feed-09b0790d.js +0 -1
  153. package/dist/Feed-0b1dad65.js +0 -1
  154. package/dist/Feed-0dbe15b9.js +0 -1
  155. package/dist/Feed-12b12380.js +0 -1
  156. package/dist/Feed-13499a3a.mjs +0 -428
  157. package/dist/Feed-1d0d9853.js +0 -1
  158. package/dist/Feed-22464fcd.js +0 -1
  159. package/dist/Feed-275a14d8.mjs +0 -371
  160. package/dist/Feed-27f62b1c.mjs +0 -368
  161. package/dist/Feed-2c92ceed.js +0 -1
  162. package/dist/Feed-345d8513.mjs +0 -355
  163. package/dist/Feed-361761f5.mjs +0 -366
  164. package/dist/Feed-3a187776.js +0 -1
  165. package/dist/Feed-406e3b66.mjs +0 -368
  166. package/dist/Feed-416d84b0.mjs +0 -439
  167. package/dist/Feed-44beaa4c.mjs +0 -368
  168. package/dist/Feed-44f715a7.mjs +0 -439
  169. package/dist/Feed-4d9001aa.mjs +0 -368
  170. package/dist/Feed-4df9352b.js +0 -1
  171. package/dist/Feed-4efa2a93.mjs +0 -394
  172. package/dist/Feed-505b3fa8.mjs +0 -383
  173. package/dist/Feed-51eef23f.js +0 -1
  174. package/dist/Feed-530e40ab.mjs +0 -428
  175. package/dist/Feed-536c8a92.mjs +0 -439
  176. package/dist/Feed-585d5821.mjs +0 -124
  177. package/dist/Feed-5d8c16da.mjs +0 -368
  178. package/dist/Feed-5ecd756e.js +0 -1
  179. package/dist/Feed-66095e66.js +0 -1
  180. package/dist/Feed-67f403fb.mjs +0 -366
  181. package/dist/Feed-6e96d3dd.mjs +0 -124
  182. package/dist/Feed-6fd26cb4.mjs +0 -367
  183. package/dist/Feed-76fc4475.mjs +0 -383
  184. package/dist/Feed-793b3eef.mjs +0 -146
  185. package/dist/Feed-79839e67.mjs +0 -368
  186. package/dist/Feed-7b80704d.mjs +0 -361
  187. package/dist/Feed-7c8c901a.mjs +0 -380
  188. package/dist/Feed-807d265b.mjs +0 -156
  189. package/dist/Feed-8110366a.mjs +0 -439
  190. package/dist/Feed-82ad8e29.mjs +0 -368
  191. package/dist/Feed-8a151970.js +0 -1
  192. package/dist/Feed-8a867bfc.js +0 -1
  193. package/dist/Feed-8acc6844.js +0 -1
  194. package/dist/Feed-8bbb7077.mjs +0 -428
  195. package/dist/Feed-8f6eb29d.mjs +0 -439
  196. package/dist/Feed-90f74d6c.mjs +0 -361
  197. package/dist/Feed-986ddd21.mjs +0 -355
  198. package/dist/Feed-a0df5d24.js +0 -1
  199. package/dist/Feed-a2870bbf.js +0 -1
  200. package/dist/Feed-a47977d3.js +0 -1
  201. package/dist/Feed-a5229528.js +0 -1
  202. package/dist/Feed-a75d053e.js +0 -1
  203. package/dist/Feed-a7a6bd2e.mjs +0 -368
  204. package/dist/Feed-acfbb839.mjs +0 -371
  205. package/dist/Feed-aee74095.js +0 -1
  206. package/dist/Feed-af94027c.js +0 -1
  207. package/dist/Feed-b30ef609.js +0 -1
  208. package/dist/Feed-b616f102.mjs +0 -439
  209. package/dist/Feed-bbe44c17.mjs +0 -368
  210. package/dist/Feed-bf575b72.mjs +0 -428
  211. package/dist/Feed-bfd7d1d9.js +0 -1
  212. package/dist/Feed-c25dc839.js +0 -1
  213. package/dist/Feed-c4084664.mjs +0 -368
  214. package/dist/Feed-c5d4390a.js +0 -1
  215. package/dist/Feed-c6b67df4.js +0 -1
  216. package/dist/Feed-c88eb3aa.js +0 -1
  217. package/dist/Feed-c8b1c72d.js +0 -1
  218. package/dist/Feed-c8dc4359.js +0 -1
  219. package/dist/Feed-c9e6190e.js +0 -1
  220. package/dist/Feed-d0da2943.js +0 -1
  221. package/dist/Feed-d78d4b91.mjs +0 -439
  222. package/dist/Feed-e55bc6fa.js +0 -1
  223. package/dist/Feed-e6e84388.js +0 -1
  224. package/dist/Feed-e77e3bb3.js +0 -1
  225. package/dist/Feed-e9bddb71.mjs +0 -439
  226. package/dist/Feed-ee36f80b.js +0 -1
  227. package/dist/Feed-ef6c6ca3.mjs +0 -371
  228. package/dist/Feed-f0a40b33.js +0 -1
  229. package/dist/Feed-f3b2bd74.mjs +0 -439
  230. package/dist/Feed-f4e9769e.js +0 -1
  231. package/dist/Feed-f987d8bb.js +0 -1
  232. package/dist/Feed-fb4f7ee6.mjs +0 -368
  233. package/dist/Feed-fea84ce7.mjs +0 -439
  234. package/dist/Feed-ff3b96b2.js +0 -1
  235. package/dist/Gallery-1f82841a.mjs +0 -357
  236. package/dist/Gallery-9305f294.mjs +0 -357
  237. package/dist/Gallery-dd29c7f6.js +0 -1
  238. package/dist/Gallery-dea27e94.js +0 -1
  239. package/dist/IconChevronRight-a55f838e.js +0 -1
  240. package/dist/IconChevronRight-fae9d012.mjs +0 -28
  241. package/dist/IconCommunity-468dc457.mjs +0 -65
  242. package/dist/IconCommunity-b339e806.js +0 -1
  243. package/dist/IconCross-5bf93179.js +0 -1
  244. package/dist/IconCross-84cb1292.mjs +0 -28
  245. package/dist/IconEdit-1b7b5874.js +0 -1
  246. package/dist/IconEdit-4cfe2115.js +0 -1
  247. package/dist/IconEdit-680dc269.mjs +0 -339
  248. package/dist/IconEdit-823ddda9.js +0 -1
  249. package/dist/IconEdit-c98d3d06.mjs +0 -339
  250. package/dist/IconEdit-e4d0cc6e.js +0 -1
  251. package/dist/IconEdit-eacf3856.mjs +0 -44
  252. package/dist/IconEdit-f0ad8b9a.mjs +0 -205
  253. package/dist/Image-04944a2f.js +0 -9
  254. package/dist/Image-052a3cc2.mjs +0 -480
  255. package/dist/Image-0e21ae0a.mjs +0 -477
  256. package/dist/Image-0f2814f0.js +0 -9
  257. package/dist/Image-1281bc48.mjs +0 -477
  258. package/dist/Image-1f7252c0.mjs +0 -477
  259. package/dist/Image-2269667e.js +0 -9
  260. package/dist/Image-22e17cef.js +0 -9
  261. package/dist/Image-245c003d.mjs +0 -480
  262. package/dist/Image-268e2a1b.js +0 -9
  263. package/dist/Image-2d2e606a.js +0 -9
  264. package/dist/Image-35d31936.js +0 -9
  265. package/dist/Image-3fee8409.mjs +0 -477
  266. package/dist/Image-448f9228.js +0 -9
  267. package/dist/Image-5423e8ce.mjs +0 -480
  268. package/dist/Image-58efaf35.mjs +0 -477
  269. package/dist/Image-661e2fbc.mjs +0 -477
  270. package/dist/Image-75f5becb.js +0 -9
  271. package/dist/Image-7dcfe90d.mjs +0 -477
  272. package/dist/Image-89b2a540.js +0 -9
  273. package/dist/Image-8e67dd2d.js +0 -9
  274. package/dist/Image-93c3a270.mjs +0 -480
  275. package/dist/Image-95c0fb07.mjs +0 -480
  276. package/dist/Image-9e90a5f6.mjs +0 -477
  277. package/dist/Image-a2c2ab9c.js +0 -9
  278. package/dist/Image-ad6d4f0f.mjs +0 -477
  279. package/dist/Image-b2131fa0.mjs +0 -477
  280. package/dist/Image-be69af9c.mjs +0 -477
  281. package/dist/Image-c0ae2c5f.mjs +0 -477
  282. package/dist/Image-c90ee624.js +0 -9
  283. package/dist/Image-d01026cf.js +0 -9
  284. package/dist/Image-d42a89db.mjs +0 -477
  285. package/dist/Image-d5c4d8d9.js +0 -9
  286. package/dist/Image-d74c19ee.mjs +0 -477
  287. package/dist/Image-de94b883.js +0 -9
  288. package/dist/Image-f66dbbf4.js +0 -9
  289. package/dist/Image-fd501859.js +0 -9
  290. package/dist/LabelGooglePlay-24feb437.mjs +0 -31
  291. package/dist/LabelGooglePlay-f80e5ff0.js +0 -1
  292. package/dist/LeftoverAdd-21311275.js +0 -1
  293. package/dist/LeftoverAdd-ccf4595f.mjs +0 -228
  294. package/dist/LeftoverAdd-fc673884.js +0 -1
  295. package/dist/Members-2cb2ff58.mjs +0 -114
  296. package/dist/Members-85534d1f.js +0 -1
  297. package/dist/Members-9b013515.js +0 -1
  298. package/dist/Members-d64149f3.mjs +0 -109
  299. package/dist/Menu-b5d6a0c7.js +0 -1
  300. package/dist/Menu-dd7645c1.mjs +0 -13
  301. package/dist/MenuItem-0b249b94.mjs +0 -93
  302. package/dist/MenuItem-1216a99f.js +0 -1
  303. package/dist/MenuItem-56ae7f94.js +0 -1
  304. package/dist/MenuItem-6296d02f.mjs +0 -63
  305. package/dist/MenuItem-8b70d2cf.js +0 -1
  306. package/dist/MenuItem-97c50b97.mjs +0 -93
  307. package/dist/Organizations-0cb37d68.js +0 -1
  308. package/dist/Organizations-0fd5bc8b.mjs +0 -72
  309. package/dist/Organizations-d360c360.js +0 -1
  310. package/dist/Organizations-d6ef2113.mjs +0 -73
  311. package/dist/PlaceholderUserpic-14c6ea7e.mjs +0 -28
  312. package/dist/PlaceholderUserpic-20d58460.js +0 -1
  313. package/dist/PlaceholderUserpic-47f6f319.js +0 -1
  314. package/dist/Popup-0106ee0c.js +0 -1
  315. package/dist/Popup-0420381f.js +0 -1
  316. package/dist/Popup-0915427c.mjs +0 -74
  317. package/dist/Popup-0b38b537.js +0 -1
  318. package/dist/Popup-31c7ffc6.mjs +0 -76
  319. package/dist/Popup-383abb2e.js +0 -1
  320. package/dist/Popup-47b37484.mjs +0 -76
  321. package/dist/Popup-709634dc.mjs +0 -76
  322. package/dist/Popup-795f5c88.js +0 -1
  323. package/dist/Popup-ad5f59d0.js +0 -1
  324. package/dist/Popup-b7609baa.js +0 -1
  325. package/dist/Popup-d5c4cb46.mjs +0 -76
  326. package/dist/Popup-d7dbc670.mjs +0 -76
  327. package/dist/Popup-e6685f31.mjs +0 -76
  328. package/dist/Popup-e7c9a43e.mjs +0 -76
  329. package/dist/Popup-ee4bd834.js +0 -1
  330. package/dist/Popup-f5cdd3c1.js +0 -1
  331. package/dist/Popup-f7a5e86b.mjs +0 -76
  332. package/dist/Popup-fca78130.mjs +0 -76
  333. package/dist/Product-0095681c.mjs +0 -838
  334. package/dist/Product-09a39f0b.js +0 -7
  335. package/dist/Product-1892b14a.js +0 -7
  336. package/dist/Product-2459e9da.mjs +0 -838
  337. package/dist/Product-2c6df98d.mjs +0 -838
  338. package/dist/Product-2d05acc8.mjs +0 -839
  339. package/dist/Product-3001d998.mjs +0 -838
  340. package/dist/Product-3c2ae338.js +0 -7
  341. package/dist/Product-3c7b2921.mjs +0 -841
  342. package/dist/Product-3c9c8197.js +0 -7
  343. package/dist/Product-4b58701f.js +0 -7
  344. package/dist/Product-54854cd1.js +0 -7
  345. package/dist/Product-58a83c67.mjs +0 -838
  346. package/dist/Product-5994a8c9.mjs +0 -653
  347. package/dist/Product-601a9d5b.mjs +0 -838
  348. package/dist/Product-68fa1e9e.js +0 -7
  349. package/dist/Product-6aa1c9ee.mjs +0 -844
  350. package/dist/Product-6ca8d04d.js +0 -7
  351. package/dist/Product-6d05d027.js +0 -7
  352. package/dist/Product-6df77924.js +0 -7
  353. package/dist/Product-748ec8b7.mjs +0 -842
  354. package/dist/Product-7f86f9d4.js +0 -7
  355. package/dist/Product-84e2c789.js +0 -7
  356. package/dist/Product-852f952c.js +0 -7
  357. package/dist/Product-86bb1a63.mjs +0 -838
  358. package/dist/Product-89ca1bff.js +0 -7
  359. package/dist/Product-8bee8d1c.mjs +0 -838
  360. package/dist/Product-9170a446.mjs +0 -838
  361. package/dist/Product-943b64bb.mjs +0 -838
  362. package/dist/Product-977a8a7f.js +0 -7
  363. package/dist/Product-a23f852f.js +0 -7
  364. package/dist/Product-a39f3ca3.js +0 -7
  365. package/dist/Product-a6251018.mjs +0 -844
  366. package/dist/Product-a9efa410.js +0 -7
  367. package/dist/Product-abf86516.js +0 -7
  368. package/dist/Product-b054c74c.mjs +0 -838
  369. package/dist/Product-b1336cde.js +0 -7
  370. package/dist/Product-b32fb0e1.js +0 -7
  371. package/dist/Product-b7c53f33.mjs +0 -838
  372. package/dist/Product-bbdc8460.mjs +0 -841
  373. package/dist/Product-bbe7171a.mjs +0 -842
  374. package/dist/Product-c085f00f.mjs +0 -838
  375. package/dist/Product-d01e3a0d.mjs +0 -839
  376. package/dist/Product-d3f1d10a.mjs +0 -844
  377. package/dist/Product-d9c3b9b9.js +0 -7
  378. package/dist/Product-dc5024f6.js +0 -7
  379. package/dist/Product-dccb371a.mjs +0 -838
  380. package/dist/Product-e43dd2f1.js +0 -7
  381. package/dist/Product-e4e583f0.mjs +0 -652
  382. package/dist/Product-e825edfc.mjs +0 -838
  383. package/dist/Product-f017e6cd.js +0 -7
  384. package/dist/ProductEdit-052b0aef.mjs +0 -350
  385. package/dist/ProductEdit-171c9923.js +0 -1
  386. package/dist/ProductEdit-17f4e395.mjs +0 -304
  387. package/dist/ProductEdit-23d35d67.mjs +0 -350
  388. package/dist/ProductEdit-2b4d1d88.js +0 -1
  389. package/dist/ProductEdit-2e309add.js +0 -1
  390. package/dist/ProductEdit-3350274e.js +0 -1
  391. package/dist/ProductEdit-36e5cfdd.js +0 -1
  392. package/dist/ProductEdit-3aecb5bf.js +0 -1
  393. package/dist/ProductEdit-3d7f2823.js +0 -1
  394. package/dist/ProductEdit-3ff2af92.js +0 -1
  395. package/dist/ProductEdit-4af06681.js +0 -1
  396. package/dist/ProductEdit-4f9b6d56.js +0 -1
  397. package/dist/ProductEdit-55b6cb06.mjs +0 -350
  398. package/dist/ProductEdit-56752bbe.mjs +0 -350
  399. package/dist/ProductEdit-576c9ff8.js +0 -1
  400. package/dist/ProductEdit-590b7a01.js +0 -1
  401. package/dist/ProductEdit-5e479343.mjs +0 -300
  402. package/dist/ProductEdit-64207814.mjs +0 -296
  403. package/dist/ProductEdit-6abcc97b.mjs +0 -306
  404. package/dist/ProductEdit-70ddae4d.js +0 -1
  405. package/dist/ProductEdit-737e2a5a.mjs +0 -302
  406. package/dist/ProductEdit-777bb9e2.mjs +0 -350
  407. package/dist/ProductEdit-82658f2f.mjs +0 -350
  408. package/dist/ProductEdit-86fedffe.mjs +0 -350
  409. package/dist/ProductEdit-8e779ed8.js +0 -1
  410. package/dist/ProductEdit-a1050ab6.mjs +0 -303
  411. package/dist/ProductEdit-a322f1ba.js +0 -1
  412. package/dist/ProductEdit-a434240f.js +0 -1
  413. package/dist/ProductEdit-a57fd2b0.mjs +0 -350
  414. package/dist/ProductEdit-ab0530e8.js +0 -1
  415. package/dist/ProductEdit-ab5d71ce.mjs +0 -350
  416. package/dist/ProductEdit-aca44ef7.mjs +0 -300
  417. package/dist/ProductEdit-ba3fef8c.mjs +0 -350
  418. package/dist/ProductEdit-c08ee26f.mjs +0 -350
  419. package/dist/ProductEdit-c99ab559.js +0 -1
  420. package/dist/ProductEdit-cdc3415a.mjs +0 -350
  421. package/dist/ProductEdit-d2666662.js +0 -1
  422. package/dist/ProductEdit-d5dec3cf.js +0 -1
  423. package/dist/ProductEdit-d74fddb1.mjs +0 -350
  424. package/dist/ProductEdit-dae66a53.js +0 -1
  425. package/dist/ProductEdit-e22cc4ef.js +0 -1
  426. package/dist/ProductEdit-e4cad9d1.js +0 -1
  427. package/dist/ProductEdit-e5a2e0f6.js +0 -1
  428. package/dist/ProductEdit-e71dbe52.js +0 -1
  429. package/dist/ProductEdit-e827ea38.mjs +0 -350
  430. package/dist/ProductEdit-ebcc3f98.mjs +0 -306
  431. package/dist/ProductEdit-f7a9af17.mjs +0 -303
  432. package/dist/ProductEdit-f901314c.mjs +0 -306
  433. package/dist/ProductEdit-fa0117b6.mjs +0 -350
  434. package/dist/ProductsBackoffice-0c93f9b6.js +0 -1
  435. package/dist/ProductsBackoffice-3c182d6a.mjs +0 -86
  436. package/dist/ProductsBackoffice-b684913d.js +0 -1
  437. package/dist/ProfileBlogposts-03d04b92.mjs +0 -66
  438. package/dist/ProfileBlogposts-070cb7e9.mjs +0 -65
  439. package/dist/ProfileBlogposts-08f784c3.mjs +0 -64
  440. package/dist/ProfileBlogposts-0b81d964.js +0 -1
  441. package/dist/ProfileBlogposts-2063c511.mjs +0 -65
  442. package/dist/ProfileBlogposts-39c20b79.mjs +0 -64
  443. package/dist/ProfileBlogposts-3aea0091.mjs +0 -64
  444. package/dist/ProfileBlogposts-4293a1e3.js +0 -1
  445. package/dist/ProfileBlogposts-4c326fed.mjs +0 -65
  446. package/dist/ProfileBlogposts-5379335e.js +0 -1
  447. package/dist/ProfileBlogposts-5382274b.mjs +0 -64
  448. package/dist/ProfileBlogposts-57931834.mjs +0 -70
  449. package/dist/ProfileBlogposts-5c0f3b58.js +0 -1
  450. package/dist/ProfileBlogposts-5c6ab74a.mjs +0 -64
  451. package/dist/ProfileBlogposts-5deee0c5.mjs +0 -65
  452. package/dist/ProfileBlogposts-62d5e809.mjs +0 -70
  453. package/dist/ProfileBlogposts-67e1bd8f.mjs +0 -64
  454. package/dist/ProfileBlogposts-69beaa14.js +0 -1
  455. package/dist/ProfileBlogposts-6c715a38.js +0 -1
  456. package/dist/ProfileBlogposts-6f80b734.mjs +0 -64
  457. package/dist/ProfileBlogposts-8b66ae1b.js +0 -1
  458. package/dist/ProfileBlogposts-8c10a505.js +0 -1
  459. package/dist/ProfileBlogposts-8f6191d6.js +0 -1
  460. package/dist/ProfileBlogposts-92c4addb.mjs +0 -64
  461. package/dist/ProfileBlogposts-a2d04221.js +0 -1
  462. package/dist/ProfileBlogposts-a2f7cd4c.mjs +0 -70
  463. package/dist/ProfileBlogposts-a798df3d.js +0 -1
  464. package/dist/ProfileBlogposts-aa839fcb.mjs +0 -77
  465. package/dist/ProfileBlogposts-af88ce98.js +0 -1
  466. package/dist/ProfileBlogposts-b59992cf.mjs +0 -79
  467. package/dist/ProfileBlogposts-b6bf0c42.js +0 -1
  468. package/dist/ProfileBlogposts-bf3cd8e5.mjs +0 -64
  469. package/dist/ProfileBlogposts-c31917ec.js +0 -1
  470. package/dist/ProfileBlogposts-d1d3326e.js +0 -1
  471. package/dist/ProfileBlogposts-d6bba033.js +0 -1
  472. package/dist/ProfileBlogposts-e3ea2c82.js +0 -1
  473. package/dist/ProfileBlogposts-eaecd267.js +0 -1
  474. package/dist/ProfileBlogposts-f90f947b.mjs +0 -64
  475. package/dist/ProfileBlogposts-f9312adf.js +0 -1
  476. package/dist/ProfileComments-03f88b54.mjs +0 -44
  477. package/dist/ProfileComments-061ea40b.mjs +0 -44
  478. package/dist/ProfileComments-06985576.mjs +0 -44
  479. package/dist/ProfileComments-0d22a8ec.js +0 -1
  480. package/dist/ProfileComments-12b51ae3.js +0 -1
  481. package/dist/ProfileComments-1525663e.mjs +0 -44
  482. package/dist/ProfileComments-17352b6a.mjs +0 -44
  483. package/dist/ProfileComments-1ae70859.js +0 -1
  484. package/dist/ProfileComments-1cbf5c45.js +0 -1
  485. package/dist/ProfileComments-1e0d72cc.mjs +0 -44
  486. package/dist/ProfileComments-3cf3e265.mjs +0 -44
  487. package/dist/ProfileComments-473c3413.js +0 -1
  488. package/dist/ProfileComments-6d863cd3.mjs +0 -45
  489. package/dist/ProfileComments-761ce00e.js +0 -1
  490. package/dist/ProfileComments-78231e6a.mjs +0 -44
  491. package/dist/ProfileComments-8a0c489c.mjs +0 -44
  492. package/dist/ProfileComments-8c9146ef.js +0 -1
  493. package/dist/ProfileComments-9398be62.mjs +0 -44
  494. package/dist/ProfileComments-96f6cde8.mjs +0 -44
  495. package/dist/ProfileComments-bae499e9.js +0 -1
  496. package/dist/ProfileComments-c3290211.js +0 -1
  497. package/dist/ProfileComments-c7230f42.mjs +0 -44
  498. package/dist/ProfileComments-cdaccefe.mjs +0 -44
  499. package/dist/ProfileComments-d6779ee2.mjs +0 -44
  500. package/dist/ProfileComments-db4b6fbc.js +0 -1
  501. package/dist/ProfileComments-dd923865.js +0 -1
  502. package/dist/ProfileComments-e0116e5f.js +0 -1
  503. package/dist/ProfileComments-e6970923.js +0 -1
  504. package/dist/ProfileComments-f0000ea6.js +0 -1
  505. package/dist/ProfileEvents-0bdd36e4.mjs +0 -57
  506. package/dist/ProfileEvents-11dc4034.mjs +0 -56
  507. package/dist/ProfileEvents-1ca72873.mjs +0 -56
  508. package/dist/ProfileEvents-1e0c1291.js +0 -1
  509. package/dist/ProfileEvents-26a72fe2.mjs +0 -56
  510. package/dist/ProfileEvents-2f22e7cf.mjs +0 -56
  511. package/dist/ProfileEvents-3089a526.mjs +0 -56
  512. package/dist/ProfileEvents-314eadc3.js +0 -1
  513. package/dist/ProfileEvents-3f7ca2c1.js +0 -1
  514. package/dist/ProfileEvents-47409c9e.mjs +0 -62
  515. package/dist/ProfileEvents-48c70286.mjs +0 -56
  516. package/dist/ProfileEvents-4a2fa422.mjs +0 -57
  517. package/dist/ProfileEvents-588eadf9.js +0 -1
  518. package/dist/ProfileEvents-6b3fb52e.mjs +0 -68
  519. package/dist/ProfileEvents-7502ed90.mjs +0 -57
  520. package/dist/ProfileEvents-76166bc5.mjs +0 -56
  521. package/dist/ProfileEvents-7b202655.js +0 -1
  522. package/dist/ProfileEvents-82517a3b.mjs +0 -56
  523. package/dist/ProfileEvents-893285bb.js +0 -1
  524. package/dist/ProfileEvents-89471c05.js +0 -1
  525. package/dist/ProfileEvents-8b88287a.js +0 -1
  526. package/dist/ProfileEvents-90448f97.js +0 -1
  527. package/dist/ProfileEvents-917169c6.mjs +0 -58
  528. package/dist/ProfileEvents-980b0281.mjs +0 -56
  529. package/dist/ProfileEvents-996bce18.js +0 -1
  530. package/dist/ProfileEvents-a28a4ee5.js +0 -1
  531. package/dist/ProfileEvents-a9b96fec.js +0 -1
  532. package/dist/ProfileEvents-af2536a3.js +0 -1
  533. package/dist/ProfileEvents-ba769f57.mjs +0 -56
  534. package/dist/ProfileEvents-bbdd62e7.mjs +0 -70
  535. package/dist/ProfileEvents-bff6e071.js +0 -1
  536. package/dist/ProfileEvents-c9aa3d41.mjs +0 -56
  537. package/dist/ProfileEvents-cc65404c.js +0 -1
  538. package/dist/ProfileEvents-cdebd612.js +0 -1
  539. package/dist/ProfileEvents-d0c5e3dc.js +0 -1
  540. package/dist/ProfileEvents-d978617d.mjs +0 -57
  541. package/dist/ProfileEvents-db12cf78.js +0 -1
  542. package/dist/ProfileEvents-e070d9d4.mjs +0 -62
  543. package/dist/ProfileEvents-e62e76cf.js +0 -1
  544. package/dist/ProfileEvents-ea023c17.js +0 -1
  545. package/dist/ProfileEvents-ed7f9603.mjs +0 -62
  546. package/dist/ProfileLikes-0402d1fb.js +0 -1
  547. package/dist/ProfileLikes-05911934.mjs +0 -44
  548. package/dist/ProfileLikes-0c8a7255.mjs +0 -44
  549. package/dist/ProfileLikes-11ca8c11.js +0 -1
  550. package/dist/ProfileLikes-23b6f2f9.js +0 -1
  551. package/dist/ProfileLikes-36373ac1.mjs +0 -44
  552. package/dist/ProfileLikes-3c5c02be.mjs +0 -44
  553. package/dist/ProfileLikes-3edf6fb8.mjs +0 -44
  554. package/dist/ProfileLikes-51729962.js +0 -1
  555. package/dist/ProfileLikes-553c52df.js +0 -1
  556. package/dist/ProfileLikes-5b52e4ae.mjs +0 -44
  557. package/dist/ProfileLikes-6cf19687.js +0 -1
  558. package/dist/ProfileLikes-74c78a16.mjs +0 -44
  559. package/dist/ProfileLikes-75215d15.mjs +0 -44
  560. package/dist/ProfileLikes-92196922.mjs +0 -45
  561. package/dist/ProfileLikes-a2c1b585.js +0 -1
  562. package/dist/ProfileLikes-b1060d1e.js +0 -1
  563. package/dist/ProfileLikes-b48ce0ef.js +0 -1
  564. package/dist/ProfileLikes-c068c6c6.js +0 -1
  565. package/dist/ProfileLikes-c8dab14d.mjs +0 -44
  566. package/dist/ProfileLikes-ca197731.mjs +0 -44
  567. package/dist/ProfileLikes-d5f9f058.js +0 -1
  568. package/dist/ProfileLikes-da6303a4.js +0 -1
  569. package/dist/ProfileLikes-e31f28dc.js +0 -1
  570. package/dist/ProfileLikes-e4fa0792.mjs +0 -44
  571. package/dist/ProfileLikes-e88dae8f.mjs +0 -44
  572. package/dist/ProfileLikes-f5ad4497.mjs +0 -44
  573. package/dist/ProfileLikes-f838ff5e.mjs +0 -44
  574. package/dist/ProfileLikes-fa41bad0.js +0 -1
  575. package/dist/ProfileOrganizations-1f9f1841.js +0 -1
  576. package/dist/ProfileOrganizations-3a879480.mjs +0 -212
  577. package/dist/ProfileOrganizations-422d1fa5.js +0 -1
  578. package/dist/ProfileOrganizations-43710687.js +0 -1
  579. package/dist/ProfileOrganizations-4734c02e.mjs +0 -73
  580. package/dist/ProfileOrganizations-5348e892.js +0 -1
  581. package/dist/ProfileOrganizations-55914b43.js +0 -1
  582. package/dist/ProfileOrganizations-58ebfe44.mjs +0 -212
  583. package/dist/ProfileOrganizations-5b5480d5.mjs +0 -212
  584. package/dist/ProfileOrganizations-600d310d.js +0 -1
  585. package/dist/ProfileOrganizations-6b1bc5b2.mjs +0 -213
  586. package/dist/ProfileOrganizations-6f4df3da.js +0 -1
  587. package/dist/ProfileOrganizations-738f444a.js +0 -1
  588. package/dist/ProfileOrganizations-769325c7.js +0 -1
  589. package/dist/ProfileOrganizations-774c6508.mjs +0 -212
  590. package/dist/ProfileOrganizations-78fef72e.js +0 -1
  591. package/dist/ProfileOrganizations-7911deec.mjs +0 -219
  592. package/dist/ProfileOrganizations-8961aaee.mjs +0 -213
  593. package/dist/ProfileOrganizations-930ca51f.mjs +0 -212
  594. package/dist/ProfileOrganizations-974a50ca.mjs +0 -212
  595. package/dist/ProfileOrganizations-ae258581.js +0 -1
  596. package/dist/ProfileOrganizations-bee6a3ae.js +0 -1
  597. package/dist/ProfileOrganizations-c4fb03a1.mjs +0 -72
  598. package/dist/ProfileOrganizations-c5151835.mjs +0 -214
  599. package/dist/ProfileOrganizations-cef668b5.mjs +0 -212
  600. package/dist/ProfileOrganizations-cf8a12f5.mjs +0 -213
  601. package/dist/ProfileOrganizations-d4ec181b.js +0 -1
  602. package/dist/ProfileOrganizations-d55ee487.js +0 -1
  603. package/dist/ProfileOrganizations-db313b5e.mjs +0 -219
  604. package/dist/ProfileOrganizations-ec908108.mjs +0 -212
  605. package/dist/ProfileOrganizations-f52e62e1.js +0 -1
  606. package/dist/Publics-0762210a.js +0 -1
  607. package/dist/Publics-103da60e.js +0 -1
  608. package/dist/Publics-24f055eb.js +0 -1
  609. package/dist/Publics-4438ca51.js +0 -1
  610. package/dist/Publics-4db36606.js +0 -1
  611. package/dist/Publics-50c0ff6c.js +0 -1
  612. package/dist/Publics-538180a8.mjs +0 -45
  613. package/dist/Publics-5472f70c.mjs +0 -123
  614. package/dist/Publics-5ae33b91.mjs +0 -123
  615. package/dist/Publics-640d32fc.mjs +0 -123
  616. package/dist/Publics-660e851c.mjs +0 -45
  617. package/dist/Publics-6b7c97bd.js +0 -1
  618. package/dist/Publics-70a0ca9c.mjs +0 -45
  619. package/dist/Publics-71b9efbe.js +0 -1
  620. package/dist/Publics-8595ab7e.js +0 -1
  621. package/dist/Publics-8bb9a680.js +0 -1
  622. package/dist/Publics-8bc74cc3.js +0 -1
  623. package/dist/Publics-abbe2e0c.mjs +0 -123
  624. package/dist/Publics-b1cbfd97.mjs +0 -45
  625. package/dist/Publics-bbab7a79.js +0 -1
  626. package/dist/Publics-bed70f0c.mjs +0 -123
  627. package/dist/Publics-cbb8eaaa.mjs +0 -123
  628. package/dist/Publics-e14d36ed.js +0 -1
  629. package/dist/Publics-f34131bf.mjs +0 -45
  630. package/dist/Publics-f4c3ef5b.mjs +0 -123
  631. package/dist/Publics-fcb1f708.mjs +0 -123
  632. package/dist/Publics-ffc08ad7.mjs +0 -123
  633. package/dist/Select-90d4b7c8.mjs +0 -81
  634. package/dist/Select-b9299fb6.js +0 -1
  635. package/dist/Select.vue_vue_type_style_index_0_scoped_a78dbba1_lang-0ea8fbf8.js +0 -1
  636. package/dist/Select.vue_vue_type_style_index_0_scoped_a78dbba1_lang-4ed993c7.mjs +0 -1
  637. package/dist/SkeletonBlogpost-95db0fa9.js +0 -1
  638. package/dist/SkeletonBlogpost-e0621af7.mjs +0 -16
  639. package/dist/SkeletonEventShort-6c9e3940.js +0 -1
  640. package/dist/SkeletonEventShort-f030e56f.mjs +0 -16
  641. package/dist/SkeletonOrganization-5c09cfc5.js +0 -1
  642. package/dist/SkeletonOrganization-8690422d.mjs +0 -16
  643. package/dist/Socials-31c06635.mjs +0 -74
  644. package/dist/Socials-3fe01af1.mjs +0 -275
  645. package/dist/Socials-821bd677.js +0 -1
  646. package/dist/Socials-9b2d27a6.js +0 -1
  647. package/dist/Socials-b19d0cb1.js +0 -1
  648. package/dist/Socials-becde7dc.mjs +0 -275
  649. package/dist/Socials-cceaeaf2.js +0 -1
  650. package/dist/Tab-6f0a4909.js +0 -1
  651. package/dist/Tab-a243605d.mjs +0 -46
  652. package/dist/Tab-dcd62005.js +0 -1
  653. package/dist/UploadImage-15e24d71.mjs +0 -83
  654. package/dist/UploadImage-1b4c2a5e.mjs +0 -83
  655. package/dist/UploadImage-2170c4df.js +0 -1
  656. package/dist/UploadImage-33f6a9f4.js +0 -1
  657. package/dist/UploadImage-39483aee.mjs +0 -83
  658. package/dist/UploadImage-39d42048.js +0 -1
  659. package/dist/UploadImage-6344f789.js +0 -1
  660. package/dist/UploadImage-739cab04.js +0 -1
  661. package/dist/UploadImage-73d66f27.js +0 -1
  662. package/dist/UploadImage-802b81db.js +0 -1
  663. package/dist/UploadImage-86fda95d.mjs +0 -83
  664. package/dist/UploadImage-8835be69.mjs +0 -83
  665. package/dist/UploadImage-a3ef4012.mjs +0 -83
  666. package/dist/UploadImage-c9711af2.js +0 -1
  667. package/dist/UploadImage-dfb36cdb.js +0 -1
  668. package/dist/UploadImage-e4418b43.mjs +0 -83
  669. package/dist/UploadImage-ec3714e8.mjs +0 -83
  670. package/dist/UploadImage-f04e4bc0.mjs +0 -83
  671. package/dist/UploadImage-f7b0335f.mjs +0 -83
  672. package/dist/UploadImageMultiple-297b3897.js +0 -1
  673. package/dist/UploadImageMultiple-7b132ba0.mjs +0 -58
  674. package/dist/UploadImageMultiple-b4c8d627.js +0 -1
  675. package/dist/UploadImageMultiple-c9a7b54f.js +0 -1
  676. package/dist/UploadImageMultiple-d2d48f39.mjs +0 -58
  677. package/dist/UploadImageMultiple-ebcc51e6.mjs +0 -58
  678. package/dist/addMembersQuantity-ea216f92.mjs +0 -85
  679. package/dist/addMembersQuantity-f922d82b.js +0 -84
  680. package/dist/auth-06d35b82.js +0 -7
  681. package/dist/auth-2f9b2dfc.js +0 -7
  682. package/dist/auth-3dedf391.js +0 -8
  683. package/dist/auth-4415a97a.js +0 -7
  684. package/dist/auth-45a454f2.js +0 -7
  685. package/dist/auth-5217f6a5.mjs +0 -1498
  686. package/dist/auth-5a58f8cb.js +0 -8
  687. package/dist/auth-5cd34aae.mjs +0 -905
  688. package/dist/auth-60c81f40.mjs +0 -1836
  689. package/dist/auth-78d9392a.mjs +0 -612
  690. package/dist/auth-962e3b73.mjs +0 -1836
  691. package/dist/auth-96449d96.js +0 -7
  692. package/dist/auth-98fe3efb.mjs +0 -612
  693. package/dist/auth-acbe3ae1.js +0 -7
  694. package/dist/auth-afa25b86.mjs +0 -905
  695. package/dist/auth-b047fdc0.mjs +0 -612
  696. package/dist/auth-b61483ce.js +0 -8
  697. package/dist/auth-c3234662.mjs +0 -1836
  698. package/dist/auth-cfeacd61.mjs +0 -1839
  699. package/dist/auth-e8f6d979.js +0 -8
  700. package/dist/auth-ec618cb3.mjs +0 -627
  701. package/dist/auth.validation-02e0629b.mjs +0 -20
  702. package/dist/auth.validation-0ce9e326.js +0 -1
  703. package/dist/auth.validation-1b60cef5.mjs +0 -20
  704. package/dist/auth.validation-1d5f2990.mjs +0 -20
  705. package/dist/auth.validation-2cdd2231.mjs +0 -17
  706. package/dist/auth.validation-2dfb450f.js +0 -1
  707. package/dist/auth.validation-2f00457e.js +0 -1
  708. package/dist/auth.validation-30bb0efd.js +0 -1
  709. package/dist/auth.validation-3e93dc23.mjs +0 -20
  710. package/dist/auth.validation-3fd4cc7c.mjs +0 -20
  711. package/dist/auth.validation-495e9d6d.js +0 -1
  712. package/dist/auth.validation-4b016fa5.js +0 -1
  713. package/dist/auth.validation-6a59443b.js +0 -1
  714. package/dist/auth.validation-892bea9b.js +0 -1
  715. package/dist/auth.validation-9e493d2f.mjs +0 -20
  716. package/dist/auth.validation-9f87ea95.mjs +0 -20
  717. package/dist/auth.validation-a17cd085.js +0 -1
  718. package/dist/auth.validation-a52304cf.mjs +0 -20
  719. package/dist/auth.validation-ba3606bf.mjs +0 -24
  720. package/dist/auth.validation-be05e981.js +0 -1
  721. package/dist/auth.validation-c8d5adf5.mjs +0 -20
  722. package/dist/auth.validation-d4795c25.js +0 -1
  723. package/dist/auth.validation-e265b496.mjs +0 -23
  724. package/dist/carousel.es-ee047568.js +0 -5
  725. package/dist/categories-4327a81c.js +0 -1
  726. package/dist/categories-82b28618.js +0 -1
  727. package/dist/categories-df3240a7.mjs +0 -122
  728. package/dist/components/CardFooter/CardFooter.vue.d.ts +0 -8
  729. package/dist/components/CardHeader/CardHeader.vue.d.ts +0 -15
  730. package/dist/dribbble-8e8e169b.js +0 -1
  731. package/dist/dribbble-ae37c2ac.mjs +0 -127
  732. package/dist/icons.client.cjs +0 -1
  733. package/dist/icons.client.js +0 -84
  734. package/dist/index-0ab9d59c.mjs +0 -934
  735. package/dist/index-2059e444.js +0 -2
  736. package/dist/index-2a0269fc.js +0 -2
  737. package/dist/index-4e469a71.mjs +0 -941
  738. package/dist/index-7ecbf72a.js +0 -2
  739. package/dist/index-9128ade5.mjs +0 -1228
  740. package/dist/inputs.validation-14e8e01f.mjs +0 -93
  741. package/dist/inputs.validation-24ae76b9.js +0 -1
  742. package/dist/leftovers-66951de6.js +0 -1
  743. package/dist/mailing-25d08f4c.js +0 -49
  744. package/dist/mailing-ebc6e90f.mjs +0 -50
  745. package/dist/metadata.schema-147f9902.mjs +0 -212
  746. package/dist/metadata.schema-4f856191.js +0 -85
  747. package/dist/metadata.schema-7f36e829.mjs +0 -86
  748. package/dist/metadata.schema-93397f9f.js +0 -211
  749. package/dist/modules/backoffice/components/admin/LeftoverAdd.vue.d.ts +0 -2
  750. package/dist/modules/backoffice/components/admin/Leftovers.vue.d.ts +0 -2
  751. package/dist/modules/backoffice/components/admin/Order.vue.d.ts +0 -6
  752. package/dist/modules/backoffice/components/admin/Orders.vue.d.ts +0 -2
  753. package/dist/modules/backoffice/components/admin/Product.vue.d.ts +0 -2
  754. package/dist/modules/backoffice/components/admin/Products.vue.d.ts +0 -2
  755. package/dist/modules/backoffice/components/layouts/Account.vue.d.ts +0 -2
  756. package/dist/modules/backoffice/components/pages/Favorites.vue.d.ts +0 -6
  757. package/dist/modules/backoffice/components/pages/History.vue.d.ts +0 -6
  758. package/dist/modules/backoffice/components/pages/Organizations.vue.d.ts +0 -2
  759. package/dist/modules/backoffice/components/pages/Profile.vue.d.ts +0 -2
  760. package/dist/modules/backoffice/components/pages/Wallet.vue.d.ts +0 -2
  761. package/dist/modules/backoffice/components/pages/profile/ProfileEdit.vue.d.ts +0 -2
  762. package/dist/modules/gallery/components/sections/Gallery.vue.d.ts +0 -2
  763. package/dist/modules/landing/components/pages/Legal.vue.d.ts +0 -2
  764. package/dist/modules/landing/components/pages/legal/Cookies.vue.d.ts +0 -2
  765. package/dist/modules/landing/components/pages/legal/Privacy.vue.d.ts +0 -2
  766. package/dist/modules/landing/components/pages/legal/Terms.vue.d.ts +0 -2
  767. package/dist/modules/orders/components/pages/History.vue.d.ts +0 -6
  768. package/dist/modules/organizations/components/blocks/DepartmentSubDepartmentModify.vue.d.ts +0 -11
  769. package/dist/modules/organizations/components/elements/ButtonFollow.vue.d.ts +0 -10
  770. package/dist/modules/organizations/components/pages/OrganizationsAccount.vue.d.ts +0 -2
  771. package/dist/modules/organizations/components/sections/Department.vue.d.ts +0 -7
  772. package/dist/modules/organizations/components/sections/Department2.vue.d.ts +0 -7
  773. package/dist/modules/organizations/components/sections/MembersTab.vue.d.ts +0 -7
  774. package/dist/modules/organizations/components/sections/PlaceModify.vue.d.ts +0 -9
  775. package/dist/modules/organizations/components/sections/Places.vue.d.ts +0 -9
  776. package/dist/modules/organizations/components/sections/StructureTab.vue.d.ts +0 -8
  777. package/dist/modules/products/components/blocks/Leftover.vue.d.ts +0 -6
  778. package/dist/modules/products/components/blocks/ProductCard.vue.d.ts +0 -6
  779. package/dist/organizations-0fb56927.mjs +0 -122
  780. package/dist/organizations-195ec134.js +0 -1
  781. package/dist/organizations-2adff182.mjs +0 -121
  782. package/dist/organizations-4157d81d.js +0 -1
  783. package/dist/organizations-49a10611.js +0 -1
  784. package/dist/organizations-4d18a2e2.js +0 -1
  785. package/dist/organizations-52438d24.mjs +0 -121
  786. package/dist/organizations-65937ba4.js +0 -1
  787. package/dist/organizations-6ed907e3.mjs +0 -122
  788. package/dist/organizations-81e762e7.mjs +0 -122
  789. package/dist/organizations-8408770b.mjs +0 -121
  790. package/dist/organizations-8ffdf84d.mjs +0 -121
  791. package/dist/organizations-a241b21d.js +0 -1
  792. package/dist/organizations-aed4245d.mjs +0 -122
  793. package/dist/organizations-af965fcf.mjs +0 -122
  794. package/dist/organizations-bb8f676d.js +0 -1
  795. package/dist/organizations-cf1ab766.js +0 -1
  796. package/dist/organizations-e1bfd3a8.mjs +0 -121
  797. package/dist/organizations-e74f4f84.js +0 -1
  798. package/dist/organizations-e97a0f85.js +0 -1
  799. package/dist/organizations-ea9de495.mjs +0 -122
  800. package/dist/organizations.client-0071acee.js +0 -3
  801. package/dist/organizations.client-01593e4d.js +0 -3
  802. package/dist/organizations.client-13fc2cbe.js +0 -3
  803. package/dist/organizations.client-16ee6b43.js +0 -3
  804. package/dist/organizations.client-1b0906f9.js +0 -3
  805. package/dist/organizations.client-1b9fa66e.mjs +0 -2997
  806. package/dist/organizations.client-1e9361ec.js +0 -3
  807. package/dist/organizations.client-1eb0b49c.js +0 -3
  808. package/dist/organizations.client-21cfcf36.mjs +0 -3038
  809. package/dist/organizations.client-292e8444.js +0 -3
  810. package/dist/organizations.client-2e452fee.js +0 -3
  811. package/dist/organizations.client-37ec4817.js +0 -3
  812. package/dist/organizations.client-39196bef.mjs +0 -3041
  813. package/dist/organizations.client-43816e25.mjs +0 -3018
  814. package/dist/organizations.client-48568171.mjs +0 -3017
  815. package/dist/organizations.client-49eaeca6.mjs +0 -3017
  816. package/dist/organizations.client-52d2951c.mjs +0 -3017
  817. package/dist/organizations.client-5548024c.js +0 -3
  818. package/dist/organizations.client-63b476ff.mjs +0 -2996
  819. package/dist/organizations.client-6947e530.js +0 -3
  820. package/dist/organizations.client-696eacbb.js +0 -3
  821. package/dist/organizations.client-6a69b54a.js +0 -3
  822. package/dist/organizations.client-6f1f8b73.mjs +0 -3017
  823. package/dist/organizations.client-6fc91683.mjs +0 -3072
  824. package/dist/organizations.client-723ebb3b.js +0 -3
  825. package/dist/organizations.client-76c3660a.mjs +0 -3072
  826. package/dist/organizations.client-7e51b4a8.js +0 -3
  827. package/dist/organizations.client-85a2ae66.js +0 -3
  828. package/dist/organizations.client-88d41199.mjs +0 -3038
  829. package/dist/organizations.client-8aa34e80.mjs +0 -3017
  830. package/dist/organizations.client-91e84d4f.mjs +0 -3022
  831. package/dist/organizations.client-976762d2.mjs +0 -3021
  832. package/dist/organizations.client-9e480f60.js +0 -3
  833. package/dist/organizations.client-b0878617.js +0 -3
  834. package/dist/organizations.client-b39db194.js +0 -3
  835. package/dist/organizations.client-b692a78a.mjs +0 -3018
  836. package/dist/organizations.client-bae43c7c.mjs +0 -3017
  837. package/dist/organizations.client-bdc9b044.js +0 -3
  838. package/dist/organizations.client-be1224a1.mjs +0 -3017
  839. package/dist/organizations.client-bf73e73d.mjs +0 -3017
  840. package/dist/organizations.client-c288ff44.mjs +0 -3072
  841. package/dist/organizations.client-c6fd9351.js +0 -3
  842. package/dist/organizations.client-c7844bc2.mjs +0 -3038
  843. package/dist/organizations.client-cdbaf6aa.mjs +0 -3017
  844. package/dist/organizations.client-d0cae5f4.mjs +0 -3017
  845. package/dist/organizations.client-d21a22ec.js +0 -3
  846. package/dist/organizations.client-d47f0b3f.js +0 -3
  847. package/dist/organizations.client-ddbf8809.js +0 -3
  848. package/dist/organizations.client-df5e8a6f.mjs +0 -3020
  849. package/dist/organizations.client-f4dff584.mjs +0 -3017
  850. package/dist/organizations.client-fa3b0839.mjs +0 -3017
  851. package/dist/products-7960bbd4.js +0 -1
  852. package/dist/products-7e4253eb.js +0 -1
  853. package/dist/products-bf5783aa.mjs +0 -108
  854. package/dist/states.validation-02ba0aee.js +0 -1
  855. package/dist/states.validation-03f7cd49.js +0 -1
  856. package/dist/states.validation-50e3a5a0.mjs +0 -13
  857. package/dist/states.validation-766a62a6.mjs +0 -13
  858. package/dist/states.validation-92231934.js +0 -1
  859. package/dist/states.validation-e5f4fa3a.mjs +0 -13
  860. package/dist/vue-draggable-next.esm-bundler-80731ae0.js +0 -10
  861. package/dist/vuex.esm-bundler-e8cf3cd2.js +0 -5
@@ -1,3 +1,3 @@
1
- "use strict";const e=require("vue"),g=require("vue-router"),pe=require("vue-i18n"),f=require("./globals-928eb13c.js");require("./Breadcrumbs.vue_vue_type_style_index_0_lang-0ea8fbf8.js");const te=require("./Tab-2c1e4224.js");require("./MenuItem-f35cad93.js");const me=require("./Feed-6ca0541a.js"),he=require("./Feed-5a359bb7.js");require("./Tab.vue_vue_type_style_index_0_lang-0ea8fbf8.js");const y=require("./_plugin-vue_export-helper-f246444f.js"),R=require("./index-b41aac19.js"),E=require("./auth-df5a20c6.js"),U=require("./Dropdown-f2564c92.js"),oe=require("./CardOrganization-22beb83d.js"),_e=require("./IconEdit-c0469b45.js"),K=require("./ButtonToggleMembership-738720bd.js"),ge=require("./Socials-43293869.js"),h=require("./organizations-d12c42b6.js"),P=require("./memberships-393765d8.js"),V=require("./Checkbox-76f09248.js"),F=require("./categories-4327a81c.js"),fe=require("./Feed-98b47c6f.js"),be=require("./CardProduct-92affca1.js"),Y=require("./products-7e4253eb.js");require("./Field.vue_vue_type_style_index_0_scoped_f4a29b0d_lang-0ea8fbf8.js");const ye=require("./Select-3ca5ab39.js");require("./Button.vue_vue_type_style_index_0_lang-0ea8fbf8.js");require("./inputs.validation-d7cef32b.js");const ve=require("./BlockTags-8cddaef7.js"),w=require("./Field-e2a43424.js"),ke=require("./SelectMulti-c25765cf.js"),ne=require("./UploadImage-0f488170.js"),T=require("./Button-7643c9aa.js");require("./Popup.vue_vue_type_style_index_0_lang-0ea8fbf8.js");require("./Organizations-ed6d36d6.js");require("./reports-270f69df.js");require("./Publics-a31d7fe7.js");const z=require("./auth.validation-80b133df.js"),we={class:"mn-big radius-medium pd-big bg-white"},$e={class:"mn-regular"},Ee={class:"mn-small t-transp p-medium"},q={__name:"EmptyState",props:{title:{type:String,default:"У вас еще нет организации"},description:{type:String,default:"Для использования сервиса, вам необходимо добавить вашу организацию."},action:{type:String,default:"Создать организацию"},callback:{type:Function,default:()=>{}}},setup(t){return(o,n)=>(e.openBlock(),e.createElementBlock("section",we,[e.createElementVNode("h3",$e,e.toDisplayString(t.title),1),e.createElementVNode("p",Ee,e.toDisplayString(t.description),1),e.createElementVNode("button",{onClick:n[0]||(n[0]=(...s)=>t.callback&&t.callback(...s)),class:"t-white bg-second w-100 button"},e.toDisplayString(t.action),1)]))}};const Ve={key:0,class:"spoiler"},C={__name:"Spoiler",props:{status:{type:Boolean,default:!1}},setup(t){const o=t,n=e.ref(!1);return o.status&&(n.value=o.status),(s,l)=>(e.openBlock(),e.createElementBlock("div",null,[e.createElementVNode("div",{onClick:l[0]||(l[0]=a=>n.value=!n.value),class:"flex-v-center flex-nowrap flex"},[e.renderSlot(s.$slots,"header")]),e.createVNode(e.Transition,{name:"collapse"},{default:e.withCtx(()=>[n.value?(e.openBlock(),e.createElementBlock("div",Ve,[e.renderSlot(s.$slots,"content")])):e.createCommentVNode("",!0)]),_:3})]))}};const Be={__name:"Map",props:{location:Object},setup(t){const o=t;let n=e.ref(null),s=null,l=null;return e.onMounted(async()=>{s=new google.maps.Map(n.value,{zoom:13,center:{lat:o.location.lat,lng:o.location.lng}}),l=new google.maps.Marker({position:{lat:o.location.lat,lng:o.location.lng},map:s})}),e.watch(()=>o.location,()=>{s&&l&&(l.setPosition(new google.maps.LatLng(o.location.lat,o.location.lng)),s.setCenter(new google.maps.LatLng(o.location.lat,o.location.lng)))},{deep:!0}),(a,d)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"gmap",ref:n,class:"gmap"},null,512))}},Ce=y._export_sfc(Be,[["__scopeId","data-v-c194b4a5"]]);const Ne={class:"pd-small flex-nowrap flex"},xe={class:"user-card__info"},Se={class:"user-card__name"},Le={class:"user-card__position"},Oe={__name:"SpotSub",props:{department:{type:Object,required:!0}},setup(t){return(o,n)=>(e.openBlock(),e.createElementBlock("div",Ne,[e.createElementVNode("div",xe,[e.createElementVNode("p",Se,e.toDisplayString(t.department.name?t.department.name:"Безымянный"),1),e.createElementVNode("p",Le,e.toDisplayString(t.department.members?t.department.members.length:"0")+" человек",1)])]))}},ze=y._export_sfc(Oe,[["__scopeId","data-v-58a64d57"]]);const De={class:"pd-small flex-nowrap flex"},Pe={class:"user-card__info"},Me={class:"user-card__name"},Ae={class:"t-transp"},Fe={__name:"User",props:{user:{type:Object,required:!0},position:{type:String,required:!0}},setup(t){return(o,n)=>(e.openBlock(),e.createElementBlock("div",De,[e.createElementVNode("div",Pe,[e.createElementVNode("p",Me,e.toDisplayString(t.user.name?t.user.name:"Безымянный"),1),e.createElementVNode("p",Ae,e.toDisplayString(t.position),1)])]))}},I=y._export_sfc(Fe,[["__scopeId","data-v-a27accf5"]]);const M=t=>(e.pushScopeId("data-v-6ef388c4"),t=t(),e.popScopeId(),t),Te={class:"radius-big o-hidden cols-2-1_3"},qe={class:"pd-medium w-100"},Ie=M(()=>e.createElementVNode("path",{d:"M515.693 9.52082C510.095 3.91669 502.49 0.765625 494.563 0.765625C486.635 0.765625 479.036 3.91669 473.432 9.52082L48.7255 434.307C44.8244 438.214 42.0848 443.125 40.8088 448.496L0.939444 615.069C-1.47202 625.168 1.528 635.788 8.86652 643.132C16.2103 650.47 26.8305 653.47 36.9292 651.059L203.516 611.261H203.511C208.88 609.985 213.792 607.246 217.699 603.35L642.485 178.496C648.089 172.892 651.241 165.293 651.241 157.366C651.241 149.439 648.089 141.835 642.485 136.235L515.693 9.52082ZM113.76 453.708L388.307 179.161L472.828 263.682L198.281 538.229L113.76 453.708ZM87.1041 511.5L140.416 564.812L70.3014 581.614L87.1041 511.5ZM515.091 221.793L430.195 136.897L494.184 72.9075L579.08 157.429L515.091 221.793Z",fill:"black"},null,-1)),Ue=[Ie],Re=["innerHTML"],je=["innerHTML"],He={class:"pd-small flex-v-center flex-nowrap flex"},Ze=M(()=>e.createElementVNode("h5",{class:"w-100"},"Contacts ",-1)),Ke={class:"mn-r-small"},Ye=M(()=>e.createElementVNode("svg",{width:"14",height:"9",viewBox:"0 0 14 9",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[e.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M12.4697 0.469727L13.5304 1.53039L7.00006 8.06072L0.469727 1.53039L1.53039 0.469727L7.00006 5.9394L12.4697 0.469727Z",fill:"#8A8A8A"})],-1)),Ge={key:0},We={class:"pd-small flex-v-center flex-nowrap flex"},Je=M(()=>e.createElementVNode("h5",{class:"w-100"},"Working Hours ",-1)),Qe={class:"mn-r-small"},Xe=M(()=>e.createElementVNode("svg",{width:"14",height:"9",viewBox:"0 0 14 9",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[e.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M12.4697 0.469727L13.5304 1.53039L7.00006 8.06072L0.469727 1.53039L1.53039 0.469727L7.00006 5.9394L12.4697 0.469727Z",fill:"#8A8A8A"})],-1)),et={key:0},tt={__name:"CardSpot",props:{spot:Object,organization:Object},setup(t){const o=t;return(n,s)=>(e.openBlock(),e.createElementBlock("div",Te,[e.createVNode(Ce,{location:{lat:t.spot.location.coordinates[1],lng:t.spot.location.coordinates[0]},class:""},null,8,["location"]),e.createElementVNode("div",qe,[(e.openBlock(),e.createElementBlock("svg",{onClick:s[0]||(s[0]=l=>n.$router.push(`/organizations/${o.organization._id}/spots/${t.spot._id}/edit`)),class:"i-regular pos-absolute pos-r-0 pos-t-0 t-transp",width:"652",height:"652",viewBox:"0 0 652 652",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Ue)),e.createElementVNode("h3",{onClick:s[1]||(s[1]=l=>n.$router.push(`/app/organization/${o.organization._id}/spots/${t.spot._id}`)),class:"mn-small w-100",innerHTML:t.spot.profile.name},null,8,Re),e.createElementVNode("p",{onClick:s[2]||(s[2]=l=>n.$router.push(`/app/organization/${o.organization._id}/spots/${t.spot._id}`)),class:"mn-small p-big w-100",innerHTML:t.spot.address},null,8,je),e.createVNode(C,{class:"radius-small o-hidden br-1px br-solid br-grey mn-thin"},{header:e.withCtx(()=>[e.createElementVNode("div",He,[Ze,e.createElementVNode("p",Ke,e.toDisplayString(t.spot.members.length)+" человек",1),Ye])]),content:e.withCtx(()=>[e.createElementVNode("ul",null,[t.spot.members.length<1?(e.openBlock(),e.createElementBlock("li",Ge,"В отделе еще нет участников")):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.spot.members,(l,a)=>(e.openBlock(),e.createBlock(I,{class:"br-b br-solid br-grey",key:a,user:l.user,position:l.position,onClick:d=>n.$router.push(`/app/profile/${l.user._id}`)},null,8,["user","position","onClick"]))),128))])]),_:1}),e.createVNode(C,{class:"radius-small o-hidden br-1px br-solid br-grey mn-thin"},{header:e.withCtx(()=>[e.createElementVNode("div",We,[Je,e.createElementVNode("p",Qe,e.toDisplayString(t.spot.subspots?t.spot.subspots.length:0)+" отделов",1),Xe])]),content:e.withCtx(()=>[e.createElementVNode("ul",null,[t.spot.subspots.length<1?(e.openBlock(),e.createElementBlock("li",et,"В отделе еще нет подотделов")):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.spot.subspots,(l,a)=>(e.openBlock(),e.createBlock(ze,{onClick:d=>n.$router.push(`/app/organization/spots/${l._id}`),key:a,class:"br-b br-solid br-grey",spot:l},null,8,["onClick","spot"]))),128))])]),_:1})])]))}},ot=y._export_sfc(tt,[["__scopeId","data-v-6ef388c4"]]),S=R.axios.create({baseURL:process.env.API_URL,withCredentials:!0});S.defaults.withCredentials=!0;const p=e.reactive({spots:[],spot:{organization:"",profile:{photo:"",name:"",description:"",categories:[]},address:"",location:{lat:null,lng:null},worktime:[],delivery:[],payment:[],members:[],subspots:[]},error:null}),B={async readOne(t){await S.get(`/api/spots/get/${t}`).then(o=>{p.spot=o.data,p.error=null}).catch(o=>{f.setError(o)})},async read(t){await S.get(`/api/spots/${t}`).then(o=>{console.log("Response:",o),p.spots=o.data,p.error=null}).catch(o=>{f.setError(o)})},async create(t,o){await S.post(`/api/spots/${t}/create`,o).then(n=>{p.error=null,p.spot=n.data}).catch(n=>{f.setError(n)})},async update(t,o){await S.post(`/api/spots/${t}/update`,o).then(()=>{p.error=null}).catch(n=>{f.setError(n)})},async delete(t,o){await S.delete(`/api/spots/${t}/delete`,{data:{_id:o}}).then(()=>{p.error=null}).catch(n=>{f.setError(n)})}};e.watch(p,(t,o)=>{});const nt={__name:"Feed",props:{organization:Object,units:Array,memberships:Array},async setup(t){let o,n;const s=t;e.ref("spots"),[o,n]=e.withAsyncContext(()=>B.read(s.organization._id)),await o,n();const l=e.computed(()=>{const a=p.spots,d=a.flatMap(i=>i.subspots.map(r=>r._id));return a.filter(i=>!d.includes(i._id))});return(a,d)=>(e.openBlock(),e.createBlock(e.Transition,{name:"slide-fade"},{default:e.withCtx(()=>[e.createElementVNode("div",null,[e.unref(l).length<1?(e.openBlock(),e.createBlock(q,{key:0,title:"You don't have any spots yet.",description:"Add spots to your hub.",action:"Add spot",callback:()=>a.$router.push(`/spots/${s.organization._id}/spots/create`)},null,8,["callback"])):e.createCommentVNode("",!0),e.createElementVNode("div",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(l),(i,r)=>(e.openBlock(),e.createBlock(ot,{key:r,spot:i,organization:t.organization,class:"radius-big bg-grey mn-thin"},null,8,["spot","organization"]))),128)),e.unref(l).length>0&&E.state.user._id===t.organization.owner?(e.openBlock(),e.createElementBlock("button",{key:0,onClick:d[0]||(d[0]=i=>a.$router.push(`/spots/${s.organization._id}/spots/create`)),class:"mn-thin button w-100"}," Add spot ")):e.createCommentVNode("",!0)])])]),_:1}))}},at={class:"mn-small w-100"},st=["href"],lt=e.createElementVNode("span",{class:"t-semi uppercase"},"Website",-1),rt=[lt],it=["href"],ct=e.createElementVNode("span",{class:"t-semi uppercase"},"Phone",-1),dt=[ct],ut=["href"],pt=e.createElementVNode("span",{class:"t-semi uppercase"},"Email",-1),mt=[pt],ht=["href"],_t=e.createElementVNode("span",{class:"t-semi uppercase"},"Address",-1),gt=[_t],ft={__name:"Contacts",props:{website:String,phone:String,email:String,address:String},setup(t){const o=t,n=e.computed(()=>o.website?!o.website.startsWith("http://")&&!o.website.startsWith("https://")?`http://${o.website}`:o.website:null),s=e.computed(()=>o.address?encodeURIComponent(o.address):null);return(l,a)=>(e.openBlock(),e.createElementBlock("div",at,[e.unref(n)?(e.openBlock(),e.createElementBlock("a",{key:0,href:e.unref(n),target:"_blank",class:"w-100 br-2px br-solid br-grey radius-small pd-small flex-v-center flex-nowrap flex"},rt,8,st)):e.createCommentVNode("",!0),o.phone?(e.openBlock(),e.createElementBlock("a",{key:1,href:`tel:${o.phone}`,class:"w-100 br-2px br-solid br-grey radius-small pd-small flex-v-center flex-nowrap flex"},dt,8,it)):e.createCommentVNode("",!0),o.email?(e.openBlock(),e.createElementBlock("a",{key:2,href:`mailto:${o.email}`,target:"_blank",class:"w-100 br-2px br-solid br-grey radius-small pd-small flex-v-center flex-nowrap flex"},mt,8,ut)):e.createCommentVNode("",!0),e.unref(s)?(e.openBlock(),e.createElementBlock("a",{key:3,href:`https://www.google.com/maps/search/?api=1&query=${e.unref(s)}`,target:"_blank",class:"w-100 br-2px br-solid br-grey radius-small pd-small flex-v-center flex-nowrap flex"},gt,8,ht)):e.createCommentVNode("",!0)]))}},bt={class:"w-100 mn-small star-container flex-v-center flex"},yt={class:"p-big t-semi mn-r-small"},vt=e.createElementVNode("path",{fill:"#00FF88",d:"M62.2406 5.85971L75.413 32.6098L105.203 36.8654C110.472 37.676 112.498 44.3636 108.648 48.0113L87.1668 68.8844L92.2331 98.2689C93.2464 103.741 87.5721 107.591 82.9111 105.159L56.3637 91.3788L29.8163 105.159C25.1553 107.794 19.4811 103.741 20.4944 98.4716L25.5607 68.8844L4.07956 48.0113C0.22917 44.3636 2.25569 37.676 7.52464 36.8654L37.3145 32.6098L50.4868 5.85971C52.9186 0.996063 59.8088 0.996063 62.2406 5.85971Z"},null,-1),kt=[vt],wt={class:""},$t={__name:"Rating",props:{rating:{type:Number,required:!0},amount:{type:Number,required:!0}},setup(t){return(o,n)=>(e.openBlock(),e.createElementBlock("section",null,[e.createElementVNode("div",bt,[e.createElementVNode("span",yt,e.toDisplayString(t.rating),1),(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(5,s=>e.createElementVNode("svg",{class:e.normalizeClass(["i-semi mn-r-small",{"t-transp":s>t.rating}]),width:"113",height:"108",viewBox:"0 0 113 108",fill:"none",xmlns:"http://www.w3.org/2000/svg"},kt,2)),64))]),e.createElementVNode("p",wt,"Based on "+e.toDisplayString(t.amount)+" reviews",1)]))}},Et={class:"t-center flex-center flex-column flex pd-medium radius-big bg-grey"},Vt={class:"bg-black pd-thin radius-small"},Bt=e.createElementVNode("button",{class:"w-100 bg-black br-solid br-1px br-white-transp-20 t-white button-small button"}," Report ",-1),Ct=["src"],Nt={class:"mn-thin"},xt={class:"mn-medium p-big"},St={class:"flex-center flex-wrap gap-thin flex mn-semi"},Lt={class:"pd-thin radius-small t-semi uppercase t-black bg-main p-medium"},Ot={class:"t-semi mn-small"},zt={key:5,class:"mn-t-small mn-thin"},ae={__name:"DetailsTab",props:{organization:Object,user:Object},setup(t){const o=g.useRoute(),n=({membership:s,status:l,target:a},d,i)=>{P.mutations.handleMembershipUpdate(h.state.current,s,l,a,d,i)};return(s,l)=>(e.openBlock(),e.createBlock(e.Transition,{name:"slide-fade"},{default:e.withCtx(()=>[e.createElementVNode("section",Et,[t.user._id!==t.organization.owner?(e.openBlock(),e.createBlock(U.Dropdown,{key:0,label:"...",align:"right",class:"cursor-pointer pos-absolute pos-r-0 pos-t-0 pd-thin radius-extra"},{default:e.withCtx(()=>[e.createElementVNode("section",Vt,[e.createVNode(U._sfc_main,{user:t.user._id,type:"organization",target:t.organization._id,text:"Report",class:"w-100"},{default:e.withCtx(()=>[Bt]),_:1},8,["user","target"]),t.user._id&&t.user._id!==t.organization.owner?(e.openBlock(),e.createBlock(K._sfc_main,{key:0,user:t.user._id,type:"organization",role:"blocked",target:t.organization._id,status:t.organization.isBlocked,text:{create:"Block",remove:"Unblock"},onUpdateMembership:l[0]||(l[0]=a=>n(a,"isBlocked")),class:"t-white mn-t-thin bg-red"},null,8,["user","target","status"])):e.createCommentVNode("",!0)])]),_:1},8,["label"])):e.createCommentVNode("",!0),t.user._id===t.organization.owner?(e.openBlock(),e.createBlock(_e.IconEdit,{key:1,onClick:l[1]||(l[1]=a=>s.$router.push({name:"Organization Edit",params:{_id:t.organization._id}})),class:"pos-absolute pos-t-regular pos-r-regular i-regular t-transp"})):e.createCommentVNode("",!0),t.organization.profile.photo?(e.openBlock(),e.createElementBlock("img",{key:2,src:(s.FILE_SERVER_URL||"")+t.organization.profile.photo,class:"radius-big bg-grey flex-center flex mn-small i-extra"},null,8,Ct)):(e.openBlock(),e.createBlock(U.PlaceholderUserpic,{key:3,class:"radius-medium mn-small i-extra"})),e.createElementVNode("h1",Nt,e.toDisplayString(t.organization.profile.name),1),e.createElementVNode("p",xt,[e.createVNode(oe._sfc_main$1,{text:t.organization.profile.description?t.organization.profile.description:"",maxLen:240},null,8,["text"])]),e.createElementVNode("div",St,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.organization.profile.tags,a=>(e.openBlock(),e.createElementBlock("span",Lt,e.toDisplayString(a),1))),256))]),e.createElementVNode("p",Ot," 👨‍👨‍👧‍👧 "+e.toDisplayString(t.organization.numberOfSubscribers)+" followers ",1),t.user._id&&e.unref(o).params._id&&e.unref(o).params._id!==t.user._id&&t.organization.owner!==t.user._id?(e.openBlock(),e.createBlock(K._sfc_main,{key:4,user:t.user._id,type:"organization",role:"subscriber",target:t.organization._id,status:t.organization.isSubscriber,text:{create:"Follow",remove:"Unfollow"},onUpdateMembership:l[2]||(l[2]=a=>n(a,"isSubscriber","numberOfSubscribers")),class:"w-min mn-medium mn-r-auto mn-l-auto"},null,8,["user","target","status"])):e.createCommentVNode("",!0),Object.values(t.organization.socials).some(a=>a)?(e.openBlock(),e.createElementBlock("h4",zt," Find us in socials ")):e.createCommentVNode("",!0),e.createVNode(ge._sfc_main,{telegram:t.organization.socials.telegram,facebook:t.organization.socials.facebook,instagram:t.organization.socials.instagram,twitter:t.organization.socials.twitter},null,8,["telegram","facebook","instagram","twitter"])])]),_:1}))}};const Dt={class:"pd-medium bg-grey radius-big"},Pt={class:"mn-small"},Mt=e.createElementVNode("hr",{class:"mn-small"},null,-1),At={class:"mn-r-auto t-medium p-big"},Ft=e.createElementVNode("hr",{class:"mn-small"},null,-1),Tt={class:"mn-r-auto t-medium p-big"},qt=e.createElementVNode("hr",{class:"mn-small"},null,-1),It=e.createElementVNode("p",{class:"mn-r-auto t-medium p-big"},"Delivery",-1),Ut=e.createElementVNode("hr",{class:"mn-semi"},null,-1),Rt={__name:"FilterProducts",props:{selectedFilters:Object,prices:{type:Array,default:()=>[{label:"Under $5",value:{min:0,max:5}},{label:"$5 to $10",value:{min:5,max:10}},{label:"$10 to $20",value:{min:10,max:20}},{label:"$20 and above",value:{min:20,max:1/0}}]},deliveryOptions:{type:Array,default:()=>[{label:"Pickup",value:{min:0,max:25}},{label:"Courier",value:{min:25,max:50}},{label:"Post",value:{min:50,max:100}}]}},emits:["updateFilters","resetFilters"],async setup(t,{emit:o}){let n,s;[n,s]=e.withAsyncContext(()=>F.actions.fetchCategories()),await n,s();let l=e.ref({categories:[],prices:[],delivery:[],extra:[]});const a=(c,u)=>{o("updateFilters",{filterType:c,value:u})},d=()=>{o("resetFilters")},i={locale:"en",messages:{en:{categoriesTitle:"Category",categories:[],filters:{title:"Filters",price:{title:"Price",from:"From",to:"To"},filters:[],reset:"Reset Filters"}},ru:{categoriesTitle:"Категория",categories:[],filters:{title:"Фильтры",price:{title:"Цена",from:"От",to:"До"},filters:[],reset:"Сбросить фильтры"}}}};F.state.all.forEach(c=>{c.localization.forEach(u=>{i.messages[u.locale].categories.push(u.text)})});const{t:r}=pe.useI18n(i);return(c,u)=>(e.openBlock(),e.createElementBlock("div",Dt,[e.createElementVNode("h3",Pt,e.toDisplayString(e.unref(r)("filters.title")),1),Mt,e.createVNode(C,{class:"radius-small o-hidden br-1px br-solid br-grey mn-small",status:!0},{header:e.withCtx(()=>[e.createElementVNode("p",At,e.toDisplayString(e.unref(r)("categoriesTitle")),1)]),content:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(F.state.all,(m,_)=>(e.openBlock(),e.createBlock(V.Checkbox,{key:_,label:m.name,value:m.url,class:"w-100 mn-t-small mn-small bg-white radius-small pd-small",radio:e.unref(l).categories,onChange:k=>a("categories",m.url)},null,8,["label","value","radio","onChange"]))),128))]),_:1}),Ft,e.createVNode(C,{class:"radius-small o-hidden br-1px br-solid br-grey mn-small",status:!1},{header:e.withCtx(()=>[e.createElementVNode("p",Tt,e.toDisplayString(e.unref(r)("filters.price.title")),1)]),content:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.prices,(m,_)=>(e.openBlock(),e.createBlock(V.Checkbox,{key:_,label:m.label,value:m.value,class:"w-100 mn-t-small bg-white radius-small pd-small",radio:e.unref(l).prices,onChange:k=>a("prices",m.value)},null,8,["label","value","radio","onChange"]))),128))]),_:1}),qt,e.createVNode(C,{class:"radius-small o-hidden br-1px br-solid br-grey mn-small",status:!1},{header:e.withCtx(()=>[It]),content:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.deliveryOptions,(m,_)=>(e.openBlock(),e.createBlock(V.Checkbox,{key:_,label:m.label,value:m.value,class:"w-100 mn-t-small bg-white radius-small pd-small",radio:e.unref(l).delivery,onChange:k=>a("delivery",m.value)},null,8,["label","value","radio","onChange"]))),128))]),_:1}),Ut,e.createElementVNode("button",{onClick:d,class:"bg-main w-100 button"},e.toDisplayString(e.unref(r)("filters.reset")),1)]))}},jt={class:"cols-2-1_3 gap-thin pd-thin"},Ht={__name:"Products",setup(t){const o=g.useRoute();return g.useRouter(),(n,s)=>(e.openBlock(),e.createElementBlock("div",jt,[e.createVNode(Rt),e.createVNode(fe._sfc_main,{states:{empty:{title:"No Products Found",description:"Currently, there are no products available."}},store:{read:l=>Y.actions.read(l),state:Y.state},options:{limit:15,organization:e.unref(o).params._id}},{default:e.withCtx(({items:l})=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l,a=>(e.openBlock(),e.createBlock(be._sfc_main,{key:a._id,product:a,onClick:d=>n.$router.push({name:"Product Organization",params:{_id:e.unref(o).params._id,product:a._id}})},null,8,["product","onClick"]))),128))]),_:1},8,["states","store","options"])]))}};const Zt={class:"pd-small flex-nowrap flex"},Kt={class:"user-card__info"},Yt={class:"user-card__name"},Gt={class:"user-card__position"},Wt={__name:"DepartmentSub",props:{department:{type:Object,required:!0}},setup(t){return(o,n)=>(e.openBlock(),e.createElementBlock("div",Zt,[e.createElementVNode("div",Kt,[e.createElementVNode("p",Yt,e.toDisplayString(t.department.name?t.department.name:"Безымянный"),1),e.createElementVNode("p",Gt,e.toDisplayString(t.department.members?t.department.members.length:"0")+" человек",1)])]))}},j=y._export_sfc(Wt,[["__scopeId","data-v-d65b1483"]]);const A=t=>(e.pushScopeId("data-v-02b80617"),t=t(),e.popScopeId(),t),Jt={class:"radius-big o-hidden cols-2-1_3"},Qt={class:"pd-medium w-100"},Xt=A(()=>e.createElementVNode("path",{d:"M515.693 9.52082C510.095 3.91669 502.49 0.765625 494.563 0.765625C486.635 0.765625 479.036 3.91669 473.432 9.52082L48.7255 434.307C44.8244 438.214 42.0848 443.125 40.8088 448.496L0.939444 615.069C-1.47202 625.168 1.528 635.788 8.86652 643.132C16.2103 650.47 26.8305 653.47 36.9292 651.059L203.516 611.261H203.511C208.88 609.985 213.792 607.246 217.699 603.35L642.485 178.496C648.089 172.892 651.241 165.293 651.241 157.366C651.241 149.439 648.089 141.835 642.485 136.235L515.693 9.52082ZM113.76 453.708L388.307 179.161L472.828 263.682L198.281 538.229L113.76 453.708ZM87.1041 511.5L140.416 564.812L70.3014 581.614L87.1041 511.5ZM515.091 221.793L430.195 136.897L494.184 72.9075L579.08 157.429L515.091 221.793Z",fill:"black"},null,-1)),eo=[Xt],to=["innerHTML"],oo={class:"pd-small flex-v-center flex-nowrap flex"},no=A(()=>e.createElementVNode("h5",{class:"w-100"},"Contacts ",-1)),ao={class:"mn-r-small"},so=A(()=>e.createElementVNode("svg",{width:"14",height:"9",viewBox:"0 0 14 9",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[e.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M12.4697 0.469727L13.5304 1.53039L7.00006 8.06072L0.469727 1.53039L1.53039 0.469727L7.00006 5.9394L12.4697 0.469727Z",fill:"#8A8A8A"})],-1)),lo={key:0},ro={class:"pd-small flex-v-center flex-nowrap flex"},io=A(()=>e.createElementVNode("h5",{class:"w-100"},"Working Hours ",-1)),co={class:"mn-r-small"},uo=A(()=>e.createElementVNode("svg",{width:"14",height:"9",viewBox:"0 0 14 9",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[e.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M12.4697 0.469727L13.5304 1.53039L7.00006 8.06072L0.469727 1.53039L1.53039 0.469727L7.00006 5.9394L12.4697 0.469727Z",fill:"#8A8A8A"})],-1)),po={key:0},mo={__name:"CardDepartment",props:{department:Object,organization:Object},setup(t){const o=t;return(n,s)=>(e.openBlock(),e.createElementBlock("div",Jt,[e.createElementVNode("div",Qt,[(e.openBlock(),e.createElementBlock("svg",{onClick:s[0]||(s[0]=l=>n.$router.push(`/app/organization/${o.organization._id}/departments/${t.department._id}/edit`)),class:"i-regular pos-absolute pos-r-0 pos-t-0 t-transp",width:"652",height:"652",viewBox:"0 0 652 652",fill:"none",xmlns:"http://www.w3.org/2000/svg"},eo)),e.createElementVNode("h3",{onClick:s[1]||(s[1]=l=>n.$router.push(`/app/organization/${o.organization._id}/departments/${t.department._id}`)),class:"mn-small w-100",innerHTML:t.department.profile.name},null,8,to),e.createVNode(C,{class:"radius-small o-hidden br-1px br-solid br-grey mn-thin"},{header:e.withCtx(()=>[e.createElementVNode("div",oo,[no,e.createElementVNode("p",ao,e.toDisplayString(t.department.members.length)+" человек",1),so])]),content:e.withCtx(()=>[e.createElementVNode("ul",null,[t.department.members.length<1?(e.openBlock(),e.createElementBlock("li",lo,"В отделе еще нет участников")):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.department.members,(l,a)=>(e.openBlock(),e.createBlock(I,{class:"br-b br-solid br-grey",key:a,user:l.user,position:l.position,onClick:d=>n.$router.push(`/app/profile/${l.user._id}`)},null,8,["user","position","onClick"]))),128))])]),_:1}),e.createVNode(C,{class:"radius-small o-hidden br-1px br-solid br-grey mn-thin"},{header:e.withCtx(()=>[e.createElementVNode("div",ro,[io,e.createElementVNode("p",co,e.toDisplayString(t.department.subdepartments?t.department.subdepartments.length:0)+" отделов",1),uo])]),content:e.withCtx(()=>[e.createElementVNode("ul",null,[t.department.subdepartments.length<1?(e.openBlock(),e.createElementBlock("li",po,"В отделе еще нет подотделов")):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.department.subdepartments,(l,a)=>(e.openBlock(),e.createBlock(j,{onClick:d=>n.$router.push(`/app/organization/departments/${l._id}`),key:a,class:"br-b br-solid br-grey",department:l},null,8,["onClick","department"]))),128))])]),_:1})])]))}},se=y._export_sfc(mo,[["__scopeId","data-v-02b80617"]]),L=R.axios.create({baseURL:process.env.API_URL,withCredentials:!0});L.defaults.withCredentials=!0;const v=e.reactive({departments:[],department:{organization:"",profile:{photo:"",name:"",description:"",categories:[]},address:"",location:{lat:null,lng:null},worktime:[],delivery:[],payment:[],members:[],subdepartments:[]},error:null}),le={async readOne(t){await L.get(`/api/departments/get/${t}`).then(o=>{v.department=o.data,v.error=null}).catch(o=>{f.setError(o)})},async read(t){await L.get(`/api/departments/${t}`).then(o=>{console.log("Response:",o),v.departments=o.data,v.error=null}).catch(o=>{f.setError(o)})},async create(t,o){await L.post(`/api/departments/${t}/create`,o).then(n=>{v.error=null,v.department=n.data}).catch(n=>{f.setError(n)})},async update(t,o){await L.post(`/api/departments/${t}/update`,o).then(()=>{v.error=null}).catch(n=>{f.setError(n)})},async delete(t,o){await L.delete(`/api/departments/${t}/delete`,{data:{_id:o}}).then(()=>{v.error=null}).catch(n=>{f.setError(n)})}};e.watch(v,(t,o)=>{});const ho=Object.freeze(Object.defineProperty({__proto__:null,actions:le,state:v},Symbol.toStringTag,{value:"Module"})),_o={__name:"FeedDepartments",props:{organization:Object,units:Array,memberships:Array},async setup(t){let o,n;const s=t;e.ref("departments"),[o,n]=e.withAsyncContext(()=>le.read(s.organization._id)),await o,n();const l=e.computed(()=>{const a=v.departments,d=a.flatMap(i=>i.subdepartments.map(r=>r._id));return a.filter(i=>!d.includes(i._id))});return(a,d)=>(e.openBlock(),e.createBlock(e.Transition,{name:"slide-fade"},{default:e.withCtx(()=>[e.createElementVNode("div",null,[e.unref(l).length<1?(e.openBlock(),e.createBlock(q,{key:0,title:"You don't have any spots yet.",description:"Add spots to your hub.",action:"Add spot",callback:()=>a.$router.push(`/organization/${s.organization._id}/departments/create`)},null,8,["callback"])):e.createCommentVNode("",!0),e.createElementVNode("div",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(l),(i,r)=>(e.openBlock(),e.createBlock(se,{key:r,department:i,organization:t.organization,class:"radius-big bg-grey mn-thin"},null,8,["department","organization"]))),128)),e.unref(l).length>0&&E.state.user._id===t.organization.owner?(e.openBlock(),e.createElementBlock("button",{key:0,onClick:d[0]||(d[0]=i=>a.$router.push(`/organization/${s.organization._id}/departments/create`)),class:"mn-thin button w-100"}," Add spot ")):e.createCommentVNode("",!0)])])]),_:1}))}},O=R.axios.create({baseURL:process.env.API_URL,withCredentials:!0});O.defaults.withCredentials=!0;const $=e.reactive({invites:[],invite:null,error:null}),H={async read(t){await O.get(`/api/invites/${t}`).then(o=>{$.invites=o.data,$.error=null}).catch(o=>{f.setError(o)})},async readOne(t){await O.get(`/api/invites/get/${t}`).then(o=>{$.invite=o.data,E.state.user.phone=o.data.invitedPhone,E.state.user.email=o.data.invitedEmail}).catch(o=>{f.setError(o)})},async create(t,o){await O.post(`/api/invites/${t}/create`,o).then(()=>{$.error=null}).catch(n=>{f.setError(n)})},async update(t,o){await O.put(`/api/invites/${t}/update`,o).then(()=>{$.error=null}).catch(n=>{f.setError(n)})},async delete(t){await O.delete(`/api/invites/${t}/delete`).then(()=>{$.error=null}).catch(o=>{f.setError(o)})}};e.watch($,(t,o)=>{});const go=Object.freeze(Object.defineProperty({__proto__:null,actions:H,state:$},Symbol.toStringTag,{value:"Module"})),fo={class:"mn-medium radius-medium pd-semi bg-white"},bo=e.createElementVNode("h3",{class:"mn-medium"},"Добавить участников",-1),yo=e.createElementVNode("p",{class:"mn-small t-transp p-medium"},"Укажите email или телефон, чтобы отправить ссылку с приглашением:",-1),vo={class:"w-100 flex-nowrap flex"},ko={key:0,class:"mn-r-medium flex-v-center flex"},wo=["onClick"],$o=e.createElementVNode("p",{class:"t-blue mn-r-small"},"+ Добавить приглашение",-1),Eo=[$o],Vo=e.createElementVNode("span",null,"Отправить приглашения ",-1),re={__name:"MembersAdd",props:{organization:Object},emits:["send-invite"],setup(t,{emit:o}){const n=t,s=e.ref(null),l=e.ref([{contact:"",role:""}]);function a(){l.value.push({contact:"",role:""})}function d(c){l.value.splice(c,1)}async function i(c){await H.create(n.organization._id,l.value)}function r(){}return(c,u)=>(e.openBlock(),e.createElementBlock("div",null,[e.createElementVNode("section",fo,[bo,yo,(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.value,(m,_)=>(e.openBlock(),e.createElementBlock("div",{key:_,class:"br-1px br-solid br-grey flex radius-small mn-thin"},[e.createElementVNode("div",vo,[e.createVNode(w.Field,{field:m.contact,"onUpdate:field":k=>m.contact=k,placeholder:"Email или телефон",class:"w-100 bg-white",validation:s.value},null,8,["field","onUpdate:field","validation"]),_>0?(e.openBlock(),e.createElementBlock("div",ko,[e.createElementVNode("button",{onClick:k=>d(_),class:"button-small button"},"×",8,wo)])):e.createCommentVNode("",!0)]),e.createVNode(ye.Select,{options:[{name:"Директор",value:"director"},{name:"Менеджер",value:"manager"},{name:"Сотрудник",value:"member"}],prop:m,content:"role",placeholder:"Роль",size:"small",class:"w-80"},null,8,["prop"])]))),128)),e.createElementVNode("div",{onClick:a,class:"mn-small flex-v-center flex-nowrap flex"},Eo),e.createVNode(T._sfc_main,{submit:c.a=()=>i($.invites),callback:r,class:"mn-t-medium"},{default:e.withCtx(()=>[Vo]),_:1},8,["submit"])])]))}},Bo=Object.freeze(Object.defineProperty({__proto__:null,default:re},Symbol.toStringTag,{value:"Module"})),Co={class:"mn-big radius-medium bg-white"},No={key:0,class:"pd-semi"},xo={class:"br-grey br-1px br-solid radius-small flex-nowrap flex-v-center flex pd-medium"},So={class:"w-100 mn-r-small"},Lo={class:"t-transp"},Oo={key:0,class:"mn-l-medium flex-v-center flex"},zo=["onClick"],Do={key:1,class:"pd-semi"},Po={key:0},Mo={class:"br-grey br-1px br-solid radius-small mn-thin flex-nowrap flex-v-center flex pd-medium"},Ao={class:"w-100 mn-r-small"},Fo={class:"t-transp"},To={class:"mn-l-medium flex-v-center flex"},qo=["onClick"],Io={__name:"MembersList",props:{organization:Object,memberships:Array,invites:Array},emits:[["removeMember","removeInvite"]],setup(t,{emit:o}){const n=t,s=e.ref("members");function l(d,i){n.memberships.splice(d,1),o("removeMember",i)}function a(d,i){n.invites.splice(d,1),o("removeInvite",i)}return(d,i)=>(e.openBlock(),e.createElementBlock("section",Co,[e.createVNode(te._sfc_main,{selected:s.value,"onUpdate:selected":i[0]||(i[0]=r=>s.value=r),class:"br-grey br-b br-solid radius-small",tabs:[{name:"Участники",value:"members"},{name:"Приглашения",value:"invites"}]},null,8,["selected"]),s.value==="members"?(e.openBlock(),e.createElementBlock("div",No,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.memberships,(r,c)=>(e.openBlock(),e.createElementBlock("div",xo,[e.createElementVNode("span",So,e.toDisplayString(r.user.email)+" "+e.toDisplayString(r.user.phone),1),e.createElementVNode("span",Lo,e.toDisplayString(r.position),1),r.position!=="Основатель"?(e.openBlock(),e.createElementBlock("div",Oo,[e.createElementVNode("button",{onClick:u=>l(c,r),class:"button-small button"},"×",8,zo)])):e.createCommentVNode("",!0)]))),256))])):e.createCommentVNode("",!0),s.value==="invites"?(e.openBlock(),e.createElementBlock("div",Do,[t.invites.length<1?(e.openBlock(),e.createElementBlock("span",Po,"В организации нет приглашений")):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.invites,(r,c)=>(e.openBlock(),e.createElementBlock("div",Mo,[e.createElementVNode("span",Ao,e.toDisplayString(r.invitedEmail)+" "+e.toDisplayString(r.invitedPhone),1),e.createElementVNode("span",Fo,e.toDisplayString(r.status),1),e.createElementVNode("div",To,[e.createElementVNode("button",{onClick:u=>a(c,r),class:"button-small button"},"×",8,qo)])]))),256))])):e.createCommentVNode("",!0)]))}};const Uo={key:0,class:"pd-thin for-transition w-100"},Ro=e.createElementVNode("p",null,"34 members",-1),jo=[Ro],Ho={class:"pos-relative"},Zo={key:0},ie={__name:"Organization",setup(t){const o=g.useRouter(),n=g.useRoute();let s=n.query.tab?n.query.tab:"events";const l=e.ref(null);e.onMounted(async()=>{l.value=await h.actions.read({_id:n.params._id,user:E.state.user._id}),await P.actions.read(n.params._id)});const a=e.ref(s);return n.query.tab=a.value,e.watch(a,d=>{o.replace({query:{...n.query,tab:d}})}),(d,i)=>l.value?(e.openBlock(),e.createElementBlock("div",Uo,[e.createVNode(ae,{organization:h.state.current,user:E.state.user,class:"mn-semi"},null,8,["organization","user"]),e.createElementVNode("section",{onClick:i[0]||(i[0]=r=>e.unref(o).push({name:"Organization Members",params:{_id:e.unref(n).params._id}})),class:"mn-semi bg-grey radius-big pd-medium"},jo),e.createVNode(te._sfc_main,{selected:a.value,"onUpdate:selected":i[1]||(i[1]=r=>a.value=r),tabs:[{name:"Community",value:"community"},{name:"Products",value:"products"},{name:"Events",value:"events"},{name:"Spots",value:"spots"}],class:"mn-small o-hidden h5 radius-big bg-grey"},null,8,["selected"]),e.createElementVNode("div",Ho,[e.createVNode(e.Transition,{name:"slide-fade"},{default:e.withCtx(()=>[a.value==="community"?(e.openBlock(),e.createBlock(he._sfc_main,{key:0,user:E.state.user._id,owner:e.unref(n).params._id},null,8,["user","owner"])):e.createCommentVNode("",!0)]),_:1}),e.createVNode(e.Transition,{name:"slide-fade"},{default:e.withCtx(()=>[a.value==="events"?(e.openBlock(),e.createBlock(me._sfc_main,{key:0,user:E.state.user._id,owner:e.unref(n).params._id,sortOrder:"asc"},null,8,["user","owner"])):e.createCommentVNode("",!0)]),_:1}),e.createVNode(e.Transition,{name:"slide-fade"},{default:e.withCtx(()=>[a.value==="products"?(e.openBlock(),e.createBlock(Ht,{key:0,organization:h.state.current},null,8,["organization"])):e.createCommentVNode("",!0)]),_:1}),e.createVNode(e.Transition,{name:"slide-fade"},{default:e.withCtx(()=>[a.value==="spots"?(e.openBlock(),e.createElementBlock("div",Zo,[e.createVNode(nt,{organization:h.state.current,memberships:P.state.memberships},null,8,["organization","memberships"])])):e.createCommentVNode("",!0)]),_:1})])])):e.createCommentVNode("",!0)}},Ko=Object.freeze(Object.defineProperty({__proto__:null,default:ie},Symbol.toStringTag,{value:"Module"})),Yo={class:"for-transition w-100"},Go={id:"dash",class:"pd-medium bg-grey"},Wo={class:"mn-medium radius-medium pd-semi bg-white"},Jo={class:"flex-nowrap flex mn-small"},Qo={class:"w-100"},Xo=e.createElementVNode("path",{d:"M515.693 9.52082C510.095 3.91669 502.49 0.765625 494.563 0.765625C486.635 0.765625 479.036 3.91669 473.432 9.52082L48.7255 434.307C44.8244 438.214 42.0848 443.125 40.8088 448.496L0.939444 615.069C-1.47202 625.168 1.528 635.788 8.86652 643.132C16.2103 650.47 26.8305 653.47 36.9292 651.059L203.516 611.261H203.511C208.88 609.985 213.792 607.246 217.699 603.35L642.485 178.496C648.089 172.892 651.241 165.293 651.241 157.366C651.241 149.439 648.089 141.835 642.485 136.235L515.693 9.52082ZM113.76 453.708L388.307 179.161L472.828 263.682L198.281 538.229L113.76 453.708ZM87.1041 511.5L140.416 564.812L70.3014 581.614L87.1041 511.5ZM515.091 221.793L430.195 136.897L494.184 72.9075L579.08 157.429L515.091 221.793Z",fill:"black"},null,-1),en=[Xo],tn=["innerHTML"],on={class:"mn-medium radius-medium pd-semi bg-white"},nn=e.createElementVNode("h3",{class:"mn-regular"},"Команда",-1),an={key:0},sn={class:"mn-medium radius-medium pd-semi bg-white"},ln=e.createElementVNode("h3",{class:"mn-regular"},"Подотделы",-1),rn={key:0},ce={__name:"Department",async setup(t){let o,n;g.useRouter();const s=g.useRoute();return[o,n]=e.withAsyncContext(()=>B.readOne(s.params._id)),await o,n(),(l,a)=>(e.openBlock(),e.createElementBlock("div",Yo,[e.createElementVNode("div",Go,[e.createElementVNode("section",Wo,[e.createElementVNode("div",Jo,[e.createElementVNode("h2",Qo,e.toDisplayString(p.department.name),1),(e.openBlock(),e.createElementBlock("svg",{onClick:a[0]||(a[0]=d=>l.$router.push(`/app/organization/departments/${p.department._id}/edit`)),class:"i-regular t-transp",width:"652",height:"652",viewBox:"0 0 652 652",fill:"none",xmlns:"http://www.w3.org/2000/svg"},en))]),e.createElementVNode("p",{class:"t-transp p-big",innerHTML:p.department.description},null,8,tn)]),e.createElementVNode("section",on,[nn,e.createElementVNode("ul",null,[p.department.members.length<1?(e.openBlock(),e.createElementBlock("li",an,"В отделе еще нет участников")):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(p.department.members,(d,i)=>(e.openBlock(),e.createBlock(I,{class:"br-b br-solid br-grey",key:i,user:d.user,position:d.position,onClick:r=>l.$router.push(`/app/profile/${d.user._id}`)},null,8,["user","position","onClick"]))),128))])]),e.createElementVNode("section",sn,[ln,e.createElementVNode("ul",null,[p.department.subdepartments.length<1?(e.openBlock(),e.createElementBlock("li",rn,"В отделе еще нет подотделов")):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(p.department.subdepartments,(d,i)=>(e.openBlock(),e.createBlock(j,{onClick:r=>l.$router.push(`/app/organization/departments/${d._id}`),key:i,class:"br-b br-solid br-grey",department:d},null,8,["onClick","department"]))),128))])])])]))}},cn=Object.freeze(Object.defineProperty({__proto__:null,default:ce},Symbol.toStringTag,{value:"Module"})),dn={class:"for-transition pd-thin"},un=e.createElementVNode("h3",{class:"mn-small"},"Type of group",-1),pn=e.createElementVNode("p",{class:"mn-thin"},"Public groups are open to everyone, whereas in exclusive groups only members can post. If you wish to make a group private, select 'hidden'.",-1),mn=e.createElementVNode("h3",{class:"mn-small"},"Profile",-1),hn={class:"mn-thin radius-small w-100 h-10r bg-grey flex-center flex-column flex"},_n=e.createElementVNode("h4",null,"Upload photo",-1),gn=e.createElementVNode("h3",{class:"mn-small"},"Socials",-1),fn=e.createElementVNode("p",{class:"mn-thin"},"Please provide only the username for social media profiles, without full links.",-1),de={__name:"OrganizationEdit",async setup(t){let o,n;const s=g.useRoute(),l=g.useRouter();h.actions.reset(),s.params._id&&([o,n]=e.withAsyncContext(()=>h.actions.read({_id:s.params._id})),await o,n());const a=e.computed(()=>h.state.current);async function d(){s.params._id?await h.actions.update(s.params._id,a.value):await h.actions.create(h.state.current,E.state.user._id)}function i(){l.replace({name:"Organization",params:{_id:h.state.current._id}})}return(r,c)=>(e.openBlock(),e.createElementBlock("div",dn,[un,pn,e.createVNode(ke.SelectMulti,{modelValue:h.state.current.types,"onUpdate:modelValue":c[0]||(c[0]=u=>h.state.current.types=u),options:["public","exclusive","hidden"],multiple:!1,taggable:!1,placeholder:"Type to search or add type of organization",class:"mn-semi bg-grey pd-medium radius-small"},null,8,["modelValue"]),mn,e.createElementVNode("div",hn,[e.createVNode(ne._sfc_main,{photo:h.state.current.profile.photo,"onUpdate:photo":c[1]||(c[1]=u=>h.state.current.profile.photo=u),uploadPath:"organizations/"+h.state.current._id+"/avatars",class:"h-4r w-4r aspect-1x1 o-hidden mn-thin radius-extra"},null,8,["photo","uploadPath"]),_n]),e.createVNode(w.Field,{field:h.state.current.profile.name,"onUpdate:field":c[2]||(c[2]=u=>h.state.current.profile.name=u),placeholder:"Name of organization",class:"mn-thin bg-grey pd-medium radius-small"},null,8,["field"]),e.createVNode(w.Field,{field:h.state.current.profile.description,"onUpdate:field":c[3]||(c[3]=u=>h.state.current.profile.description=u),placeholder:"Brief description of your group",class:"mn-thin bg-grey pd-medium radius-small"},null,8,["field"]),e.createVNode(ve._sfc_main,{onTagsChanged:c[4]||(c[4]=u=>h.state.current.profile.tags=u),tags:h.state.current.profile.tags},null,8,["tags"]),gn,fn,e.createVNode(w.Field,{field:h.state.current.socials.instagram,"onUpdate:field":c[5]||(c[5]=u=>h.state.current.socials.instagram=u),label:"Instagram",placeholder:"",class:"mn-thin bg-grey pd-medium radius-small"},null,8,["field"]),e.createVNode(w.Field,{field:h.state.current.socials.twitter,"onUpdate:field":c[6]||(c[6]=u=>h.state.current.socials.twitter=u),label:"Twitter",placeholder:"",class:"mn-thin bg-grey pd-medium radius-small"},null,8,["field"]),e.createVNode(w.Field,{field:h.state.current.socials.facebook,"onUpdate:field":c[7]||(c[7]=u=>h.state.current.socials.facebook=u),label:"Facebook",placeholder:"",class:"mn-thin bg-grey pd-medium radius-small"},null,8,["field"]),e.createVNode(w.Field,{field:h.state.current.socials.telegram,"onUpdate:field":c[8]||(c[8]=u=>h.state.current.socials.telegram=u),label:"Telegram",placeholder:"",class:"mn-thin bg-grey pd-medium radius-small"},null,8,["field"]),e.createVNode(T._sfc_main,{submit:d,callback:i,class:"mn-thin"},{default:e.withCtx(()=>[e.createTextVNode("Save")]),_:1})]))}},G=Object.freeze(Object.defineProperty({__proto__:null,default:de},Symbol.toStringTag,{value:"Module"}));const bn={key:0,class:"t-transp mn-r-small"},yn=["placeholder","value"],vn={key:0,class:"mn-t-thin invalid-feedback"},kn={__name:"Address",props:{apiKey:{type:String,required:!0},label:null,placeholder:"Enter something here",field:null,location:{type:Object,default:{lat:48.6900735,lng:41.1620239}},address:{type:String,default:""}},emits:["update:address","update:location","update:country","update:state","update:city"],setup(t,{emit:o}){const n=t,s=e.ref(null);let l;const a=()=>{l=new google.maps.places.Autocomplete(s.value),l.addListener("place_changed",i)},d=()=>{l||a()},i=()=>{const r=l.getPlace();if(!r.geometry||!r.address_components)return;let c="",u="",m="";for(let N=0;N<r.address_components.length;N++){console.log(r.address_components);let b=r.address_components[N];b.types.includes("country")&&(c=b.long_name),b.types.includes("administrative_area_level_1")&&(u=b.long_name),b.types.includes("locality")&&(m=b.long_name)}const _=r.formatted_address,k={lat:r.geometry.location.lat(),lng:r.geometry.location.lng()};o("update:address",_),o("update:location",k),o("update:country",c),o("update:state",u),o("update:city",m)};return e.watchEffect(()=>{n.address!==s.value&&(s.value=n.address)}),e.onMounted(()=>{a()}),(r,c)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass([r.$attrs.class,"flex-nowrap flex"])},[t.label?(e.openBlock(),e.createElementBlock("div",bn,[e.createElementVNode("span",null,e.toDisplayString(t.label),1)])):e.createCommentVNode("",!0),e.createElementVNode("input",{ref_key:"addressInput",ref:s,class:"w-100",placeholder:t.placeholder,value:t.address,onInput:d},null,40,yn),e.createVNode(e.Transition,{mode:"out-in",name:"fade"},{default:e.withCtx(()=>[r.validation?(e.openBlock(),e.createElementBlock("div",vn," * "+e.toDisplayString(r.validation.message),1)):e.createCommentVNode("",!0)]),_:1})],2))}},wn=y._export_sfc(kn,[["__scopeId","data-v-faece1a6"]]);const $n=t=>(e.pushScopeId("data-v-29acef04"),t=t(),e.popScopeId(),t),En={class:"pos-relative map-container"},Vn=$n(()=>e.createElementVNode("svg",{class:"i-medium",width:"98",height:"98",viewBox:"0 0 98 98",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[e.createElementVNode("path",{d:"M50.0004 31.4995C39.7996 31.4995 31.5 39.7991 31.5 49.9999C31.5 60.2007 39.7996 68.5003 50.0004 68.5003C60.2012 68.5003 68.5008 60.2007 68.5008 49.9999C68.5008 39.7991 60.2012 31.4995 50.0004 31.4995ZM50.0004 63.7944C42.3941 63.7944 36.2059 57.6062 36.2059 49.9999C36.2059 42.3936 42.3941 36.2054 50.0004 36.2054C57.6067 36.2054 63.7949 42.3936 63.7949 49.9999C63.7949 57.6062 57.6067 63.7944 50.0004 63.7944Z",fill:"white"}),e.createElementVNode("path",{d:"M97.6471 47.6471H84.56C83.3977 30.4141 69.5859 16.6024 52.3529 15.44V2.35294C52.3529 1.05255 51.2988 0 50 0C48.6996 0 47.6471 1.05255 47.6471 2.35294V15.44C30.4141 16.6024 16.6024 30.4141 15.44 47.6471H2.35294C1.05255 47.6471 0 48.6996 0 50C0 51.2988 1.05255 52.3529 2.35294 52.3529H15.44C16.6024 69.5859 30.4141 83.3977 47.6471 84.56V97.6471C47.6471 98.9459 48.6996 100 50 100C51.2988 100 52.3529 98.9459 52.3529 97.6471V84.56C69.5859 83.3977 83.3977 69.5859 84.56 52.3529H97.6471C98.9459 52.3529 100 51.2988 100 50C100 48.6996 98.9459 47.6471 97.6471 47.6471ZM50 79.9435C33.4886 79.9435 20.0565 66.5114 20.0565 50C20.0565 33.4886 33.4886 20.0565 50 20.0565C66.5098 20.0565 79.9435 33.4886 79.9435 50C79.9435 66.5098 66.5098 79.9435 50 79.9435Z",fill:"white"})],-1)),Bn=[Vn],Cn={__name:"LocationMarker",props:{location:{type:Object,default:{lat:48.6900735,lng:41.1620239}},address:{type:String,default:""},apiKey:String},emits:["update:location","update:address","update:country","update:state","update:city"],setup(t,{emit:o}){const n=t,s=e.ref(null);let l,a;e.onMounted(()=>{l=new google.maps.Map(s.value,{center:n.location,zoom:15,mapTypeControl:!1,fullscreenControl:!1}),a=new google.maps.Marker({position:n.location,map:l,draggable:!0}),a.addListener("dragend",r=>{const c={lat:r.latLng.lat(),lng:r.latLng.lng()};o("update:location",c),d(c)})}),e.watchEffect(()=>{n.location&&a&&a.setPosition(new google.maps.LatLng(n.location.lat,n.location.lng))}),e.watchEffect(()=>{if(n.location&&l){const r=new google.maps.LatLng(n.location.lat,n.location.lng);l.setCenter(r)}});function d(r){new google.maps.Geocoder().geocode({location:r},(u,m)=>{if(m==="OK")if(u[0]){o("update:address",u[0].formatted_address);let _="",k="",N="";u[0].address_components.forEach(b=>{b.types.includes("country")&&(_=b.long_name),b.types.includes("administrative_area_level_1")&&(k=b.long_name),b.types.includes("locality")&&(N=b.long_name)}),o("update:country",_),o("update:state",k),o("update:city",N)}else console.error("No results found");else console.error("Geocoder failed due to: "+m)})}async function i(){navigator.geolocation?navigator.geolocation.getCurrentPosition(r=>{const c={lat:r.coords.latitude,lng:r.coords.longitude};o("update:location",c),d(c)},()=>{console.error("Error getting location")}):console.error("Geolocation is not supported by this browser.")}return(r,c)=>(e.openBlock(),e.createElementBlock("div",En,[e.createElementVNode("div",{ref_key:"mapContainer",ref:s,class:"w-100 h-100"},null,512),e.createElementVNode("button",{class:"pos-absolute pos-t-regular pos-r-regular i-semi bg-second radius-extra",onClick:i},Bn)]))}},Nn=y._export_sfc(Cn,[["__scopeId","data-v-29acef04"]]);var xn=Object.defineProperty,Sn=Object.defineProperties,Ln=Object.getOwnPropertyDescriptors,W=Object.getOwnPropertySymbols,On=Object.prototype.hasOwnProperty,zn=Object.prototype.propertyIsEnumerable,J=(t,o,n)=>o in t?xn(t,o,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[o]=n,x=(t,o)=>{for(var n in o||(o={}))On.call(o,n)&&J(t,n,o[n]);if(W)for(var n of W(o))zn.call(o,n)&&J(t,n,o[n]);return t},Q=(t,o)=>Sn(t,Ln(o));const Dn={props:{autoscroll:{type:Boolean,default:!0}},watch:{typeAheadPointer(){this.autoscroll&&this.maybeAdjustScroll()},open(t){this.autoscroll&&t&&this.$nextTick(()=>this.maybeAdjustScroll())}},methods:{maybeAdjustScroll(){var t;const o=((t=this.$refs.dropdownMenu)==null?void 0:t.children[this.typeAheadPointer])||!1;if(o){const n=this.getDropdownViewport(),{top:s,bottom:l,height:a}=o.getBoundingClientRect();if(s<n.top)return this.$refs.dropdownMenu.scrollTop=o.offsetTop;if(l>n.bottom)return this.$refs.dropdownMenu.scrollTop=o.offsetTop-(n.height-a)}},getDropdownViewport(){return this.$refs.dropdownMenu?this.$refs.dropdownMenu.getBoundingClientRect():{height:0,top:0,bottom:0}}}},Pn={data(){return{typeAheadPointer:-1}},watch:{filteredOptions(){for(let t=0;t<this.filteredOptions.length;t++)if(this.selectable(this.filteredOptions[t])){this.typeAheadPointer=t;break}},open(t){t&&this.typeAheadToLastSelected()},selectedValue(){this.open&&this.typeAheadToLastSelected()}},methods:{typeAheadUp(){for(let t=this.typeAheadPointer-1;t>=0;t--)if(this.selectable(this.filteredOptions[t])){this.typeAheadPointer=t;break}},typeAheadDown(){for(let t=this.typeAheadPointer+1;t<this.filteredOptions.length;t++)if(this.selectable(this.filteredOptions[t])){this.typeAheadPointer=t;break}},typeAheadSelect(){const t=this.filteredOptions[this.typeAheadPointer];t&&this.selectable(t)&&this.select(t)},typeAheadToLastSelected(){this.typeAheadPointer=this.selectedValue.length!==0?this.filteredOptions.indexOf(this.selectedValue[this.selectedValue.length-1]):-1}}},Mn={props:{loading:{type:Boolean,default:!1}},data(){return{mutableLoading:!1}},watch:{search(){this.$emit("search",this.search,this.toggleLoading)},loading(t){this.mutableLoading=t}},methods:{toggleLoading(t=null){return t==null?this.mutableLoading=!this.mutableLoading:this.mutableLoading=t}}},Z=(t,o)=>{const n=t.__vccOpts||t;for(const[s,l]of o)n[s]=l;return n},An={},Fn={xmlns:"http://www.w3.org/2000/svg",width:"10",height:"10"},Tn=e.createElementVNode("path",{d:"M6.895455 5l2.842897-2.842898c.348864-.348863.348864-.914488 0-1.263636L9.106534.261648c-.348864-.348864-.914489-.348864-1.263636 0L5 3.104545 2.157102.261648c-.348863-.348864-.914488-.348864-1.263636 0L.261648.893466c-.348864.348864-.348864.914489 0 1.263636L3.104545 5 .261648 7.842898c-.348864.348863-.348864.914488 0 1.263636l.631818.631818c.348864.348864.914773.348864 1.263636 0L5 6.895455l2.842898 2.842897c.348863.348864.914772.348864 1.263636 0l.631818-.631818c.348864-.348864.348864-.914489 0-1.263636L6.895455 5z"},null,-1),qn=[Tn];function In(t,o){return e.openBlock(),e.createElementBlock("svg",Fn,qn)}const Un=Z(An,[["render",In]]),Rn={},jn={xmlns:"http://www.w3.org/2000/svg",width:"14",height:"10"},Hn=e.createElementVNode("path",{d:"M9.211364 7.59931l4.48338-4.867229c.407008-.441854.407008-1.158247 0-1.60046l-.73712-.80023c-.407008-.441854-1.066904-.441854-1.474243 0L7 5.198617 2.51662.33139c-.407008-.441853-1.066904-.441853-1.474243 0l-.737121.80023c-.407008.441854-.407008 1.158248 0 1.600461l4.48338 4.867228L7 10l2.211364-2.40069z"},null,-1),Zn=[Hn];function Kn(t,o){return e.openBlock(),e.createElementBlock("svg",jn,Zn)}const Yn=Z(Rn,[["render",Kn]]),X={Deselect:Un,OpenIndicator:Yn},Gn={mounted(t,{instance:o}){if(o.appendToBody){const{height:n,top:s,left:l,width:a}=o.$refs.toggle.getBoundingClientRect();let d=window.scrollX||window.pageXOffset,i=window.scrollY||window.pageYOffset;t.unbindPosition=o.calculatePosition(t,o,{width:a+"px",left:d+l+"px",top:i+s+n+"px"}),document.body.appendChild(t)}},unmounted(t,{instance:o}){o.appendToBody&&(t.unbindPosition&&typeof t.unbindPosition=="function"&&t.unbindPosition(),t.parentNode&&t.parentNode.removeChild(t))}};function Wn(t){const o={};return Object.keys(t).sort().forEach(n=>{o[n]=t[n]}),JSON.stringify(o)}let Jn=0;function Qn(){return++Jn}const Xn={components:x({},X),directives:{appendToBody:Gn},mixins:[Dn,Pn,Mn],compatConfig:{MODE:3},emits:["open","close","update:modelValue","search","search:compositionstart","search:compositionend","search:keydown","search:blur","search:focus","search:input","option:created","option:selecting","option:selected","option:deselecting","option:deselected"],props:{modelValue:{},components:{type:Object,default:()=>({})},options:{type:Array,default(){return[]}},disabled:{type:Boolean,default:!1},clearable:{type:Boolean,default:!0},deselectFromDropdown:{type:Boolean,default:!1},searchable:{type:Boolean,default:!0},multiple:{type:Boolean,default:!1},placeholder:{type:String,default:""},transition:{type:String,default:"vs__fade"},clearSearchOnSelect:{type:Boolean,default:!0},closeOnSelect:{type:Boolean,default:!0},label:{type:String,default:"label"},autocomplete:{type:String,default:"off"},reduce:{type:Function,default:t=>t},selectable:{type:Function,default:t=>!0},getOptionLabel:{type:Function,default(t){return typeof t=="object"?t.hasOwnProperty(this.label)?t[this.label]:console.warn(`[vue-select warn]: Label key "option.${this.label}" does not exist in options object ${JSON.stringify(t)}.
1
+ "use strict";const e=require("vue"),g=require("vue-router"),pe=require("vue-i18n"),f=require("./globals-928eb13c.js");require("./Breadcrumbs.vue_vue_type_style_index_0_lang-0ea8fbf8.js");const te=require("./Tab-2c1e4224.js");require("./MenuItem-f35cad93.js");const me=require("./Feed-6ca0541a.js"),he=require("./Feed-5a359bb7.js");require("./Tab.vue_vue_type_style_index_0_lang-0ea8fbf8.js");const y=require("./_plugin-vue_export-helper-f246444f.js"),R=require("./index-b41aac19.js"),E=require("./auth-df5a20c6.js"),U=require("./Dropdown-f2564c92.js"),oe=require("./CardOrganization-22beb83d.js"),_e=require("./IconEdit-c0469b45.js"),K=require("./ButtonToggleMembership-738720bd.js"),ge=require("./Socials-43293869.js"),h=require("./organizations-d12c42b6.js"),P=require("./memberships-393765d8.js"),V=require("./Checkbox-76f09248.js"),F=require("./categories-7ccd6be9.js"),fe=require("./Feed-98b47c6f.js"),be=require("./CardProduct-92affca1.js"),Y=require("./products-3c43eb18.js");require("./Field.vue_vue_type_style_index_0_scoped_f4a29b0d_lang-0ea8fbf8.js");const ye=require("./Select-3ca5ab39.js");require("./Button.vue_vue_type_style_index_0_lang-0ea8fbf8.js");require("./inputs.validation-d7cef32b.js");const ve=require("./BlockTags-8cddaef7.js"),w=require("./Field-e2a43424.js"),ke=require("./SelectMulti-c25765cf.js"),ne=require("./UploadImage-0f488170.js"),T=require("./Button-7643c9aa.js");require("./Popup.vue_vue_type_style_index_0_lang-0ea8fbf8.js");require("./Organizations-ed6d36d6.js");require("./reports-270f69df.js");require("./Publics-a31d7fe7.js");const z=require("./auth.validation-80b133df.js"),we={class:"mn-big radius-medium pd-big bg-white"},$e={class:"mn-regular"},Ee={class:"mn-small t-transp p-medium"},q={__name:"EmptyState",props:{title:{type:String,default:"У вас еще нет организации"},description:{type:String,default:"Для использования сервиса, вам необходимо добавить вашу организацию."},action:{type:String,default:"Создать организацию"},callback:{type:Function,default:()=>{}}},setup(t){return(o,n)=>(e.openBlock(),e.createElementBlock("section",we,[e.createElementVNode("h3",$e,e.toDisplayString(t.title),1),e.createElementVNode("p",Ee,e.toDisplayString(t.description),1),e.createElementVNode("button",{onClick:n[0]||(n[0]=(...s)=>t.callback&&t.callback(...s)),class:"t-white bg-second w-100 button"},e.toDisplayString(t.action),1)]))}};const Ve={key:0,class:"spoiler"},C={__name:"Spoiler",props:{status:{type:Boolean,default:!1}},setup(t){const o=t,n=e.ref(!1);return o.status&&(n.value=o.status),(s,l)=>(e.openBlock(),e.createElementBlock("div",null,[e.createElementVNode("div",{onClick:l[0]||(l[0]=a=>n.value=!n.value),class:"flex-v-center flex-nowrap flex"},[e.renderSlot(s.$slots,"header")]),e.createVNode(e.Transition,{name:"collapse"},{default:e.withCtx(()=>[n.value?(e.openBlock(),e.createElementBlock("div",Ve,[e.renderSlot(s.$slots,"content")])):e.createCommentVNode("",!0)]),_:3})]))}};const Be={__name:"Map",props:{location:Object},setup(t){const o=t;let n=e.ref(null),s=null,l=null;return e.onMounted(async()=>{s=new google.maps.Map(n.value,{zoom:13,center:{lat:o.location.lat,lng:o.location.lng}}),l=new google.maps.Marker({position:{lat:o.location.lat,lng:o.location.lng},map:s})}),e.watch(()=>o.location,()=>{s&&l&&(l.setPosition(new google.maps.LatLng(o.location.lat,o.location.lng)),s.setCenter(new google.maps.LatLng(o.location.lat,o.location.lng)))},{deep:!0}),(a,d)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"gmap",ref:n,class:"gmap"},null,512))}},Ce=y._export_sfc(Be,[["__scopeId","data-v-c194b4a5"]]);const Ne={class:"pd-small flex-nowrap flex"},xe={class:"user-card__info"},Se={class:"user-card__name"},Le={class:"user-card__position"},Oe={__name:"SpotSub",props:{department:{type:Object,required:!0}},setup(t){return(o,n)=>(e.openBlock(),e.createElementBlock("div",Ne,[e.createElementVNode("div",xe,[e.createElementVNode("p",Se,e.toDisplayString(t.department.name?t.department.name:"Безымянный"),1),e.createElementVNode("p",Le,e.toDisplayString(t.department.members?t.department.members.length:"0")+" человек",1)])]))}},ze=y._export_sfc(Oe,[["__scopeId","data-v-58a64d57"]]);const De={class:"pd-small flex-nowrap flex"},Pe={class:"user-card__info"},Me={class:"user-card__name"},Ae={class:"t-transp"},Fe={__name:"User",props:{user:{type:Object,required:!0},position:{type:String,required:!0}},setup(t){return(o,n)=>(e.openBlock(),e.createElementBlock("div",De,[e.createElementVNode("div",Pe,[e.createElementVNode("p",Me,e.toDisplayString(t.user.name?t.user.name:"Безымянный"),1),e.createElementVNode("p",Ae,e.toDisplayString(t.position),1)])]))}},I=y._export_sfc(Fe,[["__scopeId","data-v-a27accf5"]]);const M=t=>(e.pushScopeId("data-v-6ef388c4"),t=t(),e.popScopeId(),t),Te={class:"radius-big o-hidden cols-2-1_3"},qe={class:"pd-medium w-100"},Ie=M(()=>e.createElementVNode("path",{d:"M515.693 9.52082C510.095 3.91669 502.49 0.765625 494.563 0.765625C486.635 0.765625 479.036 3.91669 473.432 9.52082L48.7255 434.307C44.8244 438.214 42.0848 443.125 40.8088 448.496L0.939444 615.069C-1.47202 625.168 1.528 635.788 8.86652 643.132C16.2103 650.47 26.8305 653.47 36.9292 651.059L203.516 611.261H203.511C208.88 609.985 213.792 607.246 217.699 603.35L642.485 178.496C648.089 172.892 651.241 165.293 651.241 157.366C651.241 149.439 648.089 141.835 642.485 136.235L515.693 9.52082ZM113.76 453.708L388.307 179.161L472.828 263.682L198.281 538.229L113.76 453.708ZM87.1041 511.5L140.416 564.812L70.3014 581.614L87.1041 511.5ZM515.091 221.793L430.195 136.897L494.184 72.9075L579.08 157.429L515.091 221.793Z",fill:"black"},null,-1)),Ue=[Ie],Re=["innerHTML"],je=["innerHTML"],He={class:"pd-small flex-v-center flex-nowrap flex"},Ze=M(()=>e.createElementVNode("h5",{class:"w-100"},"Contacts ",-1)),Ke={class:"mn-r-small"},Ye=M(()=>e.createElementVNode("svg",{width:"14",height:"9",viewBox:"0 0 14 9",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[e.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M12.4697 0.469727L13.5304 1.53039L7.00006 8.06072L0.469727 1.53039L1.53039 0.469727L7.00006 5.9394L12.4697 0.469727Z",fill:"#8A8A8A"})],-1)),Ge={key:0},We={class:"pd-small flex-v-center flex-nowrap flex"},Je=M(()=>e.createElementVNode("h5",{class:"w-100"},"Working Hours ",-1)),Qe={class:"mn-r-small"},Xe=M(()=>e.createElementVNode("svg",{width:"14",height:"9",viewBox:"0 0 14 9",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[e.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M12.4697 0.469727L13.5304 1.53039L7.00006 8.06072L0.469727 1.53039L1.53039 0.469727L7.00006 5.9394L12.4697 0.469727Z",fill:"#8A8A8A"})],-1)),et={key:0},tt={__name:"CardSpot",props:{spot:Object,organization:Object},setup(t){const o=t;return(n,s)=>(e.openBlock(),e.createElementBlock("div",Te,[e.createVNode(Ce,{location:{lat:t.spot.location.coordinates[1],lng:t.spot.location.coordinates[0]},class:""},null,8,["location"]),e.createElementVNode("div",qe,[(e.openBlock(),e.createElementBlock("svg",{onClick:s[0]||(s[0]=l=>n.$router.push(`/organizations/${o.organization._id}/spots/${t.spot._id}/edit`)),class:"i-regular pos-absolute pos-r-0 pos-t-0 t-transp",width:"652",height:"652",viewBox:"0 0 652 652",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Ue)),e.createElementVNode("h3",{onClick:s[1]||(s[1]=l=>n.$router.push(`/app/organization/${o.organization._id}/spots/${t.spot._id}`)),class:"mn-small w-100",innerHTML:t.spot.profile.name},null,8,Re),e.createElementVNode("p",{onClick:s[2]||(s[2]=l=>n.$router.push(`/app/organization/${o.organization._id}/spots/${t.spot._id}`)),class:"mn-small p-big w-100",innerHTML:t.spot.address},null,8,je),e.createVNode(C,{class:"radius-small o-hidden br-1px br-solid br-grey mn-thin"},{header:e.withCtx(()=>[e.createElementVNode("div",He,[Ze,e.createElementVNode("p",Ke,e.toDisplayString(t.spot.members.length)+" человек",1),Ye])]),content:e.withCtx(()=>[e.createElementVNode("ul",null,[t.spot.members.length<1?(e.openBlock(),e.createElementBlock("li",Ge,"В отделе еще нет участников")):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.spot.members,(l,a)=>(e.openBlock(),e.createBlock(I,{class:"br-b br-solid br-grey",key:a,user:l.user,position:l.position,onClick:d=>n.$router.push(`/app/profile/${l.user._id}`)},null,8,["user","position","onClick"]))),128))])]),_:1}),e.createVNode(C,{class:"radius-small o-hidden br-1px br-solid br-grey mn-thin"},{header:e.withCtx(()=>[e.createElementVNode("div",We,[Je,e.createElementVNode("p",Qe,e.toDisplayString(t.spot.subspots?t.spot.subspots.length:0)+" отделов",1),Xe])]),content:e.withCtx(()=>[e.createElementVNode("ul",null,[t.spot.subspots.length<1?(e.openBlock(),e.createElementBlock("li",et,"В отделе еще нет подотделов")):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.spot.subspots,(l,a)=>(e.openBlock(),e.createBlock(ze,{onClick:d=>n.$router.push(`/app/organization/spots/${l._id}`),key:a,class:"br-b br-solid br-grey",spot:l},null,8,["onClick","spot"]))),128))])]),_:1})])]))}},ot=y._export_sfc(tt,[["__scopeId","data-v-6ef388c4"]]),S=R.axios.create({baseURL:process.env.API_URL,withCredentials:!0});S.defaults.withCredentials=!0;const p=e.reactive({spots:[],spot:{organization:"",profile:{photo:"",name:"",description:"",categories:[]},address:"",location:{lat:null,lng:null},worktime:[],delivery:[],payment:[],members:[],subspots:[]},error:null}),B={async readOne(t){await S.get(`/api/spots/get/${t}`).then(o=>{p.spot=o.data,p.error=null}).catch(o=>{f.setError(o)})},async read(t){await S.get(`/api/spots/${t}`).then(o=>{console.log("Response:",o),p.spots=o.data,p.error=null}).catch(o=>{f.setError(o)})},async create(t,o){await S.post(`/api/spots/${t}/create`,o).then(n=>{p.error=null,p.spot=n.data}).catch(n=>{f.setError(n)})},async update(t,o){await S.post(`/api/spots/${t}/update`,o).then(()=>{p.error=null}).catch(n=>{f.setError(n)})},async delete(t,o){await S.delete(`/api/spots/${t}/delete`,{data:{_id:o}}).then(()=>{p.error=null}).catch(n=>{f.setError(n)})}};e.watch(p,(t,o)=>{});const nt={__name:"Feed",props:{organization:Object,units:Array,memberships:Array},async setup(t){let o,n;const s=t;e.ref("spots"),[o,n]=e.withAsyncContext(()=>B.read(s.organization._id)),await o,n();const l=e.computed(()=>{const a=p.spots,d=a.flatMap(i=>i.subspots.map(r=>r._id));return a.filter(i=>!d.includes(i._id))});return(a,d)=>(e.openBlock(),e.createBlock(e.Transition,{name:"slide-fade"},{default:e.withCtx(()=>[e.createElementVNode("div",null,[e.unref(l).length<1?(e.openBlock(),e.createBlock(q,{key:0,title:"You don't have any spots yet.",description:"Add spots to your hub.",action:"Add spot",callback:()=>a.$router.push(`/spots/${s.organization._id}/spots/create`)},null,8,["callback"])):e.createCommentVNode("",!0),e.createElementVNode("div",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(l),(i,r)=>(e.openBlock(),e.createBlock(ot,{key:r,spot:i,organization:t.organization,class:"radius-big bg-grey mn-thin"},null,8,["spot","organization"]))),128)),e.unref(l).length>0&&E.state.user._id===t.organization.owner?(e.openBlock(),e.createElementBlock("button",{key:0,onClick:d[0]||(d[0]=i=>a.$router.push(`/spots/${s.organization._id}/spots/create`)),class:"mn-thin button w-100"}," Add spot ")):e.createCommentVNode("",!0)])])]),_:1}))}},at={class:"mn-small w-100"},st=["href"],lt=e.createElementVNode("span",{class:"t-semi uppercase"},"Website",-1),rt=[lt],it=["href"],ct=e.createElementVNode("span",{class:"t-semi uppercase"},"Phone",-1),dt=[ct],ut=["href"],pt=e.createElementVNode("span",{class:"t-semi uppercase"},"Email",-1),mt=[pt],ht=["href"],_t=e.createElementVNode("span",{class:"t-semi uppercase"},"Address",-1),gt=[_t],ft={__name:"Contacts",props:{website:String,phone:String,email:String,address:String},setup(t){const o=t,n=e.computed(()=>o.website?!o.website.startsWith("http://")&&!o.website.startsWith("https://")?`http://${o.website}`:o.website:null),s=e.computed(()=>o.address?encodeURIComponent(o.address):null);return(l,a)=>(e.openBlock(),e.createElementBlock("div",at,[e.unref(n)?(e.openBlock(),e.createElementBlock("a",{key:0,href:e.unref(n),target:"_blank",class:"w-100 br-2px br-solid br-grey radius-small pd-small flex-v-center flex-nowrap flex"},rt,8,st)):e.createCommentVNode("",!0),o.phone?(e.openBlock(),e.createElementBlock("a",{key:1,href:`tel:${o.phone}`,class:"w-100 br-2px br-solid br-grey radius-small pd-small flex-v-center flex-nowrap flex"},dt,8,it)):e.createCommentVNode("",!0),o.email?(e.openBlock(),e.createElementBlock("a",{key:2,href:`mailto:${o.email}`,target:"_blank",class:"w-100 br-2px br-solid br-grey radius-small pd-small flex-v-center flex-nowrap flex"},mt,8,ut)):e.createCommentVNode("",!0),e.unref(s)?(e.openBlock(),e.createElementBlock("a",{key:3,href:`https://www.google.com/maps/search/?api=1&query=${e.unref(s)}`,target:"_blank",class:"w-100 br-2px br-solid br-grey radius-small pd-small flex-v-center flex-nowrap flex"},gt,8,ht)):e.createCommentVNode("",!0)]))}},bt={class:"w-100 mn-small star-container flex-v-center flex"},yt={class:"p-big t-semi mn-r-small"},vt=e.createElementVNode("path",{fill:"#00FF88",d:"M62.2406 5.85971L75.413 32.6098L105.203 36.8654C110.472 37.676 112.498 44.3636 108.648 48.0113L87.1668 68.8844L92.2331 98.2689C93.2464 103.741 87.5721 107.591 82.9111 105.159L56.3637 91.3788L29.8163 105.159C25.1553 107.794 19.4811 103.741 20.4944 98.4716L25.5607 68.8844L4.07956 48.0113C0.22917 44.3636 2.25569 37.676 7.52464 36.8654L37.3145 32.6098L50.4868 5.85971C52.9186 0.996063 59.8088 0.996063 62.2406 5.85971Z"},null,-1),kt=[vt],wt={class:""},$t={__name:"Rating",props:{rating:{type:Number,required:!0},amount:{type:Number,required:!0}},setup(t){return(o,n)=>(e.openBlock(),e.createElementBlock("section",null,[e.createElementVNode("div",bt,[e.createElementVNode("span",yt,e.toDisplayString(t.rating),1),(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(5,s=>e.createElementVNode("svg",{class:e.normalizeClass(["i-semi mn-r-small",{"t-transp":s>t.rating}]),width:"113",height:"108",viewBox:"0 0 113 108",fill:"none",xmlns:"http://www.w3.org/2000/svg"},kt,2)),64))]),e.createElementVNode("p",wt,"Based on "+e.toDisplayString(t.amount)+" reviews",1)]))}},Et={class:"t-center flex-center flex-column flex pd-medium radius-big bg-grey"},Vt={class:"bg-black pd-thin radius-small"},Bt=e.createElementVNode("button",{class:"w-100 bg-black br-solid br-1px br-white-transp-20 t-white button-small button"}," Report ",-1),Ct=["src"],Nt={class:"mn-thin"},xt={class:"mn-medium p-big"},St={class:"flex-center flex-wrap gap-thin flex mn-semi"},Lt={class:"pd-thin radius-small t-semi uppercase t-black bg-main p-medium"},Ot={class:"t-semi mn-small"},zt={key:5,class:"mn-t-small mn-thin"},ae={__name:"DetailsTab",props:{organization:Object,user:Object},setup(t){const o=g.useRoute(),n=({membership:s,status:l,target:a},d,i)=>{P.mutations.handleMembershipUpdate(h.state.current,s,l,a,d,i)};return(s,l)=>(e.openBlock(),e.createBlock(e.Transition,{name:"slide-fade"},{default:e.withCtx(()=>[e.createElementVNode("section",Et,[t.user._id!==t.organization.owner?(e.openBlock(),e.createBlock(U.Dropdown,{key:0,label:"...",align:"right",class:"cursor-pointer pos-absolute pos-r-0 pos-t-0 pd-thin radius-extra"},{default:e.withCtx(()=>[e.createElementVNode("section",Vt,[e.createVNode(U._sfc_main,{user:t.user._id,type:"organization",target:t.organization._id,text:"Report",class:"w-100"},{default:e.withCtx(()=>[Bt]),_:1},8,["user","target"]),t.user._id&&t.user._id!==t.organization.owner?(e.openBlock(),e.createBlock(K._sfc_main,{key:0,user:t.user._id,type:"organization",role:"blocked",target:t.organization._id,status:t.organization.isBlocked,text:{create:"Block",remove:"Unblock"},onUpdateMembership:l[0]||(l[0]=a=>n(a,"isBlocked")),class:"t-white mn-t-thin bg-red"},null,8,["user","target","status"])):e.createCommentVNode("",!0)])]),_:1},8,["label"])):e.createCommentVNode("",!0),t.user._id===t.organization.owner?(e.openBlock(),e.createBlock(_e.IconEdit,{key:1,onClick:l[1]||(l[1]=a=>s.$router.push({name:"Organization Edit",params:{_id:t.organization._id}})),class:"pos-absolute pos-t-regular pos-r-regular i-regular t-transp"})):e.createCommentVNode("",!0),t.organization.profile.photo?(e.openBlock(),e.createElementBlock("img",{key:2,src:(s.FILE_SERVER_URL||"")+t.organization.profile.photo,class:"radius-big bg-grey flex-center flex mn-small i-extra"},null,8,Ct)):(e.openBlock(),e.createBlock(U.PlaceholderUserpic,{key:3,class:"radius-medium mn-small i-extra"})),e.createElementVNode("h1",Nt,e.toDisplayString(t.organization.profile.name),1),e.createElementVNode("p",xt,[e.createVNode(oe._sfc_main$1,{text:t.organization.profile.description?t.organization.profile.description:"",maxLen:240},null,8,["text"])]),e.createElementVNode("div",St,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.organization.profile.tags,a=>(e.openBlock(),e.createElementBlock("span",Lt,e.toDisplayString(a),1))),256))]),e.createElementVNode("p",Ot," 👨‍👨‍👧‍👧 "+e.toDisplayString(t.organization.numberOfSubscribers)+" followers ",1),t.user._id&&e.unref(o).params._id&&e.unref(o).params._id!==t.user._id&&t.organization.owner!==t.user._id?(e.openBlock(),e.createBlock(K._sfc_main,{key:4,user:t.user._id,type:"organization",role:"subscriber",target:t.organization._id,status:t.organization.isSubscriber,text:{create:"Follow",remove:"Unfollow"},onUpdateMembership:l[2]||(l[2]=a=>n(a,"isSubscriber","numberOfSubscribers")),class:"w-min mn-medium mn-r-auto mn-l-auto"},null,8,["user","target","status"])):e.createCommentVNode("",!0),Object.values(t.organization.socials).some(a=>a)?(e.openBlock(),e.createElementBlock("h4",zt," Find us in socials ")):e.createCommentVNode("",!0),e.createVNode(ge._sfc_main,{telegram:t.organization.socials.telegram,facebook:t.organization.socials.facebook,instagram:t.organization.socials.instagram,twitter:t.organization.socials.twitter},null,8,["telegram","facebook","instagram","twitter"])])]),_:1}))}};const Dt={class:"pd-medium bg-grey radius-big"},Pt={class:"mn-small"},Mt=e.createElementVNode("hr",{class:"mn-small"},null,-1),At={class:"mn-r-auto t-medium p-big"},Ft=e.createElementVNode("hr",{class:"mn-small"},null,-1),Tt={class:"mn-r-auto t-medium p-big"},qt=e.createElementVNode("hr",{class:"mn-small"},null,-1),It=e.createElementVNode("p",{class:"mn-r-auto t-medium p-big"},"Delivery",-1),Ut=e.createElementVNode("hr",{class:"mn-semi"},null,-1),Rt={__name:"FilterProducts",props:{selectedFilters:Object,prices:{type:Array,default:()=>[{label:"Under $5",value:{min:0,max:5}},{label:"$5 to $10",value:{min:5,max:10}},{label:"$10 to $20",value:{min:10,max:20}},{label:"$20 and above",value:{min:20,max:1/0}}]},deliveryOptions:{type:Array,default:()=>[{label:"Pickup",value:{min:0,max:25}},{label:"Courier",value:{min:25,max:50}},{label:"Post",value:{min:50,max:100}}]}},emits:["updateFilters","resetFilters"],async setup(t,{emit:o}){let n,s;[n,s]=e.withAsyncContext(()=>F.actions.fetchCategories()),await n,s();let l=e.ref({categories:[],prices:[],delivery:[],extra:[]});const a=(c,u)=>{o("updateFilters",{filterType:c,value:u})},d=()=>{o("resetFilters")},i={locale:"en",messages:{en:{categoriesTitle:"Category",categories:[],filters:{title:"Filters",price:{title:"Price",from:"From",to:"To"},filters:[],reset:"Reset Filters"}},ru:{categoriesTitle:"Категория",categories:[],filters:{title:"Фильтры",price:{title:"Цена",from:"От",to:"До"},filters:[],reset:"Сбросить фильтры"}}}};F.state.all.forEach(c=>{c.localization.forEach(u=>{i.messages[u.locale].categories.push(u.text)})});const{t:r}=pe.useI18n(i);return(c,u)=>(e.openBlock(),e.createElementBlock("div",Dt,[e.createElementVNode("h3",Pt,e.toDisplayString(e.unref(r)("filters.title")),1),Mt,e.createVNode(C,{class:"radius-small o-hidden br-1px br-solid br-grey mn-small",status:!0},{header:e.withCtx(()=>[e.createElementVNode("p",At,e.toDisplayString(e.unref(r)("categoriesTitle")),1)]),content:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(F.state.all,(m,_)=>(e.openBlock(),e.createBlock(V.Checkbox,{key:_,label:m.name,value:m.url,class:"w-100 mn-t-small mn-small bg-white radius-small pd-small",radio:e.unref(l).categories,onChange:k=>a("categories",m.url)},null,8,["label","value","radio","onChange"]))),128))]),_:1}),Ft,e.createVNode(C,{class:"radius-small o-hidden br-1px br-solid br-grey mn-small",status:!1},{header:e.withCtx(()=>[e.createElementVNode("p",Tt,e.toDisplayString(e.unref(r)("filters.price.title")),1)]),content:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.prices,(m,_)=>(e.openBlock(),e.createBlock(V.Checkbox,{key:_,label:m.label,value:m.value,class:"w-100 mn-t-small bg-white radius-small pd-small",radio:e.unref(l).prices,onChange:k=>a("prices",m.value)},null,8,["label","value","radio","onChange"]))),128))]),_:1}),qt,e.createVNode(C,{class:"radius-small o-hidden br-1px br-solid br-grey mn-small",status:!1},{header:e.withCtx(()=>[It]),content:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.deliveryOptions,(m,_)=>(e.openBlock(),e.createBlock(V.Checkbox,{key:_,label:m.label,value:m.value,class:"w-100 mn-t-small bg-white radius-small pd-small",radio:e.unref(l).delivery,onChange:k=>a("delivery",m.value)},null,8,["label","value","radio","onChange"]))),128))]),_:1}),Ut,e.createElementVNode("button",{onClick:d,class:"bg-main w-100 button"},e.toDisplayString(e.unref(r)("filters.reset")),1)]))}},jt={class:"cols-2-1_3 gap-thin pd-thin"},Ht={__name:"Products",setup(t){const o=g.useRoute();return g.useRouter(),(n,s)=>(e.openBlock(),e.createElementBlock("div",jt,[e.createVNode(Rt),e.createVNode(fe._sfc_main,{states:{empty:{title:"No Products Found",description:"Currently, there are no products available."}},store:{read:l=>Y.actions.read(l),state:Y.state},options:{limit:15,organization:e.unref(o).params._id}},{default:e.withCtx(({items:l})=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l,a=>(e.openBlock(),e.createBlock(be._sfc_main,{key:a._id,product:a,onClick:d=>n.$router.push({name:"Product Organization",params:{_id:e.unref(o).params._id,product:a._id}})},null,8,["product","onClick"]))),128))]),_:1},8,["states","store","options"])]))}};const Zt={class:"pd-small flex-nowrap flex"},Kt={class:"user-card__info"},Yt={class:"user-card__name"},Gt={class:"user-card__position"},Wt={__name:"DepartmentSub",props:{department:{type:Object,required:!0}},setup(t){return(o,n)=>(e.openBlock(),e.createElementBlock("div",Zt,[e.createElementVNode("div",Kt,[e.createElementVNode("p",Yt,e.toDisplayString(t.department.name?t.department.name:"Безымянный"),1),e.createElementVNode("p",Gt,e.toDisplayString(t.department.members?t.department.members.length:"0")+" человек",1)])]))}},j=y._export_sfc(Wt,[["__scopeId","data-v-d65b1483"]]);const A=t=>(e.pushScopeId("data-v-02b80617"),t=t(),e.popScopeId(),t),Jt={class:"radius-big o-hidden cols-2-1_3"},Qt={class:"pd-medium w-100"},Xt=A(()=>e.createElementVNode("path",{d:"M515.693 9.52082C510.095 3.91669 502.49 0.765625 494.563 0.765625C486.635 0.765625 479.036 3.91669 473.432 9.52082L48.7255 434.307C44.8244 438.214 42.0848 443.125 40.8088 448.496L0.939444 615.069C-1.47202 625.168 1.528 635.788 8.86652 643.132C16.2103 650.47 26.8305 653.47 36.9292 651.059L203.516 611.261H203.511C208.88 609.985 213.792 607.246 217.699 603.35L642.485 178.496C648.089 172.892 651.241 165.293 651.241 157.366C651.241 149.439 648.089 141.835 642.485 136.235L515.693 9.52082ZM113.76 453.708L388.307 179.161L472.828 263.682L198.281 538.229L113.76 453.708ZM87.1041 511.5L140.416 564.812L70.3014 581.614L87.1041 511.5ZM515.091 221.793L430.195 136.897L494.184 72.9075L579.08 157.429L515.091 221.793Z",fill:"black"},null,-1)),eo=[Xt],to=["innerHTML"],oo={class:"pd-small flex-v-center flex-nowrap flex"},no=A(()=>e.createElementVNode("h5",{class:"w-100"},"Contacts ",-1)),ao={class:"mn-r-small"},so=A(()=>e.createElementVNode("svg",{width:"14",height:"9",viewBox:"0 0 14 9",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[e.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M12.4697 0.469727L13.5304 1.53039L7.00006 8.06072L0.469727 1.53039L1.53039 0.469727L7.00006 5.9394L12.4697 0.469727Z",fill:"#8A8A8A"})],-1)),lo={key:0},ro={class:"pd-small flex-v-center flex-nowrap flex"},io=A(()=>e.createElementVNode("h5",{class:"w-100"},"Working Hours ",-1)),co={class:"mn-r-small"},uo=A(()=>e.createElementVNode("svg",{width:"14",height:"9",viewBox:"0 0 14 9",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[e.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M12.4697 0.469727L13.5304 1.53039L7.00006 8.06072L0.469727 1.53039L1.53039 0.469727L7.00006 5.9394L12.4697 0.469727Z",fill:"#8A8A8A"})],-1)),po={key:0},mo={__name:"CardDepartment",props:{department:Object,organization:Object},setup(t){const o=t;return(n,s)=>(e.openBlock(),e.createElementBlock("div",Jt,[e.createElementVNode("div",Qt,[(e.openBlock(),e.createElementBlock("svg",{onClick:s[0]||(s[0]=l=>n.$router.push(`/app/organization/${o.organization._id}/departments/${t.department._id}/edit`)),class:"i-regular pos-absolute pos-r-0 pos-t-0 t-transp",width:"652",height:"652",viewBox:"0 0 652 652",fill:"none",xmlns:"http://www.w3.org/2000/svg"},eo)),e.createElementVNode("h3",{onClick:s[1]||(s[1]=l=>n.$router.push(`/app/organization/${o.organization._id}/departments/${t.department._id}`)),class:"mn-small w-100",innerHTML:t.department.profile.name},null,8,to),e.createVNode(C,{class:"radius-small o-hidden br-1px br-solid br-grey mn-thin"},{header:e.withCtx(()=>[e.createElementVNode("div",oo,[no,e.createElementVNode("p",ao,e.toDisplayString(t.department.members.length)+" человек",1),so])]),content:e.withCtx(()=>[e.createElementVNode("ul",null,[t.department.members.length<1?(e.openBlock(),e.createElementBlock("li",lo,"В отделе еще нет участников")):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.department.members,(l,a)=>(e.openBlock(),e.createBlock(I,{class:"br-b br-solid br-grey",key:a,user:l.user,position:l.position,onClick:d=>n.$router.push(`/app/profile/${l.user._id}`)},null,8,["user","position","onClick"]))),128))])]),_:1}),e.createVNode(C,{class:"radius-small o-hidden br-1px br-solid br-grey mn-thin"},{header:e.withCtx(()=>[e.createElementVNode("div",ro,[io,e.createElementVNode("p",co,e.toDisplayString(t.department.subdepartments?t.department.subdepartments.length:0)+" отделов",1),uo])]),content:e.withCtx(()=>[e.createElementVNode("ul",null,[t.department.subdepartments.length<1?(e.openBlock(),e.createElementBlock("li",po,"В отделе еще нет подотделов")):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.department.subdepartments,(l,a)=>(e.openBlock(),e.createBlock(j,{onClick:d=>n.$router.push(`/app/organization/departments/${l._id}`),key:a,class:"br-b br-solid br-grey",department:l},null,8,["onClick","department"]))),128))])]),_:1})])]))}},se=y._export_sfc(mo,[["__scopeId","data-v-02b80617"]]),L=R.axios.create({baseURL:process.env.API_URL,withCredentials:!0});L.defaults.withCredentials=!0;const v=e.reactive({departments:[],department:{organization:"",profile:{photo:"",name:"",description:"",categories:[]},address:"",location:{lat:null,lng:null},worktime:[],delivery:[],payment:[],members:[],subdepartments:[]},error:null}),le={async readOne(t){await L.get(`/api/departments/get/${t}`).then(o=>{v.department=o.data,v.error=null}).catch(o=>{f.setError(o)})},async read(t){await L.get(`/api/departments/${t}`).then(o=>{console.log("Response:",o),v.departments=o.data,v.error=null}).catch(o=>{f.setError(o)})},async create(t,o){await L.post(`/api/departments/${t}/create`,o).then(n=>{v.error=null,v.department=n.data}).catch(n=>{f.setError(n)})},async update(t,o){await L.post(`/api/departments/${t}/update`,o).then(()=>{v.error=null}).catch(n=>{f.setError(n)})},async delete(t,o){await L.delete(`/api/departments/${t}/delete`,{data:{_id:o}}).then(()=>{v.error=null}).catch(n=>{f.setError(n)})}};e.watch(v,(t,o)=>{});const ho=Object.freeze(Object.defineProperty({__proto__:null,actions:le,state:v},Symbol.toStringTag,{value:"Module"})),_o={__name:"FeedDepartments",props:{organization:Object,units:Array,memberships:Array},async setup(t){let o,n;const s=t;e.ref("departments"),[o,n]=e.withAsyncContext(()=>le.read(s.organization._id)),await o,n();const l=e.computed(()=>{const a=v.departments,d=a.flatMap(i=>i.subdepartments.map(r=>r._id));return a.filter(i=>!d.includes(i._id))});return(a,d)=>(e.openBlock(),e.createBlock(e.Transition,{name:"slide-fade"},{default:e.withCtx(()=>[e.createElementVNode("div",null,[e.unref(l).length<1?(e.openBlock(),e.createBlock(q,{key:0,title:"You don't have any spots yet.",description:"Add spots to your hub.",action:"Add spot",callback:()=>a.$router.push(`/organization/${s.organization._id}/departments/create`)},null,8,["callback"])):e.createCommentVNode("",!0),e.createElementVNode("div",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(l),(i,r)=>(e.openBlock(),e.createBlock(se,{key:r,department:i,organization:t.organization,class:"radius-big bg-grey mn-thin"},null,8,["department","organization"]))),128)),e.unref(l).length>0&&E.state.user._id===t.organization.owner?(e.openBlock(),e.createElementBlock("button",{key:0,onClick:d[0]||(d[0]=i=>a.$router.push(`/organization/${s.organization._id}/departments/create`)),class:"mn-thin button w-100"}," Add spot ")):e.createCommentVNode("",!0)])])]),_:1}))}},O=R.axios.create({baseURL:process.env.API_URL,withCredentials:!0});O.defaults.withCredentials=!0;const $=e.reactive({invites:[],invite:null,error:null}),H={async read(t){await O.get(`/api/invites/${t}`).then(o=>{$.invites=o.data,$.error=null}).catch(o=>{f.setError(o)})},async readOne(t){await O.get(`/api/invites/get/${t}`).then(o=>{$.invite=o.data,E.state.user.phone=o.data.invitedPhone,E.state.user.email=o.data.invitedEmail}).catch(o=>{f.setError(o)})},async create(t,o){await O.post(`/api/invites/${t}/create`,o).then(()=>{$.error=null}).catch(n=>{f.setError(n)})},async update(t,o){await O.put(`/api/invites/${t}/update`,o).then(()=>{$.error=null}).catch(n=>{f.setError(n)})},async delete(t){await O.delete(`/api/invites/${t}/delete`).then(()=>{$.error=null}).catch(o=>{f.setError(o)})}};e.watch($,(t,o)=>{});const go=Object.freeze(Object.defineProperty({__proto__:null,actions:H,state:$},Symbol.toStringTag,{value:"Module"})),fo={class:"mn-medium radius-medium pd-semi bg-white"},bo=e.createElementVNode("h3",{class:"mn-medium"},"Добавить участников",-1),yo=e.createElementVNode("p",{class:"mn-small t-transp p-medium"},"Укажите email или телефон, чтобы отправить ссылку с приглашением:",-1),vo={class:"w-100 flex-nowrap flex"},ko={key:0,class:"mn-r-medium flex-v-center flex"},wo=["onClick"],$o=e.createElementVNode("p",{class:"t-blue mn-r-small"},"+ Добавить приглашение",-1),Eo=[$o],Vo=e.createElementVNode("span",null,"Отправить приглашения ",-1),re={__name:"MembersAdd",props:{organization:Object},emits:["send-invite"],setup(t,{emit:o}){const n=t,s=e.ref(null),l=e.ref([{contact:"",role:""}]);function a(){l.value.push({contact:"",role:""})}function d(c){l.value.splice(c,1)}async function i(c){await H.create(n.organization._id,l.value)}function r(){}return(c,u)=>(e.openBlock(),e.createElementBlock("div",null,[e.createElementVNode("section",fo,[bo,yo,(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.value,(m,_)=>(e.openBlock(),e.createElementBlock("div",{key:_,class:"br-1px br-solid br-grey flex radius-small mn-thin"},[e.createElementVNode("div",vo,[e.createVNode(w.Field,{field:m.contact,"onUpdate:field":k=>m.contact=k,placeholder:"Email или телефон",class:"w-100 bg-white",validation:s.value},null,8,["field","onUpdate:field","validation"]),_>0?(e.openBlock(),e.createElementBlock("div",ko,[e.createElementVNode("button",{onClick:k=>d(_),class:"button-small button"},"×",8,wo)])):e.createCommentVNode("",!0)]),e.createVNode(ye.Select,{options:[{name:"Директор",value:"director"},{name:"Менеджер",value:"manager"},{name:"Сотрудник",value:"member"}],prop:m,content:"role",placeholder:"Роль",size:"small",class:"w-80"},null,8,["prop"])]))),128)),e.createElementVNode("div",{onClick:a,class:"mn-small flex-v-center flex-nowrap flex"},Eo),e.createVNode(T._sfc_main,{submit:c.a=()=>i($.invites),callback:r,class:"mn-t-medium"},{default:e.withCtx(()=>[Vo]),_:1},8,["submit"])])]))}},Bo=Object.freeze(Object.defineProperty({__proto__:null,default:re},Symbol.toStringTag,{value:"Module"})),Co={class:"mn-big radius-medium bg-white"},No={key:0,class:"pd-semi"},xo={class:"br-grey br-1px br-solid radius-small flex-nowrap flex-v-center flex pd-medium"},So={class:"w-100 mn-r-small"},Lo={class:"t-transp"},Oo={key:0,class:"mn-l-medium flex-v-center flex"},zo=["onClick"],Do={key:1,class:"pd-semi"},Po={key:0},Mo={class:"br-grey br-1px br-solid radius-small mn-thin flex-nowrap flex-v-center flex pd-medium"},Ao={class:"w-100 mn-r-small"},Fo={class:"t-transp"},To={class:"mn-l-medium flex-v-center flex"},qo=["onClick"],Io={__name:"MembersList",props:{organization:Object,memberships:Array,invites:Array},emits:[["removeMember","removeInvite"]],setup(t,{emit:o}){const n=t,s=e.ref("members");function l(d,i){n.memberships.splice(d,1),o("removeMember",i)}function a(d,i){n.invites.splice(d,1),o("removeInvite",i)}return(d,i)=>(e.openBlock(),e.createElementBlock("section",Co,[e.createVNode(te._sfc_main,{selected:s.value,"onUpdate:selected":i[0]||(i[0]=r=>s.value=r),class:"br-grey br-b br-solid radius-small",tabs:[{name:"Участники",value:"members"},{name:"Приглашения",value:"invites"}]},null,8,["selected"]),s.value==="members"?(e.openBlock(),e.createElementBlock("div",No,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.memberships,(r,c)=>(e.openBlock(),e.createElementBlock("div",xo,[e.createElementVNode("span",So,e.toDisplayString(r.user.email)+" "+e.toDisplayString(r.user.phone),1),e.createElementVNode("span",Lo,e.toDisplayString(r.position),1),r.position!=="Основатель"?(e.openBlock(),e.createElementBlock("div",Oo,[e.createElementVNode("button",{onClick:u=>l(c,r),class:"button-small button"},"×",8,zo)])):e.createCommentVNode("",!0)]))),256))])):e.createCommentVNode("",!0),s.value==="invites"?(e.openBlock(),e.createElementBlock("div",Do,[t.invites.length<1?(e.openBlock(),e.createElementBlock("span",Po,"В организации нет приглашений")):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.invites,(r,c)=>(e.openBlock(),e.createElementBlock("div",Mo,[e.createElementVNode("span",Ao,e.toDisplayString(r.invitedEmail)+" "+e.toDisplayString(r.invitedPhone),1),e.createElementVNode("span",Fo,e.toDisplayString(r.status),1),e.createElementVNode("div",To,[e.createElementVNode("button",{onClick:u=>a(c,r),class:"button-small button"},"×",8,qo)])]))),256))])):e.createCommentVNode("",!0)]))}};const Uo={key:0,class:"pd-thin for-transition w-100"},Ro=e.createElementVNode("p",null,"34 members",-1),jo=[Ro],Ho={class:"pos-relative"},Zo={key:0},ie={__name:"Organization",setup(t){const o=g.useRouter(),n=g.useRoute();let s=n.query.tab?n.query.tab:"events";const l=e.ref(null);e.onMounted(async()=>{l.value=await h.actions.read({_id:n.params._id,user:E.state.user._id}),await P.actions.read(n.params._id)});const a=e.ref(s);return n.query.tab=a.value,e.watch(a,d=>{o.replace({query:{...n.query,tab:d}})}),(d,i)=>l.value?(e.openBlock(),e.createElementBlock("div",Uo,[e.createVNode(ae,{organization:h.state.current,user:E.state.user,class:"mn-semi"},null,8,["organization","user"]),e.createElementVNode("section",{onClick:i[0]||(i[0]=r=>e.unref(o).push({name:"Organization Members",params:{_id:e.unref(n).params._id}})),class:"mn-semi bg-grey radius-big pd-medium"},jo),e.createVNode(te._sfc_main,{selected:a.value,"onUpdate:selected":i[1]||(i[1]=r=>a.value=r),tabs:[{name:"Community",value:"community"},{name:"Products",value:"products"},{name:"Events",value:"events"},{name:"Spots",value:"spots"}],class:"mn-small o-hidden h5 radius-big bg-grey"},null,8,["selected"]),e.createElementVNode("div",Ho,[e.createVNode(e.Transition,{name:"slide-fade"},{default:e.withCtx(()=>[a.value==="community"?(e.openBlock(),e.createBlock(he._sfc_main,{key:0,user:E.state.user._id,owner:e.unref(n).params._id},null,8,["user","owner"])):e.createCommentVNode("",!0)]),_:1}),e.createVNode(e.Transition,{name:"slide-fade"},{default:e.withCtx(()=>[a.value==="events"?(e.openBlock(),e.createBlock(me._sfc_main,{key:0,user:E.state.user._id,owner:e.unref(n).params._id,sortOrder:"asc"},null,8,["user","owner"])):e.createCommentVNode("",!0)]),_:1}),e.createVNode(e.Transition,{name:"slide-fade"},{default:e.withCtx(()=>[a.value==="products"?(e.openBlock(),e.createBlock(Ht,{key:0,organization:h.state.current},null,8,["organization"])):e.createCommentVNode("",!0)]),_:1}),e.createVNode(e.Transition,{name:"slide-fade"},{default:e.withCtx(()=>[a.value==="spots"?(e.openBlock(),e.createElementBlock("div",Zo,[e.createVNode(nt,{organization:h.state.current,memberships:P.state.memberships},null,8,["organization","memberships"])])):e.createCommentVNode("",!0)]),_:1})])])):e.createCommentVNode("",!0)}},Ko=Object.freeze(Object.defineProperty({__proto__:null,default:ie},Symbol.toStringTag,{value:"Module"})),Yo={class:"for-transition w-100"},Go={id:"dash",class:"pd-medium bg-grey"},Wo={class:"mn-medium radius-medium pd-semi bg-white"},Jo={class:"flex-nowrap flex mn-small"},Qo={class:"w-100"},Xo=e.createElementVNode("path",{d:"M515.693 9.52082C510.095 3.91669 502.49 0.765625 494.563 0.765625C486.635 0.765625 479.036 3.91669 473.432 9.52082L48.7255 434.307C44.8244 438.214 42.0848 443.125 40.8088 448.496L0.939444 615.069C-1.47202 625.168 1.528 635.788 8.86652 643.132C16.2103 650.47 26.8305 653.47 36.9292 651.059L203.516 611.261H203.511C208.88 609.985 213.792 607.246 217.699 603.35L642.485 178.496C648.089 172.892 651.241 165.293 651.241 157.366C651.241 149.439 648.089 141.835 642.485 136.235L515.693 9.52082ZM113.76 453.708L388.307 179.161L472.828 263.682L198.281 538.229L113.76 453.708ZM87.1041 511.5L140.416 564.812L70.3014 581.614L87.1041 511.5ZM515.091 221.793L430.195 136.897L494.184 72.9075L579.08 157.429L515.091 221.793Z",fill:"black"},null,-1),en=[Xo],tn=["innerHTML"],on={class:"mn-medium radius-medium pd-semi bg-white"},nn=e.createElementVNode("h3",{class:"mn-regular"},"Команда",-1),an={key:0},sn={class:"mn-medium radius-medium pd-semi bg-white"},ln=e.createElementVNode("h3",{class:"mn-regular"},"Подотделы",-1),rn={key:0},ce={__name:"Department",async setup(t){let o,n;g.useRouter();const s=g.useRoute();return[o,n]=e.withAsyncContext(()=>B.readOne(s.params._id)),await o,n(),(l,a)=>(e.openBlock(),e.createElementBlock("div",Yo,[e.createElementVNode("div",Go,[e.createElementVNode("section",Wo,[e.createElementVNode("div",Jo,[e.createElementVNode("h2",Qo,e.toDisplayString(p.department.name),1),(e.openBlock(),e.createElementBlock("svg",{onClick:a[0]||(a[0]=d=>l.$router.push(`/app/organization/departments/${p.department._id}/edit`)),class:"i-regular t-transp",width:"652",height:"652",viewBox:"0 0 652 652",fill:"none",xmlns:"http://www.w3.org/2000/svg"},en))]),e.createElementVNode("p",{class:"t-transp p-big",innerHTML:p.department.description},null,8,tn)]),e.createElementVNode("section",on,[nn,e.createElementVNode("ul",null,[p.department.members.length<1?(e.openBlock(),e.createElementBlock("li",an,"В отделе еще нет участников")):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(p.department.members,(d,i)=>(e.openBlock(),e.createBlock(I,{class:"br-b br-solid br-grey",key:i,user:d.user,position:d.position,onClick:r=>l.$router.push(`/app/profile/${d.user._id}`)},null,8,["user","position","onClick"]))),128))])]),e.createElementVNode("section",sn,[ln,e.createElementVNode("ul",null,[p.department.subdepartments.length<1?(e.openBlock(),e.createElementBlock("li",rn,"В отделе еще нет подотделов")):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(p.department.subdepartments,(d,i)=>(e.openBlock(),e.createBlock(j,{onClick:r=>l.$router.push(`/app/organization/departments/${d._id}`),key:i,class:"br-b br-solid br-grey",department:d},null,8,["onClick","department"]))),128))])])])]))}},cn=Object.freeze(Object.defineProperty({__proto__:null,default:ce},Symbol.toStringTag,{value:"Module"})),dn={class:"for-transition pd-thin"},un=e.createElementVNode("h3",{class:"mn-small"},"Type of group",-1),pn=e.createElementVNode("p",{class:"mn-thin"},"Public groups are open to everyone, whereas in exclusive groups only members can post. If you wish to make a group private, select 'hidden'.",-1),mn=e.createElementVNode("h3",{class:"mn-small"},"Profile",-1),hn={class:"mn-thin radius-small w-100 h-10r bg-grey flex-center flex-column flex"},_n=e.createElementVNode("h4",null,"Upload photo",-1),gn=e.createElementVNode("h3",{class:"mn-small"},"Socials",-1),fn=e.createElementVNode("p",{class:"mn-thin"},"Please provide only the username for social media profiles, without full links.",-1),de={__name:"OrganizationEdit",async setup(t){let o,n;const s=g.useRoute(),l=g.useRouter();h.actions.reset(),s.params._id&&([o,n]=e.withAsyncContext(()=>h.actions.read({_id:s.params._id})),await o,n());const a=e.computed(()=>h.state.current);async function d(){s.params._id?await h.actions.update(s.params._id,a.value):await h.actions.create(h.state.current,E.state.user._id)}function i(){l.replace({name:"Organization",params:{_id:h.state.current._id}})}return(r,c)=>(e.openBlock(),e.createElementBlock("div",dn,[un,pn,e.createVNode(ke.SelectMulti,{modelValue:h.state.current.types,"onUpdate:modelValue":c[0]||(c[0]=u=>h.state.current.types=u),options:["public","exclusive","hidden"],multiple:!1,taggable:!1,placeholder:"Type to search or add type of organization",class:"mn-semi bg-grey pd-medium radius-small"},null,8,["modelValue"]),mn,e.createElementVNode("div",hn,[e.createVNode(ne._sfc_main,{photo:h.state.current.profile.photo,"onUpdate:photo":c[1]||(c[1]=u=>h.state.current.profile.photo=u),uploadPath:"organizations/"+h.state.current._id+"/avatars",class:"h-4r w-4r aspect-1x1 o-hidden mn-thin radius-extra"},null,8,["photo","uploadPath"]),_n]),e.createVNode(w.Field,{field:h.state.current.profile.name,"onUpdate:field":c[2]||(c[2]=u=>h.state.current.profile.name=u),placeholder:"Name of organization",class:"mn-thin bg-grey pd-medium radius-small"},null,8,["field"]),e.createVNode(w.Field,{field:h.state.current.profile.description,"onUpdate:field":c[3]||(c[3]=u=>h.state.current.profile.description=u),placeholder:"Brief description of your group",class:"mn-thin bg-grey pd-medium radius-small"},null,8,["field"]),e.createVNode(ve._sfc_main,{onTagsChanged:c[4]||(c[4]=u=>h.state.current.profile.tags=u),tags:h.state.current.profile.tags},null,8,["tags"]),gn,fn,e.createVNode(w.Field,{field:h.state.current.socials.instagram,"onUpdate:field":c[5]||(c[5]=u=>h.state.current.socials.instagram=u),label:"Instagram",placeholder:"",class:"mn-thin bg-grey pd-medium radius-small"},null,8,["field"]),e.createVNode(w.Field,{field:h.state.current.socials.twitter,"onUpdate:field":c[6]||(c[6]=u=>h.state.current.socials.twitter=u),label:"Twitter",placeholder:"",class:"mn-thin bg-grey pd-medium radius-small"},null,8,["field"]),e.createVNode(w.Field,{field:h.state.current.socials.facebook,"onUpdate:field":c[7]||(c[7]=u=>h.state.current.socials.facebook=u),label:"Facebook",placeholder:"",class:"mn-thin bg-grey pd-medium radius-small"},null,8,["field"]),e.createVNode(w.Field,{field:h.state.current.socials.telegram,"onUpdate:field":c[8]||(c[8]=u=>h.state.current.socials.telegram=u),label:"Telegram",placeholder:"",class:"mn-thin bg-grey pd-medium radius-small"},null,8,["field"]),e.createVNode(T._sfc_main,{submit:d,callback:i,class:"mn-thin"},{default:e.withCtx(()=>[e.createTextVNode("Save")]),_:1})]))}},G=Object.freeze(Object.defineProperty({__proto__:null,default:de},Symbol.toStringTag,{value:"Module"}));const bn={key:0,class:"t-transp mn-r-small"},yn=["placeholder","value"],vn={key:0,class:"mn-t-thin invalid-feedback"},kn={__name:"Address",props:{apiKey:{type:String,required:!0},label:null,placeholder:"Enter something here",field:null,location:{type:Object,default:{lat:48.6900735,lng:41.1620239}},address:{type:String,default:""}},emits:["update:address","update:location","update:country","update:state","update:city"],setup(t,{emit:o}){const n=t,s=e.ref(null);let l;const a=()=>{l=new google.maps.places.Autocomplete(s.value),l.addListener("place_changed",i)},d=()=>{l||a()},i=()=>{const r=l.getPlace();if(!r.geometry||!r.address_components)return;let c="",u="",m="";for(let N=0;N<r.address_components.length;N++){console.log(r.address_components);let b=r.address_components[N];b.types.includes("country")&&(c=b.long_name),b.types.includes("administrative_area_level_1")&&(u=b.long_name),b.types.includes("locality")&&(m=b.long_name)}const _=r.formatted_address,k={lat:r.geometry.location.lat(),lng:r.geometry.location.lng()};o("update:address",_),o("update:location",k),o("update:country",c),o("update:state",u),o("update:city",m)};return e.watchEffect(()=>{n.address!==s.value&&(s.value=n.address)}),e.onMounted(()=>{a()}),(r,c)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass([r.$attrs.class,"flex-nowrap flex"])},[t.label?(e.openBlock(),e.createElementBlock("div",bn,[e.createElementVNode("span",null,e.toDisplayString(t.label),1)])):e.createCommentVNode("",!0),e.createElementVNode("input",{ref_key:"addressInput",ref:s,class:"w-100",placeholder:t.placeholder,value:t.address,onInput:d},null,40,yn),e.createVNode(e.Transition,{mode:"out-in",name:"fade"},{default:e.withCtx(()=>[r.validation?(e.openBlock(),e.createElementBlock("div",vn," * "+e.toDisplayString(r.validation.message),1)):e.createCommentVNode("",!0)]),_:1})],2))}},wn=y._export_sfc(kn,[["__scopeId","data-v-faece1a6"]]);const $n=t=>(e.pushScopeId("data-v-29acef04"),t=t(),e.popScopeId(),t),En={class:"pos-relative map-container"},Vn=$n(()=>e.createElementVNode("svg",{class:"i-medium",width:"98",height:"98",viewBox:"0 0 98 98",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[e.createElementVNode("path",{d:"M50.0004 31.4995C39.7996 31.4995 31.5 39.7991 31.5 49.9999C31.5 60.2007 39.7996 68.5003 50.0004 68.5003C60.2012 68.5003 68.5008 60.2007 68.5008 49.9999C68.5008 39.7991 60.2012 31.4995 50.0004 31.4995ZM50.0004 63.7944C42.3941 63.7944 36.2059 57.6062 36.2059 49.9999C36.2059 42.3936 42.3941 36.2054 50.0004 36.2054C57.6067 36.2054 63.7949 42.3936 63.7949 49.9999C63.7949 57.6062 57.6067 63.7944 50.0004 63.7944Z",fill:"white"}),e.createElementVNode("path",{d:"M97.6471 47.6471H84.56C83.3977 30.4141 69.5859 16.6024 52.3529 15.44V2.35294C52.3529 1.05255 51.2988 0 50 0C48.6996 0 47.6471 1.05255 47.6471 2.35294V15.44C30.4141 16.6024 16.6024 30.4141 15.44 47.6471H2.35294C1.05255 47.6471 0 48.6996 0 50C0 51.2988 1.05255 52.3529 2.35294 52.3529H15.44C16.6024 69.5859 30.4141 83.3977 47.6471 84.56V97.6471C47.6471 98.9459 48.6996 100 50 100C51.2988 100 52.3529 98.9459 52.3529 97.6471V84.56C69.5859 83.3977 83.3977 69.5859 84.56 52.3529H97.6471C98.9459 52.3529 100 51.2988 100 50C100 48.6996 98.9459 47.6471 97.6471 47.6471ZM50 79.9435C33.4886 79.9435 20.0565 66.5114 20.0565 50C20.0565 33.4886 33.4886 20.0565 50 20.0565C66.5098 20.0565 79.9435 33.4886 79.9435 50C79.9435 66.5098 66.5098 79.9435 50 79.9435Z",fill:"white"})],-1)),Bn=[Vn],Cn={__name:"LocationMarker",props:{location:{type:Object,default:{lat:48.6900735,lng:41.1620239}},address:{type:String,default:""},apiKey:String},emits:["update:location","update:address","update:country","update:state","update:city"],setup(t,{emit:o}){const n=t,s=e.ref(null);let l,a;e.onMounted(()=>{l=new google.maps.Map(s.value,{center:n.location,zoom:15,mapTypeControl:!1,fullscreenControl:!1}),a=new google.maps.Marker({position:n.location,map:l,draggable:!0}),a.addListener("dragend",r=>{const c={lat:r.latLng.lat(),lng:r.latLng.lng()};o("update:location",c),d(c)})}),e.watchEffect(()=>{n.location&&a&&a.setPosition(new google.maps.LatLng(n.location.lat,n.location.lng))}),e.watchEffect(()=>{if(n.location&&l){const r=new google.maps.LatLng(n.location.lat,n.location.lng);l.setCenter(r)}});function d(r){new google.maps.Geocoder().geocode({location:r},(u,m)=>{if(m==="OK")if(u[0]){o("update:address",u[0].formatted_address);let _="",k="",N="";u[0].address_components.forEach(b=>{b.types.includes("country")&&(_=b.long_name),b.types.includes("administrative_area_level_1")&&(k=b.long_name),b.types.includes("locality")&&(N=b.long_name)}),o("update:country",_),o("update:state",k),o("update:city",N)}else console.error("No results found");else console.error("Geocoder failed due to: "+m)})}async function i(){navigator.geolocation?navigator.geolocation.getCurrentPosition(r=>{const c={lat:r.coords.latitude,lng:r.coords.longitude};o("update:location",c),d(c)},()=>{console.error("Error getting location")}):console.error("Geolocation is not supported by this browser.")}return(r,c)=>(e.openBlock(),e.createElementBlock("div",En,[e.createElementVNode("div",{ref_key:"mapContainer",ref:s,class:"w-100 h-100"},null,512),e.createElementVNode("button",{class:"pos-absolute pos-t-regular pos-r-regular i-semi bg-second radius-extra",onClick:i},Bn)]))}},Nn=y._export_sfc(Cn,[["__scopeId","data-v-29acef04"]]);var xn=Object.defineProperty,Sn=Object.defineProperties,Ln=Object.getOwnPropertyDescriptors,W=Object.getOwnPropertySymbols,On=Object.prototype.hasOwnProperty,zn=Object.prototype.propertyIsEnumerable,J=(t,o,n)=>o in t?xn(t,o,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[o]=n,x=(t,o)=>{for(var n in o||(o={}))On.call(o,n)&&J(t,n,o[n]);if(W)for(var n of W(o))zn.call(o,n)&&J(t,n,o[n]);return t},Q=(t,o)=>Sn(t,Ln(o));const Dn={props:{autoscroll:{type:Boolean,default:!0}},watch:{typeAheadPointer(){this.autoscroll&&this.maybeAdjustScroll()},open(t){this.autoscroll&&t&&this.$nextTick(()=>this.maybeAdjustScroll())}},methods:{maybeAdjustScroll(){var t;const o=((t=this.$refs.dropdownMenu)==null?void 0:t.children[this.typeAheadPointer])||!1;if(o){const n=this.getDropdownViewport(),{top:s,bottom:l,height:a}=o.getBoundingClientRect();if(s<n.top)return this.$refs.dropdownMenu.scrollTop=o.offsetTop;if(l>n.bottom)return this.$refs.dropdownMenu.scrollTop=o.offsetTop-(n.height-a)}},getDropdownViewport(){return this.$refs.dropdownMenu?this.$refs.dropdownMenu.getBoundingClientRect():{height:0,top:0,bottom:0}}}},Pn={data(){return{typeAheadPointer:-1}},watch:{filteredOptions(){for(let t=0;t<this.filteredOptions.length;t++)if(this.selectable(this.filteredOptions[t])){this.typeAheadPointer=t;break}},open(t){t&&this.typeAheadToLastSelected()},selectedValue(){this.open&&this.typeAheadToLastSelected()}},methods:{typeAheadUp(){for(let t=this.typeAheadPointer-1;t>=0;t--)if(this.selectable(this.filteredOptions[t])){this.typeAheadPointer=t;break}},typeAheadDown(){for(let t=this.typeAheadPointer+1;t<this.filteredOptions.length;t++)if(this.selectable(this.filteredOptions[t])){this.typeAheadPointer=t;break}},typeAheadSelect(){const t=this.filteredOptions[this.typeAheadPointer];t&&this.selectable(t)&&this.select(t)},typeAheadToLastSelected(){this.typeAheadPointer=this.selectedValue.length!==0?this.filteredOptions.indexOf(this.selectedValue[this.selectedValue.length-1]):-1}}},Mn={props:{loading:{type:Boolean,default:!1}},data(){return{mutableLoading:!1}},watch:{search(){this.$emit("search",this.search,this.toggleLoading)},loading(t){this.mutableLoading=t}},methods:{toggleLoading(t=null){return t==null?this.mutableLoading=!this.mutableLoading:this.mutableLoading=t}}},Z=(t,o)=>{const n=t.__vccOpts||t;for(const[s,l]of o)n[s]=l;return n},An={},Fn={xmlns:"http://www.w3.org/2000/svg",width:"10",height:"10"},Tn=e.createElementVNode("path",{d:"M6.895455 5l2.842897-2.842898c.348864-.348863.348864-.914488 0-1.263636L9.106534.261648c-.348864-.348864-.914489-.348864-1.263636 0L5 3.104545 2.157102.261648c-.348863-.348864-.914488-.348864-1.263636 0L.261648.893466c-.348864.348864-.348864.914489 0 1.263636L3.104545 5 .261648 7.842898c-.348864.348863-.348864.914488 0 1.263636l.631818.631818c.348864.348864.914773.348864 1.263636 0L5 6.895455l2.842898 2.842897c.348863.348864.914772.348864 1.263636 0l.631818-.631818c.348864-.348864.348864-.914489 0-1.263636L6.895455 5z"},null,-1),qn=[Tn];function In(t,o){return e.openBlock(),e.createElementBlock("svg",Fn,qn)}const Un=Z(An,[["render",In]]),Rn={},jn={xmlns:"http://www.w3.org/2000/svg",width:"14",height:"10"},Hn=e.createElementVNode("path",{d:"M9.211364 7.59931l4.48338-4.867229c.407008-.441854.407008-1.158247 0-1.60046l-.73712-.80023c-.407008-.441854-1.066904-.441854-1.474243 0L7 5.198617 2.51662.33139c-.407008-.441853-1.066904-.441853-1.474243 0l-.737121.80023c-.407008.441854-.407008 1.158248 0 1.600461l4.48338 4.867228L7 10l2.211364-2.40069z"},null,-1),Zn=[Hn];function Kn(t,o){return e.openBlock(),e.createElementBlock("svg",jn,Zn)}const Yn=Z(Rn,[["render",Kn]]),X={Deselect:Un,OpenIndicator:Yn},Gn={mounted(t,{instance:o}){if(o.appendToBody){const{height:n,top:s,left:l,width:a}=o.$refs.toggle.getBoundingClientRect();let d=window.scrollX||window.pageXOffset,i=window.scrollY||window.pageYOffset;t.unbindPosition=o.calculatePosition(t,o,{width:a+"px",left:d+l+"px",top:i+s+n+"px"}),document.body.appendChild(t)}},unmounted(t,{instance:o}){o.appendToBody&&(t.unbindPosition&&typeof t.unbindPosition=="function"&&t.unbindPosition(),t.parentNode&&t.parentNode.removeChild(t))}};function Wn(t){const o={};return Object.keys(t).sort().forEach(n=>{o[n]=t[n]}),JSON.stringify(o)}let Jn=0;function Qn(){return++Jn}const Xn={components:x({},X),directives:{appendToBody:Gn},mixins:[Dn,Pn,Mn],compatConfig:{MODE:3},emits:["open","close","update:modelValue","search","search:compositionstart","search:compositionend","search:keydown","search:blur","search:focus","search:input","option:created","option:selecting","option:selected","option:deselecting","option:deselected"],props:{modelValue:{},components:{type:Object,default:()=>({})},options:{type:Array,default(){return[]}},disabled:{type:Boolean,default:!1},clearable:{type:Boolean,default:!0},deselectFromDropdown:{type:Boolean,default:!1},searchable:{type:Boolean,default:!0},multiple:{type:Boolean,default:!1},placeholder:{type:String,default:""},transition:{type:String,default:"vs__fade"},clearSearchOnSelect:{type:Boolean,default:!0},closeOnSelect:{type:Boolean,default:!0},label:{type:String,default:"label"},autocomplete:{type:String,default:"off"},reduce:{type:Function,default:t=>t},selectable:{type:Function,default:t=>!0},getOptionLabel:{type:Function,default(t){return typeof t=="object"?t.hasOwnProperty(this.label)?t[this.label]:console.warn(`[vue-select warn]: Label key "option.${this.label}" does not exist in options object ${JSON.stringify(t)}.
2
2
  https://vue-select.org/api/props.html#getoptionlabel`):t}},getOptionKey:{type:Function,default(t){if(typeof t!="object")return t;try{return t.hasOwnProperty("id")?t.id:Wn(t)}catch(o){return console.warn(`[vue-select warn]: Could not stringify this option to generate unique key. Please provide'getOptionKey' prop to return a unique key for each option.
3
- https://vue-select.org/api/props.html#getoptionkey`,t,o)}}},onTab:{type:Function,default:function(){this.selectOnTab&&!this.isComposing&&this.typeAheadSelect()}},taggable:{type:Boolean,default:!1},tabindex:{type:Number,default:null},pushTags:{type:Boolean,default:!1},filterable:{type:Boolean,default:!0},filterBy:{type:Function,default(t,o,n){return(o||"").toLocaleLowerCase().indexOf(n.toLocaleLowerCase())>-1}},filter:{type:Function,default(t,o){return t.filter(n=>{let s=this.getOptionLabel(n);return typeof s=="number"&&(s=s.toString()),this.filterBy(n,s,o)})}},createOption:{type:Function,default(t){return typeof this.optionList[0]=="object"?{[this.label]:t}:t}},resetOnOptionsChange:{default:!1,validator:t=>["function","boolean"].includes(typeof t)},clearSearchOnBlur:{type:Function,default:function({clearSearchOnSelect:t,multiple:o}){return t&&!o}},noDrop:{type:Boolean,default:!1},inputId:{type:String},dir:{type:String,default:"auto"},selectOnTab:{type:Boolean,default:!1},selectOnKeyCodes:{type:Array,default:()=>[13]},searchInputQuerySelector:{type:String,default:"[type=search]"},mapKeydown:{type:Function,default:(t,o)=>t},appendToBody:{type:Boolean,default:!1},calculatePosition:{type:Function,default(t,o,{width:n,top:s,left:l}){t.style.top=s,t.style.left=l,t.style.width=n}},dropdownShouldOpen:{type:Function,default({noDrop:t,open:o,mutableLoading:n}){return t?!1:o&&!n}},uid:{type:[String,Number],default:()=>Qn()}},data(){return{search:"",open:!1,isComposing:!1,pushedTags:[],_value:[],deselectButtons:[]}},computed:{isReducingValues(){return this.$props.reduce!==this.$options.props.reduce.default},isTrackingValues(){return typeof this.modelValue>"u"||this.isReducingValues},selectedValue(){let t=this.modelValue;return this.isTrackingValues&&(t=this.$data._value),t!=null&&t!==""?[].concat(t):[]},optionList(){return this.options.concat(this.pushTags?this.pushedTags:[])},searchEl(){return this.$slots.search?this.$refs.selectedOptions.querySelector(this.searchInputQuerySelector):this.$refs.search},scope(){const t={search:this.search,loading:this.loading,searching:this.searching,filteredOptions:this.filteredOptions};return{search:{attributes:x({disabled:this.disabled,placeholder:this.searchPlaceholder,tabindex:this.tabindex,readonly:!this.searchable,id:this.inputId,"aria-autocomplete":"list","aria-labelledby":`vs${this.uid}__combobox`,"aria-controls":`vs${this.uid}__listbox`,ref:"search",type:"search",autocomplete:this.autocomplete,value:this.search},this.dropdownOpen&&this.filteredOptions[this.typeAheadPointer]?{"aria-activedescendant":`vs${this.uid}__option-${this.typeAheadPointer}`}:{}),events:{compositionstart:()=>this.isComposing=!0,compositionend:()=>this.isComposing=!1,keydown:this.onSearchKeyDown,blur:this.onSearchBlur,focus:this.onSearchFocus,input:o=>this.search=o.target.value}},spinner:{loading:this.mutableLoading},noOptions:{search:this.search,loading:this.mutableLoading,searching:this.searching},openIndicator:{attributes:{ref:"openIndicator",role:"presentation",class:"vs__open-indicator"}},listHeader:t,listFooter:t,header:Q(x({},t),{deselect:this.deselect}),footer:Q(x({},t),{deselect:this.deselect})}},childComponents(){return x(x({},X),this.components)},stateClasses(){return{"vs--open":this.dropdownOpen,"vs--single":!this.multiple,"vs--multiple":this.multiple,"vs--searching":this.searching&&!this.noDrop,"vs--searchable":this.searchable&&!this.noDrop,"vs--unsearchable":!this.searchable,"vs--loading":this.mutableLoading,"vs--disabled":this.disabled}},searching(){return!!this.search},dropdownOpen(){return this.dropdownShouldOpen(this)},searchPlaceholder(){return this.isValueEmpty&&this.placeholder?this.placeholder:void 0},filteredOptions(){const t=[].concat(this.optionList);if(!this.filterable&&!this.taggable)return t;const o=this.search.length?this.filter(t,this.search,this):t;if(this.taggable&&this.search.length){const n=this.createOption(this.search);this.optionExists(n)||o.unshift(n)}return o},isValueEmpty(){return this.selectedValue.length===0},showClearButton(){return!this.multiple&&this.clearable&&!this.open&&!this.isValueEmpty}},watch:{options(t,o){const n=()=>typeof this.resetOnOptionsChange=="function"?this.resetOnOptionsChange(t,o,this.selectedValue):this.resetOnOptionsChange;!this.taggable&&n()&&this.clearSelection(),this.modelValue&&this.isTrackingValues&&this.setInternalValueFromOptions(this.modelValue)},modelValue:{immediate:!0,handler(t){this.isTrackingValues&&this.setInternalValueFromOptions(t)}},multiple(){this.clearSelection()},open(t){this.$emit(t?"open":"close")}},created(){this.mutableLoading=this.loading},methods:{setInternalValueFromOptions(t){Array.isArray(t)?this.$data._value=t.map(o=>this.findOptionFromReducedValue(o)):this.$data._value=this.findOptionFromReducedValue(t)},select(t){this.$emit("option:selecting",t),this.isOptionSelected(t)?this.deselectFromDropdown&&(this.clearable||this.multiple&&this.selectedValue.length>1)&&this.deselect(t):(this.taggable&&!this.optionExists(t)&&(this.$emit("option:created",t),this.pushTag(t)),this.multiple&&(t=this.selectedValue.concat(t)),this.updateValue(t),this.$emit("option:selected",t)),this.onAfterSelect(t)},deselect(t){this.$emit("option:deselecting",t),this.updateValue(this.selectedValue.filter(o=>!this.optionComparator(o,t))),this.$emit("option:deselected",t)},clearSelection(){this.updateValue(this.multiple?[]:null)},onAfterSelect(t){this.closeOnSelect&&(this.open=!this.open,this.searchEl.blur()),this.clearSearchOnSelect&&(this.search="")},updateValue(t){typeof this.modelValue>"u"&&(this.$data._value=t),t!==null&&(Array.isArray(t)?t=t.map(o=>this.reduce(o)):t=this.reduce(t)),this.$emit("update:modelValue",t)},toggleDropdown(t){const o=t.target!==this.searchEl;o&&t.preventDefault();const n=[...this.deselectButtons||[],this.$refs.clearButton];if(this.searchEl===void 0||n.filter(Boolean).some(s=>s.contains(t.target)||s===t.target)){t.preventDefault();return}this.open&&o?this.searchEl.blur():this.disabled||(this.open=!0,this.searchEl.focus())},isOptionSelected(t){return this.selectedValue.some(o=>this.optionComparator(o,t))},isOptionDeselectable(t){return this.isOptionSelected(t)&&this.deselectFromDropdown},optionComparator(t,o){return this.getOptionKey(t)===this.getOptionKey(o)},findOptionFromReducedValue(t){const o=s=>JSON.stringify(this.reduce(s))===JSON.stringify(t),n=[...this.options,...this.pushedTags].filter(o);return n.length===1?n[0]:n.find(s=>this.optionComparator(s,this.$data._value))||t},closeSearchOptions(){this.open=!1,this.$emit("search:blur")},maybeDeleteValue(){if(!this.searchEl.value.length&&this.selectedValue&&this.selectedValue.length&&this.clearable){let t=null;this.multiple&&(t=[...this.selectedValue.slice(0,this.selectedValue.length-1)]),this.updateValue(t)}},optionExists(t){return this.optionList.some(o=>this.optionComparator(o,t))},normalizeOptionForSlot(t){return typeof t=="object"?t:{[this.label]:t}},pushTag(t){this.pushedTags.push(t)},onEscape(){this.search.length?this.search="":this.searchEl.blur()},onSearchBlur(){if(this.mousedown&&!this.searching)this.mousedown=!1;else{const{clearSearchOnSelect:t,multiple:o}=this;this.clearSearchOnBlur({clearSearchOnSelect:t,multiple:o})&&(this.search=""),this.closeSearchOptions();return}if(this.search.length===0&&this.options.length===0){this.closeSearchOptions();return}},onSearchFocus(){this.open=!0,this.$emit("search:focus")},onMousedown(){this.mousedown=!0},onMouseUp(){this.mousedown=!1},onSearchKeyDown(t){const o=l=>(l.preventDefault(),!this.isComposing&&this.typeAheadSelect()),n={8:l=>this.maybeDeleteValue(),9:l=>this.onTab(),27:l=>this.onEscape(),38:l=>(l.preventDefault(),this.typeAheadUp()),40:l=>(l.preventDefault(),this.typeAheadDown())};this.selectOnKeyCodes.forEach(l=>n[l]=o);const s=this.mapKeydown(n,this);if(typeof s[t.keyCode]=="function")return s[t.keyCode](t)}}},ea=["dir"],ta=["id","aria-expanded","aria-owns"],oa={ref:"selectedOptions",class:"vs__selected-options"},na=["disabled","title","aria-label","onClick"],aa={ref:"actions",class:"vs__actions"},sa=["disabled"],la={class:"vs__spinner"},ra=["id"],ia=["id","aria-selected","onMouseover","onClick"],ca={key:0,class:"vs__no-options"},da=e.createTextVNode(" Sorry, no matching options. "),ua=["id"];function pa(t,o,n,s,l,a){const d=e.resolveDirective("append-to-body");return e.openBlock(),e.createElementBlock("div",{dir:n.dir,class:e.normalizeClass(["v-select",a.stateClasses])},[e.renderSlot(t.$slots,"header",e.normalizeProps(e.guardReactiveProps(a.scope.header))),e.createElementVNode("div",{id:`vs${n.uid}__combobox`,ref:"toggle",class:"vs__dropdown-toggle",role:"combobox","aria-expanded":a.dropdownOpen.toString(),"aria-owns":`vs${n.uid}__listbox`,"aria-label":"Search for option",onMousedown:o[1]||(o[1]=i=>a.toggleDropdown(i))},[e.createElementVNode("div",oa,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.selectedValue,(i,r)=>e.renderSlot(t.$slots,"selected-option-container",{option:a.normalizeOptionForSlot(i),deselect:a.deselect,multiple:n.multiple,disabled:n.disabled},()=>[(e.openBlock(),e.createElementBlock("span",{key:n.getOptionKey(i),class:"vs__selected"},[e.renderSlot(t.$slots,"selected-option",e.normalizeProps(e.guardReactiveProps(a.normalizeOptionForSlot(i))),()=>[e.createTextVNode(e.toDisplayString(n.getOptionLabel(i)),1)]),n.multiple?(e.openBlock(),e.createElementBlock("button",{key:0,ref_for:!0,ref:c=>l.deselectButtons[r]=c,disabled:n.disabled,type:"button",class:"vs__deselect",title:`Deselect ${n.getOptionLabel(i)}`,"aria-label":`Deselect ${n.getOptionLabel(i)}`,onClick:c=>a.deselect(i)},[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(a.childComponents.Deselect)))],8,na)):e.createCommentVNode("",!0)]))])),256)),e.renderSlot(t.$slots,"search",e.normalizeProps(e.guardReactiveProps(a.scope.search)),()=>[e.createElementVNode("input",e.mergeProps({class:"vs__search"},a.scope.search.attributes,e.toHandlers(a.scope.search.events)),null,16)])],512),e.createElementVNode("div",aa,[e.withDirectives(e.createElementVNode("button",{ref:"clearButton",disabled:n.disabled,type:"button",class:"vs__clear",title:"Clear Selected","aria-label":"Clear Selected",onClick:o[0]||(o[0]=(...i)=>a.clearSelection&&a.clearSelection(...i))},[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(a.childComponents.Deselect)))],8,sa),[[e.vShow,a.showClearButton]]),e.renderSlot(t.$slots,"open-indicator",e.normalizeProps(e.guardReactiveProps(a.scope.openIndicator)),()=>[n.noDrop?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(e.resolveDynamicComponent(a.childComponents.OpenIndicator),e.normalizeProps(e.mergeProps({key:0},a.scope.openIndicator.attributes)),null,16))]),e.renderSlot(t.$slots,"spinner",e.normalizeProps(e.guardReactiveProps(a.scope.spinner)),()=>[e.withDirectives(e.createElementVNode("div",la,"Loading...",512),[[e.vShow,t.mutableLoading]])])],512)],40,ta),e.createVNode(e.Transition,{name:n.transition},{default:e.withCtx(()=>[a.dropdownOpen?e.withDirectives((e.openBlock(),e.createElementBlock("ul",{id:`vs${n.uid}__listbox`,ref:"dropdownMenu",key:`vs${n.uid}__listbox`,class:"vs__dropdown-menu",role:"listbox",tabindex:"-1",onMousedown:o[2]||(o[2]=e.withModifiers((...i)=>a.onMousedown&&a.onMousedown(...i),["prevent"])),onMouseup:o[3]||(o[3]=(...i)=>a.onMouseUp&&a.onMouseUp(...i))},[e.renderSlot(t.$slots,"list-header",e.normalizeProps(e.guardReactiveProps(a.scope.listHeader))),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.filteredOptions,(i,r)=>(e.openBlock(),e.createElementBlock("li",{id:`vs${n.uid}__option-${r}`,key:n.getOptionKey(i),role:"option",class:e.normalizeClass(["vs__dropdown-option",{"vs__dropdown-option--deselect":a.isOptionDeselectable(i)&&r===t.typeAheadPointer,"vs__dropdown-option--selected":a.isOptionSelected(i),"vs__dropdown-option--highlight":r===t.typeAheadPointer,"vs__dropdown-option--disabled":!n.selectable(i)}]),"aria-selected":r===t.typeAheadPointer?!0:null,onMouseover:c=>n.selectable(i)?t.typeAheadPointer=r:null,onClick:e.withModifiers(c=>n.selectable(i)?a.select(i):null,["prevent","stop"])},[e.renderSlot(t.$slots,"option",e.normalizeProps(e.guardReactiveProps(a.normalizeOptionForSlot(i))),()=>[e.createTextVNode(e.toDisplayString(n.getOptionLabel(i)),1)])],42,ia))),128)),a.filteredOptions.length===0?(e.openBlock(),e.createElementBlock("li",ca,[e.renderSlot(t.$slots,"no-options",e.normalizeProps(e.guardReactiveProps(a.scope.noOptions)),()=>[da])])):e.createCommentVNode("",!0),e.renderSlot(t.$slots,"list-footer",e.normalizeProps(e.guardReactiveProps(a.scope.listFooter)))],40,ra)),[[d]]):(e.openBlock(),e.createElementBlock("ul",{key:1,id:`vs${n.uid}__listbox`,role:"listbox",style:{display:"none",visibility:"hidden"}},null,8,ua))]),_:3},8,["name"]),e.renderSlot(t.$slots,"footer",e.normalizeProps(e.guardReactiveProps(a.scope.footer)))],10,ea)}const ma=Z(Xn,[["render",pa]]);const ha={class:"w-100"},_a={class:"flex"},ga={class:"mn-regular"},fa={class:"flex-column flex-wrap block"},ba={key:0,class:"w-100"},ya={class:"w-100 flex-center flex-nowrap flex"},va={class:"mn-r-regular w-100"},ka=["onClick"],wa={key:0,class:"mn-t-small mn-small w-100"},$a={__name:"EditArray",props:{name:Object,items:Array},emits:["add","remove"],setup(t,{emit:o}){g.useRouter(),g.useRoute();let n=e.reactive([]);e.toRefs(n);const s=e.ref(null),l=e.ref(null),a=e.ref(null);e.computed(()=>{if(s.value===null||a.value===null||a.value==="")return!0;if(s.value.modifications.length>0)return l.value===null});function d(i){store.commit("leftovers/deleteItemFromLeftover",i)}return(i,r)=>(e.openBlock(),e.createElementBlock("div",ha,[e.createElementVNode("div",_a,[e.createElementVNode("h3",ga,e.toDisplayString(t.name),1)]),e.createElementVNode("ul",fa,[t.items.length<1?(e.openBlock(),e.createElementBlock("span",ba,"Вы еще не добавили позиции")):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.items,(c,u)=>(e.openBlock(),e.createElementBlock("li",{key:c._id,class:"w-100"},[e.createElementVNode("div",ya,[e.createElementVNode("span",va,e.toDisplayString(c.name),1),e.createElementVNode("a",{class:"w-20 button",onClick:m=>d(c)},"Удалить",8,ka)]),u!=t.items.length-1?(e.openBlock(),e.createElementBlock("hr",wa)):e.createCommentVNode("",!0)]))),128))])]))}};const Ea={class:"br-grey radius-small mn-small"},Va={key:1,class:"pd-small br-grey br-1px br-solid"},Ba=["disabled"],Ca={__name:"DepartmentMemberModify",props:{isPopupOpen:Boolean,department:Number,departments:Array,maindepartment:Object,alldepartments:Array},emits:["callback","remove"],setup(t,{emit:o}){const n=t,s=e.ref({subdepartment:null});n.department!==null&&(s.value=n.departments[n.department]);function l(r,c,u){return r.filter(m=>!(c.some(_=>_._id===m._id)||u._id===m._id))}const a=e.computed(()=>l(n.alldepartments,n.departments,n.maindepartment));async function d(){n.departments.push(s.value.subdepartment),o("callback")}async function i(){n.departments.splice(n.department,1),o("callback")}return(r,c)=>(e.openBlock(),e.createElementBlock("div",null,[e.createElementVNode("div",Ea,[n.department===null?(e.openBlock(),e.createBlock(e.unref(ma),{key:0,modelValue:s.value.subdepartment,"onUpdate:modelValue":c[0]||(c[0]=u=>s.value.subdepartment=u),options:e.unref(a),"get-option-label":u=>u.name,class:"w-100 mn-small"},null,8,["modelValue","options","get-option-label"])):(e.openBlock(),e.createElementBlock("div",Va,e.toDisplayString(s.value.name?s.value.name:"Безымянный"),1))]),n.department===null?(e.openBlock(),e.createElementBlock("button",{key:0,disabled:!s.value.subdepartment,onClick:d,class:"w-100 button bg-second t-white"}," Добавить отдел ",8,Ba)):e.createCommentVNode("",!0),n.department!==null?(e.openBlock(),e.createElementBlock("button",{key:1,onClick:i,class:"w-100 button bg-fourth t-white"}," Удалить отдел ")):e.createCommentVNode("",!0)]))}},Na=y._export_sfc(Ca,[["__scopeId","data-v-21f393e1"]]);const D=t=>(e.pushScopeId("data-v-6a9ce43d"),t=t(),e.popScopeId(),t),xa={class:"for-transition w-100"},Sa={class:"pd-b-zero pd-t-zero pd-thin"},La={class:"pd-thin"},Oa={class:"flex-nowrap flex bg-grey pd-medium radius-big"},za={key:0,class:"mn-r-auto"},Da={key:1,class:"mn-r-auto"},Pa={class:"flex-nowrap flex pd-thin"},Ma={class:"pd-b-zero pd-t-zero pd-thin cols-2 gap-thin"},Aa={class:"flex-stretch flex-column flex"},Fa={class:"mn-thin bg-grey pd-medium o-hidden radius-big"},Ta=D(()=>e.createElementVNode("h3",{class:"mn-semi"},"Profile",-1)),qa={class:"radius-small flex-nowrap flex"},Ia={class:"w-100 flex-child-grow-1 flex-child"},Ua={class:"bg-grey pd-medium o-hidden radius-big"},Ra=D(()=>e.createElementVNode("h3",{class:"mn-semi"},"Details",-1)),ja=D(()=>e.createElementVNode("p",{class:"p-medium mn-small"},"Please the available delivery options:",-1)),Ha={class:"mn-medium flex-nowrap flex"},Za=D(()=>e.createElementVNode("p",{class:"p-medium mn-small"},"Please select the available payment methods:",-1)),Ka={class:"flex-nowrap flex"},Ya={class:"bg-grey pd-medium o-hidden radius-big"},Ga=D(()=>e.createElementVNode("h3",{class:"mn-semi"},"Location",-1)),Wa=D(()=>e.createElementVNode("p",{class:"mn-small p-medium"},"Or choose on map:",-1)),Ja={class:"flex-nowrap flex pd-thin"},Qa={__name:"DepartmentEdit",setup(t){const o=g.useRouter(),n=g.useRoute();e.ref("details"),e.ref(!1);async function s(){n.params.department&&await P.actions.read(n.params.department),e.ref(P.state.memberships),await B.read(n.params._id),n.params.department&&await B.readOne(n.params.department)}s(),e.ref(p.department.members),e.ref(!1),e.ref(null),e.ref(!1),e.ref(null);async function l(){n.params.department&&await B.update(n.params._id,p.department),n.params.department||await B.create(n.params._id,p.department)}function a(){o.replace({name:"Department",params:{_id:n.params._id,department:p.department._id}})}async function d(){await B.delete(n.params._id,p.department)}return(i,r)=>(e.openBlock(),e.createElementBlock("div",xa,[e.createElementVNode("div",Sa,[e.createVNode(F._sfc_main,{class:"pd-medium bg-grey radius-big"})]),e.createElementVNode("div",La,[e.createElementVNode("header",Oa,[e.unref(n).params.department?(e.openBlock(),e.createElementBlock("h1",za,"Edit Spot")):(e.openBlock(),e.createElementBlock("h1",Da,"Create Spot")),e.createElementVNode("section",Pa,[e.createVNode(T._sfc_main,{submit:l,callback:a},{default:e.withCtx(()=>[e.createTextVNode("Save Spot")]),_:1})])])]),e.createElementVNode("div",Ma,[e.createElementVNode("div",Aa,[e.createElementVNode("div",Fa,[Ta,e.createElementVNode("div",qa,[e.createVNode(ne._sfc_main,{photo:p.department.profile.photo,"onUpdate:photo":r[0]||(r[0]=c=>p.department.profile.photo=c),uploadPath:"organizations/"+p.department.name+"/avatars",class:"w-8r aspect-1x1 o-hidden mn-r-small radius-extra"},null,8,["photo","uploadPath"]),e.createElementVNode("div",Ia,[e.createVNode(w.Field,{field:p.department.profile.name,"onUpdate:field":r[1]||(r[1]=c=>p.department.profile.name=c),label:"Name",placeholder:"Spot Name",class:"mn-small bg-white radius-small pd-medium",validation:i.organizationName},null,8,["field","validation"]),e.createVNode(w.Field,{field:p.department.profile.description,"onUpdate:field":r[2]||(r[2]=c=>p.department.profile.description=c),label:"Description",placeholder:"Spot description (max 120 symbols)",class:"bg-white radius-small pd-medium",validation:i.organizationName},null,8,["field","validation"])])])]),e.createElementVNode("div",Ua,[Ra,ja,e.createElementVNode("div",Ha,[e.createVNode(V.Checkbox,{label:"Pickup",name:"Delivery",value:"pickup",class:"w-100 mn-r-small bg-white radius-small pd-small",radio:p.department.delivery},null,8,["radio"]),e.createVNode(V.Checkbox,{label:"Delivery",name:"Delivery",value:"courier",class:"w-100 mn-r-small bg-white radius-small pd-small",radio:p.department.delivery},null,8,["radio"]),e.createVNode(V.Checkbox,{label:"Post",name:"Delivery",value:"post",class:"w-100 bg-white radius-small pd-small",radio:p.department.delivery},null,8,["radio"])]),Za,e.createElementVNode("div",Ka,[e.createVNode(V.Checkbox,{label:"Cash",name:"Payment",value:"cash",class:"w-100 mn-r-small bg-white radius-small pd-small",radio:p.department.payment},null,8,["radio"]),e.createVNode(V.Checkbox,{label:"Bank Transfer",name:"Payment",value:"bank",class:"w-100 mn-r-small bg-white radius-small pd-small",radio:p.department.payment},null,8,["radio"]),e.createVNode(V.Checkbox,{label:"Crypto",name:"Payment",value:"crypto",class:"w-100 bg-white radius-small pd-small",radio:p.department.payment},null,8,["radio"])])])]),e.createElementVNode("div",Ya,[Ga,e.createVNode(wn,{apiKey:i.GOOGLE_MAPS_API_KEY,address:p.department.address,location:p.department.location,label:"Address",placeholder:"Enter delivery address",class:"bg-white radius-small pd-small mn-small","onUpdate:location":r[3]||(r[3]=c=>{p.department.location=c}),"onUpdate:address":r[4]||(r[4]=c=>{p.department.address=c})},null,8,["apiKey","address","location"]),Wa,e.createVNode(Nn,{address:p.department.address,location:p.department.location,apiKey:i.GOOGLE_MAPS_API_KEY,class:"radius-big o-hidden","onUpdate:location":r[5]||(r[5]=c=>{p.department.location=c}),"onUpdate:address":r[6]||(r[6]=c=>{p.department.address=c})},null,8,["address","location","apiKey"])])]),e.createElementVNode("section",Ja,[e.createVNode(T._sfc_main,{submit:d,callback:i.redirectToDash,class:"bg-grey"},{default:e.withCtx(()=>[e.createTextVNode("Delete Spot")]),_:1},8,["callback"])])]))}},ue=y._export_sfc(Qa,[["__scopeId","data-v-6a9ce43d"]]),ee=Object.freeze(Object.defineProperty({__proto__:null,default:ue},Symbol.toStringTag,{value:"Module"})),Xa={class:"unit"},es={class:"unit-details"},ts={key:0},os={class:"subunits"},ns={__name:"Unit",props:{unit:{type:Object,required:!0},editMode:{type:Boolean,required:!0}},setup(t){const o=t,n=e.ref({...o.unit});e.watch(o.unit,()=>{n.value={...o.unit}});async function s(){emit("unit-updated",n.value)}async function l(){emit("subunit-added",o.unit._id)}return(a,d)=>{const i=e.resolveComponent("unit-component");return e.openBlock(),e.createElementBlock("div",Xa,[e.createElementVNode("div",es,[e.createElementVNode("h3",null,e.toDisplayString(t.unit.name),1),e.createElementVNode("p",null,e.toDisplayString(t.unit.description),1),t.editMode?(e.openBlock(),e.createElementBlock("div",ts,[e.withDirectives(e.createElementVNode("input",{"onUpdate:modelValue":d[0]||(d[0]=r=>n.value.name=r),placeholder:"Название отдела"},null,512),[[e.vModelText,n.value.name]]),e.withDirectives(e.createElementVNode("input",{"onUpdate:modelValue":d[1]||(d[1]=r=>n.value.description=r),placeholder:"Описание отдела"},null,512),[[e.vModelText,n.value.description]]),e.createElementVNode("button",{onClick:s},"Сохранить"),e.createElementVNode("button",{onClick:l},"Добавить подотдел")])):e.createCommentVNode("",!0)]),e.createElementVNode("div",os,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.unit.subunits,(r,c)=>(e.openBlock(),e.createBlock(i,{key:c,unit:r,"edit-mode":t.editMode},null,8,["unit","edit-mode"]))),128))])])}}};const as={class:"for-transition bg-white radius-big w-100"},ss={class:""},ls={key:1,class:"cols-1"},rs={__name:"Organizations",props:{owner:{type:String,default:null},user:{type:[String,Number],default:null},onlyuser:{type:[String,Number],default:null}},async setup(t){let o,n;const s=t,l=e.ref(null);l.value=([o,n]=e.withAsyncContext(()=>h.actions.read({owner:s.owner,user:s.user,onlyuser:s.onlyuser})),o=await o,n(),o);const a=g.useRouter(),d=g.useRoute();let i=d.query.tab?d.query.tab:"details";const r=e.ref(i);return d.query.tab=r.value,e.watch(r,c=>{a.replace({query:{...d.query,tab:c}})}),(c,u)=>(e.openBlock(),e.createElementBlock("div",as,[e.createElementVNode("div",ss,[l.value<1?(e.openBlock(),e.createBlock(q,{key:0,title:"You Haven't Joined Any Organization Yet",description:"Weeder is all about community. Join an organization or maybe you want to create your own?",action:"Create organization",callback:c.a=()=>c.$router.push("/app/organization/create/details")},null,8,["callback"])):(e.openBlock(),e.createElementBlock("div",ls,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.value,m=>(e.openBlock(),e.createBlock(oe._sfc_main,{key:m._id,organization:m,user:E.state.user,onUpdateMembership:c.handleMembershipUpdate,class:e.normalizeClass(["w-100",{"mn-r-small":c.index!==l.value.length-1}])},null,8,["organization","user","onUpdateMembership","class"]))),128))]))])]))}};const is=t=>(e.pushScopeId("data-v-20739d92"),t=t(),e.popScopeId(),t),cs={class:"documents"},ds=is(()=>e.createElementVNode("h3",{class:"mn-small"},"Список документов",-1)),us={class:"mn-big cols-4"},ps=["onClick"],ms={class:"mn-small"},hs={class:"t-semi t-transp radius-small"},_s={__name:"Documents",setup(t){g.useRouter(),g.useRoute();let o=[{name:"Паспорт",status:"Не добавлен",inputs:[{type:"text",name:"Номер и серия"},{type:"text",name:"Место выдачи"},{type:"text",name:"Дата выдачи"}]},{name:"ИНН",status:"Не добавлен",inputs:[{type:"text",name:"Дата регистрации"}]},{name:"СНИЛС",status:"Не добавлен",inputs:[{type:"text",name:"Дата регистрации"}]},{name:"Военный билет",status:"Не добавлен",inputs:[{type:"text",name:"Дата регистрации"}]}];const n=e.ref(!1),s=e.ref(null),l=i=>{s.value=i,n.value=!0},a=()=>{n.value=!1},d=()=>{a()};return e.watchEffect(()=>{}),(i,r)=>{const c=e.resolveComponent("Popup");return e.openBlock(),e.createElementBlock("div",cs,[ds,e.createElementVNode("div",us,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(o),(u,m)=>(e.openBlock(),e.createElementBlock("div",{key:m,onClick:_=>l(m),class:"h-100 pd-medium bg-white radius-small"},[e.createElementVNode("h3",ms,e.toDisplayString(u.name),1),e.createElementVNode("p",hs,e.toDisplayString(u.status),1)],8,ps))),128))]),e.createVNode(c,{title:"Добавить документ",onClosePopup:a,isPopupOpen:n.value},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(o)[s.value].inputs,u=>(e.openBlock(),e.createElementBlock("div",{key:u.name},[e.createVNode(w.Field,{field:u.value,"onUpdate:field":m=>u.value=m,label:u.name,_id:u.name,placeholder:u.name,class:"w-100"},null,8,["field","onUpdate:field","label","_id","placeholder"])]))),128)),e.createElementVNode("button",{onClick:d,class:"w-100 mn-small button"},"Отправить на верификацию")]),_:1},8,["isPopupOpen"])])}}},gs=y._export_sfc(_s,[["__scopeId","data-v-20739d92"]]),fs={};function bs(t,o){const n=e.resolveComponent("router-view");return e.openBlock(),e.createBlock(n,null,{default:e.withCtx(({Component:s,route:l})=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(s)))]),_:1})}const ys=y._export_sfc(fs,[["render",bs]]),vs=[{path:":_id",name:"Organization",meta:{title:{en:"Organization",ru:"Организация"}},component:()=>Promise.resolve().then(()=>Ko)},{path:"create",name:"Create Organization",meta:{title:{en:"Create Organization",ru:"Создать Организацию"}},beforeEnter:[z.requiresAuth],component:()=>Promise.resolve().then(()=>G)},{path:":_id/edit",name:"Organization Edit",meta:{title:{en:"Edit Organization",ru:"Редактировать Организацию"}},beforeEnter:[z.requiresAuth],component:()=>Promise.resolve().then(()=>G)}],ks=[{path:":_id/departments/create",name:"Department Creation",meta:{title:"Создание отдела"},beforeEnter:[z.requiresAuth],component:()=>Promise.resolve().then(()=>ee)},{path:":_id/departments/:department",name:"Department",meta:{title:"Отдел"},beforeEnter:[z.requiresAuth],component:()=>Promise.resolve().then(()=>cn)},{path:":_id/departments/:department/edit",name:"Department Edit",meta:{title:"Редактирование отдела"},beforeEnter:[z.requiresAuth],component:()=>Promise.resolve().then(()=>ee)}],ws=[{path:":_id/members",name:"Organization Members",meta:{title:{en:"Members",ru:"Участникb"}},component:()=>Promise.resolve().then(()=>require("./Members-d35ab7e8.js"))},{path:":_id/members/invite",name:"Invite Member",component:()=>Promise.resolve().then(()=>Bo)}],$s=[{path:":_id/products/:product",name:"Product Organization",meta:{title:{en:"Product",ru:"Продукт"}},component:()=>Promise.resolve().then(()=>require("./Product-aacb05f3.js"))},{path:":_id/products/:product/edit",name:"ProductEdit",beforeEnter:[z.requiresAuth],component:()=>Promise.resolve().then(()=>require("./ProductEdit-e5a2e0f6.js"))},{path:":_id/products/add",name:"AddProduct",component:()=>Promise.resolve().then(()=>require("./ProductEdit-e5a2e0f6.js"))}],Es=[{path:"organizations",component:ys,meta:{title:{en:"Organizations",ru:"Организации"}},children:[...vs,...ks,...$s,...ws]}];exports.CardDepartment=se;exports.DepartmentEdit=ue;exports.DepartmentMemberModify=Na;exports.DepartmentSub=j;exports.Documents=gs;exports.User=I;exports._sfc_main=re;exports._sfc_main$1=Io;exports._sfc_main$10=_o;exports._sfc_main$11=ae;exports._sfc_main$12=rs;exports._sfc_main$2=ie;exports._sfc_main$3=ce;exports._sfc_main$4=de;exports._sfc_main$5=$a;exports._sfc_main$6=ns;exports._sfc_main$7=$t;exports._sfc_main$8=q;exports._sfc_main$9=ft;exports.actions=H;exports.departments=ho;exports.invites=go;exports.organizations=Es;exports.state=$;
3
+ https://vue-select.org/api/props.html#getoptionkey`,t,o)}}},onTab:{type:Function,default:function(){this.selectOnTab&&!this.isComposing&&this.typeAheadSelect()}},taggable:{type:Boolean,default:!1},tabindex:{type:Number,default:null},pushTags:{type:Boolean,default:!1},filterable:{type:Boolean,default:!0},filterBy:{type:Function,default(t,o,n){return(o||"").toLocaleLowerCase().indexOf(n.toLocaleLowerCase())>-1}},filter:{type:Function,default(t,o){return t.filter(n=>{let s=this.getOptionLabel(n);return typeof s=="number"&&(s=s.toString()),this.filterBy(n,s,o)})}},createOption:{type:Function,default(t){return typeof this.optionList[0]=="object"?{[this.label]:t}:t}},resetOnOptionsChange:{default:!1,validator:t=>["function","boolean"].includes(typeof t)},clearSearchOnBlur:{type:Function,default:function({clearSearchOnSelect:t,multiple:o}){return t&&!o}},noDrop:{type:Boolean,default:!1},inputId:{type:String},dir:{type:String,default:"auto"},selectOnTab:{type:Boolean,default:!1},selectOnKeyCodes:{type:Array,default:()=>[13]},searchInputQuerySelector:{type:String,default:"[type=search]"},mapKeydown:{type:Function,default:(t,o)=>t},appendToBody:{type:Boolean,default:!1},calculatePosition:{type:Function,default(t,o,{width:n,top:s,left:l}){t.style.top=s,t.style.left=l,t.style.width=n}},dropdownShouldOpen:{type:Function,default({noDrop:t,open:o,mutableLoading:n}){return t?!1:o&&!n}},uid:{type:[String,Number],default:()=>Qn()}},data(){return{search:"",open:!1,isComposing:!1,pushedTags:[],_value:[],deselectButtons:[]}},computed:{isReducingValues(){return this.$props.reduce!==this.$options.props.reduce.default},isTrackingValues(){return typeof this.modelValue>"u"||this.isReducingValues},selectedValue(){let t=this.modelValue;return this.isTrackingValues&&(t=this.$data._value),t!=null&&t!==""?[].concat(t):[]},optionList(){return this.options.concat(this.pushTags?this.pushedTags:[])},searchEl(){return this.$slots.search?this.$refs.selectedOptions.querySelector(this.searchInputQuerySelector):this.$refs.search},scope(){const t={search:this.search,loading:this.loading,searching:this.searching,filteredOptions:this.filteredOptions};return{search:{attributes:x({disabled:this.disabled,placeholder:this.searchPlaceholder,tabindex:this.tabindex,readonly:!this.searchable,id:this.inputId,"aria-autocomplete":"list","aria-labelledby":`vs${this.uid}__combobox`,"aria-controls":`vs${this.uid}__listbox`,ref:"search",type:"search",autocomplete:this.autocomplete,value:this.search},this.dropdownOpen&&this.filteredOptions[this.typeAheadPointer]?{"aria-activedescendant":`vs${this.uid}__option-${this.typeAheadPointer}`}:{}),events:{compositionstart:()=>this.isComposing=!0,compositionend:()=>this.isComposing=!1,keydown:this.onSearchKeyDown,blur:this.onSearchBlur,focus:this.onSearchFocus,input:o=>this.search=o.target.value}},spinner:{loading:this.mutableLoading},noOptions:{search:this.search,loading:this.mutableLoading,searching:this.searching},openIndicator:{attributes:{ref:"openIndicator",role:"presentation",class:"vs__open-indicator"}},listHeader:t,listFooter:t,header:Q(x({},t),{deselect:this.deselect}),footer:Q(x({},t),{deselect:this.deselect})}},childComponents(){return x(x({},X),this.components)},stateClasses(){return{"vs--open":this.dropdownOpen,"vs--single":!this.multiple,"vs--multiple":this.multiple,"vs--searching":this.searching&&!this.noDrop,"vs--searchable":this.searchable&&!this.noDrop,"vs--unsearchable":!this.searchable,"vs--loading":this.mutableLoading,"vs--disabled":this.disabled}},searching(){return!!this.search},dropdownOpen(){return this.dropdownShouldOpen(this)},searchPlaceholder(){return this.isValueEmpty&&this.placeholder?this.placeholder:void 0},filteredOptions(){const t=[].concat(this.optionList);if(!this.filterable&&!this.taggable)return t;const o=this.search.length?this.filter(t,this.search,this):t;if(this.taggable&&this.search.length){const n=this.createOption(this.search);this.optionExists(n)||o.unshift(n)}return o},isValueEmpty(){return this.selectedValue.length===0},showClearButton(){return!this.multiple&&this.clearable&&!this.open&&!this.isValueEmpty}},watch:{options(t,o){const n=()=>typeof this.resetOnOptionsChange=="function"?this.resetOnOptionsChange(t,o,this.selectedValue):this.resetOnOptionsChange;!this.taggable&&n()&&this.clearSelection(),this.modelValue&&this.isTrackingValues&&this.setInternalValueFromOptions(this.modelValue)},modelValue:{immediate:!0,handler(t){this.isTrackingValues&&this.setInternalValueFromOptions(t)}},multiple(){this.clearSelection()},open(t){this.$emit(t?"open":"close")}},created(){this.mutableLoading=this.loading},methods:{setInternalValueFromOptions(t){Array.isArray(t)?this.$data._value=t.map(o=>this.findOptionFromReducedValue(o)):this.$data._value=this.findOptionFromReducedValue(t)},select(t){this.$emit("option:selecting",t),this.isOptionSelected(t)?this.deselectFromDropdown&&(this.clearable||this.multiple&&this.selectedValue.length>1)&&this.deselect(t):(this.taggable&&!this.optionExists(t)&&(this.$emit("option:created",t),this.pushTag(t)),this.multiple&&(t=this.selectedValue.concat(t)),this.updateValue(t),this.$emit("option:selected",t)),this.onAfterSelect(t)},deselect(t){this.$emit("option:deselecting",t),this.updateValue(this.selectedValue.filter(o=>!this.optionComparator(o,t))),this.$emit("option:deselected",t)},clearSelection(){this.updateValue(this.multiple?[]:null)},onAfterSelect(t){this.closeOnSelect&&(this.open=!this.open,this.searchEl.blur()),this.clearSearchOnSelect&&(this.search="")},updateValue(t){typeof this.modelValue>"u"&&(this.$data._value=t),t!==null&&(Array.isArray(t)?t=t.map(o=>this.reduce(o)):t=this.reduce(t)),this.$emit("update:modelValue",t)},toggleDropdown(t){const o=t.target!==this.searchEl;o&&t.preventDefault();const n=[...this.deselectButtons||[],this.$refs.clearButton];if(this.searchEl===void 0||n.filter(Boolean).some(s=>s.contains(t.target)||s===t.target)){t.preventDefault();return}this.open&&o?this.searchEl.blur():this.disabled||(this.open=!0,this.searchEl.focus())},isOptionSelected(t){return this.selectedValue.some(o=>this.optionComparator(o,t))},isOptionDeselectable(t){return this.isOptionSelected(t)&&this.deselectFromDropdown},optionComparator(t,o){return this.getOptionKey(t)===this.getOptionKey(o)},findOptionFromReducedValue(t){const o=s=>JSON.stringify(this.reduce(s))===JSON.stringify(t),n=[...this.options,...this.pushedTags].filter(o);return n.length===1?n[0]:n.find(s=>this.optionComparator(s,this.$data._value))||t},closeSearchOptions(){this.open=!1,this.$emit("search:blur")},maybeDeleteValue(){if(!this.searchEl.value.length&&this.selectedValue&&this.selectedValue.length&&this.clearable){let t=null;this.multiple&&(t=[...this.selectedValue.slice(0,this.selectedValue.length-1)]),this.updateValue(t)}},optionExists(t){return this.optionList.some(o=>this.optionComparator(o,t))},normalizeOptionForSlot(t){return typeof t=="object"?t:{[this.label]:t}},pushTag(t){this.pushedTags.push(t)},onEscape(){this.search.length?this.search="":this.searchEl.blur()},onSearchBlur(){if(this.mousedown&&!this.searching)this.mousedown=!1;else{const{clearSearchOnSelect:t,multiple:o}=this;this.clearSearchOnBlur({clearSearchOnSelect:t,multiple:o})&&(this.search=""),this.closeSearchOptions();return}if(this.search.length===0&&this.options.length===0){this.closeSearchOptions();return}},onSearchFocus(){this.open=!0,this.$emit("search:focus")},onMousedown(){this.mousedown=!0},onMouseUp(){this.mousedown=!1},onSearchKeyDown(t){const o=l=>(l.preventDefault(),!this.isComposing&&this.typeAheadSelect()),n={8:l=>this.maybeDeleteValue(),9:l=>this.onTab(),27:l=>this.onEscape(),38:l=>(l.preventDefault(),this.typeAheadUp()),40:l=>(l.preventDefault(),this.typeAheadDown())};this.selectOnKeyCodes.forEach(l=>n[l]=o);const s=this.mapKeydown(n,this);if(typeof s[t.keyCode]=="function")return s[t.keyCode](t)}}},ea=["dir"],ta=["id","aria-expanded","aria-owns"],oa={ref:"selectedOptions",class:"vs__selected-options"},na=["disabled","title","aria-label","onClick"],aa={ref:"actions",class:"vs__actions"},sa=["disabled"],la={class:"vs__spinner"},ra=["id"],ia=["id","aria-selected","onMouseover","onClick"],ca={key:0,class:"vs__no-options"},da=e.createTextVNode(" Sorry, no matching options. "),ua=["id"];function pa(t,o,n,s,l,a){const d=e.resolveDirective("append-to-body");return e.openBlock(),e.createElementBlock("div",{dir:n.dir,class:e.normalizeClass(["v-select",a.stateClasses])},[e.renderSlot(t.$slots,"header",e.normalizeProps(e.guardReactiveProps(a.scope.header))),e.createElementVNode("div",{id:`vs${n.uid}__combobox`,ref:"toggle",class:"vs__dropdown-toggle",role:"combobox","aria-expanded":a.dropdownOpen.toString(),"aria-owns":`vs${n.uid}__listbox`,"aria-label":"Search for option",onMousedown:o[1]||(o[1]=i=>a.toggleDropdown(i))},[e.createElementVNode("div",oa,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.selectedValue,(i,r)=>e.renderSlot(t.$slots,"selected-option-container",{option:a.normalizeOptionForSlot(i),deselect:a.deselect,multiple:n.multiple,disabled:n.disabled},()=>[(e.openBlock(),e.createElementBlock("span",{key:n.getOptionKey(i),class:"vs__selected"},[e.renderSlot(t.$slots,"selected-option",e.normalizeProps(e.guardReactiveProps(a.normalizeOptionForSlot(i))),()=>[e.createTextVNode(e.toDisplayString(n.getOptionLabel(i)),1)]),n.multiple?(e.openBlock(),e.createElementBlock("button",{key:0,ref_for:!0,ref:c=>l.deselectButtons[r]=c,disabled:n.disabled,type:"button",class:"vs__deselect",title:`Deselect ${n.getOptionLabel(i)}`,"aria-label":`Deselect ${n.getOptionLabel(i)}`,onClick:c=>a.deselect(i)},[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(a.childComponents.Deselect)))],8,na)):e.createCommentVNode("",!0)]))])),256)),e.renderSlot(t.$slots,"search",e.normalizeProps(e.guardReactiveProps(a.scope.search)),()=>[e.createElementVNode("input",e.mergeProps({class:"vs__search"},a.scope.search.attributes,e.toHandlers(a.scope.search.events)),null,16)])],512),e.createElementVNode("div",aa,[e.withDirectives(e.createElementVNode("button",{ref:"clearButton",disabled:n.disabled,type:"button",class:"vs__clear",title:"Clear Selected","aria-label":"Clear Selected",onClick:o[0]||(o[0]=(...i)=>a.clearSelection&&a.clearSelection(...i))},[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(a.childComponents.Deselect)))],8,sa),[[e.vShow,a.showClearButton]]),e.renderSlot(t.$slots,"open-indicator",e.normalizeProps(e.guardReactiveProps(a.scope.openIndicator)),()=>[n.noDrop?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(e.resolveDynamicComponent(a.childComponents.OpenIndicator),e.normalizeProps(e.mergeProps({key:0},a.scope.openIndicator.attributes)),null,16))]),e.renderSlot(t.$slots,"spinner",e.normalizeProps(e.guardReactiveProps(a.scope.spinner)),()=>[e.withDirectives(e.createElementVNode("div",la,"Loading...",512),[[e.vShow,t.mutableLoading]])])],512)],40,ta),e.createVNode(e.Transition,{name:n.transition},{default:e.withCtx(()=>[a.dropdownOpen?e.withDirectives((e.openBlock(),e.createElementBlock("ul",{id:`vs${n.uid}__listbox`,ref:"dropdownMenu",key:`vs${n.uid}__listbox`,class:"vs__dropdown-menu",role:"listbox",tabindex:"-1",onMousedown:o[2]||(o[2]=e.withModifiers((...i)=>a.onMousedown&&a.onMousedown(...i),["prevent"])),onMouseup:o[3]||(o[3]=(...i)=>a.onMouseUp&&a.onMouseUp(...i))},[e.renderSlot(t.$slots,"list-header",e.normalizeProps(e.guardReactiveProps(a.scope.listHeader))),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.filteredOptions,(i,r)=>(e.openBlock(),e.createElementBlock("li",{id:`vs${n.uid}__option-${r}`,key:n.getOptionKey(i),role:"option",class:e.normalizeClass(["vs__dropdown-option",{"vs__dropdown-option--deselect":a.isOptionDeselectable(i)&&r===t.typeAheadPointer,"vs__dropdown-option--selected":a.isOptionSelected(i),"vs__dropdown-option--highlight":r===t.typeAheadPointer,"vs__dropdown-option--disabled":!n.selectable(i)}]),"aria-selected":r===t.typeAheadPointer?!0:null,onMouseover:c=>n.selectable(i)?t.typeAheadPointer=r:null,onClick:e.withModifiers(c=>n.selectable(i)?a.select(i):null,["prevent","stop"])},[e.renderSlot(t.$slots,"option",e.normalizeProps(e.guardReactiveProps(a.normalizeOptionForSlot(i))),()=>[e.createTextVNode(e.toDisplayString(n.getOptionLabel(i)),1)])],42,ia))),128)),a.filteredOptions.length===0?(e.openBlock(),e.createElementBlock("li",ca,[e.renderSlot(t.$slots,"no-options",e.normalizeProps(e.guardReactiveProps(a.scope.noOptions)),()=>[da])])):e.createCommentVNode("",!0),e.renderSlot(t.$slots,"list-footer",e.normalizeProps(e.guardReactiveProps(a.scope.listFooter)))],40,ra)),[[d]]):(e.openBlock(),e.createElementBlock("ul",{key:1,id:`vs${n.uid}__listbox`,role:"listbox",style:{display:"none",visibility:"hidden"}},null,8,ua))]),_:3},8,["name"]),e.renderSlot(t.$slots,"footer",e.normalizeProps(e.guardReactiveProps(a.scope.footer)))],10,ea)}const ma=Z(Xn,[["render",pa]]);const ha={class:"w-100"},_a={class:"flex"},ga={class:"mn-regular"},fa={class:"flex-column flex-wrap block"},ba={key:0,class:"w-100"},ya={class:"w-100 flex-center flex-nowrap flex"},va={class:"mn-r-regular w-100"},ka=["onClick"],wa={key:0,class:"mn-t-small mn-small w-100"},$a={__name:"EditArray",props:{name:Object,items:Array},emits:["add","remove"],setup(t,{emit:o}){g.useRouter(),g.useRoute();let n=e.reactive([]);e.toRefs(n);const s=e.ref(null),l=e.ref(null),a=e.ref(null);e.computed(()=>{if(s.value===null||a.value===null||a.value==="")return!0;if(s.value.modifications.length>0)return l.value===null});function d(i){store.commit("leftovers/deleteItemFromLeftover",i)}return(i,r)=>(e.openBlock(),e.createElementBlock("div",ha,[e.createElementVNode("div",_a,[e.createElementVNode("h3",ga,e.toDisplayString(t.name),1)]),e.createElementVNode("ul",fa,[t.items.length<1?(e.openBlock(),e.createElementBlock("span",ba,"Вы еще не добавили позиции")):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.items,(c,u)=>(e.openBlock(),e.createElementBlock("li",{key:c._id,class:"w-100"},[e.createElementVNode("div",ya,[e.createElementVNode("span",va,e.toDisplayString(c.name),1),e.createElementVNode("a",{class:"w-20 button",onClick:m=>d(c)},"Удалить",8,ka)]),u!=t.items.length-1?(e.openBlock(),e.createElementBlock("hr",wa)):e.createCommentVNode("",!0)]))),128))])]))}};const Ea={class:"br-grey radius-small mn-small"},Va={key:1,class:"pd-small br-grey br-1px br-solid"},Ba=["disabled"],Ca={__name:"DepartmentMemberModify",props:{isPopupOpen:Boolean,department:Number,departments:Array,maindepartment:Object,alldepartments:Array},emits:["callback","remove"],setup(t,{emit:o}){const n=t,s=e.ref({subdepartment:null});n.department!==null&&(s.value=n.departments[n.department]);function l(r,c,u){return r.filter(m=>!(c.some(_=>_._id===m._id)||u._id===m._id))}const a=e.computed(()=>l(n.alldepartments,n.departments,n.maindepartment));async function d(){n.departments.push(s.value.subdepartment),o("callback")}async function i(){n.departments.splice(n.department,1),o("callback")}return(r,c)=>(e.openBlock(),e.createElementBlock("div",null,[e.createElementVNode("div",Ea,[n.department===null?(e.openBlock(),e.createBlock(e.unref(ma),{key:0,modelValue:s.value.subdepartment,"onUpdate:modelValue":c[0]||(c[0]=u=>s.value.subdepartment=u),options:e.unref(a),"get-option-label":u=>u.name,class:"w-100 mn-small"},null,8,["modelValue","options","get-option-label"])):(e.openBlock(),e.createElementBlock("div",Va,e.toDisplayString(s.value.name?s.value.name:"Безымянный"),1))]),n.department===null?(e.openBlock(),e.createElementBlock("button",{key:0,disabled:!s.value.subdepartment,onClick:d,class:"w-100 button bg-second t-white"}," Добавить отдел ",8,Ba)):e.createCommentVNode("",!0),n.department!==null?(e.openBlock(),e.createElementBlock("button",{key:1,onClick:i,class:"w-100 button bg-fourth t-white"}," Удалить отдел ")):e.createCommentVNode("",!0)]))}},Na=y._export_sfc(Ca,[["__scopeId","data-v-21f393e1"]]);const D=t=>(e.pushScopeId("data-v-6a9ce43d"),t=t(),e.popScopeId(),t),xa={class:"for-transition w-100"},Sa={class:"pd-b-zero pd-t-zero pd-thin"},La={class:"pd-thin"},Oa={class:"flex-nowrap flex bg-grey pd-medium radius-big"},za={key:0,class:"mn-r-auto"},Da={key:1,class:"mn-r-auto"},Pa={class:"flex-nowrap flex pd-thin"},Ma={class:"pd-b-zero pd-t-zero pd-thin cols-2 gap-thin"},Aa={class:"flex-stretch flex-column flex"},Fa={class:"mn-thin bg-grey pd-medium o-hidden radius-big"},Ta=D(()=>e.createElementVNode("h3",{class:"mn-semi"},"Profile",-1)),qa={class:"radius-small flex-nowrap flex"},Ia={class:"w-100 flex-child-grow-1 flex-child"},Ua={class:"bg-grey pd-medium o-hidden radius-big"},Ra=D(()=>e.createElementVNode("h3",{class:"mn-semi"},"Details",-1)),ja=D(()=>e.createElementVNode("p",{class:"p-medium mn-small"},"Please the available delivery options:",-1)),Ha={class:"mn-medium flex-nowrap flex"},Za=D(()=>e.createElementVNode("p",{class:"p-medium mn-small"},"Please select the available payment methods:",-1)),Ka={class:"flex-nowrap flex"},Ya={class:"bg-grey pd-medium o-hidden radius-big"},Ga=D(()=>e.createElementVNode("h3",{class:"mn-semi"},"Location",-1)),Wa=D(()=>e.createElementVNode("p",{class:"mn-small p-medium"},"Or choose on map:",-1)),Ja={class:"flex-nowrap flex pd-thin"},Qa={__name:"DepartmentEdit",setup(t){const o=g.useRouter(),n=g.useRoute();e.ref("details"),e.ref(!1);async function s(){n.params.department&&await P.actions.read(n.params.department),e.ref(P.state.memberships),await B.read(n.params._id),n.params.department&&await B.readOne(n.params.department)}s(),e.ref(p.department.members),e.ref(!1),e.ref(null),e.ref(!1),e.ref(null);async function l(){n.params.department&&await B.update(n.params._id,p.department),n.params.department||await B.create(n.params._id,p.department)}function a(){o.replace({name:"Department",params:{_id:n.params._id,department:p.department._id}})}async function d(){await B.delete(n.params._id,p.department)}return(i,r)=>(e.openBlock(),e.createElementBlock("div",xa,[e.createElementVNode("div",Sa,[e.createVNode(F._sfc_main,{class:"pd-medium bg-grey radius-big"})]),e.createElementVNode("div",La,[e.createElementVNode("header",Oa,[e.unref(n).params.department?(e.openBlock(),e.createElementBlock("h1",za,"Edit Spot")):(e.openBlock(),e.createElementBlock("h1",Da,"Create Spot")),e.createElementVNode("section",Pa,[e.createVNode(T._sfc_main,{submit:l,callback:a},{default:e.withCtx(()=>[e.createTextVNode("Save Spot")]),_:1})])])]),e.createElementVNode("div",Ma,[e.createElementVNode("div",Aa,[e.createElementVNode("div",Fa,[Ta,e.createElementVNode("div",qa,[e.createVNode(ne._sfc_main,{photo:p.department.profile.photo,"onUpdate:photo":r[0]||(r[0]=c=>p.department.profile.photo=c),uploadPath:"organizations/"+p.department.name+"/avatars",class:"w-8r aspect-1x1 o-hidden mn-r-small radius-extra"},null,8,["photo","uploadPath"]),e.createElementVNode("div",Ia,[e.createVNode(w.Field,{field:p.department.profile.name,"onUpdate:field":r[1]||(r[1]=c=>p.department.profile.name=c),label:"Name",placeholder:"Spot Name",class:"mn-small bg-white radius-small pd-medium",validation:i.organizationName},null,8,["field","validation"]),e.createVNode(w.Field,{field:p.department.profile.description,"onUpdate:field":r[2]||(r[2]=c=>p.department.profile.description=c),label:"Description",placeholder:"Spot description (max 120 symbols)",class:"bg-white radius-small pd-medium",validation:i.organizationName},null,8,["field","validation"])])])]),e.createElementVNode("div",Ua,[Ra,ja,e.createElementVNode("div",Ha,[e.createVNode(V.Checkbox,{label:"Pickup",name:"Delivery",value:"pickup",class:"w-100 mn-r-small bg-white radius-small pd-small",radio:p.department.delivery},null,8,["radio"]),e.createVNode(V.Checkbox,{label:"Delivery",name:"Delivery",value:"courier",class:"w-100 mn-r-small bg-white radius-small pd-small",radio:p.department.delivery},null,8,["radio"]),e.createVNode(V.Checkbox,{label:"Post",name:"Delivery",value:"post",class:"w-100 bg-white radius-small pd-small",radio:p.department.delivery},null,8,["radio"])]),Za,e.createElementVNode("div",Ka,[e.createVNode(V.Checkbox,{label:"Cash",name:"Payment",value:"cash",class:"w-100 mn-r-small bg-white radius-small pd-small",radio:p.department.payment},null,8,["radio"]),e.createVNode(V.Checkbox,{label:"Bank Transfer",name:"Payment",value:"bank",class:"w-100 mn-r-small bg-white radius-small pd-small",radio:p.department.payment},null,8,["radio"]),e.createVNode(V.Checkbox,{label:"Crypto",name:"Payment",value:"crypto",class:"w-100 bg-white radius-small pd-small",radio:p.department.payment},null,8,["radio"])])])]),e.createElementVNode("div",Ya,[Ga,e.createVNode(wn,{apiKey:i.GOOGLE_MAPS_API_KEY,address:p.department.address,location:p.department.location,label:"Address",placeholder:"Enter delivery address",class:"bg-white radius-small pd-small mn-small","onUpdate:location":r[3]||(r[3]=c=>{p.department.location=c}),"onUpdate:address":r[4]||(r[4]=c=>{p.department.address=c})},null,8,["apiKey","address","location"]),Wa,e.createVNode(Nn,{address:p.department.address,location:p.department.location,apiKey:i.GOOGLE_MAPS_API_KEY,class:"radius-big o-hidden","onUpdate:location":r[5]||(r[5]=c=>{p.department.location=c}),"onUpdate:address":r[6]||(r[6]=c=>{p.department.address=c})},null,8,["address","location","apiKey"])])]),e.createElementVNode("section",Ja,[e.createVNode(T._sfc_main,{submit:d,callback:i.redirectToDash,class:"bg-grey"},{default:e.withCtx(()=>[e.createTextVNode("Delete Spot")]),_:1},8,["callback"])])]))}},ue=y._export_sfc(Qa,[["__scopeId","data-v-6a9ce43d"]]),ee=Object.freeze(Object.defineProperty({__proto__:null,default:ue},Symbol.toStringTag,{value:"Module"})),Xa={class:"unit"},es={class:"unit-details"},ts={key:0},os={class:"subunits"},ns={__name:"Unit",props:{unit:{type:Object,required:!0},editMode:{type:Boolean,required:!0}},setup(t){const o=t,n=e.ref({...o.unit});e.watch(o.unit,()=>{n.value={...o.unit}});async function s(){emit("unit-updated",n.value)}async function l(){emit("subunit-added",o.unit._id)}return(a,d)=>{const i=e.resolveComponent("unit-component");return e.openBlock(),e.createElementBlock("div",Xa,[e.createElementVNode("div",es,[e.createElementVNode("h3",null,e.toDisplayString(t.unit.name),1),e.createElementVNode("p",null,e.toDisplayString(t.unit.description),1),t.editMode?(e.openBlock(),e.createElementBlock("div",ts,[e.withDirectives(e.createElementVNode("input",{"onUpdate:modelValue":d[0]||(d[0]=r=>n.value.name=r),placeholder:"Название отдела"},null,512),[[e.vModelText,n.value.name]]),e.withDirectives(e.createElementVNode("input",{"onUpdate:modelValue":d[1]||(d[1]=r=>n.value.description=r),placeholder:"Описание отдела"},null,512),[[e.vModelText,n.value.description]]),e.createElementVNode("button",{onClick:s},"Сохранить"),e.createElementVNode("button",{onClick:l},"Добавить подотдел")])):e.createCommentVNode("",!0)]),e.createElementVNode("div",os,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.unit.subunits,(r,c)=>(e.openBlock(),e.createBlock(i,{key:c,unit:r,"edit-mode":t.editMode},null,8,["unit","edit-mode"]))),128))])])}}};const as={class:"for-transition bg-white radius-big w-100"},ss={class:""},ls={key:1,class:"cols-1"},rs={__name:"Organizations",props:{owner:{type:String,default:null},user:{type:[String,Number],default:null},onlyuser:{type:[String,Number],default:null}},async setup(t){let o,n;const s=t,l=e.ref(null);l.value=([o,n]=e.withAsyncContext(()=>h.actions.read({owner:s.owner,user:s.user,onlyuser:s.onlyuser})),o=await o,n(),o);const a=g.useRouter(),d=g.useRoute();let i=d.query.tab?d.query.tab:"details";const r=e.ref(i);return d.query.tab=r.value,e.watch(r,c=>{a.replace({query:{...d.query,tab:c}})}),(c,u)=>(e.openBlock(),e.createElementBlock("div",as,[e.createElementVNode("div",ss,[l.value<1?(e.openBlock(),e.createBlock(q,{key:0,title:"You Haven't Joined Any Organization Yet",description:"Weeder is all about community. Join an organization or maybe you want to create your own?",action:"Create organization",callback:c.a=()=>c.$router.push("/app/organization/create/details")},null,8,["callback"])):(e.openBlock(),e.createElementBlock("div",ls,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.value,m=>(e.openBlock(),e.createBlock(oe._sfc_main,{key:m._id,organization:m,user:E.state.user,onUpdateMembership:c.handleMembershipUpdate,class:e.normalizeClass(["w-100",{"mn-r-small":c.index!==l.value.length-1}])},null,8,["organization","user","onUpdateMembership","class"]))),128))]))])]))}};const is=t=>(e.pushScopeId("data-v-20739d92"),t=t(),e.popScopeId(),t),cs={class:"documents"},ds=is(()=>e.createElementVNode("h3",{class:"mn-small"},"Список документов",-1)),us={class:"mn-big cols-4"},ps=["onClick"],ms={class:"mn-small"},hs={class:"t-semi t-transp radius-small"},_s={__name:"Documents",setup(t){g.useRouter(),g.useRoute();let o=[{name:"Паспорт",status:"Не добавлен",inputs:[{type:"text",name:"Номер и серия"},{type:"text",name:"Место выдачи"},{type:"text",name:"Дата выдачи"}]},{name:"ИНН",status:"Не добавлен",inputs:[{type:"text",name:"Дата регистрации"}]},{name:"СНИЛС",status:"Не добавлен",inputs:[{type:"text",name:"Дата регистрации"}]},{name:"Военный билет",status:"Не добавлен",inputs:[{type:"text",name:"Дата регистрации"}]}];const n=e.ref(!1),s=e.ref(null),l=i=>{s.value=i,n.value=!0},a=()=>{n.value=!1},d=()=>{a()};return e.watchEffect(()=>{}),(i,r)=>{const c=e.resolveComponent("Popup");return e.openBlock(),e.createElementBlock("div",cs,[ds,e.createElementVNode("div",us,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(o),(u,m)=>(e.openBlock(),e.createElementBlock("div",{key:m,onClick:_=>l(m),class:"h-100 pd-medium bg-white radius-small"},[e.createElementVNode("h3",ms,e.toDisplayString(u.name),1),e.createElementVNode("p",hs,e.toDisplayString(u.status),1)],8,ps))),128))]),e.createVNode(c,{title:"Добавить документ",onClosePopup:a,isPopupOpen:n.value},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(o)[s.value].inputs,u=>(e.openBlock(),e.createElementBlock("div",{key:u.name},[e.createVNode(w.Field,{field:u.value,"onUpdate:field":m=>u.value=m,label:u.name,_id:u.name,placeholder:u.name,class:"w-100"},null,8,["field","onUpdate:field","label","_id","placeholder"])]))),128)),e.createElementVNode("button",{onClick:d,class:"w-100 mn-small button"},"Отправить на верификацию")]),_:1},8,["isPopupOpen"])])}}},gs=y._export_sfc(_s,[["__scopeId","data-v-20739d92"]]),fs={};function bs(t,o){const n=e.resolveComponent("router-view");return e.openBlock(),e.createBlock(n,null,{default:e.withCtx(({Component:s,route:l})=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(s)))]),_:1})}const ys=y._export_sfc(fs,[["render",bs]]),vs=[{path:":_id",name:"Organization",meta:{title:{en:"Organization",ru:"Организация"}},component:()=>Promise.resolve().then(()=>Ko)},{path:"create",name:"Create Organization",meta:{title:{en:"Create Organization",ru:"Создать Организацию"}},beforeEnter:[z.requiresAuth],component:()=>Promise.resolve().then(()=>G)},{path:":_id/edit",name:"Organization Edit",meta:{title:{en:"Edit Organization",ru:"Редактировать Организацию"}},beforeEnter:[z.requiresAuth],component:()=>Promise.resolve().then(()=>G)}],ks=[{path:":_id/departments/create",name:"Department Creation",meta:{title:"Создание отдела"},beforeEnter:[z.requiresAuth],component:()=>Promise.resolve().then(()=>ee)},{path:":_id/departments/:department",name:"Department",meta:{title:"Отдел"},beforeEnter:[z.requiresAuth],component:()=>Promise.resolve().then(()=>cn)},{path:":_id/departments/:department/edit",name:"Department Edit",meta:{title:"Редактирование отдела"},beforeEnter:[z.requiresAuth],component:()=>Promise.resolve().then(()=>ee)}],ws=[{path:":_id/members",name:"Organization Members",meta:{title:{en:"Members",ru:"Участникb"}},component:()=>Promise.resolve().then(()=>require("./Members-bbcb79ae.js"))},{path:":_id/members/invite",name:"Invite Member",component:()=>Promise.resolve().then(()=>Bo)}],$s=[{path:":_id/products/:product",name:"Product Organization",meta:{title:{en:"Product",ru:"Продукт"}},component:()=>Promise.resolve().then(()=>require("./Product-4a834930.js"))},{path:":_id/products/:product/edit",name:"ProductEdit",beforeEnter:[z.requiresAuth],component:()=>Promise.resolve().then(()=>require("./ProductEdit-bae5e898.js"))},{path:":_id/products/add",name:"AddProduct",component:()=>Promise.resolve().then(()=>require("./ProductEdit-bae5e898.js"))}],Es=[{path:"organizations",component:ys,meta:{title:{en:"Organizations",ru:"Организации"}},children:[...vs,...ks,...$s,...ws]}];exports.CardDepartment=se;exports.DepartmentEdit=ue;exports.DepartmentMemberModify=Na;exports.DepartmentSub=j;exports.Documents=gs;exports.User=I;exports._sfc_main=re;exports._sfc_main$1=Io;exports._sfc_main$10=_o;exports._sfc_main$11=ae;exports._sfc_main$12=rs;exports._sfc_main$2=ie;exports._sfc_main$3=ce;exports._sfc_main$4=de;exports._sfc_main$5=$a;exports._sfc_main$6=ns;exports._sfc_main$7=$t;exports._sfc_main$8=q;exports._sfc_main$9=ft;exports.actions=H;exports.departments=ho;exports.invites=go;exports.organizations=Es;exports.state=$;
@@ -19,10 +19,10 @@ import { _ as Ye } from "./Socials-8193477c.mjs";
19
19
  import { s as x, a as J } from "./organizations-966e1cd2.mjs";
20
20
  import { m as We, a as Pe, s as Ae } from "./memberships-12210953.mjs";
21
21
  import { C as I } from "./Checkbox-5dbe7b23.mjs";
22
- import { a as Je, s as xe, _ as Qe } from "./categories-52a561a4.mjs";
22
+ import { a as Je, s as xe, _ as Qe } from "./categories-5b08da53.mjs";
23
23
  import { _ as Xe } from "./Feed-d114330c.mjs";
24
24
  import { _ as et } from "./CardProduct-fca53299.mjs";
25
- import { a as tt, s as st } from "./products-aabe5c02.mjs";
25
+ import { a as tt, s as st } from "./products-943fb95e.mjs";
26
26
  import "./Field.vue_vue_type_style_index_0_scoped_f4a29b0d_lang-4ed993c7.mjs";
27
27
  import { S as nt } from "./Select-11ddabf5.mjs";
28
28
  import "./Button.vue_vue_type_style_index_0_lang-4ed993c7.mjs";
@@ -2928,7 +2928,7 @@ const Xo = /* @__PURE__ */ M(Jo, [["render", Qo]]), ei = [{
2928
2928
  ru: "Участникb"
2929
2929
  }
2930
2930
  },
2931
- component: () => import("./Members-7251dd52.mjs")
2931
+ component: () => import("./Members-87278466.mjs")
2932
2932
  }, {
2933
2933
  path: ":_id/members/invite",
2934
2934
  name: "Invite Member",
@@ -2942,16 +2942,16 @@ const Xo = /* @__PURE__ */ M(Jo, [["render", Qo]]), ei = [{
2942
2942
  ru: "Продукт"
2943
2943
  }
2944
2944
  },
2945
- component: () => import("./Product-299070ad.mjs")
2945
+ component: () => import("./Product-2f8e6943.mjs")
2946
2946
  }, {
2947
2947
  path: ":_id/products/:product/edit",
2948
2948
  name: "ProductEdit",
2949
2949
  beforeEnter: [Q],
2950
- component: () => import("./ProductEdit-70bed802.mjs")
2950
+ component: () => import("./ProductEdit-959b3cd3.mjs")
2951
2951
  }, {
2952
2952
  path: ":_id/products/add",
2953
2953
  name: "AddProduct",
2954
- component: () => import("./ProductEdit-70bed802.mjs")
2954
+ component: () => import("./ProductEdit-959b3cd3.mjs")
2955
2955
  }], el = [{
2956
2956
  path: "organizations",
2957
2957
  component: Xo,
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./organizations.client-8f263e28.js"),r=require("./Organizations-ed6d36d6.js"),i=require("./CardOrganization-22beb83d.js"),t=require("./Socials-43293869.js"),n=require("./Publics-a31d7fe7.js"),a=require("./ButtonToggleMembership-738720bd.js"),u=require("./memberships-393765d8.js"),s=require("./organizations-d12c42b6.js");require("vue");require("vue-router");require("vue-i18n");require("./globals-928eb13c.js");require("./Breadcrumbs.vue_vue_type_style_index_0_lang-0ea8fbf8.js");require("./Tab-2c1e4224.js");require("./Tab.vue_vue_type_style_index_0_lang-0ea8fbf8.js");require("./MenuItem-f35cad93.js");require("./_plugin-vue_export-helper-f246444f.js");require("./Feed-6ca0541a.js");require("./Loader.vue_vue_type_style_index_0_lang-0ea8fbf8.js");require("./EmptyState-d65bab5b.js");require("./Chips-edf2b573.js");require("./Dropdown-f2564c92.js");require("./Popup-eb11fa82.js");require("./Popup.vue_vue_type_style_index_0_lang-0ea8fbf8.js");require("./Button-7643c9aa.js");require("./Button.vue_vue_type_style_index_0_lang-0ea8fbf8.js");require("./Select-3ca5ab39.js");require("./reports-270f69df.js");require("./index-b41aac19.js");require("./click-outside-0b0727d1.js");require("./auth-df5a20c6.js");require("./IconEdit-c0469b45.js");require("./SkeletonEvent-eb284de8.js");require("./Feed-5a359bb7.js");require("./Loader-21f016da.js");require("./CardBlogpost-f308ff64.js");require("./Checkbox-76f09248.js");require("./categories-4327a81c.js");require("./Feed-98b47c6f.js");require("./CardProduct-92affca1.js");require("./vuex.esm-bundler-685cf29f.js");require("./products-7e4253eb.js");require("./Field.vue_vue_type_style_index_0_scoped_f4a29b0d_lang-0ea8fbf8.js");require("./inputs.validation-d7cef32b.js");require("./BlockTags-8cddaef7.js");require("./Field-e2a43424.js");require("./SelectMulti-c25765cf.js");require("./UploadImage-0f488170.js");require("./auth.validation-80b133df.js");require("./Feed-5653cf8b.js");exports.CardDepartment=e.CardDepartment;exports.Contacts=e._sfc_main$9;exports.Department=e._sfc_main$3;exports.DepartmentEdit=e.DepartmentEdit;exports.DepartmentMemberModify=e.DepartmentMemberModify;exports.DepartmentSub=e.DepartmentSub;exports.DetailsTab=e._sfc_main$11;exports.Documents=e.Documents;exports.EditArray=e._sfc_main$5;exports.EmptyState=e._sfc_main$8;exports.FeedDepartments=e._sfc_main$10;exports.MembersAdd=e._sfc_main;exports.MembersList=e._sfc_main$1;exports.Organization=e._sfc_main$2;exports.OrganizationEdit=e._sfc_main$4;exports.OrganizationsSection=e._sfc_main$12;exports.Rating=e._sfc_main$7;exports.Unit=e._sfc_main$6;exports.User=e.User;exports.departmentsStore=e.departments;exports.invitesStore=e.invites;exports.organizationsRouter=e.organizations;exports.Organizations=r.default;exports.CardOrganization=i._sfc_main;exports.Socials=t._sfc_main;exports.Publics=n._sfc_main;exports.ButtonToggleMembership=a._sfc_main;exports.membershipsStore=u.memberships;exports.organizationStore=s.organization;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./organizations.client-7e11a989.js"),r=require("./Organizations-ed6d36d6.js"),i=require("./CardOrganization-22beb83d.js"),t=require("./Socials-43293869.js"),n=require("./Publics-a31d7fe7.js"),a=require("./ButtonToggleMembership-738720bd.js"),u=require("./memberships-393765d8.js"),s=require("./organizations-d12c42b6.js");require("vue");require("vue-router");require("vue-i18n");require("./globals-928eb13c.js");require("./Breadcrumbs.vue_vue_type_style_index_0_lang-0ea8fbf8.js");require("./Tab-2c1e4224.js");require("./Tab.vue_vue_type_style_index_0_lang-0ea8fbf8.js");require("./MenuItem-f35cad93.js");require("./_plugin-vue_export-helper-f246444f.js");require("./Feed-6ca0541a.js");require("./Loader.vue_vue_type_style_index_0_lang-0ea8fbf8.js");require("./EmptyState-d65bab5b.js");require("./Chips-edf2b573.js");require("./Dropdown-f2564c92.js");require("./Popup-eb11fa82.js");require("./Popup.vue_vue_type_style_index_0_lang-0ea8fbf8.js");require("./Button-7643c9aa.js");require("./Button.vue_vue_type_style_index_0_lang-0ea8fbf8.js");require("./Select-3ca5ab39.js");require("./reports-270f69df.js");require("./index-b41aac19.js");require("./click-outside-0b0727d1.js");require("./auth-df5a20c6.js");require("./IconEdit-c0469b45.js");require("./SkeletonEvent-eb284de8.js");require("./Feed-5a359bb7.js");require("./Loader-21f016da.js");require("./CardBlogpost-f308ff64.js");require("./Checkbox-76f09248.js");require("./categories-7ccd6be9.js");require("./Feed-98b47c6f.js");require("./CardProduct-92affca1.js");require("./vuex.esm-bundler-685cf29f.js");require("./products-3c43eb18.js");require("./Field.vue_vue_type_style_index_0_scoped_f4a29b0d_lang-0ea8fbf8.js");require("./inputs.validation-d7cef32b.js");require("./BlockTags-8cddaef7.js");require("./Field-e2a43424.js");require("./SelectMulti-c25765cf.js");require("./UploadImage-0f488170.js");require("./auth.validation-80b133df.js");require("./Feed-5653cf8b.js");exports.CardDepartment=e.CardDepartment;exports.Contacts=e._sfc_main$9;exports.Department=e._sfc_main$3;exports.DepartmentEdit=e.DepartmentEdit;exports.DepartmentMemberModify=e.DepartmentMemberModify;exports.DepartmentSub=e.DepartmentSub;exports.DetailsTab=e._sfc_main$11;exports.Documents=e.Documents;exports.EditArray=e._sfc_main$5;exports.EmptyState=e._sfc_main$8;exports.FeedDepartments=e._sfc_main$10;exports.MembersAdd=e._sfc_main;exports.MembersList=e._sfc_main$1;exports.Organization=e._sfc_main$2;exports.OrganizationEdit=e._sfc_main$4;exports.OrganizationsSection=e._sfc_main$12;exports.Rating=e._sfc_main$7;exports.Unit=e._sfc_main$6;exports.User=e.User;exports.departmentsStore=e.departments;exports.invitesStore=e.invites;exports.organizationsRouter=e.organizations;exports.Organizations=r.default;exports.CardOrganization=i._sfc_main;exports.Socials=t._sfc_main;exports.Publics=n._sfc_main;exports.ButtonToggleMembership=a._sfc_main;exports.membershipsStore=u.memberships;exports.organizationStore=s.organization;
@@ -1,4 +1,4 @@
1
- import { C as J, l as K, d as N, D as Q, i as V, h as W, n as X, p as Y, f as Z, k as $, m as tt, _ as rt, b as ot, c as it, e as mt, o as pt, j as at, g as et, U as st, r as nt, q as dt, t as ft } from "./organizations.client-9ffc023f.mjs";
1
+ import { C as J, l as K, d as N, D as Q, i as V, h as W, n as X, p as Y, f as Z, k as $, m as tt, _ as rt, b as ot, c as it, e as mt, o as pt, j as at, g as et, U as st, r as nt, q as dt, t as ft } from "./organizations.client-e519ef17.mjs";
2
2
  import { default as bt } from "./Organizations-a964d4b6.mjs";
3
3
  import { _ as xt } from "./CardOrganization-ae384e54.mjs";
4
4
  import { _ as zt } from "./Socials-8193477c.mjs";
@@ -35,11 +35,11 @@ import "./Feed-23758089.mjs";
35
35
  import "./Loader-cd422786.mjs";
36
36
  import "./CardBlogpost-c7adb0a7.mjs";
37
37
  import "./Checkbox-5dbe7b23.mjs";
38
- import "./categories-52a561a4.mjs";
38
+ import "./categories-5b08da53.mjs";
39
39
  import "./Feed-d114330c.mjs";
40
40
  import "./CardProduct-fca53299.mjs";
41
41
  import "./vuex.esm-bundler-57d8b6ba.mjs";
42
- import "./products-aabe5c02.mjs";
42
+ import "./products-943fb95e.mjs";
43
43
  import "./Field.vue_vue_type_style_index_0_scoped_f4a29b0d_lang-4ed993c7.mjs";
44
44
  import "./inputs.validation-db65277a.mjs";
45
45
  import "./BlockTags-ee310572.mjs";
@@ -0,0 +1 @@
1
+ "use strict";const c=require("vue"),i=require("./index-b41aac19.js"),s=require("./globals-928eb13c.js"),n=i.axios.create({baseURL:process.env.API_URL,withCredentials:!0}),t=c.reactive({all:[],current:{recommendation:!1,category:[],status:"unpublished",information:[],coverImage:"",images:[],files:[],image3d:!1,name:"",sale:0,price:0,localization:[],modifications:[],description:""}}),u={async create(e,r){const a={...r,organization:e};return await n.post("/products/create",a).then(o=>(d(o.data,"current"),Promise.resolve(o.data)),o=>(s.setError(o),Promise.reject(o)))},async read(e={}){let r={params:{}};e._id&&(r.params._id=e._id),e.category&&(r.params.category=e.category),r.params.skip=e.skip||0,r.params.limit=e.limit||10,e.organization&&(r.params.organization=e.organization),console.log(e),e.status&&(r.params.status=e.status),r.params.sort="createdAt",console.log(r);try{const a=await n.get("/products/read",{params:r.params});return e._id?t.current=a.data[0]:t.all=a.data,Promise.resolve(a.data)}catch(a){return s.setError(a),Promise.reject(a)}},async update(e,r){return await n.post("/products/"+e,r).then(a=>Promise.resolve(a.data),a=>(s.setError(a),Promise.reject(a)))},async deleteProduct(e){return await n.delete("/products/"+e).then(r=>Promise.resolve(r.data),r=>(s.setError(r),Promise.reject(r)))},async submitMood(e=null){return console.log(e),n.post("/product/recommended",{mood:e}).then(r=>(t.current=r.data.product,t.current.recommendation=r.data.recommendationText,Promise.resolve(r.data)),r=>(console.log(r),s.setError(r),Promise.reject(r)))},async fetchProducts(){return await n.get("/products/read").then(e=>(t.all=e.data,Promise.resolve(e.data)),e=>(s.setError(e),Promise.reject(e)))},async fetchProductsPopular(){return await n.get("/products/popular").then(e=>(t.popular=e.data,Promise.resolve(e.data)),e=>(s.setError(e),Promise.reject(e)))},async fetchProductsPublished(){return await n.get("/products").then(e=>{let r=e.data.filter(function(a,o){return a.status!=="unpublished"});return t.all=r,t.filtered=r.slice(),t.filteredPrice=t.filtered,t.filteredPrice.sort(function(a,o){return a[t.sort.current]>o[t.sort.current]?t.sort.ascending?1:-1:a[t.sort.current]<o[t.sort.current]?t.sort.ascending?-1:1:0}),Promise.resolve(e.data)},e=>(s.setError(e),Promise.reject(e)))},async fetchProduct(e){return await n.get("/products/"+e).then(r=>(r.localization||(r.localization=[]),t.current=r.data,Promise.resolve(r.data)),r=>(s.setError(r),Promise.reject(r)))},async fetchProductPopular(){return await n.get("/products").then(e=>(t.all=e.data.slice(1,5),Promise.resolve(e.data.slice(1,5))),e=>(s.setError(e),Promise.reject(e)))}};function d(e,r){t[r]=e}c.watch(t,(e,r)=>{});exports.actions=u;exports.state=t;
@@ -1,5 +1,4 @@
1
1
  import { reactive as c, watch as o } from "vue";
2
- import "./auth-076a83d0.mjs";
3
2
  import { a as u } from "./index-a661083c.mjs";
4
3
  import { s } from "./globals-96ba60e4.mjs";
5
4
  const n = u.create({ baseURL: process.env.API_URL, withCredentials: !0 }), r = c({
@@ -20,7 +19,7 @@ const n = u.create({ baseURL: process.env.API_URL, withCredentials: !0 }), r = c
20
19
  modifications: [],
21
20
  description: ""
22
21
  }
23
- }), g = {
22
+ }), f = {
24
23
  async create(e, t) {
25
24
  const a = {
26
25
  ...t,
@@ -103,6 +102,6 @@ function d(e, t) {
103
102
  o(r, (e, t) => {
104
103
  });
105
104
  export {
106
- g as a,
105
+ f as a,
107
106
  r as s
108
107
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ozdao/prometheus-framework",
3
- "version": "0.1.41",
3
+ "version": "0.1.42",
4
4
  "description": "Web3 Framework focused on user experience and ease of development.",
5
5
  "author": "OZ DAO <hello@ozdao.dev>",
6
6
  "license": "GPL-3.0-or-later",