@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,3179 +0,0 @@
1
- import { computed as V, resolveComponent as ue, openBlock as a, createElementBlock as i, Fragment as k, renderList as L, unref as $, normalizeClass as te, createCommentVNode as g, createBlock as y, withCtx as O, createTextVNode as N, toDisplayString as f, createElementVNode as n, resolveDynamicComponent as ne, ref as b, Transition as R, createVNode as h, renderSlot as M, reactive as ie, watch as E, onMounted as pe, pushScopeId as me, popScopeId as he, withAsyncContext as W, withModifiers as re, watchEffect as de, resolveDirective as Ie, normalizeProps as A, guardReactiveProps as B, mergeProps as ve, toHandlers as Be, withDirectives as ae, vShow as ye, toRefs as Te, vModelText as we } from "vue";
2
- import { useRoute as F, useRouter as Z } from "vue-router";
3
- import { useI18n as je } from "vue-i18n";
4
- import { s as C } from "./globals-96ba60e4.mjs";
5
- import { _ as Ue, S as Ee, C as Y } from "./Breadcrumbs.vue_vue_type_style_index_0_lang-cdbafd07.mjs";
6
- import { _ as ze } from "./Tab-58cd105f.mjs";
7
- import { a as ge, B as Fe, m as He, s as Ze } from "./ButtonFollow-728aab73.mjs";
8
- import { _ as qe } from "./Feed-dc8b66bf.mjs";
9
- import { _ as Ne } from "./Feed-a31c43c2.mjs";
10
- import { _ as S, a as _e, s as z, F as H, b as ce } from "./auth-35ef1791.mjs";
11
- import { I as Re } from "./IconEdit-e9fd4c6c.mjs";
12
- import { P as Ke } from "./PlaceholderUserpic-995da0fc.mjs";
13
- import { v as Je, d as We } from "./inputs.validation-6960f71b.mjs";
14
- import { a as q, s as x } from "./organizations-1b4c84ee.mjs";
15
- import { _ as Pe } from "./UploadImage-ff8f9a0c.mjs";
16
- import { _ as Ye } from "./CardOrganization-f70bd169.mjs";
17
- import { S as Me } from "./Publics-9ebffff1.mjs";
18
- const Ge = {
19
- class: "breadcrumbs flex-row flex-nowrap flex-left flex",
20
- "aria-label": "breadcrumbs"
21
- }, Qe = {
22
- key: 0,
23
- class: "i-small mn-r-thin",
24
- viewBox: "0 0 10 9",
25
- fill: "none",
26
- xmlns: "http://www.w3.org/2000/svg"
27
- }, Xe = /* @__PURE__ */ n("path", {
28
- fill: "black",
29
- 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"
30
- }, null, -1), et = [
31
- Xe
32
- ], tt = { key: 2 }, st = {
33
- key: 3,
34
- class: "i-small chevron",
35
- viewBox: "0 0 4 8",
36
- fill: "none",
37
- xmlns: "http://www.w3.org/2000/svg"
38
- }, nt = /* @__PURE__ */ n("path", {
39
- 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",
40
- fill: "black"
41
- }, null, -1), at = [
42
- nt
43
- ], ot = {
44
- __name: "Breadcrumbs",
45
- setup(e) {
46
- const t = F(), { t: s, locale: o } = je(), r = V(() => t.matched.map((l) => {
47
- var w, P, I;
48
- const p = (w = l.meta) == null ? void 0 : w.title, d = o == null ? void 0 : o.value, c = p && d && p[d], u = l.path.replace(/:.+?\//g, (K) => ""), m = (I = (P = l.meta) == null ? void 0 : P.breadcrumbs) == null ? void 0 : I.hidden;
49
- return { name: c, path: u, isHidden: m };
50
- }).filter((l) => l.name && !l.isHidden));
51
- return (l, p) => {
52
- const d = ue("router-link");
53
- return a(), i("ol", Ge, [
54
- (a(!0), i(k, null, L($(r), (c, u) => (a(), i("li", {
55
- key: u,
56
- class: te(["flex-v-center flex-nowrap flex", { "t-main": u === $(r).length - 1 }])
57
- }, [
58
- u === 0 ? (a(), i("svg", Qe, et)) : g("", !0),
59
- u !== $(r).length - 1 ? (a(), y(d, {
60
- key: 1,
61
- to: u === 0 ? "/" : c.path
62
- }, {
63
- default: O(() => [
64
- N(f(c.name), 1)
65
- ]),
66
- _: 2
67
- }, 1032, ["to"])) : (a(), i("span", tt, f(c.name), 1)),
68
- u !== $(r).length - 1 ? (a(), i("svg", st, at)) : g("", !0)
69
- ], 2))), 128))
70
- ]);
71
- };
72
- }
73
- }, it = { class: "mn-small w-100" }, lt = ["href"], rt = /* @__PURE__ */ n("span", { class: "t-semi uppercase" }, "Website", -1), dt = [
74
- rt
75
- ], ct = ["href"], ut = /* @__PURE__ */ n("span", { class: "t-semi uppercase" }, "Phone", -1), pt = [
76
- ut
77
- ], mt = ["href"], ht = /* @__PURE__ */ n("span", { class: "t-semi uppercase" }, "Email", -1), _t = [
78
- ht
79
- ], ft = ["href"], gt = /* @__PURE__ */ n("span", { class: "t-semi uppercase" }, "Address", -1), bt = [
80
- gt
81
- ], ll = {
82
- __name: "Contacts",
83
- props: {
84
- website: String,
85
- phone: String,
86
- email: String,
87
- address: String
88
- },
89
- setup(e) {
90
- const t = e, s = V(() => t.website ? !t.website.startsWith("http://") && !t.website.startsWith("https://") ? `http://${t.website}` : t.website : null), o = V(() => t.address ? encodeURIComponent(t.address) : null);
91
- return (r, l) => (a(), i("div", it, [
92
- $(s) ? (a(), i("a", {
93
- key: 0,
94
- href: $(s),
95
- target: "_blank",
96
- class: "w-100 br-2px br-solid br-grey radius-small pd-small flex-v-center flex-nowrap flex"
97
- }, dt, 8, lt)) : g("", !0),
98
- t.phone ? (a(), i("a", {
99
- key: 1,
100
- href: `tel:${t.phone}`,
101
- class: "w-100 br-2px br-solid br-grey radius-small pd-small flex-v-center flex-nowrap flex"
102
- }, pt, 8, ct)) : g("", !0),
103
- t.email ? (a(), i("a", {
104
- key: 2,
105
- href: `mailto:${t.email}`,
106
- target: "_blank",
107
- class: "w-100 br-2px br-solid br-grey radius-small pd-small flex-v-center flex-nowrap flex"
108
- }, _t, 8, mt)) : g("", !0),
109
- $(o) ? (a(), i("a", {
110
- key: 3,
111
- href: `https://www.google.com/maps/search/?api=1&query=${$(o)}`,
112
- target: "_blank",
113
- class: "w-100 br-2px br-solid br-grey radius-small pd-small flex-v-center flex-nowrap flex"
114
- }, bt, 8, ft)) : g("", !0)
115
- ]));
116
- }
117
- }, vt = { class: "w-100 mn-small star-container flex-v-center flex" }, yt = { class: "p-big t-semi mn-r-small" }, wt = /* @__PURE__ */ n("path", {
118
- fill: "#00FF88",
119
- 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"
120
- }, null, -1), Ct = [
121
- wt
122
- ], $t = { class: "" }, rl = {
123
- __name: "Rating",
124
- props: {
125
- rating: {
126
- type: Number,
127
- required: !0
128
- },
129
- amount: {
130
- type: Number,
131
- required: !0
132
- }
133
- },
134
- setup(e) {
135
- return (t, s) => (a(), i("section", null, [
136
- n("div", vt, [
137
- n("span", yt, f(e.rating), 1),
138
- (a(), i(k, null, L(5, (o) => n("svg", {
139
- class: te(["i-semi mn-r-small", { "t-transp": o > e.rating }]),
140
- width: "113",
141
- height: "108",
142
- viewBox: "0 0 113 108",
143
- fill: "none",
144
- xmlns: "http://www.w3.org/2000/svg"
145
- }, Ct, 2)), 64))
146
- ]),
147
- n("p", $t, "Based on " + f(e.amount) + " reviews", 1)
148
- ]));
149
- }
150
- }, xt = {}, kt = {
151
- width: "40",
152
- height: "33",
153
- viewBox: "0 0 40 33",
154
- fill: "none",
155
- xmlns: "http://www.w3.org/2000/svg"
156
- }, Lt = /* @__PURE__ */ n("path", {
157
- d: "M9.75391 18.7989L14.1454 30.9541C14.1454 30.9541 14.6945 32.0914 15.2824 32.0914C15.8704 32.0914 24.6149 22.9943 24.6149 22.9943L34.3391 4.21216L9.9106 15.6613L9.75391 18.7989Z",
158
- fill: "#C8DAEA"
159
- }, null, -1), Ot = /* @__PURE__ */ n("path", {
160
- d: "M15.5785 21.916L14.7355 30.8755C14.7355 30.8755 14.3826 33.6208 17.1273 30.8755C19.8719 28.1302 22.4991 26.0133 22.4991 26.0133",
161
- fill: "#A9C6D8"
162
- }, null, -1), St = /* @__PURE__ */ n("path", {
163
- d: "M9.8345 19.2327L0.800944 16.2894C0.800944 16.2894 -0.278665 15.8514 0.0689689 14.8581C0.140532 14.6533 0.28489 14.479 0.716734 14.1795C2.71833 12.7844 37.7646 0.18778 37.7646 0.18778C37.7646 0.18778 38.7541 -0.145665 39.3377 0.0761175C39.4821 0.120809 39.612 0.20305 39.7142 0.314426C39.8164 0.425801 39.8871 0.562314 39.9192 0.710002C39.9823 0.970857 40.0086 1.23923 39.9975 1.50737C39.9948 1.73933 39.9667 1.95433 39.9454 2.29148C39.732 5.73543 33.3444 31.4388 33.3444 31.4388C33.3444 31.4388 32.9622 32.9428 31.5929 32.9943C31.2564 33.0052 30.9212 32.9482 30.6072 32.8267C30.2932 32.7053 30.0069 32.5218 29.7653 32.2873C27.0783 29.976 17.7912 23.7347 15.739 22.362C15.6927 22.3305 15.6538 22.2894 15.6247 22.2415C15.5957 22.1936 15.5772 22.14 15.5706 22.0844C15.5419 21.9397 15.6992 21.7605 15.6992 21.7605C15.6992 21.7605 31.8706 7.38631 32.3009 5.87732C32.3342 5.76041 32.2083 5.70273 32.0393 5.75394C30.9652 6.14908 12.346 17.9073 10.291 19.2049C10.1431 19.2497 9.98675 19.2592 9.8345 19.2327V19.2327Z",
164
- fill: "white"
165
- }, null, -1), zt = [
166
- Lt,
167
- Ot,
168
- St
169
- ];
170
- function Pt(e, t) {
171
- return a(), i("svg", kt, zt);
172
- }
173
- const Mt = /* @__PURE__ */ S(xt, [["render", Pt]]), Vt = {}, Dt = {
174
- fill: "none",
175
- height: "40",
176
- viewBox: "0 0 40 40",
177
- width: "40",
178
- xmlns: "http://www.w3.org/2000/svg"
179
- }, At = /* @__PURE__ */ n("path", {
180
- d: "m20 0c-11.046 0-20 9.0085-20 20.1217 0 10.0428 7.314 18.3672 16.876 19.8783v-14.0631h-5.08v-5.8152h5.08v-4.4328c0-5.0425 2.984-7.82734 7.554-7.82734 2.188 0 4.476.39238 4.476.39238v4.94996h-2.52c-2.486 0-3.26 1.5514-3.26 3.143v3.7748h5.546l-.886 5.8152h-4.66v14.0631c9.56-1.5091 16.874-9.8375 16.874-19.8783 0-11.1132-8.954-20.1217-20-20.1217z",
181
- fill: "#fff"
182
- }, null, -1), It = [
183
- At
184
- ];
185
- function Bt(e, t) {
186
- return a(), i("svg", Dt, It);
187
- }
188
- const Tt = /* @__PURE__ */ S(Vt, [["render", Bt]]), jt = {}, Ut = {
189
- width: "40",
190
- height: "40",
191
- viewBox: "0 0 40 40",
192
- fill: "none",
193
- xmlns: "http://www.w3.org/2000/svg"
194
- }, Et = /* @__PURE__ */ n("path", {
195
- d: "M20.0019 0C14.5702 0 13.8885 0.0237504 11.7551 0.120834C9.62593 0.218334 8.17259 0.555417 6.90091 1.05C5.58547 1.56083 4.46963 2.24417 3.35795 3.35625C2.24544 4.46792 1.5621 5.58375 1.04959 6.89875C0.553755 8.17083 0.216252 9.62458 0.120418 11.7529C0.0250001 13.8862 0 14.5683 0 20C0 25.4317 0.0241673 26.1113 0.120835 28.2446C0.218753 30.3738 0.555839 31.8271 1.05001 33.0987C1.56127 34.4142 2.24461 35.53 3.3567 36.6417C4.46796 37.7542 5.58381 38.4392 6.89841 38.95C8.17092 39.4446 9.62468 39.7817 11.7535 39.8792C13.8868 39.9762 14.5681 40 19.9994 40C25.4315 40 26.1111 39.9762 28.2445 39.8792C30.3737 39.7817 31.8287 39.4446 33.1012 38.95C34.4162 38.4392 35.5304 37.7542 36.6416 36.6417C37.7541 35.53 38.4375 34.4142 38.95 33.0992C39.4417 31.8271 39.7792 30.3733 39.8792 28.245C39.975 26.1117 40 25.4317 40 20C40 14.5683 39.975 13.8867 39.8792 11.7533C39.7792 9.62417 39.4417 8.17083 38.95 6.89917C38.4375 5.58375 37.7541 4.46792 36.6416 3.35625C35.5291 2.24375 34.4166 1.56042 33.0999 1.05C31.8249 0.555417 30.3707 0.218334 28.2415 0.120834C26.1082 0.0237504 25.429 0 19.9956 0H20.0019ZM18.2077 3.60417C18.7402 3.60333 19.3344 3.60417 20.0019 3.60417C25.3419 3.60417 25.9749 3.62333 28.0836 3.71917C30.0336 3.80833 31.092 4.13417 31.797 4.40792C32.7303 4.77042 33.3958 5.20375 34.0954 5.90375C34.7954 6.60375 35.2287 7.27042 35.592 8.20375C35.8658 8.90792 36.192 9.96625 36.2808 11.9162C36.3766 14.0246 36.3975 14.6579 36.3975 19.9954C36.3975 25.3329 36.3766 25.9662 36.2808 28.0746C36.1916 30.0246 35.8658 31.0829 35.592 31.7871C35.2295 32.7204 34.7954 33.385 34.0954 34.0846C33.3953 34.7846 32.7308 35.2179 31.797 35.5804C31.0928 35.8554 30.0336 36.1804 28.0836 36.2696C25.9753 36.3654 25.3419 36.3863 20.0019 36.3863C14.6614 36.3863 14.0285 36.3654 11.9201 36.2696C9.9701 36.1796 8.91176 35.8537 8.20634 35.58C7.27299 35.2175 6.60632 34.7842 5.90631 34.0842C5.2063 33.3842 4.77297 32.7192 4.40963 31.7854C4.13588 31.0813 3.80962 30.0229 3.72087 28.0729C3.62504 25.9646 3.60587 25.3312 3.60587 19.9904C3.60587 14.6496 3.62504 14.0196 3.72087 11.9113C3.81004 9.96125 4.13588 8.90292 4.40963 8.19792C4.77213 7.26458 5.2063 6.59792 5.90631 5.89792C6.60632 5.19792 7.27299 4.76458 8.20634 4.40125C8.91134 4.12625 9.9701 3.80125 11.9201 3.71167C13.7651 3.62833 14.4802 3.60333 18.2077 3.59917V3.60417ZM30.6778 6.925C29.3528 6.925 28.2778 7.99875 28.2778 9.32417C28.2778 10.6492 29.3528 11.7242 30.6778 11.7242C32.0028 11.7242 33.0778 10.6492 33.0778 9.32417C33.0778 7.99917 32.0028 6.92417 30.6778 6.92417V6.925ZM20.0019 9.72917C14.3297 9.72917 9.73093 14.3279 9.73093 20C9.73093 25.6721 14.3297 30.2687 20.0019 30.2687C25.674 30.2687 30.2711 25.6721 30.2711 20C30.2711 14.3279 25.6736 9.72917 20.0015 9.72917H20.0019ZM20.0019 13.3333C23.6836 13.3333 26.6686 16.3179 26.6686 20C26.6686 23.6817 23.6836 26.6667 20.0019 26.6667C16.3198 26.6667 13.3351 23.6817 13.3351 20C13.3351 16.3179 16.3198 13.3333 20.0019 13.3333V13.3333Z",
196
- fill: "white"
197
- }, null, -1), Ft = [
198
- Et
199
- ];
200
- function Ht(e, t) {
201
- return a(), i("svg", Ut, Ft);
202
- }
203
- const Zt = /* @__PURE__ */ S(jt, [["render", Ht]]), qt = {}, Nt = {
204
- width: "40",
205
- height: "33",
206
- viewBox: "0 0 40 33",
207
- fill: "none",
208
- xmlns: "http://www.w3.org/2000/svg"
209
- }, Rt = /* @__PURE__ */ n("path", {
210
- d: "M35.9049 8.17058C35.9293 8.52666 35.9293 8.88274 35.9293 9.2421C35.9293 20.192 27.6742 32.8205 12.5793 32.8205V32.814C8.12025 32.8205 3.75381 31.5307 0 29.0989C0.648385 29.1777 1.30002 29.217 1.95328 29.2187C5.64859 29.222 9.23827 27.9699 12.1454 25.6645C8.63376 25.5972 5.55434 23.2851 4.47857 19.9097C5.70871 20.1493 6.97623 20.1001 8.18363 19.767C4.35507 18.9859 1.60065 15.5892 1.60065 11.6444V11.5394C2.74142 12.181 4.01869 12.5371 5.32521 12.5765C1.71928 10.143 0.607759 5.29897 2.78529 1.51172C6.95186 6.68883 13.0993 9.83612 19.6986 10.1692C19.0372 7.29105 19.9407 4.27503 22.0727 2.25178C25.378 -0.885667 30.5765 -0.724857 33.6835 2.61114C35.5214 2.24521 37.283 1.56423 38.895 0.599367C38.2823 2.51761 37.0002 4.14704 35.2874 5.18246C36.9141 4.98883 38.5034 4.54907 40 3.87793C38.8982 5.54511 37.5105 6.99732 35.9049 8.17058Z",
211
- fill: "white"
212
- }, null, -1), Kt = [
213
- Rt
214
- ];
215
- function Jt(e, t) {
216
- return a(), i("svg", Nt, Kt);
217
- }
218
- const Wt = /* @__PURE__ */ S(qt, [["render", Jt]]), Yt = {}, Gt = {
219
- width: "40",
220
- height: "36",
221
- viewBox: "0 0 40 36",
222
- fill: "none",
223
- xmlns: "http://www.w3.org/2000/svg"
224
- }, Qt = /* @__PURE__ */ n("path", {
225
- d: "M40 17.9021C40 15.4963 38.0287 13.5858 35.6272 13.5858C34.4444 13.5858 33.3692 14.0457 32.5806 14.7887C29.5699 12.6659 25.448 11.2861 20.8602 11.1092L22.8674 1.83974L29.3907 3.21955C29.4624 4.84701 30.8244 6.15605 32.509 6.15605C34.2294 6.15605 35.6272 4.77625 35.6272 3.07803C35.6272 1.37981 34.2294 0 32.509 0C31.2903 0 30.2151 0.707593 29.7133 1.7336L22.4373 0.21228C22.2222 0.1769 22.0072 0.212278 21.8638 0.318417C21.6846 0.424556 21.5771 0.601454 21.5412 0.813732L19.319 11.1446C14.6595 11.2861 10.466 12.6659 7.41936 14.8241C6.63083 14.0811 5.55556 13.6211 4.37276 13.6211C1.93549 13.6211 0 15.567 0 17.9375C0 19.7064 1.07527 21.1924 2.58065 21.8646C2.50896 22.2892 2.47312 22.7137 2.47312 23.1736C2.47312 29.825 10.3226 35.2381 20 35.2381C29.6774 35.2381 37.5269 29.8604 37.5269 23.1736C37.5269 22.7491 37.491 22.2892 37.4194 21.8646C38.9247 21.1924 40 19.6711 40 17.9021V17.9021ZM9.96416 20.9801C9.96416 19.2819 11.362 17.9021 13.0824 17.9021C14.8029 17.9021 16.2007 19.2819 16.2007 20.9801C16.2007 22.6783 14.8029 24.0581 13.0824 24.0581C11.362 24.0935 9.96416 22.6783 9.96416 20.9801V20.9801ZM27.4194 29.1528C25.2688 31.2756 21.1828 31.4171 20 31.4171C18.7814 31.4171 14.6953 31.2402 12.5806 29.1528C12.2581 28.8344 12.2581 28.3391 12.5806 28.0206C12.9032 27.7022 13.405 27.7022 13.7276 28.0206C15.0896 29.3651 17.957 29.825 20 29.825C22.043 29.825 24.9462 29.3651 26.2724 28.0206C26.595 27.7022 27.0968 27.7022 27.4194 28.0206C27.7061 28.3391 27.7061 28.8344 27.4194 29.1528ZM26.8459 24.0935C25.1254 24.0935 23.7276 22.7137 23.7276 21.0155C23.7276 19.3173 25.1254 17.9375 26.8459 17.9375C28.5663 17.9375 29.9642 19.3173 29.9642 21.0155C29.9642 22.6783 28.5663 24.0935 26.8459 24.0935Z",
226
- fill: "white"
227
- }, null, -1), Xt = [
228
- Qt
229
- ];
230
- function es(e, t) {
231
- return a(), i("svg", Gt, Xt);
232
- }
233
- const ts = /* @__PURE__ */ S(Yt, [["render", es]]), ss = {}, ns = {
234
- width: "67",
235
- height: "64",
236
- viewBox: "0 0 67 64",
237
- fill: "none",
238
- xmlns: "http://www.w3.org/2000/svg"
239
- }, as = /* @__PURE__ */ n("path", {
240
- "fill-rule": "evenodd",
241
- "clip-rule": "evenodd",
242
- d: "M66.2237 27.2403C66.2237 12.4467 51.4301 0.287598 33.1914 0.287598C14.9528 0.287598 0.15918 12.4467 0.15918 27.2403C0.15918 40.4127 11.913 51.5585 27.7198 53.585C31.5702 54.3956 31.1649 55.8142 30.3543 61.0832C30.1517 61.8938 29.5437 64.3256 33.1914 62.907C36.6365 61.4885 52.2407 51.7612 59.1309 43.6551C63.9945 38.3861 66.2237 33.1172 66.2237 27.2403ZM43.1214 35.1437V20.7554C43.1214 20.3501 42.7161 19.9448 42.3108 20.1475H40.0816C39.6763 20.1475 39.4736 20.3501 39.4736 20.7554V29.2668L32.7861 20.3501C32.7861 20.1475 32.5835 20.1475 32.3808 20.1475H29.949C29.5437 20.1475 29.341 20.3501 29.341 20.7554V35.1437C29.341 35.549 29.5437 35.7517 29.949 35.7517H32.3808C32.5835 35.7517 32.9888 35.549 32.9888 35.1437V26.6323L39.4736 35.549C39.575 35.549 39.6763 35.5997 39.7776 35.6503C39.8789 35.701 39.9803 35.7517 40.0816 35.7517H42.3108C42.7161 35.7517 43.1214 35.549 43.1214 35.1437ZM27.1119 20.7554C27.1119 20.3501 26.7066 19.9448 26.5039 19.9448H24.0721C23.6668 19.9448 23.4641 20.3501 23.4641 20.7554V35.1437C23.4641 35.549 23.6668 35.7517 24.0721 35.7517H26.5039C26.7066 35.7517 27.1119 35.549 27.1119 35.1437V20.7554ZM21.4376 32.7119C21.4376 32.5092 21.235 32.1039 20.8297 32.1039H14.5475V20.7554C14.5475 20.3501 14.3448 19.9448 13.9395 19.9448H11.5077C11.305 19.9448 10.8997 20.3501 10.8997 20.7554V35.1437C10.8997 35.245 10.9504 35.2957 11.0011 35.3464C11.0517 35.397 11.1024 35.4477 11.1024 35.549C11.2037 35.549 11.2544 35.5997 11.305 35.6503C11.3557 35.701 11.4064 35.7517 11.5077 35.7517H20.8297C21.235 35.7517 21.4376 35.3464 21.4376 35.1437V32.7119ZM55.8884 20.7554C55.8884 20.3501 55.4831 19.9448 55.2805 19.9448H45.9585C45.5532 19.9448 45.3505 20.3501 45.3505 20.7554V35.1437C45.3505 35.3464 45.5532 35.7517 45.9585 35.7517H55.2805C55.4831 35.7517 55.8884 35.549 55.8884 35.1437V32.7119C55.8884 32.5092 55.4831 32.1039 55.2805 32.1039H48.9983V29.6721H55.2805C55.4831 29.6721 55.8884 29.4695 55.8884 29.0642V26.6323C55.8884 26.4297 55.4831 26.0244 55.2805 26.0244H48.9983V23.5926H55.2805C55.4831 23.5926 55.8884 23.3899 55.8884 22.9846V20.7554Z",
243
- fill: "white"
244
- }, null, -1), os = [
245
- as
246
- ];
247
- function is(e, t) {
248
- return a(), i("svg", ns, os);
249
- }
250
- const ls = /* @__PURE__ */ S(ss, [["render", is]]), rs = {}, ds = {
251
- fill: "none",
252
- height: "40",
253
- viewBox: "0 0 40 40",
254
- width: "40",
255
- xmlns: "http://www.w3.org/2000/svg"
256
- }, cs = /* @__PURE__ */ n("path", {
257
- d: "m35.7603 19.144c-.1629-3.1482-1.2512-6.1768-3.1269-8.702-.5715.6193-1.1824 1.2005-1.8289 1.74-1.9861 1.6597-4.2054 3.0144-6.5859 4.02.332.7.6361 1.378.9045 2.018v.006c.0757.1788.1486.3588.2186.54 3.0097-.34 6.1824-.216 9.2577.202.4095.056.7952.116 1.1609.176zm-18.6564-14.9c1.9373 2.74635 3.7238 5.59727 5.3514 8.54 2.4312-.964 4.441-2.18 6.0591-3.534.5617-.46574 1.0905-.97029 1.5824-1.51-2.8606-2.42057-6.4799-3.74534-10.2178-3.74-.9303-.00064-1.8588.08033-2.7751.242zm-12.62516 11.75c1.35421-.0344 2.70681-.1164 4.05531-.246 3.25945-.2933 6.49105-.843 9.66515-1.644-1.6589-2.8996-3.4499-5.72058-5.3673-8.454-2.0481 1.02079-3.85403 2.47282-5.29529 4.25758-1.44125 1.78472-2.48412 3.86052-3.05787 6.08642zm3.04149 14.076c.7713-1.134 1.78513-2.41 3.13097-3.798 2.8904-2.98 6.3016-5.3 10.2496-6.58l.1232-.036c-.328-.728-.6361-1.378-.9462-1.99-3.6498 1.07-7.4944 1.738-11.32508 2.084-1.86862.17-3.54442.244-4.77692.256-.00352 3.6652 1.24899 7.2195 3.54641 10.064zm18.33237 4.76c-.7666-3.8895-1.8517-7.7085-3.2442-11.418-3.9798 1.454-7.1505 3.58-9.6016 6.116-.9891 1.0048-1.867 2.1146-2.618 3.31 2.7409 2.0576 6.0704 3.1669 9.4902 3.162 2.0474.003 4.0759-.393 5.9736-1.166zm3.7234-2.15c3.1036-2.4005 5.2179-5.8686 5.9378-9.74-.6759-.17-1.5326-.34-2.4749-.472-2.095-.3035-4.2207-.3257-6.3215-.066 1.1829 3.3577 2.138 6.7922 2.8586 10.28zm-9.697 7.32c-10.97917 0-19.879-8.954-19.879-20s8.89983-20 19.879-20c10.9792 0 19.879 8.954 19.879 20s-8.8998 20-19.879 20z",
258
- fill: "#fff"
259
- }, null, -1), us = [
260
- cs
261
- ];
262
- function ps(e, t) {
263
- return a(), i("svg", ds, us);
264
- }
265
- const ms = /* @__PURE__ */ S(rs, [["render", ps]]), hs = { class: "gap-small flex-nowrap flex" }, _s = ["href"], fs = {
266
- __name: "Socials",
267
- props: {
268
- telegram: {
269
- type: String,
270
- default: ""
271
- },
272
- facebook: {
273
- type: String,
274
- default: ""
275
- },
276
- instagram: {
277
- type: String,
278
- default: ""
279
- },
280
- twitter: {
281
- type: String,
282
- default: ""
283
- },
284
- reddit: {
285
- type: String,
286
- default: ""
287
- },
288
- line: {
289
- type: String,
290
- default: ""
291
- },
292
- dribbble: {
293
- type: String,
294
- default: ""
295
- }
296
- },
297
- setup(e) {
298
- const t = e, s = V(() => ["telegram", "facebook", "instagram", "twitter", "reddit", "line", "dribbble"].filter((l) => t[l]).map((l) => ({ name: l, href: t[l] })));
299
- function o(r) {
300
- return {
301
- telegram: Mt,
302
- facebook: Tt,
303
- instagram: Zt,
304
- twitter: Wt,
305
- reddit: ts,
306
- line: ls,
307
- dribbble: ms
308
- }[r] || null;
309
- }
310
- return (r, l) => (a(), i("div", hs, [
311
- (a(!0), i(k, null, L($(s), (p) => (a(), i("a", {
312
- key: p.name,
313
- href: p.href,
314
- target: "_blank",
315
- class: "i-big bg-second t-white flex-nowrap flex-center flex radius-extra"
316
- }, [
317
- (a(), y(ne(o(p.name)), { class: "i-medium" }))
318
- ], 8, _s))), 128))
319
- ]));
320
- }
321
- }, gs = {
322
- key: 0,
323
- class: "cursor-pointer t-second"
324
- }, bs = {
325
- __name: "Text",
326
- props: {
327
- maxLen: { type: Number, required: !0 },
328
- text: { type: String, required: !0 }
329
- },
330
- setup(e) {
331
- const t = e, s = b(!1), o = V(() => t.text.slice(0, t.maxLen) + "..."), r = V(() => t.text), l = () => {
332
- s.value = !s.value;
333
- }, p = V(() => s.value ? r.value : o.value), d = V(() => t.text.length > t.maxLen), c = V(() => s.value ? "Hide" : "Show more");
334
- return (u, m) => (a(), i("span", {
335
- onClick: l,
336
- class: ""
337
- }, [
338
- N(f($(p)) + " ", 1),
339
- $(d) ? (a(), i("span", gs, f($(c)), 1)) : g("", !0)
340
- ]));
341
- }
342
- }, vs = { class: "t-center flex-center flex-column flex pd-medium radius-big bg-grey" }, ys = ["src"], ws = { class: "mn-thin" }, Cs = { class: "mn-medium p-big" }, $s = { class: "flex-center flex-wrap gap-thin flex mn-semi" }, xs = { class: "pd-thin radius-small t-semi uppercase t-black bg-main p-medium" }, ks = {
343
- key: 3,
344
- class: "mn-t-small mn-thin"
345
- }, Ls = {
346
- __name: "DetailsTab",
347
- props: {
348
- organization: Object,
349
- user: Object
350
- },
351
- setup(e) {
352
- return (t, s) => (a(), y(R, { name: "slide-fade" }, {
353
- default: O(() => [
354
- n("section", vs, [
355
- e.user._id === e.organization.owner ? (a(), y(Re, {
356
- key: 0,
357
- onClick: s[0] || (s[0] = (o) => t.$router.push({
358
- name: "Organization Edit",
359
- params: {
360
- _id: e.organization._id
361
- }
362
- })),
363
- class: "pos-absolute pos-t-regular pos-r-regular i-regular t-transp"
364
- })) : g("", !0),
365
- e.organization.profile.photo ? (a(), i("img", {
366
- key: 1,
367
- src: e.organization.profile.photo,
368
- class: "radius-big bg-grey flex-center flex mn-small i-extra"
369
- }, null, 8, ys)) : (a(), y(Ke, {
370
- key: 2,
371
- class: "radius-medium mn-small i-extra"
372
- })),
373
- n("h1", ws, f(e.organization.profile.name), 1),
374
- n("p", Cs, [
375
- h(bs, {
376
- text: e.organization.profile.description ? e.organization.profile.description : "",
377
- maxLen: 240
378
- }, null, 8, ["text"])
379
- ]),
380
- n("div", $s, [
381
- (a(!0), i(k, null, L(e.organization.profile.tags, (o) => (a(), i("span", xs, f(o), 1))), 256))
382
- ]),
383
- M(t.$slots, "default"),
384
- e.organization.social.telegram ? (a(), i("h4", ks, "Find us in socials")) : g("", !0),
385
- h(fs, {
386
- telegram: e.organization.social.telegram,
387
- facebook: e.organization.social.facebook,
388
- instagram: e.organization.social.instagram,
389
- line: e.organization.social.line
390
- }, null, 8, ["telegram", "facebook", "instagram", "line"])
391
- ])
392
- ]),
393
- _: 3
394
- }));
395
- }
396
- };
397
- const Os = {
398
- key: 0,
399
- class: "spoiler"
400
- }, Ce = {
401
- __name: "Spoiler",
402
- props: {
403
- status: {
404
- type: Boolean,
405
- default: !1
406
- }
407
- },
408
- setup(e) {
409
- const t = e, s = b(!1);
410
- return t.status && (s.value = t.status), (o, r) => (a(), i("div", null, [
411
- n("div", {
412
- onClick: r[0] || (r[0] = (l) => s.value = !s.value),
413
- class: "flex-v-center flex-nowrap flex"
414
- }, [
415
- M(o.$slots, "header")
416
- ]),
417
- h(R, { name: "collapse" }, {
418
- default: O(() => [
419
- s.value ? (a(), i("div", Os, [
420
- M(o.$slots, "content")
421
- ])) : g("", !0)
422
- ]),
423
- _: 3
424
- })
425
- ]));
426
- }
427
- }, T = _e.create({ baseURL: process.env.API_URL, withCredentials: !0 }), v = ie({
428
- all: [],
429
- current: {
430
- recommendation: !1,
431
- category: [],
432
- status: "unpublished",
433
- information: [],
434
- coverImage: "",
435
- images: [],
436
- files: [],
437
- image3d: !1,
438
- name: "",
439
- sale: 0,
440
- price: 0,
441
- localization: [],
442
- modifications: [],
443
- description: ""
444
- }
445
- }), dl = {
446
- async create(e, t) {
447
- const s = {
448
- ...t,
449
- organization: e
450
- };
451
- return await T.post("/products/create", s).then(
452
- (o) => (Ss(o.data, "current"), Promise.resolve(o.data)),
453
- (o) => (C(o), Promise.reject(o))
454
- );
455
- },
456
- async read(e = {}) {
457
- e._id && (e.params = { _id: e._id }), e.category && (e.params = e.params || {}, e.params.category = e.category), e.params = e.params || {}, e.params.skip = e.skip || 0, e.params.limit = e.limit || 10, e.organization && (e.params.organization = e.organization), e.params.sort = "createdAt";
458
- try {
459
- console.log("Request params:" + e.params);
460
- const t = await T.get("/products/read", { params: e.params });
461
- return e._id ? v.current = t.data[0] : v.all = t.data, Promise.resolve(t.data);
462
- } catch (t) {
463
- return C(t), Promise.reject(t);
464
- }
465
- },
466
- async update(e, t) {
467
- return await T.post("/products/" + e, t).then(
468
- (s) => Promise.resolve(s.data),
469
- (s) => (C(s), Promise.reject(s))
470
- );
471
- },
472
- async deleteProduct(e) {
473
- return await T.delete("/products/" + e).then(
474
- (t) => Promise.resolve(t.data),
475
- (t) => (C(t), Promise.reject(t))
476
- );
477
- },
478
- async submitMood(e = null) {
479
- return console.log(e), T.post("/product/recommended", { mood: e }).then(
480
- (t) => (v.current = t.data.product, v.current.recommendation = t.data.recommendationText, Promise.resolve(t.data)),
481
- (t) => (console.log(t), C(t), Promise.reject(t))
482
- );
483
- },
484
- async fetchProducts() {
485
- return await T.get("/products").then(
486
- (e) => (v.all = e.data, v.filtered = e.data.slice(), v.filteredPrice = v.filtered, v.filteredPrice.sort(function(t, s) {
487
- return t[v.sort.current] > s[v.sort.current] ? v.sort.ascending ? 1 : -1 : t[v.sort.current] < s[v.sort.current] ? v.sort.ascending ? -1 : 1 : 0;
488
- }), Promise.resolve(e.data)),
489
- (e) => (C(e), Promise.reject(e))
490
- );
491
- },
492
- async fetchProductsPopular() {
493
- return await T.get("/products/popular").then(
494
- (e) => (v.popular = e.data, Promise.resolve(e.data)),
495
- (e) => (C(e), Promise.reject(e))
496
- );
497
- },
498
- async fetchProductsPublished() {
499
- return await T.get("/products").then(
500
- (e) => {
501
- let t = e.data.filter(function(s, o) {
502
- return s.status !== "unpublished";
503
- });
504
- return v.all = t, v.filtered = t.slice(), v.filteredPrice = v.filtered, v.filteredPrice.sort(function(s, o) {
505
- return s[v.sort.current] > o[v.sort.current] ? v.sort.ascending ? 1 : -1 : s[v.sort.current] < o[v.sort.current] ? v.sort.ascending ? -1 : 1 : 0;
506
- }), Promise.resolve(e.data);
507
- },
508
- (e) => (C(e), Promise.reject(e))
509
- );
510
- },
511
- async fetchProduct(e) {
512
- return await T.get("/products/" + e).then(
513
- (t) => (t.localization || (t.localization = []), v.current = t.data, Promise.resolve(t.data)),
514
- (t) => (C(t), Promise.reject(t))
515
- );
516
- },
517
- async fetchProductPopular() {
518
- return await T.get("/products").then(
519
- (e) => (v.all = e.data.slice(1, 5), Promise.resolve(e.data.slice(1, 5))),
520
- (e) => (C(e), Promise.reject(e))
521
- );
522
- }
523
- };
524
- function Ss(e, t) {
525
- v[t] = e;
526
- }
527
- E(v, (e, t) => {
528
- });
529
- const zs = process.env.API_URL, G = _e.create({ baseURL: zs, withCredentials: !0 }), j = ie({
530
- all: [],
531
- current: {
532
- order: "1",
533
- name: "",
534
- url: "",
535
- subcategories: [],
536
- filters: [],
537
- localization: []
538
- }
539
- }), cl = {
540
- async fetchCategories() {
541
- return await G.get("/categories").then(
542
- (e) => (j.all = e.data, Promise.resolve(e.data)),
543
- (e) => (C(e), Promise.reject(e))
544
- );
545
- },
546
- updateCategories(e) {
547
- return G.post("/categories", e).then(
548
- (t) => (j.all = e, Promise.resolve(e)),
549
- (t) => (C(t), Promise.reject(t))
550
- );
551
- },
552
- fetchCategory(e) {
553
- return G.get("/categories/" + e).then(
554
- (t) => (j.current = t.data, Promise.resolve(t.data)),
555
- (t) => (C(t), Promise.reject(t))
556
- );
557
- },
558
- addCategory() {
559
- return G.post("/categories/add", j.current).then(
560
- (e) => (j.all.push(e.data), Promise.resolve(e.data)),
561
- (e) => (C(e), Promise.reject(e))
562
- );
563
- },
564
- updateCategory(e) {
565
- return G.post("/categories/" + e, j.current).then(
566
- (t) => (j.current = t.data, Promise.resolve(t.data)),
567
- (t) => (C(t), Promise.reject(t))
568
- );
569
- },
570
- deleteCategory(e) {
571
- return G.delete("/categories/" + e).then(
572
- (t) => {
573
- const s = j.all.findIndex((o) => o.url === e);
574
- j.all.splice(s, 1);
575
- },
576
- (t) => {
577
- C(t);
578
- }
579
- );
580
- }
581
- };
582
- E(j, (e) => {
583
- });
584
- const Ps = { class: "mn-big radius-medium pd-big bg-white" }, Ms = { class: "mn-regular" }, Vs = { class: "mn-small t-transp p-medium" }, fe = {
585
- __name: "EmptyState",
586
- props: {
587
- title: {
588
- type: String,
589
- default: "У вас еще нет организации"
590
- },
591
- description: {
592
- type: String,
593
- default: "Для использования сервиса, вам необходимо добавить вашу организацию."
594
- },
595
- action: {
596
- type: String,
597
- default: "Создать организацию"
598
- },
599
- callback: {
600
- type: Function,
601
- default: () => {
602
- }
603
- }
604
- },
605
- setup(e) {
606
- return (t, s) => (a(), i("section", Ps, [
607
- n("h3", Ms, f(e.title), 1),
608
- n("p", Vs, f(e.description), 1),
609
- n("button", {
610
- onClick: s[0] || (s[0] = (...o) => e.callback && e.callback(...o)),
611
- class: "t-white bg-second w-100 button"
612
- }, f(e.action), 1)
613
- ]));
614
- }
615
- };
616
- const Ds = {
617
- __name: "Map",
618
- props: {
619
- location: Object
620
- },
621
- setup(e) {
622
- const t = e;
623
- let s = b(null), o = null, r = null;
624
- return pe(async () => {
625
- o = new google.maps.Map(s.value, {
626
- zoom: 13,
627
- center: {
628
- lat: t.location.lat,
629
- lng: t.location.lng
630
- }
631
- }), r = new google.maps.Marker({
632
- position: {
633
- lat: t.location.lat,
634
- lng: t.location.lng
635
- },
636
- map: o
637
- });
638
- }), E(() => t.location, () => {
639
- o && r && (r.setPosition(new google.maps.LatLng(t.location.lat, t.location.lng)), o.setCenter(new google.maps.LatLng(t.location.lat, t.location.lng)));
640
- }, { deep: !0 }), (l, p) => (a(), i("div", {
641
- ref_key: "gmap",
642
- ref: s,
643
- class: "gmap"
644
- }, null, 512));
645
- }
646
- }, As = /* @__PURE__ */ S(Ds, [["__scopeId", "data-v-c194b4a5"]]);
647
- const Is = { class: "pd-small flex-nowrap flex" }, Bs = { class: "user-card__info" }, Ts = { class: "user-card__name" }, js = { class: "user-card__position" }, Us = {
648
- __name: "DepartmentSub",
649
- props: {
650
- department: {
651
- type: Object,
652
- required: !0
653
- }
654
- // Define other props here
655
- },
656
- setup(e) {
657
- return (t, s) => (a(), i("div", Is, [
658
- n("div", Bs, [
659
- n("p", Ts, f(e.department.name ? e.department.name : "Безымянный"), 1),
660
- n("p", js, f(e.department.members ? e.department.members.length : "0") + " человек", 1)
661
- ])
662
- ]));
663
- }
664
- }, Ve = /* @__PURE__ */ S(Us, [["__scopeId", "data-v-3a07133c"]]);
665
- const Es = { class: "pd-small flex-nowrap flex" }, Fs = { class: "user-card__info" }, Hs = { class: "user-card__name" }, Zs = { class: "t-transp" }, qs = {
666
- __name: "User",
667
- props: {
668
- user: {
669
- type: Object,
670
- required: !0
671
- },
672
- position: {
673
- type: String,
674
- required: !0
675
- }
676
- // Define other props here
677
- },
678
- setup(e) {
679
- return (t, s) => (a(), i("div", Es, [
680
- n("div", Fs, [
681
- n("p", Hs, f(e.user.name ? e.user.name : "Безымянный"), 1),
682
- n("p", Zs, f(e.position), 1)
683
- ])
684
- ]));
685
- }
686
- }, De = /* @__PURE__ */ S(qs, [["__scopeId", "data-v-c0ea3801"]]);
687
- const le = (e) => (me("data-v-1d33cf95"), e = e(), he(), e), Ns = { class: "radius-big o-hidden cols-2-1_3" }, Rs = { class: "pd-medium w-100" }, Ks = /* @__PURE__ */ le(() => /* @__PURE__ */ n("path", {
688
- 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",
689
- fill: "black"
690
- }, null, -1)), Js = [
691
- Ks
692
- ], Ws = ["innerHTML"], Ys = ["innerHTML"], Gs = { class: "pd-small flex-v-center flex-nowrap flex" }, Qs = /* @__PURE__ */ le(() => /* @__PURE__ */ n("h5", { class: "w-100" }, "Contacts ", -1)), Xs = { class: "mn-r-small" }, en = /* @__PURE__ */ le(() => /* @__PURE__ */ n("svg", {
693
- width: "14",
694
- height: "9",
695
- viewBox: "0 0 14 9",
696
- fill: "none",
697
- xmlns: "http://www.w3.org/2000/svg"
698
- }, [
699
- /* @__PURE__ */ n("path", {
700
- "fill-rule": "evenodd",
701
- "clip-rule": "evenodd",
702
- d: "M12.4697 0.469727L13.5304 1.53039L7.00006 8.06072L0.469727 1.53039L1.53039 0.469727L7.00006 5.9394L12.4697 0.469727Z",
703
- fill: "#8A8A8A"
704
- })
705
- ], -1)), tn = { key: 0 }, sn = { class: "pd-small flex-v-center flex-nowrap flex" }, nn = /* @__PURE__ */ le(() => /* @__PURE__ */ n("h5", { class: "w-100" }, "Working Hours ", -1)), an = { class: "mn-r-small" }, on = /* @__PURE__ */ le(() => /* @__PURE__ */ n("svg", {
706
- width: "14",
707
- height: "9",
708
- viewBox: "0 0 14 9",
709
- fill: "none",
710
- xmlns: "http://www.w3.org/2000/svg"
711
- }, [
712
- /* @__PURE__ */ n("path", {
713
- "fill-rule": "evenodd",
714
- "clip-rule": "evenodd",
715
- d: "M12.4697 0.469727L13.5304 1.53039L7.00006 8.06072L0.469727 1.53039L1.53039 0.469727L7.00006 5.9394L12.4697 0.469727Z",
716
- fill: "#8A8A8A"
717
- })
718
- ], -1)), ln = { key: 0 }, rn = {
719
- __name: "Department",
720
- props: {
721
- department: Object,
722
- organization: Object
723
- },
724
- setup(e) {
725
- const t = e;
726
- return (s, o) => (a(), i("div", Ns, [
727
- h(As, {
728
- location: { lat: e.department.location.coordinates[1], lng: e.department.location.coordinates[0] },
729
- class: ""
730
- }, null, 8, ["location"]),
731
- n("div", Rs, [
732
- (a(), i("svg", {
733
- onClick: o[0] || (o[0] = (r) => s.$router.push(`/app/organization/${t.organization._id}/departments/${e.department._id}/edit`)),
734
- class: "i-regular pos-absolute pos-r-0 pos-t-0 t-transp",
735
- width: "652",
736
- height: "652",
737
- viewBox: "0 0 652 652",
738
- fill: "none",
739
- xmlns: "http://www.w3.org/2000/svg"
740
- }, Js)),
741
- n("h3", {
742
- onClick: o[1] || (o[1] = (r) => s.$router.push(`/app/organization/${t.organization._id}/departments/${e.department._id}`)),
743
- class: "mn-small w-100",
744
- innerHTML: e.department.profile.name
745
- }, null, 8, Ws),
746
- n("p", {
747
- onClick: o[2] || (o[2] = (r) => s.$router.push(`/app/organization/${t.organization._id}/departments/${e.department._id}`)),
748
- class: "mn-small p-big w-100",
749
- innerHTML: e.department.address
750
- }, null, 8, Ys),
751
- h(Ce, { class: "radius-small o-hidden br-1px br-solid br-grey mn-thin" }, {
752
- header: O(() => [
753
- n("div", Gs, [
754
- Qs,
755
- n("p", Xs, f(e.department.members.length) + " человек", 1),
756
- en
757
- ])
758
- ]),
759
- content: O(() => [
760
- n("ul", null, [
761
- e.department.members.length < 1 ? (a(), i("li", tn, "В отделе еще нет участников")) : g("", !0),
762
- (a(!0), i(k, null, L(e.department.members, (r, l) => (a(), y(De, {
763
- class: "br-b br-solid br-grey",
764
- key: l,
765
- user: r.user,
766
- position: r.position,
767
- onClick: (p) => s.$router.push(`/app/profile/${r.user._id}`)
768
- }, null, 8, ["user", "position", "onClick"]))), 128))
769
- ])
770
- ]),
771
- _: 1
772
- }),
773
- h(Ce, { class: "radius-small o-hidden br-1px br-solid br-grey mn-thin" }, {
774
- header: O(() => [
775
- n("div", sn, [
776
- nn,
777
- n("p", an, f(e.department.subdepartments ? e.department.subdepartments.length : 0) + " отделов", 1),
778
- on
779
- ])
780
- ]),
781
- content: O(() => [
782
- n("ul", null, [
783
- e.department.subdepartments.length < 1 ? (a(), i("li", ln, "В отделе еще нет подотделов")) : g("", !0),
784
- (a(!0), i(k, null, L(e.department.subdepartments, (r, l) => (a(), y(Ve, {
785
- onClick: (p) => s.$router.push(`/app/organization/departments/${r._id}`),
786
- key: l,
787
- class: "br-b br-solid br-grey",
788
- department: r
789
- }, null, 8, ["onClick", "department"]))), 128))
790
- ])
791
- ]),
792
- _: 1
793
- })
794
- ])
795
- ]));
796
- }
797
- }, dn = /* @__PURE__ */ S(rn, [["__scopeId", "data-v-1d33cf95"]]), X = _e.create({ baseURL: process.env.API_URL, withCredentials: !0 });
798
- X.defaults.withCredentials = !0;
799
- const _ = ie({
800
- departments: [],
801
- department: {
802
- organization: "",
803
- profile: {
804
- photo: "",
805
- name: "",
806
- description: "",
807
- categories: []
808
- },
809
- address: "",
810
- location: {
811
- lat: null,
812
- lng: null
813
- },
814
- worktime: [],
815
- delivery: [],
816
- payment: [],
817
- members: [],
818
- subdepartments: []
819
- },
820
- error: null
821
- }), J = {
822
- async readOne(e) {
823
- await X.get(`/api/departments/get/${e}`).then((t) => {
824
- _.department = t.data, _.error = null;
825
- }).catch((t) => {
826
- C(t);
827
- });
828
- },
829
- async read(e) {
830
- await X.get(`/api/departments/${e}`).then((t) => {
831
- console.log("Response:", t), _.departments = t.data, _.error = null;
832
- }).catch((t) => {
833
- C(t);
834
- });
835
- },
836
- async create(e, t) {
837
- await X.post(`/api/departments/${e}/create`, t).then((s) => {
838
- _.error = null, _.department = s.data;
839
- }).catch((s) => {
840
- C(s);
841
- });
842
- },
843
- async update(e, t) {
844
- await X.post(`/api/departments/${e}/update`, t).then(() => {
845
- _.error = null;
846
- }).catch((s) => {
847
- C(s);
848
- });
849
- },
850
- async delete(e, t) {
851
- await X.delete(`/api/departments/${e}/delete`, { data: { _id: t } }).then(() => {
852
- _.error = null;
853
- }).catch((s) => {
854
- C(s);
855
- });
856
- }
857
- };
858
- E(_, (e, t) => {
859
- });
860
- const ul = {
861
- __name: "StructureTab",
862
- props: {
863
- organization: Object,
864
- units: Array,
865
- memberships: Array
866
- },
867
- async setup(e) {
868
- let t, s;
869
- const o = e;
870
- b("departments"), [t, s] = W(() => J.read(o.organization._id)), await t, s();
871
- const r = V(() => {
872
- const l = _.departments, p = l.flatMap(
873
- (d) => d.subdepartments.map((c) => c._id)
874
- );
875
- return l.filter(
876
- (d) => !p.includes(d._id)
877
- );
878
- });
879
- return (l, p) => (a(), y(R, { name: "slide-fade" }, {
880
- default: O(() => [
881
- n("div", null, [
882
- $(r).length < 1 ? (a(), y(fe, {
883
- key: 0,
884
- title: "You don't have any spots yet.",
885
- description: "Add spots to your hub.",
886
- action: "Add spot",
887
- callback: () => l.$router.push(`/app/organization/${o.organization._id}/departments/create`)
888
- }, null, 8, ["callback"])) : g("", !0),
889
- n("div", null, [
890
- (a(!0), i(k, null, L($(r), (d, c) => (a(), y(dn, {
891
- key: c,
892
- department: d,
893
- organization: e.organization,
894
- class: "radius-big bg-grey mn-thin"
895
- }, null, 8, ["department", "organization"]))), 128)),
896
- $(r).length > 0 && z.user._id === e.organization.owner ? (a(), i("button", {
897
- key: 0,
898
- onClick: p[0] || (p[0] = (d) => l.$router.push(`/app/organization/${o.organization._id}/departments/create`)),
899
- class: "mn-thin button w-100"
900
- }, " Add spot ")) : g("", !0)
901
- ])
902
- ])
903
- ]),
904
- _: 1
905
- }));
906
- }
907
- }, ee = _e.create({ baseURL: process.env.API_URL, withCredentials: !0 });
908
- ee.defaults.withCredentials = !0;
909
- const U = ie({
910
- invites: [],
911
- invite: null,
912
- error: null
913
- }), oe = {
914
- async read(e) {
915
- await ee.get(`/api/invites/${e}`).then((t) => {
916
- U.invites = t.data, U.error = null;
917
- }).catch((t) => {
918
- C(t);
919
- });
920
- },
921
- async readOne(e) {
922
- await ee.get(`/api/invites/get/${e}`).then((t) => {
923
- U.invite = t.data, z.user.phone = t.data.invitedPhone, z.user.email = t.data.invitedEmail;
924
- }).catch((t) => {
925
- C(t);
926
- });
927
- },
928
- async create(e, t) {
929
- await ee.post(`/api/invites/${e}/create`, t).then(() => {
930
- U.error = null;
931
- }).catch((s) => {
932
- C(s);
933
- });
934
- },
935
- async update(e, t) {
936
- await ee.put(`/api/invites/${e}/update`, t).then(() => {
937
- U.error = null;
938
- }).catch((s) => {
939
- C(s);
940
- });
941
- },
942
- async delete(e) {
943
- await ee.delete(`/api/invites/${e}/delete`).then(() => {
944
- U.error = null;
945
- }).catch((t) => {
946
- C(t);
947
- });
948
- }
949
- };
950
- E(U, (e, t) => {
951
- });
952
- const pl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
953
- __proto__: null,
954
- actions: oe,
955
- state: U
956
- }, Symbol.toStringTag, { value: "Module" })), cn = { class: "mn-medium radius-medium pd-semi bg-white" }, un = /* @__PURE__ */ n("h3", { class: "mn-medium" }, "Добавить участников", -1), pn = /* @__PURE__ */ n("p", { class: "mn-small t-transp p-medium" }, "Укажите email или телефон, чтобы отправить ссылку с приглашением:", -1), mn = { class: "w-100 flex-nowrap flex" }, hn = {
957
- key: 0,
958
- class: "mn-r-medium flex-v-center flex"
959
- }, _n = ["onClick"], fn = /* @__PURE__ */ n("p", { class: "t-blue mn-r-small" }, "+ Добавить приглашение", -1), gn = [
960
- fn
961
- ], bn = /* @__PURE__ */ n("span", null, "Отправить приглашения ", -1), vn = {
962
- __name: "MembersAdd",
963
- props: {
964
- organization: Object
965
- },
966
- emits: ["send-invite"],
967
- setup(e, { emit: t }) {
968
- const s = e, o = b(null), r = b([{ contact: "", role: "" }]);
969
- function l() {
970
- r.value.push({ contact: "", role: "" });
971
- }
972
- function p(u) {
973
- r.value.splice(u, 1);
974
- }
975
- async function d(u) {
976
- await oe.create(s.organization._id, r.value);
977
- }
978
- function c() {
979
- }
980
- return (u, m) => (a(), i("div", null, [
981
- n("section", cn, [
982
- un,
983
- pn,
984
- (a(!0), i(k, null, L(r.value, (w, P) => (a(), i("div", {
985
- key: P,
986
- class: "br-1px br-solid br-grey flex radius-small mn-thin"
987
- }, [
988
- n("div", mn, [
989
- h(H, {
990
- field: w.contact,
991
- "onUpdate:field": (I) => w.contact = I,
992
- placeholder: "Email или телефон",
993
- class: "w-100 bg-white",
994
- validation: o.value
995
- }, null, 8, ["field", "onUpdate:field", "validation"]),
996
- P > 0 ? (a(), i("div", hn, [
997
- n("button", {
998
- onClick: (I) => p(P),
999
- class: "button-small button"
1000
- }, "×", 8, _n)
1001
- ])) : g("", !0)
1002
- ]),
1003
- h(Me, {
1004
- options: [
1005
- { name: "Директор", value: "director" },
1006
- { name: "Менеджер", value: "manager" },
1007
- { name: "Сотрудник", value: "member" }
1008
- ],
1009
- prop: w,
1010
- content: "role",
1011
- placeholder: "Роль",
1012
- size: "small",
1013
- class: "w-80"
1014
- }, null, 8, ["prop"])
1015
- ]))), 128)),
1016
- n("div", {
1017
- onClick: l,
1018
- class: "mn-small flex-v-center flex-nowrap flex"
1019
- }, gn),
1020
- h(ce, {
1021
- submit: u.a = () => d(U.invites),
1022
- callback: c,
1023
- class: "mn-t-medium"
1024
- }, {
1025
- default: O(() => [
1026
- bn
1027
- ]),
1028
- _: 1
1029
- }, 8, ["submit"])
1030
- ])
1031
- ]));
1032
- }
1033
- }, yn = { class: "mn-big radius-medium bg-white" }, wn = {
1034
- key: 0,
1035
- class: "pd-semi"
1036
- }, Cn = { class: "br-grey br-1px br-solid radius-small flex-nowrap flex-v-center flex pd-medium" }, $n = { class: "w-100 mn-r-small" }, xn = { class: "t-transp" }, kn = {
1037
- key: 0,
1038
- class: "mn-l-medium flex-v-center flex"
1039
- }, Ln = ["onClick"], On = {
1040
- key: 1,
1041
- class: "pd-semi"
1042
- }, Sn = { key: 0 }, zn = { class: "br-grey br-1px br-solid radius-small mn-thin flex-nowrap flex-v-center flex pd-medium" }, Pn = { class: "w-100 mn-r-small" }, Mn = { class: "t-transp" }, Vn = { class: "mn-l-medium flex-v-center flex" }, Dn = ["onClick"], An = {
1043
- __name: "MembersList",
1044
- props: {
1045
- organization: Object,
1046
- memberships: Array,
1047
- invites: Array
1048
- },
1049
- emits: [["removeMember", "removeInvite"]],
1050
- setup(e, { emit: t }) {
1051
- const s = e, o = b("members");
1052
- function r(p, d) {
1053
- s.memberships.splice(p, 1), t("removeMember", d);
1054
- }
1055
- function l(p, d) {
1056
- s.invites.splice(p, 1), t("removeInvite", d);
1057
- }
1058
- return (p, d) => (a(), i("section", yn, [
1059
- h(ze, {
1060
- selected: o.value,
1061
- "onUpdate:selected": d[0] || (d[0] = (c) => o.value = c),
1062
- class: "br-grey br-b br-solid radius-small",
1063
- tabs: [
1064
- { name: "Участники", value: "members" },
1065
- { name: "Приглашения", value: "invites" }
1066
- ]
1067
- }, null, 8, ["selected"]),
1068
- o.value === "members" ? (a(), i("div", wn, [
1069
- (a(!0), i(k, null, L(e.memberships, (c, u) => (a(), i("div", Cn, [
1070
- n("span", $n, f(c.user.email) + " " + f(c.user.phone), 1),
1071
- n("span", xn, f(c.position), 1),
1072
- c.position !== "Основатель" ? (a(), i("div", kn, [
1073
- n("button", {
1074
- onClick: (m) => r(u, c),
1075
- class: "button-small button"
1076
- }, "×", 8, Ln)
1077
- ])) : g("", !0)
1078
- ]))), 256))
1079
- ])) : g("", !0),
1080
- o.value === "invites" ? (a(), i("div", On, [
1081
- e.invites.length < 1 ? (a(), i("span", Sn, "В организации нет приглашений")) : g("", !0),
1082
- (a(!0), i(k, null, L(e.invites, (c, u) => (a(), i("div", zn, [
1083
- n("span", Pn, f(c.invitedEmail) + " " + f(c.invitedPhone), 1),
1084
- n("span", Mn, f(c.status), 1),
1085
- n("div", Vn, [
1086
- n("button", {
1087
- onClick: (m) => l(u, c),
1088
- class: "button-small button"
1089
- }, "×", 8, Dn)
1090
- ])
1091
- ]))), 256))
1092
- ])) : g("", !0)
1093
- ]));
1094
- }
1095
- }, In = /* @__PURE__ */ n("section", { class: "mn-medium radius-medium pd-semi bg-white" }, [
1096
- /* @__PURE__ */ n("h2", { class: "mn-regular" }, "Участники"),
1097
- /* @__PURE__ */ n("p", { class: "t-transp p-big" }, "Добавляйте новых участников организации и настраивайте права доступа.")
1098
- ], -1), ml = {
1099
- __name: "MembersTab",
1100
- props: {
1101
- organization: Object,
1102
- memberships: Array
1103
- },
1104
- async setup(e) {
1105
- let t, s;
1106
- const o = e;
1107
- [t, s] = W(() => oe.read(o.organization._id)), await t, s();
1108
- async function r(d) {
1109
- await oe.create(o.organization._id, d);
1110
- }
1111
- async function l(d) {
1112
- await ge.delete(d._id);
1113
- }
1114
- async function p(d) {
1115
- await oe.delete(d._id);
1116
- }
1117
- return (d, c) => (a(), y(R, { name: "slide-fade" }, {
1118
- default: O(() => [
1119
- n("div", null, [
1120
- In,
1121
- h(vn, {
1122
- organization: e.organization,
1123
- onSendInvite: r
1124
- }, null, 8, ["organization"]),
1125
- h(An, {
1126
- organization: e.organization,
1127
- memberships: e.memberships,
1128
- invites: U.invites,
1129
- onRemoveInvite: p,
1130
- onRemoveMember: l
1131
- }, null, 8, ["organization", "memberships", "invites"])
1132
- ])
1133
- ]),
1134
- _: 1
1135
- }));
1136
- }
1137
- };
1138
- const Bn = {
1139
- key: 0,
1140
- class: "pd-thin for-transition w-100"
1141
- }, Tn = { class: "t-semi mn-small" }, jn = {
1142
- __name: "Organization",
1143
- setup(e) {
1144
- const t = Z(), s = F();
1145
- let o = s.query.tab ? s.query.tab : "events";
1146
- const r = b(null);
1147
- pe(async () => {
1148
- r.value = await q.read({ _id: s.params._id, user: z.user._id }), await ge.read(s.params._id);
1149
- });
1150
- const l = b(o);
1151
- s.query.tab = l.value, E(l, (d) => {
1152
- t.push({ query: { ...s.query, tab: d } });
1153
- });
1154
- const p = ({ membership: d, isMember: c, targetId: u }) => {
1155
- He.handleMembershipUpdate(x.current, d, c, u);
1156
- };
1157
- return (d, c) => r.value ? (a(), i("div", Bn, [
1158
- h(Ls, {
1159
- organization: x.current,
1160
- user: z.user,
1161
- class: "mn-semi"
1162
- }, {
1163
- default: O(() => [
1164
- n("p", Tn, " 👨‍👨‍👧‍👧 " + f(x.current.numberOfMemberships) + " followers ", 1),
1165
- z.user._id && $(s).params._id && $(s).params._id !== z.user._id && x.current.owner !== z.user._id ? (a(), y(Fe, {
1166
- key: 0,
1167
- type: "organization",
1168
- isMember: x.current.isMember,
1169
- targetId: x.current._id,
1170
- userId: z.user._id,
1171
- class: "w-min mn-auto",
1172
- onUpdateMembership: p
1173
- }, null, 8, ["isMember", "targetId", "userId"])) : g("", !0)
1174
- ]),
1175
- _: 1
1176
- }, 8, ["organization", "user"]),
1177
- h(ze, {
1178
- selected: l.value,
1179
- "onUpdate:selected": c[0] || (c[0] = (u) => l.value = u),
1180
- tabs: [
1181
- { name: "Events", value: "events" },
1182
- { name: "Community", value: "community" }
1183
- ],
1184
- class: "mn-small o-hidden h5 radius-big bg-grey"
1185
- }, null, 8, ["selected"]),
1186
- h(R, { name: "slide-fade" }, {
1187
- default: O(() => [
1188
- l.value === "events" ? (a(), y(qe, {
1189
- key: 0,
1190
- user: z.user._id,
1191
- owner: $(s).params._id,
1192
- sortOrder: "asc"
1193
- }, null, 8, ["user", "owner"])) : g("", !0)
1194
- ]),
1195
- _: 1
1196
- }),
1197
- h(R, { name: "slide-fade" }, {
1198
- default: O(() => [
1199
- l.value === "community" ? (a(), y(Ne, {
1200
- key: 0,
1201
- user: z.user._id,
1202
- owner: $(s).params._id
1203
- }, null, 8, ["user", "owner"])) : g("", !0)
1204
- ]),
1205
- _: 1
1206
- })
1207
- ])) : g("", !0);
1208
- }
1209
- }, Un = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1210
- __proto__: null,
1211
- default: jn
1212
- }, Symbol.toStringTag, { value: "Module" })), En = { class: "for-transition w-100" }, Fn = {
1213
- id: "dash",
1214
- class: "pd-medium bg-grey"
1215
- }, Hn = { class: "mn-medium radius-medium pd-semi bg-white" }, Zn = { class: "flex-nowrap flex mn-small" }, qn = { class: "w-100" }, Nn = /* @__PURE__ */ n("path", {
1216
- 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",
1217
- fill: "black"
1218
- }, null, -1), Rn = [
1219
- Nn
1220
- ], Kn = ["innerHTML"], Jn = { class: "mn-medium radius-medium pd-semi bg-white" }, Wn = /* @__PURE__ */ n("h3", { class: "mn-regular" }, "Команда", -1), Yn = { key: 0 }, Gn = { class: "mn-medium radius-medium pd-semi bg-white" }, Qn = /* @__PURE__ */ n("h3", { class: "mn-regular" }, "Подотделы", -1), Xn = { key: 0 }, ea = {
1221
- __name: "Department",
1222
- async setup(e) {
1223
- let t, s;
1224
- Z();
1225
- const o = F();
1226
- return [t, s] = W(() => J.readOne(o.params._id)), await t, s(), (r, l) => (a(), i("div", En, [
1227
- n("div", Fn, [
1228
- n("section", Hn, [
1229
- n("div", Zn, [
1230
- n("h2", qn, f(_.department.name), 1),
1231
- (a(), i("svg", {
1232
- onClick: l[0] || (l[0] = (p) => r.$router.push(`/app/organization/departments/${_.department._id}/edit`)),
1233
- class: "i-regular t-transp",
1234
- width: "652",
1235
- height: "652",
1236
- viewBox: "0 0 652 652",
1237
- fill: "none",
1238
- xmlns: "http://www.w3.org/2000/svg"
1239
- }, Rn))
1240
- ]),
1241
- n("p", {
1242
- class: "t-transp p-big",
1243
- innerHTML: _.department.description
1244
- }, null, 8, Kn)
1245
- ]),
1246
- n("section", Jn, [
1247
- Wn,
1248
- n("ul", null, [
1249
- _.department.members.length < 1 ? (a(), i("li", Yn, "В отделе еще нет участников")) : g("", !0),
1250
- (a(!0), i(k, null, L(_.department.members, (p, d) => (a(), y(De, {
1251
- class: "br-b br-solid br-grey",
1252
- key: d,
1253
- user: p.user,
1254
- position: p.position,
1255
- onClick: (c) => r.$router.push(`/app/profile/${p.user._id}`)
1256
- }, null, 8, ["user", "position", "onClick"]))), 128))
1257
- ])
1258
- ]),
1259
- n("section", Gn, [
1260
- Qn,
1261
- n("ul", null, [
1262
- _.department.subdepartments.length < 1 ? (a(), i("li", Xn, "В отделе еще нет подотделов")) : g("", !0),
1263
- (a(!0), i(k, null, L(_.department.subdepartments, (p, d) => (a(), y(Ve, {
1264
- onClick: (c) => r.$router.push(`/app/organization/departments/${p._id}`),
1265
- key: d,
1266
- class: "br-b br-solid br-grey",
1267
- department: p
1268
- }, null, 8, ["onClick", "department"]))), 128))
1269
- ])
1270
- ])
1271
- ])
1272
- ]));
1273
- }
1274
- }, ta = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1275
- __proto__: null,
1276
- default: ea
1277
- }, Symbol.toStringTag, { value: "Module" }));
1278
- const sa = { class: "for-transition bg-white radius-big w-100" }, na = { class: "flex-v-center flex-nowrap flex pd-semi" }, aa = /* @__PURE__ */ n("h2", { class: "mn-r-medium" }, "Organizations", -1), oa = { class: "pd-semi" }, ia = {
1279
- key: 1,
1280
- class: "cols-3"
1281
- }, la = ["onClick"], ra = ["src"], da = {
1282
- key: 1,
1283
- class: "radius-medium mn-small i-thin",
1284
- width: "42",
1285
- height: "42",
1286
- viewBox: "0 0 42 42",
1287
- fill: "none",
1288
- xmlns: "http://www.w3.org/2000/svg"
1289
- }, ca = /* @__PURE__ */ n("circle", {
1290
- fill: "rgb(var(--main))",
1291
- cx: "21",
1292
- cy: "21",
1293
- r: "21"
1294
- }, null, -1), ua = /* @__PURE__ */ n("path", {
1295
- fill: "#242424",
1296
- "fill-opacity": "0.1",
1297
- "fill-rule": "evenodd",
1298
- "clip-rule": "evenodd",
1299
- 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"
1300
- }, null, -1), pa = [
1301
- ca,
1302
- ua
1303
- ], ma = { class: "h4 mn-r-semi mn-small" }, ha = ["onClick"], _a = /* @__PURE__ */ n("path", {
1304
- fill: "black",
1305
- 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"
1306
- }, null, -1), fa = [
1307
- _a
1308
- ], ga = { class: "t-black p-small" }, hl = {
1309
- __name: "OrganizationsAccount",
1310
- async setup(e) {
1311
- let t, s;
1312
- z.user._id && ([t, s] = W(() => q.read({ owner: z.user._id })), await t, s());
1313
- const o = Z(), r = F();
1314
- let l = r.query.tab ? r.query.tab : "details";
1315
- const p = b(l);
1316
- return r.query.tab = p.value, E(p, (d) => {
1317
- o.push({ query: { ...r.query, tab: d } });
1318
- }), (d, c) => (a(), i("div", sa, [
1319
- n("header", na, [
1320
- aa,
1321
- n("button", {
1322
- onClick: c[0] || (c[0] = (u) => d.$router.push({ name: "Create Organization" })),
1323
- class: "radius-100p i-semi hover-scale-1 cursor-pointer t-white bg-second"
1324
- }, "+")
1325
- ]),
1326
- n("div", oa, [
1327
- x.all.length < 1 ? (a(), y(fe, {
1328
- key: 0,
1329
- title: "You Haven't Joined Any Organization Yet",
1330
- description: "Weeder is all about community. Join an organization or maybe you want to create your own?",
1331
- action: "Create organization",
1332
- callback: d.a = () => d.$router.push("/app/organization/create/details")
1333
- }, null, 8, ["callback"])) : (a(), i("div", ia, [
1334
- (a(!0), i(k, null, L(x.all, (u) => (a(), i("div", {
1335
- key: u._id,
1336
- class: "mn-small radius-medium pd-medium br-2px br-solid br-grey",
1337
- onClick: (m) => d.$router.push({ name: "Organization", params: { _id: u._id } })
1338
- }, [
1339
- u.profile.photo.length > 0 ? (a(), i("img", {
1340
- key: 0,
1341
- src: u.profile.photo,
1342
- class: "radius-medium mn-small i-thin"
1343
- }, null, 8, ra)) : (a(), i("svg", da, pa)),
1344
- n("p", ma, f(u.profile.name), 1),
1345
- (a(), i("svg", {
1346
- onClick: re((m) => d.$router.push({ name: "Organization Edit", params: { _id: u._id } }), ["stop"]),
1347
- class: "t-transp hover-scale-1 z-index-1 pos-absolute pos-t-regular pos-r-regular i-medium",
1348
- width: "13",
1349
- height: "12",
1350
- viewBox: "0 0 13 12",
1351
- xmlns: "http://www.w3.org/2000/svg"
1352
- }, fa, 8, ha)),
1353
- n("p", ga, f(u.profile.description.slice(0, 120) + "..."), 1)
1354
- ], 8, la))), 128))
1355
- ]))
1356
- ])
1357
- ]));
1358
- }
1359
- }, ba = { class: "for-transition pd-thin" }, va = /* @__PURE__ */ n("h3", { class: "mn-small" }, "Profile", -1), ya = { class: "mn-thin radius-small w-100 h-10r bg-grey flex-center flex-column flex" }, wa = /* @__PURE__ */ n("h4", null, "Upload photo", -1), Ca = /* @__PURE__ */ n("h3", { class: "mn-small" }, "Settings", -1), $a = /* @__PURE__ */ n("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), xa = {
1360
- __name: "OrganizationEdit",
1361
- async setup(e) {
1362
- let t, s;
1363
- const o = F(), r = Z();
1364
- q.reset(), o.params._id && ([t, s] = W(() => q.read({ _id: o.params._id })), await t, s());
1365
- const l = V(() => x.current);
1366
- async function p() {
1367
- o.params._id ? await q.update(o.params._id, l.value) : await q.create(x.current, z.user._id);
1368
- }
1369
- function d() {
1370
- r.replace({ name: "Organization", params: { _id: x.current._id } });
1371
- }
1372
- return (c, u) => (a(), i("div", ba, [
1373
- va,
1374
- n("div", ya, [
1375
- h(Pe, {
1376
- photo: x.current.profile.photo,
1377
- "onUpdate:photo": u[0] || (u[0] = (m) => x.current.profile.photo = m),
1378
- uploadPath: "organizations/" + x.current._id + "/avatars",
1379
- class: "h-4r w-4r aspect-1x1 o-hidden mn-thin radius-extra"
1380
- }, null, 8, ["photo", "uploadPath"]),
1381
- wa
1382
- ]),
1383
- h(H, {
1384
- field: x.current.profile.name,
1385
- "onUpdate:field": u[1] || (u[1] = (m) => x.current.profile.name = m),
1386
- placeholder: "Name of organization",
1387
- class: "mn-thin bg-grey pd-medium radius-small"
1388
- }, null, 8, ["field"]),
1389
- h(H, {
1390
- field: x.current.profile.description,
1391
- "onUpdate:field": u[2] || (u[2] = (m) => x.current.profile.description = m),
1392
- placeholder: "Bio",
1393
- class: "mn-thin bg-grey pd-medium radius-small"
1394
- }, null, 8, ["field"]),
1395
- h(Ue, {
1396
- onTagsChanged: u[3] || (u[3] = (m) => x.current.profile.tags = m),
1397
- tags: x.current.profile.tags
1398
- }, null, 8, ["tags"]),
1399
- Ca,
1400
- $a,
1401
- h(Ee, {
1402
- modelValue: x.current.types,
1403
- "onUpdate:modelValue": u[4] || (u[4] = (m) => x.current.types = m),
1404
- options: ["public", "exclusive", "hidden"],
1405
- multiple: !1,
1406
- taggable: !1,
1407
- placeholder: "Type to search or add type of organization",
1408
- class: "mn-semi bg-grey pd-medium radius-small"
1409
- }, null, 8, ["modelValue"]),
1410
- h(ce, {
1411
- submit: p,
1412
- callback: d,
1413
- class: "mn-thin"
1414
- }, {
1415
- default: O(() => [
1416
- N("Save")
1417
- ]),
1418
- _: 1
1419
- })
1420
- ]));
1421
- }
1422
- }, $e = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1423
- __proto__: null,
1424
- default: xa
1425
- }, Symbol.toStringTag, { value: "Module" }));
1426
- const ka = { class: "for-transition bg-white radius-big w-100" }, La = /* @__PURE__ */ n("header", { class: "flex-v-center flex-nowrap flex pd-semi" }, [
1427
- /* @__PURE__ */ n("h2", { class: "mn-r-medium" }, "Weed dispensaries in Thailand")
1428
- ], -1), Oa = { class: "pd-semi" }, Sa = {
1429
- key: 1,
1430
- class: "cols-3"
1431
- }, za = ["onClick"], Pa = ["src"], Ma = {
1432
- key: 1,
1433
- class: "radius-medium mn-small i-thin",
1434
- width: "42",
1435
- height: "42",
1436
- viewBox: "0 0 42 42",
1437
- fill: "none",
1438
- xmlns: "http://www.w3.org/2000/svg"
1439
- }, Va = /* @__PURE__ */ n("circle", {
1440
- fill: "rgb(var(--main))",
1441
- cx: "21",
1442
- cy: "21",
1443
- r: "21"
1444
- }, null, -1), Da = /* @__PURE__ */ n("path", {
1445
- fill: "#242424",
1446
- "fill-opacity": "0.1",
1447
- "fill-rule": "evenodd",
1448
- "clip-rule": "evenodd",
1449
- 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"
1450
- }, null, -1), Aa = [
1451
- Va,
1452
- Da
1453
- ], Ia = { class: "h4 mn-r-semi mn-small" }, Ba = ["onClick"], Ta = /* @__PURE__ */ n("path", {
1454
- fill: "black",
1455
- 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"
1456
- }, null, -1), ja = [
1457
- Ta
1458
- ], Ua = { class: "t-black p-small" }, _l = {
1459
- __name: "Organizations",
1460
- async setup(e) {
1461
- let t, s;
1462
- z.user._id && ([t, s] = W(() => q.read({ owner: z.user._id })), await t, s());
1463
- const o = Z(), r = F();
1464
- let l = r.query.tab ? r.query.tab : "details";
1465
- const p = b(l);
1466
- return r.query.tab = p.value, E(p, (d) => {
1467
- o.push({ query: { ...r.query, tab: d } });
1468
- }), (d, c) => (a(), i("div", ka, [
1469
- La,
1470
- n("div", Oa, [
1471
- x.all.length < 1 ? (a(), y(fe, {
1472
- key: 0,
1473
- title: "You Haven't Joined Any Organization Yet",
1474
- description: "Weeder is all about community. Join an organization or maybe you want to create your own?",
1475
- action: "Create organization",
1476
- callback: d.a = () => d.$router.push("/app/organization/create/details")
1477
- }, null, 8, ["callback"])) : (a(), i("div", Sa, [
1478
- (a(!0), i(k, null, L(x.all, (u) => (a(), i("div", {
1479
- key: u._id,
1480
- class: "mn-small radius-medium pd-medium br-2px br-solid br-grey",
1481
- onClick: (m) => d.$router.push({ name: "Organization", params: { _id: u._id } })
1482
- }, [
1483
- u.profile.photo.length > 0 ? (a(), i("img", {
1484
- key: 0,
1485
- src: u.profile.photo,
1486
- class: "radius-medium mn-small i-thin"
1487
- }, null, 8, Pa)) : (a(), i("svg", Ma, Aa)),
1488
- n("p", Ia, f(u.profile.name), 1),
1489
- (a(), i("svg", {
1490
- onClick: re((m) => d.$router.push({ name: "Organization Edit", params: { _id: u._id } }), ["stop"]),
1491
- class: "t-transp hover-scale-1 z-index-1 pos-absolute pos-t-regular pos-r-regular i-medium",
1492
- width: "13",
1493
- height: "12",
1494
- viewBox: "0 0 13 12",
1495
- xmlns: "http://www.w3.org/2000/svg"
1496
- }, ja, 8, Ba)),
1497
- n("p", Ua, f(u.profile.description.slice(0, 120) + "..."), 1)
1498
- ], 8, za))), 128))
1499
- ]))
1500
- ])
1501
- ]));
1502
- }
1503
- };
1504
- const Ea = {
1505
- key: 0,
1506
- class: "t-transp mn-r-small"
1507
- }, Fa = ["placeholder", "value"], Ha = {
1508
- key: 0,
1509
- class: "mn-t-thin invalid-feedback"
1510
- }, Za = {
1511
- __name: "Address",
1512
- props: {
1513
- apiKey: {
1514
- type: String,
1515
- required: !0
1516
- },
1517
- label: null,
1518
- placeholder: "Enter something here",
1519
- field: null,
1520
- location: {
1521
- type: Object,
1522
- default: { lat: 48.6900735, lng: 41.1620239 }
1523
- },
1524
- address: {
1525
- type: String,
1526
- default: ""
1527
- }
1528
- },
1529
- emits: ["update:address", "update:location", "update:country", "update:state", "update:city"],
1530
- setup(e, { emit: t }) {
1531
- const s = e, o = b(null);
1532
- let r;
1533
- const l = () => {
1534
- r = new google.maps.places.Autocomplete(o.value), r.addListener("place_changed", d);
1535
- }, p = () => {
1536
- r || l();
1537
- }, d = () => {
1538
- const c = r.getPlace();
1539
- if (!c.geometry || !c.address_components)
1540
- return;
1541
- let u = "", m = "", w = "";
1542
- for (let K = 0; K < c.address_components.length; K++) {
1543
- console.log(c.address_components);
1544
- let D = c.address_components[K];
1545
- D.types.includes("country") && (u = D.long_name), D.types.includes("administrative_area_level_1") && (m = D.long_name), D.types.includes("locality") && (w = D.long_name);
1546
- }
1547
- const P = c.formatted_address, I = { lat: c.geometry.location.lat(), lng: c.geometry.location.lng() };
1548
- t("update:address", P), t("update:location", I), t("update:country", u), t("update:state", m), t("update:city", w);
1549
- };
1550
- return de(() => {
1551
- s.address !== o.value && (o.value = s.address);
1552
- }), pe(() => {
1553
- l();
1554
- }), (c, u) => (a(), i("div", {
1555
- class: te([c.$attrs.class, "flex-nowrap flex"])
1556
- }, [
1557
- e.label ? (a(), i("div", Ea, [
1558
- n("span", null, f(e.label), 1)
1559
- ])) : g("", !0),
1560
- n("input", {
1561
- ref_key: "addressInput",
1562
- ref: o,
1563
- class: "w-100",
1564
- placeholder: e.placeholder,
1565
- value: e.address,
1566
- onInput: p
1567
- }, null, 40, Fa),
1568
- h(R, {
1569
- mode: "out-in",
1570
- name: "fade"
1571
- }, {
1572
- default: O(() => [
1573
- c.validation ? (a(), i("div", Ha, " * " + f(c.validation.message), 1)) : g("", !0)
1574
- ]),
1575
- _: 1
1576
- })
1577
- ], 2));
1578
- }
1579
- }, qa = /* @__PURE__ */ S(Za, [["__scopeId", "data-v-faece1a6"]]);
1580
- const Na = (e) => (me("data-v-1c7971e5"), e = e(), he(), e), Ra = { class: "map-container" }, Ka = /* @__PURE__ */ Na(() => /* @__PURE__ */ n("svg", {
1581
- class: "i-medium",
1582
- width: "98",
1583
- height: "98",
1584
- viewBox: "0 0 98 98",
1585
- fill: "none",
1586
- xmlns: "http://www.w3.org/2000/svg"
1587
- }, [
1588
- /* @__PURE__ */ n("path", {
1589
- 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",
1590
- fill: "white"
1591
- }),
1592
- /* @__PURE__ */ n("path", {
1593
- 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",
1594
- fill: "white"
1595
- })
1596
- ], -1)), Ja = [
1597
- Ka
1598
- ], Wa = {
1599
- __name: "LocationMarker",
1600
- props: {
1601
- location: {
1602
- type: Object,
1603
- default: { lat: 48.6900735, lng: 41.1620239 }
1604
- },
1605
- address: {
1606
- type: String,
1607
- default: ""
1608
- },
1609
- apiKey: String
1610
- },
1611
- emits: ["update:location", "update:address", "update:country", "update:state", "update:city"],
1612
- setup(e, { emit: t }) {
1613
- const s = e, o = b(null);
1614
- let r, l;
1615
- pe(() => {
1616
- r = new google.maps.Map(o.value, {
1617
- center: s.location,
1618
- zoom: 15,
1619
- mapTypeControl: !1,
1620
- fullscreenControl: !1
1621
- }), l = new google.maps.Marker({
1622
- position: s.location,
1623
- map: r,
1624
- draggable: !0
1625
- }), l.addListener("dragend", (c) => {
1626
- const u = { lat: c.latLng.lat(), lng: c.latLng.lng() };
1627
- t("update:location", u), p(u);
1628
- });
1629
- }), de(() => {
1630
- s.location && l && l.setPosition(new google.maps.LatLng(s.location.lat, s.location.lng));
1631
- }), de(() => {
1632
- if (s.location && r) {
1633
- const c = new google.maps.LatLng(s.location.lat, s.location.lng);
1634
- r.setCenter(c);
1635
- }
1636
- });
1637
- function p(c) {
1638
- new google.maps.Geocoder().geocode({ location: c }, (m, w) => {
1639
- if (w === "OK")
1640
- if (m[0]) {
1641
- t("update:address", m[0].formatted_address);
1642
- let P = "", I = "", K = "";
1643
- m[0].address_components.forEach((D) => {
1644
- D.types.includes("country") && (P = D.long_name), D.types.includes("administrative_area_level_1") && (I = D.long_name), D.types.includes("locality") && (K = D.long_name);
1645
- }), t("update:country", P), t("update:state", I), t("update:city", K);
1646
- } else
1647
- console.error("No results found");
1648
- else
1649
- console.error("Geocoder failed due to: " + w);
1650
- });
1651
- }
1652
- async function d() {
1653
- navigator.geolocation ? navigator.geolocation.getCurrentPosition((c) => {
1654
- const u = { lat: c.coords.latitude, lng: c.coords.longitude };
1655
- t("update:location", u), p(u);
1656
- }, () => {
1657
- console.error("Error getting location");
1658
- }) : console.error("Geolocation is not supported by this browser.");
1659
- }
1660
- return (c, u) => (a(), i("div", Ra, [
1661
- n("div", {
1662
- ref_key: "mapContainer",
1663
- ref: o,
1664
- class: "w-100 h-100"
1665
- }, null, 512),
1666
- n("button", {
1667
- class: "pos-absolute pos-t-regular pos-r-regular i-semi bg-second radius-extra",
1668
- onClick: d
1669
- }, Ja)
1670
- ]));
1671
- }
1672
- }, Ya = /* @__PURE__ */ S(Wa, [["__scopeId", "data-v-1c7971e5"]]);
1673
- var Ga = Object.defineProperty, Qa = Object.defineProperties, Xa = Object.getOwnPropertyDescriptors, xe = Object.getOwnPropertySymbols, eo = Object.prototype.hasOwnProperty, to = Object.prototype.propertyIsEnumerable, ke = (e, t, s) => t in e ? Ga(e, t, { enumerable: !0, configurable: !0, writable: !0, value: s }) : e[t] = s, Q = (e, t) => {
1674
- for (var s in t || (t = {}))
1675
- eo.call(t, s) && ke(e, s, t[s]);
1676
- if (xe)
1677
- for (var s of xe(t))
1678
- to.call(t, s) && ke(e, s, t[s]);
1679
- return e;
1680
- }, Le = (e, t) => Qa(e, Xa(t));
1681
- const so = {
1682
- props: {
1683
- autoscroll: {
1684
- type: Boolean,
1685
- default: !0
1686
- }
1687
- },
1688
- watch: {
1689
- typeAheadPointer() {
1690
- this.autoscroll && this.maybeAdjustScroll();
1691
- },
1692
- open(e) {
1693
- this.autoscroll && e && this.$nextTick(() => this.maybeAdjustScroll());
1694
- }
1695
- },
1696
- methods: {
1697
- maybeAdjustScroll() {
1698
- var e;
1699
- const t = ((e = this.$refs.dropdownMenu) == null ? void 0 : e.children[this.typeAheadPointer]) || !1;
1700
- if (t) {
1701
- const s = this.getDropdownViewport(), { top: o, bottom: r, height: l } = t.getBoundingClientRect();
1702
- if (o < s.top)
1703
- return this.$refs.dropdownMenu.scrollTop = t.offsetTop;
1704
- if (r > s.bottom)
1705
- return this.$refs.dropdownMenu.scrollTop = t.offsetTop - (s.height - l);
1706
- }
1707
- },
1708
- getDropdownViewport() {
1709
- return this.$refs.dropdownMenu ? this.$refs.dropdownMenu.getBoundingClientRect() : {
1710
- height: 0,
1711
- top: 0,
1712
- bottom: 0
1713
- };
1714
- }
1715
- }
1716
- }, no = {
1717
- data() {
1718
- return {
1719
- typeAheadPointer: -1
1720
- };
1721
- },
1722
- watch: {
1723
- filteredOptions() {
1724
- for (let e = 0; e < this.filteredOptions.length; e++)
1725
- if (this.selectable(this.filteredOptions[e])) {
1726
- this.typeAheadPointer = e;
1727
- break;
1728
- }
1729
- },
1730
- open(e) {
1731
- e && this.typeAheadToLastSelected();
1732
- },
1733
- selectedValue() {
1734
- this.open && this.typeAheadToLastSelected();
1735
- }
1736
- },
1737
- methods: {
1738
- typeAheadUp() {
1739
- for (let e = this.typeAheadPointer - 1; e >= 0; e--)
1740
- if (this.selectable(this.filteredOptions[e])) {
1741
- this.typeAheadPointer = e;
1742
- break;
1743
- }
1744
- },
1745
- typeAheadDown() {
1746
- for (let e = this.typeAheadPointer + 1; e < this.filteredOptions.length; e++)
1747
- if (this.selectable(this.filteredOptions[e])) {
1748
- this.typeAheadPointer = e;
1749
- break;
1750
- }
1751
- },
1752
- typeAheadSelect() {
1753
- const e = this.filteredOptions[this.typeAheadPointer];
1754
- e && this.selectable(e) && this.select(e);
1755
- },
1756
- typeAheadToLastSelected() {
1757
- this.typeAheadPointer = this.selectedValue.length !== 0 ? this.filteredOptions.indexOf(this.selectedValue[this.selectedValue.length - 1]) : -1;
1758
- }
1759
- }
1760
- }, ao = {
1761
- props: {
1762
- loading: {
1763
- type: Boolean,
1764
- default: !1
1765
- }
1766
- },
1767
- data() {
1768
- return {
1769
- mutableLoading: !1
1770
- };
1771
- },
1772
- watch: {
1773
- search() {
1774
- this.$emit("search", this.search, this.toggleLoading);
1775
- },
1776
- loading(e) {
1777
- this.mutableLoading = e;
1778
- }
1779
- },
1780
- methods: {
1781
- toggleLoading(e = null) {
1782
- return e == null ? this.mutableLoading = !this.mutableLoading : this.mutableLoading = e;
1783
- }
1784
- }
1785
- }, be = (e, t) => {
1786
- const s = e.__vccOpts || e;
1787
- for (const [o, r] of t)
1788
- s[o] = r;
1789
- return s;
1790
- }, oo = {}, io = {
1791
- xmlns: "http://www.w3.org/2000/svg",
1792
- width: "10",
1793
- height: "10"
1794
- }, lo = /* @__PURE__ */ n("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), ro = [
1795
- lo
1796
- ];
1797
- function co(e, t) {
1798
- return a(), i("svg", io, ro);
1799
- }
1800
- const uo = /* @__PURE__ */ be(oo, [["render", co]]), po = {}, mo = {
1801
- xmlns: "http://www.w3.org/2000/svg",
1802
- width: "14",
1803
- height: "10"
1804
- }, ho = /* @__PURE__ */ n("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), _o = [
1805
- ho
1806
- ];
1807
- function fo(e, t) {
1808
- return a(), i("svg", mo, _o);
1809
- }
1810
- const go = /* @__PURE__ */ be(po, [["render", fo]]), Oe = {
1811
- Deselect: uo,
1812
- OpenIndicator: go
1813
- }, bo = {
1814
- mounted(e, { instance: t }) {
1815
- if (t.appendToBody) {
1816
- const {
1817
- height: s,
1818
- top: o,
1819
- left: r,
1820
- width: l
1821
- } = t.$refs.toggle.getBoundingClientRect();
1822
- let p = window.scrollX || window.pageXOffset, d = window.scrollY || window.pageYOffset;
1823
- e.unbindPosition = t.calculatePosition(e, t, {
1824
- width: l + "px",
1825
- left: p + r + "px",
1826
- top: d + o + s + "px"
1827
- }), document.body.appendChild(e);
1828
- }
1829
- },
1830
- unmounted(e, { instance: t }) {
1831
- t.appendToBody && (e.unbindPosition && typeof e.unbindPosition == "function" && e.unbindPosition(), e.parentNode && e.parentNode.removeChild(e));
1832
- }
1833
- };
1834
- function vo(e) {
1835
- const t = {};
1836
- return Object.keys(e).sort().forEach((s) => {
1837
- t[s] = e[s];
1838
- }), JSON.stringify(t);
1839
- }
1840
- let yo = 0;
1841
- function wo() {
1842
- return ++yo;
1843
- }
1844
- const Co = {
1845
- components: Q({}, Oe),
1846
- directives: { appendToBody: bo },
1847
- mixins: [so, no, ao],
1848
- compatConfig: {
1849
- MODE: 3
1850
- },
1851
- emits: [
1852
- "open",
1853
- "close",
1854
- "update:modelValue",
1855
- "search",
1856
- "search:compositionstart",
1857
- "search:compositionend",
1858
- "search:keydown",
1859
- "search:blur",
1860
- "search:focus",
1861
- "search:input",
1862
- "option:created",
1863
- "option:selecting",
1864
- "option:selected",
1865
- "option:deselecting",
1866
- "option:deselected"
1867
- ],
1868
- props: {
1869
- modelValue: {},
1870
- components: {
1871
- type: Object,
1872
- default: () => ({})
1873
- },
1874
- options: {
1875
- type: Array,
1876
- default() {
1877
- return [];
1878
- }
1879
- },
1880
- disabled: {
1881
- type: Boolean,
1882
- default: !1
1883
- },
1884
- clearable: {
1885
- type: Boolean,
1886
- default: !0
1887
- },
1888
- deselectFromDropdown: {
1889
- type: Boolean,
1890
- default: !1
1891
- },
1892
- searchable: {
1893
- type: Boolean,
1894
- default: !0
1895
- },
1896
- multiple: {
1897
- type: Boolean,
1898
- default: !1
1899
- },
1900
- placeholder: {
1901
- type: String,
1902
- default: ""
1903
- },
1904
- transition: {
1905
- type: String,
1906
- default: "vs__fade"
1907
- },
1908
- clearSearchOnSelect: {
1909
- type: Boolean,
1910
- default: !0
1911
- },
1912
- closeOnSelect: {
1913
- type: Boolean,
1914
- default: !0
1915
- },
1916
- label: {
1917
- type: String,
1918
- default: "label"
1919
- },
1920
- autocomplete: {
1921
- type: String,
1922
- default: "off"
1923
- },
1924
- reduce: {
1925
- type: Function,
1926
- default: (e) => e
1927
- },
1928
- selectable: {
1929
- type: Function,
1930
- default: (e) => !0
1931
- },
1932
- getOptionLabel: {
1933
- type: Function,
1934
- default(e) {
1935
- return typeof e == "object" ? e.hasOwnProperty(this.label) ? e[this.label] : console.warn(`[vue-select warn]: Label key "option.${this.label}" does not exist in options object ${JSON.stringify(e)}.
1936
- https://vue-select.org/api/props.html#getoptionlabel`) : e;
1937
- }
1938
- },
1939
- getOptionKey: {
1940
- type: Function,
1941
- default(e) {
1942
- if (typeof e != "object")
1943
- return e;
1944
- try {
1945
- return e.hasOwnProperty("id") ? e.id : vo(e);
1946
- } catch (t) {
1947
- 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.
1948
- https://vue-select.org/api/props.html#getoptionkey`, e, t);
1949
- }
1950
- }
1951
- },
1952
- onTab: {
1953
- type: Function,
1954
- default: function() {
1955
- this.selectOnTab && !this.isComposing && this.typeAheadSelect();
1956
- }
1957
- },
1958
- taggable: {
1959
- type: Boolean,
1960
- default: !1
1961
- },
1962
- tabindex: {
1963
- type: Number,
1964
- default: null
1965
- },
1966
- pushTags: {
1967
- type: Boolean,
1968
- default: !1
1969
- },
1970
- filterable: {
1971
- type: Boolean,
1972
- default: !0
1973
- },
1974
- filterBy: {
1975
- type: Function,
1976
- default(e, t, s) {
1977
- return (t || "").toLocaleLowerCase().indexOf(s.toLocaleLowerCase()) > -1;
1978
- }
1979
- },
1980
- filter: {
1981
- type: Function,
1982
- default(e, t) {
1983
- return e.filter((s) => {
1984
- let o = this.getOptionLabel(s);
1985
- return typeof o == "number" && (o = o.toString()), this.filterBy(s, o, t);
1986
- });
1987
- }
1988
- },
1989
- createOption: {
1990
- type: Function,
1991
- default(e) {
1992
- return typeof this.optionList[0] == "object" ? { [this.label]: e } : e;
1993
- }
1994
- },
1995
- resetOnOptionsChange: {
1996
- default: !1,
1997
- validator: (e) => ["function", "boolean"].includes(typeof e)
1998
- },
1999
- clearSearchOnBlur: {
2000
- type: Function,
2001
- default: function({ clearSearchOnSelect: e, multiple: t }) {
2002
- return e && !t;
2003
- }
2004
- },
2005
- noDrop: {
2006
- type: Boolean,
2007
- default: !1
2008
- },
2009
- inputId: {
2010
- type: String
2011
- },
2012
- dir: {
2013
- type: String,
2014
- default: "auto"
2015
- },
2016
- selectOnTab: {
2017
- type: Boolean,
2018
- default: !1
2019
- },
2020
- selectOnKeyCodes: {
2021
- type: Array,
2022
- default: () => [13]
2023
- },
2024
- searchInputQuerySelector: {
2025
- type: String,
2026
- default: "[type=search]"
2027
- },
2028
- mapKeydown: {
2029
- type: Function,
2030
- default: (e, t) => e
2031
- },
2032
- appendToBody: {
2033
- type: Boolean,
2034
- default: !1
2035
- },
2036
- calculatePosition: {
2037
- type: Function,
2038
- default(e, t, { width: s, top: o, left: r }) {
2039
- e.style.top = o, e.style.left = r, e.style.width = s;
2040
- }
2041
- },
2042
- dropdownShouldOpen: {
2043
- type: Function,
2044
- default({ noDrop: e, open: t, mutableLoading: s }) {
2045
- return e ? !1 : t && !s;
2046
- }
2047
- },
2048
- uid: {
2049
- type: [String, Number],
2050
- default: () => wo()
2051
- }
2052
- },
2053
- data() {
2054
- return {
2055
- search: "",
2056
- open: !1,
2057
- isComposing: !1,
2058
- pushedTags: [],
2059
- _value: [],
2060
- deselectButtons: []
2061
- };
2062
- },
2063
- computed: {
2064
- isReducingValues() {
2065
- return this.$props.reduce !== this.$options.props.reduce.default;
2066
- },
2067
- isTrackingValues() {
2068
- return typeof this.modelValue > "u" || this.isReducingValues;
2069
- },
2070
- selectedValue() {
2071
- let e = this.modelValue;
2072
- return this.isTrackingValues && (e = this.$data._value), e != null && e !== "" ? [].concat(e) : [];
2073
- },
2074
- optionList() {
2075
- return this.options.concat(this.pushTags ? this.pushedTags : []);
2076
- },
2077
- searchEl() {
2078
- return this.$slots.search ? this.$refs.selectedOptions.querySelector(this.searchInputQuerySelector) : this.$refs.search;
2079
- },
2080
- scope() {
2081
- const e = {
2082
- search: this.search,
2083
- loading: this.loading,
2084
- searching: this.searching,
2085
- filteredOptions: this.filteredOptions
2086
- };
2087
- return {
2088
- search: {
2089
- attributes: Q({
2090
- disabled: this.disabled,
2091
- placeholder: this.searchPlaceholder,
2092
- tabindex: this.tabindex,
2093
- readonly: !this.searchable,
2094
- id: this.inputId,
2095
- "aria-autocomplete": "list",
2096
- "aria-labelledby": `vs${this.uid}__combobox`,
2097
- "aria-controls": `vs${this.uid}__listbox`,
2098
- ref: "search",
2099
- type: "search",
2100
- autocomplete: this.autocomplete,
2101
- value: this.search
2102
- }, this.dropdownOpen && this.filteredOptions[this.typeAheadPointer] ? {
2103
- "aria-activedescendant": `vs${this.uid}__option-${this.typeAheadPointer}`
2104
- } : {}),
2105
- events: {
2106
- compositionstart: () => this.isComposing = !0,
2107
- compositionend: () => this.isComposing = !1,
2108
- keydown: this.onSearchKeyDown,
2109
- blur: this.onSearchBlur,
2110
- focus: this.onSearchFocus,
2111
- input: (t) => this.search = t.target.value
2112
- }
2113
- },
2114
- spinner: {
2115
- loading: this.mutableLoading
2116
- },
2117
- noOptions: {
2118
- search: this.search,
2119
- loading: this.mutableLoading,
2120
- searching: this.searching
2121
- },
2122
- openIndicator: {
2123
- attributes: {
2124
- ref: "openIndicator",
2125
- role: "presentation",
2126
- class: "vs__open-indicator"
2127
- }
2128
- },
2129
- listHeader: e,
2130
- listFooter: e,
2131
- header: Le(Q({}, e), { deselect: this.deselect }),
2132
- footer: Le(Q({}, e), { deselect: this.deselect })
2133
- };
2134
- },
2135
- childComponents() {
2136
- return Q(Q({}, Oe), this.components);
2137
- },
2138
- stateClasses() {
2139
- return {
2140
- "vs--open": this.dropdownOpen,
2141
- "vs--single": !this.multiple,
2142
- "vs--multiple": this.multiple,
2143
- "vs--searching": this.searching && !this.noDrop,
2144
- "vs--searchable": this.searchable && !this.noDrop,
2145
- "vs--unsearchable": !this.searchable,
2146
- "vs--loading": this.mutableLoading,
2147
- "vs--disabled": this.disabled
2148
- };
2149
- },
2150
- searching() {
2151
- return !!this.search;
2152
- },
2153
- dropdownOpen() {
2154
- return this.dropdownShouldOpen(this);
2155
- },
2156
- searchPlaceholder() {
2157
- return this.isValueEmpty && this.placeholder ? this.placeholder : void 0;
2158
- },
2159
- filteredOptions() {
2160
- const e = [].concat(this.optionList);
2161
- if (!this.filterable && !this.taggable)
2162
- return e;
2163
- const t = this.search.length ? this.filter(e, this.search, this) : e;
2164
- if (this.taggable && this.search.length) {
2165
- const s = this.createOption(this.search);
2166
- this.optionExists(s) || t.unshift(s);
2167
- }
2168
- return t;
2169
- },
2170
- isValueEmpty() {
2171
- return this.selectedValue.length === 0;
2172
- },
2173
- showClearButton() {
2174
- return !this.multiple && this.clearable && !this.open && !this.isValueEmpty;
2175
- }
2176
- },
2177
- watch: {
2178
- options(e, t) {
2179
- const s = () => typeof this.resetOnOptionsChange == "function" ? this.resetOnOptionsChange(e, t, this.selectedValue) : this.resetOnOptionsChange;
2180
- !this.taggable && s() && this.clearSelection(), this.modelValue && this.isTrackingValues && this.setInternalValueFromOptions(this.modelValue);
2181
- },
2182
- modelValue: {
2183
- immediate: !0,
2184
- handler(e) {
2185
- this.isTrackingValues && this.setInternalValueFromOptions(e);
2186
- }
2187
- },
2188
- multiple() {
2189
- this.clearSelection();
2190
- },
2191
- open(e) {
2192
- this.$emit(e ? "open" : "close");
2193
- }
2194
- },
2195
- created() {
2196
- this.mutableLoading = this.loading;
2197
- },
2198
- methods: {
2199
- setInternalValueFromOptions(e) {
2200
- Array.isArray(e) ? this.$data._value = e.map((t) => this.findOptionFromReducedValue(t)) : this.$data._value = this.findOptionFromReducedValue(e);
2201
- },
2202
- select(e) {
2203
- this.$emit("option:selecting", e), this.isOptionSelected(e) ? this.deselectFromDropdown && (this.clearable || this.multiple && this.selectedValue.length > 1) && this.deselect(e) : (this.taggable && !this.optionExists(e) && (this.$emit("option:created", e), this.pushTag(e)), this.multiple && (e = this.selectedValue.concat(e)), this.updateValue(e), this.$emit("option:selected", e)), this.onAfterSelect(e);
2204
- },
2205
- deselect(e) {
2206
- this.$emit("option:deselecting", e), this.updateValue(this.selectedValue.filter((t) => !this.optionComparator(t, e))), this.$emit("option:deselected", e);
2207
- },
2208
- clearSelection() {
2209
- this.updateValue(this.multiple ? [] : null);
2210
- },
2211
- onAfterSelect(e) {
2212
- this.closeOnSelect && (this.open = !this.open, this.searchEl.blur()), this.clearSearchOnSelect && (this.search = "");
2213
- },
2214
- updateValue(e) {
2215
- typeof this.modelValue > "u" && (this.$data._value = e), e !== null && (Array.isArray(e) ? e = e.map((t) => this.reduce(t)) : e = this.reduce(e)), this.$emit("update:modelValue", e);
2216
- },
2217
- toggleDropdown(e) {
2218
- const t = e.target !== this.searchEl;
2219
- t && e.preventDefault();
2220
- const s = [
2221
- ...this.deselectButtons || [],
2222
- this.$refs.clearButton
2223
- ];
2224
- if (this.searchEl === void 0 || s.filter(Boolean).some((o) => o.contains(e.target) || o === e.target)) {
2225
- e.preventDefault();
2226
- return;
2227
- }
2228
- this.open && t ? this.searchEl.blur() : this.disabled || (this.open = !0, this.searchEl.focus());
2229
- },
2230
- isOptionSelected(e) {
2231
- return this.selectedValue.some((t) => this.optionComparator(t, e));
2232
- },
2233
- isOptionDeselectable(e) {
2234
- return this.isOptionSelected(e) && this.deselectFromDropdown;
2235
- },
2236
- optionComparator(e, t) {
2237
- return this.getOptionKey(e) === this.getOptionKey(t);
2238
- },
2239
- findOptionFromReducedValue(e) {
2240
- const t = (o) => JSON.stringify(this.reduce(o)) === JSON.stringify(e), s = [...this.options, ...this.pushedTags].filter(t);
2241
- return s.length === 1 ? s[0] : s.find((o) => this.optionComparator(o, this.$data._value)) || e;
2242
- },
2243
- closeSearchOptions() {
2244
- this.open = !1, this.$emit("search:blur");
2245
- },
2246
- maybeDeleteValue() {
2247
- if (!this.searchEl.value.length && this.selectedValue && this.selectedValue.length && this.clearable) {
2248
- let e = null;
2249
- this.multiple && (e = [
2250
- ...this.selectedValue.slice(0, this.selectedValue.length - 1)
2251
- ]), this.updateValue(e);
2252
- }
2253
- },
2254
- optionExists(e) {
2255
- return this.optionList.some((t) => this.optionComparator(t, e));
2256
- },
2257
- normalizeOptionForSlot(e) {
2258
- return typeof e == "object" ? e : { [this.label]: e };
2259
- },
2260
- pushTag(e) {
2261
- this.pushedTags.push(e);
2262
- },
2263
- onEscape() {
2264
- this.search.length ? this.search = "" : this.searchEl.blur();
2265
- },
2266
- onSearchBlur() {
2267
- if (this.mousedown && !this.searching)
2268
- this.mousedown = !1;
2269
- else {
2270
- const { clearSearchOnSelect: e, multiple: t } = this;
2271
- this.clearSearchOnBlur({ clearSearchOnSelect: e, multiple: t }) && (this.search = ""), this.closeSearchOptions();
2272
- return;
2273
- }
2274
- if (this.search.length === 0 && this.options.length === 0) {
2275
- this.closeSearchOptions();
2276
- return;
2277
- }
2278
- },
2279
- onSearchFocus() {
2280
- this.open = !0, this.$emit("search:focus");
2281
- },
2282
- onMousedown() {
2283
- this.mousedown = !0;
2284
- },
2285
- onMouseUp() {
2286
- this.mousedown = !1;
2287
- },
2288
- onSearchKeyDown(e) {
2289
- const t = (r) => (r.preventDefault(), !this.isComposing && this.typeAheadSelect()), s = {
2290
- 8: (r) => this.maybeDeleteValue(),
2291
- 9: (r) => this.onTab(),
2292
- 27: (r) => this.onEscape(),
2293
- 38: (r) => (r.preventDefault(), this.typeAheadUp()),
2294
- 40: (r) => (r.preventDefault(), this.typeAheadDown())
2295
- };
2296
- this.selectOnKeyCodes.forEach((r) => s[r] = t);
2297
- const o = this.mapKeydown(s, this);
2298
- if (typeof o[e.keyCode] == "function")
2299
- return o[e.keyCode](e);
2300
- }
2301
- }
2302
- }, $o = ["dir"], xo = ["id", "aria-expanded", "aria-owns"], ko = {
2303
- ref: "selectedOptions",
2304
- class: "vs__selected-options"
2305
- }, Lo = ["disabled", "title", "aria-label", "onClick"], Oo = {
2306
- ref: "actions",
2307
- class: "vs__actions"
2308
- }, So = ["disabled"], zo = { class: "vs__spinner" }, Po = ["id"], Mo = ["id", "aria-selected", "onMouseover", "onClick"], Vo = {
2309
- key: 0,
2310
- class: "vs__no-options"
2311
- }, Do = /* @__PURE__ */ N(" Sorry, no matching options. "), Ao = ["id"];
2312
- function Io(e, t, s, o, r, l) {
2313
- const p = Ie("append-to-body");
2314
- return a(), i("div", {
2315
- dir: s.dir,
2316
- class: te(["v-select", l.stateClasses])
2317
- }, [
2318
- M(e.$slots, "header", A(B(l.scope.header))),
2319
- n("div", {
2320
- id: `vs${s.uid}__combobox`,
2321
- ref: "toggle",
2322
- class: "vs__dropdown-toggle",
2323
- role: "combobox",
2324
- "aria-expanded": l.dropdownOpen.toString(),
2325
- "aria-owns": `vs${s.uid}__listbox`,
2326
- "aria-label": "Search for option",
2327
- onMousedown: t[1] || (t[1] = (d) => l.toggleDropdown(d))
2328
- }, [
2329
- n("div", ko, [
2330
- (a(!0), i(k, null, L(l.selectedValue, (d, c) => M(e.$slots, "selected-option-container", {
2331
- option: l.normalizeOptionForSlot(d),
2332
- deselect: l.deselect,
2333
- multiple: s.multiple,
2334
- disabled: s.disabled
2335
- }, () => [
2336
- (a(), i("span", {
2337
- key: s.getOptionKey(d),
2338
- class: "vs__selected"
2339
- }, [
2340
- M(e.$slots, "selected-option", A(B(l.normalizeOptionForSlot(d))), () => [
2341
- N(f(s.getOptionLabel(d)), 1)
2342
- ]),
2343
- s.multiple ? (a(), i("button", {
2344
- key: 0,
2345
- ref_for: !0,
2346
- ref: (u) => r.deselectButtons[c] = u,
2347
- disabled: s.disabled,
2348
- type: "button",
2349
- class: "vs__deselect",
2350
- title: `Deselect ${s.getOptionLabel(d)}`,
2351
- "aria-label": `Deselect ${s.getOptionLabel(d)}`,
2352
- onClick: (u) => l.deselect(d)
2353
- }, [
2354
- (a(), y(ne(l.childComponents.Deselect)))
2355
- ], 8, Lo)) : g("", !0)
2356
- ]))
2357
- ])), 256)),
2358
- M(e.$slots, "search", A(B(l.scope.search)), () => [
2359
- n("input", ve({ class: "vs__search" }, l.scope.search.attributes, Be(l.scope.search.events)), null, 16)
2360
- ])
2361
- ], 512),
2362
- n("div", Oo, [
2363
- ae(n("button", {
2364
- ref: "clearButton",
2365
- disabled: s.disabled,
2366
- type: "button",
2367
- class: "vs__clear",
2368
- title: "Clear Selected",
2369
- "aria-label": "Clear Selected",
2370
- onClick: t[0] || (t[0] = (...d) => l.clearSelection && l.clearSelection(...d))
2371
- }, [
2372
- (a(), y(ne(l.childComponents.Deselect)))
2373
- ], 8, So), [
2374
- [ye, l.showClearButton]
2375
- ]),
2376
- M(e.$slots, "open-indicator", A(B(l.scope.openIndicator)), () => [
2377
- s.noDrop ? g("", !0) : (a(), y(ne(l.childComponents.OpenIndicator), A(ve({ key: 0 }, l.scope.openIndicator.attributes)), null, 16))
2378
- ]),
2379
- M(e.$slots, "spinner", A(B(l.scope.spinner)), () => [
2380
- ae(n("div", zo, "Loading...", 512), [
2381
- [ye, e.mutableLoading]
2382
- ])
2383
- ])
2384
- ], 512)
2385
- ], 40, xo),
2386
- h(R, { name: s.transition }, {
2387
- default: O(() => [
2388
- l.dropdownOpen ? ae((a(), i("ul", {
2389
- id: `vs${s.uid}__listbox`,
2390
- ref: "dropdownMenu",
2391
- key: `vs${s.uid}__listbox`,
2392
- class: "vs__dropdown-menu",
2393
- role: "listbox",
2394
- tabindex: "-1",
2395
- onMousedown: t[2] || (t[2] = re((...d) => l.onMousedown && l.onMousedown(...d), ["prevent"])),
2396
- onMouseup: t[3] || (t[3] = (...d) => l.onMouseUp && l.onMouseUp(...d))
2397
- }, [
2398
- M(e.$slots, "list-header", A(B(l.scope.listHeader))),
2399
- (a(!0), i(k, null, L(l.filteredOptions, (d, c) => (a(), i("li", {
2400
- id: `vs${s.uid}__option-${c}`,
2401
- key: s.getOptionKey(d),
2402
- role: "option",
2403
- class: te(["vs__dropdown-option", {
2404
- "vs__dropdown-option--deselect": l.isOptionDeselectable(d) && c === e.typeAheadPointer,
2405
- "vs__dropdown-option--selected": l.isOptionSelected(d),
2406
- "vs__dropdown-option--highlight": c === e.typeAheadPointer,
2407
- "vs__dropdown-option--disabled": !s.selectable(d)
2408
- }]),
2409
- "aria-selected": c === e.typeAheadPointer ? !0 : null,
2410
- onMouseover: (u) => s.selectable(d) ? e.typeAheadPointer = c : null,
2411
- onClick: re((u) => s.selectable(d) ? l.select(d) : null, ["prevent", "stop"])
2412
- }, [
2413
- M(e.$slots, "option", A(B(l.normalizeOptionForSlot(d))), () => [
2414
- N(f(s.getOptionLabel(d)), 1)
2415
- ])
2416
- ], 42, Mo))), 128)),
2417
- l.filteredOptions.length === 0 ? (a(), i("li", Vo, [
2418
- M(e.$slots, "no-options", A(B(l.scope.noOptions)), () => [
2419
- Do
2420
- ])
2421
- ])) : g("", !0),
2422
- M(e.$slots, "list-footer", A(B(l.scope.listFooter)))
2423
- ], 40, Po)), [
2424
- [p]
2425
- ]) : (a(), i("ul", {
2426
- key: 1,
2427
- id: `vs${s.uid}__listbox`,
2428
- role: "listbox",
2429
- style: { display: "none", visibility: "hidden" }
2430
- }, null, 8, Ao))
2431
- ]),
2432
- _: 3
2433
- }, 8, ["name"]),
2434
- M(e.$slots, "footer", A(B(l.scope.footer)))
2435
- ], 10, $o);
2436
- }
2437
- const Ae = /* @__PURE__ */ be(Co, [["render", Io]]);
2438
- const Bo = { class: "w-100" }, To = { class: "flex" }, jo = { class: "mn-regular" }, Uo = { class: "flex-column flex-wrap block" }, Eo = {
2439
- key: 0,
2440
- class: "w-100"
2441
- }, Fo = { class: "w-100 flex-center flex-nowrap flex" }, Ho = { class: "mn-r-regular w-100" }, Zo = ["onClick"], qo = {
2442
- key: 0,
2443
- class: "mn-t-small mn-small w-100"
2444
- }, fl = {
2445
- __name: "EditArray",
2446
- props: {
2447
- name: Object,
2448
- items: Array
2449
- },
2450
- emits: ["add", "remove"],
2451
- setup(e, { emit: t }) {
2452
- Z(), F();
2453
- let s = ie([]);
2454
- Te(s);
2455
- const o = b(null), r = b(null), l = b(null);
2456
- V(() => {
2457
- if (o.value === null || l.value === null || l.value === "")
2458
- return !0;
2459
- if (o.value.modifications.length > 0)
2460
- return r.value === null;
2461
- });
2462
- function p(d) {
2463
- store.commit("leftovers/deleteItemFromLeftover", d);
2464
- }
2465
- return (d, c) => (a(), i("div", Bo, [
2466
- n("div", To, [
2467
- n("h3", jo, f(e.name), 1)
2468
- ]),
2469
- n("ul", Uo, [
2470
- e.items.length < 1 ? (a(), i("span", Eo, "Вы еще не добавили позиции")) : g("", !0),
2471
- (a(!0), i(k, null, L(e.items, (u, m) => (a(), i("li", {
2472
- key: u._id,
2473
- class: "w-100"
2474
- }, [
2475
- n("div", Fo, [
2476
- n("span", Ho, f(u.name), 1),
2477
- n("a", {
2478
- class: "w-20 button",
2479
- onClick: (w) => p(u)
2480
- }, "Удалить", 8, Zo)
2481
- ]),
2482
- m != e.items.length - 1 ? (a(), i("hr", qo)) : g("", !0)
2483
- ]))), 128))
2484
- ])
2485
- ]));
2486
- }
2487
- };
2488
- const No = { class: "br-grey radius-small mn-small" }, Ro = {
2489
- key: 1,
2490
- class: "pd-small br-grey br-1px br-solid"
2491
- }, Ko = ["disabled"], Jo = {
2492
- __name: "DepartmentMemberModify",
2493
- props: {
2494
- isPopupOpen: Boolean,
2495
- department: Number,
2496
- departments: Array,
2497
- maindepartment: Object,
2498
- alldepartments: Array
2499
- },
2500
- emits: ["callback", "remove"],
2501
- setup(e, { emit: t }) {
2502
- const s = e, o = b({
2503
- subdepartment: null
2504
- });
2505
- s.department !== null && (o.value = s.departments[s.department]);
2506
- function r(c, u, m) {
2507
- return c.filter((w) => !(u.some((P) => P._id === w._id) || m._id === w._id));
2508
- }
2509
- const l = V(() => r(s.alldepartments, s.departments, s.maindepartment));
2510
- async function p() {
2511
- s.departments.push(o.value.subdepartment), t("callback");
2512
- }
2513
- async function d() {
2514
- s.departments.splice(s.department, 1), t("callback");
2515
- }
2516
- return (c, u) => (a(), i("div", null, [
2517
- n("div", No, [
2518
- s.department === null ? (a(), y($(Ae), {
2519
- key: 0,
2520
- modelValue: o.value.subdepartment,
2521
- "onUpdate:modelValue": u[0] || (u[0] = (m) => o.value.subdepartment = m),
2522
- options: $(l),
2523
- "get-option-label": (m) => m.name,
2524
- class: "w-100 mn-small"
2525
- }, null, 8, ["modelValue", "options", "get-option-label"])) : (a(), i("div", Ro, f(o.value.name ? o.value.name : "Безымянный"), 1))
2526
- ]),
2527
- s.department === null ? (a(), i("button", {
2528
- key: 0,
2529
- disabled: !o.value.subdepartment,
2530
- onClick: p,
2531
- class: "w-100 button bg-second t-white"
2532
- }, " Добавить отдел ", 8, Ko)) : g("", !0),
2533
- s.department !== null ? (a(), i("button", {
2534
- key: 1,
2535
- onClick: d,
2536
- class: "w-100 button bg-fourth t-white"
2537
- }, " Удалить отдел ")) : g("", !0)
2538
- ]));
2539
- }
2540
- }, gl = /* @__PURE__ */ S(Jo, [["__scopeId", "data-v-21f393e1"]]);
2541
- const Wo = { class: "br-grey radius-small mn-small" }, Yo = {
2542
- key: 1,
2543
- class: "pd-small br-grey br-1px br-solid"
2544
- }, Go = ["disabled"], Qo = {
2545
- __name: "DepartmentSubDepartmentModify",
2546
- props: {
2547
- isPopupOpen: Boolean,
2548
- department: Number,
2549
- departments: Array,
2550
- maindepartment: Object,
2551
- alldepartments: Array
2552
- },
2553
- emits: ["callback", "remove"],
2554
- setup(e, { emit: t }) {
2555
- const s = e, o = b({
2556
- subdepartment: null
2557
- });
2558
- s.department !== null && (o.value = s.departments[s.department]);
2559
- function r(c, u, m) {
2560
- return c.filter((w) => !(u.some((P) => P._id === w._id) || m._id === w._id));
2561
- }
2562
- const l = V(() => r(s.alldepartments, s.departments, s.maindepartment));
2563
- async function p() {
2564
- s.departments.push(o.value.subdepartment), t("callback");
2565
- }
2566
- async function d() {
2567
- s.departments.splice(s.department, 1), t("callback");
2568
- }
2569
- return (c, u) => (a(), i("div", null, [
2570
- n("div", Wo, [
2571
- s.department === null ? (a(), y($(Ae), {
2572
- key: 0,
2573
- modelValue: o.value.subdepartment,
2574
- "onUpdate:modelValue": u[0] || (u[0] = (m) => o.value.subdepartment = m),
2575
- options: $(l),
2576
- "get-option-label": (m) => m.name,
2577
- class: "w-100 mn-small"
2578
- }, null, 8, ["modelValue", "options", "get-option-label"])) : (a(), i("div", Yo, f(o.value.name ? o.value.name : "Безымянный"), 1))
2579
- ]),
2580
- s.department === null ? (a(), i("button", {
2581
- key: 0,
2582
- disabled: !o.value.subdepartment,
2583
- onClick: p,
2584
- class: "w-100 button bg-second t-white"
2585
- }, " Добавить отдел ", 8, Go)) : g("", !0),
2586
- s.department !== null ? (a(), i("button", {
2587
- key: 1,
2588
- onClick: d,
2589
- class: "w-100 button bg-fourth t-white"
2590
- }, " Удалить отдел ")) : g("", !0)
2591
- ]));
2592
- }
2593
- }, bl = /* @__PURE__ */ S(Qo, [["__scopeId", "data-v-d3c6f191"]]);
2594
- const se = (e) => (me("data-v-195322bd"), e = e(), he(), e), Xo = { class: "for-transition w-100" }, ei = { class: "pd-b-zero pd-t-zero pd-thin" }, ti = { class: "pd-thin" }, si = { class: "flex-nowrap flex bg-grey pd-medium radius-big" }, ni = {
2595
- key: 0,
2596
- class: "mn-r-auto"
2597
- }, ai = {
2598
- key: 1,
2599
- class: "mn-r-auto"
2600
- }, oi = { class: "flex-nowrap flex pd-thin" }, ii = { class: "pd-b-zero pd-t-zero pd-thin cols-2 gap-thin" }, li = { class: "flex-stretch flex-column flex" }, ri = { class: "mn-thin bg-grey pd-medium o-hidden radius-big" }, di = /* @__PURE__ */ se(() => /* @__PURE__ */ n("h3", { class: "mn-semi" }, "Profile", -1)), ci = { class: "radius-small flex-nowrap flex" }, ui = { class: "w-100 flex-child-grow-1 flex-child" }, pi = { class: "bg-grey pd-medium o-hidden radius-big" }, mi = /* @__PURE__ */ se(() => /* @__PURE__ */ n("h3", { class: "mn-semi" }, "Details", -1)), hi = /* @__PURE__ */ se(() => /* @__PURE__ */ n("p", { class: "p-medium mn-small" }, "Please the available delivery options:", -1)), _i = { class: "mn-medium flex-nowrap flex" }, fi = /* @__PURE__ */ se(() => /* @__PURE__ */ n("p", { class: "p-medium mn-small" }, "Please select the available payment methods:", -1)), gi = { class: "flex-nowrap flex" }, bi = { class: "bg-grey pd-medium o-hidden radius-big" }, vi = /* @__PURE__ */ se(() => /* @__PURE__ */ n("h3", { class: "mn-semi" }, "Location", -1)), yi = /* @__PURE__ */ se(() => /* @__PURE__ */ n("p", { class: "mn-small p-medium" }, "Or choose on map:", -1)), wi = { class: "flex-nowrap flex pd-thin" }, Ci = {
2601
- __name: "DepartmentEdit",
2602
- setup(e) {
2603
- const t = Z(), s = F();
2604
- b("details"), b(!1);
2605
- async function o() {
2606
- s.params.department && await ge.read(s.params.department), b(Ze.memberships), await J.read(s.params._id), s.params.department && await J.readOne(s.params.department);
2607
- }
2608
- o(), b(_.department.members), b(!1), b(null), b(!1), b(null);
2609
- async function r() {
2610
- s.params.department && await J.update(
2611
- s.params._id,
2612
- _.department
2613
- ), s.params.department || await J.create(
2614
- s.params._id,
2615
- _.department
2616
- );
2617
- }
2618
- function l() {
2619
- t.replace({ name: "Department", params: { _id: s.params._id, department: _.department._id } });
2620
- }
2621
- async function p() {
2622
- await J.delete(
2623
- s.params._id,
2624
- _.department
2625
- );
2626
- }
2627
- return (d, c) => (a(), i("div", Xo, [
2628
- n("div", ei, [
2629
- h(ot, { class: "pd-medium bg-grey radius-big" })
2630
- ]),
2631
- n("div", ti, [
2632
- n("header", si, [
2633
- $(s).params.department ? (a(), i("h1", ni, "Edit Spot")) : (a(), i("h1", ai, "Create Spot")),
2634
- n("section", oi, [
2635
- h(ce, {
2636
- submit: r,
2637
- callback: l
2638
- }, {
2639
- default: O(() => [
2640
- N("Save Spot")
2641
- ]),
2642
- _: 1
2643
- })
2644
- ])
2645
- ])
2646
- ]),
2647
- n("div", ii, [
2648
- n("div", li, [
2649
- n("div", ri, [
2650
- di,
2651
- n("div", ci, [
2652
- h(Pe, {
2653
- photo: _.department.profile.photo,
2654
- "onUpdate:photo": c[0] || (c[0] = (u) => _.department.profile.photo = u),
2655
- uploadPath: "organizations/" + _.department.name + "/avatars",
2656
- class: "w-8r aspect-1x1 o-hidden mn-r-small radius-extra"
2657
- }, null, 8, ["photo", "uploadPath"]),
2658
- n("div", ui, [
2659
- h(H, {
2660
- field: _.department.profile.name,
2661
- "onUpdate:field": c[1] || (c[1] = (u) => _.department.profile.name = u),
2662
- label: "Name",
2663
- placeholder: "Spot Name",
2664
- class: "mn-small bg-white radius-small pd-medium",
2665
- validation: d.organizationName
2666
- }, null, 8, ["field", "validation"]),
2667
- h(H, {
2668
- field: _.department.profile.description,
2669
- "onUpdate:field": c[2] || (c[2] = (u) => _.department.profile.description = u),
2670
- label: "Description",
2671
- placeholder: "Spot description (max 120 symbols)",
2672
- class: "bg-white radius-small pd-medium",
2673
- validation: d.organizationName
2674
- }, null, 8, ["field", "validation"])
2675
- ])
2676
- ])
2677
- ]),
2678
- n("div", pi, [
2679
- mi,
2680
- hi,
2681
- n("div", _i, [
2682
- h(Y, {
2683
- label: "Pickup",
2684
- name: "Delivery",
2685
- value: "pickup",
2686
- class: "w-100 mn-r-small bg-white radius-small pd-small",
2687
- radio: _.department.delivery
2688
- }, null, 8, ["radio"]),
2689
- h(Y, {
2690
- label: "Delivery",
2691
- name: "Delivery",
2692
- value: "courier",
2693
- class: "w-100 mn-r-small bg-white radius-small pd-small",
2694
- radio: _.department.delivery
2695
- }, null, 8, ["radio"]),
2696
- h(Y, {
2697
- label: "Post",
2698
- name: "Delivery",
2699
- value: "post",
2700
- class: "w-100 bg-white radius-small pd-small",
2701
- radio: _.department.delivery
2702
- }, null, 8, ["radio"])
2703
- ]),
2704
- fi,
2705
- n("div", gi, [
2706
- h(Y, {
2707
- label: "Cash",
2708
- name: "Payment",
2709
- value: "cash",
2710
- class: "w-100 mn-r-small bg-white radius-small pd-small",
2711
- radio: _.department.payment
2712
- }, null, 8, ["radio"]),
2713
- h(Y, {
2714
- label: "Bank Transfer",
2715
- name: "Payment",
2716
- value: "bank",
2717
- class: "w-100 mn-r-small bg-white radius-small pd-small",
2718
- radio: _.department.payment
2719
- }, null, 8, ["radio"]),
2720
- h(Y, {
2721
- label: "Crypto",
2722
- name: "Payment",
2723
- value: "crypto",
2724
- class: "w-100 bg-white radius-small pd-small",
2725
- radio: _.department.payment
2726
- }, null, 8, ["radio"])
2727
- ])
2728
- ])
2729
- ]),
2730
- n("div", bi, [
2731
- vi,
2732
- h(qa, {
2733
- apiKey: "AIzaSyDDR6WgYB7XMt7yTDDzQNEdF_gTdUiq8dI",
2734
- address: _.department.address,
2735
- location: _.department.location,
2736
- label: "Address",
2737
- placeholder: "Enter delivery address",
2738
- class: "bg-white radius-small pd-small mn-small",
2739
- "onUpdate:location": c[3] || (c[3] = (u) => {
2740
- _.department.location = u;
2741
- }),
2742
- "onUpdate:address": c[4] || (c[4] = (u) => {
2743
- _.department.address = u;
2744
- })
2745
- }, null, 8, ["address", "location"]),
2746
- yi,
2747
- h(Ya, {
2748
- address: _.department.address,
2749
- location: _.department.location,
2750
- apiKey: "AIzaSyDDR6WgYB7XMt7yTDDzQNEdF_gTdUiq8dI",
2751
- class: "radius-big o-hidden",
2752
- "onUpdate:location": c[5] || (c[5] = (u) => {
2753
- _.department.location = u;
2754
- }),
2755
- "onUpdate:address": c[6] || (c[6] = (u) => {
2756
- _.department.address = u;
2757
- })
2758
- }, null, 8, ["address", "location"])
2759
- ])
2760
- ]),
2761
- n("section", wi, [
2762
- h(ce, {
2763
- submit: p,
2764
- callback: d.redirectToDash,
2765
- class: "bg-grey"
2766
- }, {
2767
- default: O(() => [
2768
- N("Delete Spot")
2769
- ]),
2770
- _: 1
2771
- }, 8, ["callback"])
2772
- ])
2773
- ]));
2774
- }
2775
- }, $i = /* @__PURE__ */ S(Ci, [["__scopeId", "data-v-195322bd"]]), Se = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2776
- __proto__: null,
2777
- default: $i
2778
- }, Symbol.toStringTag, { value: "Module" })), xi = { class: "unit" }, ki = { class: "unit-details" }, Li = { key: 0 }, Oi = { class: "subunits" }, vl = {
2779
- __name: "Unit",
2780
- props: {
2781
- unit: {
2782
- type: Object,
2783
- required: !0
2784
- },
2785
- editMode: {
2786
- type: Boolean,
2787
- required: !0
2788
- }
2789
- },
2790
- setup(e) {
2791
- const t = e, s = b({ ...t.unit });
2792
- E(t.unit, () => {
2793
- s.value = { ...t.unit };
2794
- });
2795
- async function o() {
2796
- emit("unit-updated", s.value);
2797
- }
2798
- async function r() {
2799
- emit("subunit-added", t.unit._id);
2800
- }
2801
- return (l, p) => {
2802
- const d = ue("unit-component");
2803
- return a(), i("div", xi, [
2804
- n("div", ki, [
2805
- n("h3", null, f(e.unit.name), 1),
2806
- n("p", null, f(e.unit.description), 1),
2807
- e.editMode ? (a(), i("div", Li, [
2808
- ae(n("input", {
2809
- "onUpdate:modelValue": p[0] || (p[0] = (c) => s.value.name = c),
2810
- placeholder: "Название отдела"
2811
- }, null, 512), [
2812
- [we, s.value.name]
2813
- ]),
2814
- ae(n("input", {
2815
- "onUpdate:modelValue": p[1] || (p[1] = (c) => s.value.description = c),
2816
- placeholder: "Описание отдела"
2817
- }, null, 512), [
2818
- [we, s.value.description]
2819
- ]),
2820
- n("button", { onClick: o }, "Сохранить"),
2821
- n("button", { onClick: r }, "Добавить подотдел")
2822
- ])) : g("", !0)
2823
- ]),
2824
- n("div", Oi, [
2825
- (a(!0), i(k, null, L(e.unit.subunits, (c, u) => (a(), y(d, {
2826
- key: u,
2827
- unit: c,
2828
- "edit-mode": e.editMode
2829
- }, null, 8, ["unit", "edit-mode"]))), 128))
2830
- ])
2831
- ]);
2832
- };
2833
- }
2834
- };
2835
- const Si = { class: "br-grey radius-small mn-small" }, zi = {
2836
- __name: "Places",
2837
- props: {
2838
- isPopupOpen: Boolean,
2839
- place: Number,
2840
- places: Array
2841
- },
2842
- emits: ["callback"],
2843
- setup(e, { emit: t }) {
2844
- const s = e, o = b({
2845
- logo: "",
2846
- name: "",
2847
- address: ""
2848
- });
2849
- s.place !== null && (o.value = s.places[s.place]);
2850
- const r = b(null);
2851
- async function l() {
2852
- try {
2853
- await Je(
2854
- r,
2855
- We,
2856
- o.value.name,
2857
- "Некорректное название"
2858
- );
2859
- } catch {
2860
- throw new Error();
2861
- }
2862
- s.place !== null ? (s.places[s.place] = o.value, t("callback")) : (s.places.push(o.value), t("callback"));
2863
- }
2864
- return (p, d) => (a(), i("div", null, [
2865
- n("div", Si, [
2866
- h(Me, {
2867
- options: [
2868
- { name: "Кафе", value: "cafe" },
2869
- { name: "Бар", value: "bar" },
2870
- { name: "Ресторан", value: "restaraunt" },
2871
- { name: "Пиццерия", value: "pizzeria" },
2872
- { name: "Ночной клуб", value: "night-club" },
2873
- { name: "Шаверма", value: "shaverma" },
2874
- { name: "Кофейня", value: "coffee" }
2875
- ],
2876
- prop: o.value,
2877
- content: "type",
2878
- label: "Тип",
2879
- placeholder: "Тип заведения",
2880
- size: "small"
2881
- }, null, 8, ["prop"]),
2882
- h(H, {
2883
- field: o.value.name,
2884
- "onUpdate:field": d[0] || (d[0] = (c) => o.value.name = c),
2885
- label: "Название",
2886
- validation: r.value,
2887
- placeholder: "Введите название места"
2888
- }, null, 8, ["field", "validation"]),
2889
- h(H, {
2890
- field: o.value.address,
2891
- "onUpdate:field": d[1] || (d[1] = (c) => o.value.address = c),
2892
- label: "Адрес",
2893
- validation: r.value,
2894
- placeholder: "Введите адрес места"
2895
- }, null, 8, ["field", "validation"]),
2896
- h(H, {
2897
- field: o.value.phone,
2898
- "onUpdate:field": d[2] || (d[2] = (c) => o.value.phone = c),
2899
- label: "Телефон",
2900
- validation: r.value,
2901
- placeholder: "Введите телефон места"
2902
- }, null, 8, ["field", "validation"])
2903
- ]),
2904
- n("button", {
2905
- onClick: l,
2906
- class: "w-100 button bg-second t-white"
2907
- }, f(s.place !== null ? "Редактировать заведение" : "Добавить заведение"), 1)
2908
- ]));
2909
- }
2910
- }, yl = /* @__PURE__ */ S(zi, [["__scopeId", "data-v-de5143c5"]]);
2911
- const Pi = (e) => (me("data-v-20739d92"), e = e(), he(), e), Mi = { class: "documents" }, Vi = /* @__PURE__ */ Pi(() => /* @__PURE__ */ n("h3", { class: "mn-small" }, "Список документов", -1)), Di = { class: "mn-big cols-4" }, Ai = ["onClick"], Ii = { class: "mn-small" }, Bi = { class: "t-semi t-transp radius-small" }, Ti = {
2912
- __name: "Documents",
2913
- setup(e) {
2914
- Z(), F();
2915
- let t = [{
2916
- name: "Паспорт",
2917
- status: "Не добавлен",
2918
- inputs: [{
2919
- type: "text",
2920
- name: "Номер и серия"
2921
- }, {
2922
- type: "text",
2923
- name: "Место выдачи"
2924
- }, {
2925
- type: "text",
2926
- name: "Дата выдачи"
2927
- }]
2928
- }, {
2929
- name: "ИНН",
2930
- status: "Не добавлен",
2931
- inputs: [{
2932
- type: "text",
2933
- name: "Дата регистрации"
2934
- }]
2935
- }, {
2936
- name: "СНИЛС",
2937
- status: "Не добавлен",
2938
- inputs: [{
2939
- type: "text",
2940
- name: "Дата регистрации"
2941
- }]
2942
- }, {
2943
- name: "Военный билет",
2944
- status: "Не добавлен",
2945
- inputs: [{
2946
- type: "text",
2947
- name: "Дата регистрации"
2948
- }]
2949
- }];
2950
- const s = b(!1), o = b(null), r = (d) => {
2951
- o.value = d, s.value = !0;
2952
- }, l = () => {
2953
- s.value = !1;
2954
- }, p = () => {
2955
- l();
2956
- };
2957
- return de(() => {
2958
- }), (d, c) => {
2959
- const u = ue("Popup");
2960
- return a(), i("div", Mi, [
2961
- Vi,
2962
- n("div", Di, [
2963
- (a(!0), i(k, null, L($(t), (m, w) => (a(), i("div", {
2964
- key: w,
2965
- onClick: (P) => r(w),
2966
- class: "h-100 pd-medium bg-white radius-small"
2967
- }, [
2968
- n("h3", Ii, f(m.name), 1),
2969
- n("p", Bi, f(m.status), 1)
2970
- ], 8, Ai))), 128))
2971
- ]),
2972
- h(u, {
2973
- title: "Добавить документ",
2974
- onClosePopup: l,
2975
- isPopupOpen: s.value
2976
- }, {
2977
- default: O(() => [
2978
- (a(!0), i(k, null, L($(t)[o.value].inputs, (m) => (a(), i("div", {
2979
- key: m.name
2980
- }, [
2981
- h(H, {
2982
- field: m.value,
2983
- "onUpdate:field": (w) => m.value = w,
2984
- label: m.name,
2985
- _id: m.name,
2986
- placeholder: m.name,
2987
- class: "w-100"
2988
- }, null, 8, ["field", "onUpdate:field", "label", "_id", "placeholder"])
2989
- ]))), 128)),
2990
- n("button", {
2991
- onClick: p,
2992
- class: "w-100 mn-small button"
2993
- }, "Отправить на верификацию")
2994
- ]),
2995
- _: 1
2996
- }, 8, ["isPopupOpen"])
2997
- ]);
2998
- };
2999
- }
3000
- }, wl = /* @__PURE__ */ S(Ti, [["__scopeId", "data-v-20739d92"]]);
3001
- const ji = { class: "for-transition bg-white radius-big w-100" }, Ui = { class: "" }, Ei = {
3002
- key: 1,
3003
- class: "cols-1"
3004
- }, Cl = {
3005
- __name: "Organizations",
3006
- props: {
3007
- owner: {
3008
- type: String,
3009
- default: null
3010
- },
3011
- user: {
3012
- type: [String, Number],
3013
- default: null
3014
- },
3015
- onlyuser: {
3016
- type: [String, Number],
3017
- default: null
3018
- }
3019
- },
3020
- async setup(e) {
3021
- let t, s;
3022
- const o = e, r = b(null);
3023
- r.value = ([t, s] = W(() => q.read({ owner: o.owner, user: o.user, onlyuser: o.onlyuser })), t = await t, s(), t);
3024
- const l = Z(), p = F();
3025
- let d = p.query.tab ? p.query.tab : "details";
3026
- const c = b(d);
3027
- return p.query.tab = c.value, E(c, (u) => {
3028
- l.push({ query: { ...p.query, tab: u } });
3029
- }), (u, m) => (a(), i("div", ji, [
3030
- n("div", Ui, [
3031
- r.value < 1 ? (a(), y(fe, {
3032
- key: 0,
3033
- title: "You Haven't Joined Any Organization Yet",
3034
- description: "Weeder is all about community. Join an organization or maybe you want to create your own?",
3035
- action: "Create organization",
3036
- callback: u.a = () => u.$router.push("/app/organization/create/details")
3037
- }, null, 8, ["callback"])) : (a(), i("div", Ei, [
3038
- (a(!0), i(k, null, L(r.value, (w) => (a(), y(Ye, {
3039
- key: w._id,
3040
- organization: w,
3041
- user: z.user,
3042
- onUpdateMembership: u.handleMembershipUpdate,
3043
- class: te(["w-100", { "mn-r-small": u.index !== r.value.length - 1 }])
3044
- }, null, 8, ["organization", "user", "onUpdateMembership", "class"]))), 128))
3045
- ]))
3046
- ])
3047
- ]));
3048
- }
3049
- }, Fi = {};
3050
- function Hi(e, t) {
3051
- const s = ue("router-view");
3052
- return a(), y(s, null, {
3053
- default: O(({ Component: o, route: r }) => [
3054
- (a(), y(ne(o)))
3055
- ]),
3056
- _: 1
3057
- });
3058
- }
3059
- const Zi = /* @__PURE__ */ S(Fi, [["render", Hi]]), $l = [{
3060
- path: "organizations",
3061
- component: Zi,
3062
- meta: {
3063
- title: {
3064
- en: "Organizations",
3065
- ru: "Организации"
3066
- }
3067
- },
3068
- children: [{
3069
- path: ":_id",
3070
- name: "Organization",
3071
- meta: {
3072
- title: {
3073
- en: "Organization",
3074
- ru: "Организация"
3075
- }
3076
- },
3077
- component: () => Promise.resolve().then(() => Un)
3078
- }, {
3079
- path: "create",
3080
- name: "Create Organization",
3081
- title: {
3082
- en: "Create Organization",
3083
- ru: "Создать Организацию"
3084
- },
3085
- component: () => Promise.resolve().then(() => $e)
3086
- }, {
3087
- path: ":_id/edit",
3088
- name: "Organization Edit",
3089
- meta: {
3090
- title: {
3091
- en: "Edit Organization",
3092
- ru: "Редактировать Организацию"
3093
- }
3094
- },
3095
- component: () => Promise.resolve().then(() => $e)
3096
- }, {
3097
- path: ":_id/departments/create",
3098
- name: "Department Creation",
3099
- meta: {
3100
- title: "Создание отдела"
3101
- },
3102
- component: () => Promise.resolve().then(() => Se)
3103
- }, {
3104
- path: ":_id/departments/:deparment",
3105
- name: "Department",
3106
- meta: {
3107
- title: "Отдел"
3108
- },
3109
- component: () => Promise.resolve().then(() => ta)
3110
- }, {
3111
- path: ":_id/departments/:department/edit",
3112
- name: "Department Edit",
3113
- meta: {
3114
- title: "Редактирование отдела"
3115
- },
3116
- component: () => Promise.resolve().then(() => Se)
3117
- }, {
3118
- path: ":_id/products/:product",
3119
- name: "Product Organization",
3120
- meta: {
3121
- title: {
3122
- en: "Product",
3123
- ru: "Продукт"
3124
- }
3125
- },
3126
- component: () => import(
3127
- /* webpackChunkName: 'Product' */
3128
- "./Product-1724d88d.mjs"
3129
- )
3130
- }, {
3131
- path: ":_id/products/:product/edit",
3132
- name: "ProductEdit",
3133
- component: () => import(
3134
- /* webpackChunkName: 'ProductPageEdit' */
3135
- "./ProductEdit-57484f1e.mjs"
3136
- )
3137
- }, {
3138
- path: ":_id/products/add",
3139
- name: "AddProduct",
3140
- component: () => import(
3141
- /* webpackChunkName: 'ProductPageEdit' */
3142
- "./ProductEdit-57484f1e.mjs"
3143
- )
3144
- }]
3145
- }];
3146
- export {
3147
- pl as A,
3148
- $l as B,
3149
- $i as D,
3150
- yl as P,
3151
- De as U,
3152
- ot as _,
3153
- cl as a,
3154
- dl as b,
3155
- j as c,
3156
- jn as d,
3157
- ea as e,
3158
- hl as f,
3159
- xa as g,
3160
- _l as h,
3161
- fl as i,
3162
- vl as j,
3163
- Ve as k,
3164
- gl as l,
3165
- bl as m,
3166
- fe as n,
3167
- ll as o,
3168
- fs as p,
3169
- rl as q,
3170
- vn as r,
3171
- v as s,
3172
- ul as t,
3173
- Ls as u,
3174
- ml as v,
3175
- wl as w,
3176
- An as x,
3177
- dn as y,
3178
- Cl as z
3179
- };