@revolugo/elements 6.8.2-beta.34 → 6.8.2-beta.36
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.bdaterangepicker.D1e8WHUE.css → revolugo.bdaterangepicker.B6KA5TYs.css} +1 -1
- package/dist/css/{revolugo.bimagecarousel.DFlgQMzq.css → revolugo.bimagecarousel.B2SxWMbZ.css} +1 -1
- package/dist/css/revolugo.hoteloffersearchmenuui.ZbUh8ba2.css +1 -0
- package/dist/css/{revolugo.hoteloffersmap.DZ9zVlMs.css → revolugo.hoteloffersmap.Cp2vN-VQ.css} +1 -1
- package/dist/css/revolugo.hoteloffersview.CNI6b2S9.css +1 -0
- package/dist/css/revolugo.termsandconditions.D8IMR9da.css +1 -0
- package/dist/css/{revolugo.webcomponentwrapper.BNxGrktU.css → revolugo.webcomponentwrapper.cFJPP6Rp.css} +1 -1
- package/dist/index.es.min.js +422 -420
- package/dist/index.es.min.js.map +1 -1
- package/dist/index.min.js +5 -5
- package/dist/index.min.js.map +1 -1
- package/dist/{revolugo._baseiteratee.BEP1-p3y.min.js → revolugo._baseiteratee.DqpAWb6T.min.js} +35 -35
- package/dist/{revolugo.banktransferdetails.CjbztzfC.min.js → revolugo.banktransferdetails.HIONuL-w.min.js} +9 -9
- package/dist/{revolugo.bdaterangepicker.CFyhGruk.min.js → revolugo.bdaterangepicker.CYqs79KF.min.js} +2179 -2183
- package/dist/{revolugo.bformattedamount.vue_vue_type_script_setup_true_lang.B2bk2KpX.min.js → revolugo.bformattedamount.vue_vue_type_script_setup_true_lang.C2bQrTH9.min.js} +4 -4
- package/dist/{revolugo.bhoteloffersfilterbar.CFOOtTvL.min.js → revolugo.bhoteloffersfilterbar.C99qFZXQ.min.js} +958 -772
- package/dist/{revolugo.bhotelroomsdetails.Be5zxifu.min.js → revolugo.bhotelroomsdetails.BspNbZ48.min.js} +188 -213
- package/dist/{revolugo.bimagecarousel.CxOf9dZ6.min.js → revolugo.bimagecarousel.Csl8A8eS.min.js} +145 -167
- package/dist/{revolugo.bookingdetailssidebar.CSH8m1C4.min.js → revolugo.bookingdetailssidebar.CpDzjKTp.min.js} +4 -4
- package/dist/{revolugo.bookingdetailssidebar.B5Pj0On4.min.js → revolugo.bookingdetailssidebar.DGJW157-.min.js} +19 -19
- package/dist/{revolugo.bookingmanager.csPvGATG.min.js → revolugo.bookingmanager.kjJFCsaj.min.js} +20 -20
- package/dist/{revolugo.bpricesummaryskeleton.CHX7Jssj.min.js → revolugo.bpricesummaryskeleton.8c6X82Hn.min.js} +4 -4
- package/dist/{revolugo.bstarrating.vue_vue_type_script_setup_true_lang.VA13CkuK.min.js → revolugo.bstarrating.vue_vue_type_script_setup_true_lang.KQ12c6Ip.min.js} +8 -8
- package/dist/{revolugo.btag.Dv4uxsYv.min.js → revolugo.btag.BE3Ri1CO.min.js} +28 -28
- package/dist/{revolugo.cancellationpoliciesbadge.CRBkLci9.min.js → revolugo.cancellationpoliciesbadge.W8Gvstjs.min.js} +4 -4
- package/dist/{revolugo.cancellationpoliciesbadge._2J26Hqf.min.js → revolugo.cancellationpoliciesbadge.mxkumI4i.min.js} +12 -12
- package/dist/{revolugo.cancellationpolicieslist.DQNG2iB8.min.js → revolugo.cancellationpolicieslist.DEiFUBfm.min.js} +3 -3
- package/dist/{revolugo.cancellationpolicieslist.pqHwlUuQ.min.js → revolugo.cancellationpolicieslist.EqDKfH1M.min.js} +4 -4
- package/dist/{revolugo.case-transformers.DP17jA4x.min.js → revolugo.case-transformers.BZKgm7X9.min.js} +5 -5
- package/dist/{revolugo.creditcardform.BZRrbM7V.min.js → revolugo.creditcardform.D84lJYLN.min.js} +4 -4
- package/dist/{revolugo.creditcardform.BxjCDGvO.min.js → revolugo.creditcardform.Dv8WVVQs.min.js} +58 -58
- package/dist/{revolugo.creditcardpayment.BT1kN8zt.min.js → revolugo.creditcardpayment.BQEG147C.min.js} +4 -4
- package/dist/{revolugo.creditcardpayment.DoY6phPa.min.js → revolugo.creditcardpayment.BcHJkQmY.min.js} +18 -18
- package/dist/{revolugo.currencypicker.B2tV48Y5.min.js → revolugo.currencypicker.DEJ2kZKc.min.js} +9 -9
- package/dist/{revolugo.currencypickerbtn.DMU3GWjB.min.js → revolugo.currencypickerbtn.1V06vG7i.min.js} +14 -14
- package/dist/{revolugo.currencypickerbtn.DE8oV1V1.min.js → revolugo.currencypickerbtn.BO15T4Og.min.js} +4 -4
- package/dist/revolugo.dates.DQToc-Zu.min.js +31 -0
- package/dist/revolugo.defaultsdeep.D6A9dZfK.min.js +104 -0
- package/dist/{revolugo.dialog-attach.DpGIwuG0.min.js → revolugo.dialog-attach.8RGGMLvt.min.js} +2 -2
- package/dist/{revolugo.dialog-transition.Ckkqh-sq.min.js → revolugo.dialog-transition.CK9FmR7q.min.js} +3 -3
- package/dist/{revolugo.fastbookingflow.CuXq-6GN.min.js → revolugo.fastbookingflow.mx9nZ44p.min.js} +4 -4
- package/dist/{revolugo.fullbookingflow.D4ACgY8T.min.js → revolugo.fullbookingflow.ByWT9-fz.min.js} +17 -17
- package/dist/{revolugo.hotel-offer-request.DcAw3ks9.min.js → revolugo.hotel-offer-request.AQUc7QpR.min.js} +2 -2
- package/dist/{revolugo.hoteldescriptionview.OsbnClid.min.js → revolugo.hoteldescriptionview.DCr66NFf.min.js} +4 -4
- package/dist/{revolugo.hoteldescriptionview.CnCdP9SI.min.js → revolugo.hoteldescriptionview.DjCj4aYP.min.js} +32 -32
- package/dist/{revolugo.hotelofferitemlayout.Dpe1_FMy.min.js → revolugo.hotelofferitemlayout.DSbBWikv.min.js} +9 -9
- package/dist/{revolugo.hotelofferlist.BJycC4Of.min.js → revolugo.hotelofferlist.BpQDR4Wh.min.js} +4 -4
- package/dist/{revolugo.hotelofferlist.DYq8K7Ct.min.js → revolugo.hotelofferlist.Cj2C7Zi4.min.js} +460 -454
- package/dist/revolugo.hotelofferrequestcreator.props.BeQuCTZy.min.js +44 -0
- package/dist/revolugo.hoteloffersearchmenu.DIMPtwG2.min.js +202 -0
- package/dist/revolugo.hoteloffersearchmenuui.BblFbDpa.min.js +829 -0
- package/dist/{revolugo.hoteloffersmap.DSsq4XP-.min.js → revolugo.hoteloffersmap.4IJuz8Kr.min.js} +4 -4
- package/dist/{revolugo.hoteloffersmap.BL2dyzha.min.js → revolugo.hoteloffersmap.DLxrzp7A.min.js} +33 -33
- package/dist/{revolugo.hoteloffersview.BGrm1eOU.min.js → revolugo.hoteloffersview.BsL_RfVC.min.js} +4 -4
- package/dist/{revolugo.hoteloffersview.gV8BZDE8.min.js → revolugo.hoteloffersview.DMDKMCye.min.js} +48 -49
- package/dist/{revolugo.hotelroomofferlist.D4fuEiKU.min.js → revolugo.hotelroomofferlist.CqoX8wAD.min.js} +570 -597
- package/dist/{revolugo.hotelroomofferlist.BCUPuDy5.min.js → revolugo.hotelroomofferlist.CrMiA0E5.min.js} +4 -4
- package/dist/{revolugo.hotelroomofferrequestcreator.props.Dv34pWYy.min.js → revolugo.hotelroomofferrequestcreator.props.CV1b3F15.min.js} +2 -2
- package/dist/{revolugo.hotelroomoffersbookingflow.MX7B4HS4.min.js → revolugo.hotelroomoffersbookingflow.EoUemNqv.min.js} +33 -33
- package/dist/{revolugo.hotelroomoffersearchmenu.D4ClroPA.min.js → revolugo.hotelroomoffersearchmenu.Dj7xOa4W.min.js} +21 -20
- package/dist/{revolugo.hotelroomoffersearchmenu.D08ut6Wr.min.js → revolugo.hotelroomoffersearchmenu.ngvURW1c.min.js} +5 -5
- package/dist/{revolugo.hotelroomoffersview.Cw2QLEZr.min.js → revolugo.hotelroomoffersview.CwyVwZR_.min.js} +4 -4
- package/dist/{revolugo.hotelroomoffersview.B-v9bQrO.min.js → revolugo.hotelroomoffersview.DRv2agnW.min.js} +12 -12
- package/dist/revolugo.index.DDAUBYBh.min.js +67 -0
- package/dist/{revolugo.index.Bv92K2Ye.min.js → revolugo.index.qisZC-QI.min.js} +71 -71
- package/dist/{revolugo.index.wc.B0qizvXE.min.js → revolugo.index.wc.BzjxKm9K.min.js} +5172 -5082
- package/dist/{revolugo.langpicker.BdYeJHS7.min.js → revolugo.langpicker.C-S6u3-u.min.js} +12 -12
- package/dist/{revolugo.langpickerbtn.DkfWevjb.min.js → revolugo.langpickerbtn.D3uECmJK.min.js} +4 -4
- package/dist/{revolugo.langpickerbtn.B8zEJnmF.min.js → revolugo.langpickerbtn.D9CD4Bj3.min.js} +10 -10
- package/dist/revolugo.min.js +1 -1
- package/dist/revolugo.pathify.CIND4Lom.min.js +36 -0
- package/dist/{revolugo.prebookform.Dt8Xq1UF.min.js → revolugo.prebookform.aGjJhr1R.min.js} +4 -4
- package/dist/{revolugo.prebookform.BhwJWvTS.min.js → revolugo.prebookform.rbCZlvHH.min.js} +21 -21
- package/dist/{revolugo.roominglisteditor.D5FNAQom.min.js → revolugo.roominglisteditor.B6-iMCHL.min.js} +4 -4
- package/dist/{revolugo.roominglisteditor.uWkpBxvd.min.js → revolugo.roominglisteditor.Ccuu1hR2.min.js} +9 -9
- package/dist/{revolugo.rounded.D6QsXHPb.min.js → revolugo.rounded.4lPQ9kFX.min.js} +2 -2
- package/dist/{revolugo.ssrboot._seCU8hc.min.js → revolugo.ssrboot.DHJaJ8JS.min.js} +4 -4
- package/dist/{revolugo.storybooktoolbar.Dr0gID6q.min.js → revolugo.storybooktoolbar.BQCF7Nnh.min.js} +107 -108
- package/dist/{revolugo.termsandconditions.DWwdFEEM.min.js → revolugo.termsandconditions.CQXI2fBL.min.js} +4 -4
- package/dist/revolugo.termsandconditions.D0ZQsUY6.min.js +405 -0
- package/dist/{revolugo.use-breakpoint-service.DcFKehRh.min.js → revolugo.use-breakpoint-service.C-hjHtUg.min.js} +3 -3
- package/dist/{revolugo.use-dialog-attach.Cu1mmZwk.min.js → revolugo.use-dialog-attach.Czzi-3RI.min.js} +3 -3
- package/dist/revolugo.use-html-element.D6v1nK-L.min.js +11 -0
- package/dist/{revolugo.vautocomplete.BQCHxH2B.min.js → revolugo.vautocomplete.CurwGarB.min.js} +68 -68
- package/dist/{revolugo.vbadge.rFVXHHsE.min.js → revolugo.vbadge.CAoYMMWm.min.js} +21 -21
- package/dist/{revolugo.vbtn.z2Nv2s_A.min.js → revolugo.vbtn.CsZeeN8o.min.js} +44 -44
- package/dist/{revolugo.vcard.CqvpQb0V.min.js → revolugo.vcard._oiwzPZq.min.js} +30 -30
- package/dist/{revolugo.vcheckboxbtn.CIrc7Wp1.min.js → revolugo.vcheckboxbtn.DtbO_191.min.js} +62 -62
- package/dist/{revolugo.vdialog.Ct2ri8RU.min.js → revolugo.vdialog.B8w3JtNs.min.js} +15 -15
- package/dist/{revolugo.vdivider.DswPwlPP.min.js → revolugo.vdivider.BMaXASD1.min.js} +8 -8
- package/dist/{revolugo.vexpansionpanels.YyEBCJNN.min.js → revolugo.vexpansionpanels.tj0xf8uQ.min.js} +33 -33
- package/dist/{revolugo.vform.B4SOVz4C.min.js → revolugo.vform.CK0ZMifM.min.js} +10 -10
- package/dist/{revolugo.vicon.DxyPKaIP.min.js → revolugo.vicon.ChjALOWz.min.js} +21 -21
- package/dist/{revolugo.vinput.JVdEYSkJ.min.js → revolugo.vinput.Be9TwErW.min.js} +57 -57
- package/dist/{revolugo.vlabel.9R__MfVL.min.js → revolugo.vlabel.kUTWOnRf.min.js} +3 -3
- package/dist/{revolugo.vlist.Cys3PIO8.min.js → revolugo.vlist.CwdXG8X4.min.js} +36 -36
- package/dist/{revolugo.vmenu.BdoJ6DB5.min.js → revolugo.vmenu.Do9o54LY.min.js} +26 -26
- package/dist/{revolugo.vselect.CZ2KGl2h.min.js → revolugo.vselect.FSeFjW01.min.js} +50 -50
- package/dist/{revolugo.vsheet.CtMgmHlk.min.js → revolugo.vsheet.RQ8g0IIb.min.js} +16 -16
- package/dist/{revolugo.vskeletonloader.C7hmbjSV.min.js → revolugo.vskeletonloader.BTBm47P-.min.js} +9 -9
- package/dist/{revolugo.vslidegroup.dHznmG62.min.js → revolugo.vslidegroup.CxPt62zw.min.js} +52 -52
- package/dist/{revolugo.vsnackbar.DLo2YKIP.min.js → revolugo.vsnackbar.DKhErJRq.min.js} +19 -19
- package/dist/revolugo.vspacer.D8mMBxcQ.min.js +7 -0
- package/dist/{revolugo.vtextarea.CQJ0M6wH.min.js → revolugo.vtextarea.D8AZqjfK.min.js} +28 -28
- package/dist/{revolugo.vtextfield.UPzgmfaI.min.js → revolugo.vtextfield.CGEo7_cB.min.js} +63 -63
- package/dist/{revolugo.vtoolbar.B5MVJuVl.min.js → revolugo.vtoolbar.DXfaICLs.min.js} +22 -22
- package/dist/{revolugo.vtooltip.C5jWcj_9.min.js → revolugo.vtooltip.DzcL8CbM.min.js} +9 -9
- package/dist/{revolugo.vwindowitem.QqHY3FYk.min.js → revolugo.vwindowitem.C3s82jNI.min.js} +32 -32
- package/dist/{revolugo.watch-list.Z34YwPPD.min.js → revolugo.watch-list.DrNheBPf.min.js} +2 -2
- package/dist/{revolugo.webcomponentwrapper.r7aHwfWr.min.js → revolugo.webcomponentwrapper.XqvBRD6a.min.js} +319 -333
- package/package.json +1 -1
- package/dist/css/revolugo.bhotelsearchbar.Bl5_UFe8.css +0 -1
- package/dist/css/revolugo.hoteloffersview.CL1wiz4I.css +0 -1
- package/dist/css/revolugo.termsandconditions.DCvNJQQL.css +0 -1
- package/dist/revolugo.bhotelsearchbar.kzKlxvh9.min.js +0 -944
- package/dist/revolugo.defaultsdeep.D8dmkJFl.min.js +0 -104
- package/dist/revolugo.hotelofferrequestcreator.CG7emkhL.min.js +0 -231
- package/dist/revolugo.hoteloffersearchmenu.DgYbtckm.min.js +0 -47
- package/dist/revolugo.pathify.CF3DF_XP.min.js +0 -58
- package/dist/revolugo.termsandconditions.BWJftZCJ.min.js +0 -420
- package/dist/revolugo.use-html-element.DgyiCLuP.min.js +0 -11
- package/dist/revolugo.vspacer.DxNikbPN.min.js +0 -7
package/dist/{revolugo.hotelofferlist.DYq8K7Ct.min.js → revolugo.hotelofferlist.Cj2C7Zi4.min.js}
RENAMED
@@ -1,25 +1,26 @@
|
|
1
|
-
import {
|
2
|
-
import {
|
3
|
-
import { H as
|
4
|
-
import { H as Ts } from "./revolugo.hotelofferitemlayout.
|
5
|
-
import { B as ar, v as Me, V as lr } from "./revolugo.vtextarea.
|
6
|
-
import { u as Ke, b as As, M as Ds, _ as dn, V as st, a as Ce, B as ur } from "./revolugo.webcomponentwrapper.
|
7
|
-
import { V as Je } from "./revolugo.vtextfield.
|
8
|
-
import { V as Rn } from "./revolugo.vmenu.
|
9
|
-
import { a as re } from "./revolugo.vbtn.
|
10
|
-
import { V as cr } from "./revolugo.vspacer.
|
11
|
-
import { a as wt, c as dr, b as fr, V as hr } from "./revolugo.index.
|
12
|
-
import { V as In, m as gr } from "./revolugo.vsheet.
|
13
|
-
import { V as mr } from "./revolugo.vform.
|
14
|
-
import { V as Xt } from "./revolugo.vdivider.
|
15
|
-
import { H as pr } from "./revolugo.hotelroomofferlist.
|
16
|
-
import {
|
17
|
-
import { p as yr } from "./revolugo.bstarrating.vue_vue_type_script_setup_true_lang.
|
18
|
-
import { w as br } from "./revolugo.watch-list.
|
19
|
-
import { T as Er } from "./revolugo.termsandconditions.
|
20
|
-
import {
|
21
|
-
import {
|
22
|
-
import {
|
1
|
+
import { $ as $i, a0 as Ui, d as un, u as cn, q as Vt, a1 as Le, a2 as Re, H as $, a as b, a3 as mt, a4 as Bi, a5 as ct, a6 as _e, a7 as pt, a8 as Vi, k as Wt, a9 as vt, O as Es, f as Ge, aa as ot, ab as Ss, ac as ks, D as se, ad as Os, ae as Fi, X as xi, W as Hi, af as Gi, ag as ji, F as Fe, i as me, w as _, e as Qt, t as xe, r as ie, o as M, b as Rs, c as K, g as X, B as Is, C as yt, ah as qi, V as zi, ai as Ki, aj as Yi, J as Wi, K as Qi, Z as Xi } from "./revolugo.index.wc.BzjxKm9K.min.js";
|
2
|
+
import { g as Ji } from "./revolugo.dates.DQToc-Zu.min.js";
|
3
|
+
import { H as Zi, D as er, B as tr, p as nr, c as sr, d as ir, e as rr, u as or } from "./revolugo.bhoteloffersfilterbar.C99qFZXQ.min.js";
|
4
|
+
import { H as Ts } from "./revolugo.hotelofferitemlayout.DSbBWikv.min.js";
|
5
|
+
import { B as ar, v as Me, V as lr } from "./revolugo.vtextarea.D8AZqjfK.min.js";
|
6
|
+
import { u as Ke, b as As, M as Ds, _ as dn, V as st, a as Ce, B as ur } from "./revolugo.webcomponentwrapper.XqvBRD6a.min.js";
|
7
|
+
import { V as Je } from "./revolugo.vtextfield.CGEo7_cB.min.js";
|
8
|
+
import { V as Rn } from "./revolugo.vmenu.Do9o54LY.min.js";
|
9
|
+
import { a as re } from "./revolugo.vbtn.CsZeeN8o.min.js";
|
10
|
+
import { V as cr } from "./revolugo.vspacer.D8mMBxcQ.min.js";
|
11
|
+
import { a as wt, c as dr, b as fr, V as hr } from "./revolugo.index.qisZC-QI.min.js";
|
12
|
+
import { V as In, m as gr } from "./revolugo.vsheet.RQ8g0IIb.min.js";
|
13
|
+
import { V as mr } from "./revolugo.vform.CK0ZMifM.min.js";
|
14
|
+
import { V as Xt } from "./revolugo.vdivider.BMaXASD1.min.js";
|
15
|
+
import { H as pr } from "./revolugo.hotelroomofferlist.CqoX8wAD.min.js";
|
16
|
+
import { H as vr } from "./revolugo.hoteloffersearchmenuui.BblFbDpa.min.js";
|
17
|
+
import { p as yr } from "./revolugo.bstarrating.vue_vue_type_script_setup_true_lang.KQ12c6Ip.min.js";
|
18
|
+
import { w as br } from "./revolugo.watch-list.DrNheBPf.min.js";
|
19
|
+
import { T as Er } from "./revolugo.termsandconditions.D0ZQsUY6.min.js";
|
20
|
+
import { h as Sr } from "./revolugo.hotelofferrequestcreator.props.BeQuCTZy.min.js";
|
21
|
+
import { u as kr } from "./revolugo.hotelroomofferrequestcreator.props.CV1b3F15.min.js";
|
22
|
+
import { p as Or, g as fe } from "./revolugo.pathify.CIND4Lom.min.js";
|
23
|
+
import { V as Rr } from "./revolugo.bdaterangepicker.CYqs79KF.min.js";
|
23
24
|
function Mi(t) {
|
24
25
|
try {
|
25
26
|
if (typeof document < "u") {
|
@@ -44,9 +45,9 @@ const Cs = {
|
|
44
45
|
FiltersBar: !0,
|
45
46
|
HotelOfferSearchMenu: !1,
|
46
47
|
TermsAndConditionsFooter: !0,
|
47
|
-
HotelOfferItem:
|
48
|
-
},
|
49
|
-
...
|
48
|
+
HotelOfferItem: Zi
|
49
|
+
}, Ir = {
|
50
|
+
...Sr,
|
50
51
|
features: {
|
51
52
|
default: () => Cs,
|
52
53
|
type: [Object, String]
|
@@ -58,14 +59,14 @@ const Cs = {
|
|
58
59
|
hotelRoomOffersLimit: {
|
59
60
|
type: Number
|
60
61
|
},
|
61
|
-
|
62
|
-
default: tr,
|
63
|
-
type: Number
|
64
|
-
},
|
65
|
-
loadingBarEnabled: {
|
62
|
+
isLoadingBarEnabled: {
|
66
63
|
default: !0,
|
67
64
|
type: Boolean
|
68
65
|
},
|
66
|
+
limit: {
|
67
|
+
default: er,
|
68
|
+
type: Number
|
69
|
+
},
|
69
70
|
maxHeight: {
|
70
71
|
default: "90vh",
|
71
72
|
type: [Number, String]
|
@@ -78,7 +79,7 @@ const Cs = {
|
|
78
79
|
function L(t) {
|
79
80
|
return t != null && typeof t == "object" && t["@@functional/placeholder"] === !0;
|
80
81
|
}
|
81
|
-
function
|
82
|
+
function pe(t) {
|
82
83
|
return function e(n) {
|
83
84
|
return arguments.length === 0 || L(n) ? e : t.apply(this, arguments);
|
84
85
|
};
|
@@ -89,13 +90,13 @@ function be(t) {
|
|
89
90
|
case 0:
|
90
91
|
return e;
|
91
92
|
case 1:
|
92
|
-
return L(n) ? e :
|
93
|
+
return L(n) ? e : pe(function(i) {
|
93
94
|
return t(n, i);
|
94
95
|
});
|
95
96
|
default:
|
96
|
-
return L(n) && L(s) ? e : L(n) ?
|
97
|
+
return L(n) && L(s) ? e : L(n) ? pe(function(i) {
|
97
98
|
return t(i, s);
|
98
|
-
}) : L(s) ?
|
99
|
+
}) : L(s) ? pe(function(i) {
|
99
100
|
return t(n, i);
|
100
101
|
}) : t(n, s);
|
101
102
|
}
|
@@ -115,7 +116,7 @@ function fn(t) {
|
|
115
116
|
return t(r, s, a);
|
116
117
|
}) : L(s) ? be(function(r, a) {
|
117
118
|
return t(n, r, a);
|
118
|
-
}) :
|
119
|
+
}) : pe(function(r) {
|
119
120
|
return t(n, s, r);
|
120
121
|
});
|
121
122
|
default:
|
@@ -125,11 +126,11 @@ function fn(t) {
|
|
125
126
|
return t(r, s, a);
|
126
127
|
}) : L(s) && L(i) ? be(function(r, a) {
|
127
128
|
return t(n, r, a);
|
128
|
-
}) : L(n) ?
|
129
|
+
}) : L(n) ? pe(function(r) {
|
129
130
|
return t(r, s, i);
|
130
|
-
}) : L(s) ?
|
131
|
+
}) : L(s) ? pe(function(r) {
|
131
132
|
return t(n, r, i);
|
132
|
-
}) : L(i) ?
|
133
|
+
}) : L(i) ? pe(function(r) {
|
133
134
|
return t(n, s, r);
|
134
135
|
}) : t(n, s, i);
|
135
136
|
}
|
@@ -138,27 +139,27 @@ function fn(t) {
|
|
138
139
|
function dt(t, e) {
|
139
140
|
return Object.prototype.hasOwnProperty.call(e, t);
|
140
141
|
}
|
141
|
-
var
|
142
|
+
var Tr = /* @__PURE__ */ pe(function(e) {
|
142
143
|
return e === null ? "Null" : e === void 0 ? "Undefined" : Object.prototype.toString.call(e).slice(8, -1);
|
143
144
|
});
|
144
145
|
function Tn(t) {
|
145
146
|
return Object.prototype.toString.call(t) === "[object Object]";
|
146
147
|
}
|
147
|
-
const
|
148
|
+
const Ar = Number.isInteger || function(e) {
|
148
149
|
return e << 0 === e;
|
149
150
|
};
|
150
|
-
function
|
151
|
+
function Dr(t) {
|
151
152
|
return Object.prototype.toString.call(t) === "[object String]";
|
152
153
|
}
|
153
|
-
function
|
154
|
+
function Cr(t, e) {
|
154
155
|
var n = t < 0 ? e.length + t : t;
|
155
|
-
return
|
156
|
+
return Dr(e) ? e.charAt(n) : e[n];
|
156
157
|
}
|
157
|
-
function
|
158
|
+
function Pr(t) {
|
158
159
|
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" : ""));
|
159
160
|
}
|
160
161
|
function Ps(t, e, n) {
|
161
|
-
if (n || (n = new
|
162
|
+
if (n || (n = new Nr()), _r(t))
|
162
163
|
return t;
|
163
164
|
var s = function(r) {
|
164
165
|
var a = n.get(t);
|
@@ -169,7 +170,7 @@ function Ps(t, e, n) {
|
|
169
170
|
Object.prototype.hasOwnProperty.call(t, u) && (r[u] = Ps(t[u], !0, n));
|
170
171
|
return r;
|
171
172
|
};
|
172
|
-
switch (
|
173
|
+
switch (Tr(t)) {
|
173
174
|
case "Object":
|
174
175
|
return s(Object.create(Object.getPrototypeOf(t)));
|
175
176
|
case "Array":
|
@@ -177,7 +178,7 @@ function Ps(t, e, n) {
|
|
177
178
|
case "Date":
|
178
179
|
return new Date(t.valueOf());
|
179
180
|
case "RegExp":
|
180
|
-
return
|
181
|
+
return Pr(t);
|
181
182
|
case "Int8Array":
|
182
183
|
case "Uint8Array":
|
183
184
|
case "Uint8ClampedArray":
|
@@ -194,11 +195,11 @@ function Ps(t, e, n) {
|
|
194
195
|
return t;
|
195
196
|
}
|
196
197
|
}
|
197
|
-
function
|
198
|
+
function _r(t) {
|
198
199
|
var e = typeof t;
|
199
200
|
return t == null || e != "object" && e != "function";
|
200
201
|
}
|
201
|
-
var
|
202
|
+
var Nr = /* @__PURE__ */ function() {
|
202
203
|
function t() {
|
203
204
|
this.map = {}, this.length = 0;
|
204
205
|
}
|
@@ -228,19 +229,19 @@ var _r = /* @__PURE__ */ function() {
|
|
228
229
|
return i[1];
|
229
230
|
}
|
230
231
|
}, t;
|
231
|
-
}(), I = /* @__PURE__ */
|
232
|
+
}(), I = /* @__PURE__ */ pe(function(e) {
|
232
233
|
return e != null && typeof e.clone == "function" ? e.clone() : Ps(e);
|
233
234
|
});
|
234
|
-
function
|
235
|
+
function Lr(t, e) {
|
235
236
|
for (var n = e, s = 0; s < t.length; s += 1) {
|
236
237
|
if (n == null)
|
237
238
|
return;
|
238
239
|
var i = t[s];
|
239
|
-
|
240
|
+
Ar(i) ? n = Cr(i, n) : n = n[i];
|
240
241
|
}
|
241
242
|
return n;
|
242
243
|
}
|
243
|
-
var
|
244
|
+
var wr = /* @__PURE__ */ fn(function(e, n, s) {
|
244
245
|
var i = {}, r;
|
245
246
|
n = n || {}, s = s || {};
|
246
247
|
for (r in n)
|
@@ -248,21 +249,21 @@ var Lr = /* @__PURE__ */ fn(function(e, n, s) {
|
|
248
249
|
for (r in s)
|
249
250
|
dt(r, s) && !dt(r, i) && (i[r] = s[r]);
|
250
251
|
return i;
|
251
|
-
}),
|
252
|
-
return
|
252
|
+
}), Mr = /* @__PURE__ */ fn(function t(e, n, s) {
|
253
|
+
return wr(function(i, r, a) {
|
253
254
|
return Tn(r) && Tn(a) ? t(e, r, a) : e(i, r, a);
|
254
255
|
}, n, s);
|
255
|
-
}),
|
256
|
-
return
|
256
|
+
}), $r = /* @__PURE__ */ fn(function(e, n, s) {
|
257
|
+
return Mr(function(i, r, a) {
|
257
258
|
return e(r, a);
|
258
259
|
}, n, s);
|
259
|
-
}),
|
260
|
+
}), Ur = /* @__PURE__ */ be(Lr), _s = /* @__PURE__ */ be(function(e, n) {
|
260
261
|
var s = {};
|
261
262
|
for (var i in n)
|
262
263
|
e(n[i], i, n) && (s[i] = n[i]);
|
263
264
|
return s;
|
264
265
|
});
|
265
|
-
const S = (t) => typeof t == "function" && !!(t.constructor && t.call && t.apply), N = (t) => typeof t == "string", ee = (t) => t === null, V = (t) => typeof t > "u", oe = (t) => ee(t) || V(t),
|
266
|
+
const S = (t) => typeof t == "function" && !!(t.constructor && t.call && t.apply), N = (t) => typeof t == "string", ee = (t) => t === null, V = (t) => typeof t > "u", oe = (t) => ee(t) || V(t), Br = (t) => typeof t == "bigint", C = (t) => !V(t), je = (t) => !oe(t), Vr = (t) => je(t) && t !== "", hn = (t) => {
|
266
267
|
switch (Object.prototype.toString.call(t)) {
|
267
268
|
case "[object Error]":
|
268
269
|
case "[object Exception]":
|
@@ -273,18 +274,18 @@ const S = (t) => typeof t == "function" && !!(t.constructor && t.call && t.apply
|
|
273
274
|
}
|
274
275
|
}, Jt = (t, e) => {
|
275
276
|
const n = e.split(".");
|
276
|
-
return
|
277
|
-
},
|
277
|
+
return Ur(n, t);
|
278
|
+
}, Fr = (t, e) => !!Jt(t, e), xr = (t) => typeof t == "object", Hr = (t) => !ee(t) && xr(t) && !Array.isArray(t), w = (t) => !ee(t) && Object.prototype.toString.call(t) === "[object Object]", Gr = (t, e) => {
|
278
279
|
if (!Array.isArray(t) || !Array.isArray(e))
|
279
280
|
return I(e);
|
280
281
|
const n = I(t);
|
281
282
|
return e.forEach((s, i) => {
|
282
|
-
n[i] = Array.isArray(s) ||
|
283
|
+
n[i] = Array.isArray(s) || Hr(s) ? (
|
283
284
|
// eslint-disable-next-line @typescript-eslint/no-use-before-define
|
284
285
|
F(n[i], s)
|
285
286
|
) : s;
|
286
287
|
}), n;
|
287
|
-
}, F = (t, e) =>
|
288
|
+
}, F = (t, e) => $r(Gr, t, e), Oe = (t) => w(t) && Object.keys(t).length > 0, et = (t) => {
|
288
289
|
const e = _s(C, t);
|
289
290
|
return Object.keys(e).forEach((n) => {
|
290
291
|
const s = e[n];
|
@@ -296,10 +297,10 @@ const S = (t) => typeof t == "function" && !!(t.constructor && t.call && t.apply
|
|
296
297
|
const s = e[n];
|
297
298
|
w(s) && (e[n] = Dt(s));
|
298
299
|
}), e;
|
299
|
-
},
|
300
|
+
}, he = (t) => {
|
300
301
|
if (Oe(t))
|
301
302
|
return Dt(t);
|
302
|
-
}, ae = (t, e) => typeof t == "boolean" ? t : e,
|
303
|
+
}, ae = (t, e) => typeof t == "boolean" ? t : e, jr = (t) => t.replace(/^\s+|\s+$/gm, ""), An = (t) => t.replace(/^\.+/, ""), Ct = (t) => {
|
303
304
|
let e = t;
|
304
305
|
if (!N(t) && !oe(t))
|
305
306
|
try {
|
@@ -308,10 +309,10 @@ const S = (t) => typeof t == "function" && !!(t.constructor && t.call && t.apply
|
|
308
309
|
e = null;
|
309
310
|
}
|
310
311
|
return e;
|
311
|
-
},
|
312
|
+
}, qr = (t) => {
|
312
313
|
const e = Array.from(t, (n) => String.fromCodePoint(n)).join("");
|
313
314
|
return globalThis.btoa(e);
|
314
|
-
},
|
315
|
+
}, zr = (t) => qr(new TextEncoder().encode(t)), Pt = (t, e, n, s, i) => {
|
315
316
|
const r = { category: t, name: e, properties: n, options: s, callback: void 0 };
|
316
317
|
S(i) && (r.callback = i), S(s) && (r.category = t, r.name = e, r.properties = n, r.options = void 0, r.callback = s), S(n) && (r.category = t, r.name = e, r.properties = void 0, r.options = void 0, r.callback = n), S(e) && (r.category = t, r.name = void 0, r.properties = void 0, r.options = void 0, r.callback = e), S(t) && (r.category = void 0, r.name = void 0, r.properties = void 0, r.options = void 0, r.callback = t), w(t) ? (r.name = void 0, r.category = void 0, r.properties = t, S(e) ? r.options = void 0 : r.options = e) : w(e) && (r.name = void 0, r.properties = e, S(n) ? r.options = void 0 : r.options = n), N(t) && !N(e) && (r.category = void 0, r.name = t), C(r.category) || (r.category = void 0), C(r.name) || (r.name = void 0), r.properties = r.properties ? I(r.properties) : {}, C(r.options) ? r.options = I(r.options) : r.options = void 0;
|
317
318
|
const a = N(r.name) ? r.name : r.properties.name, u = N(r.category) ? r.category : r.properties.category;
|
@@ -332,22 +333,22 @@ const S = (t) => typeof t == "function" && !!(t.constructor && t.call && t.apply
|
|
332
333
|
let Ft = /* @__PURE__ */ function(t) {
|
333
334
|
return t.UNLOADED = "Page Unloaded", t;
|
334
335
|
}({});
|
335
|
-
const mn = "API", Zt = "CapabilitiesManager", Z = "ConfigManager", Ms = "EventManager", ft = "PluginsManager", Ae = "UserSessionManager", tt = "ErrorHandler", $e = "PluginEngine",
|
336
|
-
function
|
336
|
+
const mn = "API", Zt = "CapabilitiesManager", Z = "ConfigManager", Ms = "EventManager", ft = "PluginsManager", Ae = "UserSessionManager", tt = "ErrorHandler", $e = "PluginEngine", Kr = "StoreManager", xt = `Ready${mn}`, Yr = `Load${mn}`, Wr = "HttpClient", Qr = "RudderStackAnalytics", Ht = "AnalyticsCore";
|
337
|
+
function Xr(t) {
|
337
338
|
return crypto.getRandomValues(new Uint8Array(t));
|
338
339
|
}
|
339
340
|
var Dn = 4096, bt = [], Se = 0, Gt;
|
340
341
|
for (; Se < 256; Se++)
|
341
342
|
bt[Se] = (Se + 256).toString(16).substring(1);
|
342
|
-
function
|
343
|
-
(!Gt || Se + 16 > Dn) && (Gt =
|
343
|
+
function Jr() {
|
344
|
+
(!Gt || Se + 16 > Dn) && (Gt = Xr(Dn), Se = 0);
|
344
345
|
for (var t = 0, e, n = ""; t < 16; t++)
|
345
346
|
e = Gt[Se + t], t == 6 ? n += bt[e & 15 | 64] : t == 8 ? n += bt[e & 63 | 128] : n += bt[e], t & 1 && t > 1 && t < 11 && (n += "-");
|
346
347
|
return Se += 16, n;
|
347
348
|
}
|
348
349
|
var Pe = 256, Et = [], ht;
|
349
350
|
for (; Pe--; ) Et[Pe] = (Pe + 256).toString(16).substring(1);
|
350
|
-
function
|
351
|
+
function Zr() {
|
351
352
|
var t = 0, e, n = "";
|
352
353
|
if (!ht || Pe + 16 > 256) {
|
353
354
|
for (ht = Array(t = 256); t--; ) ht[t] = 256 * Math.random() | 0;
|
@@ -357,7 +358,7 @@ function Jr() {
|
|
357
358
|
e = ht[Pe + t], t == 6 ? n += Et[e & 15 | 64] : t == 8 ? n += Et[e & 63 | 128] : n += Et[e], t & 1 && t > 1 && t < 11 && (n += "-");
|
358
359
|
return Pe++, n;
|
359
360
|
}
|
360
|
-
const
|
361
|
+
const eo = () => !oe(globalThis.crypto) && S(globalThis.crypto.getRandomValues), Mt = () => eo() ? Jr() : Zr(), to = (t) => {
|
361
362
|
let e = !1, n = !1;
|
362
363
|
function s() {
|
363
364
|
e || (e = !0, t(n), setTimeout(() => {
|
@@ -375,7 +376,7 @@ const Zr = () => !oe(globalThis.crypto) && S(globalThis.crypto.getRandomValues),
|
|
375
376
|
}), document.addEventListener("visibilitychange", () => {
|
376
377
|
n = !0, document.visibilityState === "hidden" ? s() : e = !1;
|
377
378
|
});
|
378
|
-
}, $s = (t) => t.toISOString(),
|
379
|
+
}, $s = (t) => t.toISOString(), no = () => $s(/* @__PURE__ */ new Date()), O = ":: ", so = (t) => `A script with the id "${t}" is already loaded. Skipping the loading of this script to prevent conflicts`, Cn = (t, e, n) => `Unable to load (${N(n) ? n : n.type}) the script with the id "${t}" from URL "${e}"`, io = (t, e, n) => `A timeout of ${n} ms occurred while trying to load the script with id "${t}" from URL "${e}"`, ro = (t, e) => `${t}${O}A circular reference has been detected in the object and the property "${e}" has been dropped from the output.`, oo = "Failed to convert the value to a JSON string.", ao = "Failed to encode the cookie data.", lo = "JSONStringify", uo = "[BigInt]", Us = "[Circular Reference]", co = (t, e, n) => {
|
379
380
|
const s = [];
|
380
381
|
return function(i, r) {
|
381
382
|
if (!e?.includes(i) && !(t && oe(r))) {
|
@@ -383,20 +384,20 @@ const Zr = () => !oe(globalThis.crypto) && S(globalThis.crypto.getRandomValues),
|
|
383
384
|
return r;
|
384
385
|
for (; s.length > 0 && s[s.length - 1] !== this; )
|
385
386
|
s.pop();
|
386
|
-
return s.includes(r) ? (n?.warn(
|
387
|
+
return s.includes(r) ? (n?.warn(ro(lo, i)), Us) : (s.push(r), r);
|
387
388
|
}
|
388
389
|
};
|
389
390
|
}, ue = (t, e, n, s) => {
|
390
391
|
try {
|
391
|
-
return JSON.stringify(t,
|
392
|
+
return JSON.stringify(t, co(e, n, s));
|
392
393
|
} catch (i) {
|
393
|
-
return s?.warn(
|
394
|
+
return s?.warn(oo, i), null;
|
394
395
|
}
|
395
|
-
},
|
396
|
+
}, fo = (t) => {
|
396
397
|
const e = [];
|
397
398
|
return function(s, i) {
|
398
|
-
if (
|
399
|
-
return
|
399
|
+
if (Br(i))
|
400
|
+
return uo;
|
400
401
|
for (; e.length > 0 && e[e.length - 1] !== this; )
|
401
402
|
e.pop();
|
402
403
|
return e.includes(i) ? Us : (e.push(i), i);
|
@@ -410,7 +411,7 @@ const Zr = () => !oe(globalThis.crypto) && S(globalThis.crypto.getRandomValues),
|
|
410
411
|
}
|
411
412
|
return n;
|
412
413
|
}, A = (t, e) => {
|
413
|
-
const n =
|
414
|
+
const n = fo(), s = n.call(t, "", t);
|
414
415
|
return w(t) || Array.isArray(t) ? Bs(t, n) : s;
|
415
416
|
}, St = "[SDK DISPATCHED ERROR]", pn = (t) => {
|
416
417
|
const { stack: e, stacktrace: n } = t, s = t["opera#sourceloc"], i = e ?? n ?? s;
|
@@ -442,12 +443,12 @@ ${St}`;
|
|
442
443
|
}
|
443
444
|
}
|
444
445
|
globalThis.dispatchEvent(new ErrorEvent("error", { error: t, bubbles: !0, cancelable: !0, composed: !0 }));
|
445
|
-
}, Pn = "RudderLabs JavaScript SDK", at = "3.21.0",
|
446
|
+
}, Pn = "RudderLabs JavaScript SDK", at = "3.21.0", ho = "com.rudderlabs.javascript", Vs = "npm", _n = "RudderJS-Initiated", go = "ad-block page request", mo = "/ad-blocked", it = "preloadedEventsBuffer", po = "Consent Management Interaction", vo = "ajs_trait_", yo = "ajs_prop_", Nn = "ajs_aid", Ln = "ajs_uid", wn = "ajs_event", bo = 10 * 1e3, Eo = 31536e3 * 1e3, Mn = 12 * 60 * 60 * 1e3, en = 30 * 60 * 1e3, $n = 10 * 1e3, So = 10 * 1e3, ko = 250, Fs = (t = "app") => {
|
446
447
|
globalThis.RudderStackGlobals || (globalThis.RudderStackGlobals = {}), globalThis.RudderStackGlobals[t] || (globalThis.RudderStackGlobals[t] = {});
|
447
448
|
}, lt = (t, e, n = "app") => {
|
448
449
|
Fs(n), globalThis.RudderStackGlobals[n][t] = e;
|
449
450
|
}, xs = (t, e = "app") => (Fs(e), globalThis.RudderStackGlobals[e][t]);
|
450
|
-
function
|
451
|
+
function Oo(t, e, n = ko) {
|
451
452
|
let s;
|
452
453
|
return (...i) => {
|
453
454
|
globalThis.clearTimeout(s), s = globalThis.setTimeout(() => {
|
@@ -463,10 +464,10 @@ const Un = (t, e) => {
|
|
463
464
|
n[r] = t.get(i);
|
464
465
|
}
|
465
466
|
}), n;
|
466
|
-
},
|
467
|
-
const e = { trait:
|
467
|
+
}, Ro = (t = []) => {
|
468
|
+
const e = { trait: vo, properties: yo }, n = new URLSearchParams(globalThis.location.search);
|
468
469
|
n.get(wn) && t.unshift(["track", n.get(wn), Un(n, e.properties)]), n.get(Ln) && t.unshift(["identify", n.get(Ln), Un(n, e.trait)]), n.get(Nn) && t.unshift(["setAnonymousId", n.get(Nn)]);
|
469
|
-
},
|
470
|
+
}, Io = (t) => {
|
470
471
|
const e = "load";
|
471
472
|
let n = [], s = 0;
|
472
473
|
for (; s < t.length; ) {
|
@@ -477,13 +478,13 @@ const Un = (t, e) => {
|
|
477
478
|
s += 1;
|
478
479
|
}
|
479
480
|
return n;
|
480
|
-
},
|
481
|
+
}, To = (t) => {
|
481
482
|
const e = "consent", n = t.filter((i) => i[0] === e), s = t.filter((i) => i[0] !== e);
|
482
483
|
t.splice(0, t.length, ...n, ...s);
|
483
|
-
},
|
484
|
+
}, Ao = (t) => {
|
484
485
|
const e = xs(it) || [];
|
485
|
-
|
486
|
-
},
|
486
|
+
Ro(e), e.length > 0 && (t.enqueuePreloadBufferEvents(e), lt(it, []));
|
487
|
+
}, Do = (t, e) => {
|
487
488
|
const n = t.shift();
|
488
489
|
let s;
|
489
490
|
if (S(e[n])) {
|
@@ -509,12 +510,12 @@ const Un = (t, e) => {
|
|
509
510
|
}
|
510
511
|
s && e[n](s);
|
511
512
|
}
|
512
|
-
},
|
513
|
+
}, Co = 10 * 1e3, Po = "RS_JS_SDK", _o = (t, e, n = !0, s = null, i = null, r = {}) => {
|
513
514
|
const a = document.createElement("script");
|
514
515
|
return a.type = "text/javascript", a.onload = s, a.onerror = i, a.src = t, a.id = e, a.async = n, Object.keys(r).forEach((u) => {
|
515
516
|
a.setAttribute(u, r[u]);
|
516
|
-
}), a.setAttribute("data-loader",
|
517
|
-
},
|
517
|
+
}), a.setAttribute("data-loader", Po), a;
|
518
|
+
}, No = (t) => {
|
518
519
|
const e = document.getElementsByTagName("head");
|
519
520
|
if (e.length > 0) {
|
520
521
|
e[0]?.insertBefore(t, e[0]?.firstChild);
|
@@ -529,23 +530,23 @@ const Un = (t, e) => {
|
|
529
530
|
s.appendChild(t);
|
530
531
|
const i = document.getElementsByTagName("html")[0];
|
531
532
|
i?.insertBefore(s, i.firstChild);
|
532
|
-
},
|
533
|
-
document.getElementById(e) && a(new Error(
|
533
|
+
}, Lo = (t, e, n, s = !0, i) => new Promise((r, a) => {
|
534
|
+
document.getElementById(e) && a(new Error(so(e)));
|
534
535
|
try {
|
535
536
|
let l;
|
536
|
-
_o(
|
537
|
+
No(_o(t, e, s, () => {
|
537
538
|
globalThis.clearTimeout(l), r(e);
|
538
539
|
}, (g) => {
|
539
540
|
globalThis.clearTimeout(l), a(new Error(Cn(e, t, g)));
|
540
541
|
}, i)), l = globalThis.setTimeout(() => {
|
541
|
-
a(new Error(
|
542
|
+
a(new Error(io(e, t, n)));
|
542
543
|
}, n);
|
543
544
|
} catch (l) {
|
544
545
|
a(vn(l, Cn(e, t, "unknown")));
|
545
546
|
}
|
546
547
|
});
|
547
548
|
class Hs {
|
548
|
-
constructor(e, n =
|
549
|
+
constructor(e, n = Co) {
|
549
550
|
this.logger = e, this.timeout = n;
|
550
551
|
}
|
551
552
|
/**
|
@@ -553,14 +554,14 @@ class Hs {
|
|
553
554
|
*/
|
554
555
|
loadJSFile(e) {
|
555
556
|
const { url: n, id: s, timeout: i, async: r, callback: a, extraAttributes: u } = e, l = !S(a);
|
556
|
-
|
557
|
+
Lo(n, s, i || this.timeout, r, u).then((c) => {
|
557
558
|
l || a(c);
|
558
559
|
}).catch((c) => {
|
559
560
|
l || a(s, c);
|
560
561
|
});
|
561
562
|
}
|
562
563
|
}
|
563
|
-
var
|
564
|
+
var wo = Symbol.for("preact-signals");
|
564
565
|
function $t() {
|
565
566
|
if (ke > 1)
|
566
567
|
ke--;
|
@@ -612,7 +613,7 @@ function js(t) {
|
|
612
613
|
function H(t, e) {
|
613
614
|
this.v = t, this.i = 0, this.n = void 0, this.t = void 0, this.W = e?.watched, this.Z = e?.unwatched;
|
614
615
|
}
|
615
|
-
H.prototype.brand =
|
616
|
+
H.prototype.brand = wo;
|
616
617
|
H.prototype.h = function() {
|
617
618
|
return !0;
|
618
619
|
};
|
@@ -763,7 +764,7 @@ function yn(t) {
|
|
763
764
|
for (var e = t.s; e !== void 0; e = e.n) e.S.U(e);
|
764
765
|
t.x = void 0, t.s = void 0, Ys(t);
|
765
766
|
}
|
766
|
-
function
|
767
|
+
function Mo(t) {
|
767
768
|
if (D !== this) throw new Error("Out-of-order effect");
|
768
769
|
Ks(this), D = t, this.f &= -2, 8 & this.f && yn(this), $t();
|
769
770
|
}
|
@@ -784,7 +785,7 @@ We.prototype.S = function() {
|
|
784
785
|
if (1 & this.f) throw new Error("Cycle detected");
|
785
786
|
this.f |= 1, this.f &= -9, Ys(this), zs(this), ke++;
|
786
787
|
var t = D;
|
787
|
-
return D = this,
|
788
|
+
return D = this, Mo.bind(this, t);
|
788
789
|
};
|
789
790
|
We.prototype.N = function() {
|
790
791
|
2 & this.f || (this.f |= 2, this.o = rt, rt = this);
|
@@ -804,7 +805,7 @@ function ce(t) {
|
|
804
805
|
}
|
805
806
|
return e.d.bind(e);
|
806
807
|
}
|
807
|
-
class
|
808
|
+
class $o {
|
808
809
|
constructor() {
|
809
810
|
this.items = [];
|
810
811
|
}
|
@@ -824,8 +825,8 @@ class Mo {
|
|
824
825
|
this.items = [];
|
825
826
|
}
|
826
827
|
}
|
827
|
-
const gt = { LOG: 0, INFO: 1, DEBUG: 2, WARN: 3, ERROR: 4, NONE: 5 }, Bn = "LOG", Ws = "ERROR",
|
828
|
-
class
|
828
|
+
const gt = { LOG: 0, INFO: 1, DEBUG: 2, WARN: 3, ERROR: 4, NONE: 5 }, Bn = "LOG", Ws = "ERROR", Uo = "RS SDK", Bo = "font-weight: bold; background: black; color: white;", Vo = "font-weight: normal;";
|
829
|
+
class Fo {
|
829
830
|
constructor(e = Bn, n = "", s = console) {
|
830
831
|
this.minLogLevel = gt[e], this.scope = n, this.logProvider = s;
|
831
832
|
}
|
@@ -860,15 +861,15 @@ class Vo {
|
|
860
861
|
*/
|
861
862
|
formatLogData(e) {
|
862
863
|
if (Array.isArray(e) && e.length > 0) {
|
863
|
-
let n = `%c ${
|
864
|
+
let n = `%c ${Uo}`;
|
864
865
|
this.scope && (n = `${n} - ${this.scope}`);
|
865
866
|
const s = N(e[0]) ? e[0].trim() : "";
|
866
867
|
n = `${n} %c ${s}`;
|
867
868
|
const i = [
|
868
869
|
n,
|
869
|
-
|
870
|
+
Bo,
|
870
871
|
// add style for the prefix
|
871
|
-
|
872
|
+
Vo
|
872
873
|
// reset the style for the actual message
|
873
874
|
];
|
874
875
|
return N(e[0]) || i.push(e[0]), i.push(...e.slice(1)), i;
|
@@ -876,27 +877,27 @@ class Vo {
|
|
876
877
|
return e;
|
877
878
|
}
|
878
879
|
}
|
879
|
-
const
|
880
|
-
let
|
880
|
+
const ve = new Fo();
|
881
|
+
let ge = /* @__PURE__ */ function(t) {
|
881
882
|
return t.HANDLEDEXCEPTION = "handledException", t.UNHANDLEDEXCEPTION = "unhandledException", t.UNHANDLEDREJECTION = "unhandledPromiseRejection", t;
|
882
883
|
}({});
|
883
|
-
const Qs = ["localStorage", "memoryStorage", "cookieStorage", "sessionStorage", "none"], nn = "cookieStorage", Vn = "Unable to process/parse source configuration response",
|
884
|
+
const Qs = ["localStorage", "memoryStorage", "cookieStorage", "sessionStorage", "none"], nn = "cookieStorage", Vn = "Unable to process/parse source configuration response", xo = "The source is disabled. Please enable the source in the dashboard to send events.", Ho = "Failed to prepare data for the request.", Go = "Failed to invoke plugin because the extension point name is missing.", jo = "Failed to invoke plugin because the extension point name is invalid.", qo = (t) => `${t}${O}The "getSourceConfig" load API option must be a function that returns valid source configuration data.`, zo = (t, e, n) => `${t}${O}The base URL "${n}" for ${e} is not valid.`, Ko = (t, e, n) => `${t}${O}The consent manager "${e}" is not supported. Please choose one of the following supported consent managers: "${Object.keys(n)}".`, Yo = (t, e) => `${t}${O}Ignoring a non-error: ${e}.`, Fn = "Failed to log breadcrumb", Wo = (t) => `${t}${O}Failed to handle the error.`, Qo = (t) => `${t}${O}Plugin name is missing.`, Xo = (t, e) => `${t}${O}Plugin "${e}" already exists.`, Jo = (t, e) => `${t}${O}Plugin "${e}" not found.`, Zo = (t, e) => `${t}${O}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.`, ea = (t, e, n) => `${t}${O}Plugin "${e}" could not be loaded because some of its dependencies "${n}" do not exist.`, ta = (t, e, n) => `${t}${O}Failed to invoke the "${e}" extension point of plugin "${n}".`, na = (t, e) => `${t}${O}The "${e}" storage type is `, xn = "Failed to fetch the source config", sa = (t, e) => `${t}${O}The write key "${e}" is invalid. It must be a non-empty string. Please check that the write key is correct and try again.`, ia = (t, e) => `${t}${O}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.`, Xs = (t) => `${t}${O}The provided callback parameter is not a function.`, ra = (t, e, n, s, i) => `${t} with status ${e} (${n}) for URL: ${s}. Response: ${i.trim()}`, oa = (t, e, n) => `${t} due to timeout or no connection (${e ? e.type : ""}) at the client side for URL: ${n}`, aa = (t, e) => `${t} for URL: ${e}`, la = (t) => `Failed to save the value for "${t}" to storage`, ua = (t) => `Failed to retrieve or parse data for "${t}" from storage`, ca = (t) => `The server responded with status ${t} while setting the cookies. As a fallback, the cookies will be set client side.`, da = (t) => `The server failed to set the ${t} cookie. As a fallback, the cookies will be set client side.`, Hn = "Failed to set/remove cookies via server. As a fallback, the cookies will be managed client side.", fa = (t, e, n) => `${t}${O}The storage type "${e}" is not supported. Please choose one of the following supported types: "${Qs}". The default type "${n}" will be used instead.`, ha = (t, e, n, s) => `${t}${O}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.`, ga = (t, e, n) => `${t}${O}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.`, ma = (t, e, n) => `${t}${O}The provided cookie domain (${e}) does not match the current webpage's domain (${n}). Hence, the cookies will be set client-side.`, pa = (t, e, n, s) => `${t}${O}The "${e}" property defined under "${n}" is a reserved keyword. Please choose a different property name to avoid conflicts with reserved keywords (${s}).`, va = (t) => `${t}${O}Please make sure that the "context" property in the event API's "options" argument is a valid object literal with key-value pairs.`, ya = (t) => `${t}${O}The Beacon API is not supported by your browser. The events will be sent using XHR instead.`, ba = (t, e, n) => `${t}${O}The session timeout value "${e}" is not a number. The default timeout of ${n} ms will be used instead.`, Ea = (t, e, n) => `${t}${O}The session cut off duration value "${e}" is not a number. The default cut off duration of ${n} ms will be used instead.`, Sa = (t, e, n) => `${t}${O}The session cut off duration value "${e}" ms is less than the session timeout value "${n}" ms. The cut off functionality will be disabled.`, ka = (t) => `${t}${O}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.`, Oa = (t, e, n) => `${t}${O}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.`, Ra = (t, e, n) => `${t}${O}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.`, Ia = (t) => `${t}${O}The storage is either full or unavailable, so the data will not be persisted. Switching to in-memory storage.`, Ta = (t, e, n, s) => `${t}${O}The storage type "${n}" is not available for entry "${e}". The SDK will initialize the entry with "${s}" storage type instead.`, Aa = (t) => `${t}${O}The callback threw an exception`, Da = (t, e) => `${t}${O}The provided source config URL "${e}" is invalid. Using the default source config URL instead.`, Ca = (t, e) => `Failed to load the polyfill script with ID "${t}" from URL ${e}.`, Pa = (t, e, n) => `${t}${O}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.`, _a = (t, e, n) => `${t}${O}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.`, Na = (t, e) => `${t}${O}${e} plugin is deprecated. Please exclude it from the load API options.`, La = (t, e, n, s) => {
|
884
885
|
const i = n.length === 1, r = i ? ` '${n[0]}' plugin was` : ` ['${n.join("', '")}'] plugins were`, a = `${t}${O}${e}, but${r} not configured to load.`;
|
885
886
|
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.`;
|
886
|
-
},
|
887
|
+
}, wa = (t, e) => `${t}${O}The provided polyfill URL "${e}" is invalid. The default polyfill URL will be used instead.`, Ma = (t) => `${t}${O}Page Unloaded event can only be tracked when the Beacon transport is active. Please enable "useBeacon" load API option.`, $a = (t, e) => `${t}${O}Ignoring unknown plugins: ${e.join(", ")}.`, Js = { All: !0 }, bn = "js-integrations", Zs = "plugins", Ua = 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_]*)?$"), ut = "modern", Ut = "https://cdn.rudderlabs.com", En = "v3", ei = `${Ut}/${En}/${ut}/${bn}`, ti = `${Ut}/${En}/${ut}/${Zs}`, ni = "https://api.rudderstack.com", De = "v3", Ba = "xhr", sn = { iubenda: "IubendaConsentManager", oneTrust: "OneTrustConsentManager", ketch: "KetchConsentManager", custom: "CustomConsentManager" }, kt = { [De]: "StorageEncryption", legacy: "StorageEncryptionLegacy" }, Va = { [Ba]: "XhrQueue", beacon: "BeaconQueue" }, Fa = "rsaRequest", xa = "rsaMetrics", Ha = { configUrl: ni, loadIntegration: !0, sessions: { autoTrack: !0, timeout: en, cutOff: { enabled: !1 } }, sameSiteCookie: "Lax", polyfillIfRequired: !0, integrations: Js, useBeacon: !1, beaconQueueOptions: {}, destinationsQueueOptions: {}, queueOptions: {}, lockIntegrationsVersion: !0, lockPluginsVersion: !0, uaChTrackLevel: "none", plugins: [], useGlobalIntegrationsConfigInEvents: !1, bufferDataPlaneEventsUntilReady: !1, dataPlaneEventsBufferTimeout: So, storage: { encryption: { version: De }, migrate: !0, cookie: {} }, sendAdblockPage: !1, sameDomainCookiesOnly: !1, secureCookie: !1, sendAdblockPageOptions: {}, useServerSideCookies: !1 }, Ga = p(I(Ha)), T = { userId: "", userTraits: {}, anonymousId: "", groupId: "", groupTraits: {}, initialReferrer: "", initialReferringDomain: "", sessionInfo: {}, authToken: null }, ja = 10, qa = { userId: p(T.userId), userTraits: p(T.userTraits), anonymousId: p(T.anonymousId), groupId: p(T.groupId), groupTraits: p(T.groupTraits), initialReferrer: p(T.initialReferrer), initialReferringDomain: p(T.initialReferringDomain), sessionInfo: p(T.sessionInfo), authToken: p(T.authToken) }, za = { 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), isAdBlockerDetectionInProgress: p(!1), isAdBlocked: p(void 0), cspBlockedURLs: p([]) }, Ka = { isErrorReportingEnabled: p(!1), isMetricsReportingEnabled: p(!1), breadcrumbs: p([]) }, Ya = p(void 0), Wa = { activeDataplaneUrl: p(void 0), integrationsCDNPath: p(ei), pluginsCDNPath: p(ti), sourceConfigUrl: p(void 0), status: p(void 0), initialized: p(!1), logLevel: p(Ws), loaded: p(!1), readyCallbacks: p([]), writeKey: p(void 0), dataPlaneUrl: p(void 0) }, Qa = { 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) }, Xa = { retries: p(0), dropped: p(0), sent: p(0), queued: p(0), triggered: p(0), metricsServiceUrl: p(void 0) }, Ja = { app: p({ name: Pn, namespace: ho, version: at, installType: Vs }), traits: p(null), library: p({ name: Pn, version: at, 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) }, Za = { configuredDestinations: p([]), activeDestinations: p([]), loadOnlyIntegrations: p({}), failedDestinations: p([]), loadIntegration: p(!0), initializedDestinations: p([]), clientDestinationsReady: p(!1), integrationsConfig: p({}) }, el = { toBeProcessedArray: p([]), readyCallbacksArray: p([]) }, tl = { ready: p(!1), loadedPlugins: p([]), failedPlugins: p([]), pluginsToLoadFromConfig: p([]), activePlugins: p([]), totalPluginsToLoad: p(0) }, nl = { encryptionPluginName: p(void 0), migrate: p(!1), type: p(void 0), cookie: p(void 0), entries: p({}), trulyAnonymousTracking: p(!1) }, sl = { isEnabledServerSideCookies: p(!1), dataServiceUrl: p(void 0) }, il = {
|
887
888
|
eventsQueuePluginName: p(void 0),
|
888
889
|
deliveryEnabled: p(!0)
|
889
890
|
// Delivery should always happen
|
890
|
-
},
|
891
|
+
}, rl = { enabled: p(!1), pageLifecycle: { enabled: p(!1), pageViewId: p(void 0), pageLoadedTimestamp: p(void 0) } }, ol = { capabilities: za, consents: Qa, context: Ja, eventBuffer: el, lifecycle: Wa, loadOptions: Ga, metrics: Xa, nativeDestinations: Za, plugins: tl, reporting: Ka, session: qa, source: Ya, storage: nl, serverCookies: sl, dataPlaneEvents: il, autoTrack: rl }, o = { ...I(ol) };
|
891
892
|
function si(t) {
|
892
893
|
return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
|
893
894
|
}
|
894
|
-
var Ot = { exports: {} }, Rt = { exports: {} },
|
895
|
-
function
|
895
|
+
var Ot = { exports: {} }, Rt = { exports: {} }, al = Rt.exports, Gn;
|
896
|
+
function ll() {
|
896
897
|
return Gn || (Gn = 1, function(t, e) {
|
897
898
|
(function(n, s) {
|
898
899
|
t.exports = s();
|
899
|
-
})(
|
900
|
+
})(al, function() {
|
900
901
|
function n(h) {
|
901
902
|
return !isNaN(parseFloat(h)) && isFinite(h);
|
902
903
|
}
|
@@ -962,12 +963,12 @@ function al() {
|
|
962
963
|
});
|
963
964
|
}(Rt)), Rt.exports;
|
964
965
|
}
|
965
|
-
var
|
966
|
-
function
|
966
|
+
var ul = Ot.exports, jn;
|
967
|
+
function cl() {
|
967
968
|
return jn || (jn = 1, function(t, e) {
|
968
969
|
(function(n, s) {
|
969
|
-
t.exports = s(
|
970
|
-
})(
|
970
|
+
t.exports = s(ll());
|
971
|
+
})(ul, function(s) {
|
971
972
|
var i = /(^|@)\S+:\d+/, r = /^\s*at .*(\S+:\d+|\(native\))/m, a = /^(eval@)?(\[native code])?$/;
|
972
973
|
return {
|
973
974
|
/**
|
@@ -1056,14 +1057,14 @@ function ul() {
|
|
1056
1057
|
});
|
1057
1058
|
}(Ot)), Ot.exports;
|
1058
1059
|
}
|
1059
|
-
var
|
1060
|
-
const
|
1061
|
-
const e = { file: t.fileName, method:
|
1060
|
+
var dl = cl();
|
1061
|
+
const fl = /* @__PURE__ */ si(dl), ii = "global code", hl = (t) => C(t) && /^global code$/i.test(t) ? ii : t, gl = (t) => {
|
1062
|
+
const e = { file: t.fileName, method: hl(t.functionName), lineNumber: t.lineNumber, columnNumber: t.columnNumber };
|
1062
1063
|
return e.lineNumber && e.lineNumber > -1 && !e.file && !e.method && (e.file = ii), e;
|
1063
1064
|
}, qn = (t) => N(t) ? t : "";
|
1064
1065
|
function zn(t, e, n, s) {
|
1065
1066
|
return { errorClass: qn(t), message: `${n}${qn(e)}`, type: "browserjs", stacktrace: s.reduce((i, r) => {
|
1066
|
-
const a =
|
1067
|
+
const a = gl(r);
|
1067
1068
|
try {
|
1068
1069
|
return JSON.stringify(a) === "{}" ? i : i.concat(a);
|
1069
1070
|
} catch {
|
@@ -1073,10 +1074,10 @@ function zn(t, e, n, s) {
|
|
1073
1074
|
}
|
1074
1075
|
const ri = (t, e) => {
|
1075
1076
|
let n;
|
1076
|
-
return hn(t) && N(pn(t)) ? n = t : (e.warn(
|
1077
|
-
},
|
1077
|
+
return hn(t) && N(pn(t)) ? n = t : (e.warn(Yo(tt, ue(t))), n = void 0), n;
|
1078
|
+
}, ml = (t, e) => {
|
1078
1079
|
try {
|
1079
|
-
const n =
|
1080
|
+
const n = fl.parse(t);
|
1080
1081
|
return zn(t.name, t.message, e, n);
|
1081
1082
|
} catch {
|
1082
1083
|
return zn(t.name, t.message, e, []);
|
@@ -1088,21 +1089,21 @@ const ri = (t, e) => {
|
|
1088
1089
|
const s = vn(n, "Failed to parse response data");
|
1089
1090
|
e(s);
|
1090
1091
|
}
|
1091
|
-
}, It = "The request failed",
|
1092
|
-
const s = F(
|
1092
|
+
}, It = "The request failed", pl = [/Failed to fetch dynamically imported module: .*/], vl = [/Unable to load \(.*\) the script with the id .*/, /A timeout of \d+ ms occurred while trying to load the script with id .*/], yl = [new RegExp(`${It}.*`), /A script with the id .* is already loaded\./], bl = [...pl, ...vl], El = { headers: { Accept: "application/json", "Content-Type": "application/json;charset=UTF-8" }, method: "GET" }, Yn = (t, e, n) => {
|
1093
|
+
const s = F(El, e || {});
|
1093
1094
|
return n && (s.headers = F(s.headers, { Authorization: n })), s.url = t, s;
|
1094
|
-
}, Wn = (t, e =
|
1095
|
+
}, Wn = (t, e = bo, n) => new Promise((s, i) => {
|
1095
1096
|
let r;
|
1096
1097
|
if (t.sendRawData === !0)
|
1097
1098
|
r = t.data;
|
1098
1099
|
else if (r = ue(t.data, !1, [], n), ee(r)) {
|
1099
|
-
i({ error: new Error(
|
1100
|
+
i({ error: new Error(Ho), undefined: void 0, options: t });
|
1100
1101
|
return;
|
1101
1102
|
}
|
1102
1103
|
const a = new XMLHttpRequest(), u = (c) => {
|
1103
|
-
i({ error: new Error(
|
1104
|
+
i({ error: new Error(ra(It, a.status, a.statusText, t.url, a.responseText)), xhr: a, options: t });
|
1104
1105
|
}, l = (c) => {
|
1105
|
-
i({ error: new Error(
|
1106
|
+
i({ error: new Error(oa(It, c, t.url)), xhr: a, options: t, ...c?.type === "timeout" ? { timedOut: !0 } : {} });
|
1106
1107
|
};
|
1107
1108
|
a.ontimeout = l, a.onerror = l, a.onload = () => {
|
1108
1109
|
a.status >= 200 && a.status < 400 ? s({ response: a.responseText, xhr: a, options: t }) : u();
|
@@ -1112,10 +1113,10 @@ const ri = (t, e) => {
|
|
1112
1113
|
try {
|
1113
1114
|
a.send(r);
|
1114
1115
|
} catch (c) {
|
1115
|
-
i({ error: vn(c,
|
1116
|
+
i({ error: vn(c, aa(It, t.url)), xhr: a, options: t });
|
1116
1117
|
}
|
1117
1118
|
});
|
1118
|
-
class
|
1119
|
+
class Sl {
|
1119
1120
|
constructor(e) {
|
1120
1121
|
this.logger = e, this.onError = this.onError.bind(this);
|
1121
1122
|
}
|
@@ -1149,13 +1150,13 @@ class El {
|
|
1149
1150
|
* Handle errors
|
1150
1151
|
*/
|
1151
1152
|
onError(e, n) {
|
1152
|
-
this.errorHandler?.onError({ error: e, context:
|
1153
|
+
this.errorHandler?.onError({ error: e, context: Wr, groupingHash: n });
|
1153
1154
|
}
|
1154
1155
|
/**
|
1155
1156
|
* Set basic authentication header (eg writekey)
|
1156
1157
|
*/
|
1157
1158
|
setAuthHeader(e, n = !1) {
|
1158
|
-
const s = n ? e :
|
1159
|
+
const s = n ? e : zr(`${e}:`);
|
1159
1160
|
this.basicAuthHeader = `Basic ${s}`;
|
1160
1161
|
}
|
1161
1162
|
/**
|
@@ -1165,10 +1166,10 @@ class El {
|
|
1165
1166
|
this.basicAuthHeader = void 0;
|
1166
1167
|
}
|
1167
1168
|
}
|
1168
|
-
const oi = new
|
1169
|
+
const oi = new Sl(ve), kl = "1", Ol = () => [
|
1169
1170
|
"rsa"
|
1170
1171
|
// Prefix for all the SDK scripts including plugins and module federated chunks
|
1171
|
-
],
|
1172
|
+
], Rl = ["www.test-host.com", "localhost", "127.0.0.1", "[::1]"], Il = [
|
1172
1173
|
"userId",
|
1173
1174
|
"userTraits",
|
1174
1175
|
"groupId",
|
@@ -1181,7 +1182,7 @@ const oi = new El(pe), Sl = "1", kl = () => [
|
|
1181
1182
|
// pre-load event buffer (may contain PII)
|
1182
1183
|
"traits",
|
1183
1184
|
"authToken"
|
1184
|
-
],
|
1185
|
+
], Tl = "RudderStack JavaScript SDK", Al = "__REPOSITORY_URL__", Dl = "js", ai = (t) => {
|
1185
1186
|
o.capabilities.isAdBlockerDetectionInProgress.value = !0;
|
1186
1187
|
try {
|
1187
1188
|
const e = new URL(o.lifecycle.sourceConfigUrl.value), n = `${e.origin}${e.pathname}?view=ad`;
|
@@ -1195,34 +1196,34 @@ const oi = new El(pe), Sl = "1", kl = () => [
|
|
1195
1196
|
} catch (e) {
|
1196
1197
|
throw o.capabilities.isAdBlockerDetectionInProgress.value = !1, e;
|
1197
1198
|
}
|
1198
|
-
},
|
1199
|
+
}, Cl = (t, e) => {
|
1199
1200
|
switch (e) {
|
1200
|
-
case
|
1201
|
+
case ge.UNHANDLEDEXCEPTION: {
|
1201
1202
|
const { error: n } = t;
|
1202
1203
|
return n || t;
|
1203
1204
|
}
|
1204
|
-
case
|
1205
|
+
case ge.UNHANDLEDREJECTION:
|
1205
1206
|
return t.reason;
|
1206
|
-
case
|
1207
|
+
case ge.HANDLEDEXCEPTION:
|
1207
1208
|
default:
|
1208
1209
|
return t;
|
1209
1210
|
}
|
1210
|
-
},
|
1211
|
+
}, Pl = (t) => ({ type: "manual", name: t, timestamp: /* @__PURE__ */ new Date(), metaData: {} }), _l = () => {
|
1211
1212
|
const t = globalThis.location.hostname;
|
1212
|
-
return !t || t &&
|
1213
|
-
},
|
1214
|
-
const e = ue(t, !1,
|
1213
|
+
return !t || t && Rl.includes(t) ? "development" : "production";
|
1214
|
+
}, Nl = (t) => {
|
1215
|
+
const e = ue(t, !1, Il);
|
1215
1216
|
return e !== null ? JSON.parse(e) : {};
|
1216
|
-
},
|
1217
|
+
}, Ll = () => globalThis.location.href.split("?")[0], wl = (t, e, n, s) => ({ id: `${t.value?.id ?? n.writeKey.value}..${e.sessionInfo.value.id ?? "NA"}..${s.pageLifecycle.pageViewId.value ?? "NA"}`, name: t.value?.name ?? "NA" }), Ml = (t, e) => ({ locale: t.value ?? "NA", userAgent: e.value ?? "NA", time: /* @__PURE__ */ new Date() }), $l = (t, e, n, s) => {
|
1217
1218
|
const { context: i, lifecycle: r, session: a, source: u, reporting: l, autoTrack: c } = n, { app: d, locale: g, userAgent: E, timezone: m, screen: f, library: h } = i;
|
1218
|
-
return { payloadVersion: "5", notifier: { name:
|
1219
|
+
return { payloadVersion: "5", notifier: { name: Tl, version: d.value.version, url: Al }, events: [{ exceptions: [I(t)], severity: e.severity, unhandled: e.unhandled, severityReason: e.severityReason, app: { version: d.value.version, releaseStage: _l(), type: d.value.installType }, device: Ml(g, E), request: { url: Ll(), clientIp: "[NOT COLLECTED]" }, breadcrumbs: I(l.breadcrumbs.value), context: t.message, groupingHash: s, metaData: {
|
1219
1220
|
app: { snippetVersion: h.value.snippetVersion },
|
1220
1221
|
device: { ...f.value, timezone: m.value },
|
1221
1222
|
// Add rest of the state groups as metadata
|
1222
1223
|
// so that they show up as separate tabs in the dashboard
|
1223
|
-
...
|
1224
|
-
}, user:
|
1225
|
-
},
|
1224
|
+
...Nl(n)
|
1225
|
+
}, user: wl(u, a, r, c) }] };
|
1226
|
+
}, Ul = (t, e, n) => {
|
1226
1227
|
if (V(t.capabilities.isAdBlocked.value)) {
|
1227
1228
|
t.capabilities.isAdBlockerDetectionInProgress.value === !1 && ai(e);
|
1228
1229
|
const s = ce(() => {
|
@@ -1230,25 +1231,25 @@ const oi = new El(pe), Sl = "1", kl = () => [
|
|
1230
1231
|
});
|
1231
1232
|
} else
|
1232
1233
|
n(t.capabilities.isAdBlocked.value === !1);
|
1233
|
-
},
|
1234
|
+
}, Bl = (t, e, n) => {
|
1234
1235
|
const s = t.message;
|
1235
1236
|
return new Promise((i) => {
|
1236
|
-
if (
|
1237
|
+
if (bl.some((r) => r.test(s))) {
|
1237
1238
|
const r = /https?:\/\/[^\s"'(),;<>[\]{}]+/.exec(s)?.[0];
|
1238
|
-
N(r) ? r.startsWith(Ut) ? e.capabilities.cspBlockedURLs.value.includes(r) ? i(!1) :
|
1239
|
+
N(r) ? r.startsWith(Ut) ? e.capabilities.cspBlockedURLs.value.includes(r) ? i(!1) : Ul(e, n, i) : i(!1) : i(!0);
|
1239
1240
|
} else
|
1240
|
-
i(!
|
1241
|
+
i(!yl.some((r) => r.test(s)));
|
1241
1242
|
});
|
1242
|
-
},
|
1243
|
+
}, Vl = (t) => {
|
1243
1244
|
const e = t.stacktrace[0]?.file;
|
1244
1245
|
if (!e || typeof e != "string")
|
1245
1246
|
return !1;
|
1246
1247
|
const n = e.substring(e.lastIndexOf("/") + 1), s = e.split("/");
|
1247
|
-
return s[s.length - 2] === bn ||
|
1248
|
-
},
|
1249
|
-
const n = { version:
|
1248
|
+
return s[s.length - 2] === bn || Ol().some((r) => n.startsWith(r) && n.endsWith(".js"));
|
1249
|
+
}, Fl = (t, e) => {
|
1250
|
+
const n = { version: kl, message_id: Mt(), source: { name: Dl, sdk_version: e.context.app.value.version, write_key: e.lifecycle.writeKey.value, install_type: e.context.app.value.installType }, errors: t };
|
1250
1251
|
return ue(n);
|
1251
|
-
},
|
1252
|
+
}, xl = (t, e, n, s) => {
|
1252
1253
|
let i;
|
1253
1254
|
if (n.context.app.value.installType !== "cdn")
|
1254
1255
|
return i;
|
@@ -1262,7 +1263,7 @@ const oi = new El(pe), Sl = "1", kl = () => [
|
|
1262
1263
|
}
|
1263
1264
|
return i;
|
1264
1265
|
};
|
1265
|
-
class
|
1266
|
+
class Hl {
|
1266
1267
|
initialized = !1;
|
1267
1268
|
// If no logger is passed errors will be thrown as unhandled error
|
1268
1269
|
constructor(e, n) {
|
@@ -1280,9 +1281,9 @@ class xl {
|
|
1280
1281
|
*/
|
1281
1282
|
attachErrorListeners() {
|
1282
1283
|
globalThis.addEventListener("error", (e) => {
|
1283
|
-
this.onError({ error: e, context: tt, errorType:
|
1284
|
+
this.onError({ error: e, context: tt, errorType: ge.UNHANDLEDEXCEPTION });
|
1284
1285
|
}), globalThis.addEventListener("unhandledrejection", (e) => {
|
1285
|
-
this.onError({ error: e, context: tt, errorType:
|
1286
|
+
this.onError({ error: e, context: tt, errorType: ge.UNHANDLEDREJECTION });
|
1286
1287
|
}), document.addEventListener("securitypolicyviolation", (e) => {
|
1287
1288
|
const n = N(e.blockedURI) ? e.blockedURI : "";
|
1288
1289
|
e.disposition === "enforce" && n.startsWith(Ut) && !o.capabilities.cspBlockedURLs.value.includes(n) && (o.capabilities.cspBlockedURLs.value = [...o.capabilities.cspBlockedURLs.value, n]);
|
@@ -1299,19 +1300,19 @@ class xl {
|
|
1299
1300
|
*/
|
1300
1301
|
async onError(e) {
|
1301
1302
|
try {
|
1302
|
-
const { error: n, context: s, customMessage: i, groupingHash: r } = e, a = e.errorType ??
|
1303
|
+
const { error: n, context: s, customMessage: i, groupingHash: r } = e, a = e.errorType ?? ge.HANDLEDEXCEPTION, u = Cl(n, a), l = ri(u, this.logger);
|
1303
1304
|
if (V(l))
|
1304
1305
|
return;
|
1305
|
-
const c = i ? `${i} - ` : "", d = `${s}${O}${c}`, g =
|
1306
|
-
if (!m && !
|
1306
|
+
const c = i ? `${i} - ` : "", d = `${s}${O}${c}`, g = ml(l, d), m = pn(l).includes(St);
|
1307
|
+
if (!m && !Vl(g) && a !== ge.HANDLEDEXCEPTION)
|
1307
1308
|
return;
|
1308
|
-
if (o.reporting.isErrorReportingEnabled.value && await
|
1309
|
-
const h = { severity: "error", unhandled: a !==
|
1310
|
-
this.httpClient.getAsyncData({ url: o.metrics.metricsServiceUrl.value, options: { method: "POST", data:
|
1309
|
+
if (o.reporting.isErrorReportingEnabled.value && await Bl(g, o, this.httpClient)) {
|
1310
|
+
const h = { severity: "error", unhandled: a !== ge.HANDLEDEXCEPTION, severityReason: { type: a } }, v = xl(r, g.message, o, this.logger), y = $l(g, h, o, v);
|
1311
|
+
this.httpClient.getAsyncData({ url: o.metrics.metricsServiceUrl.value, options: { method: "POST", data: Fl(y, o), sendRawData: !0 }, isRawResponse: !0 });
|
1311
1312
|
}
|
1312
|
-
(a ===
|
1313
|
+
(a === ge.HANDLEDEXCEPTION || m) && this.logger.error(g.message);
|
1313
1314
|
} catch (n) {
|
1314
|
-
this.logger.error(
|
1315
|
+
this.logger.error(Wo(tt), n);
|
1315
1316
|
}
|
1316
1317
|
}
|
1317
1318
|
/**
|
@@ -1322,14 +1323,14 @@ class xl {
|
|
1322
1323
|
*/
|
1323
1324
|
leaveBreadcrumb(e) {
|
1324
1325
|
try {
|
1325
|
-
o.reporting.breadcrumbs.value = [...o.reporting.breadcrumbs.value,
|
1326
|
+
o.reporting.breadcrumbs.value = [...o.reporting.breadcrumbs.value, Pl(e)];
|
1326
1327
|
} catch (n) {
|
1327
1328
|
this.onError({ error: n, context: tt, customMessage: Fn, groupingHash: Fn });
|
1328
1329
|
}
|
1329
1330
|
}
|
1330
1331
|
}
|
1331
|
-
const li = new
|
1332
|
-
class
|
1332
|
+
const li = new Hl(oi, ve);
|
1333
|
+
class Gl {
|
1333
1334
|
plugins = [];
|
1334
1335
|
byName = {};
|
1335
1336
|
cache = {};
|
@@ -1339,14 +1340,14 @@ class Hl {
|
|
1339
1340
|
}
|
1340
1341
|
register(e, n) {
|
1341
1342
|
if (!e.name) {
|
1342
|
-
const i =
|
1343
|
+
const i = Qo($e);
|
1343
1344
|
if (this.config.throws)
|
1344
1345
|
throw new Error(i);
|
1345
1346
|
this.logger.error(i, e);
|
1346
1347
|
return;
|
1347
1348
|
}
|
1348
1349
|
if (this.byName[e.name]) {
|
1349
|
-
const i =
|
1350
|
+
const i = Xo($e, e.name);
|
1350
1351
|
if (this.config.throws)
|
1351
1352
|
throw new Error(i);
|
1352
1353
|
this.logger.error(i);
|
@@ -1361,7 +1362,7 @@ class Hl {
|
|
1361
1362
|
unregister(e) {
|
1362
1363
|
const n = this.byName[e];
|
1363
1364
|
if (!n) {
|
1364
|
-
const i =
|
1365
|
+
const i = Jo($e, e);
|
1365
1366
|
if (this.config.throws)
|
1366
1367
|
throw new Error(i);
|
1367
1368
|
this.logger.error(i);
|
@@ -1369,7 +1370,7 @@ class Hl {
|
|
1369
1370
|
}
|
1370
1371
|
const s = this.plugins.indexOf(n);
|
1371
1372
|
if (s === -1) {
|
1372
|
-
const i =
|
1373
|
+
const i = Zo($e, e);
|
1373
1374
|
if (this.config.throws)
|
1374
1375
|
throw new Error(i);
|
1375
1376
|
this.logger.error(i);
|
@@ -1385,9 +1386,9 @@ class Hl {
|
|
1385
1386
|
return this.cache[n] || (this.cache[n] = this.plugins.filter((s) => {
|
1386
1387
|
if (s.deps?.some((i) => !this.byName[i])) {
|
1387
1388
|
const i = s.deps.filter((r) => !this.byName[r]);
|
1388
|
-
return this.logger.error(
|
1389
|
+
return this.logger.error(ea($e, s.name, i)), !1;
|
1389
1390
|
}
|
1390
|
-
return n === "." ? !0 :
|
1391
|
+
return n === "." ? !0 : Fr(s, n);
|
1391
1392
|
})), this.cache[n];
|
1392
1393
|
}
|
1393
1394
|
// This method allows to process this.plugins so that it could
|
@@ -1398,10 +1399,10 @@ class Hl {
|
|
1398
1399
|
invoke(e, n = !0, ...s) {
|
1399
1400
|
let i = e;
|
1400
1401
|
if (!i)
|
1401
|
-
throw new Error(
|
1402
|
+
throw new Error(Go);
|
1402
1403
|
const r = i.startsWith("!"), a = this.config.throws ?? i.endsWith("!");
|
1403
1404
|
if (i = i.replace(/(^!|!$)/g, ""), !i)
|
1404
|
-
throw new Error(
|
1405
|
+
throw new Error(jo);
|
1405
1406
|
const u = i.split(".");
|
1406
1407
|
u.pop();
|
1407
1408
|
const l = u.join(".");
|
@@ -1414,7 +1415,7 @@ class Hl {
|
|
1414
1415
|
} catch (E) {
|
1415
1416
|
if (a)
|
1416
1417
|
throw E;
|
1417
|
-
this.logger.error(
|
1418
|
+
this.logger.error(ta($e, i, d.name), E);
|
1418
1419
|
}
|
1419
1420
|
return null;
|
1420
1421
|
});
|
@@ -1426,8 +1427,8 @@ class Hl {
|
|
1426
1427
|
return this.invoke(e, !0, ...n);
|
1427
1428
|
}
|
1428
1429
|
}
|
1429
|
-
const
|
1430
|
-
t.config.useNativeSDK === !0,
|
1430
|
+
const jl = new Gl(ve, { throws: !0 }), ql = (t) => t.config.connectionMode !== "cloud" || t.config.useNativeSDKToSend === !0 || // this is the older flag for hybrid mode destinations
|
1431
|
+
t.config.useNativeSDK === !0, zl = (t) => t.config.connectionMode === "hybrid" || t.config.useNativeSDKToSend === !0, Qn = (t) => t.filter(ql), ui = ["BeaconQueue", "CustomConsentManager", "DeviceModeDestinations", "DeviceModeTransformation", "ExternalAnonymousId", "GoogleLinker", "IubendaConsentManager", "KetchConsentManager", "NativeDestinationQueue", "OneTrustConsentManager", "StorageEncryption", "StorageEncryptionLegacy", "StorageMigrator", "XhrQueue"], Kl = ["Bugsnag", "ErrorReporting"], Yl = {
|
1431
1432
|
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" }
|
1432
1433
|
};
|
1433
1434
|
function ci(t, e) {
|
@@ -1436,9 +1437,9 @@ function ci(t, e) {
|
|
1436
1437
|
typeof n[s] == "object" && typeof e[s] == "object" && (n[s] = ci(n[s], e[s]));
|
1437
1438
|
return n;
|
1438
1439
|
}
|
1439
|
-
const
|
1440
|
-
async function
|
1441
|
-
const e =
|
1440
|
+
const Wl = (t) => ci({}, (globalThis.__federation_shared__ || {}).default || {});
|
1441
|
+
async function Ql(t) {
|
1442
|
+
const e = Yl[t];
|
1442
1443
|
if (e.inited)
|
1443
1444
|
return e.lib;
|
1444
1445
|
if (["esm", "systemjs"].includes(e.format))
|
@@ -1450,7 +1451,7 @@ async function Wl(t) {
|
|
1450
1451
|
r
|
1451
1452
|
).then((a) => {
|
1452
1453
|
if (!e.inited) {
|
1453
|
-
const u =
|
1454
|
+
const u = Wl();
|
1454
1455
|
a.init(u), e.lib = a, e.lib.init(u), e.inited = !0;
|
1455
1456
|
}
|
1456
1457
|
n(e.lib);
|
@@ -1466,9 +1467,9 @@ function G(t, e) {
|
|
1466
1467
|
return t;
|
1467
1468
|
}
|
1468
1469
|
function j(t, e) {
|
1469
|
-
return
|
1470
|
+
return Ql(t).then((n) => n.get(e).then((s) => s()));
|
1470
1471
|
}
|
1471
|
-
const
|
1472
|
+
const Xl = (t) => {
|
1472
1473
|
switch (t) {
|
1473
1474
|
case "BeaconQueue":
|
1474
1475
|
return () => j("rudderAnalyticsRemotePlugins", "./BeaconQueue").then((e) => G(e, !0));
|
@@ -1501,16 +1502,16 @@ const Ql = (t) => {
|
|
1501
1502
|
default:
|
1502
1503
|
return;
|
1503
1504
|
}
|
1504
|
-
},
|
1505
|
+
}, Jl = (t) => {
|
1505
1506
|
const e = {};
|
1506
1507
|
return t.forEach((n) => {
|
1507
1508
|
if (ui.includes(n)) {
|
1508
|
-
const s =
|
1509
|
+
const s = Xl(n);
|
1509
1510
|
s && (e[n] = s);
|
1510
1511
|
}
|
1511
1512
|
}), e;
|
1512
|
-
}, di = () => ({}),
|
1513
|
-
class
|
1513
|
+
}, di = () => ({}), Zl = () => ({}), eu = (t) => Jl?.(t) || {}, jt = { ...di(), ...Zl() }, tu = (t) => ({ ...eu(t) });
|
1514
|
+
class nu {
|
1514
1515
|
constructor(e, n, s) {
|
1515
1516
|
this.engine = e, this.errorHandler = n, this.logger = s, this.onError = this.onError.bind(this);
|
1516
1517
|
}
|
@@ -1539,8 +1540,8 @@ class tu {
|
|
1539
1540
|
let e = o.plugins.pluginsToLoadFromConfig.value;
|
1540
1541
|
if (!e)
|
1541
1542
|
return [];
|
1542
|
-
e = e.filter((i) =>
|
1543
|
-
const n = [{ configurationStatus: () => C(o.dataPlaneEvents.eventsQueuePluginName.value), configurationStatusStr: "Data plane events delivery is enabled", activePluginName: o.dataPlaneEvents.eventsQueuePluginName.value, supportedPlugins: Object.values(
|
1543
|
+
e = e.filter((i) => Kl.includes(i) ? (this.logger.warn(Na(ft, i)), !1) : !0);
|
1544
|
+
const n = [{ configurationStatus: () => C(o.dataPlaneEvents.eventsQueuePluginName.value), configurationStatusStr: "Data plane events delivery is enabled", activePluginName: o.dataPlaneEvents.eventsQueuePluginName.value, supportedPlugins: Object.values(Va), shouldAddMissingPlugins: !0 }, { configurationStatus: () => Qn(o.nativeDestinations.configuredDestinations.value).length > 0, configurationStatusStr: "Device mode destinations are connected to the source", supportedPlugins: ["DeviceModeDestinations", "NativeDestinationQueue"] }, { configurationStatus: () => Qn(o.nativeDestinations.configuredDestinations.value).some((i) => i.shouldApplyDeviceModeTransformation), configurationStatusStr: "Device mode transformations are enabled for at least one destination", supportedPlugins: ["DeviceModeTransformation"] }, { configurationStatus: () => C(o.consents.activeConsentManagerPluginName.value), configurationStatusStr: "Consent management is enabled", activePluginName: o.consents.activeConsentManagerPluginName.value, supportedPlugins: Object.values(sn) }, { configurationStatus: () => C(o.storage.encryptionPluginName.value), configurationStatusStr: "Storage encryption is enabled", activePluginName: o.storage.encryptionPluginName.value, supportedPlugins: Object.values(kt) }, { configurationStatus: () => o.storage.migrate.value, configurationStatusStr: "Storage migration is enabled", supportedPlugins: ["StorageMigrator"] }], s = !1;
|
1544
1545
|
return n.forEach((i) => {
|
1545
1546
|
i.configurationStatus() ? (e = e.filter(
|
1546
1547
|
i.activePluginName ? (r) => !(r !== i.activePluginName && i.supportedPlugins.includes(r)) : (r) => C(r)
|
@@ -1553,7 +1554,7 @@ class tu {
|
|
1553
1554
|
let r;
|
1554
1555
|
e.activePluginName ? r = [...e.basePlugins || [], e.activePluginName] : r = [...e.supportedPlugins];
|
1555
1556
|
const a = r.filter((u) => !s.includes(u));
|
1556
|
-
a.length > 0 && (i && s.push(...a), this.logger.warn(
|
1557
|
+
a.length > 0 && (i && s.push(...a), this.logger.warn(La(ft, e.configurationStatusStr, a, i)));
|
1557
1558
|
}
|
1558
1559
|
/**
|
1559
1560
|
* Determine the list of plugins that should be activated
|
@@ -1562,7 +1563,7 @@ class tu {
|
|
1562
1563
|
const e = this.getPluginsToLoadBasedOnConfig(), n = [...Object.keys(jt), ...ui], s = [], i = [];
|
1563
1564
|
e.forEach((r) => {
|
1564
1565
|
n.includes(r) ? s.push(r) : i.push(r);
|
1565
|
-
}), i.length > 0 && this.logger.warn(
|
1566
|
+
}), i.length > 0 && this.logger.warn($a(ft, i)), x(() => {
|
1566
1567
|
o.plugins.totalPluginsToLoad.value = e.length, o.plugins.activePlugins.value = s, o.plugins.failedPlugins.value = i;
|
1567
1568
|
});
|
1568
1569
|
}
|
@@ -1578,7 +1579,7 @@ class tu {
|
|
1578
1579
|
* Register plugins that are dynamic imports to PluginEngine
|
1579
1580
|
*/
|
1580
1581
|
registerRemotePlugins() {
|
1581
|
-
const e =
|
1582
|
+
const e = tu(o.plugins.activePlugins.value);
|
1582
1583
|
Promise.all(Object.keys(e).map(async (n) => {
|
1583
1584
|
await e[n]().then((s) => this.register([s.default()])).catch((s) => {
|
1584
1585
|
o.plugins.failedPlugins.value = [...o.plugins.failedPlugins.value, n], this.onError(s, `Failed to load plugin "${n}"`, s);
|
@@ -1636,11 +1637,11 @@ class tu {
|
|
1636
1637
|
this.errorHandler.onError({ error: e, context: ft, customMessage: n, groupingHash: s });
|
1637
1638
|
}
|
1638
1639
|
}
|
1639
|
-
const q = "cookieStorage", Y = "localStorage", J = "sessionStorage", le = "memoryStorage", Ne = "none",
|
1640
|
+
const q = "cookieStorage", Y = "localStorage", J = "sessionStorage", le = "memoryStorage", Ne = "none", su = "rl_user_id", iu = "rl_trait", ru = "rl_anonymous_id", ou = "rl_group_id", au = "rl_group_trait", lu = "rl_page_init_referrer", uu = "rl_page_init_referring_domain", cu = "rl_session", du = "rl_auth_token", Ue = { userId: su, userTraits: iu, anonymousId: ru, groupId: ou, groupTraits: au, initialReferrer: lu, initialReferringDomain: uu, sessionInfo: cu, authToken: du }, fu = "test_rudder_cookie", hu = "test_rudder_ls", gu = "test_rudder_ss", mu = "__tld__", fi = "clientDataInCookie", hi = "clientDataInLocalStorage", pu = "clientDataInMemory", gi = "clientDataInSessionStorage", mi = ["userId", "userTraits", "anonymousId", "groupId", "groupTraits", "initialReferrer", "initialReferringDomain", "sessionInfo", "authToken"], Be = { [q]: fi, [Y]: hi, [le]: pu, [J]: gi }, Xn = (t, e) => {
|
1640
1641
|
try {
|
1641
1642
|
return encodeURIComponent(t);
|
1642
1643
|
} catch (n) {
|
1643
|
-
e?.error(
|
1644
|
+
e?.error(ao, n);
|
1644
1645
|
return;
|
1645
1646
|
}
|
1646
1647
|
}, Jn = (t) => {
|
@@ -1649,7 +1650,7 @@ const q = "cookieStorage", Y = "localStorage", J = "sessionStorage", le = "memor
|
|
1649
1650
|
} catch {
|
1650
1651
|
return;
|
1651
1652
|
}
|
1652
|
-
},
|
1653
|
+
}, vu = (t) => {
|
1653
1654
|
const e = {}, n = t.split(/\s*;\s*/);
|
1654
1655
|
let s;
|
1655
1656
|
return n[0] && n.forEach((i) => {
|
@@ -1657,29 +1658,29 @@ const q = "cookieStorage", Y = "localStorage", J = "sessionStorage", le = "memor
|
|
1657
1658
|
const r = s[0] ? Jn(s[0]) : void 0;
|
1658
1659
|
r && (e[r] = s[1] ? Jn(s[1]) : void 0);
|
1659
1660
|
}), e;
|
1660
|
-
},
|
1661
|
+
}, yu = (t, e, n, s) => {
|
1661
1662
|
const i = { ...n || {} };
|
1662
1663
|
let r = `${Xn(t, s)}=${Xn(e, s)}`;
|
1663
1664
|
ee(e) && (i.maxage = -1), i.maxage && (i.expires = new Date(+/* @__PURE__ */ new Date() + i.maxage)), i.path && (r += `; path=${i.path}`), i.domain && (r += `; domain=${i.domain}`), i.expires && (r += `; expires=${i.expires.toUTCString()}`), i.samesite && (r += `; samesite=${i.samesite}`), i.secure && (r += "; secure"), globalThis.document.cookie = r;
|
1664
1665
|
}, rn = () => {
|
1665
1666
|
const t = globalThis.document.cookie;
|
1666
|
-
return
|
1667
|
-
},
|
1667
|
+
return vu(t);
|
1668
|
+
}, bu = (t) => rn()[t], Ee = function(t, e, n, s) {
|
1668
1669
|
switch (arguments.length) {
|
1669
1670
|
case 4:
|
1670
1671
|
case 3:
|
1671
1672
|
case 2:
|
1672
|
-
return
|
1673
|
+
return yu(t, e, n, s);
|
1673
1674
|
case 1:
|
1674
|
-
return t ?
|
1675
|
+
return t ? bu(t) : rn();
|
1675
1676
|
default:
|
1676
1677
|
return rn();
|
1677
1678
|
}
|
1678
|
-
},
|
1679
|
+
}, Eu = (t) => {
|
1679
1680
|
const e = document.createElement("a");
|
1680
1681
|
return e.href = t, e.hostname;
|
1681
|
-
},
|
1682
|
-
const n = (typeof globalThis.URL != "function" ?
|
1682
|
+
}, Su = (t) => {
|
1683
|
+
const n = (typeof globalThis.URL != "function" ? Eu(t) : new URL(t).hostname)?.split(".") ?? [], s = n[n.length - 1], i = [];
|
1683
1684
|
if (n.length === 4 && s && s === parseInt(s, 10).toString())
|
1684
1685
|
return i;
|
1685
1686
|
if (n.length <= 1)
|
@@ -1687,24 +1688,24 @@ const q = "cookieStorage", Y = "localStorage", J = "sessionStorage", le = "memor
|
|
1687
1688
|
for (let r = n.length - 2; r >= 0; r -= 1)
|
1688
1689
|
i.push(n.slice(r).join("."));
|
1689
1690
|
return i;
|
1690
|
-
},
|
1691
|
-
const e =
|
1691
|
+
}, ku = (t) => {
|
1692
|
+
const e = Su(t);
|
1692
1693
|
for (let n = 0; n < e.length; n += 1) {
|
1693
|
-
const s = e[n], i =
|
1694
|
+
const s = e[n], i = mu, r = { domain: `${s.indexOf("localhost") !== -1 ? "" : "."}${s}` };
|
1694
1695
|
if (Ee(i, 1, r), Ee(i))
|
1695
1696
|
return Ee(i, null, r), s;
|
1696
1697
|
}
|
1697
1698
|
return "";
|
1698
|
-
},
|
1699
|
-
const t = `.${
|
1700
|
-
return { maxage:
|
1701
|
-
},
|
1702
|
-
class
|
1699
|
+
}, Ou = () => {
|
1700
|
+
const t = `.${ku(globalThis.location.href)}`;
|
1701
|
+
return { maxage: Eo, path: "/", domain: !t || t === "." ? void 0 : t, samesite: "Lax", enabled: !0 };
|
1702
|
+
}, Ru = () => ({ enabled: !0 }), Iu = () => ({ enabled: !0 }), Tu = () => ({ enabled: !0 });
|
1703
|
+
class Au {
|
1703
1704
|
isEnabled = !0;
|
1704
1705
|
length = 0;
|
1705
1706
|
data = {};
|
1706
1707
|
constructor(e) {
|
1707
|
-
this.options =
|
1708
|
+
this.options = Tu(), this.logger = e;
|
1708
1709
|
}
|
1709
1710
|
configure(e) {
|
1710
1711
|
return this.options = F(this.options, e ?? {}), this.isEnabled = !!this.options.enabled, this.options;
|
@@ -1728,13 +1729,13 @@ class Tu {
|
|
1728
1729
|
return Object.keys(this.data);
|
1729
1730
|
}
|
1730
1731
|
}
|
1731
|
-
const Nt = new
|
1732
|
-
var Tt = { exports: {} },
|
1733
|
-
function
|
1732
|
+
const Nt = new Au(ve);
|
1733
|
+
var Tt = { exports: {} }, Du = Tt.exports, Zn;
|
1734
|
+
function Cu() {
|
1734
1735
|
return Zn || (Zn = 1, function(t, e) {
|
1735
1736
|
(function(n, s) {
|
1736
1737
|
t.exports = s();
|
1737
|
-
})(
|
1738
|
+
})(Du, function() {
|
1738
1739
|
function n(m) {
|
1739
1740
|
return m = JSON.stringify(m), !!/^\{[\s\S]*\}$/.test(m);
|
1740
1741
|
}
|
@@ -1852,14 +1853,14 @@ function Du() {
|
|
1852
1853
|
});
|
1853
1854
|
}(Tt)), Tt.exports;
|
1854
1855
|
}
|
1855
|
-
var
|
1856
|
-
const Te = /* @__PURE__ */ si(
|
1856
|
+
var Pu = Cu();
|
1857
|
+
const Te = /* @__PURE__ */ si(Pu), _u = () => !oe(globalThis.crypto) && S(globalThis.crypto.getRandomValues), es = () => !oe(globalThis.navigator.userAgentData), Nu = () => !oe(globalThis.navigator.sendBeacon) && S(globalThis.navigator.sendBeacon), Lu = () => !!globalThis.navigator.userAgent.match(/Trident.*rv:11\./), wu = (t, e = "none") => {
|
1857
1858
|
e === "none" && t(void 0), e === "default" && t(navigator.userAgentData), e === "full" && navigator.userAgentData?.getHighEntropyValues(["architecture", "bitness", "brands", "mobile", "model", "platform", "platformVersion", "uaFullVersion", "fullVersionList", "wow64"]).then((n) => {
|
1858
1859
|
t(n);
|
1859
1860
|
}).catch(() => {
|
1860
1861
|
t();
|
1861
1862
|
});
|
1862
|
-
},
|
1863
|
+
}, Mu = () => {
|
1863
1864
|
const t = globalThis.document.createElement("div");
|
1864
1865
|
return t.setAttribute("data-a-b", "c"), t.dataset ? t.dataset.aB === "c" : !1;
|
1865
1866
|
}, on = {
|
@@ -1881,7 +1882,7 @@ const Te = /* @__PURE__ */ si(Cu), Pu = () => !oe(globalThis.crypto) && S(global
|
|
1881
1882
|
"Object.values": () => !S(globalThis.Object.values),
|
1882
1883
|
"Object.assign": () => !S(globalThis.Object.assign),
|
1883
1884
|
"Object.fromEntries": () => !S(globalThis.Object.fromEntries),
|
1884
|
-
"Element.prototype.dataset": () => !
|
1885
|
+
"Element.prototype.dataset": () => !Mu(),
|
1885
1886
|
// Ideally, we should separate the checks for TextEncoder and TextDecoder but
|
1886
1887
|
// the polyfill service serves them under the same feature name, "TextEncoder".
|
1887
1888
|
TextEncoder: () => !S(globalThis.TextEncoder) || !S(globalThis.TextDecoder),
|
@@ -1892,7 +1893,7 @@ const Te = /* @__PURE__ */ si(Cu), Pu = () => !oe(globalThis.crypto) && S(global
|
|
1892
1893
|
ArrayBuffer: () => !S(globalThis.Uint8Array),
|
1893
1894
|
Set: () => !S(globalThis.Set),
|
1894
1895
|
atob: () => !S(globalThis.atob)
|
1895
|
-
},
|
1896
|
+
}, $u = () => {
|
1896
1897
|
const t = Object.keys(on);
|
1897
1898
|
let e = !1;
|
1898
1899
|
for (let n = 0; n < t.length; n++) {
|
@@ -1911,20 +1912,20 @@ const Te = /* @__PURE__ */ si(Cu), Pu = () => !oe(globalThis.crypto) && S(global
|
|
1911
1912
|
return t instanceof DOMException && s;
|
1912
1913
|
}, He = (t = Y, e, n) => {
|
1913
1914
|
let s, i;
|
1914
|
-
const r =
|
1915
|
+
const r = na(Zt, t);
|
1915
1916
|
let a = "unavailable", u = !0, l;
|
1916
1917
|
try {
|
1917
1918
|
switch (t) {
|
1918
1919
|
case le:
|
1919
1920
|
return !0;
|
1920
1921
|
case q:
|
1921
|
-
s = e, i =
|
1922
|
+
s = e, i = fu;
|
1922
1923
|
break;
|
1923
1924
|
case Y:
|
1924
|
-
s = e ?? globalThis.localStorage, i =
|
1925
|
+
s = e ?? globalThis.localStorage, i = hu;
|
1925
1926
|
break;
|
1926
1927
|
case J:
|
1927
|
-
s = e ?? globalThis.sessionStorage, i =
|
1928
|
+
s = e ?? globalThis.sessionStorage, i = gu;
|
1928
1929
|
break;
|
1929
1930
|
default:
|
1930
1931
|
return !1;
|
@@ -1937,12 +1938,12 @@ const Te = /* @__PURE__ */ si(Cu), Pu = () => !oe(globalThis.crypto) && S(global
|
|
1937
1938
|
}
|
1938
1939
|
return u || n?.warn(`${r}${a}.`, l), !1;
|
1939
1940
|
};
|
1940
|
-
class
|
1941
|
+
class Uu {
|
1941
1942
|
isSupportAvailable = !0;
|
1942
1943
|
isEnabled = !0;
|
1943
1944
|
length = 0;
|
1944
1945
|
constructor(e) {
|
1945
|
-
this.options =
|
1946
|
+
this.options = Ru(), this.logger = e;
|
1946
1947
|
}
|
1947
1948
|
configure(e) {
|
1948
1949
|
return this.options = F(this.options, e ?? {}), this.isSupportAvailable = He(Y), this.isEnabled = !!(this.options.enabled && this.isSupportAvailable), this.options;
|
@@ -1969,13 +1970,13 @@ class $u {
|
|
1969
1970
|
return Te.keys();
|
1970
1971
|
}
|
1971
1972
|
}
|
1972
|
-
const Sn = new
|
1973
|
-
class
|
1973
|
+
const Sn = new Uu(ve);
|
1974
|
+
class Bu {
|
1974
1975
|
isSupportAvailable = !0;
|
1975
1976
|
isEnabled = !0;
|
1976
1977
|
length = 0;
|
1977
1978
|
constructor(e) {
|
1978
|
-
this.options =
|
1979
|
+
this.options = Iu(), this.logger = e;
|
1979
1980
|
}
|
1980
1981
|
configure(e) {
|
1981
1982
|
return this.options = F(this.options, e ?? {}), this.isSupportAvailable = He(J), this.isSupportAvailable && (this.store = globalThis.sessionStorage), this.isEnabled = !!(this.options.enabled && this.isSupportAvailable), this.options;
|
@@ -2009,8 +2010,8 @@ class Uu {
|
|
2009
2010
|
return e;
|
2010
2011
|
}
|
2011
2012
|
}
|
2012
|
-
const kn = new
|
2013
|
-
class
|
2013
|
+
const kn = new Bu(ve);
|
2014
|
+
class Vu {
|
2014
2015
|
isSupportAvailable = !0;
|
2015
2016
|
isEnabled = !0;
|
2016
2017
|
length = 0;
|
@@ -2018,7 +2019,7 @@ class Bu {
|
|
2018
2019
|
this.logger = e;
|
2019
2020
|
}
|
2020
2021
|
configure(e) {
|
2021
|
-
return this.options || (this.options =
|
2022
|
+
return this.options || (this.options = Ou()), this.options = F(this.options, e ?? {}), this.options.sameDomainCookiesOnly && delete this.options.domain, this.isSupportAvailable = He(q, this), this.isEnabled = !!(this.options.enabled && this.isSupportAvailable), this.options;
|
2022
2023
|
}
|
2023
2024
|
setItem(e, n) {
|
2024
2025
|
return Ee(e, n, this.options, this.logger), this.length = Object.keys(Ee()).length, !0;
|
@@ -2043,7 +2044,7 @@ class Bu {
|
|
2043
2044
|
return Object.keys(Ee());
|
2044
2045
|
}
|
2045
2046
|
}
|
2046
|
-
const On = new
|
2047
|
+
const On = new Vu(ve), ne = (t) => {
|
2047
2048
|
switch (t) {
|
2048
2049
|
case Y:
|
2049
2050
|
return Sn;
|
@@ -2056,19 +2057,19 @@ const On = new Bu(pe), ne = (t) => {
|
|
2056
2057
|
default:
|
2057
2058
|
return Nt;
|
2058
2059
|
}
|
2059
|
-
},
|
2060
|
+
}, Fu = (t) => {
|
2060
2061
|
const e = On.configure(t);
|
2061
2062
|
o.storage.cookie.value = { maxage: e.maxage, path: e.path, domain: e.domain, samesite: e.samesite, expires: e.expires, secure: e.secure };
|
2062
|
-
}, Fu = (t) => {
|
2063
|
-
Sn.configure(t);
|
2064
2063
|
}, xu = (t) => {
|
2065
|
-
|
2064
|
+
Sn.configure(t);
|
2066
2065
|
}, Hu = (t) => {
|
2066
|
+
Nt.configure(t);
|
2067
|
+
}, Gu = (t) => {
|
2067
2068
|
kn.configure(t);
|
2068
|
-
},
|
2069
|
-
|
2069
|
+
}, ju = (t = {}, e = {}, n = {}, s = {}) => {
|
2070
|
+
Fu(t), xu(e), Hu(n), Gu(s);
|
2070
2071
|
};
|
2071
|
-
class
|
2072
|
+
class qu {
|
2072
2073
|
constructor(e, n, s) {
|
2073
2074
|
this.id = e.id, this.name = e.name, this.isEncrypted = e.isEncrypted ?? !1, this.validKeys = e.validKeys ?? {}, this.engine = n, this.noKeyValidation = Object.keys(this.validKeys).length === 0, this.noCompoundKey = e.noCompoundKey, this.originalEngine = this.engine, this.errorHandler = e.errorHandler, this.logger = e.logger, this.pluginsManager = s;
|
2074
2075
|
}
|
@@ -2104,9 +2105,9 @@ class ju {
|
|
2104
2105
|
this.engine.setItem(s, this.encrypt(ue(n, !1, [], this.logger)));
|
2105
2106
|
} catch (i) {
|
2106
2107
|
if (pi(i))
|
2107
|
-
this.logger.warn(
|
2108
|
+
this.logger.warn(Ia(`Store ${this.id}`)), this.swapQueueStoreToInMemoryEngine(), this.set(e, n);
|
2108
2109
|
else {
|
2109
|
-
const r =
|
2110
|
+
const r = la(e);
|
2110
2111
|
this.onError(i, r, r);
|
2111
2112
|
}
|
2112
2113
|
}
|
@@ -2120,7 +2121,7 @@ class ju {
|
|
2120
2121
|
try {
|
2121
2122
|
return !n || (s = this.decrypt(this.engine.getItem(n)), oe(s) || s === "") ? null : JSON.parse(s);
|
2122
2123
|
} catch (i) {
|
2123
|
-
const r =
|
2124
|
+
const r = ua(e);
|
2124
2125
|
return this.onError(i, r, r), null;
|
2125
2126
|
}
|
2126
2127
|
}
|
@@ -2153,7 +2154,7 @@ class ju {
|
|
2153
2154
|
* Extension point to use with encryption plugins
|
2154
2155
|
*/
|
2155
2156
|
crypto(e, n) {
|
2156
|
-
if (!this.isEncrypted || !e || typeof e != "string" ||
|
2157
|
+
if (!this.isEncrypted || !e || typeof e != "string" || jr(e) === "")
|
2157
2158
|
return e;
|
2158
2159
|
const i = `storage.${n}`, r = this.pluginsManager ? this.pluginsManager.invokeSingle(i, e) : e;
|
2159
2160
|
return typeof r > "u" ? e : r ?? "";
|
@@ -2165,7 +2166,7 @@ class ju {
|
|
2165
2166
|
this.errorHandler.onError({ error: e, context: `Store ${this.id}`, customMessage: n, groupingHash: s });
|
2166
2167
|
}
|
2167
2168
|
}
|
2168
|
-
const
|
2169
|
+
const zu = (t, e) => {
|
2169
2170
|
let n;
|
2170
2171
|
if (t.consents.preConsent.value.enabled)
|
2171
2172
|
switch (t.consents.preConsent.value.storage?.strategy) {
|
@@ -2181,7 +2182,7 @@ const qu = (t, e) => {
|
|
2181
2182
|
}
|
2182
2183
|
return n;
|
2183
2184
|
};
|
2184
|
-
class
|
2185
|
+
class Ku {
|
2185
2186
|
stores = {};
|
2186
2187
|
isInitialized = !1;
|
2187
2188
|
constructor(e, n, s) {
|
@@ -2194,7 +2195,7 @@ class zu {
|
|
2194
2195
|
if (this.isInitialized)
|
2195
2196
|
return;
|
2196
2197
|
const e = o.loadOptions.value, n = { cookieStorageOptions: { samesite: e.sameSiteCookie, secure: e.secureCookie, domain: e.setCookieDomain, sameDomainCookiesOnly: e.sameDomainCookiesOnly }, localStorageOptions: {}, inMemoryStorageOptions: {}, sessionStorageOptions: {} };
|
2197
|
-
|
2198
|
+
ju(et(F(n.cookieStorageOptions ?? {}, o.storage.cookie?.value ?? {})), et(n.localStorageOptions), et(n.inMemoryStorageOptions), et(n.sessionStorageOptions)), this.initClientDataStores(), this.isInitialized = !0;
|
2198
2199
|
}
|
2199
2200
|
/**
|
2200
2201
|
* Create store to persist data used by the SDK like session, used details etc
|
@@ -2210,7 +2211,7 @@ class zu {
|
|
2210
2211
|
(C(s?.type) || C(s?.entries)) && (e = s?.type, n = s?.entries);
|
2211
2212
|
let i = !0, r = {};
|
2212
2213
|
mi.forEach((a) => {
|
2213
|
-
const u = a, l = a, c = n?.[u]?.type, g =
|
2214
|
+
const u = a, l = a, c = n?.[u]?.type, g = zu(o, a) ?? c ?? e ?? nn, E = this.getResolvedStorageTypeForEntry(g, a);
|
2214
2215
|
E !== Ne && (i = !1), r = { ...r, [a]: { type: E, key: Ue[l] } };
|
2215
2216
|
}), x(() => {
|
2216
2217
|
o.storage.type.value = e, o.storage.entries.value = r, o.storage.trulyAnonymousTracking.value = i;
|
@@ -2233,14 +2234,14 @@ class zu {
|
|
2233
2234
|
ne(q)?.isEnabled ? s = q : ne(Y)?.isEnabled ? s = Y : ne(J)?.isEnabled ? s = J : s = le;
|
2234
2235
|
break;
|
2235
2236
|
}
|
2236
|
-
return s !== e && this.logger.warn(
|
2237
|
+
return s !== e && this.logger.warn(Ta(Kr, n, e, s)), s;
|
2237
2238
|
}
|
2238
2239
|
/**
|
2239
2240
|
* Create a new store
|
2240
2241
|
*/
|
2241
2242
|
setStore(e) {
|
2242
2243
|
const n = ne(e.type);
|
2243
|
-
return this.stores[e.id] = new
|
2244
|
+
return this.stores[e.id] = new qu(e, n, this.pluginsManager), this.stores[e.id];
|
2244
2245
|
}
|
2245
2246
|
/**
|
2246
2247
|
* Retrieve a store
|
@@ -2249,17 +2250,17 @@ class zu {
|
|
2249
2250
|
return this.stores[e];
|
2250
2251
|
}
|
2251
2252
|
}
|
2252
|
-
const
|
2253
|
+
const Yu = (t) => w(t) && w(t.source) && !oe(t.source.id) && w(t.source.config) && Array.isArray(t.source.destinations), Wu = (t) => typeof t == "string" && Qs.includes(t), vi = (t) => {
|
2253
2254
|
const e = new URL(t), { host: n, protocol: s } = e, i = n.split(".");
|
2254
2255
|
let r;
|
2255
2256
|
return i.length > 2 ? r = `${i[i.length - 2]}.${i[i.length - 1]}` : r = n, { topDomain: r, protocol: s };
|
2256
|
-
},
|
2257
|
+
}, Qu = (t) => {
|
2257
2258
|
const { topDomain: e, protocol: n } = vi(t);
|
2258
2259
|
return `${n}//${e}`;
|
2259
|
-
},
|
2260
|
-
const n = e ? window.location.origin :
|
2260
|
+
}, Xu = (t, e) => {
|
2261
|
+
const n = e ? window.location.origin : Qu(window.location.href), s = t.startsWith("/") ? t.substring(1) : t;
|
2261
2262
|
return `${n}/${s}`;
|
2262
|
-
},
|
2263
|
+
}, Ju = (t) => {
|
2263
2264
|
const { topDomain: e } = vi(window.location.href);
|
2264
2265
|
return e === t;
|
2265
2266
|
}, qe = (t) => t?.endsWith("/") ? qe(t.substring(0, t.length - 1)) : t, an = (t) => {
|
@@ -2268,7 +2269,7 @@ const Ku = (t) => w(t) && w(t.source) && !oe(t.source.id) && w(t.source.config)
|
|
2268
2269
|
} catch {
|
2269
2270
|
return null;
|
2270
2271
|
}
|
2271
|
-
}, yi = (t) => an(t) ?? "",
|
2272
|
+
}, yi = (t) => an(t) ?? "", Zu = (t) => {
|
2272
2273
|
const e = {};
|
2273
2274
|
try {
|
2274
2275
|
const n = new URL(t), s = "utm_";
|
@@ -2281,7 +2282,7 @@ const Ku = (t) => w(t) && w(t.source) && !oe(t.source.id) && w(t.source.config)
|
|
2281
2282
|
} catch {
|
2282
2283
|
}
|
2283
2284
|
return e;
|
2284
|
-
},
|
2285
|
+
}, ec = (t) => {
|
2285
2286
|
let e = t;
|
2286
2287
|
try {
|
2287
2288
|
const n = new URL(t);
|
@@ -2289,31 +2290,31 @@ const Ku = (t) => w(t) && w(t.source) && !oe(t.source.id) && w(t.source.config)
|
|
2289
2290
|
} catch {
|
2290
2291
|
}
|
2291
2292
|
return e;
|
2292
|
-
},
|
2293
|
+
}, tc = (t) => t.replace(/\/{2,}/g, "/"), ze = (t) => {
|
2293
2294
|
if (!N(t))
|
2294
2295
|
return !1;
|
2295
2296
|
try {
|
2296
|
-
return S(globalThis.URL) && new URL(t),
|
2297
|
+
return S(globalThis.URL) && new URL(t), Ua.test(t);
|
2297
2298
|
} catch {
|
2298
2299
|
return !1;
|
2299
2300
|
}
|
2300
|
-
},
|
2301
|
+
}, nc = () => !!window.chrome?.runtime?.id, qt = "none", zt = "immediate", sc = (t) => t?.statsCollection?.errors?.enabled === !0, ic = (t) => t?.statsCollection?.metrics?.enabled === !0, rc = (t) => {
|
2301
2302
|
const e = { sendPageEvent: !1, trackConsent: !1, discardPreConsentEvents: !1 };
|
2302
2303
|
if (w(t)) {
|
2303
2304
|
const n = I(t);
|
2304
2305
|
e.storage = n.storage, Oe(n.integrations) && (e.integrations = n.integrations), e.discardPreConsentEvents = n.discardPreConsentEvents === !0, e.sendPageEvent = n.sendPageEvent === !0, e.trackConsent = n.trackConsent === !0, Oe(n.consentManagement) && (e.consentManagement = F(n.consentManagement, { enabled: o.consents.enabled.value }));
|
2305
2306
|
}
|
2306
2307
|
return e;
|
2307
|
-
}, ns = (t) => Oe(t) || Array.isArray(t),
|
2308
|
+
}, ns = (t) => Oe(t) || Array.isArray(t), oc = (t, e) => {
|
2308
2309
|
let { provider: n } = t;
|
2309
2310
|
const s = n ? sn[n] : void 0;
|
2310
|
-
return n && !s && (e.error(
|
2311
|
+
return n && !s && (e.error(Ko(Z, n, sn)), n = void 0), { provider: n, consentManagerPluginName: s };
|
2311
2312
|
}, bi = (t, e) => {
|
2312
2313
|
let n, s = [], i = [], r = !1, a, u = t?.enabled === !0;
|
2313
|
-
Oe(t) && u && ({ provider: a, consentManagerPluginName: n } =
|
2314
|
+
Oe(t) && u && ({ provider: a, consentManagerPluginName: n } = oc(t, e), ns(t.allowedConsentIds) && (s = t.allowedConsentIds, r = !0), ns(t.deniedConsentIds) && (i = t.deniedConsentIds, r = !0));
|
2314
2315
|
const l = { allowedConsentIds: s, deniedConsentIds: i };
|
2315
2316
|
return u = u && !!n, { provider: a, consentManagerPluginName: n, initialized: r, enabled: u, consentsData: l };
|
2316
|
-
},
|
2317
|
+
}, ac = () => {
|
2317
2318
|
const t = document.querySelector("script[data-rsa-write-key]");
|
2318
2319
|
if (t && t.dataset.rsaWriteKey === o.lifecycle.writeKey.value)
|
2319
2320
|
return t.src;
|
@@ -2323,43 +2324,43 @@ const Ku = (t) => w(t) && w(t.source) && !oe(t.source.id) && w(t.source.config)
|
|
2323
2324
|
if (i && n.test(i))
|
2324
2325
|
return i;
|
2325
2326
|
}
|
2326
|
-
}, ac = (t) => {
|
2327
|
-
o.reporting.isErrorReportingEnabled.value = nc(t.source.config) && !tc(), o.reporting.isMetricsReportingEnabled.value = sc(t.source.config);
|
2328
2327
|
}, lc = (t) => {
|
2328
|
+
o.reporting.isErrorReportingEnabled.value = sc(t.source.config) && !nc(), o.reporting.isMetricsReportingEnabled.value = ic(t.source.config);
|
2329
|
+
}, uc = (t) => {
|
2329
2330
|
const { useServerSideCookies: e, dataServiceEndpoint: n, storage: s, setCookieDomain: i, sameDomainCookiesOnly: r } = o.loadOptions.value;
|
2330
2331
|
let a = s?.cookie, u = !1, l;
|
2331
2332
|
if (e) {
|
2332
2333
|
u = e;
|
2333
|
-
const c = a.domain ?? i, d = C(c) && !
|
2334
|
+
const c = a.domain ?? i, d = C(c) && !Ju(An(c)) || r, g = Xu(n ?? Fa, d);
|
2334
2335
|
if (ze(g)) {
|
2335
2336
|
l = qe(g);
|
2336
2337
|
const E = an(window.location.href), m = an(g);
|
2337
|
-
E !== m && (a = { ...a, samesite: "None", secure: !0 }), !r && d && m !== An(c) && (u = !1, t.warn(
|
2338
|
+
E !== m && (a = { ...a, samesite: "None", secure: !0 }), !r && d && m !== An(c) && (u = !1, t.warn(ma(Z, c, m)));
|
2338
2339
|
} else
|
2339
2340
|
u = !1;
|
2340
2341
|
}
|
2341
2342
|
return { sscEnabled: u, cookieOptions: a, finalDataServiceUrl: l };
|
2342
|
-
},
|
2343
|
+
}, cc = (t) => {
|
2343
2344
|
const { storage: e } = o.loadOptions.value;
|
2344
2345
|
let n = e?.type;
|
2345
|
-
C(n) && !
|
2346
|
+
C(n) && !Wu(n) && (t.warn(fa(Z, n, nn)), n = nn);
|
2346
2347
|
let s = e?.encryption?.version;
|
2347
2348
|
const i = s && kt[s];
|
2348
|
-
!V(s) && V(i) ? (t.warn(
|
2349
|
+
!V(s) && V(i) ? (t.warn(ha(Z, s, kt, De)), s = De) : V(s) && (s = De);
|
2349
2350
|
const r = e?.migrate, a = r && s === De;
|
2350
|
-
r === !0 && a !== r && t.warn(
|
2351
|
-
const { sscEnabled: u, finalDataServiceUrl: l, cookieOptions: c } =
|
2351
|
+
r === !0 && a !== r && t.warn(ga(Z, s, De));
|
2352
|
+
const { sscEnabled: u, finalDataServiceUrl: l, cookieOptions: c } = uc(t);
|
2352
2353
|
x(() => {
|
2353
2354
|
o.storage.type.value = n, o.storage.cookie.value = c, o.serverCookies.isEnabledServerSideCookies.value = u, o.serverCookies.dataServiceUrl.value = l, o.storage.encryptionPluginName.value = kt[s], o.storage.migrate.value = a;
|
2354
2355
|
});
|
2355
|
-
},
|
2356
|
+
}, dc = (t) => {
|
2356
2357
|
const { provider: e, consentManagerPluginName: n, initialized: s, enabled: i, consentsData: r } = bi(o.loadOptions.value.consentManagement, t), a = o.loadOptions.value.preConsent;
|
2357
2358
|
let u = a?.storage?.strategy ?? qt;
|
2358
2359
|
const l = ["none", "session", "anonymousId"];
|
2359
|
-
C(u) && !l.includes(u) && (u = qt, t.warn(
|
2360
|
+
C(u) && !l.includes(u) && (u = qt, t.warn(Pa(Z, a?.storage?.strategy, qt)));
|
2360
2361
|
let c = a?.events?.delivery ?? zt;
|
2361
2362
|
const d = ["immediate", "buffer"];
|
2362
|
-
C(c) && !d.includes(c) && (c = zt, t.warn(
|
2363
|
+
C(c) && !d.includes(c) && (c = zt, t.warn(_a(Z, a?.events?.delivery, zt))), x(() => {
|
2363
2364
|
o.consents.activeConsentManagerPluginName.value = n, o.consents.initialized.value = s, o.consents.enabled.value = i, o.consents.data.value = r, o.consents.provider.value = e, o.consents.preConsent.value = {
|
2364
2365
|
// Only enable pre-consent if it is explicitly enabled and
|
2365
2366
|
// if it is not already initialized and
|
@@ -2369,43 +2370,43 @@ const Ku = (t) => w(t) && w(t.source) && !oe(t.source.id) && w(t.source.config)
|
|
2369
2370
|
events: { delivery: c }
|
2370
2371
|
};
|
2371
2372
|
});
|
2372
|
-
},
|
2373
|
+
}, fc = (t) => {
|
2373
2374
|
let e = o.consents.resolutionStrategy.value, n;
|
2374
2375
|
w(t.consentManagementMetadata) && (o.consents.provider.value && (e = t.consentManagementMetadata.providers.find((s) => s.provider === o.consents.provider.value)?.resolutionStrategy ?? o.consents.resolutionStrategy.value), n = t.consentManagementMetadata), o.consents.provider.value === "custom" && (e = void 0), x(() => {
|
2375
2376
|
o.consents.metadata.value = I(n), o.consents.resolutionStrategy.value = e;
|
2376
2377
|
});
|
2377
|
-
},
|
2378
|
+
}, hc = (t) => {
|
2378
2379
|
if (o.dataPlaneEvents.deliveryEnabled.value) {
|
2379
2380
|
const e = "XhrQueue";
|
2380
2381
|
let n = e;
|
2381
|
-
o.loadOptions.value.useBeacon && (o.capabilities.isBeaconAvailable.value ? n = "BeaconQueue" : (n = e, t.warn(
|
2382
|
+
o.loadOptions.value.useBeacon && (o.capabilities.isBeaconAvailable.value ? n = "BeaconQueue" : (n = e, t.warn(ya(Z)))), x(() => {
|
2382
2383
|
o.dataPlaneEvents.eventsQueuePluginName.value = n;
|
2383
2384
|
});
|
2384
2385
|
}
|
2385
|
-
},
|
2386
|
+
}, gc = (t, e, n, s, i) => {
|
2386
2387
|
const r = new URLSearchParams({ p: Vs, v: at, build: ut, writeKey: e, lockIntegrationsVersion: n.toString(), lockPluginsVersion: s.toString() });
|
2387
2388
|
let a = ni, u = r, l = "/sourceConfig/", c = "";
|
2388
2389
|
if (ze(t)) {
|
2389
2390
|
const d = new URL(t);
|
2390
|
-
qe(d.pathname).endsWith("/sourceConfig") || (d.pathname = `${qe(d.pathname)}/sourceConfig/`), d.pathname =
|
2391
|
+
qe(d.pathname).endsWith("/sourceConfig") || (d.pathname = `${qe(d.pathname)}/sourceConfig/`), d.pathname = tc(d.pathname), r.forEach((g, E) => {
|
2391
2392
|
d.searchParams.get(E) === null && d.searchParams.set(E, g);
|
2392
2393
|
}), a = d.origin, l = d.pathname, u = d.searchParams, c = d.hash;
|
2393
2394
|
} else
|
2394
|
-
i.warn(
|
2395
|
+
i.warn(Da(Z, t));
|
2395
2396
|
return `${a}${l}?${u}${c}`;
|
2396
|
-
},
|
2397
|
+
}, 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}` })), Ei = (t, e, n, s, i, r, a) => {
|
2397
2398
|
let u;
|
2398
2399
|
if (r) {
|
2399
2400
|
if (!ze(r))
|
2400
|
-
return a.error(
|
2401
|
+
return a.error(zo(Z, t, r)), null;
|
2401
2402
|
u = qe(r);
|
2402
2403
|
} else if (u = n, o.context.app.value.installType === "cdn") {
|
2403
|
-
const l =
|
2404
|
+
const l = ac();
|
2404
2405
|
l && (u = l.split("/").slice(0, -1).concat(e).join("/"));
|
2405
2406
|
}
|
2406
2407
|
return i && (u = u.replace(new RegExp(`/${En}/${ut}/${e}$`), `/${s}/${ut}/${e}`)), u;
|
2407
|
-
},
|
2408
|
-
class
|
2408
|
+
}, pc = (t, e, n, s) => Ei("integrations", bn, ei, t, e, n, s), vc = (t, e, n, s) => Ei("plugins", Zs, ti, t, e, n, s);
|
2409
|
+
class yc {
|
2409
2410
|
constructor(e, n, s) {
|
2410
2411
|
this.errorHandler = n, this.logger = s, this.httpClient = e, this.onError = this.onError.bind(this), this.processConfig = this.processConfig.bind(this);
|
2411
2412
|
}
|
@@ -2419,12 +2420,12 @@ class vc {
|
|
2419
2420
|
* config related information in global state
|
2420
2421
|
*/
|
2421
2422
|
init() {
|
2422
|
-
const { logLevel: e, configUrl: n, lockIntegrationsVersion: s, lockPluginsVersion: i, destSDKBaseURL: r, pluginsSDKBaseURL: a, integrations: u } = o.loadOptions.value, l =
|
2423
|
+
const { logLevel: e, configUrl: n, lockIntegrationsVersion: s, lockPluginsVersion: i, destSDKBaseURL: r, pluginsSDKBaseURL: a, integrations: u } = o.loadOptions.value, l = pc(at, s, r, this.logger);
|
2423
2424
|
if (ee(l))
|
2424
2425
|
return;
|
2425
2426
|
let c;
|
2426
|
-
c =
|
2427
|
-
o.lifecycle.integrationsCDNPath.value = l, o.lifecycle.pluginsCDNPath.value = c, e && (o.lifecycle.logLevel.value = e), o.lifecycle.sourceConfigUrl.value =
|
2427
|
+
c = vc(at, i, a, this.logger), c !== null && (this.attachEffects(), o.lifecycle.activeDataplaneUrl.value = qe(o.lifecycle.dataPlaneUrl.value), cc(this.logger), dc(this.logger), hc(this.logger), x(() => {
|
2428
|
+
o.lifecycle.integrationsCDNPath.value = l, o.lifecycle.pluginsCDNPath.value = c, e && (o.lifecycle.logLevel.value = e), o.lifecycle.sourceConfigUrl.value = gc(n, o.lifecycle.writeKey.value, s, i, this.logger), o.metrics.metricsServiceUrl.value = `${o.lifecycle.activeDataplaneUrl.value}/${xa}`, o.nativeDestinations.loadOnlyIntegrations.value = u;
|
2428
2429
|
}), this.getConfig());
|
2429
2430
|
}
|
2430
2431
|
/**
|
@@ -2449,18 +2450,18 @@ class vc {
|
|
2449
2450
|
this.onError(r, Vn);
|
2450
2451
|
return;
|
2451
2452
|
}
|
2452
|
-
if (!
|
2453
|
+
if (!Yu(s)) {
|
2453
2454
|
this.onError(new Error(Vn));
|
2454
2455
|
return;
|
2455
2456
|
}
|
2456
2457
|
if (s.source.enabled === !1) {
|
2457
|
-
this.logger.error(
|
2458
|
+
this.logger.error(xo);
|
2458
2459
|
return;
|
2459
2460
|
}
|
2460
|
-
|
2461
|
-
const i = s.source.destinations.length > 0 ?
|
2461
|
+
lc(s);
|
2462
|
+
const i = s.source.destinations.length > 0 ? mc(s.source.destinations) : [];
|
2462
2463
|
x(() => {
|
2463
|
-
o.source.value = { config: s.source.config, name: s.source.name, id: s.source.id, workspaceId: s.source.workspaceId }, o.nativeDestinations.configuredDestinations.value = i, o.plugins.pluginsToLoadFromConfig.value = o.loadOptions.value.plugins ?? [],
|
2464
|
+
o.source.value = { config: s.source.config, name: s.source.name, id: s.source.id, workspaceId: s.source.workspaceId }, o.nativeDestinations.configuredDestinations.value = i, o.plugins.pluginsToLoadFromConfig.value = o.loadOptions.value.plugins ?? [], fc(s), o.lifecycle.status.value = "configured";
|
2464
2465
|
});
|
2465
2466
|
}
|
2466
2467
|
/**
|
@@ -2472,7 +2473,7 @@ class vc {
|
|
2472
2473
|
const e = o.loadOptions.value.getSourceConfig;
|
2473
2474
|
if (e) {
|
2474
2475
|
if (!S(e)) {
|
2475
|
-
this.logger.error(
|
2476
|
+
this.logger.error(qo(Z));
|
2476
2477
|
return;
|
2477
2478
|
}
|
2478
2479
|
const n = e();
|
@@ -2483,10 +2484,10 @@ class vc {
|
|
2483
2484
|
this.httpClient.getAsyncData({ url: o.lifecycle.sourceConfigUrl.value, options: { headers: { "Content-Type": void 0 } }, callback: this.processConfig });
|
2484
2485
|
}
|
2485
2486
|
}
|
2486
|
-
const
|
2487
|
+
const bc = () => {
|
2487
2488
|
const t = /([A-Z]+[+-]\d+)/.exec((/* @__PURE__ */ new Date()).toString());
|
2488
2489
|
return t?.[1] ? t[1] : "NA";
|
2489
|
-
}, Si = () => document?.referrer || "$direct",
|
2490
|
+
}, Si = () => document?.referrer || "$direct", Ec = () => {
|
2490
2491
|
const t = document.getElementsByTagName("link");
|
2491
2492
|
let e = "";
|
2492
2493
|
for (let n = 0; t[n]; n += 1) {
|
@@ -2497,7 +2498,7 @@ const yc = () => {
|
|
2497
2498
|
}
|
2498
2499
|
}
|
2499
2500
|
return e;
|
2500
|
-
},
|
2501
|
+
}, Sc = () => {
|
2501
2502
|
if (V(globalThis.navigator))
|
2502
2503
|
return null;
|
2503
2504
|
let { userAgent: t } = globalThis.navigator;
|
@@ -2507,8 +2508,8 @@ const yc = () => {
|
|
2507
2508
|
n && (t = `${t} Brave/${n[2]}`);
|
2508
2509
|
}
|
2509
2510
|
return t;
|
2510
|
-
},
|
2511
|
-
const t =
|
2511
|
+
}, kc = () => V(globalThis.navigator) ? null : globalThis.navigator.language ?? globalThis.navigator.browserLanguage, ki = () => {
|
2512
|
+
const t = Ec();
|
2512
2513
|
let e = globalThis.location.pathname;
|
2513
2514
|
const { href: n } = globalThis.location;
|
2514
2515
|
let s = n;
|
@@ -2519,10 +2520,10 @@ const yc = () => {
|
|
2519
2520
|
l.search === "" ? s = t + i : s = t, e = l.pathname;
|
2520
2521
|
} catch {
|
2521
2522
|
}
|
2522
|
-
const r =
|
2523
|
+
const r = ec(s), { title: a } = document, u = Si();
|
2523
2524
|
return { path: e, referrer: u, referring_domain: yi(u), search: i, title: a, url: r, tab_url: n };
|
2524
|
-
},
|
2525
|
-
class
|
2525
|
+
}, Oc = `https://polyfill-fastly.io/v3/polyfill.min.js?version=3.111.0&features=${Object.keys(on).join("%2C")}`, Rc = 10 * 1e3, ss = "rudderstackPolyfill";
|
2526
|
+
class Ic {
|
2526
2527
|
constructor(e, n, s) {
|
2527
2528
|
this.httpClient = e, this.errorHandler = n, this.logger = s, this.externalSrcLoader = new Hs(this.logger), this.onError = this.onError.bind(this), this.onReady = this.onReady.bind(this);
|
2528
2529
|
}
|
@@ -2535,7 +2536,7 @@ class Rc {
|
|
2535
2536
|
// eslint-disable-next-line class-methods-use-this
|
2536
2537
|
detectBrowserCapabilities() {
|
2537
2538
|
x(() => {
|
2538
|
-
o.capabilities.storage.isCookieStorageAvailable.value = He(q, ne(q), this.logger), o.capabilities.storage.isLocalStorageAvailable.value = He(Y, void 0, this.logger), o.capabilities.storage.isSessionStorageAvailable.value = He(J, void 0, this.logger), o.capabilities.isBeaconAvailable.value =
|
2539
|
+
o.capabilities.storage.isCookieStorageAvailable.value = He(q, ne(q), this.logger), o.capabilities.storage.isLocalStorageAvailable.value = He(Y, void 0, this.logger), o.capabilities.storage.isSessionStorageAvailable.value = He(J, void 0, this.logger), o.capabilities.isBeaconAvailable.value = Nu(), o.capabilities.isUaCHAvailable.value = es(), o.capabilities.isCryptoAvailable.value = _u(), o.capabilities.isIE11.value = Lu(), o.capabilities.isOnline.value = globalThis.navigator.onLine, o.context.userAgent.value = Sc(), o.context.locale.value = kc(), o.context.screen.value = ts(), o.context.timezone.value = bc(), es() && wu((e) => {
|
2539
2540
|
o.context["ua-ch"].value = e;
|
2540
2541
|
}, o.loadOptions.value.uaChTrackLevel);
|
2541
2542
|
}), ce(() => {
|
@@ -2546,10 +2547,10 @@ class Rc {
|
|
2546
2547
|
* Detect if polyfills are required and then load script from polyfill URL
|
2547
2548
|
*/
|
2548
2549
|
prepareBrowserCapabilities() {
|
2549
|
-
o.capabilities.isLegacyDOM.value =
|
2550
|
+
o.capabilities.isLegacyDOM.value = $u();
|
2550
2551
|
const e = o.loadOptions.value.polyfillURL;
|
2551
|
-
let n =
|
2552
|
-
if (je(e) && (ze(e) ? n = e : this.logger.warn(
|
2552
|
+
let n = Oc;
|
2553
|
+
if (je(e) && (ze(e) ? n = e : this.logger.warn(wa(Zt, e))), o.loadOptions.value.polyfillIfRequired && o.capabilities.isLegacyDOM.value && ze(n)) {
|
2553
2554
|
const i = n !== o.loadOptions.value.polyfillURL;
|
2554
2555
|
if (i) {
|
2555
2556
|
const r = `RS_polyfillCallback_${o.lifecycle.writeKey.value}`, a = () => {
|
@@ -2557,8 +2558,8 @@ class Rc {
|
|
2557
2558
|
};
|
2558
2559
|
globalThis[r] = a, n = `${n}&callback=${r}`;
|
2559
2560
|
}
|
2560
|
-
this.externalSrcLoader.loadJSFile({ url: n, id: ss, async: !0, timeout:
|
2561
|
-
r ? i || this.onReady() : this.onError(new Error(
|
2561
|
+
this.externalSrcLoader.loadJSFile({ url: n, id: ss, async: !0, timeout: Rc, callback: (r) => {
|
2562
|
+
r ? i || this.onReady() : this.onError(new Error(Ca(ss, n)));
|
2562
2563
|
} });
|
2563
2564
|
} else
|
2564
2565
|
this.onReady();
|
@@ -2571,7 +2572,7 @@ class Rc {
|
|
2571
2572
|
o.capabilities.isOnline.value = !1;
|
2572
2573
|
}), globalThis.addEventListener("online", () => {
|
2573
2574
|
o.capabilities.isOnline.value = !0;
|
2574
|
-
}), globalThis.addEventListener("resize",
|
2575
|
+
}), globalThis.addEventListener("resize", Oo(() => {
|
2575
2576
|
o.context.screen.value = ts();
|
2576
2577
|
}, this));
|
2577
2578
|
}
|
@@ -2590,13 +2591,13 @@ class Rc {
|
|
2590
2591
|
this.errorHandler.onError({ error: e, context: Zt, groupingHash: n });
|
2591
2592
|
}
|
2592
2593
|
}
|
2593
|
-
const
|
2594
|
+
const Tc = "web", Ac = ["integrations", "anonymousId", "originalTimestamp"], is = ["library", "consentManagement", "userAgent", "ua-ch", "screen"], Kt = ["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"], Oi = (t) => typeof t == "number" && !Number.isNaN(t), Dc = (t, e) => e.toString().length >= t, Lt = (t) => Oi(t) && t >= 0 && Number.isInteger(t), rs = 10, Ri = (t) => {
|
2594
2595
|
const { cutOff: e } = t, n = Date.now();
|
2595
2596
|
return !!(e?.enabled && e.expiresAt && n > e.expiresAt);
|
2596
|
-
}, os = (t) => !t.expiresAt || Date.now() > t.expiresAt || Ri(t),
|
2597
|
+
}, os = (t) => !t.expiresAt || Date.now() > t.expiresAt || Ri(t), Cc = () => Date.now(), Pc = (t, e) => !t || !Lt(t) || !Dc(rs, t) ? (e.warn(Ra(Ae, t, rs)), !1) : !0, _c = (t) => {
|
2597
2598
|
if (t?.enabled)
|
2598
2599
|
return t.expiresAt ?? (Lt(t.duration) ? Date.now() + t.duration : void 0);
|
2599
|
-
},
|
2600
|
+
}, Nc = (t) => {
|
2600
2601
|
const { timeout: e, cutOff: n } = t, s = Date.now();
|
2601
2602
|
return {
|
2602
2603
|
id: s,
|
@@ -2607,29 +2608,29 @@ const Ic = "web", Tc = ["integrations", "anonymousId", "originalTimestamp"], is
|
|
2607
2608
|
autoTrack: !0,
|
2608
2609
|
...n && { cutOff: n }
|
2609
2610
|
};
|
2610
|
-
},
|
2611
|
+
}, Lc = (t, e) => ({ id: Pc(t, e) ? t : Cc(), sessionStart: void 0, manualTrack: !0 }), nt = (t) => t === q || t === Y || t === J || t === le, ln = () => Mt(), wc = (t) => {
|
2611
2612
|
const e = ki(), n = {};
|
2612
2613
|
return Object.keys(e).forEach((s) => {
|
2613
2614
|
n[s] = t?.[s] || e[s];
|
2614
2615
|
}), n.initial_referrer = t?.initial_referrer || o.session.initialReferrer.value, n.initial_referring_domain = t?.initial_referring_domain || o.session.initialReferringDomain.value, n;
|
2615
|
-
},
|
2616
|
+
}, Mc = (t, e) => {
|
2616
2617
|
const n = e?.page || {}, s = t, i = ki();
|
2617
2618
|
return Object.keys(i).forEach((r) => {
|
2618
2619
|
V(s[r]) && (s[r] = n[r] || i[r]);
|
2619
2620
|
}), V(s.initial_referrer) && (s.initial_referrer = n.initial_referrer || o.session.initialReferrer.value), V(s.initial_referring_domain) && (s.initial_referring_domain = n.initial_referring_domain || o.session.initialReferringDomain.value), s;
|
2620
2621
|
}, Yt = (t, e, n) => {
|
2621
2622
|
w(t) && Object.keys(t).forEach((s) => {
|
2622
|
-
(Kt.includes(s) || Kt.includes(s.toLowerCase())) && n.warn(
|
2623
|
+
(Kt.includes(s) || Kt.includes(s.toLowerCase())) && n.warn(pa(Ms, s, e, Kt));
|
2623
2624
|
});
|
2624
|
-
},
|
2625
|
+
}, $c = (t, e) => {
|
2625
2626
|
const { properties: n, traits: s, context: i } = t, { traits: r } = i;
|
2626
2627
|
Yt(n, "properties", e), Yt(s, "traits", e), Yt(r, "context.traits", e);
|
2627
|
-
},
|
2628
|
+
}, Uc = (t, e) => {
|
2628
2629
|
e.anonymousId && N(e.anonymousId) && (t.anonymousId = e.anonymousId), Oe(e.integrations) && (t.integrations = e.integrations), e.originalTimestamp && N(e.originalTimestamp) && (t.originalTimestamp = e.originalTimestamp);
|
2629
|
-
},
|
2630
|
+
}, Bc = (t, e, n) => {
|
2630
2631
|
let s = t;
|
2631
2632
|
return Object.keys(e).forEach((i) => {
|
2632
|
-
if (!
|
2633
|
+
if (!Ac.includes(i) && !is.includes(i))
|
2633
2634
|
if (i !== "context")
|
2634
2635
|
s = F(s, { [i]: e[i] });
|
2635
2636
|
else if (!V(e[i]) && w(e[i])) {
|
@@ -2638,15 +2639,15 @@ const Ic = "web", Tc = ["integrations", "anonymousId", "originalTimestamp"], is
|
|
2638
2639
|
is.includes(a) || (r[a] = e[i][a]);
|
2639
2640
|
}), s = F(s, { ...r });
|
2640
2641
|
} else
|
2641
|
-
n.warn(
|
2642
|
+
n.warn(va(Ms));
|
2642
2643
|
}), s;
|
2643
|
-
},
|
2644
|
-
w(e) && (
|
2645
|
-
},
|
2644
|
+
}, Vc = (t, e, n) => {
|
2645
|
+
w(e) && (Uc(t, e), t.context = Bc(t.context, e, n));
|
2646
|
+
}, Fc = (t) => {
|
2646
2647
|
let e;
|
2647
2648
|
return o.loadOptions.value.useGlobalIntegrationsConfigInEvents ? e = o.consents.postConsent.value.integrations ?? o.nativeDestinations.loadOnlyIntegrations.value : t ? e = t : e = Js, I(e);
|
2648
2649
|
}, Ze = (t, e, n, s) => {
|
2649
|
-
const i = { channel:
|
2650
|
+
const i = { channel: Tc, context: {
|
2650
2651
|
traits: I(o.session.userTraits.value),
|
2651
2652
|
sessionId: o.session.sessionInfo.value.id || void 0,
|
2652
2653
|
sessionStart: o.session.sessionInfo.value.sessionStart || void 0,
|
@@ -2659,17 +2660,17 @@ const Ic = "web", Tc = ["integrations", "anonymousId", "originalTimestamp"], is
|
|
2659
2660
|
os: o.context.os.value,
|
2660
2661
|
locale: o.context.locale.value,
|
2661
2662
|
screen: o.context.screen.value,
|
2662
|
-
campaign:
|
2663
|
-
page:
|
2663
|
+
campaign: Zu(globalThis.location.href),
|
2664
|
+
page: wc(n),
|
2664
2665
|
timezone: o.context.timezone.value,
|
2665
2666
|
// Add auto tracking information
|
2666
2667
|
...o.autoTrack.enabled.value && { autoTrack: { ...o.autoTrack.pageLifecycle.enabled.value && { page: { pageViewId: o.autoTrack.pageLifecycle.pageViewId.value } } } }
|
2667
|
-
}, originalTimestamp:
|
2668
|
+
}, originalTimestamp: no(), messageId: Mt(), userId: t.userId || o.session.userId.value };
|
2668
2669
|
nt(o.storage.entries.value.anonymousId?.type) ? i.anonymousId = o.session.anonymousId.value : i.anonymousId = ln(), o.storage.trulyAnonymousTracking.value && (i.context.trulyAnonymousTracking = !0), t.type === "identify" && (i.context.traits = o.storage.entries.value.userTraits?.type !== Ne ? I(o.session.userTraits.value) : t.context.traits), t.type === "group" && ((t.groupId || o.session.groupId.value) && (i.groupId = t.groupId || o.session.groupId.value), (t.traits || o.session.groupTraits.value) && (i.traits = o.storage.entries.value.groupTraits?.type !== Ne ? I(o.session.groupTraits.value) : t.traits));
|
2669
2670
|
const r = F(t, i);
|
2670
|
-
return r.event === void 0 && (r.event = null), r.properties === void 0 && (r.properties = null),
|
2671
|
+
return r.event === void 0 && (r.event = null), r.properties === void 0 && (r.properties = null), Vc(r, e, s), $c(r, s), r.integrations = Fc(r.integrations), r;
|
2671
2672
|
};
|
2672
|
-
class
|
2673
|
+
class xc {
|
2673
2674
|
constructor(e) {
|
2674
2675
|
this.logger = e;
|
2675
2676
|
}
|
@@ -2682,7 +2683,7 @@ class Fc {
|
|
2682
2683
|
*/
|
2683
2684
|
generatePageEvent(e, n, s, i) {
|
2684
2685
|
let r = s ?? {};
|
2685
|
-
return r =
|
2686
|
+
return r = Mc(r, i), Ze({ properties: r, name: n, category: e, type: "page" }, i, r, this.logger);
|
2686
2687
|
}
|
2687
2688
|
/**
|
2688
2689
|
* Generate a 'track' event based on the user-input fields
|
@@ -2750,7 +2751,7 @@ class Fc {
|
|
2750
2751
|
return n;
|
2751
2752
|
}
|
2752
2753
|
}
|
2753
|
-
class
|
2754
|
+
class Hc {
|
2754
2755
|
/**
|
2755
2756
|
*
|
2756
2757
|
* @param eventRepository Event repository instance
|
@@ -2759,7 +2760,7 @@ class xc {
|
|
2759
2760
|
* @param logger Logger object
|
2760
2761
|
*/
|
2761
2762
|
constructor(e, n, s, i) {
|
2762
|
-
this.eventRepository = e, this.userSessionManager = n, this.errorHandler = s, this.logger = i, this.eventFactory = new
|
2763
|
+
this.eventRepository = e, this.userSessionManager = n, this.errorHandler = s, this.logger = i, this.eventFactory = new xc(this.logger);
|
2763
2764
|
}
|
2764
2765
|
/**
|
2765
2766
|
* Initializes the event manager
|
@@ -2780,7 +2781,7 @@ class xc {
|
|
2780
2781
|
this.eventRepository.enqueue(n, e.callback);
|
2781
2782
|
}
|
2782
2783
|
}
|
2783
|
-
class
|
2784
|
+
class Gc {
|
2784
2785
|
constructor(e, n, s, i, r) {
|
2785
2786
|
this.storeManager = n, this.pluginsManager = e, this.logger = r, this.errorHandler = i, this.httpClient = s, this.onError = this.onError.bind(this), this.serverSideCookieDebounceFuncs = {};
|
2786
2787
|
}
|
@@ -2834,7 +2835,7 @@ class Hc {
|
|
2834
2835
|
const l = this.storeManager?.getStore(Be[u]);
|
2835
2836
|
if (l && u !== r) {
|
2836
2837
|
const c = l.get(Ue[i]);
|
2837
|
-
|
2838
|
+
Vr(c) && a.set(Ue[i], c), l.remove(Ue[i]);
|
2838
2839
|
}
|
2839
2840
|
});
|
2840
2841
|
});
|
@@ -2860,14 +2861,14 @@ class Hc {
|
|
2860
2861
|
return { autoTrack: e };
|
2861
2862
|
let n;
|
2862
2863
|
const s = o.loadOptions.value.sessions?.timeout;
|
2863
|
-
Lt(s) ? n = s : (this.logger.warn(
|
2864
|
+
Lt(s) ? n = s : (this.logger.warn(ba(Ae, s, en)), n = en), n === 0 && (this.logger.warn(ka(Ae)), e = !1), n > 0 && n < $n && this.logger.warn(Oa(Ae, n, $n));
|
2864
2865
|
const i = this.getCutOffInfo(n);
|
2865
2866
|
return { timeout: n, autoTrack: e, cutOff: i };
|
2866
2867
|
}
|
2867
2868
|
getCutOffInfo(e) {
|
2868
2869
|
const n = o.loadOptions.value.sessions.cutOff;
|
2869
2870
|
let s, i = !1;
|
2870
|
-
return n.enabled === !0 && (s = n.duration, i = !0, Lt(s) ? s < e && (this.logger.warn(
|
2871
|
+
return n.enabled === !0 && (s = n.duration, i = !0, Lt(s) ? s < e && (this.logger.warn(Sa(Ae, s, e)), i = !1) : (this.logger.warn(Ea(Ae, s, Mn)), s = Mn)), { enabled: i, duration: s };
|
2871
2872
|
}
|
2872
2873
|
/**
|
2873
2874
|
* Handles error
|
@@ -2908,8 +2909,8 @@ class Hc {
|
|
2908
2909
|
i.length > 0 && this.makeRequestToSetCookie(i, (r, a) => {
|
2909
2910
|
a?.xhr?.status === 200 ? e.forEach((u) => {
|
2910
2911
|
const l = s?.get(u.name), c = ue(u.value, !1, []);
|
2911
|
-
ue(l, !1, []) !== c && (this.logger.error(
|
2912
|
-
}) : (this.logger.error(
|
2912
|
+
ue(l, !1, []) !== c && (this.logger.error(da(u.name)), n && n(u.name, u.value));
|
2913
|
+
}) : (this.logger.error(ca(a?.xhr?.status)), e.forEach((u) => {
|
2913
2914
|
n && n(u.name, u.value);
|
2914
2915
|
}));
|
2915
2916
|
});
|
@@ -2932,7 +2933,7 @@ class Hc {
|
|
2932
2933
|
this.setServerSideCookies([{ name: a, value: n }], (u, l) => {
|
2933
2934
|
r?.set(u, l);
|
2934
2935
|
}, r);
|
2935
|
-
},
|
2936
|
+
}, ja)) : r?.set(a, n) : r?.remove(a);
|
2936
2937
|
}
|
2937
2938
|
}
|
2938
2939
|
/**
|
@@ -3120,13 +3121,13 @@ class Hc {
|
|
3120
3121
|
startOrRenewAutoTracking(e) {
|
3121
3122
|
let n = e;
|
3122
3123
|
if (os(e))
|
3123
|
-
n =
|
3124
|
+
n = Nc(e);
|
3124
3125
|
else {
|
3125
3126
|
const s = Date.now(), i = e.timeout;
|
3126
3127
|
n.expiresAt = s + i;
|
3127
3128
|
}
|
3128
3129
|
if (Ri(n) && (n.cutOff.expiresAt = void 0), n.cutOff) {
|
3129
|
-
const s =
|
3130
|
+
const s = _c(n.cutOff);
|
3130
3131
|
n.cutOff.expiresAt = s;
|
3131
3132
|
}
|
3132
3133
|
o.session.sessionInfo.value = n;
|
@@ -3137,7 +3138,7 @@ class Hc {
|
|
3137
3138
|
* @returns
|
3138
3139
|
*/
|
3139
3140
|
start(e) {
|
3140
|
-
o.session.sessionInfo.value =
|
3141
|
+
o.session.sessionInfo.value = Lc(e, this.logger);
|
3141
3142
|
}
|
3142
3143
|
/**
|
3143
3144
|
* An internal function to start manual session
|
@@ -3159,27 +3160,27 @@ class Hc {
|
|
3159
3160
|
o.session.authToken.value = this.isPersistenceEnabledForStorageEntry("authToken") && e ? e : T.authToken;
|
3160
3161
|
}
|
3161
3162
|
}
|
3162
|
-
const
|
3163
|
+
const jc = ["BeaconQueue", "CustomConsentManager", "DeviceModeDestinations", "DeviceModeTransformation", "ExternalAnonymousId", "GoogleLinker", "IubendaConsentManager", "KetchConsentManager", "NativeDestinationQueue", "OneTrustConsentManager", "StorageEncryption", "StorageEncryptionLegacy", "StorageMigrator", "XhrQueue"], qc = (t, e) => {
|
3163
3164
|
const n = I(e);
|
3164
|
-
return N(n.setCookieDomain) || (n.setCookieDomain = void 0), ["Strict", "Lax", "None"].includes(n.sameSiteCookie) || (n.sameSiteCookie = void 0), n.secureCookie = ae(n.secureCookie, t.secureCookie), n.sameDomainCookiesOnly = ae(n.sameDomainCookiesOnly, t.sameDomainCookiesOnly), ["none", "default", "full"].includes(n.uaChTrackLevel) || (n.uaChTrackLevel = void 0), n.integrations =
|
3165
|
-
}, as = "dataplaneEventsQueue", ls = "destinationsEventsQueue",
|
3165
|
+
return N(n.setCookieDomain) || (n.setCookieDomain = void 0), ["Strict", "Lax", "None"].includes(n.sameSiteCookie) || (n.sameSiteCookie = void 0), n.secureCookie = ae(n.secureCookie, t.secureCookie), n.sameDomainCookiesOnly = ae(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 = ae(n.useGlobalIntegrationsConfigInEvents, t.useGlobalIntegrationsConfigInEvents), n.bufferDataPlaneEventsUntilReady = ae(n.bufferDataPlaneEventsUntilReady, t.bufferDataPlaneEventsUntilReady), n.sendAdblockPage = ae(n.sendAdblockPage, t.sendAdblockPage), n.useServerSideCookies = ae(n.useServerSideCookies, t.useServerSideCookies), N(n.dataServiceEndpoint) || (n.dataServiceEndpoint = void 0), n.sendAdblockPageOptions = he(n.sendAdblockPageOptions), n.loadIntegration = ae(n.loadIntegration, t.loadIntegration), Oe(n.storage) ? (n.storage.migrate = ae(n.storage.migrate, t.storage?.migrate), n.storage.cookie = he(n.storage.cookie), n.storage.encryption = he(n.storage.encryption), n.storage = Dt(n.storage)) : n.storage = void 0, n.destinationsQueueOptions = he(n.destinationsQueueOptions), n.queueOptions = he(n.queueOptions), n.lockIntegrationsVersion = ae(n.lockIntegrationsVersion, t.lockIntegrationsVersion), n.lockPluginsVersion = ae(n.lockPluginsVersion, t.lockPluginsVersion), Oi(n.dataPlaneEventsBufferTimeout) || (n.dataPlaneEventsBufferTimeout = void 0), n.beaconQueueOptions = he(n.beaconQueueOptions), n.preConsent = he(n.preConsent), n.sourceConfigurationOverride = he(n.sourceConfigurationOverride), F(t, Dt(n));
|
3166
|
+
}, as = "dataplaneEventsQueue", ls = "destinationsEventsQueue", zc = "transformEvent", Kc = (t, e) => Object.keys(t).filter((n) => t[n] !== !0 || !e[n]).reduce((n, s) => {
|
3166
3167
|
const i = I(n);
|
3167
3168
|
return i[s] = t[s], i;
|
3168
|
-
}, {}),
|
3169
|
-
const n = I(t), s = e.nativeDestinations.integrationsConfig.value, i =
|
3169
|
+
}, {}), Yc = (t, e) => {
|
3170
|
+
const n = I(t), s = e.nativeDestinations.integrationsConfig.value, i = Kc(t.integrations, s);
|
3170
3171
|
return n.integrations = F(s, i), n;
|
3171
|
-
},
|
3172
|
+
}, Wc = (t) => t.consents.preConsent.value.enabled && t.consents.preConsent.value.events?.delivery === "buffer", At = (t, e, n, s) => {
|
3172
3173
|
if (C(t))
|
3173
3174
|
if (S(t))
|
3174
3175
|
try {
|
3175
3176
|
t(...e);
|
3176
3177
|
} catch (i) {
|
3177
|
-
s.error(
|
3178
|
+
s.error(Aa(n), i);
|
3178
3179
|
}
|
3179
3180
|
else
|
3180
3181
|
s.error(Xs(n));
|
3181
3182
|
};
|
3182
|
-
class
|
3183
|
+
class Qc {
|
3183
3184
|
/**
|
3184
3185
|
*
|
3185
3186
|
* @param pluginsManager Plugins manager instance
|
@@ -3194,14 +3195,14 @@ class Wc {
|
|
3194
3195
|
* Initializes the event repository
|
3195
3196
|
*/
|
3196
3197
|
init() {
|
3197
|
-
this.dataplaneEventsQueue = this.pluginsManager.invokeSingle(`${as}.init`, o, this.httpClient, this.storeManager, this.errorHandler, this.logger), this.dmtEventsQueue = this.pluginsManager.invokeSingle(`${
|
3198
|
+
this.dataplaneEventsQueue = this.pluginsManager.invokeSingle(`${as}.init`, o, this.httpClient, this.storeManager, this.errorHandler, this.logger), this.dmtEventsQueue = this.pluginsManager.invokeSingle(`${zc}.init`, o, this.pluginsManager, this.httpClient, this.storeManager, this.errorHandler, this.logger), this.destinationsEventsQueue = this.pluginsManager.invokeSingle(`${ls}.init`, o, this.pluginsManager, this.storeManager, this.dmtEventsQueue, this.errorHandler, this.logger), ce(() => {
|
3198
3199
|
o.nativeDestinations.clientDestinationsReady.value === !0 && (this.destinationsEventsQueue?.start(), this.dmtEventsQueue?.start());
|
3199
3200
|
});
|
3200
|
-
const e =
|
3201
|
+
const e = Wc(o);
|
3201
3202
|
let n;
|
3202
3203
|
ce(() => {
|
3203
3204
|
const s = o.loadOptions.value.bufferDataPlaneEventsUntilReady === !0 && o.nativeDestinations.clientDestinationsReady.value === !1;
|
3204
|
-
(o.nativeDestinations.activeDestinations.value.some((r) =>
|
3205
|
+
(o.nativeDestinations.activeDestinations.value.some((r) => zl(r)) === !1 || s === !1) && !e && this.dataplaneEventsQueue?.scheduleTimeoutActive !== !0 && (globalThis.clearTimeout(n), this.dataplaneEventsQueue?.start());
|
3205
3206
|
}), o.loadOptions.value.bufferDataPlaneEventsUntilReady === !0 && (n = globalThis.setTimeout(() => {
|
3206
3207
|
this.dataplaneEventsQueue?.scheduleTimeoutActive !== !0 && this.dataplaneEventsQueue?.start();
|
3207
3208
|
}, o.loadOptions.value.dataPlaneEventsBufferTimeout));
|
@@ -3215,7 +3216,7 @@ class Wc {
|
|
3215
3216
|
* @param callback API callback function
|
3216
3217
|
*/
|
3217
3218
|
enqueue(e, n) {
|
3218
|
-
const s =
|
3219
|
+
const s = Yc(e, o);
|
3219
3220
|
this.pluginsManager.invokeSingle(`${as}.enqueue`, o, this.dataplaneEventsQueue, s, this.errorHandler, this.logger);
|
3220
3221
|
const i = I(e);
|
3221
3222
|
this.pluginsManager.invokeSingle(`${ls}.enqueue`, o, this.destinationsEventsQueue, i, this.errorHandler, this.logger);
|
@@ -3226,29 +3227,29 @@ class Wc {
|
|
3226
3227
|
const us = (t) => {
|
3227
3228
|
const e = new CustomEvent(t, { detail: { analyticsInstance: globalThis.rudderanalytics }, bubbles: !0, cancelable: !0, composed: !0 });
|
3228
3229
|
globalThis.document.dispatchEvent(e);
|
3229
|
-
},
|
3230
|
-
class
|
3230
|
+
}, Xc = (t) => N(t) && t.trim().length > 0, Jc = (t) => ze(t);
|
3231
|
+
class Zc {
|
3231
3232
|
/**
|
3232
3233
|
* Initialize services and components or use default ones if singletons
|
3233
3234
|
*/
|
3234
3235
|
constructor() {
|
3235
|
-
this.preloadBuffer = new
|
3236
|
+
this.preloadBuffer = new $o(), this.initialized = !1, this.errorHandler = li, this.logger = ve, this.externalSrcLoader = new Hs(this.logger), this.httpClient = oi, this.httpClient.init(this.errorHandler), this.capabilitiesManager = new Ic(this.httpClient, this.errorHandler, this.logger);
|
3236
3237
|
}
|
3237
3238
|
/**
|
3238
3239
|
* Start application lifecycle if not already started
|
3239
3240
|
*/
|
3240
3241
|
load(e, n, s = {}) {
|
3241
3242
|
if (!o.lifecycle.status.value) {
|
3242
|
-
if (!
|
3243
|
-
this.logger.error(
|
3243
|
+
if (!Xc(e)) {
|
3244
|
+
this.logger.error(sa(Ht, e));
|
3244
3245
|
return;
|
3245
3246
|
}
|
3246
|
-
if (!
|
3247
|
-
this.logger.error(
|
3247
|
+
if (!Jc(n)) {
|
3248
|
+
this.logger.error(ia(Ht, n));
|
3248
3249
|
return;
|
3249
3250
|
}
|
3250
3251
|
x(() => {
|
3251
|
-
o.lifecycle.writeKey.value = I(e), o.lifecycle.dataPlaneUrl.value = I(n), o.loadOptions.value =
|
3252
|
+
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";
|
3252
3253
|
}), this.logger.setMinLogLevel(o.loadOptions.value.logLevel ?? Ws), lt("state", o, e), this.startLifecycle();
|
3253
3254
|
}
|
3254
3255
|
}
|
@@ -3299,7 +3300,7 @@ class Jc {
|
|
3299
3300
|
});
|
3300
3301
|
}
|
3301
3302
|
onBrowserCapabilitiesReady() {
|
3302
|
-
|
3303
|
+
Ao(this), this.prepareInternalServices(), this.loadConfig();
|
3303
3304
|
}
|
3304
3305
|
onLoaded() {
|
3305
3306
|
this.processBufferedEvents(), o.consents.preConsent.value.enabled === !0 ? o.lifecycle.status.value = "ready" : this.loadDestinations();
|
@@ -3322,11 +3323,11 @@ class Jc {
|
|
3322
3323
|
processDataInPreloadBuffer() {
|
3323
3324
|
for (; this.preloadBuffer.size() > 0; ) {
|
3324
3325
|
const e = this.preloadBuffer.dequeue();
|
3325
|
-
e &&
|
3326
|
+
e && Do([...e], this);
|
3326
3327
|
}
|
3327
3328
|
}
|
3328
3329
|
prepareInternalServices() {
|
3329
|
-
this.pluginsManager = new
|
3330
|
+
this.pluginsManager = new nu(jl, this.errorHandler, this.logger), this.storeManager = new Ku(this.pluginsManager, this.errorHandler, this.logger), this.configManager = new yc(this.httpClient, this.errorHandler, this.logger), this.userSessionManager = new Gc(this.pluginsManager, this.storeManager, this.httpClient, this.errorHandler, this.logger), this.eventRepository = new Qc(this.pluginsManager, this.storeManager, this.httpClient, this.errorHandler, this.logger), this.eventManager = new Hc(this.eventRepository, this.userSessionManager, this.errorHandler, this.logger);
|
3330
3331
|
}
|
3331
3332
|
/**
|
3332
3333
|
* Load configuration
|
@@ -3352,7 +3353,7 @@ class Jc {
|
|
3352
3353
|
onInitialized() {
|
3353
3354
|
this.processDataInPreloadBuffer();
|
3354
3355
|
const e = o.loadOptions.value.onLoaded;
|
3355
|
-
At(e, [globalThis.rudderanalytics],
|
3356
|
+
At(e, [globalThis.rudderanalytics], Yr, this.logger), x(() => {
|
3356
3357
|
o.lifecycle.loaded.value = !0, o.lifecycle.status.value = "loaded";
|
3357
3358
|
}), this.initialized = !0, us("RSA_Initialised");
|
3358
3359
|
}
|
@@ -3424,10 +3425,10 @@ class Jc {
|
|
3424
3425
|
o.eventBuffer.toBeProcessedArray.value = [...o.eventBuffer.toBeProcessedArray.value, [s, e]];
|
3425
3426
|
return;
|
3426
3427
|
}
|
3427
|
-
this.errorHandler.leaveBreadcrumb(`New ${s} event`), o.metrics.triggered.value += 1, this.eventManager?.addEvent({ type: "page", category: e.category, name: e.name, properties: e.properties, options: e.options, callback: e.callback }), o.capabilities.isAdBlocked.value === !0 && e.category !== _n && this.page(Pt(_n,
|
3428
|
+
this.errorHandler.leaveBreadcrumb(`New ${s} event`), o.metrics.triggered.value += 1, this.eventManager?.addEvent({ type: "page", category: e.category, name: e.name, properties: e.properties, options: e.options, callback: e.callback }), o.capabilities.isAdBlocked.value === !0 && e.category !== _n && this.page(Pt(_n, go, {
|
3428
3429
|
// 'title' is intentionally omitted as it does not make sense
|
3429
3430
|
// in v3 implementation
|
3430
|
-
path:
|
3431
|
+
path: mo
|
3431
3432
|
}, o.loadOptions.value.sendAdblockPageOptions));
|
3432
3433
|
}
|
3433
3434
|
track(e, n = !1) {
|
@@ -3526,14 +3527,14 @@ class Jc {
|
|
3526
3527
|
return;
|
3527
3528
|
}
|
3528
3529
|
this.errorHandler.leaveBreadcrumb("New consent invocation"), x(() => {
|
3529
|
-
o.consents.preConsent.value = { ...o.consents.preConsent.value, enabled: !1 }, o.consents.postConsent.value =
|
3530
|
+
o.consents.preConsent.value = { ...o.consents.preConsent.value, enabled: !1 }, o.consents.postConsent.value = rc(e);
|
3530
3531
|
const { initialized: i, consentsData: r } = bi(o.consents.postConsent.value.consentManagement, this.logger);
|
3531
3532
|
o.consents.initialized.value = i, o.consents.data.value = r;
|
3532
3533
|
}), o.consents.enabled.value && !o.consents.initialized.value && this.pluginsManager?.invokeSingle("consentManager.updateConsentsInfo", o, this.storeManager, this.logger), this.storeManager?.initializeStorageState(), this.userSessionManager?.syncStorageDataToState(), this.eventManager?.resume(), this.loadDestinations(), this.sendTrackingEvents(n);
|
3533
3534
|
}
|
3534
3535
|
sendTrackingEvents(e) {
|
3535
3536
|
if (o.consents.postConsent.value.trackConsent) {
|
3536
|
-
const n = gn(
|
3537
|
+
const n = gn(po);
|
3537
3538
|
e ? o.eventBuffer.toBeProcessedArray.value = [...o.eventBuffer.toBeProcessedArray.value, ["track", n]] : this.track(n);
|
3538
3539
|
}
|
3539
3540
|
if (o.consents.postConsent.value.sendPageEvent) {
|
@@ -3553,7 +3554,7 @@ class Ve {
|
|
3553
3554
|
// END-NO-SONAR-SCAN
|
3554
3555
|
analyticsInstances = {};
|
3555
3556
|
defaultAnalyticsKey = "";
|
3556
|
-
logger =
|
3557
|
+
logger = ve;
|
3557
3558
|
// Singleton with constructor bind methods
|
3558
3559
|
constructor() {
|
3559
3560
|
try {
|
@@ -3581,7 +3582,7 @@ class Ve {
|
|
3581
3582
|
getAnalyticsInstance(e) {
|
3582
3583
|
try {
|
3583
3584
|
let n = e;
|
3584
|
-
return (!N(n) || !n) && (n = this.defaultAnalyticsKey), !!this.analyticsInstances[n] || (this.analyticsInstances[n] = new
|
3585
|
+
return (!N(n) || !n) && (n = this.defaultAnalyticsKey), !!this.analyticsInstances[n] || (this.analyticsInstances[n] = new Zc()), this.analyticsInstances[n];
|
3585
3586
|
} catch (n) {
|
3586
3587
|
U(n);
|
3587
3588
|
return;
|
@@ -3600,7 +3601,7 @@ class Ve {
|
|
3600
3601
|
return;
|
3601
3602
|
this.setDefaultInstanceKey(e), this.trackPageLifecycleEvents(s);
|
3602
3603
|
const i = xs(it);
|
3603
|
-
|
3604
|
+
To(i), lt(it, I(i)), this.getAnalyticsInstance(e)?.load(e, n, A(s));
|
3604
3605
|
} catch (i) {
|
3605
3606
|
U(i);
|
3606
3607
|
}
|
@@ -3621,19 +3622,19 @@ class Ve {
|
|
3621
3622
|
* @param options
|
3622
3623
|
*/
|
3623
3624
|
setupPageUnloadTracking(e, n, s) {
|
3624
|
-
(e.length === 0 || e.includes(Ft.UNLOADED)) && (n === !0 ?
|
3625
|
+
(e.length === 0 || e.includes(Ft.UNLOADED)) && (n === !0 ? to((i) => {
|
3625
3626
|
if (i === !1 && o.lifecycle.loaded.value) {
|
3626
3627
|
const r = Date.now(), a = r - o.autoTrack.pageLifecycle.pageLoadedTimestamp.value;
|
3627
3628
|
this.track(Ft.UNLOADED, { timeOnPage: a }, { ...s, originalTimestamp: $s(new Date(r)) });
|
3628
3629
|
}
|
3629
|
-
}) : this.logger.warn(
|
3630
|
+
}) : this.logger.warn(Ma(Qr)));
|
3630
3631
|
}
|
3631
3632
|
/**
|
3632
3633
|
* Trigger load event in buffer queue if exists and stores the
|
3633
3634
|
* remaining preloaded events array in global object
|
3634
3635
|
*/
|
3635
3636
|
triggerBufferedLoadEvent() {
|
3636
|
-
const e = Array.isArray(globalThis.rudderanalytics) ? globalThis.rudderanalytics : [], n =
|
3637
|
+
const e = Array.isArray(globalThis.rudderanalytics) ? globalThis.rudderanalytics : [], n = Io(e);
|
3637
3638
|
lt(it, I([...e])), n.length > 0 && (n.shift(), this.load.apply(null, n));
|
3638
3639
|
}
|
3639
3640
|
/**
|
@@ -3817,7 +3818,7 @@ const Ti = {
|
|
3817
3818
|
}, Ai = un({
|
3818
3819
|
components: {
|
3819
3820
|
BPhoneInput: ar,
|
3820
|
-
BSearchLocationInput:
|
3821
|
+
BSearchLocationInput: tr
|
3821
3822
|
},
|
3822
3823
|
data() {
|
3823
3824
|
return {
|
@@ -4145,7 +4146,7 @@ const Di = Re({
|
|
4145
4146
|
onClick: l
|
4146
4147
|
}, null)])])), {};
|
4147
4148
|
}
|
4148
|
-
}),
|
4149
|
+
}), ed = Re({
|
4149
4150
|
appendIcon: mt,
|
4150
4151
|
color: String,
|
4151
4152
|
header: String,
|
@@ -4153,7 +4154,7 @@ const Di = Re({
|
|
4153
4154
|
onClick: Bi()
|
4154
4155
|
}, "VDatePickerHeader"), fs = Le()({
|
4155
4156
|
name: "VDatePickerHeader",
|
4156
|
-
props:
|
4157
|
+
props: ed(),
|
4157
4158
|
emits: {
|
4158
4159
|
click: () => !0,
|
4159
4160
|
"click:append": () => !0
|
@@ -4213,7 +4214,7 @@ const Di = Re({
|
|
4213
4214
|
}, null)])]);
|
4214
4215
|
}), {};
|
4215
4216
|
}
|
4216
|
-
}),
|
4217
|
+
}), td = Re({
|
4217
4218
|
allowedDates: [Array, Function],
|
4218
4219
|
disabled: {
|
4219
4220
|
type: Boolean,
|
@@ -4236,7 +4237,7 @@ const Di = Re({
|
|
4236
4237
|
},
|
4237
4238
|
firstDayOfWeek: [Number, String]
|
4238
4239
|
}, "calendar");
|
4239
|
-
function
|
4240
|
+
function nd(t) {
|
4240
4241
|
const e = ct(), n = _e(t, "modelValue", [], (f) => pt(f)), s = $(() => t.displayValue ? e.date(t.displayValue) : n.value.length > 0 ? e.date(n.value[0]) : t.min ? e.date(t.min) : Array.isArray(t.allowedDates) ? e.date(t.allowedDates[0]) : e.date()), i = _e(t, "year", void 0, (f) => {
|
4241
4242
|
const h = f != null ? Number(f) : e.getYear(s.value);
|
4242
4243
|
return e.startOfYear(e.setYear(e.date(), h));
|
@@ -4318,7 +4319,7 @@ const Ci = Re({
|
|
4318
4319
|
type: String,
|
4319
4320
|
default: "picker-reverse-transition"
|
4320
4321
|
},
|
4321
|
-
...ot(
|
4322
|
+
...ot(td(), ["displayValue"])
|
4322
4323
|
}, "VDatePickerMonth"), hs = Le()({
|
4323
4324
|
name: "VDatePickerMonth",
|
4324
4325
|
props: Ci(),
|
@@ -4336,7 +4337,7 @@ const Ci = Re({
|
|
4336
4337
|
daysInMonth: r,
|
4337
4338
|
model: a,
|
4338
4339
|
weekNumbers: u
|
4339
|
-
} =
|
4340
|
+
} = nd(t), l = ct(), c = vt(), d = vt(), g = vt(!1), E = $(() => g.value ? t.reverseTransition : t.transition);
|
4340
4341
|
t.multiple === "range" && a.value.length > 0 && (c.value = a.value[0], a.value.length > 1 && (d.value = a.value[a.value.length - 1]));
|
4341
4342
|
const m = $(() => {
|
4342
4343
|
const y = ["number", "string"].includes(typeof t.multiple) ? Number(t.multiple) : 1 / 0;
|
@@ -4565,7 +4566,7 @@ const Ci = Re({
|
|
4565
4566
|
}, d), null);
|
4566
4567
|
})])])), {};
|
4567
4568
|
}
|
4568
|
-
}),
|
4569
|
+
}), sd = dr("v-picker-title"), Ni = Re({
|
4569
4570
|
bgColor: String,
|
4570
4571
|
landscape: Boolean,
|
4571
4572
|
title: String,
|
@@ -4596,7 +4597,7 @@ const Ci = Re({
|
|
4596
4597
|
key: "header",
|
4597
4598
|
class: [s.value],
|
4598
4599
|
style: [i.value]
|
4599
|
-
}, [a && b(
|
4600
|
+
}, [a && b(sd, {
|
4600
4601
|
key: "picker-title"
|
4601
4602
|
}, {
|
4602
4603
|
default: () => [n.title?.() ?? t.title]
|
@@ -4619,7 +4620,7 @@ const Ci = Re({
|
|
4619
4620
|
});
|
4620
4621
|
}), {};
|
4621
4622
|
}
|
4622
|
-
}),
|
4623
|
+
}), id = Re({
|
4623
4624
|
// TODO: implement in v3.5
|
4624
4625
|
// calendarIcon: {
|
4625
4626
|
// type: String,
|
@@ -4657,7 +4658,7 @@ const Ci = Re({
|
|
4657
4658
|
modelValue: null
|
4658
4659
|
}, "VDatePicker"), vs = Le()({
|
4659
4660
|
name: "VDatePicker",
|
4660
|
-
props:
|
4661
|
+
props: id(),
|
4661
4662
|
emits: {
|
4662
4663
|
"update:modelValue": (t) => !0,
|
4663
4664
|
"update:month": (t) => !0,
|
@@ -4693,12 +4694,12 @@ const Ci = Re({
|
|
4693
4694
|
else {
|
4694
4695
|
let B = i.date();
|
4695
4696
|
if (B = i.startOfMonth(B), B = i.setMonth(B, g.value), B = i.setYear(B, E.value), l.value) {
|
4696
|
-
const
|
4697
|
-
i.isAfter(l.value,
|
4697
|
+
const ye = i.addDays(i.startOfMonth(B), -1);
|
4698
|
+
i.isAfter(l.value, ye) && R.push("prev");
|
4698
4699
|
}
|
4699
4700
|
if (c.value) {
|
4700
|
-
const
|
4701
|
-
i.isAfter(
|
4701
|
+
const ye = i.addDays(i.endOfMonth(B), 1);
|
4702
|
+
i.isAfter(ye, c.value) && R.push("next");
|
4702
4703
|
}
|
4703
4704
|
}
|
4704
4705
|
return R;
|
@@ -4725,12 +4726,12 @@ const Ci = Re({
|
|
4725
4726
|
u.value === "year" && W(), n("update:year", R);
|
4726
4727
|
}
|
4727
4728
|
return Es(a, (R, B) => {
|
4728
|
-
const
|
4729
|
+
const ye = pt(B), Qe = pt(R);
|
4729
4730
|
if (!Qe.length) return;
|
4730
|
-
const Bt = i.date(
|
4731
|
+
const Bt = i.date(ye[ye.length - 1]), Xe = i.date(Qe[Qe.length - 1]), we = i.getMonth(Xe), Q = i.getYear(Xe);
|
4731
4732
|
we !== g.value && (g.value = we, de(g.value)), Q !== E.value && (E.value = Q, Ie(E.value)), m.value = i.isBefore(Bt, Xe);
|
4732
4733
|
}), Ke(() => {
|
4733
|
-
const R = ps.filterProps(t), B = ds.filterProps(t),
|
4734
|
+
const R = ps.filterProps(t), B = ds.filterProps(t), ye = fs.filterProps(t), Qe = hs.filterProps(t), Bt = ot(gs.filterProps(t), ["modelValue"]), Xe = ot(ms.filterProps(t), ["modelValue"]), we = {
|
4734
4735
|
header: f.value,
|
4735
4736
|
transition: v.value
|
4736
4737
|
};
|
@@ -4753,7 +4754,7 @@ const Ci = Re({
|
|
4753
4754
|
default: () => [s.header?.(we)]
|
4754
4755
|
}) : b(fs, se({
|
4755
4756
|
key: "header"
|
4756
|
-
},
|
4757
|
+
}, ye, we, {
|
4757
4758
|
onClick: u.value !== "month" ? te : void 0
|
4758
4759
|
}), {
|
4759
4760
|
...s,
|
@@ -4801,10 +4802,10 @@ const Ci = Re({
|
|
4801
4802
|
});
|
4802
4803
|
}), {};
|
4803
4804
|
}
|
4804
|
-
}),
|
4805
|
-
function
|
4805
|
+
}), rd = { class: "d-flex justify-end" };
|
4806
|
+
function od(t, e, n, s, i, r) {
|
4806
4807
|
const a = ie("BPhoneInput"), u = ie("BSearchLocationInput");
|
4807
|
-
return M(),
|
4808
|
+
return M(), me("div", null, [
|
4808
4809
|
b(mr, {
|
4809
4810
|
modelValue: t.isFormValid,
|
4810
4811
|
"onUpdate:modelValue": e[13] || (e[13] = (l) => t.isFormValid = l),
|
@@ -4960,7 +4961,7 @@ function rd(t, e, n, s, i, r) {
|
|
4960
4961
|
variant: "outlined",
|
4961
4962
|
color: "primary"
|
4962
4963
|
}, null, 8, ["modelValue", "label"]),
|
4963
|
-
Qt("div",
|
4964
|
+
Qt("div", rd, [
|
4964
4965
|
b(re, {
|
4965
4966
|
color: t.isSuccess ? "green" : "primary",
|
4966
4967
|
"data-cy": "submit-button",
|
@@ -4981,7 +4982,7 @@ function rd(t, e, n, s, i, r) {
|
|
4981
4982
|
]);
|
4982
4983
|
}
|
4983
4984
|
typeof cs == "function" && cs(Ai);
|
4984
|
-
const
|
4985
|
+
const ad = /* @__PURE__ */ dn(Ai, [["render", od]]), ld = {
|
4985
4986
|
...Ti,
|
4986
4987
|
boilerplateSkeleton: {
|
4987
4988
|
type: Boolean
|
@@ -5002,7 +5003,7 @@ const od = /* @__PURE__ */ dn(Ai, [["render", rd]]), ad = {
|
|
5002
5003
|
}, Li = un({
|
5003
5004
|
components: {
|
5004
5005
|
BErrorOverlay: ur,
|
5005
|
-
ContactForm:
|
5006
|
+
ContactForm: ad,
|
5006
5007
|
HotelOfferItemLayout: Ts
|
5007
5008
|
},
|
5008
5009
|
computed: {
|
@@ -5074,7 +5075,7 @@ const od = /* @__PURE__ */ dn(Ai, [["render", rd]]), ad = {
|
|
5074
5075
|
},
|
5075
5076
|
mixins: [Rs],
|
5076
5077
|
name: "HotelOfferListEmpty",
|
5077
|
-
props:
|
5078
|
+
props: ld,
|
5078
5079
|
setup() {
|
5079
5080
|
const { t } = cn();
|
5080
5081
|
return {
|
@@ -5266,11 +5267,11 @@ function ys(t) {
|
|
5266
5267
|
}
|
5267
5268
|
});
|
5268
5269
|
}
|
5269
|
-
const
|
5270
|
-
function
|
5270
|
+
const ud = { class: "position-relative" };
|
5271
|
+
function cd(t, e, n, s, i, r) {
|
5271
5272
|
const a = ie("HotelOfferItemLayout"), u = ie("ContactForm"), l = ie("BErrorOverlay");
|
5272
|
-
return M(),
|
5273
|
-
(M(),
|
5273
|
+
return M(), me("div", ud, [
|
5274
|
+
(M(), me(Fe, null, Is(6, (c) => (M(), me(Fe, { key: c }, [
|
5274
5275
|
b(a, {
|
5275
5276
|
boilerplate: t.boilerplateSkeleton,
|
5276
5277
|
class: yt({
|
@@ -5319,35 +5320,40 @@ function ud(t, e, n, s, i, r) {
|
|
5319
5320
|
]);
|
5320
5321
|
}
|
5321
5322
|
typeof ys == "function" && ys(Li);
|
5322
|
-
const
|
5323
|
+
const dd = /* @__PURE__ */ dn(Li, [["render", cd]]), wi = un({
|
5323
5324
|
components: {
|
5324
5325
|
BHotelOffersFilterBar: rr,
|
5325
|
-
BHotelSearchBar: vr,
|
5326
5326
|
HotelOfferItem: ir,
|
5327
5327
|
HotelOfferItemLayout: Ts,
|
5328
|
-
HotelOfferListEmpty:
|
5328
|
+
HotelOfferListEmpty: dd,
|
5329
|
+
HotelOfferSearchMenuUI: vr,
|
5329
5330
|
HotelRoomOfferList: pr,
|
5330
5331
|
TermsAndConditions: Er
|
5331
5332
|
},
|
5332
5333
|
computed: {
|
5333
5334
|
...qi(
|
5334
5335
|
Yi,
|
5335
|
-
|
5336
|
+
kr,
|
5336
5337
|
or
|
5337
5338
|
),
|
5338
|
-
areFiltersActive:
|
5339
|
+
areFiltersActive: fe("hotelOffers/areFiltersActive"),
|
5339
5340
|
displayFiltersMenu() {
|
5340
5341
|
return !!this.parsedFeatures.FiltersBar;
|
5341
5342
|
},
|
5342
|
-
filters:
|
5343
|
-
hasErrorHotelOffers:
|
5344
|
-
hotelOfferRequest:
|
5345
|
-
hotelOffers:
|
5346
|
-
hotelOffersCurrency:
|
5347
|
-
|
5343
|
+
filters: fe("hotelOffers/filters"),
|
5344
|
+
hasErrorHotelOffers: fe("hotelOffers/hasError"),
|
5345
|
+
hotelOfferRequest: fe("hotelOfferRequest"),
|
5346
|
+
hotelOffers: fe("hotelOffers/hotelOffers"),
|
5347
|
+
hotelOffersCurrency: fe("hotelOffers/hotelOffersCurrency"),
|
5348
|
+
isFetching: fe("hotelOfferRequest/isFetching"),
|
5349
|
+
isPollingHotelOffers: fe("hotelOffers/isPolling"),
|
5348
5350
|
isTopPicksSelected() {
|
5349
5351
|
return this.filters.sort_by?.value === Ki.TopPicks;
|
5350
5352
|
},
|
5353
|
+
markerDates() {
|
5354
|
+
const { eventMetadata: t } = window.RevolugoElements.config;
|
5355
|
+
return t?.dateStart && t?.dateEnd ? Ji(t.dateStart, t.dateEnd) : [];
|
5356
|
+
},
|
5351
5357
|
showErrorMessage() {
|
5352
5358
|
return this.hotelOfferRequest.hasError || this.hasErrorHotelOffers;
|
5353
5359
|
},
|
@@ -5357,7 +5363,7 @@ const cd = /* @__PURE__ */ dn(Li, [["render", ud]]), wi = un({
|
|
5357
5363
|
showSkeleton() {
|
5358
5364
|
return !this.hotelOfferRequest.id || this.hotelOfferRequest.isFetching || this.isPollingHotelOffers && (!this.hotelOffers || this.hotelOffers?.length === 0);
|
5359
5365
|
},
|
5360
|
-
startingAfter:
|
5366
|
+
startingAfter: fe("hotelOffers/startingAfter")
|
5361
5367
|
},
|
5362
5368
|
methods: {
|
5363
5369
|
onHotelOfferItemMouseleave() {
|
@@ -5388,20 +5394,20 @@ const cd = /* @__PURE__ */ dn(Li, [["render", ud]]), wi = un({
|
|
5388
5394
|
},
|
5389
5395
|
mixins: [
|
5390
5396
|
Rs,
|
5391
|
-
|
5397
|
+
nr,
|
5392
5398
|
br(
|
5393
5399
|
["bookingApiClient", "config.currency", "config.lang"],
|
5394
5400
|
"retrieveHotelOffers"
|
5395
5401
|
),
|
5396
|
-
|
5402
|
+
sr,
|
5397
5403
|
yr({
|
5398
5404
|
fallbackValue: Cs,
|
5399
5405
|
propsName: "features"
|
5400
5406
|
}),
|
5401
|
-
|
5407
|
+
Or()
|
5402
5408
|
],
|
5403
5409
|
name: "HotelOfferList",
|
5404
|
-
props:
|
5410
|
+
props: Ir,
|
5405
5411
|
setup() {
|
5406
5412
|
const { t } = cn();
|
5407
5413
|
return {
|
@@ -5476,16 +5482,16 @@ function bs(t) {
|
|
5476
5482
|
}
|
5477
5483
|
});
|
5478
5484
|
}
|
5479
|
-
const
|
5485
|
+
const fd = {
|
5480
5486
|
key: 0,
|
5481
5487
|
class: "mx-n2"
|
5482
|
-
},
|
5488
|
+
}, hd = {
|
5483
5489
|
key: 1,
|
5484
5490
|
class: "d-flex justify-center align-center py-3"
|
5485
5491
|
};
|
5486
|
-
function
|
5487
|
-
const a = ie("
|
5488
|
-
return M(), K(
|
5492
|
+
function gd(t, e, n, s, i, r) {
|
5493
|
+
const a = ie("HotelOfferSearchMenuUI"), u = ie("BHotelOffersFilterBar"), l = ie("HotelOfferListEmpty"), c = ie("HotelRoomOfferList"), d = ie("HotelOfferItem"), g = ie("TermsAndConditions");
|
5494
|
+
return M(), K(Rr, {
|
5489
5495
|
ref: "hotel-offer-list-container",
|
5490
5496
|
class: "pa-0 bg-white",
|
5491
5497
|
style: Xi([{ "min-height": "500px" }, {
|
@@ -5508,10 +5514,10 @@ function hd(t, e, n, s, i, r) {
|
|
5508
5514
|
key: 0,
|
5509
5515
|
modelValue: t.hotelOfferRequestInternal,
|
5510
5516
|
"onUpdate:modelValue": e[0] || (e[0] = (E) => t.hotelOfferRequestInternal = E),
|
5511
|
-
"is-
|
5512
|
-
"loading-bar-enabled": !1,
|
5513
|
-
"
|
5514
|
-
}, null, 8, ["modelValue", "is-
|
5517
|
+
"is-loading": t.isFetching,
|
5518
|
+
"is-loading-bar-enabled": !1,
|
5519
|
+
"marker-dates": t.markerDates
|
5520
|
+
}, null, 8, ["modelValue", "is-loading", "marker-dates"])) : X("", !0)
|
5515
5521
|
]),
|
5516
5522
|
_: 1
|
5517
5523
|
})
|
@@ -5553,14 +5559,14 @@ function hd(t, e, n, s, i, r) {
|
|
5553
5559
|
"source-market": t.hotelOfferRequest.sourceMarket,
|
5554
5560
|
type: "noResults",
|
5555
5561
|
onResetFilters: t.onResetFilters
|
5556
|
-
}, null, 8, ["address", "adult-count", "check-in-date", "check-out-date", "latitude", "longitude", "room-count", "source-market", "onResetFilters"])) : (M(),
|
5562
|
+
}, null, 8, ["address", "adult-count", "check-in-date", "check-out-date", "latitude", "longitude", "room-count", "source-market", "onResetFilters"])) : (M(), me(Fe, { key: 3 }, [
|
5557
5563
|
Wi(b(hr, {
|
5558
5564
|
color: "primary",
|
5559
5565
|
indeterminate: ""
|
5560
5566
|
}, null, 512), [
|
5561
|
-
[Qi, t.
|
5567
|
+
[Qi, t.isLoadingBarEnabled && t.isPollingHotelOffers]
|
5562
5568
|
]),
|
5563
|
-
t.hotelOffers ? (M(!0),
|
5569
|
+
t.hotelOffers ? (M(!0), me(Fe, { key: 0 }, Is(t.hotelOffers, (E, m) => (M(), me(Fe, {
|
5564
5570
|
key: E.id
|
5565
5571
|
}, [
|
5566
5572
|
b(d, {
|
@@ -5575,7 +5581,7 @@ function hd(t, e, n, s, i, r) {
|
|
5575
5581
|
onMouseover: (f) => t.onHotelOfferItemMouseover(E)
|
5576
5582
|
}, {
|
5577
5583
|
default: _(() => [
|
5578
|
-
t.parsedFeatures.HotelOfferItem?.HotelRoomOfferList ? (M(),
|
5584
|
+
t.parsedFeatures.HotelOfferItem?.HotelRoomOfferList ? (M(), me("div", fd, [
|
5579
5585
|
b(c, {
|
5580
5586
|
"adult-count": t.hotelOfferRequest.adultCount,
|
5581
5587
|
"check-in-date": t.hotelOfferRequest.checkInDate,
|
@@ -5593,7 +5599,7 @@ function hd(t, e, n, s, i, r) {
|
|
5593
5599
|
}, 1032, ["class", "features", "hotel-offer", "single-offer", "onMouseleave", "onMouseover"]),
|
5594
5600
|
b(Xt)
|
5595
5601
|
], 64))), 128)) : X("", !0),
|
5596
|
-
t.startingAfter ? (M(),
|
5602
|
+
t.startingAfter ? (M(), me("div", hd, [
|
5597
5603
|
b(re, {
|
5598
5604
|
color: "primary",
|
5599
5605
|
variant: "flat",
|
@@ -5623,11 +5629,11 @@ function hd(t, e, n, s, i, r) {
|
|
5623
5629
|
}, 8, ["style"]);
|
5624
5630
|
}
|
5625
5631
|
typeof bs == "function" && bs(wi);
|
5626
|
-
const
|
5632
|
+
const Bd = /* @__PURE__ */ dn(wi, [["render", gd]]);
|
5627
5633
|
Mi("css/revolugo.hotelofferlist.BkctzTMI.css");
|
5628
5634
|
export {
|
5629
|
-
|
5635
|
+
Bd as H,
|
5630
5636
|
Cs as a,
|
5631
|
-
|
5637
|
+
Ir as h
|
5632
5638
|
};
|
5633
|
-
//# sourceMappingURL=revolugo.hotelofferlist.
|
5639
|
+
//# sourceMappingURL=revolugo.hotelofferlist.Cj2C7Zi4.min.js.map
|