@revolugo/elements 6.9.3-beta.5 → 6.9.3-beta.6

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.
Files changed (48) hide show
  1. package/dist/css/{revolugo.cancellationpoliciesbadge.CXgSLFHg.css → revolugo.cancellationpoliciesbadge.BcePd3qd.css} +1 -1
  2. package/dist/css/{revolugo.creditcardstripeform.zWRVQ06X.css → revolugo.creditcardstripeform.BY2oOm4u.css} +1 -1
  3. package/dist/index.es.min.js +1129 -1372
  4. package/dist/index.es.min.js.map +1 -1
  5. package/dist/index.min.js +6 -6
  6. package/dist/index.min.js.map +1 -1
  7. package/dist/{revolugo.banktransferdetails.D8ElUFyk.min.js → revolugo.banktransferdetails.CPJwGV-N.min.js} +6 -6
  8. package/dist/{revolugo.bookingdetailssidebar.B8zVuvu3.min.js → revolugo.bookingdetailssidebar.C_iI2NBe.min.js} +6 -6
  9. package/dist/{revolugo.bookingmanager.gVkgWGAl.min.js → revolugo.bookingmanager.Xd-B0luz.min.js} +6 -6
  10. package/dist/{revolugo.cancellationpoliciesbadge.DJYslP_j.min.js → revolugo.cancellationpoliciesbadge.DmSB0UnX.min.js} +6 -6
  11. package/dist/{revolugo.cancellationpoliciesbadge.props.BQj59fW6.min.js → revolugo.cancellationpoliciesbadge.props.CYnq5upS.min.js} +5914 -5814
  12. package/dist/{revolugo.cancellationpolicieslist.DTOIhqYb.min.js → revolugo.cancellationpolicieslist.DioBarUK.min.js} +6 -6
  13. package/dist/{revolugo.creditcardstripeform.Bqxzb7Ho.min.js → revolugo.creditcardstripeform.BmwetGGI.min.js} +5 -5
  14. package/dist/revolugo.creditcardstripeform.g8NCT3QI.min.js +622 -0
  15. package/dist/{revolugo.currencypickerbtn.Czcdk2Yj.min.js → revolugo.currencypickerbtn.B2NUAGe4.min.js} +6 -6
  16. package/dist/{revolugo.dialog-attach.UPwhAysf.min.js → revolugo.dialog-attach.qO9BzSOb.min.js} +2 -2
  17. package/dist/{revolugo.fastbookingflow.BmdW6OeD.min.js → revolugo.fastbookingflow.BDUBKCel.min.js} +6 -6
  18. package/dist/revolugo.fullbookingflow.Bemz-oVM.min.js +26 -0
  19. package/dist/{revolugo.hoteldescriptionview.DsE2fOJU.min.js → revolugo.hoteldescriptionview.CS2H6HbD.min.js} +6 -6
  20. package/dist/{revolugo.hotelofferlist.maNKHwj-.min.js → revolugo.hotelofferlist.BP3oCOUP.min.js} +6 -6
  21. package/dist/{revolugo.hoteloffersearchmenu.CdLKQq6Y.min.js → revolugo.hoteloffersearchmenu.CcPob-4Z.min.js} +7 -7
  22. package/dist/revolugo.hoteloffersmap.BJUv8xTk.min.js +26 -0
  23. package/dist/revolugo.hoteloffersview.DhXU_lwg.min.js +21 -0
  24. package/dist/revolugo.hotelroomofferlist.DUS8gV6f.min.js +26 -0
  25. package/dist/revolugo.hotelroomoffersbookingflow.DMtVoalu.min.js +26 -0
  26. package/dist/{revolugo.hotelroomoffersearchmenu.DWASGSzf.min.js → revolugo.hotelroomoffersearchmenu.C2fglRLf.min.js} +6 -6
  27. package/dist/revolugo.hotelroomoffersview.B9qXsauS.min.js +26 -0
  28. package/dist/{revolugo.index.5zErGW_G.min.js → revolugo.index.DRsS1sHK.min.js} +2 -2
  29. package/dist/{revolugo.index.wc.CaAu9vmp.min.js → revolugo.index.wc.CcGotrVW.min.js} +730 -740
  30. package/dist/{revolugo.langpickerbtn.C5-ebxRj.min.js → revolugo.langpickerbtn.DdVRJwh3.min.js} +6 -6
  31. package/dist/revolugo.min.js +1 -1
  32. package/dist/{revolugo.prebookform.q9TtY-ig.min.js → revolugo.prebookform.pTWIeCdk.min.js} +6 -6
  33. package/dist/{revolugo.preferencesmenu.CrRgxlnF.min.js → revolugo.preferencesmenu.BBzBRdxW.min.js} +4 -4
  34. package/dist/{revolugo.preferencesmenu.-lZCmv4e.min.js → revolugo.preferencesmenu.CY0rMZv2.min.js} +21 -21
  35. package/dist/{revolugo.roominglisteditor.Dh2_zFUS.min.js → revolugo.roominglisteditor.DgMuQXWj.min.js} +6 -6
  36. package/dist/{revolugo.storybooktoolbar.B_ZAawdz.min.js → revolugo.storybooktoolbar.Tv_r94ZY.min.js} +5 -5
  37. package/dist/{revolugo.termsandconditions.tLIcyY83.min.js → revolugo.termsandconditions.459mSIxa.min.js} +6 -6
  38. package/dist/{revolugo.vtoolbar.BMDv38l9.min.js → revolugo.vtoolbar.CuWB3YiP.min.js} +13 -13
  39. package/dist/{revolugo.webcomponentwrapper.BbfqyF09.min.js → revolugo.webcomponentwrapper.DtyZC6dL.min.js} +4072 -4069
  40. package/package.json +1 -1
  41. package/dist/revolugo.creditcardpayment.C2ElzSGy.min.js +0 -26
  42. package/dist/revolugo.creditcardstripeform.CMuII5tD.min.js +0 -2152
  43. package/dist/revolugo.fullbookingflow.BFyywxAK.min.js +0 -26
  44. package/dist/revolugo.hoteloffersmap.3BfwIwCx.min.js +0 -26
  45. package/dist/revolugo.hoteloffersview.CUUUCIhL.min.js +0 -21
  46. package/dist/revolugo.hotelroomofferlist.DFiYfEXQ.min.js +0 -26
  47. package/dist/revolugo.hotelroomoffersbookingflow.o4EA5h6u.min.js +0 -26
  48. package/dist/revolugo.hotelroomoffersview.o2Yfx5vn.min.js +0 -26
@@ -1,2152 +0,0 @@
1
- import { T as Ne, U as Oe, V as Le, be as Ve, b as ce, aA as Ie, a as b, m as Lt, $ as Ue, d as qe, h as Be, i as st, aR as ze, x as je, c as A, w as g, aj as De, bf as H, z as M, p as nt, y as T, u as R, f as it, j as gt, k as He, F as Vt, bg as Fe, P as We, o as E } from "./revolugo.index.wc.CaAu9vmp.min.js";
2
- import { aB as Ge, w as Ke, aC as It, bc as Ut, aF as Je, bd as Ye, V as qt, k as bt, L as Bt, M as Ze, d as F, e as L, b8 as Xe, Q as W, af as Qe, j as tr, b as er, _ as rr } from "./revolugo.webcomponentwrapper.BbfqyF09.min.js";
3
- import { V as sr } from "./revolugo.vtoolbar.BMDv38l9.min.js";
4
- function Te(e) {
5
- try {
6
- if (typeof document < "u") {
7
- window.REVOLUGO_ELEMENTS_STYLES = window.REVOLUGO_ELEMENTS_STYLES || {
8
- sheets: [],
9
- components: []
10
- };
11
- const t = import.meta.url, r = t.slice(0, t.lastIndexOf("/") + 1) + e;
12
- window.REVOLUGO_ELEMENTS_STYLES.sheets.push(r);
13
- for (const s of REVOLUGO_ELEMENTS_STYLES.components)
14
- s(r);
15
- if (e.indexOf("fonts") >= 0) {
16
- const s = document.createElement("link");
17
- s.rel = "stylesheet", linK.href = r, document.head.appendChild(s);
18
- }
19
- }
20
- } catch (t) {
21
- console.error("[revolugo-elements] ", t);
22
- }
23
- }
24
- const nr = Oe({
25
- ...Je(),
26
- ...Ue(Ye(), ["inline"])
27
- }, "VCheckbox"), ir = Ne()({
28
- name: "VCheckbox",
29
- inheritAttrs: !1,
30
- props: nr(),
31
- emits: {
32
- "update:modelValue": (e) => !0,
33
- "update:focused": (e) => !0
34
- },
35
- setup(e, t) {
36
- let {
37
- attrs: r,
38
- slots: s
39
- } = t;
40
- const n = Le(e, "modelValue"), {
41
- isFocused: i,
42
- focus: o,
43
- blur: u
44
- } = Ge(e), l = Ve(), d = ce(() => e.id || `checkbox-${l}`);
45
- return Ke(() => {
46
- const [y, v] = Ie(r), S = It.filterProps(e), $ = Ut.filterProps(e);
47
- return b(It, Lt({
48
- class: ["v-checkbox", e.class]
49
- }, y, S, {
50
- modelValue: n.value,
51
- "onUpdate:modelValue": (O) => n.value = O,
52
- id: d.value,
53
- focused: i.value,
54
- style: e.style
55
- }), {
56
- ...s,
57
- default: (O) => {
58
- let {
59
- id: k,
60
- messagesId: vt,
61
- isDisabled: rt,
62
- isReadonly: m,
63
- isValid: C
64
- } = O;
65
- return b(Ut, Lt($, {
66
- id: k.value,
67
- "aria-describedby": vt.value,
68
- disabled: rt.value,
69
- readonly: m.value
70
- }, v, {
71
- error: C.value === !1,
72
- modelValue: n.value,
73
- "onUpdate:modelValue": (q) => n.value = q,
74
- onFocus: o,
75
- onBlur: u
76
- }), s);
77
- }
78
- });
79
- }), {};
80
- }
81
- });
82
- /**
83
- * @license
84
- * Copyright 2017 Google LLC
85
- * SPDX-License-Identifier: BSD-3-Clause
86
- */
87
- const ue = (e) => (t) => typeof t == "function" ? ((r, s) => (customElements.define(r, s), s))(e, t) : ((r, s) => {
88
- const { kind: n, elements: i } = s;
89
- return { kind: n, elements: i, finisher(o) {
90
- customElements.define(r, o);
91
- } };
92
- })(e, t);
93
- /**
94
- * @license
95
- * Copyright 2017 Google LLC
96
- * SPDX-License-Identifier: BSD-3-Clause
97
- */
98
- const or = (e, t) => t.kind === "method" && t.descriptor && !("value" in t.descriptor) ? { ...t, finisher(r) {
99
- r.createProperty(t.key, e);
100
- } } : { kind: "field", key: Symbol(), placement: "own", descriptor: {}, originalKey: t.key, initializer() {
101
- typeof t.initializer == "function" && (this[t.key] = t.initializer.call(this));
102
- }, finisher(r) {
103
- r.createProperty(t.key, e);
104
- } }, ar = (e, t, r) => {
105
- t.constructor.createProperty(r, e);
106
- };
107
- function c(e) {
108
- return (t, r) => r !== void 0 ? ar(e, t, r) : or(e, t);
109
- }
110
- /**
111
- * @license
112
- * Copyright 2021 Google LLC
113
- * SPDX-License-Identifier: BSD-3-Clause
114
- */
115
- var St;
116
- ((St = window.HTMLSlotElement) === null || St === void 0 ? void 0 : St.prototype.assignedElements) != null;
117
- var zt = !0;
118
- function x(e, t, r) {
119
- if (typeof r?.value != "function")
120
- throw new TypeError(`Only methods can be decorated with @bound. <${t ?? e.name}> is not a method!`);
121
- return {
122
- configurable: zt,
123
- get() {
124
- const s = r.value.bind(this);
125
- return Object.defineProperty(this, t, { value: s, configurable: zt, writable: !0 }), s;
126
- }
127
- };
128
- }
129
- /**
130
- * @license
131
- * Copyright 2019 Google LLC
132
- * SPDX-License-Identifier: BSD-3-Clause
133
- */
134
- const ct = window, Rt = ct.ShadowRoot && (ct.ShadyCSS === void 0 || ct.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, Mt = Symbol(), jt = /* @__PURE__ */ new WeakMap();
135
- let de = class {
136
- constructor(t, r, s) {
137
- if (this._$cssResult$ = !0, s !== Mt) throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
138
- this.cssText = t, this.t = r;
139
- }
140
- get styleSheet() {
141
- let t = this.o;
142
- const r = this.t;
143
- if (Rt && t === void 0) {
144
- const s = r !== void 0 && r.length === 1;
145
- s && (t = jt.get(r)), t === void 0 && ((this.o = t = new CSSStyleSheet()).replaceSync(this.cssText), s && jt.set(r, t));
146
- }
147
- return t;
148
- }
149
- toString() {
150
- return this.cssText;
151
- }
152
- };
153
- const lr = (e) => new de(typeof e == "string" ? e : e + "", void 0, Mt), Tt = (e, ...t) => {
154
- const r = e.length === 1 ? e[0] : t.reduce((s, n, i) => s + ((o) => {
155
- if (o._$cssResult$ === !0) return o.cssText;
156
- if (typeof o == "number") return o;
157
- throw Error("Value passed to 'css' function must be a 'css' function result: " + o + ". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.");
158
- })(n) + e[i + 1], e[0]);
159
- return new de(r, e, Mt);
160
- }, cr = (e, t) => {
161
- Rt ? e.adoptedStyleSheets = t.map((r) => r instanceof CSSStyleSheet ? r : r.styleSheet) : t.forEach((r) => {
162
- const s = document.createElement("style"), n = ct.litNonce;
163
- n !== void 0 && s.setAttribute("nonce", n), s.textContent = r.cssText, e.appendChild(s);
164
- });
165
- }, Dt = Rt ? (e) => e : (e) => e instanceof CSSStyleSheet ? ((t) => {
166
- let r = "";
167
- for (const s of t.cssRules) r += s.cssText;
168
- return lr(r);
169
- })(e) : e;
170
- /**
171
- * @license
172
- * Copyright 2017 Google LLC
173
- * SPDX-License-Identifier: BSD-3-Clause
174
- */
175
- var _t;
176
- const mt = window, Ht = mt.trustedTypes, ur = Ht ? Ht.emptyScript : "", Ft = mt.reactiveElementPolyfillSupport, At = { toAttribute(e, t) {
177
- switch (t) {
178
- case Boolean:
179
- e = e ? ur : null;
180
- break;
181
- case Object:
182
- case Array:
183
- e = e == null ? e : JSON.stringify(e);
184
- }
185
- return e;
186
- }, fromAttribute(e, t) {
187
- let r = e;
188
- switch (t) {
189
- case Boolean:
190
- r = e !== null;
191
- break;
192
- case Number:
193
- r = e === null ? null : Number(e);
194
- break;
195
- case Object:
196
- case Array:
197
- try {
198
- r = JSON.parse(e);
199
- } catch {
200
- r = null;
201
- }
202
- }
203
- return r;
204
- } }, pe = (e, t) => t !== e && (t == t || e == e), wt = { attribute: !0, type: String, converter: At, reflect: !1, hasChanged: pe }, kt = "finalized";
205
- let B = class extends HTMLElement {
206
- constructor() {
207
- super(), this._$Ei = /* @__PURE__ */ new Map(), this.isUpdatePending = !1, this.hasUpdated = !1, this._$El = null, this._$Eu();
208
- }
209
- static addInitializer(t) {
210
- var r;
211
- this.finalize(), ((r = this.h) !== null && r !== void 0 ? r : this.h = []).push(t);
212
- }
213
- static get observedAttributes() {
214
- this.finalize();
215
- const t = [];
216
- return this.elementProperties.forEach((r, s) => {
217
- const n = this._$Ep(s, r);
218
- n !== void 0 && (this._$Ev.set(n, s), t.push(n));
219
- }), t;
220
- }
221
- static createProperty(t, r = wt) {
222
- if (r.state && (r.attribute = !1), this.finalize(), this.elementProperties.set(t, r), !r.noAccessor && !this.prototype.hasOwnProperty(t)) {
223
- const s = typeof t == "symbol" ? Symbol() : "__" + t, n = this.getPropertyDescriptor(t, s, r);
224
- n !== void 0 && Object.defineProperty(this.prototype, t, n);
225
- }
226
- }
227
- static getPropertyDescriptor(t, r, s) {
228
- return { get() {
229
- return this[r];
230
- }, set(n) {
231
- const i = this[t];
232
- this[r] = n, this.requestUpdate(t, i, s);
233
- }, configurable: !0, enumerable: !0 };
234
- }
235
- static getPropertyOptions(t) {
236
- return this.elementProperties.get(t) || wt;
237
- }
238
- static finalize() {
239
- if (this.hasOwnProperty(kt)) return !1;
240
- this[kt] = !0;
241
- const t = Object.getPrototypeOf(this);
242
- if (t.finalize(), t.h !== void 0 && (this.h = [...t.h]), this.elementProperties = new Map(t.elementProperties), this._$Ev = /* @__PURE__ */ new Map(), this.hasOwnProperty("properties")) {
243
- const r = this.properties, s = [...Object.getOwnPropertyNames(r), ...Object.getOwnPropertySymbols(r)];
244
- for (const n of s) this.createProperty(n, r[n]);
245
- }
246
- return this.elementStyles = this.finalizeStyles(this.styles), !0;
247
- }
248
- static finalizeStyles(t) {
249
- const r = [];
250
- if (Array.isArray(t)) {
251
- const s = new Set(t.flat(1 / 0).reverse());
252
- for (const n of s) r.unshift(Dt(n));
253
- } else t !== void 0 && r.push(Dt(t));
254
- return r;
255
- }
256
- static _$Ep(t, r) {
257
- const s = r.attribute;
258
- return s === !1 ? void 0 : typeof s == "string" ? s : typeof t == "string" ? t.toLowerCase() : void 0;
259
- }
260
- _$Eu() {
261
- var t;
262
- this._$E_ = new Promise((r) => this.enableUpdating = r), this._$AL = /* @__PURE__ */ new Map(), this._$Eg(), this.requestUpdate(), (t = this.constructor.h) === null || t === void 0 || t.forEach((r) => r(this));
263
- }
264
- addController(t) {
265
- var r, s;
266
- ((r = this._$ES) !== null && r !== void 0 ? r : this._$ES = []).push(t), this.renderRoot !== void 0 && this.isConnected && ((s = t.hostConnected) === null || s === void 0 || s.call(t));
267
- }
268
- removeController(t) {
269
- var r;
270
- (r = this._$ES) === null || r === void 0 || r.splice(this._$ES.indexOf(t) >>> 0, 1);
271
- }
272
- _$Eg() {
273
- this.constructor.elementProperties.forEach((t, r) => {
274
- this.hasOwnProperty(r) && (this._$Ei.set(r, this[r]), delete this[r]);
275
- });
276
- }
277
- createRenderRoot() {
278
- var t;
279
- const r = (t = this.shadowRoot) !== null && t !== void 0 ? t : this.attachShadow(this.constructor.shadowRootOptions);
280
- return cr(r, this.constructor.elementStyles), r;
281
- }
282
- connectedCallback() {
283
- var t;
284
- this.renderRoot === void 0 && (this.renderRoot = this.createRenderRoot()), this.enableUpdating(!0), (t = this._$ES) === null || t === void 0 || t.forEach((r) => {
285
- var s;
286
- return (s = r.hostConnected) === null || s === void 0 ? void 0 : s.call(r);
287
- });
288
- }
289
- enableUpdating(t) {
290
- }
291
- disconnectedCallback() {
292
- var t;
293
- (t = this._$ES) === null || t === void 0 || t.forEach((r) => {
294
- var s;
295
- return (s = r.hostDisconnected) === null || s === void 0 ? void 0 : s.call(r);
296
- });
297
- }
298
- attributeChangedCallback(t, r, s) {
299
- this._$AK(t, s);
300
- }
301
- _$EO(t, r, s = wt) {
302
- var n;
303
- const i = this.constructor._$Ep(t, s);
304
- if (i !== void 0 && s.reflect === !0) {
305
- const o = (((n = s.converter) === null || n === void 0 ? void 0 : n.toAttribute) !== void 0 ? s.converter : At).toAttribute(r, s.type);
306
- this._$El = t, o == null ? this.removeAttribute(i) : this.setAttribute(i, o), this._$El = null;
307
- }
308
- }
309
- _$AK(t, r) {
310
- var s;
311
- const n = this.constructor, i = n._$Ev.get(t);
312
- if (i !== void 0 && this._$El !== i) {
313
- const o = n.getPropertyOptions(i), u = typeof o.converter == "function" ? { fromAttribute: o.converter } : ((s = o.converter) === null || s === void 0 ? void 0 : s.fromAttribute) !== void 0 ? o.converter : At;
314
- this._$El = i, this[i] = u.fromAttribute(r, o.type), this._$El = null;
315
- }
316
- }
317
- requestUpdate(t, r, s) {
318
- let n = !0;
319
- t !== void 0 && (((s = s || this.constructor.getPropertyOptions(t)).hasChanged || pe)(this[t], r) ? (this._$AL.has(t) || this._$AL.set(t, r), s.reflect === !0 && this._$El !== t && (this._$EC === void 0 && (this._$EC = /* @__PURE__ */ new Map()), this._$EC.set(t, s))) : n = !1), !this.isUpdatePending && n && (this._$E_ = this._$Ej());
320
- }
321
- async _$Ej() {
322
- this.isUpdatePending = !0;
323
- try {
324
- await this._$E_;
325
- } catch (r) {
326
- Promise.reject(r);
327
- }
328
- const t = this.scheduleUpdate();
329
- return t != null && await t, !this.isUpdatePending;
330
- }
331
- scheduleUpdate() {
332
- return this.performUpdate();
333
- }
334
- performUpdate() {
335
- var t;
336
- if (!this.isUpdatePending) return;
337
- this.hasUpdated, this._$Ei && (this._$Ei.forEach((n, i) => this[i] = n), this._$Ei = void 0);
338
- let r = !1;
339
- const s = this._$AL;
340
- try {
341
- r = this.shouldUpdate(s), r ? (this.willUpdate(s), (t = this._$ES) === null || t === void 0 || t.forEach((n) => {
342
- var i;
343
- return (i = n.hostUpdate) === null || i === void 0 ? void 0 : i.call(n);
344
- }), this.update(s)) : this._$Ek();
345
- } catch (n) {
346
- throw r = !1, this._$Ek(), n;
347
- }
348
- r && this._$AE(s);
349
- }
350
- willUpdate(t) {
351
- }
352
- _$AE(t) {
353
- var r;
354
- (r = this._$ES) === null || r === void 0 || r.forEach((s) => {
355
- var n;
356
- return (n = s.hostUpdated) === null || n === void 0 ? void 0 : n.call(s);
357
- }), this.hasUpdated || (this.hasUpdated = !0, this.firstUpdated(t)), this.updated(t);
358
- }
359
- _$Ek() {
360
- this._$AL = /* @__PURE__ */ new Map(), this.isUpdatePending = !1;
361
- }
362
- get updateComplete() {
363
- return this.getUpdateComplete();
364
- }
365
- getUpdateComplete() {
366
- return this._$E_;
367
- }
368
- shouldUpdate(t) {
369
- return !0;
370
- }
371
- update(t) {
372
- this._$EC !== void 0 && (this._$EC.forEach((r, s) => this._$EO(s, this[s], r)), this._$EC = void 0), this._$Ek();
373
- }
374
- updated(t) {
375
- }
376
- firstUpdated(t) {
377
- }
378
- };
379
- B[kt] = !0, B.elementProperties = /* @__PURE__ */ new Map(), B.elementStyles = [], B.shadowRootOptions = { mode: "open" }, Ft?.({ ReactiveElement: B }), ((_t = mt.reactiveElementVersions) !== null && _t !== void 0 ? _t : mt.reactiveElementVersions = []).push("1.6.3");
380
- /**
381
- * @license
382
- * Copyright 2017 Google LLC
383
- * SPDX-License-Identifier: BSD-3-Clause
384
- */
385
- var $t;
386
- const yt = window, z = yt.trustedTypes, Wt = z ? z.createPolicy("lit-html", { createHTML: (e) => e }) : void 0, xt = "$lit$", N = `lit$${(Math.random() + "").slice(9)}$`, he = "?" + N, dr = `<${he}>`, U = document, X = () => U.createComment(""), Q = (e) => e === null || typeof e != "object" && typeof e != "function", me = Array.isArray, pr = (e) => me(e) || typeof e?.[Symbol.iterator] == "function", Ct = `[
387
- \f\r]`, G = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, Gt = /-->/g, Kt = />/g, V = RegExp(`>|${Ct}(?:([^\\s"'>=/]+)(${Ct}*=${Ct}*(?:[^
388
- \f\r"'\`<>=]|("|')|))|$)`, "g"), Jt = /'/g, Yt = /"/g, ye = /^(?:script|style|textarea|title)$/i, hr = (e) => (t, ...r) => ({ _$litType$: e, strings: t, values: r }), mr = hr(1), j = Symbol.for("lit-noChange"), _ = Symbol.for("lit-nothing"), Zt = /* @__PURE__ */ new WeakMap(), I = U.createTreeWalker(U, 129, null, !1);
389
- function fe(e, t) {
390
- if (!Array.isArray(e) || !e.hasOwnProperty("raw")) throw Error("invalid template strings array");
391
- return Wt !== void 0 ? Wt.createHTML(t) : t;
392
- }
393
- const yr = (e, t) => {
394
- const r = e.length - 1, s = [];
395
- let n, i = t === 2 ? "<svg>" : "", o = G;
396
- for (let u = 0; u < r; u++) {
397
- const l = e[u];
398
- let d, y, v = -1, S = 0;
399
- for (; S < l.length && (o.lastIndex = S, y = o.exec(l), y !== null); ) S = o.lastIndex, o === G ? y[1] === "!--" ? o = Gt : y[1] !== void 0 ? o = Kt : y[2] !== void 0 ? (ye.test(y[2]) && (n = RegExp("</" + y[2], "g")), o = V) : y[3] !== void 0 && (o = V) : o === V ? y[0] === ">" ? (o = n ?? G, v = -1) : y[1] === void 0 ? v = -2 : (v = o.lastIndex - y[2].length, d = y[1], o = y[3] === void 0 ? V : y[3] === '"' ? Yt : Jt) : o === Yt || o === Jt ? o = V : o === Gt || o === Kt ? o = G : (o = V, n = void 0);
400
- const $ = o === V && e[u + 1].startsWith("/>") ? " " : "";
401
- i += o === G ? l + dr : v >= 0 ? (s.push(d), l.slice(0, v) + xt + l.slice(v) + N + $) : l + N + (v === -2 ? (s.push(void 0), u) : $);
402
- }
403
- return [fe(e, i + (e[r] || "<?>") + (t === 2 ? "</svg>" : "")), s];
404
- };
405
- class tt {
406
- constructor({ strings: t, _$litType$: r }, s) {
407
- let n;
408
- this.parts = [];
409
- let i = 0, o = 0;
410
- const u = t.length - 1, l = this.parts, [d, y] = yr(t, r);
411
- if (this.el = tt.createElement(d, s), I.currentNode = this.el.content, r === 2) {
412
- const v = this.el.content, S = v.firstChild;
413
- S.remove(), v.append(...S.childNodes);
414
- }
415
- for (; (n = I.nextNode()) !== null && l.length < u; ) {
416
- if (n.nodeType === 1) {
417
- if (n.hasAttributes()) {
418
- const v = [];
419
- for (const S of n.getAttributeNames()) if (S.endsWith(xt) || S.startsWith(N)) {
420
- const $ = y[o++];
421
- if (v.push(S), $ !== void 0) {
422
- const O = n.getAttribute($.toLowerCase() + xt).split(N), k = /([.?@])?(.*)/.exec($);
423
- l.push({ type: 1, index: i, name: k[2], strings: O, ctor: k[1] === "." ? vr : k[1] === "?" ? br : k[1] === "@" ? Sr : ft });
424
- } else l.push({ type: 6, index: i });
425
- }
426
- for (const S of v) n.removeAttribute(S);
427
- }
428
- if (ye.test(n.tagName)) {
429
- const v = n.textContent.split(N), S = v.length - 1;
430
- if (S > 0) {
431
- n.textContent = z ? z.emptyScript : "";
432
- for (let $ = 0; $ < S; $++) n.append(v[$], X()), I.nextNode(), l.push({ type: 2, index: ++i });
433
- n.append(v[S], X());
434
- }
435
- }
436
- } else if (n.nodeType === 8) if (n.data === he) l.push({ type: 2, index: i });
437
- else {
438
- let v = -1;
439
- for (; (v = n.data.indexOf(N, v + 1)) !== -1; ) l.push({ type: 7, index: i }), v += N.length - 1;
440
- }
441
- i++;
442
- }
443
- }
444
- static createElement(t, r) {
445
- const s = U.createElement("template");
446
- return s.innerHTML = t, s;
447
- }
448
- }
449
- function D(e, t, r = e, s) {
450
- var n, i, o, u;
451
- if (t === j) return t;
452
- let l = s !== void 0 ? (n = r._$Co) === null || n === void 0 ? void 0 : n[s] : r._$Cl;
453
- const d = Q(t) ? void 0 : t._$litDirective$;
454
- return l?.constructor !== d && ((i = l?._$AO) === null || i === void 0 || i.call(l, !1), d === void 0 ? l = void 0 : (l = new d(e), l._$AT(e, r, s)), s !== void 0 ? ((o = (u = r)._$Co) !== null && o !== void 0 ? o : u._$Co = [])[s] = l : r._$Cl = l), l !== void 0 && (t = D(e, l._$AS(e, t.values), l, s)), t;
455
- }
456
- class fr {
457
- constructor(t, r) {
458
- this._$AV = [], this._$AN = void 0, this._$AD = t, this._$AM = r;
459
- }
460
- get parentNode() {
461
- return this._$AM.parentNode;
462
- }
463
- get _$AU() {
464
- return this._$AM._$AU;
465
- }
466
- u(t) {
467
- var r;
468
- const { el: { content: s }, parts: n } = this._$AD, i = ((r = t?.creationScope) !== null && r !== void 0 ? r : U).importNode(s, !0);
469
- I.currentNode = i;
470
- let o = I.nextNode(), u = 0, l = 0, d = n[0];
471
- for (; d !== void 0; ) {
472
- if (u === d.index) {
473
- let y;
474
- d.type === 2 ? y = new et(o, o.nextSibling, this, t) : d.type === 1 ? y = new d.ctor(o, d.name, d.strings, this, t) : d.type === 6 && (y = new _r(o, this, t)), this._$AV.push(y), d = n[++l];
475
- }
476
- u !== d?.index && (o = I.nextNode(), u++);
477
- }
478
- return I.currentNode = U, i;
479
- }
480
- v(t) {
481
- let r = 0;
482
- for (const s of this._$AV) s !== void 0 && (s.strings !== void 0 ? (s._$AI(t, s, r), r += s.strings.length - 2) : s._$AI(t[r])), r++;
483
- }
484
- }
485
- class et {
486
- constructor(t, r, s, n) {
487
- var i;
488
- this.type = 2, this._$AH = _, this._$AN = void 0, this._$AA = t, this._$AB = r, this._$AM = s, this.options = n, this._$Cp = (i = n?.isConnected) === null || i === void 0 || i;
489
- }
490
- get _$AU() {
491
- var t, r;
492
- return (r = (t = this._$AM) === null || t === void 0 ? void 0 : t._$AU) !== null && r !== void 0 ? r : this._$Cp;
493
- }
494
- get parentNode() {
495
- let t = this._$AA.parentNode;
496
- const r = this._$AM;
497
- return r !== void 0 && t?.nodeType === 11 && (t = r.parentNode), t;
498
- }
499
- get startNode() {
500
- return this._$AA;
501
- }
502
- get endNode() {
503
- return this._$AB;
504
- }
505
- _$AI(t, r = this) {
506
- t = D(this, t, r), Q(t) ? t === _ || t == null || t === "" ? (this._$AH !== _ && this._$AR(), this._$AH = _) : t !== this._$AH && t !== j && this._(t) : t._$litType$ !== void 0 ? this.g(t) : t.nodeType !== void 0 ? this.$(t) : pr(t) ? this.T(t) : this._(t);
507
- }
508
- k(t) {
509
- return this._$AA.parentNode.insertBefore(t, this._$AB);
510
- }
511
- $(t) {
512
- this._$AH !== t && (this._$AR(), this._$AH = this.k(t));
513
- }
514
- _(t) {
515
- this._$AH !== _ && Q(this._$AH) ? this._$AA.nextSibling.data = t : this.$(U.createTextNode(t)), this._$AH = t;
516
- }
517
- g(t) {
518
- var r;
519
- const { values: s, _$litType$: n } = t, i = typeof n == "number" ? this._$AC(t) : (n.el === void 0 && (n.el = tt.createElement(fe(n.h, n.h[0]), this.options)), n);
520
- if (((r = this._$AH) === null || r === void 0 ? void 0 : r._$AD) === i) this._$AH.v(s);
521
- else {
522
- const o = new fr(i, this), u = o.u(this.options);
523
- o.v(s), this.$(u), this._$AH = o;
524
- }
525
- }
526
- _$AC(t) {
527
- let r = Zt.get(t.strings);
528
- return r === void 0 && Zt.set(t.strings, r = new tt(t)), r;
529
- }
530
- T(t) {
531
- me(this._$AH) || (this._$AH = [], this._$AR());
532
- const r = this._$AH;
533
- let s, n = 0;
534
- for (const i of t) n === r.length ? r.push(s = new et(this.k(X()), this.k(X()), this, this.options)) : s = r[n], s._$AI(i), n++;
535
- n < r.length && (this._$AR(s && s._$AB.nextSibling, n), r.length = n);
536
- }
537
- _$AR(t = this._$AA.nextSibling, r) {
538
- var s;
539
- for ((s = this._$AP) === null || s === void 0 || s.call(this, !1, !0, r); t && t !== this._$AB; ) {
540
- const n = t.nextSibling;
541
- t.remove(), t = n;
542
- }
543
- }
544
- setConnected(t) {
545
- var r;
546
- this._$AM === void 0 && (this._$Cp = t, (r = this._$AP) === null || r === void 0 || r.call(this, t));
547
- }
548
- }
549
- class ft {
550
- constructor(t, r, s, n, i) {
551
- this.type = 1, this._$AH = _, this._$AN = void 0, this.element = t, this.name = r, this._$AM = n, this.options = i, s.length > 2 || s[0] !== "" || s[1] !== "" ? (this._$AH = Array(s.length - 1).fill(new String()), this.strings = s) : this._$AH = _;
552
- }
553
- get tagName() {
554
- return this.element.tagName;
555
- }
556
- get _$AU() {
557
- return this._$AM._$AU;
558
- }
559
- _$AI(t, r = this, s, n) {
560
- const i = this.strings;
561
- let o = !1;
562
- if (i === void 0) t = D(this, t, r, 0), o = !Q(t) || t !== this._$AH && t !== j, o && (this._$AH = t);
563
- else {
564
- const u = t;
565
- let l, d;
566
- for (t = i[0], l = 0; l < i.length - 1; l++) d = D(this, u[s + l], r, l), d === j && (d = this._$AH[l]), o || (o = !Q(d) || d !== this._$AH[l]), d === _ ? t = _ : t !== _ && (t += (d ?? "") + i[l + 1]), this._$AH[l] = d;
567
- }
568
- o && !n && this.j(t);
569
- }
570
- j(t) {
571
- t === _ ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, t ?? "");
572
- }
573
- }
574
- class vr extends ft {
575
- constructor() {
576
- super(...arguments), this.type = 3;
577
- }
578
- j(t) {
579
- this.element[this.name] = t === _ ? void 0 : t;
580
- }
581
- }
582
- const gr = z ? z.emptyScript : "";
583
- class br extends ft {
584
- constructor() {
585
- super(...arguments), this.type = 4;
586
- }
587
- j(t) {
588
- t && t !== _ ? this.element.setAttribute(this.name, gr) : this.element.removeAttribute(this.name);
589
- }
590
- }
591
- class Sr extends ft {
592
- constructor(t, r, s, n, i) {
593
- super(t, r, s, n, i), this.type = 5;
594
- }
595
- _$AI(t, r = this) {
596
- var s;
597
- if ((t = (s = D(this, t, r, 0)) !== null && s !== void 0 ? s : _) === j) return;
598
- const n = this._$AH, i = t === _ && n !== _ || t.capture !== n.capture || t.once !== n.once || t.passive !== n.passive, o = t !== _ && (n === _ || i);
599
- i && this.element.removeEventListener(this.name, this, n), o && this.element.addEventListener(this.name, this, t), this._$AH = t;
600
- }
601
- handleEvent(t) {
602
- var r, s;
603
- typeof this._$AH == "function" ? this._$AH.call((s = (r = this.options) === null || r === void 0 ? void 0 : r.host) !== null && s !== void 0 ? s : this.element, t) : this._$AH.handleEvent(t);
604
- }
605
- }
606
- class _r {
607
- constructor(t, r, s) {
608
- this.element = t, this.type = 6, this._$AN = void 0, this._$AM = r, this.options = s;
609
- }
610
- get _$AU() {
611
- return this._$AM._$AU;
612
- }
613
- _$AI(t) {
614
- D(this, t);
615
- }
616
- }
617
- const Xt = yt.litHtmlPolyfillSupport;
618
- Xt?.(tt, et), (($t = yt.litHtmlVersions) !== null && $t !== void 0 ? $t : yt.litHtmlVersions = []).push("2.8.0");
619
- const wr = (e, t, r) => {
620
- var s, n;
621
- const i = (s = r?.renderBefore) !== null && s !== void 0 ? s : t;
622
- let o = i._$litPart$;
623
- if (o === void 0) {
624
- const u = (n = r?.renderBefore) !== null && n !== void 0 ? n : null;
625
- i._$litPart$ = o = new et(t.insertBefore(X(), u), u, void 0, r ?? {});
626
- }
627
- return o._$AI(e), o;
628
- };
629
- /**
630
- * @license
631
- * Copyright 2017 Google LLC
632
- * SPDX-License-Identifier: BSD-3-Clause
633
- */
634
- var Et, Pt;
635
- class Z extends B {
636
- constructor() {
637
- super(...arguments), this.renderOptions = { host: this }, this._$Do = void 0;
638
- }
639
- createRenderRoot() {
640
- var t, r;
641
- const s = super.createRenderRoot();
642
- return (t = (r = this.renderOptions).renderBefore) !== null && t !== void 0 || (r.renderBefore = s.firstChild), s;
643
- }
644
- update(t) {
645
- const r = this.render();
646
- this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(t), this._$Do = wr(r, this.renderRoot, this.renderOptions);
647
- }
648
- connectedCallback() {
649
- var t;
650
- super.connectedCallback(), (t = this._$Do) === null || t === void 0 || t.setConnected(!0);
651
- }
652
- disconnectedCallback() {
653
- var t;
654
- super.disconnectedCallback(), (t = this._$Do) === null || t === void 0 || t.setConnected(!1);
655
- }
656
- render() {
657
- return j;
658
- }
659
- }
660
- Z.finalized = !0, Z._$litElement$ = !0, (Et = globalThis.litElementHydrateSupport) === null || Et === void 0 || Et.call(globalThis, { LitElement: Z });
661
- const Qt = globalThis.litElementPolyfillSupport;
662
- Qt?.({ LitElement: Z });
663
- ((Pt = globalThis.litElementVersions) !== null && Pt !== void 0 ? Pt : globalThis.litElementVersions = []).push("3.3.3");
664
- /**
665
- * @license
666
- * Copyright 2018 Google LLC
667
- * SPDX-License-Identifier: BSD-3-Clause
668
- */
669
- const $r = (e) => e ?? _, Cr = /[A-ZÀ-ÖÙ-Ý]+/g, Er = /[a-zà-öù-ý]+/g;
670
- function Pr(e) {
671
- const t = e.replace(Cr, r).match(Er);
672
- return t ? t.join("-") : "";
673
- function r(s) {
674
- return " " + (s.length > 2 ? s.slice(0, -1) + " " + s.slice(-1) : s).toLowerCase();
675
- }
676
- }
677
- function Ar() {
678
- const e = {};
679
- return {
680
- has: (t) => Object.hasOwnProperty.call(e, t),
681
- get: (t) => e[t],
682
- set: (t, r) => {
683
- e[t] = r;
684
- }
685
- };
686
- }
687
- function kr(e, t) {
688
- const r = Ar();
689
- return (...s) => {
690
- const n = e(...s);
691
- return r.has(n) || r.set(n, t(...s)), r.get(n);
692
- };
693
- }
694
- var xr = (e) => e, ve = kr(xr, Pr), Rr = (e) => (t) => e.includes(t), Mr = Rr(["paymentMethod", "source", "token"]);
695
- async function Tr(e) {
696
- const { ok: t, statusText: r } = e;
697
- if (!t)
698
- throw new Error(r);
699
- return e;
700
- }
701
- function Nr(e) {
702
- return "addInitializer" in e.constructor;
703
- }
704
- var Y = class {
705
- constructor(e) {
706
- if (this.host = e, this.values = /* @__PURE__ */ new Map(), Y.instances.has(e))
707
- return Y.instances.get(e);
708
- e.addController(this), Y.instances.set(e, this);
709
- }
710
- static for(e) {
711
- return new Y(e);
712
- }
713
- hostConnected() {
714
- }
715
- set(e, t) {
716
- const r = this.values.get(e);
717
- this.values.set(e, t), Nr(this.host) ? this.host.requestUpdate(e, r) : this.host.requestUpdate();
718
- }
719
- }, Nt = Y;
720
- Nt.instances = /* @__PURE__ */ new Map();
721
- function p(e, t) {
722
- const r = e.constructor;
723
- r.addInitializer((s) => {
724
- const n = Nt.for(s);
725
- Object.defineProperty(s.constructor.prototype, t, {
726
- enumerable: !0,
727
- configurable: !0,
728
- get() {
729
- return n.values.get(t);
730
- },
731
- set(i) {
732
- n.values.has(t) || n.values.set(t, i);
733
- }
734
- }), r.createProperty(t, {
735
- ...r.getPropertyOptions(t),
736
- noAccessor: !0
737
- });
738
- });
739
- }
740
- p.set = function(e, t) {
741
- const r = Nt.for(e);
742
- for (const [s, n] of Object.entries(t))
743
- r.set(s, n);
744
- };
745
- var Or = class extends Event {
746
- constructor(e, t, r, s) {
747
- super(`${s ?? e.toLowerCase()}-changed`), this.key = e, this.oldValue = t, this.value = r, this.detail = { value: r };
748
- }
749
- }, ut = class {
750
- constructor(e) {
751
- if (this.host = e, this.cache = /* @__PURE__ */ new Map(), ut.instances.has(e))
752
- return ut.instances.get(e);
753
- e.addController(this), ut.instances.set(e, this);
754
- }
755
- hostUpdated() {
756
- for (const [e, t] of this.cache) {
757
- const r = this.host[e], { attribute: s } = this.host.constructor.getPropertyOptions(e) ?? {}, n = typeof s == "string" ? s : null;
758
- this.cache.set(e, r), this.host.dispatchEvent(new Or(e, t, r, n));
759
- }
760
- }
761
- }, ge = ut;
762
- ge.instances = /* @__PURE__ */ new Map();
763
- function P(e, t) {
764
- e.constructor.addInitializer((r) => {
765
- new ge(r).cache.set(t, r[t]);
766
- });
767
- }
768
- function Lr(e) {
769
- return (t, r, s) => {
770
- const n = s.value;
771
- return s.value = e(n), s;
772
- };
773
- }
774
- var Ot = Lr(function(e) {
775
- const { name: t } = e;
776
- return async function(...r) {
777
- if (!this.stripe)
778
- throw new Error(`<${this.constructor.is}>: Stripe must be initialized before calling ${t}.`);
779
- return e.call(this, ...r).then(this.handleResponse);
780
- };
781
- });
782
- function te(e) {
783
- if (e.error)
784
- throw e.error;
785
- return e;
786
- }
787
- var Vr = Object.defineProperty, Ir = Object.getOwnPropertyDescriptor, a = (e, t, r, s) => {
788
- for (var n = s > 1 ? void 0 : s ? Ir(t, r) : t, i = e.length - 1, o; i >= 0; i--)
789
- (o = e[i]) && (n = (s ? o(t, r, n) : o(n)) || n);
790
- return s && n && Vr(t, r, n), n;
791
- }, be = (e, t, r) => {
792
- if (!t.has(e))
793
- throw TypeError("Cannot " + r);
794
- }, ee = (e, t, r) => (be(e, t, "read from private field"), r ? r.call(e) : t.get(e)), re = (e, t, r) => {
795
- if (t.has(e))
796
- throw TypeError("Cannot add the same private member more than once");
797
- t instanceof WeakSet ? t.add(e) : t.set(e, r);
798
- }, se = (e, t, r, s) => (be(e, t, "write to private field"), t.set(e, r), r);
799
- function ne() {
800
- return (Date.now() + Math.random() * 1e3).toString(36).substr(0, 8);
801
- }
802
- var Ur = class {
803
- constructor(e, t) {
804
- this.host = e, this.options = t, this.initialized = !1, this.shadowHosts = [], this.host.addController(this), this.mountId = this.resetMountId(), this.slotName = this.options?.slotName ?? `breadcrumb-${ne()}`;
805
- }
806
- get mount() {
807
- return document.getElementById(this.mountId);
808
- }
809
- hostUpdated() {
810
- !this.initialized && this.options?.autoInitialize !== !1 && this.init();
811
- }
812
- hostDisconnected() {
813
- this.destroyMountPoints();
814
- }
815
- resetMountId() {
816
- return `${this.options?.mountPrefix ?? this.host.localName}-mount-point-${ne()}`;
817
- }
818
- createMountPoint() {
819
- const e = document.createElement("div");
820
- return e.id = this.mountId, e.classList.add(`${this.host.tagName.toLowerCase()}-mount`), e;
821
- }
822
- createSlot(e) {
823
- const t = document.createElement("slot");
824
- return t.slot = e, t.name = e, t;
825
- }
826
- appendTemplate(e, t = this.createMountPoint()) {
827
- return e.appendChild(t), t;
828
- }
829
- initMountPoints() {
830
- this.initShadowMountPoints();
831
- }
832
- destroyMountPoints() {
833
- for (const e of this.shadowHosts)
834
- for (const t of e.querySelectorAll(`[slot="${this.slotName}"][name="${this.slotName}"]`))
835
- t.remove();
836
- this.mount && this.mount.remove(), this.mountId = this.resetMountId();
837
- }
838
- initShadowMountPoints() {
839
- let e = this.host;
840
- for (this.shadowHosts = [this.host]; e = e.getRootNode().host; )
841
- this.shadowHosts.push(e);
842
- const { shadowHosts: t, slotName: r } = this, s = [...t], n = s.pop();
843
- if (!n.querySelector(`[slot="${r}"]`)) {
844
- const o = document.createElement("div");
845
- o.slot = r, n.appendChild(o);
846
- }
847
- const i = n.querySelector(`[slot="${r}"]`);
848
- this.appendTemplate(i), s.forEach((o) => this.appendTemplate(o, this.createSlot(r)));
849
- }
850
- init() {
851
- this.destroyMountPoints(), this.initMountPoints(), this.initialized = !0;
852
- }
853
- };
854
- function dt(e) {
855
- "@babel/helpers - typeof";
856
- return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? dt = function(t) {
857
- return typeof t;
858
- } : dt = function(t) {
859
- return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
860
- }, dt(e);
861
- }
862
- var Se = "https://js.stripe.com/v3", qr = /^https:\/\/js\.stripe\.com\/v3\/?(\?.*)?$/, ie = "loadStripe.setLoadParameters was called but an existing Stripe.js script already exists in the document; existing script parameters will be used", Br = function() {
863
- for (var t = document.querySelectorAll('script[src^="'.concat(Se, '"]')), r = 0; r < t.length; r++) {
864
- var s = t[r];
865
- if (qr.test(s.src))
866
- return s;
867
- }
868
- return null;
869
- }, zr = function(t) {
870
- var r = t && !t.advancedFraudSignals ? "?advancedFraudSignals=false" : "", s = document.createElement("script");
871
- s.src = "".concat(Se).concat(r);
872
- var n = document.head || document.body;
873
- if (!n)
874
- throw new Error("Expected document.body not to be null. Stripe.js requires a <body> element.");
875
- return n.appendChild(s), s;
876
- }, jr = function(t, r) {
877
- !t || !t._registerWrapper || t._registerWrapper({
878
- name: "stripe-js",
879
- version: "1.32.0",
880
- startTime: r
881
- });
882
- }, ot = null, Dr = function(t) {
883
- return ot !== null || (ot = new Promise(function(r, s) {
884
- if (typeof window > "u") {
885
- r(null);
886
- return;
887
- }
888
- if (window.Stripe && t && console.warn(ie), window.Stripe) {
889
- r(window.Stripe);
890
- return;
891
- }
892
- try {
893
- var n = Br();
894
- n && t ? console.warn(ie) : n || (n = zr(t)), n.addEventListener("load", function() {
895
- window.Stripe ? r(window.Stripe) : s(new Error("Stripe.js not available"));
896
- }), n.addEventListener("error", function() {
897
- s(new Error("Failed to load Stripe.js"));
898
- });
899
- } catch (i) {
900
- s(i);
901
- return;
902
- }
903
- })), ot;
904
- }, Hr = function(t, r, s) {
905
- if (t === null)
906
- return null;
907
- var n = t.apply(void 0, r);
908
- return jr(n, s), n;
909
- }, Fr = function(t) {
910
- var r = `invalid load parameters; expected object of shape
911
-
912
- {advancedFraudSignals: boolean}
913
-
914
- but received
915
-
916
- `.concat(JSON.stringify(t), `
917
- `);
918
- if (t === null || dt(t) !== "object")
919
- throw new Error(r);
920
- if (Object.keys(t).length === 1 && typeof t.advancedFraudSignals == "boolean")
921
- return t;
922
- throw new Error(r);
923
- }, _e, we = !1, $e = function() {
924
- for (var t = arguments.length, r = new Array(t), s = 0; s < t; s++)
925
- r[s] = arguments[s];
926
- we = !0;
927
- var n = Date.now();
928
- return Dr(_e).then(function(i) {
929
- return Hr(i, r, n);
930
- });
931
- };
932
- $e.setLoadParameters = function(e) {
933
- if (we)
934
- throw new Error("You cannot change load parameters after calling loadStripe");
935
- _e = Fr(e);
936
- };
937
- var Ce = class extends Error {
938
- constructor(e, t) {
939
- super(`<${e}>: ${t}`), this.originalMessage = t;
940
- }
941
- };
942
- function Ee(e) {
943
- return !!e && e instanceof Ce;
944
- }
945
- var Wr = {
946
- toAttribute: (e) => e ? Ee(e) ? e.originalMessage : e.message || "" : null
947
- }, h = class extends Z {
948
- constructor() {
949
- 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 Ur(this, {
950
- slotName: `${this.constructor.is}-slot`
951
- });
952
- }
953
- get stripeMountId() {
954
- return this.breadcrumb.mountId;
955
- }
956
- get stripeMount() {
957
- return this.breadcrumb.mount;
958
- }
959
- render() {
960
- const { error: e, showError: t } = this, { slotName: r } = this.breadcrumb, s = Ee(e) ? e.originalMessage : e?.message;
961
- return mr`
962
- <div id="stripe" part="stripe">
963
- <slot id="stripe-slot" name="${r}"></slot>
964
- </div>
965
-
966
- <output id="error"
967
- for="stripe"
968
- part="error"
969
- ?hidden="${!t}">
970
- ${$r(s)}
971
- </output>
972
- `;
973
- }
974
- updated(e) {
975
- super.updated?.(e), e.has("error") && this.errorChanged(), e.has("publishableKey") && this.init(), [...e.keys()].forEach((t) => this.representationChanged(t));
976
- }
977
- async disconnectedCallback() {
978
- super.disconnectedCallback(), await this.unmount?.();
979
- }
980
- reset() {
981
- this.element?.clear?.(), this.resetRepresentations(), p.set(this, { error: null });
982
- }
983
- blur() {
984
- this.element?.blur();
985
- }
986
- focus() {
987
- this.element?.focus();
988
- }
989
- createError(e) {
990
- return new Ce(this.constructor.is, e);
991
- }
992
- errorChanged() {
993
- this.resetRepresentations(), this.fireError(this.error);
994
- }
995
- fire(e, t, r) {
996
- this.dispatchEvent(new CustomEvent(e, { detail: t, ...r }));
997
- }
998
- fireError(e) {
999
- this.dispatchEvent(new ErrorEvent("error", { error: e }));
1000
- }
1001
- getCSSCustomPropertyValue(e) {
1002
- return this.precomputedStyle.getPropertyValue(e);
1003
- }
1004
- async handleResponse(e) {
1005
- const { error: t = null, paymentMethod: r = null, source: s = null, token: n = null } = { ...e };
1006
- if (p.set(this, { error: t, paymentMethod: r, source: s, token: n }), await this.updateComplete, t)
1007
- throw t;
1008
- return e;
1009
- }
1010
- initElement() {
1011
- "abstract";
1012
- }
1013
- async init() {
1014
- await this.unmount(), await this.initStripe(), await this.initElement(), this.initElementListeners(), this.breadcrumb.init(), this.mount();
1015
- }
1016
- initElementListeners() {
1017
- this.element && (this.element.on("ready", this.onReady), this.element.on("focus", this.onFocus), this.element.on("blur", this.onBlur));
1018
- }
1019
- async initStripe() {
1020
- const { publishableKey: e, stripeAccount: t, locale: r } = this;
1021
- if (!e)
1022
- p.set(this, { elements: null, element: null, stripe: null });
1023
- else
1024
- try {
1025
- const s = { stripeAccount: t, locale: r }, n = window.Stripe ? window.Stripe(e, s) : await $e(e, s), i = n?.elements();
1026
- p.set(this, { elements: i, error: null, stripe: n });
1027
- } catch (s) {
1028
- console.warn(s);
1029
- const n = this.createError("Stripe.js must be loaded first.");
1030
- p.set(this, { elements: null, error: n, stripe: null });
1031
- } finally {
1032
- await this.updateComplete;
1033
- }
1034
- }
1035
- mount() {
1036
- if (!this.breadcrumb.mount)
1037
- throw this.createError("Stripe Mount missing");
1038
- this.element?.mount(this.breadcrumb.mount);
1039
- }
1040
- async unmount() {
1041
- this.element?.unmount?.(), p.set(this, { element: null }), await this.updateComplete;
1042
- }
1043
- async onBlur() {
1044
- p.set(this, { focused: !1 }), await this.updateComplete;
1045
- }
1046
- async onFocus() {
1047
- p.set(this, { focused: !0 }), await this.updateComplete;
1048
- }
1049
- async onReady(e) {
1050
- p.set(this, { ready: !0 }), await this.updateComplete, this.fire("ready", e);
1051
- }
1052
- async postRepresentation() {
1053
- const e = (l) => p.set(this, { error: l }), t = (l) => this.fire("success", l), r = this.token || void 0, s = this.source || void 0, n = this.paymentMethod || void 0, i = JSON.stringify({ token: r, source: s, paymentMethod: n }), o = { "Content-Type": "application/json" };
1054
- return fetch(this.action, { body: i, headers: o, method: "POST" }).then(Tr).then(t).catch(e);
1055
- }
1056
- representationChanged(e) {
1057
- if (!Mr(e))
1058
- return;
1059
- const t = this[e];
1060
- t && (this.fire(`${ve(e)}`, t), this.action && this.postRepresentation());
1061
- }
1062
- resetRepresentations() {
1063
- p.set(this, {
1064
- paymentMethod: null,
1065
- token: null,
1066
- source: null
1067
- });
1068
- }
1069
- };
1070
- a([
1071
- c({ type: String })
1072
- ], h.prototype, "action", 2);
1073
- a([
1074
- c({ type: String, attribute: "client-secret" })
1075
- ], h.prototype, "clientSecret", 2);
1076
- a([
1077
- c({ type: String })
1078
- ], h.prototype, "generate", 2);
1079
- a([
1080
- P,
1081
- c({ type: String, attribute: "publishable-key", reflect: !0 })
1082
- ], h.prototype, "publishableKey", 2);
1083
- a([
1084
- c({ type: Boolean, attribute: "show-error", reflect: !0 })
1085
- ], h.prototype, "showError", 2);
1086
- a([
1087
- c({ type: String, attribute: "stripe-account" })
1088
- ], h.prototype, "stripeAccount", 2);
1089
- a([
1090
- c({ type: String, attribute: "locale" })
1091
- ], h.prototype, "locale", 2);
1092
- a([
1093
- p,
1094
- P,
1095
- c({ type: Object, attribute: "payment-method" })
1096
- ], h.prototype, "paymentMethod", 2);
1097
- a([
1098
- p,
1099
- P,
1100
- c({ type: Object })
1101
- ], h.prototype, "source", 2);
1102
- a([
1103
- p,
1104
- P,
1105
- c({ type: Object })
1106
- ], h.prototype, "token", 2);
1107
- a([
1108
- p,
1109
- c({ type: Object })
1110
- ], h.prototype, "element", 2);
1111
- a([
1112
- p,
1113
- c({ type: Object })
1114
- ], h.prototype, "elements", 2);
1115
- a([
1116
- p,
1117
- P,
1118
- c({ type: Object, reflect: !0, converter: Wr })
1119
- ], h.prototype, "error", 2);
1120
- a([
1121
- p,
1122
- P,
1123
- c({ type: Boolean, reflect: !0 })
1124
- ], h.prototype, "focused", 2);
1125
- a([
1126
- p,
1127
- P,
1128
- c({ type: Boolean, reflect: !0 })
1129
- ], h.prototype, "ready", 2);
1130
- a([
1131
- p,
1132
- c({ type: Object })
1133
- ], h.prototype, "stripe", 2);
1134
- a([
1135
- c()
1136
- ], h.prototype, "theme", 2);
1137
- a([
1138
- c({ attribute: "border-radius" })
1139
- ], h.prototype, "borderRadius", 2);
1140
- a([
1141
- c({ attribute: "color-background" })
1142
- ], h.prototype, "colorBackground", 2);
1143
- a([
1144
- c({ attribute: "color-danger" })
1145
- ], h.prototype, "colorDanger", 2);
1146
- a([
1147
- c({ attribute: "color-primary" })
1148
- ], h.prototype, "colorPrimary", 2);
1149
- a([
1150
- c({ attribute: "color-text" })
1151
- ], h.prototype, "colorText", 2);
1152
- a([
1153
- c({ attribute: "font-family" })
1154
- ], h.prototype, "fontFamily", 2);
1155
- a([
1156
- c({ attribute: "spacing-unit" })
1157
- ], h.prototype, "spacingUnit", 2);
1158
- a([
1159
- x
1160
- ], h.prototype, "handleResponse", 1);
1161
- a([
1162
- x
1163
- ], h.prototype, "onBlur", 1);
1164
- a([
1165
- x
1166
- ], h.prototype, "onFocus", 1);
1167
- a([
1168
- x
1169
- ], h.prototype, "onReady", 1);
1170
- var Gr = Tt`[hidden] {
1171
- display: none !important;
1172
- }
1173
-
1174
- :host:not([hidden]) {
1175
- display: block;
1176
- box-sizing: border-box;
1177
- }
1178
-
1179
- #error {
1180
- font-family: sans-serif;
1181
- font-size: 14px;
1182
- padding-left: 42px;
1183
- padding-bottom: 10px;
1184
- }
1185
- `, Pe = Gr, Kr = Tt`:host {
1186
- min-width: var(--stripe-elements-width, 300px);
1187
- min-height: var(--stripe-elements-height, 50px);
1188
- }
1189
-
1190
- #stripe {
1191
- box-sizing: border-box;
1192
- border-radius: var(--stripe-elements-border-radius, 4px);
1193
- border: var(--stripe-elements-border, 1px solid transparent);
1194
- box-shadow: var(--stripe-elements-box-shadow, 0 1px 3px 0 #e6ebf1);
1195
- transition: var(--stripe-elements-transition, box-shadow 150ms ease);
1196
- min-width: var(--stripe-elements-width, 300px);
1197
- padding: var(--stripe-elements-element-padding, 8px 12px);
1198
- background: var(--stripe-elements-element-background, white);
1199
- }
1200
-
1201
- :host([focused]) #stripe {
1202
- box-shadow: 0 1px 3px 0 #cfd7df;
1203
- }
1204
-
1205
- :host([error]) #stripe {
1206
- border-color: #fa755a;
1207
- }
1208
- `, Jr = Kr, oe = [
1209
- "color",
1210
- "fontFamily",
1211
- "fontSize",
1212
- "fontStyle",
1213
- "fontSmoothing",
1214
- "fontVariant",
1215
- "iconColor",
1216
- "lineHeight",
1217
- "letterSpacing",
1218
- "textDecoration",
1219
- "textShadow",
1220
- "textTransform"
1221
- ], Yr = [
1222
- ":hover",
1223
- ":focus",
1224
- "::placeholder",
1225
- "::selection",
1226
- ":-webkit-autofill",
1227
- ":disabled"
1228
- ], w = class extends h {
1229
- constructor() {
1230
- super(...arguments), this.hideIcon = !1, this.hidePostalCode = !1, this.iconStyle = "default", this.value = {}, this.brand = null, this.complete = !1, this.empty = !0, this.invalid = !1;
1231
- }
1232
- async createPaymentMethod(e = this.getPaymentMethodData()) {
1233
- return this.stripe.createPaymentMethod(e);
1234
- }
1235
- async createSource(e = this.sourceData) {
1236
- return this.stripe.createSource(this.element, e);
1237
- }
1238
- async createToken(e = this.tokenData) {
1239
- return this.stripe.createToken(this.element, e);
1240
- }
1241
- isPotentiallyValid() {
1242
- return !this.complete && !this.empty && !this.error || this.validate();
1243
- }
1244
- reset() {
1245
- super.reset(), this.element?.clear();
1246
- }
1247
- async submit() {
1248
- switch (this.generate) {
1249
- case "payment-method":
1250
- return this.createPaymentMethod();
1251
- case "source":
1252
- return this.createSource();
1253
- case "token":
1254
- return this.createToken();
1255
- default: {
1256
- const e = this.createError(`cannot generate ${this.generate}`);
1257
- throw p.set(this, { error: e }), await this.updateComplete, e;
1258
- }
1259
- }
1260
- }
1261
- validate() {
1262
- const { complete: e, empty: t, error: r } = this, s = !r && e && !t;
1263
- return t && !r && p.set(this, { error: this.createError("Your card number is empty.") }), s;
1264
- }
1265
- updateStyle() {
1266
- this.element?.update({
1267
- style: this.getStripeElementsStyles()
1268
- });
1269
- }
1270
- getPaymentMethodData() {
1271
- const e = "card", { billingDetails: t, paymentMethodData: r } = this;
1272
- return {
1273
- billing_details: t,
1274
- ...r,
1275
- type: e,
1276
- card: this.element
1277
- };
1278
- }
1279
- getStripeElementsStyles() {
1280
- const e = (n) => this.getCSSCustomPropertyValue(n) || void 0, t = ["base", "complete", "empty", "invalid"], r = (n) => (i, o) => {
1281
- if (n.includes("-"))
1282
- return i;
1283
- const u = o.split(":").pop();
1284
- return {
1285
- ...i,
1286
- [o]: oe.reduce(s(`${n}-${u}`), {})
1287
- };
1288
- }, s = (n) => (i, o) => {
1289
- const u = `--stripe-elements-${n}-${ve(o)}`;
1290
- return {
1291
- ...i,
1292
- [o]: e(u),
1293
- ...Yr.reduce(r(n), {})
1294
- };
1295
- };
1296
- return t.reduce((n, i) => ({
1297
- ...n,
1298
- [i]: oe.reduce(s(i), {})
1299
- }), {});
1300
- }
1301
- async initElement() {
1302
- if (!this.stripe)
1303
- return;
1304
- const { hidePostalCode: e, hideIcon: t, iconStyle: r, value: s } = this, n = this.getStripeElementsStyles();
1305
- await this.updateComplete;
1306
- const i = this.createElement({
1307
- hideIcon: t,
1308
- hidePostalCode: e,
1309
- iconStyle: r,
1310
- style: n,
1311
- value: s
1312
- });
1313
- i.on("change", this.onChange), p.set(this, { element: i }), await this.updateComplete;
1314
- }
1315
- createElement(e) {
1316
- return this.elements.create("card", e);
1317
- }
1318
- async onChange(e) {
1319
- const { brand: t, complete: r, empty: s, error: n = null } = e, i = !(n || !s && !r);
1320
- p.set(this, { brand: t, complete: r, empty: s, error: n, invalid: i }), await this.updateComplete, this.fire("change", e);
1321
- }
1322
- };
1323
- w.is = "stripe-elements";
1324
- w.elementType = "card";
1325
- w.styles = [
1326
- Pe,
1327
- Jr
1328
- ];
1329
- a([
1330
- c({ type: Boolean, attribute: "hide-icon" })
1331
- ], w.prototype, "hideIcon", 2);
1332
- a([
1333
- c({ type: Boolean, attribute: "hide-postal-code" })
1334
- ], w.prototype, "hidePostalCode", 2);
1335
- a([
1336
- c({ type: String, attribute: "icon-style" })
1337
- ], w.prototype, "iconStyle", 2);
1338
- a([
1339
- c({ type: Object })
1340
- ], w.prototype, "value", 2);
1341
- a([
1342
- P,
1343
- p,
1344
- c({ type: String })
1345
- ], w.prototype, "brand", 2);
1346
- a([
1347
- P,
1348
- p,
1349
- c({ type: Boolean, reflect: !0 })
1350
- ], w.prototype, "complete", 2);
1351
- a([
1352
- P,
1353
- p,
1354
- c({ type: Boolean, reflect: !0 })
1355
- ], w.prototype, "empty", 2);
1356
- a([
1357
- P,
1358
- p,
1359
- c({ type: Boolean, reflect: !0 })
1360
- ], w.prototype, "invalid", 2);
1361
- a([
1362
- Ot
1363
- ], w.prototype, "createPaymentMethod", 1);
1364
- a([
1365
- Ot
1366
- ], w.prototype, "createSource", 1);
1367
- a([
1368
- Ot
1369
- ], w.prototype, "createToken", 1);
1370
- a([
1371
- x
1372
- ], w.prototype, "onChange", 1);
1373
- w = a([
1374
- ue("stripe-elements")
1375
- ], w);
1376
- var Zr = Tt`#stripe {
1377
- box-sizing: border-box;
1378
- min-width: var(--stripe-payment-request-element-min-width, 300px);
1379
- padding: var(--stripe-payment-request-element-padding, 8px 12px);
1380
- background: var(--stripe-payment-request-element-background, white);
1381
- }
1382
- `, Xr = Zr;
1383
- function Qr(e) {
1384
- return e.tagName.toLowerCase() === "stripe-display-item";
1385
- }
1386
- function ts({ dataset: { amount: e, label: t, pending: r } }) {
1387
- return {
1388
- label: t,
1389
- amount: parseInt(e),
1390
- ...r !== void 0 && { pending: r === "true" }
1391
- };
1392
- }
1393
- function es({ dataset: { amount: e, detail: t, ...r } }) {
1394
- return {
1395
- amount: parseInt(e),
1396
- detail: t,
1397
- ...r
1398
- };
1399
- }
1400
- function rs(e) {
1401
- return Qr(e) ? ts(e) : es(e);
1402
- }
1403
- var pt, ht, f = class extends h {
1404
- constructor() {
1405
- super(...arguments), this.canMakePayment = null, re(this, pt, void 0), this.paymentIntent = null, this.paymentRequest = null, this.pending = !1, re(this, ht, void 0), this.buttonType = "default", this.buttonTheme = "dark", this.complete = async (e, t) => {
1406
- const { error: r = null } = { ...e }, s = r || t ? "fail" : "success";
1407
- return e.complete(s), this.fire(s, e), t ? { error: t } : e;
1408
- };
1409
- }
1410
- get displayItems() {
1411
- const e = ee(this, pt);
1412
- return Array.isArray(e) ? e : this.parseDatasets("stripe-display-item");
1413
- }
1414
- set displayItems(e) {
1415
- const t = this.displayItems;
1416
- se(this, pt, e), this.requestUpdate("displayItems", t);
1417
- }
1418
- get shippingOptions() {
1419
- const e = ee(this, ht);
1420
- return Array.isArray(e) ? e : this.parseDatasets("stripe-shipping-option");
1421
- }
1422
- set shippingOptions(e) {
1423
- const t = this.shippingOptions;
1424
- se(this, ht, e), this.requestUpdate("shippingOptions", t);
1425
- }
1426
- reset() {
1427
- super.reset(), p.set(this, { paymentIntent: null });
1428
- }
1429
- updated(e) {
1430
- super.updated(e), e.has("generate") && this.initPaymentRequestListeners(), e.has("amount") && this.updatePaymentRequest();
1431
- }
1432
- getStripePaymentRequestOptions() {
1433
- const {
1434
- country: e,
1435
- currency: t,
1436
- displayItems: r,
1437
- shippingOptions: s,
1438
- requestShipping: n,
1439
- requestPayerEmail: i,
1440
- requestPayerName: o,
1441
- requestPayerPhone: u,
1442
- label: l = "",
1443
- amount: d = 0
1444
- } = this;
1445
- return {
1446
- country: e,
1447
- currency: t,
1448
- displayItems: r,
1449
- requestPayerEmail: i,
1450
- requestPayerName: o,
1451
- requestPayerPhone: u,
1452
- requestShipping: n,
1453
- shippingOptions: s,
1454
- total: { label: l, amount: d }
1455
- };
1456
- }
1457
- async initElement() {
1458
- await this.initPaymentRequest(), await this.initPaymentRequestListeners(), await this.initPaymentRequestButton();
1459
- }
1460
- async initPaymentRequest() {
1461
- if (!this.stripe)
1462
- return;
1463
- const e = this.getStripePaymentRequestOptions(), t = this.stripe.paymentRequest(e), r = await t.canMakePayment();
1464
- p.set(this, { paymentRequest: t, canMakePayment: r }), await this.updateComplete, this.canMakePayment || this.fire("unsupported");
1465
- }
1466
- async initPaymentRequestButton() {
1467
- const { buttonTheme: e, buttonType: t, canMakePayment: r } = this;
1468
- if (!r || !this.elements)
1469
- return;
1470
- const i = { paymentRequestButton: { height: this.getCSSCustomPropertyValue("--stripe-payment-request-button-height") || "40px", theme: e, type: t } }, o = this.elements.create("paymentRequestButton", {
1471
- paymentRequest: this.paymentRequest,
1472
- style: i
1473
- });
1474
- p.set(this, { element: o }), await this.updateComplete;
1475
- }
1476
- async initPaymentRequestListeners() {
1477
- if (this.canMakePayment)
1478
- switch (this.paymentRequest.on("click", this.updatePaymentRequest), this.paymentRequest.on("cancel", this.onCancel), this.paymentRequest.on("shippingaddresschange", this.onShippingaddresschange), this.paymentRequest.on("shippingoptionchange", this.onShippingoptionchange), this.generate) {
1479
- case "payment-method":
1480
- this.paymentRequest.on("paymentmethod", this.onPaymentResponse);
1481
- break;
1482
- case "source":
1483
- this.paymentRequest.on("source", this.onPaymentResponse);
1484
- break;
1485
- case "token":
1486
- this.paymentRequest.on("token", this.onPaymentResponse);
1487
- break;
1488
- }
1489
- }
1490
- async updatePaymentRequest() {
1491
- if (!this.paymentRequest)
1492
- return;
1493
- const { currency: e, total: t, displayItems: r, shippingOptions: s } = this.getStripePaymentRequestOptions();
1494
- this.paymentRequest.update({ currency: e, total: t, displayItems: r, shippingOptions: s });
1495
- }
1496
- onCancel() {
1497
- this.fire(
1498
- "cancel"
1499
- /* cancel */
1500
- );
1501
- }
1502
- async onPaymentResponse(e) {
1503
- const {
1504
- error: t = null,
1505
- paymentMethod: r = null,
1506
- source: s = null,
1507
- token: n = null
1508
- } = { ...e };
1509
- p.set(this, { error: t, paymentMethod: r, source: s, token: n }), this.clientSecret && !t ? this.confirmPaymentIntent(e) : this.complete(e);
1510
- }
1511
- async confirmPaymentIntent(e) {
1512
- const t = { payment_method: this.paymentMethod.id }, r = await this.confirmCardPayment(t, { handleActions: !1 }).then(({ error: i }) => this.complete(e, i)).then(te).then(() => this.confirmCardPayment()).then(te).catch((i) => ({ error: i })), { error: s = null } = r, n = r.paymentIntent ?? null;
1513
- p.set(this, { error: s, paymentIntent: n }), await this.updateComplete;
1514
- }
1515
- async confirmCardPayment(e, t) {
1516
- return this.stripe.confirmCardPayment(this.clientSecret, e, t);
1517
- }
1518
- onShippingaddresschange(e) {
1519
- this.fire("shippingaddresschange", e);
1520
- }
1521
- onShippingoptionchange(e) {
1522
- this.fire("shippingoptionchange", e);
1523
- }
1524
- parseDatasets(e) {
1525
- const t = [...this.querySelectorAll(e)];
1526
- return t.length ? t.map(rs) : [];
1527
- }
1528
- };
1529
- pt = /* @__PURE__ */ new WeakMap();
1530
- ht = /* @__PURE__ */ new WeakMap();
1531
- f.is = "stripe-payment-request";
1532
- f.styles = [
1533
- Pe,
1534
- Xr
1535
- ];
1536
- a([
1537
- c({ type: Number, reflect: !0 })
1538
- ], f.prototype, "amount", 2);
1539
- a([
1540
- P,
1541
- p,
1542
- c({ type: Boolean, attribute: "can-make-payment", reflect: !0 })
1543
- ], f.prototype, "canMakePayment", 2);
1544
- a([
1545
- c({ type: String })
1546
- ], f.prototype, "country", 2);
1547
- a([
1548
- c({ type: String })
1549
- ], f.prototype, "currency", 2);
1550
- a([
1551
- c({ type: Array })
1552
- ], f.prototype, "displayItems", 1);
1553
- a([
1554
- c({ type: String, reflect: !0 })
1555
- ], f.prototype, "label", 2);
1556
- a([
1557
- P,
1558
- p,
1559
- c({ type: Object, attribute: "payment-intent" })
1560
- ], f.prototype, "paymentIntent", 2);
1561
- a([
1562
- p,
1563
- c({ type: Object, attribute: "payment-request" })
1564
- ], f.prototype, "paymentRequest", 2);
1565
- a([
1566
- c({ type: Boolean, reflect: !0 })
1567
- ], f.prototype, "pending", 2);
1568
- a([
1569
- c({ type: Boolean, attribute: "request-payer-email" })
1570
- ], f.prototype, "requestPayerEmail", 2);
1571
- a([
1572
- c({ type: Boolean, attribute: "request-payer-name" })
1573
- ], f.prototype, "requestPayerName", 2);
1574
- a([
1575
- c({ type: Boolean, attribute: "request-payer-phone" })
1576
- ], f.prototype, "requestPayerPhone", 2);
1577
- a([
1578
- c({ type: Boolean, attribute: "request-shipping" })
1579
- ], f.prototype, "requestShipping", 2);
1580
- a([
1581
- c({ type: Array })
1582
- ], f.prototype, "shippingOptions", 1);
1583
- a([
1584
- c({ type: String, attribute: "button-type" })
1585
- ], f.prototype, "buttonType", 2);
1586
- a([
1587
- c({ type: String, attribute: "button-theme" })
1588
- ], f.prototype, "buttonTheme", 2);
1589
- a([
1590
- x
1591
- ], f.prototype, "onCancel", 1);
1592
- a([
1593
- x
1594
- ], f.prototype, "onPaymentResponse", 1);
1595
- a([
1596
- x
1597
- ], f.prototype, "confirmPaymentIntent", 1);
1598
- a([
1599
- x
1600
- ], f.prototype, "confirmCardPayment", 1);
1601
- a([
1602
- x
1603
- ], f.prototype, "onShippingaddresschange", 1);
1604
- a([
1605
- x
1606
- ], f.prototype, "onShippingoptionchange", 1);
1607
- f = a([
1608
- ue("stripe-payment-request")
1609
- ], f);
1610
- var Ae = "basil", ss = function(t) {
1611
- return t === 3 ? "v3" : t;
1612
- }, ke = "https://js.stripe.com", ns = "".concat(ke, "/").concat(Ae, "/stripe.js"), is = /^https:\/\/js\.stripe\.com\/v3\/?(\?.*)?$/, os = /^https:\/\/js\.stripe\.com\/(v3|[a-z]+)\/stripe\.js(\?.*)?$/;
1613
- var as = function(t) {
1614
- return is.test(t) || os.test(t);
1615
- }, ls = function() {
1616
- for (var t = document.querySelectorAll('script[src^="'.concat(ke, '"]')), r = 0; r < t.length; r++) {
1617
- var s = t[r];
1618
- if (as(s.src))
1619
- return s;
1620
- }
1621
- return null;
1622
- }, ae = function(t) {
1623
- var r = "", s = document.createElement("script");
1624
- s.src = "".concat(ns).concat(r);
1625
- var n = document.head || document.body;
1626
- if (!n)
1627
- throw new Error("Expected document.body not to be null. Stripe.js requires a <body> element.");
1628
- return n.appendChild(s), s;
1629
- }, cs = function(t, r) {
1630
- !t || !t._registerWrapper || t._registerWrapper({
1631
- name: "stripe-js",
1632
- version: "7.8.0",
1633
- startTime: r
1634
- });
1635
- }, K = null, at = null, lt = null, us = function(t) {
1636
- return function(r) {
1637
- t(new Error("Failed to load Stripe.js", {
1638
- cause: r
1639
- }));
1640
- };
1641
- }, ds = function(t, r) {
1642
- return function() {
1643
- window.Stripe ? t(window.Stripe) : r(new Error("Stripe.js not available"));
1644
- };
1645
- }, ps = function(t) {
1646
- return K !== null ? K : (K = new Promise(function(r, s) {
1647
- if (typeof window > "u" || typeof document > "u") {
1648
- r(null);
1649
- return;
1650
- }
1651
- if (window.Stripe) {
1652
- r(window.Stripe);
1653
- return;
1654
- }
1655
- try {
1656
- var n = ls();
1657
- if (!(n && t)) {
1658
- if (!n)
1659
- n = ae(t);
1660
- else if (n && lt !== null && at !== null) {
1661
- var i;
1662
- n.removeEventListener("load", lt), n.removeEventListener("error", at), (i = n.parentNode) === null || i === void 0 || i.removeChild(n), n = ae(t);
1663
- }
1664
- }
1665
- lt = ds(r, s), at = us(s), n.addEventListener("load", lt), n.addEventListener("error", at);
1666
- } catch (o) {
1667
- s(o);
1668
- return;
1669
- }
1670
- }), K.catch(function(r) {
1671
- return K = null, Promise.reject(r);
1672
- }));
1673
- }, hs = function(t, r, s) {
1674
- if (t === null)
1675
- return null;
1676
- var n = r[0], i = n.match(/^pk_test/), o = ss(t.version), u = Ae;
1677
- i && o !== u && console.warn("Stripe.js@".concat(o, " was loaded on the page, but @stripe/stripe-js@").concat("7.8.0", " expected Stripe.js@").concat(u, ". This may result in unexpected behavior. For more information, see https://docs.stripe.com/sdks/stripejs-versioning"));
1678
- var l = t.apply(void 0, r);
1679
- return cs(l, s), l;
1680
- }, J, xe = !1, Re = function() {
1681
- return J || (J = ps(null).catch(function(t) {
1682
- return J = null, Promise.reject(t);
1683
- }), J);
1684
- };
1685
- Promise.resolve().then(function() {
1686
- return Re();
1687
- }).catch(function(e) {
1688
- xe || console.warn(e);
1689
- });
1690
- var ms = function() {
1691
- for (var t = arguments.length, r = new Array(t), s = 0; s < t; s++)
1692
- r[s] = arguments[s];
1693
- xe = !0;
1694
- var n = Date.now();
1695
- return Re().then(function(i) {
1696
- return hs(i, r, n);
1697
- });
1698
- };
1699
- const ys = { class: "w-100 d-flex justify-space-between items-center" }, fs = { class: "text-caption font-weight-bold text-center my-0 text-red rounded" }, vs = { class: "pr-3" }, gs = ["locale", "publishable-key"], bs = ["innerHTML"], Ss = { class: "ml-1 text-caption" }, _s = { class: "mr-1" }, Me = /* @__PURE__ */ qe({
1700
- __name: "CreditCardStripeForm",
1701
- props: {
1702
- amount: {},
1703
- currency: {},
1704
- disabled: { type: Boolean },
1705
- loading: { type: Boolean },
1706
- token: {},
1707
- withAction: { type: Boolean },
1708
- withTerms: { type: Boolean }
1709
- },
1710
- emits: ["change", "error", "payment:success"],
1711
- setup(e, { expose: t, emit: r }) {
1712
- const s = e, { locale: n, t: i } = Be(), o = st(null), u = st(!1), l = st(null), d = st(null), y = r, { config: v } = ze();
1713
- function S(m) {
1714
- switch (m) {
1715
- case H.Production:
1716
- return "pk_live_x99EPirYIsCyUsRvPAfyhnRp";
1717
- case H.Sandbox:
1718
- case H.Staging:
1719
- case H.CiCd:
1720
- case H.Local:
1721
- default:
1722
- return "pk_test_wXnn2RrefTiOHB0zzxqJr0s8";
1723
- }
1724
- }
1725
- const $ = ce(
1726
- () => S(v.value.apiEnvironment)
1727
- );
1728
- function O(m) {
1729
- o.value = "", y("change", !!m.detail.complete);
1730
- }
1731
- function k(m) {
1732
- o.value = `${m?.error?.message} - ${i("CreditCardStripeForm.error")}`, y("error", o.value);
1733
- }
1734
- async function vt(m) {
1735
- try {
1736
- if (!window.Stripe || s.disabled)
1737
- return;
1738
- const q = await window.Stripe($.value, {
1739
- locale: Fe(n.value)
1740
- }).confirmCardPayment(s.token, {
1741
- // eslint-disable-next-line camelcase
1742
- payment_method: m.detail.id
1743
- });
1744
- q.error ? k(q.error) : y(We.PaymentSuccess);
1745
- } catch (C) {
1746
- k(C);
1747
- }
1748
- }
1749
- function rt() {
1750
- try {
1751
- if (!d.value || s.withTerms && !u.value)
1752
- return;
1753
- d.value.submit();
1754
- } catch (m) {
1755
- k(m);
1756
- }
1757
- }
1758
- return je(async () => {
1759
- l.value = await ms($.value);
1760
- }), t({
1761
- pay: rt
1762
- }), (m, C) => (E(), A(qt, {
1763
- disabled: m.disabled,
1764
- elevation: "0",
1765
- border: "",
1766
- style: De({
1767
- borderColor: m.disabled ? "" : "rgb(var(--v-theme-primary))"
1768
- })
1769
- }, {
1770
- default: g(() => [
1771
- b(sr, {
1772
- class: "text-white",
1773
- color: "primary",
1774
- density: "compact",
1775
- elevation: "0"
1776
- }, {
1777
- default: g(() => [
1778
- M("div", ys, [
1779
- M("h4", null, [
1780
- b(bt, {
1781
- color: "white",
1782
- start: "",
1783
- size: "small"
1784
- }, {
1785
- default: g(() => C[2] || (C[2] = [
1786
- nt(" fas fa-credit-card ", -1)
1787
- ])),
1788
- _: 1,
1789
- __: [2]
1790
- }),
1791
- nt(" " + T(R(i)("CreditCardStripeForm.title")) + ": ", 1),
1792
- m.loading ? (E(), A(Ze, {
1793
- key: 1,
1794
- class: "ml-2",
1795
- color: "primary",
1796
- indeterminate: "",
1797
- size: "20",
1798
- width: "1"
1799
- })) : (E(), A(Bt, {
1800
- key: 0,
1801
- amount: m.amount,
1802
- class: "font-weight-bold",
1803
- currency: m.currency
1804
- }, null, 8, ["amount", "currency"]))
1805
- ]),
1806
- b(bt, {
1807
- color: "white",
1808
- end: "",
1809
- size: "small"
1810
- }, {
1811
- default: g(() => C[3] || (C[3] = [
1812
- nt(" fas fa-lock ", -1)
1813
- ])),
1814
- _: 1,
1815
- __: [3]
1816
- })
1817
- ])
1818
- ]),
1819
- _: 1
1820
- }),
1821
- b(er, null, {
1822
- default: g(() => [
1823
- b(F, null, {
1824
- default: g(() => [
1825
- b(L, null, {
1826
- default: g(() => [
1827
- o.value ? (E(), A(Xe, {
1828
- key: 0,
1829
- color: "red",
1830
- density: "compact",
1831
- variant: "outlined"
1832
- }, {
1833
- default: g(() => [
1834
- M("p", fs, T(R(i)("CreditCardStripeForm.paymentDeclined")) + ": " + T(o.value), 1)
1835
- ]),
1836
- _: 1
1837
- })) : it("", !0)
1838
- ]),
1839
- _: 1
1840
- })
1841
- ]),
1842
- _: 1
1843
- }),
1844
- m.loading ? it("", !0) : (E(), A(F, {
1845
- key: 0,
1846
- class: "d-none d-sm-flex",
1847
- "no-gutters": ""
1848
- }, {
1849
- default: g(() => [
1850
- b(L, { cols: "8" }, {
1851
- default: g(() => [
1852
- M("small", null, T(R(i)("CreditCardStripeForm.cardNumber")), 1)
1853
- ]),
1854
- _: 1
1855
- }),
1856
- b(L, {
1857
- class: "text-right pr-6",
1858
- cols: "4"
1859
- }, {
1860
- default: g(() => [
1861
- M("small", vs, T(R(i)("CreditCardStripeForm.expDate")), 1),
1862
- M("small", null, T(R(i)("CreditCardStripeForm.cvc")), 1)
1863
- ]),
1864
- _: 1
1865
- })
1866
- ]),
1867
- _: 1
1868
- })),
1869
- b(F, { "no-gutters": "" }, {
1870
- default: g(() => [
1871
- b(L, null, {
1872
- default: g(() => [
1873
- b(qt, {
1874
- elevation: "0",
1875
- border: ""
1876
- }, {
1877
- default: g(() => [
1878
- !m.loading && l.value ? (E(), gt("stripe-elements", {
1879
- key: 0,
1880
- ref_key: "payment",
1881
- ref: d,
1882
- generate: "payment-method",
1883
- "hide-postal-code": "",
1884
- locale: R(n),
1885
- "publishable-key": $.value,
1886
- onChange: O,
1887
- onError: k,
1888
- onPaymentMethod: vt
1889
- }, null, 40, gs)) : (E(), A(W, {
1890
- key: 1,
1891
- class: "mx-auto",
1892
- height: "36.8px",
1893
- type: "image",
1894
- width: "100%"
1895
- }))
1896
- ]),
1897
- _: 1
1898
- })
1899
- ]),
1900
- _: 1
1901
- })
1902
- ]),
1903
- _: 1
1904
- }),
1905
- m.withTerms ? (E(), A(F, {
1906
- key: 1,
1907
- class: "mt-2"
1908
- }, {
1909
- default: g(() => [
1910
- b(L, null, {
1911
- default: g(() => [
1912
- m.loading ? (E(), A(W, {
1913
- key: 1,
1914
- class: "mt-3",
1915
- height: "25px",
1916
- type: "image",
1917
- width: "50%"
1918
- })) : (E(), A(ir, {
1919
- key: 0,
1920
- ref: "testing",
1921
- modelValue: u.value,
1922
- "onUpdate:modelValue": C[1] || (C[1] = (q) => u.value = q)
1923
- }, {
1924
- label: g(() => [
1925
- M("span", {
1926
- onClick: C[0] || (C[0] = He(() => {
1927
- }, ["stop"])),
1928
- innerHTML: R(i)("CreditCardStripeForm.termsAndConditions", {
1929
- url: R(i)("CreditCardStripeForm.termsURL")
1930
- })
1931
- }, null, 8, bs)
1932
- ]),
1933
- _: 1
1934
- }, 8, ["modelValue"]))
1935
- ]),
1936
- _: 1
1937
- })
1938
- ]),
1939
- _: 1
1940
- })) : it("", !0),
1941
- b(F, null, {
1942
- default: g(() => [
1943
- b(L, { class: "v-col-12 v-col-sm-8 v-col-md-9" }, {
1944
- default: g(() => [
1945
- m.loading ? (E(), gt(Vt, { key: 0 }, [
1946
- b(W, {
1947
- height: "10px",
1948
- type: "image",
1949
- width: "160px"
1950
- }),
1951
- b(W, {
1952
- height: "38px",
1953
- type: "image",
1954
- width: "240px"
1955
- })
1956
- ], 64)) : (E(), gt(Vt, { key: 1 }, [
1957
- M("small", Ss, T(R(i)("CreditCardStripeForm.acceptedPaymentMethods")), 1),
1958
- b(Qe, {
1959
- class: "mb-n1",
1960
- height: "45",
1961
- src: "https://revolugo.s3.eu-west-3.amazonaws.com/payment-methods.png",
1962
- width: "240"
1963
- })
1964
- ], 64))
1965
- ]),
1966
- _: 1
1967
- }),
1968
- m.withAction ? (E(), A(L, {
1969
- key: 0,
1970
- class: "v-col-12 v-col-sm-4 v-col-md-3 text-right align-self-end"
1971
- }, {
1972
- default: g(() => [
1973
- m.loading ? (E(), A(W, {
1974
- key: 0,
1975
- class: "w-100 align-self-end",
1976
- height: "36px",
1977
- type: "image",
1978
- width: "170px"
1979
- })) : (E(), A(tr, {
1980
- key: 1,
1981
- class: "w-100 w-sm-auto align-self-end",
1982
- color: "primary",
1983
- variant: "flat",
1984
- disabled: m.disabled || m.withTerms && !u.value,
1985
- onClick: rt
1986
- }, {
1987
- default: g(() => [
1988
- b(bt, { start: "" }, {
1989
- default: g(() => C[4] || (C[4] = [
1990
- nt(" fas fa-lock ", -1)
1991
- ])),
1992
- _: 1,
1993
- __: [4]
1994
- }),
1995
- M("span", _s, T(R(i)("CreditCardStripeForm.payNow")), 1),
1996
- b(Bt, {
1997
- amount: m.amount,
1998
- class: "font-weight-bold",
1999
- currency: m.currency
2000
- }, null, 8, ["amount", "currency"])
2001
- ]),
2002
- _: 1
2003
- }, 8, ["disabled"]))
2004
- ]),
2005
- _: 1
2006
- })) : it("", !0)
2007
- ]),
2008
- _: 1
2009
- })
2010
- ]),
2011
- _: 1
2012
- })
2013
- ]),
2014
- _: 1
2015
- }, 8, ["disabled", "style"]));
2016
- }
2017
- });
2018
- function le(e) {
2019
- const t = e;
2020
- t.__i18n = t.__i18n || [], t.__i18n.push({
2021
- locale: "",
2022
- resource: {
2023
- "en-US": {
2024
- CreditCardStripeForm: {
2025
- acceptedPaymentMethods: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Payment Methods Accepted:" } },
2026
- cardNumber: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Card number" } },
2027
- error: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Please, use another payment method" } },
2028
- or: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "or" } },
2029
- cvc: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "CVC" } },
2030
- expDate: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Exp. Date" } },
2031
- pay: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Total price to pay" } },
2032
- payByCard: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Amount to pay by card" } },
2033
- paymentDeclined: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Payment declined" } },
2034
- title: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Total to Pay with your credit card" } },
2035
- payNow: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Pay now" } },
2036
- termsURL: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "https://revolugo.s3.amazonaws.com/legal/cgv_revolugo.pdf" } },
2037
- termsAndConditions: { t: 0, b: { t: 2, i: [{ t: 3, v: 'By continuing with your reservation you agree to the terms and conditions: <b><a href="' }, { t: 4, k: "url" }, { t: 3, v: '" target="_blank">Click here to read it</a></b>' }] } }
2038
- }
2039
- },
2040
- "fr-FR": {
2041
- CreditCardStripeForm: {
2042
- acceptedPaymentMethods: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Moyens de Paiement Acceptés:" } },
2043
- cardNumber: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Numéro de carte bancaire" } },
2044
- error: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Veuillez utiliser un autre moyen de paiement." } },
2045
- or: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "ou" } },
2046
- cvc: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "CVC" } },
2047
- expDate: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Date d'exp." } },
2048
- pay: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Montant total à régler" } },
2049
- payByCard: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Montant à régler par carte bancaire" } },
2050
- paymentDeclined: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Paiement refusé" } },
2051
- title: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Montant total à payer par carte bancaire" } },
2052
- payNow: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Payer maintenant" } },
2053
- termsURL: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "https://revolugo.s3.amazonaws.com/legal/cgv_revolugo_fr.pdf" } },
2054
- termsAndConditions: { t: 0, b: { t: 2, i: [{ t: 3, v: 'En poursuivant votre réservation, vous acceptez les conditions générales: <b><a href="' }, { t: 4, k: "url" }, { t: 3, v: '" target="_blank">Cliquez ici pour les consulter</a></b>' }] } }
2055
- }
2056
- },
2057
- "de-DE": {
2058
- CreditCardStripeForm: {
2059
- acceptedPaymentMethods: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Zahlungsmethoden:" } },
2060
- cardNumber: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Kartennummer" } },
2061
- error: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Bitte verwenden Sie eine andere Zahlungsmethode" } },
2062
- or: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "oder" } },
2063
- cvc: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "CVC" } },
2064
- expDate: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Ablaufdatum" } },
2065
- pay: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Zu zahlender Gesamtpreis" } },
2066
- payByCard: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Betrag, der mit Karte zu zahlen ist" } },
2067
- paymentDeclined: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Zahlung abgelehnt" } },
2068
- title: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Gesamtbetrag zur Zahlung mit Ihrer Kreditkarte" } },
2069
- payNow: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Jetzt bezahlen" } },
2070
- termsURL: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "https://revolugo.s3.amazonaws.com/legal/cgv_revolugo.pdf" } },
2071
- termsAndConditions: { t: 0, b: { t: 2, i: [{ t: 3, v: 'Indem Sie mit Ihrer Reservierung fortfahren, stimmen Sie den Allgemeinen Geschäftsbedingungen zu: <b><a href="' }, { t: 4, k: "url" }, { t: 3, v: '" target="_blank">Klicken Sie hier, um sie zu lesen</a></b>' }] } }
2072
- }
2073
- },
2074
- "es-ES": {
2075
- CreditCardStripeForm: {
2076
- acceptedPaymentMethods: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Métodos de Pago:" } },
2077
- cardNumber: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Número de tarjeta" } },
2078
- error: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Por favor, utilice otro método de pago" } },
2079
- or: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "o" } },
2080
- cvc: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "CVC" } },
2081
- expDate: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Fecha de vencimiento" } },
2082
- pay: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Precio total a pagar" } },
2083
- payByCard: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Importe a pagar con tarjeta" } },
2084
- paymentDeclined: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Pago rechazado" } },
2085
- title: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Total a pagar con su tarjeta de crédito" } },
2086
- payNow: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Pagar ahora" } },
2087
- termsURL: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "https://revolugo.s3.amazonaws.com/legal/cgv_revolugo.pdf" } },
2088
- termsAndConditions: { t: 0, b: { t: 2, i: [{ t: 3, v: 'Al continuar con su reserva, acepta los términos y condiciones: <b><a href="' }, { t: 4, k: "url" }, { t: 3, v: '" target="_blank">Haga clic aquí para leerlos</a></b>' }] } }
2089
- }
2090
- },
2091
- "it-IT": {
2092
- CreditCardStripeForm: {
2093
- acceptedPaymentMethods: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Metodi di Pagamento:" } },
2094
- cardNumber: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Numero di carta" } },
2095
- error: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Si prega di utilizzare un altro metodo di pagamento" } },
2096
- or: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "o" } },
2097
- cvc: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "CVC" } },
2098
- expDate: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Data di scadenza" } },
2099
- pay: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Prezzo totale da pagare" } },
2100
- payByCard: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Importo da pagare con carta" } },
2101
- paymentDeclined: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Pagamento rifiutato" } },
2102
- title: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Totale da pagare con la tua carta di credito" } },
2103
- payNow: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Paga adesso" } },
2104
- termsURL: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "https://revolugo.s3.amazonaws.com/legal/cgv_revolugo.pdf" } },
2105
- termsAndConditions: { t: 0, b: { t: 2, i: [{ t: 3, v: 'Continuando con la prenotazione, accetti i termini e le condizioni: <b><a href="' }, { t: 4, k: "url" }, { t: 3, v: '" target="_blank">Clicca qui per leggerli</a></b>' }] } }
2106
- }
2107
- },
2108
- "nl-NL": {
2109
- CreditCardStripeForm: {
2110
- acceptedPaymentMethods: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Betaalmethoden:" } },
2111
- cardNumber: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Kaartnummer" } },
2112
- error: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Gebruik alstublieft een andere betaalmethode" } },
2113
- or: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "of" } },
2114
- cvc: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "CVC" } },
2115
- expDate: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Vervaldatum" } },
2116
- pay: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Totaal te betalen prijs" } },
2117
- payByCard: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Bedrag te betalen met kaart" } },
2118
- paymentDeclined: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Betaling geweigerd" } },
2119
- title: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Totaal te betalen met uw creditcard" } },
2120
- payNow: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Betaal nu" } },
2121
- termsURL: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "https://revolugo.s3.amazonaws.com/legal/cgv_revolugo.pdf" } },
2122
- termsAndConditions: { t: 0, b: { t: 2, i: [{ t: 3, v: 'Door verder te gaan met uw reservering, gaat u akkoord met de algemene voorwaarden: <b><a href="' }, { t: 4, k: "url" }, { t: 3, v: '" target="_blank">Klik hier om ze te lezen</a></b>' }] } }
2123
- }
2124
- },
2125
- "pt-PT": {
2126
- CreditCardStripeForm: {
2127
- acceptedPaymentMethods: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Métodos de Pagamento:" } },
2128
- cardNumber: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Número do cartão" } },
2129
- error: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Por favor, utilize outro método de pagamento" } },
2130
- or: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "ou" } },
2131
- cvc: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "CVC" } },
2132
- expDate: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Data de validade" } },
2133
- pay: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Preço total a pagar" } },
2134
- payByCard: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Montante a pagar com cartão" } },
2135
- paymentDeclined: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Pagamento recusado" } },
2136
- title: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Total a pagar com o seu cartão de crédito" } },
2137
- payNow: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Pagar agora" } },
2138
- termsURL: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "https://revolugo.s3.amazonaws.com/legal/cgv_revolugo.pdf" } },
2139
- termsAndConditions: { t: 0, b: { t: 2, i: [{ t: 3, v: 'Ao continuar com a sua reserva, concorda com os termos e condições: <b><a href="' }, { t: 4, k: "url" }, { t: 3, v: '" target="_blank">Clique aqui para os ler</a></b>' }] } }
2140
- }
2141
- }
2142
- }
2143
- });
2144
- }
2145
- typeof le == "function" && le(Me);
2146
- const As = /* @__PURE__ */ rr(Me, [["__scopeId", "data-v-aeca475a"]]);
2147
- Te("css/revolugo.creditcardstripeform.zWRVQ06X.css");
2148
- export {
2149
- As as C,
2150
- ir as V
2151
- };
2152
- //# sourceMappingURL=revolugo.creditcardstripeform.CMuII5tD.min.js.map