@revolugo/elements 6.9.0-beta.1 → 6.9.0-beta.3

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