@ozdao/prometheus-framework 0.1.62 → 0.1.66

Sign up to get free protection for your applications and to get access to all the features.
Files changed (249) hide show
  1. package/dist/BackofficeGallery-30022293.js +1 -0
  2. package/dist/BackofficeGallery-f64daa0d.mjs +264 -0
  3. package/dist/BackofficeReports-cb4b180d.mjs +44 -0
  4. package/dist/BackofficeReports-d021871f.js +1 -0
  5. package/dist/BlockTags-8cddaef7.js +1 -0
  6. package/dist/BlockTags-ee310572.mjs +853 -0
  7. package/dist/Breadcrumbs.vue_vue_type_style_index_0_lang-0ea8fbf8.js +1 -0
  8. package/dist/Breadcrumbs.vue_vue_type_style_index_0_lang-4ed993c7.mjs +1 -0
  9. package/dist/Button-7643c9aa.js +1 -0
  10. package/dist/Button-9e1a9284.mjs +226 -0
  11. package/dist/Button.vue_vue_type_style_index_0_lang-0ea8fbf8.js +1 -0
  12. package/dist/Button.vue_vue_type_style_index_0_lang-4ed993c7.mjs +1 -0
  13. package/dist/ButtonToggleMembership-7ee4dc8e.mjs +90 -0
  14. package/dist/ButtonToggleMembership-b9352cec.js +1 -0
  15. package/dist/CardBlogpost-3c92fbc9.mjs +246 -0
  16. package/dist/CardBlogpost-c7364b1e.js +1 -0
  17. package/dist/CardOrganization-647cb571.js +1 -0
  18. package/dist/CardOrganization-facb77f7.mjs +234 -0
  19. package/dist/CardProduct-92affca1.js +1 -0
  20. package/dist/CardProduct-fca53299.mjs +193 -0
  21. package/dist/Checkbox-5dbe7b23.mjs +62 -0
  22. package/dist/Checkbox-76f09248.js +1 -0
  23. package/dist/Chips-0fdb31c9.js +1 -0
  24. package/dist/Chips-f1a0d085.mjs +214 -0
  25. package/dist/Community-534d473c.mjs +132 -0
  26. package/dist/Community-e9aff969.js +1 -0
  27. package/dist/Dashboard-91d73bc5.js +1 -0
  28. package/dist/Dashboard-ea9035bc.mjs +152 -0
  29. package/dist/Dropdown-31115457.js +1 -0
  30. package/dist/Dropdown-cab3605b.mjs +146 -0
  31. package/dist/EULA-aba6a807.js +1 -0
  32. package/dist/EULA-e05236af.mjs +4210 -0
  33. package/dist/EditOrder-94bbebff.mjs +221 -0
  34. package/dist/EditOrder-c070d474.js +1 -0
  35. package/dist/EmptyState-d65bab5b.js +1 -0
  36. package/dist/EmptyState-e404b05d.mjs +36 -0
  37. package/dist/Events-46ae8fc6.mjs +123 -0
  38. package/dist/Events-813c8c7b.js +1 -0
  39. package/dist/Feed-2d443ad2.mjs +146 -0
  40. package/dist/Feed-3a4e7a9c.js +1 -0
  41. package/dist/Feed-8b554fc1.js +1 -0
  42. package/dist/Feed-98b47c6f.js +1 -0
  43. package/dist/Feed-a21d6007.mjs +124 -0
  44. package/dist/Feed-b39138c8.js +1 -0
  45. package/dist/Feed-c41ef736.mjs +361 -0
  46. package/dist/Feed-d114330c.mjs +112 -0
  47. package/dist/Field-e2a43424.js +1 -0
  48. package/dist/Field-e5ad88d3.mjs +75 -0
  49. package/dist/Field.vue_vue_type_style_index_0_scoped_f4a29b0d_lang-0ea8fbf8.js +1 -0
  50. package/dist/Field.vue_vue_type_style_index_0_scoped_f4a29b0d_lang-4ed993c7.mjs +1 -0
  51. package/dist/Gallery-46b5f939.js +1 -0
  52. package/dist/Gallery-762a9c2d.mjs +241 -0
  53. package/dist/IconChevronRight-a55f838e.js +1 -0
  54. package/dist/IconChevronRight-fae9d012.mjs +28 -0
  55. package/dist/IconCommunity-468dc457.mjs +65 -0
  56. package/dist/IconCommunity-b339e806.js +1 -0
  57. package/dist/IconCross-5bf93179.js +1 -0
  58. package/dist/IconCross-84cb1292.mjs +28 -0
  59. package/dist/IconEdit-9edfd74d.mjs +21 -0
  60. package/dist/IconEdit-c0469b45.js +1 -0
  61. package/dist/Image-4dcfddb8.js +9 -0
  62. package/dist/Image-e0da17ac.mjs +571 -0
  63. package/dist/LabelGooglePlay-24feb437.mjs +31 -0
  64. package/dist/LabelGooglePlay-f80e5ff0.js +1 -0
  65. package/dist/LeftoverAdd-5a8988d9.js +1 -0
  66. package/dist/LeftoverAdd-c4f37f47.mjs +227 -0
  67. package/dist/Leftovers-470a1689.js +1 -0
  68. package/dist/Leftovers-69c7dcd9.mjs +136 -0
  69. package/dist/Loader-21f016da.js +1 -0
  70. package/dist/Loader-cd422786.mjs +41 -0
  71. package/dist/Loader.vue_vue_type_style_index_0_lang-0ea8fbf8.js +1 -0
  72. package/dist/Loader.vue_vue_type_style_index_0_lang-4ed993c7.mjs +1 -0
  73. package/dist/Members-04273cd4.mjs +114 -0
  74. package/dist/Members-0685a15f.js +1 -0
  75. package/dist/Menu-b5d6a0c7.js +1 -0
  76. package/dist/Menu-dd7645c1.mjs +13 -0
  77. package/dist/MenuItem-56ae7f94.js +1 -0
  78. package/dist/MenuItem-6296d02f.mjs +63 -0
  79. package/dist/Orders-b64e8cb9.js +1 -0
  80. package/dist/Orders-ff30db05.mjs +75 -0
  81. package/dist/Organizations-46aab2c8.mjs +73 -0
  82. package/dist/Organizations-a8627bc5.js +1 -0
  83. package/dist/Payments-53e5fecf.js +1 -0
  84. package/dist/Payments-82e545e1.mjs +87 -0
  85. package/dist/PlaceholderUserpic-14c6ea7e.mjs +28 -0
  86. package/dist/PlaceholderUserpic-47f6f319.js +1 -0
  87. package/dist/Popup-0915427c.mjs +74 -0
  88. package/dist/Popup-795f5c88.js +1 -0
  89. package/dist/Popup.vue_vue_type_style_index_0_lang-0ea8fbf8.js +1 -0
  90. package/dist/Popup.vue_vue_type_style_index_0_lang-4ed993c7.mjs +1 -0
  91. package/dist/Product-7e001b81.js +7 -0
  92. package/dist/Product-f3f42158.mjs +653 -0
  93. package/dist/ProductEdit-959b3cd3.mjs +295 -0
  94. package/dist/ProductEdit-bae5e898.js +1 -0
  95. package/dist/ProductsBackoffice-0716123f.js +1 -0
  96. package/dist/ProductsBackoffice-a36ecbc6.mjs +85 -0
  97. package/dist/ProfileBlogposts-c790d1b2.js +1 -0
  98. package/dist/ProfileBlogposts-f43cf32e.mjs +79 -0
  99. package/dist/ProfileEvents-12f80fff.mjs +70 -0
  100. package/dist/ProfileEvents-585570a3.js +1 -0
  101. package/dist/ProfileOrganizations-bbc2cf40.mjs +73 -0
  102. package/dist/ProfileOrganizations-d7103514.js +1 -0
  103. package/dist/Publics-094f3c2c.mjs +45 -0
  104. package/dist/Publics-1032c0f4.js +1 -0
  105. package/dist/Select-11ddabf5.mjs +79 -0
  106. package/dist/Select-3ca5ab39.js +1 -0
  107. package/dist/SelectMulti-58704d69.mjs +1038 -0
  108. package/dist/SelectMulti-c25765cf.js +1 -0
  109. package/dist/SkeletonBlogpost-95db0fa9.js +1 -0
  110. package/dist/SkeletonBlogpost-e0621af7.mjs +16 -0
  111. package/dist/SkeletonEvent-8690422d.mjs +16 -0
  112. package/dist/SkeletonEvent-eb284de8.js +1 -0
  113. package/dist/SkeletonEventShort-6c9e3940.js +1 -0
  114. package/dist/SkeletonEventShort-f030e56f.mjs +16 -0
  115. package/dist/SkeletonOrganization-5c09cfc5.js +1 -0
  116. package/dist/SkeletonOrganization-8690422d.mjs +16 -0
  117. package/dist/Socials-31c06635.mjs +74 -0
  118. package/dist/Socials-cceaeaf2.js +1 -0
  119. package/dist/Tab-054b61f7.mjs +46 -0
  120. package/dist/Tab-2c1e4224.js +1 -0
  121. package/dist/Tab.vue_vue_type_style_index_0_lang-0ea8fbf8.js +1 -0
  122. package/dist/Tab.vue_vue_type_style_index_0_lang-4ed993c7.mjs +1 -0
  123. package/dist/Upload-06d93178.js +1 -0
  124. package/dist/Upload-23212d9d.mjs +74 -0
  125. package/dist/UploadImage-0f488170.js +1 -0
  126. package/dist/UploadImage-3c627d89.mjs +83 -0
  127. package/dist/UploadImageMultiple-cb6c7188.mjs +58 -0
  128. package/dist/UploadImageMultiple-eddaac87.js +1 -0
  129. package/dist/Wallet-2043b611.mjs +24682 -0
  130. package/dist/Wallet-8fa7386a.js +55 -0
  131. package/dist/_plugin-vue_export-helper-dad06003.mjs +9 -0
  132. package/dist/_plugin-vue_export-helper-f246444f.js +1 -0
  133. package/dist/auth-56dc2ba7.mjs +607 -0
  134. package/dist/auth-f018f5b3.js +7 -0
  135. package/dist/auth.client.cjs +7 -0
  136. package/dist/auth.client.js +3874 -0
  137. package/dist/auth.validation-c31a60e7.mjs +24 -0
  138. package/dist/auth.validation-d049b341.js +1 -0
  139. package/dist/backoffice.client.cjs +1 -0
  140. package/dist/backoffice.client.js +265 -0
  141. package/dist/carousel.es-44c501bc.mjs +383 -0
  142. package/dist/carousel.es-cdfb392c.js +5 -0
  143. package/dist/categories-5b08da53.mjs +121 -0
  144. package/dist/categories-7ccd6be9.js +1 -0
  145. package/dist/click-outside-0b0727d1.js +2 -0
  146. package/dist/click-outside-6101836c.mjs +19 -0
  147. package/dist/community.client.cjs +1 -0
  148. package/dist/community.client.js +692 -0
  149. package/dist/dribbble-8e8e169b.js +1 -0
  150. package/dist/dribbble-ae37c2ac.mjs +127 -0
  151. package/dist/events.client.cjs +2 -0
  152. package/dist/events.client.js +8885 -0
  153. package/dist/files.client.cjs +1 -0
  154. package/dist/files.client.js +1 -0
  155. package/dist/gallery-d4297191.mjs +54 -0
  156. package/dist/gallery-f92912df.js +1 -0
  157. package/dist/gallery.client.cjs +1 -0
  158. package/dist/gallery.client.js +18 -0
  159. package/dist/globals-928eb13c.js +1 -0
  160. package/dist/globals-96ba60e4.mjs +91 -0
  161. package/dist/globals.client.cjs +1 -0
  162. package/dist/globals.client.js +12 -0
  163. package/dist/icons.client.cjs +1 -0
  164. package/dist/icons.client.js +84 -0
  165. package/dist/index-a661083c.mjs +934 -0
  166. package/dist/index-b41aac19.js +2 -0
  167. package/dist/inputs.validation-d7cef32b.js +1 -0
  168. package/dist/inputs.validation-db65277a.mjs +83 -0
  169. package/dist/landing.client.cjs +1 -0
  170. package/dist/landing.client.js +111 -0
  171. package/dist/leftovers-5d1ff88b.mjs +67 -0
  172. package/dist/leftovers-b60180cf.js +1 -0
  173. package/dist/legal.client.cjs +1 -0
  174. package/dist/legal.client.js +8512 -0
  175. package/dist/memberships-12210953.mjs +68 -0
  176. package/dist/memberships-393765d8.js +1 -0
  177. package/dist/middlewares.client.cjs +1 -0
  178. package/dist/middlewares.client.js +1 -0
  179. package/dist/orders-13c10d49.mjs +85 -0
  180. package/dist/orders-37f041aa.js +1 -0
  181. package/dist/organizations-587d5a4d.mjs +122 -0
  182. package/dist/organizations-b4d902a2.js +1 -0
  183. package/dist/organizations.client-35b74e44.mjs +2997 -0
  184. package/dist/organizations.client-f982f55a.js +3 -0
  185. package/dist/organizations.client.cjs +1 -0
  186. package/dist/organizations.client.js +86 -0
  187. package/dist/products-3c43eb18.js +1 -0
  188. package/dist/products-943fb95e.mjs +107 -0
  189. package/dist/prometheus-framework/src/components/Select/Select.vue.cjs +1 -1
  190. package/dist/prometheus-framework/src/components/Select/Select.vue.js +2 -78
  191. package/dist/prometheus-framework/src/components/Select/Select.vue2.cjs +1 -1
  192. package/dist/prometheus-framework/src/components/Select/Select.vue2.js +78 -2
  193. package/dist/prometheus-framework/src/modules/auth/components/pages/SignIn.vue.cjs +1 -1
  194. package/dist/prometheus-framework/src/modules/auth/components/pages/SignIn.vue.js +65 -67
  195. package/dist/prometheus-framework/src/modules/community/components/layouts/Community.vue.cjs +1 -1
  196. package/dist/prometheus-framework/src/modules/community/components/layouts/Community.vue.js +1 -1
  197. package/dist/prometheus-framework/src/modules/community/components/pages/CreateBlogPost.vue.cjs +1 -1
  198. package/dist/prometheus-framework/src/modules/community/components/pages/CreateBlogPost.vue.js +1 -1
  199. package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue.cjs +1 -4
  200. package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue.js +2 -61
  201. package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue2.cjs +4 -1
  202. package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue2.js +61 -2
  203. package/dist/prometheus-framework/src/modules/constructor/components/sections/Constructor.vue.cjs +1 -1
  204. package/dist/prometheus-framework/src/modules/constructor/components/sections/Constructor.vue.js +1 -1
  205. package/dist/prometheus-framework/src/modules/events/components/layouts/layoutEvents.vue.cjs +1 -1
  206. package/dist/prometheus-framework/src/modules/events/components/layouts/layoutEvents.vue.js +1 -1
  207. package/dist/prometheus-framework/src/modules/events/components/pages/EditEvent.vue.cjs +1 -1
  208. package/dist/prometheus-framework/src/modules/events/components/pages/EditEvent.vue.js +1 -1
  209. package/dist/prometheus-framework/src/modules/gallery/components/sections/BackofficeGallery.vue.cjs +1 -1
  210. package/dist/prometheus-framework/src/modules/gallery/components/sections/BackofficeGallery.vue.js +1 -1
  211. package/dist/prometheus-framework/src/modules/gallery/components/sections/GalleryWithCategories.vue.cjs +1 -1
  212. package/dist/prometheus-framework/src/modules/gallery/components/sections/GalleryWithCategories.vue.js +1 -1
  213. package/dist/prometheus-framework/src/modules/organizations/components/blocks/DepartmentMemberModify.vue.cjs +1 -1
  214. package/dist/prometheus-framework/src/modules/organizations/components/blocks/DepartmentMemberModify.vue.js +1 -1
  215. package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue.cjs +1 -1
  216. package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue.js +1 -1
  217. package/dist/prometheus-framework/src/modules/organizations/components/pages/Organization.vue.cjs +1 -1
  218. package/dist/prometheus-framework/src/modules/organizations/components/pages/Organization.vue.js +1 -1
  219. package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationEdit.vue.cjs +1 -1
  220. package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationEdit.vue.js +1 -1
  221. package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersAdd.vue.cjs +1 -1
  222. package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersAdd.vue.js +1 -1
  223. package/dist/prometheus-framework/src/modules/organizations/components/sections/Organizations.vue.cjs +1 -1
  224. package/dist/prometheus-framework/src/modules/organizations/components/sections/Organizations.vue.js +1 -1
  225. package/dist/prometheus-framework/src/modules/products/components/blocks/CardPosition.vue.cjs +1 -1
  226. package/dist/prometheus-framework/src/modules/products/components/blocks/CardPosition.vue.js +1 -1
  227. package/dist/prometheus-framework/src/modules/products/components/pages/LeftoverAdd.vue.cjs +1 -1
  228. package/dist/prometheus-framework/src/modules/products/components/pages/LeftoverAdd.vue.js +1 -1
  229. package/dist/prometheus-framework/src/modules/products/components/pages/ProductEdit.vue.cjs +1 -1
  230. package/dist/prometheus-framework/src/modules/products/components/pages/ProductEdit.vue.js +1 -1
  231. package/dist/prometheus-framework/src/modules/products/components/sections/EditProductInfo.vue.cjs +1 -1
  232. package/dist/prometheus-framework/src/modules/products/components/sections/EditProductInfo.vue.js +1 -1
  233. package/dist/prometheus-framework/src/modules/reports/components/sections/FormReport.vue.cjs +1 -1
  234. package/dist/prometheus-framework/src/modules/reports/components/sections/FormReport.vue.js +1 -1
  235. package/dist/reports-270f69df.js +1 -0
  236. package/dist/reports-79cd9459.mjs +91 -0
  237. package/dist/reports.client.cjs +1 -0
  238. package/dist/reports.client.js +8 -0
  239. package/dist/states.validation-3b70f83a.js +1 -0
  240. package/dist/states.validation-944e334c.mjs +13 -0
  241. package/dist/style.css +1 -1
  242. package/dist/users.client.cjs +1 -0
  243. package/dist/users.client.js +632 -0
  244. package/dist/vue-draggable-next.esm-bundler-21a209c6.js +10 -0
  245. package/dist/vue-draggable-next.esm-bundler-ff6e3f52.mjs +1557 -0
  246. package/dist/vuex.esm-bundler-57d8b6ba.mjs +750 -0
  247. package/dist/vuex.esm-bundler-685cf29f.js +5 -0
  248. package/package.json +1 -1
  249. package/src/modules/auth/components/pages/SignIn.vue +2 -2
@@ -0,0 +1,221 @@
1
+ import { reactive as K, toRefs as Q, ref as f, onMounted as W, computed as k, resolveComponent as X, openBlock as o, createElementBlock as n, Fragment as B, createElementVNode as s, createTextVNode as _, toDisplayString as l, unref as e, createCommentVNode as i, createVNode as Y, renderList as Z } from "vue";
2
+ import { useRoute as ss } from "vue-router";
3
+ import { a as h, s as y } from "./orders-13c10d49.mjs";
4
+ import "./index-a661083c.mjs";
5
+ import "./globals-96ba60e4.mjs";
6
+ import "vue-i18n";
7
+ const es = /* @__PURE__ */ s("header", { class: "mn-medium flex-v-center flex-nowrap flex" }, [
8
+ /* @__PURE__ */ s("h2", { class: "mn-r-medium" }, "Edit Order")
9
+ ], -1), ts = { class: "gap-thin flex-nowrap flex mn-semi" }, os = { class: "w-100 br-solid br-1px br-black-transp-10 radius-big pd-medium" }, ns = { class: "mn-small p-big" }, ls = /* @__PURE__ */ s("br", null, null, -1), is = /* @__PURE__ */ s("button", { class: "button" }, "Подтвердить заказ", -1), as = { class: "w-100 br-solid br-1px br-black-transp-10 radius-big pd-medium" }, cs = { class: "mn-semi p-big" }, ds = /* @__PURE__ */ s("br", null, null, -1), rs = /* @__PURE__ */ s("button", { class: "button" }, "Изменить статус оплаты", -1), _s = { class: "mn-thin cols-2" }, ms = { class: "" }, us = { class: "w-100 mn-small" }, hs = { class: "cols-2 mn-medium" }, ps = { class: "col flex block" }, vs = { class: "mn-small w-100" }, fs = /* @__PURE__ */ s("br", null, null, -1), ks = { class: "mn-small w-100" }, ys = { class: "mn-small w-100" }, bs = { class: "col flex block" }, ws = { class: "mn-small w-100" }, gs = { class: "mn-small w-100" }, Cs = { class: "mn-small w-100" }, xs = { class: "block" }, Os = { class: "w-100" }, $s = { class: "" }, Ps = { class: "order-list" }, Is = { class: "flex" }, Vs = /* @__PURE__ */ s("h5", { class: "mn-small" }, " Состав заказа ", -1), Es = {
10
+ key: 0,
11
+ class: "mn-small w-100 block"
12
+ }, zs = { class: "mn-semi" }, Ns = { class: "text-left" }, Ts = { class: "name" }, Ls = { class: "mn-small flex" }, qs = { class: "small-underline variant" }, Ss = {
13
+ key: 0,
14
+ class: ""
15
+ }, As = {
16
+ key: 1,
17
+ class: ""
18
+ }, Bs = {
19
+ key: 2,
20
+ class: ""
21
+ }, Fs = {
22
+ key: 3,
23
+ class: ""
24
+ }, Rs = { key: 4 }, Ds = { class: "t-demi" }, Ms = {
25
+ key: 0,
26
+ class: "flex-nowrap flex w-100"
27
+ }, Us = ["onInput", "value"], js = ["onClick"], Gs = ["onClick"], Hs = ["onClick"], Js = { class: "mn-thinw-100 flex-v-center flex block" }, Ks = { class: "p-big" }, Qs = {
28
+ key: 0,
29
+ class: "p-big t-semi"
30
+ }, Ws = {
31
+ key: 1,
32
+ class: "p-big t-semi"
33
+ }, Xs = {
34
+ key: 2,
35
+ class: "p-big t-semi"
36
+ }, Ys = { key: 3 }, Zs = { key: 4 }, se = { key: 5 }, ee = /* @__PURE__ */ s("button", { class: "mn-l-auto button" }, "Запросить онлайн", -1), ce = {
37
+ __name: "EditOrder",
38
+ props: ["showProduct"],
39
+ setup(F) {
40
+ const R = F, b = ss();
41
+ R.showProduct = [];
42
+ let m = K([]);
43
+ Q(m);
44
+ var r = f(!1);
45
+ let a = f({}), D = f([]);
46
+ function M() {
47
+ h.addProductToOrder(), r.value = !r.value;
48
+ }
49
+ W(async () => {
50
+ await h.fetchProducts(), await h.fetchOrder(b.params.id), a.value = y.current, D.value = y.all;
51
+ });
52
+ function U(d) {
53
+ h.deleteItemFromOrder(d);
54
+ }
55
+ function j() {
56
+ h.updateOrderItems(b.params.id);
57
+ }
58
+ function w(d) {
59
+ m[d] = !m[d];
60
+ }
61
+ function g() {
62
+ r.value = !r.value;
63
+ }
64
+ const G = k(() => y.products.all), p = k(() => 100), H = k(() => []);
65
+ return (d, c) => {
66
+ var C, x, O, $, P, I, V, E, z, N, T, L, q, S, A;
67
+ const J = X("vue-select");
68
+ return o(), n(B, null, [
69
+ es,
70
+ s("section", ts, [
71
+ s("div", os, [
72
+ s("p", ns, [
73
+ _(" Статус заказа:"),
74
+ ls,
75
+ _(l(e(a).status), 1)
76
+ ]),
77
+ is
78
+ ]),
79
+ s("div", as, [
80
+ s("p", cs, [
81
+ _("Статус оплаты:"),
82
+ ds,
83
+ _(l((C = e(a).payment) == null ? void 0 : C.status), 1)
84
+ ]),
85
+ rs
86
+ ])
87
+ ]),
88
+ s("div", _s, [
89
+ s("section", ms, [
90
+ s("h5", us, [
91
+ _("Информация о заказе "),
92
+ e(r) === !1 ? (o(), n("a", {
93
+ key: 0,
94
+ class: "mn-l-small t-main h5",
95
+ onClick: c[0] || (c[0] = (t) => d.reserOrderList())
96
+ }, "Редактировать")) : i("", !0)
97
+ ]),
98
+ s("div", hs, [
99
+ s("div", ps, [
100
+ s("p", vs, [
101
+ _(" Номер клиента: " + l((x = e(a).info) == null ? void 0 : x.phone), 1),
102
+ fs
103
+ ]),
104
+ s("p", ks, " Имя клиента: " + l((O = e(a).info) == null ? void 0 : O.name) + " " + l(($ = e(a).info) == null ? void 0 : $.surname), 1),
105
+ s("p", ys, " Контактный email: " + l((P = e(a).info) == null ? void 0 : P.email), 1)
106
+ ]),
107
+ s("div", bs, [
108
+ s("p", ws, " Тип доставки: " + l((I = e(a).info) == null ? void 0 : I.delivery), 1),
109
+ s("p", gs, " Город: " + l((V = e(a).info) == null ? void 0 : V.city), 1),
110
+ s("p", Cs, " Адресс: " + l((E = e(a).info) == null ? void 0 : E.adress), 1)
111
+ ])
112
+ ]),
113
+ s("div", xs, [
114
+ s("p", Os, " Комментарий: " + l((z = e(a).info) == null ? void 0 : z.comment), 1)
115
+ ])
116
+ ]),
117
+ s("section", $s, [
118
+ s("div", Ps, [
119
+ s("div", Is, [
120
+ Vs,
121
+ s("div", null, [
122
+ e(r) === !1 ? (o(), n("a", {
123
+ key: 0,
124
+ class: "t-main h5",
125
+ onClick: c[1] || (c[1] = (t) => g())
126
+ }, "Добавить")) : (o(), n("a", {
127
+ key: 1,
128
+ class: "t-main h5",
129
+ onClick: c[2] || (c[2] = (t) => g())
130
+ }, "Закрыть")),
131
+ e(r) === !1 ? (o(), n("a", {
132
+ key: 2,
133
+ class: "mn-l-small t-main h5",
134
+ onClick: c[3] || (c[3] = (t) => d.reserOrderList())
135
+ }, "Сбросить")) : i("", !0),
136
+ e(r) === !1 ? (o(), n("a", {
137
+ key: 3,
138
+ class: "mn-l-small t-main h5",
139
+ onClick: c[4] || (c[4] = (t) => j())
140
+ }, "Сохранить")) : i("", !0)
141
+ ])
142
+ ]),
143
+ e(r) !== !1 ? (o(), n("div", Es, [
144
+ Y(J, {
145
+ options: e(G),
146
+ modelValue: d.techStack,
147
+ "onUpdate:modelValue": c[5] || (c[5] = (t) => d.techStack = t),
148
+ "label-by": "name",
149
+ searchable: "",
150
+ "clear-on-close": "",
151
+ "close-on-select": !0
152
+ }, null, 8, ["options", "modelValue"]),
153
+ s("button", {
154
+ onClick: c[6] || (c[6] = (t) => M()),
155
+ class: "w-25 button"
156
+ }, "Добавить в заказ")
157
+ ])) : i("", !0),
158
+ s("ul", zs, [
159
+ (o(!0), n(B, null, Z(e(H), (t, u) => (o(), n("li", {
160
+ key: t.id,
161
+ class: "shop-cart-item mn-small block"
162
+ }, [
163
+ s("div", Ns, [
164
+ s("p", Ts, l(t.name), 1),
165
+ s("div", Ls, [
166
+ s("div", qs, [
167
+ !t.size && !t.color ? (o(), n("span", Ss, "One-size")) : i("", !0),
168
+ t.size ? (o(), n("span", As, l(t.size), 1)) : i("", !0),
169
+ t.color && t.size ? (o(), n("span", Bs, ", ")) : i("", !0),
170
+ t.color ? (o(), n("span", Fs, l(t.color), 1)) : i("", !0),
171
+ t.edit ? (o(), n("div", Rs, l(t.edit), 1)) : i("", !0)
172
+ ]),
173
+ s("p", Ds, l(t.quantity) + " x " + l(t.price / 100) + " ₽ ", 1)
174
+ ]),
175
+ e(m)[u] ? (o(), n("div", Ms, [
176
+ s("input", {
177
+ onInput: (v) => d.updateInputText("orders", "current.items[" + u + "].quantity", v),
178
+ value: t.quantity,
179
+ placeholder: "Маргарита",
180
+ class: "mn-small input-text input"
181
+ }, null, 40, Us)
182
+ ])) : i("", !0),
183
+ e(m)[u] ? i("", !0) : (o(), n("a", {
184
+ key: 1,
185
+ onClick: (v) => w(u)
186
+ }, "Редактировать", 8, js)),
187
+ e(m)[u] ? (o(), n("a", {
188
+ key: 2,
189
+ onClick: (v) => U(t)
190
+ }, "Удалить", 8, Gs)) : i("", !0),
191
+ e(m)[u] ? (o(), n("a", {
192
+ key: 3,
193
+ onClick: (v) => w(u)
194
+ }, "Закрыть", 8, Hs)) : i("", !0)
195
+ ])
196
+ ]))), 128))
197
+ ])
198
+ ])
199
+ ])
200
+ ]),
201
+ s("div", Js, [
202
+ s("p", Ks, [
203
+ _("Сумма к оплате: "),
204
+ ((N = e(a).info) == null ? void 0 : N.delivery) === "Самовывоз" ? (o(), n("span", Qs, l(e(p) / 100) + " ₽", 1)) : i("", !0),
205
+ ((T = e(a).info) == null ? void 0 : T.delivery) === "Курьером" ? (o(), n("span", Ws, l(e(p) / 100 + 350) + " ₽", 1)) : i("", !0),
206
+ ((L = e(a).info) == null ? void 0 : L.delivery) === "Почтой" ? (o(), n("span", Xs, l(e(p) / 100 + 550) + " ₽", 1)) : i("", !0),
207
+ _(" (Заказ " + l(e(p) / 100) + " ₽ + доставка ", 1),
208
+ ((q = e(a).info) == null ? void 0 : q.delivery) === "Самовывоз" ? (o(), n("span", Ys, "0")) : i("", !0),
209
+ ((S = e(a).info) == null ? void 0 : S.delivery) === "Курьером" ? (o(), n("span", Zs, "350")) : i("", !0),
210
+ ((A = e(a).info) == null ? void 0 : A.delivery) === "Почтой" ? (o(), n("span", se, "550")) : i("", !0),
211
+ _(" ₽) ")
212
+ ]),
213
+ ee
214
+ ])
215
+ ], 64);
216
+ };
217
+ }
218
+ };
219
+ export {
220
+ ce as default
221
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),L=require("vue-router"),c=require("./orders-37f041aa.js");require("./index-b41aac19.js");require("./globals-928eb13c.js");require("vue-i18n");const F=e.createElementVNode("header",{class:"mn-medium flex-v-center flex-nowrap flex"},[e.createElementVNode("h2",{class:"mn-r-medium"},"Edit Order")],-1),R={class:"gap-thin flex-nowrap flex mn-semi"},A={class:"w-100 br-solid br-1px br-black-transp-10 radius-big pd-medium"},M={class:"mn-small p-big"},j=e.createElementVNode("br",null,null,-1),U=e.createElementVNode("button",{class:"button"},"Подтвердить заказ",-1),G={class:"w-100 br-solid br-1px br-black-transp-10 radius-big pd-medium"},H={class:"mn-semi p-big"},J=e.createElementVNode("br",null,null,-1),K=e.createElementVNode("button",{class:"button"},"Изменить статус оплаты",-1),Q={class:"mn-thin cols-2"},W={class:""},X={class:"w-100 mn-small"},Y={class:"cols-2 mn-medium"},Z={class:"col flex block"},ee={class:"mn-small w-100"},te=e.createElementVNode("br",null,null,-1),oe={class:"mn-small w-100"},ne={class:"mn-small w-100"},se={class:"col flex block"},le={class:"mn-small w-100"},ce={class:"mn-small w-100"},ae={class:"mn-small w-100"},re={class:"block"},ie={class:"w-100"},de={class:""},me={class:"order-list"},ue={class:"flex"},_e=e.createElementVNode("h5",{class:"mn-small"}," Состав заказа ",-1),pe={key:0,class:"mn-small w-100 block"},ke={class:"mn-semi"},fe={class:"text-left"},Ve={class:"name"},Ne={class:"mn-small flex"},Ee={class:"small-underline variant"},he={key:0,class:""},ye={key:1,class:""},ve={key:2,class:""},Be={key:3,class:""},be={key:4},ge={class:"t-demi"},Ce={key:0,class:"flex-nowrap flex w-100"},Se=["onInput","value"],we=["onClick"],De=["onClick"],xe=["onClick"],Te={class:"mn-thinw-100 flex-v-center flex block"},Oe={class:"p-big"},$e={key:0,class:"p-big t-semi"},qe={key:1,class:"p-big t-semi"},Pe={key:2,class:"p-big t-semi"},Ie={key:3},ze={key:4},Le={key:5},Fe=e.createElementVNode("button",{class:"mn-l-auto button"},"Запросить онлайн",-1),Re={__name:"EditOrder",props:["showProduct"],setup(D){const x=D,m=L.useRoute();x.showProduct=[];let a=e.reactive([]);e.toRefs(a);var l=e.ref(!1);let o=e.ref({}),T=e.ref([]);function O(){c.actions.addProductToOrder(),l.value=!l.value}e.onMounted(async()=>{await c.actions.fetchProducts(),await c.actions.fetchOrder(m.params.id),o.value=c.state.current,T.value=c.state.all});function $(s){c.actions.deleteItemFromOrder(s)}function q(){c.actions.updateOrderItems(m.params.id)}function u(s){a[s]=!a[s]}function _(){l.value=!l.value}const P=e.computed(()=>c.state.products.all),i=e.computed(()=>100),I=e.computed(()=>[]);return(s,n)=>{var p,k,f,V,N,E,h,y,v,B,b,g,C,S,w;const z=e.resolveComponent("vue-select");return e.openBlock(),e.createElementBlock(e.Fragment,null,[F,e.createElementVNode("section",R,[e.createElementVNode("div",A,[e.createElementVNode("p",M,[e.createTextVNode(" Статус заказа:"),j,e.createTextVNode(e.toDisplayString(e.unref(o).status),1)]),U]),e.createElementVNode("div",G,[e.createElementVNode("p",H,[e.createTextVNode("Статус оплаты:"),J,e.createTextVNode(e.toDisplayString((p=e.unref(o).payment)==null?void 0:p.status),1)]),K])]),e.createElementVNode("div",Q,[e.createElementVNode("section",W,[e.createElementVNode("h5",X,[e.createTextVNode("Информация о заказе "),e.unref(l)===!1?(e.openBlock(),e.createElementBlock("a",{key:0,class:"mn-l-small t-main h5",onClick:n[0]||(n[0]=t=>s.reserOrderList())},"Редактировать")):e.createCommentVNode("",!0)]),e.createElementVNode("div",Y,[e.createElementVNode("div",Z,[e.createElementVNode("p",ee,[e.createTextVNode(" Номер клиента: "+e.toDisplayString((k=e.unref(o).info)==null?void 0:k.phone),1),te]),e.createElementVNode("p",oe," Имя клиента: "+e.toDisplayString((f=e.unref(o).info)==null?void 0:f.name)+" "+e.toDisplayString((V=e.unref(o).info)==null?void 0:V.surname),1),e.createElementVNode("p",ne," Контактный email: "+e.toDisplayString((N=e.unref(o).info)==null?void 0:N.email),1)]),e.createElementVNode("div",se,[e.createElementVNode("p",le," Тип доставки: "+e.toDisplayString((E=e.unref(o).info)==null?void 0:E.delivery),1),e.createElementVNode("p",ce," Город: "+e.toDisplayString((h=e.unref(o).info)==null?void 0:h.city),1),e.createElementVNode("p",ae," Адресс: "+e.toDisplayString((y=e.unref(o).info)==null?void 0:y.adress),1)])]),e.createElementVNode("div",re,[e.createElementVNode("p",ie," Комментарий: "+e.toDisplayString((v=e.unref(o).info)==null?void 0:v.comment),1)])]),e.createElementVNode("section",de,[e.createElementVNode("div",me,[e.createElementVNode("div",ue,[_e,e.createElementVNode("div",null,[e.unref(l)===!1?(e.openBlock(),e.createElementBlock("a",{key:0,class:"t-main h5",onClick:n[1]||(n[1]=t=>_())},"Добавить")):(e.openBlock(),e.createElementBlock("a",{key:1,class:"t-main h5",onClick:n[2]||(n[2]=t=>_())},"Закрыть")),e.unref(l)===!1?(e.openBlock(),e.createElementBlock("a",{key:2,class:"mn-l-small t-main h5",onClick:n[3]||(n[3]=t=>s.reserOrderList())},"Сбросить")):e.createCommentVNode("",!0),e.unref(l)===!1?(e.openBlock(),e.createElementBlock("a",{key:3,class:"mn-l-small t-main h5",onClick:n[4]||(n[4]=t=>q())},"Сохранить")):e.createCommentVNode("",!0)])]),e.unref(l)!==!1?(e.openBlock(),e.createElementBlock("div",pe,[e.createVNode(z,{options:e.unref(P),modelValue:s.techStack,"onUpdate:modelValue":n[5]||(n[5]=t=>s.techStack=t),"label-by":"name",searchable:"","clear-on-close":"","close-on-select":!0},null,8,["options","modelValue"]),e.createElementVNode("button",{onClick:n[6]||(n[6]=t=>O()),class:"w-25 button"},"Добавить в заказ")])):e.createCommentVNode("",!0),e.createElementVNode("ul",ke,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(I),(t,r)=>(e.openBlock(),e.createElementBlock("li",{key:t.id,class:"shop-cart-item mn-small block"},[e.createElementVNode("div",fe,[e.createElementVNode("p",Ve,e.toDisplayString(t.name),1),e.createElementVNode("div",Ne,[e.createElementVNode("div",Ee,[!t.size&&!t.color?(e.openBlock(),e.createElementBlock("span",he,"One-size")):e.createCommentVNode("",!0),t.size?(e.openBlock(),e.createElementBlock("span",ye,e.toDisplayString(t.size),1)):e.createCommentVNode("",!0),t.color&&t.size?(e.openBlock(),e.createElementBlock("span",ve,", ")):e.createCommentVNode("",!0),t.color?(e.openBlock(),e.createElementBlock("span",Be,e.toDisplayString(t.color),1)):e.createCommentVNode("",!0),t.edit?(e.openBlock(),e.createElementBlock("div",be,e.toDisplayString(t.edit),1)):e.createCommentVNode("",!0)]),e.createElementVNode("p",ge,e.toDisplayString(t.quantity)+" x "+e.toDisplayString(t.price/100)+" ₽ ",1)]),e.unref(a)[r]?(e.openBlock(),e.createElementBlock("div",Ce,[e.createElementVNode("input",{onInput:d=>s.updateInputText("orders","current.items["+r+"].quantity",d),value:t.quantity,placeholder:"Маргарита",class:"mn-small input-text input"},null,40,Se)])):e.createCommentVNode("",!0),e.unref(a)[r]?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("a",{key:1,onClick:d=>u(r)},"Редактировать",8,we)),e.unref(a)[r]?(e.openBlock(),e.createElementBlock("a",{key:2,onClick:d=>$(t)},"Удалить",8,De)):e.createCommentVNode("",!0),e.unref(a)[r]?(e.openBlock(),e.createElementBlock("a",{key:3,onClick:d=>u(r)},"Закрыть",8,xe)):e.createCommentVNode("",!0)])]))),128))])])])]),e.createElementVNode("div",Te,[e.createElementVNode("p",Oe,[e.createTextVNode("Сумма к оплате: "),((B=e.unref(o).info)==null?void 0:B.delivery)==="Самовывоз"?(e.openBlock(),e.createElementBlock("span",$e,e.toDisplayString(e.unref(i)/100)+" ₽",1)):e.createCommentVNode("",!0),((b=e.unref(o).info)==null?void 0:b.delivery)==="Курьером"?(e.openBlock(),e.createElementBlock("span",qe,e.toDisplayString(e.unref(i)/100+350)+" ₽",1)):e.createCommentVNode("",!0),((g=e.unref(o).info)==null?void 0:g.delivery)==="Почтой"?(e.openBlock(),e.createElementBlock("span",Pe,e.toDisplayString(e.unref(i)/100+550)+" ₽",1)):e.createCommentVNode("",!0),e.createTextVNode(" (Заказ "+e.toDisplayString(e.unref(i)/100)+" ₽ + доставка ",1),((C=e.unref(o).info)==null?void 0:C.delivery)==="Самовывоз"?(e.openBlock(),e.createElementBlock("span",Ie,"0")):e.createCommentVNode("",!0),((S=e.unref(o).info)==null?void 0:S.delivery)==="Курьером"?(e.openBlock(),e.createElementBlock("span",ze,"350")):e.createCommentVNode("",!0),((w=e.unref(o).info)==null?void 0:w.delivery)==="Почтой"?(e.openBlock(),e.createElementBlock("span",Le,"550")):e.createCommentVNode("",!0),e.createTextVNode(" ₽) ")]),Fe])],64)}}};exports.default=Re;
@@ -0,0 +1 @@
1
+ "use strict";const t=require("vue"),l={class:"mn-regular"},i={class:"mn-small t-transp p-medium"},a={__name:"EmptyState",props:{title:{type:String,default:"У вас еще нет организации"},description:{type:String,default:"Для использования сервиса, вам необходимо добавить вашу организацию."},action:{type:String},callback:{type:Function,default:()=>{}}},setup(e){return(o,n)=>(t.openBlock(),t.createElementBlock("section",null,[t.createElementVNode("h3",l,t.toDisplayString(e.title),1),t.createElementVNode("p",i,t.toDisplayString(e.description),1),e.action?(t.openBlock(),t.createElementBlock("button",{key:0,onClick:n[0]||(n[0]=(...c)=>e.callback&&e.callback(...c)),class:"t-white bg-second w-100 button"},t.toDisplayString(e.action),1)):t.createCommentVNode("",!0)]))}};exports._sfc_main=a;
@@ -0,0 +1,36 @@
1
+ import { openBlock as c, createElementBlock as a, createElementVNode as l, toDisplayString as e, createCommentVNode as o } from "vue";
2
+ const s = { class: "mn-regular" }, r = { class: "mn-small t-transp p-medium" }, d = {
3
+ __name: "EmptyState",
4
+ props: {
5
+ title: {
6
+ type: String,
7
+ default: "У вас еще нет организации"
8
+ },
9
+ description: {
10
+ type: String,
11
+ default: "Для использования сервиса, вам необходимо добавить вашу организацию."
12
+ },
13
+ action: {
14
+ type: String
15
+ },
16
+ callback: {
17
+ type: Function,
18
+ default: () => {
19
+ }
20
+ }
21
+ },
22
+ setup(t) {
23
+ return (m, n) => (c(), a("section", null, [
24
+ l("h3", s, e(t.title), 1),
25
+ l("p", r, e(t.description), 1),
26
+ t.action ? (c(), a("button", {
27
+ key: 0,
28
+ onClick: n[0] || (n[0] = (...i) => t.callback && t.callback(...i)),
29
+ class: "t-white bg-second w-100 button"
30
+ }, e(t.action), 1)) : o("", !0)
31
+ ]));
32
+ }
33
+ };
34
+ export {
35
+ d as _
36
+ };
@@ -0,0 +1,123 @@
1
+ import { ref as o, onMounted as k, openBlock as t, createElementBlock as l, createVNode as s, TransitionGroup as _, withCtx as c, Fragment as g, renderList as f, createBlock as d, createCommentVNode as p, Transition as S, normalizeClass as w, unref as y } from "vue";
2
+ import { useRoute as E, useRouter as $ } from "vue-router";
3
+ import "vue-i18n";
4
+ import "./globals-96ba60e4.mjs";
5
+ import "./Breadcrumbs.vue_vue_type_style_index_0_lang-4ed993c7.mjs";
6
+ import { r as z, a as C, _ as L, s as T } from "./Feed-c41ef736.mjs";
7
+ import "./Loader.vue_vue_type_style_index_0_lang-4ed993c7.mjs";
8
+ import { _ as x } from "./EmptyState-e404b05d.mjs";
9
+ import { S as N } from "./SkeletonEventShort-f030e56f.mjs";
10
+ import { s as v } from "./auth-56dc2ba7.mjs";
11
+ const B = { class: "today-events" }, O = {
12
+ __name: "List",
13
+ props: {
14
+ category: {
15
+ type: String,
16
+ default: null
17
+ },
18
+ organization: {
19
+ type: String,
20
+ default: null
21
+ },
22
+ owner: {
23
+ type: String,
24
+ default: null
25
+ },
26
+ user: {
27
+ type: [String, Number],
28
+ default: null
29
+ },
30
+ period: {
31
+ type: String,
32
+ default: null
33
+ },
34
+ phase: {
35
+ type: String,
36
+ default: null
37
+ }
38
+ },
39
+ setup(u) {
40
+ const e = u, r = o([]), a = o(!0), h = o(0), m = o(5);
41
+ return k(async () => {
42
+ const i = await z({
43
+ skip: h.value,
44
+ limit: m.value,
45
+ sortOrder: "desc",
46
+ category: e.category,
47
+ user: e.user,
48
+ owner: e.owner,
49
+ organization: e.organization,
50
+ period: e.period,
51
+ phase: e.phase
52
+ });
53
+ r.value = i, a.value = !1;
54
+ }), (i, D) => (t(), l("section", B, [
55
+ s(_, {
56
+ tag: "ul",
57
+ name: "fade",
58
+ class: "o-hidden bg-grey radius-big"
59
+ }, {
60
+ default: c(() => [
61
+ a.value ? (t(!0), l(g, { key: 0 }, f(m.value, (n) => (t(), d(N, { key: n }))), 128)) : p("", !0)
62
+ ]),
63
+ _: 1
64
+ }),
65
+ s(S, { name: "fade" }, {
66
+ default: c(() => [
67
+ !a.value && r.value.length < 1 ? (t(), d(x, {
68
+ key: 0,
69
+ title: "No Events Today",
70
+ description: "Today, are no events available. Please check back later.",
71
+ class: "pd-medium mn-thin bg-grey radius-big"
72
+ })) : p("", !0)
73
+ ]),
74
+ _: 1
75
+ }),
76
+ s(_, {
77
+ tag: "ul",
78
+ name: "fade",
79
+ class: "container"
80
+ }, {
81
+ default: c(() => [
82
+ !a.value && r.value.length > 0 ? (t(!0), l(g, { key: 0 }, f(r.value, (n, b) => (t(), d(C, {
83
+ onClick: (M) => i.$router.push({ name: "Event", params: { url: n.url } }),
84
+ key: n._id,
85
+ event: n,
86
+ owner: u.user,
87
+ type: "short",
88
+ class: w(["pd-medium", {
89
+ "br-b br-solid br-black-transp-10": b !== r.value.length - 1
90
+ }])
91
+ }, null, 8, ["onClick", "event", "owner", "class"]))), 128)) : p("", !0)
92
+ ]),
93
+ _: 1
94
+ })
95
+ ]));
96
+ }
97
+ }, j = {
98
+ __name: "Events",
99
+ setup(u) {
100
+ const e = E();
101
+ return $(), (r, a) => (t(), l("section", null, [
102
+ s(O, {
103
+ user: v.user._id,
104
+ class: "bg-grey mn-thin radius-big",
105
+ phase: "week"
106
+ }, null, 8, ["user"]),
107
+ s(L, {
108
+ category: y(e).params.category,
109
+ user: v.user._id,
110
+ period: y(e).query.period,
111
+ selectedDate: T.filter.date
112
+ }, null, 8, ["category", "user", "period", "selectedDate"])
113
+ ]));
114
+ }
115
+ }, K = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
116
+ __proto__: null,
117
+ default: j
118
+ }, Symbol.toStringTag, { value: "Module" }));
119
+ export {
120
+ K as E,
121
+ O as _,
122
+ j as a
123
+ };
@@ -0,0 +1 @@
1
+ "use strict";const e=require("vue"),i=require("vue-router");require("vue-i18n");require("./globals-928eb13c.js");require("./Breadcrumbs.vue_vue_type_style_index_0_lang-0ea8fbf8.js");const o=require("./Feed-b39138c8.js");require("./Loader.vue_vue_type_style_index_0_lang-0ea8fbf8.js");const g=require("./EmptyState-d65bab5b.js"),y=require("./SkeletonEventShort-6c9e3940.js"),c=require("./auth-f018f5b3.js");const f={class:"today-events"},d={__name:"List",props:{category:{type:String,default:null},organization:{type:String,default:null},owner:{type:String,default:null},user:{type:[String,Number],default:null},period:{type:String,default:null},phase:{type:String,default:null}},setup(s){const t=s,r=e.ref([]),n=e.ref(!0),_=e.ref(0),u=e.ref(5);return e.onMounted(async()=>{const l=await o.read({skip:_.value,limit:u.value,sortOrder:"desc",category:t.category,user:t.user,owner:t.owner,organization:t.organization,period:t.period,phase:t.phase});r.value=l,n.value=!1}),(l,v)=>(e.openBlock(),e.createElementBlock("section",f,[e.createVNode(e.TransitionGroup,{tag:"ul",name:"fade",class:"o-hidden bg-grey radius-big"},{default:e.withCtx(()=>[n.value?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(u.value,a=>(e.openBlock(),e.createBlock(y.SkeletonEventShort,{key:a}))),128)):e.createCommentVNode("",!0)]),_:1}),e.createVNode(e.Transition,{name:"fade"},{default:e.withCtx(()=>[!n.value&&r.value.length<1?(e.openBlock(),e.createBlock(g._sfc_main,{key:0,title:"No Events Today",description:"Today, are no events available. Please check back later.",class:"pd-medium mn-thin bg-grey radius-big"})):e.createCommentVNode("",!0)]),_:1}),e.createVNode(e.TransitionGroup,{tag:"ul",name:"fade",class:"container"},{default:e.withCtx(()=>[!n.value&&r.value.length>0?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(r.value,(a,m)=>(e.openBlock(),e.createBlock(o._sfc_main$1,{onClick:h=>l.$router.push({name:"Event",params:{url:a.url}}),key:a._id,event:a,owner:s.user,type:"short",class:e.normalizeClass(["pd-medium",{"br-b br-solid br-black-transp-10":m!==r.value.length-1}])},null,8,["onClick","event","owner","class"]))),128)):e.createCommentVNode("",!0)]),_:1})]))}},p={__name:"Events",setup(s){const t=i.useRoute();return i.useRouter(),(r,n)=>(e.openBlock(),e.createElementBlock("section",null,[e.createVNode(d,{user:c.state.user._id,class:"bg-grey mn-thin radius-big",phase:"week"},null,8,["user"]),e.createVNode(o._sfc_main,{category:e.unref(t).params.category,user:c.state.user._id,period:e.unref(t).query.period,selectedDate:o.state.filter.date},null,8,["category","user","period","selectedDate"])]))}},k=Object.freeze(Object.defineProperty({__proto__:null,default:p},Symbol.toStringTag,{value:"Module"}));exports.Events=k;exports._sfc_main=d;exports._sfc_main$1=p;
@@ -0,0 +1,146 @@
1
+ import { ref as o, onMounted as z, openBlock as r, createElementBlock as u, createVNode as m, TransitionGroup as f, withCtx as g, Fragment as y, renderList as v, createBlock as p, createCommentVNode as d, Transition as S, normalizeClass as w } from "vue";
2
+ import "./Loader.vue_vue_type_style_index_0_lang-4ed993c7.mjs";
3
+ import { _ as O } from "./EmptyState-e404b05d.mjs";
4
+ import { _ as C } from "./CardOrganization-facb77f7.mjs";
5
+ import { S as N } from "./SkeletonOrganization-8690422d.mjs";
6
+ import { a as k } from "./organizations-587d5a4d.mjs";
7
+ const D = { class: "pos-relative" }, E = {
8
+ __name: "Feed",
9
+ props: {
10
+ category: {
11
+ type: String,
12
+ default: null
13
+ },
14
+ selectedDate: {
15
+ type: String,
16
+ default: null
17
+ },
18
+ organization: {
19
+ type: String,
20
+ default: null
21
+ },
22
+ owner: {
23
+ type: String,
24
+ default: null
25
+ },
26
+ user: {
27
+ type: [String, Number],
28
+ default: null
29
+ },
30
+ member: {
31
+ type: [String, Number],
32
+ default: null
33
+ },
34
+ subscriber: {
35
+ type: [String, Number],
36
+ default: null
37
+ },
38
+ sortOrder: {
39
+ type: String,
40
+ default: "desc"
41
+ },
42
+ participant: {
43
+ type: String,
44
+ default: null
45
+ },
46
+ period: {
47
+ type: String,
48
+ default: null
49
+ },
50
+ status: {
51
+ type: String,
52
+ default: null
53
+ }
54
+ },
55
+ setup(b) {
56
+ const e = b, t = o([]), n = o(!1), l = o(!0), c = o(0), i = o(20), _ = async () => {
57
+ if (n.value) {
58
+ c.value += i.value;
59
+ const a = await k.read({
60
+ skip: c.value,
61
+ limit: i.value,
62
+ category: e.category,
63
+ sortOrder: e.sortOrder,
64
+ member: e.member,
65
+ subscriber: e.subscriber,
66
+ onlyuser: e.onlyuser,
67
+ user: e.user,
68
+ date: e.selectedDate,
69
+ owner: e.owner,
70
+ organization: e.organization,
71
+ period: e.period,
72
+ status: e.status
73
+ });
74
+ a.length === 0 ? n.value = !1 : n.value = !0, t.value = [...t.value, ...a];
75
+ }
76
+ };
77
+ return z(async () => {
78
+ l.value = !0, console.log(e.selectedDate);
79
+ const a = await k.read({
80
+ skip: c.value,
81
+ limit: i.value,
82
+ category: e.category,
83
+ member: e.member,
84
+ subscriber: e.subscriber,
85
+ onlyuser: e.onlyuser,
86
+ sortOrder: e.sortOrder,
87
+ user: e.user,
88
+ owner: e.owner,
89
+ date: e.selectedDate,
90
+ organization: e.organization,
91
+ period: e.period,
92
+ status: e.status
93
+ });
94
+ a.length === 0 ? n.value = !1 : n.value = !0, t.value = a, l.value = !1;
95
+ }), (a, L) => (r(), u("section", D, [
96
+ m(f, {
97
+ tag: "ul",
98
+ name: "fade",
99
+ class: "o-hidden bg-grey radius-big"
100
+ }, {
101
+ default: g(() => [
102
+ l.value ? (r(!0), u(y, { key: 0 }, v(i.value, (s) => (r(), p(N, { key: s }))), 128)) : d("", !0)
103
+ ]),
104
+ _: 1
105
+ }),
106
+ m(S, { name: "fade" }, {
107
+ default: g(() => [
108
+ !l.value && t.value.length < 1 ? (r(), p(O, {
109
+ key: 0,
110
+ title: "No Organizations Found",
111
+ description: "Currently, there are no organizations available. Please check back later.",
112
+ class: "pd-medium mn-thin bg-grey radius-big"
113
+ })) : d("", !0)
114
+ ]),
115
+ _: 1
116
+ }),
117
+ m(f, {
118
+ tag: "ul",
119
+ name: "fade",
120
+ class: "cols-1"
121
+ }, {
122
+ default: g(() => [
123
+ !l.value && t.value.length > 0 ? (r(!0), u(y, { key: 0 }, v(t.value, (s, h) => (r(), p(C, {
124
+ onClick: ($) => a.$router.push({ name: "Organization", params: { _id: s._id } }),
125
+ key: s._id,
126
+ organization: s,
127
+ user: b.user,
128
+ type: "normal",
129
+ class: w(["w-100 radius-big mn-medium", {
130
+ "br-b br-solid br-black-transp-10": h !== t.value.length - 1
131
+ }])
132
+ }, null, 8, ["onClick", "organization", "user", "class"]))), 128)) : d("", !0),
133
+ n.value && t.value.length > 0 ? (r(), u("button", {
134
+ key: 1,
135
+ onClick: _,
136
+ class: "w-100 bg-main button"
137
+ }, "Load more")) : d("", !0)
138
+ ]),
139
+ _: 1
140
+ })
141
+ ]));
142
+ }
143
+ };
144
+ export {
145
+ E as _
146
+ };
@@ -0,0 +1 @@
1
+ "use strict";const e=require("vue");require("./Loader.vue_vue_type_style_index_0_lang-0ea8fbf8.js");const m=require("./EmptyState-d65bab5b.js"),p=require("./CardOrganization-647cb571.js"),b=require("./SkeletonOrganization-5c09cfc5.js"),c=require("./organizations-b4d902a2.js"),f={class:"pos-relative"},y={__name:"Feed",props:{category:{type:String,default:null},selectedDate:{type:String,default:null},organization:{type:String,default:null},owner:{type:String,default:null},user:{type:[String,Number],default:null},member:{type:[String,Number],default:null},subscriber:{type:[String,Number],default:null},sortOrder:{type:String,default:"desc"},participant:{type:String,default:null},period:{type:String,default:null},status:{type:String,default:null}},setup(u){const t=u,r=e.ref([]),n=e.ref(!1),o=e.ref(!0),i=e.ref(0),s=e.ref(20),d=async()=>{if(n.value){i.value+=s.value;const a=await c.actions.read({skip:i.value,limit:s.value,category:t.category,sortOrder:t.sortOrder,member:t.member,subscriber:t.subscriber,onlyuser:t.onlyuser,user:t.user,date:t.selectedDate,owner:t.owner,organization:t.organization,period:t.period,status:t.status});a.length===0?n.value=!1:n.value=!0,r.value=[...r.value,...a]}};return e.onMounted(async()=>{o.value=!0,console.log(t.selectedDate);const a=await c.actions.read({skip:i.value,limit:s.value,category:t.category,member:t.member,subscriber:t.subscriber,onlyuser:t.onlyuser,sortOrder:t.sortOrder,user:t.user,owner:t.owner,date:t.selectedDate,organization:t.organization,period:t.period,status:t.status});a.length===0?n.value=!1:n.value=!0,r.value=a,o.value=!1}),(a,k)=>(e.openBlock(),e.createElementBlock("section",f,[e.createVNode(e.TransitionGroup,{tag:"ul",name:"fade",class:"o-hidden bg-grey radius-big"},{default:e.withCtx(()=>[o.value?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(s.value,l=>(e.openBlock(),e.createBlock(b.SkeletonOrganization,{key:l}))),128)):e.createCommentVNode("",!0)]),_:1}),e.createVNode(e.Transition,{name:"fade"},{default:e.withCtx(()=>[!o.value&&r.value.length<1?(e.openBlock(),e.createBlock(m._sfc_main,{key:0,title:"No Organizations Found",description:"Currently, there are no organizations available. Please check back later.",class:"pd-medium mn-thin bg-grey radius-big"})):e.createCommentVNode("",!0)]),_:1}),e.createVNode(e.TransitionGroup,{tag:"ul",name:"fade",class:"cols-1"},{default:e.withCtx(()=>[!o.value&&r.value.length>0?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(r.value,(l,g)=>(e.openBlock(),e.createBlock(p._sfc_main,{onClick:v=>a.$router.push({name:"Organization",params:{_id:l._id}}),key:l._id,organization:l,user:u.user,type:"normal",class:e.normalizeClass(["w-100 radius-big mn-medium",{"br-b br-solid br-black-transp-10":g!==r.value.length-1}])},null,8,["onClick","organization","user","class"]))),128)):e.createCommentVNode("",!0),n.value&&r.value.length>0?(e.openBlock(),e.createElementBlock("button",{key:1,onClick:d,class:"w-100 bg-main button"},"Load more")):e.createCommentVNode("",!0)]),_:1})]))}};exports._sfc_main=y;
@@ -0,0 +1 @@
1
+ "use strict";const e=require("vue"),p=require("./Loader-21f016da.js"),m=require("./EmptyState-d65bab5b.js"),i=require("./CardBlogpost-c7364b1e.js"),f={__name:"Feed",props:{category:{type:String,default:null},limit:{type:Number,default:7},skip:{type:Number,default:0},owner:{type:String,default:null},creator:{type:String,default:null},following:{type:String,default:null},status:{type:String,default:"published"},user:{type:[String,Number],default:null},period:{type:String,default:null}},setup(u){const t=u,l=e.ref([]),r=e.ref(!0);let o=e.ref(!0),n=e.ref(t.skip),s=e.ref(t.limit);const d=async()=>{if(r.value){n.value+=s.value;const a=await i.read({skip:n.value,limit:s.value,category:t.category,user:t.user,owner:t.owner,following:t.following,creator:t.creator,status:t.status,period:t.period});a.length===0&&(r.value=!1),l.value=[...l.value,...a]}};return e.onMounted(async()=>{const a=await i.read({skip:n.value,limit:s.value,category:t.category,user:t.user,owner:t.owner,following:t.following,status:t.status,creator:t.creator,period:t.period});a.length===0?r.value=!1:r.value=!0,l.value=a,o.value=!1}),(a,g)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode(e.Transition,{name:"scaleTransition"},{default:e.withCtx(()=>[e.unref(o)?(e.openBlock(),e.createBlock(p.Loader,{key:0,class:"z-index-5 pos-t-50 left-t-50 pos-absolute"})):e.createCommentVNode("",!0)]),_:1}),e.createVNode(e.Transition,{name:"scaleTransition"},{default:e.withCtx(()=>[!e.unref(o)&&l.value.length<1?(e.openBlock(),e.createBlock(m._sfc_main,{key:0,title:"No Blog Posts Found",description:"Currently, there are no posts available in this blog. Please check back later.",class:"pd-medium mn-thin bg-grey radius-big"})):(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(a.$attrs.class)},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.value,c=>(e.openBlock(),e.createBlock(i._sfc_main,{key:c._id,blogpost:c,user:u.user,class:"mn-medium"},null,8,["blogpost","user"]))),128)),e.createVNode(e.Transition,{name:"scaleTransition"},{default:e.withCtx(()=>[r.value&&l.value.length>0?(e.openBlock(),e.createElementBlock("button",{key:0,onClick:d,class:"w-100 bg-main button"}," Load more ")):e.createCommentVNode("",!0)]),_:1})],2))]),_:1})],64))}};exports._sfc_main=f;
@@ -0,0 +1 @@
1
+ "use strict";const e=require("vue"),d=require("./SkeletonEvent-eb284de8.js");require("./Loader.vue_vue_type_style_index_0_lang-0ea8fbf8.js");const m=require("./EmptyState-d65bab5b.js");require("vue-i18n");const p={class:"feed"},f={__name:"Feed",props:{states:{type:Object,default:()=>({empty:{title:String,description:String}})},store:{type:Object,default:()=>({read:Function,state:Object})},options:{type:Object,default:()=>({category:null,limit:20,skip:0,owner:null,creator:null,user:null,status:null,period:null})}},setup(s){const t=s,o=e.ref([]),a=e.ref(!0);let i=e.ref(!0),r=e.ref(t.options.skip?t.options.skip:0),l=e.ref(t.options.limit?t.options.limit:10);e.computed(()=>({skip:r.value,limit:l.value,...t.options}));const u=async()=>{if(a.value){r.value+=l.value;const n=await t.store.read({skip:r.value,limit:l.value,...t.options});n.length===0&&(a.value=!1),o.value=[...o.value,...n]}};return e.onMounted(async()=>{console.log(t.options);const n=await t.store.read({skip:r.value,limit:l.value,...t.options});n.length===0?a.value=!1:a.value=!0,o.value=n,i.value=!1}),(n,k)=>(e.openBlock(),e.createElementBlock("section",p,[e.createVNode(e.TransitionGroup,{tag:"ul",name:"scaleTransition",class:"o-hidden bg-grey radius-big"},{default:e.withCtx(()=>[e.unref(i)?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(e.unref(l),c=>(e.openBlock(),e.createBlock(d.SkeletonEvent,{key:c}))),128)):e.createCommentVNode("",!0)]),_:1}),e.createVNode(e.Transition,{name:"scaleTransition"},{default:e.withCtx(()=>[!e.unref(i)&&o.value.length<1?(e.openBlock(),e.createBlock(m._sfc_main,{key:0,title:s.states.empty.title,description:s.states.empty.description,class:"pd-medium mn-thin bg-grey radius-big"},null,8,["title","description"])):e.createCommentVNode("",!0)]),_:1}),e.createVNode(e.TransitionGroup,{tag:"ul",name:"scaleTransition",class:"cols-1 gap-thin"},{default:e.withCtx(()=>[!e.unref(i)&&o.value.length>0?e.renderSlot(n.$slots,"default",{key:0,items:o.value,user:n.user}):e.createCommentVNode("",!0),a.value&&o.value.length>0?(e.openBlock(),e.createElementBlock("button",{key:1,onClick:u,class:"w-100 bg-main button"}," Load more ")):e.createCommentVNode("",!0)]),_:3})]))}};exports._sfc_main=f;