@ozdao/prometheus-framework 0.0.95 → 0.0.96
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/CardOrganization-1b0da77c.mjs +230 -0
- package/dist/CardOrganization-43e80590.js +1 -0
- package/dist/Chips-4316f652.mjs +110 -0
- package/dist/Chips-92ccc11f.js +1 -0
- package/dist/Feed-361761f5.mjs +366 -0
- package/dist/Feed-8acc6844.js +1 -0
- package/dist/Feed-8f6eb29d.mjs +439 -0
- package/dist/Feed-c8dc4359.js +1 -0
- package/dist/IconEdit-4cfe2115.js +1 -0
- package/dist/IconEdit-eacf3856.mjs +44 -0
- package/dist/Image-661e2fbc.mjs +477 -0
- package/dist/Image-f66dbbf4.js +9 -0
- package/dist/Product-601a9d5b.mjs +838 -0
- package/dist/Product-f017e6cd.js +7 -0
- package/dist/ProductEdit-dae66a53.js +1 -0
- package/dist/ProductEdit-fa0117b6.mjs +350 -0
- package/dist/ProfileBlogposts-69beaa14.js +1 -0
- package/dist/ProfileBlogposts-92c4addb.mjs +64 -0
- package/dist/ProfileComments-bae499e9.js +1 -0
- package/dist/ProfileComments-cdaccefe.mjs +44 -0
- package/dist/ProfileEvents-3089a526.mjs +56 -0
- package/dist/ProfileEvents-e62e76cf.js +1 -0
- package/dist/ProfileLikes-6cf19687.js +1 -0
- package/dist/ProfileLikes-75215d15.mjs +44 -0
- package/dist/ProfileOrganizations-55914b43.js +1 -0
- package/dist/ProfileOrganizations-ec908108.mjs +212 -0
- package/dist/Publics-6b7c97bd.js +1 -0
- package/dist/Publics-abbe2e0c.mjs +123 -0
- package/dist/Socials-8193477c.mjs +189 -0
- package/dist/Socials-821bd677.js +1 -0
- package/dist/UploadImage-1b4c2a5e.mjs +83 -0
- package/dist/UploadImage-39d42048.js +1 -0
- package/dist/community.client.cjs +1 -1
- package/dist/community.client.js +7 -7
- package/dist/components/Text/Text.vue.d.ts +1 -0
- package/dist/components/Text/Text.vue.d.ts.map +1 -1
- package/dist/events.client.cjs +1 -1
- package/dist/events.client.js +8 -8
- package/dist/landing.client.cjs +1 -1
- package/dist/landing.client.js +38 -38
- package/dist/main.css +1 -1
- package/dist/organizations.client-8aa34e80.mjs +3017 -0
- package/dist/organizations.client-b0878617.js +3 -0
- package/dist/organizations.client.cjs +1 -1
- package/dist/organizations.client.js +9 -9
- package/dist/prometheus-framework.cjs.js +2 -2
- package/dist/prometheus-framework.es.js +4 -3
- package/dist/style.css +1 -1
- package/dist/users.client.cjs +1 -1
- package/dist/users.client.js +45 -45
- package/package.json +1 -1
- package/src/components/CardHeader/CardHeader.vue +2 -2
- package/src/components/Magnifier/Magnifier.vue +1 -1
- package/src/components/Text/Text.vue +4 -3
- package/src/components/UploadImage/UploadImage.vue +8 -1
- package/src/modules/backoffice/components/pages/Organizations.vue +1 -1
- package/src/modules/community/components/blocks/CardBlogpost.vue +16 -1
- package/src/modules/constructor/components/elements/Image.vue +1 -1
- package/src/modules/constructor/components/elements/ImageUpload.vue +1 -1
- package/src/modules/events/components/blocks/CardEvent.vue +18 -6
- package/src/modules/events/components/elements/ButtonJoin.vue +1 -1
- package/src/modules/landing/components/sections/MobileApp.vue +1 -1
- package/src/modules/orders/components/blocks/CardOrderItem.vue +1 -1
- package/src/modules/orders/components/blocks/Positions.vue +2 -2
- package/src/modules/organizations/components/blocks/CardOrganization.vue +5 -5
- package/src/modules/organizations/components/blocks/DepartmentSub.vue +1 -1
- package/src/modules/organizations/components/blocks/User.vue +1 -1
- package/src/modules/organizations/components/pages/Organizations.vue +1 -1
- package/src/modules/organizations/components/pages/OrganizationsAccount.vue +1 -1
- package/src/modules/organizations/components/sections/DetailsTab.vue +1 -1
- package/src/modules/organizations/components/sections/Publics.vue +1 -1
- package/src/modules/products/components/blocks/Images360.vue +1 -1
- package/src/modules/products/components/blocks/ImagesThumbnails.vue +1 -1
- package/src/modules/products/components/blocks/LeftoverPositions.vue +2 -2
- package/src/modules/products/components/blocks/ProductCard.vue +1 -1
- package/src/modules/products/components/sections/EditProductImages.vue +1 -1
- package/src/modules/products/components/sections/HeroRecommendation.vue +1 -1
- package/src/modules/products/components/sections/SectionProduct.vue +1 -1
- package/src/modules/users/components/pages/Profile.vue +3 -3
- package/src/modules/users/components/pages/ProfileEdit.vue +1 -1
- package/src/styles/base/all.scss +1 -0
@@ -0,0 +1,230 @@
|
|
1
|
+
import { openBlock as n, createElementBlock as i, createCommentVNode as a, createElementVNode as e, createTextVNode as m, toDisplayString as r, ref as C, computed as d, unref as u, createVNode as y, Fragment as g, renderList as f, createBlock as x, withModifiers as z } from "vue";
|
2
|
+
import { useRouter as v } from "vue-router";
|
3
|
+
import { B as $ } from "./ButtonFollow-6765c266.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: "aspect-1x1",
|
12
|
+
style: { "object-fit": "cover" }
|
13
|
+
}, M = /* @__PURE__ */ e("rect", {
|
14
|
+
width: "524",
|
15
|
+
height: "345",
|
16
|
+
fill: "white"
|
17
|
+
}, null, -1), V = /* @__PURE__ */ e("rect", {
|
18
|
+
width: "524",
|
19
|
+
height: "345",
|
20
|
+
fill: "white"
|
21
|
+
}, null, -1), T = /* @__PURE__ */ e("circle", {
|
22
|
+
cx: "262",
|
23
|
+
cy: "172",
|
24
|
+
r: "56",
|
25
|
+
fill: "#00ff88",
|
26
|
+
"fill-opacity": "0.1"
|
27
|
+
}, null, -1), B = /* @__PURE__ */ e("path", {
|
28
|
+
fill: "#00ff88",
|
29
|
+
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"
|
30
|
+
}, null, -1), S = [
|
31
|
+
M,
|
32
|
+
V,
|
33
|
+
T,
|
34
|
+
B
|
35
|
+
], E = { class: "text-left" }, F = { class: "name" }, I = {
|
36
|
+
key: 0,
|
37
|
+
class: "t-transp"
|
38
|
+
}, O = {
|
39
|
+
key: 1,
|
40
|
+
class: "t-transp"
|
41
|
+
}, R = {
|
42
|
+
key: 2,
|
43
|
+
class: "t-transp"
|
44
|
+
}, q = { class: "t-main t-demi price mn-small" }, H = { key: 0 }, Z = {
|
45
|
+
key: 0,
|
46
|
+
class: "flex-nojustify flex"
|
47
|
+
}, j = { class: "flex-nowrap flex" }, N = /* @__PURE__ */ e("svg", {
|
48
|
+
fill: "none",
|
49
|
+
height: "20",
|
50
|
+
viewBox: "0 0 20 20",
|
51
|
+
width: "20",
|
52
|
+
xmlns: "http://www.w3.org/2000/svg"
|
53
|
+
}, [
|
54
|
+
/* @__PURE__ */ e("path", {
|
55
|
+
"clip-rule": "evenodd",
|
56
|
+
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",
|
57
|
+
fill: "#8a8a8a",
|
58
|
+
"fill-rule": "evenodd"
|
59
|
+
})
|
60
|
+
], -1), U = [
|
61
|
+
N
|
62
|
+
], D = {
|
63
|
+
__name: "CardOrderItem",
|
64
|
+
props: {
|
65
|
+
product: Object,
|
66
|
+
editable: String,
|
67
|
+
increase: Function,
|
68
|
+
decrease: Function,
|
69
|
+
remove: Function
|
70
|
+
},
|
71
|
+
setup(t) {
|
72
|
+
return v(), (o, s) => (n(), i("div", _, [
|
73
|
+
t.product.images[0] ? (n(), i("img", {
|
74
|
+
key: 0,
|
75
|
+
class: "bg-grey aspect-1x1",
|
76
|
+
src: (o.FILE_SERVER_URL || "") + t.product.images[0]
|
77
|
+
}, null, 8, k)) : a("", !0),
|
78
|
+
t.product.images[0] ? a("", !0) : (n(), i("svg", L, S)),
|
79
|
+
e("div", E, [
|
80
|
+
e("p", F, [
|
81
|
+
m(r(t.product.name) + " ", 1),
|
82
|
+
t.product.size ? (n(), i("span", I, ", " + r(t.product.size), 1)) : a("", !0),
|
83
|
+
typeof t.product.color == "string" && t.product.size ? (n(), i("span", O, ", ")) : a("", !0),
|
84
|
+
typeof t.product.color == "string" ? (n(), i("span", R, r(t.product.color), 1)) : a("", !0)
|
85
|
+
]),
|
86
|
+
e("p", q, [
|
87
|
+
t.editable ? (n(), i("span", H, r(t.product.quantity) + " x ", 1)) : a("", !0),
|
88
|
+
m(r(t.product.price) + " " + r(o.returnCurrency()), 1)
|
89
|
+
]),
|
90
|
+
t.editable ? (n(), i("div", Z, [
|
91
|
+
e("div", j, [
|
92
|
+
e("button", {
|
93
|
+
onClick: s[0] || (s[0] = (c) => t.decrease(t.product)),
|
94
|
+
class: "mn-r-thin bg-grey button-square button"
|
95
|
+
}, "-"),
|
96
|
+
e("button", {
|
97
|
+
onClick: s[1] || (s[1] = (c) => t.increase(t.product)),
|
98
|
+
class: "mn-r-thin bg-grey button-square button"
|
99
|
+
}, "+")
|
100
|
+
]),
|
101
|
+
e("button", {
|
102
|
+
onClick: s[2] || (s[2] = (c) => t.remove(t.product)),
|
103
|
+
class: "hover_br-transp hover_br-l-dark bg-transp button-square button"
|
104
|
+
}, U)
|
105
|
+
])) : a("", !0)
|
106
|
+
])
|
107
|
+
]));
|
108
|
+
}
|
109
|
+
}, P = {
|
110
|
+
key: 0,
|
111
|
+
class: "cursor-pointer t-second"
|
112
|
+
}, A = {
|
113
|
+
__name: "Text",
|
114
|
+
props: {
|
115
|
+
maxLen: { type: Number, required: !0 },
|
116
|
+
text: { type: String, required: !0 },
|
117
|
+
showToggleText: { type: Boolean, default: !1 }
|
118
|
+
},
|
119
|
+
setup(t) {
|
120
|
+
const o = t, s = C(!1), c = d(() => o.text.length > o.maxLen ? o.text.slice(0, o.maxLen) + "..." : o.text), l = d(() => o.text), h = () => {
|
121
|
+
s.value = !s.value;
|
122
|
+
}, w = d(() => s.value ? l.value : c.value), b = d(() => o.text.length > o.maxLen), p = d(() => s.value ? "Hide" : "Show more");
|
123
|
+
return (gt, ft) => (n(), i("span", {
|
124
|
+
onClick: h,
|
125
|
+
class: ""
|
126
|
+
}, [
|
127
|
+
m(r(u(w)) + " ", 1),
|
128
|
+
u(b) && t.showToggleText ? (n(), i("span", P, r(u(p)), 1)) : a("", !0)
|
129
|
+
]));
|
130
|
+
}
|
131
|
+
}, G = { class: "pd-medium flex-v-center flex-nowrap flex" }, J = ["src"], K = {
|
132
|
+
key: 1,
|
133
|
+
class: "h-4r w-4r radius-extra",
|
134
|
+
width: "42",
|
135
|
+
height: "42",
|
136
|
+
viewBox: "0 0 42 42",
|
137
|
+
fill: "none",
|
138
|
+
xmlns: "http://www.w3.org/2000/svg"
|
139
|
+
}, Q = /* @__PURE__ */ e("circle", {
|
140
|
+
fill: "rgb(var(--main))",
|
141
|
+
cx: "21",
|
142
|
+
cy: "21",
|
143
|
+
r: "21"
|
144
|
+
}, null, -1), W = /* @__PURE__ */ e("path", {
|
145
|
+
fill: "#242424",
|
146
|
+
"fill-opacity": "0.1",
|
147
|
+
"fill-rule": "evenodd",
|
148
|
+
"clip-rule": "evenodd",
|
149
|
+
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"
|
150
|
+
}, null, -1), X = [
|
151
|
+
Q,
|
152
|
+
W
|
153
|
+
], Y = { class: "flex-child-1 flex-child mn-l-small w-100" }, tt = { class: "h3 mn-r-semi mn-thin" }, et = {
|
154
|
+
key: 0,
|
155
|
+
class: "w-max star-container flex-v-center flex"
|
156
|
+
}, 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 = {
|
157
|
+
key: 0,
|
158
|
+
class: "pd-medium"
|
159
|
+
}, 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), bt = {
|
160
|
+
__name: "CardOrganization",
|
161
|
+
props: {
|
162
|
+
user: String,
|
163
|
+
organization: Object
|
164
|
+
},
|
165
|
+
emits: ["updateMembership"],
|
166
|
+
setup(t, { emit: o }) {
|
167
|
+
return v(), (s, c) => (n(), i("div", {
|
168
|
+
class: "bg-grey radius-big o-hidden",
|
169
|
+
onClick: c[1] || (c[1] = (l) => s.$router.push({ name: "Organization", params: { _id: t.organization._id } }))
|
170
|
+
}, [
|
171
|
+
e("div", G, [
|
172
|
+
t.organization.profile.photo && t.organization.profile.photo.length > 0 ? (n(), i("img", {
|
173
|
+
key: 0,
|
174
|
+
src: (s.FILE_SERVER_URL || "") + t.organization.profile.photo,
|
175
|
+
class: "h-4r w-4r radius-extra bg-white"
|
176
|
+
}, null, 8, J)) : (n(), i("svg", K, X)),
|
177
|
+
e("div", Y, [
|
178
|
+
e("p", tt, [
|
179
|
+
y(A, {
|
180
|
+
text: t.organization.profile.name ? t.organization.profile.name : "",
|
181
|
+
maxLen: 16
|
182
|
+
}, null, 8, ["text"])
|
183
|
+
]),
|
184
|
+
t.organization.ratingS ? (n(), i("div", et, [
|
185
|
+
e("span", nt, r(t.organization.types[0]), 1),
|
186
|
+
(n(), i(g, null, f(5, (l) => e("img", {
|
187
|
+
class: "i-small mn-r-thin",
|
188
|
+
src: l <= t.organization.rating.median ? "/icons/star.svg" : "/icons/star-stroke.svg"
|
189
|
+
}, null, 8, it)), 64)),
|
190
|
+
e("span", st, r(t.organization.rating.median), 1),
|
191
|
+
e("span", ot, "(" + r(t.organization.rating.amount) + ")", 1)
|
192
|
+
])) : a("", !0),
|
193
|
+
e("div", null, [
|
194
|
+
e("p", rt, r(t.organization.numberOfMemberships) + " followers", 1),
|
195
|
+
t.user._id ? (n(), x($, {
|
196
|
+
key: 0,
|
197
|
+
type: "organization",
|
198
|
+
isMember: t.organization.isMember,
|
199
|
+
targetId: t.organization._id,
|
200
|
+
userId: t.user,
|
201
|
+
class: "radius-big w-100",
|
202
|
+
onUpdateMembership: c[0] || (c[0] = (l) => o("updateMembership", l))
|
203
|
+
}, null, 8, ["isMember", "targetId", "userId"])) : a("", !0)
|
204
|
+
])
|
205
|
+
])
|
206
|
+
]),
|
207
|
+
t.organization.products.length > 0 ? (n(), i("div", at, [
|
208
|
+
e("div", lt, [
|
209
|
+
e("p", ct, r(t.organization.products.length) + " items: ", 1),
|
210
|
+
dt,
|
211
|
+
ut
|
212
|
+
]),
|
213
|
+
e("div", mt, [
|
214
|
+
(n(!0), i(g, null, f(t.organization.products, (l) => (n(), x(D, {
|
215
|
+
onClick: z((h) => s.$router.push({ name: "Product Organization", params: { _id: t.organization._id, product: l._id } }), ["stop"]),
|
216
|
+
key: l._id,
|
217
|
+
editable: !1,
|
218
|
+
product: l,
|
219
|
+
class: "pd-thin radius-medium w-15r br-solid br-grey br-1px bg-white mn-r-thin"
|
220
|
+
}, null, 8, ["onClick", "product"]))), 128)),
|
221
|
+
ht
|
222
|
+
])
|
223
|
+
])) : a("", !0)
|
224
|
+
]));
|
225
|
+
}
|
226
|
+
};
|
227
|
+
export {
|
228
|
+
bt as _,
|
229
|
+
A as a
|
230
|
+
};
|
@@ -0,0 +1 @@
|
|
1
|
+
"use strict";const e=require("vue"),a=require("vue-router"),u=require("./ButtonFollow-4049a57e.js");const h={class:"flex-stretch flex-nojustify flex-nowrap flex shop-cart-item"},g=["src"],p={key:1,width:"524",height:"345",viewBox:"0 0 524 345",fill:"none",xmlns:"http://www.w3.org/2000/svg",class:"aspect-1x1",style:{"object-fit":"cover"}},f=e.createElementVNode("rect",{width:"524",height:"345",fill:"white"},null,-1),k=e.createElementVNode("rect",{width:"524",height:"345",fill:"white"},null,-1),x=e.createElementVNode("circle",{cx:"262",cy:"172",r:"56",fill:"#00ff88","fill-opacity":"0.1"},null,-1),v=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),E=[f,k,x,v],V={class:"text-left"},C={class:"name"},w={key:0,class:"t-transp"},y={key:1,class:"t-transp"},b={key:2,class:"t-transp"},N={class:"t-main t-demi price mn-small"},B={key:0},_={key:0,class:"flex-nojustify flex"},$={class:"flex-nowrap flex"},z=e.createElementVNode("svg",{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),L=[z],S={__name:"CardOrderItem",props:{product:Object,editable:String,increase:Function,decrease:Function,remove:Function},setup(t){return a.useRouter(),(o,n)=>(e.openBlock(),e.createElementBlock("div",h,[t.product.images[0]?(e.openBlock(),e.createElementBlock("img",{key:0,class:"bg-grey aspect-1x1",src:(o.FILE_SERVER_URL||"")+t.product.images[0]},null,8,g)):e.createCommentVNode("",!0),t.product.images[0]?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("svg",p,E)),e.createElementVNode("div",V,[e.createElementVNode("p",C,[e.createTextVNode(e.toDisplayString(t.product.name)+" ",1),t.product.size?(e.openBlock(),e.createElementBlock("span",w,", "+e.toDisplayString(t.product.size),1)):e.createCommentVNode("",!0),typeof t.product.color=="string"&&t.product.size?(e.openBlock(),e.createElementBlock("span",y,", ")):e.createCommentVNode("",!0),typeof t.product.color=="string"?(e.openBlock(),e.createElementBlock("span",b,e.toDisplayString(t.product.color),1)):e.createCommentVNode("",!0)]),e.createElementVNode("p",N,[t.editable?(e.openBlock(),e.createElementBlock("span",B,e.toDisplayString(t.product.quantity)+" x ",1)):e.createCommentVNode("",!0),e.createTextVNode(e.toDisplayString(t.product.price)+" "+e.toDisplayString(o.returnCurrency()),1)]),t.editable?(e.openBlock(),e.createElementBlock("div",_,[e.createElementVNode("div",$,[e.createElementVNode("button",{onClick:n[0]||(n[0]=i=>t.decrease(t.product)),class:"mn-r-thin bg-grey button-square button"},"-"),e.createElementVNode("button",{onClick:n[1]||(n[1]=i=>t.increase(t.product)),class:"mn-r-thin bg-grey button-square button"},"+")]),e.createElementVNode("button",{onClick:n[2]||(n[2]=i=>t.remove(t.product)),class:"hover_br-transp hover_br-l-dark bg-transp button-square button"},L)])):e.createCommentVNode("",!0)])]))}},M={key:0,class:"cursor-pointer t-second"},s={__name:"Text",props:{maxLen:{type:Number,required:!0},text:{type:String,required:!0},showToggleText:{type:Boolean,default:!1}},setup(t){const o=t,n=e.ref(!1),i=e.computed(()=>o.text.length>o.maxLen?o.text.slice(0,o.maxLen)+"...":o.text),l=e.computed(()=>o.text),r=()=>{n.value=!n.value},c=e.computed(()=>n.value?l.value:i.value),d=e.computed(()=>o.text.length>o.maxLen),m=e.computed(()=>n.value?"Hide":"Show more");return(ne,oe)=>(e.openBlock(),e.createElementBlock("span",{onClick:r,class:""},[e.createTextVNode(e.toDisplayString(e.unref(c))+" ",1),e.unref(d)&&t.showToggleText?(e.openBlock(),e.createElementBlock("span",M,e.toDisplayString(e.unref(m)),1)):e.createCommentVNode("",!0)]))}},D={class:"pd-medium flex-v-center flex-nowrap flex"},T=["src"],F={key:1,class:"h-4r w-4r radius-extra",width:"42",height:"42",viewBox:"0 0 42 42",fill:"none",xmlns:"http://www.w3.org/2000/svg"},q=e.createElementVNode("circle",{fill:"rgb(var(--main))",cx:"21",cy:"21",r:"21"},null,-1),R=e.createElementVNode("path",{fill:"#242424","fill-opacity":"0.1","fill-rule":"evenodd","clip-rule":"evenodd",d:"M8.00233 37.4954C8.00078 37.4458 8 37.3961 8 37.3462C8 32.9066 11.5673 29.3077 15.9677 29.3077H26.0323C30.4328 29.3077 34 32.9066 34 37.3462C34 37.3961 33.9992 37.4458 33.9977 37.4954C30.4223 40.3165 25.9078 42 21 42C16.0922 42 11.5777 40.3164 8.00233 37.4954ZM21 9C16.5995 9 13.0323 12.5989 13.0323 17.0385C13.0323 21.478 16.5995 25.0769 21 25.0769C25.4005 25.0769 28.9677 21.478 28.9677 17.0385C28.9677 12.5989 25.4005 9 21 9Z"},null,-1),I=[q,R],O={class:"flex-child-1 flex-child mn-l-small w-100"},H={class:"h3 mn-r-semi mn-thin"},Z={key:0,class:"w-max star-container flex-v-center flex"},j={class:"mn-r-thin pd-r-thin pd-l-thin pd-micro radius-small t-semi uppercase bg-main p-small"},U=["src"],P={class:"p-small t-semi mn-r-thin"},A={class:"p-small"},G={class:"mn-thin"},J={key:0,class:"pd-medium"},K={class:"mn-small w-100 flex-nowrap flex flex-v-center pd-small bg-white radius-medium"},Q={class:"t-black p-medium t-semi"},W=e.createElementVNode("span",{class:"mn-r-small"},"30-60min",-1),X=e.createElementVNode("span",{class:"mn-r-auto"},"$50 min",-1),Y={class:"d-block o-scroll flex-nowrap flex"},ee=e.createElementVNode("button",{class:"flex-center flex-nowrap flex shop-cart-item pd-thin radius-medium w-15r bg-main button"},"View menu",-1),te={__name:"CardOrganization",props:{user:String,organization:Object},emits:["updateMembership"],setup(t,{emit:o}){return a.useRouter(),(n,i)=>(e.openBlock(),e.createElementBlock("div",{class:"bg-grey radius-big o-hidden",onClick:i[1]||(i[1]=l=>n.$router.push({name:"Organization",params:{_id:t.organization._id}}))},[e.createElementVNode("div",D,[t.organization.profile.photo&&t.organization.profile.photo.length>0?(e.openBlock(),e.createElementBlock("img",{key:0,src:(n.FILE_SERVER_URL||"")+t.organization.profile.photo,class:"h-4r w-4r radius-extra bg-white"},null,8,T)):(e.openBlock(),e.createElementBlock("svg",F,I)),e.createElementVNode("div",O,[e.createElementVNode("p",H,[e.createVNode(s,{text:t.organization.profile.name?t.organization.profile.name:"",maxLen:16},null,8,["text"])]),t.organization.ratingS?(e.openBlock(),e.createElementBlock("div",Z,[e.createElementVNode("span",j,e.toDisplayString(t.organization.types[0]),1),(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(5,l=>e.createElementVNode("img",{class:"i-small mn-r-thin",src:l<=t.organization.rating.median?"/icons/star.svg":"/icons/star-stroke.svg"},null,8,U)),64)),e.createElementVNode("span",P,e.toDisplayString(t.organization.rating.median),1),e.createElementVNode("span",A,"("+e.toDisplayString(t.organization.rating.amount)+")",1)])):e.createCommentVNode("",!0),e.createElementVNode("div",null,[e.createElementVNode("p",G,e.toDisplayString(t.organization.numberOfMemberships)+" followers",1),t.user._id?(e.openBlock(),e.createBlock(u.ButtonFollow,{key:0,type:"organization",isMember:t.organization.isMember,targetId:t.organization._id,userId:t.user,class:"radius-big w-100",onUpdateMembership:i[0]||(i[0]=l=>o("updateMembership",l))},null,8,["isMember","targetId","userId"])):e.createCommentVNode("",!0)])])]),t.organization.products.length>0?(e.openBlock(),e.createElementBlock("div",J,[e.createElementVNode("div",K,[e.createElementVNode("p",Q,e.toDisplayString(t.organization.products.length)+" items: ",1),W,X]),e.createElementVNode("div",Y,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.organization.products,l=>(e.openBlock(),e.createBlock(S,{onClick:e.withModifiers(r=>n.$router.push({name:"Product Organization",params:{_id:t.organization._id,product:l._id}}),["stop"]),key:l._id,editable:!1,product:l,class:"pd-thin radius-medium w-15r br-solid br-grey br-1px bg-white mn-r-thin"},null,8,["onClick","product"]))),128)),ee])])):e.createCommentVNode("",!0)]))}};exports._sfc_main=te;exports._sfc_main$1=s;
|
@@ -0,0 +1,110 @@
|
|
1
|
+
import { openBlock as r, createElementBlock as s, createElementVNode as d, withModifiers as h, createCommentVNode as i, createBlock as k, toDisplayString as a, Fragment as w, renderList as y, normalizeStyle as $, normalizeClass as x } from "vue";
|
2
|
+
import { useRouter as v } from "vue-router";
|
3
|
+
import { P as p } from "./IconEdit-eacf3856.mjs";
|
4
|
+
const E = {
|
5
|
+
key: 0,
|
6
|
+
class: "pd-b-zero"
|
7
|
+
}, z = { class: "w-100 flex-v-center flex-nojustify flex" }, C = { class: "w-100 flex-nowrap flex-v-center flex" }, P = ["src"], M = {
|
8
|
+
key: 2,
|
9
|
+
class: "t-semi"
|
10
|
+
}, R = { key: 1 }, U = { key: 2 }, F = { class: "d-block mn-l-auto flex-nowrap flex flex-v-center" }, L = {
|
11
|
+
key: 0,
|
12
|
+
class: "w-4r i-thin"
|
13
|
+
}, D = {
|
14
|
+
style: { position: "absolute", top: "0px", right: "0px" },
|
15
|
+
class: "br-solid br-2px br-white z-index-1 radius-big i-thin bg-second flex flex-center t-white p-small mn-r-small t-semi"
|
16
|
+
}, S = ["src"], j = {
|
17
|
+
__name: "CardHeader",
|
18
|
+
props: [
|
19
|
+
"date",
|
20
|
+
"dateFormatted",
|
21
|
+
"owner",
|
22
|
+
"creator",
|
23
|
+
"members",
|
24
|
+
"membersPhotos",
|
25
|
+
"type"
|
26
|
+
],
|
27
|
+
setup(e) {
|
28
|
+
v();
|
29
|
+
function g(n) {
|
30
|
+
const t = /* @__PURE__ */ new Date(), o = new Date(n), l = Math.abs(t - o), b = Math.floor(l / 1e3), m = Math.floor(b / 60), c = Math.floor(m / 60), u = Math.floor(c / 24), f = Math.floor(u / 7);
|
31
|
+
return f > 0 ? `${f} week${f > 1 ? "s" : ""} ago` : u > 0 ? `${u} day${u > 1 ? "s" : ""} ago` : c > 0 ? `${c} hour${c > 1 ? "s" : ""} ago` : m > 0 ? `${m} minute${m > 1 ? "s" : ""} ago` : "Just now";
|
32
|
+
}
|
33
|
+
return (n, t) => e.owner ? (r(), s("header", E, [
|
34
|
+
d("div", z, [
|
35
|
+
d("div", C, [
|
36
|
+
e.owner.target.profile.photo.length > 0 && e.type !== "short" ? (r(), s("img", {
|
37
|
+
key: 0,
|
38
|
+
src: (n.FILE_SERVER_URL || "") + e.owner.target.profile.photo,
|
39
|
+
class: "radius-medium mn-r-thin i-thin",
|
40
|
+
onClick: t[0] || (t[0] = h((o) => n.$router.push({
|
41
|
+
name: e.owner.type === "user" ? "User Profile" : "Organization",
|
42
|
+
params: {
|
43
|
+
_id: e.owner.target._id
|
44
|
+
}
|
45
|
+
}), ["stop"]))
|
46
|
+
}, null, 8, P)) : i("", !0),
|
47
|
+
!e.owner.target.profile.photo && e.type !== "short" ? (r(), k(p, {
|
48
|
+
key: 1,
|
49
|
+
class: "radius-medium mn-r-thin i-thin",
|
50
|
+
onClick: t[1] || (t[1] = h((o) => n.$router.push({
|
51
|
+
name: e.owner.type === "user" ? "User Profile" : "Organization",
|
52
|
+
params: {
|
53
|
+
_id: e.owner.target._id
|
54
|
+
}
|
55
|
+
}), ["stop"]))
|
56
|
+
})) : i("", !0),
|
57
|
+
e.type !== "short" ? (r(), s("span", M, [
|
58
|
+
d("span", {
|
59
|
+
onClick: t[2] || (t[2] = h((o) => n.$router.push({
|
60
|
+
name: e.owner.type === "user" ? "User Profile" : "Organization",
|
61
|
+
params: {
|
62
|
+
_id: e.owner.target._id
|
63
|
+
}
|
64
|
+
}), ["stop"]))
|
65
|
+
}, a(e.owner.target.profile.name), 1),
|
66
|
+
!e.creator.hidden && e.owner.target.profile.name !== e.creator.target.profile.name ? (r(), s("span", {
|
67
|
+
key: 0,
|
68
|
+
onClick: t[3] || (t[3] = h((o) => n.$router.push({
|
69
|
+
name: "User Profile",
|
70
|
+
params: {
|
71
|
+
_id: e.owner.target._id
|
72
|
+
}
|
73
|
+
}), ["stop"]))
|
74
|
+
}, " · by " + a(e.creator.target.profile.name), 1)) : i("", !0),
|
75
|
+
e.date ? (r(), s("span", R, " · " + a(g(e.date)), 1)) : i("", !0),
|
76
|
+
e.dateFormatted ? (r(), s("span", U, " · " + a(e.dateFormatted), 1)) : i("", !0)
|
77
|
+
])) : i("", !0),
|
78
|
+
d("div", F, [
|
79
|
+
e.members ? (r(), s("div", L, [
|
80
|
+
d("span", D, a(e.members), 1),
|
81
|
+
(r(!0), s(w, null, y(e.membersPhotos.slice(0, 2), (o, l) => (r(), s("img", {
|
82
|
+
key: l,
|
83
|
+
src: (n.FILE_SERVER_URL || "") + o,
|
84
|
+
style: $({ position: "absolute", top: "0px", right: l * 20 + 40 + "%", zIndex: 1 - l }),
|
85
|
+
class: "br-solid br-2px br-white i-thin bg-grey radius-big"
|
86
|
+
}, null, 12, S))), 128))
|
87
|
+
])) : i("", !0)
|
88
|
+
])
|
89
|
+
])
|
90
|
+
])
|
91
|
+
])) : i("", !0);
|
92
|
+
}
|
93
|
+
}, V = { class: "flex-v-center flex-nowrap flex" }, B = {
|
94
|
+
key: 1,
|
95
|
+
class: "pd-thin radius-small t-semi bg-white"
|
96
|
+
}, A = {
|
97
|
+
__name: "Chips",
|
98
|
+
props: ["chips"],
|
99
|
+
setup(e) {
|
100
|
+
return (g, n) => (r(), s("div", V, [
|
101
|
+
e.chips.length ? (r(!0), s(w, { key: 0 }, y(e.chips, (t, o) => (r(), s("div", {
|
102
|
+
class: x(["pd-thin radius-small t-semi bg-main", { "mn-r-thin": o !== e.chips.length - 1 }])
|
103
|
+
}, a(t.text ? t.text : t), 3))), 256)) : (r(), s("div", B, a(e.chips), 1))
|
104
|
+
]));
|
105
|
+
}
|
106
|
+
};
|
107
|
+
export {
|
108
|
+
j as _,
|
109
|
+
A as a
|
110
|
+
};
|
@@ -0,0 +1 @@
|
|
1
|
+
"use strict";const e=require("vue"),u=require("vue-router"),h=require("./IconEdit-4cfe2115.js"),f={key:0,class:"pd-b-zero"},k={class:"w-100 flex-v-center flex-nojustify flex"},g={class:"w-100 flex-nowrap flex-v-center flex"},w=["src"],y={key:2,class:"t-semi"},p={key:1},B={key:2},E={class:"d-block mn-l-auto flex-nowrap flex flex-v-center"},b={key:0,class:"w-4r i-thin"},$={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 mn-r-small t-semi"},v=["src"],x={__name:"CardHeader",props:["date","dateFormatted","owner","creator","members","membersPhotos","type"],setup(t){u.useRouter();function m(r){const o=new Date,n=new Date(r),s=Math.abs(o-n),d=Math.floor(s/1e3),i=Math.floor(d/60),a=Math.floor(i/60),l=Math.floor(a/24),c=Math.floor(l/7);return c>0?`${c} week${c>1?"s":""} ago`:l>0?`${l} day${l>1?"s":""} ago`:a>0?`${a} hour${a>1?"s":""} ago`:i>0?`${i} minute${i>1?"s":""} ago`:"Just now"}return(r,o)=>t.owner?(e.openBlock(),e.createElementBlock("header",f,[e.createElementVNode("div",k,[e.createElementVNode("div",g,[t.owner.target.profile.photo.length>0&&t.type!=="short"?(e.openBlock(),e.createElementBlock("img",{key:0,src:(r.FILE_SERVER_URL||"")+t.owner.target.profile.photo,class:"radius-medium mn-r-thin i-thin",onClick:o[0]||(o[0]=e.withModifiers(n=>r.$router.push({name:t.owner.type==="user"?"User Profile":"Organization",params:{_id:t.owner.target._id}}),["stop"]))},null,8,w)):e.createCommentVNode("",!0),!t.owner.target.profile.photo&&t.type!=="short"?(e.openBlock(),e.createBlock(h.PlaceholderUserpic,{key:1,class:"radius-medium mn-r-thin i-thin",onClick:o[1]||(o[1]=e.withModifiers(n=>r.$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",y,[e.createElementVNode("span",{onClick:o[2]||(o[2]=e.withModifiers(n=>r.$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!==t.creator.target.profile.name?(e.openBlock(),e.createElementBlock("span",{key:0,onClick:o[3]||(o[3]=e.withModifiers(n=>r.$router.push({name:"User Profile",params:{_id:t.owner.target._id}}),["stop"]))}," · by "+e.toDisplayString(t.creator.target.profile.name),1)):e.createCommentVNode("",!0),t.date?(e.openBlock(),e.createElementBlock("span",p," · "+e.toDisplayString(m(t.date)),1)):e.createCommentVNode("",!0),t.dateFormatted?(e.openBlock(),e.createElementBlock("span",B," · "+e.toDisplayString(t.dateFormatted),1)):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),e.createElementVNode("div",E,[t.members?(e.openBlock(),e.createElementBlock("div",b,[e.createElementVNode("span",$,e.toDisplayString(t.members),1),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.membersPhotos.slice(0,2),(n,s)=>(e.openBlock(),e.createElementBlock("img",{key:s,src:(r.FILE_SERVER_URL||"")+n,style:e.normalizeStyle({position:"absolute",top:"0px",right:s*20+40+"%",zIndex:1-s}),class:"br-solid br-2px br-white i-thin bg-grey radius-big"},null,12,v))),128))])):e.createCommentVNode("",!0)])])])])):e.createCommentVNode("",!0)}},C={class:"flex-v-center flex-nowrap flex"},V={key:1,class:"pd-thin radius-small t-semi bg-white"},N={__name:"Chips",props:["chips"],setup(t){return(m,r)=>(e.openBlock(),e.createElementBlock("div",C,[t.chips.length?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(t.chips,(o,n)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["pd-thin radius-small t-semi bg-main",{"mn-r-thin":n!==t.chips.length-1}])},e.toDisplayString(o.text?o.text:o),3))),256)):(e.openBlock(),e.createElementBlock("div",V,e.toDisplayString(t.chips),1))]))}};exports._sfc_main=x;exports._sfc_main$1=N;
|