@revolugo/elements 6.8.1-beta.9 → 6.8.1-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/revolugo.hoteloffersview.Bo2dQWYt.css +1 -0
- package/dist/index.es.min.js +605 -608
- package/dist/index.es.min.js.map +1 -1
- package/dist/index.min.js +4 -4
- package/dist/index.min.js.map +1 -1
- package/dist/revolugo._basefor.CodrYJxd.min.js +15 -0
- package/dist/{revolugo.banktransferdetails.C7aHCEDd.min.js → revolugo.banktransferdetails.BAUbHW-v.min.js} +9 -9
- package/dist/{revolugo.bdaterangepicker.B_hCXfZU.min.js → revolugo.bdaterangepicker.E8eS2QMH.min.js} +6 -6
- package/dist/{revolugo.bformattedamount.vue_vue_type_script_setup_true_lang.CwY70yJD.min.js → revolugo.bformattedamount.vue_vue_type_script_setup_true_lang.DF3WP5Mi.min.js} +4 -4
- package/dist/{revolugo.bhoteloffersfilterbar.C4ahZPui.min.js → revolugo.bhoteloffersfilterbar.BKUVyAfq.min.js} +31 -31
- package/dist/{revolugo.bhotelroomsdetails.6J0pphX3.min.js → revolugo.bhotelroomsdetails.BX8egxTH.min.js} +10 -10
- package/dist/{revolugo.bhotelsearchbar.CS_BGsmj.min.js → revolugo.bhotelsearchbar.DFrjPFGj.min.js} +16 -16
- package/dist/{revolugo.bimagecarousel.c_EP5jc9.min.js → revolugo.bimagecarousel.SwqkFB_3.min.js} +9 -9
- package/dist/{revolugo.bookingdetailssidebar.C0mB-ZYP.min.js → revolugo.bookingdetailssidebar.CziZJHhH.min.js} +11 -11
- package/dist/{revolugo.bookingdetailssidebar.CbhMVbsP.min.js → revolugo.bookingdetailssidebar.DVtwkl8a.min.js} +4 -4
- package/dist/{revolugo.bookingmanager.4bqo6XuW.min.js → revolugo.bookingmanager.Dq-HSdWX.min.js} +20 -20
- package/dist/{revolugo.bpricesummaryskeleton.BzjKbtBy.min.js → revolugo.bpricesummaryskeleton.CBWHU5FT.min.js} +4 -4
- package/dist/{revolugo.bstarrating.vue_vue_type_script_setup_true_lang.CVEtV8l-.min.js → revolugo.bstarrating.vue_vue_type_script_setup_true_lang.Bl8RUpcy.min.js} +93 -82
- package/dist/{revolugo.btag.CWd5qNLD.min.js → revolugo.btag.BqWVYmnF.min.js} +10 -10
- package/dist/{revolugo.cancellationpoliciesbadge.By92Gky-.min.js → revolugo.cancellationpoliciesbadge.BwScRGzN.min.js} +4 -4
- package/dist/{revolugo.cancellationpoliciesbadge.DZmPjI_B.min.js → revolugo.cancellationpoliciesbadge.CZhbi5-J.min.js} +7 -7
- package/dist/{revolugo.cancellationpolicieslist.DU7e3ASm.min.js → revolugo.cancellationpolicieslist.C-IQuJT0.min.js} +4 -4
- package/dist/{revolugo.cancellationpolicieslist.Dpr2zHJj.min.js → revolugo.cancellationpolicieslist.DtrFU7G-.min.js} +4 -4
- package/dist/{revolugo.case-transformers.DB9gOPWU.min.js → revolugo.case-transformers.Dkh-YFTz.min.js} +2 -2
- package/dist/{revolugo.creditcardform.DgXwyDCk.min.js → revolugo.creditcardform.BpWLyP0P.min.js} +4 -4
- package/dist/{revolugo.creditcardform.Bji99ixh.min.js → revolugo.creditcardform.CT_eT7Vn.min.js} +11 -11
- package/dist/{revolugo.creditcardpayment.C3wnDD9C.min.js → revolugo.creditcardpayment.-S8qvmZq.min.js} +4 -4
- package/dist/{revolugo.creditcardpayment.SAgUMd3L.min.js → revolugo.creditcardpayment.DfK_WNS6.min.js} +58 -58
- package/dist/{revolugo.currencypicker.Cv90mVVx.min.js → revolugo.currencypicker.C0zkiyGz.min.js} +6 -6
- package/dist/{revolugo.currencypickerbtn.DG8T0Krp.min.js → revolugo.currencypickerbtn.C5e3nP5r.min.js} +4 -4
- package/dist/{revolugo.currencypickerbtn.7q_-8Mi5.min.js → revolugo.currencypickerbtn.KJkofbUb.min.js} +9 -9
- package/dist/{revolugo.dialog-attach.B1lwO6HD.min.js → revolugo.dialog-attach.CQ4vt9Bs.min.js} +2 -2
- package/dist/{revolugo.dialog-transition.2sOjLmbz.min.js → revolugo.dialog-transition.H6W-cY6Z.min.js} +3 -3
- package/dist/{revolugo.fastbookingflow.D28m5Nds.min.js → revolugo.fastbookingflow.BIcvAl-D.min.js} +4 -4
- package/dist/{revolugo.fullbookingflow.CtQ16iPu.min.js → revolugo.fullbookingflow.P7mArUhq.min.js} +80 -79
- package/dist/{revolugo.hoteldescriptionview.MryHayPA.min.js → revolugo.hoteldescriptionview.5H3Nr6a4.min.js} +4 -4
- package/dist/{revolugo.hoteldescriptionview.Cm6m1YXF.min.js → revolugo.hoteldescriptionview.NSefjueC.min.js} +754 -677
- package/dist/{revolugo.hotelofferitemlayout.C9aKKr1s.min.js → revolugo.hotelofferitemlayout.BGm1b3Zf.min.js} +6 -6
- package/dist/{revolugo.hotelofferlist.C966AlHP.min.js → revolugo.hotelofferlist.B2zQ--aY.min.js} +4 -4
- package/dist/{revolugo.hotelofferlist.BrBL403M.min.js → revolugo.hotelofferlist.BqxXWwM7.min.js} +204 -204
- package/dist/{revolugo.hotelofferrequestcreator.CodaQojf.min.js → revolugo.hotelofferrequestcreator.sH9lk3EL.min.js} +4 -4
- package/dist/{revolugo.hoteloffersearchmenu.BWn18BAw.min.js → revolugo.hoteloffersearchmenu.DNOt9B6n.min.js} +6 -6
- package/dist/{revolugo.hoteloffersmap.Dfdu5-bA.min.js → revolugo.hoteloffersmap.B6_r7_Rt.min.js} +386 -383
- package/dist/{revolugo.hoteloffersmap.Dd1UsB1V.min.js → revolugo.hoteloffersmap.CoGOiKP2.min.js} +4 -4
- package/dist/{revolugo.hoteloffersview.CHKIuwRI.min.js → revolugo.hoteloffersview.CNDIZucE.min.js} +130 -128
- package/dist/{revolugo.hoteloffersview.AlYGBRG3.min.js → revolugo.hoteloffersview.c3bSpJnI.min.js} +4 -4
- package/dist/{revolugo.hotelroomofferlist.BnylahoJ.min.js → revolugo.hotelroomofferlist.CI-SzCBC.min.js} +4 -4
- package/dist/{revolugo.hotelroomofferlist.BdPEYzfr.min.js → revolugo.hotelroomofferlist.CNKaSy7-.min.js} +253 -253
- package/dist/{revolugo.hotelroomofferrequestcreator.props.JlZQyg-y.min.js → revolugo.hotelroomofferrequestcreator.props.Br_IjGwA.min.js} +2 -2
- package/dist/{revolugo.hotelroomoffersbookingflow.Ddjm1_hp.min.js → revolugo.hotelroomoffersbookingflow.B2gs_H2k.min.js} +69 -69
- package/dist/{revolugo.hotelroomoffersearchmenu.BwgFDo0-.min.js → revolugo.hotelroomoffersearchmenu.E1ybUWNl.min.js} +5 -5
- package/dist/{revolugo.hotelroomoffersearchmenu.B-NAx0Xc.min.js → revolugo.hotelroomoffersearchmenu.yqwV0jYW.min.js} +7 -7
- package/dist/{revolugo.hotelroomoffersview.uD8CgNFZ.min.js → revolugo.hotelroomoffersview.BpWB5Pd7.min.js} +46 -46
- package/dist/{revolugo.hotelroomoffersview.3u0DgdW1.min.js → revolugo.hotelroomoffersview.CrWoQ-75.min.js} +4 -4
- package/dist/{revolugo.index.BceMpA6Y.min.js → revolugo.index.CzlNaSnE.min.js} +35 -35
- package/dist/{revolugo.index.Dl-7vqnI.min.js → revolugo.index.cAIjcrcW.min.js} +2 -2
- package/dist/{revolugo.index.wc.CoPgOerm.min.js → revolugo.index.wc.DDhVCEIR.min.js} +1291 -1301
- package/dist/{revolugo.langpicker.DZZof8Gw.min.js → revolugo.langpicker.Dq39BvMY.min.js} +7 -7
- package/dist/{revolugo.langpickerbtn.C-cQvyCC.min.js → revolugo.langpickerbtn.CpnwEzJW.min.js} +9 -9
- package/dist/{revolugo.langpickerbtn.BjKUDLIw.min.js → revolugo.langpickerbtn.Ps800J-7.min.js} +4 -4
- package/dist/revolugo.min.js +1 -1
- package/dist/{revolugo.position.D_oG_-eX.min.js → revolugo.position.CQiypbvk.min.js} +4 -4
- package/dist/{revolugo.prebookform.DXT1Nxpz.min.js → revolugo.prebookform.C7XqSsaV.min.js} +59 -59
- package/dist/{revolugo.prebookform.CH621DJE.min.js → revolugo.prebookform.DJp8i2Br.min.js} +4 -4
- package/dist/{revolugo.roominglisteditor.CvhI1PzP.min.js → revolugo.roominglisteditor.Cuc_ODZH.min.js} +4 -4
- package/dist/{revolugo.roominglisteditor.DZ0DWdgx.min.js → revolugo.roominglisteditor.DDmejnko.min.js} +9 -9
- package/dist/{revolugo.rounded.Bf7fxZzm.min.js → revolugo.rounded.De3KCP0X.min.js} +2 -2
- package/dist/{revolugo.ssrboot.CbjwPjCS.min.js → revolugo.ssrboot.0C25dEN6.min.js} +2 -2
- package/dist/{revolugo.storybooktoolbar.CHMOIQN8.min.js → revolugo.storybooktoolbar.CPezsLGj.min.js} +78 -78
- package/dist/{revolugo.termsandconditions.DuwLD-9Z.min.js → revolugo.termsandconditions.DFY5N8Wh.min.js} +4 -4
- package/dist/{revolugo.termsandconditions.D_5DcI5g.min.js → revolugo.termsandconditions.pTNkGfzG.min.js} +4 -4
- package/dist/{revolugo.use-breakpoint-service.DYeHEaMo.min.js → revolugo.use-breakpoint-service.CJYSwmp1.min.js} +2 -2
- package/dist/{revolugo.vautocomplete.DCd7KsQm.min.js → revolugo.vautocomplete.BnoiakVz.min.js} +55 -55
- package/dist/{revolugo.vbadge.DQWiqH_o.min.js → revolugo.vbadge.Cay6RDQL.min.js} +10 -10
- package/dist/{revolugo.vbtn.FpWOBXKG.min.js → revolugo.vbtn.CaLiqucX.min.js} +6 -6
- package/dist/{revolugo.vcard.DlL_qavM.min.js → revolugo.vcard.Oh2sMb1R.min.js} +6 -6
- package/dist/{revolugo.vcheckboxbtn.Ck62559a.min.js → revolugo.vcheckboxbtn.CSYgAYX9.min.js} +14 -14
- package/dist/{revolugo.vdialog.iNJrJ9U2.min.js → revolugo.vdialog.Cp61rijD.min.js} +8 -8
- package/dist/{revolugo.vdivider.DKGvLUhL.min.js → revolugo.vdivider.BEG5JZwH.min.js} +3 -3
- package/dist/{revolugo.vexpansionpanels.fDKAa0VV.min.js → revolugo.vexpansionpanels.BcpoHV2b.min.js} +5 -5
- package/dist/{revolugo.vform.B0bSdrou.min.js → revolugo.vform.C7j3bd5k.min.js} +4 -4
- package/dist/{revolugo.vinput.Bd5D9mr4.min.js → revolugo.vinput.NcJ-RLQ9.min.js} +4 -4
- package/dist/{revolugo.vlabel.CpLP9rK0.min.js → revolugo.vlabel.DVK-hoRp.min.js} +3 -3
- package/dist/{revolugo.vlist.vWkZfXj3.min.js → revolugo.vlist.BE6EAjkf.min.js} +47 -47
- package/dist/{revolugo.vmenu.Ssv7zBtG.min.js → revolugo.vmenu.CjkJIdWj.min.js} +22 -22
- package/dist/{revolugo.vselect.BqXqV8a5.min.js → revolugo.vselect.D8u2hRvh.min.js} +23 -23
- package/dist/{revolugo.vsheet.BDUVymCC.min.js → revolugo.vsheet.BjfEjOdc.min.js} +5 -5
- package/dist/{revolugo.vskeletonloader.BFNqVR-g.min.js → revolugo.vskeletonloader.DU5f5pPc.min.js} +4 -4
- package/dist/{revolugo.vsnackbar.Dr_HW2OF.min.js → revolugo.vsnackbar.coosr6Kc.min.js} +13 -13
- package/dist/revolugo.vspacer.FJNqQNRg.min.js +7 -0
- package/dist/{revolugo.vtextarea.BjBkaCAB.min.js → revolugo.vtextarea.DbOaHRNc.min.js} +8 -8
- package/dist/{revolugo.vtextfield.YEwuD_Ho.min.js → revolugo.vtextfield.CWrEQaIp.min.js} +8 -8
- package/dist/{revolugo.vtoolbar.gRS5tX0u.min.js → revolugo.vtoolbar.01ZEiEY4.min.js} +5 -5
- package/dist/{revolugo.vtooltip.C_BskgIv.min.js → revolugo.vtooltip.DVIfVoJI.min.js} +16 -16
- package/dist/{revolugo.vwindowitem.D5HIySHc.min.js → revolugo.vwindowitem.CcOMHHwi.min.js} +6 -6
- package/dist/{revolugo.watch-list.B6kqffZX.min.js → revolugo.watch-list.tdARLleX.min.js} +2 -2
- package/dist/{revolugo.webcomponentwrapper.Ddk9jae5.min.js → revolugo.webcomponentwrapper.DsRjP0_N.min.js} +70 -70
- package/package.json +1 -1
- package/dist/css/revolugo.hoteloffersview.DwH7hBek.css +0 -1
- package/dist/revolugo.defaultsdeep.DmppIoct.min.js +0 -104
- package/dist/revolugo.vspacer.DW11yQjT.min.js +0 -7
package/dist/{revolugo.hotelofferlist.BrBL403M.min.js → revolugo.hotelofferlist.BqxXWwM7.min.js}
RENAMED
@@ -1,30 +1,30 @@
|
|
1
|
-
var
|
2
|
-
var
|
3
|
-
var N = (t, e, n) =>
|
4
|
-
import { Y as Je, d as hn, u as gn, k as xt, Z as Me, _ as Ie, D as $, a as b, $ as vt, a0 as
|
5
|
-
import { h as
|
6
|
-
import { H as
|
7
|
-
import { H as _s } from "./revolugo.hotelofferitemlayout.
|
8
|
-
import { B as
|
9
|
-
import { u as Ye, b as Ps, M as Ns, _ as mn, V as it, a as Pe, B as
|
10
|
-
import { V as Ze } from "./revolugo.vtextfield.
|
11
|
-
import { V as Dn } from "./revolugo.vmenu.
|
12
|
-
import { a as ae } from "./revolugo.vbtn.
|
13
|
-
import { V as
|
14
|
-
import { a as Ut, b as
|
15
|
-
import { c as
|
16
|
-
import { V as Cn, m as
|
17
|
-
import { V as
|
18
|
-
import { V as en } from "./revolugo.vdivider.
|
19
|
-
import { H as
|
20
|
-
import { B as
|
21
|
-
import { p as
|
22
|
-
import { w as
|
23
|
-
import { T as
|
24
|
-
import { u as
|
25
|
-
import { p as
|
26
|
-
import { V as
|
27
|
-
function
|
1
|
+
var Ui = Object.defineProperty;
|
2
|
+
var Bi = (t, e, n) => e in t ? Ui(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n;
|
3
|
+
var N = (t, e, n) => Bi(t, typeof e != "symbol" ? e + "" : e, n);
|
4
|
+
import { Y as Je, d as hn, u as gn, k as xt, Z as Me, _ as Ie, D as $, a as b, $ as vt, a0 as Fi, a1 as dt, a2 as Le, a3 as yt, a4 as xi, C as Jt, a5 as bt, M as Ts, f as je, a6 as at, a7 as Is, a8 as Os, y as re, a9 as As, aa as Hi, V as Gi, R as ji, ab as qi, ac as zi, F as xe, i as me, w as _, e as Zt, t as He, r as oe, o as M, b as Ds, c as Q, g as Z, v as Cs, x as Et, K as Ki, Q as Yi, ad as Wi, S as Qi, ae as Xi, H as Ji, I as Zi, A as er } from "./revolugo.index.wc.DDhVCEIR.min.js";
|
5
|
+
import { h as tr, H as nr } from "./revolugo.hotelofferrequestcreator.sH9lk3EL.min.js";
|
6
|
+
import { H as sr, D as ir, B as rr, p as or, b as ar, c as lr } from "./revolugo.bhoteloffersfilterbar.BKUVyAfq.min.js";
|
7
|
+
import { H as _s } from "./revolugo.hotelofferitemlayout.BGm1b3Zf.min.js";
|
8
|
+
import { B as ur, v as Ue, V as cr } from "./revolugo.vtextarea.DbOaHRNc.min.js";
|
9
|
+
import { u as Ye, b as Ps, M as Ns, _ as mn, V as it, a as Pe, B as dr } from "./revolugo.webcomponentwrapper.DsRjP0_N.min.js";
|
10
|
+
import { V as Ze } from "./revolugo.vtextfield.CWrEQaIp.min.js";
|
11
|
+
import { V as Dn } from "./revolugo.vmenu.CjkJIdWj.min.js";
|
12
|
+
import { a as ae } from "./revolugo.vbtn.CaLiqucX.min.js";
|
13
|
+
import { V as fr } from "./revolugo.vspacer.FJNqQNRg.min.js";
|
14
|
+
import { a as Ut, b as hr } from "./revolugo.index.CzlNaSnE.min.js";
|
15
|
+
import { c as gr, V as mr } from "./revolugo.position.CQiypbvk.min.js";
|
16
|
+
import { V as Cn, m as pr } from "./revolugo.vsheet.BjfEjOdc.min.js";
|
17
|
+
import { V as vr } from "./revolugo.vform.C7j3bd5k.min.js";
|
18
|
+
import { V as en } from "./revolugo.vdivider.BEG5JZwH.min.js";
|
19
|
+
import { H as yr } from "./revolugo.hotelroomofferlist.CNKaSy7-.min.js";
|
20
|
+
import { B as br } from "./revolugo.bhotelsearchbar.DFrjPFGj.min.js";
|
21
|
+
import { p as Er } from "./revolugo.bstarrating.vue_vue_type_script_setup_true_lang.Bl8RUpcy.min.js";
|
22
|
+
import { w as Sr } from "./revolugo.watch-list.tdARLleX.min.js";
|
23
|
+
import { T as kr } from "./revolugo.termsandconditions.pTNkGfzG.min.js";
|
24
|
+
import { u as Rr } from "./revolugo.hotelroomofferrequestcreator.props.Br_IjGwA.min.js";
|
25
|
+
import { p as Tr, g as be } from "./revolugo.use-breakpoint-service.CJYSwmp1.min.js";
|
26
|
+
import { V as Ir } from "./revolugo.bdaterangepicker.E8eS2QMH.min.js";
|
27
|
+
function Vi(t) {
|
28
28
|
try {
|
29
29
|
if (typeof document < "u") {
|
30
30
|
window.REVOLUGO_ELEMENTS_STYLES = window.REVOLUGO_ELEMENTS_STYLES || {
|
@@ -44,15 +44,15 @@ function Fi(t) {
|
|
44
44
|
console.error("[revolugo-elements] ", e);
|
45
45
|
}
|
46
46
|
}
|
47
|
-
const
|
47
|
+
const Or = {
|
48
48
|
FiltersBar: !0,
|
49
49
|
HotelOfferSearchMenu: !1,
|
50
50
|
TermsAndConditionsFooter: !0,
|
51
|
-
HotelOfferItem:
|
51
|
+
HotelOfferItem: sr
|
52
52
|
}, Ar = {
|
53
|
-
...
|
53
|
+
...tr,
|
54
54
|
features: {
|
55
|
-
default: () =>
|
55
|
+
default: () => Or,
|
56
56
|
type: [Object, String]
|
57
57
|
},
|
58
58
|
height: {
|
@@ -63,7 +63,7 @@ const Ls = {
|
|
63
63
|
type: Number
|
64
64
|
},
|
65
65
|
limit: {
|
66
|
-
default:
|
66
|
+
default: ir,
|
67
67
|
type: Number
|
68
68
|
},
|
69
69
|
loadingBarEnabled: {
|
@@ -161,7 +161,7 @@ function Pr(t, e) {
|
|
161
161
|
function Nr(t) {
|
162
162
|
return new RegExp(t.source, t.flags ? t.flags : (t.global ? "g" : "") + (t.ignoreCase ? "i" : "") + (t.multiline ? "m" : "") + (t.sticky ? "y" : "") + (t.unicode ? "u" : "") + (t.dotAll ? "s" : ""));
|
163
163
|
}
|
164
|
-
function
|
164
|
+
function Ls(t, e, n) {
|
165
165
|
if (n || (n = new wr()), Lr(t))
|
166
166
|
return t;
|
167
167
|
var s = function(r) {
|
@@ -170,7 +170,7 @@ function ws(t, e, n) {
|
|
170
170
|
return a;
|
171
171
|
n.set(t, r);
|
172
172
|
for (var u in t)
|
173
|
-
Object.prototype.hasOwnProperty.call(t, u) && (r[u] =
|
173
|
+
Object.prototype.hasOwnProperty.call(t, u) && (r[u] = Ls(t[u], !0, n));
|
174
174
|
return r;
|
175
175
|
};
|
176
176
|
switch (Dr(t)) {
|
@@ -233,7 +233,7 @@ var wr = /* @__PURE__ */ function() {
|
|
233
233
|
}
|
234
234
|
}, t;
|
235
235
|
}(), I = /* @__PURE__ */ pe(function(e) {
|
236
|
-
return e != null && typeof e.clone == "function" ? e.clone() :
|
236
|
+
return e != null && typeof e.clone == "function" ? e.clone() : Ls(e);
|
237
237
|
});
|
238
238
|
function Mr(t, e) {
|
239
239
|
for (var n = e, s = 0; s < t.length; s += 1) {
|
@@ -260,7 +260,7 @@ var $r = /* @__PURE__ */ pn(function(e, n, s) {
|
|
260
260
|
return Ur(function(i, r, a) {
|
261
261
|
return e(r, a);
|
262
262
|
}, n, s);
|
263
|
-
}), Vr = /* @__PURE__ */ Ee(Mr),
|
263
|
+
}), Vr = /* @__PURE__ */ Ee(Mr), ws = /* @__PURE__ */ Ee(function(e, n) {
|
264
264
|
var s = {};
|
265
265
|
for (var i in n)
|
266
266
|
e(n[i], i, n) && (s[i] = n[i]);
|
@@ -289,13 +289,13 @@ const S = (t) => typeof t == "function" && !!(t.constructor && t.call && t.apply
|
|
289
289
|
) : s;
|
290
290
|
}), n;
|
291
291
|
}, x = (t, e) => Br(qr, t, e), Te = (t) => w(t) && Object.keys(t).length > 0, tt = (t) => {
|
292
|
-
const e =
|
292
|
+
const e = ws(C, t);
|
293
293
|
return Object.keys(e).forEach((n) => {
|
294
294
|
const s = e[n];
|
295
295
|
w(s) && (e[n] = tt(s));
|
296
296
|
}), e;
|
297
297
|
}, _t = (t) => {
|
298
|
-
const e =
|
298
|
+
const e = ws(qe, t);
|
299
299
|
return Object.keys(e).forEach((n) => {
|
300
300
|
const s = e[n];
|
301
301
|
w(s) && (e[n] = _t(s));
|
@@ -323,20 +323,20 @@ const S = (t) => typeof t == "function" && !!(t.constructor && t.call && t.apply
|
|
323
323
|
}, yn = (t, e, n, s) => {
|
324
324
|
const i = { name: t, properties: e, options: n, callback: void 0 };
|
325
325
|
return S(s) && (i.callback = s), S(n) && (i.properties = e, i.options = void 0, i.callback = n), S(e) && (i.properties = void 0, i.options = void 0, i.callback = e), i.properties = qe(i.properties) ? I(i.properties) : {}, C(i.options) ? i.options = I(i.options) : i.options = void 0, i;
|
326
|
-
},
|
326
|
+
}, Ms = (t, e, n, s) => {
|
327
327
|
const i = { userId: t, traits: e, options: n, callback: void 0 };
|
328
328
|
return S(s) && (i.callback = s), S(n) && (i.userId = t, i.traits = e, i.options = void 0, i.callback = n), S(e) && (i.userId = t, i.traits = void 0, i.options = void 0, i.callback = e), (w(t) || ne(t)) && (i.userId = null, i.traits = t, S(e) ? i.options = void 0 : i.options = e), i.userId = Pt(i.userId), w(i.traits) ? i.traits = I(i.traits) : i.traits = void 0, C(i.options) ? i.options = I(i.options) : i.options = void 0, i;
|
329
|
-
},
|
329
|
+
}, $s = (t, e, n, s) => {
|
330
330
|
const i = { to: t, from: e, options: n, callback: void 0 };
|
331
331
|
return S(s) && (i.callback = s), S(n) && (i.to = t, i.from = e, i.options = void 0, i.callback = n), S(e) ? (i.to = t, i.from = void 0, i.options = void 0, i.callback = e) : (w(e) || ne(e)) && (i.to = t, i.from = void 0, i.options = e), C(i.to) && (i.to = Pt(i.to)), C(i.from) ? i.from = Pt(i.from) : i.from = void 0, C(i.options) ? i.options = I(i.options) : i.options = void 0, i;
|
332
|
-
},
|
332
|
+
}, Us = (t, e, n, s) => {
|
333
333
|
const i = { groupId: t, traits: e, options: n, callback: void 0 };
|
334
334
|
return S(s) && (i.callback = s), S(n) && (i.groupId = t, i.traits = e, i.options = void 0, i.callback = n), S(e) && (i.groupId = t, i.traits = void 0, i.options = void 0, i.callback = e), (w(t) || ne(t)) && (i.groupId = null, i.traits = t, S(e) ? i.options = void 0 : i.options = e), i.groupId = Pt(i.groupId), w(i.traits) ? i.traits = I(i.traits) : i.traits = void 0, C(i.options) ? i.options = I(i.options) : i.options = void 0, i;
|
335
335
|
};
|
336
336
|
let Ht = /* @__PURE__ */ function(t) {
|
337
337
|
return t.UNLOADED = "Page Unloaded", t;
|
338
338
|
}({});
|
339
|
-
const bn = "API", nn = "CapabilitiesManager", te = "ConfigManager",
|
339
|
+
const bn = "API", nn = "CapabilitiesManager", te = "ConfigManager", Bs = "EventManager", gt = "PluginsManager", De = "UserSessionManager", nt = "ErrorHandler", Be = "PluginEngine", Wr = "StoreManager", Gt = `Ready${bn}`, Qr = `Load${bn}`, Xr = "HttpClient", Jr = "RudderStackAnalytics", jt = "AnalyticsCore";
|
340
340
|
function Zr(t) {
|
341
341
|
return crypto.getRandomValues(new Uint8Array(t));
|
342
342
|
}
|
@@ -379,7 +379,7 @@ const no = () => !le(globalThis.crypto) && S(globalThis.crypto.getRandomValues),
|
|
379
379
|
}), document.addEventListener("visibilitychange", () => {
|
380
380
|
n = !0, document.visibilityState === "hidden" ? s() : e = !1;
|
381
381
|
});
|
382
|
-
},
|
382
|
+
}, Vs = (t) => t.toISOString(), io = () => Vs(/* @__PURE__ */ new Date()), R = ":: ", ro = (t) => `A script with the id "${t}" is already loaded. Skipping the loading of this script to prevent conflicts`, Ln = (t, e, n) => `Unable to load (${U(n) ? n : n.type}) the script with the id "${t}" from URL "${e}"`, oo = (t, e, n) => `A timeout of ${n} ms occurred while trying to load the script with id "${t}" from URL "${e}"`, ao = (t, e) => `${t}${R}A circular reference has been detected in the object and the property "${e}" has been dropped from the output.`, lo = "Failed to convert the value to a JSON string.", uo = "Failed to encode the cookie data.", co = "JSONStringify", fo = "[BigInt]", Fs = "[Circular Reference]", ho = (t, e, n) => {
|
383
383
|
const s = [];
|
384
384
|
return function(i, r) {
|
385
385
|
if (!(e != null && e.includes(i)) && !(t && le(r))) {
|
@@ -387,7 +387,7 @@ const no = () => !le(globalThis.crypto) && S(globalThis.crypto.getRandomValues),
|
|
387
387
|
return r;
|
388
388
|
for (; s.length > 0 && s[s.length - 1] !== this; )
|
389
389
|
s.pop();
|
390
|
-
return s.includes(r) ? (n == null || n.warn(ao(co, i)),
|
390
|
+
return s.includes(r) ? (n == null || n.warn(ao(co, i)), Fs) : (s.push(r), r);
|
391
391
|
}
|
392
392
|
};
|
393
393
|
}, de = (t, e, n, s) => {
|
@@ -403,19 +403,19 @@ const no = () => !le(globalThis.crypto) && S(globalThis.crypto.getRandomValues),
|
|
403
403
|
return fo;
|
404
404
|
for (; e.length > 0 && e[e.length - 1] !== this; )
|
405
405
|
e.pop();
|
406
|
-
return e.includes(i) ?
|
406
|
+
return e.includes(i) ? Fs : (e.push(i), i);
|
407
407
|
};
|
408
|
-
},
|
408
|
+
}, xs = (t, e) => {
|
409
409
|
const n = Array.isArray(t) ? [] : {};
|
410
410
|
for (const s in t)
|
411
411
|
if (Object.hasOwnProperty.call(t, s)) {
|
412
412
|
const i = t[s], r = e.call(t, s, i);
|
413
|
-
w(r) || Array.isArray(r) ? n[s] =
|
413
|
+
w(r) || Array.isArray(r) ? n[s] = xs(r, e) : n[s] = r;
|
414
414
|
}
|
415
415
|
return n;
|
416
416
|
}, A = (t, e) => {
|
417
417
|
const n = go(), s = n.call(t, "", t);
|
418
|
-
return w(t) || Array.isArray(t) ?
|
418
|
+
return w(t) || Array.isArray(t) ? xs(t, n) : s;
|
419
419
|
}, Rt = "[SDK DISPATCHED ERROR]", En = (t) => {
|
420
420
|
const { stack: e, stacktrace: n } = t, s = t["opera#sourceloc"], i = e ?? n ?? s;
|
421
421
|
if (i && typeof i == "string")
|
@@ -446,11 +446,11 @@ ${Rt}`;
|
|
446
446
|
}
|
447
447
|
}
|
448
448
|
globalThis.dispatchEvent(new ErrorEvent("error", { error: t, bubbles: !0, cancelable: !0, composed: !0 }));
|
449
|
-
}, wn = "RudderLabs JavaScript SDK", lt = "3.20.1", mo = "com.rudderlabs.javascript",
|
449
|
+
}, wn = "RudderLabs JavaScript SDK", lt = "3.20.1", mo = "com.rudderlabs.javascript", Hs = "npm", Mn = "RudderJS-Initiated", po = "ad-block page request", vo = "/ad-blocked", rt = "preloadedEventsBuffer", yo = "Consent Management Interaction", bo = "ajs_trait_", Eo = "ajs_prop_", $n = "ajs_aid", Un = "ajs_uid", Bn = "ajs_event", So = 10 * 1e3, ko = 31536e3 * 1e3, Vn = 12 * 60 * 60 * 1e3, sn = 30 * 60 * 1e3, Fn = 10 * 1e3, Ro = 10 * 1e3, To = 250, Gs = (t = "app") => {
|
450
450
|
globalThis.RudderStackGlobals || (globalThis.RudderStackGlobals = {}), globalThis.RudderStackGlobals[t] || (globalThis.RudderStackGlobals[t] = {});
|
451
451
|
}, ut = (t, e, n = "app") => {
|
452
|
-
|
453
|
-
},
|
452
|
+
Gs(n), globalThis.RudderStackGlobals[n][t] = e;
|
453
|
+
}, js = (t, e = "app") => (Gs(e), globalThis.RudderStackGlobals[e][t]);
|
454
454
|
function Io(t, e, n = To) {
|
455
455
|
let s;
|
456
456
|
return (...i) => {
|
@@ -485,7 +485,7 @@ const xn = (t, e) => {
|
|
485
485
|
const e = "consent", n = t.filter((i) => i[0] === e), s = t.filter((i) => i[0] !== e);
|
486
486
|
t.splice(0, t.length, ...n, ...s);
|
487
487
|
}, Co = (t) => {
|
488
|
-
const e =
|
488
|
+
const e = js(rt) || [];
|
489
489
|
Oo(e), e.length > 0 && (t.enqueuePreloadBufferEvents(e), ut(rt, []));
|
490
490
|
}, _o = (t, e) => {
|
491
491
|
const n = t.shift();
|
@@ -499,13 +499,13 @@ const xn = (t, e) => {
|
|
499
499
|
s = yn(...t);
|
500
500
|
break;
|
501
501
|
case "identify":
|
502
|
-
s =
|
502
|
+
s = Ms(...t);
|
503
503
|
break;
|
504
504
|
case "alias":
|
505
|
-
s =
|
505
|
+
s = $s(...t);
|
506
506
|
break;
|
507
507
|
case "group":
|
508
|
-
s =
|
508
|
+
s = Us(...t);
|
509
509
|
break;
|
510
510
|
default:
|
511
511
|
e[n](...t);
|
@@ -549,7 +549,7 @@ const xn = (t, e) => {
|
|
549
549
|
a(Sn(l, Ln(e, t, "unknown")));
|
550
550
|
}
|
551
551
|
});
|
552
|
-
class
|
552
|
+
class qs {
|
553
553
|
constructor(e, n = Po) {
|
554
554
|
this.logger = e, this.timeout = n;
|
555
555
|
}
|
@@ -574,7 +574,7 @@ function Vt() {
|
|
574
574
|
var n = ot;
|
575
575
|
for (ot = void 0, rn++; n !== void 0; ) {
|
576
576
|
var s = n.o;
|
577
|
-
if (n.o = void 0, n.f &= -3, !(8 & n.f) &&
|
577
|
+
if (n.o = void 0, n.f &= -3, !(8 & n.f) && Ys(n)) try {
|
578
578
|
n.c();
|
579
579
|
} catch (i) {
|
580
580
|
e || (t = i, e = !0);
|
@@ -595,7 +595,7 @@ function j(t) {
|
|
595
595
|
}
|
596
596
|
}
|
597
597
|
var D = void 0;
|
598
|
-
function
|
598
|
+
function zs(t) {
|
599
599
|
var e = D;
|
600
600
|
D = void 0;
|
601
601
|
try {
|
@@ -605,7 +605,7 @@ function Ks(t) {
|
|
605
605
|
}
|
606
606
|
}
|
607
607
|
var ot = void 0, Re = 0, rn = 0, Lt = 0;
|
608
|
-
function
|
608
|
+
function Ks(t) {
|
609
609
|
if (D !== void 0) {
|
610
610
|
var e = t.n;
|
611
611
|
if (e === void 0 || e.t !== D)
|
@@ -623,7 +623,7 @@ q.prototype.h = function() {
|
|
623
623
|
};
|
624
624
|
q.prototype.S = function(t) {
|
625
625
|
var e = this, n = this.t;
|
626
|
-
n !== t && t.e === void 0 && (t.x = n, this.t = t, n !== void 0 ? n.e = t :
|
626
|
+
n !== t && t.e === void 0 && (t.x = n, this.t = t, n !== void 0 ? n.e = t : zs(function() {
|
627
627
|
var s;
|
628
628
|
(s = e.W) == null || s.call(e);
|
629
629
|
}));
|
@@ -632,7 +632,7 @@ q.prototype.U = function(t) {
|
|
632
632
|
var e = this;
|
633
633
|
if (this.t !== void 0) {
|
634
634
|
var n = t.e, s = t.x;
|
635
|
-
n !== void 0 && (n.x = s, t.e = void 0), s !== void 0 && (s.e = n, t.x = void 0), t === this.t && (this.t = s, s === void 0 &&
|
635
|
+
n !== void 0 && (n.x = s, t.e = void 0), s !== void 0 && (s.e = n, t.x = void 0), t === this.t && (this.t = s, s === void 0 && zs(function() {
|
636
636
|
var i;
|
637
637
|
(i = e.Z) == null || i.call(e);
|
638
638
|
}));
|
@@ -669,7 +669,7 @@ q.prototype.peek = function() {
|
|
669
669
|
}
|
670
670
|
};
|
671
671
|
Object.defineProperty(q.prototype, "value", { get: function() {
|
672
|
-
var t =
|
672
|
+
var t = Ks(this);
|
673
673
|
return t !== void 0 && (t.i = this.i), this.v;
|
674
674
|
}, set: function(t) {
|
675
675
|
if (t !== this.v) {
|
@@ -685,11 +685,11 @@ Object.defineProperty(q.prototype, "value", { get: function() {
|
|
685
685
|
function p(t, e) {
|
686
686
|
return new q(t, e);
|
687
687
|
}
|
688
|
-
function
|
688
|
+
function Ys(t) {
|
689
689
|
for (var e = t.s; e !== void 0; e = e.n) if (e.S.i !== e.i || !e.S.h() || e.S.i !== e.i) return !0;
|
690
690
|
return !1;
|
691
691
|
}
|
692
|
-
function
|
692
|
+
function Ws(t) {
|
693
693
|
for (var e = t.s; e !== void 0; e = e.n) {
|
694
694
|
var n = e.S.n;
|
695
695
|
if (n !== void 0 && (e.r = n), e.S.n = e, e.i = -1, e.n === void 0) {
|
@@ -698,7 +698,7 @@ function Qs(t) {
|
|
698
698
|
}
|
699
699
|
}
|
700
700
|
}
|
701
|
-
function
|
701
|
+
function Qs(t) {
|
702
702
|
for (var e = t.s, n = void 0; e !== void 0; ) {
|
703
703
|
var s = e.p;
|
704
704
|
e.i === -1 ? (e.S.U(e), s !== void 0 && (s.n = e.n), e.n !== void 0 && (e.n.p = s)) : n = e, e.S.n = e.r, e.r !== void 0 && (e.r = void 0), e = s;
|
@@ -712,17 +712,17 @@ We.prototype = new q();
|
|
712
712
|
We.prototype.h = function() {
|
713
713
|
if (this.f &= -3, 1 & this.f) return !1;
|
714
714
|
if ((36 & this.f) == 32 || (this.f &= -5, this.g === Lt)) return !0;
|
715
|
-
if (this.g = Lt, this.f |= 1, this.i > 0 && !
|
715
|
+
if (this.g = Lt, this.f |= 1, this.i > 0 && !Ys(this))
|
716
716
|
return this.f &= -2, !0;
|
717
717
|
var t = D;
|
718
718
|
try {
|
719
|
-
|
719
|
+
Ws(this), D = this;
|
720
720
|
var e = this.x();
|
721
721
|
(16 & this.f || this.v !== e || this.i === 0) && (this.v = e, this.f &= -17, this.i++);
|
722
722
|
} catch (n) {
|
723
723
|
this.v = n, this.f |= 16, this.i++;
|
724
724
|
}
|
725
|
-
return D = t,
|
725
|
+
return D = t, Qs(this), this.f &= -2, !0;
|
726
726
|
};
|
727
727
|
We.prototype.S = function(t) {
|
728
728
|
if (this.t === void 0) {
|
@@ -745,11 +745,11 @@ We.prototype.N = function() {
|
|
745
745
|
};
|
746
746
|
Object.defineProperty(We.prototype, "value", { get: function() {
|
747
747
|
if (1 & this.f) throw new Error("Cycle detected");
|
748
|
-
var t =
|
748
|
+
var t = Ks(this);
|
749
749
|
if (this.h(), t !== void 0 && (t.i = this.i), 16 & this.f) throw this.v;
|
750
750
|
return this.v;
|
751
751
|
} });
|
752
|
-
function
|
752
|
+
function Xs(t) {
|
753
753
|
var e = t.u;
|
754
754
|
if (t.u = void 0, typeof e == "function") {
|
755
755
|
Re++;
|
@@ -766,11 +766,11 @@ function Js(t) {
|
|
766
766
|
}
|
767
767
|
function kn(t) {
|
768
768
|
for (var e = t.s; e !== void 0; e = e.n) e.S.U(e);
|
769
|
-
t.x = void 0, t.s = void 0,
|
769
|
+
t.x = void 0, t.s = void 0, Xs(t);
|
770
770
|
}
|
771
771
|
function Uo(t) {
|
772
772
|
if (D !== this) throw new Error("Out-of-order effect");
|
773
|
-
|
773
|
+
Qs(this), D = t, this.f &= -2, 8 & this.f && kn(this), Vt();
|
774
774
|
}
|
775
775
|
function ft(t) {
|
776
776
|
this.x = t, this.u = void 0, this.s = void 0, this.o = void 0, this.f = 32;
|
@@ -787,7 +787,7 @@ ft.prototype.c = function() {
|
|
787
787
|
};
|
788
788
|
ft.prototype.S = function() {
|
789
789
|
if (1 & this.f) throw new Error("Cycle detected");
|
790
|
-
this.f |= 1, this.f &= -9,
|
790
|
+
this.f |= 1, this.f &= -9, Xs(this), Ws(this), Re++;
|
791
791
|
var t = D;
|
792
792
|
return D = this, Uo.bind(this, t);
|
793
793
|
};
|
@@ -826,7 +826,7 @@ class Bo {
|
|
826
826
|
this.items = [];
|
827
827
|
}
|
828
828
|
}
|
829
|
-
const pt = { LOG: 0, INFO: 1, DEBUG: 2, WARN: 3, ERROR: 4, NONE: 5 }, Hn = "LOG",
|
829
|
+
const pt = { LOG: 0, INFO: 1, DEBUG: 2, WARN: 3, ERROR: 4, NONE: 5 }, Hn = "LOG", Js = "ERROR", Vo = "RS SDK", Fo = "font-weight: bold; background: black; color: white;", xo = "font-weight: normal;";
|
830
830
|
class Ho {
|
831
831
|
constructor(e = Hn, n = "", s = console) {
|
832
832
|
this.minLogLevel = pt[e], this.scope = n, this.logProvider = s;
|
@@ -883,15 +883,15 @@ const ye = new Ho();
|
|
883
883
|
let ge = /* @__PURE__ */ function(t) {
|
884
884
|
return t.HANDLEDEXCEPTION = "handledException", t.UNHANDLEDEXCEPTION = "unhandledException", t.UNHANDLEDREJECTION = "unhandledPromiseRejection", t;
|
885
885
|
}({});
|
886
|
-
const
|
886
|
+
const Zs = ["localStorage", "memoryStorage", "cookieStorage", "sessionStorage", "none"], on = "cookieStorage", Gn = "Unable to process/parse source configuration response", Go = "The source is disabled. Please enable the source in the dashboard to send events.", jo = "Failed to prepare data for the request.", qo = "Failed to invoke plugin because the extension point name is missing.", zo = "Failed to invoke plugin because the extension point name is invalid.", Ko = (t) => `${t}${R}The "getSourceConfig" load API option must be a function that returns valid source configuration data.`, Yo = (t, e, n) => `${t}${R}The base URL "${n}" for ${e} is not valid.`, Wo = (t, e, n) => `${t}${R}The consent manager "${e}" is not supported. Please choose one of the following supported consent managers: "${Object.keys(n)}".`, Qo = (t, e) => `${t}${R}Ignoring a non-error: ${e}.`, jn = "Failed to log breadcrumb", Xo = (t) => `${t}${R}Failed to handle the error.`, Jo = (t) => `${t}${R}Plugin name is missing.`, Zo = (t, e) => `${t}${R}Plugin "${e}" already exists.`, ea = (t, e) => `${t}${R}Plugin "${e}" not found.`, ta = (t, e) => `${t}${R}Plugin "${e}" not found in plugins but found in byName. This indicates a bug in the plugin engine. Please report this issue to the development team.`, na = (t, e, n) => `${t}${R}Plugin "${e}" could not be loaded because some of its dependencies "${n}" do not exist.`, sa = (t, e, n) => `${t}${R}Failed to invoke the "${e}" extension point of plugin "${n}".`, ia = (t, e) => `${t}${R}The "${e}" storage type is `, qn = "Failed to fetch the source config", ra = (t, e) => `${t}${R}The write key "${e}" is invalid. It must be a non-empty string. Please check that the write key is correct and try again.`, oa = (t, e) => `${t}${R}The data plane URL "${e}" is invalid. It must be a valid URL string. Please check that the data plane URL is correct and try again.`, ei = (t) => `${t}${R}The provided callback parameter is not a function.`, aa = (t, e, n, s, i) => `${t} with status ${e} (${n}) for URL: ${s}. Response: ${i.trim()}`, la = (t, e, n) => `${t} due to timeout or no connection (${e ? e.type : ""}) at the client side for URL: ${n}`, ua = (t, e) => `${t} for URL: ${e}`, ca = (t) => `Failed to save the value for "${t}" to storage`, da = (t) => `Failed to retrieve or parse data for "${t}" from storage`, fa = (t) => `The server responded with status ${t} while setting the cookies. As a fallback, the cookies will be set client side.`, ha = (t) => `The server failed to set the ${t} cookie. As a fallback, the cookies will be set client side.`, zn = "Failed to set/remove cookies via server. As a fallback, the cookies will be managed client side.", ga = (t, e, n) => `${t}${R}The storage type "${e}" is not supported. Please choose one of the following supported types: "${Zs}". The default type "${n}" will be used instead.`, ma = (t, e, n, s) => `${t}${R}The storage encryption version "${e}" is not supported. Please choose one of the following supported versions: "${Object.keys(n)}". The default version "${s}" will be used instead.`, pa = (t, e, n) => `${t}${R}The storage data migration has been disabled because the configured storage encryption version (${e}) is not the latest (${n}). To enable storage data migration, please update the storage encryption version to the latest version.`, va = (t, e, n) => `${t}${R}The provided cookie domain (${e}) does not match the current webpage's domain (${n}). Hence, the cookies will be set client-side.`, ya = (t, e, n, s) => `${t}${R}The "${e}" property defined under "${n}" is a reserved keyword. Please choose a different property name to avoid conflicts with reserved keywords (${s}).`, ba = (t) => `${t}${R}Please make sure that the "context" property in the event API's "options" argument is a valid object literal with key-value pairs.`, Ea = (t) => `${t}${R}The Beacon API is not supported by your browser. The events will be sent using XHR instead.`, Sa = (t, e, n) => `${t}${R}The session timeout value "${e}" is not a number. The default timeout of ${n} ms will be used instead.`, ka = (t, e, n) => `${t}${R}The session cut off duration value "${e}" is not a number. The default cut off duration of ${n} ms will be used instead.`, Ra = (t, e, n) => `${t}${R}The session cut off duration value "${e}" ms is less than the session timeout value "${n}" ms. The cut off functionality will be disabled.`, Ta = (t) => `${t}${R}The session timeout value is 0, which disables the automatic session tracking feature. If you want to enable session tracking, please provide a positive integer value for the timeout.`, Ia = (t, e, n) => `${t}${R}The session timeout value ${e} ms is less than the recommended minimum of ${n} ms. Please consider increasing the timeout value to ensure optimal performance and reliability.`, Oa = (t, e, n) => `${t}${R}The provided session ID (${e}) is either invalid, not a positive integer, or not at least "${n}" digits long. A new session ID will be auto-generated instead.`, Aa = (t) => `${t}${R}The storage is either full or unavailable, so the data will not be persisted. Switching to in-memory storage.`, Da = (t, e, n, s) => `${t}${R}The storage type "${n}" is not available for entry "${e}". The SDK will initialize the entry with "${s}" storage type instead.`, Ca = (t) => `${t}${R}The callback threw an exception`, _a = (t, e) => `${t}${R}The provided source config URL "${e}" is invalid. Using the default source config URL instead.`, Pa = (t, e) => `Failed to load the polyfill script with ID "${t}" from URL ${e}.`, Na = (t, e, n) => `${t}${R}The pre-consent storage strategy "${e}" is not supported. Please choose one of the following supported strategies: "none, session, anonymousId". The default strategy "${n}" will be used instead.`, La = (t, e, n) => `${t}${R}The pre-consent events delivery type "${e}" is not supported. Please choose one of the following supported types: "immediate, buffer". The default type "${n}" will be used instead.`, wa = (t, e) => `${t}${R}${e} plugin is deprecated. Please exclude it from the load API options.`, Ma = (t, e, n, s) => {
|
887
887
|
const i = n.length === 1, r = i ? ` '${n[0]}' plugin was` : ` ['${n.join("', '")}'] plugins were`, a = `${t}${R}${e}, but${r} not configured to load.`;
|
888
888
|
return s ? `${a} So, ${i ? "the plugin" : "those plugins"} will be loaded automatically.` : `${a} Ignore if this was intentional. Otherwise, consider adding ${i ? "it" : "them"} to the 'plugins' load API option.`;
|
889
|
-
}, $a = (t, e) => `${t}${R}The provided polyfill URL "${e}" is invalid. The default polyfill URL will be used instead.`, Ua = (t) => `${t}${R}Page Unloaded event can only be tracked when the Beacon transport is active. Please enable "useBeacon" load API option.`, Ba = (t, e) => `${t}${R}Ignoring unknown plugins: ${e.join(", ")}.`,
|
889
|
+
}, $a = (t, e) => `${t}${R}The provided polyfill URL "${e}" is invalid. The default polyfill URL will be used instead.`, Ua = (t) => `${t}${R}Page Unloaded event can only be tracked when the Beacon transport is active. Please enable "useBeacon" load API option.`, Ba = (t, e) => `${t}${R}Ignoring unknown plugins: ${e.join(", ")}.`, ti = { All: !0 }, Rn = "js-integrations", ni = "plugins", Va = new RegExp("^(https?:\\/\\/)(((([a-zA-Z\\d]([a-zA-Z\\d-]*[a-zA-Z\\d])*)\\.)+[a-zA-Z]{2,}|localhost|((25[0-5]|2[0-4][0-9]|[0-1]?[0-9]?[0-9]?)\\.){3}(25[0-5]|2[0-4][0-9]|[0-1]?[0-9]?[0-9]?)))(\\:\\d+)?(\\/[-a-zA-Z\\d%_.~+]*)*(\\?[;&a-zA-Z\\d%_.~+=-]*)?(\\#[-a-zA-Z\\d_]*)?$"), ct = "modern", wt = "https://cdn.rudderlabs.com", Tn = "v3", si = `${wt}/${Tn}/${ct}/${Rn}`, ii = `${wt}/${Tn}/${ct}/${ni}`, ri = "https://api.rudderstack.com", Ce = "v3", Fa = "xhr", an = { iubenda: "IubendaConsentManager", oneTrust: "OneTrustConsentManager", ketch: "KetchConsentManager", custom: "CustomConsentManager" }, Tt = { [Ce]: "StorageEncryption", legacy: "StorageEncryptionLegacy" }, xa = { [Fa]: "XhrQueue", beacon: "BeaconQueue" }, Ha = "rsaRequest", Ga = "rsaMetrics", ja = { configUrl: ri, loadIntegration: !0, sessions: { autoTrack: !0, timeout: sn, cutOff: { enabled: !1 } }, sameSiteCookie: "Lax", polyfillIfRequired: !0, integrations: ti, useBeacon: !1, beaconQueueOptions: {}, destinationsQueueOptions: {}, queueOptions: {}, lockIntegrationsVersion: !0, lockPluginsVersion: !0, uaChTrackLevel: "none", plugins: [], useGlobalIntegrationsConfigInEvents: !1, bufferDataPlaneEventsUntilReady: !1, dataPlaneEventsBufferTimeout: Ro, storage: { encryption: { version: Ce }, migrate: !0, cookie: {} }, sendAdblockPage: !1, sameDomainCookiesOnly: !1, secureCookie: !1, sendAdblockPageOptions: {}, useServerSideCookies: !1 }, qa = p(I(ja)), O = { userId: "", userTraits: {}, anonymousId: "", groupId: "", groupTraits: {}, initialReferrer: "", initialReferringDomain: "", sessionInfo: {}, authToken: null }, za = 10, Ka = { userId: p(O.userId), userTraits: p(O.userTraits), anonymousId: p(O.anonymousId), groupId: p(O.groupId), groupTraits: p(O.groupTraits), initialReferrer: p(O.initialReferrer), initialReferringDomain: p(O.initialReferringDomain), sessionInfo: p(O.sessionInfo), authToken: p(O.authToken) }, Ya = { isOnline: p(!0), storage: { isLocalStorageAvailable: p(!1), isCookieStorageAvailable: p(!1), isSessionStorageAvailable: p(!1) }, isBeaconAvailable: p(!1), isLegacyDOM: p(!1), isUaCHAvailable: p(!1), isCryptoAvailable: p(!1), isIE11: p(!1), isAdBlocked: p(!1) }, Wa = { isErrorReportingEnabled: p(!1), isMetricsReportingEnabled: p(!1), breadcrumbs: p([]) }, Qa = p(void 0), Xa = { activeDataplaneUrl: p(void 0), integrationsCDNPath: p(si), pluginsCDNPath: p(ii), sourceConfigUrl: p(void 0), status: p(void 0), initialized: p(!1), logLevel: p(Js), loaded: p(!1), readyCallbacks: p([]), writeKey: p(void 0), dataPlaneUrl: p(void 0) }, Ja = { enabled: p(!1), initialized: p(!1), data: p({}), activeConsentManagerPluginName: p(void 0), preConsent: p({ enabled: !1 }), postConsent: p({}), resolutionStrategy: p("and"), provider: p(void 0), metadata: p(void 0) }, Za = { retries: p(0), dropped: p(0), sent: p(0), queued: p(0), triggered: p(0), metricsServiceUrl: p(void 0) }, el = { app: p({ name: wn, namespace: mo, version: lt, installType: Hs }), traits: p(null), library: p({ name: wn, version: lt, snippetVersion: globalThis.RudderSnippetVersion }), userAgent: p(null), device: p(null), network: p(null), os: p({ name: "", version: "" }), locale: p(null), screen: p({ density: 0, width: 0, height: 0, innerWidth: 0, innerHeight: 0 }), "ua-ch": p(void 0), timezone: p(void 0) }, tl = { configuredDestinations: p([]), activeDestinations: p([]), loadOnlyIntegrations: p({}), failedDestinations: p([]), loadIntegration: p(!0), initializedDestinations: p([]), clientDestinationsReady: p(!1), integrationsConfig: p({}) }, nl = { toBeProcessedArray: p([]), readyCallbacksArray: p([]) }, sl = { ready: p(!1), loadedPlugins: p([]), failedPlugins: p([]), pluginsToLoadFromConfig: p([]), activePlugins: p([]), totalPluginsToLoad: p(0) }, il = { encryptionPluginName: p(void 0), migrate: p(!1), type: p(void 0), cookie: p(void 0), entries: p({}), trulyAnonymousTracking: p(!1) }, rl = { isEnabledServerSideCookies: p(!1), dataServiceUrl: p(void 0) }, ol = {
|
890
890
|
eventsQueuePluginName: p(void 0),
|
891
891
|
deliveryEnabled: p(!0)
|
892
892
|
// Delivery should always happen
|
893
893
|
}, al = { enabled: p(!1), pageLifecycle: { enabled: p(!1), pageViewId: p(void 0), pageLoadedTimestamp: p(void 0) } }, ll = { capabilities: Ya, consents: Ja, context: el, eventBuffer: nl, lifecycle: Xa, loadOptions: qa, metrics: Za, nativeDestinations: tl, plugins: sl, reporting: Wa, session: Ka, source: Qa, storage: il, serverCookies: rl, dataPlaneEvents: ol, autoTrack: al }, o = { ...I(ll) };
|
894
|
-
function
|
894
|
+
function oi(t) {
|
895
895
|
return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
|
896
896
|
}
|
897
897
|
var It = { exports: {} }, Ot = { exports: {} }, ul = Ot.exports, Kn;
|
@@ -1060,9 +1060,9 @@ function fl() {
|
|
1060
1060
|
}(It)), It.exports;
|
1061
1061
|
}
|
1062
1062
|
var hl = fl();
|
1063
|
-
const gl = /* @__PURE__ */
|
1063
|
+
const gl = /* @__PURE__ */ oi(hl), ai = "global code", ml = (t) => C(t) && /^global code$/i.test(t) ? ai : t, pl = (t) => {
|
1064
1064
|
const e = { file: t.fileName, method: ml(t.functionName), lineNumber: t.lineNumber, columnNumber: t.columnNumber };
|
1065
|
-
return e.lineNumber && e.lineNumber > -1 && !e.file && !e.method && (e.file =
|
1065
|
+
return e.lineNumber && e.lineNumber > -1 && !e.file && !e.method && (e.file = ai), e;
|
1066
1066
|
}, Wn = (t) => U(t) ? t : "";
|
1067
1067
|
function Qn(t, e, n, s) {
|
1068
1068
|
return { errorClass: Wn(t), message: `${n}${Wn(e)}`, type: "browserjs", stacktrace: s.reduce((i, r) => {
|
@@ -1074,7 +1074,7 @@ function Qn(t, e, n, s) {
|
|
1074
1074
|
}
|
1075
1075
|
}, []) };
|
1076
1076
|
}
|
1077
|
-
const
|
1077
|
+
const li = (t, e) => {
|
1078
1078
|
let n;
|
1079
1079
|
return vn(t) && U(En(t)) ? n = t : (e.warn(Qo(nt, de(t))), n = void 0), n;
|
1080
1080
|
}, vl = (t, e) => {
|
@@ -1169,7 +1169,7 @@ class kl {
|
|
1169
1169
|
this.basicAuthHeader = void 0;
|
1170
1170
|
}
|
1171
1171
|
}
|
1172
|
-
const
|
1172
|
+
const ui = new kl(ye), Rl = "1", Tl = () => [
|
1173
1173
|
"rsa"
|
1174
1174
|
// Prefix for all the SDK scripts including plugins and module federated chunks
|
1175
1175
|
], Il = ["www.test-host.com", "localhost", "127.0.0.1", "[::1]"], Ol = [
|
@@ -1237,7 +1237,7 @@ const ci = new kl(ye), Rl = "1", Tl = () => [
|
|
1237
1237
|
else if (U(t))
|
1238
1238
|
i = t;
|
1239
1239
|
else {
|
1240
|
-
const r =
|
1240
|
+
const r = li(t, s);
|
1241
1241
|
C(r) ? i = r.message : i = e;
|
1242
1242
|
}
|
1243
1243
|
return i;
|
@@ -1276,7 +1276,7 @@ class Hl {
|
|
1276
1276
|
*/
|
1277
1277
|
onError(e) {
|
1278
1278
|
try {
|
1279
|
-
const { error: n, context: s, customMessage: i, groupingHash: r } = e, a = e.errorType ?? ge.HANDLEDEXCEPTION, u = _l(n, a), l =
|
1279
|
+
const { error: n, context: s, customMessage: i, groupingHash: r } = e, a = e.errorType ?? ge.HANDLEDEXCEPTION, u = _l(n, a), l = li(u, this.logger);
|
1280
1280
|
if (G(l))
|
1281
1281
|
return;
|
1282
1282
|
const c = i ? `${i} - ` : "", d = `${s}${R}${c}`, h = vl(l, d), g = En(l).includes(Rt);
|
@@ -1305,7 +1305,7 @@ class Hl {
|
|
1305
1305
|
}
|
1306
1306
|
}
|
1307
1307
|
}
|
1308
|
-
const
|
1308
|
+
const ci = new Hl(ui, ye);
|
1309
1309
|
class Gl {
|
1310
1310
|
constructor(e, n = {}) {
|
1311
1311
|
N(this, "plugins", []);
|
@@ -1406,16 +1406,16 @@ class Gl {
|
|
1406
1406
|
}
|
1407
1407
|
}
|
1408
1408
|
const jl = new Gl(ye, { throws: !0 }), ql = (t) => t.config.connectionMode !== "cloud" || t.config.useNativeSDKToSend === !0 || // this is the older flag for hybrid mode destinations
|
1409
|
-
t.config.useNativeSDK === !0, zl = (t) => t.config.connectionMode === "hybrid" || t.config.useNativeSDKToSend === !0, es = (t) => t.filter(ql),
|
1409
|
+
t.config.useNativeSDK === !0, zl = (t) => t.config.connectionMode === "hybrid" || t.config.useNativeSDKToSend === !0, es = (t) => t.filter(ql), di = ["BeaconQueue", "CustomConsentManager", "DeviceModeDestinations", "DeviceModeTransformation", "ExternalAnonymousId", "GoogleLinker", "IubendaConsentManager", "KetchConsentManager", "NativeDestinationQueue", "OneTrustConsentManager", "StorageEncryption", "StorageEncryptionLegacy", "StorageMigrator", "XhrQueue"], Kl = ["Bugsnag", "ErrorReporting"], Yl = {
|
1410
1410
|
rudderAnalyticsRemotePlugins: { url: () => Promise.resolve(window.RudderStackGlobals && window.RudderStackGlobals.app && window.RudderStackGlobals.app.pluginsCDNPath ? `${window.RudderStackGlobals.app.pluginsCDNPath}/rsa-plugins.js` : "https://cdn.rudderlabs.com/v3/modern/plugins//rsa-plugins.js"), format: "esm", from: "vite" }
|
1411
1411
|
};
|
1412
|
-
function
|
1412
|
+
function fi(t, e) {
|
1413
1413
|
const n = Object.assign(t, e);
|
1414
1414
|
for (const s of Object.keys(n))
|
1415
|
-
typeof n[s] == "object" && typeof e[s] == "object" && (n[s] =
|
1415
|
+
typeof n[s] == "object" && typeof e[s] == "object" && (n[s] = fi(n[s], e[s]));
|
1416
1416
|
return n;
|
1417
1417
|
}
|
1418
|
-
const Wl = (t) =>
|
1418
|
+
const Wl = (t) => fi({}, (globalThis.__federation_shared__ || {}).default || {});
|
1419
1419
|
async function Ql(t) {
|
1420
1420
|
const e = Yl[t];
|
1421
1421
|
if (e.inited)
|
@@ -1483,12 +1483,12 @@ const Xl = (t) => {
|
|
1483
1483
|
}, zt = (t) => {
|
1484
1484
|
const e = {};
|
1485
1485
|
return t.forEach((n) => {
|
1486
|
-
if (
|
1486
|
+
if (di.includes(n)) {
|
1487
1487
|
const s = Xl(n);
|
1488
1488
|
s && (e[n] = s);
|
1489
1489
|
}
|
1490
1490
|
}), e;
|
1491
|
-
},
|
1491
|
+
}, hi = () => ({}), Jl = () => ({}), Zl = (t) => (zt == null ? void 0 : zt(t)) || {}, Kt = { ...hi(), ...Jl() }, eu = (t) => ({ ...Zl(t) });
|
1492
1492
|
class tu {
|
1493
1493
|
constructor(e, n, s) {
|
1494
1494
|
this.engine = e, this.errorHandler = n, this.logger = s, this.onError = this.onError.bind(this);
|
@@ -1525,7 +1525,7 @@ class tu {
|
|
1525
1525
|
i.activePluginName ? (r) => !(r !== i.activePluginName && i.supportedPlugins.includes(r)) : (r) => C(r)
|
1526
1526
|
// pass through
|
1527
1527
|
), this.addMissingPlugins(i, s, e)) : e = e.filter(i.basePlugins !== void 0 ? (r) => !(i.basePlugins.includes(r) || i.supportedPlugins.includes(r)) : (r) => !i.supportedPlugins.includes(r));
|
1528
|
-
}), [...Object.keys(
|
1528
|
+
}), [...Object.keys(hi()), ...e];
|
1529
1529
|
}
|
1530
1530
|
addMissingPlugins(e, n, s) {
|
1531
1531
|
const i = e.shouldAddMissingPlugins || n;
|
@@ -1538,7 +1538,7 @@ class tu {
|
|
1538
1538
|
* Determine the list of plugins that should be activated
|
1539
1539
|
*/
|
1540
1540
|
setActivePlugins() {
|
1541
|
-
const e = this.getPluginsToLoadBasedOnConfig(), n = [...Object.keys(Kt), ...
|
1541
|
+
const e = this.getPluginsToLoadBasedOnConfig(), n = [...Object.keys(Kt), ...di], s = [], i = [];
|
1542
1542
|
e.forEach((r) => {
|
1543
1543
|
n.includes(r) ? s.push(r) : i.push(r);
|
1544
1544
|
}), i.length > 0 && this.logger.warn(Ba(gt, i)), j(() => {
|
@@ -1615,7 +1615,7 @@ class tu {
|
|
1615
1615
|
this.errorHandler.onError({ error: e, context: gt, customMessage: n, groupingHash: s });
|
1616
1616
|
}
|
1617
1617
|
}
|
1618
|
-
const W = "cookieStorage", X = "localStorage", ee = "sessionStorage", ce = "memoryStorage", we = "none", nu = "rl_user_id", su = "rl_trait", iu = "rl_anonymous_id", ru = "rl_group_id", ou = "rl_group_trait", au = "rl_page_init_referrer", lu = "rl_page_init_referring_domain", uu = "rl_session", cu = "rl_auth_token", Ve = { userId: nu, userTraits: su, anonymousId: iu, groupId: ru, groupTraits: ou, initialReferrer: au, initialReferringDomain: lu, sessionInfo: uu, authToken: cu }, du = "test_rudder_cookie", fu = "test_rudder_ls", hu = "test_rudder_ss", gu = "__tld__",
|
1618
|
+
const W = "cookieStorage", X = "localStorage", ee = "sessionStorage", ce = "memoryStorage", we = "none", nu = "rl_user_id", su = "rl_trait", iu = "rl_anonymous_id", ru = "rl_group_id", ou = "rl_group_trait", au = "rl_page_init_referrer", lu = "rl_page_init_referring_domain", uu = "rl_session", cu = "rl_auth_token", Ve = { userId: nu, userTraits: su, anonymousId: iu, groupId: ru, groupTraits: ou, initialReferrer: au, initialReferringDomain: lu, sessionInfo: uu, authToken: cu }, du = "test_rudder_cookie", fu = "test_rudder_ls", hu = "test_rudder_ss", gu = "__tld__", gi = "clientDataInCookie", mi = "clientDataInLocalStorage", mu = "clientDataInMemory", pi = "clientDataInSessionStorage", vi = ["userId", "userTraits", "anonymousId", "groupId", "groupTraits", "initialReferrer", "initialReferringDomain", "sessionInfo", "authToken"], Fe = { [W]: gi, [X]: mi, [ce]: mu, [ee]: pi }, ts = (t, e) => {
|
1619
1619
|
try {
|
1620
1620
|
return encodeURIComponent(t);
|
1621
1621
|
} catch (n) {
|
@@ -1832,7 +1832,7 @@ function Du() {
|
|
1832
1832
|
}(Dt)), Dt.exports;
|
1833
1833
|
}
|
1834
1834
|
var Cu = Du();
|
1835
|
-
const Ae = /* @__PURE__ */
|
1835
|
+
const Ae = /* @__PURE__ */ oi(Cu), _u = (t) => {
|
1836
1836
|
const e = new URL(o.lifecycle.sourceConfigUrl.value), n = `${e.origin}${e.pathname}?view=ad`;
|
1837
1837
|
t.getAsyncData({ url: n, options: {
|
1838
1838
|
// We actually don't need the response from the request, so we are using HEAD
|
@@ -1896,7 +1896,7 @@ const Ae = /* @__PURE__ */ ai(Cu), _u = (t) => {
|
|
1896
1896
|
}, rs = () => {
|
1897
1897
|
let t = { density: 0, width: 0, height: 0, innerWidth: 0, innerHeight: 0 };
|
1898
1898
|
return t = { width: globalThis.screen.width, height: globalThis.screen.height, density: globalThis.devicePixelRatio, innerWidth: globalThis.innerWidth, innerHeight: globalThis.innerHeight }, t;
|
1899
|
-
},
|
1899
|
+
}, yi = (t) => {
|
1900
1900
|
const e = ["QuotaExceededError", "NS_ERROR_DOM_QUOTA_REACHED"], n = [22, 1014], s = e.includes(t.name) || n.includes(t.code);
|
1901
1901
|
return t instanceof DOMException && s;
|
1902
1902
|
}, Ge = (t = X, e, n) => {
|
@@ -1923,7 +1923,7 @@ const Ae = /* @__PURE__ */ ai(Cu), _u = (t) => {
|
|
1923
1923
|
return s.removeItem(i), !0;
|
1924
1924
|
u = !1;
|
1925
1925
|
} catch (c) {
|
1926
|
-
u = !1, l = c,
|
1926
|
+
u = !1, l = c, yi(c) && (a = "full");
|
1927
1927
|
}
|
1928
1928
|
return u || n == null || n.warn(`${r}${a}.`, l), !1;
|
1929
1929
|
};
|
@@ -2095,7 +2095,7 @@ class qu {
|
|
2095
2095
|
try {
|
2096
2096
|
this.engine.setItem(s, this.encrypt(de(n, !1, [], this.logger)));
|
2097
2097
|
} catch (i) {
|
2098
|
-
if (
|
2098
|
+
if (yi(i))
|
2099
2099
|
this.logger.warn(Aa(`Store ${this.id}`)), this.swapQueueStoreToInMemoryEngine(), this.set(e, n);
|
2100
2100
|
else {
|
2101
2101
|
const r = ca(e);
|
@@ -2205,7 +2205,7 @@ class Ku {
|
|
2205
2205
|
const s = o.consents.postConsent.value.storage;
|
2206
2206
|
(C(s == null ? void 0 : s.type) || C(s == null ? void 0 : s.entries)) && (e = s == null ? void 0 : s.type, n = s == null ? void 0 : s.entries);
|
2207
2207
|
let i = !0, r = {};
|
2208
|
-
|
2208
|
+
vi.forEach((u) => {
|
2209
2209
|
var f;
|
2210
2210
|
const l = u, c = u, d = (f = n == null ? void 0 : n[l]) == null ? void 0 : f.type, y = zu(o, u) ?? d ?? e ?? on, g = this.getResolvedStorageTypeForEntry(y, u);
|
2211
2211
|
g !== we && (i = !1), r = { ...r, [u]: { type: g, key: Ve[c] } };
|
@@ -2247,18 +2247,18 @@ class Ku {
|
|
2247
2247
|
return this.stores[e];
|
2248
2248
|
}
|
2249
2249
|
}
|
2250
|
-
const Yu = (t) => w(t) && w(t.source) && !le(t.source.id) && w(t.source.config) && Array.isArray(t.source.destinations), Wu = (t) => typeof t == "string" &&
|
2250
|
+
const Yu = (t) => w(t) && w(t.source) && !le(t.source.id) && w(t.source.config) && Array.isArray(t.source.destinations), Wu = (t) => typeof t == "string" && Zs.includes(t), bi = (t) => {
|
2251
2251
|
const e = new URL(t), { host: n, protocol: s } = e, i = n.split(".");
|
2252
2252
|
let r;
|
2253
2253
|
return i.length > 2 ? r = `${i[i.length - 2]}.${i[i.length - 1]}` : r = n, { topDomain: r, protocol: s };
|
2254
2254
|
}, Qu = (t) => {
|
2255
|
-
const { topDomain: e, protocol: n } =
|
2255
|
+
const { topDomain: e, protocol: n } = bi(t);
|
2256
2256
|
return `${n}//${e}`;
|
2257
2257
|
}, Xu = (t, e) => {
|
2258
2258
|
const n = e ? window.location.origin : Qu(window.location.href), s = t.startsWith("/") ? t.substring(1) : t;
|
2259
2259
|
return `${n}/${s}`;
|
2260
2260
|
}, Ju = (t) => {
|
2261
|
-
const { topDomain: e } =
|
2261
|
+
const { topDomain: e } = bi(window.location.href);
|
2262
2262
|
return e === t;
|
2263
2263
|
}, ze = (t) => t != null && t.endsWith("/") ? ze(t.substring(0, t.length - 1)) : t, cn = (t) => {
|
2264
2264
|
try {
|
@@ -2266,7 +2266,7 @@ const Yu = (t) => w(t) && w(t.source) && !le(t.source.id) && w(t.source.config)
|
|
2266
2266
|
} catch {
|
2267
2267
|
return null;
|
2268
2268
|
}
|
2269
|
-
},
|
2269
|
+
}, Ei = (t) => cn(t) ?? "", Zu = (t) => {
|
2270
2270
|
const e = {};
|
2271
2271
|
try {
|
2272
2272
|
const n = new URL(t), s = "utm_";
|
@@ -2315,7 +2315,7 @@ const Yu = (t) => w(t) && w(t.source) && !le(t.source.id) && w(t.source.config)
|
|
2315
2315
|
let { provider: n } = t;
|
2316
2316
|
const s = n ? an[n] : void 0;
|
2317
2317
|
return n && !s && (e.error(Wo(te, n, an)), n = void 0), { provider: n, consentManagerPluginName: s };
|
2318
|
-
},
|
2318
|
+
}, Si = (t, e) => {
|
2319
2319
|
let n, s = [], i = [], r = !1, a, u = (t == null ? void 0 : t.enabled) === !0;
|
2320
2320
|
Te(t) && u && ({ provider: a, consentManagerPluginName: n } = oc(t, e), os(t.allowedConsentIds) && (s = t.allowedConsentIds, r = !0), os(t.deniedConsentIds) && (i = t.deniedConsentIds, r = !0));
|
2321
2321
|
const l = { allowedConsentIds: s, deniedConsentIds: i };
|
@@ -2362,7 +2362,7 @@ const Yu = (t) => w(t) && w(t.source) && !le(t.source.id) && w(t.source.config)
|
|
2362
2362
|
});
|
2363
2363
|
}, dc = (t) => {
|
2364
2364
|
var h, y, g, f;
|
2365
|
-
const { provider: e, consentManagerPluginName: n, initialized: s, enabled: i, consentsData: r } =
|
2365
|
+
const { provider: e, consentManagerPluginName: n, initialized: s, enabled: i, consentsData: r } = Si(o.loadOptions.value.consentManagement, t), a = o.loadOptions.value.preConsent;
|
2366
2366
|
let u = ((h = a == null ? void 0 : a.storage) == null ? void 0 : h.strategy) ?? Yt;
|
2367
2367
|
const l = ["none", "session", "anonymousId"];
|
2368
2368
|
C(u) && !l.includes(u) && (u = Yt, t.warn(Na(te, (y = a == null ? void 0 : a.storage) == null ? void 0 : y.strategy, Yt)));
|
@@ -2394,8 +2394,8 @@ const Yu = (t) => w(t) && w(t.source) && !le(t.source.id) && w(t.source.config)
|
|
2394
2394
|
});
|
2395
2395
|
}
|
2396
2396
|
}, gc = (t, e, n, s, i) => {
|
2397
|
-
const r = new URLSearchParams({ p:
|
2398
|
-
let a =
|
2397
|
+
const r = new URLSearchParams({ p: Hs, v: lt, build: ct, writeKey: e, lockIntegrationsVersion: n.toString(), lockPluginsVersion: s.toString() });
|
2398
|
+
let a = ri, u = r, l = "/sourceConfig/", c = "";
|
2399
2399
|
if (Ke(t)) {
|
2400
2400
|
const d = new URL(t);
|
2401
2401
|
ze(d.pathname).endsWith("/sourceConfig") || (d.pathname = `${ze(d.pathname)}/sourceConfig/`), d.pathname = tc(d.pathname), r.forEach((h, y) => {
|
@@ -2404,7 +2404,7 @@ const Yu = (t) => w(t) && w(t.source) && !le(t.source.id) && w(t.source.config)
|
|
2404
2404
|
} else
|
2405
2405
|
i.warn(_a(te, t));
|
2406
2406
|
return `${a}${l}?${u}${c}`;
|
2407
|
-
}, mc = (t) => t.map((e) => ({ id: e.id, displayName: e.destinationDefinition.displayName, enabled: e.enabled, config: e.config, shouldApplyDeviceModeTransformation: e.shouldApplyDeviceModeTransformation ?? !1, propagateEventsUntransformedOnError: e.propagateEventsUntransformedOnError ?? !1, userFriendlyId: `${e.destinationDefinition.displayName.replaceAll(" ", "-")}___${e.id}` })),
|
2407
|
+
}, mc = (t) => t.map((e) => ({ id: e.id, displayName: e.destinationDefinition.displayName, enabled: e.enabled, config: e.config, shouldApplyDeviceModeTransformation: e.shouldApplyDeviceModeTransformation ?? !1, propagateEventsUntransformedOnError: e.propagateEventsUntransformedOnError ?? !1, userFriendlyId: `${e.destinationDefinition.displayName.replaceAll(" ", "-")}___${e.id}` })), ki = (t, e, n, s, i, r, a) => {
|
2408
2408
|
let u;
|
2409
2409
|
if (r) {
|
2410
2410
|
if (!Ke(r))
|
@@ -2415,7 +2415,7 @@ const Yu = (t) => w(t) && w(t.source) && !le(t.source.id) && w(t.source.config)
|
|
2415
2415
|
l && (u = l.split("/").slice(0, -1).concat(e).join("/"));
|
2416
2416
|
}
|
2417
2417
|
return i && (u = u.replace(new RegExp(`/${Tn}/${ct}/${e}$`), `/${s}/${ct}/${e}`)), u;
|
2418
|
-
}, pc = (t, e, n, s) =>
|
2418
|
+
}, pc = (t, e, n, s) => ki("integrations", Rn, si, t, e, n, s), vc = (t, e, n, s) => ki("plugins", ni, ii, t, e, n, s);
|
2419
2419
|
class yc {
|
2420
2420
|
constructor(e, n, s) {
|
2421
2421
|
this.errorHandler = n, this.logger = s, this.httpClient = e, this.onError = this.onError.bind(this), this.processConfig = this.processConfig.bind(this);
|
@@ -2497,7 +2497,7 @@ class yc {
|
|
2497
2497
|
const bc = () => {
|
2498
2498
|
const t = /([A-Z]+[+-]\d+)/.exec((/* @__PURE__ */ new Date()).toString());
|
2499
2499
|
return t != null && t[1] ? t[1] : "NA";
|
2500
|
-
},
|
2500
|
+
}, Ri = () => (document == null ? void 0 : document.referrer) || "$direct", Ec = () => {
|
2501
2501
|
const t = document.getElementsByTagName("link");
|
2502
2502
|
let e = "";
|
2503
2503
|
for (let n = 0; t[n]; n += 1) {
|
@@ -2518,7 +2518,7 @@ const bc = () => {
|
|
2518
2518
|
n && (t = `${t} Brave/${n[2]}`);
|
2519
2519
|
}
|
2520
2520
|
return t;
|
2521
|
-
}, kc = () => G(globalThis.navigator) ? null : globalThis.navigator.language ?? globalThis.navigator.browserLanguage,
|
2521
|
+
}, kc = () => G(globalThis.navigator) ? null : globalThis.navigator.language ?? globalThis.navigator.browserLanguage, Ti = () => {
|
2522
2522
|
const t = Ec();
|
2523
2523
|
let e = globalThis.location.pathname;
|
2524
2524
|
const { href: n } = globalThis.location;
|
@@ -2530,12 +2530,12 @@ const bc = () => {
|
|
2530
2530
|
l.search === "" ? s = t + i : s = t, e = l.pathname;
|
2531
2531
|
} catch {
|
2532
2532
|
}
|
2533
|
-
const r = ec(s), { title: a } = document, u =
|
2534
|
-
return { path: e, referrer: u, referring_domain:
|
2533
|
+
const r = ec(s), { title: a } = document, u = Ri();
|
2534
|
+
return { path: e, referrer: u, referring_domain: Ei(u), search: i, title: a, url: r, tab_url: n };
|
2535
2535
|
}, Rc = `https://polyfill-fastly.io/v3/polyfill.min.js?version=3.111.0&features=${Object.keys(un).join("%2C")}`, Tc = 10 * 1e3, as = "rudderstackPolyfill";
|
2536
2536
|
class Ic {
|
2537
2537
|
constructor(e, n, s) {
|
2538
|
-
this.httpClient = e, this.errorHandler = n, this.logger = s, this.externalSrcLoader = new
|
2538
|
+
this.httpClient = e, this.errorHandler = n, this.logger = s, this.externalSrcLoader = new qs(this.logger), this.onError = this.onError.bind(this), this.onReady = this.onReady.bind(this);
|
2539
2539
|
}
|
2540
2540
|
init() {
|
2541
2541
|
this.prepareBrowserCapabilities(), this.attachWindowListeners();
|
@@ -2601,10 +2601,10 @@ class Ic {
|
|
2601
2601
|
this.errorHandler.onError({ error: e, context: nn, groupingHash: n });
|
2602
2602
|
}
|
2603
2603
|
}
|
2604
|
-
const Oc = "web", Ac = ["integrations", "anonymousId", "originalTimestamp"], ls = ["library", "consentManagement", "userAgent", "ua-ch", "screen"], Qt = ["id", "anonymous_id", "user_id", "sent_at", "timestamp", "received_at", "original_timestamp", "event", "event_text", "channel", "context_ip", "context_request_ip", "context_passed_ip", "group_id", "previous_id"],
|
2604
|
+
const Oc = "web", Ac = ["integrations", "anonymousId", "originalTimestamp"], ls = ["library", "consentManagement", "userAgent", "ua-ch", "screen"], Qt = ["id", "anonymous_id", "user_id", "sent_at", "timestamp", "received_at", "original_timestamp", "event", "event_text", "channel", "context_ip", "context_request_ip", "context_passed_ip", "group_id", "previous_id"], Ii = (t) => typeof t == "number" && !Number.isNaN(t), Dc = (t, e) => e.toString().length >= t, $t = (t) => Ii(t) && t >= 0 && Number.isInteger(t), us = 10, Oi = (t) => {
|
2605
2605
|
const { cutOff: e } = t, n = Date.now();
|
2606
2606
|
return !!(e != null && e.enabled && e.expiresAt && n > e.expiresAt);
|
2607
|
-
}, cs = (t) => !t.expiresAt || Date.now() > t.expiresAt ||
|
2607
|
+
}, cs = (t) => !t.expiresAt || Date.now() > t.expiresAt || Oi(t), Cc = () => Date.now(), _c = (t, e) => !t || !$t(t) || !Dc(us, t) ? (e.warn(Oa(De, t, us)), !1) : !0, Pc = (t) => {
|
2608
2608
|
if (t != null && t.enabled)
|
2609
2609
|
return t.expiresAt ?? ($t(t.duration) ? Date.now() + t.duration : void 0);
|
2610
2610
|
}, Nc = (t) => {
|
@@ -2619,18 +2619,18 @@ const Oc = "web", Ac = ["integrations", "anonymousId", "originalTimestamp"], ls
|
|
2619
2619
|
...n && { cutOff: n }
|
2620
2620
|
};
|
2621
2621
|
}, Lc = (t, e) => ({ id: _c(t, e) ? t : Cc(), sessionStart: void 0, manualTrack: !0 }), st = (t) => t === W || t === X || t === ee || t === ce, dn = () => Bt(), wc = (t) => {
|
2622
|
-
const e =
|
2622
|
+
const e = Ti(), n = {};
|
2623
2623
|
return Object.keys(e).forEach((s) => {
|
2624
2624
|
n[s] = (t == null ? void 0 : t[s]) || e[s];
|
2625
2625
|
}), n.initial_referrer = (t == null ? void 0 : t.initial_referrer) || o.session.initialReferrer.value, n.initial_referring_domain = (t == null ? void 0 : t.initial_referring_domain) || o.session.initialReferringDomain.value, n;
|
2626
2626
|
}, Mc = (t, e) => {
|
2627
|
-
const n = (e == null ? void 0 : e.page) || {}, s = t, i =
|
2627
|
+
const n = (e == null ? void 0 : e.page) || {}, s = t, i = Ti();
|
2628
2628
|
return Object.keys(i).forEach((r) => {
|
2629
2629
|
G(s[r]) && (s[r] = n[r] || i[r]);
|
2630
2630
|
}), G(s.initial_referrer) && (s.initial_referrer = n.initial_referrer || o.session.initialReferrer.value), G(s.initial_referring_domain) && (s.initial_referring_domain = n.initial_referring_domain || o.session.initialReferringDomain.value), s;
|
2631
2631
|
}, Xt = (t, e, n) => {
|
2632
2632
|
w(t) && Object.keys(t).forEach((s) => {
|
2633
|
-
(Qt.includes(s) || Qt.includes(s.toLowerCase())) && n.warn(ya(
|
2633
|
+
(Qt.includes(s) || Qt.includes(s.toLowerCase())) && n.warn(ya(Bs, s, e, Qt));
|
2634
2634
|
});
|
2635
2635
|
}, $c = (t, e) => {
|
2636
2636
|
const { properties: n, traits: s, context: i } = t, { traits: r } = i;
|
@@ -2649,13 +2649,13 @@ const Oc = "web", Ac = ["integrations", "anonymousId", "originalTimestamp"], ls
|
|
2649
2649
|
ls.includes(a) || (r[a] = e[i][a]);
|
2650
2650
|
}), s = x(s, { ...r });
|
2651
2651
|
} else
|
2652
|
-
n.warn(ba(
|
2652
|
+
n.warn(ba(Bs));
|
2653
2653
|
}), s;
|
2654
2654
|
}, Vc = (t, e, n) => {
|
2655
2655
|
w(e) && (Uc(t, e), t.context = Bc(t.context, e, n));
|
2656
2656
|
}, Fc = (t) => {
|
2657
2657
|
let e;
|
2658
|
-
return o.loadOptions.value.useGlobalIntegrationsConfigInEvents ? e = o.consents.postConsent.value.integrations ?? o.nativeDestinations.loadOnlyIntegrations.value : t ? e = t : e =
|
2658
|
+
return o.loadOptions.value.useGlobalIntegrationsConfigInEvents ? e = o.consents.postConsent.value.integrations ?? o.nativeDestinations.loadOnlyIntegrations.value : t ? e = t : e = ti, I(e);
|
2659
2659
|
}, et = (t, e, n, s) => {
|
2660
2660
|
var a, u, l;
|
2661
2661
|
const i = { channel: Oc, context: {
|
@@ -2832,8 +2832,8 @@ class Gc {
|
|
2832
2832
|
if (e && n)
|
2833
2833
|
this.setInitialReferrer(e), this.setInitialReferringDomain(n);
|
2834
2834
|
else {
|
2835
|
-
const s = e ||
|
2836
|
-
this.setInitialReferrer(s), this.setInitialReferringDomain(
|
2835
|
+
const s = e || Ri();
|
2836
|
+
this.setInitialReferrer(s), this.setInitialReferringDomain(Ei(s));
|
2837
2837
|
}
|
2838
2838
|
}
|
2839
2839
|
isPersistenceEnabledForStorageEntry(e) {
|
@@ -2859,7 +2859,7 @@ class Gc {
|
|
2859
2859
|
if (!o.storage.migrate.value)
|
2860
2860
|
return;
|
2861
2861
|
let s = e ?? [];
|
2862
|
-
s.length === 0 && [mi, pi
|
2862
|
+
s.length === 0 && [gi, mi, pi].forEach((a) => {
|
2863
2863
|
var l;
|
2864
2864
|
const u = (l = this.storeManager) == null ? void 0 : l.getStore(a);
|
2865
2865
|
u && s.push(u);
|
@@ -2961,7 +2961,7 @@ class Gc {
|
|
2961
2961
|
* Function to update storage whenever state value changes
|
2962
2962
|
*/
|
2963
2963
|
registerEffects() {
|
2964
|
-
|
2964
|
+
vi.forEach((e) => {
|
2965
2965
|
ve(() => {
|
2966
2966
|
this.syncValueToStorage(e, o.session[e].value);
|
2967
2967
|
});
|
@@ -3150,7 +3150,7 @@ class Gc {
|
|
3150
3150
|
const s = Date.now(), i = e.timeout;
|
3151
3151
|
n.expiresAt = s + i;
|
3152
3152
|
}
|
3153
|
-
if (
|
3153
|
+
if (Oi(n) && (n.cutOff.expiresAt = void 0), n.cutOff) {
|
3154
3154
|
const s = Pc(n.cutOff);
|
3155
3155
|
n.cutOff.expiresAt = s;
|
3156
3156
|
}
|
@@ -3187,7 +3187,7 @@ class Gc {
|
|
3187
3187
|
const jc = ["BeaconQueue", "CustomConsentManager", "DeviceModeDestinations", "DeviceModeTransformation", "ExternalAnonymousId", "GoogleLinker", "IubendaConsentManager", "KetchConsentManager", "NativeDestinationQueue", "OneTrustConsentManager", "StorageEncryption", "StorageEncryptionLegacy", "StorageMigrator", "XhrQueue"], qc = (t, e) => {
|
3188
3188
|
var a;
|
3189
3189
|
const n = I(e);
|
3190
|
-
return U(n.setCookieDomain) || (n.setCookieDomain = void 0), ["Strict", "Lax", "None"].includes(n.sameSiteCookie) || (n.sameSiteCookie = void 0), n.secureCookie = ue(n.secureCookie, t.secureCookie), n.sameDomainCookiesOnly = ue(n.sameDomainCookiesOnly, t.sameDomainCookiesOnly), ["none", "default", "full"].includes(n.uaChTrackLevel) || (n.uaChTrackLevel = void 0), n.integrations = he(n.integrations), Array.isArray(n.plugins) || (n.plugins = jc), n.useGlobalIntegrationsConfigInEvents = ue(n.useGlobalIntegrationsConfigInEvents, t.useGlobalIntegrationsConfigInEvents), n.bufferDataPlaneEventsUntilReady = ue(n.bufferDataPlaneEventsUntilReady, t.bufferDataPlaneEventsUntilReady), n.sendAdblockPage = ue(n.sendAdblockPage, t.sendAdblockPage), n.useServerSideCookies = ue(n.useServerSideCookies, t.useServerSideCookies), U(n.dataServiceEndpoint) || (n.dataServiceEndpoint = void 0), n.sendAdblockPageOptions = he(n.sendAdblockPageOptions), n.loadIntegration = ue(n.loadIntegration, t.loadIntegration), Te(n.storage) ? (n.storage.migrate = ue(n.storage.migrate, (a = t.storage) == null ? void 0 : a.migrate), n.storage.cookie = he(n.storage.cookie), n.storage.encryption = he(n.storage.encryption), n.storage = _t(n.storage)) : n.storage = void 0, n.destinationsQueueOptions = he(n.destinationsQueueOptions), n.queueOptions = he(n.queueOptions), n.lockIntegrationsVersion = ue(n.lockIntegrationsVersion, t.lockIntegrationsVersion), n.lockPluginsVersion = ue(n.lockPluginsVersion, t.lockPluginsVersion),
|
3190
|
+
return U(n.setCookieDomain) || (n.setCookieDomain = void 0), ["Strict", "Lax", "None"].includes(n.sameSiteCookie) || (n.sameSiteCookie = void 0), n.secureCookie = ue(n.secureCookie, t.secureCookie), n.sameDomainCookiesOnly = ue(n.sameDomainCookiesOnly, t.sameDomainCookiesOnly), ["none", "default", "full"].includes(n.uaChTrackLevel) || (n.uaChTrackLevel = void 0), n.integrations = he(n.integrations), Array.isArray(n.plugins) || (n.plugins = jc), n.useGlobalIntegrationsConfigInEvents = ue(n.useGlobalIntegrationsConfigInEvents, t.useGlobalIntegrationsConfigInEvents), n.bufferDataPlaneEventsUntilReady = ue(n.bufferDataPlaneEventsUntilReady, t.bufferDataPlaneEventsUntilReady), n.sendAdblockPage = ue(n.sendAdblockPage, t.sendAdblockPage), n.useServerSideCookies = ue(n.useServerSideCookies, t.useServerSideCookies), U(n.dataServiceEndpoint) || (n.dataServiceEndpoint = void 0), n.sendAdblockPageOptions = he(n.sendAdblockPageOptions), n.loadIntegration = ue(n.loadIntegration, t.loadIntegration), Te(n.storage) ? (n.storage.migrate = ue(n.storage.migrate, (a = t.storage) == null ? void 0 : a.migrate), n.storage.cookie = he(n.storage.cookie), n.storage.encryption = he(n.storage.encryption), n.storage = _t(n.storage)) : n.storage = void 0, n.destinationsQueueOptions = he(n.destinationsQueueOptions), n.queueOptions = he(n.queueOptions), n.lockIntegrationsVersion = ue(n.lockIntegrationsVersion, t.lockIntegrationsVersion), n.lockPluginsVersion = ue(n.lockPluginsVersion, t.lockPluginsVersion), Ii(n.dataPlaneEventsBufferTimeout) || (n.dataPlaneEventsBufferTimeout = void 0), n.beaconQueueOptions = he(n.beaconQueueOptions), n.preConsent = he(n.preConsent), n.sourceConfigurationOverride = he(n.sourceConfigurationOverride), x(t, _t(n));
|
3191
3191
|
}, ds = "dataplaneEventsQueue", fs = "destinationsEventsQueue", zc = "transformEvent", Kc = (t, e) => Object.keys(t).filter((n) => t[n] !== !0 || !e[n]).reduce((n, s) => {
|
3192
3192
|
const i = I(n);
|
3193
3193
|
return i[s] = t[s], i;
|
@@ -3206,7 +3206,7 @@ const jc = ["BeaconQueue", "CustomConsentManager", "DeviceModeDestinations", "De
|
|
3206
3206
|
s.error(Ca(n), i);
|
3207
3207
|
}
|
3208
3208
|
else
|
3209
|
-
s.error(
|
3209
|
+
s.error(ei(n));
|
3210
3210
|
};
|
3211
3211
|
class Qc {
|
3212
3212
|
/**
|
@@ -3265,7 +3265,7 @@ class Zc {
|
|
3265
3265
|
* Initialize services and components or use default ones if singletons
|
3266
3266
|
*/
|
3267
3267
|
constructor() {
|
3268
|
-
this.preloadBuffer = new Bo(), this.initialized = !1, this.errorHandler =
|
3268
|
+
this.preloadBuffer = new Bo(), this.initialized = !1, this.errorHandler = ci, this.logger = ye, this.externalSrcLoader = new qs(this.logger), this.httpClient = ui, this.httpClient.init(this.errorHandler), this.capabilitiesManager = new Ic(this.httpClient, this.errorHandler, this.logger);
|
3269
3269
|
}
|
3270
3270
|
/**
|
3271
3271
|
* Start application lifecycle if not already started
|
@@ -3282,7 +3282,7 @@ class Zc {
|
|
3282
3282
|
}
|
3283
3283
|
j(() => {
|
3284
3284
|
o.lifecycle.writeKey.value = I(e), o.lifecycle.dataPlaneUrl.value = I(n), o.loadOptions.value = qc(o.loadOptions.value, s), o.lifecycle.status.value = "mounted";
|
3285
|
-
}), this.logger.setMinLogLevel(o.loadOptions.value.logLevel ??
|
3285
|
+
}), this.logger.setMinLogLevel(o.loadOptions.value.logLevel ?? Js), ut("state", o, e), this.startLifecycle();
|
3286
3286
|
}
|
3287
3287
|
}
|
3288
3288
|
// Start lifecycle methods
|
@@ -3450,7 +3450,7 @@ class Zc {
|
|
3450
3450
|
return;
|
3451
3451
|
}
|
3452
3452
|
if (this.errorHandler.leaveBreadcrumb(`New ${s} invocation`), !S(e)) {
|
3453
|
-
this.logger.error(
|
3453
|
+
this.logger.error(ei(Gt));
|
3454
3454
|
return;
|
3455
3455
|
}
|
3456
3456
|
o.lifecycle.status.value === "readyExecuted" ? Ct(e, [], Gt, this.logger) : o.eventBuffer.readyCallbacksArray.value = [...o.eventBuffer.readyCallbacksArray.value, e];
|
@@ -3576,7 +3576,7 @@ class Zc {
|
|
3576
3576
|
}
|
3577
3577
|
this.errorHandler.leaveBreadcrumb("New consent invocation"), j(() => {
|
3578
3578
|
o.consents.preConsent.value = { ...o.consents.preConsent.value, enabled: !1 }, o.consents.postConsent.value = rc(e);
|
3579
|
-
const { initialized: l, consentsData: c } =
|
3579
|
+
const { initialized: l, consentsData: c } = Si(o.consents.postConsent.value.consentManagement, this.logger);
|
3580
3580
|
o.consents.initialized.value = l, o.consents.data.value = c;
|
3581
3581
|
}), o.consents.enabled.value && !o.consents.initialized.value && ((i = this.pluginsManager) == null || i.invokeSingle("consentManager.updateConsentsInfo", o, this.storeManager, this.logger)), (r = this.storeManager) == null || r.initializeStorageState(), (a = this.userSessionManager) == null || a.syncStorageDataToState(), (u = this.eventManager) == null || u.resume(), this.loadDestinations(), this.sendTrackingEvents(n);
|
3582
3582
|
}
|
@@ -3612,7 +3612,7 @@ const _e = class _e {
|
|
3612
3612
|
}
|
3613
3613
|
}
|
3614
3614
|
static initializeGlobalResources() {
|
3615
|
-
|
3615
|
+
ci.init(), An.configure(), In.configure(), On.configure(), Mt.configure();
|
3616
3616
|
}
|
3617
3617
|
/**
|
3618
3618
|
* Set instance to use if no specific writeKey is provided in methods
|
@@ -3647,7 +3647,7 @@ const _e = class _e {
|
|
3647
3647
|
if (this.analyticsInstances[e])
|
3648
3648
|
return;
|
3649
3649
|
this.setDefaultInstanceKey(e), this.trackPageLifecycleEvents(s);
|
3650
|
-
const r =
|
3650
|
+
const r = js(rt);
|
3651
3651
|
Do(r), ut(rt, I(r)), (i = this.getAnalyticsInstance(e)) == null || i.load(e, n, A(s));
|
3652
3652
|
} catch (r) {
|
3653
3653
|
B(r);
|
@@ -3672,7 +3672,7 @@ const _e = class _e {
|
|
3672
3672
|
(e.length === 0 || e.includes(Ht.UNLOADED)) && (n === !0 ? so((i) => {
|
3673
3673
|
if (i === !1 && o.lifecycle.loaded.value) {
|
3674
3674
|
const r = Date.now(), a = r - o.autoTrack.pageLifecycle.pageLoadedTimestamp.value;
|
3675
|
-
this.track(Ht.UNLOADED, { timeOnPage: a }, { ...s, originalTimestamp:
|
3675
|
+
this.track(Ht.UNLOADED, { timeOnPage: a }, { ...s, originalTimestamp: Vs(new Date(r)) });
|
3676
3676
|
}
|
3677
3677
|
}) : this.logger.warn(Ua(Jr)));
|
3678
3678
|
}
|
@@ -3726,7 +3726,7 @@ const _e = class _e {
|
|
3726
3726
|
identify(e, n, s, i) {
|
3727
3727
|
var r;
|
3728
3728
|
try {
|
3729
|
-
(r = this.getAnalyticsInstance()) == null || r.identify(
|
3729
|
+
(r = this.getAnalyticsInstance()) == null || r.identify(Ms(A(e), A(n), A(s), A(i)));
|
3730
3730
|
} catch (a) {
|
3731
3731
|
B(a);
|
3732
3732
|
}
|
@@ -3738,7 +3738,7 @@ const _e = class _e {
|
|
3738
3738
|
alias(e, n, s, i) {
|
3739
3739
|
var r;
|
3740
3740
|
try {
|
3741
|
-
(r = this.getAnalyticsInstance()) == null || r.alias(
|
3741
|
+
(r = this.getAnalyticsInstance()) == null || r.alias($s(A(e), A(n), A(s), A(i)));
|
3742
3742
|
} catch (a) {
|
3743
3743
|
B(a);
|
3744
3744
|
}
|
@@ -3750,7 +3750,7 @@ const _e = class _e {
|
|
3750
3750
|
group(e, n, s, i) {
|
3751
3751
|
var r;
|
3752
3752
|
try {
|
3753
|
-
(r = this.getAnalyticsInstance()) == null || r.group(
|
3753
|
+
(r = this.getAnalyticsInstance()) == null || r.group(Us(A(e), A(n), A(s), A(i)));
|
3754
3754
|
} catch (a) {
|
3755
3755
|
B(a);
|
3756
3756
|
}
|
@@ -3868,13 +3868,13 @@ const ed = {
|
|
3868
3868
|
[Je.Staging]: "2R6llJi7YSuOeJToPXGlQfizt18",
|
3869
3869
|
[Je.CiCd]: "2QHmFAx84bL4Up6CDHRw0XkKJKC",
|
3870
3870
|
[Je.Local]: "2QHmFAx84bL4Up6CDHRw0XkKJKC"
|
3871
|
-
}, td = "https://revolugohxxwg.dataplane.rudderstack.com", nd = window.RevolugoElements.config.apiEnvironment, sd = ed[nd],
|
3871
|
+
}, td = "https://revolugohxxwg.dataplane.rudderstack.com", nd = window.RevolugoElements.config.apiEnvironment, sd = ed[nd], Ai = new fn();
|
3872
3872
|
try {
|
3873
|
-
|
3873
|
+
Ai.load(sd, td);
|
3874
3874
|
} catch (t) {
|
3875
3875
|
console.error(t);
|
3876
3876
|
}
|
3877
|
-
const
|
3877
|
+
const Di = {
|
3878
3878
|
adultCount: {
|
3879
3879
|
type: Number
|
3880
3880
|
},
|
@@ -3890,10 +3890,10 @@ const Ci = {
|
|
3890
3890
|
startDate: {
|
3891
3891
|
type: String
|
3892
3892
|
}
|
3893
|
-
},
|
3893
|
+
}, Ci = hn({
|
3894
3894
|
components: {
|
3895
|
-
BPhoneInput:
|
3896
|
-
BSearchLocationInput:
|
3895
|
+
BPhoneInput: ur,
|
3896
|
+
BSearchLocationInput: rr
|
3897
3897
|
},
|
3898
3898
|
data() {
|
3899
3899
|
return {
|
@@ -3941,7 +3941,7 @@ const Ci = {
|
|
3941
3941
|
var e, n;
|
3942
3942
|
this.isSubmitting = !0;
|
3943
3943
|
let t = ((e = this.config.eventMetadata) == null ? void 0 : e.name) || "";
|
3944
|
-
(n = this.config.eventMetadata) != null && n.slug && (t += ` ${this.config.eventMetadata.slug}`),
|
3944
|
+
(n = this.config.eventMetadata) != null && n.slug && (t += ` ${this.config.eventMetadata.slug}`), Ai.track(
|
3945
3945
|
"accommodation-request",
|
3946
3946
|
{
|
3947
3947
|
data: {
|
@@ -3958,7 +3958,7 @@ const Ci = {
|
|
3958
3958
|
}
|
3959
3959
|
},
|
3960
3960
|
name: "ContactForm",
|
3961
|
-
props:
|
3961
|
+
props: Di,
|
3962
3962
|
setup() {
|
3963
3963
|
const { t } = gn();
|
3964
3964
|
return {
|
@@ -4135,7 +4135,7 @@ function gs(t) {
|
|
4135
4135
|
}
|
4136
4136
|
});
|
4137
4137
|
}
|
4138
|
-
const
|
4138
|
+
const _i = Ie({
|
4139
4139
|
active: {
|
4140
4140
|
type: [String, Array],
|
4141
4141
|
default: void 0
|
@@ -4163,7 +4163,7 @@ const Pi = Ie({
|
|
4163
4163
|
}
|
4164
4164
|
}, "VDatePickerControls"), ms = Me()({
|
4165
4165
|
name: "VDatePickerControls",
|
4166
|
-
props:
|
4166
|
+
props: _i(),
|
4167
4167
|
emits: {
|
4168
4168
|
"click:year": () => !0,
|
4169
4169
|
"click:month": () => !0,
|
@@ -4206,7 +4206,7 @@ const Pi = Ie({
|
|
4206
4206
|
icon: t.modeIcon,
|
4207
4207
|
variant: "text",
|
4208
4208
|
onClick: c
|
4209
|
-
}, null), b(
|
4209
|
+
}, null), b(fr, null, null), b("div", {
|
4210
4210
|
class: "v-date-picker-controls__month"
|
4211
4211
|
}, [b(ae, {
|
4212
4212
|
"data-testid": "prev-month",
|
@@ -4227,7 +4227,7 @@ const Pi = Ie({
|
|
4227
4227
|
color: String,
|
4228
4228
|
header: String,
|
4229
4229
|
transition: String,
|
4230
|
-
onClick:
|
4230
|
+
onClick: Fi()
|
4231
4231
|
}, "VDatePickerHeader"), ps = Me()({
|
4232
4232
|
name: "VDatePickerHeader",
|
4233
4233
|
props: id(),
|
@@ -4371,7 +4371,7 @@ function od(t) {
|
|
4371
4371
|
}), h = $(() => {
|
4372
4372
|
const f = l.value.flat(), m = e.date();
|
4373
4373
|
return c(f, m);
|
4374
|
-
}), y = $(() => l.value.map((f) => f.length ?
|
4374
|
+
}), y = $(() => l.value.map((f) => f.length ? xi(e, f[0]) : null));
|
4375
4375
|
function g(f) {
|
4376
4376
|
if (t.disabled) return !0;
|
4377
4377
|
const m = e.date(f);
|
@@ -4388,7 +4388,7 @@ function od(t) {
|
|
4388
4388
|
weekNumbers: y
|
4389
4389
|
};
|
4390
4390
|
}
|
4391
|
-
const
|
4391
|
+
const Pi = Ie({
|
4392
4392
|
color: String,
|
4393
4393
|
hideWeekdays: Boolean,
|
4394
4394
|
multiple: [Boolean, Number, String],
|
@@ -4404,7 +4404,7 @@ const Ni = Ie({
|
|
4404
4404
|
...at(rd(), ["displayValue"])
|
4405
4405
|
}, "VDatePickerMonth"), vs = Me()({
|
4406
4406
|
name: "VDatePickerMonth",
|
4407
|
-
props:
|
4407
|
+
props: Pi(),
|
4408
4408
|
emits: {
|
4409
4409
|
"update:modelValue": (t) => !0,
|
4410
4410
|
"update:month": (t) => !0,
|
@@ -4520,7 +4520,7 @@ const Ni = Ie({
|
|
4520
4520
|
}
|
4521
4521
|
})]);
|
4522
4522
|
}
|
4523
|
-
}),
|
4523
|
+
}), Ni = Ie({
|
4524
4524
|
color: String,
|
4525
4525
|
height: [String, Number],
|
4526
4526
|
min: null,
|
@@ -4529,7 +4529,7 @@ const Ni = Ie({
|
|
4529
4529
|
year: Number
|
4530
4530
|
}, "VDatePickerMonths"), ys = Me()({
|
4531
4531
|
name: "VDatePickerMonths",
|
4532
|
-
props:
|
4532
|
+
props: Ni(),
|
4533
4533
|
emits: {
|
4534
4534
|
"update:modelValue": (t) => !0
|
4535
4535
|
},
|
@@ -4585,7 +4585,7 @@ const Ni = Ie({
|
|
4585
4585
|
}, c), null);
|
4586
4586
|
})])])), {};
|
4587
4587
|
}
|
4588
|
-
}),
|
4588
|
+
}), Li = Ie({
|
4589
4589
|
color: String,
|
4590
4590
|
height: [String, Number],
|
4591
4591
|
min: null,
|
@@ -4593,7 +4593,7 @@ const Ni = Ie({
|
|
4593
4593
|
modelValue: Number
|
4594
4594
|
}, "VDatePickerYears"), bs = Me()({
|
4595
4595
|
name: "VDatePickerYears",
|
4596
|
-
props:
|
4596
|
+
props: Li(),
|
4597
4597
|
emits: {
|
4598
4598
|
"update:modelValue": (t) => !0
|
4599
4599
|
},
|
@@ -4618,10 +4618,10 @@ const Ni = Ie({
|
|
4618
4618
|
Os(() => {
|
4619
4619
|
r.value = r.value ?? i.getYear(i.date());
|
4620
4620
|
});
|
4621
|
-
const u =
|
4622
|
-
return
|
4621
|
+
const u = Hi();
|
4622
|
+
return Gi(async () => {
|
4623
4623
|
var l;
|
4624
|
-
await
|
4624
|
+
await ji(), (l = u.el) == null || l.scrollIntoView({
|
4625
4625
|
block: "center"
|
4626
4626
|
});
|
4627
4627
|
}), Ye(() => b("div", {
|
@@ -4657,15 +4657,15 @@ const Ni = Ie({
|
|
4657
4657
|
}, d), null);
|
4658
4658
|
})])])), {};
|
4659
4659
|
}
|
4660
|
-
}), ad =
|
4660
|
+
}), ad = gr("v-picker-title"), wi = Ie({
|
4661
4661
|
bgColor: String,
|
4662
4662
|
landscape: Boolean,
|
4663
4663
|
title: String,
|
4664
4664
|
hideHeader: Boolean,
|
4665
|
-
...
|
4665
|
+
...pr()
|
4666
4666
|
}, "VPicker"), Es = Me()({
|
4667
4667
|
name: "VPicker",
|
4668
|
-
props:
|
4668
|
+
props: wi(),
|
4669
4669
|
setup(t, e) {
|
4670
4670
|
let {
|
4671
4671
|
slots: n
|
@@ -4673,7 +4673,7 @@ const Ni = Ie({
|
|
4673
4673
|
const {
|
4674
4674
|
backgroundColorClasses: s,
|
4675
4675
|
backgroundColorStyles: i
|
4676
|
-
} = Ps(
|
4676
|
+
} = Ps(qi(t, "color"));
|
4677
4677
|
return Ye(() => {
|
4678
4678
|
const r = Cn.filterProps(t), a = !!(t.title || n.title);
|
4679
4679
|
return b(Cn, re(r, {
|
@@ -4743,13 +4743,13 @@ const Ni = Ie({
|
|
4743
4743
|
type: String,
|
4744
4744
|
default: "$vuetify.datePicker.header"
|
4745
4745
|
},
|
4746
|
-
...
|
4747
|
-
...
|
4746
|
+
..._i(),
|
4747
|
+
...Pi({
|
4748
4748
|
weeksInMonth: "static"
|
4749
4749
|
}),
|
4750
|
+
...at(Ni(), ["modelValue"]),
|
4750
4751
|
...at(Li(), ["modelValue"]),
|
4751
|
-
...
|
4752
|
-
...Mi({
|
4752
|
+
...wi({
|
4753
4753
|
title: "$vuetify.datePicker.title"
|
4754
4754
|
}),
|
4755
4755
|
modelValue: null
|
@@ -4770,7 +4770,7 @@ const Ni = Ie({
|
|
4770
4770
|
} = e;
|
4771
4771
|
const i = dt(), {
|
4772
4772
|
t: r
|
4773
|
-
} =
|
4773
|
+
} = zi(), a = Le(t, "modelValue", void 0, (T) => yt(T), (T) => t.multiple ? T : T[0]), u = Le(t, "viewMode"), l = $(() => {
|
4774
4774
|
const T = i.date(t.min);
|
4775
4775
|
return t.min && i.isValid(T) ? T : null;
|
4776
4776
|
}), c = $(() => {
|
@@ -4871,7 +4871,7 @@ const Ni = Ie({
|
|
4871
4871
|
"onClick:prev": P,
|
4872
4872
|
"onClick:month": H,
|
4873
4873
|
"onClick:year": J
|
4874
|
-
}), null), b(
|
4874
|
+
}), null), b(hr, {
|
4875
4875
|
hideOnLeave: !0
|
4876
4876
|
}, {
|
4877
4877
|
default: () => [u.value === "months" ? b(ys, re({
|
@@ -4910,7 +4910,7 @@ const Ni = Ie({
|
|
4910
4910
|
function cd(t, e, n, s, i, r) {
|
4911
4911
|
const a = oe("BPhoneInput"), u = oe("BSearchLocationInput");
|
4912
4912
|
return M(), me("div", null, [
|
4913
|
-
b(
|
4913
|
+
b(vr, {
|
4914
4914
|
modelValue: t.isFormValid,
|
4915
4915
|
"onUpdate:modelValue": e[13] || (e[13] = (l) => t.isFormValid = l),
|
4916
4916
|
style: { gap: "8px", display: "flex", flexDirection: "column" }
|
@@ -5057,7 +5057,7 @@ function cd(t, e, n, s, i, r) {
|
|
5057
5057
|
variant: "outlined",
|
5058
5058
|
"with-details": ""
|
5059
5059
|
}, null, 8, ["modelValue"]),
|
5060
|
-
b(
|
5060
|
+
b(cr, {
|
5061
5061
|
modelValue: t.formData.specificRequest,
|
5062
5062
|
"onUpdate:modelValue": e[11] || (e[11] = (l) => t.formData.specificRequest = l),
|
5063
5063
|
density: "compact",
|
@@ -5085,9 +5085,9 @@ function cd(t, e, n, s, i, r) {
|
|
5085
5085
|
}, 8, ["modelValue"])
|
5086
5086
|
]);
|
5087
5087
|
}
|
5088
|
-
typeof gs == "function" && gs(
|
5089
|
-
const dd = /* @__PURE__ */ mn(
|
5090
|
-
...
|
5088
|
+
typeof gs == "function" && gs(Ci);
|
5089
|
+
const dd = /* @__PURE__ */ mn(Ci, [["render", cd]]), fd = {
|
5090
|
+
...Di,
|
5091
5091
|
boilerplateSkeleton: {
|
5092
5092
|
type: Boolean
|
5093
5093
|
},
|
@@ -5104,9 +5104,9 @@ const dd = /* @__PURE__ */ mn(_i, [["render", cd]]), fd = {
|
|
5104
5104
|
type: {
|
5105
5105
|
type: String
|
5106
5106
|
}
|
5107
|
-
},
|
5107
|
+
}, Mi = hn({
|
5108
5108
|
components: {
|
5109
|
-
BErrorOverlay:
|
5109
|
+
BErrorOverlay: dr,
|
5110
5110
|
ContactForm: dd,
|
5111
5111
|
HotelOfferItemLayout: _s
|
5112
5112
|
},
|
@@ -5423,22 +5423,22 @@ function gd(t, e, n, s, i, r) {
|
|
5423
5423
|
})) : Z("", !0)
|
5424
5424
|
]);
|
5425
5425
|
}
|
5426
|
-
typeof ks == "function" && ks(
|
5427
|
-
const md = /* @__PURE__ */ mn(
|
5426
|
+
typeof ks == "function" && ks(Mi);
|
5427
|
+
const md = /* @__PURE__ */ mn(Mi, [["render", gd]]), $i = hn({
|
5428
5428
|
components: {
|
5429
|
-
BHotelOffersFilterBar:
|
5430
|
-
BHotelSearchBar:
|
5431
|
-
HotelOfferItem:
|
5429
|
+
BHotelOffersFilterBar: lr,
|
5430
|
+
BHotelSearchBar: br,
|
5431
|
+
HotelOfferItem: ar,
|
5432
5432
|
HotelOfferItemLayout: _s,
|
5433
5433
|
HotelOfferListEmpty: md,
|
5434
|
-
HotelRoomOfferList:
|
5435
|
-
TermsAndConditions:
|
5434
|
+
HotelRoomOfferList: yr,
|
5435
|
+
TermsAndConditions: kr
|
5436
5436
|
},
|
5437
5437
|
computed: {
|
5438
|
-
...
|
5439
|
-
|
5440
|
-
|
5441
|
-
|
5438
|
+
...Ki(
|
5439
|
+
Xi,
|
5440
|
+
Rr,
|
5441
|
+
Qi
|
5442
5442
|
),
|
5443
5443
|
areFiltersActive: be("hotelOffers/areFiltersActive"),
|
5444
5444
|
displayFiltersMenu() {
|
@@ -5452,7 +5452,7 @@ const md = /* @__PURE__ */ mn($i, [["render", gd]]), Ui = hn({
|
|
5452
5452
|
isPollingHotelOffers: be("hotelOffers/isPolling"),
|
5453
5453
|
isTopPicksSelected() {
|
5454
5454
|
var t;
|
5455
|
-
return ((t = this.filters.sort_by) == null ? void 0 : t.value) ===
|
5455
|
+
return ((t = this.filters.sort_by) == null ? void 0 : t.value) === Wi.TopPicks;
|
5456
5456
|
},
|
5457
5457
|
showErrorMessage() {
|
5458
5458
|
return this.hotelOfferRequest.hasError || this.hasErrorHotelOffers;
|
@@ -5496,17 +5496,17 @@ const md = /* @__PURE__ */ mn($i, [["render", gd]]), Ui = hn({
|
|
5496
5496
|
},
|
5497
5497
|
mixins: [
|
5498
5498
|
Ds,
|
5499
|
-
|
5500
|
-
|
5499
|
+
or,
|
5500
|
+
Sr(
|
5501
5501
|
["bookingApiClient", "config.currency", "config.lang"],
|
5502
5502
|
"retrieveHotelOffers"
|
5503
5503
|
),
|
5504
|
-
|
5505
|
-
|
5506
|
-
fallbackValue:
|
5504
|
+
nr,
|
5505
|
+
Er({
|
5506
|
+
fallbackValue: {},
|
5507
5507
|
propsName: "features"
|
5508
5508
|
}),
|
5509
|
-
|
5509
|
+
Tr()
|
5510
5510
|
],
|
5511
5511
|
name: "HotelOfferList",
|
5512
5512
|
props: Ar,
|
@@ -5520,7 +5520,7 @@ const md = /* @__PURE__ */ mn($i, [["render", gd]]), Ui = hn({
|
|
5520
5520
|
filters: {
|
5521
5521
|
deep: !0,
|
5522
5522
|
async handler(t, e) {
|
5523
|
-
|
5523
|
+
Yi(t, e) || await this.retrieveHotelOffers();
|
5524
5524
|
}
|
5525
5525
|
},
|
5526
5526
|
"hotelOfferRequest.id": {
|
@@ -5593,10 +5593,10 @@ const pd = {
|
|
5593
5593
|
};
|
5594
5594
|
function yd(t, e, n, s, i, r) {
|
5595
5595
|
const a = oe("BHotelSearchBar"), u = oe("BHotelOffersFilterBar"), l = oe("HotelOfferListEmpty"), c = oe("HotelRoomOfferList"), d = oe("HotelOfferItem"), h = oe("TermsAndConditions");
|
5596
|
-
return M(), Q(
|
5596
|
+
return M(), Q(Ir, {
|
5597
5597
|
ref: "hotel-offer-list-container",
|
5598
5598
|
class: "pa-0 bg-white",
|
5599
|
-
style:
|
5599
|
+
style: er([{ "min-height": "500px" }, {
|
5600
5600
|
height: t.parsedHeight,
|
5601
5601
|
maxHeight: t.maxHeight,
|
5602
5602
|
overflowY: "auto",
|
@@ -5662,11 +5662,11 @@ function yd(t, e, n, s, i, r) {
|
|
5662
5662
|
type: "noResults",
|
5663
5663
|
onResetFilters: t.onResetFilters
|
5664
5664
|
}, null, 8, ["address", "adult-count", "check-in-date", "check-out-date", "latitude", "longitude", "room-count", "source-market", "onResetFilters"])) : (M(), me(xe, { key: 3 }, [
|
5665
|
-
|
5665
|
+
Ji(b(mr, {
|
5666
5666
|
color: "primary",
|
5667
5667
|
indeterminate: ""
|
5668
5668
|
}, null, 512), [
|
5669
|
-
[
|
5669
|
+
[Zi, t.loadingBarEnabled && t.isPollingHotelOffers]
|
5670
5670
|
]),
|
5671
5671
|
t.hotelOffers ? (M(!0), me(xe, { key: 0 }, Cs(t.hotelOffers, (y, g) => (M(), me(xe, {
|
5672
5672
|
key: y.id
|
@@ -5733,12 +5733,12 @@ function yd(t, e, n, s, i, r) {
|
|
5733
5733
|
_: 1
|
5734
5734
|
}, 8, ["style"]);
|
5735
5735
|
}
|
5736
|
-
typeof Rs == "function" && Rs(
|
5737
|
-
const Gd = /* @__PURE__ */ mn(
|
5738
|
-
|
5736
|
+
typeof Rs == "function" && Rs($i);
|
5737
|
+
const Gd = /* @__PURE__ */ mn($i, [["render", yd]]);
|
5738
|
+
Vi("css/revolugo.hotelofferlist.BkctzTMI.css");
|
5739
5739
|
export {
|
5740
5740
|
Gd as H,
|
5741
|
-
|
5741
|
+
Or as a,
|
5742
5742
|
Ar as h
|
5743
5743
|
};
|
5744
|
-
//# sourceMappingURL=revolugo.hotelofferlist.
|
5744
|
+
//# sourceMappingURL=revolugo.hotelofferlist.BqxXWwM7.min.js.map
|