@ozdao/prometheus-framework 0.2.195 → 0.2.196
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/main.css +1 -1
- package/dist/prometheus-framework/src/modules/backoffice/components/layouts/Backoffice.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/backoffice/components/layouts/Backoffice.vue.js +12 -12
- package/dist/prometheus-framework/src/modules/backoffice/router/backoffice.cjs +1 -1
- package/dist/prometheus-framework/src/modules/backoffice/router/backoffice.js +7 -3
- package/dist/prometheus-framework/src/modules/community/components/layouts/Community.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/community/components/layouts/Community.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/community/components/pages/Community.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/community/components/pages/Community.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/community/components/pages/CreateBlogPost.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/community/components/pages/CreateBlogPost.vue.js +1 -1
- 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 +1 -1
- 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 +2 -2
- package/dist/prometheus-framework/src/modules/globals/views/components/layouts/App.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/globals/views/components/layouts/App.vue.js +94 -116
- package/dist/prometheus-framework/src/modules/globals/views/components/layouts/Client.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/globals/views/components/layouts/Client.vue.js +68 -104
- package/dist/prometheus-framework/src/modules/globals/views/components/partials/Header.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/globals/views/components/partials/Header.vue.js +1 -1
- 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 +2 -2
- package/dist/prometheus-framework/src/modules/orders/components/sections/FormAddCustomer.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/orders/components/sections/FormAddCustomer.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/orders/components/sections/FormCustomerDetails.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/orders/components/sections/FormCustomerDetails.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/orders/components/sections/FormPayment.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/orders/components/sections/FormPayment.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/organizations/components/pages/Members.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/Members.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationEdit.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationEdit.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/organizations/components/sections/Documents.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/sections/Documents.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersAdd.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersAdd.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/sections/Organizations.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/sections/Organizations.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/pages/views/components/partials/SidebarPages.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/pages/views/components/partials/SidebarPages.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/products/components/blocks/CardPosition.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/blocks/CardPosition.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/products/components/blocks/ImagesThumbnails.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/blocks/ImagesThumbnails.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/CategoryEdit.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/CategoryEdit.vue.js +1 -1
- 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 +2 -2
- 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/sections/EditProductInfo.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/sections/EditProductInfo.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/reports/components/sections/FormReport.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/reports/components/sections/FormReport.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/spots/components/blocks/SpotMemberModify.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/spots/components/blocks/SpotMemberModify.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/spots/components/pages/SpotEdit.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/spots/components/pages/SpotEdit.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/wallet/views/components/blocks/CryptoDeposit.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/wallet/views/components/blocks/CryptoDeposit.vue.js +1 -1
- 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 +2 -2
- package/dist/prometheus-framework.cjs.js +92 -1
- package/dist/prometheus-framework.es.js +12891 -36
- package/dist/style.css +1 -1
- package/package.json +1 -1
- package/src/components/index.js +0 -1
- package/src/main.js +0 -3
- package/src/modules/backoffice/components/layouts/Backoffice.vue +3 -2
- package/src/modules/backoffice/router/backoffice.js +10 -2
- package/src/modules/globals/views/components/layouts/App.vue +36 -31
- package/src/modules/globals/views/components/layouts/Client.vue +33 -52
- package/src/{components/Sidebar → modules/globals/views/components/partials}/Sidebar.vue +2 -4
- package/src/styles/layout.scss +1 -0
@@ -1,15 +1,11 @@
|
|
1
|
-
import { computed as
|
2
|
-
import { u as
|
3
|
-
import { useI18n as
|
4
|
-
import { useRoute as
|
5
|
-
import { state as
|
6
|
-
import E from "../../../../../components/Sidebar/Sidebar.vue.js";
|
1
|
+
import { computed as g, ref as B, onMounted as P, resolveComponent as F, openBlock as n, createElementBlock as T, Fragment as j, createVNode as h, Transition as y, withCtx as l, unref as i, createBlock as s, resolveDynamicComponent as p, normalizeClass as f, createCommentVNode as m } from "vue";
|
2
|
+
import { u as N } from "../../../../../../../node_modules/@unhead/vue/dist/shared/vue.f36acd1f.js";
|
3
|
+
import { useI18n as z } from "vue-i18n";
|
4
|
+
import { useRoute as E } from "vue-router";
|
5
|
+
import { state as a } from "../../store/globals.js";
|
7
6
|
import I from "../partials/BottomNavigation.vue.js";
|
8
7
|
import { Preferences as L } from "../../../../../../node_modules/@capacitor/preferences/dist/esm/index.js";
|
9
|
-
const
|
10
|
-
key: 0,
|
11
|
-
class: "w-100 h-100"
|
12
|
-
}, u = "https://weeder.delivery", K = {
|
8
|
+
const c = "https://weeder.delivery", R = {
|
13
9
|
__name: "App",
|
14
10
|
props: {
|
15
11
|
messages: {
|
@@ -18,156 +14,138 @@ const M = {
|
|
18
14
|
},
|
19
15
|
logotype: {
|
20
16
|
type: Object
|
21
|
-
},
|
22
|
-
navigation: {
|
23
|
-
type: Object
|
24
17
|
}
|
25
18
|
},
|
26
|
-
setup(
|
27
|
-
const
|
28
|
-
messages:
|
29
|
-
}),
|
30
|
-
function
|
19
|
+
setup(v) {
|
20
|
+
const S = v, { t: o, locale: M } = z({
|
21
|
+
messages: S.messages
|
22
|
+
}), b = g(() => w(`${c}${t.path}`)), t = E(), k = ["en", "ru"];
|
23
|
+
function w(e) {
|
31
24
|
return e.endsWith("/") ? e.slice(0, -1) : e;
|
32
25
|
}
|
33
|
-
const
|
34
|
-
title:
|
35
|
-
description:
|
26
|
+
const O = g(() => ({
|
27
|
+
title: o("meta.title"),
|
28
|
+
description: o("meta.description"),
|
36
29
|
meta: [
|
37
30
|
{ charset: "utf-8" },
|
38
31
|
{ name: "viewport", content: "width=device-width, initial-scale=1, shrink-to-fit=no" },
|
39
|
-
{ hid: "description", name: "description", content:
|
40
|
-
{ hid: "keywords", name: "keywords", content:
|
41
|
-
{ hid: "og:title", property: "og:title", content:
|
42
|
-
{ hid: "og:description", property: "og:description", content:
|
43
|
-
{ hid: "og:image", property: "og:image", content:
|
44
|
-
{ hid: "og:url", property: "og:url", content:
|
45
|
-
{ hid: "twitter:title", name: "twitter:title", content:
|
46
|
-
{ hid: "twitter:description", name: "twitter:description", content:
|
47
|
-
{ hid: "twitter:image", name: "twitter:image", content:
|
48
|
-
{ hid: "twitter:card", name: "twitter:card", content:
|
32
|
+
{ hid: "description", name: "description", content: o("meta.description") },
|
33
|
+
{ hid: "keywords", name: "keywords", content: o("meta.keywords") },
|
34
|
+
{ hid: "og:title", property: "og:title", content: o("meta.og.title") },
|
35
|
+
{ hid: "og:description", property: "og:description", content: o("meta.og.description") },
|
36
|
+
{ hid: "og:image", property: "og:image", content: c + "/favicon/cover.jpg" },
|
37
|
+
{ hid: "og:url", property: "og:url", content: b.value },
|
38
|
+
{ hid: "twitter:title", name: "twitter:title", content: o("meta.twitter.title") },
|
39
|
+
{ hid: "twitter:description", name: "twitter:description", content: o("meta.twitter.description") },
|
40
|
+
{ hid: "twitter:image", name: "twitter:image", content: c + "/favicon/cover.jpg" },
|
41
|
+
{ hid: "twitter:card", name: "twitter:card", content: o("meta.twitter.card") }
|
49
42
|
],
|
50
43
|
link: [
|
51
|
-
{ hid: "canonical", rel: "canonical", href:
|
52
|
-
|
44
|
+
{ hid: "canonical", rel: "canonical", href: b.value },
|
45
|
+
..._.value
|
53
46
|
],
|
54
|
-
htmlAttrs: { lang:
|
55
|
-
})),
|
56
|
-
let
|
57
|
-
|
58
|
-
const
|
47
|
+
htmlAttrs: { lang: o("meta.htmlAttrs.lang") }
|
48
|
+
})), _ = g(() => k.map((e) => {
|
49
|
+
let r = t.path;
|
50
|
+
t.params.locale ? r = r.replace(`/${t.params.locale}`, `/${e}`) : r = `/${e}${r}`;
|
51
|
+
const d = w(`${c}${r}`);
|
59
52
|
return {
|
60
53
|
hid: "alternate",
|
61
54
|
rel: "alternate",
|
62
55
|
hreflang: e,
|
63
|
-
href:
|
56
|
+
href: d
|
64
57
|
};
|
65
58
|
}));
|
66
|
-
|
67
|
-
const
|
68
|
-
async function
|
59
|
+
N(O.value);
|
60
|
+
const $ = B(!1);
|
61
|
+
async function C() {
|
69
62
|
const e = await L.get({ key: "first-use" });
|
70
|
-
|
63
|
+
$.value = e.value ? JSON.parse(e.value) : !0;
|
71
64
|
}
|
72
|
-
|
73
|
-
|
74
|
-
}
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
const p = P("router-view");
|
79
|
-
return a(), k(T, null, [
|
80
|
-
m(v, {
|
81
|
-
name: "scaleTransition",
|
82
|
-
mode: "out-in"
|
83
|
-
}, {
|
84
|
-
default: r(() => [
|
85
|
-
g.value ? (a(), k("section", M, [
|
86
|
-
m(p, {
|
87
|
-
name: "Walkthrough",
|
88
|
-
onUpdateFirstUse: A,
|
89
|
-
slides: [1, 2, 3],
|
90
|
-
class: "tab"
|
91
|
-
})
|
92
|
-
])) : s("", !0)
|
93
|
-
]),
|
94
|
-
_: 1
|
95
|
-
}),
|
96
|
-
m(v, {
|
65
|
+
return P(async () => {
|
66
|
+
await C();
|
67
|
+
}), (e, r) => {
|
68
|
+
const d = F("router-view");
|
69
|
+
return n(), T(j, null, [
|
70
|
+
h(y, {
|
97
71
|
name: "moveFromTop",
|
98
72
|
mode: "out-in",
|
99
73
|
appear: ""
|
100
74
|
}, {
|
101
|
-
default:
|
102
|
-
i.isOpenSidebar ? (
|
75
|
+
default: l(() => [
|
76
|
+
i(t).meta.sidebar && a.isOpenSidebar ? (n(), s(p(i(t).meta.sidebar), {
|
103
77
|
key: 0,
|
104
|
-
stateSidebar:
|
105
|
-
onCloseSidebar:
|
106
|
-
|
78
|
+
stateSidebar: a.isOpenSidebar,
|
79
|
+
onCloseSidebar: r[0] || (r[0] = () => {
|
80
|
+
a.isOpenSidebar = !a.isOpenSidebar;
|
107
81
|
}),
|
108
|
-
class:
|
109
|
-
"pos-l-70-negative": !
|
110
|
-
"pos-l-0":
|
82
|
+
class: f(["transition-ease-in-out pos-absolute w-70 z-index-0 bg-light", {
|
83
|
+
"pos-l-70-negative": !a.isOpenSidebar,
|
84
|
+
"pos-l-0": a.isOpenSidebar
|
111
85
|
}])
|
112
86
|
}, {
|
113
|
-
default:
|
114
|
-
|
87
|
+
default: l(({ Component: u }) => [
|
88
|
+
i(t).meta.navigation ? (n(), s(p(i(t).meta.navigation), {
|
115
89
|
key: 0,
|
116
90
|
class: "h3 pd-big cols-1"
|
117
|
-
})) :
|
91
|
+
})) : m("", !0)
|
118
92
|
]),
|
119
93
|
_: 1
|
120
|
-
},
|
94
|
+
}, 40, ["stateSidebar", "class"])) : m("", !0)
|
121
95
|
]),
|
122
96
|
_: 1
|
123
97
|
}),
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
class: _(["transition-ease-in-out pos-relative br-b br-solid br-grey-transp-10 pos-t-0", {
|
129
|
-
"pos-l-70": i.isOpenSidebar,
|
130
|
-
"pos-l-0": !i.isOpenSidebar
|
131
|
-
}]),
|
132
|
-
theme: e.headerTheme,
|
133
|
-
logotype: y.logotype
|
98
|
+
h(y, {
|
99
|
+
name: "moveFromTop",
|
100
|
+
mode: "out-in",
|
101
|
+
appear: ""
|
134
102
|
}, {
|
135
|
-
default:
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
|
103
|
+
default: l(() => [
|
104
|
+
!e.MOBILE_APP && i(t).meta.header ? (n(), s(p(i(t).meta.header), {
|
105
|
+
key: 0,
|
106
|
+
ref: "header",
|
107
|
+
class: f(["transition-ease-in-out pos-relative br-b br-solid br-grey-transp-10 pos-t-0", {
|
108
|
+
"pos-l-70": a.isOpenSidebar,
|
109
|
+
"pos-l-0": !a.isOpenSidebar
|
110
|
+
}]),
|
111
|
+
theme: e.headerTheme,
|
112
|
+
logotype: v.logotype
|
140
113
|
}, {
|
141
|
-
default:
|
142
|
-
(
|
143
|
-
|
144
|
-
|
145
|
-
|
146
|
-
class: "mn-l-auto desktop-only"
|
147
|
-
})) : s("", !0)
|
148
|
-
]),
|
149
|
-
_: 2
|
150
|
-
}, 1024))
|
114
|
+
default: l(() => [
|
115
|
+
i(t).meta.navigation ? (n(), s(p(i(t).meta.navigation), {
|
116
|
+
key: 0,
|
117
|
+
class: "mn-l-auto desktop-only"
|
118
|
+
})) : m("", !0)
|
151
119
|
]),
|
152
|
-
_:
|
153
|
-
},
|
120
|
+
_: 1
|
121
|
+
}, 8, ["theme", "logotype", "class"])) : m("", !0)
|
154
122
|
]),
|
155
123
|
_: 1
|
156
|
-
}
|
157
|
-
|
158
|
-
|
159
|
-
|
124
|
+
}),
|
125
|
+
h(d, {
|
126
|
+
class: f([{
|
127
|
+
"pos-l-70": a.isOpenSidebar,
|
128
|
+
"pos-l-0": !a.isOpenSidebar
|
129
|
+
}, "transition-ease-in-out h-min-100 w-100 bg-white pos-relative"]),
|
130
|
+
ref: "screen",
|
131
|
+
onScroll: e.handleScroll,
|
132
|
+
onClick: r[1] || (r[1] = (u) => a.isOpenSidebar ? (A) => a.isOpenSidebar = !1 : (A) => {
|
133
|
+
console.log("not succes");
|
134
|
+
})
|
135
|
+
}, {
|
136
|
+
default: l(({ Component: u }) => [
|
137
|
+
(n(), s(p(u)))
|
160
138
|
]),
|
161
139
|
_: 1
|
162
|
-
}),
|
163
|
-
e.MOBILE_APP &&
|
164
|
-
key:
|
140
|
+
}, 8, ["class", "onScroll"]),
|
141
|
+
e.MOBILE_APP && i(t).meta.title_hide ? (n(), s(I, {
|
142
|
+
key: 0,
|
165
143
|
class: "pd-small z-index-2"
|
166
|
-
})) :
|
144
|
+
})) : m("", !0)
|
167
145
|
], 64);
|
168
146
|
};
|
169
147
|
}
|
170
148
|
};
|
171
149
|
export {
|
172
|
-
|
150
|
+
R as default
|
173
151
|
};
|
package/dist/prometheus-framework/src/modules/globals/views/components/layouts/Client.vue.cjs
CHANGED
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),l=require("vue-router"),t=require("../../store/globals.cjs"),v=require("../../../../../components/Loader/Loader.vue2.cjs"),_=require("../../../../../components/Status/Status.vue.cjs"),g=require("../../../../../components/Popup/Popup.vue.cjs");require("vue-i18n");;/* empty css */const h=require("../partials/LocationSelection.vue.cjs");require("../../../../products/store/categories.cjs");const k=require("../../../../orders/components/partials/ShopCart.vue.cjs");;/* empty css */const w={id:"app-wrapper",class:"pos-relative"},C={__name:"Client",setup(q){const n=l.useRoute();l.useRouter();let i=e.ref(!1);const r=e.ref(null);e.ref(null);const s=e.ref(n.query.referalCode);function c(){t.state.isOpenLocationPopup=!1}function u(){document.getElementById("app").scrollIntoView()}const p=e.ref(0);return e.ref(null),e.computed(()=>p.value>50?"light":n.meta.header_theme||"light"),e.onMounted(async()=>{"serviceWorker"in navigator&&window.addEventListener("load",()=>{navigator.serviceWorker.register("/service-worker.js").then(o=>{console.log("SW registered: ",o)}).catch(o=>{console.log("SW registration failed: ",o)})}),r&&(i.value=!0);const a=localStorage.getItem("position");a?t.state.position=JSON.parse(a):t.state.isOpenLocationPopup=!0,s.value&&localStorage.setItem("referalCode",s.value)}),(a,o)=>{const d=e.resolveComponent("router-view");return e.openBlock(),e.createElementBlock("div",w,[e.createVNode(e.Transition,{name:"moveFromTop",appear:""},{default:e.withCtx(()=>[r.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(v.default,{key:0,class:"pos-fixed"}))]),_:1}),e.createVNode(g.default,{onClosePopup:c,isPopupOpen:t.state.isOpenLocationPopup,class:"bg-white pd-semi w-m-33r radius-big"},{default:e.withCtx(()=>[e.createVNode(h.default)]),_:1},8,["isPopupOpen"]),e.createVNode(k.default),t.state.error.show?(e.openBlock(),e.createBlock(_.default,{key:0,data:t.state.error,class:"z-index-7"},null,8,["data"])):e.createCommentVNode("",!0),(e.openBlock(),e.createBlock(e.Suspense,null,{default:e.withCtx(()=>[e.createVNode(d,{class:"o-scroll"},{default:e.withCtx(({Component:f,route:m})=>[e.createVNode(e.Transition,{onBeforeEnter:u,name:"scaleIn",mode:"out-in",appear:""},{default:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(f),{ref_key:"page",ref:r,key:m.path}))]),_:2},1024)]),_:1})]),_:1}))])}}};exports.default=C;
|
package/dist/prometheus-framework/src/modules/globals/views/components/layouts/Client.vue.js
CHANGED
@@ -1,140 +1,104 @@
|
|
1
|
-
import { ref as
|
2
|
-
import { useRoute as
|
1
|
+
import { ref as e, computed as k, onMounted as C, resolveComponent as y, openBlock as r, createElementBlock as P, createVNode as o, Transition as u, withCtx as a, createBlock as s, createCommentVNode as m, Suspense as O, resolveDynamicComponent as L } from "vue";
|
2
|
+
import { useRoute as S, useRouter as x } from "vue-router";
|
3
3
|
import { state as t } from "../../store/globals.js";
|
4
|
-
import
|
5
|
-
import
|
6
|
-
import
|
4
|
+
import B from "../../../../../components/Loader/Loader.vue2.js";
|
5
|
+
import I from "../../../../../components/Status/Status.vue.js";
|
6
|
+
import E from "../../../../../components/Popup/Popup.vue.js";
|
7
7
|
import "vue-i18n";
|
8
8
|
/* empty css */
|
9
|
-
import
|
10
|
-
/* empty css */
|
9
|
+
import W from "../partials/LocationSelection.vue.js";
|
11
10
|
import "../../../../products/store/categories.js";
|
12
|
-
import
|
13
|
-
import M from "../../../../orders/components/partials/ShopCart.vue.js";
|
11
|
+
import $ from "../../../../orders/components/partials/ShopCart.vue.js";
|
14
12
|
/* empty css */
|
15
|
-
const
|
13
|
+
const N = {
|
16
14
|
id: "app-wrapper",
|
17
15
|
class: "pos-relative"
|
18
|
-
},
|
16
|
+
}, H = {
|
19
17
|
__name: "Client",
|
20
|
-
setup(
|
21
|
-
const
|
22
|
-
|
23
|
-
let
|
24
|
-
const
|
25
|
-
|
18
|
+
setup(T) {
|
19
|
+
const p = S();
|
20
|
+
x();
|
21
|
+
let f = e(!1);
|
22
|
+
const i = e(null);
|
23
|
+
e(null);
|
24
|
+
const c = e(p.query.referalCode);
|
25
|
+
function d() {
|
26
26
|
t.isOpenLocationPopup = !1;
|
27
27
|
}
|
28
|
-
function
|
28
|
+
function _() {
|
29
29
|
document.getElementById("app").scrollIntoView();
|
30
30
|
}
|
31
|
-
const
|
32
|
-
|
33
|
-
const o = s(null);
|
34
|
-
S(() => c.value > 50 ? "light" : u.meta.header_theme || "light");
|
35
|
-
const k = () => {
|
36
|
-
if (c.value = event.target.scrollTop, c.value > 50 && !p) {
|
37
|
-
p = !0, o.value.$el.classList.add("scrolled");
|
38
|
-
const e = -o.value.$el.getBoundingClientRect().top;
|
39
|
-
o.value.$el.style.transform = `translateY(${e}px)`, setTimeout(() => {
|
40
|
-
o.value.$el.style.transform = "translateY(0)";
|
41
|
-
}, 0);
|
42
|
-
} else if (c.value <= 75 && p) {
|
43
|
-
p = !1, o.value.$el.classList.remove("scrolled");
|
44
|
-
const e = o.value.$el.getBoundingClientRect().top;
|
45
|
-
o.value.$el.style.transform = `translateY(${e}px)`, setTimeout(() => {
|
46
|
-
o.value.$el.style.transform = "translateY(0)";
|
47
|
-
}, 0);
|
48
|
-
}
|
49
|
-
};
|
50
|
-
return O(async () => {
|
31
|
+
const v = e(0);
|
32
|
+
return e(null), k(() => v.value > 50 ? "light" : p.meta.header_theme || "light"), C(async () => {
|
51
33
|
"serviceWorker" in navigator && window.addEventListener("load", () => {
|
52
|
-
navigator.serviceWorker.register("/service-worker.js").then((
|
53
|
-
console.log("SW registered: ",
|
54
|
-
}).catch((
|
55
|
-
console.log("SW registration failed: ",
|
34
|
+
navigator.serviceWorker.register("/service-worker.js").then((n) => {
|
35
|
+
console.log("SW registered: ", n);
|
36
|
+
}).catch((n) => {
|
37
|
+
console.log("SW registration failed: ", n);
|
56
38
|
});
|
57
|
-
}),
|
58
|
-
const
|
59
|
-
|
60
|
-
}), (
|
61
|
-
const
|
62
|
-
return
|
63
|
-
|
39
|
+
}), i && (f.value = !0);
|
40
|
+
const l = localStorage.getItem("position");
|
41
|
+
l ? t.position = JSON.parse(l) : t.isOpenLocationPopup = !0, c.value && localStorage.setItem("referalCode", c.value);
|
42
|
+
}), (l, n) => {
|
43
|
+
const g = y("router-view");
|
44
|
+
return r(), P("div", N, [
|
45
|
+
o(u, {
|
64
46
|
name: "moveFromTop",
|
65
47
|
appear: ""
|
66
48
|
}, {
|
67
|
-
default:
|
68
|
-
|
49
|
+
default: a(() => [
|
50
|
+
i.value ? m("", !0) : (r(), s(B, {
|
69
51
|
key: 0,
|
70
52
|
class: "pos-fixed"
|
71
53
|
}))
|
72
54
|
]),
|
73
55
|
_: 1
|
74
56
|
}),
|
75
|
-
|
76
|
-
onClosePopup:
|
57
|
+
o(E, {
|
58
|
+
onClosePopup: d,
|
77
59
|
isPopupOpen: t.isOpenLocationPopup,
|
78
60
|
class: "bg-white pd-semi w-m-33r radius-big"
|
79
61
|
}, {
|
80
|
-
default:
|
81
|
-
|
62
|
+
default: a(() => [
|
63
|
+
o(W)
|
82
64
|
]),
|
83
65
|
_: 1
|
84
66
|
}, 8, ["isPopupOpen"]),
|
85
|
-
|
86
|
-
|
87
|
-
ref_key: "screen",
|
88
|
-
ref: $,
|
89
|
-
onScroll: k,
|
90
|
-
onClick: e[0] || (e[0] = (_) => t.isOpenSidebar ? (f) => t.isOpenSidebar = !1 : (f) => {
|
91
|
-
console.log("not succes");
|
92
|
-
}),
|
93
|
-
class: R(["transition-ease-in-out h-min-100 w-100 bg-white pos-relative o-scroll", {
|
94
|
-
"pos-l-70": t.isOpenSidebar,
|
95
|
-
"pos-l-0": !t.isOpenSidebar
|
96
|
-
}])
|
97
|
-
}, [
|
98
|
-
a(M),
|
99
|
-
t.error.show ? (l(), i(V, {
|
100
|
-
key: 0,
|
101
|
-
data: t.error,
|
102
|
-
class: "z-index-7"
|
103
|
-
}, null, 8, ["data"])) : d("", !0),
|
104
|
-
(l(), i(b, null, {
|
105
|
-
default: n(() => [
|
106
|
-
a(C, null, {
|
107
|
-
default: n(({ Component: _, route: f }) => [
|
108
|
-
a(g, {
|
109
|
-
onBeforeEnter: y,
|
110
|
-
name: "scaleIn",
|
111
|
-
mode: "out-in",
|
112
|
-
appear: ""
|
113
|
-
}, {
|
114
|
-
default: n(() => [
|
115
|
-
(l(), i(x(_), {
|
116
|
-
ref_key: "page",
|
117
|
-
ref: m,
|
118
|
-
key: f.path
|
119
|
-
}))
|
120
|
-
]),
|
121
|
-
_: 2
|
122
|
-
}, 1024)
|
123
|
-
]),
|
124
|
-
_: 1
|
125
|
-
})
|
126
|
-
]),
|
127
|
-
_: 1
|
128
|
-
}))
|
129
|
-
], 34),
|
130
|
-
r.MOBILE_APP && E(u).meta.title_hide ? (l(), i(z, {
|
67
|
+
o($),
|
68
|
+
t.error.show ? (r(), s(I, {
|
131
69
|
key: 0,
|
132
|
-
|
133
|
-
|
70
|
+
data: t.error,
|
71
|
+
class: "z-index-7"
|
72
|
+
}, null, 8, ["data"])) : m("", !0),
|
73
|
+
(r(), s(O, null, {
|
74
|
+
default: a(() => [
|
75
|
+
o(g, { class: "o-scroll" }, {
|
76
|
+
default: a(({ Component: h, route: w }) => [
|
77
|
+
o(u, {
|
78
|
+
onBeforeEnter: _,
|
79
|
+
name: "scaleIn",
|
80
|
+
mode: "out-in",
|
81
|
+
appear: ""
|
82
|
+
}, {
|
83
|
+
default: a(() => [
|
84
|
+
(r(), s(L(h), {
|
85
|
+
ref_key: "page",
|
86
|
+
ref: i,
|
87
|
+
key: w.path
|
88
|
+
}))
|
89
|
+
]),
|
90
|
+
_: 2
|
91
|
+
}, 1024)
|
92
|
+
]),
|
93
|
+
_: 1
|
94
|
+
})
|
95
|
+
]),
|
96
|
+
_: 1
|
97
|
+
}))
|
134
98
|
]);
|
135
99
|
};
|
136
100
|
}
|
137
101
|
};
|
138
102
|
export {
|
139
|
-
|
103
|
+
H as default
|
140
104
|
};
|
package/dist/prometheus-framework/src/modules/globals/views/components/partials/Header.vue.cjs
CHANGED
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),u=require("vue-router"),b=require("vue-i18n"),a=require("../../store/globals.cjs"),n=require("../../../../orders/store/shopcart.cjs"),m=require("../../../../auth/views/store/auth.cjs");;/* empty css */const h=require("../../../../../components/Button/Button.vue2.cjs"),g=require("../../../../../components/Select/Select.
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),u=require("vue-router"),b=require("vue-i18n"),a=require("../../store/globals.cjs"),n=require("../../../../orders/store/shopcart.cjs"),m=require("../../../../auth/views/store/auth.cjs");;/* empty css */const h=require("../../../../../components/Button/Button.vue2.cjs"),g=require("../../../../../components/Select/Select.vue.cjs"),f=require("../../../../../components/Checkbox/Checkbox.vue.cjs"),k=require("../../../../icons/entities/IconShopcart.vue.cjs"),p=require("../../../../icons/entities/IconProfile.vue.cjs");;/* empty css */const w={class:"i-small",fill:"inherit",xmlns:"http://www.w3.org/2000/svg",width:"50",height:"67",viewBox:"0 0 50 67"},v=e.createElementVNode("path",{d:"M25 0C11.207 0 0 11.207 0 25C0 38.793 20.832 66.668 25 66.668C29.168 66.668 50 38.793 50 25C50 11.207 38.793 0 25 0ZM25 33.332C20.418 33.332 16.668 29.582 16.668 25C16.668 20.418 20.418 16.668 25 16.668C29.582 16.668 33.332 20.418 33.332 25C33.332 29.582 29.582 33.332 25 33.332Z",fill:"inherit"},null,-1),C=[v],S={__name:"Header",props:{theme:{type:String,default:"light"},logotype:{type:Object}},setup(t){const s=t,o=u.useRouter();u.useRoute(),b.useI18n();function d(){a.state.isOpenLocationPopup=!0}return e.onMounted(()=>{n.actions.setShopcart()}),(i,l)=>{var c;return e.openBlock(),e.createElementBlock("header",{id:"header",class:e.normalizeClass(["pd-thin gap-micro flex-center flex-nowrap flex h-4r w-100 z-index-2",{"t-black bg-white":t.theme==="light","t-white bg-black":t.theme==="dark"}])},[e.createElementVNode("button",{"aria-label":"menu",onClick:l[0]||(l[0]=()=>a.state.isOpenSidebar=!a.state.isOpenSidebar),class:e.normalizeClass(["mobile-only menu-btn",{"menu-btn_active":a.state.isOpenSidebar}])},[e.createElementVNode("span",{class:e.normalizeClass(["no-events",{"bg-black":t.theme==="light","bg-white":t.theme==="dark"}])},[e.createElementVNode("span",{class:e.normalizeClass(["menu-btn__before",{"bg-black":t.theme==="light","bg-white":t.theme==="dark"}])},null,2),e.createElementVNode("span",{class:e.normalizeClass(["menu-btn__after",{"bg-black":t.theme==="light","bg-white":t.theme==="dark"}])},null,2)],2)],2),s.logotype?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(s.logotype),{key:0,onClick:l[1]||(l[1]=r=>e.unref(o).push({path:"/"})),theme:t.theme,class:"h-2r w-auto cursor-pointer"},null,8,["theme"])):e.createCommentVNode("",!0),e.createElementVNode("button",{"aria-label":"button_location",class:e.normalizeClass(["cursor-pointer bg-transp pd-l-micro pd-r-micro radius-extra uppercase t-semi br-solid br-2px transition-linear",{"fill-black br-black t-black hover-bg-black hover-t-white hover-fill-white":t.theme==="light","fill-white br-white t-white hover-bg-white hover-t-black hover-fill-black":t.theme==="dark"}]),onClick:l[2]||(l[2]=r=>d())},[(e.openBlock(),e.createElementBlock("svg",w,C)),e.createTextVNode(" "+e.toDisplayString((c=a.state.position)!=null&&c.country?a.state.position.country:"World"),1)],2),e.renderSlot(i.$slots,"default"),e.createVNode(f.default,{name:"darkmode",label:"Darkmode",radio:a.state.theme.darkmode,"onUpdate:radio":l[3]||(l[3]=r=>a.actions.toggleTheme()),class:e.normalizeClass(["mn-l-thin mn-r-auto desktop-only t-semi pd-micro br-2px br-solid radius-extra",{"br-light t-black":t.theme==="light","br-dark t-white":t.theme==="dark"}]),theme:t.theme},null,8,["radio","theme","class"]),e.createVNode(h.default,{"aria-label":"shopcart",submit:r=>n.actions.toggleShopcart(),counter:n.getters.cartTotalAmount,showSucces:!1,showLoader:!1,class:"pd-zero mn-l-auto mn-r-micro"},{default:e.withCtx(()=>[e.createVNode(k.default,{class:"i-semi",fill:t.theme==="light"?"rgb(var(--black))":"rgb(var(--white))"},null,8,["fill"])]),_:1},8,["submit","counter"]),e.createVNode(h.default,{"aria-label":"profile",class:"pd-zero bg-transp",submit:m.state.access.status===!1?r=>e.unref(o).push({name:"Sign In"}):r=>e.unref(o).push({name:"User Profile",params:{_id:m.state.user._id}}),showSucces:!1,showLoader:!1},{default:e.withCtx(()=>[e.createVNode(p.default,{class:"i-semi",fill:t.theme==="light"?"rgb(var(--black))":"rgb(var(--white))"},null,8,["fill"])]),_:1},8,["submit"]),e.createVNode(g.default,{select:i.$i18n.locale,"onUpdate:select":l[4]||(l[4]=r=>i.$i18n.locale=r),options:[{name:"🌎 En",value:"en"},{name:"🇷🇺 Ru",value:"ru"}],property:"value",class:e.normalizeClass(["pos-relative uppercase pd-micro t-semi radius-thin",{"bg-light t-black":t.theme==="light","bg-dark t-white":t.theme==="dark"}])},null,8,["select","class"])],2)}}};exports.default=S;
|
package/dist/prometheus-framework/src/modules/globals/views/components/partials/Header.vue.js
CHANGED
@@ -6,7 +6,7 @@ import { actions as g, getters as N } from "../../../../orders/store/shopcart.js
|
|
6
6
|
import { state as f } from "../../../../auth/views/store/auth.js";
|
7
7
|
/* empty css */
|
8
8
|
import p from "../../../../../components/Button/Button.vue2.js";
|
9
|
-
import V from "../../../../../components/Select/Select.
|
9
|
+
import V from "../../../../../components/Select/Select.vue.js";
|
10
10
|
import D from "../../../../../components/Checkbox/Checkbox.vue.js";
|
11
11
|
import E from "../../../../icons/entities/IconShopcart.vue.js";
|
12
12
|
import M from "../../../../icons/entities/IconProfile.vue.js";
|
package/dist/prometheus-framework/src/modules/orders/components/pages/OrderBackoffice.vue.cjs
CHANGED
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),C=require("vue-router"),O=require("../../../../../node_modules/@vuepic/vue-datepicker/dist/vue-datepicker.cjs");;/* empty css */;/* empty css */const P=require("../../../../components/Popup/Popup.
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),C=require("vue-router"),O=require("../../../../../node_modules/@vuepic/vue-datepicker/dist/vue-datepicker.cjs");;/* empty css */;/* empty css */const P=require("../../../../components/Popup/Popup.vue.cjs"),I=require("../../../icons/entities/IconTime.vue.cjs"),B=require("../blocks/CardOrderItem.vue.cjs"),z=require("../../../organizations/components/blocks/CardOrganization.vue.cjs"),M=require("../../../chats/components/pages/ChatPage.vue.cjs"),F=require("../blocks/StatusHistory.vue.cjs"),L=require("../../../globals/views/store/globals.cjs"),d=require("../../store/orders.cjs"),R=require("../../../products/store/products.cjs"),T=require("../../../organizations/store/organizations.cjs");;/* empty css */const A=require("../../../../../../_virtual/_plugin-vue_export-helper.cjs"),l=b=>(e.pushScopeId("data-v-ad498447"),b=b(),e.popScopeId(),b),H={key:0,class:"pd-thin"},U={key:0,class:"mn-b-thin pos-relative w-100 bg-main radius-big pd-medium"},W={class:"mn-b-small flex-nowrap flex"},j={class:"t-medium p-medium"},G={class:"p-small t-transp"},J={class:"flex-nowrap flex gap-thin pos-relative"},K={class:"bg-light mn-b-thin pd-thin radius-extra flex-nowrap flex"},Q={class:"w-max flex-v-center gap-thin flex-nowrap flex pd-thin radius-small bg-white-transp-20"},X={class:"t-medium mn-r-auto"},Y=l(()=>e.createElementVNode("span",{class:"p-small t-transp"},"Estimated Arrival",-1)),Z=l(()=>e.createElementVNode("br",null,null,-1)),$=l(()=>e.createElementVNode("p",{class:"t-medium p-medium mn-b-thin"}," Positions ",-1)),ee={class:"bg-light pd-small radius-small flex gap-thin flex-column mn-b-semi"},te={key:1,class:"gap-thin cols-2"},se={class:"w-100"},ae={class:"mn-b-thin bg-light w-100 o-hidden radius-medium"},le={class:"pd-small flex-nowrap flex"},re={class:"mn-r-auto"},ne=l(()=>e.createElementVNode("span",{class:"d-block t-medium p-medium"},"Order is",-1)),oe=l(()=>e.createElementVNode("span",{class:"t-lh-075 h2 d-block mn-b-small"},"created",-1)),ie={class:"pd-t-nano pd-b-nano pd-r-thin pd-l-thin radius-extra bg-black t-white w-max"},ce={class:"pd-small cols-2 br-t br-black-transp-10 br-solid"},de=l(()=>e.createElementVNode("p",{class:"w-100 t-medium p-medium"}," Phone ",-1)),ue={class:"w-100 t-right"},me={class:"pd-small cols-2 br-t br-black-transp-10 br-solid"},pe=l(()=>e.createElementVNode("p",{class:"t-medium p-medium"}," Address ",-1)),he={class:"w-100 t-right"},_e={class:"pd-small cols-2 br-t br-black-transp-10 br-solid"},be=l(()=>e.createElementVNode("p",{class:"mn-b-small t-medium p-medium"}," Delivery ",-1)),ve={class:"w-100 t-right mn-b-small"},ge={key:2,class:"t-transp"},fe={class:"bg-light radius-big pd-medium mn-r-bold pd-r-big br-right-dark w-100"},Ne=l(()=>e.createElementVNode("h3",{class:"mn-b-small"},"Order Summary",-1)),Ve={class:"flex gap-thin flex-column mn-b-semi"},Ee={class:"mn-b-medium radius-small br-solid br-1px br-black-transp-10 w-100"},ke={class:"pd-small br-solid br-b br-black-transp-10 flex"},ye=l(()=>e.createElementVNode("p",{class:"mn-r-auto t-transp"},"In total",-1)),we={class:"pd-small br-solid br-b br-black-transp-10 flex"},Se=l(()=>e.createElementVNode("p",{class:"mn-r-auto t-transp"},"Delivery",-1)),xe={class:"pd-small flex-bottom flex"},Ce=l(()=>e.createElementVNode("p",{class:"mn-r-auto t-transp"},"In total to pay",-1)),Be={class:"p-big t-semi"},De=l(()=>e.createElementVNode("h3",{class:"mn-b-small"},"Chat With Us",-1)),qe={__name:"OrderBackoffice",setup(b){C.useRouter();const h=C.useRoute(),s=e.ref(null),v=e.ref(null),n=e.ref(null),o=["created","confirmed","packing","in delivery","delivered"],V=["Created","Confirmed","Packing","In Delivery","Delivered"],g=t=>o.slice(t).includes(s.value.status),f=e.ref(!1),E=e.ref(null),N=e.ref([]);function D(t){f.value=!0,typeof t=="number"&&(E.value=t)}function k(){f.value=!1,E.value=null}e.onMounted(async()=>{var a,r;s.value=await d.actions.read({_id:h.params.order}),s.value=s.value[0],v.value=await R.actions.read({organization:s.value.owner.target._id,limit:1e3}),console.log(v.value);const t=v.value.reduce((u,m)=>(u[m._id]=m,u),{});console.log(t),N.value=s.value.positions.map(({_id:u,quantity:m})=>{const p=t[u];return{name:p.name,images:p.images,price:p.price,_id:p._id,quantity:m}}),n.value=await T.actions.read({_id:(a=s.value)==null?void 0:a.owner.target._id,location:(r=L.state.position)==null?void 0:r.location})});let y=e.computed(()=>{var t;return Number((t=s.value)==null?void 0:t.positions.reduce((a,r)=>a+r.price*r.quantity,0))});e.computed(()=>{var t;return Number((t=s.value)==null?void 0:t.positions.reduce((a,r)=>a+r.quantity,0))});function _(t){const a=o.indexOf(t);return a!==-1&&a+1<o.length?o[a+1]:null}function w(t){const a=o.indexOf(t);return t?V[a]:""}async function q(){const t=_(d.state.current.status);t?(d.state.current.status=t,await d.actions.update(d.state.current)):console.error("Next status is void. Must handle somehow."),k()}return(t,a)=>{var r,u,m,p,S,x;return s.value&&n.value?(e.openBlock(),e.createElementBlock("div",H,[s.value?(e.openBlock(),e.createElementBlock("div",U,[e.createElementVNode("div",W,[e.createElementVNode("p",j,[e.createTextVNode(" Order No: "),e.createElementVNode("span",G,"#"+e.toDisplayString(s.value._id),1)])]),e.createElementVNode("div",J,[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(o,(i,c)=>e.createElementVNode("div",{key:c,class:"w-20"},[e.createElementVNode("div",{class:e.normalizeClass(["bg-light br-anim br-glow radius-extra h-1r w-100",{"br-glow-anim":g(c)},{"t-transp":!g(c)},{blink:s.value.status===o[c]&&_(s.value.status)}])},null,2),e.createElementVNode("div",{class:e.normalizeClass([{"t-transp":!g(c)},"mn-t-thin p-small t-medium uppercase"])},e.toDisplayString(V[c]),3)])),64))])])):e.createCommentVNode("",!0),e.createElementVNode("div",K,[e.createElementVNode("div",Q,[e.createVNode(I.default,{class:"i-semi t-transp",fill:"rgb(var(--black)"}),e.createElementVNode("p",X,[Y,Z,e.createTextVNode(e.toDisplayString(t.formatDate(s.value.deadline)),1)])]),_(s.value.status)&&e.unref(h).name==="Order Edit"?(e.openBlock(),e.createElementBlock("button",{key:0,onClick:D,class:"mn-l-auto bg-black t-white button"}," Mark as "+e.toDisplayString(w(_(s.value.status))),1)):e.createCommentVNode("",!0)]),e.createVNode(P.default,{title:"Change status",onClosePopup:k,isPopupOpen:f.value,class:"bg-white w-min-30r w-max-30r radius-big pd-big"},{default:e.withCtx(()=>[e.createVNode(e.unref(O.default),{modelValue:s.value.deadline,"onUpdate:modelValue":a[0]||(a[0]=i=>s.value.deadline=i),"hide-navigation":["calendar"],flow:["time"],class:"z-index-3 bg-light radius-small pd-small mn-b-thin mn-b-semi"},null,8,["modelValue"]),$,e.createElementVNode("ul",ee,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(N.value,(i,c)=>(e.openBlock(),e.createBlock(B.default,{key:i._id,editable:!1,product:i},null,8,["product"]))),128))]),e.createElementVNode("button",{onClick:q,class:"w-100 bg-black-small t-white button"},e.toDisplayString("Confirm Changing to "+w(_(s.value.status))),1)]),_:1},8,["isPopupOpen"]),s.value?(e.openBlock(),e.createElementBlock("div",te,[e.createElementVNode("div",se,[n.value[0]?(e.openBlock(),e.createBlock(z.default,{key:0,organization:n.value[0],showRating:!0,showFollowers:!1,showProducts:!1,class:"bg-light mn-b-thin w-100 o-hidden radius-big pd-small"},null,8,["organization"])):e.createCommentVNode("",!0),e.createElementVNode("div",ae,[e.createElementVNode("div",le,[e.createElementVNode("div",re,[ne,oe,e.createElementVNode("p",ie,e.toDisplayString(t.formatDate(s.value.createdAt)),1)])]),e.createElementVNode("div",ce,[de,e.createElementVNode("p",ue,e.toDisplayString(((r=s.value.customer.target)==null?void 0:r.number)||"Not specified"),1)]),e.createElementVNode("div",me,[pe,e.createElementVNode("p",he,e.toDisplayString(s.value.delivery.address?s.value.delivery.address.slice(0,64):"Not specified"),1)]),e.createElementVNode("div",_e,[be,e.createElementVNode("p",ve,e.toDisplayString(s.value.delivery.type?s.value.delivery.type:"Not specified"),1)])]),d.state.current.status_history?(e.openBlock(),e.createBlock(F.default,{key:1,statuses:o,statusHistory:d.state.current.status_history,statusCurrent:d.state.current.status,edit:e.unref(h).name==="Order Edit"},null,8,["statusHistory","statusCurrent","edit"])):e.createCommentVNode("",!0),t.payment&&t.payment.Status==="CONFIRMED"?(e.openBlock(),e.createElementBlock("span",ge,"Paid")):e.createCommentVNode("",!0)]),e.createElementVNode("div",fe,[Ne,e.createElementVNode("ul",Ve,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(N.value,(i,c)=>(e.openBlock(),e.createBlock(B.default,{key:i._id,editable:!1,product:i},null,8,["product"]))),128))]),e.createElementVNode("div",Ee,[e.createElementVNode("div",ke,[ye,e.createElementVNode("p",null,e.toDisplayString(e.unref(y))+" "+e.toDisplayString(t.returnCurrency()),1)]),e.createElementVNode("div",we,[Se,e.createElementVNode("p",null,e.toDisplayString(t.returnCurrency())+" "+e.toDisplayString(Math.trunc(100+20*((u=n.value[0])==null?void 0:u.distance)-7,5*(((m=n.value[0])==null?void 0:m.distance)/10))),1)]),e.createElementVNode("div",xe,[Ce,e.createElementVNode("p",Be,e.toDisplayString(t.returnCurrency())+" "+e.toDisplayString(Math.trunc(100+20*((p=n.value[0])==null?void 0:p.distance)-7,5*(((S=n.value[0])==null?void 0:S.distance)/10))+e.unref(y)),1)])]),De,e.createVNode(M.default,{username:e.unref(h).name==="Order Status"?((x=s.value.user)==null?void 0:x.name)||"User":"Weeder Support",chatID:e.unref(h).params.order,class:"radius-semi bg-white o-hidden"},null,8,["username","chatID"])])])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)}}},Oe=A.default(qe,[["__scopeId","data-v-ad498447"]]);exports.default=Oe;
|
package/dist/prometheus-framework/src/modules/orders/components/pages/OrderBackoffice.vue.js
CHANGED
@@ -3,7 +3,7 @@ import { useRouter as K, useRoute as Q } from "vue-router";
|
|
3
3
|
import X from "../../../../../node_modules/@vuepic/vue-datepicker/dist/vue-datepicker.js";
|
4
4
|
/* empty css */
|
5
5
|
/* empty css */
|
6
|
-
import Y from "../../../../components/Popup/Popup.
|
6
|
+
import Y from "../../../../components/Popup/Popup.vue.js";
|
7
7
|
import Z from "../../../icons/entities/IconTime.vue.js";
|
8
8
|
import L from "../blocks/CardOrderItem.vue.js";
|
9
9
|
import tt from "../../../organizations/components/blocks/CardOrganization.vue.js";
|