@one-payments/web-components 1.1.13 → 1.1.14
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/dist/index.js +30 -30
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -724,11 +724,11 @@ var ln = class {
|
|
|
724
724
|
this.stop(), this.onStatusUpdate(e);
|
|
725
725
|
return;
|
|
726
726
|
}
|
|
727
|
-
if (t.result.status === "
|
|
728
|
-
this.
|
|
727
|
+
if (t.result.status === "succeeded" || t.result.status === "failed" || t.result.status === "paid") {
|
|
728
|
+
this.stop(), this.onStatusUpdate(e);
|
|
729
729
|
return;
|
|
730
730
|
}
|
|
731
|
-
this.
|
|
731
|
+
this.scheduleNextPoll();
|
|
732
732
|
} catch (t) {
|
|
733
733
|
const e = {
|
|
734
734
|
status: "processing",
|
|
@@ -2830,8 +2830,8 @@ W.prototype.write = function(e) {
|
|
|
2830
2830
|
const o = this.data.length - n;
|
|
2831
2831
|
o > 0 && (r = this.data.substr(n), i = parseInt(r, 10), e.put(i, o * 3 + 1));
|
|
2832
2832
|
};
|
|
2833
|
-
var
|
|
2834
|
-
const
|
|
2833
|
+
var Tn = W;
|
|
2834
|
+
const Nn = z, $e = [
|
|
2835
2835
|
"0",
|
|
2836
2836
|
"1",
|
|
2837
2837
|
"2",
|
|
@@ -2879,7 +2879,7 @@ const Tn = z, $e = [
|
|
|
2879
2879
|
":"
|
|
2880
2880
|
];
|
|
2881
2881
|
function X(t) {
|
|
2882
|
-
this.mode =
|
|
2882
|
+
this.mode = Nn.ALPHANUMERIC, this.data = t;
|
|
2883
2883
|
}
|
|
2884
2884
|
X.getBitsLength = function(e) {
|
|
2885
2885
|
return 11 * Math.floor(e / 2) + 6 * (e % 2);
|
|
@@ -3014,7 +3014,7 @@ var On = te, $t = { exports: {} };
|
|
|
3014
3014
|
})($t);
|
|
3015
3015
|
var zn = $t.exports;
|
|
3016
3016
|
(function(t) {
|
|
3017
|
-
const e = z, n =
|
|
3017
|
+
const e = z, n = Tn, r = Rn, i = Bn, o = On, s = R, l = _, a = zn;
|
|
3018
3018
|
function d(b) {
|
|
3019
3019
|
return unescape(encodeURIComponent(b)).length;
|
|
3020
3020
|
}
|
|
@@ -3033,8 +3033,8 @@ var zn = $t.exports;
|
|
|
3033
3033
|
function h(b) {
|
|
3034
3034
|
const w = c(s.NUMERIC, e.NUMERIC, b), y = c(s.ALPHANUMERIC, e.ALPHANUMERIC, b);
|
|
3035
3035
|
let g, C;
|
|
3036
|
-
return l.isKanjiModeEnabled() ? (g = c(s.BYTE, e.BYTE, b), C = c(s.KANJI, e.KANJI, b)) : (g = c(s.BYTE_KANJI, e.BYTE, b), C = []), w.concat(y, g, C).sort(function(I,
|
|
3037
|
-
return I.index -
|
|
3036
|
+
return l.isKanjiModeEnabled() ? (g = c(s.BYTE, e.BYTE, b), C = c(s.KANJI, e.KANJI, b)) : (g = c(s.BYTE_KANJI, e.BYTE, b), C = []), w.concat(y, g, C).sort(function(I, T) {
|
|
3037
|
+
return I.index - T.index;
|
|
3038
3038
|
}).map(function(I) {
|
|
3039
3039
|
return {
|
|
3040
3040
|
data: I.data,
|
|
@@ -3097,16 +3097,16 @@ var zn = $t.exports;
|
|
|
3097
3097
|
const y = {}, g = { start: {} };
|
|
3098
3098
|
let C = ["start"];
|
|
3099
3099
|
for (let k = 0; k < b.length; k++) {
|
|
3100
|
-
const I = b[k],
|
|
3100
|
+
const I = b[k], T = [];
|
|
3101
3101
|
for (let B = 0; B < I.length; B++) {
|
|
3102
|
-
const
|
|
3103
|
-
|
|
3102
|
+
const N = I[B], ne = "" + k + B;
|
|
3103
|
+
T.push(ne), y[ne] = { node: N, lastCount: 0 }, g[ne] = {};
|
|
3104
3104
|
for (let Ie = 0; Ie < C.length; Ie++) {
|
|
3105
3105
|
const L = C[Ie];
|
|
3106
|
-
y[L] && y[L].node.mode ===
|
|
3106
|
+
y[L] && y[L].node.mode === N.mode ? (g[L][ne] = f(y[L].lastCount + N.length, N.mode) - f(y[L].lastCount, N.mode), y[L].lastCount += N.length) : (y[L] && (y[L].lastCount = N.length), g[L][ne] = f(N.length, N.mode) + 4 + e.getCharCountIndicator(N.mode, w));
|
|
3107
3107
|
}
|
|
3108
3108
|
}
|
|
3109
|
-
C =
|
|
3109
|
+
C = T;
|
|
3110
3110
|
}
|
|
3111
3111
|
for (let k = 0; k < C.length; k++)
|
|
3112
3112
|
g[C[k]].end = 0;
|
|
@@ -3134,17 +3134,17 @@ var zn = $t.exports;
|
|
|
3134
3134
|
return typeof g == "string" ? y.push(E(g, null)) : g.data && y.push(E(g.data, g.mode)), y;
|
|
3135
3135
|
}, []);
|
|
3136
3136
|
}, t.fromString = function(w, y) {
|
|
3137
|
-
const g = h(w, l.isKanjiModeEnabled()), C = m(g), k = p(C, y), I = a.find_path(k.map, "start", "end"),
|
|
3137
|
+
const g = h(w, l.isKanjiModeEnabled()), C = m(g), k = p(C, y), I = a.find_path(k.map, "start", "end"), T = [];
|
|
3138
3138
|
for (let B = 1; B < I.length - 1; B++)
|
|
3139
|
-
|
|
3140
|
-
return t.fromArray(u(
|
|
3139
|
+
T.push(k.table[I[B]].node);
|
|
3140
|
+
return t.fromArray(u(T));
|
|
3141
3141
|
}, t.rawSplit = function(w) {
|
|
3142
3142
|
return t.fromArray(
|
|
3143
3143
|
h(w, l.isKanjiModeEnabled())
|
|
3144
3144
|
);
|
|
3145
3145
|
};
|
|
3146
3146
|
})(Mt);
|
|
3147
|
-
const Ae = _,
|
|
3147
|
+
const Ae = _, Te = Ce, qn = Sn, Vn = Cn, Hn = St, Yn = Ct, Ue = Et, Oe = Ee, jn = kn, xe = It, Kn = Dt, Qn = z, Ne = Mt;
|
|
3148
3148
|
function Gn(t, e) {
|
|
3149
3149
|
const n = t.size, r = Yn.getPositions(e);
|
|
3150
3150
|
for (let i = 0; i < r.length; i++) {
|
|
@@ -3220,8 +3220,8 @@ function tr(t, e, n) {
|
|
|
3220
3220
|
let b = 0;
|
|
3221
3221
|
const w = new Uint8Array(t.buffer);
|
|
3222
3222
|
for (let I = 0; I < s; I++) {
|
|
3223
|
-
const
|
|
3224
|
-
p[I] = w.slice(m, m +
|
|
3223
|
+
const T = I < a ? c : h;
|
|
3224
|
+
p[I] = w.slice(m, m + T), E[I] = u.encode(p[I]), m += T, b = Math.max(b, T);
|
|
3225
3225
|
}
|
|
3226
3226
|
const y = new Uint8Array(r);
|
|
3227
3227
|
let g = 0, C, k;
|
|
@@ -3236,14 +3236,14 @@ function tr(t, e, n) {
|
|
|
3236
3236
|
function nr(t, e, n, r) {
|
|
3237
3237
|
let i;
|
|
3238
3238
|
if (Array.isArray(t))
|
|
3239
|
-
i =
|
|
3239
|
+
i = Ne.fromArray(t);
|
|
3240
3240
|
else if (typeof t == "string") {
|
|
3241
3241
|
let d = e;
|
|
3242
3242
|
if (!d) {
|
|
3243
|
-
const c =
|
|
3243
|
+
const c = Ne.rawSplit(t);
|
|
3244
3244
|
d = xe.getBestVersionForData(c, n);
|
|
3245
3245
|
}
|
|
3246
|
-
i =
|
|
3246
|
+
i = Ne.fromString(t, d || 40);
|
|
3247
3247
|
} else
|
|
3248
3248
|
throw new Error("Invalid data");
|
|
3249
3249
|
const o = xe.getBestVersionForData(i, n);
|
|
@@ -3273,10 +3273,10 @@ Minimum version required to store current data is: ` + o + `.
|
|
|
3273
3273
|
vt.create = function(e, n) {
|
|
3274
3274
|
if (typeof e > "u" || e === "")
|
|
3275
3275
|
throw new Error("No input text");
|
|
3276
|
-
let r =
|
|
3277
|
-
return typeof n < "u" && (r =
|
|
3276
|
+
let r = Te.M, i, o;
|
|
3277
|
+
return typeof n < "u" && (r = Te.from(n.errorCorrectionLevel, Te.M), i = xe.from(n.version), o = Ue.from(n.maskPattern), n.toSJISFunc && Ae.setToSJISFunction(n.toSJISFunc)), nr(e, i, r, o);
|
|
3278
3278
|
};
|
|
3279
|
-
var
|
|
3279
|
+
var Tt = {}, Ge = {};
|
|
3280
3280
|
(function(t) {
|
|
3281
3281
|
function e(n) {
|
|
3282
3282
|
if (typeof n == "number" && (n = n.toString()), typeof n != "string")
|
|
@@ -3351,8 +3351,8 @@ var Nt = {}, Ge = {};
|
|
|
3351
3351
|
const d = t.render(o, s, a), c = a.type || "image/png", h = a.rendererOpts || {};
|
|
3352
3352
|
return d.toDataURL(c, h.quality);
|
|
3353
3353
|
};
|
|
3354
|
-
})(
|
|
3355
|
-
var
|
|
3354
|
+
})(Tt);
|
|
3355
|
+
var Nt = {};
|
|
3356
3356
|
const rr = Ge;
|
|
3357
3357
|
function ct(t, e) {
|
|
3358
3358
|
const n = t.a / 255, r = e + '="' + t.hex + '"';
|
|
@@ -3370,12 +3370,12 @@ function ir(t, e, n) {
|
|
|
3370
3370
|
}
|
|
3371
3371
|
return r;
|
|
3372
3372
|
}
|
|
3373
|
-
|
|
3373
|
+
Nt.render = function(e, n, r) {
|
|
3374
3374
|
const i = rr.getOptions(n), o = e.modules.size, s = e.modules.data, l = o + i.margin * 2, a = i.color.light.a ? "<path " + ct(i.color.light, "fill") + ' d="M0 0h' + l + "v" + l + 'H0z"/>' : "", d = "<path " + ct(i.color.dark, "stroke") + ' d="' + ir(s, o, i.margin) + '"/>', c = 'viewBox="0 0 ' + l + " " + l + '"', f = '<svg xmlns="http://www.w3.org/2000/svg" ' + (i.width ? 'width="' + i.width + '" height="' + i.width + '" ' : "") + c + ' shape-rendering="crispEdges">' + a + d + `</svg>
|
|
3375
3375
|
`;
|
|
3376
3376
|
return typeof r == "function" && r(null, f), f;
|
|
3377
3377
|
};
|
|
3378
|
-
const or = vn, ze = vt, Rt =
|
|
3378
|
+
const or = vn, ze = vt, Rt = Tt, sr = Nt;
|
|
3379
3379
|
function Je(t, e, n, r, i) {
|
|
3380
3380
|
const o = [].slice.call(arguments, 1), s = o.length, l = typeof o[s - 1] == "function";
|
|
3381
3381
|
if (!l && !or())
|