@revolugo/elements 6.9.3-beta.9 → 6.9.4-rc.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/css/fonts.css +1 -1
- package/dist/css/revolugo.bdaterangepicker.OLspTh_0.css +1 -0
- package/dist/css/revolugo.bhoteloffersfilterbar.BebBKpCh.css +1 -0
- package/dist/css/revolugo.bhotelroomsdetails.c1M8WEQ1.css +1 -0
- package/dist/css/revolugo.bimagecarousel.B2SxWMbZ.css +1 -0
- package/dist/css/revolugo.bookingdetailssidebar.Cp4sLBjD.css +1 -0
- package/dist/css/revolugo.bstarrating.CPHKEfup.css +1 -0
- package/dist/css/revolugo.btag.T7X_iIkW.css +1 -0
- package/dist/css/revolugo.cancellationpoliciesbadge.BLInUr3-.css +1 -0
- package/dist/css/revolugo.creditcardform.DWne0Lnv.css +1 -0
- package/dist/css/revolugo.creditcardpayment.D2PE5FCt.css +1 -0
- package/dist/css/revolugo.fullbookingflow.Bm8JAQF7.css +1 -0
- package/dist/css/revolugo.hoteldescriptionview.B-RiiuPY.css +1 -0
- package/dist/css/revolugo.hotelofferlist.BkctzTMI.css +1 -0
- package/dist/css/revolugo.hoteloffersearchmenuui.ZbUh8ba2.css +1 -0
- package/dist/css/revolugo.hoteloffersmap.Z5DFtK0_.css +1 -0
- package/dist/css/revolugo.hoteloffersview.CLbnSww6.css +1 -0
- package/dist/css/revolugo.hotelroomofferlist.D8JlZt_N.css +1 -0
- package/dist/css/revolugo.hotelroomoffersbookingflow.LHa5iHB7.css +1 -0
- package/dist/css/revolugo.index.DK7d_h6O.css +1 -0
- package/dist/css/revolugo.index.XNPQF1ia.css +5 -0
- package/dist/css/revolugo.langpickerbtn.BGnattUJ.css +1 -0
- package/dist/css/revolugo.prebookform.DmCR7hLv.css +1 -0
- package/dist/css/revolugo.preferencesmenu.fPv_7j-1.css +1 -0
- package/dist/css/revolugo.termsandconditions.D8IMR9da.css +1 -0
- package/dist/css/revolugo.vautocomplete.CuVjyvcC.css +1 -0
- package/dist/css/revolugo.vbadge.C45eZpxy.css +1 -0
- package/dist/css/revolugo.vbtn.DpMO1Ky2.css +1 -0
- package/dist/css/revolugo.vcard.TERzfknI.css +1 -0
- package/dist/css/revolugo.vcheckboxbtn.Bp_BNQWb.css +1 -0
- package/dist/css/revolugo.vdialog.DwTSAOeg.css +1 -0
- package/dist/css/revolugo.vdivider.CTbbZwnv.css +1 -0
- package/dist/css/revolugo.vexpansionpanels.RsCANmDP.css +1 -0
- package/dist/css/revolugo.vicon.eIkh7vVK.css +1 -0
- package/dist/css/revolugo.vinput.BPiFMorL.css +1 -0
- package/dist/css/revolugo.vlabel.BvKaKg7Y.css +1 -0
- package/dist/css/revolugo.vlist.-Y4qkukF.css +1 -0
- package/dist/css/revolugo.vmenu.DvKwEp1j.css +1 -0
- package/dist/css/revolugo.vselect.C5CKHFYB.css +1 -0
- package/dist/css/revolugo.vsheet.Dmcoj8cr.css +1 -0
- package/dist/css/revolugo.vskeletonloader.BlK8uFkX.css +1 -0
- package/dist/css/revolugo.vslidegroup.ECiLCEE9.css +1 -0
- package/dist/css/revolugo.vsnackbar.CCfuo3ao.css +1 -0
- package/dist/css/revolugo.vtextarea.Dxy6uSvm.css +1 -0
- package/dist/css/revolugo.vtextfield.BIH_AWWP.css +1 -0
- package/dist/css/revolugo.vtooltip.BHXJTQ4V.css +1 -0
- package/dist/css/revolugo.vwindowitem.CWBhiE_Y.css +1 -0
- package/dist/css/{revolugo.webcomponentwrapper.BQSUxe3K.css → revolugo.webcomponentwrapper.cFJPP6Rp.css} +1 -1
- package/dist/index.es.min.js +1518 -1275
- 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.C9fSfygW.min.js +247 -0
- package/dist/revolugo.banktransferdetails.HF-5whLi.min.js +373 -0
- package/dist/revolugo.bdaterangepicker.Dztdr7of.min.js +8327 -0
- package/dist/revolugo.bformattedamount.vue_vue_type_script_setup_true_lang.WRP6nh8U.min.js +146 -0
- package/dist/revolugo.bhoteloffersfilterbar.riRikxpD.min.js +4901 -0
- package/dist/revolugo.bhotelroomsdetails.DSVvK0I7.min.js +965 -0
- package/dist/revolugo.bimagecarousel.0DDXWSsX.min.js +566 -0
- package/dist/revolugo.bookingdetailssidebar.B3nJVjzT.min.js +24 -0
- package/dist/revolugo.bookingdetailssidebar.HR95sw2v.min.js +870 -0
- package/dist/revolugo.bookingmanager.CHhySvbL.min.js +1755 -0
- package/dist/revolugo.bpricesummaryskeleton.vue_vue_type_script_setup_true_lang.DCBOxir-.min.js +66 -0
- package/dist/revolugo.bstarrating.vue_vue_type_script_setup_true_lang.D7d1JNOc.min.js +570 -0
- package/dist/revolugo.btag.C27GlEZ3.min.js +375 -0
- package/dist/revolugo.cancellationpoliciesbadge.CQ9NQZ7F.min.js +28 -0
- package/dist/revolugo.cancellationpoliciesbadge.D7VDRPmO.min.js +198 -0
- package/dist/revolugo.cancellationpolicieslist.DUrr7Myp.min.js +25 -0
- package/dist/revolugo.cancellationpolicieslist.IKkTYxdE.min.js +148 -0
- package/dist/revolugo.cancellationpolicieslist.props.s6oWxIxG.min.js +21 -0
- package/dist/revolugo.case-transformers.Blb5hegY.min.js +123 -0
- package/dist/revolugo.common.D-l8b0V5.min.js +10 -0
- package/dist/{revolugo.creditcardstripeform.B8KtVBUI.min.js → revolugo.creditcardform.CejFX150.min.js} +886 -888
- package/dist/revolugo.creditcardform.Dx00l01z.min.js +24 -0
- package/dist/revolugo.creditcardpayment.CkfC2xTo.min.js +885 -0
- package/dist/revolugo.creditcardpayment.DZf0q5_n.min.js +24 -0
- package/dist/revolugo.currencypicker.B9c-AV8V.min.js +328 -0
- package/dist/revolugo.currencypickerbtn.B_lw6N3Y.min.js +24 -0
- package/dist/revolugo.currencypickerbtn.edi3iO6h.min.js +157 -0
- package/dist/revolugo.dates.DiE5ynTe.min.js +31 -0
- package/dist/revolugo.defaultsdeep.EmfuGqBQ.min.js +104 -0
- package/dist/{revolugo.dialog-attach.e4eWyf04.min.js → revolugo.dialog-attach.C4Yvk6WJ.min.js} +2 -2
- package/dist/revolugo.dialog-transition.Dly9KKqO.min.js +111 -0
- package/dist/revolugo.fastbookingflow.DPOX_gos.min.js +34 -0
- package/dist/revolugo.forwardrefs.VVhh1qV3.min.js +70 -0
- package/dist/revolugo.fullbookingflow.DSJE_kaM.min.js +429 -0
- package/dist/revolugo.hotel-offer-request.C9zwgVPt.min.js +98 -0
- package/dist/revolugo.hoteldescriptionview.Dtd-_3_8.min.js +24 -0
- package/dist/revolugo.hoteldescriptionview.kERJQPWm.min.js +2738 -0
- package/dist/revolugo.hotelofferitemlayout.vue_vue_type_script_setup_true_lang.CiHBAV7m.min.js +239 -0
- package/dist/revolugo.hotelofferlist.BC-TSjS6.min.js +24 -0
- package/dist/revolugo.hotelofferlist.D2AXSf4v.min.js +5640 -0
- package/dist/revolugo.hotelofferrequestcreator.props.BeQuCTZy.min.js +44 -0
- package/dist/revolugo.hoteloffersearchmenu.BODV4ZIe.min.js +202 -0
- package/dist/revolugo.hoteloffersearchmenuui.DqWHAurZ.min.js +829 -0
- package/dist/revolugo.hoteloffersmap.C6nn7LXn.min.js +8330 -0
- package/dist/revolugo.hoteloffersmap.Db9NNgcN.min.js +24 -0
- package/dist/revolugo.hoteloffersview.BAwQcocI.min.js +19 -0
- package/dist/revolugo.hoteloffersview.CIVNGmGO.min.js +616 -0
- package/dist/revolugo.hotelroomofferlist.C9y91Ya3.min.js +2799 -0
- package/dist/revolugo.hotelroomofferlist.CiBIB0Pb.min.js +24 -0
- package/dist/revolugo.hotelroomofferrequestcreator.props.2Sq_iptZ.min.js +171 -0
- package/dist/revolugo.hotelroomoffersbookingflow.BS4Fa2EH.min.js +1281 -0
- package/dist/revolugo.hotelroomoffersearchmenu.CXgExPhR.min.js +25 -0
- package/dist/revolugo.hotelroomoffersearchmenu.x_--4RXV.min.js +231 -0
- package/dist/revolugo.hotelroomoffersview.BzmRXy0a.min.js +290 -0
- package/dist/revolugo.hotelroomoffersview.CFo6k7zm.min.js +24 -0
- package/dist/revolugo.index.CDNx7Tg4.min.js +67 -0
- package/dist/revolugo.index.DZEISB0K.min.js +1232 -0
- package/dist/{revolugo.index.wc.CiJw1SpW.min.js → revolugo.index.wc.DLkeXtka.min.js} +4659 -4637
- package/dist/revolugo.langpicker.D7zIuy78.min.js +99 -0
- package/dist/revolugo.langpickerbtn.BF7sml8K.min.js +29 -0
- package/dist/revolugo.langpickerbtn.DMcy_gHZ.min.js +131 -0
- package/dist/revolugo.min.js +1 -1
- package/dist/revolugo.parsed-props.B5g9_9k5.min.js +40 -0
- package/dist/revolugo.pathify.DL0POvNz.min.js +36 -0
- package/dist/revolugo.prebookform.BMEaruyl.min.js +1527 -0
- package/dist/revolugo.prebookform.BVyTAnc9.min.js +24 -0
- package/dist/revolugo.preferencesmenu.5pUjkA0F.min.js +24 -0
- package/dist/revolugo.preferencesmenu.CfUC3L6C.min.js +261 -0
- package/dist/revolugo.roominglisteditor.DLWeU6Ct.min.js +385 -0
- package/dist/revolugo.roominglisteditor.L6CmotRz.min.js +24 -0
- package/dist/revolugo.rounded.C-2ilaaW.min.js +68 -0
- package/dist/revolugo.ssrboot.D7k4-YG4.min.js +18 -0
- package/dist/revolugo.storybooktoolbar.CTe_QwGW.min.js +881 -0
- package/dist/revolugo.termsandconditions.Cue6Dsm7.min.js +404 -0
- package/dist/revolugo.termsandconditions.DBq-dEuI.min.js +23 -0
- package/dist/revolugo.use-breakpoint-service.DsQuZJRM.min.js +39 -0
- package/dist/revolugo.use-dialog-attach.DLdl8iIG.min.js +16 -0
- package/dist/revolugo.use-html-element.c9F9oVPw.min.js +11 -0
- package/dist/revolugo.vautocomplete.Q2U5ECgn.min.js +445 -0
- package/dist/revolugo.vbadge.D-lbOD0r.min.js +112 -0
- package/dist/revolugo.vbtn.B-LYC8rJ.min.js +398 -0
- package/dist/revolugo.vcard.ZlYB5HOk.min.js +313 -0
- package/dist/revolugo.vcheckboxbtn.BGpOwRWV.min.js +478 -0
- package/dist/revolugo.vdialog.DlAgRbIv.min.js +133 -0
- package/dist/revolugo.vdivider.D1ITKKuu.min.js +77 -0
- package/dist/revolugo.vexpansionpanels.D8TtnQrF.min.js +262 -0
- package/dist/revolugo.vform.gu3frP5W.min.js +46 -0
- package/dist/revolugo.vicon.mrg8OisO.min.js +105 -0
- package/dist/revolugo.vinput.BowTI8jK.min.js +463 -0
- package/dist/revolugo.vlabel.BjtrjyZZ.min.js +48 -0
- package/dist/revolugo.vlist.BwlPoH0e.min.js +1299 -0
- package/dist/revolugo.vmenu.Dasw1a1s.min.js +145 -0
- package/dist/revolugo.vselect.B4IzM260.min.js +660 -0
- package/dist/revolugo.vsheet.CDgBUxHk.min.js +72 -0
- package/dist/revolugo.vskeletonloader.DgIjR-8k.min.js +136 -0
- package/dist/revolugo.vslidegroup.BV7NJuLN.min.js +325 -0
- package/dist/revolugo.vsnackbar.DFnMGJQg.min.js +198 -0
- package/dist/revolugo.vspacer.DqnVrVYg.min.js +7 -0
- package/dist/revolugo.vtextarea.CgekaBze.min.js +2092 -0
- package/dist/revolugo.vtextfield.BhmuZsP7.min.js +501 -0
- package/dist/{revolugo.vtoolbar.Ctwu8OKs.min.js → revolugo.vtoolbar.CMwcpp3v.min.js} +44 -42
- package/dist/revolugo.vtooltip.a-r5BxqW.min.js +89 -0
- package/dist/revolugo.vwindowitem.BHzrfo73.min.js +317 -0
- package/dist/revolugo.watch-list.BSqnQNdl.min.js +16 -0
- package/dist/revolugo.webcomponentwrapper.BNmjcBmh.min.js +2088 -0
- package/package.json +5 -5
- package/dist/css/revolugo.cancellationpoliciesbadge.DM3Cgr8A.css +0 -1
- package/dist/css/revolugo.creditcardstripeform.DN5YJSMj.css +0 -1
- package/dist/css/revolugo.index.ClC0OVqq.css +0 -5
- package/dist/css/revolugo.preferencesmenu.D2263Vn6.css +0 -1
- package/dist/revolugo.banktransferdetails.DFskPIBN.min.js +0 -47
- package/dist/revolugo.bookingdetailssidebar.BOs76Qod.min.js +0 -43
- package/dist/revolugo.bookingmanager.DzzQLMr9.min.js +0 -26
- package/dist/revolugo.cancellationpoliciesbadge.BRcM9UUl.min.js +0 -26
- package/dist/revolugo.cancellationpoliciesbadge.props.YZrc252e.min.js +0 -28756
- package/dist/revolugo.cancellationpolicieslist.B7Mf5bmE.min.js +0 -26
- package/dist/revolugo.creditcardstripeform.DkNqhTcH.min.js +0 -50
- package/dist/revolugo.currencypickerbtn.C1B6gpLV.min.js +0 -26
- package/dist/revolugo.fastbookingflow.VfdAOD-j.min.js +0 -36
- package/dist/revolugo.fullbookingflow.CFl16ykj.min.js +0 -26
- package/dist/revolugo.hoteldescriptionview.DTByBiNZ.min.js +0 -26
- package/dist/revolugo.hotelofferlist.HS8rTNwv.min.js +0 -26
- package/dist/revolugo.hoteloffersearchmenu.DLC5yEDD.min.js +0 -115
- package/dist/revolugo.hoteloffersmap.l4UaNpun.min.js +0 -26
- package/dist/revolugo.hoteloffersview.DxUc5TlW.min.js +0 -21
- package/dist/revolugo.hotelroomofferlist.ryYBtMFY.min.js +0 -26
- package/dist/revolugo.hotelroomoffersbookingflow.BWIa87mZ.min.js +0 -26
- package/dist/revolugo.hotelroomoffersearchmenu.4-HSRz_y.min.js +0 -26
- package/dist/revolugo.hotelroomoffersview.Df2SYo4D.min.js +0 -26
- package/dist/revolugo.index.Qn3FvgFh.min.js +0 -106
- package/dist/revolugo.langpickerbtn.rFwls9XZ.min.js +0 -31
- package/dist/revolugo.prebookform.D33OnpHn.min.js +0 -26
- package/dist/revolugo.preferencesmenu.BOWFkVY9.min.js +0 -24
- package/dist/revolugo.preferencesmenu.PVSL2fWE.min.js +0 -949
- package/dist/revolugo.roominglisteditor.gLjgOdGD.min.js +0 -26
- package/dist/revolugo.storybooktoolbar.DZrgGX1X.min.js +0 -838
- package/dist/revolugo.termsandconditions.3W9GTrVc.min.js +0 -31
- package/dist/revolugo.webcomponentwrapper.PTHIHE3G.min.js +0 -28624
@@ -0,0 +1,881 @@
|
|
1
|
+
import { a9 as he, d as R, u as W, k as E, H as z, cs as ge, ct as ve, i as L, a as o, w as r, aB as G, cu as I, f as y, D as J, F, o as k, ah as ye, q as j, r as C, t as Ee, c as X, e as be } from "./revolugo.index.wc.DLkeXtka.min.js";
|
2
|
+
import { B as Z } from "./revolugo.btag.C27GlEZ3.min.js";
|
3
|
+
import { d as Q } from "./revolugo.dialog-attach.C4Yvk6WJ.min.js";
|
4
|
+
import { w as Se } from "./revolugo.watch-list.BSqnQNdl.min.js";
|
5
|
+
import { t as ke } from "./revolugo.index.CDNx7Tg4.min.js";
|
6
|
+
import { _, V as O, a as ee, W as Ce } from "./revolugo.webcomponentwrapper.BNmjcBmh.min.js";
|
7
|
+
import { V as te, a as ie, b as ae } from "./revolugo.vcard.ZlYB5HOk.min.js";
|
8
|
+
import { V as N, B as we } from "./revolugo.bdaterangepicker.Dztdr7of.min.js";
|
9
|
+
import { V as ne } from "./revolugo.vform.gu3frP5W.min.js";
|
10
|
+
import { V as T } from "./revolugo.vtextfield.BhmuZsP7.min.js";
|
11
|
+
import { V as oe } from "./revolugo.vspacer.DqnVrVYg.min.js";
|
12
|
+
import { a as b } from "./revolugo.vbtn.B-LYC8rJ.min.js";
|
13
|
+
import { V as B } from "./revolugo.vicon.mrg8OisO.min.js";
|
14
|
+
import { V as re } from "./revolugo.vdialog.DlAgRbIv.min.js";
|
15
|
+
import { s as H } from "./revolugo.dates.DiE5ynTe.min.js";
|
16
|
+
import { u as Ve } from "./revolugo.hotel-offer-request.C9zwgVPt.min.js";
|
17
|
+
import { p as Ae, g as Me } from "./revolugo.pathify.DL0POvNz.min.js";
|
18
|
+
function pe(e) {
|
19
|
+
try {
|
20
|
+
if (typeof document < "u") {
|
21
|
+
window.REVOLUGO_ELEMENTS_STYLES = window.REVOLUGO_ELEMENTS_STYLES || {
|
22
|
+
sheets: [],
|
23
|
+
components: []
|
24
|
+
};
|
25
|
+
const t = import.meta.url, a = t.slice(0, t.lastIndexOf("/") + 1) + e;
|
26
|
+
window.REVOLUGO_ELEMENTS_STYLES.sheets.push(a);
|
27
|
+
for (const i of REVOLUGO_ELEMENTS_STYLES.components)
|
28
|
+
i(a);
|
29
|
+
if (e.indexOf("fonts") >= 0) {
|
30
|
+
const i = document.createElement("link");
|
31
|
+
i.rel = "stylesheet", linK.href = a, document.head.appendChild(i);
|
32
|
+
}
|
33
|
+
}
|
34
|
+
} catch (t) {
|
35
|
+
console.error("[revolugo-elements] ", t);
|
36
|
+
}
|
37
|
+
}
|
38
|
+
var M = {};
|
39
|
+
/*!
|
40
|
+
* cookie
|
41
|
+
* Copyright(c) 2012-2014 Roman Shtylman
|
42
|
+
* Copyright(c) 2015 Douglas Christopher Wilson
|
43
|
+
* MIT Licensed
|
44
|
+
*/
|
45
|
+
var q;
|
46
|
+
function Le() {
|
47
|
+
if (q) return M;
|
48
|
+
q = 1, M.parse = u, M.serialize = S;
|
49
|
+
var e = Object.prototype.toString, t = Object.prototype.hasOwnProperty, a = /^[!#$%&'*+\-.^_`|~0-9A-Za-z]+$/, i = /^("?)[\u0021\u0023-\u002B\u002D-\u003A\u003C-\u005B\u005D-\u007E]*\1$/, f = /^([.]?[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)([.][a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)*$/i, p = /^[\u0020-\u003A\u003D-\u007E]*$/;
|
50
|
+
function u(s, m) {
|
51
|
+
if (typeof s != "string")
|
52
|
+
throw new TypeError("argument str must be a string");
|
53
|
+
var n = {}, h = s.length;
|
54
|
+
if (h < 2) return n;
|
55
|
+
var w = m && m.decode || ue, c = 0, v = 0, g = 0;
|
56
|
+
do {
|
57
|
+
if (v = s.indexOf("=", c), v === -1) break;
|
58
|
+
if (g = s.indexOf(";", c), g === -1)
|
59
|
+
g = h;
|
60
|
+
else if (v > g) {
|
61
|
+
c = s.lastIndexOf(";", v - 1) + 1;
|
62
|
+
continue;
|
63
|
+
}
|
64
|
+
var V = l(s, c, v), P = d(s, v, V), $ = s.slice(V, P);
|
65
|
+
if (!t.call(n, $)) {
|
66
|
+
var A = l(s, v + 1, g), U = d(s, g, A);
|
67
|
+
s.charCodeAt(A) === 34 && s.charCodeAt(U - 1) === 34 && (A++, U--);
|
68
|
+
var me = s.slice(A, U);
|
69
|
+
n[$] = fe(me, w);
|
70
|
+
}
|
71
|
+
c = g + 1;
|
72
|
+
} while (c < h);
|
73
|
+
return n;
|
74
|
+
}
|
75
|
+
function l(s, m, n) {
|
76
|
+
do {
|
77
|
+
var h = s.charCodeAt(m);
|
78
|
+
if (h !== 32 && h !== 9) return m;
|
79
|
+
} while (++m < n);
|
80
|
+
return n;
|
81
|
+
}
|
82
|
+
function d(s, m, n) {
|
83
|
+
for (; m > n; ) {
|
84
|
+
var h = s.charCodeAt(--m);
|
85
|
+
if (h !== 32 && h !== 9) return m + 1;
|
86
|
+
}
|
87
|
+
return n;
|
88
|
+
}
|
89
|
+
function S(s, m, n) {
|
90
|
+
var h = n && n.encode || encodeURIComponent;
|
91
|
+
if (typeof h != "function")
|
92
|
+
throw new TypeError("option encode is invalid");
|
93
|
+
if (!a.test(s))
|
94
|
+
throw new TypeError("argument name is invalid");
|
95
|
+
var w = h(m);
|
96
|
+
if (!i.test(w))
|
97
|
+
throw new TypeError("argument val is invalid");
|
98
|
+
var c = s + "=" + w;
|
99
|
+
if (!n) return c;
|
100
|
+
if (n.maxAge != null) {
|
101
|
+
var v = Math.floor(n.maxAge);
|
102
|
+
if (!isFinite(v))
|
103
|
+
throw new TypeError("option maxAge is invalid");
|
104
|
+
c += "; Max-Age=" + v;
|
105
|
+
}
|
106
|
+
if (n.domain) {
|
107
|
+
if (!f.test(n.domain))
|
108
|
+
throw new TypeError("option domain is invalid");
|
109
|
+
c += "; Domain=" + n.domain;
|
110
|
+
}
|
111
|
+
if (n.path) {
|
112
|
+
if (!p.test(n.path))
|
113
|
+
throw new TypeError("option path is invalid");
|
114
|
+
c += "; Path=" + n.path;
|
115
|
+
}
|
116
|
+
if (n.expires) {
|
117
|
+
var g = n.expires;
|
118
|
+
if (!ce(g) || isNaN(g.valueOf()))
|
119
|
+
throw new TypeError("option expires is invalid");
|
120
|
+
c += "; Expires=" + g.toUTCString();
|
121
|
+
}
|
122
|
+
if (n.httpOnly && (c += "; HttpOnly"), n.secure && (c += "; Secure"), n.partitioned && (c += "; Partitioned"), n.priority) {
|
123
|
+
var V = typeof n.priority == "string" ? n.priority.toLowerCase() : n.priority;
|
124
|
+
switch (V) {
|
125
|
+
case "low":
|
126
|
+
c += "; Priority=Low";
|
127
|
+
break;
|
128
|
+
case "medium":
|
129
|
+
c += "; Priority=Medium";
|
130
|
+
break;
|
131
|
+
case "high":
|
132
|
+
c += "; Priority=High";
|
133
|
+
break;
|
134
|
+
default:
|
135
|
+
throw new TypeError("option priority is invalid");
|
136
|
+
}
|
137
|
+
}
|
138
|
+
if (n.sameSite) {
|
139
|
+
var P = typeof n.sameSite == "string" ? n.sameSite.toLowerCase() : n.sameSite;
|
140
|
+
switch (P) {
|
141
|
+
case !0:
|
142
|
+
c += "; SameSite=Strict";
|
143
|
+
break;
|
144
|
+
case "lax":
|
145
|
+
c += "; SameSite=Lax";
|
146
|
+
break;
|
147
|
+
case "strict":
|
148
|
+
c += "; SameSite=Strict";
|
149
|
+
break;
|
150
|
+
case "none":
|
151
|
+
c += "; SameSite=None";
|
152
|
+
break;
|
153
|
+
default:
|
154
|
+
throw new TypeError("option sameSite is invalid");
|
155
|
+
}
|
156
|
+
}
|
157
|
+
return c;
|
158
|
+
}
|
159
|
+
function ue(s) {
|
160
|
+
return s.indexOf("%") !== -1 ? decodeURIComponent(s) : s;
|
161
|
+
}
|
162
|
+
function ce(s) {
|
163
|
+
return e.call(s) === "[object Date]";
|
164
|
+
}
|
165
|
+
function fe(s, m) {
|
166
|
+
try {
|
167
|
+
return m(s);
|
168
|
+
} catch {
|
169
|
+
return s;
|
170
|
+
}
|
171
|
+
}
|
172
|
+
return M;
|
173
|
+
}
|
174
|
+
var K = Le();
|
175
|
+
function Ke() {
|
176
|
+
const e = typeof global > "u" ? void 0 : global.TEST_HAS_DOCUMENT_COOKIE;
|
177
|
+
return typeof e == "boolean" ? e : typeof document == "object" && typeof document.cookie == "string";
|
178
|
+
}
|
179
|
+
function Oe(e) {
|
180
|
+
return typeof e == "string" ? K.parse(e) : typeof e == "object" && e !== null ? e : {};
|
181
|
+
}
|
182
|
+
function D(e, t = {}) {
|
183
|
+
const a = Re(e);
|
184
|
+
if (!t.doNotParse)
|
185
|
+
try {
|
186
|
+
return JSON.parse(a);
|
187
|
+
} catch {
|
188
|
+
}
|
189
|
+
return e;
|
190
|
+
}
|
191
|
+
function Re(e) {
|
192
|
+
return e && e[0] === "j" && e[1] === ":" ? e.substr(2) : e;
|
193
|
+
}
|
194
|
+
class _e {
|
195
|
+
constructor(t, a = {}) {
|
196
|
+
this.changeListeners = [], this.HAS_DOCUMENT_COOKIE = !1, this.update = () => {
|
197
|
+
if (!this.HAS_DOCUMENT_COOKIE)
|
198
|
+
return;
|
199
|
+
const f = this.cookies;
|
200
|
+
this.cookies = K.parse(document.cookie), this._checkChanges(f);
|
201
|
+
};
|
202
|
+
const i = typeof document > "u" ? "" : document.cookie;
|
203
|
+
this.cookies = Oe(t || i), this.defaultSetOptions = a, this.HAS_DOCUMENT_COOKIE = Ke();
|
204
|
+
}
|
205
|
+
_emitChange(t) {
|
206
|
+
for (let a = 0; a < this.changeListeners.length; ++a)
|
207
|
+
this.changeListeners[a](t);
|
208
|
+
}
|
209
|
+
_checkChanges(t) {
|
210
|
+
new Set(Object.keys(t).concat(Object.keys(this.cookies))).forEach((i) => {
|
211
|
+
t[i] !== this.cookies[i] && this._emitChange({
|
212
|
+
name: i,
|
213
|
+
value: D(this.cookies[i])
|
214
|
+
});
|
215
|
+
});
|
216
|
+
}
|
217
|
+
_startPolling() {
|
218
|
+
this.pollingInterval = setInterval(this.update, 300);
|
219
|
+
}
|
220
|
+
_stopPolling() {
|
221
|
+
this.pollingInterval && clearInterval(this.pollingInterval);
|
222
|
+
}
|
223
|
+
get(t, a = {}) {
|
224
|
+
return a.doNotUpdate || this.update(), D(this.cookies[t], a);
|
225
|
+
}
|
226
|
+
getAll(t = {}) {
|
227
|
+
t.doNotUpdate || this.update();
|
228
|
+
const a = {};
|
229
|
+
for (let i in this.cookies)
|
230
|
+
a[i] = D(this.cookies[i], t);
|
231
|
+
return a;
|
232
|
+
}
|
233
|
+
set(t, a, i) {
|
234
|
+
i ? i = Object.assign(Object.assign({}, this.defaultSetOptions), i) : i = this.defaultSetOptions;
|
235
|
+
const f = typeof a == "string" ? a : JSON.stringify(a);
|
236
|
+
this.cookies = Object.assign(Object.assign({}, this.cookies), { [t]: f }), this.HAS_DOCUMENT_COOKIE && (document.cookie = K.serialize(t, f, i)), this._emitChange({ name: t, value: a, options: i });
|
237
|
+
}
|
238
|
+
remove(t, a) {
|
239
|
+
const i = a = Object.assign(Object.assign(Object.assign({}, this.defaultSetOptions), a), { expires: new Date(1970, 1, 1, 0, 0, 1), maxAge: 0 });
|
240
|
+
this.cookies = Object.assign({}, this.cookies), delete this.cookies[t], this.HAS_DOCUMENT_COOKIE && (document.cookie = K.serialize(t, "", i)), this._emitChange({ name: t, value: void 0, options: a });
|
241
|
+
}
|
242
|
+
addChangeListener(t) {
|
243
|
+
this.changeListeners.push(t), this.HAS_DOCUMENT_COOKIE && this.changeListeners.length === 1 && (typeof window == "object" && "cookieStore" in window ? window.cookieStore.addEventListener("change", this.update) : this._startPolling());
|
244
|
+
}
|
245
|
+
removeChangeListener(t) {
|
246
|
+
const a = this.changeListeners.indexOf(t);
|
247
|
+
a >= 0 && this.changeListeners.splice(a, 1), this.HAS_DOCUMENT_COOKIE && this.changeListeners.length === 0 && (typeof window == "object" && "cookieStore" in window ? window.cookieStore.removeEventListener("change", this.update) : this._stopPolling());
|
248
|
+
}
|
249
|
+
}
|
250
|
+
function se(e, { doNotParse: t = !1, autoUpdateDependencies: a = !1 } = {}, i = new _e()) {
|
251
|
+
const f = a ? [...e || []] : e;
|
252
|
+
let p = i.getAll({ doNotParse: !0 });
|
253
|
+
const u = he(0), l = () => {
|
254
|
+
const d = i.getAll({ doNotParse: !0 });
|
255
|
+
Pe(
|
256
|
+
f || null,
|
257
|
+
d,
|
258
|
+
p
|
259
|
+
) && u.value++, p = d;
|
260
|
+
};
|
261
|
+
return i.addChangeListener(l), ke(() => {
|
262
|
+
i.removeChangeListener(l);
|
263
|
+
}), {
|
264
|
+
/**
|
265
|
+
* Reactive get cookie by name. If **autoUpdateDependencies = true** then it will update watching dependencies
|
266
|
+
*/
|
267
|
+
get: (...d) => (a && f && !f.includes(d[0]) && f.push(d[0]), u.value, i.get(d[0], { doNotParse: t, ...d[1] })),
|
268
|
+
/**
|
269
|
+
* Reactive get all cookies
|
270
|
+
*/
|
271
|
+
getAll: (...d) => (u.value, i.getAll({ doNotParse: t, ...d[0] })),
|
272
|
+
set: (...d) => i.set(...d),
|
273
|
+
remove: (...d) => i.remove(...d),
|
274
|
+
addChangeListener: (...d) => i.addChangeListener(...d),
|
275
|
+
removeChangeListener: (...d) => i.removeChangeListener(...d)
|
276
|
+
};
|
277
|
+
}
|
278
|
+
function Pe(e, t, a) {
|
279
|
+
if (!e)
|
280
|
+
return !0;
|
281
|
+
for (const i of e)
|
282
|
+
if (t[i] !== a[i])
|
283
|
+
return !0;
|
284
|
+
return !1;
|
285
|
+
}
|
286
|
+
const le = R({
|
287
|
+
components: {
|
288
|
+
BTag: Z
|
289
|
+
},
|
290
|
+
methods: {
|
291
|
+
closeDialog() {
|
292
|
+
this.dialog = !1, this.apiKey = this.cookies.get("apiKey");
|
293
|
+
},
|
294
|
+
async isValidApiKey() {
|
295
|
+
if (!this.apiKey)
|
296
|
+
return !1;
|
297
|
+
const e = {
|
298
|
+
apiEnvironment: window.RevolugoElements.config.apiEnvironment,
|
299
|
+
apiKey: this.apiKey,
|
300
|
+
apiVersion: ge.V1,
|
301
|
+
optionalHeaders: window.RevolugoElements.config.optionalHeaders
|
302
|
+
}, t = new ve(e);
|
303
|
+
try {
|
304
|
+
return !!await t.hotels.retrieve({
|
305
|
+
id: "2yvb"
|
306
|
+
});
|
307
|
+
} catch (a) {
|
308
|
+
return console.error(a), !1;
|
309
|
+
}
|
310
|
+
},
|
311
|
+
async onSubmit() {
|
312
|
+
this.validate(), await this.updateApiKey(), this.apiKey && this.closeDialog();
|
313
|
+
},
|
314
|
+
async updateApiKey() {
|
315
|
+
try {
|
316
|
+
if (this.isLoading = !0, await this.isValidApiKey())
|
317
|
+
this.config.apiKey !== this.apiKey && this.updateConfig({
|
318
|
+
...this.config,
|
319
|
+
apiKey: this.apiKey
|
320
|
+
}), this.cookies.set("apiKey", this.apiKey, {
|
321
|
+
expires: new Date(Date.now() + 1e3 * 60 * 60 * 24 * 365)
|
322
|
+
});
|
323
|
+
else
|
324
|
+
throw new Error("Invalid API Key");
|
325
|
+
} catch {
|
326
|
+
console.error("Invalid API Key");
|
327
|
+
} finally {
|
328
|
+
this.isLoading = !1;
|
329
|
+
}
|
330
|
+
},
|
331
|
+
validate() {
|
332
|
+
this.$refs.apiKeyEditorForm.validate();
|
333
|
+
}
|
334
|
+
},
|
335
|
+
mixins: [
|
336
|
+
Se(["config.apiEnvironment"], "updateApiKey", {
|
337
|
+
deep: !0,
|
338
|
+
immediate: !0
|
339
|
+
}),
|
340
|
+
Q
|
341
|
+
],
|
342
|
+
name: "ApiKeyEditor",
|
343
|
+
setup() {
|
344
|
+
const e = se(["apiKey"]), { t } = W(), a = E(e.get("apiKey")), i = z(
|
345
|
+
() => window.RevolugoElements.config.apiEnvironment
|
346
|
+
), f = z(() => [
|
347
|
+
(d) => !!d || `A valid API Key is required. ${t("ApiKeyEditor.hint", {
|
348
|
+
environment: i.value
|
349
|
+
})}`
|
350
|
+
]), p = E(!1), u = E(!1), l = E(!1);
|
351
|
+
return {
|
352
|
+
apiKey: a,
|
353
|
+
apiKeyRules: f,
|
354
|
+
cookies: e,
|
355
|
+
dialog: p,
|
356
|
+
isFormValid: u,
|
357
|
+
isLoading: l,
|
358
|
+
t
|
359
|
+
};
|
360
|
+
}
|
361
|
+
// eslint-disable-next-line @typescript-eslint/no-empty-object-type, @typescript-eslint/no-explicit-any
|
362
|
+
});
|
363
|
+
function x(e) {
|
364
|
+
const t = e;
|
365
|
+
t.__i18n = t.__i18n || [], t.__i18n.push({
|
366
|
+
locale: "",
|
367
|
+
resource: {
|
368
|
+
"en-US": {
|
369
|
+
ApiKeyEditor: {
|
370
|
+
hint: { t: 0, b: { t: 2, i: [{ t: 3, v: "Please, put your Publishable API Key for " }, { t: 4, k: "environment" }, { t: 3, v: " environment" }] } },
|
371
|
+
invalid: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Provided API Key credential is not valid" } }
|
372
|
+
}
|
373
|
+
},
|
374
|
+
"fr-FR": {
|
375
|
+
ApiKeyEditor: {
|
376
|
+
hint: { t: 0, b: { t: 2, i: [{ t: 3, v: "Indiquez votre clé API Publishable pour l'environnement " }, { t: 4, k: "environment" }] } },
|
377
|
+
invalid: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "La clé API renseignée est invalide." } }
|
378
|
+
}
|
379
|
+
},
|
380
|
+
"de-DE": {
|
381
|
+
ApiKeyEditor: {
|
382
|
+
hint: { t: 0, b: { t: 2, i: [{ t: 3, v: "Bitte gib deinen Veröffentlichen API-Schlüssel für die " }, { t: 4, k: "environment" }, { t: 3, v: " Umgebung an" }] } },
|
383
|
+
invalid: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Der angegebene API-Schlüssel ist ungültig" } }
|
384
|
+
}
|
385
|
+
},
|
386
|
+
"es-ES": {
|
387
|
+
ApiKeyEditor: {
|
388
|
+
hint: { t: 0, b: { t: 2, i: [{ t: 3, v: "Por favor, introduzca su clave API pública para el entorno " }, { t: 4, k: "environment" }] } },
|
389
|
+
invalid: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "La clave API proporcionada no es válida" } }
|
390
|
+
}
|
391
|
+
},
|
392
|
+
"it-IT": {
|
393
|
+
ApiKeyEditor: {
|
394
|
+
hint: { t: 0, b: { t: 2, i: [{ t: 3, v: "Inserisci la tua chiave API pubblica per l'ambiente " }, { t: 4, k: "environment" }] } },
|
395
|
+
invalid: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "La chiave API fornita non è valida" } }
|
396
|
+
}
|
397
|
+
},
|
398
|
+
"nl-NL": {
|
399
|
+
ApiKeyEditor: {
|
400
|
+
hint: { t: 0, b: { t: 2, i: [{ t: 3, v: "Vul hier uw Publishable API Key in voor de " }, { t: 4, k: "environment" }, { t: 3, v: " omgeving" }] } },
|
401
|
+
invalid: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "De opgegeven API Key is ongeldig" } }
|
402
|
+
}
|
403
|
+
},
|
404
|
+
"pt-PT": {
|
405
|
+
ApiKeyEditor: {
|
406
|
+
hint: { t: 0, b: { t: 2, i: [{ t: 3, v: "Por favor, coloque a sua chave API Publicável para o ambiente " }, { t: 4, k: "environment" }] } },
|
407
|
+
invalid: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "A credencial da chave API fornecida não é válida" } }
|
408
|
+
}
|
409
|
+
}
|
410
|
+
}
|
411
|
+
});
|
412
|
+
}
|
413
|
+
function Ue(e, t, a, i, f, p) {
|
414
|
+
return k(), L("div", null, [
|
415
|
+
o(re, {
|
416
|
+
modelValue: e.dialog,
|
417
|
+
"onUpdate:modelValue": t[2] || (t[2] = (u) => e.dialog = u),
|
418
|
+
attach: e.$dialogAttach || void 0,
|
419
|
+
"max-width": "600px"
|
420
|
+
}, {
|
421
|
+
activator: r(({ props: u }) => [
|
422
|
+
o(b, J(u, {
|
423
|
+
color: e.cookies.get("apiKey") ? "success" : "warning",
|
424
|
+
elevation: "0",
|
425
|
+
size: "x-small"
|
426
|
+
}), {
|
427
|
+
default: r(() => [
|
428
|
+
e.cookies.get("apiKey") ? (k(), L(F, { key: 1 }, [
|
429
|
+
o(B, { class: "mr-2" }, {
|
430
|
+
default: r(() => t[5] || (t[5] = [
|
431
|
+
y(" fas fa-check ")
|
432
|
+
])),
|
433
|
+
_: 1,
|
434
|
+
__: [5]
|
435
|
+
}),
|
436
|
+
t[6] || (t[6] = y(" Valid API key "))
|
437
|
+
], 64)) : (k(), L(F, { key: 0 }, [
|
438
|
+
o(B, { class: "mr-2" }, {
|
439
|
+
default: r(() => t[3] || (t[3] = [
|
440
|
+
y(" fas fa-exclamation ")
|
441
|
+
])),
|
442
|
+
_: 1,
|
443
|
+
__: [3]
|
444
|
+
}),
|
445
|
+
t[4] || (t[4] = y(" No API key provided "))
|
446
|
+
], 64))
|
447
|
+
]),
|
448
|
+
_: 2
|
449
|
+
}, 1040, ["color"])
|
450
|
+
]),
|
451
|
+
default: r(() => [
|
452
|
+
o(te, null, {
|
453
|
+
default: r(() => [
|
454
|
+
o(ie, { class: "pa-4" }, {
|
455
|
+
default: r(() => [
|
456
|
+
o(N, { class: "pa-0" }, {
|
457
|
+
default: r(() => [
|
458
|
+
o(O, { "no-gutters": "" }, {
|
459
|
+
default: r(() => [
|
460
|
+
o(ee, null, {
|
461
|
+
default: r(() => [
|
462
|
+
o(ne, {
|
463
|
+
ref: "apiKeyEditorForm",
|
464
|
+
modelValue: e.isFormValid,
|
465
|
+
"onUpdate:modelValue": t[1] || (t[1] = (u) => e.isFormValid = u),
|
466
|
+
class: "m-0",
|
467
|
+
onSubmit: G(e.onSubmit, ["prevent"])
|
468
|
+
}, {
|
469
|
+
default: r(() => [
|
470
|
+
o(T, {
|
471
|
+
modelValue: e.apiKey,
|
472
|
+
"onUpdate:modelValue": t[0] || (t[0] = (u) => e.apiKey = u),
|
473
|
+
density: "compact",
|
474
|
+
hint: e.t("ApiKeyEditor.hint", {
|
475
|
+
environment: e.config.apiEnvironment
|
476
|
+
}),
|
477
|
+
label: "API Key",
|
478
|
+
variant: "outlined",
|
479
|
+
"persistent-hint": "",
|
480
|
+
required: "",
|
481
|
+
rules: e.apiKeyRules,
|
482
|
+
onKeyup: I(e.onSubmit, ["enter"])
|
483
|
+
}, null, 8, ["modelValue", "hint", "rules", "onKeyup"])
|
484
|
+
]),
|
485
|
+
_: 1
|
486
|
+
}, 8, ["modelValue", "onSubmit"])
|
487
|
+
]),
|
488
|
+
_: 1
|
489
|
+
})
|
490
|
+
]),
|
491
|
+
_: 1
|
492
|
+
})
|
493
|
+
]),
|
494
|
+
_: 1
|
495
|
+
})
|
496
|
+
]),
|
497
|
+
_: 1
|
498
|
+
}),
|
499
|
+
o(ae, null, {
|
500
|
+
default: r(() => [
|
501
|
+
o(oe),
|
502
|
+
o(b, {
|
503
|
+
color: "blue-darken-1",
|
504
|
+
size: "small",
|
505
|
+
variant: "text",
|
506
|
+
onClick: e.closeDialog
|
507
|
+
}, {
|
508
|
+
default: r(() => t[7] || (t[7] = [
|
509
|
+
y(" Close ")
|
510
|
+
])),
|
511
|
+
_: 1,
|
512
|
+
__: [7]
|
513
|
+
}, 8, ["onClick"]),
|
514
|
+
o(b, {
|
515
|
+
class: "text-right",
|
516
|
+
color: "primary",
|
517
|
+
disabled: e.isLoading,
|
518
|
+
elevation: "0",
|
519
|
+
loading: e.isLoading,
|
520
|
+
size: "small",
|
521
|
+
onClick: e.onSubmit
|
522
|
+
}, {
|
523
|
+
default: r(() => t[8] || (t[8] = [
|
524
|
+
y(" Save ")
|
525
|
+
])),
|
526
|
+
_: 1,
|
527
|
+
__: [8]
|
528
|
+
}, 8, ["disabled", "loading", "onClick"])
|
529
|
+
]),
|
530
|
+
_: 1
|
531
|
+
})
|
532
|
+
]),
|
533
|
+
_: 1
|
534
|
+
})
|
535
|
+
]),
|
536
|
+
_: 1
|
537
|
+
}, 8, ["modelValue", "attach"])
|
538
|
+
]);
|
539
|
+
}
|
540
|
+
typeof x == "function" && x(le);
|
541
|
+
const De = /* @__PURE__ */ _(le, [["render", Ue]]), de = R({
|
542
|
+
components: {
|
543
|
+
BDateRangePicker: we,
|
544
|
+
BTag: Z
|
545
|
+
},
|
546
|
+
computed: {
|
547
|
+
...ye(Ve),
|
548
|
+
dateRange: {
|
549
|
+
get() {
|
550
|
+
return !this.eventMetadata.dateStart || !this.eventMetadata.dateEnd ? [] : H(
|
551
|
+
this.eventMetadata.dateStart,
|
552
|
+
this.eventMetadata.dateEnd
|
553
|
+
);
|
554
|
+
},
|
555
|
+
set(e) {
|
556
|
+
[this.eventMetadata.dateStart, this.eventMetadata.dateEnd] = H(...e);
|
557
|
+
}
|
558
|
+
},
|
559
|
+
isFetching: Me("hotelOfferRequest/isFetching")
|
560
|
+
},
|
561
|
+
created() {
|
562
|
+
this.cookies.get("eventMetadata") && this.updateConfig({
|
563
|
+
...this.config,
|
564
|
+
eventMetadata: this.cookies.get("eventMetadata")
|
565
|
+
});
|
566
|
+
},
|
567
|
+
methods: {
|
568
|
+
closeDialog() {
|
569
|
+
this.dialog = !1;
|
570
|
+
},
|
571
|
+
isValidEventMetadata() {
|
572
|
+
return !(!this.eventMetadata?.name.length || !this.dateRange[0] || !this.dateRange[1]);
|
573
|
+
},
|
574
|
+
onReset() {
|
575
|
+
this.cookies.remove("eventMetadata"), this.eventMetadata = {}, this.updateConfig({
|
576
|
+
...this.config,
|
577
|
+
eventMetadata: {}
|
578
|
+
}), this.closeDialog();
|
579
|
+
},
|
580
|
+
onSubmit() {
|
581
|
+
this.updateEventMetadata(), this.closeDialog();
|
582
|
+
},
|
583
|
+
updateEventMetadata() {
|
584
|
+
this.isValidEventMetadata() && (this.updateConfig({
|
585
|
+
...this.config,
|
586
|
+
eventMetadata: this.eventMetadata
|
587
|
+
}), this.cookies.set("eventMetadata", JSON.stringify(this.eventMetadata)), this.closeDialog());
|
588
|
+
}
|
589
|
+
},
|
590
|
+
mixins: [Q, Ae()],
|
591
|
+
name: "EventMetadataEditor",
|
592
|
+
setup() {
|
593
|
+
const e = se(["eventMetadata"]), t = E(""), a = E(
|
594
|
+
e.get("eventMetadata") || {
|
595
|
+
dateEnd: j().add(1, "day").format("YYYY-MM-DD").toString(),
|
596
|
+
dateStart: j().format("YYYY-MM-DD").toString(),
|
597
|
+
name: ""
|
598
|
+
}
|
599
|
+
), { t: i } = W(), f = [
|
600
|
+
(S) => {
|
601
|
+
if (!S)
|
602
|
+
return !0;
|
603
|
+
try {
|
604
|
+
return (
|
605
|
+
// eslint-disable-next-line no-constant-binary-expression
|
606
|
+
!!new URL(S) || i("EventMetadataEditor.validation.imageURL")
|
607
|
+
);
|
608
|
+
} catch {
|
609
|
+
return i("EventMetadataEditor.validation.imageURL");
|
610
|
+
}
|
611
|
+
}
|
612
|
+
], p = [
|
613
|
+
(S) => !!S || i("EventMetadataEditor.validation.name")
|
614
|
+
], u = E(!1), l = E(!1), d = E(!1);
|
615
|
+
return {
|
616
|
+
cookies: e,
|
617
|
+
dialog: u,
|
618
|
+
eventMetadata: a,
|
619
|
+
imageURLRules: f,
|
620
|
+
isFormValid: l,
|
621
|
+
isLoading: d,
|
622
|
+
name: t,
|
623
|
+
nameRules: p
|
624
|
+
};
|
625
|
+
}
|
626
|
+
// eslint-disable-next-line @typescript-eslint/no-empty-object-type, @typescript-eslint/no-explicit-any
|
627
|
+
});
|
628
|
+
function Y(e) {
|
629
|
+
const t = e;
|
630
|
+
t.__i18n = t.__i18n || [], t.__i18n.push({
|
631
|
+
locale: "",
|
632
|
+
resource: {
|
633
|
+
"en-US": {
|
634
|
+
EventMetadataEditor: {
|
635
|
+
validation: {
|
636
|
+
imageURL: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Please provide a valid URL" } },
|
637
|
+
name: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Please provide a name" } }
|
638
|
+
}
|
639
|
+
}
|
640
|
+
},
|
641
|
+
"fr-FR": {
|
642
|
+
EventMetadataEditor: {
|
643
|
+
validation: {
|
644
|
+
imageURL: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Veuillez fournir une URL valide d'image" } },
|
645
|
+
name: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Veuillez entrer le nom de l'événement" } }
|
646
|
+
}
|
647
|
+
}
|
648
|
+
},
|
649
|
+
"de-DE": {
|
650
|
+
EventMetadataEditor: {
|
651
|
+
validation: {
|
652
|
+
imageURL: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Bitte geben Sie eine gültige URL an" } },
|
653
|
+
name: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Bitte geben Sie einen Namen an" } }
|
654
|
+
}
|
655
|
+
}
|
656
|
+
},
|
657
|
+
"es-ES": {
|
658
|
+
EventMetadataEditor: {
|
659
|
+
validation: {
|
660
|
+
imageURL: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Por favor, introduce una URL válida" } },
|
661
|
+
name: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Por favor, introduce un nombre" } }
|
662
|
+
}
|
663
|
+
}
|
664
|
+
},
|
665
|
+
"it-IT": {
|
666
|
+
EventMetadataEditor: {
|
667
|
+
validation: {
|
668
|
+
imageURL: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Inserisci un URL valido" } },
|
669
|
+
name: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Inserisci un nome" } }
|
670
|
+
}
|
671
|
+
}
|
672
|
+
},
|
673
|
+
"nl-NL": {
|
674
|
+
EventMetadataEditor: {
|
675
|
+
validation: {
|
676
|
+
imageURL: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Geef een geldige URL op" } },
|
677
|
+
name: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Geef een naam op" } }
|
678
|
+
}
|
679
|
+
}
|
680
|
+
},
|
681
|
+
"pt-PT": {
|
682
|
+
EventMetadataEditor: {
|
683
|
+
validation: {
|
684
|
+
imageURL: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Por favor, introduza um URL válido" } },
|
685
|
+
name: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Por favor, introduza um nome" } }
|
686
|
+
}
|
687
|
+
}
|
688
|
+
}
|
689
|
+
}
|
690
|
+
});
|
691
|
+
}
|
692
|
+
function Ie(e, t, a, i, f, p) {
|
693
|
+
const u = C("BDateRangePicker");
|
694
|
+
return k(), L("div", null, [
|
695
|
+
o(re, {
|
696
|
+
modelValue: e.dialog,
|
697
|
+
"onUpdate:modelValue": t[4] || (t[4] = (l) => e.dialog = l),
|
698
|
+
attach: e.$dialogAttach,
|
699
|
+
height: "600px",
|
700
|
+
"max-width": "600px"
|
701
|
+
}, {
|
702
|
+
activator: r(({ props: l }) => [
|
703
|
+
o(b, J(l, {
|
704
|
+
color: e.cookies.get("eventMetadata") ? "success" : "warning",
|
705
|
+
elevation: "0",
|
706
|
+
size: "x-small"
|
707
|
+
}), {
|
708
|
+
default: r(() => [
|
709
|
+
y(Ee(e.eventMetadata?.name ? `EVENT : ${e.eventMetadata?.name}` : "ADD EVENT METADATA"), 1)
|
710
|
+
]),
|
711
|
+
_: 2
|
712
|
+
}, 1040, ["color"])
|
713
|
+
]),
|
714
|
+
default: r(() => [
|
715
|
+
o(te, null, {
|
716
|
+
default: r(() => [
|
717
|
+
o(ie, { class: "pa-4" }, {
|
718
|
+
default: r(() => [
|
719
|
+
o(N, { class: "pa-0" }, {
|
720
|
+
default: r(() => [
|
721
|
+
o(O, { "no-gutters": "" }, {
|
722
|
+
default: r(() => [
|
723
|
+
o(ee, null, {
|
724
|
+
default: r(() => [
|
725
|
+
o(ne, {
|
726
|
+
ref: "eventMetadataEditorForm",
|
727
|
+
modelValue: e.isFormValid,
|
728
|
+
"onUpdate:modelValue": t[3] || (t[3] = (l) => e.isFormValid = l),
|
729
|
+
class: "m-0",
|
730
|
+
onSubmit: G(e.onSubmit, ["prevent"])
|
731
|
+
}, {
|
732
|
+
default: r(() => [
|
733
|
+
o(T, {
|
734
|
+
modelValue: e.eventMetadata.name,
|
735
|
+
"onUpdate:modelValue": t[0] || (t[0] = (l) => e.eventMetadata.name = l),
|
736
|
+
density: "compact",
|
737
|
+
label: "Name of the event",
|
738
|
+
variant: "outlined",
|
739
|
+
"persistent-hint": "",
|
740
|
+
required: "",
|
741
|
+
rules: e.nameRules,
|
742
|
+
onKeyup: I(e.onSubmit, ["enter"])
|
743
|
+
}, null, 8, ["modelValue", "rules", "onKeyup"]),
|
744
|
+
o(T, {
|
745
|
+
modelValue: e.eventMetadata.imageURL,
|
746
|
+
"onUpdate:modelValue": t[1] || (t[1] = (l) => e.eventMetadata.imageURL = l),
|
747
|
+
density: "compact",
|
748
|
+
label: "Image URL",
|
749
|
+
variant: "outlined",
|
750
|
+
"persistent-hint": "",
|
751
|
+
rules: e.imageURLRules,
|
752
|
+
onKeyup: I(e.onSubmit, ["enter"])
|
753
|
+
}, null, 8, ["modelValue", "rules", "onKeyup"]),
|
754
|
+
o(O, null, {
|
755
|
+
default: r(() => [
|
756
|
+
o(u, {
|
757
|
+
modelValue: e.dateRange,
|
758
|
+
"onUpdate:modelValue": t[2] || (t[2] = (l) => e.dateRange = l)
|
759
|
+
}, null, 8, ["modelValue"])
|
760
|
+
]),
|
761
|
+
_: 1
|
762
|
+
})
|
763
|
+
]),
|
764
|
+
_: 1
|
765
|
+
}, 8, ["modelValue", "onSubmit"])
|
766
|
+
]),
|
767
|
+
_: 1
|
768
|
+
})
|
769
|
+
]),
|
770
|
+
_: 1
|
771
|
+
})
|
772
|
+
]),
|
773
|
+
_: 1
|
774
|
+
})
|
775
|
+
]),
|
776
|
+
_: 1
|
777
|
+
}),
|
778
|
+
o(ae, null, {
|
779
|
+
default: r(() => [
|
780
|
+
o(oe),
|
781
|
+
o(b, {
|
782
|
+
color: "grey",
|
783
|
+
size: "small",
|
784
|
+
variant: "text",
|
785
|
+
onClick: e.closeDialog
|
786
|
+
}, {
|
787
|
+
default: r(() => t[5] || (t[5] = [
|
788
|
+
y(" Close ")
|
789
|
+
])),
|
790
|
+
_: 1,
|
791
|
+
__: [5]
|
792
|
+
}, 8, ["onClick"]),
|
793
|
+
o(b, {
|
794
|
+
color: "error",
|
795
|
+
disabled: e.isFetching,
|
796
|
+
loading: e.isFetching,
|
797
|
+
size: "small",
|
798
|
+
variant: "text",
|
799
|
+
onClick: e.onReset
|
800
|
+
}, {
|
801
|
+
default: r(() => t[6] || (t[6] = [
|
802
|
+
y(" Reset ")
|
803
|
+
])),
|
804
|
+
_: 1,
|
805
|
+
__: [6]
|
806
|
+
}, 8, ["disabled", "loading", "onClick"]),
|
807
|
+
o(b, {
|
808
|
+
color: "success",
|
809
|
+
disabled: e.isFetching,
|
810
|
+
loading: e.isFetching,
|
811
|
+
size: "small",
|
812
|
+
variant: "flat",
|
813
|
+
onClick: e.onSubmit
|
814
|
+
}, {
|
815
|
+
default: r(() => t[7] || (t[7] = [
|
816
|
+
y(" Save ")
|
817
|
+
])),
|
818
|
+
_: 1,
|
819
|
+
__: [7]
|
820
|
+
}, 8, ["disabled", "loading", "onClick"])
|
821
|
+
]),
|
822
|
+
_: 1
|
823
|
+
})
|
824
|
+
]),
|
825
|
+
_: 1
|
826
|
+
})
|
827
|
+
]),
|
828
|
+
_: 1
|
829
|
+
}, 8, ["modelValue", "attach"])
|
830
|
+
]);
|
831
|
+
}
|
832
|
+
typeof Y == "function" && Y(de);
|
833
|
+
const Te = /* @__PURE__ */ _(de, [["render", Ie]]), Ne = R({
|
834
|
+
components: {
|
835
|
+
ApiKeyEditor: De,
|
836
|
+
EventMetadataEditor: Te
|
837
|
+
},
|
838
|
+
name: "StorybookExtraToolbar"
|
839
|
+
// eslint-disable-next-line @typescript-eslint/no-empty-object-type, @typescript-eslint/no-explicit-any
|
840
|
+
}), $e = { class: "flex gap-1 px-3" };
|
841
|
+
function ze(e, t, a, i, f, p) {
|
842
|
+
const u = C("ApiKeyEditor"), l = C("EventMetadataEditor");
|
843
|
+
return k(), X(N, {
|
844
|
+
class: "pa-0 mb-3",
|
845
|
+
fluid: ""
|
846
|
+
}, {
|
847
|
+
default: r(() => [
|
848
|
+
o(O, { "no-gutters": "" }, {
|
849
|
+
default: r(() => [
|
850
|
+
be("div", $e, [
|
851
|
+
o(u),
|
852
|
+
o(l)
|
853
|
+
])
|
854
|
+
]),
|
855
|
+
_: 1
|
856
|
+
})
|
857
|
+
]),
|
858
|
+
_: 1
|
859
|
+
});
|
860
|
+
}
|
861
|
+
const Fe = /* @__PURE__ */ _(Ne, [["render", ze]]), je = R({
|
862
|
+
components: {
|
863
|
+
StorybookExtraToolbar: Fe,
|
864
|
+
WebComponentWrapper: Ce
|
865
|
+
}
|
866
|
+
});
|
867
|
+
function Be(e, t, a, i, f, p) {
|
868
|
+
const u = C("StorybookExtraToolbar"), l = C("WebComponentWrapper");
|
869
|
+
return k(), X(l, { "error-overlay-disabled": "" }, {
|
870
|
+
default: r(() => [
|
871
|
+
o(u)
|
872
|
+
]),
|
873
|
+
_: 1
|
874
|
+
});
|
875
|
+
}
|
876
|
+
const st = /* @__PURE__ */ _(je, [["render", Be]]);
|
877
|
+
pe("css/revolugo.storybooktoolbar.d_cxquq9.css");
|
878
|
+
export {
|
879
|
+
st as default
|
880
|
+
};
|
881
|
+
//# sourceMappingURL=revolugo.storybooktoolbar.CTe_QwGW.min.js.map
|