@ozdao/prometheus-framework 0.0.89 → 0.0.91

Sign up to get free protection for your applications and to get access to all the features.
Files changed (544) hide show
  1. package/dist/{Breadcrumbs.vue_vue_type_style_index_0_lang-afba007a.mjs → Breadcrumbs.vue_vue_type_style_index_0_lang-d9c6e4d1.mjs} +8 -7
  2. package/dist/Breadcrumbs.vue_vue_type_style_index_0_lang-e32a3041.js +1 -0
  3. package/dist/{ButtonFollow-728aab73.mjs → ButtonFollow-5e19fc49.mjs} +7 -6
  4. package/dist/ButtonFollow-959861db.js +1 -0
  5. package/dist/CardOrganization-01c2e248.mjs +210 -0
  6. package/dist/CardOrganization-1be3651b.js +1 -0
  7. package/dist/{CardHeader-0677d446.js → Chips-2a0d9bfe.js} +1 -1
  8. package/dist/Chips-f0b7ce36.mjs +110 -0
  9. package/dist/{Feed-ca8e0e22.mjs → Feed-8bbb7077.mjs} +100 -95
  10. package/dist/{Feed-76b2997e.mjs → Feed-986ddd21.mjs} +114 -126
  11. package/dist/Feed-a2870bbf.js +1 -0
  12. package/dist/Feed-f987d8bb.js +1 -0
  13. package/dist/IconEdit-823ddda9.js +1 -0
  14. package/dist/{IconEdit-8df23653.mjs → IconEdit-f0ad8b9a.mjs} +1 -1
  15. package/dist/{Image-30f04604.js → Image-0f2814f0.js} +2 -2
  16. package/dist/{Image-6ec294f3.mjs → Image-9e90a5f6.mjs} +2 -2
  17. package/dist/{PlaceholderUserpic-2221dbf2.mjs → PlaceholderUserpic-14c6ea7e.mjs} +1 -1
  18. package/dist/PlaceholderUserpic-20d58460.js +1 -0
  19. package/dist/{Popup-105ef2c3.js → Popup-0106ee0c.js} +1 -1
  20. package/dist/{Popup-bdf043ba.mjs → Popup-31c7ffc6.mjs} +1 -1
  21. package/dist/{Product-b233e2a3.js → Product-54854cd1.js} +2 -2
  22. package/dist/{Product-eb00f35e.mjs → Product-58a83c67.mjs} +17 -16
  23. package/dist/ProductEdit-36e5cfdd.js +1 -0
  24. package/dist/{ProductEdit-61413d02.mjs → ProductEdit-56752bbe.mjs} +30 -29
  25. package/dist/{ProfileBlogposts-775b1cfa.mjs → ProfileBlogposts-67e1bd8f.mjs} +11 -10
  26. package/dist/ProfileBlogposts-a798df3d.js +1 -0
  27. package/dist/{ProfileComments-fd7d66bf.mjs → ProfileComments-17352b6a.mjs} +7 -6
  28. package/dist/ProfileComments-473c3413.js +1 -0
  29. package/dist/{ProfileEvents-7a51a9e6.mjs → ProfileEvents-76166bc5.mjs} +13 -12
  30. package/dist/ProfileEvents-cdebd612.js +1 -0
  31. package/dist/ProfileLikes-da6303a4.js +1 -0
  32. package/dist/{ProfileLikes-20a8a3c9.mjs → ProfileLikes-f838ff5e.mjs} +10 -9
  33. package/dist/ProfileOrganizations-5348e892.js +1 -0
  34. package/dist/{ProfileOrganizations-4b866823.mjs → ProfileOrganizations-58ebfe44.mjs} +7 -6
  35. package/dist/Publics-e14d36ed.js +1 -0
  36. package/dist/{Publics-0e44c61e.mjs → Publics-fcb1f708.mjs} +17 -16
  37. package/dist/{UploadImage-9e7e7468.js → UploadImage-73d66f27.js} +1 -1
  38. package/dist/{UploadImage-d33b293e.mjs → UploadImage-a3ef4012.mjs} +1 -1
  39. package/dist/_plugin-vue_export-helper-dad06003.mjs +9 -0
  40. package/dist/_plugin-vue_export-helper-f246444f.js +1 -0
  41. package/dist/{auth-8b5aac7a.mjs → auth-5217f6a5.mjs} +13 -17
  42. package/dist/auth-5a58f8cb.js +8 -0
  43. package/dist/auth.client.cjs +8 -8
  44. package/dist/auth.client.js +16 -15
  45. package/dist/{auth.validation-093babe9.mjs → auth.validation-9f87ea95.mjs} +1 -1
  46. package/dist/{auth.validation-9f7c7948.js → auth.validation-be05e981.js} +1 -1
  47. package/dist/community.client.cjs +1 -1
  48. package/dist/community.client.js +26 -25
  49. package/dist/community.server.js +7 -167
  50. package/dist/community.server.mjs +7 -167
  51. package/dist/components/Address/Address.vue.d.ts.map +1 -1
  52. package/dist/components/Button/Button.vue.d.ts.map +1 -1
  53. package/dist/components/Checkbox/Checkbox.vue.d.ts.map +1 -1
  54. package/dist/components/Dropdown/Dropdown.vue.d.ts.map +1 -1
  55. package/dist/components/Field/Field.vue.d.ts.map +1 -1
  56. package/dist/components/FieldPhone/FieldPhone.vue.d.ts.map +1 -1
  57. package/dist/components/LocationMarker/LocationMarker.vue.d.ts.map +1 -1
  58. package/dist/components/Map/Map.vue.d.ts.map +1 -1
  59. package/dist/components/Popup/Popup.vue.d.ts.map +1 -1
  60. package/dist/components/Select/Select.vue.d.ts.map +1 -1
  61. package/dist/components/SelectMulti/SelectMulti.vue.d.ts.map +1 -1
  62. package/dist/components/Spoiler/Spoiler.vue.d.ts.map +1 -1
  63. package/dist/components/Tab/Tab.vue.d.ts.map +1 -1
  64. package/dist/components/Text/Text.vue.d.ts.map +1 -1
  65. package/dist/components/Tooltip/Tooltip.vue.d.ts.map +1 -1
  66. package/dist/components/Upload/Upload.vue.d.ts.map +1 -1
  67. package/dist/events.client.cjs +1 -1
  68. package/dist/events.client.js +24 -23
  69. package/dist/landing.client.cjs +1 -0
  70. package/dist/landing.client.js +135 -0
  71. package/dist/modules/icons/labels/LabelAppStore.vue.d.ts +2 -0
  72. package/dist/modules/icons/labels/LabelGooglePlay.vue.d.ts +2 -0
  73. package/dist/modules/{community/components/blocks/HeaderBlogpost.vue.d.ts → landing/components/sections/MobileApp.vue.d.ts} +3 -3
  74. package/dist/{organizations-1581c013.mjs → organizations-2adff182.mjs} +1 -1
  75. package/dist/{organizations-c455dad7.js → organizations-e97a0f85.js} +1 -1
  76. package/dist/{organizations.client-7937e180.mjs → organizations.client-88d41199.mjs} +50 -49
  77. package/dist/organizations.client-d21a22ec.js +3 -0
  78. package/dist/organizations.client.cjs +1 -1
  79. package/dist/organizations.client.js +46 -45
  80. package/dist/prometheus-framework.cjs.js +10 -10
  81. package/dist/prometheus-framework.es.js +1 -1
  82. package/dist/style.css +1 -1
  83. package/dist/users.client.cjs +1 -1
  84. package/dist/users.client.js +16 -15
  85. package/package.json +6 -2
  86. package/src/components/Text/Text.vue +3 -1
  87. package/src/modules/community/community.server.js +0 -2
  88. package/src/modules/community/components/blocks/CardBlogpost.vue +8 -0
  89. package/src/modules/community/components/pages/Blog.vue +1 -1
  90. package/src/modules/community/controllers/blog.controller.js +5 -1
  91. package/src/modules/icons/labels/LabelAppStore.vue +29 -0
  92. package/src/modules/icons/labels/LabelGooglePlay.vue +47 -0
  93. package/src/modules/landing/components/sections/MobileApp.vue +134 -0
  94. package/src/modules/landing/landing.client.js +7 -0
  95. package/src/modules/organizations/components/blocks/CardOrganization.vue +3 -1
  96. package/dist/Breadcrumbs.vue_vue_type_style_index_0_lang-0216f2b0.js +0 -7
  97. package/dist/Breadcrumbs.vue_vue_type_style_index_0_lang-0cb41a82.js +0 -1
  98. package/dist/Breadcrumbs.vue_vue_type_style_index_0_lang-15e71ec4.js +0 -1
  99. package/dist/Breadcrumbs.vue_vue_type_style_index_0_lang-2809e848.mjs +0 -219
  100. package/dist/Breadcrumbs.vue_vue_type_style_index_0_lang-2af7f63b.mjs +0 -80
  101. package/dist/Breadcrumbs.vue_vue_type_style_index_0_lang-300fcb55.js +0 -1
  102. package/dist/Breadcrumbs.vue_vue_type_style_index_0_lang-451d2614.mjs +0 -80
  103. package/dist/Breadcrumbs.vue_vue_type_style_index_0_lang-474eb4c2.js +0 -1
  104. package/dist/Breadcrumbs.vue_vue_type_style_index_0_lang-5ea8b4fa.js +0 -1
  105. package/dist/Breadcrumbs.vue_vue_type_style_index_0_lang-628f013e.mjs +0 -138
  106. package/dist/Breadcrumbs.vue_vue_type_style_index_0_lang-85119a4e.js +0 -1
  107. package/dist/Breadcrumbs.vue_vue_type_style_index_0_lang-8cb3c120.mjs +0 -185
  108. package/dist/Breadcrumbs.vue_vue_type_style_index_0_lang-a477dfc6.mjs +0 -138
  109. package/dist/Breadcrumbs.vue_vue_type_style_index_0_lang-c6f3a0f0.js +0 -1
  110. package/dist/Breadcrumbs.vue_vue_type_style_index_0_lang-cdbafd07.mjs +0 -1944
  111. package/dist/Breadcrumbs.vue_vue_type_style_index_0_lang-d777ad17.mjs +0 -80
  112. package/dist/Breadcrumbs.vue_vue_type_style_index_0_lang-dd037bbf.js +0 -1
  113. package/dist/Breadcrumbs.vue_vue_type_style_index_0_lang-e133a3c6.mjs +0 -80
  114. package/dist/ButtonFollow-001c4a65.mjs +0 -130
  115. package/dist/ButtonFollow-0d83a04a.mjs +0 -130
  116. package/dist/ButtonFollow-1aca37e0.mjs +0 -130
  117. package/dist/ButtonFollow-1b655344.js +0 -1
  118. package/dist/ButtonFollow-2ce169ca.js +0 -1
  119. package/dist/ButtonFollow-48043cc7.js +0 -1
  120. package/dist/ButtonFollow-6bbf3e24.mjs +0 -130
  121. package/dist/ButtonFollow-6cd2efa2.mjs +0 -130
  122. package/dist/ButtonFollow-b29bd420.mjs +0 -130
  123. package/dist/ButtonFollow-c4680999.js +0 -1
  124. package/dist/ButtonFollow-c9484003.mjs +0 -130
  125. package/dist/ButtonFollow-d983e174.js +0 -1
  126. package/dist/ButtonFollow-f630623a.js +0 -1
  127. package/dist/ButtonFollow-f9c5dc7a.js +0 -1
  128. package/dist/CardHeader-2d7e5d49.mjs +0 -76
  129. package/dist/CardHeader-2ef6618e.mjs +0 -96
  130. package/dist/CardHeader-377cfc4b.js +0 -1
  131. package/dist/CardHeader-39f75e85.mjs +0 -76
  132. package/dist/CardHeader-88de7b20.mjs +0 -76
  133. package/dist/CardHeader-925a972b.js +0 -1
  134. package/dist/CardHeader-ce5a1a75.mjs +0 -96
  135. package/dist/CardHeader-ddf82318.js +0 -1
  136. package/dist/CardHeader-dff9c71a.js +0 -1
  137. package/dist/CardHeader-e15eb618.js +0 -1
  138. package/dist/CardHeader-e361dada.mjs +0 -96
  139. package/dist/CardHeader-e517c801.mjs +0 -76
  140. package/dist/CardOrganization-0291683b.js +0 -1
  141. package/dist/CardOrganization-1384ff9a.mjs +0 -320
  142. package/dist/CardOrganization-21de52b3.js +0 -1
  143. package/dist/CardOrganization-3c42e14f.mjs +0 -320
  144. package/dist/CardOrganization-4859370e.mjs +0 -320
  145. package/dist/CardOrganization-51309400.js +0 -1
  146. package/dist/CardOrganization-58b54995.js +0 -1
  147. package/dist/CardOrganization-91e79698.mjs +0 -320
  148. package/dist/CardOrganization-9841dbe0.js +0 -1
  149. package/dist/CardOrganization-a05f3a19.js +0 -1
  150. package/dist/CardOrganization-a75b523d.mjs +0 -63
  151. package/dist/CardOrganization-bacc2ef6.mjs +0 -202
  152. package/dist/CardOrganization-d462e158.mjs +0 -320
  153. package/dist/CardOrganization-ee5c34ab.js +0 -1
  154. package/dist/CardOrganization-f70bd169.mjs +0 -202
  155. package/dist/CardOrganization-ffa585a7.js +0 -1
  156. package/dist/Comments-1aec0e5e.js +0 -1
  157. package/dist/Comments-5ed669ea.mjs +0 -74
  158. package/dist/Comments-63f154a6.js +0 -9
  159. package/dist/Comments-641516f8.mjs +0 -76
  160. package/dist/Comments-646c73ee.js +0 -1
  161. package/dist/Comments-6ff58c26.js +0 -1
  162. package/dist/Comments-7c4f2715.js +0 -1
  163. package/dist/Comments-81feeb4a.mjs +0 -76
  164. package/dist/Comments-9427a0eb.mjs +0 -76
  165. package/dist/Comments-b5821190.mjs +0 -76
  166. package/dist/Comments-b620bae6.js +0 -1
  167. package/dist/Comments-b6e32958.js +0 -1
  168. package/dist/Comments-c092550f.mjs +0 -76
  169. package/dist/Comments-c5afa4d6.mjs +0 -459
  170. package/dist/Comments-d2a8fd0f.mjs +0 -76
  171. package/dist/DepartmentEdit-305a0f5d.mjs +0 -374
  172. package/dist/DepartmentEdit-6abd59e1.js +0 -1
  173. package/dist/DepartmentEdit-9e6fe007.mjs +0 -374
  174. package/dist/DepartmentEdit-d98c2239.js +0 -1
  175. package/dist/EditProductImages-04ec4326.js +0 -1
  176. package/dist/EditProductImages-11510b66.js +0 -1
  177. package/dist/EditProductImages-1d4b44a9.mjs +0 -236
  178. package/dist/EditProductImages-4246db75.mjs +0 -236
  179. package/dist/EditProductImages-42f9f665.mjs +0 -236
  180. package/dist/EditProductImages-61ff4321.mjs +0 -236
  181. package/dist/EditProductImages-98d13eb0.js +0 -1
  182. package/dist/EditProductImages-9f25f39f.mjs +0 -236
  183. package/dist/EditProductImages-b1b05c03.js +0 -1
  184. package/dist/EditProductImages-c7daafb2.mjs +0 -236
  185. package/dist/EditProductImages-cf67d31b.js +0 -1
  186. package/dist/EditProductImages-cfb1856e.mjs +0 -237
  187. package/dist/EditProductImages-d9228ad0.js +0 -1
  188. package/dist/EditProductImages-ec630dbf.js +0 -1
  189. package/dist/EditProductImages-f983f473.mjs +0 -236
  190. package/dist/EmptyState-1214f70b.mjs +0 -36
  191. package/dist/EmptyState-23c13029.js +0 -1
  192. package/dist/Feed-0b549674.js +0 -1
  193. package/dist/Feed-193dd1df.mjs +0 -342
  194. package/dist/Feed-26bf6bef.js +0 -1
  195. package/dist/Feed-2f9a1922.mjs +0 -334
  196. package/dist/Feed-31523f38.js +0 -1
  197. package/dist/Feed-4b28adc5.mjs +0 -423
  198. package/dist/Feed-51e4e232.js +0 -1
  199. package/dist/Feed-531de2d5.js +0 -1
  200. package/dist/Feed-55c5907a.js +0 -1
  201. package/dist/Feed-5c9e4e74.mjs +0 -340
  202. package/dist/Feed-5d8d5c21.js +0 -1
  203. package/dist/Feed-706cd7c0.mjs +0 -383
  204. package/dist/Feed-8009e4f8.js +0 -1
  205. package/dist/Feed-81d5802e.mjs +0 -355
  206. package/dist/Feed-83ef5666.js +0 -1
  207. package/dist/Feed-8fd41524.js +0 -1
  208. package/dist/Feed-91eff3af.mjs +0 -393
  209. package/dist/Feed-926cf4f3.mjs +0 -355
  210. package/dist/Feed-932d976d.js +0 -1
  211. package/dist/Feed-962e009b.js +0 -1
  212. package/dist/Feed-a31c43c2.mjs +0 -423
  213. package/dist/Feed-a82ae26b.js +0 -1
  214. package/dist/Feed-aa3bd30a.js +0 -1
  215. package/dist/Feed-b8eeb4e7.js +0 -1
  216. package/dist/Feed-bd7b1a45.js +0 -1
  217. package/dist/Feed-c0007a83.mjs +0 -383
  218. package/dist/Feed-c93012c7.mjs +0 -346
  219. package/dist/Feed-d2e5978c.mjs +0 -342
  220. package/dist/Feed-d4220f74.mjs +0 -340
  221. package/dist/Feed-d8e33aed.mjs +0 -397
  222. package/dist/Feed-dc8b66bf.mjs +0 -367
  223. package/dist/Feed-df5bbb3c.mjs +0 -346
  224. package/dist/Feed-e5fb4972.mjs +0 -397
  225. package/dist/Feed-e8fb21ed.js +0 -1
  226. package/dist/Feed-e91b36ea.mjs +0 -390
  227. package/dist/Feed-ecf37814.mjs +0 -367
  228. package/dist/Feed-eeb63363.js +0 -1
  229. package/dist/Feed-f4cad6c3.js +0 -1
  230. package/dist/Field-740d5a17.mjs +0 -60
  231. package/dist/Field-a1770ccf.js +0 -1
  232. package/dist/Field-ada86df2.js +0 -1
  233. package/dist/Field-e839d9ca.mjs +0 -60
  234. package/dist/Footer.vue_vue_type_style_index_0_lang-0ea8fbf8.js +0 -1
  235. package/dist/Footer.vue_vue_type_style_index_0_lang-2f7f46f1.js +0 -7
  236. package/dist/Footer.vue_vue_type_style_index_0_lang-39d2aa14.mjs +0 -37
  237. package/dist/Footer.vue_vue_type_style_index_0_lang-4ed993c7.mjs +0 -1
  238. package/dist/HeaderBlogpost-59dd9a6b.mjs +0 -93
  239. package/dist/HeaderBlogpost-8ec43cd0.js +0 -1
  240. package/dist/IconEdit-3028a3b7.js +0 -1
  241. package/dist/IconEdit-736c89be.js +0 -1
  242. package/dist/IconEdit-e9fd4c6c.mjs +0 -21
  243. package/dist/Image-6c7584f5.mjs +0 -477
  244. package/dist/Image-9a870c88.js +0 -9
  245. package/dist/PlaceholderUserpic-10fd9026.js +0 -1
  246. package/dist/PlaceholderUserpic-1a6cf257.mjs +0 -28
  247. package/dist/PlaceholderUserpic-3bf126ee.js +0 -1
  248. package/dist/PlaceholderUserpic-3c1b9f7b.mjs +0 -28
  249. package/dist/PlaceholderUserpic-43e5ab23.js +0 -1
  250. package/dist/PlaceholderUserpic-4fe04ec9.mjs +0 -28
  251. package/dist/PlaceholderUserpic-52966e09.js +0 -1
  252. package/dist/PlaceholderUserpic-9085715c.mjs +0 -28
  253. package/dist/PlaceholderUserpic-995da0fc.mjs +0 -28
  254. package/dist/PlaceholderUserpic-b27c51f7.js +0 -1
  255. package/dist/PlaceholderUserpic-d64d6dd5.js +0 -1
  256. package/dist/PlaceholderUserpic-e44ccca8.mjs +0 -28
  257. package/dist/PlaceholderUserpic-eb9820ce.mjs +0 -28
  258. package/dist/PlaceholderUserpic-fe8bd48d.js +0 -1
  259. package/dist/Popup-0c791801.mjs +0 -76
  260. package/dist/Popup-70f6a8c0.mjs +0 -76
  261. package/dist/Popup-7c331e1c.js +0 -1
  262. package/dist/Popup-82fb2c8a.mjs +0 -76
  263. package/dist/Popup-9479e39a.js +0 -1
  264. package/dist/Popup.vue_vue_type_style_index_0_lang-0cbf3253.js +0 -1
  265. package/dist/Popup.vue_vue_type_style_index_0_lang-22048704.mjs +0 -280
  266. package/dist/Popup.vue_vue_type_style_index_0_lang-28b9af00.mjs +0 -280
  267. package/dist/Popup.vue_vue_type_style_index_0_lang-4f16907f.mjs +0 -924
  268. package/dist/Popup.vue_vue_type_style_index_0_lang-5b5f9cd7.js +0 -5
  269. package/dist/Popup.vue_vue_type_style_index_0_lang-769e7cf5.js +0 -5
  270. package/dist/Popup.vue_vue_type_style_index_0_lang-8981c189.mjs +0 -280
  271. package/dist/Popup.vue_vue_type_style_index_0_lang-931f265a.js +0 -1
  272. package/dist/Popup.vue_vue_type_style_index_0_lang-a191c190.js +0 -1
  273. package/dist/Popup.vue_vue_type_style_index_0_lang-a9351a87.js +0 -1
  274. package/dist/Popup.vue_vue_type_style_index_0_lang-d05075a7.mjs +0 -280
  275. package/dist/Popup.vue_vue_type_style_index_0_lang-f2c0cfb5.mjs +0 -924
  276. package/dist/Product-0195429b.js +0 -1
  277. package/dist/Product-035252c0.js +0 -1
  278. package/dist/Product-05cc1386.mjs +0 -687
  279. package/dist/Product-151f4473.mjs +0 -904
  280. package/dist/Product-1724d88d.mjs +0 -837
  281. package/dist/Product-19cc3654.js +0 -7
  282. package/dist/Product-2f3d592f.mjs +0 -837
  283. package/dist/Product-2fbf9d99.js +0 -7
  284. package/dist/Product-334f8bf4.mjs +0 -904
  285. package/dist/Product-35904a9b.js +0 -7
  286. package/dist/Product-3c64a352.mjs +0 -904
  287. package/dist/Product-45a6e7bd.mjs +0 -687
  288. package/dist/Product-4a5f985d.mjs +0 -837
  289. package/dist/Product-60e14832.mjs +0 -904
  290. package/dist/Product-67efba5c.js +0 -7
  291. package/dist/Product-6c37ef35.js +0 -7
  292. package/dist/Product-7087b358.mjs +0 -837
  293. package/dist/Product-96195a8e.js +0 -7
  294. package/dist/Product-a94d8b65.js +0 -7
  295. package/dist/Product-b440df7f.js +0 -7
  296. package/dist/Product-c3a77d07.mjs +0 -837
  297. package/dist/Product-c8441f02.js +0 -7
  298. package/dist/Product-cf9cfe65.mjs +0 -904
  299. package/dist/Product-df622dc0.mjs +0 -837
  300. package/dist/Product-eb2b6725.js +0 -7
  301. package/dist/Product-f4dbd969.mjs +0 -837
  302. package/dist/Product-f819b17e.js +0 -7
  303. package/dist/Product-fb63c7cd.js +0 -7
  304. package/dist/ProductEdit-04760699.js +0 -1
  305. package/dist/ProductEdit-177c1f16.mjs +0 -113
  306. package/dist/ProductEdit-1e990a92.js +0 -1
  307. package/dist/ProductEdit-20709821.mjs +0 -349
  308. package/dist/ProductEdit-20bda9f1.mjs +0 -113
  309. package/dist/ProductEdit-39adf62f.mjs +0 -113
  310. package/dist/ProductEdit-4d6f3720.js +0 -1
  311. package/dist/ProductEdit-57484f1e.mjs +0 -349
  312. package/dist/ProductEdit-5e419719.mjs +0 -113
  313. package/dist/ProductEdit-5f9a55b6.mjs +0 -113
  314. package/dist/ProductEdit-765f4780.js +0 -1
  315. package/dist/ProductEdit-9e579dd7.mjs +0 -113
  316. package/dist/ProductEdit-a81d13b9.js +0 -1
  317. package/dist/ProductEdit-b98883d8.js +0 -1
  318. package/dist/ProductEdit-c3c6341d.js +0 -1
  319. package/dist/ProductEdit-c5067942.mjs +0 -113
  320. package/dist/ProductEdit-ca271287.js +0 -1
  321. package/dist/ProductEdit-e2d47403.mjs +0 -113
  322. package/dist/ProductEdit-ef301baa.js +0 -1
  323. package/dist/ProductEdit-fca68ff9.js +0 -1
  324. package/dist/ProfileBlogposts-00424109.js +0 -1
  325. package/dist/ProfileBlogposts-03658199.js +0 -1
  326. package/dist/ProfileBlogposts-11bfd9dc.js +0 -1
  327. package/dist/ProfileBlogposts-317742ee.mjs +0 -56
  328. package/dist/ProfileBlogposts-4341ca89.mjs +0 -46
  329. package/dist/ProfileBlogposts-55037a06.mjs +0 -56
  330. package/dist/ProfileBlogposts-65a7a5e0.mjs +0 -56
  331. package/dist/ProfileBlogposts-6704a38c.js +0 -1
  332. package/dist/ProfileBlogposts-79d5c858.mjs +0 -63
  333. package/dist/ProfileBlogposts-892fdcf8.mjs +0 -56
  334. package/dist/ProfileBlogposts-dc11090e.js +0 -1
  335. package/dist/ProfileBlogposts-e55e30ae.js +0 -1
  336. package/dist/ProfileBlogposts-e9a7381e.js +0 -1
  337. package/dist/ProfileBlogposts-eca9916c.js +0 -1
  338. package/dist/ProfileBlogposts-fb014bc6.mjs +0 -63
  339. package/dist/ProfileBlogposts-ffa10f34.mjs +0 -63
  340. package/dist/ProfileComments-0396b55c.js +0 -1
  341. package/dist/ProfileComments-08d1670d.mjs +0 -43
  342. package/dist/ProfileComments-175e42da.js +0 -1
  343. package/dist/ProfileComments-2e2a3a7a.mjs +0 -42
  344. package/dist/ProfileComments-34eb560b.mjs +0 -43
  345. package/dist/ProfileComments-48f3d4bc.mjs +0 -43
  346. package/dist/ProfileComments-58094a50.mjs +0 -43
  347. package/dist/ProfileComments-5884d09f.mjs +0 -43
  348. package/dist/ProfileComments-66651060.mjs +0 -43
  349. package/dist/ProfileComments-677731b3.js +0 -1
  350. package/dist/ProfileComments-730c2f73.js +0 -1
  351. package/dist/ProfileComments-82791682.js +0 -1
  352. package/dist/ProfileComments-b6a688cd.js +0 -1
  353. package/dist/ProfileComments-b919f021.js +0 -1
  354. package/dist/ProfileComments-d3966a83.mjs +0 -43
  355. package/dist/ProfileComments-f5f260ec.js +0 -1
  356. package/dist/ProfileEvents-05485e20.js +0 -1
  357. package/dist/ProfileEvents-138ae25e.mjs +0 -55
  358. package/dist/ProfileEvents-1cfe6858.mjs +0 -55
  359. package/dist/ProfileEvents-20695376.mjs +0 -55
  360. package/dist/ProfileEvents-20e9da99.mjs +0 -46
  361. package/dist/ProfileEvents-45c4b137.mjs +0 -55
  362. package/dist/ProfileEvents-4f2a5f00.js +0 -1
  363. package/dist/ProfileEvents-5d206e3d.mjs +0 -55
  364. package/dist/ProfileEvents-676239cc.js +0 -1
  365. package/dist/ProfileEvents-6e6c253b.mjs +0 -46
  366. package/dist/ProfileEvents-858e9471.mjs +0 -55
  367. package/dist/ProfileEvents-85a88674.mjs +0 -55
  368. package/dist/ProfileEvents-89def76b.js +0 -1
  369. package/dist/ProfileEvents-94d7b407.js +0 -1
  370. package/dist/ProfileEvents-b057d374.js +0 -1
  371. package/dist/ProfileEvents-b5431cd6.js +0 -1
  372. package/dist/ProfileEvents-b8a76b6e.js +0 -1
  373. package/dist/ProfileEvents-c1e04ac1.mjs +0 -46
  374. package/dist/ProfileEvents-cd75d80b.js +0 -1
  375. package/dist/ProfileEvents-cebebb17.js +0 -1
  376. package/dist/ProfileEvents-d53e7729.mjs +0 -46
  377. package/dist/ProfileEvents-d8e16509.js +0 -1
  378. package/dist/ProfileEvents-ddaf8fba.mjs +0 -55
  379. package/dist/ProfileEvents-ffe0e6f3.js +0 -1
  380. package/dist/ProfileLikes-0668b718.js +0 -1
  381. package/dist/ProfileLikes-2f3a4488.js +0 -1
  382. package/dist/ProfileLikes-405c2636.js +0 -1
  383. package/dist/ProfileLikes-4242bca5.mjs +0 -43
  384. package/dist/ProfileLikes-4a57f637.mjs +0 -43
  385. package/dist/ProfileLikes-503712ec.mjs +0 -43
  386. package/dist/ProfileLikes-7f965631.mjs +0 -43
  387. package/dist/ProfileLikes-854276f0.js +0 -1
  388. package/dist/ProfileLikes-8ccf6815.js +0 -1
  389. package/dist/ProfileLikes-a78900c0.js +0 -1
  390. package/dist/ProfileLikes-b3b1350a.js +0 -1
  391. package/dist/ProfileLikes-b5ac7f48.mjs +0 -43
  392. package/dist/ProfileLikes-c32c420b.mjs +0 -43
  393. package/dist/ProfileLikes-c4c87300.mjs +0 -42
  394. package/dist/ProfileLikes-c899e3df.js +0 -1
  395. package/dist/ProfileLikes-d978b084.mjs +0 -43
  396. package/dist/ProfileOrganizations-04cc9d6d.mjs +0 -198
  397. package/dist/ProfileOrganizations-0b76e38f.js +0 -1
  398. package/dist/ProfileOrganizations-0e202612.js +0 -1
  399. package/dist/ProfileOrganizations-13748b09.js +0 -1
  400. package/dist/ProfileOrganizations-1990d0cc.js +0 -1
  401. package/dist/ProfileOrganizations-2633e9e4.mjs +0 -198
  402. package/dist/ProfileOrganizations-32ab1e30.mjs +0 -211
  403. package/dist/ProfileOrganizations-3f305f4e.mjs +0 -210
  404. package/dist/ProfileOrganizations-46b6e015.mjs +0 -202
  405. package/dist/ProfileOrganizations-4ffaf01c.js +0 -1
  406. package/dist/ProfileOrganizations-50fce34e.js +0 -1
  407. package/dist/ProfileOrganizations-567e87e1.mjs +0 -210
  408. package/dist/ProfileOrganizations-5abfcc59.js +0 -1
  409. package/dist/ProfileOrganizations-5d681498.mjs +0 -202
  410. package/dist/ProfileOrganizations-6d3a43e4.js +0 -1
  411. package/dist/ProfileOrganizations-704f628b.js +0 -1
  412. package/dist/ProfileOrganizations-b83f6720.js +0 -1
  413. package/dist/ProfileOrganizations-c58a4fb9.js +0 -1
  414. package/dist/ProfileOrganizations-c7688210.js +0 -1
  415. package/dist/ProfileOrganizations-ca9a95a1.js +0 -1
  416. package/dist/ProfileOrganizations-dbc8a6cd.mjs +0 -214
  417. package/dist/ProfileOrganizations-dc7210f1.mjs +0 -214
  418. package/dist/ProfileOrganizations-e4fd2b05.mjs +0 -202
  419. package/dist/ProfileOrganizations-f6e00809.mjs +0 -214
  420. package/dist/ProfileOrganizations-feef34df.mjs +0 -112
  421. package/dist/Publics-07d5bbc4.js +0 -1
  422. package/dist/Publics-122d9fc7.mjs +0 -1078
  423. package/dist/Publics-13c48a23.mjs +0 -47
  424. package/dist/Publics-17009745.mjs +0 -1926
  425. package/dist/Publics-213e0e9e.mjs +0 -44
  426. package/dist/Publics-21f24533.mjs +0 -44
  427. package/dist/Publics-3f277c17.js +0 -1
  428. package/dist/Publics-450a6715.mjs +0 -1926
  429. package/dist/Publics-49dbeafc.js +0 -1
  430. package/dist/Publics-4e1c14fc.js +0 -1
  431. package/dist/Publics-501c9f27.js +0 -1
  432. package/dist/Publics-54134615.mjs +0 -47
  433. package/dist/Publics-889c25fc.js +0 -1
  434. package/dist/Publics-8bea4201.mjs +0 -44
  435. package/dist/Publics-8d94ee66.js +0 -1
  436. package/dist/Publics-9ebffff1.mjs +0 -122
  437. package/dist/Publics-a030da8f.js +0 -1
  438. package/dist/Publics-aca585c3.js +0 -1
  439. package/dist/Publics-b0fad2b0.mjs +0 -1926
  440. package/dist/Publics-becb1486.js +0 -1
  441. package/dist/Publics-c6f6b824.js +0 -1
  442. package/dist/Publics-c9d5aa74.js +0 -1
  443. package/dist/Publics-fbc8d2db.mjs +0 -1926
  444. package/dist/Select.vue_vue_type_style_index_0_scoped_a78dbba1_lang-0ea8fbf8.js +0 -1
  445. package/dist/Select.vue_vue_type_style_index_0_scoped_a78dbba1_lang-4ed993c7.mjs +0 -1
  446. package/dist/Tab-054b61f7.mjs +0 -46
  447. package/dist/Tab-1ca0fe66.js +0 -1
  448. package/dist/Tab-58cd105f.mjs +0 -46
  449. package/dist/Tab-b0a7ac11.js +0 -1
  450. package/dist/Tab-c67fbf51.mjs +0 -46
  451. package/dist/Tab-f04c185d.js +0 -1
  452. package/dist/Tab-fcb73759.mjs +0 -46
  453. package/dist/Tab.vue_vue_type_style_index_0_lang-0ea8fbf8.js +0 -1
  454. package/dist/Tab.vue_vue_type_style_index_0_lang-4ed993c7.mjs +0 -1
  455. package/dist/Unit.vue_vue_type_style_index_0_scoped_d69a370a_lang-0b4edb09.js +0 -1
  456. package/dist/Unit.vue_vue_type_style_index_0_scoped_d69a370a_lang-5531689e.mjs +0 -123
  457. package/dist/UploadImage-1b8c18c4.mjs +0 -99
  458. package/dist/UploadImage-34bc4a3f.mjs +0 -99
  459. package/dist/UploadImage-441e8526.js +0 -1
  460. package/dist/UploadImage-4e91bd99.js +0 -1
  461. package/dist/UploadImage-6e312c46.mjs +0 -83
  462. package/dist/UploadImage-74280ea3.mjs +0 -99
  463. package/dist/UploadImage-75b1a18a.js +0 -1
  464. package/dist/UploadImage-7c502f96.js +0 -1
  465. package/dist/UploadImage-96408782.mjs +0 -99
  466. package/dist/UploadImage-9abb7116.js +0 -1
  467. package/dist/UploadImage-b1acc48f.mjs +0 -99
  468. package/dist/UploadImage-c81c3b76.js +0 -1
  469. package/dist/UploadImage-cd6de241.js +0 -1
  470. package/dist/UploadImage-d1dbc280.mjs +0 -99
  471. package/dist/UploadImage-ff8f9a0c.mjs +0 -83
  472. package/dist/auth-07c01b19.js +0 -8
  473. package/dist/auth-18f80fef.mjs +0 -1501
  474. package/dist/auth-2bc18d1e.js +0 -8
  475. package/dist/auth-35ef1791.mjs +0 -1502
  476. package/dist/auth-50bd4ebb.js +0 -8
  477. package/dist/auth-5aa8e90c.js +0 -8
  478. package/dist/auth-708eebcb.mjs +0 -1446
  479. package/dist/auth-78fd9408.js +0 -8
  480. package/dist/auth-7dff19e4.js +0 -8
  481. package/dist/auth-84680727.mjs +0 -1501
  482. package/dist/auth-ab40831d.js +0 -8
  483. package/dist/auth-d102dac0.mjs +0 -1501
  484. package/dist/auth-f81f3598.mjs +0 -1439
  485. package/dist/auth-fefd15a3.mjs +0 -1503
  486. package/dist/auth.validation-1fb0cb4f.js +0 -1
  487. package/dist/auth.validation-29113f37.mjs +0 -20
  488. package/dist/auth.validation-2d33e8c7.mjs +0 -20
  489. package/dist/auth.validation-2e8ee994.js +0 -1
  490. package/dist/auth.validation-4a617c0b.mjs +0 -20
  491. package/dist/auth.validation-6923140f.js +0 -1
  492. package/dist/auth.validation-69488f55.mjs +0 -20
  493. package/dist/auth.validation-6bccabd6.mjs +0 -20
  494. package/dist/auth.validation-78a90fed.js +0 -1
  495. package/dist/auth.validation-9cfd985b.mjs +0 -20
  496. package/dist/auth.validation-a18510e8.js +0 -1
  497. package/dist/auth.validation-b644ee65.js +0 -1
  498. package/dist/auth.validation-f23a7238.mjs +0 -21
  499. package/dist/categories-75b7d14b.js +0 -1
  500. package/dist/categories-86b2d45b.mjs +0 -225
  501. package/dist/categories-d669f3af.mjs +0 -225
  502. package/dist/components/FieldPhone/<script>.vue.d.ts +0 -547
  503. package/dist/globals-d7a54bb4.js +0 -1
  504. package/dist/globals-f538c0ef.mjs +0 -87
  505. package/dist/inputs.validation-498d8ec9.js +0 -1
  506. package/dist/inputs.validation-5732152a.mjs +0 -93
  507. package/dist/inputs.validation-6960f71b.mjs +0 -93
  508. package/dist/inputs.validation-c473ebe7.mjs +0 -93
  509. package/dist/inputs.validation-c53e01a2.js +0 -1
  510. package/dist/modules/community/components/blocks/CardOrganization.vue.d.ts +0 -8
  511. package/dist/modules/community/components/elements/Bullets.vue.d.ts +0 -15
  512. package/dist/modules/community/components/elements/Caption.vue.d.ts +0 -15
  513. package/dist/modules/community/components/elements/H2.vue.d.ts +0 -16
  514. package/dist/modules/community/components/elements/Image.vue.d.ts +0 -8
  515. package/dist/modules/community/components/elements/ImageUpload.vue.d.ts +0 -9
  516. package/dist/modules/community/components/elements/Textarea.vue.d.ts +0 -16
  517. package/dist/modules/community/components/pages/BlogPost.old.vue.d.ts +0 -2
  518. package/dist/modules/community/components/sections/Publics.vue.d.ts +0 -2
  519. package/dist/modules/events/components/layouts/Events.vue.d.ts +0 -2
  520. package/dist/modules/organizations/components/blocks/CardOrganizationSocial.vue.d.ts +0 -8
  521. package/dist/organizations-0e9ff7ca.mjs +0 -319
  522. package/dist/organizations-1b4c84ee.mjs +0 -121
  523. package/dist/organizations-35fe2db4.js +0 -1
  524. package/dist/organizations-4d74e13b.js +0 -1
  525. package/dist/organizations-5f9c7fbd.js +0 -1
  526. package/dist/organizations-6c1450fa.mjs +0 -153
  527. package/dist/organizations-773c328c.mjs +0 -319
  528. package/dist/organizations-a9b86de7.mjs +0 -319
  529. package/dist/organizations-af43bda4.js +0 -1
  530. package/dist/organizations-b3df0859.js +0 -1
  531. package/dist/organizations-c77ea9d0.js +0 -1
  532. package/dist/organizations-d4307861.mjs +0 -319
  533. package/dist/organizations-dd07ba2c.js +0 -1
  534. package/dist/organizations-fb1a2214.mjs +0 -319
  535. package/dist/organizations.client-040ec107.js +0 -3
  536. package/dist/organizations.client-253c8068.mjs +0 -3179
  537. package/dist/organizations.client-3b4eb66e.mjs +0 -2898
  538. package/dist/organizations.client-4e29c957.js +0 -3
  539. package/dist/organizations.client-686845be.mjs +0 -3179
  540. package/dist/organizations.client-71c9abde.mjs +0 -2898
  541. package/dist/organizations.client-99bfc474.js +0 -3
  542. package/dist/organizations.client-ba59ed4e.js +0 -3
  543. package/dist/organizations.client-c60d7659.js +0 -3
  544. package/src/modules/community/controllers/blog.old.controller.js +0 -207
@@ -1,319 +0,0 @@
1
- import { openBlock as s, createElementBlock as i, createCommentVNode as o, createElementVNode as t, createTextVNode as g, toDisplayString as n, Fragment as h, renderList as f, createBlock as b, withModifiers as w, reactive as p, watch as x } from "vue";
2
- import { useRouter as v } from "vue-router";
3
- import { B as C } from "./ButtonFollow-b29bd420.mjs";
4
- import { a as z, C as y } from "./auth-d102dac0.mjs";
5
- import { s as u } from "./globals-f538c0ef.mjs";
6
- const k = { class: "flex-stretch flex-nojustify flex-nowrap flex shop-cart-item" }, _ = ["src"], $ = {
7
- key: 1,
8
- width: "524",
9
- height: "345",
10
- viewBox: "0 0 524 345",
11
- fill: "none",
12
- xmlns: "http://www.w3.org/2000/svg",
13
- class: "aspect-1x1",
14
- style: { "object-fit": "cover" }
15
- }, O = /* @__PURE__ */ t("rect", {
16
- width: "524",
17
- height: "345",
18
- fill: "white"
19
- }, null, -1), M = /* @__PURE__ */ t("rect", {
20
- width: "524",
21
- height: "345",
22
- fill: "white"
23
- }, null, -1), L = /* @__PURE__ */ t("circle", {
24
- cx: "262",
25
- cy: "172",
26
- r: "56",
27
- fill: "#00ff88",
28
- "fill-opacity": "0.1"
29
- }, null, -1), j = /* @__PURE__ */ t("path", {
30
- fill: "#00ff88",
31
- d: "M229.348 186.819C230.243 191.884 233.393 194.231 238.458 193.273V193.644C238.458 198.832 241.206 201.581 246.364 201.581H291.545C296.733 201.581 299.481 198.74 299.481 193.644V162.576C299.481 157.481 296.733 154.64 291.545 154.64H285.677L284.071 145.653C283.175 140.619 279.995 138.303 274.899 139.198L230.398 147.043C225.302 147.969 223.048 151.15 223.943 156.246L229.348 186.819ZM230.83 186.479L225.456 156.06C224.715 151.86 226.537 149.266 230.737 148.525L275.084 140.712C279.13 140.001 281.848 141.762 282.62 145.993L284.102 154.64H246.364C241.206 154.64 238.458 157.419 238.458 162.576V191.729L238.365 191.76C234.165 192.532 231.571 190.679 230.83 186.479ZM239.971 162.669C239.971 158.376 242.164 156.153 246.456 156.153H291.483C295.59 156.153 297.968 158.376 297.968 162.669V190.093L284.565 177.894C283.145 176.597 281.662 175.856 279.809 175.856C277.987 175.856 276.628 176.566 275.146 177.863L262.052 189.073L257.142 184.565C255.875 183.36 254.764 182.743 253.158 182.743C251.675 182.743 250.656 183.36 249.39 184.503L239.971 193.212V162.669ZM257.636 178.419C261.373 178.419 264.43 175.3 264.43 171.471C264.43 167.734 261.373 164.584 257.636 164.584C253.806 164.584 250.718 167.734 250.718 171.471C250.718 175.3 253.806 178.419 257.636 178.419Z"
32
- }, null, -1), P = [
33
- O,
34
- M,
35
- L,
36
- j
37
- ], S = { class: "text-left" }, V = { class: "name" }, B = {
38
- key: 0,
39
- class: "t-transp"
40
- }, I = {
41
- key: 1,
42
- class: "t-transp"
43
- }, Z = {
44
- key: 2,
45
- class: "t-transp"
46
- }, q = { class: "t-main t-demi price mn-small" }, F = { key: 0 }, H = {
47
- key: 0,
48
- class: "flex-nojustify flex"
49
- }, N = { class: "flex-nowrap flex" }, R = /* @__PURE__ */ t("svg", {
50
- fill: "none",
51
- height: "20",
52
- viewBox: "0 0 20 20",
53
- width: "20",
54
- xmlns: "http://www.w3.org/2000/svg"
55
- }, [
56
- /* @__PURE__ */ t("path", {
57
- "clip-rule": "evenodd",
58
- d: "m7.27124 0h5.45456c1.0041 0 1.8182.814027 1.8182 1.81818v.90899h2.7278c1.0042 0 1.8182.81402 1.8182 1.81818v1.81818c0 1.00415-.814 1.81818-1.8182 1.81818h-.0735l-.8363 10.00009c0 1.0042-.814 1.8182-1.8182 1.8182h-9.09087c-1.00416 0-1.81818-.814-1.81504-1.7427l-.83964-10.07559h-.07187c-1.00415 0-1.818177-.81403-1.818177-1.81818v-1.81818c0-1.00416.814027-1.81818 1.818177-1.81818h2.72668v-.90899c0-1.004153.81402-1.81818 1.81818-1.81818zm-1.81889 18.1819-.83047-10h10.75152l-.827 9.9245-.0031.0755zm-2.72612-11.81799v-1.81818h14.54547v1.81818zm10.00137-4.54571v.90909h-5.45456v-.90909z",
59
- fill: "#8a8a8a",
60
- "fill-rule": "evenodd"
61
- })
62
- ], -1), U = [
63
- R
64
- ], E = {
65
- __name: "CardOrderItem",
66
- props: {
67
- product: Object,
68
- editable: String,
69
- increase: Function,
70
- decrease: Function,
71
- remove: Function
72
- },
73
- setup(e) {
74
- return v(), (a, r) => (s(), i("div", k, [
75
- e.product.images[0] ? (s(), i("img", {
76
- key: 0,
77
- class: "bg-grey aspect-1x1",
78
- src: e.product.images[0]
79
- }, null, 8, _)) : o("", !0),
80
- e.product.images[0] ? o("", !0) : (s(), i("svg", $, P)),
81
- t("div", S, [
82
- t("p", V, [
83
- g(n(e.product.name) + " ", 1),
84
- e.product.size ? (s(), i("span", B, ", " + n(e.product.size), 1)) : o("", !0),
85
- typeof e.product.color == "string" && e.product.size ? (s(), i("span", I, ", ")) : o("", !0),
86
- typeof e.product.color == "string" ? (s(), i("span", Z, n(e.product.color), 1)) : o("", !0)
87
- ]),
88
- t("p", q, [
89
- e.editable ? (s(), i("span", F, n(e.product.quantity) + " x ", 1)) : o("", !0),
90
- g(n(e.product.price) + " " + n(a.returnCurrency()), 1)
91
- ]),
92
- e.editable ? (s(), i("div", H, [
93
- t("div", N, [
94
- t("button", {
95
- onClick: r[0] || (r[0] = (l) => e.decrease(e.product)),
96
- class: "mn-r-thin bg-grey button-square button"
97
- }, "-"),
98
- t("button", {
99
- onClick: r[1] || (r[1] = (l) => e.increase(e.product)),
100
- class: "mn-r-thin bg-grey button-square button"
101
- }, "+")
102
- ]),
103
- t("button", {
104
- onClick: r[2] || (r[2] = (l) => e.remove(e.product)),
105
- class: "hover_br-transp hover_br-l-dark bg-transp button-square button"
106
- }, U)
107
- ])) : o("", !0)
108
- ])
109
- ]));
110
- }
111
- }, J = { class: "pd-medium br-b br-solid br-black-transp flex-v-center flex-nowrap flex" }, T = ["src"], A = {
112
- key: 1,
113
- class: "h-4r w-4r radius-extra",
114
- width: "42",
115
- height: "42",
116
- viewBox: "0 0 42 42",
117
- fill: "none",
118
- xmlns: "http://www.w3.org/2000/svg"
119
- }, D = /* @__PURE__ */ t("circle", {
120
- fill: "rgb(var(--main))",
121
- cx: "21",
122
- cy: "21",
123
- r: "21"
124
- }, null, -1), G = /* @__PURE__ */ t("path", {
125
- fill: "#242424",
126
- "fill-opacity": "0.1",
127
- "fill-rule": "evenodd",
128
- "clip-rule": "evenodd",
129
- d: "M8.00233 37.4954C8.00078 37.4458 8 37.3961 8 37.3462C8 32.9066 11.5673 29.3077 15.9677 29.3077H26.0323C30.4328 29.3077 34 32.9066 34 37.3462C34 37.3961 33.9992 37.4458 33.9977 37.4954C30.4223 40.3165 25.9078 42 21 42C16.0922 42 11.5777 40.3164 8.00233 37.4954ZM21 9C16.5995 9 13.0323 12.5989 13.0323 17.0385C13.0323 21.478 16.5995 25.0769 21 25.0769C25.4005 25.0769 28.9677 21.478 28.9677 17.0385C28.9677 12.5989 25.4005 9 21 9Z"
130
- }, null, -1), K = [
131
- D,
132
- G
133
- ], Q = { class: "mn-l-small" }, W = { class: "h3 mn-r-semi mn-thin" }, X = {
134
- key: 0,
135
- class: "w-max star-container flex-v-center flex"
136
- }, Y = { class: "mn-r-thin pd-r-thin pd-l-thin pd-extra-thin radius-small t-semi uppercase bg-main p-small" }, ee = ["src"], te = { class: "p-small t-semi mn-r-thin" }, ae = { class: "p-small" }, re = { class: "" }, se = {
137
- key: 0,
138
- class: "pd-medium"
139
- }, ie = { class: "mn-small w-100 flex-nowrap flex flex-v-center pd-small bg-white radius-medium" }, ne = { class: "t-black p-medium t-semi" }, le = /* @__PURE__ */ t("span", { class: "mn-r-small" }, "30-60min", -1), oe = /* @__PURE__ */ t("span", { class: "mn-r-auto" }, "$50 min", -1), ce = { class: "d-block o-scroll flex-nowrap flex" }, de = /* @__PURE__ */ t("button", { class: "flex-center flex-nowrap flex shop-cart-item pd-thin radius-medium w-15r bg-main button" }, "View menu", -1), ve = {
140
- __name: "CardOrganization",
141
- props: {
142
- user: String,
143
- organization: Object
144
- },
145
- emits: ["updateMembership"],
146
- setup(e, { emit: a }) {
147
- return v(), (r, l) => (s(), i("div", {
148
- class: "w-100 mn-small bg-grey radius-big o-hidden br-solid br-1px br-grey",
149
- onClick: l[1] || (l[1] = (c) => r.$router.push({ name: "Organization", params: { _id: e.organization._id } }))
150
- }, [
151
- t("div", J, [
152
- e.organization.profile.photo && e.organization.profile.photo.length > 0 ? (s(), i("img", {
153
- key: 0,
154
- src: e.organization.profile.photo,
155
- class: "h-4r w-4r radius-extra"
156
- }, null, 8, T)) : (s(), i("svg", A, K)),
157
- t("div", Q, [
158
- t("p", W, n(e.organization.profile.name), 1),
159
- e.organization.rating ? (s(), i("div", X, [
160
- t("span", Y, n(e.organization.types[0]), 1),
161
- (s(), i(h, null, f(5, (c) => t("img", {
162
- class: "i-small mn-r-thin",
163
- src: c <= e.organization.rating.median ? "/icons/star.svg" : "/icons/star-stroke.svg"
164
- }, null, 8, ee)), 64)),
165
- t("span", te, n(e.organization.rating.median), 1),
166
- t("span", ae, "(" + n(e.organization.rating.amount) + ")", 1)
167
- ])) : o("", !0),
168
- t("div", null, [
169
- e.user ? (s(), b(C, {
170
- key: 0,
171
- type: "organization",
172
- isMember: e.organization.isMember,
173
- targetId: e.organization._id,
174
- userId: e.user,
175
- class: "radius-bl-big radius-br-big radius-tl-zero radius-tr-zero w-100",
176
- onUpdateMembership: l[0] || (l[0] = (c) => a("updateMembership", c))
177
- }, null, 8, ["isMember", "targetId", "userId"])) : o("", !0),
178
- t("p", re, n(e.organization.numberOfMemberships) + " followers", 1)
179
- ])
180
- ])
181
- ]),
182
- e.organization.products.length > 0 ? (s(), i("div", se, [
183
- t("div", ie, [
184
- t("p", ne, n(e.organization.products.length) + " items: ", 1),
185
- le,
186
- oe
187
- ]),
188
- t("div", ce, [
189
- (s(!0), i(h, null, f(e.organization.products, (c) => (s(), b(E, {
190
- onClick: w((me) => r.$router.push({ name: "Product Organization", params: { _id: e.organization._id, product: c._id } }), ["stop"]),
191
- key: c._id,
192
- editable: !1,
193
- product: c,
194
- class: "pd-thin radius-medium w-15r br-solid br-grey br-1px bg-white mn-r-thin"
195
- }, null, 8, ["onClick", "product"]))), 128)),
196
- de
197
- ])
198
- ])) : o("", !0)
199
- ]));
200
- }
201
- }, m = z.create({ baseURL: process.env.API_URL, withCredentials: !0 }), d = p({
202
- all: [],
203
- current: {
204
- _id: null,
205
- profile: {
206
- categories: [],
207
- photo: "",
208
- name: "",
209
- description: ""
210
- },
211
- structure: [],
212
- owner: null,
213
- types: "",
214
- contacts: {
215
- email: "",
216
- website: "",
217
- phone: "",
218
- address: ""
219
- },
220
- social: {
221
- telegram: "",
222
- line: "",
223
- facebook: "",
224
- instagram: ""
225
- },
226
- rating: {
227
- popularity: 0,
228
- median: 0,
229
- amount: 0
230
- }
231
- }
232
- }), ue = {
233
- // Create
234
- async create(e, a) {
235
- e.owner = a;
236
- try {
237
- const r = await m.post("/api/organizations/create", e);
238
- return console.log("Organization created successfully"), d.current = r.data, r.data;
239
- } catch (r) {
240
- throw console.log("Organization creation failed"), u(r), r;
241
- }
242
- },
243
- // Read
244
- async read(e = {}) {
245
- console.log(e), e.params = e.params || {}, e.location && (e.params.location = e.location), e.country && (e.params.country = e.country), e.state && (e.params.state = e.state), e.city && (e.params.city = e.city), e.categories && (e.params.categories = e.categories), e.prices && (e.params.prices = e.prices), e.delivery && (e.params.delivery = e.delivery), e._id && (e.params = e.params || {}, e.params._id = e._id), e.types && (e.params = e.params || [], e.params.types = e.types), e.owner && (e.params = e.params || {}, e.params.owner = e.owner), e.user && (e.params = e.params || {}, e.params.user = e.user), e.onlyuser && (e.params = e.params || {}, e.params.onlyuser = e.onlyuser), e.params = e.params || {}, e.params.skip = e.skip || 0, e.params.limit = e.limit || 9, e.params.sortParam = e.sort;
246
- try {
247
- console.log("Request params:" + e.params);
248
- const a = await m.get("/api/organizations", { params: e.params });
249
- return e._id ? (console.log(a.data[0]), Object.assign(d.current || {}, a.data[0]), console.log(d.current)) : console.log(a.data), Promise.resolve(a.data);
250
- } catch (a) {
251
- return u(a), Promise.reject(a);
252
- }
253
- },
254
- // Update
255
- async update(e, a) {
256
- return console.log(e, a), await m.post(`/api/organizations/${e}/update`, a).then(
257
- (r) => (console.log("Organization updated successfully"), Promise.resolve(r.data)),
258
- (r) => (console.log("Updating organization failed"), Promise.reject(r))
259
- );
260
- },
261
- // Remove
262
- async remove(e) {
263
- await m.delete(`/api/organizations/${e}/delete`).then(
264
- (a) => {
265
- d.error = null;
266
- let r = y.get("user"), l = JSON.parse(r);
267
- return l.organization = null, y.set("user", JSON.stringify(l), { expires: 7, domain: ".osi.plus", sameSite: "none", secure: !0 }), Promise.resolve(a.data);
268
- },
269
- (a) => (u(a), Promise.reject(a))
270
- ).catch((a) => {
271
- u(a);
272
- });
273
- },
274
- // Reset
275
- async reset() {
276
- d.current = {
277
- _id: null,
278
- profile: {
279
- categories: [],
280
- photo: "",
281
- name: "",
282
- description: ""
283
- },
284
- structure: [],
285
- owner: null,
286
- types: "",
287
- contacts: {
288
- email: "",
289
- website: "",
290
- phone: "",
291
- address: ""
292
- },
293
- social: {
294
- telegram: "",
295
- line: "",
296
- facebook: "",
297
- instagram: ""
298
- },
299
- rating: {
300
- popularity: 0,
301
- median: 0,
302
- amount: 0
303
- }
304
- };
305
- }
306
- };
307
- x(d, (e, a) => {
308
- });
309
- const we = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
310
- __proto__: null,
311
- actions: ue,
312
- state: d
313
- }, Symbol.toStringTag, { value: "Module" }));
314
- export {
315
- ve as _,
316
- ue as a,
317
- we as o,
318
- d as s
319
- };
@@ -1,3 +0,0 @@
1
- "use strict";const e=require("vue"),b=require("vue-router"),ie=require("vue-i18n"),g=require("./globals-928eb13c.js"),B=require("./Breadcrumbs.vue_vue_type_style_index_0_lang-300fcb55.js"),Y=require("./Tab-6f0a4909.js"),O=require("./ButtonFollow-48043cc7.js"),ce=require("./Feed-eeb63363.js"),de=require("./Feed-5d8d5c21.js"),I=require("./IconEdit-3028a3b7.js"),ue=require("./PlaceholderUserpic-10fd9026.js"),p=require("./auth-2bc18d1e.js"),U=require("./inputs.validation-24ae76b9.js"),h=require("./organizations-c455dad7.js"),J=require("./UploadImage-9e7e7468.js"),pe=require("./CardOrganization-51309400.js"),Q=require("./Publics-4e1c14fc.js"),me={class:"breadcrumbs flex-row flex-nowrap flex-left flex","aria-label":"breadcrumbs"},he={key:0,class:"i-small mn-r-thin",viewBox:"0 0 10 9",fill:"none",xmlns:"http://www.w3.org/2000/svg"},_e=e.createElementVNode("path",{fill:"black",d:"M0.494141 4.26391C0.494141 4.48862 0.659906 4.66912 0.928813 4.66912C1.05037 4.66912 1.16825 4.6065 1.27139 4.52177L1.64344 4.20866V7.56448C1.64344 8.13545 1.98971 8.47803 2.5791 8.47803H7.56678C8.15616 8.47803 8.50243 8.13545 8.50243 7.56448V4.19392L8.8929 4.52177C8.99604 4.6065 9.11392 4.66912 9.23916 4.66912C9.48597 4.66912 9.67015 4.5144 9.67015 4.27128C9.67015 4.1313 9.61121 4.01343 9.5007 3.92133L8.50243 3.08146V1.47538C8.50243 1.30961 8.3956 1.1991 8.22984 1.1991H7.63308C7.46732 1.1991 7.35313 1.30961 7.35313 1.47538V2.11634L5.66969 0.70181C5.31606 0.403433 4.85928 0.403433 4.50197 0.70181L0.663589 3.92133C0.553079 4.01711 0.494141 4.14235 0.494141 4.26391ZM6.13752 5.26219C6.13752 5.08906 6.02701 4.97855 5.85387 4.97855H4.31779C4.14097 4.97855 4.02678 5.08906 4.02678 5.26219V7.63447H2.83327C2.60856 7.63447 2.48332 7.50922 2.48332 7.28084V3.5014L4.90349 1.47538C5.01768 1.37592 5.15029 1.37592 5.26817 1.47538L7.66255 3.48298V7.28084C7.66255 7.50922 7.53731 7.63447 7.3126 7.63447H6.13752V5.26219Z"},null,-1),fe=[_e],ge={key:2},be={key:3,class:"i-small chevron",viewBox:"0 0 4 8",fill:"none",xmlns:"http://www.w3.org/2000/svg"},ve=e.createElementVNode("path",{d:"M4 3.99992C4 3.83673 3.94307 3.70391 3.81025 3.57867L0.899431 0.732369C0.800759 0.629902 0.679317 0.580566 0.531309 0.580566C0.239089 0.580566 0 0.815861 0 1.10808C0 1.25229 0.0607211 1.38512 0.166983 1.49138L2.74763 3.99613L0.166983 6.50846C0.0607211 6.61093 0 6.74375 0 6.89176C0 7.18398 0.239089 7.41928 0.531309 7.41928C0.675522 7.41928 0.800759 7.36994 0.899431 7.26747L3.81025 4.42117C3.94307 4.29594 4 4.15931 4 3.99992Z",fill:"black"},null,-1),ye=[ve],X={__name:"Breadcrumbs",setup(t){const n=b.useRoute(),{t:o,locale:a}=ie.useI18n(),l=e.computed(()=>n.matched.map(i=>{var f,v,w;const d=(f=i.meta)==null?void 0:f.title,r=a==null?void 0:a.value,c=d&&r&&d[r],s=i.path.replace(/:.+?\//g,V=>""),u=(w=(v=i.meta)==null?void 0:v.breadcrumbs)==null?void 0:w.hidden;return{name:c,path:s,isHidden:u}}).filter(i=>i.name&&!i.isHidden));return(i,d)=>{const r=e.resolveComponent("router-link");return e.openBlock(),e.createElementBlock("ol",me,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(l),(c,s)=>(e.openBlock(),e.createElementBlock("li",{key:s,class:e.normalizeClass(["flex-v-center flex-nowrap flex",{"t-main":s===e.unref(l).length-1}])},[s===0?(e.openBlock(),e.createElementBlock("svg",he,fe)):e.createCommentVNode("",!0),s!==e.unref(l).length-1?(e.openBlock(),e.createBlock(r,{key:1,to:s===0?"/":c.path},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(c.name),1)]),_:2},1032,["to"])):(e.openBlock(),e.createElementBlock("span",ge,e.toDisplayString(c.name),1)),s!==e.unref(l).length-1?(e.openBlock(),e.createElementBlock("svg",be,ye)):e.createCommentVNode("",!0)],2))),128))])}}},ke={class:"mn-small w-100"},we=["href"],$e=e.createElementVNode("span",{class:"t-semi uppercase"},"Website",-1),Ee=[$e],Be=["href"],Ve=e.createElementVNode("span",{class:"t-semi uppercase"},"Phone",-1),Ce=[Ve],xe=["href"],Ne=e.createElementVNode("span",{class:"t-semi uppercase"},"Email",-1),Se=[Ne],Le=["href"],Oe=e.createElementVNode("span",{class:"t-semi uppercase"},"Address",-1),Pe=[Oe],ze={__name:"Contacts",props:{website:String,phone:String,email:String,address:String},setup(t){const n=t,o=e.computed(()=>n.website?!n.website.startsWith("http://")&&!n.website.startsWith("https://")?`http://${n.website}`:n.website:null),a=e.computed(()=>n.address?encodeURIComponent(n.address):null);return(l,i)=>(e.openBlock(),e.createElementBlock("div",ke,[e.unref(o)?(e.openBlock(),e.createElementBlock("a",{key:0,href:e.unref(o),target:"_blank",class:"w-100 br-2px br-solid br-grey radius-small pd-small flex-v-center flex-nowrap flex"},Ee,8,we)):e.createCommentVNode("",!0),n.phone?(e.openBlock(),e.createElementBlock("a",{key:1,href:`tel:${n.phone}`,class:"w-100 br-2px br-solid br-grey radius-small pd-small flex-v-center flex-nowrap flex"},Ce,8,Be)):e.createCommentVNode("",!0),n.email?(e.openBlock(),e.createElementBlock("a",{key:2,href:`mailto:${n.email}`,target:"_blank",class:"w-100 br-2px br-solid br-grey radius-small pd-small flex-v-center flex-nowrap flex"},Se,8,xe)):e.createCommentVNode("",!0),e.unref(a)?(e.openBlock(),e.createElementBlock("a",{key:3,href:`https://www.google.com/maps/search/?api=1&query=${e.unref(a)}`,target:"_blank",class:"w-100 br-2px br-solid br-grey radius-small pd-small flex-v-center flex-nowrap flex"},Pe,8,Le)):e.createCommentVNode("",!0)]))}},De={class:"w-100 mn-small star-container flex-v-center flex"},Me={class:"p-big t-semi mn-r-small"},Ae=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),Te=[Ae],Fe={class:""},Ie={__name:"Rating",props:{rating:{type:Number,required:!0},amount:{type:Number,required:!0}},setup(t){return(n,o)=>(e.openBlock(),e.createElementBlock("section",null,[e.createElementVNode("div",De,[e.createElementVNode("span",Me,e.toDisplayString(t.rating),1),(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(5,a=>e.createElementVNode("svg",{class:e.normalizeClass(["i-semi mn-r-small",{"t-transp":a>t.rating}]),width:"113",height:"108",viewBox:"0 0 113 108",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Te,2)),64))]),e.createElementVNode("p",Fe,"Based on "+e.toDisplayString(t.amount)+" reviews",1)]))}},Ue={key:0,class:"cursor-pointer t-second"},je={__name:"Text",props:{maxLen:{type:Number,required:!0},text:{type:String,required:!0}},setup(t){const n=t,o=e.ref(!1),a=e.computed(()=>n.text.slice(0,n.maxLen)+"..."),l=e.computed(()=>n.text),i=()=>{o.value=!o.value},d=e.computed(()=>o.value?l.value:a.value),r=e.computed(()=>n.text.length>n.maxLen),c=e.computed(()=>o.value?"Hide":"Show more");return(s,u)=>(e.openBlock(),e.createElementBlock("span",{onClick:i,class:""},[e.createTextVNode(e.toDisplayString(e.unref(d))+" ",1),e.unref(r)?(e.openBlock(),e.createElementBlock("span",Ue,e.toDisplayString(e.unref(c)),1)):e.createCommentVNode("",!0)]))}},qe={class:"t-center flex-center flex-column flex pd-medium radius-big bg-grey"},Re=["src"],He={class:"mn-thin"},Ze={class:"mn-medium p-big"},Ke={class:"flex-center flex-wrap gap-thin flex mn-semi"},We={class:"pd-thin radius-small t-semi uppercase t-black bg-main p-medium"},Ye={key:3,class:"mn-t-small mn-thin"},G={__name:"DetailsTab",props:{organization:Object,user:Object},setup(t){return(n,o)=>(e.openBlock(),e.createBlock(e.Transition,{name:"slide-fade"},{default:e.withCtx(()=>[e.createElementVNode("section",qe,[t.user._id===t.organization.owner?(e.openBlock(),e.createBlock(I.IconEdit,{key:0,onClick:o[0]||(o[0]=a=>n.$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:1,src:t.organization.profile.photo,class:"radius-big bg-grey flex-center flex mn-small i-extra"},null,8,Re)):(e.openBlock(),e.createBlock(ue.PlaceholderUserpic,{key:2,class:"radius-medium mn-small i-extra"})),e.createElementVNode("h1",He,e.toDisplayString(t.organization.profile.name),1),e.createElementVNode("p",Ze,[e.createVNode(je,{text:t.organization.profile.description?t.organization.profile.description:"",maxLen:240},null,8,["text"])]),e.createElementVNode("div",Ke,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.organization.profile.tags,a=>(e.openBlock(),e.createElementBlock("span",We,e.toDisplayString(a),1))),256))]),e.renderSlot(n.$slots,"default"),Object.values(t.organization.socials).some(a=>a)?(e.openBlock(),e.createElementBlock("h4",Ye," Find us in socials ")):e.createCommentVNode("",!0),e.createVNode(I._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"])])]),_:3}))}};const Je={key:0,class:"spoiler"},j={__name:"Spoiler",props:{status:{type:Boolean,default:!1}},setup(t){const n=t,o=e.ref(!1);return n.status&&(o.value=n.status),(a,l)=>(e.openBlock(),e.createElementBlock("div",null,[e.createElementVNode("div",{onClick:l[0]||(l[0]=i=>o.value=!o.value),class:"flex-v-center flex-nowrap flex"},[e.renderSlot(a.$slots,"header")]),e.createVNode(e.Transition,{name:"collapse"},{default:e.withCtx(()=>[o.value?(e.openBlock(),e.createElementBlock("div",Je,[e.renderSlot(a.$slots,"content")])):e.createCommentVNode("",!0)]),_:3})]))}},$=p.axios.create({baseURL:process.env.API_URL,withCredentials:!0}),_=e.reactive({all:[],current:{recommendation:!1,category:[],status:"unpublished",information:[],coverImage:"",images:[],files:[],image3d:!1,name:"",sale:0,price:0,localization:[],modifications:[],description:""}}),Qe={async create(t,n){const o={...n,organization:t};return await $.post("/products/create",o).then(a=>(Xe(a.data,"current"),Promise.resolve(a.data)),a=>(g.setError(a),Promise.reject(a)))},async read(t={}){t._id&&(t.params={_id:t._id}),t.category&&(t.params=t.params||{},t.params.category=t.category),t.params=t.params||{},t.params.skip=t.skip||0,t.params.limit=t.limit||10,t.organization&&(t.params.organization=t.organization),t.params.sort="createdAt";try{console.log("Request params:"+t.params);const n=await $.get("/products/read",{params:t.params});return t._id?_.current=n.data[0]:_.all=n.data,Promise.resolve(n.data)}catch(n){return g.setError(n),Promise.reject(n)}},async update(t,n){return await $.post("/products/"+t,n).then(o=>Promise.resolve(o.data),o=>(g.setError(o),Promise.reject(o)))},async deleteProduct(t){return await $.delete("/products/"+t).then(n=>Promise.resolve(n.data),n=>(g.setError(n),Promise.reject(n)))},async submitMood(t=null){return console.log(t),$.post("/product/recommended",{mood:t}).then(n=>(_.current=n.data.product,_.current.recommendation=n.data.recommendationText,Promise.resolve(n.data)),n=>(console.log(n),g.setError(n),Promise.reject(n)))},async fetchProducts(){return await $.get("/products").then(t=>(_.all=t.data,_.filtered=t.data.slice(),_.filteredPrice=_.filtered,_.filteredPrice.sort(function(n,o){return n[_.sort.current]>o[_.sort.current]?_.sort.ascending?1:-1:n[_.sort.current]<o[_.sort.current]?_.sort.ascending?-1:1:0}),Promise.resolve(t.data)),t=>(g.setError(t),Promise.reject(t)))},async fetchProductsPopular(){return await $.get("/products/popular").then(t=>(_.popular=t.data,Promise.resolve(t.data)),t=>(g.setError(t),Promise.reject(t)))},async fetchProductsPublished(){return await $.get("/products").then(t=>{let n=t.data.filter(function(o,a){return o.status!=="unpublished"});return _.all=n,_.filtered=n.slice(),_.filteredPrice=_.filtered,_.filteredPrice.sort(function(o,a){return o[_.sort.current]>a[_.sort.current]?_.sort.ascending?1:-1:o[_.sort.current]<a[_.sort.current]?_.sort.ascending?-1:1:0}),Promise.resolve(t.data)},t=>(g.setError(t),Promise.reject(t)))},async fetchProduct(t){return await $.get("/products/"+t).then(n=>(n.localization||(n.localization=[]),_.current=n.data,Promise.resolve(n.data)),n=>(g.setError(n),Promise.reject(n)))},async fetchProductPopular(){return await $.get("/products").then(t=>(_.all=t.data.slice(1,5),Promise.resolve(t.data.slice(1,5))),t=>(g.setError(t),Promise.reject(t)))}};function Xe(t,n){_[n]=t}e.watch(_,(t,n)=>{});const Ge=process.env.API_URL,x=p.axios.create({baseURL:Ge,withCredentials:!0}),k=e.reactive({all:[],current:{order:"1",name:"",url:"",subcategories:[],filters:[],localization:[]}}),et={async fetchCategories(){return await x.get("/categories").then(t=>(k.all=t.data,Promise.resolve(t.data)),t=>(g.setError(t),Promise.reject(t)))},updateCategories(t){return x.post("/categories",t).then(n=>(k.all=t,Promise.resolve(t)),n=>(g.setError(n),Promise.reject(n)))},fetchCategory(t){return x.get("/categories/"+t).then(n=>(k.current=n.data,Promise.resolve(n.data)),n=>(g.setError(n),Promise.reject(n)))},addCategory(){return x.post("/categories/add",k.current).then(t=>(k.all.push(t.data),Promise.resolve(t.data)),t=>(g.setError(t),Promise.reject(t)))},updateCategory(t){return x.post("/categories/"+t,k.current).then(n=>(k.current=n.data,Promise.resolve(n.data)),n=>(g.setError(n),Promise.reject(n)))},deleteCategory(t){return x.delete("/categories/"+t).then(n=>{const o=k.all.findIndex(a=>a.url===t);k.all.splice(o,1)},n=>{g.setError(n)})}};e.watch(k,t=>{});const tt={class:"mn-big radius-medium pd-big bg-white"},nt={class:"mn-regular"},ot={class:"mn-small t-transp p-medium"},D={__name:"EmptyState",props:{title:{type:String,default:"У вас еще нет организации"},description:{type:String,default:"Для использования сервиса, вам необходимо добавить вашу организацию."},action:{type:String,default:"Создать организацию"},callback:{type:Function,default:()=>{}}},setup(t){return(n,o)=>(e.openBlock(),e.createElementBlock("section",tt,[e.createElementVNode("h3",nt,e.toDisplayString(t.title),1),e.createElementVNode("p",ot,e.toDisplayString(t.description),1),e.createElementVNode("button",{onClick:o[0]||(o[0]=(...a)=>t.callback&&t.callback(...a)),class:"t-white bg-second w-100 button"},e.toDisplayString(t.action),1)]))}};const at={__name:"Map",props:{location:Object},setup(t){const n=t;let o=e.ref(null),a=null,l=null;return e.onMounted(async()=>{a=new google.maps.Map(o.value,{zoom:13,center:{lat:n.location.lat,lng:n.location.lng}}),l=new google.maps.Marker({position:{lat:n.location.lat,lng:n.location.lng},map:a})}),e.watch(()=>n.location,()=>{a&&l&&(l.setPosition(new google.maps.LatLng(n.location.lat,n.location.lng)),a.setCenter(new google.maps.LatLng(n.location.lat,n.location.lng)))},{deep:!0}),(i,d)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"gmap",ref:o,class:"gmap"},null,512))}},st=p._export_sfc(at,[["__scopeId","data-v-c194b4a5"]]);const rt={class:"pd-small flex-nowrap flex"},lt={class:"user-card__info"},it={class:"user-card__name"},ct={class:"user-card__position"},dt={__name:"DepartmentSub",props:{department:{type:Object,required:!0}},setup(t){return(n,o)=>(e.openBlock(),e.createElementBlock("div",rt,[e.createElementVNode("div",lt,[e.createElementVNode("p",it,e.toDisplayString(t.department.name?t.department.name:"Безымянный"),1),e.createElementVNode("p",ct,e.toDisplayString(t.department.members?t.department.members.length:"0")+" человек",1)])]))}},A=p._export_sfc(dt,[["__scopeId","data-v-3a07133c"]]);const ut={class:"pd-small flex-nowrap flex"},pt={class:"user-card__info"},mt={class:"user-card__name"},ht={class:"t-transp"},_t={__name:"User",props:{user:{type:Object,required:!0},position:{type:String,required:!0}},setup(t){return(n,o)=>(e.openBlock(),e.createElementBlock("div",ut,[e.createElementVNode("div",pt,[e.createElementVNode("p",mt,e.toDisplayString(t.user.name?t.user.name:"Безымянный"),1),e.createElementVNode("p",ht,e.toDisplayString(t.position),1)])]))}},T=p._export_sfc(_t,[["__scopeId","data-v-c0ea3801"]]);const M=t=>(e.pushScopeId("data-v-1d33cf95"),t=t(),e.popScopeId(),t),ft={class:"radius-big o-hidden cols-2-1_3"},gt={class:"pd-medium w-100"},bt=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)),vt=[bt],yt=["innerHTML"],kt=["innerHTML"],wt={class:"pd-small flex-v-center flex-nowrap flex"},$t=M(()=>e.createElementVNode("h5",{class:"w-100"},"Contacts ",-1)),Et={class:"mn-r-small"},Bt=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)),Vt={key:0},Ct={class:"pd-small flex-v-center flex-nowrap flex"},xt=M(()=>e.createElementVNode("h5",{class:"w-100"},"Working Hours ",-1)),Nt={class:"mn-r-small"},St=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)),Lt={key:0},Ot={__name:"Department",props:{department:Object,organization:Object},setup(t){const n=t;return(o,a)=>(e.openBlock(),e.createElementBlock("div",ft,[e.createVNode(st,{location:{lat:t.department.location.coordinates[1],lng:t.department.location.coordinates[0]},class:""},null,8,["location"]),e.createElementVNode("div",gt,[(e.openBlock(),e.createElementBlock("svg",{onClick:a[0]||(a[0]=l=>o.$router.push(`/app/organization/${n.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"},vt)),e.createElementVNode("h3",{onClick:a[1]||(a[1]=l=>o.$router.push(`/app/organization/${n.organization._id}/departments/${t.department._id}`)),class:"mn-small w-100",innerHTML:t.department.profile.name},null,8,yt),e.createElementVNode("p",{onClick:a[2]||(a[2]=l=>o.$router.push(`/app/organization/${n.organization._id}/departments/${t.department._id}`)),class:"mn-small p-big w-100",innerHTML:t.department.address},null,8,kt),e.createVNode(j,{class:"radius-small o-hidden br-1px br-solid br-grey mn-thin"},{header:e.withCtx(()=>[e.createElementVNode("div",wt,[$t,e.createElementVNode("p",Et,e.toDisplayString(t.department.members.length)+" человек",1),Bt])]),content:e.withCtx(()=>[e.createElementVNode("ul",null,[t.department.members.length<1?(e.openBlock(),e.createElementBlock("li",Vt,"В отделе еще нет участников")):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.department.members,(l,i)=>(e.openBlock(),e.createBlock(T,{class:"br-b br-solid br-grey",key:i,user:l.user,position:l.position,onClick:d=>o.$router.push(`/app/profile/${l.user._id}`)},null,8,["user","position","onClick"]))),128))])]),_:1}),e.createVNode(j,{class:"radius-small o-hidden br-1px br-solid br-grey mn-thin"},{header:e.withCtx(()=>[e.createElementVNode("div",Ct,[xt,e.createElementVNode("p",Nt,e.toDisplayString(t.department.subdepartments?t.department.subdepartments.length:0)+" отделов",1),St])]),content:e.withCtx(()=>[e.createElementVNode("ul",null,[t.department.subdepartments.length<1?(e.openBlock(),e.createElementBlock("li",Lt,"В отделе еще нет подотделов")):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.department.subdepartments,(l,i)=>(e.openBlock(),e.createBlock(A,{onClick:d=>o.$router.push(`/app/organization/departments/${l._id}`),key:i,class:"br-b br-solid br-grey",department:l},null,8,["onClick","department"]))),128))])]),_:1})])]))}},ee=p._export_sfc(Ot,[["__scopeId","data-v-1d33cf95"]]),S=p.axios.create({baseURL:process.env.API_URL,withCredentials:!0});S.defaults.withCredentials=!0;const m=e.reactive({departments:[],department:{organization:"",profile:{photo:"",name:"",description:"",categories:[]},address:"",location:{lat:null,lng:null},worktime:[],delivery:[],payment:[],members:[],subdepartments:[]},error:null}),C={async readOne(t){await S.get(`/api/departments/get/${t}`).then(n=>{m.department=n.data,m.error=null}).catch(n=>{g.setError(n)})},async read(t){await S.get(`/api/departments/${t}`).then(n=>{console.log("Response:",n),m.departments=n.data,m.error=null}).catch(n=>{g.setError(n)})},async create(t,n){await S.post(`/api/departments/${t}/create`,n).then(o=>{m.error=null,m.department=o.data}).catch(o=>{g.setError(o)})},async update(t,n){await S.post(`/api/departments/${t}/update`,n).then(()=>{m.error=null}).catch(o=>{g.setError(o)})},async delete(t,n){await S.delete(`/api/departments/${t}/delete`,{data:{_id:n}}).then(()=>{m.error=null}).catch(o=>{g.setError(o)})}};e.watch(m,(t,n)=>{});const Pt={__name:"StructureTab",props:{organization:Object,units:Array,memberships:Array},async setup(t){let n,o;const a=t;e.ref("departments"),[n,o]=e.withAsyncContext(()=>C.read(a.organization._id)),await n,o();const l=e.computed(()=>{const i=m.departments,d=i.flatMap(r=>r.subdepartments.map(c=>c._id));return i.filter(r=>!d.includes(r._id))});return(i,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(D,{key:0,title:"You don't have any spots yet.",description:"Add spots to your hub.",action:"Add spot",callback:()=>i.$router.push(`/app/organization/${a.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),(r,c)=>(e.openBlock(),e.createBlock(ee,{key:c,department:r,organization:t.organization,class:"radius-big bg-grey mn-thin"},null,8,["department","organization"]))),128)),e.unref(l).length>0&&p.state.user._id===t.organization.owner?(e.openBlock(),e.createElementBlock("button",{key:0,onClick:d[0]||(d[0]=r=>i.$router.push(`/app/organization/${a.organization._id}/departments/create`)),class:"mn-thin button w-100"}," Add spot ")):e.createCommentVNode("",!0)])])]),_:1}))}},L=p.axios.create({baseURL:process.env.API_URL,withCredentials:!0});L.defaults.withCredentials=!0;const E=e.reactive({invites:[],invite:null,error:null}),z={async read(t){await L.get(`/api/invites/${t}`).then(n=>{E.invites=n.data,E.error=null}).catch(n=>{g.setError(n)})},async readOne(t){await L.get(`/api/invites/get/${t}`).then(n=>{E.invite=n.data,p.state.user.phone=n.data.invitedPhone,p.state.user.email=n.data.invitedEmail}).catch(n=>{g.setError(n)})},async create(t,n){await L.post(`/api/invites/${t}/create`,n).then(()=>{E.error=null}).catch(o=>{g.setError(o)})},async update(t,n){await L.put(`/api/invites/${t}/update`,n).then(()=>{E.error=null}).catch(o=>{g.setError(o)})},async delete(t){await L.delete(`/api/invites/${t}/delete`).then(()=>{E.error=null}).catch(n=>{g.setError(n)})}};e.watch(E,(t,n)=>{});const zt=Object.freeze(Object.defineProperty({__proto__:null,actions:z,state:E},Symbol.toStringTag,{value:"Module"})),Dt={class:"mn-medium radius-medium pd-semi bg-white"},Mt=e.createElementVNode("h3",{class:"mn-medium"},"Добавить участников",-1),At=e.createElementVNode("p",{class:"mn-small t-transp p-medium"},"Укажите email или телефон, чтобы отправить ссылку с приглашением:",-1),Tt={class:"w-100 flex-nowrap flex"},Ft={key:0,class:"mn-r-medium flex-v-center flex"},It=["onClick"],Ut=e.createElementVNode("p",{class:"t-blue mn-r-small"},"+ Добавить приглашение",-1),jt=[Ut],qt=e.createElementVNode("span",null,"Отправить приглашения ",-1),te={__name:"MembersAdd",props:{organization:Object},emits:["send-invite"],setup(t,{emit:n}){const o=t,a=e.ref(null),l=e.ref([{contact:"",role:""}]);function i(){l.value.push({contact:"",role:""})}function d(s){l.value.splice(s,1)}async function r(s){await z.create(o.organization._id,l.value)}function c(){}return(s,u)=>(e.openBlock(),e.createElementBlock("div",null,[e.createElementVNode("section",Dt,[Mt,At,(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.value,(f,v)=>(e.openBlock(),e.createElementBlock("div",{key:v,class:"br-1px br-solid br-grey flex radius-small mn-thin"},[e.createElementVNode("div",Tt,[e.createVNode(p.Field,{field:f.contact,"onUpdate:field":w=>f.contact=w,placeholder:"Email или телефон",class:"w-100 bg-white",validation:a.value},null,8,["field","onUpdate:field","validation"]),v>0?(e.openBlock(),e.createElementBlock("div",Ft,[e.createElementVNode("button",{onClick:w=>d(v),class:"button-small button"},"×",8,It)])):e.createCommentVNode("",!0)]),e.createVNode(Q.Select,{options:[{name:"Директор",value:"director"},{name:"Менеджер",value:"manager"},{name:"Сотрудник",value:"member"}],prop:f,content:"role",placeholder:"Роль",size:"small",class:"w-80"},null,8,["prop"])]))),128)),e.createElementVNode("div",{onClick:i,class:"mn-small flex-v-center flex-nowrap flex"},jt),e.createVNode(p._sfc_main,{submit:s.a=()=>r(E.invites),callback:c,class:"mn-t-medium"},{default:e.withCtx(()=>[qt]),_:1},8,["submit"])])]))}},Rt={class:"mn-big radius-medium bg-white"},Ht={key:0,class:"pd-semi"},Zt={class:"br-grey br-1px br-solid radius-small flex-nowrap flex-v-center flex pd-medium"},Kt={class:"w-100 mn-r-small"},Wt={class:"t-transp"},Yt={key:0,class:"mn-l-medium flex-v-center flex"},Jt=["onClick"],Qt={key:1,class:"pd-semi"},Xt={key:0},Gt={class:"br-grey br-1px br-solid radius-small mn-thin flex-nowrap flex-v-center flex pd-medium"},en={class:"w-100 mn-r-small"},tn={class:"t-transp"},nn={class:"mn-l-medium flex-v-center flex"},on=["onClick"],ne={__name:"MembersList",props:{organization:Object,memberships:Array,invites:Array},emits:[["removeMember","removeInvite"]],setup(t,{emit:n}){const o=t,a=e.ref("members");function l(d,r){o.memberships.splice(d,1),n("removeMember",r)}function i(d,r){o.invites.splice(d,1),n("removeInvite",r)}return(d,r)=>(e.openBlock(),e.createElementBlock("section",Rt,[e.createVNode(Y._sfc_main,{selected:a.value,"onUpdate:selected":r[0]||(r[0]=c=>a.value=c),class:"br-grey br-b br-solid radius-small",tabs:[{name:"Участники",value:"members"},{name:"Приглашения",value:"invites"}]},null,8,["selected"]),a.value==="members"?(e.openBlock(),e.createElementBlock("div",Ht,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.memberships,(c,s)=>(e.openBlock(),e.createElementBlock("div",Zt,[e.createElementVNode("span",Kt,e.toDisplayString(c.user.email)+" "+e.toDisplayString(c.user.phone),1),e.createElementVNode("span",Wt,e.toDisplayString(c.position),1),c.position!=="Основатель"?(e.openBlock(),e.createElementBlock("div",Yt,[e.createElementVNode("button",{onClick:u=>l(s,c),class:"button-small button"},"×",8,Jt)])):e.createCommentVNode("",!0)]))),256))])):e.createCommentVNode("",!0),a.value==="invites"?(e.openBlock(),e.createElementBlock("div",Qt,[t.invites.length<1?(e.openBlock(),e.createElementBlock("span",Xt,"В организации нет приглашений")):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.invites,(c,s)=>(e.openBlock(),e.createElementBlock("div",Gt,[e.createElementVNode("span",en,e.toDisplayString(c.invitedEmail)+" "+e.toDisplayString(c.invitedPhone),1),e.createElementVNode("span",tn,e.toDisplayString(c.status),1),e.createElementVNode("div",nn,[e.createElementVNode("button",{onClick:u=>i(s,c),class:"button-small button"},"×",8,on)])]))),256))])):e.createCommentVNode("",!0)]))}},an=e.createElementVNode("section",{class:"mn-medium radius-medium pd-semi bg-white"},[e.createElementVNode("h2",{class:"mn-regular"},"Участники"),e.createElementVNode("p",{class:"t-transp p-big"},"Добавляйте новых участников организации и настраивайте права доступа.")],-1),sn={__name:"MembersTab",props:{organization:Object,memberships:Array},async setup(t){let n,o;const a=t;[n,o]=e.withAsyncContext(()=>z.read(a.organization._id)),await n,o();async function l(r){await z.create(a.organization._id,r)}async function i(r){await O.actions.delete(r._id)}async function d(r){await z.delete(r._id)}return(r,c)=>(e.openBlock(),e.createBlock(e.Transition,{name:"slide-fade"},{default:e.withCtx(()=>[e.createElementVNode("div",null,[an,e.createVNode(te,{organization:t.organization,onSendInvite:l},null,8,["organization"]),e.createVNode(ne,{organization:t.organization,memberships:t.memberships,invites:E.invites,onRemoveInvite:d,onRemoveMember:i},null,8,["organization","memberships","invites"])])]),_:1}))}};const rn={key:0,class:"pd-thin for-transition w-100"},ln={class:"t-semi mn-small"},oe={__name:"Organization",setup(t){const n=b.useRouter(),o=b.useRoute();let a=o.query.tab?o.query.tab:"events";const l=e.ref(null);e.onMounted(async()=>{l.value=await h.actions.read({_id:o.params._id,user:p.state.user._id}),await O.actions.read(o.params._id)});const i=e.ref(a);o.query.tab=i.value,e.watch(i,r=>{n.push({query:{...o.query,tab:r}})});const d=({membership:r,isMember:c,targetId:s})=>{O.mutations.handleMembershipUpdate(h.state.current,r,c,s)};return(r,c)=>l.value?(e.openBlock(),e.createElementBlock("div",rn,[e.createVNode(G,{organization:h.state.current,user:p.state.user,class:"mn-semi"},{default:e.withCtx(()=>[e.createElementVNode("p",ln," 👨‍👨‍👧‍👧 "+e.toDisplayString(h.state.current.numberOfMemberships)+" followers ",1),p.state.user._id&&e.unref(o).params._id&&e.unref(o).params._id!==p.state.user._id&&h.state.current.owner!==p.state.user._id?(e.openBlock(),e.createBlock(O.ButtonFollow,{key:0,type:"organization",isMember:h.state.current.isMember,targetId:h.state.current._id,userId:p.state.user._id,class:"w-min mn-auto",onUpdateMembership:d},null,8,["isMember","targetId","userId"])):e.createCommentVNode("",!0)]),_:1},8,["organization","user"]),e.createVNode(Y._sfc_main,{selected:i.value,"onUpdate:selected":c[0]||(c[0]=s=>i.value=s),tabs:[{name:"Events",value:"events"},{name:"Community",value:"community"}],class:"mn-small o-hidden h5 radius-big bg-grey"},null,8,["selected"]),e.createVNode(e.Transition,{name:"slide-fade"},{default:e.withCtx(()=>[i.value==="events"?(e.openBlock(),e.createBlock(ce._sfc_main,{key:0,user:p.state.user._id,owner:e.unref(o).params._id,sortOrder:"asc"},null,8,["user","owner"])):e.createCommentVNode("",!0)]),_:1}),e.createVNode(e.Transition,{name:"slide-fade"},{default:e.withCtx(()=>[i.value==="community"?(e.openBlock(),e.createBlock(de._sfc_main,{key:0,user:p.state.user._id,owner:e.unref(o).params._id},null,8,["user","owner"])):e.createCommentVNode("",!0)]),_:1})])):e.createCommentVNode("",!0)}},cn=Object.freeze(Object.defineProperty({__proto__:null,default:oe},Symbol.toStringTag,{value:"Module"})),dn={class:"for-transition w-100"},un={id:"dash",class:"pd-medium bg-grey"},pn={class:"mn-medium radius-medium pd-semi bg-white"},mn={class:"flex-nowrap flex mn-small"},hn={class:"w-100"},_n=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),fn=[_n],gn=["innerHTML"],bn={class:"mn-medium radius-medium pd-semi bg-white"},vn=e.createElementVNode("h3",{class:"mn-regular"},"Команда",-1),yn={key:0},kn={class:"mn-medium radius-medium pd-semi bg-white"},wn=e.createElementVNode("h3",{class:"mn-regular"},"Подотделы",-1),$n={key:0},ae={__name:"Department",async setup(t){let n,o;b.useRouter();const a=b.useRoute();return[n,o]=e.withAsyncContext(()=>C.readOne(a.params._id)),await n,o(),(l,i)=>(e.openBlock(),e.createElementBlock("div",dn,[e.createElementVNode("div",un,[e.createElementVNode("section",pn,[e.createElementVNode("div",mn,[e.createElementVNode("h2",hn,e.toDisplayString(m.department.name),1),(e.openBlock(),e.createElementBlock("svg",{onClick:i[0]||(i[0]=d=>l.$router.push(`/app/organization/departments/${m.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"},fn))]),e.createElementVNode("p",{class:"t-transp p-big",innerHTML:m.department.description},null,8,gn)]),e.createElementVNode("section",bn,[vn,e.createElementVNode("ul",null,[m.department.members.length<1?(e.openBlock(),e.createElementBlock("li",yn,"В отделе еще нет участников")):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(m.department.members,(d,r)=>(e.openBlock(),e.createBlock(T,{class:"br-b br-solid br-grey",key:r,user:d.user,position:d.position,onClick:c=>l.$router.push(`/app/profile/${d.user._id}`)},null,8,["user","position","onClick"]))),128))])]),e.createElementVNode("section",kn,[wn,e.createElementVNode("ul",null,[m.department.subdepartments.length<1?(e.openBlock(),e.createElementBlock("li",$n,"В отделе еще нет подотделов")):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(m.department.subdepartments,(d,r)=>(e.openBlock(),e.createBlock(A,{onClick:c=>l.$router.push(`/app/organization/departments/${d._id}`),key:r,class:"br-b br-solid br-grey",department:d},null,8,["onClick","department"]))),128))])])])]))}},En=Object.freeze(Object.defineProperty({__proto__:null,default:ae},Symbol.toStringTag,{value:"Module"}));const Bn={class:"for-transition bg-white radius-big w-100"},Vn={class:"flex-v-center flex-nowrap flex pd-semi"},Cn=e.createElementVNode("h2",{class:"mn-r-medium"},"Organizations",-1),xn={class:"pd-semi"},Nn={key:1,class:"cols-3"},Sn=["onClick"],Ln=["src"],On={key:1,class:"radius-medium mn-small i-thin",width:"42",height:"42",viewBox:"0 0 42 42",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Pn=e.createElementVNode("circle",{fill:"rgb(var(--main))",cx:"21",cy:"21",r:"21"},null,-1),zn=e.createElementVNode("path",{fill:"#242424","fill-opacity":"0.1","fill-rule":"evenodd","clip-rule":"evenodd",d:"M8.00233 37.4954C8.00078 37.4458 8 37.3961 8 37.3462C8 32.9066 11.5673 29.3077 15.9677 29.3077H26.0323C30.4328 29.3077 34 32.9066 34 37.3462C34 37.3961 33.9992 37.4458 33.9977 37.4954C30.4223 40.3165 25.9078 42 21 42C16.0922 42 11.5777 40.3164 8.00233 37.4954ZM21 9C16.5995 9 13.0323 12.5989 13.0323 17.0385C13.0323 21.478 16.5995 25.0769 21 25.0769C25.4005 25.0769 28.9677 21.478 28.9677 17.0385C28.9677 12.5989 25.4005 9 21 9Z"},null,-1),Dn=[Pn,zn],Mn={class:"h4 mn-r-semi mn-small"},An=["onClick"],Tn=e.createElementVNode("path",{fill:"black",d:"M6.41357 11.979C9.6831 11.979 12.3901 9.26611 12.3901 6.00244C12.3901 2.73291 9.67724 0.0258789 6.40771 0.0258789C3.14404 0.0258789 0.437008 2.73291 0.437008 6.00244C0.437008 9.26611 3.1499 11.979 6.41357 11.979ZM6.41357 10.9829C3.64795 10.9829 1.43896 8.76807 1.43896 6.00244C1.43896 3.23682 3.64209 1.02197 6.40771 1.02197C9.17334 1.02197 11.3882 3.23682 11.394 6.00244C11.3999 8.76807 9.1792 10.9829 6.41357 10.9829ZM8.72802 4.36182L9.1499 3.93408C9.3374 3.74072 9.35498 3.52979 9.1792 3.34814L9.04443 3.21924C8.86865 3.0376 8.65185 3.06104 8.46435 3.24854L8.03662 3.67041L8.72802 4.36182ZM4.53271 8.53955L8.37646 4.71338L7.68505 4.02197L3.84716 7.84814L3.51318 8.62158C3.45459 8.76807 3.59521 8.89697 3.72412 8.8501L4.53271 8.53955Z"},null,-1),Fn=[Tn],In={class:"t-black p-small"},Un={__name:"OrganizationsAccount",async setup(t){let n,o;p.state.user._id&&([n,o]=e.withAsyncContext(()=>h.actions.read({owner:p.state.user._id})),await n,o());const a=b.useRouter(),l=b.useRoute();let i=l.query.tab?l.query.tab:"details";const d=e.ref(i);return l.query.tab=d.value,e.watch(d,r=>{a.push({query:{...l.query,tab:r}})}),(r,c)=>(e.openBlock(),e.createElementBlock("div",Bn,[e.createElementVNode("header",Vn,[Cn,e.createElementVNode("button",{onClick:c[0]||(c[0]=s=>r.$router.push({name:"Create Organization"})),class:"radius-100p i-semi hover-scale-1 cursor-pointer t-white bg-second"},"+")]),e.createElementVNode("div",xn,[h.state.all.length<1?(e.openBlock(),e.createBlock(D,{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:r.a=()=>r.$router.push("/app/organization/create/details")},null,8,["callback"])):(e.openBlock(),e.createElementBlock("div",Nn,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(h.state.all,s=>(e.openBlock(),e.createElementBlock("div",{key:s._id,class:"mn-small radius-medium pd-medium br-2px br-solid br-grey",onClick:u=>r.$router.push({name:"Organization",params:{_id:s._id}})},[s.profile.photo.length>0?(e.openBlock(),e.createElementBlock("img",{key:0,src:s.profile.photo,class:"radius-medium mn-small i-thin"},null,8,Ln)):(e.openBlock(),e.createElementBlock("svg",On,Dn)),e.createElementVNode("p",Mn,e.toDisplayString(s.profile.name),1),(e.openBlock(),e.createElementBlock("svg",{onClick:e.withModifiers(u=>r.$router.push({name:"Organization Edit",params:{_id:s._id}}),["stop"]),class:"t-transp hover-scale-1 z-index-1 pos-absolute pos-t-regular pos-r-regular i-medium",width:"13",height:"12",viewBox:"0 0 13 12",xmlns:"http://www.w3.org/2000/svg"},Fn,8,An)),e.createElementVNode("p",In,e.toDisplayString(s.profile.description.slice(0,120)+"..."),1)],8,Sn))),128))]))])]))}},jn={class:"for-transition pd-thin"},qn=e.createElementVNode("h3",{class:"mn-small"},"Type of group",-1),Rn=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),Hn=e.createElementVNode("h3",{class:"mn-small"},"Profile",-1),Zn={class:"mn-thin radius-small w-100 h-10r bg-grey flex-center flex-column flex"},Kn=e.createElementVNode("h4",null,"Upload photo",-1),Wn=e.createElementVNode("h3",{class:"mn-small"},"Socials",-1),Yn=e.createElementVNode("p",{class:"mn-thin"},"Please provide only the username for social media profiles, without full links.",-1),se={__name:"OrganizationEdit",async setup(t){let n,o;const a=b.useRoute(),l=b.useRouter();h.actions.reset(),a.params._id&&([n,o]=e.withAsyncContext(()=>h.actions.read({_id:a.params._id})),await n,o());const i=e.computed(()=>h.state.current);async function d(){a.params._id?await h.actions.update(a.params._id,i.value):await h.actions.create(h.state.current,p.state.user._id)}function r(){l.replace({name:"Organization",params:{_id:h.state.current._id}})}return(c,s)=>(e.openBlock(),e.createElementBlock("div",jn,[qn,Rn,e.createVNode(B.SelectMulti,{modelValue:h.state.current.types,"onUpdate:modelValue":s[0]||(s[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"]),Hn,e.createElementVNode("div",Zn,[e.createVNode(J._sfc_main,{photo:h.state.current.profile.photo,"onUpdate:photo":s[1]||(s[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"]),Kn]),e.createVNode(p.Field,{field:h.state.current.profile.name,"onUpdate:field":s[2]||(s[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(p.Field,{field:h.state.current.profile.description,"onUpdate:field":s[3]||(s[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(B._sfc_main,{onTagsChanged:s[4]||(s[4]=u=>h.state.current.profile.tags=u),tags:h.state.current.profile.tags},null,8,["tags"]),Wn,Yn,e.createVNode(p.Field,{field:h.state.current.socials.instagram,"onUpdate:field":s[5]||(s[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(p.Field,{field:h.state.current.socials.twitter,"onUpdate:field":s[6]||(s[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(p.Field,{field:h.state.current.socials.facebook,"onUpdate:field":s[7]||(s[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(p.Field,{field:h.state.current.socials.telegram,"onUpdate:field":s[8]||(s[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(p._sfc_main,{submit:d,callback:r,class:"mn-thin"},{default:e.withCtx(()=>[e.createTextVNode("Save")]),_:1})]))}},q=Object.freeze(Object.defineProperty({__proto__:null,default:se},Symbol.toStringTag,{value:"Module"}));const Jn={class:"for-transition bg-white radius-big w-100"},Qn=e.createElementVNode("header",{class:"flex-v-center flex-nowrap flex pd-semi"},[e.createElementVNode("h2",{class:"mn-r-medium"},"Weed dispensaries in Thailand")],-1),Xn={class:"pd-semi"},Gn={key:1,class:"cols-3"},eo=["onClick"],to=["src"],no={key:1,class:"radius-medium mn-small i-thin",width:"42",height:"42",viewBox:"0 0 42 42",fill:"none",xmlns:"http://www.w3.org/2000/svg"},oo=e.createElementVNode("circle",{fill:"rgb(var(--main))",cx:"21",cy:"21",r:"21"},null,-1),ao=e.createElementVNode("path",{fill:"#242424","fill-opacity":"0.1","fill-rule":"evenodd","clip-rule":"evenodd",d:"M8.00233 37.4954C8.00078 37.4458 8 37.3961 8 37.3462C8 32.9066 11.5673 29.3077 15.9677 29.3077H26.0323C30.4328 29.3077 34 32.9066 34 37.3462C34 37.3961 33.9992 37.4458 33.9977 37.4954C30.4223 40.3165 25.9078 42 21 42C16.0922 42 11.5777 40.3164 8.00233 37.4954ZM21 9C16.5995 9 13.0323 12.5989 13.0323 17.0385C13.0323 21.478 16.5995 25.0769 21 25.0769C25.4005 25.0769 28.9677 21.478 28.9677 17.0385C28.9677 12.5989 25.4005 9 21 9Z"},null,-1),so=[oo,ao],ro={class:"h4 mn-r-semi mn-small"},lo=["onClick"],io=e.createElementVNode("path",{fill:"black",d:"M6.41357 11.979C9.6831 11.979 12.3901 9.26611 12.3901 6.00244C12.3901 2.73291 9.67724 0.0258789 6.40771 0.0258789C3.14404 0.0258789 0.437008 2.73291 0.437008 6.00244C0.437008 9.26611 3.1499 11.979 6.41357 11.979ZM6.41357 10.9829C3.64795 10.9829 1.43896 8.76807 1.43896 6.00244C1.43896 3.23682 3.64209 1.02197 6.40771 1.02197C9.17334 1.02197 11.3882 3.23682 11.394 6.00244C11.3999 8.76807 9.1792 10.9829 6.41357 10.9829ZM8.72802 4.36182L9.1499 3.93408C9.3374 3.74072 9.35498 3.52979 9.1792 3.34814L9.04443 3.21924C8.86865 3.0376 8.65185 3.06104 8.46435 3.24854L8.03662 3.67041L8.72802 4.36182ZM4.53271 8.53955L8.37646 4.71338L7.68505 4.02197L3.84716 7.84814L3.51318 8.62158C3.45459 8.76807 3.59521 8.89697 3.72412 8.8501L4.53271 8.53955Z"},null,-1),co=[io],uo={class:"t-black p-small"},po={__name:"Organizations",async setup(t){let n,o;p.state.user._id&&([n,o]=e.withAsyncContext(()=>h.actions.read({owner:p.state.user._id})),await n,o());const a=b.useRouter(),l=b.useRoute();let i=l.query.tab?l.query.tab:"details";const d=e.ref(i);return l.query.tab=d.value,e.watch(d,r=>{a.push({query:{...l.query,tab:r}})}),(r,c)=>(e.openBlock(),e.createElementBlock("div",Jn,[Qn,e.createElementVNode("div",Xn,[h.state.all.length<1?(e.openBlock(),e.createBlock(D,{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:r.a=()=>r.$router.push("/app/organization/create/details")},null,8,["callback"])):(e.openBlock(),e.createElementBlock("div",Gn,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(h.state.all,s=>(e.openBlock(),e.createElementBlock("div",{key:s._id,class:"mn-small radius-medium pd-medium br-2px br-solid br-grey",onClick:u=>r.$router.push({name:"Organization",params:{_id:s._id}})},[s.profile.photo.length>0?(e.openBlock(),e.createElementBlock("img",{key:0,src:s.profile.photo,class:"radius-medium mn-small i-thin"},null,8,to)):(e.openBlock(),e.createElementBlock("svg",no,so)),e.createElementVNode("p",ro,e.toDisplayString(s.profile.name),1),(e.openBlock(),e.createElementBlock("svg",{onClick:e.withModifiers(u=>r.$router.push({name:"Organization Edit",params:{_id:s._id}}),["stop"]),class:"t-transp hover-scale-1 z-index-1 pos-absolute pos-t-regular pos-r-regular i-medium",width:"13",height:"12",viewBox:"0 0 13 12",xmlns:"http://www.w3.org/2000/svg"},co,8,lo)),e.createElementVNode("p",uo,e.toDisplayString(s.profile.description.slice(0,120)+"..."),1)],8,eo))),128))]))])]))}};const mo={key:0,class:"t-transp mn-r-small"},ho=["placeholder","value"],_o={key:0,class:"mn-t-thin invalid-feedback"},fo={__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:n}){const o=t,a=e.ref(null);let l;const i=()=>{l=new google.maps.places.Autocomplete(a.value),l.addListener("place_changed",r)},d=()=>{l||i()},r=()=>{const c=l.getPlace();if(!c.geometry||!c.address_components)return;let s="",u="",f="";for(let V=0;V<c.address_components.length;V++){console.log(c.address_components);let y=c.address_components[V];y.types.includes("country")&&(s=y.long_name),y.types.includes("administrative_area_level_1")&&(u=y.long_name),y.types.includes("locality")&&(f=y.long_name)}const v=c.formatted_address,w={lat:c.geometry.location.lat(),lng:c.geometry.location.lng()};n("update:address",v),n("update:location",w),n("update:country",s),n("update:state",u),n("update:city",f)};return e.watchEffect(()=>{o.address!==a.value&&(a.value=o.address)}),e.onMounted(()=>{i()}),(c,s)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass([c.$attrs.class,"flex-nowrap flex"])},[t.label?(e.openBlock(),e.createElementBlock("div",mo,[e.createElementVNode("span",null,e.toDisplayString(t.label),1)])):e.createCommentVNode("",!0),e.createElementVNode("input",{ref_key:"addressInput",ref:a,class:"w-100",placeholder:t.placeholder,value:t.address,onInput:d},null,40,ho),e.createVNode(e.Transition,{mode:"out-in",name:"fade"},{default:e.withCtx(()=>[c.validation?(e.openBlock(),e.createElementBlock("div",_o," * "+e.toDisplayString(c.validation.message),1)):e.createCommentVNode("",!0)]),_:1})],2))}},go=p._export_sfc(fo,[["__scopeId","data-v-faece1a6"]]);const bo=t=>(e.pushScopeId("data-v-1c7971e5"),t=t(),e.popScopeId(),t),vo={class:"map-container"},yo=bo(()=>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)),ko=[yo],wo={__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:n}){const o=t,a=e.ref(null);let l,i;e.onMounted(()=>{l=new google.maps.Map(a.value,{center:o.location,zoom:15,mapTypeControl:!1,fullscreenControl:!1}),i=new google.maps.Marker({position:o.location,map:l,draggable:!0}),i.addListener("dragend",c=>{const s={lat:c.latLng.lat(),lng:c.latLng.lng()};n("update:location",s),d(s)})}),e.watchEffect(()=>{o.location&&i&&i.setPosition(new google.maps.LatLng(o.location.lat,o.location.lng))}),e.watchEffect(()=>{if(o.location&&l){const c=new google.maps.LatLng(o.location.lat,o.location.lng);l.setCenter(c)}});function d(c){new google.maps.Geocoder().geocode({location:c},(u,f)=>{if(f==="OK")if(u[0]){n("update:address",u[0].formatted_address);let v="",w="",V="";u[0].address_components.forEach(y=>{y.types.includes("country")&&(v=y.long_name),y.types.includes("administrative_area_level_1")&&(w=y.long_name),y.types.includes("locality")&&(V=y.long_name)}),n("update:country",v),n("update:state",w),n("update:city",V)}else console.error("No results found");else console.error("Geocoder failed due to: "+f)})}async function r(){navigator.geolocation?navigator.geolocation.getCurrentPosition(c=>{const s={lat:c.coords.latitude,lng:c.coords.longitude};n("update:location",s),d(s)},()=>{console.error("Error getting location")}):console.error("Geolocation is not supported by this browser.")}return(c,s)=>(e.openBlock(),e.createElementBlock("div",vo,[e.createElementVNode("div",{ref_key:"mapContainer",ref:a,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:r},ko)]))}},$o=p._export_sfc(wo,[["__scopeId","data-v-1c7971e5"]]);var Eo=Object.defineProperty,Bo=Object.defineProperties,Vo=Object.getOwnPropertyDescriptors,R=Object.getOwnPropertySymbols,Co=Object.prototype.hasOwnProperty,xo=Object.prototype.propertyIsEnumerable,H=(t,n,o)=>n in t?Eo(t,n,{enumerable:!0,configurable:!0,writable:!0,value:o}):t[n]=o,N=(t,n)=>{for(var o in n||(n={}))Co.call(n,o)&&H(t,o,n[o]);if(R)for(var o of R(n))xo.call(n,o)&&H(t,o,n[o]);return t},Z=(t,n)=>Bo(t,Vo(n));const No={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 n=((t=this.$refs.dropdownMenu)==null?void 0:t.children[this.typeAheadPointer])||!1;if(n){const o=this.getDropdownViewport(),{top:a,bottom:l,height:i}=n.getBoundingClientRect();if(a<o.top)return this.$refs.dropdownMenu.scrollTop=n.offsetTop;if(l>o.bottom)return this.$refs.dropdownMenu.scrollTop=n.offsetTop-(o.height-i)}},getDropdownViewport(){return this.$refs.dropdownMenu?this.$refs.dropdownMenu.getBoundingClientRect():{height:0,top:0,bottom:0}}}},So={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}}},Lo={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}}},F=(t,n)=>{const o=t.__vccOpts||t;for(const[a,l]of n)o[a]=l;return o},Oo={},Po={xmlns:"http://www.w3.org/2000/svg",width:"10",height:"10"},zo=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),Do=[zo];function Mo(t,n){return e.openBlock(),e.createElementBlock("svg",Po,Do)}const Ao=F(Oo,[["render",Mo]]),To={},Fo={xmlns:"http://www.w3.org/2000/svg",width:"14",height:"10"},Io=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),Uo=[Io];function jo(t,n){return e.openBlock(),e.createElementBlock("svg",Fo,Uo)}const qo=F(To,[["render",jo]]),K={Deselect:Ao,OpenIndicator:qo},Ro={mounted(t,{instance:n}){if(n.appendToBody){const{height:o,top:a,left:l,width:i}=n.$refs.toggle.getBoundingClientRect();let d=window.scrollX||window.pageXOffset,r=window.scrollY||window.pageYOffset;t.unbindPosition=n.calculatePosition(t,n,{width:i+"px",left:d+l+"px",top:r+a+o+"px"}),document.body.appendChild(t)}},unmounted(t,{instance:n}){n.appendToBody&&(t.unbindPosition&&typeof t.unbindPosition=="function"&&t.unbindPosition(),t.parentNode&&t.parentNode.removeChild(t))}};function Ho(t){const n={};return Object.keys(t).sort().forEach(o=>{n[o]=t[o]}),JSON.stringify(n)}let Zo=0;function Ko(){return++Zo}const Wo={components:N({},K),directives:{appendToBody:Ro},mixins:[No,So,Lo],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
- 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:Ho(t)}catch(n){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,n)}}},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,n,o){return(n||"").toLocaleLowerCase().indexOf(o.toLocaleLowerCase())>-1}},filter:{type:Function,default(t,n){return t.filter(o=>{let a=this.getOptionLabel(o);return typeof a=="number"&&(a=a.toString()),this.filterBy(o,a,n)})}},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:n}){return t&&!n}},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,n)=>t},appendToBody:{type:Boolean,default:!1},calculatePosition:{type:Function,default(t,n,{width:o,top:a,left:l}){t.style.top=a,t.style.left=l,t.style.width=o}},dropdownShouldOpen:{type:Function,default({noDrop:t,open:n,mutableLoading:o}){return t?!1:n&&!o}},uid:{type:[String,Number],default:()=>Ko()}},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:N({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:n=>this.search=n.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:Z(N({},t),{deselect:this.deselect}),footer:Z(N({},t),{deselect:this.deselect})}},childComponents(){return N(N({},K),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 n=this.search.length?this.filter(t,this.search,this):t;if(this.taggable&&this.search.length){const o=this.createOption(this.search);this.optionExists(o)||n.unshift(o)}return n},isValueEmpty(){return this.selectedValue.length===0},showClearButton(){return!this.multiple&&this.clearable&&!this.open&&!this.isValueEmpty}},watch:{options(t,n){const o=()=>typeof this.resetOnOptionsChange=="function"?this.resetOnOptionsChange(t,n,this.selectedValue):this.resetOnOptionsChange;!this.taggable&&o()&&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(n=>this.findOptionFromReducedValue(n)):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(n=>!this.optionComparator(n,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(n=>this.reduce(n)):t=this.reduce(t)),this.$emit("update:modelValue",t)},toggleDropdown(t){const n=t.target!==this.searchEl;n&&t.preventDefault();const o=[...this.deselectButtons||[],this.$refs.clearButton];if(this.searchEl===void 0||o.filter(Boolean).some(a=>a.contains(t.target)||a===t.target)){t.preventDefault();return}this.open&&n?this.searchEl.blur():this.disabled||(this.open=!0,this.searchEl.focus())},isOptionSelected(t){return this.selectedValue.some(n=>this.optionComparator(n,t))},isOptionDeselectable(t){return this.isOptionSelected(t)&&this.deselectFromDropdown},optionComparator(t,n){return this.getOptionKey(t)===this.getOptionKey(n)},findOptionFromReducedValue(t){const n=a=>JSON.stringify(this.reduce(a))===JSON.stringify(t),o=[...this.options,...this.pushedTags].filter(n);return o.length===1?o[0]:o.find(a=>this.optionComparator(a,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(n=>this.optionComparator(n,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:n}=this;this.clearSearchOnBlur({clearSearchOnSelect:t,multiple:n})&&(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 n=l=>(l.preventDefault(),!this.isComposing&&this.typeAheadSelect()),o={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=>o[l]=n);const a=this.mapKeydown(o,this);if(typeof a[t.keyCode]=="function")return a[t.keyCode](t)}}},Yo=["dir"],Jo=["id","aria-expanded","aria-owns"],Qo={ref:"selectedOptions",class:"vs__selected-options"},Xo=["disabled","title","aria-label","onClick"],Go={ref:"actions",class:"vs__actions"},ea=["disabled"],ta={class:"vs__spinner"},na=["id"],oa=["id","aria-selected","onMouseover","onClick"],aa={key:0,class:"vs__no-options"},sa=e.createTextVNode(" Sorry, no matching options. "),ra=["id"];function la(t,n,o,a,l,i){const d=e.resolveDirective("append-to-body");return e.openBlock(),e.createElementBlock("div",{dir:o.dir,class:e.normalizeClass(["v-select",i.stateClasses])},[e.renderSlot(t.$slots,"header",e.normalizeProps(e.guardReactiveProps(i.scope.header))),e.createElementVNode("div",{id:`vs${o.uid}__combobox`,ref:"toggle",class:"vs__dropdown-toggle",role:"combobox","aria-expanded":i.dropdownOpen.toString(),"aria-owns":`vs${o.uid}__listbox`,"aria-label":"Search for option",onMousedown:n[1]||(n[1]=r=>i.toggleDropdown(r))},[e.createElementVNode("div",Qo,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(i.selectedValue,(r,c)=>e.renderSlot(t.$slots,"selected-option-container",{option:i.normalizeOptionForSlot(r),deselect:i.deselect,multiple:o.multiple,disabled:o.disabled},()=>[(e.openBlock(),e.createElementBlock("span",{key:o.getOptionKey(r),class:"vs__selected"},[e.renderSlot(t.$slots,"selected-option",e.normalizeProps(e.guardReactiveProps(i.normalizeOptionForSlot(r))),()=>[e.createTextVNode(e.toDisplayString(o.getOptionLabel(r)),1)]),o.multiple?(e.openBlock(),e.createElementBlock("button",{key:0,ref_for:!0,ref:s=>l.deselectButtons[c]=s,disabled:o.disabled,type:"button",class:"vs__deselect",title:`Deselect ${o.getOptionLabel(r)}`,"aria-label":`Deselect ${o.getOptionLabel(r)}`,onClick:s=>i.deselect(r)},[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(i.childComponents.Deselect)))],8,Xo)):e.createCommentVNode("",!0)]))])),256)),e.renderSlot(t.$slots,"search",e.normalizeProps(e.guardReactiveProps(i.scope.search)),()=>[e.createElementVNode("input",e.mergeProps({class:"vs__search"},i.scope.search.attributes,e.toHandlers(i.scope.search.events)),null,16)])],512),e.createElementVNode("div",Go,[e.withDirectives(e.createElementVNode("button",{ref:"clearButton",disabled:o.disabled,type:"button",class:"vs__clear",title:"Clear Selected","aria-label":"Clear Selected",onClick:n[0]||(n[0]=(...r)=>i.clearSelection&&i.clearSelection(...r))},[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(i.childComponents.Deselect)))],8,ea),[[e.vShow,i.showClearButton]]),e.renderSlot(t.$slots,"open-indicator",e.normalizeProps(e.guardReactiveProps(i.scope.openIndicator)),()=>[o.noDrop?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(e.resolveDynamicComponent(i.childComponents.OpenIndicator),e.normalizeProps(e.mergeProps({key:0},i.scope.openIndicator.attributes)),null,16))]),e.renderSlot(t.$slots,"spinner",e.normalizeProps(e.guardReactiveProps(i.scope.spinner)),()=>[e.withDirectives(e.createElementVNode("div",ta,"Loading...",512),[[e.vShow,t.mutableLoading]])])],512)],40,Jo),e.createVNode(e.Transition,{name:o.transition},{default:e.withCtx(()=>[i.dropdownOpen?e.withDirectives((e.openBlock(),e.createElementBlock("ul",{id:`vs${o.uid}__listbox`,ref:"dropdownMenu",key:`vs${o.uid}__listbox`,class:"vs__dropdown-menu",role:"listbox",tabindex:"-1",onMousedown:n[2]||(n[2]=e.withModifiers((...r)=>i.onMousedown&&i.onMousedown(...r),["prevent"])),onMouseup:n[3]||(n[3]=(...r)=>i.onMouseUp&&i.onMouseUp(...r))},[e.renderSlot(t.$slots,"list-header",e.normalizeProps(e.guardReactiveProps(i.scope.listHeader))),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(i.filteredOptions,(r,c)=>(e.openBlock(),e.createElementBlock("li",{id:`vs${o.uid}__option-${c}`,key:o.getOptionKey(r),role:"option",class:e.normalizeClass(["vs__dropdown-option",{"vs__dropdown-option--deselect":i.isOptionDeselectable(r)&&c===t.typeAheadPointer,"vs__dropdown-option--selected":i.isOptionSelected(r),"vs__dropdown-option--highlight":c===t.typeAheadPointer,"vs__dropdown-option--disabled":!o.selectable(r)}]),"aria-selected":c===t.typeAheadPointer?!0:null,onMouseover:s=>o.selectable(r)?t.typeAheadPointer=c:null,onClick:e.withModifiers(s=>o.selectable(r)?i.select(r):null,["prevent","stop"])},[e.renderSlot(t.$slots,"option",e.normalizeProps(e.guardReactiveProps(i.normalizeOptionForSlot(r))),()=>[e.createTextVNode(e.toDisplayString(o.getOptionLabel(r)),1)])],42,oa))),128)),i.filteredOptions.length===0?(e.openBlock(),e.createElementBlock("li",aa,[e.renderSlot(t.$slots,"no-options",e.normalizeProps(e.guardReactiveProps(i.scope.noOptions)),()=>[sa])])):e.createCommentVNode("",!0),e.renderSlot(t.$slots,"list-footer",e.normalizeProps(e.guardReactiveProps(i.scope.listFooter)))],40,na)),[[d]]):(e.openBlock(),e.createElementBlock("ul",{key:1,id:`vs${o.uid}__listbox`,role:"listbox",style:{display:"none",visibility:"hidden"}},null,8,ra))]),_:3},8,["name"]),e.renderSlot(t.$slots,"footer",e.normalizeProps(e.guardReactiveProps(i.scope.footer)))],10,Yo)}const re=F(Wo,[["render",la]]);const ia={class:"w-100"},ca={class:"flex"},da={class:"mn-regular"},ua={class:"flex-column flex-wrap block"},pa={key:0,class:"w-100"},ma={class:"w-100 flex-center flex-nowrap flex"},ha={class:"mn-r-regular w-100"},_a=["onClick"],fa={key:0,class:"mn-t-small mn-small w-100"},ga={__name:"EditArray",props:{name:Object,items:Array},emits:["add","remove"],setup(t,{emit:n}){b.useRouter(),b.useRoute();let o=e.reactive([]);e.toRefs(o);const a=e.ref(null),l=e.ref(null),i=e.ref(null);e.computed(()=>{if(a.value===null||i.value===null||i.value==="")return!0;if(a.value.modifications.length>0)return l.value===null});function d(r){store.commit("leftovers/deleteItemFromLeftover",r)}return(r,c)=>(e.openBlock(),e.createElementBlock("div",ia,[e.createElementVNode("div",ca,[e.createElementVNode("h3",da,e.toDisplayString(t.name),1)]),e.createElementVNode("ul",ua,[t.items.length<1?(e.openBlock(),e.createElementBlock("span",pa,"Вы еще не добавили позиции")):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.items,(s,u)=>(e.openBlock(),e.createElementBlock("li",{key:s._id,class:"w-100"},[e.createElementVNode("div",ma,[e.createElementVNode("span",ha,e.toDisplayString(s.name),1),e.createElementVNode("a",{class:"w-20 button",onClick:f=>d(s)},"Удалить",8,_a)]),u!=t.items.length-1?(e.openBlock(),e.createElementBlock("hr",fa)):e.createCommentVNode("",!0)]))),128))])]))}};const ba={class:"br-grey radius-small mn-small"},va={key:1,class:"pd-small br-grey br-1px br-solid"},ya=["disabled"],ka={__name:"DepartmentMemberModify",props:{isPopupOpen:Boolean,department:Number,departments:Array,maindepartment:Object,alldepartments:Array},emits:["callback","remove"],setup(t,{emit:n}){const o=t,a=e.ref({subdepartment:null});o.department!==null&&(a.value=o.departments[o.department]);function l(c,s,u){return c.filter(f=>!(s.some(v=>v._id===f._id)||u._id===f._id))}const i=e.computed(()=>l(o.alldepartments,o.departments,o.maindepartment));async function d(){o.departments.push(a.value.subdepartment),n("callback")}async function r(){o.departments.splice(o.department,1),n("callback")}return(c,s)=>(e.openBlock(),e.createElementBlock("div",null,[e.createElementVNode("div",ba,[o.department===null?(e.openBlock(),e.createBlock(e.unref(re),{key:0,modelValue:a.value.subdepartment,"onUpdate:modelValue":s[0]||(s[0]=u=>a.value.subdepartment=u),options:e.unref(i),"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(a.value.name?a.value.name:"Безымянный"),1))]),o.department===null?(e.openBlock(),e.createElementBlock("button",{key:0,disabled:!a.value.subdepartment,onClick:d,class:"w-100 button bg-second t-white"}," Добавить отдел ",8,ya)):e.createCommentVNode("",!0),o.department!==null?(e.openBlock(),e.createElementBlock("button",{key:1,onClick:r,class:"w-100 button bg-fourth t-white"}," Удалить отдел ")):e.createCommentVNode("",!0)]))}},wa=p._export_sfc(ka,[["__scopeId","data-v-21f393e1"]]);const $a={class:"br-grey radius-small mn-small"},Ea={key:1,class:"pd-small br-grey br-1px br-solid"},Ba=["disabled"],Va={__name:"DepartmentSubDepartmentModify",props:{isPopupOpen:Boolean,department:Number,departments:Array,maindepartment:Object,alldepartments:Array},emits:["callback","remove"],setup(t,{emit:n}){const o=t,a=e.ref({subdepartment:null});o.department!==null&&(a.value=o.departments[o.department]);function l(c,s,u){return c.filter(f=>!(s.some(v=>v._id===f._id)||u._id===f._id))}const i=e.computed(()=>l(o.alldepartments,o.departments,o.maindepartment));async function d(){o.departments.push(a.value.subdepartment),n("callback")}async function r(){o.departments.splice(o.department,1),n("callback")}return(c,s)=>(e.openBlock(),e.createElementBlock("div",null,[e.createElementVNode("div",$a,[o.department===null?(e.openBlock(),e.createBlock(e.unref(re),{key:0,modelValue:a.value.subdepartment,"onUpdate:modelValue":s[0]||(s[0]=u=>a.value.subdepartment=u),options:e.unref(i),"get-option-label":u=>u.name,class:"w-100 mn-small"},null,8,["modelValue","options","get-option-label"])):(e.openBlock(),e.createElementBlock("div",Ea,e.toDisplayString(a.value.name?a.value.name:"Безымянный"),1))]),o.department===null?(e.openBlock(),e.createElementBlock("button",{key:0,disabled:!a.value.subdepartment,onClick:d,class:"w-100 button bg-second t-white"}," Добавить отдел ",8,Ba)):e.createCommentVNode("",!0),o.department!==null?(e.openBlock(),e.createElementBlock("button",{key:1,onClick:r,class:"w-100 button bg-fourth t-white"}," Удалить отдел ")):e.createCommentVNode("",!0)]))}},Ca=p._export_sfc(Va,[["__scopeId","data-v-d3c6f191"]]);const P=t=>(e.pushScopeId("data-v-195322bd"),t=t(),e.popScopeId(),t),xa={class:"for-transition w-100"},Na={class:"pd-b-zero pd-t-zero pd-thin"},Sa={class:"pd-thin"},La={class:"flex-nowrap flex bg-grey pd-medium radius-big"},Oa={key:0,class:"mn-r-auto"},Pa={key:1,class:"mn-r-auto"},za={class:"flex-nowrap flex pd-thin"},Da={class:"pd-b-zero pd-t-zero pd-thin cols-2 gap-thin"},Ma={class:"flex-stretch flex-column flex"},Aa={class:"mn-thin bg-grey pd-medium o-hidden radius-big"},Ta=P(()=>e.createElementVNode("h3",{class:"mn-semi"},"Profile",-1)),Fa={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"},ja=P(()=>e.createElementVNode("h3",{class:"mn-semi"},"Details",-1)),qa=P(()=>e.createElementVNode("p",{class:"p-medium mn-small"},"Please the available delivery options:",-1)),Ra={class:"mn-medium flex-nowrap flex"},Ha=P(()=>e.createElementVNode("p",{class:"p-medium mn-small"},"Please select the available payment methods:",-1)),Za={class:"flex-nowrap flex"},Ka={class:"bg-grey pd-medium o-hidden radius-big"},Wa=P(()=>e.createElementVNode("h3",{class:"mn-semi"},"Location",-1)),Ya=P(()=>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 n=b.useRouter(),o=b.useRoute();e.ref("details"),e.ref(!1);async function a(){o.params.department&&await O.actions.read(o.params.department),e.ref(O.state.memberships),await C.read(o.params._id),o.params.department&&await C.readOne(o.params.department)}a(),e.ref(m.department.members),e.ref(!1),e.ref(null),e.ref(!1),e.ref(null);async function l(){o.params.department&&await C.update(o.params._id,m.department),o.params.department||await C.create(o.params._id,m.department)}function i(){n.replace({name:"Department",params:{_id:o.params._id,department:m.department._id}})}async function d(){await C.delete(o.params._id,m.department)}return(r,c)=>(e.openBlock(),e.createElementBlock("div",xa,[e.createElementVNode("div",Na,[e.createVNode(X,{class:"pd-medium bg-grey radius-big"})]),e.createElementVNode("div",Sa,[e.createElementVNode("header",La,[e.unref(o).params.department?(e.openBlock(),e.createElementBlock("h1",Oa,"Edit Spot")):(e.openBlock(),e.createElementBlock("h1",Pa,"Create Spot")),e.createElementVNode("section",za,[e.createVNode(p._sfc_main,{submit:l,callback:i},{default:e.withCtx(()=>[e.createTextVNode("Save Spot")]),_:1})])])]),e.createElementVNode("div",Da,[e.createElementVNode("div",Ma,[e.createElementVNode("div",Aa,[Ta,e.createElementVNode("div",Fa,[e.createVNode(J._sfc_main,{photo:m.department.profile.photo,"onUpdate:photo":c[0]||(c[0]=s=>m.department.profile.photo=s),uploadPath:"organizations/"+m.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(p.Field,{field:m.department.profile.name,"onUpdate:field":c[1]||(c[1]=s=>m.department.profile.name=s),label:"Name",placeholder:"Spot Name",class:"mn-small bg-white radius-small pd-medium",validation:r.organizationName},null,8,["field","validation"]),e.createVNode(p.Field,{field:m.department.profile.description,"onUpdate:field":c[2]||(c[2]=s=>m.department.profile.description=s),label:"Description",placeholder:"Spot description (max 120 symbols)",class:"bg-white radius-small pd-medium",validation:r.organizationName},null,8,["field","validation"])])])]),e.createElementVNode("div",Ua,[ja,qa,e.createElementVNode("div",Ra,[e.createVNode(B.Checkbox,{label:"Pickup",name:"Delivery",value:"pickup",class:"w-100 mn-r-small bg-white radius-small pd-small",radio:m.department.delivery},null,8,["radio"]),e.createVNode(B.Checkbox,{label:"Delivery",name:"Delivery",value:"courier",class:"w-100 mn-r-small bg-white radius-small pd-small",radio:m.department.delivery},null,8,["radio"]),e.createVNode(B.Checkbox,{label:"Post",name:"Delivery",value:"post",class:"w-100 bg-white radius-small pd-small",radio:m.department.delivery},null,8,["radio"])]),Ha,e.createElementVNode("div",Za,[e.createVNode(B.Checkbox,{label:"Cash",name:"Payment",value:"cash",class:"w-100 mn-r-small bg-white radius-small pd-small",radio:m.department.payment},null,8,["radio"]),e.createVNode(B.Checkbox,{label:"Bank Transfer",name:"Payment",value:"bank",class:"w-100 mn-r-small bg-white radius-small pd-small",radio:m.department.payment},null,8,["radio"]),e.createVNode(B.Checkbox,{label:"Crypto",name:"Payment",value:"crypto",class:"w-100 bg-white radius-small pd-small",radio:m.department.payment},null,8,["radio"])])])]),e.createElementVNode("div",Ka,[Wa,e.createVNode(go,{apiKey:"AIzaSyDDR6WgYB7XMt7yTDDzQNEdF_gTdUiq8dI",address:m.department.address,location:m.department.location,label:"Address",placeholder:"Enter delivery address",class:"bg-white radius-small pd-small mn-small","onUpdate:location":c[3]||(c[3]=s=>{m.department.location=s}),"onUpdate:address":c[4]||(c[4]=s=>{m.department.address=s})},null,8,["address","location"]),Ya,e.createVNode($o,{address:m.department.address,location:m.department.location,apiKey:"AIzaSyDDR6WgYB7XMt7yTDDzQNEdF_gTdUiq8dI",class:"radius-big o-hidden","onUpdate:location":c[5]||(c[5]=s=>{m.department.location=s}),"onUpdate:address":c[6]||(c[6]=s=>{m.department.address=s})},null,8,["address","location"])])]),e.createElementVNode("section",Ja,[e.createVNode(p._sfc_main,{submit:d,callback:r.redirectToDash,class:"bg-grey"},{default:e.withCtx(()=>[e.createTextVNode("Delete Spot")]),_:1},8,["callback"])])]))}},le=p._export_sfc(Qa,[["__scopeId","data-v-195322bd"]]),W=Object.freeze(Object.defineProperty({__proto__:null,default:le},Symbol.toStringTag,{value:"Module"})),Xa={class:"unit"},Ga={class:"unit-details"},es={key:0},ts={class:"subunits"},ns={__name:"Unit",props:{unit:{type:Object,required:!0},editMode:{type:Boolean,required:!0}},setup(t){const n=t,o=e.ref({...n.unit});e.watch(n.unit,()=>{o.value={...n.unit}});async function a(){emit("unit-updated",o.value)}async function l(){emit("subunit-added",n.unit._id)}return(i,d)=>{const r=e.resolveComponent("unit-component");return e.openBlock(),e.createElementBlock("div",Xa,[e.createElementVNode("div",Ga,[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",es,[e.withDirectives(e.createElementVNode("input",{"onUpdate:modelValue":d[0]||(d[0]=c=>o.value.name=c),placeholder:"Название отдела"},null,512),[[e.vModelText,o.value.name]]),e.withDirectives(e.createElementVNode("input",{"onUpdate:modelValue":d[1]||(d[1]=c=>o.value.description=c),placeholder:"Описание отдела"},null,512),[[e.vModelText,o.value.description]]),e.createElementVNode("button",{onClick:a},"Сохранить"),e.createElementVNode("button",{onClick:l},"Добавить подотдел")])):e.createCommentVNode("",!0)]),e.createElementVNode("div",ts,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.unit.subunits,(c,s)=>(e.openBlock(),e.createBlock(r,{key:s,unit:c,"edit-mode":t.editMode},null,8,["unit","edit-mode"]))),128))])])}}};const os={class:"br-grey radius-small mn-small"},as={__name:"Places",props:{isPopupOpen:Boolean,place:Number,places:Array},emits:["callback"],setup(t,{emit:n}){const o=t,a=e.ref({logo:"",name:"",address:""});o.place!==null&&(a.value=o.places[o.place]);const l=e.ref(null);async function i(){try{await U.validateInputs(l,U.validateLength,a.value.name,"Некорректное название")}catch{throw new Error}o.place!==null?(o.places[o.place]=a.value,n("callback")):(o.places.push(a.value),n("callback"))}return(d,r)=>(e.openBlock(),e.createElementBlock("div",null,[e.createElementVNode("div",os,[e.createVNode(Q.Select,{options:[{name:"Кафе",value:"cafe"},{name:"Бар",value:"bar"},{name:"Ресторан",value:"restaraunt"},{name:"Пиццерия",value:"pizzeria"},{name:"Ночной клуб",value:"night-club"},{name:"Шаверма",value:"shaverma"},{name:"Кофейня",value:"coffee"}],prop:a.value,content:"type",label:"Тип",placeholder:"Тип заведения",size:"small"},null,8,["prop"]),e.createVNode(p.Field,{field:a.value.name,"onUpdate:field":r[0]||(r[0]=c=>a.value.name=c),label:"Название",validation:l.value,placeholder:"Введите название места"},null,8,["field","validation"]),e.createVNode(p.Field,{field:a.value.address,"onUpdate:field":r[1]||(r[1]=c=>a.value.address=c),label:"Адрес",validation:l.value,placeholder:"Введите адрес места"},null,8,["field","validation"]),e.createVNode(p.Field,{field:a.value.phone,"onUpdate:field":r[2]||(r[2]=c=>a.value.phone=c),label:"Телефон",validation:l.value,placeholder:"Введите телефон места"},null,8,["field","validation"])]),e.createElementVNode("button",{onClick:i,class:"w-100 button bg-second t-white"},e.toDisplayString(o.place!==null?"Редактировать заведение":"Добавить заведение"),1)]))}},ss=p._export_sfc(as,[["__scopeId","data-v-de5143c5"]]);const rs=t=>(e.pushScopeId("data-v-20739d92"),t=t(),e.popScopeId(),t),ls={class:"documents"},is=rs(()=>e.createElementVNode("h3",{class:"mn-small"},"Список документов",-1)),cs={class:"mn-big cols-4"},ds=["onClick"],us={class:"mn-small"},ps={class:"t-semi t-transp radius-small"},ms={__name:"Documents",setup(t){b.useRouter(),b.useRoute();let n=[{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 o=e.ref(!1),a=e.ref(null),l=r=>{a.value=r,o.value=!0},i=()=>{o.value=!1},d=()=>{i()};return e.watchEffect(()=>{}),(r,c)=>{const s=e.resolveComponent("Popup");return e.openBlock(),e.createElementBlock("div",ls,[is,e.createElementVNode("div",cs,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(n),(u,f)=>(e.openBlock(),e.createElementBlock("div",{key:f,onClick:v=>l(f),class:"h-100 pd-medium bg-white radius-small"},[e.createElementVNode("h3",us,e.toDisplayString(u.name),1),e.createElementVNode("p",ps,e.toDisplayString(u.status),1)],8,ds))),128))]),e.createVNode(s,{title:"Добавить документ",onClosePopup:i,isPopupOpen:o.value},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(n)[a.value].inputs,u=>(e.openBlock(),e.createElementBlock("div",{key:u.name},[e.createVNode(p.Field,{field:u.value,"onUpdate:field":f=>u.value=f,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"])])}}},hs=p._export_sfc(ms,[["__scopeId","data-v-20739d92"]]);const _s={class:"for-transition bg-white radius-big w-100"},fs={class:""},gs={key:1,class:"cols-1"},bs={__name:"Organizations",props:{owner:{type:String,default:null},user:{type:[String,Number],default:null},onlyuser:{type:[String,Number],default:null}},async setup(t){let n,o;const a=t,l=e.ref(null);l.value=([n,o]=e.withAsyncContext(()=>h.actions.read({owner:a.owner,user:a.user,onlyuser:a.onlyuser})),n=await n,o(),n);const i=b.useRouter(),d=b.useRoute();let r=d.query.tab?d.query.tab:"details";const c=e.ref(r);return d.query.tab=c.value,e.watch(c,s=>{i.push({query:{...d.query,tab:s}})}),(s,u)=>(e.openBlock(),e.createElementBlock("div",_s,[e.createElementVNode("div",fs,[l.value<1?(e.openBlock(),e.createBlock(D,{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:s.a=()=>s.$router.push("/app/organization/create/details")},null,8,["callback"])):(e.openBlock(),e.createElementBlock("div",gs,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.value,f=>(e.openBlock(),e.createBlock(pe._sfc_main,{key:f._id,organization:f,user:p.state.user,onUpdateMembership:s.handleMembershipUpdate,class:e.normalizeClass(["w-100",{"mn-r-small":s.index!==l.value.length-1}])},null,8,["organization","user","onUpdateMembership","class"]))),128))]))])]))}},vs={};function ys(t,n){const o=e.resolveComponent("router-view");return e.openBlock(),e.createBlock(o,null,{default:e.withCtx(({Component:a,route:l})=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(a)))]),_:1})}const ks=p._export_sfc(vs,[["render",ys]]),ws=[{path:"organizations",component:ks,meta:{title:{en:"Organizations",ru:"Организации"}},children:[{path:":_id",name:"Organization",meta:{title:{en:"Organization",ru:"Организация"}},component:()=>Promise.resolve().then(()=>cn)},{path:"create",name:"Create Organization",title:{en:"Create Organization",ru:"Создать Организацию"},component:()=>Promise.resolve().then(()=>q)},{path:":_id/edit",name:"Organization Edit",meta:{title:{en:"Edit Organization",ru:"Редактировать Организацию"}},component:()=>Promise.resolve().then(()=>q)},{path:":_id/departments/create",name:"Department Creation",meta:{title:"Создание отдела"},component:()=>Promise.resolve().then(()=>W)},{path:":_id/departments/:deparment",name:"Department",meta:{title:"Отдел"},component:()=>Promise.resolve().then(()=>En)},{path:":_id/departments/:department/edit",name:"Department Edit",meta:{title:"Редактирование отдела"},component:()=>Promise.resolve().then(()=>W)},{path:":_id/products/:product",name:"Product Organization",meta:{title:{en:"Product",ru:"Продукт"}},component:()=>Promise.resolve().then(()=>require("./Product-b233e2a3.js"))},{path:":_id/products/:product/edit",name:"ProductEdit",component:()=>Promise.resolve().then(()=>require("./ProductEdit-fca68ff9.js"))},{path:":_id/products/add",name:"AddProduct",component:()=>Promise.resolve().then(()=>require("./ProductEdit-fca68ff9.js"))}]}];exports.Department=ee;exports.DepartmentEdit=le;exports.DepartmentMemberModify=wa;exports.DepartmentSub=A;exports.DepartmentSubDepartmentModify=Ca;exports.Documents=hs;exports.Places=ss;exports.User=T;exports._sfc_main=X;exports._sfc_main$1=oe;exports._sfc_main$10=Ie;exports._sfc_main$11=te;exports._sfc_main$12=Pt;exports._sfc_main$13=G;exports._sfc_main$14=sn;exports._sfc_main$15=ne;exports._sfc_main$16=bs;exports._sfc_main$2=ae;exports._sfc_main$3=Un;exports._sfc_main$4=se;exports._sfc_main$5=po;exports._sfc_main$6=ga;exports._sfc_main$7=ns;exports._sfc_main$8=D;exports._sfc_main$9=ze;exports.actions=et;exports.actions$1=Qe;exports.invites=zt;exports.organizations=ws;exports.state=_;exports.state$1=k;