@arkitektbedriftene/fe-lib 0.4.7 → 0.4.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/icons.es.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { jsx as t } from "react/jsx-runtime";
2
- import { G as l, M as n, a as r, b as i, F as c, c as h, d, e as v } from "./index.esm-969855d2.js";
2
+ import { G as l, M as n, a as r, b as i, F as c, c as h, d, e as v } from "./index.esm-b848a615.js";
3
3
  import "react";
4
4
  function s(a) {
5
5
  return l({ tag: "svg", attr: { fill: "currentColor", viewBox: "0 0 16 16" }, child: [{ tag: "path", attr: { d: "M4 2.5a.5.5 0 0 1 .5-.5h1a.5.5 0 0 1 .5.5v1a.5.5 0 0 1-.5.5h-1a.5.5 0 0 1-.5-.5v-1Zm3 0a.5.5 0 0 1 .5-.5h1a.5.5 0 0 1 .5.5v1a.5.5 0 0 1-.5.5h-1a.5.5 0 0 1-.5-.5v-1Zm3.5-.5a.5.5 0 0 0-.5.5v1a.5.5 0 0 0 .5.5h1a.5.5 0 0 0 .5-.5v-1a.5.5 0 0 0-.5-.5h-1ZM4 5.5a.5.5 0 0 1 .5-.5h1a.5.5 0 0 1 .5.5v1a.5.5 0 0 1-.5.5h-1a.5.5 0 0 1-.5-.5v-1ZM7.5 5a.5.5 0 0 0-.5.5v1a.5.5 0 0 0 .5.5h1a.5.5 0 0 0 .5-.5v-1a.5.5 0 0 0-.5-.5h-1Zm2.5.5a.5.5 0 0 1 .5-.5h1a.5.5 0 0 1 .5.5v1a.5.5 0 0 1-.5.5h-1a.5.5 0 0 1-.5-.5v-1ZM4.5 8a.5.5 0 0 0-.5.5v1a.5.5 0 0 0 .5.5h1a.5.5 0 0 0 .5-.5v-1a.5.5 0 0 0-.5-.5h-1Zm2.5.5a.5.5 0 0 1 .5-.5h1a.5.5 0 0 1 .5.5v1a.5.5 0 0 1-.5.5h-1a.5.5 0 0 1-.5-.5v-1Zm3.5-.5a.5.5 0 0 0-.5.5v1a.5.5 0 0 0 .5.5h1a.5.5 0 0 0 .5-.5v-1a.5.5 0 0 0-.5-.5h-1Z" } }, { tag: "path", attr: { d: "M2 1a1 1 0 0 1 1-1h10a1 1 0 0 1 1 1v14a1 1 0 0 1-1 1H3a1 1 0 0 1-1-1V1Zm11 0H3v14h3v-2.5a.5.5 0 0 1 .5-.5h3a.5.5 0 0 1 .5.5V15h3V1Z" } }] })(a);
@@ -1,11 +1,11 @@
1
1
  import i from "react";
2
- var u = {
2
+ var g = {
3
3
  color: void 0,
4
4
  size: void 0,
5
5
  className: void 0,
6
6
  style: void 0,
7
7
  attr: void 0
8
- }, s = i.createContext && i.createContext(u), l = globalThis && globalThis.__assign || function() {
8
+ }, s = i.createContext && i.createContext(g), l = globalThis && globalThis.__assign || function() {
9
9
  return l = Object.assign || function(t) {
10
10
  for (var e, a = 1, r = arguments.length; a < r; a++) {
11
11
  e = arguments[a];
@@ -23,18 +23,18 @@ var u = {
23
23
  e.indexOf(r[c]) < 0 && Object.prototype.propertyIsEnumerable.call(t, r[c]) && (a[r[c]] = t[r[c]]);
24
24
  return a;
25
25
  };
26
- function g(t) {
26
+ function u(t) {
27
27
  return t && t.map(function(e, a) {
28
28
  return i.createElement(e.tag, l({
29
29
  key: a
30
- }, e.attr), g(e.child));
30
+ }, e.attr), u(e.child));
31
31
  });
32
32
  }
33
33
  function n(t) {
34
34
  return function(e) {
35
35
  return i.createElement(z, l({
36
36
  attr: l({}, t.attr)
37
- }, e), g(t.child));
37
+ }, e), u(t.child));
38
38
  };
39
39
  }
40
40
  function z(t) {
@@ -56,48 +56,52 @@ function z(t) {
56
56
  };
57
57
  return s !== void 0 ? i.createElement(s.Consumer, null, function(a) {
58
58
  return e(a);
59
- }) : e(u);
59
+ }) : e(g);
60
60
  }
61
- function M(t) {
61
+ function m(t) {
62
62
  return n({ tag: "svg", attr: { viewBox: "0 0 24 24" }, child: [{ tag: "path", attr: { fill: "none", d: "M0 0h24v24H0z" } }, { tag: "path", attr: { d: "M20 6h-3V4c0-1.11-.89-2-2-2H9c-1.11 0-2 .89-2 2v2H4c-1.11 0-2 .89-2 2v11c0 1.11.89 2 2 2h16c1.11 0 2-.89 2-2V8c0-1.11-.89-2-2-2zM9 4h6v2H9V4zm11 15H4v-2h16v2zm0-5H4V8h3v2h2V8h6v2h2V8h3v6z" } }] })(t);
63
63
  }
64
64
  function H(t) {
65
+ return n({ tag: "svg", attr: { viewBox: "0 0 24 24" }, child: [{ tag: "path", attr: { fill: "none", d: "M0 0h24v24H0z" } }, { tag: "path", attr: { d: "M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6v12zM19 4h-3.5l-1-1h-5l-1 1H5v2h14V4z" } }] })(t);
66
+ }
67
+ function p(t) {
65
68
  return n({ tag: "svg", attr: { viewBox: "0 0 24 24" }, child: [{ tag: "path", attr: { fill: "none", d: "M0 0h24v24H0z" } }, { tag: "path", attr: { d: "M23 12l-2.44-2.79.34-3.69-3.61-.82-1.89-3.2L12 2.96 8.6 1.5 6.71 4.69 3.1 5.5l.34 3.7L1 12l2.44 2.79-.34 3.7 3.61.82L8.6 22.5l3.4-1.47 3.4 1.46 1.89-3.19 3.61-.82-.34-3.69L23 12zm-12.91 4.72l-3.8-3.81 1.48-1.48 2.32 2.33 5.85-5.87 1.48 1.48-7.33 7.35z" } }] })(t);
66
69
  }
67
- function L(t) {
70
+ function w(t) {
68
71
  return n({ tag: "svg", attr: { viewBox: "0 0 24 24" }, child: [{ tag: "path", attr: { fill: "none", d: "M0 0h24v24H0V0z" } }, { tag: "path", attr: { d: "M11 15h2v2h-2zm0-8h2v6h-2zm.99-5C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z" } }] })(t);
69
72
  }
70
- function p(t) {
73
+ function L(t) {
71
74
  return n({ tag: "svg", attr: { viewBox: "0 0 24 24" }, child: [{ tag: "path", attr: { fill: "none", d: "M0 0h24v24H0z" } }, { tag: "path", attr: { d: "M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z" } }] })(t);
72
75
  }
73
- function w(t) {
76
+ function x(t) {
74
77
  return n({ tag: "svg", attr: { viewBox: "0 0 24 24" }, child: [{ tag: "path", attr: { fill: "none", d: "M0 0h24v24H0z" } }, { tag: "path", attr: { d: "M5 13.18v4L12 21l7-3.82v-4L12 17l-7-3.82zM12 3L1 9l11 6 9-4.91V17h2V9L12 3z" } }] })(t);
75
78
  }
76
79
  function C(t) {
77
80
  return n({ tag: "svg", attr: { viewBox: "0 0 24 24" }, child: [{ tag: "path", attr: { fill: "none", d: "M0 0h24v24H0z" } }, { tag: "path", attr: { d: "M19.3 16.9c.4-.7.7-1.5.7-2.4 0-2.5-2-4.5-4.5-4.5S11 12 11 14.5s2 4.5 4.5 4.5c.9 0 1.7-.3 2.4-.7l3.2 3.2 1.4-1.4-3.2-3.2zm-3.8.1c-1.4 0-2.5-1.1-2.5-2.5s1.1-2.5 2.5-2.5 2.5 1.1 2.5 2.5-1.1 2.5-2.5 2.5zM12 20v2C6.48 22 2 17.52 2 12S6.48 2 12 2c4.84 0 8.87 3.44 9.8 8h-2.07A8 8 0 0015 4.59V5c0 1.1-.9 2-2 2h-2v2c0 .55-.45 1-1 1H8v2h2v3H9l-4.79-4.79C4.08 10.79 4 11.38 4 12c0 4.41 3.59 8 8 8z" } }] })(t);
78
81
  }
79
- function x(t) {
82
+ function V(t) {
80
83
  return n({ tag: "svg", attr: { viewBox: "0 0 24 24" }, child: [{ tag: "path", attr: { fill: "none", d: "M0 0h24v24H0z" } }, { tag: "path", attr: { d: "M7.32 10.56L8.38 9.5 7.32 8.44l1.06-1.06L10.5 9.5l-2.12 2.12-1.06-1.06zM4.5 9c.03 0 .05.01.08.01A8.002 8.002 0 0112 4c2.19 0 4.16.88 5.61 2.3.15-.6.45-1.29.81-1.96A9.965 9.965 0 0011.99 2c-4.88 0-8.94 3.51-9.81 8.14C2.74 9.44 3.59 9 4.5 9zM21 10.5c-.42 0-.82-.09-1.19-.22.12.55.19 1.13.19 1.72 0 4.42-3.58 8-8 8-3.36 0-6.23-2.07-7.42-5.01-.03 0-.05.01-.08.01-.52 0-1.04-.14-1.5-.4-.32-.18-.59-.42-.82-.7.89 4.61 4.93 8.1 9.8 8.1C17.52 22 22 17.52 22 12c0-.55-.06-1.09-.14-1.62a3.5 3.5 0 01-.86.12zM21 3s-2 2.9-2 4 .9 2 2 2 2-.9 2-2-2-4-2-4zm-5.38 4.38L13.5 9.5l2.12 2.12 1.06-1.06-1.06-1.06 1.06-1.06-1.06-1.06zM8.56 17c.69-1.19 1.97-2 3.44-2s2.75.81 3.44 2h1.68c-.8-2.05-2.79-3.5-5.12-3.5-.87 0-1.7.2-2.43.57L5.99 12c0-.52-.26-1.02-.74-1.29-.72-.41-1.63-.17-2.05.55-.41.72-.17 1.63.55 2.05.48.28 1.05.25 1.49 0l2.97 1.72c-.57.53-1.03 1.21-1.33 1.97h1.68z" } }] })(t);
81
84
  }
82
85
  function y(t) {
83
86
  return n({ tag: "svg", attr: { viewBox: "0 0 320 512" }, child: [{ tag: "path", attr: { d: "M143 352.3L7 216.3c-9.4-9.4-9.4-24.6 0-33.9l22.6-22.6c9.4-9.4 24.6-9.4 33.9 0l96.4 96.4 96.4-96.4c9.4-9.4 24.6-9.4 33.9 0l22.6 22.6c9.4 9.4 9.4 24.6 0 33.9l-136 136c-9.2 9.4-24.4 9.4-33.8 0z" } }] })(t);
84
87
  }
85
- function V(t) {
88
+ function b(t) {
86
89
  return n({ tag: "svg", attr: { viewBox: "0 0 384 512" }, child: [{ tag: "path", attr: { d: "M224 136V0H24C10.7 0 0 10.7 0 24v464c0 13.3 10.7 24 24 24h336c13.3 0 24-10.7 24-24V160H248c-13.2 0-24-10.8-24-24zM64 72c0-4.42 3.58-8 8-8h80c4.42 0 8 3.58 8 8v16c0 4.42-3.58 8-8 8H72c-4.42 0-8-3.58-8-8V72zm0 64c0-4.42 3.58-8 8-8h80c4.42 0 8 3.58 8 8v16c0 4.42-3.58 8-8 8H72c-4.42 0-8-3.58-8-8v-16zm192.81 248H304c8.84 0 16 7.16 16 16s-7.16 16-16 16h-47.19c-16.45 0-31.27-9.14-38.64-23.86-2.95-5.92-8.09-6.52-10.17-6.52s-7.22.59-10.02 6.19l-7.67 15.34a15.986 15.986 0 0 1-14.31 8.84c-.38 0-.75-.02-1.14-.05-6.45-.45-12-4.75-14.03-10.89L144 354.59l-10.61 31.88c-5.89 17.66-22.38 29.53-41 29.53H80c-8.84 0-16-7.16-16-16s7.16-16 16-16h12.39c4.83 0 9.11-3.08 10.64-7.66l18.19-54.64c3.3-9.81 12.44-16.41 22.78-16.41s19.48 6.59 22.77 16.41l13.88 41.64c19.77-16.19 54.05-9.7 66 14.16 2.02 4.06 5.96 6.5 10.16 6.5zM377 105L279.1 7c-4.5-4.5-10.6-7-17-7H256v128h128v-6.1c0-6.3-2.5-12.4-7-16.9z" } }] })(t);
87
90
  }
88
- function b(t) {
91
+ function O(t) {
89
92
  return n({ tag: "svg", attr: { viewBox: "0 0 640 512" }, child: [{ tag: "path", attr: { d: "M488 192H336v56c0 39.7-32.3 72-72 72s-72-32.3-72-72V126.4l-64.9 39C107.8 176.9 96 197.8 96 220.2v47.3l-80 46.2C.7 322.5-4.6 342.1 4.3 357.4l80 138.6c8.8 15.3 28.4 20.5 43.7 11.7L231.4 448H368c35.3 0 64-28.7 64-64h16c17.7 0 32-14.3 32-32v-64h8c13.3 0 24-10.7 24-24v-48c0-13.3-10.7-24-24-24zm147.7-37.4L555.7 16C546.9.7 527.3-4.5 512 4.3L408.6 64H306.4c-12 0-23.7 3.4-33.9 9.7L239 94.6c-9.4 5.8-15 16.1-15 27.1V248c0 22.1 17.9 40 40 40s40-17.9 40-40v-88h184c30.9 0 56 25.1 56 56v28.5l80-46.2c15.3-8.9 20.5-28.4 11.7-43.7z" } }] })(t);
90
93
  }
91
94
  export {
92
- b as F,
95
+ O as F,
93
96
  n as G,
94
- x as M,
97
+ V as M,
95
98
  C as a,
96
- M as b,
97
- H as c,
98
- w as d,
99
- V as e,
100
- y as f,
101
- p as g,
102
- L as h
99
+ m as b,
100
+ p as c,
101
+ x as d,
102
+ b as e,
103
+ H as f,
104
+ y as g,
105
+ L as h,
106
+ w as i
103
107
  };
@@ -6,3 +6,6 @@ export interface FirmAccess {
6
6
  CustomerUserIsAdmin: boolean;
7
7
  }
8
8
  export declare function parseUserProfileFCString(fc: string): FirmAccess[];
9
+ export declare const ROLESAdminInCompany: string[];
10
+ export declare const ROLESMAKSAdministrator: string[];
11
+ export declare const ROLESAnsatt: string[];
package/dist/oidc.es.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { jsx as se } from "react/jsx-runtime";
2
- import { createContext as ue, useContext as ge, useMemo as _e, useEffect as L, useState as Ce, useRef as pe, useCallback as ae } from "react";
2
+ import { createContext as ue, useContext as ge, useMemo as _e, useEffect as F, useState as xe, useRef as pe, useCallback as ae } from "react";
3
3
  import { u as Re } from "./useLocalStorageState-b4fb2a60.js";
4
4
  var N = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
5
5
  function Te(e) {
@@ -32,12 +32,12 @@ function Te(e) {
32
32
  function Ie(e) {
33
33
  throw new Error('Could not dynamically require "' + e + '". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.');
34
34
  }
35
- var H = {}, Ue = {
35
+ var M = {}, Ue = {
36
36
  get exports() {
37
- return H;
37
+ return M;
38
38
  },
39
39
  set exports(e) {
40
- H = e;
40
+ M = e;
41
41
  }
42
42
  };
43
43
  const Ae = {}, Pe = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
@@ -208,12 +208,12 @@ const Ae = {}, Pe = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
208
208
  var d = this.words, p = a.words, m = this.sigBytes, b = a.sigBytes;
209
209
  if (this.clamp(), m % 4)
210
210
  for (var E = 0; E < b; E++) {
211
- var x = p[E >>> 2] >>> 24 - E % 4 * 8 & 255;
212
- d[m + E >>> 2] |= x << 24 - (m + E) % 4 * 8;
211
+ var C = p[E >>> 2] >>> 24 - E % 4 * 8 & 255;
212
+ d[m + E >>> 2] |= C << 24 - (m + E) % 4 * 8;
213
213
  }
214
214
  else
215
- for (var C = 0; C < b; C += 4)
216
- d[m + C >>> 2] = p[C >>> 2];
215
+ for (var x = 0; x < b; x += 4)
216
+ d[m + x >>> 2] = p[x >>> 2];
217
217
  return this.sigBytes += b, this;
218
218
  },
219
219
  /**
@@ -412,9 +412,9 @@ const Ae = {}, Pe = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
412
412
  * var processedData = bufferedBlockAlgorithm._process(!!'flush');
413
413
  */
414
414
  _process: function(a) {
415
- var d, p = this._data, m = p.words, b = p.sigBytes, E = this.blockSize, x = E * 4, C = b / x;
416
- a ? C = r.ceil(C) : C = r.max((C | 0) - this._minBufferSize, 0);
417
- var P = C * E, R = r.min(P * 4, b);
415
+ var d, p = this._data, m = p.words, b = p.sigBytes, E = this.blockSize, C = E * 4, x = b / C;
416
+ a ? x = r.ceil(x) : x = r.max((x | 0) - this._minBufferSize, 0);
417
+ var P = x * E, R = r.min(P * 4, b);
418
418
  if (P) {
419
419
  for (var q = 0; q < P; q += E)
420
420
  this._doProcessBlock(m, q);
@@ -552,7 +552,7 @@ var Q = {}, qe = {
552
552
  };
553
553
  (function(e, t) {
554
554
  (function(s, r) {
555
- e.exports = r(H);
555
+ e.exports = r(M);
556
556
  })(N, function(s) {
557
557
  return function(r) {
558
558
  var i = s, n = i.lib, o = n.WordArray, c = n.Hasher, l = i.algo, h = [], g = [];
@@ -574,15 +574,15 @@ var Q = {}, qe = {
574
574
  this._hash = new o.init(h.slice(0));
575
575
  },
576
576
  _doProcessBlock: function(w, k) {
577
- for (var _ = this._hash.words, v = _[0], y = _[1], a = _[2], d = _[3], p = _[4], m = _[5], b = _[6], E = _[7], x = 0; x < 64; x++) {
578
- if (x < 16)
579
- u[x] = w[k + x] | 0;
577
+ for (var _ = this._hash.words, v = _[0], y = _[1], a = _[2], d = _[3], p = _[4], m = _[5], b = _[6], E = _[7], C = 0; C < 64; C++) {
578
+ if (C < 16)
579
+ u[C] = w[k + C] | 0;
580
580
  else {
581
- var C = u[x - 15], P = (C << 25 | C >>> 7) ^ (C << 14 | C >>> 18) ^ C >>> 3, R = u[x - 2], q = (R << 15 | R >>> 17) ^ (R << 13 | R >>> 19) ^ R >>> 10;
582
- u[x] = P + u[x - 7] + q + u[x - 16];
581
+ var x = u[C - 15], P = (x << 25 | x >>> 7) ^ (x << 14 | x >>> 18) ^ x >>> 3, R = u[C - 2], q = (R << 15 | R >>> 17) ^ (R << 13 | R >>> 19) ^ R >>> 10;
582
+ u[C] = P + u[C - 7] + q + u[C - 16];
583
583
  }
584
- var W = p & m ^ ~p & b, J = v & y ^ v & a ^ y & a, K = (v << 30 | v >>> 2) ^ (v << 19 | v >>> 13) ^ (v << 10 | v >>> 22), V = (p << 26 | p >>> 6) ^ (p << 21 | p >>> 11) ^ (p << 7 | p >>> 25), B = E + V + W + g[x] + u[x], xe = K + J;
585
- E = b, b = m, m = p, p = d + B | 0, d = a, a = y, y = v, v = B + xe | 0;
584
+ var W = p & m ^ ~p & b, J = v & y ^ v & a ^ y & a, K = (v << 30 | v >>> 2) ^ (v << 19 | v >>> 13) ^ (v << 10 | v >>> 22), V = (p << 26 | p >>> 6) ^ (p << 21 | p >>> 11) ^ (p << 7 | p >>> 25), B = E + V + W + g[C] + u[C], Ce = K + J;
585
+ E = b, b = m, m = p, p = d + B | 0, d = a, a = y, y = v, v = B + Ce | 0;
586
586
  }
587
587
  _[0] = _[0] + v | 0, _[1] = _[1] + y | 0, _[2] = _[2] + a | 0, _[3] = _[3] + d | 0, _[4] = _[4] + p | 0, _[5] = _[5] + m | 0, _[6] = _[6] + b | 0, _[7] = _[7] + E | 0;
588
588
  },
@@ -609,7 +609,7 @@ var $ = {}, Ne = {
609
609
  };
610
610
  (function(e, t) {
611
611
  (function(s, r) {
612
- e.exports = r(H);
612
+ e.exports = r(M);
613
613
  })(N, function(s) {
614
614
  return function() {
615
615
  var r = s, i = r.lib, n = i.WordArray, o = r.enc;
@@ -689,7 +689,7 @@ var X = {}, je = {
689
689
  };
690
690
  (function(e, t) {
691
691
  (function(s, r) {
692
- e.exports = r(H);
692
+ e.exports = r(M);
693
693
  })(N, function(s) {
694
694
  return s.enc.Utf8;
695
695
  });
@@ -706,7 +706,7 @@ var ce = typeof window < "u" && window.atob && window.atob.bind(window) || funct
706
706
  r = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(r);
707
707
  return o;
708
708
  };
709
- function He(e) {
709
+ function Me(e) {
710
710
  var t = e.replace(/-/g, "+").replace(/_/g, "/");
711
711
  switch (t.length % 4) {
712
712
  case 0:
@@ -734,12 +734,12 @@ function He(e) {
734
734
  function z(e) {
735
735
  this.message = e;
736
736
  }
737
- function Me(e, t) {
737
+ function He(e, t) {
738
738
  if (typeof e != "string")
739
739
  throw new z("Invalid token specified");
740
740
  var s = (t = t || {}).header === !0 ? 0 : 1;
741
741
  try {
742
- return JSON.parse(He(e.split(".")[s]));
742
+ return JSON.parse(Me(e.split(".")[s]));
743
743
  } catch (r) {
744
744
  throw new z("Invalid token specified: " + r.message);
745
745
  }
@@ -819,7 +819,7 @@ var f = class {
819
819
  D.reset();
820
820
  var Be = "10000000-1000-4000-8000-100000000000", A = class {
821
821
  static _randomWord() {
822
- return H.lib.WordArray.random(1).words[0];
822
+ return M.lib.WordArray.random(1).words[0];
823
823
  }
824
824
  /**
825
825
  * Generates RFC4122 version 4 guid
@@ -874,7 +874,7 @@ var Be = "10000000-1000-4000-8000-100000000000", A = class {
874
874
  // IMPORTANT: doesn't validate the token
875
875
  static decode(e) {
876
876
  try {
877
- return Me(e);
877
+ return He(e);
878
878
  } catch (t) {
879
879
  throw f.error("JwtUtils.decode", t), t;
880
880
  }
@@ -939,7 +939,7 @@ var Be = "10000000-1000-4000-8000-100000000000", A = class {
939
939
  constructor(e) {
940
940
  super(e), this.name = "ErrorTimeout";
941
941
  }
942
- }, Fe = class {
942
+ }, Le = class {
943
943
  constructor(e) {
944
944
  this._logger = new f("AccessTokenEvents"), this._expiringTimer = new T("Access token expiring"), this._expiredTimer = new T("Access token expired"), this._expiringNotificationTimeInSeconds = e.expiringNotificationTimeInSeconds;
945
945
  }
@@ -984,7 +984,7 @@ var Be = "10000000-1000-4000-8000-100000000000", A = class {
984
984
  removeAccessTokenExpired(e) {
985
985
  this._expiredTimer.removeHandler(e);
986
986
  }
987
- }, Le = class {
987
+ }, Fe = class {
988
988
  constructor(e, t, s, r, i) {
989
989
  this._callback = e, this._client_id = t, this._intervalInSeconds = r, this._stopOnError = i, this._logger = new f("CheckSessionIFrame"), this._timer = null, this._session_state = null, this._message = (o) => {
990
990
  o.origin === this._frame_origin && o.source === this._frame.contentWindow && (o.data === "error" ? (this._logger.error("error message from check session op iframe"), this._stopOnError && this.stop()) : o.data === "changed" ? (this._logger.debug("changed message from check session op iframe"), this.stop(), this._callback()) : this._logger.debug(o.data + " message from check session op iframe"));
@@ -1234,8 +1234,8 @@ var Be = "10000000-1000-4000-8000-100000000000", A = class {
1234
1234
  staleStateAgeInSeconds: m = Ve,
1235
1235
  clockSkewInSeconds: b = Ge,
1236
1236
  userInfoJwtIssuer: E = "OP",
1237
- mergeClaims: x = !1,
1238
- disablePKCE: C = !1,
1237
+ mergeClaims: C = !1,
1238
+ disablePKCE: x = !1,
1239
1239
  // other behavior
1240
1240
  stateStore: P,
1241
1241
  refreshTokenCredentials: R,
@@ -1246,7 +1246,7 @@ var Be = "10000000-1000-4000-8000-100000000000", A = class {
1246
1246
  extraQueryParams: K = {},
1247
1247
  extraTokenParams: V = {}
1248
1248
  }) {
1249
- if (this.authority = e, t ? this.metadataUrl = t : (this.metadataUrl = e, e && (this.metadataUrl.endsWith("/") || (this.metadataUrl += "/"), this.metadataUrl += ".well-known/openid-configuration")), this.metadata = s, this.metadataSeed = i, this.signingKeys = r, this.client_id = n, this.client_secret = o, this.response_type = c, this.scope = l, this.redirect_uri = h, this.post_logout_redirect_uri = g, this.client_authentication = u, this.prompt = S, this.display = w, this.max_age = k, this.ui_locales = _, this.acr_values = v, this.resource = y, this.response_mode = a, this.filterProtocolClaims = d ?? !0, this.loadUserInfo = !!p, this.staleStateAgeInSeconds = m, this.clockSkewInSeconds = b, this.userInfoJwtIssuer = E, this.mergeClaims = !!x, this.disablePKCE = !!C, this.revokeTokenAdditionalContentTypes = q, W && R && console.warn("Both fetchRequestCredentials and refreshTokenCredentials is set. Only fetchRequestCredentials will be used."), this.fetchRequestCredentials = W || R || "same-origin", P)
1249
+ if (this.authority = e, t ? this.metadataUrl = t : (this.metadataUrl = e, e && (this.metadataUrl.endsWith("/") || (this.metadataUrl += "/"), this.metadataUrl += ".well-known/openid-configuration")), this.metadata = s, this.metadataSeed = i, this.signingKeys = r, this.client_id = n, this.client_secret = o, this.response_type = c, this.scope = l, this.redirect_uri = h, this.post_logout_redirect_uri = g, this.client_authentication = u, this.prompt = S, this.display = w, this.max_age = k, this.ui_locales = _, this.acr_values = v, this.resource = y, this.response_mode = a, this.filterProtocolClaims = d ?? !0, this.loadUserInfo = !!p, this.staleStateAgeInSeconds = m, this.clockSkewInSeconds = b, this.userInfoJwtIssuer = E, this.mergeClaims = !!C, this.disablePKCE = !!x, this.revokeTokenAdditionalContentTypes = q, W && R && console.warn("Both fetchRequestCredentials and refreshTokenCredentials is set. Only fetchRequestCredentials will be used."), this.fetchRequestCredentials = W || R || "same-origin", P)
1250
1250
  this.stateStore = P;
1251
1251
  else {
1252
1252
  const B = typeof window < "u" ? window.localStorage : new fe();
@@ -1478,7 +1478,7 @@ var Be = "10000000-1000-4000-8000-100000000000", A = class {
1478
1478
  }
1479
1479
  e.profile = i;
1480
1480
  }
1481
- }, M = class {
1481
+ }, H = class {
1482
1482
  constructor(e) {
1483
1483
  this.id = e.id || A.generateUUIDv4(), this.data = e.data, e.created && e.created > 0 ? this.created = e.created : this.created = T.getEpochTime(), this.request_type = e.request_type;
1484
1484
  }
@@ -1491,7 +1491,7 @@ var Be = "10000000-1000-4000-8000-100000000000", A = class {
1491
1491
  });
1492
1492
  }
1493
1493
  static fromStorageString(e) {
1494
- return f.createStatic("State", "fromStorageString"), new M(JSON.parse(e));
1494
+ return f.createStatic("State", "fromStorageString"), new H(JSON.parse(e));
1495
1495
  }
1496
1496
  static async clearStaleState(e, t) {
1497
1497
  const s = f.createStatic("State", "clearStaleState"), r = T.getEpochTime() - t, i = await e.getAllKeys();
@@ -1501,7 +1501,7 @@ var Be = "10000000-1000-4000-8000-100000000000", A = class {
1501
1501
  let l = !1;
1502
1502
  if (c)
1503
1503
  try {
1504
- const h = M.fromStorageString(c);
1504
+ const h = H.fromStorageString(c);
1505
1505
  s.debug("got item from key:", o, h.created), h.created <= r && (l = !0);
1506
1506
  } catch (h) {
1507
1507
  s.error("Error parsing state for key:", o, h), l = !0;
@@ -1511,7 +1511,7 @@ var Be = "10000000-1000-4000-8000-100000000000", A = class {
1511
1511
  l && (s.debug("removed item for key:", o), e.remove(o));
1512
1512
  }
1513
1513
  }
1514
- }, ne = class extends M {
1514
+ }, ne = class extends H {
1515
1515
  constructor(e) {
1516
1516
  super(e), e.code_verifier === !0 ? this.code_verifier = A.generateCodeVerifier() : e.code_verifier && (this.code_verifier = e.code_verifier), this.code_verifier && (this.code_challenge = A.generateCodeChallenge(this.code_verifier)), this.authority = e.authority, this.client_id = e.client_id, this.redirect_uri = e.redirect_uri, this.scope = e.scope, this.client_secret = e.client_secret, this.extraTokenParams = e.extraTokenParams, this.response_mode = e.response_mode, this.skipUserInfo = e.skipUserInfo;
1517
1517
  }
@@ -1617,7 +1617,7 @@ var Be = "10000000-1000-4000-8000-100000000000", A = class {
1617
1617
  if (this._logger = new f("SignoutRequest"), !e)
1618
1618
  throw this._logger.error("ctor: No url passed"), new Error("url");
1619
1619
  const o = new URL(e);
1620
- s && o.searchParams.append("id_token_hint", s), r && (o.searchParams.append("post_logout_redirect_uri", r), t && (this.state = new M({ data: t, request_type: n }), o.searchParams.append("state", this.state.id)));
1620
+ s && o.searchParams.append("id_token_hint", s), r && (o.searchParams.append("post_logout_redirect_uri", r), t && (this.state = new H({ data: t, request_type: n }), o.searchParams.append("state", this.state.id)));
1621
1621
  for (const [c, l] of Object.entries({ ...i }))
1622
1622
  l != null && o.searchParams.append(c, l.toString());
1623
1623
  this.url = o.href;
@@ -1769,14 +1769,14 @@ var Be = "10000000-1000-4000-8000-100000000000", A = class {
1769
1769
  const i = await this.settings.stateStore[t ? "remove" : "get"](r.state);
1770
1770
  if (!i)
1771
1771
  throw s.throw(new Error("No matching state found in storage")), null;
1772
- return { state: M.fromStorageString(i), response: r };
1772
+ return { state: H.fromStorageString(i), response: r };
1773
1773
  }
1774
1774
  async processSignoutResponse(e) {
1775
1775
  const t = this._logger.create("processSignoutResponse"), { state: s, response: r } = await this.readSignoutResponseState(e, !0);
1776
1776
  return s ? (t.debug("Received state from storage; validating response"), this._validator.validateSignoutResponse(r, s)) : t.debug("No state from storage; skipping response validation"), r;
1777
1777
  }
1778
1778
  clearStaleState() {
1779
- return this._logger.create("clearStaleState"), M.clearStaleState(this.settings.stateStore, this.settings.staleStateAgeInSeconds);
1779
+ return this._logger.create("clearStaleState"), H.clearStaleState(this.settings.stateStore, this.settings.staleStateAgeInSeconds);
1780
1780
  }
1781
1781
  async revokeToken(e, t) {
1782
1782
  return this._logger.create("revokeToken"), await this._tokenClient.revoke({
@@ -1799,7 +1799,7 @@ var Be = "10000000-1000-4000-8000-100000000000", A = class {
1799
1799
  const i = await this._userManager.metadataService.getCheckSessionIframe();
1800
1800
  if (i) {
1801
1801
  r.debug("initializing check session iframe");
1802
- const n = this._userManager.settings.client_id, o = this._userManager.settings.checkSessionIntervalInSeconds, c = this._userManager.settings.stopCheckSessionOnError, l = new Le(this._callback, n, i, o, c);
1802
+ const n = this._userManager.settings.client_id, o = this._userManager.settings.checkSessionIntervalInSeconds, c = this._userManager.settings.stopCheckSessionOnError, l = new Fe(this._callback, n, i, o, c);
1803
1803
  await l.load(), this._checkSessionIFrame = l, l.start(s);
1804
1804
  } else
1805
1805
  r.warn("no check session iframe found in the metadata");
@@ -1860,7 +1860,7 @@ var Be = "10000000-1000-4000-8000-100000000000", A = class {
1860
1860
  }
1861
1861
  }
1862
1862
  }
1863
- }, F = class {
1863
+ }, L = class {
1864
1864
  constructor(e) {
1865
1865
  var t;
1866
1866
  this.id_token = e.id_token, this.session_state = (t = e.session_state) != null ? t : null, this.access_token = e.access_token, this.refresh_token = e.refresh_token, this.token_type = e.token_type, this.scope = e.scope, this.profile = e.profile, this.expires_at = e.expires_at, this.state = e.userState;
@@ -1897,7 +1897,7 @@ var Be = "10000000-1000-4000-8000-100000000000", A = class {
1897
1897
  });
1898
1898
  }
1899
1899
  static fromStorageString(e) {
1900
- return f.createStatic("User", "fromStorageString"), new F(JSON.parse(e));
1900
+ return f.createStatic("User", "fromStorageString"), new L(JSON.parse(e));
1901
1901
  }
1902
1902
  }, de = "oidc-client", Se = class {
1903
1903
  constructor() {
@@ -1976,8 +1976,8 @@ var Be = "10000000-1000-4000-8000-100000000000", A = class {
1976
1976
  if (super(e), this.popup_redirect_uri = t, this.popup_post_logout_redirect_uri = s, this.popupWindowFeatures = r, this.popupWindowTarget = i, this.redirectMethod = n, this.redirectTarget = o, this.iframeNotifyParentOrigin = c, this.iframeScriptOrigin = l, this.silent_redirect_uri = h, this.silentRequestTimeoutInSeconds = g, this.automaticSilentRenew = u, this.validateSubOnSilentRenew = S, this.includeIdTokenInSilentRenew = w, this.monitorSession = k, this.monitorAnonymousSession = _, this.checkSessionIntervalInSeconds = v, this.stopCheckSessionOnError = a, this.query_status_response_type = y, this.revokeTokenTypes = d, this.revokeTokensOnSignout = p, this.includeIdTokenInSilentSignout = m, this.accessTokenExpiringNotificationTimeInSeconds = b, E)
1977
1977
  this.userStore = E;
1978
1978
  else {
1979
- const x = typeof window < "u" ? window.sessionStorage : new fe();
1980
- this.userStore = new we({ store: x });
1979
+ const C = typeof window < "u" ? window.sessionStorage : new fe();
1980
+ this.userStore = new we({ store: C });
1981
1981
  }
1982
1982
  }
1983
1983
  }, te = class extends Se {
@@ -2083,7 +2083,7 @@ var Be = "10000000-1000-4000-8000-100000000000", A = class {
2083
2083
  }
2084
2084
  };
2085
2085
  }
2086
- }, gt = class extends Fe {
2086
+ }, gt = class extends Le {
2087
2087
  constructor(e) {
2088
2088
  super({ expiringNotificationTimeInSeconds: e.accessTokenExpiringNotificationTimeInSeconds }), this._logger = new f("UserManagerEvents"), this._userLoaded = new O("User loaded"), this._userUnloaded = new O("User unloaded"), this._silentRenewError = new O("Silent renew error"), this._userSignedIn = new O("User signed in"), this._userSignedOut = new O("User signed out"), this._userSessionChanged = new O("User session changed");
2089
2089
  }
@@ -2225,7 +2225,7 @@ var Be = "10000000-1000-4000-8000-100000000000", A = class {
2225
2225
  constructor(e) {
2226
2226
  this.refresh_token = e.refresh_token, this.id_token = e.id_token, this.session_state = e.session_state, this.scope = e.scope, this.profile = e.profile, this.data = e.state;
2227
2227
  }
2228
- }, xt = class {
2228
+ }, Ct = class {
2229
2229
  constructor(e) {
2230
2230
  this._logger = new f("UserManager"), this.settings = new ct(e), this._client = new it(e), this._redirectNavigator = new ut(this.settings), this._popupNavigator = new ht(this.settings), this._iframeNavigator = new lt(this.settings), this._events = new gt(this.settings), this._silentRenewService = new _t(this), this.settings.automaticSilentRenew && this.startSilentRenew(), this._sessionMonitor = null, this.settings.monitorSession && (this._sessionMonitor = new nt(this));
2231
2231
  }
@@ -2345,7 +2345,7 @@ var Be = "10000000-1000-4000-8000-100000000000", A = class {
2345
2345
  const t = await this._client.useRefreshToken({
2346
2346
  state: e,
2347
2347
  timeoutInSeconds: this.settings.silentRequestTimeoutInSeconds
2348
- }), s = new F({ ...e, ...t });
2348
+ }), s = new L({ ...e, ...t });
2349
2349
  return await this.storeUser(s), this._events.load(s), s;
2350
2350
  }
2351
2351
  /**
@@ -2450,7 +2450,7 @@ var Be = "10000000-1000-4000-8000-100000000000", A = class {
2450
2450
  return s.debug("got signin response"), await this._buildUser(r, t);
2451
2451
  }
2452
2452
  async _buildUser(e, t) {
2453
- const s = this._logger.create("_buildUser"), r = new F(e);
2453
+ const s = this._logger.create("_buildUser"), r = new L(e);
2454
2454
  if (t) {
2455
2455
  if (t !== r.profile.sub)
2456
2456
  throw s.debug("current user does not match user returned from signin. sub from signin:", r.profile.sub), new j({ ...e, error: "login_required" });
@@ -2593,7 +2593,7 @@ var Be = "10000000-1000-4000-8000-100000000000", A = class {
2593
2593
  }
2594
2594
  async _loadUser() {
2595
2595
  const e = this._logger.create("_loadUser"), t = await this.settings.userStore.get(this._userStoreKey);
2596
- return t ? (e.debug("user storageString loaded"), F.fromStorageString(t)) : (e.debug("no user storageString"), null);
2596
+ return t ? (e.debug("user storageString loaded"), L.fromStorageString(t)) : (e.debug("no user storageString"), null);
2597
2597
  }
2598
2598
  async storeUser(e) {
2599
2599
  const t = this._logger.create("storeUser");
@@ -2610,7 +2610,7 @@ var Be = "10000000-1000-4000-8000-100000000000", A = class {
2610
2610
  async clearStaleState() {
2611
2611
  await this._client.clearStaleState();
2612
2612
  }
2613
- }, ft = "2.2.2", Ct = ft;
2613
+ }, ft = "2.2.2", xt = ft;
2614
2614
  const Ee = ue(
2615
2615
  null
2616
2616
  ), wt = () => {
@@ -2638,7 +2638,7 @@ const Ee = ue(
2638
2638
  return JSON.parse(r);
2639
2639
  }, Tt = (e) => {
2640
2640
  const { setImpersonation: t } = wt();
2641
- L(() => {
2641
+ F(() => {
2642
2642
  const { search: s } = window.location, r = new URLSearchParams(s).get(
2643
2643
  "impersonateAccessToken"
2644
2644
  );
@@ -2666,19 +2666,28 @@ function It(e) {
2666
2666
  };
2667
2667
  });
2668
2668
  }
2669
- const vt = ({
2669
+ const Ut = [
2670
+ "97",
2671
+ "131",
2672
+ "132",
2673
+ "141"
2674
+ ], At = [
2675
+ "3"
2676
+ ], Pt = [
2677
+ "0"
2678
+ ], vt = ({
2670
2679
  userManager: e,
2671
2680
  context: t,
2672
2681
  children: s
2673
2682
  }) => {
2674
- const [r, i] = Ce({
2683
+ const [r, i] = xe({
2675
2684
  user: null,
2676
2685
  isLoading: !0,
2677
2686
  isAuthenticated: !1,
2678
2687
  isError: !1,
2679
2688
  error: null
2680
2689
  }), n = pe(!1);
2681
- L(() => {
2690
+ F(() => {
2682
2691
  n.current || (n.current = !0, (async () => {
2683
2692
  try {
2684
2693
  const h = await e.getUser();
@@ -2699,7 +2708,7 @@ const vt = ({
2699
2708
  });
2700
2709
  }
2701
2710
  })());
2702
- }, [e]), L(() => {
2711
+ }, [e]), F(() => {
2703
2712
  const h = (S) => {
2704
2713
  i({
2705
2714
  user: S,
@@ -2767,14 +2776,14 @@ const vt = ({
2767
2776
  return t;
2768
2777
  }, yt = (e, t) => {
2769
2778
  const { state: s, handleSigninCallback: r } = oe(e), i = pe(!1);
2770
- return L(() => {
2779
+ return F(() => {
2771
2780
  i.current || (i.current = !0, r().then(
2772
2781
  (n) => new Promise(
2773
2782
  (o) => setTimeout(() => o(n), 0)
2774
2783
  )
2775
2784
  ).then((n) => t == null ? void 0 : t(n)));
2776
2785
  }, [r]), s;
2777
- }, Ut = (e) => {
2786
+ }, Ot = (e) => {
2778
2787
  const t = ue(null);
2779
2788
  return {
2780
2789
  AuthContext: t,
@@ -2789,8 +2798,8 @@ const vt = ({
2789
2798
  };
2790
2799
  };
2791
2800
  export {
2792
- Fe as AccessTokenEvents,
2793
- Le as CheckSessionIFrame,
2801
+ Le as AccessTokenEvents,
2802
+ Fe as CheckSessionIFrame,
2794
2803
  j as ErrorResponse,
2795
2804
  re as ErrorTimeout,
2796
2805
  Rt as ImpersonationContextProvider,
@@ -2800,17 +2809,20 @@ export {
2800
2809
  $e as MetadataService,
2801
2810
  it as OidcClient,
2802
2811
  me as OidcClientSettingsStore,
2812
+ Ut as ROLESAdminInCompany,
2813
+ Pt as ROLESAnsatt,
2814
+ At as ROLESMAKSAdministrator,
2803
2815
  nt as SessionMonitor,
2804
2816
  G as SigninResponse,
2805
2817
  ne as SigninState,
2806
2818
  rt as SignoutResponse,
2807
- M as State,
2808
- F as User,
2809
- xt as UserManager,
2819
+ H as State,
2820
+ L as User,
2821
+ Ct as UserManager,
2810
2822
  ct as UserManagerSettingsStore,
2811
- Ct as Version,
2823
+ xt as Version,
2812
2824
  we as WebStorageStateStore,
2813
- Ut as createAuthContext,
2825
+ Ot as createAuthContext,
2814
2826
  It as parseUserProfileFCString,
2815
2827
  Tt as useImpersonationCallback,
2816
2828
  wt as useImpersonationContext
@@ -0,0 +1,2 @@
1
+ /// <reference types="react" />
2
+ export declare const LinkEditPlugin: () => JSX.Element | null;
@@ -6,3 +6,4 @@ export * from './styles';
6
6
  export * from './Toolbar/Toolbar';
7
7
  export * from './Plugins/TableEditPlugin';
8
8
  export * from './Plugins/LinkInsertPlugin';
9
+ export * from './Plugins/LinkEditPlugin';