@revolugo/elements 6.9.7 → 6.10.0-rc.1
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.goM3lza7.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.ViqP9D5c.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.BZPF0eiL.min.js +47 -0
- package/dist/revolugo.bookingdetailssidebar.CWoXRXDR.min.js +43 -0
- package/dist/revolugo.bookingmanager.DmJpAxyM.min.js +26 -0
- package/dist/revolugo.cancellationpoliciesbadge.Co7XlO7n.min.js +26 -0
- package/dist/revolugo.cancellationpoliciesbadge.props.D6tSiX4u.min.js +28666 -0
- package/dist/revolugo.cancellationpolicieslist.D0rQjtFT.min.js +26 -0
- package/dist/revolugo.creditcardstripeform.DcbjAce6.min.js +50 -0
- package/dist/{revolugo.creditcardform.C1Y8cuiJ.min.js → revolugo.creditcardstripeform.aygVY4nC.min.js} +871 -854
- package/dist/revolugo.currencypickerbtn.CjoBj2wM.min.js +26 -0
- package/dist/{revolugo.dialog-attach.blanCM_U.min.js → revolugo.dialog-attach.lbgk2NFx.min.js} +2 -2
- package/dist/revolugo.fastbookingflow.CU_zG9Qc.min.js +36 -0
- package/dist/revolugo.fullbookingflow.ryUXC-zj.min.js +26 -0
- package/dist/revolugo.hoteldescriptionview.C-RryD4u.min.js +26 -0
- package/dist/revolugo.hotelofferlist.L7Syq2rw.min.js +26 -0
- package/dist/revolugo.hoteloffersearchmenu.DtaEfOpL.min.js +115 -0
- package/dist/revolugo.hoteloffersmap.B0GJkLuz.min.js +26 -0
- package/dist/revolugo.hoteloffersview.D5owMCJq.min.js +21 -0
- package/dist/revolugo.hotelroomofferlist.BCpg1HbD.min.js +26 -0
- package/dist/revolugo.hotelroomoffersbookingflow.DQigue2D.min.js +26 -0
- package/dist/revolugo.hotelroomoffersearchmenu.DMn_QpH3.min.js +26 -0
- package/dist/revolugo.hotelroomoffersview.CMRoSwIM.min.js +26 -0
- package/dist/revolugo.index.BuK8oecs.min.js +106 -0
- package/dist/revolugo.index.wc.CbOH1fRM.min.js +26618 -0
- package/dist/revolugo.langpickerbtn.BlrCjfAB.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.DlbgRiyC.min.js +26 -0
- package/dist/revolugo.preferencesmenu.BIBrL0t1.min.js +24 -0
- package/dist/revolugo.preferencesmenu.YVYIz97X.min.js +935 -0
- package/dist/revolugo.roominglisteditor.BksMgppR.min.js +26 -0
- package/dist/revolugo.storybooktoolbar.DGufIx5l.min.js +831 -0
- package/dist/revolugo.termsandconditions.CFR9-ujp.min.js +31 -0
- package/dist/revolugo.vtoolbar.6DuCFMJX.min.js +187 -0
- package/dist/revolugo.webcomponentwrapper.DkjE9Lk5.min.js +30961 -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
@@ -0,0 +1,831 @@
|
|
1
|
+
import { s as pe, d as M, h as J, i as A, b as R, A as ve, X as ge, j as O, o as _, a as o, w as r, k as X, l as T, p as S, m as Q, F, q as he, t as ye, v as H, x as Ee, u as w, y as be, c as Z, z as Se, r as I } from "./revolugo.index.wc.CbOH1fRM.min.js";
|
2
|
+
import { B as Ae, _ as $, V as ee, b as te, c as N, d as x, e as ie, f as ae, g as D, h as ne, i as oe, j as k, k as q, l as se, u as ke, m as Ce, n as we, W as _e } from "./revolugo.webcomponentwrapper.DkjE9Lk5.min.js";
|
3
|
+
import { d as Ve } from "./revolugo.dialog-attach.lbgk2NFx.min.js";
|
4
|
+
import { t as Le, w as Oe, s as B } from "./revolugo.index.BuK8oecs.min.js";
|
5
|
+
function me(t) {
|
6
|
+
try {
|
7
|
+
if (typeof document < "u") {
|
8
|
+
window.REVOLUGO_ELEMENTS_STYLES = window.REVOLUGO_ELEMENTS_STYLES || {
|
9
|
+
sheets: [],
|
10
|
+
components: []
|
11
|
+
};
|
12
|
+
const e = import.meta.url, a = e.slice(0, e.lastIndexOf("/") + 1) + t;
|
13
|
+
window.REVOLUGO_ELEMENTS_STYLES.sheets.push(a);
|
14
|
+
for (const i of REVOLUGO_ELEMENTS_STYLES.components)
|
15
|
+
i(a);
|
16
|
+
if (t.indexOf("fonts") >= 0) {
|
17
|
+
const i = document.createElement("link");
|
18
|
+
i.rel = "stylesheet", linK.href = a, document.head.appendChild(i);
|
19
|
+
}
|
20
|
+
}
|
21
|
+
} catch (e) {
|
22
|
+
console.error("[revolugo-elements] ", e);
|
23
|
+
}
|
24
|
+
}
|
25
|
+
var L = {}, Y;
|
26
|
+
function Ke() {
|
27
|
+
if (Y) return L;
|
28
|
+
Y = 1, Object.defineProperty(L, "__esModule", { value: !0 }), L.parse = u, L.serialize = P;
|
29
|
+
const t = /^[\u0021-\u003A\u003C\u003E-\u007E]+$/, e = /^[\u0021-\u003A\u003C-\u007E]*$/, a = /^([.]?[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)([.][a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)*$/i, i = /^[\u0020-\u003A\u003D-\u007E]*$/, c = Object.prototype.toString, g = /* @__PURE__ */ (() => {
|
30
|
+
const s = function() {
|
31
|
+
};
|
32
|
+
return s.prototype = /* @__PURE__ */ Object.create(null), s;
|
33
|
+
})();
|
34
|
+
function u(s, p) {
|
35
|
+
const n = new g(), y = s.length;
|
36
|
+
if (y < 2)
|
37
|
+
return n;
|
38
|
+
const C = p?.decode || m;
|
39
|
+
let l = 0;
|
40
|
+
do {
|
41
|
+
const E = s.indexOf("=", l);
|
42
|
+
if (E === -1)
|
43
|
+
break;
|
44
|
+
const b = s.indexOf(";", l), f = b === -1 ? y : b;
|
45
|
+
if (E > f) {
|
46
|
+
l = s.lastIndexOf(";", E - 1) + 1;
|
47
|
+
continue;
|
48
|
+
}
|
49
|
+
const v = h(s, l, E), ue = d(s, E, v), j = s.slice(v, ue);
|
50
|
+
if (n[j] === void 0) {
|
51
|
+
let z = h(s, E + 1, f), ce = d(s, f, z);
|
52
|
+
const fe = C(s.slice(z, ce));
|
53
|
+
n[j] = fe;
|
54
|
+
}
|
55
|
+
l = f + 1;
|
56
|
+
} while (l < y);
|
57
|
+
return n;
|
58
|
+
}
|
59
|
+
function h(s, p, n) {
|
60
|
+
do {
|
61
|
+
const y = s.charCodeAt(p);
|
62
|
+
if (y !== 32 && y !== 9)
|
63
|
+
return p;
|
64
|
+
} while (++p < n);
|
65
|
+
return n;
|
66
|
+
}
|
67
|
+
function d(s, p, n) {
|
68
|
+
for (; p > n; ) {
|
69
|
+
const y = s.charCodeAt(--p);
|
70
|
+
if (y !== 32 && y !== 9)
|
71
|
+
return p + 1;
|
72
|
+
}
|
73
|
+
return n;
|
74
|
+
}
|
75
|
+
function P(s, p, n) {
|
76
|
+
const y = n?.encode || encodeURIComponent;
|
77
|
+
if (!t.test(s))
|
78
|
+
throw new TypeError(`argument name is invalid: ${s}`);
|
79
|
+
const C = y(p);
|
80
|
+
if (!e.test(C))
|
81
|
+
throw new TypeError(`argument val is invalid: ${p}`);
|
82
|
+
let l = s + "=" + C;
|
83
|
+
if (!n)
|
84
|
+
return l;
|
85
|
+
if (n.maxAge !== void 0) {
|
86
|
+
if (!Number.isInteger(n.maxAge))
|
87
|
+
throw new TypeError(`option maxAge is invalid: ${n.maxAge}`);
|
88
|
+
l += "; Max-Age=" + n.maxAge;
|
89
|
+
}
|
90
|
+
if (n.domain) {
|
91
|
+
if (!a.test(n.domain))
|
92
|
+
throw new TypeError(`option domain is invalid: ${n.domain}`);
|
93
|
+
l += "; Domain=" + n.domain;
|
94
|
+
}
|
95
|
+
if (n.path) {
|
96
|
+
if (!i.test(n.path))
|
97
|
+
throw new TypeError(`option path is invalid: ${n.path}`);
|
98
|
+
l += "; Path=" + n.path;
|
99
|
+
}
|
100
|
+
if (n.expires) {
|
101
|
+
if (!V(n.expires) || !Number.isFinite(n.expires.valueOf()))
|
102
|
+
throw new TypeError(`option expires is invalid: ${n.expires}`);
|
103
|
+
l += "; Expires=" + n.expires.toUTCString();
|
104
|
+
}
|
105
|
+
if (n.httpOnly && (l += "; HttpOnly"), n.secure && (l += "; Secure"), n.partitioned && (l += "; Partitioned"), n.priority)
|
106
|
+
switch (typeof n.priority == "string" ? n.priority.toLowerCase() : void 0) {
|
107
|
+
case "low":
|
108
|
+
l += "; Priority=Low";
|
109
|
+
break;
|
110
|
+
case "medium":
|
111
|
+
l += "; Priority=Medium";
|
112
|
+
break;
|
113
|
+
case "high":
|
114
|
+
l += "; Priority=High";
|
115
|
+
break;
|
116
|
+
default:
|
117
|
+
throw new TypeError(`option priority is invalid: ${n.priority}`);
|
118
|
+
}
|
119
|
+
if (n.sameSite)
|
120
|
+
switch (typeof n.sameSite == "string" ? n.sameSite.toLowerCase() : n.sameSite) {
|
121
|
+
case !0:
|
122
|
+
case "strict":
|
123
|
+
l += "; SameSite=Strict";
|
124
|
+
break;
|
125
|
+
case "lax":
|
126
|
+
l += "; SameSite=Lax";
|
127
|
+
break;
|
128
|
+
case "none":
|
129
|
+
l += "; SameSite=None";
|
130
|
+
break;
|
131
|
+
default:
|
132
|
+
throw new TypeError(`option sameSite is invalid: ${n.sameSite}`);
|
133
|
+
}
|
134
|
+
return l;
|
135
|
+
}
|
136
|
+
function m(s) {
|
137
|
+
if (s.indexOf("%") === -1)
|
138
|
+
return s;
|
139
|
+
try {
|
140
|
+
return decodeURIComponent(s);
|
141
|
+
} catch {
|
142
|
+
return s;
|
143
|
+
}
|
144
|
+
}
|
145
|
+
function V(s) {
|
146
|
+
return c.call(s) === "[object Date]";
|
147
|
+
}
|
148
|
+
return L;
|
149
|
+
}
|
150
|
+
var K = Ke();
|
151
|
+
function Ie() {
|
152
|
+
const t = typeof global > "u" ? void 0 : global.TEST_HAS_DOCUMENT_COOKIE;
|
153
|
+
return typeof t == "boolean" ? t : typeof document == "object" && typeof document.cookie == "string";
|
154
|
+
}
|
155
|
+
function xe(t) {
|
156
|
+
return typeof t == "string" ? K.parse(t) : typeof t == "object" && t !== null ? t : {};
|
157
|
+
}
|
158
|
+
function U(t, e = {}) {
|
159
|
+
const a = Me(t);
|
160
|
+
if (!e.doNotParse)
|
161
|
+
try {
|
162
|
+
return JSON.parse(a);
|
163
|
+
} catch {
|
164
|
+
}
|
165
|
+
return t;
|
166
|
+
}
|
167
|
+
function Me(t) {
|
168
|
+
return t && t[0] === "j" && t[1] === ":" ? t.substr(2) : t;
|
169
|
+
}
|
170
|
+
class Pe {
|
171
|
+
constructor(e, a = {}) {
|
172
|
+
this.changeListeners = [], this.HAS_DOCUMENT_COOKIE = !1, this.update = () => {
|
173
|
+
if (!this.HAS_DOCUMENT_COOKIE)
|
174
|
+
return;
|
175
|
+
const c = this.cookies;
|
176
|
+
this.cookies = K.parse(document.cookie), this._checkChanges(c);
|
177
|
+
};
|
178
|
+
const i = typeof document > "u" ? "" : document.cookie;
|
179
|
+
this.cookies = xe(e || i), this.defaultSetOptions = a, this.HAS_DOCUMENT_COOKIE = Ie();
|
180
|
+
}
|
181
|
+
_emitChange(e) {
|
182
|
+
for (let a = 0; a < this.changeListeners.length; ++a)
|
183
|
+
this.changeListeners[a](e);
|
184
|
+
}
|
185
|
+
_checkChanges(e) {
|
186
|
+
new Set(Object.keys(e).concat(Object.keys(this.cookies))).forEach((i) => {
|
187
|
+
e[i] !== this.cookies[i] && this._emitChange({
|
188
|
+
name: i,
|
189
|
+
value: U(this.cookies[i])
|
190
|
+
});
|
191
|
+
});
|
192
|
+
}
|
193
|
+
_startPolling() {
|
194
|
+
this.pollingInterval = setInterval(this.update, 300);
|
195
|
+
}
|
196
|
+
_stopPolling() {
|
197
|
+
this.pollingInterval && clearInterval(this.pollingInterval);
|
198
|
+
}
|
199
|
+
get(e, a = {}) {
|
200
|
+
return a.doNotUpdate || this.update(), U(this.cookies[e], a);
|
201
|
+
}
|
202
|
+
getAll(e = {}) {
|
203
|
+
e.doNotUpdate || this.update();
|
204
|
+
const a = {};
|
205
|
+
for (let i in this.cookies)
|
206
|
+
a[i] = U(this.cookies[i], e);
|
207
|
+
return a;
|
208
|
+
}
|
209
|
+
set(e, a, i) {
|
210
|
+
i ? i = Object.assign(Object.assign({}, this.defaultSetOptions), i) : i = this.defaultSetOptions;
|
211
|
+
const c = typeof a == "string" ? a : JSON.stringify(a);
|
212
|
+
this.cookies = Object.assign(Object.assign({}, this.cookies), { [e]: c }), this.HAS_DOCUMENT_COOKIE && (document.cookie = K.serialize(e, c, i)), this._emitChange({ name: e, value: a, options: i });
|
213
|
+
}
|
214
|
+
remove(e, a) {
|
215
|
+
const i = a = Object.assign(Object.assign(Object.assign({}, this.defaultSetOptions), a), { expires: new Date(1970, 1, 1, 0, 0, 1), maxAge: 0 });
|
216
|
+
this.cookies = Object.assign({}, this.cookies), delete this.cookies[e], this.HAS_DOCUMENT_COOKIE && (document.cookie = K.serialize(e, "", i)), this._emitChange({ name: e, value: void 0, options: a });
|
217
|
+
}
|
218
|
+
addChangeListener(e) {
|
219
|
+
this.changeListeners.push(e), this.HAS_DOCUMENT_COOKIE && this.changeListeners.length === 1 && (typeof window == "object" && "cookieStore" in window ? window.cookieStore.addEventListener("change", this.update) : this._startPolling());
|
220
|
+
}
|
221
|
+
removeChangeListener(e) {
|
222
|
+
const a = this.changeListeners.indexOf(e);
|
223
|
+
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());
|
224
|
+
}
|
225
|
+
removeAllChangeListeners() {
|
226
|
+
for (; this.changeListeners.length > 0; )
|
227
|
+
this.removeChangeListener(this.changeListeners[0]);
|
228
|
+
}
|
229
|
+
}
|
230
|
+
// @__NO_SIDE_EFFECTS__
|
231
|
+
function re(t, { doNotParse: e = !1, autoUpdateDependencies: a = !1 } = {}, i = new Pe()) {
|
232
|
+
const c = a ? [...t || []] : t;
|
233
|
+
let g = i.getAll({ doNotParse: !0 });
|
234
|
+
const u = pe(0), h = () => {
|
235
|
+
const d = i.getAll({ doNotParse: !0 });
|
236
|
+
Ue(
|
237
|
+
c || null,
|
238
|
+
d,
|
239
|
+
g
|
240
|
+
) && u.value++, g = d;
|
241
|
+
};
|
242
|
+
return i.addChangeListener(h), Le(() => {
|
243
|
+
i.removeChangeListener(h);
|
244
|
+
}), {
|
245
|
+
/**
|
246
|
+
* Reactive get cookie by name. If **autoUpdateDependencies = true** then it will update watching dependencies
|
247
|
+
*/
|
248
|
+
get: (...d) => (a && c && !c.includes(d[0]) && c.push(d[0]), u.value, i.get(d[0], { doNotParse: e, ...d[1] })),
|
249
|
+
/**
|
250
|
+
* Reactive get all cookies
|
251
|
+
*/
|
252
|
+
getAll: (...d) => (u.value, i.getAll({ doNotParse: e, ...d[0] })),
|
253
|
+
set: (...d) => i.set(...d),
|
254
|
+
remove: (...d) => i.remove(...d),
|
255
|
+
addChangeListener: (...d) => i.addChangeListener(...d),
|
256
|
+
removeChangeListener: (...d) => i.removeChangeListener(...d)
|
257
|
+
};
|
258
|
+
}
|
259
|
+
function Ue(t, e, a) {
|
260
|
+
if (!t)
|
261
|
+
return !0;
|
262
|
+
for (const i of t)
|
263
|
+
if (e[i] !== a[i])
|
264
|
+
return !0;
|
265
|
+
return !1;
|
266
|
+
}
|
267
|
+
const le = M({
|
268
|
+
components: {
|
269
|
+
BTag: Ae
|
270
|
+
},
|
271
|
+
methods: {
|
272
|
+
closeDialog() {
|
273
|
+
this.dialog = !1, this.apiKey = this.cookies.get("apiKey");
|
274
|
+
},
|
275
|
+
async isValidApiKey() {
|
276
|
+
if (!this.apiKey)
|
277
|
+
return !1;
|
278
|
+
const t = {
|
279
|
+
apiEnvironment: window.RevolugoElements.config.apiEnvironment,
|
280
|
+
apiKey: this.apiKey,
|
281
|
+
apiVersion: ve.V1,
|
282
|
+
optionalHeaders: window.RevolugoElements.config.optionalHeaders
|
283
|
+
}, e = new ge(t);
|
284
|
+
try {
|
285
|
+
return !!await e.hotels.retrieve({
|
286
|
+
id: "2yvb"
|
287
|
+
});
|
288
|
+
} catch (a) {
|
289
|
+
return console.error(a), !1;
|
290
|
+
}
|
291
|
+
},
|
292
|
+
async onSubmit() {
|
293
|
+
this.validate(), await this.updateApiKey(), this.apiKey && this.closeDialog();
|
294
|
+
},
|
295
|
+
async updateApiKey() {
|
296
|
+
try {
|
297
|
+
if (this.isLoading = !0, await this.isValidApiKey())
|
298
|
+
this.config.apiKey !== this.apiKey && this.updateConfig({
|
299
|
+
...this.config,
|
300
|
+
apiKey: this.apiKey
|
301
|
+
}), this.cookies.set("apiKey", this.apiKey, {
|
302
|
+
expires: new Date(Date.now() + 1e3 * 60 * 60 * 24 * 365)
|
303
|
+
});
|
304
|
+
else
|
305
|
+
throw new Error("Invalid API Key");
|
306
|
+
} catch {
|
307
|
+
console.error("Invalid API Key");
|
308
|
+
} finally {
|
309
|
+
this.isLoading = !1;
|
310
|
+
}
|
311
|
+
},
|
312
|
+
validate() {
|
313
|
+
this.$refs.apiKeyEditorForm.validate();
|
314
|
+
}
|
315
|
+
},
|
316
|
+
mixins: [
|
317
|
+
Oe(["config.apiEnvironment"], "updateApiKey", {
|
318
|
+
deep: !0,
|
319
|
+
immediate: !0
|
320
|
+
}),
|
321
|
+
Ve
|
322
|
+
],
|
323
|
+
name: "ApiKeyEditor",
|
324
|
+
setup() {
|
325
|
+
const t = /* @__PURE__ */ re(["apiKey"]), { t: e } = J(), a = A(t.get("apiKey")), i = R(
|
326
|
+
() => window.RevolugoElements.config.apiEnvironment
|
327
|
+
), c = R(() => [
|
328
|
+
(d) => !!d || `A valid API Key is required. ${e("ApiKeyEditor.hint", {
|
329
|
+
environment: i.value
|
330
|
+
})}`
|
331
|
+
]), g = A(!1), u = A(!1), h = A(!1);
|
332
|
+
return {
|
333
|
+
apiKey: a,
|
334
|
+
apiKeyRules: c,
|
335
|
+
cookies: t,
|
336
|
+
dialog: g,
|
337
|
+
isFormValid: u,
|
338
|
+
isLoading: h,
|
339
|
+
t: e
|
340
|
+
};
|
341
|
+
}
|
342
|
+
// eslint-disable-next-line @typescript-eslint/no-empty-object-type, @typescript-eslint/no-explicit-any
|
343
|
+
});
|
344
|
+
function W(t) {
|
345
|
+
const e = t;
|
346
|
+
e.__i18n = e.__i18n || [], e.__i18n.push({
|
347
|
+
locale: "",
|
348
|
+
resource: {
|
349
|
+
"en-US": {
|
350
|
+
ApiKeyEditor: {
|
351
|
+
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" }] } },
|
352
|
+
invalid: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Provided API Key credential is not valid" } }
|
353
|
+
}
|
354
|
+
},
|
355
|
+
"fr-FR": {
|
356
|
+
ApiKeyEditor: {
|
357
|
+
hint: { t: 0, b: { t: 2, i: [{ t: 3, v: "Indiquez votre clé API Publishable pour l'environnement " }, { t: 4, k: "environment" }] } },
|
358
|
+
invalid: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "La clé API renseignée est invalide." } }
|
359
|
+
}
|
360
|
+
},
|
361
|
+
"de-DE": {
|
362
|
+
ApiKeyEditor: {
|
363
|
+
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" }] } },
|
364
|
+
invalid: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Der angegebene API-Schlüssel ist ungültig" } }
|
365
|
+
}
|
366
|
+
},
|
367
|
+
"es-ES": {
|
368
|
+
ApiKeyEditor: {
|
369
|
+
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" }] } },
|
370
|
+
invalid: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "La clave API proporcionada no es válida" } }
|
371
|
+
}
|
372
|
+
},
|
373
|
+
"it-IT": {
|
374
|
+
ApiKeyEditor: {
|
375
|
+
hint: { t: 0, b: { t: 2, i: [{ t: 3, v: "Inserisci la tua chiave API pubblica per l'ambiente " }, { t: 4, k: "environment" }] } },
|
376
|
+
invalid: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "La chiave API fornita non è valida" } }
|
377
|
+
}
|
378
|
+
},
|
379
|
+
"nl-NL": {
|
380
|
+
ApiKeyEditor: {
|
381
|
+
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" }] } },
|
382
|
+
invalid: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "De opgegeven API Key is ongeldig" } }
|
383
|
+
}
|
384
|
+
},
|
385
|
+
"pt-PT": {
|
386
|
+
ApiKeyEditor: {
|
387
|
+
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" }] } },
|
388
|
+
invalid: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "A credencial da chave API fornecida não é válida" } }
|
389
|
+
}
|
390
|
+
}
|
391
|
+
}
|
392
|
+
});
|
393
|
+
}
|
394
|
+
function Re(t, e, a, i, c, g) {
|
395
|
+
return _(), O("div", null, [
|
396
|
+
o(se, {
|
397
|
+
modelValue: t.dialog,
|
398
|
+
"onUpdate:modelValue": e[2] || (e[2] = (u) => t.dialog = u),
|
399
|
+
attach: t.$dialogAttach || void 0,
|
400
|
+
"max-width": "600px"
|
401
|
+
}, {
|
402
|
+
activator: r(({ props: u }) => [
|
403
|
+
o(k, Q(u, {
|
404
|
+
color: t.cookies.get("apiKey") ? "success" : "warning",
|
405
|
+
elevation: "0",
|
406
|
+
size: "x-small"
|
407
|
+
}), {
|
408
|
+
default: r(() => [
|
409
|
+
t.cookies.get("apiKey") ? (_(), O(F, { key: 1 }, [
|
410
|
+
o(q, { class: "mr-2" }, {
|
411
|
+
default: r(() => [...e[5] || (e[5] = [
|
412
|
+
S(" fas fa-check ", -1)
|
413
|
+
])]),
|
414
|
+
_: 1
|
415
|
+
}),
|
416
|
+
e[6] || (e[6] = S(" Valid API key ", -1))
|
417
|
+
], 64)) : (_(), O(F, { key: 0 }, [
|
418
|
+
o(q, { class: "mr-2" }, {
|
419
|
+
default: r(() => [...e[3] || (e[3] = [
|
420
|
+
S(" fas fa-exclamation ", -1)
|
421
|
+
])]),
|
422
|
+
_: 1
|
423
|
+
}),
|
424
|
+
e[4] || (e[4] = S(" No API key provided ", -1))
|
425
|
+
], 64))
|
426
|
+
]),
|
427
|
+
_: 1
|
428
|
+
}, 16, ["color"])
|
429
|
+
]),
|
430
|
+
default: r(() => [
|
431
|
+
o(ee, null, {
|
432
|
+
default: r(() => [
|
433
|
+
o(te, { class: "pa-4" }, {
|
434
|
+
default: r(() => [
|
435
|
+
o(N, { class: "pa-0" }, {
|
436
|
+
default: r(() => [
|
437
|
+
o(x, { "no-gutters": "" }, {
|
438
|
+
default: r(() => [
|
439
|
+
o(ie, null, {
|
440
|
+
default: r(() => [
|
441
|
+
o(ae, {
|
442
|
+
ref: "apiKeyEditorForm",
|
443
|
+
modelValue: t.isFormValid,
|
444
|
+
"onUpdate:modelValue": e[1] || (e[1] = (u) => t.isFormValid = u),
|
445
|
+
class: "m-0",
|
446
|
+
onSubmit: X(t.onSubmit, ["prevent"])
|
447
|
+
}, {
|
448
|
+
default: r(() => [
|
449
|
+
o(D, {
|
450
|
+
modelValue: t.apiKey,
|
451
|
+
"onUpdate:modelValue": e[0] || (e[0] = (u) => t.apiKey = u),
|
452
|
+
density: "compact",
|
453
|
+
hint: t.t("ApiKeyEditor.hint", {
|
454
|
+
environment: t.config.apiEnvironment
|
455
|
+
}),
|
456
|
+
label: "API Key",
|
457
|
+
variant: "outlined",
|
458
|
+
"persistent-hint": "",
|
459
|
+
required: "",
|
460
|
+
rules: t.apiKeyRules,
|
461
|
+
onKeyup: T(t.onSubmit, ["enter"])
|
462
|
+
}, null, 8, ["modelValue", "hint", "rules", "onKeyup"])
|
463
|
+
]),
|
464
|
+
_: 1
|
465
|
+
}, 8, ["modelValue", "onSubmit"])
|
466
|
+
]),
|
467
|
+
_: 1
|
468
|
+
})
|
469
|
+
]),
|
470
|
+
_: 1
|
471
|
+
})
|
472
|
+
]),
|
473
|
+
_: 1
|
474
|
+
})
|
475
|
+
]),
|
476
|
+
_: 1
|
477
|
+
}),
|
478
|
+
o(ne, null, {
|
479
|
+
default: r(() => [
|
480
|
+
o(oe),
|
481
|
+
o(k, {
|
482
|
+
color: "blue-darken-1",
|
483
|
+
size: "small",
|
484
|
+
variant: "text",
|
485
|
+
onClick: t.closeDialog
|
486
|
+
}, {
|
487
|
+
default: r(() => [...e[7] || (e[7] = [
|
488
|
+
S(" Close ", -1)
|
489
|
+
])]),
|
490
|
+
_: 1
|
491
|
+
}, 8, ["onClick"]),
|
492
|
+
o(k, {
|
493
|
+
class: "text-right",
|
494
|
+
color: "primary",
|
495
|
+
disabled: t.isLoading,
|
496
|
+
elevation: "0",
|
497
|
+
loading: t.isLoading,
|
498
|
+
size: "small",
|
499
|
+
onClick: t.onSubmit
|
500
|
+
}, {
|
501
|
+
default: r(() => [...e[8] || (e[8] = [
|
502
|
+
S(" Save ", -1)
|
503
|
+
])]),
|
504
|
+
_: 1
|
505
|
+
}, 8, ["disabled", "loading", "onClick"])
|
506
|
+
]),
|
507
|
+
_: 1
|
508
|
+
})
|
509
|
+
]),
|
510
|
+
_: 1
|
511
|
+
})
|
512
|
+
]),
|
513
|
+
_: 1
|
514
|
+
}, 8, ["modelValue", "attach"])
|
515
|
+
]);
|
516
|
+
}
|
517
|
+
typeof W == "function" && W(le);
|
518
|
+
const Te = /* @__PURE__ */ $(le, [["render", Re]]), de = /* @__PURE__ */ M({
|
519
|
+
__name: "EventMetadataEditor",
|
520
|
+
setup(t) {
|
521
|
+
const { config: e, updateConfig: a } = he(), i = /* @__PURE__ */ re(["eventMetadata"]), { isFetching: c } = ye(ke()), { t: g } = J(), u = A(null), { $dialogAttach: h } = Ce(u), d = [
|
522
|
+
(b) => {
|
523
|
+
if (!b)
|
524
|
+
return !0;
|
525
|
+
try {
|
526
|
+
return (
|
527
|
+
// eslint-disable-next-line no-constant-binary-expression
|
528
|
+
!!new URL(b) || g("EventMetadataEditor.validation.imageURL")
|
529
|
+
);
|
530
|
+
} catch {
|
531
|
+
return g("EventMetadataEditor.validation.imageURL");
|
532
|
+
}
|
533
|
+
}
|
534
|
+
], P = [
|
535
|
+
(b) => !!b || g("EventMetadataEditor.validation.name")
|
536
|
+
], m = A(
|
537
|
+
i.get("eventMetadata") || {
|
538
|
+
dateEnd: H().add(1, "day").format("YYYY-MM-DD").toString(),
|
539
|
+
dateStart: H().format("YYYY-MM-DD").toString(),
|
540
|
+
name: ""
|
541
|
+
}
|
542
|
+
), V = A(!1), s = A(!1), p = R({
|
543
|
+
get() {
|
544
|
+
return !m.value.dateStart || !m.value.dateEnd ? [] : B(
|
545
|
+
m.value.dateStart,
|
546
|
+
m.value.dateEnd
|
547
|
+
);
|
548
|
+
},
|
549
|
+
set(b) {
|
550
|
+
[m.value.dateStart, m.value.dateEnd] = B(...b);
|
551
|
+
}
|
552
|
+
});
|
553
|
+
function n() {
|
554
|
+
V.value = !1;
|
555
|
+
}
|
556
|
+
function y() {
|
557
|
+
return !(!m.value.name?.length || !p.value[0] || !p.value[1]);
|
558
|
+
}
|
559
|
+
function C() {
|
560
|
+
y() && (a({
|
561
|
+
...e.value,
|
562
|
+
eventMetadata: m.value
|
563
|
+
}), i.set("eventMetadata", JSON.stringify(m)), n());
|
564
|
+
}
|
565
|
+
function l() {
|
566
|
+
C(), n();
|
567
|
+
}
|
568
|
+
function E() {
|
569
|
+
i.remove("eventMetadata"), m.value = {}, a({
|
570
|
+
...e.value,
|
571
|
+
eventMetadata: {}
|
572
|
+
}), n();
|
573
|
+
}
|
574
|
+
return Ee(() => {
|
575
|
+
i.get("eventMetadata") && a({
|
576
|
+
...e.value,
|
577
|
+
eventMetadata: i.get("eventMetadata")
|
578
|
+
});
|
579
|
+
}), (b, f) => (_(), O("div", {
|
580
|
+
ref_key: "root",
|
581
|
+
ref: u
|
582
|
+
}, [
|
583
|
+
o(se, {
|
584
|
+
modelValue: V.value,
|
585
|
+
"onUpdate:modelValue": f[4] || (f[4] = (v) => V.value = v),
|
586
|
+
attach: w(h),
|
587
|
+
height: "600px",
|
588
|
+
"max-width": "600px"
|
589
|
+
}, {
|
590
|
+
activator: r(({ props: v }) => [
|
591
|
+
o(k, Q(v, {
|
592
|
+
color: w(i).get("eventMetadata") ? "success" : "warning",
|
593
|
+
elevation: "0",
|
594
|
+
size: "x-small"
|
595
|
+
}), {
|
596
|
+
default: r(() => [
|
597
|
+
S(be(m.value?.name ? `EVENT : ${m.value?.name}` : "ADD EVENT METADATA"), 1)
|
598
|
+
]),
|
599
|
+
_: 1
|
600
|
+
}, 16, ["color"])
|
601
|
+
]),
|
602
|
+
default: r(() => [
|
603
|
+
o(ee, null, {
|
604
|
+
default: r(() => [
|
605
|
+
o(te, { class: "pa-4" }, {
|
606
|
+
default: r(() => [
|
607
|
+
o(N, { class: "pa-0" }, {
|
608
|
+
default: r(() => [
|
609
|
+
o(x, { "no-gutters": "" }, {
|
610
|
+
default: r(() => [
|
611
|
+
o(ie, null, {
|
612
|
+
default: r(() => [
|
613
|
+
o(ae, {
|
614
|
+
ref: "eventMetadataEditorForm",
|
615
|
+
modelValue: s.value,
|
616
|
+
"onUpdate:modelValue": f[3] || (f[3] = (v) => s.value = v),
|
617
|
+
class: "m-0",
|
618
|
+
onSubmit: X(l, ["prevent"])
|
619
|
+
}, {
|
620
|
+
default: r(() => [
|
621
|
+
o(D, {
|
622
|
+
modelValue: m.value.name,
|
623
|
+
"onUpdate:modelValue": f[0] || (f[0] = (v) => m.value.name = v),
|
624
|
+
density: "compact",
|
625
|
+
label: "Name of the event",
|
626
|
+
variant: "outlined",
|
627
|
+
"persistent-hint": "",
|
628
|
+
required: "",
|
629
|
+
rules: P,
|
630
|
+
onKeyup: T(l, ["enter"])
|
631
|
+
}, null, 8, ["modelValue"]),
|
632
|
+
o(D, {
|
633
|
+
modelValue: m.value.imageUrl,
|
634
|
+
"onUpdate:modelValue": f[1] || (f[1] = (v) => m.value.imageUrl = v),
|
635
|
+
density: "compact",
|
636
|
+
label: "Image URL",
|
637
|
+
variant: "outlined",
|
638
|
+
"persistent-hint": "",
|
639
|
+
rules: d,
|
640
|
+
onKeyup: T(l, ["enter"])
|
641
|
+
}, null, 8, ["modelValue"]),
|
642
|
+
o(x, null, {
|
643
|
+
default: r(() => [
|
644
|
+
o(we, {
|
645
|
+
modelValue: p.value,
|
646
|
+
"onUpdate:modelValue": f[2] || (f[2] = (v) => p.value = v)
|
647
|
+
}, null, 8, ["modelValue"])
|
648
|
+
]),
|
649
|
+
_: 1
|
650
|
+
})
|
651
|
+
]),
|
652
|
+
_: 1
|
653
|
+
}, 8, ["modelValue"])
|
654
|
+
]),
|
655
|
+
_: 1
|
656
|
+
})
|
657
|
+
]),
|
658
|
+
_: 1
|
659
|
+
})
|
660
|
+
]),
|
661
|
+
_: 1
|
662
|
+
})
|
663
|
+
]),
|
664
|
+
_: 1
|
665
|
+
}),
|
666
|
+
o(ne, null, {
|
667
|
+
default: r(() => [
|
668
|
+
o(oe),
|
669
|
+
o(k, {
|
670
|
+
color: "grey",
|
671
|
+
size: "small",
|
672
|
+
variant: "text",
|
673
|
+
onClick: n
|
674
|
+
}, {
|
675
|
+
default: r(() => [...f[5] || (f[5] = [
|
676
|
+
S(" Close ", -1)
|
677
|
+
])]),
|
678
|
+
_: 1
|
679
|
+
}),
|
680
|
+
o(k, {
|
681
|
+
color: "error",
|
682
|
+
disabled: w(c),
|
683
|
+
loading: w(c),
|
684
|
+
size: "small",
|
685
|
+
variant: "text",
|
686
|
+
onClick: E
|
687
|
+
}, {
|
688
|
+
default: r(() => [...f[6] || (f[6] = [
|
689
|
+
S(" Reset ", -1)
|
690
|
+
])]),
|
691
|
+
_: 1
|
692
|
+
}, 8, ["disabled", "loading"]),
|
693
|
+
o(k, {
|
694
|
+
color: "success",
|
695
|
+
disabled: w(c),
|
696
|
+
loading: w(c),
|
697
|
+
size: "small",
|
698
|
+
variant: "flat",
|
699
|
+
onClick: l
|
700
|
+
}, {
|
701
|
+
default: r(() => [...f[7] || (f[7] = [
|
702
|
+
S(" Save ", -1)
|
703
|
+
])]),
|
704
|
+
_: 1
|
705
|
+
}, 8, ["disabled", "loading"])
|
706
|
+
]),
|
707
|
+
_: 1
|
708
|
+
})
|
709
|
+
]),
|
710
|
+
_: 1
|
711
|
+
})
|
712
|
+
]),
|
713
|
+
_: 1
|
714
|
+
}, 8, ["modelValue", "attach"])
|
715
|
+
], 512));
|
716
|
+
}
|
717
|
+
});
|
718
|
+
function G(t) {
|
719
|
+
const e = t;
|
720
|
+
e.__i18n = e.__i18n || [], e.__i18n.push({
|
721
|
+
locale: "",
|
722
|
+
resource: {
|
723
|
+
"en-US": {
|
724
|
+
EventMetadataEditor: {
|
725
|
+
validation: {
|
726
|
+
imageURL: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Please provide a valid URL" } },
|
727
|
+
name: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Please provide a name" } }
|
728
|
+
}
|
729
|
+
}
|
730
|
+
},
|
731
|
+
"fr-FR": {
|
732
|
+
EventMetadataEditor: {
|
733
|
+
validation: {
|
734
|
+
imageURL: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Veuillez fournir une URL valide d'image" } },
|
735
|
+
name: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Veuillez entrer le nom de l'événement" } }
|
736
|
+
}
|
737
|
+
}
|
738
|
+
},
|
739
|
+
"de-DE": {
|
740
|
+
EventMetadataEditor: {
|
741
|
+
validation: {
|
742
|
+
imageURL: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Bitte geben Sie eine gültige URL an" } },
|
743
|
+
name: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Bitte geben Sie einen Namen an" } }
|
744
|
+
}
|
745
|
+
}
|
746
|
+
},
|
747
|
+
"es-ES": {
|
748
|
+
EventMetadataEditor: {
|
749
|
+
validation: {
|
750
|
+
imageURL: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Por favor, introduce una URL válida" } },
|
751
|
+
name: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Por favor, introduce un nombre" } }
|
752
|
+
}
|
753
|
+
}
|
754
|
+
},
|
755
|
+
"it-IT": {
|
756
|
+
EventMetadataEditor: {
|
757
|
+
validation: {
|
758
|
+
imageURL: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Inserisci un URL valido" } },
|
759
|
+
name: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Inserisci un nome" } }
|
760
|
+
}
|
761
|
+
}
|
762
|
+
},
|
763
|
+
"nl-NL": {
|
764
|
+
EventMetadataEditor: {
|
765
|
+
validation: {
|
766
|
+
imageURL: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Geef een geldige URL op" } },
|
767
|
+
name: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Geef een naam op" } }
|
768
|
+
}
|
769
|
+
}
|
770
|
+
},
|
771
|
+
"pt-PT": {
|
772
|
+
EventMetadataEditor: {
|
773
|
+
validation: {
|
774
|
+
imageURL: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Por favor, introduza um URL válido" } },
|
775
|
+
name: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Por favor, introduza um nome" } }
|
776
|
+
}
|
777
|
+
}
|
778
|
+
}
|
779
|
+
}
|
780
|
+
});
|
781
|
+
}
|
782
|
+
typeof G == "function" && G(de);
|
783
|
+
const De = M({
|
784
|
+
components: {
|
785
|
+
ApiKeyEditor: Te,
|
786
|
+
EventMetadataEditor: de
|
787
|
+
},
|
788
|
+
name: "StorybookExtraToolbar"
|
789
|
+
// eslint-disable-next-line @typescript-eslint/no-empty-object-type, @typescript-eslint/no-explicit-any
|
790
|
+
}), $e = { class: "flex gap-1 px-3" };
|
791
|
+
function Ne(t, e, a, i, c, g) {
|
792
|
+
const u = I("ApiKeyEditor"), h = I("EventMetadataEditor");
|
793
|
+
return _(), Z(N, {
|
794
|
+
class: "pa-0 mb-3",
|
795
|
+
fluid: ""
|
796
|
+
}, {
|
797
|
+
default: r(() => [
|
798
|
+
o(x, { "no-gutters": "" }, {
|
799
|
+
default: r(() => [
|
800
|
+
Se("div", $e, [
|
801
|
+
o(u),
|
802
|
+
o(h)
|
803
|
+
])
|
804
|
+
]),
|
805
|
+
_: 1
|
806
|
+
})
|
807
|
+
]),
|
808
|
+
_: 1
|
809
|
+
});
|
810
|
+
}
|
811
|
+
const je = /* @__PURE__ */ $(De, [["render", Ne]]), ze = M({
|
812
|
+
components: {
|
813
|
+
StorybookExtraToolbar: je,
|
814
|
+
WebComponentWrapper: _e
|
815
|
+
}
|
816
|
+
});
|
817
|
+
function Fe(t, e, a, i, c, g) {
|
818
|
+
const u = I("StorybookExtraToolbar"), h = I("WebComponentWrapper");
|
819
|
+
return _(), Z(h, { "error-overlay-disabled": "" }, {
|
820
|
+
default: r(() => [
|
821
|
+
o(u)
|
822
|
+
]),
|
823
|
+
_: 1
|
824
|
+
});
|
825
|
+
}
|
826
|
+
const We = /* @__PURE__ */ $(ze, [["render", Fe]]);
|
827
|
+
me("css/revolugo.storybooktoolbar.d_cxquq9.css");
|
828
|
+
export {
|
829
|
+
We as default
|
830
|
+
};
|
831
|
+
//# sourceMappingURL=revolugo.storybooktoolbar.DGufIx5l.min.js.map
|