@ozdao/prometheus-framework 0.2.130 → 0.2.133
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/auth.server.js +0 -1
- package/dist/auth.server.mjs +0 -1
- package/dist/community.server.js +172 -31
- package/dist/community.server.mjs +172 -31
- package/dist/events.server.js +1 -1
- package/dist/events.server.mjs +1 -1
- package/dist/files.server.js +38 -4
- package/dist/files.server.mjs +38 -4
- package/dist/gallery.server.js +1 -1
- package/dist/gallery.server.mjs +1 -1
- package/dist/main-CI9l9xMs.js +92 -0
- package/dist/main-DPg58GOU.mjs +14509 -0
- package/dist/main.css +1 -1
- package/dist/orders.server.js +1 -1
- package/dist/orders.server.mjs +1 -1
- package/dist/organizations.server.js +4 -3
- package/dist/organizations.server.mjs +4 -3
- package/dist/products.server.js +2 -1
- package/dist/products.server.mjs +2 -1
- package/dist/prometheus-framework/src/components/Address/Address.vue.cjs +1 -0
- package/dist/prometheus-framework/src/components/Address/Address.vue.js +89 -0
- package/dist/prometheus-framework/src/components/Address/Address.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/components/Address/Address.vue2.js +22 -23
- package/dist/prometheus-framework/src/components/Block/Block.vue.js +13 -13
- package/dist/prometheus-framework/src/components/Button/Button.vue.cjs +1 -0
- package/dist/prometheus-framework/src/components/Button/Button.vue.js +95 -0
- package/dist/prometheus-framework/src/components/Chips/Chips.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Chips/Chips.vue.js +12 -13
- package/dist/prometheus-framework/src/components/Chips/Chips.vue2.cjs +1 -0
- package/dist/prometheus-framework/src/components/Chips/Chips.vue2.js +26 -0
- package/dist/prometheus-framework/src/components/DatePicker/Calendar.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/components/DatePicker/Calendar.vue2.js +32 -33
- package/dist/prometheus-framework/src/components/Draggable/Draggable.vue.cjs +1 -0
- package/dist/prometheus-framework/src/components/Draggable/Draggable.vue.js +75 -0
- package/dist/prometheus-framework/src/components/Dropdown/Dropdown.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Dropdown/Dropdown.vue.js +14 -15
- package/dist/prometheus-framework/src/components/Dropdown/Dropdown.vue2.cjs +1 -0
- package/dist/prometheus-framework/src/components/Dropdown/Dropdown.vue2.js +57 -0
- package/dist/prometheus-framework/src/components/Feed/Feed.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Feed/Feed.vue.js +93 -87
- package/dist/prometheus-framework/src/components/Field/Field.vue.cjs +1 -0
- package/dist/prometheus-framework/src/components/Field/Field.vue.js +84 -0
- package/dist/prometheus-framework/src/components/FieldBig/FieldBig.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/FieldBig/FieldBig.vue.js +32 -29
- package/dist/prometheus-framework/src/components/FieldPhone/FieldPhone.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/FieldPhone/FieldPhone.vue.js +22 -23
- package/dist/prometheus-framework/src/components/FieldTags/FieldTags.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/FieldTags/FieldTags.vue.js +39 -39
- package/dist/prometheus-framework/src/components/FieldTags/tag-input.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/components/FieldTags/tag-input.vue2.js +5 -5
- package/dist/prometheus-framework/src/components/LocationMarker/LocationMarker.vue.cjs +1 -0
- package/dist/prometheus-framework/src/components/LocationMarker/LocationMarker.vue.js +127 -0
- package/dist/prometheus-framework/src/components/LocationMarker/LocationMarker.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/components/LocationMarker/LocationMarker.vue2.js +46 -47
- package/dist/prometheus-framework/src/components/Menu/Menu.vue.cjs +1 -0
- package/dist/prometheus-framework/src/components/Menu/Menu.vue.js +13 -0
- package/dist/prometheus-framework/src/components/PhotoViewer/PhotoViewer.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/PhotoViewer/PhotoViewer.vue.js +22 -23
- package/dist/prometheus-framework/src/components/Popup/Popup.vue2.cjs +1 -0
- package/dist/prometheus-framework/src/components/Popup/Popup.vue2.js +77 -0
- package/dist/prometheus-framework/src/components/Select/Select.vue.cjs +1 -0
- package/dist/prometheus-framework/src/components/Select/Select.vue.js +103 -0
- package/dist/prometheus-framework/src/components/Spoiler/Spoiler.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/components/Spoiler/Spoiler.vue2.js +14 -15
- package/dist/prometheus-framework/src/components/Tooltip/Tooltip.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Tooltip/Tooltip.vue.js +9 -10
- package/dist/prometheus-framework/src/components/Upload/Upload.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Upload/Upload.vue.js +37 -34
- package/dist/prometheus-framework/src/modules/auth/components/pages/ResetPassword.vue.js +30 -30
- package/dist/prometheus-framework/src/modules/auth/components/pages/SignIn.vue.js +30 -30
- package/dist/prometheus-framework/src/modules/auth/components/pages/SignUp.vue.js +18 -18
- package/dist/prometheus-framework/src/modules/auth/store/auth.cjs +1 -1
- package/dist/prometheus-framework/src/modules/auth/store/auth.js +11 -11
- package/dist/prometheus-framework/src/modules/community/community.client.cjs +1 -1
- package/dist/prometheus-framework/src/modules/community/community.client.js +12 -14
- package/dist/prometheus-framework/src/modules/community/components/blocks/CardBlogpost.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/community/components/blocks/CardBlogpost.vue.js +54 -71
- package/dist/prometheus-framework/src/modules/community/components/blocks/FooterBlogpost.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/community/components/blocks/FooterBlogpost.vue.js +57 -29
- 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 +86 -76
- package/dist/prometheus-framework/src/modules/community/components/pages/Blog.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/community/components/pages/Blog.vue.js +58 -28
- 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 +71 -80
- package/dist/prometheus-framework/src/modules/community/components/sections/Comment.vue.cjs +1 -0
- package/dist/prometheus-framework/src/modules/community/components/sections/Comment.vue.js +104 -0
- package/dist/prometheus-framework/src/modules/community/components/sections/Comments.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/community/components/sections/Comments.vue.js +99 -54
- package/dist/prometheus-framework/src/modules/community/components/sections/HotPosts.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/community/components/sections/HotPosts.vue.js +27 -28
- package/dist/prometheus-framework/src/modules/community/store/blogposts.cjs +1 -1
- package/dist/prometheus-framework/src/modules/community/store/blogposts.js +45 -34
- package/dist/prometheus-framework/src/modules/constructor/components/elements/Audio.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/constructor/components/elements/Audio.vue.js +31 -29
- package/dist/prometheus-framework/src/modules/constructor/components/elements/ImageUpload.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/constructor/components/elements/ImageUpload.vue.js +32 -27
- package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue.cjs +5 -0
- package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue.js +67 -0
- package/dist/prometheus-framework/src/modules/constructor/components/elements/Video.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/constructor/components/elements/Video.vue.js +16 -16
- 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 +119 -112
- package/dist/prometheus-framework/src/modules/events/components/blocks/CardEvent.vue.js +6 -6
- package/dist/prometheus-framework/src/modules/events/components/elements/ButtonCheck.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/events/components/elements/ButtonCheck.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 +1 -1
- package/dist/prometheus-framework/src/modules/events/components/pages/EditEventTickets.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/events/components/pages/EditEventTickets.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/gallery/components/pages/Gallery.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/gallery/components/pages/Gallery.vue.js +22 -22
- 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 +27 -27
- package/dist/prometheus-framework/src/modules/globals/components/blocks/BlockFilter.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/globals/components/blocks/BlockFilter.vue.js +33 -22
- package/dist/prometheus-framework/src/modules/globals/components/blocks/CardHeader.vue.js +16 -16
- package/dist/prometheus-framework/src/modules/marketplace/store/marketplace.cjs +1 -1
- package/dist/prometheus-framework/src/modules/marketplace/store/marketplace.js +3 -9
- package/dist/prometheus-framework/src/modules/orders/components/pages/OrderBackoffice.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/orders/components/pages/OrderBackoffice.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/orders/components/pages/OrderCreateBackoffice.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/orders/components/pages/OrderCreateBackoffice.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/orders/components/sections/FormCustomerDetails.vue.js +9 -9
- package/dist/prometheus-framework/src/modules/organizations/components/blocks/CardOrganization.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/blocks/CardOrganization.vue.js +39 -38
- 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 +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/Members.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/Members.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 +112 -85
- 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 +36 -35
- package/dist/prometheus-framework/src/modules/organizations/components/sections/DetailsTab.vue.js +8 -8
- 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/Organizations.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/sections/Organizations.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/sections/Publics.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/sections/Publics.vue.js +17 -17
- package/dist/prometheus-framework/src/modules/organizations/store/memberships.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/store/memberships.js +18 -18
- package/dist/prometheus-framework/src/modules/products/components/blocks/CardProduct.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/blocks/CardProduct.vue.js +6 -6
- 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 +12 -12
- package/dist/prometheus-framework/src/modules/products/components/pages/EditLeftover.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/EditLeftover.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 +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/ProductRecommmendation.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/ProductRecommmendation.vue.js +3 -2
- package/dist/prometheus-framework/src/modules/products/components/sections/HeroRecommendation.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/sections/HeroRecommendation.vue.js +32 -37
- 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 +1 -1
- package/dist/prometheus-framework/src/modules/spots/components/blocks/CardSpot.vue.js +4 -4
- package/dist/prometheus-framework/src/modules/users/components/blocks/CardUser.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/users/components/blocks/CardUser.vue.js +14 -14
- package/dist/prometheus-framework/src/modules/users/components/pages/Profile.vue.js +29 -29
- package/dist/prometheus-framework/src/modules/users/components/pages/ProfileBlogposts.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/users/components/pages/ProfileBlogposts.vue.js +53 -35
- package/dist/prometheus-framework/src/modules/wallet/components/blocks/CardBalanceReplenished.vue.cjs +1 -0
- package/dist/prometheus-framework/src/modules/wallet/components/blocks/CardBalanceReplenished.vue.js +30 -0
- package/dist/prometheus-framework/src/modules/wallet/components/blocks/CardDeposite.vue.cjs +1 -0
- package/dist/prometheus-framework/src/modules/wallet/components/blocks/CardDeposite.vue.js +42 -0
- package/dist/prometheus-framework/src/modules/wallet/components/blocks/CashDeposite.vue.cjs +1 -0
- package/dist/prometheus-framework/src/modules/wallet/components/blocks/CashDeposite.vue.js +26 -0
- package/dist/prometheus-framework/src/modules/wallet/components/blocks/CryptoDeposite.vue.cjs +1 -0
- package/dist/prometheus-framework/src/modules/wallet/components/blocks/CryptoDeposite.vue.js +42 -0
- package/dist/prometheus-framework/src/modules/wallet/localization/Wallet.json.cjs +1 -0
- package/dist/prometheus-framework/src/modules/wallet/localization/Wallet.json.js +26 -0
- package/dist/prometheus-framework/src/modules/wallet/views/components/pages/Wallet.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/wallet/views/components/pages/Wallet.vue.js +154 -77
- package/dist/prometheus-framework.cjs.js +1 -1
- package/dist/prometheus-framework.es.js +14 -14
- package/dist/queryProcessor-DQSFR9YA.mjs +179 -0
- package/dist/queryProcessor-iewDZq_f.js +178 -0
- package/dist/style.css +1 -1
- package/dist/wallet.server.js +80 -27
- package/dist/wallet.server.mjs +80 -27
- package/dist/web-DZUec7pP.js +1 -0
- package/dist/web-krQQeSb6.mjs +54 -0
- package/package.json +1 -1
- package/src/components/Address/Address.vue +1 -1
- package/src/components/Chips/Chips.vue +1 -1
- package/src/components/Completion/Completion.vue +1 -4
- package/src/components/DatePicker/Calendar.vue +1 -1
- package/src/components/Draggable/Draggable.vue +113 -0
- package/src/components/Dropdown/Dropdown.vue +1 -1
- package/src/components/Feed/Feed.vue +18 -12
- package/src/components/FieldBig/FieldBig.vue +11 -1
- package/src/components/FieldPhone/FieldPhone.vue +1 -1
- package/src/components/FieldTags/FieldTags.vue +2 -1
- package/src/components/FieldTags/tag-input.vue +1 -1
- package/src/components/LocationMarker/LocationMarker.vue +1 -1
- package/src/components/PhotoViewer/PhotoViewer.vue +1 -1
- package/src/components/Shader/Shader.vue +2 -2
- package/src/components/Slider/Slider.vue +1 -5
- package/src/components/Spoiler/Spoiler.vue +1 -1
- package/src/components/Text/Text.vue +1 -4
- package/src/components/Tooltip/Tooltip.vue +1 -1
- package/src/components/Upload/Upload.vue +5 -3
- package/src/modules/auth/controllers/auth.controller.js +0 -2
- package/src/modules/auth/store/auth.js +2 -2
- package/src/modules/community/DOCUMENTATION.MD +4 -0
- package/src/modules/community/community.client.js +0 -2
- package/src/modules/community/components/blocks/CardBlogpost.vue +6 -2
- package/src/modules/community/components/blocks/FooterBlogpost.vue +21 -5
- package/src/modules/community/components/layouts/Community.vue +15 -11
- package/src/modules/community/components/pages/Blog.vue +25 -32
- package/src/modules/community/components/pages/CreateBlogPost.vue +8 -15
- package/src/modules/community/components/sections/Comment.vue +123 -0
- package/src/modules/community/components/sections/Comments.vue +90 -19
- package/src/modules/community/components/sections/HotPosts.vue +3 -6
- package/src/modules/community/controllers/blog.controller.js +1 -1
- package/src/modules/community/controllers/comments.controller.aggr.js +280 -0
- package/src/modules/community/controllers/comments.controller.js +187 -38
- package/src/modules/community/controllers/comments.controller.populate.js +180 -0
- package/src/modules/community/models/comment.model.js +15 -0
- package/src/modules/community/store/blogposts.js +20 -2
- package/src/modules/constructor/components/elements/Audio.vue +28 -40
- package/src/modules/constructor/components/elements/ImageUpload.vue +12 -7
- package/src/modules/constructor/components/elements/Video.vue +10 -18
- package/src/modules/constructor/components/sections/Constructor.vue +54 -47
- package/src/modules/files/controllers/files.controller.js +2 -0
- package/src/modules/files/middlewares/server/middlewareBusboy.js +32 -4
- package/src/modules/files/routes/files.routes.js +8 -0
- package/src/modules/globals/components/blocks/BlockFilter.vue +17 -7
- package/src/modules/globals/components/partials/Header.vue +12 -7
- package/src/modules/globals/controllers/utils/queryProcessor.js +1 -0
- package/src/modules/icons/logos/Logotype.vue +8 -6
- package/src/modules/icons/logos/LogotypeNunito.vue +12 -0
- package/src/modules/marketplace/components/layouts/Marketplace.vue +29 -27
- package/src/modules/marketplace/store/marketplace.js +2 -8
- package/src/modules/organizations/components/blocks/CardOrganization.vue +1 -1
- package/src/modules/organizations/components/pages/Members.vue +1 -1
- package/src/modules/organizations/components/pages/Organization.vue +33 -5
- package/src/modules/organizations/components/pages/OrganizationEdit.vue +7 -4
- package/src/modules/organizations/components/sections/DetailsTab.vue +10 -10
- package/src/modules/organizations/components/sections/Publics.vue +2 -2
- package/src/modules/organizations/controllers/memberships.controller.js +2 -3
- package/src/modules/organizations/controllers/organizations.controller.js +1 -1
- package/src/modules/organizations/store/memberships.js +4 -1
- package/src/modules/products/components/blocks/CardProduct.vue +1 -1
- package/src/modules/products/components/sections/HeroRecommendation.vue +11 -8
- package/src/modules/products/models/product.model.js +2 -1
- package/src/modules/spots/components/layouts/Spots.vue +0 -3
- package/src/modules/spots/components/pages/Map.vue +13 -3
- package/src/modules/users/components/blocks/CardUser.vue +2 -2
- package/src/modules/users/components/pages/ProfileBlogposts.vue +45 -28
- package/src/modules/wallet/components/blocks/CardBalanceReplenished.vue +40 -0
- package/src/modules/wallet/components/blocks/CardDeposite.vue +55 -0
- package/src/modules/wallet/components/blocks/CashDeposite.vue +28 -0
- package/src/modules/wallet/components/blocks/CryptoDeposite.vue +55 -0
- package/src/modules/wallet/controllers/factories/rewards.factory.aggr.js +181 -0
- package/src/modules/wallet/controllers/factories/rewards.factory.js +87 -113
- package/src/modules/wallet/controllers/factories/rewards.factory.population.js +213 -0
- package/src/modules/wallet/localization/Wallet.json +22 -0
- package/src/modules/wallet/views/components/pages/Wallet.vue +153 -53
- package/src/styles/base/all.scss +16 -26
- package/src/styles/config.scss +70 -34
- package/src/styles/typography.scss +5 -5
- package/src/modules/community/components/sections/Feed.vue +0 -148
- package/src/modules/middlewares/server/accessors/AccessController.js +0 -33
- package/src/modules/middlewares/server/accessors/ReadDepartments.js +0 -101
package/dist/prometheus-framework/src/modules/organizations/components/sections/Publics.vue.js
CHANGED
@@ -1,45 +1,45 @@
|
|
1
|
-
import { ref as d, onMounted as p, openBlock as
|
1
|
+
import { ref as d, onMounted as p, openBlock as r, createElementBlock as n, unref as o, createBlock as u, Fragment as f, renderList as _, createCommentVNode as b } from "vue";
|
2
2
|
import g from "../blocks/CardOrganization.vue.js";
|
3
|
-
import
|
3
|
+
import h from "../../../../components/EmptyState/EmptyState.vue.js";
|
4
4
|
import { state as l } from "../../../auth/store/auth.js";
|
5
|
-
import { actions as
|
5
|
+
import { actions as y } from "../../store/organizations.js";
|
6
6
|
import { mutations as x } from "../../store/memberships.js";
|
7
7
|
/* empty css */
|
8
8
|
const k = { class: "w-100 o-scroll" }, w = {
|
9
9
|
key: 1,
|
10
10
|
class: "w-max gap-thin flex-nowrap flex"
|
11
|
-
},
|
11
|
+
}, $ = {
|
12
12
|
__name: "Publics",
|
13
|
-
setup(
|
13
|
+
setup(v) {
|
14
14
|
let e = d(null);
|
15
15
|
p(async () => {
|
16
|
-
e.value = await
|
16
|
+
e.value = await y.read({
|
17
17
|
user: l.user._id,
|
18
18
|
sortParam: "profile.tags",
|
19
19
|
limit: 10
|
20
20
|
});
|
21
21
|
});
|
22
|
-
const c = ({ membership: a, status:
|
23
|
-
x.handleMembershipUpdate(
|
22
|
+
const c = ({ membership: a, status: t, target: i }, m, s) => {
|
23
|
+
x.handleMembershipUpdate(e.value, a, t, i, m, s);
|
24
24
|
};
|
25
|
-
return (a,
|
26
|
-
!o(e) || o(e).length < 1 ? (
|
25
|
+
return (a, t) => (r(), n("div", k, [
|
26
|
+
!o(e) || o(e).length < 1 ? (r(), u(h, {
|
27
27
|
key: 0,
|
28
28
|
title: "Unfortunately, we couldn't find any recommendations for you",
|
29
29
|
description: "Explore and find a community or organization that suits your interests.",
|
30
30
|
class: "radius-big bg-light pd-medium"
|
31
|
-
})) : (
|
32
|
-
o(e) ? (
|
33
|
-
key:
|
34
|
-
organization:
|
31
|
+
})) : (r(), n("div", w, [
|
32
|
+
o(e) ? (r(!0), n(f, { key: 0 }, _(o(e), (i, m) => (r(), u(g, {
|
33
|
+
key: i._id,
|
34
|
+
organization: i,
|
35
35
|
user: l.user,
|
36
|
-
onUpdateMembership: c,
|
36
|
+
onUpdateMembership: t[0] || (t[0] = (s) => c(s, "isSubscriber", "numberOfSubscribers")),
|
37
37
|
class: "w-max-20r radius-big"
|
38
|
-
}, null, 8, ["organization", "user"]))), 128)) :
|
38
|
+
}, null, 8, ["organization", "user"]))), 128)) : b("", !0)
|
39
39
|
]))
|
40
40
|
]));
|
41
41
|
}
|
42
42
|
};
|
43
43
|
export {
|
44
|
-
|
44
|
+
$ as default
|
45
45
|
};
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("axios"),l=require("vue"),i=require("../../globals/store/globals.cjs"),a=u.create({baseURL:process.env.API_URL,withCredentials:!0}),
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("axios"),l=require("vue"),i=require("../../globals/store/globals.cjs"),a=u.create({baseURL:process.env.API_URL,withCredentials:!0}),t=l.reactive({memberships:[],error:null}),d={async read(r={}){try{const e=await a.get("/api/memberships",{params:r});return t.error=null,t.memberships=e.data,Promise.resolve(e.data)}catch(e){return i.setError(e),Promise.reject(e)}},async create(r){try{const e=await a.post("/api/memberships/create",r);return t.error=null,Promise.resolve(e.data)}catch(e){return i.setError(e),Promise.reject(e)}},async update(r){try{const e=await a.post("/api/memberships/update",r);return t.error=null,Promise.resolve(e.data)}catch(e){return i.setError(e),Promise.reject(e)}},async delete(r){try{const e=await a.post("/api/memberships/delete",r);return t.error=null,Promise.resolve(e.data)}catch(e){return i.setError(e),Promise.reject(e)}}},y={handleMembershipUpdate(r,e,n,h,p,c){let s;if(console.log("public is",r),console.log("isArray",Array.isArray(r)),Array.isArray(r)?s=r.find(o=>o._id===e.target):typeof r=="object"&&r._id===e.target&&(s=r),s)if(s[p]=n,n)s.memberships.push(e),s[c]+=1;else{const o=s.memberships.findIndex(m=>m._id===e._id);o!==-1&&(s.memberships.splice(o,1),s[c]-=1)}}};l.watch(t,r=>{});exports.actions=d;exports.mutations=y;exports.state=t;
|
@@ -1,17 +1,17 @@
|
|
1
1
|
import l from "axios";
|
2
|
-
import { reactive as
|
2
|
+
import { reactive as u, watch as d } from "vue";
|
3
3
|
import { setError as i } from "../../globals/store/globals.js";
|
4
4
|
const a = l.create({
|
5
5
|
baseURL: process.env.API_URL,
|
6
6
|
withCredentials: !0
|
7
|
-
}),
|
7
|
+
}), t = u({
|
8
8
|
memberships: [],
|
9
9
|
error: null
|
10
|
-
}),
|
10
|
+
}), P = {
|
11
11
|
async read(r = {}) {
|
12
12
|
try {
|
13
13
|
const e = await a.get("/api/memberships", { params: r });
|
14
|
-
return
|
14
|
+
return t.error = null, t.memberships = e.data, Promise.resolve(e.data);
|
15
15
|
} catch (e) {
|
16
16
|
return i(e), Promise.reject(e);
|
17
17
|
}
|
@@ -19,7 +19,7 @@ const a = l.create({
|
|
19
19
|
async create(r) {
|
20
20
|
try {
|
21
21
|
const e = await a.post("/api/memberships/create", r);
|
22
|
-
return
|
22
|
+
return t.error = null, Promise.resolve(e.data);
|
23
23
|
} catch (e) {
|
24
24
|
return i(e), Promise.reject(e);
|
25
25
|
}
|
@@ -27,35 +27,35 @@ const a = l.create({
|
|
27
27
|
async update(r) {
|
28
28
|
try {
|
29
29
|
const e = await a.post("/api/memberships/update", r);
|
30
|
-
return
|
30
|
+
return t.error = null, Promise.resolve(e.data);
|
31
31
|
} catch (e) {
|
32
32
|
return i(e), Promise.reject(e);
|
33
33
|
}
|
34
34
|
},
|
35
35
|
async delete(r) {
|
36
36
|
try {
|
37
|
-
const e = await a.post("/api/memberships/delete",
|
38
|
-
return
|
37
|
+
const e = await a.post("/api/memberships/delete", r);
|
38
|
+
return t.error = null, Promise.resolve(e.data);
|
39
39
|
} catch (e) {
|
40
40
|
return i(e), Promise.reject(e);
|
41
41
|
}
|
42
42
|
}
|
43
43
|
}, w = {
|
44
|
-
handleMembershipUpdate(r, e, n,
|
45
|
-
let
|
46
|
-
if (Array.isArray(r) ?
|
47
|
-
if (
|
48
|
-
|
44
|
+
handleMembershipUpdate(r, e, n, h, p, c) {
|
45
|
+
let s;
|
46
|
+
if (console.log("public is", r), console.log("isArray", Array.isArray(r)), Array.isArray(r) ? s = r.find((o) => o._id === e.target) : typeof r == "object" && r._id === e.target && (s = r), s)
|
47
|
+
if (s[p] = n, n)
|
48
|
+
s.memberships.push(e), s[c] += 1;
|
49
49
|
else {
|
50
|
-
const o =
|
51
|
-
o !== -1 && (
|
50
|
+
const o = s.memberships.findIndex((m) => m._id === e._id);
|
51
|
+
o !== -1 && (s.memberships.splice(o, 1), s[c] -= 1);
|
52
52
|
}
|
53
53
|
}
|
54
54
|
};
|
55
|
-
|
55
|
+
d(t, (r) => {
|
56
56
|
});
|
57
57
|
export {
|
58
|
-
|
58
|
+
P as actions,
|
59
59
|
w as mutations,
|
60
|
-
|
60
|
+
t as state
|
61
61
|
};
|
package/dist/prometheus-framework/src/modules/products/components/blocks/CardProduct.vue.cjs
CHANGED
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),n=require("vue-i18n"),
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),n=require("vue-i18n"),i=require("../../../icons/navigation/IconEdit.vue.cjs"),l=require("../elements/THC.vue.cjs"),u=require("../elements/Price.vue.cjs"),s=require("../../../icons/placeholders/PlaceholderImage.vue.cjs"),d=["src"],m={class:"pd-medium t-left product-card-content"},g={class:"mn-b-thin t-semi h4"},h={key:1,class:"mn-b-small t-transp p-small"},k={__name:"CardProduct",props:{product:{type:Object},user:{type:[Object,String]},type:{type:Object}},setup(t){return n.useI18n(),(o,f)=>{var c,r;const a=e.resolveComponent("router-link");return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["radius-big cols-1 o-hidden pos-relative",t.product.information[2]&&t.product.information[2].value==="AAAA"?"bg-black t-white":"bg-white"])},[t.user&&t.user.roles&&(t.user.roles.includes("ROLE_MODERATOR")||t.user.roles.includes("ROLE_ADMIN"))?(e.openBlock(),e.createBlock(a,{key:0,to:{name:"ProductEdit",params:{_id:o.$route.params.organization,product:t.product._id}},class:"z-index-2 cursor-pointer pos-absolute pos-t-regular pos-r-regular radius-extra pd-thin bg-second"},{default:e.withCtx(()=>[e.createVNode(i.default,{class:"i-regular",classes:"fill-white"})]),_:1},8,["to"])):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(["o-hidden w-100 pos-relative aspect-1x1",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:(o.FILE_SERVER_URL||"")+t.product.images[0].split("/").slice(0,-1).join("/")+"/thumbnail_"+t.product.images[0].split("/").pop(),class:"pos-absolute object-fit-cover h-max-100 w-100"},null,8,d)):(e.openBlock(),e.createBlock(s.default,{key:1,class:"pos-absolute h-100 w-100"})),((c=t.product.information)==null?void 0:c.length)>0&&((r=t.product.information[1])==null?void 0:r.name)==="THC"?(e.openBlock(),e.createBlock(l.default,{key:2,product:t.product},null,8,["product"])):e.createCommentVNode("",!0)],2),e.createElementVNode("div",m,[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",g,e.toDisplayString(t.product.name),1),t.product.description&&!t.product.localization?(e.openBlock(),e.createElementBlock("p",h,e.toDisplayString(t.product.description.substring(0,99))+"... ",1)):e.createCommentVNode("",!0),e.createVNode(u.default,{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"])])],2)}}};exports.default=k;
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import { resolveComponent as f, openBlock as e, createElementBlock as o, normalizeClass as i, createBlock as a, withCtx as h, createVNode as d, createCommentVNode as r, createElementVNode as c, toDisplayString as n } from "vue";
|
2
2
|
import { useI18n as g } from "vue-i18n";
|
3
|
-
import
|
4
|
-
import
|
3
|
+
import p from "../../../icons/navigation/IconEdit.vue.js";
|
4
|
+
import b from "../elements/THC.vue.js";
|
5
5
|
import A from "../elements/Price.vue.js";
|
6
6
|
import k from "../../../icons/placeholders/PlaceholderImage.vue.js";
|
7
7
|
const v = ["src"], y = { class: "pd-medium t-left product-card-content" }, w = { class: "mn-b-thin t-semi h4" }, E = {
|
@@ -22,7 +22,7 @@ const v = ["src"], y = { class: "pd-medium t-left product-card-content" }, w = {
|
|
22
22
|
},
|
23
23
|
setup(t) {
|
24
24
|
return g(), (l, O) => {
|
25
|
-
var
|
25
|
+
var s, u;
|
26
26
|
const m = f("router-link");
|
27
27
|
return e(), o("div", {
|
28
28
|
class: i([
|
@@ -42,7 +42,7 @@ const v = ["src"], y = { class: "pd-medium t-left product-card-content" }, w = {
|
|
42
42
|
class: "z-index-2 cursor-pointer pos-absolute pos-t-regular pos-r-regular radius-extra pd-thin bg-second"
|
43
43
|
}, {
|
44
44
|
default: h(() => [
|
45
|
-
d(
|
45
|
+
d(p, {
|
46
46
|
class: "i-regular",
|
47
47
|
classes: "fill-white"
|
48
48
|
})
|
@@ -57,13 +57,13 @@ const v = ["src"], y = { class: "pd-medium t-left product-card-content" }, w = {
|
|
57
57
|
}, [
|
58
58
|
t.product.images[0] ? (e(), o("img", {
|
59
59
|
key: 0,
|
60
|
-
src: (l.FILE_SERVER_URL || "") + t.product.images[0],
|
60
|
+
src: (l.FILE_SERVER_URL || "") + t.product.images[0].split("/").slice(0, -1).join("/") + "/thumbnail_" + t.product.images[0].split("/").pop(),
|
61
61
|
class: "pos-absolute object-fit-cover h-max-100 w-100"
|
62
62
|
}, null, 8, v)) : (e(), a(k, {
|
63
63
|
key: 1,
|
64
64
|
class: "pos-absolute h-100 w-100"
|
65
65
|
})),
|
66
|
-
((
|
66
|
+
((s = t.product.information) == null ? void 0 : s.length) > 0 && ((u = t.product.information[1]) == null ? void 0 : u.name) === "THC" ? (e(), a(b, {
|
67
67
|
key: 2,
|
68
68
|
product: t.product
|
69
69
|
}, null, 8, ["product"])) : r("", !0)
|
package/dist/prometheus-framework/src/modules/products/components/blocks/ImagesThumbnails.vue.cjs
CHANGED
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),c=require("../../../../components/Popup/Popup.
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),c=require("../../../../components/Popup/Popup.vue2.cjs"),i=require("../../../../components/PhotoViewer/PhotoViewer.vue.cjs");;/* empty css */const p=require("../../../../../../_virtual/_plugin-vue_export-helper.cjs"),d={class:"o-scroll product-images"},_={class:"no-responsive flex flex-nowrap gap-thin"},m=["src","onClick"],h={__name:"ImagesThumbnails",props:{images:{type:Array,required:!0}},setup(r){const t=e.ref(!1),l=e.ref(null),n=o=>{l.value=o,t.value=!0},u=()=>{t.value=!1};return(o,g)=>(e.openBlock(),e.createElementBlock("div",d,[e.createElementVNode("div",_,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r.images,(s,a)=>(e.openBlock(),e.createElementBlock("img",{key:a,src:(o.FILE_SERVER_URL||"")+s,onClick:v=>n(s),class:"flex-child flex-child-grow-1 aspect-1x1 radius-semi bg-white o-hidden thumbnail"},null,8,m))),128))]),e.createVNode(c.default,{onClosePopup:u,isPopupOpen:t.value,class:"radius-medium o-hidden"},{default:e.withCtx(()=>[e.createVNode(i.default,{photoUrl:(o.FILE_SERVER_URL||"")+l.value},null,8,["photoUrl"])]),_:1},8,["isPopupOpen"])]))}},f=p.default(h,[["__scopeId","data-v-103087bb"]]);exports.default=f;
|
package/dist/prometheus-framework/src/modules/products/components/blocks/ImagesThumbnails.vue.js
CHANGED
@@ -1,9 +1,9 @@
|
|
1
|
-
import { ref as
|
2
|
-
import
|
1
|
+
import { ref as n, openBlock as s, createElementBlock as t, createElementVNode as m, Fragment as d, renderList as _, createVNode as i, withCtx as f } from "vue";
|
2
|
+
import h from "../../../../components/Popup/Popup.vue2.js";
|
3
3
|
import g from "../../../../components/PhotoViewer/PhotoViewer.vue.js";
|
4
4
|
/* empty css */
|
5
5
|
import v from "../../../../../../_virtual/_plugin-vue_export-helper.js";
|
6
|
-
const E = { class: "o-scroll product-images" }, b = { class: "no-responsive flex flex-nowrap gap-thin" }, x = ["src", "onClick"],
|
6
|
+
const E = { class: "o-scroll product-images" }, b = { class: "no-responsive flex flex-nowrap gap-thin" }, x = ["src", "onClick"], I = {
|
7
7
|
__name: "ImagesThumbnails",
|
8
8
|
props: {
|
9
9
|
images: {
|
@@ -12,27 +12,27 @@ const E = { class: "o-scroll product-images" }, b = { class: "no-responsive flex
|
|
12
12
|
}
|
13
13
|
},
|
14
14
|
setup(a) {
|
15
|
-
const o =
|
15
|
+
const o = n(!1), l = n(null), c = (e) => {
|
16
16
|
l.value = e, o.value = !0;
|
17
|
-
},
|
17
|
+
}, p = () => {
|
18
18
|
o.value = !1;
|
19
19
|
};
|
20
|
-
return (e,
|
20
|
+
return (e, P) => (s(), t("div", E, [
|
21
21
|
m("div", b, [
|
22
22
|
(s(!0), t(d, null, _(a.images, (r, u) => (s(), t("img", {
|
23
23
|
key: u,
|
24
24
|
src: (e.FILE_SERVER_URL || "") + r,
|
25
|
-
onClick: (R) =>
|
25
|
+
onClick: (R) => c(r),
|
26
26
|
class: "flex-child flex-child-grow-1 aspect-1x1 radius-semi bg-white o-hidden thumbnail"
|
27
27
|
}, null, 8, x))), 128))
|
28
28
|
]),
|
29
|
-
|
30
|
-
onClosePopup:
|
29
|
+
i(h, {
|
30
|
+
onClosePopup: p,
|
31
31
|
isPopupOpen: o.value,
|
32
32
|
class: "radius-medium o-hidden"
|
33
33
|
}, {
|
34
|
-
default:
|
35
|
-
|
34
|
+
default: f(() => [
|
35
|
+
i(g, {
|
36
36
|
photoUrl: (e.FILE_SERVER_URL || "") + l.value
|
37
37
|
}, null, 8, ["photoUrl"])
|
38
38
|
]),
|
@@ -40,7 +40,7 @@ const E = { class: "o-scroll product-images" }, b = { class: "no-responsive flex
|
|
40
40
|
}, 8, ["isPopupOpen"])
|
41
41
|
]));
|
42
42
|
}
|
43
|
-
}, U = /* @__PURE__ */ v(
|
43
|
+
}, U = /* @__PURE__ */ v(I, [["__scopeId", "data-v-103087bb"]]);
|
44
44
|
export {
|
45
45
|
U as default
|
46
46
|
};
|
package/dist/prometheus-framework/src/modules/products/components/pages/EditLeftover.vue.cjs
CHANGED
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),d=require("../../../../components/Block/Block.vue.cjs"),w=require("../../../../components/Field/Field.vue2.cjs"),N=require("../../../../components/Feed/Feed.vue.cjs"),C=require("../../../../components/Select/Select.vue2.cjs"),q=require("../../../../components/Popup/Popup.
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),d=require("../../../../components/Block/Block.vue.cjs"),w=require("../../../../components/Field/Field.vue2.cjs"),N=require("../../../../components/Feed/Feed.vue.cjs"),C=require("../../../../components/Select/Select.vue2.cjs"),q=require("../../../../components/Popup/Popup.vue2.cjs");;/* empty css */const P=require("../blocks/CardPosition.vue.cjs"),x=require("../../../orders/components/blocks/CardOrderItem.vue.cjs"),v=require("vue-router"),p=require("../../../globals/store/globals.cjs"),V=require("../../../auth/store/auth.cjs"),t=require("../../store/leftovers.cjs"),m=require("../../store/products.cjs");;/* empty css */const B={class:"pd-thin"},E={class:"mn-b-medium gap-small flex-v-center flex-nowrap flex"},S={class:""},D={class:"bg-light mn-b-thin h-min-20r h-max-20r o-scroll pd-medium radius-big"},L={class:"gap-thin flex-v-center flex-nojustify flex"},R={class:"mn-r-auto"},F={__name:"EditLeftover",setup(O){const r=v.useRoute(),i=v.useRouter(),f=e.ref(m.state.all);e.ref(null);const b=e.computed(()=>Number(t.state.current.positions.reduce((a,s)=>Number(a)+Number(s.price),0))),c=e.ref(!1);function g(){c.value=!0}function h(){c.value=!1}e.onMounted(async()=>{if(r.params.leftover)try{await t.actions.fetch(r.params.leftover)}catch{console.error("error")}else t.state.current={type:"",order:"",positions:[]};try{const a=await m.actions.read({organization:r.params._id,limit:100});f.value=a}catch{console.error("error")}});function _(){r.params.leftover?t.actions.fetch(r.params.leftover):t.state.current={type:"",order:"",positions:[]}}function y(){t.state.current.organization=r.params._id,r.params.leftover?t.actions.update(t.state.current).then(()=>i.push({name:"Leftovers",params:{_id:r.params._id}}),a=>console.error("error")):(t.state.current.creator={type:"user",target:V.state.user._id},t.state.current.owner={type:"organization",target:r.params._id},console.log("leftover state is",t.state.current),t.actions.create(t.state.current).then(()=>i.push({name:"Leftovers",params:{_id:r.params._id}}),a=>console.error("error")))}function k(){t.actions.delete(r.params.leftover).then(()=>i.push({name:"Leftovers",params:{_id:r.params._id}}),a=>console.error("error"))}return(a,s)=>(e.openBlock(),e.createElementBlock("div",B,[e.createElementVNode("header",E,[e.createElementVNode("h2",S,e.toDisplayString(e.unref(r).params.leftover?"Edit ":"Add ")+" Inventory",1),e.createVNode(C.default,{select:t.state.current.type,"onUpdate:select":s[0]||(s[0]=o=>t.state.current.type=o),options:["stock-in","stock-out"],placeholder:"Select type",class:"bg-main t-black w-max pd-small t-semi p-big uppercase radius-small"},null,8,["select"])]),e.createVNode(q.default,{title:"Add position",onClosePopup:h,isPopupOpen:c.value,class:"bg-white w-min-30r w-max-30r radius-big pd-medium"},{default:e.withCtx(()=>[e.createElementVNode("div",D,[e.createVNode(N.default,{search:!0,states:{empty:{title:"No Products Found",description:"Currently, there are no such products available."}},store:{read:o=>m.actions.read(o),state:null},options:{organization:e.unref(r).params._id},class:""},{default:e.withCtx(({items:o})=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o,(n,l)=>(e.openBlock(),e.createBlock(x.default,{key:n._id,editable:!1,product:n,onClick:()=>{let u={...n};u.quantity=1,u.type="pcs",p.actions.add(t.state.current.positions,u),h()},class:"bg-white pd-thin radius-medium w-100 mn-b-thin"},null,8,["product","onClick"]))),128))]),_:1},8,["store","options"])])]),_:1},8,["isPopupOpen"]),e.createVNode(d.default,{title:"Invetory Sheet",actions:[{label:"+",function:()=>g()}],placeholder:"No positions added yet",class:"mn-b-semi"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.state.current.positions,(o,n)=>(e.openBlock(),e.createBlock(P.default,{key:o._id,product:o,array:t.state.current.positions,products:f.value,onUpdate:l=>p.actions.update(t.state.current.positions,l,n),onDelete:l=>p.actions.delete(t.state.current.positions,l,n),class:"mn-b-small radius-medium bg-white pd-small"},null,8,["product","array","products","onUpdate","onDelete"]))),128))]),_:1},8,["actions"]),e.createVNode(d.default,{title:"Comment",class:"mn-b-semi"},{default:e.withCtx(()=>[e.createVNode(w.default,{field:t.state.current.comment,"onUpdate:field":s[1]||(s[1]=o=>t.state.current.comment=o),label:"Comment",type:"textarea",class:"w-100 bg-white radius-small pd-medium"},null,8,["field"])]),_:1}),e.createVNode(d.default,{class:""},{default:e.withCtx(()=>[e.createElementVNode("section",L,[e.createElementVNode("h3",R," In total: "+e.toDisplayString(a.formatPrice(b.value)),1),e.createElementVNode("a",{onClick:s[2]||(s[2]=o=>y()),class:"bg-main button"}," Save "),e.createElementVNode("a",{class:"t-white bg-second button",onClick:s[3]||(s[3]=o=>_())}," Reset "),e.unref(r).params.leftover?(e.openBlock(),e.createElementBlock("a",{key:0,onClick:s[4]||(s[4]=o=>k()),class:"t-white bg-red button"}," Delete ")):e.createCommentVNode("",!0)])]),_:1})]))}};exports.default=F;
|
@@ -3,7 +3,7 @@ import v from "../../../../components/Block/Block.vue.js";
|
|
3
3
|
import B from "../../../../components/Field/Field.vue2.js";
|
4
4
|
import F from "../../../../components/Feed/Feed.vue.js";
|
5
5
|
import I from "../../../../components/Select/Select.vue2.js";
|
6
|
-
import O from "../../../../components/Popup/Popup.
|
6
|
+
import O from "../../../../components/Popup/Popup.vue2.js";
|
7
7
|
/* empty css */
|
8
8
|
import V from "../blocks/CardPosition.vue.js";
|
9
9
|
import A from "../../../orders/components/blocks/CardOrderItem.vue.js";
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),k=require("vue-router");require("vue-i18n");require("../../../globals/localization/vue-i18n.cjs");;/* empty css */const o=require("../../../../components/Block/Block.vue.cjs");;/* empty css */const d=require("../../../../components/Field/Field.vue2.cjs"),B=require("../../../../components/Checkbox/Checkbox.vue.cjs"),_=require("../../../../components/Button/Button.vue2.cjs"),C=require("../../../../components/Popup/Popup.
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),k=require("vue-router");require("vue-i18n");require("../../../globals/localization/vue-i18n.cjs");;/* empty css */const o=require("../../../../components/Block/Block.vue.cjs");;/* empty css */const d=require("../../../../components/Field/Field.vue2.cjs"),B=require("../../../../components/Checkbox/Checkbox.vue.cjs"),_=require("../../../../components/Button/Button.vue2.cjs"),C=require("../../../../components/Popup/Popup.vue2.cjs"),V=require("../../../../components/Feed/Feed.vue.cjs"),q=require("../../../../components/EditImages/EditImages.vue.cjs"),b=require("../../../icons/navigation/IconDelete.vue.cjs"),y=require("../blocks/CardPosition.vue.cjs"),P=require("../../../orders/components/blocks/CardOrderItem.vue.cjs"),E=require("../sections/EditProductInfo.vue.cjs"),u=require("../../../globals/store/globals.cjs"),t=require("../../store/products.cjs"),w=require("../../store/categories.cjs");;/* empty css */const U={class:"for-transition w-100 cols-1 pd-thin gap-thin"},z={class:"mn-r-auto"},F={class:"cols-2 gap-thin"},I={key:0,class:"cols-1 gap-thin"},O={class:"bg-light mn-b-thin h-min-20r h-max-20r o-scroll pd-medium radius-big"},D={class:"radius-small h-100 i-big flex-center flex aspect-1x1 bg-red"},L={class:"radius-small pd-small flex-center flex aspect-1x1 bg-red"},S={__name:"ProductEdit",setup(T){const l=k.useRoute(),f=k.useRouter(),h=e.ref(t.state.all),p=e.ref(!1);function N(s){p.value=!0}function i(){p.value=!1}e.onMounted(async()=>{t.mutations.resetProduct(),l.params.product&&await t.actions.read({_id:l.params.product}),t.state.current.ingredients||(t.state.current.ingredients=[]),await w.actions.fetchCategories();try{const s=await t.actions.read({organization:l.params._id,limit:100});h.value=s}catch{console.error("error")}});function v(){l.params.product?t.actions.update(l.params.product,t.state.current):t.actions.create(l.params._id,t.state.current)}function x(){t.actions.deleteProduct(t.state.current._id)}function g(){f.push({name:"Organization",params:{_id:l.params._id}})}return(s,c)=>(e.openBlock(),e.createElementBlock("div",U,[e.createVNode(o.default,{class:"flex-nowrap flex-v-center flex"},{default:e.withCtx(()=>[e.createElementVNode("h1",z,e.toDisplayString(e.unref(l).params.product?t.state.current.name:"Create Product"),1),e.unref(l).params.product?(e.openBlock(),e.createBlock(_.default,{key:0,submit:x,callback:g,class:"bg-red mn-r-thin"},{default:e.withCtx(()=>[e.createTextVNode(" Delete ")]),_:1})):e.createCommentVNode("",!0),e.createVNode(_.default,{submit:v,callback:g,class:"bg-main"},{default:e.withCtx(()=>[e.createTextVNode(" Save ")]),_:1})]),_:1}),e.createVNode(o.default,{placeholder:"The product doesn't have any images yet.",class:"h-min"},{default:e.withCtx(()=>[e.createVNode(q.default,{images:t.state.current.images,uploadPath:"photos","onUpdate:images":c[0]||(c[0]=a=>{t.state.current.images=a})},null,8,["images"])]),_:1}),e.createElementVNode("div",F,[e.createVNode(o.default,{title:"Profile"},{default:e.withCtx(()=>[e.createVNode(E.default,{product:t.state.current},null,8,["product"])]),_:1}),e.createVNode(o.default,{title:"Ingredients",placeholder:"No ingridients added yet",actions:[{label:"+",function:()=>N()}]},{default:e.withCtx(()=>[t.state.current.ingredients.length>0?(e.openBlock(),e.createElementBlock("div",I,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.state.current.ingredients,(a,n)=>(e.openBlock(),e.createBlock(y.default,{key:a._id,product:a,array:t.state.current.ingredients,products:h.value,showPrice:!1,onAdd:c[1]||(c[1]=r=>{u.actions.add(t.state.current.ingredients,r),i()}),onUpdate:r=>{u.actions.update(t.state.current.ingredients,r,n),i()},onDelete:r=>{u.actions.delete(t.state.current.ingredients,r,n),i()}},null,8,["product","array","products","onUpdate","onDelete"]))),128))])):e.createCommentVNode("",!0)]),_:1},8,["actions"]),e.createVNode(C.default,{title:"Add ingredient",onClosePopup:i,isPopupOpen:p.value,class:"bg-white w-min-30r w-max-30r radius-big pd-medium"},{default:e.withCtx(()=>[e.createElementVNode("div",O,[e.createVNode(V.default,{search:{class:"bg-white mn-b-thin"},states:{empty:{title:"No Products Found",description:"Currently, there are no such products available."}},store:{read:a=>t.actions.read(a),state:null},options:{organization:e.unref(l).params._id},class:""},{default:e.withCtx(({items:a})=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a,(n,r)=>(e.openBlock(),e.createBlock(P.default,{key:n._id,editable:!1,product:n,onClick:()=>{let m={...n};m.quantity=1,m.type="pcs",u.actions.add(t.state.current.ingredients,m),i()},class:"bg-white pd-thin radius-medium w-100 mn-b-thin"},null,8,["product","onClick"]))),128))]),_:1},8,["store","options"])])]),_:1},8,["isPopupOpen"])]),e.createVNode(o.default,{title:"Categories",actions:[{label:"+",function:()=>e.unref(f).push({name:"Categories Organization",params:{_id:e.unref(l).params._id}})}]},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(w.state.all,(a,n)=>(e.openBlock(),e.createBlock(B.default,{label:a.name,name:"categories",value:a.url,class:"w-100 mn-t-small bg-white radius-small pd-small",radio:t.state.current.category,"onUpdate:radio":r=>t.state.current.category=r},null,8,["label","value","radio","onUpdate:radio"]))),256))]),_:1},8,["actions"]),e.createVNode(o.default,{title:"Parameters",placeholder:"No parameters added yet",actions:[{label:"+",function:()=>t.state.current.information.push({name:"",value:""})}],class:"cols-1 gap-thin"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.state.current.information,(a,n)=>(e.openBlock(),e.createElementBlock("div",{class:"gap-thin flex-nowrap flex",key:n},[e.createVNode(d.default,{field:a.name,"onUpdate:field":r=>a.name=r,placeholder:"Название параметра",class:"w-100 bg-white radius-small pd-medium"},null,8,["field","onUpdate:field"]),e.createVNode(d.default,{field:a.value,"onUpdate:field":r=>a.value=r,placeholder:"Значение параметра",class:"w-100 bg-white radius-small pd-medium"},null,8,["field","onUpdate:field"]),e.createElementVNode("div",D,[e.createVNode(b.default,{onClick:()=>t.state.current.information.splice(n,1),class:"i-medium"},null,8,["onClick"])])]))),128))]),_:1},8,["actions"]),e.createVNode(o.default,{title:"Localization",placeholder:"No localizations added yet",actions:[{label:"+",function:()=>t.state.current.localization.push({name:"",value:""})}]},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.state.current.localization,(a,n)=>(e.openBlock(),e.createElementBlock("div",{class:"gap-thin mn-b-thin flex-nowrap flex",key:n},[e.createVNode(d.default,{field:a.name,"onUpdate:field":r=>a.name=r,placeholder:"Название параметра",class:"w-100 bg-white radius-small pd-medium"},null,8,["field","onUpdate:field"]),e.createVNode(d.default,{field:a.value,"onUpdate:field":r=>a.value=r,placeholder:"Значение параметра",class:"w-100 bg-white radius-small pd-medium"},null,8,["field","onUpdate:field"]),e.createElementVNode("div",L,[e.createVNode(b.default,{onClick:()=>t.state.current.localization.splice(n,1),class:"i-medium"},null,8,["onClick"])])]))),128))]),_:1},8,["actions"])]))}};exports.default=S;
|
@@ -8,7 +8,7 @@ import d from "../../../../components/Block/Block.vue.js";
|
|
8
8
|
import v from "../../../../components/Field/Field.vue2.js";
|
9
9
|
import S from "../../../../components/Checkbox/Checkbox.vue.js";
|
10
10
|
import N from "../../../../components/Button/Button.vue2.js";
|
11
|
-
import T from "../../../../components/Popup/Popup.
|
11
|
+
import T from "../../../../components/Popup/Popup.vue2.js";
|
12
12
|
import A from "../../../../components/Feed/Feed.vue.js";
|
13
13
|
import L from "../../../../components/EditImages/EditImages.vue.js";
|
14
14
|
import D from "../../../icons/navigation/IconDelete.vue.js";
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),b=require("vue-router"),g=require("vue-i18n"),h=require("../../../../components/Loader/Loader.vue2.cjs");require("../../../globals/localization/vue-i18n.cjs");;/* empty css */const f=require("../../../../components/FieldBig/FieldBig.vue.cjs"),_=require("../sections/SectionProduct.vue.cjs")
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),b=require("vue-router"),g=require("vue-i18n"),h=require("../../../../components/Loader/Loader.vue2.cjs");require("../../../globals/localization/vue-i18n.cjs");;/* empty css */const f=require("../../../../components/FieldBig/FieldBig.vue.cjs"),_=require("../sections/SectionProduct.vue.cjs");;/* empty css */const s=require("../../store/products.cjs");;/* empty css */;/* empty css */const k=require("../../../../../../_virtual/_plugin-vue_export-helper.cjs"),q={id:"product-recommendation",class:"h-min-100 pd-thin t-white bg-black"},I={key:1,class:"section"},y={key:0,class:"mn-b-thin"},R={__name:"ProductRecommmendation",setup(T){const r=b.useRouter(),t=e.ref(!0),m=e.ref(!1),u=e.ref(["Loading all we know about the buds","Processing the cannabis universe","Creating a strain of knowledge","Harvesting taste insights"]),p={messages:{en:{TITLE:"Increase Your High,<br><b class='t-white'>Powered by AI Budtender</b>",DESCRIPTION:"AI's got your chill, bro. We're picking out the most cosmic weed strains based on your desired vibe:",placeholder:"Describe your desired high, bro...",action:"Transmit →"},ru:{TITLE:"Персональный Накур,<br><b class='t-white'>Напрямую от AI</b>",DESCRIPTION:"AI на страже твоего релакса, бро. Мы подбираем самые космические сорта травы, исходя из твоего желаемого настроения:",placeholder:"Опиши свой желамый хай, bro...",action:"Передать →"}}},{t:o}=g.useI18n(p),a=e.ref(u.value[0]);let c=e.ref(r.currentRoute.value.query.mood||o("Recommend me something"));e.watchEffect(async()=>{c.value=r.currentRoute.value.query.mood||o("Recommend me something"),t.value=!0,await s.actions.submitMood(c.value),t.value=!1}),e.onMounted(async()=>{}),setInterval(()=>{const i=u.value.indexOf(a.value);a.value=u.value[(i+1)%u.value.length]},2e3);let n=e.ref(r.currentRoute.value.query.mood||o("Recommend me something"));function v(){r.push({name:"Product Recommmendation",query:{mood:n.value}})}return(i,l)=>(e.openBlock(),e.createElementBlock("div",q,[t.value?(e.openBlock(),e.createBlock(h.default,{key:0,status:a.value,class:"pos-fixed"},null,8,["status"])):e.createCommentVNode("",!0),!t.value&&!m.value?(e.openBlock(),e.createElementBlock("div",I,[t.value?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",y,[e.createVNode(f.default,{input:e.unref(n),loopTyping:!1,enableTyping:!1,placeholder:e.unref(o)("placeholder"),action:e.unref(o)("action"),"onUpdate:input":l[0]||(l[0]=d=>e.isRef(n)?n.value=d:n=d),onAction:v,class:"t-white bg-dark-transp-50 w-100"},null,8,["input","placeholder","action"])])),e.createVNode(_.default,{product:s.state.current,recommendation:s.state.current.recommendation,class:"bg-dark-transp-50 pd-big radius-big"},null,8,["product","recommendation"])])):e.createCommentVNode("",!0)]))}},w=k.default(R,[["__scopeId","data-v-bbe59673"]]);exports.default=w;
|
@@ -6,6 +6,7 @@ import "../../../globals/localization/vue-i18n.js";
|
|
6
6
|
/* empty css */
|
7
7
|
import P from "../../../../components/FieldBig/FieldBig.vue.js";
|
8
8
|
import E from "../sections/SectionProduct.vue.js";
|
9
|
+
/* empty css */
|
9
10
|
import { actions as A, state as v } from "../../store/products.js";
|
10
11
|
/* empty css */
|
11
12
|
/* empty css */
|
@@ -82,7 +83,7 @@ const B = {
|
|
82
83
|
])) : u("", !0)
|
83
84
|
]));
|
84
85
|
}
|
85
|
-
},
|
86
|
+
}, J = /* @__PURE__ */ q(N, [["__scopeId", "data-v-bbe59673"]]);
|
86
87
|
export {
|
87
|
-
|
88
|
+
J as default
|
88
89
|
};
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),c=require("../../../../components/FieldBig/FieldBig.vue.cjs")
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),c=require("../../../../components/FieldBig/FieldBig.vue.cjs");;/* empty css */const u=require("vue-router"),d=require("vue-i18n");require("../../store/products.cjs");;/* empty css */const p={class:"pd-big bg-black t-white pos-relative o-hidden"},m={class:"flex-column flex-center flex t-center pos-relative z-index-1"},b=["innerHTML"],h=["innerHTML"],g=["innerHTML"],f={style:{"max-width":"50rem"},class:"w-100 h-max gap-thin cols-6"},_=["onClick"],y=["src"],v={class:"t-white"},w={__name:"HeroRecommendation",setup(x){const o=u.useRouter(),s={messages:{en:{title:"Increase Your High <br><b class='t-main'>Boosted by AI Budtender</b>",description:"Just tell us what you're want, and Weeder will find your ideal match.",placeholderTexts:["Lowest THC, please!","Something with banana flavors?","I'm in the mood for trippy vibes."],subdescription:"AI Curated Recommendations for Your Mood:",presets:{sleep:"sleep",creative:"creative",giggly:"giggly",libido:"libido",trippy:"trippy",euphoric:"euphoric"},placeholder:"Tell us what you're after...",action:"Transmit"},ru:{title:"Персональный Накур,<br><b class='t-main'>Напрямую от AI</b>",description:"AI на страже твоего релакса, бро. Мы подбираем самые космические товары с учетом твоего желаемого настроения:",placeholderTexts:["Я хочу самый низкий THC","Я хочу чего-нибудь бананового","Я хочу курнуть хейза"],presets:{sleep:"сон",creative:"креатив",giggly:"смех",libido:"либидо",trippy:"трип",euphoric:"кайф"},subdescription:"Или выберите тег, и наш AI направит тебя к самым крутым вариантам:",placeholder:"Опиши свой желаемый хай, bro...",action:"Передать"}}},{t:n,rt:T}=d.useI18n(s);let r=e.ref("");const l=["sleep","creative","giggly","libido","trippy","euphoric"];return(a,i)=>(e.openBlock(),e.createElementBlock("div",p,[e.createElementVNode("div",m,[e.createElementVNode("h1",{class:"mn-b-semi",innerHTML:e.unref(n)("title")},null,8,b),e.createElementVNode("p",{class:"mn-b-big p-big t-transp",innerHTML:e.unref(n)("description")},null,8,h),e.createVNode(c.default,{input:e.unref(r),typingSpeed:100,loopTyping:!0,enableTyping:!0,placeholder:e.unref(n)("placeholder"),action:e.unref(n)("action"),"onUpdate:input":i[0]||(i[0]=t=>e.isRef(r)?r.value=t:r=t),onAction:i[1]||(i[1]=t=>e.unref(o).push({name:"Product Recommmendation",query:{mood:e.unref(r)}})),class:"mn-b-big pd-big bg-dark-transp-50 bg-blur-thin w-100 w-max-40r"},null,8,["input","placeholder","action"]),e.createElementVNode("p",{class:"w-m-60r t-transp mn-b-semi p-medium",innerHTML:e.unref(n)("subdescription")},null,8,g),e.createElementVNode("div",f,[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(l,(t,E)=>e.createElementVNode("button",{key:t,onClick:e.withModifiers(I=>e.unref(o).push({name:"Product Recommmendation",query:{mood:t}}),["stop"]),class:"uppercase pd-thin t-medium flex-center flex-column flex-nowrap flex bg-dark-transp-50 bg-blur-thin radius-semi cursor-pointer transition-elastic hover-easeInOut-1"},[e.createElementVNode("img",{src:(a.FILE_SERVER_URL||"")+"/icons/moods/"+t+".svg",class:"w-100"},null,8,y),e.createElementVNode("span",v,e.toDisplayString(e.unref(n)("presets."+t)),1)],8,_)),64))])])]))}};exports.default=w;
|
package/dist/prometheus-framework/src/modules/products/components/sections/HeroRecommendation.vue.js
CHANGED
@@ -1,21 +1,17 @@
|
|
1
|
-
import { ref as m, openBlock as l, createElementBlock as a, createElementVNode as
|
1
|
+
import { ref as m, openBlock as l, createElementBlock as a, createElementVNode as i, unref as e, createVNode as u, isRef as h, Fragment as b, renderList as g, withModifiers as _, toDisplayString as f } from "vue";
|
2
2
|
import y from "../../../../components/FieldBig/FieldBig.vue.js";
|
3
|
-
|
4
|
-
import {
|
3
|
+
/* empty css */
|
4
|
+
import { useRouter as w } from "vue-router";
|
5
|
+
import { useI18n as x } from "vue-i18n";
|
5
6
|
import "../../store/products.js";
|
6
7
|
/* empty css */
|
7
|
-
const
|
8
|
+
const v = { class: "pd-big bg-black t-white pos-relative o-hidden" }, T = { class: "flex-column flex-center flex t-center pos-relative z-index-1" }, H = ["innerHTML"], I = ["innerHTML"], L = ["innerHTML"], R = {
|
8
9
|
style: { "max-width": "50rem" },
|
9
10
|
class: "w-100 h-max gap-thin cols-6"
|
10
|
-
},
|
11
|
-
/* @__PURE__ */ t("div", {
|
12
|
-
style: { "background-image": "url(/spiral.jpg)" },
|
13
|
-
class: "spiral"
|
14
|
-
})
|
15
|
-
], -1), Y = {
|
11
|
+
}, k = ["onClick"], M = ["src"], A = { class: "t-white" }, $ = {
|
16
12
|
__name: "HeroRecommendation",
|
17
|
-
setup(
|
18
|
-
const r =
|
13
|
+
setup(C) {
|
14
|
+
const r = w(), c = {
|
19
15
|
messages: {
|
20
16
|
en: {
|
21
17
|
title: "Increase Your High <br><b class='t-main'>Boosted by AI Budtender</b>",
|
@@ -35,7 +31,7 @@ const w = { class: "pd-big bg-black t-white pos-relative o-hidden" }, T = { clas
|
|
35
31
|
euphoric: "euphoric"
|
36
32
|
},
|
37
33
|
placeholder: "Tell us what you're after...",
|
38
|
-
action: "Transmit
|
34
|
+
action: "Transmit"
|
39
35
|
},
|
40
36
|
ru: {
|
41
37
|
title: "Персональный Накур,<br><b class='t-main'>Напрямую от AI</b>",
|
@@ -55,55 +51,54 @@ const w = { class: "pd-big bg-black t-white pos-relative o-hidden" }, T = { clas
|
|
55
51
|
},
|
56
52
|
subdescription: "Или выберите тег, и наш AI направит тебя к самым крутым вариантам:",
|
57
53
|
placeholder: "Опиши свой желаемый хай, bro...",
|
58
|
-
action: "
|
54
|
+
action: "Передать"
|
59
55
|
}
|
60
56
|
}
|
61
|
-
}, { t: o, rt:
|
62
|
-
let
|
57
|
+
}, { t: o, rt: E } = x(c);
|
58
|
+
let n = m("");
|
63
59
|
const p = ["sleep", "creative", "giggly", "libido", "trippy", "euphoric"];
|
64
|
-
return (d,
|
65
|
-
|
66
|
-
|
60
|
+
return (d, s) => (l(), a("div", v, [
|
61
|
+
i("div", T, [
|
62
|
+
i("h1", {
|
67
63
|
class: "mn-b-semi",
|
68
64
|
innerHTML: e(o)("title")
|
69
65
|
}, null, 8, H),
|
70
|
-
|
66
|
+
i("p", {
|
71
67
|
class: "mn-b-big p-big t-transp",
|
72
68
|
innerHTML: e(o)("description")
|
73
69
|
}, null, 8, I),
|
74
70
|
u(y, {
|
75
|
-
input: e(
|
71
|
+
input: e(n),
|
76
72
|
typingSpeed: 100,
|
77
73
|
loopTyping: !0,
|
78
74
|
enableTyping: !0,
|
79
75
|
placeholder: e(o)("placeholder"),
|
80
76
|
action: e(o)("action"),
|
81
|
-
"onUpdate:input":
|
82
|
-
onAction:
|
83
|
-
class: "mn-b-big pd-big bg-
|
77
|
+
"onUpdate:input": s[0] || (s[0] = (t) => h(n) ? n.value = t : n = t),
|
78
|
+
onAction: s[1] || (s[1] = (t) => e(r).push({ name: "Product Recommmendation", query: { mood: e(n) } })),
|
79
|
+
class: "mn-b-big pd-big bg-dark-transp-50 bg-blur-thin w-100 w-max-40r"
|
84
80
|
}, null, 8, ["input", "placeholder", "action"]),
|
85
|
-
|
81
|
+
i("p", {
|
86
82
|
class: "w-m-60r t-transp mn-b-semi p-medium",
|
87
83
|
innerHTML: e(o)("subdescription")
|
88
84
|
}, null, 8, L),
|
89
|
-
|
90
|
-
(l(), a(
|
91
|
-
key:
|
92
|
-
onClick: _((
|
93
|
-
class: "uppercase pd-thin t-medium flex-center flex-column flex-nowrap flex bg-
|
85
|
+
i("div", R, [
|
86
|
+
(l(), a(b, null, g(p, (t, B) => i("button", {
|
87
|
+
key: t,
|
88
|
+
onClick: _((S) => e(r).push({ name: "Product Recommmendation", query: { mood: t } }), ["stop"]),
|
89
|
+
class: "uppercase pd-thin t-medium flex-center flex-column flex-nowrap flex bg-dark-transp-50 bg-blur-thin radius-semi cursor-pointer transition-elastic hover-easeInOut-1"
|
94
90
|
}, [
|
95
|
-
|
96
|
-
src: (d.FILE_SERVER_URL || "") + "/icons/moods/" +
|
91
|
+
i("img", {
|
92
|
+
src: (d.FILE_SERVER_URL || "") + "/icons/moods/" + t + ".svg",
|
97
93
|
class: "w-100"
|
98
94
|
}, null, 8, M),
|
99
|
-
|
100
|
-
], 8,
|
95
|
+
i("span", A, f(e(o)("presets." + t)), 1)
|
96
|
+
], 8, k)), 64))
|
101
97
|
])
|
102
|
-
])
|
103
|
-
C
|
98
|
+
])
|
104
99
|
]));
|
105
100
|
}
|
106
101
|
};
|
107
102
|
export {
|
108
|
-
|
103
|
+
$ as default
|
109
104
|
};
|
package/dist/prometheus-framework/src/modules/reports/components/sections/FormReport.vue.cjs
CHANGED
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),c=require("../../../../components/Popup/Popup.
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),c=require("../../../../components/Popup/Popup.vue2.cjs"),d=require("../../../../components/Button/Button.vue2.cjs"),m=require("../../../../components/Select/Select.vue2.cjs"),f=require("../../store/reports.cjs"),b=e.createElementVNode("h3",{class:"mn-b-small"}," Report Content ",-1),g=e.createElementVNode("p",{class:"p-medium mn-b-small"}," We strive to maintain a safe and comfortable environment for all users. If you encounter content that you believe violates our guidelines, please report it: ",-1),v=e.createElementVNode("p",{class:"p-medium mn-b-small"},"Our moderators will review your report within 24 hours and take action if it violates our policies.",-1),h={__name:"FormReport",props:{user:{type:String,required:!1},type:{type:String,required:!1},reason:{type:String,required:!1},target:{type:String,required:!0},text:{type:String,default:"!"},status:{type:String,default:"new"}},setup(i){const t=i,r=e.reactive({user:t.user,type:t.type,reason:t.reason,target:t.target,status:t.status});function l(){r.user===null&&delete r.user,f.actions.create(r)}const s=e.ref(!1);function u(){s.value=!0}function a(){s.value=!1}return(p,o)=>(e.openBlock(),e.createElementBlock("div",{onClick:o[1]||(o[1]=n=>u())},[e.renderSlot(p.$slots,"default"),e.createVNode(c.default,{onClosePopup:a,isPopupOpen:s.value,class:"w-m-33r t-left pd-big bg-white radius-big"},{default:e.withCtx(()=>[b,g,e.createVNode(m.default,{select:r.reason,"onUpdate:select":o[0]||(o[0]=n=>r.reason=n),options:["harassment","spam","inappropriate","misinformation","copyright","other"],placeholder:"Select reason",class:"mn-b-small bg-white br-solid br-black-transp br-1px uppercase pd-medium t-semi bg-white t-black radius-medium"},null,8,["select"]),v,e.createVNode(d.default,{submit:l,callback:a,class:"w-100 bg-black t-white"},{default:e.withCtx(()=>[e.createTextVNode(" Report ")]),_:1})]),_:1},8,["isPopupOpen"])]))}};exports.default=h;
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { reactive as d, ref as f, openBlock as b, createElementBlock as g, renderSlot as h, createVNode as s, withCtx as l, createTextVNode as y, createElementVNode as a } from "vue";
|
2
|
-
import _ from "../../../../components/Popup/Popup.
|
2
|
+
import _ from "../../../../components/Popup/Popup.vue2.js";
|
3
3
|
import v from "../../../../components/Button/Button.vue2.js";
|
4
4
|
import w from "../../../../components/Select/Select.vue2.js";
|
5
5
|
import { actions as S } from "../../store/reports.js";
|