@ozdao/prometheus-framework 0.1.62 → 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.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
@@ -0,0 +1,234 @@
|
|
1
|
+
import { openBlock as n, createElementBlock as i, createCommentVNode as a, createElementVNode as e, createTextVNode as h, toDisplayString as o, ref as p, computed as d, unref as m, createVNode as y, Fragment as f, renderList as x, createBlock as v, withModifiers as z } from "vue";
|
2
|
+
import { useRouter as b } from "vue-router";
|
3
|
+
import { _ as $ } from "./ButtonToggleMembership-7ee4dc8e.mjs";
|
4
|
+
const _ = { class: "flex-stretch flex-nojustify flex-nowrap flex shop-cart-item" }, k = ["src"], L = {
|
5
|
+
key: 1,
|
6
|
+
width: "524",
|
7
|
+
height: "345",
|
8
|
+
viewBox: "0 0 524 345",
|
9
|
+
fill: "none",
|
10
|
+
xmlns: "http://www.w3.org/2000/svg",
|
11
|
+
class: "i-extra"
|
12
|
+
}, S = /* @__PURE__ */ e("rect", {
|
13
|
+
width: "524",
|
14
|
+
height: "345",
|
15
|
+
fill: "white"
|
16
|
+
}, null, -1), V = /* @__PURE__ */ e("rect", {
|
17
|
+
width: "524",
|
18
|
+
height: "345",
|
19
|
+
fill: "white"
|
20
|
+
}, null, -1), M = /* @__PURE__ */ e("circle", {
|
21
|
+
cx: "262",
|
22
|
+
cy: "172",
|
23
|
+
r: "56",
|
24
|
+
fill: "#00ff88",
|
25
|
+
"fill-opacity": "0.1"
|
26
|
+
}, null, -1), T = /* @__PURE__ */ e("path", {
|
27
|
+
fill: "#00ff88",
|
28
|
+
d: "M229.348 186.819C230.243 191.884 233.393 194.231 238.458 193.273V193.644C238.458 198.832 241.206 201.581 246.364 201.581H291.545C296.733 201.581 299.481 198.74 299.481 193.644V162.576C299.481 157.481 296.733 154.64 291.545 154.64H285.677L284.071 145.653C283.175 140.619 279.995 138.303 274.899 139.198L230.398 147.043C225.302 147.969 223.048 151.15 223.943 156.246L229.348 186.819ZM230.83 186.479L225.456 156.06C224.715 151.86 226.537 149.266 230.737 148.525L275.084 140.712C279.13 140.001 281.848 141.762 282.62 145.993L284.102 154.64H246.364C241.206 154.64 238.458 157.419 238.458 162.576V191.729L238.365 191.76C234.165 192.532 231.571 190.679 230.83 186.479ZM239.971 162.669C239.971 158.376 242.164 156.153 246.456 156.153H291.483C295.59 156.153 297.968 158.376 297.968 162.669V190.093L284.565 177.894C283.145 176.597 281.662 175.856 279.809 175.856C277.987 175.856 276.628 176.566 275.146 177.863L262.052 189.073L257.142 184.565C255.875 183.36 254.764 182.743 253.158 182.743C251.675 182.743 250.656 183.36 249.39 184.503L239.971 193.212V162.669ZM257.636 178.419C261.373 178.419 264.43 175.3 264.43 171.471C264.43 167.734 261.373 164.584 257.636 164.584C253.806 164.584 250.718 167.734 250.718 171.471C250.718 175.3 253.806 178.419 257.636 178.419Z"
|
29
|
+
}, null, -1), O = [
|
30
|
+
S,
|
31
|
+
V,
|
32
|
+
M,
|
33
|
+
T
|
34
|
+
], E = { class: "text-left" }, F = { class: "name" }, B = {
|
35
|
+
key: 0,
|
36
|
+
class: "t-transp"
|
37
|
+
}, R = {
|
38
|
+
key: 1,
|
39
|
+
class: "t-transp"
|
40
|
+
}, q = {
|
41
|
+
key: 2,
|
42
|
+
class: "t-transp"
|
43
|
+
}, H = { class: "t-main t-demi price mn-small" }, Z = { key: 0 }, N = {
|
44
|
+
key: 0,
|
45
|
+
class: "flex-nojustify flex"
|
46
|
+
}, U = { class: "flex-nowrap flex" }, j = /* @__PURE__ */ e("svg", {
|
47
|
+
fill: "none",
|
48
|
+
height: "20",
|
49
|
+
viewBox: "0 0 20 20",
|
50
|
+
width: "20",
|
51
|
+
xmlns: "http://www.w3.org/2000/svg"
|
52
|
+
}, [
|
53
|
+
/* @__PURE__ */ e("path", {
|
54
|
+
"clip-rule": "evenodd",
|
55
|
+
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",
|
56
|
+
fill: "#8a8a8a",
|
57
|
+
"fill-rule": "evenodd"
|
58
|
+
})
|
59
|
+
], -1), I = [
|
60
|
+
j
|
61
|
+
], D = {
|
62
|
+
__name: "CardOrderItem",
|
63
|
+
props: {
|
64
|
+
product: Object,
|
65
|
+
editable: String,
|
66
|
+
increase: Function,
|
67
|
+
decrease: Function,
|
68
|
+
remove: Function
|
69
|
+
},
|
70
|
+
setup(t) {
|
71
|
+
return b(), (r, s) => (n(), i("div", _, [
|
72
|
+
t.product.images[0] ? (n(), i("img", {
|
73
|
+
key: 0,
|
74
|
+
class: "bg-grey aspect-1x1",
|
75
|
+
src: (r.FILE_SERVER_URL || "") + t.product.images[0]
|
76
|
+
}, null, 8, k)) : a("", !0),
|
77
|
+
t.product.images[0] ? a("", !0) : (n(), i("svg", L, O)),
|
78
|
+
e("div", E, [
|
79
|
+
e("p", F, [
|
80
|
+
h(o(t.product.name) + " ", 1),
|
81
|
+
t.product.size ? (n(), i("span", B, ", " + o(t.product.size), 1)) : a("", !0),
|
82
|
+
typeof t.product.color == "string" && t.product.size ? (n(), i("span", R, ", ")) : a("", !0),
|
83
|
+
typeof t.product.color == "string" ? (n(), i("span", q, o(t.product.color), 1)) : a("", !0)
|
84
|
+
]),
|
85
|
+
e("p", H, [
|
86
|
+
t.editable ? (n(), i("span", Z, o(t.product.quantity) + " x ", 1)) : a("", !0),
|
87
|
+
h(o(t.product.price) + " " + o(r.returnCurrency()), 1)
|
88
|
+
]),
|
89
|
+
t.editable ? (n(), i("div", N, [
|
90
|
+
e("div", U, [
|
91
|
+
e("button", {
|
92
|
+
onClick: s[0] || (s[0] = (c) => t.decrease(t.product)),
|
93
|
+
class: "mn-r-thin bg-grey button-square button"
|
94
|
+
}, "-"),
|
95
|
+
e("button", {
|
96
|
+
onClick: s[1] || (s[1] = (c) => t.increase(t.product)),
|
97
|
+
class: "mn-r-thin bg-grey button-square button"
|
98
|
+
}, "+")
|
99
|
+
]),
|
100
|
+
e("button", {
|
101
|
+
onClick: s[2] || (s[2] = (c) => t.remove(t.product)),
|
102
|
+
class: "hover_br-transp hover_br-l-dark bg-transp button-square button"
|
103
|
+
}, I)
|
104
|
+
])) : a("", !0)
|
105
|
+
])
|
106
|
+
]));
|
107
|
+
}
|
108
|
+
}, P = {
|
109
|
+
key: 0,
|
110
|
+
class: "cursor-pointer t-second"
|
111
|
+
}, A = {
|
112
|
+
__name: "Text",
|
113
|
+
props: {
|
114
|
+
maxLen: { type: Number, required: !0 },
|
115
|
+
text: { type: String, required: !0 },
|
116
|
+
showToggleText: { type: Boolean, default: !1 }
|
117
|
+
},
|
118
|
+
setup(t) {
|
119
|
+
const r = t, s = p(!1), c = d(() => r.text.length > r.maxLen ? r.text.slice(0, r.maxLen) + "..." : r.text), u = d(() => r.text), l = () => {
|
120
|
+
s.value = !s.value;
|
121
|
+
}, g = d(() => s.value ? u.value : c.value), w = d(() => r.text.length > r.maxLen), C = d(() => s.value ? "Hide" : "Show more");
|
122
|
+
return (gt, ft) => (n(), i("span", {
|
123
|
+
onClick: l,
|
124
|
+
class: ""
|
125
|
+
}, [
|
126
|
+
h(o(m(g)) + " ", 1),
|
127
|
+
m(w) && t.showToggleText ? (n(), i("span", P, o(m(C)), 1)) : a("", !0)
|
128
|
+
]));
|
129
|
+
}
|
130
|
+
}, G = { class: "pd-medium flex-v-center flex-nowrap flex" }, J = ["src"], K = {
|
131
|
+
key: 1,
|
132
|
+
class: "h-4r w-4r radius-extra",
|
133
|
+
width: "42",
|
134
|
+
height: "42",
|
135
|
+
viewBox: "0 0 42 42",
|
136
|
+
fill: "none",
|
137
|
+
xmlns: "http://www.w3.org/2000/svg"
|
138
|
+
}, Q = /* @__PURE__ */ e("circle", {
|
139
|
+
fill: "rgb(var(--main))",
|
140
|
+
cx: "21",
|
141
|
+
cy: "21",
|
142
|
+
r: "21"
|
143
|
+
}, null, -1), W = /* @__PURE__ */ e("path", {
|
144
|
+
fill: "#242424",
|
145
|
+
"fill-opacity": "0.1",
|
146
|
+
"fill-rule": "evenodd",
|
147
|
+
"clip-rule": "evenodd",
|
148
|
+
d: "M8.00233 37.4954C8.00078 37.4458 8 37.3961 8 37.3462C8 32.9066 11.5673 29.3077 15.9677 29.3077H26.0323C30.4328 29.3077 34 32.9066 34 37.3462C34 37.3961 33.9992 37.4458 33.9977 37.4954C30.4223 40.3165 25.9078 42 21 42C16.0922 42 11.5777 40.3164 8.00233 37.4954ZM21 9C16.5995 9 13.0323 12.5989 13.0323 17.0385C13.0323 21.478 16.5995 25.0769 21 25.0769C25.4005 25.0769 28.9677 21.478 28.9677 17.0385C28.9677 12.5989 25.4005 9 21 9Z"
|
149
|
+
}, null, -1), X = [
|
150
|
+
Q,
|
151
|
+
W
|
152
|
+
], Y = { class: "flex-child-1 flex-child mn-l-small w-100" }, tt = { class: "h3 mn-r-semi mn-thin" }, et = {
|
153
|
+
key: 0,
|
154
|
+
class: "w-max star-container flex-v-center flex"
|
155
|
+
}, nt = { class: "mn-r-thin pd-r-thin pd-l-thin pd-micro radius-small t-semi uppercase bg-main p-small" }, it = ["src"], st = { class: "p-small t-semi mn-r-thin" }, ot = { class: "p-small" }, rt = { class: "mn-thin" }, at = {
|
156
|
+
key: 0,
|
157
|
+
class: "pd-medium"
|
158
|
+
}, lt = { class: "mn-small w-100 flex-nowrap flex flex-v-center pd-small bg-white radius-medium" }, ct = { class: "t-black p-medium t-semi" }, dt = /* @__PURE__ */ e("span", { class: "mn-r-small" }, "30-60min", -1), ut = /* @__PURE__ */ e("span", { class: "mn-r-auto" }, "$50 min", -1), mt = { class: "d-block o-scroll flex-nowrap flex" }, ht = /* @__PURE__ */ e("button", { class: "flex-center flex-nowrap flex shop-cart-item pd-thin radius-medium w-15r bg-main button" }, "View menu", -1), wt = {
|
159
|
+
__name: "CardOrganization",
|
160
|
+
props: {
|
161
|
+
user: String,
|
162
|
+
organization: Object
|
163
|
+
},
|
164
|
+
emits: ["updateMembership"],
|
165
|
+
setup(t, { emit: r }) {
|
166
|
+
return b(), (s, c) => {
|
167
|
+
var u;
|
168
|
+
return n(), i("div", {
|
169
|
+
class: "bg-grey radius-big o-hidden",
|
170
|
+
onClick: c[1] || (c[1] = (l) => s.$router.push({ name: "Organization", params: { _id: t.organization._id } }))
|
171
|
+
}, [
|
172
|
+
e("div", G, [
|
173
|
+
t.organization.profile.photo && t.organization.profile.photo.length > 0 ? (n(), i("img", {
|
174
|
+
key: 0,
|
175
|
+
src: (s.FILE_SERVER_URL || "") + t.organization.profile.photo,
|
176
|
+
class: "h-4r w-4r radius-extra bg-white"
|
177
|
+
}, null, 8, J)) : (n(), i("svg", K, X)),
|
178
|
+
e("div", Y, [
|
179
|
+
e("p", tt, [
|
180
|
+
y(A, {
|
181
|
+
text: t.organization.profile.name ? t.organization.profile.name : "",
|
182
|
+
maxLen: 16
|
183
|
+
}, null, 8, ["text"])
|
184
|
+
]),
|
185
|
+
t.organization.ratingS ? (n(), i("div", et, [
|
186
|
+
e("span", nt, o(t.organization.types[0]), 1),
|
187
|
+
(n(), i(f, null, x(5, (l) => e("img", {
|
188
|
+
class: "i-small mn-r-thin",
|
189
|
+
src: l <= t.organization.rating.median ? "/icons/star.svg" : "/icons/star-stroke.svg"
|
190
|
+
}, null, 8, it)), 64)),
|
191
|
+
e("span", st, o(t.organization.rating.median), 1),
|
192
|
+
e("span", ot, "(" + o(t.organization.rating.amount) + ")", 1)
|
193
|
+
])) : a("", !0),
|
194
|
+
e("div", null, [
|
195
|
+
e("p", rt, o(t.organization.numberOfSubscribers) + " followers", 1),
|
196
|
+
(u = t.user) != null && u._id && t.organization.owner !== t.user._id ? (n(), v($, {
|
197
|
+
key: 0,
|
198
|
+
user: t.user._id,
|
199
|
+
type: "organization",
|
200
|
+
role: "subscriber",
|
201
|
+
target: t.organization._id,
|
202
|
+
status: t.organization.isSubscriber,
|
203
|
+
text: { create: "Follow", remove: "Unfollow" },
|
204
|
+
onUpdateMembership: c[0] || (c[0] = (l) => s.handleMembershipUpdate(l, "isSubscriber", "numberOfSubscribers")),
|
205
|
+
class: "w-min"
|
206
|
+
}, null, 8, ["user", "target", "status"])) : a("", !0)
|
207
|
+
])
|
208
|
+
])
|
209
|
+
]),
|
210
|
+
t.organization.products.length > 0 ? (n(), i("div", at, [
|
211
|
+
e("div", lt, [
|
212
|
+
e("p", ct, o(t.organization.products.length) + " items: ", 1),
|
213
|
+
dt,
|
214
|
+
ut
|
215
|
+
]),
|
216
|
+
e("div", mt, [
|
217
|
+
(n(!0), i(f, null, x(t.organization.products, (l) => (n(), v(D, {
|
218
|
+
onClick: z((g) => s.$router.push({ name: "Product Organization", params: { _id: t.organization._id, product: l._id } }), ["stop"]),
|
219
|
+
key: l._id,
|
220
|
+
editable: !1,
|
221
|
+
product: l,
|
222
|
+
class: "pd-thin radius-medium w-15r br-solid br-grey br-1px bg-white mn-r-thin"
|
223
|
+
}, null, 8, ["onClick", "product"]))), 128)),
|
224
|
+
ht
|
225
|
+
])
|
226
|
+
])) : a("", !0)
|
227
|
+
]);
|
228
|
+
};
|
229
|
+
}
|
230
|
+
};
|
231
|
+
export {
|
232
|
+
wt as _,
|
233
|
+
A as a
|
234
|
+
};
|
@@ -0,0 +1 @@
|
|
1
|
+
"use strict";const e=require("vue"),r=require("./vuex.esm-bundler-685cf29f.js"),s=require("vue-i18n");const a={key:0,class:"thc"},d={class:"t-bold t-white"},u=e.createElementVNode("p",{class:"t-white h6"},"THC",-1),m={key:0,width:"60",height:"66",viewBox:"0 0 60 66",fill:"none",xmlns:"http://www.w3.org/2000/svg"},h=e.createElementVNode("path",{fill:"#FF0000",stroke:"white","stroke-width":"3",d:"M26 3.3094C28.4752 1.88034 31.5248 1.88034 34 3.3094L53.7128 14.6906C56.188 16.1197 57.7128 18.7607 57.7128 21.6188V44.3812C57.7128 47.2393 56.188 49.8803 53.7128 51.3094L34 62.6906C31.5248 64.1197 28.4752 64.1197 26 62.6906L6.28719 51.3094C3.81198 49.8803 2.28719 47.2393 2.28719 44.3812V21.6188C2.28719 18.7607 3.81198 16.1197 6.28719 14.6906L26 3.3094Z"},null,-1),C=[h],w={key:1,width:"60",height:"66",viewBox:"0 0 60 66",fill:"none",xmlns:"http://www.w3.org/2000/svg"},g=e.createElementVNode("path",{fill:"#FF0099",stroke:"white","stroke-width":"3",d:"M26 3.3094C28.4752 1.88034 31.5248 1.88034 34 3.3094L53.7128 14.6906C56.188 16.1197 57.7128 18.7607 57.7128 21.6188V44.3812C57.7128 47.2393 56.188 49.8803 53.7128 51.3094L34 62.6906C31.5248 64.1197 28.4752 64.1197 26 62.6906L6.28719 51.3094C3.81198 49.8803 2.28719 47.2393 2.28719 44.3812V21.6188C2.28719 18.7607 3.81198 16.1197 6.28719 14.6906L26 3.3094Z"},null,-1),f=[g],k={key:2,width:"60",height:"66",viewBox:"0 0 60 66",fill:"none",xmlns:"http://www.w3.org/2000/svg"},v=e.createElementVNode("path",{fill:"#EB00FF",stroke:"white","stroke-width":"3",d:"M26 3.3094C28.4752 1.88034 31.5248 1.88034 34 3.3094L53.7128 14.6906C56.188 16.1197 57.7128 18.7607 57.7128 21.6188V44.3812C57.7128 47.2393 56.188 49.8803 53.7128 51.3094L34 62.6906C31.5248 64.1197 28.4752 64.1197 26 62.6906L6.28719 51.3094C3.81198 49.8803 2.28719 47.2393 2.28719 44.3812V21.6188C2.28719 18.7607 3.81198 16.1197 6.28719 14.6906L26 3.3094Z"},null,-1),p=[v],V={key:3,width:"60",height:"66",viewBox:"0 0 60 66",fill:"none",xmlns:"http://www.w3.org/2000/svg"},_=e.createElementVNode("path",{fill:"#00FF29",stroke:"white","stroke-width":"3",d:"M26 3.3094C28.4752 1.88034 31.5248 1.88034 34 3.3094L53.7128 14.6906C56.188 16.1197 57.7128 18.7607 57.7128 21.6188V44.3812C57.7128 47.2393 56.188 49.8803 53.7128 51.3094L34 62.6906C31.5248 64.1197 28.4752 64.1197 26 62.6906L6.28719 51.3094C3.81198 49.8803 2.28719 47.2393 2.28719 44.3812V21.6188C2.28719 18.7607 3.81198 16.1197 6.28719 14.6906L26 3.3094Z"},null,-1),B=[_],E={__name:"THC",props:{product:Object},setup(t){return(o,n)=>t.product.information[1]?(e.openBlock(),e.createElementBlock("div",a,[e.createElementVNode("p",d,e.toDisplayString(t.product.information[1].value)+" %",1),u,Number(t.product.information[1].value)>=18?(e.openBlock(),e.createElementBlock("svg",m,C)):e.createCommentVNode("",!0),Number(t.product.information[1].value)<=18&&Number(t.product.information[1].value)>=14?(e.openBlock(),e.createElementBlock("svg",w,f)):e.createCommentVNode("",!0),Number(t.product.information[1].value)<=14&&Number(t.product.information[1].value)>=10?(e.openBlock(),e.createElementBlock("svg",k,p)):e.createCommentVNode("",!0),Number(t.product.information[1].value)<=10?(e.openBlock(),e.createElementBlock("svg",V,B)):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)}};const N={class:"price-tag radius-small"},y={key:0,class:"t-transp t-main p-medium line-through price"},i={__name:"Price",props:{product:Object,size:String},setup(t){return(o,n)=>(e.openBlock(),e.createElementBlock("div",N,[e.createElementVNode("p",{class:e.normalizeClass({"t-main":t.product.sale,h4:!t.size,"h5 t-semi pd-thin":t.size==="small","h3 t-semi pd-small":t.size==="big"})},e.toDisplayString(t.product.price)+" "+e.toDisplayString(o.returnCurrency()),3),t.product.sale?(e.openBlock(),e.createElementBlock("p",y,e.toDisplayString(t.product.price/100*(100+t.product.sale))+" "+e.toDisplayString(o.returnCurrency()),1)):e.createCommentVNode("",!0)]))}};const L=["src"],b={key:1,class:"h-100 w-100",style:{"object-fit":"cover"},width:"524",height:"345",viewBox:"0 0 524 345",fill:"none",xmlns:"http://www.w3.org/2000/svg"},$=e.createElementVNode("rect",{width:"524",height:"345",fill:"white"},null,-1),x=e.createElementVNode("rect",{width:"524",height:"345",fill:"white"},null,-1),A=e.createElementVNode("circle",{cx:"262",cy:"172",r:"56",fill:"#00ff88","fill-opacity":"0.1"},null,-1),z=e.createElementVNode("path",{fill:"#00ff88",d:"M229.348 186.819C230.243 191.884 233.393 194.231 238.458 193.273V193.644C238.458 198.832 241.206 201.581 246.364 201.581H291.545C296.733 201.581 299.481 198.74 299.481 193.644V162.576C299.481 157.481 296.733 154.64 291.545 154.64H285.677L284.071 145.653C283.175 140.619 279.995 138.303 274.899 139.198L230.398 147.043C225.302 147.969 223.048 151.15 223.943 156.246L229.348 186.819ZM230.83 186.479L225.456 156.06C224.715 151.86 226.537 149.266 230.737 148.525L275.084 140.712C279.13 140.001 281.848 141.762 282.62 145.993L284.102 154.64H246.364C241.206 154.64 238.458 157.419 238.458 162.576V191.729L238.365 191.76C234.165 192.532 231.571 190.679 230.83 186.479ZM239.971 162.669C239.971 158.376 242.164 156.153 246.456 156.153H291.483C295.59 156.153 297.968 158.376 297.968 162.669V190.093L284.565 177.894C283.145 176.597 281.662 175.856 279.809 175.856C277.987 175.856 276.628 176.566 275.146 177.863L262.052 189.073L257.142 184.565C255.875 183.36 254.764 182.743 253.158 182.743C251.675 182.743 250.656 183.36 249.39 184.503L239.971 193.212V162.669ZM257.636 178.419C261.373 178.419 264.43 175.3 264.43 171.471C264.43 167.734 261.373 164.584 257.636 164.584C253.806 164.584 250.718 167.734 250.718 171.471C250.718 175.3 253.806 178.419 257.636 178.419Z"},null,-1),S=[$,x,A,z],F={class:"pd-medium t-left product-card-content"},D={class:"mn-thin h4"},M={key:1,class:"mn-small t-transp p-small"},Z=e.createElementVNode("div",null,null,-1),H={__name:"CardProduct",props:["product"],setup(t){const o=t,n=r.useStore();return s.useI18n(),e.computed(()=>n.state.favorites.items.filter(function(c,l){if(c._id===o.product._id)return!0})),(c,l)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["radius-big product",t.product.information[2]&&t.product.information[2].value==="AAAA"?"bg-black t-white":"bg-white"])},[e.createElementVNode("div",{class:e.normalizeClass(["o-hidden w-100 h-100 square",t.product.information[2]&&t.product.information[2].value==="AAAA"?"bg-black":"bg-white"])},[t.product.images[0]?(e.openBlock(),e.createElementBlock("img",{key:0,src:(c.FILE_SERVER_URL||"")+t.product.images[0],class:"w-100 h-100"},null,8,L)):(e.openBlock(),e.createElementBlock("svg",b,S)),t.product.information.length>0?(e.openBlock(),e.createBlock(E,{key:2,product:t.product},null,8,["product"])):e.createCommentVNode("",!0)],2),e.createElementVNode("div",F,[t.product.information.length>0?(e.openBlock(),e.createElementBlock("p",{key:0,class:e.normalizeClass(["t-semi h6",t.product.information[2]&&t.product.information[2].value==="AAAA"?"t-violet":"t-main"])},e.toDisplayString(t.product.information[0].value),3)):e.createCommentVNode("",!0),e.createElementVNode("p",D,e.toDisplayString(t.product.name),1),t.product.description&&!t.product.localization?(e.openBlock(),e.createElementBlock("p",M,e.toDisplayString(t.product.description.substring(0,99))+"... ",1)):e.createCommentVNode("",!0),e.createVNode(i,{product:t.product,size:"small",class:e.normalizeClass(t.product.information[2]&&t.product.information[2].value==="AAAA"?"bg-third t-white":"")},null,8,["product","class"])]),Z],2))}};exports._sfc_main=H;exports._sfc_main$1=i;
|
@@ -0,0 +1,193 @@
|
|
1
|
+
import { openBlock as i, createElementBlock as o, createElementVNode as e, toDisplayString as c, createCommentVNode as n, normalizeClass as r, computed as a, createBlock as h, createVNode as m } from "vue";
|
2
|
+
import { u as C } from "./vuex.esm-bundler-57d8b6ba.mjs";
|
3
|
+
import { useI18n as w } from "vue-i18n";
|
4
|
+
const f = {
|
5
|
+
key: 0,
|
6
|
+
class: "thc"
|
7
|
+
}, g = { class: "t-bold t-white" }, v = /* @__PURE__ */ e("p", { class: "t-white h6" }, "THC", -1), _ = {
|
8
|
+
key: 0,
|
9
|
+
width: "60",
|
10
|
+
height: "66",
|
11
|
+
viewBox: "0 0 60 66",
|
12
|
+
fill: "none",
|
13
|
+
xmlns: "http://www.w3.org/2000/svg"
|
14
|
+
}, L = /* @__PURE__ */ e("path", {
|
15
|
+
fill: "#FF0000",
|
16
|
+
stroke: "white",
|
17
|
+
"stroke-width": "3",
|
18
|
+
d: "M26 3.3094C28.4752 1.88034 31.5248 1.88034 34 3.3094L53.7128 14.6906C56.188 16.1197 57.7128 18.7607 57.7128 21.6188V44.3812C57.7128 47.2393 56.188 49.8803 53.7128 51.3094L34 62.6906C31.5248 64.1197 28.4752 64.1197 26 62.6906L6.28719 51.3094C3.81198 49.8803 2.28719 47.2393 2.28719 44.3812V21.6188C2.28719 18.7607 3.81198 16.1197 6.28719 14.6906L26 3.3094Z"
|
19
|
+
}, null, -1), p = [
|
20
|
+
L
|
21
|
+
], k = {
|
22
|
+
key: 1,
|
23
|
+
width: "60",
|
24
|
+
height: "66",
|
25
|
+
viewBox: "0 0 60 66",
|
26
|
+
fill: "none",
|
27
|
+
xmlns: "http://www.w3.org/2000/svg"
|
28
|
+
}, y = /* @__PURE__ */ e("path", {
|
29
|
+
fill: "#FF0099",
|
30
|
+
stroke: "white",
|
31
|
+
"stroke-width": "3",
|
32
|
+
d: "M26 3.3094C28.4752 1.88034 31.5248 1.88034 34 3.3094L53.7128 14.6906C56.188 16.1197 57.7128 18.7607 57.7128 21.6188V44.3812C57.7128 47.2393 56.188 49.8803 53.7128 51.3094L34 62.6906C31.5248 64.1197 28.4752 64.1197 26 62.6906L6.28719 51.3094C3.81198 49.8803 2.28719 47.2393 2.28719 44.3812V21.6188C2.28719 18.7607 3.81198 16.1197 6.28719 14.6906L26 3.3094Z"
|
33
|
+
}, null, -1), b = [
|
34
|
+
y
|
35
|
+
], V = {
|
36
|
+
key: 2,
|
37
|
+
width: "60",
|
38
|
+
height: "66",
|
39
|
+
viewBox: "0 0 60 66",
|
40
|
+
fill: "none",
|
41
|
+
xmlns: "http://www.w3.org/2000/svg"
|
42
|
+
}, x = /* @__PURE__ */ e("path", {
|
43
|
+
fill: "#EB00FF",
|
44
|
+
stroke: "white",
|
45
|
+
"stroke-width": "3",
|
46
|
+
d: "M26 3.3094C28.4752 1.88034 31.5248 1.88034 34 3.3094L53.7128 14.6906C56.188 16.1197 57.7128 18.7607 57.7128 21.6188V44.3812C57.7128 47.2393 56.188 49.8803 53.7128 51.3094L34 62.6906C31.5248 64.1197 28.4752 64.1197 26 62.6906L6.28719 51.3094C3.81198 49.8803 2.28719 47.2393 2.28719 44.3812V21.6188C2.28719 18.7607 3.81198 16.1197 6.28719 14.6906L26 3.3094Z"
|
47
|
+
}, null, -1), A = [
|
48
|
+
x
|
49
|
+
], $ = {
|
50
|
+
key: 3,
|
51
|
+
width: "60",
|
52
|
+
height: "66",
|
53
|
+
viewBox: "0 0 60 66",
|
54
|
+
fill: "none",
|
55
|
+
xmlns: "http://www.w3.org/2000/svg"
|
56
|
+
}, B = /* @__PURE__ */ e("path", {
|
57
|
+
fill: "#00FF29",
|
58
|
+
stroke: "white",
|
59
|
+
"stroke-width": "3",
|
60
|
+
d: "M26 3.3094C28.4752 1.88034 31.5248 1.88034 34 3.3094L53.7128 14.6906C56.188 16.1197 57.7128 18.7607 57.7128 21.6188V44.3812C57.7128 47.2393 56.188 49.8803 53.7128 51.3094L34 62.6906C31.5248 64.1197 28.4752 64.1197 26 62.6906L6.28719 51.3094C3.81198 49.8803 2.28719 47.2393 2.28719 44.3812V21.6188C2.28719 18.7607 3.81198 16.1197 6.28719 14.6906L26 3.3094Z"
|
61
|
+
}, null, -1), F = [
|
62
|
+
B
|
63
|
+
], N = {
|
64
|
+
__name: "THC",
|
65
|
+
props: {
|
66
|
+
product: Object
|
67
|
+
},
|
68
|
+
setup(t) {
|
69
|
+
return (s, l) => t.product.information[1] ? (i(), o("div", f, [
|
70
|
+
e("p", g, c(t.product.information[1].value) + " %", 1),
|
71
|
+
v,
|
72
|
+
Number(t.product.information[1].value) >= 18 ? (i(), o("svg", _, p)) : n("", !0),
|
73
|
+
Number(t.product.information[1].value) <= 18 && Number(t.product.information[1].value) >= 14 ? (i(), o("svg", k, b)) : n("", !0),
|
74
|
+
Number(t.product.information[1].value) <= 14 && Number(t.product.information[1].value) >= 10 ? (i(), o("svg", V, A)) : n("", !0),
|
75
|
+
Number(t.product.information[1].value) <= 10 ? (i(), o("svg", $, F)) : n("", !0)
|
76
|
+
])) : n("", !0);
|
77
|
+
}
|
78
|
+
};
|
79
|
+
const M = { class: "price-tag radius-small" }, Z = {
|
80
|
+
key: 0,
|
81
|
+
class: "t-transp t-main p-medium line-through price"
|
82
|
+
}, z = {
|
83
|
+
__name: "Price",
|
84
|
+
props: {
|
85
|
+
product: Object,
|
86
|
+
size: String
|
87
|
+
},
|
88
|
+
setup(t) {
|
89
|
+
return (s, l) => (i(), o("div", M, [
|
90
|
+
e("p", {
|
91
|
+
class: r(
|
92
|
+
{
|
93
|
+
"t-main": t.product.sale,
|
94
|
+
h4: !t.size,
|
95
|
+
"h5 t-semi pd-thin": t.size === "small",
|
96
|
+
"h3 t-semi pd-small": t.size === "big"
|
97
|
+
}
|
98
|
+
)
|
99
|
+
}, c(t.product.price) + " " + c(s.returnCurrency()), 3),
|
100
|
+
t.product.sale ? (i(), o("p", Z, c(t.product.price / 100 * (100 + t.product.sale)) + " " + c(s.returnCurrency()), 1)) : n("", !0)
|
101
|
+
]));
|
102
|
+
}
|
103
|
+
};
|
104
|
+
const H = ["src"], E = {
|
105
|
+
key: 1,
|
106
|
+
class: "h-100 w-100",
|
107
|
+
style: { "object-fit": "cover" },
|
108
|
+
width: "524",
|
109
|
+
height: "345",
|
110
|
+
viewBox: "0 0 524 345",
|
111
|
+
fill: "none",
|
112
|
+
xmlns: "http://www.w3.org/2000/svg"
|
113
|
+
}, P = /* @__PURE__ */ e("rect", {
|
114
|
+
width: "524",
|
115
|
+
height: "345",
|
116
|
+
fill: "white"
|
117
|
+
}, null, -1), S = /* @__PURE__ */ e("rect", {
|
118
|
+
width: "524",
|
119
|
+
height: "345",
|
120
|
+
fill: "white"
|
121
|
+
}, null, -1), j = /* @__PURE__ */ e("circle", {
|
122
|
+
cx: "262",
|
123
|
+
cy: "172",
|
124
|
+
r: "56",
|
125
|
+
fill: "#00ff88",
|
126
|
+
"fill-opacity": "0.1"
|
127
|
+
}, null, -1), R = /* @__PURE__ */ e("path", {
|
128
|
+
fill: "#00ff88",
|
129
|
+
d: "M229.348 186.819C230.243 191.884 233.393 194.231 238.458 193.273V193.644C238.458 198.832 241.206 201.581 246.364 201.581H291.545C296.733 201.581 299.481 198.74 299.481 193.644V162.576C299.481 157.481 296.733 154.64 291.545 154.64H285.677L284.071 145.653C283.175 140.619 279.995 138.303 274.899 139.198L230.398 147.043C225.302 147.969 223.048 151.15 223.943 156.246L229.348 186.819ZM230.83 186.479L225.456 156.06C224.715 151.86 226.537 149.266 230.737 148.525L275.084 140.712C279.13 140.001 281.848 141.762 282.62 145.993L284.102 154.64H246.364C241.206 154.64 238.458 157.419 238.458 162.576V191.729L238.365 191.76C234.165 192.532 231.571 190.679 230.83 186.479ZM239.971 162.669C239.971 158.376 242.164 156.153 246.456 156.153H291.483C295.59 156.153 297.968 158.376 297.968 162.669V190.093L284.565 177.894C283.145 176.597 281.662 175.856 279.809 175.856C277.987 175.856 276.628 176.566 275.146 177.863L262.052 189.073L257.142 184.565C255.875 183.36 254.764 182.743 253.158 182.743C251.675 182.743 250.656 183.36 249.39 184.503L239.971 193.212V162.669ZM257.636 178.419C261.373 178.419 264.43 175.3 264.43 171.471C264.43 167.734 261.373 164.584 257.636 164.584C253.806 164.584 250.718 167.734 250.718 171.471C250.718 175.3 253.806 178.419 257.636 178.419Z"
|
130
|
+
}, null, -1), T = [
|
131
|
+
P,
|
132
|
+
S,
|
133
|
+
j,
|
134
|
+
R
|
135
|
+
], I = { class: "pd-medium t-left product-card-content" }, O = { class: "mn-thin h4" }, q = {
|
136
|
+
key: 1,
|
137
|
+
class: "mn-small t-transp p-small"
|
138
|
+
}, D = /* @__PURE__ */ e("div", null, null, -1), K = {
|
139
|
+
__name: "CardProduct",
|
140
|
+
props: ["product"],
|
141
|
+
setup(t) {
|
142
|
+
const s = t, l = C();
|
143
|
+
return w(), a(() => l.state.favorites.items.filter(function(d, u) {
|
144
|
+
if (d._id === s.product._id)
|
145
|
+
return !0;
|
146
|
+
})), (d, u) => (i(), o("div", {
|
147
|
+
class: r([
|
148
|
+
"radius-big product",
|
149
|
+
t.product.information[2] && t.product.information[2].value === "AAAA" ? "bg-black t-white" : "bg-white"
|
150
|
+
])
|
151
|
+
}, [
|
152
|
+
e("div", {
|
153
|
+
class: r([
|
154
|
+
"o-hidden w-100 h-100 square",
|
155
|
+
t.product.information[2] && t.product.information[2].value === "AAAA" ? "bg-black" : "bg-white"
|
156
|
+
])
|
157
|
+
}, [
|
158
|
+
t.product.images[0] ? (i(), o("img", {
|
159
|
+
key: 0,
|
160
|
+
src: (d.FILE_SERVER_URL || "") + t.product.images[0],
|
161
|
+
class: "w-100 h-100"
|
162
|
+
}, null, 8, H)) : (i(), o("svg", E, T)),
|
163
|
+
t.product.information.length > 0 ? (i(), h(N, {
|
164
|
+
key: 2,
|
165
|
+
product: t.product
|
166
|
+
}, null, 8, ["product"])) : n("", !0)
|
167
|
+
], 2),
|
168
|
+
e("div", I, [
|
169
|
+
t.product.information.length > 0 ? (i(), o("p", {
|
170
|
+
key: 0,
|
171
|
+
class: r([
|
172
|
+
"t-semi h6",
|
173
|
+
t.product.information[2] && t.product.information[2].value === "AAAA" ? "t-violet" : "t-main"
|
174
|
+
])
|
175
|
+
}, c(t.product.information[0].value), 3)) : n("", !0),
|
176
|
+
e("p", O, c(t.product.name), 1),
|
177
|
+
t.product.description && !t.product.localization ? (i(), o("p", q, c(t.product.description.substring(0, 99)) + "... ", 1)) : n("", !0),
|
178
|
+
m(z, {
|
179
|
+
product: t.product,
|
180
|
+
size: "small",
|
181
|
+
class: r(
|
182
|
+
t.product.information[2] && t.product.information[2].value === "AAAA" ? "bg-third t-white" : ""
|
183
|
+
)
|
184
|
+
}, null, 8, ["product", "class"])
|
185
|
+
]),
|
186
|
+
D
|
187
|
+
], 2));
|
188
|
+
}
|
189
|
+
};
|
190
|
+
export {
|
191
|
+
K as _,
|
192
|
+
z as a
|
193
|
+
};
|
@@ -0,0 +1,62 @@
|
|
1
|
+
import { openBlock as d, createElementBlock as c, createElementVNode as t, toDisplayString as s, createCommentVNode as m, normalizeClass as o } from "vue";
|
2
|
+
import { _ as y } from "./_plugin-vue_export-helper-dad06003.mjs";
|
3
|
+
const h = { class: "flex-v-center flex-nowrap flex" }, f = {
|
4
|
+
key: 0,
|
5
|
+
class: "mn-r-auto t-transp mn-r-small"
|
6
|
+
}, v = ["name", "value", "checked"], x = {
|
7
|
+
__name: "Checkbox",
|
8
|
+
props: {
|
9
|
+
label: String,
|
10
|
+
name: String,
|
11
|
+
value: String,
|
12
|
+
radio: {
|
13
|
+
type: [Array, Boolean, Object],
|
14
|
+
default: () => []
|
15
|
+
}
|
16
|
+
},
|
17
|
+
emits: ["update:radio"],
|
18
|
+
setup(e, { emit: n }) {
|
19
|
+
const a = e, u = (r) => {
|
20
|
+
if (Array.isArray(a.radio)) {
|
21
|
+
let i = [...a.radio];
|
22
|
+
if (r.target.checked)
|
23
|
+
i.push(a.value);
|
24
|
+
else {
|
25
|
+
const l = i.indexOf(a.value);
|
26
|
+
l !== -1 && i.splice(l, 1);
|
27
|
+
}
|
28
|
+
n("update:radio", i);
|
29
|
+
} else
|
30
|
+
typeof a.radio == "boolean" && n("update:radio", r.target.checked);
|
31
|
+
};
|
32
|
+
return (r, i) => (d(), c("label", h, [
|
33
|
+
e.label ? (d(), c("div", f, [
|
34
|
+
t("span", null, s(e.label), 1)
|
35
|
+
])) : m("", !0),
|
36
|
+
t("input", {
|
37
|
+
onChange: u,
|
38
|
+
class: "round radiobutton",
|
39
|
+
type: "checkbox",
|
40
|
+
name: e.name,
|
41
|
+
value: e.value,
|
42
|
+
checked: Array.isArray(e.radio) ? e.radio.includes(e.value) : e.radio
|
43
|
+
}, null, 40, v),
|
44
|
+
t("div", {
|
45
|
+
class: o(["transition-elastic pd-thin h-2r w-4r radius-extra", {
|
46
|
+
"bg-grey": !(Array.isArray(e.radio) ? e.radio.includes(e.value) : e.radio),
|
47
|
+
"bg-main": Array.isArray(e.radio) ? e.radio.includes(e.value) : e.radio
|
48
|
+
}])
|
49
|
+
}, [
|
50
|
+
t("div", {
|
51
|
+
class: o(["transition-linear w-1r h-1r radius-extra h-100 bg-white", {
|
52
|
+
"mn-r-auto": !(Array.isArray(e.radio) ? e.radio.includes(e.value) : e.radio),
|
53
|
+
"mn-l-auto": Array.isArray(e.radio) ? e.radio.includes(e.value) : e.radio
|
54
|
+
}])
|
55
|
+
}, null, 2)
|
56
|
+
], 2)
|
57
|
+
]));
|
58
|
+
}
|
59
|
+
}, g = /* @__PURE__ */ y(x, [["__scopeId", "data-v-f641f618"]]);
|
60
|
+
export {
|
61
|
+
g as C
|
62
|
+
};
|
@@ -0,0 +1 @@
|
|
1
|
+
"use strict";const a=require("vue"),c=require("./_plugin-vue_export-helper-f246444f.js");const o={class:"flex-v-center flex-nowrap flex"},u={key:0,class:"mn-r-auto t-transp mn-r-small"},s=["name","value","checked"],m={__name:"Checkbox",props:{label:String,name:String,value:String,radio:{type:[Array,Boolean,Object],default:()=>[]}},emits:["update:radio"],setup(e,{emit:n}){const t=e,d=i=>{if(Array.isArray(t.radio)){let r=[...t.radio];if(i.target.checked)r.push(t.value);else{const l=r.indexOf(t.value);l!==-1&&r.splice(l,1)}n("update:radio",r)}else typeof t.radio=="boolean"&&n("update:radio",i.target.checked)};return(i,r)=>(a.openBlock(),a.createElementBlock("label",o,[e.label?(a.openBlock(),a.createElementBlock("div",u,[a.createElementVNode("span",null,a.toDisplayString(e.label),1)])):a.createCommentVNode("",!0),a.createElementVNode("input",{onChange:d,class:"round radiobutton",type:"checkbox",name:e.name,value:e.value,checked:Array.isArray(e.radio)?e.radio.includes(e.value):e.radio},null,40,s),a.createElementVNode("div",{class:a.normalizeClass(["transition-elastic pd-thin h-2r w-4r radius-extra",{"bg-grey":!(Array.isArray(e.radio)?e.radio.includes(e.value):e.radio),"bg-main":Array.isArray(e.radio)?e.radio.includes(e.value):e.radio}])},[a.createElementVNode("div",{class:a.normalizeClass(["transition-linear w-1r h-1r radius-extra h-100 bg-white",{"mn-r-auto":!(Array.isArray(e.radio)?e.radio.includes(e.value):e.radio),"mn-l-auto":Array.isArray(e.radio)?e.radio.includes(e.value):e.radio}])},null,2)],2)]))}},y=c._export_sfc(m,[["__scopeId","data-v-f641f618"]]);exports.Checkbox=y;
|
@@ -0,0 +1 @@
|
|
1
|
+
"use strict";const e=require("vue"),k=require("vue-router"),p=require("./PlaceholderUserpic-47f6f319.js"),y=require("./Dropdown-31115457.js");require("./Button.vue_vue_type_style_index_0_lang-0ea8fbf8.js");require("./auth-f018f5b3.js");require("./memberships-393765d8.js");const w=require("./index-b41aac19.js"),u=require("./globals-928eb13c.js"),b={key:0,class:"pd-b-zero"},B={class:"w-100 flex-v-center flex-nojustify flex"},E={class:"w-100 flex-nowrap flex-v-center flex"},x=["src"],$={key:2,class:"t-semi"},v={key:1},C={key:2},V={class:"d-block mn-l-auto flex-nowrap flex flex-v-center"},P={key:0,class:"w-4r i-thin"},N={style:{position:"absolute",top:"0px",right:"0px"},class:"br-solid br-2px br-white z-index-1 radius-big i-thin bg-second flex flex-center t-white p-small t-semi"},R=["src"],S={class:"bg-black pd-thin radius-small"},D=e.createElementVNode("button",{class:"w-100 bg-black br-solid br-1px br-white-transp-20 t-white button-small button"}," Report ",-1),M={__name:"CardHeader",props:["user","entity","entityType","date","dateFormatted","owner","creator","members","membersPhotos","type"],setup(t){k.useRouter();function o(s){const r=new Date,n=new Date(s),l=Math.abs(r-n),a=Math.floor(l/1e3),i=Math.floor(a/60),d=Math.floor(i/60),m=Math.floor(d/24),f=Math.floor(m/7);return f>0?`${f} week${f>1?"s":""} ago`:m>0?`${m} day${m>1?"s":""} ago`:d>0?`${d} hour${d>1?"s":""} ago`:i>0?`${i} minute${i>1?"s":""} ago`:"Just now"}return(s,r)=>{var n,l;return t.owner?(e.openBlock(),e.createElementBlock("header",b,[e.createElementVNode("div",B,[e.createElementVNode("div",E,[t.owner.target.profile.photo.length>0&&t.type!=="short"?(e.openBlock(),e.createElementBlock("img",{key:0,src:(s.FILE_SERVER_URL||"")+t.owner.target.profile.photo,class:"radius-medium mn-r-thin i-thin",onClick:r[0]||(r[0]=e.withModifiers(a=>s.$router.push({name:t.owner.type==="user"?"User Profile":"Organization",params:{_id:t.owner.target._id}}),["stop"]))},null,8,x)):e.createCommentVNode("",!0),!t.owner.target.profile.photo&&t.type!=="short"?(e.openBlock(),e.createBlock(p.PlaceholderUserpic,{key:1,class:"radius-medium mn-r-thin i-thin",onClick:r[1]||(r[1]=e.withModifiers(a=>s.$router.push({name:t.owner.type==="user"?"User Profile":"Organization",params:{_id:t.owner.target._id}}),["stop"]))})):e.createCommentVNode("",!0),t.type!=="short"?(e.openBlock(),e.createElementBlock("span",$,[e.createElementVNode("span",{onClick:r[2]||(r[2]=e.withModifiers(a=>s.$router.push({name:t.owner.type==="user"?"User Profile":"Organization",params:{_id:t.owner.target._id}}),["stop"]))},e.toDisplayString(t.owner.target.profile.name),1),!t.creator.hidden&&t.owner.target.profile.name!==((n=t.creator.target.profile)==null?void 0:n.name)?(e.openBlock(),e.createElementBlock("span",{key:0,onClick:r[3]||(r[3]=e.withModifiers(a=>s.$router.push({name:"User Profile",params:{_id:t.creator.target._id}}),["stop"]))}," · by "+e.toDisplayString((l=t.creator.target.profile)==null?void 0:l.name),1)):e.createCommentVNode("",!0),t.date?(e.openBlock(),e.createElementBlock("span",v," · "+e.toDisplayString(o(t.date)),1)):e.createCommentVNode("",!0),t.dateFormatted?(e.openBlock(),e.createElementBlock("span",C," · "+e.toDisplayString(t.dateFormatted),1)):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),e.createElementVNode("div",V,[t.members?(e.openBlock(),e.createElementBlock("div",P,[e.createElementVNode("span",N,e.toDisplayString(t.members),1),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.membersPhotos.slice(0,2),(a,i)=>(e.openBlock(),e.createElementBlock("img",{key:i,src:(s.FILE_SERVER_URL||"")+a,style:e.normalizeStyle({position:"absolute",top:"0px",right:i*20+20+"%",zIndex:1-i}),class:"br-solid br-2px br-white i-thin bg-grey radius-big"},null,12,R))),128))])):e.createCommentVNode("",!0)]),t.type!=="short"&&t.user&&t.user!=t.creator.target._id?(e.openBlock(),e.createBlock(y.Dropdown,{key:3,label:"...",align:"right",class:"cursor-pointer z-index-2 pd-thin radius-extra"},{default:e.withCtx(()=>[e.createElementVNode("section",S,[t.user!==t.creator.target._id?(e.openBlock(),e.createBlock(y._sfc_main,{key:0,user:t.user,type:t.entityType,target:t.entity._id,text:"Report",class:"w-100"},{default:e.withCtx(()=>[D]),_:1},8,["user","type","target"])):e.createCommentVNode("",!0)])]),_:1},8,["label"])):e.createCommentVNode("",!0)])])])):e.createCommentVNode("",!0)}}},h=w.axios.create({baseURL:process.env.API_URL,withCredentials:!0}),c=e.reactive({reactions:[],error:null}),g={async read({user:t,type:o,target:s,role:r}){try{const n=await h.get("/api/reactions",{params:{user:t,type:o,target:s,role:r}});return c.error=null,c.reactions=n.data,Promise.resolve(n.data)}catch(n){return u.setError(n),Promise.reject(n)}},async create(t){try{const o=await h.post("/api/reactions/create",t);return c.error=null,Promise.resolve(o.data)}catch(o){return console.log(o),u.setError(o),Promise.reject(o)}},async update(t){try{const o=await h.post("/api/reactions/update",t);return c.error=null,Promise.resolve(o.data)}catch(o){return u.setError(o),Promise.reject(o)}},async delete(t){try{const o=await h.post("/api/reactions/delete",t);return c.error=null,Promise.resolve(o.data)}catch(o){return u.setError(o),Promise.reject(o)}}},U={handleReactionUpdate(t,o,s){let r;if(Array.isArray(t)?r=t.find(n=>n._id===o.target):typeof t=="object"&&t._id===o.target&&(r=t),r)if(r.hasReaction=s,s)r.reactions.push(o),r.numberOfReactions+=1;else{const n=r.reactions.findIndex(l=>l._id===o._id);n!==-1&&(r.reactions.splice(n,1),r.numberOfReactions-=1)}}};e.watch(c,t=>{});const q=Object.freeze(Object.defineProperty({__proto__:null,actions:g,mutations:U,state:c},Symbol.toStringTag,{value:"Module"})),z={class:"flex-v-center gap-thin flex"},j={class:"pd-thin radius-small t-semi bg-main"},L={key:1,class:"pd-thin radius-small t-semi bg-white"},F={__name:"Chips",props:["chips"],setup(t){return(o,s)=>(e.openBlock(),e.createElementBlock("div",z,[t.chips.length?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(t.chips,(r,n)=>(e.openBlock(),e.createElementBlock("div",j,e.toDisplayString(r.text?r.text:r),1))),256)):(e.openBlock(),e.createElementBlock("div",L,e.toDisplayString(t.chips),1))]))}};exports._sfc_main=M;exports._sfc_main$1=F;exports.actions=g;exports.reactions=q;
|