@revolugo/elements 7.11.0-alpha.1 → 7.11.0-alpha.11

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.
Files changed (39) hide show
  1. package/dist/index.es.min.js +1 -1
  2. package/dist/index.es.min.js.map +1 -1
  3. package/dist/index.min.js +1 -1
  4. package/dist/index.min.js.map +1 -1
  5. package/dist/{revolugo.banktransferdetails.B4XzXzkq.min.js → revolugo.banktransferdetails.B42Pwjr0.min.js} +4 -4
  6. package/dist/{revolugo.bookingdetailssidebar.QdwUvpIU.min.js → revolugo.bookingdetailssidebar.D2cMnFFZ.min.js} +5 -5
  7. package/dist/{revolugo.bookingmanager.CNIdC33M.min.js → revolugo.bookingmanager.DHLPRYbk.min.js} +4 -4
  8. package/dist/revolugo.bookingpaymentform.j6KgX25_.min.js +5129 -0
  9. package/dist/{revolugo.cancellationpoliciesbadge.C4CRi-wW.min.js → revolugo.cancellationpoliciesbadge.BTWqs1xQ.min.js} +4 -4
  10. package/dist/{revolugo.cancellationpolicieslist.DmI0IdZa.min.js → revolugo.cancellationpolicieslist.yxNadrjS.min.js} +4 -4
  11. package/dist/{revolugo.creditcardstripeform.BXiLQL3-.min.js → revolugo.creditcardstripeform.C8OmQHQn.min.js} +890 -897
  12. package/dist/{revolugo.creditcardstripeform.DYmFj2Pv.min.js → revolugo.creditcardstripeform.DZB4-urV.min.js} +4 -4
  13. package/dist/{revolugo.currencypickerbtn.DP0xgKIj.min.js → revolugo.currencypickerbtn.3U6h0owe.min.js} +5 -5
  14. package/dist/{revolugo.fastbookingflow.Bg5Iykrg.min.js → revolugo.fastbookingflow.sE6UXGze.min.js} +4 -4
  15. package/dist/{revolugo.fullbookingflow.DQmoiq0h.min.js → revolugo.fullbookingflow.BpqAx-kX.min.js} +4 -4
  16. package/dist/{revolugo.hoteldescriptionview.SSBJViV_.min.js → revolugo.hoteldescriptionview._W2zUaNA.min.js} +4 -4
  17. package/dist/{revolugo.hotelofferlist.pcxXC9qv.min.js → revolugo.hotelofferlist.C6eQzmMS.min.js} +4 -4
  18. package/dist/{revolugo.hoteloffersearchmenu.Bgr9Ddbi.min.js → revolugo.hoteloffersearchmenu.DTpA7E8T.min.js} +4 -4
  19. package/dist/{revolugo.hoteloffersmap.DwnEFMYT.min.js → revolugo.hoteloffersmap.BxVL3YNr.min.js} +4 -4
  20. package/dist/{revolugo.hoteloffersview.CW2hgGns.min.js → revolugo.hoteloffersview.BWnG5dZA.min.js} +3 -3
  21. package/dist/{revolugo.hotelroomofferlist.Ci-WxLna.min.js → revolugo.hotelroomofferlist.54P0Slwx.min.js} +4 -4
  22. package/dist/{revolugo.hotelroomoffersbookingflow.DveBzVj-.min.js → revolugo.hotelroomoffersbookingflow.DUWDUyn6.min.js} +4 -4
  23. package/dist/{revolugo.hotelroomoffersearchmenu.DkgMeNm4.min.js → revolugo.hotelroomoffersearchmenu.sFJ7doLC.min.js} +4 -4
  24. package/dist/{revolugo.hotelroomoffersview.DZ06By_B.min.js → revolugo.hotelroomoffersview.CvQkSTNx.min.js} +4 -4
  25. package/dist/{revolugo.langpickerbtn.BzWCk9DS.min.js → revolugo.langpickerbtn.SdsnUOWh.min.js} +5 -5
  26. package/dist/revolugo.min.js +48 -48
  27. package/dist/{revolugo.prebookform.BU-u0O-X.min.js → revolugo.prebookform.OccnI8E8.min.js} +4 -4
  28. package/dist/revolugo.preferencesmenu.D3xsb3G6.min.js +935 -0
  29. package/dist/{revolugo.revolugoelements.DPGgrgo4.min.js → revolugo.revolugoelements.B1EN0WpP.min.js} +31141 -31300
  30. package/dist/{revolugo.roominglisteditor.Cmu1kYWG.min.js → revolugo.roominglisteditor.C2AB4Cuj.min.js} +4 -4
  31. package/dist/{revolugo.storybooktoolbar.Dyt2F0Zc.min.js → revolugo.storybooktoolbar.Dx3q45iR.min.js} +388 -402
  32. package/dist/{revolugo.termsandconditions.D1IGmfJJ.min.js → revolugo.termsandconditions.Cbw1PP4k.min.js} +4 -4
  33. package/dist/{revolugo.ui.g6F3wz67.min.js → revolugo.ui.Da1LEfUr.min.js} +38720 -38909
  34. package/dist/{revolugo.vtoolbar.CaarHOxa.min.js → revolugo.vtoolbar.CEan0y9i.min.js} +2 -2
  35. package/dist/{revolugo.webcomponentwrapper.CVWQviIn.min.js → revolugo.webcomponentwrapper.X_eOWVoX.min.js} +71 -79
  36. package/dist/{revolugo2.preferencesmenu.CdLvBcfl.min.js → revolugo2.preferencesmenu.CDi-RuYb.min.js} +4 -4
  37. package/package.json +3 -3
  38. package/dist/revolugo.bookingpaymentform.ikZAMiX-.min.js +0 -5158
  39. package/dist/revolugo.preferencesmenu.TDhRntw5.min.js +0 -958
@@ -1,7 +1,7 @@
1
- import { $n as ye, $t as Ee, Br as be, Dn as _e, Dr as $, It as ke, Kn as Se, Mn as ie, Mt as Ce, Nr as ae, Sr as U, Tr as r, Ur as I, br as ne, fi as C, fn as G, fr as q, mr as J, pi as we, pn as Q, pr as oe, qr as D, ri as u, vi as V, vr as F, wi as Ae, wr as S, yr as Le, zt as xe } from "./revolugo.theme.D5jNLMuT.min.js";
2
- import { n as Oe } from "./revolugo.revolugo-config.0Ycse9HK.min.js";
3
- import { $t as re, D as B, F as se, N as Ke, Rt as X, T as le, Wt as H, en as N, et as de, mt as Ve, nn as Y, ot as ue, q as x, rt as ce, tn as pe } from "./revolugo.ui.g6F3wz67.min.js";
4
- import { t as Ie } from "./revolugo.webcomponentwrapper.CVWQviIn.min.js";
1
+ import { $n as ye, $t as Ee, Br as be, Dn as ke, Dr as N, It as Se, Kn as Ce, Mn as ie, Mt as we, Nr as ae, Sr as U, Tr as r, Ur as I, br as ne, fi as w, fn as G, fr as q, mr as J, pi as Ae, pn as Q, pr as oe, qr as D, ri as u, vi as K, vr as F, wi as _e, wr as C, yr as Le, zt as Oe } from "./revolugo.theme.D5jNLMuT.min.js";
2
+ import { n as xe } from "./revolugo.revolugo-config.0Ycse9HK.min.js";
3
+ import { $t as re, D as B, F as se, N as Ve, Rt as X, T as le, Wt as H, en as $, et as de, mt as Ke, nn as Y, ot as ue, q as O, rt as ce, tn as pe } from "./revolugo.ui.Da1LEfUr.min.js";
4
+ import { t as Ie } from "./revolugo.webcomponentwrapper.X_eOWVoX.min.js";
5
5
  import { t as Me } from "./revolugo.dist.DAUsz4Fo.min.js";
6
6
  function he(e) {
7
7
  try {
@@ -23,10 +23,10 @@ function he(e) {
23
23
  console.error("[revolugo-elements] ", t);
24
24
  }
25
25
  }
26
- var _ = {}, Z;
26
+ var k = {}, Z;
27
27
  function Te() {
28
- if (Z) return _;
29
- Z = 1, Object.defineProperty(_, "__esModule", { value: !0 }), _.parseCookie = E, _.parse = E, _.stringifyCookie = c, _.stringifySetCookie = O, _.serialize = O, _.parseSetCookie = v, _.stringifySetCookie = O, _.serialize = O;
28
+ if (Z) return k;
29
+ Z = 1, Object.defineProperty(k, "__esModule", { value: !0 }), k.parseCookie = E, k.parse = E, k.stringifyCookie = c, k.stringifySetCookie = x, k.serialize = x, k.parseSetCookie = v, k.stringifySetCookie = x, k.serialize = x;
30
30
  const e = /^[\u0021-\u003A\u003C\u003E-\u007E]+$/, t = /^[\u0021-\u003A\u003C-\u007E]*$/, s = /^([.]?[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)([.][a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)*$/i, n = /^[\u0020-\u003A\u003D-\u007E]*$/, g = /^-?\d+$/, y = Object.prototype.toString, f = /* @__PURE__ */ (() => {
31
31
  const a = function() {
32
32
  };
@@ -35,18 +35,18 @@ function Te() {
35
35
  function E(a, p) {
36
36
  const m = new f(), i = a.length;
37
37
  if (i < 2) return m;
38
- const o = p?.decode || A;
38
+ const o = p?.decode || _;
39
39
  let l = 0;
40
40
  do {
41
- const d = K(a, l, i);
41
+ const d = V(a, l, i);
42
42
  if (d === -1) break;
43
- const k = w(a, l, i);
44
- if (d > k) {
43
+ const S = A(a, l, i);
44
+ if (d > S) {
45
45
  l = a.lastIndexOf(";", d - 1) + 1;
46
46
  continue;
47
47
  }
48
48
  const L = h(a, l, d);
49
- m[L] === void 0 && (m[L] = o(h(a, d + 1, k))), l = k + 1;
49
+ m[L] === void 0 && (m[L] = o(h(a, d + 1, S))), l = S + 1;
50
50
  } while (l < i);
51
51
  return m;
52
52
  }
@@ -62,7 +62,7 @@ function Te() {
62
62
  }
63
63
  return i.join("; ");
64
64
  }
65
- function O(a, p, m) {
65
+ function x(a, p, m) {
66
66
  const i = typeof a == "object" ? a : {
67
67
  ...m,
68
68
  name: a,
@@ -118,16 +118,16 @@ function Te() {
118
118
  return d;
119
119
  }
120
120
  function v(a, p) {
121
- const m = p?.decode || A, i = a.length, o = w(a, 0, i), l = K(a, 0, o), d = l === -1 ? {
121
+ const m = p?.decode || _, i = a.length, o = A(a, 0, i), l = V(a, 0, o), d = l === -1 ? {
122
122
  name: "",
123
123
  value: m(h(a, 0, o))
124
124
  } : {
125
125
  name: h(a, 0, l),
126
126
  value: m(h(a, l + 1, o))
127
127
  };
128
- let k = o + 1;
129
- for (; k < i; ) {
130
- const L = w(a, k, i), M = K(a, k, L), ge = M === -1 ? h(a, k, L) : h(a, k, M), b = M === -1 ? void 0 : h(a, M + 1, L);
128
+ let S = o + 1;
129
+ for (; S < i; ) {
130
+ const L = A(a, S, i), M = V(a, S, L), ge = M === -1 ? h(a, S, L) : h(a, S, M), b = M === -1 ? void 0 : h(a, M + 1, L);
131
131
  switch (ge.toLowerCase()) {
132
132
  case "httponly":
133
133
  d.httpOnly = !0;
@@ -163,15 +163,15 @@ function Te() {
163
163
  (R === "lax" || R === "strict" || R === "none") && (d.sameSite = R);
164
164
  break;
165
165
  }
166
- k = L + 1;
166
+ S = L + 1;
167
167
  }
168
168
  return d;
169
169
  }
170
- function w(a, p, m) {
170
+ function A(a, p, m) {
171
171
  const i = a.indexOf(";", p);
172
172
  return i === -1 ? m : i;
173
173
  }
174
- function K(a, p, m) {
174
+ function V(a, p, m) {
175
175
  const i = a.indexOf("=", p);
176
176
  return i < m ? i : -1;
177
177
  }
@@ -188,7 +188,7 @@ function Te() {
188
188
  }
189
189
  return a.slice(i, o);
190
190
  }
191
- function A(a) {
191
+ function _(a) {
192
192
  if (a.indexOf("%") === -1) return a;
193
193
  try {
194
194
  return decodeURIComponent(a);
@@ -199,7 +199,7 @@ function Te() {
199
199
  function j(a) {
200
200
  return y.call(a) === "[object Date]";
201
201
  }
202
- return _;
202
+ return k;
203
203
  }
204
204
  var P = /* @__PURE__ */ Te();
205
205
  function Re() {
@@ -290,9 +290,9 @@ var De = class {
290
290
  function fe(e, { doNotParse: t = !1, autoUpdateDependencies: s = !1 } = {}, n = new De()) {
291
291
  const g = s ? [...e || []] : e;
292
292
  let y = n.getAll({ doNotParse: !0 });
293
- const f = we(0), E = () => {
293
+ const f = Ae(0), E = () => {
294
294
  const c = n.getAll({ doNotParse: !0 });
295
- Ne(g || null, c, y) && f.value++, y = c;
295
+ $e(g || null, c, y) && f.value++, y = c;
296
296
  };
297
297
  return n.addChangeListener(E), Me(() => {
298
298
  n.removeChangeListener(E);
@@ -311,13 +311,13 @@ function fe(e, { doNotParse: t = !1, autoUpdateDependencies: s = !1 } = {}, n =
311
311
  removeChangeListener: (...c) => n.removeChangeListener(...c)
312
312
  };
313
313
  }
314
- function Ne(e, t, s) {
314
+ function $e(e, t, s) {
315
315
  if (!e) return !0;
316
316
  for (const n of e) if (t[n] !== s[n]) return !0;
317
317
  return !1;
318
318
  }
319
- var me = $({
320
- components: { BTag: Ve },
319
+ var me = N({
320
+ components: { BTag: Ke },
321
321
  methods: {
322
322
  closeDialog() {
323
323
  this.dialog = !1, this.apiKey = this.cookies.get("apiKey");
@@ -327,7 +327,7 @@ var me = $({
327
327
  const e = new ye({
328
328
  apiEnvironment: window.RevolugoElements.config.apiEnvironment,
329
329
  apiKey: this.apiKey,
330
- apiVersion: Se.V1,
330
+ apiVersion: Ce.V1,
331
331
  optionalHeaders: window.RevolugoElements.config.optionalHeaders
332
332
  });
333
333
  try {
@@ -357,239 +357,232 @@ var me = $({
357
357
  this.$refs.apiKeyEditorForm.validate();
358
358
  }
359
359
  },
360
- mixins: [ke(["config.apiEnvironment"], "updateApiKey", {
360
+ mixins: [Se(["config.apiEnvironment"], "updateApiKey", {
361
361
  deep: !0,
362
362
  immediate: !0
363
- }), xe],
363
+ }), Oe],
364
364
  name: "ApiKeyEditor",
365
365
  setup() {
366
- const e = fe(["apiKey"]), { t } = ie(), s = C(e.get("apiKey")), n = F(() => window.RevolugoElements.config.apiEnvironment);
366
+ const e = fe(["apiKey"]), { t } = ie(), s = w(e.get("apiKey")), n = F(() => window.RevolugoElements.config.apiEnvironment);
367
367
  return {
368
368
  apiKey: s,
369
369
  apiKeyRules: F(() => [(g) => !!g || `A valid API Key is required. ${t("ApiKeyEditor.hint", { environment: n.value })}`]),
370
370
  cookies: e,
371
- dialog: C(!1),
372
- isFormValid: C(!1),
373
- isLoading: C(!1),
371
+ dialog: w(!1),
372
+ isFormValid: w(!1),
373
+ isLoading: w(!1),
374
374
  t
375
375
  };
376
376
  }
377
- });
378
- function ee(e) {
379
- const t = e;
380
- t.__i18n = t.__i18n || [], t.__i18n.push({
381
- locale: "",
382
- resource: {
383
- "en-US": { ApiKeyEditor: {
384
- hint: {
385
- t: 0,
386
- b: {
387
- t: 2,
388
- i: [
389
- {
390
- t: 3,
391
- v: "Please, put your Publishable API Key for "
392
- },
393
- {
394
- t: 4,
395
- k: "environment"
396
- },
397
- {
398
- t: 3,
399
- v: " environment"
400
- }
401
- ]
377
+ }), ee = {
378
+ "en-US": { ApiKeyEditor: {
379
+ hint: {
380
+ t: 0,
381
+ b: {
382
+ t: 2,
383
+ i: [
384
+ {
385
+ t: 3,
386
+ v: "Please, put your Publishable API Key for "
387
+ },
388
+ {
389
+ t: 4,
390
+ k: "environment"
391
+ },
392
+ {
393
+ t: 3,
394
+ v: " environment"
402
395
  }
403
- },
404
- invalid: {
405
- t: 0,
406
- b: {
407
- t: 2,
408
- i: [{ t: 3 }],
409
- s: "Provided API Key credential is not valid"
410
- }
411
- }
412
- } },
413
- "fr-FR": { ApiKeyEditor: {
414
- hint: {
415
- t: 0,
416
- b: {
417
- t: 2,
418
- i: [{
419
- t: 3,
420
- v: "Indiquez votre clé API Publishable pour l'environnement "
421
- }, {
422
- t: 4,
423
- k: "environment"
424
- }]
425
- }
426
- },
427
- invalid: {
428
- t: 0,
429
- b: {
430
- t: 2,
431
- i: [{ t: 3 }],
432
- s: "La clé API renseignée est invalide."
433
- }
434
- }
435
- } },
436
- "de-DE": { ApiKeyEditor: {
437
- hint: {
438
- t: 0,
439
- b: {
440
- t: 2,
441
- i: [
442
- {
443
- t: 3,
444
- v: "Bitte gib deinen Veröffentlichen API-Schlüssel für die "
445
- },
446
- {
447
- t: 4,
448
- k: "environment"
449
- },
450
- {
451
- t: 3,
452
- v: " Umgebung an"
453
- }
454
- ]
455
- }
456
- },
457
- invalid: {
458
- t: 0,
459
- b: {
460
- t: 2,
461
- i: [{ t: 3 }],
462
- s: "Der angegebene API-Schlüssel ist ungültig"
463
- }
464
- }
465
- } },
466
- "es-ES": { ApiKeyEditor: {
467
- hint: {
468
- t: 0,
469
- b: {
470
- t: 2,
471
- i: [{
472
- t: 3,
473
- v: "Por favor, introduzca su clave API pública para el entorno "
474
- }, {
475
- t: 4,
476
- k: "environment"
477
- }]
478
- }
479
- },
480
- invalid: {
481
- t: 0,
482
- b: {
483
- t: 2,
484
- i: [{ t: 3 }],
485
- s: "La clave API proporcionada no es válida"
486
- }
487
- }
488
- } },
489
- "it-IT": { ApiKeyEditor: {
490
- hint: {
491
- t: 0,
492
- b: {
493
- t: 2,
494
- i: [{
495
- t: 3,
496
- v: "Inserisci la tua chiave API pubblica per l'ambiente "
497
- }, {
498
- t: 4,
499
- k: "environment"
500
- }]
501
- }
502
- },
503
- invalid: {
504
- t: 0,
505
- b: {
506
- t: 2,
507
- i: [{ t: 3 }],
508
- s: "La chiave API fornita non è valida"
509
- }
510
- }
511
- } },
512
- "nl-NL": { ApiKeyEditor: {
513
- hint: {
514
- t: 0,
515
- b: {
516
- t: 2,
517
- i: [
518
- {
519
- t: 3,
520
- v: "Vul hier uw Publishable API Key in voor de "
521
- },
522
- {
523
- t: 4,
524
- k: "environment"
525
- },
526
- {
527
- t: 3,
528
- v: " omgeving"
529
- }
530
- ]
531
- }
532
- },
533
- invalid: {
534
- t: 0,
535
- b: {
536
- t: 2,
537
- i: [{ t: 3 }],
538
- s: "De opgegeven API Key is ongeldig"
539
- }
540
- }
541
- } },
542
- "pt-PT": { ApiKeyEditor: {
543
- hint: {
544
- t: 0,
545
- b: {
546
- t: 2,
547
- i: [{
548
- t: 3,
549
- v: "Por favor, coloque a sua chave API Publicável para o ambiente "
550
- }, {
551
- t: 4,
552
- k: "environment"
553
- }]
396
+ ]
397
+ }
398
+ },
399
+ invalid: {
400
+ t: 0,
401
+ b: {
402
+ t: 2,
403
+ i: [{ t: 3 }],
404
+ s: "Provided API Key credential is not valid"
405
+ }
406
+ }
407
+ } },
408
+ "fr-FR": { ApiKeyEditor: {
409
+ hint: {
410
+ t: 0,
411
+ b: {
412
+ t: 2,
413
+ i: [{
414
+ t: 3,
415
+ v: "Indiquez votre clé API Publishable pour l'environnement "
416
+ }, {
417
+ t: 4,
418
+ k: "environment"
419
+ }]
420
+ }
421
+ },
422
+ invalid: {
423
+ t: 0,
424
+ b: {
425
+ t: 2,
426
+ i: [{ t: 3 }],
427
+ s: "La clé API renseignée est invalide."
428
+ }
429
+ }
430
+ } },
431
+ "de-DE": { ApiKeyEditor: {
432
+ hint: {
433
+ t: 0,
434
+ b: {
435
+ t: 2,
436
+ i: [
437
+ {
438
+ t: 3,
439
+ v: "Bitte gib deinen Veröffentlichen API-Schlüssel für die "
440
+ },
441
+ {
442
+ t: 4,
443
+ k: "environment"
444
+ },
445
+ {
446
+ t: 3,
447
+ v: " Umgebung an"
554
448
  }
555
- },
556
- invalid: {
557
- t: 0,
558
- b: {
559
- t: 2,
560
- i: [{ t: 3 }],
561
- s: "A credencial da chave API fornecida não é válida"
449
+ ]
450
+ }
451
+ },
452
+ invalid: {
453
+ t: 0,
454
+ b: {
455
+ t: 2,
456
+ i: [{ t: 3 }],
457
+ s: "Der angegebene API-Schlüssel ist ungültig"
458
+ }
459
+ }
460
+ } },
461
+ "es-ES": { ApiKeyEditor: {
462
+ hint: {
463
+ t: 0,
464
+ b: {
465
+ t: 2,
466
+ i: [{
467
+ t: 3,
468
+ v: "Por favor, introduzca su clave API pública para el entorno "
469
+ }, {
470
+ t: 4,
471
+ k: "environment"
472
+ }]
473
+ }
474
+ },
475
+ invalid: {
476
+ t: 0,
477
+ b: {
478
+ t: 2,
479
+ i: [{ t: 3 }],
480
+ s: "La clave API proporcionada no es válida"
481
+ }
482
+ }
483
+ } },
484
+ "it-IT": { ApiKeyEditor: {
485
+ hint: {
486
+ t: 0,
487
+ b: {
488
+ t: 2,
489
+ i: [{
490
+ t: 3,
491
+ v: "Inserisci la tua chiave API pubblica per l'ambiente "
492
+ }, {
493
+ t: 4,
494
+ k: "environment"
495
+ }]
496
+ }
497
+ },
498
+ invalid: {
499
+ t: 0,
500
+ b: {
501
+ t: 2,
502
+ i: [{ t: 3 }],
503
+ s: "La chiave API fornita non è valida"
504
+ }
505
+ }
506
+ } },
507
+ "nl-NL": { ApiKeyEditor: {
508
+ hint: {
509
+ t: 0,
510
+ b: {
511
+ t: 2,
512
+ i: [
513
+ {
514
+ t: 3,
515
+ v: "Vul hier uw Publishable API Key in voor de "
516
+ },
517
+ {
518
+ t: 4,
519
+ k: "environment"
520
+ },
521
+ {
522
+ t: 3,
523
+ v: " omgeving"
562
524
  }
563
- }
564
- } }
525
+ ]
526
+ }
527
+ },
528
+ invalid: {
529
+ t: 0,
530
+ b: {
531
+ t: 2,
532
+ i: [{ t: 3 }],
533
+ s: "De opgegeven API Key is ongeldig"
534
+ }
565
535
  }
566
- });
567
- }
568
- function $e(e, t, s, n, g, y) {
536
+ } },
537
+ "pt-PT": { ApiKeyEditor: {
538
+ hint: {
539
+ t: 0,
540
+ b: {
541
+ t: 2,
542
+ i: [{
543
+ t: 3,
544
+ v: "Por favor, coloque a sua chave API Publicável para o ambiente "
545
+ }, {
546
+ t: 4,
547
+ k: "environment"
548
+ }]
549
+ }
550
+ },
551
+ invalid: {
552
+ t: 0,
553
+ b: {
554
+ t: 2,
555
+ i: [{ t: 3 }],
556
+ s: "A credencial da chave API fornecida não é válida"
557
+ }
558
+ }
559
+ } }
560
+ };
561
+ function Ne(e, t, s, n, g, y) {
569
562
  return I(), U("div", null, [r(se, {
570
563
  modelValue: e.dialog,
571
564
  "onUpdate:modelValue": t[2] || (t[2] = (f) => e.dialog = f),
572
565
  attach: e.$dialogAttach || void 0,
573
566
  "max-width": "600px"
574
567
  }, {
575
- activator: u(({ props: f }) => [r(x, ae(f, {
568
+ activator: u(({ props: f }) => [r(O, ae(f, {
576
569
  color: e.cookies.get("apiKey") ? "success" : "warning",
577
570
  elevation: "0",
578
571
  size: "x-small"
579
572
  }), {
580
573
  default: u(() => [e.cookies.get("apiKey") ? (I(), U(J, { key: 1 }, [r(X, { class: "mr-2" }, {
581
- default: u(() => [...t[5] || (t[5] = [S("fas fa-check", -1)])]),
574
+ default: u(() => [...t[5] || (t[5] = [C("fas fa-check", -1)])]),
582
575
  _: 1
583
- }), t[6] || (t[6] = S(" Valid API key ", -1))], 64)) : (I(), U(J, { key: 0 }, [r(X, { class: "mr-2" }, {
584
- default: u(() => [...t[3] || (t[3] = [S("fas fa-exclamation", -1)])]),
576
+ }), t[6] || (t[6] = C(" Valid API key ", -1))], 64)) : (I(), U(J, { key: 0 }, [r(X, { class: "mr-2" }, {
577
+ default: u(() => [...t[3] || (t[3] = [C("fas fa-exclamation", -1)])]),
585
578
  _: 1
586
- }), t[4] || (t[4] = S(" No API key provided ", -1))], 64))]),
579
+ }), t[4] || (t[4] = C(" No API key provided ", -1))], 64))]),
587
580
  _: 1
588
581
  }, 16, ["color"])]),
589
582
  default: u(() => [r(de, null, {
590
583
  default: u(() => [r(ce, { class: "pa-4" }, {
591
584
  default: u(() => [r(Y, { class: "pa-0" }, {
592
- default: u(() => [r(N, { "no-gutters": "" }, {
585
+ default: u(() => [r($, { "no-gutters": "" }, {
593
586
  default: u(() => [r(pe, null, {
594
587
  default: u(() => [r(le, {
595
588
  ref: "apiKeyEditorForm",
@@ -627,16 +620,16 @@ function $e(e, t, s, n, g, y) {
627
620
  }), r(ue, null, {
628
621
  default: u(() => [
629
622
  r(re),
630
- r(x, {
623
+ r(O, {
631
624
  color: "blue-darken-1",
632
625
  size: "small",
633
626
  variant: "text",
634
627
  onClick: e.closeDialog
635
628
  }, {
636
- default: u(() => [...t[7] || (t[7] = [S(" Close ", -1)])]),
629
+ default: u(() => [...t[7] || (t[7] = [C(" Close ", -1)])]),
637
630
  _: 1
638
631
  }, 8, ["onClick"]),
639
- r(x, {
632
+ r(O, {
640
633
  class: "text-right",
641
634
  color: "primary",
642
635
  disabled: e.isLoading,
@@ -645,7 +638,7 @@ function $e(e, t, s, n, g, y) {
645
638
  size: "small",
646
639
  onClick: e.onSubmit
647
640
  }, {
648
- default: u(() => [...t[8] || (t[8] = [S(" Save ", -1)])]),
641
+ default: u(() => [...t[8] || (t[8] = [C(" Save ", -1)])]),
649
642
  _: 1
650
643
  }, 8, [
651
644
  "disabled",
@@ -661,21 +654,21 @@ function $e(e, t, s, n, g, y) {
661
654
  }, 8, ["modelValue", "attach"])]);
662
655
  }
663
656
  typeof ee == "function" && ee(me);
664
- var je = /* @__PURE__ */ H(me, [["render", $e]]), ve = /* @__PURE__ */ $({
657
+ var je = /* @__PURE__ */ H(me, [["render", Ne]]), ve = /* @__PURE__ */ N({
665
658
  __name: "EventMetadataEditor",
666
659
  setup(e) {
667
- const { config: t, updateConfig: s } = Oe(), n = fe(["eventMetadata"]), { isFetching: g } = _e(Ee()), { t: y } = ie(), f = C(null), { $dialogAttach: E } = Ce(f), c = [(i) => {
660
+ const { config: t, updateConfig: s } = xe(), n = fe(["eventMetadata"]), { isFetching: g } = ke(Ee()), { t: y } = ie(), f = w(null), { $dialogAttach: E } = we(f), c = [(i) => {
668
661
  if (!i) return !0;
669
662
  try {
670
663
  return !!new URL(i) || y("EventMetadataEditor.validation.imageURL");
671
664
  } catch {
672
665
  return y("EventMetadataEditor.validation.imageURL");
673
666
  }
674
- }], O = [(i) => !!i || y("EventMetadataEditor.validation.name")], v = C(n.get("eventMetadata") || {
667
+ }], x = [(i) => !!i || y("EventMetadataEditor.validation.name")], v = w(n.get("eventMetadata") || {
675
668
  dateEnd: (0, Q.default)().add(1, "day").format("YYYY-MM-DD").toString(),
676
669
  dateStart: (0, Q.default)().format("YYYY-MM-DD").toString(),
677
670
  name: ""
678
- }), w = C(!1), K = C(!1), h = F({
671
+ }), A = w(!1), V = w(!1), h = F({
679
672
  get() {
680
673
  return !v.value.dateStart || !v.value.dateEnd ? [] : G(v.value.dateStart, v.value.dateEnd);
681
674
  },
@@ -683,8 +676,8 @@ var je = /* @__PURE__ */ H(me, [["render", $e]]), ve = /* @__PURE__ */ $({
683
676
  [v.value.dateStart, v.value.dateEnd] = G(...i);
684
677
  }
685
678
  });
686
- function A() {
687
- w.value = !1;
679
+ function _() {
680
+ A.value = !1;
688
681
  }
689
682
  function j() {
690
683
  return !(!v.value.name?.length || !h.value[0] || !h.value[1]);
@@ -693,16 +686,16 @@ var je = /* @__PURE__ */ H(me, [["render", $e]]), ve = /* @__PURE__ */ $({
693
686
  j() && (s({
694
687
  ...t.value,
695
688
  eventMetadata: v.value
696
- }), n.set("eventMetadata", JSON.stringify(v)), A());
689
+ }), n.set("eventMetadata", JSON.stringify(v)), _());
697
690
  }
698
691
  function p() {
699
- a(), A();
692
+ a(), _();
700
693
  }
701
694
  function m() {
702
695
  n.remove("eventMetadata"), v.value = {}, s({
703
696
  ...t.value,
704
697
  eventMetadata: {}
705
- }), A();
698
+ }), _();
706
699
  }
707
700
  return be(() => {
708
701
  n.get("eventMetadata") && s({
@@ -713,29 +706,29 @@ var je = /* @__PURE__ */ H(me, [["render", $e]]), ve = /* @__PURE__ */ $({
713
706
  ref_key: "root",
714
707
  ref: f
715
708
  }, [r(se, {
716
- modelValue: w.value,
717
- "onUpdate:modelValue": o[4] || (o[4] = (l) => w.value = l),
718
- attach: V(E),
709
+ modelValue: A.value,
710
+ "onUpdate:modelValue": o[4] || (o[4] = (l) => A.value = l),
711
+ attach: K(E),
719
712
  height: "600px",
720
713
  "max-width": "600px"
721
714
  }, {
722
- activator: u(({ props: l }) => [r(x, ae(l, {
723
- color: V(n).get("eventMetadata") ? "success" : "warning",
715
+ activator: u(({ props: l }) => [r(O, ae(l, {
716
+ color: K(n).get("eventMetadata") ? "success" : "warning",
724
717
  elevation: "0",
725
718
  size: "x-small"
726
719
  }), {
727
- default: u(() => [S(Ae(v.value?.name ? `EVENT : ${v.value?.name}` : "ADD EVENT METADATA"), 1)]),
720
+ default: u(() => [C(_e(v.value?.name ? `EVENT : ${v.value?.name}` : "ADD EVENT METADATA"), 1)]),
728
721
  _: 1
729
722
  }, 16, ["color"])]),
730
723
  default: u(() => [r(de, null, {
731
724
  default: u(() => [r(ce, { class: "pa-4" }, {
732
725
  default: u(() => [r(Y, { class: "pa-0" }, {
733
- default: u(() => [r(N, { "no-gutters": "" }, {
726
+ default: u(() => [r($, { "no-gutters": "" }, {
734
727
  default: u(() => [r(pe, null, {
735
728
  default: u(() => [r(le, {
736
729
  ref: "eventMetadataEditorForm",
737
- modelValue: K.value,
738
- "onUpdate:modelValue": o[3] || (o[3] = (l) => K.value = l),
730
+ modelValue: V.value,
731
+ "onUpdate:modelValue": o[3] || (o[3] = (l) => V.value = l),
739
732
  class: "m-0",
740
733
  onSubmit: oe(p, ["prevent"])
741
734
  }, {
@@ -747,7 +740,7 @@ var je = /* @__PURE__ */ H(me, [["render", $e]]), ve = /* @__PURE__ */ $({
747
740
  label: "Name of the event",
748
741
  "persistent-hint": "",
749
742
  required: "",
750
- rules: O,
743
+ rules: x,
751
744
  variant: "outlined",
752
745
  onKeyup: q(p, ["enter"])
753
746
  }, null, 8, ["modelValue"]),
@@ -761,8 +754,8 @@ var je = /* @__PURE__ */ H(me, [["render", $e]]), ve = /* @__PURE__ */ $({
761
754
  variant: "outlined",
762
755
  onKeyup: q(p, ["enter"])
763
756
  }, null, 8, ["modelValue"]),
764
- r(N, null, {
765
- default: u(() => [r(Ke, {
757
+ r($, null, {
758
+ default: u(() => [r(Ve, {
766
759
  modelValue: h.value,
767
760
  "onUpdate:modelValue": o[2] || (o[2] = (l) => h.value = l)
768
761
  }, null, 8, ["modelValue"])]),
@@ -781,35 +774,35 @@ var je = /* @__PURE__ */ H(me, [["render", $e]]), ve = /* @__PURE__ */ $({
781
774
  }), r(ue, null, {
782
775
  default: u(() => [
783
776
  r(re),
784
- r(x, {
777
+ r(O, {
785
778
  color: "grey",
786
779
  size: "small",
787
780
  variant: "text",
788
- onClick: A
781
+ onClick: _
789
782
  }, {
790
- default: u(() => [...o[5] || (o[5] = [S(" Close ", -1)])]),
783
+ default: u(() => [...o[5] || (o[5] = [C(" Close ", -1)])]),
791
784
  _: 1
792
785
  }),
793
- r(x, {
786
+ r(O, {
794
787
  color: "error",
795
- disabled: V(g),
796
- loading: V(g),
788
+ disabled: K(g),
789
+ loading: K(g),
797
790
  size: "small",
798
791
  variant: "text",
799
792
  onClick: m
800
793
  }, {
801
- default: u(() => [...o[6] || (o[6] = [S(" Reset ", -1)])]),
794
+ default: u(() => [...o[6] || (o[6] = [C(" Reset ", -1)])]),
802
795
  _: 1
803
796
  }, 8, ["disabled", "loading"]),
804
- r(x, {
797
+ r(O, {
805
798
  color: "success",
806
- disabled: V(g),
807
- loading: V(g),
799
+ disabled: K(g),
800
+ loading: K(g),
808
801
  size: "small",
809
802
  variant: "flat",
810
803
  onClick: p
811
804
  }, {
812
- default: u(() => [...o[7] || (o[7] = [S(" Save ", -1)])]),
805
+ default: u(() => [...o[7] || (o[7] = [C(" Save ", -1)])]),
813
806
  _: 1
814
807
  }, 8, ["disabled", "loading"])
815
808
  ]),
@@ -820,143 +813,136 @@ var je = /* @__PURE__ */ H(me, [["render", $e]]), ve = /* @__PURE__ */ $({
820
813
  _: 1
821
814
  }, 8, ["modelValue", "attach"])], 512));
822
815
  }
823
- });
824
- function te(e) {
825
- const t = e;
826
- t.__i18n = t.__i18n || [], t.__i18n.push({
827
- locale: "",
828
- resource: {
829
- "en-US": { EventMetadataEditor: { validation: {
830
- imageURL: {
831
- t: 0,
832
- b: {
833
- t: 2,
834
- i: [{ t: 3 }],
835
- s: "Please provide a valid URL"
836
- }
837
- },
838
- name: {
839
- t: 0,
840
- b: {
841
- t: 2,
842
- i: [{ t: 3 }],
843
- s: "Please provide a name"
844
- }
845
- }
846
- } } },
847
- "fr-FR": { EventMetadataEditor: { validation: {
848
- imageURL: {
849
- t: 0,
850
- b: {
851
- t: 2,
852
- i: [{ t: 3 }],
853
- s: "Veuillez fournir une URL valide d'image"
854
- }
855
- },
856
- name: {
857
- t: 0,
858
- b: {
859
- t: 2,
860
- i: [{ t: 3 }],
861
- s: "Veuillez entrer le nom de l'événement"
862
- }
863
- }
864
- } } },
865
- "de-DE": { EventMetadataEditor: { validation: {
866
- imageURL: {
867
- t: 0,
868
- b: {
869
- t: 2,
870
- i: [{ t: 3 }],
871
- s: "Bitte geben Sie eine gültige URL an"
872
- }
873
- },
874
- name: {
875
- t: 0,
876
- b: {
877
- t: 2,
878
- i: [{ t: 3 }],
879
- s: "Bitte geben Sie einen Namen an"
880
- }
881
- }
882
- } } },
883
- "es-ES": { EventMetadataEditor: { validation: {
884
- imageURL: {
885
- t: 0,
886
- b: {
887
- t: 2,
888
- i: [{ t: 3 }],
889
- s: "Por favor, introduce una URL válida"
890
- }
891
- },
892
- name: {
893
- t: 0,
894
- b: {
895
- t: 2,
896
- i: [{ t: 3 }],
897
- s: "Por favor, introduce un nombre"
898
- }
899
- }
900
- } } },
901
- "it-IT": { EventMetadataEditor: { validation: {
902
- imageURL: {
903
- t: 0,
904
- b: {
905
- t: 2,
906
- i: [{ t: 3 }],
907
- s: "Inserisci un URL valido"
908
- }
909
- },
910
- name: {
911
- t: 0,
912
- b: {
913
- t: 2,
914
- i: [{ t: 3 }],
915
- s: "Inserisci un nome"
916
- }
917
- }
918
- } } },
919
- "nl-NL": { EventMetadataEditor: { validation: {
920
- imageURL: {
921
- t: 0,
922
- b: {
923
- t: 2,
924
- i: [{ t: 3 }],
925
- s: "Geef een geldige URL op"
926
- }
927
- },
928
- name: {
929
- t: 0,
930
- b: {
931
- t: 2,
932
- i: [{ t: 3 }],
933
- s: "Geef een naam op"
934
- }
935
- }
936
- } } },
937
- "pt-PT": { EventMetadataEditor: { validation: {
938
- imageURL: {
939
- t: 0,
940
- b: {
941
- t: 2,
942
- i: [{ t: 3 }],
943
- s: "Por favor, introduza um URL válido"
944
- }
945
- },
946
- name: {
947
- t: 0,
948
- b: {
949
- t: 2,
950
- i: [{ t: 3 }],
951
- s: "Por favor, introduza um nome"
952
- }
953
- }
954
- } } }
816
+ }), te = {
817
+ "en-US": { EventMetadataEditor: { validation: {
818
+ imageURL: {
819
+ t: 0,
820
+ b: {
821
+ t: 2,
822
+ i: [{ t: 3 }],
823
+ s: "Please provide a valid URL"
824
+ }
825
+ },
826
+ name: {
827
+ t: 0,
828
+ b: {
829
+ t: 2,
830
+ i: [{ t: 3 }],
831
+ s: "Please provide a name"
832
+ }
955
833
  }
956
- });
957
- }
834
+ } } },
835
+ "fr-FR": { EventMetadataEditor: { validation: {
836
+ imageURL: {
837
+ t: 0,
838
+ b: {
839
+ t: 2,
840
+ i: [{ t: 3 }],
841
+ s: "Veuillez fournir une URL valide d'image"
842
+ }
843
+ },
844
+ name: {
845
+ t: 0,
846
+ b: {
847
+ t: 2,
848
+ i: [{ t: 3 }],
849
+ s: "Veuillez entrer le nom de l'événement"
850
+ }
851
+ }
852
+ } } },
853
+ "de-DE": { EventMetadataEditor: { validation: {
854
+ imageURL: {
855
+ t: 0,
856
+ b: {
857
+ t: 2,
858
+ i: [{ t: 3 }],
859
+ s: "Bitte geben Sie eine gültige URL an"
860
+ }
861
+ },
862
+ name: {
863
+ t: 0,
864
+ b: {
865
+ t: 2,
866
+ i: [{ t: 3 }],
867
+ s: "Bitte geben Sie einen Namen an"
868
+ }
869
+ }
870
+ } } },
871
+ "es-ES": { EventMetadataEditor: { validation: {
872
+ imageURL: {
873
+ t: 0,
874
+ b: {
875
+ t: 2,
876
+ i: [{ t: 3 }],
877
+ s: "Por favor, introduce una URL válida"
878
+ }
879
+ },
880
+ name: {
881
+ t: 0,
882
+ b: {
883
+ t: 2,
884
+ i: [{ t: 3 }],
885
+ s: "Por favor, introduce un nombre"
886
+ }
887
+ }
888
+ } } },
889
+ "it-IT": { EventMetadataEditor: { validation: {
890
+ imageURL: {
891
+ t: 0,
892
+ b: {
893
+ t: 2,
894
+ i: [{ t: 3 }],
895
+ s: "Inserisci un URL valido"
896
+ }
897
+ },
898
+ name: {
899
+ t: 0,
900
+ b: {
901
+ t: 2,
902
+ i: [{ t: 3 }],
903
+ s: "Inserisci un nome"
904
+ }
905
+ }
906
+ } } },
907
+ "nl-NL": { EventMetadataEditor: { validation: {
908
+ imageURL: {
909
+ t: 0,
910
+ b: {
911
+ t: 2,
912
+ i: [{ t: 3 }],
913
+ s: "Geef een geldige URL op"
914
+ }
915
+ },
916
+ name: {
917
+ t: 0,
918
+ b: {
919
+ t: 2,
920
+ i: [{ t: 3 }],
921
+ s: "Geef een naam op"
922
+ }
923
+ }
924
+ } } },
925
+ "pt-PT": { EventMetadataEditor: { validation: {
926
+ imageURL: {
927
+ t: 0,
928
+ b: {
929
+ t: 2,
930
+ i: [{ t: 3 }],
931
+ s: "Por favor, introduza um URL válido"
932
+ }
933
+ },
934
+ name: {
935
+ t: 0,
936
+ b: {
937
+ t: 2,
938
+ i: [{ t: 3 }],
939
+ s: "Por favor, introduza um nome"
940
+ }
941
+ }
942
+ } } }
943
+ };
958
944
  typeof te == "function" && te(ve);
959
- var ze = ve, qe = $({
945
+ var ze = ve, qe = N({
960
946
  components: {
961
947
  ApiKeyEditor: je,
962
948
  EventMetadataEditor: ze
@@ -969,14 +955,14 @@ function Be(e, t, s, n, g, y) {
969
955
  class: "pa-0 mb-3",
970
956
  fluid: ""
971
957
  }, {
972
- default: u(() => [r(N, { "no-gutters": "" }, {
958
+ default: u(() => [r($, { "no-gutters": "" }, {
973
959
  default: u(() => [Le("div", Fe, [r(f), r(E)])]),
974
960
  _: 1
975
961
  })]),
976
962
  _: 1
977
963
  });
978
964
  }
979
- var He = /* @__PURE__ */ H(qe, [["render", Be]]), Ye = $({ components: {
965
+ var He = /* @__PURE__ */ H(qe, [["render", Be]]), Ye = N({ components: {
980
966
  StorybookExtraToolbar: He,
981
967
  WebComponentWrapper: Ie
982
968
  } });
@@ -993,4 +979,4 @@ export {
993
979
  et as default
994
980
  };
995
981
 
996
- //# sourceMappingURL=revolugo.storybooktoolbar.Dyt2F0Zc.min.js.map
982
+ //# sourceMappingURL=revolugo.storybooktoolbar.Dx3q45iR.min.js.map