@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
@@ -27,7 +27,7 @@ const state = reactive({
27
27
  phone: '',
28
28
  address: '',
29
29
  },
30
- social: {
30
+ socials: {
31
31
  telegram: '',
32
32
  line: '',
33
33
  facebook: '',
@@ -218,7 +218,7 @@ const actions = {
218
218
  phone: '',
219
219
  address: '',
220
220
  },
221
- social: {
221
+ socials: {
222
222
  telegram: '',
223
223
  line: '',
224
224
  facebook: '',
@@ -14,7 +14,7 @@
14
14
  />
15
15
 
16
16
  <section
17
- class="t-center w-100 mn-semi radius-medium pd-medium bg-grey"
17
+ class="flex-center flex flex-column t-center w-100 mn-semi radius-medium pd-medium bg-grey"
18
18
  >
19
19
  <IconEdit
20
20
  v-if="route.params._id === auth.state.user._id"
@@ -70,14 +70,28 @@
70
70
  </p>
71
71
 
72
72
  <ButtonFollow
73
- v-if="auth.state.user._id && route.params._id && route.params._id !== auth.state.user._id"
74
- :type="'user'"
75
- :isMember="users.state.current.isMember"
76
- :targetId="users.state.current._id"
77
- :userId="auth.state.user._id"
78
- class="w-min mn-auto"
79
- @updateMembership="handleMembershipUpdate"
80
- />
73
+ v-if="auth.state.user._id && route.params._id && route.params._id !== auth.state.user._id"
74
+ :type="'user'"
75
+ :isMember="users.state.current.isMember"
76
+ :targetId="users.state.current._id"
77
+ :userId="auth.state.user._id"
78
+ class="w-min mn-auto"
79
+ @updateMembership="handleMembershipUpdate"
80
+ />
81
+
82
+ <h4
83
+ v-if="Object.values(users.state.current.socials).some(value => value)"
84
+ class="mn-t-small mn-thin"
85
+ >
86
+ Find Me in Socials
87
+ </h4>
88
+ <Socials
89
+ :telegram="users.state.current.socials.telegram"
90
+ :facebook="users.state.current.socials.facebook"
91
+ :instagram="users.state.current.socials.instagram"
92
+ :twitter="users.state.current.socials.twitter"
93
+ class="mn-r-auto mn-l-auto"
94
+ />
81
95
 
82
96
  </section>
83
97
 
@@ -95,7 +109,7 @@
95
109
  <span>Posts</span>
96
110
  </MenuItem>
97
111
  </Menu>
98
-
112
+ <!--
99
113
  <Menu>
100
114
  <MenuItem @click="router.push({name: 'User Comments', params: {_id: route.params._id}})" class="cursor-pointer">
101
115
  <span>Comments</span>
@@ -103,7 +117,7 @@
103
117
  <MenuItem @click="router.push({name: 'User Likes', params: {_id: route.params._id}})" class="cursor-pointer">
104
118
  <span>Likes</span>
105
119
  </MenuItem>
106
- </Menu>
120
+ </Menu> -->
107
121
 
108
122
  <Menu
109
123
  v-if="auth.state.user._id === route.params._id"
@@ -148,6 +162,7 @@ import MenuItem from '@pf/src/modules/mobile/components/Menu/MenuItem.vue'
148
162
  import ButtonFollow from '@pf/src/modules/organizations/components/elements/ButtonFollow.vue'
149
163
  // Community Module
150
164
  import Activity from '@pf/src/modules/community/components/blocks/Activity.vue';
165
+ import Socials from '@pf/src/modules/organizations/components/blocks/Socials.vue'
151
166
  // Users Module
152
167
  import ProfileCompletion from '@pf/src/modules/users/components/sections/ProfileCompletion.vue'
153
168
  // Icons Module
@@ -59,6 +59,33 @@
59
59
  class="mn-semi bg-grey pd-medium radius-small"
60
60
  :validation="organizationName"
61
61
  />
62
+ <h3 class="mn-small">Socials</h3>
63
+ <p class="mn-thin">Please provide only the username for social media profiles, without full links.</p>
64
+
65
+ <Field
66
+ v-model:field="user.socials.instagram"
67
+ label="Instagram"
68
+ placeholder=""
69
+ class="mn-thin bg-grey pd-medium radius-small"
70
+ />
71
+ <Field
72
+ v-model:field="user.socials.twitter"
73
+ label="Twitter"
74
+ placeholder=""
75
+ class="mn-thin bg-grey pd-medium radius-small"
76
+ />
77
+ <Field
78
+ v-model:field="user.socials.facebook"
79
+ label="Facebook"
80
+ placeholder=""
81
+ class="mn-thin bg-grey pd-medium radius-small"
82
+ />
83
+ <Field
84
+ v-model:field="user.socials.telegram"
85
+ label="Telegram"
86
+ placeholder=""
87
+ class="mn-semi bg-grey pd-medium radius-small"
88
+ />
62
89
  <!-- -->
63
90
  <h3 class="mn-small">Account</h3>
64
91
 
@@ -78,16 +105,7 @@
78
105
  label="Email"
79
106
  placeholder="Not specified"
80
107
  class="mn-thin bg-grey pd-medium radius-small"
81
- disabled="true"
82
- :validation="organizationName"
83
- />
84
-
85
- <Field
86
- v-model:field="user.password"
87
- label="Password"
88
- placeholder="Not specified"
89
- class="mn-semi bg-grey pd-medium radius-small"
90
- disabled="true"
108
+ :disabled="true"
91
109
  :validation="organizationName"
92
110
  />
93
111
 
@@ -25,12 +25,12 @@ module.exports = (mongoose) => {
25
25
  }
26
26
  },
27
27
 
28
- social: {
28
+ socials: {
29
29
  telegram: {
30
30
  type: String,
31
31
  default: ''
32
32
  },
33
- line: {
33
+ twitter: {
34
34
  type: String,
35
35
  default: ''
36
36
  },
@@ -19,10 +19,9 @@ const state = reactive({
19
19
  description: "",
20
20
  birthday: "",
21
21
  },
22
-
23
22
  socials: {
24
23
  facebook: "",
25
- line: "",
24
+ twitter: "",
26
25
  instagram: "",
27
26
  telegram: ""
28
27
  },
@@ -1,7 +0,0 @@
1
- "use strict";const r=require("vue");require("./Select.vue_vue_type_style_index_0_scoped_a78dbba1_lang-0ea8fbf8.js");const g=require("./auth-50bd4ebb.js"),c=require("./globals-d7a54bb4.js");/**
2
- * vue-meta v3.0.0-alpha.10
3
- * (c) 2022
4
- * - Pim (@pimlie)
5
- * - All the amazing contributors
6
- * @license MIT
7
- */const v=e=>e!==null&&typeof e=="object";function p(e,t,a){for(const n in t)n in a?v(e[n])?p(e[n],t[n],a[n]):t[n]!==a[n]&&(e[n]=t[n]):e[n]=t[n];for(const n in a)t&&n in t||delete e[n]}function P(e){if(e||(e=r.getCurrentInstance()||void 0),e)return e.appContext.config.globalProperties.$metaManager}function y(e,t){const a=r.getCurrentInstance()||void 0;if(!t&&a&&(t=P(a)),!t)throw new Error("No manager or current instance");r.isProxy(e)&&(r.watch(e,(i,d)=>{p(n.meta,i,d)}),e=e.value);const n=t.addMeta(e,a);return n}r.defineComponent({name:"Metainfo",inheritAttrs:!1,setup:(e,{slots:t})=>()=>{const a=P();if(a)return a.render({slots:t})}});const k={key:0,class:"t-transp mn-r-small"},w=["onClick"],E=["onClick"],b={key:0,class:"mn-t-thin invalid-feedback"},_={__name:"Select",props:{label:String,select:[String,Object],placeholder:{type:String,default:"Please select an item"},options:{type:Array,default:()=>[]},validation:Boolean},emits:["update:select","focus","blur"],setup(e,{emit:t}){const a=e,n=r.ref(a.select),i=r.ref(!1);r.watch(()=>a.select,l=>{n.value=l});const d=r.computed(()=>a.select?a.options.filter(l=>l!==a.select):a.options),m=()=>{i.value=!i.value,t(i.value?"focus":"blur")},h=l=>{n.value=l,m(),t("update:select",n.value)};return(l,j)=>{var f;return r.openBlock(),r.createElementBlock(r.Fragment,null,[r.createElementVNode("div",{class:r.normalizeClass([l.$attrs.class,"flex-nowrap flex"])},[e.label?(r.openBlock(),r.createElementBlock("div",k,[r.createElementVNode("span",null,r.toDisplayString(e.label),1)])):r.createCommentVNode("",!0),r.createElementVNode("li",{onClick:r.withModifiers(m,["stop"]),class:"w-100"},[r.createElementVNode("span",null,r.toDisplayString(((f=n.value)==null?void 0:f.name)||n.value||e.placeholder),1)],8,w),r.createVNode(r.Transition,{mode:"out-in",name:"fade"},{default:r.withCtx(()=>[i.value?(r.openBlock(),r.createElementBlock("ul",{key:0,class:r.normalizeClass([l.$attrs.class,"pos-absolute pos-l-0 z-index-5 w-100 mn-t-big"])},[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(r.unref(d),u=>(r.openBlock(),r.createElementBlock("li",null,[u?(r.openBlock(),r.createElementBlock("span",{key:0,onClick:x=>h(u),class:"w-100"},r.toDisplayString(u.name||u),9,E)):r.createCommentVNode("",!0)]))),256))],2)):r.createCommentVNode("",!0)]),_:1})],2),r.createVNode(r.Transition,{mode:"out-in",name:"fade"},{default:r.withCtx(()=>[e.validation?(r.openBlock(),r.createElementBlock("div",b," * "+r.toDisplayString(e.validation.message),1)):r.createCommentVNode("",!0)]),_:1})],64)}}},B=g._export_sfc(_,[["__scopeId","data-v-a78dbba1"]]),o=g.axios.create({baseURL:process.env.API_URL,withCredentials:!0}),s=r.reactive({all:[],current:{recommendation:!1,category:[],status:"unpublished",information:[],coverImage:"",images:[],files:[],image3d:!1,name:"",sale:0,price:0,localization:[],modifications:[],description:""}}),C={async create(e,t){const a={...t,organization:e};return await o.post("/products/create",a).then(n=>(S(n.data,"current"),Promise.resolve(n.data)),n=>(c.setError(n),Promise.reject(n)))},async read(e={}){e._id&&(e.params={_id:e._id}),e.category&&(e.params=e.params||{},e.params.category=e.category),e.params=e.params||{},e.params.skip=e.skip||0,e.params.limit=e.limit||10,e.organization&&(e.params.organization=e.organization),e.params.sort="createdAt";try{console.log("Request params:"+e.params);const t=await o.get("/products/read",{params:e.params});return e._id?s.current=t.data[0]:s.all=t.data,Promise.resolve(t.data)}catch(t){return c.setError(t),Promise.reject(t)}},async update(e,t){return await o.post("/products/"+e,t).then(a=>Promise.resolve(a.data),a=>(c.setError(a),Promise.reject(a)))},async deleteProduct(e){return await o.delete("/products/"+e).then(t=>Promise.resolve(t.data),t=>(c.setError(t),Promise.reject(t)))},async submitMood(e=null){return console.log(e),o.post("/product/recommended",{mood:e}).then(t=>(s.current=t.data.product,s.current.recommendation=t.data.recommendationText,Promise.resolve(t.data)),t=>(console.log(t),c.setError(t),Promise.reject(t)))},async fetchProducts(){return await o.get("/products").then(e=>(s.all=e.data,s.filtered=e.data.slice(),s.filteredPrice=s.filtered,s.filteredPrice.sort(function(t,a){return t[s.sort.current]>a[s.sort.current]?s.sort.ascending?1:-1:t[s.sort.current]<a[s.sort.current]?s.sort.ascending?-1:1:0}),Promise.resolve(e.data)),e=>(c.setError(e),Promise.reject(e)))},async fetchProductsPopular(){return await o.get("/products/popular").then(e=>(s.popular=e.data,Promise.resolve(e.data)),e=>(c.setError(e),Promise.reject(e)))},async fetchProductsPublished(){return await o.get("/products").then(e=>{let t=e.data.filter(function(a,n){return a.status!=="unpublished"});return s.all=t,s.filtered=t.slice(),s.filteredPrice=s.filtered,s.filteredPrice.sort(function(a,n){return a[s.sort.current]>n[s.sort.current]?s.sort.ascending?1:-1:a[s.sort.current]<n[s.sort.current]?s.sort.ascending?-1:1:0}),Promise.resolve(e.data)},e=>(c.setError(e),Promise.reject(e)))},async fetchProduct(e){return await o.get("/products/"+e).then(t=>(t.localization||(t.localization=[]),s.current=t.data,Promise.resolve(t.data)),t=>(c.setError(t),Promise.reject(t)))},async fetchProductPopular(){return await o.get("/products").then(e=>(s.all=e.data.slice(1,5),Promise.resolve(e.data.slice(1,5))),e=>(c.setError(e),Promise.reject(e)))}};function S(e,t){s[t]=e}r.watch(s,(e,t)=>{});exports.B=y;exports.Select=B;exports.actions=C;exports.state=s;
@@ -1 +0,0 @@
1
- "use strict";const t=require("vue");require("./Select.vue_vue_type_style_index_0_scoped_a78dbba1_lang-0ea8fbf8.js");const f=require("./auth-50bd4ebb.js"),c=require("./globals-d7a54bb4.js"),P={key:0,class:"t-transp mn-r-small"},h=["onClick"],v=["onClick"],y={key:0,class:"mn-t-thin invalid-feedback"},k={__name:"Select",props:{label:String,select:[String,Object],placeholder:{type:String,default:"Please select an item"},options:{type:Array,default:()=>[]},validation:Boolean},emits:["update:select","focus","blur"],setup(e,{emit:r}){const n=e,s=t.ref(n.select),i=t.ref(!1);t.watch(()=>n.select,o=>{s.value=o});const g=t.computed(()=>n.select?n.options.filter(o=>o!==n.select):n.options),d=()=>{i.value=!i.value,r(i.value?"focus":"blur")},p=o=>{s.value=o,d(),r("update:select",s.value)};return(o,b)=>{var m;return t.openBlock(),t.createElementBlock(t.Fragment,null,[t.createElementVNode("div",{class:t.normalizeClass([o.$attrs.class,"flex-nowrap flex"])},[e.label?(t.openBlock(),t.createElementBlock("div",P,[t.createElementVNode("span",null,t.toDisplayString(e.label),1)])):t.createCommentVNode("",!0),t.createElementVNode("li",{onClick:t.withModifiers(d,["stop"]),class:"w-100"},[t.createElementVNode("span",null,t.toDisplayString(((m=s.value)==null?void 0:m.name)||s.value||e.placeholder),1)],8,h),t.createVNode(t.Transition,{mode:"out-in",name:"fade"},{default:t.withCtx(()=>[i.value?(t.openBlock(),t.createElementBlock("ul",{key:0,class:t.normalizeClass([o.$attrs.class,"pos-absolute pos-l-0 z-index-5 w-100 mn-t-big"])},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(t.unref(g),u=>(t.openBlock(),t.createElementBlock("li",null,[u?(t.openBlock(),t.createElementBlock("span",{key:0,onClick:B=>p(u),class:"w-100"},t.toDisplayString(u.name||u),9,v)):t.createCommentVNode("",!0)]))),256))],2)):t.createCommentVNode("",!0)]),_:1})],2),t.createVNode(t.Transition,{mode:"out-in",name:"fade"},{default:t.withCtx(()=>[e.validation?(t.openBlock(),t.createElementBlock("div",y," * "+t.toDisplayString(e.validation.message),1)):t.createCommentVNode("",!0)]),_:1})],64)}}},w=f._export_sfc(k,[["__scopeId","data-v-a78dbba1"]]),l=f.axios.create({baseURL:process.env.API_URL,withCredentials:!0}),a=t.reactive({all:[],current:{recommendation:!1,category:[],status:"unpublished",information:[],coverImage:"",images:[],files:[],image3d:!1,name:"",sale:0,price:0,localization:[],modifications:[],description:""}}),E={async create(e,r){const n={...r,organization:e};return await l.post("/products/create",n).then(s=>(_(s.data,"current"),Promise.resolve(s.data)),s=>(c.setError(s),Promise.reject(s)))},async read(e={}){e._id&&(e.params={_id:e._id}),e.category&&(e.params=e.params||{},e.params.category=e.category),e.params=e.params||{},e.params.skip=e.skip||0,e.params.limit=e.limit||10,e.organization&&(e.params.organization=e.organization),e.params.sort="createdAt";try{console.log("Request params:"+e.params);const r=await l.get("/products/read",{params:e.params});return e._id?a.current=r.data[0]:a.all=r.data,Promise.resolve(r.data)}catch(r){return c.setError(r),Promise.reject(r)}},async update(e,r){return await l.post("/products/"+e,r).then(n=>Promise.resolve(n.data),n=>(c.setError(n),Promise.reject(n)))},async deleteProduct(e){return await l.delete("/products/"+e).then(r=>Promise.resolve(r.data),r=>(c.setError(r),Promise.reject(r)))},async submitMood(e=null){return console.log(e),l.post("/product/recommended",{mood:e}).then(r=>(a.current=r.data.product,a.current.recommendation=r.data.recommendationText,Promise.resolve(r.data)),r=>(console.log(r),c.setError(r),Promise.reject(r)))},async fetchProducts(){return await l.get("/products").then(e=>(a.all=e.data,a.filtered=e.data.slice(),a.filteredPrice=a.filtered,a.filteredPrice.sort(function(r,n){return r[a.sort.current]>n[a.sort.current]?a.sort.ascending?1:-1:r[a.sort.current]<n[a.sort.current]?a.sort.ascending?-1:1:0}),Promise.resolve(e.data)),e=>(c.setError(e),Promise.reject(e)))},async fetchProductsPopular(){return await l.get("/products/popular").then(e=>(a.popular=e.data,Promise.resolve(e.data)),e=>(c.setError(e),Promise.reject(e)))},async fetchProductsPublished(){return await l.get("/products").then(e=>{let r=e.data.filter(function(n,s){return n.status!=="unpublished"});return a.all=r,a.filtered=r.slice(),a.filteredPrice=a.filtered,a.filteredPrice.sort(function(n,s){return n[a.sort.current]>s[a.sort.current]?a.sort.ascending?1:-1:n[a.sort.current]<s[a.sort.current]?a.sort.ascending?-1:1:0}),Promise.resolve(e.data)},e=>(c.setError(e),Promise.reject(e)))},async fetchProduct(e){return await l.get("/products/"+e).then(r=>(r.localization||(r.localization=[]),a.current=r.data,Promise.resolve(r.data)),r=>(c.setError(r),Promise.reject(r)))},async fetchProductPopular(){return await l.get("/products").then(e=>(a.all=e.data.slice(1,5),Promise.resolve(e.data.slice(1,5))),e=>(c.setError(e),Promise.reject(e)))}};function _(e,r){a[r]=e}t.watch(a,(e,r)=>{});exports.Select=w;exports.actions=E;exports.state=a;
@@ -1 +0,0 @@
1
- "use strict";const t=require("vue"),f=require("./auth-5aa8e90c.js");var V=function e(i,s){if(i===s)return!0;if(i&&s&&typeof i=="object"&&typeof s=="object"){if(i.constructor!==s.constructor)return!1;var n,a,o;if(Array.isArray(i)){if(n=i.length,n!=s.length)return!1;for(a=n;a--!==0;)if(!e(i[a],s[a]))return!1;return!0}if(i.constructor===RegExp)return i.source===s.source&&i.flags===s.flags;if(i.valueOf!==Object.prototype.valueOf)return i.valueOf()===s.valueOf();if(i.toString!==Object.prototype.toString)return i.toString()===s.toString();if(o=Object.keys(i),n=o.length,n!==Object.keys(s).length)return!1;for(a=n;a--!==0;)if(!Object.prototype.hasOwnProperty.call(s,o[a]))return!1;for(a=n;a--!==0;){var l=o[a];if(!e(i[l],s[l]))return!1}return!0}return i!==i&&s!==s};const $=f.getDefaultExportFromCjs(V),O=(e,i)=>i.filter(s=>{const{text:n}=e;if(typeof s.rule=="string")return!new RegExp(s.rule).test(n);if(s.rule instanceof RegExp)return!s.rule.test(n);if({}.toString.call(s.rule)==="[object Function]")return s.rule(e)}).map(s=>s.classes),c=e=>JSON.parse(JSON.stringify(e)),B=(e,i)=>{let s=0;for(;s<e.length;){if(i(e[s],s,e))return s;s++}return-1},k=(e,i,s=[],n)=>{e.text===void 0&&(e={text:e});const a=O(e,s),o=B(i,d=>d===e),l=c(i),r=o!==-1?l.splice(o,1)[0]:c(e);return(n?n(l,r):l.map(d=>d.text).indexOf(r.text)!==-1)&&a.push("ti-duplicate"),a.length===0?a.push("ti-valid"):a.push("ti-invalid"),a},m=(e,...i)=>{e.text===void 0&&(e={text:e});const s=c(e);return s.tiClasses=k(e,...i),s},C=(e,...i)=>e.map(s=>m(s,e,...i));const D={name:"TagInput",props:{scope:{type:Object}}},L=["maxlength"];function A(e,i,s,n,a,o){return s.scope.edit?t.withDirectives((t.openBlock(),t.createElementBlock("input",{key:0,"onUpdate:modelValue":i[0]||(i[0]=l=>s.scope.tag.text=l),maxlength:s.scope.maxlength,type:"text",class:"ti-tag-input",size:"1",onInput:i[1]||(i[1]=l=>s.scope.validateTag(s.scope.index,l)),onBlur:i[2]||(i[2]=l=>s.scope.performCancelEdit(s.scope.index)),onKeydown:i[3]||(i[3]=l=>s.scope.performSaveEdit(s.scope.index,l))},null,40,L)),[[t.vModelText,s.scope.tag.text]]):t.createCommentVNode("",!0)}const N=f._export_sfc(D,[["render",A],["__scopeId","data-v-a1f1c345"]]),b=e=>!e.some(i=>{const s=!i.text;s&&console.warn('Missing property "text"',i);let n=!1;return i.classes&&(n=typeof i.classes!="string"),n&&console.warn('Property "classes" must be type of string',i),s||n}),w=e=>!e.some(i=>{if(typeof i=="number"){const s=isFinite(i)&&Math.floor(i)===i;return s||console.warn("Only numerics are allowed for this prop. Found:",i),!s}else if(typeof i=="string"){const s=/\W|[a-z]|!\d/i.test(i);return s||console.warn("Only alpha strings are allowed for this prop. Found:",i),!s}else return console.warn("Only numeric and string values are allowed. Found:",i),!1}),M={modelValue:{type:String,default:"",required:!0},tags:{type:Array,default:()=>[],validator:b},autocompleteItems:{type:Array,default:()=>[],validator:b},allowEditTags:{type:Boolean,default:!1},autocompleteFilterDuplicates:{default:!0,type:Boolean},addOnlyFromAutocomplete:{type:Boolean,default:!1},autocompleteMinLength:{type:Number,default:1},autocompleteAlwaysOpen:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},placeholder:{type:String,default:"Add Tag"},addOnKey:{type:Array,default:()=>[13],validator:w},saveOnKey:{type:Array,default:()=>[13],validator:w},maxTags:{type:Number},maxlength:{type:Number},validation:{type:Array,default:()=>[],validator(e){return!e.some(i=>{const s=!i.rule;s&&console.warn('Property "rule" is missing',i);const n=i.rule&&(typeof i.rule=="string"||i.rule instanceof RegExp||{}.toString.call(i.rule)==="[object Function]");n||console.warn("A rule must be type of string, RegExp or function. Found:",JSON.stringify(i.rule));const a=!i.classes;a&&console.warn('Property "classes" is missing',i);const o=i.type&&typeof i.type!="string";return o&&console.warn('Property "type" must be type of string. Found:',i),!n||s||a||o})}},separators:{type:Array,default:()=>[";"],validator(e){return!e.some(i=>{const s=typeof i!="string";return s&&console.warn("Separators must be type of string. Found:",i),s})}},avoidAddingDuplicates:{type:Boolean,default:!0},addOnBlur:{type:Boolean,default:!0},isDuplicate:{type:Function,default:null},addFromPaste:{type:Boolean,default:!0},deleteOnBackspace:{default:!0,type:Boolean},onBeforeAddingTag:Function,onBeforeDeletingTag:Function,onBeforeEditingTag:Function,onBeforeSavingTag:Function},F={name:"VueTagsInput",components:{TagInput:N},props:M,emits:["adding-duplicate","before-adding-tag","before-deleting-tag","before-editing-tag","before-saving-tag","max-tags-reached","saving-duplicate","tags-changed","tag-clicked","update:modelValue","update:tags"],inheritAttrs:!1,data(){return{tagCenter:[],newTag:null,tagsCopy:[],tagsEditStatus:null,deletionMark:null,deletionMarkTime:null,selectedItem:null,focused:null}},computed:{autocompleteOpen(){return this.autocompleteAlwaysOpen?!0:this.newTag!==null&&this.newTag.length>=this.autocompleteMinLength&&this.filteredAutocompleteItems.length>0&&this.focused},filteredAutocompleteItems(){const e=this.autocompleteItems.map(i=>m(i,this.tags,this.validation,this.isDuplicate));return this.autocompleteFilterDuplicates?e.filter(this.duplicateFilter):e}},methods:{createClasses:k,getSelectedIndex(e){const i=this.filteredAutocompleteItems,s=this.selectedItem,n=i.length-1;if(i.length!==0)return s===null?0:e==="before"&&s===0?n:e==="after"&&s===n?0:e==="after"?s+1:s-1},selectDefaultItem(){this.addOnlyFromAutocomplete&&this.filteredAutocompleteItems.length>0?this.selectedItem=0:this.selectedItem=null},selectItem(e,i){e.preventDefault(),this.selectedItem=this.getSelectedIndex(i)},isSelected(e){return this.selectedItem===e},isMarked(e){return this.deletionMark===e},setTagCenter(e){e&&this.tagCenter.push(e)},invokeDelete(){if(!this.deleteOnBackspace||this.newTag.length>0)return;const e=this.tagsCopy.length-1;this.deletionMark===null?(this.deletionMarkTime=setTimeout(()=>this.deletionMark=null,1e3),this.deletionMark=e):this.performDeleteTag(e)},addTagsFromPaste(){this.addFromPaste&&setTimeout(()=>this.performAddTags(this.newTag),10)},performEditTag(e){this.allowEditTags&&(this.onBeforeAddingTag||this.editTag(e),this.$emit("before-editing-tag",{index:e,tag:this.tagsCopy[e],editTag:()=>this.editTag(e)}))},editTag(e){this.allowEditTags&&(this.toggleEditMode(e),this.focus(e))},toggleEditMode(e){!this.allowEditTags||this.disabled||(this.tagsEditStatus[e]=!this.tagsEditStatus[e])},createChangedTag(e,i){const s=this.tagsCopy[e];s.text=i?i.target.value:this.tagsCopy[e].text,this.tagsCopy[e]=m(s,this.tagsCopy,this.validation,this.isDuplicate)},focus(e){this.$nextTick(()=>{const i=this.tagCenter[e].querySelector("input.ti-tag-input");i&&i.focus()})},quote(e){return e.replace(/([()[{*+.$^\\|?])/g,"\\$1")},cancelEdit(e){this.tags[e]&&(this.tagsCopy[e]=c(m(this.tags[e],this.tags,this.validation,this.isDuplicate)),this.tagsEditStatus[e]=!1)},hasForbiddingAddRule(e){return e.some(i=>{const s=this.validation.find(n=>i===n.classes);return s?s.disableAdd:!1})},createTagTexts(e){const i=new RegExp(this.separators.map(s=>this.quote(s)).join("|"));return e.split(i).map(s=>({text:s}))},performDeleteTag(e){this.onBeforeDeletingTag||this.deleteTag(e),this.$emit("before-deleting-tag",{index:e,tag:this.tagsCopy[e],deleteTag:()=>this.deleteTag(e)})},deleteTag(e){this.disabled||(this.deletionMark=null,clearTimeout(this.deletionMarkTime),this.tagsCopy.splice(e,1),this.$emit("update:tags",this.tagsCopy),this.$emit("tags-changed",this.tagsCopy))},noTriggerKey(e,i){const s=this[i].indexOf(e.keyCode)!==-1||this[i].indexOf(e.key)!==-1;return s&&e.preventDefault(),!s},performAddTags(e,i,s){if(this.disabled||i&&this.noTriggerKey(i,"addOnKey"))return;let n=[];typeof e=="object"&&(n=[e]),typeof e=="string"&&(n=this.createTagTexts(e)),n=n.filter(a=>a.text.trim().length>0),n.forEach(a=>{a=m(a,this.tags,this.validation,this.isDuplicate),this.onBeforeAddingTag||this.addTag(a,s),this.$emit("before-adding-tag",{tag:a,addTag:()=>this.addTag(a,s)})})},duplicateFilter(e){return this.isDuplicate?!this.isDuplicate(this.tagsCopy,e):!this.tagsCopy.find(i=>i.text===e.text)},addTag(e,i="new-tag-input"){const s=this.filteredAutocompleteItems.map(n=>n.text);this.addOnlyFromAutocomplete&&s.indexOf(e.text)===-1||this.$nextTick(()=>{if(this.maxTags&&this.maxTags<=this.tagsCopy.length)return this.$emit("max-tags-reached",e);if(this.avoidAddingDuplicates&&!this.duplicateFilter(e))return this.$emit("adding-duplicate",e);this.hasForbiddingAddRule(e.tiClasses)||(this.newTag="",this.tagsCopy.push(e),this.$emit("update:tags",this.tagsCopy),i==="autocomplete"&&this.$refs.newTagInput.focus(),this.$emit("tags-changed",this.tagsCopy))})},performSaveTag(e,i){const s=this.tagsCopy[e];this.disabled||i&&this.noTriggerKey(i,"addOnKey")||s.text.trim().length!==0&&(this["on-before-saving-tag"]||this.saveTag(e,s),this.$emit("before-saving-tag",{index:e,tag:s,saveTag:()=>this.saveTag(e,s)}))},saveTag(e,i){if(this.avoidAddingDuplicates){const s=c(this.tagsCopy),n=s.splice(e,1)[0];if(this.isDuplicate?this.isDuplicate(s,n):s.map(o=>o.text).indexOf(n.text)!==-1)return this.$emit("saving-duplicate",i)}this.hasForbiddingAddRule(i.tiClasses)||(this.tagsCopy[e]=i,this.toggleEditMode(e),this.$emit("update:tags",this.tagsCopy),this.$emit("tags-changed",this.tagsCopy))},tagsEqual(){return!this.tagsCopy.some((e,i)=>!$(e,this.tags[i]))},updateNewTag(e){const i=e.target.value;this.newTag=i,this.$emit("update:modelValue",i)},initTags(){this.tagsCopy=C(this.tags,this.validation,this.isDuplicate),this.tagsEditStatus=c(this.tags).map(()=>!1),this.tagsEqual()||this.$emit("update:tags",this.tagsCopy)},blurredOnClick(e){this.$el.contains(e.target)||this.$el.contains(document.activeElement)||this.performBlur(e)},performBlur(){this.addOnBlur&&this.focused&&this.performAddTags(this.newTag),this.focused=!1}},watch:{modelValue(e){this.addOnlyFromAutocomplete||(this.selectedItem=null),this.newTag=e},tags:{handler(){this.initTags()},deep:!0},autocompleteOpen:"selectDefaultItem"},created(){this.newTag=this.modelValue,this.initTags()},mounted(){this.selectDefaultItem(),document.addEventListener("click",this.blurredOnClick)},beforeUpdate(){this.tagCenter=[]},unmounted(){document.removeEventListener("click",this.blurredOnClick)}};const I={class:"ti-input"},K={key:0,class:"ti-tags"},P=["onClick"],z={class:"ti-content"},R={key:0,class:"ti-tag-left"},H=["onClick"],G={key:1,class:"ti-tag-right"},j={class:"ti-actions"},q=["onClick"],U=["onClick"],J={class:"ti-new-tag-input-wrapper"},W=["placeholder","value","maxlength","disabled"],Y=["onMouseover"],Q=["onClick"];function X(e,i,s,n,a,o){const l=t.resolveComponent("tag-input");return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["vue-tags-input",[{"ti-disabled":e.disabled},{"ti-focus":e.focused},e.$attrs.class]]),style:t.normalizeStyle(e.$attrs.style)},[t.createElementVNode("div",I,[e.tagsCopy?(t.openBlock(),t.createElementBlock("ul",K,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.tagsCopy,(r,u)=>(t.openBlock(),t.createElementBlock("li",{key:u,style:t.normalizeStyle(r.style),class:t.normalizeClass([[{"ti-editing":e.tagsEditStatus[u]},r.tiClasses,r.classes,{"ti-deletion-mark":e.isMarked(u)}],"ti-tag"]),tabindex:"0",onClick:d=>e.$emit("tag-clicked",{tag:r,index:u})},[t.createElementVNode("div",z,[e.$slots["tag-left"]?(t.openBlock(),t.createElementBlock("div",R,[t.renderSlot(e.$slots,"tag-left",{tag:r,index:u,edit:e.tagsEditStatus[u],performSaveEdit:e.performSaveTag,performDelete:e.performDeleteTag,performCancelEdit:e.cancelEdit,performOpenEdit:e.performEditTag,deletionMark:e.isMarked(u)},void 0,!0)])):t.createCommentVNode("",!0),t.createElementVNode("div",{ref_for:!0,ref:e.setTagCenter,class:"ti-tag-center"},[e.$slots["tag-center"]?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("span",{key:0,class:t.normalizeClass({"ti-hidden":e.tagsEditStatus[u]}),onClick:d=>e.performEditTag(u)},t.toDisplayString(r.text),11,H)),e.$slots["tag-center"]?t.createCommentVNode("",!0):(t.openBlock(),t.createBlock(l,{key:1,scope:{edit:e.tagsEditStatus[u],maxlength:e.maxlength,tag:r,index:u,validateTag:e.createChangedTag,performCancelEdit:e.cancelEdit,performSaveEdit:e.performSaveTag}},null,8,["scope"])),t.renderSlot(e.$slots,"tag-center",{tag:r,index:u,maxlength:e.maxlength,edit:e.tagsEditStatus[u],performSaveEdit:e.performSaveTag,performDelete:e.performDeleteTag,performCancelEdit:e.cancelEdit,validateTag:e.createChangedTag,performOpenEdit:e.performEditTag,deletionMark:e.isMarked(u)},void 0,!0)],512),e.$slots["tag-right"]?(t.openBlock(),t.createElementBlock("div",G,[t.renderSlot(e.$slots,"tag-right",{tag:r,index:u,edit:e.tagsEditStatus[u],performSaveEdit:e.performSaveTag,performDelete:e.performDeleteTag,performCancelEdit:e.cancelEdit,performOpenEdit:e.performEditTag,deletionMark:e.isMarked(u)},void 0,!0)])):t.createCommentVNode("",!0)]),t.createElementVNode("div",j,[e.$slots["tag-actions"]?t.createCommentVNode("",!0):t.withDirectives((t.openBlock(),t.createElementBlock("i",{key:0,class:"ti-icon-undo",onClick:d=>e.cancelEdit(u)},null,8,q)),[[t.vShow,e.tagsEditStatus[u]]]),e.$slots["tag-actions"]?t.createCommentVNode("",!0):t.withDirectives((t.openBlock(),t.createElementBlock("i",{key:1,class:"ti-icon-close",onClick:d=>e.performDeleteTag(u)},null,8,U)),[[t.vShow,!e.tagsEditStatus[u]]]),e.$slots["tag-actions"]?t.renderSlot(e.$slots,"tag-actions",{key:2,tag:r,index:u,edit:e.tagsEditStatus[u],performSaveEdit:e.performSaveTag,performDelete:e.performDeleteTag,performCancelEdit:e.cancelEdit,performOpenEdit:e.performEditTag,deletionMark:e.isMarked(u)},void 0,!0):t.createCommentVNode("",!0)])],14,P))),128)),t.createElementVNode("li",J,[t.createElementVNode("input",t.mergeProps({ref:"newTagInput"},e.$attrs,{class:[[e.createClasses(e.newTag,e.tags,e.validation,e.isDuplicate)],"ti-new-tag-input"],placeholder:e.placeholder,value:e.newTag,maxlength:e.maxlength,disabled:e.disabled,type:"text",size:"1",onKeydown:[i[0]||(i[0]=r=>e.performAddTags(e.filteredAutocompleteItems[e.selectedItem]||e.newTag,r)),i[2]||(i[2]=t.withKeys((...r)=>e.invokeDelete&&e.invokeDelete(...r),["delete"])),i[3]||(i[3]=t.withKeys((...r)=>e.performBlur&&e.performBlur(...r),["tab"])),i[4]||(i[4]=t.withKeys(r=>e.selectItem(r,"before"),["up"])),i[5]||(i[5]=t.withKeys(r=>e.selectItem(r,"after"),["down"]))],onPaste:i[1]||(i[1]=(...r)=>e.addTagsFromPaste&&e.addTagsFromPaste(...r)),onInput:i[6]||(i[6]=(...r)=>e.updateNewTag&&e.updateNewTag(...r)),onFocus:i[7]||(i[7]=r=>e.focused=!0),onClick:i[8]||(i[8]=r=>e.addOnlyFromAutocomplete?!1:e.selectedItem=null)}),null,16,W)])])):t.createCommentVNode("",!0)]),t.renderSlot(e.$slots,"between-elements",{},void 0,!0),e.autocompleteOpen?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(["ti-autocomplete",e.$attrs.class]),onMouseout:i[9]||(i[9]=r=>e.selectedItem=null)},[t.renderSlot(e.$slots,"autocomplete-header",{},void 0,!0),t.createElementVNode("ul",null,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.filteredAutocompleteItems,(r,u)=>(t.openBlock(),t.createElementBlock("li",{key:u,style:t.normalizeStyle(r.style),class:t.normalizeClass([[r.tiClasses,r.classes,{"ti-selected-item":e.isSelected(u)}],"ti-item"]),onMouseover:d=>e.disabled?!1:e.selectedItem=u},[e.$slots["autocomplete-item"]?t.renderSlot(e.$slots,"autocomplete-item",{key:1,item:r,index:u,performAdd:d=>e.performAddTags(d,void 0,"autocomplete"),selected:e.isSelected(u)},void 0,!0):(t.openBlock(),t.createElementBlock("div",{key:0,onClick:d=>e.performAddTags(r,void 0,"autocomplete")},t.toDisplayString(r.text),9,Q))],46,Y))),128))]),t.renderSlot(e.$slots,"autocomplete-footer",{},void 0,!0)],34)):t.createCommentVNode("",!0)],6)}const Z=f._export_sfc(F,[["render",X],["__scopeId","data-v-d14eec25"]]);const x=t.createElementVNode("h5",{class:"mn-thin"},"Tags (maximum 20):",-1),_={class:"mn-medium"},ee=t.createElementVNode("p",{class:"p-small mn-thin"},"Suggested:",-1),te=["onClick"],ie={key:1},se={__name:"BlockTags",props:["tags"],emits:["tags-changed"],setup(e,{emit:i}){const s=e,n=t.ref(""),a=t.ref([]),o=t.ref([{text:"story"},{text:"news"},{text:"guide"},{text:"discussion"},{text:"photos"}]);s.tags&&(a.value=s.tags.map(h=>({text:h})));const l=t.computed(()=>o.value.filter(h=>h.text.toLowerCase().includes(n.value.toLowerCase()))),r=t.computed(()=>o.value.filter(h=>!a.value.some(p=>p.text===h.text)));function u(h){a.value.push(h),i("tags-changed",a.value.map(p=>p.text))}function d(h){a.value=h,i("tags-changed",a.value.map(p=>p.text))}return(h,p)=>(t.openBlock(),t.createElementBlock("div",null,[x,t.createVNode(Z,{modelValue:n.value,"onUpdate:modelValue":p[0]||(p[0]=g=>n.value=g),tags:a.value,"autocomplete-items":t.unref(l),"add-on-key":[13,":",";",","],"save-on-key":[13,":",";",","],separators:[";",","],"max-tags":20,maxlength:20,placeholder:"Please add tags","add-from-paste":!0,"allow-edit-tags":!0,onTagsChanged:d,class:"mn-thin bg-grey radius-medium pd-small"},null,8,["modelValue","tags","autocomplete-items"]),t.createElementVNode("p",_,[ee,t.unref(r).length>0?(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:0},t.renderList(t.unref(r),(g,E)=>(t.openBlock(),t.createElementBlock("span",{onClick:Me=>u(g),class:t.normalizeClass(["cursor-pointer ti-tag-toDefactor",{"mn-r-micro":E!==t.unref(r).length-1}])},t.toDisplayString(g.text),11,te))),256)):(t.openBlock(),t.createElementBlock("span",ie,"You added all suggested tags"))])]))}};const le={class:"flex-v-center flex-nowrap flex"},ne={key:0,class:"mn-r-auto t-transp mn-r-small"},ae=["name","value","checked"],re={__name:"Checkbox",props:{label:String,name:String,value:String,radio:{type:[Array,Boolean,Object],default:()=>[]}},emits:["update:radio"],setup(e,{emit:i}){const s=e,n=a=>{if(Array.isArray(s.radio)){let o=[...s.radio];if(a.target.checked)o.push(s.value);else{const l=o.indexOf(s.value);l!==-1&&o.splice(l,1)}i("update:radio",o)}else typeof s.radio=="boolean"&&i("update:radio",a.target.checked)};return(a,o)=>(t.openBlock(),t.createElementBlock("label",le,[e.label?(t.openBlock(),t.createElementBlock("div",ne,[t.createElementVNode("span",null,t.toDisplayString(e.label),1)])):t.createCommentVNode("",!0),t.createElementVNode("input",{onChange:n,class:"round radiobutton",type:"checkbox",name:e.name,value:e.value,checked:Array.isArray(e.radio)?e.radio.includes(e.value):e.radio},null,40,ae),t.createElementVNode("div",{class:t.normalizeClass(["transition-elastic pd-thin h-2r w-4r radius-extra",{"bg-grey":!(Array.isArray(e.radio)?e.radio.includes(e.value):e.radio),"bg-main":Array.isArray(e.radio)?e.radio.includes(e.value):e.radio}])},[t.createElementVNode("div",{class:t.normalizeClass(["transition-linear w-1r h-1r radius-extra h-100 bg-white",{"mn-r-auto":!(Array.isArray(e.radio)?e.radio.includes(e.value):e.radio),"mn-l-auto":Array.isArray(e.radio)?e.radio.includes(e.value):e.radio}])},null,2)],2)]))}},oe=f._export_sfc(re,[["__scopeId","data-v-f641f618"]]);function y(e){return e===0?!1:Array.isArray(e)&&e.length===0?!0:!e}function ue(e){return(...i)=>!e(...i)}function de(e,i){return e===void 0&&(e="undefined"),e===null&&(e="null"),e===!1&&(e="false"),e.toString().toLowerCase().indexOf(i.trim())!==-1}function T(e,i,s,n){return i?e.filter(a=>de(n(a,s),i)).sort((a,o)=>n(a,s).length-n(o,s).length):e}function he(e){return e.filter(i=>!i.$isLabel)}function v(e,i){return s=>s.reduce((n,a)=>a[e]&&a[e].length?(n.push({$groupLabel:a[i],$isLabel:!0}),n.concat(a[e])):n,[])}function pe(e,i,s,n,a){return o=>o.map(l=>{if(!l[s])return console.warn("Options passed to vue-multiselect do not contain groups, despite the config."),[];const r=T(l[s],e,i,a);return r.length?{[n]:l[n],[s]:r}:[]})}const S=(...e)=>i=>e.reduce((s,n)=>n(s),i),ce={data(){return{search:"",isOpen:!1,preferredOpenDirection:"below",optimizedHeight:this.maxHeight}},props:{internalSearch:{type:Boolean,default:!0},options:{type:Array,required:!0},multiple:{type:Boolean,default:!1},trackBy:{type:String},label:{type:String},searchable:{type:Boolean,default:!0},clearOnSelect:{type:Boolean,default:!0},hideSelected:{type:Boolean,default:!1},placeholder:{type:String,default:"Select option"},allowEmpty:{type:Boolean,default:!0},resetAfter:{type:Boolean,default:!1},closeOnSelect:{type:Boolean,default:!0},customLabel:{type:Function,default(e,i){return y(e)?"":i?e[i]:e}},taggable:{type:Boolean,default:!1},tagPlaceholder:{type:String,default:"Press enter to create a tag"},tagPosition:{type:String,default:"top"},max:{type:[Number,Boolean],default:!1},id:{default:null},optionsLimit:{type:Number,default:1e3},groupValues:{type:String},groupLabel:{type:String},groupSelect:{type:Boolean,default:!1},blockKeys:{type:Array,default(){return[]}},preserveSearch:{type:Boolean,default:!1},preselectFirst:{type:Boolean,default:!1},preventAutofocus:{type:Boolean,default:!1}},mounted(){!this.multiple&&this.max&&console.warn("[Vue-Multiselect warn]: Max prop should not be used when prop Multiple equals false."),this.preselectFirst&&!this.internalValue.length&&this.options.length&&this.select(this.filteredOptions[0])},computed:{internalValue(){return this.modelValue||this.modelValue===0?Array.isArray(this.modelValue)?this.modelValue:[this.modelValue]:[]},filteredOptions(){const e=this.search||"",i=e.toLowerCase().trim();let s=this.options.concat();return this.internalSearch?s=this.groupValues?this.filterAndFlat(s,i,this.label):T(s,i,this.label,this.customLabel):s=this.groupValues?v(this.groupValues,this.groupLabel)(s):s,s=this.hideSelected?s.filter(ue(this.isSelected)):s,this.taggable&&i.length&&!this.isExistingOption(i)&&(this.tagPosition==="bottom"?s.push({isTag:!0,label:e}):s.unshift({isTag:!0,label:e})),s.slice(0,this.optionsLimit)},valueKeys(){return this.trackBy?this.internalValue.map(e=>e[this.trackBy]):this.internalValue},optionKeys(){return(this.groupValues?this.flatAndStrip(this.options):this.options).map(i=>this.customLabel(i,this.label).toString().toLowerCase())},currentOptionLabel(){return this.multiple?this.searchable?"":this.placeholder:this.internalValue.length?this.getOptionLabel(this.internalValue[0]):this.searchable?"":this.placeholder}},watch:{internalValue:{handler(){this.resetAfter&&this.internalValue.length&&(this.search="",this.$emit("update:modelValue",this.multiple?[]:null))},deep:!0},search(){this.$emit("search-change",this.search)}},emits:["open","search-change","close","select","update:modelValue","remove","tag"],methods:{getValue(){return this.multiple?this.internalValue:this.internalValue.length===0?null:this.internalValue[0]},filterAndFlat(e,i,s){return S(pe(i,s,this.groupValues,this.groupLabel,this.customLabel),v(this.groupValues,this.groupLabel))(e)},flatAndStrip(e){return S(v(this.groupValues,this.groupLabel),he)(e)},updateSearch(e){this.search=e},isExistingOption(e){return this.options?this.optionKeys.indexOf(e)>-1:!1},isSelected(e){const i=this.trackBy?e[this.trackBy]:e;return this.valueKeys.indexOf(i)>-1},isOptionDisabled(e){return!!e.$isDisabled},getOptionLabel(e){if(y(e))return"";if(e.isTag)return e.label;if(e.$isLabel)return e.$groupLabel;const i=this.customLabel(e,this.label);return y(i)?"":i},select(e,i){if(e.$isLabel&&this.groupSelect){this.selectGroup(e);return}if(!(this.blockKeys.indexOf(i)!==-1||this.disabled||e.$isDisabled||e.$isLabel)&&!(this.max&&this.multiple&&this.internalValue.length===this.max)&&!(i==="Tab"&&!this.pointerDirty)){if(e.isTag)this.$emit("tag",e.label,this.id),this.search="",this.closeOnSelect&&!this.multiple&&this.deactivate();else{if(this.isSelected(e)){i!=="Tab"&&this.removeElement(e);return}this.multiple?this.$emit("update:modelValue",this.internalValue.concat([e])):this.$emit("update:modelValue",e),this.$emit("select",e,this.id),this.clearOnSelect&&(this.search="")}this.closeOnSelect&&this.deactivate()}},selectGroup(e){const i=this.options.find(s=>s[this.groupLabel]===e.$groupLabel);if(i){if(this.wholeGroupSelected(i)){this.$emit("remove",i[this.groupValues],this.id);const s=this.internalValue.filter(n=>i[this.groupValues].indexOf(n)===-1);this.$emit("update:modelValue",s)}else{let s=i[this.groupValues].filter(n=>!(this.isOptionDisabled(n)||this.isSelected(n)));this.max&&s.splice(this.max-this.internalValue.length),this.$emit("select",s,this.id),this.$emit("update:modelValue",this.internalValue.concat(s))}this.closeOnSelect&&this.deactivate()}},wholeGroupSelected(e){return e[this.groupValues].every(i=>this.isSelected(i)||this.isOptionDisabled(i))},wholeGroupDisabled(e){return e[this.groupValues].every(this.isOptionDisabled)},removeElement(e,i=!0){if(this.disabled||e.$isDisabled)return;if(!this.allowEmpty&&this.internalValue.length<=1){this.deactivate();return}const s=typeof e=="object"?this.valueKeys.indexOf(e[this.trackBy]):this.valueKeys.indexOf(e);if(this.multiple){const n=this.internalValue.slice(0,s).concat(this.internalValue.slice(s+1));this.$emit("update:modelValue",n)}else this.$emit("update:modelValue",null);this.$emit("remove",e,this.id),this.closeOnSelect&&i&&this.deactivate()},removeLastElement(){this.blockKeys.indexOf("Delete")===-1&&this.search.length===0&&Array.isArray(this.internalValue)&&this.internalValue.length&&this.removeElement(this.internalValue[this.internalValue.length-1],!1)},activate(){this.isOpen||this.disabled||(this.adjustPosition(),this.groupValues&&this.pointer===0&&this.filteredOptions.length&&(this.pointer=1),this.isOpen=!0,this.searchable?(this.preserveSearch||(this.search=""),this.preventAutofocus||this.$nextTick(()=>this.$refs.search&&this.$refs.search.focus())):this.preventAutofocus||typeof this.$el<"u"&&this.$el.focus(),this.$emit("open",this.id))},deactivate(){this.isOpen&&(this.isOpen=!1,this.searchable?typeof this.$refs.search<"u"&&this.$refs.search.blur():typeof this.$el<"u"&&this.$el.blur(),this.preserveSearch||(this.search=""),this.$emit("close",this.getValue(),this.id))},toggle(){this.isOpen?this.deactivate():this.activate()},adjustPosition(){if(typeof window>"u")return;const e=this.$el.getBoundingClientRect().top,i=window.innerHeight-this.$el.getBoundingClientRect().bottom;i>this.maxHeight||i>e||this.openDirection==="below"||this.openDirection==="bottom"?(this.preferredOpenDirection="below",this.optimizedHeight=Math.min(i-40,this.maxHeight)):(this.preferredOpenDirection="above",this.optimizedHeight=Math.min(e-40,this.maxHeight))}}},me={data(){return{pointer:0,pointerDirty:!1}},props:{showPointer:{type:Boolean,default:!0},optionHeight:{type:Number,default:40}},computed:{pointerPosition(){return this.pointer*this.optionHeight},visibleElements(){return this.optimizedHeight/this.optionHeight}},watch:{filteredOptions(){this.pointerAdjust()},isOpen(){this.pointerDirty=!1},pointer(){this.$refs.search&&this.$refs.search.setAttribute("aria-activedescendant",this.id+"-"+this.pointer.toString())}},methods:{optionHighlight(e,i){return{"multiselect__option--highlight":e===this.pointer&&this.showPointer,"multiselect__option--selected":this.isSelected(i)}},groupHighlight(e,i){if(!this.groupSelect)return["multiselect__option--disabled",{"multiselect__option--group":i.$isLabel}];const s=this.options.find(n=>n[this.groupLabel]===i.$groupLabel);return s&&!this.wholeGroupDisabled(s)?["multiselect__option--group",{"multiselect__option--highlight":e===this.pointer&&this.showPointer},{"multiselect__option--group-selected":this.wholeGroupSelected(s)}]:"multiselect__option--disabled"},addPointerElement({key:e}="Enter"){this.filteredOptions.length>0&&this.select(this.filteredOptions[this.pointer],e),this.pointerReset()},pointerForward(){this.pointer<this.filteredOptions.length-1&&(this.pointer++,this.$refs.list.scrollTop<=this.pointerPosition-(this.visibleElements-1)*this.optionHeight&&(this.$refs.list.scrollTop=this.pointerPosition-(this.visibleElements-1)*this.optionHeight),this.filteredOptions[this.pointer]&&this.filteredOptions[this.pointer].$isLabel&&!this.groupSelect&&this.pointerForward()),this.pointerDirty=!0},pointerBackward(){this.pointer>0?(this.pointer--,this.$refs.list.scrollTop>=this.pointerPosition&&(this.$refs.list.scrollTop=this.pointerPosition),this.filteredOptions[this.pointer]&&this.filteredOptions[this.pointer].$isLabel&&!this.groupSelect&&this.pointerBackward()):this.filteredOptions[this.pointer]&&this.filteredOptions[0].$isLabel&&!this.groupSelect&&this.pointerForward(),this.pointerDirty=!0},pointerReset(){this.closeOnSelect&&(this.pointer=0,this.$refs.list&&(this.$refs.list.scrollTop=0))},pointerAdjust(){this.pointer>=this.filteredOptions.length-1&&(this.pointer=this.filteredOptions.length?this.filteredOptions.length-1:0),this.filteredOptions.length>0&&this.filteredOptions[this.pointer].$isLabel&&!this.groupSelect&&this.pointerForward()},pointerSet(e){this.pointer=e,this.pointerDirty=!0}}};const fe={name:"vue-multiselect",mixins:[ce,me],compatConfig:{MODE:3,ATTR_ENUMERATED_COERCION:!1},props:{name:{type:String,default:""},modelValue:{type:null,default(){return[]}},selectLabel:{type:String,default:"Press enter to select"},selectGroupLabel:{type:String,default:"Press enter to select group"},selectedLabel:{type:String,default:"Selected"},deselectLabel:{type:String,default:"Press enter to remove"},deselectGroupLabel:{type:String,default:"Press enter to deselect group"},showLabels:{type:Boolean,default:!0},limit:{type:Number,default:99999},maxHeight:{type:Number,default:300},limitText:{type:Function,default:e=>`and ${e} more`},loading:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},openDirection:{type:String,default:""},showNoOptions:{type:Boolean,default:!0},showNoResults:{type:Boolean,default:!0},tabindex:{type:Number,default:0}},computed:{hasOptionGroup(){return this.groupValues&&this.groupLabel&&this.groupSelect},isSingleLabelVisible(){return(this.singleValue||this.singleValue===0)&&(!this.isOpen||!this.searchable)&&!this.visibleValues.length},isPlaceholderVisible(){return!this.internalValue.length&&(!this.searchable||!this.isOpen)},visibleValues(){return this.multiple?this.internalValue.slice(0,this.limit):[]},singleValue(){return this.internalValue[0]},deselectLabelText(){return this.showLabels?this.deselectLabel:""},deselectGroupLabelText(){return this.showLabels?this.deselectGroupLabel:""},selectLabelText(){return this.showLabels?this.selectLabel:""},selectGroupLabelText(){return this.showLabels?this.selectGroupLabel:""},selectedLabelText(){return this.showLabels?this.selectedLabel:""},inputStyle(){return this.searchable||this.multiple&&this.modelValue&&this.modelValue.length?this.isOpen?{width:"100%"}:{width:"0",position:"absolute",padding:"0"}:""},contentStyle(){return this.options.length?{display:"inline-block"}:{display:"block"}},isAbove(){return this.openDirection==="above"||this.openDirection==="top"?!0:this.openDirection==="below"||this.openDirection==="bottom"?!1:this.preferredOpenDirection==="above"},showSearchInput(){return this.searchable&&(this.hasSingleSelectedSlot&&(this.visibleSingleValue||this.visibleSingleValue===0)?this.isOpen:!0)}}},ge=["tabindex","aria-owns"],ye={ref:"tags",class:"multiselect__tags"},ve={class:"multiselect__tags-wrap"},be=["textContent"],we=["onKeypress","onMousedown"],Se=["textContent"],ke={class:"multiselect__spinner"},Te=["name","id","placeholder","value","disabled","tabindex","aria-controls"],Ee=["id"],Ve={key:0},$e={class:"multiselect__option"},Oe=["id","role"],Be=["onClick","onMouseenter","data-select","data-selected","data-deselect"],Ce=["data-select","data-deselect","onMouseenter","onMousedown"],De={class:"multiselect__option"},Le={class:"multiselect__option"};function Ae(e,i,s,n,a,o){return t.openBlock(),t.createElementBlock("div",{tabindex:e.searchable?-1:s.tabindex,class:t.normalizeClass([{"multiselect--active":e.isOpen,"multiselect--disabled":s.disabled,"multiselect--above":o.isAbove,"multiselect--has-options-group":o.hasOptionGroup},"multiselect"]),onFocus:i[13]||(i[13]=l=>e.activate()),onBlur:i[14]||(i[14]=l=>e.searchable?!1:e.deactivate()),onKeydown:[i[15]||(i[15]=t.withKeys(t.withModifiers(l=>e.pointerForward(),["self","prevent"]),["down"])),i[16]||(i[16]=t.withKeys(t.withModifiers(l=>e.pointerBackward(),["self","prevent"]),["up"]))],onKeypress:i[17]||(i[17]=t.withKeys(t.withModifiers(l=>e.addPointerElement(l),["stop","self"]),["enter","tab"])),onKeyup:i[18]||(i[18]=t.withKeys(l=>e.deactivate(),["esc"])),role:"combobox","aria-owns":"listbox-"+e.id},[t.renderSlot(e.$slots,"caret",{toggle:e.toggle},()=>[t.createElementVNode("div",{onMousedown:i[0]||(i[0]=t.withModifiers(l=>e.toggle(),["prevent","stop"])),class:"multiselect__select"},null,32)]),t.renderSlot(e.$slots,"clear",{search:e.search}),t.createElementVNode("div",ye,[t.renderSlot(e.$slots,"selection",{search:e.search,remove:e.removeElement,values:o.visibleValues,isOpen:e.isOpen},()=>[t.withDirectives(t.createElementVNode("div",ve,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(o.visibleValues,(l,r)=>t.renderSlot(e.$slots,"tag",{option:l,search:e.search,remove:e.removeElement},()=>[(t.openBlock(),t.createElementBlock("span",{class:"multiselect__tag",key:r},[t.createElementVNode("span",{textContent:t.toDisplayString(e.getOptionLabel(l))},null,8,be),t.createElementVNode("i",{tabindex:"1",onKeypress:t.withKeys(t.withModifiers(u=>e.removeElement(l),["prevent"]),["enter"]),onMousedown:t.withModifiers(u=>e.removeElement(l),["prevent"]),class:"multiselect__tag-icon"},null,40,we)]))])),256))],512),[[t.vShow,o.visibleValues.length>0]]),e.internalValue&&e.internalValue.length>s.limit?t.renderSlot(e.$slots,"limit",{key:0},()=>[t.createElementVNode("strong",{class:"multiselect__strong",textContent:t.toDisplayString(s.limitText(e.internalValue.length-s.limit))},null,8,Se)]):t.createCommentVNode("",!0)]),t.createVNode(t.Transition,{name:"multiselect__loading"},{default:t.withCtx(()=>[t.renderSlot(e.$slots,"loading",{},()=>[t.withDirectives(t.createElementVNode("div",ke,null,512),[[t.vShow,s.loading]])])]),_:3}),e.searchable?(t.openBlock(),t.createElementBlock("input",{key:0,ref:"search",name:s.name,id:e.id,type:"text",autocomplete:"off",spellcheck:"false",placeholder:e.placeholder,style:t.normalizeStyle(o.inputStyle),value:e.search,disabled:s.disabled,tabindex:s.tabindex,onInput:i[1]||(i[1]=l=>e.updateSearch(l.target.value)),onFocus:i[2]||(i[2]=t.withModifiers(l=>e.activate(),["prevent"])),onBlur:i[3]||(i[3]=t.withModifiers(l=>e.deactivate(),["prevent"])),onKeyup:i[4]||(i[4]=t.withKeys(l=>e.deactivate(),["esc"])),onKeydown:[i[5]||(i[5]=t.withKeys(t.withModifiers(l=>e.pointerForward(),["prevent"]),["down"])),i[6]||(i[6]=t.withKeys(t.withModifiers(l=>e.pointerBackward(),["prevent"]),["up"])),i[8]||(i[8]=t.withKeys(t.withModifiers(l=>e.removeLastElement(),["stop"]),["delete"]))],onKeypress:i[7]||(i[7]=t.withKeys(t.withModifiers(l=>e.addPointerElement(l),["prevent","stop","self"]),["enter"])),class:"multiselect__input","aria-controls":"listbox-"+e.id},null,44,Te)):t.createCommentVNode("",!0),o.isSingleLabelVisible?(t.openBlock(),t.createElementBlock("span",{key:1,class:"multiselect__single",onMousedown:i[9]||(i[9]=t.withModifiers((...l)=>e.toggle&&e.toggle(...l),["prevent"]))},[t.renderSlot(e.$slots,"singleLabel",{option:o.singleValue},()=>[t.createTextVNode(t.toDisplayString(e.currentOptionLabel),1)])],32)):t.createCommentVNode("",!0),o.isPlaceholderVisible?(t.openBlock(),t.createElementBlock("span",{key:2,class:"multiselect__placeholder",onMousedown:i[10]||(i[10]=t.withModifiers((...l)=>e.toggle&&e.toggle(...l),["prevent"]))},[t.renderSlot(e.$slots,"placeholder",{},()=>[t.createTextVNode(t.toDisplayString(e.placeholder),1)])],32)):t.createCommentVNode("",!0)],512),t.createVNode(t.Transition,{name:"multiselect"},{default:t.withCtx(()=>[t.withDirectives(t.createElementVNode("div",{class:t.normalizeClass(["multiselect__content-wrapper",e.$attrs.class]),onFocus:i[11]||(i[11]=(...l)=>e.activate&&e.activate(...l)),tabindex:"-1",onMousedown:i[12]||(i[12]=t.withModifiers(()=>{},["prevent"])),style:t.normalizeStyle({maxHeight:e.optimizedHeight+"px"}),ref:"list"},[t.createElementVNode("ul",{class:"multiselect__content",style:t.normalizeStyle(o.contentStyle),role:"listbox",id:"listbox-"+e.id},[t.renderSlot(e.$slots,"beforeList"),e.multiple&&e.max===e.internalValue.length?(t.openBlock(),t.createElementBlock("li",Ve,[t.createElementVNode("span",$e,[t.renderSlot(e.$slots,"maxElements",{},()=>[t.createTextVNode("Maximum of "+t.toDisplayString(e.max)+" options selected. First remove a selected option to select another.",1)])])])):t.createCommentVNode("",!0),!e.max||e.internalValue.length<e.max?(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:1},t.renderList(e.filteredOptions,(l,r)=>(t.openBlock(),t.createElementBlock("li",{class:"multiselect__element",key:r,id:e.id+"-"+r,role:l&&(l.$isLabel||l.$isDisabled)?null:"option"},[l&&(l.$isLabel||l.$isDisabled)?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("span",{key:0,class:t.normalizeClass([e.optionHighlight(r,l),"multiselect__option"]),onClick:t.withModifiers(u=>e.select(l),["stop"]),onMouseenter:t.withModifiers(u=>e.pointerSet(r),["self"]),"data-select":l&&l.isTag?e.tagPlaceholder:o.selectLabelText,"data-selected":o.selectedLabelText,"data-deselect":o.deselectLabelText},[t.renderSlot(e.$slots,"option",{option:l,search:e.search,index:r},()=>[t.createElementVNode("span",null,t.toDisplayString(e.getOptionLabel(l)),1)])],42,Be)),l&&(l.$isLabel||l.$isDisabled)?(t.openBlock(),t.createElementBlock("span",{key:1,"data-select":e.groupSelect&&o.selectGroupLabelText,"data-deselect":e.groupSelect&&o.deselectGroupLabelText,class:t.normalizeClass([e.groupHighlight(r,l),"multiselect__option"]),onMouseenter:t.withModifiers(u=>e.groupSelect&&e.pointerSet(r),["self"]),onMousedown:t.withModifiers(u=>e.selectGroup(l),["prevent"])},[t.renderSlot(e.$slots,"option",{option:l,search:e.search,index:r},()=>[t.createElementVNode("span",null,t.toDisplayString(e.getOptionLabel(l)),1)])],42,Ce)):t.createCommentVNode("",!0)],8,Oe))),128)):t.createCommentVNode("",!0),t.withDirectives(t.createElementVNode("li",null,[t.createElementVNode("span",De,[t.renderSlot(e.$slots,"noResult",{search:e.search},()=>[t.createTextVNode("No elements found. Consider changing the search query.")])])],512),[[t.vShow,s.showNoResults&&e.filteredOptions.length===0&&e.search&&!s.loading]]),t.withDirectives(t.createElementVNode("li",null,[t.createElementVNode("span",Le,[t.renderSlot(e.$slots,"noOptions",{},()=>[t.createTextVNode("List is empty.")])])],512),[[t.vShow,s.showNoOptions&&(e.options.length===0||o.hasOptionGroup===!0&&e.filteredOptions.length===0)&&!e.search&&!s.loading]]),t.renderSlot(e.$slots,"afterList")],12,Ee)],38),[[t.vShow,e.isOpen]])]),_:3})],42,ge)}const Ne=f._export_sfc(fe,[["render",Ae]]);exports.Checkbox=oe;exports.SelectMulti=Ne;exports._sfc_main=se;
@@ -1,219 +0,0 @@
1
- import { getCurrentInstance as x, isProxy as M, watch as P, defineComponent as B, ref as y, computed as L, openBlock as l, createElementBlock as o, Fragment as w, createElementVNode as m, normalizeClass as _, toDisplayString as f, createCommentVNode as p, withModifiers as $, createVNode as b, Transition as k, withCtx as j, renderList as A, unref as E, reactive as I } from "vue";
2
- import "./Select.vue_vue_type_style_index_0_scoped_a78dbba1_lang-4ed993c7.mjs";
3
- import { _ as N, a as O } from "./auth-f81f3598.mjs";
4
- import { s } from "./globals-f538c0ef.mjs";
5
- /**
6
- * vue-meta v3.0.0-alpha.10
7
- * (c) 2022
8
- * - Pim (@pimlie)
9
- * - All the amazing contributors
10
- * @license MIT
11
- */
12
- const R = (e) => e !== null && typeof e == "object";
13
- function C(e, t, r) {
14
- for (const a in t)
15
- a in r ? R(e[a]) ? C(e[a], t[a], r[a]) : t[a] !== r[a] && (e[a] = t[a]) : e[a] = t[a];
16
- for (const a in r)
17
- t && a in t || delete e[a];
18
- }
19
- function S(e) {
20
- if (e || (e = x() || void 0), e)
21
- return e.appContext.config.globalProperties.$metaManager;
22
- }
23
- function X(e, t) {
24
- const r = x() || void 0;
25
- if (!t && r && (t = S(r)), !t)
26
- throw new Error("No manager or current instance");
27
- M(e) && (P(e, (u, g) => {
28
- C(a.meta, u, g);
29
- }), e = e.value);
30
- const a = t.addMeta(e, r);
31
- return a;
32
- }
33
- B({ name: "Metainfo", inheritAttrs: !1, setup: (e, { slots: t }) => () => {
34
- const r = S();
35
- if (r)
36
- return r.render({ slots: t });
37
- } });
38
- const V = {
39
- key: 0,
40
- class: "t-transp mn-r-small"
41
- }, q = ["onClick"], T = ["onClick"], U = {
42
- key: 0,
43
- class: "mn-t-thin invalid-feedback"
44
- }, D = {
45
- __name: "Select",
46
- props: {
47
- label: String,
48
- select: [String, Object],
49
- placeholder: { type: String, default: "Please select an item" },
50
- options: { type: Array, default: () => [] },
51
- validation: Boolean
52
- },
53
- emits: ["update:select", "focus", "blur"],
54
- setup(e, { emit: t }) {
55
- const r = e, a = y(r.select), u = y(!1);
56
- P(() => r.select, (i) => {
57
- a.value = i;
58
- });
59
- const g = L(() => r.select ? r.options.filter((i) => i !== r.select) : r.options), v = () => {
60
- u.value = !u.value, t(u.value ? "focus" : "blur");
61
- }, z = (i) => {
62
- a.value = i, v(), t("update:select", a.value);
63
- };
64
- return (i, G) => {
65
- var h;
66
- return l(), o(w, null, [
67
- m("div", {
68
- class: _([i.$attrs.class, "flex-nowrap flex"])
69
- }, [
70
- e.label ? (l(), o("div", V, [
71
- m("span", null, f(e.label), 1)
72
- ])) : p("", !0),
73
- m("li", {
74
- onClick: $(v, ["stop"]),
75
- class: "w-100"
76
- }, [
77
- m("span", null, f(((h = a.value) == null ? void 0 : h.name) || a.value || e.placeholder), 1)
78
- ], 8, q),
79
- b(k, {
80
- mode: "out-in",
81
- name: "fade"
82
- }, {
83
- default: j(() => [
84
- u.value ? (l(), o("ul", {
85
- key: 0,
86
- class: _([i.$attrs.class, "pos-absolute pos-l-0 z-index-5 w-100 mn-t-big"])
87
- }, [
88
- (l(!0), o(w, null, A(E(g), (d) => (l(), o("li", null, [
89
- d ? (l(), o("span", {
90
- key: 0,
91
- onClick: (H) => z(d),
92
- class: "w-100"
93
- }, f(d.name || d), 9, T)) : p("", !0)
94
- ]))), 256))
95
- ], 2)) : p("", !0)
96
- ]),
97
- _: 1
98
- })
99
- ], 2),
100
- b(k, {
101
- mode: "out-in",
102
- name: "fade"
103
- }, {
104
- default: j(() => [
105
- e.validation ? (l(), o("div", U, " * " + f(e.validation.message), 1)) : p("", !0)
106
- ]),
107
- _: 1
108
- })
109
- ], 64);
110
- };
111
- }
112
- }, Y = /* @__PURE__ */ N(D, [["__scopeId", "data-v-a78dbba1"]]), c = O.create({ baseURL: process.env.API_URL, withCredentials: !0 }), n = I({
113
- all: [],
114
- current: {
115
- recommendation: !1,
116
- category: [],
117
- status: "unpublished",
118
- information: [],
119
- coverImage: "",
120
- images: [],
121
- files: [],
122
- image3d: !1,
123
- name: "",
124
- sale: 0,
125
- price: 0,
126
- localization: [],
127
- modifications: [],
128
- description: ""
129
- }
130
- }), Z = {
131
- async create(e, t) {
132
- const r = {
133
- ...t,
134
- organization: e
135
- };
136
- return await c.post("/products/create", r).then(
137
- (a) => (F(a.data, "current"), Promise.resolve(a.data)),
138
- (a) => (s(a), Promise.reject(a))
139
- );
140
- },
141
- async read(e = {}) {
142
- e._id && (e.params = { _id: e._id }), e.category && (e.params = e.params || {}, e.params.category = e.category), e.params = e.params || {}, e.params.skip = e.skip || 0, e.params.limit = e.limit || 10, e.organization && (e.params.organization = e.organization), e.params.sort = "createdAt";
143
- try {
144
- console.log("Request params:" + e.params);
145
- const t = await c.get("/products/read", { params: e.params });
146
- return e._id ? n.current = t.data[0] : n.all = t.data, Promise.resolve(t.data);
147
- } catch (t) {
148
- return s(t), Promise.reject(t);
149
- }
150
- },
151
- async update(e, t) {
152
- return await c.post("/products/" + e, t).then(
153
- (r) => Promise.resolve(r.data),
154
- (r) => (s(r), Promise.reject(r))
155
- );
156
- },
157
- async deleteProduct(e) {
158
- return await c.delete("/products/" + e).then(
159
- (t) => Promise.resolve(t.data),
160
- (t) => (s(t), Promise.reject(t))
161
- );
162
- },
163
- async submitMood(e = null) {
164
- return console.log(e), c.post("/product/recommended", { mood: e }).then(
165
- (t) => (n.current = t.data.product, n.current.recommendation = t.data.recommendationText, Promise.resolve(t.data)),
166
- (t) => (console.log(t), s(t), Promise.reject(t))
167
- );
168
- },
169
- async fetchProducts() {
170
- return await c.get("/products").then(
171
- (e) => (n.all = e.data, n.filtered = e.data.slice(), n.filteredPrice = n.filtered, n.filteredPrice.sort(function(t, r) {
172
- return t[n.sort.current] > r[n.sort.current] ? n.sort.ascending ? 1 : -1 : t[n.sort.current] < r[n.sort.current] ? n.sort.ascending ? -1 : 1 : 0;
173
- }), Promise.resolve(e.data)),
174
- (e) => (s(e), Promise.reject(e))
175
- );
176
- },
177
- async fetchProductsPopular() {
178
- return await c.get("/products/popular").then(
179
- (e) => (n.popular = e.data, Promise.resolve(e.data)),
180
- (e) => (s(e), Promise.reject(e))
181
- );
182
- },
183
- async fetchProductsPublished() {
184
- return await c.get("/products").then(
185
- (e) => {
186
- let t = e.data.filter(function(r, a) {
187
- return r.status !== "unpublished";
188
- });
189
- return n.all = t, n.filtered = t.slice(), n.filteredPrice = n.filtered, n.filteredPrice.sort(function(r, a) {
190
- return r[n.sort.current] > a[n.sort.current] ? n.sort.ascending ? 1 : -1 : r[n.sort.current] < a[n.sort.current] ? n.sort.ascending ? -1 : 1 : 0;
191
- }), Promise.resolve(e.data);
192
- },
193
- (e) => (s(e), Promise.reject(e))
194
- );
195
- },
196
- async fetchProduct(e) {
197
- return await c.get("/products/" + e).then(
198
- (t) => (t.localization || (t.localization = []), n.current = t.data, Promise.resolve(t.data)),
199
- (t) => (s(t), Promise.reject(t))
200
- );
201
- },
202
- async fetchProductPopular() {
203
- return await c.get("/products").then(
204
- (e) => (n.all = e.data.slice(1, 5), Promise.resolve(e.data.slice(1, 5))),
205
- (e) => (s(e), Promise.reject(e))
206
- );
207
- }
208
- };
209
- function F(e, t) {
210
- n[t] = e;
211
- }
212
- P(n, (e, t) => {
213
- });
214
- export {
215
- X as B,
216
- Y as S,
217
- Z as a,
218
- n as s
219
- };
@@ -1,80 +0,0 @@
1
- import { ref as p, watch as w, computed as S, openBlock as t, createElementBlock as l, Fragment as v, createElementVNode as i, normalizeClass as f, toDisplayString as u, createCommentVNode as r, withModifiers as x, createVNode as b, Transition as h, withCtx as y, renderList as C, unref as B } from "vue";
2
- import { _ as M } from "./auth-708eebcb.mjs";
3
- const N = {
4
- key: 0,
5
- class: "t-transp mn-r-small"
6
- }, O = ["onClick"], V = ["onClick"], $ = {
7
- key: 0,
8
- class: "mn-t-thin invalid-feedback"
9
- }, z = {
10
- __name: "Select",
11
- props: {
12
- label: String,
13
- select: [String, Object],
14
- placeholder: { type: String, default: "Please select an item" },
15
- options: { type: Array, default: () => [] },
16
- validation: Boolean
17
- },
18
- emits: ["update:select", "focus", "blur"],
19
- setup(a, { emit: d }) {
20
- const s = a, n = p(s.select), o = p(!1);
21
- w(() => s.select, (e) => {
22
- n.value = e;
23
- });
24
- const g = S(() => s.select ? s.options.filter((e) => e !== s.select) : s.options), m = () => {
25
- o.value = !o.value, d(o.value ? "focus" : "blur");
26
- }, k = (e) => {
27
- n.value = e, m(), d("update:select", n.value);
28
- };
29
- return (e, E) => {
30
- var _;
31
- return t(), l(v, null, [
32
- i("div", {
33
- class: f([e.$attrs.class, "flex-nowrap flex"])
34
- }, [
35
- a.label ? (t(), l("div", N, [
36
- i("span", null, u(a.label), 1)
37
- ])) : r("", !0),
38
- i("li", {
39
- onClick: x(m, ["stop"]),
40
- class: "w-100"
41
- }, [
42
- i("span", null, u(((_ = n.value) == null ? void 0 : _.name) || n.value || a.placeholder), 1)
43
- ], 8, O),
44
- b(h, {
45
- mode: "out-in",
46
- name: "fade"
47
- }, {
48
- default: y(() => [
49
- o.value ? (t(), l("ul", {
50
- key: 0,
51
- class: f([e.$attrs.class, "pos-absolute pos-l-0 z-index-5 w-100 mn-t-big"])
52
- }, [
53
- (t(!0), l(v, null, C(B(g), (c) => (t(), l("li", null, [
54
- c ? (t(), l("span", {
55
- key: 0,
56
- onClick: (L) => k(c),
57
- class: "w-100"
58
- }, u(c.name || c), 9, V)) : r("", !0)
59
- ]))), 256))
60
- ], 2)) : r("", !0)
61
- ]),
62
- _: 1
63
- })
64
- ], 2),
65
- b(h, {
66
- mode: "out-in",
67
- name: "fade"
68
- }, {
69
- default: y(() => [
70
- a.validation ? (t(), l("div", $, " * " + u(a.validation.message), 1)) : r("", !0)
71
- ]),
72
- _: 1
73
- })
74
- ], 64);
75
- };
76
- }
77
- }, D = /* @__PURE__ */ M(z, [["__scopeId", "data-v-a78dbba1"]]);
78
- export {
79
- D as S
80
- };