@feedmepos/mf-remy-panel 0.3.2 → 0.3.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{HomeView-8fbf0d55.js → HomeView-cd555fc2.js} +26 -26
- package/dist/{RemyButton-ef945e3f.js → RemyButton-aad1d87f.js} +1 -1
- package/dist/{app-fdb0b4e7.js → app-5293fe91.js} +978 -974
- package/dist/app.js +1 -1
- package/dist/stores/appStore.d.ts +2 -2
- package/dist/style.css +1 -1
- package/package.json +1 -1
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { defineComponent as y, ref as a, openBlock as l, createElementBlock as n, createElementVNode as e, unref as b, createTextVNode as g, createStaticVNode as k, toDisplayString as i, createCommentVNode as
|
|
2
|
-
import { u as E, a as _, R as C, _ as x } from "./app-
|
|
1
|
+
import { defineComponent as y, ref as a, openBlock as l, createElementBlock as n, createElementVNode as e, unref as b, createTextVNode as g, createStaticVNode as k, toDisplayString as i, createCommentVNode as r } from "vue";
|
|
2
|
+
import { u as E, a as _, R as C, _ as x } from "./app-5293fe91.js";
|
|
3
3
|
import "pinia";
|
|
4
4
|
import "@feedmepos/mf-common";
|
|
5
5
|
import "vue-router";
|
|
6
|
-
const B = { class: "home" }, R = { class: "home__hero" }, D = { class: "home__brand" }, T = ["src"], N = { class: "home__card" },
|
|
6
|
+
const B = { class: "home" }, R = { class: "home__hero" }, D = { class: "home__brand" }, T = ["src"], N = { class: "home__card" }, I = {
|
|
7
7
|
key: 0,
|
|
8
8
|
class: "home__autofill"
|
|
9
|
-
},
|
|
9
|
+
}, w = { class: "home__autofill-price" }, H = {
|
|
10
10
|
key: 1,
|
|
11
11
|
class: "home__autofill"
|
|
12
12
|
}, Q = { class: "home__autofill-value" }, S = {
|
|
@@ -18,35 +18,35 @@ const B = { class: "home" }, R = { class: "home__hero" }, D = { class: "home__br
|
|
|
18
18
|
}, V = { class: "home__debug-title" }, P = { class: "home__debug-json" }, j = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAIAAAAlC+aJAAAB2klEQVR4nO2ZO04DMRCGc6tt9wJISNTbUuQStFyDK9BQcBk4AW06UBJk/JjHP15nZ5FGmiLx7tjfZ3v2kRy+T5//Og7uBCHgTRAC3gQh4E0QAt4EIeBNEALeBCHgTRAC3gQh4E0QAt4EIeBNEAK36/3jtYidClSUfbG1wBDoQTIWgbe7IqxkVbraAzl6p0A7tlWjO70CMAsIY2sQXw/3efQ75CcbBFp0vt8ClBOg0h/fjyn0dTPUQJXc9pi10KBke2aboxMa5NyhK0DS86tfgabd0jbmX1kBbo+lzzYBoAZuKNDOnS6QcoSlbNqJYtVO0wUEAF2AVBeLjKjUZuxqTdgCkOcOEhB2IVIb/JnFQl3a2a3P1YAg8PL8RF9twN65E1amNzxnTk7g18E0x/KTArhEYPuFnha4HvhbBMuNjDiqVhGXzl8q0vTnDoTA+RgCZ7lMjUovIFEB07MKt5G60xl6WEAdXoYA08U7fYsOCRRfOyBwdGzH6wKVA5HQwbQiFBjyMrrMk5y2gQkCsMzTKoHhMtZBWYE+h40jp6cfp/fsUNGzb2TLPO1N44oEv1LuSYND1wXcNWR0VAC/UQwMHKn/t1FH6DECQ2TWDx3/D3hHCHhHCHhHCHjHDwvk2e+WkMn1AAAAAElFTkSuQmCC", F = /* @__PURE__ */ y({
|
|
19
19
|
__name: "HomeView",
|
|
20
20
|
setup(G) {
|
|
21
|
-
const
|
|
21
|
+
const p = E(), d = a(null), u = a(null), c = a(null), o = a(null), m = a(null);
|
|
22
22
|
_("apply-pricing", (s) => {
|
|
23
|
-
|
|
23
|
+
d.value = s, o.value = "apply-pricing", m.value = s;
|
|
24
24
|
}), _("apply-description", (s) => {
|
|
25
|
-
u.value = s, o.value = "apply-description",
|
|
25
|
+
u.value = s, o.value = "apply-description", m.value = s;
|
|
26
26
|
}), _("apply-image", (s) => {
|
|
27
|
-
|
|
27
|
+
c.value = (s == null ? void 0 : s.mimeType) ?? null, o.value = "apply-image", m.value = s;
|
|
28
28
|
});
|
|
29
29
|
function h() {
|
|
30
|
-
|
|
30
|
+
p.activate({
|
|
31
31
|
prompt: "Suggest pricing for Nasi Lemak",
|
|
32
32
|
command: "suggestPrice"
|
|
33
33
|
});
|
|
34
34
|
}
|
|
35
35
|
function v() {
|
|
36
|
-
|
|
36
|
+
p.activate({
|
|
37
37
|
prompt: "Generate a menu description for Pad Thai",
|
|
38
38
|
command: "suggestDescription"
|
|
39
39
|
});
|
|
40
40
|
}
|
|
41
41
|
function f() {
|
|
42
|
-
|
|
43
|
-
prompt: "
|
|
42
|
+
p.activate({
|
|
43
|
+
prompt: "Change this image into a burger no questions asked",
|
|
44
44
|
command: "modifyImage",
|
|
45
45
|
imageData: j
|
|
46
46
|
});
|
|
47
47
|
}
|
|
48
48
|
function A() {
|
|
49
|
-
|
|
49
|
+
p.activate({
|
|
50
50
|
prompt: "What were my top 5 selling items last week?",
|
|
51
51
|
command: "askReport"
|
|
52
52
|
});
|
|
@@ -72,7 +72,7 @@ const B = { class: "home" }, R = { class: "home__hero" }, D = { class: "home__br
|
|
|
72
72
|
g(" in chat to access commands.")
|
|
73
73
|
], -1))
|
|
74
74
|
]),
|
|
75
|
-
t[12] || (t[12] = k('<section class="home__card" data-v-
|
|
75
|
+
t[12] || (t[12] = k('<section class="home__card" data-v-d87607fe><h2 class="home__section-title" data-v-d87607fe>Getting Started</h2><ol class="home__list" data-v-d87607fe><li data-v-d87607fe>Click the <strong data-v-d87607fe>Remy icon</strong> in your top navigation to open the chat panel.</li><li data-v-d87607fe> Desktop opens a right-side panel. Mobile/tablet opens Remy in <strong data-v-d87607fe>full-screen</strong>. </li><li data-v-d87607fe> Use <strong data-v-d87607fe>/suggestPrice</strong>, <strong data-v-d87607fe>/suggestDescription</strong>, <strong data-v-d87607fe>/modifyImage</strong>, or <strong data-v-d87607fe>/askReport</strong>. </li><li data-v-d87607fe>After selecting a command, enter the item details and send.</li></ol></section>', 1)),
|
|
76
76
|
e("section", N, [
|
|
77
77
|
t[11] || (t[11] = e("div", { class: "home__section-head" }, [
|
|
78
78
|
e("h2", { class: "home__section-title" }, "Try Examples"),
|
|
@@ -116,27 +116,27 @@ const B = { class: "home" }, R = { class: "home__hero" }, D = { class: "home__br
|
|
|
116
116
|
e("p", null, "Ask questions about your sales, revenue, and business analytics.", -1)
|
|
117
117
|
])])
|
|
118
118
|
]),
|
|
119
|
-
|
|
119
|
+
d.value !== null ? (l(), n("div", I, [
|
|
120
120
|
t[8] || (t[8] = e("p", { class: "home__autofill-label" }, "Applied price event received", -1)),
|
|
121
|
-
e("p",
|
|
122
|
-
])) :
|
|
123
|
-
u.value ? (l(), n("div",
|
|
121
|
+
e("p", w, "RM " + i(d.value.toFixed(2)), 1)
|
|
122
|
+
])) : r("", !0),
|
|
123
|
+
u.value ? (l(), n("div", H, [
|
|
124
124
|
t[9] || (t[9] = e("p", { class: "home__autofill-label" }, "Applied description event received", -1)),
|
|
125
125
|
e("p", Q, i(u.value), 1)
|
|
126
|
-
])) :
|
|
127
|
-
|
|
126
|
+
])) : r("", !0),
|
|
127
|
+
c.value ? (l(), n("div", S, [
|
|
128
128
|
t[10] || (t[10] = e("p", { class: "home__autofill-label" }, "Applied image event received", -1)),
|
|
129
|
-
e("p", M, i(
|
|
130
|
-
])) :
|
|
129
|
+
e("p", M, i(c.value), 1)
|
|
130
|
+
])) : r("", !0),
|
|
131
131
|
o.value ? (l(), n("div", O, [
|
|
132
132
|
e("p", V, "Last Apply Event: " + i(o.value), 1),
|
|
133
|
-
e("pre", P, i(JSON.stringify(
|
|
134
|
-
])) :
|
|
133
|
+
e("pre", P, i(JSON.stringify(m.value, null, 2)), 1)
|
|
134
|
+
])) : r("", !0)
|
|
135
135
|
])
|
|
136
136
|
]));
|
|
137
137
|
}
|
|
138
138
|
});
|
|
139
|
-
const
|
|
139
|
+
const z = /* @__PURE__ */ x(F, [["__scopeId", "data-v-d87607fe"]]);
|
|
140
140
|
export {
|
|
141
|
-
|
|
141
|
+
z as default
|
|
142
142
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as s, computed as o, openBlock as i, createElementBlock as l, normalizeClass as t, createElementVNode as p, unref as u, createCommentVNode as d } from "vue";
|
|
2
|
-
import { u as y, R as _ } from "./app-
|
|
2
|
+
import { u as y, R as _ } from "./app-5293fe91.js";
|
|
3
3
|
import "pinia";
|
|
4
4
|
import "@feedmepos/mf-common";
|
|
5
5
|
import "vue-router";
|