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