@revolugo/elements 5.26.2-beta.9 → 5.26.2
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/index.es.min.js +2516 -1984
- package/dist/index.es.min.js.map +1 -1
- package/dist/index.min.js +40 -10
- package/dist/index.min.js.map +1 -1
- package/dist/{revolugo.banktransferdetails.DocOw_1c.min.js → revolugo.banktransferdetails.DxzWSquz.min.js} +37 -33
- package/dist/{revolugo.bdaterangepicker.BfCLnYf4.min.js → revolugo.bdaterangepicker.DAOZptUO.min.js} +20 -20
- package/dist/{revolugo.bformattedamount.CphqBbVa.min.js → revolugo.bformattedamount.C0KLwzwl.min.js} +3 -3
- package/dist/{revolugo.bhotelroomsdetails.DqGJ2w9u.min.js → revolugo.bhotelroomsdetails.Z7i3IAGg.min.js} +13 -13
- package/dist/{revolugo.bhotelsearchbar.BK8hTfTf.min.js → revolugo.bhotelsearchbar.yigA_cAU.min.js} +19 -19
- package/dist/{revolugo.bookingdetailssidebar.DeVlYfpn.min.js → revolugo.bookingdetailssidebar.BVkbxa9s.min.js} +17 -17
- package/dist/{revolugo.bookingdetailssidebar.B593LGvp.min.js → revolugo.bookingdetailssidebar.DnzGhpqw.min.js} +6 -6
- package/dist/{revolugo.bookingmanager.CoZl8iLL.min.js → revolugo.bookingmanager.DwuWRxAd.min.js} +35 -35
- package/dist/{revolugo.bphoneinput.BxUu-ijr.min.js → revolugo.bphoneinput.H3ff5kTX.min.js} +37 -33
- package/dist/{revolugo.bpricesummaryskeleton.Dtg-xXRI.min.js → revolugo.bpricesummaryskeleton.hwCth_b2.min.js} +6 -6
- package/dist/{revolugo.breakpoint-service.DOI2pMPe.min.js → revolugo.breakpoint-service.BlEWjg4g.min.js} +3 -3
- package/dist/{revolugo.bstarrating.D3SX-Y_G.min.js → revolugo.bstarrating.Bz8C7CvH.min.js} +8 -8
- package/dist/{revolugo.btag.DLJO-aT6.min.js → revolugo.btag.DZN4j_hX.min.js} +9 -9
- package/dist/{revolugo.cancellationpoliciesbadge.D_0pbCAp.min.js → revolugo.cancellationpoliciesbadge.DD3sOfkX.min.js} +9 -9
- package/dist/{revolugo.cancellationpoliciesbadge.C8VP4uTt.min.js → revolugo.cancellationpoliciesbadge.DIm9l5NJ.min.js} +6 -6
- package/dist/{revolugo.cancellationpolicieslist.D1gpvf7i.min.js → revolugo.cancellationpolicieslist.DdvjNdDB.min.js} +3 -3
- package/dist/{revolugo.cancellationpolicieslist.BOgJKzJk.min.js → revolugo.cancellationpolicieslist.Yt8G1Lb0.min.js} +6 -6
- package/dist/{revolugo.common.CwuM5BCx.min.js → revolugo.common.BZH_Op12.min.js} +2 -2
- package/dist/{revolugo.creditcardform.bvLmN2Gb.min.js → revolugo.creditcardform.BI_FpSmL.min.js} +6 -6
- package/dist/{revolugo.creditcardform.CSujLNnM.min.js → revolugo.creditcardform.BayaCj7N.min.js} +14 -14
- package/dist/{revolugo.creditcardpayment.B84JmY-8.min.js → revolugo.creditcardpayment.02PN4MWk.min.js} +6 -6
- package/dist/{revolugo.creditcardpayment.BEHuehMJ.min.js → revolugo.creditcardpayment.DnTKJs-I.min.js} +34 -34
- package/dist/{revolugo.currencypicker.CFWpc8HP.min.js → revolugo.currencypicker.rla5Gh6r.min.js} +9 -9
- package/dist/{revolugo.currencypickerbtn.BrWkrEu_.min.js → revolugo.currencypickerbtn.BTEEO9t4.min.js} +11 -11
- package/dist/{revolugo.currencypickerbtn.CTKGs5cu.min.js → revolugo.currencypickerbtn.DVaUT3Sv.min.js} +6 -6
- package/dist/{revolugo.dialog-attach.UdO3NAXU.min.js → revolugo.dialog-attach.DCu6y0mp.min.js} +2 -2
- package/dist/{revolugo.fastbookingflow.BQbWB4Dg.min.js → revolugo.fastbookingflow.DRTH66_Y.min.js} +6 -6
- package/dist/{revolugo.fullbookingflow.JpT0NatO.min.js → revolugo.fullbookingflow.DZeA_09f.min.js} +18 -18
- package/dist/{revolugo.hotel-offer.CZKaMpOK.min.js → revolugo.hotel-offer.BMV5LoO-.min.js} +17 -17
- package/dist/{revolugo.hoteldescriptionview.BW-zc1Gb.min.js → revolugo.hoteldescriptionview.CFVTwBfb.min.js} +267 -284
- package/dist/{revolugo.hoteldescriptionview.B9Yn63hn.min.js → revolugo.hoteldescriptionview.iGRk1gJK.min.js} +6 -6
- package/dist/{revolugo.hotelofferitemlayout.D9HQ7eD3.min.js → revolugo.hotelofferitemlayout.B47vwC31.min.js} +10 -10
- package/dist/revolugo.hotelofferlist.BVA1qSK4.min.js +3618 -0
- package/dist/{revolugo.hotelofferlist.DYCl-oA5.min.js → revolugo.hotelofferlist.CH8RSatG.min.js} +6 -6
- package/dist/{revolugo.hotelofferrequestcreator.CRa8Vkk3.min.js → revolugo.hotelofferrequestcreator.DRaWs0Tl.min.js} +6 -6
- package/dist/{revolugo.hoteloffersearchmenu.Bvy7ThBD.min.js → revolugo.hoteloffersearchmenu.BIC_Zl37.min.js} +6 -6
- package/dist/{revolugo.hoteloffersmap.Tvits78R.min.js → revolugo.hoteloffersmap.BNeU4Ckq.min.js} +33 -33
- package/dist/{revolugo.hoteloffersmap.Be-WCioi.min.js → revolugo.hoteloffersmap.kwmpn7NH.min.js} +6 -6
- package/dist/{revolugo.hoteloffersview.CecgCs3H.min.js → revolugo.hoteloffersview.DCWgpMu6.min.js} +6 -6
- package/dist/{revolugo.hoteloffersview.Brgrm79v.min.js → revolugo.hoteloffersview.Dv_Q1e1i.min.js} +19 -19
- package/dist/{revolugo.hotelroomofferlist.Nd4YwBo_.min.js → revolugo.hotelroomofferlist.CRfe1uw4.min.js} +6 -6
- package/dist/{revolugo.hotelroomofferlist.C8FRyEq_.min.js → revolugo.hotelroomofferlist.jL0zho9e.min.js} +53 -53
- package/dist/{revolugo.hotelroomofferrequestcreator.B5lVTZZd.min.js → revolugo.hotelroomofferrequestcreator.CJQ2CdNw.min.js} +6 -6
- package/dist/{revolugo.hotelroomoffersbookingflow.i2t1vPgD.min.js → revolugo.hotelroomoffersbookingflow.BQQoJFTW.min.js} +19 -19
- package/dist/{revolugo.hotelroomoffersearchmenu.CMsc-CNV.min.js → revolugo.hotelroomoffersearchmenu.DCPFjC0g.min.js} +4 -4
- package/dist/{revolugo.hotelroomoffersearchmenu.PApWToHT.min.js → revolugo.hotelroomoffersearchmenu.pEi8lzHy.min.js} +5 -5
- package/dist/{revolugo.hotelroomoffersview.2ltsp5_R.min.js → revolugo.hotelroomoffersview.CwvF2Lg9.min.js} +6 -6
- package/dist/{revolugo.hotelroomoffersview.Cw6aKuIO.min.js → revolugo.hotelroomoffersview.mQwWZld8.min.js} +12 -12
- package/dist/{revolugo.i18n.BEhtXca3.min.js → revolugo.i18n.qxNwIBzD.min.js} +2105 -2090
- package/dist/revolugo.index.BOaxC3qr.min.js +15 -0
- package/dist/{revolugo.index.C8Z7BwW8.min.js → revolugo.index.BPSLxDUk.min.js} +2 -2
- package/dist/{revolugo.index.mn1Z4_fN.min.js → revolugo.index.BzQBfwkV.min.js} +3 -3
- package/dist/{revolugo.index.vww3SoWt.min.js → revolugo.index.CNxUzw3a.min.js} +7 -7
- package/dist/{revolugo.index.CS2-Q-ND.min.js → revolugo.index.CYG3UDgo.min.js} +6 -6
- package/dist/{revolugo.index.B12-gJPR.min.js → revolugo.index.CfNhkdgc.min.js} +7 -7
- package/dist/{revolugo.index.CuzC7huw.min.js → revolugo.index.D6ZUh3QP.min.js} +10 -10
- package/dist/{revolugo.index.CJ17FP0k.min.js → revolugo.index.DD9JrpcI.min.js} +5 -5
- package/dist/{revolugo.index.Bm7Hekqn.min.js → revolugo.index.DP6aBKb1.min.js} +7 -7
- package/dist/{revolugo.index.B91957iL.min.js → revolugo.index.DqTSC2TR.min.js} +3 -3
- package/dist/{revolugo.index.5uzTM8jR.min.js → revolugo.index.Ii4kfDF9.min.js} +2 -2
- package/dist/{revolugo.index.Dp01frUM.min.js → revolugo.index.O87Oqb47.min.js} +2 -2
- package/dist/{revolugo.index.Dv25a8IA.min.js → revolugo.index.RS6IMZca.min.js} +4 -4
- package/dist/{revolugo.index.B8vp5hk7.min.js → revolugo.index.utQE_7Cl.min.js} +3 -3
- package/dist/{revolugo.langpicker.CBhHqEv3.min.js → revolugo.langpicker.uc5GlZAU.min.js} +7 -7
- package/dist/{revolugo.langpickerbtn.LR2vizK2.min.js → revolugo.langpickerbtn.BhRQdJ_p.min.js} +6 -6
- package/dist/{revolugo.langpickerbtn.CCFKqTpQ.min.js → revolugo.langpickerbtn.YGHO28He.min.js} +10 -10
- package/dist/revolugo.min.js +26 -26
- package/dist/{revolugo.parsed-height.DpcziUUJ.min.js → revolugo.parsed-height.B59lLeec.min.js} +105 -105
- package/dist/{revolugo.parsed-props.CQJFjK9a.min.js → revolugo.parsed-props.n7LUhO7L.min.js} +5 -5
- package/dist/{revolugo.prebookform.DGlhRyr3.min.js → revolugo.prebookform.B3J48Pkc.min.js} +29 -29
- package/dist/{revolugo.prebookform.BhFn4px0.min.js → revolugo.prebookform.CVh5dThF.min.js} +6 -6
- package/dist/{revolugo.revolugo-config.Cd_JnGq0.min.js → revolugo.revolugo-config.BDiLSGvv.min.js} +1370 -1124
- package/dist/{revolugo.roominglisteditor.eWCwVydd.min.js → revolugo.roominglisteditor.Chkqhc2Y.min.js} +6 -6
- package/dist/{revolugo.roominglisteditor.wX75dXlM.min.js → revolugo.roominglisteditor.Dkwuendx.min.js} +20 -20
- package/dist/{revolugo.sentry.DqPFRxU3.min.js → revolugo.sentry.BVrKAYI8.min.js} +499 -498
- package/dist/{revolugo.store.dZMoiQlF.min.js → revolugo.store.CLXQpFB9.min.js} +425 -393
- package/dist/{revolugo.storybooktoolbar.DnfXFFIc.min.js → revolugo.storybooktoolbar.ZyQvkGCl.min.js} +20 -20
- package/dist/{revolugo.termsandconditions.DLFKBpfw.min.js → revolugo.termsandconditions.ClSGaGKj.min.js} +4 -4
- package/dist/{revolugo.termsandconditions.Dfu_0rOp.min.js → revolugo.termsandconditions.DMPOujnj.min.js} +6 -6
- package/dist/revolugo.typed-mixins.Dz5yLoi0.min.js +8 -0
- package/dist/{revolugo.valert.88ZHPGhT.min.js → revolugo.valert.Dy_fVPQq.min.js} +7 -7
- package/dist/{revolugo.vautocomplete.WFeBr6qP.min.js → revolugo.vautocomplete.DfAUnP4D.min.js} +5 -5
- package/dist/{revolugo.vbadge.COTjzWmJ.min.js → revolugo.vbadge.D61vYgWe.min.js} +6 -6
- package/dist/{revolugo.vbtn.DO8W7N0r.min.js → revolugo.vbtn.Co1ZNQI6.min.js} +7 -7
- package/dist/{revolugo.vcard.gQH1l9-J.min.js → revolugo.vcard.gY3nOWdt.min.js} +6 -6
- package/dist/{revolugo.vdialog.B39hW_QQ.min.js → revolugo.vdialog.BS-urZDH.min.js} +11 -11
- package/dist/{revolugo.vexpansionpanelheader.ADoud6DV.min.js → revolugo.vexpansionpanelheader.DEWs0GBp.min.js} +8 -8
- package/dist/{revolugo.vform.721jx4in.min.js → revolugo.vform.BDMYpFXp.min.js} +5 -5
- package/dist/{revolugo.vinput.DHB-qqO8.min.js → revolugo.vinput.Cm7jTICX.min.js} +9 -9
- package/dist/{revolugo.vitemgroup.en0tJeuk.min.js → revolugo.vitemgroup.Cx2l6nP2.min.js} +7 -7
- package/dist/{revolugo.vlistitem.CUA8VxiW.min.js → revolugo.vlistitem.CFUhBC05.min.js} +8 -8
- package/dist/{revolugo.vmenu.CM59ObZV.min.js → revolugo.vmenu.BklgEHiC.min.js} +10 -10
- package/dist/{revolugo.vselect.CZT6j54N.min.js → revolugo.vselect.IUnGF2CT.min.js} +15 -15
- package/dist/{revolugo.vsheet.Ci8EFagN.min.js → revolugo.vsheet.CeC7JEVb.min.js} +6 -6
- package/dist/{revolugo.vskeletonloader.B8WWRpEn.min.js → revolugo.vskeletonloader.T0Sj67u2.min.js} +4 -4
- package/dist/{revolugo.vslidegroup.DZ44OZy2.min.js → revolugo.vslidegroup.Dt4KvG1W.min.js} +10 -10
- package/dist/{revolugo.vsnackbar.hQQeV8CP.min.js → revolugo.vsnackbar.2IsRhccK.min.js} +5 -5
- package/dist/{revolugo.vtextfield.uC2GWAXb.min.js → revolugo.vtextfield.ndSvyN0P.min.js} +12 -12
- package/dist/{revolugo.vtoolbar.CKpQ7I-2.min.js → revolugo.vtoolbar.hGub5RDG.min.js} +5 -5
- package/dist/{revolugo.vtooltip.vt1MeNsi.min.js → revolugo.vtooltip.yWMo-A7h.min.js} +7 -7
- package/dist/{revolugo.vuetify.CUwfJUZL.min.js → revolugo.vuetify.CCSPNwIH.min.js} +10 -10
- package/dist/{revolugo.watch-list.DZXZ9UBF.min.js → revolugo.watch-list.Bi8SNUJ6.min.js} +3 -3
- package/dist/{revolugo.webcomponentwrapper.BGRSC-LW.min.js → revolugo.webcomponentwrapper.Ct1w2wDx.min.js} +7 -7
- package/package.json +1 -1
- package/dist/revolugo.hotelofferlist.D-RL29DF.min.js +0 -4191
- package/dist/revolugo.index.8asECxdn.min.js +0 -15
- package/dist/revolugo.typed-mixins.CXF5T_Lk.min.js +0 -8
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { V as
|
|
3
|
-
import { a as
|
|
1
|
+
import { e as Ae, E as v, U as de, D as De } from "./revolugo.revolugo-config.BDiLSGvv.min.js";
|
|
2
|
+
import { V as b, d as k, c as he, o as ge, r as Le, u as ke, e as xe, a as ne, f as ie, M as Ue, s as F, h as qe } from "./revolugo.i18n.qxNwIBzD.min.js";
|
|
3
|
+
import { a as P } from "./revolugo.event-bus.Dmw4Ysj2.min.js";
|
|
4
4
|
/*!
|
|
5
5
|
* vuex v3.6.2
|
|
6
6
|
* (c) 2021 Evan You
|
|
7
7
|
* @license MIT
|
|
8
8
|
*/
|
|
9
|
-
function
|
|
9
|
+
function Ne(e) {
|
|
10
10
|
var t = Number(e.version.split(".")[0]);
|
|
11
11
|
if (t >= 2)
|
|
12
12
|
e.mixin({ beforeCreate: n });
|
|
@@ -21,23 +21,23 @@ function Ue(e) {
|
|
|
21
21
|
i.store ? this.$store = typeof i.store == "function" ? i.store() : i.store : i.parent && i.parent.$store && (this.$store = i.parent.$store);
|
|
22
22
|
}
|
|
23
23
|
}
|
|
24
|
-
var
|
|
25
|
-
function
|
|
26
|
-
|
|
24
|
+
var Be = typeof window < "u" ? window : typeof global < "u" ? global : {}, C = Be.__VUE_DEVTOOLS_GLOBAL_HOOK__;
|
|
25
|
+
function Ge(e) {
|
|
26
|
+
C && (e._devtoolHook = C, C.emit("vuex:init", e), C.on("vuex:travel-to-state", function(t) {
|
|
27
27
|
e.replaceState(t);
|
|
28
28
|
}), e.subscribe(function(t, r) {
|
|
29
|
-
|
|
29
|
+
C.emit("vuex:mutation", t, r);
|
|
30
30
|
}, { prepend: !0 }), e.subscribeAction(function(t, r) {
|
|
31
|
-
|
|
31
|
+
C.emit("vuex:action", t, r);
|
|
32
32
|
}, { prepend: !0 }));
|
|
33
33
|
}
|
|
34
|
-
function
|
|
34
|
+
function je(e, t) {
|
|
35
35
|
return e.filter(t)[0];
|
|
36
36
|
}
|
|
37
|
-
function
|
|
37
|
+
function Q(e, t) {
|
|
38
38
|
if (t === void 0 && (t = []), e === null || typeof e != "object")
|
|
39
39
|
return e;
|
|
40
|
-
var r =
|
|
40
|
+
var r = je(t, function(i) {
|
|
41
41
|
return i.original === e;
|
|
42
42
|
});
|
|
43
43
|
if (r)
|
|
@@ -47,21 +47,21 @@ function Y(e, t) {
|
|
|
47
47
|
original: e,
|
|
48
48
|
copy: n
|
|
49
49
|
}), Object.keys(e).forEach(function(i) {
|
|
50
|
-
n[i] =
|
|
50
|
+
n[i] = Q(e[i], t);
|
|
51
51
|
}), n;
|
|
52
52
|
}
|
|
53
|
-
function
|
|
53
|
+
function H(e, t) {
|
|
54
54
|
Object.keys(e).forEach(function(r) {
|
|
55
55
|
return t(e[r], r);
|
|
56
56
|
});
|
|
57
57
|
}
|
|
58
|
-
function
|
|
58
|
+
function Oe(e) {
|
|
59
59
|
return e !== null && typeof e == "object";
|
|
60
60
|
}
|
|
61
|
-
function
|
|
61
|
+
function Ve(e) {
|
|
62
62
|
return e && typeof e.then == "function";
|
|
63
63
|
}
|
|
64
|
-
function
|
|
64
|
+
function Ye(e, t) {
|
|
65
65
|
return function() {
|
|
66
66
|
return e(t);
|
|
67
67
|
};
|
|
@@ -70,8 +70,8 @@ var E = function(t, r) {
|
|
|
70
70
|
this.runtime = r, this._children = /* @__PURE__ */ Object.create(null), this._rawModule = t;
|
|
71
71
|
var n = t.state;
|
|
72
72
|
this.state = (typeof n == "function" ? n() : n) || {};
|
|
73
|
-
},
|
|
74
|
-
|
|
73
|
+
}, _e = { namespaced: { configurable: !0 } };
|
|
74
|
+
_e.namespaced.get = function() {
|
|
75
75
|
return !!this._rawModule.namespaced;
|
|
76
76
|
};
|
|
77
77
|
E.prototype.addChild = function(t, r) {
|
|
@@ -90,36 +90,36 @@ E.prototype.update = function(t) {
|
|
|
90
90
|
this._rawModule.namespaced = t.namespaced, t.actions && (this._rawModule.actions = t.actions), t.mutations && (this._rawModule.mutations = t.mutations), t.getters && (this._rawModule.getters = t.getters);
|
|
91
91
|
};
|
|
92
92
|
E.prototype.forEachChild = function(t) {
|
|
93
|
-
|
|
93
|
+
H(this._children, t);
|
|
94
94
|
};
|
|
95
95
|
E.prototype.forEachGetter = function(t) {
|
|
96
|
-
this._rawModule.getters &&
|
|
96
|
+
this._rawModule.getters && H(this._rawModule.getters, t);
|
|
97
97
|
};
|
|
98
98
|
E.prototype.forEachAction = function(t) {
|
|
99
|
-
this._rawModule.actions &&
|
|
99
|
+
this._rawModule.actions && H(this._rawModule.actions, t);
|
|
100
100
|
};
|
|
101
101
|
E.prototype.forEachMutation = function(t) {
|
|
102
|
-
this._rawModule.mutations &&
|
|
102
|
+
this._rawModule.mutations && H(this._rawModule.mutations, t);
|
|
103
103
|
};
|
|
104
|
-
Object.defineProperties(E.prototype,
|
|
105
|
-
var
|
|
104
|
+
Object.defineProperties(E.prototype, _e);
|
|
105
|
+
var w = function(t) {
|
|
106
106
|
this.register([], t, !1);
|
|
107
107
|
};
|
|
108
|
-
|
|
108
|
+
w.prototype.get = function(t) {
|
|
109
109
|
return t.reduce(function(r, n) {
|
|
110
110
|
return r.getChild(n);
|
|
111
111
|
}, this.root);
|
|
112
112
|
};
|
|
113
|
-
|
|
113
|
+
w.prototype.getNamespace = function(t) {
|
|
114
114
|
var r = this.root;
|
|
115
115
|
return t.reduce(function(n, i) {
|
|
116
116
|
return r = r.getChild(i), n + (r.namespaced ? i + "/" : "");
|
|
117
117
|
}, "");
|
|
118
118
|
};
|
|
119
|
-
|
|
120
|
-
|
|
119
|
+
w.prototype.update = function(t) {
|
|
120
|
+
Ee([], this.root, t);
|
|
121
121
|
};
|
|
122
|
-
|
|
122
|
+
w.prototype.register = function(t, r, n) {
|
|
123
123
|
var i = this;
|
|
124
124
|
n === void 0 && (n = !0);
|
|
125
125
|
var o = new E(r, n);
|
|
@@ -129,24 +129,24 @@ y.prototype.register = function(t, r, n) {
|
|
|
129
129
|
var s = this.get(t.slice(0, -1));
|
|
130
130
|
s.addChild(t[t.length - 1], o);
|
|
131
131
|
}
|
|
132
|
-
r.modules &&
|
|
132
|
+
r.modules && H(r.modules, function(a, c) {
|
|
133
133
|
i.register(t.concat(c), a, n);
|
|
134
134
|
});
|
|
135
135
|
};
|
|
136
|
-
|
|
136
|
+
w.prototype.unregister = function(t) {
|
|
137
137
|
var r = this.get(t.slice(0, -1)), n = t[t.length - 1], i = r.getChild(n);
|
|
138
138
|
i && i.runtime && r.removeChild(n);
|
|
139
139
|
};
|
|
140
|
-
|
|
140
|
+
w.prototype.isRegistered = function(t) {
|
|
141
141
|
var r = this.get(t.slice(0, -1)), n = t[t.length - 1];
|
|
142
142
|
return r ? r.hasChild(n) : !1;
|
|
143
143
|
};
|
|
144
|
-
function
|
|
144
|
+
function Ee(e, t, r) {
|
|
145
145
|
if (t.update(r), r.modules)
|
|
146
146
|
for (var n in r.modules) {
|
|
147
147
|
if (!t.getChild(n))
|
|
148
148
|
return;
|
|
149
|
-
|
|
149
|
+
Ee(
|
|
150
150
|
e.concat(n),
|
|
151
151
|
t.getChild(n),
|
|
152
152
|
r.modules[n]
|
|
@@ -155,41 +155,41 @@ function _e(e, t, r) {
|
|
|
155
155
|
}
|
|
156
156
|
var O, _ = function(t) {
|
|
157
157
|
var r = this;
|
|
158
|
-
t === void 0 && (t = {}), !O && typeof window < "u" && window.Vue &&
|
|
158
|
+
t === void 0 && (t = {}), !O && typeof window < "u" && window.Vue && Re(window.Vue);
|
|
159
159
|
var n = t.plugins;
|
|
160
160
|
n === void 0 && (n = []);
|
|
161
161
|
var i = t.strict;
|
|
162
|
-
i === void 0 && (i = !1), this._committing = !1, this._actions = /* @__PURE__ */ Object.create(null), this._actionSubscribers = [], this._mutations = /* @__PURE__ */ Object.create(null), this._wrappedGetters = /* @__PURE__ */ Object.create(null), this._modules = new
|
|
162
|
+
i === void 0 && (i = !1), this._committing = !1, this._actions = /* @__PURE__ */ Object.create(null), this._actionSubscribers = [], this._mutations = /* @__PURE__ */ Object.create(null), this._wrappedGetters = /* @__PURE__ */ Object.create(null), this._modules = new w(t), this._modulesNamespaceMap = /* @__PURE__ */ Object.create(null), this._subscribers = [], this._watcherVM = new O(), this._makeLocalGettersCache = /* @__PURE__ */ Object.create(null);
|
|
163
163
|
var o = this, s = this, a = s.dispatch, c = s.commit;
|
|
164
|
-
this.dispatch = function(l,
|
|
165
|
-
return a.call(o, l,
|
|
166
|
-
}, this.commit = function(l,
|
|
167
|
-
return c.call(o, l,
|
|
164
|
+
this.dispatch = function(l, h) {
|
|
165
|
+
return a.call(o, l, h);
|
|
166
|
+
}, this.commit = function(l, h, g) {
|
|
167
|
+
return c.call(o, l, h, g);
|
|
168
168
|
}, this.strict = i;
|
|
169
169
|
var f = this._modules.root.state;
|
|
170
|
-
|
|
171
|
-
return
|
|
170
|
+
q(this, f, [], this._modules.root), X(this, f), n.forEach(function(d) {
|
|
171
|
+
return d(r);
|
|
172
172
|
});
|
|
173
173
|
var u = t.devtools !== void 0 ? t.devtools : O.config.devtools;
|
|
174
|
-
u &&
|
|
175
|
-
},
|
|
176
|
-
|
|
174
|
+
u && Ge(this);
|
|
175
|
+
}, J = { state: { configurable: !0 } };
|
|
176
|
+
J.state.get = function() {
|
|
177
177
|
return this._vm._data.$$state;
|
|
178
178
|
};
|
|
179
|
-
|
|
179
|
+
J.state.set = function(e) {
|
|
180
180
|
};
|
|
181
181
|
_.prototype.commit = function(t, r, n) {
|
|
182
|
-
var i = this, o =
|
|
182
|
+
var i = this, o = x(t, r, n), s = o.type, a = o.payload, c = { type: s, payload: a }, f = this._mutations[s];
|
|
183
183
|
f && (this._withCommit(function() {
|
|
184
|
-
f.forEach(function(
|
|
185
|
-
|
|
184
|
+
f.forEach(function(d) {
|
|
185
|
+
d(a);
|
|
186
186
|
});
|
|
187
187
|
}), this._subscribers.slice().forEach(function(u) {
|
|
188
188
|
return u(c, i.state);
|
|
189
189
|
}));
|
|
190
190
|
};
|
|
191
191
|
_.prototype.dispatch = function(t, r) {
|
|
192
|
-
var n = this, i =
|
|
192
|
+
var n = this, i = x(t, r), o = i.type, s = i.payload, a = { type: o, payload: s }, c = this._actions[o];
|
|
193
193
|
if (c) {
|
|
194
194
|
try {
|
|
195
195
|
this._actionSubscribers.slice().filter(function(u) {
|
|
@@ -202,37 +202,37 @@ _.prototype.dispatch = function(t, r) {
|
|
|
202
202
|
var f = c.length > 1 ? Promise.all(c.map(function(u) {
|
|
203
203
|
return u(s);
|
|
204
204
|
})) : c[0](s);
|
|
205
|
-
return new Promise(function(u,
|
|
205
|
+
return new Promise(function(u, d) {
|
|
206
206
|
f.then(function(l) {
|
|
207
207
|
try {
|
|
208
|
-
n._actionSubscribers.filter(function(
|
|
209
|
-
return
|
|
210
|
-
}).forEach(function(
|
|
211
|
-
return
|
|
208
|
+
n._actionSubscribers.filter(function(h) {
|
|
209
|
+
return h.after;
|
|
210
|
+
}).forEach(function(h) {
|
|
211
|
+
return h.after(a, n.state);
|
|
212
212
|
});
|
|
213
213
|
} catch {
|
|
214
214
|
}
|
|
215
215
|
u(l);
|
|
216
216
|
}, function(l) {
|
|
217
217
|
try {
|
|
218
|
-
n._actionSubscribers.filter(function(
|
|
219
|
-
return
|
|
220
|
-
}).forEach(function(
|
|
221
|
-
return
|
|
218
|
+
n._actionSubscribers.filter(function(h) {
|
|
219
|
+
return h.error;
|
|
220
|
+
}).forEach(function(h) {
|
|
221
|
+
return h.error(a, n.state, l);
|
|
222
222
|
});
|
|
223
223
|
} catch {
|
|
224
224
|
}
|
|
225
|
-
|
|
225
|
+
d(l);
|
|
226
226
|
});
|
|
227
227
|
});
|
|
228
228
|
}
|
|
229
229
|
};
|
|
230
230
|
_.prototype.subscribe = function(t, r) {
|
|
231
|
-
return
|
|
231
|
+
return ve(t, this._subscribers, r);
|
|
232
232
|
};
|
|
233
233
|
_.prototype.subscribeAction = function(t, r) {
|
|
234
234
|
var n = typeof t == "function" ? { before: t } : t;
|
|
235
|
-
return
|
|
235
|
+
return ve(n, this._actionSubscribers, r);
|
|
236
236
|
};
|
|
237
237
|
_.prototype.watch = function(t, r, n) {
|
|
238
238
|
var i = this;
|
|
@@ -247,43 +247,43 @@ _.prototype.replaceState = function(t) {
|
|
|
247
247
|
});
|
|
248
248
|
};
|
|
249
249
|
_.prototype.registerModule = function(t, r, n) {
|
|
250
|
-
n === void 0 && (n = {}), typeof t == "string" && (t = [t]), this._modules.register(t, r),
|
|
250
|
+
n === void 0 && (n = {}), typeof t == "string" && (t = [t]), this._modules.register(t, r), q(this, this.state, t, this._modules.get(t), n.preserveState), X(this, this.state);
|
|
251
251
|
};
|
|
252
252
|
_.prototype.unregisterModule = function(t) {
|
|
253
253
|
var r = this;
|
|
254
254
|
typeof t == "string" && (t = [t]), this._modules.unregister(t), this._withCommit(function() {
|
|
255
|
-
var n =
|
|
255
|
+
var n = Z(r.state, t.slice(0, -1));
|
|
256
256
|
O.delete(n, t[t.length - 1]);
|
|
257
|
-
}),
|
|
257
|
+
}), me(this);
|
|
258
258
|
};
|
|
259
259
|
_.prototype.hasModule = function(t) {
|
|
260
260
|
return typeof t == "string" && (t = [t]), this._modules.isRegistered(t);
|
|
261
261
|
};
|
|
262
262
|
_.prototype.hotUpdate = function(t) {
|
|
263
|
-
this._modules.update(t),
|
|
263
|
+
this._modules.update(t), me(this, !0);
|
|
264
264
|
};
|
|
265
265
|
_.prototype._withCommit = function(t) {
|
|
266
266
|
var r = this._committing;
|
|
267
267
|
this._committing = !0, t(), this._committing = r;
|
|
268
268
|
};
|
|
269
|
-
Object.defineProperties(_.prototype,
|
|
270
|
-
function
|
|
269
|
+
Object.defineProperties(_.prototype, J);
|
|
270
|
+
function ve(e, t, r) {
|
|
271
271
|
return t.indexOf(e) < 0 && (r && r.prepend ? t.unshift(e) : t.push(e)), function() {
|
|
272
272
|
var n = t.indexOf(e);
|
|
273
273
|
n > -1 && t.splice(n, 1);
|
|
274
274
|
};
|
|
275
275
|
}
|
|
276
|
-
function
|
|
276
|
+
function me(e, t) {
|
|
277
277
|
e._actions = /* @__PURE__ */ Object.create(null), e._mutations = /* @__PURE__ */ Object.create(null), e._wrappedGetters = /* @__PURE__ */ Object.create(null), e._modulesNamespaceMap = /* @__PURE__ */ Object.create(null);
|
|
278
278
|
var r = e.state;
|
|
279
|
-
|
|
279
|
+
q(e, r, [], e._modules.root, !0), X(e, r, t);
|
|
280
280
|
}
|
|
281
|
-
function
|
|
281
|
+
function X(e, t, r) {
|
|
282
282
|
var n = e._vm;
|
|
283
283
|
e.getters = {}, e._makeLocalGettersCache = /* @__PURE__ */ Object.create(null);
|
|
284
284
|
var i = e._wrappedGetters, o = {};
|
|
285
|
-
|
|
286
|
-
o[c] =
|
|
285
|
+
H(i, function(a, c) {
|
|
286
|
+
o[c] = Ye(a, e), Object.defineProperty(e.getters, c, {
|
|
287
287
|
get: function() {
|
|
288
288
|
return e._vm[c];
|
|
289
289
|
},
|
|
@@ -297,43 +297,43 @@ function W(e, t, r) {
|
|
|
297
297
|
$$state: t
|
|
298
298
|
},
|
|
299
299
|
computed: o
|
|
300
|
-
}), O.config.silent = s, e.strict &&
|
|
300
|
+
}), O.config.silent = s, e.strict && Xe(e), n && (r && e._withCommit(function() {
|
|
301
301
|
n._data.$$state = null;
|
|
302
302
|
}), O.nextTick(function() {
|
|
303
303
|
return n.$destroy();
|
|
304
304
|
}));
|
|
305
305
|
}
|
|
306
|
-
function
|
|
306
|
+
function q(e, t, r, n, i) {
|
|
307
307
|
var o = !r.length, s = e._modules.getNamespace(r);
|
|
308
308
|
if (n.namespaced && (e._modulesNamespaceMap[s], e._modulesNamespaceMap[s] = n), !o && !i) {
|
|
309
|
-
var a =
|
|
309
|
+
var a = Z(t, r.slice(0, -1)), c = r[r.length - 1];
|
|
310
310
|
e._withCommit(function() {
|
|
311
311
|
O.set(a, c, n.state);
|
|
312
312
|
});
|
|
313
313
|
}
|
|
314
|
-
var f = n.context =
|
|
315
|
-
n.forEachMutation(function(u,
|
|
316
|
-
var l = s +
|
|
317
|
-
|
|
318
|
-
}), n.forEachAction(function(u,
|
|
319
|
-
var l = u.root ?
|
|
320
|
-
|
|
321
|
-
}), n.forEachGetter(function(u,
|
|
322
|
-
var l = s +
|
|
323
|
-
|
|
324
|
-
}), n.forEachChild(function(u,
|
|
325
|
-
|
|
314
|
+
var f = n.context = ze(e, s, r);
|
|
315
|
+
n.forEachMutation(function(u, d) {
|
|
316
|
+
var l = s + d;
|
|
317
|
+
Ke(e, l, u, f);
|
|
318
|
+
}), n.forEachAction(function(u, d) {
|
|
319
|
+
var l = u.root ? d : s + d, h = u.handler || u;
|
|
320
|
+
We(e, l, h, f);
|
|
321
|
+
}), n.forEachGetter(function(u, d) {
|
|
322
|
+
var l = s + d;
|
|
323
|
+
Je(e, l, u, f);
|
|
324
|
+
}), n.forEachChild(function(u, d) {
|
|
325
|
+
q(e, t, r.concat(d), u, i);
|
|
326
326
|
});
|
|
327
327
|
}
|
|
328
|
-
function
|
|
328
|
+
function ze(e, t, r) {
|
|
329
329
|
var n = t === "", i = {
|
|
330
330
|
dispatch: n ? e.dispatch : function(o, s, a) {
|
|
331
|
-
var c =
|
|
332
|
-
return (!u || !u.root) && (
|
|
331
|
+
var c = x(o, s, a), f = c.payload, u = c.options, d = c.type;
|
|
332
|
+
return (!u || !u.root) && (d = t + d), e.dispatch(d, f);
|
|
333
333
|
},
|
|
334
334
|
commit: n ? e.commit : function(o, s, a) {
|
|
335
|
-
var c =
|
|
336
|
-
(!u || !u.root) && (
|
|
335
|
+
var c = x(o, s, a), f = c.payload, u = c.options, d = c.type;
|
|
336
|
+
(!u || !u.root) && (d = t + d), e.commit(d, f, u);
|
|
337
337
|
}
|
|
338
338
|
};
|
|
339
339
|
return Object.defineProperties(i, {
|
|
@@ -346,7 +346,7 @@ function Ye(e, t, r) {
|
|
|
346
346
|
},
|
|
347
347
|
state: {
|
|
348
348
|
get: function() {
|
|
349
|
-
return
|
|
349
|
+
return Z(e.state, r);
|
|
350
350
|
}
|
|
351
351
|
}
|
|
352
352
|
}), i;
|
|
@@ -368,13 +368,13 @@ function Qe(e, t) {
|
|
|
368
368
|
}
|
|
369
369
|
return e._makeLocalGettersCache[t];
|
|
370
370
|
}
|
|
371
|
-
function
|
|
371
|
+
function Ke(e, t, r, n) {
|
|
372
372
|
var i = e._mutations[t] || (e._mutations[t] = []);
|
|
373
373
|
i.push(function(s) {
|
|
374
374
|
r.call(e, n.state, s);
|
|
375
375
|
});
|
|
376
376
|
}
|
|
377
|
-
function
|
|
377
|
+
function We(e, t, r, n) {
|
|
378
378
|
var i = e._actions[t] || (e._actions[t] = []);
|
|
379
379
|
i.push(function(s) {
|
|
380
380
|
var a = r.call(e, {
|
|
@@ -385,12 +385,12 @@ function Ke(e, t, r, n) {
|
|
|
385
385
|
rootGetters: e.getters,
|
|
386
386
|
rootState: e.state
|
|
387
387
|
}, s);
|
|
388
|
-
return
|
|
388
|
+
return Ve(a) || (a = Promise.resolve(a)), e._devtoolHook ? a.catch(function(c) {
|
|
389
389
|
throw e._devtoolHook.emit("vuex:error", c), c;
|
|
390
390
|
}) : a;
|
|
391
391
|
});
|
|
392
392
|
}
|
|
393
|
-
function
|
|
393
|
+
function Je(e, t, r, n) {
|
|
394
394
|
e._wrappedGetters[t] || (e._wrappedGetters[t] = function(o) {
|
|
395
395
|
return r(
|
|
396
396
|
n.state,
|
|
@@ -404,31 +404,31 @@ function We(e, t, r, n) {
|
|
|
404
404
|
);
|
|
405
405
|
});
|
|
406
406
|
}
|
|
407
|
-
function
|
|
407
|
+
function Xe(e) {
|
|
408
408
|
e._vm.$watch(function() {
|
|
409
409
|
return this._data.$$state;
|
|
410
410
|
}, function() {
|
|
411
411
|
}, { deep: !0, sync: !0 });
|
|
412
412
|
}
|
|
413
|
-
function
|
|
413
|
+
function Z(e, t) {
|
|
414
414
|
return t.reduce(function(r, n) {
|
|
415
415
|
return r[n];
|
|
416
416
|
}, e);
|
|
417
417
|
}
|
|
418
|
-
function
|
|
419
|
-
return
|
|
418
|
+
function x(e, t, r) {
|
|
419
|
+
return Oe(e) && e.type && (r = t, t = e, e = e.type), { type: e, payload: t, options: r };
|
|
420
420
|
}
|
|
421
|
-
function
|
|
422
|
-
O && e === O || (O = e,
|
|
421
|
+
function Re(e) {
|
|
422
|
+
O && e === O || (O = e, Ne(O));
|
|
423
423
|
}
|
|
424
|
-
var
|
|
424
|
+
var pe = B(function(e, t) {
|
|
425
425
|
var r = {};
|
|
426
|
-
return
|
|
426
|
+
return N(t).forEach(function(n) {
|
|
427
427
|
var i = n.key, o = n.val;
|
|
428
428
|
r[i] = function() {
|
|
429
429
|
var a = this.$store.state, c = this.$store.getters;
|
|
430
430
|
if (e) {
|
|
431
|
-
var f =
|
|
431
|
+
var f = G(this.$store, "mapState", e);
|
|
432
432
|
if (!f)
|
|
433
433
|
return;
|
|
434
434
|
a = f.context.state, c = f.context.getters;
|
|
@@ -436,15 +436,15 @@ var Re = U(function(e, t) {
|
|
|
436
436
|
return typeof o == "function" ? o.call(this, a, c) : a[o];
|
|
437
437
|
}, r[i].vuex = !0;
|
|
438
438
|
}), r;
|
|
439
|
-
}),
|
|
439
|
+
}), Te = B(function(e, t) {
|
|
440
440
|
var r = {};
|
|
441
|
-
return
|
|
441
|
+
return N(t).forEach(function(n) {
|
|
442
442
|
var i = n.key, o = n.val;
|
|
443
443
|
r[i] = function() {
|
|
444
444
|
for (var a = [], c = arguments.length; c--; ) a[c] = arguments[c];
|
|
445
445
|
var f = this.$store.commit;
|
|
446
446
|
if (e) {
|
|
447
|
-
var u =
|
|
447
|
+
var u = G(this.$store, "mapMutations", e);
|
|
448
448
|
if (!u)
|
|
449
449
|
return;
|
|
450
450
|
f = u.context.commit;
|
|
@@ -452,24 +452,24 @@ var Re = U(function(e, t) {
|
|
|
452
452
|
return typeof o == "function" ? o.apply(this, [f].concat(a)) : f.apply(this.$store, [o].concat(a));
|
|
453
453
|
};
|
|
454
454
|
}), r;
|
|
455
|
-
}),
|
|
455
|
+
}), Se = B(function(e, t) {
|
|
456
456
|
var r = {};
|
|
457
|
-
return
|
|
457
|
+
return N(t).forEach(function(n) {
|
|
458
458
|
var i = n.key, o = n.val;
|
|
459
459
|
o = e + o, r[i] = function() {
|
|
460
|
-
if (!(e && !
|
|
460
|
+
if (!(e && !G(this.$store, "mapGetters", e)))
|
|
461
461
|
return this.$store.getters[o];
|
|
462
462
|
}, r[i].vuex = !0;
|
|
463
463
|
}), r;
|
|
464
|
-
}),
|
|
464
|
+
}), ye = B(function(e, t) {
|
|
465
465
|
var r = {};
|
|
466
|
-
return
|
|
466
|
+
return N(t).forEach(function(n) {
|
|
467
467
|
var i = n.key, o = n.val;
|
|
468
468
|
r[i] = function() {
|
|
469
469
|
for (var a = [], c = arguments.length; c--; ) a[c] = arguments[c];
|
|
470
470
|
var f = this.$store.dispatch;
|
|
471
471
|
if (e) {
|
|
472
|
-
var u =
|
|
472
|
+
var u = G(this.$store, "mapActions", e);
|
|
473
473
|
if (!u)
|
|
474
474
|
return;
|
|
475
475
|
f = u.context.dispatch;
|
|
@@ -477,39 +477,39 @@ var Re = U(function(e, t) {
|
|
|
477
477
|
return typeof o == "function" ? o.apply(this, [f].concat(a)) : f.apply(this.$store, [o].concat(a));
|
|
478
478
|
};
|
|
479
479
|
}), r;
|
|
480
|
-
}),
|
|
480
|
+
}), Ze = function(e) {
|
|
481
481
|
return {
|
|
482
|
-
mapState:
|
|
483
|
-
mapGetters:
|
|
484
|
-
mapMutations:
|
|
485
|
-
mapActions:
|
|
482
|
+
mapState: pe.bind(null, e),
|
|
483
|
+
mapGetters: Se.bind(null, e),
|
|
484
|
+
mapMutations: Te.bind(null, e),
|
|
485
|
+
mapActions: ye.bind(null, e)
|
|
486
486
|
};
|
|
487
487
|
};
|
|
488
|
-
function
|
|
489
|
-
return
|
|
488
|
+
function N(e) {
|
|
489
|
+
return et(e) ? Array.isArray(e) ? e.map(function(t) {
|
|
490
490
|
return { key: t, val: t };
|
|
491
491
|
}) : Object.keys(e).map(function(t) {
|
|
492
492
|
return { key: t, val: e[t] };
|
|
493
493
|
}) : [];
|
|
494
494
|
}
|
|
495
|
-
function
|
|
496
|
-
return Array.isArray(e) ||
|
|
495
|
+
function et(e) {
|
|
496
|
+
return Array.isArray(e) || Oe(e);
|
|
497
497
|
}
|
|
498
|
-
function
|
|
498
|
+
function B(e) {
|
|
499
499
|
return function(t, r) {
|
|
500
500
|
return typeof t != "string" ? (r = t, t = "") : t.charAt(t.length - 1) !== "/" && (t += "/"), e(t, r);
|
|
501
501
|
};
|
|
502
502
|
}
|
|
503
|
-
function
|
|
503
|
+
function G(e, t, r) {
|
|
504
504
|
var n = e._modulesNamespaceMap[r];
|
|
505
505
|
return n;
|
|
506
506
|
}
|
|
507
|
-
function
|
|
507
|
+
function tt(e) {
|
|
508
508
|
e === void 0 && (e = {});
|
|
509
509
|
var t = e.collapsed;
|
|
510
510
|
t === void 0 && (t = !0);
|
|
511
511
|
var r = e.filter;
|
|
512
|
-
r === void 0 && (r = function(u,
|
|
512
|
+
r === void 0 && (r = function(u, d, l) {
|
|
513
513
|
return !0;
|
|
514
514
|
});
|
|
515
515
|
var n = e.transformer;
|
|
@@ -521,7 +521,7 @@ function et(e) {
|
|
|
521
521
|
return u;
|
|
522
522
|
});
|
|
523
523
|
var o = e.actionFilter;
|
|
524
|
-
o === void 0 && (o = function(u,
|
|
524
|
+
o === void 0 && (o = function(u, d) {
|
|
525
525
|
return !0;
|
|
526
526
|
});
|
|
527
527
|
var s = e.actionTransformer;
|
|
@@ -534,23 +534,23 @@ function et(e) {
|
|
|
534
534
|
c === void 0 && (c = !0);
|
|
535
535
|
var f = e.logger;
|
|
536
536
|
return f === void 0 && (f = console), function(u) {
|
|
537
|
-
var
|
|
538
|
-
typeof f > "u" || (a && u.subscribe(function(l,
|
|
539
|
-
var g =
|
|
540
|
-
if (r(l,
|
|
541
|
-
var R =
|
|
542
|
-
|
|
537
|
+
var d = Q(u.state);
|
|
538
|
+
typeof f > "u" || (a && u.subscribe(function(l, h) {
|
|
539
|
+
var g = Q(h);
|
|
540
|
+
if (r(l, d, g)) {
|
|
541
|
+
var R = ae(), p = i(l), I = "mutation " + l.type + R;
|
|
542
|
+
oe(f, I, t), f.log("%c prev state", "color: #9E9E9E; font-weight: bold", n(d)), f.log("%c mutation", "color: #03A9F4; font-weight: bold", p), f.log("%c next state", "color: #4CAF50; font-weight: bold", n(g)), se(f);
|
|
543
543
|
}
|
|
544
|
-
|
|
545
|
-
}), c && u.subscribeAction(function(l,
|
|
546
|
-
if (o(l,
|
|
547
|
-
var g =
|
|
548
|
-
|
|
544
|
+
d = g;
|
|
545
|
+
}), c && u.subscribeAction(function(l, h) {
|
|
546
|
+
if (o(l, h)) {
|
|
547
|
+
var g = ae(), R = s(l), p = "action " + l.type + g;
|
|
548
|
+
oe(f, p, t), f.log("%c action", "color: #03A9F4; font-weight: bold", R), se(f);
|
|
549
549
|
}
|
|
550
550
|
}));
|
|
551
551
|
};
|
|
552
552
|
}
|
|
553
|
-
function
|
|
553
|
+
function oe(e, t, r) {
|
|
554
554
|
var n = r ? e.groupCollapsed : e.group;
|
|
555
555
|
try {
|
|
556
556
|
n.call(e, t);
|
|
@@ -558,34 +558,34 @@ function ne(e, t, r) {
|
|
|
558
558
|
e.log(t);
|
|
559
559
|
}
|
|
560
560
|
}
|
|
561
|
-
function
|
|
561
|
+
function se(e) {
|
|
562
562
|
try {
|
|
563
563
|
e.groupEnd();
|
|
564
564
|
} catch {
|
|
565
565
|
e.log("—— log end ——");
|
|
566
566
|
}
|
|
567
567
|
}
|
|
568
|
-
function
|
|
568
|
+
function ae() {
|
|
569
569
|
var e = /* @__PURE__ */ new Date();
|
|
570
|
-
return " @ " +
|
|
570
|
+
return " @ " + A(e.getHours(), 2) + ":" + A(e.getMinutes(), 2) + ":" + A(e.getSeconds(), 2) + "." + A(e.getMilliseconds(), 3);
|
|
571
571
|
}
|
|
572
|
-
function
|
|
572
|
+
function rt(e, t) {
|
|
573
573
|
return new Array(t + 1).join(e);
|
|
574
574
|
}
|
|
575
|
-
function
|
|
576
|
-
return
|
|
575
|
+
function A(e, t) {
|
|
576
|
+
return rt("0", t - e.toString().length) + e;
|
|
577
577
|
}
|
|
578
|
-
var
|
|
578
|
+
var nt = {
|
|
579
579
|
Store: _,
|
|
580
|
-
install:
|
|
580
|
+
install: Re,
|
|
581
581
|
version: "3.6.2",
|
|
582
|
-
mapState:
|
|
583
|
-
mapMutations:
|
|
584
|
-
mapGetters:
|
|
585
|
-
mapActions:
|
|
586
|
-
createNamespacedHelpers:
|
|
587
|
-
createLogger:
|
|
588
|
-
},
|
|
582
|
+
mapState: pe,
|
|
583
|
+
mapMutations: Te,
|
|
584
|
+
mapGetters: Se,
|
|
585
|
+
mapActions: ye,
|
|
586
|
+
createNamespacedHelpers: Ze,
|
|
587
|
+
createLogger: tt
|
|
588
|
+
}, U = {
|
|
589
589
|
/**
|
|
590
590
|
* THIS OBJECT IS REPLACED AT RUNTIME WITH THE ACTUAL VUEX STORE
|
|
591
591
|
*/
|
|
@@ -597,46 +597,46 @@ var rt = {
|
|
|
597
597
|
}
|
|
598
598
|
}
|
|
599
599
|
};
|
|
600
|
-
function
|
|
600
|
+
function ar() {
|
|
601
601
|
for (var e, t = [], r = arguments.length; r--; ) t[r] = arguments[r];
|
|
602
|
-
return (e =
|
|
602
|
+
return (e = U.store).dispatch.apply(e, t);
|
|
603
603
|
}
|
|
604
|
-
function
|
|
604
|
+
function it(e) {
|
|
605
605
|
return T(e) && !Array.isArray(e);
|
|
606
606
|
}
|
|
607
607
|
function T(e) {
|
|
608
608
|
return !!e && typeof e == "object";
|
|
609
609
|
}
|
|
610
|
-
function
|
|
610
|
+
function ot(e) {
|
|
611
611
|
return typeof e == "number" || /^\d+$/.test(e);
|
|
612
612
|
}
|
|
613
|
-
function
|
|
613
|
+
function st(e, t) {
|
|
614
614
|
return T(e) && t in e;
|
|
615
615
|
}
|
|
616
|
-
function
|
|
616
|
+
function j(e) {
|
|
617
617
|
return e ? Array.isArray(e) ? e.map(function(t) {
|
|
618
618
|
return String(t);
|
|
619
619
|
}) : typeof e == "object" ? Object.keys(e) : typeof e == "string" ? e.match(/[-$\w]+/g) || [] : [] : [];
|
|
620
620
|
}
|
|
621
|
-
function
|
|
622
|
-
var r = e, n =
|
|
621
|
+
function we(e, t) {
|
|
622
|
+
var r = e, n = j(t);
|
|
623
623
|
return n.every(function(i) {
|
|
624
624
|
var o = T(r) && r.hasOwnProperty(i);
|
|
625
625
|
return r = o ? r[i] : void 0, o;
|
|
626
626
|
}), r;
|
|
627
627
|
}
|
|
628
|
-
function
|
|
629
|
-
var i =
|
|
628
|
+
function at(e, t, r, n) {
|
|
629
|
+
var i = j(t);
|
|
630
630
|
return i.reduce(function(o, s, a) {
|
|
631
|
-
return o ? (Array.isArray(o) &&
|
|
631
|
+
return o ? (Array.isArray(o) && ot(s) && (s = parseInt(s)), a === i.length - 1 ? (o[s] = r, !0) : !T(o[s]) || !(s in o) ? !1 : o[s]) : !1;
|
|
632
632
|
}, e);
|
|
633
633
|
}
|
|
634
|
-
function
|
|
635
|
-
var r =
|
|
634
|
+
function ut(e, t) {
|
|
635
|
+
var r = j(t);
|
|
636
636
|
if (T(e)) {
|
|
637
637
|
for (; r.length; ) {
|
|
638
638
|
var n = r.shift();
|
|
639
|
-
if (
|
|
639
|
+
if (st(e, n))
|
|
640
640
|
e = e[n];
|
|
641
641
|
else
|
|
642
642
|
return !1;
|
|
@@ -645,12 +645,19 @@ function at(e, t) {
|
|
|
645
645
|
}
|
|
646
646
|
return !1;
|
|
647
647
|
}
|
|
648
|
-
function
|
|
648
|
+
function ct(e) {
|
|
649
649
|
return JSON.parse(JSON.stringify(e));
|
|
650
650
|
}
|
|
651
|
-
var
|
|
652
|
-
mapping: "standard"
|
|
653
|
-
|
|
651
|
+
var S = {
|
|
652
|
+
mapping: "standard",
|
|
653
|
+
// map states to store members using the "standard" scheme
|
|
654
|
+
strict: !0,
|
|
655
|
+
// throw an error if the store member cannot be found
|
|
656
|
+
cache: !0,
|
|
657
|
+
// cache generated functions for faster re-use
|
|
658
|
+
deep: 1
|
|
659
|
+
// allow sub-property access, but not creation
|
|
660
|
+
}, ft = {
|
|
654
661
|
camel: function() {
|
|
655
662
|
for (var e = [], t = arguments.length; t--; ) e[t] = arguments[t];
|
|
656
663
|
return e.shift() + e.map(function(r) {
|
|
@@ -669,12 +676,12 @@ var se = {
|
|
|
669
676
|
for (var e, t = [], r = arguments.length; r--; ) t[r] = arguments[r];
|
|
670
677
|
return (e = this).snake.apply(e, t).toUpperCase();
|
|
671
678
|
}
|
|
672
|
-
},
|
|
679
|
+
}, lt = {
|
|
673
680
|
state: "state",
|
|
674
681
|
getters: "getters",
|
|
675
682
|
actions: "_actions",
|
|
676
683
|
mutations: "_mutations"
|
|
677
|
-
},
|
|
684
|
+
}, ue = {
|
|
678
685
|
/**
|
|
679
686
|
* Standard name mapping function
|
|
680
687
|
*
|
|
@@ -700,22 +707,22 @@ var se = {
|
|
|
700
707
|
simple: function(t, r, n) {
|
|
701
708
|
return t === "actions" ? n.camel("set", r) : r;
|
|
702
709
|
}
|
|
703
|
-
},
|
|
704
|
-
function
|
|
710
|
+
}, Y;
|
|
711
|
+
function M(e, t) {
|
|
705
712
|
if (t.match(/!$/))
|
|
706
713
|
return t.substr(0, t.length - 1);
|
|
707
|
-
var r =
|
|
714
|
+
var r = Y;
|
|
708
715
|
if (!r) {
|
|
709
|
-
if (r =
|
|
710
|
-
throw new Error("[Vuex Pathify] Unknown mapping '" +
|
|
711
|
-
- Choose one of '` + Object.keys(
|
|
716
|
+
if (r = ue[S.mapping], !r)
|
|
717
|
+
throw new Error("[Vuex Pathify] Unknown mapping '" + S.mapping + `' in options
|
|
718
|
+
- Choose one of '` + Object.keys(ue).join("', '") + `'
|
|
712
719
|
- Or, supply a custom function
|
|
713
720
|
`);
|
|
714
|
-
|
|
721
|
+
Y = r;
|
|
715
722
|
}
|
|
716
|
-
return
|
|
723
|
+
return Y(e, t, ft);
|
|
717
724
|
}
|
|
718
|
-
function
|
|
725
|
+
function K(e, t) {
|
|
719
726
|
var r = t.replace(/[/@!]+/g, "."), n = t.split("@"), i = n[0], o = n[1], s, a;
|
|
720
727
|
if (i.indexOf("/") > -1) {
|
|
721
728
|
var c = i.split("/");
|
|
@@ -737,74 +744,74 @@ function Q(e, t) {
|
|
|
737
744
|
* @returns {{exists: boolean, member: object, type: string, path: string}}
|
|
738
745
|
*/
|
|
739
746
|
get: function(f) {
|
|
740
|
-
var u = e[
|
|
747
|
+
var u = e[lt[f]], d = M(f, a), l = s ? s + "/" + d : d;
|
|
741
748
|
return {
|
|
742
|
-
exists: f === "state" ?
|
|
749
|
+
exists: f === "state" ? ut(u, l) : l in u,
|
|
743
750
|
member: u,
|
|
744
751
|
trgPath: l,
|
|
745
|
-
trgName:
|
|
752
|
+
trgName: d,
|
|
746
753
|
objPath: o
|
|
747
754
|
};
|
|
748
755
|
}
|
|
749
756
|
};
|
|
750
757
|
}
|
|
751
|
-
var
|
|
758
|
+
var y = function(t, r, n) {
|
|
752
759
|
this.expr = t, this.path = r, this.value = n;
|
|
753
760
|
};
|
|
754
|
-
|
|
755
|
-
return
|
|
761
|
+
y.prototype.update = function(t) {
|
|
762
|
+
return at(t, this.path, this.value), Array.isArray(t) ? [].concat(t) : Object.assign({}, t);
|
|
756
763
|
};
|
|
757
|
-
|
|
758
|
-
return
|
|
764
|
+
y.isSerialized = function(e) {
|
|
765
|
+
return it(e) && "expr" in e && "path" in e && "value" in e;
|
|
759
766
|
};
|
|
760
|
-
function
|
|
761
|
-
var r =
|
|
767
|
+
function dt(e, t) {
|
|
768
|
+
var r = K(e, t), n = r.get("actions");
|
|
762
769
|
if (n.exists)
|
|
763
770
|
return function(o) {
|
|
764
|
-
var s = n.objPath ? new
|
|
771
|
+
var s = n.objPath ? new y(t, n.objPath, o) : o;
|
|
765
772
|
return e.dispatch(n.trgPath, s);
|
|
766
773
|
};
|
|
767
774
|
var i = r.get("mutations");
|
|
768
775
|
return i.exists || r.isDynamic ? function(o) {
|
|
769
776
|
if (r.isDynamic) {
|
|
770
|
-
var s =
|
|
771
|
-
i =
|
|
777
|
+
var s = Me(t, this);
|
|
778
|
+
i = K(e, s).get("mutations");
|
|
772
779
|
}
|
|
773
|
-
var a = i.objPath ? new
|
|
780
|
+
var a = i.objPath ? new y(t, i.objPath, o) : o;
|
|
774
781
|
return e.commit(i.trgPath, a);
|
|
775
782
|
} : function(o) {
|
|
776
783
|
};
|
|
777
784
|
}
|
|
778
|
-
function
|
|
779
|
-
var n =
|
|
785
|
+
function Ce(e, t, r) {
|
|
786
|
+
var n = K(e, t), i;
|
|
780
787
|
if (!r && (i = n.get("getters"), i.exists))
|
|
781
788
|
return function() {
|
|
782
789
|
var s = i.member[i.trgPath];
|
|
783
|
-
return i.objPath ?
|
|
790
|
+
return i.objPath ? ce(t, s, i.objPath) : s;
|
|
784
791
|
};
|
|
785
792
|
var o = n.get("state");
|
|
786
793
|
return o.exists || n.isDynamic ? function() {
|
|
787
|
-
var s = n.isDynamic ?
|
|
788
|
-
return
|
|
794
|
+
var s = n.isDynamic ? Me(n.absPath, this) : n.absPath;
|
|
795
|
+
return ce(t, e.state, s);
|
|
789
796
|
} : function() {
|
|
790
797
|
};
|
|
791
798
|
}
|
|
792
|
-
function
|
|
793
|
-
return
|
|
799
|
+
function ce(e, t, r) {
|
|
800
|
+
return we(t, r);
|
|
794
801
|
}
|
|
795
|
-
function
|
|
802
|
+
function Me(e, t) {
|
|
796
803
|
return e.replace(/:(\w+)/g, function(n, i) {
|
|
797
804
|
return i in t || console.error('Error resolving dynamic store path: The property "' + i + '" does not exist on the scope', t), t[i];
|
|
798
805
|
});
|
|
799
806
|
}
|
|
800
807
|
function ht(e) {
|
|
801
808
|
e.set = function(t, r) {
|
|
802
|
-
var n =
|
|
809
|
+
var n = dt(e, t);
|
|
803
810
|
if (typeof n < "u")
|
|
804
811
|
return n(r);
|
|
805
812
|
}, e.get = function(t) {
|
|
806
813
|
for (var r = [], n = arguments.length - 1; n-- > 0; ) r[n] = arguments[n + 1];
|
|
807
|
-
var i =
|
|
814
|
+
var i = Ce(e, t);
|
|
808
815
|
if (typeof i < "u") {
|
|
809
816
|
var o = i();
|
|
810
817
|
return typeof o == "function" ? o.apply(void 0, r) : o;
|
|
@@ -812,53 +819,78 @@ function ht(e) {
|
|
|
812
819
|
}, e.copy = function(t) {
|
|
813
820
|
for (var r = [], n = arguments.length - 1; n-- > 0; ) r[n] = arguments[n + 1];
|
|
814
821
|
var i = e.get.apply(e, [t].concat(r));
|
|
815
|
-
return T(i) ?
|
|
822
|
+
return T(i) ? ct(i) : i;
|
|
816
823
|
};
|
|
817
824
|
}
|
|
818
|
-
function
|
|
819
|
-
|
|
825
|
+
function D(e) {
|
|
826
|
+
return M(e, "value");
|
|
820
827
|
}
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
|
|
828
|
+
function gt() {
|
|
829
|
+
console.log(`
|
|
830
|
+
[Vuex Pathify] Options:
|
|
831
|
+
|
|
832
|
+
Mapping (` + S.mapping + `)
|
|
833
|
+
-------------------------------
|
|
834
|
+
path : value
|
|
835
|
+
state : ` + D("state") + `
|
|
836
|
+
getters : ` + D("getters") + `
|
|
837
|
+
actions : ` + D("actions") + `
|
|
838
|
+
mutations : ` + D("mutations") + `
|
|
839
|
+
|
|
840
|
+
Settings
|
|
841
|
+
-------------------------------
|
|
842
|
+
strict : ` + S.strict + `
|
|
843
|
+
cache : ` + S.cache + `
|
|
844
|
+
deep : ` + S.deep + `
|
|
845
|
+
|
|
846
|
+
`);
|
|
826
847
|
}
|
|
827
848
|
function Ot(e) {
|
|
828
|
-
|
|
829
|
-
|
|
849
|
+
U.store = e, ht(e);
|
|
850
|
+
}
|
|
851
|
+
var _t = {
|
|
852
|
+
options: S,
|
|
853
|
+
plugin: Ot,
|
|
854
|
+
debug: gt
|
|
855
|
+
};
|
|
856
|
+
function ee(e) {
|
|
857
|
+
return j(typeof e == "function" ? e() : e);
|
|
858
|
+
}
|
|
859
|
+
function Et(e) {
|
|
860
|
+
return ee(e).reduce(function(t, r) {
|
|
861
|
+
var n = M("getters", r);
|
|
830
862
|
return t[n] = function(i) {
|
|
831
863
|
return i[r];
|
|
832
864
|
}, t;
|
|
833
865
|
}, {});
|
|
834
866
|
}
|
|
835
|
-
function
|
|
836
|
-
return
|
|
837
|
-
var n =
|
|
867
|
+
function vt(e) {
|
|
868
|
+
return ee(e).reduce(function(t, r) {
|
|
869
|
+
var n = M("mutations", r);
|
|
838
870
|
return t[n] = function(i, o) {
|
|
839
|
-
o instanceof
|
|
871
|
+
o instanceof y ? o = o.update(i[r]) : y.isSerialized(o) && (o = y.prototype.update.call(o, i[r])), i[r] = o;
|
|
840
872
|
}, t;
|
|
841
873
|
}, {});
|
|
842
874
|
}
|
|
843
|
-
function
|
|
844
|
-
return
|
|
845
|
-
var n =
|
|
875
|
+
function mt(e) {
|
|
876
|
+
return ee(e).reduce(function(t, r) {
|
|
877
|
+
var n = M("actions", r), i = M("mutations", r);
|
|
846
878
|
return t[n] = function(o, s) {
|
|
847
879
|
var a = o.commit;
|
|
848
880
|
a(i, s);
|
|
849
881
|
}, t;
|
|
850
882
|
}, {});
|
|
851
883
|
}
|
|
852
|
-
var
|
|
853
|
-
getters:
|
|
854
|
-
mutations:
|
|
855
|
-
actions:
|
|
884
|
+
var $ = {
|
|
885
|
+
getters: Et,
|
|
886
|
+
mutations: vt,
|
|
887
|
+
actions: mt
|
|
856
888
|
};
|
|
857
|
-
function
|
|
858
|
-
return
|
|
889
|
+
function Rt(e, t, r) {
|
|
890
|
+
return St(e, t) ? pt(e, t).concat(Tt(e, r)) : "";
|
|
859
891
|
}
|
|
860
|
-
function
|
|
861
|
-
var r = e.match(/([^/@\.]+)$/)[1], n = e.substring(0, e.length - r.length), i = n.replace(/\W+$/, "").split(/[/@.]/), o = n ?
|
|
892
|
+
function pt(e, t) {
|
|
893
|
+
var r = e.match(/([^/@\.]+)$/)[1], n = e.substring(0, e.length - r.length), i = n.replace(/\W+$/, "").split(/[/@.]/), o = n ? we(t, i) : t;
|
|
862
894
|
if (!o)
|
|
863
895
|
return console.error("[Vuex Pathify] Unable to expand wildcard path '" + e + `':
|
|
864
896
|
- It looks like '` + n.replace(/\W+$/, "") + "' does not resolve to an existing state property"), [];
|
|
@@ -869,56 +901,56 @@ function mt(e, t) {
|
|
|
869
901
|
return n + a;
|
|
870
902
|
});
|
|
871
903
|
}
|
|
872
|
-
function
|
|
904
|
+
function Tt(e, t) {
|
|
873
905
|
var r = new RegExp("^" + e.replace(/\*/g, "\\w+") + "$");
|
|
874
906
|
return Object.keys(t).filter(function(n) {
|
|
875
907
|
return r.test(n);
|
|
876
908
|
});
|
|
877
909
|
}
|
|
878
|
-
function
|
|
910
|
+
function St(e, t) {
|
|
879
911
|
return e.indexOf("*") > -1 && /\*.*[/@.]/.test(e) ? (console.error("[Vuex Pathify] Invalid wildcard placement for path '" + e + `':
|
|
880
912
|
- Wildcards may only be used in the last segment of a path`), !1) : t ? !0 : (console.error("[Vuex Pathify] Unable to expand wildcard path '" + e + `':
|
|
881
913
|
- The usual reason for this is that the router was set up before the store
|
|
882
914
|
- Make sure the store is imported before the router, then reload`), !1);
|
|
883
915
|
}
|
|
884
|
-
function
|
|
916
|
+
function yt(e, t, r) {
|
|
885
917
|
if (typeof e == "string" && e.indexOf("*") > -1)
|
|
886
|
-
return
|
|
918
|
+
return z(r(e));
|
|
887
919
|
if (Array.isArray(e))
|
|
888
|
-
return
|
|
920
|
+
return z(e);
|
|
889
921
|
if (T(e) && (t = e, e = ""), Array.isArray(t)) {
|
|
890
922
|
var n = t.map(function(i) {
|
|
891
|
-
return
|
|
923
|
+
return fe(e, i);
|
|
892
924
|
});
|
|
893
|
-
return
|
|
925
|
+
return z(n);
|
|
894
926
|
}
|
|
895
927
|
return T(t) ? Object.keys(t).reduce(function(i, o) {
|
|
896
|
-
return i[o] =
|
|
928
|
+
return i[o] = fe(e, t[o]), i;
|
|
897
929
|
}, {}) : e;
|
|
898
930
|
}
|
|
899
|
-
function
|
|
931
|
+
function fe(e, t) {
|
|
900
932
|
t === void 0 && (t = ""), e = e.replace(/\/+$/, "");
|
|
901
933
|
var r = e.indexOf("@") > -1 ? e + "." + t : e + "/" + t;
|
|
902
934
|
return r.replace(/^\/|[.@/]+$/, "").replace(/\/@/, "@").replace(/@\./, "@");
|
|
903
935
|
}
|
|
904
|
-
function
|
|
936
|
+
function z(e) {
|
|
905
937
|
return e.reduce(function(t, r) {
|
|
906
938
|
var n = r.match(/\w+$/);
|
|
907
939
|
return t[n] = r, t;
|
|
908
940
|
}, {});
|
|
909
941
|
}
|
|
910
|
-
function
|
|
911
|
-
return
|
|
912
|
-
return
|
|
942
|
+
function ur(e, t) {
|
|
943
|
+
return wt(e, t, Ct, function(r) {
|
|
944
|
+
return Rt(r, U.store.state, U.store.getters);
|
|
913
945
|
});
|
|
914
946
|
}
|
|
915
|
-
function
|
|
916
|
-
var i =
|
|
947
|
+
function wt(e, t, r, n) {
|
|
948
|
+
var i = yt(e, t, n);
|
|
917
949
|
return typeof i == "string" ? r(i) : (Object.keys(i).forEach(function(o) {
|
|
918
950
|
i[o] = r(i[o]);
|
|
919
951
|
}), i);
|
|
920
952
|
}
|
|
921
|
-
function
|
|
953
|
+
function Ct(e, t) {
|
|
922
954
|
var r, n;
|
|
923
955
|
return function() {
|
|
924
956
|
for (var i = [], o = arguments.length; o--; ) i[o] = arguments[o];
|
|
@@ -926,33 +958,33 @@ function yt(e, t) {
|
|
|
926
958
|
throw new Error(`[Vuex Pathify] Unexpected condition: this.$store is undefined.
|
|
927
959
|
|
|
928
960
|
This is a known edge case with some setups and will cause future lookups to fail`);
|
|
929
|
-
return (!r || n !== this.$store) && (n = this.$store, r =
|
|
961
|
+
return (!r || n !== this.$store) && (n = this.$store, r = Ce(n, e, t)), r.call.apply(r, [this].concat(i));
|
|
930
962
|
};
|
|
931
963
|
}
|
|
932
|
-
const
|
|
964
|
+
const He = {
|
|
933
965
|
breakpointObservers: {}
|
|
934
|
-
},
|
|
966
|
+
}, Mt = {
|
|
935
967
|
getBreakpointService: (e) => (t) => e.breakpointObservers[t]
|
|
936
|
-
},
|
|
937
|
-
getters:
|
|
938
|
-
mutations:
|
|
968
|
+
}, Ht = $.mutations(He), $t = {
|
|
969
|
+
getters: Mt,
|
|
970
|
+
mutations: Ht,
|
|
939
971
|
namespaced: !0,
|
|
940
|
-
state:
|
|
941
|
-
}, m = () => window.RevolugoElements.bookingApiClient,
|
|
972
|
+
state: He
|
|
973
|
+
}, m = () => window.RevolugoElements.bookingApiClient, $e = {
|
|
942
974
|
hotels: {}
|
|
943
|
-
},
|
|
975
|
+
}, bt = {
|
|
944
976
|
hotel(e) {
|
|
945
977
|
return (t) => e.hotels[t];
|
|
946
978
|
}
|
|
947
|
-
},
|
|
948
|
-
|
|
979
|
+
}, Pt = {
|
|
980
|
+
...$.mutations($e),
|
|
949
981
|
SET_HOTEL_IMAGES(e, t) {
|
|
950
|
-
|
|
982
|
+
b.set(e.hotels, t.hotelId, {
|
|
951
983
|
hotelImages: t.hotelImages,
|
|
952
984
|
isLoading: t.isLoading
|
|
953
985
|
});
|
|
954
986
|
}
|
|
955
|
-
},
|
|
987
|
+
}, It = {
|
|
956
988
|
async retrieveHotelImages({ commit: e, state: t }, {
|
|
957
989
|
hotelId: r,
|
|
958
990
|
locale: n
|
|
@@ -982,13 +1014,13 @@ const Me = {
|
|
|
982
1014
|
console.error("Cannot retrieve hotel images:", o);
|
|
983
1015
|
}
|
|
984
1016
|
}
|
|
985
|
-
},
|
|
986
|
-
actions:
|
|
1017
|
+
}, Ft = {
|
|
1018
|
+
actions: It,
|
|
987
1019
|
namespaced: !0,
|
|
988
|
-
getters:
|
|
989
|
-
mutations:
|
|
990
|
-
state:
|
|
991
|
-
},
|
|
1020
|
+
getters: bt,
|
|
1021
|
+
mutations: Pt,
|
|
1022
|
+
state: $e
|
|
1023
|
+
}, be = {
|
|
992
1024
|
address: void 0,
|
|
993
1025
|
adultCount: 0,
|
|
994
1026
|
checkInDate: "",
|
|
@@ -1000,15 +1032,15 @@ const Me = {
|
|
|
1000
1032
|
latitude: void 0,
|
|
1001
1033
|
longitude: void 0,
|
|
1002
1034
|
roomCount: 0,
|
|
1003
|
-
sourceMarket:
|
|
1004
|
-
},
|
|
1035
|
+
sourceMarket: Ae.Fr
|
|
1036
|
+
}, At = {
|
|
1005
1037
|
nightCount(e) {
|
|
1006
|
-
return
|
|
1007
|
-
|
|
1038
|
+
return k(e.checkOutDate, "YYYY-MM-DD").diff(
|
|
1039
|
+
k(e.checkInDate, "YYYY-MM-DD"),
|
|
1008
1040
|
"day"
|
|
1009
1041
|
);
|
|
1010
1042
|
}
|
|
1011
|
-
},
|
|
1043
|
+
}, Dt = $.mutations(be), Lt = {
|
|
1012
1044
|
// eslint-disable-next-line max-statements
|
|
1013
1045
|
createHotelOfferRequest: async ({ commit: e }, t) => {
|
|
1014
1046
|
const r = m();
|
|
@@ -1016,7 +1048,7 @@ const Me = {
|
|
|
1016
1048
|
try {
|
|
1017
1049
|
e("SET_HAS_ERROR", !1), e("SET_ID", void 0), e("SET_IS_FETCHING", !0);
|
|
1018
1050
|
const n = {
|
|
1019
|
-
|
|
1051
|
+
body: {
|
|
1020
1052
|
address: t.address,
|
|
1021
1053
|
adultCount: t.adultCount,
|
|
1022
1054
|
checkInDate: t.checkInDate,
|
|
@@ -1028,8 +1060,8 @@ const Me = {
|
|
|
1028
1060
|
sourceMarket: t.sourceMarket
|
|
1029
1061
|
}
|
|
1030
1062
|
}, { eventMetadata: i } = window.RevolugoElements.config;
|
|
1031
|
-
he(i) || (n.
|
|
1032
|
-
...
|
|
1063
|
+
he(i) || (n.body.eventMetadata = {
|
|
1064
|
+
...ge(i, ["name", "slug"]),
|
|
1033
1065
|
name: i.slug || i.name
|
|
1034
1066
|
});
|
|
1035
1067
|
const o = await (r == null ? void 0 : r.hotelOfferRequests.create(
|
|
@@ -1077,27 +1109,27 @@ const Me = {
|
|
|
1077
1109
|
}, 500);
|
|
1078
1110
|
}
|
|
1079
1111
|
}
|
|
1080
|
-
},
|
|
1081
|
-
actions:
|
|
1082
|
-
getters:
|
|
1083
|
-
mutations:
|
|
1112
|
+
}, kt = {
|
|
1113
|
+
actions: Lt,
|
|
1114
|
+
getters: At,
|
|
1115
|
+
mutations: Dt,
|
|
1084
1116
|
namespaced: !0,
|
|
1085
|
-
state:
|
|
1117
|
+
state: be
|
|
1086
1118
|
};
|
|
1087
1119
|
Array.from({ length: 40 }).map(
|
|
1088
|
-
() =>
|
|
1120
|
+
() => Le(0, 10)
|
|
1089
1121
|
);
|
|
1090
|
-
const
|
|
1091
|
-
var
|
|
1092
|
-
const
|
|
1093
|
-
rating:
|
|
1094
|
-
review_rating:
|
|
1095
|
-
price:
|
|
1122
|
+
const xt = 10;
|
|
1123
|
+
var Ut = /* @__PURE__ */ ((e) => (e.Price = "price", e.Rating = "rating", e.ReviewRating = "review_rating", e.SortBy = "sort_by", e))(Ut || {});
|
|
1124
|
+
const qt = "", Nt = 0, Bt = [0, 0], Gt = de.TopPicks, jt = "asc", Pe = {
|
|
1125
|
+
rating: qt,
|
|
1126
|
+
review_rating: Nt,
|
|
1127
|
+
price: Bt,
|
|
1096
1128
|
sort_by: {
|
|
1097
|
-
value:
|
|
1098
|
-
direction:
|
|
1129
|
+
value: Gt,
|
|
1130
|
+
direction: jt
|
|
1099
1131
|
}
|
|
1100
|
-
},
|
|
1132
|
+
}, Ie = {
|
|
1101
1133
|
isPolling: !1,
|
|
1102
1134
|
pollingPayload: void 0,
|
|
1103
1135
|
hasError: !1,
|
|
@@ -1108,14 +1140,14 @@ const xt = "", qt = 0, Ut = [0, 0], Nt = le.TopPicks, Bt = "asc", Pe = {
|
|
|
1108
1140
|
priceMin: 0,
|
|
1109
1141
|
filters: Pe,
|
|
1110
1142
|
startingAfter: null
|
|
1111
|
-
},
|
|
1143
|
+
}, L = {
|
|
1112
1144
|
priceHistogramStepCount(e) {
|
|
1113
1145
|
return e.priceHistogram ? e.priceHistogram.length : 0;
|
|
1114
1146
|
},
|
|
1115
1147
|
// eslint-disable-next-line max-params
|
|
1116
1148
|
getPriceMin(e, t, r, n) {
|
|
1117
1149
|
return !e.priceMin || !e.hotelOffersCurrency ? 0 : Math.round(
|
|
1118
|
-
|
|
1150
|
+
ie({
|
|
1119
1151
|
amount: e.priceMin,
|
|
1120
1152
|
currency: e.hotelOffersCurrency
|
|
1121
1153
|
}) / n["hotelOfferRequest/nightCount"] / r.hotelOfferRequest.roomCount
|
|
@@ -1124,7 +1156,7 @@ const xt = "", qt = 0, Ut = [0, 0], Nt = le.TopPicks, Bt = "asc", Pe = {
|
|
|
1124
1156
|
// eslint-disable-next-line max-params
|
|
1125
1157
|
getPriceMax(e, t, r, n) {
|
|
1126
1158
|
return !e.priceMax || !e.hotelOffersCurrency ? 0 : Math.round(
|
|
1127
|
-
|
|
1159
|
+
ie({
|
|
1128
1160
|
amount: e.priceMax,
|
|
1129
1161
|
currency: e.hotelOffersCurrency
|
|
1130
1162
|
}) / n["hotelOfferRequest/nightCount"] / r.hotelOfferRequest.roomCount
|
|
@@ -1151,21 +1183,21 @@ const xt = "", qt = 0, Ut = [0, 0], Nt = le.TopPicks, Bt = "asc", Pe = {
|
|
|
1151
1183
|
transformFilterPrices(e, t, r, n) {
|
|
1152
1184
|
if (!(!e.filters.price || e.filters.price[0] === 0 && e.filters.price[1] === 0))
|
|
1153
1185
|
return e.filters.price.map(
|
|
1154
|
-
(i) => new
|
|
1186
|
+
(i) => new Ue({
|
|
1155
1187
|
amount: i * n["hotelOfferRequest/nightCount"] * r.hotelOfferRequest.roomCount,
|
|
1156
1188
|
currency: window.RevolugoElements.config.currency
|
|
1157
1189
|
}).normalize().floor().getAmount()
|
|
1158
1190
|
);
|
|
1159
1191
|
}
|
|
1160
|
-
},
|
|
1161
|
-
|
|
1192
|
+
}, Vt = {
|
|
1193
|
+
...$.mutations(Ie),
|
|
1162
1194
|
ADD_HOTEL_OFFERS(e, t) {
|
|
1163
|
-
e.hotelOffers =
|
|
1195
|
+
e.hotelOffers = ke(
|
|
1164
1196
|
[...e.hotelOffers ?? [], ...t],
|
|
1165
1197
|
"id"
|
|
1166
1198
|
);
|
|
1167
1199
|
}
|
|
1168
|
-
},
|
|
1200
|
+
}, Yt = {
|
|
1169
1201
|
saveFilters({ commit: e }, t) {
|
|
1170
1202
|
e("SET_FILTERS", t);
|
|
1171
1203
|
},
|
|
@@ -1178,7 +1210,7 @@ const xt = "", qt = 0, Ut = [0, 0], Nt = le.TopPicks, Bt = "asc", Pe = {
|
|
|
1178
1210
|
resetHotelOffers({ commit: e }) {
|
|
1179
1211
|
e("SET_HOTEL_OFFERS", []);
|
|
1180
1212
|
},
|
|
1181
|
-
retrieveHotelOffers:
|
|
1213
|
+
retrieveHotelOffers: xe(
|
|
1182
1214
|
// eslint-disable-next-line max-lines-per-function
|
|
1183
1215
|
async ({ commit: e, rootGetters: t, rootState: r, state: n }, i) => {
|
|
1184
1216
|
var s, a, c, f;
|
|
@@ -1188,51 +1220,51 @@ const xt = "", qt = 0, Ut = [0, 0], Nt = le.TopPicks, Bt = "asc", Pe = {
|
|
|
1188
1220
|
if (o) {
|
|
1189
1221
|
const u = {
|
|
1190
1222
|
...i,
|
|
1191
|
-
priceHistogramStepCount:
|
|
1223
|
+
priceHistogramStepCount: xt,
|
|
1192
1224
|
filterByReviewRating: n.filters.review_rating || void 0,
|
|
1193
|
-
filterByPrice: (s =
|
|
1225
|
+
filterByPrice: (s = L.transformFilterPrices(n, void 0, r, t)) == null ? void 0 : s.join("-"),
|
|
1194
1226
|
filterByStar: n.filters.rating || void 0,
|
|
1195
|
-
onlyRecommendedHotelOffers: ((a = n.filters.sort_by) == null ? void 0 : a.value) ===
|
|
1227
|
+
onlyRecommendedHotelOffers: ((a = n.filters.sort_by) == null ? void 0 : a.value) === de.TopPicks,
|
|
1196
1228
|
sortBy: (c = n.filters.sort_by) == null ? void 0 : c.value,
|
|
1197
1229
|
sortByOrder: (f = n.filters.sort_by) == null ? void 0 : f.direction,
|
|
1198
1230
|
currency: window.RevolugoElements.config.currency,
|
|
1199
1231
|
lang: window.RevolugoElements.config.lang
|
|
1200
1232
|
};
|
|
1201
|
-
if (n.isPolling &&
|
|
1233
|
+
if (n.isPolling && ne(n.pollingPayload, u))
|
|
1202
1234
|
return;
|
|
1203
|
-
|
|
1235
|
+
P.$emit(v.HotelOffersPollingStarted), e("SET_IS_POLLING", !0), e("SET_POLLING_PAYLOAD", u), e("SET_HAS_ERROR", !1), i.startingAfter || e("SET_HOTEL_OFFERS", []), e("SET_HOTEL_OFFERS_CURRENCY", null), await (o == null ? void 0 : o.hotelOffers.list(
|
|
1204
1236
|
u,
|
|
1205
|
-
(
|
|
1206
|
-
var p,
|
|
1207
|
-
if (!
|
|
1237
|
+
(d, l) => {
|
|
1238
|
+
var p, I;
|
|
1239
|
+
if (!ne(n.pollingPayload, u))
|
|
1208
1240
|
return;
|
|
1209
|
-
if (
|
|
1210
|
-
e("SET_IS_POLLING", !1), e("SET_HAS_ERROR", !0), console.error("Cannot retrieve hotel offers:",
|
|
1241
|
+
if (d) {
|
|
1242
|
+
e("SET_IS_POLLING", !1), e("SET_HAS_ERROR", !0), console.error("Cannot retrieve hotel offers:", d);
|
|
1211
1243
|
return;
|
|
1212
1244
|
}
|
|
1213
1245
|
if (e(
|
|
1214
1246
|
"SET_IS_POLLING",
|
|
1215
1247
|
(((p = l == null ? void 0 : l.meta) == null ? void 0 : p.status) ?? "").toLowerCase() !== "complete"
|
|
1216
|
-
), !((
|
|
1248
|
+
), !((I = l == null ? void 0 : l.data) != null && I.hotelOffers))
|
|
1217
1249
|
return;
|
|
1218
|
-
i.startingAfter ? e("ADD_HOTEL_OFFERS", l.data.hotelOffers) : e("SET_HOTEL_OFFERS", l.data.hotelOffers),
|
|
1250
|
+
i.startingAfter ? e("ADD_HOTEL_OFFERS", l.data.hotelOffers) : e("SET_HOTEL_OFFERS", l.data.hotelOffers), P.$emit(
|
|
1219
1251
|
v.HotelOffersRetrieved,
|
|
1220
1252
|
l.data.hotelOffers
|
|
1221
1253
|
), e("SET_HOTEL_OFFERS_CURRENCY", l.data.currency), e("SET_PRICE_HISTOGRAM", l.data.priceHistogram), e("SET_PRICE_MIN", l.data.priceMin), e("SET_PRICE_MAX", l.data.priceMax), e("SET_STARTING_AFTER", l.meta.startingAfter);
|
|
1222
|
-
const
|
|
1223
|
-
const
|
|
1254
|
+
const h = (te) => {
|
|
1255
|
+
const V = L.getPriceMin(
|
|
1224
1256
|
n,
|
|
1225
1257
|
void 0,
|
|
1226
1258
|
r,
|
|
1227
1259
|
t
|
|
1228
|
-
),
|
|
1260
|
+
), re = L.getPriceMax(
|
|
1229
1261
|
n,
|
|
1230
1262
|
void 0,
|
|
1231
1263
|
r,
|
|
1232
1264
|
t
|
|
1233
1265
|
);
|
|
1234
|
-
return
|
|
1235
|
-
}, g =
|
|
1266
|
+
return V === re && V === 0 ? !0 : te >= V && te <= re;
|
|
1267
|
+
}, g = h(n.filters.price[0]) ? n.filters.price[0] : 0, R = h(n.filters.price[1]) ? n.filters.price[1] : 0;
|
|
1236
1268
|
e("SET_FILTERS", {
|
|
1237
1269
|
...n.filters,
|
|
1238
1270
|
price: [g, R]
|
|
@@ -1241,33 +1273,33 @@ const xt = "", qt = 0, Ut = [0, 0], Nt = le.TopPicks, Bt = "asc", Pe = {
|
|
|
1241
1273
|
{
|
|
1242
1274
|
maxCallCount: 10
|
|
1243
1275
|
}
|
|
1244
|
-
).catch((
|
|
1245
|
-
e("SET_IS_POLLING", !1), e("SET_HAS_ERROR", !0), console.error("Cannot retrieve hotel offers:",
|
|
1276
|
+
).catch((d) => {
|
|
1277
|
+
e("SET_IS_POLLING", !1), e("SET_HAS_ERROR", !0), console.error("Cannot retrieve hotel offers:", d);
|
|
1246
1278
|
}));
|
|
1247
1279
|
}
|
|
1248
1280
|
},
|
|
1249
1281
|
100
|
|
1250
1282
|
)
|
|
1251
|
-
},
|
|
1252
|
-
actions:
|
|
1283
|
+
}, zt = {
|
|
1284
|
+
actions: Yt,
|
|
1253
1285
|
namespaced: !0,
|
|
1254
|
-
getters:
|
|
1255
|
-
mutations:
|
|
1256
|
-
state:
|
|
1257
|
-
},
|
|
1286
|
+
getters: L,
|
|
1287
|
+
mutations: Vt,
|
|
1288
|
+
state: Ie
|
|
1289
|
+
}, W = {
|
|
1258
1290
|
hotelRoomOfferRequestByHotelId: {}
|
|
1259
|
-
},
|
|
1291
|
+
}, Qt = {
|
|
1260
1292
|
hotelRoomOfferRequest(e) {
|
|
1261
1293
|
return (t) => e.hotelRoomOfferRequestByHotelId[t];
|
|
1262
1294
|
},
|
|
1263
1295
|
nightCount(e) {
|
|
1264
1296
|
return (t) => {
|
|
1265
1297
|
if (e.hotelRoomOfferRequestByHotelId[t])
|
|
1266
|
-
return
|
|
1298
|
+
return k(
|
|
1267
1299
|
e.hotelRoomOfferRequestByHotelId[t].checkOutDate,
|
|
1268
1300
|
"YYYY-MM-DD"
|
|
1269
1301
|
).diff(
|
|
1270
|
-
|
|
1302
|
+
k(
|
|
1271
1303
|
e.hotelRoomOfferRequestByHotelId[t].checkInDate,
|
|
1272
1304
|
"YYYY-MM-DD"
|
|
1273
1305
|
),
|
|
@@ -1275,28 +1307,28 @@ const xt = "", qt = 0, Ut = [0, 0], Nt = le.TopPicks, Bt = "asc", Pe = {
|
|
|
1275
1307
|
);
|
|
1276
1308
|
};
|
|
1277
1309
|
}
|
|
1278
|
-
},
|
|
1279
|
-
|
|
1310
|
+
}, Kt = {
|
|
1311
|
+
...$.mutations(W),
|
|
1280
1312
|
DELETE_HOTEL_ROOM_OFFER_REQUEST(e, t) {
|
|
1281
|
-
|
|
1313
|
+
b.set(e.hotelRoomOfferRequestByHotelId, t, void 0);
|
|
1282
1314
|
},
|
|
1283
1315
|
RESET_HOTEL_ROOM_OFFER_REQUEST(e, t) {
|
|
1284
|
-
|
|
1316
|
+
b.set(e.hotelRoomOfferRequestByHotelId, t, {
|
|
1285
1317
|
...e.hotelRoomOfferRequestByHotelId[t],
|
|
1286
1318
|
hasError: !1,
|
|
1287
1319
|
id: null
|
|
1288
1320
|
});
|
|
1289
1321
|
},
|
|
1290
1322
|
RESET_HOTEL_ROOM_OFFER_REQUESTS() {
|
|
1291
|
-
|
|
1323
|
+
W.hotelRoomOfferRequestByHotelId = {};
|
|
1292
1324
|
},
|
|
1293
1325
|
SET_HOTEL_ROOM_OFFER_REQUEST(e, t) {
|
|
1294
|
-
|
|
1326
|
+
b.set(e.hotelRoomOfferRequestByHotelId, t.hotelId, {
|
|
1295
1327
|
...e.hotelRoomOfferRequestByHotelId[t.hotelId],
|
|
1296
1328
|
...t
|
|
1297
1329
|
});
|
|
1298
1330
|
}
|
|
1299
|
-
},
|
|
1331
|
+
}, Wt = {
|
|
1300
1332
|
createHotelRoomOfferRequest: async ({ commit: e }, t) => {
|
|
1301
1333
|
const r = m();
|
|
1302
1334
|
if (r)
|
|
@@ -1308,7 +1340,7 @@ const xt = "", qt = 0, Ut = [0, 0], Nt = le.TopPicks, Bt = "asc", Pe = {
|
|
|
1308
1340
|
isFetching: !0
|
|
1309
1341
|
});
|
|
1310
1342
|
const n = {
|
|
1311
|
-
|
|
1343
|
+
body: {
|
|
1312
1344
|
adultCount: t.adultCount,
|
|
1313
1345
|
checkInDate: t.checkInDate,
|
|
1314
1346
|
checkOutDate: t.checkOutDate,
|
|
@@ -1318,8 +1350,8 @@ const xt = "", qt = 0, Ut = [0, 0], Nt = le.TopPicks, Bt = "asc", Pe = {
|
|
|
1318
1350
|
sourceMarket: t.sourceMarket
|
|
1319
1351
|
}
|
|
1320
1352
|
}, { eventMetadata: i } = window.RevolugoElements.config;
|
|
1321
|
-
he(i) || (n.
|
|
1322
|
-
...
|
|
1353
|
+
he(i) || (n.body.eventMetadata = {
|
|
1354
|
+
...ge(i, ["name", "slug"]),
|
|
1323
1355
|
name: i.slug || i.name
|
|
1324
1356
|
});
|
|
1325
1357
|
const o = await r.hotelRoomOfferRequests.create(
|
|
@@ -1387,27 +1419,27 @@ const xt = "", qt = 0, Ut = [0, 0], Nt = le.TopPicks, Bt = "asc", Pe = {
|
|
|
1387
1419
|
e("DELETE_HOTEL_ROOM_OFFER_REQUEST", t), console.error("Cannot retrieve hotel offer request:", n);
|
|
1388
1420
|
}
|
|
1389
1421
|
}
|
|
1390
|
-
},
|
|
1391
|
-
actions:
|
|
1392
|
-
getters:
|
|
1393
|
-
mutations:
|
|
1422
|
+
}, Jt = {
|
|
1423
|
+
actions: Wt,
|
|
1424
|
+
getters: Qt,
|
|
1425
|
+
mutations: Kt,
|
|
1394
1426
|
namespaced: !0,
|
|
1395
|
-
state:
|
|
1396
|
-
},
|
|
1427
|
+
state: W
|
|
1428
|
+
}, Fe = {
|
|
1397
1429
|
hotelRoomOffersByHotel: {}
|
|
1398
|
-
},
|
|
1430
|
+
}, Xt = {
|
|
1399
1431
|
hotelRoomOffers(e) {
|
|
1400
1432
|
return (t) => e.hotelRoomOffersByHotel[t];
|
|
1401
1433
|
},
|
|
1402
1434
|
hotelTimezone(e) {
|
|
1403
1435
|
return (t) => e.hotelRoomOffersByHotel[t].hotelTimezone;
|
|
1404
1436
|
}
|
|
1405
|
-
},
|
|
1437
|
+
}, Zt = {
|
|
1406
1438
|
RESET_HOTEL_ROOM_OFFERS(e) {
|
|
1407
1439
|
e.hotelRoomOffersByHotel = {};
|
|
1408
1440
|
},
|
|
1409
1441
|
SET_HOTEL_ROOM_OFFERS(e, t) {
|
|
1410
|
-
|
|
1442
|
+
F(e.hotelRoomOffersByHotel, t.hotelId, t);
|
|
1411
1443
|
},
|
|
1412
1444
|
PUSH_IN_PROGRESS_HOTEL_ROOM_OFFER(e, {
|
|
1413
1445
|
hotelId: t,
|
|
@@ -1417,7 +1449,7 @@ const xt = "", qt = 0, Ut = [0, 0], Nt = le.TopPicks, Bt = "asc", Pe = {
|
|
|
1417
1449
|
if (!n)
|
|
1418
1450
|
return;
|
|
1419
1451
|
const i = n.inProgressOffers;
|
|
1420
|
-
i &&
|
|
1452
|
+
i && F(e.hotelRoomOffersByHotel, t, {
|
|
1421
1453
|
...n,
|
|
1422
1454
|
inProgressOffers: [...i, r]
|
|
1423
1455
|
});
|
|
@@ -1435,7 +1467,7 @@ const xt = "", qt = 0, Ut = [0, 0], Nt = le.TopPicks, Bt = "asc", Pe = {
|
|
|
1435
1467
|
const o = i.findIndex(
|
|
1436
1468
|
(s) => s.id === r.id
|
|
1437
1469
|
);
|
|
1438
|
-
o !== void 0 &&
|
|
1470
|
+
o !== void 0 && F(e.hotelRoomOffersByHotel, t, {
|
|
1439
1471
|
...n,
|
|
1440
1472
|
inProgressOffers: [
|
|
1441
1473
|
...i.slice(0, o),
|
|
@@ -1461,16 +1493,16 @@ const xt = "", qt = 0, Ut = [0, 0], Nt = le.TopPicks, Bt = "asc", Pe = {
|
|
|
1461
1493
|
if (s === void 0)
|
|
1462
1494
|
return;
|
|
1463
1495
|
const a = o[s];
|
|
1464
|
-
r.taxIncludedPrice > a.taxIncludedPrice &&
|
|
1496
|
+
r.taxIncludedPrice > a.taxIncludedPrice && P.$emit(v.HotelRoomOffersPriceIncreased, [
|
|
1465
1497
|
r,
|
|
1466
1498
|
a
|
|
1467
1499
|
]), qe(
|
|
1468
1500
|
r.cancellationPolicies,
|
|
1469
1501
|
a.cancellationPolicies
|
|
1470
|
-
) ||
|
|
1502
|
+
) || P.$emit(
|
|
1471
1503
|
v.CancellationPoliciesUpdated,
|
|
1472
1504
|
r.cancellationPolicies
|
|
1473
|
-
),
|
|
1505
|
+
), F(e.hotelRoomOffersByHotel, t, {
|
|
1474
1506
|
...i,
|
|
1475
1507
|
offers: [
|
|
1476
1508
|
...o.slice(0, s),
|
|
@@ -1483,7 +1515,7 @@ const xt = "", qt = 0, Ut = [0, 0], Nt = le.TopPicks, Bt = "asc", Pe = {
|
|
|
1483
1515
|
]
|
|
1484
1516
|
});
|
|
1485
1517
|
}
|
|
1486
|
-
},
|
|
1518
|
+
}, er = {
|
|
1487
1519
|
async createBookingPolicies({ commit: e }, {
|
|
1488
1520
|
addBreakfast: t,
|
|
1489
1521
|
hotelId: r,
|
|
@@ -1493,7 +1525,7 @@ const xt = "", qt = 0, Ut = [0, 0], Nt = le.TopPicks, Bt = "asc", Pe = {
|
|
|
1493
1525
|
const i = m();
|
|
1494
1526
|
if (!i)
|
|
1495
1527
|
return;
|
|
1496
|
-
const o = (s =
|
|
1528
|
+
const o = (s = Fe.hotelRoomOffersByHotel[r].offers) == null ? void 0 : s.find(
|
|
1497
1529
|
(a) => a.id === n
|
|
1498
1530
|
);
|
|
1499
1531
|
o && e("PUSH_IN_PROGRESS_HOTEL_ROOM_OFFER", {
|
|
@@ -1505,13 +1537,13 @@ const xt = "", qt = 0, Ut = [0, 0], Nt = le.TopPicks, Bt = "asc", Pe = {
|
|
|
1505
1537
|
});
|
|
1506
1538
|
try {
|
|
1507
1539
|
const a = await i.bookingPolicies.create({
|
|
1508
|
-
|
|
1540
|
+
body: {
|
|
1509
1541
|
addBreakfast: t,
|
|
1510
1542
|
hotelRoomOfferId: n,
|
|
1511
1543
|
lang: window.RevolugoElements.config.lang
|
|
1512
1544
|
}
|
|
1513
1545
|
});
|
|
1514
|
-
return
|
|
1546
|
+
return P.$emit(v.BookingPolicyCreated, a), e("UPDATE_IN_PROGRESS_HOTEL_ROOM_OFFER", {
|
|
1515
1547
|
hotelId: r,
|
|
1516
1548
|
hotelRoomOffer: {
|
|
1517
1549
|
id: n,
|
|
@@ -1556,7 +1588,7 @@ const xt = "", qt = 0, Ut = [0, 0], Nt = le.TopPicks, Bt = "asc", Pe = {
|
|
|
1556
1588
|
id: n
|
|
1557
1589
|
});
|
|
1558
1590
|
const o = await i.hotelRoomOffers.create({
|
|
1559
|
-
|
|
1591
|
+
body: {
|
|
1560
1592
|
addBreakfast: t,
|
|
1561
1593
|
currency: window.RevolugoElements.config.currency,
|
|
1562
1594
|
hotelRoomOffers: [
|
|
@@ -1615,61 +1647,61 @@ const xt = "", qt = 0, Ut = [0, 0], Nt = le.TopPicks, Bt = "asc", Pe = {
|
|
|
1615
1647
|
v.HotelRoomOffersRetrieved,
|
|
1616
1648
|
o
|
|
1617
1649
|
);
|
|
1618
|
-
const
|
|
1619
|
-
for (const g of
|
|
1650
|
+
const d = (a = o == null ? void 0 : o.data) == null ? void 0 : a.hotelTimezone, l = (c = o == null ? void 0 : o.data) != null && c.hotelRoomOffers ? [...o.data.hotelRoomOffers] : [], h = ((f = t[r.hotelId]) == null ? void 0 : f.inProgressOffers) || [];
|
|
1651
|
+
for (const g of h)
|
|
1620
1652
|
l.findIndex(
|
|
1621
1653
|
(p) => p.id === g.id
|
|
1622
1654
|
) === -1 && l.push(g);
|
|
1623
1655
|
e("SET_HOTEL_ROOM_OFFERS", {
|
|
1624
1656
|
hasError: !1,
|
|
1625
1657
|
hotelId: r.hotelId,
|
|
1626
|
-
hotelTimezone:
|
|
1658
|
+
hotelTimezone: d,
|
|
1627
1659
|
isPolling: (((u = o == null ? void 0 : o.meta) == null ? void 0 : u.status) ?? "").toLowerCase() !== "complete",
|
|
1628
1660
|
offers: l.sort((g, R) => g.price - R.price),
|
|
1629
|
-
inProgressOffers:
|
|
1661
|
+
inProgressOffers: h
|
|
1630
1662
|
});
|
|
1631
1663
|
}
|
|
1632
1664
|
}
|
|
1633
1665
|
));
|
|
1634
1666
|
}
|
|
1635
|
-
},
|
|
1636
|
-
actions:
|
|
1637
|
-
getters:
|
|
1638
|
-
mutations:
|
|
1667
|
+
}, tr = {
|
|
1668
|
+
actions: er,
|
|
1669
|
+
getters: Xt,
|
|
1670
|
+
mutations: Zt,
|
|
1639
1671
|
namespaced: !0,
|
|
1640
|
-
state:
|
|
1672
|
+
state: Fe
|
|
1641
1673
|
};
|
|
1642
|
-
|
|
1643
|
-
const
|
|
1644
|
-
actions:
|
|
1674
|
+
b.use(nt);
|
|
1675
|
+
const le = {}, rr = {}, nr = new _({
|
|
1676
|
+
actions: rr,
|
|
1645
1677
|
modules: {
|
|
1646
|
-
breakpointService:
|
|
1647
|
-
hotelOfferRequest:
|
|
1648
|
-
hotelOffers:
|
|
1649
|
-
hotelRoomOfferRequest:
|
|
1650
|
-
hotelRoomOffers:
|
|
1651
|
-
hotelImages:
|
|
1678
|
+
breakpointService: $t,
|
|
1679
|
+
hotelOfferRequest: kt,
|
|
1680
|
+
hotelOffers: zt,
|
|
1681
|
+
hotelRoomOfferRequest: Jt,
|
|
1682
|
+
hotelRoomOffers: tr,
|
|
1683
|
+
hotelImages: Ft
|
|
1652
1684
|
},
|
|
1653
|
-
mutations:
|
|
1654
|
-
plugins: [
|
|
1655
|
-
state:
|
|
1656
|
-
strict:
|
|
1657
|
-
}),
|
|
1685
|
+
mutations: $.mutations(le),
|
|
1686
|
+
plugins: [_t.plugin],
|
|
1687
|
+
state: le,
|
|
1688
|
+
strict: De
|
|
1689
|
+
}), cr = {
|
|
1658
1690
|
install(e) {
|
|
1659
1691
|
e.mixin({
|
|
1660
|
-
store:
|
|
1692
|
+
store: nr
|
|
1661
1693
|
});
|
|
1662
1694
|
}
|
|
1663
1695
|
};
|
|
1664
1696
|
export {
|
|
1665
1697
|
Pe as D,
|
|
1666
|
-
|
|
1667
|
-
|
|
1668
|
-
|
|
1669
|
-
|
|
1670
|
-
|
|
1671
|
-
|
|
1672
|
-
|
|
1673
|
-
|
|
1698
|
+
Ut as F,
|
|
1699
|
+
Bt as P,
|
|
1700
|
+
Nt as R,
|
|
1701
|
+
nr as a,
|
|
1702
|
+
qt as b,
|
|
1703
|
+
ar as d,
|
|
1704
|
+
ur as g,
|
|
1705
|
+
cr as s
|
|
1674
1706
|
};
|
|
1675
|
-
//# sourceMappingURL=revolugo.store.
|
|
1707
|
+
//# sourceMappingURL=revolugo.store.CLXQpFB9.min.js.map
|