@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.
@@ -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 m } from "vue";
2
- import { u as E, a as _, R as C, _ as x } from "./app-fdb0b4e7.js";
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" }, H = {
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
- }, I = { class: "home__autofill-price" }, w = {
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 c = E(), r = a(null), u = a(null), d = a(null), o = a(null), p = a(null);
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
- r.value = s, o.value = "apply-pricing", p.value = s;
23
+ d.value = s, o.value = "apply-pricing", m.value = s;
24
24
  }), _("apply-description", (s) => {
25
- u.value = s, o.value = "apply-description", p.value = s;
25
+ u.value = s, o.value = "apply-description", m.value = s;
26
26
  }), _("apply-image", (s) => {
27
- d.value = (s == null ? void 0 : s.mimeType) ?? null, o.value = "apply-image", p.value = s;
27
+ c.value = (s == null ? void 0 : s.mimeType) ?? null, o.value = "apply-image", m.value = s;
28
28
  });
29
29
  function h() {
30
- c.activate({
30
+ p.activate({
31
31
  prompt: "Suggest pricing for Nasi Lemak",
32
32
  command: "suggestPrice"
33
33
  });
34
34
  }
35
35
  function v() {
36
- c.activate({
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
- c.activate({
43
- prompt: "Help me generate an image for my menu item",
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
- c.activate({
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-83f779cc><h2 class="home__section-title" data-v-83f779cc>Getting Started</h2><ol class="home__list" data-v-83f779cc><li data-v-83f779cc>Click the <strong data-v-83f779cc>Remy icon</strong> in your top navigation to open the chat panel.</li><li data-v-83f779cc> Desktop opens a right-side panel. Mobile/tablet opens Remy in <strong data-v-83f779cc>full-screen</strong>. </li><li data-v-83f779cc> Use <strong data-v-83f779cc>/suggestPrice</strong>, <strong data-v-83f779cc>/suggestDescription</strong>, <strong data-v-83f779cc>/modifyImage</strong>, or <strong data-v-83f779cc>/askReport</strong>. </li><li data-v-83f779cc>After selecting a command, enter the item details and send.</li></ol></section>', 1)),
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
- r.value !== null ? (l(), n("div", H, [
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", I, "RM " + i(r.value.toFixed(2)), 1)
122
- ])) : m("", !0),
123
- u.value ? (l(), n("div", w, [
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
- ])) : m("", !0),
127
- d.value ? (l(), n("div", S, [
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(d.value), 1)
130
- ])) : m("", !0),
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(p.value, null, 2)), 1)
134
- ])) : m("", !0)
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 J = /* @__PURE__ */ x(F, [["__scopeId", "data-v-83f779cc"]]);
139
+ const z = /* @__PURE__ */ x(F, [["__scopeId", "data-v-d87607fe"]]);
140
140
  export {
141
- J as default
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-fdb0b4e7.js";
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";