@revolugo/elements 6.9.0-beta.0 → 6.9.0-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/{revolugo.banktransferdetails.DIwmwiki.min.js → revolugo.banktransferdetails.C3EGM59k.min.js} +5 -5
- package/dist/{revolugo.bookingdetailssidebar.CURYxT7w.min.js → revolugo.bookingdetailssidebar.DYbkBl9E.min.js} +5 -5
- package/dist/{revolugo.bookingmanager.BgJVEAba.min.js → revolugo.bookingmanager.DNo06Ib3.min.js} +5 -5
- package/dist/{revolugo.cancellationpoliciesbadge.CxO1HyOA.min.js → revolugo.cancellationpoliciesbadge.C51EO9IV.min.js} +5 -5
- package/dist/{revolugo.cancellationpoliciesbadge.props.D3C9w_OV.min.js → revolugo.cancellationpoliciesbadge.props.D24p1hw7.min.js} +6821 -6861
- package/dist/{revolugo.cancellationpolicieslist.CClF7R0p.min.js → revolugo.cancellationpolicieslist.CID2S0fA.min.js} +5 -5
- package/dist/{revolugo.creditcardform.BLv484O_.min.js → revolugo.creditcardform.jibp_KYQ.min.js} +5 -5
- package/dist/{revolugo.creditcardpayment.BB0ucanh.min.js → revolugo.creditcardpayment.CVg9DoQD.min.js} +5 -5
- package/dist/{revolugo.currencypickerbtn.DMgpKcz0.min.js → revolugo.currencypickerbtn.Bz7rPprO.min.js} +5 -5
- package/dist/{revolugo.fastbookingflow.D2tOZmpu.min.js → revolugo.fastbookingflow.BVznIzeo.min.js} +5 -5
- package/dist/{revolugo.fullbookingflow.BIfijAae.min.js → revolugo.fullbookingflow.aSG0ifMO.min.js} +5 -5
- package/dist/{revolugo.hoteldescriptionview.C8P4XIvR.min.js → revolugo.hoteldescriptionview.eYRtRrR2.min.js} +5 -5
- package/dist/{revolugo.hotelofferlist.CXHGfElj.min.js → revolugo.hotelofferlist.CuJLwD07.min.js} +5 -5
- package/dist/{revolugo.hoteloffersearchmenu.CcjkzhZJ.min.js → revolugo.hoteloffersearchmenu.CgkuIEhn.min.js} +6 -6
- package/dist/{revolugo.hoteloffersmap.BsVCYroc.min.js → revolugo.hoteloffersmap.CZqwS4Kq.min.js} +5 -5
- package/dist/{revolugo.hoteloffersview.B64f1wvS.min.js → revolugo.hoteloffersview.BXgha2s6.min.js} +5 -5
- package/dist/{revolugo.hotelroomofferlist.CfDXaxwp.min.js → revolugo.hotelroomofferlist.CmE0s1Qo.min.js} +5 -5
- package/dist/{revolugo.hotelroomoffersbookingflow.DH6meEzW.min.js → revolugo.hotelroomoffersbookingflow.Dw_vU8BN.min.js} +5 -5
- package/dist/{revolugo.hotelroomoffersearchmenu.C6m4k_Rr.min.js → revolugo.hotelroomoffersearchmenu.CyKWsfca.min.js} +5 -5
- package/dist/{revolugo.hotelroomoffersview.6hxfrH3M.min.js → revolugo.hotelroomoffersview.DibRbPfC.min.js} +5 -5
- package/dist/{revolugo.index.UaUDIMS5.min.js → revolugo.index.DmCdQ6gn.min.js} +2 -2
- package/dist/{revolugo.index.wc.DEo_xTvj.min.js → revolugo.index.wc.Ct0rrpT1.min.js} +40 -40
- package/dist/{revolugo.langpickerbtn.B_B4BQwa.min.js → revolugo.langpickerbtn.BS0NJfXQ.min.js} +5 -5
- package/dist/revolugo.min.js +1 -1
- package/dist/{revolugo.prebookform.Btuuk21Q.min.js → revolugo.prebookform.CB9lYWGY.min.js} +5 -5
- package/dist/{revolugo.preferencesmenu.BVPHimYi.min.js → revolugo.preferencesmenu.BWh1eBKF.min.js} +109 -109
- package/dist/{revolugo.preferencesmenu.BDPlWGes.min.js → revolugo.preferencesmenu.IMyHRH5q.min.js} +4 -4
- package/dist/{revolugo.roominglisteditor.B55oRlzf.min.js → revolugo.roominglisteditor.BlKQUS_p.min.js} +5 -5
- package/dist/{revolugo.storybooktoolbar.DFiFAYLL.min.js → revolugo.storybooktoolbar.DS030I9i.min.js} +298 -305
- package/dist/{revolugo.termsandconditions.C2oiRbjY.min.js → revolugo.termsandconditions.dRbbl6u2.min.js} +5 -5
- package/dist/{revolugo.webcomponentwrapper.CKFKL54u.min.js → revolugo.webcomponentwrapper.DlONx0Ll.min.js} +147 -147
- package/package.json +1 -1
package/dist/{revolugo.storybooktoolbar.DFiFAYLL.min.js → revolugo.storybooktoolbar.DS030I9i.min.js}
RENAMED
@@ -1,7 +1,7 @@
|
|
1
|
-
import { s as
|
2
|
-
import { d as
|
3
|
-
import { t as Ve, w as
|
4
|
-
function
|
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.Ct0rrpT1.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.DlONx0Ll.min.js";
|
3
|
+
import { t as Ve, w as Le, s as Y } from "./revolugo.index.DmCdQ6gn.min.js";
|
4
|
+
function me(t) {
|
5
5
|
try {
|
6
6
|
if (typeof document < "u") {
|
7
7
|
window.REVOLUGO_ELEMENTS_STYLES = window.REVOLUGO_ELEMENTS_STYLES || {
|
@@ -21,152 +21,141 @@ function pe(t) {
|
|
21
21
|
console.error("[revolugo-elements] ", e);
|
22
22
|
}
|
23
23
|
}
|
24
|
-
var
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
var n = {}, h = r.length;
|
40
|
-
if (h < 2) return n;
|
41
|
-
var _ = p && p.decode || v, d = 0, m = 0, l = 0;
|
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;
|
42
39
|
do {
|
43
|
-
|
44
|
-
if (
|
45
|
-
|
46
|
-
|
47
|
-
|
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;
|
48
46
|
continue;
|
49
47
|
}
|
50
|
-
|
51
|
-
if (
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
n[F] = K(fe, _);
|
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;
|
56
53
|
}
|
57
|
-
|
58
|
-
} while (
|
54
|
+
l = f + 1;
|
55
|
+
} while (l < h);
|
59
56
|
return n;
|
60
57
|
}
|
61
|
-
function
|
58
|
+
function g(s, p, n) {
|
62
59
|
do {
|
63
|
-
|
64
|
-
if (h !== 32 && h !== 9)
|
60
|
+
const h = s.charCodeAt(p);
|
61
|
+
if (h !== 32 && h !== 9)
|
62
|
+
return p;
|
65
63
|
} while (++p < n);
|
66
64
|
return n;
|
67
65
|
}
|
68
|
-
function
|
66
|
+
function d(s, p, n) {
|
69
67
|
for (; p > n; ) {
|
70
|
-
|
71
|
-
if (h !== 32 && h !== 9)
|
68
|
+
const h = s.charCodeAt(--p);
|
69
|
+
if (h !== 32 && h !== 9)
|
70
|
+
return p + 1;
|
72
71
|
}
|
73
72
|
return n;
|
74
73
|
}
|
75
|
-
function
|
76
|
-
|
77
|
-
if (
|
78
|
-
throw new TypeError(
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
if (
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
throw new TypeError("option maxAge is invalid");
|
90
|
-
d += "; Max-Age=" + m;
|
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;
|
91
88
|
}
|
92
89
|
if (n.domain) {
|
93
|
-
if (!
|
94
|
-
throw new TypeError(
|
95
|
-
|
90
|
+
if (!a.test(n.domain))
|
91
|
+
throw new TypeError(`option domain is invalid: ${n.domain}`);
|
92
|
+
l += "; Domain=" + n.domain;
|
96
93
|
}
|
97
94
|
if (n.path) {
|
98
|
-
if (!
|
99
|
-
throw new TypeError(
|
100
|
-
|
95
|
+
if (!i.test(n.path))
|
96
|
+
throw new TypeError(`option path is invalid: ${n.path}`);
|
97
|
+
l += "; Path=" + n.path;
|
101
98
|
}
|
102
99
|
if (n.expires) {
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
d += "; Expires=" + l.toUTCString();
|
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();
|
107
103
|
}
|
108
|
-
if (n.httpOnly && (
|
109
|
-
|
110
|
-
switch (k) {
|
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) {
|
111
106
|
case "low":
|
112
|
-
|
107
|
+
l += "; Priority=Low";
|
113
108
|
break;
|
114
109
|
case "medium":
|
115
|
-
|
110
|
+
l += "; Priority=Medium";
|
116
111
|
break;
|
117
112
|
case "high":
|
118
|
-
|
113
|
+
l += "; Priority=High";
|
119
114
|
break;
|
120
115
|
default:
|
121
|
-
throw new TypeError(
|
116
|
+
throw new TypeError(`option priority is invalid: ${n.priority}`);
|
122
117
|
}
|
123
|
-
|
124
|
-
|
125
|
-
var g = typeof n.sameSite == "string" ? n.sameSite.toLowerCase() : n.sameSite;
|
126
|
-
switch (g) {
|
118
|
+
if (n.sameSite)
|
119
|
+
switch (typeof n.sameSite == "string" ? n.sameSite.toLowerCase() : n.sameSite) {
|
127
120
|
case !0:
|
128
|
-
|
121
|
+
case "strict":
|
122
|
+
l += "; SameSite=Strict";
|
129
123
|
break;
|
130
124
|
case "lax":
|
131
|
-
|
132
|
-
break;
|
133
|
-
case "strict":
|
134
|
-
d += "; SameSite=Strict";
|
125
|
+
l += "; SameSite=Lax";
|
135
126
|
break;
|
136
127
|
case "none":
|
137
|
-
|
128
|
+
l += "; SameSite=None";
|
138
129
|
break;
|
139
130
|
default:
|
140
|
-
throw new TypeError(
|
131
|
+
throw new TypeError(`option sameSite is invalid: ${n.sameSite}`);
|
141
132
|
}
|
142
|
-
|
143
|
-
return d;
|
144
|
-
}
|
145
|
-
function v(r) {
|
146
|
-
return r.indexOf("%") !== -1 ? decodeURIComponent(r) : r;
|
133
|
+
return l;
|
147
134
|
}
|
148
|
-
function
|
149
|
-
|
150
|
-
|
151
|
-
function K(r, p) {
|
135
|
+
function m(s) {
|
136
|
+
if (s.indexOf("%") === -1)
|
137
|
+
return s;
|
152
138
|
try {
|
153
|
-
return
|
139
|
+
return decodeURIComponent(s);
|
154
140
|
} catch {
|
155
|
-
return
|
141
|
+
return s;
|
156
142
|
}
|
157
143
|
}
|
158
|
-
|
144
|
+
function V(s) {
|
145
|
+
return c.call(s) === "[object Date]";
|
146
|
+
}
|
147
|
+
return L;
|
159
148
|
}
|
160
|
-
var
|
161
|
-
function
|
149
|
+
var x = Oe();
|
150
|
+
function Ke() {
|
162
151
|
const t = typeof global > "u" ? void 0 : global.TEST_HAS_DOCUMENT_COOKIE;
|
163
152
|
return typeof t == "boolean" ? t : typeof document == "object" && typeof document.cookie == "string";
|
164
153
|
}
|
165
|
-
function
|
166
|
-
return typeof t == "string" ?
|
154
|
+
function Ie(t) {
|
155
|
+
return typeof t == "string" ? x.parse(t) : typeof t == "object" && t !== null ? t : {};
|
167
156
|
}
|
168
|
-
function
|
169
|
-
const a =
|
157
|
+
function U(t, e = {}) {
|
158
|
+
const a = xe(t);
|
170
159
|
if (!e.doNotParse)
|
171
160
|
try {
|
172
161
|
return JSON.parse(a);
|
@@ -174,19 +163,19 @@ function x(t, e = {}) {
|
|
174
163
|
}
|
175
164
|
return t;
|
176
165
|
}
|
177
|
-
function
|
166
|
+
function xe(t) {
|
178
167
|
return t && t[0] === "j" && t[1] === ":" ? t.substr(2) : t;
|
179
168
|
}
|
180
|
-
class
|
169
|
+
class Me {
|
181
170
|
constructor(e, a = {}) {
|
182
171
|
this.changeListeners = [], this.HAS_DOCUMENT_COOKIE = !1, this.update = () => {
|
183
172
|
if (!this.HAS_DOCUMENT_COOKIE)
|
184
173
|
return;
|
185
|
-
const
|
186
|
-
this.cookies =
|
174
|
+
const c = this.cookies;
|
175
|
+
this.cookies = x.parse(document.cookie), this._checkChanges(c);
|
187
176
|
};
|
188
177
|
const i = typeof document > "u" ? "" : document.cookie;
|
189
|
-
this.cookies =
|
178
|
+
this.cookies = Ie(e || i), this.defaultSetOptions = a, this.HAS_DOCUMENT_COOKIE = Ke();
|
190
179
|
}
|
191
180
|
_emitChange(e) {
|
192
181
|
for (let a = 0; a < this.changeListeners.length; ++a)
|
@@ -196,7 +185,7 @@ class Re {
|
|
196
185
|
new Set(Object.keys(e).concat(Object.keys(this.cookies))).forEach((i) => {
|
197
186
|
e[i] !== this.cookies[i] && this._emitChange({
|
198
187
|
name: i,
|
199
|
-
value:
|
188
|
+
value: U(this.cookies[i])
|
200
189
|
});
|
201
190
|
});
|
202
191
|
}
|
@@ -207,23 +196,23 @@ class Re {
|
|
207
196
|
this.pollingInterval && clearInterval(this.pollingInterval);
|
208
197
|
}
|
209
198
|
get(e, a = {}) {
|
210
|
-
return a.doNotUpdate || this.update(),
|
199
|
+
return a.doNotUpdate || this.update(), U(this.cookies[e], a);
|
211
200
|
}
|
212
201
|
getAll(e = {}) {
|
213
202
|
e.doNotUpdate || this.update();
|
214
203
|
const a = {};
|
215
204
|
for (let i in this.cookies)
|
216
|
-
a[i] =
|
205
|
+
a[i] = U(this.cookies[i], e);
|
217
206
|
return a;
|
218
207
|
}
|
219
208
|
set(e, a, i) {
|
220
209
|
i ? i = Object.assign(Object.assign({}, this.defaultSetOptions), i) : i = this.defaultSetOptions;
|
221
|
-
const
|
222
|
-
this.cookies = Object.assign(Object.assign({}, this.cookies), { [e]:
|
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 });
|
223
212
|
}
|
224
213
|
remove(e, a) {
|
225
214
|
const i = a = Object.assign(Object.assign(Object.assign({}, this.defaultSetOptions), a), { expires: new Date(1970, 1, 1, 0, 0, 1), maxAge: 0 });
|
226
|
-
this.cookies = Object.assign({}, this.cookies), delete this.cookies[e], this.HAS_DOCUMENT_COOKIE && (document.cookie =
|
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 });
|
227
216
|
}
|
228
217
|
addChangeListener(e) {
|
229
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());
|
@@ -232,36 +221,40 @@ class Re {
|
|
232
221
|
const a = this.changeListeners.indexOf(e);
|
233
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());
|
234
223
|
}
|
224
|
+
removeAllChangeListeners() {
|
225
|
+
for (; this.changeListeners.length > 0; )
|
226
|
+
this.removeChangeListener(this.changeListeners[0]);
|
227
|
+
}
|
235
228
|
}
|
236
|
-
function
|
237
|
-
const
|
238
|
-
let
|
239
|
-
const
|
240
|
-
const
|
241
|
-
|
242
|
-
|
243
|
-
|
244
|
-
|
245
|
-
) &&
|
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;
|
246
239
|
};
|
247
|
-
return i.addChangeListener(
|
248
|
-
i.removeChangeListener(
|
240
|
+
return i.addChangeListener(g), Ve(() => {
|
241
|
+
i.removeChangeListener(g);
|
249
242
|
}), {
|
250
243
|
/**
|
251
244
|
* Reactive get cookie by name. If **autoUpdateDependencies = true** then it will update watching dependencies
|
252
245
|
*/
|
253
|
-
get: (...
|
246
|
+
get: (...d) => (a && c && !c.includes(d[0]) && c.push(d[0]), u.value, i.get(d[0], { doNotParse: e, ...d[1] })),
|
254
247
|
/**
|
255
248
|
* Reactive get all cookies
|
256
249
|
*/
|
257
|
-
getAll: (...
|
258
|
-
set: (...
|
259
|
-
remove: (...
|
260
|
-
addChangeListener: (...
|
261
|
-
removeChangeListener: (...
|
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)
|
262
255
|
};
|
263
256
|
}
|
264
|
-
function
|
257
|
+
function Pe(t, e, a) {
|
265
258
|
if (!t)
|
266
259
|
return !0;
|
267
260
|
for (const i of t)
|
@@ -269,9 +262,9 @@ function Ue(t, e, a) {
|
|
269
262
|
return !0;
|
270
263
|
return !1;
|
271
264
|
}
|
272
|
-
const
|
265
|
+
const de = P({
|
273
266
|
components: {
|
274
|
-
BTag:
|
267
|
+
BTag: ke
|
275
268
|
},
|
276
269
|
methods: {
|
277
270
|
closeDialog() {
|
@@ -283,7 +276,7 @@ const ue = T({
|
|
283
276
|
const t = {
|
284
277
|
apiEnvironment: window.RevolugoElements.config.apiEnvironment,
|
285
278
|
apiKey: this.apiKey,
|
286
|
-
apiVersion:
|
279
|
+
apiVersion: ve.V1,
|
287
280
|
optionalHeaders: window.RevolugoElements.config.optionalHeaders
|
288
281
|
}, e = new ge(t);
|
289
282
|
try {
|
@@ -319,34 +312,34 @@ const ue = T({
|
|
319
312
|
}
|
320
313
|
},
|
321
314
|
mixins: [
|
322
|
-
|
315
|
+
Le(["config.apiEnvironment"], "updateApiKey", {
|
323
316
|
deep: !0,
|
324
317
|
immediate: !0
|
325
318
|
}),
|
326
|
-
|
319
|
+
_e
|
327
320
|
],
|
328
321
|
name: "ApiKeyEditor",
|
329
322
|
setup() {
|
330
|
-
const t =
|
323
|
+
const t = le(["apiKey"]), { t: e } = X(), a = _(t.get("apiKey")), i = T(
|
331
324
|
() => window.RevolugoElements.config.apiEnvironment
|
332
|
-
),
|
333
|
-
(
|
325
|
+
), c = T(() => [
|
326
|
+
(d) => !!d || `A valid API Key is required. ${e("ApiKeyEditor.hint", {
|
334
327
|
environment: i.value
|
335
328
|
})}`
|
336
|
-
]),
|
329
|
+
]), v = _(!1), u = _(!1), g = _(!1);
|
337
330
|
return {
|
338
331
|
apiKey: a,
|
339
|
-
apiKeyRules:
|
332
|
+
apiKeyRules: c,
|
340
333
|
cookies: t,
|
341
|
-
dialog:
|
342
|
-
isFormValid:
|
343
|
-
isLoading:
|
334
|
+
dialog: v,
|
335
|
+
isFormValid: u,
|
336
|
+
isLoading: g,
|
344
337
|
t: e
|
345
338
|
};
|
346
339
|
}
|
347
340
|
// eslint-disable-next-line @typescript-eslint/no-empty-object-type, @typescript-eslint/no-explicit-any
|
348
341
|
});
|
349
|
-
function
|
342
|
+
function G(t) {
|
350
343
|
const e = t;
|
351
344
|
e.__i18n = e.__i18n || [], e.__i18n.push({
|
352
345
|
locale: "",
|
@@ -396,66 +389,66 @@ function J(t) {
|
|
396
389
|
}
|
397
390
|
});
|
398
391
|
}
|
399
|
-
function
|
400
|
-
return
|
401
|
-
o(
|
392
|
+
function Re(t, e, a, i, c, v) {
|
393
|
+
return w(), I("div", null, [
|
394
|
+
o(re, {
|
402
395
|
modelValue: t.dialog,
|
403
|
-
"onUpdate:modelValue": e[2] || (e[2] = (
|
396
|
+
"onUpdate:modelValue": e[2] || (e[2] = (u) => t.dialog = u),
|
404
397
|
attach: t.$dialogAttach || void 0,
|
405
398
|
"max-width": "600px"
|
406
399
|
}, {
|
407
|
-
activator:
|
408
|
-
o(
|
400
|
+
activator: r(({ props: u }) => [
|
401
|
+
o(k, Z(u, {
|
409
402
|
color: t.cookies.get("apiKey") ? "success" : "warning",
|
410
403
|
elevation: "0",
|
411
404
|
size: "x-small"
|
412
405
|
}), {
|
413
|
-
default:
|
414
|
-
t.cookies.get("apiKey") ? (
|
415
|
-
o(
|
416
|
-
default:
|
417
|
-
|
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)
|
418
411
|
])),
|
419
412
|
_: 1,
|
420
413
|
__: [5]
|
421
414
|
}),
|
422
|
-
e[6] || (e[6] =
|
423
|
-
], 64)) : (
|
424
|
-
o(
|
425
|
-
default:
|
426
|
-
|
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)
|
427
420
|
])),
|
428
421
|
_: 1,
|
429
422
|
__: [3]
|
430
423
|
}),
|
431
|
-
e[4] || (e[4] =
|
424
|
+
e[4] || (e[4] = S(" No API key provided ", -1))
|
432
425
|
], 64))
|
433
426
|
]),
|
434
427
|
_: 2
|
435
428
|
}, 1040, ["color"])
|
436
429
|
]),
|
437
|
-
default:
|
438
|
-
o(
|
439
|
-
default:
|
440
|
-
o(
|
441
|
-
default:
|
442
|
-
o(
|
443
|
-
default:
|
444
|
-
o(
|
445
|
-
default:
|
446
|
-
o(
|
447
|
-
default:
|
448
|
-
o(
|
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, {
|
449
442
|
ref: "apiKeyEditorForm",
|
450
443
|
modelValue: t.isFormValid,
|
451
|
-
"onUpdate:modelValue": e[1] || (e[1] = (
|
444
|
+
"onUpdate:modelValue": e[1] || (e[1] = (u) => t.isFormValid = u),
|
452
445
|
class: "m-0",
|
453
446
|
onSubmit: Q(t.onSubmit, ["prevent"])
|
454
447
|
}, {
|
455
|
-
default:
|
456
|
-
o(
|
448
|
+
default: r(() => [
|
449
|
+
o($, {
|
457
450
|
modelValue: t.apiKey,
|
458
|
-
"onUpdate:modelValue": e[0] || (e[0] = (
|
451
|
+
"onUpdate:modelValue": e[0] || (e[0] = (u) => t.apiKey = u),
|
459
452
|
density: "compact",
|
460
453
|
hint: t.t("ApiKeyEditor.hint", {
|
461
454
|
environment: t.config.apiEnvironment
|
@@ -465,7 +458,7 @@ function Te(t, e, a, i, f, y) {
|
|
465
458
|
"persistent-hint": "",
|
466
459
|
required: "",
|
467
460
|
rules: t.apiKeyRules,
|
468
|
-
onKeyup:
|
461
|
+
onKeyup: D(t.onSubmit, ["enter"])
|
469
462
|
}, null, 8, ["modelValue", "hint", "rules", "onKeyup"])
|
470
463
|
]),
|
471
464
|
_: 1
|
@@ -482,22 +475,22 @@ function Te(t, e, a, i, f, y) {
|
|
482
475
|
]),
|
483
476
|
_: 1
|
484
477
|
}),
|
485
|
-
o(
|
486
|
-
default:
|
478
|
+
o(oe, null, {
|
479
|
+
default: r(() => [
|
487
480
|
o(se),
|
488
|
-
o(
|
481
|
+
o(k, {
|
489
482
|
color: "blue-darken-1",
|
490
483
|
size: "small",
|
491
484
|
variant: "text",
|
492
485
|
onClick: t.closeDialog
|
493
486
|
}, {
|
494
|
-
default:
|
495
|
-
|
487
|
+
default: r(() => e[7] || (e[7] = [
|
488
|
+
S(" Close ", -1)
|
496
489
|
])),
|
497
490
|
_: 1,
|
498
491
|
__: [7]
|
499
492
|
}, 8, ["onClick"]),
|
500
|
-
o(
|
493
|
+
o(k, {
|
501
494
|
class: "text-right",
|
502
495
|
color: "primary",
|
503
496
|
disabled: t.isLoading,
|
@@ -506,8 +499,8 @@ function Te(t, e, a, i, f, y) {
|
|
506
499
|
size: "small",
|
507
500
|
onClick: t.onSubmit
|
508
501
|
}, {
|
509
|
-
default:
|
510
|
-
|
502
|
+
default: r(() => e[8] || (e[8] = [
|
503
|
+
S(" Save ", -1)
|
511
504
|
])),
|
512
505
|
_: 1,
|
513
506
|
__: [8]
|
@@ -523,138 +516,138 @@ function Te(t, e, a, i, f, y) {
|
|
523
516
|
}, 8, ["modelValue", "attach"])
|
524
517
|
]);
|
525
518
|
}
|
526
|
-
typeof
|
527
|
-
const
|
519
|
+
typeof G == "function" && G(de);
|
520
|
+
const Ue = /* @__PURE__ */ N(de, [["render", Re]]), ue = /* @__PURE__ */ P({
|
528
521
|
__name: "EventMetadataEditor",
|
529
522
|
setup(t) {
|
530
|
-
const { config: e, updateConfig: a } = he(), i =
|
531
|
-
(
|
532
|
-
if (!
|
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)
|
533
526
|
return !0;
|
534
527
|
try {
|
535
528
|
return (
|
536
529
|
// eslint-disable-next-line no-constant-binary-expression
|
537
|
-
!!new URL(
|
530
|
+
!!new URL(b) || v("EventMetadataEditor.validation.imageURL")
|
538
531
|
);
|
539
532
|
} catch {
|
540
|
-
return
|
533
|
+
return v("EventMetadataEditor.validation.imageURL");
|
541
534
|
}
|
542
535
|
}
|
543
|
-
],
|
544
|
-
(
|
545
|
-
],
|
536
|
+
], R = [
|
537
|
+
(b) => !!b || v("EventMetadataEditor.validation.name")
|
538
|
+
], m = _(
|
546
539
|
i.get("eventMetadata") || {
|
547
|
-
dateEnd:
|
548
|
-
dateStart:
|
540
|
+
dateEnd: H().add(1, "day").format("YYYY-MM-DD").toString(),
|
541
|
+
dateStart: H().format("YYYY-MM-DD").toString(),
|
549
542
|
name: ""
|
550
543
|
}
|
551
|
-
), V =
|
544
|
+
), V = _(!1), s = _(!1), p = T({
|
552
545
|
get() {
|
553
|
-
return !
|
554
|
-
|
555
|
-
|
546
|
+
return !m.value.dateStart || !m.value.dateEnd ? [] : Y(
|
547
|
+
m.value.dateStart,
|
548
|
+
m.value.dateEnd
|
556
549
|
);
|
557
550
|
},
|
558
|
-
set(
|
559
|
-
[
|
551
|
+
set(b) {
|
552
|
+
[m.value.dateStart, m.value.dateEnd] = Y(...b);
|
560
553
|
}
|
561
554
|
});
|
562
|
-
function p() {
|
563
|
-
V.value = !1;
|
564
|
-
}
|
565
555
|
function n() {
|
566
|
-
|
556
|
+
V.value = !1;
|
567
557
|
}
|
568
558
|
function h() {
|
569
|
-
|
559
|
+
return !(!m.value.name?.length || !p.value[0] || !p.value[1]);
|
560
|
+
}
|
561
|
+
function A() {
|
562
|
+
h() && (a({
|
570
563
|
...e.value,
|
571
|
-
eventMetadata:
|
572
|
-
}), i.set("eventMetadata", JSON.stringify(
|
564
|
+
eventMetadata: m.value
|
565
|
+
}), i.set("eventMetadata", JSON.stringify(m)), n());
|
573
566
|
}
|
574
|
-
function
|
575
|
-
|
567
|
+
function l() {
|
568
|
+
A(), n();
|
576
569
|
}
|
577
|
-
function
|
578
|
-
i.remove("eventMetadata"),
|
570
|
+
function E() {
|
571
|
+
i.remove("eventMetadata"), m.value = {}, a({
|
579
572
|
...e.value,
|
580
573
|
eventMetadata: {}
|
581
|
-
}),
|
574
|
+
}), n();
|
582
575
|
}
|
583
576
|
return Ee(() => {
|
584
577
|
i.get("eventMetadata") && a({
|
585
578
|
...e.value,
|
586
579
|
eventMetadata: i.get("eventMetadata")
|
587
580
|
});
|
588
|
-
}), (
|
589
|
-
const
|
590
|
-
return
|
581
|
+
}), (b, f) => {
|
582
|
+
const K = O("BDateRangePicker");
|
583
|
+
return w(), I("div", {
|
591
584
|
ref_key: "root",
|
592
|
-
ref:
|
585
|
+
ref: u
|
593
586
|
}, [
|
594
|
-
o(
|
587
|
+
o(re, {
|
595
588
|
modelValue: V.value,
|
596
|
-
"onUpdate:modelValue":
|
597
|
-
attach: C(
|
589
|
+
"onUpdate:modelValue": f[4] || (f[4] = (y) => V.value = y),
|
590
|
+
attach: C(g),
|
598
591
|
height: "600px",
|
599
592
|
"max-width": "600px"
|
600
593
|
}, {
|
601
|
-
activator:
|
602
|
-
o(
|
594
|
+
activator: r(({ props: y }) => [
|
595
|
+
o(k, Z(y, {
|
603
596
|
color: C(i).get("eventMetadata") ? "success" : "warning",
|
604
597
|
elevation: "0",
|
605
598
|
size: "x-small"
|
606
599
|
}), {
|
607
|
-
default:
|
608
|
-
|
600
|
+
default: r(() => [
|
601
|
+
S(be(m.value?.name ? `EVENT : ${m.value?.name}` : "ADD EVENT METADATA"), 1)
|
609
602
|
]),
|
610
603
|
_: 2
|
611
604
|
}, 1040, ["color"])
|
612
605
|
]),
|
613
|
-
default:
|
614
|
-
o(
|
615
|
-
default:
|
616
|
-
o(
|
617
|
-
default:
|
618
|
-
o(
|
619
|
-
default:
|
620
|
-
o(
|
621
|
-
default:
|
622
|
-
o(
|
623
|
-
default:
|
624
|
-
o(
|
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, {
|
625
618
|
ref: "eventMetadataEditorForm",
|
626
|
-
modelValue:
|
627
|
-
"onUpdate:modelValue":
|
619
|
+
modelValue: s.value,
|
620
|
+
"onUpdate:modelValue": f[3] || (f[3] = (y) => s.value = y),
|
628
621
|
class: "m-0",
|
629
|
-
onSubmit: Q(
|
622
|
+
onSubmit: Q(l, ["prevent"])
|
630
623
|
}, {
|
631
|
-
default:
|
632
|
-
o(
|
633
|
-
modelValue:
|
634
|
-
"onUpdate:modelValue":
|
624
|
+
default: r(() => [
|
625
|
+
o($, {
|
626
|
+
modelValue: m.value.name,
|
627
|
+
"onUpdate:modelValue": f[0] || (f[0] = (y) => m.value.name = y),
|
635
628
|
density: "compact",
|
636
629
|
label: "Name of the event",
|
637
630
|
variant: "outlined",
|
638
631
|
"persistent-hint": "",
|
639
632
|
required: "",
|
640
|
-
rules:
|
641
|
-
onKeyup:
|
633
|
+
rules: R,
|
634
|
+
onKeyup: D(l, ["enter"])
|
642
635
|
}, null, 8, ["modelValue"]),
|
643
|
-
o(
|
644
|
-
modelValue:
|
645
|
-
"onUpdate:modelValue":
|
636
|
+
o($, {
|
637
|
+
modelValue: m.value.imageUrl,
|
638
|
+
"onUpdate:modelValue": f[1] || (f[1] = (y) => m.value.imageUrl = y),
|
646
639
|
density: "compact",
|
647
640
|
label: "Image URL",
|
648
641
|
variant: "outlined",
|
649
642
|
"persistent-hint": "",
|
650
|
-
rules:
|
651
|
-
onKeyup:
|
643
|
+
rules: d,
|
644
|
+
onKeyup: D(l, ["enter"])
|
652
645
|
}, null, 8, ["modelValue"]),
|
653
|
-
o(
|
654
|
-
default:
|
655
|
-
o(
|
656
|
-
modelValue:
|
657
|
-
"onUpdate: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)
|
658
651
|
}, null, 8, ["modelValue"])
|
659
652
|
]),
|
660
653
|
_: 1
|
@@ -674,45 +667,45 @@ const Ie = /* @__PURE__ */ j(ue, [["render", Te]]), ce = /* @__PURE__ */ T({
|
|
674
667
|
]),
|
675
668
|
_: 1
|
676
669
|
}),
|
677
|
-
o(
|
678
|
-
default:
|
670
|
+
o(oe, null, {
|
671
|
+
default: r(() => [
|
679
672
|
o(se),
|
680
|
-
o(
|
673
|
+
o(k, {
|
681
674
|
color: "grey",
|
682
675
|
size: "small",
|
683
676
|
variant: "text",
|
684
|
-
onClick:
|
677
|
+
onClick: n
|
685
678
|
}, {
|
686
|
-
default:
|
687
|
-
|
679
|
+
default: r(() => f[5] || (f[5] = [
|
680
|
+
S(" Close ", -1)
|
688
681
|
])),
|
689
682
|
_: 1,
|
690
683
|
__: [5]
|
691
684
|
}),
|
692
|
-
o(
|
685
|
+
o(k, {
|
693
686
|
color: "error",
|
694
|
-
disabled: C(
|
695
|
-
loading: C(
|
687
|
+
disabled: C(c),
|
688
|
+
loading: C(c),
|
696
689
|
size: "small",
|
697
690
|
variant: "text",
|
698
|
-
onClick:
|
691
|
+
onClick: E
|
699
692
|
}, {
|
700
|
-
default:
|
701
|
-
|
693
|
+
default: r(() => f[6] || (f[6] = [
|
694
|
+
S(" Reset ", -1)
|
702
695
|
])),
|
703
696
|
_: 1,
|
704
697
|
__: [6]
|
705
698
|
}, 8, ["disabled", "loading"]),
|
706
|
-
o(
|
699
|
+
o(k, {
|
707
700
|
color: "success",
|
708
|
-
disabled: C(
|
709
|
-
loading: C(
|
701
|
+
disabled: C(c),
|
702
|
+
loading: C(c),
|
710
703
|
size: "small",
|
711
704
|
variant: "flat",
|
712
|
-
onClick:
|
705
|
+
onClick: l
|
713
706
|
}, {
|
714
|
-
default:
|
715
|
-
|
707
|
+
default: r(() => f[7] || (f[7] = [
|
708
|
+
S(" Save ", -1)
|
716
709
|
])),
|
717
710
|
_: 1,
|
718
711
|
__: [7]
|
@@ -730,7 +723,7 @@ const Ie = /* @__PURE__ */ j(ue, [["render", Te]]), ce = /* @__PURE__ */ T({
|
|
730
723
|
};
|
731
724
|
}
|
732
725
|
});
|
733
|
-
function
|
726
|
+
function J(t) {
|
734
727
|
const e = t;
|
735
728
|
e.__i18n = e.__i18n || [], e.__i18n.push({
|
736
729
|
locale: "",
|
@@ -794,27 +787,27 @@ function X(t) {
|
|
794
787
|
}
|
795
788
|
});
|
796
789
|
}
|
797
|
-
typeof
|
798
|
-
const
|
790
|
+
typeof J == "function" && J(ue);
|
791
|
+
const Te = P({
|
799
792
|
components: {
|
800
|
-
ApiKeyEditor:
|
801
|
-
EventMetadataEditor:
|
793
|
+
ApiKeyEditor: Ue,
|
794
|
+
EventMetadataEditor: ue
|
802
795
|
},
|
803
796
|
name: "StorybookExtraToolbar"
|
804
797
|
// eslint-disable-next-line @typescript-eslint/no-empty-object-type, @typescript-eslint/no-explicit-any
|
805
|
-
}),
|
806
|
-
function
|
807
|
-
const
|
808
|
-
return
|
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, {
|
809
802
|
class: "pa-0 mb-3",
|
810
803
|
fluid: ""
|
811
804
|
}, {
|
812
|
-
default:
|
813
|
-
o(
|
814
|
-
default:
|
815
|
-
|
816
|
-
o(
|
817
|
-
o(
|
805
|
+
default: r(() => [
|
806
|
+
o(M, { "no-gutters": "" }, {
|
807
|
+
default: r(() => [
|
808
|
+
Se("div", De, [
|
809
|
+
o(u),
|
810
|
+
o(g)
|
818
811
|
])
|
819
812
|
]),
|
820
813
|
_: 1
|
@@ -823,24 +816,24 @@ function Ne(t, e, a, i, f, y) {
|
|
823
816
|
_: 1
|
824
817
|
});
|
825
818
|
}
|
826
|
-
const
|
819
|
+
const Ne = /* @__PURE__ */ N(Te, [["render", $e]]), je = P({
|
827
820
|
components: {
|
828
|
-
StorybookExtraToolbar:
|
829
|
-
WebComponentWrapper:
|
821
|
+
StorybookExtraToolbar: Ne,
|
822
|
+
WebComponentWrapper: we
|
830
823
|
}
|
831
824
|
});
|
832
|
-
function
|
833
|
-
const
|
834
|
-
return
|
835
|
-
default:
|
836
|
-
o(
|
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)
|
837
830
|
]),
|
838
831
|
_: 1
|
839
832
|
});
|
840
833
|
}
|
841
|
-
const qe = /* @__PURE__ */
|
842
|
-
|
834
|
+
const qe = /* @__PURE__ */ N(je, [["render", ze]]);
|
835
|
+
me("css/revolugo.storybooktoolbar.d_cxquq9.css");
|
843
836
|
export {
|
844
837
|
qe as default
|
845
838
|
};
|
846
|
-
//# sourceMappingURL=revolugo.storybooktoolbar.
|
839
|
+
//# sourceMappingURL=revolugo.storybooktoolbar.DS030I9i.min.js.map
|