@revolugo/elements 5.26.2 → 6.0.0-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/index.es.min.js +2060 -2592
- package/dist/index.es.min.js.map +1 -1
- package/dist/index.min.js +10 -40
- package/dist/index.min.js.map +1 -1
- package/dist/{revolugo.banktransferdetails.DxzWSquz.min.js → revolugo.banktransferdetails.D0SlOsTI.min.js} +33 -37
- package/dist/{revolugo.bdaterangepicker.DAOZptUO.min.js → revolugo.bdaterangepicker.BIehsbY2.min.js} +20 -20
- package/dist/{revolugo.bformattedamount.C0KLwzwl.min.js → revolugo.bformattedamount.CEmw-f2u.min.js} +3 -3
- package/dist/{revolugo.bhotelroomsdetails.Z7i3IAGg.min.js → revolugo.bhotelroomsdetails.DSO88F2i.min.js} +13 -13
- package/dist/{revolugo.bhotelsearchbar.yigA_cAU.min.js → revolugo.bhotelsearchbar.DdZV94FM.min.js} +19 -19
- package/dist/{revolugo.bookingdetailssidebar.DnzGhpqw.min.js → revolugo.bookingdetailssidebar.BH_hcOXv.min.js} +6 -6
- package/dist/{revolugo.bookingdetailssidebar.BVkbxa9s.min.js → revolugo.bookingdetailssidebar.CJVvasR8.min.js} +17 -17
- package/dist/{revolugo.bookingmanager.DwuWRxAd.min.js → revolugo.bookingmanager.B1W9Srwo.min.js} +38 -38
- package/dist/{revolugo.bphoneinput.H3ff5kTX.min.js → revolugo.bphoneinput.7ehda58T.min.js} +33 -37
- package/dist/{revolugo.bpricesummaryskeleton.hwCth_b2.min.js → revolugo.bpricesummaryskeleton.CW9ghK0H.min.js} +6 -6
- package/dist/{revolugo.breakpoint-service.BlEWjg4g.min.js → revolugo.breakpoint-service.Cu-mwTuh.min.js} +3 -3
- package/dist/{revolugo.bstarrating.Bz8C7CvH.min.js → revolugo.bstarrating.ErgsKLSE.min.js} +8 -8
- package/dist/{revolugo.btag.DZN4j_hX.min.js → revolugo.btag.3FcEfaJ1.min.js} +9 -9
- package/dist/{revolugo.cancellationpoliciesbadge.DD3sOfkX.min.js → revolugo.cancellationpoliciesbadge.BTRNjxDU.min.js} +9 -9
- package/dist/{revolugo.cancellationpoliciesbadge.DIm9l5NJ.min.js → revolugo.cancellationpoliciesbadge.Cai7MdmA.min.js} +6 -6
- package/dist/{revolugo.cancellationpolicieslist.DdvjNdDB.min.js → revolugo.cancellationpolicieslist.DNVE52l9.min.js} +3 -3
- package/dist/{revolugo.cancellationpolicieslist.Yt8G1Lb0.min.js → revolugo.cancellationpolicieslist.fIHYU01N.min.js} +6 -6
- package/dist/{revolugo.common.BZH_Op12.min.js → revolugo.common.BMERDAjG.min.js} +2 -2
- package/dist/revolugo.creditcardform.B_uqS9k4.min.js +2003 -0
- package/dist/{revolugo.creditcardform.BI_FpSmL.min.js → revolugo.creditcardform.DPxI16M2.min.js} +6 -6
- package/dist/{revolugo.creditcardpayment.DnTKJs-I.min.js → revolugo.creditcardpayment.B5ZJI0w6.min.js} +34 -34
- package/dist/{revolugo.creditcardpayment.02PN4MWk.min.js → revolugo.creditcardpayment.D9TTH4NJ.min.js} +6 -6
- package/dist/{revolugo.currencypicker.rla5Gh6r.min.js → revolugo.currencypicker.D2kBqRQY.min.js} +9 -9
- package/dist/{revolugo.currencypickerbtn.BTEEO9t4.min.js → revolugo.currencypickerbtn.8QocBBvi.min.js} +11 -11
- package/dist/{revolugo.currencypickerbtn.DVaUT3Sv.min.js → revolugo.currencypickerbtn.C_Mpqa0P.min.js} +6 -6
- package/dist/{revolugo.dialog-attach.DCu6y0mp.min.js → revolugo.dialog-attach.c30M_gWU.min.js} +2 -2
- package/dist/{revolugo.fastbookingflow.DRTH66_Y.min.js → revolugo.fastbookingflow.M2qd2tsV.min.js} +6 -6
- package/dist/{revolugo.fullbookingflow.DZeA_09f.min.js → revolugo.fullbookingflow.BTn49b-c.min.js} +51 -51
- package/dist/{revolugo.hotel-offer.BMV5LoO-.min.js → revolugo.hotel-offer.wIngFNZX.min.js} +17 -17
- package/dist/{revolugo.hoteldescriptionview.iGRk1gJK.min.js → revolugo.hoteldescriptionview.Bq9LguL5.min.js} +6 -6
- package/dist/{revolugo.hoteldescriptionview.CFVTwBfb.min.js → revolugo.hoteldescriptionview.DLwdlhnb.min.js} +284 -267
- package/dist/{revolugo.hotelofferitemlayout.B47vwC31.min.js → revolugo.hotelofferitemlayout.FfUroZrA.min.js} +10 -10
- package/dist/{revolugo.hotelofferlist.CH8RSatG.min.js → revolugo.hotelofferlist.BTHg4q-w.min.js} +6 -6
- package/dist/revolugo.hotelofferlist.lqI-6UwY.min.js +4191 -0
- package/dist/{revolugo.hotelofferrequestcreator.DRaWs0Tl.min.js → revolugo.hotelofferrequestcreator.C2mvwbtG.min.js} +14 -14
- package/dist/{revolugo.hoteloffersearchmenu.BIC_Zl37.min.js → revolugo.hoteloffersearchmenu.DwK1lL0-.min.js} +6 -6
- package/dist/{revolugo.hoteloffersmap.BNeU4Ckq.min.js → revolugo.hoteloffersmap.CvFhDHYT.min.js} +33 -33
- package/dist/{revolugo.hoteloffersmap.kwmpn7NH.min.js → revolugo.hoteloffersmap.lfIuMPim.min.js} +6 -6
- package/dist/{revolugo.hoteloffersview.DCWgpMu6.min.js → revolugo.hoteloffersview.DWoFZ5Xe.min.js} +6 -6
- package/dist/{revolugo.hoteloffersview.Dv_Q1e1i.min.js → revolugo.hoteloffersview.Wxy0j12k.min.js} +19 -19
- package/dist/{revolugo.hotelroomofferlist.jL0zho9e.min.js → revolugo.hotelroomofferlist.BXeeR-lU.min.js} +53 -53
- package/dist/{revolugo.hotelroomofferlist.CRfe1uw4.min.js → revolugo.hotelroomofferlist.IYfAtMjj.min.js} +6 -6
- package/dist/{revolugo.hotelroomofferrequestcreator.CJQ2CdNw.min.js → revolugo.hotelroomofferrequestcreator.CypFSZQP.min.js} +12 -12
- package/dist/{revolugo.hotelroomoffersbookingflow.BQQoJFTW.min.js → revolugo.hotelroomoffersbookingflow.Ckujgcsl.min.js} +19 -19
- package/dist/{revolugo.hotelroomoffersearchmenu.pEi8lzHy.min.js → revolugo.hotelroomoffersearchmenu.Brh4l-bH.min.js} +5 -5
- package/dist/{revolugo.hotelroomoffersearchmenu.DCPFjC0g.min.js → revolugo.hotelroomoffersearchmenu.KIJcPK62.min.js} +4 -4
- package/dist/{revolugo.hotelroomoffersview.CwvF2Lg9.min.js → revolugo.hotelroomoffersview.BEaf8k08.min.js} +6 -6
- package/dist/{revolugo.hotelroomoffersview.mQwWZld8.min.js → revolugo.hotelroomoffersview.ClBpoIvY.min.js} +16 -16
- package/dist/{revolugo.i18n.qxNwIBzD.min.js → revolugo.i18n.B6flGapj.min.js} +2177 -2192
- package/dist/{revolugo.index.BzQBfwkV.min.js → revolugo.index.2xO6EI0w.min.js} +3 -3
- package/dist/{revolugo.index.utQE_7Cl.min.js → revolugo.index.5hyF7mph.min.js} +3 -3
- package/dist/{revolugo.index.CfNhkdgc.min.js → revolugo.index.BMUUUQ6e.min.js} +7 -7
- package/dist/{revolugo.index.DD9JrpcI.min.js → revolugo.index.BRF8X3n9.min.js} +5 -5
- package/dist/{revolugo.index.DqTSC2TR.min.js → revolugo.index.Btv6NrdZ.min.js} +3 -3
- package/dist/{revolugo.index.O87Oqb47.min.js → revolugo.index.C8XuamX-.min.js} +2 -2
- package/dist/{revolugo.index.BPSLxDUk.min.js → revolugo.index.CKodHqzD.min.js} +2 -2
- package/dist/{revolugo.index.CYG3UDgo.min.js → revolugo.index.CSQyjabN.min.js} +6 -6
- package/dist/{revolugo.index.CNxUzw3a.min.js → revolugo.index.DOhpwGoe.min.js} +9 -9
- package/dist/{revolugo.index.RS6IMZca.min.js → revolugo.index.DzWGRnmT.min.js} +4 -4
- package/dist/{revolugo.index.Ii4kfDF9.min.js → revolugo.index.O0gXxz8L.min.js} +2 -2
- package/dist/revolugo.index.VdjsHoHa.min.js +15 -0
- package/dist/{revolugo.index.DP6aBKb1.min.js → revolugo.index.Y8477YKy.min.js} +7 -7
- package/dist/{revolugo.index.D6ZUh3QP.min.js → revolugo.index.iku7fbFQ.min.js} +10 -10
- package/dist/{revolugo.langpicker.uc5GlZAU.min.js → revolugo.langpicker.DurEp5JD.min.js} +7 -7
- package/dist/{revolugo.langpickerbtn.BhRQdJ_p.min.js → revolugo.langpickerbtn.IJanaPAN.min.js} +6 -6
- package/dist/{revolugo.langpickerbtn.YGHO28He.min.js → revolugo.langpickerbtn.nJ-15Yck.min.js} +10 -10
- package/dist/revolugo.min.js +26 -26
- package/dist/{revolugo.parsed-height.B59lLeec.min.js → revolugo.parsed-height.Ck4tuzMA.min.js} +129 -129
- package/dist/{revolugo.parsed-props.n7LUhO7L.min.js → revolugo.parsed-props.Cv4vlK2H.min.js} +5 -5
- package/dist/{revolugo.prebookform.B3J48Pkc.min.js → revolugo.prebookform.BJvJf-GF.min.js} +29 -29
- package/dist/{revolugo.prebookform.CVh5dThF.min.js → revolugo.prebookform.DC6NaQhz.min.js} +6 -6
- package/dist/{revolugo.revolugo-config.BDiLSGvv.min.js → revolugo.revolugo-config.eJ199U_F.min.js} +1238 -1484
- package/dist/{revolugo.roominglisteditor.Chkqhc2Y.min.js → revolugo.roominglisteditor.BLvr-Fkl.min.js} +6 -6
- package/dist/{revolugo.roominglisteditor.Dkwuendx.min.js → revolugo.roominglisteditor.CK07dsA2.min.js} +20 -20
- package/dist/{revolugo.sentry.BVrKAYI8.min.js → revolugo.sentry.BJarOkzg.min.js} +498 -499
- package/dist/{revolugo.store.CLXQpFB9.min.js → revolugo.store.DiPfvwgS.min.js} +627 -659
- package/dist/{revolugo.storybooktoolbar.ZyQvkGCl.min.js → revolugo.storybooktoolbar.by8U1xIL.min.js} +20 -20
- package/dist/{revolugo.termsandconditions.DMPOujnj.min.js → revolugo.termsandconditions.Bj0hUrri.min.js} +6 -6
- package/dist/{revolugo.termsandconditions.ClSGaGKj.min.js → revolugo.termsandconditions.CaQXjD29.min.js} +4 -4
- package/dist/revolugo.typed-mixins.BJMIjm4p.min.js +8 -0
- package/dist/{revolugo.valert.Dy_fVPQq.min.js → revolugo.valert.CG2oNawN.min.js} +7 -7
- package/dist/{revolugo.vautocomplete.DfAUnP4D.min.js → revolugo.vautocomplete.BVFgoUPc.min.js} +5 -5
- package/dist/{revolugo.vbadge.D61vYgWe.min.js → revolugo.vbadge.DUDFOX6v.min.js} +6 -6
- package/dist/{revolugo.vbtn.Co1ZNQI6.min.js → revolugo.vbtn.CgpjK-rC.min.js} +7 -7
- package/dist/{revolugo.vcard.gY3nOWdt.min.js → revolugo.vcard.EZjjn7hB.min.js} +6 -6
- package/dist/{revolugo.vdialog.BS-urZDH.min.js → revolugo.vdialog.BnvOBOZv.min.js} +12 -12
- package/dist/{revolugo.vexpansionpanelheader.DEWs0GBp.min.js → revolugo.vexpansionpanelheader.DZ2ch7iL.min.js} +8 -8
- package/dist/{revolugo.vform.BDMYpFXp.min.js → revolugo.vform.D4KiqXsg.min.js} +5 -5
- package/dist/{revolugo.vinput.Cm7jTICX.min.js → revolugo.vinput.9l5CzrYJ.min.js} +9 -9
- package/dist/{revolugo.vitemgroup.Cx2l6nP2.min.js → revolugo.vitemgroup.CIcxzzC6.min.js} +7 -7
- package/dist/{revolugo.vlistitem.CFUhBC05.min.js → revolugo.vlistitem.DLjOsb8o.min.js} +8 -8
- package/dist/{revolugo.vmenu.BklgEHiC.min.js → revolugo.vmenu.CeS2GyXZ.min.js} +10 -10
- package/dist/{revolugo.vselect.IUnGF2CT.min.js → revolugo.vselect.Bp6HU30r.min.js} +15 -15
- package/dist/{revolugo.vsheet.CeC7JEVb.min.js → revolugo.vsheet.DlCCd6PI.min.js} +6 -6
- package/dist/{revolugo.vskeletonloader.T0Sj67u2.min.js → revolugo.vskeletonloader.C1ZuTHjb.min.js} +4 -4
- package/dist/{revolugo.vslidegroup.Dt4KvG1W.min.js → revolugo.vslidegroup.C40JffMI.min.js} +10 -10
- package/dist/{revolugo.vsnackbar.2IsRhccK.min.js → revolugo.vsnackbar.DQ_WLXS-.min.js} +5 -5
- package/dist/{revolugo.vtextfield.ndSvyN0P.min.js → revolugo.vtextfield.D0SzvDXM.min.js} +12 -12
- package/dist/{revolugo.vtoolbar.hGub5RDG.min.js → revolugo.vtoolbar.DPznK_s3.min.js} +5 -5
- package/dist/{revolugo.vtooltip.yWMo-A7h.min.js → revolugo.vtooltip.BRUkBK8U.min.js} +7 -7
- package/dist/{revolugo.vuetify.CCSPNwIH.min.js → revolugo.vuetify.WDp56OG9.min.js} +228 -228
- package/dist/{revolugo.watch-list.Bi8SNUJ6.min.js → revolugo.watch-list.DfnUSWxR.min.js} +3 -3
- package/dist/{revolugo.webcomponentwrapper.Ct1w2wDx.min.js → revolugo.webcomponentwrapper.Bxp0INRR.min.js} +7 -7
- package/package.json +4 -5
- package/dist/revolugo.creditcardform.BayaCj7N.min.js +0 -2003
- package/dist/revolugo.hotelofferlist.BVA1qSK4.min.js +0 -3618
- package/dist/revolugo.index.BOaxC3qr.min.js +0 -15
- package/dist/revolugo.typed-mixins.Dz5yLoi0.min.js +0 -8
|
@@ -1,44 +1,44 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { V as
|
|
3
|
-
import { a as
|
|
1
|
+
import { Q as be, E, s as le, D as Fe } from "./revolugo.revolugo-config.eJ199U_F.min.js";
|
|
2
|
+
import { V as H, d as D, c as he, o as de, r as De, e as Le, a as te, M as ke, f as re, u as xe, h as qe, s as I } from "./revolugo.i18n.B6flGapj.min.js";
|
|
3
|
+
import { a as $ } 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 Ue(e) {
|
|
10
10
|
var t = Number(e.version.split(".")[0]);
|
|
11
11
|
if (t >= 2)
|
|
12
12
|
e.mixin({ beforeCreate: n });
|
|
13
13
|
else {
|
|
14
14
|
var r = e.prototype._init;
|
|
15
|
-
e.prototype._init = function(
|
|
16
|
-
|
|
15
|
+
e.prototype._init = function(o) {
|
|
16
|
+
o === void 0 && (o = {}), o.init = o.init ? [n].concat(o.init) : n, r.call(this, o);
|
|
17
17
|
};
|
|
18
18
|
}
|
|
19
19
|
function n() {
|
|
20
|
-
var
|
|
21
|
-
|
|
20
|
+
var o = this.$options;
|
|
21
|
+
o.store ? this.$store = typeof o.store == "function" ? o.store() : o.store : o.parent && o.parent.$store && (this.$store = o.parent.$store);
|
|
22
22
|
}
|
|
23
23
|
}
|
|
24
|
-
var
|
|
25
|
-
function
|
|
26
|
-
|
|
24
|
+
var Ne = typeof window < "u" ? window : typeof global < "u" ? global : {}, w = Ne.__VUE_DEVTOOLS_GLOBAL_HOOK__;
|
|
25
|
+
function Be(e) {
|
|
26
|
+
w && (e._devtoolHook = w, w.emit("vuex:init", e), w.on("vuex:travel-to-state", function(t) {
|
|
27
27
|
e.replaceState(t);
|
|
28
28
|
}), e.subscribe(function(t, r) {
|
|
29
|
-
|
|
29
|
+
w.emit("vuex:mutation", t, r);
|
|
30
30
|
}, { prepend: !0 }), e.subscribeAction(function(t, r) {
|
|
31
|
-
|
|
31
|
+
w.emit("vuex:action", t, r);
|
|
32
32
|
}, { prepend: !0 }));
|
|
33
33
|
}
|
|
34
|
-
function
|
|
34
|
+
function Ge(e, t) {
|
|
35
35
|
return e.filter(t)[0];
|
|
36
36
|
}
|
|
37
|
-
function
|
|
37
|
+
function Y(e, t) {
|
|
38
38
|
if (t === void 0 && (t = []), e === null || typeof e != "object")
|
|
39
39
|
return e;
|
|
40
|
-
var r =
|
|
41
|
-
return
|
|
40
|
+
var r = Ge(t, function(o) {
|
|
41
|
+
return o.original === e;
|
|
42
42
|
});
|
|
43
43
|
if (r)
|
|
44
44
|
return r.copy;
|
|
@@ -46,297 +46,297 @@ function Q(e, t) {
|
|
|
46
46
|
return t.push({
|
|
47
47
|
original: e,
|
|
48
48
|
copy: n
|
|
49
|
-
}), Object.keys(e).forEach(function(
|
|
50
|
-
n[
|
|
49
|
+
}), Object.keys(e).forEach(function(o) {
|
|
50
|
+
n[o] = Y(e[o], t);
|
|
51
51
|
}), n;
|
|
52
52
|
}
|
|
53
|
-
function
|
|
53
|
+
function C(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 ge(e) {
|
|
59
59
|
return e !== null && typeof e == "object";
|
|
60
60
|
}
|
|
61
|
-
function
|
|
61
|
+
function je(e) {
|
|
62
62
|
return e && typeof e.then == "function";
|
|
63
63
|
}
|
|
64
|
-
function
|
|
64
|
+
function Ve(e, t) {
|
|
65
65
|
return function() {
|
|
66
66
|
return e(t);
|
|
67
67
|
};
|
|
68
68
|
}
|
|
69
|
-
var
|
|
69
|
+
var _ = 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
|
+
}, ve = { namespaced: { configurable: !0 } };
|
|
74
|
+
ve.namespaced.get = function() {
|
|
75
75
|
return !!this._rawModule.namespaced;
|
|
76
76
|
};
|
|
77
|
-
|
|
77
|
+
_.prototype.addChild = function(t, r) {
|
|
78
78
|
this._children[t] = r;
|
|
79
79
|
};
|
|
80
|
-
|
|
80
|
+
_.prototype.removeChild = function(t) {
|
|
81
81
|
delete this._children[t];
|
|
82
82
|
};
|
|
83
|
-
|
|
83
|
+
_.prototype.getChild = function(t) {
|
|
84
84
|
return this._children[t];
|
|
85
85
|
};
|
|
86
|
-
|
|
86
|
+
_.prototype.hasChild = function(t) {
|
|
87
87
|
return t in this._children;
|
|
88
88
|
};
|
|
89
|
-
|
|
89
|
+
_.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
|
-
|
|
93
|
-
|
|
92
|
+
_.prototype.forEachChild = function(t) {
|
|
93
|
+
C(this._children, t);
|
|
94
94
|
};
|
|
95
|
-
|
|
96
|
-
this._rawModule.getters &&
|
|
95
|
+
_.prototype.forEachGetter = function(t) {
|
|
96
|
+
this._rawModule.getters && C(this._rawModule.getters, t);
|
|
97
97
|
};
|
|
98
|
-
|
|
99
|
-
this._rawModule.actions &&
|
|
98
|
+
_.prototype.forEachAction = function(t) {
|
|
99
|
+
this._rawModule.actions && C(this._rawModule.actions, t);
|
|
100
100
|
};
|
|
101
|
-
|
|
102
|
-
this._rawModule.mutations &&
|
|
101
|
+
_.prototype.forEachMutation = function(t) {
|
|
102
|
+
this._rawModule.mutations && C(this._rawModule.mutations, t);
|
|
103
103
|
};
|
|
104
|
-
Object.defineProperties(
|
|
105
|
-
var
|
|
104
|
+
Object.defineProperties(_.prototype, ve);
|
|
105
|
+
var y = function(t) {
|
|
106
106
|
this.register([], t, !1);
|
|
107
107
|
};
|
|
108
|
-
|
|
108
|
+
y.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
|
+
y.prototype.getNamespace = function(t) {
|
|
114
114
|
var r = this.root;
|
|
115
|
-
return t.reduce(function(n,
|
|
116
|
-
return r = r.getChild(
|
|
115
|
+
return t.reduce(function(n, o) {
|
|
116
|
+
return r = r.getChild(o), n + (r.namespaced ? o + "/" : "");
|
|
117
117
|
}, "");
|
|
118
118
|
};
|
|
119
|
-
|
|
120
|
-
|
|
119
|
+
y.prototype.update = function(t) {
|
|
120
|
+
Oe([], this.root, t);
|
|
121
121
|
};
|
|
122
|
-
|
|
123
|
-
var
|
|
122
|
+
y.prototype.register = function(t, r, n) {
|
|
123
|
+
var o = this;
|
|
124
124
|
n === void 0 && (n = !0);
|
|
125
|
-
var
|
|
125
|
+
var i = new _(r, n);
|
|
126
126
|
if (t.length === 0)
|
|
127
|
-
this.root =
|
|
127
|
+
this.root = i;
|
|
128
128
|
else {
|
|
129
129
|
var s = this.get(t.slice(0, -1));
|
|
130
|
-
s.addChild(t[t.length - 1],
|
|
130
|
+
s.addChild(t[t.length - 1], i);
|
|
131
131
|
}
|
|
132
|
-
r.modules &&
|
|
133
|
-
|
|
132
|
+
r.modules && C(r.modules, function(a, u) {
|
|
133
|
+
o.register(t.concat(u), a, n);
|
|
134
134
|
});
|
|
135
135
|
};
|
|
136
|
-
|
|
137
|
-
var r = this.get(t.slice(0, -1)), n = t[t.length - 1],
|
|
138
|
-
|
|
136
|
+
y.prototype.unregister = function(t) {
|
|
137
|
+
var r = this.get(t.slice(0, -1)), n = t[t.length - 1], o = r.getChild(n);
|
|
138
|
+
o && o.runtime && r.removeChild(n);
|
|
139
139
|
};
|
|
140
|
-
|
|
140
|
+
y.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 Oe(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
|
+
Oe(
|
|
150
150
|
e.concat(n),
|
|
151
151
|
t.getChild(n),
|
|
152
152
|
r.modules[n]
|
|
153
153
|
);
|
|
154
154
|
}
|
|
155
155
|
}
|
|
156
|
-
var
|
|
156
|
+
var v, O = function(t) {
|
|
157
157
|
var r = this;
|
|
158
|
-
t === void 0 && (t = {}), !
|
|
158
|
+
t === void 0 && (t = {}), !v && typeof window < "u" && window.Vue && me(window.Vue);
|
|
159
159
|
var n = t.plugins;
|
|
160
160
|
n === void 0 && (n = []);
|
|
161
|
-
var
|
|
162
|
-
|
|
163
|
-
var
|
|
164
|
-
this.dispatch = function(l,
|
|
165
|
-
return a.call(
|
|
166
|
-
}, this.commit = function(l,
|
|
167
|
-
return
|
|
168
|
-
}, this.strict =
|
|
161
|
+
var o = t.strict;
|
|
162
|
+
o === void 0 && (o = !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 y(t), this._modulesNamespaceMap = /* @__PURE__ */ Object.create(null), this._subscribers = [], this._watcherVM = new v(), this._makeLocalGettersCache = /* @__PURE__ */ Object.create(null);
|
|
163
|
+
var i = this, s = this, a = s.dispatch, u = s.commit;
|
|
164
|
+
this.dispatch = function(l, d) {
|
|
165
|
+
return a.call(i, l, d);
|
|
166
|
+
}, this.commit = function(l, d, g) {
|
|
167
|
+
return u.call(i, l, d, g);
|
|
168
|
+
}, this.strict = o;
|
|
169
169
|
var f = this._modules.root.state;
|
|
170
|
-
|
|
171
|
-
return
|
|
170
|
+
x(this, f, [], this._modules.root), W(this, f), n.forEach(function(h) {
|
|
171
|
+
return h(r);
|
|
172
172
|
});
|
|
173
|
-
var
|
|
174
|
-
|
|
175
|
-
},
|
|
176
|
-
|
|
173
|
+
var c = t.devtools !== void 0 ? t.devtools : v.config.devtools;
|
|
174
|
+
c && Be(this);
|
|
175
|
+
}, K = { state: { configurable: !0 } };
|
|
176
|
+
K.state.get = function() {
|
|
177
177
|
return this._vm._data.$$state;
|
|
178
178
|
};
|
|
179
|
-
|
|
179
|
+
K.state.set = function(e) {
|
|
180
180
|
};
|
|
181
|
-
|
|
182
|
-
var
|
|
181
|
+
O.prototype.commit = function(t, r, n) {
|
|
182
|
+
var o = this, i = L(t, r, n), s = i.type, a = i.payload, u = { type: s, payload: a }, f = this._mutations[s];
|
|
183
183
|
f && (this._withCommit(function() {
|
|
184
|
-
f.forEach(function(
|
|
185
|
-
|
|
184
|
+
f.forEach(function(h) {
|
|
185
|
+
h(a);
|
|
186
186
|
});
|
|
187
|
-
}), this._subscribers.slice().forEach(function(
|
|
188
|
-
return u
|
|
187
|
+
}), this._subscribers.slice().forEach(function(c) {
|
|
188
|
+
return c(u, o.state);
|
|
189
189
|
}));
|
|
190
190
|
};
|
|
191
|
-
|
|
192
|
-
var n = this,
|
|
193
|
-
if (
|
|
191
|
+
O.prototype.dispatch = function(t, r) {
|
|
192
|
+
var n = this, o = L(t, r), i = o.type, s = o.payload, a = { type: i, payload: s }, u = this._actions[i];
|
|
193
|
+
if (u) {
|
|
194
194
|
try {
|
|
195
|
-
this._actionSubscribers.slice().filter(function(
|
|
196
|
-
return
|
|
197
|
-
}).forEach(function(
|
|
198
|
-
return
|
|
195
|
+
this._actionSubscribers.slice().filter(function(c) {
|
|
196
|
+
return c.before;
|
|
197
|
+
}).forEach(function(c) {
|
|
198
|
+
return c.before(a, n.state);
|
|
199
199
|
});
|
|
200
200
|
} catch {
|
|
201
201
|
}
|
|
202
|
-
var f =
|
|
203
|
-
return
|
|
204
|
-
})) :
|
|
205
|
-
return new Promise(function(
|
|
202
|
+
var f = u.length > 1 ? Promise.all(u.map(function(c) {
|
|
203
|
+
return c(s);
|
|
204
|
+
})) : u[0](s);
|
|
205
|
+
return new Promise(function(c, h) {
|
|
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(d) {
|
|
209
|
+
return d.after;
|
|
210
|
+
}).forEach(function(d) {
|
|
211
|
+
return d.after(a, n.state);
|
|
212
212
|
});
|
|
213
213
|
} catch {
|
|
214
214
|
}
|
|
215
|
-
|
|
215
|
+
c(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(d) {
|
|
219
|
+
return d.error;
|
|
220
|
+
}).forEach(function(d) {
|
|
221
|
+
return d.error(a, n.state, l);
|
|
222
222
|
});
|
|
223
223
|
} catch {
|
|
224
224
|
}
|
|
225
|
-
|
|
225
|
+
h(l);
|
|
226
226
|
});
|
|
227
227
|
});
|
|
228
228
|
}
|
|
229
229
|
};
|
|
230
|
-
|
|
231
|
-
return
|
|
230
|
+
O.prototype.subscribe = function(t, r) {
|
|
231
|
+
return _e(t, this._subscribers, r);
|
|
232
232
|
};
|
|
233
|
-
|
|
233
|
+
O.prototype.subscribeAction = function(t, r) {
|
|
234
234
|
var n = typeof t == "function" ? { before: t } : t;
|
|
235
|
-
return
|
|
235
|
+
return _e(n, this._actionSubscribers, r);
|
|
236
236
|
};
|
|
237
|
-
|
|
238
|
-
var
|
|
237
|
+
O.prototype.watch = function(t, r, n) {
|
|
238
|
+
var o = this;
|
|
239
239
|
return this._watcherVM.$watch(function() {
|
|
240
|
-
return t(
|
|
240
|
+
return t(o.state, o.getters);
|
|
241
241
|
}, r, n);
|
|
242
242
|
};
|
|
243
|
-
|
|
243
|
+
O.prototype.replaceState = function(t) {
|
|
244
244
|
var r = this;
|
|
245
245
|
this._withCommit(function() {
|
|
246
246
|
r._vm._data.$$state = t;
|
|
247
247
|
});
|
|
248
248
|
};
|
|
249
|
-
|
|
250
|
-
n === void 0 && (n = {}), typeof t == "string" && (t = [t]), this._modules.register(t, r),
|
|
249
|
+
O.prototype.registerModule = function(t, r, n) {
|
|
250
|
+
n === void 0 && (n = {}), typeof t == "string" && (t = [t]), this._modules.register(t, r), x(this, this.state, t, this._modules.get(t), n.preserveState), W(this, this.state);
|
|
251
251
|
};
|
|
252
|
-
|
|
252
|
+
O.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 =
|
|
256
|
-
|
|
257
|
-
}),
|
|
255
|
+
var n = J(r.state, t.slice(0, -1));
|
|
256
|
+
v.delete(n, t[t.length - 1]);
|
|
257
|
+
}), Ee(this);
|
|
258
258
|
};
|
|
259
|
-
|
|
259
|
+
O.prototype.hasModule = function(t) {
|
|
260
260
|
return typeof t == "string" && (t = [t]), this._modules.isRegistered(t);
|
|
261
261
|
};
|
|
262
|
-
|
|
263
|
-
this._modules.update(t),
|
|
262
|
+
O.prototype.hotUpdate = function(t) {
|
|
263
|
+
this._modules.update(t), Ee(this, !0);
|
|
264
264
|
};
|
|
265
|
-
|
|
265
|
+
O.prototype._withCommit = function(t) {
|
|
266
266
|
var r = this._committing;
|
|
267
267
|
this._committing = !0, t(), this._committing = r;
|
|
268
268
|
};
|
|
269
|
-
Object.defineProperties(
|
|
270
|
-
function
|
|
269
|
+
Object.defineProperties(O.prototype, K);
|
|
270
|
+
function _e(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 Ee(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
|
+
x(e, r, [], e._modules.root, !0), W(e, r, t);
|
|
280
280
|
}
|
|
281
|
-
function
|
|
281
|
+
function W(e, t, r) {
|
|
282
282
|
var n = e._vm;
|
|
283
283
|
e.getters = {}, e._makeLocalGettersCache = /* @__PURE__ */ Object.create(null);
|
|
284
|
-
var
|
|
285
|
-
|
|
286
|
-
|
|
284
|
+
var o = e._wrappedGetters, i = {};
|
|
285
|
+
C(o, function(a, u) {
|
|
286
|
+
i[u] = Ve(a, e), Object.defineProperty(e.getters, u, {
|
|
287
287
|
get: function() {
|
|
288
|
-
return e._vm[
|
|
288
|
+
return e._vm[u];
|
|
289
289
|
},
|
|
290
290
|
enumerable: !0
|
|
291
291
|
// for local getters
|
|
292
292
|
});
|
|
293
293
|
});
|
|
294
|
-
var s =
|
|
295
|
-
|
|
294
|
+
var s = v.config.silent;
|
|
295
|
+
v.config.silent = !0, e._vm = new v({
|
|
296
296
|
data: {
|
|
297
297
|
$$state: t
|
|
298
298
|
},
|
|
299
|
-
computed:
|
|
300
|
-
}),
|
|
299
|
+
computed: i
|
|
300
|
+
}), v.config.silent = s, e.strict && Je(e), n && (r && e._withCommit(function() {
|
|
301
301
|
n._data.$$state = null;
|
|
302
|
-
}),
|
|
302
|
+
}), v.nextTick(function() {
|
|
303
303
|
return n.$destroy();
|
|
304
304
|
}));
|
|
305
305
|
}
|
|
306
|
-
function
|
|
307
|
-
var
|
|
308
|
-
if (n.namespaced && (e._modulesNamespaceMap[s], e._modulesNamespaceMap[s] = n), !
|
|
309
|
-
var a =
|
|
306
|
+
function x(e, t, r, n, o) {
|
|
307
|
+
var i = !r.length, s = e._modules.getNamespace(r);
|
|
308
|
+
if (n.namespaced && (e._modulesNamespaceMap[s], e._modulesNamespaceMap[s] = n), !i && !o) {
|
|
309
|
+
var a = J(t, r.slice(0, -1)), u = r[r.length - 1];
|
|
310
310
|
e._withCommit(function() {
|
|
311
|
-
|
|
311
|
+
v.set(a, u, n.state);
|
|
312
312
|
});
|
|
313
313
|
}
|
|
314
|
-
var f = n.context =
|
|
315
|
-
n.forEachMutation(function(
|
|
316
|
-
var l = s +
|
|
317
|
-
|
|
318
|
-
}), n.forEachAction(function(
|
|
319
|
-
var l =
|
|
320
|
-
|
|
321
|
-
}), n.forEachGetter(function(
|
|
322
|
-
var l = s +
|
|
323
|
-
|
|
324
|
-
}), n.forEachChild(function(
|
|
325
|
-
|
|
314
|
+
var f = n.context = Ye(e, s, r);
|
|
315
|
+
n.forEachMutation(function(c, h) {
|
|
316
|
+
var l = s + h;
|
|
317
|
+
ze(e, l, c, f);
|
|
318
|
+
}), n.forEachAction(function(c, h) {
|
|
319
|
+
var l = c.root ? h : s + h, d = c.handler || c;
|
|
320
|
+
Ke(e, l, d, f);
|
|
321
|
+
}), n.forEachGetter(function(c, h) {
|
|
322
|
+
var l = s + h;
|
|
323
|
+
We(e, l, c, f);
|
|
324
|
+
}), n.forEachChild(function(c, h) {
|
|
325
|
+
x(e, t, r.concat(h), c, o);
|
|
326
326
|
});
|
|
327
327
|
}
|
|
328
|
-
function
|
|
329
|
-
var n = t === "",
|
|
330
|
-
dispatch: n ? e.dispatch : function(
|
|
331
|
-
var
|
|
332
|
-
return (!
|
|
328
|
+
function Ye(e, t, r) {
|
|
329
|
+
var n = t === "", o = {
|
|
330
|
+
dispatch: n ? e.dispatch : function(i, s, a) {
|
|
331
|
+
var u = L(i, s, a), f = u.payload, c = u.options, h = u.type;
|
|
332
|
+
return (!c || !c.root) && (h = t + h), e.dispatch(h, f);
|
|
333
333
|
},
|
|
334
|
-
commit: n ? e.commit : function(
|
|
335
|
-
var
|
|
336
|
-
(!
|
|
334
|
+
commit: n ? e.commit : function(i, s, a) {
|
|
335
|
+
var u = L(i, s, a), f = u.payload, c = u.options, h = u.type;
|
|
336
|
+
(!c || !c.root) && (h = t + h), e.commit(h, f, c);
|
|
337
337
|
}
|
|
338
338
|
};
|
|
339
|
-
return Object.defineProperties(
|
|
339
|
+
return Object.defineProperties(o, {
|
|
340
340
|
getters: {
|
|
341
341
|
get: n ? function() {
|
|
342
342
|
return e.getters;
|
|
@@ -346,20 +346,20 @@ function ze(e, t, r) {
|
|
|
346
346
|
},
|
|
347
347
|
state: {
|
|
348
348
|
get: function() {
|
|
349
|
-
return
|
|
349
|
+
return J(e.state, r);
|
|
350
350
|
}
|
|
351
351
|
}
|
|
352
|
-
}),
|
|
352
|
+
}), o;
|
|
353
353
|
}
|
|
354
354
|
function Qe(e, t) {
|
|
355
355
|
if (!e._makeLocalGettersCache[t]) {
|
|
356
356
|
var r = {}, n = t.length;
|
|
357
|
-
Object.keys(e.getters).forEach(function(
|
|
358
|
-
if (
|
|
359
|
-
var
|
|
360
|
-
Object.defineProperty(r,
|
|
357
|
+
Object.keys(e.getters).forEach(function(o) {
|
|
358
|
+
if (o.slice(0, n) === t) {
|
|
359
|
+
var i = o.slice(n);
|
|
360
|
+
Object.defineProperty(r, i, {
|
|
361
361
|
get: function() {
|
|
362
|
-
return e.getters[
|
|
362
|
+
return e.getters[o];
|
|
363
363
|
},
|
|
364
364
|
enumerable: !0
|
|
365
365
|
});
|
|
@@ -368,15 +368,15 @@ function Qe(e, t) {
|
|
|
368
368
|
}
|
|
369
369
|
return e._makeLocalGettersCache[t];
|
|
370
370
|
}
|
|
371
|
-
function
|
|
372
|
-
var
|
|
373
|
-
|
|
371
|
+
function ze(e, t, r, n) {
|
|
372
|
+
var o = e._mutations[t] || (e._mutations[t] = []);
|
|
373
|
+
o.push(function(s) {
|
|
374
374
|
r.call(e, n.state, s);
|
|
375
375
|
});
|
|
376
376
|
}
|
|
377
|
-
function
|
|
378
|
-
var
|
|
379
|
-
|
|
377
|
+
function Ke(e, t, r, n) {
|
|
378
|
+
var o = e._actions[t] || (e._actions[t] = []);
|
|
379
|
+
o.push(function(s) {
|
|
380
380
|
var a = r.call(e, {
|
|
381
381
|
dispatch: n.dispatch,
|
|
382
382
|
commit: n.commit,
|
|
@@ -385,172 +385,172 @@ function We(e, t, r, n) {
|
|
|
385
385
|
rootGetters: e.getters,
|
|
386
386
|
rootState: e.state
|
|
387
387
|
}, s);
|
|
388
|
-
return
|
|
389
|
-
throw e._devtoolHook.emit("vuex:error",
|
|
388
|
+
return je(a) || (a = Promise.resolve(a)), e._devtoolHook ? a.catch(function(u) {
|
|
389
|
+
throw e._devtoolHook.emit("vuex:error", u), u;
|
|
390
390
|
}) : a;
|
|
391
391
|
});
|
|
392
392
|
}
|
|
393
|
-
function
|
|
394
|
-
e._wrappedGetters[t] || (e._wrappedGetters[t] = function(
|
|
393
|
+
function We(e, t, r, n) {
|
|
394
|
+
e._wrappedGetters[t] || (e._wrappedGetters[t] = function(i) {
|
|
395
395
|
return r(
|
|
396
396
|
n.state,
|
|
397
397
|
// local state
|
|
398
398
|
n.getters,
|
|
399
399
|
// local getters
|
|
400
|
-
|
|
400
|
+
i.state,
|
|
401
401
|
// root state
|
|
402
|
-
|
|
402
|
+
i.getters
|
|
403
403
|
// root getters
|
|
404
404
|
);
|
|
405
405
|
});
|
|
406
406
|
}
|
|
407
|
-
function
|
|
407
|
+
function Je(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 J(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 L(e, t, r) {
|
|
419
|
+
return ge(e) && e.type && (r = t, t = e, e = e.type), { type: e, payload: t, options: r };
|
|
420
420
|
}
|
|
421
|
-
function
|
|
422
|
-
|
|
421
|
+
function me(e) {
|
|
422
|
+
v && e === v || (v = e, Ue(v));
|
|
423
423
|
}
|
|
424
|
-
var
|
|
424
|
+
var Re = U(function(e, t) {
|
|
425
425
|
var r = {};
|
|
426
|
-
return
|
|
427
|
-
var
|
|
428
|
-
r[
|
|
429
|
-
var a = this.$store.state,
|
|
426
|
+
return q(t).forEach(function(n) {
|
|
427
|
+
var o = n.key, i = n.val;
|
|
428
|
+
r[o] = function() {
|
|
429
|
+
var a = this.$store.state, u = this.$store.getters;
|
|
430
430
|
if (e) {
|
|
431
|
-
var f =
|
|
431
|
+
var f = N(this.$store, "mapState", e);
|
|
432
432
|
if (!f)
|
|
433
433
|
return;
|
|
434
|
-
a = f.context.state,
|
|
434
|
+
a = f.context.state, u = f.context.getters;
|
|
435
435
|
}
|
|
436
|
-
return typeof
|
|
437
|
-
}, r[
|
|
436
|
+
return typeof i == "function" ? i.call(this, a, u) : a[i];
|
|
437
|
+
}, r[o].vuex = !0;
|
|
438
438
|
}), r;
|
|
439
|
-
}),
|
|
439
|
+
}), pe = U(function(e, t) {
|
|
440
440
|
var r = {};
|
|
441
|
-
return
|
|
442
|
-
var
|
|
443
|
-
r[
|
|
444
|
-
for (var a = [],
|
|
441
|
+
return q(t).forEach(function(n) {
|
|
442
|
+
var o = n.key, i = n.val;
|
|
443
|
+
r[o] = function() {
|
|
444
|
+
for (var a = [], u = arguments.length; u--; ) a[u] = arguments[u];
|
|
445
445
|
var f = this.$store.commit;
|
|
446
446
|
if (e) {
|
|
447
|
-
var
|
|
448
|
-
if (!
|
|
447
|
+
var c = N(this.$store, "mapMutations", e);
|
|
448
|
+
if (!c)
|
|
449
449
|
return;
|
|
450
|
-
f =
|
|
450
|
+
f = c.context.commit;
|
|
451
451
|
}
|
|
452
|
-
return typeof
|
|
452
|
+
return typeof i == "function" ? i.apply(this, [f].concat(a)) : f.apply(this.$store, [i].concat(a));
|
|
453
453
|
};
|
|
454
454
|
}), r;
|
|
455
|
-
}),
|
|
455
|
+
}), Te = U(function(e, t) {
|
|
456
456
|
var r = {};
|
|
457
|
-
return
|
|
458
|
-
var
|
|
459
|
-
|
|
460
|
-
if (!(e && !
|
|
461
|
-
return this.$store.getters[
|
|
462
|
-
}, r[
|
|
457
|
+
return q(t).forEach(function(n) {
|
|
458
|
+
var o = n.key, i = n.val;
|
|
459
|
+
i = e + i, r[o] = function() {
|
|
460
|
+
if (!(e && !N(this.$store, "mapGetters", e)))
|
|
461
|
+
return this.$store.getters[i];
|
|
462
|
+
}, r[o].vuex = !0;
|
|
463
463
|
}), r;
|
|
464
|
-
}),
|
|
464
|
+
}), Se = U(function(e, t) {
|
|
465
465
|
var r = {};
|
|
466
|
-
return
|
|
467
|
-
var
|
|
468
|
-
r[
|
|
469
|
-
for (var a = [],
|
|
466
|
+
return q(t).forEach(function(n) {
|
|
467
|
+
var o = n.key, i = n.val;
|
|
468
|
+
r[o] = function() {
|
|
469
|
+
for (var a = [], u = arguments.length; u--; ) a[u] = arguments[u];
|
|
470
470
|
var f = this.$store.dispatch;
|
|
471
471
|
if (e) {
|
|
472
|
-
var
|
|
473
|
-
if (!
|
|
472
|
+
var c = N(this.$store, "mapActions", e);
|
|
473
|
+
if (!c)
|
|
474
474
|
return;
|
|
475
|
-
f =
|
|
475
|
+
f = c.context.dispatch;
|
|
476
476
|
}
|
|
477
|
-
return typeof
|
|
477
|
+
return typeof i == "function" ? i.apply(this, [f].concat(a)) : f.apply(this.$store, [i].concat(a));
|
|
478
478
|
};
|
|
479
479
|
}), r;
|
|
480
|
-
}),
|
|
480
|
+
}), Xe = function(e) {
|
|
481
481
|
return {
|
|
482
|
-
mapState:
|
|
483
|
-
mapGetters:
|
|
484
|
-
mapMutations:
|
|
485
|
-
mapActions:
|
|
482
|
+
mapState: Re.bind(null, e),
|
|
483
|
+
mapGetters: Te.bind(null, e),
|
|
484
|
+
mapMutations: pe.bind(null, e),
|
|
485
|
+
mapActions: Se.bind(null, e)
|
|
486
486
|
};
|
|
487
487
|
};
|
|
488
|
-
function
|
|
489
|
-
return
|
|
488
|
+
function q(e) {
|
|
489
|
+
return Ze(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 Ze(e) {
|
|
496
|
+
return Array.isArray(e) || ge(e);
|
|
497
497
|
}
|
|
498
|
-
function
|
|
498
|
+
function U(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 N(e, t, r) {
|
|
504
504
|
var n = e._modulesNamespaceMap[r];
|
|
505
505
|
return n;
|
|
506
506
|
}
|
|
507
|
-
function
|
|
507
|
+
function et(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(
|
|
512
|
+
r === void 0 && (r = function(c, h, l) {
|
|
513
513
|
return !0;
|
|
514
514
|
});
|
|
515
515
|
var n = e.transformer;
|
|
516
|
-
n === void 0 && (n = function(
|
|
517
|
-
return
|
|
516
|
+
n === void 0 && (n = function(c) {
|
|
517
|
+
return c;
|
|
518
518
|
});
|
|
519
|
-
var
|
|
520
|
-
|
|
521
|
-
return
|
|
519
|
+
var o = e.mutationTransformer;
|
|
520
|
+
o === void 0 && (o = function(c) {
|
|
521
|
+
return c;
|
|
522
522
|
});
|
|
523
|
-
var
|
|
524
|
-
|
|
523
|
+
var i = e.actionFilter;
|
|
524
|
+
i === void 0 && (i = function(c, h) {
|
|
525
525
|
return !0;
|
|
526
526
|
});
|
|
527
527
|
var s = e.actionTransformer;
|
|
528
|
-
s === void 0 && (s = function(
|
|
529
|
-
return
|
|
528
|
+
s === void 0 && (s = function(c) {
|
|
529
|
+
return c;
|
|
530
530
|
});
|
|
531
531
|
var a = e.logMutations;
|
|
532
532
|
a === void 0 && (a = !0);
|
|
533
|
-
var
|
|
534
|
-
|
|
533
|
+
var u = e.logActions;
|
|
534
|
+
u === void 0 && (u = !0);
|
|
535
535
|
var f = e.logger;
|
|
536
|
-
return f === void 0 && (f = console), function(
|
|
537
|
-
var
|
|
538
|
-
typeof f > "u" || (a &&
|
|
539
|
-
var g =
|
|
540
|
-
if (r(l,
|
|
541
|
-
var R =
|
|
542
|
-
|
|
536
|
+
return f === void 0 && (f = console), function(c) {
|
|
537
|
+
var h = Y(c.state);
|
|
538
|
+
typeof f > "u" || (a && c.subscribe(function(l, d) {
|
|
539
|
+
var g = Y(d);
|
|
540
|
+
if (r(l, h, g)) {
|
|
541
|
+
var R = ie(), p = o(l), A = "mutation " + l.type + R;
|
|
542
|
+
ne(f, A, t), f.log("%c prev state", "color: #9E9E9E; font-weight: bold", n(h)), f.log("%c mutation", "color: #03A9F4; font-weight: bold", p), f.log("%c next state", "color: #4CAF50; font-weight: bold", n(g)), oe(f);
|
|
543
543
|
}
|
|
544
|
-
|
|
545
|
-
}),
|
|
546
|
-
if (
|
|
547
|
-
var g =
|
|
548
|
-
|
|
544
|
+
h = g;
|
|
545
|
+
}), u && c.subscribeAction(function(l, d) {
|
|
546
|
+
if (i(l, d)) {
|
|
547
|
+
var g = ie(), R = s(l), p = "action " + l.type + g;
|
|
548
|
+
ne(f, p, t), f.log("%c action", "color: #03A9F4; font-weight: bold", R), oe(f);
|
|
549
549
|
}
|
|
550
550
|
}));
|
|
551
551
|
};
|
|
552
552
|
}
|
|
553
|
-
function
|
|
553
|
+
function ne(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 oe(e, t, r) {
|
|
|
558
558
|
e.log(t);
|
|
559
559
|
}
|
|
560
560
|
}
|
|
561
|
-
function
|
|
561
|
+
function oe(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 ie() {
|
|
569
569
|
var e = /* @__PURE__ */ new Date();
|
|
570
|
-
return " @ " +
|
|
570
|
+
return " @ " + b(e.getHours(), 2) + ":" + b(e.getMinutes(), 2) + ":" + b(e.getSeconds(), 2) + "." + b(e.getMilliseconds(), 3);
|
|
571
571
|
}
|
|
572
|
-
function
|
|
572
|
+
function tt(e, t) {
|
|
573
573
|
return new Array(t + 1).join(e);
|
|
574
574
|
}
|
|
575
|
-
function
|
|
576
|
-
return
|
|
575
|
+
function b(e, t) {
|
|
576
|
+
return tt("0", t - e.toString().length) + e;
|
|
577
577
|
}
|
|
578
|
-
var
|
|
579
|
-
Store:
|
|
580
|
-
install:
|
|
578
|
+
var rt = {
|
|
579
|
+
Store: O,
|
|
580
|
+
install: me,
|
|
581
581
|
version: "3.6.2",
|
|
582
|
-
mapState:
|
|
583
|
-
mapMutations:
|
|
584
|
-
mapGetters:
|
|
585
|
-
mapActions:
|
|
586
|
-
createNamespacedHelpers:
|
|
587
|
-
createLogger:
|
|
588
|
-
},
|
|
582
|
+
mapState: Re,
|
|
583
|
+
mapMutations: pe,
|
|
584
|
+
mapGetters: Te,
|
|
585
|
+
mapActions: Se,
|
|
586
|
+
createNamespacedHelpers: Xe,
|
|
587
|
+
createLogger: et
|
|
588
|
+
}, k = {
|
|
589
589
|
/**
|
|
590
590
|
* THIS OBJECT IS REPLACED AT RUNTIME WITH THE ACTUAL VUEX STORE
|
|
591
591
|
*/
|
|
@@ -597,11 +597,11 @@ var nt = {
|
|
|
597
597
|
}
|
|
598
598
|
}
|
|
599
599
|
};
|
|
600
|
-
function
|
|
600
|
+
function ir() {
|
|
601
601
|
for (var e, t = [], r = arguments.length; r--; ) t[r] = arguments[r];
|
|
602
|
-
return (e =
|
|
602
|
+
return (e = k.store).dispatch.apply(e, t);
|
|
603
603
|
}
|
|
604
|
-
function
|
|
604
|
+
function nt(e) {
|
|
605
605
|
return T(e) && !Array.isArray(e);
|
|
606
606
|
}
|
|
607
607
|
function T(e) {
|
|
@@ -610,33 +610,33 @@ function T(e) {
|
|
|
610
610
|
function ot(e) {
|
|
611
611
|
return typeof e == "number" || /^\d+$/.test(e);
|
|
612
612
|
}
|
|
613
|
-
function
|
|
613
|
+
function it(e, t) {
|
|
614
614
|
return T(e) && t in e;
|
|
615
615
|
}
|
|
616
|
-
function
|
|
616
|
+
function B(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 =
|
|
623
|
-
return n.every(function(
|
|
624
|
-
var
|
|
625
|
-
return r =
|
|
621
|
+
function ye(e, t) {
|
|
622
|
+
var r = e, n = B(t);
|
|
623
|
+
return n.every(function(o) {
|
|
624
|
+
var i = T(r) && r.hasOwnProperty(o);
|
|
625
|
+
return r = i ? r[o] : void 0, i;
|
|
626
626
|
}), r;
|
|
627
627
|
}
|
|
628
|
-
function
|
|
629
|
-
var
|
|
630
|
-
return
|
|
631
|
-
return
|
|
628
|
+
function st(e, t, r, n) {
|
|
629
|
+
var o = B(t);
|
|
630
|
+
return o.reduce(function(i, s, a) {
|
|
631
|
+
return i ? (Array.isArray(i) && ot(s) && (s = parseInt(s)), a === o.length - 1 ? (i[s] = r, !0) : !T(i[s]) || !(s in i) ? !1 : i[s]) : !1;
|
|
632
632
|
}, e);
|
|
633
633
|
}
|
|
634
|
-
function
|
|
635
|
-
var r =
|
|
634
|
+
function at(e, t) {
|
|
635
|
+
var r = B(t);
|
|
636
636
|
if (T(e)) {
|
|
637
637
|
for (; r.length; ) {
|
|
638
638
|
var n = r.shift();
|
|
639
|
-
if (
|
|
639
|
+
if (it(e, n))
|
|
640
640
|
e = e[n];
|
|
641
641
|
else
|
|
642
642
|
return !1;
|
|
@@ -648,16 +648,9 @@ function ut(e, t) {
|
|
|
648
648
|
function ct(e) {
|
|
649
649
|
return JSON.parse(JSON.stringify(e));
|
|
650
650
|
}
|
|
651
|
-
var
|
|
652
|
-
mapping: "standard"
|
|
653
|
-
|
|
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 = {
|
|
651
|
+
var se = {
|
|
652
|
+
mapping: "standard"
|
|
653
|
+
}, ut = {
|
|
661
654
|
camel: function() {
|
|
662
655
|
for (var e = [], t = arguments.length; t--; ) e[t] = arguments[t];
|
|
663
656
|
return e.shift() + e.map(function(r) {
|
|
@@ -668,20 +661,20 @@ var S = {
|
|
|
668
661
|
},
|
|
669
662
|
snake: function() {
|
|
670
663
|
for (var e, t = [], r = arguments.length; r--; ) t[r] = arguments[r];
|
|
671
|
-
return (e = this).camel.apply(e, t).replace(/([a-z])([A-Z])/g, function(n,
|
|
672
|
-
return
|
|
664
|
+
return (e = this).camel.apply(e, t).replace(/([a-z])([A-Z])/g, function(n, o, i) {
|
|
665
|
+
return o + "_" + i;
|
|
673
666
|
}).toLowerCase();
|
|
674
667
|
},
|
|
675
668
|
const: function() {
|
|
676
669
|
for (var e, t = [], r = arguments.length; r--; ) t[r] = arguments[r];
|
|
677
670
|
return (e = this).snake.apply(e, t).toUpperCase();
|
|
678
671
|
}
|
|
679
|
-
},
|
|
672
|
+
}, ft = {
|
|
680
673
|
state: "state",
|
|
681
674
|
getters: "getters",
|
|
682
675
|
actions: "_actions",
|
|
683
676
|
mutations: "_mutations"
|
|
684
|
-
},
|
|
677
|
+
}, ae = {
|
|
685
678
|
/**
|
|
686
679
|
* Standard name mapping function
|
|
687
680
|
*
|
|
@@ -707,34 +700,34 @@ var S = {
|
|
|
707
700
|
simple: function(t, r, n) {
|
|
708
701
|
return t === "actions" ? n.camel("set", r) : r;
|
|
709
702
|
}
|
|
710
|
-
},
|
|
711
|
-
function
|
|
703
|
+
}, j;
|
|
704
|
+
function P(e, t) {
|
|
712
705
|
if (t.match(/!$/))
|
|
713
706
|
return t.substr(0, t.length - 1);
|
|
714
|
-
var r =
|
|
707
|
+
var r = j;
|
|
715
708
|
if (!r) {
|
|
716
|
-
if (r =
|
|
717
|
-
throw new Error("[Vuex Pathify] Unknown mapping '" +
|
|
718
|
-
- Choose one of '` + Object.keys(
|
|
709
|
+
if (r = ae[se.mapping], !r)
|
|
710
|
+
throw new Error("[Vuex Pathify] Unknown mapping '" + se.mapping + `' in options
|
|
711
|
+
- Choose one of '` + Object.keys(ae).join("', '") + `'
|
|
719
712
|
- Or, supply a custom function
|
|
720
713
|
`);
|
|
721
|
-
|
|
714
|
+
j = r;
|
|
722
715
|
}
|
|
723
|
-
return
|
|
716
|
+
return j(e, t, ut);
|
|
724
717
|
}
|
|
725
|
-
function
|
|
726
|
-
var r = t.replace(/[/@!]+/g, "."), n = t.split("@"),
|
|
727
|
-
if (
|
|
728
|
-
var
|
|
729
|
-
a =
|
|
718
|
+
function Q(e, t) {
|
|
719
|
+
var r = t.replace(/[/@!]+/g, "."), n = t.split("@"), o = n[0], i = n[1], s, a;
|
|
720
|
+
if (o.indexOf("/") > -1) {
|
|
721
|
+
var u = o.split("/");
|
|
722
|
+
a = u.pop(), s = u.join("/");
|
|
730
723
|
} else
|
|
731
|
-
a =
|
|
724
|
+
a = o;
|
|
732
725
|
if (s && !e._modulesNamespaceMap[s + "/"])
|
|
733
726
|
throw new Error("[Vuex Pathify] Unknown module '" + s + "' via path '" + t + "'");
|
|
734
727
|
return {
|
|
735
728
|
absPath: r,
|
|
736
729
|
module: s,
|
|
737
|
-
target:
|
|
730
|
+
target: o,
|
|
738
731
|
name: a.replace("!", ""),
|
|
739
732
|
isDynamic: t.indexOf(":") > -1,
|
|
740
733
|
/**
|
|
@@ -744,264 +737,239 @@ function K(e, t) {
|
|
|
744
737
|
* @returns {{exists: boolean, member: object, type: string, path: string}}
|
|
745
738
|
*/
|
|
746
739
|
get: function(f) {
|
|
747
|
-
var
|
|
740
|
+
var c = e[ft[f]], h = P(f, a), l = s ? s + "/" + h : h;
|
|
748
741
|
return {
|
|
749
|
-
exists: f === "state" ?
|
|
750
|
-
member:
|
|
742
|
+
exists: f === "state" ? at(c, l) : l in c,
|
|
743
|
+
member: c,
|
|
751
744
|
trgPath: l,
|
|
752
|
-
trgName:
|
|
753
|
-
objPath:
|
|
745
|
+
trgName: h,
|
|
746
|
+
objPath: i
|
|
754
747
|
};
|
|
755
748
|
}
|
|
756
749
|
};
|
|
757
750
|
}
|
|
758
|
-
var
|
|
751
|
+
var S = function(t, r, n) {
|
|
759
752
|
this.expr = t, this.path = r, this.value = n;
|
|
760
753
|
};
|
|
761
|
-
|
|
762
|
-
return
|
|
754
|
+
S.prototype.update = function(t) {
|
|
755
|
+
return st(t, this.path, this.value), Array.isArray(t) ? [].concat(t) : Object.assign({}, t);
|
|
763
756
|
};
|
|
764
|
-
|
|
765
|
-
return
|
|
757
|
+
S.isSerialized = function(e) {
|
|
758
|
+
return nt(e) && "expr" in e && "path" in e && "value" in e;
|
|
766
759
|
};
|
|
767
|
-
function
|
|
768
|
-
var r =
|
|
760
|
+
function lt(e, t) {
|
|
761
|
+
var r = Q(e, t), n = r.get("actions");
|
|
769
762
|
if (n.exists)
|
|
770
|
-
return function(
|
|
771
|
-
var s = n.objPath ? new
|
|
763
|
+
return function(i) {
|
|
764
|
+
var s = n.objPath ? new S(t, n.objPath, i) : i;
|
|
772
765
|
return e.dispatch(n.trgPath, s);
|
|
773
766
|
};
|
|
774
|
-
var
|
|
775
|
-
return
|
|
767
|
+
var o = r.get("mutations");
|
|
768
|
+
return o.exists || r.isDynamic ? function(i) {
|
|
776
769
|
if (r.isDynamic) {
|
|
777
|
-
var s =
|
|
778
|
-
|
|
770
|
+
var s = Ce(t, this);
|
|
771
|
+
o = Q(e, s).get("mutations");
|
|
779
772
|
}
|
|
780
|
-
var a =
|
|
781
|
-
return e.commit(
|
|
782
|
-
} : function(
|
|
773
|
+
var a = o.objPath ? new S(t, o.objPath, i) : i;
|
|
774
|
+
return e.commit(o.trgPath, a);
|
|
775
|
+
} : function(i) {
|
|
783
776
|
};
|
|
784
777
|
}
|
|
785
|
-
function
|
|
786
|
-
var n =
|
|
787
|
-
if (!r && (
|
|
778
|
+
function we(e, t, r) {
|
|
779
|
+
var n = Q(e, t), o;
|
|
780
|
+
if (!r && (o = n.get("getters"), o.exists))
|
|
788
781
|
return function() {
|
|
789
|
-
var s =
|
|
790
|
-
return
|
|
782
|
+
var s = o.member[o.trgPath];
|
|
783
|
+
return o.objPath ? ce(t, s, o.objPath) : s;
|
|
791
784
|
};
|
|
792
|
-
var
|
|
793
|
-
return
|
|
794
|
-
var s = n.isDynamic ?
|
|
785
|
+
var i = n.get("state");
|
|
786
|
+
return i.exists || n.isDynamic ? function() {
|
|
787
|
+
var s = n.isDynamic ? Ce(n.absPath, this) : n.absPath;
|
|
795
788
|
return ce(t, e.state, s);
|
|
796
789
|
} : function() {
|
|
797
790
|
};
|
|
798
791
|
}
|
|
799
792
|
function ce(e, t, r) {
|
|
800
|
-
return
|
|
793
|
+
return ye(t, r);
|
|
801
794
|
}
|
|
802
|
-
function
|
|
803
|
-
return e.replace(/:(\w+)/g, function(n,
|
|
804
|
-
return
|
|
795
|
+
function Ce(e, t) {
|
|
796
|
+
return e.replace(/:(\w+)/g, function(n, o) {
|
|
797
|
+
return o in t || console.error('Error resolving dynamic store path: The property "' + o + '" does not exist on the scope', t), t[o];
|
|
805
798
|
});
|
|
806
799
|
}
|
|
807
800
|
function ht(e) {
|
|
808
801
|
e.set = function(t, r) {
|
|
809
|
-
var n =
|
|
802
|
+
var n = lt(e, t);
|
|
810
803
|
if (typeof n < "u")
|
|
811
804
|
return n(r);
|
|
812
805
|
}, e.get = function(t) {
|
|
813
806
|
for (var r = [], n = arguments.length - 1; n-- > 0; ) r[n] = arguments[n + 1];
|
|
814
|
-
var
|
|
815
|
-
if (typeof
|
|
816
|
-
var
|
|
817
|
-
return typeof
|
|
807
|
+
var o = we(e, t);
|
|
808
|
+
if (typeof o < "u") {
|
|
809
|
+
var i = o();
|
|
810
|
+
return typeof i == "function" ? i.apply(void 0, r) : i;
|
|
818
811
|
}
|
|
819
812
|
}, e.copy = function(t) {
|
|
820
813
|
for (var r = [], n = arguments.length - 1; n-- > 0; ) r[n] = arguments[n + 1];
|
|
821
|
-
var
|
|
822
|
-
return T(
|
|
814
|
+
var o = e.get.apply(e, [t].concat(r));
|
|
815
|
+
return T(o) ? ct(o) : o;
|
|
823
816
|
};
|
|
824
817
|
}
|
|
825
|
-
function
|
|
826
|
-
|
|
827
|
-
}
|
|
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
|
-
`);
|
|
847
|
-
}
|
|
848
|
-
function Ot(e) {
|
|
849
|
-
U.store = e, ht(e);
|
|
818
|
+
function dt(e) {
|
|
819
|
+
k.store = e, ht(e);
|
|
850
820
|
}
|
|
851
|
-
var
|
|
852
|
-
|
|
853
|
-
plugin: Ot,
|
|
854
|
-
debug: gt
|
|
821
|
+
var gt = {
|
|
822
|
+
plugin: dt
|
|
855
823
|
};
|
|
856
|
-
function
|
|
857
|
-
return
|
|
858
|
-
}
|
|
859
|
-
function
|
|
860
|
-
return
|
|
861
|
-
var n =
|
|
862
|
-
return t[n] = function(
|
|
863
|
-
return
|
|
824
|
+
function X(e) {
|
|
825
|
+
return B(typeof e == "function" ? e() : e);
|
|
826
|
+
}
|
|
827
|
+
function vt(e) {
|
|
828
|
+
return X(e).reduce(function(t, r) {
|
|
829
|
+
var n = P("getters", r);
|
|
830
|
+
return t[n] = function(o) {
|
|
831
|
+
return o[r];
|
|
864
832
|
}, t;
|
|
865
833
|
}, {});
|
|
866
834
|
}
|
|
867
|
-
function
|
|
868
|
-
return
|
|
869
|
-
var n =
|
|
870
|
-
return t[n] = function(
|
|
871
|
-
|
|
835
|
+
function Ot(e) {
|
|
836
|
+
return X(e).reduce(function(t, r) {
|
|
837
|
+
var n = P("mutations", r);
|
|
838
|
+
return t[n] = function(o, i) {
|
|
839
|
+
i instanceof S ? i = i.update(o[r]) : S.isSerialized(i) && (i = S.prototype.update.call(i, o[r])), o[r] = i;
|
|
872
840
|
}, t;
|
|
873
841
|
}, {});
|
|
874
842
|
}
|
|
875
|
-
function
|
|
876
|
-
return
|
|
877
|
-
var n =
|
|
878
|
-
return t[n] = function(
|
|
879
|
-
var a =
|
|
880
|
-
a(
|
|
843
|
+
function _t(e) {
|
|
844
|
+
return X(e).reduce(function(t, r) {
|
|
845
|
+
var n = P("actions", r), o = P("mutations", r);
|
|
846
|
+
return t[n] = function(i, s) {
|
|
847
|
+
var a = i.commit;
|
|
848
|
+
a(o, s);
|
|
881
849
|
}, t;
|
|
882
850
|
}, {});
|
|
883
851
|
}
|
|
884
|
-
var
|
|
885
|
-
getters:
|
|
886
|
-
mutations:
|
|
887
|
-
actions:
|
|
852
|
+
var M = {
|
|
853
|
+
getters: vt,
|
|
854
|
+
mutations: Ot,
|
|
855
|
+
actions: _t
|
|
888
856
|
};
|
|
889
|
-
function
|
|
890
|
-
return
|
|
857
|
+
function Et(e, t, r) {
|
|
858
|
+
return pt(e, t) ? mt(e, t).concat(Rt(e, r)) : "";
|
|
891
859
|
}
|
|
892
|
-
function
|
|
893
|
-
var r = e.match(/([^/@\.]+)$/)[1], n = e.substring(0, e.length - r.length),
|
|
894
|
-
if (!
|
|
860
|
+
function mt(e, t) {
|
|
861
|
+
var r = e.match(/([^/@\.]+)$/)[1], n = e.substring(0, e.length - r.length), o = n.replace(/\W+$/, "").split(/[/@.]/), i = n ? ye(t, o) : t;
|
|
862
|
+
if (!i)
|
|
895
863
|
return console.error("[Vuex Pathify] Unable to expand wildcard path '" + e + `':
|
|
896
864
|
- It looks like '` + n.replace(/\W+$/, "") + "' does not resolve to an existing state property"), [];
|
|
897
865
|
var s = new RegExp("^" + r.replace(/\*/g, "\\w+") + "$");
|
|
898
|
-
return Object.keys(
|
|
866
|
+
return Object.keys(i).filter(function(a) {
|
|
899
867
|
return s.test(a);
|
|
900
868
|
}).map(function(a) {
|
|
901
869
|
return n + a;
|
|
902
870
|
});
|
|
903
871
|
}
|
|
904
|
-
function
|
|
872
|
+
function Rt(e, t) {
|
|
905
873
|
var r = new RegExp("^" + e.replace(/\*/g, "\\w+") + "$");
|
|
906
874
|
return Object.keys(t).filter(function(n) {
|
|
907
875
|
return r.test(n);
|
|
908
876
|
});
|
|
909
877
|
}
|
|
910
|
-
function
|
|
878
|
+
function pt(e, t) {
|
|
911
879
|
return e.indexOf("*") > -1 && /\*.*[/@.]/.test(e) ? (console.error("[Vuex Pathify] Invalid wildcard placement for path '" + e + `':
|
|
912
880
|
- 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 + `':
|
|
913
881
|
- The usual reason for this is that the router was set up before the store
|
|
914
882
|
- Make sure the store is imported before the router, then reload`), !1);
|
|
915
883
|
}
|
|
916
|
-
function
|
|
884
|
+
function Tt(e, t, r) {
|
|
917
885
|
if (typeof e == "string" && e.indexOf("*") > -1)
|
|
918
|
-
return
|
|
886
|
+
return V(r(e));
|
|
919
887
|
if (Array.isArray(e))
|
|
920
|
-
return
|
|
888
|
+
return V(e);
|
|
921
889
|
if (T(e) && (t = e, e = ""), Array.isArray(t)) {
|
|
922
|
-
var n = t.map(function(
|
|
923
|
-
return
|
|
890
|
+
var n = t.map(function(o) {
|
|
891
|
+
return ue(e, o);
|
|
924
892
|
});
|
|
925
|
-
return
|
|
893
|
+
return V(n);
|
|
926
894
|
}
|
|
927
|
-
return T(t) ? Object.keys(t).reduce(function(
|
|
928
|
-
return i
|
|
895
|
+
return T(t) ? Object.keys(t).reduce(function(o, i) {
|
|
896
|
+
return o[i] = ue(e, t[i]), o;
|
|
929
897
|
}, {}) : e;
|
|
930
898
|
}
|
|
931
|
-
function
|
|
899
|
+
function ue(e, t) {
|
|
932
900
|
t === void 0 && (t = ""), e = e.replace(/\/+$/, "");
|
|
933
901
|
var r = e.indexOf("@") > -1 ? e + "." + t : e + "/" + t;
|
|
934
902
|
return r.replace(/^\/|[.@/]+$/, "").replace(/\/@/, "@").replace(/@\./, "@");
|
|
935
903
|
}
|
|
936
|
-
function
|
|
904
|
+
function V(e) {
|
|
937
905
|
return e.reduce(function(t, r) {
|
|
938
906
|
var n = r.match(/\w+$/);
|
|
939
907
|
return t[n] = r, t;
|
|
940
908
|
}, {});
|
|
941
909
|
}
|
|
942
|
-
function
|
|
943
|
-
return
|
|
944
|
-
return
|
|
910
|
+
function sr(e, t) {
|
|
911
|
+
return St(e, t, yt, function(r) {
|
|
912
|
+
return Et(r, k.store.state, k.store.getters);
|
|
945
913
|
});
|
|
946
914
|
}
|
|
947
|
-
function
|
|
948
|
-
var
|
|
949
|
-
return typeof
|
|
950
|
-
i
|
|
951
|
-
}),
|
|
915
|
+
function St(e, t, r, n) {
|
|
916
|
+
var o = Tt(e, t, n);
|
|
917
|
+
return typeof o == "string" ? r(o) : (Object.keys(o).forEach(function(i) {
|
|
918
|
+
o[i] = r(o[i]);
|
|
919
|
+
}), o);
|
|
952
920
|
}
|
|
953
|
-
function
|
|
921
|
+
function yt(e, t) {
|
|
954
922
|
var r, n;
|
|
955
923
|
return function() {
|
|
956
|
-
for (var
|
|
924
|
+
for (var o = [], i = arguments.length; i--; ) o[i] = arguments[i];
|
|
957
925
|
if (!this.$store)
|
|
958
926
|
throw new Error(`[Vuex Pathify] Unexpected condition: this.$store is undefined.
|
|
959
927
|
|
|
960
928
|
This is a known edge case with some setups and will cause future lookups to fail`);
|
|
961
|
-
return (!r || n !== this.$store) && (n = this.$store, r =
|
|
929
|
+
return (!r || n !== this.$store) && (n = this.$store, r = we(n, e, t)), r.call.apply(r, [this].concat(o));
|
|
962
930
|
};
|
|
963
931
|
}
|
|
964
|
-
const
|
|
932
|
+
const Me = {
|
|
965
933
|
breakpointObservers: {}
|
|
966
|
-
},
|
|
934
|
+
}, wt = {
|
|
967
935
|
getBreakpointService: (e) => (t) => e.breakpointObservers[t]
|
|
968
|
-
},
|
|
969
|
-
getters:
|
|
970
|
-
mutations:
|
|
936
|
+
}, Ct = M.mutations(Me), Mt = {
|
|
937
|
+
getters: wt,
|
|
938
|
+
mutations: Ct,
|
|
971
939
|
namespaced: !0,
|
|
972
|
-
state:
|
|
973
|
-
}, m = () => window.RevolugoElements.bookingApiClient,
|
|
940
|
+
state: Me
|
|
941
|
+
}, m = () => window.RevolugoElements.bookingApiClient, He = {
|
|
974
942
|
hotels: {}
|
|
975
|
-
},
|
|
943
|
+
}, Ht = {
|
|
976
944
|
hotel(e) {
|
|
977
945
|
return (t) => e.hotels[t];
|
|
978
946
|
}
|
|
979
|
-
},
|
|
980
|
-
|
|
947
|
+
}, $t = {
|
|
948
|
+
...M.mutations(He),
|
|
981
949
|
SET_HOTEL_IMAGES(e, t) {
|
|
982
|
-
|
|
950
|
+
H.set(e.hotels, t.hotelId, {
|
|
983
951
|
hotelImages: t.hotelImages,
|
|
984
952
|
isLoading: t.isLoading
|
|
985
953
|
});
|
|
986
954
|
}
|
|
987
|
-
},
|
|
955
|
+
}, Pt = {
|
|
988
956
|
async retrieveHotelImages({ commit: e, state: t }, {
|
|
989
957
|
hotelId: r,
|
|
990
958
|
locale: n
|
|
991
959
|
}) {
|
|
992
|
-
var
|
|
960
|
+
var o;
|
|
993
961
|
try {
|
|
994
|
-
if ((
|
|
962
|
+
if ((o = t.hotels[r]) != null && o.hotelImages)
|
|
995
963
|
return;
|
|
996
964
|
e("SET_HOTEL_IMAGES", {
|
|
997
965
|
hotelId: r,
|
|
998
966
|
hotelImages: null,
|
|
999
967
|
isLoading: !0
|
|
1000
968
|
});
|
|
1001
|
-
const
|
|
1002
|
-
if (!
|
|
969
|
+
const i = m();
|
|
970
|
+
if (!i)
|
|
1003
971
|
return;
|
|
1004
|
-
const s = await (
|
|
972
|
+
const s = await (i == null ? void 0 : i.hotelImages.retrieve({
|
|
1005
973
|
id: r,
|
|
1006
974
|
lang: n
|
|
1007
975
|
}));
|
|
@@ -1010,17 +978,17 @@ const He = {
|
|
|
1010
978
|
hotelImages: s,
|
|
1011
979
|
isLoading: !1
|
|
1012
980
|
});
|
|
1013
|
-
} catch (
|
|
1014
|
-
console.error("Cannot retrieve hotel images:",
|
|
981
|
+
} catch (i) {
|
|
982
|
+
console.error("Cannot retrieve hotel images:", i);
|
|
1015
983
|
}
|
|
1016
984
|
}
|
|
1017
|
-
},
|
|
1018
|
-
actions:
|
|
985
|
+
}, At = {
|
|
986
|
+
actions: Pt,
|
|
1019
987
|
namespaced: !0,
|
|
1020
|
-
getters:
|
|
1021
|
-
mutations:
|
|
1022
|
-
state:
|
|
1023
|
-
},
|
|
988
|
+
getters: Ht,
|
|
989
|
+
mutations: $t,
|
|
990
|
+
state: He
|
|
991
|
+
}, $e = {
|
|
1024
992
|
address: void 0,
|
|
1025
993
|
adultCount: 0,
|
|
1026
994
|
checkInDate: "",
|
|
@@ -1032,15 +1000,15 @@ const He = {
|
|
|
1032
1000
|
latitude: void 0,
|
|
1033
1001
|
longitude: void 0,
|
|
1034
1002
|
roomCount: 0,
|
|
1035
|
-
sourceMarket:
|
|
1036
|
-
},
|
|
1003
|
+
sourceMarket: be.Fr
|
|
1004
|
+
}, It = {
|
|
1037
1005
|
nightCount(e) {
|
|
1038
|
-
return
|
|
1039
|
-
|
|
1006
|
+
return D(e.checkOutDate, "YYYY-MM-DD").diff(
|
|
1007
|
+
D(e.checkInDate, "YYYY-MM-DD"),
|
|
1040
1008
|
"day"
|
|
1041
1009
|
);
|
|
1042
1010
|
}
|
|
1043
|
-
},
|
|
1011
|
+
}, bt = M.mutations($e), Ft = {
|
|
1044
1012
|
// eslint-disable-next-line max-statements
|
|
1045
1013
|
createHotelOfferRequest: async ({ commit: e }, t) => {
|
|
1046
1014
|
const r = m();
|
|
@@ -1048,7 +1016,7 @@ const He = {
|
|
|
1048
1016
|
try {
|
|
1049
1017
|
e("SET_HAS_ERROR", !1), e("SET_ID", void 0), e("SET_IS_FETCHING", !0);
|
|
1050
1018
|
const n = {
|
|
1051
|
-
|
|
1019
|
+
hotelOfferRequestCreateApi: {
|
|
1052
1020
|
address: t.address,
|
|
1053
1021
|
adultCount: t.adultCount,
|
|
1054
1022
|
checkInDate: t.checkInDate,
|
|
@@ -1059,19 +1027,19 @@ const He = {
|
|
|
1059
1027
|
roomCount: t.roomCount,
|
|
1060
1028
|
sourceMarket: t.sourceMarket
|
|
1061
1029
|
}
|
|
1062
|
-
}, { eventMetadata:
|
|
1063
|
-
he(
|
|
1064
|
-
...
|
|
1065
|
-
name:
|
|
1030
|
+
}, { eventMetadata: o } = window.RevolugoElements.config;
|
|
1031
|
+
he(o) || (n.hotelOfferRequestCreateApi.eventMetadata = {
|
|
1032
|
+
...de(o, ["name", "slug"]),
|
|
1033
|
+
name: o.slug || o.name
|
|
1066
1034
|
});
|
|
1067
|
-
const
|
|
1035
|
+
const i = await (r == null ? void 0 : r.hotelOfferRequests.create(
|
|
1068
1036
|
n
|
|
1069
1037
|
));
|
|
1070
|
-
(
|
|
1071
|
-
`Hotel offer request params mismatch: adultCount: ${
|
|
1072
|
-
), e("SET_ADDRESS",
|
|
1073
|
-
|
|
1074
|
-
|
|
1038
|
+
(i.adultCount !== t.adultCount || i.checkInDate !== t.checkInDate || i.checkOutDate !== t.checkOutDate || i.children !== t.children || i.sourceMarket !== t.sourceMarket) && console.warn(
|
|
1039
|
+
`Hotel offer request params mismatch: adultCount: ${i.adultCount} : ${t.adultCount}, checkInDate: ${i.checkInDate} : ${t.checkInDate}, checkOutDate: ${i.checkOutDate} : ${t.checkOutDate}, children: ${i.children} : ${t.children}, roomCount: ${i.roomCount} : ${t.roomCount}, sourceMarket: ${i.sourceMarket} : ${t.sourceMarket}`
|
|
1040
|
+
), e("SET_ADDRESS", i.address), e("SET_ADULT_COUNT", i.adultCount), e("SET_CHECK_OUT_DATE", i.checkOutDate), e("SET_CHECK_IN_DATE", i.checkInDate), e("SET_CHILDREN", i.children), e("SET_ID", i.id), e("SET_LATITUDE", i.latitude), e("SET_LONGITUDE", i.longitude), e("SET_ROOM_COUNT", i.roomCount), e("SET_SOURCE_MARKET", i.sourceMarket), window.RevolugoElements.eventBus.$emit(
|
|
1041
|
+
E.HotelOfferRequestCreated,
|
|
1042
|
+
i
|
|
1075
1043
|
);
|
|
1076
1044
|
} catch (n) {
|
|
1077
1045
|
e("SET_HAS_ERROR", !0), console.error("Cannot create hotel offer request:", n);
|
|
@@ -1098,7 +1066,7 @@ const He = {
|
|
|
1098
1066
|
`Hotel offer request id mismatch: requested: ${t}, retrieved: ${n.id}`
|
|
1099
1067
|
);
|
|
1100
1068
|
e("SET_ADDRESS", n.address), e("SET_ADULT_COUNT", n.adultCount), e("SET_CHECK_OUT_DATE", n.checkOutDate), e("SET_CHECK_IN_DATE", n.checkInDate), e("SET_CHILDREN", n.children), e("SET_ID", n.id), e("SET_LATITUDE", n.latitude), e("SET_LONGITUDE", n.longitude), e("SET_ROOM_COUNT", n.roomCount), e("SET_SOURCE_MARKET", n.sourceMarket), window.RevolugoElements.eventBus.$emit(
|
|
1101
|
-
|
|
1069
|
+
E.HotelOfferRequestRetrieved,
|
|
1102
1070
|
n
|
|
1103
1071
|
);
|
|
1104
1072
|
} catch (r) {
|
|
@@ -1109,27 +1077,27 @@ const He = {
|
|
|
1109
1077
|
}, 500);
|
|
1110
1078
|
}
|
|
1111
1079
|
}
|
|
1112
|
-
},
|
|
1113
|
-
actions:
|
|
1114
|
-
getters:
|
|
1115
|
-
mutations:
|
|
1080
|
+
}, Dt = {
|
|
1081
|
+
actions: Ft,
|
|
1082
|
+
getters: It,
|
|
1083
|
+
mutations: bt,
|
|
1116
1084
|
namespaced: !0,
|
|
1117
|
-
state:
|
|
1085
|
+
state: $e
|
|
1118
1086
|
};
|
|
1119
1087
|
Array.from({ length: 40 }).map(
|
|
1120
|
-
() =>
|
|
1088
|
+
() => De(0, 10)
|
|
1121
1089
|
);
|
|
1122
|
-
const
|
|
1123
|
-
var
|
|
1124
|
-
const
|
|
1125
|
-
rating:
|
|
1126
|
-
review_rating:
|
|
1127
|
-
price:
|
|
1090
|
+
const Lt = 10;
|
|
1091
|
+
var kt = /* @__PURE__ */ ((e) => (e.Price = "price", e.Rating = "rating", e.ReviewRating = "review_rating", e.SortBy = "sort_by", e))(kt || {});
|
|
1092
|
+
const xt = "", qt = 0, Ut = [0, 0], Nt = le.TopPicks, Bt = "asc", Pe = {
|
|
1093
|
+
rating: xt,
|
|
1094
|
+
review_rating: qt,
|
|
1095
|
+
price: Ut,
|
|
1128
1096
|
sort_by: {
|
|
1129
|
-
value:
|
|
1130
|
-
direction:
|
|
1097
|
+
value: Nt,
|
|
1098
|
+
direction: Bt
|
|
1131
1099
|
}
|
|
1132
|
-
},
|
|
1100
|
+
}, Ae = {
|
|
1133
1101
|
isPolling: !1,
|
|
1134
1102
|
pollingPayload: void 0,
|
|
1135
1103
|
hasError: !1,
|
|
@@ -1140,14 +1108,14 @@ const qt = "", Nt = 0, Bt = [0, 0], Gt = de.TopPicks, jt = "asc", Pe = {
|
|
|
1140
1108
|
priceMin: 0,
|
|
1141
1109
|
filters: Pe,
|
|
1142
1110
|
startingAfter: null
|
|
1143
|
-
},
|
|
1111
|
+
}, F = {
|
|
1144
1112
|
priceHistogramStepCount(e) {
|
|
1145
1113
|
return e.priceHistogram ? e.priceHistogram.length : 0;
|
|
1146
1114
|
},
|
|
1147
1115
|
// eslint-disable-next-line max-params
|
|
1148
1116
|
getPriceMin(e, t, r, n) {
|
|
1149
1117
|
return !e.priceMin || !e.hotelOffersCurrency ? 0 : Math.round(
|
|
1150
|
-
|
|
1118
|
+
re({
|
|
1151
1119
|
amount: e.priceMin,
|
|
1152
1120
|
currency: e.hotelOffersCurrency
|
|
1153
1121
|
}) / n["hotelOfferRequest/nightCount"] / r.hotelOfferRequest.roomCount
|
|
@@ -1156,7 +1124,7 @@ const qt = "", Nt = 0, Bt = [0, 0], Gt = de.TopPicks, jt = "asc", Pe = {
|
|
|
1156
1124
|
// eslint-disable-next-line max-params
|
|
1157
1125
|
getPriceMax(e, t, r, n) {
|
|
1158
1126
|
return !e.priceMax || !e.hotelOffersCurrency ? 0 : Math.round(
|
|
1159
|
-
|
|
1127
|
+
re({
|
|
1160
1128
|
amount: e.priceMax,
|
|
1161
1129
|
currency: e.hotelOffersCurrency
|
|
1162
1130
|
}) / n["hotelOfferRequest/nightCount"] / r.hotelOfferRequest.roomCount
|
|
@@ -1183,21 +1151,21 @@ const qt = "", Nt = 0, Bt = [0, 0], Gt = de.TopPicks, jt = "asc", Pe = {
|
|
|
1183
1151
|
transformFilterPrices(e, t, r, n) {
|
|
1184
1152
|
if (!(!e.filters.price || e.filters.price[0] === 0 && e.filters.price[1] === 0))
|
|
1185
1153
|
return e.filters.price.map(
|
|
1186
|
-
(
|
|
1187
|
-
amount:
|
|
1154
|
+
(o) => new ke({
|
|
1155
|
+
amount: o * n["hotelOfferRequest/nightCount"] * r.hotelOfferRequest.roomCount,
|
|
1188
1156
|
currency: window.RevolugoElements.config.currency
|
|
1189
1157
|
}).normalize().floor().getAmount()
|
|
1190
1158
|
);
|
|
1191
1159
|
}
|
|
1192
|
-
},
|
|
1193
|
-
|
|
1160
|
+
}, Gt = {
|
|
1161
|
+
...M.mutations(Ae),
|
|
1194
1162
|
ADD_HOTEL_OFFERS(e, t) {
|
|
1195
|
-
e.hotelOffers =
|
|
1163
|
+
e.hotelOffers = xe(
|
|
1196
1164
|
[...e.hotelOffers ?? [], ...t],
|
|
1197
1165
|
"id"
|
|
1198
1166
|
);
|
|
1199
1167
|
}
|
|
1200
|
-
},
|
|
1168
|
+
}, jt = {
|
|
1201
1169
|
saveFilters({ commit: e }, t) {
|
|
1202
1170
|
e("SET_FILTERS", t);
|
|
1203
1171
|
},
|
|
@@ -1210,61 +1178,61 @@ const qt = "", Nt = 0, Bt = [0, 0], Gt = de.TopPicks, jt = "asc", Pe = {
|
|
|
1210
1178
|
resetHotelOffers({ commit: e }) {
|
|
1211
1179
|
e("SET_HOTEL_OFFERS", []);
|
|
1212
1180
|
},
|
|
1213
|
-
retrieveHotelOffers:
|
|
1181
|
+
retrieveHotelOffers: Le(
|
|
1214
1182
|
// eslint-disable-next-line max-lines-per-function
|
|
1215
|
-
async ({ commit: e, rootGetters: t, rootState: r, state: n },
|
|
1216
|
-
var s, a,
|
|
1217
|
-
if (!
|
|
1183
|
+
async ({ commit: e, rootGetters: t, rootState: r, state: n }, o) => {
|
|
1184
|
+
var s, a, u, f;
|
|
1185
|
+
if (!o.hotelOfferRequestId)
|
|
1218
1186
|
return;
|
|
1219
|
-
const
|
|
1220
|
-
if (
|
|
1221
|
-
const
|
|
1222
|
-
...
|
|
1223
|
-
priceHistogramStepCount:
|
|
1187
|
+
const i = m();
|
|
1188
|
+
if (i) {
|
|
1189
|
+
const c = {
|
|
1190
|
+
...o,
|
|
1191
|
+
priceHistogramStepCount: Lt,
|
|
1224
1192
|
filterByReviewRating: n.filters.review_rating || void 0,
|
|
1225
|
-
filterByPrice: (s =
|
|
1193
|
+
filterByPrice: (s = F.transformFilterPrices(n, void 0, r, t)) == null ? void 0 : s.join("-"),
|
|
1226
1194
|
filterByStar: n.filters.rating || void 0,
|
|
1227
|
-
onlyRecommendedHotelOffers: ((a = n.filters.sort_by) == null ? void 0 : a.value) ===
|
|
1228
|
-
sortBy: (
|
|
1195
|
+
onlyRecommendedHotelOffers: ((a = n.filters.sort_by) == null ? void 0 : a.value) === le.TopPicks,
|
|
1196
|
+
sortBy: (u = n.filters.sort_by) == null ? void 0 : u.value,
|
|
1229
1197
|
sortByOrder: (f = n.filters.sort_by) == null ? void 0 : f.direction,
|
|
1230
1198
|
currency: window.RevolugoElements.config.currency,
|
|
1231
1199
|
lang: window.RevolugoElements.config.lang
|
|
1232
1200
|
};
|
|
1233
|
-
if (n.isPolling &&
|
|
1201
|
+
if (n.isPolling && te(n.pollingPayload, c))
|
|
1234
1202
|
return;
|
|
1235
|
-
|
|
1236
|
-
|
|
1237
|
-
(
|
|
1238
|
-
var p,
|
|
1239
|
-
if (!
|
|
1203
|
+
$.$emit(E.HotelOffersPollingStarted), e("SET_IS_POLLING", !0), e("SET_POLLING_PAYLOAD", c), e("SET_HAS_ERROR", !1), o.startingAfter || e("SET_HOTEL_OFFERS", []), e("SET_HOTEL_OFFERS_CURRENCY", null), await (i == null ? void 0 : i.hotelOffers.list(
|
|
1204
|
+
c,
|
|
1205
|
+
(h, l) => {
|
|
1206
|
+
var p, A;
|
|
1207
|
+
if (!te(n.pollingPayload, c))
|
|
1240
1208
|
return;
|
|
1241
|
-
if (
|
|
1242
|
-
e("SET_IS_POLLING", !1), e("SET_HAS_ERROR", !0), console.error("Cannot retrieve hotel offers:",
|
|
1209
|
+
if (h) {
|
|
1210
|
+
e("SET_IS_POLLING", !1), e("SET_HAS_ERROR", !0), console.error("Cannot retrieve hotel offers:", h);
|
|
1243
1211
|
return;
|
|
1244
1212
|
}
|
|
1245
1213
|
if (e(
|
|
1246
1214
|
"SET_IS_POLLING",
|
|
1247
1215
|
(((p = l == null ? void 0 : l.meta) == null ? void 0 : p.status) ?? "").toLowerCase() !== "complete"
|
|
1248
|
-
), !((
|
|
1216
|
+
), !((A = l == null ? void 0 : l.data) != null && A.hotelOffers))
|
|
1249
1217
|
return;
|
|
1250
|
-
|
|
1251
|
-
|
|
1218
|
+
o.startingAfter ? e("ADD_HOTEL_OFFERS", l.data.hotelOffers) : e("SET_HOTEL_OFFERS", l.data.hotelOffers), $.$emit(
|
|
1219
|
+
E.HotelOffersRetrieved,
|
|
1252
1220
|
l.data.hotelOffers
|
|
1253
1221
|
), 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);
|
|
1254
|
-
const
|
|
1255
|
-
const
|
|
1222
|
+
const d = (Z) => {
|
|
1223
|
+
const G = F.getPriceMin(
|
|
1256
1224
|
n,
|
|
1257
1225
|
void 0,
|
|
1258
1226
|
r,
|
|
1259
1227
|
t
|
|
1260
|
-
),
|
|
1228
|
+
), ee = F.getPriceMax(
|
|
1261
1229
|
n,
|
|
1262
1230
|
void 0,
|
|
1263
1231
|
r,
|
|
1264
1232
|
t
|
|
1265
1233
|
);
|
|
1266
|
-
return
|
|
1267
|
-
}, g =
|
|
1234
|
+
return G === ee && G === 0 ? !0 : Z >= G && Z <= ee;
|
|
1235
|
+
}, g = d(n.filters.price[0]) ? n.filters.price[0] : 0, R = d(n.filters.price[1]) ? n.filters.price[1] : 0;
|
|
1268
1236
|
e("SET_FILTERS", {
|
|
1269
1237
|
...n.filters,
|
|
1270
1238
|
price: [g, R]
|
|
@@ -1273,33 +1241,33 @@ const qt = "", Nt = 0, Bt = [0, 0], Gt = de.TopPicks, jt = "asc", Pe = {
|
|
|
1273
1241
|
{
|
|
1274
1242
|
maxCallCount: 10
|
|
1275
1243
|
}
|
|
1276
|
-
).catch((
|
|
1277
|
-
e("SET_IS_POLLING", !1), e("SET_HAS_ERROR", !0), console.error("Cannot retrieve hotel offers:",
|
|
1244
|
+
).catch((h) => {
|
|
1245
|
+
e("SET_IS_POLLING", !1), e("SET_HAS_ERROR", !0), console.error("Cannot retrieve hotel offers:", h);
|
|
1278
1246
|
}));
|
|
1279
1247
|
}
|
|
1280
1248
|
},
|
|
1281
1249
|
100
|
|
1282
1250
|
)
|
|
1283
|
-
},
|
|
1284
|
-
actions:
|
|
1251
|
+
}, Vt = {
|
|
1252
|
+
actions: jt,
|
|
1285
1253
|
namespaced: !0,
|
|
1286
|
-
getters:
|
|
1287
|
-
mutations:
|
|
1288
|
-
state:
|
|
1289
|
-
},
|
|
1254
|
+
getters: F,
|
|
1255
|
+
mutations: Gt,
|
|
1256
|
+
state: Ae
|
|
1257
|
+
}, z = {
|
|
1290
1258
|
hotelRoomOfferRequestByHotelId: {}
|
|
1291
|
-
},
|
|
1259
|
+
}, Yt = {
|
|
1292
1260
|
hotelRoomOfferRequest(e) {
|
|
1293
1261
|
return (t) => e.hotelRoomOfferRequestByHotelId[t];
|
|
1294
1262
|
},
|
|
1295
1263
|
nightCount(e) {
|
|
1296
1264
|
return (t) => {
|
|
1297
1265
|
if (e.hotelRoomOfferRequestByHotelId[t])
|
|
1298
|
-
return
|
|
1266
|
+
return D(
|
|
1299
1267
|
e.hotelRoomOfferRequestByHotelId[t].checkOutDate,
|
|
1300
1268
|
"YYYY-MM-DD"
|
|
1301
1269
|
).diff(
|
|
1302
|
-
|
|
1270
|
+
D(
|
|
1303
1271
|
e.hotelRoomOfferRequestByHotelId[t].checkInDate,
|
|
1304
1272
|
"YYYY-MM-DD"
|
|
1305
1273
|
),
|
|
@@ -1307,28 +1275,28 @@ const qt = "", Nt = 0, Bt = [0, 0], Gt = de.TopPicks, jt = "asc", Pe = {
|
|
|
1307
1275
|
);
|
|
1308
1276
|
};
|
|
1309
1277
|
}
|
|
1310
|
-
},
|
|
1311
|
-
|
|
1278
|
+
}, Qt = {
|
|
1279
|
+
...M.mutations(z),
|
|
1312
1280
|
DELETE_HOTEL_ROOM_OFFER_REQUEST(e, t) {
|
|
1313
|
-
|
|
1281
|
+
H.set(e.hotelRoomOfferRequestByHotelId, t, void 0);
|
|
1314
1282
|
},
|
|
1315
1283
|
RESET_HOTEL_ROOM_OFFER_REQUEST(e, t) {
|
|
1316
|
-
|
|
1284
|
+
H.set(e.hotelRoomOfferRequestByHotelId, t, {
|
|
1317
1285
|
...e.hotelRoomOfferRequestByHotelId[t],
|
|
1318
1286
|
hasError: !1,
|
|
1319
1287
|
id: null
|
|
1320
1288
|
});
|
|
1321
1289
|
},
|
|
1322
1290
|
RESET_HOTEL_ROOM_OFFER_REQUESTS() {
|
|
1323
|
-
|
|
1291
|
+
z.hotelRoomOfferRequestByHotelId = {};
|
|
1324
1292
|
},
|
|
1325
1293
|
SET_HOTEL_ROOM_OFFER_REQUEST(e, t) {
|
|
1326
|
-
|
|
1294
|
+
H.set(e.hotelRoomOfferRequestByHotelId, t.hotelId, {
|
|
1327
1295
|
...e.hotelRoomOfferRequestByHotelId[t.hotelId],
|
|
1328
1296
|
...t
|
|
1329
1297
|
});
|
|
1330
1298
|
}
|
|
1331
|
-
},
|
|
1299
|
+
}, zt = {
|
|
1332
1300
|
createHotelRoomOfferRequest: async ({ commit: e }, t) => {
|
|
1333
1301
|
const r = m();
|
|
1334
1302
|
if (r)
|
|
@@ -1340,7 +1308,7 @@ const qt = "", Nt = 0, Bt = [0, 0], Gt = de.TopPicks, jt = "asc", Pe = {
|
|
|
1340
1308
|
isFetching: !0
|
|
1341
1309
|
});
|
|
1342
1310
|
const n = {
|
|
1343
|
-
|
|
1311
|
+
hotelRoomOfferRequestCreateApi: {
|
|
1344
1312
|
adultCount: t.adultCount,
|
|
1345
1313
|
checkInDate: t.checkInDate,
|
|
1346
1314
|
checkOutDate: t.checkOutDate,
|
|
@@ -1349,23 +1317,23 @@ const qt = "", Nt = 0, Bt = [0, 0], Gt = de.TopPicks, jt = "asc", Pe = {
|
|
|
1349
1317
|
roomCount: t.roomCount,
|
|
1350
1318
|
sourceMarket: t.sourceMarket
|
|
1351
1319
|
}
|
|
1352
|
-
}, { eventMetadata:
|
|
1353
|
-
he(
|
|
1354
|
-
...
|
|
1355
|
-
name:
|
|
1320
|
+
}, { eventMetadata: o } = window.RevolugoElements.config;
|
|
1321
|
+
he(o) || (n.hotelRoomOfferRequestCreateApi.eventMetadata = {
|
|
1322
|
+
...de(o, ["name", "slug"]),
|
|
1323
|
+
name: o.slug || o.name
|
|
1356
1324
|
});
|
|
1357
|
-
const
|
|
1325
|
+
const i = await r.hotelRoomOfferRequests.create(
|
|
1358
1326
|
n
|
|
1359
1327
|
);
|
|
1360
|
-
(
|
|
1361
|
-
`Hotel offer request params mismatch: adultCount: ${
|
|
1328
|
+
(i.adultCount !== t.adultCount || i.checkInDate !== t.checkInDate || i.checkOutDate !== t.checkOutDate || i.children !== t.children || i.sourceMarket !== t.sourceMarket) && console.warn(
|
|
1329
|
+
`Hotel offer request params mismatch: adultCount: ${i.adultCount} : ${t.adultCount}, checkInDate: ${i.checkInDate} : ${t.checkInDate}, checkOutDate: ${i.checkOutDate} : ${t.checkOutDate}, children: ${i.children} : ${t.children}, roomCount: ${i.roomCount} : ${t.roomCount}, sourceMarket: ${i.sourceMarket} : ${t.sourceMarket}`
|
|
1362
1330
|
), e("SET_HOTEL_ROOM_OFFER_REQUEST", {
|
|
1363
|
-
...
|
|
1331
|
+
...i,
|
|
1364
1332
|
hasError: !1,
|
|
1365
1333
|
isFetching: !1
|
|
1366
1334
|
}), window.RevolugoElements.eventBus.$emit(
|
|
1367
|
-
|
|
1368
|
-
|
|
1335
|
+
E.HotelRoomOfferRequestCreated,
|
|
1336
|
+
i
|
|
1369
1337
|
);
|
|
1370
1338
|
} catch (n) {
|
|
1371
1339
|
e("SET_HOTEL_ROOM_OFFER_REQUEST", {
|
|
@@ -1397,49 +1365,49 @@ const qt = "", Nt = 0, Bt = [0, 0], Gt = de.TopPicks, jt = "asc", Pe = {
|
|
|
1397
1365
|
id: void 0,
|
|
1398
1366
|
isFetching: !0
|
|
1399
1367
|
});
|
|
1400
|
-
const
|
|
1368
|
+
const o = await (n == null ? void 0 : n.hotelRoomOfferRequests.retrieve({
|
|
1401
1369
|
id: r
|
|
1402
1370
|
}));
|
|
1403
|
-
if (
|
|
1371
|
+
if (o.hotelId !== t)
|
|
1404
1372
|
throw new Error(
|
|
1405
1373
|
"Hotel room offer request does not match provided hotel id"
|
|
1406
1374
|
);
|
|
1407
|
-
if (
|
|
1375
|
+
if (o.id !== r)
|
|
1408
1376
|
throw new Error(
|
|
1409
|
-
`Hotel room offer request id mismatch: requested: ${r}, retrieved: ${
|
|
1377
|
+
`Hotel room offer request id mismatch: requested: ${r}, retrieved: ${o.id}`
|
|
1410
1378
|
);
|
|
1411
1379
|
e("SET_HOTEL_ROOM_OFFER_REQUEST", {
|
|
1412
|
-
...
|
|
1380
|
+
...o,
|
|
1413
1381
|
isFetching: !1
|
|
1414
1382
|
}), window.RevolugoElements.eventBus.$emit(
|
|
1415
|
-
|
|
1416
|
-
|
|
1383
|
+
E.HotelRoomOfferRequestRetrieved,
|
|
1384
|
+
o
|
|
1417
1385
|
);
|
|
1418
1386
|
} catch (n) {
|
|
1419
1387
|
e("DELETE_HOTEL_ROOM_OFFER_REQUEST", t), console.error("Cannot retrieve hotel offer request:", n);
|
|
1420
1388
|
}
|
|
1421
1389
|
}
|
|
1422
|
-
},
|
|
1423
|
-
actions:
|
|
1424
|
-
getters:
|
|
1425
|
-
mutations:
|
|
1390
|
+
}, Kt = {
|
|
1391
|
+
actions: zt,
|
|
1392
|
+
getters: Yt,
|
|
1393
|
+
mutations: Qt,
|
|
1426
1394
|
namespaced: !0,
|
|
1427
|
-
state:
|
|
1428
|
-
},
|
|
1395
|
+
state: z
|
|
1396
|
+
}, Ie = {
|
|
1429
1397
|
hotelRoomOffersByHotel: {}
|
|
1430
|
-
},
|
|
1398
|
+
}, Wt = {
|
|
1431
1399
|
hotelRoomOffers(e) {
|
|
1432
1400
|
return (t) => e.hotelRoomOffersByHotel[t];
|
|
1433
1401
|
},
|
|
1434
1402
|
hotelTimezone(e) {
|
|
1435
1403
|
return (t) => e.hotelRoomOffersByHotel[t].hotelTimezone;
|
|
1436
1404
|
}
|
|
1437
|
-
},
|
|
1405
|
+
}, Jt = {
|
|
1438
1406
|
RESET_HOTEL_ROOM_OFFERS(e) {
|
|
1439
1407
|
e.hotelRoomOffersByHotel = {};
|
|
1440
1408
|
},
|
|
1441
1409
|
SET_HOTEL_ROOM_OFFERS(e, t) {
|
|
1442
|
-
|
|
1410
|
+
I(e.hotelRoomOffersByHotel, t.hotelId, t);
|
|
1443
1411
|
},
|
|
1444
1412
|
PUSH_IN_PROGRESS_HOTEL_ROOM_OFFER(e, {
|
|
1445
1413
|
hotelId: t,
|
|
@@ -1448,10 +1416,10 @@ const qt = "", Nt = 0, Bt = [0, 0], Gt = de.TopPicks, jt = "asc", Pe = {
|
|
|
1448
1416
|
const n = e.hotelRoomOffersByHotel[t];
|
|
1449
1417
|
if (!n)
|
|
1450
1418
|
return;
|
|
1451
|
-
const
|
|
1452
|
-
|
|
1419
|
+
const o = n.inProgressOffers;
|
|
1420
|
+
o && I(e.hotelRoomOffersByHotel, t, {
|
|
1453
1421
|
...n,
|
|
1454
|
-
inProgressOffers: [...
|
|
1422
|
+
inProgressOffers: [...o, r]
|
|
1455
1423
|
});
|
|
1456
1424
|
},
|
|
1457
1425
|
UPDATE_IN_PROGRESS_HOTEL_ROOM_OFFER(e, {
|
|
@@ -1461,21 +1429,21 @@ const qt = "", Nt = 0, Bt = [0, 0], Gt = de.TopPicks, jt = "asc", Pe = {
|
|
|
1461
1429
|
const n = e.hotelRoomOffersByHotel[t];
|
|
1462
1430
|
if (!n)
|
|
1463
1431
|
return;
|
|
1464
|
-
const
|
|
1465
|
-
if (!
|
|
1432
|
+
const o = n.inProgressOffers;
|
|
1433
|
+
if (!o)
|
|
1466
1434
|
return;
|
|
1467
|
-
const
|
|
1435
|
+
const i = o.findIndex(
|
|
1468
1436
|
(s) => s.id === r.id
|
|
1469
1437
|
);
|
|
1470
|
-
|
|
1438
|
+
i !== void 0 && I(e.hotelRoomOffersByHotel, t, {
|
|
1471
1439
|
...n,
|
|
1472
1440
|
inProgressOffers: [
|
|
1473
|
-
...
|
|
1441
|
+
...o.slice(0, i),
|
|
1474
1442
|
{
|
|
1475
|
-
...i
|
|
1443
|
+
...o[i],
|
|
1476
1444
|
...r
|
|
1477
1445
|
},
|
|
1478
|
-
...
|
|
1446
|
+
...o.slice(i + 1)
|
|
1479
1447
|
]
|
|
1480
1448
|
});
|
|
1481
1449
|
},
|
|
@@ -1484,66 +1452,66 @@ const qt = "", Nt = 0, Bt = [0, 0], Gt = de.TopPicks, jt = "asc", Pe = {
|
|
|
1484
1452
|
hotelRoomOffer: r,
|
|
1485
1453
|
id: n
|
|
1486
1454
|
}) {
|
|
1487
|
-
const
|
|
1488
|
-
if (!
|
|
1455
|
+
const o = e.hotelRoomOffersByHotel[t], i = o.offers;
|
|
1456
|
+
if (!i)
|
|
1489
1457
|
return;
|
|
1490
|
-
const s =
|
|
1491
|
-
(
|
|
1458
|
+
const s = i.findIndex(
|
|
1459
|
+
(u) => u.id === n
|
|
1492
1460
|
);
|
|
1493
1461
|
if (s === void 0)
|
|
1494
1462
|
return;
|
|
1495
|
-
const a =
|
|
1496
|
-
r.taxIncludedPrice > a.taxIncludedPrice &&
|
|
1463
|
+
const a = i[s];
|
|
1464
|
+
r.taxIncludedPrice > a.taxIncludedPrice && $.$emit(E.HotelRoomOffersPriceIncreased, [
|
|
1497
1465
|
r,
|
|
1498
1466
|
a
|
|
1499
1467
|
]), qe(
|
|
1500
1468
|
r.cancellationPolicies,
|
|
1501
1469
|
a.cancellationPolicies
|
|
1502
|
-
) ||
|
|
1503
|
-
|
|
1470
|
+
) || $.$emit(
|
|
1471
|
+
E.CancellationPoliciesUpdated,
|
|
1504
1472
|
r.cancellationPolicies
|
|
1505
|
-
),
|
|
1506
|
-
...
|
|
1473
|
+
), I(e.hotelRoomOffersByHotel, t, {
|
|
1474
|
+
...o,
|
|
1507
1475
|
offers: [
|
|
1508
|
-
...
|
|
1476
|
+
...i.slice(0, s),
|
|
1509
1477
|
{
|
|
1510
|
-
...
|
|
1478
|
+
...i[s],
|
|
1511
1479
|
...r,
|
|
1512
|
-
packageType:
|
|
1480
|
+
packageType: i[s].packageType
|
|
1513
1481
|
},
|
|
1514
|
-
...
|
|
1482
|
+
...i.slice(s + 1)
|
|
1515
1483
|
]
|
|
1516
1484
|
});
|
|
1517
1485
|
}
|
|
1518
|
-
},
|
|
1486
|
+
}, Xt = {
|
|
1519
1487
|
async createBookingPolicies({ commit: e }, {
|
|
1520
1488
|
addBreakfast: t,
|
|
1521
1489
|
hotelId: r,
|
|
1522
1490
|
hotelRoomOfferId: n
|
|
1523
1491
|
}) {
|
|
1524
1492
|
var s;
|
|
1525
|
-
const
|
|
1526
|
-
if (!
|
|
1493
|
+
const o = m();
|
|
1494
|
+
if (!o)
|
|
1527
1495
|
return;
|
|
1528
|
-
const
|
|
1496
|
+
const i = (s = Ie.hotelRoomOffersByHotel[r].offers) == null ? void 0 : s.find(
|
|
1529
1497
|
(a) => a.id === n
|
|
1530
1498
|
);
|
|
1531
|
-
|
|
1499
|
+
i && e("PUSH_IN_PROGRESS_HOTEL_ROOM_OFFER", {
|
|
1532
1500
|
hotelId: r,
|
|
1533
1501
|
hotelRoomOffer: {
|
|
1534
|
-
...
|
|
1502
|
+
...i,
|
|
1535
1503
|
isLoading: !0
|
|
1536
1504
|
}
|
|
1537
1505
|
});
|
|
1538
1506
|
try {
|
|
1539
|
-
const a = await
|
|
1540
|
-
|
|
1507
|
+
const a = await o.bookingPolicies.create({
|
|
1508
|
+
bookingPoliciesCreateApi: {
|
|
1541
1509
|
addBreakfast: t,
|
|
1542
1510
|
hotelRoomOfferId: n,
|
|
1543
1511
|
lang: window.RevolugoElements.config.lang
|
|
1544
1512
|
}
|
|
1545
1513
|
});
|
|
1546
|
-
return
|
|
1514
|
+
return $.$emit(E.BookingPolicyCreated, a), e("UPDATE_IN_PROGRESS_HOTEL_ROOM_OFFER", {
|
|
1547
1515
|
hotelId: r,
|
|
1548
1516
|
hotelRoomOffer: {
|
|
1549
1517
|
id: n,
|
|
@@ -1578,8 +1546,8 @@ const qt = "", Nt = 0, Bt = [0, 0], Gt = de.TopPicks, jt = "asc", Pe = {
|
|
|
1578
1546
|
hotelId: r,
|
|
1579
1547
|
id: n
|
|
1580
1548
|
}) {
|
|
1581
|
-
const
|
|
1582
|
-
if (
|
|
1549
|
+
const o = m();
|
|
1550
|
+
if (o) {
|
|
1583
1551
|
e("UPDATE_HOTEL_ROOM_OFFER", {
|
|
1584
1552
|
hotelId: r,
|
|
1585
1553
|
hotelRoomOffer: {
|
|
@@ -1587,8 +1555,8 @@ const qt = "", Nt = 0, Bt = [0, 0], Gt = de.TopPicks, jt = "asc", Pe = {
|
|
|
1587
1555
|
},
|
|
1588
1556
|
id: n
|
|
1589
1557
|
});
|
|
1590
|
-
const
|
|
1591
|
-
|
|
1558
|
+
const i = await o.hotelRoomOffers.create({
|
|
1559
|
+
hotelRoomOffersCreateApi: {
|
|
1592
1560
|
addBreakfast: t,
|
|
1593
1561
|
currency: window.RevolugoElements.config.currency,
|
|
1594
1562
|
hotelRoomOffers: [
|
|
@@ -1603,7 +1571,7 @@ const qt = "", Nt = 0, Bt = [0, 0], Gt = de.TopPicks, jt = "asc", Pe = {
|
|
|
1603
1571
|
e("UPDATE_HOTEL_ROOM_OFFER", {
|
|
1604
1572
|
hotelId: r,
|
|
1605
1573
|
hotelRoomOffer: {
|
|
1606
|
-
...
|
|
1574
|
+
...i.hotelRoomOffer,
|
|
1607
1575
|
isLoading: !1
|
|
1608
1576
|
},
|
|
1609
1577
|
id: n
|
|
@@ -1629,9 +1597,9 @@ const qt = "", Nt = 0, Bt = [0, 0], Gt = de.TopPicks, jt = "asc", Pe = {
|
|
|
1629
1597
|
hotelRoomOfferRequestId: r.hotelRoomOfferRequestId,
|
|
1630
1598
|
lang: window.RevolugoElements.config.lang
|
|
1631
1599
|
},
|
|
1632
|
-
(
|
|
1633
|
-
var s, a,
|
|
1634
|
-
if (
|
|
1600
|
+
(o, i) => {
|
|
1601
|
+
var s, a, u, f, c;
|
|
1602
|
+
if (o) {
|
|
1635
1603
|
e("SET_HOTEL_ROOM_OFFERS", {
|
|
1636
1604
|
hasError: !0,
|
|
1637
1605
|
hotelId: r.hotelId,
|
|
@@ -1639,69 +1607,69 @@ const qt = "", Nt = 0, Bt = [0, 0], Gt = de.TopPicks, jt = "asc", Pe = {
|
|
|
1639
1607
|
isPolling: !1,
|
|
1640
1608
|
offers: [],
|
|
1641
1609
|
inProgressOffers: []
|
|
1642
|
-
}), console.error("Cannot retrieve hotel room offers:",
|
|
1610
|
+
}), console.error("Cannot retrieve hotel room offers:", o);
|
|
1643
1611
|
return;
|
|
1644
1612
|
}
|
|
1645
|
-
if ((s =
|
|
1613
|
+
if ((s = i == null ? void 0 : i.data) != null && s.hotelRoomOffers) {
|
|
1646
1614
|
window.RevolugoElements.eventBus.$emit(
|
|
1647
|
-
|
|
1648
|
-
|
|
1615
|
+
E.HotelRoomOffersRetrieved,
|
|
1616
|
+
i
|
|
1649
1617
|
);
|
|
1650
|
-
const
|
|
1651
|
-
for (const g of
|
|
1618
|
+
const h = (a = i == null ? void 0 : i.data) == null ? void 0 : a.hotelTimezone, l = (u = i == null ? void 0 : i.data) != null && u.hotelRoomOffers ? [...i.data.hotelRoomOffers] : [], d = ((f = t[r.hotelId]) == null ? void 0 : f.inProgressOffers) || [];
|
|
1619
|
+
for (const g of d)
|
|
1652
1620
|
l.findIndex(
|
|
1653
1621
|
(p) => p.id === g.id
|
|
1654
1622
|
) === -1 && l.push(g);
|
|
1655
1623
|
e("SET_HOTEL_ROOM_OFFERS", {
|
|
1656
1624
|
hasError: !1,
|
|
1657
1625
|
hotelId: r.hotelId,
|
|
1658
|
-
hotelTimezone:
|
|
1659
|
-
isPolling: (((
|
|
1626
|
+
hotelTimezone: h,
|
|
1627
|
+
isPolling: (((c = i == null ? void 0 : i.meta) == null ? void 0 : c.status) ?? "").toLowerCase() !== "complete",
|
|
1660
1628
|
offers: l.sort((g, R) => g.price - R.price),
|
|
1661
|
-
inProgressOffers:
|
|
1629
|
+
inProgressOffers: d
|
|
1662
1630
|
});
|
|
1663
1631
|
}
|
|
1664
1632
|
}
|
|
1665
1633
|
));
|
|
1666
1634
|
}
|
|
1667
|
-
},
|
|
1668
|
-
actions:
|
|
1669
|
-
getters:
|
|
1670
|
-
mutations:
|
|
1635
|
+
}, Zt = {
|
|
1636
|
+
actions: Xt,
|
|
1637
|
+
getters: Wt,
|
|
1638
|
+
mutations: Jt,
|
|
1671
1639
|
namespaced: !0,
|
|
1672
|
-
state:
|
|
1640
|
+
state: Ie
|
|
1673
1641
|
};
|
|
1674
|
-
|
|
1675
|
-
const
|
|
1676
|
-
actions:
|
|
1642
|
+
H.use(rt);
|
|
1643
|
+
const fe = {}, er = {}, tr = new O({
|
|
1644
|
+
actions: er,
|
|
1677
1645
|
modules: {
|
|
1678
|
-
breakpointService:
|
|
1679
|
-
hotelOfferRequest:
|
|
1680
|
-
hotelOffers:
|
|
1681
|
-
hotelRoomOfferRequest:
|
|
1682
|
-
hotelRoomOffers:
|
|
1683
|
-
hotelImages:
|
|
1646
|
+
breakpointService: Mt,
|
|
1647
|
+
hotelOfferRequest: Dt,
|
|
1648
|
+
hotelOffers: Vt,
|
|
1649
|
+
hotelRoomOfferRequest: Kt,
|
|
1650
|
+
hotelRoomOffers: Zt,
|
|
1651
|
+
hotelImages: At
|
|
1684
1652
|
},
|
|
1685
|
-
mutations:
|
|
1686
|
-
plugins: [
|
|
1687
|
-
state:
|
|
1688
|
-
strict:
|
|
1689
|
-
}),
|
|
1653
|
+
mutations: M.mutations(fe),
|
|
1654
|
+
plugins: [gt.plugin],
|
|
1655
|
+
state: fe,
|
|
1656
|
+
strict: Fe
|
|
1657
|
+
}), ar = {
|
|
1690
1658
|
install(e) {
|
|
1691
1659
|
e.mixin({
|
|
1692
|
-
store:
|
|
1660
|
+
store: tr
|
|
1693
1661
|
});
|
|
1694
1662
|
}
|
|
1695
1663
|
};
|
|
1696
1664
|
export {
|
|
1697
1665
|
Pe as D,
|
|
1698
|
-
|
|
1699
|
-
|
|
1700
|
-
|
|
1701
|
-
|
|
1702
|
-
|
|
1703
|
-
|
|
1704
|
-
|
|
1705
|
-
|
|
1666
|
+
kt as F,
|
|
1667
|
+
Ut as P,
|
|
1668
|
+
qt as R,
|
|
1669
|
+
tr as a,
|
|
1670
|
+
xt as b,
|
|
1671
|
+
ir as d,
|
|
1672
|
+
sr as g,
|
|
1673
|
+
ar as s
|
|
1706
1674
|
};
|
|
1707
|
-
//# sourceMappingURL=revolugo.store.
|
|
1675
|
+
//# sourceMappingURL=revolugo.store.DiPfvwgS.min.js.map
|