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