@revolugo/elements 6.9.0-rc.5 → 6.9.1-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.
- package/dist/css/fonts.css +1 -1
- package/dist/css/revolugo.cancellationpoliciesbadge.BCmMv5CR.css +1 -0
- package/dist/css/revolugo.index.ClC0OVqq.css +5 -0
- package/dist/css/{revolugo.vtoolbar.BZert82L.css → revolugo.preferencesmenu.7UfG9ius.css} +1 -1
- package/dist/css/{revolugo.webcomponentwrapper.cFJPP6Rp.css → revolugo.webcomponentwrapper.C3K3E5wv.css} +1 -1
- package/dist/index.es.min.js +2 -1
- package/dist/index.es.min.js.map +1 -1
- package/dist/index.min.js +1 -1
- package/dist/index.min.js.map +1 -1
- package/dist/revolugo.banktransferdetails.CnMNY-vM.min.js +37 -0
- package/dist/revolugo.bookingdetailssidebar.cluL06at.min.js +38 -0
- package/dist/revolugo.bookingmanager.BI9tgv3k.min.js +25 -0
- package/dist/revolugo.cancellationpoliciesbadge.1AYTHxud.min.js +25 -0
- package/dist/revolugo.cancellationpoliciesbadge.props.BzZm3aB9.min.js +30835 -0
- package/dist/revolugo.cancellationpolicieslist.CNVuYPJC.min.js +25 -0
- package/dist/revolugo.creditcardform.CBJnfym8.min.js +25 -0
- package/dist/revolugo.creditcardpayment.B60xJsLL.min.js +25 -0
- package/dist/revolugo.currencypickerbtn.lDiTXXJ-.min.js +25 -0
- package/dist/revolugo.fastbookingflow.CqYnDU9L.min.js +35 -0
- package/dist/revolugo.fullbookingflow.BP8qSHgZ.min.js +25 -0
- package/dist/revolugo.hoteldescriptionview.DQ9tuFqp.min.js +25 -0
- package/dist/revolugo.hotelofferlist.DAbFLxgC.min.js +25 -0
- package/dist/revolugo.hoteloffersearchmenu.CpLjZ82D.min.js +73 -0
- package/dist/revolugo.hoteloffersmap.pwDQ8BlF.min.js +25 -0
- package/dist/revolugo.hoteloffersview.BqMLmokf.min.js +20 -0
- package/dist/revolugo.hotelroomofferlist.CfP85DfR.min.js +25 -0
- package/dist/revolugo.hotelroomoffersbookingflow.ZegZEQXf.min.js +25 -0
- package/dist/revolugo.hotelroomoffersearchmenu.Bl_kCJ7s.min.js +25 -0
- package/dist/revolugo.hotelroomoffersview.ViCNFb0T.min.js +25 -0
- package/dist/revolugo.index.CpH_RNjS.min.js +106 -0
- package/dist/{revolugo.index.wc.B5w57MVj.min.js → revolugo.index.wc.DuPB3gwB.min.js} +4139 -4166
- package/dist/revolugo.langpickerbtn.DieF3DBF.min.js +30 -0
- package/dist/revolugo.min.js +1 -1
- package/dist/revolugo.prebookform.CEyz9Sgq.min.js +25 -0
- package/dist/revolugo.preferencesmenu.BjKg1-Wm.min.js +1098 -0
- package/dist/revolugo.preferencesmenu.BxFixX46.min.js +24 -0
- package/dist/revolugo.roominglisteditor.CAVBmDjU.min.js +25 -0
- package/dist/revolugo.storybooktoolbar.Jn8CsV1b.min.js +839 -0
- package/dist/revolugo.termsandconditions.iMzLEEgE.min.js +24 -0
- package/dist/revolugo.webcomponentwrapper.C4AURctg.min.js +28593 -0
- package/package.json +5 -5
- package/dist/css/revolugo.bdaterangepicker.OLspTh_0.css +0 -1
- package/dist/css/revolugo.bhoteloffersfilterbar.BebBKpCh.css +0 -1
- package/dist/css/revolugo.bhotelroomsdetails.c1M8WEQ1.css +0 -1
- package/dist/css/revolugo.bimagecarousel.B2SxWMbZ.css +0 -1
- package/dist/css/revolugo.bookingdetailssidebar.CNP_D5F3.css +0 -1
- package/dist/css/revolugo.bstarrating.CPHKEfup.css +0 -1
- package/dist/css/revolugo.btag.T7X_iIkW.css +0 -1
- package/dist/css/revolugo.cancellationpoliciesbadge.BLInUr3-.css +0 -1
- package/dist/css/revolugo.creditcardform.DWne0Lnv.css +0 -1
- package/dist/css/revolugo.creditcardpayment.D2PE5FCt.css +0 -1
- package/dist/css/revolugo.fullbookingflow.Bm8JAQF7.css +0 -1
- package/dist/css/revolugo.hoteldescriptionview.B-RiiuPY.css +0 -1
- package/dist/css/revolugo.hotelofferlist.BkctzTMI.css +0 -1
- package/dist/css/revolugo.hoteloffersearchmenuui.ZbUh8ba2.css +0 -1
- package/dist/css/revolugo.hoteloffersmap.Z5DFtK0_.css +0 -1
- package/dist/css/revolugo.hoteloffersview.CLbnSww6.css +0 -1
- package/dist/css/revolugo.hotelroomofferlist.D8JlZt_N.css +0 -1
- package/dist/css/revolugo.hotelroomoffersbookingflow.LHa5iHB7.css +0 -1
- package/dist/css/revolugo.index.DK7d_h6O.css +0 -1
- package/dist/css/revolugo.index.XNPQF1ia.css +0 -5
- package/dist/css/revolugo.langpickerbtn.BGnattUJ.css +0 -1
- package/dist/css/revolugo.prebookform.DmCR7hLv.css +0 -1
- package/dist/css/revolugo.preferencesmenu.fPv_7j-1.css +0 -1
- package/dist/css/revolugo.termsandconditions.D8IMR9da.css +0 -1
- package/dist/css/revolugo.vautocomplete.CuVjyvcC.css +0 -1
- package/dist/css/revolugo.vbadge.C45eZpxy.css +0 -1
- package/dist/css/revolugo.vbtn.DpMO1Ky2.css +0 -1
- package/dist/css/revolugo.vcard.TERzfknI.css +0 -1
- package/dist/css/revolugo.vcheckboxbtn.Bp_BNQWb.css +0 -1
- package/dist/css/revolugo.vdialog.DwTSAOeg.css +0 -1
- package/dist/css/revolugo.vdivider.CTbbZwnv.css +0 -1
- package/dist/css/revolugo.vexpansionpanels.RsCANmDP.css +0 -1
- package/dist/css/revolugo.vicon.eIkh7vVK.css +0 -1
- package/dist/css/revolugo.vinput.BPiFMorL.css +0 -1
- package/dist/css/revolugo.vlabel.BvKaKg7Y.css +0 -1
- package/dist/css/revolugo.vlist.-Y4qkukF.css +0 -1
- package/dist/css/revolugo.vmenu.DvKwEp1j.css +0 -1
- package/dist/css/revolugo.vselect.C5CKHFYB.css +0 -1
- package/dist/css/revolugo.vsheet.Dmcoj8cr.css +0 -1
- package/dist/css/revolugo.vskeletonloader.BlK8uFkX.css +0 -1
- package/dist/css/revolugo.vslidegroup.ECiLCEE9.css +0 -1
- package/dist/css/revolugo.vsnackbar.CCfuo3ao.css +0 -1
- package/dist/css/revolugo.vtextarea.Dxy6uSvm.css +0 -1
- package/dist/css/revolugo.vtextfield.BIH_AWWP.css +0 -1
- package/dist/css/revolugo.vtooltip.BHXJTQ4V.css +0 -1
- package/dist/css/revolugo.vwindowitem.CWBhiE_Y.css +0 -1
- package/dist/revolugo._baseiteratee.BNTrudNz.min.js +0 -247
- package/dist/revolugo.banktransferdetails.CSBeZCMH.min.js +0 -373
- package/dist/revolugo.bdaterangepicker.DxjM2ZhP.min.js +0 -8327
- package/dist/revolugo.bformattedamount.vue_vue_type_script_setup_true_lang.6MmXQngv.min.js +0 -143
- package/dist/revolugo.bhoteloffersfilterbar.BMSggMNQ.min.js +0 -4901
- package/dist/revolugo.bhotelroomsdetails.Dy58ap6y.min.js +0 -965
- package/dist/revolugo.bimagecarousel.D2kDC3SL.min.js +0 -566
- package/dist/revolugo.bookingdetailssidebar.D_T2s2ef.min.js +0 -24
- package/dist/revolugo.bookingdetailssidebar.z6-uHtpz.min.js +0 -867
- package/dist/revolugo.bookingmanager.9jQBXiSg.min.js +0 -1755
- package/dist/revolugo.bpricesummaryskeleton.vue_vue_type_script_setup_true_lang.ByRHbTSk.min.js +0 -66
- package/dist/revolugo.bstarrating.vue_vue_type_script_setup_true_lang.CDrVermB.min.js +0 -570
- package/dist/revolugo.btag.DeY2USse.min.js +0 -375
- package/dist/revolugo.cancellationpoliciesbadge.B9nrlzWh.min.js +0 -198
- package/dist/revolugo.cancellationpoliciesbadge.iy6w5cCy.min.js +0 -28
- package/dist/revolugo.cancellationpolicieslist.CuRO2YGE.min.js +0 -25
- package/dist/revolugo.cancellationpolicieslist.jzFe1dFe.min.js +0 -148
- package/dist/revolugo.cancellationpolicieslist.props.s6oWxIxG.min.js +0 -21
- package/dist/revolugo.case-transformers.CLDyhumY.min.js +0 -123
- package/dist/revolugo.common.D-l8b0V5.min.js +0 -10
- package/dist/revolugo.creditcardform.BLt4RL8u.min.js +0 -24
- package/dist/revolugo.creditcardform.BSipIYOP.min.js +0 -2148
- package/dist/revolugo.creditcardpayment.DGBEaBVo.min.js +0 -885
- package/dist/revolugo.creditcardpayment.ri5O9Y0R.min.js +0 -24
- package/dist/revolugo.currencypicker.BHxj0ske.min.js +0 -328
- package/dist/revolugo.currencypickerbtn.DkGwNDrZ.min.js +0 -24
- package/dist/revolugo.currencypickerbtn.WiV6iGHa.min.js +0 -157
- package/dist/revolugo.dates.CSTMvLSu.min.js +0 -31
- package/dist/revolugo.defaultsdeep.BDzCei18.min.js +0 -104
- package/dist/revolugo.dialog-attach.Csh39Lda.min.js +0 -27
- package/dist/revolugo.dialog-transition.i0LvwiKa.min.js +0 -111
- package/dist/revolugo.fastbookingflow.B8FSXUnJ.min.js +0 -34
- package/dist/revolugo.forwardrefs.VVhh1qV3.min.js +0 -70
- package/dist/revolugo.fullbookingflow.8C6zgp-h.min.js +0 -429
- package/dist/revolugo.hotel-offer-request.7ONhRsN6.min.js +0 -98
- package/dist/revolugo.hoteldescriptionview.C0xUtXux.min.js +0 -24
- package/dist/revolugo.hoteldescriptionview.aN-zXtyj.min.js +0 -2738
- package/dist/revolugo.hotelofferitemlayout.vue_vue_type_script_setup_true_lang.CtA2RbME.min.js +0 -239
- package/dist/revolugo.hotelofferlist.BvKGfilp.min.js +0 -24
- package/dist/revolugo.hotelofferlist.DfVSA0cI.min.js +0 -5640
- package/dist/revolugo.hotelofferrequestcreator.props.BeQuCTZy.min.js +0 -44
- package/dist/revolugo.hoteloffersearchmenu.DifwQFnl.min.js +0 -202
- package/dist/revolugo.hoteloffersearchmenuui.BxtpoR6c.min.js +0 -829
- package/dist/revolugo.hoteloffersmap.5TZ3ihCX.min.js +0 -8330
- package/dist/revolugo.hoteloffersmap.9oE_G8tN.min.js +0 -24
- package/dist/revolugo.hoteloffersview.BLO25-H2.min.js +0 -19
- package/dist/revolugo.hoteloffersview.CagWc49U.min.js +0 -616
- package/dist/revolugo.hotelroomofferlist.BujulIIq.min.js +0 -24
- package/dist/revolugo.hotelroomofferlist.aB6E2Yma.min.js +0 -2799
- package/dist/revolugo.hotelroomofferrequestcreator.props.ABMFjBSt.min.js +0 -171
- package/dist/revolugo.hotelroomoffersbookingflow.CZu1UUFz.min.js +0 -1281
- package/dist/revolugo.hotelroomoffersearchmenu.DD9opK9F.min.js +0 -231
- package/dist/revolugo.hotelroomoffersearchmenu.JelxSD8z.min.js +0 -25
- package/dist/revolugo.hotelroomoffersview.D-XmaDjJ.min.js +0 -24
- package/dist/revolugo.hotelroomoffersview.Dccr--hS.min.js +0 -290
- package/dist/revolugo.index.CVDLehFP.min.js +0 -1232
- package/dist/revolugo.index.DZF1zb-Q.min.js +0 -67
- package/dist/revolugo.langpicker.UuyPueP1.min.js +0 -99
- package/dist/revolugo.langpickerbtn.Cfth49Hz.min.js +0 -29
- package/dist/revolugo.langpickerbtn.CqViAaPH.min.js +0 -131
- package/dist/revolugo.parsed-props.CgT6zw61.min.js +0 -40
- package/dist/revolugo.pathify.Dd900P8D.min.js +0 -36
- package/dist/revolugo.prebookform.BRuqvdxQ.min.js +0 -1527
- package/dist/revolugo.prebookform.CMH57Wzk.min.js +0 -24
- package/dist/revolugo.preferencesmenu.1aT8mPop.min.js +0 -261
- package/dist/revolugo.preferencesmenu.DNoUuKkX.min.js +0 -24
- package/dist/revolugo.roominglisteditor.BILaUlMP.min.js +0 -24
- package/dist/revolugo.roominglisteditor.xmopqjqP.min.js +0 -385
- package/dist/revolugo.rounded.AHSatDl-.min.js +0 -68
- package/dist/revolugo.ssrboot.DeMi_oOP.min.js +0 -18
- package/dist/revolugo.storybooktoolbar.BcvgDyg2.min.js +0 -881
- package/dist/revolugo.termsandconditions.CGKBy5-o.min.js +0 -23
- package/dist/revolugo.termsandconditions.CzWDtP8F.min.js +0 -404
- package/dist/revolugo.use-breakpoint-service.Bxdx9aK_.min.js +0 -39
- package/dist/revolugo.use-dialog-attach.Dkx9tSlr.min.js +0 -16
- package/dist/revolugo.use-html-element.B2hxGZaS.min.js +0 -11
- package/dist/revolugo.vautocomplete.pI69lWXt.min.js +0 -445
- package/dist/revolugo.vbadge.BcMYa50_.min.js +0 -112
- package/dist/revolugo.vbtn.U2MKWRpI.min.js +0 -398
- package/dist/revolugo.vcard.C9RZUnnv.min.js +0 -313
- package/dist/revolugo.vcheckboxbtn.DSYfop2k.min.js +0 -478
- package/dist/revolugo.vdialog.BALM4jpJ.min.js +0 -133
- package/dist/revolugo.vdivider.B9ui--a3.min.js +0 -77
- package/dist/revolugo.vexpansionpanels.DiIu3_Jv.min.js +0 -262
- package/dist/revolugo.vform.Dl-DC485.min.js +0 -46
- package/dist/revolugo.vicon.DxOHot3-.min.js +0 -105
- package/dist/revolugo.vinput.CswQS7NJ.min.js +0 -463
- package/dist/revolugo.vlabel._ZQf_XFQ.min.js +0 -48
- package/dist/revolugo.vlist.DJFHbM-9.min.js +0 -1299
- package/dist/revolugo.vmenu.D6TfhAZa.min.js +0 -145
- package/dist/revolugo.vselect.B1y6cURA.min.js +0 -660
- package/dist/revolugo.vsheet.CwVdRlGQ.min.js +0 -72
- package/dist/revolugo.vskeletonloader.CE1Y41vH.min.js +0 -136
- package/dist/revolugo.vslidegroup.g9dn2dsC.min.js +0 -325
- package/dist/revolugo.vsnackbar.D8bdniAR.min.js +0 -198
- package/dist/revolugo.vspacer.eZ29eow0.min.js +0 -7
- package/dist/revolugo.vtextarea.B3elGOHD.min.js +0 -2092
- package/dist/revolugo.vtextfield.DE6UHY3P.min.js +0 -501
- package/dist/revolugo.vtoolbar.CSb5X7Fx.min.js +0 -180
- package/dist/revolugo.vtooltip.BQNsazxP.min.js +0 -89
- package/dist/revolugo.vwindowitem.Dukm7VML.min.js +0 -317
- package/dist/revolugo.watch-list.Crski9oR.min.js +0 -16
- package/dist/revolugo.webcomponentwrapper.9iqy4u1a.min.js +0 -2088
@@ -0,0 +1,1098 @@
|
|
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
|