@revolugo/elements 5.24.3 → 5.25.0-rc.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/css/fonts.css +1 -1
- package/dist/css/{revolugo.vuetify.BXxLxsZV.css → revolugo.vuetify.H0ChTiub.css} +1 -1
- package/dist/index.es.min.js +1896 -1870
- package/dist/index.es.min.js.map +1 -1
- package/dist/index.min.js +18 -18
- package/dist/index.min.js.map +1 -1
- package/dist/{revolugo.banktransferdetails.abCtPgHD.min.js → revolugo.banktransferdetails.DTe97FsE.min.js} +12 -12
- package/dist/{revolugo.bdaterangepicker.B7dkBByh.min.js → revolugo.bdaterangepicker.eOTZEArY.min.js} +18 -18
- package/dist/{revolugo.bformattedamount.Bu4V-Ui5.min.js → revolugo.bformattedamount.rFm3ydQU.min.js} +3 -3
- package/dist/{revolugo.bhotelroomsdetails.b1pvaSpB.min.js → revolugo.bhotelroomsdetails.CxRhfDXT.min.js} +10 -11
- package/dist/{revolugo.bhotelsearchbar.xOnEInc-.min.js → revolugo.bhotelsearchbar.DNNDndSu.min.js} +17 -17
- package/dist/{revolugo.bookingdetailssidebar.DNtdVV_p.min.js → revolugo.bookingdetailssidebar.Cl6V0PUP.min.js} +13 -13
- package/dist/{revolugo.bookingdetailssidebar.COAANpPA.min.js → revolugo.bookingdetailssidebar.DpD__85w.min.js} +4 -4
- package/dist/{revolugo.bookingmanager.BtkAOGoG.min.js → revolugo.bookingmanager.CcWOHtR2.min.js} +32 -33
- package/dist/revolugo.bphoneinput.BN_07lY5.min.js +1825 -0
- package/dist/{revolugo.bpricesummaryskeleton.Dn4RFqEr.min.js → revolugo.bpricesummaryskeleton.2DLIq1mV.min.js} +4 -4
- package/dist/{revolugo.breakpoint-service.CYufk1eo.min.js → revolugo.breakpoint-service.DQr9EmZR.min.js} +3 -3
- package/dist/{revolugo.bstarrating.Bvgl8dLm.min.js → revolugo.bstarrating.BFXu4Vyd.min.js} +6 -6
- package/dist/{revolugo.btag.BvOz4Gun.min.js → revolugo.btag.CYeoDvr9.min.js} +7 -7
- package/dist/{revolugo.cancellationpoliciesbadge.BT58DhH8.min.js → revolugo.cancellationpoliciesbadge.DPjxNZvG.min.js} +4 -4
- package/dist/{revolugo.cancellationpoliciesbadge.C2fdUJMx.min.js → revolugo.cancellationpoliciesbadge.DjJ9fYvS.min.js} +7 -7
- package/dist/{revolugo.cancellationpolicieslist.D3iB523D.min.js → revolugo.cancellationpolicieslist.D-P1Wams.min.js} +4 -4
- package/dist/{revolugo.cancellationpolicieslist.D7-_qpRx.min.js → revolugo.cancellationpolicieslist.Dqh08Vbh.min.js} +3 -3
- package/dist/{revolugo.common.Ds2kJJjk.min.js → revolugo.common.CD8_AGmS.min.js} +2 -2
- package/dist/revolugo.creditcardform.Bnp2cggf.min.js +2003 -0
- package/dist/{revolugo.creditcardform.BUS8RitX.min.js → revolugo.creditcardform.BxpEFQnk.min.js} +4 -4
- package/dist/{revolugo.creditcardpayment.u33P8_zp.min.js → revolugo.creditcardpayment.DodbQqXe.min.js} +4 -4
- package/dist/{revolugo.creditcardpayment.RryGMo6F.min.js → revolugo.creditcardpayment.s0xyMWG5.min.js} +26 -27
- package/dist/{revolugo.currencypicker.pgTJ4rt4.min.js → revolugo.currencypicker.1Hi9dVyq.min.js} +9 -9
- package/dist/{revolugo.currencypickerbtn.D0e0gPz7.min.js → revolugo.currencypickerbtn.CcyLweDl.min.js} +4 -4
- package/dist/{revolugo.currencypickerbtn.QvHF15D0.min.js → revolugo.currencypickerbtn.Dh54QKCr.min.js} +9 -9
- package/dist/{revolugo.dialog-attach.MZOEqNEV.min.js → revolugo.dialog-attach.DCu6y0mp.min.js} +2 -2
- package/dist/{revolugo.fastbookingflow.tLTnI0rU.min.js → revolugo.fastbookingflow.BDhYwidi.min.js} +4 -4
- package/dist/{revolugo.fullbookingflow.CwMQovLH.min.js → revolugo.fullbookingflow.njOLlOVX.min.js} +51 -51
- package/dist/{revolugo.hotel-offer.BI38d5Tm.min.js → revolugo.hotel-offer.B0ThxF7d.min.js} +13 -13
- package/dist/{revolugo.hoteldescriptionview.CLucJ1gS.min.js → revolugo.hoteldescriptionview.BBOiUDlK.min.js} +4 -4
- package/dist/{revolugo.hoteldescriptionview.D5n4WBqc.min.js → revolugo.hoteldescriptionview.CIQcRleF.min.js} +24 -24
- package/dist/{revolugo.hotelofferitemlayout.YB8WDf9L.min.js → revolugo.hotelofferitemlayout.C2qT6Tdd.min.js} +8 -8
- package/dist/{revolugo.hotelofferlist.DTu7ZopK.min.js → revolugo.hotelofferlist.Cx16qxbk.min.js} +1298 -1299
- package/dist/{revolugo.hotelofferlist.B-rtidyw.min.js → revolugo.hotelofferlist.Da8UqbLK.min.js} +4 -4
- package/dist/{revolugo.hotelofferrequestcreator.BQsTvD8F.min.js → revolugo.hotelofferrequestcreator.BYI0GO-4.min.js} +14 -14
- package/dist/{revolugo.hoteloffersearchmenu.BPHAQoVZ.min.js → revolugo.hoteloffersearchmenu.5hMVWsgb.min.js} +6 -6
- package/dist/{revolugo.hoteloffersmap.fhoY4i49.min.js → revolugo.hoteloffersmap.Bnd5znB3.min.js} +4 -4
- package/dist/{revolugo.hoteloffersmap.Dc3Djbce.min.js → revolugo.hoteloffersmap.C9eYR1P6.min.js} +18 -18
- package/dist/{revolugo.hoteloffersview.CN3aDzKp.min.js → revolugo.hoteloffersview.CPLiq5Ij.min.js} +4 -4
- package/dist/{revolugo.hoteloffersview.u9eJgSdG.min.js → revolugo.hoteloffersview.DgXLn59q.min.js} +17 -17
- package/dist/{revolugo.hotelroomofferlist.DWaAwePZ.min.js → revolugo.hotelroomofferlist.BQbBhPLN.min.js} +4 -4
- package/dist/{revolugo.hotelroomofferlist.BrpTGPm2.min.js → revolugo.hotelroomofferlist.rLLEnHxv.min.js} +46 -47
- package/dist/{revolugo.hotelroomofferrequestcreator.CM4cg4DS.min.js → revolugo.hotelroomofferrequestcreator.zHBuxqNE.min.js} +10 -10
- package/dist/{revolugo.hotelroomoffersbookingflow.RH7qyqPm.min.js → revolugo.hotelroomoffersbookingflow.BroWkYCC.min.js} +19 -19
- package/dist/{revolugo.hotelroomoffersearchmenu.OVFJ9LCC.min.js → revolugo.hotelroomoffersearchmenu.BwYRtN5e.min.js} +5 -5
- package/dist/{revolugo.hotelroomoffersearchmenu.55HHjwST.min.js → revolugo.hotelroomoffersearchmenu.DYDhnNU1.min.js} +4 -4
- package/dist/{revolugo.hotelroomoffersview.C9W3t6oM.min.js → revolugo.hotelroomoffersview.CAS3AD5f.min.js} +16 -16
- package/dist/{revolugo.hotelroomoffersview.BvpNR588.min.js → revolugo.hotelroomoffersview.hYNQozMH.min.js} +4 -4
- package/dist/{revolugo.i18n.CuDReacQ.min.js → revolugo.i18n.qxNwIBzD.min.js} +1789 -1761
- package/dist/{revolugo.index.SpWD4hl3.min.js → revolugo.index.AsnH-FuH.min.js} +5 -5
- package/dist/{revolugo.index.wKEERS5G.min.js → revolugo.index.B4A68M5t.min.js} +5 -5
- package/dist/{revolugo.index.BfaIoxFY.min.js → revolugo.index.BEHsb08j.min.js} +2 -2
- package/dist/{revolugo.index.nG_rdN5i.min.js → revolugo.index.BaIijK3F.min.js} +10 -10
- package/dist/{revolugo.index.C1PRuwys.min.js → revolugo.index.BvGEYMD1.min.js} +9 -9
- package/dist/{revolugo.index._koCafXL.min.js → revolugo.index.C-EgBtuD.min.js} +2 -2
- package/dist/revolugo.index.CB3P2Zlq.min.js +15 -0
- package/dist/{revolugo.index.CKgve2FN.min.js → revolugo.index.CHWu5X5E.min.js} +3 -3
- package/dist/{revolugo.index.BjMVo6uv.min.js → revolugo.index.CHom4BIU.min.js} +6 -6
- package/dist/{revolugo.index.CnetTZdK.min.js → revolugo.index.D49U-I6Y.min.js} +3 -3
- package/dist/{revolugo.index.y2z5jkKQ.min.js → revolugo.index.Dkr0oa4k.min.js} +4 -4
- package/dist/{revolugo.index.BG5xy16p.min.js → revolugo.index.Ii4kfDF9.min.js} +2 -2
- package/dist/{revolugo.index.CFSkbmtc.min.js → revolugo.index.kC1bvuBl.min.js} +7 -7
- package/dist/{revolugo.index.DtnM8mh_.min.js → revolugo.index.uJFrICC7.min.js} +5 -5
- package/dist/{revolugo.langpicker.BzFnLUm9.min.js → revolugo.langpicker.DwAtgVGN.min.js} +7 -7
- package/dist/{revolugo.langpickerbtn.EMYV4hoY.min.js → revolugo.langpickerbtn.Bith7Aep.min.js} +10 -10
- package/dist/{revolugo.langpickerbtn.Cn-p3RAu.min.js → revolugo.langpickerbtn.CtxPiTZb.min.js} +4 -4
- package/dist/revolugo.min.js +26 -26
- package/dist/{revolugo.parsed-height.D3VO935x.min.js → revolugo.parsed-height.BfaP0GLv.min.js} +108 -109
- package/dist/{revolugo.parsed-props.C2NezSgu.min.js → revolugo.parsed-props.CS4UjtN_.min.js} +3 -3
- package/dist/{revolugo.prebookform.y6Le8jqk.min.js → revolugo.prebookform.Cl1XflB5.min.js} +24 -25
- package/dist/{revolugo.prebookform.z40QeX8Y.min.js → revolugo.prebookform.ClgRx5Uf.min.js} +4 -4
- package/dist/{revolugo.booking-api-client.BOzfwVYX.min.js → revolugo.revolugo-config.CXM6Omah.min.js} +3670 -1964
- package/dist/{revolugo.roominglisteditor.CGGfrU9y.min.js → revolugo.roominglisteditor.BzeXJB70.min.js} +4 -4
- package/dist/{revolugo.roominglisteditor.ltVJG2yb.min.js → revolugo.roominglisteditor.CfHcAAT8.min.js} +10 -10
- package/dist/{revolugo.sentry.fRRV-E4u.min.js → revolugo.sentry.BVrKAYI8.min.js} +31 -11
- package/dist/{revolugo.store.BlcQQ-4u.min.js → revolugo.store.DWQvkpHn.min.js} +409 -410
- package/dist/{revolugo.storybooktoolbar.PNDGMI0x.min.js → revolugo.storybooktoolbar.CXymV_hK.min.js} +19 -19
- package/dist/{revolugo.termsandconditions.BcLdmO9u.min.js → revolugo.termsandconditions.C88a7LCH.min.js} +4 -4
- package/dist/{revolugo.termsandconditions.BpNUnlCe.min.js → revolugo.termsandconditions.CarLtEho.min.js} +6 -6
- package/dist/revolugo.typed-mixins.Dz5yLoi0.min.js +8 -0
- package/dist/{revolugo.valert.BaEBE0P-.min.js → revolugo.valert.CM6jgpNa.min.js} +7 -7
- package/dist/{revolugo.vautocomplete.DYSxxpv7.min.js → revolugo.vautocomplete.BtXeyAKq.min.js} +5 -5
- package/dist/{revolugo.vbadge.DgrYAEFj.min.js → revolugo.vbadge.CW7q4exY.min.js} +6 -6
- package/dist/{revolugo.vbtn.C9YDeyc-.min.js → revolugo.vbtn.D3lH5UVr.min.js} +7 -7
- package/dist/{revolugo.vcard.DX8p2-Xj.min.js → revolugo.vcard.Bd9-Lhjs.min.js} +6 -6
- package/dist/{revolugo.vdialog.Cd0XOERM.min.js → revolugo.vdialog.CRQbscoB.min.js} +10 -10
- package/dist/{revolugo.vexpansionpanelheader.D0qJ_bqC.min.js → revolugo.vexpansionpanelheader.CxVWFZa5.min.js} +8 -8
- package/dist/{revolugo.vform.DYPyEXKA.min.js → revolugo.vform.BXQKejHZ.min.js} +5 -5
- package/dist/{revolugo.vinput.CBbRCC9E.min.js → revolugo.vinput.Cg25P65-.min.js} +5 -5
- package/dist/{revolugo.vitemgroup.BWlTh2TE.min.js → revolugo.vitemgroup.P6dZ2dAp.min.js} +5 -5
- package/dist/{revolugo.vlistitem.It57-y90.min.js → revolugo.vlistitem.G-Y9-r4l.min.js} +8 -8
- package/dist/{revolugo.vmenu.CXLFtdm8.min.js → revolugo.vmenu.LvjfQmP_.min.js} +8 -8
- package/dist/{revolugo.vselect.5aTjQlRS.min.js → revolugo.vselect.DmnMA0NH.min.js} +17 -17
- package/dist/{revolugo.vsheet.Crxfmq3Y.min.js → revolugo.vsheet.BURnAoIb.min.js} +5 -5
- package/dist/{revolugo.vskeletonloader.Dety0a9H.min.js → revolugo.vskeletonloader.B0qz73wS.min.js} +4 -4
- package/dist/{revolugo.vslidegroup.3piQiZq8.min.js → revolugo.vslidegroup.B2fV8aGy.min.js} +10 -10
- package/dist/{revolugo.vsnackbar.L36Qpan4.min.js → revolugo.vsnackbar.BWWXV2-b.min.js} +5 -5
- package/dist/{revolugo.vtextfield.CPbhfKsq.min.js → revolugo.vtextfield.sGu01yqR.min.js} +7 -7
- package/dist/{revolugo.vtoolbar.BnwpZJCn.min.js → revolugo.vtoolbar.C5u-U0vB.min.js} +5 -5
- package/dist/{revolugo.vtooltip.BtiNycgC.min.js → revolugo.vtooltip.CZyNa8f9.min.js} +7 -7
- package/dist/{revolugo.vuetify.CewyUEmk.min.js → revolugo.vuetify.Cbh6S4U-.min.js} +262 -259
- package/dist/{revolugo.watch-list.DLmiG3rJ.min.js → revolugo.watch-list.IHSNnMf3.min.js} +3 -3
- package/dist/{revolugo.webcomponentwrapper.Od8ojyDM.min.js → revolugo.webcomponentwrapper.CJmmFgVo.min.js} +12 -12
- package/package.json +5 -5
- package/dist/revolugo.bphoneinput.DmGBPbRi.min.js +0 -1832
- package/dist/revolugo.creditcardform.azL7EOJI.min.js +0 -2003
- package/dist/revolugo.index.Dj2qcRAu.min.js +0 -15
- package/dist/revolugo.revolugo-config.Dlt8EylH.min.js +0 -1682
- package/dist/revolugo.typed-mixins.CTkQuxKC.min.js +0 -8
@@ -1,6 +1,5 @@
|
|
1
|
-
import { E, D as
|
2
|
-
import { V as b, d as
|
3
|
-
import { g as qe, a as ge } from "./revolugo.booking-api-client.BOzfwVYX.min.js";
|
1
|
+
import { u as Ae, E as v, k as de, D as De } from "./revolugo.revolugo-config.CXM6Omah.min.js";
|
2
|
+
import { V as b, d as L, c as he, o as ge, r as ke, u as Le, e as xe, a as ne, f as ie, M as Ue, s as F, h as qe } from "./revolugo.i18n.qxNwIBzD.min.js";
|
4
3
|
import { a as P } from "./revolugo.event-bus.Dmw4Ysj2.min.js";
|
5
4
|
/*!
|
6
5
|
* vuex v3.6.2
|
@@ -13,13 +12,13 @@ function Ne(e) {
|
|
13
12
|
e.mixin({ beforeCreate: n });
|
14
13
|
else {
|
15
14
|
var r = e.prototype._init;
|
16
|
-
e.prototype._init = function(
|
17
|
-
|
15
|
+
e.prototype._init = function(i) {
|
16
|
+
i === void 0 && (i = {}), i.init = i.init ? [n].concat(i.init) : n, r.call(this, i);
|
18
17
|
};
|
19
18
|
}
|
20
19
|
function n() {
|
21
|
-
var
|
22
|
-
|
20
|
+
var i = this.$options;
|
21
|
+
i.store ? this.$store = typeof i.store == "function" ? i.store() : i.store : i.parent && i.parent.$store && (this.$store = i.parent.$store);
|
23
22
|
}
|
24
23
|
}
|
25
24
|
var Be = typeof window < "u" ? window : typeof global < "u" ? global : {}, C = Be.__VUE_DEVTOOLS_GLOBAL_HOOK__;
|
@@ -38,8 +37,8 @@ function je(e, t) {
|
|
38
37
|
function Q(e, t) {
|
39
38
|
if (t === void 0 && (t = []), e === null || typeof e != "object")
|
40
39
|
return e;
|
41
|
-
var r = je(t, function(
|
42
|
-
return
|
40
|
+
var r = je(t, function(i) {
|
41
|
+
return i.original === e;
|
43
42
|
});
|
44
43
|
if (r)
|
45
44
|
return r.copy;
|
@@ -47,8 +46,8 @@ function Q(e, t) {
|
|
47
46
|
return t.push({
|
48
47
|
original: e,
|
49
48
|
copy: n
|
50
|
-
}), Object.keys(e).forEach(function(
|
51
|
-
n[
|
49
|
+
}), Object.keys(e).forEach(function(i) {
|
50
|
+
n[i] = Q(e[i], t);
|
52
51
|
}), n;
|
53
52
|
}
|
54
53
|
function H(e, t) {
|
@@ -56,7 +55,7 @@ function H(e, t) {
|
|
56
55
|
return t(e[r], r);
|
57
56
|
});
|
58
57
|
}
|
59
|
-
function
|
58
|
+
function Oe(e) {
|
60
59
|
return e !== null && typeof e == "object";
|
61
60
|
}
|
62
61
|
function Ve(e) {
|
@@ -67,42 +66,42 @@ function Ye(e, t) {
|
|
67
66
|
return e(t);
|
68
67
|
};
|
69
68
|
}
|
70
|
-
var
|
69
|
+
var E = function(t, r) {
|
71
70
|
this.runtime = r, this._children = /* @__PURE__ */ Object.create(null), this._rawModule = t;
|
72
71
|
var n = t.state;
|
73
72
|
this.state = (typeof n == "function" ? n() : n) || {};
|
74
|
-
},
|
75
|
-
|
73
|
+
}, _e = { namespaced: { configurable: !0 } };
|
74
|
+
_e.namespaced.get = function() {
|
76
75
|
return !!this._rawModule.namespaced;
|
77
76
|
};
|
78
|
-
|
77
|
+
E.prototype.addChild = function(t, r) {
|
79
78
|
this._children[t] = r;
|
80
79
|
};
|
81
|
-
|
80
|
+
E.prototype.removeChild = function(t) {
|
82
81
|
delete this._children[t];
|
83
82
|
};
|
84
|
-
|
83
|
+
E.prototype.getChild = function(t) {
|
85
84
|
return this._children[t];
|
86
85
|
};
|
87
|
-
|
86
|
+
E.prototype.hasChild = function(t) {
|
88
87
|
return t in this._children;
|
89
88
|
};
|
90
|
-
|
89
|
+
E.prototype.update = function(t) {
|
91
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);
|
92
91
|
};
|
93
|
-
|
92
|
+
E.prototype.forEachChild = function(t) {
|
94
93
|
H(this._children, t);
|
95
94
|
};
|
96
|
-
|
95
|
+
E.prototype.forEachGetter = function(t) {
|
97
96
|
this._rawModule.getters && H(this._rawModule.getters, t);
|
98
97
|
};
|
99
|
-
|
98
|
+
E.prototype.forEachAction = function(t) {
|
100
99
|
this._rawModule.actions && H(this._rawModule.actions, t);
|
101
100
|
};
|
102
|
-
|
101
|
+
E.prototype.forEachMutation = function(t) {
|
103
102
|
this._rawModule.mutations && H(this._rawModule.mutations, t);
|
104
103
|
};
|
105
|
-
Object.defineProperties(
|
104
|
+
Object.defineProperties(E.prototype, _e);
|
106
105
|
var w = function(t) {
|
107
106
|
this.register([], t, !1);
|
108
107
|
};
|
@@ -113,162 +112,162 @@ w.prototype.get = function(t) {
|
|
113
112
|
};
|
114
113
|
w.prototype.getNamespace = function(t) {
|
115
114
|
var r = this.root;
|
116
|
-
return t.reduce(function(n,
|
117
|
-
return r = r.getChild(
|
115
|
+
return t.reduce(function(n, i) {
|
116
|
+
return r = r.getChild(i), n + (r.namespaced ? i + "/" : "");
|
118
117
|
}, "");
|
119
118
|
};
|
120
119
|
w.prototype.update = function(t) {
|
121
|
-
|
120
|
+
Ee([], this.root, t);
|
122
121
|
};
|
123
122
|
w.prototype.register = function(t, r, n) {
|
124
|
-
var
|
123
|
+
var i = this;
|
125
124
|
n === void 0 && (n = !0);
|
126
|
-
var
|
125
|
+
var o = new E(r, n);
|
127
126
|
if (t.length === 0)
|
128
|
-
this.root =
|
127
|
+
this.root = o;
|
129
128
|
else {
|
130
129
|
var s = this.get(t.slice(0, -1));
|
131
|
-
s.addChild(t[t.length - 1],
|
130
|
+
s.addChild(t[t.length - 1], o);
|
132
131
|
}
|
133
|
-
r.modules && H(r.modules, function(a,
|
134
|
-
|
132
|
+
r.modules && H(r.modules, function(a, c) {
|
133
|
+
i.register(t.concat(c), a, n);
|
135
134
|
});
|
136
135
|
};
|
137
136
|
w.prototype.unregister = function(t) {
|
138
|
-
var r = this.get(t.slice(0, -1)), n = t[t.length - 1],
|
139
|
-
|
137
|
+
var r = this.get(t.slice(0, -1)), n = t[t.length - 1], i = r.getChild(n);
|
138
|
+
i && i.runtime && r.removeChild(n);
|
140
139
|
};
|
141
140
|
w.prototype.isRegistered = function(t) {
|
142
141
|
var r = this.get(t.slice(0, -1)), n = t[t.length - 1];
|
143
142
|
return r ? r.hasChild(n) : !1;
|
144
143
|
};
|
145
|
-
function
|
144
|
+
function Ee(e, t, r) {
|
146
145
|
if (t.update(r), r.modules)
|
147
146
|
for (var n in r.modules) {
|
148
147
|
if (!t.getChild(n))
|
149
148
|
return;
|
150
|
-
|
149
|
+
Ee(
|
151
150
|
e.concat(n),
|
152
151
|
t.getChild(n),
|
153
152
|
r.modules[n]
|
154
153
|
);
|
155
154
|
}
|
156
155
|
}
|
157
|
-
var
|
156
|
+
var O, _ = function(t) {
|
158
157
|
var r = this;
|
159
|
-
t === void 0 && (t = {}), !
|
158
|
+
t === void 0 && (t = {}), !O && typeof window < "u" && window.Vue && Re(window.Vue);
|
160
159
|
var n = t.plugins;
|
161
160
|
n === void 0 && (n = []);
|
162
|
-
var
|
163
|
-
|
164
|
-
var
|
165
|
-
this.dispatch = function(l,
|
166
|
-
return a.call(
|
167
|
-
}, this.commit = function(l,
|
168
|
-
return
|
169
|
-
}, this.strict =
|
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 w(t), this._modulesNamespaceMap = /* @__PURE__ */ Object.create(null), this._subscribers = [], this._watcherVM = new O(), this._makeLocalGettersCache = /* @__PURE__ */ Object.create(null);
|
163
|
+
var o = this, s = this, a = s.dispatch, c = s.commit;
|
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
|
+
}, this.strict = i;
|
170
169
|
var f = this._modules.root.state;
|
171
|
-
q(this, f, [], this._modules.root), X(this, f), n.forEach(function(
|
172
|
-
return
|
170
|
+
q(this, f, [], this._modules.root), X(this, f), n.forEach(function(d) {
|
171
|
+
return d(r);
|
173
172
|
});
|
174
|
-
var
|
175
|
-
|
173
|
+
var u = t.devtools !== void 0 ? t.devtools : O.config.devtools;
|
174
|
+
u && Ge(this);
|
176
175
|
}, J = { state: { configurable: !0 } };
|
177
176
|
J.state.get = function() {
|
178
177
|
return this._vm._data.$$state;
|
179
178
|
};
|
180
179
|
J.state.set = function(e) {
|
181
180
|
};
|
182
|
-
|
183
|
-
var
|
181
|
+
_.prototype.commit = function(t, r, n) {
|
182
|
+
var i = this, o = x(t, r, n), s = o.type, a = o.payload, c = { type: s, payload: a }, f = this._mutations[s];
|
184
183
|
f && (this._withCommit(function() {
|
185
|
-
f.forEach(function(
|
186
|
-
|
184
|
+
f.forEach(function(d) {
|
185
|
+
d(a);
|
187
186
|
});
|
188
|
-
}), this._subscribers.slice().forEach(function(
|
189
|
-
return c
|
187
|
+
}), this._subscribers.slice().forEach(function(u) {
|
188
|
+
return u(c, i.state);
|
190
189
|
}));
|
191
190
|
};
|
192
|
-
|
193
|
-
var n = this,
|
194
|
-
if (
|
191
|
+
_.prototype.dispatch = function(t, r) {
|
192
|
+
var n = this, i = x(t, r), o = i.type, s = i.payload, a = { type: o, payload: s }, c = this._actions[o];
|
193
|
+
if (c) {
|
195
194
|
try {
|
196
|
-
this._actionSubscribers.slice().filter(function(
|
197
|
-
return
|
198
|
-
}).forEach(function(
|
199
|
-
return
|
195
|
+
this._actionSubscribers.slice().filter(function(u) {
|
196
|
+
return u.before;
|
197
|
+
}).forEach(function(u) {
|
198
|
+
return u.before(a, n.state);
|
200
199
|
});
|
201
200
|
} catch {
|
202
201
|
}
|
203
|
-
var f =
|
204
|
-
return
|
205
|
-
})) :
|
206
|
-
return new Promise(function(
|
202
|
+
var f = c.length > 1 ? Promise.all(c.map(function(u) {
|
203
|
+
return u(s);
|
204
|
+
})) : c[0](s);
|
205
|
+
return new Promise(function(u, d) {
|
207
206
|
f.then(function(l) {
|
208
207
|
try {
|
209
|
-
n._actionSubscribers.filter(function(
|
210
|
-
return
|
211
|
-
}).forEach(function(
|
212
|
-
return
|
208
|
+
n._actionSubscribers.filter(function(h) {
|
209
|
+
return h.after;
|
210
|
+
}).forEach(function(h) {
|
211
|
+
return h.after(a, n.state);
|
213
212
|
});
|
214
213
|
} catch {
|
215
214
|
}
|
216
|
-
|
215
|
+
u(l);
|
217
216
|
}, function(l) {
|
218
217
|
try {
|
219
|
-
n._actionSubscribers.filter(function(
|
220
|
-
return
|
221
|
-
}).forEach(function(
|
222
|
-
return
|
218
|
+
n._actionSubscribers.filter(function(h) {
|
219
|
+
return h.error;
|
220
|
+
}).forEach(function(h) {
|
221
|
+
return h.error(a, n.state, l);
|
223
222
|
});
|
224
223
|
} catch {
|
225
224
|
}
|
226
|
-
|
225
|
+
d(l);
|
227
226
|
});
|
228
227
|
});
|
229
228
|
}
|
230
229
|
};
|
231
|
-
|
232
|
-
return
|
230
|
+
_.prototype.subscribe = function(t, r) {
|
231
|
+
return ve(t, this._subscribers, r);
|
233
232
|
};
|
234
|
-
|
233
|
+
_.prototype.subscribeAction = function(t, r) {
|
235
234
|
var n = typeof t == "function" ? { before: t } : t;
|
236
|
-
return
|
235
|
+
return ve(n, this._actionSubscribers, r);
|
237
236
|
};
|
238
|
-
|
239
|
-
var
|
237
|
+
_.prototype.watch = function(t, r, n) {
|
238
|
+
var i = this;
|
240
239
|
return this._watcherVM.$watch(function() {
|
241
|
-
return t(
|
240
|
+
return t(i.state, i.getters);
|
242
241
|
}, r, n);
|
243
242
|
};
|
244
|
-
|
243
|
+
_.prototype.replaceState = function(t) {
|
245
244
|
var r = this;
|
246
245
|
this._withCommit(function() {
|
247
246
|
r._vm._data.$$state = t;
|
248
247
|
});
|
249
248
|
};
|
250
|
-
|
249
|
+
_.prototype.registerModule = function(t, r, n) {
|
251
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);
|
252
251
|
};
|
253
|
-
|
252
|
+
_.prototype.unregisterModule = function(t) {
|
254
253
|
var r = this;
|
255
254
|
typeof t == "string" && (t = [t]), this._modules.unregister(t), this._withCommit(function() {
|
256
255
|
var n = Z(r.state, t.slice(0, -1));
|
257
|
-
|
256
|
+
O.delete(n, t[t.length - 1]);
|
258
257
|
}), me(this);
|
259
258
|
};
|
260
|
-
|
259
|
+
_.prototype.hasModule = function(t) {
|
261
260
|
return typeof t == "string" && (t = [t]), this._modules.isRegistered(t);
|
262
261
|
};
|
263
|
-
|
262
|
+
_.prototype.hotUpdate = function(t) {
|
264
263
|
this._modules.update(t), me(this, !0);
|
265
264
|
};
|
266
|
-
|
265
|
+
_.prototype._withCommit = function(t) {
|
267
266
|
var r = this._committing;
|
268
267
|
this._committing = !0, t(), this._committing = r;
|
269
268
|
};
|
270
|
-
Object.defineProperties(
|
271
|
-
function
|
269
|
+
Object.defineProperties(_.prototype, J);
|
270
|
+
function ve(e, t, r) {
|
272
271
|
return t.indexOf(e) < 0 && (r && r.prepend ? t.unshift(e) : t.push(e)), function() {
|
273
272
|
var n = t.indexOf(e);
|
274
273
|
n > -1 && t.splice(n, 1);
|
@@ -282,62 +281,62 @@ function me(e, t) {
|
|
282
281
|
function X(e, t, r) {
|
283
282
|
var n = e._vm;
|
284
283
|
e.getters = {}, e._makeLocalGettersCache = /* @__PURE__ */ Object.create(null);
|
285
|
-
var
|
286
|
-
H(
|
287
|
-
|
284
|
+
var i = e._wrappedGetters, o = {};
|
285
|
+
H(i, function(a, c) {
|
286
|
+
o[c] = Ye(a, e), Object.defineProperty(e.getters, c, {
|
288
287
|
get: function() {
|
289
|
-
return e._vm[
|
288
|
+
return e._vm[c];
|
290
289
|
},
|
291
290
|
enumerable: !0
|
292
291
|
// for local getters
|
293
292
|
});
|
294
293
|
});
|
295
|
-
var s =
|
296
|
-
|
294
|
+
var s = O.config.silent;
|
295
|
+
O.config.silent = !0, e._vm = new O({
|
297
296
|
data: {
|
298
297
|
$$state: t
|
299
298
|
},
|
300
|
-
computed:
|
301
|
-
}),
|
299
|
+
computed: o
|
300
|
+
}), O.config.silent = s, e.strict && Xe(e), n && (r && e._withCommit(function() {
|
302
301
|
n._data.$$state = null;
|
303
|
-
}),
|
302
|
+
}), O.nextTick(function() {
|
304
303
|
return n.$destroy();
|
305
304
|
}));
|
306
305
|
}
|
307
|
-
function q(e, t, r, n,
|
308
|
-
var
|
309
|
-
if (n.namespaced && (e._modulesNamespaceMap[s], e._modulesNamespaceMap[s] = n), !
|
310
|
-
var a = Z(t, r.slice(0, -1)),
|
306
|
+
function q(e, t, r, n, i) {
|
307
|
+
var o = !r.length, s = e._modules.getNamespace(r);
|
308
|
+
if (n.namespaced && (e._modulesNamespaceMap[s], e._modulesNamespaceMap[s] = n), !o && !i) {
|
309
|
+
var a = Z(t, r.slice(0, -1)), c = r[r.length - 1];
|
311
310
|
e._withCommit(function() {
|
312
|
-
|
311
|
+
O.set(a, c, n.state);
|
313
312
|
});
|
314
313
|
}
|
315
314
|
var f = n.context = ze(e, s, r);
|
316
|
-
n.forEachMutation(function(
|
317
|
-
var l = s +
|
318
|
-
Ke(e, l,
|
319
|
-
}), n.forEachAction(function(
|
320
|
-
var l =
|
321
|
-
We(e, l,
|
322
|
-
}), n.forEachGetter(function(
|
323
|
-
var l = s +
|
324
|
-
Je(e, l,
|
325
|
-
}), n.forEachChild(function(
|
326
|
-
q(e, t, r.concat(
|
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);
|
327
326
|
});
|
328
327
|
}
|
329
328
|
function ze(e, t, r) {
|
330
|
-
var n = t === "",
|
331
|
-
dispatch: n ? e.dispatch : function(
|
332
|
-
var
|
333
|
-
return (!
|
329
|
+
var n = t === "", i = {
|
330
|
+
dispatch: n ? e.dispatch : function(o, s, a) {
|
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);
|
334
333
|
},
|
335
|
-
commit: n ? e.commit : function(
|
336
|
-
var
|
337
|
-
(!
|
334
|
+
commit: n ? e.commit : function(o, s, a) {
|
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);
|
338
337
|
}
|
339
338
|
};
|
340
|
-
return Object.defineProperties(
|
339
|
+
return Object.defineProperties(i, {
|
341
340
|
getters: {
|
342
341
|
get: n ? function() {
|
343
342
|
return e.getters;
|
@@ -350,17 +349,17 @@ function ze(e, t, r) {
|
|
350
349
|
return Z(e.state, r);
|
351
350
|
}
|
352
351
|
}
|
353
|
-
}),
|
352
|
+
}), i;
|
354
353
|
}
|
355
354
|
function Qe(e, t) {
|
356
355
|
if (!e._makeLocalGettersCache[t]) {
|
357
356
|
var r = {}, n = t.length;
|
358
|
-
Object.keys(e.getters).forEach(function(
|
359
|
-
if (
|
360
|
-
var
|
361
|
-
Object.defineProperty(r,
|
357
|
+
Object.keys(e.getters).forEach(function(i) {
|
358
|
+
if (i.slice(0, n) === t) {
|
359
|
+
var o = i.slice(n);
|
360
|
+
Object.defineProperty(r, o, {
|
362
361
|
get: function() {
|
363
|
-
return e.getters[
|
362
|
+
return e.getters[i];
|
364
363
|
},
|
365
364
|
enumerable: !0
|
366
365
|
});
|
@@ -370,14 +369,14 @@ function Qe(e, t) {
|
|
370
369
|
return e._makeLocalGettersCache[t];
|
371
370
|
}
|
372
371
|
function Ke(e, t, r, n) {
|
373
|
-
var
|
374
|
-
|
372
|
+
var i = e._mutations[t] || (e._mutations[t] = []);
|
373
|
+
i.push(function(s) {
|
375
374
|
r.call(e, n.state, s);
|
376
375
|
});
|
377
376
|
}
|
378
377
|
function We(e, t, r, n) {
|
379
|
-
var
|
380
|
-
|
378
|
+
var i = e._actions[t] || (e._actions[t] = []);
|
379
|
+
i.push(function(s) {
|
381
380
|
var a = r.call(e, {
|
382
381
|
dispatch: n.dispatch,
|
383
382
|
commit: n.commit,
|
@@ -386,21 +385,21 @@ function We(e, t, r, n) {
|
|
386
385
|
rootGetters: e.getters,
|
387
386
|
rootState: e.state
|
388
387
|
}, s);
|
389
|
-
return Ve(a) || (a = Promise.resolve(a)), e._devtoolHook ? a.catch(function(
|
390
|
-
throw e._devtoolHook.emit("vuex:error",
|
388
|
+
return Ve(a) || (a = Promise.resolve(a)), e._devtoolHook ? a.catch(function(c) {
|
389
|
+
throw e._devtoolHook.emit("vuex:error", c), c;
|
391
390
|
}) : a;
|
392
391
|
});
|
393
392
|
}
|
394
393
|
function Je(e, t, r, n) {
|
395
|
-
e._wrappedGetters[t] || (e._wrappedGetters[t] = function(
|
394
|
+
e._wrappedGetters[t] || (e._wrappedGetters[t] = function(o) {
|
396
395
|
return r(
|
397
396
|
n.state,
|
398
397
|
// local state
|
399
398
|
n.getters,
|
400
399
|
// local getters
|
401
|
-
|
400
|
+
o.state,
|
402
401
|
// root state
|
403
|
-
|
402
|
+
o.getters
|
404
403
|
// root getters
|
405
404
|
);
|
406
405
|
});
|
@@ -417,65 +416,65 @@ function Z(e, t) {
|
|
417
416
|
}, e);
|
418
417
|
}
|
419
418
|
function x(e, t, r) {
|
420
|
-
return
|
419
|
+
return Oe(e) && e.type && (r = t, t = e, e = e.type), { type: e, payload: t, options: r };
|
421
420
|
}
|
422
421
|
function Re(e) {
|
423
|
-
|
422
|
+
O && e === O || (O = e, Ne(O));
|
424
423
|
}
|
425
424
|
var pe = B(function(e, t) {
|
426
425
|
var r = {};
|
427
426
|
return N(t).forEach(function(n) {
|
428
|
-
var
|
429
|
-
r[
|
430
|
-
var a = this.$store.state,
|
427
|
+
var i = n.key, o = n.val;
|
428
|
+
r[i] = function() {
|
429
|
+
var a = this.$store.state, c = this.$store.getters;
|
431
430
|
if (e) {
|
432
431
|
var f = G(this.$store, "mapState", e);
|
433
432
|
if (!f)
|
434
433
|
return;
|
435
|
-
a = f.context.state,
|
434
|
+
a = f.context.state, c = f.context.getters;
|
436
435
|
}
|
437
|
-
return typeof
|
438
|
-
}, r[
|
436
|
+
return typeof o == "function" ? o.call(this, a, c) : a[o];
|
437
|
+
}, r[i].vuex = !0;
|
439
438
|
}), r;
|
440
439
|
}), Te = B(function(e, t) {
|
441
440
|
var r = {};
|
442
441
|
return N(t).forEach(function(n) {
|
443
|
-
var
|
444
|
-
r[
|
445
|
-
for (var a = [],
|
442
|
+
var i = n.key, o = n.val;
|
443
|
+
r[i] = function() {
|
444
|
+
for (var a = [], c = arguments.length; c--; ) a[c] = arguments[c];
|
446
445
|
var f = this.$store.commit;
|
447
446
|
if (e) {
|
448
|
-
var
|
449
|
-
if (!
|
447
|
+
var u = G(this.$store, "mapMutations", e);
|
448
|
+
if (!u)
|
450
449
|
return;
|
451
|
-
f =
|
450
|
+
f = u.context.commit;
|
452
451
|
}
|
453
|
-
return typeof
|
452
|
+
return typeof o == "function" ? o.apply(this, [f].concat(a)) : f.apply(this.$store, [o].concat(a));
|
454
453
|
};
|
455
454
|
}), r;
|
456
455
|
}), Se = B(function(e, t) {
|
457
456
|
var r = {};
|
458
457
|
return N(t).forEach(function(n) {
|
459
|
-
var
|
460
|
-
|
458
|
+
var i = n.key, o = n.val;
|
459
|
+
o = e + o, r[i] = function() {
|
461
460
|
if (!(e && !G(this.$store, "mapGetters", e)))
|
462
|
-
return this.$store.getters[
|
463
|
-
}, r[
|
461
|
+
return this.$store.getters[o];
|
462
|
+
}, r[i].vuex = !0;
|
464
463
|
}), r;
|
465
464
|
}), ye = B(function(e, t) {
|
466
465
|
var r = {};
|
467
466
|
return N(t).forEach(function(n) {
|
468
|
-
var
|
469
|
-
r[
|
470
|
-
for (var a = [],
|
467
|
+
var i = n.key, o = n.val;
|
468
|
+
r[i] = function() {
|
469
|
+
for (var a = [], c = arguments.length; c--; ) a[c] = arguments[c];
|
471
470
|
var f = this.$store.dispatch;
|
472
471
|
if (e) {
|
473
|
-
var
|
474
|
-
if (!
|
472
|
+
var u = G(this.$store, "mapActions", e);
|
473
|
+
if (!u)
|
475
474
|
return;
|
476
|
-
f =
|
475
|
+
f = u.context.dispatch;
|
477
476
|
}
|
478
|
-
return typeof
|
477
|
+
return typeof o == "function" ? o.apply(this, [f].concat(a)) : f.apply(this.$store, [o].concat(a));
|
479
478
|
};
|
480
479
|
}), r;
|
481
480
|
}), Ze = function(e) {
|
@@ -494,7 +493,7 @@ function N(e) {
|
|
494
493
|
}) : [];
|
495
494
|
}
|
496
495
|
function et(e) {
|
497
|
-
return Array.isArray(e) ||
|
496
|
+
return Array.isArray(e) || Oe(e);
|
498
497
|
}
|
499
498
|
function B(e) {
|
500
499
|
return function(t, r) {
|
@@ -510,48 +509,48 @@ function tt(e) {
|
|
510
509
|
var t = e.collapsed;
|
511
510
|
t === void 0 && (t = !0);
|
512
511
|
var r = e.filter;
|
513
|
-
r === void 0 && (r = function(
|
512
|
+
r === void 0 && (r = function(u, d, l) {
|
514
513
|
return !0;
|
515
514
|
});
|
516
515
|
var n = e.transformer;
|
517
|
-
n === void 0 && (n = function(
|
518
|
-
return
|
516
|
+
n === void 0 && (n = function(u) {
|
517
|
+
return u;
|
519
518
|
});
|
520
|
-
var
|
521
|
-
|
522
|
-
return
|
519
|
+
var i = e.mutationTransformer;
|
520
|
+
i === void 0 && (i = function(u) {
|
521
|
+
return u;
|
523
522
|
});
|
524
|
-
var
|
525
|
-
|
523
|
+
var o = e.actionFilter;
|
524
|
+
o === void 0 && (o = function(u, d) {
|
526
525
|
return !0;
|
527
526
|
});
|
528
527
|
var s = e.actionTransformer;
|
529
|
-
s === void 0 && (s = function(
|
530
|
-
return
|
528
|
+
s === void 0 && (s = function(u) {
|
529
|
+
return u;
|
531
530
|
});
|
532
531
|
var a = e.logMutations;
|
533
532
|
a === void 0 && (a = !0);
|
534
|
-
var
|
535
|
-
|
533
|
+
var c = e.logActions;
|
534
|
+
c === void 0 && (c = !0);
|
536
535
|
var f = e.logger;
|
537
|
-
return f === void 0 && (f = console), function(
|
538
|
-
var
|
539
|
-
typeof f > "u" || (a &&
|
540
|
-
var g = Q(
|
541
|
-
if (r(l,
|
542
|
-
var R = ae(), p =
|
543
|
-
|
536
|
+
return f === void 0 && (f = console), function(u) {
|
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);
|
544
543
|
}
|
545
|
-
|
546
|
-
}),
|
547
|
-
if (
|
544
|
+
d = g;
|
545
|
+
}), c && u.subscribeAction(function(l, h) {
|
546
|
+
if (o(l, h)) {
|
548
547
|
var g = ae(), R = s(l), p = "action " + l.type + g;
|
549
|
-
|
548
|
+
oe(f, p, t), f.log("%c action", "color: #03A9F4; font-weight: bold", R), se(f);
|
550
549
|
}
|
551
550
|
}));
|
552
551
|
};
|
553
552
|
}
|
554
|
-
function
|
553
|
+
function oe(e, t, r) {
|
555
554
|
var n = r ? e.groupCollapsed : e.group;
|
556
555
|
try {
|
557
556
|
n.call(e, t);
|
@@ -577,7 +576,7 @@ function A(e, t) {
|
|
577
576
|
return rt("0", t - e.toString().length) + e;
|
578
577
|
}
|
579
578
|
var nt = {
|
580
|
-
Store:
|
579
|
+
Store: _,
|
581
580
|
install: Re,
|
582
581
|
version: "3.6.2",
|
583
582
|
mapState: pe,
|
@@ -598,17 +597,17 @@ var nt = {
|
|
598
597
|
}
|
599
598
|
}
|
600
599
|
};
|
601
|
-
function
|
600
|
+
function ar() {
|
602
601
|
for (var e, t = [], r = arguments.length; r--; ) t[r] = arguments[r];
|
603
602
|
return (e = U.store).dispatch.apply(e, t);
|
604
603
|
}
|
605
|
-
function
|
604
|
+
function it(e) {
|
606
605
|
return T(e) && !Array.isArray(e);
|
607
606
|
}
|
608
607
|
function T(e) {
|
609
608
|
return !!e && typeof e == "object";
|
610
609
|
}
|
611
|
-
function
|
610
|
+
function ot(e) {
|
612
611
|
return typeof e == "number" || /^\d+$/.test(e);
|
613
612
|
}
|
614
613
|
function st(e, t) {
|
@@ -621,18 +620,18 @@ function j(e) {
|
|
621
620
|
}
|
622
621
|
function we(e, t) {
|
623
622
|
var r = e, n = j(t);
|
624
|
-
return n.every(function(
|
625
|
-
var
|
626
|
-
return r =
|
623
|
+
return n.every(function(i) {
|
624
|
+
var o = T(r) && r.hasOwnProperty(i);
|
625
|
+
return r = o ? r[i] : void 0, o;
|
627
626
|
}), r;
|
628
627
|
}
|
629
628
|
function at(e, t, r, n) {
|
630
|
-
var
|
631
|
-
return
|
632
|
-
return
|
629
|
+
var i = j(t);
|
630
|
+
return i.reduce(function(o, s, a) {
|
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;
|
633
632
|
}, e);
|
634
633
|
}
|
635
|
-
function
|
634
|
+
function ut(e, t) {
|
636
635
|
var r = j(t);
|
637
636
|
if (T(e)) {
|
638
637
|
for (; r.length; ) {
|
@@ -646,7 +645,7 @@ function ct(e, t) {
|
|
646
645
|
}
|
647
646
|
return !1;
|
648
647
|
}
|
649
|
-
function
|
648
|
+
function ct(e) {
|
650
649
|
return JSON.parse(JSON.stringify(e));
|
651
650
|
}
|
652
651
|
var S = {
|
@@ -669,8 +668,8 @@ var S = {
|
|
669
668
|
},
|
670
669
|
snake: function() {
|
671
670
|
for (var e, t = [], r = arguments.length; r--; ) t[r] = arguments[r];
|
672
|
-
return (e = this).camel.apply(e, t).replace(/([a-z])([A-Z])/g, function(n,
|
673
|
-
return
|
671
|
+
return (e = this).camel.apply(e, t).replace(/([a-z])([A-Z])/g, function(n, i, o) {
|
672
|
+
return i + "_" + o;
|
674
673
|
}).toLowerCase();
|
675
674
|
},
|
676
675
|
const: function() {
|
@@ -682,7 +681,7 @@ var S = {
|
|
682
681
|
getters: "getters",
|
683
682
|
actions: "_actions",
|
684
683
|
mutations: "_mutations"
|
685
|
-
},
|
684
|
+
}, ue = {
|
686
685
|
/**
|
687
686
|
* Standard name mapping function
|
688
687
|
*
|
@@ -714,9 +713,9 @@ function M(e, t) {
|
|
714
713
|
return t.substr(0, t.length - 1);
|
715
714
|
var r = Y;
|
716
715
|
if (!r) {
|
717
|
-
if (r =
|
716
|
+
if (r = ue[S.mapping], !r)
|
718
717
|
throw new Error("[Vuex Pathify] Unknown mapping '" + S.mapping + `' in options
|
719
|
-
- Choose one of '` + Object.keys(
|
718
|
+
- Choose one of '` + Object.keys(ue).join("', '") + `'
|
720
719
|
- Or, supply a custom function
|
721
720
|
`);
|
722
721
|
Y = r;
|
@@ -724,18 +723,18 @@ function M(e, t) {
|
|
724
723
|
return Y(e, t, ft);
|
725
724
|
}
|
726
725
|
function K(e, t) {
|
727
|
-
var r = t.replace(/[/@!]+/g, "."), n = t.split("@"),
|
728
|
-
if (
|
729
|
-
var
|
730
|
-
a =
|
726
|
+
var r = t.replace(/[/@!]+/g, "."), n = t.split("@"), i = n[0], o = n[1], s, a;
|
727
|
+
if (i.indexOf("/") > -1) {
|
728
|
+
var c = i.split("/");
|
729
|
+
a = c.pop(), s = c.join("/");
|
731
730
|
} else
|
732
|
-
a =
|
731
|
+
a = i;
|
733
732
|
if (s && !e._modulesNamespaceMap[s + "/"])
|
734
733
|
throw new Error("[Vuex Pathify] Unknown module '" + s + "' via path '" + t + "'");
|
735
734
|
return {
|
736
735
|
absPath: r,
|
737
736
|
module: s,
|
738
|
-
target:
|
737
|
+
target: i,
|
739
738
|
name: a.replace("!", ""),
|
740
739
|
isDynamic: t.indexOf(":") > -1,
|
741
740
|
/**
|
@@ -745,13 +744,13 @@ function K(e, t) {
|
|
745
744
|
* @returns {{exists: boolean, member: object, type: string, path: string}}
|
746
745
|
*/
|
747
746
|
get: function(f) {
|
748
|
-
var
|
747
|
+
var u = e[lt[f]], d = M(f, a), l = s ? s + "/" + d : d;
|
749
748
|
return {
|
750
|
-
exists: f === "state" ?
|
751
|
-
member:
|
749
|
+
exists: f === "state" ? ut(u, l) : l in u,
|
750
|
+
member: u,
|
752
751
|
trgPath: l,
|
753
|
-
trgName:
|
754
|
-
objPath:
|
752
|
+
trgName: d,
|
753
|
+
objPath: o
|
755
754
|
};
|
756
755
|
}
|
757
756
|
};
|
@@ -763,64 +762,64 @@ y.prototype.update = function(t) {
|
|
763
762
|
return at(t, this.path, this.value), Array.isArray(t) ? [].concat(t) : Object.assign({}, t);
|
764
763
|
};
|
765
764
|
y.isSerialized = function(e) {
|
766
|
-
return
|
765
|
+
return it(e) && "expr" in e && "path" in e && "value" in e;
|
767
766
|
};
|
768
|
-
function
|
767
|
+
function dt(e, t) {
|
769
768
|
var r = K(e, t), n = r.get("actions");
|
770
769
|
if (n.exists)
|
771
|
-
return function(
|
772
|
-
var s = n.objPath ? new y(t, n.objPath,
|
770
|
+
return function(o) {
|
771
|
+
var s = n.objPath ? new y(t, n.objPath, o) : o;
|
773
772
|
return e.dispatch(n.trgPath, s);
|
774
773
|
};
|
775
|
-
var
|
776
|
-
return
|
774
|
+
var i = r.get("mutations");
|
775
|
+
return i.exists || r.isDynamic ? function(o) {
|
777
776
|
if (r.isDynamic) {
|
778
777
|
var s = Me(t, this);
|
779
|
-
|
778
|
+
i = K(e, s).get("mutations");
|
780
779
|
}
|
781
|
-
var a =
|
782
|
-
return e.commit(
|
783
|
-
} : function(
|
780
|
+
var a = i.objPath ? new y(t, i.objPath, o) : o;
|
781
|
+
return e.commit(i.trgPath, a);
|
782
|
+
} : function(o) {
|
784
783
|
};
|
785
784
|
}
|
786
785
|
function Ce(e, t, r) {
|
787
|
-
var n = K(e, t),
|
788
|
-
if (!r && (
|
786
|
+
var n = K(e, t), i;
|
787
|
+
if (!r && (i = n.get("getters"), i.exists))
|
789
788
|
return function() {
|
790
|
-
var s =
|
791
|
-
return
|
789
|
+
var s = i.member[i.trgPath];
|
790
|
+
return i.objPath ? ce(t, s, i.objPath) : s;
|
792
791
|
};
|
793
|
-
var
|
794
|
-
return
|
792
|
+
var o = n.get("state");
|
793
|
+
return o.exists || n.isDynamic ? function() {
|
795
794
|
var s = n.isDynamic ? Me(n.absPath, this) : n.absPath;
|
796
|
-
return
|
795
|
+
return ce(t, e.state, s);
|
797
796
|
} : function() {
|
798
797
|
};
|
799
798
|
}
|
800
|
-
function
|
799
|
+
function ce(e, t, r) {
|
801
800
|
return we(t, r);
|
802
801
|
}
|
803
802
|
function Me(e, t) {
|
804
|
-
return e.replace(/:(\w+)/g, function(n,
|
805
|
-
return
|
803
|
+
return e.replace(/:(\w+)/g, function(n, i) {
|
804
|
+
return i in t || console.error('Error resolving dynamic store path: The property "' + i + '" does not exist on the scope', t), t[i];
|
806
805
|
});
|
807
806
|
}
|
808
|
-
function
|
807
|
+
function ht(e) {
|
809
808
|
e.set = function(t, r) {
|
810
|
-
var n =
|
809
|
+
var n = dt(e, t);
|
811
810
|
if (typeof n < "u")
|
812
811
|
return n(r);
|
813
812
|
}, e.get = function(t) {
|
814
813
|
for (var r = [], n = arguments.length - 1; n-- > 0; ) r[n] = arguments[n + 1];
|
815
|
-
var
|
816
|
-
if (typeof
|
817
|
-
var
|
818
|
-
return typeof
|
814
|
+
var i = Ce(e, t);
|
815
|
+
if (typeof i < "u") {
|
816
|
+
var o = i();
|
817
|
+
return typeof o == "function" ? o.apply(void 0, r) : o;
|
819
818
|
}
|
820
819
|
}, e.copy = function(t) {
|
821
820
|
for (var r = [], n = arguments.length - 1; n-- > 0; ) r[n] = arguments[n + 1];
|
822
|
-
var
|
823
|
-
return T(
|
821
|
+
var i = e.get.apply(e, [t].concat(r));
|
822
|
+
return T(i) ? ct(i) : i;
|
824
823
|
};
|
825
824
|
}
|
826
825
|
function D(e) {
|
@@ -846,57 +845,57 @@ function gt() {
|
|
846
845
|
|
847
846
|
`);
|
848
847
|
}
|
849
|
-
function
|
850
|
-
U.store = e,
|
848
|
+
function Ot(e) {
|
849
|
+
U.store = e, ht(e);
|
851
850
|
}
|
852
|
-
var
|
851
|
+
var _t = {
|
853
852
|
options: S,
|
854
|
-
plugin:
|
853
|
+
plugin: Ot,
|
855
854
|
debug: gt
|
856
855
|
};
|
857
856
|
function ee(e) {
|
858
857
|
return j(typeof e == "function" ? e() : e);
|
859
858
|
}
|
860
|
-
function
|
859
|
+
function Et(e) {
|
861
860
|
return ee(e).reduce(function(t, r) {
|
862
861
|
var n = M("getters", r);
|
863
|
-
return t[n] = function(
|
864
|
-
return
|
862
|
+
return t[n] = function(i) {
|
863
|
+
return i[r];
|
865
864
|
}, t;
|
866
865
|
}, {});
|
867
866
|
}
|
868
|
-
function
|
867
|
+
function vt(e) {
|
869
868
|
return ee(e).reduce(function(t, r) {
|
870
869
|
var n = M("mutations", r);
|
871
|
-
return t[n] = function(
|
872
|
-
|
870
|
+
return t[n] = function(i, o) {
|
871
|
+
o instanceof y ? o = o.update(i[r]) : y.isSerialized(o) && (o = y.prototype.update.call(o, i[r])), i[r] = o;
|
873
872
|
}, t;
|
874
873
|
}, {});
|
875
874
|
}
|
876
875
|
function mt(e) {
|
877
876
|
return ee(e).reduce(function(t, r) {
|
878
|
-
var n = M("actions", r),
|
879
|
-
return t[n] = function(
|
880
|
-
var a =
|
881
|
-
a(
|
877
|
+
var n = M("actions", r), i = M("mutations", r);
|
878
|
+
return t[n] = function(o, s) {
|
879
|
+
var a = o.commit;
|
880
|
+
a(i, s);
|
882
881
|
}, t;
|
883
882
|
}, {});
|
884
883
|
}
|
885
884
|
var $ = {
|
886
|
-
getters:
|
887
|
-
mutations:
|
885
|
+
getters: Et,
|
886
|
+
mutations: vt,
|
888
887
|
actions: mt
|
889
888
|
};
|
890
889
|
function Rt(e, t, r) {
|
891
890
|
return St(e, t) ? pt(e, t).concat(Tt(e, r)) : "";
|
892
891
|
}
|
893
892
|
function pt(e, t) {
|
894
|
-
var r = e.match(/([^/@\.]+)$/)[1], n = e.substring(0, e.length - r.length),
|
895
|
-
if (!
|
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;
|
894
|
+
if (!o)
|
896
895
|
return console.error("[Vuex Pathify] Unable to expand wildcard path '" + e + `':
|
897
896
|
- It looks like '` + n.replace(/\W+$/, "") + "' does not resolve to an existing state property"), [];
|
898
897
|
var s = new RegExp("^" + r.replace(/\*/g, "\\w+") + "$");
|
899
|
-
return Object.keys(
|
898
|
+
return Object.keys(o).filter(function(a) {
|
900
899
|
return s.test(a);
|
901
900
|
}).map(function(a) {
|
902
901
|
return n + a;
|
@@ -920,13 +919,13 @@ function yt(e, t, r) {
|
|
920
919
|
if (Array.isArray(e))
|
921
920
|
return z(e);
|
922
921
|
if (T(e) && (t = e, e = ""), Array.isArray(t)) {
|
923
|
-
var n = t.map(function(
|
924
|
-
return fe(e,
|
922
|
+
var n = t.map(function(i) {
|
923
|
+
return fe(e, i);
|
925
924
|
});
|
926
925
|
return z(n);
|
927
926
|
}
|
928
|
-
return T(t) ? Object.keys(t).reduce(function(
|
929
|
-
return o
|
927
|
+
return T(t) ? Object.keys(t).reduce(function(i, o) {
|
928
|
+
return i[o] = fe(e, t[o]), i;
|
930
929
|
}, {}) : e;
|
931
930
|
}
|
932
931
|
function fe(e, t) {
|
@@ -946,20 +945,20 @@ function ur(e, t) {
|
|
946
945
|
});
|
947
946
|
}
|
948
947
|
function wt(e, t, r, n) {
|
949
|
-
var
|
950
|
-
return typeof
|
951
|
-
o
|
952
|
-
}),
|
948
|
+
var i = yt(e, t, n);
|
949
|
+
return typeof i == "string" ? r(i) : (Object.keys(i).forEach(function(o) {
|
950
|
+
i[o] = r(i[o]);
|
951
|
+
}), i);
|
953
952
|
}
|
954
953
|
function Ct(e, t) {
|
955
954
|
var r, n;
|
956
955
|
return function() {
|
957
|
-
for (var
|
956
|
+
for (var i = [], o = arguments.length; o--; ) i[o] = arguments[o];
|
958
957
|
if (!this.$store)
|
959
958
|
throw new Error(`[Vuex Pathify] Unexpected condition: this.$store is undefined.
|
960
959
|
|
961
960
|
This is a known edge case with some setups and will cause future lookups to fail`);
|
962
|
-
return (!r || n !== this.$store) && (n = this.$store, r = Ce(n, e, t)), r.call.apply(r, [this].concat(
|
961
|
+
return (!r || n !== this.$store) && (n = this.$store, r = Ce(n, e, t)), r.call.apply(r, [this].concat(i));
|
963
962
|
};
|
964
963
|
}
|
965
964
|
const He = {
|
@@ -990,19 +989,19 @@ const He = {
|
|
990
989
|
hotelId: r,
|
991
990
|
locale: n
|
992
991
|
}) {
|
993
|
-
var
|
992
|
+
var i;
|
994
993
|
try {
|
995
|
-
if ((
|
994
|
+
if ((i = t.hotels[r]) != null && i.hotelImages)
|
996
995
|
return;
|
997
996
|
e("SET_HOTEL_IMAGES", {
|
998
997
|
hotelId: r,
|
999
998
|
hotelImages: null,
|
1000
999
|
isLoading: !0
|
1001
1000
|
});
|
1002
|
-
const
|
1003
|
-
if (!
|
1001
|
+
const o = m();
|
1002
|
+
if (!o)
|
1004
1003
|
return;
|
1005
|
-
const s = await (
|
1004
|
+
const s = await (o == null ? void 0 : o.hotelImages.retrieve({
|
1006
1005
|
id: r,
|
1007
1006
|
lang: n
|
1008
1007
|
}));
|
@@ -1011,8 +1010,8 @@ const He = {
|
|
1011
1010
|
hotelImages: s,
|
1012
1011
|
isLoading: !1
|
1013
1012
|
});
|
1014
|
-
} catch (
|
1015
|
-
console.error("Cannot retrieve hotel images:",
|
1013
|
+
} catch (o) {
|
1014
|
+
console.error("Cannot retrieve hotel images:", o);
|
1016
1015
|
}
|
1017
1016
|
}
|
1018
1017
|
}, Ft = {
|
@@ -1033,15 +1032,15 @@ const He = {
|
|
1033
1032
|
latitude: void 0,
|
1034
1033
|
longitude: void 0,
|
1035
1034
|
roomCount: 0,
|
1036
|
-
sourceMarket:
|
1035
|
+
sourceMarket: Ae.Fr
|
1037
1036
|
}, At = {
|
1038
1037
|
nightCount(e) {
|
1039
|
-
return
|
1040
|
-
|
1038
|
+
return L(e.checkOutDate, "YYYY-MM-DD").diff(
|
1039
|
+
L(e.checkInDate, "YYYY-MM-DD"),
|
1041
1040
|
"day"
|
1042
1041
|
);
|
1043
1042
|
}
|
1044
|
-
}, Dt = $.mutations(be),
|
1043
|
+
}, Dt = $.mutations(be), kt = {
|
1045
1044
|
// eslint-disable-next-line max-statements
|
1046
1045
|
createHotelOfferRequest: async ({ commit: e }, t) => {
|
1047
1046
|
const r = m();
|
@@ -1060,19 +1059,19 @@ const He = {
|
|
1060
1059
|
roomCount: t.roomCount,
|
1061
1060
|
sourceMarket: t.sourceMarket
|
1062
1061
|
}
|
1063
|
-
}, { eventMetadata:
|
1064
|
-
he(
|
1065
|
-
...
|
1066
|
-
name:
|
1062
|
+
}, { eventMetadata: i } = window.RevolugoElements.config;
|
1063
|
+
he(i) || (n.body.eventMetadata = {
|
1064
|
+
...ge(i, ["name", "slug"]),
|
1065
|
+
name: i.slug || i.name
|
1067
1066
|
});
|
1068
|
-
const
|
1067
|
+
const o = await (r == null ? void 0 : r.hotelOfferRequests.create(
|
1069
1068
|
n
|
1070
1069
|
));
|
1071
|
-
(
|
1072
|
-
`Hotel offer request params mismatch: adultCount: ${
|
1073
|
-
), e("SET_ADDRESS",
|
1074
|
-
|
1075
|
-
|
1070
|
+
(o.adultCount !== t.adultCount || o.checkInDate !== t.checkInDate || o.checkOutDate !== t.checkOutDate || o.children !== t.children || o.sourceMarket !== t.sourceMarket) && console.warn(
|
1071
|
+
`Hotel offer request params mismatch: adultCount: ${o.adultCount} : ${t.adultCount}, checkInDate: ${o.checkInDate} : ${t.checkInDate}, checkOutDate: ${o.checkOutDate} : ${t.checkOutDate}, children: ${o.children} : ${t.children}, roomCount: ${o.roomCount} : ${t.roomCount}, sourceMarket: ${o.sourceMarket} : ${t.sourceMarket}`
|
1072
|
+
), e("SET_ADDRESS", o.address), e("SET_ADULT_COUNT", o.adultCount), e("SET_CHECK_OUT_DATE", o.checkOutDate), e("SET_CHECK_IN_DATE", o.checkInDate), e("SET_CHILDREN", o.children), e("SET_ID", o.id), e("SET_LATITUDE", o.latitude), e("SET_LONGITUDE", o.longitude), e("SET_ROOM_COUNT", o.roomCount), e("SET_SOURCE_MARKET", o.sourceMarket), window.RevolugoElements.eventBus.$emit(
|
1073
|
+
v.HotelOfferRequestCreated,
|
1074
|
+
o
|
1076
1075
|
);
|
1077
1076
|
} catch (n) {
|
1078
1077
|
e("SET_HAS_ERROR", !0), console.error("Cannot create hotel offer request:", n);
|
@@ -1099,7 +1098,7 @@ const He = {
|
|
1099
1098
|
`Hotel offer request id mismatch: requested: ${t}, retrieved: ${n.id}`
|
1100
1099
|
);
|
1101
1100
|
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(
|
1102
|
-
|
1101
|
+
v.HotelOfferRequestRetrieved,
|
1103
1102
|
n
|
1104
1103
|
);
|
1105
1104
|
} catch (r) {
|
@@ -1110,19 +1109,19 @@ const He = {
|
|
1110
1109
|
}, 500);
|
1111
1110
|
}
|
1112
1111
|
}
|
1113
|
-
},
|
1114
|
-
actions:
|
1112
|
+
}, Lt = {
|
1113
|
+
actions: kt,
|
1115
1114
|
getters: At,
|
1116
1115
|
mutations: Dt,
|
1117
1116
|
namespaced: !0,
|
1118
1117
|
state: be
|
1119
1118
|
};
|
1120
1119
|
Array.from({ length: 40 }).map(
|
1121
|
-
() =>
|
1120
|
+
() => ke(0, 10)
|
1122
1121
|
);
|
1123
1122
|
const xt = 10;
|
1124
1123
|
var Ut = /* @__PURE__ */ ((e) => (e.Price = "price", e.Rating = "rating", e.ReviewRating = "review_rating", e.SortBy = "sort_by", e))(Ut || {});
|
1125
|
-
const qt = "", Nt = 0, Bt = [0, 0], Gt =
|
1124
|
+
const qt = "", Nt = 0, Bt = [0, 0], Gt = de.TopPicks, jt = "asc", Pe = {
|
1126
1125
|
rating: qt,
|
1127
1126
|
review_rating: Nt,
|
1128
1127
|
price: Bt,
|
@@ -1141,14 +1140,14 @@ const qt = "", Nt = 0, Bt = [0, 0], Gt = ge.TopPicks, jt = "asc", Pe = {
|
|
1141
1140
|
priceMin: 0,
|
1142
1141
|
filters: Pe,
|
1143
1142
|
startingAfter: null
|
1144
|
-
},
|
1143
|
+
}, k = {
|
1145
1144
|
priceHistogramStepCount(e) {
|
1146
1145
|
return e.priceHistogram ? e.priceHistogram.length : 0;
|
1147
1146
|
},
|
1148
1147
|
// eslint-disable-next-line max-params
|
1149
1148
|
getPriceMin(e, t, r, n) {
|
1150
1149
|
return !e.priceMin || !e.hotelOffersCurrency ? 0 : Math.round(
|
1151
|
-
|
1150
|
+
ie({
|
1152
1151
|
amount: e.priceMin,
|
1153
1152
|
currency: e.hotelOffersCurrency
|
1154
1153
|
}) / n["hotelOfferRequest/nightCount"] / r.hotelOfferRequest.roomCount
|
@@ -1157,7 +1156,7 @@ const qt = "", Nt = 0, Bt = [0, 0], Gt = ge.TopPicks, jt = "asc", Pe = {
|
|
1157
1156
|
// eslint-disable-next-line max-params
|
1158
1157
|
getPriceMax(e, t, r, n) {
|
1159
1158
|
return !e.priceMax || !e.hotelOffersCurrency ? 0 : Math.round(
|
1160
|
-
|
1159
|
+
ie({
|
1161
1160
|
amount: e.priceMax,
|
1162
1161
|
currency: e.hotelOffersCurrency
|
1163
1162
|
}) / n["hotelOfferRequest/nightCount"] / r.hotelOfferRequest.roomCount
|
@@ -1184,8 +1183,8 @@ const qt = "", Nt = 0, Bt = [0, 0], Gt = ge.TopPicks, jt = "asc", Pe = {
|
|
1184
1183
|
transformFilterPrices(e, t, r, n) {
|
1185
1184
|
if (!(!e.filters.price || e.filters.price[0] === 0 && e.filters.price[1] === 0))
|
1186
1185
|
return e.filters.price.map(
|
1187
|
-
(
|
1188
|
-
amount:
|
1186
|
+
(i) => new Ue({
|
1187
|
+
amount: i * n["hotelOfferRequest/nightCount"] * r.hotelOfferRequest.roomCount,
|
1189
1188
|
currency: window.RevolugoElements.config.currency
|
1190
1189
|
}).normalize().floor().getAmount()
|
1191
1190
|
);
|
@@ -1211,36 +1210,36 @@ const qt = "", Nt = 0, Bt = [0, 0], Gt = ge.TopPicks, jt = "asc", Pe = {
|
|
1211
1210
|
resetHotelOffers({ commit: e }) {
|
1212
1211
|
e("SET_HOTEL_OFFERS", []);
|
1213
1212
|
},
|
1214
|
-
retrieveHotelOffers:
|
1213
|
+
retrieveHotelOffers: xe(
|
1215
1214
|
// eslint-disable-next-line max-lines-per-function
|
1216
|
-
async ({ commit: e, rootGetters: t, rootState: r, state: n },
|
1217
|
-
var s, a,
|
1218
|
-
if (!
|
1215
|
+
async ({ commit: e, rootGetters: t, rootState: r, state: n }, i) => {
|
1216
|
+
var s, a, c, f;
|
1217
|
+
if (!i.hotelOfferRequestId)
|
1219
1218
|
return;
|
1220
|
-
const
|
1221
|
-
if (
|
1222
|
-
const
|
1223
|
-
...
|
1219
|
+
const o = m();
|
1220
|
+
if (o) {
|
1221
|
+
const u = {
|
1222
|
+
...i,
|
1224
1223
|
priceHistogramStepCount: xt,
|
1225
1224
|
filterByReviewRating: n.filters.review_rating || void 0,
|
1226
|
-
filterByPrice: (s =
|
1225
|
+
filterByPrice: (s = k.transformFilterPrices(n, void 0, r, t)) == null ? void 0 : s.join("-"),
|
1227
1226
|
filterByStar: n.filters.rating || void 0,
|
1228
|
-
onlyRecommendedHotelOffers: ((a = n.filters.sort_by) == null ? void 0 : a.value) ===
|
1229
|
-
sortBy: (
|
1227
|
+
onlyRecommendedHotelOffers: ((a = n.filters.sort_by) == null ? void 0 : a.value) === de.TopPicks,
|
1228
|
+
sortBy: (c = n.filters.sort_by) == null ? void 0 : c.value,
|
1230
1229
|
sortByOrder: (f = n.filters.sort_by) == null ? void 0 : f.direction,
|
1231
1230
|
currency: window.RevolugoElements.config.currency,
|
1232
1231
|
lang: window.RevolugoElements.config.lang
|
1233
1232
|
};
|
1234
|
-
if (n.isPolling && ne(n.pollingPayload,
|
1233
|
+
if (n.isPolling && ne(n.pollingPayload, u))
|
1235
1234
|
return;
|
1236
|
-
P.$emit(
|
1237
|
-
|
1238
|
-
(
|
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(
|
1236
|
+
u,
|
1237
|
+
(d, l) => {
|
1239
1238
|
var p, I;
|
1240
|
-
if (!ne(n.pollingPayload,
|
1239
|
+
if (!ne(n.pollingPayload, u))
|
1241
1240
|
return;
|
1242
|
-
if (
|
1243
|
-
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);
|
1244
1243
|
return;
|
1245
1244
|
}
|
1246
1245
|
if (e(
|
@@ -1248,24 +1247,24 @@ const qt = "", Nt = 0, Bt = [0, 0], Gt = ge.TopPicks, jt = "asc", Pe = {
|
|
1248
1247
|
(((p = l == null ? void 0 : l.meta) == null ? void 0 : p.status) ?? "").toLowerCase() !== "complete"
|
1249
1248
|
), !((I = l == null ? void 0 : l.data) != null && I.hotelOffers))
|
1250
1249
|
return;
|
1251
|
-
|
1252
|
-
|
1250
|
+
i.startingAfter ? e("ADD_HOTEL_OFFERS", l.data.hotelOffers) : e("SET_HOTEL_OFFERS", l.data.hotelOffers), P.$emit(
|
1251
|
+
v.HotelOffersRetrieved,
|
1253
1252
|
l.data.hotelOffers
|
1254
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);
|
1255
|
-
const
|
1256
|
-
const V =
|
1254
|
+
const h = (te) => {
|
1255
|
+
const V = k.getPriceMin(
|
1257
1256
|
n,
|
1258
1257
|
void 0,
|
1259
1258
|
r,
|
1260
1259
|
t
|
1261
|
-
), re =
|
1260
|
+
), re = k.getPriceMax(
|
1262
1261
|
n,
|
1263
1262
|
void 0,
|
1264
1263
|
r,
|
1265
1264
|
t
|
1266
1265
|
);
|
1267
1266
|
return V === re && V === 0 ? !0 : te >= V && te <= re;
|
1268
|
-
}, g =
|
1267
|
+
}, g = h(n.filters.price[0]) ? n.filters.price[0] : 0, R = h(n.filters.price[1]) ? n.filters.price[1] : 0;
|
1269
1268
|
e("SET_FILTERS", {
|
1270
1269
|
...n.filters,
|
1271
1270
|
price: [g, R]
|
@@ -1274,8 +1273,8 @@ const qt = "", Nt = 0, Bt = [0, 0], Gt = ge.TopPicks, jt = "asc", Pe = {
|
|
1274
1273
|
{
|
1275
1274
|
maxCallCount: 10
|
1276
1275
|
}
|
1277
|
-
).catch((
|
1278
|
-
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);
|
1279
1278
|
}));
|
1280
1279
|
}
|
1281
1280
|
},
|
@@ -1284,7 +1283,7 @@ const qt = "", Nt = 0, Bt = [0, 0], Gt = ge.TopPicks, jt = "asc", Pe = {
|
|
1284
1283
|
}, zt = {
|
1285
1284
|
actions: Yt,
|
1286
1285
|
namespaced: !0,
|
1287
|
-
getters:
|
1286
|
+
getters: k,
|
1288
1287
|
mutations: Vt,
|
1289
1288
|
state: Ie
|
1290
1289
|
}, W = {
|
@@ -1296,11 +1295,11 @@ const qt = "", Nt = 0, Bt = [0, 0], Gt = ge.TopPicks, jt = "asc", Pe = {
|
|
1296
1295
|
nightCount(e) {
|
1297
1296
|
return (t) => {
|
1298
1297
|
if (e.hotelRoomOfferRequestByHotelId[t])
|
1299
|
-
return
|
1298
|
+
return L(
|
1300
1299
|
e.hotelRoomOfferRequestByHotelId[t].checkOutDate,
|
1301
1300
|
"YYYY-MM-DD"
|
1302
1301
|
).diff(
|
1303
|
-
|
1302
|
+
L(
|
1304
1303
|
e.hotelRoomOfferRequestByHotelId[t].checkInDate,
|
1305
1304
|
"YYYY-MM-DD"
|
1306
1305
|
),
|
@@ -1350,23 +1349,23 @@ const qt = "", Nt = 0, Bt = [0, 0], Gt = ge.TopPicks, jt = "asc", Pe = {
|
|
1350
1349
|
roomCount: t.roomCount,
|
1351
1350
|
sourceMarket: t.sourceMarket
|
1352
1351
|
}
|
1353
|
-
}, { eventMetadata:
|
1354
|
-
he(
|
1355
|
-
...
|
1356
|
-
name:
|
1352
|
+
}, { eventMetadata: i } = window.RevolugoElements.config;
|
1353
|
+
he(i) || (n.body.eventMetadata = {
|
1354
|
+
...ge(i, ["name", "slug"]),
|
1355
|
+
name: i.slug || i.name
|
1357
1356
|
});
|
1358
|
-
const
|
1357
|
+
const o = await r.hotelRoomOfferRequests.create(
|
1359
1358
|
n
|
1360
1359
|
);
|
1361
|
-
(
|
1362
|
-
`Hotel offer request params mismatch: adultCount: ${
|
1360
|
+
(o.adultCount !== t.adultCount || o.checkInDate !== t.checkInDate || o.checkOutDate !== t.checkOutDate || o.children !== t.children || o.sourceMarket !== t.sourceMarket) && console.warn(
|
1361
|
+
`Hotel offer request params mismatch: adultCount: ${o.adultCount} : ${t.adultCount}, checkInDate: ${o.checkInDate} : ${t.checkInDate}, checkOutDate: ${o.checkOutDate} : ${t.checkOutDate}, children: ${o.children} : ${t.children}, roomCount: ${o.roomCount} : ${t.roomCount}, sourceMarket: ${o.sourceMarket} : ${t.sourceMarket}`
|
1363
1362
|
), e("SET_HOTEL_ROOM_OFFER_REQUEST", {
|
1364
|
-
...
|
1363
|
+
...o,
|
1365
1364
|
hasError: !1,
|
1366
1365
|
isFetching: !1
|
1367
1366
|
}), window.RevolugoElements.eventBus.$emit(
|
1368
|
-
|
1369
|
-
|
1367
|
+
v.HotelRoomOfferRequestCreated,
|
1368
|
+
o
|
1370
1369
|
);
|
1371
1370
|
} catch (n) {
|
1372
1371
|
e("SET_HOTEL_ROOM_OFFER_REQUEST", {
|
@@ -1398,23 +1397,23 @@ const qt = "", Nt = 0, Bt = [0, 0], Gt = ge.TopPicks, jt = "asc", Pe = {
|
|
1398
1397
|
id: void 0,
|
1399
1398
|
isFetching: !0
|
1400
1399
|
});
|
1401
|
-
const
|
1400
|
+
const i = await (n == null ? void 0 : n.hotelRoomOfferRequests.retrieve({
|
1402
1401
|
id: r
|
1403
1402
|
}));
|
1404
|
-
if (
|
1403
|
+
if (i.hotelId !== t)
|
1405
1404
|
throw new Error(
|
1406
1405
|
"Hotel room offer request does not match provided hotel id"
|
1407
1406
|
);
|
1408
|
-
if (
|
1407
|
+
if (i.id !== r)
|
1409
1408
|
throw new Error(
|
1410
|
-
`Hotel room offer request id mismatch: requested: ${r}, retrieved: ${
|
1409
|
+
`Hotel room offer request id mismatch: requested: ${r}, retrieved: ${i.id}`
|
1411
1410
|
);
|
1412
1411
|
e("SET_HOTEL_ROOM_OFFER_REQUEST", {
|
1413
|
-
...
|
1412
|
+
...i,
|
1414
1413
|
isFetching: !1
|
1415
1414
|
}), window.RevolugoElements.eventBus.$emit(
|
1416
|
-
|
1417
|
-
|
1415
|
+
v.HotelRoomOfferRequestRetrieved,
|
1416
|
+
i
|
1418
1417
|
);
|
1419
1418
|
} catch (n) {
|
1420
1419
|
e("DELETE_HOTEL_ROOM_OFFER_REQUEST", t), console.error("Cannot retrieve hotel offer request:", n);
|
@@ -1449,10 +1448,10 @@ const qt = "", Nt = 0, Bt = [0, 0], Gt = ge.TopPicks, jt = "asc", Pe = {
|
|
1449
1448
|
const n = e.hotelRoomOffersByHotel[t];
|
1450
1449
|
if (!n)
|
1451
1450
|
return;
|
1452
|
-
const
|
1453
|
-
|
1451
|
+
const i = n.inProgressOffers;
|
1452
|
+
i && F(e.hotelRoomOffersByHotel, t, {
|
1454
1453
|
...n,
|
1455
|
-
inProgressOffers: [...
|
1454
|
+
inProgressOffers: [...i, r]
|
1456
1455
|
});
|
1457
1456
|
},
|
1458
1457
|
UPDATE_IN_PROGRESS_HOTEL_ROOM_OFFER(e, {
|
@@ -1462,21 +1461,21 @@ const qt = "", Nt = 0, Bt = [0, 0], Gt = ge.TopPicks, jt = "asc", Pe = {
|
|
1462
1461
|
const n = e.hotelRoomOffersByHotel[t];
|
1463
1462
|
if (!n)
|
1464
1463
|
return;
|
1465
|
-
const
|
1466
|
-
if (!
|
1464
|
+
const i = n.inProgressOffers;
|
1465
|
+
if (!i)
|
1467
1466
|
return;
|
1468
|
-
const
|
1467
|
+
const o = i.findIndex(
|
1469
1468
|
(s) => s.id === r.id
|
1470
1469
|
);
|
1471
|
-
|
1470
|
+
o !== void 0 && F(e.hotelRoomOffersByHotel, t, {
|
1472
1471
|
...n,
|
1473
1472
|
inProgressOffers: [
|
1474
|
-
...
|
1473
|
+
...i.slice(0, o),
|
1475
1474
|
{
|
1476
|
-
...o
|
1475
|
+
...i[o],
|
1477
1476
|
...r
|
1478
1477
|
},
|
1479
|
-
...
|
1478
|
+
...i.slice(o + 1)
|
1480
1479
|
]
|
1481
1480
|
});
|
1482
1481
|
},
|
@@ -1485,34 +1484,34 @@ const qt = "", Nt = 0, Bt = [0, 0], Gt = ge.TopPicks, jt = "asc", Pe = {
|
|
1485
1484
|
hotelRoomOffer: r,
|
1486
1485
|
id: n
|
1487
1486
|
}) {
|
1488
|
-
const
|
1489
|
-
if (!
|
1487
|
+
const i = e.hotelRoomOffersByHotel[t], o = i.offers;
|
1488
|
+
if (!o)
|
1490
1489
|
return;
|
1491
|
-
const s =
|
1492
|
-
(
|
1490
|
+
const s = o.findIndex(
|
1491
|
+
(c) => c.id === n
|
1493
1492
|
);
|
1494
1493
|
if (s === void 0)
|
1495
1494
|
return;
|
1496
|
-
const a =
|
1497
|
-
r.taxIncludedPrice > a.taxIncludedPrice && P.$emit(
|
1495
|
+
const a = o[s];
|
1496
|
+
r.taxIncludedPrice > a.taxIncludedPrice && P.$emit(v.HotelRoomOffersPriceIncreased, [
|
1498
1497
|
r,
|
1499
1498
|
a
|
1500
|
-
]),
|
1499
|
+
]), qe(
|
1501
1500
|
r.cancellationPolicies,
|
1502
1501
|
a.cancellationPolicies
|
1503
1502
|
) || P.$emit(
|
1504
|
-
|
1503
|
+
v.CancellationPoliciesUpdated,
|
1505
1504
|
r.cancellationPolicies
|
1506
1505
|
), F(e.hotelRoomOffersByHotel, t, {
|
1507
|
-
...
|
1506
|
+
...i,
|
1508
1507
|
offers: [
|
1509
|
-
...
|
1508
|
+
...o.slice(0, s),
|
1510
1509
|
{
|
1511
|
-
...
|
1510
|
+
...o[s],
|
1512
1511
|
...r,
|
1513
|
-
packageType:
|
1512
|
+
packageType: o[s].packageType
|
1514
1513
|
},
|
1515
|
-
...
|
1514
|
+
...o.slice(s + 1)
|
1516
1515
|
]
|
1517
1516
|
});
|
1518
1517
|
}
|
@@ -1523,28 +1522,28 @@ const qt = "", Nt = 0, Bt = [0, 0], Gt = ge.TopPicks, jt = "asc", Pe = {
|
|
1523
1522
|
hotelRoomOfferId: n
|
1524
1523
|
}) {
|
1525
1524
|
var s;
|
1526
|
-
const
|
1527
|
-
if (!
|
1525
|
+
const i = m();
|
1526
|
+
if (!i)
|
1528
1527
|
return;
|
1529
|
-
const
|
1528
|
+
const o = (s = Fe.hotelRoomOffersByHotel[r].offers) == null ? void 0 : s.find(
|
1530
1529
|
(a) => a.id === n
|
1531
1530
|
);
|
1532
|
-
|
1531
|
+
o && e("PUSH_IN_PROGRESS_HOTEL_ROOM_OFFER", {
|
1533
1532
|
hotelId: r,
|
1534
1533
|
hotelRoomOffer: {
|
1535
|
-
...
|
1534
|
+
...o,
|
1536
1535
|
isLoading: !0
|
1537
1536
|
}
|
1538
1537
|
});
|
1539
1538
|
try {
|
1540
|
-
const a = await
|
1539
|
+
const a = await i.bookingPolicies.create({
|
1541
1540
|
body: {
|
1542
1541
|
addBreakfast: t,
|
1543
1542
|
hotelRoomOfferId: n,
|
1544
1543
|
lang: window.RevolugoElements.config.lang
|
1545
1544
|
}
|
1546
1545
|
});
|
1547
|
-
return P.$emit(
|
1546
|
+
return P.$emit(v.BookingPolicyCreated, a), e("UPDATE_IN_PROGRESS_HOTEL_ROOM_OFFER", {
|
1548
1547
|
hotelId: r,
|
1549
1548
|
hotelRoomOffer: {
|
1550
1549
|
id: n,
|
@@ -1579,8 +1578,8 @@ const qt = "", Nt = 0, Bt = [0, 0], Gt = ge.TopPicks, jt = "asc", Pe = {
|
|
1579
1578
|
hotelId: r,
|
1580
1579
|
id: n
|
1581
1580
|
}) {
|
1582
|
-
const
|
1583
|
-
if (
|
1581
|
+
const i = m();
|
1582
|
+
if (i) {
|
1584
1583
|
e("UPDATE_HOTEL_ROOM_OFFER", {
|
1585
1584
|
hotelId: r,
|
1586
1585
|
hotelRoomOffer: {
|
@@ -1588,7 +1587,7 @@ const qt = "", Nt = 0, Bt = [0, 0], Gt = ge.TopPicks, jt = "asc", Pe = {
|
|
1588
1587
|
},
|
1589
1588
|
id: n
|
1590
1589
|
});
|
1591
|
-
const
|
1590
|
+
const o = await i.hotelRoomOffers.create({
|
1592
1591
|
body: {
|
1593
1592
|
addBreakfast: t,
|
1594
1593
|
currency: window.RevolugoElements.config.currency,
|
@@ -1604,7 +1603,7 @@ const qt = "", Nt = 0, Bt = [0, 0], Gt = ge.TopPicks, jt = "asc", Pe = {
|
|
1604
1603
|
e("UPDATE_HOTEL_ROOM_OFFER", {
|
1605
1604
|
hotelId: r,
|
1606
1605
|
hotelRoomOffer: {
|
1607
|
-
...
|
1606
|
+
...o.hotelRoomOffer,
|
1608
1607
|
isLoading: !1
|
1609
1608
|
},
|
1610
1609
|
id: n
|
@@ -1630,9 +1629,9 @@ const qt = "", Nt = 0, Bt = [0, 0], Gt = ge.TopPicks, jt = "asc", Pe = {
|
|
1630
1629
|
hotelRoomOfferRequestId: r.hotelRoomOfferRequestId,
|
1631
1630
|
lang: window.RevolugoElements.config.lang
|
1632
1631
|
},
|
1633
|
-
(
|
1634
|
-
var s, a,
|
1635
|
-
if (
|
1632
|
+
(i, o) => {
|
1633
|
+
var s, a, c, f, u;
|
1634
|
+
if (i) {
|
1636
1635
|
e("SET_HOTEL_ROOM_OFFERS", {
|
1637
1636
|
hasError: !0,
|
1638
1637
|
hotelId: r.hotelId,
|
@@ -1640,26 +1639,26 @@ const qt = "", Nt = 0, Bt = [0, 0], Gt = ge.TopPicks, jt = "asc", Pe = {
|
|
1640
1639
|
isPolling: !1,
|
1641
1640
|
offers: [],
|
1642
1641
|
inProgressOffers: []
|
1643
|
-
}), console.error("Cannot retrieve hotel room offers:",
|
1642
|
+
}), console.error("Cannot retrieve hotel room offers:", i);
|
1644
1643
|
return;
|
1645
1644
|
}
|
1646
|
-
if ((s =
|
1645
|
+
if ((s = o == null ? void 0 : o.data) != null && s.hotelRoomOffers) {
|
1647
1646
|
window.RevolugoElements.eventBus.$emit(
|
1648
|
-
|
1649
|
-
|
1647
|
+
v.HotelRoomOffersRetrieved,
|
1648
|
+
o
|
1650
1649
|
);
|
1651
|
-
const
|
1652
|
-
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)
|
1653
1652
|
l.findIndex(
|
1654
1653
|
(p) => p.id === g.id
|
1655
1654
|
) === -1 && l.push(g);
|
1656
1655
|
e("SET_HOTEL_ROOM_OFFERS", {
|
1657
1656
|
hasError: !1,
|
1658
1657
|
hotelId: r.hotelId,
|
1659
|
-
hotelTimezone:
|
1660
|
-
isPolling: (((
|
1658
|
+
hotelTimezone: d,
|
1659
|
+
isPolling: (((u = o == null ? void 0 : o.meta) == null ? void 0 : u.status) ?? "").toLowerCase() !== "complete",
|
1661
1660
|
offers: l.sort((g, R) => g.price - R.price),
|
1662
|
-
inProgressOffers:
|
1661
|
+
inProgressOffers: h
|
1663
1662
|
});
|
1664
1663
|
}
|
1665
1664
|
}
|
@@ -1673,21 +1672,21 @@ const qt = "", Nt = 0, Bt = [0, 0], Gt = ge.TopPicks, jt = "asc", Pe = {
|
|
1673
1672
|
state: Fe
|
1674
1673
|
};
|
1675
1674
|
b.use(nt);
|
1676
|
-
const le = {}, rr = {}, nr = new
|
1675
|
+
const le = {}, rr = {}, nr = new _({
|
1677
1676
|
actions: rr,
|
1678
1677
|
modules: {
|
1679
1678
|
breakpointService: $t,
|
1680
|
-
hotelOfferRequest:
|
1679
|
+
hotelOfferRequest: Lt,
|
1681
1680
|
hotelOffers: zt,
|
1682
1681
|
hotelRoomOfferRequest: Jt,
|
1683
1682
|
hotelRoomOffers: tr,
|
1684
1683
|
hotelImages: Ft
|
1685
1684
|
},
|
1686
1685
|
mutations: $.mutations(le),
|
1687
|
-
plugins: [
|
1686
|
+
plugins: [_t.plugin],
|
1688
1687
|
state: le,
|
1689
|
-
strict:
|
1690
|
-
}),
|
1688
|
+
strict: De
|
1689
|
+
}), cr = {
|
1691
1690
|
install(e) {
|
1692
1691
|
e.mixin({
|
1693
1692
|
store: nr
|
@@ -1701,8 +1700,8 @@ export {
|
|
1701
1700
|
Nt as R,
|
1702
1701
|
nr as a,
|
1703
1702
|
qt as b,
|
1704
|
-
|
1703
|
+
ar as d,
|
1705
1704
|
ur as g,
|
1706
|
-
|
1705
|
+
cr as s
|
1707
1706
|
};
|
1708
|
-
//# sourceMappingURL=revolugo.store.
|
1707
|
+
//# sourceMappingURL=revolugo.store.DWQvkpHn.min.js.map
|