@revolugo/elements 6.14.6-rc.0 → 6.15.1-rc.0

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 (73) hide show
  1. package/dist/css/{revolugo.cancellationpoliciesbadge.CVnwoRRv.css → revolugo.cancellationpoliciesbadge.DDwUPwrW.css} +1 -1
  2. package/dist/css/{revolugo.creditcardstripeform.CQo4EdV9.css → revolugo.creditcardstripeform.CuNCVfSx.css} +1 -1
  3. package/dist/css/revolugo.preferencesmenu.CKbQGJ3O.css +1 -0
  4. package/dist/css/{revolugo.webcomponentwrapper.Sz4vrcSR.css → revolugo.webcomponentwrapper.DTRm9uoD.css} +1 -1
  5. package/dist/index.es.min.js +1 -1
  6. package/dist/index.es.min.js.map +1 -1
  7. package/dist/index.min.js +1 -1
  8. package/dist/index.min.js.map +1 -1
  9. package/dist/revolugo.banktransferdetails.DjI3QIOP.min.js +47 -0
  10. package/dist/revolugo.bookingdetailssidebar.D_RKCyTt.min.js +43 -0
  11. package/dist/revolugo.bookingmanager.CDc1pDyp.min.js +26 -0
  12. package/dist/revolugo.cancellationpoliciesbadge.props.B3aLLZhR.min.js +29129 -0
  13. package/dist/revolugo.cancellationpoliciesbadge.v-DUj1Hp.min.js +26 -0
  14. package/dist/revolugo.cancellationpolicieslist.CV0g1sCr.min.js +26 -0
  15. package/dist/revolugo.creditcardstripeform.BewtHtxp.min.js +2998 -0
  16. package/dist/revolugo.creditcardstripeform.CcI2t_hG.min.js +50 -0
  17. package/dist/revolugo.currencypickerbtn.DCafnRAy.min.js +26 -0
  18. package/dist/{revolugo.dialog-attach.BOO2g6vS.min.js → revolugo.dialog-attach.AlGDA7ik.min.js} +2 -2
  19. package/dist/revolugo.fastbookingflow.DX3mHf9l.min.js +36 -0
  20. package/dist/revolugo.fullbookingflow.WqvgoMGT.min.js +26 -0
  21. package/dist/revolugo.hoteldescriptionview.D6jGQmUl.min.js +26 -0
  22. package/dist/revolugo.hotelofferlist.mfowiFMI.min.js +26 -0
  23. package/dist/revolugo.hoteloffersearchmenu.qr7J1NLo.min.js +122 -0
  24. package/dist/revolugo.hoteloffersmap.Blm3e2O-.min.js +26 -0
  25. package/dist/revolugo.hoteloffersview.djEZ5zo8.min.js +29 -0
  26. package/dist/revolugo.hotelroomofferlist.CdD-q7yY.min.js +26 -0
  27. package/dist/revolugo.hotelroomoffersbookingflow.CWysa7Nv.min.js +26 -0
  28. package/dist/revolugo.hotelroomoffersearchmenu.BSDtS9Ws.min.js +26 -0
  29. package/dist/revolugo.hotelroomoffersview.ByBpPOvZ.min.js +26 -0
  30. package/dist/revolugo.index.CQvFIiNt.min.js +101 -0
  31. package/dist/revolugo.index.wc.DfQ8duWr.min.js +30175 -0
  32. package/dist/revolugo.langpickerbtn.CL9xYB1F.min.js +31 -0
  33. package/dist/revolugo.min.js +1 -1
  34. package/dist/revolugo.prebookform.DtXZEPPa.min.js +26 -0
  35. package/dist/revolugo.preferencesmenu.2JmC5pTl.min.js +24 -0
  36. package/dist/revolugo.preferencesmenu.DzlsEkgg.min.js +943 -0
  37. package/dist/revolugo.roominglisteditor.CHDeYuW-.min.js +26 -0
  38. package/dist/revolugo.storybooktoolbar.BgdWlsv1.min.js +828 -0
  39. package/dist/revolugo.termsandconditions.5iF7mOGl.min.js +31 -0
  40. package/dist/{revolugo.vtoolbar.BrJsPjyn.min.js → revolugo.vtoolbar.fS7xpXX7.min.js} +40 -40
  41. package/dist/revolugo.webcomponentwrapper.DmGYDu7L.min.js +30887 -0
  42. package/package.json +13 -148
  43. package/dist/css/revolugo.preferencesmenu.xwW9g-pj.css +0 -1
  44. package/dist/revolugo.banktransferdetails.Cub44miS.min.js +0 -47
  45. package/dist/revolugo.bookingdetailssidebar.FLVMXWfb.min.js +0 -43
  46. package/dist/revolugo.bookingmanager.Kt-XEVcb.min.js +0 -26
  47. package/dist/revolugo.cancellationpoliciesbadge.props.B3Oir2JL.min.js +0 -28795
  48. package/dist/revolugo.cancellationpoliciesbadge.wXqASj4o.min.js +0 -26
  49. package/dist/revolugo.cancellationpolicieslist.CB2jqcOC.min.js +0 -26
  50. package/dist/revolugo.creditcardstripeform.BKHC0EXa.min.js +0 -50
  51. package/dist/revolugo.creditcardstripeform.CFj-X3B1.min.js +0 -2137
  52. package/dist/revolugo.currencypickerbtn.Bil8a4MK.min.js +0 -26
  53. package/dist/revolugo.fastbookingflow.Ey7heNp3.min.js +0 -36
  54. package/dist/revolugo.fullbookingflow.BmEQb3hX.min.js +0 -26
  55. package/dist/revolugo.hoteldescriptionview.CQjMsC50.min.js +0 -26
  56. package/dist/revolugo.hotelofferlist.BCSGpg35.min.js +0 -26
  57. package/dist/revolugo.hoteloffersearchmenu.CX8d-C9i.min.js +0 -115
  58. package/dist/revolugo.hoteloffersmap.DZCoqYy9.min.js +0 -26
  59. package/dist/revolugo.hoteloffersview.Dl6PHNuf.min.js +0 -21
  60. package/dist/revolugo.hotelroomofferlist.D_K55U8L.min.js +0 -26
  61. package/dist/revolugo.hotelroomoffersbookingflow.Cxftg_K5.min.js +0 -26
  62. package/dist/revolugo.hotelroomoffersearchmenu.BAW7QSdh.min.js +0 -26
  63. package/dist/revolugo.hotelroomoffersview.Cck3d1D7.min.js +0 -26
  64. package/dist/revolugo.index.CE4W8vd5.min.js +0 -101
  65. package/dist/revolugo.index.wc.C1k5jVOs.min.js +0 -24036
  66. package/dist/revolugo.langpickerbtn.hPOI4yKr.min.js +0 -31
  67. package/dist/revolugo.prebookform.ta_y5ufY.min.js +0 -26
  68. package/dist/revolugo.preferencesmenu.CNzF7xpj.min.js +0 -24
  69. package/dist/revolugo.preferencesmenu.shY-3UnD.min.js +0 -932
  70. package/dist/revolugo.roominglisteditor.CzQTR_4C.min.js +0 -26
  71. package/dist/revolugo.storybooktoolbar.D828oQt9.min.js +0 -824
  72. package/dist/revolugo.termsandconditions.sDirhmY4.min.js +0 -31
  73. package/dist/revolugo.webcomponentwrapper.BE6Todxg.min.js +0 -30737
@@ -0,0 +1,2998 @@
1
+ import { aY as fn, h as H, H as mn, I as pn, J as hn, aZ as yn, b as me, P as gn, ao as vn, a as _, m as ft, d as bn, u as _n, aD as Sn, aG as wn, v as Pn, a_ as X, a$ as Cn, E as mt, c as $, w as b, a7 as En, o as C, y as z, l as ce, x as I, f as $e, i as ke, j as xn, F as pt } from "./revolugo.index.wc.DfQ8duWr.min.js";
2
+ import { d as Tn, V as $n } from "./revolugo.vtoolbar.fS7xpXX7.min.js";
3
+ import { aA as kn, v as Rn, aF as Nn, bd as Mn, aB as ht, be as yt, o as An, _ as Vn, a as gt, k as Re, J as zn, b as On, d as Q, e as q, S as In, K as ee, ae as Ln, j as qn } from "./revolugo.webcomponentwrapper.DmGYDu7L.min.js";
4
+ function un(n) {
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, t = e.slice(0, e.lastIndexOf("/") + 1) + n;
12
+ window.REVOLUGO_ELEMENTS_STYLES.sheets.push(t);
13
+ for (const o of REVOLUGO_ELEMENTS_STYLES.components)
14
+ o(t);
15
+ if (n.indexOf("fonts") >= 0) {
16
+ const o = document.createElement("link");
17
+ o.rel = "stylesheet", linK.href = t, document.head.appendChild(o);
18
+ }
19
+ }
20
+ } catch (e) {
21
+ console.error("[revolugo-elements] ", e);
22
+ }
23
+ }
24
+ function Un(n, e, t) {
25
+ if (n == null)
26
+ return e;
27
+ const o = t || ((s) => s);
28
+ if (typeof n == "string")
29
+ try {
30
+ return o(JSON.parse(n));
31
+ } catch {
32
+ return e;
33
+ }
34
+ return o(n);
35
+ }
36
+ function vt({
37
+ cb: n,
38
+ fallbackValue: e,
39
+ prop: t
40
+ }) {
41
+ const o = Un(fn(t.value), e, n), s = Tn(structuredClone(o), e || {});
42
+ return H(o && s);
43
+ }
44
+ const Bn = pn({
45
+ ...Nn(),
46
+ ...gn(Mn(), ["inline"])
47
+ }, "VCheckbox"), Dn = mn()({
48
+ name: "VCheckbox",
49
+ inheritAttrs: !1,
50
+ props: Bn(),
51
+ emits: {
52
+ "update:modelValue": (n) => !0,
53
+ "update:focused": (n) => !0
54
+ },
55
+ setup(n, e) {
56
+ let {
57
+ attrs: t,
58
+ slots: o
59
+ } = e;
60
+ const s = hn(n, "modelValue"), {
61
+ isFocused: r,
62
+ focus: i,
63
+ blur: c
64
+ } = kn(n), l = yn(), f = me(() => n.id || `checkbox-${l}`);
65
+ return Rn(() => {
66
+ const [S, v] = vn(t), h = ht.filterProps(n), y = yt.filterProps(n);
67
+ return _(ht, ft({
68
+ class: ["v-checkbox", n.class]
69
+ }, S, h, {
70
+ modelValue: s.value,
71
+ "onUpdate:modelValue": (R) => s.value = R,
72
+ id: f.value,
73
+ focused: r.value,
74
+ style: n.style
75
+ }), {
76
+ ...o,
77
+ default: (R) => {
78
+ let {
79
+ id: j,
80
+ messagesId: V,
81
+ isDisabled: Z,
82
+ isReadonly: Ee,
83
+ isValid: W
84
+ } = R;
85
+ return _(yt, ft(y, {
86
+ id: j.value,
87
+ "aria-describedby": V.value,
88
+ disabled: Z.value,
89
+ readonly: Ee.value
90
+ }, v, {
91
+ error: W.value === !1,
92
+ modelValue: s.value,
93
+ "onUpdate:modelValue": (xe) => s.value = xe,
94
+ onFocus: i,
95
+ onBlur: c
96
+ }), o);
97
+ }
98
+ });
99
+ }), {};
100
+ }
101
+ });
102
+ const Fn = (n, e) => (customElements.define(n, e), e), jn = (n, e) => {
103
+ const { kind: t, elements: o } = e;
104
+ return {
105
+ kind: t,
106
+ elements: o,
107
+ // This callback is called once the class is otherwise fully defined
108
+ finisher(s) {
109
+ customElements.define(n, s);
110
+ }
111
+ };
112
+ }, qt = (n) => (e) => typeof e == "function" ? Fn(n, e) : jn(n, e);
113
+ const Wn = (n, e) => e.kind === "method" && e.descriptor && !("value" in e.descriptor) ? {
114
+ ...e,
115
+ finisher(t) {
116
+ t.createProperty(e.key, n);
117
+ }
118
+ } : {
119
+ kind: "field",
120
+ key: Symbol(),
121
+ placement: "own",
122
+ descriptor: {},
123
+ // store the original key so subsequent decorators have access to it.
124
+ originalKey: e.key,
125
+ // When @babel/plugin-proposal-decorators implements initializers,
126
+ // do this instead of the initializer below. See:
127
+ // https://github.com/babel/babel/issues/9260 extras: [
128
+ // {
129
+ // kind: 'initializer',
130
+ // placement: 'own',
131
+ // initializer: descriptor.initializer,
132
+ // }
133
+ // ],
134
+ initializer() {
135
+ typeof e.initializer == "function" && (this[e.key] = e.initializer.call(this));
136
+ },
137
+ finisher(t) {
138
+ t.createProperty(e.key, n);
139
+ }
140
+ }, Hn = (n, e, t) => {
141
+ e.constructor.createProperty(t, n);
142
+ };
143
+ function u(n) {
144
+ return (e, t) => t !== void 0 ? Hn(n, e, t) : Wn(n, e);
145
+ }
146
+ var Ne;
147
+ const Kn = window;
148
+ ((Ne = Kn.HTMLSlotElement) === null || Ne === void 0 ? void 0 : Ne.prototype.assignedElements) != null;
149
+ var bt = !0;
150
+ function k(n, e, t) {
151
+ if (typeof t?.value != "function")
152
+ throw new TypeError(`Only methods can be decorated with @bound. <${e ?? n.name}> is not a method!`);
153
+ return {
154
+ configurable: bt,
155
+ get() {
156
+ const o = t.value.bind(this);
157
+ return Object.defineProperty(this, e, { value: o, configurable: bt, writable: !0 }), o;
158
+ }
159
+ };
160
+ }
161
+ const Gn = !1, pe = window, tt = pe.ShadowRoot && (pe.ShadyCSS === void 0 || pe.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, nt = Symbol(), _t = /* @__PURE__ */ new WeakMap();
162
+ class Ut {
163
+ constructor(e, t, o) {
164
+ if (this._$cssResult$ = !0, o !== nt)
165
+ throw new Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
166
+ this.cssText = e, this._strings = t;
167
+ }
168
+ // This is a getter so that it's lazy. In practice, this means stylesheets
169
+ // are not created until the first element instance is made.
170
+ get styleSheet() {
171
+ let e = this._styleSheet;
172
+ const t = this._strings;
173
+ if (tt && e === void 0) {
174
+ const o = t !== void 0 && t.length === 1;
175
+ o && (e = _t.get(t)), e === void 0 && ((this._styleSheet = e = new CSSStyleSheet()).replaceSync(this.cssText), o && _t.set(t, e));
176
+ }
177
+ return e;
178
+ }
179
+ toString() {
180
+ return this.cssText;
181
+ }
182
+ }
183
+ const Jn = (n) => {
184
+ if (n._$cssResult$ === !0)
185
+ return n.cssText;
186
+ if (typeof n == "number")
187
+ return n;
188
+ throw new Error(`Value passed to 'css' function must be a 'css' function result: ${n}. Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.`);
189
+ }, Yn = (n) => new Ut(typeof n == "string" ? n : String(n), void 0, nt), ot = (n, ...e) => {
190
+ const t = n.length === 1 ? n[0] : e.reduce((o, s, r) => o + Jn(s) + n[r + 1], n[0]);
191
+ return new Ut(t, n, nt);
192
+ }, Zn = (n, e) => {
193
+ tt ? n.adoptedStyleSheets = e.map((t) => t instanceof CSSStyleSheet ? t : t.styleSheet) : e.forEach((t) => {
194
+ const o = document.createElement("style"), s = pe.litNonce;
195
+ s !== void 0 && o.setAttribute("nonce", s), o.textContent = t.cssText, n.appendChild(o);
196
+ });
197
+ }, Xn = (n) => {
198
+ let e = "";
199
+ for (const t of n.cssRules)
200
+ e += t.cssText;
201
+ return Yn(e);
202
+ }, St = tt || Gn ? (n) => n : (n) => n instanceof CSSStyleSheet ? Xn(n) : n;
203
+ var Me, Ae, Ve, Bt;
204
+ const M = window;
205
+ let Dt, L;
206
+ const wt = M.trustedTypes, Qn = wt ? wt.emptyScript : "", he = M.reactiveElementPolyfillSupportDevMode;
207
+ {
208
+ const n = (Me = M.litIssuedWarnings) !== null && Me !== void 0 ? Me : M.litIssuedWarnings = /* @__PURE__ */ new Set();
209
+ L = (e, t) => {
210
+ t += ` See https://lit.dev/msg/${e} for more information.`, n.has(t) || (console.warn(t), n.add(t));
211
+ }, L("dev-mode", "Lit is in dev mode. Not recommended for production!"), !((Ae = M.ShadyDOM) === null || Ae === void 0) && Ae.inUse && he === void 0 && L("polyfill-support-missing", "Shadow DOM is being polyfilled via `ShadyDOM` but the `polyfill-support` module has not been loaded."), Dt = (e) => ({
212
+ then: (t, o) => {
213
+ L("request-update-promise", `The \`requestUpdate\` method should no longer return a Promise but does so on \`${e}\`. Use \`updateComplete\` instead.`), t !== void 0 && t(!1);
214
+ }
215
+ });
216
+ }
217
+ const ze = (n) => {
218
+ M.emitLitDebugLogEvents && M.dispatchEvent(new CustomEvent("lit-debug", {
219
+ detail: n
220
+ }));
221
+ }, Ft = (n, e) => n, Ye = {
222
+ toAttribute(n, e) {
223
+ switch (e) {
224
+ case Boolean:
225
+ n = n ? Qn : null;
226
+ break;
227
+ case Object:
228
+ case Array:
229
+ n = n == null ? n : JSON.stringify(n);
230
+ break;
231
+ }
232
+ return n;
233
+ },
234
+ fromAttribute(n, e) {
235
+ let t = n;
236
+ switch (e) {
237
+ case Boolean:
238
+ t = n !== null;
239
+ break;
240
+ case Number:
241
+ t = n === null ? null : Number(n);
242
+ break;
243
+ case Object:
244
+ case Array:
245
+ try {
246
+ t = JSON.parse(n);
247
+ } catch {
248
+ t = null;
249
+ }
250
+ break;
251
+ }
252
+ return t;
253
+ }
254
+ }, jt = (n, e) => e !== n && (e === e || n === n), Oe = {
255
+ attribute: !0,
256
+ type: String,
257
+ converter: Ye,
258
+ reflect: !1,
259
+ hasChanged: jt
260
+ }, Ze = "finalized";
261
+ class A extends HTMLElement {
262
+ constructor() {
263
+ super(), this.__instanceProperties = /* @__PURE__ */ new Map(), this.isUpdatePending = !1, this.hasUpdated = !1, this.__reflectingProperty = null, this.__initialize();
264
+ }
265
+ /**
266
+ * Adds an initializer function to the class that is called during instance
267
+ * construction.
268
+ *
269
+ * This is useful for code that runs against a `ReactiveElement`
270
+ * subclass, such as a decorator, that needs to do work for each
271
+ * instance, such as setting up a `ReactiveController`.
272
+ *
273
+ * ```ts
274
+ * const myDecorator = (target: typeof ReactiveElement, key: string) => {
275
+ * target.addInitializer((instance: ReactiveElement) => {
276
+ * // This is run during construction of the element
277
+ * new MyController(instance);
278
+ * });
279
+ * }
280
+ * ```
281
+ *
282
+ * Decorating a field will then cause each instance to run an initializer
283
+ * that adds a controller:
284
+ *
285
+ * ```ts
286
+ * class MyElement extends LitElement {
287
+ * @myDecorator foo;
288
+ * }
289
+ * ```
290
+ *
291
+ * Initializers are stored per-constructor. Adding an initializer to a
292
+ * subclass does not add it to a superclass. Since initializers are run in
293
+ * constructors, initializers will run in order of the class hierarchy,
294
+ * starting with superclasses and progressing to the instance's class.
295
+ *
296
+ * @nocollapse
297
+ */
298
+ static addInitializer(e) {
299
+ var t;
300
+ this.finalize(), ((t = this._initializers) !== null && t !== void 0 ? t : this._initializers = []).push(e);
301
+ }
302
+ /**
303
+ * Returns a list of attributes corresponding to the registered properties.
304
+ * @nocollapse
305
+ * @category attributes
306
+ */
307
+ static get observedAttributes() {
308
+ this.finalize();
309
+ const e = [];
310
+ return this.elementProperties.forEach((t, o) => {
311
+ const s = this.__attributeNameForProperty(o, t);
312
+ s !== void 0 && (this.__attributeToPropertyMap.set(s, o), e.push(s));
313
+ }), e;
314
+ }
315
+ /**
316
+ * Creates a property accessor on the element prototype if one does not exist
317
+ * and stores a {@linkcode PropertyDeclaration} for the property with the
318
+ * given options. The property setter calls the property's `hasChanged`
319
+ * property option or uses a strict identity check to determine whether or not
320
+ * to request an update.
321
+ *
322
+ * This method may be overridden to customize properties; however,
323
+ * when doing so, it's important to call `super.createProperty` to ensure
324
+ * the property is setup correctly. This method calls
325
+ * `getPropertyDescriptor` internally to get a descriptor to install.
326
+ * To customize what properties do when they are get or set, override
327
+ * `getPropertyDescriptor`. To customize the options for a property,
328
+ * implement `createProperty` like this:
329
+ *
330
+ * ```ts
331
+ * static createProperty(name, options) {
332
+ * options = Object.assign(options, {myOption: true});
333
+ * super.createProperty(name, options);
334
+ * }
335
+ * ```
336
+ *
337
+ * @nocollapse
338
+ * @category properties
339
+ */
340
+ static createProperty(e, t = Oe) {
341
+ var o;
342
+ if (t.state && (t.attribute = !1), this.finalize(), this.elementProperties.set(e, t), !t.noAccessor && !this.prototype.hasOwnProperty(e)) {
343
+ const s = typeof e == "symbol" ? Symbol() : `__${e}`, r = this.getPropertyDescriptor(e, s, t);
344
+ r !== void 0 && (Object.defineProperty(this.prototype, e, r), this.hasOwnProperty("__reactivePropertyKeys") || (this.__reactivePropertyKeys = new Set((o = this.__reactivePropertyKeys) !== null && o !== void 0 ? o : [])), this.__reactivePropertyKeys.add(e));
345
+ }
346
+ }
347
+ /**
348
+ * Returns a property descriptor to be defined on the given named property.
349
+ * If no descriptor is returned, the property will not become an accessor.
350
+ * For example,
351
+ *
352
+ * ```ts
353
+ * class MyElement extends LitElement {
354
+ * static getPropertyDescriptor(name, key, options) {
355
+ * const defaultDescriptor =
356
+ * super.getPropertyDescriptor(name, key, options);
357
+ * const setter = defaultDescriptor.set;
358
+ * return {
359
+ * get: defaultDescriptor.get,
360
+ * set(value) {
361
+ * setter.call(this, value);
362
+ * // custom action.
363
+ * },
364
+ * configurable: true,
365
+ * enumerable: true
366
+ * }
367
+ * }
368
+ * }
369
+ * ```
370
+ *
371
+ * @nocollapse
372
+ * @category properties
373
+ */
374
+ static getPropertyDescriptor(e, t, o) {
375
+ return {
376
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
377
+ get() {
378
+ return this[t];
379
+ },
380
+ set(s) {
381
+ const r = this[e];
382
+ this[t] = s, this.requestUpdate(e, r, o);
383
+ },
384
+ configurable: !0,
385
+ enumerable: !0
386
+ };
387
+ }
388
+ /**
389
+ * Returns the property options associated with the given property.
390
+ * These options are defined with a `PropertyDeclaration` via the `properties`
391
+ * object or the `@property` decorator and are registered in
392
+ * `createProperty(...)`.
393
+ *
394
+ * Note, this method should be considered "final" and not overridden. To
395
+ * customize the options for a given property, override
396
+ * {@linkcode createProperty}.
397
+ *
398
+ * @nocollapse
399
+ * @final
400
+ * @category properties
401
+ */
402
+ static getPropertyOptions(e) {
403
+ return this.elementProperties.get(e) || Oe;
404
+ }
405
+ /**
406
+ * Creates property accessors for registered properties, sets up element
407
+ * styling, and ensures any superclasses are also finalized. Returns true if
408
+ * the element was finalized.
409
+ * @nocollapse
410
+ */
411
+ static finalize() {
412
+ if (this.hasOwnProperty(Ze))
413
+ return !1;
414
+ this[Ze] = !0;
415
+ const e = Object.getPrototypeOf(this);
416
+ if (e.finalize(), e._initializers !== void 0 && (this._initializers = [...e._initializers]), this.elementProperties = new Map(e.elementProperties), this.__attributeToPropertyMap = /* @__PURE__ */ new Map(), this.hasOwnProperty(Ft("properties"))) {
417
+ const t = this.properties, o = [
418
+ ...Object.getOwnPropertyNames(t),
419
+ ...Object.getOwnPropertySymbols(t)
420
+ ];
421
+ for (const s of o)
422
+ this.createProperty(s, t[s]);
423
+ }
424
+ this.elementStyles = this.finalizeStyles(this.styles);
425
+ {
426
+ const t = (o, s = !1) => {
427
+ this.prototype.hasOwnProperty(o) && L(s ? "renamed-api" : "removed-api", `\`${o}\` is implemented on class ${this.name}. It has been ${s ? "renamed" : "removed"} in this version of LitElement.`);
428
+ };
429
+ t("initialize"), t("requestUpdateInternal"), t("_getUpdateComplete", !0);
430
+ }
431
+ return !0;
432
+ }
433
+ /**
434
+ * Takes the styles the user supplied via the `static styles` property and
435
+ * returns the array of styles to apply to the element.
436
+ * Override this method to integrate into a style management system.
437
+ *
438
+ * Styles are deduplicated preserving the _last_ instance in the list. This
439
+ * is a performance optimization to avoid duplicated styles that can occur
440
+ * especially when composing via subclassing. The last item is kept to try
441
+ * to preserve the cascade order with the assumption that it's most important
442
+ * that last added styles override previous styles.
443
+ *
444
+ * @nocollapse
445
+ * @category styles
446
+ */
447
+ static finalizeStyles(e) {
448
+ const t = [];
449
+ if (Array.isArray(e)) {
450
+ const o = new Set(e.flat(1 / 0).reverse());
451
+ for (const s of o)
452
+ t.unshift(St(s));
453
+ } else e !== void 0 && t.push(St(e));
454
+ return t;
455
+ }
456
+ /**
457
+ * Returns the property name for the given attribute `name`.
458
+ * @nocollapse
459
+ */
460
+ static __attributeNameForProperty(e, t) {
461
+ const o = t.attribute;
462
+ return o === !1 ? void 0 : typeof o == "string" ? o : typeof e == "string" ? e.toLowerCase() : void 0;
463
+ }
464
+ /**
465
+ * Internal only override point for customizing work done when elements
466
+ * are constructed.
467
+ */
468
+ __initialize() {
469
+ var e;
470
+ this.__updatePromise = new Promise((t) => this.enableUpdating = t), this._$changedProperties = /* @__PURE__ */ new Map(), this.__saveInstanceProperties(), this.requestUpdate(), (e = this.constructor._initializers) === null || e === void 0 || e.forEach((t) => t(this));
471
+ }
472
+ /**
473
+ * Registers a `ReactiveController` to participate in the element's reactive
474
+ * update cycle. The element automatically calls into any registered
475
+ * controllers during its lifecycle callbacks.
476
+ *
477
+ * If the element is connected when `addController()` is called, the
478
+ * controller's `hostConnected()` callback will be immediately called.
479
+ * @category controllers
480
+ */
481
+ addController(e) {
482
+ var t, o;
483
+ ((t = this.__controllers) !== null && t !== void 0 ? t : this.__controllers = []).push(e), this.renderRoot !== void 0 && this.isConnected && ((o = e.hostConnected) === null || o === void 0 || o.call(e));
484
+ }
485
+ /**
486
+ * Removes a `ReactiveController` from the element.
487
+ * @category controllers
488
+ */
489
+ removeController(e) {
490
+ var t;
491
+ (t = this.__controllers) === null || t === void 0 || t.splice(this.__controllers.indexOf(e) >>> 0, 1);
492
+ }
493
+ /**
494
+ * Fixes any properties set on the instance before upgrade time.
495
+ * Otherwise these would shadow the accessor and break these properties.
496
+ * The properties are stored in a Map which is played back after the
497
+ * constructor runs. Note, on very old versions of Safari (<=9) or Chrome
498
+ * (<=41), properties created for native platform properties like (`id` or
499
+ * `name`) may not have default values set in the element constructor. On
500
+ * these browsers native properties appear on instances and therefore their
501
+ * default value will overwrite any element default (e.g. if the element sets
502
+ * this.id = 'id' in the constructor, the 'id' will become '' since this is
503
+ * the native platform default).
504
+ */
505
+ __saveInstanceProperties() {
506
+ this.constructor.elementProperties.forEach((e, t) => {
507
+ this.hasOwnProperty(t) && (this.__instanceProperties.set(t, this[t]), delete this[t]);
508
+ });
509
+ }
510
+ /**
511
+ * Returns the node into which the element should render and by default
512
+ * creates and returns an open shadowRoot. Implement to customize where the
513
+ * element's DOM is rendered. For example, to render into the element's
514
+ * childNodes, return `this`.
515
+ *
516
+ * @return Returns a node into which to render.
517
+ * @category rendering
518
+ */
519
+ createRenderRoot() {
520
+ var e;
521
+ const t = (e = this.shadowRoot) !== null && e !== void 0 ? e : this.attachShadow(this.constructor.shadowRootOptions);
522
+ return Zn(t, this.constructor.elementStyles), t;
523
+ }
524
+ /**
525
+ * On first connection, creates the element's renderRoot, sets up
526
+ * element styling, and enables updating.
527
+ * @category lifecycle
528
+ */
529
+ connectedCallback() {
530
+ var e;
531
+ this.renderRoot === void 0 && (this.renderRoot = this.createRenderRoot()), this.enableUpdating(!0), (e = this.__controllers) === null || e === void 0 || e.forEach((t) => {
532
+ var o;
533
+ return (o = t.hostConnected) === null || o === void 0 ? void 0 : o.call(t);
534
+ });
535
+ }
536
+ /**
537
+ * Note, this method should be considered final and not overridden. It is
538
+ * overridden on the element instance with a function that triggers the first
539
+ * update.
540
+ * @category updates
541
+ */
542
+ enableUpdating(e) {
543
+ }
544
+ /**
545
+ * Allows for `super.disconnectedCallback()` in extensions while
546
+ * reserving the possibility of making non-breaking feature additions
547
+ * when disconnecting at some point in the future.
548
+ * @category lifecycle
549
+ */
550
+ disconnectedCallback() {
551
+ var e;
552
+ (e = this.__controllers) === null || e === void 0 || e.forEach((t) => {
553
+ var o;
554
+ return (o = t.hostDisconnected) === null || o === void 0 ? void 0 : o.call(t);
555
+ });
556
+ }
557
+ /**
558
+ * Synchronizes property values when attributes change.
559
+ *
560
+ * Specifically, when an attribute is set, the corresponding property is set.
561
+ * You should rarely need to implement this callback. If this method is
562
+ * overridden, `super.attributeChangedCallback(name, _old, value)` must be
563
+ * called.
564
+ *
565
+ * See [using the lifecycle callbacks](https://developer.mozilla.org/en-US/docs/Web/Web_Components/Using_custom_elements#using_the_lifecycle_callbacks)
566
+ * on MDN for more information about the `attributeChangedCallback`.
567
+ * @category attributes
568
+ */
569
+ attributeChangedCallback(e, t, o) {
570
+ this._$attributeToProperty(e, o);
571
+ }
572
+ __propertyToAttribute(e, t, o = Oe) {
573
+ var s;
574
+ const r = this.constructor.__attributeNameForProperty(e, o);
575
+ if (r !== void 0 && o.reflect === !0) {
576
+ const c = (((s = o.converter) === null || s === void 0 ? void 0 : s.toAttribute) !== void 0 ? o.converter : Ye).toAttribute(t, o.type);
577
+ this.constructor.enabledWarnings.indexOf("migration") >= 0 && c === void 0 && L("undefined-attribute-value", `The attribute value for the ${e} property is undefined on element ${this.localName}. The attribute will be removed, but in the previous version of \`ReactiveElement\`, the attribute would not have changed.`), this.__reflectingProperty = e, c == null ? this.removeAttribute(r) : this.setAttribute(r, c), this.__reflectingProperty = null;
578
+ }
579
+ }
580
+ /** @internal */
581
+ _$attributeToProperty(e, t) {
582
+ var o;
583
+ const s = this.constructor, r = s.__attributeToPropertyMap.get(e);
584
+ if (r !== void 0 && this.__reflectingProperty !== r) {
585
+ const i = s.getPropertyOptions(r), c = typeof i.converter == "function" ? { fromAttribute: i.converter } : ((o = i.converter) === null || o === void 0 ? void 0 : o.fromAttribute) !== void 0 ? i.converter : Ye;
586
+ this.__reflectingProperty = r, this[r] = c.fromAttribute(
587
+ t,
588
+ i.type
589
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
590
+ ), this.__reflectingProperty = null;
591
+ }
592
+ }
593
+ /**
594
+ * Requests an update which is processed asynchronously. This should be called
595
+ * when an element should update based on some state not triggered by setting
596
+ * a reactive property. In this case, pass no arguments. It should also be
597
+ * called when manually implementing a property setter. In this case, pass the
598
+ * property `name` and `oldValue` to ensure that any configured property
599
+ * options are honored.
600
+ *
601
+ * @param name name of requesting property
602
+ * @param oldValue old value of requesting property
603
+ * @param options property options to use instead of the previously
604
+ * configured options
605
+ * @category updates
606
+ */
607
+ requestUpdate(e, t, o) {
608
+ let s = !0;
609
+ return e !== void 0 && (o = o || this.constructor.getPropertyOptions(e), (o.hasChanged || jt)(this[e], t) ? (this._$changedProperties.has(e) || this._$changedProperties.set(e, t), o.reflect === !0 && this.__reflectingProperty !== e && (this.__reflectingProperties === void 0 && (this.__reflectingProperties = /* @__PURE__ */ new Map()), this.__reflectingProperties.set(e, o))) : s = !1), !this.isUpdatePending && s && (this.__updatePromise = this.__enqueueUpdate()), Dt(this.localName);
610
+ }
611
+ /**
612
+ * Sets up the element to asynchronously update.
613
+ */
614
+ async __enqueueUpdate() {
615
+ this.isUpdatePending = !0;
616
+ try {
617
+ await this.__updatePromise;
618
+ } catch (t) {
619
+ Promise.reject(t);
620
+ }
621
+ const e = this.scheduleUpdate();
622
+ return e != null && await e, !this.isUpdatePending;
623
+ }
624
+ /**
625
+ * Schedules an element update. You can override this method to change the
626
+ * timing of updates by returning a Promise. The update will await the
627
+ * returned Promise, and you should resolve the Promise to allow the update
628
+ * to proceed. If this method is overridden, `super.scheduleUpdate()`
629
+ * must be called.
630
+ *
631
+ * For instance, to schedule updates to occur just before the next frame:
632
+ *
633
+ * ```ts
634
+ * override protected async scheduleUpdate(): Promise<unknown> {
635
+ * await new Promise((resolve) => requestAnimationFrame(() => resolve()));
636
+ * super.scheduleUpdate();
637
+ * }
638
+ * ```
639
+ * @category updates
640
+ */
641
+ scheduleUpdate() {
642
+ return this.performUpdate();
643
+ }
644
+ /**
645
+ * Performs an element update. Note, if an exception is thrown during the
646
+ * update, `firstUpdated` and `updated` will not be called.
647
+ *
648
+ * Call `performUpdate()` to immediately process a pending update. This should
649
+ * generally not be needed, but it can be done in rare cases when you need to
650
+ * update synchronously.
651
+ *
652
+ * Note: To ensure `performUpdate()` synchronously completes a pending update,
653
+ * it should not be overridden. In LitElement 2.x it was suggested to override
654
+ * `performUpdate()` to also customizing update scheduling. Instead, you should now
655
+ * override `scheduleUpdate()`. For backwards compatibility with LitElement 2.x,
656
+ * scheduling updates via `performUpdate()` continues to work, but will make
657
+ * also calling `performUpdate()` to synchronously process updates difficult.
658
+ *
659
+ * @category updates
660
+ */
661
+ performUpdate() {
662
+ var e, t;
663
+ if (!this.isUpdatePending)
664
+ return;
665
+ if (ze?.({ kind: "update" }), !this.hasUpdated) {
666
+ const r = [];
667
+ if ((e = this.constructor.__reactivePropertyKeys) === null || e === void 0 || e.forEach((i) => {
668
+ var c;
669
+ this.hasOwnProperty(i) && !(!((c = this.__instanceProperties) === null || c === void 0) && c.has(i)) && r.push(i);
670
+ }), r.length)
671
+ throw new Error(`The following properties on element ${this.localName} will not trigger updates as expected because they are set using class fields: ${r.join(", ")}. Native class fields and some compiled output will overwrite accessors used for detecting changes. See https://lit.dev/msg/class-field-shadowing for more information.`);
672
+ }
673
+ this.__instanceProperties && (this.__instanceProperties.forEach((r, i) => this[i] = r), this.__instanceProperties = void 0);
674
+ let o = !1;
675
+ const s = this._$changedProperties;
676
+ try {
677
+ o = this.shouldUpdate(s), o ? (this.willUpdate(s), (t = this.__controllers) === null || t === void 0 || t.forEach((r) => {
678
+ var i;
679
+ return (i = r.hostUpdate) === null || i === void 0 ? void 0 : i.call(r);
680
+ }), this.update(s)) : this.__markUpdated();
681
+ } catch (r) {
682
+ throw o = !1, this.__markUpdated(), r;
683
+ }
684
+ o && this._$didUpdate(s);
685
+ }
686
+ /**
687
+ * Invoked before `update()` to compute values needed during the update.
688
+ *
689
+ * Implement `willUpdate` to compute property values that depend on other
690
+ * properties and are used in the rest of the update process.
691
+ *
692
+ * ```ts
693
+ * willUpdate(changedProperties) {
694
+ * // only need to check changed properties for an expensive computation.
695
+ * if (changedProperties.has('firstName') || changedProperties.has('lastName')) {
696
+ * this.sha = computeSHA(`${this.firstName} ${this.lastName}`);
697
+ * }
698
+ * }
699
+ *
700
+ * render() {
701
+ * return html`SHA: ${this.sha}`;
702
+ * }
703
+ * ```
704
+ *
705
+ * @category updates
706
+ */
707
+ willUpdate(e) {
708
+ }
709
+ // Note, this is an override point for polyfill-support.
710
+ // @internal
711
+ _$didUpdate(e) {
712
+ var t;
713
+ (t = this.__controllers) === null || t === void 0 || t.forEach((o) => {
714
+ var s;
715
+ return (s = o.hostUpdated) === null || s === void 0 ? void 0 : s.call(o);
716
+ }), this.hasUpdated || (this.hasUpdated = !0, this.firstUpdated(e)), this.updated(e), this.isUpdatePending && this.constructor.enabledWarnings.indexOf("change-in-update") >= 0 && L("change-in-update", `Element ${this.localName} scheduled an update (generally because a property was set) after an update completed, causing a new update to be scheduled. This is inefficient and should be avoided unless the next update can only be scheduled as a side effect of the previous update.`);
717
+ }
718
+ __markUpdated() {
719
+ this._$changedProperties = /* @__PURE__ */ new Map(), this.isUpdatePending = !1;
720
+ }
721
+ /**
722
+ * Returns a Promise that resolves when the element has completed updating.
723
+ * The Promise value is a boolean that is `true` if the element completed the
724
+ * update without triggering another update. The Promise result is `false` if
725
+ * a property was set inside `updated()`. If the Promise is rejected, an
726
+ * exception was thrown during the update.
727
+ *
728
+ * To await additional asynchronous work, override the `getUpdateComplete`
729
+ * method. For example, it is sometimes useful to await a rendered element
730
+ * before fulfilling this Promise. To do this, first await
731
+ * `super.getUpdateComplete()`, then any subsequent state.
732
+ *
733
+ * @return A promise of a boolean that resolves to true if the update completed
734
+ * without triggering another update.
735
+ * @category updates
736
+ */
737
+ get updateComplete() {
738
+ return this.getUpdateComplete();
739
+ }
740
+ /**
741
+ * Override point for the `updateComplete` promise.
742
+ *
743
+ * It is not safe to override the `updateComplete` getter directly due to a
744
+ * limitation in TypeScript which means it is not possible to call a
745
+ * superclass getter (e.g. `super.updateComplete.then(...)`) when the target
746
+ * language is ES5 (https://github.com/microsoft/TypeScript/issues/338).
747
+ * This method should be overridden instead. For example:
748
+ *
749
+ * ```ts
750
+ * class MyElement extends LitElement {
751
+ * override async getUpdateComplete() {
752
+ * const result = await super.getUpdateComplete();
753
+ * await this._myChild.updateComplete;
754
+ * return result;
755
+ * }
756
+ * }
757
+ * ```
758
+ *
759
+ * @return A promise of a boolean that resolves to true if the update completed
760
+ * without triggering another update.
761
+ * @category updates
762
+ */
763
+ getUpdateComplete() {
764
+ return this.__updatePromise;
765
+ }
766
+ /**
767
+ * Controls whether or not `update()` should be called when the element requests
768
+ * an update. By default, this method always returns `true`, but this can be
769
+ * customized to control when to update.
770
+ *
771
+ * @param _changedProperties Map of changed properties with old values
772
+ * @category updates
773
+ */
774
+ shouldUpdate(e) {
775
+ return !0;
776
+ }
777
+ /**
778
+ * Updates the element. This method reflects property values to attributes.
779
+ * It can be overridden to render and keep updated element DOM.
780
+ * Setting properties inside this method will *not* trigger
781
+ * another update.
782
+ *
783
+ * @param _changedProperties Map of changed properties with old values
784
+ * @category updates
785
+ */
786
+ update(e) {
787
+ this.__reflectingProperties !== void 0 && (this.__reflectingProperties.forEach((t, o) => this.__propertyToAttribute(o, this[o], t)), this.__reflectingProperties = void 0), this.__markUpdated();
788
+ }
789
+ /**
790
+ * Invoked whenever the element is updated. Implement to perform
791
+ * post-updating tasks via DOM APIs, for example, focusing an element.
792
+ *
793
+ * Setting properties inside this method will trigger the element to update
794
+ * again after this update cycle completes.
795
+ *
796
+ * @param _changedProperties Map of changed properties with old values
797
+ * @category updates
798
+ */
799
+ updated(e) {
800
+ }
801
+ /**
802
+ * Invoked when the element is first updated. Implement to perform one time
803
+ * work on the element after update.
804
+ *
805
+ * ```ts
806
+ * firstUpdated() {
807
+ * this.renderRoot.getElementById('my-text-area').focus();
808
+ * }
809
+ * ```
810
+ *
811
+ * Setting properties inside this method will trigger the element to update
812
+ * again after this update cycle completes.
813
+ *
814
+ * @param _changedProperties Map of changed properties with old values
815
+ * @category updates
816
+ */
817
+ firstUpdated(e) {
818
+ }
819
+ }
820
+ Bt = Ze;
821
+ A[Bt] = !0;
822
+ A.elementProperties = /* @__PURE__ */ new Map();
823
+ A.elementStyles = [];
824
+ A.shadowRootOptions = { mode: "open" };
825
+ he?.({ ReactiveElement: A });
826
+ {
827
+ A.enabledWarnings = ["change-in-update"];
828
+ const n = function(e) {
829
+ e.hasOwnProperty(Ft("enabledWarnings")) || (e.enabledWarnings = e.enabledWarnings.slice());
830
+ };
831
+ A.enableWarning = function(e) {
832
+ n(this), this.enabledWarnings.indexOf(e) < 0 && this.enabledWarnings.push(e);
833
+ }, A.disableWarning = function(e) {
834
+ n(this);
835
+ const t = this.enabledWarnings.indexOf(e);
836
+ t >= 0 && this.enabledWarnings.splice(t, 1);
837
+ };
838
+ }
839
+ ((Ve = M.reactiveElementVersions) !== null && Ve !== void 0 ? Ve : M.reactiveElementVersions = []).push("1.6.3");
840
+ M.reactiveElementVersions.length > 1 && L("multiple-versions", "Multiple versions of Lit loaded. Loading multiple versions is not recommended.");
841
+ var Ie, Le, qe, Ue;
842
+ const E = window, d = (n) => {
843
+ E.emitLitDebugLogEvents && E.dispatchEvent(new CustomEvent("lit-debug", {
844
+ detail: n
845
+ }));
846
+ };
847
+ let eo = 0, Se;
848
+ (Ie = E.litIssuedWarnings) !== null && Ie !== void 0 || (E.litIssuedWarnings = /* @__PURE__ */ new Set()), Se = (n, e) => {
849
+ e += n ? ` See https://lit.dev/msg/${n} for more information.` : "", E.litIssuedWarnings.has(e) || (console.warn(e), E.litIssuedWarnings.add(e));
850
+ }, Se("dev-mode", "Lit is in dev mode. Not recommended for production!");
851
+ const T = !((Le = E.ShadyDOM) === null || Le === void 0) && Le.inUse && ((qe = E.ShadyDOM) === null || qe === void 0 ? void 0 : qe.noPatch) === !0 ? E.ShadyDOM.wrap : (n) => n, K = E.trustedTypes, Pt = K ? K.createPolicy("lit-html", {
852
+ createHTML: (n) => n
853
+ }) : void 0, to = (n) => n, Pe = (n, e, t) => to, no = (n) => {
854
+ if (F !== Pe)
855
+ throw new Error("Attempted to overwrite existing lit-html security policy. setSanitizeDOMValueFactory should be called at most once.");
856
+ F = n;
857
+ }, oo = () => {
858
+ F = Pe;
859
+ }, Xe = (n, e, t) => F(n, e, t), Qe = "$lit$", O = `lit$${String(Math.random()).slice(9)}$`, Wt = "?" + O, so = `<${Wt}>`, D = document, re = () => D.createComment(""), ie = (n) => n === null || typeof n != "object" && typeof n != "function", Ht = Array.isArray, ro = (n) => Ht(n) || // eslint-disable-next-line @typescript-eslint/no-explicit-any
860
+ typeof n?.[Symbol.iterator] == "function", Be = `[
861
+ \f\r]`, io = `[^
862
+ \f\r"'\`<>=]`, ao = `[^\\s"'>=/]`, te = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, Ct = 1, De = 2, lo = 3, Et = /-->/g, xt = />/g, U = new RegExp(`>|${Be}(?:(${ao}+)(${Be}*=${Be}*(?:${io}|("|')|))|$)`, "g"), co = 0, Tt = 1, uo = 2, $t = 3, Fe = /'/g, je = /"/g, Kt = /^(?:script|style|textarea|title)$/i, fo = 1, et = 2, st = 1, we = 2, mo = 3, po = 4, ho = 5, rt = 6, yo = 7, go = (n) => (e, ...t) => (e.some((o) => o === void 0) && console.warn(`Some template strings are undefined.
863
+ This is probably caused by illegal octal escape sequences.`), {
864
+ // This property needs to remain unminified.
865
+ _$litType$: n,
866
+ strings: e,
867
+ values: t
868
+ }), vo = go(fo), G = Symbol.for("lit-noChange"), w = Symbol.for("lit-nothing"), kt = /* @__PURE__ */ new WeakMap(), B = D.createTreeWalker(D, 129, null, !1);
869
+ let F = Pe;
870
+ function Gt(n, e) {
871
+ if (!Array.isArray(n) || !n.hasOwnProperty("raw")) {
872
+ let t = "invalid template strings array";
873
+ throw t = `
874
+ Internal Error: expected template strings to be an array
875
+ with a 'raw' field. Faking a template strings array by
876
+ calling html or svg like an ordinary function is effectively
877
+ the same as calling unsafeHtml and can lead to major security
878
+ issues, e.g. opening your code up to XSS attacks.
879
+ If you're using the html or svg tagged template functions normally
880
+ and still seeing this error, please file a bug at
881
+ https://github.com/lit/lit/issues/new?template=bug_report.md
882
+ and include information about your build tooling, if any.
883
+ `.trim().replace(/\n */g, `
884
+ `), new Error(t);
885
+ }
886
+ return Pt !== void 0 ? Pt.createHTML(e) : e;
887
+ }
888
+ const bo = (n, e) => {
889
+ const t = n.length - 1, o = [];
890
+ let s = e === et ? "<svg>" : "", r, i = te;
891
+ for (let l = 0; l < t; l++) {
892
+ const f = n[l];
893
+ let S = -1, v, h = 0, y;
894
+ for (; h < f.length && (i.lastIndex = h, y = i.exec(f), y !== null); )
895
+ if (h = i.lastIndex, i === te) {
896
+ if (y[Ct] === "!--")
897
+ i = Et;
898
+ else if (y[Ct] !== void 0)
899
+ i = xt;
900
+ else if (y[De] !== void 0)
901
+ Kt.test(y[De]) && (r = new RegExp(`</${y[De]}`, "g")), i = U;
902
+ else if (y[lo] !== void 0)
903
+ throw new Error("Bindings in tag names are not supported. Please use static templates instead. See https://lit.dev/docs/templates/expressions/#static-expressions");
904
+ } else i === U ? y[co] === ">" ? (i = r ?? te, S = -1) : y[Tt] === void 0 ? S = -2 : (S = i.lastIndex - y[uo].length, v = y[Tt], i = y[$t] === void 0 ? U : y[$t] === '"' ? je : Fe) : i === je || i === Fe ? i = U : i === Et || i === xt ? i = te : (i = U, r = void 0);
905
+ console.assert(S === -1 || i === U || i === Fe || i === je, "unexpected parse state B");
906
+ const R = i === U && n[l + 1].startsWith("/>") ? " " : "";
907
+ s += i === te ? f + so : S >= 0 ? (o.push(v), f.slice(0, S) + Qe + f.slice(S) + O + R) : f + O + (S === -2 ? (o.push(void 0), l) : R);
908
+ }
909
+ const c = s + (n[t] || "<?>") + (e === et ? "</svg>" : "");
910
+ return [Gt(n, c), o];
911
+ };
912
+ class ae {
913
+ constructor({ strings: e, ["_$litType$"]: t }, o) {
914
+ this.parts = [];
915
+ let s, r = 0, i = 0;
916
+ const c = e.length - 1, l = this.parts, [f, S] = bo(e, t);
917
+ if (this.el = ae.createElement(f, o), B.currentNode = this.el.content, t === et) {
918
+ const v = this.el.content, h = v.firstChild;
919
+ h.remove(), v.append(...h.childNodes);
920
+ }
921
+ for (; (s = B.nextNode()) !== null && l.length < c; ) {
922
+ if (s.nodeType === 1) {
923
+ {
924
+ const v = s.localName;
925
+ if (/^(?:textarea|template)$/i.test(v) && s.innerHTML.includes(O)) {
926
+ const h = `Expressions are not supported inside \`${v}\` elements. See https://lit.dev/msg/expression-in-${v} for more information.`;
927
+ if (v === "template")
928
+ throw new Error(h);
929
+ Se("", h);
930
+ }
931
+ }
932
+ if (s.hasAttributes()) {
933
+ const v = [];
934
+ for (const h of s.getAttributeNames())
935
+ if (h.endsWith(Qe) || h.startsWith(O)) {
936
+ const y = S[i++];
937
+ if (v.push(h), y !== void 0) {
938
+ const j = s.getAttribute(y.toLowerCase() + Qe).split(O), V = /([.?@])?(.*)/.exec(y);
939
+ l.push({
940
+ type: st,
941
+ index: r,
942
+ name: V[2],
943
+ strings: j,
944
+ ctor: V[1] === "." ? So : V[1] === "?" ? Po : V[1] === "@" ? Co : Ce
945
+ });
946
+ } else
947
+ l.push({
948
+ type: rt,
949
+ index: r
950
+ });
951
+ }
952
+ for (const h of v)
953
+ s.removeAttribute(h);
954
+ }
955
+ if (Kt.test(s.tagName)) {
956
+ const v = s.textContent.split(O), h = v.length - 1;
957
+ if (h > 0) {
958
+ s.textContent = K ? K.emptyScript : "";
959
+ for (let y = 0; y < h; y++)
960
+ s.append(v[y], re()), B.nextNode(), l.push({ type: we, index: ++r });
961
+ s.append(v[h], re());
962
+ }
963
+ }
964
+ } else if (s.nodeType === 8)
965
+ if (s.data === Wt)
966
+ l.push({ type: we, index: r });
967
+ else {
968
+ let h = -1;
969
+ for (; (h = s.data.indexOf(O, h + 1)) !== -1; )
970
+ l.push({ type: yo, index: r }), h += O.length - 1;
971
+ }
972
+ r++;
973
+ }
974
+ d?.({
975
+ kind: "template prep",
976
+ template: this,
977
+ clonableTemplate: this.el,
978
+ parts: this.parts,
979
+ strings: e
980
+ });
981
+ }
982
+ // Overridden via `litHtmlPolyfillSupport` to provide platform support.
983
+ /** @nocollapse */
984
+ static createElement(e, t) {
985
+ const o = D.createElement("template");
986
+ return o.innerHTML = e, o;
987
+ }
988
+ }
989
+ function J(n, e, t = n, o) {
990
+ var s, r, i, c;
991
+ if (e === G)
992
+ return e;
993
+ let l = o !== void 0 ? (s = t.__directives) === null || s === void 0 ? void 0 : s[o] : t.__directive;
994
+ const f = ie(e) ? void 0 : (
995
+ // This property needs to remain unminified.
996
+ e._$litDirective$
997
+ );
998
+ return l?.constructor !== f && ((r = l?._$notifyDirectiveConnectionChanged) === null || r === void 0 || r.call(l, !1), f === void 0 ? l = void 0 : (l = new f(n), l._$initialize(n, t, o)), o !== void 0 ? ((i = (c = t).__directives) !== null && i !== void 0 ? i : c.__directives = [])[o] = l : t.__directive = l), l !== void 0 && (e = J(n, l._$resolve(n, e.values), l, o)), e;
999
+ }
1000
+ class _o {
1001
+ constructor(e, t) {
1002
+ this._$parts = [], this._$disconnectableChildren = void 0, this._$template = e, this._$parent = t;
1003
+ }
1004
+ // Called by ChildPart parentNode getter
1005
+ get parentNode() {
1006
+ return this._$parent.parentNode;
1007
+ }
1008
+ // See comment in Disconnectable interface for why this is a getter
1009
+ get _$isConnected() {
1010
+ return this._$parent._$isConnected;
1011
+ }
1012
+ // This method is separate from the constructor because we need to return a
1013
+ // DocumentFragment and we don't want to hold onto it with an instance field.
1014
+ _clone(e) {
1015
+ var t;
1016
+ const { el: { content: o }, parts: s } = this._$template, r = ((t = e?.creationScope) !== null && t !== void 0 ? t : D).importNode(o, !0);
1017
+ B.currentNode = r;
1018
+ let i = B.nextNode(), c = 0, l = 0, f = s[0];
1019
+ for (; f !== void 0; ) {
1020
+ if (c === f.index) {
1021
+ let S;
1022
+ f.type === we ? S = new le(i, i.nextSibling, this, e) : f.type === st ? S = new f.ctor(i, f.name, f.strings, this, e) : f.type === rt && (S = new Eo(i, this, e)), this._$parts.push(S), f = s[++l];
1023
+ }
1024
+ c !== f?.index && (i = B.nextNode(), c++);
1025
+ }
1026
+ return B.currentNode = D, r;
1027
+ }
1028
+ _update(e) {
1029
+ let t = 0;
1030
+ for (const o of this._$parts)
1031
+ o !== void 0 && (d?.({
1032
+ kind: "set part",
1033
+ part: o,
1034
+ value: e[t],
1035
+ valueIndex: t,
1036
+ values: e,
1037
+ templateInstance: this
1038
+ }), o.strings !== void 0 ? (o._$setValue(e, o, t), t += o.strings.length - 2) : o._$setValue(e[t])), t++;
1039
+ }
1040
+ }
1041
+ class le {
1042
+ constructor(e, t, o, s) {
1043
+ var r;
1044
+ this.type = we, this._$committedValue = w, this._$disconnectableChildren = void 0, this._$startNode = e, this._$endNode = t, this._$parent = o, this.options = s, this.__isConnected = (r = s?.isConnected) !== null && r !== void 0 ? r : !0, this._textSanitizer = void 0;
1045
+ }
1046
+ // See comment in Disconnectable interface for why this is a getter
1047
+ get _$isConnected() {
1048
+ var e, t;
1049
+ return (t = (e = this._$parent) === null || e === void 0 ? void 0 : e._$isConnected) !== null && t !== void 0 ? t : this.__isConnected;
1050
+ }
1051
+ /**
1052
+ * The parent node into which the part renders its content.
1053
+ *
1054
+ * A ChildPart's content consists of a range of adjacent child nodes of
1055
+ * `.parentNode`, possibly bordered by 'marker nodes' (`.startNode` and
1056
+ * `.endNode`).
1057
+ *
1058
+ * - If both `.startNode` and `.endNode` are non-null, then the part's content
1059
+ * consists of all siblings between `.startNode` and `.endNode`, exclusively.
1060
+ *
1061
+ * - If `.startNode` is non-null but `.endNode` is null, then the part's
1062
+ * content consists of all siblings following `.startNode`, up to and
1063
+ * including the last child of `.parentNode`. If `.endNode` is non-null, then
1064
+ * `.startNode` will always be non-null.
1065
+ *
1066
+ * - If both `.endNode` and `.startNode` are null, then the part's content
1067
+ * consists of all child nodes of `.parentNode`.
1068
+ */
1069
+ get parentNode() {
1070
+ let e = T(this._$startNode).parentNode;
1071
+ const t = this._$parent;
1072
+ return t !== void 0 && e?.nodeType === 11 && (e = t.parentNode), e;
1073
+ }
1074
+ /**
1075
+ * The part's leading marker node, if any. See `.parentNode` for more
1076
+ * information.
1077
+ */
1078
+ get startNode() {
1079
+ return this._$startNode;
1080
+ }
1081
+ /**
1082
+ * The part's trailing marker node, if any. See `.parentNode` for more
1083
+ * information.
1084
+ */
1085
+ get endNode() {
1086
+ return this._$endNode;
1087
+ }
1088
+ _$setValue(e, t = this) {
1089
+ var o;
1090
+ if (this.parentNode === null)
1091
+ throw new Error("This `ChildPart` has no `parentNode` and therefore cannot accept a value. This likely means the element containing the part was manipulated in an unsupported way outside of Lit's control such that the part's marker nodes were ejected from DOM. For example, setting the element's `innerHTML` or `textContent` can do this.");
1092
+ if (e = J(this, e, t), ie(e))
1093
+ e === w || e == null || e === "" ? (this._$committedValue !== w && (d?.({
1094
+ kind: "commit nothing to child",
1095
+ start: this._$startNode,
1096
+ end: this._$endNode,
1097
+ parent: this._$parent,
1098
+ options: this.options
1099
+ }), this._$clear()), this._$committedValue = w) : e !== this._$committedValue && e !== G && this._commitText(e);
1100
+ else if (e._$litType$ !== void 0)
1101
+ this._commitTemplateResult(e);
1102
+ else if (e.nodeType !== void 0) {
1103
+ if (((o = this.options) === null || o === void 0 ? void 0 : o.host) === e) {
1104
+ this._commitText("[probable mistake: rendered a template's host in itself (commonly caused by writing ${this} in a template]"), console.warn("Attempted to render the template host", e, "inside itself. This is almost always a mistake, and in dev mode ", "we render some warning text. In production however, we'll ", "render it, which will usually result in an error, and sometimes ", "in the element disappearing from the DOM.");
1105
+ return;
1106
+ }
1107
+ this._commitNode(e);
1108
+ } else ro(e) ? this._commitIterable(e) : this._commitText(e);
1109
+ }
1110
+ _insert(e) {
1111
+ return T(T(this._$startNode).parentNode).insertBefore(e, this._$endNode);
1112
+ }
1113
+ _commitNode(e) {
1114
+ var t;
1115
+ if (this._$committedValue !== e) {
1116
+ if (this._$clear(), F !== Pe) {
1117
+ const o = (t = this._$startNode.parentNode) === null || t === void 0 ? void 0 : t.nodeName;
1118
+ if (o === "STYLE" || o === "SCRIPT") {
1119
+ let s = "Forbidden";
1120
+ throw o === "STYLE" ? s = "Lit does not support binding inside style nodes. This is a security risk, as style injection attacks can exfiltrate data and spoof UIs. Consider instead using css`...` literals to compose styles, and make do dynamic styling with css custom properties, ::parts, <slot>s, and by mutating the DOM rather than stylesheets." : s = "Lit does not support binding inside script nodes. This is a security risk, as it could allow arbitrary code execution.", new Error(s);
1121
+ }
1122
+ }
1123
+ d?.({
1124
+ kind: "commit node",
1125
+ start: this._$startNode,
1126
+ parent: this._$parent,
1127
+ value: e,
1128
+ options: this.options
1129
+ }), this._$committedValue = this._insert(e);
1130
+ }
1131
+ }
1132
+ _commitText(e) {
1133
+ if (this._$committedValue !== w && ie(this._$committedValue)) {
1134
+ const t = T(this._$startNode).nextSibling;
1135
+ this._textSanitizer === void 0 && (this._textSanitizer = Xe(t, "data", "property")), e = this._textSanitizer(e), d?.({
1136
+ kind: "commit text",
1137
+ node: t,
1138
+ value: e,
1139
+ options: this.options
1140
+ }), t.data = e;
1141
+ } else {
1142
+ const t = D.createTextNode("");
1143
+ this._commitNode(t), this._textSanitizer === void 0 && (this._textSanitizer = Xe(t, "data", "property")), e = this._textSanitizer(e), d?.({
1144
+ kind: "commit text",
1145
+ node: t,
1146
+ value: e,
1147
+ options: this.options
1148
+ }), t.data = e;
1149
+ }
1150
+ this._$committedValue = e;
1151
+ }
1152
+ _commitTemplateResult(e) {
1153
+ var t;
1154
+ const { values: o, ["_$litType$"]: s } = e, r = typeof s == "number" ? this._$getTemplate(e) : (s.el === void 0 && (s.el = ae.createElement(Gt(s.h, s.h[0]), this.options)), s);
1155
+ if (((t = this._$committedValue) === null || t === void 0 ? void 0 : t._$template) === r)
1156
+ d?.({
1157
+ kind: "template updating",
1158
+ template: r,
1159
+ instance: this._$committedValue,
1160
+ parts: this._$committedValue._$parts,
1161
+ options: this.options,
1162
+ values: o
1163
+ }), this._$committedValue._update(o);
1164
+ else {
1165
+ const i = new _o(r, this), c = i._clone(this.options);
1166
+ d?.({
1167
+ kind: "template instantiated",
1168
+ template: r,
1169
+ instance: i,
1170
+ parts: i._$parts,
1171
+ options: this.options,
1172
+ fragment: c,
1173
+ values: o
1174
+ }), i._update(o), d?.({
1175
+ kind: "template instantiated and updated",
1176
+ template: r,
1177
+ instance: i,
1178
+ parts: i._$parts,
1179
+ options: this.options,
1180
+ fragment: c,
1181
+ values: o
1182
+ }), this._commitNode(c), this._$committedValue = i;
1183
+ }
1184
+ }
1185
+ // Overridden via `litHtmlPolyfillSupport` to provide platform support.
1186
+ /** @internal */
1187
+ _$getTemplate(e) {
1188
+ let t = kt.get(e.strings);
1189
+ return t === void 0 && kt.set(e.strings, t = new ae(e)), t;
1190
+ }
1191
+ _commitIterable(e) {
1192
+ Ht(this._$committedValue) || (this._$committedValue = [], this._$clear());
1193
+ const t = this._$committedValue;
1194
+ let o = 0, s;
1195
+ for (const r of e)
1196
+ o === t.length ? t.push(s = new le(this._insert(re()), this._insert(re()), this, this.options)) : s = t[o], s._$setValue(r), o++;
1197
+ o < t.length && (this._$clear(s && T(s._$endNode).nextSibling, o), t.length = o);
1198
+ }
1199
+ /**
1200
+ * Removes the nodes contained within this Part from the DOM.
1201
+ *
1202
+ * @param start Start node to clear from, for clearing a subset of the part's
1203
+ * DOM (used when truncating iterables)
1204
+ * @param from When `start` is specified, the index within the iterable from
1205
+ * which ChildParts are being removed, used for disconnecting directives in
1206
+ * those Parts.
1207
+ *
1208
+ * @internal
1209
+ */
1210
+ _$clear(e = T(this._$startNode).nextSibling, t) {
1211
+ var o;
1212
+ for ((o = this._$notifyConnectionChanged) === null || o === void 0 || o.call(this, !1, !0, t); e && e !== this._$endNode; ) {
1213
+ const s = T(e).nextSibling;
1214
+ T(e).remove(), e = s;
1215
+ }
1216
+ }
1217
+ /**
1218
+ * Implementation of RootPart's `isConnected`. Note that this metod
1219
+ * should only be called on `RootPart`s (the `ChildPart` returned from a
1220
+ * top-level `render()` call). It has no effect on non-root ChildParts.
1221
+ * @param isConnected Whether to set
1222
+ * @internal
1223
+ */
1224
+ setConnected(e) {
1225
+ var t;
1226
+ if (this._$parent === void 0)
1227
+ this.__isConnected = e, (t = this._$notifyConnectionChanged) === null || t === void 0 || t.call(this, e);
1228
+ else
1229
+ throw new Error("part.setConnected() may only be called on a RootPart returned from render().");
1230
+ }
1231
+ }
1232
+ class Ce {
1233
+ constructor(e, t, o, s, r) {
1234
+ this.type = st, this._$committedValue = w, this._$disconnectableChildren = void 0, this.element = e, this.name = t, this._$parent = s, this.options = r, o.length > 2 || o[0] !== "" || o[1] !== "" ? (this._$committedValue = new Array(o.length - 1).fill(new String()), this.strings = o) : this._$committedValue = w, this._sanitizer = void 0;
1235
+ }
1236
+ get tagName() {
1237
+ return this.element.tagName;
1238
+ }
1239
+ // See comment in Disconnectable interface for why this is a getter
1240
+ get _$isConnected() {
1241
+ return this._$parent._$isConnected;
1242
+ }
1243
+ /**
1244
+ * Sets the value of this part by resolving the value from possibly multiple
1245
+ * values and static strings and committing it to the DOM.
1246
+ * If this part is single-valued, `this._strings` will be undefined, and the
1247
+ * method will be called with a single value argument. If this part is
1248
+ * multi-value, `this._strings` will be defined, and the method is called
1249
+ * with the value array of the part's owning TemplateInstance, and an offset
1250
+ * into the value array from which the values should be read.
1251
+ * This method is overloaded this way to eliminate short-lived array slices
1252
+ * of the template instance values, and allow a fast-path for single-valued
1253
+ * parts.
1254
+ *
1255
+ * @param value The part value, or an array of values for multi-valued parts
1256
+ * @param valueIndex the index to start reading values from. `undefined` for
1257
+ * single-valued parts
1258
+ * @param noCommit causes the part to not commit its value to the DOM. Used
1259
+ * in hydration to prime attribute parts with their first-rendered value,
1260
+ * but not set the attribute, and in SSR to no-op the DOM operation and
1261
+ * capture the value for serialization.
1262
+ *
1263
+ * @internal
1264
+ */
1265
+ _$setValue(e, t = this, o, s) {
1266
+ const r = this.strings;
1267
+ let i = !1;
1268
+ if (r === void 0)
1269
+ e = J(this, e, t, 0), i = !ie(e) || e !== this._$committedValue && e !== G, i && (this._$committedValue = e);
1270
+ else {
1271
+ const c = e;
1272
+ e = r[0];
1273
+ let l, f;
1274
+ for (l = 0; l < r.length - 1; l++)
1275
+ f = J(this, c[o + l], t, l), f === G && (f = this._$committedValue[l]), i || (i = !ie(f) || f !== this._$committedValue[l]), f === w ? e = w : e !== w && (e += (f ?? "") + r[l + 1]), this._$committedValue[l] = f;
1276
+ }
1277
+ i && !s && this._commitValue(e);
1278
+ }
1279
+ /** @internal */
1280
+ _commitValue(e) {
1281
+ e === w ? T(this.element).removeAttribute(this.name) : (this._sanitizer === void 0 && (this._sanitizer = F(this.element, this.name, "attribute")), e = this._sanitizer(e ?? ""), d?.({
1282
+ kind: "commit attribute",
1283
+ element: this.element,
1284
+ name: this.name,
1285
+ value: e,
1286
+ options: this.options
1287
+ }), T(this.element).setAttribute(this.name, e ?? ""));
1288
+ }
1289
+ }
1290
+ class So extends Ce {
1291
+ constructor() {
1292
+ super(...arguments), this.type = mo;
1293
+ }
1294
+ /** @internal */
1295
+ _commitValue(e) {
1296
+ this._sanitizer === void 0 && (this._sanitizer = F(this.element, this.name, "property")), e = this._sanitizer(e), d?.({
1297
+ kind: "commit property",
1298
+ element: this.element,
1299
+ name: this.name,
1300
+ value: e,
1301
+ options: this.options
1302
+ }), this.element[this.name] = e === w ? void 0 : e;
1303
+ }
1304
+ }
1305
+ const wo = K ? K.emptyScript : "";
1306
+ class Po extends Ce {
1307
+ constructor() {
1308
+ super(...arguments), this.type = po;
1309
+ }
1310
+ /** @internal */
1311
+ _commitValue(e) {
1312
+ d?.({
1313
+ kind: "commit boolean attribute",
1314
+ element: this.element,
1315
+ name: this.name,
1316
+ value: !!(e && e !== w),
1317
+ options: this.options
1318
+ }), e && e !== w ? T(this.element).setAttribute(this.name, wo) : T(this.element).removeAttribute(this.name);
1319
+ }
1320
+ }
1321
+ class Co extends Ce {
1322
+ constructor(e, t, o, s, r) {
1323
+ if (super(e, t, o, s, r), this.type = ho, this.strings !== void 0)
1324
+ throw new Error(`A \`<${e.localName}>\` has a \`@${t}=...\` listener with invalid content. Event listeners in templates must have exactly one expression and no surrounding text.`);
1325
+ }
1326
+ // EventPart does not use the base _$setValue/_resolveValue implementation
1327
+ // since the dirty checking is more complex
1328
+ /** @internal */
1329
+ _$setValue(e, t = this) {
1330
+ var o;
1331
+ if (e = (o = J(this, e, t, 0)) !== null && o !== void 0 ? o : w, e === G)
1332
+ return;
1333
+ const s = this._$committedValue, r = e === w && s !== w || e.capture !== s.capture || e.once !== s.once || e.passive !== s.passive, i = e !== w && (s === w || r);
1334
+ d?.({
1335
+ kind: "commit event listener",
1336
+ element: this.element,
1337
+ name: this.name,
1338
+ value: e,
1339
+ options: this.options,
1340
+ removeListener: r,
1341
+ addListener: i,
1342
+ oldListener: s
1343
+ }), r && this.element.removeEventListener(this.name, this, s), i && this.element.addEventListener(this.name, this, e), this._$committedValue = e;
1344
+ }
1345
+ handleEvent(e) {
1346
+ var t, o;
1347
+ typeof this._$committedValue == "function" ? this._$committedValue.call((o = (t = this.options) === null || t === void 0 ? void 0 : t.host) !== null && o !== void 0 ? o : this.element, e) : this._$committedValue.handleEvent(e);
1348
+ }
1349
+ }
1350
+ class Eo {
1351
+ constructor(e, t, o) {
1352
+ this.element = e, this.type = rt, this._$disconnectableChildren = void 0, this._$parent = t, this.options = o;
1353
+ }
1354
+ // See comment in Disconnectable interface for why this is a getter
1355
+ get _$isConnected() {
1356
+ return this._$parent._$isConnected;
1357
+ }
1358
+ _$setValue(e) {
1359
+ d?.({
1360
+ kind: "commit to element binding",
1361
+ element: this.element,
1362
+ value: e,
1363
+ options: this.options
1364
+ }), J(this, e);
1365
+ }
1366
+ }
1367
+ const We = E.litHtmlPolyfillSupportDevMode;
1368
+ We?.(ae, le);
1369
+ ((Ue = E.litHtmlVersions) !== null && Ue !== void 0 ? Ue : E.litHtmlVersions = []).push("2.8.0");
1370
+ E.litHtmlVersions.length > 1 && Se("multiple-versions", "Multiple versions of Lit loaded. Loading multiple versions is not recommended.");
1371
+ const ye = (n, e, t) => {
1372
+ var o, s;
1373
+ if (e == null)
1374
+ throw new TypeError(`The container to render into may not be ${e}`);
1375
+ const r = eo++, i = (o = t?.renderBefore) !== null && o !== void 0 ? o : e;
1376
+ let c = i._$litPart$;
1377
+ if (d?.({
1378
+ kind: "begin render",
1379
+ id: r,
1380
+ value: n,
1381
+ container: e,
1382
+ options: t,
1383
+ part: c
1384
+ }), c === void 0) {
1385
+ const l = (s = t?.renderBefore) !== null && s !== void 0 ? s : null;
1386
+ i._$litPart$ = c = new le(e.insertBefore(re(), l), l, void 0, t ?? {});
1387
+ }
1388
+ return c._$setValue(n), d?.({
1389
+ kind: "end render",
1390
+ id: r,
1391
+ value: n,
1392
+ container: e,
1393
+ options: t,
1394
+ part: c
1395
+ }), c;
1396
+ };
1397
+ ye.setSanitizer = no, ye.createSanitizer = Xe, ye._testOnlyClearSanitizerFactoryDoNotCallOrElse = oo;
1398
+ var He, Ke, Ge;
1399
+ let it;
1400
+ {
1401
+ const n = (He = globalThis.litIssuedWarnings) !== null && He !== void 0 ? He : globalThis.litIssuedWarnings = /* @__PURE__ */ new Set();
1402
+ it = (e, t) => {
1403
+ t += ` See https://lit.dev/msg/${e} for more information.`, n.has(t) || (console.warn(t), n.add(t));
1404
+ };
1405
+ }
1406
+ class Y extends A {
1407
+ constructor() {
1408
+ super(...arguments), this.renderOptions = { host: this }, this.__childPart = void 0;
1409
+ }
1410
+ /**
1411
+ * @category rendering
1412
+ */
1413
+ createRenderRoot() {
1414
+ var e, t;
1415
+ const o = super.createRenderRoot();
1416
+ return (e = (t = this.renderOptions).renderBefore) !== null && e !== void 0 || (t.renderBefore = o.firstChild), o;
1417
+ }
1418
+ /**
1419
+ * Updates the element. This method reflects property values to attributes
1420
+ * and calls `render` to render DOM via lit-html. Setting properties inside
1421
+ * this method will *not* trigger another update.
1422
+ * @param changedProperties Map of changed properties with old values
1423
+ * @category updates
1424
+ */
1425
+ update(e) {
1426
+ const t = this.render();
1427
+ this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(e), this.__childPart = ye(t, this.renderRoot, this.renderOptions);
1428
+ }
1429
+ /**
1430
+ * Invoked when the component is added to the document's DOM.
1431
+ *
1432
+ * In `connectedCallback()` you should setup tasks that should only occur when
1433
+ * the element is connected to the document. The most common of these is
1434
+ * adding event listeners to nodes external to the element, like a keydown
1435
+ * event handler added to the window.
1436
+ *
1437
+ * ```ts
1438
+ * connectedCallback() {
1439
+ * super.connectedCallback();
1440
+ * addEventListener('keydown', this._handleKeydown);
1441
+ * }
1442
+ * ```
1443
+ *
1444
+ * Typically, anything done in `connectedCallback()` should be undone when the
1445
+ * element is disconnected, in `disconnectedCallback()`.
1446
+ *
1447
+ * @category lifecycle
1448
+ */
1449
+ connectedCallback() {
1450
+ var e;
1451
+ super.connectedCallback(), (e = this.__childPart) === null || e === void 0 || e.setConnected(!0);
1452
+ }
1453
+ /**
1454
+ * Invoked when the component is removed from the document's DOM.
1455
+ *
1456
+ * This callback is the main signal to the element that it may no longer be
1457
+ * used. `disconnectedCallback()` should ensure that nothing is holding a
1458
+ * reference to the element (such as event listeners added to nodes external
1459
+ * to the element), so that it is free to be garbage collected.
1460
+ *
1461
+ * ```ts
1462
+ * disconnectedCallback() {
1463
+ * super.disconnectedCallback();
1464
+ * window.removeEventListener('keydown', this._handleKeydown);
1465
+ * }
1466
+ * ```
1467
+ *
1468
+ * An element may be re-connected after being disconnected.
1469
+ *
1470
+ * @category lifecycle
1471
+ */
1472
+ disconnectedCallback() {
1473
+ var e;
1474
+ super.disconnectedCallback(), (e = this.__childPart) === null || e === void 0 || e.setConnected(!1);
1475
+ }
1476
+ /**
1477
+ * Invoked on each update to perform rendering tasks. This method may return
1478
+ * any value renderable by lit-html's `ChildPart` - typically a
1479
+ * `TemplateResult`. Setting properties inside this method will *not* trigger
1480
+ * the element to update.
1481
+ * @category rendering
1482
+ */
1483
+ render() {
1484
+ return G;
1485
+ }
1486
+ }
1487
+ Y.finalized = !0;
1488
+ Y._$litElement$ = !0;
1489
+ (Ke = globalThis.litElementHydrateSupport) === null || Ke === void 0 || Ke.call(globalThis, { LitElement: Y });
1490
+ const Je = globalThis.litElementPolyfillSupportDevMode;
1491
+ Je?.({ LitElement: Y });
1492
+ Y.finalize = function() {
1493
+ if (!A.finalize.call(this))
1494
+ return !1;
1495
+ const e = (t, o, s = !1) => {
1496
+ if (t.hasOwnProperty(o)) {
1497
+ const r = (typeof t == "function" ? t : t.constructor).name;
1498
+ it(s ? "renamed-api" : "removed-api", `\`${o}\` is implemented on class ${r}. It has been ${s ? "renamed" : "removed"} in this version of LitElement.`);
1499
+ }
1500
+ };
1501
+ return e(this, "render"), e(this, "getStyles", !0), e(this.prototype, "adoptStyles"), !0;
1502
+ };
1503
+ ((Ge = globalThis.litElementVersions) !== null && Ge !== void 0 ? Ge : globalThis.litElementVersions = []).push("3.3.3");
1504
+ globalThis.litElementVersions.length > 1 && it("multiple-versions", "Multiple versions of Lit loaded. Loading multiple versions is not recommended.");
1505
+ const xo = (n) => n ?? w, To = /[A-ZÀ-ÖÙ-Ý]+/g, $o = /[a-zà-öù-ý]+/g;
1506
+ function ko(n) {
1507
+ const e = n.replace(To, t).match($o);
1508
+ return e ? e.join("-") : "";
1509
+ function t(o) {
1510
+ return " " + (o.length > 2 ? o.slice(0, -1) + " " + o.slice(-1) : o).toLowerCase();
1511
+ }
1512
+ }
1513
+ function Ro() {
1514
+ const n = {};
1515
+ return {
1516
+ has: (e) => Object.hasOwnProperty.call(n, e),
1517
+ get: (e) => n[e],
1518
+ set: (e, t) => {
1519
+ n[e] = t;
1520
+ }
1521
+ };
1522
+ }
1523
+ function No(n, e) {
1524
+ const t = Ro();
1525
+ return (...o) => {
1526
+ const s = n(...o);
1527
+ return t.has(s) || t.set(s, e(...o)), t.get(s);
1528
+ };
1529
+ }
1530
+ var Mo = (n) => n, Jt = No(Mo, ko), Ao = (n) => (e) => n.includes(e), Vo = Ao(["paymentMethod", "source", "token"]);
1531
+ async function zo(n) {
1532
+ const { ok: e, statusText: t } = n;
1533
+ if (!e)
1534
+ throw new Error(t);
1535
+ return n;
1536
+ }
1537
+ function Oo(n) {
1538
+ return "addInitializer" in n.constructor;
1539
+ }
1540
+ var se = class {
1541
+ constructor(n) {
1542
+ if (this.host = n, this.values = /* @__PURE__ */ new Map(), se.instances.has(n))
1543
+ return se.instances.get(n);
1544
+ n.addController(this), se.instances.set(n, this);
1545
+ }
1546
+ static for(n) {
1547
+ return new se(n);
1548
+ }
1549
+ hostConnected() {
1550
+ }
1551
+ set(n, e) {
1552
+ const t = this.values.get(n);
1553
+ this.values.set(n, e), Oo(this.host) ? this.host.requestUpdate(n, t) : this.host.requestUpdate();
1554
+ }
1555
+ }, at = se;
1556
+ at.instances = /* @__PURE__ */ new Map();
1557
+ function m(n, e) {
1558
+ const t = n.constructor;
1559
+ t.addInitializer((o) => {
1560
+ const s = at.for(o);
1561
+ Object.defineProperty(o.constructor.prototype, e, {
1562
+ enumerable: !0,
1563
+ configurable: !0,
1564
+ get() {
1565
+ return s.values.get(e);
1566
+ },
1567
+ set(r) {
1568
+ s.values.has(e) || s.values.set(e, r);
1569
+ }
1570
+ }), t.createProperty(e, {
1571
+ ...t.getPropertyOptions(e),
1572
+ noAccessor: !0
1573
+ });
1574
+ });
1575
+ }
1576
+ m.set = function(n, e) {
1577
+ const t = at.for(n);
1578
+ for (const [o, s] of Object.entries(e))
1579
+ t.set(o, s);
1580
+ };
1581
+ var Io = class extends Event {
1582
+ constructor(n, e, t, o) {
1583
+ super(`${o ?? n.toLowerCase()}-changed`), this.key = n, this.oldValue = e, this.value = t, this.detail = { value: t };
1584
+ }
1585
+ }, ge = class {
1586
+ constructor(n) {
1587
+ if (this.host = n, this.cache = /* @__PURE__ */ new Map(), ge.instances.has(n))
1588
+ return ge.instances.get(n);
1589
+ n.addController(this), ge.instances.set(n, this);
1590
+ }
1591
+ hostUpdated() {
1592
+ for (const [n, e] of this.cache) {
1593
+ const t = this.host[n], { attribute: o } = this.host.constructor.getPropertyOptions(n) ?? {}, s = typeof o == "string" ? o : null;
1594
+ this.cache.set(n, t), this.host.dispatchEvent(new Io(n, e, t, s));
1595
+ }
1596
+ }
1597
+ }, Yt = ge;
1598
+ Yt.instances = /* @__PURE__ */ new Map();
1599
+ function x(n, e) {
1600
+ n.constructor.addInitializer((t) => {
1601
+ new Yt(t).cache.set(e, t[e]);
1602
+ });
1603
+ }
1604
+ function Lo(n) {
1605
+ return (e, t, o) => {
1606
+ const s = o.value;
1607
+ return o.value = n(s), o;
1608
+ };
1609
+ }
1610
+ var lt = Lo(function(n) {
1611
+ const { name: e } = n;
1612
+ return async function(...t) {
1613
+ if (!this.stripe)
1614
+ throw new Error(`<${this.constructor.is}>: Stripe must be initialized before calling ${e}.`);
1615
+ return n.call(this, ...t).then(this.handleResponse);
1616
+ };
1617
+ });
1618
+ function Rt(n) {
1619
+ if (n.error)
1620
+ throw n.error;
1621
+ return n;
1622
+ }
1623
+ var qo = Object.defineProperty, Uo = Object.getOwnPropertyDescriptor, a = (n, e, t, o) => {
1624
+ for (var s = o > 1 ? void 0 : o ? Uo(e, t) : e, r = n.length - 1, i; r >= 0; r--)
1625
+ (i = n[r]) && (s = (o ? i(e, t, s) : i(s)) || s);
1626
+ return o && s && qo(e, t, s), s;
1627
+ }, Zt = (n, e, t) => {
1628
+ if (!e.has(n))
1629
+ throw TypeError("Cannot " + t);
1630
+ }, Nt = (n, e, t) => (Zt(n, e, "read from private field"), t ? t.call(n) : e.get(n)), Mt = (n, e, t) => {
1631
+ if (e.has(n))
1632
+ throw TypeError("Cannot add the same private member more than once");
1633
+ e instanceof WeakSet ? e.add(n) : e.set(n, t);
1634
+ }, At = (n, e, t, o) => (Zt(n, e, "write to private field"), e.set(n, t), t);
1635
+ function Vt() {
1636
+ return (Date.now() + Math.random() * 1e3).toString(36).substr(0, 8);
1637
+ }
1638
+ var Bo = class {
1639
+ constructor(n, e) {
1640
+ this.host = n, this.options = e, this.initialized = !1, this.shadowHosts = [], this.host.addController(this), this.mountId = this.resetMountId(), this.slotName = this.options?.slotName ?? `breadcrumb-${Vt()}`;
1641
+ }
1642
+ get mount() {
1643
+ return document.getElementById(this.mountId);
1644
+ }
1645
+ hostUpdated() {
1646
+ !this.initialized && this.options?.autoInitialize !== !1 && this.init();
1647
+ }
1648
+ hostDisconnected() {
1649
+ this.destroyMountPoints();
1650
+ }
1651
+ resetMountId() {
1652
+ return `${this.options?.mountPrefix ?? this.host.localName}-mount-point-${Vt()}`;
1653
+ }
1654
+ createMountPoint() {
1655
+ const n = document.createElement("div");
1656
+ return n.id = this.mountId, n.classList.add(`${this.host.tagName.toLowerCase()}-mount`), n;
1657
+ }
1658
+ createSlot(n) {
1659
+ const e = document.createElement("slot");
1660
+ return e.slot = n, e.name = n, e;
1661
+ }
1662
+ appendTemplate(n, e = this.createMountPoint()) {
1663
+ return n.appendChild(e), e;
1664
+ }
1665
+ initMountPoints() {
1666
+ this.initShadowMountPoints();
1667
+ }
1668
+ destroyMountPoints() {
1669
+ for (const n of this.shadowHosts)
1670
+ for (const e of n.querySelectorAll(`[slot="${this.slotName}"][name="${this.slotName}"]`))
1671
+ e.remove();
1672
+ this.mount && this.mount.remove(), this.mountId = this.resetMountId();
1673
+ }
1674
+ initShadowMountPoints() {
1675
+ let n = this.host;
1676
+ for (this.shadowHosts = [this.host]; n = n.getRootNode().host; )
1677
+ this.shadowHosts.push(n);
1678
+ const { shadowHosts: e, slotName: t } = this, o = [...e], s = o.pop();
1679
+ if (!s.querySelector(`[slot="${t}"]`)) {
1680
+ const i = document.createElement("div");
1681
+ i.slot = t, s.appendChild(i);
1682
+ }
1683
+ const r = s.querySelector(`[slot="${t}"]`);
1684
+ this.appendTemplate(r), o.forEach((i) => this.appendTemplate(i, this.createSlot(t)));
1685
+ }
1686
+ init() {
1687
+ this.destroyMountPoints(), this.initMountPoints(), this.initialized = !0;
1688
+ }
1689
+ };
1690
+ function ve(n) {
1691
+ "@babel/helpers - typeof";
1692
+ return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? ve = function(e) {
1693
+ return typeof e;
1694
+ } : ve = function(e) {
1695
+ return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
1696
+ }, ve(n);
1697
+ }
1698
+ var Xt = "https://js.stripe.com/v3", Do = /^https:\/\/js\.stripe\.com\/v3\/?(\?.*)?$/, zt = "loadStripe.setLoadParameters was called but an existing Stripe.js script already exists in the document; existing script parameters will be used", Fo = function() {
1699
+ for (var e = document.querySelectorAll('script[src^="'.concat(Xt, '"]')), t = 0; t < e.length; t++) {
1700
+ var o = e[t];
1701
+ if (Do.test(o.src))
1702
+ return o;
1703
+ }
1704
+ return null;
1705
+ }, jo = function(e) {
1706
+ var t = e && !e.advancedFraudSignals ? "?advancedFraudSignals=false" : "", o = document.createElement("script");
1707
+ o.src = "".concat(Xt).concat(t);
1708
+ var s = document.head || document.body;
1709
+ if (!s)
1710
+ throw new Error("Expected document.body not to be null. Stripe.js requires a <body> element.");
1711
+ return s.appendChild(o), o;
1712
+ }, Wo = function(e, t) {
1713
+ !e || !e._registerWrapper || e._registerWrapper({
1714
+ name: "stripe-js",
1715
+ version: "1.32.0",
1716
+ startTime: t
1717
+ });
1718
+ }, de = null, Ho = function(e) {
1719
+ return de !== null || (de = new Promise(function(t, o) {
1720
+ if (typeof window > "u") {
1721
+ t(null);
1722
+ return;
1723
+ }
1724
+ if (window.Stripe && e && console.warn(zt), window.Stripe) {
1725
+ t(window.Stripe);
1726
+ return;
1727
+ }
1728
+ try {
1729
+ var s = Fo();
1730
+ s && e ? console.warn(zt) : s || (s = jo(e)), s.addEventListener("load", function() {
1731
+ window.Stripe ? t(window.Stripe) : o(new Error("Stripe.js not available"));
1732
+ }), s.addEventListener("error", function() {
1733
+ o(new Error("Failed to load Stripe.js"));
1734
+ });
1735
+ } catch (r) {
1736
+ o(r);
1737
+ return;
1738
+ }
1739
+ })), de;
1740
+ }, Ko = function(e, t, o) {
1741
+ if (e === null)
1742
+ return null;
1743
+ var s = e.apply(void 0, t);
1744
+ return Wo(s, o), s;
1745
+ }, Go = function(e) {
1746
+ var t = `invalid load parameters; expected object of shape
1747
+
1748
+ {advancedFraudSignals: boolean}
1749
+
1750
+ but received
1751
+
1752
+ `.concat(JSON.stringify(e), `
1753
+ `);
1754
+ if (e === null || ve(e) !== "object")
1755
+ throw new Error(t);
1756
+ if (Object.keys(e).length === 1 && typeof e.advancedFraudSignals == "boolean")
1757
+ return e;
1758
+ throw new Error(t);
1759
+ }, Qt, en = !1, tn = function() {
1760
+ for (var e = arguments.length, t = new Array(e), o = 0; o < e; o++)
1761
+ t[o] = arguments[o];
1762
+ en = !0;
1763
+ var s = Date.now();
1764
+ return Ho(Qt).then(function(r) {
1765
+ return Ko(r, t, s);
1766
+ });
1767
+ };
1768
+ tn.setLoadParameters = function(n) {
1769
+ if (en)
1770
+ throw new Error("You cannot change load parameters after calling loadStripe");
1771
+ Qt = Go(n);
1772
+ };
1773
+ var nn = class extends Error {
1774
+ constructor(n, e) {
1775
+ super(`<${n}>: ${e}`), this.originalMessage = e;
1776
+ }
1777
+ };
1778
+ function on(n) {
1779
+ return !!n && n instanceof nn;
1780
+ }
1781
+ var Jo = {
1782
+ toAttribute: (n) => n ? on(n) ? n.originalMessage : n.message || "" : null
1783
+ }, p = class extends Y {
1784
+ constructor() {
1785
+ 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 Bo(this, {
1786
+ slotName: `${this.constructor.is}-slot`
1787
+ });
1788
+ }
1789
+ get stripeMountId() {
1790
+ return this.breadcrumb.mountId;
1791
+ }
1792
+ get stripeMount() {
1793
+ return this.breadcrumb.mount;
1794
+ }
1795
+ render() {
1796
+ const { error: n, showError: e } = this, { slotName: t } = this.breadcrumb, o = on(n) ? n.originalMessage : n?.message;
1797
+ return vo`
1798
+ <div id="stripe" part="stripe">
1799
+ <slot id="stripe-slot" name="${t}"></slot>
1800
+ </div>
1801
+
1802
+ <output id="error"
1803
+ for="stripe"
1804
+ part="error"
1805
+ ?hidden="${!e}">
1806
+ ${xo(o)}
1807
+ </output>
1808
+ `;
1809
+ }
1810
+ updated(n) {
1811
+ super.updated?.(n), n.has("error") && this.errorChanged(), n.has("publishableKey") && this.init(), [...n.keys()].forEach((e) => this.representationChanged(e));
1812
+ }
1813
+ async disconnectedCallback() {
1814
+ super.disconnectedCallback(), await this.unmount?.();
1815
+ }
1816
+ reset() {
1817
+ this.element?.clear?.(), this.resetRepresentations(), m.set(this, { error: null });
1818
+ }
1819
+ blur() {
1820
+ this.element?.blur();
1821
+ }
1822
+ focus() {
1823
+ this.element?.focus();
1824
+ }
1825
+ createError(n) {
1826
+ return new nn(this.constructor.is, n);
1827
+ }
1828
+ errorChanged() {
1829
+ this.resetRepresentations(), this.fireError(this.error);
1830
+ }
1831
+ fire(n, e, t) {
1832
+ this.dispatchEvent(new CustomEvent(n, { detail: e, ...t }));
1833
+ }
1834
+ fireError(n) {
1835
+ this.dispatchEvent(new ErrorEvent("error", { error: n }));
1836
+ }
1837
+ getCSSCustomPropertyValue(n) {
1838
+ return this.precomputedStyle.getPropertyValue(n);
1839
+ }
1840
+ async handleResponse(n) {
1841
+ const { error: e = null, paymentMethod: t = null, source: o = null, token: s = null } = { ...n };
1842
+ if (m.set(this, { error: e, paymentMethod: t, source: o, token: s }), await this.updateComplete, e)
1843
+ throw e;
1844
+ return n;
1845
+ }
1846
+ initElement() {
1847
+ "abstract";
1848
+ }
1849
+ async init() {
1850
+ await this.unmount(), await this.initStripe(), await this.initElement(), this.initElementListeners(), this.breadcrumb.init(), this.mount();
1851
+ }
1852
+ initElementListeners() {
1853
+ this.element && (this.element.on("ready", this.onReady), this.element.on("focus", this.onFocus), this.element.on("blur", this.onBlur));
1854
+ }
1855
+ async initStripe() {
1856
+ const { publishableKey: n, stripeAccount: e, locale: t } = this;
1857
+ if (!n)
1858
+ m.set(this, { elements: null, element: null, stripe: null });
1859
+ else
1860
+ try {
1861
+ const o = { stripeAccount: e, locale: t }, s = window.Stripe ? window.Stripe(n, o) : await tn(n, o), r = s?.elements();
1862
+ m.set(this, { elements: r, error: null, stripe: s });
1863
+ } catch (o) {
1864
+ console.warn(o);
1865
+ const s = this.createError("Stripe.js must be loaded first.");
1866
+ m.set(this, { elements: null, error: s, stripe: null });
1867
+ } finally {
1868
+ await this.updateComplete;
1869
+ }
1870
+ }
1871
+ mount() {
1872
+ if (!this.breadcrumb.mount)
1873
+ throw this.createError("Stripe Mount missing");
1874
+ this.element?.mount(this.breadcrumb.mount);
1875
+ }
1876
+ async unmount() {
1877
+ this.element?.unmount?.(), m.set(this, { element: null }), await this.updateComplete;
1878
+ }
1879
+ async onBlur() {
1880
+ m.set(this, { focused: !1 }), await this.updateComplete;
1881
+ }
1882
+ async onFocus() {
1883
+ m.set(this, { focused: !0 }), await this.updateComplete;
1884
+ }
1885
+ async onReady(n) {
1886
+ m.set(this, { ready: !0 }), await this.updateComplete, this.fire("ready", n);
1887
+ }
1888
+ async postRepresentation() {
1889
+ const n = (l) => m.set(this, { error: l }), e = (l) => this.fire("success", l), t = this.token || void 0, o = this.source || void 0, s = this.paymentMethod || void 0, r = JSON.stringify({ token: t, source: o, paymentMethod: s }), i = { "Content-Type": "application/json" };
1890
+ return fetch(this.action, { body: r, headers: i, method: "POST" }).then(zo).then(e).catch(n);
1891
+ }
1892
+ representationChanged(n) {
1893
+ if (!Vo(n))
1894
+ return;
1895
+ const e = this[n];
1896
+ e && (this.fire(`${Jt(n)}`, e), this.action && this.postRepresentation());
1897
+ }
1898
+ resetRepresentations() {
1899
+ m.set(this, {
1900
+ paymentMethod: null,
1901
+ token: null,
1902
+ source: null
1903
+ });
1904
+ }
1905
+ };
1906
+ a([
1907
+ u({ type: String })
1908
+ ], p.prototype, "action", 2);
1909
+ a([
1910
+ u({ type: String, attribute: "client-secret" })
1911
+ ], p.prototype, "clientSecret", 2);
1912
+ a([
1913
+ u({ type: String })
1914
+ ], p.prototype, "generate", 2);
1915
+ a([
1916
+ x,
1917
+ u({ type: String, attribute: "publishable-key", reflect: !0 })
1918
+ ], p.prototype, "publishableKey", 2);
1919
+ a([
1920
+ u({ type: Boolean, attribute: "show-error", reflect: !0 })
1921
+ ], p.prototype, "showError", 2);
1922
+ a([
1923
+ u({ type: String, attribute: "stripe-account" })
1924
+ ], p.prototype, "stripeAccount", 2);
1925
+ a([
1926
+ u({ type: String, attribute: "locale" })
1927
+ ], p.prototype, "locale", 2);
1928
+ a([
1929
+ m,
1930
+ x,
1931
+ u({ type: Object, attribute: "payment-method" })
1932
+ ], p.prototype, "paymentMethod", 2);
1933
+ a([
1934
+ m,
1935
+ x,
1936
+ u({ type: Object })
1937
+ ], p.prototype, "source", 2);
1938
+ a([
1939
+ m,
1940
+ x,
1941
+ u({ type: Object })
1942
+ ], p.prototype, "token", 2);
1943
+ a([
1944
+ m,
1945
+ u({ type: Object })
1946
+ ], p.prototype, "element", 2);
1947
+ a([
1948
+ m,
1949
+ u({ type: Object })
1950
+ ], p.prototype, "elements", 2);
1951
+ a([
1952
+ m,
1953
+ x,
1954
+ u({ type: Object, reflect: !0, converter: Jo })
1955
+ ], p.prototype, "error", 2);
1956
+ a([
1957
+ m,
1958
+ x,
1959
+ u({ type: Boolean, reflect: !0 })
1960
+ ], p.prototype, "focused", 2);
1961
+ a([
1962
+ m,
1963
+ x,
1964
+ u({ type: Boolean, reflect: !0 })
1965
+ ], p.prototype, "ready", 2);
1966
+ a([
1967
+ m,
1968
+ u({ type: Object })
1969
+ ], p.prototype, "stripe", 2);
1970
+ a([
1971
+ u()
1972
+ ], p.prototype, "theme", 2);
1973
+ a([
1974
+ u({ attribute: "border-radius" })
1975
+ ], p.prototype, "borderRadius", 2);
1976
+ a([
1977
+ u({ attribute: "color-background" })
1978
+ ], p.prototype, "colorBackground", 2);
1979
+ a([
1980
+ u({ attribute: "color-danger" })
1981
+ ], p.prototype, "colorDanger", 2);
1982
+ a([
1983
+ u({ attribute: "color-primary" })
1984
+ ], p.prototype, "colorPrimary", 2);
1985
+ a([
1986
+ u({ attribute: "color-text" })
1987
+ ], p.prototype, "colorText", 2);
1988
+ a([
1989
+ u({ attribute: "font-family" })
1990
+ ], p.prototype, "fontFamily", 2);
1991
+ a([
1992
+ u({ attribute: "spacing-unit" })
1993
+ ], p.prototype, "spacingUnit", 2);
1994
+ a([
1995
+ k
1996
+ ], p.prototype, "handleResponse", 1);
1997
+ a([
1998
+ k
1999
+ ], p.prototype, "onBlur", 1);
2000
+ a([
2001
+ k
2002
+ ], p.prototype, "onFocus", 1);
2003
+ a([
2004
+ k
2005
+ ], p.prototype, "onReady", 1);
2006
+ var Yo = ot`[hidden] {
2007
+ display: none !important;
2008
+ }
2009
+
2010
+ :host:not([hidden]) {
2011
+ display: block;
2012
+ box-sizing: border-box;
2013
+ }
2014
+
2015
+ #error {
2016
+ font-family: sans-serif;
2017
+ font-size: 14px;
2018
+ padding-left: 42px;
2019
+ padding-bottom: 10px;
2020
+ }
2021
+ `, sn = Yo, Zo = ot`:host {
2022
+ min-width: var(--stripe-elements-width, 300px);
2023
+ min-height: var(--stripe-elements-height, 50px);
2024
+ }
2025
+
2026
+ #stripe {
2027
+ box-sizing: border-box;
2028
+ border-radius: var(--stripe-elements-border-radius, 4px);
2029
+ border: var(--stripe-elements-border, 1px solid transparent);
2030
+ box-shadow: var(--stripe-elements-box-shadow, 0 1px 3px 0 #e6ebf1);
2031
+ transition: var(--stripe-elements-transition, box-shadow 150ms ease);
2032
+ min-width: var(--stripe-elements-width, 300px);
2033
+ padding: var(--stripe-elements-element-padding, 8px 12px);
2034
+ background: var(--stripe-elements-element-background, white);
2035
+ }
2036
+
2037
+ :host([focused]) #stripe {
2038
+ box-shadow: 0 1px 3px 0 #cfd7df;
2039
+ }
2040
+
2041
+ :host([error]) #stripe {
2042
+ border-color: #fa755a;
2043
+ }
2044
+ `, Xo = Zo, Ot = [
2045
+ "color",
2046
+ "fontFamily",
2047
+ "fontSize",
2048
+ "fontStyle",
2049
+ "fontSmoothing",
2050
+ "fontVariant",
2051
+ "iconColor",
2052
+ "lineHeight",
2053
+ "letterSpacing",
2054
+ "textDecoration",
2055
+ "textShadow",
2056
+ "textTransform"
2057
+ ], Qo = [
2058
+ ":hover",
2059
+ ":focus",
2060
+ "::placeholder",
2061
+ "::selection",
2062
+ ":-webkit-autofill",
2063
+ ":disabled"
2064
+ ], P = class extends p {
2065
+ constructor() {
2066
+ 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;
2067
+ }
2068
+ async createPaymentMethod(n = this.getPaymentMethodData()) {
2069
+ return this.stripe.createPaymentMethod(n);
2070
+ }
2071
+ async createSource(n = this.sourceData) {
2072
+ return this.stripe.createSource(this.element, n);
2073
+ }
2074
+ async createToken(n = this.tokenData) {
2075
+ return this.stripe.createToken(this.element, n);
2076
+ }
2077
+ isPotentiallyValid() {
2078
+ return !this.complete && !this.empty && !this.error || this.validate();
2079
+ }
2080
+ reset() {
2081
+ super.reset(), this.element?.clear();
2082
+ }
2083
+ async submit() {
2084
+ switch (this.generate) {
2085
+ case "payment-method":
2086
+ return this.createPaymentMethod();
2087
+ case "source":
2088
+ return this.createSource();
2089
+ case "token":
2090
+ return this.createToken();
2091
+ default: {
2092
+ const n = this.createError(`cannot generate ${this.generate}`);
2093
+ throw m.set(this, { error: n }), await this.updateComplete, n;
2094
+ }
2095
+ }
2096
+ }
2097
+ validate() {
2098
+ const { complete: n, empty: e, error: t } = this, o = !t && n && !e;
2099
+ return e && !t && m.set(this, { error: this.createError("Your card number is empty.") }), o;
2100
+ }
2101
+ updateStyle() {
2102
+ this.element?.update({
2103
+ style: this.getStripeElementsStyles()
2104
+ });
2105
+ }
2106
+ getPaymentMethodData() {
2107
+ const n = "card", { billingDetails: e, paymentMethodData: t } = this;
2108
+ return {
2109
+ billing_details: e,
2110
+ ...t,
2111
+ type: n,
2112
+ card: this.element
2113
+ };
2114
+ }
2115
+ getStripeElementsStyles() {
2116
+ const n = (s) => this.getCSSCustomPropertyValue(s) || void 0, e = ["base", "complete", "empty", "invalid"], t = (s) => (r, i) => {
2117
+ if (s.includes("-"))
2118
+ return r;
2119
+ const c = i.split(":").pop();
2120
+ return {
2121
+ ...r,
2122
+ [i]: Ot.reduce(o(`${s}-${c}`), {})
2123
+ };
2124
+ }, o = (s) => (r, i) => {
2125
+ const c = `--stripe-elements-${s}-${Jt(i)}`;
2126
+ return {
2127
+ ...r,
2128
+ [i]: n(c),
2129
+ ...Qo.reduce(t(s), {})
2130
+ };
2131
+ };
2132
+ return e.reduce((s, r) => ({
2133
+ ...s,
2134
+ [r]: Ot.reduce(o(r), {})
2135
+ }), {});
2136
+ }
2137
+ async initElement() {
2138
+ if (!this.stripe)
2139
+ return;
2140
+ const { hidePostalCode: n, hideIcon: e, iconStyle: t, value: o } = this, s = this.getStripeElementsStyles();
2141
+ await this.updateComplete;
2142
+ const r = this.createElement({
2143
+ hideIcon: e,
2144
+ hidePostalCode: n,
2145
+ iconStyle: t,
2146
+ style: s,
2147
+ value: o
2148
+ });
2149
+ r.on("change", this.onChange), m.set(this, { element: r }), await this.updateComplete;
2150
+ }
2151
+ createElement(n) {
2152
+ return this.elements.create("card", n);
2153
+ }
2154
+ async onChange(n) {
2155
+ const { brand: e, complete: t, empty: o, error: s = null } = n, r = !(s || !o && !t);
2156
+ m.set(this, { brand: e, complete: t, empty: o, error: s, invalid: r }), await this.updateComplete, this.fire("change", n);
2157
+ }
2158
+ };
2159
+ P.is = "stripe-elements";
2160
+ P.elementType = "card";
2161
+ P.styles = [
2162
+ sn,
2163
+ Xo
2164
+ ];
2165
+ a([
2166
+ u({ type: Boolean, attribute: "hide-icon" })
2167
+ ], P.prototype, "hideIcon", 2);
2168
+ a([
2169
+ u({ type: Boolean, attribute: "hide-postal-code" })
2170
+ ], P.prototype, "hidePostalCode", 2);
2171
+ a([
2172
+ u({ type: String, attribute: "icon-style" })
2173
+ ], P.prototype, "iconStyle", 2);
2174
+ a([
2175
+ u({ type: Object })
2176
+ ], P.prototype, "value", 2);
2177
+ a([
2178
+ x,
2179
+ m,
2180
+ u({ type: String })
2181
+ ], P.prototype, "brand", 2);
2182
+ a([
2183
+ x,
2184
+ m,
2185
+ u({ type: Boolean, reflect: !0 })
2186
+ ], P.prototype, "complete", 2);
2187
+ a([
2188
+ x,
2189
+ m,
2190
+ u({ type: Boolean, reflect: !0 })
2191
+ ], P.prototype, "empty", 2);
2192
+ a([
2193
+ x,
2194
+ m,
2195
+ u({ type: Boolean, reflect: !0 })
2196
+ ], P.prototype, "invalid", 2);
2197
+ a([
2198
+ lt
2199
+ ], P.prototype, "createPaymentMethod", 1);
2200
+ a([
2201
+ lt
2202
+ ], P.prototype, "createSource", 1);
2203
+ a([
2204
+ lt
2205
+ ], P.prototype, "createToken", 1);
2206
+ a([
2207
+ k
2208
+ ], P.prototype, "onChange", 1);
2209
+ P = a([
2210
+ qt("stripe-elements")
2211
+ ], P);
2212
+ var es = ot`#stripe {
2213
+ box-sizing: border-box;
2214
+ min-width: var(--stripe-payment-request-element-min-width, 300px);
2215
+ padding: var(--stripe-payment-request-element-padding, 8px 12px);
2216
+ background: var(--stripe-payment-request-element-background, white);
2217
+ }
2218
+ `, ts = es;
2219
+ function ns(n) {
2220
+ return n.tagName.toLowerCase() === "stripe-display-item";
2221
+ }
2222
+ function os({ dataset: { amount: n, label: e, pending: t } }) {
2223
+ return {
2224
+ label: e,
2225
+ amount: parseInt(n),
2226
+ ...t !== void 0 && { pending: t === "true" }
2227
+ };
2228
+ }
2229
+ function ss({ dataset: { amount: n, detail: e, ...t } }) {
2230
+ return {
2231
+ amount: parseInt(n),
2232
+ detail: e,
2233
+ ...t
2234
+ };
2235
+ }
2236
+ function rs(n) {
2237
+ return ns(n) ? os(n) : ss(n);
2238
+ }
2239
+ var be, _e, g = class extends p {
2240
+ constructor() {
2241
+ super(...arguments), this.canMakePayment = null, Mt(this, be, void 0), this.paymentIntent = null, this.paymentRequest = null, this.pending = !1, Mt(this, _e, void 0), this.buttonType = "default", this.buttonTheme = "dark", this.complete = async (n, e) => {
2242
+ const { error: t = null } = { ...n }, o = t || e ? "fail" : "success";
2243
+ return n.complete(o), this.fire(o, n), e ? { error: e } : n;
2244
+ };
2245
+ }
2246
+ get displayItems() {
2247
+ const n = Nt(this, be);
2248
+ return Array.isArray(n) ? n : this.parseDatasets("stripe-display-item");
2249
+ }
2250
+ set displayItems(n) {
2251
+ const e = this.displayItems;
2252
+ At(this, be, n), this.requestUpdate("displayItems", e);
2253
+ }
2254
+ get shippingOptions() {
2255
+ const n = Nt(this, _e);
2256
+ return Array.isArray(n) ? n : this.parseDatasets("stripe-shipping-option");
2257
+ }
2258
+ set shippingOptions(n) {
2259
+ const e = this.shippingOptions;
2260
+ At(this, _e, n), this.requestUpdate("shippingOptions", e);
2261
+ }
2262
+ reset() {
2263
+ super.reset(), m.set(this, { paymentIntent: null });
2264
+ }
2265
+ updated(n) {
2266
+ super.updated(n), n.has("generate") && this.initPaymentRequestListeners(), n.has("amount") && this.updatePaymentRequest();
2267
+ }
2268
+ getStripePaymentRequestOptions() {
2269
+ const {
2270
+ country: n,
2271
+ currency: e,
2272
+ displayItems: t,
2273
+ shippingOptions: o,
2274
+ requestShipping: s,
2275
+ requestPayerEmail: r,
2276
+ requestPayerName: i,
2277
+ requestPayerPhone: c,
2278
+ label: l = "",
2279
+ amount: f = 0
2280
+ } = this;
2281
+ return {
2282
+ country: n,
2283
+ currency: e,
2284
+ displayItems: t,
2285
+ requestPayerEmail: r,
2286
+ requestPayerName: i,
2287
+ requestPayerPhone: c,
2288
+ requestShipping: s,
2289
+ shippingOptions: o,
2290
+ total: { label: l, amount: f }
2291
+ };
2292
+ }
2293
+ async initElement() {
2294
+ await this.initPaymentRequest(), await this.initPaymentRequestListeners(), await this.initPaymentRequestButton();
2295
+ }
2296
+ async initPaymentRequest() {
2297
+ if (!this.stripe)
2298
+ return;
2299
+ const n = this.getStripePaymentRequestOptions(), e = this.stripe.paymentRequest(n), t = await e.canMakePayment();
2300
+ m.set(this, { paymentRequest: e, canMakePayment: t }), await this.updateComplete, this.canMakePayment || this.fire("unsupported");
2301
+ }
2302
+ async initPaymentRequestButton() {
2303
+ const { buttonTheme: n, buttonType: e, canMakePayment: t } = this;
2304
+ if (!t || !this.elements)
2305
+ return;
2306
+ const r = { paymentRequestButton: { height: this.getCSSCustomPropertyValue("--stripe-payment-request-button-height") || "40px", theme: n, type: e } }, i = this.elements.create("paymentRequestButton", {
2307
+ paymentRequest: this.paymentRequest,
2308
+ style: r
2309
+ });
2310
+ m.set(this, { element: i }), await this.updateComplete;
2311
+ }
2312
+ async initPaymentRequestListeners() {
2313
+ if (this.canMakePayment)
2314
+ 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) {
2315
+ case "payment-method":
2316
+ this.paymentRequest.on("paymentmethod", this.onPaymentResponse);
2317
+ break;
2318
+ case "source":
2319
+ this.paymentRequest.on("source", this.onPaymentResponse);
2320
+ break;
2321
+ case "token":
2322
+ this.paymentRequest.on("token", this.onPaymentResponse);
2323
+ break;
2324
+ }
2325
+ }
2326
+ async updatePaymentRequest() {
2327
+ if (!this.paymentRequest)
2328
+ return;
2329
+ const { currency: n, total: e, displayItems: t, shippingOptions: o } = this.getStripePaymentRequestOptions();
2330
+ this.paymentRequest.update({ currency: n, total: e, displayItems: t, shippingOptions: o });
2331
+ }
2332
+ onCancel() {
2333
+ this.fire(
2334
+ "cancel"
2335
+ /* cancel */
2336
+ );
2337
+ }
2338
+ async onPaymentResponse(n) {
2339
+ const {
2340
+ error: e = null,
2341
+ paymentMethod: t = null,
2342
+ source: o = null,
2343
+ token: s = null
2344
+ } = { ...n };
2345
+ m.set(this, { error: e, paymentMethod: t, source: o, token: s }), this.clientSecret && !e ? this.confirmPaymentIntent(n) : this.complete(n);
2346
+ }
2347
+ async confirmPaymentIntent(n) {
2348
+ const e = { payment_method: this.paymentMethod.id }, t = await this.confirmCardPayment(e, { handleActions: !1 }).then(({ error: r }) => this.complete(n, r)).then(Rt).then(() => this.confirmCardPayment()).then(Rt).catch((r) => ({ error: r })), { error: o = null } = t, s = t.paymentIntent ?? null;
2349
+ m.set(this, { error: o, paymentIntent: s }), await this.updateComplete;
2350
+ }
2351
+ async confirmCardPayment(n, e) {
2352
+ return this.stripe.confirmCardPayment(this.clientSecret, n, e);
2353
+ }
2354
+ onShippingaddresschange(n) {
2355
+ this.fire("shippingaddresschange", n);
2356
+ }
2357
+ onShippingoptionchange(n) {
2358
+ this.fire("shippingoptionchange", n);
2359
+ }
2360
+ parseDatasets(n) {
2361
+ const e = [...this.querySelectorAll(n)];
2362
+ return e.length ? e.map(rs) : [];
2363
+ }
2364
+ };
2365
+ be = /* @__PURE__ */ new WeakMap();
2366
+ _e = /* @__PURE__ */ new WeakMap();
2367
+ g.is = "stripe-payment-request";
2368
+ g.styles = [
2369
+ sn,
2370
+ ts
2371
+ ];
2372
+ a([
2373
+ u({ type: Number, reflect: !0 })
2374
+ ], g.prototype, "amount", 2);
2375
+ a([
2376
+ x,
2377
+ m,
2378
+ u({ type: Boolean, attribute: "can-make-payment", reflect: !0 })
2379
+ ], g.prototype, "canMakePayment", 2);
2380
+ a([
2381
+ u({ type: String })
2382
+ ], g.prototype, "country", 2);
2383
+ a([
2384
+ u({ type: String })
2385
+ ], g.prototype, "currency", 2);
2386
+ a([
2387
+ u({ type: Array })
2388
+ ], g.prototype, "displayItems", 1);
2389
+ a([
2390
+ u({ type: String, reflect: !0 })
2391
+ ], g.prototype, "label", 2);
2392
+ a([
2393
+ x,
2394
+ m,
2395
+ u({ type: Object, attribute: "payment-intent" })
2396
+ ], g.prototype, "paymentIntent", 2);
2397
+ a([
2398
+ m,
2399
+ u({ type: Object, attribute: "payment-request" })
2400
+ ], g.prototype, "paymentRequest", 2);
2401
+ a([
2402
+ u({ type: Boolean, reflect: !0 })
2403
+ ], g.prototype, "pending", 2);
2404
+ a([
2405
+ u({ type: Boolean, attribute: "request-payer-email" })
2406
+ ], g.prototype, "requestPayerEmail", 2);
2407
+ a([
2408
+ u({ type: Boolean, attribute: "request-payer-name" })
2409
+ ], g.prototype, "requestPayerName", 2);
2410
+ a([
2411
+ u({ type: Boolean, attribute: "request-payer-phone" })
2412
+ ], g.prototype, "requestPayerPhone", 2);
2413
+ a([
2414
+ u({ type: Boolean, attribute: "request-shipping" })
2415
+ ], g.prototype, "requestShipping", 2);
2416
+ a([
2417
+ u({ type: Array })
2418
+ ], g.prototype, "shippingOptions", 1);
2419
+ a([
2420
+ u({ type: String, attribute: "button-type" })
2421
+ ], g.prototype, "buttonType", 2);
2422
+ a([
2423
+ u({ type: String, attribute: "button-theme" })
2424
+ ], g.prototype, "buttonTheme", 2);
2425
+ a([
2426
+ k
2427
+ ], g.prototype, "onCancel", 1);
2428
+ a([
2429
+ k
2430
+ ], g.prototype, "onPaymentResponse", 1);
2431
+ a([
2432
+ k
2433
+ ], g.prototype, "confirmPaymentIntent", 1);
2434
+ a([
2435
+ k
2436
+ ], g.prototype, "confirmCardPayment", 1);
2437
+ a([
2438
+ k
2439
+ ], g.prototype, "onShippingaddresschange", 1);
2440
+ a([
2441
+ k
2442
+ ], g.prototype, "onShippingoptionchange", 1);
2443
+ g = a([
2444
+ qt("stripe-payment-request")
2445
+ ], g);
2446
+ var rn = "clover", is = function(e) {
2447
+ return e === 3 ? "v3" : e;
2448
+ }, an = "https://js.stripe.com", as = "".concat(an, "/").concat(rn, "/stripe.js"), ls = /^https:\/\/js\.stripe\.com\/v3\/?(\?.*)?$/, cs = /^https:\/\/js\.stripe\.com\/(v3|[a-z]+)\/stripe\.js(\?.*)?$/;
2449
+ var ds = function(e) {
2450
+ return ls.test(e) || cs.test(e);
2451
+ }, us = function() {
2452
+ for (var e = document.querySelectorAll('script[src^="'.concat(an, '"]')), t = 0; t < e.length; t++) {
2453
+ var o = e[t];
2454
+ if (ds(o.src))
2455
+ return o;
2456
+ }
2457
+ return null;
2458
+ }, It = function(e) {
2459
+ var t = "", o = document.createElement("script");
2460
+ o.src = "".concat(as).concat(t);
2461
+ var s = document.head || document.body;
2462
+ if (!s)
2463
+ throw new Error("Expected document.body not to be null. Stripe.js requires a <body> element.");
2464
+ return s.appendChild(o), o;
2465
+ }, fs = function(e, t) {
2466
+ !e || !e._registerWrapper || e._registerWrapper({
2467
+ name: "stripe-js",
2468
+ version: "8.5.3",
2469
+ startTime: t
2470
+ });
2471
+ }, ne = null, ue = null, fe = null, ms = function(e) {
2472
+ return function(t) {
2473
+ e(new Error("Failed to load Stripe.js", {
2474
+ cause: t
2475
+ }));
2476
+ };
2477
+ }, ps = function(e, t) {
2478
+ return function() {
2479
+ window.Stripe ? e(window.Stripe) : t(new Error("Stripe.js not available"));
2480
+ };
2481
+ }, hs = function(e) {
2482
+ return ne !== null ? ne : (ne = new Promise(function(t, o) {
2483
+ if (typeof window > "u" || typeof document > "u") {
2484
+ t(null);
2485
+ return;
2486
+ }
2487
+ if (window.Stripe) {
2488
+ t(window.Stripe);
2489
+ return;
2490
+ }
2491
+ try {
2492
+ var s = us();
2493
+ if (!(s && e)) {
2494
+ if (!s)
2495
+ s = It(e);
2496
+ else if (s && fe !== null && ue !== null) {
2497
+ var r;
2498
+ s.removeEventListener("load", fe), s.removeEventListener("error", ue), (r = s.parentNode) === null || r === void 0 || r.removeChild(s), s = It(e);
2499
+ }
2500
+ }
2501
+ fe = ps(t, o), ue = ms(o), s.addEventListener("load", fe), s.addEventListener("error", ue);
2502
+ } catch (i) {
2503
+ o(i);
2504
+ return;
2505
+ }
2506
+ }), ne.catch(function(t) {
2507
+ return ne = null, Promise.reject(t);
2508
+ }));
2509
+ }, ys = function(e, t, o) {
2510
+ if (e === null)
2511
+ return null;
2512
+ var s = t[0], r = s.match(/^pk_test/), i = is(e.version), c = rn;
2513
+ r && i !== c && console.warn("Stripe.js@".concat(i, " was loaded on the page, but @stripe/stripe-js@").concat("8.5.3", " expected Stripe.js@").concat(c, ". This may result in unexpected behavior. For more information, see https://docs.stripe.com/sdks/stripejs-versioning"));
2514
+ var l = e.apply(void 0, t);
2515
+ return fs(l, o), l;
2516
+ }, oe, ln = !1, cn = function() {
2517
+ return oe || (oe = hs(null).catch(function(e) {
2518
+ return oe = null, Promise.reject(e);
2519
+ }), oe);
2520
+ };
2521
+ Promise.resolve().then(function() {
2522
+ return cn();
2523
+ }).catch(function(n) {
2524
+ ln || console.warn(n);
2525
+ });
2526
+ var gs = function() {
2527
+ for (var e = arguments.length, t = new Array(e), o = 0; o < e; o++)
2528
+ t[o] = arguments[o];
2529
+ ln = !0;
2530
+ var s = Date.now();
2531
+ return cn().then(function(r) {
2532
+ return ys(r, t, s);
2533
+ });
2534
+ };
2535
+ const dn = /* @__PURE__ */ bn({
2536
+ __name: "CreditCardStripeForm",
2537
+ props: {
2538
+ amount: { type: Number, required: !0 },
2539
+ currency: { type: String, required: !0 },
2540
+ disabled: { type: Boolean, required: !1 },
2541
+ loading: { type: Boolean, required: !1 },
2542
+ stripeToken: { type: String, required: !0 },
2543
+ withAction: { type: Boolean, required: !1 },
2544
+ withTerms: { type: Boolean, required: !1 }
2545
+ },
2546
+ emits: ["change", "error", "payment:success"],
2547
+ setup(n, { expose: e, emit: t }) {
2548
+ const o = n, s = vt({
2549
+ prop: me(() => o.loading)
2550
+ }), r = vt({
2551
+ prop: me(() => o.disabled)
2552
+ }), { locale: i, t: c } = _n(), l = H(null), f = H(!1), S = H(!1), v = H(null), h = H(null), y = t, { config: R } = Sn(), { eventBus: j } = wn();
2553
+ function V(N) {
2554
+ switch (N) {
2555
+ case X.Production:
2556
+ return "pk_live_x99EPirYIsCyUsRvPAfyhnRp";
2557
+ case X.Sandbox:
2558
+ case X.Staging:
2559
+ case X.CiCd:
2560
+ case X.Local:
2561
+ default:
2562
+ return "pk_test_wXnn2RrefTiOHB0zzxqJr0s8";
2563
+ }
2564
+ }
2565
+ const Z = me(
2566
+ () => V(R.value.apiEnvironment)
2567
+ );
2568
+ function Ee(N) {
2569
+ l.value = "", y("change", !!N.detail.complete);
2570
+ }
2571
+ function W(N) {
2572
+ l.value = `${N?.error?.message} - ${c("CreditCardStripeForm.error")}`, y("error", l.value);
2573
+ }
2574
+ async function xe(N) {
2575
+ try {
2576
+ if (!window.Stripe || r.value)
2577
+ return;
2578
+ const Te = window.Stripe(Z.value, {
2579
+ locale: Cn(i.value)
2580
+ });
2581
+ f.value = !0;
2582
+ const ut = await Te.confirmCardPayment(o.stripeToken, {
2583
+ // eslint-disable-next-line camelcase
2584
+ payment_method: N.detail.id
2585
+ });
2586
+ ut.error ? W(ut.error) : o.withAction ? j.$emit(mt.PaymentSuccess) : y(mt.PaymentSuccess);
2587
+ } catch (Te) {
2588
+ W(Te);
2589
+ }
2590
+ }
2591
+ function ct() {
2592
+ try {
2593
+ return !h.value || o.withTerms && !S.value ? null : h.value.submit();
2594
+ } catch (N) {
2595
+ return W(N), null;
2596
+ }
2597
+ }
2598
+ Pn(async () => {
2599
+ v.value = await gs(Z.value);
2600
+ }), e({
2601
+ pay: ct
2602
+ });
2603
+ const dt = { props: o, loading: s, disabled: r, locale: i, t: c, error: l, isPaying: f, isTermsAccepted: S, stripe: v, payment: h, emit: y, config: R, eventBus: j, getStripePublishableKey: V, stripePublishableKey: Z, onCreditCardFormChange: Ee, onPaymentError: W, onStripePaymentMethodCreated: xe, pay: ct, BFormattedAmount: An };
2604
+ return Object.defineProperty(dt, "__isScriptSetup", { enumerable: !1, value: !0 }), dt;
2605
+ }
2606
+ });
2607
+ function Lt(n) {
2608
+ const e = n;
2609
+ e.__i18n = e.__i18n || [], e.__i18n.push({
2610
+ locale: "",
2611
+ resource: {
2612
+ "en-US": {
2613
+ CreditCardStripeForm: {
2614
+ acceptedPaymentMethods: { type: 0, start: 0, end: 25, loc: { start: { line: 1, column: 1, offset: 0 }, end: { line: 1, column: 26, offset: 25 }, source: "Payment Methods Accepted:" }, body: { type: 2, start: 0, end: 25, loc: { start: { line: 1, column: 1, offset: 0 }, end: { line: 1, column: 26, offset: 25 } }, items: [{ type: 3, start: 0, end: 25, loc: { start: { line: 1, column: 1, offset: 0 }, end: { line: 1, column: 26, offset: 25 } } }], static: "Payment Methods Accepted:" } },
2615
+ cardNumber: { type: 0, start: 0, end: 11, loc: { start: { line: 1, column: 1, offset: 0 }, end: { line: 1, column: 12, offset: 11 }, source: "Card number" }, body: { type: 2, start: 0, end: 11, loc: { start: { line: 1, column: 1, offset: 0 }, end: { line: 1, column: 12, offset: 11 } }, items: [{ type: 3, start: 0, end: 11, loc: { start: { line: 1, column: 1, offset: 0 }, end: { line: 1, column: 12, offset: 11 } } }], static: "Card number" } },
2616
+ error: { type: 0, start: 0, end: 34, loc: { start: { line: 1, column: 1, offset: 0 }, end: { line: 1, column: 35, offset: 34 }, source: "Please, use another payment method" }, body: { type: 2, start: 0, end: 34, loc: { start: { line: 1, column: 1, offset: 0 }, end: { line: 1, column: 35, offset: 34 } }, items: [{ type: 3, start: 0, end: 34, loc: { start: { line: 1, column: 1, offset: 0 }, end: { line: 1, column: 35, offset: 34 } } }], static: "Please, use another payment method" } },
2617
+ or: { type: 0, start: 0, end: 2, loc: { start: { line: 1, column: 1, offset: 0 }, end: { line: 1, column: 3, offset: 2 }, source: "or" }, body: { type: 2, start: 0, end: 2, loc: { start: { line: 1, column: 1, offset: 0 }, end: { line: 1, column: 3, offset: 2 } }, items: [{ type: 3, start: 0, end: 2, loc: { start: { line: 1, column: 1, offset: 0 }, end: { line: 1, column: 3, offset: 2 } } }], static: "or" } },
2618
+ cvc: { type: 0, start: 0, end: 3, loc: { start: { line: 1, column: 1, offset: 0 }, end: { line: 1, column: 4, offset: 3 }, source: "CVC" }, body: { type: 2, start: 0, end: 3, loc: { start: { line: 1, column: 1, offset: 0 }, end: { line: 1, column: 4, offset: 3 } }, items: [{ type: 3, start: 0, end: 3, loc: { start: { line: 1, column: 1, offset: 0 }, end: { line: 1, column: 4, offset: 3 } } }], static: "CVC" } },
2619
+ expDate: { type: 0, start: 0, end: 9, loc: { start: { line: 1, column: 1, offset: 0 }, end: { line: 1, column: 10, offset: 9 }, source: "Exp. Date" }, body: { type: 2, start: 0, end: 9, loc: { start: { line: 1, column: 1, offset: 0 }, end: { line: 1, column: 10, offset: 9 } }, items: [{ type: 3, start: 0, end: 9, loc: { start: { line: 1, column: 1, offset: 0 }, end: { line: 1, column: 10, offset: 9 } } }], static: "Exp. Date" } },
2620
+ pay: { type: 0, start: 0, end: 18, loc: { start: { line: 1, column: 1, offset: 0 }, end: { line: 1, column: 19, offset: 18 }, source: "Total price to pay" }, body: { type: 2, start: 0, end: 18, loc: { start: { line: 1, column: 1, offset: 0 }, end: { line: 1, column: 19, offset: 18 } }, items: [{ type: 3, start: 0, end: 18, loc: { start: { line: 1, column: 1, offset: 0 }, end: { line: 1, column: 19, offset: 18 } } }], static: "Total price to pay" } },
2621
+ payByCard: { type: 0, start: 0, end: 21, loc: { start: { line: 1, column: 1, offset: 0 }, end: { line: 1, column: 22, offset: 21 }, source: "Amount to pay by card" }, body: { type: 2, start: 0, end: 21, loc: { start: { line: 1, column: 1, offset: 0 }, end: { line: 1, column: 22, offset: 21 } }, items: [{ type: 3, start: 0, end: 21, loc: { start: { line: 1, column: 1, offset: 0 }, end: { line: 1, column: 22, offset: 21 } } }], static: "Amount to pay by card" } },
2622
+ paymentDeclined: { type: 0, start: 0, end: 16, loc: { start: { line: 1, column: 1, offset: 0 }, end: { line: 1, column: 17, offset: 16 }, source: "Payment declined" }, body: { type: 2, start: 0, end: 16, loc: { start: { line: 1, column: 1, offset: 0 }, end: { line: 1, column: 17, offset: 16 } }, items: [{ type: 3, start: 0, end: 16, loc: { start: { line: 1, column: 1, offset: 0 }, end: { line: 1, column: 17, offset: 16 } } }], static: "Payment declined" } },
2623
+ title: { type: 0, start: 0, end: 34, loc: { start: { line: 1, column: 1, offset: 0 }, end: { line: 1, column: 35, offset: 34 }, source: "Total to pay with your credit card" }, body: { type: 2, start: 0, end: 34, loc: { start: { line: 1, column: 1, offset: 0 }, end: { line: 1, column: 35, offset: 34 } }, items: [{ type: 3, start: 0, end: 34, loc: { start: { line: 1, column: 1, offset: 0 }, end: { line: 1, column: 35, offset: 34 } } }], static: "Total to pay with your credit card" } },
2624
+ payNow: { type: 0, start: 0, end: 7, loc: { start: { line: 1, column: 1, offset: 0 }, end: { line: 1, column: 8, offset: 7 }, source: "Pay now" }, body: { type: 2, start: 0, end: 7, loc: { start: { line: 1, column: 1, offset: 0 }, end: { line: 1, column: 8, offset: 7 } }, items: [{ type: 3, start: 0, end: 7, loc: { start: { line: 1, column: 1, offset: 0 }, end: { line: 1, column: 8, offset: 7 } } }], static: "Pay now" } },
2625
+ termsURL: { type: 0, start: 0, end: 56, loc: { start: { line: 1, column: 1, offset: 0 }, end: { line: 1, column: 57, offset: 56 }, source: "https://revolugo.s3.amazonaws.com/legal/cgv_revolugo.pdf" }, body: { type: 2, start: 0, end: 56, loc: { start: { line: 1, column: 1, offset: 0 }, end: { line: 1, column: 57, offset: 56 } }, items: [{ type: 3, start: 0, end: 56, loc: { start: { line: 1, column: 1, offset: 0 }, end: { line: 1, column: 57, offset: 56 } } }], static: "https://revolugo.s3.amazonaws.com/legal/cgv_revolugo.pdf" } },
2626
+ termsAndConditions: { type: 0, start: 0, end: 139, loc: { start: { line: 1, column: 1, offset: 0 }, end: { line: 1, column: 140, offset: 139 }, source: 'By continuing with your reservation you agree to the terms and conditions: <b><a href="{url}" target="_blank">Click here to read it</a></b>' }, body: { type: 2, start: 0, end: 139, loc: { start: { line: 1, column: 1, offset: 0 }, end: { line: 1, column: 140, offset: 139 } }, items: [{ type: 3, start: 0, end: 87, loc: { start: { line: 1, column: 1, offset: 0 }, end: { line: 1, column: 88, offset: 87 } }, value: 'By continuing with your reservation you agree to the terms and conditions: <b><a href="' }, { type: 4, start: 87, end: 92, loc: { start: { line: 1, column: 88, offset: 87 }, end: { line: 1, column: 93, offset: 92 } }, key: "url" }, { type: 3, start: 92, end: 139, loc: { start: { line: 1, column: 93, offset: 92 }, end: { line: 1, column: 140, offset: 139 } }, value: '" target="_blank">Click here to read it</a></b>' }] } }
2627
+ }
2628
+ },
2629
+ "fr-FR": {
2630
+ CreditCardStripeForm: {
2631
+ acceptedPaymentMethods: { type: 0, start: 0, end: 28, loc: { start: { line: 1, column: 1, offset: 0 }, end: { line: 1, column: 29, offset: 28 }, source: "Moyens de Paiement Acceptés:" }, body: { type: 2, start: 0, end: 28, loc: { start: { line: 1, column: 1, offset: 0 }, end: { line: 1, column: 29, offset: 28 } }, items: [{ type: 3, start: 0, end: 28, loc: { start: { line: 1, column: 1, offset: 0 }, end: { line: 1, column: 29, offset: 28 } } }], static: "Moyens de Paiement Acceptés:" } },
2632
+ cardNumber: { type: 0, start: 0, end: 24, loc: { start: { line: 1, column: 1, offset: 0 }, end: { line: 1, column: 25, offset: 24 }, source: "Numéro de carte bancaire" }, body: { type: 2, start: 0, end: 24, loc: { start: { line: 1, column: 1, offset: 0 }, end: { line: 1, column: 25, offset: 24 } }, items: [{ type: 3, start: 0, end: 24, loc: { start: { line: 1, column: 1, offset: 0 }, end: { line: 1, column: 25, offset: 24 } } }], static: "Numéro de carte bancaire" } },
2633
+ error: { type: 0, start: 0, end: 45, loc: { start: { line: 1, column: 1, offset: 0 }, end: { line: 1, column: 46, offset: 45 }, source: "Veuillez utiliser un autre moyen de paiement." }, body: { type: 2, start: 0, end: 45, loc: { start: { line: 1, column: 1, offset: 0 }, end: { line: 1, column: 46, offset: 45 } }, items: [{ type: 3, start: 0, end: 45, loc: { start: { line: 1, column: 1, offset: 0 }, end: { line: 1, column: 46, offset: 45 } } }], static: "Veuillez utiliser un autre moyen de paiement." } },
2634
+ or: { type: 0, start: 0, end: 2, loc: { start: { line: 1, column: 1, offset: 0 }, end: { line: 1, column: 3, offset: 2 }, source: "ou" }, body: { type: 2, start: 0, end: 2, loc: { start: { line: 1, column: 1, offset: 0 }, end: { line: 1, column: 3, offset: 2 } }, items: [{ type: 3, start: 0, end: 2, loc: { start: { line: 1, column: 1, offset: 0 }, end: { line: 1, column: 3, offset: 2 } } }], static: "ou" } },
2635
+ cvc: { type: 0, start: 0, end: 3, loc: { start: { line: 1, column: 1, offset: 0 }, end: { line: 1, column: 4, offset: 3 }, source: "CVC" }, body: { type: 2, start: 0, end: 3, loc: { start: { line: 1, column: 1, offset: 0 }, end: { line: 1, column: 4, offset: 3 } }, items: [{ type: 3, start: 0, end: 3, loc: { start: { line: 1, column: 1, offset: 0 }, end: { line: 1, column: 4, offset: 3 } } }], static: "CVC" } },
2636
+ expDate: { type: 0, start: 0, end: 11, loc: { start: { line: 1, column: 1, offset: 0 }, end: { line: 1, column: 12, offset: 11 }, source: "Date d'exp." }, body: { type: 2, start: 0, end: 11, loc: { start: { line: 1, column: 1, offset: 0 }, end: { line: 1, column: 12, offset: 11 } }, items: [{ type: 3, start: 0, end: 11, loc: { start: { line: 1, column: 1, offset: 0 }, end: { line: 1, column: 12, offset: 11 } } }], static: "Date d'exp." } },
2637
+ pay: { type: 0, start: 0, end: 22, loc: { start: { line: 1, column: 1, offset: 0 }, end: { line: 1, column: 23, offset: 22 }, source: "Montant total à régler" }, body: { type: 2, start: 0, end: 22, loc: { start: { line: 1, column: 1, offset: 0 }, end: { line: 1, column: 23, offset: 22 } }, items: [{ type: 3, start: 0, end: 22, loc: { start: { line: 1, column: 1, offset: 0 }, end: { line: 1, column: 23, offset: 22 } } }], static: "Montant total à régler" } },
2638
+ payByCard: { type: 0, start: 0, end: 35, loc: { start: { line: 1, column: 1, offset: 0 }, end: { line: 1, column: 36, offset: 35 }, source: "Montant à régler par carte bancaire" }, body: { type: 2, start: 0, end: 35, loc: { start: { line: 1, column: 1, offset: 0 }, end: { line: 1, column: 36, offset: 35 } }, items: [{ type: 3, start: 0, end: 35, loc: { start: { line: 1, column: 1, offset: 0 }, end: { line: 1, column: 36, offset: 35 } } }], static: "Montant à régler par carte bancaire" } },
2639
+ paymentDeclined: { type: 0, start: 0, end: 15, loc: { start: { line: 1, column: 1, offset: 0 }, end: { line: 1, column: 16, offset: 15 }, source: "Paiement refusé" }, body: { type: 2, start: 0, end: 15, loc: { start: { line: 1, column: 1, offset: 0 }, end: { line: 1, column: 16, offset: 15 } }, items: [{ type: 3, start: 0, end: 15, loc: { start: { line: 1, column: 1, offset: 0 }, end: { line: 1, column: 16, offset: 15 } } }], static: "Paiement refusé" } },
2640
+ title: { type: 0, start: 0, end: 40, loc: { start: { line: 1, column: 1, offset: 0 }, end: { line: 1, column: 41, offset: 40 }, source: "Montant total à payer par carte bancaire" }, body: { type: 2, start: 0, end: 40, loc: { start: { line: 1, column: 1, offset: 0 }, end: { line: 1, column: 41, offset: 40 } }, items: [{ type: 3, start: 0, end: 40, loc: { start: { line: 1, column: 1, offset: 0 }, end: { line: 1, column: 41, offset: 40 } } }], static: "Montant total à payer par carte bancaire" } },
2641
+ payNow: { type: 0, start: 0, end: 16, loc: { start: { line: 1, column: 1, offset: 0 }, end: { line: 1, column: 17, offset: 16 }, source: "Payer maintenant" }, body: { type: 2, start: 0, end: 16, loc: { start: { line: 1, column: 1, offset: 0 }, end: { line: 1, column: 17, offset: 16 } }, items: [{ type: 3, start: 0, end: 16, loc: { start: { line: 1, column: 1, offset: 0 }, end: { line: 1, column: 17, offset: 16 } } }], static: "Payer maintenant" } },
2642
+ termsURL: { type: 0, start: 0, end: 59, loc: { start: { line: 1, column: 1, offset: 0 }, end: { line: 1, column: 60, offset: 59 }, source: "https://revolugo.s3.amazonaws.com/legal/cgv_revolugo_fr.pdf" }, body: { type: 2, start: 0, end: 59, loc: { start: { line: 1, column: 1, offset: 0 }, end: { line: 1, column: 60, offset: 59 } }, items: [{ type: 3, start: 0, end: 59, loc: { start: { line: 1, column: 1, offset: 0 }, end: { line: 1, column: 60, offset: 59 } } }], static: "https://revolugo.s3.amazonaws.com/legal/cgv_revolugo_fr.pdf" } },
2643
+ termsAndConditions: { type: 0, start: 0, end: 147, loc: { start: { line: 1, column: 1, offset: 0 }, end: { line: 1, column: 148, offset: 147 }, source: 'En poursuivant votre réservation, vous acceptez les conditions générales: <b><a href="{url}" target="_blank">Cliquez ici pour les consulter</a></b>' }, body: { type: 2, start: 0, end: 147, loc: { start: { line: 1, column: 1, offset: 0 }, end: { line: 1, column: 148, offset: 147 } }, items: [{ type: 3, start: 0, end: 86, loc: { start: { line: 1, column: 1, offset: 0 }, end: { line: 1, column: 87, offset: 86 } }, value: 'En poursuivant votre réservation, vous acceptez les conditions générales: <b><a href="' }, { type: 4, start: 86, end: 91, loc: { start: { line: 1, column: 87, offset: 86 }, end: { line: 1, column: 92, offset: 91 } }, key: "url" }, { type: 3, start: 91, end: 147, loc: { start: { line: 1, column: 92, offset: 91 }, end: { line: 1, column: 148, offset: 147 } }, value: '" target="_blank">Cliquez ici pour les consulter</a></b>' }] } }
2644
+ }
2645
+ },
2646
+ "de-DE": {
2647
+ CreditCardStripeForm: {
2648
+ acceptedPaymentMethods: { type: 0, start: 0, end: 17, loc: { start: { line: 1, column: 1, offset: 0 }, end: { line: 1, column: 18, offset: 17 }, source: "Zahlungsmethoden:" }, body: { type: 2, start: 0, end: 17, loc: { start: { line: 1, column: 1, offset: 0 }, end: { line: 1, column: 18, offset: 17 } }, items: [{ type: 3, start: 0, end: 17, loc: { start: { line: 1, column: 1, offset: 0 }, end: { line: 1, column: 18, offset: 17 } } }], static: "Zahlungsmethoden:" } },
2649
+ cardNumber: { type: 0, start: 0, end: 12, loc: { start: { line: 1, column: 1, offset: 0 }, end: { line: 1, column: 13, offset: 12 }, source: "Kartennummer" }, body: { type: 2, start: 0, end: 12, loc: { start: { line: 1, column: 1, offset: 0 }, end: { line: 1, column: 13, offset: 12 } }, items: [{ type: 3, start: 0, end: 12, loc: { start: { line: 1, column: 1, offset: 0 }, end: { line: 1, column: 13, offset: 12 } } }], static: "Kartennummer" } },
2650
+ error: { type: 0, start: 0, end: 47, loc: { start: { line: 1, column: 1, offset: 0 }, end: { line: 1, column: 48, offset: 47 }, source: "Bitte verwenden Sie eine andere Zahlungsmethode" }, body: { type: 2, start: 0, end: 47, loc: { start: { line: 1, column: 1, offset: 0 }, end: { line: 1, column: 48, offset: 47 } }, items: [{ type: 3, start: 0, end: 47, loc: { start: { line: 1, column: 1, offset: 0 }, end: { line: 1, column: 48, offset: 47 } } }], static: "Bitte verwenden Sie eine andere Zahlungsmethode" } },
2651
+ or: { type: 0, start: 0, end: 4, loc: { start: { line: 1, column: 1, offset: 0 }, end: { line: 1, column: 5, offset: 4 }, source: "oder" }, body: { type: 2, start: 0, end: 4, loc: { start: { line: 1, column: 1, offset: 0 }, end: { line: 1, column: 5, offset: 4 } }, items: [{ type: 3, start: 0, end: 4, loc: { start: { line: 1, column: 1, offset: 0 }, end: { line: 1, column: 5, offset: 4 } } }], static: "oder" } },
2652
+ cvc: { type: 0, start: 0, end: 3, loc: { start: { line: 1, column: 1, offset: 0 }, end: { line: 1, column: 4, offset: 3 }, source: "CVC" }, body: { type: 2, start: 0, end: 3, loc: { start: { line: 1, column: 1, offset: 0 }, end: { line: 1, column: 4, offset: 3 } }, items: [{ type: 3, start: 0, end: 3, loc: { start: { line: 1, column: 1, offset: 0 }, end: { line: 1, column: 4, offset: 3 } } }], static: "CVC" } },
2653
+ expDate: { type: 0, start: 0, end: 11, loc: { start: { line: 1, column: 1, offset: 0 }, end: { line: 1, column: 12, offset: 11 }, source: "Ablaufdatum" }, body: { type: 2, start: 0, end: 11, loc: { start: { line: 1, column: 1, offset: 0 }, end: { line: 1, column: 12, offset: 11 } }, items: [{ type: 3, start: 0, end: 11, loc: { start: { line: 1, column: 1, offset: 0 }, end: { line: 1, column: 12, offset: 11 } } }], static: "Ablaufdatum" } },
2654
+ pay: { type: 0, start: 0, end: 24, loc: { start: { line: 1, column: 1, offset: 0 }, end: { line: 1, column: 25, offset: 24 }, source: "Zu zahlender Gesamtpreis" }, body: { type: 2, start: 0, end: 24, loc: { start: { line: 1, column: 1, offset: 0 }, end: { line: 1, column: 25, offset: 24 } }, items: [{ type: 3, start: 0, end: 24, loc: { start: { line: 1, column: 1, offset: 0 }, end: { line: 1, column: 25, offset: 24 } } }], static: "Zu zahlender Gesamtpreis" } },
2655
+ payByCard: { type: 0, start: 0, end: 35, loc: { start: { line: 1, column: 1, offset: 0 }, end: { line: 1, column: 36, offset: 35 }, source: "Betrag, der mit Karte zu zahlen ist" }, body: { type: 2, start: 0, end: 35, loc: { start: { line: 1, column: 1, offset: 0 }, end: { line: 1, column: 36, offset: 35 } }, items: [{ type: 3, start: 0, end: 35, loc: { start: { line: 1, column: 1, offset: 0 }, end: { line: 1, column: 36, offset: 35 } } }], static: "Betrag, der mit Karte zu zahlen ist" } },
2656
+ paymentDeclined: { type: 0, start: 0, end: 17, loc: { start: { line: 1, column: 1, offset: 0 }, end: { line: 1, column: 18, offset: 17 }, source: "Zahlung abgelehnt" }, body: { type: 2, start: 0, end: 17, loc: { start: { line: 1, column: 1, offset: 0 }, end: { line: 1, column: 18, offset: 17 } }, items: [{ type: 3, start: 0, end: 17, loc: { start: { line: 1, column: 1, offset: 0 }, end: { line: 1, column: 18, offset: 17 } } }], static: "Zahlung abgelehnt" } },
2657
+ title: { type: 0, start: 0, end: 46, loc: { start: { line: 1, column: 1, offset: 0 }, end: { line: 1, column: 47, offset: 46 }, source: "Gesamtbetrag zur Zahlung mit Ihrer Kreditkarte" }, body: { type: 2, start: 0, end: 46, loc: { start: { line: 1, column: 1, offset: 0 }, end: { line: 1, column: 47, offset: 46 } }, items: [{ type: 3, start: 0, end: 46, loc: { start: { line: 1, column: 1, offset: 0 }, end: { line: 1, column: 47, offset: 46 } } }], static: "Gesamtbetrag zur Zahlung mit Ihrer Kreditkarte" } },
2658
+ payNow: { type: 0, start: 0, end: 14, loc: { start: { line: 1, column: 1, offset: 0 }, end: { line: 1, column: 15, offset: 14 }, source: "Jetzt bezahlen" }, body: { type: 2, start: 0, end: 14, loc: { start: { line: 1, column: 1, offset: 0 }, end: { line: 1, column: 15, offset: 14 } }, items: [{ type: 3, start: 0, end: 14, loc: { start: { line: 1, column: 1, offset: 0 }, end: { line: 1, column: 15, offset: 14 } } }], static: "Jetzt bezahlen" } },
2659
+ termsURL: { type: 0, start: 0, end: 56, loc: { start: { line: 1, column: 1, offset: 0 }, end: { line: 1, column: 57, offset: 56 }, source: "https://revolugo.s3.amazonaws.com/legal/cgv_revolugo.pdf" }, body: { type: 2, start: 0, end: 56, loc: { start: { line: 1, column: 1, offset: 0 }, end: { line: 1, column: 57, offset: 56 } }, items: [{ type: 3, start: 0, end: 56, loc: { start: { line: 1, column: 1, offset: 0 }, end: { line: 1, column: 57, offset: 56 } } }], static: "https://revolugo.s3.amazonaws.com/legal/cgv_revolugo.pdf" } },
2660
+ termsAndConditions: { type: 0, start: 0, end: 174, loc: { start: { line: 1, column: 1, offset: 0 }, end: { line: 1, column: 175, offset: 174 }, source: 'Indem Sie mit Ihrer Reservierung fortfahren, stimmen Sie den Allgemeinen Geschäftsbedingungen zu: <b><a href="{url}" target="_blank">Klicken Sie hier, um sie zu lesen</a></b>' }, body: { type: 2, start: 0, end: 174, loc: { start: { line: 1, column: 1, offset: 0 }, end: { line: 1, column: 175, offset: 174 } }, items: [{ type: 3, start: 0, end: 110, loc: { start: { line: 1, column: 1, offset: 0 }, end: { line: 1, column: 111, offset: 110 } }, value: 'Indem Sie mit Ihrer Reservierung fortfahren, stimmen Sie den Allgemeinen Geschäftsbedingungen zu: <b><a href="' }, { type: 4, start: 110, end: 115, loc: { start: { line: 1, column: 111, offset: 110 }, end: { line: 1, column: 116, offset: 115 } }, key: "url" }, { type: 3, start: 115, end: 174, loc: { start: { line: 1, column: 116, offset: 115 }, end: { line: 1, column: 175, offset: 174 } }, value: '" target="_blank">Klicken Sie hier, um sie zu lesen</a></b>' }] } }
2661
+ }
2662
+ },
2663
+ "es-ES": {
2664
+ CreditCardStripeForm: {
2665
+ acceptedPaymentMethods: { type: 0, start: 0, end: 16, loc: { start: { line: 1, column: 1, offset: 0 }, end: { line: 1, column: 17, offset: 16 }, source: "Métodos de Pago:" }, body: { type: 2, start: 0, end: 16, loc: { start: { line: 1, column: 1, offset: 0 }, end: { line: 1, column: 17, offset: 16 } }, items: [{ type: 3, start: 0, end: 16, loc: { start: { line: 1, column: 1, offset: 0 }, end: { line: 1, column: 17, offset: 16 } } }], static: "Métodos de Pago:" } },
2666
+ cardNumber: { type: 0, start: 0, end: 17, loc: { start: { line: 1, column: 1, offset: 0 }, end: { line: 1, column: 18, offset: 17 }, source: "Número de tarjeta" }, body: { type: 2, start: 0, end: 17, loc: { start: { line: 1, column: 1, offset: 0 }, end: { line: 1, column: 18, offset: 17 } }, items: [{ type: 3, start: 0, end: 17, loc: { start: { line: 1, column: 1, offset: 0 }, end: { line: 1, column: 18, offset: 17 } } }], static: "Número de tarjeta" } },
2667
+ error: { type: 0, start: 0, end: 38, loc: { start: { line: 1, column: 1, offset: 0 }, end: { line: 1, column: 39, offset: 38 }, source: "Por favor, utilice otro método de pago" }, body: { type: 2, start: 0, end: 38, loc: { start: { line: 1, column: 1, offset: 0 }, end: { line: 1, column: 39, offset: 38 } }, items: [{ type: 3, start: 0, end: 38, loc: { start: { line: 1, column: 1, offset: 0 }, end: { line: 1, column: 39, offset: 38 } } }], static: "Por favor, utilice otro método de pago" } },
2668
+ or: { type: 0, start: 0, end: 1, loc: { start: { line: 1, column: 1, offset: 0 }, end: { line: 1, column: 2, offset: 1 }, source: "o" }, body: { type: 2, start: 0, end: 1, loc: { start: { line: 1, column: 1, offset: 0 }, end: { line: 1, column: 2, offset: 1 } }, items: [{ type: 3, start: 0, end: 1, loc: { start: { line: 1, column: 1, offset: 0 }, end: { line: 1, column: 2, offset: 1 } } }], static: "o" } },
2669
+ cvc: { type: 0, start: 0, end: 3, loc: { start: { line: 1, column: 1, offset: 0 }, end: { line: 1, column: 4, offset: 3 }, source: "CVC" }, body: { type: 2, start: 0, end: 3, loc: { start: { line: 1, column: 1, offset: 0 }, end: { line: 1, column: 4, offset: 3 } }, items: [{ type: 3, start: 0, end: 3, loc: { start: { line: 1, column: 1, offset: 0 }, end: { line: 1, column: 4, offset: 3 } } }], static: "CVC" } },
2670
+ expDate: { type: 0, start: 0, end: 20, loc: { start: { line: 1, column: 1, offset: 0 }, end: { line: 1, column: 21, offset: 20 }, source: "Fecha de vencimiento" }, body: { type: 2, start: 0, end: 20, loc: { start: { line: 1, column: 1, offset: 0 }, end: { line: 1, column: 21, offset: 20 } }, items: [{ type: 3, start: 0, end: 20, loc: { start: { line: 1, column: 1, offset: 0 }, end: { line: 1, column: 21, offset: 20 } } }], static: "Fecha de vencimiento" } },
2671
+ pay: { type: 0, start: 0, end: 20, loc: { start: { line: 1, column: 1, offset: 0 }, end: { line: 1, column: 21, offset: 20 }, source: "Precio total a pagar" }, body: { type: 2, start: 0, end: 20, loc: { start: { line: 1, column: 1, offset: 0 }, end: { line: 1, column: 21, offset: 20 } }, items: [{ type: 3, start: 0, end: 20, loc: { start: { line: 1, column: 1, offset: 0 }, end: { line: 1, column: 21, offset: 20 } } }], static: "Precio total a pagar" } },
2672
+ payByCard: { type: 0, start: 0, end: 27, loc: { start: { line: 1, column: 1, offset: 0 }, end: { line: 1, column: 28, offset: 27 }, source: "Importe a pagar con tarjeta" }, body: { type: 2, start: 0, end: 27, loc: { start: { line: 1, column: 1, offset: 0 }, end: { line: 1, column: 28, offset: 27 } }, items: [{ type: 3, start: 0, end: 27, loc: { start: { line: 1, column: 1, offset: 0 }, end: { line: 1, column: 28, offset: 27 } } }], static: "Importe a pagar con tarjeta" } },
2673
+ paymentDeclined: { type: 0, start: 0, end: 14, loc: { start: { line: 1, column: 1, offset: 0 }, end: { line: 1, column: 15, offset: 14 }, source: "Pago rechazado" }, body: { type: 2, start: 0, end: 14, loc: { start: { line: 1, column: 1, offset: 0 }, end: { line: 1, column: 15, offset: 14 } }, items: [{ type: 3, start: 0, end: 14, loc: { start: { line: 1, column: 1, offset: 0 }, end: { line: 1, column: 15, offset: 14 } } }], static: "Pago rechazado" } },
2674
+ title: { type: 0, start: 0, end: 39, loc: { start: { line: 1, column: 1, offset: 0 }, end: { line: 1, column: 40, offset: 39 }, source: "Total a pagar con su tarjeta de crédito" }, body: { type: 2, start: 0, end: 39, loc: { start: { line: 1, column: 1, offset: 0 }, end: { line: 1, column: 40, offset: 39 } }, items: [{ type: 3, start: 0, end: 39, loc: { start: { line: 1, column: 1, offset: 0 }, end: { line: 1, column: 40, offset: 39 } } }], static: "Total a pagar con su tarjeta de crédito" } },
2675
+ payNow: { type: 0, start: 0, end: 11, loc: { start: { line: 1, column: 1, offset: 0 }, end: { line: 1, column: 12, offset: 11 }, source: "Pagar ahora" }, body: { type: 2, start: 0, end: 11, loc: { start: { line: 1, column: 1, offset: 0 }, end: { line: 1, column: 12, offset: 11 } }, items: [{ type: 3, start: 0, end: 11, loc: { start: { line: 1, column: 1, offset: 0 }, end: { line: 1, column: 12, offset: 11 } } }], static: "Pagar ahora" } },
2676
+ termsURL: { type: 0, start: 0, end: 56, loc: { start: { line: 1, column: 1, offset: 0 }, end: { line: 1, column: 57, offset: 56 }, source: "https://revolugo.s3.amazonaws.com/legal/cgv_revolugo.pdf" }, body: { type: 2, start: 0, end: 56, loc: { start: { line: 1, column: 1, offset: 0 }, end: { line: 1, column: 57, offset: 56 } }, items: [{ type: 3, start: 0, end: 56, loc: { start: { line: 1, column: 1, offset: 0 }, end: { line: 1, column: 57, offset: 56 } } }], static: "https://revolugo.s3.amazonaws.com/legal/cgv_revolugo.pdf" } },
2677
+ termsAndConditions: { type: 0, start: 0, end: 134, loc: { start: { line: 1, column: 1, offset: 0 }, end: { line: 1, column: 135, offset: 134 }, source: 'Al continuar con su reserva, acepta los términos y condiciones: <b><a href="{url}" target="_blank">Haga clic aquí para leerlos</a></b>' }, body: { type: 2, start: 0, end: 134, loc: { start: { line: 1, column: 1, offset: 0 }, end: { line: 1, column: 135, offset: 134 } }, items: [{ type: 3, start: 0, end: 76, loc: { start: { line: 1, column: 1, offset: 0 }, end: { line: 1, column: 77, offset: 76 } }, value: 'Al continuar con su reserva, acepta los términos y condiciones: <b><a href="' }, { type: 4, start: 76, end: 81, loc: { start: { line: 1, column: 77, offset: 76 }, end: { line: 1, column: 82, offset: 81 } }, key: "url" }, { type: 3, start: 81, end: 134, loc: { start: { line: 1, column: 82, offset: 81 }, end: { line: 1, column: 135, offset: 134 } }, value: '" target="_blank">Haga clic aquí para leerlos</a></b>' }] } }
2678
+ }
2679
+ },
2680
+ "it-IT": {
2681
+ CreditCardStripeForm: {
2682
+ acceptedPaymentMethods: { type: 0, start: 0, end: 20, loc: { start: { line: 1, column: 1, offset: 0 }, end: { line: 1, column: 21, offset: 20 }, source: "Metodi di Pagamento:" }, body: { type: 2, start: 0, end: 20, loc: { start: { line: 1, column: 1, offset: 0 }, end: { line: 1, column: 21, offset: 20 } }, items: [{ type: 3, start: 0, end: 20, loc: { start: { line: 1, column: 1, offset: 0 }, end: { line: 1, column: 21, offset: 20 } } }], static: "Metodi di Pagamento:" } },
2683
+ cardNumber: { type: 0, start: 0, end: 15, loc: { start: { line: 1, column: 1, offset: 0 }, end: { line: 1, column: 16, offset: 15 }, source: "Numero di carta" }, body: { type: 2, start: 0, end: 15, loc: { start: { line: 1, column: 1, offset: 0 }, end: { line: 1, column: 16, offset: 15 } }, items: [{ type: 3, start: 0, end: 15, loc: { start: { line: 1, column: 1, offset: 0 }, end: { line: 1, column: 16, offset: 15 } } }], static: "Numero di carta" } },
2684
+ error: { type: 0, start: 0, end: 51, loc: { start: { line: 1, column: 1, offset: 0 }, end: { line: 1, column: 52, offset: 51 }, source: "Si prega di utilizzare un altro metodo di pagamento" }, body: { type: 2, start: 0, end: 51, loc: { start: { line: 1, column: 1, offset: 0 }, end: { line: 1, column: 52, offset: 51 } }, items: [{ type: 3, start: 0, end: 51, loc: { start: { line: 1, column: 1, offset: 0 }, end: { line: 1, column: 52, offset: 51 } } }], static: "Si prega di utilizzare un altro metodo di pagamento" } },
2685
+ or: { type: 0, start: 0, end: 1, loc: { start: { line: 1, column: 1, offset: 0 }, end: { line: 1, column: 2, offset: 1 }, source: "o" }, body: { type: 2, start: 0, end: 1, loc: { start: { line: 1, column: 1, offset: 0 }, end: { line: 1, column: 2, offset: 1 } }, items: [{ type: 3, start: 0, end: 1, loc: { start: { line: 1, column: 1, offset: 0 }, end: { line: 1, column: 2, offset: 1 } } }], static: "o" } },
2686
+ cvc: { type: 0, start: 0, end: 3, loc: { start: { line: 1, column: 1, offset: 0 }, end: { line: 1, column: 4, offset: 3 }, source: "CVC" }, body: { type: 2, start: 0, end: 3, loc: { start: { line: 1, column: 1, offset: 0 }, end: { line: 1, column: 4, offset: 3 } }, items: [{ type: 3, start: 0, end: 3, loc: { start: { line: 1, column: 1, offset: 0 }, end: { line: 1, column: 4, offset: 3 } } }], static: "CVC" } },
2687
+ expDate: { type: 0, start: 0, end: 16, loc: { start: { line: 1, column: 1, offset: 0 }, end: { line: 1, column: 17, offset: 16 }, source: "Data di scadenza" }, body: { type: 2, start: 0, end: 16, loc: { start: { line: 1, column: 1, offset: 0 }, end: { line: 1, column: 17, offset: 16 } }, items: [{ type: 3, start: 0, end: 16, loc: { start: { line: 1, column: 1, offset: 0 }, end: { line: 1, column: 17, offset: 16 } } }], static: "Data di scadenza" } },
2688
+ pay: { type: 0, start: 0, end: 23, loc: { start: { line: 1, column: 1, offset: 0 }, end: { line: 1, column: 24, offset: 23 }, source: "Prezzo totale da pagare" }, body: { type: 2, start: 0, end: 23, loc: { start: { line: 1, column: 1, offset: 0 }, end: { line: 1, column: 24, offset: 23 } }, items: [{ type: 3, start: 0, end: 23, loc: { start: { line: 1, column: 1, offset: 0 }, end: { line: 1, column: 24, offset: 23 } } }], static: "Prezzo totale da pagare" } },
2689
+ payByCard: { type: 0, start: 0, end: 27, loc: { start: { line: 1, column: 1, offset: 0 }, end: { line: 1, column: 28, offset: 27 }, source: "Importo da pagare con carta" }, body: { type: 2, start: 0, end: 27, loc: { start: { line: 1, column: 1, offset: 0 }, end: { line: 1, column: 28, offset: 27 } }, items: [{ type: 3, start: 0, end: 27, loc: { start: { line: 1, column: 1, offset: 0 }, end: { line: 1, column: 28, offset: 27 } } }], static: "Importo da pagare con carta" } },
2690
+ paymentDeclined: { type: 0, start: 0, end: 19, loc: { start: { line: 1, column: 1, offset: 0 }, end: { line: 1, column: 20, offset: 19 }, source: "Pagamento rifiutato" }, body: { type: 2, start: 0, end: 19, loc: { start: { line: 1, column: 1, offset: 0 }, end: { line: 1, column: 20, offset: 19 } }, items: [{ type: 3, start: 0, end: 19, loc: { start: { line: 1, column: 1, offset: 0 }, end: { line: 1, column: 20, offset: 19 } } }], static: "Pagamento rifiutato" } },
2691
+ title: { type: 0, start: 0, end: 44, loc: { start: { line: 1, column: 1, offset: 0 }, end: { line: 1, column: 45, offset: 44 }, source: "Totale da pagare con la tua carta di credito" }, body: { type: 2, start: 0, end: 44, loc: { start: { line: 1, column: 1, offset: 0 }, end: { line: 1, column: 45, offset: 44 } }, items: [{ type: 3, start: 0, end: 44, loc: { start: { line: 1, column: 1, offset: 0 }, end: { line: 1, column: 45, offset: 44 } } }], static: "Totale da pagare con la tua carta di credito" } },
2692
+ payNow: { type: 0, start: 0, end: 11, loc: { start: { line: 1, column: 1, offset: 0 }, end: { line: 1, column: 12, offset: 11 }, source: "Paga adesso" }, body: { type: 2, start: 0, end: 11, loc: { start: { line: 1, column: 1, offset: 0 }, end: { line: 1, column: 12, offset: 11 } }, items: [{ type: 3, start: 0, end: 11, loc: { start: { line: 1, column: 1, offset: 0 }, end: { line: 1, column: 12, offset: 11 } } }], static: "Paga adesso" } },
2693
+ termsURL: { type: 0, start: 0, end: 56, loc: { start: { line: 1, column: 1, offset: 0 }, end: { line: 1, column: 57, offset: 56 }, source: "https://revolugo.s3.amazonaws.com/legal/cgv_revolugo.pdf" }, body: { type: 2, start: 0, end: 56, loc: { start: { line: 1, column: 1, offset: 0 }, end: { line: 1, column: 57, offset: 56 } }, items: [{ type: 3, start: 0, end: 56, loc: { start: { line: 1, column: 1, offset: 0 }, end: { line: 1, column: 57, offset: 56 } } }], static: "https://revolugo.s3.amazonaws.com/legal/cgv_revolugo.pdf" } },
2694
+ termsAndConditions: { type: 0, start: 0, end: 134, loc: { start: { line: 1, column: 1, offset: 0 }, end: { line: 1, column: 135, offset: 134 }, source: 'Continuando con la prenotazione, accetti i termini e le condizioni: <b><a href="{url}" target="_blank">Clicca qui per leggerli</a></b>' }, body: { type: 2, start: 0, end: 134, loc: { start: { line: 1, column: 1, offset: 0 }, end: { line: 1, column: 135, offset: 134 } }, items: [{ type: 3, start: 0, end: 80, loc: { start: { line: 1, column: 1, offset: 0 }, end: { line: 1, column: 81, offset: 80 } }, value: 'Continuando con la prenotazione, accetti i termini e le condizioni: <b><a href="' }, { type: 4, start: 80, end: 85, loc: { start: { line: 1, column: 81, offset: 80 }, end: { line: 1, column: 86, offset: 85 } }, key: "url" }, { type: 3, start: 85, end: 134, loc: { start: { line: 1, column: 86, offset: 85 }, end: { line: 1, column: 135, offset: 134 } }, value: '" target="_blank">Clicca qui per leggerli</a></b>' }] } }
2695
+ }
2696
+ },
2697
+ "nl-NL": {
2698
+ CreditCardStripeForm: {
2699
+ acceptedPaymentMethods: { type: 0, start: 0, end: 15, loc: { start: { line: 1, column: 1, offset: 0 }, end: { line: 1, column: 16, offset: 15 }, source: "Betaalmethoden:" }, body: { type: 2, start: 0, end: 15, loc: { start: { line: 1, column: 1, offset: 0 }, end: { line: 1, column: 16, offset: 15 } }, items: [{ type: 3, start: 0, end: 15, loc: { start: { line: 1, column: 1, offset: 0 }, end: { line: 1, column: 16, offset: 15 } } }], static: "Betaalmethoden:" } },
2700
+ cardNumber: { type: 0, start: 0, end: 11, loc: { start: { line: 1, column: 1, offset: 0 }, end: { line: 1, column: 12, offset: 11 }, source: "Kaartnummer" }, body: { type: 2, start: 0, end: 11, loc: { start: { line: 1, column: 1, offset: 0 }, end: { line: 1, column: 12, offset: 11 } }, items: [{ type: 3, start: 0, end: 11, loc: { start: { line: 1, column: 1, offset: 0 }, end: { line: 1, column: 12, offset: 11 } } }], static: "Kaartnummer" } },
2701
+ error: { type: 0, start: 0, end: 44, loc: { start: { line: 1, column: 1, offset: 0 }, end: { line: 1, column: 45, offset: 44 }, source: "Gebruik alstublieft een andere betaalmethode" }, body: { type: 2, start: 0, end: 44, loc: { start: { line: 1, column: 1, offset: 0 }, end: { line: 1, column: 45, offset: 44 } }, items: [{ type: 3, start: 0, end: 44, loc: { start: { line: 1, column: 1, offset: 0 }, end: { line: 1, column: 45, offset: 44 } } }], static: "Gebruik alstublieft een andere betaalmethode" } },
2702
+ or: { type: 0, start: 0, end: 2, loc: { start: { line: 1, column: 1, offset: 0 }, end: { line: 1, column: 3, offset: 2 }, source: "of" }, body: { type: 2, start: 0, end: 2, loc: { start: { line: 1, column: 1, offset: 0 }, end: { line: 1, column: 3, offset: 2 } }, items: [{ type: 3, start: 0, end: 2, loc: { start: { line: 1, column: 1, offset: 0 }, end: { line: 1, column: 3, offset: 2 } } }], static: "of" } },
2703
+ cvc: { type: 0, start: 0, end: 3, loc: { start: { line: 1, column: 1, offset: 0 }, end: { line: 1, column: 4, offset: 3 }, source: "CVC" }, body: { type: 2, start: 0, end: 3, loc: { start: { line: 1, column: 1, offset: 0 }, end: { line: 1, column: 4, offset: 3 } }, items: [{ type: 3, start: 0, end: 3, loc: { start: { line: 1, column: 1, offset: 0 }, end: { line: 1, column: 4, offset: 3 } } }], static: "CVC" } },
2704
+ expDate: { type: 0, start: 0, end: 11, loc: { start: { line: 1, column: 1, offset: 0 }, end: { line: 1, column: 12, offset: 11 }, source: "Vervaldatum" }, body: { type: 2, start: 0, end: 11, loc: { start: { line: 1, column: 1, offset: 0 }, end: { line: 1, column: 12, offset: 11 } }, items: [{ type: 3, start: 0, end: 11, loc: { start: { line: 1, column: 1, offset: 0 }, end: { line: 1, column: 12, offset: 11 } } }], static: "Vervaldatum" } },
2705
+ pay: { type: 0, start: 0, end: 23, loc: { start: { line: 1, column: 1, offset: 0 }, end: { line: 1, column: 24, offset: 23 }, source: "Totaal te betalen prijs" }, body: { type: 2, start: 0, end: 23, loc: { start: { line: 1, column: 1, offset: 0 }, end: { line: 1, column: 24, offset: 23 } }, items: [{ type: 3, start: 0, end: 23, loc: { start: { line: 1, column: 1, offset: 0 }, end: { line: 1, column: 24, offset: 23 } } }], static: "Totaal te betalen prijs" } },
2706
+ payByCard: { type: 0, start: 0, end: 27, loc: { start: { line: 1, column: 1, offset: 0 }, end: { line: 1, column: 28, offset: 27 }, source: "Bedrag te betalen met kaart" }, body: { type: 2, start: 0, end: 27, loc: { start: { line: 1, column: 1, offset: 0 }, end: { line: 1, column: 28, offset: 27 } }, items: [{ type: 3, start: 0, end: 27, loc: { start: { line: 1, column: 1, offset: 0 }, end: { line: 1, column: 28, offset: 27 } } }], static: "Bedrag te betalen met kaart" } },
2707
+ paymentDeclined: { type: 0, start: 0, end: 18, loc: { start: { line: 1, column: 1, offset: 0 }, end: { line: 1, column: 19, offset: 18 }, source: "Betaling geweigerd" }, body: { type: 2, start: 0, end: 18, loc: { start: { line: 1, column: 1, offset: 0 }, end: { line: 1, column: 19, offset: 18 } }, items: [{ type: 3, start: 0, end: 18, loc: { start: { line: 1, column: 1, offset: 0 }, end: { line: 1, column: 19, offset: 18 } } }], static: "Betaling geweigerd" } },
2708
+ title: { type: 0, start: 0, end: 35, loc: { start: { line: 1, column: 1, offset: 0 }, end: { line: 1, column: 36, offset: 35 }, source: "Totaal te betalen met uw creditcard" }, body: { type: 2, start: 0, end: 35, loc: { start: { line: 1, column: 1, offset: 0 }, end: { line: 1, column: 36, offset: 35 } }, items: [{ type: 3, start: 0, end: 35, loc: { start: { line: 1, column: 1, offset: 0 }, end: { line: 1, column: 36, offset: 35 } } }], static: "Totaal te betalen met uw creditcard" } },
2709
+ payNow: { type: 0, start: 0, end: 9, loc: { start: { line: 1, column: 1, offset: 0 }, end: { line: 1, column: 10, offset: 9 }, source: "Betaal nu" }, body: { type: 2, start: 0, end: 9, loc: { start: { line: 1, column: 1, offset: 0 }, end: { line: 1, column: 10, offset: 9 } }, items: [{ type: 3, start: 0, end: 9, loc: { start: { line: 1, column: 1, offset: 0 }, end: { line: 1, column: 10, offset: 9 } } }], static: "Betaal nu" } },
2710
+ termsURL: { type: 0, start: 0, end: 56, loc: { start: { line: 1, column: 1, offset: 0 }, end: { line: 1, column: 57, offset: 56 }, source: "https://revolugo.s3.amazonaws.com/legal/cgv_revolugo.pdf" }, body: { type: 2, start: 0, end: 56, loc: { start: { line: 1, column: 1, offset: 0 }, end: { line: 1, column: 57, offset: 56 } }, items: [{ type: 3, start: 0, end: 56, loc: { start: { line: 1, column: 1, offset: 0 }, end: { line: 1, column: 57, offset: 56 } } }], static: "https://revolugo.s3.amazonaws.com/legal/cgv_revolugo.pdf" } },
2711
+ termsAndConditions: { type: 0, start: 0, end: 151, loc: { start: { line: 1, column: 1, offset: 0 }, end: { line: 1, column: 152, offset: 151 }, source: 'Door verder te gaan met uw reservering, gaat u akkoord met de algemene voorwaarden: <b><a href="{url}" target="_blank">Klik hier om ze te lezen</a></b>' }, body: { type: 2, start: 0, end: 151, loc: { start: { line: 1, column: 1, offset: 0 }, end: { line: 1, column: 152, offset: 151 } }, items: [{ type: 3, start: 0, end: 96, loc: { start: { line: 1, column: 1, offset: 0 }, end: { line: 1, column: 97, offset: 96 } }, value: 'Door verder te gaan met uw reservering, gaat u akkoord met de algemene voorwaarden: <b><a href="' }, { type: 4, start: 96, end: 101, loc: { start: { line: 1, column: 97, offset: 96 }, end: { line: 1, column: 102, offset: 101 } }, key: "url" }, { type: 3, start: 101, end: 151, loc: { start: { line: 1, column: 102, offset: 101 }, end: { line: 1, column: 152, offset: 151 } }, value: '" target="_blank">Klik hier om ze te lezen</a></b>' }] } }
2712
+ }
2713
+ },
2714
+ "pt-PT": {
2715
+ CreditCardStripeForm: {
2716
+ acceptedPaymentMethods: { type: 0, start: 0, end: 21, loc: { start: { line: 1, column: 1, offset: 0 }, end: { line: 1, column: 22, offset: 21 }, source: "Métodos de Pagamento:" }, body: { type: 2, start: 0, end: 21, loc: { start: { line: 1, column: 1, offset: 0 }, end: { line: 1, column: 22, offset: 21 } }, items: [{ type: 3, start: 0, end: 21, loc: { start: { line: 1, column: 1, offset: 0 }, end: { line: 1, column: 22, offset: 21 } } }], static: "Métodos de Pagamento:" } },
2717
+ cardNumber: { type: 0, start: 0, end: 16, loc: { start: { line: 1, column: 1, offset: 0 }, end: { line: 1, column: 17, offset: 16 }, source: "Número do cartão" }, body: { type: 2, start: 0, end: 16, loc: { start: { line: 1, column: 1, offset: 0 }, end: { line: 1, column: 17, offset: 16 } }, items: [{ type: 3, start: 0, end: 16, loc: { start: { line: 1, column: 1, offset: 0 }, end: { line: 1, column: 17, offset: 16 } } }], static: "Número do cartão" } },
2718
+ error: { type: 0, start: 0, end: 44, loc: { start: { line: 1, column: 1, offset: 0 }, end: { line: 1, column: 45, offset: 44 }, source: "Por favor, utilize outro método de pagamento" }, body: { type: 2, start: 0, end: 44, loc: { start: { line: 1, column: 1, offset: 0 }, end: { line: 1, column: 45, offset: 44 } }, items: [{ type: 3, start: 0, end: 44, loc: { start: { line: 1, column: 1, offset: 0 }, end: { line: 1, column: 45, offset: 44 } } }], static: "Por favor, utilize outro método de pagamento" } },
2719
+ or: { type: 0, start: 0, end: 2, loc: { start: { line: 1, column: 1, offset: 0 }, end: { line: 1, column: 3, offset: 2 }, source: "ou" }, body: { type: 2, start: 0, end: 2, loc: { start: { line: 1, column: 1, offset: 0 }, end: { line: 1, column: 3, offset: 2 } }, items: [{ type: 3, start: 0, end: 2, loc: { start: { line: 1, column: 1, offset: 0 }, end: { line: 1, column: 3, offset: 2 } } }], static: "ou" } },
2720
+ cvc: { type: 0, start: 0, end: 3, loc: { start: { line: 1, column: 1, offset: 0 }, end: { line: 1, column: 4, offset: 3 }, source: "CVC" }, body: { type: 2, start: 0, end: 3, loc: { start: { line: 1, column: 1, offset: 0 }, end: { line: 1, column: 4, offset: 3 } }, items: [{ type: 3, start: 0, end: 3, loc: { start: { line: 1, column: 1, offset: 0 }, end: { line: 1, column: 4, offset: 3 } } }], static: "CVC" } },
2721
+ expDate: { type: 0, start: 0, end: 16, loc: { start: { line: 1, column: 1, offset: 0 }, end: { line: 1, column: 17, offset: 16 }, source: "Data de validade" }, body: { type: 2, start: 0, end: 16, loc: { start: { line: 1, column: 1, offset: 0 }, end: { line: 1, column: 17, offset: 16 } }, items: [{ type: 3, start: 0, end: 16, loc: { start: { line: 1, column: 1, offset: 0 }, end: { line: 1, column: 17, offset: 16 } } }], static: "Data de validade" } },
2722
+ pay: { type: 0, start: 0, end: 19, loc: { start: { line: 1, column: 1, offset: 0 }, end: { line: 1, column: 20, offset: 19 }, source: "Preço total a pagar" }, body: { type: 2, start: 0, end: 19, loc: { start: { line: 1, column: 1, offset: 0 }, end: { line: 1, column: 20, offset: 19 } }, items: [{ type: 3, start: 0, end: 19, loc: { start: { line: 1, column: 1, offset: 0 }, end: { line: 1, column: 20, offset: 19 } } }], static: "Preço total a pagar" } },
2723
+ payByCard: { type: 0, start: 0, end: 27, loc: { start: { line: 1, column: 1, offset: 0 }, end: { line: 1, column: 28, offset: 27 }, source: "Montante a pagar com cartão" }, body: { type: 2, start: 0, end: 27, loc: { start: { line: 1, column: 1, offset: 0 }, end: { line: 1, column: 28, offset: 27 } }, items: [{ type: 3, start: 0, end: 27, loc: { start: { line: 1, column: 1, offset: 0 }, end: { line: 1, column: 28, offset: 27 } } }], static: "Montante a pagar com cartão" } },
2724
+ paymentDeclined: { type: 0, start: 0, end: 18, loc: { start: { line: 1, column: 1, offset: 0 }, end: { line: 1, column: 19, offset: 18 }, source: "Pagamento recusado" }, body: { type: 2, start: 0, end: 18, loc: { start: { line: 1, column: 1, offset: 0 }, end: { line: 1, column: 19, offset: 18 } }, items: [{ type: 3, start: 0, end: 18, loc: { start: { line: 1, column: 1, offset: 0 }, end: { line: 1, column: 19, offset: 18 } } }], static: "Pagamento recusado" } },
2725
+ title: { type: 0, start: 0, end: 41, loc: { start: { line: 1, column: 1, offset: 0 }, end: { line: 1, column: 42, offset: 41 }, source: "Total a pagar com o seu cartão de crédito" }, body: { type: 2, start: 0, end: 41, loc: { start: { line: 1, column: 1, offset: 0 }, end: { line: 1, column: 42, offset: 41 } }, items: [{ type: 3, start: 0, end: 41, loc: { start: { line: 1, column: 1, offset: 0 }, end: { line: 1, column: 42, offset: 41 } } }], static: "Total a pagar com o seu cartão de crédito" } },
2726
+ payNow: { type: 0, start: 0, end: 11, loc: { start: { line: 1, column: 1, offset: 0 }, end: { line: 1, column: 12, offset: 11 }, source: "Pagar agora" }, body: { type: 2, start: 0, end: 11, loc: { start: { line: 1, column: 1, offset: 0 }, end: { line: 1, column: 12, offset: 11 } }, items: [{ type: 3, start: 0, end: 11, loc: { start: { line: 1, column: 1, offset: 0 }, end: { line: 1, column: 12, offset: 11 } } }], static: "Pagar agora" } },
2727
+ termsURL: { type: 0, start: 0, end: 56, loc: { start: { line: 1, column: 1, offset: 0 }, end: { line: 1, column: 57, offset: 56 }, source: "https://revolugo.s3.amazonaws.com/legal/cgv_revolugo.pdf" }, body: { type: 2, start: 0, end: 56, loc: { start: { line: 1, column: 1, offset: 0 }, end: { line: 1, column: 57, offset: 56 } }, items: [{ type: 3, start: 0, end: 56, loc: { start: { line: 1, column: 1, offset: 0 }, end: { line: 1, column: 57, offset: 56 } } }], static: "https://revolugo.s3.amazonaws.com/legal/cgv_revolugo.pdf" } },
2728
+ termsAndConditions: { type: 0, start: 0, end: 134, loc: { start: { line: 1, column: 1, offset: 0 }, end: { line: 1, column: 135, offset: 134 }, source: 'Ao continuar com a sua reserva, concorda com os termos e condições: <b><a href="{url}" target="_blank">Clique aqui para os ler</a></b>' }, body: { type: 2, start: 0, end: 134, loc: { start: { line: 1, column: 1, offset: 0 }, end: { line: 1, column: 135, offset: 134 } }, items: [{ type: 3, start: 0, end: 80, loc: { start: { line: 1, column: 1, offset: 0 }, end: { line: 1, column: 81, offset: 80 } }, value: 'Ao continuar com a sua reserva, concorda com os termos e condições: <b><a href="' }, { type: 4, start: 80, end: 85, loc: { start: { line: 1, column: 81, offset: 80 }, end: { line: 1, column: 86, offset: 85 } }, key: "url" }, { type: 3, start: 85, end: 134, loc: { start: { line: 1, column: 86, offset: 85 }, end: { line: 1, column: 135, offset: 134 } }, value: '" target="_blank">Clique aqui para os ler</a></b>' }] } }
2729
+ }
2730
+ }
2731
+ }
2732
+ });
2733
+ }
2734
+ const vs = { class: "d-flex justify-space-between w-100 items-center" }, bs = { class: "text-caption font-weight-bold text-red my-0 rounded text-center" }, _s = { class: "pr-3" }, Ss = ["disable", "locale", "publishable-key"], ws = ["innerHTML"], Ps = { class: "text-caption ml-1" }, Cs = { class: "mr-1" };
2735
+ function Es(n, e, t, o, s, r) {
2736
+ return C(), $(gt, {
2737
+ disabled: o.disabled,
2738
+ elevation: "0",
2739
+ border: "",
2740
+ style: En({
2741
+ borderColor: o.disabled ? "" : "rgb(var(--v-theme-primary))"
2742
+ })
2743
+ }, {
2744
+ default: b(() => [
2745
+ _($n, {
2746
+ class: "text-white",
2747
+ color: "primary",
2748
+ density: "compact",
2749
+ elevation: "0"
2750
+ }, {
2751
+ default: b(() => [
2752
+ z("div", vs, [
2753
+ z("h4", null, [
2754
+ _(Re, {
2755
+ color: "white",
2756
+ start: "",
2757
+ size: "small"
2758
+ }, {
2759
+ default: b(() => [...e[2] || (e[2] = [
2760
+ ce(" fas fa-credit-card ", -1)
2761
+ ])]),
2762
+ _: 1
2763
+ }),
2764
+ ce(" " + I(o.t("CreditCardStripeForm.title")) + ": ", 1),
2765
+ o.loading ? (C(), $(zn, {
2766
+ key: 0,
2767
+ class: "ml-2",
2768
+ color: "primary",
2769
+ indeterminate: "",
2770
+ size: "20",
2771
+ width: "1"
2772
+ })) : (C(), $(o.BFormattedAmount, {
2773
+ key: 1,
2774
+ amount: t.amount,
2775
+ class: "font-weight-bold",
2776
+ currency: t.currency
2777
+ }, null, 8, ["amount", "currency"]))
2778
+ ]),
2779
+ _(Re, {
2780
+ color: "white",
2781
+ end: "",
2782
+ size: "small"
2783
+ }, {
2784
+ default: b(() => [...e[3] || (e[3] = [
2785
+ ce(" fas fa-lock ", -1)
2786
+ ])]),
2787
+ _: 1
2788
+ })
2789
+ ])
2790
+ ]),
2791
+ _: 1
2792
+ }),
2793
+ _(On, null, {
2794
+ default: b(() => [
2795
+ _(Q, null, {
2796
+ default: b(() => [
2797
+ _(q, null, {
2798
+ default: b(() => [
2799
+ o.error ? (C(), $(In, {
2800
+ key: 0,
2801
+ color: "red",
2802
+ density: "compact",
2803
+ variant: "outlined"
2804
+ }, {
2805
+ default: b(() => [
2806
+ z("p", bs, I(o.t("CreditCardStripeForm.paymentDeclined")) + ": " + I(o.error), 1)
2807
+ ]),
2808
+ _: 1
2809
+ })) : $e("", !0)
2810
+ ]),
2811
+ _: 1
2812
+ })
2813
+ ]),
2814
+ _: 1
2815
+ }),
2816
+ _(Q, {
2817
+ class: "d-none d-sm-flex",
2818
+ "no-gutters": ""
2819
+ }, {
2820
+ default: b(() => [
2821
+ _(q, { cols: "8" }, {
2822
+ default: b(() => [
2823
+ z("small", null, I(o.t("CreditCardStripeForm.cardNumber")), 1)
2824
+ ]),
2825
+ _: 1
2826
+ }),
2827
+ _(q, {
2828
+ class: "pr-6 text-right",
2829
+ cols: "4"
2830
+ }, {
2831
+ default: b(() => [
2832
+ z("small", _s, I(o.t("CreditCardStripeForm.expDate")), 1),
2833
+ z("small", null, I(o.t("CreditCardStripeForm.cvc")), 1)
2834
+ ]),
2835
+ _: 1
2836
+ })
2837
+ ]),
2838
+ _: 1
2839
+ }),
2840
+ _(Q, { "no-gutters": "" }, {
2841
+ default: b(() => [
2842
+ _(q, null, {
2843
+ default: b(() => [
2844
+ _(gt, {
2845
+ elevation: "0",
2846
+ border: ""
2847
+ }, {
2848
+ default: b(() => [
2849
+ o.stripe ? (C(), ke("stripe-elements", {
2850
+ key: 0,
2851
+ disable: o.loading,
2852
+ ref: "payment",
2853
+ generate: "payment-method",
2854
+ "hide-postal-code": "",
2855
+ locale: o.locale,
2856
+ "publishable-key": o.stripePublishableKey,
2857
+ onChange: o.onCreditCardFormChange,
2858
+ onError: o.onPaymentError,
2859
+ onPaymentMethod: o.onStripePaymentMethodCreated
2860
+ }, null, 40, Ss)) : (C(), $(ee, {
2861
+ key: 1,
2862
+ class: "mx-auto",
2863
+ height: "36.8px",
2864
+ type: "image",
2865
+ width: "100%"
2866
+ }))
2867
+ ]),
2868
+ _: 1
2869
+ })
2870
+ ]),
2871
+ _: 1
2872
+ })
2873
+ ]),
2874
+ _: 1
2875
+ }),
2876
+ t.withTerms ? (C(), $(Q, {
2877
+ key: 0,
2878
+ class: "mt-2"
2879
+ }, {
2880
+ default: b(() => [
2881
+ _(q, null, {
2882
+ default: b(() => [
2883
+ o.loading ? (C(), $(ee, {
2884
+ key: 0,
2885
+ class: "mt-3",
2886
+ height: "25px",
2887
+ type: "image",
2888
+ width: "50%"
2889
+ })) : (C(), $(Dn, {
2890
+ key: 1,
2891
+ ref: "testing",
2892
+ modelValue: o.isTermsAccepted,
2893
+ "onUpdate:modelValue": e[1] || (e[1] = (i) => o.isTermsAccepted = i)
2894
+ }, {
2895
+ label: b(() => [
2896
+ z("span", {
2897
+ onClick: e[0] || (e[0] = xn(() => {
2898
+ }, ["stop"])),
2899
+ innerHTML: o.t("CreditCardStripeForm.termsAndConditions", {
2900
+ url: o.t("CreditCardStripeForm.termsURL")
2901
+ })
2902
+ }, null, 8, ws)
2903
+ ]),
2904
+ _: 1
2905
+ }, 8, ["modelValue"]))
2906
+ ]),
2907
+ _: 1
2908
+ })
2909
+ ]),
2910
+ _: 1
2911
+ })) : $e("", !0),
2912
+ _(Q, null, {
2913
+ default: b(() => [
2914
+ _(q, { class: "v-col-12 v-col-sm-8 v-col-md-9" }, {
2915
+ default: b(() => [
2916
+ o.loading ? (C(), ke(pt, { key: 0 }, [
2917
+ _(ee, {
2918
+ height: "10px",
2919
+ type: "image",
2920
+ width: "160px"
2921
+ }),
2922
+ _(ee, {
2923
+ height: "38px",
2924
+ type: "image",
2925
+ width: "240px"
2926
+ })
2927
+ ], 64)) : (C(), ke(pt, { key: 1 }, [
2928
+ z("small", Ps, I(o.t("CreditCardStripeForm.acceptedPaymentMethods")), 1),
2929
+ _(Ln, {
2930
+ class: "mb-n1",
2931
+ height: "45",
2932
+ src: "https://revolugo.s3.eu-west-3.amazonaws.com/payment-methods.png",
2933
+ width: "240"
2934
+ })
2935
+ ], 64))
2936
+ ]),
2937
+ _: 1
2938
+ }),
2939
+ t.withAction ? (C(), $(q, {
2940
+ key: 0,
2941
+ class: "v-col-12 v-col-sm-4 v-col-md-3 align-self-end text-right"
2942
+ }, {
2943
+ default: b(() => [
2944
+ o.loading ? (C(), $(ee, {
2945
+ key: 0,
2946
+ class: "align-self-end w-100",
2947
+ height: "36px",
2948
+ type: "image",
2949
+ width: "170px"
2950
+ })) : (C(), $(qn, {
2951
+ key: 1,
2952
+ "data-gtm-id": "payment-book",
2953
+ class: "w-sm-auto align-self-end w-100",
2954
+ color: "primary",
2955
+ loading: o.isPaying,
2956
+ variant: "flat",
2957
+ disabled: o.disabled || t.withTerms && !o.isTermsAccepted,
2958
+ onClick: o.pay
2959
+ }, {
2960
+ default: b(() => [
2961
+ _(Re, { start: "" }, {
2962
+ default: b(() => [...e[4] || (e[4] = [
2963
+ ce(" fas fa-lock ", -1)
2964
+ ])]),
2965
+ _: 1
2966
+ }),
2967
+ z("span", Cs, I(o.t("CreditCardStripeForm.payNow")), 1),
2968
+ _(o.BFormattedAmount, {
2969
+ amount: t.amount,
2970
+ class: "font-weight-bold",
2971
+ currency: t.currency
2972
+ }, null, 8, ["amount", "currency"])
2973
+ ]),
2974
+ _: 1
2975
+ }, 8, ["loading", "disabled"]))
2976
+ ]),
2977
+ _: 1
2978
+ })) : $e("", !0)
2979
+ ]),
2980
+ _: 1
2981
+ })
2982
+ ]),
2983
+ _: 1
2984
+ })
2985
+ ]),
2986
+ _: 1
2987
+ }, 8, ["disabled", "style"]);
2988
+ }
2989
+ typeof Lt == "function" && Lt(dn);
2990
+ const ks = /* @__PURE__ */ Vn(dn, [["render", Es], ["__scopeId", "data-v-0626a2c5"], ["__file", "/home/runner/work/revolugo/revolugo/libs/front/elements/core/src/components/RevolugoElements/CreditCardStripeForm/CreditCardStripeForm.vue"]]);
2991
+ un("css/revolugo.creditcardstripeform.CuNCVfSx.css");
2992
+ export {
2993
+ ks as C,
2994
+ Dn as V,
2995
+ Un as p,
2996
+ vt as u
2997
+ };
2998
+ //# sourceMappingURL=revolugo.creditcardstripeform.BewtHtxp.min.js.map