@revolugo/elements 7.11.1-alpha.6 → 7.11.1-alpha.61

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (58) hide show
  1. package/dist/index.es.min.js +1 -1
  2. package/dist/index.es.min.js.map +1 -1
  3. package/dist/index.min.js +1 -1
  4. package/dist/index.min.js.map +1 -1
  5. package/dist/revolugo.min.js +58 -58
  6. package/package.json +1 -1
  7. package/dist/css/fonts.css +0 -1
  8. package/dist/css/revolugo.bookingpaymentform.CekI3oIR.css +0 -1
  9. package/dist/css/revolugo.creditcardstripeform.CmxpInfL.css +0 -1
  10. package/dist/css/revolugo.index.5WWmkTtd.css +0 -1
  11. package/dist/css/revolugo.preferencesmenu.DwotHb97.css +0 -1
  12. package/dist/css/revolugo.revolugoelements.D3jgSljg.css +0 -1
  13. package/dist/css/revolugo.storybooktoolbar.d_cxquq9.css +0 -1
  14. package/dist/css/revolugo.ui.sAxjrsi6.css +0 -1
  15. package/dist/css/revolugo.vtoolbar.BS4p23lZ.css +0 -1
  16. package/dist/css/revolugo.webcomponentwrapper.LxbCIx-k.css +0 -1
  17. package/dist/revolugo.banktransferdetails.Dho2drVL.min.js +0 -24
  18. package/dist/revolugo.bookingdetailssidebar.DkTWZjX7.min.js +0 -25
  19. package/dist/revolugo.bookingmanager.Bzbjnslf.min.js +0 -24
  20. package/dist/revolugo.bookingpaymentform.VR58JvM2.min.js +0 -5129
  21. package/dist/revolugo.cancellationpoliciesbadge.Dlx5kWS1.min.js +0 -24
  22. package/dist/revolugo.cancellationpolicieslist.B81Bpnoa.min.js +0 -24
  23. package/dist/revolugo.creditcardstripeform.C5A7gsnz.min.js +0 -25
  24. package/dist/revolugo.creditcardstripeform.Cu9V54NV.min.js +0 -2780
  25. package/dist/revolugo.creditcardstripeform.props.C4lAZ1a1.min.js +0 -35
  26. package/dist/revolugo.currencypickerbtn.DFUb5leR.min.js +0 -25
  27. package/dist/revolugo.dist.DAUsz4Fo.min.js +0 -58
  28. package/dist/revolugo.fastbookingflow.Whd7ZheR.min.js +0 -34
  29. package/dist/revolugo.framework.D3S4rpHX.min.js +0 -775
  30. package/dist/revolugo.fullbookingflow.DbipxNmM.min.js +0 -24
  31. package/dist/revolugo.hoteldescriptionview.7iaAYNCh.min.js +0 -24
  32. package/dist/revolugo.hotelofferlist.B6BdnW_N.min.js +0 -24
  33. package/dist/revolugo.hoteloffersearchmenu.DlvSAGPf.min.js +0 -24
  34. package/dist/revolugo.hoteloffersmap.BuI5VPmL.min.js +0 -24
  35. package/dist/revolugo.hoteloffersview.KkIsovGv.min.js +0 -18
  36. package/dist/revolugo.hotelroomofferlist.Bg48oD6J.min.js +0 -24
  37. package/dist/revolugo.hotelroomoffersbookingflow.DTDpyGPk.min.js +0 -24
  38. package/dist/revolugo.hotelroomoffersearchmenu.Dmb3lxBc.min.js +0 -24
  39. package/dist/revolugo.hotelroomoffersview.C2QTAbEy.min.js +0 -24
  40. package/dist/revolugo.langpickerbtn.D1sIaiCT.min.js +0 -25
  41. package/dist/revolugo.leaflet-src.5-yo9CNW.min.js +0 -4665
  42. package/dist/revolugo.leaflet-src.esm.PiBUHl3B.min.js +0 -4782
  43. package/dist/revolugo.marker-icon-2x.BBE8dvJp.min.js +0 -8
  44. package/dist/revolugo.marker-icon.VORuIHX9.min.js +0 -8
  45. package/dist/revolugo.marker-shadow.BcaYGGj2.min.js +0 -8
  46. package/dist/revolugo.prebookform.BhlycJvd.min.js +0 -24
  47. package/dist/revolugo.preferencesmenu.DsaLyuA5.min.js +0 -935
  48. package/dist/revolugo.revolugo-config.0Ycse9HK.min.js +0 -6582
  49. package/dist/revolugo.revolugoelements.Dct825hJ.min.js +0 -34250
  50. package/dist/revolugo.rolldown-runtime.C2H8viMH.min.js +0 -25
  51. package/dist/revolugo.roominglisteditor.BtQ-Srj2.min.js +0 -24
  52. package/dist/revolugo.storybooktoolbar.0hrH-CNv.min.js +0 -982
  53. package/dist/revolugo.termsandconditions.CLs7FPkK.min.js +0 -24
  54. package/dist/revolugo.theme.D5jNLMuT.min.js +0 -17278
  55. package/dist/revolugo.ui.CqL0gFVI.min.js +0 -57477
  56. package/dist/revolugo.vtoolbar.cuX7Oizy.min.js +0 -145
  57. package/dist/revolugo.webcomponentwrapper.CjSo5sU2.min.js +0 -248
  58. package/dist/revolugo2.preferencesmenu.B2b6yEt5.min.js +0 -24
@@ -1,935 +0,0 @@
1
- import { Dr as _, Gr as B, Kr as j, Lt as te, Mn as $, Mr as W, Mt as re, Nr as x, Oi as D, Sr as y, Tr as r, Ur as s, Vn as C, Vt as ae, Zr as G, br as m, fi as N, ji as h, mr as L, qr as V, ri as t, ti as le, vi as P, vr as oe, wi as c, wr as k, xi as S, xr as T, yr as p, zt as R } from "./revolugo.theme.D5jNLMuT.min.js";
2
- import { n as ne, r as se } from "./revolugo.revolugo-config.0Ycse9HK.min.js";
3
- import { $ as ie, $t as ue, C as Y, D as ce, Et as I, F as K, M as de, Pt as q, Rt as O, Wt as E, c as fe, en as g, et as H, q as w, rt as pe, tn as u, w as U } from "./revolugo.ui.CqL0gFVI.min.js";
4
- import { t as me } from "./revolugo.vtoolbar.cuX7Oizy.min.js";
5
- function ee(e) {
6
- try {
7
- if (typeof document < "u") {
8
- window.REVOLUGO_ELEMENTS_STYLES = window.REVOLUGO_ELEMENTS_STYLES || {
9
- sheets: [],
10
- components: []
11
- };
12
- const a = import.meta.url, n = a.slice(0, a.lastIndexOf("/") + 1) + e;
13
- window.REVOLUGO_ELEMENTS_STYLES.sheets.push(n);
14
- for (const d of REVOLUGO_ELEMENTS_STYLES.components)
15
- d(n);
16
- if (e.indexOf("fonts") >= 0) {
17
- const d = document.createElement("link");
18
- d.rel = "stylesheet", linK.href = n, document.head.appendChild(d);
19
- }
20
- }
21
- } catch (a) {
22
- console.error("[revolugo-elements] ", a);
23
- }
24
- }
25
- var ge = [
26
- h.EUR,
27
- h.USD,
28
- h.GBP,
29
- h.CAD,
30
- h.AED,
31
- h.INR,
32
- h.AUD,
33
- h.JPY
34
- ], J = _({
35
- computed: {
36
- commonCurrencies() {
37
- const e = new Set(ge);
38
- return Object.values(this.currencies).filter((a) => e.has(a.code));
39
- },
40
- countries() {
41
- return Object.values(fe);
42
- },
43
- currencies() {
44
- return D;
45
- },
46
- filteredList() {
47
- if (!this.searchInput) return Object.values(this.currencies);
48
- const e = this.countries.filter((n) => n.name.toLowerCase().includes(this.searchInput.toLowerCase()) || n.iso2.toLowerCase().includes(this.searchInput.toLowerCase())), a = new Set(e.map((n) => n.currency));
49
- return Object.values(this.currencies).filter((n) => n.code.toLowerCase().includes(this.searchInput.toLowerCase()) || n.name.toLowerCase().includes(this.searchInput.toLowerCase()) || n.symbol.toLowerCase().includes(this.searchInput.toLowerCase()) || a.has(n.code));
50
- },
51
- selectedCurrency() {
52
- return this.config.currency ?? D.EUR.code;
53
- }
54
- },
55
- data() {
56
- return {
57
- dialog: !1,
58
- searchInput: ""
59
- };
60
- },
61
- methods: { onItemClick(e) {
62
- this.dialog = !1, this.updateCurrency(e.code), this.searchInput = "";
63
- } },
64
- mixins: [ae, R],
65
- name: "CurrencyPicker",
66
- setup() {
67
- const { t: e } = $();
68
- return { t: e };
69
- },
70
- watch: { dialog(e) {
71
- e || (this.searchInput = "");
72
- } }
73
- }), z = {
74
- "en-US": { CurrencyPicker: {
75
- all: {
76
- t: 0,
77
- b: {
78
- t: 2,
79
- i: [{ t: 3 }],
80
- s: "All currencies"
81
- }
82
- },
83
- notFound: {
84
- t: 0,
85
- b: {
86
- t: 2,
87
- i: [{ t: 3 }],
88
- s: "Currency not found"
89
- }
90
- },
91
- preferred: {
92
- t: 0,
93
- b: {
94
- t: 2,
95
- i: [{ t: 3 }],
96
- s: "Preferred currencies"
97
- }
98
- },
99
- title: {
100
- t: 0,
101
- b: {
102
- t: 2,
103
- i: [{ t: 3 }],
104
- s: "Select your currency"
105
- }
106
- }
107
- } },
108
- "fr-FR": { CurrencyPicker: {
109
- all: {
110
- t: 0,
111
- b: {
112
- t: 2,
113
- i: [{ t: 3 }],
114
- s: "Toutes les devises"
115
- }
116
- },
117
- notFound: {
118
- t: 0,
119
- b: {
120
- t: 2,
121
- i: [{ t: 3 }],
122
- s: "Devise non trouvée"
123
- }
124
- },
125
- preferred: {
126
- t: 0,
127
- b: {
128
- t: 2,
129
- i: [{ t: 3 }],
130
- s: "Devises populaires"
131
- }
132
- },
133
- title: {
134
- t: 0,
135
- b: {
136
- t: 2,
137
- i: [{ t: 3 }],
138
- s: "Sélectionnez votre devise"
139
- }
140
- }
141
- } },
142
- "de-DE": { CurrencyPicker: {
143
- all: {
144
- t: 0,
145
- b: {
146
- t: 2,
147
- i: [{ t: 3 }],
148
- s: "Alle Währungen"
149
- }
150
- },
151
- notFound: {
152
- t: 0,
153
- b: {
154
- t: 2,
155
- i: [{ t: 3 }],
156
- s: "Währung nicht gefunden"
157
- }
158
- },
159
- preferred: {
160
- t: 0,
161
- b: {
162
- t: 2,
163
- i: [{ t: 3 }],
164
- s: "Bevorzugte Währungen"
165
- }
166
- },
167
- title: {
168
- t: 0,
169
- b: {
170
- t: 2,
171
- i: [{ t: 3 }],
172
- s: "Wählen Sie Ihre Währung"
173
- }
174
- }
175
- } },
176
- "es-ES": { CurrencyPicker: {
177
- all: {
178
- t: 0,
179
- b: {
180
- t: 2,
181
- i: [{ t: 3 }],
182
- s: "Todas las monedas"
183
- }
184
- },
185
- notFound: {
186
- t: 0,
187
- b: {
188
- t: 2,
189
- i: [{ t: 3 }],
190
- s: "Moneda no encontrada"
191
- }
192
- },
193
- preferred: {
194
- t: 0,
195
- b: {
196
- t: 2,
197
- i: [{ t: 3 }],
198
- s: "Monedas preferidas"
199
- }
200
- },
201
- title: {
202
- t: 0,
203
- b: {
204
- t: 2,
205
- i: [{ t: 3 }],
206
- s: "Selecciona tu moneda"
207
- }
208
- }
209
- } },
210
- "it-IT": { CurrencyPicker: {
211
- all: {
212
- t: 0,
213
- b: {
214
- t: 2,
215
- i: [{ t: 3 }],
216
- s: "Tutte le valute"
217
- }
218
- },
219
- notFound: {
220
- t: 0,
221
- b: {
222
- t: 2,
223
- i: [{ t: 3 }],
224
- s: "Valuta non trovata"
225
- }
226
- },
227
- preferred: {
228
- t: 0,
229
- b: {
230
- t: 2,
231
- i: [{ t: 3 }],
232
- s: "Valute preferite"
233
- }
234
- },
235
- title: {
236
- t: 0,
237
- b: {
238
- t: 2,
239
- i: [{ t: 3 }],
240
- s: "Seleziona la tua valuta"
241
- }
242
- }
243
- } },
244
- "nl-NL": { CurrencyPicker: {
245
- all: {
246
- t: 0,
247
- b: {
248
- t: 2,
249
- i: [{ t: 3 }],
250
- s: "Alle valuta's"
251
- }
252
- },
253
- notFound: {
254
- t: 0,
255
- b: {
256
- t: 2,
257
- i: [{ t: 3 }],
258
- s: "Valuta niet gevonden"
259
- }
260
- },
261
- preferred: {
262
- t: 0,
263
- b: {
264
- t: 2,
265
- i: [{ t: 3 }],
266
- s: "Voorkeursvaluta's"
267
- }
268
- },
269
- title: {
270
- t: 0,
271
- b: {
272
- t: 2,
273
- i: [{ t: 3 }],
274
- s: "Selecteer uw valuta"
275
- }
276
- }
277
- } },
278
- "pt-PT": { CurrencyPicker: {
279
- all: {
280
- t: 0,
281
- b: {
282
- t: 2,
283
- i: [{ t: 3 }],
284
- s: "Todas as moedas"
285
- }
286
- },
287
- notFound: {
288
- t: 0,
289
- b: {
290
- t: 2,
291
- i: [{ t: 3 }],
292
- s: "Moeda não encontrada"
293
- }
294
- },
295
- preferred: {
296
- t: 0,
297
- b: {
298
- t: 2,
299
- i: [{ t: 3 }],
300
- s: "Moedas preferenciais"
301
- }
302
- },
303
- title: {
304
- t: 0,
305
- b: {
306
- t: 2,
307
- i: [{ t: 3 }],
308
- s: "Selecione a sua moeda"
309
- }
310
- }
311
- } }
312
- }, ve = { class: "font-weight-bold mb-2" }, he = { class: "font-weight-bold mb-2" }, ke = { class: "font-weight-bold text-primary" }, ye = { class: "" }, Ce = { class: "font-weight-bold" }, be = { class: "font-weight-bold text-primary" };
313
- function Pe(e, a, n, d, f, b) {
314
- return s(), m(H, null, {
315
- default: t(() => [
316
- r(g, {
317
- class: "pa-4",
318
- "no-gutters": ""
319
- }, {
320
- default: t(() => [r(u, { cols: "auto" }, {
321
- default: t(() => [p("p", ve, c(e.t("CurrencyPicker.title")), 1)]),
322
- _: 1
323
- }), r(u, { class: "text-right" }, {
324
- default: t(() => [j(e.$slots, "toolbar-right")]),
325
- _: 3
326
- })]),
327
- _: 3
328
- }),
329
- r(ie),
330
- r(Y, { class: "pa-4 rounded-lg" }, {
331
- default: t(() => [
332
- r(g, { "no-gutters": "" }, {
333
- default: t(() => [r(u, { cols: "auto" }, {
334
- default: t(() => [p("p", he, c(e.t("CurrencyPicker.preferred")), 1)]),
335
- _: 1
336
- })]),
337
- _: 1
338
- }),
339
- r(g, { "no-gutters": "" }, {
340
- default: t(() => [(s(!0), y(L, null, B(e.commonCurrencies, (l, o) => (s(), m(u, {
341
- key: o,
342
- cols: "12",
343
- md: "4",
344
- sm: "6"
345
- }, {
346
- default: t(() => [r(U, {
347
- class: S(["text-caption", l.code === e.config.currency ? "bg-grey-lighten-4" : null]),
348
- link: "",
349
- onClick: (i) => e.onItemClick(l)
350
- }, {
351
- default: t(() => [r(g, { "no-gutters": "" }, {
352
- default: t(() => [r(u, {
353
- cols: "4",
354
- sm: "3"
355
- }, {
356
- default: t(() => [p("span", ke, [k(c(l.code) + " ", 1), l.code !== l.symbol ? (s(), y(L, { key: 0 }, [k(" - " + c(l.symbol), 1)], 64)) : T("", !0)])]),
357
- _: 2
358
- }, 1024), r(u, { class: "currency-name" }, {
359
- default: t(() => [p("span", ye, c(l.name), 1)]),
360
- _: 2
361
- }, 1024)]),
362
- _: 2
363
- }, 1024)]),
364
- _: 2
365
- }, 1032, ["class", "onClick"])]),
366
- _: 2
367
- }, 1024))), 128))]),
368
- _: 1
369
- }),
370
- r(g, {
371
- align: "center",
372
- class: "mt-3",
373
- "no-gutters": ""
374
- }, {
375
- default: t(() => [r(u, {
376
- cols: "12",
377
- lg: "4"
378
- }, {
379
- default: t(() => [p("span", Ce, c(e.t("CurrencyPicker.all")), 1)]),
380
- _: 1
381
- }), r(u, {
382
- cols: "12",
383
- lg: "8"
384
- }, {
385
- default: t(() => [r(ce, {
386
- modelValue: e.searchInput,
387
- "onUpdate:modelValue": a[0] || (a[0] = (l) => e.searchInput = l),
388
- class: "mt-2",
389
- density: "compact",
390
- "error-messages": e.filteredList.length === 0 ? [e.t("CurrencyPicker.notFound")] : [],
391
- label: "Search",
392
- variant: "outlined"
393
- }, null, 8, ["modelValue", "error-messages"])]),
394
- _: 1
395
- })]),
396
- _: 1
397
- }),
398
- r(g, { "no-gutters": "" }, {
399
- default: t(() => [(s(!0), y(L, null, B(e.filteredList, (l, o) => (s(), m(u, {
400
- key: o,
401
- cols: "12",
402
- md: "4",
403
- sm: "6"
404
- }, {
405
- default: t(() => [r(U, {
406
- class: S(["text-caption", l.code === e.config.currency ? "bg-grey-lighten-4" : null]),
407
- link: "",
408
- onClick: (i) => e.onItemClick(l)
409
- }, {
410
- default: t(() => [r(g, { "no-gutters": "" }, {
411
- default: t(() => [r(u, {
412
- cols: "4",
413
- sm: "3"
414
- }, {
415
- default: t(() => [p("span", be, [k(c(l.code) + " ", 1), l.code !== l.symbol ? (s(), y(L, { key: 0 }, [k(" - " + c(l.symbol), 1)], 64)) : T("", !0)])]),
416
- _: 2
417
- }, 1024), r(u, { class: "currency-name no-break ml-1" }, {
418
- default: t(() => [k(c(l.name), 1)]),
419
- _: 2
420
- }, 1024)]),
421
- _: 2
422
- }, 1024)]),
423
- _: 2
424
- }, 1032, ["class", "onClick"])]),
425
- _: 2
426
- }, 1024))), 128))]),
427
- _: 1
428
- })
429
- ]),
430
- _: 1
431
- })
432
- ]),
433
- _: 3
434
- });
435
- }
436
- typeof z == "function" && z(J);
437
- var _e = /* @__PURE__ */ E(J, [["render", Pe]]), Le = {
438
- color: {
439
- default: "primary",
440
- type: String
441
- },
442
- dialog: {
443
- default: !1,
444
- type: Boolean
445
- },
446
- elevation: {
447
- default: 0,
448
- type: [String, Number]
449
- },
450
- size: {
451
- default: 0,
452
- type: [String, Number]
453
- }
454
- }, Ve = { modelValue: { type: Boolean } }, Se = _({
455
- components: { CurrencyPicker: _e },
456
- data() {
457
- return { open: this.modelValue };
458
- },
459
- mixins: [R],
460
- name: "CurrencyPickerDialog",
461
- props: Ve,
462
- setup() {
463
- const { t: e } = $();
464
- return { t: e };
465
- },
466
- watch: {
467
- "config.currency"(e) {
468
- e && (this.open = !1);
469
- },
470
- modelValue(e) {
471
- this.open = e;
472
- },
473
- open(e) {
474
- this.$emit("update:modelValue", e);
475
- }
476
- }
477
- });
478
- function we(e, a, n, d, f, b) {
479
- const l = V("CurrencyPicker");
480
- return s(), m(K, {
481
- modelValue: e.open,
482
- "onUpdate:modelValue": a[1] || (a[1] = (o) => e.open = o),
483
- attach: e.$dialogAttach,
484
- "content-class": "rounded-lg",
485
- "max-width": "850",
486
- scrollable: ""
487
- }, {
488
- default: t(() => [r(l, null, {
489
- "toolbar-right": t(() => [r(w, {
490
- class: "mx-1",
491
- icon: "",
492
- size: "x-small",
493
- variant: "text",
494
- onClick: a[0] || (a[0] = (o) => e.open = !1)
495
- }, {
496
- default: t(() => [r(O, { color: "dark" }, {
497
- default: t(() => [...a[2] || (a[2] = [k("fas fa-times", -1)])]),
498
- _: 1
499
- })]),
500
- _: 1
501
- })]),
502
- _: 1
503
- })]),
504
- _: 1
505
- }, 8, ["modelValue", "attach"]);
506
- }
507
- var Z = /* @__PURE__ */ E(Se, [["render", we]]), $e = _({
508
- components: { CurrencyPickerDialog: Z },
509
- computed: { currencies() {
510
- return D;
511
- } },
512
- data() {
513
- return { currencyPickerDialog: !1 };
514
- },
515
- methods: { onClick() {
516
- this.dialog && (this.currencyPickerDialog = !0);
517
- } },
518
- mixins: [R],
519
- name: "LangPickerBtn",
520
- props: Le,
521
- setup() {
522
- const { t: e } = $();
523
- return { t: e };
524
- }
525
- });
526
- function Ee(e, a, n, d, f, b) {
527
- const l = V("CurrencyPickerDialog");
528
- return s(), m(w, {
529
- class: S(`elevation-${e.elevation} rounded-circle`),
530
- color: e.color,
531
- height: "32",
532
- size: "x-small",
533
- style: { minWidth: "32px" },
534
- width: "32",
535
- onClick: e.onClick
536
- }, {
537
- default: t(() => [p("b", null, c(e.currencies[e.config.currency]?.code), 1), e.dialog ? (s(), m(l, {
538
- key: 0,
539
- modelValue: e.currencyPickerDialog,
540
- "onUpdate:modelValue": a[0] || (a[0] = (o) => e.currencyPickerDialog = o)
541
- }, null, 8, ["modelValue"])) : T("", !0)]),
542
- _: 1
543
- }, 8, [
544
- "class",
545
- "color",
546
- "onClick"
547
- ]);
548
- }
549
- var Me = /* @__PURE__ */ E($e, [["render", Ee]]), M = /* @__PURE__ */ (function(e) {
550
- return e.Bottom = "bottom", e.Left = "left", e.Right = "right", e.Top = "top", e;
551
- })({}), De = {
552
- block: {
553
- default: !1,
554
- type: Boolean
555
- },
556
- color: {
557
- default: "secondary",
558
- type: String
559
- },
560
- compact: {
561
- default: !1,
562
- type: Boolean
563
- },
564
- direction: {
565
- default: "top",
566
- type: String
567
- }
568
- }, Be = { class: "text-grey-darken-2" }, Q = /* @__PURE__ */ _({
569
- __name: "LangPicker",
570
- props: /* @__PURE__ */ W({ locales: { default: () => Object.keys(C) } }, {
571
- modelValue: {},
572
- modelModifiers: {}
573
- }),
574
- emits: ["update:modelValue"],
575
- setup(e) {
576
- const { config: a } = ne(), { t: n } = $(), d = e, f = G(e, "modelValue"), b = oe(() => {
577
- const l = (d.locales || []).filter((o) => C[o]).map((o) => C[o]);
578
- return l.length > 0 ? l : Object.values(C);
579
- });
580
- return (l, o) => (s(), m(Y, null, {
581
- default: t(() => [r(me, {
582
- color: "white",
583
- elevation: "0"
584
- }, {
585
- default: t(() => [p("h4", Be, c(P(n)("LangPicker.title")), 1), j(l.$slots, "toolbar-right")]),
586
- _: 3
587
- }), (s(!0), y(L, null, B(b.value, (i) => (s(), m(U, {
588
- key: i.name,
589
- class: S(["ml-3", f.value === i.code ? "bg-grey-lighten-4" : void 0]),
590
- link: "",
591
- onClick: (v) => f.value = i.code
592
- }, {
593
- default: t(() => [r(I, { image: `https://flagcdn.com/h60/${i.countryCode.toLowerCase()}.png` }, null, 8, ["image"]), p("span", { class: S(["ml-4", P(a).lang === i.code ? "font-weight-bold" : ""]) }, c(i.name), 3)]),
594
- _: 2
595
- }, 1032, ["class", "onClick"]))), 128))]),
596
- _: 3
597
- }));
598
- }
599
- }), A = {
600
- "en-US": { LangPicker: { title: {
601
- t: 0,
602
- b: {
603
- t: 2,
604
- i: [{ t: 3 }],
605
- s: "Select your language"
606
- }
607
- } } },
608
- "fr-FR": { LangPicker: { title: {
609
- t: 0,
610
- b: {
611
- t: 2,
612
- i: [{ t: 3 }],
613
- s: "Sélectionnez votre langue"
614
- }
615
- } } },
616
- "de-DE": { LangPicker: { title: {
617
- t: 0,
618
- b: {
619
- t: 2,
620
- i: [{ t: 3 }],
621
- s: "Wählen Sie Ihre Sprache"
622
- }
623
- } } },
624
- "es-ES": { LangPicker: { title: {
625
- t: 0,
626
- b: {
627
- t: 2,
628
- i: [{ t: 3 }],
629
- s: "Selecciona tu idioma"
630
- }
631
- } } },
632
- "it-IT": { LangPicker: { title: {
633
- t: 0,
634
- b: {
635
- t: 2,
636
- i: [{ t: 3 }],
637
- s: "Seleziona la tua lingua"
638
- }
639
- } } },
640
- "nl-NL": { LangPicker: { title: {
641
- t: 0,
642
- b: {
643
- t: 2,
644
- i: [{ t: 3 }],
645
- s: "Selecteer uw taal"
646
- }
647
- } } },
648
- "pt-PT": { LangPicker: { title: {
649
- t: 0,
650
- b: {
651
- t: 2,
652
- i: [{ t: 3 }],
653
- s: "Selecione o seu idioma"
654
- }
655
- } } }
656
- };
657
- typeof A == "function" && A(Q);
658
- var Te = Q, Oe = /* @__PURE__ */ _({
659
- __name: "LangPickerBtn",
660
- props: /* @__PURE__ */ W({
661
- locales: {},
662
- elevation: {}
663
- }, {
664
- modelValue: {},
665
- modelModifiers: {}
666
- }),
667
- emits: ["update:modelValue"],
668
- setup(e) {
669
- const a = G(e, "modelValue"), n = N(null), { $dialogAttach: d } = re(n), f = N(!1);
670
- function b() {
671
- f.value = !1;
672
- }
673
- return le(a, () => {
674
- a.value && (f.value = !1);
675
- }), (l, o) => (s(), y("div", {
676
- ref_key: "root",
677
- ref: n
678
- }, [r(K, {
679
- modelValue: f.value,
680
- "onUpdate:modelValue": o[1] || (o[1] = (i) => f.value = i),
681
- attach: P(d),
682
- "max-width": "290"
683
- }, {
684
- activator: t(({ props: i }) => [r(w, x({
685
- class: `elevation-${e.elevation} rounded-circle`,
686
- color: "primary",
687
- height: "32",
688
- icon: "",
689
- size: "x-small",
690
- variant: a.value ? "text" : "flat",
691
- width: "32"
692
- }, i), {
693
- default: t(() => [r(I, { style: { overflow: "hidden" } }, {
694
- default: t(() => [a.value ? (s(), m(q, {
695
- key: 0,
696
- src: `https://flagcdn.com/h60/${P(C)[a.value].countryCode.toLowerCase()}.png`,
697
- srcset: `https://flagcdn.com/h80/${P(C)[a.value].countryCode.toLowerCase()}.png 2x,
698
- https://flagcdn.com/h120/${P(C)[a.value].countryCode.toLowerCase()}.png 3x`
699
- }, null, 8, ["src", "srcset"])) : (s(), m(O, {
700
- key: 1,
701
- color: "dark"
702
- }, {
703
- default: t(() => [...o[2] || (o[2] = [k("fas fa-globe", -1)])]),
704
- _: 1
705
- }))]),
706
- _: 1
707
- })]),
708
- _: 1
709
- }, 16, ["class", "variant"])]),
710
- default: t(() => [r(Te, {
711
- modelValue: a.value,
712
- "onUpdate:modelValue": o[0] || (o[0] = (i) => a.value = i),
713
- locales: e.locales
714
- }, {
715
- "toolbar-right": t(() => [r(ue), r(w, {
716
- class: "mx-1",
717
- icon: "",
718
- size: "x-small",
719
- variant: "text",
720
- onClick: b
721
- }, {
722
- default: t(() => [r(O, { color: "dark" }, {
723
- default: t(() => [...o[3] || (o[3] = [k("fas fa-times", -1)])]),
724
- _: 1
725
- })]),
726
- _: 1
727
- })]),
728
- _: 1
729
- }, 8, ["modelValue", "locales"])]),
730
- _: 1
731
- }, 8, ["modelValue", "attach"])], 512));
732
- }
733
- }), Ue = /* @__PURE__ */ E(Oe, [["__scopeId", "data-v-1455e933"]]), X = _({
734
- components: {
735
- CurrencyPickerBtn: Me,
736
- CurrencyPickerDialog: Z,
737
- LangPickerBtn: Ue
738
- },
739
- computed: {
740
- activeCurrency() {
741
- return D[this.config.currency];
742
- },
743
- langPickerModel: {
744
- get() {
745
- return this.$i18n.locale;
746
- },
747
- set(e) {
748
- se(this.config, e, this.$eventBus);
749
- }
750
- },
751
- transition() {
752
- switch (this.direction) {
753
- case M.Bottom:
754
- return "slide-y-transition";
755
- case M.Left:
756
- return "slide-x-reverse-transition";
757
- case M.Right:
758
- return "slide-x-transition";
759
- case M.Top:
760
- return "slide-y-reverse-transition";
761
- case void 0:
762
- default:
763
- return "slide-y-transition";
764
- }
765
- }
766
- },
767
- data() {
768
- return {
769
- currencyPickerDialog: !1,
770
- LOCALES: C
771
- };
772
- },
773
- methods: { onCurrencyPickerBtnClicked() {
774
- this.currencyPickerDialog = !0;
775
- } },
776
- mixins: [te({
777
- fallbackValue: !1,
778
- propsName: "compact"
779
- })],
780
- name: "PreferencesMenu",
781
- props: De,
782
- setup() {
783
- const { t: e } = $();
784
- return { t: e };
785
- }
786
- }), F = {
787
- "en-US": { PreferencesMenu: { title: {
788
- t: 0,
789
- b: {
790
- t: 2,
791
- i: [{ t: 3 }],
792
- s: "Pick your language and currency"
793
- }
794
- } } },
795
- "fr-FR": { PreferencesMenu: { title: {
796
- t: 0,
797
- b: {
798
- t: 2,
799
- i: [{ t: 3 }],
800
- s: "Choisissez votre langue et votre devise"
801
- }
802
- } } },
803
- "de-DE": { PreferencesMenu: { title: {
804
- t: 0,
805
- b: {
806
- t: 2,
807
- i: [{ t: 3 }],
808
- s: "Wählen Sie Ihre Sprache und Währung"
809
- }
810
- } } },
811
- "es-ES": { PreferencesMenu: { title: {
812
- t: 0,
813
- b: {
814
- t: 2,
815
- i: [{ t: 3 }],
816
- s: "Elige tu idioma y divisa"
817
- }
818
- } } },
819
- "it-IT": { PreferencesMenu: { title: {
820
- t: 0,
821
- b: {
822
- t: 2,
823
- i: [{ t: 3 }],
824
- s: "Scegli la tua lingua e valuta"
825
- }
826
- } } },
827
- "nl-NL": { PreferencesMenu: { title: {
828
- t: 0,
829
- b: {
830
- t: 2,
831
- i: [{ t: 3 }],
832
- s: "Kies je taal en valuta"
833
- }
834
- } } },
835
- "pt-PT": { PreferencesMenu: { title: {
836
- t: 0,
837
- b: {
838
- t: 2,
839
- i: [{ t: 3 }],
840
- s: "Escolha o seu idioma e moeda"
841
- }
842
- } } }
843
- }, Re = { key: 0 }, Ie = { class: "pr-1" }, Ne = { key: 1 };
844
- function ze(e, a, n, d, f, b) {
845
- const l = V("CurrencyPickerBtn"), o = V("LangPickerBtn"), i = V("CurrencyPickerDialog");
846
- return e.parsedCompact ? (s(), y("div", Re, [r(de, {
847
- "content-class": "elevation-0",
848
- elevation: "0",
849
- location: e.direction,
850
- transition: e.transition
851
- }, {
852
- activator: t(({ props: v }) => [r(w, x({
853
- block: e.block,
854
- class: "elevation-0 px-1",
855
- color: e.color,
856
- size: "small"
857
- }, v, { style: {
858
- "max-width": "62px",
859
- width: "62px"
860
- } }), {
861
- default: t(() => [p("small", Ie, c(e.activeCurrency.code) + " /", 1), r(I, { size: "16" }, {
862
- default: t(() => [r(q, {
863
- "max-height": "16",
864
- "max-width": "16",
865
- src: `https://flagcdn.com/h60/${e.LOCALES[e.langPickerModel].countryCode.toLowerCase()}.png`,
866
- srcset: `https://flagcdn.com/h80/${e.LOCALES[e.langPickerModel].countryCode.toLowerCase()}.png 2x,
867
- https://flagcdn.com/h120/${e.LOCALES[e.langPickerModel].countryCode.toLowerCase()}.png 3x`
868
- }, null, 8, ["src", "srcset"])]),
869
- _: 1
870
- })]),
871
- _: 1
872
- }, 16, ["block", "color"])]),
873
- default: t(() => [r(H, {
874
- class: "bg-transparent",
875
- elevation: "0"
876
- }, {
877
- default: t(() => [r(pe, { class: "px-3" }, {
878
- default: t(() => [r(g, null, {
879
- default: t(() => [r(u, { class: "d-flex justify-center" }, {
880
- default: t(() => [r(l, {
881
- color: e.color,
882
- elevation: "7",
883
- onClick: e.onCurrencyPickerBtnClicked
884
- }, null, 8, ["color", "onClick"])]),
885
- _: 1
886
- })]),
887
- _: 1
888
- }), r(g, { dense: "" }, {
889
- default: t(() => [r(u, { class: "d-flex justify-center" }, {
890
- default: t(() => [r(o, {
891
- modelValue: e.langPickerModel,
892
- "onUpdate:modelValue": a[0] || (a[0] = (v) => e.langPickerModel = v),
893
- elevation: "7",
894
- locales: e.config.locales
895
- }, null, 8, ["modelValue", "locales"])]),
896
- _: 1
897
- })]),
898
- _: 1
899
- })]),
900
- _: 1
901
- })]),
902
- _: 1
903
- })]),
904
- _: 1
905
- }, 8, ["location", "transition"]), r(i, {
906
- modelValue: e.currencyPickerDialog,
907
- "onUpdate:modelValue": a[1] || (a[1] = (v) => e.currencyPickerDialog = v)
908
- }, null, 8, ["modelValue"])])) : (s(), y("div", Ne, [
909
- r(l, {
910
- class: "d-inline-block",
911
- color: e.color,
912
- dialog: ""
913
- }, null, 8, ["color"]),
914
- a[3] || (a[3] = p("span", { class: "pr-1" }, null, -1)),
915
- r(o, {
916
- modelValue: e.langPickerModel,
917
- "onUpdate:modelValue": a[2] || (a[2] = (v) => e.langPickerModel = v),
918
- class: "d-inline-block",
919
- locales: e.config.locales
920
- }, null, 8, ["modelValue", "locales"])
921
- ]));
922
- }
923
- typeof F == "function" && F(X);
924
- var xe = /* @__PURE__ */ E(X, [["render", ze], ["__scopeId", "data-v-b44ae435"]]);
925
- ee("css/revolugo.preferencesmenu.DwotHb97.css");
926
- export {
927
- Me as a,
928
- De as i,
929
- Ue as n,
930
- Le as o,
931
- M as r,
932
- xe as t
933
- };
934
-
935
- //# sourceMappingURL=revolugo.preferencesmenu.DsaLyuA5.min.js.map