@revolugo/elements 6.9.1-beta.0 → 6.9.1-beta.1

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