@revolugo/elements 5.5.2-beta.1 → 5.5.2-beta.10

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.
@@ -1,5 +1,5 @@
1
1
  import { V as o } from "./revolugo.i18n.CyGKqo0B.min.js";
2
- import { C as n, c as t } from "./revolugo.creditcardform.C3fQHyxV.min.js";
2
+ import { C as n, c as t } from "./revolugo.creditcardform.C4KL6e78.min.js";
3
3
  import { W as a, n as s } from "./revolugo.webcomponentwrapper.C4B-n-nK.min.js";
4
4
  const m = o.extend({
5
5
  components: {
@@ -25,4 +25,4 @@ const C = d.exports;
25
25
  export {
26
26
  C as default
27
27
  };
28
- //# sourceMappingURL=revolugo.creditcardform.LlbnFrMn.min.js.map
28
+ //# sourceMappingURL=revolugo.creditcardform.BsdKbnXx.min.js.map
@@ -159,7 +159,7 @@ const je = (s, t) => t.kind === "method" && t.descriptor && !("value" in t.descr
159
159
  } }, Ve = (s, t, e) => {
160
160
  t.constructor.createProperty(e, s);
161
161
  };
162
- function u(s) {
162
+ function p(s) {
163
163
  return (t, e) => e !== void 0 ? Ve(s, t, e) : je(s, t);
164
164
  }
165
165
  /**
@@ -373,8 +373,8 @@ let O = class extends HTMLElement {
373
373
  var i;
374
374
  const n = this.constructor, r = n._$Ev.get(t);
375
375
  if (r !== void 0 && this._$El !== r) {
376
- const o = n.getPropertyOptions(r), p = typeof o.converter == "function" ? { fromAttribute: o.converter } : ((i = o.converter) === null || i === void 0 ? void 0 : i.fromAttribute) !== void 0 ? o.converter : _t;
377
- this._$El = r, this[r] = p.fromAttribute(e, o.type), this._$El = null;
376
+ const o = n.getPropertyOptions(r), u = typeof o.converter == "function" ? { fromAttribute: o.converter } : ((i = o.converter) === null || i === void 0 ? void 0 : i.fromAttribute) !== void 0 ? o.converter : _t;
377
+ this._$El = r, this[r] = u.fromAttribute(e, o.type), this._$El = null;
378
378
  }
379
379
  }
380
380
  requestUpdate(t, e, i) {
@@ -462,22 +462,22 @@ const ot = window, I = ot.trustedTypes, Nt = I ? I.createPolicy("lit-html", { cr
462
462
  const M = o === x && s[a + 1].startsWith("/>") ? " " : "";
463
463
  r += o === j ? l + Ge : d >= 0 ? (i.push(y), l.slice(0, d) + "$lit$" + l.slice(d) + E + M) : l + E + (d === -2 ? (i.push(void 0), a) : M);
464
464
  }
465
- const p = r + (s[e] || "<?>") + (t === 2 ? "</svg>" : "");
465
+ const u = r + (s[e] || "<?>") + (t === 2 ? "</svg>" : "");
466
466
  if (!Array.isArray(s) || !s.hasOwnProperty("raw"))
467
467
  throw Error("invalid template strings array");
468
- return [Nt !== void 0 ? Nt.createHTML(p) : p, i];
468
+ return [Nt !== void 0 ? Nt.createHTML(u) : u, i];
469
469
  };
470
470
  let At = class le {
471
471
  constructor({ strings: t, _$litType$: e }, i) {
472
472
  let n;
473
473
  this.parts = [];
474
474
  let r = 0, o = 0;
475
- const p = t.length - 1, a = this.parts, [l, y] = Ke(t, e);
475
+ const u = t.length - 1, a = this.parts, [l, y] = Ke(t, e);
476
476
  if (this.el = le.createElement(l, i), N.currentNode = this.el.content, e === 2) {
477
477
  const c = this.el.content, d = c.firstChild;
478
478
  d.remove(), c.append(...d.childNodes);
479
479
  }
480
- for (; (n = N.nextNode()) !== null && a.length < p; ) {
480
+ for (; (n = N.nextNode()) !== null && a.length < u; ) {
481
481
  if (n.nodeType === 1) {
482
482
  if (n.hasAttributes()) {
483
483
  const c = [];
@@ -519,12 +519,12 @@ let At = class le {
519
519
  }
520
520
  };
521
521
  function U(s, t, e = s, i) {
522
- var n, r, o, p;
522
+ var n, r, o, u;
523
523
  if (t === G)
524
524
  return t;
525
525
  let a = i !== void 0 ? (n = e._$Co) === null || n === void 0 ? void 0 : n[i] : e._$Cl;
526
526
  const l = W(t) ? void 0 : t._$litDirective$;
527
- return (a == null ? void 0 : a.constructor) !== l && ((r = a == null ? void 0 : a._$AO) === null || r === void 0 || r.call(a, !1), l === void 0 ? a = void 0 : (a = new l(s), a._$AT(s, e, i)), i !== void 0 ? ((o = (p = e)._$Co) !== null && o !== void 0 ? o : p._$Co = [])[i] = a : e._$Cl = a), a !== void 0 && (t = U(s, a._$AS(s, t.values), a, i)), t;
527
+ return (a == null ? void 0 : a.constructor) !== l && ((r = a == null ? void 0 : a._$AO) === null || r === void 0 || r.call(a, !1), l === void 0 ? a = void 0 : (a = new l(s), a._$AT(s, e, i)), i !== void 0 ? ((o = (u = e)._$Co) !== null && o !== void 0 ? o : u._$Co = [])[i] = a : e._$Cl = a), a !== void 0 && (t = U(s, a._$AS(s, t.values), a, i)), t;
528
528
  }
529
529
  let Ze = class {
530
530
  constructor(t, e) {
@@ -540,13 +540,13 @@ let Ze = class {
540
540
  var e;
541
541
  const { el: { content: i }, parts: n } = this._$AD, r = ((e = t == null ? void 0 : t.creationScope) !== null && e !== void 0 ? e : H).importNode(i, !0);
542
542
  N.currentNode = r;
543
- let o = N.nextNode(), p = 0, a = 0, l = n[0];
543
+ let o = N.nextNode(), u = 0, a = 0, l = n[0];
544
544
  for (; l !== void 0; ) {
545
- if (p === l.index) {
545
+ if (u === l.index) {
546
546
  let y;
547
547
  l.type === 2 ? y = new he(o, o.nextSibling, this, t) : l.type === 1 ? y = new l.ctor(o, l.name, l.strings, this, t) : l.type === 6 && (y = new es(o, this, t)), this.u.push(y), l = n[++a];
548
548
  }
549
- p !== (l == null ? void 0 : l.index) && (o = N.nextNode(), p++);
549
+ u !== (l == null ? void 0 : l.index) && (o = N.nextNode(), u++);
550
550
  }
551
551
  return r;
552
552
  }
@@ -593,8 +593,8 @@ let Ze = class {
593
593
  if (((e = this._$AH) === null || e === void 0 ? void 0 : e._$AD) === r)
594
594
  this._$AH.p(i);
595
595
  else {
596
- const o = new Ze(r, this), p = o.v(this.options);
597
- o.p(i), this.T(p), this._$AH = o;
596
+ const o = new Ze(r, this), u = o.v(this.options);
597
+ o.p(i), this.T(u), this._$AH = o;
598
598
  }
599
599
  }
600
600
  _$AC(t) {
@@ -636,10 +636,10 @@ let Ze = class {
636
636
  if (r === void 0)
637
637
  t = U(this, t, e, 0), o = !W(t) || t !== this._$AH && t !== G, o && (this._$AH = t);
638
638
  else {
639
- const p = t;
639
+ const u = t;
640
640
  let a, l;
641
641
  for (t = r[0], a = 0; a < r.length - 1; a++)
642
- l = U(this, p[i + a], e, a), l === G && (l = this._$AH[a]), o || (o = !W(l) || l !== this._$AH[a]), l === _ ? t = _ : t !== _ && (t += (l ?? "") + r[a + 1]), this._$AH[a] = l;
642
+ l = U(this, u[i + a], e, a), l === G && (l = this._$AH[a]), o || (o = !W(l) || l !== this._$AH[a]), l === _ ? t = _ : t !== _ && (t += (l ?? "") + r[a + 1]), this._$AH[a] = l;
643
643
  }
644
644
  o && !n && this.j(t);
645
645
  }
@@ -707,13 +707,13 @@ function me(s, t) {
707
707
  const os = (s, t) => {
708
708
  const e = s.length - 1, i = [];
709
709
  let n, r = t === 2 ? "<svg>" : "", o = V;
710
- for (let p = 0; p < e; p++) {
711
- const a = s[p];
710
+ for (let u = 0; u < e; u++) {
711
+ const a = s[u];
712
712
  let l, y, c = -1, d = 0;
713
713
  for (; d < a.length && (o.lastIndex = d, y = o.exec(a), y !== null); )
714
714
  d = o.lastIndex, o === V ? y[1] === "!--" ? o = jt : y[1] !== void 0 ? o = Vt : y[2] !== void 0 ? (de.test(y[2]) && (n = RegExp("</" + y[2], "g")), o = P) : y[3] !== void 0 && (o = P) : o === P ? y[0] === ">" ? (o = n ?? V, c = -1) : y[1] === void 0 ? c = -2 : (c = o.lastIndex - y[2].length, l = y[1], o = y[3] === void 0 ? P : y[3] === '"' ? Ft : zt) : o === Ft || o === zt ? o = P : o === jt || o === Vt ? o = V : (o = P, n = void 0);
715
- const $ = o === P && s[p + 1].startsWith("/>") ? " " : "";
716
- r += o === V ? a + ss : c >= 0 ? (i.push(l), a.slice(0, c) + bt + a.slice(c) + C + $) : a + C + (c === -2 ? (i.push(void 0), p) : $);
715
+ const $ = o === P && s[u + 1].startsWith("/>") ? " " : "";
716
+ r += o === V ? a + ss : c >= 0 ? (i.push(l), a.slice(0, c) + bt + a.slice(c) + C + $) : a + C + (c === -2 ? (i.push(void 0), u) : $);
717
717
  }
718
718
  return [me(s, r + (s[e] || "<?>") + (t === 2 ? "</svg>" : "")), i];
719
719
  };
@@ -722,12 +722,12 @@ class Z {
722
722
  let n;
723
723
  this.parts = [];
724
724
  let r = 0, o = 0;
725
- const p = t.length - 1, a = this.parts, [l, y] = os(t, e);
725
+ const u = t.length - 1, a = this.parts, [l, y] = os(t, e);
726
726
  if (this.el = Z.createElement(l, i), T.currentNode = this.el.content, e === 2) {
727
727
  const c = this.el.content, d = c.firstChild;
728
728
  d.remove(), c.append(...d.childNodes);
729
729
  }
730
- for (; (n = T.nextNode()) !== null && a.length < p; ) {
730
+ for (; (n = T.nextNode()) !== null && a.length < u; ) {
731
731
  if (n.nodeType === 1) {
732
732
  if (n.hasAttributes()) {
733
733
  const c = [];
@@ -769,12 +769,12 @@ class Z {
769
769
  }
770
770
  }
771
771
  function B(s, t, e = s, i) {
772
- var n, r, o, p;
772
+ var n, r, o, u;
773
773
  if (t === L)
774
774
  return t;
775
775
  let a = i !== void 0 ? (n = e._$Co) === null || n === void 0 ? void 0 : n[i] : e._$Cl;
776
776
  const l = K(t) ? void 0 : t._$litDirective$;
777
- return (a == null ? void 0 : a.constructor) !== l && ((r = a == null ? void 0 : a._$AO) === null || r === void 0 || r.call(a, !1), l === void 0 ? a = void 0 : (a = new l(s), a._$AT(s, e, i)), i !== void 0 ? ((o = (p = e)._$Co) !== null && o !== void 0 ? o : p._$Co = [])[i] = a : e._$Cl = a), a !== void 0 && (t = B(s, a._$AS(s, t.values), a, i)), t;
777
+ return (a == null ? void 0 : a.constructor) !== l && ((r = a == null ? void 0 : a._$AO) === null || r === void 0 || r.call(a, !1), l === void 0 ? a = void 0 : (a = new l(s), a._$AT(s, e, i)), i !== void 0 ? ((o = (u = e)._$Co) !== null && o !== void 0 ? o : u._$Co = [])[i] = a : e._$Cl = a), a !== void 0 && (t = B(s, a._$AS(s, t.values), a, i)), t;
778
778
  }
779
779
  class as {
780
780
  constructor(t, e) {
@@ -790,13 +790,13 @@ class as {
790
790
  var e;
791
791
  const { el: { content: i }, parts: n } = this._$AD, r = ((e = t == null ? void 0 : t.creationScope) !== null && e !== void 0 ? e : R).importNode(i, !0);
792
792
  T.currentNode = r;
793
- let o = T.nextNode(), p = 0, a = 0, l = n[0];
793
+ let o = T.nextNode(), u = 0, a = 0, l = n[0];
794
794
  for (; l !== void 0; ) {
795
- if (p === l.index) {
795
+ if (u === l.index) {
796
796
  let y;
797
797
  l.type === 2 ? y = new J(o, o.nextSibling, this, t) : l.type === 1 ? y = new l.ctor(o, l.name, l.strings, this, t) : l.type === 6 && (y = new us(o, this, t)), this._$AV.push(y), l = n[++a];
798
798
  }
799
- p !== (l == null ? void 0 : l.index) && (o = T.nextNode(), p++);
799
+ u !== (l == null ? void 0 : l.index) && (o = T.nextNode(), u++);
800
800
  }
801
801
  return T.currentNode = R, r;
802
802
  }
@@ -844,8 +844,8 @@ class J {
844
844
  if (((e = this._$AH) === null || e === void 0 ? void 0 : e._$AD) === r)
845
845
  this._$AH.v(i);
846
846
  else {
847
- const o = new as(r, this), p = o.u(this.options);
848
- o.v(i), this.$(p), this._$AH = o;
847
+ const o = new as(r, this), u = o.u(this.options);
848
+ o.v(i), this.$(u), this._$AH = o;
849
849
  }
850
850
  }
851
851
  _$AC(t) {
@@ -888,10 +888,10 @@ class ct {
888
888
  if (r === void 0)
889
889
  t = B(this, t, e, 0), o = !K(t) || t !== this._$AH && t !== L, o && (this._$AH = t);
890
890
  else {
891
- const p = t;
891
+ const u = t;
892
892
  let a, l;
893
893
  for (t = r[0], a = 0; a < r.length - 1; a++)
894
- l = B(this, p[i + a], e, a), l === L && (l = this._$AH[a]), o || (o = !K(l) || l !== this._$AH[a]), l === g ? t = g : t !== g && (t += (l ?? "") + r[a + 1]), this._$AH[a] = l;
894
+ l = B(this, u[i + a], e, a), l === L && (l = this._$AH[a]), o || (o = !K(l) || l !== this._$AH[a]), l === g ? t = g : t !== g && (t += (l ?? "") + r[a + 1]), this._$AH[a] = l;
895
895
  }
896
896
  o && !n && this.j(t);
897
897
  }
@@ -950,8 +950,8 @@ const ds = (s, t, e) => {
950
950
  const r = (i = e == null ? void 0 : e.renderBefore) !== null && i !== void 0 ? i : t;
951
951
  let o = r._$litPart$;
952
952
  if (o === void 0) {
953
- const p = (n = e == null ? void 0 : e.renderBefore) !== null && n !== void 0 ? n : null;
954
- r._$litPart$ = o = new J(t.insertBefore(Y(), p), p, void 0, e ?? {});
953
+ const u = (n = e == null ? void 0 : e.renderBefore) !== null && n !== void 0 ? n : null;
954
+ r._$litPart$ = o = new J(t.insertBefore(Y(), u), u, void 0, e ?? {});
955
955
  }
956
956
  return o._$AI(s), o;
957
957
  };
@@ -1082,10 +1082,9 @@ var Es = class extends Event {
1082
1082
  s.addController(this), et.instances.set(s, this);
1083
1083
  }
1084
1084
  hostUpdated() {
1085
- var s;
1086
- for (const [t, e] of this.cache) {
1087
- const i = this.host[t], { attribute: n } = (s = this.host.constructor.getPropertyOptions(t)) != null ? s : {}, r = typeof n == "string" ? n : null;
1088
- this.cache.set(t, i), this.host.dispatchEvent(new Es(t, e, i, r));
1085
+ for (const [s, t] of this.cache) {
1086
+ const e = this.host[s], { attribute: i } = this.host.constructor.getPropertyOptions(s) ?? {}, n = typeof i == "string" ? i : null;
1087
+ this.cache.set(s, e), this.host.dispatchEvent(new Es(s, t, e, n));
1089
1088
  }
1090
1089
  }
1091
1090
  }, fe = et;
@@ -1131,23 +1130,22 @@ function Qt() {
1131
1130
  }
1132
1131
  var Ts = class {
1133
1132
  constructor(s, t) {
1134
- this.host = s, this.options = t, this.initialized = !1, this.shadowHosts = [];
1135
- var e, i;
1136
- this.host.addController(this), this.resetMountId(), this.slotName = (i = (e = this.options) == null ? void 0 : e.slotName) != null ? i : `breadcrumb-${Qt()}`;
1133
+ var e;
1134
+ this.host = s, this.options = t, this.initialized = !1, this.shadowHosts = [], this.host.addController(this), this.mountId = this.resetMountId(), this.slotName = ((e = this.options) == null ? void 0 : e.slotName) ?? `breadcrumb-${Qt()}`;
1137
1135
  }
1138
1136
  get mount() {
1139
1137
  return document.getElementById(this.mountId);
1140
1138
  }
1141
1139
  hostUpdated() {
1142
- !this.initialized && this.options.autoInitialize !== !1 && this.init();
1140
+ var s;
1141
+ !this.initialized && ((s = this.options) == null ? void 0 : s.autoInitialize) !== !1 && this.init();
1143
1142
  }
1144
1143
  hostDisconnected() {
1145
1144
  this.destroyMountPoints();
1146
1145
  }
1147
1146
  resetMountId() {
1148
- var s;
1149
- const t = (s = this.options.mountPrefix) != null ? s : this.host.localName;
1150
- this.mountId = `${t}-mount-point-${Qt()}`;
1147
+ var t;
1148
+ return `${((t = this.options) == null ? void 0 : t.mountPrefix) ?? this.host.localName}-mount-point-${Qt()}`;
1151
1149
  }
1152
1150
  createMountPoint() {
1153
1151
  const s = document.createElement("div");
@@ -1167,7 +1165,7 @@ var Ts = class {
1167
1165
  for (const s of this.shadowHosts)
1168
1166
  for (const t of s.querySelectorAll(`[slot="${this.slotName}"][name="${this.slotName}"]`))
1169
1167
  t.remove();
1170
- this.mount && this.mount.remove(), this.resetMountId();
1168
+ this.mount && this.mount.remove(), this.mountId = this.resetMountId();
1171
1169
  }
1172
1170
  initShadowMountPoints() {
1173
1171
  let s = this.host;
@@ -1210,7 +1208,7 @@ var $e = "https://js.stripe.com/v3", Rs = /^https:\/\/js\.stripe\.com\/v3\/?(\?.
1210
1208
  }, Os = function(t, e) {
1211
1209
  !t || !t._registerWrapper || t._registerWrapper({
1212
1210
  name: "stripe-js",
1213
- version: "1.23.0",
1211
+ version: "1.32.0",
1214
1212
  startTime: e
1215
1213
  });
1216
1214
  }, X = null, Ns = function(t) {
@@ -1280,7 +1278,7 @@ var Us = {
1280
1278
  toAttribute: (s) => s ? Se(s) ? s.originalMessage : s.message || "" : null
1281
1279
  }, f = class extends F {
1282
1280
  constructor() {
1283
- super(...arguments), this.generate = "source", this.showError = !1, this.paymentMethod = null, this.source = null, this.token = null, this.element = null, this.elements = null, this.error = null, this.focused = !1, this.ready = !1, this.stripe = null, this.theme = "none", this.precomputedStyle = getComputedStyle(this), this.breadcrumb = new Ts(this, {
1281
+ super(...arguments), this.generate = "source", this.showError = !1, this.locale = "auto", this.paymentMethod = null, this.source = null, this.token = null, this.element = null, this.elements = null, this.error = null, this.focused = !1, this.ready = !1, this.stripe = null, this.theme = "none", this.precomputedStyle = getComputedStyle(this), this.breadcrumb = new Ts(this, {
1284
1282
  slotName: `${this.constructor.is}-slot`
1285
1283
  });
1286
1284
  }
@@ -1307,7 +1305,7 @@ var Us = {
1307
1305
  }
1308
1306
  updated(s) {
1309
1307
  var t;
1310
- (t = super.updated) == null || t.call(this, s), s.has("error") && this.errorChanged(), s.has("publishableKey") && this.init(), [...s.keys()].forEach(this.representationChanged);
1308
+ (t = super.updated) == null || t.call(this, s), s.has("error") && this.errorChanged(), s.has("publishableKey") && this.init(), [...s.keys()].forEach((e) => this.representationChanged(e));
1311
1309
  }
1312
1310
  async disconnectedCallback() {
1313
1311
  var s;
@@ -1409,92 +1407,92 @@ var Us = {
1409
1407
  }
1410
1408
  };
1411
1409
  h([
1412
- u({ type: String })
1410
+ p({ type: String })
1413
1411
  ], f.prototype, "action", 2);
1414
1412
  h([
1415
- u({ type: String, attribute: "client-secret" })
1413
+ p({ type: String, attribute: "client-secret" })
1416
1414
  ], f.prototype, "clientSecret", 2);
1417
1415
  h([
1418
- u({ type: String })
1416
+ p({ type: String })
1419
1417
  ], f.prototype, "generate", 2);
1420
1418
  h([
1421
1419
  b,
1422
- u({ type: String, attribute: "publishable-key", reflect: !0 })
1420
+ p({ type: String, attribute: "publishable-key", reflect: !0 })
1423
1421
  ], f.prototype, "publishableKey", 2);
1424
1422
  h([
1425
- u({ type: Boolean, attribute: "show-error", reflect: !0 })
1423
+ p({ type: Boolean, attribute: "show-error", reflect: !0 })
1426
1424
  ], f.prototype, "showError", 2);
1427
1425
  h([
1428
- u({ type: String, attribute: "stripe-account" })
1426
+ p({ type: String, attribute: "stripe-account" })
1429
1427
  ], f.prototype, "stripeAccount", 2);
1430
1428
  h([
1431
- u({ type: String, attribute: "locale" })
1429
+ p({ type: String, attribute: "locale" })
1432
1430
  ], f.prototype, "locale", 2);
1433
1431
  h([
1434
1432
  m,
1435
1433
  b,
1436
- u({ type: Object, attribute: "payment-method" })
1434
+ p({ type: Object, attribute: "payment-method" })
1437
1435
  ], f.prototype, "paymentMethod", 2);
1438
1436
  h([
1439
1437
  m,
1440
1438
  b,
1441
- u({ type: Object })
1439
+ p({ type: Object })
1442
1440
  ], f.prototype, "source", 2);
1443
1441
  h([
1444
1442
  m,
1445
1443
  b,
1446
- u({ type: Object })
1444
+ p({ type: Object })
1447
1445
  ], f.prototype, "token", 2);
1448
1446
  h([
1449
1447
  m,
1450
- u({ type: Object })
1448
+ p({ type: Object })
1451
1449
  ], f.prototype, "element", 2);
1452
1450
  h([
1453
1451
  m,
1454
- u({ type: Object })
1452
+ p({ type: Object })
1455
1453
  ], f.prototype, "elements", 2);
1456
1454
  h([
1457
1455
  m,
1458
1456
  b,
1459
- u({ type: Object, reflect: !0, converter: Us })
1457
+ p({ type: Object, reflect: !0, converter: Us })
1460
1458
  ], f.prototype, "error", 2);
1461
1459
  h([
1462
1460
  m,
1463
1461
  b,
1464
- u({ type: Boolean, reflect: !0 })
1462
+ p({ type: Boolean, reflect: !0 })
1465
1463
  ], f.prototype, "focused", 2);
1466
1464
  h([
1467
1465
  m,
1468
1466
  b,
1469
- u({ type: Boolean, reflect: !0 })
1467
+ p({ type: Boolean, reflect: !0 })
1470
1468
  ], f.prototype, "ready", 2);
1471
1469
  h([
1472
1470
  m,
1473
- u({ type: Object })
1471
+ p({ type: Object })
1474
1472
  ], f.prototype, "stripe", 2);
1475
1473
  h([
1476
- u()
1474
+ p()
1477
1475
  ], f.prototype, "theme", 2);
1478
1476
  h([
1479
- u({ attribute: "border-radius" })
1477
+ p({ attribute: "border-radius" })
1480
1478
  ], f.prototype, "borderRadius", 2);
1481
1479
  h([
1482
- u({ attribute: "color-background" })
1480
+ p({ attribute: "color-background" })
1483
1481
  ], f.prototype, "colorBackground", 2);
1484
1482
  h([
1485
- u({ attribute: "color-danger" })
1483
+ p({ attribute: "color-danger" })
1486
1484
  ], f.prototype, "colorDanger", 2);
1487
1485
  h([
1488
- u({ attribute: "color-primary" })
1486
+ p({ attribute: "color-primary" })
1489
1487
  ], f.prototype, "colorPrimary", 2);
1490
1488
  h([
1491
- u({ attribute: "color-text" })
1489
+ p({ attribute: "color-text" })
1492
1490
  ], f.prototype, "colorText", 2);
1493
1491
  h([
1494
- u({ attribute: "font-family" })
1492
+ p({ attribute: "font-family" })
1495
1493
  ], f.prototype, "fontFamily", 2);
1496
1494
  h([
1497
- u({ attribute: "spacing-unit" })
1495
+ p({ attribute: "spacing-unit" })
1498
1496
  ], f.prototype, "spacingUnit", 2);
1499
1497
  h([
1500
1498
  S
@@ -1508,9 +1506,6 @@ h([
1508
1506
  h([
1509
1507
  S
1510
1508
  ], f.prototype, "onReady", 1);
1511
- h([
1512
- S
1513
- ], f.prototype, "representationChanged", 1);
1514
1509
  var qs = Et`[hidden] {
1515
1510
  display: none !important;
1516
1511
  }
@@ -1626,16 +1621,16 @@ var qs = Et`[hidden] {
1626
1621
  const s = (n) => this.getCSSCustomPropertyValue(n) || void 0, t = ["base", "complete", "empty", "invalid"], e = (n) => (r, o) => {
1627
1622
  if (n.includes("-"))
1628
1623
  return r;
1629
- const p = o.split(":").pop();
1624
+ const u = o.split(":").pop();
1630
1625
  return {
1631
1626
  ...r,
1632
- [o]: ee.reduce(i(`${n}-${p}`), {})
1627
+ [o]: ee.reduce(i(`${n}-${u}`), {})
1633
1628
  };
1634
1629
  }, i = (n) => (r, o) => {
1635
- const p = `--stripe-elements-${n}-${ye(o)}`;
1630
+ const u = `--stripe-elements-${n}-${ye(o)}`;
1636
1631
  return {
1637
1632
  ...r,
1638
- [o]: s(p),
1633
+ [o]: s(u),
1639
1634
  ...Ds.reduce(e(n), {})
1640
1635
  };
1641
1636
  };
@@ -1673,36 +1668,36 @@ A.styles = [
1673
1668
  Bs
1674
1669
  ];
1675
1670
  h([
1676
- u({ type: Boolean, attribute: "hide-icon" })
1671
+ p({ type: Boolean, attribute: "hide-icon" })
1677
1672
  ], A.prototype, "hideIcon", 2);
1678
1673
  h([
1679
- u({ type: Boolean, attribute: "hide-postal-code" })
1674
+ p({ type: Boolean, attribute: "hide-postal-code" })
1680
1675
  ], A.prototype, "hidePostalCode", 2);
1681
1676
  h([
1682
- u({ type: String, attribute: "icon-style" })
1677
+ p({ type: String, attribute: "icon-style" })
1683
1678
  ], A.prototype, "iconStyle", 2);
1684
1679
  h([
1685
- u({ type: Object })
1680
+ p({ type: Object })
1686
1681
  ], A.prototype, "value", 2);
1687
1682
  h([
1688
1683
  b,
1689
1684
  m,
1690
- u({ type: String })
1685
+ p({ type: String })
1691
1686
  ], A.prototype, "brand", 2);
1692
1687
  h([
1693
1688
  b,
1694
1689
  m,
1695
- u({ type: Boolean, reflect: !0 })
1690
+ p({ type: Boolean, reflect: !0 })
1696
1691
  ], A.prototype, "complete", 2);
1697
1692
  h([
1698
1693
  b,
1699
1694
  m,
1700
- u({ type: Boolean, reflect: !0 })
1695
+ p({ type: Boolean, reflect: !0 })
1701
1696
  ], A.prototype, "empty", 2);
1702
1697
  h([
1703
1698
  b,
1704
1699
  m,
1705
- u({ type: Boolean, reflect: !0 })
1700
+ p({ type: Boolean, reflect: !0 })
1706
1701
  ], A.prototype, "invalid", 2);
1707
1702
  h([
1708
1703
  xt
@@ -1784,7 +1779,7 @@ var it, nt, v = class extends f {
1784
1779
  requestShipping: n,
1785
1780
  requestPayerEmail: r,
1786
1781
  requestPayerName: o,
1787
- requestPayerPhone: p,
1782
+ requestPayerPhone: u,
1788
1783
  label: a = "",
1789
1784
  amount: l = 0
1790
1785
  } = this;
@@ -1794,7 +1789,7 @@ var it, nt, v = class extends f {
1794
1789
  displayItems: e,
1795
1790
  requestPayerEmail: r,
1796
1791
  requestPayerName: o,
1797
- requestPayerPhone: p,
1792
+ requestPayerPhone: u,
1798
1793
  requestShipping: n,
1799
1794
  shippingOptions: i,
1800
1795
  total: { label: a, amount: l }
@@ -1810,11 +1805,14 @@ var it, nt, v = class extends f {
1810
1805
  m.set(this, { paymentRequest: t, canMakePayment: e }), await this.updateComplete, this.canMakePayment || this.fire("unsupported");
1811
1806
  }
1812
1807
  async initPaymentRequestButton() {
1813
- const { buttonTheme: s, buttonType: t, canMakePayment: e, paymentRequest: i } = this;
1808
+ const { buttonTheme: s, buttonType: t, canMakePayment: e } = this;
1814
1809
  if (!e || !this.elements)
1815
1810
  return;
1816
- const o = { paymentRequestButton: { height: this.getCSSCustomPropertyValue("--stripe-payment-request-button-height") || "40px", theme: s, type: t } }, p = this.elements.create("paymentRequestButton", { paymentRequest: i, style: o });
1817
- m.set(this, { element: p }), await this.updateComplete;
1811
+ const r = { paymentRequestButton: { height: this.getCSSCustomPropertyValue("--stripe-payment-request-button-height") || "40px", theme: s, type: t } }, o = this.elements.create("paymentRequestButton", {
1812
+ paymentRequest: this.paymentRequest,
1813
+ style: r
1814
+ });
1815
+ m.set(this, { element: o }), await this.updateComplete;
1818
1816
  }
1819
1817
  async initPaymentRequestListeners() {
1820
1818
  if (this.canMakePayment)
@@ -1852,8 +1850,8 @@ var it, nt, v = class extends f {
1852
1850
  m.set(this, { error: t, paymentMethod: e, source: i, token: n }), this.clientSecret && !t ? this.confirmPaymentIntent(s) : this.complete(s);
1853
1851
  }
1854
1852
  async confirmPaymentIntent(s) {
1855
- const t = { payment_method: this.paymentMethod.id }, { error: e = null, paymentIntent: i = null } = await this.confirmCardPayment(t, { handleActions: !1 }).then(({ error: n }) => this.complete(s, n)).then(Kt).then(() => this.confirmCardPayment()).then(Kt).catch((n) => ({ error: n }));
1856
- m.set(this, { error: e, paymentIntent: i }), await this.updateComplete;
1853
+ const t = { payment_method: this.paymentMethod.id }, e = await this.confirmCardPayment(t, { handleActions: !1 }).then(({ error: r }) => this.complete(s, r)).then(Kt).then(() => this.confirmCardPayment()).then(Kt).catch((r) => ({ error: r })), { error: i = null } = e, n = e.paymentIntent ?? null;
1854
+ m.set(this, { error: i, paymentIntent: n }), await this.updateComplete;
1857
1855
  }
1858
1856
  async confirmCardPayment(s, t) {
1859
1857
  return this.stripe.confirmCardPayment(this.clientSecret, s, t);
@@ -1877,57 +1875,57 @@ v.styles = [
1877
1875
  Vs
1878
1876
  ];
1879
1877
  h([
1880
- u({ type: Number, reflect: !0 })
1878
+ p({ type: Number, reflect: !0 })
1881
1879
  ], v.prototype, "amount", 2);
1882
1880
  h([
1883
1881
  b,
1884
1882
  m,
1885
- u({ type: Boolean, attribute: "can-make-payment", reflect: !0 })
1883
+ p({ type: Boolean, attribute: "can-make-payment", reflect: !0 })
1886
1884
  ], v.prototype, "canMakePayment", 2);
1887
1885
  h([
1888
- u({ type: String })
1886
+ p({ type: String })
1889
1887
  ], v.prototype, "country", 2);
1890
1888
  h([
1891
- u({ type: String })
1889
+ p({ type: String })
1892
1890
  ], v.prototype, "currency", 2);
1893
1891
  h([
1894
- u({ type: Array })
1892
+ p({ type: Array })
1895
1893
  ], v.prototype, "displayItems", 1);
1896
1894
  h([
1897
- u({ type: String, reflect: !0 })
1895
+ p({ type: String, reflect: !0 })
1898
1896
  ], v.prototype, "label", 2);
1899
1897
  h([
1900
1898
  b,
1901
1899
  m,
1902
- u({ type: Object, attribute: "payment-intent" })
1900
+ p({ type: Object, attribute: "payment-intent" })
1903
1901
  ], v.prototype, "paymentIntent", 2);
1904
1902
  h([
1905
1903
  m,
1906
- u({ type: Object, attribute: "payment-request" })
1904
+ p({ type: Object, attribute: "payment-request" })
1907
1905
  ], v.prototype, "paymentRequest", 2);
1908
1906
  h([
1909
- u({ type: Boolean, reflect: !0 })
1907
+ p({ type: Boolean, reflect: !0 })
1910
1908
  ], v.prototype, "pending", 2);
1911
1909
  h([
1912
- u({ type: Boolean, attribute: "request-payer-email" })
1910
+ p({ type: Boolean, attribute: "request-payer-email" })
1913
1911
  ], v.prototype, "requestPayerEmail", 2);
1914
1912
  h([
1915
- u({ type: Boolean, attribute: "request-payer-name" })
1913
+ p({ type: Boolean, attribute: "request-payer-name" })
1916
1914
  ], v.prototype, "requestPayerName", 2);
1917
1915
  h([
1918
- u({ type: Boolean, attribute: "request-payer-phone" })
1916
+ p({ type: Boolean, attribute: "request-payer-phone" })
1919
1917
  ], v.prototype, "requestPayerPhone", 2);
1920
1918
  h([
1921
- u({ type: Boolean, attribute: "request-shipping" })
1919
+ p({ type: Boolean, attribute: "request-shipping" })
1922
1920
  ], v.prototype, "requestShipping", 2);
1923
1921
  h([
1924
- u({ type: Array })
1922
+ p({ type: Array })
1925
1923
  ], v.prototype, "shippingOptions", 1);
1926
1924
  h([
1927
- u({ type: String, attribute: "button-type" })
1925
+ p({ type: String, attribute: "button-type" })
1928
1926
  ], v.prototype, "buttonType", 2);
1929
1927
  h([
1930
- u({ type: String, attribute: "button-theme" })
1928
+ p({ type: String, attribute: "button-theme" })
1931
1929
  ], v.prototype, "buttonTheme", 2);
1932
1930
  h([
1933
1931
  S
@@ -2046,4 +2044,4 @@ export {
2046
2044
  Be as _,
2047
2045
  De as c
2048
2046
  };
2049
- //# sourceMappingURL=revolugo.creditcardform.C3fQHyxV.min.js.map
2047
+ //# sourceMappingURL=revolugo.creditcardform.C4KL6e78.min.js.map
@@ -3,7 +3,7 @@ import { B as x, f as S } from "./revolugo.bformattedamount.BFXskYwq.min.js";
3
3
  import { E as h, b as n } from "./revolugo.booking-api-client.sLozEu8x.min.js";
4
4
  import { V as F, x as w } from "./revolugo.i18n.CyGKqo0B.min.js";
5
5
  import { B as A } from "./revolugo.bookingdetailssidebar.Cyh9ESY5.min.js";
6
- import { C as $, _ as T } from "./revolugo.creditcardform.C3fQHyxV.min.js";
6
+ import { C as $, _ as T } from "./revolugo.creditcardform.C4KL6e78.min.js";
7
7
  import { B as I, l as B, n as U, _ as d, a as i, d as R } from "./revolugo.webcomponentwrapper.C4B-n-nK.min.js";
8
8
  import { p as N } from "./revolugo.parsed-props.DLM9lIFH.min.js";
9
9
  import { w as D } from "./revolugo.watch-list.B0bwqcfr.min.js";
@@ -285,4 +285,4 @@ export {
285
285
  q as a,
286
286
  J as c
287
287
  };
288
- //# sourceMappingURL=revolugo.creditcardpayment.DUk6kCnc.min.js.map
288
+ //# sourceMappingURL=revolugo.creditcardpayment.CLaSbFFC.min.js.map
@@ -1,5 +1,5 @@
1
1
  import { V as n } from "./revolugo.i18n.CyGKqo0B.min.js";
2
- import { C as t, c as a } from "./revolugo.creditcardpayment.DUk6kCnc.min.js";
2
+ import { C as t, c as a } from "./revolugo.creditcardpayment.CLaSbFFC.min.js";
3
3
  import { W as o, n as s } from "./revolugo.webcomponentwrapper.C4B-n-nK.min.js";
4
4
  const p = n.extend({
5
5
  components: {
@@ -25,4 +25,4 @@ const C = d.exports;
25
25
  export {
26
26
  C as default
27
27
  };
28
- //# sourceMappingURL=revolugo.creditcardpayment.8C5f7CZ4.min.js.map
28
+ //# sourceMappingURL=revolugo.creditcardpayment.RGU5VhA2.min.js.map
@@ -1,7 +1,7 @@
1
1
  import { v as u, o as k, V as c } from "./revolugo.i18n.CyGKqo0B.min.js";
2
2
  import { a as S, p as b, P as O } from "./revolugo.prebookform.C-UGopr1.min.js";
3
- import { a as F, h as P, H as y } from "./revolugo.hoteloffersview.CklEMw2R.min.js";
4
- import { a as C, C as v } from "./revolugo.creditcardpayment.DUk6kCnc.min.js";
3
+ import { a as F, h as P, H as y } from "./revolugo.hoteloffersview.CcKk-z9v.min.js";
4
+ import { a as C, C as v } from "./revolugo.creditcardpayment.CLaSbFFC.min.js";
5
5
  import { H as p, a as i } from "./revolugo.parsed-height.C9EDOdpc.min.js";
6
6
  import { a as T, b as R } from "./revolugo.hoteloffersmap.wLH_KGii.min.js";
7
7
  import { E as s } from "./revolugo.revolugo-config.CV2-KqZg.min.js";
@@ -236,4 +236,4 @@ g("css/revolugo.fullbookingflow.BHV7_MhK.css");
236
236
  export {
237
237
  ko as default
238
238
  };
239
- //# sourceMappingURL=revolugo.fullbookingflow.C_c9KQQR.min.js.map
239
+ //# sourceMappingURL=revolugo.fullbookingflow.RNktCvt-.min.js.map