react-easy-wall 1.0.13 → 1.0.16

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/cjs/_virtual/_commonjs-dynamic-modules.js +8 -0
  2. package/dist/cjs/_virtual/_commonjs-dynamic-modules.js.map +1 -0
  3. package/dist/cjs/_virtual/moment.js +12 -0
  4. package/dist/cjs/_virtual/moment.js.map +1 -0
  5. package/dist/cjs/_virtual/moment2.js +6 -0
  6. package/dist/cjs/_virtual/moment2.js.map +1 -0
  7. package/dist/cjs/components/panel/Panel.js +2 -2
  8. package/dist/cjs/components/panel/Panel.js.map +1 -1
  9. package/dist/cjs/components/panel/PanelButton.js +1 -1
  10. package/dist/cjs/components/panel/PanelButton.js.map +1 -1
  11. package/dist/cjs/components/panel/PanelHeader.js +1 -1
  12. package/dist/cjs/components/panel/PanelHeader.js.map +1 -1
  13. package/dist/cjs/components/panel/PanelItem.js.map +1 -1
  14. package/dist/cjs/components/panel/panel.actions.js +8 -0
  15. package/dist/cjs/components/panel/panel.actions.js.map +1 -1
  16. package/dist/cjs/index.js +1 -0
  17. package/dist/cjs/index.js.map +1 -1
  18. package/dist/cjs/node_modules/moment/moment.js +5697 -0
  19. package/dist/cjs/node_modules/moment/moment.js.map +1 -0
  20. package/dist/cjs/node_modules/universal-cookie/esm/index.js +411 -0
  21. package/dist/cjs/node_modules/universal-cookie/esm/index.js.map +1 -0
  22. package/dist/cjs/shared/cookies/cookies.utils.js +14 -0
  23. package/dist/cjs/shared/cookies/cookies.utils.js.map +1 -0
  24. package/dist/cjs/shared/cookies/index.js +8 -0
  25. package/dist/cjs/shared/cookies/index.js.map +1 -0
  26. package/dist/esm/_virtual/_commonjs-dynamic-modules.js +6 -0
  27. package/dist/esm/_virtual/_commonjs-dynamic-modules.js.map +1 -0
  28. package/dist/esm/_virtual/moment.js +8 -0
  29. package/dist/esm/_virtual/moment.js.map +1 -0
  30. package/dist/esm/_virtual/moment2.js +4 -0
  31. package/dist/esm/_virtual/moment2.js.map +1 -0
  32. package/dist/esm/components/panel/Panel.js +3 -3
  33. package/dist/esm/components/panel/Panel.js.map +1 -1
  34. package/dist/esm/components/panel/PanelButton.js +1 -1
  35. package/dist/esm/components/panel/PanelButton.js.map +1 -1
  36. package/dist/esm/components/panel/PanelHeader.js +1 -1
  37. package/dist/esm/components/panel/PanelHeader.js.map +1 -1
  38. package/dist/esm/components/panel/PanelItem.js.map +1 -1
  39. package/dist/esm/components/panel/panel.actions.js +8 -1
  40. package/dist/esm/components/panel/panel.actions.js.map +1 -1
  41. package/dist/esm/index.js +1 -1
  42. package/dist/esm/node_modules/moment/moment.js +5695 -0
  43. package/dist/esm/node_modules/moment/moment.js.map +1 -0
  44. package/dist/esm/node_modules/universal-cookie/esm/index.js +407 -0
  45. package/dist/esm/node_modules/universal-cookie/esm/index.js.map +1 -0
  46. package/dist/esm/shared/cookies/cookies.utils.js +12 -0
  47. package/dist/esm/shared/cookies/cookies.utils.js.map +1 -0
  48. package/dist/esm/shared/cookies/index.js +6 -0
  49. package/dist/esm/shared/cookies/index.js.map +1 -0
  50. package/dist/esm/types/components/panel/Panel.d.ts +1 -0
  51. package/dist/esm/types/components/panel/PanelFooter.d.ts +11 -0
  52. package/dist/esm/types/components/panel/PanelHeader.d.ts +1 -1
  53. package/dist/esm/types/components/panel/PanelItem.d.ts +1 -1
  54. package/dist/esm/types/components/panel/panel.actions.d.ts +2 -0
  55. package/dist/esm/types/config/config.types.d.ts +1 -0
  56. package/dist/esm/types/shared/cookies/cookies.utils.d.ts +6 -0
  57. package/dist/esm/types/shared/cookies/index.d.ts +2 -0
  58. package/dist/index.d.ts +9 -6
  59. package/package.json +4 -2
@@ -0,0 +1,411 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ var dist = {};
6
+
7
+ var hasRequiredDist;
8
+
9
+ function requireDist () {
10
+ if (hasRequiredDist) return dist;
11
+ hasRequiredDist = 1;
12
+ Object.defineProperty(dist, "__esModule", { value: true });
13
+ dist.parse = parse;
14
+ dist.serialize = serialize;
15
+ /**
16
+ * RegExp to match cookie-name in RFC 6265 sec 4.1.1
17
+ * This refers out to the obsoleted definition of token in RFC 2616 sec 2.2
18
+ * which has been replaced by the token definition in RFC 7230 appendix B.
19
+ *
20
+ * cookie-name = token
21
+ * token = 1*tchar
22
+ * tchar = "!" / "#" / "$" / "%" / "&" / "'" /
23
+ * "*" / "+" / "-" / "." / "^" / "_" /
24
+ * "`" / "|" / "~" / DIGIT / ALPHA
25
+ *
26
+ * Note: Allowing more characters - https://github.com/jshttp/cookie/issues/191
27
+ * Allow same range as cookie value, except `=`, which delimits end of name.
28
+ */
29
+ const cookieNameRegExp = /^[\u0021-\u003A\u003C\u003E-\u007E]+$/;
30
+ /**
31
+ * RegExp to match cookie-value in RFC 6265 sec 4.1.1
32
+ *
33
+ * cookie-value = *cookie-octet / ( DQUOTE *cookie-octet DQUOTE )
34
+ * cookie-octet = %x21 / %x23-2B / %x2D-3A / %x3C-5B / %x5D-7E
35
+ * ; US-ASCII characters excluding CTLs,
36
+ * ; whitespace DQUOTE, comma, semicolon,
37
+ * ; and backslash
38
+ *
39
+ * Allowing more characters: https://github.com/jshttp/cookie/issues/191
40
+ * Comma, backslash, and DQUOTE are not part of the parsing algorithm.
41
+ */
42
+ const cookieValueRegExp = /^[\u0021-\u003A\u003C-\u007E]*$/;
43
+ /**
44
+ * RegExp to match domain-value in RFC 6265 sec 4.1.1
45
+ *
46
+ * domain-value = <subdomain>
47
+ * ; defined in [RFC1034], Section 3.5, as
48
+ * ; enhanced by [RFC1123], Section 2.1
49
+ * <subdomain> = <label> | <subdomain> "." <label>
50
+ * <label> = <let-dig> [ [ <ldh-str> ] <let-dig> ]
51
+ * Labels must be 63 characters or less.
52
+ * 'let-dig' not 'letter' in the first char, per RFC1123
53
+ * <ldh-str> = <let-dig-hyp> | <let-dig-hyp> <ldh-str>
54
+ * <let-dig-hyp> = <let-dig> | "-"
55
+ * <let-dig> = <letter> | <digit>
56
+ * <letter> = any one of the 52 alphabetic characters A through Z in
57
+ * upper case and a through z in lower case
58
+ * <digit> = any one of the ten digits 0 through 9
59
+ *
60
+ * Keep support for leading dot: https://github.com/jshttp/cookie/issues/173
61
+ *
62
+ * > (Note that a leading %x2E ("."), if present, is ignored even though that
63
+ * character is not permitted, but a trailing %x2E ("."), if present, will
64
+ * cause the user agent to ignore the attribute.)
65
+ */
66
+ const domainValueRegExp = /^([.]?[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)([.][a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)*$/i;
67
+ /**
68
+ * RegExp to match path-value in RFC 6265 sec 4.1.1
69
+ *
70
+ * path-value = <any CHAR except CTLs or ";">
71
+ * CHAR = %x01-7F
72
+ * ; defined in RFC 5234 appendix B.1
73
+ */
74
+ const pathValueRegExp = /^[\u0020-\u003A\u003D-\u007E]*$/;
75
+ const __toString = Object.prototype.toString;
76
+ const NullObject = /* @__PURE__ */ (() => {
77
+ const C = function () { };
78
+ C.prototype = Object.create(null);
79
+ return C;
80
+ })();
81
+ /**
82
+ * Parse a cookie header.
83
+ *
84
+ * Parse the given cookie header string into an object
85
+ * The object has the various cookies as keys(names) => values
86
+ */
87
+ function parse(str, options) {
88
+ const obj = new NullObject();
89
+ const len = str.length;
90
+ // RFC 6265 sec 4.1.1, RFC 2616 2.2 defines a cookie name consists of one char minimum, plus '='.
91
+ if (len < 2)
92
+ return obj;
93
+ const dec = options?.decode || decode;
94
+ let index = 0;
95
+ do {
96
+ const eqIdx = str.indexOf("=", index);
97
+ if (eqIdx === -1)
98
+ break; // No more cookie pairs.
99
+ const colonIdx = str.indexOf(";", index);
100
+ const endIdx = colonIdx === -1 ? len : colonIdx;
101
+ if (eqIdx > endIdx) {
102
+ // backtrack on prior semicolon
103
+ index = str.lastIndexOf(";", eqIdx - 1) + 1;
104
+ continue;
105
+ }
106
+ const keyStartIdx = startIndex(str, index, eqIdx);
107
+ const keyEndIdx = endIndex(str, eqIdx, keyStartIdx);
108
+ const key = str.slice(keyStartIdx, keyEndIdx);
109
+ // only assign once
110
+ if (obj[key] === undefined) {
111
+ let valStartIdx = startIndex(str, eqIdx + 1, endIdx);
112
+ let valEndIdx = endIndex(str, endIdx, valStartIdx);
113
+ const value = dec(str.slice(valStartIdx, valEndIdx));
114
+ obj[key] = value;
115
+ }
116
+ index = endIdx + 1;
117
+ } while (index < len);
118
+ return obj;
119
+ }
120
+ function startIndex(str, index, max) {
121
+ do {
122
+ const code = str.charCodeAt(index);
123
+ if (code !== 0x20 /* */ && code !== 0x09 /* \t */)
124
+ return index;
125
+ } while (++index < max);
126
+ return max;
127
+ }
128
+ function endIndex(str, index, min) {
129
+ while (index > min) {
130
+ const code = str.charCodeAt(--index);
131
+ if (code !== 0x20 /* */ && code !== 0x09 /* \t */)
132
+ return index + 1;
133
+ }
134
+ return min;
135
+ }
136
+ /**
137
+ * Serialize data into a cookie header.
138
+ *
139
+ * Serialize a name value pair into a cookie string suitable for
140
+ * http headers. An optional options object specifies cookie parameters.
141
+ *
142
+ * serialize('foo', 'bar', { httpOnly: true })
143
+ * => "foo=bar; httpOnly"
144
+ */
145
+ function serialize(name, val, options) {
146
+ const enc = options?.encode || encodeURIComponent;
147
+ if (!cookieNameRegExp.test(name)) {
148
+ throw new TypeError(`argument name is invalid: ${name}`);
149
+ }
150
+ const value = enc(val);
151
+ if (!cookieValueRegExp.test(value)) {
152
+ throw new TypeError(`argument val is invalid: ${val}`);
153
+ }
154
+ let str = name + "=" + value;
155
+ if (!options)
156
+ return str;
157
+ if (options.maxAge !== undefined) {
158
+ if (!Number.isInteger(options.maxAge)) {
159
+ throw new TypeError(`option maxAge is invalid: ${options.maxAge}`);
160
+ }
161
+ str += "; Max-Age=" + options.maxAge;
162
+ }
163
+ if (options.domain) {
164
+ if (!domainValueRegExp.test(options.domain)) {
165
+ throw new TypeError(`option domain is invalid: ${options.domain}`);
166
+ }
167
+ str += "; Domain=" + options.domain;
168
+ }
169
+ if (options.path) {
170
+ if (!pathValueRegExp.test(options.path)) {
171
+ throw new TypeError(`option path is invalid: ${options.path}`);
172
+ }
173
+ str += "; Path=" + options.path;
174
+ }
175
+ if (options.expires) {
176
+ if (!isDate(options.expires) ||
177
+ !Number.isFinite(options.expires.valueOf())) {
178
+ throw new TypeError(`option expires is invalid: ${options.expires}`);
179
+ }
180
+ str += "; Expires=" + options.expires.toUTCString();
181
+ }
182
+ if (options.httpOnly) {
183
+ str += "; HttpOnly";
184
+ }
185
+ if (options.secure) {
186
+ str += "; Secure";
187
+ }
188
+ if (options.partitioned) {
189
+ str += "; Partitioned";
190
+ }
191
+ if (options.priority) {
192
+ const priority = typeof options.priority === "string"
193
+ ? options.priority.toLowerCase()
194
+ : undefined;
195
+ switch (priority) {
196
+ case "low":
197
+ str += "; Priority=Low";
198
+ break;
199
+ case "medium":
200
+ str += "; Priority=Medium";
201
+ break;
202
+ case "high":
203
+ str += "; Priority=High";
204
+ break;
205
+ default:
206
+ throw new TypeError(`option priority is invalid: ${options.priority}`);
207
+ }
208
+ }
209
+ if (options.sameSite) {
210
+ const sameSite = typeof options.sameSite === "string"
211
+ ? options.sameSite.toLowerCase()
212
+ : options.sameSite;
213
+ switch (sameSite) {
214
+ case true:
215
+ case "strict":
216
+ str += "; SameSite=Strict";
217
+ break;
218
+ case "lax":
219
+ str += "; SameSite=Lax";
220
+ break;
221
+ case "none":
222
+ str += "; SameSite=None";
223
+ break;
224
+ default:
225
+ throw new TypeError(`option sameSite is invalid: ${options.sameSite}`);
226
+ }
227
+ }
228
+ return str;
229
+ }
230
+ /**
231
+ * URL-decode string value. Optimized to skip native call when no %.
232
+ */
233
+ function decode(str) {
234
+ if (str.indexOf("%") === -1)
235
+ return str;
236
+ try {
237
+ return decodeURIComponent(str);
238
+ }
239
+ catch (e) {
240
+ return str;
241
+ }
242
+ }
243
+ /**
244
+ * Determine if value is a Date.
245
+ */
246
+ function isDate(val) {
247
+ return __toString.call(val) === "[object Date]";
248
+ }
249
+
250
+ return dist;
251
+ }
252
+
253
+ var distExports = requireDist();
254
+
255
+ function hasDocumentCookie() {
256
+ const testingValue = typeof global === 'undefined'
257
+ ? undefined
258
+ : global.TEST_HAS_DOCUMENT_COOKIE;
259
+ if (typeof testingValue === 'boolean') {
260
+ return testingValue;
261
+ }
262
+ // Can we get/set cookies on document.cookie?
263
+ return typeof document === 'object' && typeof document.cookie === 'string';
264
+ }
265
+ function parseCookies(cookies) {
266
+ if (typeof cookies === 'string') {
267
+ return distExports.parse(cookies);
268
+ }
269
+ else if (typeof cookies === 'object' && cookies !== null) {
270
+ return cookies;
271
+ }
272
+ else {
273
+ return {};
274
+ }
275
+ }
276
+ function readCookie(value, options = {}) {
277
+ const cleanValue = cleanupCookieValue(value);
278
+ if (!options.doNotParse) {
279
+ try {
280
+ return JSON.parse(cleanValue);
281
+ }
282
+ catch (e) {
283
+ // At least we tried
284
+ }
285
+ }
286
+ // Ignore clean value if we failed the deserialization
287
+ // It is not relevant anymore to trim those values
288
+ return value;
289
+ }
290
+ function cleanupCookieValue(value) {
291
+ // express prepend j: before serializing a cookie
292
+ if (value && value[0] === 'j' && value[1] === ':') {
293
+ return value.substr(2);
294
+ }
295
+ return value;
296
+ }
297
+
298
+ class Cookies {
299
+ constructor(cookies, defaultSetOptions = {}) {
300
+ this.changeListeners = [];
301
+ this.HAS_DOCUMENT_COOKIE = false;
302
+ this.update = () => {
303
+ if (!this.HAS_DOCUMENT_COOKIE) {
304
+ return;
305
+ }
306
+ const previousCookies = this.cookies;
307
+ this.cookies = distExports.parse(document.cookie);
308
+ this._checkChanges(previousCookies);
309
+ };
310
+ const domCookies = typeof document === 'undefined' ? '' : document.cookie;
311
+ this.cookies = parseCookies(cookies || domCookies);
312
+ this.defaultSetOptions = defaultSetOptions;
313
+ this.HAS_DOCUMENT_COOKIE = hasDocumentCookie();
314
+ }
315
+ _emitChange(params) {
316
+ for (let i = 0; i < this.changeListeners.length; ++i) {
317
+ this.changeListeners[i](params);
318
+ }
319
+ }
320
+ _checkChanges(previousCookies) {
321
+ const names = new Set(Object.keys(previousCookies).concat(Object.keys(this.cookies)));
322
+ names.forEach((name) => {
323
+ if (previousCookies[name] !== this.cookies[name]) {
324
+ this._emitChange({
325
+ name,
326
+ value: readCookie(this.cookies[name]),
327
+ });
328
+ }
329
+ });
330
+ }
331
+ _startPolling() {
332
+ this.pollingInterval = setInterval(this.update, 300);
333
+ }
334
+ _stopPolling() {
335
+ if (this.pollingInterval) {
336
+ clearInterval(this.pollingInterval);
337
+ }
338
+ }
339
+ get(name, options = {}) {
340
+ if (!options.doNotUpdate) {
341
+ this.update();
342
+ }
343
+ return readCookie(this.cookies[name], options);
344
+ }
345
+ getAll(options = {}) {
346
+ if (!options.doNotUpdate) {
347
+ this.update();
348
+ }
349
+ const result = {};
350
+ for (let name in this.cookies) {
351
+ result[name] = readCookie(this.cookies[name], options);
352
+ }
353
+ return result;
354
+ }
355
+ set(name, value, options) {
356
+ if (options) {
357
+ options = Object.assign(Object.assign({}, this.defaultSetOptions), options);
358
+ }
359
+ else {
360
+ options = this.defaultSetOptions;
361
+ }
362
+ const stringValue = typeof value === 'string' ? value : JSON.stringify(value);
363
+ this.cookies = Object.assign(Object.assign({}, this.cookies), { [name]: stringValue });
364
+ if (this.HAS_DOCUMENT_COOKIE) {
365
+ document.cookie = distExports.serialize(name, stringValue, options);
366
+ }
367
+ this._emitChange({ name, value, options });
368
+ }
369
+ remove(name, options) {
370
+ const finalOptions = (options = Object.assign(Object.assign(Object.assign({}, this.defaultSetOptions), options), { expires: new Date(1970, 1, 1, 0, 0, 1), maxAge: 0 }));
371
+ this.cookies = Object.assign({}, this.cookies);
372
+ delete this.cookies[name];
373
+ if (this.HAS_DOCUMENT_COOKIE) {
374
+ document.cookie = distExports.serialize(name, '', finalOptions);
375
+ }
376
+ this._emitChange({ name, value: undefined, options });
377
+ }
378
+ addChangeListener(callback) {
379
+ this.changeListeners.push(callback);
380
+ if (this.HAS_DOCUMENT_COOKIE && this.changeListeners.length === 1) {
381
+ if (typeof window === 'object' && 'cookieStore' in window) {
382
+ window.cookieStore.addEventListener('change', this.update);
383
+ }
384
+ else {
385
+ this._startPolling();
386
+ }
387
+ }
388
+ }
389
+ removeChangeListener(callback) {
390
+ const idx = this.changeListeners.indexOf(callback);
391
+ if (idx >= 0) {
392
+ this.changeListeners.splice(idx, 1);
393
+ }
394
+ if (this.HAS_DOCUMENT_COOKIE && this.changeListeners.length === 0) {
395
+ if (typeof window === 'object' && 'cookieStore' in window) {
396
+ window.cookieStore.removeEventListener('change', this.update);
397
+ }
398
+ else {
399
+ this._stopPolling();
400
+ }
401
+ }
402
+ }
403
+ removeAllChangeListeners() {
404
+ while (this.changeListeners.length > 0) {
405
+ this.removeChangeListener(this.changeListeners[0]);
406
+ }
407
+ }
408
+ }
409
+
410
+ exports.default = Cookies;
411
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sources":["../../../../../node_modules/universal-cookie/esm/index.mjs"],"sourcesContent":["var dist = {};\n\nvar hasRequiredDist;\n\nfunction requireDist () {\n\tif (hasRequiredDist) return dist;\n\thasRequiredDist = 1;\n\tObject.defineProperty(dist, \"__esModule\", { value: true });\n\tdist.parse = parse;\n\tdist.serialize = serialize;\n\t/**\n\t * RegExp to match cookie-name in RFC 6265 sec 4.1.1\n\t * This refers out to the obsoleted definition of token in RFC 2616 sec 2.2\n\t * which has been replaced by the token definition in RFC 7230 appendix B.\n\t *\n\t * cookie-name = token\n\t * token = 1*tchar\n\t * tchar = \"!\" / \"#\" / \"$\" / \"%\" / \"&\" / \"'\" /\n\t * \"*\" / \"+\" / \"-\" / \".\" / \"^\" / \"_\" /\n\t * \"`\" / \"|\" / \"~\" / DIGIT / ALPHA\n\t *\n\t * Note: Allowing more characters - https://github.com/jshttp/cookie/issues/191\n\t * Allow same range as cookie value, except `=`, which delimits end of name.\n\t */\n\tconst cookieNameRegExp = /^[\\u0021-\\u003A\\u003C\\u003E-\\u007E]+$/;\n\t/**\n\t * RegExp to match cookie-value in RFC 6265 sec 4.1.1\n\t *\n\t * cookie-value = *cookie-octet / ( DQUOTE *cookie-octet DQUOTE )\n\t * cookie-octet = %x21 / %x23-2B / %x2D-3A / %x3C-5B / %x5D-7E\n\t * ; US-ASCII characters excluding CTLs,\n\t * ; whitespace DQUOTE, comma, semicolon,\n\t * ; and backslash\n\t *\n\t * Allowing more characters: https://github.com/jshttp/cookie/issues/191\n\t * Comma, backslash, and DQUOTE are not part of the parsing algorithm.\n\t */\n\tconst cookieValueRegExp = /^[\\u0021-\\u003A\\u003C-\\u007E]*$/;\n\t/**\n\t * RegExp to match domain-value in RFC 6265 sec 4.1.1\n\t *\n\t * domain-value = <subdomain>\n\t * ; defined in [RFC1034], Section 3.5, as\n\t * ; enhanced by [RFC1123], Section 2.1\n\t * <subdomain> = <label> | <subdomain> \".\" <label>\n\t * <label> = <let-dig> [ [ <ldh-str> ] <let-dig> ]\n\t * Labels must be 63 characters or less.\n\t * 'let-dig' not 'letter' in the first char, per RFC1123\n\t * <ldh-str> = <let-dig-hyp> | <let-dig-hyp> <ldh-str>\n\t * <let-dig-hyp> = <let-dig> | \"-\"\n\t * <let-dig> = <letter> | <digit>\n\t * <letter> = any one of the 52 alphabetic characters A through Z in\n\t * upper case and a through z in lower case\n\t * <digit> = any one of the ten digits 0 through 9\n\t *\n\t * Keep support for leading dot: https://github.com/jshttp/cookie/issues/173\n\t *\n\t * > (Note that a leading %x2E (\".\"), if present, is ignored even though that\n\t * character is not permitted, but a trailing %x2E (\".\"), if present, will\n\t * cause the user agent to ignore the attribute.)\n\t */\n\tconst domainValueRegExp = /^([.]?[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)([.][a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)*$/i;\n\t/**\n\t * RegExp to match path-value in RFC 6265 sec 4.1.1\n\t *\n\t * path-value = <any CHAR except CTLs or \";\">\n\t * CHAR = %x01-7F\n\t * ; defined in RFC 5234 appendix B.1\n\t */\n\tconst pathValueRegExp = /^[\\u0020-\\u003A\\u003D-\\u007E]*$/;\n\tconst __toString = Object.prototype.toString;\n\tconst NullObject = /* @__PURE__ */ (() => {\n\t const C = function () { };\n\t C.prototype = Object.create(null);\n\t return C;\n\t})();\n\t/**\n\t * Parse a cookie header.\n\t *\n\t * Parse the given cookie header string into an object\n\t * The object has the various cookies as keys(names) => values\n\t */\n\tfunction parse(str, options) {\n\t const obj = new NullObject();\n\t const len = str.length;\n\t // RFC 6265 sec 4.1.1, RFC 2616 2.2 defines a cookie name consists of one char minimum, plus '='.\n\t if (len < 2)\n\t return obj;\n\t const dec = options?.decode || decode;\n\t let index = 0;\n\t do {\n\t const eqIdx = str.indexOf(\"=\", index);\n\t if (eqIdx === -1)\n\t break; // No more cookie pairs.\n\t const colonIdx = str.indexOf(\";\", index);\n\t const endIdx = colonIdx === -1 ? len : colonIdx;\n\t if (eqIdx > endIdx) {\n\t // backtrack on prior semicolon\n\t index = str.lastIndexOf(\";\", eqIdx - 1) + 1;\n\t continue;\n\t }\n\t const keyStartIdx = startIndex(str, index, eqIdx);\n\t const keyEndIdx = endIndex(str, eqIdx, keyStartIdx);\n\t const key = str.slice(keyStartIdx, keyEndIdx);\n\t // only assign once\n\t if (obj[key] === undefined) {\n\t let valStartIdx = startIndex(str, eqIdx + 1, endIdx);\n\t let valEndIdx = endIndex(str, endIdx, valStartIdx);\n\t const value = dec(str.slice(valStartIdx, valEndIdx));\n\t obj[key] = value;\n\t }\n\t index = endIdx + 1;\n\t } while (index < len);\n\t return obj;\n\t}\n\tfunction startIndex(str, index, max) {\n\t do {\n\t const code = str.charCodeAt(index);\n\t if (code !== 0x20 /* */ && code !== 0x09 /* \\t */)\n\t return index;\n\t } while (++index < max);\n\t return max;\n\t}\n\tfunction endIndex(str, index, min) {\n\t while (index > min) {\n\t const code = str.charCodeAt(--index);\n\t if (code !== 0x20 /* */ && code !== 0x09 /* \\t */)\n\t return index + 1;\n\t }\n\t return min;\n\t}\n\t/**\n\t * Serialize data into a cookie header.\n\t *\n\t * Serialize a name value pair into a cookie string suitable for\n\t * http headers. An optional options object specifies cookie parameters.\n\t *\n\t * serialize('foo', 'bar', { httpOnly: true })\n\t * => \"foo=bar; httpOnly\"\n\t */\n\tfunction serialize(name, val, options) {\n\t const enc = options?.encode || encodeURIComponent;\n\t if (!cookieNameRegExp.test(name)) {\n\t throw new TypeError(`argument name is invalid: ${name}`);\n\t }\n\t const value = enc(val);\n\t if (!cookieValueRegExp.test(value)) {\n\t throw new TypeError(`argument val is invalid: ${val}`);\n\t }\n\t let str = name + \"=\" + value;\n\t if (!options)\n\t return str;\n\t if (options.maxAge !== undefined) {\n\t if (!Number.isInteger(options.maxAge)) {\n\t throw new TypeError(`option maxAge is invalid: ${options.maxAge}`);\n\t }\n\t str += \"; Max-Age=\" + options.maxAge;\n\t }\n\t if (options.domain) {\n\t if (!domainValueRegExp.test(options.domain)) {\n\t throw new TypeError(`option domain is invalid: ${options.domain}`);\n\t }\n\t str += \"; Domain=\" + options.domain;\n\t }\n\t if (options.path) {\n\t if (!pathValueRegExp.test(options.path)) {\n\t throw new TypeError(`option path is invalid: ${options.path}`);\n\t }\n\t str += \"; Path=\" + options.path;\n\t }\n\t if (options.expires) {\n\t if (!isDate(options.expires) ||\n\t !Number.isFinite(options.expires.valueOf())) {\n\t throw new TypeError(`option expires is invalid: ${options.expires}`);\n\t }\n\t str += \"; Expires=\" + options.expires.toUTCString();\n\t }\n\t if (options.httpOnly) {\n\t str += \"; HttpOnly\";\n\t }\n\t if (options.secure) {\n\t str += \"; Secure\";\n\t }\n\t if (options.partitioned) {\n\t str += \"; Partitioned\";\n\t }\n\t if (options.priority) {\n\t const priority = typeof options.priority === \"string\"\n\t ? options.priority.toLowerCase()\n\t : undefined;\n\t switch (priority) {\n\t case \"low\":\n\t str += \"; Priority=Low\";\n\t break;\n\t case \"medium\":\n\t str += \"; Priority=Medium\";\n\t break;\n\t case \"high\":\n\t str += \"; Priority=High\";\n\t break;\n\t default:\n\t throw new TypeError(`option priority is invalid: ${options.priority}`);\n\t }\n\t }\n\t if (options.sameSite) {\n\t const sameSite = typeof options.sameSite === \"string\"\n\t ? options.sameSite.toLowerCase()\n\t : options.sameSite;\n\t switch (sameSite) {\n\t case true:\n\t case \"strict\":\n\t str += \"; SameSite=Strict\";\n\t break;\n\t case \"lax\":\n\t str += \"; SameSite=Lax\";\n\t break;\n\t case \"none\":\n\t str += \"; SameSite=None\";\n\t break;\n\t default:\n\t throw new TypeError(`option sameSite is invalid: ${options.sameSite}`);\n\t }\n\t }\n\t return str;\n\t}\n\t/**\n\t * URL-decode string value. Optimized to skip native call when no %.\n\t */\n\tfunction decode(str) {\n\t if (str.indexOf(\"%\") === -1)\n\t return str;\n\t try {\n\t return decodeURIComponent(str);\n\t }\n\t catch (e) {\n\t return str;\n\t }\n\t}\n\t/**\n\t * Determine if value is a Date.\n\t */\n\tfunction isDate(val) {\n\t return __toString.call(val) === \"[object Date]\";\n\t}\n\t\n\treturn dist;\n}\n\nvar distExports = requireDist();\n\nfunction hasDocumentCookie() {\n const testingValue = typeof global === 'undefined'\n ? undefined\n : global.TEST_HAS_DOCUMENT_COOKIE;\n if (typeof testingValue === 'boolean') {\n return testingValue;\n }\n // Can we get/set cookies on document.cookie?\n return typeof document === 'object' && typeof document.cookie === 'string';\n}\nfunction parseCookies(cookies) {\n if (typeof cookies === 'string') {\n return distExports.parse(cookies);\n }\n else if (typeof cookies === 'object' && cookies !== null) {\n return cookies;\n }\n else {\n return {};\n }\n}\nfunction readCookie(value, options = {}) {\n const cleanValue = cleanupCookieValue(value);\n if (!options.doNotParse) {\n try {\n return JSON.parse(cleanValue);\n }\n catch (e) {\n // At least we tried\n }\n }\n // Ignore clean value if we failed the deserialization\n // It is not relevant anymore to trim those values\n return value;\n}\nfunction cleanupCookieValue(value) {\n // express prepend j: before serializing a cookie\n if (value && value[0] === 'j' && value[1] === ':') {\n return value.substr(2);\n }\n return value;\n}\n\nclass Cookies {\n constructor(cookies, defaultSetOptions = {}) {\n this.changeListeners = [];\n this.HAS_DOCUMENT_COOKIE = false;\n this.update = () => {\n if (!this.HAS_DOCUMENT_COOKIE) {\n return;\n }\n const previousCookies = this.cookies;\n this.cookies = distExports.parse(document.cookie);\n this._checkChanges(previousCookies);\n };\n const domCookies = typeof document === 'undefined' ? '' : document.cookie;\n this.cookies = parseCookies(cookies || domCookies);\n this.defaultSetOptions = defaultSetOptions;\n this.HAS_DOCUMENT_COOKIE = hasDocumentCookie();\n }\n _emitChange(params) {\n for (let i = 0; i < this.changeListeners.length; ++i) {\n this.changeListeners[i](params);\n }\n }\n _checkChanges(previousCookies) {\n const names = new Set(Object.keys(previousCookies).concat(Object.keys(this.cookies)));\n names.forEach((name) => {\n if (previousCookies[name] !== this.cookies[name]) {\n this._emitChange({\n name,\n value: readCookie(this.cookies[name]),\n });\n }\n });\n }\n _startPolling() {\n this.pollingInterval = setInterval(this.update, 300);\n }\n _stopPolling() {\n if (this.pollingInterval) {\n clearInterval(this.pollingInterval);\n }\n }\n get(name, options = {}) {\n if (!options.doNotUpdate) {\n this.update();\n }\n return readCookie(this.cookies[name], options);\n }\n getAll(options = {}) {\n if (!options.doNotUpdate) {\n this.update();\n }\n const result = {};\n for (let name in this.cookies) {\n result[name] = readCookie(this.cookies[name], options);\n }\n return result;\n }\n set(name, value, options) {\n if (options) {\n options = Object.assign(Object.assign({}, this.defaultSetOptions), options);\n }\n else {\n options = this.defaultSetOptions;\n }\n const stringValue = typeof value === 'string' ? value : JSON.stringify(value);\n this.cookies = Object.assign(Object.assign({}, this.cookies), { [name]: stringValue });\n if (this.HAS_DOCUMENT_COOKIE) {\n document.cookie = distExports.serialize(name, stringValue, options);\n }\n this._emitChange({ name, value, options });\n }\n remove(name, options) {\n const finalOptions = (options = Object.assign(Object.assign(Object.assign({}, this.defaultSetOptions), options), { expires: new Date(1970, 1, 1, 0, 0, 1), maxAge: 0 }));\n this.cookies = Object.assign({}, this.cookies);\n delete this.cookies[name];\n if (this.HAS_DOCUMENT_COOKIE) {\n document.cookie = distExports.serialize(name, '', finalOptions);\n }\n this._emitChange({ name, value: undefined, options });\n }\n addChangeListener(callback) {\n this.changeListeners.push(callback);\n if (this.HAS_DOCUMENT_COOKIE && this.changeListeners.length === 1) {\n if (typeof window === 'object' && 'cookieStore' in window) {\n window.cookieStore.addEventListener('change', this.update);\n }\n else {\n this._startPolling();\n }\n }\n }\n removeChangeListener(callback) {\n const idx = this.changeListeners.indexOf(callback);\n if (idx >= 0) {\n this.changeListeners.splice(idx, 1);\n }\n if (this.HAS_DOCUMENT_COOKIE && this.changeListeners.length === 0) {\n if (typeof window === 'object' && 'cookieStore' in window) {\n window.cookieStore.removeEventListener('change', this.update);\n }\n else {\n this._stopPolling();\n }\n }\n }\n removeAllChangeListeners() {\n while (this.changeListeners.length > 0) {\n this.removeChangeListener(this.changeListeners[0]);\n }\n }\n}\n\nexport { Cookies as default };\n"],"names":[],"mappings":";;;;AAAA,IAAI,IAAI,GAAG,EAAE;;AAEb,IAAI,eAAe;;AAEnB,SAAS,WAAW,IAAI;AACxB,CAAC,IAAI,eAAe,EAAE,OAAO,IAAI;AACjC,CAAC,eAAe,GAAG,CAAC;AACpB,CAAC,MAAM,CAAC,cAAc,CAAC,IAAI,EAAE,YAAY,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC;AAC3D,CAAC,IAAI,CAAC,KAAK,GAAG,KAAK;AACnB,CAAC,IAAI,CAAC,SAAS,GAAG,SAAS;AAC3B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,MAAM,gBAAgB,GAAG,uCAAuC;AACjE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,MAAM,iBAAiB,GAAG,iCAAiC;AAC5D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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,IAAI;AACJ,IAAI,oBAAoB,CAAC,QAAQ,EAAE;AACnC,QAAQ,MAAM,GAAG,GAAG,IAAI,CAAC,eAAe,CAAC,OAAO,CAAC,QAAQ,CAAC;AAC1D,QAAQ,IAAI,GAAG,IAAI,CAAC,EAAE;AACtB,YAAY,IAAI,CAAC,eAAe,CAAC,MAAM,CAAC,GAAG,EAAE,CAAC,CAAC;AAC/C,QAAQ;AACR,QAAQ,IAAI,IAAI,CAAC,mBAAmB,IAAI,IAAI,CAAC,eAAe,CAAC,MAAM,KAAK,CAAC,EAAE;AAC3E,YAAY,IAAI,OAAO,MAAM,KAAK,QAAQ,IAAI,aAAa,IAAI,MAAM,EAAE;AACvE,gBAAgB,MAAM,CAAC,WAAW,CAAC,mBAAmB,CAAC,QAAQ,EAAE,IAAI,CAAC,MAAM,CAAC;AAC7E,YAAY;AACZ,iBAAiB;AACjB,gBAAgB,IAAI,CAAC,YAAY,EAAE;AACnC,YAAY;AACZ,QAAQ;AACR,IAAI;AACJ,IAAI,wBAAwB,GAAG;AAC/B,QAAQ,OAAO,IAAI,CAAC,eAAe,CAAC,MAAM,GAAG,CAAC,EAAE;AAChD,YAAY,IAAI,CAAC,oBAAoB,CAAC,IAAI,CAAC,eAAe,CAAC,CAAC,CAAC,CAAC;AAC9D,QAAQ;AACR,IAAI;AACJ;;;;","x_google_ignoreList":[0]}
@@ -0,0 +1,14 @@
1
+ 'use strict';
2
+
3
+ var moment = require('../../_virtual/moment.js');
4
+
5
+ const getCookieOptions = (config) => {
6
+ return {
7
+ expires: moment.default().add(1, 'year').toDate(),
8
+ path: '/',
9
+ domain: config?.cookieDomain,
10
+ };
11
+ };
12
+
13
+ exports.getCookieOptions = getCookieOptions;
14
+ //# sourceMappingURL=cookies.utils.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cookies.utils.js","sources":["../../../../src/shared/cookies/cookies.utils.ts"],"sourcesContent":["import { Config } from '../../config/config.types';\nimport moment from 'moment';\n\nexport const getCookieOptions = (config: Config | undefined) => {\n return {\n expires: moment().add(1, 'year').toDate(),\n path: '/',\n domain: config?.cookieDomain,\n };\n};\n"],"names":["moment"],"mappings":";;;;AAGO,MAAM,gBAAgB,GAAG,CAAC,MAA0B,KAAI;IAC7D,OAAO;AACL,QAAA,OAAO,EAAEA,cAAM,EAAE,CAAC,GAAG,CAAC,CAAC,EAAE,MAAM,CAAC,CAAC,MAAM,EAAE;AACzC,QAAA,IAAI,EAAE,GAAG;QACT,MAAM,EAAE,MAAM,EAAE,YAAY;KAC7B;AACH;;;;"}
@@ -0,0 +1,8 @@
1
+ 'use strict';
2
+
3
+ var index = require('../../node_modules/universal-cookie/esm/index.js');
4
+
5
+ const universalCookies = new index.default();
6
+
7
+ exports.universalCookies = universalCookies;
8
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sources":["../../../../src/shared/cookies/index.ts"],"sourcesContent":["import Cookies from 'universal-cookie';\nexport const universalCookies = new Cookies();\n\n\n"],"names":["Cookies"],"mappings":";;;;AACO,MAAM,gBAAgB,GAAG,IAAIA,aAAO;;;;"}
@@ -0,0 +1,6 @@
1
+ function commonjsRequire(path) {
2
+ throw new Error('Could not dynamically require "' + path + '". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.');
3
+ }
4
+
5
+ export { commonjsRequire };
6
+ //# sourceMappingURL=_commonjs-dynamic-modules.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"_commonjs-dynamic-modules.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;"}
@@ -0,0 +1,8 @@
1
+ import { getDefaultExportFromCjs } from './_commonjsHelpers.js';
2
+ import { __require as requireMoment } from '../node_modules/moment/moment.js';
3
+
4
+ var momentExports = requireMoment();
5
+ var moment = /*@__PURE__*/getDefaultExportFromCjs(momentExports);
6
+
7
+ export { moment as default };
8
+ //# sourceMappingURL=moment.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"moment.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;"}
@@ -0,0 +1,4 @@
1
+ var moment = {exports: {}};
2
+
3
+ export { moment as __module };
4
+ //# sourceMappingURL=moment2.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"moment2.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;"}
@@ -1,14 +1,14 @@
1
1
  "use client";
2
- import { jsx } from 'react/jsx-runtime';
2
+ import { jsx, jsxs } from 'react/jsx-runtime';
3
3
  import { l as libExports } from '../../_virtual/index.js';
4
4
  import { panelStore } from './panel.store.js';
5
5
  import { handlePanelClick } from './panel.actions.js';
6
6
  import Drawer from '../../node_modules/@mui/material/esm/Drawer/Drawer.js';
7
7
  import Box from '../../node_modules/@mui/material/esm/Box/Box.js';
8
8
 
9
- const Panel = ({ children, size = 300, ...rest }) => {
9
+ const Panel = ({ children, footer, size = 300, ...rest }) => {
10
10
  const { isOpen } = libExports.useStore(panelStore);
11
- return (jsx(Drawer, { open: isOpen, onClose: () => handlePanelClick(false), ...rest, children: jsx(Box, { sx: { width: size }, display: "flex", flexDirection: "column", justifyContent: "space-between", height: "100%", children: children }) }));
11
+ return (jsx(Drawer, { open: isOpen, onClose: () => handlePanelClick(false), ...rest, children: jsxs(Box, { sx: { width: size }, display: "flex", flexDirection: "column", justifyContent: "space-between", height: "100%", children: [jsx(Box, { children: children }), jsx(Box, { children: footer })] }) }));
12
12
  };
13
13
 
14
14
  export { Panel };
@@ -1 +1 @@
1
- {"version":3,"file":"Panel.js","sources":["../../../../src/components/panel/Panel.tsx"],"sourcesContent":["'use client';\nimport { Box, Drawer, DrawerProps } from '@mui/material';\nimport React from 'react';\nimport { useStore } from '@cobuildlab/react-simple-state';\nimport { panelStore } from './panel.store';\nimport { handlePanelClick } from './panel.actions';\n\nexport interface PanelProps extends DrawerProps {\n children?: React.ReactNode;\n size?: number;\n}\n\nexport const Panel: React.FC<PanelProps> = ({ children, size = 300, ...rest }) => {\n const { isOpen } = useStore(panelStore);\n\n return (\n <Drawer open={isOpen} onClose={() => handlePanelClick(false)} {...rest}>\n <Box\n sx={{ width: size }}\n display=\"flex\"\n flexDirection=\"column\"\n justifyContent=\"space-between\"\n height=\"100%\">\n {children}\n </Box>\n </Drawer>\n );\n};\n"],"names":[],"mappings":";;;;;;;;AAYO;;;AAeP;;"}
1
+ {"version":3,"file":"Panel.js","sources":["../../../../src/components/panel/Panel.tsx"],"sourcesContent":["'use client';\nimport { Box, Drawer, DrawerProps } from '@mui/material';\nimport React from 'react';\nimport { useStore } from '@cobuildlab/react-simple-state';\nimport { panelStore } from './panel.store';\nimport { handlePanelClick } from './panel.actions';\n\nexport interface PanelProps extends DrawerProps {\n children?: React.ReactNode;\n footer?: React.ReactNode;\n size?: number;\n}\n\nexport const Panel: React.FC<PanelProps> = ({ children, footer, size = 300, ...rest }) => {\n const { isOpen } = useStore(panelStore);\n\n return (\n <Drawer open={isOpen} onClose={() => handlePanelClick(false)} {...rest}>\n <Box\n sx={{ width: size }}\n display=\"flex\"\n flexDirection=\"column\"\n justifyContent=\"space-between\"\n height=\"100%\">\n <Box>{children}</Box>\n <Box>{footer}</Box>\n </Box>\n </Drawer>\n );\n};\n"],"names":[],"mappings":";;;;;;;;AAaO;;AAGL;AAaF;;"}
@@ -7,7 +7,7 @@ import Button from '../../node_modules/@mui/material/esm/Button/Button.js';
7
7
 
8
8
  const PanelButton = ({ children, ...rest }) => {
9
9
  const { isOpen } = libExports.useStore(panelStore);
10
- return jsx(Button, { onClick: () => handlePanelClick(!isOpen), ...rest });
10
+ return jsx(Button, { onClick: () => handlePanelClick(!isOpen), ...rest, children: children });
11
11
  };
12
12
 
13
13
  export { PanelButton };
@@ -1 +1 @@
1
- {"version":3,"file":"PanelButton.js","sources":["../../../../src/components/panel/PanelButton.tsx"],"sourcesContent":["'use client'\nimport React, { FC } from 'react';\nimport { Button, ButtonProps } from '@mui/material';\nimport { handlePanelClick } from './panel.actions';\nimport { useStore } from '@cobuildlab/react-simple-state';\nimport { panelStore } from './panel.store';\n\nexport interface PanelButtonProps extends ButtonProps {\n children: React.ReactNode;\n}\n\nexport const PanelButton: FC<PanelButtonProps> = ({ children, ...rest }) => {\n const { isOpen } = useStore(panelStore);\n\n return <Button onClick={() => handlePanelClick(!isOpen)} {...rest}></Button>;\n};\n"],"names":[],"mappings":";;;;;;;AAWO;;AAGL;AACF;;"}
1
+ {"version":3,"file":"PanelButton.js","sources":["../../../../src/components/panel/PanelButton.tsx"],"sourcesContent":["'use client'\nimport React, { FC } from 'react';\nimport { Button, ButtonProps } from '@mui/material';\nimport { handlePanelClick } from './panel.actions';\nimport { useStore } from '@cobuildlab/react-simple-state';\nimport { panelStore } from './panel.store';\n\nexport interface PanelButtonProps extends ButtonProps {\n children: React.ReactNode;\n}\n\nexport const PanelButton: FC<PanelButtonProps> = ({ children, ...rest }) => {\n const { isOpen } = useStore(panelStore);\n\n return <Button onClick={() => handlePanelClick(!isOpen)} {...rest}>\n {children}\n </Button>;\n};\n"],"names":[],"mappings":";;;;;;;AAWO;;AAGL;AAGF;;"}
@@ -2,7 +2,7 @@
2
2
  import { jsx } from 'react/jsx-runtime';
3
3
  import Box from '../../node_modules/@mui/material/esm/Box/Box.js';
4
4
 
5
- const PanelHeader = ({ imageProps, containerProps }) => {
5
+ const PanelHeader = ({ imageProps = {}, containerProps = {}, }) => {
6
6
  return (jsx(Box, { ...containerProps, children: jsx("img", { ...imageProps, alt: imageProps?.alt }) }));
7
7
  };
8
8
 
@@ -1 +1 @@
1
- {"version":3,"file":"PanelHeader.js","sources":["../../../../src/components/panel/PanelHeader.tsx"],"sourcesContent":["'use client';\nimport React from 'react';\nimport { BoxProps, Box } from '@mui/material';\n\nexport interface PanelHeaderProps {\n containerProps: BoxProps;\n imageProps?: React.DetailedHTMLProps<React.ImgHTMLAttributes<HTMLImageElement>, HTMLImageElement>;\n}\n\nexport const PanelHeader: React.FC<PanelHeaderProps> = ({ imageProps, containerProps }) => {\n return (\n <Box {...containerProps}>\n <img {...imageProps} alt={imageProps?.alt} />\n </Box>\n );\n};\n"],"names":[],"mappings":";;;;AASO;AACL;AAKF;;"}
1
+ {"version":3,"file":"PanelHeader.js","sources":["../../../../src/components/panel/PanelHeader.tsx"],"sourcesContent":["'use client';\nimport React from 'react';\nimport { BoxProps, Box } from '@mui/material';\n\nexport interface PanelHeaderProps {\n containerProps?: BoxProps;\n imageProps?: React.DetailedHTMLProps<React.ImgHTMLAttributes<HTMLImageElement>, HTMLImageElement>;\n}\n\nexport const PanelHeader: React.FC<PanelHeaderProps> = ({\n imageProps = {},\n containerProps = {},\n}) => {\n return (\n <Box {...containerProps}>\n <img {...imageProps} alt={imageProps?.alt} />\n </Box>\n );\n};\n"],"names":[],"mappings":";;;;AASO;AAIL;AAKF;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"PanelItem.js","sources":["../../../../src/components/panel/PanelItem.tsx"],"sourcesContent":["'use client'\nimport React from 'react';\nimport {\n ListItem,\n ListItemButton,\n ListItemText,\n IconButton,\n ListItemProps,\n ListItemTextProps,\n} from '@mui/material';\nimport ArrowForwardIosIcon from '@mui/icons-material/ArrowForwardIos';\nimport { theme } from '../../shared/mui/theme';\n\nexport interface PanelItemProps {\n listItemProps?: ListItemProps & { href: string };\n listItemTextProps?: ListItemTextProps;\n}\n\nexport const PanelItem: React.FC<PanelItemProps> = ({ listItemProps, listItemTextProps }) => {\n return (\n <ListItem\n disablePadding\n component=\"a\"\n secondaryAction={\n <IconButton>\n <ArrowForwardIosIcon fontSize=\"small\" />\n </IconButton>\n }\n {...listItemProps}>\n <ListItemButton sx={{ alignItems: 'center', paddingLeft: theme.spacing(1.5) }}>\n <ListItemText {...listItemTextProps} />\n </ListItemButton>\n </ListItem>\n );\n};\n"],"names":[],"mappings":";;;;;;;;;AAkBO;;AAgBP;;"}
1
+ {"version":3,"file":"PanelItem.js","sources":["../../../../src/components/panel/PanelItem.tsx"],"sourcesContent":["'use client'\nimport React from 'react';\nimport {\n ListItem,\n ListItemButton,\n ListItemText,\n IconButton,\n ListItemProps,\n ListItemTextProps,\n} from '@mui/material';\nimport ArrowForwardIosIcon from '@mui/icons-material/ArrowForwardIos';\nimport { theme } from '../../shared/mui/theme';\n\nexport interface PanelItemProps {\n listItemProps?: ListItemProps & { href?: string };\n listItemTextProps?: ListItemTextProps;\n}\n\nexport const PanelItem: React.FC<PanelItemProps> = ({ listItemProps, listItemTextProps }) => {\n return (\n <ListItem\n disablePadding\n component=\"a\"\n secondaryAction={\n <IconButton>\n <ArrowForwardIosIcon fontSize=\"small\" />\n </IconButton>\n }\n {...listItemProps}>\n <ListItemButton sx={{ alignItems: 'center', paddingLeft: theme.spacing(1.5) }}>\n <ListItemText {...listItemTextProps} />\n </ListItemButton>\n </ListItem>\n );\n};\n"],"names":[],"mappings":";;;;;;;;;AAkBO;;AAgBP;;"}
@@ -1,5 +1,7 @@
1
1
  import { l as libExports } from '../../_virtual/index.js';
2
2
  import { panelStore } from './panel.store.js';
3
+ import { universalCookies } from '../../shared/cookies/index.js';
4
+ import { getCookieOptions } from '../../shared/cookies/cookies.utils.js';
3
5
 
4
6
  const panelStoreAction = libExports.createStoreAction(panelStore, (prev, data) => ({
5
7
  ...prev,
@@ -8,6 +10,11 @@ const panelStoreAction = libExports.createStoreAction(panelStore, (prev, data) =
8
10
  const handlePanelClick = (isOpen) => {
9
11
  return panelStoreAction({ isOpen });
10
12
  };
13
+ const handleLogout = (config) => {
14
+ const options = getCookieOptions(config);
15
+ universalCookies.remove(config?.cookieTokenName, options);
16
+ window.location.reload();
17
+ };
11
18
 
12
- export { handlePanelClick, panelStoreAction };
19
+ export { handleLogout, handlePanelClick, panelStoreAction };
13
20
  //# sourceMappingURL=panel.actions.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"panel.actions.js","sources":["../../../../src/components/panel/panel.actions.ts"],"sourcesContent":["import { createStoreAction } from '@cobuildlab/react-simple-state';\nimport { panelStore } from './panel.store';\nimport { PanelStoreAction } from './panel.types';\n\nexport const panelStoreAction = createStoreAction(panelStore, (prev, data: PanelStoreAction) => ({\n ...prev,\n ...data,\n}));\n\nexport const handlePanelClick = (isOpen: boolean) => {\n return panelStoreAction({ isOpen });\n};\n"],"names":["createStoreAction"],"mappings":";;;AAIO,MAAM,gBAAgB,GAAGA,4BAAiB,CAAC,UAAU,EAAE,CAAC,IAAI,EAAE,IAAsB,MAAM;AAC/F,IAAA,GAAG,IAAI;AACP,IAAA,GAAG,IAAI;AACR,CAAA,CAAC;AAEK,MAAM,gBAAgB,GAAG,CAAC,MAAe,KAAI;AAClD,IAAA,OAAO,gBAAgB,CAAC,EAAE,MAAM,EAAE,CAAC;AACrC;;;;"}
1
+ {"version":3,"file":"panel.actions.js","sources":["../../../../src/components/panel/panel.actions.ts"],"sourcesContent":["import { createStoreAction } from '@cobuildlab/react-simple-state';\nimport { panelStore } from './panel.store';\nimport { PanelStoreAction } from './panel.types';\nimport { universalCookies } from '../../shared/cookies';\nimport { Config } from '../../config/config.types';\nimport { getCookieOptions } from '../../shared/cookies/cookies.utils';\n\nexport const panelStoreAction = createStoreAction(panelStore, (prev, data: PanelStoreAction) => ({\n ...prev,\n ...data,\n}));\n\nexport const handlePanelClick = (isOpen: boolean) => {\n return panelStoreAction({ isOpen });\n};\n\nexport const handleLogout = (config: Config | undefined) => {\n const options = getCookieOptions(config);\n universalCookies.remove(config?.cookieTokenName as string, options);\n window.location.reload();\n};\n"],"names":["createStoreAction"],"mappings":";;;;;AAOO,MAAM,gBAAgB,GAAGA,4BAAiB,CAAC,UAAU,EAAE,CAAC,IAAI,EAAE,IAAsB,MAAM;AAC/F,IAAA,GAAG,IAAI;AACP,IAAA,GAAG,IAAI;AACR,CAAA,CAAC;AAEK,MAAM,gBAAgB,GAAG,CAAC,MAAe,KAAI;AAClD,IAAA,OAAO,gBAAgB,CAAC,EAAE,MAAM,EAAE,CAAC;AACrC;AAEO,MAAM,YAAY,GAAG,CAAC,MAA0B,KAAI;AACzD,IAAA,MAAM,OAAO,GAAG,gBAAgB,CAAC,MAAM,CAAC;IACxC,gBAAgB,CAAC,MAAM,CAAC,MAAM,EAAE,eAAyB,EAAE,OAAO,CAAC;AACnE,IAAA,MAAM,CAAC,QAAQ,CAAC,MAAM,EAAE;AAC1B;;;;"}
package/dist/esm/index.js CHANGED
@@ -6,6 +6,6 @@ export { PanelHeader } from './components/panel/PanelHeader.js';
6
6
  export { PanelItem } from './components/panel/PanelItem.js';
7
7
  export { PanelListItems } from './components/panel/PanelListItems.js';
8
8
  export { panelStore } from './components/panel/panel.store.js';
9
- export { handlePanelClick, panelStoreAction } from './components/panel/panel.actions.js';
9
+ export { handleLogout, handlePanelClick, panelStoreAction } from './components/panel/panel.actions.js';
10
10
  export { SessionProvider } from './components/session/SessionProvider.js';
11
11
  //# sourceMappingURL=index.js.map