@revolugo/elements 6.9.1-beta.0 → 6.9.1-beta.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/css/revolugo.cancellationpoliciesbadge.DvipOlva.css +1 -0
- package/dist/css/revolugo.creditcardstripeform.zWRVQ06X.css +1 -0
- package/dist/css/revolugo.preferencesmenu.D2263Vn6.css +1 -0
- package/dist/css/{revolugo.preferencesmenu.7UfG9ius.css → revolugo.vtoolbar.BZert82L.css} +1 -1
- package/dist/css/{revolugo.webcomponentwrapper.C3K3E5wv.css → revolugo.webcomponentwrapper.BQSUxe3K.css} +1 -1
- package/dist/index.es.min.js +422 -423
- package/dist/index.es.min.js.map +1 -1
- package/dist/index.min.js +5 -5
- package/dist/index.min.js.map +1 -1
- package/dist/revolugo.banktransferdetails.D1iR-F5R.min.js +38 -0
- package/dist/{revolugo.bookingdetailssidebar.cluL06at.min.js → revolugo.bookingdetailssidebar.sSnL-vcO.min.js} +8 -7
- package/dist/revolugo.bookingmanager.rHBfJMnI.min.js +26 -0
- package/dist/revolugo.cancellationpoliciesbadge.CrCcYabk.min.js +26 -0
- package/dist/{revolugo.cancellationpoliciesbadge.props.BzZm3aB9.min.js → revolugo.cancellationpoliciesbadge.props.Bxl-d5XT.min.js} +11697 -13845
- package/dist/revolugo.cancellationpolicieslist.CNJzXSR4.min.js +26 -0
- package/dist/{revolugo.creditcardpayment.B60xJsLL.min.js → revolugo.creditcardpayment.Dfv8UAgb.min.js} +8 -7
- package/dist/revolugo.creditcardstripeform.CxRLrubA.min.js +2152 -0
- package/dist/revolugo.creditcardstripeform.D4kKydEW.min.js +44 -0
- package/dist/revolugo.currencypickerbtn.BmcBc0IC.min.js +26 -0
- package/dist/revolugo.dialog-attach.Cr0OUlw6.min.js +27 -0
- package/dist/{revolugo.fastbookingflow.CqYnDU9L.min.js → revolugo.fastbookingflow.Bdz4pa0T.min.js} +11 -10
- package/dist/revolugo.fullbookingflow.ohac6tUx.min.js +26 -0
- package/dist/revolugo.hoteldescriptionview.B_nGmoZs.min.js +26 -0
- package/dist/revolugo.hotelofferlist.B6apIX81.min.js +26 -0
- package/dist/{revolugo.hoteloffersearchmenu.CpLjZ82D.min.js → revolugo.hoteloffersearchmenu.AZRBLP4G.min.js} +11 -10
- package/dist/revolugo.hoteloffersmap.i1WtPlNI.min.js +26 -0
- package/dist/revolugo.hoteloffersview.G7XP8Bzo.min.js +21 -0
- package/dist/{revolugo.hotelroomofferlist.CfP85DfR.min.js → revolugo.hotelroomofferlist.DWQr0d76.min.js} +8 -7
- package/dist/revolugo.hotelroomoffersbookingflow.Cvsrp6id.min.js +26 -0
- package/dist/revolugo.hotelroomoffersearchmenu.BbTRwC7x.min.js +26 -0
- package/dist/{revolugo.hotelroomoffersview.ViCNFb0T.min.js → revolugo.hotelroomoffersview.qYiGz4kX.min.js} +8 -7
- package/dist/{revolugo.index.CpH_RNjS.min.js → revolugo.index.Dysug6o7.min.js} +2 -2
- package/dist/{revolugo.index.wc.DuPB3gwB.min.js → revolugo.index.wc.BHJYhPnI.min.js} +1142 -1144
- package/dist/{revolugo.langpickerbtn.DieF3DBF.min.js → revolugo.langpickerbtn.DKDu0J7l.min.js} +8 -7
- package/dist/revolugo.min.js +1 -1
- package/dist/revolugo.prebookform.cP3ZXhvp.min.js +26 -0
- package/dist/{revolugo.preferencesmenu.BxFixX46.min.js → revolugo.preferencesmenu.C5eh5ZdC.min.js} +4 -4
- package/dist/{revolugo.preferencesmenu.BjKg1-Wm.min.js → revolugo.preferencesmenu.DU7_qN7M.min.js} +265 -414
- package/dist/{revolugo.roominglisteditor.CAVBmDjU.min.js → revolugo.roominglisteditor.C7zNx4E4.min.js} +8 -7
- package/dist/{revolugo.storybooktoolbar.Jn8CsV1b.min.js → revolugo.storybooktoolbar.Dt6W2K50.min.js} +252 -254
- package/dist/{revolugo.termsandconditions.iMzLEEgE.min.js → revolugo.termsandconditions.Bg0vIbzv.min.js} +8 -7
- package/dist/revolugo.vtoolbar.pnUblJ0B.min.js +178 -0
- package/dist/{revolugo.webcomponentwrapper.C4AURctg.min.js → revolugo.webcomponentwrapper.C5rCsvgP.min.js} +3340 -3324
- package/package.json +1 -1
- package/dist/css/revolugo.cancellationpoliciesbadge.BCmMv5CR.css +0 -1
- package/dist/revolugo.banktransferdetails.CnMNY-vM.min.js +0 -37
- package/dist/revolugo.bookingmanager.BI9tgv3k.min.js +0 -25
- package/dist/revolugo.cancellationpoliciesbadge.1AYTHxud.min.js +0 -25
- package/dist/revolugo.cancellationpolicieslist.CNVuYPJC.min.js +0 -25
- package/dist/revolugo.creditcardform.CBJnfym8.min.js +0 -25
- package/dist/revolugo.currencypickerbtn.lDiTXXJ-.min.js +0 -25
- package/dist/revolugo.fullbookingflow.BP8qSHgZ.min.js +0 -25
- package/dist/revolugo.hoteldescriptionview.DQ9tuFqp.min.js +0 -25
- package/dist/revolugo.hotelofferlist.DAbFLxgC.min.js +0 -25
- package/dist/revolugo.hoteloffersmap.pwDQ8BlF.min.js +0 -25
- package/dist/revolugo.hoteloffersview.BqMLmokf.min.js +0 -20
- package/dist/revolugo.hotelroomoffersbookingflow.ZegZEQXf.min.js +0 -25
- package/dist/revolugo.hotelroomoffersearchmenu.Bl_kCJ7s.min.js +0 -25
- package/dist/revolugo.prebookform.CEyz9Sgq.min.js +0 -25
package/dist/{revolugo.storybooktoolbar.Jn8CsV1b.min.js → revolugo.storybooktoolbar.Dt6W2K50.min.js}
RENAMED
@@ -1,6 +1,7 @@
|
|
1
|
-
import { s as pe, d as
|
2
|
-
import {
|
3
|
-
import {
|
1
|
+
import { s as pe, d as M, h as J, i as _, b as R, A as ve, X as ge, j as O, a as o, w as r, k as X, l as T, p as S, m as Q, F, o as w, q as he, t as ye, v as H, x as Ee, u as C, y as be, c as Z, z as Se, r as I } from "./revolugo.index.wc.BHJYhPnI.min.js";
|
2
|
+
import { B as _e, _ 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 A, k as q, l as se, u as Ae, m as ke, n as Ce, W as we } from "./revolugo.webcomponentwrapper.C5rCsvgP.min.js";
|
3
|
+
import { d as Ve } from "./revolugo.dialog-attach.Cr0OUlw6.min.js";
|
4
|
+
import { t as Le, w as Oe, s as B } from "./revolugo.index.Dysug6o7.min.js";
|
4
5
|
function me(t) {
|
5
6
|
try {
|
6
7
|
if (typeof document < "u") {
|
@@ -21,64 +22,64 @@ function me(t) {
|
|
21
22
|
console.error("[revolugo-elements] ", e);
|
22
23
|
}
|
23
24
|
}
|
24
|
-
var L = {},
|
25
|
-
function
|
26
|
-
if (
|
27
|
-
|
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,
|
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__ */ (() => {
|
29
30
|
const s = function() {
|
30
31
|
};
|
31
32
|
return s.prototype = /* @__PURE__ */ Object.create(null), s;
|
32
33
|
})();
|
33
34
|
function u(s, p) {
|
34
|
-
const n = new
|
35
|
-
if (
|
35
|
+
const n = new g(), y = s.length;
|
36
|
+
if (y < 2)
|
36
37
|
return n;
|
37
|
-
const
|
38
|
+
const k = p?.decode || m;
|
38
39
|
let l = 0;
|
39
40
|
do {
|
40
41
|
const E = s.indexOf("=", l);
|
41
42
|
if (E === -1)
|
42
43
|
break;
|
43
|
-
const b = s.indexOf(";", l), f = b === -1 ?
|
44
|
+
const b = s.indexOf(";", l), f = b === -1 ? y : b;
|
44
45
|
if (E > f) {
|
45
46
|
l = s.lastIndexOf(";", E - 1) + 1;
|
46
47
|
continue;
|
47
48
|
}
|
48
|
-
const
|
49
|
-
if (n[
|
50
|
-
let
|
51
|
-
const fe =
|
52
|
-
n[
|
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 = k(s.slice(z, ce));
|
53
|
+
n[j] = fe;
|
53
54
|
}
|
54
55
|
l = f + 1;
|
55
|
-
} while (l <
|
56
|
+
} while (l < y);
|
56
57
|
return n;
|
57
58
|
}
|
58
|
-
function
|
59
|
+
function h(s, p, n) {
|
59
60
|
do {
|
60
|
-
const
|
61
|
-
if (
|
61
|
+
const y = s.charCodeAt(p);
|
62
|
+
if (y !== 32 && y !== 9)
|
62
63
|
return p;
|
63
64
|
} while (++p < n);
|
64
65
|
return n;
|
65
66
|
}
|
66
67
|
function d(s, p, n) {
|
67
68
|
for (; p > n; ) {
|
68
|
-
const
|
69
|
-
if (
|
69
|
+
const y = s.charCodeAt(--p);
|
70
|
+
if (y !== 32 && y !== 9)
|
70
71
|
return p + 1;
|
71
72
|
}
|
72
73
|
return n;
|
73
74
|
}
|
74
|
-
function
|
75
|
-
const
|
75
|
+
function P(s, p, n) {
|
76
|
+
const y = n?.encode || encodeURIComponent;
|
76
77
|
if (!t.test(s))
|
77
78
|
throw new TypeError(`argument name is invalid: ${s}`);
|
78
|
-
const
|
79
|
-
if (!e.test(
|
79
|
+
const k = y(p);
|
80
|
+
if (!e.test(k))
|
80
81
|
throw new TypeError(`argument val is invalid: ${p}`);
|
81
|
-
let l = s + "=" +
|
82
|
+
let l = s + "=" + k;
|
82
83
|
if (!n)
|
83
84
|
return l;
|
84
85
|
if (n.maxAge !== void 0) {
|
@@ -146,16 +147,16 @@ function Oe() {
|
|
146
147
|
}
|
147
148
|
return L;
|
148
149
|
}
|
149
|
-
var
|
150
|
-
function
|
150
|
+
var K = Ke();
|
151
|
+
function Ie() {
|
151
152
|
const t = typeof global > "u" ? void 0 : global.TEST_HAS_DOCUMENT_COOKIE;
|
152
153
|
return typeof t == "boolean" ? t : typeof document == "object" && typeof document.cookie == "string";
|
153
154
|
}
|
154
|
-
function
|
155
|
-
return typeof t == "string" ?
|
155
|
+
function xe(t) {
|
156
|
+
return typeof t == "string" ? K.parse(t) : typeof t == "object" && t !== null ? t : {};
|
156
157
|
}
|
157
158
|
function U(t, e = {}) {
|
158
|
-
const a =
|
159
|
+
const a = Me(t);
|
159
160
|
if (!e.doNotParse)
|
160
161
|
try {
|
161
162
|
return JSON.parse(a);
|
@@ -163,19 +164,19 @@ function U(t, e = {}) {
|
|
163
164
|
}
|
164
165
|
return t;
|
165
166
|
}
|
166
|
-
function
|
167
|
+
function Me(t) {
|
167
168
|
return t && t[0] === "j" && t[1] === ":" ? t.substr(2) : t;
|
168
169
|
}
|
169
|
-
class
|
170
|
+
class Pe {
|
170
171
|
constructor(e, a = {}) {
|
171
172
|
this.changeListeners = [], this.HAS_DOCUMENT_COOKIE = !1, this.update = () => {
|
172
173
|
if (!this.HAS_DOCUMENT_COOKIE)
|
173
174
|
return;
|
174
175
|
const c = this.cookies;
|
175
|
-
this.cookies =
|
176
|
+
this.cookies = K.parse(document.cookie), this._checkChanges(c);
|
176
177
|
};
|
177
178
|
const i = typeof document > "u" ? "" : document.cookie;
|
178
|
-
this.cookies =
|
179
|
+
this.cookies = xe(e || i), this.defaultSetOptions = a, this.HAS_DOCUMENT_COOKIE = Ie();
|
179
180
|
}
|
180
181
|
_emitChange(e) {
|
181
182
|
for (let a = 0; a < this.changeListeners.length; ++a)
|
@@ -208,11 +209,11 @@ class Me {
|
|
208
209
|
set(e, a, i) {
|
209
210
|
i ? i = Object.assign(Object.assign({}, this.defaultSetOptions), i) : i = this.defaultSetOptions;
|
210
211
|
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 =
|
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 });
|
212
213
|
}
|
213
214
|
remove(e, a) {
|
214
215
|
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 =
|
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 });
|
216
217
|
}
|
217
218
|
addChangeListener(e) {
|
218
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());
|
@@ -226,19 +227,19 @@ class Me {
|
|
226
227
|
this.removeChangeListener(this.changeListeners[0]);
|
227
228
|
}
|
228
229
|
}
|
229
|
-
function
|
230
|
+
function re(t, { doNotParse: e = !1, autoUpdateDependencies: a = !1 } = {}, i = new Pe()) {
|
230
231
|
const c = a ? [...t || []] : t;
|
231
|
-
let
|
232
|
-
const u = pe(0),
|
232
|
+
let g = i.getAll({ doNotParse: !0 });
|
233
|
+
const u = pe(0), h = () => {
|
233
234
|
const d = i.getAll({ doNotParse: !0 });
|
234
|
-
|
235
|
+
Ue(
|
235
236
|
c || null,
|
236
237
|
d,
|
237
|
-
|
238
|
-
) && u.value++,
|
238
|
+
g
|
239
|
+
) && u.value++, g = d;
|
239
240
|
};
|
240
|
-
return i.addChangeListener(
|
241
|
-
i.removeChangeListener(
|
241
|
+
return i.addChangeListener(h), Le(() => {
|
242
|
+
i.removeChangeListener(h);
|
242
243
|
}), {
|
243
244
|
/**
|
244
245
|
* Reactive get cookie by name. If **autoUpdateDependencies = true** then it will update watching dependencies
|
@@ -254,7 +255,7 @@ function le(t, { doNotParse: e = !1, autoUpdateDependencies: a = !1 } = {}, i =
|
|
254
255
|
removeChangeListener: (...d) => i.removeChangeListener(...d)
|
255
256
|
};
|
256
257
|
}
|
257
|
-
function
|
258
|
+
function Ue(t, e, a) {
|
258
259
|
if (!t)
|
259
260
|
return !0;
|
260
261
|
for (const i of t)
|
@@ -262,9 +263,9 @@ function Pe(t, e, a) {
|
|
262
263
|
return !0;
|
263
264
|
return !1;
|
264
265
|
}
|
265
|
-
const
|
266
|
+
const le = M({
|
266
267
|
components: {
|
267
|
-
BTag:
|
268
|
+
BTag: _e
|
268
269
|
},
|
269
270
|
methods: {
|
270
271
|
closeDialog() {
|
@@ -312,34 +313,34 @@ const de = P({
|
|
312
313
|
}
|
313
314
|
},
|
314
315
|
mixins: [
|
315
|
-
|
316
|
+
Oe(["config.apiEnvironment"], "updateApiKey", {
|
316
317
|
deep: !0,
|
317
318
|
immediate: !0
|
318
319
|
}),
|
319
|
-
|
320
|
+
Ve
|
320
321
|
],
|
321
322
|
name: "ApiKeyEditor",
|
322
323
|
setup() {
|
323
|
-
const t =
|
324
|
+
const t = re(["apiKey"]), { t: e } = J(), a = _(t.get("apiKey")), i = R(
|
324
325
|
() => window.RevolugoElements.config.apiEnvironment
|
325
|
-
), c =
|
326
|
+
), c = R(() => [
|
326
327
|
(d) => !!d || `A valid API Key is required. ${e("ApiKeyEditor.hint", {
|
327
328
|
environment: i.value
|
328
329
|
})}`
|
329
|
-
]),
|
330
|
+
]), g = _(!1), u = _(!1), h = _(!1);
|
330
331
|
return {
|
331
332
|
apiKey: a,
|
332
333
|
apiKeyRules: c,
|
333
334
|
cookies: t,
|
334
|
-
dialog:
|
335
|
+
dialog: g,
|
335
336
|
isFormValid: u,
|
336
|
-
isLoading:
|
337
|
+
isLoading: h,
|
337
338
|
t: e
|
338
339
|
};
|
339
340
|
}
|
340
341
|
// eslint-disable-next-line @typescript-eslint/no-empty-object-type, @typescript-eslint/no-explicit-any
|
341
342
|
});
|
342
|
-
function
|
343
|
+
function W(t) {
|
343
344
|
const e = t;
|
344
345
|
e.__i18n = e.__i18n || [], e.__i18n.push({
|
345
346
|
locale: "",
|
@@ -389,22 +390,22 @@ function G(t) {
|
|
389
390
|
}
|
390
391
|
});
|
391
392
|
}
|
392
|
-
function Re(t, e, a, i, c,
|
393
|
-
return w(),
|
394
|
-
o(
|
393
|
+
function Re(t, e, a, i, c, g) {
|
394
|
+
return w(), O("div", null, [
|
395
|
+
o(se, {
|
395
396
|
modelValue: t.dialog,
|
396
397
|
"onUpdate:modelValue": e[2] || (e[2] = (u) => t.dialog = u),
|
397
398
|
attach: t.$dialogAttach || void 0,
|
398
399
|
"max-width": "600px"
|
399
400
|
}, {
|
400
401
|
activator: r(({ props: u }) => [
|
401
|
-
o(
|
402
|
+
o(A, Q(u, {
|
402
403
|
color: t.cookies.get("apiKey") ? "success" : "warning",
|
403
404
|
elevation: "0",
|
404
405
|
size: "x-small"
|
405
406
|
}), {
|
406
407
|
default: r(() => [
|
407
|
-
t.cookies.get("apiKey") ? (w(),
|
408
|
+
t.cookies.get("apiKey") ? (w(), O(F, { key: 1 }, [
|
408
409
|
o(q, { class: "mr-2" }, {
|
409
410
|
default: r(() => e[5] || (e[5] = [
|
410
411
|
S(" fas fa-check ", -1)
|
@@ -413,7 +414,7 @@ function Re(t, e, a, i, c, v) {
|
|
413
414
|
__: [5]
|
414
415
|
}),
|
415
416
|
e[6] || (e[6] = S(" Valid API key ", -1))
|
416
|
-
], 64)) : (w(),
|
417
|
+
], 64)) : (w(), O(F, { key: 0 }, [
|
417
418
|
o(q, { class: "mr-2" }, {
|
418
419
|
default: r(() => e[3] || (e[3] = [
|
419
420
|
S(" fas fa-exclamation ", -1)
|
@@ -428,25 +429,25 @@ function Re(t, e, a, i, c, v) {
|
|
428
429
|
}, 1040, ["color"])
|
429
430
|
]),
|
430
431
|
default: r(() => [
|
431
|
-
o(
|
432
|
+
o(ee, null, {
|
432
433
|
default: r(() => [
|
433
|
-
o(
|
434
|
+
o(te, { class: "pa-4" }, {
|
434
435
|
default: r(() => [
|
435
|
-
o(
|
436
|
+
o(N, { class: "pa-0" }, {
|
436
437
|
default: r(() => [
|
437
|
-
o(
|
438
|
+
o(x, { "no-gutters": "" }, {
|
438
439
|
default: r(() => [
|
439
|
-
o(
|
440
|
+
o(ie, null, {
|
440
441
|
default: r(() => [
|
441
|
-
o(
|
442
|
+
o(ae, {
|
442
443
|
ref: "apiKeyEditorForm",
|
443
444
|
modelValue: t.isFormValid,
|
444
445
|
"onUpdate:modelValue": e[1] || (e[1] = (u) => t.isFormValid = u),
|
445
446
|
class: "m-0",
|
446
|
-
onSubmit:
|
447
|
+
onSubmit: X(t.onSubmit, ["prevent"])
|
447
448
|
}, {
|
448
449
|
default: r(() => [
|
449
|
-
o(
|
450
|
+
o(D, {
|
450
451
|
modelValue: t.apiKey,
|
451
452
|
"onUpdate:modelValue": e[0] || (e[0] = (u) => t.apiKey = u),
|
452
453
|
density: "compact",
|
@@ -458,7 +459,7 @@ function Re(t, e, a, i, c, v) {
|
|
458
459
|
"persistent-hint": "",
|
459
460
|
required: "",
|
460
461
|
rules: t.apiKeyRules,
|
461
|
-
onKeyup:
|
462
|
+
onKeyup: T(t.onSubmit, ["enter"])
|
462
463
|
}, null, 8, ["modelValue", "hint", "rules", "onKeyup"])
|
463
464
|
]),
|
464
465
|
_: 1
|
@@ -475,10 +476,10 @@ function Re(t, e, a, i, c, v) {
|
|
475
476
|
]),
|
476
477
|
_: 1
|
477
478
|
}),
|
478
|
-
o(
|
479
|
+
o(ne, null, {
|
479
480
|
default: r(() => [
|
480
|
-
o(
|
481
|
-
o(
|
481
|
+
o(oe),
|
482
|
+
o(A, {
|
482
483
|
color: "blue-darken-1",
|
483
484
|
size: "small",
|
484
485
|
variant: "text",
|
@@ -490,7 +491,7 @@ function Re(t, e, a, i, c, v) {
|
|
490
491
|
_: 1,
|
491
492
|
__: [7]
|
492
493
|
}, 8, ["onClick"]),
|
493
|
-
o(
|
494
|
+
o(A, {
|
494
495
|
class: "text-right",
|
495
496
|
color: "primary",
|
496
497
|
disabled: t.isLoading,
|
@@ -516,56 +517,56 @@ function Re(t, e, a, i, c, v) {
|
|
516
517
|
}, 8, ["modelValue", "attach"])
|
517
518
|
]);
|
518
519
|
}
|
519
|
-
typeof
|
520
|
-
const
|
520
|
+
typeof W == "function" && W(le);
|
521
|
+
const Te = /* @__PURE__ */ $(le, [["render", Re]]), de = /* @__PURE__ */ M({
|
521
522
|
__name: "EventMetadataEditor",
|
522
523
|
setup(t) {
|
523
|
-
const { config: e, updateConfig: a } = he(), i =
|
524
|
+
const { config: e, updateConfig: a } = he(), i = re(["eventMetadata"]), { isFetching: c } = ye(Ae()), { t: g } = J(), u = _(null), { $dialogAttach: h } = ke(u), d = [
|
524
525
|
(b) => {
|
525
526
|
if (!b)
|
526
527
|
return !0;
|
527
528
|
try {
|
528
529
|
return (
|
529
530
|
// eslint-disable-next-line no-constant-binary-expression
|
530
|
-
!!new URL(b) ||
|
531
|
+
!!new URL(b) || g("EventMetadataEditor.validation.imageURL")
|
531
532
|
);
|
532
533
|
} catch {
|
533
|
-
return
|
534
|
+
return g("EventMetadataEditor.validation.imageURL");
|
534
535
|
}
|
535
536
|
}
|
536
|
-
],
|
537
|
-
(b) => !!b ||
|
537
|
+
], P = [
|
538
|
+
(b) => !!b || g("EventMetadataEditor.validation.name")
|
538
539
|
], m = _(
|
539
540
|
i.get("eventMetadata") || {
|
540
541
|
dateEnd: H().add(1, "day").format("YYYY-MM-DD").toString(),
|
541
542
|
dateStart: H().format("YYYY-MM-DD").toString(),
|
542
543
|
name: ""
|
543
544
|
}
|
544
|
-
), V = _(!1), s = _(!1), p =
|
545
|
+
), V = _(!1), s = _(!1), p = R({
|
545
546
|
get() {
|
546
|
-
return !m.value.dateStart || !m.value.dateEnd ? [] :
|
547
|
+
return !m.value.dateStart || !m.value.dateEnd ? [] : B(
|
547
548
|
m.value.dateStart,
|
548
549
|
m.value.dateEnd
|
549
550
|
);
|
550
551
|
},
|
551
552
|
set(b) {
|
552
|
-
[m.value.dateStart, m.value.dateEnd] =
|
553
|
+
[m.value.dateStart, m.value.dateEnd] = B(...b);
|
553
554
|
}
|
554
555
|
});
|
555
556
|
function n() {
|
556
557
|
V.value = !1;
|
557
558
|
}
|
558
|
-
function
|
559
|
+
function y() {
|
559
560
|
return !(!m.value.name?.length || !p.value[0] || !p.value[1]);
|
560
561
|
}
|
561
|
-
function
|
562
|
-
|
562
|
+
function k() {
|
563
|
+
y() && (a({
|
563
564
|
...e.value,
|
564
565
|
eventMetadata: m.value
|
565
566
|
}), i.set("eventMetadata", JSON.stringify(m)), n());
|
566
567
|
}
|
567
568
|
function l() {
|
568
|
-
|
569
|
+
k(), n();
|
569
570
|
}
|
570
571
|
function E() {
|
571
572
|
i.remove("eventMetadata"), m.value = {}, a({
|
@@ -578,152 +579,149 @@ const Ue = /* @__PURE__ */ N(de, [["render", Re]]), ue = /* @__PURE__ */ P({
|
|
578
579
|
...e.value,
|
579
580
|
eventMetadata: i.get("eventMetadata")
|
580
581
|
});
|
581
|
-
}), (b, f) => {
|
582
|
-
|
583
|
-
|
584
|
-
|
585
|
-
|
586
|
-
|
587
|
-
|
588
|
-
|
589
|
-
|
590
|
-
|
591
|
-
|
592
|
-
|
593
|
-
|
594
|
-
|
595
|
-
|
596
|
-
|
597
|
-
|
598
|
-
|
599
|
-
|
600
|
-
|
601
|
-
|
602
|
-
|
603
|
-
|
604
|
-
|
605
|
-
|
606
|
-
|
607
|
-
|
608
|
-
|
609
|
-
|
610
|
-
|
611
|
-
|
612
|
-
|
613
|
-
|
614
|
-
|
615
|
-
|
616
|
-
|
617
|
-
|
618
|
-
|
619
|
-
|
620
|
-
|
621
|
-
|
622
|
-
|
623
|
-
|
624
|
-
|
625
|
-
|
626
|
-
|
627
|
-
|
628
|
-
|
629
|
-
|
630
|
-
|
631
|
-
|
632
|
-
|
633
|
-
|
634
|
-
|
635
|
-
|
636
|
-
|
637
|
-
|
638
|
-
|
639
|
-
|
640
|
-
|
641
|
-
|
642
|
-
|
643
|
-
|
644
|
-
|
645
|
-
|
646
|
-
|
647
|
-
|
648
|
-
|
649
|
-
|
650
|
-
|
651
|
-
|
652
|
-
|
653
|
-
|
654
|
-
|
655
|
-
|
656
|
-
|
657
|
-
|
658
|
-
|
659
|
-
|
660
|
-
|
661
|
-
|
662
|
-
|
663
|
-
|
664
|
-
|
665
|
-
|
666
|
-
|
667
|
-
|
668
|
-
|
669
|
-
|
670
|
-
|
671
|
-
|
672
|
-
|
673
|
-
|
674
|
-
|
675
|
-
|
676
|
-
|
677
|
-
|
678
|
-
|
679
|
-
|
680
|
-
|
681
|
-
|
682
|
-
|
683
|
-
|
684
|
-
|
685
|
-
|
686
|
-
|
687
|
-
|
688
|
-
|
689
|
-
|
690
|
-
|
691
|
-
|
692
|
-
|
693
|
-
|
694
|
-
|
695
|
-
|
696
|
-
|
697
|
-
|
698
|
-
|
699
|
-
|
700
|
-
|
701
|
-
|
702
|
-
|
703
|
-
|
704
|
-
|
705
|
-
|
706
|
-
|
707
|
-
|
708
|
-
|
709
|
-
|
710
|
-
|
711
|
-
|
712
|
-
|
713
|
-
|
714
|
-
|
715
|
-
|
716
|
-
|
717
|
-
|
718
|
-
|
719
|
-
|
720
|
-
|
721
|
-
}, 8, ["modelValue", "attach"])
|
722
|
-
], 512);
|
723
|
-
};
|
582
|
+
}), (b, f) => (w(), O("div", {
|
583
|
+
ref_key: "root",
|
584
|
+
ref: u
|
585
|
+
}, [
|
586
|
+
o(se, {
|
587
|
+
modelValue: V.value,
|
588
|
+
"onUpdate:modelValue": f[4] || (f[4] = (v) => V.value = v),
|
589
|
+
attach: C(h),
|
590
|
+
height: "600px",
|
591
|
+
"max-width": "600px"
|
592
|
+
}, {
|
593
|
+
activator: r(({ props: v }) => [
|
594
|
+
o(A, Q(v, {
|
595
|
+
color: C(i).get("eventMetadata") ? "success" : "warning",
|
596
|
+
elevation: "0",
|
597
|
+
size: "x-small"
|
598
|
+
}), {
|
599
|
+
default: r(() => [
|
600
|
+
S(be(m.value?.name ? `EVENT : ${m.value?.name}` : "ADD EVENT METADATA"), 1)
|
601
|
+
]),
|
602
|
+
_: 2
|
603
|
+
}, 1040, ["color"])
|
604
|
+
]),
|
605
|
+
default: r(() => [
|
606
|
+
o(ee, null, {
|
607
|
+
default: r(() => [
|
608
|
+
o(te, { class: "pa-4" }, {
|
609
|
+
default: r(() => [
|
610
|
+
o(N, { class: "pa-0" }, {
|
611
|
+
default: r(() => [
|
612
|
+
o(x, { "no-gutters": "" }, {
|
613
|
+
default: r(() => [
|
614
|
+
o(ie, null, {
|
615
|
+
default: r(() => [
|
616
|
+
o(ae, {
|
617
|
+
ref: "eventMetadataEditorForm",
|
618
|
+
modelValue: s.value,
|
619
|
+
"onUpdate:modelValue": f[3] || (f[3] = (v) => s.value = v),
|
620
|
+
class: "m-0",
|
621
|
+
onSubmit: X(l, ["prevent"])
|
622
|
+
}, {
|
623
|
+
default: r(() => [
|
624
|
+
o(D, {
|
625
|
+
modelValue: m.value.name,
|
626
|
+
"onUpdate:modelValue": f[0] || (f[0] = (v) => m.value.name = v),
|
627
|
+
density: "compact",
|
628
|
+
label: "Name of the event",
|
629
|
+
variant: "outlined",
|
630
|
+
"persistent-hint": "",
|
631
|
+
required: "",
|
632
|
+
rules: P,
|
633
|
+
onKeyup: T(l, ["enter"])
|
634
|
+
}, null, 8, ["modelValue"]),
|
635
|
+
o(D, {
|
636
|
+
modelValue: m.value.imageUrl,
|
637
|
+
"onUpdate:modelValue": f[1] || (f[1] = (v) => m.value.imageUrl = v),
|
638
|
+
density: "compact",
|
639
|
+
label: "Image URL",
|
640
|
+
variant: "outlined",
|
641
|
+
"persistent-hint": "",
|
642
|
+
rules: d,
|
643
|
+
onKeyup: T(l, ["enter"])
|
644
|
+
}, null, 8, ["modelValue"]),
|
645
|
+
o(x, null, {
|
646
|
+
default: r(() => [
|
647
|
+
o(Ce, {
|
648
|
+
modelValue: p.value,
|
649
|
+
"onUpdate:modelValue": f[2] || (f[2] = (v) => p.value = v)
|
650
|
+
}, null, 8, ["modelValue"])
|
651
|
+
]),
|
652
|
+
_: 1
|
653
|
+
})
|
654
|
+
]),
|
655
|
+
_: 1
|
656
|
+
}, 8, ["modelValue"])
|
657
|
+
]),
|
658
|
+
_: 1
|
659
|
+
})
|
660
|
+
]),
|
661
|
+
_: 1
|
662
|
+
})
|
663
|
+
]),
|
664
|
+
_: 1
|
665
|
+
})
|
666
|
+
]),
|
667
|
+
_: 1
|
668
|
+
}),
|
669
|
+
o(ne, null, {
|
670
|
+
default: r(() => [
|
671
|
+
o(oe),
|
672
|
+
o(A, {
|
673
|
+
color: "grey",
|
674
|
+
size: "small",
|
675
|
+
variant: "text",
|
676
|
+
onClick: n
|
677
|
+
}, {
|
678
|
+
default: r(() => f[5] || (f[5] = [
|
679
|
+
S(" Close ", -1)
|
680
|
+
])),
|
681
|
+
_: 1,
|
682
|
+
__: [5]
|
683
|
+
}),
|
684
|
+
o(A, {
|
685
|
+
color: "error",
|
686
|
+
disabled: C(c),
|
687
|
+
loading: C(c),
|
688
|
+
size: "small",
|
689
|
+
variant: "text",
|
690
|
+
onClick: E
|
691
|
+
}, {
|
692
|
+
default: r(() => f[6] || (f[6] = [
|
693
|
+
S(" Reset ", -1)
|
694
|
+
])),
|
695
|
+
_: 1,
|
696
|
+
__: [6]
|
697
|
+
}, 8, ["disabled", "loading"]),
|
698
|
+
o(A, {
|
699
|
+
color: "success",
|
700
|
+
disabled: C(c),
|
701
|
+
loading: C(c),
|
702
|
+
size: "small",
|
703
|
+
variant: "flat",
|
704
|
+
onClick: l
|
705
|
+
}, {
|
706
|
+
default: r(() => f[7] || (f[7] = [
|
707
|
+
S(" Save ", -1)
|
708
|
+
])),
|
709
|
+
_: 1,
|
710
|
+
__: [7]
|
711
|
+
}, 8, ["disabled", "loading"])
|
712
|
+
]),
|
713
|
+
_: 1
|
714
|
+
})
|
715
|
+
]),
|
716
|
+
_: 1
|
717
|
+
})
|
718
|
+
]),
|
719
|
+
_: 1
|
720
|
+
}, 8, ["modelValue", "attach"])
|
721
|
+
], 512));
|
724
722
|
}
|
725
723
|
});
|
726
|
-
function
|
724
|
+
function G(t) {
|
727
725
|
const e = t;
|
728
726
|
e.__i18n = e.__i18n || [], e.__i18n.push({
|
729
727
|
locale: "",
|
@@ -787,27 +785,27 @@ function J(t) {
|
|
787
785
|
}
|
788
786
|
});
|
789
787
|
}
|
790
|
-
typeof
|
791
|
-
const
|
788
|
+
typeof G == "function" && G(de);
|
789
|
+
const De = M({
|
792
790
|
components: {
|
793
|
-
ApiKeyEditor:
|
794
|
-
EventMetadataEditor:
|
791
|
+
ApiKeyEditor: Te,
|
792
|
+
EventMetadataEditor: de
|
795
793
|
},
|
796
794
|
name: "StorybookExtraToolbar"
|
797
795
|
// eslint-disable-next-line @typescript-eslint/no-empty-object-type, @typescript-eslint/no-explicit-any
|
798
|
-
}),
|
799
|
-
function
|
800
|
-
const u =
|
801
|
-
return w(),
|
796
|
+
}), $e = { class: "flex gap-1 px-3" };
|
797
|
+
function Ne(t, e, a, i, c, g) {
|
798
|
+
const u = I("ApiKeyEditor"), h = I("EventMetadataEditor");
|
799
|
+
return w(), Z(N, {
|
802
800
|
class: "pa-0 mb-3",
|
803
801
|
fluid: ""
|
804
802
|
}, {
|
805
803
|
default: r(() => [
|
806
|
-
o(
|
804
|
+
o(x, { "no-gutters": "" }, {
|
807
805
|
default: r(() => [
|
808
|
-
Se("div",
|
806
|
+
Se("div", $e, [
|
809
807
|
o(u),
|
810
|
-
o(
|
808
|
+
o(h)
|
811
809
|
])
|
812
810
|
]),
|
813
811
|
_: 1
|
@@ -816,24 +814,24 @@ function $e(t, e, a, i, c, v) {
|
|
816
814
|
_: 1
|
817
815
|
});
|
818
816
|
}
|
819
|
-
const
|
817
|
+
const je = /* @__PURE__ */ $(De, [["render", Ne]]), ze = M({
|
820
818
|
components: {
|
821
|
-
StorybookExtraToolbar:
|
819
|
+
StorybookExtraToolbar: je,
|
822
820
|
WebComponentWrapper: we
|
823
821
|
}
|
824
822
|
});
|
825
|
-
function
|
826
|
-
const u =
|
827
|
-
return w(),
|
823
|
+
function Fe(t, e, a, i, c, g) {
|
824
|
+
const u = I("StorybookExtraToolbar"), h = I("WebComponentWrapper");
|
825
|
+
return w(), Z(h, { "error-overlay-disabled": "" }, {
|
828
826
|
default: r(() => [
|
829
827
|
o(u)
|
830
828
|
]),
|
831
829
|
_: 1
|
832
830
|
});
|
833
831
|
}
|
834
|
-
const
|
832
|
+
const We = /* @__PURE__ */ $(ze, [["render", Fe]]);
|
835
833
|
me("css/revolugo.storybooktoolbar.d_cxquq9.css");
|
836
834
|
export {
|
837
|
-
|
835
|
+
We as default
|
838
836
|
};
|
839
|
-
//# sourceMappingURL=revolugo.storybooktoolbar.
|
837
|
+
//# sourceMappingURL=revolugo.storybooktoolbar.Dt6W2K50.min.js.map
|