@feedmepos/mf-remy-panel 0.10.0-dev.1 → 0.11.0-dev.1

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,5 +1,5 @@
1
- import { defineComponent as b, ref as a, openBlock as l, createElementBlock as n, createElementVNode as e, unref as y, createTextVNode as g, createStaticVNode as k, toDisplayString as i, createCommentVNode as c } from "vue";
2
- import { u as E, a as _, R as C, _ as x } from "./app-97cb6280.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-e4da47f5.js";
3
3
  import "pinia";
4
4
  import "@feedmepos/mf-common";
5
5
  import "vue-router";
@@ -15,21 +15,22 @@ const B = { class: "home" }, R = { class: "home__hero" }, T = { class: "home__br
15
15
  }, M = { class: "home__autofill-value" }, O = {
16
16
  key: 3,
17
17
  class: "home__debug"
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__ */ b({
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 p = E(), r = a(null), u = a(null), d = a(null), o = a(null), m = a(null);
21
+ const p = E(), u = a(null), c = a(null), d = a(null), o = a(null), m = a(null);
22
22
  _("apply-pricing", (s) => {
23
- r.value = s, o.value = "apply-pricing", m.value = s;
23
+ u.value = s, o.value = "apply-pricing", m.value = s;
24
24
  }), _("apply-description", (s) => {
25
- u.value = s, o.value = "apply-description", m.value = s;
25
+ c.value = s, o.value = "apply-description", m.value = s;
26
26
  }), _("apply-image", (s) => {
27
27
  d.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
- command: "suggestPrice"
32
+ command: "suggestPrice",
33
+ fullscreen: !0
33
34
  });
34
35
  }
35
36
  function v() {
@@ -38,14 +39,14 @@ const B = { class: "home" }, R = { class: "home__hero" }, T = { class: "home__br
38
39
  command: "suggestDescription"
39
40
  });
40
41
  }
41
- function f() {
42
+ function A() {
42
43
  p.activate({
43
44
  prompt: "Change this image into a burger no questions asked",
44
45
  command: "modifyImage",
45
46
  images: [j]
46
47
  });
47
48
  }
48
- function A() {
49
+ function f() {
49
50
  p.activate({
50
51
  prompt: "What were my top 5 selling items last week?",
51
52
  command: "askReport"
@@ -55,7 +56,7 @@ const B = { class: "home" }, R = { class: "home__hero" }, T = { class: "home__br
55
56
  e("section", R, [
56
57
  e("div", T, [
57
58
  e("img", {
58
- src: y(C),
59
+ src: b(C),
59
60
  alt: "Remy",
60
61
  class: "home__avatar"
61
62
  }, null, 8, D),
@@ -72,7 +73,7 @@ const B = { class: "home" }, R = { class: "home__hero" }, T = { class: "home__br
72
73
  g(" in chat to access commands.")
73
74
  ], -1))
74
75
  ]),
75
- t[12] || (t[12] = k('<section class="home__card" data-v-bf1c4726><h2 class="home__section-title" data-v-bf1c4726>Getting Started</h2><ol class="home__list" data-v-bf1c4726><li data-v-bf1c4726>Click the <strong data-v-bf1c4726>Remy icon</strong> in your top navigation to open the chat panel.</li><li data-v-bf1c4726> Desktop opens a right-side panel. Mobile/tablet opens Remy in <strong data-v-bf1c4726>full-screen</strong>. </li><li data-v-bf1c4726> Use <strong data-v-bf1c4726>/suggestPrice</strong>, <strong data-v-bf1c4726>/suggestDescription</strong>, <strong data-v-bf1c4726>/modifyImage</strong>, or <strong data-v-bf1c4726>/askReport</strong>. </li><li data-v-bf1c4726>After selecting a command, enter the item details and send.</li></ol></section>', 1)),
76
+ t[12] || (t[12] = k('<section class="home__card" data-v-26ea7421><h2 class="home__section-title" data-v-26ea7421>Getting Started</h2><ol class="home__list" data-v-26ea7421><li data-v-26ea7421>Click the <strong data-v-26ea7421>Remy icon</strong> in your top navigation to open the chat panel.</li><li data-v-26ea7421> Desktop opens a right-side panel. Mobile/tablet opens Remy in <strong data-v-26ea7421>full-screen</strong>. </li><li data-v-26ea7421> Use <strong data-v-26ea7421>/suggestPrice</strong>, <strong data-v-26ea7421>/suggestDescription</strong>, <strong data-v-26ea7421>/modifyImage</strong>, or <strong data-v-26ea7421>/askReport</strong>. </li><li data-v-26ea7421>After selecting a command, enter the item details and send.</li></ol></section>', 1)),
76
77
  e("section", N, [
77
78
  t[11] || (t[11] = e("div", { class: "home__section-head" }, [
78
79
  e("h2", { class: "home__section-title" }, "Try Examples"),
@@ -100,7 +101,7 @@ const B = { class: "home" }, R = { class: "home__hero" }, T = { class: "home__br
100
101
  e("button", {
101
102
  class: "home__example",
102
103
  type: "button",
103
- onClick: f
104
+ onClick: A
104
105
  }, [...t[6] || (t[6] = [
105
106
  e("span", { class: "home__example-icon" }, "/modifyImage", -1),
106
107
  e("h3", null, "Modify Image", -1),
@@ -109,34 +110,34 @@ const B = { class: "home" }, R = { class: "home__hero" }, T = { class: "home__br
109
110
  e("button", {
110
111
  class: "home__example",
111
112
  type: "button",
112
- onClick: A
113
+ onClick: f
113
114
  }, [...t[7] || (t[7] = [
114
115
  e("span", { class: "home__example-icon" }, "/askReport", -1),
115
116
  e("h3", null, "Ask Report", -1),
116
117
  e("p", null, "Ask questions about your sales, revenue, and business analytics.", -1)
117
118
  ])])
118
119
  ]),
119
- r.value !== null ? (l(), n("div", I, [
120
+ u.value !== null ? (l(), n("div", I, [
120
121
  t[8] || (t[8] = e("p", { class: "home__autofill-label" }, "Applied price event received", -1)),
121
- e("p", w, "RM " + i(r.value.toFixed(2)), 1)
122
- ])) : c("", !0),
123
- u.value ? (l(), n("div", H, [
122
+ e("p", w, "RM " + i(u.value.toFixed(2)), 1)
123
+ ])) : r("", !0),
124
+ c.value ? (l(), n("div", H, [
124
125
  t[9] || (t[9] = e("p", { class: "home__autofill-label" }, "Applied description event received", -1)),
125
- e("p", Q, i(u.value), 1)
126
- ])) : c("", !0),
126
+ e("p", Q, i(c.value), 1)
127
+ ])) : r("", !0),
127
128
  d.value ? (l(), n("div", S, [
128
129
  t[10] || (t[10] = e("p", { class: "home__autofill-label" }, "Applied image event received", -1)),
129
130
  e("p", M, i(d.value), 1)
130
- ])) : c("", !0),
131
+ ])) : r("", !0),
131
132
  o.value ? (l(), n("div", O, [
132
133
  e("p", V, "Last Apply Event: " + i(o.value), 1),
133
134
  e("pre", P, i(JSON.stringify(m.value, null, 2)), 1)
134
- ])) : c("", !0)
135
+ ])) : r("", !0)
135
136
  ])
136
137
  ]));
137
138
  }
138
139
  });
139
- const z = /* @__PURE__ */ x(F, [["__scopeId", "data-v-bf1c4726"]]);
140
+ const z = /* @__PURE__ */ x(F, [["__scopeId", "data-v-26ea7421"]]);
140
141
  export {
141
142
  z as default
142
143
  };
@@ -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-97cb6280.js";
2
+ import { u as y, R as _ } from "./app-e4da47f5.js";
3
3
  import "pinia";
4
4
  import "@feedmepos/mf-common";
5
5
  import "vue-router";