@revolugo/elements 6.9.1-beta.0 → 6.9.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (190) hide show
  1. package/dist/css/fonts.css +1 -1
  2. package/dist/css/revolugo.bdaterangepicker.OLspTh_0.css +1 -0
  3. package/dist/css/revolugo.bhoteloffersfilterbar.BebBKpCh.css +1 -0
  4. package/dist/css/revolugo.bhotelroomsdetails.c1M8WEQ1.css +1 -0
  5. package/dist/css/revolugo.bimagecarousel.B2SxWMbZ.css +1 -0
  6. package/dist/css/revolugo.bookingdetailssidebar.Cp4sLBjD.css +1 -0
  7. package/dist/css/revolugo.bstarrating.CPHKEfup.css +1 -0
  8. package/dist/css/revolugo.btag.T7X_iIkW.css +1 -0
  9. package/dist/css/revolugo.cancellationpoliciesbadge.BLInUr3-.css +1 -0
  10. package/dist/css/revolugo.creditcardform.DWne0Lnv.css +1 -0
  11. package/dist/css/revolugo.creditcardpayment.D2PE5FCt.css +1 -0
  12. package/dist/css/revolugo.fullbookingflow.Bm8JAQF7.css +1 -0
  13. package/dist/css/revolugo.hoteldescriptionview.B-RiiuPY.css +1 -0
  14. package/dist/css/revolugo.hotelofferlist.BkctzTMI.css +1 -0
  15. package/dist/css/revolugo.hoteloffersearchmenuui.ZbUh8ba2.css +1 -0
  16. package/dist/css/revolugo.hoteloffersmap.Z5DFtK0_.css +1 -0
  17. package/dist/css/revolugo.hoteloffersview.CLbnSww6.css +1 -0
  18. package/dist/css/revolugo.hotelroomofferlist.D8JlZt_N.css +1 -0
  19. package/dist/css/revolugo.hotelroomoffersbookingflow.LHa5iHB7.css +1 -0
  20. package/dist/css/revolugo.index.DK7d_h6O.css +1 -0
  21. package/dist/css/revolugo.index.XNPQF1ia.css +5 -0
  22. package/dist/css/revolugo.langpickerbtn.BGnattUJ.css +1 -0
  23. package/dist/css/revolugo.prebookform.DmCR7hLv.css +1 -0
  24. package/dist/css/revolugo.preferencesmenu.fPv_7j-1.css +1 -0
  25. package/dist/css/revolugo.termsandconditions.D8IMR9da.css +1 -0
  26. package/dist/css/revolugo.vautocomplete.CuVjyvcC.css +1 -0
  27. package/dist/css/revolugo.vbadge.C45eZpxy.css +1 -0
  28. package/dist/css/revolugo.vbtn.DpMO1Ky2.css +1 -0
  29. package/dist/css/revolugo.vcard.TERzfknI.css +1 -0
  30. package/dist/css/revolugo.vcheckboxbtn.Bp_BNQWb.css +1 -0
  31. package/dist/css/revolugo.vdialog.DwTSAOeg.css +1 -0
  32. package/dist/css/revolugo.vdivider.CTbbZwnv.css +1 -0
  33. package/dist/css/revolugo.vexpansionpanels.RsCANmDP.css +1 -0
  34. package/dist/css/revolugo.vicon.eIkh7vVK.css +1 -0
  35. package/dist/css/revolugo.vinput.BPiFMorL.css +1 -0
  36. package/dist/css/revolugo.vlabel.BvKaKg7Y.css +1 -0
  37. package/dist/css/revolugo.vlist.-Y4qkukF.css +1 -0
  38. package/dist/css/revolugo.vmenu.DvKwEp1j.css +1 -0
  39. package/dist/css/revolugo.vselect.C5CKHFYB.css +1 -0
  40. package/dist/css/revolugo.vsheet.Dmcoj8cr.css +1 -0
  41. package/dist/css/revolugo.vskeletonloader.BlK8uFkX.css +1 -0
  42. package/dist/css/revolugo.vslidegroup.ECiLCEE9.css +1 -0
  43. package/dist/css/revolugo.vsnackbar.CCfuo3ao.css +1 -0
  44. package/dist/css/revolugo.vtextarea.Dxy6uSvm.css +1 -0
  45. package/dist/css/revolugo.vtextfield.BIH_AWWP.css +1 -0
  46. package/dist/css/{revolugo.preferencesmenu.7UfG9ius.css → revolugo.vtoolbar.BZert82L.css} +1 -1
  47. package/dist/css/revolugo.vtooltip.BHXJTQ4V.css +1 -0
  48. package/dist/css/revolugo.vwindowitem.CWBhiE_Y.css +1 -0
  49. package/dist/css/{revolugo.webcomponentwrapper.C3K3E5wv.css → revolugo.webcomponentwrapper.cFJPP6Rp.css} +1 -1
  50. package/dist/index.es.min.js +1 -2
  51. package/dist/index.es.min.js.map +1 -1
  52. package/dist/index.min.js +1 -1
  53. package/dist/index.min.js.map +1 -1
  54. package/dist/revolugo._baseiteratee.C9fSfygW.min.js +247 -0
  55. package/dist/revolugo.banktransferdetails.HF-5whLi.min.js +373 -0
  56. package/dist/revolugo.bdaterangepicker.Dztdr7of.min.js +8327 -0
  57. package/dist/revolugo.bformattedamount.vue_vue_type_script_setup_true_lang.WRP6nh8U.min.js +146 -0
  58. package/dist/revolugo.bhoteloffersfilterbar.riRikxpD.min.js +4901 -0
  59. package/dist/revolugo.bhotelroomsdetails.DSVvK0I7.min.js +965 -0
  60. package/dist/revolugo.bimagecarousel.0DDXWSsX.min.js +566 -0
  61. package/dist/revolugo.bookingdetailssidebar.B3nJVjzT.min.js +24 -0
  62. package/dist/revolugo.bookingdetailssidebar.HR95sw2v.min.js +870 -0
  63. package/dist/revolugo.bookingmanager.CHhySvbL.min.js +1755 -0
  64. package/dist/revolugo.bpricesummaryskeleton.vue_vue_type_script_setup_true_lang.DCBOxir-.min.js +66 -0
  65. package/dist/revolugo.bstarrating.vue_vue_type_script_setup_true_lang.D7d1JNOc.min.js +570 -0
  66. package/dist/revolugo.btag.C27GlEZ3.min.js +375 -0
  67. package/dist/revolugo.cancellationpoliciesbadge.CQ9NQZ7F.min.js +28 -0
  68. package/dist/revolugo.cancellationpoliciesbadge.D7VDRPmO.min.js +198 -0
  69. package/dist/revolugo.cancellationpolicieslist.DUrr7Myp.min.js +25 -0
  70. package/dist/revolugo.cancellationpolicieslist.IKkTYxdE.min.js +148 -0
  71. package/dist/revolugo.cancellationpolicieslist.props.s6oWxIxG.min.js +21 -0
  72. package/dist/revolugo.case-transformers.Blb5hegY.min.js +123 -0
  73. package/dist/revolugo.common.D-l8b0V5.min.js +10 -0
  74. package/dist/revolugo.creditcardform.CejFX150.min.js +2148 -0
  75. package/dist/revolugo.creditcardform.Dx00l01z.min.js +24 -0
  76. package/dist/revolugo.creditcardpayment.CkfC2xTo.min.js +885 -0
  77. package/dist/revolugo.creditcardpayment.DZf0q5_n.min.js +24 -0
  78. package/dist/revolugo.currencypicker.B9c-AV8V.min.js +328 -0
  79. package/dist/revolugo.currencypickerbtn.B_lw6N3Y.min.js +24 -0
  80. package/dist/revolugo.currencypickerbtn.edi3iO6h.min.js +157 -0
  81. package/dist/revolugo.dates.DiE5ynTe.min.js +31 -0
  82. package/dist/revolugo.defaultsdeep.EmfuGqBQ.min.js +104 -0
  83. package/dist/revolugo.dialog-attach.C4Yvk6WJ.min.js +27 -0
  84. package/dist/revolugo.dialog-transition.Dly9KKqO.min.js +111 -0
  85. package/dist/revolugo.fastbookingflow.DPOX_gos.min.js +34 -0
  86. package/dist/revolugo.forwardrefs.VVhh1qV3.min.js +70 -0
  87. package/dist/revolugo.fullbookingflow.DSJE_kaM.min.js +429 -0
  88. package/dist/revolugo.hotel-offer-request.C9zwgVPt.min.js +98 -0
  89. package/dist/revolugo.hoteldescriptionview.Dtd-_3_8.min.js +24 -0
  90. package/dist/revolugo.hoteldescriptionview.kERJQPWm.min.js +2738 -0
  91. package/dist/revolugo.hotelofferitemlayout.vue_vue_type_script_setup_true_lang.CiHBAV7m.min.js +239 -0
  92. package/dist/revolugo.hotelofferlist.BC-TSjS6.min.js +24 -0
  93. package/dist/revolugo.hotelofferlist.D2AXSf4v.min.js +5640 -0
  94. package/dist/revolugo.hotelofferrequestcreator.props.BeQuCTZy.min.js +44 -0
  95. package/dist/revolugo.hoteloffersearchmenu.BODV4ZIe.min.js +202 -0
  96. package/dist/revolugo.hoteloffersearchmenuui.DqWHAurZ.min.js +829 -0
  97. package/dist/revolugo.hoteloffersmap.C6nn7LXn.min.js +8330 -0
  98. package/dist/revolugo.hoteloffersmap.Db9NNgcN.min.js +24 -0
  99. package/dist/revolugo.hoteloffersview.BAwQcocI.min.js +19 -0
  100. package/dist/revolugo.hoteloffersview.CIVNGmGO.min.js +616 -0
  101. package/dist/revolugo.hotelroomofferlist.C9y91Ya3.min.js +2799 -0
  102. package/dist/revolugo.hotelroomofferlist.CiBIB0Pb.min.js +24 -0
  103. package/dist/revolugo.hotelroomofferrequestcreator.props.2Sq_iptZ.min.js +171 -0
  104. package/dist/revolugo.hotelroomoffersbookingflow.BS4Fa2EH.min.js +1281 -0
  105. package/dist/revolugo.hotelroomoffersearchmenu.CXgExPhR.min.js +25 -0
  106. package/dist/revolugo.hotelroomoffersearchmenu.x_--4RXV.min.js +231 -0
  107. package/dist/revolugo.hotelroomoffersview.BzmRXy0a.min.js +290 -0
  108. package/dist/revolugo.hotelroomoffersview.CFo6k7zm.min.js +24 -0
  109. package/dist/revolugo.index.CDNx7Tg4.min.js +67 -0
  110. package/dist/revolugo.index.DZEISB0K.min.js +1232 -0
  111. package/dist/{revolugo.index.wc.DuPB3gwB.min.js → revolugo.index.wc.DLkeXtka.min.js} +4166 -4139
  112. package/dist/revolugo.langpicker.D7zIuy78.min.js +99 -0
  113. package/dist/revolugo.langpickerbtn.BF7sml8K.min.js +29 -0
  114. package/dist/revolugo.langpickerbtn.DMcy_gHZ.min.js +131 -0
  115. package/dist/revolugo.min.js +1 -1
  116. package/dist/revolugo.parsed-props.B5g9_9k5.min.js +40 -0
  117. package/dist/revolugo.pathify.DL0POvNz.min.js +36 -0
  118. package/dist/revolugo.prebookform.BMEaruyl.min.js +1527 -0
  119. package/dist/revolugo.prebookform.BVyTAnc9.min.js +24 -0
  120. package/dist/revolugo.preferencesmenu.5pUjkA0F.min.js +24 -0
  121. package/dist/revolugo.preferencesmenu.CfUC3L6C.min.js +261 -0
  122. package/dist/revolugo.roominglisteditor.DLWeU6Ct.min.js +385 -0
  123. package/dist/revolugo.roominglisteditor.L6CmotRz.min.js +24 -0
  124. package/dist/revolugo.rounded.C-2ilaaW.min.js +68 -0
  125. package/dist/revolugo.ssrboot.D7k4-YG4.min.js +18 -0
  126. package/dist/revolugo.storybooktoolbar.CTe_QwGW.min.js +881 -0
  127. package/dist/revolugo.termsandconditions.Cue6Dsm7.min.js +404 -0
  128. package/dist/revolugo.termsandconditions.DBq-dEuI.min.js +23 -0
  129. package/dist/revolugo.use-breakpoint-service.DsQuZJRM.min.js +39 -0
  130. package/dist/revolugo.use-dialog-attach.DLdl8iIG.min.js +16 -0
  131. package/dist/revolugo.use-html-element.c9F9oVPw.min.js +11 -0
  132. package/dist/revolugo.vautocomplete.Q2U5ECgn.min.js +445 -0
  133. package/dist/revolugo.vbadge.D-lbOD0r.min.js +112 -0
  134. package/dist/revolugo.vbtn.B-LYC8rJ.min.js +398 -0
  135. package/dist/revolugo.vcard.ZlYB5HOk.min.js +313 -0
  136. package/dist/revolugo.vcheckboxbtn.BGpOwRWV.min.js +478 -0
  137. package/dist/revolugo.vdialog.DlAgRbIv.min.js +133 -0
  138. package/dist/revolugo.vdivider.D1ITKKuu.min.js +77 -0
  139. package/dist/revolugo.vexpansionpanels.D8TtnQrF.min.js +262 -0
  140. package/dist/revolugo.vform.gu3frP5W.min.js +46 -0
  141. package/dist/revolugo.vicon.mrg8OisO.min.js +105 -0
  142. package/dist/revolugo.vinput.BowTI8jK.min.js +463 -0
  143. package/dist/revolugo.vlabel.BjtrjyZZ.min.js +48 -0
  144. package/dist/revolugo.vlist.BwlPoH0e.min.js +1299 -0
  145. package/dist/revolugo.vmenu.Dasw1a1s.min.js +145 -0
  146. package/dist/revolugo.vselect.B4IzM260.min.js +660 -0
  147. package/dist/revolugo.vsheet.CDgBUxHk.min.js +72 -0
  148. package/dist/revolugo.vskeletonloader.DgIjR-8k.min.js +136 -0
  149. package/dist/revolugo.vslidegroup.BV7NJuLN.min.js +325 -0
  150. package/dist/revolugo.vsnackbar.DFnMGJQg.min.js +198 -0
  151. package/dist/revolugo.vspacer.DqnVrVYg.min.js +7 -0
  152. package/dist/revolugo.vtextarea.CgekaBze.min.js +2092 -0
  153. package/dist/revolugo.vtextfield.BhmuZsP7.min.js +501 -0
  154. package/dist/revolugo.vtoolbar.CMwcpp3v.min.js +180 -0
  155. package/dist/revolugo.vtooltip.a-r5BxqW.min.js +89 -0
  156. package/dist/revolugo.vwindowitem.BHzrfo73.min.js +317 -0
  157. package/dist/revolugo.watch-list.BSqnQNdl.min.js +16 -0
  158. package/dist/revolugo.webcomponentwrapper.BNmjcBmh.min.js +2088 -0
  159. package/package.json +4 -4
  160. package/dist/css/revolugo.cancellationpoliciesbadge.BCmMv5CR.css +0 -1
  161. package/dist/css/revolugo.index.ClC0OVqq.css +0 -5
  162. package/dist/revolugo.banktransferdetails.CnMNY-vM.min.js +0 -37
  163. package/dist/revolugo.bookingdetailssidebar.cluL06at.min.js +0 -38
  164. package/dist/revolugo.bookingmanager.BI9tgv3k.min.js +0 -25
  165. package/dist/revolugo.cancellationpoliciesbadge.1AYTHxud.min.js +0 -25
  166. package/dist/revolugo.cancellationpoliciesbadge.props.BzZm3aB9.min.js +0 -30835
  167. package/dist/revolugo.cancellationpolicieslist.CNVuYPJC.min.js +0 -25
  168. package/dist/revolugo.creditcardform.CBJnfym8.min.js +0 -25
  169. package/dist/revolugo.creditcardpayment.B60xJsLL.min.js +0 -25
  170. package/dist/revolugo.currencypickerbtn.lDiTXXJ-.min.js +0 -25
  171. package/dist/revolugo.fastbookingflow.CqYnDU9L.min.js +0 -35
  172. package/dist/revolugo.fullbookingflow.BP8qSHgZ.min.js +0 -25
  173. package/dist/revolugo.hoteldescriptionview.DQ9tuFqp.min.js +0 -25
  174. package/dist/revolugo.hotelofferlist.DAbFLxgC.min.js +0 -25
  175. package/dist/revolugo.hoteloffersearchmenu.CpLjZ82D.min.js +0 -73
  176. package/dist/revolugo.hoteloffersmap.pwDQ8BlF.min.js +0 -25
  177. package/dist/revolugo.hoteloffersview.BqMLmokf.min.js +0 -20
  178. package/dist/revolugo.hotelroomofferlist.CfP85DfR.min.js +0 -25
  179. package/dist/revolugo.hotelroomoffersbookingflow.ZegZEQXf.min.js +0 -25
  180. package/dist/revolugo.hotelroomoffersearchmenu.Bl_kCJ7s.min.js +0 -25
  181. package/dist/revolugo.hotelroomoffersview.ViCNFb0T.min.js +0 -25
  182. package/dist/revolugo.index.CpH_RNjS.min.js +0 -106
  183. package/dist/revolugo.langpickerbtn.DieF3DBF.min.js +0 -30
  184. package/dist/revolugo.prebookform.CEyz9Sgq.min.js +0 -25
  185. package/dist/revolugo.preferencesmenu.BjKg1-Wm.min.js +0 -1098
  186. package/dist/revolugo.preferencesmenu.BxFixX46.min.js +0 -24
  187. package/dist/revolugo.roominglisteditor.CAVBmDjU.min.js +0 -25
  188. package/dist/revolugo.storybooktoolbar.Jn8CsV1b.min.js +0 -839
  189. package/dist/revolugo.termsandconditions.iMzLEEgE.min.js +0 -24
  190. package/dist/revolugo.webcomponentwrapper.C4AURctg.min.js +0 -28593
@@ -1,1098 +0,0 @@
1
- import { E as G, bh as ve, d as P, T as ye, U as Q, V as X, a, ag as ke, Y as Ce, ao as Pe, s as _e, b as N, af as Ve, a1 as Se, aq as M, a8 as Le, Q as $e, h as E, bi as B, bf as we, bj as v, c as h, w as o, z as g, y as m, a6 as Z, j as k, a5 as x, F as V, o as u, ak as $, p as y, f as I, r as L, aG as ee, q as Ee, aH as te, bk as C, u as _, i as H, e as Te, m as ae, bl as Me } from "./revolugo.index.wc.DuPB3gwB.min.js";
2
- import { be as ne, bf as Be, bg as De, aY as Oe, aO as Re, w as oe, a6 as se, $ as le, a1 as Ue, ak as Ne, a5 as xe, v as Ie, A as Ae, a8 as ze, am as Fe, ai as F, J as U, Y as je, d as j, _ as T, f, e as b, O as We, h as Ye, bh as re, V as ie, b0 as A, k as w, l as z, m as ce, av as W, n as Ge, j as He, b as Je, aP as qe } from "./revolugo.webcomponentwrapper.C4AURctg.min.js";
3
- function be(e) {
4
- try {
5
- if (typeof document < "u") {
6
- window.REVOLUGO_ELEMENTS_STYLES = window.REVOLUGO_ELEMENTS_STYLES || {
7
- sheets: [],
8
- components: []
9
- };
10
- const t = import.meta.url, n = t.slice(0, t.lastIndexOf("/") + 1) + e;
11
- window.REVOLUGO_ELEMENTS_STYLES.sheets.push(n);
12
- for (const r of REVOLUGO_ELEMENTS_STYLES.components)
13
- r(n);
14
- if (e.indexOf("fonts") >= 0) {
15
- const r = document.createElement("link");
16
- r.rel = "stylesheet", linK.href = n, document.head.appendChild(r);
17
- }
18
- }
19
- } catch (t) {
20
- console.error("[revolugo-elements] ", t);
21
- }
22
- }
23
- function ue(e, t, n, r, i, d) {
24
- return G(e) && G(t) && (d.set(t, e), ne(e, t, void 0, ue, d), d.delete(t)), e;
25
- }
26
- var Ke = Be(function(e, t, n, r) {
27
- ne(e, t, n, r);
28
- }), Qe = De(function(e) {
29
- return e.push(void 0, ue), ve(Ke, void 0, e);
30
- });
31
- function Xe(e, t, n) {
32
- if (e == null)
33
- return t;
34
- const r = n || ((i) => i);
35
- if (typeof e == "string")
36
- try {
37
- return r(JSON.parse(e));
38
- } catch {
39
- return t;
40
- }
41
- return r(e);
42
- }
43
- const Ze = ({
44
- cb: e,
45
- fallbackValue: t,
46
- propsName: n
47
- }) => {
48
- const r = Oe(n, Re.Pascal);
49
- return P({
50
- computed: {
51
- [`parsed${r}`]() {
52
- const i = Xe(
53
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
54
- this[n],
55
- t,
56
- e
57
- );
58
- return i && t ? Qe(structuredClone(ye(i)), t) : i;
59
- }
60
- }
61
- });
62
- }, et = X({
63
- text: String,
64
- ...le(),
65
- ...se()
66
- }, "VToolbarTitle"), tt = Q()({
67
- name: "VToolbarTitle",
68
- props: et(),
69
- setup(e, t) {
70
- let {
71
- slots: n
72
- } = t;
73
- return oe(() => {
74
- const r = !!(n.default || n.text || e.text);
75
- return a(e.tag, {
76
- class: ["v-toolbar-title", e.class],
77
- style: e.style
78
- }, {
79
- default: () => [r && a("div", {
80
- class: "v-toolbar-title__placeholder"
81
- }, [n.text ? n.text() : e.text, n.default?.()])]
82
- });
83
- }), {};
84
- }
85
- }), at = [null, "prominent", "default", "comfortable", "compact"], nt = X({
86
- absolute: Boolean,
87
- collapse: Boolean,
88
- color: String,
89
- density: {
90
- type: String,
91
- default: "default",
92
- validator: (e) => at.includes(e)
93
- },
94
- extended: Boolean,
95
- extensionHeight: {
96
- type: [Number, String],
97
- default: 48
98
- },
99
- flat: Boolean,
100
- floating: Boolean,
101
- height: {
102
- type: [Number, String],
103
- default: 64
104
- },
105
- image: String,
106
- title: String,
107
- ...Fe(),
108
- ...le(),
109
- ...ze(),
110
- ...Ae(),
111
- ...se({
112
- tag: "header"
113
- }),
114
- ...Se()
115
- }, "VToolbar"), ot = Q()({
116
- name: "VToolbar",
117
- props: nt(),
118
- setup(e, t) {
119
- let {
120
- slots: n
121
- } = t;
122
- const {
123
- backgroundColorClasses: r,
124
- backgroundColorStyles: i
125
- } = Ue(ke(e, "color")), {
126
- borderClasses: d
127
- } = Ne(e), {
128
- elevationClasses: s
129
- } = xe(e), {
130
- roundedClasses: l
131
- } = Ie(e), {
132
- themeClasses: c
133
- } = Ce(e), {
134
- rtlClasses: p
135
- } = Pe(), D = _e(!!(e.extended || n.extension?.())), O = N(() => parseInt(Number(e.height) + (e.density === "prominent" ? Number(e.height) : 0) - (e.density === "comfortable" ? 8 : 0) - (e.density === "compact" ? 16 : 0), 10)), R = N(() => D.value ? parseInt(Number(e.extensionHeight) + (e.density === "prominent" ? Number(e.extensionHeight) : 0) - (e.density === "comfortable" ? 4 : 0) - (e.density === "compact" ? 8 : 0), 10) : 0);
136
- return Ve({
137
- VBtn: {
138
- variant: "text"
139
- }
140
- }), oe(() => {
141
- const pe = !!(e.title || n.title), he = !!(n.image || e.image), Y = n.extension?.();
142
- return D.value = !!(e.extended || Y), a(e.tag, {
143
- class: ["v-toolbar", {
144
- "v-toolbar--absolute": e.absolute,
145
- "v-toolbar--collapse": e.collapse,
146
- "v-toolbar--flat": e.flat,
147
- "v-toolbar--floating": e.floating,
148
- [`v-toolbar--density-${e.density}`]: !0
149
- }, r.value, d.value, s.value, l.value, c.value, p.value, e.class],
150
- style: [i.value, e.style]
151
- }, {
152
- default: () => [he && a("div", {
153
- key: "image",
154
- class: "v-toolbar__image"
155
- }, [n.image ? a(U, {
156
- key: "image-defaults",
157
- disabled: !e.image,
158
- defaults: {
159
- VImg: {
160
- cover: !0,
161
- src: e.image
162
- }
163
- }
164
- }, n.image) : a(F, {
165
- key: "image-img",
166
- cover: !0,
167
- src: e.image
168
- }, null)]), a(U, {
169
- defaults: {
170
- VTabs: {
171
- height: M(O.value)
172
- }
173
- }
174
- }, {
175
- default: () => [a("div", {
176
- class: "v-toolbar__content",
177
- style: {
178
- height: M(O.value)
179
- }
180
- }, [n.prepend && a("div", {
181
- class: "v-toolbar__prepend"
182
- }, [n.prepend?.()]), pe && a(tt, {
183
- key: "title",
184
- text: e.title
185
- }, {
186
- text: n.title
187
- }), n.default?.(), n.append && a("div", {
188
- class: "v-toolbar__append"
189
- }, [n.append?.()])])]
190
- }), a(U, {
191
- defaults: {
192
- VTabs: {
193
- height: M(R.value)
194
- }
195
- }
196
- }, {
197
- default: () => [a(je, null, {
198
- default: () => [D.value && a("div", {
199
- class: "v-toolbar__extension",
200
- style: {
201
- height: M(R.value)
202
- }
203
- }, [Y])]
204
- })]
205
- })]
206
- });
207
- }), {
208
- contentHeight: O,
209
- extensionHeight: R
210
- };
211
- }
212
- }), st = [
213
- v.EUR,
214
- v.USD,
215
- v.GBP,
216
- v.CAD,
217
- v.AED,
218
- v.INR,
219
- v.AUD,
220
- v.JPY
221
- ], de = P({
222
- computed: {
223
- commonCurrencies() {
224
- const e = new Set(st);
225
- return Object.values(this.currencies).filter(
226
- (t) => e.has(t.code)
227
- );
228
- },
229
- countries() {
230
- return Object.values(we);
231
- },
232
- currencies() {
233
- return B;
234
- },
235
- filteredList() {
236
- if (!this.searchInput)
237
- return Object.values(this.currencies);
238
- const e = this.countries.filter(
239
- (n) => n.name.toLowerCase().includes(this.searchInput.toLowerCase()) || n.iso2.toLowerCase().includes(this.searchInput.toLowerCase())
240
- ), t = new Set(
241
- e.map((n) => n.currency)
242
- );
243
- return Object.values(this.currencies).filter(
244
- (n) => n.code.toLowerCase().includes(this.searchInput.toLowerCase()) || n.name.toLowerCase().includes(this.searchInput.toLowerCase()) || n.symbol.toLowerCase().includes(this.searchInput.toLowerCase()) || t.has(n.code)
245
- );
246
- },
247
- selectedCurrency() {
248
- return this.config.currency ?? B.EUR.code;
249
- }
250
- },
251
- data() {
252
- return {
253
- dialog: !1,
254
- searchInput: ""
255
- };
256
- },
257
- methods: {
258
- onItemClick(e) {
259
- this.dialog = !1, this.updateCurrency(e.code), this.searchInput = "";
260
- }
261
- },
262
- mixins: [Le, j],
263
- name: "CurrencyPicker",
264
- setup() {
265
- const { t: e } = E();
266
- return {
267
- t: e
268
- };
269
- },
270
- watch: {
271
- dialog(e) {
272
- e || (this.searchInput = "");
273
- },
274
- selectedCurrency() {
275
- this.$eventBus.$emit($e.CurrencyUpdated, this.config.currency);
276
- }
277
- }
278
- });
279
- function J(e) {
280
- const t = e;
281
- t.__i18n = t.__i18n || [], t.__i18n.push({
282
- locale: "",
283
- resource: {
284
- "en-US": {
285
- CurrencyPicker: {
286
- all: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "All currencies" } },
287
- notFound: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Currency not found" } },
288
- preferred: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Preferred currencies" } },
289
- title: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Select your currency" } }
290
- }
291
- },
292
- "fr-FR": {
293
- CurrencyPicker: {
294
- all: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Toutes les devises" } },
295
- notFound: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Devise non trouvée" } },
296
- preferred: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Devises populaires" } },
297
- title: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Sélectionnez votre devise" } }
298
- }
299
- },
300
- "de-DE": {
301
- CurrencyPicker: {
302
- all: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Alle Währungen" } },
303
- notFound: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Währung nicht gefunden" } },
304
- preferred: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Bevorzugte Währungen" } },
305
- title: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Wählen Sie Ihre Währung" } }
306
- }
307
- },
308
- "es-ES": {
309
- CurrencyPicker: {
310
- all: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Todas las monedas" } },
311
- notFound: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Moneda no encontrada" } },
312
- preferred: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Monedas preferidas" } },
313
- title: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Selecciona tu moneda" } }
314
- }
315
- },
316
- "it-IT": {
317
- CurrencyPicker: {
318
- all: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Tutte le valute" } },
319
- notFound: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Valuta non trovata" } },
320
- preferred: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Valute preferite" } },
321
- title: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Seleziona la tua valuta" } }
322
- }
323
- },
324
- "nl-NL": {
325
- CurrencyPicker: {
326
- all: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Alle valuta's" } },
327
- notFound: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Valuta niet gevonden" } },
328
- preferred: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Voorkeursvaluta's" } },
329
- title: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Selecteer uw valuta" } }
330
- }
331
- },
332
- "pt-PT": {
333
- CurrencyPicker: {
334
- all: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Todas as moedas" } },
335
- notFound: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Moeda não encontrada" } },
336
- preferred: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Moedas preferenciais" } },
337
- title: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Selecione a sua moeda" } }
338
- }
339
- }
340
- }
341
- });
342
- }
343
- const lt = { class: "mb-2 font-weight-bold" }, rt = { class: "mb-2 font-weight-bold" }, it = { class: "font-weight-bold text-primary" }, ct = { class: "" }, ut = { class: "font-weight-bold" }, dt = { class: "font-weight-bold text-primary" };
344
- function ft(e, t, n, r, i, d) {
345
- return u(), h(ie, null, {
346
- default: o(() => [
347
- a(b, {
348
- class: "pa-4",
349
- "no-gutters": ""
350
- }, {
351
- default: o(() => [
352
- a(f, { cols: "auto" }, {
353
- default: o(() => [
354
- g("p", lt, m(e.t("CurrencyPicker.title")), 1)
355
- ]),
356
- _: 1
357
- }),
358
- a(f, { class: "text-right" }, {
359
- default: o(() => [
360
- Z(e.$slots, "toolbar-right")
361
- ]),
362
- _: 3
363
- })
364
- ]),
365
- _: 3
366
- }),
367
- a(We),
368
- a(re, { class: "pa-4 rounded-lg" }, {
369
- default: o(() => [
370
- a(b, { "no-gutters": "" }, {
371
- default: o(() => [
372
- a(f, { cols: "auto" }, {
373
- default: o(() => [
374
- g("p", rt, m(e.t("CurrencyPicker.preferred")), 1)
375
- ]),
376
- _: 1
377
- })
378
- ]),
379
- _: 1
380
- }),
381
- a(b, { "no-gutters": "" }, {
382
- default: o(() => [
383
- (u(!0), k(V, null, x(e.commonCurrencies, (s, l) => (u(), h(f, {
384
- key: l,
385
- cols: "12",
386
- md: "4",
387
- sm: "6"
388
- }, {
389
- default: o(() => [
390
- a(A, {
391
- class: $([
392
- "text-caption",
393
- s.code === e.config.currency ? "bg-grey-lighten-4" : null
394
- ]),
395
- link: "",
396
- onClick: (c) => e.onItemClick(s)
397
- }, {
398
- default: o(() => [
399
- a(b, { "no-gutters": "" }, {
400
- default: o(() => [
401
- a(f, {
402
- cols: "4",
403
- sm: "3"
404
- }, {
405
- default: o(() => [
406
- g("span", it, [
407
- y(m(s.code) + " ", 1),
408
- s.code !== s.symbol ? (u(), k(V, { key: 0 }, [
409
- y(" - " + m(s.symbol), 1)
410
- ], 64)) : I("", !0)
411
- ])
412
- ]),
413
- _: 2
414
- }, 1024),
415
- a(f, { class: "currency-name" }, {
416
- default: o(() => [
417
- g("span", ct, m(s.name), 1)
418
- ]),
419
- _: 2
420
- }, 1024)
421
- ]),
422
- _: 2
423
- }, 1024)
424
- ]),
425
- _: 2
426
- }, 1032, ["class", "onClick"])
427
- ]),
428
- _: 2
429
- }, 1024))), 128))
430
- ]),
431
- _: 1
432
- }),
433
- a(b, {
434
- align: "center",
435
- class: "mt-3",
436
- "no-gutters": ""
437
- }, {
438
- default: o(() => [
439
- a(f, {
440
- cols: "12",
441
- lg: "4"
442
- }, {
443
- default: o(() => [
444
- g("span", ut, m(e.t("CurrencyPicker.all")), 1)
445
- ]),
446
- _: 1
447
- }),
448
- a(f, {
449
- cols: "12",
450
- lg: "8"
451
- }, {
452
- default: o(() => [
453
- a(Ye, {
454
- modelValue: e.searchInput,
455
- "onUpdate:modelValue": t[0] || (t[0] = (s) => e.searchInput = s),
456
- class: "mt-2",
457
- density: "compact",
458
- "error-messages": e.filteredList.length === 0 ? [e.t("CurrencyPicker.notFound")] : [],
459
- label: "Search",
460
- variant: "outlined"
461
- }, null, 8, ["modelValue", "error-messages"])
462
- ]),
463
- _: 1
464
- })
465
- ]),
466
- _: 1
467
- }),
468
- a(b, { "no-gutters": "" }, {
469
- default: o(() => [
470
- (u(!0), k(V, null, x(e.filteredList, (s, l) => (u(), h(f, {
471
- key: l,
472
- cols: "12",
473
- md: "4",
474
- sm: "6"
475
- }, {
476
- default: o(() => [
477
- a(A, {
478
- class: $([
479
- "text-caption",
480
- s.code === e.config.currency ? "bg-grey-lighten-4" : null
481
- ]),
482
- link: "",
483
- onClick: (c) => e.onItemClick(s)
484
- }, {
485
- default: o(() => [
486
- a(b, { "no-gutters": "" }, {
487
- default: o(() => [
488
- a(f, {
489
- cols: "4",
490
- sm: "3"
491
- }, {
492
- default: o(() => [
493
- g("span", dt, [
494
- y(m(s.code) + " ", 1),
495
- s.code !== s.symbol ? (u(), k(V, { key: 0 }, [
496
- y(" - " + m(s.symbol), 1)
497
- ], 64)) : I("", !0)
498
- ])
499
- ]),
500
- _: 2
501
- }, 1024),
502
- a(f, { class: "currency-name no-break ml-1" }, {
503
- default: o(() => [
504
- y(m(s.name), 1)
505
- ]),
506
- _: 2
507
- }, 1024)
508
- ]),
509
- _: 2
510
- }, 1024)
511
- ]),
512
- _: 2
513
- }, 1032, ["class", "onClick"])
514
- ]),
515
- _: 2
516
- }, 1024))), 128))
517
- ]),
518
- _: 1
519
- })
520
- ]),
521
- _: 1
522
- })
523
- ]),
524
- _: 3
525
- });
526
- }
527
- typeof J == "function" && J(de);
528
- const mt = /* @__PURE__ */ T(de, [["render", ft]]), gt = {
529
- modelValue: {
530
- type: Boolean
531
- }
532
- }, pt = P({
533
- components: {
534
- CurrencyPicker: mt
535
- },
536
- data() {
537
- return {
538
- open: this.modelValue
539
- };
540
- },
541
- mixins: [j],
542
- name: "CurrencyPickerDialog",
543
- props: gt,
544
- setup() {
545
- const { t: e } = E();
546
- return {
547
- t: e
548
- };
549
- },
550
- watch: {
551
- "config.currency"(e) {
552
- e && (this.open = !1);
553
- },
554
- modelValue(e) {
555
- this.open = e;
556
- },
557
- open(e) {
558
- this.$emit("update:modelValue", e);
559
- }
560
- }
561
- });
562
- function ht(e, t, n, r, i, d) {
563
- const s = L("CurrencyPicker");
564
- return u(), h(ce, {
565
- modelValue: e.open,
566
- "onUpdate:modelValue": t[1] || (t[1] = (l) => e.open = l),
567
- "content-class": "rounded-lg",
568
- attach: e.$dialogAttach,
569
- "max-width": "850",
570
- scrollable: ""
571
- }, {
572
- default: o(() => [
573
- a(s, null, {
574
- "toolbar-right": o(() => [
575
- a(w, {
576
- class: "mx-1",
577
- icon: "",
578
- variant: "text",
579
- size: "x-small",
580
- onClick: t[0] || (t[0] = (l) => e.open = !1)
581
- }, {
582
- default: o(() => [
583
- a(z, { color: "dark" }, {
584
- default: o(() => t[2] || (t[2] = [
585
- y(" fas fa-times ", -1)
586
- ])),
587
- _: 1,
588
- __: [2]
589
- })
590
- ]),
591
- _: 1
592
- })
593
- ]),
594
- _: 1
595
- })
596
- ]),
597
- _: 1
598
- }, 8, ["modelValue", "attach"]);
599
- }
600
- const fe = /* @__PURE__ */ T(pt, [["render", ht]]), bt = {
601
- color: {
602
- default: "primary",
603
- type: String
604
- },
605
- dialog: {
606
- default: !1,
607
- type: Boolean
608
- },
609
- elevation: {
610
- default: 0,
611
- type: [String, Number]
612
- },
613
- size: {
614
- default: 0,
615
- type: [String, Number]
616
- }
617
- }, vt = P({
618
- components: {
619
- CurrencyPickerDialog: fe
620
- },
621
- computed: {
622
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
623
- currencies() {
624
- return B;
625
- }
626
- },
627
- data() {
628
- return {
629
- currencyPickerDialog: !1
630
- };
631
- },
632
- methods: {
633
- onClick() {
634
- this.dialog && (this.currencyPickerDialog = !0);
635
- }
636
- },
637
- mixins: [j],
638
- name: "LangPickerBtn",
639
- props: bt,
640
- setup() {
641
- const { t: e } = E();
642
- return {
643
- t: e
644
- };
645
- }
646
- });
647
- function yt(e, t, n, r, i, d) {
648
- const s = L("CurrencyPickerDialog");
649
- return u(), h(w, {
650
- class: $(`elevation-${e.elevation} rounded-circle`),
651
- color: e.color,
652
- size: "x-small",
653
- height: "32",
654
- width: "32",
655
- style: {
656
- minWidth: "32px"
657
- },
658
- onClick: e.onClick
659
- }, {
660
- default: o(() => [
661
- g("b", null, m(e.currencies[e.config.currency]?.code), 1),
662
- e.dialog ? (u(), h(s, {
663
- key: 0,
664
- modelValue: e.currencyPickerDialog,
665
- "onUpdate:modelValue": t[0] || (t[0] = (l) => e.currencyPickerDialog = l)
666
- }, null, 8, ["modelValue"])) : I("", !0)
667
- ]),
668
- _: 1
669
- }, 8, ["class", "color", "onClick"]);
670
- }
671
- const kt = /* @__PURE__ */ T(vt, [["render", yt]]), Ct = { class: "text-grey-darken-2" }, me = /* @__PURE__ */ P({
672
- __name: "LangPicker",
673
- props: /* @__PURE__ */ ee({
674
- locales: { default: () => Object.keys(C) }
675
- }, {
676
- modelValue: {},
677
- modelModifiers: {}
678
- }),
679
- emits: ["update:modelValue"],
680
- setup(e) {
681
- const { config: t } = Ee(), { t: n } = E(), r = e, i = te(e, "modelValue"), d = N(() => {
682
- const s = (r.locales || []).filter((l) => C[l]).map((l) => C[l]);
683
- return s.length > 0 ? s : Object.values(C);
684
- });
685
- return (s, l) => (u(), h(re, null, {
686
- default: o(() => [
687
- a(ot, {
688
- color: "white",
689
- elevation: "0"
690
- }, {
691
- default: o(() => [
692
- g("h4", Ct, m(_(n)("LangPicker.title")), 1),
693
- Z(s.$slots, "toolbar-right")
694
- ]),
695
- _: 3
696
- }),
697
- (u(!0), k(V, null, x(d.value, (c) => (u(), h(A, {
698
- class: $(["ml-3", i.value === c.code ? "bg-grey-lighten-4" : void 0]),
699
- key: c.name,
700
- link: "",
701
- onClick: (p) => i.value = c.code
702
- }, {
703
- default: o(() => [
704
- a(W, {
705
- image: `https://flagcdn.com/h60/${c.countryCode.toLowerCase()}.png`
706
- }, null, 8, ["image"]),
707
- g("span", {
708
- class: $(["ml-4", _(t).lang === c.code ? "font-weight-bold" : ""])
709
- }, m(c.name), 3)
710
- ]),
711
- _: 2
712
- }, 1032, ["class", "onClick"]))), 128))
713
- ]),
714
- _: 3
715
- }));
716
- }
717
- });
718
- function q(e) {
719
- const t = e;
720
- t.__i18n = t.__i18n || [], t.__i18n.push({
721
- locale: "",
722
- resource: {
723
- "en-US": {
724
- LangPicker: {
725
- title: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Select your language" } }
726
- }
727
- },
728
- "fr-FR": {
729
- LangPicker: {
730
- title: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Sélectionnez votre langue" } }
731
- }
732
- },
733
- "de-DE": {
734
- LangPicker: {
735
- title: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Wähle deine Sprache" } }
736
- }
737
- },
738
- "es-ES": {
739
- LangPicker: {
740
- title: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Selecciona tu idioma" } }
741
- }
742
- },
743
- "it-IT": {
744
- LangPicker: {
745
- title: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Seleziona la tua lingua" } }
746
- }
747
- },
748
- "nl-NL": {
749
- LangPicker: {
750
- title: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Selecteer uw taal" } }
751
- }
752
- },
753
- "pt-PT": {
754
- LangPicker: {
755
- title: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Selecione o seu idioma" } }
756
- }
757
- }
758
- }
759
- });
760
- }
761
- typeof q == "function" && q(me);
762
- const Pt = /* @__PURE__ */ P({
763
- __name: "LangPickerBtn",
764
- props: /* @__PURE__ */ ee({
765
- locales: {},
766
- elevation: {}
767
- }, {
768
- modelValue: {},
769
- modelModifiers: {}
770
- }),
771
- emits: ["update:modelValue"],
772
- setup(e) {
773
- const t = te(e, "modelValue"), n = H(null), { $dialogAttach: r } = Ge(n), i = H(!1);
774
- function d() {
775
- i.value = !1;
776
- }
777
- return Te(t, () => {
778
- t.value && (i.value = !1);
779
- }), (s, l) => (u(), k("div", {
780
- ref_key: "root",
781
- ref: n
782
- }, [
783
- a(ce, {
784
- modelValue: i.value,
785
- "onUpdate:modelValue": l[1] || (l[1] = (c) => i.value = c),
786
- "max-width": "290",
787
- attach: _(r)
788
- }, {
789
- activator: o(({ props: c }) => [
790
- a(w, ae({
791
- class: `elevation-${s.elevation} rounded-circle`,
792
- color: "primary",
793
- variant: t.value ? "text" : "flat",
794
- size: "x-small",
795
- icon: "",
796
- height: "32",
797
- width: "32"
798
- }, c), {
799
- default: o(() => [
800
- a(W, { style: { overflow: "hidden" } }, {
801
- default: o(() => [
802
- t.value ? (u(), h(F, {
803
- key: 0,
804
- src: `https://flagcdn.com/h60/${_(C)[t.value].countryCode.toLowerCase()}.png`,
805
- srcset: `https://flagcdn.com/h80/${_(C)[t.value].countryCode.toLowerCase()}.png 2x,
806
- https://flagcdn.com/h120/${_(C)[t.value].countryCode.toLowerCase()}.png 3x`
807
- }, null, 8, ["src", "srcset"])) : (u(), h(z, {
808
- key: 1,
809
- color: "dark"
810
- }, {
811
- default: o(() => l[2] || (l[2] = [
812
- y(" fas fa-globe ", -1)
813
- ])),
814
- _: 1,
815
- __: [2]
816
- }))
817
- ]),
818
- _: 1
819
- })
820
- ]),
821
- _: 2
822
- }, 1040, ["class", "variant"])
823
- ]),
824
- default: o(() => [
825
- a(me, {
826
- modelValue: t.value,
827
- "onUpdate:modelValue": l[0] || (l[0] = (c) => t.value = c),
828
- locales: s.locales
829
- }, {
830
- "toolbar-right": o(() => [
831
- a(He),
832
- a(w, {
833
- class: "mx-1",
834
- icon: "",
835
- variant: "text",
836
- size: "x-small",
837
- onClick: d
838
- }, {
839
- default: o(() => [
840
- a(z, { color: "dark" }, {
841
- default: o(() => l[3] || (l[3] = [
842
- y(" fas fa-times ", -1)
843
- ])),
844
- _: 1,
845
- __: [3]
846
- })
847
- ]),
848
- _: 1
849
- })
850
- ]),
851
- _: 1
852
- }, 8, ["modelValue", "locales"])
853
- ]),
854
- _: 1
855
- }, 8, ["modelValue", "attach"])
856
- ], 512));
857
- }
858
- }), _t = /* @__PURE__ */ T(Pt, [["__scopeId", "data-v-78f64f4b"]]);
859
- var S = /* @__PURE__ */ ((e) => (e.Top = "top", e.Bottom = "bottom", e.Left = "left", e.Right = "right", e))(S || {});
860
- const Vt = {
861
- block: {
862
- default: !1,
863
- type: Boolean
864
- },
865
- color: {
866
- default: "secondary",
867
- type: String
868
- },
869
- compact: {
870
- default: !1,
871
- type: Boolean
872
- },
873
- direction: {
874
- default: "top",
875
- type: String
876
- }
877
- }, ge = P({
878
- components: {
879
- CurrencyPickerBtn: kt,
880
- CurrencyPickerDialog: fe,
881
- LangPickerBtn: _t
882
- },
883
- computed: {
884
- activeCurrency() {
885
- return B[this.config.currency];
886
- },
887
- langPickerModel: {
888
- get() {
889
- return this.$i18n.locale;
890
- },
891
- set(e) {
892
- Me(this.config, e, this.$eventBus);
893
- }
894
- },
895
- transition() {
896
- switch (this.direction) {
897
- case S.Top:
898
- return "slide-y-reverse-transition";
899
- case S.Bottom:
900
- return "slide-y-transition";
901
- case S.Left:
902
- return "slide-x-reverse-transition";
903
- case S.Right:
904
- return "slide-x-transition";
905
- case void 0:
906
- default:
907
- return "slide-y-transition";
908
- }
909
- }
910
- },
911
- data() {
912
- return {
913
- LOCALES: C,
914
- currencyPickerDialog: !1
915
- };
916
- },
917
- methods: {
918
- onCurrencyPickerBtnClicked() {
919
- this.currencyPickerDialog = !0;
920
- }
921
- },
922
- mixins: [
923
- Ze({
924
- fallbackValue: !1,
925
- propsName: "compact"
926
- })
927
- ],
928
- name: "PreferencesMenu",
929
- props: Vt,
930
- setup() {
931
- const { t: e } = E();
932
- return {
933
- t: e
934
- };
935
- }
936
- });
937
- function K(e) {
938
- const t = e;
939
- t.__i18n = t.__i18n || [], t.__i18n.push({
940
- locale: "",
941
- resource: {
942
- "en-US": {
943
- PreferencesMenu: {
944
- title: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Pick your language and currency" } }
945
- }
946
- },
947
- "fr-FR": {
948
- PreferencesMenu: {
949
- title: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Choisissez votre langue et votre devise" } }
950
- }
951
- },
952
- "de-DE": {
953
- PreferencesMenu: {
954
- title: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Wähle deine Sprache und Währung" } }
955
- }
956
- },
957
- "es-ES": {
958
- PreferencesMenu: {
959
- title: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Elige tu idioma y divisa" } }
960
- }
961
- },
962
- "it-IT": {
963
- PreferencesMenu: {
964
- title: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Scegli la tua lingua e valuta" } }
965
- }
966
- },
967
- "nl-NL": {
968
- PreferencesMenu: {
969
- title: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Kies je taal en valuta" } }
970
- }
971
- },
972
- "pt-PT": {
973
- PreferencesMenu: {
974
- title: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Escolha o seu idioma e moeda" } }
975
- }
976
- }
977
- }
978
- });
979
- }
980
- const St = { key: 0 }, Lt = { class: "pr-1" }, $t = { key: 1 };
981
- function wt(e, t, n, r, i, d) {
982
- const s = L("CurrencyPickerBtn"), l = L("LangPickerBtn"), c = L("CurrencyPickerDialog");
983
- return e.parsedCompact ? (u(), k("div", St, [
984
- a(qe, {
985
- "content-class": "elevation-0",
986
- elevation: "0",
987
- location: e.direction,
988
- transition: e.transition
989
- }, {
990
- activator: o(({ props: p }) => [
991
- a(w, ae({
992
- block: e.block,
993
- class: "elevation-0 px-1",
994
- color: e.color,
995
- size: "small"
996
- }, p, { style: { "max-width": "62px", width: "62px" } }), {
997
- default: o(() => [
998
- g("small", Lt, m(e.activeCurrency.code) + " / ", 1),
999
- a(W, { size: "16" }, {
1000
- default: o(() => [
1001
- a(F, {
1002
- "max-height": "16",
1003
- "max-width": "16",
1004
- src: `https://flagcdn.com/h60/${e.LOCALES[e.langPickerModel].countryCode.toLowerCase()}.png`,
1005
- srcset: `https://flagcdn.com/h80/${e.LOCALES[e.langPickerModel].countryCode.toLowerCase()}.png 2x,
1006
- https://flagcdn.com/h120/${e.LOCALES[e.langPickerModel].countryCode.toLowerCase()}.png 3x`
1007
- }, null, 8, ["src", "srcset"])
1008
- ]),
1009
- _: 1
1010
- })
1011
- ]),
1012
- _: 2
1013
- }, 1040, ["block", "color"])
1014
- ]),
1015
- default: o(() => [
1016
- a(ie, {
1017
- elevation: "0",
1018
- class: "bg-transparent"
1019
- }, {
1020
- default: o(() => [
1021
- a(Je, { class: "px-3" }, {
1022
- default: o(() => [
1023
- a(b, null, {
1024
- default: o(() => [
1025
- a(f, { class: "d-flex justify-center" }, {
1026
- default: o(() => [
1027
- a(s, {
1028
- color: e.color,
1029
- elevation: "7",
1030
- onClick: e.onCurrencyPickerBtnClicked
1031
- }, null, 8, ["color", "onClick"])
1032
- ]),
1033
- _: 1
1034
- })
1035
- ]),
1036
- _: 1
1037
- }),
1038
- a(b, { dense: "" }, {
1039
- default: o(() => [
1040
- a(f, { class: "d-flex justify-center" }, {
1041
- default: o(() => [
1042
- a(l, {
1043
- modelValue: e.langPickerModel,
1044
- "onUpdate:modelValue": t[0] || (t[0] = (p) => e.langPickerModel = p),
1045
- elevation: "7",
1046
- locales: e.config.locales
1047
- }, null, 8, ["modelValue", "locales"])
1048
- ]),
1049
- _: 1
1050
- })
1051
- ]),
1052
- _: 1
1053
- })
1054
- ]),
1055
- _: 1
1056
- })
1057
- ]),
1058
- _: 1
1059
- })
1060
- ]),
1061
- _: 1
1062
- }, 8, ["location", "transition"]),
1063
- a(c, {
1064
- modelValue: e.currencyPickerDialog,
1065
- "onUpdate:modelValue": t[1] || (t[1] = (p) => e.currencyPickerDialog = p)
1066
- }, null, 8, ["modelValue"])
1067
- ])) : (u(), k("div", $t, [
1068
- a(s, {
1069
- class: "d-inline-block",
1070
- color: e.color,
1071
- dialog: ""
1072
- }, null, 8, ["color"]),
1073
- t[3] || (t[3] = g("span", { class: "pr-1" }, null, -1)),
1074
- a(l, {
1075
- modelValue: e.langPickerModel,
1076
- "onUpdate:modelValue": t[2] || (t[2] = (p) => e.langPickerModel = p),
1077
- class: "d-inline-block",
1078
- locales: e.config.locales
1079
- }, null, 8, ["modelValue", "locales"])
1080
- ]));
1081
- }
1082
- typeof K == "function" && K(ge);
1083
- const Mt = /* @__PURE__ */ T(ge, [["render", wt], ["__scopeId", "data-v-dd3c6869"]]);
1084
- be("css/revolugo.preferencesmenu.7UfG9ius.css");
1085
- export {
1086
- kt as C,
1087
- _t as L,
1088
- Mt as P,
1089
- ot as V,
1090
- me as _,
1091
- Ze as a,
1092
- S as b,
1093
- bt as c,
1094
- Qe as d,
1095
- mt as e,
1096
- Vt as p
1097
- };
1098
- //# sourceMappingURL=revolugo.preferencesmenu.BjKg1-Wm.min.js.map