@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,2898 +0,0 @@
1
- import { computed as k, openBlock as i, createElementBlock as a, unref as y, createCommentVNode as h, createElementVNode as t, ref as C, createTextVNode as Z, toDisplayString as m, createBlock as b, Transition as D, withCtx as $, Fragment as v, renderList as w, normalizeClass as B, createVNode as f, renderSlot as L, withAsyncContext as M, createStaticVNode as $e, onMounted as Ce, watch as N, pushScopeId as ue, popScopeId as pe, withModifiers as U, resolveDirective as xe, normalizeProps as z, guardReactiveProps as S, resolveDynamicComponent as K, mergeProps as ne, toHandlers as ke, withDirectives as q, vShow as ie, reactive as Le, toRefs as Oe, resolveComponent as Q, vModelText as oe, watchEffect as ze } from "vue";
2
- import { useRoute as T, useRouter as A } from "vue-router";
3
- import { _ as V, s as I, b as me } from "./auth-f81f3598.mjs";
4
- import { u as Se, a as Me, s as J, _ as X, C as Y } from "./Popup.vue_vue_type_style_index_0_lang-4f16907f.mjs";
5
- import { _ as he } from "./Tab-fcb73759.mjs";
6
- import { F as j } from "./Field-e839d9ca.mjs";
7
- import "./Select.vue_vue_type_style_index_0_scoped_a78dbba1_lang-4ed993c7.mjs";
8
- import { useI18n as _e } from "vue-i18n";
9
- import { B as Ae } from "./Footer.vue_vue_type_style_index_0_lang-39d2aa14.mjs";
10
- import { a as fe, s as P, b as ge, c as W } from "./Unit.vue_vue_type_style_index_0_scoped_d69a370a_lang-5531689e.mjs";
11
- import { a as Ve, s as Pe, S as G } from "./Breadcrumbs.vue_vue_type_style_index_0_lang-8cb3c120.mjs";
12
- import { _ as ee, a as F, s as x } from "./organizations-6c1450fa.mjs";
13
- import { _ as Be } from "./Feed-2f9a1922.mjs";
14
- import { v as De, a as Te } from "./inputs.validation-c473ebe7.mjs";
15
- import { a as be, s as Fe } from "./ButtonFollow-6cd2efa2.mjs";
16
- import { _ as je } from "./UploadImage-d33b293e.mjs";
17
- const Ze = { class: "mn-small w-min" }, Ie = ["href"], Ee = /* @__PURE__ */ t("span", { class: "t-semi uppercase" }, "Website", -1), qe = [
18
- Ee
19
- ], He = ["href"], Ue = /* @__PURE__ */ t("span", { class: "t-semi uppercase" }, "Phone", -1), Ne = [
20
- Ue
21
- ], Re = ["href"], Ke = /* @__PURE__ */ t("span", { class: "t-semi uppercase" }, "Email", -1), We = [
22
- Ke
23
- ], Je = ["href"], Ye = /* @__PURE__ */ t("span", { class: "t-semi uppercase" }, "Address", -1), Qe = [
24
- Ye
25
- ], Xe = {
26
- __name: "Contacts",
27
- props: {
28
- website: String,
29
- phone: String,
30
- email: String,
31
- address: String
32
- },
33
- setup(e) {
34
- const n = e, s = k(() => n.website ? !n.website.startsWith("http://") && !n.website.startsWith("https://") ? `http://${n.website}` : n.website : null), o = k(() => n.address ? encodeURIComponent(n.address) : null);
35
- return (r, d) => (i(), a("div", Ze, [
36
- y(s) ? (i(), a("a", {
37
- key: 0,
38
- href: y(s),
39
- target: "_blank",
40
- class: "w-100 br-2px br-solid br-grey radius-small pd-small flex-v-center flex-nowrap flex"
41
- }, qe, 8, Ie)) : h("", !0),
42
- n.phone ? (i(), a("a", {
43
- key: 1,
44
- href: `tel:${n.phone}`,
45
- class: "w-100 br-2px br-solid br-grey radius-small pd-small flex-v-center flex-nowrap flex"
46
- }, Ne, 8, He)) : h("", !0),
47
- n.email ? (i(), a("a", {
48
- key: 2,
49
- href: `mailto:${n.email}`,
50
- target: "_blank",
51
- class: "w-100 br-2px br-solid br-grey radius-small pd-small flex-v-center flex-nowrap flex"
52
- }, We, 8, Re)) : h("", !0),
53
- y(o) ? (i(), a("a", {
54
- key: 3,
55
- href: `https://www.google.com/maps/search/?api=1&query=${y(o)}`,
56
- target: "_blank",
57
- class: "w-100 br-2px br-solid br-grey radius-small pd-small flex-v-center flex-nowrap flex"
58
- }, Qe, 8, Je)) : h("", !0)
59
- ]));
60
- }
61
- }, Ge = {
62
- key: 0,
63
- class: "cursor-pointer t-second"
64
- }, et = {
65
- __name: "Text",
66
- props: {
67
- maxLen: { type: Number, required: !0 },
68
- text: { type: String, required: !0 }
69
- },
70
- setup(e) {
71
- const n = e, s = C(!1), o = k(() => n.text.slice(0, n.maxLen) + "..."), r = k(() => n.text), d = () => {
72
- s.value = !s.value;
73
- }, u = k(() => s.value ? r.value : o.value), l = k(() => n.text.length > n.maxLen), c = k(() => s.value ? "Hide" : "Show more");
74
- return (p, _) => (i(), a("span", {
75
- onClick: d,
76
- class: ""
77
- }, [
78
- Z(m(y(u)) + " ", 1),
79
- y(l) ? (i(), a("span", Ge, m(y(c)), 1)) : h("", !0)
80
- ]));
81
- }
82
- }, tt = { class: "cols-2-1_3 gap-thin w-100" }, st = { class: "" }, nt = { class: "pd-medium mn-thin radius-big bg-grey" }, it = /* @__PURE__ */ t("h3", { class: "mn-r-thin mn-medium" }, "Rating", -1), ot = { class: "w-max mn-small star-container flex-v-center flex" }, at = { class: "p-big t-semi mn-r-small" }, lt = /* @__PURE__ */ t("path", {
83
- fill: "#00FF88",
84
- 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"
85
- }, null, -1), rt = [
86
- lt
87
- ], dt = { class: "" }, ct = { class: "pd-medium radius-big bg-grey" }, ut = /* @__PURE__ */ t("h3", { class: "mn-medium" }, "Contacts", -1), pt = { class: "pd-medium radius-big bg-grey" }, mt = /* @__PURE__ */ t("path", {
88
- fill: "black",
89
- 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"
90
- }, null, -1), ht = [
91
- mt
92
- ], _t = ["src"], ft = {
93
- key: 1,
94
- class: "radius-medium mn-small i-extra",
95
- width: "42",
96
- height: "42",
97
- viewBox: "0 0 42 42",
98
- fill: "none",
99
- xmlns: "http://www.w3.org/2000/svg"
100
- }, gt = /* @__PURE__ */ t("circle", {
101
- fill: "rgb(var(--main))",
102
- cx: "21",
103
- cy: "21",
104
- r: "21"
105
- }, null, -1), bt = /* @__PURE__ */ t("path", {
106
- fill: "#242424",
107
- "fill-opacity": "0.1",
108
- "fill-rule": "evenodd",
109
- "clip-rule": "evenodd",
110
- 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"
111
- }, null, -1), vt = [
112
- gt,
113
- bt
114
- ], wt = { class: "mn-medium" }, yt = { class: "mn-semi" }, $t = { class: "mn-r-small pd-thin radius-small t-semi uppercase bg-main p-medium" }, Ct = { class: "mn-r-thin pd-thin radius-small t-semi bg-white p-medium" }, xt = { class: "mn-semi p-big" }, kt = /* @__PURE__ */ t("h4", { class: "mn-small" }, "Find us in socials", -1), Lt = { class: "mn-small w-100 gap-small flex-nowrap flex" }, Ot = ["href"], zt = /* @__PURE__ */ t("span", { class: "t-white t-semi mn-l-thin mn-r-small w-100 t-left" }, "Telegram", -1), St = [
115
- zt
116
- ], Mt = ["href"], At = /* @__PURE__ */ t("span", { class: "t-white t-semi mn-l-thin mn-r-small w-100 t-left" }, "Facebook", -1), Vt = [
117
- At
118
- ], Pt = ["href"], Bt = /* @__PURE__ */ t("span", { class: "t-white t-semi mn-l-thin mn-r-small w-100 t-left" }, "Instagram", -1), Dt = [
119
- Bt
120
- ], Tt = /* @__PURE__ */ t("a", {
121
- href: "https://twitter.com/ozdao_embassy",
122
- target: "_blank",
123
- class: "w-100 bg-twitter t-white radius-small button"
124
- }, [
125
- /* @__PURE__ */ t("span", { class: "t-white w-100 t-left" }, "Twitter")
126
- ], -1), Ft = /* @__PURE__ */ t("a", {
127
- href: "https://www.reddit.com/r/oz_dao/",
128
- target: "_blank",
129
- class: "w-100 bg-reddit t-white radius-small button"
130
- }, [
131
- /* @__PURE__ */ t("span", { class: "t-white w-100 t-left" }, "Reddit")
132
- ], -1), jt = ["href"], Zt = /* @__PURE__ */ t("span", { class: "t-white t-semi mn-l-thin mn-r-small w-100 t-left" }, "Line", -1), It = [
133
- Zt
134
- ], Et = {
135
- __name: "DetailsTab",
136
- props: {
137
- organization: Object
138
- },
139
- setup(e) {
140
- return (n, s) => (i(), b(D, { name: "slide-fade" }, {
141
- default: $(() => [
142
- t("div", tt, [
143
- t("div", st, [
144
- t("section", nt, [
145
- it,
146
- t("div", ot, [
147
- t("span", at, m(e.organization.rating.median), 1),
148
- (i(), a(v, null, w(5, (o) => t("svg", {
149
- class: B(["i-semi mn-r-small", { "t-transp": o > e.organization.rating.median }]),
150
- width: "113",
151
- height: "108",
152
- viewBox: "0 0 113 108",
153
- fill: "none",
154
- xmlns: "http://www.w3.org/2000/svg"
155
- }, rt, 2)), 64))
156
- ]),
157
- t("p", dt, "Based on " + m(e.organization.rating.amount) + " reviews", 1)
158
- ]),
159
- t("section", ct, [
160
- ut,
161
- f(Xe, {
162
- website: e.organization.contacts.website,
163
- phone: e.organization.contacts.phone,
164
- email: e.organization.contacts.email,
165
- address: e.organization.contacts.address
166
- }, null, 8, ["website", "phone", "email", "address"])
167
- ])
168
- ]),
169
- t("section", pt, [
170
- (i(), a("svg", {
171
- onClick: s[0] || (s[0] = (o) => n.$router.push({ name: "Organization Edit", params: { _id: e.organization._id } })),
172
- class: "pos-absolute pos-t-regular pos-r-regular i-regular t-transp",
173
- width: "652",
174
- height: "652",
175
- viewBox: "0 0 652 652",
176
- fill: "none",
177
- xmlns: "http://www.w3.org/2000/svg"
178
- }, ht)),
179
- e.organization.profile.photo ? (i(), a("img", {
180
- key: 0,
181
- src: "/" + e.organization.profile.photo,
182
- class: "radius-medium mn-small i-extra"
183
- }, null, 8, _t)) : (i(), a("svg", ft, vt)),
184
- t("h1", wt, m(e.organization.profile.name), 1),
185
- t("div", yt, [
186
- t("span", $t, m(e.organization.types[0]), 1),
187
- (i(!0), a(v, null, w(e.organization.profile.categories, (o) => (i(), a("span", Ct, m(o), 1))), 256))
188
- ]),
189
- t("p", xt, [
190
- f(et, {
191
- text: e.organization.profile.description ? e.organization.profile.description : "",
192
- maxLen: 240
193
- }, null, 8, ["text"])
194
- ]),
195
- kt,
196
- t("div", Lt, [
197
- t("a", {
198
- href: e.organization.social.telegram,
199
- target: "_blank",
200
- class: "w-100 bg-second t-white flex-nowrap flex-v-center flex w-min pd-small radius-extra"
201
- }, St, 8, Ot),
202
- t("a", {
203
- href: e.organization.social.telegram,
204
- target: "_blank",
205
- class: "w-100 bg-second t-white flex-nowrap flex-v-center flex w-min pd-small radius-extra"
206
- }, Vt, 8, Mt),
207
- t("a", {
208
- href: e.organization.social.telegram,
209
- target: "_blank",
210
- class: "w-100 bg-second t-white flex-nowrap flex-v-center flex w-min pd-small radius-extra"
211
- }, Dt, 8, Pt),
212
- Tt,
213
- Ft,
214
- t("a", {
215
- href: e.organization.social.telegram,
216
- target: "_blank",
217
- class: "w-100 bg-second t-white flex-nowrap flex-v-center flex w-min pd-small radius-extra"
218
- }, It, 8, jt)
219
- ])
220
- ])
221
- ])
222
- ]),
223
- _: 1
224
- }));
225
- }
226
- }, qt = {
227
- key: 0,
228
- class: "spoiler"
229
- }, H = {
230
- __name: "Spoiler",
231
- props: {
232
- status: {
233
- type: Boolean,
234
- default: !1
235
- }
236
- },
237
- setup(e) {
238
- const n = e, s = C(!1);
239
- return n.status && (s.value = n.status), (o, r) => (i(), a("div", null, [
240
- t("div", {
241
- onClick: r[0] || (r[0] = (d) => s.value = !s.value),
242
- class: "flex-v-center flex-nowrap flex"
243
- }, [
244
- L(o.$slots, "header")
245
- ]),
246
- f(D, { name: "collapse" }, {
247
- default: $(() => [
248
- s.value ? (i(), a("div", qt, [
249
- L(o.$slots, "content")
250
- ])) : h("", !0)
251
- ]),
252
- _: 3
253
- })
254
- ]));
255
- }
256
- };
257
- const Ht = {
258
- key: 0,
259
- class: "thc"
260
- }, Ut = { class: "t-bold t-white" }, Nt = /* @__PURE__ */ t("p", { class: "t-white h6" }, "THC", -1), Rt = {
261
- key: 0,
262
- width: "60",
263
- height: "66",
264
- viewBox: "0 0 60 66",
265
- fill: "none",
266
- xmlns: "http://www.w3.org/2000/svg"
267
- }, Kt = /* @__PURE__ */ t("path", {
268
- fill: "#FF0000",
269
- stroke: "white",
270
- "stroke-width": "3",
271
- d: "M26 3.3094C28.4752 1.88034 31.5248 1.88034 34 3.3094L53.7128 14.6906C56.188 16.1197 57.7128 18.7607 57.7128 21.6188V44.3812C57.7128 47.2393 56.188 49.8803 53.7128 51.3094L34 62.6906C31.5248 64.1197 28.4752 64.1197 26 62.6906L6.28719 51.3094C3.81198 49.8803 2.28719 47.2393 2.28719 44.3812V21.6188C2.28719 18.7607 3.81198 16.1197 6.28719 14.6906L26 3.3094Z"
272
- }, null, -1), Wt = [
273
- Kt
274
- ], Jt = {
275
- key: 1,
276
- width: "60",
277
- height: "66",
278
- viewBox: "0 0 60 66",
279
- fill: "none",
280
- xmlns: "http://www.w3.org/2000/svg"
281
- }, Yt = /* @__PURE__ */ t("path", {
282
- fill: "#FF0099",
283
- stroke: "white",
284
- "stroke-width": "3",
285
- d: "M26 3.3094C28.4752 1.88034 31.5248 1.88034 34 3.3094L53.7128 14.6906C56.188 16.1197 57.7128 18.7607 57.7128 21.6188V44.3812C57.7128 47.2393 56.188 49.8803 53.7128 51.3094L34 62.6906C31.5248 64.1197 28.4752 64.1197 26 62.6906L6.28719 51.3094C3.81198 49.8803 2.28719 47.2393 2.28719 44.3812V21.6188C2.28719 18.7607 3.81198 16.1197 6.28719 14.6906L26 3.3094Z"
286
- }, null, -1), Qt = [
287
- Yt
288
- ], Xt = {
289
- key: 2,
290
- width: "60",
291
- height: "66",
292
- viewBox: "0 0 60 66",
293
- fill: "none",
294
- xmlns: "http://www.w3.org/2000/svg"
295
- }, Gt = /* @__PURE__ */ t("path", {
296
- fill: "#EB00FF",
297
- stroke: "white",
298
- "stroke-width": "3",
299
- d: "M26 3.3094C28.4752 1.88034 31.5248 1.88034 34 3.3094L53.7128 14.6906C56.188 16.1197 57.7128 18.7607 57.7128 21.6188V44.3812C57.7128 47.2393 56.188 49.8803 53.7128 51.3094L34 62.6906C31.5248 64.1197 28.4752 64.1197 26 62.6906L6.28719 51.3094C3.81198 49.8803 2.28719 47.2393 2.28719 44.3812V21.6188C2.28719 18.7607 3.81198 16.1197 6.28719 14.6906L26 3.3094Z"
300
- }, null, -1), es = [
301
- Gt
302
- ], ts = {
303
- key: 3,
304
- width: "60",
305
- height: "66",
306
- viewBox: "0 0 60 66",
307
- fill: "none",
308
- xmlns: "http://www.w3.org/2000/svg"
309
- }, ss = /* @__PURE__ */ t("path", {
310
- fill: "#00FF29",
311
- stroke: "white",
312
- "stroke-width": "3",
313
- d: "M26 3.3094C28.4752 1.88034 31.5248 1.88034 34 3.3094L53.7128 14.6906C56.188 16.1197 57.7128 18.7607 57.7128 21.6188V44.3812C57.7128 47.2393 56.188 49.8803 53.7128 51.3094L34 62.6906C31.5248 64.1197 28.4752 64.1197 26 62.6906L6.28719 51.3094C3.81198 49.8803 2.28719 47.2393 2.28719 44.3812V21.6188C2.28719 18.7607 3.81198 16.1197 6.28719 14.6906L26 3.3094Z"
314
- }, null, -1), ns = [
315
- ss
316
- ], is = {
317
- __name: "THC",
318
- props: {
319
- product: Object
320
- },
321
- setup(e) {
322
- return (n, s) => e.product.information[1] ? (i(), a("div", Ht, [
323
- t("p", Ut, m(e.product.information[1].value) + " %", 1),
324
- Nt,
325
- Number(e.product.information[1].value) >= 18 ? (i(), a("svg", Rt, Wt)) : h("", !0),
326
- Number(e.product.information[1].value) <= 18 && Number(e.product.information[1].value) >= 14 ? (i(), a("svg", Jt, Qt)) : h("", !0),
327
- Number(e.product.information[1].value) <= 14 && Number(e.product.information[1].value) >= 10 ? (i(), a("svg", Xt, es)) : h("", !0),
328
- Number(e.product.information[1].value) <= 10 ? (i(), a("svg", ts, ns)) : h("", !0)
329
- ])) : h("", !0);
330
- }
331
- };
332
- const os = { class: "price-tag radius-small" }, as = {
333
- key: 0,
334
- class: "t-transp t-main p-medium line-through price"
335
- }, ls = {
336
- __name: "Price",
337
- props: {
338
- product: Object,
339
- size: String
340
- },
341
- setup(e) {
342
- return (n, s) => (i(), a("div", os, [
343
- t("p", {
344
- class: B(
345
- {
346
- "t-main": e.product.sale,
347
- h4: !e.size,
348
- "h5 t-semi pd-thin": e.size === "small",
349
- "h3 t-semi pd-small": e.size === "big"
350
- }
351
- )
352
- }, m(e.product.price) + " " + m(n.returnCurrency()), 3),
353
- e.product.sale ? (i(), a("p", as, m(e.product.price / 100 * (100 + e.product.sale)) + " " + m(n.returnCurrency()), 1)) : h("", !0)
354
- ]));
355
- }
356
- };
357
- const rs = ["src"], ds = {
358
- key: 1,
359
- class: "h-100 w-100",
360
- style: { "object-fit": "cover" },
361
- width: "524",
362
- height: "345",
363
- viewBox: "0 0 524 345",
364
- fill: "none",
365
- xmlns: "http://www.w3.org/2000/svg"
366
- }, cs = /* @__PURE__ */ t("rect", {
367
- width: "524",
368
- height: "345",
369
- fill: "white"
370
- }, null, -1), us = /* @__PURE__ */ t("rect", {
371
- width: "524",
372
- height: "345",
373
- fill: "white"
374
- }, null, -1), ps = /* @__PURE__ */ t("circle", {
375
- cx: "262",
376
- cy: "172",
377
- r: "56",
378
- fill: "#00ff88",
379
- "fill-opacity": "0.1"
380
- }, null, -1), ms = /* @__PURE__ */ t("path", {
381
- fill: "#00ff88",
382
- d: "M229.348 186.819C230.243 191.884 233.393 194.231 238.458 193.273V193.644C238.458 198.832 241.206 201.581 246.364 201.581H291.545C296.733 201.581 299.481 198.74 299.481 193.644V162.576C299.481 157.481 296.733 154.64 291.545 154.64H285.677L284.071 145.653C283.175 140.619 279.995 138.303 274.899 139.198L230.398 147.043C225.302 147.969 223.048 151.15 223.943 156.246L229.348 186.819ZM230.83 186.479L225.456 156.06C224.715 151.86 226.537 149.266 230.737 148.525L275.084 140.712C279.13 140.001 281.848 141.762 282.62 145.993L284.102 154.64H246.364C241.206 154.64 238.458 157.419 238.458 162.576V191.729L238.365 191.76C234.165 192.532 231.571 190.679 230.83 186.479ZM239.971 162.669C239.971 158.376 242.164 156.153 246.456 156.153H291.483C295.59 156.153 297.968 158.376 297.968 162.669V190.093L284.565 177.894C283.145 176.597 281.662 175.856 279.809 175.856C277.987 175.856 276.628 176.566 275.146 177.863L262.052 189.073L257.142 184.565C255.875 183.36 254.764 182.743 253.158 182.743C251.675 182.743 250.656 183.36 249.39 184.503L239.971 193.212V162.669ZM257.636 178.419C261.373 178.419 264.43 175.3 264.43 171.471C264.43 167.734 261.373 164.584 257.636 164.584C253.806 164.584 250.718 167.734 250.718 171.471C250.718 175.3 253.806 178.419 257.636 178.419Z"
383
- }, null, -1), hs = [
384
- cs,
385
- us,
386
- ps,
387
- ms
388
- ], _s = { class: "pd-medium t-left product-card-content" }, fs = { class: "mn-thin h4" }, gs = {
389
- key: 1,
390
- class: "mn-small t-transp p-small"
391
- }, bs = /* @__PURE__ */ t("div", null, null, -1), vs = {
392
- __name: "ProductCard",
393
- props: ["product"],
394
- setup(e) {
395
- const n = e, s = Se();
396
- return _e(), k(() => s.state.favorites.items.filter(function(o, r) {
397
- if (o._id === n.product._id)
398
- return !0;
399
- })), (o, r) => (i(), a("div", {
400
- class: B([
401
- "radius-big product",
402
- e.product.information[2] && e.product.information[2].value === "AAAA" ? "bg-black t-white" : "bg-white"
403
- ])
404
- }, [
405
- t("div", {
406
- class: B([
407
- "o-hidden w-100 h-100 square",
408
- e.product.information[2] && e.product.information[2].value === "AAAA" ? "bg-black" : "bg-white"
409
- ])
410
- }, [
411
- e.product.images[0] ? (i(), a("img", {
412
- key: 0,
413
- src: e.product.images[0],
414
- class: "w-100 h-100"
415
- }, null, 8, rs)) : (i(), a("svg", ds, hs)),
416
- e.product.information.length > 0 ? (i(), b(is, {
417
- key: 2,
418
- product: e.product
419
- }, null, 8, ["product"])) : h("", !0)
420
- ], 2),
421
- t("div", _s, [
422
- e.product.information.length > 0 ? (i(), a("p", {
423
- key: 0,
424
- class: B([
425
- "t-semi h6",
426
- e.product.information[2] && e.product.information[2].value === "AAAA" ? "t-violet" : "t-main"
427
- ])
428
- }, m(e.product.information[0].value), 3)) : h("", !0),
429
- t("p", fs, m(e.product.name), 1),
430
- e.product.description && !e.product.localization ? (i(), a("p", gs, m(e.product.description.substring(0, 99)) + "... ", 1)) : h("", !0),
431
- f(ls, {
432
- product: e.product,
433
- size: "small",
434
- class: B(
435
- e.product.information[2] && e.product.information[2].value === "AAAA" ? "bg-violet t-white" : ""
436
- )
437
- }, null, 8, ["product", "class"])
438
- ]),
439
- bs
440
- ], 2));
441
- }
442
- }, ws = { class: "" }, ys = { class: "pd-b-zero pd-thin" }, $s = { class: "cols-2-1_3 gap-thin pd-thin" }, Cs = { class: "pd-medium bg-grey radius-big" }, xs = /* @__PURE__ */ t("h3", { class: "mn-small" }, "Filters", -1), ks = /* @__PURE__ */ t("hr", { class: "mn-small" }, null, -1), Ls = { class: "mn-r-auto t-medium p-big" }, Os = /* @__PURE__ */ t("svg", {
443
- class: "i-medium",
444
- width: "14",
445
- height: "9",
446
- viewBox: "0 0 14 9",
447
- fill: "none",
448
- xmlns: "http://www.w3.org/2000/svg"
449
- }, [
450
- /* @__PURE__ */ t("path", {
451
- "fill-rule": "evenodd",
452
- "clip-rule": "evenodd",
453
- d: "M12.4697 0.469727L13.5304 1.53039L7.00006 8.06072L0.469727 1.53039L1.53039 0.469727L7.00006 5.9394L12.4697 0.469727Z",
454
- fill: "#8A8A8A"
455
- })
456
- ], -1), zs = /* @__PURE__ */ t("hr", { class: "mn-small" }, null, -1), Ss = { class: "mn-r-auto t-medium p-big" }, Ms = /* @__PURE__ */ t("svg", {
457
- class: "i-medium",
458
- width: "14",
459
- height: "9",
460
- viewBox: "0 0 14 9",
461
- fill: "none",
462
- xmlns: "http://www.w3.org/2000/svg"
463
- }, [
464
- /* @__PURE__ */ t("path", {
465
- "fill-rule": "evenodd",
466
- "clip-rule": "evenodd",
467
- d: "M12.4697 0.469727L13.5304 1.53039L7.00006 8.06072L0.469727 1.53039L1.53039 0.469727L7.00006 5.9394L12.4697 0.469727Z",
468
- fill: "#8A8A8A"
469
- })
470
- ], -1), As = /* @__PURE__ */ t("hr", { class: "mn-small" }, null, -1), Vs = /* @__PURE__ */ t("p", { class: "mn-r-auto t-medium p-big" }, "Delivery", -1), Ps = /* @__PURE__ */ t("svg", {
471
- class: "i-medium",
472
- width: "14",
473
- height: "9",
474
- viewBox: "0 0 14 9",
475
- fill: "none",
476
- xmlns: "http://www.w3.org/2000/svg"
477
- }, [
478
- /* @__PURE__ */ t("path", {
479
- "fill-rule": "evenodd",
480
- "clip-rule": "evenodd",
481
- d: "M12.4697 0.469727L13.5304 1.53039L7.00006 8.06072L0.469727 1.53039L1.53039 0.469727L7.00006 5.9394L12.4697 0.469727Z",
482
- fill: "#8A8A8A"
483
- })
484
- ], -1), Bs = /* @__PURE__ */ t("hr", { class: "mn-semi" }, null, -1), Ds = { class: "products-wrapper" }, Ts = /* @__PURE__ */ $e('<div class="pd-medium mn-thin bg-grey radius-big"><div class="flex-nowrap flex flex-v-center"><header class="mn-r-auto flex-v-center t-left flex-nowrap flex"><h2 class="t-left"><span class="">Weed in </span><span class="t-semi t-main">Phuket, TH</span></h2></header><button class="bg-main button">See on map</button></div></div>', 1), Fs = { class: "pd-medium mn-thin bg-grey radius-big" }, js = { class: "flex-nowrap flex flex-v-center" }, Zs = /* @__PURE__ */ t("p", { class: "mn-r-auto p-big t-semi t-transp" }, "2,982 results", -1), Is = { class: "w-100 cols-3 gap-thin" }, Es = {
485
- __name: "Products",
486
- async setup(e) {
487
- let n, s;
488
- const o = T();
489
- A(), [n, s] = M(() => Ve.read({ organization: o.params._id })), await n, s(), [n, s] = M(() => Me.fetchCategories()), await n, s(), k(() => J.current);
490
- const r = [
491
- { label: "Pickup", value: { min: 0, max: 25 } },
492
- { label: "Courier", value: { min: 25, max: 50 } },
493
- { label: "Post", value: { min: 50, max: 100 } }
494
- ], d = [
495
- { label: "Under $5", value: { min: 0, max: 25 } },
496
- { label: "$5 to $10", value: { min: 25, max: 50 } },
497
- { label: "$10 to $20", value: { min: 50, max: 100 } },
498
- { label: "$20 and above", value: { min: 200, max: 1 / 0 } }
499
- ], u = {
500
- locale: "en",
501
- messages: {
502
- en: {
503
- meta: {
504
- title: "Marketplace – Shop Our Wide Selection of Quality Weed for Delivery",
505
- description: "Browse our marketplace of top-grade weed strains and choose from a variety of delivery options. Order now and have your favorite strains delivered straight to your door. Safe, fast, and reliable."
506
- },
507
- breadcrumbs: {
508
- home: "Home",
509
- store: "Marketplace"
510
- },
511
- categoriesTitle: "Category",
512
- categories: [],
513
- sort: {
514
- price: "By price",
515
- newest: "By newest",
516
- popularity: "By popularity"
517
- },
518
- filters: {
519
- title: "Filters",
520
- price: {
521
- title: "Price",
522
- from: "From",
523
- to: "To"
524
- },
525
- filters: [],
526
- reset: "Reset Filters"
527
- }
528
- },
529
- ru: {
530
- meta: {
531
- title: "Маркетплейс – Выбирайте из нашего ассортимента качественной травки для доставки",
532
- description: "Маркетплейс – Изучите наши продукты высокого качества и выбирайте из различных вариантов доставки. Закажите сейчас и получите свои любимые сорта на дом. Безопасно, быстро и надежно."
533
- },
534
- breadcrumbs: {
535
- home: "Главная",
536
- store: "Маркетплейс"
537
- },
538
- categoriesTitle: "Категория",
539
- categories: [],
540
- sort: {
541
- price: "По цене",
542
- newest: "По новизне",
543
- popularity: "По популярности"
544
- },
545
- filters: {
546
- title: "Фильтры",
547
- price: {
548
- title: "Цена",
549
- from: "От",
550
- to: "До"
551
- },
552
- filters: [],
553
- reset: "Сбросить фильтры"
554
- }
555
- }
556
- }
557
- };
558
- J.all.forEach((p) => {
559
- p.localization.forEach((_) => {
560
- u.messages[_.locale].categories.push(_.text);
561
- });
562
- });
563
- const { t: l } = _e(u), c = k(() => ({
564
- title: l("meta.title"),
565
- description: l("meta.description")
566
- }));
567
- return Ae(c), (p, _) => (i(), a("div", ws, [
568
- t("div", ys, [
569
- f(X, { class: "pd-medium bg-grey radius-big" })
570
- ]),
571
- t("div", $s, [
572
- t("div", Cs, [
573
- xs,
574
- ks,
575
- f(H, {
576
- class: "radius-small o-hidden br-1px br-solid br-grey mn-small",
577
- status: !0
578
- }, {
579
- header: $(() => [
580
- t("p", Ls, m(y(l)("categoriesTitle")), 1),
581
- Os
582
- ]),
583
- content: $(() => [
584
- (i(!0), a(v, null, w(J.all, (g, O) => (i(), b(Y, {
585
- label: g.name,
586
- name: "categories",
587
- value: g.url,
588
- class: "w-100 mn-t-small mn-small bg-white radius-small pd-small",
589
- radio: p.marketplace.state.filter.categories
590
- }, null, 8, ["label", "value", "radio"]))), 256))
591
- ]),
592
- _: 1
593
- }),
594
- zs,
595
- f(H, {
596
- class: "radius-small o-hidden br-1px br-solid br-grey mn-small",
597
- status: !1
598
- }, {
599
- header: $(() => [
600
- t("p", Ss, m(y(l)("filters.price.title")), 1),
601
- Ms
602
- ]),
603
- content: $(() => [
604
- (i(), a(v, null, w(d, (g, O) => f(Y, {
605
- label: g.label,
606
- name: "prices",
607
- value: g.value,
608
- class: "w-100 mn-t-small bg-white radius-small pd-small",
609
- radio: p.store.marketplace.state.filter.prices
610
- }, null, 8, ["label", "value", "radio"])), 64))
611
- ]),
612
- _: 1
613
- }),
614
- As,
615
- f(H, {
616
- class: "radius-small o-hidden br-1px br-solid br-grey mn-small",
617
- status: !1
618
- }, {
619
- header: $(() => [
620
- Vs,
621
- Ps
622
- ]),
623
- content: $(() => [
624
- (i(), a(v, null, w(r, (g, O) => f(Y, {
625
- label: g.label,
626
- name: "prices",
627
- value: g.value,
628
- class: "w-100 mn-t-small bg-white radius-small pd-small",
629
- radio: p.store.marketplace.state.filter.delivery
630
- }, null, 8, ["label", "value", "radio"])), 64))
631
- ]),
632
- _: 1
633
- }),
634
- Bs,
635
- t("button", {
636
- onClick: _[0] || (_[0] = (g) => p.resetFilterButton()),
637
- class: "bg-main w-100 button"
638
- }, m(y(l)("filters.reset")), 1)
639
- ]),
640
- t("div", Ds, [
641
- Ts,
642
- t("div", Fs, [
643
- t("div", js, [
644
- Zs,
645
- t("button", {
646
- onClick: _[1] || (_[1] = (g) => p.setSort("price")),
647
- class: "button-active button-sort button"
648
- }, m(y(l)("sort.price")), 1),
649
- t("button", {
650
- onClick: _[2] || (_[2] = (g) => p.setSort("createdAt")),
651
- class: "button-sort button"
652
- }, m(y(l)("sort.newest")), 1),
653
- t("button", {
654
- onClick: _[3] || (_[3] = (g) => p.setSort("popularity")),
655
- class: "button-sort button"
656
- }, m(y(l)("sort.popularity")), 1)
657
- ])
658
- ]),
659
- t("div", Is, [
660
- (i(!0), a(v, null, w(Pe.all, (g) => (i(), b(vs, {
661
- product: g,
662
- key: g._id,
663
- onClick: (O) => p.$router.push({ name: "Product Organization", params: { _id: p.organization._id, product: g._id } }),
664
- class: "w-100"
665
- }, null, 8, ["product", "onClick"]))), 128))
666
- ])
667
- ])
668
- ])
669
- ]));
670
- }
671
- }, qs = {
672
- __name: "Map",
673
- props: {
674
- location: Object
675
- },
676
- setup(e) {
677
- const n = e;
678
- let s = C(null), o = null, r = null;
679
- return Ce(async () => {
680
- o = new google.maps.Map(s.value, {
681
- zoom: 13,
682
- center: {
683
- lat: n.location.lat,
684
- lng: n.location.lng
685
- }
686
- }), r = new google.maps.Marker({
687
- position: {
688
- lat: n.location.lat,
689
- lng: n.location.lng
690
- },
691
- map: o
692
- });
693
- }), N(() => n.location, () => {
694
- o && r && (r.setPosition(new google.maps.LatLng(n.location.lat, n.location.lng)), o.setCenter(new google.maps.LatLng(n.location.lat, n.location.lng)));
695
- }, { deep: !0 }), (d, u) => (i(), a("div", {
696
- ref_key: "gmap",
697
- ref: s,
698
- class: "gmap"
699
- }, null, 512));
700
- }
701
- }, Hs = /* @__PURE__ */ V(qs, [["__scopeId", "data-v-c194b4a5"]]), Us = { class: "pd-small flex-nowrap flex" }, Ns = { class: "user-card__info" }, Rs = { class: "user-card__name" }, Ks = { class: "user-card__position" }, Ws = {
702
- __name: "DepartmentSub",
703
- props: {
704
- department: {
705
- type: Object,
706
- required: !0
707
- }
708
- // Define other props here
709
- },
710
- setup(e) {
711
- return (n, s) => (i(), a("div", Us, [
712
- t("div", Ns, [
713
- t("p", Rs, m(e.department.name ? e.department.name : "Безымянный"), 1),
714
- t("p", Ks, m(e.department.members ? e.department.members.length : "0") + " человек", 1)
715
- ])
716
- ]));
717
- }
718
- }, ve = /* @__PURE__ */ V(Ws, [["__scopeId", "data-v-3a07133c"]]), Js = { class: "pd-small flex-nowrap flex" }, Ys = { class: "user-card__info" }, Qs = { class: "user-card__name" }, Xs = { class: "t-transp" }, Gs = {
719
- __name: "User",
720
- props: {
721
- user: {
722
- type: Object,
723
- required: !0
724
- },
725
- position: {
726
- type: String,
727
- required: !0
728
- }
729
- // Define other props here
730
- },
731
- setup(e) {
732
- return (n, s) => (i(), a("div", Js, [
733
- t("div", Ys, [
734
- t("p", Qs, m(e.user.name ? e.user.name : "Безымянный"), 1),
735
- t("p", Xs, m(e.position), 1)
736
- ])
737
- ]));
738
- }
739
- }, we = /* @__PURE__ */ V(Gs, [["__scopeId", "data-v-c0ea3801"]]), R = (e) => (ue("data-v-1d33cf95"), e = e(), pe(), e), en = { class: "radius-big o-hidden cols-2-1_3" }, tn = { class: "pd-medium w-100" }, sn = /* @__PURE__ */ R(() => /* @__PURE__ */ t("path", {
740
- 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",
741
- fill: "black"
742
- }, null, -1)), nn = [
743
- sn
744
- ], on = ["innerHTML"], an = ["innerHTML"], ln = { class: "pd-small flex-v-center flex-nowrap flex" }, rn = /* @__PURE__ */ R(() => /* @__PURE__ */ t("h5", { class: "w-100" }, "Contacts ", -1)), dn = { class: "mn-r-small" }, cn = /* @__PURE__ */ R(() => /* @__PURE__ */ t("svg", {
745
- width: "14",
746
- height: "9",
747
- viewBox: "0 0 14 9",
748
- fill: "none",
749
- xmlns: "http://www.w3.org/2000/svg"
750
- }, [
751
- /* @__PURE__ */ t("path", {
752
- "fill-rule": "evenodd",
753
- "clip-rule": "evenodd",
754
- d: "M12.4697 0.469727L13.5304 1.53039L7.00006 8.06072L0.469727 1.53039L1.53039 0.469727L7.00006 5.9394L12.4697 0.469727Z",
755
- fill: "#8A8A8A"
756
- })
757
- ], -1)), un = { key: 0 }, pn = { class: "pd-small flex-v-center flex-nowrap flex" }, mn = /* @__PURE__ */ R(() => /* @__PURE__ */ t("h5", { class: "w-100" }, "Working Hours ", -1)), hn = { class: "mn-r-small" }, _n = /* @__PURE__ */ R(() => /* @__PURE__ */ t("svg", {
758
- width: "14",
759
- height: "9",
760
- viewBox: "0 0 14 9",
761
- fill: "none",
762
- xmlns: "http://www.w3.org/2000/svg"
763
- }, [
764
- /* @__PURE__ */ t("path", {
765
- "fill-rule": "evenodd",
766
- "clip-rule": "evenodd",
767
- d: "M12.4697 0.469727L13.5304 1.53039L7.00006 8.06072L0.469727 1.53039L1.53039 0.469727L7.00006 5.9394L12.4697 0.469727Z",
768
- fill: "#8A8A8A"
769
- })
770
- ], -1)), fn = { key: 0 }, gn = {
771
- __name: "Department",
772
- props: {
773
- department: Object,
774
- organization: Object
775
- },
776
- setup(e) {
777
- const n = e;
778
- return (s, o) => (i(), a("div", en, [
779
- f(Hs, {
780
- location: { lat: e.department.location.coordinates[1], lng: e.department.location.coordinates[0] },
781
- class: ""
782
- }, null, 8, ["location"]),
783
- t("div", tn, [
784
- (i(), a("svg", {
785
- onClick: o[0] || (o[0] = (r) => s.$router.push(`/app/organization/${n.organization._id}/departments/${e.department._id}/edit`)),
786
- class: "i-regular pos-absolute pos-r-0 pos-t-0 t-transp",
787
- width: "652",
788
- height: "652",
789
- viewBox: "0 0 652 652",
790
- fill: "none",
791
- xmlns: "http://www.w3.org/2000/svg"
792
- }, nn)),
793
- t("h3", {
794
- onClick: o[1] || (o[1] = (r) => s.$router.push(`/app/organization/${n.organization._id}/departments/${e.department._id}`)),
795
- class: "mn-small w-100",
796
- innerHTML: e.department.profile.name
797
- }, null, 8, on),
798
- t("p", {
799
- onClick: o[2] || (o[2] = (r) => s.$router.push(`/app/organization/${n.organization._id}/departments/${e.department._id}`)),
800
- class: "mn-small p-big w-100",
801
- innerHTML: e.department.address
802
- }, null, 8, an),
803
- f(H, { class: "radius-small o-hidden br-1px br-solid br-grey mn-thin" }, {
804
- header: $(() => [
805
- t("div", ln, [
806
- rn,
807
- t("p", dn, m(e.department.members.length) + " человек", 1),
808
- cn
809
- ])
810
- ]),
811
- content: $(() => [
812
- t("ul", null, [
813
- e.department.members.length < 1 ? (i(), a("li", un, "В отделе еще нет участников")) : h("", !0),
814
- (i(!0), a(v, null, w(e.department.members, (r, d) => (i(), b(we, {
815
- class: "br-b br-solid br-grey",
816
- key: d,
817
- user: r.user,
818
- position: r.position,
819
- onClick: (u) => s.$router.push(`/app/profile/${r.user._id}`)
820
- }, null, 8, ["user", "position", "onClick"]))), 128))
821
- ])
822
- ]),
823
- _: 1
824
- }),
825
- f(H, { class: "radius-small o-hidden br-1px br-solid br-grey mn-thin" }, {
826
- header: $(() => [
827
- t("div", pn, [
828
- mn,
829
- t("p", hn, m(e.department.subdepartments ? e.department.subdepartments.length : 0) + " отделов", 1),
830
- _n
831
- ])
832
- ]),
833
- content: $(() => [
834
- t("ul", null, [
835
- e.department.subdepartments.length < 1 ? (i(), a("li", fn, "В отделе еще нет подотделов")) : h("", !0),
836
- (i(!0), a(v, null, w(e.department.subdepartments, (r, d) => (i(), b(ve, {
837
- onClick: (u) => s.$router.push(`/app/organization/departments/${r._id}`),
838
- key: d,
839
- class: "br-b br-solid br-grey",
840
- department: r
841
- }, null, 8, ["onClick", "department"]))), 128))
842
- ])
843
- ]),
844
- _: 1
845
- })
846
- ])
847
- ]));
848
- }
849
- }, bn = /* @__PURE__ */ V(gn, [["__scopeId", "data-v-1d33cf95"]]), vn = {
850
- __name: "StructureTab",
851
- props: {
852
- organization: Object,
853
- units: Array,
854
- memberships: Array
855
- },
856
- async setup(e) {
857
- let n, s;
858
- const o = e;
859
- C("departments"), [n, s] = M(() => fe.read(o.organization._id)), await n, s();
860
- const r = k(() => {
861
- const d = P.departments, u = d.flatMap(
862
- (l) => l.subdepartments.map((c) => c._id)
863
- );
864
- return d.filter(
865
- (l) => !u.includes(l._id)
866
- );
867
- });
868
- return (d, u) => (i(), b(D, { name: "slide-fade" }, {
869
- default: $(() => [
870
- t("div", null, [
871
- y(r).length < 1 ? (i(), b(ee, {
872
- key: 0,
873
- title: "You don't have any spots yet.",
874
- description: "Add spots to your hub.",
875
- action: "Add spot",
876
- callback: () => d.$router.push(`/app/organization/${o.organization._id}/departments/create`)
877
- }, null, 8, ["callback"])) : h("", !0),
878
- t("div", null, [
879
- (i(!0), a(v, null, w(y(r), (l, c) => (i(), b(bn, {
880
- key: c,
881
- department: l,
882
- organization: e.organization,
883
- class: "radius-big bg-grey mn-thin"
884
- }, null, 8, ["department", "organization"]))), 128)),
885
- y(r).length > 0 && I.user._id === e.organization.owner ? (i(), a("button", {
886
- key: 0,
887
- onClick: u[0] || (u[0] = (l) => d.$router.push(`/app/organization/${o.organization._id}/departments/create`)),
888
- class: "mn-thin button w-100"
889
- }, " Add spot ")) : h("", !0)
890
- ])
891
- ])
892
- ]),
893
- _: 1
894
- }));
895
- }
896
- }, wn = { class: "mn-medium radius-medium pd-semi bg-white" }, yn = /* @__PURE__ */ t("h3", { class: "mn-medium" }, "Добавить участников", -1), $n = /* @__PURE__ */ t("p", { class: "mn-small t-transp p-medium" }, "Укажите email или телефон, чтобы отправить ссылку с приглашением:", -1), Cn = { class: "w-100 flex-nowrap flex" }, xn = {
897
- key: 0,
898
- class: "mn-r-medium flex-v-center flex"
899
- }, kn = ["onClick"], Ln = /* @__PURE__ */ t("p", { class: "t-blue mn-r-small" }, "+ Добавить приглашение", -1), On = [
900
- Ln
901
- ], zn = /* @__PURE__ */ t("span", null, "Отправить приглашения ", -1), Sn = {
902
- __name: "MembersAdd",
903
- props: {
904
- organization: Object
905
- },
906
- emits: ["send-invite"],
907
- setup(e, { emit: n }) {
908
- const s = e, o = C(null), r = C([{ contact: "", role: "" }]);
909
- function d() {
910
- r.value.push({ contact: "", role: "" });
911
- }
912
- function u(p) {
913
- r.value.splice(p, 1);
914
- }
915
- async function l(p) {
916
- await W.create(s.organization._id, r.value);
917
- }
918
- function c() {
919
- }
920
- return (p, _) => (i(), a("div", null, [
921
- t("section", wn, [
922
- yn,
923
- $n,
924
- (i(!0), a(v, null, w(r.value, (g, O) => (i(), a("div", {
925
- key: O,
926
- class: "br-1px br-solid br-grey flex radius-small mn-thin"
927
- }, [
928
- t("div", Cn, [
929
- f(j, {
930
- field: g.contact,
931
- "onUpdate:field": (se) => g.contact = se,
932
- placeholder: "Email или телефон",
933
- class: "w-100 bg-white",
934
- validation: o.value
935
- }, null, 8, ["field", "onUpdate:field", "validation"]),
936
- O > 0 ? (i(), a("div", xn, [
937
- t("button", {
938
- onClick: (se) => u(O),
939
- class: "button-small button"
940
- }, "×", 8, kn)
941
- ])) : h("", !0)
942
- ]),
943
- f(G, {
944
- options: [
945
- { name: "Директор", value: "director" },
946
- { name: "Менеджер", value: "manager" },
947
- { name: "Сотрудник", value: "member" }
948
- ],
949
- prop: g,
950
- content: "role",
951
- placeholder: "Роль",
952
- size: "small",
953
- class: "w-80"
954
- }, null, 8, ["prop"])
955
- ]))), 128)),
956
- t("div", {
957
- onClick: d,
958
- class: "mn-small flex-v-center flex-nowrap flex"
959
- }, On),
960
- f(me, {
961
- submit: p.a = () => l(ge.invites),
962
- callback: c,
963
- class: "mn-t-medium"
964
- }, {
965
- default: $(() => [
966
- zn
967
- ]),
968
- _: 1
969
- }, 8, ["submit"])
970
- ])
971
- ]));
972
- }
973
- }, Mn = { class: "mn-big radius-medium bg-white" }, An = {
974
- key: 0,
975
- class: "pd-semi"
976
- }, Vn = { class: "br-grey br-1px br-solid radius-small flex-nowrap flex-v-center flex pd-medium" }, Pn = { class: "w-100 mn-r-small" }, Bn = { class: "t-transp" }, Dn = {
977
- key: 0,
978
- class: "mn-l-medium flex-v-center flex"
979
- }, Tn = ["onClick"], Fn = {
980
- key: 1,
981
- class: "pd-semi"
982
- }, jn = { key: 0 }, Zn = { class: "br-grey br-1px br-solid radius-small mn-thin flex-nowrap flex-v-center flex pd-medium" }, In = { class: "w-100 mn-r-small" }, En = { class: "t-transp" }, qn = { class: "mn-l-medium flex-v-center flex" }, Hn = ["onClick"], Un = {
983
- __name: "MembersList",
984
- props: {
985
- organization: Object,
986
- memberships: Array,
987
- invites: Array
988
- },
989
- emits: [["removeMember", "removeInvite"]],
990
- setup(e, { emit: n }) {
991
- const s = e, o = C("members");
992
- function r(u, l) {
993
- s.memberships.splice(u, 1), n("removeMember", l);
994
- }
995
- function d(u, l) {
996
- s.invites.splice(u, 1), n("removeInvite", l);
997
- }
998
- return (u, l) => (i(), a("section", Mn, [
999
- f(he, {
1000
- selected: o.value,
1001
- "onUpdate:selected": l[0] || (l[0] = (c) => o.value = c),
1002
- class: "br-grey br-b br-solid radius-small",
1003
- tabs: [
1004
- { name: "Участники", value: "members" },
1005
- { name: "Приглашения", value: "invites" }
1006
- ]
1007
- }, null, 8, ["selected"]),
1008
- o.value === "members" ? (i(), a("div", An, [
1009
- (i(!0), a(v, null, w(e.memberships, (c, p) => (i(), a("div", Vn, [
1010
- t("span", Pn, m(c.user.email) + " " + m(c.user.phone), 1),
1011
- t("span", Bn, m(c.position), 1),
1012
- c.position !== "Основатель" ? (i(), a("div", Dn, [
1013
- t("button", {
1014
- onClick: (_) => r(p, c),
1015
- class: "button-small button"
1016
- }, "×", 8, Tn)
1017
- ])) : h("", !0)
1018
- ]))), 256))
1019
- ])) : h("", !0),
1020
- o.value === "invites" ? (i(), a("div", Fn, [
1021
- e.invites.length < 1 ? (i(), a("span", jn, "В организации нет приглашений")) : h("", !0),
1022
- (i(!0), a(v, null, w(e.invites, (c, p) => (i(), a("div", Zn, [
1023
- t("span", In, m(c.invitedEmail) + " " + m(c.invitedPhone), 1),
1024
- t("span", En, m(c.status), 1),
1025
- t("div", qn, [
1026
- t("button", {
1027
- onClick: (_) => d(p, c),
1028
- class: "button-small button"
1029
- }, "×", 8, Hn)
1030
- ])
1031
- ]))), 256))
1032
- ])) : h("", !0)
1033
- ]));
1034
- }
1035
- }, Nn = /* @__PURE__ */ t("section", { class: "mn-medium radius-medium pd-semi bg-white" }, [
1036
- /* @__PURE__ */ t("h2", { class: "mn-regular" }, "Участники"),
1037
- /* @__PURE__ */ t("p", { class: "t-transp p-big" }, "Добавляйте новых участников организации и настраивайте права доступа.")
1038
- ], -1), Cl = {
1039
- __name: "MembersTab",
1040
- props: {
1041
- organization: Object,
1042
- memberships: Array
1043
- },
1044
- async setup(e) {
1045
- let n, s;
1046
- const o = e;
1047
- [n, s] = M(() => W.read(o.organization._id)), await n, s();
1048
- async function r(l) {
1049
- await W.create(o.organization._id, l);
1050
- }
1051
- async function d(l) {
1052
- await be.delete(l._id);
1053
- }
1054
- async function u(l) {
1055
- await W.delete(l._id);
1056
- }
1057
- return (l, c) => (i(), b(D, { name: "slide-fade" }, {
1058
- default: $(() => [
1059
- t("div", null, [
1060
- Nn,
1061
- f(Sn, {
1062
- organization: e.organization,
1063
- onSendInvite: r
1064
- }, null, 8, ["organization"]),
1065
- f(Un, {
1066
- organization: e.organization,
1067
- memberships: e.memberships,
1068
- invites: ge.invites,
1069
- onRemoveInvite: u,
1070
- onRemoveMember: d
1071
- }, null, 8, ["organization", "memberships", "invites"])
1072
- ])
1073
- ]),
1074
- _: 1
1075
- }));
1076
- }
1077
- };
1078
- const Rn = { class: "for-transition w-100" }, Kn = { class: "pd-b-zero pd-thin" }, Wn = { class: "pd-b-zero pd-t-zero pd-thin" }, Jn = { class: "pd-thin bg-white" }, Yn = { key: 0 }, Qn = {
1079
- __name: "Organization",
1080
- async setup(e) {
1081
- let n, s;
1082
- const o = A(), r = T();
1083
- let d = r.query.tab ? r.query.tab : "spots";
1084
- const u = C(d);
1085
- return r.query.tab = u.value, N(u, (l) => {
1086
- o.push({ query: { ...r.query, tab: l } });
1087
- }), [n, s] = M(() => F.read({ _id: r.params._id })), await n, s(), [n, s] = M(() => be.read(r.params._id)), await n, s(), (l, c) => (i(), a("div", Rn, [
1088
- t("div", Kn, [
1089
- f(X, { class: "pd-medium bg-grey radius-big" })
1090
- ]),
1091
- f(Et, {
1092
- organization: x.current,
1093
- class: "pd-thin"
1094
- }, null, 8, ["organization"]),
1095
- t("div", Wn, [
1096
- f(he, {
1097
- selected: u.value,
1098
- "onUpdate:selected": c[0] || (c[0] = (p) => u.value = p),
1099
- tabs: [
1100
- { name: "Spots", value: "spots" },
1101
- { name: "Products", value: "products" },
1102
- { name: "Community", value: "members" }
1103
- ],
1104
- class: "o-hidden h4 pd-small radius-big bg-grey"
1105
- }, null, 8, ["selected"])
1106
- ]),
1107
- t("div", Jn, [
1108
- f(D, { name: "slide-fade" }, {
1109
- default: $(() => [
1110
- u.value === "spots" ? (i(), a("div", Yn, [
1111
- f(vn, {
1112
- organization: x.current,
1113
- memberships: Fe.memberships
1114
- }, null, 8, ["organization", "memberships"])
1115
- ])) : h("", !0)
1116
- ]),
1117
- _: 1
1118
- }),
1119
- f(D, { name: "slide-fade" }, {
1120
- default: $(() => [
1121
- u.value === "products" ? (i(), b(Es, {
1122
- key: 0,
1123
- organization: x.current
1124
- }, null, 8, ["organization"])) : h("", !0)
1125
- ]),
1126
- _: 1
1127
- }),
1128
- f(D, { name: "slide-fade" }, {
1129
- default: $(() => [
1130
- u.value === "members" ? (i(), b(Be, {
1131
- key: 0,
1132
- user: I.user._id,
1133
- organization: x.current._id
1134
- }, null, 8, ["user", "organization"])) : h("", !0)
1135
- ]),
1136
- _: 1
1137
- })
1138
- ])
1139
- ]));
1140
- }
1141
- }, Xn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1142
- __proto__: null,
1143
- default: Qn
1144
- }, Symbol.toStringTag, { value: "Module" })), Gn = { class: "for-transition w-100" }, ei = {
1145
- id: "dash",
1146
- class: "pd-medium bg-grey"
1147
- }, ti = { class: "mn-medium radius-medium pd-semi bg-white" }, si = { class: "flex-nowrap flex mn-small" }, ni = { class: "w-100" }, ii = /* @__PURE__ */ t("path", {
1148
- 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",
1149
- fill: "black"
1150
- }, null, -1), oi = [
1151
- ii
1152
- ], ai = ["innerHTML"], li = { class: "mn-medium radius-medium pd-semi bg-white" }, ri = /* @__PURE__ */ t("h3", { class: "mn-regular" }, "Команда", -1), di = { key: 0 }, ci = { class: "mn-medium radius-medium pd-semi bg-white" }, ui = /* @__PURE__ */ t("h3", { class: "mn-regular" }, "Подотделы", -1), pi = { key: 0 }, mi = {
1153
- __name: "Department",
1154
- async setup(e) {
1155
- let n, s;
1156
- A();
1157
- const o = T();
1158
- return [n, s] = M(() => fe.readOne(o.params._id)), await n, s(), (r, d) => (i(), a("div", Gn, [
1159
- t("div", ei, [
1160
- t("section", ti, [
1161
- t("div", si, [
1162
- t("h2", ni, m(P.department.name), 1),
1163
- (i(), a("svg", {
1164
- onClick: d[0] || (d[0] = (u) => r.$router.push(`/app/organization/departments/${P.department._id}/edit`)),
1165
- class: "i-regular t-transp",
1166
- width: "652",
1167
- height: "652",
1168
- viewBox: "0 0 652 652",
1169
- fill: "none",
1170
- xmlns: "http://www.w3.org/2000/svg"
1171
- }, oi))
1172
- ]),
1173
- t("p", {
1174
- class: "t-transp p-big",
1175
- innerHTML: P.department.description
1176
- }, null, 8, ai)
1177
- ]),
1178
- t("section", li, [
1179
- ri,
1180
- t("ul", null, [
1181
- P.department.members.length < 1 ? (i(), a("li", di, "В отделе еще нет участников")) : h("", !0),
1182
- (i(!0), a(v, null, w(P.department.members, (u, l) => (i(), b(we, {
1183
- class: "br-b br-solid br-grey",
1184
- key: l,
1185
- user: u.user,
1186
- position: u.position,
1187
- onClick: (c) => r.$router.push(`/app/profile/${u.user._id}`)
1188
- }, null, 8, ["user", "position", "onClick"]))), 128))
1189
- ])
1190
- ]),
1191
- t("section", ci, [
1192
- ui,
1193
- t("ul", null, [
1194
- P.department.subdepartments.length < 1 ? (i(), a("li", pi, "В отделе еще нет подотделов")) : h("", !0),
1195
- (i(!0), a(v, null, w(P.department.subdepartments, (u, l) => (i(), b(ve, {
1196
- onClick: (c) => r.$router.push(`/app/organization/departments/${u._id}`),
1197
- key: l,
1198
- class: "br-b br-solid br-grey",
1199
- department: u
1200
- }, null, 8, ["onClick", "department"]))), 128))
1201
- ])
1202
- ])
1203
- ])
1204
- ]));
1205
- }
1206
- }, hi = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1207
- __proto__: null,
1208
- default: mi
1209
- }, Symbol.toStringTag, { value: "Module" }));
1210
- const _i = { class: "for-transition bg-white radius-big w-100" }, fi = { class: "flex-v-center flex-nowrap flex pd-semi" }, gi = /* @__PURE__ */ t("h2", { class: "mn-r-medium" }, "Organizations", -1), bi = { class: "pd-semi" }, vi = {
1211
- key: 1,
1212
- class: "cols-3"
1213
- }, wi = ["onClick"], yi = ["src"], $i = {
1214
- key: 1,
1215
- class: "radius-medium mn-small i-thin",
1216
- width: "42",
1217
- height: "42",
1218
- viewBox: "0 0 42 42",
1219
- fill: "none",
1220
- xmlns: "http://www.w3.org/2000/svg"
1221
- }, Ci = /* @__PURE__ */ t("circle", {
1222
- fill: "rgb(var(--main))",
1223
- cx: "21",
1224
- cy: "21",
1225
- r: "21"
1226
- }, null, -1), xi = /* @__PURE__ */ t("path", {
1227
- fill: "#242424",
1228
- "fill-opacity": "0.1",
1229
- "fill-rule": "evenodd",
1230
- "clip-rule": "evenodd",
1231
- 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"
1232
- }, null, -1), ki = [
1233
- Ci,
1234
- xi
1235
- ], Li = { class: "h4 mn-r-semi mn-small" }, Oi = ["onClick"], zi = /* @__PURE__ */ t("path", {
1236
- fill: "black",
1237
- 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"
1238
- }, null, -1), Si = [
1239
- zi
1240
- ], Mi = { class: "t-black p-small" }, xl = {
1241
- __name: "OrganizationsAccount",
1242
- async setup(e) {
1243
- let n, s;
1244
- I.user._id && ([n, s] = M(() => F.read({ owner: I.user._id })), await n, s());
1245
- const o = A(), r = T();
1246
- let d = r.query.tab ? r.query.tab : "details";
1247
- const u = C(d);
1248
- return r.query.tab = u.value, N(u, (l) => {
1249
- o.push({ query: { ...r.query, tab: l } });
1250
- }), (l, c) => (i(), a("div", _i, [
1251
- t("header", fi, [
1252
- gi,
1253
- t("button", {
1254
- onClick: c[0] || (c[0] = (p) => l.$router.push({ name: "Create Organization" })),
1255
- class: "radius-100p i-semi hover-scale-1 cursor-pointer t-white bg-second"
1256
- }, "+")
1257
- ]),
1258
- t("div", bi, [
1259
- x.all.length < 1 ? (i(), b(ee, {
1260
- key: 0,
1261
- title: "You Haven't Joined Any Organization Yet",
1262
- description: "Weeder is all about community. Join an organization or maybe you want to create your own?",
1263
- action: "Create organization",
1264
- callback: l.a = () => l.$router.push("/app/organization/create/details")
1265
- }, null, 8, ["callback"])) : (i(), a("div", vi, [
1266
- (i(!0), a(v, null, w(x.all, (p) => (i(), a("div", {
1267
- key: p._id,
1268
- class: "mn-small radius-medium pd-medium br-2px br-solid br-grey",
1269
- onClick: (_) => l.$router.push({ name: "Organization", params: { _id: p._id } })
1270
- }, [
1271
- p.profile.photo.length > 0 ? (i(), a("img", {
1272
- key: 0,
1273
- src: p.profile.photo,
1274
- class: "radius-medium mn-small i-thin"
1275
- }, null, 8, yi)) : (i(), a("svg", $i, ki)),
1276
- t("p", Li, m(p.profile.name), 1),
1277
- (i(), a("svg", {
1278
- onClick: U((_) => l.$router.push({ name: "Organization Edit", params: { _id: p._id } }), ["stop"]),
1279
- class: "t-transp hover-scale-1 z-index-1 pos-absolute pos-t-regular pos-r-regular i-medium",
1280
- width: "13",
1281
- height: "12",
1282
- viewBox: "0 0 13 12",
1283
- xmlns: "http://www.w3.org/2000/svg"
1284
- }, Si, 8, Oi)),
1285
- t("p", Mi, m(p.profile.description.slice(0, 120) + "..."), 1)
1286
- ], 8, wi))), 128))
1287
- ]))
1288
- ])
1289
- ]));
1290
- }
1291
- }, Ai = { class: "br-bot-dark bg-white pd-big" }, Vi = { class: "flex-nojustify flex-bottom flex-nowrap flex" }, Pi = {
1292
- key: 0,
1293
- class: "mn-r-small"
1294
- }, Bi = {
1295
- key: 1,
1296
- class: "mn-r-small"
1297
- }, Di = { class: "for-transition w-100" }, Ti = {
1298
- id: "dash",
1299
- class: "pd-medium bg-grey"
1300
- }, Fi = /* @__PURE__ */ t("h3", { class: "mn-small" }, "Profile", -1), ji = { class: "mn-semi radius-small flex-nowrap flex" }, Zi = { class: "flex-child-grow-1 flex-child" }, Ii = {
1301
- __name: "OrganizationEdit",
1302
- async setup(e) {
1303
- let n, s;
1304
- const o = T();
1305
- A(), F.reset(), o.params._id && ([n, s] = M(() => F.read({ _id: o.params._id })), await n, s());
1306
- const r = k(() => x.current);
1307
- async function d() {
1308
- o.params._id ? await F.update(o.params._id, r.value) : await F.create(x.current, I.user._id);
1309
- }
1310
- return (u, l) => (i(), a("div", null, [
1311
- f(X, { class: "section" }),
1312
- t("section", Ai, [
1313
- t("header", Vi, [
1314
- y(o).params._id ? (i(), a("h1", Pi, "Edit organization")) : (i(), a("h1", Bi, "Create organization"))
1315
- ])
1316
- ]),
1317
- t("div", Di, [
1318
- t("div", Ti, [
1319
- f(G, {
1320
- options: [
1321
- { name: "Dispensary", value: "dispensary" },
1322
- { name: "Farm", value: "farm" },
1323
- { name: "Space", value: "space" }
1324
- ],
1325
- label: "Type",
1326
- select: x.current.types,
1327
- "onUpdate:select": l[0] || (l[0] = (c) => x.current.types = c),
1328
- placeholder: "Select type",
1329
- class: "bg-white pd-small radius-small mn-small t-black"
1330
- }, null, 8, ["select"]),
1331
- Fi,
1332
- t("div", ji, [
1333
- f(je, {
1334
- photo: x.current.profile.photo,
1335
- "onUpdate:photo": l[1] || (l[1] = (c) => x.current.profile.photo = c),
1336
- uploadPath: "organizations/" + x.current._id + "/avatars",
1337
- class: "i-big aspect-1x1 o-hidden mn-r-small radius-extra"
1338
- }, null, 8, ["photo", "uploadPath"]),
1339
- t("div", Zi, [
1340
- f(j, {
1341
- field: x.current.profile.name,
1342
- "onUpdate:field": l[2] || (l[2] = (c) => x.current.profile.name = c),
1343
- placeholder: "Name",
1344
- class: "bg-white pd-small"
1345
- }, null, 8, ["field"]),
1346
- f(j, {
1347
- field: x.current.profile.description,
1348
- "onUpdate:field": l[3] || (l[3] = (c) => x.current.profile.description = c),
1349
- placeholder: "Description",
1350
- class: "bg-white pd-small"
1351
- }, null, 8, ["field"])
1352
- ])
1353
- ]),
1354
- f(me, {
1355
- submit: d,
1356
- callback: u.redirectTo,
1357
- class: "mn-thin"
1358
- }, {
1359
- default: $(() => [
1360
- Z("Save")
1361
- ]),
1362
- _: 1
1363
- }, 8, ["callback"])
1364
- ])
1365
- ])
1366
- ]));
1367
- }
1368
- }, ae = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1369
- __proto__: null,
1370
- default: Ii
1371
- }, Symbol.toStringTag, { value: "Module" }));
1372
- const Ei = { class: "for-transition bg-white radius-big w-100" }, qi = /* @__PURE__ */ t("header", { class: "flex-v-center flex-nowrap flex pd-semi" }, [
1373
- /* @__PURE__ */ t("h2", { class: "mn-r-medium" }, "Weed dispensaries in Thailand")
1374
- ], -1), Hi = { class: "pd-semi" }, Ui = {
1375
- key: 1,
1376
- class: "cols-3"
1377
- }, Ni = ["onClick"], Ri = ["src"], Ki = {
1378
- key: 1,
1379
- class: "radius-medium mn-small i-thin",
1380
- width: "42",
1381
- height: "42",
1382
- viewBox: "0 0 42 42",
1383
- fill: "none",
1384
- xmlns: "http://www.w3.org/2000/svg"
1385
- }, Wi = /* @__PURE__ */ t("circle", {
1386
- fill: "rgb(var(--main))",
1387
- cx: "21",
1388
- cy: "21",
1389
- r: "21"
1390
- }, null, -1), Ji = /* @__PURE__ */ t("path", {
1391
- fill: "#242424",
1392
- "fill-opacity": "0.1",
1393
- "fill-rule": "evenodd",
1394
- "clip-rule": "evenodd",
1395
- 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"
1396
- }, null, -1), Yi = [
1397
- Wi,
1398
- Ji
1399
- ], Qi = { class: "h4 mn-r-semi mn-small" }, Xi = ["onClick"], Gi = /* @__PURE__ */ t("path", {
1400
- fill: "black",
1401
- 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"
1402
- }, null, -1), eo = [
1403
- Gi
1404
- ], to = { class: "t-black p-small" }, kl = {
1405
- __name: "Organizations",
1406
- async setup(e) {
1407
- let n, s;
1408
- I.user._id && ([n, s] = M(() => F.read({ owner: I.user._id })), await n, s());
1409
- const o = A(), r = T();
1410
- let d = r.query.tab ? r.query.tab : "details";
1411
- const u = C(d);
1412
- return r.query.tab = u.value, N(u, (l) => {
1413
- o.push({ query: { ...r.query, tab: l } });
1414
- }), (l, c) => (i(), a("div", Ei, [
1415
- qi,
1416
- t("div", Hi, [
1417
- x.all.length < 1 ? (i(), b(ee, {
1418
- key: 0,
1419
- title: "You Haven't Joined Any Organization Yet",
1420
- description: "Weeder is all about community. Join an organization or maybe you want to create your own?",
1421
- action: "Create organization",
1422
- callback: l.a = () => l.$router.push("/app/organization/create/details")
1423
- }, null, 8, ["callback"])) : (i(), a("div", Ui, [
1424
- (i(!0), a(v, null, w(x.all, (p) => (i(), a("div", {
1425
- key: p._id,
1426
- class: "mn-small radius-medium pd-medium br-2px br-solid br-grey",
1427
- onClick: (_) => l.$router.push({ name: "Organization", params: { _id: p._id } })
1428
- }, [
1429
- p.profile.photo.length > 0 ? (i(), a("img", {
1430
- key: 0,
1431
- src: p.profile.photo,
1432
- class: "radius-medium mn-small i-thin"
1433
- }, null, 8, Ri)) : (i(), a("svg", Ki, Yi)),
1434
- t("p", Qi, m(p.profile.name), 1),
1435
- (i(), a("svg", {
1436
- onClick: U((_) => l.$router.push({ name: "Organization Edit", params: { _id: p._id } }), ["stop"]),
1437
- class: "t-transp hover-scale-1 z-index-1 pos-absolute pos-t-regular pos-r-regular i-medium",
1438
- width: "13",
1439
- height: "12",
1440
- viewBox: "0 0 13 12",
1441
- xmlns: "http://www.w3.org/2000/svg"
1442
- }, eo, 8, Xi)),
1443
- t("p", to, m(p.profile.description.slice(0, 120) + "..."), 1)
1444
- ], 8, Ni))), 128))
1445
- ]))
1446
- ])
1447
- ]));
1448
- }
1449
- };
1450
- const so = { class: "flex-stretch flex-nojustify flex-nowrap flex shop-cart-item" }, no = ["src"], io = {
1451
- key: 1,
1452
- width: "524",
1453
- height: "345",
1454
- viewBox: "0 0 524 345",
1455
- fill: "none",
1456
- xmlns: "http://www.w3.org/2000/svg",
1457
- class: "aspect-1x1",
1458
- style: { "object-fit": "cover" }
1459
- }, oo = /* @__PURE__ */ t("rect", {
1460
- width: "524",
1461
- height: "345",
1462
- fill: "white"
1463
- }, null, -1), ao = /* @__PURE__ */ t("rect", {
1464
- width: "524",
1465
- height: "345",
1466
- fill: "white"
1467
- }, null, -1), lo = /* @__PURE__ */ t("circle", {
1468
- cx: "262",
1469
- cy: "172",
1470
- r: "56",
1471
- fill: "#00ff88",
1472
- "fill-opacity": "0.1"
1473
- }, null, -1), ro = /* @__PURE__ */ t("path", {
1474
- fill: "#00ff88",
1475
- d: "M229.348 186.819C230.243 191.884 233.393 194.231 238.458 193.273V193.644C238.458 198.832 241.206 201.581 246.364 201.581H291.545C296.733 201.581 299.481 198.74 299.481 193.644V162.576C299.481 157.481 296.733 154.64 291.545 154.64H285.677L284.071 145.653C283.175 140.619 279.995 138.303 274.899 139.198L230.398 147.043C225.302 147.969 223.048 151.15 223.943 156.246L229.348 186.819ZM230.83 186.479L225.456 156.06C224.715 151.86 226.537 149.266 230.737 148.525L275.084 140.712C279.13 140.001 281.848 141.762 282.62 145.993L284.102 154.64H246.364C241.206 154.64 238.458 157.419 238.458 162.576V191.729L238.365 191.76C234.165 192.532 231.571 190.679 230.83 186.479ZM239.971 162.669C239.971 158.376 242.164 156.153 246.456 156.153H291.483C295.59 156.153 297.968 158.376 297.968 162.669V190.093L284.565 177.894C283.145 176.597 281.662 175.856 279.809 175.856C277.987 175.856 276.628 176.566 275.146 177.863L262.052 189.073L257.142 184.565C255.875 183.36 254.764 182.743 253.158 182.743C251.675 182.743 250.656 183.36 249.39 184.503L239.971 193.212V162.669ZM257.636 178.419C261.373 178.419 264.43 175.3 264.43 171.471C264.43 167.734 261.373 164.584 257.636 164.584C253.806 164.584 250.718 167.734 250.718 171.471C250.718 175.3 253.806 178.419 257.636 178.419Z"
1476
- }, null, -1), co = [
1477
- oo,
1478
- ao,
1479
- lo,
1480
- ro
1481
- ], uo = { class: "text-left" }, po = { class: "name" }, mo = {
1482
- key: 0,
1483
- class: "t-transp"
1484
- }, ho = {
1485
- key: 1,
1486
- class: "t-transp"
1487
- }, _o = {
1488
- key: 2,
1489
- class: "t-transp"
1490
- }, fo = { class: "t-main t-demi price mn-small" }, go = { key: 0 }, bo = {
1491
- key: 0,
1492
- class: "flex-nojustify flex"
1493
- }, vo = { class: "flex-nowrap flex" }, wo = /* @__PURE__ */ t("svg", {
1494
- fill: "none",
1495
- height: "20",
1496
- viewBox: "0 0 20 20",
1497
- width: "20",
1498
- xmlns: "http://www.w3.org/2000/svg"
1499
- }, [
1500
- /* @__PURE__ */ t("path", {
1501
- "clip-rule": "evenodd",
1502
- d: "m7.27124 0h5.45456c1.0041 0 1.8182.814027 1.8182 1.81818v.90899h2.7278c1.0042 0 1.8182.81402 1.8182 1.81818v1.81818c0 1.00415-.814 1.81818-1.8182 1.81818h-.0735l-.8363 10.00009c0 1.0042-.814 1.8182-1.8182 1.8182h-9.09087c-1.00416 0-1.81818-.814-1.81504-1.7427l-.83964-10.07559h-.07187c-1.00415 0-1.818177-.81403-1.818177-1.81818v-1.81818c0-1.00416.814027-1.81818 1.818177-1.81818h2.72668v-.90899c0-1.004153.81402-1.81818 1.81818-1.81818zm-1.81889 18.1819-.83047-10h10.75152l-.827 9.9245-.0031.0755zm-2.72612-11.81799v-1.81818h14.54547v1.81818zm10.00137-4.54571v.90909h-5.45456v-.90909z",
1503
- fill: "#8a8a8a",
1504
- "fill-rule": "evenodd"
1505
- })
1506
- ], -1), yo = [
1507
- wo
1508
- ], $o = {
1509
- __name: "CardOrderItem",
1510
- props: {
1511
- product: Object,
1512
- editable: String,
1513
- increase: Function,
1514
- decrease: Function,
1515
- remove: Function
1516
- },
1517
- setup(e) {
1518
- return A(), (n, s) => (i(), a("div", so, [
1519
- e.product.images[0] ? (i(), a("img", {
1520
- key: 0,
1521
- class: "bg-grey aspect-1x1",
1522
- src: e.product.images[0]
1523
- }, null, 8, no)) : h("", !0),
1524
- e.product.images[0] ? h("", !0) : (i(), a("svg", io, co)),
1525
- t("div", uo, [
1526
- t("p", po, [
1527
- Z(m(e.product.name) + " ", 1),
1528
- e.product.size ? (i(), a("span", mo, ", " + m(e.product.size), 1)) : h("", !0),
1529
- typeof e.product.color == "string" && e.product.size ? (i(), a("span", ho, ", ")) : h("", !0),
1530
- typeof e.product.color == "string" ? (i(), a("span", _o, m(e.product.color), 1)) : h("", !0)
1531
- ]),
1532
- t("p", fo, [
1533
- e.editable ? (i(), a("span", go, m(e.product.quantity) + " x ", 1)) : h("", !0),
1534
- Z(m(e.product.price) + " " + m(n.returnCurrency()), 1)
1535
- ]),
1536
- e.editable ? (i(), a("div", bo, [
1537
- t("div", vo, [
1538
- t("button", {
1539
- onClick: s[0] || (s[0] = (o) => e.decrease(e.product)),
1540
- class: "mn-r-thin bg-grey button-square button"
1541
- }, "-"),
1542
- t("button", {
1543
- onClick: s[1] || (s[1] = (o) => e.increase(e.product)),
1544
- class: "mn-r-thin bg-grey button-square button"
1545
- }, "+")
1546
- ]),
1547
- t("button", {
1548
- onClick: s[2] || (s[2] = (o) => e.remove(e.product)),
1549
- class: "hover_br-transp hover_br-l-dark bg-transp button-square button"
1550
- }, yo)
1551
- ])) : h("", !0)
1552
- ])
1553
- ]));
1554
- }
1555
- }, Co = { class: "pd-medium br-b br-solid br-black-transp flex-v-center flex-nowrap flex" }, xo = ["src"], ko = {
1556
- key: 1,
1557
- class: "h-4r w-4r radius-extra",
1558
- width: "42",
1559
- height: "42",
1560
- viewBox: "0 0 42 42",
1561
- fill: "none",
1562
- xmlns: "http://www.w3.org/2000/svg"
1563
- }, Lo = /* @__PURE__ */ t("circle", {
1564
- fill: "rgb(var(--main))",
1565
- cx: "21",
1566
- cy: "21",
1567
- r: "21"
1568
- }, null, -1), Oo = /* @__PURE__ */ t("path", {
1569
- fill: "#242424",
1570
- "fill-opacity": "0.1",
1571
- "fill-rule": "evenodd",
1572
- "clip-rule": "evenodd",
1573
- 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"
1574
- }, null, -1), zo = [
1575
- Lo,
1576
- Oo
1577
- ], So = { class: "mn-l-small" }, Mo = { class: "h3 mn-r-semi mn-thin" }, Ao = { class: "w-max star-container flex-v-center flex" }, Vo = { class: "mn-r-thin pd-r-thin pd-l-thin pd-extra-thin radius-small t-semi uppercase bg-main p-small" }, Po = ["src"], Bo = { class: "p-small t-semi mn-r-thin" }, Do = { class: "p-small" }, To = {
1578
- key: 0,
1579
- class: "pd-medium"
1580
- }, Fo = { class: "mn-small w-100 flex-nowrap flex flex-v-center pd-small bg-white radius-medium" }, jo = { class: "t-black p-medium t-semi" }, Zo = /* @__PURE__ */ t("span", { class: "mn-r-small" }, "30-60min", -1), Io = /* @__PURE__ */ t("span", { class: "mn-r-auto" }, "$50 min", -1), Eo = { class: "d-block o-scroll flex-nowrap flex" }, qo = /* @__PURE__ */ t("button", { class: "flex-center flex-nowrap flex shop-cart-item pd-thin radius-medium w-15r bg-main button" }, "View menu", -1), Ll = {
1581
- __name: "CardOrganization",
1582
- props: {
1583
- organization: Object
1584
- },
1585
- setup(e) {
1586
- return A(), (n, s) => (i(), a("div", {
1587
- class: "w-100 mn-small bg-grey radius-big o-hidden br-solid br-1px br-grey",
1588
- onClick: s[0] || (s[0] = (o) => n.$router.push({ name: "Organization", params: { _id: e.organization._id } }))
1589
- }, [
1590
- t("div", Co, [
1591
- e.organization.profile.photo && e.organization.profile.photo.length > 0 ? (i(), a("img", {
1592
- key: 0,
1593
- src: "/" + e.organization.profile.photo,
1594
- class: "h-4r w-4r radius-extra"
1595
- }, null, 8, xo)) : (i(), a("svg", ko, zo)),
1596
- t("div", So, [
1597
- t("p", Mo, m(e.organization.profile.name), 1),
1598
- t("div", Ao, [
1599
- t("span", Vo, m(e.organization.types[0]), 1),
1600
- (i(), a(v, null, w(5, (o) => t("img", {
1601
- class: "i-small mn-r-thin",
1602
- src: o <= e.organization.rating.median ? "/icons/star.svg" : "/icons/star-stroke.svg"
1603
- }, null, 8, Po)), 64)),
1604
- t("span", Bo, m(e.organization.rating.median), 1),
1605
- t("span", Do, "(" + m(e.organization.rating.amount) + ")", 1)
1606
- ])
1607
- ])
1608
- ]),
1609
- e.organization.products.length > 0 ? (i(), a("div", To, [
1610
- t("div", Fo, [
1611
- t("p", jo, m(e.organization.products.length) + " items: ", 1),
1612
- Zo,
1613
- Io
1614
- ]),
1615
- t("div", Eo, [
1616
- (i(!0), a(v, null, w(e.organization.products, (o) => (i(), b($o, {
1617
- onClick: U((r) => n.$router.push({ name: "Product Organization", params: { _id: e.organization._id, product: o._id } }), ["stop"]),
1618
- key: o._id,
1619
- editable: !1,
1620
- product: o,
1621
- class: "pd-thin radius-medium w-15r br-solid br-grey br-1px bg-white mn-r-thin"
1622
- }, null, 8, ["onClick", "product"]))), 128)),
1623
- qo
1624
- ])
1625
- ])) : h("", !0)
1626
- ]));
1627
- }
1628
- };
1629
- var Ho = Object.defineProperty, Uo = Object.defineProperties, No = Object.getOwnPropertyDescriptors, le = Object.getOwnPropertySymbols, Ro = Object.prototype.hasOwnProperty, Ko = Object.prototype.propertyIsEnumerable, re = (e, n, s) => n in e ? Ho(e, n, { enumerable: !0, configurable: !0, writable: !0, value: s }) : e[n] = s, E = (e, n) => {
1630
- for (var s in n || (n = {}))
1631
- Ro.call(n, s) && re(e, s, n[s]);
1632
- if (le)
1633
- for (var s of le(n))
1634
- Ko.call(n, s) && re(e, s, n[s]);
1635
- return e;
1636
- }, de = (e, n) => Uo(e, No(n));
1637
- const Wo = {
1638
- props: {
1639
- autoscroll: {
1640
- type: Boolean,
1641
- default: !0
1642
- }
1643
- },
1644
- watch: {
1645
- typeAheadPointer() {
1646
- this.autoscroll && this.maybeAdjustScroll();
1647
- },
1648
- open(e) {
1649
- this.autoscroll && e && this.$nextTick(() => this.maybeAdjustScroll());
1650
- }
1651
- },
1652
- methods: {
1653
- maybeAdjustScroll() {
1654
- var e;
1655
- const n = ((e = this.$refs.dropdownMenu) == null ? void 0 : e.children[this.typeAheadPointer]) || !1;
1656
- if (n) {
1657
- const s = this.getDropdownViewport(), { top: o, bottom: r, height: d } = n.getBoundingClientRect();
1658
- if (o < s.top)
1659
- return this.$refs.dropdownMenu.scrollTop = n.offsetTop;
1660
- if (r > s.bottom)
1661
- return this.$refs.dropdownMenu.scrollTop = n.offsetTop - (s.height - d);
1662
- }
1663
- },
1664
- getDropdownViewport() {
1665
- return this.$refs.dropdownMenu ? this.$refs.dropdownMenu.getBoundingClientRect() : {
1666
- height: 0,
1667
- top: 0,
1668
- bottom: 0
1669
- };
1670
- }
1671
- }
1672
- }, Jo = {
1673
- data() {
1674
- return {
1675
- typeAheadPointer: -1
1676
- };
1677
- },
1678
- watch: {
1679
- filteredOptions() {
1680
- for (let e = 0; e < this.filteredOptions.length; e++)
1681
- if (this.selectable(this.filteredOptions[e])) {
1682
- this.typeAheadPointer = e;
1683
- break;
1684
- }
1685
- },
1686
- open(e) {
1687
- e && this.typeAheadToLastSelected();
1688
- },
1689
- selectedValue() {
1690
- this.open && this.typeAheadToLastSelected();
1691
- }
1692
- },
1693
- methods: {
1694
- typeAheadUp() {
1695
- for (let e = this.typeAheadPointer - 1; e >= 0; e--)
1696
- if (this.selectable(this.filteredOptions[e])) {
1697
- this.typeAheadPointer = e;
1698
- break;
1699
- }
1700
- },
1701
- typeAheadDown() {
1702
- for (let e = this.typeAheadPointer + 1; e < this.filteredOptions.length; e++)
1703
- if (this.selectable(this.filteredOptions[e])) {
1704
- this.typeAheadPointer = e;
1705
- break;
1706
- }
1707
- },
1708
- typeAheadSelect() {
1709
- const e = this.filteredOptions[this.typeAheadPointer];
1710
- e && this.selectable(e) && this.select(e);
1711
- },
1712
- typeAheadToLastSelected() {
1713
- this.typeAheadPointer = this.selectedValue.length !== 0 ? this.filteredOptions.indexOf(this.selectedValue[this.selectedValue.length - 1]) : -1;
1714
- }
1715
- }
1716
- }, Yo = {
1717
- props: {
1718
- loading: {
1719
- type: Boolean,
1720
- default: !1
1721
- }
1722
- },
1723
- data() {
1724
- return {
1725
- mutableLoading: !1
1726
- };
1727
- },
1728
- watch: {
1729
- search() {
1730
- this.$emit("search", this.search, this.toggleLoading);
1731
- },
1732
- loading(e) {
1733
- this.mutableLoading = e;
1734
- }
1735
- },
1736
- methods: {
1737
- toggleLoading(e = null) {
1738
- return e == null ? this.mutableLoading = !this.mutableLoading : this.mutableLoading = e;
1739
- }
1740
- }
1741
- }, te = (e, n) => {
1742
- const s = e.__vccOpts || e;
1743
- for (const [o, r] of n)
1744
- s[o] = r;
1745
- return s;
1746
- }, Qo = {}, Xo = {
1747
- xmlns: "http://www.w3.org/2000/svg",
1748
- width: "10",
1749
- height: "10"
1750
- }, Go = /* @__PURE__ */ t("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), ea = [
1751
- Go
1752
- ];
1753
- function ta(e, n) {
1754
- return i(), a("svg", Xo, ea);
1755
- }
1756
- const sa = /* @__PURE__ */ te(Qo, [["render", ta]]), na = {}, ia = {
1757
- xmlns: "http://www.w3.org/2000/svg",
1758
- width: "14",
1759
- height: "10"
1760
- }, oa = /* @__PURE__ */ t("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), aa = [
1761
- oa
1762
- ];
1763
- function la(e, n) {
1764
- return i(), a("svg", ia, aa);
1765
- }
1766
- const ra = /* @__PURE__ */ te(na, [["render", la]]), ce = {
1767
- Deselect: sa,
1768
- OpenIndicator: ra
1769
- }, da = {
1770
- mounted(e, { instance: n }) {
1771
- if (n.appendToBody) {
1772
- const {
1773
- height: s,
1774
- top: o,
1775
- left: r,
1776
- width: d
1777
- } = n.$refs.toggle.getBoundingClientRect();
1778
- let u = window.scrollX || window.pageXOffset, l = window.scrollY || window.pageYOffset;
1779
- e.unbindPosition = n.calculatePosition(e, n, {
1780
- width: d + "px",
1781
- left: u + r + "px",
1782
- top: l + o + s + "px"
1783
- }), document.body.appendChild(e);
1784
- }
1785
- },
1786
- unmounted(e, { instance: n }) {
1787
- n.appendToBody && (e.unbindPosition && typeof e.unbindPosition == "function" && e.unbindPosition(), e.parentNode && e.parentNode.removeChild(e));
1788
- }
1789
- };
1790
- function ca(e) {
1791
- const n = {};
1792
- return Object.keys(e).sort().forEach((s) => {
1793
- n[s] = e[s];
1794
- }), JSON.stringify(n);
1795
- }
1796
- let ua = 0;
1797
- function pa() {
1798
- return ++ua;
1799
- }
1800
- const ma = {
1801
- components: E({}, ce),
1802
- directives: { appendToBody: da },
1803
- mixins: [Wo, Jo, Yo],
1804
- compatConfig: {
1805
- MODE: 3
1806
- },
1807
- emits: [
1808
- "open",
1809
- "close",
1810
- "update:modelValue",
1811
- "search",
1812
- "search:compositionstart",
1813
- "search:compositionend",
1814
- "search:keydown",
1815
- "search:blur",
1816
- "search:focus",
1817
- "search:input",
1818
- "option:created",
1819
- "option:selecting",
1820
- "option:selected",
1821
- "option:deselecting",
1822
- "option:deselected"
1823
- ],
1824
- props: {
1825
- modelValue: {},
1826
- components: {
1827
- type: Object,
1828
- default: () => ({})
1829
- },
1830
- options: {
1831
- type: Array,
1832
- default() {
1833
- return [];
1834
- }
1835
- },
1836
- disabled: {
1837
- type: Boolean,
1838
- default: !1
1839
- },
1840
- clearable: {
1841
- type: Boolean,
1842
- default: !0
1843
- },
1844
- deselectFromDropdown: {
1845
- type: Boolean,
1846
- default: !1
1847
- },
1848
- searchable: {
1849
- type: Boolean,
1850
- default: !0
1851
- },
1852
- multiple: {
1853
- type: Boolean,
1854
- default: !1
1855
- },
1856
- placeholder: {
1857
- type: String,
1858
- default: ""
1859
- },
1860
- transition: {
1861
- type: String,
1862
- default: "vs__fade"
1863
- },
1864
- clearSearchOnSelect: {
1865
- type: Boolean,
1866
- default: !0
1867
- },
1868
- closeOnSelect: {
1869
- type: Boolean,
1870
- default: !0
1871
- },
1872
- label: {
1873
- type: String,
1874
- default: "label"
1875
- },
1876
- autocomplete: {
1877
- type: String,
1878
- default: "off"
1879
- },
1880
- reduce: {
1881
- type: Function,
1882
- default: (e) => e
1883
- },
1884
- selectable: {
1885
- type: Function,
1886
- default: (e) => !0
1887
- },
1888
- getOptionLabel: {
1889
- type: Function,
1890
- default(e) {
1891
- 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)}.
1892
- https://vue-select.org/api/props.html#getoptionlabel`) : e;
1893
- }
1894
- },
1895
- getOptionKey: {
1896
- type: Function,
1897
- default(e) {
1898
- if (typeof e != "object")
1899
- return e;
1900
- try {
1901
- return e.hasOwnProperty("id") ? e.id : ca(e);
1902
- } catch (n) {
1903
- 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.
1904
- https://vue-select.org/api/props.html#getoptionkey`, e, n);
1905
- }
1906
- }
1907
- },
1908
- onTab: {
1909
- type: Function,
1910
- default: function() {
1911
- this.selectOnTab && !this.isComposing && this.typeAheadSelect();
1912
- }
1913
- },
1914
- taggable: {
1915
- type: Boolean,
1916
- default: !1
1917
- },
1918
- tabindex: {
1919
- type: Number,
1920
- default: null
1921
- },
1922
- pushTags: {
1923
- type: Boolean,
1924
- default: !1
1925
- },
1926
- filterable: {
1927
- type: Boolean,
1928
- default: !0
1929
- },
1930
- filterBy: {
1931
- type: Function,
1932
- default(e, n, s) {
1933
- return (n || "").toLocaleLowerCase().indexOf(s.toLocaleLowerCase()) > -1;
1934
- }
1935
- },
1936
- filter: {
1937
- type: Function,
1938
- default(e, n) {
1939
- return e.filter((s) => {
1940
- let o = this.getOptionLabel(s);
1941
- return typeof o == "number" && (o = o.toString()), this.filterBy(s, o, n);
1942
- });
1943
- }
1944
- },
1945
- createOption: {
1946
- type: Function,
1947
- default(e) {
1948
- return typeof this.optionList[0] == "object" ? { [this.label]: e } : e;
1949
- }
1950
- },
1951
- resetOnOptionsChange: {
1952
- default: !1,
1953
- validator: (e) => ["function", "boolean"].includes(typeof e)
1954
- },
1955
- clearSearchOnBlur: {
1956
- type: Function,
1957
- default: function({ clearSearchOnSelect: e, multiple: n }) {
1958
- return e && !n;
1959
- }
1960
- },
1961
- noDrop: {
1962
- type: Boolean,
1963
- default: !1
1964
- },
1965
- inputId: {
1966
- type: String
1967
- },
1968
- dir: {
1969
- type: String,
1970
- default: "auto"
1971
- },
1972
- selectOnTab: {
1973
- type: Boolean,
1974
- default: !1
1975
- },
1976
- selectOnKeyCodes: {
1977
- type: Array,
1978
- default: () => [13]
1979
- },
1980
- searchInputQuerySelector: {
1981
- type: String,
1982
- default: "[type=search]"
1983
- },
1984
- mapKeydown: {
1985
- type: Function,
1986
- default: (e, n) => e
1987
- },
1988
- appendToBody: {
1989
- type: Boolean,
1990
- default: !1
1991
- },
1992
- calculatePosition: {
1993
- type: Function,
1994
- default(e, n, { width: s, top: o, left: r }) {
1995
- e.style.top = o, e.style.left = r, e.style.width = s;
1996
- }
1997
- },
1998
- dropdownShouldOpen: {
1999
- type: Function,
2000
- default({ noDrop: e, open: n, mutableLoading: s }) {
2001
- return e ? !1 : n && !s;
2002
- }
2003
- },
2004
- uid: {
2005
- type: [String, Number],
2006
- default: () => pa()
2007
- }
2008
- },
2009
- data() {
2010
- return {
2011
- search: "",
2012
- open: !1,
2013
- isComposing: !1,
2014
- pushedTags: [],
2015
- _value: [],
2016
- deselectButtons: []
2017
- };
2018
- },
2019
- computed: {
2020
- isReducingValues() {
2021
- return this.$props.reduce !== this.$options.props.reduce.default;
2022
- },
2023
- isTrackingValues() {
2024
- return typeof this.modelValue > "u" || this.isReducingValues;
2025
- },
2026
- selectedValue() {
2027
- let e = this.modelValue;
2028
- return this.isTrackingValues && (e = this.$data._value), e != null && e !== "" ? [].concat(e) : [];
2029
- },
2030
- optionList() {
2031
- return this.options.concat(this.pushTags ? this.pushedTags : []);
2032
- },
2033
- searchEl() {
2034
- return this.$slots.search ? this.$refs.selectedOptions.querySelector(this.searchInputQuerySelector) : this.$refs.search;
2035
- },
2036
- scope() {
2037
- const e = {
2038
- search: this.search,
2039
- loading: this.loading,
2040
- searching: this.searching,
2041
- filteredOptions: this.filteredOptions
2042
- };
2043
- return {
2044
- search: {
2045
- attributes: E({
2046
- disabled: this.disabled,
2047
- placeholder: this.searchPlaceholder,
2048
- tabindex: this.tabindex,
2049
- readonly: !this.searchable,
2050
- id: this.inputId,
2051
- "aria-autocomplete": "list",
2052
- "aria-labelledby": `vs${this.uid}__combobox`,
2053
- "aria-controls": `vs${this.uid}__listbox`,
2054
- ref: "search",
2055
- type: "search",
2056
- autocomplete: this.autocomplete,
2057
- value: this.search
2058
- }, this.dropdownOpen && this.filteredOptions[this.typeAheadPointer] ? {
2059
- "aria-activedescendant": `vs${this.uid}__option-${this.typeAheadPointer}`
2060
- } : {}),
2061
- events: {
2062
- compositionstart: () => this.isComposing = !0,
2063
- compositionend: () => this.isComposing = !1,
2064
- keydown: this.onSearchKeyDown,
2065
- blur: this.onSearchBlur,
2066
- focus: this.onSearchFocus,
2067
- input: (n) => this.search = n.target.value
2068
- }
2069
- },
2070
- spinner: {
2071
- loading: this.mutableLoading
2072
- },
2073
- noOptions: {
2074
- search: this.search,
2075
- loading: this.mutableLoading,
2076
- searching: this.searching
2077
- },
2078
- openIndicator: {
2079
- attributes: {
2080
- ref: "openIndicator",
2081
- role: "presentation",
2082
- class: "vs__open-indicator"
2083
- }
2084
- },
2085
- listHeader: e,
2086
- listFooter: e,
2087
- header: de(E({}, e), { deselect: this.deselect }),
2088
- footer: de(E({}, e), { deselect: this.deselect })
2089
- };
2090
- },
2091
- childComponents() {
2092
- return E(E({}, ce), this.components);
2093
- },
2094
- stateClasses() {
2095
- return {
2096
- "vs--open": this.dropdownOpen,
2097
- "vs--single": !this.multiple,
2098
- "vs--multiple": this.multiple,
2099
- "vs--searching": this.searching && !this.noDrop,
2100
- "vs--searchable": this.searchable && !this.noDrop,
2101
- "vs--unsearchable": !this.searchable,
2102
- "vs--loading": this.mutableLoading,
2103
- "vs--disabled": this.disabled
2104
- };
2105
- },
2106
- searching() {
2107
- return !!this.search;
2108
- },
2109
- dropdownOpen() {
2110
- return this.dropdownShouldOpen(this);
2111
- },
2112
- searchPlaceholder() {
2113
- return this.isValueEmpty && this.placeholder ? this.placeholder : void 0;
2114
- },
2115
- filteredOptions() {
2116
- const e = [].concat(this.optionList);
2117
- if (!this.filterable && !this.taggable)
2118
- return e;
2119
- const n = this.search.length ? this.filter(e, this.search, this) : e;
2120
- if (this.taggable && this.search.length) {
2121
- const s = this.createOption(this.search);
2122
- this.optionExists(s) || n.unshift(s);
2123
- }
2124
- return n;
2125
- },
2126
- isValueEmpty() {
2127
- return this.selectedValue.length === 0;
2128
- },
2129
- showClearButton() {
2130
- return !this.multiple && this.clearable && !this.open && !this.isValueEmpty;
2131
- }
2132
- },
2133
- watch: {
2134
- options(e, n) {
2135
- const s = () => typeof this.resetOnOptionsChange == "function" ? this.resetOnOptionsChange(e, n, this.selectedValue) : this.resetOnOptionsChange;
2136
- !this.taggable && s() && this.clearSelection(), this.modelValue && this.isTrackingValues && this.setInternalValueFromOptions(this.modelValue);
2137
- },
2138
- modelValue: {
2139
- immediate: !0,
2140
- handler(e) {
2141
- this.isTrackingValues && this.setInternalValueFromOptions(e);
2142
- }
2143
- },
2144
- multiple() {
2145
- this.clearSelection();
2146
- },
2147
- open(e) {
2148
- this.$emit(e ? "open" : "close");
2149
- }
2150
- },
2151
- created() {
2152
- this.mutableLoading = this.loading;
2153
- },
2154
- methods: {
2155
- setInternalValueFromOptions(e) {
2156
- Array.isArray(e) ? this.$data._value = e.map((n) => this.findOptionFromReducedValue(n)) : this.$data._value = this.findOptionFromReducedValue(e);
2157
- },
2158
- select(e) {
2159
- 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);
2160
- },
2161
- deselect(e) {
2162
- this.$emit("option:deselecting", e), this.updateValue(this.selectedValue.filter((n) => !this.optionComparator(n, e))), this.$emit("option:deselected", e);
2163
- },
2164
- clearSelection() {
2165
- this.updateValue(this.multiple ? [] : null);
2166
- },
2167
- onAfterSelect(e) {
2168
- this.closeOnSelect && (this.open = !this.open, this.searchEl.blur()), this.clearSearchOnSelect && (this.search = "");
2169
- },
2170
- updateValue(e) {
2171
- typeof this.modelValue > "u" && (this.$data._value = e), e !== null && (Array.isArray(e) ? e = e.map((n) => this.reduce(n)) : e = this.reduce(e)), this.$emit("update:modelValue", e);
2172
- },
2173
- toggleDropdown(e) {
2174
- const n = e.target !== this.searchEl;
2175
- n && e.preventDefault();
2176
- const s = [
2177
- ...this.deselectButtons || [],
2178
- this.$refs.clearButton
2179
- ];
2180
- if (this.searchEl === void 0 || s.filter(Boolean).some((o) => o.contains(e.target) || o === e.target)) {
2181
- e.preventDefault();
2182
- return;
2183
- }
2184
- this.open && n ? this.searchEl.blur() : this.disabled || (this.open = !0, this.searchEl.focus());
2185
- },
2186
- isOptionSelected(e) {
2187
- return this.selectedValue.some((n) => this.optionComparator(n, e));
2188
- },
2189
- isOptionDeselectable(e) {
2190
- return this.isOptionSelected(e) && this.deselectFromDropdown;
2191
- },
2192
- optionComparator(e, n) {
2193
- return this.getOptionKey(e) === this.getOptionKey(n);
2194
- },
2195
- findOptionFromReducedValue(e) {
2196
- const n = (o) => JSON.stringify(this.reduce(o)) === JSON.stringify(e), s = [...this.options, ...this.pushedTags].filter(n);
2197
- return s.length === 1 ? s[0] : s.find((o) => this.optionComparator(o, this.$data._value)) || e;
2198
- },
2199
- closeSearchOptions() {
2200
- this.open = !1, this.$emit("search:blur");
2201
- },
2202
- maybeDeleteValue() {
2203
- if (!this.searchEl.value.length && this.selectedValue && this.selectedValue.length && this.clearable) {
2204
- let e = null;
2205
- this.multiple && (e = [
2206
- ...this.selectedValue.slice(0, this.selectedValue.length - 1)
2207
- ]), this.updateValue(e);
2208
- }
2209
- },
2210
- optionExists(e) {
2211
- return this.optionList.some((n) => this.optionComparator(n, e));
2212
- },
2213
- normalizeOptionForSlot(e) {
2214
- return typeof e == "object" ? e : { [this.label]: e };
2215
- },
2216
- pushTag(e) {
2217
- this.pushedTags.push(e);
2218
- },
2219
- onEscape() {
2220
- this.search.length ? this.search = "" : this.searchEl.blur();
2221
- },
2222
- onSearchBlur() {
2223
- if (this.mousedown && !this.searching)
2224
- this.mousedown = !1;
2225
- else {
2226
- const { clearSearchOnSelect: e, multiple: n } = this;
2227
- this.clearSearchOnBlur({ clearSearchOnSelect: e, multiple: n }) && (this.search = ""), this.closeSearchOptions();
2228
- return;
2229
- }
2230
- if (this.search.length === 0 && this.options.length === 0) {
2231
- this.closeSearchOptions();
2232
- return;
2233
- }
2234
- },
2235
- onSearchFocus() {
2236
- this.open = !0, this.$emit("search:focus");
2237
- },
2238
- onMousedown() {
2239
- this.mousedown = !0;
2240
- },
2241
- onMouseUp() {
2242
- this.mousedown = !1;
2243
- },
2244
- onSearchKeyDown(e) {
2245
- const n = (r) => (r.preventDefault(), !this.isComposing && this.typeAheadSelect()), s = {
2246
- 8: (r) => this.maybeDeleteValue(),
2247
- 9: (r) => this.onTab(),
2248
- 27: (r) => this.onEscape(),
2249
- 38: (r) => (r.preventDefault(), this.typeAheadUp()),
2250
- 40: (r) => (r.preventDefault(), this.typeAheadDown())
2251
- };
2252
- this.selectOnKeyCodes.forEach((r) => s[r] = n);
2253
- const o = this.mapKeydown(s, this);
2254
- if (typeof o[e.keyCode] == "function")
2255
- return o[e.keyCode](e);
2256
- }
2257
- }
2258
- }, ha = ["dir"], _a = ["id", "aria-expanded", "aria-owns"], fa = {
2259
- ref: "selectedOptions",
2260
- class: "vs__selected-options"
2261
- }, ga = ["disabled", "title", "aria-label", "onClick"], ba = {
2262
- ref: "actions",
2263
- class: "vs__actions"
2264
- }, va = ["disabled"], wa = { class: "vs__spinner" }, ya = ["id"], $a = ["id", "aria-selected", "onMouseover", "onClick"], Ca = {
2265
- key: 0,
2266
- class: "vs__no-options"
2267
- }, xa = /* @__PURE__ */ Z(" Sorry, no matching options. "), ka = ["id"];
2268
- function La(e, n, s, o, r, d) {
2269
- const u = xe("append-to-body");
2270
- return i(), a("div", {
2271
- dir: s.dir,
2272
- class: B(["v-select", d.stateClasses])
2273
- }, [
2274
- L(e.$slots, "header", z(S(d.scope.header))),
2275
- t("div", {
2276
- id: `vs${s.uid}__combobox`,
2277
- ref: "toggle",
2278
- class: "vs__dropdown-toggle",
2279
- role: "combobox",
2280
- "aria-expanded": d.dropdownOpen.toString(),
2281
- "aria-owns": `vs${s.uid}__listbox`,
2282
- "aria-label": "Search for option",
2283
- onMousedown: n[1] || (n[1] = (l) => d.toggleDropdown(l))
2284
- }, [
2285
- t("div", fa, [
2286
- (i(!0), a(v, null, w(d.selectedValue, (l, c) => L(e.$slots, "selected-option-container", {
2287
- option: d.normalizeOptionForSlot(l),
2288
- deselect: d.deselect,
2289
- multiple: s.multiple,
2290
- disabled: s.disabled
2291
- }, () => [
2292
- (i(), a("span", {
2293
- key: s.getOptionKey(l),
2294
- class: "vs__selected"
2295
- }, [
2296
- L(e.$slots, "selected-option", z(S(d.normalizeOptionForSlot(l))), () => [
2297
- Z(m(s.getOptionLabel(l)), 1)
2298
- ]),
2299
- s.multiple ? (i(), a("button", {
2300
- key: 0,
2301
- ref_for: !0,
2302
- ref: (p) => r.deselectButtons[c] = p,
2303
- disabled: s.disabled,
2304
- type: "button",
2305
- class: "vs__deselect",
2306
- title: `Deselect ${s.getOptionLabel(l)}`,
2307
- "aria-label": `Deselect ${s.getOptionLabel(l)}`,
2308
- onClick: (p) => d.deselect(l)
2309
- }, [
2310
- (i(), b(K(d.childComponents.Deselect)))
2311
- ], 8, ga)) : h("", !0)
2312
- ]))
2313
- ])), 256)),
2314
- L(e.$slots, "search", z(S(d.scope.search)), () => [
2315
- t("input", ne({ class: "vs__search" }, d.scope.search.attributes, ke(d.scope.search.events)), null, 16)
2316
- ])
2317
- ], 512),
2318
- t("div", ba, [
2319
- q(t("button", {
2320
- ref: "clearButton",
2321
- disabled: s.disabled,
2322
- type: "button",
2323
- class: "vs__clear",
2324
- title: "Clear Selected",
2325
- "aria-label": "Clear Selected",
2326
- onClick: n[0] || (n[0] = (...l) => d.clearSelection && d.clearSelection(...l))
2327
- }, [
2328
- (i(), b(K(d.childComponents.Deselect)))
2329
- ], 8, va), [
2330
- [ie, d.showClearButton]
2331
- ]),
2332
- L(e.$slots, "open-indicator", z(S(d.scope.openIndicator)), () => [
2333
- s.noDrop ? h("", !0) : (i(), b(K(d.childComponents.OpenIndicator), z(ne({ key: 0 }, d.scope.openIndicator.attributes)), null, 16))
2334
- ]),
2335
- L(e.$slots, "spinner", z(S(d.scope.spinner)), () => [
2336
- q(t("div", wa, "Loading...", 512), [
2337
- [ie, e.mutableLoading]
2338
- ])
2339
- ])
2340
- ], 512)
2341
- ], 40, _a),
2342
- f(D, { name: s.transition }, {
2343
- default: $(() => [
2344
- d.dropdownOpen ? q((i(), a("ul", {
2345
- id: `vs${s.uid}__listbox`,
2346
- ref: "dropdownMenu",
2347
- key: `vs${s.uid}__listbox`,
2348
- class: "vs__dropdown-menu",
2349
- role: "listbox",
2350
- tabindex: "-1",
2351
- onMousedown: n[2] || (n[2] = U((...l) => d.onMousedown && d.onMousedown(...l), ["prevent"])),
2352
- onMouseup: n[3] || (n[3] = (...l) => d.onMouseUp && d.onMouseUp(...l))
2353
- }, [
2354
- L(e.$slots, "list-header", z(S(d.scope.listHeader))),
2355
- (i(!0), a(v, null, w(d.filteredOptions, (l, c) => (i(), a("li", {
2356
- id: `vs${s.uid}__option-${c}`,
2357
- key: s.getOptionKey(l),
2358
- role: "option",
2359
- class: B(["vs__dropdown-option", {
2360
- "vs__dropdown-option--deselect": d.isOptionDeselectable(l) && c === e.typeAheadPointer,
2361
- "vs__dropdown-option--selected": d.isOptionSelected(l),
2362
- "vs__dropdown-option--highlight": c === e.typeAheadPointer,
2363
- "vs__dropdown-option--disabled": !s.selectable(l)
2364
- }]),
2365
- "aria-selected": c === e.typeAheadPointer ? !0 : null,
2366
- onMouseover: (p) => s.selectable(l) ? e.typeAheadPointer = c : null,
2367
- onClick: U((p) => s.selectable(l) ? d.select(l) : null, ["prevent", "stop"])
2368
- }, [
2369
- L(e.$slots, "option", z(S(d.normalizeOptionForSlot(l))), () => [
2370
- Z(m(s.getOptionLabel(l)), 1)
2371
- ])
2372
- ], 42, $a))), 128)),
2373
- d.filteredOptions.length === 0 ? (i(), a("li", Ca, [
2374
- L(e.$slots, "no-options", z(S(d.scope.noOptions)), () => [
2375
- xa
2376
- ])
2377
- ])) : h("", !0),
2378
- L(e.$slots, "list-footer", z(S(d.scope.listFooter)))
2379
- ], 40, ya)), [
2380
- [u]
2381
- ]) : (i(), a("ul", {
2382
- key: 1,
2383
- id: `vs${s.uid}__listbox`,
2384
- role: "listbox",
2385
- style: { display: "none", visibility: "hidden" }
2386
- }, null, 8, ka))
2387
- ]),
2388
- _: 3
2389
- }, 8, ["name"]),
2390
- L(e.$slots, "footer", z(S(d.scope.footer)))
2391
- ], 10, ha);
2392
- }
2393
- const ye = /* @__PURE__ */ te(ma, [["render", La]]);
2394
- const Oa = { class: "w-100" }, za = { class: "flex" }, Sa = { class: "mn-regular" }, Ma = { class: "flex-column flex-wrap block" }, Aa = {
2395
- key: 0,
2396
- class: "w-100"
2397
- }, Va = { class: "w-100 flex-center flex-nowrap flex" }, Pa = { class: "mn-r-regular w-100" }, Ba = ["onClick"], Da = {
2398
- key: 0,
2399
- class: "mn-t-small mn-small w-100"
2400
- }, Ol = {
2401
- __name: "EditArray",
2402
- props: {
2403
- name: Object,
2404
- items: Array
2405
- },
2406
- emits: ["add", "remove"],
2407
- setup(e, { emit: n }) {
2408
- A(), T();
2409
- let s = Le([]);
2410
- Oe(s);
2411
- const o = C(null), r = C(null), d = C(null);
2412
- k(() => {
2413
- if (o.value === null || d.value === null || d.value === "")
2414
- return !0;
2415
- if (o.value.modifications.length > 0)
2416
- return r.value === null;
2417
- });
2418
- function u(l) {
2419
- store.commit("leftovers/deleteItemFromLeftover", l);
2420
- }
2421
- return (l, c) => (i(), a("div", Oa, [
2422
- t("div", za, [
2423
- t("h3", Sa, m(e.name), 1)
2424
- ]),
2425
- t("ul", Ma, [
2426
- e.items.length < 1 ? (i(), a("span", Aa, "Вы еще не добавили позиции")) : h("", !0),
2427
- (i(!0), a(v, null, w(e.items, (p, _) => (i(), a("li", {
2428
- key: p._id,
2429
- class: "w-100"
2430
- }, [
2431
- t("div", Va, [
2432
- t("span", Pa, m(p.name), 1),
2433
- t("a", {
2434
- class: "w-20 button",
2435
- onClick: (g) => u(p)
2436
- }, "Удалить", 8, Ba)
2437
- ]),
2438
- _ != e.items.length - 1 ? (i(), a("hr", Da)) : h("", !0)
2439
- ]))), 128))
2440
- ])
2441
- ]));
2442
- }
2443
- }, Ta = { class: "unit" }, Fa = { class: "unit-details" }, ja = { key: 0 }, Za = { class: "subunits" }, zl = {
2444
- __name: "Unit",
2445
- props: {
2446
- unit: {
2447
- type: Object,
2448
- required: !0
2449
- },
2450
- editMode: {
2451
- type: Boolean,
2452
- required: !0
2453
- }
2454
- },
2455
- setup(e) {
2456
- const n = e, s = C({ ...n.unit });
2457
- N(n.unit, () => {
2458
- s.value = { ...n.unit };
2459
- });
2460
- async function o() {
2461
- emit("unit-updated", s.value);
2462
- }
2463
- async function r() {
2464
- emit("subunit-added", n.unit._id);
2465
- }
2466
- return (d, u) => {
2467
- const l = Q("unit-component");
2468
- return i(), a("div", Ta, [
2469
- t("div", Fa, [
2470
- t("h3", null, m(e.unit.name), 1),
2471
- t("p", null, m(e.unit.description), 1),
2472
- e.editMode ? (i(), a("div", ja, [
2473
- q(t("input", {
2474
- "onUpdate:modelValue": u[0] || (u[0] = (c) => s.value.name = c),
2475
- placeholder: "Название отдела"
2476
- }, null, 512), [
2477
- [oe, s.value.name]
2478
- ]),
2479
- q(t("input", {
2480
- "onUpdate:modelValue": u[1] || (u[1] = (c) => s.value.description = c),
2481
- placeholder: "Описание отдела"
2482
- }, null, 512), [
2483
- [oe, s.value.description]
2484
- ]),
2485
- t("button", { onClick: o }, "Сохранить"),
2486
- t("button", { onClick: r }, "Добавить подотдел")
2487
- ])) : h("", !0)
2488
- ]),
2489
- t("div", Za, [
2490
- (i(!0), a(v, null, w(e.unit.subunits, (c, p) => (i(), b(l, {
2491
- key: p,
2492
- unit: c,
2493
- "edit-mode": e.editMode
2494
- }, null, 8, ["unit", "edit-mode"]))), 128))
2495
- ])
2496
- ]);
2497
- };
2498
- }
2499
- };
2500
- const Ia = { class: "br-grey radius-small mn-small" }, Ea = {
2501
- key: 1,
2502
- class: "pd-small br-grey br-1px br-solid"
2503
- }, qa = ["disabled"], Ha = {
2504
- __name: "DepartmentMemberModify",
2505
- props: {
2506
- isPopupOpen: Boolean,
2507
- department: Number,
2508
- departments: Array,
2509
- maindepartment: Object,
2510
- alldepartments: Array
2511
- },
2512
- emits: ["callback", "remove"],
2513
- setup(e, { emit: n }) {
2514
- const s = e, o = C({
2515
- subdepartment: null
2516
- });
2517
- s.department !== null && (o.value = s.departments[s.department]);
2518
- function r(c, p, _) {
2519
- return c.filter((g) => !(p.some((O) => O._id === g._id) || _._id === g._id));
2520
- }
2521
- const d = k(() => r(s.alldepartments, s.departments, s.maindepartment));
2522
- async function u() {
2523
- s.departments.push(o.value.subdepartment), n("callback");
2524
- }
2525
- async function l() {
2526
- s.departments.splice(s.department, 1), n("callback");
2527
- }
2528
- return (c, p) => (i(), a("div", null, [
2529
- t("div", Ia, [
2530
- s.department === null ? (i(), b(y(ye), {
2531
- key: 0,
2532
- modelValue: o.value.subdepartment,
2533
- "onUpdate:modelValue": p[0] || (p[0] = (_) => o.value.subdepartment = _),
2534
- options: y(d),
2535
- "get-option-label": (_) => _.name,
2536
- class: "w-100 mn-small"
2537
- }, null, 8, ["modelValue", "options", "get-option-label"])) : (i(), a("div", Ea, m(o.value.name ? o.value.name : "Безымянный"), 1))
2538
- ]),
2539
- s.department === null ? (i(), a("button", {
2540
- key: 0,
2541
- disabled: !o.value.subdepartment,
2542
- onClick: u,
2543
- class: "w-100 button bg-blue t-white"
2544
- }, " Добавить отдел ", 8, qa)) : h("", !0),
2545
- s.department !== null ? (i(), a("button", {
2546
- key: 1,
2547
- onClick: l,
2548
- class: "w-100 button bg-red t-white"
2549
- }, " Удалить отдел ")) : h("", !0)
2550
- ]));
2551
- }
2552
- }, Sl = /* @__PURE__ */ V(Ha, [["__scopeId", "data-v-4bf9162d"]]);
2553
- const Ua = { class: "br-grey radius-small mn-small" }, Na = {
2554
- key: 1,
2555
- class: "pd-small br-grey br-1px br-solid"
2556
- }, Ra = ["disabled"], Ka = {
2557
- __name: "DepartmentSubDepartmentModify",
2558
- props: {
2559
- isPopupOpen: Boolean,
2560
- department: Number,
2561
- departments: Array,
2562
- maindepartment: Object,
2563
- alldepartments: Array
2564
- },
2565
- emits: ["callback", "remove"],
2566
- setup(e, { emit: n }) {
2567
- const s = e, o = C({
2568
- subdepartment: null
2569
- });
2570
- s.department !== null && (o.value = s.departments[s.department]);
2571
- function r(c, p, _) {
2572
- return c.filter((g) => !(p.some((O) => O._id === g._id) || _._id === g._id));
2573
- }
2574
- const d = k(() => r(s.alldepartments, s.departments, s.maindepartment));
2575
- async function u() {
2576
- s.departments.push(o.value.subdepartment), n("callback");
2577
- }
2578
- async function l() {
2579
- s.departments.splice(s.department, 1), n("callback");
2580
- }
2581
- return (c, p) => (i(), a("div", null, [
2582
- t("div", Ua, [
2583
- s.department === null ? (i(), b(y(ye), {
2584
- key: 0,
2585
- modelValue: o.value.subdepartment,
2586
- "onUpdate:modelValue": p[0] || (p[0] = (_) => o.value.subdepartment = _),
2587
- options: y(d),
2588
- "get-option-label": (_) => _.name,
2589
- class: "w-100 mn-small"
2590
- }, null, 8, ["modelValue", "options", "get-option-label"])) : (i(), a("div", Na, m(o.value.name ? o.value.name : "Безымянный"), 1))
2591
- ]),
2592
- s.department === null ? (i(), a("button", {
2593
- key: 0,
2594
- disabled: !o.value.subdepartment,
2595
- onClick: u,
2596
- class: "w-100 button bg-blue t-white"
2597
- }, " Добавить отдел ", 8, Ra)) : h("", !0),
2598
- s.department !== null ? (i(), a("button", {
2599
- key: 1,
2600
- onClick: l,
2601
- class: "w-100 button bg-red t-white"
2602
- }, " Удалить отдел ")) : h("", !0)
2603
- ]));
2604
- }
2605
- }, Ml = /* @__PURE__ */ V(Ka, [["__scopeId", "data-v-09bfd344"]]);
2606
- const Wa = { class: "br-grey radius-small mn-small" }, Ja = {
2607
- __name: "Places",
2608
- props: {
2609
- isPopupOpen: Boolean,
2610
- place: Number,
2611
- places: Array
2612
- },
2613
- emits: ["callback"],
2614
- setup(e, { emit: n }) {
2615
- const s = e, o = C({
2616
- logo: "",
2617
- name: "",
2618
- address: ""
2619
- });
2620
- s.place !== null && (o.value = s.places[s.place]);
2621
- const r = C(null);
2622
- async function d() {
2623
- try {
2624
- await De(
2625
- r,
2626
- Te,
2627
- o.value.name,
2628
- "Некорректное название"
2629
- );
2630
- } catch {
2631
- throw new Error();
2632
- }
2633
- s.place !== null ? (s.places[s.place] = o.value, n("callback")) : (s.places.push(o.value), n("callback"));
2634
- }
2635
- return (u, l) => (i(), a("div", null, [
2636
- t("div", Wa, [
2637
- f(G, {
2638
- options: [
2639
- { name: "Кафе", value: "cafe" },
2640
- { name: "Бар", value: "bar" },
2641
- { name: "Ресторан", value: "restaraunt" },
2642
- { name: "Пиццерия", value: "pizzeria" },
2643
- { name: "Ночной клуб", value: "night-club" },
2644
- { name: "Шаверма", value: "shaverma" },
2645
- { name: "Кофейня", value: "coffee" }
2646
- ],
2647
- prop: o.value,
2648
- content: "type",
2649
- label: "Тип",
2650
- placeholder: "Тип заведения",
2651
- size: "small"
2652
- }, null, 8, ["prop"]),
2653
- f(j, {
2654
- field: o.value.name,
2655
- "onUpdate:field": l[0] || (l[0] = (c) => o.value.name = c),
2656
- label: "Название",
2657
- validation: r.value,
2658
- placeholder: "Введите название места"
2659
- }, null, 8, ["field", "validation"]),
2660
- f(j, {
2661
- field: o.value.address,
2662
- "onUpdate:field": l[1] || (l[1] = (c) => o.value.address = c),
2663
- label: "Адрес",
2664
- validation: r.value,
2665
- placeholder: "Введите адрес места"
2666
- }, null, 8, ["field", "validation"]),
2667
- f(j, {
2668
- field: o.value.phone,
2669
- "onUpdate:field": l[2] || (l[2] = (c) => o.value.phone = c),
2670
- label: "Телефон",
2671
- validation: r.value,
2672
- placeholder: "Введите телефон места"
2673
- }, null, 8, ["field", "validation"])
2674
- ]),
2675
- t("button", {
2676
- onClick: d,
2677
- class: "w-100 button bg-blue t-white"
2678
- }, m(s.place !== null ? "Редактировать заведение" : "Добавить заведение"), 1)
2679
- ]));
2680
- }
2681
- }, Al = /* @__PURE__ */ V(Ja, [["__scopeId", "data-v-9e5ccdac"]]);
2682
- const Ya = (e) => (ue("data-v-20739d92"), e = e(), pe(), e), Qa = { class: "documents" }, Xa = /* @__PURE__ */ Ya(() => /* @__PURE__ */ t("h3", { class: "mn-small" }, "Список документов", -1)), Ga = { class: "mn-big cols-4" }, el = ["onClick"], tl = { class: "mn-small" }, sl = { class: "t-semi t-transp radius-small" }, nl = {
2683
- __name: "Documents",
2684
- setup(e) {
2685
- A(), T();
2686
- let n = [{
2687
- name: "Паспорт",
2688
- status: "Не добавлен",
2689
- inputs: [{
2690
- type: "text",
2691
- name: "Номер и серия"
2692
- }, {
2693
- type: "text",
2694
- name: "Место выдачи"
2695
- }, {
2696
- type: "text",
2697
- name: "Дата выдачи"
2698
- }]
2699
- }, {
2700
- name: "ИНН",
2701
- status: "Не добавлен",
2702
- inputs: [{
2703
- type: "text",
2704
- name: "Дата регистрации"
2705
- }]
2706
- }, {
2707
- name: "СНИЛС",
2708
- status: "Не добавлен",
2709
- inputs: [{
2710
- type: "text",
2711
- name: "Дата регистрации"
2712
- }]
2713
- }, {
2714
- name: "Военный билет",
2715
- status: "Не добавлен",
2716
- inputs: [{
2717
- type: "text",
2718
- name: "Дата регистрации"
2719
- }]
2720
- }];
2721
- const s = C(!1), o = C(null), r = (l) => {
2722
- o.value = l, s.value = !0;
2723
- }, d = () => {
2724
- s.value = !1;
2725
- }, u = () => {
2726
- d();
2727
- };
2728
- return ze(() => {
2729
- }), (l, c) => {
2730
- const p = Q("Popup");
2731
- return i(), a("div", Qa, [
2732
- Xa,
2733
- t("div", Ga, [
2734
- (i(!0), a(v, null, w(y(n), (_, g) => (i(), a("div", {
2735
- key: g,
2736
- onClick: (O) => r(g),
2737
- class: "h-100 pd-medium bg-white radius-small"
2738
- }, [
2739
- t("h3", tl, m(_.name), 1),
2740
- t("p", sl, m(_.status), 1)
2741
- ], 8, el))), 128))
2742
- ]),
2743
- f(p, {
2744
- title: "Добавить документ",
2745
- onClosePopup: d,
2746
- isPopupOpen: s.value
2747
- }, {
2748
- default: $(() => [
2749
- (i(!0), a(v, null, w(y(n)[o.value].inputs, (_) => (i(), a("div", {
2750
- key: _.name
2751
- }, [
2752
- f(j, {
2753
- field: _.value,
2754
- "onUpdate:field": (g) => _.value = g,
2755
- label: _.name,
2756
- _id: _.name,
2757
- placeholder: _.name,
2758
- class: "w-100"
2759
- }, null, 8, ["field", "onUpdate:field", "label", "_id", "placeholder"])
2760
- ]))), 128)),
2761
- t("button", {
2762
- onClick: u,
2763
- class: "w-100 mn-small button"
2764
- }, "Отправить на верификацию")
2765
- ]),
2766
- _: 1
2767
- }, 8, ["isPopupOpen"])
2768
- ]);
2769
- };
2770
- }
2771
- }, Vl = /* @__PURE__ */ V(nl, [["__scopeId", "data-v-20739d92"]]), il = {};
2772
- function ol(e, n) {
2773
- const s = Q("router-view");
2774
- return i(), b(s, null, {
2775
- default: $(({ Component: o, route: r }) => [
2776
- (i(), b(K(o)))
2777
- ]),
2778
- _: 1
2779
- });
2780
- }
2781
- const al = /* @__PURE__ */ V(il, [["render", ol]]), Pl = [{
2782
- path: "organizations",
2783
- component: al,
2784
- meta: {
2785
- title: {
2786
- en: "Organizations",
2787
- ru: "Организации"
2788
- }
2789
- },
2790
- children: [{
2791
- path: ":_id",
2792
- name: "Organization",
2793
- meta: {
2794
- title: {
2795
- en: "Organization",
2796
- ru: "Организация"
2797
- }
2798
- },
2799
- component: () => Promise.resolve().then(() => Xn)
2800
- }, {
2801
- path: "create",
2802
- name: "Create Organization",
2803
- title: {
2804
- en: "Create Organization",
2805
- ru: "Создать Организацию"
2806
- },
2807
- component: () => Promise.resolve().then(() => ae)
2808
- }, {
2809
- path: ":_id/edit",
2810
- name: "Organization Edit",
2811
- meta: {
2812
- title: {
2813
- en: "Edit Organization",
2814
- ru: "Редактировать Организацию"
2815
- }
2816
- },
2817
- component: () => Promise.resolve().then(() => ae)
2818
- }, {
2819
- path: ":_id/departments/create",
2820
- name: "Department Creation",
2821
- meta: {
2822
- title: "Создание отдела"
2823
- },
2824
- component: () => import(
2825
- /* webpackChunkName: "department" */
2826
- "./DepartmentEdit-9e6fe007.mjs"
2827
- )
2828
- }, {
2829
- path: ":_id/departments/:deparment",
2830
- name: "Department",
2831
- meta: {
2832
- title: "Отдел"
2833
- },
2834
- component: () => Promise.resolve().then(() => hi)
2835
- }, {
2836
- path: ":_id/departments/:department/edit",
2837
- name: "Department Edit",
2838
- meta: {
2839
- title: "Редактирование отдела"
2840
- },
2841
- component: () => import(
2842
- /* webpackChunkName: "department" */
2843
- "./DepartmentEdit-9e6fe007.mjs"
2844
- )
2845
- }, {
2846
- path: ":_id/products/:product",
2847
- name: "Product Organization",
2848
- meta: {
2849
- title: {
2850
- en: "Product",
2851
- ru: "Продукт"
2852
- }
2853
- },
2854
- component: () => import(
2855
- /* webpackChunkName: 'Product' */
2856
- "./Product-45a6e7bd.mjs"
2857
- )
2858
- }, {
2859
- path: ":_id/products/:product/edit",
2860
- name: "ProductEdit",
2861
- component: () => import(
2862
- /* webpackChunkName: 'ProductPageEdit' */
2863
- "./ProductEdit-9e579dd7.mjs"
2864
- )
2865
- }, {
2866
- path: ":_id/products/add",
2867
- name: "AddProduct",
2868
- component: () => import(
2869
- /* webpackChunkName: 'ProductPageEdit' */
2870
- "./ProductEdit-9e579dd7.mjs"
2871
- )
2872
- }]
2873
- }];
2874
- export {
2875
- ve as D,
2876
- Al as P,
2877
- we as U,
2878
- vs as _,
2879
- ls as a,
2880
- Qn as b,
2881
- mi as c,
2882
- xl as d,
2883
- Ii as e,
2884
- kl as f,
2885
- Ll as g,
2886
- Ol as h,
2887
- zl as i,
2888
- Sl as j,
2889
- Ml as k,
2890
- Xe as l,
2891
- Sn as m,
2892
- vn as n,
2893
- Et as o,
2894
- Cl as p,
2895
- Vl as q,
2896
- Un as r,
2897
- Pl as s
2898
- };