@ozdao/prometheus-framework 0.1.61 → 0.1.63
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/BackofficeGallery-30022293.js +1 -0
- package/dist/BackofficeGallery-f64daa0d.mjs +264 -0
- package/dist/BackofficeReports-cb4b180d.mjs +44 -0
- package/dist/BackofficeReports-d021871f.js +1 -0
- package/dist/BlockTags-8cddaef7.js +1 -0
- package/dist/BlockTags-ee310572.mjs +853 -0
- package/dist/Breadcrumbs.vue_vue_type_style_index_0_lang-0ea8fbf8.js +1 -0
- package/dist/Breadcrumbs.vue_vue_type_style_index_0_lang-4ed993c7.mjs +1 -0
- package/dist/Button-7643c9aa.js +1 -0
- package/dist/Button-9e1a9284.mjs +226 -0
- package/dist/Button.vue_vue_type_style_index_0_lang-0ea8fbf8.js +1 -0
- package/dist/Button.vue_vue_type_style_index_0_lang-4ed993c7.mjs +1 -0
- package/dist/ButtonToggleMembership-7ee4dc8e.mjs +90 -0
- package/dist/ButtonToggleMembership-b9352cec.js +1 -0
- package/dist/CardBlogpost-3c92fbc9.mjs +246 -0
- package/dist/CardBlogpost-c7364b1e.js +1 -0
- package/dist/CardOrganization-647cb571.js +1 -0
- package/dist/CardOrganization-facb77f7.mjs +234 -0
- package/dist/CardProduct-92affca1.js +1 -0
- package/dist/CardProduct-fca53299.mjs +193 -0
- package/dist/Checkbox-5dbe7b23.mjs +62 -0
- package/dist/Checkbox-76f09248.js +1 -0
- package/dist/Chips-0fdb31c9.js +1 -0
- package/dist/Chips-f1a0d085.mjs +214 -0
- package/dist/Community-534d473c.mjs +132 -0
- package/dist/Community-e9aff969.js +1 -0
- package/dist/Dashboard-91d73bc5.js +1 -0
- package/dist/Dashboard-ea9035bc.mjs +152 -0
- package/dist/Dropdown-31115457.js +1 -0
- package/dist/Dropdown-cab3605b.mjs +146 -0
- package/dist/EULA-aba6a807.js +1 -0
- package/dist/EULA-e05236af.mjs +4210 -0
- package/dist/EditOrder-94bbebff.mjs +221 -0
- package/dist/EditOrder-c070d474.js +1 -0
- package/dist/EmptyState-d65bab5b.js +1 -0
- package/dist/EmptyState-e404b05d.mjs +36 -0
- package/dist/Events-46ae8fc6.mjs +123 -0
- package/dist/Events-813c8c7b.js +1 -0
- package/dist/Feed-2d443ad2.mjs +146 -0
- package/dist/Feed-3a4e7a9c.js +1 -0
- package/dist/Feed-8b554fc1.js +1 -0
- package/dist/Feed-98b47c6f.js +1 -0
- package/dist/Feed-a21d6007.mjs +124 -0
- package/dist/Feed-b39138c8.js +1 -0
- package/dist/Feed-c41ef736.mjs +361 -0
- package/dist/Feed-d114330c.mjs +112 -0
- package/dist/Field-e2a43424.js +1 -0
- package/dist/Field-e5ad88d3.mjs +75 -0
- package/dist/Field.vue_vue_type_style_index_0_scoped_f4a29b0d_lang-0ea8fbf8.js +1 -0
- package/dist/Field.vue_vue_type_style_index_0_scoped_f4a29b0d_lang-4ed993c7.mjs +1 -0
- package/dist/Gallery-46b5f939.js +1 -0
- package/dist/Gallery-762a9c2d.mjs +241 -0
- package/dist/IconChevronRight-a55f838e.js +1 -0
- package/dist/IconChevronRight-fae9d012.mjs +28 -0
- package/dist/IconCommunity-468dc457.mjs +65 -0
- package/dist/IconCommunity-b339e806.js +1 -0
- package/dist/IconCross-5bf93179.js +1 -0
- package/dist/IconCross-84cb1292.mjs +28 -0
- package/dist/IconEdit-9edfd74d.mjs +21 -0
- package/dist/IconEdit-c0469b45.js +1 -0
- package/dist/Image-4dcfddb8.js +9 -0
- package/dist/Image-e0da17ac.mjs +571 -0
- package/dist/LabelGooglePlay-24feb437.mjs +31 -0
- package/dist/LabelGooglePlay-f80e5ff0.js +1 -0
- package/dist/LeftoverAdd-5a8988d9.js +1 -0
- package/dist/LeftoverAdd-c4f37f47.mjs +227 -0
- package/dist/Leftovers-470a1689.js +1 -0
- package/dist/Leftovers-69c7dcd9.mjs +136 -0
- package/dist/Loader-21f016da.js +1 -0
- package/dist/Loader-cd422786.mjs +41 -0
- package/dist/Loader.vue_vue_type_style_index_0_lang-0ea8fbf8.js +1 -0
- package/dist/Loader.vue_vue_type_style_index_0_lang-4ed993c7.mjs +1 -0
- package/dist/Members-04273cd4.mjs +114 -0
- package/dist/Members-0685a15f.js +1 -0
- package/dist/Menu-b5d6a0c7.js +1 -0
- package/dist/Menu-dd7645c1.mjs +13 -0
- package/dist/MenuItem-56ae7f94.js +1 -0
- package/dist/MenuItem-6296d02f.mjs +63 -0
- package/dist/Orders-b64e8cb9.js +1 -0
- package/dist/Orders-ff30db05.mjs +75 -0
- package/dist/Organizations-46aab2c8.mjs +73 -0
- package/dist/Organizations-a8627bc5.js +1 -0
- package/dist/Payments-53e5fecf.js +1 -0
- package/dist/Payments-82e545e1.mjs +87 -0
- package/dist/PlaceholderUserpic-14c6ea7e.mjs +28 -0
- package/dist/PlaceholderUserpic-47f6f319.js +1 -0
- package/dist/Popup-0915427c.mjs +74 -0
- package/dist/Popup-795f5c88.js +1 -0
- package/dist/Popup.vue_vue_type_style_index_0_lang-0ea8fbf8.js +1 -0
- package/dist/Popup.vue_vue_type_style_index_0_lang-4ed993c7.mjs +1 -0
- package/dist/Product-7e001b81.js +7 -0
- package/dist/Product-f3f42158.mjs +653 -0
- package/dist/ProductEdit-959b3cd3.mjs +295 -0
- package/dist/ProductEdit-bae5e898.js +1 -0
- package/dist/ProductsBackoffice-0716123f.js +1 -0
- package/dist/ProductsBackoffice-a36ecbc6.mjs +85 -0
- package/dist/ProfileBlogposts-c790d1b2.js +1 -0
- package/dist/ProfileBlogposts-f43cf32e.mjs +79 -0
- package/dist/ProfileEvents-12f80fff.mjs +70 -0
- package/dist/ProfileEvents-585570a3.js +1 -0
- package/dist/ProfileOrganizations-bbc2cf40.mjs +73 -0
- package/dist/ProfileOrganizations-d7103514.js +1 -0
- package/dist/Publics-094f3c2c.mjs +45 -0
- package/dist/Publics-1032c0f4.js +1 -0
- package/dist/Select-11ddabf5.mjs +79 -0
- package/dist/Select-3ca5ab39.js +1 -0
- package/dist/SelectMulti-58704d69.mjs +1038 -0
- package/dist/SelectMulti-c25765cf.js +1 -0
- package/dist/SkeletonBlogpost-95db0fa9.js +1 -0
- package/dist/SkeletonBlogpost-e0621af7.mjs +16 -0
- package/dist/SkeletonEvent-8690422d.mjs +16 -0
- package/dist/SkeletonEvent-eb284de8.js +1 -0
- package/dist/SkeletonEventShort-6c9e3940.js +1 -0
- package/dist/SkeletonEventShort-f030e56f.mjs +16 -0
- package/dist/SkeletonOrganization-5c09cfc5.js +1 -0
- package/dist/SkeletonOrganization-8690422d.mjs +16 -0
- package/dist/Socials-31c06635.mjs +74 -0
- package/dist/Socials-cceaeaf2.js +1 -0
- package/dist/Tab-054b61f7.mjs +46 -0
- package/dist/Tab-2c1e4224.js +1 -0
- package/dist/Tab.vue_vue_type_style_index_0_lang-0ea8fbf8.js +1 -0
- package/dist/Tab.vue_vue_type_style_index_0_lang-4ed993c7.mjs +1 -0
- package/dist/Upload-06d93178.js +1 -0
- package/dist/Upload-23212d9d.mjs +74 -0
- package/dist/UploadImage-0f488170.js +1 -0
- package/dist/UploadImage-3c627d89.mjs +83 -0
- package/dist/UploadImageMultiple-cb6c7188.mjs +58 -0
- package/dist/UploadImageMultiple-eddaac87.js +1 -0
- package/dist/Wallet-2043b611.mjs +24682 -0
- package/dist/Wallet-8fa7386a.js +55 -0
- package/dist/_plugin-vue_export-helper-dad06003.mjs +9 -0
- package/dist/_plugin-vue_export-helper-f246444f.js +1 -0
- package/dist/auth-56dc2ba7.mjs +607 -0
- package/dist/auth-f018f5b3.js +7 -0
- package/dist/auth.client.cjs +7 -0
- package/dist/auth.client.js +3874 -0
- package/dist/auth.validation-c31a60e7.mjs +24 -0
- package/dist/auth.validation-d049b341.js +1 -0
- package/dist/backoffice.client.cjs +1 -0
- package/dist/backoffice.client.js +265 -0
- package/dist/carousel.es-44c501bc.mjs +383 -0
- package/dist/carousel.es-cdfb392c.js +5 -0
- package/dist/categories-5b08da53.mjs +121 -0
- package/dist/categories-7ccd6be9.js +1 -0
- package/dist/click-outside-0b0727d1.js +2 -0
- package/dist/click-outside-6101836c.mjs +19 -0
- package/dist/community.client.cjs +1 -0
- package/dist/community.client.js +692 -0
- package/dist/dribbble-8e8e169b.js +1 -0
- package/dist/dribbble-ae37c2ac.mjs +127 -0
- package/dist/events.client.cjs +2 -0
- package/dist/events.client.js +8885 -0
- package/dist/files.client.cjs +1 -0
- package/dist/files.client.js +1 -0
- package/dist/gallery-d4297191.mjs +54 -0
- package/dist/gallery-f92912df.js +1 -0
- package/dist/gallery.client.cjs +1 -0
- package/dist/gallery.client.js +18 -0
- package/dist/globals-928eb13c.js +1 -0
- package/dist/globals-96ba60e4.mjs +91 -0
- package/dist/globals.client.cjs +1 -0
- package/dist/globals.client.js +12 -0
- package/dist/icons.client.cjs +1 -0
- package/dist/icons.client.js +84 -0
- package/dist/index-a661083c.mjs +934 -0
- package/dist/index-b41aac19.js +2 -0
- package/dist/inputs.validation-d7cef32b.js +1 -0
- package/dist/inputs.validation-db65277a.mjs +83 -0
- package/dist/landing.client.cjs +1 -0
- package/dist/landing.client.js +111 -0
- package/dist/leftovers-5d1ff88b.mjs +67 -0
- package/dist/leftovers-b60180cf.js +1 -0
- package/dist/legal.client.cjs +1 -0
- package/dist/legal.client.js +8512 -0
- package/dist/memberships-12210953.mjs +68 -0
- package/dist/memberships-393765d8.js +1 -0
- package/dist/middlewares.client.cjs +1 -0
- package/dist/middlewares.client.js +1 -0
- package/dist/orders-13c10d49.mjs +85 -0
- package/dist/orders-37f041aa.js +1 -0
- package/dist/organizations-587d5a4d.mjs +122 -0
- package/dist/organizations-b4d902a2.js +1 -0
- package/dist/organizations.client-35b74e44.mjs +2997 -0
- package/dist/organizations.client-f982f55a.js +3 -0
- package/dist/organizations.client.cjs +1 -0
- package/dist/organizations.client.js +86 -0
- package/dist/products-3c43eb18.js +1 -0
- package/dist/products-943fb95e.mjs +107 -0
- package/dist/prometheus-framework/src/components/Popup/Popup.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Popup/Popup.vue.js +72 -2
- package/dist/prometheus-framework/src/components/Popup/Popup.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/components/Popup/Popup.vue2.js +2 -72
- package/dist/prometheus-framework/src/components/Select/Select.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Select/Select.vue.js +78 -2
- package/dist/prometheus-framework/src/components/Select/Select.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/components/Select/Select.vue2.js +2 -78
- package/dist/prometheus-framework/src/modules/auth/store/auth.cjs +1 -1
- package/dist/prometheus-framework/src/modules/auth/store/auth.js +75 -93
- package/dist/prometheus-framework/src/modules/community/components/layouts/Community.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/community/components/layouts/Community.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/community/components/pages/CreateBlogPost.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/community/components/pages/CreateBlogPost.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue.cjs +4 -1
- package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue.js +61 -2
- package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue2.cjs +1 -4
- package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue2.js +2 -61
- package/dist/prometheus-framework/src/modules/constructor/components/sections/Constructor.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/constructor/components/sections/Constructor.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/events/components/layouts/layoutEvents.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/events/components/layouts/layoutEvents.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/events/components/pages/EditEvent.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/events/components/pages/EditEvent.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/gallery/components/sections/BackofficeGallery.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/gallery/components/sections/BackofficeGallery.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/gallery/components/sections/GalleryWithCategories.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/gallery/components/sections/GalleryWithCategories.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/blocks/DepartmentMemberModify.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/blocks/DepartmentMemberModify.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/organizations/components/pages/Organization.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/Organization.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationEdit.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationEdit.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/organizations/components/sections/Documents.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/sections/Documents.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersAdd.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersAdd.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/sections/Organizations.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/sections/Organizations.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/products/components/blocks/CardPosition.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/blocks/CardPosition.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/products/components/blocks/ImagesThumbnails.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/blocks/ImagesThumbnails.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/LeftoverAdd.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/LeftoverAdd.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/ProductEdit.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/ProductEdit.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/products/components/sections/EditProductInfo.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/sections/EditProductInfo.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/reports/components/sections/FormReport.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/reports/components/sections/FormReport.vue.js +2 -2
- package/dist/prometheus-framework.cjs.js +19 -19
- package/dist/prometheus-framework.es.js +2208 -2198
- package/dist/reports-270f69df.js +1 -0
- package/dist/reports-79cd9459.mjs +91 -0
- package/dist/reports.client.cjs +1 -0
- package/dist/reports.client.js +8 -0
- package/dist/states.validation-3b70f83a.js +1 -0
- package/dist/states.validation-944e334c.mjs +13 -0
- package/dist/style.css +1 -1
- package/dist/users.client.cjs +1 -0
- package/dist/users.client.js +632 -0
- package/dist/vue-draggable-next.esm-bundler-21a209c6.js +10 -0
- package/dist/vue-draggable-next.esm-bundler-ff6e3f52.mjs +1557 -0
- package/dist/vuex.esm-bundler-57d8b6ba.mjs +750 -0
- package/dist/vuex.esm-bundler-685cf29f.js +5 -0
- package/package.json +1 -1
- package/src/modules/auth/store/auth.js +20 -20
@@ -0,0 +1,295 @@
|
|
1
|
+
import { toRefs as I, openBlock as n, createElementBlock as d, createTextVNode as C, toDisplayString as w, unref as e, createVNode as r, createElementVNode as t, createCommentVNode as k, createBlock as U, withCtx as z, Fragment as N, renderList as P, withAsyncContext as E } from "vue";
|
2
|
+
import { useRoute as B, useRouter as V } from "vue-router";
|
3
|
+
import { a as R, _ as D, s as j } from "./categories-5b08da53.mjs";
|
4
|
+
import "./Tab.vue_vue_type_style_index_0_lang-4ed993c7.mjs";
|
5
|
+
import "./Field.vue_vue_type_style_index_0_scoped_f4a29b0d_lang-4ed993c7.mjs";
|
6
|
+
import { S as F } from "./Select-11ddabf5.mjs";
|
7
|
+
import { C as M } from "./Checkbox-5dbe7b23.mjs";
|
8
|
+
import { _ as L } from "./Button-9e1a9284.mjs";
|
9
|
+
import "vue-i18n";
|
10
|
+
import "./Popup.vue_vue_type_style_index_0_lang-4ed993c7.mjs";
|
11
|
+
import "./Button.vue_vue_type_style_index_0_lang-4ed993c7.mjs";
|
12
|
+
import { F as h } from "./Field-e5ad88d3.mjs";
|
13
|
+
import { u as O } from "./vuex.esm-bundler-57d8b6ba.mjs";
|
14
|
+
import { V as T } from "./vue-draggable-next.esm-bundler-ff6e3f52.mjs";
|
15
|
+
import { _ as q } from "./UploadImageMultiple-cb6c7188.mjs";
|
16
|
+
import { s as l, a as $ } from "./products-943fb95e.mjs";
|
17
|
+
import "./globals-96ba60e4.mjs";
|
18
|
+
import "./Breadcrumbs.vue_vue_type_style_index_0_lang-4ed993c7.mjs";
|
19
|
+
import "./index-a661083c.mjs";
|
20
|
+
import "./_plugin-vue_export-helper-dad06003.mjs";
|
21
|
+
const G = { class: "mn-big flex-column flex" }, H = {
|
22
|
+
__name: "EditProductInfo",
|
23
|
+
props: {
|
24
|
+
product: Object
|
25
|
+
},
|
26
|
+
setup(u) {
|
27
|
+
const c = u, o = O();
|
28
|
+
return I(c), (s, i) => (n(), d("div", G, [
|
29
|
+
C(w(e(o).products.current) + " ", 1),
|
30
|
+
r(F, {
|
31
|
+
options: [
|
32
|
+
"unpublished",
|
33
|
+
"published",
|
34
|
+
"archivied"
|
35
|
+
],
|
36
|
+
select: e(o).products.state.current.status,
|
37
|
+
"onUpdate:select": i[0] || (i[0] = (a) => e(o).products.state.current.status = a),
|
38
|
+
placeholder: "Display product",
|
39
|
+
class: "w-100 mn-small bg-white radius-small pd-medium"
|
40
|
+
}, null, 8, ["select"]),
|
41
|
+
r(h, {
|
42
|
+
field: e(o).products.state.current.name,
|
43
|
+
"onUpdate:field": i[1] || (i[1] = (a) => e(o).products.state.current.name = a),
|
44
|
+
placeholder: "Введите название",
|
45
|
+
class: "w-100 mn-small bg-white radius-small pd-medium"
|
46
|
+
}, null, 8, ["field"]),
|
47
|
+
r(h, {
|
48
|
+
field: e(o).products.state.current.price,
|
49
|
+
"onUpdate:field": i[2] || (i[2] = (a) => e(o).products.state.current.price = a),
|
50
|
+
placeholder: "Введите цену",
|
51
|
+
class: "w-100 mn-small bg-white radius-small pd-medium",
|
52
|
+
type: "number"
|
53
|
+
}, null, 8, ["field"]),
|
54
|
+
r(h, {
|
55
|
+
field: e(o).products.state.current.description,
|
56
|
+
"onUpdate:field": i[3] || (i[3] = (a) => e(o).products.state.current.description = a),
|
57
|
+
placeholder: "Введите описание",
|
58
|
+
class: "w-100 mn-small bg-white radius-small pd-medium",
|
59
|
+
type: "textarea"
|
60
|
+
}, null, 8, ["field"])
|
61
|
+
]));
|
62
|
+
}
|
63
|
+
}, J = { class: "mn-big" }, K = { class: "mn-small flex-nowrap flex" }, Q = { class: "mn-r-thin" }, W = { class: "flex-column flex" }, X = {
|
64
|
+
key: 0,
|
65
|
+
class: "w-100 mn-small"
|
66
|
+
}, Y = ["onClick"], Z = /* @__PURE__ */ t("svg", {
|
67
|
+
class: "i-small",
|
68
|
+
fill: "none",
|
69
|
+
height: "20",
|
70
|
+
viewBox: "0 0 20 20",
|
71
|
+
width: "20",
|
72
|
+
xmlns: "http://www.w3.org/2000/svg"
|
73
|
+
}, [
|
74
|
+
/* @__PURE__ */ t("path", {
|
75
|
+
"clip-rule": "evenodd",
|
76
|
+
d: "m7.27124 0h5.45456c1.0041 0 1.8182.814027 1.8182 1.81818v.90899h2.7278c1.0042 0 1.8182.81402 1.8182 1.81818v1.81818c0 1.00415-.814 1.81818-1.8182 1.81818h-.0735l-.8363 10.00009c0 1.0042-.814 1.8182-1.8182 1.8182h-9.09087c-1.00416 0-1.81818-.814-1.81504-1.7427l-.83964-10.07559h-.07187c-1.00415 0-1.818177-.81403-1.818177-1.81818v-1.81818c0-1.00416.814027-1.81818 1.818177-1.81818h2.72668v-.90899c0-1.004153.81402-1.81818 1.81818-1.81818zm-1.81889 18.1819-.83047-10h10.75152l-.827 9.9245-.0031.0755zm-2.72612-11.81799v-1.81818h14.54547v1.81818zm10.00137-4.54571v.90909h-5.45456v-.90909z",
|
77
|
+
fill: "#8a8a8a",
|
78
|
+
"fill-rule": "evenodd"
|
79
|
+
})
|
80
|
+
], -1), ee = [
|
81
|
+
Z
|
82
|
+
], S = {
|
83
|
+
__name: "EditParameters",
|
84
|
+
props: {
|
85
|
+
items: {
|
86
|
+
type: Array,
|
87
|
+
default: () => []
|
88
|
+
},
|
89
|
+
title: String,
|
90
|
+
addButtonLabel: String,
|
91
|
+
emptyMessage: String,
|
92
|
+
keyName: String,
|
93
|
+
valueName: String
|
94
|
+
},
|
95
|
+
emits: ["add-info", "delete-info"],
|
96
|
+
setup(u, { emit: c }) {
|
97
|
+
const o = u;
|
98
|
+
function s() {
|
99
|
+
c("add-info", {});
|
100
|
+
}
|
101
|
+
function i(m) {
|
102
|
+
c("delete-info", m);
|
103
|
+
}
|
104
|
+
const { items: a, title: _, emptyMessage: f, addButtonLabel: y, keyName: g, valueName: b } = I(o);
|
105
|
+
return (m, A) => (n(), d("div", J, [
|
106
|
+
t("div", K, [
|
107
|
+
t("h5", Q, w(e(_)), 1),
|
108
|
+
t("button", {
|
109
|
+
onClick: s,
|
110
|
+
class: "i-small pd-thin button-delete button"
|
111
|
+
}, "+")
|
112
|
+
]),
|
113
|
+
t("div", W, [
|
114
|
+
e(a).length == 0 ? (n(), d("p", X, w(e(f)), 1)) : k("", !0),
|
115
|
+
e(a).length == 0 ? (n(), U(L, {
|
116
|
+
key: 1,
|
117
|
+
onClick: s,
|
118
|
+
class: "button"
|
119
|
+
}, {
|
120
|
+
default: z(() => [
|
121
|
+
C(w(e(y)), 1)
|
122
|
+
]),
|
123
|
+
_: 1
|
124
|
+
})) : k("", !0),
|
125
|
+
(n(!0), d(N, null, P(e(a), (p, x) => (n(), d("div", {
|
126
|
+
class: "mn-medium w-100 flex-nowrap flex",
|
127
|
+
key: x
|
128
|
+
}, [
|
129
|
+
r(h, {
|
130
|
+
field: p[e(g)],
|
131
|
+
"onUpdate:field": (v) => p[e(g)] = v,
|
132
|
+
placeholder: "Название параметра",
|
133
|
+
class: "w-100 mn-r-small bg-white radius-small pd-medium"
|
134
|
+
}, null, 8, ["field", "onUpdate:field"]),
|
135
|
+
r(h, {
|
136
|
+
field: p[e(b)],
|
137
|
+
"onUpdate:field": (v) => p[e(b)] = v,
|
138
|
+
placeholder: "Значение параметра",
|
139
|
+
class: "w-100 bg-white radius-small pd-medium"
|
140
|
+
}, null, 8, ["field", "onUpdate:field"]),
|
141
|
+
t("button", {
|
142
|
+
onClick: (v) => i(x),
|
143
|
+
class: "mn-l-small button"
|
144
|
+
}, ee, 8, Y)
|
145
|
+
]))), 128))
|
146
|
+
])
|
147
|
+
]));
|
148
|
+
}
|
149
|
+
}, te = {
|
150
|
+
key: 0,
|
151
|
+
class: "mn-big"
|
152
|
+
}, se = { class: "flex-column block" }, oe = ["src"], ae = ["onClick"], le = {
|
153
|
+
__name: "EditProductImages",
|
154
|
+
props: {
|
155
|
+
product: Object
|
156
|
+
},
|
157
|
+
setup(u) {
|
158
|
+
function c(s) {
|
159
|
+
console.log(s), console.log(l.current.images), l.current.images.push(...s);
|
160
|
+
}
|
161
|
+
function o(s) {
|
162
|
+
l.current.images.splice(s, 1);
|
163
|
+
}
|
164
|
+
return (s, i) => (n(), d("div", null, [
|
165
|
+
u.product.images.length < 1 ? (n(), d("p", te, " The product doesn't have any images yet. ")) : k("", !0),
|
166
|
+
r(e(T), {
|
167
|
+
class: "cols-4 dragArea list-group w-full",
|
168
|
+
list: u.product.images,
|
169
|
+
sort: !0,
|
170
|
+
onChange: s.log
|
171
|
+
}, {
|
172
|
+
default: z(() => [
|
173
|
+
(n(!0), d(N, null, P(u.product.images, (a, _) => (n(), d("div", se, [
|
174
|
+
t("img", {
|
175
|
+
class: "w-100 mn-small",
|
176
|
+
src: (s.FILE_SERVER_URL || "") + a
|
177
|
+
}, null, 8, oe),
|
178
|
+
t("a", {
|
179
|
+
onClick: (f) => o(_),
|
180
|
+
class: "w-100 br-grey br-solid br-1px button"
|
181
|
+
}, "Удалить", 8, ae)
|
182
|
+
]))), 256))
|
183
|
+
]),
|
184
|
+
_: 1
|
185
|
+
}, 8, ["list", "onChange"]),
|
186
|
+
r(q, {
|
187
|
+
"onUpdate:images": c,
|
188
|
+
uploadPath: "organizations/" + s.$route.params._id + "/products",
|
189
|
+
class: "mn-t-semi pd-small w-100 button bg-main"
|
190
|
+
}, null, 8, ["uploadPath"])
|
191
|
+
]));
|
192
|
+
}
|
193
|
+
};
|
194
|
+
const ne = { class: "for-transition w-100" }, re = { class: "pd-b-zero pd-t-zero pd-thin" }, ie = { class: "pd-thin" }, de = { class: "flex-nowrap flex bg-grey pd-medium radius-big" }, ce = {
|
195
|
+
key: 0,
|
196
|
+
class: "mn-r-auto"
|
197
|
+
}, ue = {
|
198
|
+
key: 1,
|
199
|
+
class: "mn-r-auto"
|
200
|
+
}, me = { class: "flex-nowrap flex pd-thin" }, pe = { class: "pd-b-zero pd-t-zero pd-thin cols-2 gap-thin" }, _e = { class: "mn-thin bg-grey pd-medium o-hidden radius-big" }, he = /* @__PURE__ */ t("h3", { class: "mn-semi" }, "Profile", -1), fe = { class: "mn-semi" }, ge = /* @__PURE__ */ t("h5", null, "Categories", -1), be = { class: "" }, ve = { class: "mn-thin bg-grey pd-medium o-hidden radius-big" }, we = /* @__PURE__ */ t("h3", { class: "mn-semi" }, "Images", -1), Me = {
|
201
|
+
__name: "ProductEdit",
|
202
|
+
async setup(u) {
|
203
|
+
let c, o;
|
204
|
+
const s = B(), i = V();
|
205
|
+
[c, o] = E(() => R.fetchCategories()), await c, o(), s.params.product && ([c, o] = E(() => $.read({ _id: s.params.product })), await c, o());
|
206
|
+
function a() {
|
207
|
+
l.current.information.push({ name: "", value: "" });
|
208
|
+
}
|
209
|
+
function _(m) {
|
210
|
+
l.current.information.splice(m, 1);
|
211
|
+
}
|
212
|
+
function f() {
|
213
|
+
l.current.localization.push({ locale: "", text: "" });
|
214
|
+
}
|
215
|
+
function y(m) {
|
216
|
+
l.current.localization.splice(m, 1);
|
217
|
+
}
|
218
|
+
function g() {
|
219
|
+
s.params.product ? $.update(s.params.product, l.current) : $.create(s.params._id, l.current);
|
220
|
+
}
|
221
|
+
function b() {
|
222
|
+
i.push({ name: "ProductEdit", params: { _id: s.params._id, product: l.current._id } });
|
223
|
+
}
|
224
|
+
return (m, A) => (n(), d("div", ne, [
|
225
|
+
t("div", re, [
|
226
|
+
r(D, { class: "pd-medium bg-grey radius-big" })
|
227
|
+
]),
|
228
|
+
t("div", ie, [
|
229
|
+
t("header", de, [
|
230
|
+
e(s).params.product ? (n(), d("h1", ce, "Edit Product")) : (n(), d("h1", ue, "Create Product")),
|
231
|
+
t("section", me, [
|
232
|
+
r(L, {
|
233
|
+
submit: g,
|
234
|
+
callback: b
|
235
|
+
}, {
|
236
|
+
default: z(() => [
|
237
|
+
C("Save Product")
|
238
|
+
]),
|
239
|
+
_: 1
|
240
|
+
})
|
241
|
+
])
|
242
|
+
])
|
243
|
+
]),
|
244
|
+
t("div", pe, [
|
245
|
+
t("div", _e, [
|
246
|
+
he,
|
247
|
+
r(H, {
|
248
|
+
product: l.current
|
249
|
+
}, null, 8, ["product"]),
|
250
|
+
t("div", fe, [
|
251
|
+
ge,
|
252
|
+
(n(!0), d(N, null, P(j.all, (p, x) => (n(), U(M, {
|
253
|
+
label: p.name,
|
254
|
+
name: "categories",
|
255
|
+
value: p.url,
|
256
|
+
class: "w-100 mn-t-small bg-white radius-small pd-small",
|
257
|
+
radio: l.current.category
|
258
|
+
}, null, 8, ["label", "value", "radio"]))), 256))
|
259
|
+
]),
|
260
|
+
r(S, {
|
261
|
+
items: l.current.information,
|
262
|
+
title: "Parameters",
|
263
|
+
emptyMessage: "No parameters",
|
264
|
+
addButtonLabel: "Add parameter",
|
265
|
+
keyName: "name",
|
266
|
+
valueName: "value",
|
267
|
+
onAddInfo: a,
|
268
|
+
onDeleteInfo: _
|
269
|
+
}, null, 8, ["items"]),
|
270
|
+
r(S, {
|
271
|
+
items: l.current.localization,
|
272
|
+
title: "Localization",
|
273
|
+
emptyMessage: "No localizations",
|
274
|
+
addButtonLabel: "Add localization",
|
275
|
+
keyName: "locale",
|
276
|
+
valueName: "text",
|
277
|
+
onAddInfo: f,
|
278
|
+
onDeleteInfo: y
|
279
|
+
}, null, 8, ["items"])
|
280
|
+
]),
|
281
|
+
t("div", be, [
|
282
|
+
t("div", ve, [
|
283
|
+
we,
|
284
|
+
r(le, {
|
285
|
+
product: l.current
|
286
|
+
}, null, 8, ["product"])
|
287
|
+
])
|
288
|
+
])
|
289
|
+
])
|
290
|
+
]));
|
291
|
+
}
|
292
|
+
};
|
293
|
+
export {
|
294
|
+
Me as default
|
295
|
+
};
|
@@ -0,0 +1 @@
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),N=require("vue-router"),b=require("./categories-7ccd6be9.js");require("./Tab.vue_vue_type_style_index_0_lang-0ea8fbf8.js");require("./Field.vue_vue_type_style_index_0_scoped_f4a29b0d_lang-0ea8fbf8.js");const V=require("./Select-3ca5ab39.js"),y=require("./Checkbox-76f09248.js"),v=require("./Button-7643c9aa.js");require("vue-i18n");require("./Popup.vue_vue_type_style_index_0_lang-0ea8fbf8.js");require("./Button.vue_vue_type_style_index_0_lang-0ea8fbf8.js");const u=require("./Field-e2a43424.js"),B=require("./vuex.esm-bundler-685cf29f.js"),w=require("./vue-draggable-next.esm-bundler-21a209c6.js"),x=require("./UploadImageMultiple-eddaac87.js"),n=require("./products-3c43eb18.js");require("./globals-928eb13c.js");require("./Breadcrumbs.vue_vue_type_style_index_0_lang-0ea8fbf8.js");require("./index-b41aac19.js");require("./_plugin-vue_export-helper-f246444f.js");const q={class:"mn-big flex-column flex"},C={__name:"EditProductInfo",props:{product:Object},setup(s){const a=s,o=B.useStore();return e.toRefs(a),(t,l)=>(e.openBlock(),e.createElementBlock("div",q,[e.createTextVNode(e.toDisplayString(e.unref(o).products.current)+" ",1),e.createVNode(V.Select,{options:["unpublished","published","archivied"],select:e.unref(o).products.state.current.status,"onUpdate:select":l[0]||(l[0]=r=>e.unref(o).products.state.current.status=r),placeholder:"Display product",class:"w-100 mn-small bg-white radius-small pd-medium"},null,8,["select"]),e.createVNode(u.Field,{field:e.unref(o).products.state.current.name,"onUpdate:field":l[1]||(l[1]=r=>e.unref(o).products.state.current.name=r),placeholder:"Введите название",class:"w-100 mn-small bg-white radius-small pd-medium"},null,8,["field"]),e.createVNode(u.Field,{field:e.unref(o).products.state.current.price,"onUpdate:field":l[2]||(l[2]=r=>e.unref(o).products.state.current.price=r),placeholder:"Введите цену",class:"w-100 mn-small bg-white radius-small pd-medium",type:"number"},null,8,["field"]),e.createVNode(u.Field,{field:e.unref(o).products.state.current.description,"onUpdate:field":l[3]||(l[3]=r=>e.unref(o).products.state.current.description=r),placeholder:"Введите описание",class:"w-100 mn-small bg-white radius-small pd-medium",type:"textarea"},null,8,["field"])]))}},$={class:"mn-big"},S={class:"mn-small flex-nowrap flex"},z={class:"mn-r-thin"},P={class:"flex-column flex"},I={key:0,class:"w-100 mn-small"},L=["onClick"],U=e.createElementVNode("svg",{class:"i-small",fill:"none",height:"20",viewBox:"0 0 20 20",width:"20",xmlns:"http://www.w3.org/2000/svg"},[e.createElementVNode("path",{"clip-rule":"evenodd",d:"m7.27124 0h5.45456c1.0041 0 1.8182.814027 1.8182 1.81818v.90899h2.7278c1.0042 0 1.8182.81402 1.8182 1.81818v1.81818c0 1.00415-.814 1.81818-1.8182 1.81818h-.0735l-.8363 10.00009c0 1.0042-.814 1.8182-1.8182 1.8182h-9.09087c-1.00416 0-1.81818-.814-1.81504-1.7427l-.83964-10.07559h-.07187c-1.00415 0-1.818177-.81403-1.818177-1.81818v-1.81818c0-1.00416.814027-1.81818 1.818177-1.81818h2.72668v-.90899c0-1.004153.81402-1.81818 1.81818-1.81818zm-1.81889 18.1819-.83047-10h10.75152l-.827 9.9245-.0031.0755zm-2.72612-11.81799v-1.81818h14.54547v1.81818zm10.00137-4.54571v.90909h-5.45456v-.90909z",fill:"#8a8a8a","fill-rule":"evenodd"})],-1),A=[U],k={__name:"EditParameters",props:{items:{type:Array,default:()=>[]},title:String,addButtonLabel:String,emptyMessage:String,keyName:String,valueName:String},emits:["add-info","delete-info"],setup(s,{emit:a}){const o=s;function t(){a("add-info",{})}function l(c){a("delete-info",c)}const{items:r,title:d,emptyMessage:m,addButtonLabel:h,keyName:p,valueName:f}=e.toRefs(o);return(c,E)=>(e.openBlock(),e.createElementBlock("div",$,[e.createElementVNode("div",S,[e.createElementVNode("h5",z,e.toDisplayString(e.unref(d)),1),e.createElementVNode("button",{onClick:t,class:"i-small pd-thin button-delete button"},"+")]),e.createElementVNode("div",P,[e.unref(r).length==0?(e.openBlock(),e.createElementBlock("p",I,e.toDisplayString(e.unref(m)),1)):e.createCommentVNode("",!0),e.unref(r).length==0?(e.openBlock(),e.createBlock(v._sfc_main,{key:1,onClick:t,class:"button"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(h)),1)]),_:1})):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(r),(i,g)=>(e.openBlock(),e.createElementBlock("div",{class:"mn-medium w-100 flex-nowrap flex",key:g},[e.createVNode(u.Field,{field:i[e.unref(p)],"onUpdate:field":_=>i[e.unref(p)]=_,placeholder:"Название параметра",class:"w-100 mn-r-small bg-white radius-small pd-medium"},null,8,["field","onUpdate:field"]),e.createVNode(u.Field,{field:i[e.unref(f)],"onUpdate:field":_=>i[e.unref(f)]=_,placeholder:"Значение параметра",class:"w-100 bg-white radius-small pd-medium"},null,8,["field","onUpdate:field"]),e.createElementVNode("button",{onClick:_=>l(g),class:"mn-l-small button"},A,8,L)]))),128))])]))}},F={key:0,class:"mn-big"},D={class:"flex-column block"},R=["src"],M=["onClick"],T={__name:"EditProductImages",props:{product:Object},setup(s){function a(t){console.log(t),console.log(n.state.current.images),n.state.current.images.push(...t)}function o(t){n.state.current.images.splice(t,1)}return(t,l)=>(e.openBlock(),e.createElementBlock("div",null,[s.product.images.length<1?(e.openBlock(),e.createElementBlock("p",F," The product doesn't have any images yet. ")):e.createCommentVNode("",!0),e.createVNode(e.unref(w.VueDraggableNext),{class:"cols-4 dragArea list-group w-full",list:s.product.images,sort:!0,onChange:t.log},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.product.images,(r,d)=>(e.openBlock(),e.createElementBlock("div",D,[e.createElementVNode("img",{class:"w-100 mn-small",src:(t.FILE_SERVER_URL||"")+r},null,8,R),e.createElementVNode("a",{onClick:m=>o(d),class:"w-100 br-grey br-solid br-1px button"},"Удалить",8,M)]))),256))]),_:1},8,["list","onChange"]),e.createVNode(x._sfc_main,{"onUpdate:images":a,uploadPath:"organizations/"+t.$route.params._id+"/products",class:"mn-t-semi pd-small w-100 button bg-main"},null,8,["uploadPath"])]))}};const j={class:"for-transition w-100"},O={class:"pd-b-zero pd-t-zero pd-thin"},G={class:"pd-thin"},H={class:"flex-nowrap flex bg-grey pd-medium radius-big"},J={key:0,class:"mn-r-auto"},K={key:1,class:"mn-r-auto"},Q={class:"flex-nowrap flex pd-thin"},W={class:"pd-b-zero pd-t-zero pd-thin cols-2 gap-thin"},X={class:"mn-thin bg-grey pd-medium o-hidden radius-big"},Y=e.createElementVNode("h3",{class:"mn-semi"},"Profile",-1),Z={class:"mn-semi"},ee=e.createElementVNode("h5",null,"Categories",-1),te={class:""},oe={class:"mn-thin bg-grey pd-medium o-hidden radius-big"},ne=e.createElementVNode("h3",{class:"mn-semi"},"Images",-1),re={__name:"ProductEdit",async setup(s){let a,o;const t=N.useRoute(),l=N.useRouter();[a,o]=e.withAsyncContext(()=>b.actions.fetchCategories()),await a,o(),t.params.product&&([a,o]=e.withAsyncContext(()=>n.actions.read({_id:t.params.product})),await a,o());function r(){n.state.current.information.push({name:"",value:""})}function d(c){n.state.current.information.splice(c,1)}function m(){n.state.current.localization.push({locale:"",text:""})}function h(c){n.state.current.localization.splice(c,1)}function p(){t.params.product?n.actions.update(t.params.product,n.state.current):n.actions.create(t.params._id,n.state.current)}function f(){l.push({name:"ProductEdit",params:{_id:t.params._id,product:n.state.current._id}})}return(c,E)=>(e.openBlock(),e.createElementBlock("div",j,[e.createElementVNode("div",O,[e.createVNode(b._sfc_main,{class:"pd-medium bg-grey radius-big"})]),e.createElementVNode("div",G,[e.createElementVNode("header",H,[e.unref(t).params.product?(e.openBlock(),e.createElementBlock("h1",J,"Edit Product")):(e.openBlock(),e.createElementBlock("h1",K,"Create Product")),e.createElementVNode("section",Q,[e.createVNode(v._sfc_main,{submit:p,callback:f},{default:e.withCtx(()=>[e.createTextVNode("Save Product")]),_:1})])])]),e.createElementVNode("div",W,[e.createElementVNode("div",X,[Y,e.createVNode(C,{product:n.state.current},null,8,["product"]),e.createElementVNode("div",Z,[ee,(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(b.state.all,(i,g)=>(e.openBlock(),e.createBlock(y.Checkbox,{label:i.name,name:"categories",value:i.url,class:"w-100 mn-t-small bg-white radius-small pd-small",radio:n.state.current.category},null,8,["label","value","radio"]))),256))]),e.createVNode(k,{items:n.state.current.information,title:"Parameters",emptyMessage:"No parameters",addButtonLabel:"Add parameter",keyName:"name",valueName:"value",onAddInfo:r,onDeleteInfo:d},null,8,["items"]),e.createVNode(k,{items:n.state.current.localization,title:"Localization",emptyMessage:"No localizations",addButtonLabel:"Add localization",keyName:"locale",valueName:"text",onAddInfo:m,onDeleteInfo:h},null,8,["items"])]),e.createElementVNode("div",te,[e.createElementVNode("div",oe,[ne,e.createVNode(T,{product:n.state.current},null,8,["product"])])])])]))}};exports.default=re;
|
@@ -0,0 +1 @@
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),i=require("vue-router"),s=require("./products-3c43eb18.js"),c=require("./Feed-98b47c6f.js"),d=require("./CardProduct-92affca1.js"),m=require("./Tab-2c1e4224.js");require("./index-b41aac19.js");require("./globals-928eb13c.js");require("vue-i18n");require("./SkeletonEvent-eb284de8.js");require("./_plugin-vue_export-helper-f246444f.js");require("./Loader.vue_vue_type_style_index_0_lang-0ea8fbf8.js");require("./EmptyState-d65bab5b.js");require("./vuex.esm-bundler-685cf29f.js");require("./Tab.vue_vue_type_style_index_0_lang-0ea8fbf8.js");const p={class:"mn-medium flex-v-center flex-nowrap flex"},q=e.createElementVNode("h2",{class:"mn-r-medium"},"Products",-1),b={__name:"ProductsBackoffice",setup(_){const r=i.useRoute(),l=i.useRouter(),u=e.ref(r.query.tab?r.query.tab:"posts");return r.query.tab=u.value,e.watch(u,a=>{l.replace({query:{...r.query,tab:a}})}),e.onMounted(async()=>{await s.actions.fetchProducts()}),(a,o)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("header",p,[q,e.createElementVNode("button",{onClick:o[0]||(o[0]=t=>a.$router.push({name:"AddProduct"})),class:"radius-100p i-big hover-scale-1 cursor-pointer t-white bg-second"}," + ")]),e.createVNode(m._sfc_main,{selected:u.value,"onUpdate:selected":o[1]||(o[1]=t=>u.value=t),tabs:[{name:"All",value:"all"},{name:"Published",value:"published"},{name:"Unpublished",value:"unpublished"},{name:"Archivied",value:"archivied"}],class:"mn-small o-hidden h5 radius-big bg-grey"},null,8,["selected"]),e.createVNode(c._sfc_main,{states:{empty:{title:"No Products Found",description:"Currently, there are no products available."}},store:{read:t=>s.actions.read(t),state:s.state},options:{limit:15,organization:e.unref(r).params._id,status:u.value}},{default:e.withCtx(({items:t})=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t,n=>(e.openBlock(),e.createBlock(d._sfc_main,{key:n._id,product:n,onClick:h=>a.$router.push({name:"Product Organization",params:{_id:e.unref(r).params._id,product:n._id}})},null,8,["product","onClick"]))),128))]),_:1},8,["states","store","options"])],64))}};exports.default=b;
|
@@ -0,0 +1,85 @@
|
|
1
|
+
import { ref as _, watch as f, onMounted as h, openBlock as i, createElementBlock as u, Fragment as l, createElementVNode as n, createVNode as m, unref as d, withCtx as b, renderList as v, createBlock as y } from "vue";
|
2
|
+
import { useRoute as g, useRouter as k } from "vue-router";
|
3
|
+
import { a as c, s as P } from "./products-943fb95e.mjs";
|
4
|
+
import { _ as $ } from "./Feed-d114330c.mjs";
|
5
|
+
import { _ as q } from "./CardProduct-fca53299.mjs";
|
6
|
+
import { _ as w } from "./Tab-054b61f7.mjs";
|
7
|
+
import "./index-a661083c.mjs";
|
8
|
+
import "./globals-96ba60e4.mjs";
|
9
|
+
import "vue-i18n";
|
10
|
+
import "./SkeletonEvent-8690422d.mjs";
|
11
|
+
import "./_plugin-vue_export-helper-dad06003.mjs";
|
12
|
+
import "./Loader.vue_vue_type_style_index_0_lang-4ed993c7.mjs";
|
13
|
+
import "./EmptyState-e404b05d.mjs";
|
14
|
+
import "./vuex.esm-bundler-57d8b6ba.mjs";
|
15
|
+
import "./Tab.vue_vue_type_style_index_0_lang-4ed993c7.mjs";
|
16
|
+
const C = { class: "mn-medium flex-v-center flex-nowrap flex" }, x = /* @__PURE__ */ n("h2", { class: "mn-r-medium" }, "Products", -1), J = {
|
17
|
+
__name: "ProductsBackoffice",
|
18
|
+
setup(B) {
|
19
|
+
const e = g(), p = k(), r = _(e.query.tab ? e.query.tab : "posts");
|
20
|
+
return e.query.tab = r.value, f(r, (o) => {
|
21
|
+
p.replace({ query: { ...e.query, tab: o } });
|
22
|
+
}), h(async () => {
|
23
|
+
await c.fetchProducts();
|
24
|
+
}), (o, a) => (i(), u(l, null, [
|
25
|
+
n("header", C, [
|
26
|
+
x,
|
27
|
+
n("button", {
|
28
|
+
onClick: a[0] || (a[0] = (t) => o.$router.push({
|
29
|
+
name: "AddProduct"
|
30
|
+
})),
|
31
|
+
class: "radius-100p i-big hover-scale-1 cursor-pointer t-white bg-second"
|
32
|
+
}, " + ")
|
33
|
+
]),
|
34
|
+
m(w, {
|
35
|
+
selected: r.value,
|
36
|
+
"onUpdate:selected": a[1] || (a[1] = (t) => r.value = t),
|
37
|
+
tabs: [
|
38
|
+
{ name: "All", value: "all" },
|
39
|
+
{ name: "Published", value: "published" },
|
40
|
+
{ name: "Unpublished", value: "unpublished" },
|
41
|
+
{ name: "Archivied", value: "archivied" }
|
42
|
+
],
|
43
|
+
class: "mn-small o-hidden h5 radius-big bg-grey"
|
44
|
+
}, null, 8, ["selected"]),
|
45
|
+
m($, {
|
46
|
+
states: {
|
47
|
+
empty: {
|
48
|
+
title: "No Products Found",
|
49
|
+
description: "Currently, there are no products available."
|
50
|
+
}
|
51
|
+
},
|
52
|
+
store: {
|
53
|
+
read: (t) => c.read(t),
|
54
|
+
state: P
|
55
|
+
},
|
56
|
+
options: {
|
57
|
+
limit: 15,
|
58
|
+
organization: d(e).params._id,
|
59
|
+
status: r.value
|
60
|
+
// user: user
|
61
|
+
}
|
62
|
+
}, {
|
63
|
+
default: b(({
|
64
|
+
items: t
|
65
|
+
}) => [
|
66
|
+
(i(!0), u(l, null, v(t, (s) => (i(), y(q, {
|
67
|
+
key: s._id,
|
68
|
+
product: s,
|
69
|
+
onClick: (A) => o.$router.push({
|
70
|
+
name: "Product Organization",
|
71
|
+
params: {
|
72
|
+
_id: d(e).params._id,
|
73
|
+
product: s._id
|
74
|
+
}
|
75
|
+
})
|
76
|
+
}, null, 8, ["product", "onClick"]))), 128))
|
77
|
+
]),
|
78
|
+
_: 1
|
79
|
+
}, 8, ["states", "store", "options"])
|
80
|
+
], 64));
|
81
|
+
}
|
82
|
+
};
|
83
|
+
export {
|
84
|
+
J as default
|
85
|
+
};
|
@@ -0,0 +1 @@
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),n=require("vue-router"),d=require("./Tab-2c1e4224.js"),a=require("./Feed-8b554fc1.js"),u=require("./auth-f018f5b3.js");require("./Tab.vue_vue_type_style_index_0_lang-0ea8fbf8.js");require("./Loader-21f016da.js");require("./Loader.vue_vue_type_style_index_0_lang-0ea8fbf8.js");require("./_plugin-vue_export-helper-f246444f.js");require("./EmptyState-d65bab5b.js");require("./CardBlogpost-c7364b1e.js");require("./index-b41aac19.js");require("./globals-928eb13c.js");require("vue-i18n");require("./Chips-0fdb31c9.js");require("./PlaceholderUserpic-47f6f319.js");require("./Dropdown-31115457.js");require("./Popup-795f5c88.js");require("./IconCross-5bf93179.js");require("./Popup.vue_vue_type_style_index_0_lang-0ea8fbf8.js");require("./Button-7643c9aa.js");require("./Button.vue_vue_type_style_index_0_lang-0ea8fbf8.js");require("./Select-3ca5ab39.js");require("./reports-270f69df.js");require("./click-outside-0b0727d1.js");require("./memberships-393765d8.js");require("./IconEdit-c0469b45.js");const m={class:"pd-thin"},q={class:"mn-medium flex-v-center flex-nowrap flex"},p=e.createElementVNode("h2",{class:"mn-r-medium"},"Posts",-1),_={__name:"ProfileBlogposts",setup(f){const r=n.useRoute(),l=n.useRouter();let c=r.query.tab?r.query.tab:"posts";const t=e.ref(c);return r.query.tab=t.value,e.watch(t,s=>{l.replace({query:{...r.query,tab:s}})}),(s,o)=>(e.openBlock(),e.createElementBlock("div",m,[e.createElementVNode("header",q,[p,u.state.user._id===e.unref(r).params._id?(e.openBlock(),e.createElementBlock("button",{key:0,onClick:o[0]||(o[0]=i=>s.$router.push({name:"Create BlogPost"})),class:"radius-100p i-big hover-scale-1 cursor-pointer t-white bg-second"}," + ")):e.createCommentVNode("",!0)]),u.state.user._id===e.unref(r).params._id?(e.openBlock(),e.createBlock(d._sfc_main,{key:0,selected:t.value,"onUpdate:selected":o[1]||(o[1]=i=>t.value=i),tabs:[{name:"My posts",value:"posts"},{name:"Drafts",value:"drafts"},{name:"Following",value:"following"}],class:"mn-small o-hidden h5 radius-big bg-grey"},null,8,["selected"])):e.createCommentVNode("",!0),t.value==="posts"?(e.openBlock(),e.createBlock(a._sfc_main,{key:1,user:u.state.user._id,creator:e.unref(r).params._id},null,8,["user","creator"])):e.createCommentVNode("",!0),t.value==="drafts"?(e.openBlock(),e.createBlock(a._sfc_main,{key:2,user:u.state.user._id,creator:e.unref(r).params._id,status:"draft"},null,8,["user","creator"])):e.createCommentVNode("",!0),t.value==="following"?(e.openBlock(),e.createBlock(a._sfc_main,{key:3,user:u.state.user._id,following:e.unref(r).params._id},null,8,["user","following"])):e.createCommentVNode("",!0)]))}};exports.default=_;
|
@@ -0,0 +1,79 @@
|
|
1
|
+
import { ref as f, watch as g, openBlock as t, createElementBlock as n, createElementVNode as d, unref as o, createCommentVNode as s, createBlock as m } from "vue";
|
2
|
+
import { useRoute as v, useRouter as b } from "vue-router";
|
3
|
+
import { _ as y } from "./Tab-054b61f7.mjs";
|
4
|
+
import { _ as l } from "./Feed-a21d6007.mjs";
|
5
|
+
import { s as a } from "./auth-56dc2ba7.mjs";
|
6
|
+
import "./Tab.vue_vue_type_style_index_0_lang-4ed993c7.mjs";
|
7
|
+
import "./Loader-cd422786.mjs";
|
8
|
+
import "./Loader.vue_vue_type_style_index_0_lang-4ed993c7.mjs";
|
9
|
+
import "./_plugin-vue_export-helper-dad06003.mjs";
|
10
|
+
import "./EmptyState-e404b05d.mjs";
|
11
|
+
import "./CardBlogpost-3c92fbc9.mjs";
|
12
|
+
import "./index-a661083c.mjs";
|
13
|
+
import "./globals-96ba60e4.mjs";
|
14
|
+
import "vue-i18n";
|
15
|
+
import "./Chips-f1a0d085.mjs";
|
16
|
+
import "./PlaceholderUserpic-14c6ea7e.mjs";
|
17
|
+
import "./Dropdown-cab3605b.mjs";
|
18
|
+
import "./Popup-0915427c.mjs";
|
19
|
+
import "./IconCross-84cb1292.mjs";
|
20
|
+
import "./Popup.vue_vue_type_style_index_0_lang-4ed993c7.mjs";
|
21
|
+
import "./Button-9e1a9284.mjs";
|
22
|
+
import "./Button.vue_vue_type_style_index_0_lang-4ed993c7.mjs";
|
23
|
+
import "./Select-11ddabf5.mjs";
|
24
|
+
import "./reports-79cd9459.mjs";
|
25
|
+
import "./click-outside-6101836c.mjs";
|
26
|
+
import "./memberships-12210953.mjs";
|
27
|
+
import "./IconEdit-9edfd74d.mjs";
|
28
|
+
const h = { class: "pd-thin" }, k = { class: "mn-medium flex-v-center flex-nowrap flex" }, w = /* @__PURE__ */ d("h2", { class: "mn-r-medium" }, "Posts", -1), X = {
|
29
|
+
__name: "ProfileBlogposts",
|
30
|
+
setup(q) {
|
31
|
+
const e = v(), c = b();
|
32
|
+
let _ = e.query.tab ? e.query.tab : "posts";
|
33
|
+
const r = f(_);
|
34
|
+
return e.query.tab = r.value, g(r, (u) => {
|
35
|
+
c.replace({ query: { ...e.query, tab: u } });
|
36
|
+
}), (u, i) => (t(), n("div", h, [
|
37
|
+
d("header", k, [
|
38
|
+
w,
|
39
|
+
a.user._id === o(e).params._id ? (t(), n("button", {
|
40
|
+
key: 0,
|
41
|
+
onClick: i[0] || (i[0] = (p) => u.$router.push({
|
42
|
+
name: "Create BlogPost"
|
43
|
+
})),
|
44
|
+
class: "radius-100p i-big hover-scale-1 cursor-pointer t-white bg-second"
|
45
|
+
}, " + ")) : s("", !0)
|
46
|
+
]),
|
47
|
+
a.user._id === o(e).params._id ? (t(), m(y, {
|
48
|
+
key: 0,
|
49
|
+
selected: r.value,
|
50
|
+
"onUpdate:selected": i[1] || (i[1] = (p) => r.value = p),
|
51
|
+
tabs: [
|
52
|
+
{ name: "My posts", value: "posts" },
|
53
|
+
{ name: "Drafts", value: "drafts" },
|
54
|
+
{ name: "Following", value: "following" }
|
55
|
+
],
|
56
|
+
class: "mn-small o-hidden h5 radius-big bg-grey"
|
57
|
+
}, null, 8, ["selected"])) : s("", !0),
|
58
|
+
r.value === "posts" ? (t(), m(l, {
|
59
|
+
key: 1,
|
60
|
+
user: a.user._id,
|
61
|
+
creator: o(e).params._id
|
62
|
+
}, null, 8, ["user", "creator"])) : s("", !0),
|
63
|
+
r.value === "drafts" ? (t(), m(l, {
|
64
|
+
key: 2,
|
65
|
+
user: a.user._id,
|
66
|
+
creator: o(e).params._id,
|
67
|
+
status: "draft"
|
68
|
+
}, null, 8, ["user", "creator"])) : s("", !0),
|
69
|
+
r.value === "following" ? (t(), m(l, {
|
70
|
+
key: 3,
|
71
|
+
user: a.user._id,
|
72
|
+
following: o(e).params._id
|
73
|
+
}, null, 8, ["user", "following"])) : s("", !0)
|
74
|
+
]));
|
75
|
+
}
|
76
|
+
};
|
77
|
+
export {
|
78
|
+
X as default
|
79
|
+
};
|
@@ -0,0 +1,70 @@
|
|
1
|
+
import { ref as f, watch as v, openBlock as o, createElementBlock as u, createElementVNode as d, unref as a, createCommentVNode as i, createVNode as b, createBlock as c } from "vue";
|
2
|
+
import { useRoute as y, useRouter as h } from "vue-router";
|
3
|
+
import { _ as k } from "./Tab-054b61f7.mjs";
|
4
|
+
import { _ as l } from "./Feed-c41ef736.mjs";
|
5
|
+
import { s } from "./auth-56dc2ba7.mjs";
|
6
|
+
import "./Tab.vue_vue_type_style_index_0_lang-4ed993c7.mjs";
|
7
|
+
import "./Loader.vue_vue_type_style_index_0_lang-4ed993c7.mjs";
|
8
|
+
import "./EmptyState-e404b05d.mjs";
|
9
|
+
import "./Chips-f1a0d085.mjs";
|
10
|
+
import "./PlaceholderUserpic-14c6ea7e.mjs";
|
11
|
+
import "./_plugin-vue_export-helper-dad06003.mjs";
|
12
|
+
import "./Dropdown-cab3605b.mjs";
|
13
|
+
import "./Popup-0915427c.mjs";
|
14
|
+
import "vue-i18n";
|
15
|
+
import "./IconCross-84cb1292.mjs";
|
16
|
+
import "./Popup.vue_vue_type_style_index_0_lang-4ed993c7.mjs";
|
17
|
+
import "./Button-9e1a9284.mjs";
|
18
|
+
import "./Button.vue_vue_type_style_index_0_lang-4ed993c7.mjs";
|
19
|
+
import "./Select-11ddabf5.mjs";
|
20
|
+
import "./reports-79cd9459.mjs";
|
21
|
+
import "./globals-96ba60e4.mjs";
|
22
|
+
import "./index-a661083c.mjs";
|
23
|
+
import "./click-outside-6101836c.mjs";
|
24
|
+
import "./memberships-12210953.mjs";
|
25
|
+
import "./IconEdit-9edfd74d.mjs";
|
26
|
+
import "./SkeletonEvent-8690422d.mjs";
|
27
|
+
const g = { class: "pd-thin" }, w = { class: "mn-medium flex-v-center flex-nowrap flex" }, q = /* @__PURE__ */ d("h2", { class: "mn-r-medium" }, " Events ", -1), X = {
|
28
|
+
__name: "ProfileEvents",
|
29
|
+
setup(x) {
|
30
|
+
const e = y(), m = h();
|
31
|
+
let _ = e.query.tab ? e.query.tab : "owner";
|
32
|
+
const r = f(_);
|
33
|
+
return e.query.tab = r.value, v(r, (n) => {
|
34
|
+
m.replace({ query: { ...e.query, tab: n } });
|
35
|
+
}), (n, t) => (o(), u("div", g, [
|
36
|
+
d("header", w, [
|
37
|
+
q,
|
38
|
+
s.user._id === a(e).params._id ? (o(), u("button", {
|
39
|
+
key: 0,
|
40
|
+
onClick: t[0] || (t[0] = (p) => a(m).push({ name: "Create Event" })),
|
41
|
+
class: "radius-100p i-big hover-scale-1 cursor-pointer t-white bg-second"
|
42
|
+
}, " + ")) : i("", !0)
|
43
|
+
]),
|
44
|
+
b(k, {
|
45
|
+
selected: r.value,
|
46
|
+
"onUpdate:selected": t[1] || (t[1] = (p) => r.value = p),
|
47
|
+
tabs: [
|
48
|
+
{ name: "My", value: "owner" },
|
49
|
+
{ name: "Participant", value: "participant" }
|
50
|
+
],
|
51
|
+
class: "mn-small o-hidden h5 radius-big bg-grey"
|
52
|
+
}, null, 8, ["selected"]),
|
53
|
+
r.value === "owner" ? (o(), c(l, {
|
54
|
+
key: 0,
|
55
|
+
user: s.user._id,
|
56
|
+
creator: a(e).params._id,
|
57
|
+
sortOrder: "asc"
|
58
|
+
}, null, 8, ["user", "creator"])) : i("", !0),
|
59
|
+
r.value === "participant" ? (o(), c(l, {
|
60
|
+
key: 1,
|
61
|
+
user: s.user._id,
|
62
|
+
participant: a(e).params._id,
|
63
|
+
sortOrder: "desc"
|
64
|
+
}, null, 8, ["user", "participant"])) : i("", !0)
|
65
|
+
]));
|
66
|
+
}
|
67
|
+
};
|
68
|
+
export {
|
69
|
+
X as default
|
70
|
+
};
|
@@ -0,0 +1 @@
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),o=require("vue-router"),d=require("./Tab-2c1e4224.js"),c=require("./Feed-b39138c8.js"),a=require("./auth-f018f5b3.js");require("./Tab.vue_vue_type_style_index_0_lang-0ea8fbf8.js");require("./Loader.vue_vue_type_style_index_0_lang-0ea8fbf8.js");require("./EmptyState-d65bab5b.js");require("./Chips-0fdb31c9.js");require("./PlaceholderUserpic-47f6f319.js");require("./_plugin-vue_export-helper-f246444f.js");require("./Dropdown-31115457.js");require("./Popup-795f5c88.js");require("vue-i18n");require("./IconCross-5bf93179.js");require("./Popup.vue_vue_type_style_index_0_lang-0ea8fbf8.js");require("./Button-7643c9aa.js");require("./Button.vue_vue_type_style_index_0_lang-0ea8fbf8.js");require("./Select-3ca5ab39.js");require("./reports-270f69df.js");require("./globals-928eb13c.js");require("./index-b41aac19.js");require("./click-outside-0b0727d1.js");require("./memberships-393765d8.js");require("./IconEdit-c0469b45.js");require("./SkeletonEvent-eb284de8.js");const q={class:"pd-thin"},m={class:"mn-medium flex-v-center flex-nowrap flex"},p=e.createElementVNode("h2",{class:"mn-r-medium"}," Events ",-1),_={__name:"ProfileEvents",setup(v){const r=o.useRoute(),i=o.useRouter();let l=r.query.tab?r.query.tab:"owner";const t=e.ref(l);return r.query.tab=t.value,e.watch(t,n=>{i.replace({query:{...r.query,tab:n}})}),(n,u)=>(e.openBlock(),e.createElementBlock("div",q,[e.createElementVNode("header",m,[p,a.state.user._id===e.unref(r).params._id?(e.openBlock(),e.createElementBlock("button",{key:0,onClick:u[0]||(u[0]=s=>e.unref(i).push({name:"Create Event"})),class:"radius-100p i-big hover-scale-1 cursor-pointer t-white bg-second"}," + ")):e.createCommentVNode("",!0)]),e.createVNode(d._sfc_main,{selected:t.value,"onUpdate:selected":u[1]||(u[1]=s=>t.value=s),tabs:[{name:"My",value:"owner"},{name:"Participant",value:"participant"}],class:"mn-small o-hidden h5 radius-big bg-grey"},null,8,["selected"]),t.value==="owner"?(e.openBlock(),e.createBlock(c._sfc_main,{key:0,user:a.state.user._id,creator:e.unref(r).params._id,sortOrder:"asc"},null,8,["user","creator"])):e.createCommentVNode("",!0),t.value==="participant"?(e.openBlock(),e.createBlock(c._sfc_main,{key:1,user:a.state.user._id,participant:e.unref(r).params._id,sortOrder:"desc"},null,8,["user","participant"])):e.createCommentVNode("",!0)]))}};exports.default=_;
|
@@ -0,0 +1,73 @@
|
|
1
|
+
import { ref as h, watch as w, openBlock as o, createElementBlock as l, createElementVNode as f, unref as s, createCommentVNode as i, createVNode as m, Transition as d, withCtx as p, createBlock as c } from "vue";
|
2
|
+
import { useRoute as y, useRouter as g } from "vue-router";
|
3
|
+
import { _ as k } from "./Tab-054b61f7.mjs";
|
4
|
+
import { _ } from "./Feed-2d443ad2.mjs";
|
5
|
+
import { s as u } from "./auth-56dc2ba7.mjs";
|
6
|
+
import "./Tab.vue_vue_type_style_index_0_lang-4ed993c7.mjs";
|
7
|
+
import "./Loader.vue_vue_type_style_index_0_lang-4ed993c7.mjs";
|
8
|
+
import "./EmptyState-e404b05d.mjs";
|
9
|
+
import "./CardOrganization-facb77f7.mjs";
|
10
|
+
import "./ButtonToggleMembership-7ee4dc8e.mjs";
|
11
|
+
import "./Button-9e1a9284.mjs";
|
12
|
+
import "./Button.vue_vue_type_style_index_0_lang-4ed993c7.mjs";
|
13
|
+
import "./memberships-12210953.mjs";
|
14
|
+
import "./index-a661083c.mjs";
|
15
|
+
import "./globals-96ba60e4.mjs";
|
16
|
+
import "vue-i18n";
|
17
|
+
import "./SkeletonOrganization-8690422d.mjs";
|
18
|
+
import "./_plugin-vue_export-helper-dad06003.mjs";
|
19
|
+
import "./organizations-587d5a4d.mjs";
|
20
|
+
const q = { class: "pd-thin" }, x = { class: "mn-medium flex-v-center flex-nowrap flex" }, C = /* @__PURE__ */ f("h2", { class: "mn-r-medium" }, "Groups", -1), K = {
|
21
|
+
__name: "ProfileOrganizations",
|
22
|
+
setup($) {
|
23
|
+
const e = y(), b = g();
|
24
|
+
let v = e.query.tab ? e.query.tab : "member";
|
25
|
+
const r = h(v);
|
26
|
+
return e.query.tab = r.value, w(r, (a) => {
|
27
|
+
b.replace({ query: { ...e.query, tab: a } });
|
28
|
+
}), (a, t) => (o(), l("div", q, [
|
29
|
+
f("header", x, [
|
30
|
+
C,
|
31
|
+
u.user._id === s(e).params._id ? (o(), l("button", {
|
32
|
+
key: 0,
|
33
|
+
onClick: t[0] || (t[0] = (n) => a.$router.push({
|
34
|
+
name: "Create Organization"
|
35
|
+
})),
|
36
|
+
class: "radius-100p i-big hover-scale-1 cursor-pointer t-white bg-second"
|
37
|
+
}, " + ")) : i("", !0)
|
38
|
+
]),
|
39
|
+
m(k, {
|
40
|
+
selected: r.value,
|
41
|
+
"onUpdate:selected": t[1] || (t[1] = (n) => r.value = n),
|
42
|
+
tabs: [
|
43
|
+
{ name: "Member", value: "member" },
|
44
|
+
{ name: "Follower", value: "follower" }
|
45
|
+
],
|
46
|
+
class: "mn-medium mn-r-medium o-hidden h5 radius-big bg-grey"
|
47
|
+
}, null, 8, ["selected"]),
|
48
|
+
m(d, { name: "slide-fade" }, {
|
49
|
+
default: p(() => [
|
50
|
+
r.value === "member" ? (o(), c(_, {
|
51
|
+
key: 0,
|
52
|
+
user: u.user._id,
|
53
|
+
owner: s(e).params._id
|
54
|
+
}, null, 8, ["user", "owner"])) : i("", !0)
|
55
|
+
]),
|
56
|
+
_: 1
|
57
|
+
}),
|
58
|
+
m(d, { name: "slide-fade" }, {
|
59
|
+
default: p(() => [
|
60
|
+
r.value === "follower" ? (o(), c(_, {
|
61
|
+
key: 0,
|
62
|
+
user: u.user._id,
|
63
|
+
subscriber: s(e).params._id
|
64
|
+
}, null, 8, ["user", "subscriber"])) : i("", !0)
|
65
|
+
]),
|
66
|
+
_: 1
|
67
|
+
})
|
68
|
+
]));
|
69
|
+
}
|
70
|
+
};
|
71
|
+
export {
|
72
|
+
K as default
|
73
|
+
};
|
@@ -0,0 +1 @@
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),i=require("vue-router"),d=require("./Tab-2c1e4224.js"),s=require("./Feed-3a4e7a9c.js"),o=require("./auth-f018f5b3.js");require("./Tab.vue_vue_type_style_index_0_lang-0ea8fbf8.js");require("./Loader.vue_vue_type_style_index_0_lang-0ea8fbf8.js");require("./EmptyState-d65bab5b.js");require("./CardOrganization-647cb571.js");require("./ButtonToggleMembership-b9352cec.js");require("./Button-7643c9aa.js");require("./Button.vue_vue_type_style_index_0_lang-0ea8fbf8.js");require("./memberships-393765d8.js");require("./index-b41aac19.js");require("./globals-928eb13c.js");require("vue-i18n");require("./SkeletonOrganization-5c09cfc5.js");require("./_plugin-vue_export-helper-f246444f.js");require("./organizations-b4d902a2.js");const m={class:"pd-thin"},q={class:"mn-medium flex-v-center flex-nowrap flex"},b=e.createElementVNode("h2",{class:"mn-r-medium"},"Groups",-1),_={__name:"ProfileOrganizations",setup(f){const r=i.useRoute(),l=i.useRouter();let c=r.query.tab?r.query.tab:"member";const t=e.ref(c);return r.query.tab=t.value,e.watch(t,a=>{l.replace({query:{...r.query,tab:a}})}),(a,u)=>(e.openBlock(),e.createElementBlock("div",m,[e.createElementVNode("header",q,[b,o.state.user._id===e.unref(r).params._id?(e.openBlock(),e.createElementBlock("button",{key:0,onClick:u[0]||(u[0]=n=>a.$router.push({name:"Create Organization"})),class:"radius-100p i-big hover-scale-1 cursor-pointer t-white bg-second"}," + ")):e.createCommentVNode("",!0)]),e.createVNode(d._sfc_main,{selected:t.value,"onUpdate:selected":u[1]||(u[1]=n=>t.value=n),tabs:[{name:"Member",value:"member"},{name:"Follower",value:"follower"}],class:"mn-medium mn-r-medium o-hidden h5 radius-big bg-grey"},null,8,["selected"]),e.createVNode(e.Transition,{name:"slide-fade"},{default:e.withCtx(()=>[t.value==="member"?(e.openBlock(),e.createBlock(s._sfc_main,{key:0,user:o.state.user._id,owner:e.unref(r).params._id},null,8,["user","owner"])):e.createCommentVNode("",!0)]),_:1}),e.createVNode(e.Transition,{name:"slide-fade"},{default:e.withCtx(()=>[t.value==="follower"?(e.openBlock(),e.createBlock(s._sfc_main,{key:0,user:o.state.user._id,subscriber:e.unref(r).params._id},null,8,["user","subscriber"])):e.createCommentVNode("",!0)]),_:1})]))}};exports.default=_;
|