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

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 (36) hide show
  1. package/dist/css/{revolugo.creditcardstripeform.BY2oOm4u.css → revolugo.creditcardstripeform.DN5YJSMj.css} +1 -1
  2. package/dist/{revolugo.banktransferdetails.CPJwGV-N.min.js → revolugo.banktransferdetails.DtsoZWmb.min.js} +6 -6
  3. package/dist/{revolugo.bookingdetailssidebar.C_iI2NBe.min.js → revolugo.bookingdetailssidebar.DcnXVHZL.min.js} +6 -6
  4. package/dist/{revolugo.bookingmanager.Xd-B0luz.min.js → revolugo.bookingmanager.PMVq8P6e.min.js} +6 -6
  5. package/dist/{revolugo.cancellationpoliciesbadge.DmSB0UnX.min.js → revolugo.cancellationpoliciesbadge.CEQNsOzC.min.js} +6 -6
  6. package/dist/{revolugo.cancellationpoliciesbadge.props.CYnq5upS.min.js → revolugo.cancellationpoliciesbadge.props.CCQO-m9e.min.js} +7 -7
  7. package/dist/{revolugo.cancellationpolicieslist.DioBarUK.min.js → revolugo.cancellationpolicieslist.B9ZxqnJJ.min.js} +6 -6
  8. package/dist/{revolugo.creditcardstripeform.BmwetGGI.min.js → revolugo.creditcardstripeform.CnA7wqlq.min.js} +4 -4
  9. package/dist/revolugo.creditcardstripeform.Do3JmCdS.min.js +2150 -0
  10. package/dist/{revolugo.currencypickerbtn.B2NUAGe4.min.js → revolugo.currencypickerbtn.D3U_TOrA.min.js} +6 -6
  11. package/dist/{revolugo.dialog-attach.qO9BzSOb.min.js → revolugo.dialog-attach.CDdzJku2.min.js} +2 -2
  12. package/dist/{revolugo.fastbookingflow.BDUBKCel.min.js → revolugo.fastbookingflow.BvxRFird.min.js} +6 -6
  13. package/dist/{revolugo.fullbookingflow.Bemz-oVM.min.js → revolugo.fullbookingflow.BYV0lW7v.min.js} +6 -6
  14. package/dist/{revolugo.hoteldescriptionview.CS2H6HbD.min.js → revolugo.hoteldescriptionview.jys3E-0a.min.js} +6 -6
  15. package/dist/{revolugo.hotelofferlist.BP3oCOUP.min.js → revolugo.hotelofferlist.BtrEQp9t.min.js} +6 -6
  16. package/dist/{revolugo.hoteloffersearchmenu.CcPob-4Z.min.js → revolugo.hoteloffersearchmenu.v_D_EE65.min.js} +7 -7
  17. package/dist/{revolugo.hoteloffersmap.BJUv8xTk.min.js → revolugo.hoteloffersmap.C29TeJlK.min.js} +6 -6
  18. package/dist/{revolugo.hoteloffersview.DhXU_lwg.min.js → revolugo.hoteloffersview.BwhW0cSS.min.js} +6 -6
  19. package/dist/{revolugo.hotelroomofferlist.DUS8gV6f.min.js → revolugo.hotelroomofferlist.C532rzJM.min.js} +6 -6
  20. package/dist/{revolugo.hotelroomoffersbookingflow.DMtVoalu.min.js → revolugo.hotelroomoffersbookingflow.BXwwId00.min.js} +6 -6
  21. package/dist/{revolugo.hotelroomoffersearchmenu.C2fglRLf.min.js → revolugo.hotelroomoffersearchmenu.I7OwqSFf.min.js} +6 -6
  22. package/dist/{revolugo.hotelroomoffersview.B9qXsauS.min.js → revolugo.hotelroomoffersview.LBOx3t0b.min.js} +6 -6
  23. package/dist/{revolugo.index.DRsS1sHK.min.js → revolugo.index.Tp8hv7gW.min.js} +2 -2
  24. package/dist/{revolugo.index.wc.CcGotrVW.min.js → revolugo.index.wc.BOb57MIf.min.js} +26 -26
  25. package/dist/{revolugo.langpickerbtn.DdVRJwh3.min.js → revolugo.langpickerbtn.DaH4yMez.min.js} +6 -6
  26. package/dist/revolugo.min.js +1 -1
  27. package/dist/{revolugo.prebookform.pTWIeCdk.min.js → revolugo.prebookform.CuQZ79Nj.min.js} +6 -6
  28. package/dist/{revolugo.preferencesmenu.CY0rMZv2.min.js → revolugo.preferencesmenu.CWhhieY5.min.js} +5 -5
  29. package/dist/{revolugo.preferencesmenu.BBzBRdxW.min.js → revolugo.preferencesmenu.zNTHES6p.min.js} +4 -4
  30. package/dist/{revolugo.roominglisteditor.DgMuQXWj.min.js → revolugo.roominglisteditor.BVJXKlaI.min.js} +6 -6
  31. package/dist/{revolugo.storybooktoolbar.Tv_r94ZY.min.js → revolugo.storybooktoolbar.2_8qjZGU.min.js} +5 -5
  32. package/dist/{revolugo.termsandconditions.459mSIxa.min.js → revolugo.termsandconditions.BL5_v7or.min.js} +6 -6
  33. package/dist/{revolugo.vtoolbar.CuWB3YiP.min.js → revolugo.vtoolbar.COh_jy6f.min.js} +3 -3
  34. package/dist/{revolugo.webcomponentwrapper.DtyZC6dL.min.js → revolugo.webcomponentwrapper.BzKGB_Lu.min.js} +2 -2
  35. package/package.json +1 -1
  36. package/dist/revolugo.creditcardstripeform.g8NCT3QI.min.js +0 -622
@@ -0,0 +1,2150 @@
1
+ import { U as Ne, V as Oe, W as Le, bc as Ie, b as ce, aB as Ve, a as b, m as Lt, $ as Ue, d as qe, h as Be, i as st, aR as ze, x as De, c as k, w as g, ak as je, bd as H, z as M, p as nt, y as T, u as R, f as vt, j as gt, k as He, F as It, be as Fe, P as We, o as E } from "./revolugo.index.wc.BOb57MIf.min.js";
2
+ import { aB as Ge, w as Ke, aC as Vt, be as Ut, aF as Je, bf as Ye, V as qt, k as bt, L as Bt, M as Ze, d as F, e as L, ba as Xe, Q as W, af as Qe, j as tr, b as er, _ as rr } from "./revolugo.webcomponentwrapper.BzKGB_Lu.min.js";
3
+ import { V as sr } from "./revolugo.vtoolbar.COh_jy6f.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 = Ie(), d = ce(() => e.id || `checkbox-${l}`);
45
+ return Ke(() => {
46
+ const [m, v] = Ve(r), S = Vt.filterProps(e), $ = Ut.filterProps(e);
47
+ return b(Vt, Lt({
48
+ class: ["v-checkbox", e.class]
49
+ }, m, 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: A,
60
+ messagesId: ft,
61
+ isDisabled: rt,
62
+ isReadonly: y,
63
+ isValid: C
64
+ } = O;
65
+ return b(Ut, Lt($, {
66
+ id: A.value,
67
+ "aria-describedby": ft.value,
68
+ disabled: rt.value,
69
+ readonly: y.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 lt = window, Rt = lt.ShadowRoot && (lt.ShadyCSS === void 0 || lt.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, Mt = Symbol(), Dt = /* @__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 = Dt.get(r)), t === void 0 && ((this.o = t = new CSSStyleSheet()).replaceSync(this.cssText), s && Dt.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 = lt.litNonce;
163
+ n !== void 0 && s.setAttribute("nonce", n), s.textContent = r.cssText, e.appendChild(s);
164
+ });
165
+ }, jt = 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 ht = window, Ht = ht.trustedTypes, ur = Ht ? Ht.emptyScript : "", Ft = ht.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(jt(n));
253
+ } else t !== void 0 && r.push(jt(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 = ht.reactiveElementVersions) !== null && _t !== void 0 ? _t : ht.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 mt = window, z = mt.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, I = 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), D = Symbol.for("lit-noChange"), _ = Symbol.for("lit-nothing"), Zt = /* @__PURE__ */ new WeakMap(), V = 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, m, v = -1, S = 0;
399
+ for (; S < l.length && (o.lastIndex = S, m = o.exec(l), m !== null); ) S = o.lastIndex, o === G ? m[1] === "!--" ? o = Gt : m[1] !== void 0 ? o = Kt : m[2] !== void 0 ? (ye.test(m[2]) && (n = RegExp("</" + m[2], "g")), o = I) : m[3] !== void 0 && (o = I) : o === I ? m[0] === ">" ? (o = n ?? G, v = -1) : m[1] === void 0 ? v = -2 : (v = o.lastIndex - m[2].length, d = m[1], o = m[3] === void 0 ? I : m[3] === '"' ? Yt : Jt) : o === Yt || o === Jt ? o = I : o === Gt || o === Kt ? o = G : (o = I, n = void 0);
400
+ const $ = o === I && 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, m] = yr(t, r);
411
+ if (this.el = tt.createElement(d, s), V.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 = V.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 $ = m[o++];
421
+ if (v.push(S), $ !== void 0) {
422
+ const O = n.getAttribute($.toLowerCase() + xt).split(N), A = /([.?@])?(.*)/.exec($);
423
+ l.push({ type: 1, index: i, name: A[2], strings: O, ctor: A[1] === "." ? vr : A[1] === "?" ? br : A[1] === "@" ? Sr : yt });
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()), V.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 j(e, t, r = e, s) {
450
+ var n, i, o, u;
451
+ if (t === D) 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 = j(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
+ V.currentNode = i;
470
+ let o = V.nextNode(), u = 0, l = 0, d = n[0];
471
+ for (; d !== void 0; ) {
472
+ if (u === d.index) {
473
+ let m;
474
+ d.type === 2 ? m = new et(o, o.nextSibling, this, t) : d.type === 1 ? m = new d.ctor(o, d.name, d.strings, this, t) : d.type === 6 && (m = new _r(o, this, t)), this._$AV.push(m), d = n[++l];
475
+ }
476
+ u !== d?.index && (o = V.nextNode(), u++);
477
+ }
478
+ return V.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 = j(this, t, r), Q(t) ? t === _ || t == null || t === "" ? (this._$AH !== _ && this._$AR(), this._$AH = _) : t !== this._$AH && t !== D && 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 yt {
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 = j(this, t, r, 0), o = !Q(t) || t !== this._$AH && t !== D, 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 = j(this, u[s + l], r, l), d === D && (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 yt {
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 yt {
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 yt {
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 = j(this, t, r, 0)) !== null && s !== void 0 ? s : _) === D) 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
+ j(this, t);
615
+ }
616
+ }
617
+ const Xt = mt.litHtmlPolyfillSupport;
618
+ Xt?.(tt, et), (($t = mt.litHtmlVersions) !== null && $t !== void 0 ? $t : mt.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 D;
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
+ }, ct = class {
750
+ constructor(e) {
751
+ if (this.host = e, this.cache = /* @__PURE__ */ new Map(), ct.instances.has(e))
752
+ return ct.instances.get(e);
753
+ e.addController(this), ct.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 = ct;
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 Ir = Object.defineProperty, Vr = Object.getOwnPropertyDescriptor, a = (e, t, r, s) => {
788
+ for (var n = s > 1 ? void 0 : s ? Vr(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 && Ir(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 ut(e) {
855
+ "@babel/helpers - typeof";
856
+ return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? ut = function(t) {
857
+ return typeof t;
858
+ } : ut = function(t) {
859
+ return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
860
+ }, ut(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
+ }, Dr = function(t, r) {
877
+ !t || !t._registerWrapper || t._registerWrapper({
878
+ name: "stripe-js",
879
+ version: "1.32.0",
880
+ startTime: r
881
+ });
882
+ }, it = null, jr = function(t) {
883
+ return it !== null || (it = 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
+ })), it;
904
+ }, Hr = function(t, r, s) {
905
+ if (t === null)
906
+ return null;
907
+ var n = t.apply(void 0, r);
908
+ return Dr(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 || ut(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 jr(_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 dt, pt, f = class extends h {
1404
+ constructor() {
1405
+ super(...arguments), this.canMakePayment = null, re(this, dt, void 0), this.paymentIntent = null, this.paymentRequest = null, this.pending = !1, re(this, pt, 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, dt);
1412
+ return Array.isArray(e) ? e : this.parseDatasets("stripe-display-item");
1413
+ }
1414
+ set displayItems(e) {
1415
+ const t = this.displayItems;
1416
+ se(this, dt, e), this.requestUpdate("displayItems", t);
1417
+ }
1418
+ get shippingOptions() {
1419
+ const e = ee(this, pt);
1420
+ return Array.isArray(e) ? e : this.parseDatasets("stripe-shipping-option");
1421
+ }
1422
+ set shippingOptions(e) {
1423
+ const t = this.shippingOptions;
1424
+ se(this, pt, 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
+ dt = /* @__PURE__ */ new WeakMap();
1530
+ pt = /* @__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, ot = null, at = 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 && at !== null && ot !== null) {
1661
+ var i;
1662
+ n.removeEventListener("load", at), n.removeEventListener("error", ot), (i = n.parentNode) === null || i === void 0 || i.removeChild(n), n = ae(t);
1663
+ }
1664
+ }
1665
+ at = ds(r, s), ot = us(s), n.addEventListener("load", at), n.addEventListener("error", ot);
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 = ["disable", "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
+ stripeToken: {},
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), m = r, { config: v } = ze();
1713
+ function S(y) {
1714
+ switch (y) {
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(y) {
1729
+ o.value = "", m("change", !!y.detail.complete);
1730
+ }
1731
+ function A(y) {
1732
+ o.value = `${y?.error?.message} - ${i("CreditCardStripeForm.error")}`, m("error", o.value);
1733
+ }
1734
+ async function ft(y) {
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.stripeToken, {
1741
+ // eslint-disable-next-line camelcase
1742
+ payment_method: y.detail.id
1743
+ });
1744
+ q.error ? A(q.error) : m(We.PaymentSuccess);
1745
+ } catch (C) {
1746
+ A(C);
1747
+ }
1748
+ }
1749
+ function rt() {
1750
+ try {
1751
+ return !d.value || s.withTerms && !u.value ? null : d.value.submit();
1752
+ } catch (y) {
1753
+ return A(y), null;
1754
+ }
1755
+ }
1756
+ return De(async () => {
1757
+ l.value = await ms($.value);
1758
+ }), t({
1759
+ pay: rt
1760
+ }), (y, C) => (E(), k(qt, {
1761
+ disabled: y.disabled,
1762
+ elevation: "0",
1763
+ border: "",
1764
+ style: je({
1765
+ borderColor: y.disabled ? "" : "rgb(var(--v-theme-primary))"
1766
+ })
1767
+ }, {
1768
+ default: g(() => [
1769
+ b(sr, {
1770
+ class: "text-white",
1771
+ color: "primary",
1772
+ density: "compact",
1773
+ elevation: "0"
1774
+ }, {
1775
+ default: g(() => [
1776
+ M("div", ys, [
1777
+ M("h4", null, [
1778
+ b(bt, {
1779
+ color: "white",
1780
+ start: "",
1781
+ size: "small"
1782
+ }, {
1783
+ default: g(() => C[2] || (C[2] = [
1784
+ nt(" fas fa-credit-card ", -1)
1785
+ ])),
1786
+ _: 1,
1787
+ __: [2]
1788
+ }),
1789
+ nt(" " + T(R(i)("CreditCardStripeForm.title")) + ": ", 1),
1790
+ y.loading ? (E(), k(Ze, {
1791
+ key: 1,
1792
+ class: "ml-2",
1793
+ color: "primary",
1794
+ indeterminate: "",
1795
+ size: "20",
1796
+ width: "1"
1797
+ })) : (E(), k(Bt, {
1798
+ key: 0,
1799
+ amount: y.amount,
1800
+ class: "font-weight-bold",
1801
+ currency: y.currency
1802
+ }, null, 8, ["amount", "currency"]))
1803
+ ]),
1804
+ b(bt, {
1805
+ color: "white",
1806
+ end: "",
1807
+ size: "small"
1808
+ }, {
1809
+ default: g(() => C[3] || (C[3] = [
1810
+ nt(" fas fa-lock ", -1)
1811
+ ])),
1812
+ _: 1,
1813
+ __: [3]
1814
+ })
1815
+ ])
1816
+ ]),
1817
+ _: 1
1818
+ }),
1819
+ b(er, null, {
1820
+ default: g(() => [
1821
+ b(F, null, {
1822
+ default: g(() => [
1823
+ b(L, null, {
1824
+ default: g(() => [
1825
+ o.value ? (E(), k(Xe, {
1826
+ key: 0,
1827
+ color: "red",
1828
+ density: "compact",
1829
+ variant: "outlined"
1830
+ }, {
1831
+ default: g(() => [
1832
+ M("p", fs, T(R(i)("CreditCardStripeForm.paymentDeclined")) + ": " + T(o.value), 1)
1833
+ ]),
1834
+ _: 1
1835
+ })) : vt("", !0)
1836
+ ]),
1837
+ _: 1
1838
+ })
1839
+ ]),
1840
+ _: 1
1841
+ }),
1842
+ b(F, {
1843
+ class: "d-none d-sm-flex",
1844
+ "no-gutters": ""
1845
+ }, {
1846
+ default: g(() => [
1847
+ b(L, { cols: "8" }, {
1848
+ default: g(() => [
1849
+ M("small", null, T(R(i)("CreditCardStripeForm.cardNumber")), 1)
1850
+ ]),
1851
+ _: 1
1852
+ }),
1853
+ b(L, {
1854
+ class: "text-right pr-6",
1855
+ cols: "4"
1856
+ }, {
1857
+ default: g(() => [
1858
+ M("small", vs, T(R(i)("CreditCardStripeForm.expDate")), 1),
1859
+ M("small", null, T(R(i)("CreditCardStripeForm.cvc")), 1)
1860
+ ]),
1861
+ _: 1
1862
+ })
1863
+ ]),
1864
+ _: 1
1865
+ }),
1866
+ b(F, { "no-gutters": "" }, {
1867
+ default: g(() => [
1868
+ b(L, null, {
1869
+ default: g(() => [
1870
+ b(qt, {
1871
+ elevation: "0",
1872
+ border: ""
1873
+ }, {
1874
+ default: g(() => [
1875
+ l.value ? (E(), gt("stripe-elements", {
1876
+ key: 0,
1877
+ disable: y.loading,
1878
+ ref_key: "payment",
1879
+ ref: d,
1880
+ generate: "payment-method",
1881
+ "hide-postal-code": "",
1882
+ locale: R(n),
1883
+ "publishable-key": $.value,
1884
+ onChange: O,
1885
+ onError: A,
1886
+ onPaymentMethod: ft
1887
+ }, null, 40, gs)) : (E(), k(W, {
1888
+ key: 1,
1889
+ class: "mx-auto",
1890
+ height: "36.8px",
1891
+ type: "image",
1892
+ width: "100%"
1893
+ }))
1894
+ ]),
1895
+ _: 1
1896
+ })
1897
+ ]),
1898
+ _: 1
1899
+ })
1900
+ ]),
1901
+ _: 1
1902
+ }),
1903
+ y.withTerms ? (E(), k(F, {
1904
+ key: 0,
1905
+ class: "mt-2"
1906
+ }, {
1907
+ default: g(() => [
1908
+ b(L, null, {
1909
+ default: g(() => [
1910
+ y.loading ? (E(), k(W, {
1911
+ key: 1,
1912
+ class: "mt-3",
1913
+ height: "25px",
1914
+ type: "image",
1915
+ width: "50%"
1916
+ })) : (E(), k(ir, {
1917
+ key: 0,
1918
+ ref: "testing",
1919
+ modelValue: u.value,
1920
+ "onUpdate:modelValue": C[1] || (C[1] = (q) => u.value = q)
1921
+ }, {
1922
+ label: g(() => [
1923
+ M("span", {
1924
+ onClick: C[0] || (C[0] = He(() => {
1925
+ }, ["stop"])),
1926
+ innerHTML: R(i)("CreditCardStripeForm.termsAndConditions", {
1927
+ url: R(i)("CreditCardStripeForm.termsURL")
1928
+ })
1929
+ }, null, 8, bs)
1930
+ ]),
1931
+ _: 1
1932
+ }, 8, ["modelValue"]))
1933
+ ]),
1934
+ _: 1
1935
+ })
1936
+ ]),
1937
+ _: 1
1938
+ })) : vt("", !0),
1939
+ b(F, null, {
1940
+ default: g(() => [
1941
+ b(L, { class: "v-col-12 v-col-sm-8 v-col-md-9" }, {
1942
+ default: g(() => [
1943
+ y.loading ? (E(), gt(It, { key: 0 }, [
1944
+ b(W, {
1945
+ height: "10px",
1946
+ type: "image",
1947
+ width: "160px"
1948
+ }),
1949
+ b(W, {
1950
+ height: "38px",
1951
+ type: "image",
1952
+ width: "240px"
1953
+ })
1954
+ ], 64)) : (E(), gt(It, { key: 1 }, [
1955
+ M("small", Ss, T(R(i)("CreditCardStripeForm.acceptedPaymentMethods")), 1),
1956
+ b(Qe, {
1957
+ class: "mb-n1",
1958
+ height: "45",
1959
+ src: "https://revolugo.s3.eu-west-3.amazonaws.com/payment-methods.png",
1960
+ width: "240"
1961
+ })
1962
+ ], 64))
1963
+ ]),
1964
+ _: 1
1965
+ }),
1966
+ y.withAction ? (E(), k(L, {
1967
+ key: 0,
1968
+ class: "v-col-12 v-col-sm-4 v-col-md-3 text-right align-self-end"
1969
+ }, {
1970
+ default: g(() => [
1971
+ y.loading ? (E(), k(W, {
1972
+ key: 0,
1973
+ class: "w-100 align-self-end",
1974
+ height: "36px",
1975
+ type: "image",
1976
+ width: "170px"
1977
+ })) : (E(), k(tr, {
1978
+ key: 1,
1979
+ class: "w-100 w-sm-auto align-self-end",
1980
+ color: "primary",
1981
+ variant: "flat",
1982
+ disabled: y.disabled || y.withTerms && !u.value,
1983
+ onClick: rt
1984
+ }, {
1985
+ default: g(() => [
1986
+ b(bt, { start: "" }, {
1987
+ default: g(() => C[4] || (C[4] = [
1988
+ nt(" fas fa-lock ", -1)
1989
+ ])),
1990
+ _: 1,
1991
+ __: [4]
1992
+ }),
1993
+ M("span", _s, T(R(i)("CreditCardStripeForm.payNow")), 1),
1994
+ b(Bt, {
1995
+ amount: y.amount,
1996
+ class: "font-weight-bold",
1997
+ currency: y.currency
1998
+ }, null, 8, ["amount", "currency"])
1999
+ ]),
2000
+ _: 1
2001
+ }, 8, ["disabled"]))
2002
+ ]),
2003
+ _: 1
2004
+ })) : vt("", !0)
2005
+ ]),
2006
+ _: 1
2007
+ })
2008
+ ]),
2009
+ _: 1
2010
+ })
2011
+ ]),
2012
+ _: 1
2013
+ }, 8, ["disabled", "style"]));
2014
+ }
2015
+ });
2016
+ function le(e) {
2017
+ const t = e;
2018
+ t.__i18n = t.__i18n || [], t.__i18n.push({
2019
+ locale: "",
2020
+ resource: {
2021
+ "en-US": {
2022
+ CreditCardStripeForm: {
2023
+ acceptedPaymentMethods: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Payment Methods Accepted:" } },
2024
+ cardNumber: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Card number" } },
2025
+ error: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Please, use another payment method" } },
2026
+ or: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "or" } },
2027
+ cvc: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "CVC" } },
2028
+ expDate: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Exp. Date" } },
2029
+ pay: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Total price to pay" } },
2030
+ payByCard: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Amount to pay by card" } },
2031
+ paymentDeclined: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Payment declined" } },
2032
+ title: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Total to pay with your credit card" } },
2033
+ payNow: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Pay now" } },
2034
+ termsURL: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "https://revolugo.s3.amazonaws.com/legal/cgv_revolugo.pdf" } },
2035
+ 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>' }] } }
2036
+ }
2037
+ },
2038
+ "fr-FR": {
2039
+ CreditCardStripeForm: {
2040
+ acceptedPaymentMethods: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Moyens de Paiement Acceptés:" } },
2041
+ cardNumber: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Numéro de carte bancaire" } },
2042
+ error: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Veuillez utiliser un autre moyen de paiement." } },
2043
+ or: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "ou" } },
2044
+ cvc: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "CVC" } },
2045
+ expDate: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Date d'exp." } },
2046
+ pay: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Montant total à régler" } },
2047
+ payByCard: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Montant à régler par carte bancaire" } },
2048
+ paymentDeclined: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Paiement refusé" } },
2049
+ title: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Montant total à payer par carte bancaire" } },
2050
+ payNow: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Payer maintenant" } },
2051
+ termsURL: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "https://revolugo.s3.amazonaws.com/legal/cgv_revolugo_fr.pdf" } },
2052
+ 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>' }] } }
2053
+ }
2054
+ },
2055
+ "de-DE": {
2056
+ CreditCardStripeForm: {
2057
+ acceptedPaymentMethods: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Zahlungsmethoden:" } },
2058
+ cardNumber: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Kartennummer" } },
2059
+ error: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Bitte verwenden Sie eine andere Zahlungsmethode" } },
2060
+ or: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "oder" } },
2061
+ cvc: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "CVC" } },
2062
+ expDate: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Ablaufdatum" } },
2063
+ pay: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Zu zahlender Gesamtpreis" } },
2064
+ payByCard: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Betrag, der mit Karte zu zahlen ist" } },
2065
+ paymentDeclined: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Zahlung abgelehnt" } },
2066
+ title: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Gesamtbetrag zur Zahlung mit Ihrer Kreditkarte" } },
2067
+ payNow: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Jetzt bezahlen" } },
2068
+ termsURL: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "https://revolugo.s3.amazonaws.com/legal/cgv_revolugo.pdf" } },
2069
+ 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>' }] } }
2070
+ }
2071
+ },
2072
+ "es-ES": {
2073
+ CreditCardStripeForm: {
2074
+ acceptedPaymentMethods: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Métodos de Pago:" } },
2075
+ cardNumber: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Número de tarjeta" } },
2076
+ error: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Por favor, utilice otro método de pago" } },
2077
+ or: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "o" } },
2078
+ cvc: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "CVC" } },
2079
+ expDate: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Fecha de vencimiento" } },
2080
+ pay: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Precio total a pagar" } },
2081
+ payByCard: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Importe a pagar con tarjeta" } },
2082
+ paymentDeclined: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Pago rechazado" } },
2083
+ title: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Total a pagar con su tarjeta de crédito" } },
2084
+ payNow: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Pagar ahora" } },
2085
+ termsURL: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "https://revolugo.s3.amazonaws.com/legal/cgv_revolugo.pdf" } },
2086
+ 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>' }] } }
2087
+ }
2088
+ },
2089
+ "it-IT": {
2090
+ CreditCardStripeForm: {
2091
+ acceptedPaymentMethods: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Metodi di Pagamento:" } },
2092
+ cardNumber: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Numero di carta" } },
2093
+ error: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Si prega di utilizzare un altro metodo di pagamento" } },
2094
+ or: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "o" } },
2095
+ cvc: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "CVC" } },
2096
+ expDate: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Data di scadenza" } },
2097
+ pay: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Prezzo totale da pagare" } },
2098
+ payByCard: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Importo da pagare con carta" } },
2099
+ paymentDeclined: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Pagamento rifiutato" } },
2100
+ title: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Totale da pagare con la tua carta di credito" } },
2101
+ payNow: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Paga adesso" } },
2102
+ termsURL: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "https://revolugo.s3.amazonaws.com/legal/cgv_revolugo.pdf" } },
2103
+ 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>' }] } }
2104
+ }
2105
+ },
2106
+ "nl-NL": {
2107
+ CreditCardStripeForm: {
2108
+ acceptedPaymentMethods: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Betaalmethoden:" } },
2109
+ cardNumber: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Kaartnummer" } },
2110
+ error: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Gebruik alstublieft een andere betaalmethode" } },
2111
+ or: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "of" } },
2112
+ cvc: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "CVC" } },
2113
+ expDate: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Vervaldatum" } },
2114
+ pay: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Totaal te betalen prijs" } },
2115
+ payByCard: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Bedrag te betalen met kaart" } },
2116
+ paymentDeclined: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Betaling geweigerd" } },
2117
+ title: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Totaal te betalen met uw creditcard" } },
2118
+ payNow: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Betaal nu" } },
2119
+ termsURL: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "https://revolugo.s3.amazonaws.com/legal/cgv_revolugo.pdf" } },
2120
+ 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>' }] } }
2121
+ }
2122
+ },
2123
+ "pt-PT": {
2124
+ CreditCardStripeForm: {
2125
+ acceptedPaymentMethods: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Métodos de Pagamento:" } },
2126
+ cardNumber: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Número do cartão" } },
2127
+ error: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Por favor, utilize outro método de pagamento" } },
2128
+ or: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "ou" } },
2129
+ cvc: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "CVC" } },
2130
+ expDate: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Data de validade" } },
2131
+ pay: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Preço total a pagar" } },
2132
+ payByCard: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Montante a pagar com cartão" } },
2133
+ paymentDeclined: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Pagamento recusado" } },
2134
+ title: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Total a pagar com o seu cartão de crédito" } },
2135
+ payNow: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Pagar agora" } },
2136
+ termsURL: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "https://revolugo.s3.amazonaws.com/legal/cgv_revolugo.pdf" } },
2137
+ 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>' }] } }
2138
+ }
2139
+ }
2140
+ }
2141
+ });
2142
+ }
2143
+ typeof le == "function" && le(Me);
2144
+ const As = /* @__PURE__ */ rr(Me, [["__scopeId", "data-v-345de37d"]]);
2145
+ Te("css/revolugo.creditcardstripeform.DN5YJSMj.css");
2146
+ export {
2147
+ As as C,
2148
+ ir as V
2149
+ };
2150
+ //# sourceMappingURL=revolugo.creditcardstripeform.Do3JmCdS.min.js.map