@bootpay/client-js 5.2.0-beta.1 → 5.2.0-beta.2

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.es.js CHANGED
@@ -15,8 +15,8 @@ const te = {
15
15
  }), re = (t) => {
16
16
  let e = !1;
17
17
  return typeof t == "string" || Array.isArray(t) ? e = t.length === 0 : e = t == null || st(t, "object") && t.constructor === Object && Object.keys(t).length === 0, e;
18
- }, M = (t) => !re(t), st = (t, e) => typeof t === e, Ds = (t, e = void 0) => {
19
- if (M(e)) {
18
+ }, N = (t) => !re(t), st = (t, e) => typeof t === e, Ds = (t, e = void 0) => {
19
+ if (N(e)) {
20
20
  const r = typeof e != "string" ? new URLSearchParams(JSON.parse(JSON.stringify(e))).toString() : e;
21
21
  return /\?/.test(t) ? `${t}&${r}` : `${t}?${r}`;
22
22
  } else
@@ -26,7 +26,7 @@ const te = {
26
26
  e.hasOwnProperty(r) && (t[r] = e[r]);
27
27
  return t;
28
28
  };
29
- var N = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
29
+ var M = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
30
30
  function ze(t) {
31
31
  return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
32
32
  }
@@ -54,19 +54,19 @@ function Hs(t) {
54
54
  throw new Error('Could not dynamically require "' + t + '". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.');
55
55
  }
56
56
  var $t = { exports: {} };
57
- const Ms = {}, Ns = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
57
+ const Ns = {}, Ms = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
58
58
  __proto__: null,
59
- default: Ms
60
- }, Symbol.toStringTag, { value: "Module" })), Ls = /* @__PURE__ */ Fs(Ns);
59
+ default: Ns
60
+ }, Symbol.toStringTag, { value: "Module" })), Ls = /* @__PURE__ */ Fs(Ms);
61
61
  var Gr;
62
62
  function z() {
63
63
  return Gr || (Gr = 1, function(t, e) {
64
64
  (function(r, s) {
65
65
  t.exports = s();
66
- })(N, function() {
66
+ })(M, function() {
67
67
  var r = r || function(s, n) {
68
68
  var i;
69
- if (typeof window < "u" && window.crypto && (i = window.crypto), typeof self < "u" && self.crypto && (i = self.crypto), typeof globalThis < "u" && globalThis.crypto && (i = globalThis.crypto), !i && typeof window < "u" && window.msCrypto && (i = window.msCrypto), !i && typeof N < "u" && N.crypto && (i = N.crypto), !i && typeof Hs == "function")
69
+ if (typeof window < "u" && window.crypto && (i = window.crypto), typeof self < "u" && self.crypto && (i = self.crypto), typeof globalThis < "u" && globalThis.crypto && (i = globalThis.crypto), !i && typeof window < "u" && window.msCrypto && (i = window.msCrypto), !i && typeof M < "u" && M.crypto && (i = M.crypto), !i && typeof Hs == "function")
70
70
  try {
71
71
  i = Ls;
72
72
  } catch {
@@ -562,7 +562,7 @@ function z() {
562
562
  (function(t, e) {
563
563
  (function(r, s) {
564
564
  t.exports = s(z());
565
- })(N, function(r) {
565
+ })(M, function(r) {
566
566
  return r.enc.Utf8;
567
567
  });
568
568
  })(Z0);
@@ -573,7 +573,7 @@ function Re() {
573
573
  return Vr || (Vr = 1, function(t, e) {
574
574
  (function(r, s) {
575
575
  t.exports = s(z());
576
- })(N, function(r) {
576
+ })(M, function(r) {
577
577
  return function() {
578
578
  var s = r, n = s.lib, i = n.WordArray, x = s.enc;
579
579
  x.Base64 = {
@@ -861,7 +861,7 @@ class js extends zs {
861
861
  }
862
862
  }
863
863
  }
864
- const Te = new js(), Ks = "@bootpay/client-js", Gs = "5.2.0-beta.1", Xs = "dist/index.es.js", Vs = "dist/src/index.d.ts", Ys = "dist/index.css", Js = {
864
+ const Te = new js(), Ks = "@bootpay/client-js", Gs = "5.2.0-beta.2", Xs = "dist/index.es.js", Vs = "dist/src/index.d.ts", Ys = "dist/index.css", Js = {
865
865
  test: 'echo "Error: no test specified" && exit 1',
866
866
  build: "rm -rf ./dist && vite build",
867
867
  deploy: "NODE_ENV=production ./node_modules/.bin/webpack --output-path=./dist --mode=production && gzip -kf dist/*.min.js && ./webview.sh $npm_package_version"
@@ -1017,7 +1017,7 @@ const Se = {
1017
1017
  return re(Se.__BOOTPAY_NAMESPACE) && (Se.__BOOTPAY_NAMESPACE = {}), this.addEventListener(t.split(".")[0], e, r || !1), Se.__BOOTPAY_NAMESPACE[t] = e, this;
1018
1018
  },
1019
1019
  off(t) {
1020
- return M(Se.__BOOTPAY_NAMESPACE) && M(Se.__BOOTPAY_NAMESPACE[t]) && this.removeEventListener(t.split(".")[0], Se.__BOOTPAY_NAMESPACE[t]), this;
1020
+ return N(Se.__BOOTPAY_NAMESPACE) && N(Se.__BOOTPAY_NAMESPACE[t]) && this.removeEventListener(t.split(".")[0], Se.__BOOTPAY_NAMESPACE[t]), this;
1021
1021
  }
1022
1022
  };
1023
1023
  class ot extends Ae {
@@ -1027,9 +1027,9 @@ class ot extends Ae {
1027
1027
  bind(e, r) {
1028
1028
  this.$messageEventName && window.resetBootpayEventListener(this.$messageEventName, (s) => {
1029
1029
  const n = this.parseEvent(s.data);
1030
- if (F.debug("event received", JSON.stringify(n)), M(n) && M(n.event)) {
1030
+ if (F.debug("event received", JSON.stringify(n)), N(n) && N(n.event)) {
1031
1031
  const i = this.hookFunction(n.hook);
1032
- if (M(i) && M(i[n.event]))
1032
+ if (N(i) && N(i[n.event]))
1033
1033
  return i[n.event](n.data, this);
1034
1034
  F.debug("event", `${this.$messageEventName}: ${n.event} is not defined`);
1035
1035
  }
@@ -1039,10 +1039,10 @@ class ot extends Ae {
1039
1039
  return this.$eventHooks[e];
1040
1040
  }
1041
1041
  reject(e) {
1042
- M(this.$reject) && this.$reject(e);
1042
+ N(this.$reject) && this.$reject(e);
1043
1043
  }
1044
1044
  resolve(e) {
1045
- M(this.$resolve) && this.$resolve(e);
1045
+ N(this.$resolve) && this.$resolve(e);
1046
1046
  }
1047
1047
  /**
1048
1048
  * 함수를 class instnace variables에 넣는다
@@ -1333,7 +1333,7 @@ var Bn = /* @__PURE__ */ function(t) {
1333
1333
  toArray: Sn,
1334
1334
  isTypedArray: Bn,
1335
1335
  isFileList: xn
1336
- }, Ne = Q;
1336
+ }, Me = Q;
1337
1337
  function Yr(t) {
1338
1338
  return encodeURIComponent(t).replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+").replace(/%5B/gi, "[").replace(/%5D/gi, "]");
1339
1339
  }
@@ -1343,13 +1343,13 @@ var rs = function(e, r, s) {
1343
1343
  var n;
1344
1344
  if (s)
1345
1345
  n = s(r);
1346
- else if (Ne.isURLSearchParams(r))
1346
+ else if (Me.isURLSearchParams(r))
1347
1347
  n = r.toString();
1348
1348
  else {
1349
1349
  var i = [];
1350
- Ne.forEach(r, function(p, a) {
1351
- p === null || typeof p > "u" || (Ne.isArray(p) ? a = a + "[]" : p = [p], Ne.forEach(p, function(y) {
1352
- Ne.isDate(y) ? y = y.toISOString() : Ne.isObject(y) && (y = JSON.stringify(y)), i.push(Yr(a) + "=" + Yr(y));
1350
+ Me.forEach(r, function(p, a) {
1351
+ p === null || typeof p > "u" || (Me.isArray(p) ? a = a + "[]" : p = [p], Me.forEach(p, function(y) {
1352
+ Me.isDate(y) ? y = y.toISOString() : Me.isObject(y) && (y = JSON.stringify(y)), i.push(Yr(a) + "=" + Yr(y));
1353
1353
  }));
1354
1354
  }), n = i.join("&");
1355
1355
  }
@@ -1527,7 +1527,7 @@ var Un = function(e) {
1527
1527
  }, Fn = Un, Hn = Dn, cs = function(e, r) {
1528
1528
  return e && !Fn(r) ? Hn(e, r) : r;
1529
1529
  }, Bt, Qr;
1530
- function Mn() {
1530
+ function Nn() {
1531
1531
  if (Qr) return Bt;
1532
1532
  Qr = 1;
1533
1533
  var t = Q, e = [
@@ -1562,7 +1562,7 @@ function Mn() {
1562
1562
  }, Bt;
1563
1563
  }
1564
1564
  var Pt, e0;
1565
- function Nn() {
1565
+ function Mn() {
1566
1566
  if (e0) return Pt;
1567
1567
  e0 = 1;
1568
1568
  var t = Q;
@@ -1621,7 +1621,7 @@ var Tt, s0;
1621
1621
  function n0() {
1622
1622
  if (s0) return Tt;
1623
1623
  s0 = 1;
1624
- var t = Q, e = An(), r = On(), s = rs, n = cs, i = Mn(), x = Nn(), d = os, p = je, a = vt(), c = Ln();
1624
+ var t = Q, e = An(), r = On(), s = rs, n = cs, i = Nn(), x = Mn(), d = os, p = je, a = vt(), c = Ln();
1625
1625
  return Tt = function(o) {
1626
1626
  return new Promise(function(h, v) {
1627
1627
  var g = o.data, $ = o.headers, l = o.responseType, f;
@@ -2063,14 +2063,14 @@ function ci() {
2063
2063
  };
2064
2064
  }), Ht;
2065
2065
  }
2066
- var Mt, y0;
2066
+ var Nt, y0;
2067
2067
  function di() {
2068
- if (y0) return Mt;
2068
+ if (y0) return Nt;
2069
2069
  y0 = 1;
2070
2070
  var t = Q;
2071
- return Mt = function(r) {
2071
+ return Nt = function(r) {
2072
2072
  return t.isObject(r) && r.isAxiosError === !0;
2073
- }, Mt;
2073
+ }, Nt;
2074
2074
  }
2075
2075
  var m0 = Q, li = Q0, ut = oi, ui = ls, pi = Ir;
2076
2076
  function fs(t) {
@@ -2097,12 +2097,12 @@ $r.exports = ae;
2097
2097
  $r.exports.default = ae;
2098
2098
  var hi = $r.exports, fi = hi;
2099
2099
  const et = /* @__PURE__ */ ze(fi);
2100
- var Nt = { exports: {} }, Lt = { exports: {} }, g0;
2100
+ var Mt = { exports: {} }, Lt = { exports: {} }, g0;
2101
2101
  function Ue() {
2102
2102
  return g0 || (g0 = 1, function(t, e) {
2103
2103
  (function(r, s) {
2104
2104
  t.exports = s(z());
2105
- })(N, function(r) {
2105
+ })(M, function(r) {
2106
2106
  return function(s) {
2107
2107
  var n = r, i = n.lib, x = i.WordArray, d = i.Hasher, p = n.algo, a = [];
2108
2108
  (function() {
@@ -2168,7 +2168,7 @@ function Tr() {
2168
2168
  return b0 || (b0 = 1, function(t, e) {
2169
2169
  (function(r, s) {
2170
2170
  t.exports = s(z());
2171
- })(N, function(r) {
2171
+ })(M, function(r) {
2172
2172
  return function() {
2173
2173
  var s = r, n = s.lib, i = n.WordArray, x = n.Hasher, d = s.algo, p = [], a = d.SHA1 = x.extend({
2174
2174
  _doReset: function() {
@@ -2212,7 +2212,7 @@ function Rr() {
2212
2212
  return _0 || (_0 = 1, function(t, e) {
2213
2213
  (function(r, s) {
2214
2214
  t.exports = s(z());
2215
- })(N, function(r) {
2215
+ })(M, function(r) {
2216
2216
  (function() {
2217
2217
  var s = r, n = s.lib, i = n.Base, x = s.enc, d = x.Utf8, p = s.algo;
2218
2218
  p.HMAC = i.extend({
@@ -2290,7 +2290,7 @@ function De() {
2290
2290
  return w0 || (w0 = 1, function(t, e) {
2291
2291
  (function(r, s, n) {
2292
2292
  t.exports = s(z(), Tr(), Rr());
2293
- })(N, function(r) {
2293
+ })(M, function(r) {
2294
2294
  return function() {
2295
2295
  var s = r, n = s.lib, i = n.Base, x = n.WordArray, d = s.algo, p = d.MD5, a = d.EvpKDF = i.extend({
2296
2296
  /**
@@ -2353,7 +2353,7 @@ function ee() {
2353
2353
  return $0 || ($0 = 1, function(t, e) {
2354
2354
  (function(r, s, n) {
2355
2355
  t.exports = s(z(), De());
2356
- })(N, function(r) {
2356
+ })(M, function(r) {
2357
2357
  r.lib.Cipher || function(s) {
2358
2358
  var n = r, i = n.lib, x = i.Base, d = i.WordArray, p = i.BufferedBlockAlgorithm, a = n.enc;
2359
2359
  a.Utf8;
@@ -2888,7 +2888,7 @@ function xs() {
2888
2888
  return E0 || (E0 = 1, function(t, e) {
2889
2889
  (function(r, s, n) {
2890
2890
  t.exports = s(z(), Re(), Ue(), De(), ee());
2891
- })(N, function(r) {
2891
+ })(M, function(r) {
2892
2892
  return function() {
2893
2893
  var s = r, n = s.lib, i = n.BlockCipher, x = s.algo, d = [], p = [], a = [], c = [], y = [], o = [], u = [], h = [], v = [], g = [];
2894
2894
  (function() {
@@ -2941,7 +2941,7 @@ function xs() {
2941
2941
  s.AES = i._createHelper(l);
2942
2942
  }(), r.AES;
2943
2943
  });
2944
- }(Nt)), Nt.exports;
2944
+ }(Mt)), Mt.exports;
2945
2945
  }
2946
2946
  var xi = xs();
2947
2947
  const nt = /* @__PURE__ */ ze(xi);
@@ -2969,7 +2969,7 @@ class ye {
2969
2969
  }
2970
2970
  static objectKeyToUnderscore(e) {
2971
2971
  let r;
2972
- return M(e) && (Array.isArray(e) ? (r = [], e.forEach((s) => {
2972
+ return N(e) && (Array.isArray(e) ? (r = [], e.forEach((s) => {
2973
2973
  let n = {};
2974
2974
  Object.keys(s).forEach((i) => {
2975
2975
  n[this.toUnderscore(i)] = s[i];
@@ -2980,7 +2980,7 @@ class ye {
2980
2980
  }
2981
2981
  static objectKeyToCamel(e) {
2982
2982
  let r;
2983
- return M(e) && (Array.isArray(e) ? (r = [], e.forEach((s) => {
2983
+ return N(e) && (Array.isArray(e) ? (r = [], e.forEach((s) => {
2984
2984
  let n = {};
2985
2985
  Object.keys(s).forEach((i) => {
2986
2986
  n[this.toCamelcase(i)] = s[i];
@@ -2990,8 +2990,8 @@ class ye {
2990
2990
  }))), r;
2991
2991
  }
2992
2992
  static axiosMultipayConfigure() {
2993
- et.defaults.headers.common["Content-Type"] = "application/json", et.defaults.headers.common.Accept = "application/json", et.interceptors.request.use((e) => (M(e.data), this.isHttpBodyUsedMethod(e.method) && (e.data = ye.encryptParams(ye.objectKeyToUnderscore(e.data))), e.headers !== void 0 && M(e.headers.progress) && delete e.headers.progress, e), (e) => Promise.reject(e)), et.interceptors.response.use((e) => e, function(e) {
2994
- if (M(e.response)) {
2993
+ et.defaults.headers.common["Content-Type"] = "application/json", et.defaults.headers.common.Accept = "application/json", et.interceptors.request.use((e) => (N(e.data), this.isHttpBodyUsedMethod(e.method) && (e.data = ye.encryptParams(ye.objectKeyToUnderscore(e.data))), e.headers !== void 0 && N(e.headers.progress) && delete e.headers.progress, e), (e) => Promise.reject(e)), et.interceptors.response.use((e) => e, function(e) {
2994
+ if (N(e.response)) {
2995
2995
  let r = e.response.data;
2996
2996
  return r.status = e.response.status, Promise.reject(r);
2997
2997
  } else
@@ -3044,7 +3044,7 @@ class mi extends ot {
3044
3044
  bind(e, r) {
3045
3045
  this.isDone = !1, this.setCallbackFunction(e, r), window.resetBootpayEventListener(this.$messageEventName, (s) => {
3046
3046
  const n = this.parseEvent(s.data);
3047
- if (F.debug("event received", JSON.stringify(n)), M(n))
3047
+ if (F.debug("event received", JSON.stringify(n)), N(n))
3048
3048
  switch (F.debug("event", n), n.event) {
3049
3049
  case "error":
3050
3050
  case "cancel":
@@ -3220,8 +3220,8 @@ class gi extends ye {
3220
3220
  }
3221
3221
  send(e) {
3222
3222
  try {
3223
- if (M(this.$applicationId))
3224
- return e.application_id = this.$applicationId, e.status = M(e.status) ? e.status : 1, e.version = $e.version, e.tk = this.$tk, F.debug("send event", `${JSON.stringify(e)} 전송됨`), this.$http.post(
3223
+ if (N(this.$applicationId))
3224
+ return e.application_id = this.$applicationId, e.status = N(e.status) ? e.status : 1, e.version = $e.version, e.tk = this.$tk, F.debug("send event", `${JSON.stringify(e)} 전송됨`), this.$http.post(
3225
3225
  D.toAnalytics("event"),
3226
3226
  e
3227
3227
  );
@@ -3241,7 +3241,7 @@ class gi extends ye {
3241
3241
  * @date: 2022-05-13
3242
3242
  */
3243
3243
  sendCloseEvent() {
3244
- if (M(this.$receiptId))
3244
+ if (N(this.$receiptId))
3245
3245
  try {
3246
3246
  return this.$http.put(D.toApi(`close/${this.$receiptId}`));
3247
3247
  } catch (e) {
@@ -3356,7 +3356,7 @@ const rt = new gi(), Ar = {
3356
3356
  },
3357
3357
  getLocaleMessage: (t, e) => {
3358
3358
  const s = t.split(".").reduce((n, i) => n[i], Ar);
3359
- return M(s) && M(s[e]) ? s[e] : s.ko;
3359
+ return N(s) && N(s[e]) ? s[e] : s.ko;
3360
3360
  }
3361
3361
  };
3362
3362
  class bi extends ge {
@@ -3983,7 +3983,7 @@ const W = new bi(), Pe = class Pe extends Ae {
3983
3983
  * @param price: number
3984
3984
  */
3985
3985
  static invalidRequestItemsData(e, r) {
3986
- if (e !== void 0 && M(e)) {
3986
+ if (e !== void 0 && N(e)) {
3987
3987
  let s = 0;
3988
3988
  if (e.forEach((n, i) => {
3989
3989
  if (re(n.id))
@@ -4049,7 +4049,7 @@ class wi extends ye {
4049
4049
  const r = document.URL;
4050
4050
  if (r !== void 0 && r.search(/bootapi.co.kr/) === -1) {
4051
4051
  const s = this.$session.getUser();
4052
- e.application_id = D.currentApplicationId(e.application_id), e.sk = this.$session.currentSessionKey(), e.uuid = this.$session.currentUserUUID(), e.time = this.$session.currentTime(), e.url = r, e.referer = document.referrer !== void 0 && M(document.referrer) && document.referrer.search(new RegExp(window.location.hostname)) == -1 ? document.referrer : "", e.user_id = s === void 0 || re(s) ? void 0 : s.id, e.items = this.generateItemKeyToVersion1(e.items);
4052
+ e.application_id = D.currentApplicationId(e.application_id), e.sk = this.$session.currentSessionKey(), e.uuid = this.$session.currentUserUUID(), e.time = this.$session.currentTime(), e.url = r, e.referer = document.referrer !== void 0 && N(document.referrer) && document.referrer.search(new RegExp(window.location.hostname)) == -1 ? document.referrer : "", e.user_id = s === void 0 || re(s) ? void 0 : s.id, e.items = this.generateItemKeyToVersion1(e.items);
4053
4053
  try {
4054
4054
  const n = await this.$http.post(
4055
4055
  D.toAnalytics(`call?ver=${$e.version}`),
@@ -4267,7 +4267,7 @@ const Ee = {
4267
4267
  e = t.eventMessage;
4268
4268
  break;
4269
4269
  default:
4270
- if (M(t.event))
4270
+ if (N(t.event))
4271
4271
  e = t;
4272
4272
  else
4273
4273
  throw t;
@@ -4365,7 +4365,7 @@ class Ei extends ot {
4365
4365
  bind(e, r) {
4366
4366
  this.setCallbackFunction(e, r), window.resetBootpayEventListener(this.$messageEventName, (s) => {
4367
4367
  const n = this.parseEvent(s.data);
4368
- if (M(n))
4368
+ if (N(n))
4369
4369
  switch (F.debug("event", n), n.event) {
4370
4370
  case "error":
4371
4371
  case "cancel":
@@ -4745,7 +4745,7 @@ const vs = new ki(), Si = {
4745
4745
  e = t.eventMessage;
4746
4746
  break;
4747
4747
  default:
4748
- if (M(t.event))
4748
+ if (N(t.event))
4749
4749
  e = t;
4750
4750
  else
4751
4751
  throw t;
@@ -4805,7 +4805,7 @@ function gt() {
4805
4805
  return k0 || (k0 = 1, function(t, e) {
4806
4806
  (function(r, s) {
4807
4807
  t.exports = s(z());
4808
- })(N, function(r) {
4808
+ })(M, function(r) {
4809
4809
  return function(s) {
4810
4810
  var n = r, i = n.lib, x = i.Base, d = i.WordArray, p = n.x64 = {};
4811
4811
  p.Word = x.extend({
@@ -5035,7 +5035,7 @@ function Pi() {
5035
5035
  return S0 || (S0 = 1, function(t, e) {
5036
5036
  (function(r, s) {
5037
5037
  t.exports = s(z());
5038
- })(N, function(r) {
5038
+ })(M, function(r) {
5039
5039
  return function() {
5040
5040
  if (typeof ArrayBuffer == "function") {
5041
5041
  var s = r, n = s.lib, i = n.WordArray, x = i.init, d = i.init = function(p) {
@@ -5057,7 +5057,7 @@ function Ii() {
5057
5057
  return B0 || (B0 = 1, function(t, e) {
5058
5058
  (function(r, s) {
5059
5059
  t.exports = s(z());
5060
- })(N, function(r) {
5060
+ })(M, function(r) {
5061
5061
  return function() {
5062
5062
  var s = r, n = s.lib, i = n.WordArray, x = s.enc;
5063
5063
  x.Utf16 = x.Utf16BE = {
@@ -5151,7 +5151,7 @@ function Ci() {
5151
5151
  return P0 || (P0 = 1, function(t, e) {
5152
5152
  (function(r, s) {
5153
5153
  t.exports = s(z());
5154
- })(N, function(r) {
5154
+ })(M, function(r) {
5155
5155
  return function() {
5156
5156
  var s = r, n = s.lib, i = n.WordArray, x = s.enc;
5157
5157
  x.Base64url = {
@@ -5231,7 +5231,7 @@ function ms() {
5231
5231
  return I0 || (I0 = 1, function(t, e) {
5232
5232
  (function(r, s) {
5233
5233
  t.exports = s(z());
5234
- })(N, function(r) {
5234
+ })(M, function(r) {
5235
5235
  return function(s) {
5236
5236
  var n = r, i = n.lib, x = i.WordArray, d = i.Hasher, p = n.algo, a = [], c = [];
5237
5237
  (function() {
@@ -5283,7 +5283,7 @@ function Ti() {
5283
5283
  return C0 || (C0 = 1, function(t, e) {
5284
5284
  (function(r, s, n) {
5285
5285
  t.exports = s(z(), ms());
5286
- })(N, function(r) {
5286
+ })(M, function(r) {
5287
5287
  return function() {
5288
5288
  var s = r, n = s.lib, i = n.WordArray, x = s.algo, d = x.SHA256, p = x.SHA224 = d.extend({
5289
5289
  _doReset: function() {
@@ -5313,7 +5313,7 @@ function gs() {
5313
5313
  return T0 || (T0 = 1, function(t, e) {
5314
5314
  (function(r, s, n) {
5315
5315
  t.exports = s(z(), gt());
5316
- })(N, function(r) {
5316
+ })(M, function(r) {
5317
5317
  return function() {
5318
5318
  var s = r, n = s.lib, i = n.Hasher, x = s.x64, d = x.Word, p = x.WordArray, a = s.algo;
5319
5319
  function c() {
@@ -5424,7 +5424,7 @@ function gs() {
5424
5424
  if (xe < 16)
5425
5425
  be = dt.high = h[v + xe * 2] | 0, ue = dt.low = h[v + xe * 2 + 1] | 0;
5426
5426
  else {
5427
- var Ur = o[xe - 15], He = Ur.high, Je = Ur.low, $s = (He >>> 1 | Je << 31) ^ (He >>> 8 | Je << 24) ^ He >>> 7, Dr = (Je >>> 1 | He << 31) ^ (Je >>> 8 | He << 24) ^ (Je >>> 7 | He << 25), Fr = o[xe - 2], Me = Fr.high, Ze = Fr.low, Es = (Me >>> 19 | Ze << 13) ^ (Me << 3 | Ze >>> 29) ^ Me >>> 6, Hr = (Ze >>> 19 | Me << 13) ^ (Ze << 3 | Me >>> 29) ^ (Ze >>> 6 | Me << 26), Mr = o[xe - 7], ks = Mr.high, Ss = Mr.low, Nr = o[xe - 16], Bs = Nr.high, Lr = Nr.low;
5427
+ var Ur = o[xe - 15], He = Ur.high, Je = Ur.low, $s = (He >>> 1 | Je << 31) ^ (He >>> 8 | Je << 24) ^ He >>> 7, Dr = (Je >>> 1 | He << 31) ^ (Je >>> 8 | He << 24) ^ (Je >>> 7 | He << 25), Fr = o[xe - 2], Ne = Fr.high, Ze = Fr.low, Es = (Ne >>> 19 | Ze << 13) ^ (Ne << 3 | Ze >>> 29) ^ Ne >>> 6, Hr = (Ze >>> 19 | Ne << 13) ^ (Ze << 3 | Ne >>> 29) ^ (Ze >>> 6 | Ne << 26), Nr = o[xe - 7], ks = Nr.high, Ss = Nr.low, Mr = o[xe - 16], Bs = Mr.high, Lr = Mr.low;
5428
5428
  ue = Dr + Ss, be = $s + ks + (ue >>> 0 < Dr >>> 0 ? 1 : 0), ue = ue + Hr, be = be + Es + (ue >>> 0 < Hr >>> 0 ? 1 : 0), ue = ue + Lr, be = be + Bs + (ue >>> 0 < Lr >>> 0 ? 1 : 0), dt.high = be, dt.low = ue;
5429
5429
  }
5430
5430
  var Ps = fe & at ^ ~fe & ct, qr = ce & Xe ^ ~ce & Ve, Is = J & ne ^ J & Ke ^ ne & Ke, Cs = V & L ^ V & Fe ^ L & Fe, Ts = (J >>> 28 | V << 4) ^ (J << 30 | V >>> 2) ^ (J << 25 | V >>> 7), Wr = (V >>> 28 | J << 4) ^ (V << 30 | J >>> 2) ^ (V << 25 | J >>> 7), Rs = (fe >>> 14 | ce << 18) ^ (fe >>> 18 | ce << 14) ^ (fe << 23 | ce >>> 9), As = (ce >>> 14 | fe << 18) ^ (ce >>> 18 | fe << 14) ^ (ce << 23 | fe >>> 9), zr = y[xe], Os = zr.high, jr = zr.low, de = Ye + As, _e = _t + Rs + (de >>> 0 < Ye >>> 0 ? 1 : 0), de = de + qr, _e = _e + Ps + (de >>> 0 < qr >>> 0 ? 1 : 0), de = de + jr, _e = _e + Os + (de >>> 0 < jr >>> 0 ? 1 : 0), de = de + ue, _e = _e + be + (de >>> 0 < ue >>> 0 ? 1 : 0), Kr = Wr + Cs, Us = Ts + Is + (Kr >>> 0 < Wr >>> 0 ? 1 : 0);
@@ -5454,7 +5454,7 @@ function Ri() {
5454
5454
  return R0 || (R0 = 1, function(t, e) {
5455
5455
  (function(r, s, n) {
5456
5456
  t.exports = s(z(), gt(), gs());
5457
- })(N, function(r) {
5457
+ })(M, function(r) {
5458
5458
  return function() {
5459
5459
  var s = r, n = s.x64, i = n.Word, x = n.WordArray, d = s.algo, p = d.SHA512, a = d.SHA384 = p.extend({
5460
5460
  _doReset: function() {
@@ -5484,7 +5484,7 @@ function Ai() {
5484
5484
  return A0 || (A0 = 1, function(t, e) {
5485
5485
  (function(r, s, n) {
5486
5486
  t.exports = s(z(), gt());
5487
- })(N, function(r) {
5487
+ })(M, function(r) {
5488
5488
  return function(s) {
5489
5489
  var n = r, i = n.lib, x = i.WordArray, d = i.Hasher, p = n.x64, a = p.Word, c = n.algo, y = [], o = [], u = [];
5490
5490
  (function() {
@@ -5594,7 +5594,7 @@ function Oi() {
5594
5594
  return O0 || (O0 = 1, function(t, e) {
5595
5595
  (function(r, s) {
5596
5596
  t.exports = s(z());
5597
- })(N, function(r) {
5597
+ })(M, function(r) {
5598
5598
  /** @preserve
5599
5599
  (c) 2012 by Cédric Mesnil. All rights reserved.
5600
5600
 
@@ -5987,7 +5987,7 @@ function Ui() {
5987
5987
  return U0 || (U0 = 1, function(t, e) {
5988
5988
  (function(r, s, n) {
5989
5989
  t.exports = s(z(), Tr(), Rr());
5990
- })(N, function(r) {
5990
+ })(M, function(r) {
5991
5991
  return function() {
5992
5992
  var s = r, n = s.lib, i = n.Base, x = n.WordArray, d = s.algo, p = d.SHA1, a = d.HMAC, c = d.PBKDF2 = i.extend({
5993
5993
  /**
@@ -6054,7 +6054,7 @@ function Di() {
6054
6054
  return D0 || (D0 = 1, function(t, e) {
6055
6055
  (function(r, s, n) {
6056
6056
  t.exports = s(z(), ee());
6057
- })(N, function(r) {
6057
+ })(M, function(r) {
6058
6058
  return r.mode.CFB = function() {
6059
6059
  var s = r.lib.BlockCipherMode.extend();
6060
6060
  s.Encryptor = s.extend({
@@ -6084,7 +6084,7 @@ function Fi() {
6084
6084
  return F0 || (F0 = 1, function(t, e) {
6085
6085
  (function(r, s, n) {
6086
6086
  t.exports = s(z(), ee());
6087
- })(N, function(r) {
6087
+ })(M, function(r) {
6088
6088
  return r.mode.CTR = function() {
6089
6089
  var s = r.lib.BlockCipherMode.extend(), n = s.Encryptor = s.extend({
6090
6090
  processBlock: function(i, x) {
@@ -6106,7 +6106,7 @@ function Hi() {
6106
6106
  return H0 || (H0 = 1, function(t, e) {
6107
6107
  (function(r, s, n) {
6108
6108
  t.exports = s(z(), ee());
6109
- })(N, function(r) {
6109
+ })(M, function(r) {
6110
6110
  /** @preserve
6111
6111
  * Counter block mode compatible with Dr Brian Gladman fileenc.c
6112
6112
  * derived from CryptoJS.mode.CTR
@@ -6140,12 +6140,12 @@ function Hi() {
6140
6140
  });
6141
6141
  }(ir)), ir.exports;
6142
6142
  }
6143
- var or = { exports: {} }, M0;
6144
- function Mi() {
6145
- return M0 || (M0 = 1, function(t, e) {
6143
+ var or = { exports: {} }, N0;
6144
+ function Ni() {
6145
+ return N0 || (N0 = 1, function(t, e) {
6146
6146
  (function(r, s, n) {
6147
6147
  t.exports = s(z(), ee());
6148
- })(N, function(r) {
6148
+ })(M, function(r) {
6149
6149
  return r.mode.OFB = function() {
6150
6150
  var s = r.lib.BlockCipherMode.extend(), n = s.Encryptor = s.extend({
6151
6151
  processBlock: function(i, x) {
@@ -6160,12 +6160,12 @@ function Mi() {
6160
6160
  });
6161
6161
  }(or)), or.exports;
6162
6162
  }
6163
- var ar = { exports: {} }, N0;
6164
- function Ni() {
6165
- return N0 || (N0 = 1, function(t, e) {
6163
+ var ar = { exports: {} }, M0;
6164
+ function Mi() {
6165
+ return M0 || (M0 = 1, function(t, e) {
6166
6166
  (function(r, s, n) {
6167
6167
  t.exports = s(z(), ee());
6168
- })(N, function(r) {
6168
+ })(M, function(r) {
6169
6169
  return r.mode.ECB = function() {
6170
6170
  var s = r.lib.BlockCipherMode.extend();
6171
6171
  return s.Encryptor = s.extend({
@@ -6186,7 +6186,7 @@ function Li() {
6186
6186
  return L0 || (L0 = 1, function(t, e) {
6187
6187
  (function(r, s, n) {
6188
6188
  t.exports = s(z(), ee());
6189
- })(N, function(r) {
6189
+ })(M, function(r) {
6190
6190
  return r.pad.AnsiX923 = {
6191
6191
  pad: function(s, n) {
6192
6192
  var i = s.sigBytes, x = n * 4, d = x - i % x, p = i + d - 1;
@@ -6205,7 +6205,7 @@ function qi() {
6205
6205
  return q0 || (q0 = 1, function(t, e) {
6206
6206
  (function(r, s, n) {
6207
6207
  t.exports = s(z(), ee());
6208
- })(N, function(r) {
6208
+ })(M, function(r) {
6209
6209
  return r.pad.Iso10126 = {
6210
6210
  pad: function(s, n) {
6211
6211
  var i = n * 4, x = i - s.sigBytes % i;
@@ -6224,7 +6224,7 @@ function Wi() {
6224
6224
  return W0 || (W0 = 1, function(t, e) {
6225
6225
  (function(r, s, n) {
6226
6226
  t.exports = s(z(), ee());
6227
- })(N, function(r) {
6227
+ })(M, function(r) {
6228
6228
  return r.pad.Iso97971 = {
6229
6229
  pad: function(s, n) {
6230
6230
  s.concat(r.lib.WordArray.create([2147483648], 1)), r.pad.ZeroPadding.pad(s, n);
@@ -6241,7 +6241,7 @@ function zi() {
6241
6241
  return z0 || (z0 = 1, function(t, e) {
6242
6242
  (function(r, s, n) {
6243
6243
  t.exports = s(z(), ee());
6244
- })(N, function(r) {
6244
+ })(M, function(r) {
6245
6245
  return r.pad.ZeroPadding = {
6246
6246
  pad: function(s, n) {
6247
6247
  var i = n * 4;
@@ -6263,7 +6263,7 @@ function ji() {
6263
6263
  return j0 || (j0 = 1, function(t, e) {
6264
6264
  (function(r, s, n) {
6265
6265
  t.exports = s(z(), ee());
6266
- })(N, function(r) {
6266
+ })(M, function(r) {
6267
6267
  return r.pad.NoPadding = {
6268
6268
  pad: function() {
6269
6269
  },
@@ -6278,7 +6278,7 @@ function Ki() {
6278
6278
  return K0 || (K0 = 1, function(t, e) {
6279
6279
  (function(r, s, n) {
6280
6280
  t.exports = s(z(), ee());
6281
- })(N, function(r) {
6281
+ })(M, function(r) {
6282
6282
  return function(s) {
6283
6283
  var n = r, i = n.lib, x = i.CipherParams, d = n.enc, p = d.Hex, a = n.format;
6284
6284
  a.Hex = {
@@ -6325,7 +6325,7 @@ function Gi() {
6325
6325
  return G0 || (G0 = 1, function(t, e) {
6326
6326
  (function(r, s, n) {
6327
6327
  t.exports = s(z(), Re(), Ue(), De(), ee());
6328
- })(N, function(r) {
6328
+ })(M, function(r) {
6329
6329
  return function() {
6330
6330
  var s = r, n = s.lib, i = n.WordArray, x = n.BlockCipher, d = s.algo, p = [
6331
6331
  57,
@@ -7045,7 +7045,7 @@ function Xi() {
7045
7045
  return X0 || (X0 = 1, function(t, e) {
7046
7046
  (function(r, s, n) {
7047
7047
  t.exports = s(z(), Re(), Ue(), De(), ee());
7048
- })(N, function(r) {
7048
+ })(M, function(r) {
7049
7049
  return function() {
7050
7050
  var s = r, n = s.lib, i = n.StreamCipher, x = s.algo, d = x.RC4 = i.extend({
7051
7051
  _doReset: function() {
@@ -7099,7 +7099,7 @@ function Vi() {
7099
7099
  return V0 || (V0 = 1, function(t, e) {
7100
7100
  (function(r, s, n) {
7101
7101
  t.exports = s(z(), Re(), Ue(), De(), ee());
7102
- })(N, function(r) {
7102
+ })(M, function(r) {
7103
7103
  return function() {
7104
7104
  var s = r, n = s.lib, i = n.StreamCipher, x = s.algo, d = [], p = [], a = [], c = x.Rabbit = i.extend({
7105
7105
  _doReset: function() {
@@ -7165,7 +7165,7 @@ function Yi() {
7165
7165
  return Y0 || (Y0 = 1, function(t, e) {
7166
7166
  (function(r, s, n) {
7167
7167
  t.exports = s(z(), Re(), Ue(), De(), ee());
7168
- })(N, function(r) {
7168
+ })(M, function(r) {
7169
7169
  return function() {
7170
7170
  var s = r, n = s.lib, i = n.StreamCipher, x = s.algo, d = [], p = [], a = [], c = x.RabbitLegacy = i.extend({
7171
7171
  _doReset: function() {
@@ -7226,8 +7226,8 @@ function Yi() {
7226
7226
  }
7227
7227
  (function(t, e) {
7228
7228
  (function(r, s, n) {
7229
- t.exports = s(z(), gt(), Pi(), Ii(), Re(), Ci(), Ue(), Tr(), ms(), Ti(), gs(), Ri(), Ai(), Oi(), Rr(), Ui(), De(), ee(), Di(), Fi(), Hi(), Mi(), Ni(), Li(), qi(), Wi(), zi(), ji(), Ki(), xs(), Gi(), Xi(), Vi(), Yi());
7230
- })(N, function(r) {
7229
+ t.exports = s(z(), gt(), Pi(), Ii(), Re(), Ci(), Ue(), Tr(), ms(), Ti(), gs(), Ri(), Ai(), Oi(), Rr(), Ui(), De(), ee(), Di(), Fi(), Hi(), Ni(), Mi(), Li(), qi(), Wi(), zi(), ji(), Ki(), xs(), Gi(), Xi(), Vi(), Yi());
7230
+ })(M, function(r) {
7231
7231
  return r;
7232
7232
  });
7233
7233
  })(ys);
@@ -7289,7 +7289,7 @@ class Zi extends bs {
7289
7289
  );
7290
7290
  }
7291
7291
  encryptKey() {
7292
- return M(this.data.client_key) ? Or(this.data.client_key).toString().substring(0, 16) : "";
7292
+ return N(this.data.client_key) ? Or(this.data.client_key).toString().substring(0, 16) : "";
7293
7293
  }
7294
7294
  currentBootpayStoreParameters() {
7295
7295
  let e = [];
@@ -7422,7 +7422,7 @@ class Qi extends ge {
7422
7422
  }
7423
7423
  shopUrl() {
7424
7424
  const e = Object.fromEntries(new URLSearchParams(location.search));
7425
- return M(e.__b_u) ? wr.toExShopUrl(e.__b_u) : wr.toExShopUrl(
7425
+ return N(e.__b_u) ? wr.toExShopUrl(e.__b_u) : wr.toExShopUrl(
7426
7426
  `em/${this.$exStore.data.client_key}/${this.$exStore.encryptParameters()}?${this.$exStore.currentBootpayStoreParameters()}`
7427
7427
  );
7428
7428
  }
@@ -7478,7 +7478,7 @@ class to extends ot {
7478
7478
  afterBind: () => {
7479
7479
  window.resetBootpayEventListener("popstate.BootpayStoreEvent", (e) => {
7480
7480
  const r = Object.fromEntries(new URLSearchParams(location.search));
7481
- M(r.__b_u) && me.postMessage("BootpayRouterChange", { url: `/${r.__b_u}` });
7481
+ N(r.__b_u) && me.postMessage("BootpayRouterChange", { url: `/${r.__b_u}` });
7482
7482
  });
7483
7483
  }
7484
7484
  });
@@ -7539,13 +7539,13 @@ const q = {
7539
7539
  this.data.pg = t, this.data.method = e, this.data.wallet_id = r, this.termsPassed = s, this.data.terms = n, this.widgetExtra = i;
7540
7540
  },
7541
7541
  updateOnProcessing(t) {
7542
- M(t.price) && (this.data.price = t.price), M(t.tax_free) && (this.data.tax_free = t.tax_free), M(t.currency) && (this.data.currency = t.currency), t.user_token !== void 0 && (this.data.user_token = t.user_token), M(t.use_terms) && (this.data.use_terms = t.use_terms !== !1), M(t.sandbox) && (this.data.sandbox = t.sandbox === !0), M(t.widget_key) && (this.data.widget_key = t.widget_key), M(t.widget_type) && (this.widgetType = t.widget_type), t.external_terms !== void 0 && (this.data.external_terms = t.external_terms), t.use_bootpay_inapp_sdk !== void 0 && (this.data.use_bootpay_inapp_sdk = t.use_bootpay_inapp_sdk), t.widget_key !== void 0 && (this.data.widget_key = t.widget_key);
7542
+ N(t.price) && (this.data.price = t.price), N(t.tax_free) && (this.data.tax_free = t.tax_free), N(t.currency) && (this.data.currency = t.currency), t.user_token !== void 0 && (this.data.user_token = t.user_token), N(t.use_terms) && (this.data.use_terms = t.use_terms !== !1), N(t.sandbox) && (this.data.sandbox = t.sandbox === !0), N(t.widget_key) && (this.data.widget_key = t.widget_key), N(t.widget_type) && (this.widgetType = t.widget_type), t.external_terms !== void 0 && (this.data.external_terms = t.external_terms), t.use_bootpay_inapp_sdk !== void 0 && (this.data.use_bootpay_inapp_sdk = t.use_bootpay_inapp_sdk), t.widget_key !== void 0 && (this.data.widget_key = t.widget_key);
7543
7543
  },
7544
7544
  encryptParameters() {
7545
7545
  return encodeURIComponent(
7546
7546
  this.encrypt({
7547
7547
  order_name: this.data.order_name,
7548
- use_only_oopay: this.data.use_only_oopay,
7548
+ use_only_brandpay: this.data.use_only_brandpay,
7549
7549
  user_token: this.data.user_token,
7550
7550
  sandbox: this.data.sandbox,
7551
7551
  use_terms: this.data.use_terms,
@@ -7658,12 +7658,12 @@ class io extends ge {
7658
7658
  const G = new io();
7659
7659
  class oo extends ge {
7660
7660
  constructor() {
7661
- super(), this.$oopayWindowId = "__bootpay-card-easy-window", this.$iFrameId = "__bootpay-card-easy-iframe", this.$windowId = "__bootpay-card-easy-container-window", this.$additionalClass = D.isMobile() ? "transparent" : "rounded-iframe transparent", this.$template = this.template(), this.$widgetStore = q;
7661
+ super(), this.$brandpayWindowId = "__bootpay-card-easy-window", this.$iFrameId = "__bootpay-card-easy-iframe", this.$windowId = "__bootpay-card-easy-container-window", this.$additionalClass = D.isMobile() ? "transparent" : "rounded-iframe transparent", this.$template = this.template(), this.$widgetStore = q;
7662
7662
  }
7663
7663
  template() {
7664
7664
  return `
7665
7665
  <div id="${this.$windowId}" class="bootpay-payment-background">
7666
- <div class="bootpay-payment-window ${D.isMobile() ? "__mobile" : ""}" id="${this.$oopayWindowId}">
7666
+ <div class="bootpay-payment-window ${D.isMobile() ? "__mobile" : ""}" id="${this.$brandpayWindowId}">
7667
7667
  <iframe class="${this.$additionalClass}" id="${this.$iFrameId}" name="${this.$iFrameId}"></iframe>
7668
7668
  </div>
7669
7669
  </div>
@@ -7678,7 +7678,7 @@ class oo extends ge {
7678
7678
  this.createIFrame(e);
7679
7679
  }
7680
7680
  removeWallet(e) {
7681
- this.createIFrame(`oopay/destroy/${this.$widgetStore.data.application_id}/${e}`);
7681
+ this.createIFrame(`brandpay/destroy/${this.$widgetStore.data.application_id}/${e}`);
7682
7682
  }
7683
7683
  showCardInterestInformation(e) {
7684
7684
  this.createIFrame(`card/interest/${this.$widgetStore.data.application_id}`);
@@ -7794,7 +7794,7 @@ const ht = new co(), lo = {
7794
7794
  },
7795
7795
  // bootpayRequestGetEnvironment(): void {
7796
7796
  // return TemplateWidget.postMessage('bootpayResponseGetEnvironment', {
7797
- // use_only_oopay: TemplateWidget.$widgetStore.data.use_only_oopay,
7797
+ // use_only_brandpay: TemplateWidget.$widgetStore.data.use_only_brandpay,
7798
7798
  // user_token: TemplateWidget.$widgetStore.data.user_token,
7799
7799
  // sandbox: TemplateWidget.$widgetStore.data.sandbox,
7800
7800
  // use_terms: TemplateWidget.$widgetStore.data.use_terms,
@@ -7809,7 +7809,7 @@ const ht = new co(), lo = {
7809
7809
  // },
7810
7810
  bootpayWidgetResponseGetEnvironmentWidget(t) {
7811
7811
  return ke.postMessage("bootpayResponseGetEnvironmentWidget", {
7812
- use_only_oopay: G.$widgetStore.data.use_only_oopay,
7812
+ use_only_brandpay: G.$widgetStore.data.use_only_brandpay,
7813
7813
  user_token: G.$widgetStore.data.user_token,
7814
7814
  sandbox: G.$widgetStore.data.sandbox,
7815
7815
  use_terms: G.$widgetStore.data.use_terms,
@@ -7861,7 +7861,7 @@ const ht = new co(), lo = {
7861
7861
  bootpayWidgetResponseGetEnvironmentModalWidget(t) {
7862
7862
  return Ie.postMessage("bootpayResponseGetEnvironmentModalWidget", {
7863
7863
  application_id: G.$widgetStore.data.application_id,
7864
- use_only_oopay: G.$widgetStore.data.use_only_oopay,
7864
+ use_only_brandpay: G.$widgetStore.data.use_only_brandpay,
7865
7865
  user_token: G.$widgetStore.data.user_token,
7866
7866
  sandbox: G.$widgetStore.data.sandbox,
7867
7867
  use_terms: G.$widgetStore.data.use_terms,
@@ -7932,7 +7932,7 @@ const ht = new co(), lo = {
7932
7932
  */
7933
7933
  triggerGlobalChangeEvent(t) {
7934
7934
  var e;
7935
- t.completed = M(t.pg) && M(t.method) && (t.term_passed === !0 || !q.data.use_terms) && (["OOPAY_CARD", "OOPAY_AUTOMATIC_TRANSFER"].indexOf(t.method) === -1 || t.wallet_id !== void 0), (q.data.pg !== t.pg || q.data.method !== t.method || q.data.wallet_id !== t.wallet_id || JSON.stringify(q.widgetExtra) !== JSON.stringify(t.extra)) && (this.callBootpayDOMEvent("widget-change-payment", t), q.callHook("changePayment", t)), JSON.stringify((e = t.select_terms) == null ? void 0 : e.filter((r) => r.agree === !0)) !== JSON.stringify(q.data.terms.filter((r) => r.agree === !0)) && (this.callBootpayDOMEvent("widget-change-terms", t), q.callHook("changeTerms", t));
7935
+ t.completed = N(t.pg) && N(t.method) && (t.term_passed === !0 || !q.data.use_terms) && (["BRANDPAY_CARD", "BRANDPAY_AUTOMATIC_TRANSFER"].indexOf(t.method) === -1 || t.wallet_id !== void 0), (q.data.pg !== t.pg || q.data.method !== t.method || q.data.wallet_id !== t.wallet_id || JSON.stringify(q.widgetExtra) !== JSON.stringify(t.extra)) && (this.callBootpayDOMEvent("widget-change-payment", t), q.callHook("changePayment", t)), JSON.stringify((e = t.select_terms) == null ? void 0 : e.filter((r) => r.agree === !0)) !== JSON.stringify(q.data.terms.filter((r) => r.agree === !0)) && (this.callBootpayDOMEvent("widget-change-terms", t), q.callHook("changeTerms", t));
7936
7936
  },
7937
7937
  callBootpayDOMEvent(t, e = void 0) {
7938
7938
  document.dispatchEvent(
@@ -7991,7 +7991,7 @@ class ho extends Ae {
7991
7991
  tax_free: s,
7992
7992
  currency: n,
7993
7993
  user_token: i,
7994
- use_only_oopay: x,
7994
+ use_only_brandpay: x,
7995
7995
  use_terms: d,
7996
7996
  sandbox: p,
7997
7997
  widget_key: a,
@@ -8002,14 +8002,14 @@ class ho extends Ae {
8002
8002
  tax_free: s,
8003
8003
  currency: n,
8004
8004
  user_token: i,
8005
- use_only_oopay: x,
8005
+ use_only_brandpay: x,
8006
8006
  use_terms: d,
8007
8007
  external_terms: c,
8008
8008
  sandbox: p,
8009
8009
  widget_key: a
8010
8010
  }), (this.$present(i) || this.$present(x) || this.$present(d) || this.$present(p)) && G.postMessage("bootpayWidgetUpdateUserToken", {
8011
8011
  user_token: i,
8012
- use_only_oopay: x,
8012
+ use_only_brandpay: x,
8013
8013
  use_terms: d,
8014
8014
  external_terms: c,
8015
8015
  sandbox: p,
@@ -8102,10 +8102,10 @@ class ho extends Ae {
8102
8102
  error_code: "RC_TERMS_NOT_AGREE",
8103
8103
  message: this.message.getLocaleMessage("termsNotAgree", "ko")
8104
8104
  });
8105
- if (["OOPAY_CARD", "OOPAY_AUTOMATIC_TRANSFER"].indexOf(q.data.method) > -1 && q.data.wallet_id === void 0)
8105
+ if (["BRANDPAY_CARD", "BRANDPAY_AUTOMATIC_TRANSFER"].indexOf(q.data.method) > -1 && q.data.wallet_id === void 0)
8106
8106
  throw new pe({
8107
8107
  event: "error",
8108
- error_code: "RC_OOPAY_NEED_SELECT_WALLET",
8108
+ error_code: "RC_BRANDPAY_NEED_SELECT_WALLET",
8109
8109
  message: this.message.getLocaleMessage("notSelectOOPay", "ko")
8110
8110
  });
8111
8111
  }
@@ -8147,7 +8147,7 @@ const se = new ho(), fo = {
8147
8147
  e = t.eventMessage;
8148
8148
  break;
8149
8149
  default:
8150
- if (M(t.event))
8150
+ if (N(t.event))
8151
8151
  e = t;
8152
8152
  else
8153
8153
  throw t;
@@ -8239,7 +8239,7 @@ class xo extends bs {
8239
8239
  };
8240
8240
  }
8241
8241
  encryptKey() {
8242
- return M(this.data.application_id) ? Or(this.data.application_id).toString().substring(0, 16) : "";
8242
+ return N(this.data.application_id) ? Or(this.data.application_id).toString().substring(0, 16) : "";
8243
8243
  }
8244
8244
  set(e) {
8245
8245
  this.data = e;