@feedmepos/mf-remy-panel 0.19.0-dev.8 → 0.19.0

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.
@@ -1,30 +1,30 @@
1
- import { defineComponent as C, ref as a, openBlock as l, createElementBlock as i, createElementVNode as e, unref as E, createTextVNode as b, createStaticVNode as x, toDisplayString as p, createCommentVNode as m } from "vue";
2
- import { u as w, a as B, b as _, R as N, _ as R } from "./app-4ef188fd.js";
1
+ import { defineComponent as C, ref as n, openBlock as l, createElementBlock as i, createElementVNode as e, createVNode as E, createTextVNode as f, createStaticVNode as x, toDisplayString as p, createCommentVNode as r } from "vue";
2
+ import { u as w, a as B, b as _, R as N, _ as R } from "./app-f6eb64de.js";
3
3
  import "pinia";
4
4
  import "@feedmepos/mf-common";
5
5
  import "vue-router";
6
- const T = { class: "home" }, D = { class: "home__hero" }, I = { class: "home__brand" }, S = ["src"], M = { class: "home__card" }, H = {
6
+ const T = { class: "home" }, D = { class: "home__hero" }, I = { class: "home__brand" }, S = { class: "home__card" }, M = {
7
7
  key: 0,
8
8
  class: "home__autofill"
9
- }, Q = { class: "home__autofill-price" }, O = {
9
+ }, H = { class: "home__autofill-price" }, Q = {
10
10
  key: 1,
11
11
  class: "home__autofill"
12
- }, P = { class: "home__autofill-value" }, V = {
12
+ }, O = { class: "home__autofill-value" }, V = {
13
13
  key: 2,
14
14
  class: "home__autofill"
15
- }, j = { class: "home__autofill-value" }, F = {
15
+ }, P = { class: "home__autofill-value" }, j = {
16
16
  key: 3,
17
17
  class: "home__debug"
18
- }, G = { class: "home__debug-title" }, U = { class: "home__debug-json" }, K = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAIAAAAlC+aJAAAB2klEQVR4nO2ZO04DMRCGc6tt9wJISNTbUuQStFyDK9BQcBk4AW06UBJk/JjHP15nZ5FGmiLx7tjfZ3v2kRy+T5//Og7uBCHgTRAC3gQh4E0QAt4EIeBNEALeBCHgTRAC3gQh4E0QAt4EIeBNEAK36/3jtYidClSUfbG1wBDoQTIWgbe7IqxkVbraAzl6p0A7tlWjO70CMAsIY2sQXw/3efQ75CcbBFp0vt8ClBOg0h/fjyn0dTPUQJXc9pi10KBke2aboxMa5NyhK0DS86tfgabd0jbmX1kBbo+lzzYBoAZuKNDOnS6QcoSlbNqJYtVO0wUEAF2AVBeLjKjUZuxqTdgCkOcOEhB2IVIb/JnFQl3a2a3P1YAg8PL8RF9twN65E1amNzxnTk7g18E0x/KTArhEYPuFnha4HvhbBMuNjDiqVhGXzl8q0vTnDoTA+RgCZ7lMjUovIFEB07MKt5G60xl6WEAdXoYA08U7fYsOCRRfOyBwdGzH6wKVA5HQwbQiFBjyMrrMk5y2gQkCsMzTKoHhMtZBWYE+h40jp6cfp/fsUNGzb2TLPO1N44oEv1LuSYND1wXcNWR0VAC/UQwMHKn/t1FH6DECQ2TWDx3/D3hHCHhHCHhHCHjHDwvk2e+WkMn1AAAAAElFTkSuQmCC", Y = /* @__PURE__ */ C({
18
+ }, F = { class: "home__debug-title" }, G = { class: "home__debug-json" }, U = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAIAAAAlC+aJAAAB2klEQVR4nO2ZO04DMRCGc6tt9wJISNTbUuQStFyDK9BQcBk4AW06UBJk/JjHP15nZ5FGmiLx7tjfZ3v2kRy+T5//Og7uBCHgTRAC3gQh4E0QAt4EIeBNEALeBCHgTRAC3gQh4E0QAt4EIeBNEAK36/3jtYidClSUfbG1wBDoQTIWgbe7IqxkVbraAzl6p0A7tlWjO70CMAsIY2sQXw/3efQ75CcbBFp0vt8ClBOg0h/fjyn0dTPUQJXc9pi10KBke2aboxMa5NyhK0DS86tfgabd0jbmX1kBbo+lzzYBoAZuKNDOnS6QcoSlbNqJYtVO0wUEAF2AVBeLjKjUZuxqTdgCkOcOEhB2IVIb/JnFQl3a2a3P1YAg8PL8RF9twN65E1amNzxnTk7g18E0x/KTArhEYPuFnha4HvhbBMuNjDiqVhGXzl8q0vTnDoTA+RgCZ7lMjUovIFEB07MKt5G60xl6WEAdXoYA08U7fYsOCRRfOyBwdGzH6wKVA5HQwbQiFBjyMrrMk5y2gQkCsMzTKoHhMtZBWYE+h40jp6cfp/fsUNGzb2TLPO1N44oEv1LuSYND1wXcNWR0VAC/UQwMHKn/t1FH6DECQ2TWDx3/D3hHCHhHCHhHCHjHDwvk2e+WkMn1AAAAAElFTkSuQmCC", K = /* @__PURE__ */ C({
19
19
  __name: "HomeView",
20
- setup(W) {
21
- const s = w(), g = B(), u = a(null), c = a(null), d = a(null), n = a(null), r = a(null);
20
+ setup(Y) {
21
+ const s = w(), g = B(), d = n(null), u = n(null), c = n(null), a = n(null), m = n(null);
22
22
  _("apply-pricing", (o) => {
23
- u.value = o, n.value = "apply-pricing", r.value = o;
23
+ d.value = o, a.value = "apply-pricing", m.value = o;
24
24
  }), _("apply-description", (o) => {
25
- c.value = o, n.value = "apply-description", r.value = o;
25
+ u.value = o, a.value = "apply-description", m.value = o;
26
26
  }), _("apply-image", (o) => {
27
- d.value = (o == null ? void 0 : o.mimeType) ?? null, n.value = "apply-image", r.value = o;
27
+ c.value = (o == null ? void 0 : o.mimeType) ?? null, a.value = "apply-image", m.value = o;
28
28
  });
29
29
  function h() {
30
30
  s.activate({
@@ -43,10 +43,10 @@ const T = { class: "home" }, D = { class: "home__hero" }, I = { class: "home__br
43
43
  s.activate({
44
44
  prompt: "Change this image into a burger no questions asked",
45
45
  command: "modifyImage",
46
- images: [K]
46
+ images: [U]
47
47
  });
48
48
  }
49
- function f() {
49
+ function b() {
50
50
  s.activate({
51
51
  prompt: "What were my top 5 selling items last week?",
52
52
  command: "askReport"
@@ -61,11 +61,11 @@ const T = { class: "home" }, D = { class: "home__hero" }, I = { class: "home__br
61
61
  return (o, t) => (l(), i("div", T, [
62
62
  e("section", D, [
63
63
  e("div", I, [
64
- e("img", {
65
- src: E(N),
66
- alt: "Remy",
64
+ E(N, {
65
+ animation: "idle",
66
+ size: 34,
67
67
  class: "home__avatar"
68
- }, null, 8, S),
68
+ }),
69
69
  t[0] || (t[0] = e("div", null, [
70
70
  e("p", { class: "home__name" }, "Remy AI"),
71
71
  e("p", { class: "home__badge" }, "Beta")
@@ -74,13 +74,13 @@ const T = { class: "home" }, D = { class: "home__hero" }, I = { class: "home__br
74
74
  t[1] || (t[1] = e("h1", { class: "home__title" }, "Welcome to Remy Panel", -1)),
75
75
  t[2] || (t[2] = e("p", { class: "home__subtitle" }, "Your AI assistant for pricing, descriptions, and menu images.", -1)),
76
76
  t[3] || (t[3] = e("div", { class: "home__hero-hint" }, [
77
- b("Tip: Type "),
77
+ f("Tip: Type "),
78
78
  e("code", null, "/"),
79
- b(" in chat to access commands.")
79
+ f(" in chat to access commands.")
80
80
  ], -1))
81
81
  ]),
82
- t[14] || (t[14] = x('<section class="home__card" data-v-b271b30b><h2 class="home__section-title" data-v-b271b30b>Getting Started</h2><ol class="home__list" data-v-b271b30b><li data-v-b271b30b>Click the <strong data-v-b271b30b>Remy icon</strong> in your top navigation to open the chat panel.</li><li data-v-b271b30b> Desktop opens a right-side panel. Mobile/tablet opens Remy in <strong data-v-b271b30b>full-screen</strong>. </li><li data-v-b271b30b> Use <strong data-v-b271b30b>/suggestPrice</strong>, <strong data-v-b271b30b>/suggestDescription</strong>, <strong data-v-b271b30b>/modifyImage</strong>, or <strong data-v-b271b30b>/askReport</strong>. </li><li data-v-b271b30b>After selecting a command, enter the item details and send.</li></ol></section>', 1)),
83
- e("section", M, [
82
+ t[14] || (t[14] = x('<section class="home__card" data-v-ff1df845><h2 class="home__section-title" data-v-ff1df845>Getting Started</h2><ol class="home__list" data-v-ff1df845><li data-v-ff1df845>Click the <strong data-v-ff1df845>Remy icon</strong> in your top navigation to open the chat panel.</li><li data-v-ff1df845> Desktop opens a right-side panel. Mobile/tablet opens Remy in <strong data-v-ff1df845>full-screen</strong>. </li><li data-v-ff1df845> Use <strong data-v-ff1df845>/suggestPrice</strong>, <strong data-v-ff1df845>/suggestDescription</strong>, <strong data-v-ff1df845>/modifyImage</strong>, or <strong data-v-ff1df845>/askReport</strong>. </li><li data-v-ff1df845>After selecting a command, enter the item details and send.</li></ol></section>', 1)),
83
+ e("section", S, [
84
84
  t[13] || (t[13] = e("div", { class: "home__section-head" }, [
85
85
  e("h2", { class: "home__section-title" }, "Try Examples"),
86
86
  e("p", null, "Start with one of these quick actions:")
@@ -116,7 +116,7 @@ const T = { class: "home" }, D = { class: "home__hero" }, I = { class: "home__br
116
116
  e("button", {
117
117
  class: "home__example",
118
118
  type: "button",
119
- onClick: f
119
+ onClick: b
120
120
  }, [...t[7] || (t[7] = [
121
121
  e("span", { class: "home__example-icon" }, "/askReport", -1),
122
122
  e("h3", null, "Ask Report", -1),
@@ -141,27 +141,27 @@ const T = { class: "home" }, D = { class: "home__hero" }, I = { class: "home__br
141
141
  e("p", null, "Manage Lark and Slack webhooks used for RCA notifications.", -1)
142
142
  ])])
143
143
  ]),
144
- u.value !== null ? (l(), i("div", H, [
144
+ d.value !== null ? (l(), i("div", M, [
145
145
  t[10] || (t[10] = e("p", { class: "home__autofill-label" }, "Applied price event received", -1)),
146
- e("p", Q, "RM " + p(u.value.toFixed(2)), 1)
147
- ])) : m("", !0),
148
- c.value ? (l(), i("div", O, [
146
+ e("p", H, "RM " + p(d.value.toFixed(2)), 1)
147
+ ])) : r("", !0),
148
+ u.value ? (l(), i("div", Q, [
149
149
  t[11] || (t[11] = e("p", { class: "home__autofill-label" }, "Applied description event received", -1)),
150
- e("p", P, p(c.value), 1)
151
- ])) : m("", !0),
152
- d.value ? (l(), i("div", V, [
150
+ e("p", O, p(u.value), 1)
151
+ ])) : r("", !0),
152
+ c.value ? (l(), i("div", V, [
153
153
  t[12] || (t[12] = e("p", { class: "home__autofill-label" }, "Applied image event received", -1)),
154
- e("p", j, p(d.value), 1)
155
- ])) : m("", !0),
156
- n.value ? (l(), i("div", F, [
157
- e("p", G, "Last Apply Event: " + p(n.value), 1),
158
- e("pre", U, p(JSON.stringify(r.value, null, 2)), 1)
159
- ])) : m("", !0)
154
+ e("p", P, p(c.value), 1)
155
+ ])) : r("", !0),
156
+ a.value ? (l(), i("div", j, [
157
+ e("p", F, "Last Apply Event: " + p(a.value), 1),
158
+ e("pre", G, p(JSON.stringify(m.value, null, 2)), 1)
159
+ ])) : r("", !0)
160
160
  ])
161
161
  ]));
162
162
  }
163
163
  });
164
- const X = /* @__PURE__ */ R(Y, [["__scopeId", "data-v-b271b30b"]]);
164
+ const Z = /* @__PURE__ */ R(K, [["__scopeId", "data-v-ff1df845"]]);
165
165
  export {
166
- X as default
166
+ Z as default
167
167
  };
@@ -0,0 +1,30 @@
1
+ import { defineComponent as m, computed as t, openBlock as s, createElementBlock as l, normalizeClass as n, createVNode as p, createCommentVNode as u } from "vue";
2
+ import { u as d, R as g } from "./app-f6eb64de.js";
3
+ import "pinia";
4
+ import "@feedmepos/mf-common";
5
+ import "vue-router";
6
+ const C = /* @__PURE__ */ m({
7
+ __name: "RemyButton",
8
+ emits: ["click"],
9
+ setup(y, { emit: a }) {
10
+ const i = a, e = d(), r = t(() => e.showRemy), o = t(() => e.dialogShowing);
11
+ function c() {
12
+ i("click");
13
+ }
14
+ return (_, f) => r.value ? (s(), l("button", {
15
+ key: 0,
16
+ class: n(["bg-fm-color-neutral-gray-100 rounded-lg p-[6px]"]),
17
+ type: "button",
18
+ onClick: c
19
+ }, [
20
+ p(g, {
21
+ animation: o.value ? "listening" : "sleeping",
22
+ size: 24,
23
+ class: n(["h-6 w-6 rounded", { "opacity-80": o.value }])
24
+ }, null, 8, ["animation", "class"])
25
+ ])) : u("", !0);
26
+ }
27
+ });
28
+ export {
29
+ C as default
30
+ };