@revolugo/elements 6.9.7-rc.1 → 6.10.0-beta.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/css/fonts.css +1 -1
- package/dist/css/revolugo.cancellationpoliciesbadge.BHm9G8WA.css +1 -0
- package/dist/css/revolugo.creditcardstripeform.C4-vMajR.css +1 -0
- package/dist/css/revolugo.index.BNlxBMG6.css +5 -0
- package/dist/css/revolugo.preferencesmenu.DQaHGrad.css +1 -0
- package/dist/css/{revolugo.webcomponentwrapper.cFJPP6Rp.css → revolugo.webcomponentwrapper.8v7iva-a.css} +1 -1
- package/dist/index.es.min.js +23 -12530
- package/dist/index.es.min.js.map +1 -1
- package/dist/index.min.js +1 -19
- package/dist/index.min.js.map +1 -1
- package/dist/revolugo.banktransferdetails.x0v9ndfv.min.js +47 -0
- package/dist/revolugo.bookingdetailssidebar.B4EIlhFU.min.js +43 -0
- package/dist/revolugo.bookingmanager.YVuxlZbU.min.js +26 -0
- package/dist/revolugo.cancellationpoliciesbadge.DfpyKAT7.min.js +26 -0
- package/dist/revolugo.cancellationpoliciesbadge.props.Catwbml_.min.js +29243 -0
- package/dist/revolugo.cancellationpolicieslist.CqGBKCZe.min.js +26 -0
- package/dist/revolugo.creditcardstripeform.BWeGQuy4.min.js +50 -0
- package/dist/{revolugo.creditcardform.C1Y8cuiJ.min.js → revolugo.creditcardstripeform.DNfpUrZN.min.js} +932 -915
- package/dist/revolugo.currencypickerbtn.CPU1WxXE.min.js +26 -0
- package/dist/{revolugo.dialog-attach.blanCM_U.min.js → revolugo.dialog-attach.PVrub23o.min.js} +2 -2
- package/dist/revolugo.fastbookingflow.I7UL8jNX.min.js +36 -0
- package/dist/revolugo.fullbookingflow.CpNJrRcu.min.js +26 -0
- package/dist/revolugo.hoteldescriptionview.DWQa933m.min.js +26 -0
- package/dist/revolugo.hotelofferlist.DJzWMTLy.min.js +26 -0
- package/dist/revolugo.hoteloffersearchmenu.D7YNVTvi.min.js +115 -0
- package/dist/revolugo.hoteloffersmap.BYvYv0p6.min.js +26 -0
- package/dist/revolugo.hoteloffersview.DT5QVxLs.min.js +21 -0
- package/dist/revolugo.hotelroomofferlist.DA_3LSPI.min.js +26 -0
- package/dist/revolugo.hotelroomoffersbookingflow.Dkch3aYF.min.js +26 -0
- package/dist/revolugo.hotelroomoffersearchmenu.D4wOddbw.min.js +26 -0
- package/dist/revolugo.hotelroomoffersview.9FmcyDbV.min.js +26 -0
- package/dist/revolugo.index.OiMu9dAJ.min.js +106 -0
- package/dist/revolugo.index.wc.C2aj6lKv.min.js +26699 -0
- package/dist/revolugo.langpickerbtn.6Brb63yO.min.js +31 -0
- package/dist/{revolugo.leaflet-src.esm.DBQWLG1M.min.js → revolugo.leaflet-src.esm.BnEQV3J-.min.js} +16 -16
- package/dist/revolugo.min.js +1 -1
- package/dist/revolugo.prebookform.DVYHP3Yz.min.js +26 -0
- package/dist/revolugo.preferencesmenu.BloRxITX.min.js +24 -0
- package/dist/revolugo.preferencesmenu.r1vnr_RO.min.js +935 -0
- package/dist/revolugo.roominglisteditor.C-AGIJub.min.js +26 -0
- package/dist/revolugo.storybooktoolbar.B5oXaRze.min.js +831 -0
- package/dist/revolugo.termsandconditions.CNlXW52E.min.js +31 -0
- package/dist/revolugo.vtoolbar.BWqbzW1H.min.js +187 -0
- package/dist/revolugo.webcomponentwrapper.BMoMCE08.min.js +30962 -0
- package/package.json +6 -6
- package/dist/css/revolugo.bdaterangepicker.OLspTh_0.css +0 -1
- package/dist/css/revolugo.bhoteloffersfilterbar.BebBKpCh.css +0 -1
- package/dist/css/revolugo.bhotelroomsdetails.c1M8WEQ1.css +0 -1
- package/dist/css/revolugo.bimagecarousel.B2SxWMbZ.css +0 -1
- package/dist/css/revolugo.bookingdetailssidebar.Cp4sLBjD.css +0 -1
- package/dist/css/revolugo.bstarrating.CPHKEfup.css +0 -1
- package/dist/css/revolugo.btag.T7X_iIkW.css +0 -1
- package/dist/css/revolugo.cancellationpoliciesbadge.BLInUr3-.css +0 -1
- package/dist/css/revolugo.creditcardform.fTmPR0fS.css +0 -1
- package/dist/css/revolugo.creditcardpayment.D2PE5FCt.css +0 -1
- package/dist/css/revolugo.fullbookingflow.Bm8JAQF7.css +0 -1
- package/dist/css/revolugo.hoteldescriptionview.B-RiiuPY.css +0 -1
- package/dist/css/revolugo.hotelofferlist.BkctzTMI.css +0 -1
- package/dist/css/revolugo.hoteloffersearchmenuui.ZbUh8ba2.css +0 -1
- package/dist/css/revolugo.hoteloffersmap.Z5DFtK0_.css +0 -1
- package/dist/css/revolugo.hoteloffersview.CLbnSww6.css +0 -1
- package/dist/css/revolugo.hotelroomofferlist.D8JlZt_N.css +0 -1
- package/dist/css/revolugo.hotelroomoffersbookingflow.LHa5iHB7.css +0 -1
- package/dist/css/revolugo.index.DK7d_h6O.css +0 -1
- package/dist/css/revolugo.index.XNPQF1ia.css +0 -5
- package/dist/css/revolugo.langpickerbtn.BGnattUJ.css +0 -1
- package/dist/css/revolugo.prebookform.DmCR7hLv.css +0 -1
- package/dist/css/revolugo.preferencesmenu.fPv_7j-1.css +0 -1
- package/dist/css/revolugo.termsandconditions.D8IMR9da.css +0 -1
- package/dist/css/revolugo.vautocomplete.CuVjyvcC.css +0 -1
- package/dist/css/revolugo.vbadge.C45eZpxy.css +0 -1
- package/dist/css/revolugo.vbtn.DpMO1Ky2.css +0 -1
- package/dist/css/revolugo.vcard.TERzfknI.css +0 -1
- package/dist/css/revolugo.vcheckboxbtn.Bp_BNQWb.css +0 -1
- package/dist/css/revolugo.vdialog.DwTSAOeg.css +0 -1
- package/dist/css/revolugo.vdivider.CTbbZwnv.css +0 -1
- package/dist/css/revolugo.vexpansionpanels.RsCANmDP.css +0 -1
- package/dist/css/revolugo.vicon.eIkh7vVK.css +0 -1
- package/dist/css/revolugo.vinput.BPiFMorL.css +0 -1
- package/dist/css/revolugo.vlabel.BvKaKg7Y.css +0 -1
- package/dist/css/revolugo.vlist.-Y4qkukF.css +0 -1
- package/dist/css/revolugo.vmenu.DvKwEp1j.css +0 -1
- package/dist/css/revolugo.vselect.C5CKHFYB.css +0 -1
- package/dist/css/revolugo.vsheet.Dmcoj8cr.css +0 -1
- package/dist/css/revolugo.vskeletonloader.BlK8uFkX.css +0 -1
- package/dist/css/revolugo.vslidegroup.ECiLCEE9.css +0 -1
- package/dist/css/revolugo.vsnackbar.CCfuo3ao.css +0 -1
- package/dist/css/revolugo.vtextarea.Dxy6uSvm.css +0 -1
- package/dist/css/revolugo.vtextfield.BIH_AWWP.css +0 -1
- package/dist/css/revolugo.vtooltip.BHXJTQ4V.css +0 -1
- package/dist/css/revolugo.vwindowitem.CWBhiE_Y.css +0 -1
- package/dist/revolugo._baseiteratee.Zjxh5X1S.min.js +0 -247
- package/dist/revolugo.banktransferdetails.BMe84dqg.min.js +0 -380
- package/dist/revolugo.bdaterangepicker.DzOGjDv0.min.js +0 -8327
- package/dist/revolugo.bformattedamount.vue_vue_type_script_setup_true_lang.DMP_pksf.min.js +0 -146
- package/dist/revolugo.bhoteloffersfilterbar.Duj0L2BC.min.js +0 -4901
- package/dist/revolugo.bhotelroomsdetails.A441NOYj.min.js +0 -965
- package/dist/revolugo.bimagecarousel.CeagkLxi.min.js +0 -566
- package/dist/revolugo.bookingdetailssidebar.BR9pOQ-A.min.js +0 -870
- package/dist/revolugo.bookingdetailssidebar.C_cVgvbV.min.js +0 -24
- package/dist/revolugo.bookingmanager.Tqklnltl.min.js +0 -1755
- package/dist/revolugo.bpricesummaryskeleton.vue_vue_type_script_setup_true_lang.N9x3mRNq.min.js +0 -66
- package/dist/revolugo.bstarrating.vue_vue_type_script_setup_true_lang.vPcVvCoJ.min.js +0 -570
- package/dist/revolugo.btag.6i9RpwY_.min.js +0 -375
- package/dist/revolugo.cancellationpoliciesbadge.CJhYlUuT.min.js +0 -198
- package/dist/revolugo.cancellationpoliciesbadge.Vi2j73X9.min.js +0 -28
- package/dist/revolugo.cancellationpolicieslist.BuNsG_i4.min.js +0 -25
- package/dist/revolugo.cancellationpolicieslist.CaiWZD9_.min.js +0 -148
- package/dist/revolugo.cancellationpolicieslist.props.s6oWxIxG.min.js +0 -21
- package/dist/revolugo.case-transformers.BGpZ9qjt.min.js +0 -123
- package/dist/revolugo.common.D-l8b0V5.min.js +0 -10
- package/dist/revolugo.creditcardform.wbMwrte3.min.js +0 -24
- package/dist/revolugo.creditcardpayment.BsQwUNPu.min.js +0 -885
- package/dist/revolugo.creditcardpayment.v2TP6g1r.min.js +0 -24
- package/dist/revolugo.currencypicker.CCydQxvk.min.js +0 -328
- package/dist/revolugo.currencypickerbtn.54OJeTC0.min.js +0 -157
- package/dist/revolugo.currencypickerbtn.D0OyHd5Z.min.js +0 -24
- package/dist/revolugo.dates.Dma3i1u_.min.js +0 -31
- package/dist/revolugo.defaultsdeep.BlZWlkib.min.js +0 -104
- package/dist/revolugo.dialog-transition.JX-XGblk.min.js +0 -111
- package/dist/revolugo.fastbookingflow.kwlndDrp.min.js +0 -34
- package/dist/revolugo.forwardrefs.VVhh1qV3.min.js +0 -70
- package/dist/revolugo.fullbookingflow.Cm0oV-cR.min.js +0 -429
- package/dist/revolugo.hotel-offer-request.aMUhw0jC.min.js +0 -98
- package/dist/revolugo.hoteldescriptionview.Dng4hMzd.min.js +0 -2738
- package/dist/revolugo.hoteldescriptionview.ojwTutv4.min.js +0 -24
- package/dist/revolugo.hotelofferitemlayout.vue_vue_type_script_setup_true_lang.olnYk_cF.min.js +0 -239
- package/dist/revolugo.hotelofferlist.BWC_k60T.min.js +0 -5640
- package/dist/revolugo.hotelofferlist.DacSdhyV.min.js +0 -24
- package/dist/revolugo.hotelofferrequestcreator.props.BeQuCTZy.min.js +0 -44
- package/dist/revolugo.hoteloffersearchmenu.BRYJjrI7.min.js +0 -202
- package/dist/revolugo.hoteloffersearchmenuui.CjFznky7.min.js +0 -829
- package/dist/revolugo.hoteloffersmap.B4YsCUhB.min.js +0 -8330
- package/dist/revolugo.hoteloffersmap.BjCpSBW5.min.js +0 -24
- package/dist/revolugo.hoteloffersview.Df1RPsE2.min.js +0 -19
- package/dist/revolugo.hoteloffersview.VHsBhOKb.min.js +0 -616
- package/dist/revolugo.hotelroomofferlist.kttmW_p0.min.js +0 -24
- package/dist/revolugo.hotelroomofferlist.t-3U4Nu4.min.js +0 -2799
- package/dist/revolugo.hotelroomofferrequestcreator.props.vFsZDl1K.min.js +0 -171
- package/dist/revolugo.hotelroomoffersbookingflow.CcnFaLm4.min.js +0 -1281
- package/dist/revolugo.hotelroomoffersearchmenu.FTQxJ_n5.min.js +0 -25
- package/dist/revolugo.hotelroomoffersearchmenu.WM6bLEz9.min.js +0 -231
- package/dist/revolugo.hotelroomoffersview.4GP75oBd.min.js +0 -24
- package/dist/revolugo.hotelroomoffersview.C64pbpV0.min.js +0 -290
- package/dist/revolugo.index.CmfloZTT.min.js +0 -67
- package/dist/revolugo.index.q2k-tLa2.min.js +0 -1232
- package/dist/revolugo.index.wc.BmAtoZjo.min.js +0 -31558
- package/dist/revolugo.langpicker.BDDm2CzN.min.js +0 -99
- package/dist/revolugo.langpickerbtn.BS-VKFY1.min.js +0 -131
- package/dist/revolugo.langpickerbtn.C_Z35YuF.min.js +0 -29
- package/dist/revolugo.parsed-props.z2aR0x9r.min.js +0 -40
- package/dist/revolugo.pathify.DOgJK7nI.min.js +0 -36
- package/dist/revolugo.prebookform.DT2QXZUm.min.js +0 -1527
- package/dist/revolugo.prebookform.Dk1v8qZ9.min.js +0 -24
- package/dist/revolugo.preferencesmenu.BhDjryBC.min.js +0 -24
- package/dist/revolugo.preferencesmenu.DsDw7iXm.min.js +0 -261
- package/dist/revolugo.roominglisteditor.ChZhBnZ3.min.js +0 -385
- package/dist/revolugo.roominglisteditor.DaPP1NPv.min.js +0 -24
- package/dist/revolugo.rounded.BmZawp2x.min.js +0 -68
- package/dist/revolugo.ssrboot.CMusFTC5.min.js +0 -18
- package/dist/revolugo.storybooktoolbar.CLAq0fXx.min.js +0 -881
- package/dist/revolugo.termsandconditions.B8TrVOz1.min.js +0 -404
- package/dist/revolugo.termsandconditions.CI0t3pno.min.js +0 -23
- package/dist/revolugo.use-breakpoint-service.BmTXBw-9.min.js +0 -39
- package/dist/revolugo.use-dialog-attach.ByNAI0vu.min.js +0 -16
- package/dist/revolugo.use-html-element.BbD1LjYc.min.js +0 -11
- package/dist/revolugo.vautocomplete.D1yqzzar.min.js +0 -445
- package/dist/revolugo.vbadge.B1q1ebM4.min.js +0 -112
- package/dist/revolugo.vbtn.D-1pZWJQ.min.js +0 -398
- package/dist/revolugo.vcard.BhFz1a7-.min.js +0 -313
- package/dist/revolugo.vcheckboxbtn.BtTJE9k_.min.js +0 -478
- package/dist/revolugo.vdialog.Q1vj1S2Y.min.js +0 -133
- package/dist/revolugo.vdivider.Cw22Dcuf.min.js +0 -77
- package/dist/revolugo.vexpansionpanels.B6laIhZ5.min.js +0 -262
- package/dist/revolugo.vform.DKrc0wCb.min.js +0 -46
- package/dist/revolugo.vicon.OZg4Im8p.min.js +0 -105
- package/dist/revolugo.vinput.Bo6I7bO4.min.js +0 -463
- package/dist/revolugo.vlabel.CK1EiiGY.min.js +0 -48
- package/dist/revolugo.vlist.C2mV3Sh6.min.js +0 -1299
- package/dist/revolugo.vmenu.C2Y9H_mH.min.js +0 -145
- package/dist/revolugo.vselect.ukHPs1U9.min.js +0 -660
- package/dist/revolugo.vsheet.COT4-g6w.min.js +0 -72
- package/dist/revolugo.vskeletonloader.BUWqKsWc.min.js +0 -136
- package/dist/revolugo.vslidegroup.vYhKvZC2.min.js +0 -325
- package/dist/revolugo.vsnackbar.DGEvcXxN.min.js +0 -198
- package/dist/revolugo.vspacer.DKw4LWvz.min.js +0 -7
- package/dist/revolugo.vtextarea.JwpV0Q9q.min.js +0 -2092
- package/dist/revolugo.vtextfield.CF6W_mmu.min.js +0 -501
- package/dist/revolugo.vtoolbar.8GW_wkyp.min.js +0 -180
- package/dist/revolugo.vtooltip.D-CqFjzD.min.js +0 -89
- package/dist/revolugo.vwindowitem.DdXQiNtJ.min.js +0 -317
- package/dist/revolugo.watch-list.CqLXeMQh.min.js +0 -16
- package/dist/revolugo.webcomponentwrapper.DipHFVeJ.min.js +0 -2088
@@ -1,881 +0,0 @@
|
|
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.BmAtoZjo.min.js";
|
2
|
-
import { B as Z } from "./revolugo.btag.6i9RpwY_.min.js";
|
3
|
-
import { d as Q } from "./revolugo.dialog-attach.blanCM_U.min.js";
|
4
|
-
import { w as Se } from "./revolugo.watch-list.CqLXeMQh.min.js";
|
5
|
-
import { t as ke } from "./revolugo.index.CmfloZTT.min.js";
|
6
|
-
import { _, V as O, a as ee, W as Ce } from "./revolugo.webcomponentwrapper.DipHFVeJ.min.js";
|
7
|
-
import { V as te, a as ie, b as ae } from "./revolugo.vcard.BhFz1a7-.min.js";
|
8
|
-
import { V as N, B as we } from "./revolugo.bdaterangepicker.DzOGjDv0.min.js";
|
9
|
-
import { V as ne } from "./revolugo.vform.DKrc0wCb.min.js";
|
10
|
-
import { V as T } from "./revolugo.vtextfield.CF6W_mmu.min.js";
|
11
|
-
import { V as oe } from "./revolugo.vspacer.DKw4LWvz.min.js";
|
12
|
-
import { a as b } from "./revolugo.vbtn.D-1pZWJQ.min.js";
|
13
|
-
import { V as B } from "./revolugo.vicon.OZg4Im8p.min.js";
|
14
|
-
import { V as re } from "./revolugo.vdialog.Q1vj1S2Y.min.js";
|
15
|
-
import { s as H } from "./revolugo.dates.Dma3i1u_.min.js";
|
16
|
-
import { u as Ve } from "./revolugo.hotel-offer-request.aMUhw0jC.min.js";
|
17
|
-
import { p as Ae, g as Me } from "./revolugo.pathify.DOgJK7nI.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.CLAq0fXx.min.js.map
|