@ozdao/prometheus-framework 0.0.88 → 0.0.90

Sign up to get free protection for your applications and to get access to all the features.
Files changed (520) hide show
  1. package/dist/{Breadcrumbs.vue_vue_type_style_index_0_lang-cdbafd07.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-925a972b.js → Chips-2a0d9bfe.js} +1 -1
  8. package/dist/Chips-f0b7ce36.mjs +110 -0
  9. package/dist/{Feed-a31c43c2.mjs → Feed-8bbb7077.mjs} +100 -95
  10. package/dist/{Feed-dc8b66bf.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-f0ad8b9a.mjs +205 -0
  15. package/dist/{Image-9a870c88.js → Image-0f2814f0.js} +2 -2
  16. package/dist/{Image-6c7584f5.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-0c791801.mjs → Popup-31c7ffc6.mjs} +1 -1
  21. package/dist/{Product-2fbf9d99.js → Product-54854cd1.js} +2 -2
  22. package/dist/{Product-1724d88d.mjs → Product-58a83c67.mjs} +19 -18
  23. package/dist/ProductEdit-36e5cfdd.js +1 -0
  24. package/dist/{ProductEdit-20709821.mjs → ProductEdit-56752bbe.mjs} +32 -31
  25. package/dist/{ProfileBlogposts-fb014bc6.mjs → ProfileBlogposts-67e1bd8f.mjs} +13 -12
  26. package/dist/ProfileBlogposts-a798df3d.js +1 -0
  27. package/dist/{ProfileComments-58094a50.mjs → ProfileComments-17352b6a.mjs} +9 -8
  28. package/dist/ProfileComments-473c3413.js +1 -0
  29. package/dist/{ProfileEvents-5d206e3d.mjs → ProfileEvents-76166bc5.mjs} +15 -14
  30. package/dist/ProfileEvents-cdebd612.js +1 -0
  31. package/dist/ProfileLikes-da6303a4.js +1 -0
  32. package/dist/{ProfileLikes-503712ec.mjs → ProfileLikes-f838ff5e.mjs} +13 -12
  33. package/dist/ProfileOrganizations-5348e892.js +1 -0
  34. package/dist/{ProfileOrganizations-32ab1e30.mjs → ProfileOrganizations-58ebfe44.mjs} +9 -8
  35. package/dist/Publics-e14d36ed.js +1 -0
  36. package/dist/{Publics-9ebffff1.mjs → Publics-fcb1f708.mjs} +17 -16
  37. package/dist/{Tab-fcb73759.mjs → Tab-a243605d.mjs} +1 -1
  38. package/dist/{UploadImage-441e8526.js → UploadImage-73d66f27.js} +1 -1
  39. package/dist/{UploadImage-d33b293e.mjs → UploadImage-a3ef4012.mjs} +1 -1
  40. package/dist/_plugin-vue_export-helper-dad06003.mjs +9 -0
  41. package/dist/_plugin-vue_export-helper-f246444f.js +1 -0
  42. package/dist/{auth-8b5aac7a.mjs → auth-5217f6a5.mjs} +13 -17
  43. package/dist/auth-5a58f8cb.js +8 -0
  44. package/dist/auth.client.cjs +8 -8
  45. package/dist/auth.client.js +18 -17
  46. package/dist/{auth.validation-093babe9.mjs → auth.validation-9f87ea95.mjs} +1 -1
  47. package/dist/{auth.validation-a18510e8.js → auth.validation-be05e981.js} +1 -1
  48. package/dist/community.client.cjs +1 -1
  49. package/dist/community.client.js +28 -26
  50. package/dist/community.server.js +7 -167
  51. package/dist/community.server.mjs +7 -167
  52. package/dist/components/Address/Address.vue.d.ts.map +1 -1
  53. package/dist/components/Button/Button.vue.d.ts.map +1 -1
  54. package/dist/components/Checkbox/Checkbox.vue.d.ts.map +1 -1
  55. package/dist/components/Dropdown/Dropdown.vue.d.ts.map +1 -1
  56. package/dist/components/Field/Field.vue.d.ts.map +1 -1
  57. package/dist/components/FieldPhone/FieldPhone(script-setup).vue.d.ts +3 -3
  58. package/dist/components/FieldPhone/FieldPhone.vue.d.ts +1 -1
  59. package/dist/components/FieldPhone/FieldPhone.vue.d.ts.map +1 -1
  60. package/dist/components/LocationMarker/LocationMarker.vue.d.ts.map +1 -1
  61. package/dist/components/Map/Map.vue.d.ts.map +1 -1
  62. package/dist/components/Popup/Popup.vue.d.ts.map +1 -1
  63. package/dist/components/Select/Select.vue.d.ts.map +1 -1
  64. package/dist/components/SelectMulti/SelectMulti.vue.d.ts.map +1 -1
  65. package/dist/components/Spoiler/Spoiler.vue.d.ts.map +1 -1
  66. package/dist/components/Tab/Tab.vue.d.ts.map +1 -1
  67. package/dist/components/Text/Text.vue.d.ts.map +1 -1
  68. package/dist/components/Tooltip/Tooltip.vue.d.ts.map +1 -1
  69. package/dist/components/Upload/Upload.vue.d.ts.map +1 -1
  70. package/dist/events.client.cjs +1 -1
  71. package/dist/events.client.js +26 -24
  72. package/dist/{inputs.validation-6960f71b.mjs → inputs.validation-14e8e01f.mjs} +4 -4
  73. package/dist/landing.client.cjs +1 -0
  74. package/dist/landing.client.js +132 -0
  75. package/dist/main.css +1 -1
  76. package/dist/modules/icons/labels/LabelAppStore.vue.d.ts +2 -0
  77. package/dist/modules/icons/labels/LabelGooglePlay.vue.d.ts +2 -0
  78. package/dist/modules/{community/components/blocks/HeaderBlogpost.vue.d.ts → landing/components/sections/MobileApp.vue.d.ts} +3 -3
  79. package/dist/{organizations-1b4c84ee.mjs → organizations-2adff182.mjs} +3 -3
  80. package/dist/organizations-e97a0f85.js +1 -0
  81. package/dist/{organizations.client-253c8068.mjs → organizations.client-88d41199.mjs} +998 -1139
  82. package/dist/organizations.client-d21a22ec.js +3 -0
  83. package/dist/organizations.client.cjs +1 -1
  84. package/dist/organizations.client.js +36 -35
  85. package/dist/organizations.server.js +7 -3
  86. package/dist/organizations.server.mjs +7 -3
  87. package/dist/prometheus-framework.cjs.js +19 -19
  88. package/dist/prometheus-framework.es.js +2173 -2165
  89. package/dist/style.css +1 -1
  90. package/dist/users.client.cjs +1 -1
  91. package/dist/users.client.js +266 -256
  92. package/dist/users.server.js +2 -2
  93. package/dist/users.server.mjs +2 -2
  94. package/package.json +6 -2
  95. package/src/components/Field/Field.vue +2 -1
  96. package/src/components/Text/Text.vue +3 -1
  97. package/src/modules/community/community.server.js +0 -2
  98. package/src/modules/community/components/blocks/CardBlogpost.vue +8 -0
  99. package/src/modules/community/components/pages/Blog.vue +1 -1
  100. package/src/modules/community/components/pages/CreateBlogPost.vue +2 -1
  101. package/src/modules/community/controllers/blog.controller.js +5 -1
  102. package/src/modules/events/components/pages/EditEvent.vue +2 -1
  103. package/src/modules/icons/labels/LabelAppStore.vue +32 -0
  104. package/src/modules/icons/labels/LabelGooglePlay.vue +48 -0
  105. package/src/modules/landing/components/sections/MobileApp.vue +125 -0
  106. package/src/modules/landing/landing.client.js +7 -0
  107. package/src/modules/organizations/components/blocks/CardOrganization.vue +3 -1
  108. package/src/modules/organizations/components/blocks/Socials.vue +16 -3
  109. package/src/modules/organizations/components/pages/OrganizationEdit.vue +39 -15
  110. package/src/modules/organizations/components/sections/DetailsTab.vue +13 -9
  111. package/src/modules/organizations/controllers/organizations.controller.js +1 -1
  112. package/src/modules/organizations/models/organization.model.js +6 -2
  113. package/src/modules/organizations/store/organizations.js +2 -2
  114. package/src/modules/users/components/pages/Profile.vue +26 -11
  115. package/src/modules/users/components/pages/ProfileEdit.vue +28 -10
  116. package/src/modules/users/models/user.model.js +2 -2
  117. package/src/modules/users/store/users.js +1 -2
  118. package/dist/Breadcrumbs.vue_vue_type_style_index_0_lang-0216f2b0.js +0 -7
  119. package/dist/Breadcrumbs.vue_vue_type_style_index_0_lang-0cb41a82.js +0 -1
  120. package/dist/Breadcrumbs.vue_vue_type_style_index_0_lang-15e71ec4.js +0 -1
  121. package/dist/Breadcrumbs.vue_vue_type_style_index_0_lang-2809e848.mjs +0 -219
  122. package/dist/Breadcrumbs.vue_vue_type_style_index_0_lang-2af7f63b.mjs +0 -80
  123. package/dist/Breadcrumbs.vue_vue_type_style_index_0_lang-451d2614.mjs +0 -80
  124. package/dist/Breadcrumbs.vue_vue_type_style_index_0_lang-474eb4c2.js +0 -1
  125. package/dist/Breadcrumbs.vue_vue_type_style_index_0_lang-5ea8b4fa.js +0 -1
  126. package/dist/Breadcrumbs.vue_vue_type_style_index_0_lang-628f013e.mjs +0 -138
  127. package/dist/Breadcrumbs.vue_vue_type_style_index_0_lang-85119a4e.js +0 -1
  128. package/dist/Breadcrumbs.vue_vue_type_style_index_0_lang-8cb3c120.mjs +0 -185
  129. package/dist/Breadcrumbs.vue_vue_type_style_index_0_lang-a477dfc6.mjs +0 -138
  130. package/dist/Breadcrumbs.vue_vue_type_style_index_0_lang-c6f3a0f0.js +0 -1
  131. package/dist/Breadcrumbs.vue_vue_type_style_index_0_lang-d777ad17.mjs +0 -80
  132. package/dist/Breadcrumbs.vue_vue_type_style_index_0_lang-dd037bbf.js +0 -1
  133. package/dist/Breadcrumbs.vue_vue_type_style_index_0_lang-e133a3c6.mjs +0 -80
  134. package/dist/ButtonFollow-0d83a04a.mjs +0 -130
  135. package/dist/ButtonFollow-1aca37e0.mjs +0 -130
  136. package/dist/ButtonFollow-1b655344.js +0 -1
  137. package/dist/ButtonFollow-2ce169ca.js +0 -1
  138. package/dist/ButtonFollow-6bbf3e24.mjs +0 -130
  139. package/dist/ButtonFollow-6cd2efa2.mjs +0 -130
  140. package/dist/ButtonFollow-b29bd420.mjs +0 -130
  141. package/dist/ButtonFollow-c4680999.js +0 -1
  142. package/dist/ButtonFollow-c9484003.mjs +0 -130
  143. package/dist/ButtonFollow-d983e174.js +0 -1
  144. package/dist/ButtonFollow-f630623a.js +0 -1
  145. package/dist/ButtonFollow-f9c5dc7a.js +0 -1
  146. package/dist/CardHeader-2d7e5d49.mjs +0 -76
  147. package/dist/CardHeader-2ef6618e.mjs +0 -96
  148. package/dist/CardHeader-377cfc4b.js +0 -1
  149. package/dist/CardHeader-39f75e85.mjs +0 -76
  150. package/dist/CardHeader-88de7b20.mjs +0 -76
  151. package/dist/CardHeader-ce5a1a75.mjs +0 -96
  152. package/dist/CardHeader-ddf82318.js +0 -1
  153. package/dist/CardHeader-dff9c71a.js +0 -1
  154. package/dist/CardHeader-e15eb618.js +0 -1
  155. package/dist/CardHeader-e517c801.mjs +0 -76
  156. package/dist/CardOrganization-0291683b.js +0 -1
  157. package/dist/CardOrganization-1384ff9a.mjs +0 -320
  158. package/dist/CardOrganization-21de52b3.js +0 -1
  159. package/dist/CardOrganization-3c42e14f.mjs +0 -320
  160. package/dist/CardOrganization-4859370e.mjs +0 -320
  161. package/dist/CardOrganization-58b54995.js +0 -1
  162. package/dist/CardOrganization-91e79698.mjs +0 -320
  163. package/dist/CardOrganization-9841dbe0.js +0 -1
  164. package/dist/CardOrganization-a05f3a19.js +0 -1
  165. package/dist/CardOrganization-a75b523d.mjs +0 -63
  166. package/dist/CardOrganization-d462e158.mjs +0 -320
  167. package/dist/CardOrganization-ee5c34ab.js +0 -1
  168. package/dist/CardOrganization-f70bd169.mjs +0 -202
  169. package/dist/CardOrganization-ffa585a7.js +0 -1
  170. package/dist/Comments-1aec0e5e.js +0 -1
  171. package/dist/Comments-5ed669ea.mjs +0 -74
  172. package/dist/Comments-63f154a6.js +0 -9
  173. package/dist/Comments-641516f8.mjs +0 -76
  174. package/dist/Comments-646c73ee.js +0 -1
  175. package/dist/Comments-6ff58c26.js +0 -1
  176. package/dist/Comments-7c4f2715.js +0 -1
  177. package/dist/Comments-81feeb4a.mjs +0 -76
  178. package/dist/Comments-9427a0eb.mjs +0 -76
  179. package/dist/Comments-b5821190.mjs +0 -76
  180. package/dist/Comments-b620bae6.js +0 -1
  181. package/dist/Comments-b6e32958.js +0 -1
  182. package/dist/Comments-c092550f.mjs +0 -76
  183. package/dist/Comments-c5afa4d6.mjs +0 -459
  184. package/dist/Comments-d2a8fd0f.mjs +0 -76
  185. package/dist/DepartmentEdit-305a0f5d.mjs +0 -374
  186. package/dist/DepartmentEdit-6abd59e1.js +0 -1
  187. package/dist/DepartmentEdit-9e6fe007.mjs +0 -374
  188. package/dist/DepartmentEdit-d98c2239.js +0 -1
  189. package/dist/EditProductImages-04ec4326.js +0 -1
  190. package/dist/EditProductImages-11510b66.js +0 -1
  191. package/dist/EditProductImages-1d4b44a9.mjs +0 -236
  192. package/dist/EditProductImages-4246db75.mjs +0 -236
  193. package/dist/EditProductImages-42f9f665.mjs +0 -236
  194. package/dist/EditProductImages-61ff4321.mjs +0 -236
  195. package/dist/EditProductImages-98d13eb0.js +0 -1
  196. package/dist/EditProductImages-9f25f39f.mjs +0 -236
  197. package/dist/EditProductImages-b1b05c03.js +0 -1
  198. package/dist/EditProductImages-c7daafb2.mjs +0 -236
  199. package/dist/EditProductImages-cf67d31b.js +0 -1
  200. package/dist/EditProductImages-cfb1856e.mjs +0 -237
  201. package/dist/EditProductImages-d9228ad0.js +0 -1
  202. package/dist/EditProductImages-ec630dbf.js +0 -1
  203. package/dist/EditProductImages-f983f473.mjs +0 -236
  204. package/dist/EmptyState-1214f70b.mjs +0 -36
  205. package/dist/EmptyState-23c13029.js +0 -1
  206. package/dist/Feed-0b549674.js +0 -1
  207. package/dist/Feed-193dd1df.mjs +0 -342
  208. package/dist/Feed-26bf6bef.js +0 -1
  209. package/dist/Feed-2f9a1922.mjs +0 -334
  210. package/dist/Feed-31523f38.js +0 -1
  211. package/dist/Feed-51e4e232.js +0 -1
  212. package/dist/Feed-531de2d5.js +0 -1
  213. package/dist/Feed-55c5907a.js +0 -1
  214. package/dist/Feed-5c9e4e74.mjs +0 -340
  215. package/dist/Feed-706cd7c0.mjs +0 -383
  216. package/dist/Feed-8009e4f8.js +0 -1
  217. package/dist/Feed-81d5802e.mjs +0 -355
  218. package/dist/Feed-83ef5666.js +0 -1
  219. package/dist/Feed-8fd41524.js +0 -1
  220. package/dist/Feed-91eff3af.mjs +0 -393
  221. package/dist/Feed-926cf4f3.mjs +0 -355
  222. package/dist/Feed-932d976d.js +0 -1
  223. package/dist/Feed-962e009b.js +0 -1
  224. package/dist/Feed-a82ae26b.js +0 -1
  225. package/dist/Feed-aa3bd30a.js +0 -1
  226. package/dist/Feed-b8eeb4e7.js +0 -1
  227. package/dist/Feed-bd7b1a45.js +0 -1
  228. package/dist/Feed-c0007a83.mjs +0 -383
  229. package/dist/Feed-c93012c7.mjs +0 -346
  230. package/dist/Feed-ca8e0e22.mjs +0 -423
  231. package/dist/Feed-d2e5978c.mjs +0 -342
  232. package/dist/Feed-d4220f74.mjs +0 -340
  233. package/dist/Feed-d8e33aed.mjs +0 -397
  234. package/dist/Feed-df5bbb3c.mjs +0 -346
  235. package/dist/Feed-e5fb4972.mjs +0 -397
  236. package/dist/Feed-e8fb21ed.js +0 -1
  237. package/dist/Feed-e91b36ea.mjs +0 -390
  238. package/dist/Feed-ecf37814.mjs +0 -367
  239. package/dist/Feed-f4cad6c3.js +0 -1
  240. package/dist/Field-740d5a17.mjs +0 -60
  241. package/dist/Field-a1770ccf.js +0 -1
  242. package/dist/Field-ada86df2.js +0 -1
  243. package/dist/Field-e839d9ca.mjs +0 -60
  244. package/dist/Footer.vue_vue_type_style_index_0_lang-0ea8fbf8.js +0 -1
  245. package/dist/Footer.vue_vue_type_style_index_0_lang-2f7f46f1.js +0 -7
  246. package/dist/Footer.vue_vue_type_style_index_0_lang-39d2aa14.mjs +0 -37
  247. package/dist/Footer.vue_vue_type_style_index_0_lang-4ed993c7.mjs +0 -1
  248. package/dist/HeaderBlogpost-59dd9a6b.mjs +0 -93
  249. package/dist/HeaderBlogpost-8ec43cd0.js +0 -1
  250. package/dist/IconEdit-736c89be.js +0 -1
  251. package/dist/IconEdit-e9fd4c6c.mjs +0 -21
  252. package/dist/PlaceholderUserpic-1a6cf257.mjs +0 -28
  253. package/dist/PlaceholderUserpic-3bf126ee.js +0 -1
  254. package/dist/PlaceholderUserpic-3c1b9f7b.mjs +0 -28
  255. package/dist/PlaceholderUserpic-43e5ab23.js +0 -1
  256. package/dist/PlaceholderUserpic-4fe04ec9.mjs +0 -28
  257. package/dist/PlaceholderUserpic-52966e09.js +0 -1
  258. package/dist/PlaceholderUserpic-9085715c.mjs +0 -28
  259. package/dist/PlaceholderUserpic-995da0fc.mjs +0 -28
  260. package/dist/PlaceholderUserpic-b27c51f7.js +0 -1
  261. package/dist/PlaceholderUserpic-d64d6dd5.js +0 -1
  262. package/dist/PlaceholderUserpic-e44ccca8.mjs +0 -28
  263. package/dist/PlaceholderUserpic-fe8bd48d.js +0 -1
  264. package/dist/Popup-70f6a8c0.mjs +0 -76
  265. package/dist/Popup-82fb2c8a.mjs +0 -76
  266. package/dist/Popup-9479e39a.js +0 -1
  267. package/dist/Popup.vue_vue_type_style_index_0_lang-0cbf3253.js +0 -1
  268. package/dist/Popup.vue_vue_type_style_index_0_lang-22048704.mjs +0 -280
  269. package/dist/Popup.vue_vue_type_style_index_0_lang-28b9af00.mjs +0 -280
  270. package/dist/Popup.vue_vue_type_style_index_0_lang-4f16907f.mjs +0 -924
  271. package/dist/Popup.vue_vue_type_style_index_0_lang-5b5f9cd7.js +0 -5
  272. package/dist/Popup.vue_vue_type_style_index_0_lang-769e7cf5.js +0 -5
  273. package/dist/Popup.vue_vue_type_style_index_0_lang-8981c189.mjs +0 -280
  274. package/dist/Popup.vue_vue_type_style_index_0_lang-931f265a.js +0 -1
  275. package/dist/Popup.vue_vue_type_style_index_0_lang-a191c190.js +0 -1
  276. package/dist/Popup.vue_vue_type_style_index_0_lang-a9351a87.js +0 -1
  277. package/dist/Popup.vue_vue_type_style_index_0_lang-d05075a7.mjs +0 -280
  278. package/dist/Popup.vue_vue_type_style_index_0_lang-f2c0cfb5.mjs +0 -924
  279. package/dist/Product-0195429b.js +0 -1
  280. package/dist/Product-035252c0.js +0 -1
  281. package/dist/Product-05cc1386.mjs +0 -687
  282. package/dist/Product-151f4473.mjs +0 -904
  283. package/dist/Product-19cc3654.js +0 -7
  284. package/dist/Product-2f3d592f.mjs +0 -837
  285. package/dist/Product-334f8bf4.mjs +0 -904
  286. package/dist/Product-35904a9b.js +0 -7
  287. package/dist/Product-3c64a352.mjs +0 -904
  288. package/dist/Product-45a6e7bd.mjs +0 -687
  289. package/dist/Product-4a5f985d.mjs +0 -837
  290. package/dist/Product-60e14832.mjs +0 -904
  291. package/dist/Product-67efba5c.js +0 -7
  292. package/dist/Product-6c37ef35.js +0 -7
  293. package/dist/Product-7087b358.mjs +0 -837
  294. package/dist/Product-96195a8e.js +0 -7
  295. package/dist/Product-a94d8b65.js +0 -7
  296. package/dist/Product-b440df7f.js +0 -7
  297. package/dist/Product-c3a77d07.mjs +0 -837
  298. package/dist/Product-c8441f02.js +0 -7
  299. package/dist/Product-cf9cfe65.mjs +0 -904
  300. package/dist/Product-df622dc0.mjs +0 -837
  301. package/dist/Product-eb2b6725.js +0 -7
  302. package/dist/Product-f4dbd969.mjs +0 -837
  303. package/dist/Product-f819b17e.js +0 -7
  304. package/dist/Product-fb63c7cd.js +0 -7
  305. package/dist/ProductEdit-04760699.js +0 -1
  306. package/dist/ProductEdit-177c1f16.mjs +0 -113
  307. package/dist/ProductEdit-1e990a92.js +0 -1
  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/ProfileBlogposts-00424109.js +0 -1
  324. package/dist/ProfileBlogposts-03658199.js +0 -1
  325. package/dist/ProfileBlogposts-11bfd9dc.js +0 -1
  326. package/dist/ProfileBlogposts-317742ee.mjs +0 -56
  327. package/dist/ProfileBlogposts-4341ca89.mjs +0 -46
  328. package/dist/ProfileBlogposts-55037a06.mjs +0 -56
  329. package/dist/ProfileBlogposts-65a7a5e0.mjs +0 -56
  330. package/dist/ProfileBlogposts-79d5c858.mjs +0 -63
  331. package/dist/ProfileBlogposts-892fdcf8.mjs +0 -56
  332. package/dist/ProfileBlogposts-dc11090e.js +0 -1
  333. package/dist/ProfileBlogposts-e55e30ae.js +0 -1
  334. package/dist/ProfileBlogposts-e9a7381e.js +0 -1
  335. package/dist/ProfileBlogposts-eca9916c.js +0 -1
  336. package/dist/ProfileBlogposts-ffa10f34.mjs +0 -63
  337. package/dist/ProfileComments-0396b55c.js +0 -1
  338. package/dist/ProfileComments-08d1670d.mjs +0 -43
  339. package/dist/ProfileComments-2e2a3a7a.mjs +0 -42
  340. package/dist/ProfileComments-34eb560b.mjs +0 -43
  341. package/dist/ProfileComments-48f3d4bc.mjs +0 -43
  342. package/dist/ProfileComments-5884d09f.mjs +0 -43
  343. package/dist/ProfileComments-66651060.mjs +0 -43
  344. package/dist/ProfileComments-677731b3.js +0 -1
  345. package/dist/ProfileComments-730c2f73.js +0 -1
  346. package/dist/ProfileComments-82791682.js +0 -1
  347. package/dist/ProfileComments-b6a688cd.js +0 -1
  348. package/dist/ProfileComments-b919f021.js +0 -1
  349. package/dist/ProfileComments-d3966a83.mjs +0 -43
  350. package/dist/ProfileComments-f5f260ec.js +0 -1
  351. package/dist/ProfileEvents-05485e20.js +0 -1
  352. package/dist/ProfileEvents-138ae25e.mjs +0 -55
  353. package/dist/ProfileEvents-1cfe6858.mjs +0 -55
  354. package/dist/ProfileEvents-20695376.mjs +0 -55
  355. package/dist/ProfileEvents-20e9da99.mjs +0 -46
  356. package/dist/ProfileEvents-45c4b137.mjs +0 -55
  357. package/dist/ProfileEvents-676239cc.js +0 -1
  358. package/dist/ProfileEvents-6e6c253b.mjs +0 -46
  359. package/dist/ProfileEvents-858e9471.mjs +0 -55
  360. package/dist/ProfileEvents-85a88674.mjs +0 -55
  361. package/dist/ProfileEvents-89def76b.js +0 -1
  362. package/dist/ProfileEvents-94d7b407.js +0 -1
  363. package/dist/ProfileEvents-b057d374.js +0 -1
  364. package/dist/ProfileEvents-b5431cd6.js +0 -1
  365. package/dist/ProfileEvents-b8a76b6e.js +0 -1
  366. package/dist/ProfileEvents-c1e04ac1.mjs +0 -46
  367. package/dist/ProfileEvents-cd75d80b.js +0 -1
  368. package/dist/ProfileEvents-cebebb17.js +0 -1
  369. package/dist/ProfileEvents-d53e7729.mjs +0 -46
  370. package/dist/ProfileEvents-d8e16509.js +0 -1
  371. package/dist/ProfileEvents-ddaf8fba.mjs +0 -55
  372. package/dist/ProfileEvents-ffe0e6f3.js +0 -1
  373. package/dist/ProfileLikes-0668b718.js +0 -1
  374. package/dist/ProfileLikes-2f3a4488.js +0 -1
  375. package/dist/ProfileLikes-405c2636.js +0 -1
  376. package/dist/ProfileLikes-4242bca5.mjs +0 -43
  377. package/dist/ProfileLikes-4a57f637.mjs +0 -43
  378. package/dist/ProfileLikes-7f965631.mjs +0 -43
  379. package/dist/ProfileLikes-854276f0.js +0 -1
  380. package/dist/ProfileLikes-8ccf6815.js +0 -1
  381. package/dist/ProfileLikes-a78900c0.js +0 -1
  382. package/dist/ProfileLikes-b5ac7f48.mjs +0 -43
  383. package/dist/ProfileLikes-c32c420b.mjs +0 -43
  384. package/dist/ProfileLikes-c4c87300.mjs +0 -42
  385. package/dist/ProfileLikes-c899e3df.js +0 -1
  386. package/dist/ProfileLikes-d978b084.mjs +0 -43
  387. package/dist/ProfileOrganizations-04cc9d6d.mjs +0 -198
  388. package/dist/ProfileOrganizations-0b76e38f.js +0 -1
  389. package/dist/ProfileOrganizations-0e202612.js +0 -1
  390. package/dist/ProfileOrganizations-13748b09.js +0 -1
  391. package/dist/ProfileOrganizations-1990d0cc.js +0 -1
  392. package/dist/ProfileOrganizations-2633e9e4.mjs +0 -198
  393. package/dist/ProfileOrganizations-3f305f4e.mjs +0 -210
  394. package/dist/ProfileOrganizations-46b6e015.mjs +0 -202
  395. package/dist/ProfileOrganizations-4ffaf01c.js +0 -1
  396. package/dist/ProfileOrganizations-50fce34e.js +0 -1
  397. package/dist/ProfileOrganizations-567e87e1.mjs +0 -210
  398. package/dist/ProfileOrganizations-5abfcc59.js +0 -1
  399. package/dist/ProfileOrganizations-5d681498.mjs +0 -202
  400. package/dist/ProfileOrganizations-704f628b.js +0 -1
  401. package/dist/ProfileOrganizations-b83f6720.js +0 -1
  402. package/dist/ProfileOrganizations-c58a4fb9.js +0 -1
  403. package/dist/ProfileOrganizations-c7688210.js +0 -1
  404. package/dist/ProfileOrganizations-ca9a95a1.js +0 -1
  405. package/dist/ProfileOrganizations-dbc8a6cd.mjs +0 -214
  406. package/dist/ProfileOrganizations-dc7210f1.mjs +0 -214
  407. package/dist/ProfileOrganizations-e4fd2b05.mjs +0 -202
  408. package/dist/ProfileOrganizations-f6e00809.mjs +0 -214
  409. package/dist/ProfileOrganizations-feef34df.mjs +0 -112
  410. package/dist/Publics-07d5bbc4.js +0 -1
  411. package/dist/Publics-122d9fc7.mjs +0 -1078
  412. package/dist/Publics-13c48a23.mjs +0 -47
  413. package/dist/Publics-17009745.mjs +0 -1926
  414. package/dist/Publics-213e0e9e.mjs +0 -44
  415. package/dist/Publics-21f24533.mjs +0 -44
  416. package/dist/Publics-3f277c17.js +0 -1
  417. package/dist/Publics-450a6715.mjs +0 -1926
  418. package/dist/Publics-49dbeafc.js +0 -1
  419. package/dist/Publics-501c9f27.js +0 -1
  420. package/dist/Publics-54134615.mjs +0 -47
  421. package/dist/Publics-889c25fc.js +0 -1
  422. package/dist/Publics-8bea4201.mjs +0 -44
  423. package/dist/Publics-8d94ee66.js +0 -1
  424. package/dist/Publics-a030da8f.js +0 -1
  425. package/dist/Publics-aca585c3.js +0 -1
  426. package/dist/Publics-b0fad2b0.mjs +0 -1926
  427. package/dist/Publics-becb1486.js +0 -1
  428. package/dist/Publics-c6f6b824.js +0 -1
  429. package/dist/Publics-c9d5aa74.js +0 -1
  430. package/dist/Publics-fbc8d2db.mjs +0 -1926
  431. package/dist/Select.vue_vue_type_style_index_0_scoped_a78dbba1_lang-0ea8fbf8.js +0 -1
  432. package/dist/Select.vue_vue_type_style_index_0_scoped_a78dbba1_lang-4ed993c7.mjs +0 -1
  433. package/dist/Tab-054b61f7.mjs +0 -46
  434. package/dist/Tab-1ca0fe66.js +0 -1
  435. package/dist/Tab-58cd105f.mjs +0 -46
  436. package/dist/Tab-b0a7ac11.js +0 -1
  437. package/dist/Tab-c67fbf51.mjs +0 -46
  438. package/dist/Tab-f04c185d.js +0 -1
  439. package/dist/Tab.vue_vue_type_style_index_0_lang-0ea8fbf8.js +0 -1
  440. package/dist/Tab.vue_vue_type_style_index_0_lang-4ed993c7.mjs +0 -1
  441. package/dist/Unit.vue_vue_type_style_index_0_scoped_d69a370a_lang-0b4edb09.js +0 -1
  442. package/dist/Unit.vue_vue_type_style_index_0_scoped_d69a370a_lang-5531689e.mjs +0 -123
  443. package/dist/UploadImage-1b8c18c4.mjs +0 -99
  444. package/dist/UploadImage-34bc4a3f.mjs +0 -99
  445. package/dist/UploadImage-4e91bd99.js +0 -1
  446. package/dist/UploadImage-74280ea3.mjs +0 -99
  447. package/dist/UploadImage-75b1a18a.js +0 -1
  448. package/dist/UploadImage-7c502f96.js +0 -1
  449. package/dist/UploadImage-96408782.mjs +0 -99
  450. package/dist/UploadImage-9abb7116.js +0 -1
  451. package/dist/UploadImage-b1acc48f.mjs +0 -99
  452. package/dist/UploadImage-c81c3b76.js +0 -1
  453. package/dist/UploadImage-cd6de241.js +0 -1
  454. package/dist/UploadImage-d1dbc280.mjs +0 -99
  455. package/dist/UploadImage-ff8f9a0c.mjs +0 -83
  456. package/dist/auth-07c01b19.js +0 -8
  457. package/dist/auth-18f80fef.mjs +0 -1501
  458. package/dist/auth-35ef1791.mjs +0 -1502
  459. package/dist/auth-50bd4ebb.js +0 -8
  460. package/dist/auth-5aa8e90c.js +0 -8
  461. package/dist/auth-708eebcb.mjs +0 -1446
  462. package/dist/auth-78fd9408.js +0 -8
  463. package/dist/auth-7dff19e4.js +0 -8
  464. package/dist/auth-84680727.mjs +0 -1501
  465. package/dist/auth-ab40831d.js +0 -8
  466. package/dist/auth-d102dac0.mjs +0 -1501
  467. package/dist/auth-f81f3598.mjs +0 -1439
  468. package/dist/auth.validation-1fb0cb4f.js +0 -1
  469. package/dist/auth.validation-29113f37.mjs +0 -20
  470. package/dist/auth.validation-2d33e8c7.mjs +0 -20
  471. package/dist/auth.validation-2e8ee994.js +0 -1
  472. package/dist/auth.validation-6923140f.js +0 -1
  473. package/dist/auth.validation-69488f55.mjs +0 -20
  474. package/dist/auth.validation-6bccabd6.mjs +0 -20
  475. package/dist/auth.validation-9cfd985b.mjs +0 -20
  476. package/dist/auth.validation-9f7c7948.js +0 -1
  477. package/dist/auth.validation-b644ee65.js +0 -1
  478. package/dist/auth.validation-f23a7238.mjs +0 -21
  479. package/dist/categories-75b7d14b.js +0 -1
  480. package/dist/categories-86b2d45b.mjs +0 -225
  481. package/dist/categories-d669f3af.mjs +0 -225
  482. package/dist/components/FieldPhone/<script>.vue.d.ts +0 -547
  483. package/dist/globals-d7a54bb4.js +0 -1
  484. package/dist/globals-f538c0ef.mjs +0 -87
  485. package/dist/inputs.validation-498d8ec9.js +0 -1
  486. package/dist/inputs.validation-5732152a.mjs +0 -93
  487. package/dist/inputs.validation-c473ebe7.mjs +0 -93
  488. package/dist/inputs.validation-c53e01a2.js +0 -1
  489. package/dist/modules/community/components/blocks/CardOrganization.vue.d.ts +0 -8
  490. package/dist/modules/community/components/elements/Bullets.vue.d.ts +0 -15
  491. package/dist/modules/community/components/elements/Caption.vue.d.ts +0 -15
  492. package/dist/modules/community/components/elements/H2.vue.d.ts +0 -16
  493. package/dist/modules/community/components/elements/Image.vue.d.ts +0 -8
  494. package/dist/modules/community/components/elements/ImageUpload.vue.d.ts +0 -9
  495. package/dist/modules/community/components/elements/Textarea.vue.d.ts +0 -16
  496. package/dist/modules/community/components/pages/BlogPost.old.vue.d.ts +0 -2
  497. package/dist/modules/community/components/sections/Publics.vue.d.ts +0 -2
  498. package/dist/modules/events/components/layouts/Events.vue.d.ts +0 -2
  499. package/dist/modules/organizations/components/blocks/CardOrganizationSocial.vue.d.ts +0 -8
  500. package/dist/organizations-0e9ff7ca.mjs +0 -319
  501. package/dist/organizations-35fe2db4.js +0 -1
  502. package/dist/organizations-4d74e13b.js +0 -1
  503. package/dist/organizations-5f9c7fbd.js +0 -1
  504. package/dist/organizations-6c1450fa.mjs +0 -153
  505. package/dist/organizations-773c328c.mjs +0 -319
  506. package/dist/organizations-a9b86de7.mjs +0 -319
  507. package/dist/organizations-af43bda4.js +0 -1
  508. package/dist/organizations-b3df0859.js +0 -1
  509. package/dist/organizations-c77ea9d0.js +0 -1
  510. package/dist/organizations-d4307861.mjs +0 -319
  511. package/dist/organizations-dd07ba2c.js +0 -1
  512. package/dist/organizations-fb1a2214.mjs +0 -319
  513. package/dist/organizations.client-3b4eb66e.mjs +0 -2898
  514. package/dist/organizations.client-4e29c957.js +0 -3
  515. package/dist/organizations.client-686845be.mjs +0 -3179
  516. package/dist/organizations.client-71c9abde.mjs +0 -2898
  517. package/dist/organizations.client-99bfc474.js +0 -3
  518. package/dist/organizations.client-ba59ed4e.js +0 -3
  519. package/dist/organizations.client-c60d7659.js +0 -3
  520. package/src/modules/community/controllers/blog.old.controller.js +0 -207
@@ -0,0 +1,205 @@
1
+ import { openBlock as t, createElementBlock as e, createElementVNode as C, computed as a, Fragment as h, renderList as d, unref as f, createBlock as w, resolveDynamicComponent as m } from "vue";
2
+ import { _ as o } from "./_plugin-vue_export-helper-dad06003.mjs";
3
+ const g = {}, u = {
4
+ width: "40",
5
+ height: "33",
6
+ viewBox: "0 0 40 33",
7
+ fill: "none",
8
+ xmlns: "http://www.w3.org/2000/svg"
9
+ }, p = /* @__PURE__ */ C("path", {
10
+ d: "M9.75391 18.7989L14.1454 30.9541C14.1454 30.9541 14.6945 32.0914 15.2824 32.0914C15.8704 32.0914 24.6149 22.9943 24.6149 22.9943L34.3391 4.21216L9.9106 15.6613L9.75391 18.7989Z",
11
+ fill: "#C8DAEA"
12
+ }, null, -1), $ = /* @__PURE__ */ C("path", {
13
+ d: "M15.5785 21.916L14.7355 30.8755C14.7355 30.8755 14.3826 33.6208 17.1273 30.8755C19.8719 28.1302 22.4991 26.0133 22.4991 26.0133",
14
+ fill: "#A9C6D8"
15
+ }, null, -1), v = /* @__PURE__ */ C("path", {
16
+ d: "M9.8345 19.2327L0.800944 16.2894C0.800944 16.2894 -0.278665 15.8514 0.0689689 14.8581C0.140532 14.6533 0.28489 14.479 0.716734 14.1795C2.71833 12.7844 37.7646 0.18778 37.7646 0.18778C37.7646 0.18778 38.7541 -0.145665 39.3377 0.0761175C39.4821 0.120809 39.612 0.20305 39.7142 0.314426C39.8164 0.425801 39.8871 0.562314 39.9192 0.710002C39.9823 0.970857 40.0086 1.23923 39.9975 1.50737C39.9948 1.73933 39.9667 1.95433 39.9454 2.29148C39.732 5.73543 33.3444 31.4388 33.3444 31.4388C33.3444 31.4388 32.9622 32.9428 31.5929 32.9943C31.2564 33.0052 30.9212 32.9482 30.6072 32.8267C30.2932 32.7053 30.0069 32.5218 29.7653 32.2873C27.0783 29.976 17.7912 23.7347 15.739 22.362C15.6927 22.3305 15.6538 22.2894 15.6247 22.2415C15.5957 22.1936 15.5772 22.14 15.5706 22.0844C15.5419 21.9397 15.6992 21.7605 15.6992 21.7605C15.6992 21.7605 31.8706 7.38631 32.3009 5.87732C32.3342 5.76041 32.2083 5.70273 32.0393 5.75394C30.9652 6.14908 12.346 17.9073 10.291 19.2049C10.1431 19.2497 9.98675 19.2592 9.8345 19.2327V19.2327Z",
17
+ fill: "white"
18
+ }, null, -1), x = [
19
+ p,
20
+ $,
21
+ v
22
+ ];
23
+ function b(s, n) {
24
+ return t(), e("svg", u, x);
25
+ }
26
+ const L = /* @__PURE__ */ o(g, [["render", b]]), V = {}, M = {
27
+ fill: "none",
28
+ height: "40",
29
+ viewBox: "0 0 40 40",
30
+ width: "40",
31
+ xmlns: "http://www.w3.org/2000/svg"
32
+ }, Z = /* @__PURE__ */ C("path", {
33
+ d: "m20 0c-11.046 0-20 9.0085-20 20.1217 0 10.0428 7.314 18.3672 16.876 19.8783v-14.0631h-5.08v-5.8152h5.08v-4.4328c0-5.0425 2.984-7.82734 7.554-7.82734 2.188 0 4.476.39238 4.476.39238v4.94996h-2.52c-2.486 0-3.26 1.5514-3.26 3.143v3.7748h5.546l-.886 5.8152h-4.66v14.0631c9.56-1.5091 16.874-9.8375 16.874-19.8783 0-11.1132-8.954-20.1217-20-20.1217z",
34
+ fill: "#fff"
35
+ }, null, -1), H = [
36
+ Z
37
+ ];
38
+ function k(s, n) {
39
+ return t(), e("svg", M, H);
40
+ }
41
+ const B = /* @__PURE__ */ o(V, [["render", k]]), I = {}, y = {
42
+ width: "40",
43
+ height: "40",
44
+ viewBox: "0 0 40 40",
45
+ fill: "none",
46
+ xmlns: "http://www.w3.org/2000/svg"
47
+ }, S = /* @__PURE__ */ C("path", {
48
+ d: "M20.0019 0C14.5702 0 13.8885 0.0237504 11.7551 0.120834C9.62593 0.218334 8.17259 0.555417 6.90091 1.05C5.58547 1.56083 4.46963 2.24417 3.35795 3.35625C2.24544 4.46792 1.5621 5.58375 1.04959 6.89875C0.553755 8.17083 0.216252 9.62458 0.120418 11.7529C0.0250001 13.8862 0 14.5683 0 20C0 25.4317 0.0241673 26.1113 0.120835 28.2446C0.218753 30.3738 0.555839 31.8271 1.05001 33.0987C1.56127 34.4142 2.24461 35.53 3.3567 36.6417C4.46796 37.7542 5.58381 38.4392 6.89841 38.95C8.17092 39.4446 9.62468 39.7817 11.7535 39.8792C13.8868 39.9762 14.5681 40 19.9994 40C25.4315 40 26.1111 39.9762 28.2445 39.8792C30.3737 39.7817 31.8287 39.4446 33.1012 38.95C34.4162 38.4392 35.5304 37.7542 36.6416 36.6417C37.7541 35.53 38.4375 34.4142 38.95 33.0992C39.4417 31.8271 39.7792 30.3733 39.8792 28.245C39.975 26.1117 40 25.4317 40 20C40 14.5683 39.975 13.8867 39.8792 11.7533C39.7792 9.62417 39.4417 8.17083 38.95 6.89917C38.4375 5.58375 37.7541 4.46792 36.6416 3.35625C35.5291 2.24375 34.4166 1.56042 33.0999 1.05C31.8249 0.555417 30.3707 0.218334 28.2415 0.120834C26.1082 0.0237504 25.429 0 19.9956 0H20.0019ZM18.2077 3.60417C18.7402 3.60333 19.3344 3.60417 20.0019 3.60417C25.3419 3.60417 25.9749 3.62333 28.0836 3.71917C30.0336 3.80833 31.092 4.13417 31.797 4.40792C32.7303 4.77042 33.3958 5.20375 34.0954 5.90375C34.7954 6.60375 35.2287 7.27042 35.592 8.20375C35.8658 8.90792 36.192 9.96625 36.2808 11.9162C36.3766 14.0246 36.3975 14.6579 36.3975 19.9954C36.3975 25.3329 36.3766 25.9662 36.2808 28.0746C36.1916 30.0246 35.8658 31.0829 35.592 31.7871C35.2295 32.7204 34.7954 33.385 34.0954 34.0846C33.3953 34.7846 32.7308 35.2179 31.797 35.5804C31.0928 35.8554 30.0336 36.1804 28.0836 36.2696C25.9753 36.3654 25.3419 36.3863 20.0019 36.3863C14.6614 36.3863 14.0285 36.3654 11.9201 36.2696C9.9701 36.1796 8.91176 35.8537 8.20634 35.58C7.27299 35.2175 6.60632 34.7842 5.90631 34.0842C5.2063 33.3842 4.77297 32.7192 4.40963 31.7854C4.13588 31.0813 3.80962 30.0229 3.72087 28.0729C3.62504 25.9646 3.60587 25.3312 3.60587 19.9904C3.60587 14.6496 3.62504 14.0196 3.72087 11.9113C3.81004 9.96125 4.13588 8.90292 4.40963 8.19792C4.77213 7.26458 5.2063 6.59792 5.90631 5.89792C6.60632 5.19792 7.27299 4.76458 8.20634 4.40125C8.91134 4.12625 9.9701 3.80125 11.9201 3.71167C13.7651 3.62833 14.4802 3.60333 18.2077 3.59917V3.60417ZM30.6778 6.925C29.3528 6.925 28.2778 7.99875 28.2778 9.32417C28.2778 10.6492 29.3528 11.7242 30.6778 11.7242C32.0028 11.7242 33.0778 10.6492 33.0778 9.32417C33.0778 7.99917 32.0028 6.92417 30.6778 6.92417V6.925ZM20.0019 9.72917C14.3297 9.72917 9.73093 14.3279 9.73093 20C9.73093 25.6721 14.3297 30.2687 20.0019 30.2687C25.674 30.2687 30.2711 25.6721 30.2711 20C30.2711 14.3279 25.6736 9.72917 20.0015 9.72917H20.0019ZM20.0019 13.3333C23.6836 13.3333 26.6686 16.3179 26.6686 20C26.6686 23.6817 23.6836 26.6667 20.0019 26.6667C16.3198 26.6667 13.3351 23.6817 13.3351 20C13.3351 16.3179 16.3198 13.3333 20.0019 13.3333V13.3333Z",
49
+ fill: "white"
50
+ }, null, -1), z = [
51
+ S
52
+ ];
53
+ function D(s, n) {
54
+ return t(), e("svg", y, z);
55
+ }
56
+ const E = /* @__PURE__ */ o(I, [["render", D]]), A = {}, F = {
57
+ width: "40",
58
+ height: "33",
59
+ viewBox: "0 0 40 33",
60
+ fill: "none",
61
+ xmlns: "http://www.w3.org/2000/svg"
62
+ }, T = /* @__PURE__ */ C("path", {
63
+ d: "M35.9049 8.17058C35.9293 8.52666 35.9293 8.88274 35.9293 9.2421C35.9293 20.192 27.6742 32.8205 12.5793 32.8205V32.814C8.12025 32.8205 3.75381 31.5307 0 29.0989C0.648385 29.1777 1.30002 29.217 1.95328 29.2187C5.64859 29.222 9.23827 27.9699 12.1454 25.6645C8.63376 25.5972 5.55434 23.2851 4.47857 19.9097C5.70871 20.1493 6.97623 20.1001 8.18363 19.767C4.35507 18.9859 1.60065 15.5892 1.60065 11.6444V11.5394C2.74142 12.181 4.01869 12.5371 5.32521 12.5765C1.71928 10.143 0.607759 5.29897 2.78529 1.51172C6.95186 6.68883 13.0993 9.83612 19.6986 10.1692C19.0372 7.29105 19.9407 4.27503 22.0727 2.25178C25.378 -0.885667 30.5765 -0.724857 33.6835 2.61114C35.5214 2.24521 37.283 1.56423 38.895 0.599367C38.2823 2.51761 37.0002 4.14704 35.2874 5.18246C36.9141 4.98883 38.5034 4.54907 40 3.87793C38.8982 5.54511 37.5105 6.99732 35.9049 8.17058Z",
64
+ fill: "white"
65
+ }, null, -1), N = [
66
+ T
67
+ ];
68
+ function R(s, n) {
69
+ return t(), e("svg", F, N);
70
+ }
71
+ const j = /* @__PURE__ */ o(A, [["render", R]]), q = {}, G = {
72
+ width: "40",
73
+ height: "36",
74
+ viewBox: "0 0 40 36",
75
+ fill: "none",
76
+ xmlns: "http://www.w3.org/2000/svg"
77
+ }, J = /* @__PURE__ */ C("path", {
78
+ d: "M40 17.9021C40 15.4963 38.0287 13.5858 35.6272 13.5858C34.4444 13.5858 33.3692 14.0457 32.5806 14.7887C29.5699 12.6659 25.448 11.2861 20.8602 11.1092L22.8674 1.83974L29.3907 3.21955C29.4624 4.84701 30.8244 6.15605 32.509 6.15605C34.2294 6.15605 35.6272 4.77625 35.6272 3.07803C35.6272 1.37981 34.2294 0 32.509 0C31.2903 0 30.2151 0.707593 29.7133 1.7336L22.4373 0.21228C22.2222 0.1769 22.0072 0.212278 21.8638 0.318417C21.6846 0.424556 21.5771 0.601454 21.5412 0.813732L19.319 11.1446C14.6595 11.2861 10.466 12.6659 7.41936 14.8241C6.63083 14.0811 5.55556 13.6211 4.37276 13.6211C1.93549 13.6211 0 15.567 0 17.9375C0 19.7064 1.07527 21.1924 2.58065 21.8646C2.50896 22.2892 2.47312 22.7137 2.47312 23.1736C2.47312 29.825 10.3226 35.2381 20 35.2381C29.6774 35.2381 37.5269 29.8604 37.5269 23.1736C37.5269 22.7491 37.491 22.2892 37.4194 21.8646C38.9247 21.1924 40 19.6711 40 17.9021V17.9021ZM9.96416 20.9801C9.96416 19.2819 11.362 17.9021 13.0824 17.9021C14.8029 17.9021 16.2007 19.2819 16.2007 20.9801C16.2007 22.6783 14.8029 24.0581 13.0824 24.0581C11.362 24.0935 9.96416 22.6783 9.96416 20.9801V20.9801ZM27.4194 29.1528C25.2688 31.2756 21.1828 31.4171 20 31.4171C18.7814 31.4171 14.6953 31.2402 12.5806 29.1528C12.2581 28.8344 12.2581 28.3391 12.5806 28.0206C12.9032 27.7022 13.405 27.7022 13.7276 28.0206C15.0896 29.3651 17.957 29.825 20 29.825C22.043 29.825 24.9462 29.3651 26.2724 28.0206C26.595 27.7022 27.0968 27.7022 27.4194 28.0206C27.7061 28.3391 27.7061 28.8344 27.4194 29.1528ZM26.8459 24.0935C25.1254 24.0935 23.7276 22.7137 23.7276 21.0155C23.7276 19.3173 25.1254 17.9375 26.8459 17.9375C28.5663 17.9375 29.9642 19.3173 29.9642 21.0155C29.9642 22.6783 28.5663 24.0935 26.8459 24.0935Z",
79
+ fill: "white"
80
+ }, null, -1), K = [
81
+ J
82
+ ];
83
+ function O(s, n) {
84
+ return t(), e("svg", G, K);
85
+ }
86
+ const P = /* @__PURE__ */ o(q, [["render", O]]), Q = {}, U = {
87
+ width: "67",
88
+ height: "64",
89
+ viewBox: "0 0 67 64",
90
+ fill: "none",
91
+ xmlns: "http://www.w3.org/2000/svg"
92
+ }, W = /* @__PURE__ */ C("path", {
93
+ "fill-rule": "evenodd",
94
+ "clip-rule": "evenodd",
95
+ d: "M66.2237 27.2403C66.2237 12.4467 51.4301 0.287598 33.1914 0.287598C14.9528 0.287598 0.15918 12.4467 0.15918 27.2403C0.15918 40.4127 11.913 51.5585 27.7198 53.585C31.5702 54.3956 31.1649 55.8142 30.3543 61.0832C30.1517 61.8938 29.5437 64.3256 33.1914 62.907C36.6365 61.4885 52.2407 51.7612 59.1309 43.6551C63.9945 38.3861 66.2237 33.1172 66.2237 27.2403ZM43.1214 35.1437V20.7554C43.1214 20.3501 42.7161 19.9448 42.3108 20.1475H40.0816C39.6763 20.1475 39.4736 20.3501 39.4736 20.7554V29.2668L32.7861 20.3501C32.7861 20.1475 32.5835 20.1475 32.3808 20.1475H29.949C29.5437 20.1475 29.341 20.3501 29.341 20.7554V35.1437C29.341 35.549 29.5437 35.7517 29.949 35.7517H32.3808C32.5835 35.7517 32.9888 35.549 32.9888 35.1437V26.6323L39.4736 35.549C39.575 35.549 39.6763 35.5997 39.7776 35.6503C39.8789 35.701 39.9803 35.7517 40.0816 35.7517H42.3108C42.7161 35.7517 43.1214 35.549 43.1214 35.1437ZM27.1119 20.7554C27.1119 20.3501 26.7066 19.9448 26.5039 19.9448H24.0721C23.6668 19.9448 23.4641 20.3501 23.4641 20.7554V35.1437C23.4641 35.549 23.6668 35.7517 24.0721 35.7517H26.5039C26.7066 35.7517 27.1119 35.549 27.1119 35.1437V20.7554ZM21.4376 32.7119C21.4376 32.5092 21.235 32.1039 20.8297 32.1039H14.5475V20.7554C14.5475 20.3501 14.3448 19.9448 13.9395 19.9448H11.5077C11.305 19.9448 10.8997 20.3501 10.8997 20.7554V35.1437C10.8997 35.245 10.9504 35.2957 11.0011 35.3464C11.0517 35.397 11.1024 35.4477 11.1024 35.549C11.2037 35.549 11.2544 35.5997 11.305 35.6503C11.3557 35.701 11.4064 35.7517 11.5077 35.7517H20.8297C21.235 35.7517 21.4376 35.3464 21.4376 35.1437V32.7119ZM55.8884 20.7554C55.8884 20.3501 55.4831 19.9448 55.2805 19.9448H45.9585C45.5532 19.9448 45.3505 20.3501 45.3505 20.7554V35.1437C45.3505 35.3464 45.5532 35.7517 45.9585 35.7517H55.2805C55.4831 35.7517 55.8884 35.549 55.8884 35.1437V32.7119C55.8884 32.5092 55.4831 32.1039 55.2805 32.1039H48.9983V29.6721H55.2805C55.4831 29.6721 55.8884 29.4695 55.8884 29.0642V26.6323C55.8884 26.4297 55.4831 26.0244 55.2805 26.0244H48.9983V23.5926H55.2805C55.4831 23.5926 55.8884 23.3899 55.8884 22.9846V20.7554Z",
96
+ fill: "white"
97
+ }, null, -1), X = [
98
+ W
99
+ ];
100
+ function Y(s, n) {
101
+ return t(), e("svg", U, X);
102
+ }
103
+ const t2 = /* @__PURE__ */ o(Q, [["render", Y]]), e2 = {}, n2 = {
104
+ fill: "none",
105
+ height: "40",
106
+ viewBox: "0 0 40 40",
107
+ width: "40",
108
+ xmlns: "http://www.w3.org/2000/svg"
109
+ }, C2 = /* @__PURE__ */ C("path", {
110
+ d: "m35.7603 19.144c-.1629-3.1482-1.2512-6.1768-3.1269-8.702-.5715.6193-1.1824 1.2005-1.8289 1.74-1.9861 1.6597-4.2054 3.0144-6.5859 4.02.332.7.6361 1.378.9045 2.018v.006c.0757.1788.1486.3588.2186.54 3.0097-.34 6.1824-.216 9.2577.202.4095.056.7952.116 1.1609.176zm-18.6564-14.9c1.9373 2.74635 3.7238 5.59727 5.3514 8.54 2.4312-.964 4.441-2.18 6.0591-3.534.5617-.46574 1.0905-.97029 1.5824-1.51-2.8606-2.42057-6.4799-3.74534-10.2178-3.74-.9303-.00064-1.8588.08033-2.7751.242zm-12.62516 11.75c1.35421-.0344 2.70681-.1164 4.05531-.246 3.25945-.2933 6.49105-.843 9.66515-1.644-1.6589-2.8996-3.4499-5.72058-5.3673-8.454-2.0481 1.02079-3.85403 2.47282-5.29529 4.25758-1.44125 1.78472-2.48412 3.86052-3.05787 6.08642zm3.04149 14.076c.7713-1.134 1.78513-2.41 3.13097-3.798 2.8904-2.98 6.3016-5.3 10.2496-6.58l.1232-.036c-.328-.728-.6361-1.378-.9462-1.99-3.6498 1.07-7.4944 1.738-11.32508 2.084-1.86862.17-3.54442.244-4.77692.256-.00352 3.6652 1.24899 7.2195 3.54641 10.064zm18.33237 4.76c-.7666-3.8895-1.8517-7.7085-3.2442-11.418-3.9798 1.454-7.1505 3.58-9.6016 6.116-.9891 1.0048-1.867 2.1146-2.618 3.31 2.7409 2.0576 6.0704 3.1669 9.4902 3.162 2.0474.003 4.0759-.393 5.9736-1.166zm3.7234-2.15c3.1036-2.4005 5.2179-5.8686 5.9378-9.74-.6759-.17-1.5326-.34-2.4749-.472-2.095-.3035-4.2207-.3257-6.3215-.066 1.1829 3.3577 2.138 6.7922 2.8586 10.28zm-9.697 7.32c-10.97917 0-19.879-8.954-19.879-20s8.89983-20 19.879-20c10.9792 0 19.879 8.954 19.879 20s-8.8998 20-19.879 20z",
111
+ fill: "#fff"
112
+ }, null, -1), s2 = [
113
+ C2
114
+ ];
115
+ function o2(s, n) {
116
+ return t(), e("svg", n2, s2);
117
+ }
118
+ const c2 = /* @__PURE__ */ o(e2, [["render", o2]]), i2 = { class: "gap-small flex-nowrap flex" }, r2 = ["href"], m2 = {
119
+ __name: "Socials",
120
+ props: {
121
+ telegram: {
122
+ type: String,
123
+ default: ""
124
+ },
125
+ facebook: {
126
+ type: String,
127
+ default: ""
128
+ },
129
+ instagram: {
130
+ type: String,
131
+ default: ""
132
+ },
133
+ twitter: {
134
+ type: String,
135
+ default: ""
136
+ },
137
+ reddit: {
138
+ type: String,
139
+ default: ""
140
+ },
141
+ line: {
142
+ type: String,
143
+ default: ""
144
+ },
145
+ dribbble: {
146
+ type: String,
147
+ default: ""
148
+ }
149
+ },
150
+ setup(s) {
151
+ const n = s, l = a(() => [
152
+ { name: "telegram", base: "https://t.me/" },
153
+ { name: "facebook", base: "https://www.facebook.com/" },
154
+ { name: "instagram", base: "https://www.instagram.com/" },
155
+ { name: "twitter", base: "https://twitter.com/" },
156
+ { name: "reddit", base: "https://www.reddit.com/user/" },
157
+ { name: "line", base: "" },
158
+ // не уверен в базовом URL для Line, добавьте его, если необходимо
159
+ { name: "dribbble", base: "https://dribbble.com/" }
160
+ ].filter((c) => n[c.name]).map((c) => ({
161
+ name: c.name,
162
+ href: c.base + n[c.name]
163
+ })));
164
+ function _(i) {
165
+ return {
166
+ telegram: L,
167
+ facebook: B,
168
+ instagram: E,
169
+ twitter: j,
170
+ reddit: P,
171
+ line: t2,
172
+ dribbble: c2
173
+ }[i] || null;
174
+ }
175
+ return (i, c) => (t(), e("div", i2, [
176
+ (t(!0), e(h, null, d(f(l), (r) => (t(), e("a", {
177
+ key: r.name,
178
+ href: r.href,
179
+ target: "_blank",
180
+ class: "i-big bg-second t-white flex-nowrap flex-center flex radius-extra"
181
+ }, [
182
+ (t(), w(m(_(r.name)), { class: "i-medium" }))
183
+ ], 8, r2))), 128))
184
+ ]));
185
+ }
186
+ }, l2 = {}, _2 = {
187
+ width: "652",
188
+ height: "652",
189
+ viewBox: "0 0 652 652",
190
+ fill: "none",
191
+ xmlns: "http://www.w3.org/2000/svg"
192
+ }, a2 = /* @__PURE__ */ C("path", {
193
+ fill: "rgb(var(--black))",
194
+ 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"
195
+ }, null, -1), h2 = [
196
+ a2
197
+ ];
198
+ function d2(s, n) {
199
+ return t(), e("svg", _2, h2);
200
+ }
201
+ const g2 = /* @__PURE__ */ o(l2, [["render", d2]]);
202
+ export {
203
+ g2 as I,
204
+ m2 as _
205
+ };
@@ -1,4 +1,4 @@
1
- "use strict";const e=require("vue"),B=require("./auth-5aa8e90c.js"),C=require("./vue-draggable-next.esm-bundler-80731ae0.js"),$=require("./CardHeader-925a972b.js");const _=["placeholder"],y={__name:"Textarea",props:["prop","value","content","placeholder","index","setFocus"],emits:["deleteBlock","updateBlock","addBlock","focus"],setup(o,{emit:r}){const n=o;e.ref(n);const t=e.ref(null);e.ref(0);function d(a){let l=a.target.value.split(/\n+/);if(l.length>1){n.prop[n.content]=l[0],e.nextTick(()=>{c()});let u=l.slice(1).map(f=>({__name:"Textarea",content:f}));r("addBlock","Textarea","",n.index,{blocks:u,ref:t})}else a.target.value.trim()===""&&a.target.value.includes(`
1
+ "use strict";const e=require("vue"),B=require("./auth-5a58f8cb.js"),C=require("./vue-draggable-next.esm-bundler-80731ae0.js"),$=require("./Chips-2a0d9bfe.js");const _=["placeholder"],y={__name:"Textarea",props:["prop","value","content","placeholder","index","setFocus"],emits:["deleteBlock","updateBlock","addBlock","focus"],setup(o,{emit:r}){const n=o;e.ref(n);const t=e.ref(null);e.ref(0);function d(a){let l=a.target.value.split(/\n+/);if(l.length>1){n.prop[n.content]=l[0],e.nextTick(()=>{c()});let u=l.slice(1).map(f=>({__name:"Textarea",content:f}));r("addBlock","Textarea","",n.index,{blocks:u,ref:t})}else a.target.value.trim()===""&&a.target.value.includes(`
2
2
 
3
3
  `)&&(console.log("We are adding new block:"+n.index+newBlocks+t),r("addBlock","Textarea","",n.index,{blocks:newBlocks,ref:t})),c()}function i(a){(a.keyCode===8||a.keyCode===46)&&n.prop[n.content].trim()===""&&r("deleteBlock",n.prop)}function s(){e.nextTick(()=>{t.value.focus(),r("updateBlock",n.prop,{setFocus:!1})})}function c(){t.value.style.height="1rem",t.value.style.height=t.value.scrollHeight+"px"}return e.onUpdated(()=>{n.setFocus&&e.nextTick(()=>{s()}),c()}),e.onMounted(()=>{n.setFocus&&e.nextTick(()=>{s()}),c()}),(a,l)=>(e.openBlock(),e.createElementBlock("div",null,[e.withDirectives(e.createElementVNode("textarea",{"onUpdate:modelValue":l[0]||(l[0]=u=>o.prop[o.content]=u),placeholder:o.placeholder?o.placeholder:"Enter text",onInput:d,onFocus:l[1]||(l[1]=u=>r("focus",t.value)),onKeyup:i,ref_key:"textarea",ref:t,class:"text-area mn-thin"},`
4
4
  `,40,_),[[e.vModelText,o.prop[o.content]]])]))}};const N=["placeholder"],V={__name:"H2",props:["obj","label","prop","value","content","textarea","placeholder","index","ref","setFocus"],emits:["deleteBlock","updateBlock","addBlock","focus"],setup(o,{emit:r}){const n=o;e.ref(n);const t=e.ref(null);e.ref(0);function d(a){let l=a.target.value.split(/\n+/);if(l.length>1){n.prop[n.content]=l[0],e.nextTick(()=>{c()});let u=l.slice(1).map(f=>({type:"Textarea",content:f}));r("addBlock","Textarea","",n.index,{blocks:u,ref:t})}else a.target.value.trim()===""&&a.target.value.includes(`
@@ -6,4 +6,4 @@
6
6
  `)&&(console.log("We are adding new block:"+n.index+newBlocks+t),r("addBlock","Textarea","",n.index,{blocks:newBlocks,ref:t})),c()}function i(a){(a.keyCode===8||a.keyCode===46)&&n.prop[n.content].trim()===""&&r("deleteBlock",n.prop)}function s(){e.nextTick(()=>{t.value.focus(),r("updateBlock",n.prop,{setFocus:!1})})}function c(){t.value.style.height="1rem",t.value.style.height=t.value.scrollHeight+"px"}return e.onUpdated(()=>{n.setFocus&&e.nextTick(()=>{s()}),c()}),e.onMounted(()=>{n.setFocus&&e.nextTick(()=>{s()}),c()}),e.watch(()=>n.prop[n.content],a=>{}),(a,l)=>(e.openBlock(),e.createElementBlock("div",null,[e.withDirectives(e.createElementVNode("textarea",{"onUpdate:modelValue":l[0]||(l[0]=u=>o.prop[o.content]=u),placeholder:o.placeholder?o.placeholder:"Enter text",onInput:d,onFocus:l[1]||(l[1]=u=>r("focus",t.value)),onKeyup:i,ref_key:"textarea",ref:t,class:"h3 text-area mn-thin"},`
7
7
  `,40,N),[[e.vModelText,o.prop[o.content]]])]))}},T=["placeholder"],U={__name:"Caption",props:["obj","label","prop","value","content","textarea","placeholder","index","ref"],emits:["deleteBlock","addBlock","focus"],setup(o,{emit:r}){const n=o;e.ref(n);const t=e.ref(null);function d(s){const c=/^\s*[-*]\s+(.*)/;let l=s.target.value.split(/\n+/).map(u=>{const f=c.exec(u);return f?f[1]:null}).filter(u=>u!==null);l.length>0?(n.prop[n.content]=l,i()):s.target.value.trim()===""&&(n.prop[n.content]=[],i())}function i(){t.value.style.height="1rem",t.value.style.height=t.value.scrollHeight+"px"}return e.onUpdated(()=>{i()}),e.onMounted(()=>{i()}),e.watch(()=>n.prop[n.content],s=>{(!s||s.length===0)&&r("deleteBlock",n.prop)}),(s,c)=>(e.openBlock(),e.createElementBlock("div",null,[e.withDirectives(e.createElementVNode("textarea",{"onUpdate:modelValue":c[0]||(c[0]=a=>o.prop[o.content]=a),placeholder:o.placeholder?o.placeholder:"Enter text",onInput:d,onFocus:c[1]||(c[1]=a=>r("focus",t.value)),ref_key:"textarea",ref:t,class:"br-l br-solid br-main pd-l-small text-area mn-small"},`
8
8
  `,40,T),[[e.vModelText,o.prop[o.content]]])]))}},D=["placeholder"],F={__name:"Bullets",props:["obj","label","prop","value","content","textarea","placeholder","index","ref"],emits:["deleteBlock","addBlock","focus"],setup(o,{emit:r}){const n=o;e.ref(n);const t=e.ref(null);function d(s){const c=/^\s*[-*]\s+(.*)/;let l=s.target.value.split(/\n+/).map(u=>{const f=c.exec(u);return f?f[1]:null}).filter(u=>u!==null);l.length>0?(n.prop[n.content]=l,i()):s.target.value.trim()===""&&(n.prop[n.content]=[],i())}function i(){t.value.style.height="1rem",t.value.style.height=t.value.scrollHeight+"px"}return e.onUpdated(()=>{i()}),e.onMounted(()=>{i()}),e.watch(()=>n.prop[n.content],s=>{(!s||s.length===0)&&r("deleteBlock",n.prop)}),(s,c)=>(e.openBlock(),e.createElementBlock("div",null,[e.createTextVNode(e.toDisplayString(o.prop[o.content])+" ",1),e.withDirectives(e.createElementVNode("textarea",{"onUpdate:modelValue":c[0]||(c[0]=a=>o.prop[o.content]=a),placeholder:o.placeholder?o.placeholder:"Enter text",onInput:d,onFocus:c[1]||(c[1]=a=>r("focus",t.value)),ref_key:"textarea",ref:t,class:"text-area mn-small"},`
9
- `,40,D),[[e.vModelText,o.prop[o.content]]])]))}},I=["src"],M={key:1,class:"t-transp pd-extra"},H={__name:"ImageUpload",props:["label","value","prop"],emits:["input","updateBlock"],setup(o,{emit:r}){const n=o,t=e.ref(null),d=e.ref(null);function i(){d.value.click()}async function s(a){let l=a.target.files[0];console.log(l);let u=new FormData,f="unsorted";u.append("file",l),console.log(u.has("file"));try{let h=await B.axios.create({baseURL:process.env.API_URL,withCredentials:!0}).post(`/api/upload/file?folderName=${encodeURIComponent(f)}`,u,{headers:{"Content-Type":"multipart/form-data"}});t.value=h.data.filepath,console.log(t.value),r("input",t.value),r("updateBlock",n.prop,{content:t.value})}catch(g){console.error(g)}}function c(a){a.preventDefault(),s({target:{files:a.dataTransfer.files}})}return(a,l)=>(e.openBlock(),e.createElementBlock("div",{onClick:i,onDrop:c,onDragover:l[0]||(l[0]=e.withModifiers(()=>{},["prevent"])),class:"w-100 radius-big bg-white image-upload-area flex-v-center flex-h-center flex t-black mn-small"},[o.prop.content?(e.openBlock(),e.createElementBlock("img",{key:0,src:o.prop.content,alt:"Uploaded image",class:"w-100 h-30r object-fit-contain"},null,8,I)):(e.openBlock(),e.createElementBlock("span",M,"Click or drag-and-drop your image")),e.createElementVNode("input",{type:"file",ref_key:"fileInput",ref:d,onChange:s,style:{display:"none"}},null,544)],32))}},S=["onMouseover"],A={key:0,class:"z-index-5 radius-thin mn-small relative left-0 mt-2 w-max bg-white shadow-lg rounded"},L=["onClick"],z=["onClick"],R=["onClick"],j={__name:"Constructor",props:["content"],emits:["update"],setup(o,{emit:r}){const n=o;let t=e.ref(null);e.ref(null),t.value={content:n.content};const d={Textarea:y,H2:V,Bullets:F,Caption:U,ImageUpload:H};function i(h="Textarea",k="",p,m){console.log("We are adding new block (functuin HandleAddBlock):"+h+k+p+m);let v={order:t.value.content.length+1,type:h,style:"",class:"",content:k,blocks:[],setFocus:!0};if(m&&m.blocks&&Array.isArray(m.blocks)){let x=m.blocks.map(E=>({...v,content:E.content})),b=[(m.index||p)+1,0].concat(x);t.value.content.splice.apply(t.value.content,b);const w=x[x.length-1];console.log("New block is"+w)}else p!==void 0?(t.value.content.splice(p+1,0,v),console.log("Latest block is"+v)):(console.log("Another block is"+v),t.value.content.push(v));a.value=null,r("update",t.value.content)}function s(h,k){const p=t.value.content.findIndex(m=>m===h);p!==-1&&(t.value.content[p]={...t.value.content[p],...k}),r("update",t.value.content)}function c(h){let k=t.value.content.findIndex(p=>p===h);k!==-1&&t.value.content.splice(k,1),t.value.content[k-1].setFocus=!0,r("update",t.value.content)}const a=e.ref(null),l=e.ref(!1),u=e.ref(!1);function f(){l.value=!0}function g(){l.value=!1}return e.watchEffect(()=>{t.value&&t.value.content.length===0&&i("Textarea",""),r("update",t.value.content)}),(h,k)=>(e.openBlock(),e.createElementBlock("section",null,[e.unref(t).content?(e.openBlock(),e.createBlock(e.unref(C.VueDraggableNext),{key:0,class:"w-full",list:e.unref(t).content,onStart:f,onEnd:g},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(t).content,(p,m)=>(e.openBlock(),e.createElementBlock("div",{key:m,class:"relative"},[e.createElementVNode("div",{onMouseover:v=>(a.value=m,u.value=!1),class:"w-full h-full"},[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(d[p.type]),{index:m,component:p,prop:p,class:e.normalizeClass(p.class),setFocus:p.setFocus,content:"content",onDeleteBlock:c,onAddBlock:i,onUpdateBlock:s},null,40,["index","component","prop","class","setFocus"]))],40,S),e.createVNode(e.Transition,{name:"fade"},{default:e.withCtx(()=>[a.value===m?(e.openBlock(),e.createElementBlock("div",{key:0,class:"pos-absolute pos-r-100 pos-t-0 z-index-4 i-semi",onMousedown:k[1]||(k[1]=e.withModifiers(v=>l.value=!0,["prevent"]))},[e.createElementVNode("button",{onClick:k[0]||(k[0]=v=>u.value=!u.value),class:"mn-small w-100 i-semi bg-white radius-thin"},e.toDisplayString(p.content?"...":"+"),1),u.value?(e.openBlock(),e.createElementBlock("div",A,[e.createElementVNode("button",{onClick:v=>c(p),class:"block w-max text-left px-4 py-2 hover:bg-gray-200"},"Удалить",8,L),e.createElementVNode("button",{onClick:v=>i("ImageUpload","",m),class:"block w-max text-left px-4 py-2 hover:bg-gray-200"},"Добавить изображение",8,z),e.createElementVNode("button",{onClick:v=>i("H2","",m),class:"block w-max text-left px-4 py-2 hover:bg-gray-200"},"Добавить заголовок",8,R)])):e.createCommentVNode("",!0)],32)):e.createCommentVNode("",!0)]),_:2},1024)]))),128))]),_:1},8,["list"])):e.createCommentVNode("",!0)]))}},q={class:"mn-small"},K=e.createElementVNode("p",{class:"t-semi uppercase"},"Please log in to leave a comment.",-1),P=[K],W={key:1,class:"mn-small"},G=["onSubmit"],J=e.createElementVNode("button",{type:"submit",class:"mn-l-auto bg-main button"},"Send",-1),O={class:"pd-t-zero"},Q={class:"p-big"},X={__name:"Comments",props:["target","owner","type"],setup(o){const r=o,n=B.axios.create({baseURL:process.env.API_URL}),t=e.ref([]),d=e.ref(""),i=async()=>{const{data:c}=await n.get(`/comments/read?type=${r.type}&target=${r.target}`);t.value=c},s=async()=>{if(d.value)try{const c=await n.post("/comments/create",{target:r.target,user:r.owner,type:r.type,content:d.value});c.data.owner=r.owner,t.value.push(c.data),d.value=""}catch(c){console.error(c)}};return i(),(c,a)=>(e.openBlock(),e.createElementBlock("div",null,[e.createElementVNode("div",null,[e.createElementVNode("h3",q,e.toDisplayString(t.value.length)+" comments",1),o.owner?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",{key:0,onClick:a[0]||(a[0]=l=>c.$router.push({name:"Sign In"})),class:"cursor-pointer mn-small section bg-black t-white flex-center flex radius-big"},P)),o.owner?(e.openBlock(),e.createElementBlock("div",W,[e.createElementVNode("form",{onSubmit:e.withModifiers(s,["prevent"]),class:"bg-grey radius-big pd-medium"},[e.withDirectives(e.createElementVNode("textarea",{"onUpdate:modelValue":a[1]||(a[1]=l=>d.value=l),placeholder:"Enter your comment",class:"pd-small p-big w-100 radius-small mn-r-small"},null,512),[[e.vModelText,d.value]]),J],40,G)])):e.createCommentVNode("",!0)]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.value,l=>(e.openBlock(),e.createElementBlock("div",{key:l._id,class:"comment mn-small radius-big pd-medium bg-grey"},[e.createVNode($._sfc_main,{class:"mn-medium",owner:{target:l.user},creator:{target:l.user},date:l.createdAt},null,8,["owner","creator","date"]),e.createElementVNode("div",O,[e.createElementVNode("p",Q,e.toDisplayString(l.content),1)])]))),128))]))}},Y={class:"w-100 bg-white radius-big image-upload-area flex-v-center flex-h-center flex t-black mn-small"},Z=["src"],ee={__name:"Image",props:["label","value","prop"],setup(o){return e.ref(null),(r,n)=>(e.openBlock(),e.createElementBlock("div",Y,[o.prop.content?(e.openBlock(),e.createElementBlock("img",{key:0,src:o.prop.content,alt:"Uploaded image",class:"w-100 h-30r object-fit-contain"},null,8,Z)):e.createCommentVNode("",!0)]))}};exports._sfc_main=j;exports._sfc_main$1=X;exports._sfc_main$2=ee;exports._sfc_main$3=y;
9
+ `,40,D),[[e.vModelText,o.prop[o.content]]])]))}},I=["src"],M={key:1,class:"t-transp pd-extra"},S={__name:"ImageUpload",props:["label","value","prop"],emits:["input","updateBlock"],setup(o,{emit:r}){const n=o,t=e.ref(null),d=e.ref(null);function i(){d.value.click()}async function s(a){let l=a.target.files[0];console.log(l);let u=new FormData,f="unsorted";u.append("file",l),console.log(u.has("file"));try{let h=await B.axios.create({baseURL:process.env.API_URL,withCredentials:!0}).post(`/api/upload/file?folderName=${encodeURIComponent(f)}`,u,{headers:{"Content-Type":"multipart/form-data"}});t.value=h.data.filepath,console.log(t.value),r("input",t.value),r("updateBlock",n.prop,{content:t.value})}catch(g){console.error(g)}}function c(a){a.preventDefault(),s({target:{files:a.dataTransfer.files}})}return(a,l)=>(e.openBlock(),e.createElementBlock("div",{onClick:i,onDrop:c,onDragover:l[0]||(l[0]=e.withModifiers(()=>{},["prevent"])),class:"w-100 radius-big bg-white image-upload-area flex-v-center flex-h-center flex t-black mn-small"},[o.prop.content?(e.openBlock(),e.createElementBlock("img",{key:0,src:o.prop.content,alt:"Uploaded image",class:"w-100 h-30r object-fit-contain"},null,8,I)):(e.openBlock(),e.createElementBlock("span",M,"Click or drag-and-drop your image")),e.createElementVNode("input",{type:"file",ref_key:"fileInput",ref:d,onChange:s,style:{display:"none"}},null,544)],32))}},A=["onMouseover"],H={key:0,class:"z-index-5 radius-thin mn-small relative left-0 mt-2 w-max bg-white shadow-lg rounded"},L=["onClick"],z=["onClick"],R=["onClick"],j={__name:"Constructor",props:["content"],emits:["update"],setup(o,{emit:r}){const n=o;let t=e.ref(null);e.ref(null),t.value={content:n.content};const d={Textarea:y,H2:V,Bullets:F,Caption:U,ImageUpload:S};function i(h="Textarea",k="",p,m){console.log("We are adding new block (functuin HandleAddBlock):"+h+k+p+m);let v={order:t.value.content.length+1,type:h,style:"",class:"",content:k,blocks:[],setFocus:!0};if(m&&m.blocks&&Array.isArray(m.blocks)){let x=m.blocks.map(E=>({...v,content:E.content})),b=[(m.index||p)+1,0].concat(x);t.value.content.splice.apply(t.value.content,b);const w=x[x.length-1];console.log("New block is"+w)}else p!==void 0?(t.value.content.splice(p+1,0,v),console.log("Latest block is"+v)):(console.log("Another block is"+v),t.value.content.push(v));a.value=null,r("update",t.value.content)}function s(h,k){const p=t.value.content.findIndex(m=>m===h);p!==-1&&(t.value.content[p]={...t.value.content[p],...k}),r("update",t.value.content)}function c(h){let k=t.value.content.findIndex(p=>p===h);k!==-1&&t.value.content.splice(k,1),t.value.content[k-1].setFocus=!0,r("update",t.value.content)}const a=e.ref(null),l=e.ref(!1),u=e.ref(!1);function f(){l.value=!0}function g(){l.value=!1}return e.watchEffect(()=>{t.value&&t.value.content.length===0&&i("Textarea",""),r("update",t.value.content)}),(h,k)=>(e.openBlock(),e.createElementBlock("section",null,[e.unref(t).content?(e.openBlock(),e.createBlock(e.unref(C.VueDraggableNext),{key:0,class:"w-full",list:e.unref(t).content,onStart:f,onEnd:g},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(t).content,(p,m)=>(e.openBlock(),e.createElementBlock("div",{key:m,class:"relative"},[e.createElementVNode("div",{onMouseover:v=>(a.value=m,u.value=!1),class:"w-full h-full"},[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(d[p.type]),{index:m,component:p,prop:p,class:e.normalizeClass(p.class),setFocus:p.setFocus,content:"content",onDeleteBlock:c,onAddBlock:i,onUpdateBlock:s},null,40,["index","component","prop","class","setFocus"]))],40,A),e.createVNode(e.Transition,{name:"fade"},{default:e.withCtx(()=>[a.value===m?(e.openBlock(),e.createElementBlock("div",{key:0,class:"pos-absolute pos-r-100 pos-t-0 z-index-4 i-semi",onMousedown:k[1]||(k[1]=e.withModifiers(v=>l.value=!0,["prevent"]))},[e.createElementVNode("button",{onClick:k[0]||(k[0]=v=>u.value=!u.value),class:"mn-small w-100 i-semi bg-white radius-thin"},e.toDisplayString(p.content?"...":"+"),1),u.value?(e.openBlock(),e.createElementBlock("div",H,[e.createElementVNode("button",{onClick:v=>c(p),class:"block w-max text-left px-4 py-2 hover:bg-gray-200"},"Удалить",8,L),e.createElementVNode("button",{onClick:v=>i("ImageUpload","",m),class:"block w-max text-left px-4 py-2 hover:bg-gray-200"},"Добавить изображение",8,z),e.createElementVNode("button",{onClick:v=>i("H2","",m),class:"block w-max text-left px-4 py-2 hover:bg-gray-200"},"Добавить заголовок",8,R)])):e.createCommentVNode("",!0)],32)):e.createCommentVNode("",!0)]),_:2},1024)]))),128))]),_:1},8,["list"])):e.createCommentVNode("",!0)]))}},q={class:"mn-small"},K=e.createElementVNode("p",{class:"t-semi uppercase"},"Please log in to leave a comment.",-1),P=[K],W={key:1,class:"mn-small"},G=["onSubmit"],J=e.createElementVNode("button",{type:"submit",class:"mn-l-auto bg-main button"},"Send",-1),O={class:"pd-t-zero"},Q={class:"p-big"},X={__name:"Comments",props:["target","owner","type"],setup(o){const r=o,n=B.axios.create({baseURL:process.env.API_URL}),t=e.ref([]),d=e.ref(""),i=async()=>{const{data:c}=await n.get(`/comments/read?type=${r.type}&target=${r.target}`);t.value=c},s=async()=>{if(d.value)try{const c=await n.post("/comments/create",{target:r.target,user:r.owner,type:r.type,content:d.value});c.data.owner=r.owner,t.value.push(c.data),d.value=""}catch(c){console.error(c)}};return i(),(c,a)=>(e.openBlock(),e.createElementBlock("div",null,[e.createElementVNode("div",null,[e.createElementVNode("h3",q,e.toDisplayString(t.value.length)+" comments",1),o.owner?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",{key:0,onClick:a[0]||(a[0]=l=>c.$router.push({name:"Sign In"})),class:"cursor-pointer mn-small section bg-black t-white flex-center flex radius-big"},P)),o.owner?(e.openBlock(),e.createElementBlock("div",W,[e.createElementVNode("form",{onSubmit:e.withModifiers(s,["prevent"]),class:"bg-grey radius-big pd-medium"},[e.withDirectives(e.createElementVNode("textarea",{"onUpdate:modelValue":a[1]||(a[1]=l=>d.value=l),placeholder:"Enter your comment",class:"pd-small p-big w-100 radius-small mn-r-small"},null,512),[[e.vModelText,d.value]]),J],40,G)])):e.createCommentVNode("",!0)]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.value,l=>(e.openBlock(),e.createElementBlock("div",{key:l._id,class:"comment mn-small radius-big pd-medium bg-grey"},[e.createVNode($._sfc_main,{class:"mn-medium",owner:{target:l.user},creator:{target:l.user},date:l.createdAt},null,8,["owner","creator","date"]),e.createElementVNode("div",O,[e.createElementVNode("p",Q,e.toDisplayString(l.content),1)])]))),128))]))}},Y={class:"w-100 bg-white radius-big image-upload-area flex-v-center flex-h-center flex t-black mn-small"},Z=["src"],ee={__name:"Image",props:["label","value","prop"],setup(o){return e.ref(null),(r,n)=>(e.openBlock(),e.createElementBlock("div",Y,[o.prop.content?(e.openBlock(),e.createElementBlock("img",{key:0,src:o.prop.content,alt:"Uploaded image",class:"w-100 h-30r object-fit-contain"},null,8,Z)):e.createCommentVNode("",!0)]))}};exports._sfc_main=j;exports._sfc_main$1=X;exports._sfc_main$2=ee;exports._sfc_main$3=y;
@@ -1,7 +1,7 @@
1
1
  import { ref as d, onUpdated as F, nextTick as b, onMounted as I, openBlock as i, createElementBlock as p, withDirectives as B, createElementVNode as v, vModelText as $, watch as D, createTextVNode as j, toDisplayString as U, withModifiers as E, watchEffect as K, unref as _, createBlock as V, withCtx as A, Fragment as H, renderList as z, resolveDynamicComponent as P, normalizeClass as W, createVNode as L, Transition as q, createCommentVNode as w } from "vue";
2
- import { a as M } from "./auth-35ef1791.mjs";
2
+ import { a as M } from "./auth-5217f6a5.mjs";
3
3
  import { V as G } from "./vue-draggable-next.esm-bundler-ff6e3f52.mjs";
4
- import { _ as J } from "./CardHeader-ce5a1a75.mjs";
4
+ import { _ as J } from "./Chips-f0b7ce36.mjs";
5
5
  const O = ["placeholder"], Q = {
6
6
  __name: "Textarea",
7
7
  props: ["prop", "value", "content", "placeholder", "index", "setFocus"],
@@ -1,5 +1,5 @@
1
1
  import { openBlock as o, createElementBlock as c, createElementVNode as e } from "vue";
2
- import { _ as l } from "./auth-708eebcb.mjs";
2
+ import { _ as l } from "./_plugin-vue_export-helper-dad06003.mjs";
3
3
  const t = {}, n = {
4
4
  viewBox: "0 0 42 42",
5
5
  fill: "none",
@@ -0,0 +1 @@
1
+ "use strict";const e=require("vue"),c=require("./_plugin-vue_export-helper-f246444f.js"),l={},t={viewBox:"0 0 42 42",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o=e.createElementVNode("circle",{fill:"rgb(var(--main))",cx:"21",cy:"21",r:"21"},null,-1),r=e.createElementVNode("path",{fill:"#242424","fill-opacity":"0.1","fill-rule":"evenodd","clip-rule":"evenodd",d:"M8.00233 37.4954C8.00078 37.4458 8 37.3961 8 37.3462C8 32.9066 11.5673 29.3077 15.9677 29.3077H26.0323C30.4328 29.3077 34 32.9066 34 37.3462C34 37.3961 33.9992 37.4458 33.9977 37.4954C30.4223 40.3165 25.9078 42 21 42C16.0922 42 11.5777 40.3164 8.00233 37.4954ZM21 9C16.5995 9 13.0323 12.5989 13.0323 17.0385C13.0323 21.478 16.5995 25.0769 21 25.0769C25.4005 25.0769 28.9677 21.478 28.9677 17.0385C28.9677 12.5989 25.4005 9 21 9Z"},null,-1),n=[o,r];function i(_,d){return e.openBlock(),e.createElementBlock("svg",t,n)}const s=c._export_sfc(l,[["render",i]]);exports.PlaceholderUserpic=s;
@@ -1 +1 @@
1
- "use strict";const e=require("vue"),l=require("vue-router"),p=require("vue-i18n");require("./Breadcrumbs.vue_vue_type_style_index_0_lang-15e71ec4.js");const a={class:"pd-small popup-wrapper"},d=e.createElementVNode("svg",{width:"26",height:"26",viewBox:"0 0 26 26",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[e.createElementVNode("rect",{width:"24",height:"24",transform:"translate(1 1)"}),e.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M12.9996 10.8L22.8994 0.900244L25.0993 3.1002L15.1995 13L25.0993 22.8998L22.8994 25.0998L12.9996 15.2L3.09976 25.0998L0.899801 22.8998L10.7996 13L0.899801 3.1002L3.09976 0.900244L12.9996 10.8Z",fill:"white"})],-1),m=[d],v={__name:"Popup",props:{isPopupOpen:{type:Boolean,default:!1},style:String},emits:["close-popup"],setup(t,{emit:r}){const i=t;function n(){r("close-popup")}e.watch(()=>i.isPopupOpen,o=>{o?document.body.classList.add("no-scroll"):document.body.classList.remove("no-scroll")}),l.useRoute(),l.useRouter();const c={messages:{en:{},ru:{}}};return p.useI18n(c),(o,s)=>t.isPopupOpen?(e.openBlock(),e.createBlock(e.Teleport,{key:0,to:"body"},[e.createVNode(e.Transition,{name:"scale"},{default:e.withCtx(()=>[e.withDirectives(e.createElementVNode("div",a,[e.createElementVNode("section",e.mergeProps({class:"t-center z-index-4"},o.$attrs),[e.createElementVNode("button",{onClick:s[0]||(s[0]=u=>n()),class:"pd-regular hover-scale-1 z-index-5 button-close-popup button"},m),e.renderSlot(o.$slots,"default")],16),e.createElementVNode("div",{onClick:s[1]||(s[1]=u=>n()),class:e.normalizeClass([{active:t.isPopupOpen===!0},"color-overlay z-index-3"])},null,2)],512),[[e.vShow,t.isPopupOpen]])]),_:3})])):e.createCommentVNode("",!0)}};exports._sfc_main=v;
1
+ "use strict";const e=require("vue"),l=require("vue-router"),p=require("vue-i18n");require("./Breadcrumbs.vue_vue_type_style_index_0_lang-e32a3041.js");const a={class:"pd-small popup-wrapper"},d=e.createElementVNode("svg",{width:"26",height:"26",viewBox:"0 0 26 26",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[e.createElementVNode("rect",{width:"24",height:"24",transform:"translate(1 1)"}),e.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M12.9996 10.8L22.8994 0.900244L25.0993 3.1002L15.1995 13L25.0993 22.8998L22.8994 25.0998L12.9996 15.2L3.09976 25.0998L0.899801 22.8998L10.7996 13L0.899801 3.1002L3.09976 0.900244L12.9996 10.8Z",fill:"white"})],-1),m=[d],v={__name:"Popup",props:{isPopupOpen:{type:Boolean,default:!1},style:String},emits:["close-popup"],setup(t,{emit:r}){const i=t;function n(){r("close-popup")}e.watch(()=>i.isPopupOpen,o=>{o?document.body.classList.add("no-scroll"):document.body.classList.remove("no-scroll")}),l.useRoute(),l.useRouter();const c={messages:{en:{},ru:{}}};return p.useI18n(c),(o,s)=>t.isPopupOpen?(e.openBlock(),e.createBlock(e.Teleport,{key:0,to:"body"},[e.createVNode(e.Transition,{name:"scale"},{default:e.withCtx(()=>[e.withDirectives(e.createElementVNode("div",a,[e.createElementVNode("section",e.mergeProps({class:"t-center z-index-4"},o.$attrs),[e.createElementVNode("button",{onClick:s[0]||(s[0]=u=>n()),class:"pd-regular hover-scale-1 z-index-5 button-close-popup button"},m),e.renderSlot(o.$slots,"default")],16),e.createElementVNode("div",{onClick:s[1]||(s[1]=u=>n()),class:e.normalizeClass([{active:t.isPopupOpen===!0},"color-overlay z-index-3"])},null,2)],512),[[e.vShow,t.isPopupOpen]])]),_:3})])):e.createCommentVNode("",!0)}};exports._sfc_main=v;
@@ -1,7 +1,7 @@
1
1
  import { watch as p, openBlock as u, createBlock as a, Teleport as c, createVNode as d, Transition as m, withCtx as v, withDirectives as f, createElementVNode as e, mergeProps as h, renderSlot as L, normalizeClass as w, vShow as g, createCommentVNode as x } from "vue";
2
2
  import { useRoute as P, useRouter as y } from "vue-router";
3
3
  import { useI18n as b } from "vue-i18n";
4
- import "./Breadcrumbs.vue_vue_type_style_index_0_lang-628f013e.mjs";
4
+ import "./Breadcrumbs.vue_vue_type_style_index_0_lang-d9c6e4d1.mjs";
5
5
  const k = { class: "pd-small popup-wrapper" }, C = /* @__PURE__ */ e("svg", {
6
6
  width: "26",
7
7
  height: "26",
@@ -1,7 +1,7 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),p=require("./organizations.client-c60d7659.js"),V=require("vue-router"),k=require("vue-i18n"),B=require("./carousel.es-ee047568.js"),S=require("./vuex.esm-bundler-e8cf3cd2.js"),L=require("./Feed-55c5907a.js"),E=require("./auth-5aa8e90c.js"),I=require("./Popup-105ef2c3.js");require("./globals-928eb13c.js");require("./Breadcrumbs.vue_vue_type_style_index_0_lang-15e71ec4.js");require("./Tab-6f0a4909.js");require("./inputs.validation-24ae76b9.js");require("./ButtonFollow-2ce169ca.js");require("./Feed-8fd41524.js");require("./EmptyState-7658d7d6.js");require("./CardHeader-925a972b.js");require("./PlaceholderUserpic-d64d6dd5.js");require("./IconEdit-736c89be.js");require("./organizations-af43bda4.js");require("./UploadImage-441e8526.js");require("./CardOrganization-ee5c34ab.js");require("./Publics-3f277c17.js");/**
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),p=require("./organizations.client-d21a22ec.js"),V=require("vue-router"),k=require("vue-i18n"),B=require("./carousel.es-ee047568.js"),S=require("./vuex.esm-bundler-e8cf3cd2.js"),L=require("./Feed-f987d8bb.js"),E=require("./_plugin-vue_export-helper-f246444f.js"),I=require("./Popup-0106ee0c.js");require("./auth-5a58f8cb.js");require("./globals-928eb13c.js");require("./Breadcrumbs.vue_vue_type_style_index_0_lang-e32a3041.js");require("./Tab-6f0a4909.js");require("./inputs.validation-24ae76b9.js");require("./ButtonFollow-959861db.js");require("./Feed-a2870bbf.js");require("./EmptyState-7658d7d6.js");require("./Chips-2a0d9bfe.js");require("./PlaceholderUserpic-20d58460.js");require("./IconEdit-823ddda9.js");require("./organizations-e97a0f85.js");require("./UploadImage-73d66f27.js");require("./CardOrganization-1be3651b.js");require("./Publics-e14d36ed.js");/**
2
2
  * vue-meta v3.0.0-alpha.10
3
3
  * (c) 2022
4
4
  * - Pim (@pimlie)
5
5
  * - All the amazing contributors
6
6
  * @license MIT
7
- */const M=t=>t!==null&&typeof t=="object";function $(t,o,n){for(const a in o)a in n?M(t[a])?$(t[a],o[a],n[a]):o[a]!==n[a]&&(t[a]=o[a]):t[a]=o[a];for(const a in n)o&&a in o||delete t[a]}function b(t){if(t||(t=e.getCurrentInstance()||void 0),t)return t.appContext.config.globalProperties.$metaManager}function q(t,o){const n=e.getCurrentInstance()||void 0;if(!o&&n&&(o=b(n)),!o)throw new Error("No manager or current instance");e.isProxy(t)&&(e.watch(t,(c,s)=>{$(a.meta,c,s)}),t=t.value);const a=o.addMeta(t,n);return a}e.defineComponent({name:"Metainfo",inheritAttrs:!1,setup:(t,{slots:o})=>()=>{const n=b();if(n)return n.render({slots:o})}});const D={class:"pd-t-zero pd-thin"},z={class:"bg-black t-white radius-big footer"},P={id:"top-footer",class:"cols-3 section"},A={href:"mailto:hello@weeder.delivery",class:"w-100 radius-small contact col"},T={class:"t-transp"},F={class:"h4 mn-small"},O=e.createElementVNode("div",{class:"store-buttons"},null,-1),H={href:"https://t.me/weeder_support",target:"_blank",class:"w-100 radius-small contact col"},Z={class:"h4 mn-small"},R=e.createElementVNode("div",{class:"socials flex-nojustify flex"},[e.createElementVNode("a",{class:"mn-r-small",href:"https://t.me/weederdelivery",target:"_blank"}),e.createElementVNode("a",{class:"mn-r-small",href:"https://t.me/weederdelivery",target:"_blank"}),e.createElementVNode("a",{class:"mn-r-small",href:"https://t.me/weederdelivery",target:"_blank"})],-1),j={class:"cols-3 section"},X={class:"lh-semi nav-footer col"},W={class:"mn-small t-semi h5"},J={class:"mn-medium ol"},Y=["innerHTML"],G=e.createElementVNode("a",{href:"https://ozdao.dev",target:"_blank"},null,-1),Q={class:"lh-semi nav-footer col"},U={class:"mn-small t-semi h5"},K={class:"lh-semi col"},ee={class:"mn-small t-semi h5"},te=e.createElementVNode("div",{class:"mn-medium"},[e.createElementVNode("li",null,"Phuket,"),e.createElementVNode("li",null,"43 283 Soi Boathouse,"),e.createElementVNode("li",null,"Rawai")],-1),oe={class:"pd-small t-center br-top-dark copyright"},ne={__name:"Footer",async setup(t){let o,n;V.useRouter(),[o,n]=e.withAsyncContext(()=>p.actions$1.fetchCategories()),await o,n();const a={locale:"en",messages:{en:{store:"Online Store",information:"Information",description:"Weeder Delivery stocks a wide range of quality!",app:"Get Our App",adress:"Adress",support:"Get Online Support",socials:"Find Us in Socials",email:"Contact by email",time:"24 / 7 Seven days a week",copyright:"2022 © Weeder Delivery. Proudly created with OZ DAO.",pages:[],categories:[]},ru:{store:"Онлайн Каталог",information:"Информация",description:"Weeder Delivery предлагает широкий ассортимент качественных!",app:"Скачайте Наше Приложение",adress:"Адрес",support:"Онлайн Поддержка",socials:"Найдите Нас в Социальных Сетях",email:"Связаться по email",time:"24 / 7 без перерывов",copyright:"2022 © Weeder Delivery. С гордостью создано OZ DAO.",pages:[],categories:[]}}};p.state.all.forEach(s=>{s.localization.forEach(u=>{a.messages[u.locale].categories.push(u.text)})});const{t:c}=k.useI18n(a);return(s,u)=>(e.openBlock(),e.createElementBlock("div",D,[e.createElementVNode("footer",z,[e.createElementVNode("div",P,[e.createElementVNode("a",A,[e.createElementVNode("p",T,e.toDisplayString(e.unref(c)("description")),1)]),e.createElementVNode("div",{onClick:u[0]||(u[0]=l=>this.$router.push({name:"Home"})),class:"flex-v-center flex logo-link col"},[e.createElementVNode("p",F,e.toDisplayString(e.unref(c)("app")),1),O]),e.createElementVNode("a",H,[e.createElementVNode("p",Z,e.toDisplayString(e.unref(c)("socials")),1),R])]),e.createElementVNode("div",j,[e.createElementVNode("ul",X,[e.createElementVNode("li",W,e.toDisplayString(e.unref(c)("store")),1),e.createElementVNode("div",J,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(p.state.all,(l,i)=>(e.openBlock(),e.createElementBlock("li",null,[e.createElementVNode("span",{innerHTML:e.unref(c)("categories["+i+"]")},null,8,Y)]))),256))]),G]),e.createElementVNode("ul",Q,[e.createElementVNode("li",U,e.toDisplayString(e.unref(c)("information")),1)]),e.createElementVNode("ul",K,[e.createElementVNode("li",ee,e.toDisplayString(e.unref(c)("email")),1),te])]),e.createElementVNode("p",oe,e.toDisplayString(e.unref(c)("copyright")),1)])]))}},ae={key:0,class:"thc"},ce={class:"t-bold t-white"},se=e.createElementVNode("p",{class:"t-white h6"},"THC",-1),re={key:0,width:"60",height:"66",viewBox:"0 0 60 66",fill:"none",xmlns:"http://www.w3.org/2000/svg"},ie=e.createElementVNode("path",{fill:"#FF0000",stroke:"white","stroke-width":"3",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"},null,-1),le=[ie],de={key:1,width:"60",height:"66",viewBox:"0 0 60 66",fill:"none",xmlns:"http://www.w3.org/2000/svg"},ue=e.createElementVNode("path",{fill:"#FF0099",stroke:"white","stroke-width":"3",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"},null,-1),me=[ue],he={key:2,width:"60",height:"66",viewBox:"0 0 60 66",fill:"none",xmlns:"http://www.w3.org/2000/svg"},pe=e.createElementVNode("path",{fill:"#EB00FF",stroke:"white","stroke-width":"3",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"},null,-1),fe=[pe],ge={key:3,width:"60",height:"66",viewBox:"0 0 60 66",fill:"none",xmlns:"http://www.w3.org/2000/svg"},_e=e.createElementVNode("path",{fill:"#00FF29",stroke:"white","stroke-width":"3",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"},null,-1),ve=[_e],Ce={__name:"THC",props:{product:Object},setup(t){return(o,n)=>t.product.information[1]?(e.openBlock(),e.createElementBlock("div",ae,[e.createElementVNode("p",ce,e.toDisplayString(t.product.information[1].value)+" %",1),se,Number(t.product.information[1].value)>=18?(e.openBlock(),e.createElementBlock("svg",re,le)):e.createCommentVNode("",!0),Number(t.product.information[1].value)<=18&&Number(t.product.information[1].value)>=14?(e.openBlock(),e.createElementBlock("svg",de,me)):e.createCommentVNode("",!0),Number(t.product.information[1].value)<=14&&Number(t.product.information[1].value)>=10?(e.openBlock(),e.createElementBlock("svg",he,fe)):e.createCommentVNode("",!0),Number(t.product.information[1].value)<=10?(e.openBlock(),e.createElementBlock("svg",ge,ve)):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)}},ke={class:"price-tag radius-small"},ye={key:0,class:"t-transp t-main p-medium line-through price"},x={__name:"Price",props:{product:Object,size:String},setup(t){return(o,n)=>(e.openBlock(),e.createElementBlock("div",ke,[e.createElementVNode("p",{class:e.normalizeClass({"t-main":t.product.sale,h4:!t.size,"h5 t-semi pd-thin":t.size==="small","h3 t-semi pd-small":t.size==="big"})},e.toDisplayString(t.product.price)+" "+e.toDisplayString(o.returnCurrency()),3),t.product.sale?(e.openBlock(),e.createElementBlock("p",ye,e.toDisplayString(t.product.price/100*(100+t.product.sale))+" "+e.toDisplayString(o.returnCurrency()),1)):e.createCommentVNode("",!0)]))}},we=["src"],Ve={key:1,class:"h-100 w-100",style:{"object-fit":"cover"},width:"524",height:"345",viewBox:"0 0 524 345",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Ne=e.createElementVNode("rect",{width:"524",height:"345",fill:"white"},null,-1),Ee=e.createElementVNode("rect",{width:"524",height:"345",fill:"white"},null,-1),Be=e.createElementVNode("circle",{cx:"262",cy:"172",r:"56",fill:"#00ff88","fill-opacity":"0.1"},null,-1),$e=e.createElementVNode("path",{fill:"#00ff88",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"},null,-1),be=[Ne,Ee,Be,$e],xe={class:"pd-medium t-left product-card-content"},Se={class:"mn-thin h4"},Le={key:1,class:"mn-small t-transp p-small"},Ie=e.createElementVNode("div",null,null,-1),Me={__name:"ProductCard",props:["product"],setup(t){const o=t,n=S.useStore();return k.useI18n(),e.computed(()=>n.state.favorites.items.filter(function(a,c){if(a._id===o.product._id)return!0})),(a,c)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["radius-big product",t.product.information[2]&&t.product.information[2].value==="AAAA"?"bg-black t-white":"bg-white"])},[e.createElementVNode("div",{class:e.normalizeClass(["o-hidden w-100 h-100 square",t.product.information[2]&&t.product.information[2].value==="AAAA"?"bg-black":"bg-white"])},[t.product.images[0]?(e.openBlock(),e.createElementBlock("img",{key:0,src:t.product.images[0],class:"w-100 h-100"},null,8,we)):(e.openBlock(),e.createElementBlock("svg",Ve,be)),t.product.information.length>0?(e.openBlock(),e.createBlock(Ce,{key:2,product:t.product},null,8,["product"])):e.createCommentVNode("",!0)],2),e.createElementVNode("div",xe,[t.product.information.length>0?(e.openBlock(),e.createElementBlock("p",{key:0,class:e.normalizeClass(["t-semi h6",t.product.information[2]&&t.product.information[2].value==="AAAA"?"t-violet":"t-main"])},e.toDisplayString(t.product.information[0].value),3)):e.createCommentVNode("",!0),e.createElementVNode("p",Se,e.toDisplayString(t.product.name),1),t.product.description&&!t.product.localization?(e.openBlock(),e.createElementBlock("p",Le,e.toDisplayString(t.product.description.substring(0,99))+"... ",1)):e.createCommentVNode("",!0),e.createVNode(x,{product:t.product,size:"small",class:e.normalizeClass(t.product.information[2]&&t.product.information[2].value==="AAAA"?"bg-third t-white":"")},null,8,["product","class"])]),Ie],2))}},qe={id:"popularProducts",class:"pd-thin"},De={class:"bg-grey radius-big pd-t-big pd-b-big"},ze={class:"mn-semi t-center title"},Pe={class:""},Ae={__name:"PopularProducts",async setup(t){let o,n;V.useRouter(),[o,n]=e.withAsyncContext(()=>p.actions$1.read({limit:10})),await o,n();const a={messages:{en:{title:"Explore Hot Products 🔥",subtitle:"We attach great importance to high quality and customer satisfaction"},ru:{title:"Самое Горячее 🔥",subtitle:"Мы придаем большое значение высокому качеству товаров и удовлетворенности клиентов"}}},{t:c}=k.useI18n(a),s=e.ref(null),u={320:{itemsToShow:1},640:{itemsToShow:3},1024:{itemsToShow:3}};return e.onMounted(async()=>{setTimeout(()=>{s.value.updateSlideWidth()},500)}),(l,i)=>(e.openBlock(),e.createElementBlock("div",qe,[e.createElementVNode("div",De,[e.createElementVNode("div",ze,[e.createElementVNode("h2",Pe,e.toDisplayString(e.unref(c)("title")),1)]),e.createVNode(e.unref(B.Carousel),{ref_key:"myCarousel",ref:s,"items-to-show":3,transition:330,wrapAround:!0,autoplay:3e3,pauseAutoplayOnHover:!0,breakpoints:u},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(p.state.all,(d,m,f)=>(e.openBlock(),e.createBlock(e.unref(B.Slide),{class:"pd-thin",key:m},{default:e.withCtx(()=>[e.createVNode(Me,{class:"carousel__item h-100 w-100",product:d},null,8,["product"])]),_:2},1024))),128))]),_:1},512)])]))}};const Te={class:"product-360-viewer"},Fe=e.createStaticVNode('<svg class="pos-absolute z-index-2 pos-b-0 pd-small" width="73" height="50" viewBox="0 0 73 50" fill="none" xmlns="http://www.w3.org/2000/svg" data-v-333fa548><path d="M42.5934 17.2017C42.5934 20.8208 39.8428 23.7544 36.45 23.7544C33.0573 23.7544 30.3066 20.8208 30.3066 17.2017C30.3066 13.5826 33.0573 10.6484 36.45 10.6484C39.8428 10.6484 42.5934 13.5826 42.5934 17.2017Z" fill="black" fill-opacity="0.1" data-v-333fa548></path><path d="M22.5953 29.4883H50.3053C53.7389 29.4883 56.5197 26.778 56.5197 23.4405V10.8396C56.5197 7.49996 53.739 4.79176 50.3053 4.79176H48.8712C48.2747 2.05313 45.7826 0 42.7962 0H30.1063C27.1179 0 24.6257 2.053 24.0313 4.78967H22.5971C19.1656 4.78967 16.3828 7.49788 16.3828 10.8375V23.4384C16.3807 26.778 19.1634 29.4882 22.595 29.4882L22.5953 29.4883ZM36.449 8.31471C41.4535 8.31471 45.5123 12.2648 45.5123 17.1352C45.5123 22.0062 41.4535 25.9582 36.449 25.9582C31.4445 25.9582 27.3856 22.0081 27.3856 17.1377C27.3856 12.2673 31.4445 8.31471 36.449 8.31471ZM20.9092 9.32597H24.0182C24.9472 9.32597 25.7019 10.0584 25.7019 10.9625C25.7019 11.8686 24.9493 12.6011 24.0182 12.6011H20.9092C19.9823 12.6011 19.2254 11.8707 19.2254 10.9625C19.2275 10.0604 19.9822 9.32597 20.9092 9.32597Z" fill="black" fill-opacity="0.1" data-v-333fa548></path><path d="M58.8645 12.2878C58.8645 12.2878 77.1839 21.8549 65.5604 32.0445C63.6718 33.6967 55.2747 38.9138 42.5947 39.9368V45.0519C50.0424 44.2514 61.7635 41.887 68.4037 34.9253C82.5323 20.1097 58.8657 12.2871 58.8657 12.2871L58.8645 12.2878Z" fill="black" fill-opacity="0.1" data-v-333fa548></path><path d="M37.6664 41.209L29.1818 35.5097C28.077 34.7658 27.1702 35.2358 27.1702 36.5516V39.5855C16.2598 38.0408 9.07761 33.565 7.35125 32.0517C-4.2894 21.858 14.0557 12.2871 14.0557 12.2871C14.0557 12.2871 -9.64257 20.1134 4.5039 34.9343C10.2723 40.9769 19.8619 43.5552 27.1712 44.656V44.952V48.5701C27.1712 49.8901 28.078 50.3554 29.1827 49.6141L37.6673 43.9127C38.7757 43.1683 38.7757 41.9525 37.6673 41.2092L37.6664 41.209Z" fill="black" fill-opacity="0.1" data-v-333fa548></path></svg>',1),Oe={key:0,class:"h-100 w-100 transition-ease"},He=["src"],Ze={__name:"Images360",props:{imagePath:{type:String,required:!0},imageCount:{type:Number,default:36},autoRotateSpeed:{type:Number,default:100}},setup(t){const o=t,n=e.ref(0),a=e.ref(!1),c=e.ref(0),s=e.ref(0);e.ref(!0);const u=async()=>{const h=[];for(let g=1;g<=o.imageCount;g++){const v=new Image;v.src=`${o.imagePath}/${g}.jpg`;try{await v.decode(),s.value++}catch(N){console.warn(`Failed to decode ${o.imagePath}/${g}.jpg:`,N)}h.push(v)}return h},l=e.computed(()=>Math.round(s.value/o.imageCount*100)),i=e.ref([]),d=e.ref(""),m=e.ref(null);e.watch(n,h=>{d.value=i.value[h]||""});function f(h){a.value=!0,c.value=h.clientX||h.touches[0].clientX}function y(h){if(!a.value)return;const g=h.clientX||h.touches[0].clientX,v=g-c.value;if(Math.abs(v)>=5){const N=v>0?1:-1;n.value=(n.value+N)%o.imageCount,n.value<0&&(n.value=o.imageCount-1),c.value=g}}function C(){a.value=!1}let _=null;const w=()=>{i.value=[]};return e.onMounted(async()=>{i.value=await u(),d.value=i.value[0]||""}),e.onUnmounted(()=>{clearInterval(_),w()}),(h,g)=>(e.openBlock(),e.createElementBlock("div",Te,[Fe,e.createVNode(e.Transition,{name:"scale5",css:!m.value,appear:""},{default:e.withCtx(()=>[d.value?(e.openBlock(),e.createElementBlock("div",Oe,[d.value?(e.openBlock(),e.createElementBlock("img",{key:d.value,class:"h-100 w-100 transition-ease",src:d.value.src,alt:"360 product view",onMousedown:f,onMousemove:y,onMouseup:C,onMouseleave:C,onTouchstart:f,onTouchmove:y,onTouchend:C,onDragstart:g[0]||(g[0]=e.withModifiers(()=>{},["prevent"]))},null,40,He)):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)]),_:1},8,["css"]),e.createVNode(e.Transition,{name:"scale5"},{default:e.withCtx(()=>[d.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(L.Loader,{key:0,progress:e.unref(l),class:"center z-index-5"},null,8,["progress"]))]),_:1})]))}},Re=E._export_sfc(Ze,[["__scopeId","data-v-333fa548"]]);const je=["src"],Xe={__name:"Magnifier",props:{imageSrc:String,zoomFactor:{type:Number,default:2}},setup(t){const o=t,n=e.ref(!1),a=e.ref({});function c(m){const f=m.target.getBoundingClientRect(),y=m.clientX-f.left,C=m.clientY-f.top,_=100,w=Math.max(0,Math.min(y-_/2,f.width-_)),h=Math.max(0,Math.min(C-_/2,f.height-_));a.value={left:`${w}px`,top:`${h}px`,backgroundPosition:`-${w*o.zoomFactor}px -${h*o.zoomFactor}px`,backgroundImage:`url(${o.imageSrc})`,backgroundSize:`${f.width*o.zoomFactor}px ${f.height*o.zoomFactor}px`}}function s(m){n.value=!0,c(m)}function u(){n.value=!1}function l(m){m.preventDefault(),n.value=!0,c(m.touches[0])}function i(m){m.preventDefault(),c(m.touches[0])}function d(){n.value=!1}return(m,f)=>(e.openBlock(),e.createElementBlock("div",{class:"w-100 image-container",onMousemove:s,onMouseleave:u,onTouchstart:l,onTouchmove:i,onTouchend:d},[e.createElementVNode("img",{src:t.imageSrc,class:"w-100"},null,8,je),n.value?(e.openBlock(),e.createElementBlock("div",{key:0,class:"zoom-lens",style:e.normalizeStyle(a.value)},null,4)):e.createCommentVNode("",!0)],32))}},We=E._export_sfc(Xe,[["__scopeId","data-v-a2ed98ca"]]);const Je={class:"product-images"},Ye={class:"no-responsive cols-4 thumbnails"},Ge=["src","onClick"],Qe={__name:"ImagesThumbnails",props:{images:{type:Array,required:!0}},setup(t){const o=e.ref(!1),n=e.ref(0),a=s=>{n.value=s,o.value=!0},c=()=>{o.value=!1};return(s,u)=>(e.openBlock(),e.createElementBlock("div",Je,[e.createElementVNode("div",Ye,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.images,(l,i)=>(e.openBlock(),e.createElementBlock("img",{key:i,src:l,onClick:d=>a(i),class:"radius-medium bg-white o-hidden thumbnail"},null,8,Ge))),128))]),e.createVNode(I._sfc_main,{onClosePopup:c,isPopupOpen:o.value,class:"radius-medium o-hidden"},{default:e.withCtx(()=>[e.createVNode(We,{imageSrc:s.path+t.images[n.value],class:"magnifier z-index-4"},null,8,["imageSrc"])]),_:1},8,["isPopupOpen"])]))}},Ue=E._export_sfc(Qe,[["__scopeId","data-v-54ffbce2"]]),r=e.reactive({items:[],currentState:!1}),Ke={toggleShopcart(){r.currentState=!r.currentState},setShopcart(){try{localStorage.getItem("shopcart")&&(r.items=JSON.parse(localStorage.getItem("shopcart")))}catch(t){throw console.error(t),t}},addProductToCart(t){const o=r.items.find(n=>n._id===t._id);o?o.quantity++:r.items.push({_id:t._id,images:t.images,name:t.name,price:t.price,quantity:1}),localStorage.setItem("shopcart",JSON.stringify(r.items))},removeProduct(t){const o=r.items.find(a=>a._id===t),n=r.items.indexOf(o);n>-1&&(r.items.splice(n,1),localStorage.setItem("shopcart",JSON.stringify(r.items)))},decrementItemQuantity(t){const o=r.items.find(a=>a._id===t),n=r.items.indexOf(o);n>-1&&(o.quantity--,o.quantity<1&&r.items.splice(n,1),localStorage.setItem("shopcart",JSON.stringify(r.items)))},incrementItemQuantity(t){const o=r.items.find(n=>n._id===t);o&&(o.quantity++,localStorage.setItem("shopcart",JSON.stringify(r.items)))},resetShopcart({state:t}){t.items=[],localStorage.removeItem("shopcart")}};e.computed(()=>Number(r.items.reduce((t,o)=>t+o.price*o.quantity,0))),e.computed(()=>Number(r.items.reduce((t,o)=>t+o.quantity,0))),e.computed(()=>Number(r.currentState));e.watch(r,(t,o)=>{});const et={class:"cols-2-1_2 gap-big product-data-wrapper"},tt={class:"flex-nowrap flex-column flex"},ot={class:"h-100 bg-white radius-medium o-hidden"},nt=["src"],at={key:2,width:"524",height:"345",viewBox:"0 0 524 345",fill:"none",xmlns:"http://www.w3.org/2000/svg",class:"h-100 w-100",style:{"object-fit":"cover"}},ct=e.createElementVNode("rect",{width:"524",height:"345",fill:"white"},null,-1),st=e.createElementVNode("rect",{width:"524",height:"345",fill:"white"},null,-1),rt=e.createElementVNode("circle",{cx:"262",cy:"172",r:"56",fill:"#00ff88","fill-opacity":"0.1"},null,-1),it=e.createElementVNode("path",{fill:"#00ff88",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"},null,-1),lt=[ct,st,rt,it],dt={class:"h-100 flex-justify flex col"},ut={key:0,class:"t-main t-semi p-big"},mt={class:"w-100 h1-product mn-thin"},ht={key:1,class:"mn-semi"},pt={key:2,class:"w-100 mn-medium t-transp"},ft={key:3,class:"w-100 mn-medium t-transp"},gt={class:"cols-2 w-100 gap-small mn-semi"},_t={class:"w-100 pd-small radius-small bg-white product-information"},vt={class:"t-demi"},Ct={class:"max-w-33rem mobile-w-100 t-white gap-small cols-2"},kt=["disabled"],yt={__name:"SectionProduct",props:{product:{type:Object,required:!0},recommendation:{type:String}},setup(t){const o=t,n=e.computed(()=>o.product.images),a={messages:{en:{airecommend:"AI Recommends You",description:"",addtoorder:"Add to order",fastorder:"Fast Order"},ru:{airecommend:"AI Рекомендует вам",description:"",addtoorder:"Добавить в корзину",fastorder:"Быстрый заказ"}}};o.product.localization.forEach(l=>{a.messages[l.locale].description=l.text});const{t:c}=k.useI18n(a);function s(l){return!(l.quantity>0)}function u(l){Ke.addProductToCart(l)}return(l,i)=>(e.openBlock(),e.createElementBlock("div",et,[e.createElementVNode("div",tt,[e.createElementVNode("div",ot,[t.product&&t.product.image3d?(e.openBlock(),e.createBlock(Re,{key:0,class:"h-100 w-100",imagePath:`/assets/images/products/${t.product.image3d}`,imageCount:36},null,8,["imagePath"])):e.createCommentVNode("",!0),e.unref(n)[0]&&!t.product.image3d?(e.openBlock(),e.createElementBlock("img",{key:1,class:"h-100 w-100",style:{"object-fit":"cover"},src:e.unref(n)[0]},null,8,nt)):e.createCommentVNode("",!0),!e.unref(n)[0]&&!t.product.image3d?(e.openBlock(),e.createElementBlock("svg",at,lt)):e.createCommentVNode("",!0)]),e.unref(n).length>1?(e.openBlock(),e.createBlock(Ue,{key:0,images:e.unref(n),class:"mn-t-medium"},null,8,["images"])):e.createCommentVNode("",!0)]),e.createElementVNode("div",dt,[t.recommendation?(e.openBlock(),e.createElementBlock("h2",ut,e.toDisplayString(e.unref(c)("airecommend")),1)):e.createCommentVNode("",!0),e.createElementVNode("h1",mt,e.toDisplayString(t.product.name),1),e.createVNode(x,{product:t.product,size:"big",class:"mn-semi"},null,8,["product"]),t.recommendation?(e.openBlock(),e.createElementBlock("h3",ht,e.toDisplayString(t.recommendation),1)):e.createCommentVNode("",!0),t.product.description&&!t.product.localization&&!t.recommendation?(e.openBlock(),e.createElementBlock("p",pt,e.toDisplayString(t.product.description),1)):e.createCommentVNode("",!0),t.product.localization&&t.product.localization.length>1&&!t.recommendation?(e.openBlock(),e.createElementBlock("p",ft,e.toDisplayString(e.unref(c)("description")),1)):e.createCommentVNode("",!0),e.createElementVNode("div",gt,[t.product.information.length>0?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(t.product.information,d=>(e.openBlock(),e.createElementBlock("div",_t,[e.createElementVNode("p",vt,e.toDisplayString(d.name),1),e.createElementVNode("p",null,e.toDisplayString(d.value),1)]))),256)):e.createCommentVNode("",!0)]),e.createElementVNode("div",Ct,[e.createElementVNode("button",{disabled:s(t.product),onClick:i[0]||(i[0]=d=>u(t.product)),class:"w-100 mn-r-small bg-main button"},e.toDisplayString(e.unref(c)("addtoorder")),9,kt)])])]))}};const wt={__name:"Product",async setup(t){let o,n;const a=V.useRoute();V.useRouter(),[o,n]=e.withAsyncContext(()=>p.actions$1.read({_id:a.params.product})),await o,n(),a.meta.title.en=p.state.current.name,a.meta.title.ru=p.state.current.name;const c=e.computed(()=>p.state.current),s={messages:{en:{},ru:{}}};p.state.current.localization.forEach(i=>{s.messages[i.locale].description=i.text});const{t:u}=k.useI18n(s),l=e.computed(()=>({title:p.state.current.name,description:u("description")}));return q(l),e.onMounted(()=>{}),(i,d)=>(e.openBlock(),e.createElementBlock("div",null,[e.createVNode(p._sfc_main,{class:"section"}),e.createVNode(yt,{product:e.unref(c),class:"section"},null,8,["product"]),e.createVNode(Ae),e.createVNode(ne)]))}};exports.default=wt;
7
+ */const M=t=>t!==null&&typeof t=="object";function $(t,o,n){for(const a in o)a in n?M(t[a])?$(t[a],o[a],n[a]):o[a]!==n[a]&&(t[a]=o[a]):t[a]=o[a];for(const a in n)o&&a in o||delete t[a]}function b(t){if(t||(t=e.getCurrentInstance()||void 0),t)return t.appContext.config.globalProperties.$metaManager}function q(t,o){const n=e.getCurrentInstance()||void 0;if(!o&&n&&(o=b(n)),!o)throw new Error("No manager or current instance");e.isProxy(t)&&(e.watch(t,(c,s)=>{$(a.meta,c,s)}),t=t.value);const a=o.addMeta(t,n);return a}e.defineComponent({name:"Metainfo",inheritAttrs:!1,setup:(t,{slots:o})=>()=>{const n=b();if(n)return n.render({slots:o})}});const D={class:"pd-t-zero pd-thin"},z={class:"bg-black t-white radius-big footer"},P={id:"top-footer",class:"cols-3 section"},A={href:"mailto:hello@weeder.delivery",class:"w-100 radius-small contact col"},T={class:"t-transp"},F={class:"h4 mn-small"},H=e.createElementVNode("div",{class:"store-buttons"},null,-1),O={href:"https://t.me/weeder_support",target:"_blank",class:"w-100 radius-small contact col"},Z={class:"h4 mn-small"},R=e.createElementVNode("div",{class:"socials flex-nojustify flex"},[e.createElementVNode("a",{class:"mn-r-small",href:"https://t.me/weederdelivery",target:"_blank"}),e.createElementVNode("a",{class:"mn-r-small",href:"https://t.me/weederdelivery",target:"_blank"}),e.createElementVNode("a",{class:"mn-r-small",href:"https://t.me/weederdelivery",target:"_blank"})],-1),j={class:"cols-3 section"},X={class:"lh-semi nav-footer col"},W={class:"mn-small t-semi h5"},J={class:"mn-medium ol"},Y=["innerHTML"],G=e.createElementVNode("a",{href:"https://ozdao.dev",target:"_blank"},null,-1),Q={class:"lh-semi nav-footer col"},U={class:"mn-small t-semi h5"},K={class:"lh-semi col"},ee={class:"mn-small t-semi h5"},te=e.createElementVNode("div",{class:"mn-medium"},[e.createElementVNode("li",null,"Phuket,"),e.createElementVNode("li",null,"43 283 Soi Boathouse,"),e.createElementVNode("li",null,"Rawai")],-1),oe={class:"pd-small t-center br-top-dark copyright"},ne={__name:"Footer",async setup(t){let o,n;V.useRouter(),[o,n]=e.withAsyncContext(()=>p.actions$1.fetchCategories()),await o,n();const a={locale:"en",messages:{en:{store:"Online Store",information:"Information",description:"Weeder Delivery stocks a wide range of quality!",app:"Get Our App",adress:"Adress",support:"Get Online Support",socials:"Find Us in Socials",email:"Contact by email",time:"24 / 7 Seven days a week",copyright:"2022 © Weeder Delivery. Proudly created with OZ DAO.",pages:[],categories:[]},ru:{store:"Онлайн Каталог",information:"Информация",description:"Weeder Delivery предлагает широкий ассортимент качественных!",app:"Скачайте Наше Приложение",adress:"Адрес",support:"Онлайн Поддержка",socials:"Найдите Нас в Социальных Сетях",email:"Связаться по email",time:"24 / 7 без перерывов",copyright:"2022 © Weeder Delivery. С гордостью создано OZ DAO.",pages:[],categories:[]}}};p.state.all.forEach(s=>{s.localization.forEach(u=>{a.messages[u.locale].categories.push(u.text)})});const{t:c}=k.useI18n(a);return(s,u)=>(e.openBlock(),e.createElementBlock("div",D,[e.createElementVNode("footer",z,[e.createElementVNode("div",P,[e.createElementVNode("a",A,[e.createElementVNode("p",T,e.toDisplayString(e.unref(c)("description")),1)]),e.createElementVNode("div",{onClick:u[0]||(u[0]=l=>this.$router.push({name:"Home"})),class:"flex-v-center flex logo-link col"},[e.createElementVNode("p",F,e.toDisplayString(e.unref(c)("app")),1),H]),e.createElementVNode("a",O,[e.createElementVNode("p",Z,e.toDisplayString(e.unref(c)("socials")),1),R])]),e.createElementVNode("div",j,[e.createElementVNode("ul",X,[e.createElementVNode("li",W,e.toDisplayString(e.unref(c)("store")),1),e.createElementVNode("div",J,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(p.state.all,(l,i)=>(e.openBlock(),e.createElementBlock("li",null,[e.createElementVNode("span",{innerHTML:e.unref(c)("categories["+i+"]")},null,8,Y)]))),256))]),G]),e.createElementVNode("ul",Q,[e.createElementVNode("li",U,e.toDisplayString(e.unref(c)("information")),1)]),e.createElementVNode("ul",K,[e.createElementVNode("li",ee,e.toDisplayString(e.unref(c)("email")),1),te])]),e.createElementVNode("p",oe,e.toDisplayString(e.unref(c)("copyright")),1)])]))}},ae={key:0,class:"thc"},ce={class:"t-bold t-white"},se=e.createElementVNode("p",{class:"t-white h6"},"THC",-1),re={key:0,width:"60",height:"66",viewBox:"0 0 60 66",fill:"none",xmlns:"http://www.w3.org/2000/svg"},ie=e.createElementVNode("path",{fill:"#FF0000",stroke:"white","stroke-width":"3",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"},null,-1),le=[ie],de={key:1,width:"60",height:"66",viewBox:"0 0 60 66",fill:"none",xmlns:"http://www.w3.org/2000/svg"},ue=e.createElementVNode("path",{fill:"#FF0099",stroke:"white","stroke-width":"3",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"},null,-1),me=[ue],he={key:2,width:"60",height:"66",viewBox:"0 0 60 66",fill:"none",xmlns:"http://www.w3.org/2000/svg"},pe=e.createElementVNode("path",{fill:"#EB00FF",stroke:"white","stroke-width":"3",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"},null,-1),fe=[pe],ge={key:3,width:"60",height:"66",viewBox:"0 0 60 66",fill:"none",xmlns:"http://www.w3.org/2000/svg"},_e=e.createElementVNode("path",{fill:"#00FF29",stroke:"white","stroke-width":"3",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"},null,-1),ve=[_e],Ce={__name:"THC",props:{product:Object},setup(t){return(o,n)=>t.product.information[1]?(e.openBlock(),e.createElementBlock("div",ae,[e.createElementVNode("p",ce,e.toDisplayString(t.product.information[1].value)+" %",1),se,Number(t.product.information[1].value)>=18?(e.openBlock(),e.createElementBlock("svg",re,le)):e.createCommentVNode("",!0),Number(t.product.information[1].value)<=18&&Number(t.product.information[1].value)>=14?(e.openBlock(),e.createElementBlock("svg",de,me)):e.createCommentVNode("",!0),Number(t.product.information[1].value)<=14&&Number(t.product.information[1].value)>=10?(e.openBlock(),e.createElementBlock("svg",he,fe)):e.createCommentVNode("",!0),Number(t.product.information[1].value)<=10?(e.openBlock(),e.createElementBlock("svg",ge,ve)):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)}},ke={class:"price-tag radius-small"},ye={key:0,class:"t-transp t-main p-medium line-through price"},x={__name:"Price",props:{product:Object,size:String},setup(t){return(o,n)=>(e.openBlock(),e.createElementBlock("div",ke,[e.createElementVNode("p",{class:e.normalizeClass({"t-main":t.product.sale,h4:!t.size,"h5 t-semi pd-thin":t.size==="small","h3 t-semi pd-small":t.size==="big"})},e.toDisplayString(t.product.price)+" "+e.toDisplayString(o.returnCurrency()),3),t.product.sale?(e.openBlock(),e.createElementBlock("p",ye,e.toDisplayString(t.product.price/100*(100+t.product.sale))+" "+e.toDisplayString(o.returnCurrency()),1)):e.createCommentVNode("",!0)]))}},we=["src"],Ve={key:1,class:"h-100 w-100",style:{"object-fit":"cover"},width:"524",height:"345",viewBox:"0 0 524 345",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Ne=e.createElementVNode("rect",{width:"524",height:"345",fill:"white"},null,-1),Ee=e.createElementVNode("rect",{width:"524",height:"345",fill:"white"},null,-1),Be=e.createElementVNode("circle",{cx:"262",cy:"172",r:"56",fill:"#00ff88","fill-opacity":"0.1"},null,-1),$e=e.createElementVNode("path",{fill:"#00ff88",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"},null,-1),be=[Ne,Ee,Be,$e],xe={class:"pd-medium t-left product-card-content"},Se={class:"mn-thin h4"},Le={key:1,class:"mn-small t-transp p-small"},Ie=e.createElementVNode("div",null,null,-1),Me={__name:"ProductCard",props:["product"],setup(t){const o=t,n=S.useStore();return k.useI18n(),e.computed(()=>n.state.favorites.items.filter(function(a,c){if(a._id===o.product._id)return!0})),(a,c)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["radius-big product",t.product.information[2]&&t.product.information[2].value==="AAAA"?"bg-black t-white":"bg-white"])},[e.createElementVNode("div",{class:e.normalizeClass(["o-hidden w-100 h-100 square",t.product.information[2]&&t.product.information[2].value==="AAAA"?"bg-black":"bg-white"])},[t.product.images[0]?(e.openBlock(),e.createElementBlock("img",{key:0,src:t.product.images[0],class:"w-100 h-100"},null,8,we)):(e.openBlock(),e.createElementBlock("svg",Ve,be)),t.product.information.length>0?(e.openBlock(),e.createBlock(Ce,{key:2,product:t.product},null,8,["product"])):e.createCommentVNode("",!0)],2),e.createElementVNode("div",xe,[t.product.information.length>0?(e.openBlock(),e.createElementBlock("p",{key:0,class:e.normalizeClass(["t-semi h6",t.product.information[2]&&t.product.information[2].value==="AAAA"?"t-violet":"t-main"])},e.toDisplayString(t.product.information[0].value),3)):e.createCommentVNode("",!0),e.createElementVNode("p",Se,e.toDisplayString(t.product.name),1),t.product.description&&!t.product.localization?(e.openBlock(),e.createElementBlock("p",Le,e.toDisplayString(t.product.description.substring(0,99))+"... ",1)):e.createCommentVNode("",!0),e.createVNode(x,{product:t.product,size:"small",class:e.normalizeClass(t.product.information[2]&&t.product.information[2].value==="AAAA"?"bg-third t-white":"")},null,8,["product","class"])]),Ie],2))}},qe={id:"popularProducts",class:"pd-thin"},De={class:"bg-grey radius-big pd-t-big pd-b-big"},ze={class:"mn-semi t-center title"},Pe={class:""},Ae={__name:"PopularProducts",async setup(t){let o,n;V.useRouter(),[o,n]=e.withAsyncContext(()=>p.actions$1.read({limit:10})),await o,n();const a={messages:{en:{title:"Explore Hot Products 🔥",subtitle:"We attach great importance to high quality and customer satisfaction"},ru:{title:"Самое Горячее 🔥",subtitle:"Мы придаем большое значение высокому качеству товаров и удовлетворенности клиентов"}}},{t:c}=k.useI18n(a),s=e.ref(null),u={320:{itemsToShow:1},640:{itemsToShow:3},1024:{itemsToShow:3}};return e.onMounted(async()=>{setTimeout(()=>{s.value.updateSlideWidth()},500)}),(l,i)=>(e.openBlock(),e.createElementBlock("div",qe,[e.createElementVNode("div",De,[e.createElementVNode("div",ze,[e.createElementVNode("h2",Pe,e.toDisplayString(e.unref(c)("title")),1)]),e.createVNode(e.unref(B.Carousel),{ref_key:"myCarousel",ref:s,"items-to-show":3,transition:330,wrapAround:!0,autoplay:3e3,pauseAutoplayOnHover:!0,breakpoints:u},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(p.state.all,(d,m,f)=>(e.openBlock(),e.createBlock(e.unref(B.Slide),{class:"pd-thin",key:m},{default:e.withCtx(()=>[e.createVNode(Me,{class:"carousel__item h-100 w-100",product:d},null,8,["product"])]),_:2},1024))),128))]),_:1},512)])]))}};const Te={class:"product-360-viewer"},Fe=e.createStaticVNode('<svg class="pos-absolute z-index-2 pos-b-0 pd-small" width="73" height="50" viewBox="0 0 73 50" fill="none" xmlns="http://www.w3.org/2000/svg" data-v-333fa548><path d="M42.5934 17.2017C42.5934 20.8208 39.8428 23.7544 36.45 23.7544C33.0573 23.7544 30.3066 20.8208 30.3066 17.2017C30.3066 13.5826 33.0573 10.6484 36.45 10.6484C39.8428 10.6484 42.5934 13.5826 42.5934 17.2017Z" fill="black" fill-opacity="0.1" data-v-333fa548></path><path d="M22.5953 29.4883H50.3053C53.7389 29.4883 56.5197 26.778 56.5197 23.4405V10.8396C56.5197 7.49996 53.739 4.79176 50.3053 4.79176H48.8712C48.2747 2.05313 45.7826 0 42.7962 0H30.1063C27.1179 0 24.6257 2.053 24.0313 4.78967H22.5971C19.1656 4.78967 16.3828 7.49788 16.3828 10.8375V23.4384C16.3807 26.778 19.1634 29.4882 22.595 29.4882L22.5953 29.4883ZM36.449 8.31471C41.4535 8.31471 45.5123 12.2648 45.5123 17.1352C45.5123 22.0062 41.4535 25.9582 36.449 25.9582C31.4445 25.9582 27.3856 22.0081 27.3856 17.1377C27.3856 12.2673 31.4445 8.31471 36.449 8.31471ZM20.9092 9.32597H24.0182C24.9472 9.32597 25.7019 10.0584 25.7019 10.9625C25.7019 11.8686 24.9493 12.6011 24.0182 12.6011H20.9092C19.9823 12.6011 19.2254 11.8707 19.2254 10.9625C19.2275 10.0604 19.9822 9.32597 20.9092 9.32597Z" fill="black" fill-opacity="0.1" data-v-333fa548></path><path d="M58.8645 12.2878C58.8645 12.2878 77.1839 21.8549 65.5604 32.0445C63.6718 33.6967 55.2747 38.9138 42.5947 39.9368V45.0519C50.0424 44.2514 61.7635 41.887 68.4037 34.9253C82.5323 20.1097 58.8657 12.2871 58.8657 12.2871L58.8645 12.2878Z" fill="black" fill-opacity="0.1" data-v-333fa548></path><path d="M37.6664 41.209L29.1818 35.5097C28.077 34.7658 27.1702 35.2358 27.1702 36.5516V39.5855C16.2598 38.0408 9.07761 33.565 7.35125 32.0517C-4.2894 21.858 14.0557 12.2871 14.0557 12.2871C14.0557 12.2871 -9.64257 20.1134 4.5039 34.9343C10.2723 40.9769 19.8619 43.5552 27.1712 44.656V44.952V48.5701C27.1712 49.8901 28.078 50.3554 29.1827 49.6141L37.6673 43.9127C38.7757 43.1683 38.7757 41.9525 37.6673 41.2092L37.6664 41.209Z" fill="black" fill-opacity="0.1" data-v-333fa548></path></svg>',1),He={key:0,class:"h-100 w-100 transition-ease"},Oe=["src"],Ze={__name:"Images360",props:{imagePath:{type:String,required:!0},imageCount:{type:Number,default:36},autoRotateSpeed:{type:Number,default:100}},setup(t){const o=t,n=e.ref(0),a=e.ref(!1),c=e.ref(0),s=e.ref(0);e.ref(!0);const u=async()=>{const h=[];for(let g=1;g<=o.imageCount;g++){const v=new Image;v.src=`${o.imagePath}/${g}.jpg`;try{await v.decode(),s.value++}catch(N){console.warn(`Failed to decode ${o.imagePath}/${g}.jpg:`,N)}h.push(v)}return h},l=e.computed(()=>Math.round(s.value/o.imageCount*100)),i=e.ref([]),d=e.ref(""),m=e.ref(null);e.watch(n,h=>{d.value=i.value[h]||""});function f(h){a.value=!0,c.value=h.clientX||h.touches[0].clientX}function y(h){if(!a.value)return;const g=h.clientX||h.touches[0].clientX,v=g-c.value;if(Math.abs(v)>=5){const N=v>0?1:-1;n.value=(n.value+N)%o.imageCount,n.value<0&&(n.value=o.imageCount-1),c.value=g}}function C(){a.value=!1}let _=null;const w=()=>{i.value=[]};return e.onMounted(async()=>{i.value=await u(),d.value=i.value[0]||""}),e.onUnmounted(()=>{clearInterval(_),w()}),(h,g)=>(e.openBlock(),e.createElementBlock("div",Te,[Fe,e.createVNode(e.Transition,{name:"scale5",css:!m.value,appear:""},{default:e.withCtx(()=>[d.value?(e.openBlock(),e.createElementBlock("div",He,[d.value?(e.openBlock(),e.createElementBlock("img",{key:d.value,class:"h-100 w-100 transition-ease",src:d.value.src,alt:"360 product view",onMousedown:f,onMousemove:y,onMouseup:C,onMouseleave:C,onTouchstart:f,onTouchmove:y,onTouchend:C,onDragstart:g[0]||(g[0]=e.withModifiers(()=>{},["prevent"]))},null,40,Oe)):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)]),_:1},8,["css"]),e.createVNode(e.Transition,{name:"scale5"},{default:e.withCtx(()=>[d.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(L.Loader,{key:0,progress:e.unref(l),class:"center z-index-5"},null,8,["progress"]))]),_:1})]))}},Re=E._export_sfc(Ze,[["__scopeId","data-v-333fa548"]]);const je=["src"],Xe={__name:"Magnifier",props:{imageSrc:String,zoomFactor:{type:Number,default:2}},setup(t){const o=t,n=e.ref(!1),a=e.ref({});function c(m){const f=m.target.getBoundingClientRect(),y=m.clientX-f.left,C=m.clientY-f.top,_=100,w=Math.max(0,Math.min(y-_/2,f.width-_)),h=Math.max(0,Math.min(C-_/2,f.height-_));a.value={left:`${w}px`,top:`${h}px`,backgroundPosition:`-${w*o.zoomFactor}px -${h*o.zoomFactor}px`,backgroundImage:`url(${o.imageSrc})`,backgroundSize:`${f.width*o.zoomFactor}px ${f.height*o.zoomFactor}px`}}function s(m){n.value=!0,c(m)}function u(){n.value=!1}function l(m){m.preventDefault(),n.value=!0,c(m.touches[0])}function i(m){m.preventDefault(),c(m.touches[0])}function d(){n.value=!1}return(m,f)=>(e.openBlock(),e.createElementBlock("div",{class:"w-100 image-container",onMousemove:s,onMouseleave:u,onTouchstart:l,onTouchmove:i,onTouchend:d},[e.createElementVNode("img",{src:t.imageSrc,class:"w-100"},null,8,je),n.value?(e.openBlock(),e.createElementBlock("div",{key:0,class:"zoom-lens",style:e.normalizeStyle(a.value)},null,4)):e.createCommentVNode("",!0)],32))}},We=E._export_sfc(Xe,[["__scopeId","data-v-a2ed98ca"]]);const Je={class:"product-images"},Ye={class:"no-responsive cols-4 thumbnails"},Ge=["src","onClick"],Qe={__name:"ImagesThumbnails",props:{images:{type:Array,required:!0}},setup(t){const o=e.ref(!1),n=e.ref(0),a=s=>{n.value=s,o.value=!0},c=()=>{o.value=!1};return(s,u)=>(e.openBlock(),e.createElementBlock("div",Je,[e.createElementVNode("div",Ye,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.images,(l,i)=>(e.openBlock(),e.createElementBlock("img",{key:i,src:l,onClick:d=>a(i),class:"radius-medium bg-white o-hidden thumbnail"},null,8,Ge))),128))]),e.createVNode(I._sfc_main,{onClosePopup:c,isPopupOpen:o.value,class:"radius-medium o-hidden"},{default:e.withCtx(()=>[e.createVNode(We,{imageSrc:s.path+t.images[n.value],class:"magnifier z-index-4"},null,8,["imageSrc"])]),_:1},8,["isPopupOpen"])]))}},Ue=E._export_sfc(Qe,[["__scopeId","data-v-54ffbce2"]]),r=e.reactive({items:[],currentState:!1}),Ke={toggleShopcart(){r.currentState=!r.currentState},setShopcart(){try{localStorage.getItem("shopcart")&&(r.items=JSON.parse(localStorage.getItem("shopcart")))}catch(t){throw console.error(t),t}},addProductToCart(t){const o=r.items.find(n=>n._id===t._id);o?o.quantity++:r.items.push({_id:t._id,images:t.images,name:t.name,price:t.price,quantity:1}),localStorage.setItem("shopcart",JSON.stringify(r.items))},removeProduct(t){const o=r.items.find(a=>a._id===t),n=r.items.indexOf(o);n>-1&&(r.items.splice(n,1),localStorage.setItem("shopcart",JSON.stringify(r.items)))},decrementItemQuantity(t){const o=r.items.find(a=>a._id===t),n=r.items.indexOf(o);n>-1&&(o.quantity--,o.quantity<1&&r.items.splice(n,1),localStorage.setItem("shopcart",JSON.stringify(r.items)))},incrementItemQuantity(t){const o=r.items.find(n=>n._id===t);o&&(o.quantity++,localStorage.setItem("shopcart",JSON.stringify(r.items)))},resetShopcart({state:t}){t.items=[],localStorage.removeItem("shopcart")}};e.computed(()=>Number(r.items.reduce((t,o)=>t+o.price*o.quantity,0))),e.computed(()=>Number(r.items.reduce((t,o)=>t+o.quantity,0))),e.computed(()=>Number(r.currentState));e.watch(r,(t,o)=>{});const et={class:"cols-2-1_2 gap-big product-data-wrapper"},tt={class:"flex-nowrap flex-column flex"},ot={class:"h-100 bg-white radius-medium o-hidden"},nt=["src"],at={key:2,width:"524",height:"345",viewBox:"0 0 524 345",fill:"none",xmlns:"http://www.w3.org/2000/svg",class:"h-100 w-100",style:{"object-fit":"cover"}},ct=e.createElementVNode("rect",{width:"524",height:"345",fill:"white"},null,-1),st=e.createElementVNode("rect",{width:"524",height:"345",fill:"white"},null,-1),rt=e.createElementVNode("circle",{cx:"262",cy:"172",r:"56",fill:"#00ff88","fill-opacity":"0.1"},null,-1),it=e.createElementVNode("path",{fill:"#00ff88",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"},null,-1),lt=[ct,st,rt,it],dt={class:"h-100 flex-justify flex col"},ut={key:0,class:"t-main t-semi p-big"},mt={class:"w-100 h1-product mn-thin"},ht={key:1,class:"mn-semi"},pt={key:2,class:"w-100 mn-medium t-transp"},ft={key:3,class:"w-100 mn-medium t-transp"},gt={class:"cols-2 w-100 gap-small mn-semi"},_t={class:"w-100 pd-small radius-small bg-white product-information"},vt={class:"t-demi"},Ct={class:"max-w-33rem mobile-w-100 t-white gap-small cols-2"},kt=["disabled"],yt={__name:"SectionProduct",props:{product:{type:Object,required:!0},recommendation:{type:String}},setup(t){const o=t,n=e.computed(()=>o.product.images),a={messages:{en:{airecommend:"AI Recommends You",description:"",addtoorder:"Add to order",fastorder:"Fast Order"},ru:{airecommend:"AI Рекомендует вам",description:"",addtoorder:"Добавить в корзину",fastorder:"Быстрый заказ"}}};o.product.localization.forEach(l=>{a.messages[l.locale].description=l.text});const{t:c}=k.useI18n(a);function s(l){return!(l.quantity>0)}function u(l){Ke.addProductToCart(l)}return(l,i)=>(e.openBlock(),e.createElementBlock("div",et,[e.createElementVNode("div",tt,[e.createElementVNode("div",ot,[t.product&&t.product.image3d?(e.openBlock(),e.createBlock(Re,{key:0,class:"h-100 w-100",imagePath:`/assets/images/products/${t.product.image3d}`,imageCount:36},null,8,["imagePath"])):e.createCommentVNode("",!0),e.unref(n)[0]&&!t.product.image3d?(e.openBlock(),e.createElementBlock("img",{key:1,class:"h-100 w-100",style:{"object-fit":"cover"},src:e.unref(n)[0]},null,8,nt)):e.createCommentVNode("",!0),!e.unref(n)[0]&&!t.product.image3d?(e.openBlock(),e.createElementBlock("svg",at,lt)):e.createCommentVNode("",!0)]),e.unref(n).length>1?(e.openBlock(),e.createBlock(Ue,{key:0,images:e.unref(n),class:"mn-t-medium"},null,8,["images"])):e.createCommentVNode("",!0)]),e.createElementVNode("div",dt,[t.recommendation?(e.openBlock(),e.createElementBlock("h2",ut,e.toDisplayString(e.unref(c)("airecommend")),1)):e.createCommentVNode("",!0),e.createElementVNode("h1",mt,e.toDisplayString(t.product.name),1),e.createVNode(x,{product:t.product,size:"big",class:"mn-semi"},null,8,["product"]),t.recommendation?(e.openBlock(),e.createElementBlock("h3",ht,e.toDisplayString(t.recommendation),1)):e.createCommentVNode("",!0),t.product.description&&!t.product.localization&&!t.recommendation?(e.openBlock(),e.createElementBlock("p",pt,e.toDisplayString(t.product.description),1)):e.createCommentVNode("",!0),t.product.localization&&t.product.localization.length>1&&!t.recommendation?(e.openBlock(),e.createElementBlock("p",ft,e.toDisplayString(e.unref(c)("description")),1)):e.createCommentVNode("",!0),e.createElementVNode("div",gt,[t.product.information.length>0?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(t.product.information,d=>(e.openBlock(),e.createElementBlock("div",_t,[e.createElementVNode("p",vt,e.toDisplayString(d.name),1),e.createElementVNode("p",null,e.toDisplayString(d.value),1)]))),256)):e.createCommentVNode("",!0)]),e.createElementVNode("div",Ct,[e.createElementVNode("button",{disabled:s(t.product),onClick:i[0]||(i[0]=d=>u(t.product)),class:"w-100 mn-r-small bg-main button"},e.toDisplayString(e.unref(c)("addtoorder")),9,kt)])])]))}};const wt={__name:"Product",async setup(t){let o,n;const a=V.useRoute();V.useRouter(),[o,n]=e.withAsyncContext(()=>p.actions$1.read({_id:a.params.product})),await o,n(),a.meta.title.en=p.state.current.name,a.meta.title.ru=p.state.current.name;const c=e.computed(()=>p.state.current),s={messages:{en:{},ru:{}}};p.state.current.localization.forEach(i=>{s.messages[i.locale].description=i.text});const{t:u}=k.useI18n(s),l=e.computed(()=>({title:p.state.current.name,description:u("description")}));return q(l),e.onMounted(()=>{}),(i,d)=>(e.openBlock(),e.createElementBlock("div",null,[e.createVNode(p._sfc_main,{class:"section"}),e.createVNode(yt,{product:e.unref(c),class:"section"},null,8,["product"]),e.createVNode(Ae),e.createVNode(ne)]))}};exports.default=wt;
@@ -1,26 +1,27 @@
1
1
  import { getCurrentInstance as E, isProxy as J, watch as O, defineComponent as Y, withAsyncContext as Z, openBlock as a, createElementBlock as n, createElementVNode as o, toDisplayString as r, unref as d, Fragment as T, renderList as N, createCommentVNode as l, normalizeClass as M, computed as x, createBlock as I, createVNode as w, ref as C, onMounted as F, withCtx as P, onUnmounted as G, Transition as D, withModifiers as Q, createStaticVNode as U, normalizeStyle as K, reactive as tt } from "vue";
2
- import { b as q, s as b, _ as et } from "./organizations.client-686845be.mjs";
2
+ import { b as q, s as b, _ as et } from "./organizations.client-88d41199.mjs";
3
3
  import { useRouter as B, useRoute as ot } from "vue-router";
4
4
  import { useI18n as V } from "vue-i18n";
5
5
  import { C as st, S as it } from "./carousel.es-44c501bc.mjs";
6
6
  import { u as at } from "./vuex.esm-bundler-57d8b6ba.mjs";
7
- import { L as nt } from "./Feed-a31c43c2.mjs";
8
- import { _ as j } from "./auth-35ef1791.mjs";
9
- import { _ as ct } from "./Popup-82fb2c8a.mjs";
7
+ import { L as nt } from "./Feed-8bbb7077.mjs";
8
+ import { _ as j } from "./_plugin-vue_export-helper-dad06003.mjs";
9
+ import { _ as ct } from "./Popup-31c7ffc6.mjs";
10
+ import "./auth-5217f6a5.mjs";
10
11
  import "./globals-96ba60e4.mjs";
11
- import "./Breadcrumbs.vue_vue_type_style_index_0_lang-cdbafd07.mjs";
12
- import "./Tab-58cd105f.mjs";
13
- import "./inputs.validation-6960f71b.mjs";
14
- import "./ButtonFollow-728aab73.mjs";
15
- import "./Feed-dc8b66bf.mjs";
12
+ import "./Breadcrumbs.vue_vue_type_style_index_0_lang-d9c6e4d1.mjs";
13
+ import "./Tab-a243605d.mjs";
14
+ import "./inputs.validation-14e8e01f.mjs";
15
+ import "./ButtonFollow-5e19fc49.mjs";
16
+ import "./Feed-986ddd21.mjs";
16
17
  import "./EmptyState-34d85f10.mjs";
17
- import "./CardHeader-ce5a1a75.mjs";
18
- import "./PlaceholderUserpic-995da0fc.mjs";
19
- import "./IconEdit-e9fd4c6c.mjs";
20
- import "./organizations-1b4c84ee.mjs";
21
- import "./UploadImage-ff8f9a0c.mjs";
22
- import "./CardOrganization-f70bd169.mjs";
23
- import "./Publics-9ebffff1.mjs";
18
+ import "./Chips-f0b7ce36.mjs";
19
+ import "./PlaceholderUserpic-14c6ea7e.mjs";
20
+ import "./IconEdit-f0ad8b9a.mjs";
21
+ import "./organizations-2adff182.mjs";
22
+ import "./UploadImage-a3ef4012.mjs";
23
+ import "./CardOrganization-01c2e248.mjs";
24
+ import "./Publics-fcb1f708.mjs";
24
25
  /**
25
26
  * vue-meta v3.0.0-alpha.10
26
27
  * (c) 2022
@@ -801,7 +802,7 @@ const Ie = { class: "cols-2-1_2 gap-big product-data-wrapper" }, Pe = { class: "
801
802
  ]));
802
803
  }
803
804
  };
804
- const yo = {
805
+ const $o = {
805
806
  __name: "Product",
806
807
  async setup(t) {
807
808
  let e, s;
@@ -833,5 +834,5 @@ const yo = {
833
834
  }
834
835
  };
835
836
  export {
836
- yo as default
837
+ $o as default
837
838
  };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),b=require("vue-router"),n=require("./organizations.client-d21a22ec.js");require("./inputs.validation-24ae76b9.js");const p=require("./auth-5a58f8cb.js"),k=require("./Breadcrumbs.vue_vue_type_style_index_0_lang-e32a3041.js");require("vue-i18n");const y=require("./Publics-e14d36ed.js"),x=require("./vuex.esm-bundler-e8cf3cd2.js"),E=require("./vue-draggable-next.esm-bundler-80731ae0.js");require("./globals-928eb13c.js");require("./Tab-6f0a4909.js");require("./ButtonFollow-959861db.js");require("./_plugin-vue_export-helper-f246444f.js");require("./Feed-a2870bbf.js");require("./EmptyState-7658d7d6.js");require("./Chips-2a0d9bfe.js");require("./PlaceholderUserpic-20d58460.js");require("./Feed-f987d8bb.js");require("./IconEdit-823ddda9.js");require("./organizations-e97a0f85.js");require("./UploadImage-73d66f27.js");require("./CardOrganization-1be3651b.js");const V={class:"mn-big flex-column flex"},w={__name:"EditProductInfo",props:{product:Object},setup(c){const s=c,o=x.useStore();return e.toRefs(s),(t,l)=>(e.openBlock(),e.createElementBlock("div",V,[e.createTextVNode(e.toDisplayString(e.unref(o).products.current)+" ",1),e.createVNode(y.Select,{options:["unpublished","published","archivied"],select:e.unref(o).products.state.current.status,"onUpdate:select":l[0]||(l[0]=r=>e.unref(o).products.state.current.status=r),placeholder:"Display product",class:"w-100 mn-small bg-white radius-small pd-medium"},null,8,["select"]),e.createVNode(p.Field,{field:e.unref(o).products.state.current.name,"onUpdate:field":l[1]||(l[1]=r=>e.unref(o).products.state.current.name=r),placeholder:"Введите название",class:"w-100 mn-small bg-white radius-small pd-medium"},null,8,["field"]),e.createVNode(p.Field,{field:e.unref(o).products.state.current.price,"onUpdate:field":l[2]||(l[2]=r=>e.unref(o).products.state.current.price=r),placeholder:"Введите цену",class:"w-100 mn-small bg-white radius-small pd-medium",type:"number"},null,8,["field"]),e.createVNode(p.Field,{field:e.unref(o).products.state.current.description,"onUpdate:field":l[3]||(l[3]=r=>e.unref(o).products.state.current.description=r),placeholder:"Введите описание",class:"w-100 mn-small bg-white radius-small pd-medium",type:"textarea"},null,8,["field"])]))}},B={class:"mn-big"},C={class:"mn-small flex-nowrap flex"},$={class:"mn-r-thin"},q={class:"flex-column flex"},P={key:0,class:"w-100 mn-small"},z=["onClick"],D=e.createElementVNode("svg",{class:"i-small",fill:"none",height:"20",viewBox:"0 0 20 20",width:"20",xmlns:"http://www.w3.org/2000/svg"},[e.createElementVNode("path",{"clip-rule":"evenodd",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",fill:"#8a8a8a","fill-rule":"evenodd"})],-1),I=[D],N={__name:"EditParameters",props:{items:{type:Array,default:()=>[]},title:String,addButtonLabel:String,emptyMessage:String,keyName:String,valueName:String},emits:["add-info","delete-info"],setup(c,{emit:s}){const o=c;function t(){s("add-info",{})}function l(a){s("delete-info",a)}const{items:r,title:m,emptyMessage:_,addButtonLabel:d,keyName:i,valueName:f}=e.toRefs(o);return(a,v)=>(e.openBlock(),e.createElementBlock("div",B,[e.createElementVNode("div",C,[e.createElementVNode("h5",$,e.toDisplayString(e.unref(m)),1),e.createElementVNode("button",{onClick:t,class:"i-small pd-thin button-delete button"},"+")]),e.createElementVNode("div",q,[e.unref(r).length==0?(e.openBlock(),e.createElementBlock("p",P,e.toDisplayString(e.unref(_)),1)):e.createCommentVNode("",!0),e.unref(r).length==0?(e.openBlock(),e.createBlock(p._sfc_main,{key:1,onClick:t,class:"button"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(d)),1)]),_:1})):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(r),(u,g)=>(e.openBlock(),e.createElementBlock("div",{class:"mn-medium w-100 flex-nowrap flex",key:g},[e.createVNode(p.Field,{field:u[e.unref(i)],"onUpdate:field":h=>u[e.unref(i)]=h,placeholder:"Название параметра",class:"w-100 mn-r-small bg-white radius-small pd-medium"},null,8,["field","onUpdate:field"]),e.createVNode(p.Field,{field:u[e.unref(f)],"onUpdate:field":h=>u[e.unref(f)]=h,placeholder:"Значение параметра",class:"w-100 bg-white radius-small pd-medium"},null,8,["field","onUpdate:field"]),e.createElementVNode("button",{onClick:h=>l(g),class:"mn-l-small button"},I,8,z)]))),128))])]))}},S=e.createElementVNode("div",{class:"flex-v-center flex-h-center flex w-100 h-100"}," upload ",-1),U={__name:"UploadImageMultiple",props:["uploadPath"],emits:["update:images"],setup(c,{emit:s}){const o=c,t=e.ref([]),l=e.ref(null);function r(){l.value.click()}async function m(d){let i=d.target.files,f=new FormData;for(let a=0;a<i.length;a++)f.append("file",i[a]);try{(await p.axios.create({baseURL:process.env.API_URL,withCredentials:!0}).post(`/api/upload/multiple?folderName=${encodeURIComponent(o.uploadPath)}`,f,{headers:{"Content-Type":"multipart/form-data"}})).data.forEach(u=>{t.value.push(u.filepath)}),s("update:images",t.value)}catch(a){console.error(a)}}function _(d){d.preventDefault(),m({target:{files:d.dataTransfer.files}})}return(d,i)=>(e.openBlock(),e.createElementBlock("div",{onClick:r,onDrop:_,onDragover:i[0]||(i[0]=e.withModifiers(()=>{},["prevent"])),class:"flex-v-center flex-h-center flex"},[S,e.createElementVNode("input",{type:"file",ref_key:"fileInput",ref:l,onChange:m,multiple:"",style:{display:"none"}},null,544)],32))}},L={key:0,class:"mn-big"},A={class:"flex-column block"},F=["src"],R=["onClick"],T={__name:"EditProductImages",props:{product:Object},setup(c){function s(t){console.log(t),console.log(n.state.current.images),n.state.current.images.push(...t)}function o(t){n.state.current.images.splice(t,1)}return(t,l)=>(e.openBlock(),e.createElementBlock("div",null,[c.product.images.length<1?(e.openBlock(),e.createElementBlock("p",L," The product doesn't have any images yet. ")):e.createCommentVNode("",!0),e.createVNode(e.unref(E.VueDraggableNext),{class:"cols-4 dragArea list-group w-full",list:c.product.images,sort:!0,onChange:t.log},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(c.product.images,(r,m)=>(e.openBlock(),e.createElementBlock("div",A,[e.createElementVNode("img",{class:"w-100 mn-small",src:r},null,8,F),e.createElementVNode("a",{onClick:_=>o(m),class:"w-100 br-grey br-solid br-1px button"},"Удалить",8,R)]))),256))]),_:1},8,["list","onChange"]),e.createVNode(U,{"onUpdate:images":s,uploadPath:"organizations/"+t.$route.params._id+"/products",class:"mn-t-semi pd-small w-100 button bg-main"},null,8,["uploadPath"])]))}};const M={class:"for-transition w-100"},j={class:"pd-b-zero pd-t-zero pd-thin"},O={class:"pd-thin"},G={class:"flex-nowrap flex bg-grey pd-medium radius-big"},H={key:0,class:"mn-r-auto"},J={key:1,class:"mn-r-auto"},K={class:"flex-nowrap flex pd-thin"},Q={class:"pd-b-zero pd-t-zero pd-thin cols-2 gap-thin"},W={class:"mn-thin bg-grey pd-medium o-hidden radius-big"},X=e.createElementVNode("h3",{class:"mn-semi"},"Profile",-1),Y={class:"mn-semi"},Z=e.createElementVNode("h5",null,"Categories",-1),ee={class:""},te={class:"mn-thin bg-grey pd-medium o-hidden radius-big"},ne=e.createElementVNode("h3",{class:"mn-semi"},"Images",-1),oe={__name:"ProductEdit",async setup(c){let s,o;const t=b.useRoute(),l=b.useRouter();[s,o]=e.withAsyncContext(()=>n.actions.fetchCategories()),await s,o(),t.params.product&&([s,o]=e.withAsyncContext(()=>n.actions$1.read({_id:t.params.product})),await s,o());function r(){n.state.current.information.push({name:"",value:""})}function m(a){n.state.current.information.splice(a,1)}function _(){n.state.current.localization.push({locale:"",text:""})}function d(a){n.state.current.localization.splice(a,1)}function i(){t.params.product?n.actions$1.update(t.params.product,n.state.current):n.actions$1.create(t.params._id,n.state.current)}function f(){l.push({name:"ProductEdit",params:{_id:t.params._id,product:n.state.current._id}})}return(a,v)=>(e.openBlock(),e.createElementBlock("div",M,[e.createElementVNode("div",j,[e.createVNode(n._sfc_main,{class:"pd-medium bg-grey radius-big"})]),e.createElementVNode("div",O,[e.createElementVNode("header",G,[e.unref(t).params.product?(e.openBlock(),e.createElementBlock("h1",H,"Edit Product")):(e.openBlock(),e.createElementBlock("h1",J,"Create Product")),e.createElementVNode("section",K,[e.createVNode(p._sfc_main,{submit:i,callback:f},{default:e.withCtx(()=>[e.createTextVNode("Save Product")]),_:1})])])]),e.createElementVNode("div",Q,[e.createElementVNode("div",W,[X,e.createVNode(w,{product:n.state.current},null,8,["product"]),e.createElementVNode("div",Y,[Z,(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.state$1.all,(u,g)=>(e.openBlock(),e.createBlock(k.Checkbox,{label:u.name,name:"categories",value:u.url,class:"w-100 mn-t-small bg-white radius-small pd-small",radio:n.state.current.category},null,8,["label","value","radio"]))),256))]),e.createVNode(N,{items:n.state.current.information,title:"Parameters",emptyMessage:"No parameters",addButtonLabel:"Add parameter",keyName:"name",valueName:"value",onAddInfo:r,onDeleteInfo:m},null,8,["items"]),e.createVNode(N,{items:n.state.current.localization,title:"Localization",emptyMessage:"No localizations",addButtonLabel:"Add localization",keyName:"locale",valueName:"text",onAddInfo:_,onDeleteInfo:d},null,8,["items"])]),e.createElementVNode("div",ee,[e.createElementVNode("div",te,[ne,e.createVNode(T,{product:n.state.current},null,8,["product"])])])])]))}};exports.default=oe;