@achyutlabsau/vue-payment-gateway 0.2.20 → 0.3.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.
@@ -0,0 +1,294 @@
1
+ var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof window !== "undefined" ? window : typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : {};
2
+ function getDefaultExportFromCjs(x) {
3
+ return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, "default") ? x["default"] : x;
4
+ }
5
+ var dayjs_min$1 = { exports: {} };
6
+ var dayjs_min = dayjs_min$1.exports;
7
+ var hasRequiredDayjs_min;
8
+ function requireDayjs_min() {
9
+ if (hasRequiredDayjs_min) return dayjs_min$1.exports;
10
+ hasRequiredDayjs_min = 1;
11
+ (function(module, exports) {
12
+ !function(t, e) {
13
+ module.exports = e();
14
+ }(dayjs_min, function() {
15
+ var t = 1e3, e = 6e4, n = 36e5, r = "millisecond", i = "second", s = "minute", u = "hour", a = "day", o = "week", c = "month", f = "quarter", h = "year", d = "date", l = "Invalid Date", $ = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, y = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, M = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(t2) {
16
+ var e2 = ["th", "st", "nd", "rd"], n2 = t2 % 100;
17
+ return "[" + t2 + (e2[(n2 - 20) % 10] || e2[n2] || e2[0]) + "]";
18
+ } }, m = function(t2, e2, n2) {
19
+ var r2 = String(t2);
20
+ return !r2 || r2.length >= e2 ? t2 : "" + Array(e2 + 1 - r2.length).join(n2) + t2;
21
+ }, v = { s: m, z: function(t2) {
22
+ var e2 = -t2.utcOffset(), n2 = Math.abs(e2), r2 = Math.floor(n2 / 60), i2 = n2 % 60;
23
+ return (e2 <= 0 ? "+" : "-") + m(r2, 2, "0") + ":" + m(i2, 2, "0");
24
+ }, m: function t2(e2, n2) {
25
+ if (e2.date() < n2.date()) return -t2(n2, e2);
26
+ var r2 = 12 * (n2.year() - e2.year()) + (n2.month() - e2.month()), i2 = e2.clone().add(r2, c), s2 = n2 - i2 < 0, u2 = e2.clone().add(r2 + (s2 ? -1 : 1), c);
27
+ return +(-(r2 + (n2 - i2) / (s2 ? i2 - u2 : u2 - i2)) || 0);
28
+ }, a: function(t2) {
29
+ return t2 < 0 ? Math.ceil(t2) || 0 : Math.floor(t2);
30
+ }, p: function(t2) {
31
+ return { M: c, y: h, w: o, d: a, D: d, h: u, m: s, s: i, ms: r, Q: f }[t2] || String(t2 || "").toLowerCase().replace(/s$/, "");
32
+ }, u: function(t2) {
33
+ return void 0 === t2;
34
+ } }, g = "en", D = {};
35
+ D[g] = M;
36
+ var p = "$isDayjsObject", S = function(t2) {
37
+ return t2 instanceof _ || !(!t2 || !t2[p]);
38
+ }, w = function t2(e2, n2, r2) {
39
+ var i2;
40
+ if (!e2) return g;
41
+ if ("string" == typeof e2) {
42
+ var s2 = e2.toLowerCase();
43
+ D[s2] && (i2 = s2), n2 && (D[s2] = n2, i2 = s2);
44
+ var u2 = e2.split("-");
45
+ if (!i2 && u2.length > 1) return t2(u2[0]);
46
+ } else {
47
+ var a2 = e2.name;
48
+ D[a2] = e2, i2 = a2;
49
+ }
50
+ return !r2 && i2 && (g = i2), i2 || !r2 && g;
51
+ }, O = function(t2, e2) {
52
+ if (S(t2)) return t2.clone();
53
+ var n2 = "object" == typeof e2 ? e2 : {};
54
+ return n2.date = t2, n2.args = arguments, new _(n2);
55
+ }, b = v;
56
+ b.l = w, b.i = S, b.w = function(t2, e2) {
57
+ return O(t2, { locale: e2.$L, utc: e2.$u, x: e2.$x, $offset: e2.$offset });
58
+ };
59
+ var _ = function() {
60
+ function M2(t2) {
61
+ this.$L = w(t2.locale, null, true), this.parse(t2), this.$x = this.$x || t2.x || {}, this[p] = true;
62
+ }
63
+ var m2 = M2.prototype;
64
+ return m2.parse = function(t2) {
65
+ this.$d = function(t3) {
66
+ var e2 = t3.date, n2 = t3.utc;
67
+ if (null === e2) return /* @__PURE__ */ new Date(NaN);
68
+ if (b.u(e2)) return /* @__PURE__ */ new Date();
69
+ if (e2 instanceof Date) return new Date(e2);
70
+ if ("string" == typeof e2 && !/Z$/i.test(e2)) {
71
+ var r2 = e2.match($);
72
+ if (r2) {
73
+ var i2 = r2[2] - 1 || 0, s2 = (r2[7] || "0").substring(0, 3);
74
+ return n2 ? new Date(Date.UTC(r2[1], i2, r2[3] || 1, r2[4] || 0, r2[5] || 0, r2[6] || 0, s2)) : new Date(r2[1], i2, r2[3] || 1, r2[4] || 0, r2[5] || 0, r2[6] || 0, s2);
75
+ }
76
+ }
77
+ return new Date(e2);
78
+ }(t2), this.init();
79
+ }, m2.init = function() {
80
+ var t2 = this.$d;
81
+ this.$y = t2.getFullYear(), this.$M = t2.getMonth(), this.$D = t2.getDate(), this.$W = t2.getDay(), this.$H = t2.getHours(), this.$m = t2.getMinutes(), this.$s = t2.getSeconds(), this.$ms = t2.getMilliseconds();
82
+ }, m2.$utils = function() {
83
+ return b;
84
+ }, m2.isValid = function() {
85
+ return !(this.$d.toString() === l);
86
+ }, m2.isSame = function(t2, e2) {
87
+ var n2 = O(t2);
88
+ return this.startOf(e2) <= n2 && n2 <= this.endOf(e2);
89
+ }, m2.isAfter = function(t2, e2) {
90
+ return O(t2) < this.startOf(e2);
91
+ }, m2.isBefore = function(t2, e2) {
92
+ return this.endOf(e2) < O(t2);
93
+ }, m2.$g = function(t2, e2, n2) {
94
+ return b.u(t2) ? this[e2] : this.set(n2, t2);
95
+ }, m2.unix = function() {
96
+ return Math.floor(this.valueOf() / 1e3);
97
+ }, m2.valueOf = function() {
98
+ return this.$d.getTime();
99
+ }, m2.startOf = function(t2, e2) {
100
+ var n2 = this, r2 = !!b.u(e2) || e2, f2 = b.p(t2), l2 = function(t3, e3) {
101
+ var i2 = b.w(n2.$u ? Date.UTC(n2.$y, e3, t3) : new Date(n2.$y, e3, t3), n2);
102
+ return r2 ? i2 : i2.endOf(a);
103
+ }, $2 = function(t3, e3) {
104
+ return b.w(n2.toDate()[t3].apply(n2.toDate("s"), (r2 ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(e3)), n2);
105
+ }, y2 = this.$W, M3 = this.$M, m3 = this.$D, v2 = "set" + (this.$u ? "UTC" : "");
106
+ switch (f2) {
107
+ case h:
108
+ return r2 ? l2(1, 0) : l2(31, 11);
109
+ case c:
110
+ return r2 ? l2(1, M3) : l2(0, M3 + 1);
111
+ case o:
112
+ var g2 = this.$locale().weekStart || 0, D2 = (y2 < g2 ? y2 + 7 : y2) - g2;
113
+ return l2(r2 ? m3 - D2 : m3 + (6 - D2), M3);
114
+ case a:
115
+ case d:
116
+ return $2(v2 + "Hours", 0);
117
+ case u:
118
+ return $2(v2 + "Minutes", 1);
119
+ case s:
120
+ return $2(v2 + "Seconds", 2);
121
+ case i:
122
+ return $2(v2 + "Milliseconds", 3);
123
+ default:
124
+ return this.clone();
125
+ }
126
+ }, m2.endOf = function(t2) {
127
+ return this.startOf(t2, false);
128
+ }, m2.$set = function(t2, e2) {
129
+ var n2, o2 = b.p(t2), f2 = "set" + (this.$u ? "UTC" : ""), l2 = (n2 = {}, n2[a] = f2 + "Date", n2[d] = f2 + "Date", n2[c] = f2 + "Month", n2[h] = f2 + "FullYear", n2[u] = f2 + "Hours", n2[s] = f2 + "Minutes", n2[i] = f2 + "Seconds", n2[r] = f2 + "Milliseconds", n2)[o2], $2 = o2 === a ? this.$D + (e2 - this.$W) : e2;
130
+ if (o2 === c || o2 === h) {
131
+ var y2 = this.clone().set(d, 1);
132
+ y2.$d[l2]($2), y2.init(), this.$d = y2.set(d, Math.min(this.$D, y2.daysInMonth())).$d;
133
+ } else l2 && this.$d[l2]($2);
134
+ return this.init(), this;
135
+ }, m2.set = function(t2, e2) {
136
+ return this.clone().$set(t2, e2);
137
+ }, m2.get = function(t2) {
138
+ return this[b.p(t2)]();
139
+ }, m2.add = function(r2, f2) {
140
+ var d2, l2 = this;
141
+ r2 = Number(r2);
142
+ var $2 = b.p(f2), y2 = function(t2) {
143
+ var e2 = O(l2);
144
+ return b.w(e2.date(e2.date() + Math.round(t2 * r2)), l2);
145
+ };
146
+ if ($2 === c) return this.set(c, this.$M + r2);
147
+ if ($2 === h) return this.set(h, this.$y + r2);
148
+ if ($2 === a) return y2(1);
149
+ if ($2 === o) return y2(7);
150
+ var M3 = (d2 = {}, d2[s] = e, d2[u] = n, d2[i] = t, d2)[$2] || 1, m3 = this.$d.getTime() + r2 * M3;
151
+ return b.w(m3, this);
152
+ }, m2.subtract = function(t2, e2) {
153
+ return this.add(-1 * t2, e2);
154
+ }, m2.format = function(t2) {
155
+ var e2 = this, n2 = this.$locale();
156
+ if (!this.isValid()) return n2.invalidDate || l;
157
+ var r2 = t2 || "YYYY-MM-DDTHH:mm:ssZ", i2 = b.z(this), s2 = this.$H, u2 = this.$m, a2 = this.$M, o2 = n2.weekdays, c2 = n2.months, f2 = n2.meridiem, h2 = function(t3, n3, i3, s3) {
158
+ return t3 && (t3[n3] || t3(e2, r2)) || i3[n3].slice(0, s3);
159
+ }, d2 = function(t3) {
160
+ return b.s(s2 % 12 || 12, t3, "0");
161
+ }, $2 = f2 || function(t3, e3, n3) {
162
+ var r3 = t3 < 12 ? "AM" : "PM";
163
+ return n3 ? r3.toLowerCase() : r3;
164
+ };
165
+ return r2.replace(y, function(t3, r3) {
166
+ return r3 || function(t4) {
167
+ switch (t4) {
168
+ case "YY":
169
+ return String(e2.$y).slice(-2);
170
+ case "YYYY":
171
+ return b.s(e2.$y, 4, "0");
172
+ case "M":
173
+ return a2 + 1;
174
+ case "MM":
175
+ return b.s(a2 + 1, 2, "0");
176
+ case "MMM":
177
+ return h2(n2.monthsShort, a2, c2, 3);
178
+ case "MMMM":
179
+ return h2(c2, a2);
180
+ case "D":
181
+ return e2.$D;
182
+ case "DD":
183
+ return b.s(e2.$D, 2, "0");
184
+ case "d":
185
+ return String(e2.$W);
186
+ case "dd":
187
+ return h2(n2.weekdaysMin, e2.$W, o2, 2);
188
+ case "ddd":
189
+ return h2(n2.weekdaysShort, e2.$W, o2, 3);
190
+ case "dddd":
191
+ return o2[e2.$W];
192
+ case "H":
193
+ return String(s2);
194
+ case "HH":
195
+ return b.s(s2, 2, "0");
196
+ case "h":
197
+ return d2(1);
198
+ case "hh":
199
+ return d2(2);
200
+ case "a":
201
+ return $2(s2, u2, true);
202
+ case "A":
203
+ return $2(s2, u2, false);
204
+ case "m":
205
+ return String(u2);
206
+ case "mm":
207
+ return b.s(u2, 2, "0");
208
+ case "s":
209
+ return String(e2.$s);
210
+ case "ss":
211
+ return b.s(e2.$s, 2, "0");
212
+ case "SSS":
213
+ return b.s(e2.$ms, 3, "0");
214
+ case "Z":
215
+ return i2;
216
+ }
217
+ return null;
218
+ }(t3) || i2.replace(":", "");
219
+ });
220
+ }, m2.utcOffset = function() {
221
+ return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
222
+ }, m2.diff = function(r2, d2, l2) {
223
+ var $2, y2 = this, M3 = b.p(d2), m3 = O(r2), v2 = (m3.utcOffset() - this.utcOffset()) * e, g2 = this - m3, D2 = function() {
224
+ return b.m(y2, m3);
225
+ };
226
+ switch (M3) {
227
+ case h:
228
+ $2 = D2() / 12;
229
+ break;
230
+ case c:
231
+ $2 = D2();
232
+ break;
233
+ case f:
234
+ $2 = D2() / 3;
235
+ break;
236
+ case o:
237
+ $2 = (g2 - v2) / 6048e5;
238
+ break;
239
+ case a:
240
+ $2 = (g2 - v2) / 864e5;
241
+ break;
242
+ case u:
243
+ $2 = g2 / n;
244
+ break;
245
+ case s:
246
+ $2 = g2 / e;
247
+ break;
248
+ case i:
249
+ $2 = g2 / t;
250
+ break;
251
+ default:
252
+ $2 = g2;
253
+ }
254
+ return l2 ? $2 : b.a($2);
255
+ }, m2.daysInMonth = function() {
256
+ return this.endOf(c).$D;
257
+ }, m2.$locale = function() {
258
+ return D[this.$L];
259
+ }, m2.locale = function(t2, e2) {
260
+ if (!t2) return this.$L;
261
+ var n2 = this.clone(), r2 = w(t2, e2, true);
262
+ return r2 && (n2.$L = r2), n2;
263
+ }, m2.clone = function() {
264
+ return b.w(this.$d, this);
265
+ }, m2.toDate = function() {
266
+ return new Date(this.valueOf());
267
+ }, m2.toJSON = function() {
268
+ return this.isValid() ? this.toISOString() : null;
269
+ }, m2.toISOString = function() {
270
+ return this.$d.toISOString();
271
+ }, m2.toString = function() {
272
+ return this.$d.toUTCString();
273
+ }, M2;
274
+ }(), k = _.prototype;
275
+ return O.prototype = k, [["$ms", r], ["$s", i], ["$m", s], ["$H", u], ["$W", a], ["$M", c], ["$y", h], ["$D", d]].forEach(function(t2) {
276
+ k[t2[1]] = function(e2) {
277
+ return this.$g(e2, t2[0], t2[1]);
278
+ };
279
+ }), O.extend = function(t2, e2) {
280
+ return t2.$i || (t2(e2, _, O), t2.$i = true), O;
281
+ }, O.locale = w, O.isDayjs = S, O.unix = function(t2) {
282
+ return O(1e3 * t2);
283
+ }, O.en = D[g], O.Ls = D, O.p = {}, O;
284
+ });
285
+ })(dayjs_min$1);
286
+ return dayjs_min$1.exports;
287
+ }
288
+ var dayjs_minExports = requireDayjs_min();
289
+ const dayjs = /* @__PURE__ */ getDefaultExportFromCjs(dayjs_minExports);
290
+ export {
291
+ commonjsGlobal as c,
292
+ dayjs as d,
293
+ getDefaultExportFromCjs as g
294
+ };
@@ -2,6 +2,7 @@ var __defProp = Object.defineProperty;
2
2
  var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
3
3
  var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
4
4
  import axios, { isAxiosError, HttpStatusCode } from "axios";
5
+ import { d as dayjs } from "./dayjs.min-DGv2T_Zf.js";
5
6
  import { d as delay } from "./index-e4lpzJsL.js";
6
7
  import { useDialogPluginComponent, QDialog, QCard, QCardSection, QBtn, Dialog, Loading, QForm, QToolbar, QToolbarTitle, QIcon, QInput, QCardActions, Notify, QSelect } from "quasar";
7
8
  import { b as state } from "./state-D014QcxX.js";
@@ -33,294 +34,6 @@ var TransactionOutcome = /* @__PURE__ */ ((TransactionOutcome2) => {
33
34
  TransactionOutcome2["Failed"] = "failed";
34
35
  return TransactionOutcome2;
35
36
  })(TransactionOutcome || {});
36
- function getDefaultExportFromCjs(x) {
37
- return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, "default") ? x["default"] : x;
38
- }
39
- var dayjs_min$1 = { exports: {} };
40
- var dayjs_min = dayjs_min$1.exports;
41
- var hasRequiredDayjs_min;
42
- function requireDayjs_min() {
43
- if (hasRequiredDayjs_min) return dayjs_min$1.exports;
44
- hasRequiredDayjs_min = 1;
45
- (function(module, exports) {
46
- !function(t, e) {
47
- module.exports = e();
48
- }(dayjs_min, function() {
49
- var t = 1e3, e = 6e4, n = 36e5, r = "millisecond", i = "second", s = "minute", u = "hour", a = "day", o = "week", c = "month", f = "quarter", h = "year", d = "date", l = "Invalid Date", $ = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, y = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, M = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(t2) {
50
- var e2 = ["th", "st", "nd", "rd"], n2 = t2 % 100;
51
- return "[" + t2 + (e2[(n2 - 20) % 10] || e2[n2] || e2[0]) + "]";
52
- } }, m = function(t2, e2, n2) {
53
- var r2 = String(t2);
54
- return !r2 || r2.length >= e2 ? t2 : "" + Array(e2 + 1 - r2.length).join(n2) + t2;
55
- }, v = { s: m, z: function(t2) {
56
- var e2 = -t2.utcOffset(), n2 = Math.abs(e2), r2 = Math.floor(n2 / 60), i2 = n2 % 60;
57
- return (e2 <= 0 ? "+" : "-") + m(r2, 2, "0") + ":" + m(i2, 2, "0");
58
- }, m: function t2(e2, n2) {
59
- if (e2.date() < n2.date()) return -t2(n2, e2);
60
- var r2 = 12 * (n2.year() - e2.year()) + (n2.month() - e2.month()), i2 = e2.clone().add(r2, c), s2 = n2 - i2 < 0, u2 = e2.clone().add(r2 + (s2 ? -1 : 1), c);
61
- return +(-(r2 + (n2 - i2) / (s2 ? i2 - u2 : u2 - i2)) || 0);
62
- }, a: function(t2) {
63
- return t2 < 0 ? Math.ceil(t2) || 0 : Math.floor(t2);
64
- }, p: function(t2) {
65
- return { M: c, y: h, w: o, d: a, D: d, h: u, m: s, s: i, ms: r, Q: f }[t2] || String(t2 || "").toLowerCase().replace(/s$/, "");
66
- }, u: function(t2) {
67
- return void 0 === t2;
68
- } }, g = "en", D = {};
69
- D[g] = M;
70
- var p = "$isDayjsObject", S = function(t2) {
71
- return t2 instanceof _ || !(!t2 || !t2[p]);
72
- }, w = function t2(e2, n2, r2) {
73
- var i2;
74
- if (!e2) return g;
75
- if ("string" == typeof e2) {
76
- var s2 = e2.toLowerCase();
77
- D[s2] && (i2 = s2), n2 && (D[s2] = n2, i2 = s2);
78
- var u2 = e2.split("-");
79
- if (!i2 && u2.length > 1) return t2(u2[0]);
80
- } else {
81
- var a2 = e2.name;
82
- D[a2] = e2, i2 = a2;
83
- }
84
- return !r2 && i2 && (g = i2), i2 || !r2 && g;
85
- }, O = function(t2, e2) {
86
- if (S(t2)) return t2.clone();
87
- var n2 = "object" == typeof e2 ? e2 : {};
88
- return n2.date = t2, n2.args = arguments, new _(n2);
89
- }, b = v;
90
- b.l = w, b.i = S, b.w = function(t2, e2) {
91
- return O(t2, { locale: e2.$L, utc: e2.$u, x: e2.$x, $offset: e2.$offset });
92
- };
93
- var _ = function() {
94
- function M2(t2) {
95
- this.$L = w(t2.locale, null, true), this.parse(t2), this.$x = this.$x || t2.x || {}, this[p] = true;
96
- }
97
- var m2 = M2.prototype;
98
- return m2.parse = function(t2) {
99
- this.$d = function(t3) {
100
- var e2 = t3.date, n2 = t3.utc;
101
- if (null === e2) return /* @__PURE__ */ new Date(NaN);
102
- if (b.u(e2)) return /* @__PURE__ */ new Date();
103
- if (e2 instanceof Date) return new Date(e2);
104
- if ("string" == typeof e2 && !/Z$/i.test(e2)) {
105
- var r2 = e2.match($);
106
- if (r2) {
107
- var i2 = r2[2] - 1 || 0, s2 = (r2[7] || "0").substring(0, 3);
108
- return n2 ? new Date(Date.UTC(r2[1], i2, r2[3] || 1, r2[4] || 0, r2[5] || 0, r2[6] || 0, s2)) : new Date(r2[1], i2, r2[3] || 1, r2[4] || 0, r2[5] || 0, r2[6] || 0, s2);
109
- }
110
- }
111
- return new Date(e2);
112
- }(t2), this.init();
113
- }, m2.init = function() {
114
- var t2 = this.$d;
115
- this.$y = t2.getFullYear(), this.$M = t2.getMonth(), this.$D = t2.getDate(), this.$W = t2.getDay(), this.$H = t2.getHours(), this.$m = t2.getMinutes(), this.$s = t2.getSeconds(), this.$ms = t2.getMilliseconds();
116
- }, m2.$utils = function() {
117
- return b;
118
- }, m2.isValid = function() {
119
- return !(this.$d.toString() === l);
120
- }, m2.isSame = function(t2, e2) {
121
- var n2 = O(t2);
122
- return this.startOf(e2) <= n2 && n2 <= this.endOf(e2);
123
- }, m2.isAfter = function(t2, e2) {
124
- return O(t2) < this.startOf(e2);
125
- }, m2.isBefore = function(t2, e2) {
126
- return this.endOf(e2) < O(t2);
127
- }, m2.$g = function(t2, e2, n2) {
128
- return b.u(t2) ? this[e2] : this.set(n2, t2);
129
- }, m2.unix = function() {
130
- return Math.floor(this.valueOf() / 1e3);
131
- }, m2.valueOf = function() {
132
- return this.$d.getTime();
133
- }, m2.startOf = function(t2, e2) {
134
- var n2 = this, r2 = !!b.u(e2) || e2, f2 = b.p(t2), l2 = function(t3, e3) {
135
- var i2 = b.w(n2.$u ? Date.UTC(n2.$y, e3, t3) : new Date(n2.$y, e3, t3), n2);
136
- return r2 ? i2 : i2.endOf(a);
137
- }, $2 = function(t3, e3) {
138
- return b.w(n2.toDate()[t3].apply(n2.toDate("s"), (r2 ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(e3)), n2);
139
- }, y2 = this.$W, M3 = this.$M, m3 = this.$D, v2 = "set" + (this.$u ? "UTC" : "");
140
- switch (f2) {
141
- case h:
142
- return r2 ? l2(1, 0) : l2(31, 11);
143
- case c:
144
- return r2 ? l2(1, M3) : l2(0, M3 + 1);
145
- case o:
146
- var g2 = this.$locale().weekStart || 0, D2 = (y2 < g2 ? y2 + 7 : y2) - g2;
147
- return l2(r2 ? m3 - D2 : m3 + (6 - D2), M3);
148
- case a:
149
- case d:
150
- return $2(v2 + "Hours", 0);
151
- case u:
152
- return $2(v2 + "Minutes", 1);
153
- case s:
154
- return $2(v2 + "Seconds", 2);
155
- case i:
156
- return $2(v2 + "Milliseconds", 3);
157
- default:
158
- return this.clone();
159
- }
160
- }, m2.endOf = function(t2) {
161
- return this.startOf(t2, false);
162
- }, m2.$set = function(t2, e2) {
163
- var n2, o2 = b.p(t2), f2 = "set" + (this.$u ? "UTC" : ""), l2 = (n2 = {}, n2[a] = f2 + "Date", n2[d] = f2 + "Date", n2[c] = f2 + "Month", n2[h] = f2 + "FullYear", n2[u] = f2 + "Hours", n2[s] = f2 + "Minutes", n2[i] = f2 + "Seconds", n2[r] = f2 + "Milliseconds", n2)[o2], $2 = o2 === a ? this.$D + (e2 - this.$W) : e2;
164
- if (o2 === c || o2 === h) {
165
- var y2 = this.clone().set(d, 1);
166
- y2.$d[l2]($2), y2.init(), this.$d = y2.set(d, Math.min(this.$D, y2.daysInMonth())).$d;
167
- } else l2 && this.$d[l2]($2);
168
- return this.init(), this;
169
- }, m2.set = function(t2, e2) {
170
- return this.clone().$set(t2, e2);
171
- }, m2.get = function(t2) {
172
- return this[b.p(t2)]();
173
- }, m2.add = function(r2, f2) {
174
- var d2, l2 = this;
175
- r2 = Number(r2);
176
- var $2 = b.p(f2), y2 = function(t2) {
177
- var e2 = O(l2);
178
- return b.w(e2.date(e2.date() + Math.round(t2 * r2)), l2);
179
- };
180
- if ($2 === c) return this.set(c, this.$M + r2);
181
- if ($2 === h) return this.set(h, this.$y + r2);
182
- if ($2 === a) return y2(1);
183
- if ($2 === o) return y2(7);
184
- var M3 = (d2 = {}, d2[s] = e, d2[u] = n, d2[i] = t, d2)[$2] || 1, m3 = this.$d.getTime() + r2 * M3;
185
- return b.w(m3, this);
186
- }, m2.subtract = function(t2, e2) {
187
- return this.add(-1 * t2, e2);
188
- }, m2.format = function(t2) {
189
- var e2 = this, n2 = this.$locale();
190
- if (!this.isValid()) return n2.invalidDate || l;
191
- var r2 = t2 || "YYYY-MM-DDTHH:mm:ssZ", i2 = b.z(this), s2 = this.$H, u2 = this.$m, a2 = this.$M, o2 = n2.weekdays, c2 = n2.months, f2 = n2.meridiem, h2 = function(t3, n3, i3, s3) {
192
- return t3 && (t3[n3] || t3(e2, r2)) || i3[n3].slice(0, s3);
193
- }, d2 = function(t3) {
194
- return b.s(s2 % 12 || 12, t3, "0");
195
- }, $2 = f2 || function(t3, e3, n3) {
196
- var r3 = t3 < 12 ? "AM" : "PM";
197
- return n3 ? r3.toLowerCase() : r3;
198
- };
199
- return r2.replace(y, function(t3, r3) {
200
- return r3 || function(t4) {
201
- switch (t4) {
202
- case "YY":
203
- return String(e2.$y).slice(-2);
204
- case "YYYY":
205
- return b.s(e2.$y, 4, "0");
206
- case "M":
207
- return a2 + 1;
208
- case "MM":
209
- return b.s(a2 + 1, 2, "0");
210
- case "MMM":
211
- return h2(n2.monthsShort, a2, c2, 3);
212
- case "MMMM":
213
- return h2(c2, a2);
214
- case "D":
215
- return e2.$D;
216
- case "DD":
217
- return b.s(e2.$D, 2, "0");
218
- case "d":
219
- return String(e2.$W);
220
- case "dd":
221
- return h2(n2.weekdaysMin, e2.$W, o2, 2);
222
- case "ddd":
223
- return h2(n2.weekdaysShort, e2.$W, o2, 3);
224
- case "dddd":
225
- return o2[e2.$W];
226
- case "H":
227
- return String(s2);
228
- case "HH":
229
- return b.s(s2, 2, "0");
230
- case "h":
231
- return d2(1);
232
- case "hh":
233
- return d2(2);
234
- case "a":
235
- return $2(s2, u2, true);
236
- case "A":
237
- return $2(s2, u2, false);
238
- case "m":
239
- return String(u2);
240
- case "mm":
241
- return b.s(u2, 2, "0");
242
- case "s":
243
- return String(e2.$s);
244
- case "ss":
245
- return b.s(e2.$s, 2, "0");
246
- case "SSS":
247
- return b.s(e2.$ms, 3, "0");
248
- case "Z":
249
- return i2;
250
- }
251
- return null;
252
- }(t3) || i2.replace(":", "");
253
- });
254
- }, m2.utcOffset = function() {
255
- return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
256
- }, m2.diff = function(r2, d2, l2) {
257
- var $2, y2 = this, M3 = b.p(d2), m3 = O(r2), v2 = (m3.utcOffset() - this.utcOffset()) * e, g2 = this - m3, D2 = function() {
258
- return b.m(y2, m3);
259
- };
260
- switch (M3) {
261
- case h:
262
- $2 = D2() / 12;
263
- break;
264
- case c:
265
- $2 = D2();
266
- break;
267
- case f:
268
- $2 = D2() / 3;
269
- break;
270
- case o:
271
- $2 = (g2 - v2) / 6048e5;
272
- break;
273
- case a:
274
- $2 = (g2 - v2) / 864e5;
275
- break;
276
- case u:
277
- $2 = g2 / n;
278
- break;
279
- case s:
280
- $2 = g2 / e;
281
- break;
282
- case i:
283
- $2 = g2 / t;
284
- break;
285
- default:
286
- $2 = g2;
287
- }
288
- return l2 ? $2 : b.a($2);
289
- }, m2.daysInMonth = function() {
290
- return this.endOf(c).$D;
291
- }, m2.$locale = function() {
292
- return D[this.$L];
293
- }, m2.locale = function(t2, e2) {
294
- if (!t2) return this.$L;
295
- var n2 = this.clone(), r2 = w(t2, e2, true);
296
- return r2 && (n2.$L = r2), n2;
297
- }, m2.clone = function() {
298
- return b.w(this.$d, this);
299
- }, m2.toDate = function() {
300
- return new Date(this.valueOf());
301
- }, m2.toJSON = function() {
302
- return this.isValid() ? this.toISOString() : null;
303
- }, m2.toISOString = function() {
304
- return this.$d.toISOString();
305
- }, m2.toString = function() {
306
- return this.$d.toUTCString();
307
- }, M2;
308
- }(), k = _.prototype;
309
- return O.prototype = k, [["$ms", r], ["$s", i], ["$m", s], ["$H", u], ["$W", a], ["$M", c], ["$y", h], ["$D", d]].forEach(function(t2) {
310
- k[t2[1]] = function(e2) {
311
- return this.$g(e2, t2[0], t2[1]);
312
- };
313
- }), O.extend = function(t2, e2) {
314
- return t2.$i || (t2(e2, _, O), t2.$i = true), O;
315
- }, O.locale = w, O.isDayjs = S, O.unix = function(t2) {
316
- return O(1e3 * t2);
317
- }, O.en = D[g], O.Ls = D, O.p = {}, O;
318
- });
319
- })(dayjs_min$1);
320
- return dayjs_min$1.exports;
321
- }
322
- var dayjs_minExports = requireDayjs_min();
323
- const dayjs = /* @__PURE__ */ getDefaultExportFromCjs(dayjs_minExports);
324
37
  const handleError = (error) => {
325
38
  var _a;
326
39
  console.error(error);
package/dist/tyro.d.ts CHANGED
@@ -7,6 +7,16 @@ declare type __VLS_Props = {
7
7
  merchantId: string;
8
8
  };
9
9
 
10
+ declare type __VLS_PublicProps = {
11
+ modelValue?: boolean;
12
+ };
13
+
14
+ export declare const ClientLogsDialog: DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
15
+ "update:modelValue": (value: boolean) => any;
16
+ }, string, PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
17
+ "onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
18
+ }>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
19
+
10
20
  export declare interface PairResponse {
11
21
  /**
12
22
  * Status of the pairing request, can be inProgress, success, failure. If inProgress then more responses will follow.
package/dist/tyro.js CHANGED
@@ -299,6 +299,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
299
299
  }
300
300
  });
301
301
  export {
302
+ _sfc_main$1 as ClientLogsDialog,
302
303
  _sfc_main as PairTyro,
303
304
  TYRO_CONSTANTS,
304
305
  a as TyroTransactionStatus,
@@ -4,6 +4,10 @@ import { DefineComponent } from 'vue';
4
4
  import { EventBus } from 'quasar';
5
5
  import { PublicProps } from 'vue';
6
6
 
7
+ declare type __VLS_PublicProps = {
8
+ modelValue?: boolean;
9
+ };
10
+
7
11
  declare class AdvanceEcr {
8
12
  private _config;
9
13
  isReady: boolean;
@@ -11,6 +15,7 @@ declare class AdvanceEcr {
11
15
  terminal: timapi.Terminal | undefined;
12
16
  constructor(config: TimApiConfig);
13
17
  timapiFinishedLoading(): void;
18
+ getLastTransactionId(): string | null;
14
19
  createTerminal(ipAddress: string, port: number): timapi.Terminal;
15
20
  ensureTerminal(): timapi.Terminal;
16
21
  disposeTerminal(): void;
@@ -70,6 +75,12 @@ export declare const TimApiEvents: Readonly<{
70
75
  BalanceCompleted: "timBalanceCompleted";
71
76
  }>;
72
77
 
78
+ export declare const TimApiLogs: DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
79
+ "update:modelValue": (value: boolean) => any;
80
+ }, string, PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
81
+ "onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
82
+ }>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
83
+
73
84
  export declare const TransactionTypes: {
74
85
  Purchase: timapi.EnumValue;
75
86
  Refund: timapi.EnumValue;