@revolugo/elements 7.11.2 → 7.12.0-rc.1

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 (58) hide show
  1. package/dist/index.es.min.js +1 -1
  2. package/dist/index.es.min.js.map +1 -1
  3. package/dist/index.min.js +1 -1
  4. package/dist/index.min.js.map +1 -1
  5. package/dist/revolugo.min.js +65 -66
  6. package/package.json +5 -5
  7. package/dist/css/fonts.css +0 -1
  8. package/dist/css/revolugo.bookingpaymentform.CekI3oIR.css +0 -1
  9. package/dist/css/revolugo.creditcardstripeform.CmxpInfL.css +0 -1
  10. package/dist/css/revolugo.index.5WWmkTtd.css +0 -1
  11. package/dist/css/revolugo.preferencesmenu.DwotHb97.css +0 -1
  12. package/dist/css/revolugo.revolugoelements.D3jgSljg.css +0 -1
  13. package/dist/css/revolugo.storybooktoolbar.d_cxquq9.css +0 -1
  14. package/dist/css/revolugo.ui.sAxjrsi6.css +0 -1
  15. package/dist/css/revolugo.vtoolbar.BS4p23lZ.css +0 -1
  16. package/dist/css/revolugo.webcomponentwrapper.LxbCIx-k.css +0 -1
  17. package/dist/revolugo.banktransferdetails.ql5QYmUR.min.js +0 -24
  18. package/dist/revolugo.bookingdetailssidebar.CVi0BqUW.min.js +0 -25
  19. package/dist/revolugo.bookingmanager.DP-s7JZu.min.js +0 -24
  20. package/dist/revolugo.bookingpaymentform.BJCfZ_Kk.min.js +0 -5158
  21. package/dist/revolugo.cancellationpoliciesbadge.LvXxw6Uw.min.js +0 -24
  22. package/dist/revolugo.cancellationpolicieslist.Dac8qxMA.min.js +0 -24
  23. package/dist/revolugo.creditcardstripeform.Ba6BWtYz.min.js +0 -2787
  24. package/dist/revolugo.creditcardstripeform.DCLuK09J.min.js +0 -25
  25. package/dist/revolugo.creditcardstripeform.props.C4lAZ1a1.min.js +0 -35
  26. package/dist/revolugo.currencypickerbtn.D5at0qzh.min.js +0 -25
  27. package/dist/revolugo.dist.CLV0MHMA.min.js +0 -58
  28. package/dist/revolugo.fastbookingflow.BBcEUXA0.min.js +0 -34
  29. package/dist/revolugo.framework.k0uaz58D.min.js +0 -775
  30. package/dist/revolugo.fullbookingflow.CbcxEJ_p.min.js +0 -24
  31. package/dist/revolugo.hoteldescriptionview.BhOkhZrl.min.js +0 -24
  32. package/dist/revolugo.hotelofferlist.DwP_q7sh.min.js +0 -24
  33. package/dist/revolugo.hoteloffersearchmenu.D2nQIXps.min.js +0 -24
  34. package/dist/revolugo.hoteloffersmap.BzJXBIZu.min.js +0 -24
  35. package/dist/revolugo.hoteloffersview.DbkrpmcL.min.js +0 -18
  36. package/dist/revolugo.hotelroomofferlist.BDmMQUXg.min.js +0 -24
  37. package/dist/revolugo.hotelroomoffersbookingflow.BTX5vw3U.min.js +0 -24
  38. package/dist/revolugo.hotelroomoffersearchmenu.Byc3rzga.min.js +0 -24
  39. package/dist/revolugo.hotelroomoffersview.DpCNFUpm.min.js +0 -24
  40. package/dist/revolugo.langpickerbtn.BYYCD3xg.min.js +0 -25
  41. package/dist/revolugo.leaflet-src.CtLpIV-y.min.js +0 -4665
  42. package/dist/revolugo.leaflet-src.esm.DzYPfo81.min.js +0 -4782
  43. package/dist/revolugo.marker-icon-2x.BBE8dvJp.min.js +0 -8
  44. package/dist/revolugo.marker-icon.VORuIHX9.min.js +0 -8
  45. package/dist/revolugo.marker-shadow.BcaYGGj2.min.js +0 -8
  46. package/dist/revolugo.prebookform.Buadq4bi.min.js +0 -24
  47. package/dist/revolugo.preferencesmenu.HRS1NoUW.min.js +0 -958
  48. package/dist/revolugo.revolugo-config.BhnbJkHY.min.js +0 -6492
  49. package/dist/revolugo.revolugoelements.DqTSs2x-.min.js +0 -34409
  50. package/dist/revolugo.rolldown-runtime.C2H8viMH.min.js +0 -25
  51. package/dist/revolugo.roominglisteditor.C7NMBMQu.min.js +0 -24
  52. package/dist/revolugo.storybooktoolbar.DuOgD1zs.min.js +0 -996
  53. package/dist/revolugo.termsandconditions.Dhn9Gh19.min.js +0 -24
  54. package/dist/revolugo.theme.CWCtKizJ.min.js +0 -17277
  55. package/dist/revolugo.ui.CwfYE_fW.min.js +0 -57666
  56. package/dist/revolugo.vtoolbar.CrASDlFx.min.js +0 -145
  57. package/dist/revolugo.webcomponentwrapper.DYBPZW1v.min.js +0 -256
  58. package/dist/revolugo2.preferencesmenu.B_DB1N90.min.js +0 -24
@@ -1,2787 +0,0 @@
1
- import { $ as He, At as zt, Br as Fe, C as We, Ci as Ge, Cn as Dt, Dr as Ke, M as Ze, Mn as Je, Nr as jt, Pt as Ye, Sr as St, T as Xe, Tr as v, Ur as E, Wn as Qe, br as A, fi as F, j as tr, jt as er, mr as Ht, pr as rr, qn as W, qr as nr, ri as f, vi as _, vr as at, wi as T, wr as nt, xr as _t, yr as x, yt as ir } from "./revolugo.theme.CWCtKizJ.min.js";
2
- import { G as sr, H as or, Ht as Ft, K as ar, Pt as lr, Q as G, Rt as wt, U as cr, V as Wt, W as Gt, Wt as ur, Y as dr, en as K, et as Kt, pn as pr, q as hr, rt as mr, tn as O } from "./revolugo.ui.CwfYE_fW.min.js";
3
- import { t as yr } from "./revolugo.vtoolbar.CrASDlFx.min.js";
4
- function je(t) {
5
- try {
6
- if (typeof document < "u") {
7
- window.REVOLUGO_ELEMENTS_STYLES = window.REVOLUGO_ELEMENTS_STYLES || {
8
- sheets: [],
9
- components: []
10
- };
11
- const e = import.meta.url, r = e.slice(0, e.lastIndexOf("/") + 1) + t;
12
- window.REVOLUGO_ELEMENTS_STYLES.sheets.push(r);
13
- for (const n of REVOLUGO_ELEMENTS_STYLES.components)
14
- n(r);
15
- if (t.indexOf("fonts") >= 0) {
16
- const n = document.createElement("link");
17
- n.rel = "stylesheet", linK.href = r, document.head.appendChild(n);
18
- }
19
- }
20
- } catch (e) {
21
- console.error("[revolugo-elements] ", e);
22
- }
23
- }
24
- var ye = (t) => (e) => typeof e == "function" ? ((r, n) => (customElements.define(r, n), n))(t, e) : ((r, n) => {
25
- const { kind: i, elements: s } = n;
26
- return {
27
- kind: i,
28
- elements: s,
29
- finisher(o) {
30
- customElements.define(r, o);
31
- }
32
- };
33
- })(t, e), fr = (t, e) => e.kind === "method" && e.descriptor && !("value" in e.descriptor) ? {
34
- ...e,
35
- finisher(r) {
36
- r.createProperty(e.key, t);
37
- }
38
- } : {
39
- kind: "field",
40
- key: Symbol(),
41
- placement: "own",
42
- descriptor: {},
43
- originalKey: e.key,
44
- initializer() {
45
- typeof e.initializer == "function" && (this[e.key] = e.initializer.call(this));
46
- },
47
- finisher(r) {
48
- r.createProperty(e.key, t);
49
- }
50
- }, vr = (t, e, r) => {
51
- e.constructor.createProperty(r, t);
52
- };
53
- function u(t) {
54
- return (e, r) => r !== void 0 ? vr(t, e, r) : fr(t, e);
55
- }
56
- var $t, Vn = (($t = window.HTMLSlotElement) === null || $t === void 0 ? void 0 : $t.prototype.assignedElements) != null ? (t, e) => t.assignedElements(e) : (t, e) => t.assignedNodes(e).filter(((r) => r.nodeType === Node.ELEMENT_NODE)), Zt = !0;
57
- function k(t, e, r) {
58
- if (typeof r?.value != "function") throw new TypeError(`Only methods can be decorated with @bound. <${e ?? t.name}> is not a method!`);
59
- return {
60
- configurable: Zt,
61
- get() {
62
- const n = r.value.bind(this);
63
- return Object.defineProperty(this, e, {
64
- value: n,
65
- configurable: Zt,
66
- writable: !0
67
- }), n;
68
- }
69
- };
70
- }
71
- var lt = window, Nt = lt.ShadowRoot && (lt.ShadyCSS === void 0 || lt.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, Ot = Symbol(), Jt = /* @__PURE__ */ new WeakMap(), fe = class {
72
- constructor(t, e, r) {
73
- if (this._$cssResult$ = !0, r !== Ot) throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
74
- this.cssText = t, this.t = e;
75
- }
76
- get styleSheet() {
77
- let t = this.o;
78
- const e = this.t;
79
- if (Nt && t === void 0) {
80
- const r = e !== void 0 && e.length === 1;
81
- r && (t = Jt.get(e)), t === void 0 && ((this.o = t = new CSSStyleSheet()).replaceSync(this.cssText), r && Jt.set(e, t));
82
- }
83
- return t;
84
- }
85
- toString() {
86
- return this.cssText;
87
- }
88
- }, gr = (t) => new fe(typeof t == "string" ? t : t + "", void 0, Ot), It = (t, ...e) => new fe(t.length === 1 ? t[0] : e.reduce(((r, n, i) => r + ((s) => {
89
- if (s._$cssResult$ === !0) return s.cssText;
90
- if (typeof s == "number") return s;
91
- throw Error("Value passed to 'css' function must be a 'css' function result: " + s + ". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.");
92
- })(n) + t[i + 1]), t[0]), t, Ot), br = (t, e) => {
93
- Nt ? t.adoptedStyleSheets = e.map(((r) => r instanceof CSSStyleSheet ? r : r.styleSheet)) : e.forEach(((r) => {
94
- const n = document.createElement("style"), i = lt.litNonce;
95
- i !== void 0 && n.setAttribute("nonce", i), n.textContent = r.cssText, t.appendChild(n);
96
- }));
97
- }, Yt = Nt ? (t) => t : (t) => t instanceof CSSStyleSheet ? ((e) => {
98
- let r = "";
99
- for (const n of e.cssRules) r += n.cssText;
100
- return gr(r);
101
- })(t) : t, Ct, mt = window, Xt = mt.trustedTypes, Sr = Xt ? Xt.emptyScript : "", _r = mt.reactiveElementPolyfillSupport, Rt = {
102
- toAttribute(t, e) {
103
- switch (e) {
104
- case Boolean:
105
- t = t ? Sr : null;
106
- break;
107
- case Object:
108
- case Array:
109
- t = t == null ? t : JSON.stringify(t);
110
- }
111
- return t;
112
- },
113
- fromAttribute(t, e) {
114
- let r = t;
115
- switch (e) {
116
- case Boolean:
117
- r = t !== null;
118
- break;
119
- case Number:
120
- r = t === null ? null : Number(t);
121
- break;
122
- case Object:
123
- case Array:
124
- try {
125
- r = JSON.parse(t);
126
- } catch {
127
- r = null;
128
- }
129
- }
130
- return r;
131
- }
132
- }, ve = (t, e) => e !== t && (e == e || t == t), Et = {
133
- attribute: !0,
134
- type: String,
135
- converter: Rt,
136
- reflect: !1,
137
- hasChanged: ve
138
- }, Tt = "finalized", B = class extends HTMLElement {
139
- constructor() {
140
- super(), this._$Ei = /* @__PURE__ */ new Map(), this.isUpdatePending = !1, this.hasUpdated = !1, this._$El = null, this._$Eu();
141
- }
142
- static addInitializer(t) {
143
- var e;
144
- this.finalize(), ((e = this.h) !== null && e !== void 0 ? e : this.h = []).push(t);
145
- }
146
- static get observedAttributes() {
147
- this.finalize();
148
- const t = [];
149
- return this.elementProperties.forEach(((e, r) => {
150
- const n = this._$Ep(r, e);
151
- n !== void 0 && (this._$Ev.set(n, r), t.push(n));
152
- })), t;
153
- }
154
- static createProperty(t, e = Et) {
155
- if (e.state && (e.attribute = !1), this.finalize(), this.elementProperties.set(t, e), !e.noAccessor && !this.prototype.hasOwnProperty(t)) {
156
- const r = typeof t == "symbol" ? Symbol() : "__" + t, n = this.getPropertyDescriptor(t, r, e);
157
- n !== void 0 && Object.defineProperty(this.prototype, t, n);
158
- }
159
- }
160
- static getPropertyDescriptor(t, e, r) {
161
- return {
162
- get() {
163
- return this[e];
164
- },
165
- set(n) {
166
- const i = this[t];
167
- this[e] = n, this.requestUpdate(t, i, r);
168
- },
169
- configurable: !0,
170
- enumerable: !0
171
- };
172
- }
173
- static getPropertyOptions(t) {
174
- return this.elementProperties.get(t) || Et;
175
- }
176
- static finalize() {
177
- if (this.hasOwnProperty(Tt)) return !1;
178
- this[Tt] = !0;
179
- const t = Object.getPrototypeOf(this);
180
- 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")) {
181
- const e = this.properties, r = [...Object.getOwnPropertyNames(e), ...Object.getOwnPropertySymbols(e)];
182
- for (const n of r) this.createProperty(n, e[n]);
183
- }
184
- return this.elementStyles = this.finalizeStyles(this.styles), !0;
185
- }
186
- static finalizeStyles(t) {
187
- const e = [];
188
- if (Array.isArray(t)) {
189
- const r = new Set(t.flat(1 / 0).reverse());
190
- for (const n of r) e.unshift(Yt(n));
191
- } else t !== void 0 && e.push(Yt(t));
192
- return e;
193
- }
194
- static _$Ep(t, e) {
195
- const r = e.attribute;
196
- return r === !1 ? void 0 : typeof r == "string" ? r : typeof t == "string" ? t.toLowerCase() : void 0;
197
- }
198
- _$Eu() {
199
- var t;
200
- this._$E_ = new Promise(((e) => this.enableUpdating = e)), this._$AL = /* @__PURE__ */ new Map(), this._$Eg(), this.requestUpdate(), (t = this.constructor.h) === null || t === void 0 || t.forEach(((e) => e(this)));
201
- }
202
- addController(t) {
203
- var e, r;
204
- ((e = this._$ES) !== null && e !== void 0 ? e : this._$ES = []).push(t), this.renderRoot !== void 0 && this.isConnected && ((r = t.hostConnected) === null || r === void 0 || r.call(t));
205
- }
206
- removeController(t) {
207
- var e;
208
- (e = this._$ES) === null || e === void 0 || e.splice(this._$ES.indexOf(t) >>> 0, 1);
209
- }
210
- _$Eg() {
211
- this.constructor.elementProperties.forEach(((t, e) => {
212
- this.hasOwnProperty(e) && (this._$Ei.set(e, this[e]), delete this[e]);
213
- }));
214
- }
215
- createRenderRoot() {
216
- var t;
217
- const e = (t = this.shadowRoot) !== null && t !== void 0 ? t : this.attachShadow(this.constructor.shadowRootOptions);
218
- return br(e, this.constructor.elementStyles), e;
219
- }
220
- connectedCallback() {
221
- var t;
222
- this.renderRoot === void 0 && (this.renderRoot = this.createRenderRoot()), this.enableUpdating(!0), (t = this._$ES) === null || t === void 0 || t.forEach(((e) => {
223
- var r;
224
- return (r = e.hostConnected) === null || r === void 0 ? void 0 : r.call(e);
225
- }));
226
- }
227
- enableUpdating(t) {
228
- }
229
- disconnectedCallback() {
230
- var t;
231
- (t = this._$ES) === null || t === void 0 || t.forEach(((e) => {
232
- var r;
233
- return (r = e.hostDisconnected) === null || r === void 0 ? void 0 : r.call(e);
234
- }));
235
- }
236
- attributeChangedCallback(t, e, r) {
237
- this._$AK(t, r);
238
- }
239
- _$EO(t, e, r = Et) {
240
- var n;
241
- const i = this.constructor._$Ep(t, r);
242
- if (i !== void 0 && r.reflect === !0) {
243
- const s = (((n = r.converter) === null || n === void 0 ? void 0 : n.toAttribute) !== void 0 ? r.converter : Rt).toAttribute(e, r.type);
244
- this._$El = t, s == null ? this.removeAttribute(i) : this.setAttribute(i, s), this._$El = null;
245
- }
246
- }
247
- _$AK(t, e) {
248
- var r;
249
- const n = this.constructor, i = n._$Ev.get(t);
250
- if (i !== void 0 && this._$El !== i) {
251
- const s = n.getPropertyOptions(i), o = typeof s.converter == "function" ? { fromAttribute: s.converter } : ((r = s.converter) === null || r === void 0 ? void 0 : r.fromAttribute) !== void 0 ? s.converter : Rt;
252
- this._$El = i, this[i] = o.fromAttribute(e, s.type), this._$El = null;
253
- }
254
- }
255
- requestUpdate(t, e, r) {
256
- let n = !0;
257
- t !== void 0 && (((r = r || this.constructor.getPropertyOptions(t)).hasChanged || ve)(this[t], e) ? (this._$AL.has(t) || this._$AL.set(t, e), r.reflect === !0 && this._$El !== t && (this._$EC === void 0 && (this._$EC = /* @__PURE__ */ new Map()), this._$EC.set(t, r))) : n = !1), !this.isUpdatePending && n && (this._$E_ = this._$Ej());
258
- }
259
- async _$Ej() {
260
- this.isUpdatePending = !0;
261
- try {
262
- await this._$E_;
263
- } catch (e) {
264
- Promise.reject(e);
265
- }
266
- const t = this.scheduleUpdate();
267
- return t != null && await t, !this.isUpdatePending;
268
- }
269
- scheduleUpdate() {
270
- return this.performUpdate();
271
- }
272
- performUpdate() {
273
- var t;
274
- if (!this.isUpdatePending) return;
275
- this.hasUpdated, this._$Ei && (this._$Ei.forEach(((n, i) => this[i] = n)), this._$Ei = void 0);
276
- let e = !1;
277
- const r = this._$AL;
278
- try {
279
- e = this.shouldUpdate(r), e ? (this.willUpdate(r), (t = this._$ES) === null || t === void 0 || t.forEach(((n) => {
280
- var i;
281
- return (i = n.hostUpdate) === null || i === void 0 ? void 0 : i.call(n);
282
- })), this.update(r)) : this._$Ek();
283
- } catch (n) {
284
- throw e = !1, this._$Ek(), n;
285
- }
286
- e && this._$AE(r);
287
- }
288
- willUpdate(t) {
289
- }
290
- _$AE(t) {
291
- var e;
292
- (e = this._$ES) === null || e === void 0 || e.forEach(((r) => {
293
- var n;
294
- return (n = r.hostUpdated) === null || n === void 0 ? void 0 : n.call(r);
295
- })), this.hasUpdated || (this.hasUpdated = !0, this.firstUpdated(t)), this.updated(t);
296
- }
297
- _$Ek() {
298
- this._$AL = /* @__PURE__ */ new Map(), this.isUpdatePending = !1;
299
- }
300
- get updateComplete() {
301
- return this.getUpdateComplete();
302
- }
303
- getUpdateComplete() {
304
- return this._$E_;
305
- }
306
- shouldUpdate(t) {
307
- return !0;
308
- }
309
- update(t) {
310
- this._$EC !== void 0 && (this._$EC.forEach(((e, r) => this._$EO(r, this[r], e))), this._$EC = void 0), this._$Ek();
311
- }
312
- updated(t) {
313
- }
314
- firstUpdated(t) {
315
- }
316
- };
317
- B[Tt] = !0, B.elementProperties = /* @__PURE__ */ new Map(), B.elementStyles = [], B.shadowRootOptions = { mode: "open" }, _r?.({ ReactiveElement: B }), ((Ct = mt.reactiveElementVersions) !== null && Ct !== void 0 ? Ct : mt.reactiveElementVersions = []).push("1.6.3");
318
- var Pt, yt = window, z = yt.trustedTypes, Qt = z ? z.createPolicy("lit-html", { createHTML: (t) => t }) : void 0, Mt = "$lit$", L = `lit$${(Math.random() + "").slice(9)}$`, ge = "?" + L, wr = `<${ge}>`, V = document, tt = () => V.createComment(""), et = (t) => t === null || typeof t != "object" && typeof t != "function", be = Array.isArray, $r = (t) => be(t) || typeof t?.[Symbol.iterator] == "function", At = `[
319
- \f\r]`, Z = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, te = /-->/g, ee = />/g, I = RegExp(`>|${At}(?:([^\\s"'>=/]+)(${At}*=${At}*(?:[^
320
- \f\r"'\`<>=]|("|')|))|$)`, "g"), re = /'/g, ne = /"/g, Se = /^(?:script|style|textarea|title)$/i, _e = (t) => (e, ...r) => ({
321
- _$litType$: t,
322
- strings: e,
323
- values: r
324
- }), Cr = _e(1), qn = _e(2), D = Symbol.for("lit-noChange"), S = Symbol.for("lit-nothing"), ie = /* @__PURE__ */ new WeakMap(), U = V.createTreeWalker(V, 129, null, !1);
325
- function we(t, e) {
326
- if (!Array.isArray(t) || !t.hasOwnProperty("raw")) throw Error("invalid template strings array");
327
- return Qt !== void 0 ? Qt.createHTML(e) : e;
328
- }
329
- var Er = (t, e) => {
330
- const r = t.length - 1, n = [];
331
- let i, s = e === 2 ? "<svg>" : "", o = Z;
332
- for (let c = 0; c < r; c++) {
333
- const l = t[c];
334
- let b, y, h = -1, g = 0;
335
- for (; g < l.length && (o.lastIndex = g, y = o.exec(l), y !== null); ) g = o.lastIndex, o === Z ? y[1] === "!--" ? o = te : y[1] !== void 0 ? o = ee : y[2] !== void 0 ? (Se.test(y[2]) && (i = RegExp("</" + y[2], "g")), o = I) : y[3] !== void 0 && (o = I) : o === I ? y[0] === ">" ? (o = i ?? Z, h = -1) : y[1] === void 0 ? h = -2 : (h = o.lastIndex - y[2].length, b = y[1], o = y[3] === void 0 ? I : y[3] === '"' ? ne : re) : o === ne || o === re ? o = I : o === te || o === ee ? o = Z : (o = I, i = void 0);
336
- const $ = o === I && t[c + 1].startsWith("/>") ? " " : "";
337
- s += o === Z ? l + wr : h >= 0 ? (n.push(b), l.slice(0, h) + Mt + l.slice(h) + L + $) : l + L + (h === -2 ? (n.push(void 0), c) : $);
338
- }
339
- return [we(t, s + (t[r] || "<?>") + (e === 2 ? "</svg>" : "")), n];
340
- }, Lt = class $e {
341
- constructor({ strings: e, _$litType$: r }, n) {
342
- let i;
343
- this.parts = [];
344
- let s = 0, o = 0;
345
- const c = e.length - 1, l = this.parts, [b, y] = Er(e, r);
346
- if (this.el = $e.createElement(b, n), U.currentNode = this.el.content, r === 2) {
347
- const h = this.el.content, g = h.firstChild;
348
- g.remove(), h.append(...g.childNodes);
349
- }
350
- for (; (i = U.nextNode()) !== null && l.length < c; ) {
351
- if (i.nodeType === 1) {
352
- if (i.hasAttributes()) {
353
- const h = [];
354
- for (const g of i.getAttributeNames()) if (g.endsWith(Mt) || g.startsWith(L)) {
355
- const $ = y[o++];
356
- if (h.push(g), $ !== void 0) {
357
- const N = i.getAttribute($.toLowerCase() + Mt).split(L), M = /([.?@])?(.*)/.exec($);
358
- l.push({
359
- type: 1,
360
- index: s,
361
- name: M[2],
362
- strings: N,
363
- ctor: M[1] === "." ? Ar : M[1] === "?" ? kr : M[1] === "@" ? Rr : ft
364
- });
365
- } else l.push({
366
- type: 6,
367
- index: s
368
- });
369
- }
370
- for (const g of h) i.removeAttribute(g);
371
- }
372
- if (Se.test(i.tagName)) {
373
- const h = i.textContent.split(L), g = h.length - 1;
374
- if (g > 0) {
375
- i.textContent = z ? z.emptyScript : "";
376
- for (let $ = 0; $ < g; $++) i.append(h[$], tt()), U.nextNode(), l.push({
377
- type: 2,
378
- index: ++s
379
- });
380
- i.append(h[g], tt());
381
- }
382
- }
383
- } else if (i.nodeType === 8) if (i.data === ge) l.push({
384
- type: 2,
385
- index: s
386
- });
387
- else {
388
- let h = -1;
389
- for (; (h = i.data.indexOf(L, h + 1)) !== -1; ) l.push({
390
- type: 7,
391
- index: s
392
- }), h += L.length - 1;
393
- }
394
- s++;
395
- }
396
- }
397
- static createElement(e, r) {
398
- const n = V.createElement("template");
399
- return n.innerHTML = e, n;
400
- }
401
- };
402
- function j(t, e, r = t, n) {
403
- var i, s, o, c;
404
- if (e === D) return e;
405
- let l = n !== void 0 ? (i = r._$Co) === null || i === void 0 ? void 0 : i[n] : r._$Cl;
406
- const b = et(e) ? void 0 : e._$litDirective$;
407
- return l?.constructor !== b && ((s = l?._$AO) === null || s === void 0 || s.call(l, !1), b === void 0 ? l = void 0 : (l = new b(t), l._$AT(t, r, n)), n !== void 0 ? ((o = (c = r)._$Co) !== null && o !== void 0 ? o : c._$Co = [])[n] = l : r._$Cl = l), l !== void 0 && (e = j(t, l._$AS(t, e.values), l, n)), e;
408
- }
409
- var Pr = class {
410
- constructor(t, e) {
411
- this._$AV = [], this._$AN = void 0, this._$AD = t, this._$AM = e;
412
- }
413
- get parentNode() {
414
- return this._$AM.parentNode;
415
- }
416
- get _$AU() {
417
- return this._$AM._$AU;
418
- }
419
- u(t) {
420
- var e;
421
- const { el: { content: r }, parts: n } = this._$AD, i = ((e = t?.creationScope) !== null && e !== void 0 ? e : V).importNode(r, !0);
422
- U.currentNode = i;
423
- let s = U.nextNode(), o = 0, c = 0, l = n[0];
424
- for (; l !== void 0; ) {
425
- if (o === l.index) {
426
- let b;
427
- l.type === 2 ? b = new Ut(s, s.nextSibling, this, t) : l.type === 1 ? b = new l.ctor(s, l.name, l.strings, this, t) : l.type === 6 && (b = new Tr(s, this, t)), this._$AV.push(b), l = n[++c];
428
- }
429
- o !== l?.index && (s = U.nextNode(), o++);
430
- }
431
- return U.currentNode = V, i;
432
- }
433
- v(t) {
434
- let e = 0;
435
- for (const r of this._$AV) r !== void 0 && (r.strings !== void 0 ? (r._$AI(t, r, e), e += r.strings.length - 2) : r._$AI(t[e])), e++;
436
- }
437
- }, Ut = class Ce {
438
- constructor(e, r, n, i) {
439
- var s;
440
- this.type = 2, this._$AH = S, this._$AN = void 0, this._$AA = e, this._$AB = r, this._$AM = n, this.options = i, this._$Cp = (s = i?.isConnected) === null || s === void 0 || s;
441
- }
442
- get _$AU() {
443
- var e, r;
444
- return (r = (e = this._$AM) === null || e === void 0 ? void 0 : e._$AU) !== null && r !== void 0 ? r : this._$Cp;
445
- }
446
- get parentNode() {
447
- let e = this._$AA.parentNode;
448
- const r = this._$AM;
449
- return r !== void 0 && e?.nodeType === 11 && (e = r.parentNode), e;
450
- }
451
- get startNode() {
452
- return this._$AA;
453
- }
454
- get endNode() {
455
- return this._$AB;
456
- }
457
- _$AI(e, r = this) {
458
- e = j(this, e, r), et(e) ? e === S || e == null || e === "" ? (this._$AH !== S && this._$AR(), this._$AH = S) : e !== this._$AH && e !== D && this._(e) : e._$litType$ !== void 0 ? this.g(e) : e.nodeType !== void 0 ? this.$(e) : $r(e) ? this.T(e) : this._(e);
459
- }
460
- k(e) {
461
- return this._$AA.parentNode.insertBefore(e, this._$AB);
462
- }
463
- $(e) {
464
- this._$AH !== e && (this._$AR(), this._$AH = this.k(e));
465
- }
466
- _(e) {
467
- this._$AH !== S && et(this._$AH) ? this._$AA.nextSibling.data = e : this.$(V.createTextNode(e)), this._$AH = e;
468
- }
469
- g(e) {
470
- var r;
471
- const { values: n, _$litType$: i } = e, s = typeof i == "number" ? this._$AC(e) : (i.el === void 0 && (i.el = Lt.createElement(we(i.h, i.h[0]), this.options)), i);
472
- if (((r = this._$AH) === null || r === void 0 ? void 0 : r._$AD) === s) this._$AH.v(n);
473
- else {
474
- const o = new Pr(s, this), c = o.u(this.options);
475
- o.v(n), this.$(c), this._$AH = o;
476
- }
477
- }
478
- _$AC(e) {
479
- let r = ie.get(e.strings);
480
- return r === void 0 && ie.set(e.strings, r = new Lt(e)), r;
481
- }
482
- T(e) {
483
- be(this._$AH) || (this._$AH = [], this._$AR());
484
- const r = this._$AH;
485
- let n, i = 0;
486
- for (const s of e) i === r.length ? r.push(n = new Ce(this.k(tt()), this.k(tt()), this, this.options)) : n = r[i], n._$AI(s), i++;
487
- i < r.length && (this._$AR(n && n._$AB.nextSibling, i), r.length = i);
488
- }
489
- _$AR(e = this._$AA.nextSibling, r) {
490
- var n;
491
- for ((n = this._$AP) === null || n === void 0 || n.call(this, !1, !0, r); e && e !== this._$AB; ) {
492
- const i = e.nextSibling;
493
- e.remove(), e = i;
494
- }
495
- }
496
- setConnected(e) {
497
- var r;
498
- this._$AM === void 0 && (this._$Cp = e, (r = this._$AP) === null || r === void 0 || r.call(this, e));
499
- }
500
- }, ft = class {
501
- constructor(t, e, r, n, i) {
502
- this.type = 1, this._$AH = S, this._$AN = void 0, this.element = t, this.name = e, this._$AM = n, this.options = i, r.length > 2 || r[0] !== "" || r[1] !== "" ? (this._$AH = Array(r.length - 1).fill(/* @__PURE__ */ new String()), this.strings = r) : this._$AH = S;
503
- }
504
- get tagName() {
505
- return this.element.tagName;
506
- }
507
- get _$AU() {
508
- return this._$AM._$AU;
509
- }
510
- _$AI(t, e = this, r, n) {
511
- const i = this.strings;
512
- let s = !1;
513
- if (i === void 0) t = j(this, t, e, 0), s = !et(t) || t !== this._$AH && t !== D, s && (this._$AH = t);
514
- else {
515
- const o = t;
516
- let c, l;
517
- for (t = i[0], c = 0; c < i.length - 1; c++) l = j(this, o[r + c], e, c), l === D && (l = this._$AH[c]), s || (s = !et(l) || l !== this._$AH[c]), l === S ? t = S : t !== S && (t += (l ?? "") + i[c + 1]), this._$AH[c] = l;
518
- }
519
- s && !n && this.j(t);
520
- }
521
- j(t) {
522
- t === S ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, t ?? "");
523
- }
524
- }, Ar = class extends ft {
525
- constructor() {
526
- super(...arguments), this.type = 3;
527
- }
528
- j(t) {
529
- this.element[this.name] = t === S ? void 0 : t;
530
- }
531
- }, xr = z ? z.emptyScript : "", kr = class extends ft {
532
- constructor() {
533
- super(...arguments), this.type = 4;
534
- }
535
- j(t) {
536
- t && t !== S ? this.element.setAttribute(this.name, xr) : this.element.removeAttribute(this.name);
537
- }
538
- }, Rr = class extends ft {
539
- constructor(t, e, r, n, i) {
540
- super(t, e, r, n, i), this.type = 5;
541
- }
542
- _$AI(t, e = this) {
543
- var r;
544
- if ((t = (r = j(this, t, e, 0)) !== null && r !== void 0 ? r : S) === D) return;
545
- const n = this._$AH, i = t === S && n !== S || t.capture !== n.capture || t.once !== n.once || t.passive !== n.passive, s = t !== S && (n === S || i);
546
- i && this.element.removeEventListener(this.name, this, n), s && this.element.addEventListener(this.name, this, t), this._$AH = t;
547
- }
548
- handleEvent(t) {
549
- var e, r;
550
- typeof this._$AH == "function" ? this._$AH.call((r = (e = this.options) === null || e === void 0 ? void 0 : e.host) !== null && r !== void 0 ? r : this.element, t) : this._$AH.handleEvent(t);
551
- }
552
- }, Tr = class {
553
- constructor(t, e, r) {
554
- this.element = t, this.type = 6, this._$AN = void 0, this._$AM = e, this.options = r;
555
- }
556
- get _$AU() {
557
- return this._$AM._$AU;
558
- }
559
- _$AI(t) {
560
- j(this, t);
561
- }
562
- };
563
- var Mr = yt.litHtmlPolyfillSupport;
564
- Mr?.(Lt, Ut), ((Pt = yt.litHtmlVersions) !== null && Pt !== void 0 ? Pt : yt.litHtmlVersions = []).push("2.8.0");
565
- var Lr = (t, e, r) => {
566
- var n, i;
567
- const s = (n = r?.renderBefore) !== null && n !== void 0 ? n : e;
568
- let o = s._$litPart$;
569
- if (o === void 0) {
570
- const c = (i = r?.renderBefore) !== null && i !== void 0 ? i : null;
571
- s._$litPart$ = o = new Ut(e.insertBefore(tt(), c), c, void 0, r ?? {});
572
- }
573
- return o._$AI(t), o;
574
- }, xt, kt, Q = class extends B {
575
- constructor() {
576
- super(...arguments), this.renderOptions = { host: this }, this._$Do = void 0;
577
- }
578
- createRenderRoot() {
579
- var t, e;
580
- const r = super.createRenderRoot();
581
- return (t = (e = this.renderOptions).renderBefore) !== null && t !== void 0 || (e.renderBefore = r.firstChild), r;
582
- }
583
- update(t) {
584
- const e = this.render();
585
- this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(t), this._$Do = Lr(e, this.renderRoot, this.renderOptions);
586
- }
587
- connectedCallback() {
588
- var t;
589
- super.connectedCallback(), (t = this._$Do) === null || t === void 0 || t.setConnected(!0);
590
- }
591
- disconnectedCallback() {
592
- var t;
593
- super.disconnectedCallback(), (t = this._$Do) === null || t === void 0 || t.setConnected(!1);
594
- }
595
- render() {
596
- return D;
597
- }
598
- };
599
- Q.finalized = !0, Q._$litElement$ = !0, (xt = globalThis.litElementHydrateSupport) === null || xt === void 0 || xt.call(globalThis, { LitElement: Q });
600
- var Nr = globalThis.litElementPolyfillSupport;
601
- Nr?.({ LitElement: Q });
602
- ((kt = globalThis.litElementVersions) !== null && kt !== void 0 ? kt : globalThis.litElementVersions = []).push("3.3.3");
603
- var Or = (t) => t ?? S, Ir = /[A-ZÀ-ÖÙ-Ý]+/g, Ur = /[a-zà-öù-ý]+/g;
604
- function Vr(t) {
605
- const e = t.replace(Ir, r).match(Ur);
606
- return e ? e.join("-") : "";
607
- function r(n) {
608
- return " " + (n.length > 2 ? n.slice(0, -1) + " " + n.slice(-1) : n).toLowerCase();
609
- }
610
- }
611
- var qr = /[A-ZÀ-ÖÙ-Ý]+/g, Br = /[A-ZÀ-ÖÙ-Ýa-zà-öù-ý]+/g;
612
- function zr(t) {
613
- const e = t.replace(qr, r).match(Br);
614
- return e ? e[0][0].toLowerCase() + e.map((n) => n[0].toUpperCase() + n.slice(1)).join("").slice(1) : "";
615
- function r(n) {
616
- return n.length > 2 ? n[0] + n.slice(1, -1).toLowerCase() + n.slice(-1) : n;
617
- }
618
- }
619
- function Dr() {
620
- const t = {};
621
- return {
622
- has: (e) => Object.hasOwnProperty.call(t, e),
623
- get: (e) => t[e],
624
- set: (e, r) => {
625
- t[e] = r;
626
- }
627
- };
628
- }
629
- function Ee(t, e) {
630
- const r = Dr();
631
- return (...n) => {
632
- const i = t(...n);
633
- return r.has(i) || r.set(i, e(...n)), r.get(i);
634
- };
635
- }
636
- var Pe = (t) => t, Bn = Ee(Pe, zr), Ae = Ee(Pe, Vr), jr = (t) => (e) => t.includes(e), Hr = jr([
637
- "paymentMethod",
638
- "source",
639
- "token"
640
- ]);
641
- async function Fr(t) {
642
- const { ok: e, statusText: r } = t;
643
- if (!e) throw new Error(r);
644
- return t;
645
- }
646
- function Wr(t) {
647
- return "addInitializer" in t.constructor;
648
- }
649
- var X = class {
650
- constructor(t) {
651
- if (this.host = t, this.values = /* @__PURE__ */ new Map(), X.instances.has(t)) return X.instances.get(t);
652
- t.addController(this), X.instances.set(t, this);
653
- }
654
- static for(t) {
655
- return new X(t);
656
- }
657
- hostConnected() {
658
- }
659
- set(t, e) {
660
- const r = this.values.get(t);
661
- this.values.set(t, e), Wr(this.host) ? this.host.requestUpdate(t, r) : this.host.requestUpdate();
662
- }
663
- }, Vt = X;
664
- Vt.instances = /* @__PURE__ */ new Map();
665
- function d(t, e) {
666
- const r = t.constructor;
667
- r.addInitializer((n) => {
668
- const i = Vt.for(n);
669
- Object.defineProperty(n.constructor.prototype, e, {
670
- enumerable: !0,
671
- configurable: !0,
672
- get() {
673
- return i.values.get(e);
674
- },
675
- set(s) {
676
- i.values.has(e) || i.values.set(e, s);
677
- }
678
- }), r.createProperty(e, {
679
- ...r.getPropertyOptions(e),
680
- noAccessor: !0
681
- });
682
- });
683
- }
684
- d.set = function(t, e) {
685
- const r = Vt.for(t);
686
- for (const [n, i] of Object.entries(e)) r.set(n, i);
687
- };
688
- var Gr = class extends Event {
689
- constructor(t, e, r, n) {
690
- super(`${n ?? t.toLowerCase()}-changed`), this.key = t, this.oldValue = e, this.value = r, this.detail = { value: r };
691
- }
692
- }, ct = class {
693
- constructor(t) {
694
- if (this.host = t, this.cache = /* @__PURE__ */ new Map(), ct.instances.has(t)) return ct.instances.get(t);
695
- t.addController(this), ct.instances.set(t, this);
696
- }
697
- hostUpdated() {
698
- for (const [t, e] of this.cache) {
699
- const r = this.host[t], { attribute: n } = this.host.constructor.getPropertyOptions(t) ?? {}, i = typeof n == "string" ? n : null;
700
- this.cache.set(t, r), this.host.dispatchEvent(new Gr(t, e, r, i));
701
- }
702
- }
703
- }, xe = ct;
704
- xe.instances = /* @__PURE__ */ new Map();
705
- function P(t, e) {
706
- t.constructor.addInitializer((r) => {
707
- new xe(r).cache.set(e, r[e]);
708
- });
709
- }
710
- function Kr(t) {
711
- return (e, r, n) => {
712
- const i = n.value;
713
- return n.value = t(i), n;
714
- };
715
- }
716
- var qt = Kr(function(t) {
717
- const { name: e } = t;
718
- return async function(...r) {
719
- if (!this.stripe) throw new Error(`<${this.constructor.is}>: Stripe must be initialized before calling ${e}.`);
720
- return t.call(this, ...r).then(this.handleResponse);
721
- };
722
- });
723
- function se(t) {
724
- if (t.error) throw t.error;
725
- return t;
726
- }
727
- var Zr = Object.defineProperty, Jr = Object.getOwnPropertyDescriptor, a = (t, e, r, n) => {
728
- for (var i = n > 1 ? void 0 : n ? Jr(e, r) : e, s = t.length - 1, o; s >= 0; s--) (o = t[s]) && (i = (n ? o(e, r, i) : o(i)) || i);
729
- return n && i && Zr(e, r, i), i;
730
- }, ke = (t, e, r) => {
731
- if (!e.has(t)) throw TypeError("Cannot " + r);
732
- }, oe = (t, e, r) => (ke(t, e, "read from private field"), r ? r.call(t) : e.get(t)), ae = (t, e, r) => {
733
- if (e.has(t)) throw TypeError("Cannot add the same private member more than once");
734
- e instanceof WeakSet ? e.add(t) : e.set(t, r);
735
- }, le = (t, e, r, n) => (ke(t, e, "write to private field"), n ? n.call(t, r) : e.set(t, r), r);
736
- function ce() {
737
- return (Date.now() + Math.random() * 1e3).toString(36).substr(0, 8);
738
- }
739
- var Yr = class {
740
- constructor(t, e) {
741
- this.host = t, this.options = e, this.initialized = !1, this.shadowHosts = [], this.host.addController(this), this.mountId = this.resetMountId(), this.slotName = this.options?.slotName ?? `breadcrumb-${ce()}`;
742
- }
743
- get mount() {
744
- return document.getElementById(this.mountId);
745
- }
746
- hostUpdated() {
747
- !this.initialized && this.options?.autoInitialize !== !1 && this.init();
748
- }
749
- hostDisconnected() {
750
- this.destroyMountPoints();
751
- }
752
- resetMountId() {
753
- return `${this.options?.mountPrefix ?? this.host.localName}-mount-point-${ce()}`;
754
- }
755
- createMountPoint() {
756
- const t = document.createElement("div");
757
- return t.id = this.mountId, t.classList.add(`${this.host.tagName.toLowerCase()}-mount`), t;
758
- }
759
- createSlot(t) {
760
- const e = document.createElement("slot");
761
- return e.slot = t, e.name = t, e;
762
- }
763
- appendTemplate(t, e = this.createMountPoint()) {
764
- return t.appendChild(e), e;
765
- }
766
- initMountPoints() {
767
- this.initShadowMountPoints();
768
- }
769
- destroyMountPoints() {
770
- for (const t of this.shadowHosts) for (const e of t.querySelectorAll(`[slot="${this.slotName}"][name="${this.slotName}"]`)) e.remove();
771
- this.mount && this.mount.remove(), this.mountId = this.resetMountId();
772
- }
773
- initShadowMountPoints() {
774
- let t = this.host;
775
- for (this.shadowHosts = [this.host]; t = t.getRootNode().host; ) this.shadowHosts.push(t);
776
- const { shadowHosts: e, slotName: r } = this, n = [...e], i = n.pop();
777
- if (!i.querySelector(`[slot="${r}"]`)) {
778
- const o = document.createElement("div");
779
- o.slot = r, i.appendChild(o);
780
- }
781
- const s = i.querySelector(`[slot="${r}"]`);
782
- this.appendTemplate(s), n.forEach((o) => this.appendTemplate(o, this.createSlot(r)));
783
- }
784
- init() {
785
- this.destroyMountPoints(), this.initMountPoints(), this.initialized = !0;
786
- }
787
- };
788
- function ut(t) {
789
- "@babel/helpers - typeof";
790
- return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? ut = function(e) {
791
- return typeof e;
792
- } : ut = function(e) {
793
- return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
794
- }, ut(t);
795
- }
796
- var Re = "https://js.stripe.com/v3", Xr = /^https:\/\/js\.stripe\.com\/v3\/?(\?.*)?$/, ue = "loadStripe.setLoadParameters was called but an existing Stripe.js script already exists in the document; existing script parameters will be used", Qr = function() {
797
- for (var e = document.querySelectorAll('script[src^="'.concat(Re, '"]')), r = 0; r < e.length; r++) {
798
- var n = e[r];
799
- if (Xr.test(n.src))
800
- return n;
801
- }
802
- return null;
803
- }, tn = function(e) {
804
- var r = e && !e.advancedFraudSignals ? "?advancedFraudSignals=false" : "", n = document.createElement("script");
805
- n.src = "".concat(Re).concat(r);
806
- var i = document.head || document.body;
807
- if (!i) throw new Error("Expected document.body not to be null. Stripe.js requires a <body> element.");
808
- return i.appendChild(n), n;
809
- }, en = function(e, r) {
810
- !e || !e._registerWrapper || e._registerWrapper({
811
- name: "stripe-js",
812
- version: "1.32.0",
813
- startTime: r
814
- });
815
- }, it = null, rn = function(e) {
816
- return it !== null || (it = new Promise(function(r, n) {
817
- if (typeof window > "u") {
818
- r(null);
819
- return;
820
- }
821
- if (window.Stripe && e && console.warn(ue), window.Stripe) {
822
- r(window.Stripe);
823
- return;
824
- }
825
- try {
826
- var i = Qr();
827
- i && e ? console.warn(ue) : i || (i = tn(e)), i.addEventListener("load", function() {
828
- window.Stripe ? r(window.Stripe) : n(/* @__PURE__ */ new Error("Stripe.js not available"));
829
- }), i.addEventListener("error", function() {
830
- n(/* @__PURE__ */ new Error("Failed to load Stripe.js"));
831
- });
832
- } catch (s) {
833
- n(s);
834
- return;
835
- }
836
- })), it;
837
- }, nn = function(e, r, n) {
838
- if (e === null) return null;
839
- var i = e.apply(void 0, r);
840
- return en(i, n), i;
841
- }, sn = function(e) {
842
- var r = `invalid load parameters; expected object of shape
843
-
844
- {advancedFraudSignals: boolean}
845
-
846
- but received
847
-
848
- `.concat(JSON.stringify(e), `
849
- `);
850
- if (e === null || ut(e) !== "object") throw new Error(r);
851
- if (Object.keys(e).length === 1 && typeof e.advancedFraudSignals == "boolean") return e;
852
- throw new Error(r);
853
- }, Te, Me = !1, Le = function() {
854
- for (var e = arguments.length, r = new Array(e), n = 0; n < e; n++) r[n] = arguments[n];
855
- Me = !0;
856
- var i = Date.now();
857
- return rn(Te).then(function(s) {
858
- return nn(s, r, i);
859
- });
860
- };
861
- Le.setLoadParameters = function(t) {
862
- if (Me) throw new Error("You cannot change load parameters after calling loadStripe");
863
- Te = sn(t);
864
- };
865
- var Ne = class extends Error {
866
- constructor(t, e) {
867
- super(`<${t}>: ${e}`), this.originalMessage = e;
868
- }
869
- };
870
- function Oe(t) {
871
- return !!t && t instanceof Ne;
872
- }
873
- var on = { toAttribute: (t) => t ? Oe(t) ? t.originalMessage : t.message || "" : null }, p = class extends Q {
874
- constructor() {
875
- 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 Yr(this, { slotName: `${this.constructor.is}-slot` });
876
- }
877
- get stripeMountId() {
878
- return this.breadcrumb.mountId;
879
- }
880
- get stripeMount() {
881
- return this.breadcrumb.mount;
882
- }
883
- render() {
884
- const { error: t, showError: e } = this, { slotName: r } = this.breadcrumb, n = Oe(t) ? t.originalMessage : t?.message;
885
- return Cr`
886
- <div id="stripe" part="stripe">
887
- <slot id="stripe-slot" name="${r}"></slot>
888
- </div>
889
-
890
- <output id="error"
891
- for="stripe"
892
- part="error"
893
- ?hidden="${!e}">
894
- ${Or(n)}
895
- </output>
896
- `;
897
- }
898
- updated(t) {
899
- super.updated?.(t), t.has("error") && this.errorChanged(), t.has("publishableKey") && this.init(), [...t.keys()].forEach((e) => this.representationChanged(e));
900
- }
901
- async disconnectedCallback() {
902
- super.disconnectedCallback(), await this.unmount?.();
903
- }
904
- reset() {
905
- this.element?.clear?.(), this.resetRepresentations(), d.set(this, { error: null });
906
- }
907
- blur() {
908
- this.element?.blur();
909
- }
910
- focus() {
911
- this.element?.focus();
912
- }
913
- createError(t) {
914
- return new Ne(this.constructor.is, t);
915
- }
916
- errorChanged() {
917
- this.resetRepresentations(), this.fireError(this.error);
918
- }
919
- fire(t, e, r) {
920
- this.dispatchEvent(new CustomEvent(t, {
921
- detail: e,
922
- ...r
923
- }));
924
- }
925
- fireError(t) {
926
- this.dispatchEvent(new ErrorEvent("error", { error: t }));
927
- }
928
- getCSSCustomPropertyValue(t) {
929
- return this.precomputedStyle.getPropertyValue(t);
930
- }
931
- async handleResponse(t) {
932
- const { error: e = null, paymentMethod: r = null, source: n = null, token: i = null } = { ...t };
933
- if (d.set(this, {
934
- error: e,
935
- paymentMethod: r,
936
- source: n,
937
- token: i
938
- }), await this.updateComplete, e) throw e;
939
- return t;
940
- }
941
- initElement() {
942
- "abstract";
943
- }
944
- async init() {
945
- await this.unmount(), await this.initStripe(), await this.initElement(), this.initElementListeners(), this.breadcrumb.init(), this.mount();
946
- }
947
- initElementListeners() {
948
- this.element && (this.element.on("ready", this.onReady), this.element.on("focus", this.onFocus), this.element.on("blur", this.onBlur));
949
- }
950
- async initStripe() {
951
- const { publishableKey: t, stripeAccount: e, locale: r } = this;
952
- if (!t) d.set(this, {
953
- elements: null,
954
- element: null,
955
- stripe: null
956
- });
957
- else try {
958
- const n = {
959
- stripeAccount: e,
960
- locale: r
961
- }, i = window.Stripe ? window.Stripe(t, n) : await Le(t, n), s = i?.elements();
962
- d.set(this, {
963
- elements: s,
964
- error: null,
965
- stripe: i
966
- });
967
- } catch (n) {
968
- console.warn(n);
969
- const i = this.createError("Stripe.js must be loaded first.");
970
- d.set(this, {
971
- elements: null,
972
- error: i,
973
- stripe: null
974
- });
975
- } finally {
976
- await this.updateComplete;
977
- }
978
- }
979
- mount() {
980
- if (!this.breadcrumb.mount) throw this.createError("Stripe Mount missing");
981
- this.element?.mount(this.breadcrumb.mount);
982
- }
983
- async unmount() {
984
- this.element?.unmount?.(), d.set(this, { element: null }), await this.updateComplete;
985
- }
986
- async onBlur() {
987
- d.set(this, { focused: !1 }), await this.updateComplete;
988
- }
989
- async onFocus() {
990
- d.set(this, { focused: !0 }), await this.updateComplete;
991
- }
992
- async onReady(t) {
993
- d.set(this, { ready: !0 }), await this.updateComplete, this.fire("ready", t);
994
- }
995
- async postRepresentation() {
996
- const t = (o) => d.set(this, { error: o }), e = (o) => this.fire("success", o), r = this.token || void 0, n = this.source || void 0, i = this.paymentMethod || void 0, s = JSON.stringify({
997
- token: r,
998
- source: n,
999
- paymentMethod: i
1000
- });
1001
- return fetch(this.action, {
1002
- body: s,
1003
- headers: { "Content-Type": "application/json" },
1004
- method: "POST"
1005
- }).then(Fr).then(e).catch(t);
1006
- }
1007
- representationChanged(t) {
1008
- if (!Hr(t)) return;
1009
- const e = this[t];
1010
- e && (this.fire(`${Ae(t)}`, e), this.action && this.postRepresentation());
1011
- }
1012
- resetRepresentations() {
1013
- d.set(this, {
1014
- paymentMethod: null,
1015
- token: null,
1016
- source: null
1017
- });
1018
- }
1019
- };
1020
- a([u({ type: String })], p.prototype, "action", 2);
1021
- a([u({
1022
- type: String,
1023
- attribute: "client-secret"
1024
- })], p.prototype, "clientSecret", 2);
1025
- a([u({ type: String })], p.prototype, "generate", 2);
1026
- a([P, u({
1027
- type: String,
1028
- attribute: "publishable-key",
1029
- reflect: !0
1030
- })], p.prototype, "publishableKey", 2);
1031
- a([u({
1032
- type: Boolean,
1033
- attribute: "show-error",
1034
- reflect: !0
1035
- })], p.prototype, "showError", 2);
1036
- a([u({
1037
- type: String,
1038
- attribute: "stripe-account"
1039
- })], p.prototype, "stripeAccount", 2);
1040
- a([u({
1041
- type: String,
1042
- attribute: "locale"
1043
- })], p.prototype, "locale", 2);
1044
- a([
1045
- d,
1046
- P,
1047
- u({
1048
- type: Object,
1049
- attribute: "payment-method"
1050
- })
1051
- ], p.prototype, "paymentMethod", 2);
1052
- a([
1053
- d,
1054
- P,
1055
- u({ type: Object })
1056
- ], p.prototype, "source", 2);
1057
- a([
1058
- d,
1059
- P,
1060
- u({ type: Object })
1061
- ], p.prototype, "token", 2);
1062
- a([d, u({ type: Object })], p.prototype, "element", 2);
1063
- a([d, u({ type: Object })], p.prototype, "elements", 2);
1064
- a([
1065
- d,
1066
- P,
1067
- u({
1068
- type: Object,
1069
- reflect: !0,
1070
- converter: on
1071
- })
1072
- ], p.prototype, "error", 2);
1073
- a([
1074
- d,
1075
- P,
1076
- u({
1077
- type: Boolean,
1078
- reflect: !0
1079
- })
1080
- ], p.prototype, "focused", 2);
1081
- a([
1082
- d,
1083
- P,
1084
- u({
1085
- type: Boolean,
1086
- reflect: !0
1087
- })
1088
- ], p.prototype, "ready", 2);
1089
- a([d, u({ type: Object })], p.prototype, "stripe", 2);
1090
- a([u()], p.prototype, "theme", 2);
1091
- a([u({ attribute: "border-radius" })], p.prototype, "borderRadius", 2);
1092
- a([u({ attribute: "color-background" })], p.prototype, "colorBackground", 2);
1093
- a([u({ attribute: "color-danger" })], p.prototype, "colorDanger", 2);
1094
- a([u({ attribute: "color-primary" })], p.prototype, "colorPrimary", 2);
1095
- a([u({ attribute: "color-text" })], p.prototype, "colorText", 2);
1096
- a([u({ attribute: "font-family" })], p.prototype, "fontFamily", 2);
1097
- a([u({ attribute: "spacing-unit" })], p.prototype, "spacingUnit", 2);
1098
- a([k], p.prototype, "handleResponse", 1);
1099
- a([k], p.prototype, "onBlur", 1);
1100
- a([k], p.prototype, "onFocus", 1);
1101
- a([k], p.prototype, "onReady", 1);
1102
- var Ie = It`[hidden] {
1103
- display: none !important;
1104
- }
1105
-
1106
- :host:not([hidden]) {
1107
- display: block;
1108
- box-sizing: border-box;
1109
- }
1110
-
1111
- #error {
1112
- font-family: sans-serif;
1113
- font-size: 14px;
1114
- padding-left: 42px;
1115
- padding-bottom: 10px;
1116
- }
1117
- `, an = It`:host {
1118
- min-width: var(--stripe-elements-width, 300px);
1119
- min-height: var(--stripe-elements-height, 50px);
1120
- }
1121
-
1122
- #stripe {
1123
- box-sizing: border-box;
1124
- border-radius: var(--stripe-elements-border-radius, 4px);
1125
- border: var(--stripe-elements-border, 1px solid transparent);
1126
- box-shadow: var(--stripe-elements-box-shadow, 0 1px 3px 0 #e6ebf1);
1127
- transition: var(--stripe-elements-transition, box-shadow 150ms ease);
1128
- min-width: var(--stripe-elements-width, 300px);
1129
- padding: var(--stripe-elements-element-padding, 8px 12px);
1130
- background: var(--stripe-elements-element-background, white);
1131
- }
1132
-
1133
- :host([focused]) #stripe {
1134
- box-shadow: 0 1px 3px 0 #cfd7df;
1135
- }
1136
-
1137
- :host([error]) #stripe {
1138
- border-color: #fa755a;
1139
- }
1140
- `, de = [
1141
- "color",
1142
- "fontFamily",
1143
- "fontSize",
1144
- "fontStyle",
1145
- "fontSmoothing",
1146
- "fontVariant",
1147
- "iconColor",
1148
- "lineHeight",
1149
- "letterSpacing",
1150
- "textDecoration",
1151
- "textShadow",
1152
- "textTransform"
1153
- ], ln = [
1154
- ":hover",
1155
- ":focus",
1156
- "::placeholder",
1157
- "::selection",
1158
- ":-webkit-autofill",
1159
- ":disabled"
1160
- ], w = class extends p {
1161
- constructor() {
1162
- 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;
1163
- }
1164
- async createPaymentMethod(t = this.getPaymentMethodData()) {
1165
- return this.stripe.createPaymentMethod(t);
1166
- }
1167
- async createSource(t = this.sourceData) {
1168
- return this.stripe.createSource(this.element, t);
1169
- }
1170
- async createToken(t = this.tokenData) {
1171
- return this.stripe.createToken(this.element, t);
1172
- }
1173
- isPotentiallyValid() {
1174
- return !this.complete && !this.empty && !this.error || this.validate();
1175
- }
1176
- reset() {
1177
- super.reset(), this.element?.clear();
1178
- }
1179
- async submit() {
1180
- switch (this.generate) {
1181
- case "payment-method":
1182
- return this.createPaymentMethod();
1183
- case "source":
1184
- return this.createSource();
1185
- case "token":
1186
- return this.createToken();
1187
- default: {
1188
- const t = this.createError(`cannot generate ${this.generate}`);
1189
- throw d.set(this, { error: t }), await this.updateComplete, t;
1190
- }
1191
- }
1192
- }
1193
- validate() {
1194
- const { complete: t, empty: e, error: r } = this, n = !r && t && !e;
1195
- return e && !r && d.set(this, { error: this.createError("Your card number is empty.") }), n;
1196
- }
1197
- updateStyle() {
1198
- this.element?.update({ style: this.getStripeElementsStyles() });
1199
- }
1200
- getPaymentMethodData() {
1201
- const t = "card", { billingDetails: e, paymentMethodData: r } = this;
1202
- return {
1203
- billing_details: e,
1204
- ...r,
1205
- type: t,
1206
- card: this.element
1207
- };
1208
- }
1209
- getStripeElementsStyles() {
1210
- const t = (i) => this.getCSSCustomPropertyValue(i) || void 0, e = [
1211
- "base",
1212
- "complete",
1213
- "empty",
1214
- "invalid"
1215
- ], r = (i) => (s, o) => {
1216
- if (i.includes("-")) return s;
1217
- const c = o.split(":").pop();
1218
- return {
1219
- ...s,
1220
- [o]: de.reduce(n(`${i}-${c}`), {})
1221
- };
1222
- }, n = (i) => (s, o) => {
1223
- const c = `--stripe-elements-${i}-${Ae(o)}`;
1224
- return {
1225
- ...s,
1226
- [o]: t(c),
1227
- ...ln.reduce(r(i), {})
1228
- };
1229
- };
1230
- return e.reduce((i, s) => ({
1231
- ...i,
1232
- [s]: de.reduce(n(s), {})
1233
- }), {});
1234
- }
1235
- async initElement() {
1236
- if (!this.stripe) return;
1237
- const { hidePostalCode: t, hideIcon: e, iconStyle: r, value: n } = this, i = this.getStripeElementsStyles();
1238
- await this.updateComplete;
1239
- const s = this.createElement({
1240
- hideIcon: e,
1241
- hidePostalCode: t,
1242
- iconStyle: r,
1243
- style: i,
1244
- value: n
1245
- });
1246
- s.on("change", this.onChange), d.set(this, { element: s }), await this.updateComplete;
1247
- }
1248
- createElement(t) {
1249
- return this.elements.create("card", t);
1250
- }
1251
- async onChange(t) {
1252
- const { brand: e, complete: r, empty: n, error: i = null } = t, s = !(i || !n && !r);
1253
- d.set(this, {
1254
- brand: e,
1255
- complete: r,
1256
- empty: n,
1257
- error: i,
1258
- invalid: s
1259
- }), await this.updateComplete, this.fire("change", t);
1260
- }
1261
- };
1262
- w.is = "stripe-elements";
1263
- w.elementType = "card";
1264
- w.styles = [Ie, an];
1265
- a([u({
1266
- type: Boolean,
1267
- attribute: "hide-icon"
1268
- })], w.prototype, "hideIcon", 2);
1269
- a([u({
1270
- type: Boolean,
1271
- attribute: "hide-postal-code"
1272
- })], w.prototype, "hidePostalCode", 2);
1273
- a([u({
1274
- type: String,
1275
- attribute: "icon-style"
1276
- })], w.prototype, "iconStyle", 2);
1277
- a([u({ type: Object })], w.prototype, "value", 2);
1278
- a([
1279
- P,
1280
- d,
1281
- u({ type: String })
1282
- ], w.prototype, "brand", 2);
1283
- a([
1284
- P,
1285
- d,
1286
- u({
1287
- type: Boolean,
1288
- reflect: !0
1289
- })
1290
- ], w.prototype, "complete", 2);
1291
- a([
1292
- P,
1293
- d,
1294
- u({
1295
- type: Boolean,
1296
- reflect: !0
1297
- })
1298
- ], w.prototype, "empty", 2);
1299
- a([
1300
- P,
1301
- d,
1302
- u({
1303
- type: Boolean,
1304
- reflect: !0
1305
- })
1306
- ], w.prototype, "invalid", 2);
1307
- a([qt], w.prototype, "createPaymentMethod", 1);
1308
- a([qt], w.prototype, "createSource", 1);
1309
- a([qt], w.prototype, "createToken", 1);
1310
- a([k], w.prototype, "onChange", 1);
1311
- w = a([ye("stripe-elements")], w);
1312
- var cn = It`#stripe {
1313
- box-sizing: border-box;
1314
- min-width: var(--stripe-payment-request-element-min-width, 300px);
1315
- padding: var(--stripe-payment-request-element-padding, 8px 12px);
1316
- background: var(--stripe-payment-request-element-background, white);
1317
- }
1318
- `;
1319
- function un(t) {
1320
- return t.tagName.toLowerCase() === "stripe-display-item";
1321
- }
1322
- function dn({ dataset: { amount: t, label: e, pending: r } }) {
1323
- return {
1324
- label: e,
1325
- amount: parseInt(t),
1326
- ...r !== void 0 && { pending: r === "true" }
1327
- };
1328
- }
1329
- function pn({ dataset: { amount: t, detail: e, ...r } }) {
1330
- return {
1331
- amount: parseInt(t),
1332
- detail: e,
1333
- ...r
1334
- };
1335
- }
1336
- function hn(t) {
1337
- return un(t) ? dn(t) : pn(t);
1338
- }
1339
- var dt, pt, m = class extends p {
1340
- constructor() {
1341
- super(...arguments), this.canMakePayment = null, ae(this, dt, void 0), this.paymentIntent = null, this.paymentRequest = null, this.pending = !1, ae(this, pt, void 0), this.buttonType = "default", this.buttonTheme = "dark", this.complete = async (t, e) => {
1342
- const { error: r = null } = { ...t }, n = r || e ? "fail" : "success";
1343
- return t.complete(n), this.fire(n, t), e ? { error: e } : t;
1344
- };
1345
- }
1346
- get displayItems() {
1347
- const t = oe(this, dt);
1348
- return Array.isArray(t) ? t : this.parseDatasets("stripe-display-item");
1349
- }
1350
- set displayItems(t) {
1351
- const e = this.displayItems;
1352
- le(this, dt, t), this.requestUpdate("displayItems", e);
1353
- }
1354
- get shippingOptions() {
1355
- const t = oe(this, pt);
1356
- return Array.isArray(t) ? t : this.parseDatasets("stripe-shipping-option");
1357
- }
1358
- set shippingOptions(t) {
1359
- const e = this.shippingOptions;
1360
- le(this, pt, t), this.requestUpdate("shippingOptions", e);
1361
- }
1362
- reset() {
1363
- super.reset(), d.set(this, { paymentIntent: null });
1364
- }
1365
- updated(t) {
1366
- super.updated(t), t.has("generate") && this.initPaymentRequestListeners(), t.has("amount") && this.updatePaymentRequest();
1367
- }
1368
- getStripePaymentRequestOptions() {
1369
- const { country: t, currency: e, displayItems: r, shippingOptions: n, requestShipping: i, requestPayerEmail: s, requestPayerName: o, requestPayerPhone: c, label: l = "", amount: b = 0 } = this;
1370
- return {
1371
- country: t,
1372
- currency: e,
1373
- displayItems: r,
1374
- requestPayerEmail: s,
1375
- requestPayerName: o,
1376
- requestPayerPhone: c,
1377
- requestShipping: i,
1378
- shippingOptions: n,
1379
- total: {
1380
- label: l,
1381
- amount: b
1382
- }
1383
- };
1384
- }
1385
- async initElement() {
1386
- await this.initPaymentRequest(), await this.initPaymentRequestListeners(), await this.initPaymentRequestButton();
1387
- }
1388
- async initPaymentRequest() {
1389
- if (!this.stripe) return;
1390
- const t = this.getStripePaymentRequestOptions(), e = this.stripe.paymentRequest(t), r = await e.canMakePayment();
1391
- d.set(this, {
1392
- paymentRequest: e,
1393
- canMakePayment: r
1394
- }), await this.updateComplete, this.canMakePayment || this.fire("unsupported");
1395
- }
1396
- async initPaymentRequestButton() {
1397
- const { buttonTheme: t, buttonType: e, canMakePayment: r } = this;
1398
- if (!r || !this.elements) return;
1399
- const n = { paymentRequestButton: {
1400
- height: this.getCSSCustomPropertyValue("--stripe-payment-request-button-height") || "40px",
1401
- theme: t,
1402
- type: e
1403
- } }, i = this.elements.create("paymentRequestButton", {
1404
- paymentRequest: this.paymentRequest,
1405
- style: n
1406
- });
1407
- d.set(this, { element: i }), await this.updateComplete;
1408
- }
1409
- async initPaymentRequestListeners() {
1410
- if (this.canMakePayment)
1411
- 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) {
1412
- case "payment-method":
1413
- this.paymentRequest.on("paymentmethod", this.onPaymentResponse);
1414
- break;
1415
- case "source":
1416
- this.paymentRequest.on("source", this.onPaymentResponse);
1417
- break;
1418
- case "token":
1419
- this.paymentRequest.on("token", this.onPaymentResponse);
1420
- break;
1421
- }
1422
- }
1423
- async updatePaymentRequest() {
1424
- if (!this.paymentRequest) return;
1425
- const { currency: t, total: e, displayItems: r, shippingOptions: n } = this.getStripePaymentRequestOptions();
1426
- this.paymentRequest.update({
1427
- currency: t,
1428
- total: e,
1429
- displayItems: r,
1430
- shippingOptions: n
1431
- });
1432
- }
1433
- onCancel() {
1434
- this.fire("cancel");
1435
- }
1436
- async onPaymentResponse(t) {
1437
- const { error: e = null, paymentMethod: r = null, source: n = null, token: i = null } = { ...t };
1438
- d.set(this, {
1439
- error: e,
1440
- paymentMethod: r,
1441
- source: n,
1442
- token: i
1443
- }), this.clientSecret && !e ? this.confirmPaymentIntent(t) : this.complete(t);
1444
- }
1445
- async confirmPaymentIntent(t) {
1446
- const e = { payment_method: this.paymentMethod.id }, r = await this.confirmCardPayment(e, { handleActions: !1 }).then(({ error: s }) => this.complete(t, s)).then(se).then(() => this.confirmCardPayment()).then(se).catch((s) => ({ error: s })), { error: n = null } = r, i = r.paymentIntent ?? null;
1447
- d.set(this, {
1448
- error: n,
1449
- paymentIntent: i
1450
- }), await this.updateComplete;
1451
- }
1452
- async confirmCardPayment(t, e) {
1453
- return this.stripe.confirmCardPayment(this.clientSecret, t, e);
1454
- }
1455
- onShippingaddresschange(t) {
1456
- this.fire("shippingaddresschange", t);
1457
- }
1458
- onShippingoptionchange(t) {
1459
- this.fire("shippingoptionchange", t);
1460
- }
1461
- parseDatasets(t) {
1462
- const e = [...this.querySelectorAll(t)];
1463
- return e.length ? e.map(hn) : [];
1464
- }
1465
- };
1466
- dt = /* @__PURE__ */ new WeakMap();
1467
- pt = /* @__PURE__ */ new WeakMap();
1468
- m.is = "stripe-payment-request";
1469
- m.styles = [Ie, cn];
1470
- a([u({
1471
- type: Number,
1472
- reflect: !0
1473
- })], m.prototype, "amount", 2);
1474
- a([
1475
- P,
1476
- d,
1477
- u({
1478
- type: Boolean,
1479
- attribute: "can-make-payment",
1480
- reflect: !0
1481
- })
1482
- ], m.prototype, "canMakePayment", 2);
1483
- a([u({ type: String })], m.prototype, "country", 2);
1484
- a([u({ type: String })], m.prototype, "currency", 2);
1485
- a([u({ type: Array })], m.prototype, "displayItems", 1);
1486
- a([u({
1487
- type: String,
1488
- reflect: !0
1489
- })], m.prototype, "label", 2);
1490
- a([
1491
- P,
1492
- d,
1493
- u({
1494
- type: Object,
1495
- attribute: "payment-intent"
1496
- })
1497
- ], m.prototype, "paymentIntent", 2);
1498
- a([d, u({
1499
- type: Object,
1500
- attribute: "payment-request"
1501
- })], m.prototype, "paymentRequest", 2);
1502
- a([u({
1503
- type: Boolean,
1504
- reflect: !0
1505
- })], m.prototype, "pending", 2);
1506
- a([u({
1507
- type: Boolean,
1508
- attribute: "request-payer-email"
1509
- })], m.prototype, "requestPayerEmail", 2);
1510
- a([u({
1511
- type: Boolean,
1512
- attribute: "request-payer-name"
1513
- })], m.prototype, "requestPayerName", 2);
1514
- a([u({
1515
- type: Boolean,
1516
- attribute: "request-payer-phone"
1517
- })], m.prototype, "requestPayerPhone", 2);
1518
- a([u({
1519
- type: Boolean,
1520
- attribute: "request-shipping"
1521
- })], m.prototype, "requestShipping", 2);
1522
- a([u({ type: Array })], m.prototype, "shippingOptions", 1);
1523
- a([u({
1524
- type: String,
1525
- attribute: "button-type"
1526
- })], m.prototype, "buttonType", 2);
1527
- a([u({
1528
- type: String,
1529
- attribute: "button-theme"
1530
- })], m.prototype, "buttonTheme", 2);
1531
- a([k], m.prototype, "onCancel", 1);
1532
- a([k], m.prototype, "onPaymentResponse", 1);
1533
- a([k], m.prototype, "confirmPaymentIntent", 1);
1534
- a([k], m.prototype, "confirmCardPayment", 1);
1535
- a([k], m.prototype, "onShippingaddresschange", 1);
1536
- a([k], m.prototype, "onShippingoptionchange", 1);
1537
- m = a([ye("stripe-payment-request")], m);
1538
- function ht(t) {
1539
- "@babel/helpers - typeof";
1540
- return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? ht = function(e) {
1541
- return typeof e;
1542
- } : ht = function(e) {
1543
- return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
1544
- }, ht(t);
1545
- }
1546
- var Ue = "dahlia", mn = function(e) {
1547
- return e === 3 ? "v3" : e;
1548
- }, Ve = "https://js.stripe.com", yn = "".concat(Ve, "/").concat(Ue, "/stripe.js"), fn = /^https:\/\/js\.stripe\.com\/v3\/?(\?.*)?$/, vn = /^https:\/\/js\.stripe\.com\/(v3|[a-z]+)\/stripe\.js(\?.*)?$/, pe = "loadStripe.setLoadParameters was called but an existing Stripe.js script already exists in the document; existing script parameters will be used", gn = function(e) {
1549
- return fn.test(e) || vn.test(e);
1550
- }, bn = function() {
1551
- for (var e = document.querySelectorAll('script[src^="'.concat(Ve, '"]')), r = 0; r < e.length; r++) {
1552
- var n = e[r];
1553
- if (gn(n.src))
1554
- return n;
1555
- }
1556
- return null;
1557
- }, he = function(e) {
1558
- var r = e && !e.advancedFraudSignals ? "?advancedFraudSignals=false" : "", n = document.createElement("script");
1559
- n.src = "".concat(yn).concat(r);
1560
- var i = document.head || document.body;
1561
- if (!i) throw new Error("Expected document.body not to be null. Stripe.js requires a <body> element.");
1562
- return i.appendChild(n), n;
1563
- }, Sn = function(e, r) {
1564
- !e || !e._registerWrapper || e._registerWrapper({
1565
- name: "stripe-js",
1566
- version: "9.4.0",
1567
- startTime: r
1568
- });
1569
- }, J = null, st = null, ot = null, _n = function(e) {
1570
- return function(r) {
1571
- e(new Error("Failed to load Stripe.js", { cause: r }));
1572
- };
1573
- }, wn = function(e, r) {
1574
- return function() {
1575
- window.Stripe ? e(window.Stripe) : r(/* @__PURE__ */ new Error("Stripe.js not available"));
1576
- };
1577
- }, $n = function(e) {
1578
- return J !== null ? J : (J = new Promise(function(r, n) {
1579
- if (typeof window > "u" || typeof document > "u") {
1580
- r(null);
1581
- return;
1582
- }
1583
- if (window.Stripe && e && console.warn(pe), window.Stripe) {
1584
- r(window.Stripe);
1585
- return;
1586
- }
1587
- try {
1588
- var i = bn();
1589
- if (i && e) console.warn(pe);
1590
- else if (!i) i = he(e);
1591
- else if (i && ot !== null && st !== null) {
1592
- var s;
1593
- i.removeEventListener("load", ot), i.removeEventListener("error", st), (s = i.parentNode) === null || s === void 0 || s.removeChild(i), i = he(e);
1594
- }
1595
- ot = wn(r, n), st = _n(n), i.addEventListener("load", ot), i.addEventListener("error", st);
1596
- } catch (o) {
1597
- n(o);
1598
- return;
1599
- }
1600
- }), J.catch(function(r) {
1601
- return J = null, Promise.reject(r);
1602
- }));
1603
- }, Cn = function(e, r, n) {
1604
- if (e === null) return null;
1605
- var i = r[0];
1606
- if (typeof i != "string") throw new Error("Expected publishable key to be of type string, got type ".concat(ht(i), " instead."));
1607
- var s = i.match(/^pk_test/), o = mn(e.version), c = Ue;
1608
- s && o !== c && console.warn("Stripe.js@".concat(o, " was loaded on the page, but @stripe/stripe-js@").concat("9.4.0", " expected Stripe.js@").concat(c, ". This may result in unexpected behavior. For more information, see https://docs.stripe.com/sdks/stripejs-versioning"));
1609
- var l = e.apply(void 0, r);
1610
- return Sn(l, n), l;
1611
- }, Y, qe = !1, Be = function() {
1612
- return Y || (Y = $n(null).catch(function(e) {
1613
- return Y = null, Promise.reject(e);
1614
- }), Y);
1615
- };
1616
- Promise.resolve().then(function() {
1617
- return Be();
1618
- }).catch(function(t) {
1619
- qe || console.warn(t);
1620
- });
1621
- var En = function() {
1622
- for (var e = arguments.length, r = new Array(e), n = 0; n < e; n++) r[n] = arguments[n];
1623
- qe = !0;
1624
- var i = Date.now();
1625
- return Be().then(function(s) {
1626
- return Cn(s, r, i);
1627
- });
1628
- }, Pn = Ze({
1629
- ...or(),
1630
- ...ir(sr(), ["inline"])
1631
- }, "VCheckbox"), An = Xe()({
1632
- name: "VCheckbox",
1633
- inheritAttrs: !1,
1634
- props: Pn(),
1635
- emits: {
1636
- "update:modelValue": (t) => !0,
1637
- "update:focused": (t) => !0
1638
- },
1639
- setup(t, e) {
1640
- let { attrs: r, slots: n } = e;
1641
- const i = We(t, "modelValue"), { isFocused: s, focus: o, blur: c } = cr(t), l = tr(), b = at(() => t.id || `checkbox-${l}`);
1642
- return pr(() => {
1643
- const [y, h] = He(r), g = Wt.filterProps(t), $ = Gt.filterProps(t);
1644
- return v(Wt, jt({ class: ["v-checkbox", t.class] }, y, g, {
1645
- modelValue: i.value,
1646
- "onUpdate:modelValue": (N) => i.value = N,
1647
- id: b.value,
1648
- focused: s.value,
1649
- style: t.style
1650
- }), {
1651
- ...n,
1652
- default: (N) => {
1653
- let { id: M, messagesId: vt, isDisabled: H, isReadonly: gt, isValid: q } = N;
1654
- return v(Gt, jt($, {
1655
- id: M.value,
1656
- "aria-describedby": vt.value,
1657
- disabled: H.value,
1658
- readonly: gt.value
1659
- }, h, {
1660
- error: q.value === !1,
1661
- modelValue: i.value,
1662
- "onUpdate:modelValue": (bt) => i.value = bt,
1663
- onFocus: o,
1664
- onBlur: c
1665
- }), n);
1666
- }
1667
- });
1668
- }), {};
1669
- }
1670
- }), xn = { class: "d-flex justify-space-between w-100 items-center" }, kn = { class: "text-caption font-weight-bold text-red my-0 rounded text-center" }, Rn = { class: "pr-3" }, Tn = [
1671
- "disable",
1672
- "locale",
1673
- "publishable-key"
1674
- ], Mn = ["href"], Ln = { class: "text-caption ml-1" }, Nn = { class: "mr-1" }, ze = /* @__PURE__ */ Ke({
1675
- __name: "CreditCardStripeForm",
1676
- props: {
1677
- amount: {},
1678
- currency: {},
1679
- disabled: { type: Boolean },
1680
- loading: { type: Boolean },
1681
- stripeToken: {},
1682
- withAction: { type: Boolean },
1683
- withTerms: { type: Boolean }
1684
- },
1685
- emits: [
1686
- "change",
1687
- "error",
1688
- "payment:success"
1689
- ],
1690
- setup(t, { expose: e, emit: r }) {
1691
- const n = t, i = zt({ prop: at(() => n.loading) }), s = zt({ prop: at(() => n.disabled) }), { locale: o, t: c } = Je(), l = F(null), b = F(!1), y = F(!1), h = F(null), g = F(null), $ = r, { config: N } = Ye(), { eventBus: M } = er();
1692
- function vt(R) {
1693
- switch (R) {
1694
- case W.Production:
1695
- return "pk_live_x99EPirYIsCyUsRvPAfyhnRp";
1696
- case W.CiCd:
1697
- case W.Local:
1698
- case W.Sandbox:
1699
- case W.Staging:
1700
- default:
1701
- return "pk_test_wXnn2RrefTiOHB0zzxqJr0s8";
1702
- }
1703
- }
1704
- const H = at(() => vt(N.value.apiEnvironment));
1705
- function gt(R) {
1706
- l.value = "", $("change", !!R.detail.complete);
1707
- }
1708
- function q(R) {
1709
- l.value = `${R?.error?.message} - ${c("CreditCardStripeForm.error")}`, $("error", l.value);
1710
- }
1711
- async function bt(R) {
1712
- try {
1713
- if (!window.Stripe || s.value) return;
1714
- const C = window.Stripe(H.value, { locale: Qe(o.value) });
1715
- b.value = !0;
1716
- const rt = await C.confirmCardPayment(n.stripeToken, { payment_method: R.detail.id });
1717
- rt.error ? q(rt.error) : n.withAction ? M.$emit(Dt.PaymentSuccess) : $(Dt.PaymentSuccess);
1718
- } catch (C) {
1719
- q(C);
1720
- }
1721
- }
1722
- function Bt() {
1723
- try {
1724
- return !g.value || n.withTerms && !y.value ? null : g.value.submit();
1725
- } catch (R) {
1726
- return q(R), null;
1727
- }
1728
- }
1729
- return Fe(async () => {
1730
- h.value = await En(H.value);
1731
- }), e({ pay: Bt }), (R, C) => {
1732
- const rt = nr("i18n-t");
1733
- return E(), A(Kt, {
1734
- border: "",
1735
- disabled: _(s),
1736
- elevation: "0",
1737
- style: Ge({ borderColor: _(s) ? "" : "rgb(var(--v-theme-primary))" })
1738
- }, {
1739
- default: f(() => [v(yr, {
1740
- class: "text-white",
1741
- color: "primary",
1742
- density: "compact",
1743
- elevation: "0"
1744
- }, {
1745
- default: f(() => [x("div", xn, [x("h4", null, [
1746
- v(wt, {
1747
- color: "white",
1748
- size: "small",
1749
- start: ""
1750
- }, {
1751
- default: f(() => [...C[2] || (C[2] = [nt(" fas fa-credit-card ", -1)])]),
1752
- _: 1
1753
- }),
1754
- nt(" " + T(_(c)("CreditCardStripeForm.title")) + ": ", 1),
1755
- _(i) ? (E(), A(dr, {
1756
- key: 0,
1757
- class: "ml-2",
1758
- color: "primary",
1759
- indeterminate: "",
1760
- size: "20",
1761
- width: "1"
1762
- })) : (E(), A(Ft, {
1763
- key: 1,
1764
- amount: t.amount,
1765
- class: "font-weight-bold",
1766
- currency: t.currency
1767
- }, null, 8, ["amount", "currency"]))
1768
- ]), v(wt, {
1769
- color: "white",
1770
- end: "",
1771
- size: "small"
1772
- }, {
1773
- default: f(() => [...C[3] || (C[3] = [nt(" fas fa-lock ", -1)])]),
1774
- _: 1
1775
- })])]),
1776
- _: 1
1777
- }), v(mr, null, {
1778
- default: f(() => [
1779
- v(K, null, {
1780
- default: f(() => [v(O, null, {
1781
- default: f(() => [l.value ? (E(), A(ar, {
1782
- key: 0,
1783
- color: "red",
1784
- density: "compact",
1785
- variant: "outlined"
1786
- }, {
1787
- default: f(() => [x("p", kn, T(_(c)("CreditCardStripeForm.paymentDeclined")) + ": " + T(l.value), 1)]),
1788
- _: 1
1789
- })) : _t("", !0)]),
1790
- _: 1
1791
- })]),
1792
- _: 1
1793
- }),
1794
- v(K, {
1795
- class: "d-none d-sm-flex",
1796
- "no-gutters": ""
1797
- }, {
1798
- default: f(() => [v(O, { cols: "8" }, {
1799
- default: f(() => [x("small", null, T(_(c)("CreditCardStripeForm.cardNumber")), 1)]),
1800
- _: 1
1801
- }), v(O, {
1802
- class: "pr-6 text-right",
1803
- cols: "4"
1804
- }, {
1805
- default: f(() => [x("small", Rn, T(_(c)("CreditCardStripeForm.expDate")), 1), x("small", null, T(_(c)("CreditCardStripeForm.cvc")), 1)]),
1806
- _: 1
1807
- })]),
1808
- _: 1
1809
- }),
1810
- v(K, { "no-gutters": "" }, {
1811
- default: f(() => [v(O, null, {
1812
- default: f(() => [v(Kt, {
1813
- border: "",
1814
- elevation: "0"
1815
- }, {
1816
- default: f(() => [h.value ? (E(), St("stripe-elements", {
1817
- key: 0,
1818
- ref_key: "payment",
1819
- ref: g,
1820
- disable: _(i),
1821
- generate: "payment-method",
1822
- "hide-postal-code": "",
1823
- locale: _(o),
1824
- "publishable-key": H.value,
1825
- onChange: gt,
1826
- onError: q,
1827
- onPaymentMethod: bt
1828
- }, null, 40, Tn)) : (E(), A(G, {
1829
- key: 1,
1830
- class: "mx-auto",
1831
- height: "36.8px",
1832
- type: "image",
1833
- width: "100%"
1834
- }))]),
1835
- _: 1
1836
- })]),
1837
- _: 1
1838
- })]),
1839
- _: 1
1840
- }),
1841
- t.withTerms ? (E(), A(K, {
1842
- key: 0,
1843
- class: "mt-2"
1844
- }, {
1845
- default: f(() => [v(O, null, {
1846
- default: f(() => [_(i) ? (E(), A(G, {
1847
- key: 0,
1848
- class: "mt-3",
1849
- height: "25px",
1850
- type: "image",
1851
- width: "50%"
1852
- })) : (E(), A(An, {
1853
- key: 1,
1854
- ref: "testing",
1855
- modelValue: y.value,
1856
- "onUpdate:modelValue": C[1] || (C[1] = (De) => y.value = De)
1857
- }, {
1858
- label: f(() => [x("span", { onClick: C[0] || (C[0] = rr(() => {
1859
- }, ["stop"])) }, [v(rt, {
1860
- keypath: "CreditCardStripeForm.termsAndConditions",
1861
- tag: "span"
1862
- }, {
1863
- linkText: f(() => [x("b", null, [x("a", {
1864
- href: _(c)("CreditCardStripeForm.termsURL"),
1865
- target: "_blank"
1866
- }, T(_(c)("CreditCardStripeForm.termsAndConditionsLinkText")), 9, Mn)])]),
1867
- _: 1
1868
- })])]),
1869
- _: 1
1870
- }, 8, ["modelValue"]))]),
1871
- _: 1
1872
- })]),
1873
- _: 1
1874
- })) : _t("", !0),
1875
- v(K, null, {
1876
- default: f(() => [v(O, { class: "v-col-12 v-col-sm-8 v-col-md-9" }, {
1877
- default: f(() => [_(i) ? (E(), St(Ht, { key: 0 }, [v(G, {
1878
- height: "10px",
1879
- type: "image",
1880
- width: "160px"
1881
- }), v(G, {
1882
- height: "38px",
1883
- type: "image",
1884
- width: "240px"
1885
- })], 64)) : (E(), St(Ht, { key: 1 }, [x("small", Ln, T(_(c)("CreditCardStripeForm.acceptedPaymentMethods")), 1), v(lr, {
1886
- class: "mb-n1",
1887
- height: "45",
1888
- src: "https://revolugo.s3.eu-west-3.amazonaws.com/payment-methods.png",
1889
- width: "240"
1890
- })], 64))]),
1891
- _: 1
1892
- }), t.withAction ? (E(), A(O, {
1893
- key: 0,
1894
- class: "v-col-12 v-col-sm-4 v-col-md-3 align-self-end text-right"
1895
- }, {
1896
- default: f(() => [_(i) ? (E(), A(G, {
1897
- key: 0,
1898
- class: "align-self-end w-100",
1899
- height: "36px",
1900
- type: "image",
1901
- width: "170px"
1902
- })) : (E(), A(hr, {
1903
- key: 1,
1904
- class: "w-sm-auto align-self-end w-100",
1905
- color: "primary",
1906
- "data-gtm-id": "credit-card-stripe-form-pay",
1907
- disabled: _(s) || t.withTerms && !y.value,
1908
- loading: b.value,
1909
- variant: "flat",
1910
- onClick: Bt
1911
- }, {
1912
- default: f(() => [
1913
- v(wt, { start: "" }, {
1914
- default: f(() => [...C[4] || (C[4] = [nt("fas fa-lock", -1)])]),
1915
- _: 1
1916
- }),
1917
- x("span", Nn, T(_(c)("CreditCardStripeForm.payNow")), 1),
1918
- v(Ft, {
1919
- amount: t.amount,
1920
- class: "font-weight-bold",
1921
- currency: t.currency
1922
- }, null, 8, ["amount", "currency"])
1923
- ]),
1924
- _: 1
1925
- }, 8, ["disabled", "loading"]))]),
1926
- _: 1
1927
- })) : _t("", !0)]),
1928
- _: 1
1929
- })
1930
- ]),
1931
- _: 1
1932
- })]),
1933
- _: 1
1934
- }, 8, ["disabled", "style"]);
1935
- };
1936
- }
1937
- });
1938
- function me(t) {
1939
- const e = t;
1940
- e.__i18n = e.__i18n || [], e.__i18n.push({
1941
- locale: "",
1942
- resource: {
1943
- "en-US": { CreditCardStripeForm: {
1944
- acceptedPaymentMethods: {
1945
- t: 0,
1946
- b: {
1947
- t: 2,
1948
- i: [{ t: 3 }],
1949
- s: "Payment Methods Accepted:"
1950
- }
1951
- },
1952
- cardNumber: {
1953
- t: 0,
1954
- b: {
1955
- t: 2,
1956
- i: [{ t: 3 }],
1957
- s: "Card number"
1958
- }
1959
- },
1960
- error: {
1961
- t: 0,
1962
- b: {
1963
- t: 2,
1964
- i: [{ t: 3 }],
1965
- s: "Please, use another payment method"
1966
- }
1967
- },
1968
- or: {
1969
- t: 0,
1970
- b: {
1971
- t: 2,
1972
- i: [{ t: 3 }],
1973
- s: "or"
1974
- }
1975
- },
1976
- cvc: {
1977
- t: 0,
1978
- b: {
1979
- t: 2,
1980
- i: [{ t: 3 }],
1981
- s: "CVC"
1982
- }
1983
- },
1984
- expDate: {
1985
- t: 0,
1986
- b: {
1987
- t: 2,
1988
- i: [{ t: 3 }],
1989
- s: "Exp. Date"
1990
- }
1991
- },
1992
- pay: {
1993
- t: 0,
1994
- b: {
1995
- t: 2,
1996
- i: [{ t: 3 }],
1997
- s: "Total price to pay"
1998
- }
1999
- },
2000
- payByCard: {
2001
- t: 0,
2002
- b: {
2003
- t: 2,
2004
- i: [{ t: 3 }],
2005
- s: "Amount to pay by card"
2006
- }
2007
- },
2008
- paymentDeclined: {
2009
- t: 0,
2010
- b: {
2011
- t: 2,
2012
- i: [{ t: 3 }],
2013
- s: "Payment declined"
2014
- }
2015
- },
2016
- title: {
2017
- t: 0,
2018
- b: {
2019
- t: 2,
2020
- i: [{ t: 3 }],
2021
- s: "Total to pay with your credit card"
2022
- }
2023
- },
2024
- payNow: {
2025
- t: 0,
2026
- b: {
2027
- t: 2,
2028
- i: [{ t: 3 }],
2029
- s: "Pay now"
2030
- }
2031
- },
2032
- termsURL: {
2033
- t: 0,
2034
- b: {
2035
- t: 2,
2036
- i: [{ t: 3 }],
2037
- s: "https://revolugo.s3.amazonaws.com/legal/cgv_revolugo.pdf"
2038
- }
2039
- },
2040
- termsAndConditions: {
2041
- t: 0,
2042
- b: {
2043
- t: 2,
2044
- i: [{
2045
- t: 3,
2046
- v: "By continuing with your reservation you agree to the terms and conditions: "
2047
- }, {
2048
- t: 4,
2049
- k: "linkText"
2050
- }]
2051
- }
2052
- },
2053
- termsAndConditionsLinkText: {
2054
- t: 0,
2055
- b: {
2056
- t: 2,
2057
- i: [{ t: 3 }],
2058
- s: "Click here to read it"
2059
- }
2060
- }
2061
- } },
2062
- "fr-FR": { CreditCardStripeForm: {
2063
- acceptedPaymentMethods: {
2064
- t: 0,
2065
- b: {
2066
- t: 2,
2067
- i: [{ t: 3 }],
2068
- s: "Moyens de Paiement Acceptés:"
2069
- }
2070
- },
2071
- cardNumber: {
2072
- t: 0,
2073
- b: {
2074
- t: 2,
2075
- i: [{ t: 3 }],
2076
- s: "Numéro de carte bancaire"
2077
- }
2078
- },
2079
- error: {
2080
- t: 0,
2081
- b: {
2082
- t: 2,
2083
- i: [{ t: 3 }],
2084
- s: "Veuillez utiliser un autre moyen de paiement."
2085
- }
2086
- },
2087
- or: {
2088
- t: 0,
2089
- b: {
2090
- t: 2,
2091
- i: [{ t: 3 }],
2092
- s: "ou"
2093
- }
2094
- },
2095
- cvc: {
2096
- t: 0,
2097
- b: {
2098
- t: 2,
2099
- i: [{ t: 3 }],
2100
- s: "CVC"
2101
- }
2102
- },
2103
- expDate: {
2104
- t: 0,
2105
- b: {
2106
- t: 2,
2107
- i: [{ t: 3 }],
2108
- s: "Date d'exp."
2109
- }
2110
- },
2111
- pay: {
2112
- t: 0,
2113
- b: {
2114
- t: 2,
2115
- i: [{ t: 3 }],
2116
- s: "Montant total à régler"
2117
- }
2118
- },
2119
- payByCard: {
2120
- t: 0,
2121
- b: {
2122
- t: 2,
2123
- i: [{ t: 3 }],
2124
- s: "Montant à régler par carte bancaire"
2125
- }
2126
- },
2127
- paymentDeclined: {
2128
- t: 0,
2129
- b: {
2130
- t: 2,
2131
- i: [{ t: 3 }],
2132
- s: "Paiement refusé"
2133
- }
2134
- },
2135
- title: {
2136
- t: 0,
2137
- b: {
2138
- t: 2,
2139
- i: [{ t: 3 }],
2140
- s: "Montant total à payer par carte bancaire"
2141
- }
2142
- },
2143
- payNow: {
2144
- t: 0,
2145
- b: {
2146
- t: 2,
2147
- i: [{ t: 3 }],
2148
- s: "Payer maintenant"
2149
- }
2150
- },
2151
- termsURL: {
2152
- t: 0,
2153
- b: {
2154
- t: 2,
2155
- i: [{ t: 3 }],
2156
- s: "https://revolugo.s3.amazonaws.com/legal/cgv_revolugo_fr.pdf"
2157
- }
2158
- },
2159
- termsAndConditions: {
2160
- t: 0,
2161
- b: {
2162
- t: 2,
2163
- i: [{
2164
- t: 3,
2165
- v: "En poursuivant votre réservation, vous acceptez les conditions générales: "
2166
- }, {
2167
- t: 4,
2168
- k: "linkText"
2169
- }]
2170
- }
2171
- },
2172
- termsAndConditionsLinkText: {
2173
- t: 0,
2174
- b: {
2175
- t: 2,
2176
- i: [{ t: 3 }],
2177
- s: "Cliquez ici pour les consulter"
2178
- }
2179
- }
2180
- } },
2181
- "de-DE": { CreditCardStripeForm: {
2182
- acceptedPaymentMethods: {
2183
- t: 0,
2184
- b: {
2185
- t: 2,
2186
- i: [{ t: 3 }],
2187
- s: "Zahlungsmethoden:"
2188
- }
2189
- },
2190
- cardNumber: {
2191
- t: 0,
2192
- b: {
2193
- t: 2,
2194
- i: [{ t: 3 }],
2195
- s: "Kartennummer"
2196
- }
2197
- },
2198
- error: {
2199
- t: 0,
2200
- b: {
2201
- t: 2,
2202
- i: [{ t: 3 }],
2203
- s: "Bitte verwenden Sie eine andere Zahlungsmethode"
2204
- }
2205
- },
2206
- or: {
2207
- t: 0,
2208
- b: {
2209
- t: 2,
2210
- i: [{ t: 3 }],
2211
- s: "oder"
2212
- }
2213
- },
2214
- cvc: {
2215
- t: 0,
2216
- b: {
2217
- t: 2,
2218
- i: [{ t: 3 }],
2219
- s: "CVC"
2220
- }
2221
- },
2222
- expDate: {
2223
- t: 0,
2224
- b: {
2225
- t: 2,
2226
- i: [{ t: 3 }],
2227
- s: "Ablaufdatum"
2228
- }
2229
- },
2230
- pay: {
2231
- t: 0,
2232
- b: {
2233
- t: 2,
2234
- i: [{ t: 3 }],
2235
- s: "Zu zahlender Gesamtpreis"
2236
- }
2237
- },
2238
- payByCard: {
2239
- t: 0,
2240
- b: {
2241
- t: 2,
2242
- i: [{ t: 3 }],
2243
- s: "Betrag, der mit Karte zu zahlen ist"
2244
- }
2245
- },
2246
- paymentDeclined: {
2247
- t: 0,
2248
- b: {
2249
- t: 2,
2250
- i: [{ t: 3 }],
2251
- s: "Zahlung abgelehnt"
2252
- }
2253
- },
2254
- title: {
2255
- t: 0,
2256
- b: {
2257
- t: 2,
2258
- i: [{ t: 3 }],
2259
- s: "Gesamtbetrag zur Zahlung mit Ihrer Kreditkarte"
2260
- }
2261
- },
2262
- payNow: {
2263
- t: 0,
2264
- b: {
2265
- t: 2,
2266
- i: [{ t: 3 }],
2267
- s: "Jetzt bezahlen"
2268
- }
2269
- },
2270
- termsURL: {
2271
- t: 0,
2272
- b: {
2273
- t: 2,
2274
- i: [{ t: 3 }],
2275
- s: "https://revolugo.s3.amazonaws.com/legal/cgv_revolugo.pdf"
2276
- }
2277
- },
2278
- termsAndConditions: {
2279
- t: 0,
2280
- b: {
2281
- t: 2,
2282
- i: [{
2283
- t: 3,
2284
- v: "Indem Sie mit Ihrer Reservierung fortfahren, stimmen Sie den Allgemeinen Geschäftsbedingungen zu: "
2285
- }, {
2286
- t: 4,
2287
- k: "linkText"
2288
- }]
2289
- }
2290
- },
2291
- termsAndConditionsLinkText: {
2292
- t: 0,
2293
- b: {
2294
- t: 2,
2295
- i: [{ t: 3 }],
2296
- s: "Klicken Sie hier, um sie zu lesen"
2297
- }
2298
- }
2299
- } },
2300
- "es-ES": { CreditCardStripeForm: {
2301
- acceptedPaymentMethods: {
2302
- t: 0,
2303
- b: {
2304
- t: 2,
2305
- i: [{ t: 3 }],
2306
- s: "Métodos de Pago:"
2307
- }
2308
- },
2309
- cardNumber: {
2310
- t: 0,
2311
- b: {
2312
- t: 2,
2313
- i: [{ t: 3 }],
2314
- s: "Número de tarjeta"
2315
- }
2316
- },
2317
- error: {
2318
- t: 0,
2319
- b: {
2320
- t: 2,
2321
- i: [{ t: 3 }],
2322
- s: "Por favor, utilice otro método de pago"
2323
- }
2324
- },
2325
- or: {
2326
- t: 0,
2327
- b: {
2328
- t: 2,
2329
- i: [{ t: 3 }],
2330
- s: "o"
2331
- }
2332
- },
2333
- cvc: {
2334
- t: 0,
2335
- b: {
2336
- t: 2,
2337
- i: [{ t: 3 }],
2338
- s: "CVC"
2339
- }
2340
- },
2341
- expDate: {
2342
- t: 0,
2343
- b: {
2344
- t: 2,
2345
- i: [{ t: 3 }],
2346
- s: "Fecha de vencimiento"
2347
- }
2348
- },
2349
- pay: {
2350
- t: 0,
2351
- b: {
2352
- t: 2,
2353
- i: [{ t: 3 }],
2354
- s: "Precio total a pagar"
2355
- }
2356
- },
2357
- payByCard: {
2358
- t: 0,
2359
- b: {
2360
- t: 2,
2361
- i: [{ t: 3 }],
2362
- s: "Importe a pagar con tarjeta"
2363
- }
2364
- },
2365
- paymentDeclined: {
2366
- t: 0,
2367
- b: {
2368
- t: 2,
2369
- i: [{ t: 3 }],
2370
- s: "Pago rechazado"
2371
- }
2372
- },
2373
- title: {
2374
- t: 0,
2375
- b: {
2376
- t: 2,
2377
- i: [{ t: 3 }],
2378
- s: "Total a pagar con su tarjeta de crédito"
2379
- }
2380
- },
2381
- payNow: {
2382
- t: 0,
2383
- b: {
2384
- t: 2,
2385
- i: [{ t: 3 }],
2386
- s: "Pagar ahora"
2387
- }
2388
- },
2389
- termsURL: {
2390
- t: 0,
2391
- b: {
2392
- t: 2,
2393
- i: [{ t: 3 }],
2394
- s: "https://revolugo.s3.amazonaws.com/legal/cgv_revolugo.pdf"
2395
- }
2396
- },
2397
- termsAndConditions: {
2398
- t: 0,
2399
- b: {
2400
- t: 2,
2401
- i: [{
2402
- t: 3,
2403
- v: "Al continuar con su reserva, acepta los términos y condiciones: "
2404
- }, {
2405
- t: 4,
2406
- k: "linkText"
2407
- }]
2408
- }
2409
- },
2410
- termsAndConditionsLinkText: {
2411
- t: 0,
2412
- b: {
2413
- t: 2,
2414
- i: [{ t: 3 }],
2415
- s: "Haga clic aquí para leerlos"
2416
- }
2417
- }
2418
- } },
2419
- "it-IT": { CreditCardStripeForm: {
2420
- acceptedPaymentMethods: {
2421
- t: 0,
2422
- b: {
2423
- t: 2,
2424
- i: [{ t: 3 }],
2425
- s: "Metodi di Pagamento:"
2426
- }
2427
- },
2428
- cardNumber: {
2429
- t: 0,
2430
- b: {
2431
- t: 2,
2432
- i: [{ t: 3 }],
2433
- s: "Numero di carta"
2434
- }
2435
- },
2436
- error: {
2437
- t: 0,
2438
- b: {
2439
- t: 2,
2440
- i: [{ t: 3 }],
2441
- s: "Si prega di utilizzare un altro metodo di pagamento"
2442
- }
2443
- },
2444
- or: {
2445
- t: 0,
2446
- b: {
2447
- t: 2,
2448
- i: [{ t: 3 }],
2449
- s: "o"
2450
- }
2451
- },
2452
- cvc: {
2453
- t: 0,
2454
- b: {
2455
- t: 2,
2456
- i: [{ t: 3 }],
2457
- s: "CVC"
2458
- }
2459
- },
2460
- expDate: {
2461
- t: 0,
2462
- b: {
2463
- t: 2,
2464
- i: [{ t: 3 }],
2465
- s: "Data di scadenza"
2466
- }
2467
- },
2468
- pay: {
2469
- t: 0,
2470
- b: {
2471
- t: 2,
2472
- i: [{ t: 3 }],
2473
- s: "Prezzo totale da pagare"
2474
- }
2475
- },
2476
- payByCard: {
2477
- t: 0,
2478
- b: {
2479
- t: 2,
2480
- i: [{ t: 3 }],
2481
- s: "Importo da pagare con carta"
2482
- }
2483
- },
2484
- paymentDeclined: {
2485
- t: 0,
2486
- b: {
2487
- t: 2,
2488
- i: [{ t: 3 }],
2489
- s: "Pagamento rifiutato"
2490
- }
2491
- },
2492
- title: {
2493
- t: 0,
2494
- b: {
2495
- t: 2,
2496
- i: [{ t: 3 }],
2497
- s: "Totale da pagare con la tua carta di credito"
2498
- }
2499
- },
2500
- payNow: {
2501
- t: 0,
2502
- b: {
2503
- t: 2,
2504
- i: [{ t: 3 }],
2505
- s: "Paga adesso"
2506
- }
2507
- },
2508
- termsURL: {
2509
- t: 0,
2510
- b: {
2511
- t: 2,
2512
- i: [{ t: 3 }],
2513
- s: "https://revolugo.s3.amazonaws.com/legal/cgv_revolugo.pdf"
2514
- }
2515
- },
2516
- termsAndConditions: {
2517
- t: 0,
2518
- b: {
2519
- t: 2,
2520
- i: [{
2521
- t: 3,
2522
- v: "Continuando con la prenotazione, accetti i termini e le condizioni: "
2523
- }, {
2524
- t: 4,
2525
- k: "linkText"
2526
- }]
2527
- }
2528
- },
2529
- termsAndConditionsLinkText: {
2530
- t: 0,
2531
- b: {
2532
- t: 2,
2533
- i: [{ t: 3 }],
2534
- s: "Clicca qui per leggerli"
2535
- }
2536
- }
2537
- } },
2538
- "nl-NL": { CreditCardStripeForm: {
2539
- acceptedPaymentMethods: {
2540
- t: 0,
2541
- b: {
2542
- t: 2,
2543
- i: [{ t: 3 }],
2544
- s: "Betaalmethoden:"
2545
- }
2546
- },
2547
- cardNumber: {
2548
- t: 0,
2549
- b: {
2550
- t: 2,
2551
- i: [{ t: 3 }],
2552
- s: "Kaartnummer"
2553
- }
2554
- },
2555
- error: {
2556
- t: 0,
2557
- b: {
2558
- t: 2,
2559
- i: [{ t: 3 }],
2560
- s: "Gebruik alstublieft een andere betaalmethode"
2561
- }
2562
- },
2563
- or: {
2564
- t: 0,
2565
- b: {
2566
- t: 2,
2567
- i: [{ t: 3 }],
2568
- s: "of"
2569
- }
2570
- },
2571
- cvc: {
2572
- t: 0,
2573
- b: {
2574
- t: 2,
2575
- i: [{ t: 3 }],
2576
- s: "CVC"
2577
- }
2578
- },
2579
- expDate: {
2580
- t: 0,
2581
- b: {
2582
- t: 2,
2583
- i: [{ t: 3 }],
2584
- s: "Vervaldatum"
2585
- }
2586
- },
2587
- pay: {
2588
- t: 0,
2589
- b: {
2590
- t: 2,
2591
- i: [{ t: 3 }],
2592
- s: "Totaal te betalen prijs"
2593
- }
2594
- },
2595
- payByCard: {
2596
- t: 0,
2597
- b: {
2598
- t: 2,
2599
- i: [{ t: 3 }],
2600
- s: "Bedrag te betalen met kaart"
2601
- }
2602
- },
2603
- paymentDeclined: {
2604
- t: 0,
2605
- b: {
2606
- t: 2,
2607
- i: [{ t: 3 }],
2608
- s: "Betaling geweigerd"
2609
- }
2610
- },
2611
- title: {
2612
- t: 0,
2613
- b: {
2614
- t: 2,
2615
- i: [{ t: 3 }],
2616
- s: "Totaal te betalen met uw creditcard"
2617
- }
2618
- },
2619
- payNow: {
2620
- t: 0,
2621
- b: {
2622
- t: 2,
2623
- i: [{ t: 3 }],
2624
- s: "Betaal nu"
2625
- }
2626
- },
2627
- termsURL: {
2628
- t: 0,
2629
- b: {
2630
- t: 2,
2631
- i: [{ t: 3 }],
2632
- s: "https://revolugo.s3.amazonaws.com/legal/cgv_revolugo.pdf"
2633
- }
2634
- },
2635
- termsAndConditions: {
2636
- t: 0,
2637
- b: {
2638
- t: 2,
2639
- i: [{
2640
- t: 3,
2641
- v: "Door verder te gaan met uw reservering, gaat u akkoord met de algemene voorwaarden: "
2642
- }, {
2643
- t: 4,
2644
- k: "linkText"
2645
- }]
2646
- }
2647
- },
2648
- termsAndConditionsLinkText: {
2649
- t: 0,
2650
- b: {
2651
- t: 2,
2652
- i: [{ t: 3 }],
2653
- s: "Klik hier om ze te lezen"
2654
- }
2655
- }
2656
- } },
2657
- "pt-PT": { CreditCardStripeForm: {
2658
- acceptedPaymentMethods: {
2659
- t: 0,
2660
- b: {
2661
- t: 2,
2662
- i: [{ t: 3 }],
2663
- s: "Métodos de Pagamento:"
2664
- }
2665
- },
2666
- cardNumber: {
2667
- t: 0,
2668
- b: {
2669
- t: 2,
2670
- i: [{ t: 3 }],
2671
- s: "Número do cartão"
2672
- }
2673
- },
2674
- error: {
2675
- t: 0,
2676
- b: {
2677
- t: 2,
2678
- i: [{ t: 3 }],
2679
- s: "Por favor, utilize outro método de pagamento"
2680
- }
2681
- },
2682
- or: {
2683
- t: 0,
2684
- b: {
2685
- t: 2,
2686
- i: [{ t: 3 }],
2687
- s: "ou"
2688
- }
2689
- },
2690
- cvc: {
2691
- t: 0,
2692
- b: {
2693
- t: 2,
2694
- i: [{ t: 3 }],
2695
- s: "CVC"
2696
- }
2697
- },
2698
- expDate: {
2699
- t: 0,
2700
- b: {
2701
- t: 2,
2702
- i: [{ t: 3 }],
2703
- s: "Data de validade"
2704
- }
2705
- },
2706
- pay: {
2707
- t: 0,
2708
- b: {
2709
- t: 2,
2710
- i: [{ t: 3 }],
2711
- s: "Preço total a pagar"
2712
- }
2713
- },
2714
- payByCard: {
2715
- t: 0,
2716
- b: {
2717
- t: 2,
2718
- i: [{ t: 3 }],
2719
- s: "Montante a pagar com cartão"
2720
- }
2721
- },
2722
- paymentDeclined: {
2723
- t: 0,
2724
- b: {
2725
- t: 2,
2726
- i: [{ t: 3 }],
2727
- s: "Pagamento recusado"
2728
- }
2729
- },
2730
- title: {
2731
- t: 0,
2732
- b: {
2733
- t: 2,
2734
- i: [{ t: 3 }],
2735
- s: "Total a pagar com o seu cartão de crédito"
2736
- }
2737
- },
2738
- payNow: {
2739
- t: 0,
2740
- b: {
2741
- t: 2,
2742
- i: [{ t: 3 }],
2743
- s: "Pagar agora"
2744
- }
2745
- },
2746
- termsURL: {
2747
- t: 0,
2748
- b: {
2749
- t: 2,
2750
- i: [{ t: 3 }],
2751
- s: "https://revolugo.s3.amazonaws.com/legal/cgv_revolugo.pdf"
2752
- }
2753
- },
2754
- termsAndConditions: {
2755
- t: 0,
2756
- b: {
2757
- t: 2,
2758
- i: [{
2759
- t: 3,
2760
- v: "Ao continuar com a sua reserva, concorda com os termos e condições: "
2761
- }, {
2762
- t: 4,
2763
- k: "linkText"
2764
- }]
2765
- }
2766
- },
2767
- termsAndConditionsLinkText: {
2768
- t: 0,
2769
- b: {
2770
- t: 2,
2771
- i: [{ t: 3 }],
2772
- s: "Clique aqui para os ler"
2773
- }
2774
- }
2775
- } }
2776
- }
2777
- });
2778
- }
2779
- typeof me == "function" && me(ze);
2780
- var zn = /* @__PURE__ */ ur(ze, [["__scopeId", "data-v-0801f6a1"]]);
2781
- je("css/revolugo.creditcardstripeform.CmxpInfL.css");
2782
- export {
2783
- An as n,
2784
- zn as t
2785
- };
2786
-
2787
- //# sourceMappingURL=revolugo.creditcardstripeform.Ba6BWtYz.min.js.map