@revolugo/elements 6.9.0-rc.5 → 6.9.1-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.BCmMv5CR.css +1 -0
- package/dist/css/revolugo.index.ClC0OVqq.css +5 -0
- package/dist/css/{revolugo.vtoolbar.BZert82L.css → revolugo.preferencesmenu.7UfG9ius.css} +1 -1
- package/dist/css/{revolugo.webcomponentwrapper.cFJPP6Rp.css → revolugo.webcomponentwrapper.C3K3E5wv.css} +1 -1
- package/dist/index.es.min.js +2 -1
- package/dist/index.es.min.js.map +1 -1
- package/dist/index.min.js +1 -1
- package/dist/index.min.js.map +1 -1
- package/dist/revolugo.banktransferdetails.CnMNY-vM.min.js +37 -0
- package/dist/revolugo.bookingdetailssidebar.cluL06at.min.js +38 -0
- package/dist/revolugo.bookingmanager.BI9tgv3k.min.js +25 -0
- package/dist/revolugo.cancellationpoliciesbadge.1AYTHxud.min.js +25 -0
- package/dist/revolugo.cancellationpoliciesbadge.props.BzZm3aB9.min.js +30835 -0
- package/dist/revolugo.cancellationpolicieslist.CNVuYPJC.min.js +25 -0
- package/dist/revolugo.creditcardform.CBJnfym8.min.js +25 -0
- package/dist/revolugo.creditcardpayment.B60xJsLL.min.js +25 -0
- package/dist/revolugo.currencypickerbtn.lDiTXXJ-.min.js +25 -0
- package/dist/revolugo.fastbookingflow.CqYnDU9L.min.js +35 -0
- package/dist/revolugo.fullbookingflow.BP8qSHgZ.min.js +25 -0
- package/dist/revolugo.hoteldescriptionview.DQ9tuFqp.min.js +25 -0
- package/dist/revolugo.hotelofferlist.DAbFLxgC.min.js +25 -0
- package/dist/revolugo.hoteloffersearchmenu.CpLjZ82D.min.js +73 -0
- package/dist/revolugo.hoteloffersmap.pwDQ8BlF.min.js +25 -0
- package/dist/revolugo.hoteloffersview.BqMLmokf.min.js +20 -0
- package/dist/revolugo.hotelroomofferlist.CfP85DfR.min.js +25 -0
- package/dist/revolugo.hotelroomoffersbookingflow.ZegZEQXf.min.js +25 -0
- package/dist/revolugo.hotelroomoffersearchmenu.Bl_kCJ7s.min.js +25 -0
- package/dist/revolugo.hotelroomoffersview.ViCNFb0T.min.js +25 -0
- package/dist/revolugo.index.CpH_RNjS.min.js +106 -0
- package/dist/{revolugo.index.wc.B5w57MVj.min.js → revolugo.index.wc.DuPB3gwB.min.js} +4139 -4166
- package/dist/revolugo.langpickerbtn.DieF3DBF.min.js +30 -0
- package/dist/revolugo.min.js +1 -1
- package/dist/revolugo.prebookform.CEyz9Sgq.min.js +25 -0
- package/dist/revolugo.preferencesmenu.BjKg1-Wm.min.js +1098 -0
- package/dist/revolugo.preferencesmenu.BxFixX46.min.js +24 -0
- package/dist/revolugo.roominglisteditor.CAVBmDjU.min.js +25 -0
- package/dist/revolugo.storybooktoolbar.Jn8CsV1b.min.js +839 -0
- package/dist/revolugo.termsandconditions.iMzLEEgE.min.js +24 -0
- package/dist/revolugo.webcomponentwrapper.C4AURctg.min.js +28593 -0
- package/package.json +5 -5
- 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.CNP_D5F3.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.DWne0Lnv.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.BNTrudNz.min.js +0 -247
- package/dist/revolugo.banktransferdetails.CSBeZCMH.min.js +0 -373
- package/dist/revolugo.bdaterangepicker.DxjM2ZhP.min.js +0 -8327
- package/dist/revolugo.bformattedamount.vue_vue_type_script_setup_true_lang.6MmXQngv.min.js +0 -143
- package/dist/revolugo.bhoteloffersfilterbar.BMSggMNQ.min.js +0 -4901
- package/dist/revolugo.bhotelroomsdetails.Dy58ap6y.min.js +0 -965
- package/dist/revolugo.bimagecarousel.D2kDC3SL.min.js +0 -566
- package/dist/revolugo.bookingdetailssidebar.D_T2s2ef.min.js +0 -24
- package/dist/revolugo.bookingdetailssidebar.z6-uHtpz.min.js +0 -867
- package/dist/revolugo.bookingmanager.9jQBXiSg.min.js +0 -1755
- package/dist/revolugo.bpricesummaryskeleton.vue_vue_type_script_setup_true_lang.ByRHbTSk.min.js +0 -66
- package/dist/revolugo.bstarrating.vue_vue_type_script_setup_true_lang.CDrVermB.min.js +0 -570
- package/dist/revolugo.btag.DeY2USse.min.js +0 -375
- package/dist/revolugo.cancellationpoliciesbadge.B9nrlzWh.min.js +0 -198
- package/dist/revolugo.cancellationpoliciesbadge.iy6w5cCy.min.js +0 -28
- package/dist/revolugo.cancellationpolicieslist.CuRO2YGE.min.js +0 -25
- package/dist/revolugo.cancellationpolicieslist.jzFe1dFe.min.js +0 -148
- package/dist/revolugo.cancellationpolicieslist.props.s6oWxIxG.min.js +0 -21
- package/dist/revolugo.case-transformers.CLDyhumY.min.js +0 -123
- package/dist/revolugo.common.D-l8b0V5.min.js +0 -10
- package/dist/revolugo.creditcardform.BLt4RL8u.min.js +0 -24
- package/dist/revolugo.creditcardform.BSipIYOP.min.js +0 -2148
- package/dist/revolugo.creditcardpayment.DGBEaBVo.min.js +0 -885
- package/dist/revolugo.creditcardpayment.ri5O9Y0R.min.js +0 -24
- package/dist/revolugo.currencypicker.BHxj0ske.min.js +0 -328
- package/dist/revolugo.currencypickerbtn.DkGwNDrZ.min.js +0 -24
- package/dist/revolugo.currencypickerbtn.WiV6iGHa.min.js +0 -157
- package/dist/revolugo.dates.CSTMvLSu.min.js +0 -31
- package/dist/revolugo.defaultsdeep.BDzCei18.min.js +0 -104
- package/dist/revolugo.dialog-attach.Csh39Lda.min.js +0 -27
- package/dist/revolugo.dialog-transition.i0LvwiKa.min.js +0 -111
- package/dist/revolugo.fastbookingflow.B8FSXUnJ.min.js +0 -34
- package/dist/revolugo.forwardrefs.VVhh1qV3.min.js +0 -70
- package/dist/revolugo.fullbookingflow.8C6zgp-h.min.js +0 -429
- package/dist/revolugo.hotel-offer-request.7ONhRsN6.min.js +0 -98
- package/dist/revolugo.hoteldescriptionview.C0xUtXux.min.js +0 -24
- package/dist/revolugo.hoteldescriptionview.aN-zXtyj.min.js +0 -2738
- package/dist/revolugo.hotelofferitemlayout.vue_vue_type_script_setup_true_lang.CtA2RbME.min.js +0 -239
- package/dist/revolugo.hotelofferlist.BvKGfilp.min.js +0 -24
- package/dist/revolugo.hotelofferlist.DfVSA0cI.min.js +0 -5640
- package/dist/revolugo.hotelofferrequestcreator.props.BeQuCTZy.min.js +0 -44
- package/dist/revolugo.hoteloffersearchmenu.DifwQFnl.min.js +0 -202
- package/dist/revolugo.hoteloffersearchmenuui.BxtpoR6c.min.js +0 -829
- package/dist/revolugo.hoteloffersmap.5TZ3ihCX.min.js +0 -8330
- package/dist/revolugo.hoteloffersmap.9oE_G8tN.min.js +0 -24
- package/dist/revolugo.hoteloffersview.BLO25-H2.min.js +0 -19
- package/dist/revolugo.hoteloffersview.CagWc49U.min.js +0 -616
- package/dist/revolugo.hotelroomofferlist.BujulIIq.min.js +0 -24
- package/dist/revolugo.hotelroomofferlist.aB6E2Yma.min.js +0 -2799
- package/dist/revolugo.hotelroomofferrequestcreator.props.ABMFjBSt.min.js +0 -171
- package/dist/revolugo.hotelroomoffersbookingflow.CZu1UUFz.min.js +0 -1281
- package/dist/revolugo.hotelroomoffersearchmenu.DD9opK9F.min.js +0 -231
- package/dist/revolugo.hotelroomoffersearchmenu.JelxSD8z.min.js +0 -25
- package/dist/revolugo.hotelroomoffersview.D-XmaDjJ.min.js +0 -24
- package/dist/revolugo.hotelroomoffersview.Dccr--hS.min.js +0 -290
- package/dist/revolugo.index.CVDLehFP.min.js +0 -1232
- package/dist/revolugo.index.DZF1zb-Q.min.js +0 -67
- package/dist/revolugo.langpicker.UuyPueP1.min.js +0 -99
- package/dist/revolugo.langpickerbtn.Cfth49Hz.min.js +0 -29
- package/dist/revolugo.langpickerbtn.CqViAaPH.min.js +0 -131
- package/dist/revolugo.parsed-props.CgT6zw61.min.js +0 -40
- package/dist/revolugo.pathify.Dd900P8D.min.js +0 -36
- package/dist/revolugo.prebookform.BRuqvdxQ.min.js +0 -1527
- package/dist/revolugo.prebookform.CMH57Wzk.min.js +0 -24
- package/dist/revolugo.preferencesmenu.1aT8mPop.min.js +0 -261
- package/dist/revolugo.preferencesmenu.DNoUuKkX.min.js +0 -24
- package/dist/revolugo.roominglisteditor.BILaUlMP.min.js +0 -24
- package/dist/revolugo.roominglisteditor.xmopqjqP.min.js +0 -385
- package/dist/revolugo.rounded.AHSatDl-.min.js +0 -68
- package/dist/revolugo.ssrboot.DeMi_oOP.min.js +0 -18
- package/dist/revolugo.storybooktoolbar.BcvgDyg2.min.js +0 -881
- package/dist/revolugo.termsandconditions.CGKBy5-o.min.js +0 -23
- package/dist/revolugo.termsandconditions.CzWDtP8F.min.js +0 -404
- package/dist/revolugo.use-breakpoint-service.Bxdx9aK_.min.js +0 -39
- package/dist/revolugo.use-dialog-attach.Dkx9tSlr.min.js +0 -16
- package/dist/revolugo.use-html-element.B2hxGZaS.min.js +0 -11
- package/dist/revolugo.vautocomplete.pI69lWXt.min.js +0 -445
- package/dist/revolugo.vbadge.BcMYa50_.min.js +0 -112
- package/dist/revolugo.vbtn.U2MKWRpI.min.js +0 -398
- package/dist/revolugo.vcard.C9RZUnnv.min.js +0 -313
- package/dist/revolugo.vcheckboxbtn.DSYfop2k.min.js +0 -478
- package/dist/revolugo.vdialog.BALM4jpJ.min.js +0 -133
- package/dist/revolugo.vdivider.B9ui--a3.min.js +0 -77
- package/dist/revolugo.vexpansionpanels.DiIu3_Jv.min.js +0 -262
- package/dist/revolugo.vform.Dl-DC485.min.js +0 -46
- package/dist/revolugo.vicon.DxOHot3-.min.js +0 -105
- package/dist/revolugo.vinput.CswQS7NJ.min.js +0 -463
- package/dist/revolugo.vlabel._ZQf_XFQ.min.js +0 -48
- package/dist/revolugo.vlist.DJFHbM-9.min.js +0 -1299
- package/dist/revolugo.vmenu.D6TfhAZa.min.js +0 -145
- package/dist/revolugo.vselect.B1y6cURA.min.js +0 -660
- package/dist/revolugo.vsheet.CwVdRlGQ.min.js +0 -72
- package/dist/revolugo.vskeletonloader.CE1Y41vH.min.js +0 -136
- package/dist/revolugo.vslidegroup.g9dn2dsC.min.js +0 -325
- package/dist/revolugo.vsnackbar.D8bdniAR.min.js +0 -198
- package/dist/revolugo.vspacer.eZ29eow0.min.js +0 -7
- package/dist/revolugo.vtextarea.B3elGOHD.min.js +0 -2092
- package/dist/revolugo.vtextfield.DE6UHY3P.min.js +0 -501
- package/dist/revolugo.vtoolbar.CSb5X7Fx.min.js +0 -180
- package/dist/revolugo.vtooltip.BQNsazxP.min.js +0 -89
- package/dist/revolugo.vwindowitem.Dukm7VML.min.js +0 -317
- package/dist/revolugo.watch-list.Crski9oR.min.js +0 -16
- package/dist/revolugo.webcomponentwrapper.9iqy4u1a.min.js +0 -2088
@@ -0,0 +1,839 @@
|
|
1
|
+
import { s as pe, d as P, h as X, i as _, b as T, A as ve, X as ge, j as I, a as o, w as r, k as Q, l as D, p as S, m as Z, F as B, o as w, q as he, t as ye, v as H, x as Ee, u as C, r as O, y as be, c as ee, z as Se } from "./revolugo.index.wc.DuPB3gwB.min.js";
|
2
|
+
import { d as _e, B as ke, _ as N, V as te, b as ie, c as j, e as M, f as ae, g as ne, h as $, i as oe, j as se, k, l as q, m as re, u as Ae, n as Ce, W as we } from "./revolugo.webcomponentwrapper.C4AURctg.min.js";
|
3
|
+
import { t as Ve, w as Le, s as Y } from "./revolugo.index.CpH_RNjS.min.js";
|
4
|
+
function me(t) {
|
5
|
+
try {
|
6
|
+
if (typeof document < "u") {
|
7
|
+
window.REVOLUGO_ELEMENTS_STYLES = window.REVOLUGO_ELEMENTS_STYLES || {
|
8
|
+
sheets: [],
|
9
|
+
components: []
|
10
|
+
};
|
11
|
+
const e = import.meta.url, a = e.slice(0, e.lastIndexOf("/") + 1) + t;
|
12
|
+
window.REVOLUGO_ELEMENTS_STYLES.sheets.push(a);
|
13
|
+
for (const i of REVOLUGO_ELEMENTS_STYLES.components)
|
14
|
+
i(a);
|
15
|
+
if (t.indexOf("fonts") >= 0) {
|
16
|
+
const i = document.createElement("link");
|
17
|
+
i.rel = "stylesheet", linK.href = a, document.head.appendChild(i);
|
18
|
+
}
|
19
|
+
}
|
20
|
+
} catch (e) {
|
21
|
+
console.error("[revolugo-elements] ", e);
|
22
|
+
}
|
23
|
+
}
|
24
|
+
var L = {}, W;
|
25
|
+
function Oe() {
|
26
|
+
if (W) return L;
|
27
|
+
W = 1, Object.defineProperty(L, "__esModule", { value: !0 }), L.parse = u, L.serialize = R;
|
28
|
+
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, v = /* @__PURE__ */ (() => {
|
29
|
+
const s = function() {
|
30
|
+
};
|
31
|
+
return s.prototype = /* @__PURE__ */ Object.create(null), s;
|
32
|
+
})();
|
33
|
+
function u(s, p) {
|
34
|
+
const n = new v(), h = s.length;
|
35
|
+
if (h < 2)
|
36
|
+
return n;
|
37
|
+
const A = p?.decode || m;
|
38
|
+
let l = 0;
|
39
|
+
do {
|
40
|
+
const E = s.indexOf("=", l);
|
41
|
+
if (E === -1)
|
42
|
+
break;
|
43
|
+
const b = s.indexOf(";", l), f = b === -1 ? h : b;
|
44
|
+
if (E > f) {
|
45
|
+
l = s.lastIndexOf(";", E - 1) + 1;
|
46
|
+
continue;
|
47
|
+
}
|
48
|
+
const K = g(s, l, E), y = d(s, E, K), z = s.slice(K, y);
|
49
|
+
if (n[z] === void 0) {
|
50
|
+
let F = g(s, E + 1, f), ce = d(s, f, F);
|
51
|
+
const fe = A(s.slice(F, ce));
|
52
|
+
n[z] = fe;
|
53
|
+
}
|
54
|
+
l = f + 1;
|
55
|
+
} while (l < h);
|
56
|
+
return n;
|
57
|
+
}
|
58
|
+
function g(s, p, n) {
|
59
|
+
do {
|
60
|
+
const h = s.charCodeAt(p);
|
61
|
+
if (h !== 32 && h !== 9)
|
62
|
+
return p;
|
63
|
+
} while (++p < n);
|
64
|
+
return n;
|
65
|
+
}
|
66
|
+
function d(s, p, n) {
|
67
|
+
for (; p > n; ) {
|
68
|
+
const h = s.charCodeAt(--p);
|
69
|
+
if (h !== 32 && h !== 9)
|
70
|
+
return p + 1;
|
71
|
+
}
|
72
|
+
return n;
|
73
|
+
}
|
74
|
+
function R(s, p, n) {
|
75
|
+
const h = n?.encode || encodeURIComponent;
|
76
|
+
if (!t.test(s))
|
77
|
+
throw new TypeError(`argument name is invalid: ${s}`);
|
78
|
+
const A = h(p);
|
79
|
+
if (!e.test(A))
|
80
|
+
throw new TypeError(`argument val is invalid: ${p}`);
|
81
|
+
let l = s + "=" + A;
|
82
|
+
if (!n)
|
83
|
+
return l;
|
84
|
+
if (n.maxAge !== void 0) {
|
85
|
+
if (!Number.isInteger(n.maxAge))
|
86
|
+
throw new TypeError(`option maxAge is invalid: ${n.maxAge}`);
|
87
|
+
l += "; Max-Age=" + n.maxAge;
|
88
|
+
}
|
89
|
+
if (n.domain) {
|
90
|
+
if (!a.test(n.domain))
|
91
|
+
throw new TypeError(`option domain is invalid: ${n.domain}`);
|
92
|
+
l += "; Domain=" + n.domain;
|
93
|
+
}
|
94
|
+
if (n.path) {
|
95
|
+
if (!i.test(n.path))
|
96
|
+
throw new TypeError(`option path is invalid: ${n.path}`);
|
97
|
+
l += "; Path=" + n.path;
|
98
|
+
}
|
99
|
+
if (n.expires) {
|
100
|
+
if (!V(n.expires) || !Number.isFinite(n.expires.valueOf()))
|
101
|
+
throw new TypeError(`option expires is invalid: ${n.expires}`);
|
102
|
+
l += "; Expires=" + n.expires.toUTCString();
|
103
|
+
}
|
104
|
+
if (n.httpOnly && (l += "; HttpOnly"), n.secure && (l += "; Secure"), n.partitioned && (l += "; Partitioned"), n.priority)
|
105
|
+
switch (typeof n.priority == "string" ? n.priority.toLowerCase() : void 0) {
|
106
|
+
case "low":
|
107
|
+
l += "; Priority=Low";
|
108
|
+
break;
|
109
|
+
case "medium":
|
110
|
+
l += "; Priority=Medium";
|
111
|
+
break;
|
112
|
+
case "high":
|
113
|
+
l += "; Priority=High";
|
114
|
+
break;
|
115
|
+
default:
|
116
|
+
throw new TypeError(`option priority is invalid: ${n.priority}`);
|
117
|
+
}
|
118
|
+
if (n.sameSite)
|
119
|
+
switch (typeof n.sameSite == "string" ? n.sameSite.toLowerCase() : n.sameSite) {
|
120
|
+
case !0:
|
121
|
+
case "strict":
|
122
|
+
l += "; SameSite=Strict";
|
123
|
+
break;
|
124
|
+
case "lax":
|
125
|
+
l += "; SameSite=Lax";
|
126
|
+
break;
|
127
|
+
case "none":
|
128
|
+
l += "; SameSite=None";
|
129
|
+
break;
|
130
|
+
default:
|
131
|
+
throw new TypeError(`option sameSite is invalid: ${n.sameSite}`);
|
132
|
+
}
|
133
|
+
return l;
|
134
|
+
}
|
135
|
+
function m(s) {
|
136
|
+
if (s.indexOf("%") === -1)
|
137
|
+
return s;
|
138
|
+
try {
|
139
|
+
return decodeURIComponent(s);
|
140
|
+
} catch {
|
141
|
+
return s;
|
142
|
+
}
|
143
|
+
}
|
144
|
+
function V(s) {
|
145
|
+
return c.call(s) === "[object Date]";
|
146
|
+
}
|
147
|
+
return L;
|
148
|
+
}
|
149
|
+
var x = Oe();
|
150
|
+
function Ke() {
|
151
|
+
const t = typeof global > "u" ? void 0 : global.TEST_HAS_DOCUMENT_COOKIE;
|
152
|
+
return typeof t == "boolean" ? t : typeof document == "object" && typeof document.cookie == "string";
|
153
|
+
}
|
154
|
+
function Ie(t) {
|
155
|
+
return typeof t == "string" ? x.parse(t) : typeof t == "object" && t !== null ? t : {};
|
156
|
+
}
|
157
|
+
function U(t, e = {}) {
|
158
|
+
const a = xe(t);
|
159
|
+
if (!e.doNotParse)
|
160
|
+
try {
|
161
|
+
return JSON.parse(a);
|
162
|
+
} catch {
|
163
|
+
}
|
164
|
+
return t;
|
165
|
+
}
|
166
|
+
function xe(t) {
|
167
|
+
return t && t[0] === "j" && t[1] === ":" ? t.substr(2) : t;
|
168
|
+
}
|
169
|
+
class Me {
|
170
|
+
constructor(e, a = {}) {
|
171
|
+
this.changeListeners = [], this.HAS_DOCUMENT_COOKIE = !1, this.update = () => {
|
172
|
+
if (!this.HAS_DOCUMENT_COOKIE)
|
173
|
+
return;
|
174
|
+
const c = this.cookies;
|
175
|
+
this.cookies = x.parse(document.cookie), this._checkChanges(c);
|
176
|
+
};
|
177
|
+
const i = typeof document > "u" ? "" : document.cookie;
|
178
|
+
this.cookies = Ie(e || i), this.defaultSetOptions = a, this.HAS_DOCUMENT_COOKIE = Ke();
|
179
|
+
}
|
180
|
+
_emitChange(e) {
|
181
|
+
for (let a = 0; a < this.changeListeners.length; ++a)
|
182
|
+
this.changeListeners[a](e);
|
183
|
+
}
|
184
|
+
_checkChanges(e) {
|
185
|
+
new Set(Object.keys(e).concat(Object.keys(this.cookies))).forEach((i) => {
|
186
|
+
e[i] !== this.cookies[i] && this._emitChange({
|
187
|
+
name: i,
|
188
|
+
value: U(this.cookies[i])
|
189
|
+
});
|
190
|
+
});
|
191
|
+
}
|
192
|
+
_startPolling() {
|
193
|
+
this.pollingInterval = setInterval(this.update, 300);
|
194
|
+
}
|
195
|
+
_stopPolling() {
|
196
|
+
this.pollingInterval && clearInterval(this.pollingInterval);
|
197
|
+
}
|
198
|
+
get(e, a = {}) {
|
199
|
+
return a.doNotUpdate || this.update(), U(this.cookies[e], a);
|
200
|
+
}
|
201
|
+
getAll(e = {}) {
|
202
|
+
e.doNotUpdate || this.update();
|
203
|
+
const a = {};
|
204
|
+
for (let i in this.cookies)
|
205
|
+
a[i] = U(this.cookies[i], e);
|
206
|
+
return a;
|
207
|
+
}
|
208
|
+
set(e, a, i) {
|
209
|
+
i ? i = Object.assign(Object.assign({}, this.defaultSetOptions), i) : i = this.defaultSetOptions;
|
210
|
+
const c = typeof a == "string" ? a : JSON.stringify(a);
|
211
|
+
this.cookies = Object.assign(Object.assign({}, this.cookies), { [e]: c }), this.HAS_DOCUMENT_COOKIE && (document.cookie = x.serialize(e, c, i)), this._emitChange({ name: e, value: a, options: i });
|
212
|
+
}
|
213
|
+
remove(e, a) {
|
214
|
+
const i = a = Object.assign(Object.assign(Object.assign({}, this.defaultSetOptions), a), { expires: new Date(1970, 1, 1, 0, 0, 1), maxAge: 0 });
|
215
|
+
this.cookies = Object.assign({}, this.cookies), delete this.cookies[e], this.HAS_DOCUMENT_COOKIE && (document.cookie = x.serialize(e, "", i)), this._emitChange({ name: e, value: void 0, options: a });
|
216
|
+
}
|
217
|
+
addChangeListener(e) {
|
218
|
+
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());
|
219
|
+
}
|
220
|
+
removeChangeListener(e) {
|
221
|
+
const a = this.changeListeners.indexOf(e);
|
222
|
+
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());
|
223
|
+
}
|
224
|
+
removeAllChangeListeners() {
|
225
|
+
for (; this.changeListeners.length > 0; )
|
226
|
+
this.removeChangeListener(this.changeListeners[0]);
|
227
|
+
}
|
228
|
+
}
|
229
|
+
function le(t, { doNotParse: e = !1, autoUpdateDependencies: a = !1 } = {}, i = new Me()) {
|
230
|
+
const c = a ? [...t || []] : t;
|
231
|
+
let v = i.getAll({ doNotParse: !0 });
|
232
|
+
const u = pe(0), g = () => {
|
233
|
+
const d = i.getAll({ doNotParse: !0 });
|
234
|
+
Pe(
|
235
|
+
c || null,
|
236
|
+
d,
|
237
|
+
v
|
238
|
+
) && u.value++, v = d;
|
239
|
+
};
|
240
|
+
return i.addChangeListener(g), Ve(() => {
|
241
|
+
i.removeChangeListener(g);
|
242
|
+
}), {
|
243
|
+
/**
|
244
|
+
* Reactive get cookie by name. If **autoUpdateDependencies = true** then it will update watching dependencies
|
245
|
+
*/
|
246
|
+
get: (...d) => (a && c && !c.includes(d[0]) && c.push(d[0]), u.value, i.get(d[0], { doNotParse: e, ...d[1] })),
|
247
|
+
/**
|
248
|
+
* Reactive get all cookies
|
249
|
+
*/
|
250
|
+
getAll: (...d) => (u.value, i.getAll({ doNotParse: e, ...d[0] })),
|
251
|
+
set: (...d) => i.set(...d),
|
252
|
+
remove: (...d) => i.remove(...d),
|
253
|
+
addChangeListener: (...d) => i.addChangeListener(...d),
|
254
|
+
removeChangeListener: (...d) => i.removeChangeListener(...d)
|
255
|
+
};
|
256
|
+
}
|
257
|
+
function Pe(t, e, a) {
|
258
|
+
if (!t)
|
259
|
+
return !0;
|
260
|
+
for (const i of t)
|
261
|
+
if (e[i] !== a[i])
|
262
|
+
return !0;
|
263
|
+
return !1;
|
264
|
+
}
|
265
|
+
const de = P({
|
266
|
+
components: {
|
267
|
+
BTag: ke
|
268
|
+
},
|
269
|
+
methods: {
|
270
|
+
closeDialog() {
|
271
|
+
this.dialog = !1, this.apiKey = this.cookies.get("apiKey");
|
272
|
+
},
|
273
|
+
async isValidApiKey() {
|
274
|
+
if (!this.apiKey)
|
275
|
+
return !1;
|
276
|
+
const t = {
|
277
|
+
apiEnvironment: window.RevolugoElements.config.apiEnvironment,
|
278
|
+
apiKey: this.apiKey,
|
279
|
+
apiVersion: ve.V1,
|
280
|
+
optionalHeaders: window.RevolugoElements.config.optionalHeaders
|
281
|
+
}, e = new ge(t);
|
282
|
+
try {
|
283
|
+
return !!await e.hotels.retrieve({
|
284
|
+
id: "2yvb"
|
285
|
+
});
|
286
|
+
} catch (a) {
|
287
|
+
return console.error(a), !1;
|
288
|
+
}
|
289
|
+
},
|
290
|
+
async onSubmit() {
|
291
|
+
this.validate(), await this.updateApiKey(), this.apiKey && this.closeDialog();
|
292
|
+
},
|
293
|
+
async updateApiKey() {
|
294
|
+
try {
|
295
|
+
if (this.isLoading = !0, await this.isValidApiKey())
|
296
|
+
this.config.apiKey !== this.apiKey && this.updateConfig({
|
297
|
+
...this.config,
|
298
|
+
apiKey: this.apiKey
|
299
|
+
}), this.cookies.set("apiKey", this.apiKey, {
|
300
|
+
expires: new Date(Date.now() + 1e3 * 60 * 60 * 24 * 365)
|
301
|
+
});
|
302
|
+
else
|
303
|
+
throw new Error("Invalid API Key");
|
304
|
+
} catch {
|
305
|
+
console.error("Invalid API Key");
|
306
|
+
} finally {
|
307
|
+
this.isLoading = !1;
|
308
|
+
}
|
309
|
+
},
|
310
|
+
validate() {
|
311
|
+
this.$refs.apiKeyEditorForm.validate();
|
312
|
+
}
|
313
|
+
},
|
314
|
+
mixins: [
|
315
|
+
Le(["config.apiEnvironment"], "updateApiKey", {
|
316
|
+
deep: !0,
|
317
|
+
immediate: !0
|
318
|
+
}),
|
319
|
+
_e
|
320
|
+
],
|
321
|
+
name: "ApiKeyEditor",
|
322
|
+
setup() {
|
323
|
+
const t = le(["apiKey"]), { t: e } = X(), a = _(t.get("apiKey")), i = T(
|
324
|
+
() => window.RevolugoElements.config.apiEnvironment
|
325
|
+
), c = T(() => [
|
326
|
+
(d) => !!d || `A valid API Key is required. ${e("ApiKeyEditor.hint", {
|
327
|
+
environment: i.value
|
328
|
+
})}`
|
329
|
+
]), v = _(!1), u = _(!1), g = _(!1);
|
330
|
+
return {
|
331
|
+
apiKey: a,
|
332
|
+
apiKeyRules: c,
|
333
|
+
cookies: t,
|
334
|
+
dialog: v,
|
335
|
+
isFormValid: u,
|
336
|
+
isLoading: g,
|
337
|
+
t: e
|
338
|
+
};
|
339
|
+
}
|
340
|
+
// eslint-disable-next-line @typescript-eslint/no-empty-object-type, @typescript-eslint/no-explicit-any
|
341
|
+
});
|
342
|
+
function G(t) {
|
343
|
+
const e = t;
|
344
|
+
e.__i18n = e.__i18n || [], e.__i18n.push({
|
345
|
+
locale: "",
|
346
|
+
resource: {
|
347
|
+
"en-US": {
|
348
|
+
ApiKeyEditor: {
|
349
|
+
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" }] } },
|
350
|
+
invalid: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Provided API Key credential is not valid" } }
|
351
|
+
}
|
352
|
+
},
|
353
|
+
"fr-FR": {
|
354
|
+
ApiKeyEditor: {
|
355
|
+
hint: { t: 0, b: { t: 2, i: [{ t: 3, v: "Indiquez votre clé API Publishable pour l'environnement " }, { t: 4, k: "environment" }] } },
|
356
|
+
invalid: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "La clé API renseignée est invalide." } }
|
357
|
+
}
|
358
|
+
},
|
359
|
+
"de-DE": {
|
360
|
+
ApiKeyEditor: {
|
361
|
+
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" }] } },
|
362
|
+
invalid: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Der angegebene API-Schlüssel ist ungültig" } }
|
363
|
+
}
|
364
|
+
},
|
365
|
+
"es-ES": {
|
366
|
+
ApiKeyEditor: {
|
367
|
+
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" }] } },
|
368
|
+
invalid: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "La clave API proporcionada no es válida" } }
|
369
|
+
}
|
370
|
+
},
|
371
|
+
"it-IT": {
|
372
|
+
ApiKeyEditor: {
|
373
|
+
hint: { t: 0, b: { t: 2, i: [{ t: 3, v: "Inserisci la tua chiave API pubblica per l'ambiente " }, { t: 4, k: "environment" }] } },
|
374
|
+
invalid: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "La chiave API fornita non è valida" } }
|
375
|
+
}
|
376
|
+
},
|
377
|
+
"nl-NL": {
|
378
|
+
ApiKeyEditor: {
|
379
|
+
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" }] } },
|
380
|
+
invalid: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "De opgegeven API Key is ongeldig" } }
|
381
|
+
}
|
382
|
+
},
|
383
|
+
"pt-PT": {
|
384
|
+
ApiKeyEditor: {
|
385
|
+
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" }] } },
|
386
|
+
invalid: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "A credencial da chave API fornecida não é válida" } }
|
387
|
+
}
|
388
|
+
}
|
389
|
+
}
|
390
|
+
});
|
391
|
+
}
|
392
|
+
function Re(t, e, a, i, c, v) {
|
393
|
+
return w(), I("div", null, [
|
394
|
+
o(re, {
|
395
|
+
modelValue: t.dialog,
|
396
|
+
"onUpdate:modelValue": e[2] || (e[2] = (u) => t.dialog = u),
|
397
|
+
attach: t.$dialogAttach || void 0,
|
398
|
+
"max-width": "600px"
|
399
|
+
}, {
|
400
|
+
activator: r(({ props: u }) => [
|
401
|
+
o(k, Z(u, {
|
402
|
+
color: t.cookies.get("apiKey") ? "success" : "warning",
|
403
|
+
elevation: "0",
|
404
|
+
size: "x-small"
|
405
|
+
}), {
|
406
|
+
default: r(() => [
|
407
|
+
t.cookies.get("apiKey") ? (w(), I(B, { key: 1 }, [
|
408
|
+
o(q, { class: "mr-2" }, {
|
409
|
+
default: r(() => e[5] || (e[5] = [
|
410
|
+
S(" fas fa-check ", -1)
|
411
|
+
])),
|
412
|
+
_: 1,
|
413
|
+
__: [5]
|
414
|
+
}),
|
415
|
+
e[6] || (e[6] = S(" Valid API key ", -1))
|
416
|
+
], 64)) : (w(), I(B, { key: 0 }, [
|
417
|
+
o(q, { class: "mr-2" }, {
|
418
|
+
default: r(() => e[3] || (e[3] = [
|
419
|
+
S(" fas fa-exclamation ", -1)
|
420
|
+
])),
|
421
|
+
_: 1,
|
422
|
+
__: [3]
|
423
|
+
}),
|
424
|
+
e[4] || (e[4] = S(" No API key provided ", -1))
|
425
|
+
], 64))
|
426
|
+
]),
|
427
|
+
_: 2
|
428
|
+
}, 1040, ["color"])
|
429
|
+
]),
|
430
|
+
default: r(() => [
|
431
|
+
o(te, null, {
|
432
|
+
default: r(() => [
|
433
|
+
o(ie, { class: "pa-4" }, {
|
434
|
+
default: r(() => [
|
435
|
+
o(j, { class: "pa-0" }, {
|
436
|
+
default: r(() => [
|
437
|
+
o(M, { "no-gutters": "" }, {
|
438
|
+
default: r(() => [
|
439
|
+
o(ae, null, {
|
440
|
+
default: r(() => [
|
441
|
+
o(ne, {
|
442
|
+
ref: "apiKeyEditorForm",
|
443
|
+
modelValue: t.isFormValid,
|
444
|
+
"onUpdate:modelValue": e[1] || (e[1] = (u) => t.isFormValid = u),
|
445
|
+
class: "m-0",
|
446
|
+
onSubmit: Q(t.onSubmit, ["prevent"])
|
447
|
+
}, {
|
448
|
+
default: r(() => [
|
449
|
+
o($, {
|
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: D(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(oe, null, {
|
479
|
+
default: r(() => [
|
480
|
+
o(se),
|
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
|
+
__: [7]
|
492
|
+
}, 8, ["onClick"]),
|
493
|
+
o(k, {
|
494
|
+
class: "text-right",
|
495
|
+
color: "primary",
|
496
|
+
disabled: t.isLoading,
|
497
|
+
elevation: "0",
|
498
|
+
loading: t.isLoading,
|
499
|
+
size: "small",
|
500
|
+
onClick: t.onSubmit
|
501
|
+
}, {
|
502
|
+
default: r(() => e[8] || (e[8] = [
|
503
|
+
S(" Save ", -1)
|
504
|
+
])),
|
505
|
+
_: 1,
|
506
|
+
__: [8]
|
507
|
+
}, 8, ["disabled", "loading", "onClick"])
|
508
|
+
]),
|
509
|
+
_: 1
|
510
|
+
})
|
511
|
+
]),
|
512
|
+
_: 1
|
513
|
+
})
|
514
|
+
]),
|
515
|
+
_: 1
|
516
|
+
}, 8, ["modelValue", "attach"])
|
517
|
+
]);
|
518
|
+
}
|
519
|
+
typeof G == "function" && G(de);
|
520
|
+
const Ue = /* @__PURE__ */ N(de, [["render", Re]]), ue = /* @__PURE__ */ P({
|
521
|
+
__name: "EventMetadataEditor",
|
522
|
+
setup(t) {
|
523
|
+
const { config: e, updateConfig: a } = he(), i = le(["eventMetadata"]), { isFetching: c } = ye(Ae()), { t: v } = X(), u = _(null), { $dialogAttach: g } = Ce(u), d = [
|
524
|
+
(b) => {
|
525
|
+
if (!b)
|
526
|
+
return !0;
|
527
|
+
try {
|
528
|
+
return (
|
529
|
+
// eslint-disable-next-line no-constant-binary-expression
|
530
|
+
!!new URL(b) || v("EventMetadataEditor.validation.imageURL")
|
531
|
+
);
|
532
|
+
} catch {
|
533
|
+
return v("EventMetadataEditor.validation.imageURL");
|
534
|
+
}
|
535
|
+
}
|
536
|
+
], R = [
|
537
|
+
(b) => !!b || v("EventMetadataEditor.validation.name")
|
538
|
+
], m = _(
|
539
|
+
i.get("eventMetadata") || {
|
540
|
+
dateEnd: H().add(1, "day").format("YYYY-MM-DD").toString(),
|
541
|
+
dateStart: H().format("YYYY-MM-DD").toString(),
|
542
|
+
name: ""
|
543
|
+
}
|
544
|
+
), V = _(!1), s = _(!1), p = T({
|
545
|
+
get() {
|
546
|
+
return !m.value.dateStart || !m.value.dateEnd ? [] : Y(
|
547
|
+
m.value.dateStart,
|
548
|
+
m.value.dateEnd
|
549
|
+
);
|
550
|
+
},
|
551
|
+
set(b) {
|
552
|
+
[m.value.dateStart, m.value.dateEnd] = Y(...b);
|
553
|
+
}
|
554
|
+
});
|
555
|
+
function n() {
|
556
|
+
V.value = !1;
|
557
|
+
}
|
558
|
+
function h() {
|
559
|
+
return !(!m.value.name?.length || !p.value[0] || !p.value[1]);
|
560
|
+
}
|
561
|
+
function A() {
|
562
|
+
h() && (a({
|
563
|
+
...e.value,
|
564
|
+
eventMetadata: m.value
|
565
|
+
}), i.set("eventMetadata", JSON.stringify(m)), n());
|
566
|
+
}
|
567
|
+
function l() {
|
568
|
+
A(), n();
|
569
|
+
}
|
570
|
+
function E() {
|
571
|
+
i.remove("eventMetadata"), m.value = {}, a({
|
572
|
+
...e.value,
|
573
|
+
eventMetadata: {}
|
574
|
+
}), n();
|
575
|
+
}
|
576
|
+
return Ee(() => {
|
577
|
+
i.get("eventMetadata") && a({
|
578
|
+
...e.value,
|
579
|
+
eventMetadata: i.get("eventMetadata")
|
580
|
+
});
|
581
|
+
}), (b, f) => {
|
582
|
+
const K = O("BDateRangePicker");
|
583
|
+
return w(), I("div", {
|
584
|
+
ref_key: "root",
|
585
|
+
ref: u
|
586
|
+
}, [
|
587
|
+
o(re, {
|
588
|
+
modelValue: V.value,
|
589
|
+
"onUpdate:modelValue": f[4] || (f[4] = (y) => V.value = y),
|
590
|
+
attach: C(g),
|
591
|
+
height: "600px",
|
592
|
+
"max-width": "600px"
|
593
|
+
}, {
|
594
|
+
activator: r(({ props: y }) => [
|
595
|
+
o(k, Z(y, {
|
596
|
+
color: C(i).get("eventMetadata") ? "success" : "warning",
|
597
|
+
elevation: "0",
|
598
|
+
size: "x-small"
|
599
|
+
}), {
|
600
|
+
default: r(() => [
|
601
|
+
S(be(m.value?.name ? `EVENT : ${m.value?.name}` : "ADD EVENT METADATA"), 1)
|
602
|
+
]),
|
603
|
+
_: 2
|
604
|
+
}, 1040, ["color"])
|
605
|
+
]),
|
606
|
+
default: r(() => [
|
607
|
+
o(te, null, {
|
608
|
+
default: r(() => [
|
609
|
+
o(ie, { class: "pa-4" }, {
|
610
|
+
default: r(() => [
|
611
|
+
o(j, { class: "pa-0" }, {
|
612
|
+
default: r(() => [
|
613
|
+
o(M, { "no-gutters": "" }, {
|
614
|
+
default: r(() => [
|
615
|
+
o(ae, null, {
|
616
|
+
default: r(() => [
|
617
|
+
o(ne, {
|
618
|
+
ref: "eventMetadataEditorForm",
|
619
|
+
modelValue: s.value,
|
620
|
+
"onUpdate:modelValue": f[3] || (f[3] = (y) => s.value = y),
|
621
|
+
class: "m-0",
|
622
|
+
onSubmit: Q(l, ["prevent"])
|
623
|
+
}, {
|
624
|
+
default: r(() => [
|
625
|
+
o($, {
|
626
|
+
modelValue: m.value.name,
|
627
|
+
"onUpdate:modelValue": f[0] || (f[0] = (y) => m.value.name = y),
|
628
|
+
density: "compact",
|
629
|
+
label: "Name of the event",
|
630
|
+
variant: "outlined",
|
631
|
+
"persistent-hint": "",
|
632
|
+
required: "",
|
633
|
+
rules: R,
|
634
|
+
onKeyup: D(l, ["enter"])
|
635
|
+
}, null, 8, ["modelValue"]),
|
636
|
+
o($, {
|
637
|
+
modelValue: m.value.imageUrl,
|
638
|
+
"onUpdate:modelValue": f[1] || (f[1] = (y) => m.value.imageUrl = y),
|
639
|
+
density: "compact",
|
640
|
+
label: "Image URL",
|
641
|
+
variant: "outlined",
|
642
|
+
"persistent-hint": "",
|
643
|
+
rules: d,
|
644
|
+
onKeyup: D(l, ["enter"])
|
645
|
+
}, null, 8, ["modelValue"]),
|
646
|
+
o(M, null, {
|
647
|
+
default: r(() => [
|
648
|
+
o(K, {
|
649
|
+
modelValue: p.value,
|
650
|
+
"onUpdate:modelValue": f[2] || (f[2] = (y) => p.value = y)
|
651
|
+
}, null, 8, ["modelValue"])
|
652
|
+
]),
|
653
|
+
_: 1
|
654
|
+
})
|
655
|
+
]),
|
656
|
+
_: 1
|
657
|
+
}, 8, ["modelValue"])
|
658
|
+
]),
|
659
|
+
_: 1
|
660
|
+
})
|
661
|
+
]),
|
662
|
+
_: 1
|
663
|
+
})
|
664
|
+
]),
|
665
|
+
_: 1
|
666
|
+
})
|
667
|
+
]),
|
668
|
+
_: 1
|
669
|
+
}),
|
670
|
+
o(oe, null, {
|
671
|
+
default: r(() => [
|
672
|
+
o(se),
|
673
|
+
o(k, {
|
674
|
+
color: "grey",
|
675
|
+
size: "small",
|
676
|
+
variant: "text",
|
677
|
+
onClick: n
|
678
|
+
}, {
|
679
|
+
default: r(() => f[5] || (f[5] = [
|
680
|
+
S(" Close ", -1)
|
681
|
+
])),
|
682
|
+
_: 1,
|
683
|
+
__: [5]
|
684
|
+
}),
|
685
|
+
o(k, {
|
686
|
+
color: "error",
|
687
|
+
disabled: C(c),
|
688
|
+
loading: C(c),
|
689
|
+
size: "small",
|
690
|
+
variant: "text",
|
691
|
+
onClick: E
|
692
|
+
}, {
|
693
|
+
default: r(() => f[6] || (f[6] = [
|
694
|
+
S(" Reset ", -1)
|
695
|
+
])),
|
696
|
+
_: 1,
|
697
|
+
__: [6]
|
698
|
+
}, 8, ["disabled", "loading"]),
|
699
|
+
o(k, {
|
700
|
+
color: "success",
|
701
|
+
disabled: C(c),
|
702
|
+
loading: C(c),
|
703
|
+
size: "small",
|
704
|
+
variant: "flat",
|
705
|
+
onClick: l
|
706
|
+
}, {
|
707
|
+
default: r(() => f[7] || (f[7] = [
|
708
|
+
S(" Save ", -1)
|
709
|
+
])),
|
710
|
+
_: 1,
|
711
|
+
__: [7]
|
712
|
+
}, 8, ["disabled", "loading"])
|
713
|
+
]),
|
714
|
+
_: 1
|
715
|
+
})
|
716
|
+
]),
|
717
|
+
_: 1
|
718
|
+
})
|
719
|
+
]),
|
720
|
+
_: 1
|
721
|
+
}, 8, ["modelValue", "attach"])
|
722
|
+
], 512);
|
723
|
+
};
|
724
|
+
}
|
725
|
+
});
|
726
|
+
function J(t) {
|
727
|
+
const e = t;
|
728
|
+
e.__i18n = e.__i18n || [], e.__i18n.push({
|
729
|
+
locale: "",
|
730
|
+
resource: {
|
731
|
+
"en-US": {
|
732
|
+
EventMetadataEditor: {
|
733
|
+
validation: {
|
734
|
+
imageURL: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Please provide a valid URL" } },
|
735
|
+
name: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Please provide a name" } }
|
736
|
+
}
|
737
|
+
}
|
738
|
+
},
|
739
|
+
"fr-FR": {
|
740
|
+
EventMetadataEditor: {
|
741
|
+
validation: {
|
742
|
+
imageURL: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Veuillez fournir une URL valide d'image" } },
|
743
|
+
name: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Veuillez entrer le nom de l'événement" } }
|
744
|
+
}
|
745
|
+
}
|
746
|
+
},
|
747
|
+
"de-DE": {
|
748
|
+
EventMetadataEditor: {
|
749
|
+
validation: {
|
750
|
+
imageURL: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Bitte geben Sie eine gültige URL an" } },
|
751
|
+
name: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Bitte geben Sie einen Namen an" } }
|
752
|
+
}
|
753
|
+
}
|
754
|
+
},
|
755
|
+
"es-ES": {
|
756
|
+
EventMetadataEditor: {
|
757
|
+
validation: {
|
758
|
+
imageURL: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Por favor, introduce una URL válida" } },
|
759
|
+
name: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Por favor, introduce un nombre" } }
|
760
|
+
}
|
761
|
+
}
|
762
|
+
},
|
763
|
+
"it-IT": {
|
764
|
+
EventMetadataEditor: {
|
765
|
+
validation: {
|
766
|
+
imageURL: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Inserisci un URL valido" } },
|
767
|
+
name: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Inserisci un nome" } }
|
768
|
+
}
|
769
|
+
}
|
770
|
+
},
|
771
|
+
"nl-NL": {
|
772
|
+
EventMetadataEditor: {
|
773
|
+
validation: {
|
774
|
+
imageURL: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Geef een geldige URL op" } },
|
775
|
+
name: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Geef een naam op" } }
|
776
|
+
}
|
777
|
+
}
|
778
|
+
},
|
779
|
+
"pt-PT": {
|
780
|
+
EventMetadataEditor: {
|
781
|
+
validation: {
|
782
|
+
imageURL: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Por favor, introduza um URL válido" } },
|
783
|
+
name: { t: 0, b: { t: 2, i: [{ t: 3 }], s: "Por favor, introduza um nome" } }
|
784
|
+
}
|
785
|
+
}
|
786
|
+
}
|
787
|
+
}
|
788
|
+
});
|
789
|
+
}
|
790
|
+
typeof J == "function" && J(ue);
|
791
|
+
const Te = P({
|
792
|
+
components: {
|
793
|
+
ApiKeyEditor: Ue,
|
794
|
+
EventMetadataEditor: ue
|
795
|
+
},
|
796
|
+
name: "StorybookExtraToolbar"
|
797
|
+
// eslint-disable-next-line @typescript-eslint/no-empty-object-type, @typescript-eslint/no-explicit-any
|
798
|
+
}), De = { class: "flex gap-1 px-3" };
|
799
|
+
function $e(t, e, a, i, c, v) {
|
800
|
+
const u = O("ApiKeyEditor"), g = O("EventMetadataEditor");
|
801
|
+
return w(), ee(j, {
|
802
|
+
class: "pa-0 mb-3",
|
803
|
+
fluid: ""
|
804
|
+
}, {
|
805
|
+
default: r(() => [
|
806
|
+
o(M, { "no-gutters": "" }, {
|
807
|
+
default: r(() => [
|
808
|
+
Se("div", De, [
|
809
|
+
o(u),
|
810
|
+
o(g)
|
811
|
+
])
|
812
|
+
]),
|
813
|
+
_: 1
|
814
|
+
})
|
815
|
+
]),
|
816
|
+
_: 1
|
817
|
+
});
|
818
|
+
}
|
819
|
+
const Ne = /* @__PURE__ */ N(Te, [["render", $e]]), je = P({
|
820
|
+
components: {
|
821
|
+
StorybookExtraToolbar: Ne,
|
822
|
+
WebComponentWrapper: we
|
823
|
+
}
|
824
|
+
});
|
825
|
+
function ze(t, e, a, i, c, v) {
|
826
|
+
const u = O("StorybookExtraToolbar"), g = O("WebComponentWrapper");
|
827
|
+
return w(), ee(g, { "error-overlay-disabled": "" }, {
|
828
|
+
default: r(() => [
|
829
|
+
o(u)
|
830
|
+
]),
|
831
|
+
_: 1
|
832
|
+
});
|
833
|
+
}
|
834
|
+
const qe = /* @__PURE__ */ N(je, [["render", ze]]);
|
835
|
+
me("css/revolugo.storybooktoolbar.d_cxquq9.css");
|
836
|
+
export {
|
837
|
+
qe as default
|
838
|
+
};
|
839
|
+
//# sourceMappingURL=revolugo.storybooktoolbar.Jn8CsV1b.min.js.map
|