@feedmepos/mf-payment 1.5.4-dev → 1.5.5-dev

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@feedmepos/mf-payment",
3
- "version": "1.5.4-dev",
3
+ "version": "1.5.5-dev",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "dist"
@@ -1,77 +0,0 @@
1
- import { defineComponent as y, ref as n, computed as x, resolveComponent as m, openBlock as e, createElementBlock as t, createElementVNode as r, createVNode as g, createCommentVNode as h, createBlock as w, renderSlot as k } from "vue";
2
- import { m as b } from "./no-data-BRmo6XOO.js";
3
- import { d as C } from "./index-_u7l8cO3.js";
4
- const B = {
5
- key: 0,
6
- class: "max-w-[340px] bg-white border border-gray-200 rounded-md overflow-hidden shadow-sm flex flex-col font-sans"
7
- }, D = { class: "relative aspect-video w-full bg-gray-50 flex items-center justify-center overflow-hidden" }, N = { key: 0 }, V = {
8
- key: 0,
9
- class: "flex flex-col items-center gap-3 p-4"
10
- }, F = {
11
- key: 0,
12
- class: "text-xs text-red-500"
13
- }, E = {
14
- key: 1,
15
- class: "flex flex-col items-center gap-2 py-8"
16
- }, P = { key: 1 }, j = ["src"], S = /* @__PURE__ */ y({
17
- __name: "DocumentViewer",
18
- props: {
19
- document: {},
20
- restaurantId: {}
21
- },
22
- setup(u) {
23
- const o = u, l = n(!1), a = n(!1), i = n(!1), c = n(""), p = x(() => !!o.document), f = async () => {
24
- if (o.document) {
25
- a.value = !0;
26
- try {
27
- const s = await C.view(o.document, o.restaurantId);
28
- c.value = s, l.value = !0;
29
- } catch {
30
- i.value = !0;
31
- } finally {
32
- a.value = !1;
33
- }
34
- }
35
- };
36
- return (s, d) => {
37
- const v = m("FmButton"), _ = m("FmCircularProgress");
38
- return l.value ? (e(), t("div", P, [
39
- k(s.$slots, "default", { src: c.value }, () => [
40
- r("img", {
41
- src: c.value,
42
- alt: "Document"
43
- }, null, 8, j)
44
- ])
45
- ])) : (e(), t("div", B, [
46
- r("div", D, [
47
- p.value ? (e(), t("div", N, [
48
- a.value ? (e(), w(_, {
49
- key: 1,
50
- size: "xl",
51
- color: "primary"
52
- })) : (e(), t("div", V, [
53
- g(v, {
54
- onClick: f,
55
- label: "View Document",
56
- "prepend-icon": "manage_accounts",
57
- size: "md",
58
- variant: "primary"
59
- }),
60
- i.value ? (e(), t("span", F, " Oops, something went wrong. Please try again. ")) : h("", !0)
61
- ]))
62
- ])) : (e(), t("div", E, [...d[0] || (d[0] = [
63
- r("img", {
64
- src: b,
65
- alt: "No document",
66
- class: "w-128 h-80 object-contain opacity-80"
67
- }, null, -1),
68
- r("span", { class: "text-xs text-gray-400 mt-2" }, "No document available.", -1)
69
- ])]))
70
- ])
71
- ]));
72
- };
73
- }
74
- });
75
- export {
76
- S as _
77
- };
@@ -1,9 +0,0 @@
1
- const s = (t, r) => {
2
- const o = t.__vccOpts || t;
3
- for (const [c, e] of r)
4
- o[c] = e;
5
- return o;
6
- };
7
- export {
8
- s as _
9
- };