@one-payments/web-components 1.2.2 → 1.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.
- package/dist/index.d.ts +15 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +617 -517
- package/dist/index.js.map +1 -1
- package/dist/one-payment.d.ts +2 -0
- package/dist/one-payment.d.ts.map +1 -1
- package/dist/one-payment.js +102 -4
- package/dist/one-payment.js.map +1 -1
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -3,16 +3,16 @@
|
|
|
3
3
|
* Copyright 2019 Google LLC
|
|
4
4
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
5
5
|
*/
|
|
6
|
-
const ye = globalThis,
|
|
7
|
-
let
|
|
6
|
+
const ye = globalThis, qe = ye.ShadowRoot && (ye.ShadyCSS === void 0 || ye.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, Ve = Symbol(), Ge = /* @__PURE__ */ new WeakMap();
|
|
7
|
+
let ht = class {
|
|
8
8
|
constructor(e, r, n) {
|
|
9
|
-
if (this._$cssResult$ = !0, n !==
|
|
9
|
+
if (this._$cssResult$ = !0, n !== Ve) throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
|
|
10
10
|
this.cssText = e, this.t = r;
|
|
11
11
|
}
|
|
12
12
|
get styleSheet() {
|
|
13
13
|
let e = this.o;
|
|
14
14
|
const r = this.t;
|
|
15
|
-
if (
|
|
15
|
+
if (qe && e === void 0) {
|
|
16
16
|
const n = r !== void 0 && r.length === 1;
|
|
17
17
|
n && (e = Ge.get(r)), e === void 0 && ((this.o = e = new CSSStyleSheet()).replaceSync(this.cssText), n && Ge.set(r, e));
|
|
18
18
|
}
|
|
@@ -22,30 +22,30 @@ let ut = class {
|
|
|
22
22
|
return this.cssText;
|
|
23
23
|
}
|
|
24
24
|
};
|
|
25
|
-
const
|
|
25
|
+
const Lt = (t) => new ht(typeof t == "string" ? t : t + "", void 0, Ve), Bt = (t, ...e) => {
|
|
26
26
|
const r = t.length === 1 ? t[0] : e.reduce((n, i, o) => n + ((s) => {
|
|
27
27
|
if (s._$cssResult$ === !0) return s.cssText;
|
|
28
28
|
if (typeof s == "number") return s;
|
|
29
29
|
throw Error("Value passed to 'css' function must be a 'css' function result: " + s + ". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.");
|
|
30
30
|
})(i) + t[o + 1], t[0]);
|
|
31
|
-
return new
|
|
32
|
-
},
|
|
33
|
-
if (
|
|
31
|
+
return new ht(r, t, Ve);
|
|
32
|
+
}, Ft = (t, e) => {
|
|
33
|
+
if (qe) t.adoptedStyleSheets = e.map((r) => r instanceof CSSStyleSheet ? r : r.styleSheet);
|
|
34
34
|
else for (const r of e) {
|
|
35
35
|
const n = document.createElement("style"), i = ye.litNonce;
|
|
36
36
|
i !== void 0 && n.setAttribute("nonce", i), n.textContent = r.cssText, t.appendChild(n);
|
|
37
37
|
}
|
|
38
|
-
},
|
|
38
|
+
}, We = qe ? (t) => t : (t) => t instanceof CSSStyleSheet ? ((e) => {
|
|
39
39
|
let r = "";
|
|
40
40
|
for (const n of e.cssRules) r += n.cssText;
|
|
41
|
-
return
|
|
41
|
+
return Lt(r);
|
|
42
42
|
})(t) : t;
|
|
43
43
|
/**
|
|
44
44
|
* @license
|
|
45
45
|
* Copyright 2017 Google LLC
|
|
46
46
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
47
47
|
*/
|
|
48
|
-
const { is:
|
|
48
|
+
const { is: Ut, defineProperty: zt, getOwnPropertyDescriptor: Ot, getOwnPropertyNames: qt, getOwnPropertySymbols: Vt, getPrototypeOf: Ht } = Object, O = globalThis, Xe = O.trustedTypes, Yt = Xe ? Xe.emptyScript : "", Ie = O.reactiveElementPolyfillSupport, ie = (t, e) => t, be = { toAttribute(t, e) {
|
|
49
49
|
switch (e) {
|
|
50
50
|
case Boolean:
|
|
51
51
|
t = t ? Yt : null;
|
|
@@ -73,7 +73,7 @@ const { is: qt, defineProperty: Ot, getOwnPropertyDescriptor: jt, getOwnProperty
|
|
|
73
73
|
}
|
|
74
74
|
}
|
|
75
75
|
return r;
|
|
76
|
-
} },
|
|
76
|
+
} }, He = (t, e) => !Ut(t, e), et = { attribute: !0, type: String, converter: be, reflect: !1, useDefault: !1, hasChanged: He };
|
|
77
77
|
Symbol.metadata ?? (Symbol.metadata = Symbol("metadata")), O.litPropertyMetadata ?? (O.litPropertyMetadata = /* @__PURE__ */ new WeakMap());
|
|
78
78
|
let K = class extends HTMLElement {
|
|
79
79
|
static addInitializer(e) {
|
|
@@ -85,11 +85,11 @@ let K = class extends HTMLElement {
|
|
|
85
85
|
static createProperty(e, r = et) {
|
|
86
86
|
if (r.state && (r.attribute = !1), this._$Ei(), this.prototype.hasOwnProperty(e) && ((r = Object.create(r)).wrapped = !0), this.elementProperties.set(e, r), !r.noAccessor) {
|
|
87
87
|
const n = Symbol(), i = this.getPropertyDescriptor(e, n, r);
|
|
88
|
-
i !== void 0 &&
|
|
88
|
+
i !== void 0 && zt(this.prototype, e, i);
|
|
89
89
|
}
|
|
90
90
|
}
|
|
91
91
|
static getPropertyDescriptor(e, r, n) {
|
|
92
|
-
const { get: i, set: o } =
|
|
92
|
+
const { get: i, set: o } = Ot(this.prototype, e) ?? { get() {
|
|
93
93
|
return this[r];
|
|
94
94
|
}, set(s) {
|
|
95
95
|
this[r] = s;
|
|
@@ -104,13 +104,13 @@ let K = class extends HTMLElement {
|
|
|
104
104
|
}
|
|
105
105
|
static _$Ei() {
|
|
106
106
|
if (this.hasOwnProperty(ie("elementProperties"))) return;
|
|
107
|
-
const e =
|
|
107
|
+
const e = Ht(this);
|
|
108
108
|
e.finalize(), e.l !== void 0 && (this.l = [...e.l]), this.elementProperties = new Map(e.elementProperties);
|
|
109
109
|
}
|
|
110
110
|
static finalize() {
|
|
111
111
|
if (this.hasOwnProperty(ie("finalized"))) return;
|
|
112
112
|
if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(ie("properties"))) {
|
|
113
|
-
const r = this.properties, n = [...
|
|
113
|
+
const r = this.properties, n = [...qt(r), ...Vt(r)];
|
|
114
114
|
for (const i of n) this.createProperty(i, r[i]);
|
|
115
115
|
}
|
|
116
116
|
const e = this[Symbol.metadata];
|
|
@@ -129,8 +129,8 @@ let K = class extends HTMLElement {
|
|
|
129
129
|
const r = [];
|
|
130
130
|
if (Array.isArray(e)) {
|
|
131
131
|
const n = new Set(e.flat(1 / 0).reverse());
|
|
132
|
-
for (const i of n) r.unshift(
|
|
133
|
-
} else e !== void 0 && r.push(
|
|
132
|
+
for (const i of n) r.unshift(We(i));
|
|
133
|
+
} else e !== void 0 && r.push(We(e));
|
|
134
134
|
return r;
|
|
135
135
|
}
|
|
136
136
|
static _$Eu(e, r) {
|
|
@@ -159,7 +159,7 @@ let K = class extends HTMLElement {
|
|
|
159
159
|
}
|
|
160
160
|
createRenderRoot() {
|
|
161
161
|
const e = this.shadowRoot ?? this.attachShadow(this.constructor.shadowRootOptions);
|
|
162
|
-
return
|
|
162
|
+
return Ft(e, this.constructor.elementStyles), e;
|
|
163
163
|
}
|
|
164
164
|
connectedCallback() {
|
|
165
165
|
var e;
|
|
@@ -194,15 +194,15 @@ let K = class extends HTMLElement {
|
|
|
194
194
|
if (i !== void 0 && this._$Em !== i) {
|
|
195
195
|
const l = n.getPropertyOptions(i), a = typeof l.converter == "function" ? { fromAttribute: l.converter } : ((o = l.converter) == null ? void 0 : o.fromAttribute) !== void 0 ? l.converter : be;
|
|
196
196
|
this._$Em = i;
|
|
197
|
-
const
|
|
198
|
-
this[i] =
|
|
197
|
+
const c = a.fromAttribute(r, l.type);
|
|
198
|
+
this[i] = c ?? ((s = this._$Ej) == null ? void 0 : s.get(i)) ?? c, this._$Em = null;
|
|
199
199
|
}
|
|
200
200
|
}
|
|
201
201
|
requestUpdate(e, r, n) {
|
|
202
202
|
var i;
|
|
203
203
|
if (e !== void 0) {
|
|
204
204
|
const o = this.constructor, s = this[e];
|
|
205
|
-
if (n ?? (n = o.getPropertyOptions(e)), !((n.hasChanged ??
|
|
205
|
+
if (n ?? (n = o.getPropertyOptions(e)), !((n.hasChanged ?? He)(s, r) || n.useDefault && n.reflect && s === ((i = this._$Ej) == null ? void 0 : i.get(e)) && !this.hasAttribute(o._$Eu(e, n)))) return;
|
|
206
206
|
this.C(e, r, n);
|
|
207
207
|
}
|
|
208
208
|
this.isUpdatePending === !1 && (this._$ES = this._$EP());
|
|
@@ -284,59 +284,59 @@ K.elementStyles = [], K.shadowRootOptions = { mode: "open" }, K[ie("elementPrope
|
|
|
284
284
|
* Copyright 2017 Google LLC
|
|
285
285
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
286
286
|
*/
|
|
287
|
-
const oe = globalThis, ve = oe.trustedTypes, tt = ve ? ve.createPolicy("lit-html", { createHTML: (t) => t }) : void 0, pt = "$lit$",
|
|
288
|
-
\f\r]`, ne = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, rt = /-->/g, nt = />/g, V = RegExp(`>|${
|
|
289
|
-
\f\r"'\`<>=]|("|')|))|$)`, "g"), it = /'/g, ot = /"/g, ft = /^(?:script|style|textarea|title)$/i, Kt = (t) => (e, ...r) => ({ _$litType$: t, strings: e, values: r }),
|
|
287
|
+
const oe = globalThis, ve = oe.trustedTypes, tt = ve ? ve.createPolicy("lit-html", { createHTML: (t) => t }) : void 0, pt = "$lit$", U = `lit$${Math.random().toFixed(9).slice(2)}$`, mt = "?" + U, jt = `<${mt}>`, Q = document, le = () => Q.createComment(""), ce = (t) => t === null || typeof t != "object" && typeof t != "function", Ye = Array.isArray, Qt = (t) => Ye(t) || typeof (t == null ? void 0 : t[Symbol.iterator]) == "function", _e = `[
|
|
288
|
+
\f\r]`, ne = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, rt = /-->/g, nt = />/g, V = RegExp(`>|${_e}(?:([^\\s"'>=/]+)(${_e}*=${_e}*(?:[^
|
|
289
|
+
\f\r"'\`<>=]|("|')|))|$)`, "g"), it = /'/g, ot = /"/g, ft = /^(?:script|style|textarea|title)$/i, Kt = (t) => (e, ...r) => ({ _$litType$: t, strings: e, values: r }), C = Kt(1), J = Symbol.for("lit-noChange"), I = Symbol.for("lit-nothing"), st = /* @__PURE__ */ new WeakMap(), H = Q.createTreeWalker(Q, 129);
|
|
290
290
|
function gt(t, e) {
|
|
291
291
|
if (!Ye(t) || !t.hasOwnProperty("raw")) throw Error("invalid template strings array");
|
|
292
292
|
return tt !== void 0 ? tt.createHTML(e) : e;
|
|
293
293
|
}
|
|
294
|
-
const
|
|
294
|
+
const Zt = (t, e) => {
|
|
295
295
|
const r = t.length - 1, n = [];
|
|
296
296
|
let i, o = e === 2 ? "<svg>" : e === 3 ? "<math>" : "", s = ne;
|
|
297
297
|
for (let l = 0; l < r; l++) {
|
|
298
298
|
const a = t[l];
|
|
299
|
-
let
|
|
300
|
-
for (;
|
|
301
|
-
const
|
|
302
|
-
o += s === ne ? a +
|
|
299
|
+
let c, d, p = -1, h = 0;
|
|
300
|
+
for (; h < a.length && (s.lastIndex = h, d = s.exec(a), d !== null); ) h = s.lastIndex, s === ne ? d[1] === "!--" ? s = rt : d[1] !== void 0 ? s = nt : d[2] !== void 0 ? (ft.test(d[2]) && (i = RegExp("</" + d[2], "g")), s = V) : d[3] !== void 0 && (s = V) : s === V ? d[0] === ">" ? (s = i ?? ne, p = -1) : d[1] === void 0 ? p = -2 : (p = s.lastIndex - d[2].length, c = d[1], s = d[3] === void 0 ? V : d[3] === '"' ? ot : it) : s === ot || s === it ? s = V : s === rt || s === nt ? s = ne : (s = V, i = void 0);
|
|
301
|
+
const u = s === V && t[l + 1].startsWith("/>") ? " " : "";
|
|
302
|
+
o += s === ne ? a + jt : p >= 0 ? (n.push(c), a.slice(0, p) + pt + a.slice(p) + U + u) : a + U + (p === -2 ? l : u);
|
|
303
303
|
}
|
|
304
304
|
return [gt(t, o + (t[r] || "<?>") + (e === 2 ? "</svg>" : e === 3 ? "</math>" : "")), n];
|
|
305
305
|
};
|
|
306
|
-
class
|
|
306
|
+
class de {
|
|
307
307
|
constructor({ strings: e, _$litType$: r }, n) {
|
|
308
308
|
let i;
|
|
309
309
|
this.parts = [];
|
|
310
310
|
let o = 0, s = 0;
|
|
311
|
-
const l = e.length - 1, a = this.parts, [
|
|
312
|
-
if (this.el =
|
|
313
|
-
const
|
|
314
|
-
|
|
311
|
+
const l = e.length - 1, a = this.parts, [c, d] = Zt(e, r);
|
|
312
|
+
if (this.el = de.createElement(c, n), H.currentNode = this.el.content, r === 2 || r === 3) {
|
|
313
|
+
const p = this.el.content.firstChild;
|
|
314
|
+
p.replaceWith(...p.childNodes);
|
|
315
315
|
}
|
|
316
|
-
for (; (i =
|
|
316
|
+
for (; (i = H.nextNode()) !== null && a.length < l; ) {
|
|
317
317
|
if (i.nodeType === 1) {
|
|
318
|
-
if (i.hasAttributes()) for (const
|
|
319
|
-
const
|
|
320
|
-
a.push({ type: 1, index: o, name: m[2], strings:
|
|
321
|
-
} else
|
|
318
|
+
if (i.hasAttributes()) for (const p of i.getAttributeNames()) if (p.endsWith(pt)) {
|
|
319
|
+
const h = d[s++], u = i.getAttribute(p).split(U), m = /([.?@])?(.*)/.exec(h);
|
|
320
|
+
a.push({ type: 1, index: o, name: m[2], strings: u, ctor: m[1] === "." ? Gt : m[1] === "?" ? Wt : m[1] === "@" ? Xt : Se }), i.removeAttribute(p);
|
|
321
|
+
} else p.startsWith(U) && (a.push({ type: 6, index: o }), i.removeAttribute(p));
|
|
322
322
|
if (ft.test(i.tagName)) {
|
|
323
|
-
const
|
|
324
|
-
if (
|
|
323
|
+
const p = i.textContent.split(U), h = p.length - 1;
|
|
324
|
+
if (h > 0) {
|
|
325
325
|
i.textContent = ve ? ve.emptyScript : "";
|
|
326
|
-
for (let
|
|
327
|
-
i.append(
|
|
326
|
+
for (let u = 0; u < h; u++) i.append(p[u], le()), H.nextNode(), a.push({ type: 2, index: ++o });
|
|
327
|
+
i.append(p[h], le());
|
|
328
328
|
}
|
|
329
329
|
}
|
|
330
330
|
} else if (i.nodeType === 8) if (i.data === mt) a.push({ type: 2, index: o });
|
|
331
331
|
else {
|
|
332
|
-
let
|
|
333
|
-
for (; (
|
|
332
|
+
let p = -1;
|
|
333
|
+
for (; (p = i.data.indexOf(U, p + 1)) !== -1; ) a.push({ type: 7, index: o }), p += U.length - 1;
|
|
334
334
|
}
|
|
335
335
|
o++;
|
|
336
336
|
}
|
|
337
337
|
}
|
|
338
338
|
static createElement(e, r) {
|
|
339
|
-
const n =
|
|
339
|
+
const n = Q.createElement("template");
|
|
340
340
|
return n.innerHTML = e, n;
|
|
341
341
|
}
|
|
342
342
|
}
|
|
@@ -344,7 +344,7 @@ function G(t, e, r = t, n) {
|
|
|
344
344
|
var s, l;
|
|
345
345
|
if (e === J) return e;
|
|
346
346
|
let i = n !== void 0 ? (s = r._$Co) == null ? void 0 : s[n] : r._$Cl;
|
|
347
|
-
const o =
|
|
347
|
+
const o = ce(e) ? void 0 : e._$litDirective$;
|
|
348
348
|
return (i == null ? void 0 : i.constructor) !== o && ((l = i == null ? void 0 : i._$AO) == null || l.call(i, !1), o === void 0 ? i = void 0 : (i = new o(t), i._$AT(t, r, n)), n !== void 0 ? (r._$Co ?? (r._$Co = []))[n] = i : r._$Cl = i), i !== void 0 && (e = G(t, i._$AS(t, e.values), i, n)), e;
|
|
349
349
|
}
|
|
350
350
|
class Jt {
|
|
@@ -358,24 +358,24 @@ class Jt {
|
|
|
358
358
|
return this._$AM._$AU;
|
|
359
359
|
}
|
|
360
360
|
u(e) {
|
|
361
|
-
const { el: { content: r }, parts: n } = this._$AD, i = ((e == null ? void 0 : e.creationScope) ??
|
|
362
|
-
|
|
363
|
-
let o =
|
|
361
|
+
const { el: { content: r }, parts: n } = this._$AD, i = ((e == null ? void 0 : e.creationScope) ?? Q).importNode(r, !0);
|
|
362
|
+
H.currentNode = i;
|
|
363
|
+
let o = H.nextNode(), s = 0, l = 0, a = n[0];
|
|
364
364
|
for (; a !== void 0; ) {
|
|
365
365
|
if (s === a.index) {
|
|
366
|
-
let
|
|
367
|
-
a.type === 2 ?
|
|
366
|
+
let c;
|
|
367
|
+
a.type === 2 ? c = new he(o, o.nextSibling, this, e) : a.type === 1 ? c = new a.ctor(o, a.name, a.strings, this, e) : a.type === 6 && (c = new er(o, this, e)), this._$AV.push(c), a = n[++l];
|
|
368
368
|
}
|
|
369
|
-
s !== (a == null ? void 0 : a.index) && (o =
|
|
369
|
+
s !== (a == null ? void 0 : a.index) && (o = H.nextNode(), s++);
|
|
370
370
|
}
|
|
371
|
-
return
|
|
371
|
+
return H.currentNode = Q, i;
|
|
372
372
|
}
|
|
373
373
|
p(e) {
|
|
374
374
|
let r = 0;
|
|
375
375
|
for (const n of this._$AV) n !== void 0 && (n.strings !== void 0 ? (n._$AI(e, n, r), r += n.strings.length - 2) : n._$AI(e[r])), r++;
|
|
376
376
|
}
|
|
377
377
|
}
|
|
378
|
-
class
|
|
378
|
+
class he {
|
|
379
379
|
get _$AU() {
|
|
380
380
|
var e;
|
|
381
381
|
return ((e = this._$AM) == null ? void 0 : e._$AU) ?? this._$Cv;
|
|
@@ -395,7 +395,7 @@ class ue {
|
|
|
395
395
|
return this._$AB;
|
|
396
396
|
}
|
|
397
397
|
_$AI(e, r = this) {
|
|
398
|
-
e = G(this, e, r),
|
|
398
|
+
e = G(this, e, r), ce(e) ? e === I || e == null || e === "" ? (this._$AH !== I && this._$AR(), this._$AH = I) : e !== this._$AH && e !== J && this._(e) : e._$litType$ !== void 0 ? this.$(e) : e.nodeType !== void 0 ? this.T(e) : Qt(e) ? this.k(e) : this._(e);
|
|
399
399
|
}
|
|
400
400
|
O(e) {
|
|
401
401
|
return this._$AA.parentNode.insertBefore(e, this._$AB);
|
|
@@ -404,11 +404,11 @@ class ue {
|
|
|
404
404
|
this._$AH !== e && (this._$AR(), this._$AH = this.O(e));
|
|
405
405
|
}
|
|
406
406
|
_(e) {
|
|
407
|
-
this._$AH !== I &&
|
|
407
|
+
this._$AH !== I && ce(this._$AH) ? this._$AA.nextSibling.data = e : this.T(Q.createTextNode(e)), this._$AH = e;
|
|
408
408
|
}
|
|
409
409
|
$(e) {
|
|
410
410
|
var o;
|
|
411
|
-
const { values: r, _$litType$: n } = e, i = typeof n == "number" ? this._$AC(e) : (n.el === void 0 && (n.el =
|
|
411
|
+
const { values: r, _$litType$: n } = e, i = typeof n == "number" ? this._$AC(e) : (n.el === void 0 && (n.el = de.createElement(gt(n.h, n.h[0]), this.options)), n);
|
|
412
412
|
if (((o = this._$AH) == null ? void 0 : o._$AD) === i) this._$AH.p(r);
|
|
413
413
|
else {
|
|
414
414
|
const s = new Jt(i, this), l = s.u(this.options);
|
|
@@ -417,13 +417,13 @@ class ue {
|
|
|
417
417
|
}
|
|
418
418
|
_$AC(e) {
|
|
419
419
|
let r = st.get(e.strings);
|
|
420
|
-
return r === void 0 && st.set(e.strings, r = new
|
|
420
|
+
return r === void 0 && st.set(e.strings, r = new de(e)), r;
|
|
421
421
|
}
|
|
422
422
|
k(e) {
|
|
423
423
|
Ye(this._$AH) || (this._$AH = [], this._$AR());
|
|
424
424
|
const r = this._$AH;
|
|
425
425
|
let n, i = 0;
|
|
426
|
-
for (const o of e) i === r.length ? r.push(n = new
|
|
426
|
+
for (const o of e) i === r.length ? r.push(n = new he(this.O(le()), this.O(le()), this, this.options)) : n = r[i], n._$AI(o), i++;
|
|
427
427
|
i < r.length && (this._$AR(n && n._$AB.nextSibling, i), r.length = i);
|
|
428
428
|
}
|
|
429
429
|
_$AR(e = this._$AA.nextSibling, r) {
|
|
@@ -451,11 +451,11 @@ class Se {
|
|
|
451
451
|
_$AI(e, r = this, n, i) {
|
|
452
452
|
const o = this.strings;
|
|
453
453
|
let s = !1;
|
|
454
|
-
if (o === void 0) e = G(this, e, r, 0), s = !
|
|
454
|
+
if (o === void 0) e = G(this, e, r, 0), s = !ce(e) || e !== this._$AH && e !== J, s && (this._$AH = e);
|
|
455
455
|
else {
|
|
456
456
|
const l = e;
|
|
457
|
-
let a,
|
|
458
|
-
for (e = o[0], a = 0; a < o.length - 1; a++)
|
|
457
|
+
let a, c;
|
|
458
|
+
for (e = o[0], a = 0; a < o.length - 1; a++) c = G(this, l[n + a], r, a), c === J && (c = this._$AH[a]), s || (s = !ce(c) || c !== this._$AH[a]), c === I ? e = I : e !== I && (e += (c ?? "") + o[a + 1]), this._$AH[a] = c;
|
|
459
459
|
}
|
|
460
460
|
s && !i && this.j(e);
|
|
461
461
|
}
|
|
@@ -471,7 +471,7 @@ class Gt extends Se {
|
|
|
471
471
|
this.element[this.name] = e === I ? void 0 : e;
|
|
472
472
|
}
|
|
473
473
|
}
|
|
474
|
-
class
|
|
474
|
+
class Wt extends Se {
|
|
475
475
|
constructor() {
|
|
476
476
|
super(...arguments), this.type = 4;
|
|
477
477
|
}
|
|
@@ -479,7 +479,7 @@ class _t extends Se {
|
|
|
479
479
|
this.element.toggleAttribute(this.name, !!e && e !== I);
|
|
480
480
|
}
|
|
481
481
|
}
|
|
482
|
-
class
|
|
482
|
+
class Xt extends Se {
|
|
483
483
|
constructor(e, r, n, i, o) {
|
|
484
484
|
super(e, r, n, i, o), this.type = 5;
|
|
485
485
|
}
|
|
@@ -504,14 +504,14 @@ class er {
|
|
|
504
504
|
G(this, e);
|
|
505
505
|
}
|
|
506
506
|
}
|
|
507
|
-
const
|
|
508
|
-
|
|
507
|
+
const Me = oe.litHtmlPolyfillSupport;
|
|
508
|
+
Me == null || Me(de, he), (oe.litHtmlVersions ?? (oe.litHtmlVersions = [])).push("3.3.1");
|
|
509
509
|
const tr = (t, e, r) => {
|
|
510
510
|
const n = (r == null ? void 0 : r.renderBefore) ?? e;
|
|
511
511
|
let i = n._$litPart$;
|
|
512
512
|
if (i === void 0) {
|
|
513
513
|
const o = (r == null ? void 0 : r.renderBefore) ?? null;
|
|
514
|
-
n._$litPart$ = i = new
|
|
514
|
+
n._$litPart$ = i = new he(e.insertBefore(le(), o), o, void 0, r ?? {});
|
|
515
515
|
}
|
|
516
516
|
return i._$AI(t), i;
|
|
517
517
|
};
|
|
@@ -520,7 +520,7 @@ const tr = (t, e, r) => {
|
|
|
520
520
|
* Copyright 2017 Google LLC
|
|
521
521
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
522
522
|
*/
|
|
523
|
-
const
|
|
523
|
+
const j = globalThis;
|
|
524
524
|
class se extends K {
|
|
525
525
|
constructor() {
|
|
526
526
|
super(...arguments), this.renderOptions = { host: this }, this._$Do = void 0;
|
|
@@ -546,11 +546,11 @@ class se extends K {
|
|
|
546
546
|
return J;
|
|
547
547
|
}
|
|
548
548
|
}
|
|
549
|
-
var
|
|
550
|
-
se._$litElement$ = !0, se.finalized = !0, (
|
|
551
|
-
const De =
|
|
549
|
+
var ut;
|
|
550
|
+
se._$litElement$ = !0, se.finalized = !0, (ut = j.litElementHydrateSupport) == null || ut.call(j, { LitElement: se });
|
|
551
|
+
const De = j.litElementPolyfillSupport;
|
|
552
552
|
De == null || De({ LitElement: se });
|
|
553
|
-
(
|
|
553
|
+
(j.litElementVersions ?? (j.litElementVersions = [])).push("4.2.1");
|
|
554
554
|
/**
|
|
555
555
|
* @license
|
|
556
556
|
* Copyright 2017 Google LLC
|
|
@@ -566,7 +566,7 @@ const rr = (t) => (e, r) => {
|
|
|
566
566
|
* Copyright 2017 Google LLC
|
|
567
567
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
568
568
|
*/
|
|
569
|
-
const nr = { attribute: !0, type: String, converter: be, reflect: !1, hasChanged:
|
|
569
|
+
const nr = { attribute: !0, type: String, converter: be, reflect: !1, hasChanged: He }, ir = (t = nr, e, r) => {
|
|
570
570
|
const { kind: n, metadata: i } = r;
|
|
571
571
|
let o = globalThis.litPropertyMetadata.get(i);
|
|
572
572
|
if (o === void 0 && globalThis.litPropertyMetadata.set(i, o = /* @__PURE__ */ new Map()), n === "setter" && ((t = Object.create(t)).wrapped = !0), o.set(r.name, t), n === "accessor") {
|
|
@@ -587,7 +587,7 @@ const nr = { attribute: !0, type: String, converter: be, reflect: !1, hasChanged
|
|
|
587
587
|
}
|
|
588
588
|
throw Error("Unsupported decorator location: " + n);
|
|
589
589
|
};
|
|
590
|
-
function
|
|
590
|
+
function D(t) {
|
|
591
591
|
return (e, r) => typeof r == "object" ? ir(t, e, r) : ((n, i, o) => {
|
|
592
592
|
const s = i.hasOwnProperty(o);
|
|
593
593
|
return i.constructor.createProperty(o, n), s ? Object.getOwnPropertyDescriptor(i, o) : void 0;
|
|
@@ -598,16 +598,17 @@ function T(t) {
|
|
|
598
598
|
* Copyright 2017 Google LLC
|
|
599
599
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
600
600
|
*/
|
|
601
|
-
function
|
|
602
|
-
return
|
|
601
|
+
function _(t) {
|
|
602
|
+
return D({ ...t, state: !0, attribute: !1 });
|
|
603
603
|
}
|
|
604
604
|
function or(t) {
|
|
605
605
|
return t instanceof Error && ("response" in t && typeof t.response == "object" && t.response !== null || "data" in t && typeof t.data == "object" && t.data !== null);
|
|
606
606
|
}
|
|
607
|
-
var
|
|
607
|
+
var M = {
|
|
608
608
|
CARD: "card",
|
|
609
|
-
PAYNOW: "paynow"
|
|
610
|
-
|
|
609
|
+
PAYNOW: "paynow",
|
|
610
|
+
PROMPTPAY: "promptpay"
|
|
611
|
+
}, $ = {
|
|
611
612
|
IDLE: "idle",
|
|
612
613
|
INITIALIZING: "initializing",
|
|
613
614
|
READY: "ready",
|
|
@@ -751,10 +752,10 @@ function lr(t) {
|
|
|
751
752
|
return "https://public.dev.one.ooo";
|
|
752
753
|
}
|
|
753
754
|
}
|
|
754
|
-
var
|
|
755
|
+
var cr = class {
|
|
755
756
|
// Flag to ignore qrCode after user scans it
|
|
756
757
|
constructor(t, e) {
|
|
757
|
-
this.state = { status:
|
|
758
|
+
this.state = { status: $.IDLE }, this.subscribers = /* @__PURE__ */ new Set(), this.eventListeners = {}, this.paymentToken = null, this.paymentIntentId = null, this.pollingService = null, this.ignore3DSInPolling = !1, this.ignoreQRInPolling = !1, this.config = t, this.adapters = e;
|
|
758
759
|
}
|
|
759
760
|
/**
|
|
760
761
|
* Get the API base URL - uses apiBaseUrl if provided, otherwise derives from environment
|
|
@@ -909,7 +910,7 @@ var dr = class {
|
|
|
909
910
|
* @public
|
|
910
911
|
*/
|
|
911
912
|
async initialize(t) {
|
|
912
|
-
this.setState({ status:
|
|
913
|
+
this.setState({ status: $.INITIALIZING }), this.emit({
|
|
913
914
|
type: "initialize",
|
|
914
915
|
payload: t
|
|
915
916
|
});
|
|
@@ -940,32 +941,40 @@ var dr = class {
|
|
|
940
941
|
{
|
|
941
942
|
"x-token": this.paymentToken
|
|
942
943
|
}
|
|
943
|
-
),
|
|
944
|
+
), c = {
|
|
944
945
|
id: this.paymentIntentId,
|
|
945
946
|
amount: l.result.customerAmount || t.amount,
|
|
946
947
|
currency: l.result.currency || t.currency,
|
|
947
|
-
status:
|
|
948
|
+
status: $.READY,
|
|
948
949
|
...t.metadata && { metadata: t.metadata }
|
|
949
|
-
},
|
|
950
|
-
|
|
951
|
-
|
|
952
|
-
|
|
953
|
-
|
|
950
|
+
}, d = [];
|
|
951
|
+
let p = 0;
|
|
952
|
+
return a.result.paymentMethods.forEach((h) => {
|
|
953
|
+
const u = h.type.toLowerCase(), m = h.capabilities || [];
|
|
954
|
+
u.includes("card") && d.push({
|
|
955
|
+
id: "card",
|
|
954
956
|
enabled: !0,
|
|
955
|
-
priority: p
|
|
956
|
-
}
|
|
957
|
-
|
|
958
|
-
|
|
959
|
-
|
|
960
|
-
|
|
961
|
-
|
|
957
|
+
priority: p++
|
|
958
|
+
}), (u.includes("paynow") || m.includes("payments_pay_now")) && d.push({
|
|
959
|
+
id: "paynow",
|
|
960
|
+
enabled: !0,
|
|
961
|
+
priority: p++
|
|
962
|
+
}), (u.includes("promptpay") || u.includes("prompt pay") || m.includes("payments_prompt_pay")) && d.push({
|
|
963
|
+
id: "promptpay",
|
|
964
|
+
enabled: !0,
|
|
965
|
+
priority: p++
|
|
966
|
+
});
|
|
967
|
+
}), this.setState({
|
|
968
|
+
status: $.READY,
|
|
969
|
+
paymentIntent: c,
|
|
970
|
+
availableMethods: d
|
|
962
971
|
}), this.emit({
|
|
963
972
|
type: "initialized",
|
|
964
973
|
payload: {
|
|
965
|
-
paymentIntent:
|
|
974
|
+
paymentIntent: c,
|
|
966
975
|
paymentData: l.result
|
|
967
976
|
}
|
|
968
|
-
}),
|
|
977
|
+
}), c;
|
|
969
978
|
} catch (e) {
|
|
970
979
|
const r = {
|
|
971
980
|
code: "INITIALIZATION_FAILED",
|
|
@@ -973,7 +982,7 @@ var dr = class {
|
|
|
973
982
|
timestamp: this.adapters.timer.now()
|
|
974
983
|
};
|
|
975
984
|
throw this.setState({
|
|
976
|
-
status:
|
|
985
|
+
status: $.FAILED,
|
|
977
986
|
error: r
|
|
978
987
|
}), this.emit({
|
|
979
988
|
type: "payment_failed",
|
|
@@ -1041,7 +1050,7 @@ var dr = class {
|
|
|
1041
1050
|
if (!this.paymentToken)
|
|
1042
1051
|
throw new Error("Cannot submit payment: No payment token available");
|
|
1043
1052
|
this.ignore3DSInPolling = !1, this.ignoreQRInPolling = !1, this.setState({
|
|
1044
|
-
status:
|
|
1053
|
+
status: $.PROCESSING,
|
|
1045
1054
|
paymentIntent: r.paymentIntent,
|
|
1046
1055
|
selectedMethod: t,
|
|
1047
1056
|
availableMethods: r.availableMethods
|
|
@@ -1065,7 +1074,8 @@ var dr = class {
|
|
|
1065
1074
|
expiryYear: String(e.expiryYear),
|
|
1066
1075
|
cvc: String(e.cvv)
|
|
1067
1076
|
}
|
|
1068
|
-
} : { type: "qr" }
|
|
1077
|
+
} : t === "promptpay" ? { type: "prompt_pay" } : { type: "qr" }
|
|
1078
|
+
// PayNow
|
|
1069
1079
|
};
|
|
1070
1080
|
return await this.adapters.http.patch(
|
|
1071
1081
|
`${this.getApiBaseUrl()}/payment-intent/confirm`,
|
|
@@ -1077,33 +1087,33 @@ var dr = class {
|
|
|
1077
1087
|
id: this.paymentIntentId || "",
|
|
1078
1088
|
amount: r.paymentIntent.amount,
|
|
1079
1089
|
currency: r.paymentIntent.currency,
|
|
1080
|
-
status:
|
|
1090
|
+
status: $.PROCESSING
|
|
1081
1091
|
};
|
|
1082
1092
|
} catch (a) {
|
|
1083
|
-
let
|
|
1093
|
+
let c = "Unknown error", d = "PAYMENT_FAILED";
|
|
1084
1094
|
if (a instanceof Error)
|
|
1085
1095
|
try {
|
|
1086
1096
|
if (or(a)) {
|
|
1087
|
-
const
|
|
1088
|
-
|
|
1097
|
+
const h = (n = a.response) == null ? void 0 : n.data, u = a.data;
|
|
1098
|
+
h ? (c = h.message || ((i = h.error) == null ? void 0 : i.message) || a.message, d = h.code || ((o = h.error) == null ? void 0 : o.code) || d) : u ? (c = u.message || ((s = u.error) == null ? void 0 : s.message) || a.message, d = u.code || ((l = u.error) == null ? void 0 : l.code) || d) : c = a.message;
|
|
1089
1099
|
} else
|
|
1090
|
-
|
|
1100
|
+
c = a.message;
|
|
1091
1101
|
} catch {
|
|
1092
|
-
|
|
1102
|
+
c = a.message;
|
|
1093
1103
|
}
|
|
1094
|
-
const
|
|
1095
|
-
code:
|
|
1096
|
-
message:
|
|
1104
|
+
const p = {
|
|
1105
|
+
code: d,
|
|
1106
|
+
message: c,
|
|
1097
1107
|
timestamp: this.adapters.timer.now()
|
|
1098
1108
|
};
|
|
1099
1109
|
throw this.setState({
|
|
1100
|
-
status:
|
|
1101
|
-
error:
|
|
1110
|
+
status: $.FAILED,
|
|
1111
|
+
error: p,
|
|
1102
1112
|
paymentIntent: r.paymentIntent
|
|
1103
1113
|
}), this.emit({
|
|
1104
1114
|
type: "payment_failed",
|
|
1105
1115
|
payload: {
|
|
1106
|
-
error:
|
|
1116
|
+
error: p,
|
|
1107
1117
|
paymentIntent: r.paymentIntent
|
|
1108
1118
|
}
|
|
1109
1119
|
}), a;
|
|
@@ -1241,6 +1251,16 @@ var dr = class {
|
|
|
1241
1251
|
return;
|
|
1242
1252
|
}
|
|
1243
1253
|
if (t.nextActionUrl && !this.ignore3DSInPolling) {
|
|
1254
|
+
if (e.selectedMethod === "promptpay") {
|
|
1255
|
+
this.stopPolling(), this.emit({
|
|
1256
|
+
type: "promptpay_redirect",
|
|
1257
|
+
payload: {
|
|
1258
|
+
redirectUrl: t.nextActionUrl,
|
|
1259
|
+
methodId: e.selectedMethod
|
|
1260
|
+
}
|
|
1261
|
+
});
|
|
1262
|
+
return;
|
|
1263
|
+
}
|
|
1244
1264
|
if (e.selectedMethod === "paynow" && !this.ignoreQRInPolling) {
|
|
1245
1265
|
this.emit({
|
|
1246
1266
|
type: "qr_code_received",
|
|
@@ -1256,11 +1276,11 @@ var dr = class {
|
|
|
1256
1276
|
id: t.paymentIntentId,
|
|
1257
1277
|
amount: t.amount ?? e.paymentIntent.amount,
|
|
1258
1278
|
currency: t.currency ?? e.paymentIntent.currency,
|
|
1259
|
-
status:
|
|
1279
|
+
status: $.REQUIRES_ACTION,
|
|
1260
1280
|
...t.metadata && { metadata: t.metadata }
|
|
1261
1281
|
};
|
|
1262
1282
|
this.setState({
|
|
1263
|
-
status:
|
|
1283
|
+
status: $.REQUIRES_ACTION,
|
|
1264
1284
|
paymentIntent: n,
|
|
1265
1285
|
actionUrl: t.nextActionUrl,
|
|
1266
1286
|
selectedMethod: e.selectedMethod,
|
|
@@ -1284,7 +1304,7 @@ var dr = class {
|
|
|
1284
1304
|
};
|
|
1285
1305
|
if (t.status === "succeeded")
|
|
1286
1306
|
this.stopPolling(), this.setState({
|
|
1287
|
-
status:
|
|
1307
|
+
status: $.SUCCEEDED,
|
|
1288
1308
|
paymentIntent: r,
|
|
1289
1309
|
selectedMethod: e.selectedMethod
|
|
1290
1310
|
}), this.emit({
|
|
@@ -1302,7 +1322,7 @@ var dr = class {
|
|
|
1302
1322
|
timestamp: this.adapters.timer.now()
|
|
1303
1323
|
};
|
|
1304
1324
|
this.setState({
|
|
1305
|
-
status:
|
|
1325
|
+
status: $.FAILED,
|
|
1306
1326
|
error: i,
|
|
1307
1327
|
paymentIntent: r
|
|
1308
1328
|
}), this.emit({
|
|
@@ -1338,9 +1358,9 @@ var dr = class {
|
|
|
1338
1358
|
r(t);
|
|
1339
1359
|
});
|
|
1340
1360
|
}
|
|
1341
|
-
}, cr = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAALEAAABxCAYAAACawUJxAAAACXBIWXMAACxLAAAsSwGlPZapAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAADY3SURBVHgB7X0HnBRF+vZb1d0TN+ccyEgGRREDnp53KuqdHsYzYODMqCiKcc0ooGDW0zOdn4E7wxnxzFkBT7KEZXfZ3dmcJ3d31VfVM7M7G2amZ3YW+cs+/Iadnq6qru5+qupNVQXw2wKKc9poyotHvsHm3S8hBv5SoOqpyX+c5sHUC3ECBYJMxOhohD1tX3dsavP/jLpPxxf8XpQz807McDhdhSrC8kCJJEpFs8Fc90rjfxrYIWYfEqZMdFLGSblYcWXJCCkQAfx+raJBWN30/s+B+kD0wMeNOk40N5EJet+FREWxS/VUf9L1CX/GBPYzdLf6T0b9c1OD0jwRDUFHIIIARsHQZfM0fmVX7GXX1S9dCz4CccTtob9S8tjpJoxfdZPw794gCABe68xTq+evgwiN6avRr7ftkWtTcHd1w4MRGUYKI749uPzk2eB7vtE0Vq1RfTXq9bYapS5FbybC2kohlKw5ovLUP8J+iG7Gri551NWgtBjZMx+y4Yw1ECpijIqFovpmZ8ef/9pw1fcQe4/Vu2hW8fdGPOuo8FabAMIzjo06pNRY2Dq3/KJMCE804eaCS3ImiuNrWpQ2Eqlcf1WoURRQs8M+eknT0t0QXSNFz+Y+dJZLbP8npfq6E1Y4GWEoQHN3X8TrFo9n+X8O3S+FvUV1KAnsuwZFXqLCTrkiy2Fq/+6D0hc/BN9DF2BwQHdnLz6kRrVZQAfRGD1wq9KecXHmWVMjJCX31DxZK1LxDQKqzmdDkUdRaHFC9ovgI7DeZ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HtPD91lu08GlyVE0SzEKBlLr+5ZaPjyizveMCfUP2MPpgfyJxAFpP90R22cSRSblvtyitI1yqh2Btz5+A3WDIZGStAzZgEZdI2e0/u3aeeNbuVV/D3hEffrPYH0nMEeAWWZZ/3axJ5hHPe4hnTLPSBiISNCNYnImsaXEJohGVCInN65w1F59VueKt4HrAMGLG/kriALpFjMsy54063nrUXWYJ/6VFbhUd4NY65m63XV/RAgWLGSHMZojPhzNAgZSuOuSm/35rL795se2fP8EweeOK/Z3EAXR72fh/D+XdNL0Q0uenmxPnMqtccQf1IA/p0hw9vTVhduwXkrU518xnYBHMkCZYqUBIS4239YNWr+25x3PWf71+/Xq573WGER8Mk7g/ehFtwYwFUvKu6qIM6/gJFpEeoFJawhwSORliosnIXAE2pcklgdAsIrFKUJVt5WrFlo+xrWK9bb1zoPKGMYxhDGMYwxjGMIaxz+H/Az2jvqCLQeXsAAAAAElFTkSuQmCC", X = typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, Y = function(t, e, r, n, i, o, s, l, a, d) {
|
|
1342
|
-
var
|
|
1343
|
-
|
|
1361
|
+
}, dr = "https://images.ctfassets.net/c3n7jozh84hr/2A5qlS6JkUsOyFVPzQ0KlK/22b497afd71030ef1a44a52394b15027/______2022-06-30_11.03.43.png", ur = "https://www.airwallex.com/docs/assets/contentful/images.ctfassets.net/c3n7jozh84hr/xLSOJpNvMp7cBKdvDln0B/eb2f53a0a3f2317750739dceff9df413/______2022-06-30_10.59.00.png", Z = typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, Y = function(t, e, r, n, i, o, s, l, a, c) {
|
|
1362
|
+
var d = this;
|
|
1363
|
+
d.numeralDecimalMark = t || ".", d.numeralIntegerScale = e > 0 ? e : 0, d.numeralDecimalScale = r >= 0 ? r : 2, d.numeralThousandsGroupStyle = n || Y.groupStyle.thousand, d.numeralPositiveOnly = !!i, d.stripLeadingZeroes = o !== !1, d.prefix = s || s === "" ? s : "", d.signBeforePrefix = !!l, d.tailPrefix = !!a, d.delimiter = c || c === "" ? c : ",", d.delimiterRE = c ? new RegExp("\\" + c, "g") : "";
|
|
1344
1364
|
};
|
|
1345
1365
|
Y.groupStyle = {
|
|
1346
1366
|
thousand: "thousand",
|
|
@@ -1408,30 +1428,30 @@ yt.prototype = {
|
|
|
1408
1428
|
}), this.getFixedDateString(r);
|
|
1409
1429
|
},
|
|
1410
1430
|
getFixedDateString: function(t) {
|
|
1411
|
-
var e = this, r = e.datePattern, n = [], i = 0, o = 0, s = 0, l = 0, a = 0,
|
|
1412
|
-
t.length === 4 && r[0].toLowerCase() !== "y" && r[1].toLowerCase() !== "y" && (l = r[0] === "d" ? 0 : 2, a = 2 - l,
|
|
1413
|
-
switch (
|
|
1431
|
+
var e = this, r = e.datePattern, n = [], i = 0, o = 0, s = 0, l = 0, a = 0, c = 0, d, p, h, u = !1;
|
|
1432
|
+
t.length === 4 && r[0].toLowerCase() !== "y" && r[1].toLowerCase() !== "y" && (l = r[0] === "d" ? 0 : 2, a = 2 - l, d = parseInt(t.slice(l, l + 2), 10), p = parseInt(t.slice(a, a + 2), 10), n = this.getFixedDate(d, p, 0)), t.length === 8 && (r.forEach(function(y, P) {
|
|
1433
|
+
switch (y) {
|
|
1414
1434
|
case "d":
|
|
1415
|
-
i =
|
|
1435
|
+
i = P;
|
|
1416
1436
|
break;
|
|
1417
1437
|
case "m":
|
|
1418
|
-
o =
|
|
1438
|
+
o = P;
|
|
1419
1439
|
break;
|
|
1420
1440
|
default:
|
|
1421
|
-
s =
|
|
1441
|
+
s = P;
|
|
1422
1442
|
break;
|
|
1423
1443
|
}
|
|
1424
|
-
}),
|
|
1425
|
-
var m = n.length === 0 ? t : r.reduce(function(
|
|
1426
|
-
switch (
|
|
1444
|
+
}), c = s * 2, l = i <= s ? i * 2 : i * 2 + 2, a = o <= s ? o * 2 : o * 2 + 2, d = parseInt(t.slice(l, l + 2), 10), p = parseInt(t.slice(a, a + 2), 10), h = parseInt(t.slice(c, c + 4), 10), u = t.slice(c, c + 4).length === 4, n = this.getFixedDate(d, p, h)), t.length === 4 && (r[0] === "y" || r[1] === "y") && (a = r[0] === "m" ? 0 : 2, c = 2 - a, p = parseInt(t.slice(a, a + 2), 10), h = parseInt(t.slice(c, c + 2), 10), u = t.slice(c, c + 2).length === 2, n = [0, p, h]), t.length === 6 && (r[0] === "Y" || r[1] === "Y") && (a = r[0] === "m" ? 0 : 4, c = 2 - 0.5 * a, p = parseInt(t.slice(a, a + 2), 10), h = parseInt(t.slice(c, c + 4), 10), u = t.slice(c, c + 4).length === 4, n = [0, p, h]), n = e.getRangeFixedDate(n), e.date = n;
|
|
1445
|
+
var m = n.length === 0 ? t : r.reduce(function(y, P) {
|
|
1446
|
+
switch (P) {
|
|
1427
1447
|
case "d":
|
|
1428
|
-
return
|
|
1448
|
+
return y + (n[0] === 0 ? "" : e.addLeadingZero(n[0]));
|
|
1429
1449
|
case "m":
|
|
1430
|
-
return
|
|
1450
|
+
return y + (n[1] === 0 ? "" : e.addLeadingZero(n[1]));
|
|
1431
1451
|
case "y":
|
|
1432
|
-
return
|
|
1452
|
+
return y + (u ? e.addLeadingZeroForYear(n[2], !1) : "");
|
|
1433
1453
|
case "Y":
|
|
1434
|
-
return
|
|
1454
|
+
return y + (u ? e.addLeadingZeroForYear(n[2], !0) : "");
|
|
1435
1455
|
}
|
|
1436
1456
|
}, "");
|
|
1437
1457
|
return m;
|
|
@@ -1455,7 +1475,7 @@ yt.prototype = {
|
|
|
1455
1475
|
return e ? (t < 10 ? "000" : t < 100 ? "00" : t < 1e3 ? "0" : "") + t : (t < 10 ? "0" : "") + t;
|
|
1456
1476
|
}
|
|
1457
1477
|
};
|
|
1458
|
-
var
|
|
1478
|
+
var pr = yt, bt = function(t, e) {
|
|
1459
1479
|
var r = this;
|
|
1460
1480
|
r.time = [], r.blocks = [], r.timePattern = t, r.timeFormat = e, r.initBlocks();
|
|
1461
1481
|
};
|
|
@@ -1508,9 +1528,9 @@ bt.prototype = {
|
|
|
1508
1528
|
}), this.getFixedTimeString(r);
|
|
1509
1529
|
},
|
|
1510
1530
|
getFixedTimeString: function(t) {
|
|
1511
|
-
var e = this, r = e.timePattern, n = [], i = 0, o = 0, s = 0, l = 0, a = 0,
|
|
1512
|
-
return t.length === 6 && (r.forEach(function(
|
|
1513
|
-
switch (
|
|
1531
|
+
var e = this, r = e.timePattern, n = [], i = 0, o = 0, s = 0, l = 0, a = 0, c = 0, d, p, h;
|
|
1532
|
+
return t.length === 6 && (r.forEach(function(u, m) {
|
|
1533
|
+
switch (u) {
|
|
1514
1534
|
case "s":
|
|
1515
1535
|
i = m * 2;
|
|
1516
1536
|
break;
|
|
@@ -1521,8 +1541,8 @@ bt.prototype = {
|
|
|
1521
1541
|
s = m * 2;
|
|
1522
1542
|
break;
|
|
1523
1543
|
}
|
|
1524
|
-
}),
|
|
1525
|
-
switch (
|
|
1544
|
+
}), c = s, a = o, l = i, d = parseInt(t.slice(l, l + 2), 10), p = parseInt(t.slice(a, a + 2), 10), h = parseInt(t.slice(c, c + 2), 10), n = this.getFixedTime(h, p, d)), t.length === 4 && e.timePattern.indexOf("s") < 0 && (r.forEach(function(u, m) {
|
|
1545
|
+
switch (u) {
|
|
1526
1546
|
case "m":
|
|
1527
1547
|
o = m * 2;
|
|
1528
1548
|
break;
|
|
@@ -1530,14 +1550,14 @@ bt.prototype = {
|
|
|
1530
1550
|
s = m * 2;
|
|
1531
1551
|
break;
|
|
1532
1552
|
}
|
|
1533
|
-
}),
|
|
1553
|
+
}), c = s, a = o, d = 0, p = parseInt(t.slice(a, a + 2), 10), h = parseInt(t.slice(c, c + 2), 10), n = this.getFixedTime(h, p, d)), e.time = n, n.length === 0 ? t : r.reduce(function(u, m) {
|
|
1534
1554
|
switch (m) {
|
|
1535
1555
|
case "s":
|
|
1536
|
-
return
|
|
1556
|
+
return u + e.addLeadingZero(n[2]);
|
|
1537
1557
|
case "m":
|
|
1538
|
-
return
|
|
1558
|
+
return u + e.addLeadingZero(n[1]);
|
|
1539
1559
|
case "h":
|
|
1540
|
-
return
|
|
1560
|
+
return u + e.addLeadingZero(n[0]);
|
|
1541
1561
|
}
|
|
1542
1562
|
}, "");
|
|
1543
1563
|
},
|
|
@@ -1548,7 +1568,7 @@ bt.prototype = {
|
|
|
1548
1568
|
return (t < 10 ? "0" : "") + t;
|
|
1549
1569
|
}
|
|
1550
1570
|
};
|
|
1551
|
-
var
|
|
1571
|
+
var mr = bt, vt = function(t, e) {
|
|
1552
1572
|
var r = this;
|
|
1553
1573
|
r.delimiter = e || e === "" ? e : " ", r.delimiterRE = e ? new RegExp("\\" + e, "g") : "", r.formatter = t;
|
|
1554
1574
|
};
|
|
@@ -1564,7 +1584,7 @@ vt.prototype = {
|
|
|
1564
1584
|
return r = r.replace(/[()]/g, ""), r = r.replace(/[\s-]/g, e.delimiter), r;
|
|
1565
1585
|
}
|
|
1566
1586
|
};
|
|
1567
|
-
var
|
|
1587
|
+
var fr = vt, Be = {
|
|
1568
1588
|
blocks: {
|
|
1569
1589
|
uatp: [4, 5, 6],
|
|
1570
1590
|
amex: [4, 6, 5],
|
|
@@ -1616,7 +1636,7 @@ var mr = vt, Ue = {
|
|
|
1616
1636
|
return t.concat(19 - e);
|
|
1617
1637
|
},
|
|
1618
1638
|
getInfo: function(t, e) {
|
|
1619
|
-
var r =
|
|
1639
|
+
var r = Be.blocks, n = Be.re;
|
|
1620
1640
|
e = !!e;
|
|
1621
1641
|
for (var i in n)
|
|
1622
1642
|
if (n[i].test(t)) {
|
|
@@ -1631,7 +1651,7 @@ var mr = vt, Ue = {
|
|
|
1631
1651
|
blocks: e ? this.getStrictBlocks(r.general) : r.general
|
|
1632
1652
|
};
|
|
1633
1653
|
}
|
|
1634
|
-
},
|
|
1654
|
+
}, gr = Be, yr = {
|
|
1635
1655
|
noop: function() {
|
|
1636
1656
|
},
|
|
1637
1657
|
strip: function(t, e) {
|
|
@@ -1687,15 +1707,15 @@ var mr = vt, Ue = {
|
|
|
1687
1707
|
if (t === e && t !== "")
|
|
1688
1708
|
return "";
|
|
1689
1709
|
if (a && t.slice(0, 1) == "-") {
|
|
1690
|
-
var
|
|
1691
|
-
return "-" + this.getPrefixStrippedValue(t.slice(1), e, r,
|
|
1710
|
+
var c = n.slice(0, 1) == "-" ? n.slice(1) : n;
|
|
1711
|
+
return "-" + this.getPrefixStrippedValue(t.slice(1), e, r, c, i, o, s, l, a);
|
|
1692
1712
|
}
|
|
1693
1713
|
if (n.slice(0, r) !== e && !l)
|
|
1694
1714
|
return s && !n && t ? t : "";
|
|
1695
1715
|
if (n.slice(-r) !== e && l)
|
|
1696
1716
|
return s && !n && t ? t : "";
|
|
1697
|
-
var
|
|
1698
|
-
return t.slice(0, r) !== e && !l ?
|
|
1717
|
+
var d = this.stripDelimiters(n, i, o);
|
|
1718
|
+
return t.slice(0, r) !== e && !l ? d.slice(r) : t.slice(-r) !== e && l ? d.slice(0, -r - 1) : l ? t.slice(0, -r) : t.slice(r);
|
|
1699
1719
|
},
|
|
1700
1720
|
getFirstDiffIndex: function(t, e) {
|
|
1701
1721
|
for (var r = 0; t.charAt(r) === e.charAt(r); )
|
|
@@ -1705,10 +1725,10 @@ var mr = vt, Ue = {
|
|
|
1705
1725
|
},
|
|
1706
1726
|
getFormattedValue: function(t, e, r, n, i, o) {
|
|
1707
1727
|
var s = "", l = i.length > 0, a = "";
|
|
1708
|
-
return r === 0 ? t : (e.forEach(function(
|
|
1728
|
+
return r === 0 ? t : (e.forEach(function(c, d) {
|
|
1709
1729
|
if (t.length > 0) {
|
|
1710
|
-
var
|
|
1711
|
-
l ? a = i[o ?
|
|
1730
|
+
var p = t.slice(0, c), h = t.slice(c);
|
|
1731
|
+
l ? a = i[o ? d - 1 : d] || a : a = n, o ? (d > 0 && (s += a), s += p) : (s += p, p.length === c && d < r - 1 && (s += a)), t = h;
|
|
1712
1732
|
}
|
|
1713
1733
|
}), s);
|
|
1714
1734
|
},
|
|
@@ -1760,15 +1780,15 @@ var mr = vt, Ue = {
|
|
|
1760
1780
|
isAndroidBackspaceKeydown: function(t, e) {
|
|
1761
1781
|
return !this.isAndroid() || !t || !e ? !1 : e === t.slice(0, -1);
|
|
1762
1782
|
}
|
|
1763
|
-
},
|
|
1783
|
+
}, br = yr, vr = {
|
|
1764
1784
|
// Maybe change to object-assign
|
|
1765
1785
|
// for now just keep it as simple
|
|
1766
1786
|
assign: function(t, e) {
|
|
1767
1787
|
return t = t || {}, e = e || {}, t.creditCard = !!e.creditCard, t.creditCardStrictMode = !!e.creditCardStrictMode, t.creditCardType = "", t.onCreditCardTypeChanged = e.onCreditCardTypeChanged || function() {
|
|
1768
|
-
}, t.phone = !!e.phone, t.phoneRegionCode = e.phoneRegionCode || "AU", t.phoneFormatter = {}, t.time = !!e.time, t.timePattern = e.timePattern || ["h", "m", "s"], t.timeFormat = e.timeFormat || "24", t.timeFormatter = {}, t.date = !!e.date, t.datePattern = e.datePattern || ["d", "m", "Y"], t.dateMin = e.dateMin || "", t.dateMax = e.dateMax || "", t.dateFormatter = {}, t.numeral = !!e.numeral, t.numeralIntegerScale = e.numeralIntegerScale > 0 ? e.numeralIntegerScale : 0, t.numeralDecimalScale = e.numeralDecimalScale >= 0 ? e.numeralDecimalScale : 2, t.numeralDecimalMark = e.numeralDecimalMark || ".", t.numeralThousandsGroupStyle = e.numeralThousandsGroupStyle || "thousand", t.numeralPositiveOnly = !!e.numeralPositiveOnly, t.stripLeadingZeroes = e.stripLeadingZeroes !== !1, t.signBeforePrefix = !!e.signBeforePrefix, t.tailPrefix = !!e.tailPrefix, t.swapHiddenInput = !!e.swapHiddenInput, t.numericOnly = t.creditCard || t.date || !!e.numericOnly, t.uppercase = !!e.uppercase, t.lowercase = !!e.lowercase, t.prefix = t.creditCard || t.date ? "" : e.prefix || "", t.noImmediatePrefix = !!e.noImmediatePrefix, t.prefixLength = t.prefix.length, t.rawValueTrimPrefix = !!e.rawValueTrimPrefix, t.copyDelimiter = !!e.copyDelimiter, t.initValue = e.initValue !== void 0 && e.initValue !== null ? e.initValue.toString() : "", t.delimiter = e.delimiter || e.delimiter === "" ? e.delimiter : e.date ? "/" : e.time ? ":" : e.numeral ? "," : (e.phone, " "), t.delimiterLength = t.delimiter.length, t.delimiterLazyShow = !!e.delimiterLazyShow, t.delimiters = e.delimiters || [], t.blocks = e.blocks || [], t.blocksLength = t.blocks.length, t.root = typeof
|
|
1788
|
+
}, t.phone = !!e.phone, t.phoneRegionCode = e.phoneRegionCode || "AU", t.phoneFormatter = {}, t.time = !!e.time, t.timePattern = e.timePattern || ["h", "m", "s"], t.timeFormat = e.timeFormat || "24", t.timeFormatter = {}, t.date = !!e.date, t.datePattern = e.datePattern || ["d", "m", "Y"], t.dateMin = e.dateMin || "", t.dateMax = e.dateMax || "", t.dateFormatter = {}, t.numeral = !!e.numeral, t.numeralIntegerScale = e.numeralIntegerScale > 0 ? e.numeralIntegerScale : 0, t.numeralDecimalScale = e.numeralDecimalScale >= 0 ? e.numeralDecimalScale : 2, t.numeralDecimalMark = e.numeralDecimalMark || ".", t.numeralThousandsGroupStyle = e.numeralThousandsGroupStyle || "thousand", t.numeralPositiveOnly = !!e.numeralPositiveOnly, t.stripLeadingZeroes = e.stripLeadingZeroes !== !1, t.signBeforePrefix = !!e.signBeforePrefix, t.tailPrefix = !!e.tailPrefix, t.swapHiddenInput = !!e.swapHiddenInput, t.numericOnly = t.creditCard || t.date || !!e.numericOnly, t.uppercase = !!e.uppercase, t.lowercase = !!e.lowercase, t.prefix = t.creditCard || t.date ? "" : e.prefix || "", t.noImmediatePrefix = !!e.noImmediatePrefix, t.prefixLength = t.prefix.length, t.rawValueTrimPrefix = !!e.rawValueTrimPrefix, t.copyDelimiter = !!e.copyDelimiter, t.initValue = e.initValue !== void 0 && e.initValue !== null ? e.initValue.toString() : "", t.delimiter = e.delimiter || e.delimiter === "" ? e.delimiter : e.date ? "/" : e.time ? ":" : e.numeral ? "," : (e.phone, " "), t.delimiterLength = t.delimiter.length, t.delimiterLazyShow = !!e.delimiterLazyShow, t.delimiters = e.delimiters || [], t.blocks = e.blocks || [], t.blocksLength = t.blocks.length, t.root = typeof Z == "object" && Z ? Z : window, t.document = e.document || t.root.document, t.maxLength = 0, t.backspace = !1, t.result = "", t.onValueChanged = e.onValueChanged || function() {
|
|
1769
1789
|
}, t;
|
|
1770
1790
|
}
|
|
1771
|
-
},
|
|
1791
|
+
}, wr = vr, x = function(t, e) {
|
|
1772
1792
|
var r = this, n = !1;
|
|
1773
1793
|
if (typeof t == "string" ? (r.element = document.querySelector(t), n = document.querySelectorAll(t).length > 1) : typeof t.length < "u" && t.length > 0 ? (r.element = t[0], n = t.length > 1) : r.element = t, !r.element)
|
|
1774
1794
|
throw new Error("[cleave.js] Please check the element");
|
|
@@ -1940,18 +1960,18 @@ x.prototype = {
|
|
|
1940
1960
|
}
|
|
1941
1961
|
};
|
|
1942
1962
|
x.NumeralFormatter = hr;
|
|
1943
|
-
x.DateFormatter =
|
|
1944
|
-
x.TimeFormatter =
|
|
1945
|
-
x.PhoneFormatter =
|
|
1946
|
-
x.CreditCardDetector =
|
|
1947
|
-
x.Util =
|
|
1948
|
-
x.DefaultProperties =
|
|
1949
|
-
(typeof
|
|
1950
|
-
var at = x, pe = {},
|
|
1963
|
+
x.DateFormatter = pr;
|
|
1964
|
+
x.TimeFormatter = mr;
|
|
1965
|
+
x.PhoneFormatter = fr;
|
|
1966
|
+
x.CreditCardDetector = gr;
|
|
1967
|
+
x.Util = br;
|
|
1968
|
+
x.DefaultProperties = wr;
|
|
1969
|
+
(typeof Z == "object" && Z ? Z : window).Cleave = x;
|
|
1970
|
+
var at = x, pe = {}, xr = function() {
|
|
1951
1971
|
return typeof Promise == "function" && Promise.prototype && Promise.prototype.then;
|
|
1952
|
-
}, wt = {},
|
|
1953
|
-
let
|
|
1954
|
-
const
|
|
1972
|
+
}, wt = {}, T = {};
|
|
1973
|
+
let je;
|
|
1974
|
+
const Sr = [
|
|
1955
1975
|
0,
|
|
1956
1976
|
// Not used
|
|
1957
1977
|
26,
|
|
@@ -1995,30 +2015,30 @@ const xr = [
|
|
|
1995
2015
|
3532,
|
|
1996
2016
|
3706
|
|
1997
2017
|
];
|
|
1998
|
-
|
|
2018
|
+
T.getSymbolSize = function(e) {
|
|
1999
2019
|
if (!e) throw new Error('"version" cannot be null or undefined');
|
|
2000
2020
|
if (e < 1 || e > 40) throw new Error('"version" should be in range from 1 to 40');
|
|
2001
2021
|
return e * 4 + 17;
|
|
2002
2022
|
};
|
|
2003
|
-
|
|
2004
|
-
return
|
|
2023
|
+
T.getSymbolTotalCodewords = function(e) {
|
|
2024
|
+
return Sr[e];
|
|
2005
2025
|
};
|
|
2006
|
-
|
|
2026
|
+
T.getBCHDigit = function(t) {
|
|
2007
2027
|
let e = 0;
|
|
2008
2028
|
for (; t !== 0; )
|
|
2009
2029
|
e++, t >>>= 1;
|
|
2010
2030
|
return e;
|
|
2011
2031
|
};
|
|
2012
|
-
|
|
2032
|
+
T.setToSJISFunction = function(e) {
|
|
2013
2033
|
if (typeof e != "function")
|
|
2014
2034
|
throw new Error('"toSJISFunc" is not a valid function.');
|
|
2015
|
-
|
|
2035
|
+
je = e;
|
|
2016
2036
|
};
|
|
2017
|
-
|
|
2018
|
-
return typeof
|
|
2037
|
+
T.isKanjiModeEnabled = function() {
|
|
2038
|
+
return typeof je < "u";
|
|
2019
2039
|
};
|
|
2020
|
-
|
|
2021
|
-
return
|
|
2040
|
+
T.toSJIS = function(e) {
|
|
2041
|
+
return je(e);
|
|
2022
2042
|
};
|
|
2023
2043
|
var ke = {};
|
|
2024
2044
|
(function(t) {
|
|
@@ -2075,7 +2095,7 @@ xt.prototype = {
|
|
|
2075
2095
|
this.buffer.length <= e && this.buffer.push(0), t && (this.buffer[e] |= 128 >>> this.length % 8), this.length++;
|
|
2076
2096
|
}
|
|
2077
2097
|
};
|
|
2078
|
-
var
|
|
2098
|
+
var kr = xt;
|
|
2079
2099
|
function me(t) {
|
|
2080
2100
|
if (!t || t < 1)
|
|
2081
2101
|
throw new Error("BitMatrix size must be defined and greater than 0");
|
|
@@ -2094,9 +2114,9 @@ me.prototype.xor = function(t, e, r) {
|
|
|
2094
2114
|
me.prototype.isReserved = function(t, e) {
|
|
2095
2115
|
return this.reservedBit[t * this.size + e];
|
|
2096
2116
|
};
|
|
2097
|
-
var
|
|
2117
|
+
var Cr = me, St = {};
|
|
2098
2118
|
(function(t) {
|
|
2099
|
-
const e =
|
|
2119
|
+
const e = T.getSymbolSize;
|
|
2100
2120
|
t.getRowColCoords = function(n) {
|
|
2101
2121
|
if (n === 1) return [];
|
|
2102
2122
|
const i = Math.floor(n / 7) + 2, o = e(n), s = o === 145 ? 26 : Math.ceil((o - 13) / (2 * i - 2)) * 2, l = [o - 7];
|
|
@@ -2114,9 +2134,9 @@ var kr = me, St = {};
|
|
|
2114
2134
|
};
|
|
2115
2135
|
})(St);
|
|
2116
2136
|
var kt = {};
|
|
2117
|
-
const
|
|
2137
|
+
const Pr = T.getSymbolSize, lt = 7;
|
|
2118
2138
|
kt.getPositions = function(e) {
|
|
2119
|
-
const r =
|
|
2139
|
+
const r = Pr(e);
|
|
2120
2140
|
return [
|
|
2121
2141
|
// top-left
|
|
2122
2142
|
[0, 0],
|
|
@@ -2150,12 +2170,12 @@ var Ct = {};
|
|
|
2150
2170
|
return t.isValid(i) ? parseInt(i, 10) : void 0;
|
|
2151
2171
|
}, t.getPenaltyN1 = function(i) {
|
|
2152
2172
|
const o = i.size;
|
|
2153
|
-
let s = 0, l = 0, a = 0,
|
|
2154
|
-
for (let
|
|
2155
|
-
l = a = 0,
|
|
2156
|
-
for (let
|
|
2157
|
-
let
|
|
2158
|
-
|
|
2173
|
+
let s = 0, l = 0, a = 0, c = null, d = null;
|
|
2174
|
+
for (let p = 0; p < o; p++) {
|
|
2175
|
+
l = a = 0, c = d = null;
|
|
2176
|
+
for (let h = 0; h < o; h++) {
|
|
2177
|
+
let u = i.get(p, h);
|
|
2178
|
+
u === c ? l++ : (l >= 5 && (s += e.N1 + (l - 5)), c = u, l = 1), u = i.get(h, p), u === d ? a++ : (a >= 5 && (s += e.N1 + (a - 5)), d = u, a = 1);
|
|
2159
2179
|
}
|
|
2160
2180
|
l >= 5 && (s += e.N1 + (l - 5)), a >= 5 && (s += e.N1 + (a - 5));
|
|
2161
2181
|
}
|
|
@@ -2165,17 +2185,17 @@ var Ct = {};
|
|
|
2165
2185
|
let s = 0;
|
|
2166
2186
|
for (let l = 0; l < o - 1; l++)
|
|
2167
2187
|
for (let a = 0; a < o - 1; a++) {
|
|
2168
|
-
const
|
|
2169
|
-
(
|
|
2188
|
+
const c = i.get(l, a) + i.get(l, a + 1) + i.get(l + 1, a) + i.get(l + 1, a + 1);
|
|
2189
|
+
(c === 4 || c === 0) && s++;
|
|
2170
2190
|
}
|
|
2171
2191
|
return s * e.N2;
|
|
2172
2192
|
}, t.getPenaltyN3 = function(i) {
|
|
2173
2193
|
const o = i.size;
|
|
2174
2194
|
let s = 0, l = 0, a = 0;
|
|
2175
|
-
for (let
|
|
2195
|
+
for (let c = 0; c < o; c++) {
|
|
2176
2196
|
l = a = 0;
|
|
2177
|
-
for (let
|
|
2178
|
-
l = l << 1 & 2047 | i.get(
|
|
2197
|
+
for (let d = 0; d < o; d++)
|
|
2198
|
+
l = l << 1 & 2047 | i.get(c, d), d >= 10 && (l === 1488 || l === 93) && s++, a = a << 1 & 2047 | i.get(d, c), d >= 10 && (a === 1488 || a === 93) && s++;
|
|
2179
2199
|
}
|
|
2180
2200
|
return s * e.N3;
|
|
2181
2201
|
}, t.getPenaltyN4 = function(i) {
|
|
@@ -2214,16 +2234,16 @@ var Ct = {};
|
|
|
2214
2234
|
}, t.getBestMask = function(i, o) {
|
|
2215
2235
|
const s = Object.keys(t.Patterns).length;
|
|
2216
2236
|
let l = 0, a = 1 / 0;
|
|
2217
|
-
for (let
|
|
2218
|
-
o(
|
|
2219
|
-
const
|
|
2220
|
-
t.applyMask(
|
|
2237
|
+
for (let c = 0; c < s; c++) {
|
|
2238
|
+
o(c), t.applyMask(c, i);
|
|
2239
|
+
const d = t.getPenaltyN1(i) + t.getPenaltyN2(i) + t.getPenaltyN3(i) + t.getPenaltyN4(i);
|
|
2240
|
+
t.applyMask(c, i), d < a && (a = d, l = c);
|
|
2221
2241
|
}
|
|
2222
2242
|
return l;
|
|
2223
2243
|
};
|
|
2224
2244
|
})(Ct);
|
|
2225
2245
|
var Ce = {};
|
|
2226
|
-
const
|
|
2246
|
+
const z = ke, fe = [
|
|
2227
2247
|
// L M Q H
|
|
2228
2248
|
1,
|
|
2229
2249
|
1,
|
|
@@ -2550,13 +2570,13 @@ const q = ke, fe = [
|
|
|
2550
2570
|
];
|
|
2551
2571
|
Ce.getBlocksCount = function(e, r) {
|
|
2552
2572
|
switch (r) {
|
|
2553
|
-
case
|
|
2573
|
+
case z.L:
|
|
2554
2574
|
return fe[(e - 1) * 4 + 0];
|
|
2555
|
-
case
|
|
2575
|
+
case z.M:
|
|
2556
2576
|
return fe[(e - 1) * 4 + 1];
|
|
2557
|
-
case
|
|
2577
|
+
case z.Q:
|
|
2558
2578
|
return fe[(e - 1) * 4 + 2];
|
|
2559
|
-
case
|
|
2579
|
+
case z.H:
|
|
2560
2580
|
return fe[(e - 1) * 4 + 3];
|
|
2561
2581
|
default:
|
|
2562
2582
|
return;
|
|
@@ -2564,19 +2584,19 @@ Ce.getBlocksCount = function(e, r) {
|
|
|
2564
2584
|
};
|
|
2565
2585
|
Ce.getTotalCodewordsCount = function(e, r) {
|
|
2566
2586
|
switch (r) {
|
|
2567
|
-
case
|
|
2587
|
+
case z.L:
|
|
2568
2588
|
return ge[(e - 1) * 4 + 0];
|
|
2569
|
-
case
|
|
2589
|
+
case z.M:
|
|
2570
2590
|
return ge[(e - 1) * 4 + 1];
|
|
2571
|
-
case
|
|
2591
|
+
case z.Q:
|
|
2572
2592
|
return ge[(e - 1) * 4 + 2];
|
|
2573
|
-
case
|
|
2593
|
+
case z.H:
|
|
2574
2594
|
return ge[(e - 1) * 4 + 3];
|
|
2575
2595
|
default:
|
|
2576
2596
|
return;
|
|
2577
2597
|
}
|
|
2578
2598
|
};
|
|
2579
|
-
var
|
|
2599
|
+
var Pt = {}, Pe = {};
|
|
2580
2600
|
const ae = new Uint8Array(512), we = new Uint8Array(256);
|
|
2581
2601
|
(function() {
|
|
2582
2602
|
let e = 1;
|
|
@@ -2585,18 +2605,18 @@ const ae = new Uint8Array(512), we = new Uint8Array(256);
|
|
|
2585
2605
|
for (let r = 255; r < 512; r++)
|
|
2586
2606
|
ae[r] = ae[r - 255];
|
|
2587
2607
|
})();
|
|
2588
|
-
|
|
2608
|
+
Pe.log = function(e) {
|
|
2589
2609
|
if (e < 1) throw new Error("log(" + e + ")");
|
|
2590
2610
|
return we[e];
|
|
2591
2611
|
};
|
|
2592
|
-
|
|
2612
|
+
Pe.exp = function(e) {
|
|
2593
2613
|
return ae[e];
|
|
2594
2614
|
};
|
|
2595
|
-
|
|
2615
|
+
Pe.mul = function(e, r) {
|
|
2596
2616
|
return e === 0 || r === 0 ? 0 : ae[we[e] + we[r]];
|
|
2597
2617
|
};
|
|
2598
2618
|
(function(t) {
|
|
2599
|
-
const e =
|
|
2619
|
+
const e = Pe;
|
|
2600
2620
|
t.mul = function(n, i) {
|
|
2601
2621
|
const o = new Uint8Array(n.length + i.length - 1);
|
|
2602
2622
|
for (let s = 0; s < n.length; s++)
|
|
@@ -2620,53 +2640,53 @@ Ee.mul = function(e, r) {
|
|
|
2620
2640
|
i = t.mul(i, new Uint8Array([1, e.exp(o)]));
|
|
2621
2641
|
return i;
|
|
2622
2642
|
};
|
|
2623
|
-
})(
|
|
2624
|
-
const
|
|
2625
|
-
function
|
|
2643
|
+
})(Pt);
|
|
2644
|
+
const Et = Pt;
|
|
2645
|
+
function Qe(t) {
|
|
2626
2646
|
this.genPoly = void 0, this.degree = t, this.degree && this.initialize(this.degree);
|
|
2627
2647
|
}
|
|
2628
|
-
|
|
2629
|
-
this.degree = e, this.genPoly =
|
|
2648
|
+
Qe.prototype.initialize = function(e) {
|
|
2649
|
+
this.degree = e, this.genPoly = Et.generateECPolynomial(this.degree);
|
|
2630
2650
|
};
|
|
2631
|
-
|
|
2651
|
+
Qe.prototype.encode = function(e) {
|
|
2632
2652
|
if (!this.genPoly)
|
|
2633
2653
|
throw new Error("Encoder not initialized");
|
|
2634
2654
|
const r = new Uint8Array(e.length + this.degree);
|
|
2635
2655
|
r.set(e);
|
|
2636
|
-
const n =
|
|
2656
|
+
const n = Et.mod(r, this.genPoly), i = this.degree - n.length;
|
|
2637
2657
|
if (i > 0) {
|
|
2638
2658
|
const o = new Uint8Array(this.degree);
|
|
2639
2659
|
return o.set(n, i), o;
|
|
2640
2660
|
}
|
|
2641
2661
|
return n;
|
|
2642
2662
|
};
|
|
2643
|
-
var Er =
|
|
2663
|
+
var Er = Qe, At = {}, q = {}, Ke = {};
|
|
2644
2664
|
Ke.isValid = function(e) {
|
|
2645
2665
|
return !isNaN(e) && e >= 1 && e <= 40;
|
|
2646
2666
|
};
|
|
2647
|
-
var
|
|
2648
|
-
const It = "[0-9]+",
|
|
2649
|
-
let
|
|
2650
|
-
|
|
2651
|
-
const
|
|
2667
|
+
var L = {};
|
|
2668
|
+
const It = "[0-9]+", Ar = "[A-Z $%*+\\-./:]+";
|
|
2669
|
+
let ue = "(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+";
|
|
2670
|
+
ue = ue.replace(/u/g, "\\u");
|
|
2671
|
+
const Ir = "(?:(?![A-Z0-9 $%*+\\-./:]|" + ue + `)(?:.|[\r
|
|
2652
2672
|
]))+`;
|
|
2653
|
-
|
|
2654
|
-
|
|
2655
|
-
|
|
2656
|
-
|
|
2657
|
-
|
|
2658
|
-
const
|
|
2659
|
-
|
|
2660
|
-
return
|
|
2673
|
+
L.KANJI = new RegExp(ue, "g");
|
|
2674
|
+
L.BYTE_KANJI = new RegExp("[^A-Z0-9 $%*+\\-./:]+", "g");
|
|
2675
|
+
L.BYTE = new RegExp(Ir, "g");
|
|
2676
|
+
L.NUMERIC = new RegExp(It, "g");
|
|
2677
|
+
L.ALPHANUMERIC = new RegExp(Ar, "g");
|
|
2678
|
+
const _r = new RegExp("^" + ue + "$"), Mr = new RegExp("^" + It + "$"), Dr = new RegExp("^[A-Z0-9 $%*+\\-./:]+$");
|
|
2679
|
+
L.testKanji = function(e) {
|
|
2680
|
+
return _r.test(e);
|
|
2661
2681
|
};
|
|
2662
|
-
|
|
2682
|
+
L.testNumeric = function(e) {
|
|
2663
2683
|
return Mr.test(e);
|
|
2664
2684
|
};
|
|
2665
|
-
|
|
2666
|
-
return
|
|
2685
|
+
L.testAlphanumeric = function(e) {
|
|
2686
|
+
return Dr.test(e);
|
|
2667
2687
|
};
|
|
2668
2688
|
(function(t) {
|
|
2669
|
-
const e = Ke, r =
|
|
2689
|
+
const e = Ke, r = L;
|
|
2670
2690
|
t.NUMERIC = {
|
|
2671
2691
|
id: "Numeric",
|
|
2672
2692
|
bit: 1,
|
|
@@ -2723,102 +2743,102 @@ R.testAlphanumeric = function(e) {
|
|
|
2723
2743
|
return s;
|
|
2724
2744
|
}
|
|
2725
2745
|
};
|
|
2726
|
-
})(
|
|
2746
|
+
})(q);
|
|
2727
2747
|
(function(t) {
|
|
2728
|
-
const e =
|
|
2729
|
-
function a(
|
|
2730
|
-
for (let
|
|
2731
|
-
if (
|
|
2732
|
-
return
|
|
2748
|
+
const e = T, r = Ce, n = ke, i = q, o = Ke, s = 7973, l = e.getBCHDigit(s);
|
|
2749
|
+
function a(h, u, m) {
|
|
2750
|
+
for (let y = 1; y <= 40; y++)
|
|
2751
|
+
if (u <= t.getCapacity(y, m, h))
|
|
2752
|
+
return y;
|
|
2733
2753
|
}
|
|
2734
|
-
function
|
|
2735
|
-
return i.getCharCountIndicator(
|
|
2754
|
+
function c(h, u) {
|
|
2755
|
+
return i.getCharCountIndicator(h, u) + 4;
|
|
2736
2756
|
}
|
|
2737
|
-
function
|
|
2757
|
+
function d(h, u) {
|
|
2738
2758
|
let m = 0;
|
|
2739
|
-
return
|
|
2740
|
-
const
|
|
2741
|
-
m +=
|
|
2759
|
+
return h.forEach(function(y) {
|
|
2760
|
+
const P = c(y.mode, u);
|
|
2761
|
+
m += P + y.getBitsLength();
|
|
2742
2762
|
}), m;
|
|
2743
2763
|
}
|
|
2744
|
-
function
|
|
2764
|
+
function p(h, u) {
|
|
2745
2765
|
for (let m = 1; m <= 40; m++)
|
|
2746
|
-
if (
|
|
2766
|
+
if (d(h, m) <= t.getCapacity(m, u, i.MIXED))
|
|
2747
2767
|
return m;
|
|
2748
2768
|
}
|
|
2749
|
-
t.from = function(
|
|
2750
|
-
return o.isValid(
|
|
2751
|
-
}, t.getCapacity = function(
|
|
2752
|
-
if (!o.isValid(
|
|
2769
|
+
t.from = function(u, m) {
|
|
2770
|
+
return o.isValid(u) ? parseInt(u, 10) : m;
|
|
2771
|
+
}, t.getCapacity = function(u, m, y) {
|
|
2772
|
+
if (!o.isValid(u))
|
|
2753
2773
|
throw new Error("Invalid QR Code version");
|
|
2754
|
-
typeof
|
|
2755
|
-
const
|
|
2756
|
-
if (
|
|
2757
|
-
const
|
|
2758
|
-
switch (
|
|
2774
|
+
typeof y > "u" && (y = i.BYTE);
|
|
2775
|
+
const P = e.getSymbolTotalCodewords(u), b = r.getTotalCodewordsCount(u, m), v = (P - b) * 8;
|
|
2776
|
+
if (y === i.MIXED) return v;
|
|
2777
|
+
const g = v - c(y, u);
|
|
2778
|
+
switch (y) {
|
|
2759
2779
|
case i.NUMERIC:
|
|
2760
|
-
return Math.floor(
|
|
2780
|
+
return Math.floor(g / 10 * 3);
|
|
2761
2781
|
case i.ALPHANUMERIC:
|
|
2762
|
-
return Math.floor(
|
|
2782
|
+
return Math.floor(g / 11 * 2);
|
|
2763
2783
|
case i.KANJI:
|
|
2764
|
-
return Math.floor(
|
|
2784
|
+
return Math.floor(g / 13);
|
|
2765
2785
|
case i.BYTE:
|
|
2766
2786
|
default:
|
|
2767
|
-
return Math.floor(
|
|
2768
|
-
}
|
|
2769
|
-
}, t.getBestVersionForData = function(
|
|
2770
|
-
let
|
|
2771
|
-
const
|
|
2772
|
-
if (Array.isArray(
|
|
2773
|
-
if (
|
|
2774
|
-
return u
|
|
2775
|
-
if (
|
|
2787
|
+
return Math.floor(g / 8);
|
|
2788
|
+
}
|
|
2789
|
+
}, t.getBestVersionForData = function(u, m) {
|
|
2790
|
+
let y;
|
|
2791
|
+
const P = n.from(m, n.M);
|
|
2792
|
+
if (Array.isArray(u)) {
|
|
2793
|
+
if (u.length > 1)
|
|
2794
|
+
return p(u, P);
|
|
2795
|
+
if (u.length === 0)
|
|
2776
2796
|
return 1;
|
|
2777
|
-
|
|
2797
|
+
y = u[0];
|
|
2778
2798
|
} else
|
|
2779
|
-
|
|
2780
|
-
return a(
|
|
2781
|
-
}, t.getEncodedBits = function(
|
|
2782
|
-
if (!o.isValid(
|
|
2799
|
+
y = u;
|
|
2800
|
+
return a(y.mode, y.getLength(), P);
|
|
2801
|
+
}, t.getEncodedBits = function(u) {
|
|
2802
|
+
if (!o.isValid(u) || u < 7)
|
|
2783
2803
|
throw new Error("Invalid QR Code version");
|
|
2784
|
-
let m =
|
|
2804
|
+
let m = u << 12;
|
|
2785
2805
|
for (; e.getBCHDigit(m) - l >= 0; )
|
|
2786
2806
|
m ^= s << e.getBCHDigit(m) - l;
|
|
2787
|
-
return
|
|
2807
|
+
return u << 12 | m;
|
|
2788
2808
|
};
|
|
2789
2809
|
})(At);
|
|
2790
|
-
var
|
|
2791
|
-
const
|
|
2792
|
-
|
|
2810
|
+
var _t = {};
|
|
2811
|
+
const Fe = T, Mt = 1335, Tr = 21522, ct = Fe.getBCHDigit(Mt);
|
|
2812
|
+
_t.getEncodedBits = function(e, r) {
|
|
2793
2813
|
const n = e.bit << 3 | r;
|
|
2794
2814
|
let i = n << 10;
|
|
2795
|
-
for (;
|
|
2796
|
-
i ^=
|
|
2797
|
-
return (n << 10 | i) ^
|
|
2815
|
+
for (; Fe.getBCHDigit(i) - ct >= 0; )
|
|
2816
|
+
i ^= Mt << Fe.getBCHDigit(i) - ct;
|
|
2817
|
+
return (n << 10 | i) ^ Tr;
|
|
2798
2818
|
};
|
|
2799
2819
|
var Dt = {};
|
|
2800
|
-
const
|
|
2801
|
-
function
|
|
2802
|
-
this.mode =
|
|
2820
|
+
const $r = q;
|
|
2821
|
+
function W(t) {
|
|
2822
|
+
this.mode = $r.NUMERIC, this.data = t.toString();
|
|
2803
2823
|
}
|
|
2804
|
-
|
|
2824
|
+
W.getBitsLength = function(e) {
|
|
2805
2825
|
return 10 * Math.floor(e / 3) + (e % 3 ? e % 3 * 3 + 1 : 0);
|
|
2806
2826
|
};
|
|
2807
|
-
|
|
2827
|
+
W.prototype.getLength = function() {
|
|
2808
2828
|
return this.data.length;
|
|
2809
2829
|
};
|
|
2810
|
-
|
|
2811
|
-
return
|
|
2830
|
+
W.prototype.getBitsLength = function() {
|
|
2831
|
+
return W.getBitsLength(this.data.length);
|
|
2812
2832
|
};
|
|
2813
|
-
|
|
2833
|
+
W.prototype.write = function(e) {
|
|
2814
2834
|
let r, n, i;
|
|
2815
2835
|
for (r = 0; r + 3 <= this.data.length; r += 3)
|
|
2816
2836
|
n = this.data.substr(r, 3), i = parseInt(n, 10), e.put(i, 10);
|
|
2817
2837
|
const o = this.data.length - r;
|
|
2818
2838
|
o > 0 && (n = this.data.substr(r), i = parseInt(n, 10), e.put(i, o * 3 + 1));
|
|
2819
2839
|
};
|
|
2820
|
-
var
|
|
2821
|
-
const
|
|
2840
|
+
var Nr = W;
|
|
2841
|
+
const Rr = q, Te = [
|
|
2822
2842
|
"0",
|
|
2823
2843
|
"1",
|
|
2824
2844
|
"2",
|
|
@@ -2865,28 +2885,28 @@ const Lr = j, Ne = [
|
|
|
2865
2885
|
"/",
|
|
2866
2886
|
":"
|
|
2867
2887
|
];
|
|
2868
|
-
function
|
|
2869
|
-
this.mode =
|
|
2888
|
+
function X(t) {
|
|
2889
|
+
this.mode = Rr.ALPHANUMERIC, this.data = t;
|
|
2870
2890
|
}
|
|
2871
|
-
|
|
2891
|
+
X.getBitsLength = function(e) {
|
|
2872
2892
|
return 11 * Math.floor(e / 2) + 6 * (e % 2);
|
|
2873
2893
|
};
|
|
2874
|
-
|
|
2894
|
+
X.prototype.getLength = function() {
|
|
2875
2895
|
return this.data.length;
|
|
2876
2896
|
};
|
|
2877
|
-
|
|
2878
|
-
return
|
|
2897
|
+
X.prototype.getBitsLength = function() {
|
|
2898
|
+
return X.getBitsLength(this.data.length);
|
|
2879
2899
|
};
|
|
2880
|
-
|
|
2900
|
+
X.prototype.write = function(e) {
|
|
2881
2901
|
let r;
|
|
2882
2902
|
for (r = 0; r + 2 <= this.data.length; r += 2) {
|
|
2883
|
-
let n =
|
|
2884
|
-
n +=
|
|
2903
|
+
let n = Te.indexOf(this.data[r]) * 45;
|
|
2904
|
+
n += Te.indexOf(this.data[r + 1]), e.put(n, 11);
|
|
2885
2905
|
}
|
|
2886
|
-
this.data.length % 2 && e.put(
|
|
2906
|
+
this.data.length % 2 && e.put(Te.indexOf(this.data[r]), 6);
|
|
2887
2907
|
};
|
|
2888
|
-
var
|
|
2889
|
-
const Br =
|
|
2908
|
+
var Lr = X;
|
|
2909
|
+
const Br = q;
|
|
2890
2910
|
function ee(t) {
|
|
2891
2911
|
this.mode = Br.BYTE, typeof t == "string" ? this.data = new TextEncoder().encode(t) : this.data = new Uint8Array(t);
|
|
2892
2912
|
}
|
|
@@ -2903,10 +2923,10 @@ ee.prototype.write = function(t) {
|
|
|
2903
2923
|
for (let e = 0, r = this.data.length; e < r; e++)
|
|
2904
2924
|
t.put(this.data[e], 8);
|
|
2905
2925
|
};
|
|
2906
|
-
var
|
|
2907
|
-
const
|
|
2926
|
+
var Fr = ee;
|
|
2927
|
+
const Ur = q, zr = T;
|
|
2908
2928
|
function te(t) {
|
|
2909
|
-
this.mode =
|
|
2929
|
+
this.mode = Ur.KANJI, this.data = t;
|
|
2910
2930
|
}
|
|
2911
2931
|
te.getBitsLength = function(e) {
|
|
2912
2932
|
return e * 13;
|
|
@@ -2920,7 +2940,7 @@ te.prototype.getBitsLength = function() {
|
|
|
2920
2940
|
te.prototype.write = function(t) {
|
|
2921
2941
|
let e;
|
|
2922
2942
|
for (e = 0; e < this.data.length; e++) {
|
|
2923
|
-
let r =
|
|
2943
|
+
let r = zr.toSJIS(this.data[e]);
|
|
2924
2944
|
if (r >= 33088 && r <= 40956)
|
|
2925
2945
|
r -= 33088;
|
|
2926
2946
|
else if (r >= 57408 && r <= 60351)
|
|
@@ -2933,7 +2953,7 @@ Make sure your charset is UTF-8`
|
|
|
2933
2953
|
r = (r >>> 8 & 255) * 192 + (r & 255), t.put(r, 13);
|
|
2934
2954
|
}
|
|
2935
2955
|
};
|
|
2936
|
-
var Or = te,
|
|
2956
|
+
var Or = te, Tt = { exports: {} };
|
|
2937
2957
|
(function(t) {
|
|
2938
2958
|
var e = {
|
|
2939
2959
|
single_source_shortest_paths: function(r, n, i) {
|
|
@@ -2941,10 +2961,10 @@ var Or = te, Nt = { exports: {} };
|
|
|
2941
2961
|
s[n] = 0;
|
|
2942
2962
|
var l = e.PriorityQueue.make();
|
|
2943
2963
|
l.push(n, 0);
|
|
2944
|
-
for (var a,
|
|
2945
|
-
a = l.pop(),
|
|
2946
|
-
for (
|
|
2947
|
-
|
|
2964
|
+
for (var a, c, d, p, h, u, m, y, P; !l.empty(); ) {
|
|
2965
|
+
a = l.pop(), c = a.value, p = a.cost, h = r[c] || {};
|
|
2966
|
+
for (d in h)
|
|
2967
|
+
h.hasOwnProperty(d) && (u = h[d], m = p + u, y = s[d], P = typeof s[d] > "u", (P || y > m) && (s[d] = m, l.push(d, m), o[d] = c));
|
|
2948
2968
|
}
|
|
2949
2969
|
if (typeof i < "u" && typeof s[i] > "u") {
|
|
2950
2970
|
var b = ["Could not find a path from ", n, " to ", i, "."].join("");
|
|
@@ -2998,30 +3018,30 @@ var Or = te, Nt = { exports: {} };
|
|
|
2998
3018
|
}
|
|
2999
3019
|
};
|
|
3000
3020
|
t.exports = e;
|
|
3001
|
-
})(
|
|
3002
|
-
var
|
|
3021
|
+
})(Tt);
|
|
3022
|
+
var qr = Tt.exports;
|
|
3003
3023
|
(function(t) {
|
|
3004
|
-
const e =
|
|
3005
|
-
function
|
|
3024
|
+
const e = q, r = Nr, n = Lr, i = Fr, o = Or, s = L, l = T, a = qr;
|
|
3025
|
+
function c(b) {
|
|
3006
3026
|
return unescape(encodeURIComponent(b)).length;
|
|
3007
3027
|
}
|
|
3008
|
-
function
|
|
3009
|
-
const
|
|
3028
|
+
function d(b, v, g) {
|
|
3029
|
+
const f = [];
|
|
3010
3030
|
let k;
|
|
3011
|
-
for (; (k = b.exec(
|
|
3012
|
-
|
|
3031
|
+
for (; (k = b.exec(g)) !== null; )
|
|
3032
|
+
f.push({
|
|
3013
3033
|
data: k[0],
|
|
3014
3034
|
index: k.index,
|
|
3015
3035
|
mode: v,
|
|
3016
3036
|
length: k[0].length
|
|
3017
3037
|
});
|
|
3018
|
-
return
|
|
3038
|
+
return f;
|
|
3019
3039
|
}
|
|
3020
|
-
function
|
|
3021
|
-
const v =
|
|
3022
|
-
let
|
|
3023
|
-
return l.isKanjiModeEnabled() ? (
|
|
3024
|
-
return A.index -
|
|
3040
|
+
function p(b) {
|
|
3041
|
+
const v = d(s.NUMERIC, e.NUMERIC, b), g = d(s.ALPHANUMERIC, e.ALPHANUMERIC, b);
|
|
3042
|
+
let f, k;
|
|
3043
|
+
return l.isKanjiModeEnabled() ? (f = d(s.BYTE, e.BYTE, b), k = d(s.KANJI, e.KANJI, b)) : (f = d(s.BYTE_KANJI, e.BYTE, b), k = []), v.concat(g, f, k).sort(function(A, N) {
|
|
3044
|
+
return A.index - N.index;
|
|
3025
3045
|
}).map(function(A) {
|
|
3026
3046
|
return {
|
|
3027
3047
|
data: A.data,
|
|
@@ -3030,7 +3050,7 @@ var jr = Nt.exports;
|
|
|
3030
3050
|
};
|
|
3031
3051
|
});
|
|
3032
3052
|
}
|
|
3033
|
-
function
|
|
3053
|
+
function h(b, v) {
|
|
3034
3054
|
switch (v) {
|
|
3035
3055
|
case e.NUMERIC:
|
|
3036
3056
|
return r.getBitsLength(b);
|
|
@@ -3042,70 +3062,70 @@ var jr = Nt.exports;
|
|
|
3042
3062
|
return i.getBitsLength(b);
|
|
3043
3063
|
}
|
|
3044
3064
|
}
|
|
3045
|
-
function
|
|
3046
|
-
return b.reduce(function(v,
|
|
3047
|
-
const
|
|
3048
|
-
return
|
|
3065
|
+
function u(b) {
|
|
3066
|
+
return b.reduce(function(v, g) {
|
|
3067
|
+
const f = v.length - 1 >= 0 ? v[v.length - 1] : null;
|
|
3068
|
+
return f && f.mode === g.mode ? (v[v.length - 1].data += g.data, v) : (v.push(g), v);
|
|
3049
3069
|
}, []);
|
|
3050
3070
|
}
|
|
3051
3071
|
function m(b) {
|
|
3052
3072
|
const v = [];
|
|
3053
|
-
for (let
|
|
3054
|
-
const
|
|
3055
|
-
switch (
|
|
3073
|
+
for (let g = 0; g < b.length; g++) {
|
|
3074
|
+
const f = b[g];
|
|
3075
|
+
switch (f.mode) {
|
|
3056
3076
|
case e.NUMERIC:
|
|
3057
3077
|
v.push([
|
|
3058
|
-
|
|
3059
|
-
{ data:
|
|
3060
|
-
{ data:
|
|
3078
|
+
f,
|
|
3079
|
+
{ data: f.data, mode: e.ALPHANUMERIC, length: f.length },
|
|
3080
|
+
{ data: f.data, mode: e.BYTE, length: f.length }
|
|
3061
3081
|
]);
|
|
3062
3082
|
break;
|
|
3063
3083
|
case e.ALPHANUMERIC:
|
|
3064
3084
|
v.push([
|
|
3065
|
-
|
|
3066
|
-
{ data:
|
|
3085
|
+
f,
|
|
3086
|
+
{ data: f.data, mode: e.BYTE, length: f.length }
|
|
3067
3087
|
]);
|
|
3068
3088
|
break;
|
|
3069
3089
|
case e.KANJI:
|
|
3070
3090
|
v.push([
|
|
3071
|
-
|
|
3072
|
-
{ data:
|
|
3091
|
+
f,
|
|
3092
|
+
{ data: f.data, mode: e.BYTE, length: c(f.data) }
|
|
3073
3093
|
]);
|
|
3074
3094
|
break;
|
|
3075
3095
|
case e.BYTE:
|
|
3076
3096
|
v.push([
|
|
3077
|
-
{ data:
|
|
3097
|
+
{ data: f.data, mode: e.BYTE, length: c(f.data) }
|
|
3078
3098
|
]);
|
|
3079
3099
|
}
|
|
3080
3100
|
}
|
|
3081
3101
|
return v;
|
|
3082
3102
|
}
|
|
3083
|
-
function
|
|
3084
|
-
const
|
|
3103
|
+
function y(b, v) {
|
|
3104
|
+
const g = {}, f = { start: {} };
|
|
3085
3105
|
let k = ["start"];
|
|
3086
3106
|
for (let E = 0; E < b.length; E++) {
|
|
3087
|
-
const A = b[E],
|
|
3088
|
-
for (let
|
|
3089
|
-
const
|
|
3090
|
-
|
|
3107
|
+
const A = b[E], N = [];
|
|
3108
|
+
for (let F = 0; F < A.length; F++) {
|
|
3109
|
+
const R = A[F], re = "" + E + F;
|
|
3110
|
+
N.push(re), g[re] = { node: R, lastCount: 0 }, f[re] = {};
|
|
3091
3111
|
for (let Ae = 0; Ae < k.length; Ae++) {
|
|
3092
3112
|
const B = k[Ae];
|
|
3093
|
-
|
|
3113
|
+
g[B] && g[B].node.mode === R.mode ? (f[B][re] = h(g[B].lastCount + R.length, R.mode) - h(g[B].lastCount, R.mode), g[B].lastCount += R.length) : (g[B] && (g[B].lastCount = R.length), f[B][re] = h(R.length, R.mode) + 4 + e.getCharCountIndicator(R.mode, v));
|
|
3094
3114
|
}
|
|
3095
3115
|
}
|
|
3096
|
-
k =
|
|
3116
|
+
k = N;
|
|
3097
3117
|
}
|
|
3098
3118
|
for (let E = 0; E < k.length; E++)
|
|
3099
|
-
|
|
3100
|
-
return { map:
|
|
3101
|
-
}
|
|
3102
|
-
function
|
|
3103
|
-
let
|
|
3104
|
-
const
|
|
3105
|
-
if (
|
|
3106
|
-
throw new Error('"' + b + '" cannot be encoded with mode ' + e.toString(
|
|
3107
|
-
Suggested mode is: ` + e.toString(
|
|
3108
|
-
switch (
|
|
3119
|
+
f[k[E]].end = 0;
|
|
3120
|
+
return { map: f, table: g };
|
|
3121
|
+
}
|
|
3122
|
+
function P(b, v) {
|
|
3123
|
+
let g;
|
|
3124
|
+
const f = e.getBestModeForData(b);
|
|
3125
|
+
if (g = e.from(v, f), g !== e.BYTE && g.bit < f.bit)
|
|
3126
|
+
throw new Error('"' + b + '" cannot be encoded with mode ' + e.toString(g) + `.
|
|
3127
|
+
Suggested mode is: ` + e.toString(f));
|
|
3128
|
+
switch (g === e.KANJI && !l.isKanjiModeEnabled() && (g = e.BYTE), g) {
|
|
3109
3129
|
case e.NUMERIC:
|
|
3110
3130
|
return new r(b);
|
|
3111
3131
|
case e.ALPHANUMERIC:
|
|
@@ -3117,23 +3137,23 @@ var jr = Nt.exports;
|
|
|
3117
3137
|
}
|
|
3118
3138
|
}
|
|
3119
3139
|
t.fromArray = function(v) {
|
|
3120
|
-
return v.reduce(function(
|
|
3121
|
-
return typeof
|
|
3140
|
+
return v.reduce(function(g, f) {
|
|
3141
|
+
return typeof f == "string" ? g.push(P(f, null)) : f.data && g.push(P(f.data, f.mode)), g;
|
|
3122
3142
|
}, []);
|
|
3123
|
-
}, t.fromString = function(v,
|
|
3124
|
-
const
|
|
3125
|
-
for (let
|
|
3126
|
-
|
|
3127
|
-
return t.fromArray(
|
|
3143
|
+
}, t.fromString = function(v, g) {
|
|
3144
|
+
const f = p(v, l.isKanjiModeEnabled()), k = m(f), E = y(k, g), A = a.find_path(E.map, "start", "end"), N = [];
|
|
3145
|
+
for (let F = 1; F < A.length - 1; F++)
|
|
3146
|
+
N.push(E.table[A[F]].node);
|
|
3147
|
+
return t.fromArray(u(N));
|
|
3128
3148
|
}, t.rawSplit = function(v) {
|
|
3129
3149
|
return t.fromArray(
|
|
3130
|
-
|
|
3150
|
+
p(v, l.isKanjiModeEnabled())
|
|
3131
3151
|
);
|
|
3132
3152
|
};
|
|
3133
3153
|
})(Dt);
|
|
3134
|
-
const
|
|
3135
|
-
function
|
|
3136
|
-
const r = t.size, n =
|
|
3154
|
+
const Ee = T, $e = ke, Vr = kr, Hr = Cr, Yr = St, jr = kt, Ue = Ct, ze = Ce, Qr = Er, xe = At, Kr = _t, Zr = q, Ne = Dt;
|
|
3155
|
+
function Jr(t, e) {
|
|
3156
|
+
const r = t.size, n = jr.getPositions(e);
|
|
3137
3157
|
for (let i = 0; i < n.length; i++) {
|
|
3138
3158
|
const o = n[i][0], s = n[i][1];
|
|
3139
3159
|
for (let l = -1; l <= 7; l++)
|
|
@@ -3142,15 +3162,15 @@ function Xr(t, e) {
|
|
|
3142
3162
|
s + a <= -1 || r <= s + a || (l >= 0 && l <= 6 && (a === 0 || a === 6) || a >= 0 && a <= 6 && (l === 0 || l === 6) || l >= 2 && l <= 4 && a >= 2 && a <= 4 ? t.set(o + l, s + a, !0, !0) : t.set(o + l, s + a, !1, !0));
|
|
3143
3163
|
}
|
|
3144
3164
|
}
|
|
3145
|
-
function
|
|
3165
|
+
function Gr(t) {
|
|
3146
3166
|
const e = t.size;
|
|
3147
3167
|
for (let r = 8; r < e - 8; r++) {
|
|
3148
3168
|
const n = r % 2 === 0;
|
|
3149
3169
|
t.set(r, 6, n, !0), t.set(6, r, n, !0);
|
|
3150
3170
|
}
|
|
3151
3171
|
}
|
|
3152
|
-
function
|
|
3153
|
-
const r =
|
|
3172
|
+
function Wr(t, e) {
|
|
3173
|
+
const r = Yr.getPositions(e);
|
|
3154
3174
|
for (let n = 0; n < r.length; n++) {
|
|
3155
3175
|
const i = r[n][0], o = r[n][1];
|
|
3156
3176
|
for (let s = -2; s <= 2; s++)
|
|
@@ -3158,28 +3178,28 @@ function Gr(t, e) {
|
|
|
3158
3178
|
s === -2 || s === 2 || l === -2 || l === 2 || s === 0 && l === 0 ? t.set(i + s, o + l, !0, !0) : t.set(i + s, o + l, !1, !0);
|
|
3159
3179
|
}
|
|
3160
3180
|
}
|
|
3161
|
-
function
|
|
3181
|
+
function Xr(t, e) {
|
|
3162
3182
|
const r = t.size, n = xe.getEncodedBits(e);
|
|
3163
3183
|
let i, o, s;
|
|
3164
3184
|
for (let l = 0; l < 18; l++)
|
|
3165
3185
|
i = Math.floor(l / 3), o = l % 3 + r - 8 - 3, s = (n >> l & 1) === 1, t.set(i, o, s, !0), t.set(o, i, s, !0);
|
|
3166
3186
|
}
|
|
3167
3187
|
function Re(t, e, r) {
|
|
3168
|
-
const n = t.size, i =
|
|
3188
|
+
const n = t.size, i = Kr.getEncodedBits(e, r);
|
|
3169
3189
|
let o, s;
|
|
3170
3190
|
for (o = 0; o < 15; o++)
|
|
3171
3191
|
s = (i >> o & 1) === 1, o < 6 ? t.set(o, 8, s, !0) : o < 8 ? t.set(o + 1, 8, s, !0) : t.set(n - 15 + o, 8, s, !0), o < 8 ? t.set(8, n - o - 1, s, !0) : o < 9 ? t.set(8, 15 - o - 1 + 1, s, !0) : t.set(8, 15 - o - 1, s, !0);
|
|
3172
3192
|
t.set(n - 8, 8, 1, !0);
|
|
3173
3193
|
}
|
|
3174
|
-
function
|
|
3194
|
+
function en(t, e) {
|
|
3175
3195
|
const r = t.size;
|
|
3176
3196
|
let n = -1, i = r - 1, o = 7, s = 0;
|
|
3177
3197
|
for (let l = r - 1; l > 0; l -= 2)
|
|
3178
3198
|
for (l === 6 && l--; ; ) {
|
|
3179
3199
|
for (let a = 0; a < 2; a++)
|
|
3180
3200
|
if (!t.isReserved(i, l - a)) {
|
|
3181
|
-
let
|
|
3182
|
-
s < e.length && (
|
|
3201
|
+
let c = !1;
|
|
3202
|
+
s < e.length && (c = (e[s] >>> o & 1) === 1), t.set(i, l - a, c), o--, o === -1 && (s++, o = 7);
|
|
3183
3203
|
}
|
|
3184
3204
|
if (i += n, i < 0 || r <= i) {
|
|
3185
3205
|
i -= n, n = -n;
|
|
@@ -3187,50 +3207,50 @@ function $r(t, e) {
|
|
|
3187
3207
|
}
|
|
3188
3208
|
}
|
|
3189
3209
|
}
|
|
3190
|
-
function
|
|
3210
|
+
function tn(t, e, r) {
|
|
3191
3211
|
const n = new Vr();
|
|
3192
3212
|
r.forEach(function(a) {
|
|
3193
|
-
n.put(a.mode.bit, 4), n.put(a.getLength(),
|
|
3213
|
+
n.put(a.mode.bit, 4), n.put(a.getLength(), Zr.getCharCountIndicator(a.mode, t)), a.write(n);
|
|
3194
3214
|
});
|
|
3195
|
-
const i =
|
|
3215
|
+
const i = Ee.getSymbolTotalCodewords(t), o = ze.getTotalCodewordsCount(t, e), s = (i - o) * 8;
|
|
3196
3216
|
for (n.getLengthInBits() + 4 <= s && n.put(0, 4); n.getLengthInBits() % 8 !== 0; )
|
|
3197
3217
|
n.putBit(0);
|
|
3198
3218
|
const l = (s - n.getLengthInBits()) / 8;
|
|
3199
3219
|
for (let a = 0; a < l; a++)
|
|
3200
3220
|
n.put(a % 2 ? 17 : 236, 8);
|
|
3201
|
-
return
|
|
3221
|
+
return rn(n, t, e);
|
|
3202
3222
|
}
|
|
3203
|
-
function
|
|
3204
|
-
const n =
|
|
3223
|
+
function rn(t, e, r) {
|
|
3224
|
+
const n = Ee.getSymbolTotalCodewords(e), i = ze.getTotalCodewordsCount(e, r), o = n - i, s = ze.getBlocksCount(e, r), l = n % s, a = s - l, c = Math.floor(n / s), d = Math.floor(o / s), p = d + 1, h = c - d, u = new Qr(h);
|
|
3205
3225
|
let m = 0;
|
|
3206
|
-
const
|
|
3226
|
+
const y = new Array(s), P = new Array(s);
|
|
3207
3227
|
let b = 0;
|
|
3208
3228
|
const v = new Uint8Array(t.buffer);
|
|
3209
3229
|
for (let A = 0; A < s; A++) {
|
|
3210
|
-
const
|
|
3211
|
-
|
|
3230
|
+
const N = A < a ? d : p;
|
|
3231
|
+
y[A] = v.slice(m, m + N), P[A] = u.encode(y[A]), m += N, b = Math.max(b, N);
|
|
3212
3232
|
}
|
|
3213
|
-
const
|
|
3214
|
-
let
|
|
3233
|
+
const g = new Uint8Array(n);
|
|
3234
|
+
let f = 0, k, E;
|
|
3215
3235
|
for (k = 0; k < b; k++)
|
|
3216
3236
|
for (E = 0; E < s; E++)
|
|
3217
|
-
k <
|
|
3218
|
-
for (k = 0; k <
|
|
3237
|
+
k < y[E].length && (g[f++] = y[E][k]);
|
|
3238
|
+
for (k = 0; k < h; k++)
|
|
3219
3239
|
for (E = 0; E < s; E++)
|
|
3220
|
-
|
|
3221
|
-
return
|
|
3240
|
+
g[f++] = P[E][k];
|
|
3241
|
+
return g;
|
|
3222
3242
|
}
|
|
3223
|
-
function
|
|
3243
|
+
function nn(t, e, r, n) {
|
|
3224
3244
|
let i;
|
|
3225
3245
|
if (Array.isArray(t))
|
|
3226
|
-
i =
|
|
3246
|
+
i = Ne.fromArray(t);
|
|
3227
3247
|
else if (typeof t == "string") {
|
|
3228
|
-
let
|
|
3229
|
-
if (!
|
|
3230
|
-
const
|
|
3231
|
-
|
|
3248
|
+
let c = e;
|
|
3249
|
+
if (!c) {
|
|
3250
|
+
const d = Ne.rawSplit(t);
|
|
3251
|
+
c = xe.getBestVersionForData(d, r);
|
|
3232
3252
|
}
|
|
3233
|
-
i =
|
|
3253
|
+
i = Ne.fromString(t, c || 40);
|
|
3234
3254
|
} else
|
|
3235
3255
|
throw new Error("Invalid data");
|
|
3236
3256
|
const o = xe.getBestVersionForData(i, r);
|
|
@@ -3245,11 +3265,11 @@ The chosen QR Code version cannot contain this amount of data.
|
|
|
3245
3265
|
Minimum version required to store current data is: ` + o + `.
|
|
3246
3266
|
`
|
|
3247
3267
|
);
|
|
3248
|
-
const s =
|
|
3249
|
-
return
|
|
3268
|
+
const s = tn(e, r, i), l = Ee.getSymbolSize(e), a = new Hr(l);
|
|
3269
|
+
return Jr(a, e), Gr(a), Wr(a, e), Re(a, r, 0), e >= 7 && Xr(a, e), en(a, s), isNaN(n) && (n = Ue.getBestMask(
|
|
3250
3270
|
a,
|
|
3251
3271
|
Re.bind(null, a, r)
|
|
3252
|
-
)),
|
|
3272
|
+
)), Ue.applyMask(n, a), Re(a, r, n), {
|
|
3253
3273
|
modules: a,
|
|
3254
3274
|
version: e,
|
|
3255
3275
|
errorCorrectionLevel: r,
|
|
@@ -3260,10 +3280,10 @@ Minimum version required to store current data is: ` + o + `.
|
|
|
3260
3280
|
wt.create = function(e, r) {
|
|
3261
3281
|
if (typeof e > "u" || e === "")
|
|
3262
3282
|
throw new Error("No input text");
|
|
3263
|
-
let n =
|
|
3264
|
-
return typeof r < "u" && (n =
|
|
3283
|
+
let n = $e.M, i, o;
|
|
3284
|
+
return typeof r < "u" && (n = $e.from(r.errorCorrectionLevel, $e.M), i = xe.from(r.version), o = Ue.from(r.maskPattern), r.toSJISFunc && Ee.setToSJISFunction(r.toSJISFunc)), nn(e, i, n, o);
|
|
3265
3285
|
};
|
|
3266
|
-
var
|
|
3286
|
+
var $t = {}, Ze = {};
|
|
3267
3287
|
(function(t) {
|
|
3268
3288
|
function e(r) {
|
|
3269
3289
|
if (typeof r == "number" && (r = r.toString()), typeof r != "string")
|
|
@@ -3303,20 +3323,20 @@ var Ft = {}, Xe = {};
|
|
|
3303
3323
|
const o = t.getScale(n, i);
|
|
3304
3324
|
return Math.floor((n + i.margin * 2) * o);
|
|
3305
3325
|
}, t.qrToImageData = function(n, i, o) {
|
|
3306
|
-
const s = i.modules.size, l = i.modules.data, a = t.getScale(s, o),
|
|
3307
|
-
for (let
|
|
3308
|
-
for (let
|
|
3309
|
-
let m = (
|
|
3310
|
-
if (
|
|
3311
|
-
const
|
|
3312
|
-
|
|
3326
|
+
const s = i.modules.size, l = i.modules.data, a = t.getScale(s, o), c = Math.floor((s + o.margin * 2) * a), d = o.margin * a, p = [o.color.light, o.color.dark];
|
|
3327
|
+
for (let h = 0; h < c; h++)
|
|
3328
|
+
for (let u = 0; u < c; u++) {
|
|
3329
|
+
let m = (h * c + u) * 4, y = o.color.light;
|
|
3330
|
+
if (h >= d && u >= d && h < c - d && u < c - d) {
|
|
3331
|
+
const P = Math.floor((h - d) / a), b = Math.floor((u - d) / a);
|
|
3332
|
+
y = p[l[P * s + b] ? 1 : 0];
|
|
3313
3333
|
}
|
|
3314
|
-
n[m++] =
|
|
3334
|
+
n[m++] = y.r, n[m++] = y.g, n[m++] = y.b, n[m] = y.a;
|
|
3315
3335
|
}
|
|
3316
3336
|
};
|
|
3317
|
-
})(
|
|
3337
|
+
})(Ze);
|
|
3318
3338
|
(function(t) {
|
|
3319
|
-
const e =
|
|
3339
|
+
const e = Ze;
|
|
3320
3340
|
function r(i, o, s) {
|
|
3321
3341
|
i.clearRect(0, 0, o.width, o.height), o.style || (o.style = {}), o.height = s, o.width = s, o.style.height = s + "px", o.style.width = s + "px";
|
|
3322
3342
|
}
|
|
@@ -3328,44 +3348,44 @@ var Ft = {}, Xe = {};
|
|
|
3328
3348
|
}
|
|
3329
3349
|
}
|
|
3330
3350
|
t.render = function(o, s, l) {
|
|
3331
|
-
let a = l,
|
|
3332
|
-
typeof a > "u" && (!s || !s.getContext) && (a = s, s = void 0), s || (
|
|
3333
|
-
const
|
|
3334
|
-
return e.qrToImageData(
|
|
3351
|
+
let a = l, c = s;
|
|
3352
|
+
typeof a > "u" && (!s || !s.getContext) && (a = s, s = void 0), s || (c = n()), a = e.getOptions(a);
|
|
3353
|
+
const d = e.getImageWidth(o.modules.size, a), p = c.getContext("2d"), h = p.createImageData(d, d);
|
|
3354
|
+
return e.qrToImageData(h.data, o, a), r(p, c, d), p.putImageData(h, 0, 0), c;
|
|
3335
3355
|
}, t.renderToDataURL = function(o, s, l) {
|
|
3336
3356
|
let a = l;
|
|
3337
3357
|
typeof a > "u" && (!s || !s.getContext) && (a = s, s = void 0), a || (a = {});
|
|
3338
|
-
const
|
|
3339
|
-
return
|
|
3358
|
+
const c = t.render(o, s, a), d = a.type || "image/png", p = a.rendererOpts || {};
|
|
3359
|
+
return c.toDataURL(d, p.quality);
|
|
3340
3360
|
};
|
|
3341
|
-
})(
|
|
3342
|
-
var
|
|
3343
|
-
const
|
|
3344
|
-
function
|
|
3361
|
+
})($t);
|
|
3362
|
+
var Nt = {};
|
|
3363
|
+
const on = Ze;
|
|
3364
|
+
function dt(t, e) {
|
|
3345
3365
|
const r = t.a / 255, n = e + '="' + t.hex + '"';
|
|
3346
3366
|
return r < 1 ? n + " " + e + '-opacity="' + r.toFixed(2).slice(1) + '"' : n;
|
|
3347
3367
|
}
|
|
3348
|
-
function
|
|
3368
|
+
function Le(t, e, r) {
|
|
3349
3369
|
let n = t + e;
|
|
3350
3370
|
return typeof r < "u" && (n += " " + r), n;
|
|
3351
3371
|
}
|
|
3352
|
-
function
|
|
3372
|
+
function sn(t, e, r) {
|
|
3353
3373
|
let n = "", i = 0, o = !1, s = 0;
|
|
3354
3374
|
for (let l = 0; l < t.length; l++) {
|
|
3355
|
-
const a = Math.floor(l % e),
|
|
3356
|
-
!a && !o && (o = !0), t[l] ? (s++, l > 0 && a > 0 && t[l - 1] || (n += o ?
|
|
3375
|
+
const a = Math.floor(l % e), c = Math.floor(l / e);
|
|
3376
|
+
!a && !o && (o = !0), t[l] ? (s++, l > 0 && a > 0 && t[l - 1] || (n += o ? Le("M", a + r, 0.5 + c + r) : Le("m", i, 0), i = 0, o = !1), a + 1 < e && t[l + 1] || (n += Le("h", s), s = 0)) : i++;
|
|
3357
3377
|
}
|
|
3358
3378
|
return n;
|
|
3359
3379
|
}
|
|
3360
|
-
|
|
3361
|
-
const i =
|
|
3380
|
+
Nt.render = function(e, r, n) {
|
|
3381
|
+
const i = on.getOptions(r), o = e.modules.size, s = e.modules.data, l = o + i.margin * 2, a = i.color.light.a ? "<path " + dt(i.color.light, "fill") + ' d="M0 0h' + l + "v" + l + 'H0z"/>' : "", c = "<path " + dt(i.color.dark, "stroke") + ' d="' + sn(s, o, i.margin) + '"/>', d = 'viewBox="0 0 ' + l + " " + l + '"', h = '<svg xmlns="http://www.w3.org/2000/svg" ' + (i.width ? 'width="' + i.width + '" height="' + i.width + '" ' : "") + d + ' shape-rendering="crispEdges">' + a + c + `</svg>
|
|
3362
3382
|
`;
|
|
3363
|
-
return typeof n == "function" && n(null,
|
|
3383
|
+
return typeof n == "function" && n(null, h), h;
|
|
3364
3384
|
};
|
|
3365
|
-
const
|
|
3385
|
+
const an = xr, Oe = wt, Rt = $t, ln = Nt;
|
|
3366
3386
|
function Je(t, e, r, n, i) {
|
|
3367
3387
|
const o = [].slice.call(arguments, 1), s = o.length, l = typeof o[s - 1] == "function";
|
|
3368
|
-
if (!l && !
|
|
3388
|
+
if (!l && !an())
|
|
3369
3389
|
throw new Error("Callback required as last argument");
|
|
3370
3390
|
if (l) {
|
|
3371
3391
|
if (s < 2)
|
|
@@ -3374,32 +3394,32 @@ function Je(t, e, r, n, i) {
|
|
|
3374
3394
|
} else {
|
|
3375
3395
|
if (s < 1)
|
|
3376
3396
|
throw new Error("Too few arguments provided");
|
|
3377
|
-
return s === 1 ? (r = e, e = n = void 0) : s === 2 && !e.getContext && (n = r, r = e, e = void 0), new Promise(function(a,
|
|
3397
|
+
return s === 1 ? (r = e, e = n = void 0) : s === 2 && !e.getContext && (n = r, r = e, e = void 0), new Promise(function(a, c) {
|
|
3378
3398
|
try {
|
|
3379
|
-
const
|
|
3380
|
-
a(t(
|
|
3381
|
-
} catch (
|
|
3382
|
-
d
|
|
3399
|
+
const d = Oe.create(r, n);
|
|
3400
|
+
a(t(d, e, n));
|
|
3401
|
+
} catch (d) {
|
|
3402
|
+
c(d);
|
|
3383
3403
|
}
|
|
3384
3404
|
});
|
|
3385
3405
|
}
|
|
3386
3406
|
try {
|
|
3387
|
-
const a =
|
|
3407
|
+
const a = Oe.create(r, n);
|
|
3388
3408
|
i(null, t(a, e, n));
|
|
3389
3409
|
} catch (a) {
|
|
3390
3410
|
i(a);
|
|
3391
3411
|
}
|
|
3392
3412
|
}
|
|
3393
|
-
pe.create =
|
|
3413
|
+
pe.create = Oe.create;
|
|
3394
3414
|
pe.toCanvas = Je.bind(null, Rt.render);
|
|
3395
3415
|
pe.toDataURL = Je.bind(null, Rt.renderToDataURL);
|
|
3396
3416
|
pe.toString = Je.bind(null, function(t, e, r) {
|
|
3397
|
-
return
|
|
3417
|
+
return ln.render(t, r);
|
|
3398
3418
|
});
|
|
3399
|
-
var
|
|
3419
|
+
var cn = Object.defineProperty, dn = Object.getOwnPropertyDescriptor, S = (t, e, r, n) => {
|
|
3400
3420
|
for (var i = n > 1 ? void 0 : n ? dn(e, r) : e, o = t.length - 1, s; o >= 0; o--)
|
|
3401
3421
|
(s = t[o]) && (i = (n ? s(e, r, i) : s(i)) || i);
|
|
3402
|
-
return n && i &&
|
|
3422
|
+
return n && i && cn(e, r, i), i;
|
|
3403
3423
|
};
|
|
3404
3424
|
let w = class extends se {
|
|
3405
3425
|
constructor() {
|
|
@@ -3556,10 +3576,14 @@ let w = class extends se {
|
|
|
3556
3576
|
return t.length === 0 ? [] : t.filter((e) => {
|
|
3557
3577
|
var r;
|
|
3558
3578
|
return !((r = this.excludePaymentMethods) != null && r.includes(e.id));
|
|
3559
|
-
}).map((e) => e.id ===
|
|
3579
|
+
}).map((e) => e.id === M.PAYNOW && this.getTransactionData().currency !== "SGD" ? {
|
|
3560
3580
|
id: e.id,
|
|
3561
3581
|
enabled: !1,
|
|
3562
3582
|
disabledReason: "PayNow is only available for SGD currency"
|
|
3583
|
+
} : e.id === M.PROMPTPAY && this.getTransactionData().currency !== "THB" ? {
|
|
3584
|
+
id: e.id,
|
|
3585
|
+
enabled: !1,
|
|
3586
|
+
disabledReason: "Prompt Pay is only available for THB currency"
|
|
3563
3587
|
} : {
|
|
3564
3588
|
id: e.id,
|
|
3565
3589
|
enabled: !0
|
|
@@ -3591,7 +3615,7 @@ let w = class extends se {
|
|
|
3591
3615
|
);
|
|
3592
3616
|
return;
|
|
3593
3617
|
}
|
|
3594
|
-
this.isInitialized || (this.isInitialized = !0, (t = this.sdk) == null || t.destroy(), this.sdk = new
|
|
3618
|
+
this.isInitialized || (this.isInitialized = !0, (t = this.sdk) == null || t.destroy(), this.sdk = new cr(this.config, this.adapters), this.sdk.subscribe((e) => {
|
|
3595
3619
|
var r;
|
|
3596
3620
|
((r = this.previousState) == null ? void 0 : r.status) === "requires_action" && e.status !== "requires_action" && this.show3DSModal && (this.show3DSModal = !1, this.nextActionUrl = null, this.leaveEventsCounter = 0, this.sdk && this.sdk.resumePolling()), this.previousState = e, this.currentState = e, this.dispatchEvent(
|
|
3597
3621
|
new CustomEvent("state-change", {
|
|
@@ -3649,6 +3673,12 @@ let w = class extends se {
|
|
|
3649
3673
|
this.handleQRScanned();
|
|
3650
3674
|
}, 1e4);
|
|
3651
3675
|
}
|
|
3676
|
+
), this.sdk.on(
|
|
3677
|
+
"promptpay_redirect",
|
|
3678
|
+
(e) => {
|
|
3679
|
+
const { redirectUrl: r } = e.payload;
|
|
3680
|
+
r && (window.location.href = r);
|
|
3681
|
+
}
|
|
3652
3682
|
), this.sdk.initialize({
|
|
3653
3683
|
amount: this.amount,
|
|
3654
3684
|
currency: this.currency,
|
|
@@ -3695,14 +3725,14 @@ let w = class extends se {
|
|
|
3695
3725
|
const l = parseInt(o, 10);
|
|
3696
3726
|
if (l < 1 || l > 12)
|
|
3697
3727
|
return { valid: !1, error: "Invalid month (01-12)" };
|
|
3698
|
-
const a = /* @__PURE__ */ new Date(),
|
|
3699
|
-
let
|
|
3728
|
+
const a = /* @__PURE__ */ new Date(), c = a.getFullYear(), d = a.getMonth() + 1;
|
|
3729
|
+
let p;
|
|
3700
3730
|
if (s.length === 2) {
|
|
3701
|
-
const
|
|
3702
|
-
|
|
3731
|
+
const h = parseInt(s, 10), u = c % 100, m = Math.floor(c / 100) * 100;
|
|
3732
|
+
h < u && u - h > 80 ? p = m + 100 + h : p = m + h;
|
|
3703
3733
|
} else
|
|
3704
3734
|
return { valid: !1, error: "Invalid year format" };
|
|
3705
|
-
return
|
|
3735
|
+
return p < c ? { valid: !1, error: "Card has expired" } : p === c && l < d ? { valid: !1, error: "Card has expired" } : { valid: !0 };
|
|
3706
3736
|
}
|
|
3707
3737
|
validateCardForm() {
|
|
3708
3738
|
const t = {};
|
|
@@ -3719,7 +3749,7 @@ let w = class extends se {
|
|
|
3719
3749
|
return;
|
|
3720
3750
|
this.paymentLocked = !0;
|
|
3721
3751
|
const t = this.cardFormData.expiry.split("/"), e = (t[0] || "").trim(), n = `20${(t[1] || "").trim().substring(0, 2)}`;
|
|
3722
|
-
this.sdk.submitPayment(
|
|
3752
|
+
this.sdk.submitPayment(M.CARD, {
|
|
3723
3753
|
cardNumber: this.cardFormData.cardNumber.replace(/\s/g, ""),
|
|
3724
3754
|
expiryMonth: e,
|
|
3725
3755
|
expiryYear: n,
|
|
@@ -3730,7 +3760,14 @@ let w = class extends se {
|
|
|
3730
3760
|
});
|
|
3731
3761
|
}
|
|
3732
3762
|
handlePayNowPayment() {
|
|
3733
|
-
!this.sdk || this.currentState.status !== "ready" || (this.paymentLocked = !0, this.sdk.submitPayment(
|
|
3763
|
+
!this.sdk || this.currentState.status !== "ready" || (this.paymentLocked = !0, this.sdk.submitPayment(M.PAYNOW, {
|
|
3764
|
+
firstName: this.firstName,
|
|
3765
|
+
lastName: this.lastName,
|
|
3766
|
+
email: this.email
|
|
3767
|
+
}));
|
|
3768
|
+
}
|
|
3769
|
+
handlePromptPayPayment() {
|
|
3770
|
+
!this.sdk || this.currentState.status !== "ready" || (this.paymentLocked = !0, this.sdk.submitPayment(M.PROMPTPAY, {
|
|
3734
3771
|
firstName: this.firstName,
|
|
3735
3772
|
lastName: this.lastName,
|
|
3736
3773
|
email: this.email
|
|
@@ -3752,7 +3789,7 @@ let w = class extends se {
|
|
|
3752
3789
|
},
|
|
3753
3790
|
netAmount: this.amount
|
|
3754
3791
|
};
|
|
3755
|
-
const e = (a = t.fees) == null ? void 0 : a.find((
|
|
3792
|
+
const e = (a = t.fees) == null ? void 0 : a.find((c) => c.owner === "merchant"), r = () => e ? e.type === "percentage" ? `${e.value}%` : `${e.value} ${e.currency}` : "", n = typeof t.totalFee == "number" ? t.totalFee : Number(t.totalFee) || 0, i = typeof t.totalSystemFee == "number" ? t.totalSystemFee : Number(t.totalSystemFee) || 0, o = t.initialAmount != null ? typeof t.initialAmount == "number" ? t.initialAmount : Number(t.initialAmount) || 0 : this.amount, s = t.customerAmount != null ? typeof t.customerAmount == "number" ? t.customerAmount : Number(t.customerAmount) || 0 : o, l = n - i;
|
|
3756
3793
|
return {
|
|
3757
3794
|
currency: t.currency || this.currency,
|
|
3758
3795
|
charge: o,
|
|
@@ -3766,7 +3803,7 @@ let w = class extends se {
|
|
|
3766
3803
|
};
|
|
3767
3804
|
}
|
|
3768
3805
|
renderTransactionDetailsSkeleton() {
|
|
3769
|
-
return
|
|
3806
|
+
return C`
|
|
3770
3807
|
<div class="skeleton-transaction">
|
|
3771
3808
|
<div class="skeleton skeleton-title"></div>
|
|
3772
3809
|
<div class="skeleton-row">
|
|
@@ -3790,7 +3827,7 @@ let w = class extends se {
|
|
|
3790
3827
|
`;
|
|
3791
3828
|
}
|
|
3792
3829
|
renderPaymentMethodsSkeleton() {
|
|
3793
|
-
return
|
|
3830
|
+
return C`
|
|
3794
3831
|
<div>
|
|
3795
3832
|
<div class="skeleton-method">
|
|
3796
3833
|
<div class="skeleton skeleton-radio"></div>
|
|
@@ -3810,7 +3847,7 @@ let w = class extends se {
|
|
|
3810
3847
|
this.width ? `--one-payment-width: ${this.width}` : "",
|
|
3811
3848
|
this.maxWidth ? `--one-payment-max-width: ${this.maxWidth}` : ""
|
|
3812
3849
|
].filter(Boolean).join("; ");
|
|
3813
|
-
return
|
|
3850
|
+
return C`
|
|
3814
3851
|
<div class="payment-element" style="${t}">
|
|
3815
3852
|
${this.renderTransactionDetailsSkeleton()}
|
|
3816
3853
|
<div class="header">Select a payment method</div>
|
|
@@ -3820,7 +3857,7 @@ let w = class extends se {
|
|
|
3820
3857
|
}
|
|
3821
3858
|
renderTransactionDetails() {
|
|
3822
3859
|
const t = this.getTransactionData(), e = (r) => r.toFixed(2);
|
|
3823
|
-
return
|
|
3860
|
+
return C`
|
|
3824
3861
|
<div class="transaction-details">
|
|
3825
3862
|
<h2 class="transaction-title">Transaction details</h2>
|
|
3826
3863
|
|
|
@@ -3855,7 +3892,7 @@ let w = class extends se {
|
|
|
3855
3892
|
margin-top: ${this.feesExpanded ? "0.625rem" : "0"};
|
|
3856
3893
|
`}
|
|
3857
3894
|
>
|
|
3858
|
-
${t.feeBreakdown ?
|
|
3895
|
+
${t.feeBreakdown ? C`
|
|
3859
3896
|
<div class="fee-breakdown-inner">
|
|
3860
3897
|
<div class="breakdown-row">
|
|
3861
3898
|
<span class="breakdown-label">Transaction fee:</span>
|
|
@@ -3889,7 +3926,7 @@ let w = class extends se {
|
|
|
3889
3926
|
renderCardForm() {
|
|
3890
3927
|
setTimeout(() => this.setupCleave(), 0);
|
|
3891
3928
|
const t = this.cardBrand === "amex" ? 4 : 3, e = this.cardBrand === "amex" ? "1234" : "123";
|
|
3892
|
-
return
|
|
3929
|
+
return C`
|
|
3893
3930
|
<div class="card-form">
|
|
3894
3931
|
<h4 class="form-title">Card Information</h4>
|
|
3895
3932
|
<div class="form-fields">
|
|
@@ -3904,7 +3941,7 @@ let w = class extends se {
|
|
|
3904
3941
|
.value=${this.cardFormData.cardNumber}
|
|
3905
3942
|
@input=${(r) => this.handleInputChange("cardNumber", r.target.value)}
|
|
3906
3943
|
/>
|
|
3907
|
-
${this.formErrors.cardNumber ?
|
|
3944
|
+
${this.formErrors.cardNumber ? C`<div class="error-message">${this.formErrors.cardNumber}</div>` : ""}
|
|
3908
3945
|
</div>
|
|
3909
3946
|
|
|
3910
3947
|
<!-- Single Expiry Field -->
|
|
@@ -3923,7 +3960,7 @@ let w = class extends se {
|
|
|
3923
3960
|
}, 0);
|
|
3924
3961
|
}}
|
|
3925
3962
|
/>
|
|
3926
|
-
${this.formErrors.expiry ?
|
|
3963
|
+
${this.formErrors.expiry ? C`<div class="error-message">${this.formErrors.expiry}</div>` : ""}
|
|
3927
3964
|
</div>
|
|
3928
3965
|
|
|
3929
3966
|
<!-- CVV -->
|
|
@@ -3940,7 +3977,7 @@ let w = class extends se {
|
|
|
3940
3977
|
r.target.value = n, this.handleInputChange("cvv", n);
|
|
3941
3978
|
}}
|
|
3942
3979
|
/>
|
|
3943
|
-
${this.formErrors.cvv ?
|
|
3980
|
+
${this.formErrors.cvv ? C`<div class="error-message">${this.formErrors.cvv}</div>` : ""}
|
|
3944
3981
|
</div>
|
|
3945
3982
|
|
|
3946
3983
|
<!-- Cardholder Name -->
|
|
@@ -3956,7 +3993,7 @@ let w = class extends se {
|
|
|
3956
3993
|
r.target.value = n, this.handleInputChange("cardholderName", n);
|
|
3957
3994
|
}}
|
|
3958
3995
|
/>
|
|
3959
|
-
${this.formErrors.cardholderName ?
|
|
3996
|
+
${this.formErrors.cardholderName ? C`<div class="error-message">${this.formErrors.cardholderName}</div>` : ""}
|
|
3960
3997
|
</div>
|
|
3961
3998
|
</div>
|
|
3962
3999
|
|
|
@@ -3973,7 +4010,7 @@ let w = class extends se {
|
|
|
3973
4010
|
`;
|
|
3974
4011
|
}
|
|
3975
4012
|
renderPayNowContent() {
|
|
3976
|
-
return this.showQRModal && this.qrCodeDataUrl ?
|
|
4013
|
+
return this.showQRModal && this.qrCodeDataUrl ? C`
|
|
3977
4014
|
<div class="paynow-container">
|
|
3978
4015
|
<!-- Render generated QR code image -->
|
|
3979
4016
|
<div class="qr-code-wrapper">
|
|
@@ -3990,7 +4027,7 @@ let w = class extends se {
|
|
|
3990
4027
|
${this.qrPollingInProgress ? "Verifying..." : "I Have Scanned the QR Code"}
|
|
3991
4028
|
</button>
|
|
3992
4029
|
</div>
|
|
3993
|
-
` :
|
|
4030
|
+
` : C`
|
|
3994
4031
|
<div class="paynow-container">
|
|
3995
4032
|
<div class="paynow-instructions">
|
|
3996
4033
|
<h3 class="instructions-title">How to Pay by QR:</h3>
|
|
@@ -4020,8 +4057,44 @@ let w = class extends se {
|
|
|
4020
4057
|
</div>
|
|
4021
4058
|
`;
|
|
4022
4059
|
}
|
|
4060
|
+
renderPromptPayContent() {
|
|
4061
|
+
return C`
|
|
4062
|
+
<div class="paynow-container">
|
|
4063
|
+
<div class="paynow-instructions">
|
|
4064
|
+
<h3 class="instructions-title">How to Pay with Prompt Pay:</h3>
|
|
4065
|
+
|
|
4066
|
+
<div class="instruction-steps">
|
|
4067
|
+
<div class="instruction-step">
|
|
4068
|
+
<div class="step-number">1</div>
|
|
4069
|
+
<p class="step-text">Click <strong>"Pay"</strong> to go to the payment page.</p>
|
|
4070
|
+
</div>
|
|
4071
|
+
|
|
4072
|
+
<div class="instruction-step">
|
|
4073
|
+
<div class="step-number">2</div>
|
|
4074
|
+
<p class="step-text">Scan the QR code with your banking app.</p>
|
|
4075
|
+
</div>
|
|
4076
|
+
|
|
4077
|
+
<div class="instruction-step">
|
|
4078
|
+
<div class="step-number">3</div>
|
|
4079
|
+
<p class="step-text">You'll be redirected back automatically.</p>
|
|
4080
|
+
</div>
|
|
4081
|
+
</div>
|
|
4082
|
+
|
|
4083
|
+
<div class="submit-section">
|
|
4084
|
+
<button
|
|
4085
|
+
class="pay-button ${this.currentState.status === "processing" || this.currentState.status === "requires_action" ? "loading" : ""}"
|
|
4086
|
+
@click=${this.handlePromptPayPayment}
|
|
4087
|
+
?disabled=${this.currentState.status === "processing" || this.currentState.status === "requires_action"}
|
|
4088
|
+
>
|
|
4089
|
+
${this.currentState.status === "processing" || this.currentState.status === "requires_action" ? "Redirecting..." : `Pay ${this.currency} ${this.amount.toFixed(2)}`}
|
|
4090
|
+
</button>
|
|
4091
|
+
</div>
|
|
4092
|
+
</div>
|
|
4093
|
+
</div>
|
|
4094
|
+
`;
|
|
4095
|
+
}
|
|
4023
4096
|
render3DSModal() {
|
|
4024
|
-
return !this.show3DSModal || !this.nextActionUrl ? null :
|
|
4097
|
+
return !this.show3DSModal || !this.nextActionUrl ? null : C`
|
|
4025
4098
|
<div class="modal-overlay">
|
|
4026
4099
|
<div class="modal-content iframe-modal">
|
|
4027
4100
|
<iframe
|
|
@@ -4036,7 +4109,7 @@ let w = class extends se {
|
|
|
4036
4109
|
}
|
|
4037
4110
|
renderStatusBlock() {
|
|
4038
4111
|
if (this.currentState.status === "succeeded")
|
|
4039
|
-
return
|
|
4112
|
+
return C`
|
|
4040
4113
|
<div class="result-card success">
|
|
4041
4114
|
<div class="result-icon-wrapper">
|
|
4042
4115
|
<div class="result-icon">✓</div>
|
|
@@ -4050,7 +4123,7 @@ let w = class extends se {
|
|
|
4050
4123
|
`;
|
|
4051
4124
|
if (this.currentState.status === "failed") {
|
|
4052
4125
|
const t = this.currentState.error ? this.currentState.error.message : "An error occurred while processing your payment";
|
|
4053
|
-
return
|
|
4126
|
+
return C`
|
|
4054
4127
|
<div class="result-card error">
|
|
4055
4128
|
<div class="result-icon-wrapper">
|
|
4056
4129
|
<div class="result-icon">✕</div>
|
|
@@ -4076,7 +4149,18 @@ let w = class extends se {
|
|
|
4076
4149
|
l && this.selectedMethod !== l.id && (this.selectedMethod = l.id);
|
|
4077
4150
|
}
|
|
4078
4151
|
}
|
|
4079
|
-
const n = (s) =>
|
|
4152
|
+
const n = (s) => {
|
|
4153
|
+
switch (s) {
|
|
4154
|
+
case M.CARD:
|
|
4155
|
+
return "Card";
|
|
4156
|
+
case M.PAYNOW:
|
|
4157
|
+
return "PayNow";
|
|
4158
|
+
case M.PROMPTPAY:
|
|
4159
|
+
return "Prompt Pay";
|
|
4160
|
+
default:
|
|
4161
|
+
return s;
|
|
4162
|
+
}
|
|
4163
|
+
}, i = (s) => s === M.CARD ? C`
|
|
4080
4164
|
<div class="method-icon-right">
|
|
4081
4165
|
<svg width="24" height="24" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">
|
|
4082
4166
|
<path
|
|
@@ -4089,26 +4173,30 @@ let w = class extends se {
|
|
|
4089
4173
|
/>
|
|
4090
4174
|
</svg>
|
|
4091
4175
|
</div>
|
|
4092
|
-
` : s ===
|
|
4176
|
+
` : s === M.PAYNOW ? C`
|
|
4093
4177
|
<div class="method-icon-right">
|
|
4094
|
-
<img src="${
|
|
4178
|
+
<img src="${dr}" alt="PayNow" style="width: 45px; height: auto;" />
|
|
4179
|
+
</div>
|
|
4180
|
+
` : s === M.PROMPTPAY ? C`
|
|
4181
|
+
<div class="method-icon-right">
|
|
4182
|
+
<img src="${ur}" alt="Prompt Pay" style="width: 45px; height: auto;" />
|
|
4095
4183
|
</div>
|
|
4096
4184
|
` : null, o = [
|
|
4097
4185
|
this.width ? `--one-payment-width: ${this.width}` : "",
|
|
4098
4186
|
this.maxWidth ? `--one-payment-max-width: ${this.maxWidth}` : ""
|
|
4099
4187
|
].filter(Boolean).join("; ");
|
|
4100
|
-
return
|
|
4188
|
+
return C`
|
|
4101
4189
|
<div class="payment-element" style="${o}">
|
|
4102
4190
|
${this.renderTransactionDetails()}
|
|
4103
|
-
${e ?
|
|
4191
|
+
${e ? C`
|
|
4104
4192
|
<div class="header">Select a payment method</div>
|
|
4105
4193
|
<div class="payment-methods-list">
|
|
4106
4194
|
${r.map((s) => {
|
|
4107
4195
|
const l = this.selectedMethod === s.id, a = !s.enabled || this.paymentLocked && !l;
|
|
4108
|
-
return
|
|
4196
|
+
return C`
|
|
4109
4197
|
<div
|
|
4110
4198
|
class="payment-method-item"
|
|
4111
|
-
${s.disabledReason ?
|
|
4199
|
+
${s.disabledReason ? C`data-tooltip="${s.disabledReason}"` : ""}
|
|
4112
4200
|
>
|
|
4113
4201
|
<div
|
|
4114
4202
|
class="method-header ${l ? "selected" : ""} ${a ? "disabled" : ""}"
|
|
@@ -4120,13 +4208,13 @@ let w = class extends se {
|
|
|
4120
4208
|
name="payment-method"
|
|
4121
4209
|
.checked=${l}
|
|
4122
4210
|
?disabled=${a}
|
|
4123
|
-
@click=${(
|
|
4211
|
+
@click=${(c) => c.stopPropagation()}
|
|
4124
4212
|
/>
|
|
4125
4213
|
<span class="method-name">${n(s.id)}</span>
|
|
4126
4214
|
${i(s.id)}
|
|
4127
4215
|
</div>
|
|
4128
|
-
${l ?
|
|
4129
|
-
${s.id ===
|
|
4216
|
+
${l ? C`<div class="method-content">
|
|
4217
|
+
${s.id === M.CARD ? this.renderCardForm() : s.id === M.PAYNOW ? this.renderPayNowContent() : s.id === M.PROMPTPAY ? this.renderPromptPayContent() : null}
|
|
4130
4218
|
</div>` : ""}
|
|
4131
4219
|
</div>
|
|
4132
4220
|
`;
|
|
@@ -4140,7 +4228,7 @@ let w = class extends se {
|
|
|
4140
4228
|
`;
|
|
4141
4229
|
}
|
|
4142
4230
|
};
|
|
4143
|
-
w.styles =
|
|
4231
|
+
w.styles = Bt`
|
|
4144
4232
|
/* ═══════════════════════════════════════════════════════════════
|
|
4145
4233
|
CSS CUSTOM PROPERTIES (Theming)
|
|
4146
4234
|
═══════════════════════════════════════════════════════════════ */
|
|
@@ -5463,93 +5551,105 @@ w.styles = Ut`
|
|
|
5463
5551
|
}
|
|
5464
5552
|
`;
|
|
5465
5553
|
S([
|
|
5466
|
-
|
|
5554
|
+
D({ type: Object })
|
|
5467
5555
|
], w.prototype, "config", 2);
|
|
5468
5556
|
S([
|
|
5469
|
-
|
|
5557
|
+
D({ type: Object })
|
|
5470
5558
|
], w.prototype, "adapters", 2);
|
|
5471
5559
|
S([
|
|
5472
|
-
|
|
5560
|
+
D({ type: Number })
|
|
5473
5561
|
], w.prototype, "amount", 2);
|
|
5474
5562
|
S([
|
|
5475
|
-
|
|
5563
|
+
D({ type: String })
|
|
5476
5564
|
], w.prototype, "currency", 2);
|
|
5477
5565
|
S([
|
|
5478
|
-
|
|
5566
|
+
D({ type: String })
|
|
5479
5567
|
], w.prototype, "orderId", 2);
|
|
5480
5568
|
S([
|
|
5481
|
-
|
|
5569
|
+
D({ type: String })
|
|
5482
5570
|
], w.prototype, "firstName", 2);
|
|
5483
5571
|
S([
|
|
5484
|
-
|
|
5572
|
+
D({ type: String })
|
|
5485
5573
|
], w.prototype, "lastName", 2);
|
|
5486
5574
|
S([
|
|
5487
|
-
|
|
5575
|
+
D({ type: String })
|
|
5488
5576
|
], w.prototype, "email", 2);
|
|
5489
5577
|
S([
|
|
5490
|
-
|
|
5578
|
+
D({ type: Array })
|
|
5491
5579
|
], w.prototype, "excludePaymentMethods", 2);
|
|
5492
5580
|
S([
|
|
5493
|
-
|
|
5581
|
+
D({ type: String })
|
|
5494
5582
|
], w.prototype, "width", 2);
|
|
5495
5583
|
S([
|
|
5496
|
-
|
|
5584
|
+
D({ type: String })
|
|
5497
5585
|
], w.prototype, "maxWidth", 2);
|
|
5498
5586
|
S([
|
|
5499
|
-
|
|
5587
|
+
D({ type: Object })
|
|
5500
5588
|
], w.prototype, "appearance", 2);
|
|
5501
5589
|
S([
|
|
5502
|
-
|
|
5590
|
+
_()
|
|
5503
5591
|
], w.prototype, "currentState", 2);
|
|
5504
5592
|
S([
|
|
5505
|
-
|
|
5593
|
+
_()
|
|
5506
5594
|
], w.prototype, "selectedMethod", 2);
|
|
5507
5595
|
S([
|
|
5508
|
-
|
|
5596
|
+
_()
|
|
5509
5597
|
], w.prototype, "cardFormData", 2);
|
|
5510
5598
|
S([
|
|
5511
|
-
|
|
5599
|
+
_()
|
|
5512
5600
|
], w.prototype, "formErrors", 2);
|
|
5513
5601
|
S([
|
|
5514
|
-
|
|
5602
|
+
_()
|
|
5515
5603
|
], w.prototype, "paymentData", 2);
|
|
5516
5604
|
S([
|
|
5517
|
-
|
|
5605
|
+
_()
|
|
5518
5606
|
], w.prototype, "feesExpanded", 2);
|
|
5519
5607
|
S([
|
|
5520
|
-
|
|
5608
|
+
_()
|
|
5521
5609
|
], w.prototype, "isInitializing", 2);
|
|
5522
5610
|
S([
|
|
5523
|
-
|
|
5611
|
+
_()
|
|
5524
5612
|
], w.prototype, "cardBrand", 2);
|
|
5525
5613
|
S([
|
|
5526
|
-
|
|
5614
|
+
_()
|
|
5527
5615
|
], w.prototype, "paymentLocked", 2);
|
|
5528
5616
|
S([
|
|
5529
|
-
|
|
5617
|
+
_()
|
|
5530
5618
|
], w.prototype, "show3DSModal", 2);
|
|
5531
5619
|
S([
|
|
5532
|
-
|
|
5620
|
+
_()
|
|
5533
5621
|
], w.prototype, "showQRModal", 2);
|
|
5534
5622
|
S([
|
|
5535
|
-
|
|
5623
|
+
_()
|
|
5536
5624
|
], w.prototype, "nextActionUrl", 2);
|
|
5537
5625
|
S([
|
|
5538
|
-
|
|
5626
|
+
_()
|
|
5539
5627
|
], w.prototype, "qrCode", 2);
|
|
5540
5628
|
S([
|
|
5541
|
-
|
|
5629
|
+
_()
|
|
5542
5630
|
], w.prototype, "qrCodeDataUrl", 2);
|
|
5543
5631
|
S([
|
|
5544
|
-
|
|
5632
|
+
_()
|
|
5545
5633
|
], w.prototype, "qrAutoResumeTimer", 2);
|
|
5546
5634
|
S([
|
|
5547
|
-
|
|
5635
|
+
_()
|
|
5548
5636
|
], w.prototype, "qrPollingInProgress", 2);
|
|
5549
5637
|
w = S([
|
|
5550
5638
|
rr("one-payment")
|
|
5551
5639
|
], w);
|
|
5640
|
+
const un = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
5641
|
+
__proto__: null,
|
|
5642
|
+
get OnePayment() {
|
|
5643
|
+
return w;
|
|
5644
|
+
}
|
|
5645
|
+
}, Symbol.toStringTag, { value: "Module" }));
|
|
5646
|
+
function mn() {
|
|
5647
|
+
customElements.get("one-payment") || Promise.resolve().then(() => un).then(({ OnePayment: t }) => {
|
|
5648
|
+
customElements.define("one-payment", t);
|
|
5649
|
+
});
|
|
5650
|
+
}
|
|
5552
5651
|
export {
|
|
5553
5652
|
w as OnePayment,
|
|
5554
|
-
w as OnePaymentElement
|
|
5653
|
+
w as OnePaymentElement,
|
|
5654
|
+
mn as defineCustomElements
|
|
5555
5655
|
};
|