@arkitektbedriftene/fe-lib 0.3.16 → 0.3.17

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,42 +1,36 @@
1
- import { j as t } from "./jsx-runtime-d0aa4c5b.js";
2
- import { G as l, M as n, a as r, b as c, c as i, d as h } from "./index.esm-ddc5d570.js";
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-d078f232.js";
3
3
  import "react";
4
- function v(a) {
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);
6
6
  }
7
- function s(a) {
7
+ function M(a) {
8
8
  return l({ tag: "svg", attr: { viewBox: "0 0 512 512" }, child: [{ tag: "path", attr: { d: "M64.746 18l20.988 21a33 33 0 0 1-15.42 55.27l18.48 18.48A57 57 0 0 0 102.706 22l-4.002-4H64.746zM52.395 28.39A56.82 56.82 0 0 0 38.485 119l88 87.94a79.82 79.82 0 0 1 7.51-26.33L55.454 102a32.87 32.87 0 0 1 .06-46.48A29.53 29.53 0 0 1 70.876 47l-18.48-18.61zm82.47 25.78c.254 2.307.4 4.64.44 7a73.06 73.06 0 0 1-3.58 23.83l72.82 72.82a33 33 0 0 1-22.55 56.18 24.19 24.19 0 0 0 7.06 18.77l4 4a57 57 0 0 0 28.49-96l-86.68-86.6zm136.649 24.892l-.92 48.862 23.996.453.92-48.861-23.996-.454zm81.998 11.493l-27.662 45.174 20.468 12.533 27.66-45.174-20.466-12.533zm60.017 53.888l-44.71 20.744 10.1 21.772 44.712-20.744-10.102-21.772zM180.895 156.85a63.6 63.6 0 0 0-16.23 9.92 61.718 61.718 0 0 0-4.06 3.71 64.09 64.09 0 0 0-4.28 85.78 65 65 0 0 0 4.4 4.87l92.15 92.15a64.41 64.41 0 0 0 13.71 10.45 73.23 73.23 0 0 1-6.59-37.35l-82.27-82.27a40.9 40.9 0 0 1-2.76-3 39.461 39.461 0 0 1-2.39-3.25 40 40 0 0 1 5-50.41c.8-.8 1.63-1.55 2.48-2.26a40 40 0 0 1 17.46-8.55 16.78 16.78 0 0 0-4.33-7.5l-12.29-12.29zm71.34 7.78a73.52 73.52 0 0 1 1.25 26l17.39 6.37a12 12 0 1 0 8.27-22.49v.03l-26.91-9.91zm137.71 52.036l-.728 23.988 45.638 1.387.729-23.988-45.639-1.387zm-61.148 10.85a12 12 0 0 0-11.332 16.064l18.37 50.52a40.19 40.19 0 0 1-9.44 42.08l-.09.09a40.41 40.41 0 0 1-7.56 5.94 16.73 16.73 0 0 0 1.91 2.31l15.14 15.14a64.81 64.81 0 0 0 7.48-6.42l.09-.09a64.27 64.27 0 0 0 15-67.28l-18.42-50.57a11.94 11.94 0 0 0-2.47-4.05 12.07 12.07 0 0 0-7.48-3.67 12 12 0 0 0-1.198-.064zm-15.442 51.734a57 57 0 0 0-20.85 93.75l4.29 4.29 81 81a77.08 77.08 0 0 1 3.14-30.7v-.05l-52.29-52.29-19.22-19.22a33 33 0 0 1 11-53.85c0-.1-.06-.21-.1-.31l.25.25c.66-.26 1.33-.5 2-.72a.93.93 0 0 0 0-.22c-.42.14-.85.27-1.27.42-.1-.6-.31-1.31-.54-1.97l-7.41-20.38zm64.13 17.5l-.06.06a79.64 79.64 0 0 1 .73 11.37 94 94 0 0 1-.75 10.29 80.74 80.74 0 0 1-2 10.14l52.29 52.29 30.91 30.91a33 33 0 0 1-15.42 55.29l18.48 18.48a57 57 0 0 0 13.91-90.74l-17.09-17.09-81-81zm45.03 101.6a55 55 0 0 0-13.85 10.19 57.05 57.05 0 0 0-.06 80.55l4.9 4.91h33.915l-21.875-21.88a33 33 0 0 1 15.45-55.29l-18.48-18.48z" } }] })(a);
9
9
  }
10
- function d(a) {
10
+ function f(a) {
11
11
  return l({ tag: "svg", attr: { viewBox: "0 0 512 512" }, child: [{ tag: "path", attr: { d: "M327.027 65.816L229.79 128.23l9.856 5.397 86.51-55.53 146.735 83.116-84.165 54.023 4.1 2.244v6.848l65.923-42.316 13.836 7.838-79.76 51.195v11.723l64.633-41.487 15.127 8.57-79.76 51.195v11.723l64.633-41.487 15.127 8.57-79.76 51.195v11.723l100.033-64.21-24.828-14.062 24.827-15.937-24.828-14.064 24.827-15.937-23.537-13.333 23.842-15.305-166.135-94.106zm31.067 44.74c-21.038 10.556-49.06 12.342-68.79 4.383l-38.57 24.757 126.903 69.47 36.582-23.48c-14.41-11.376-13.21-28.35 2.942-41.67l-59.068-33.46zM227.504 147.5l-70.688 46.094 135.61 78.066 1.33-.85c2.5-1.61 6.03-3.89 10.242-6.613 8.42-5.443 19.563-12.66 30.674-19.86 16.002-10.37 24.248-15.72 31.916-20.694L227.504 147.5zm115.467 1.17a8.583 14.437 82.068 0 1 .003 0 8.583 14.437 82.068 0 1 8.32 1.945 8.583 14.437 82.068 0 1-.87 12.282 8.583 14.437 82.068 0 1-20.273 1.29 8.583 14.437 82.068 0 1 .87-12.28 8.583 14.437 82.068 0 1 11.95-3.237zm-218.423 47.115L19.143 263.44l23.537 13.333-23.842 15.305 24.828 14.063-24.828 15.938 24.828 14.063-24.828 15.938 166.135 94.106L285.277 381.8V370.08l-99.433 63.824L39.11 350.787l14.255-9.15 131.608 74.547L285.277 351.8V340.08l-99.433 63.824L39.11 320.787l14.255-9.15 131.608 74.547L285.277 321.8V310.08l-99.433 63.824L39.11 290.787l13.27-8.52 132.9 75.28 99.997-64.188v-5.05l-5.48-3.154-93.65 60.11-146.73-83.116 94.76-60.824-9.63-5.543zm20.46 11.78l-46.92 30.115c14.41 11.374 13.21 28.348-2.942 41.67l59.068 33.46c21.037-10.557 49.057-12.342 68.787-4.384l45.965-29.504-123.96-71.358zm229.817 32.19c-8.044 5.217-15.138 9.822-30.363 19.688-11.112 7.203-22.258 14.42-30.69 19.873-4.217 2.725-7.755 5.01-10.278 6.632-.09.06-.127.08-.215.137v85.924l71.547-48.088v-84.166zm-200.99 17.48a8.583 14.437 82.068 0 1 8.32 1.947 8.583 14.437 82.068 0 1-.87 12.28 8.583 14.437 82.068 0 1-20.27 1.29 8.583 14.437 82.068 0 1 .87-12.28 8.583 14.437 82.068 0 1 11.95-3.236z" } }] })(a);
12
12
  }
13
- function x(a) {
13
+ function u(a) {
14
14
  return l({ tag: "svg", attr: { viewBox: "0 0 512 512" }, child: [{ tag: "path", attr: { d: "M138.7 25c-11.6 0-23 12.8-23 31s11.4 31 23 31 23-12.8 23-31-11.4-31-23-31zM256 25c-11.6 0-23 12.8-23 31s11.4 31 23 31 23-12.8 23-31-11.4-31-23-31zm117.4 0c-11.6 0-23 12.8-23 31s11.4 31 23 31 23-12.8 23-31-11.4-31-23-31zm-262 67.65c-.2.34-.3.65-.5 1-.9 2.07-1.7 4.36-2.6 6.85 8 9.1 12.7 21.9 12.7 35.5 0 6.6-1.1 13.1-3.2 19 2.4 3.4 4.6 7.2 6.4 11.3.1.2.2.5.3.7h28.3c.1-.2.2-.5.3-.7 1.8-4.2 4-7.9 6.4-11.3-2.1-5.9-3.2-12.4-3.2-19 0-13.7 4.8-26.5 12.7-35.6-.8-2.46-1.6-4.7-2.5-6.75-.2-.35-.3-.66-.5-1-7.1 7.65-16.5 12.35-27.3 12.35s-20.2-4.7-27.3-12.35zm117.3 0c-.2.34-.3.65-.5 1-.9 2.07-1.7 4.36-2.6 6.85 8 9.1 12.7 21.9 12.7 35.5 0 6.6-1.1 13.1-3.2 19 2.4 3.4 4.6 7.2 6.4 11.3.1.2.2.5.3.7h28.4c.1-.2.2-.5.3-.7 1.8-4.1 4-7.9 6.4-11.3-2.1-5.9-3.2-12.4-3.2-19 0-13.6 4.7-26.4 12.7-35.5-.9-2.49-1.7-4.78-2.6-6.85-.2-.35-.3-.66-.5-1C276.2 100.3 266.8 105 256 105s-20.2-4.7-27.3-12.35zm117.4 0c-.2.34-.3.65-.5 1-.9 2.07-1.7 4.36-2.6 6.85 8 9.1 12.7 21.9 12.7 35.5 0 6.6-1.1 13.1-3.2 19 2.4 3.4 4.6 7.2 6.4 11.3.1.2.2.5.3.7h28.3c.1-.2.2-.5.3-.7 1.8-4.2 4-7.9 6.4-11.3-2.1-5.9-3.2-12.4-3.2-19 0-13.7 4.8-26.5 12.7-35.6-.8-2.46-1.6-4.7-2.5-6.75-.2-.35-.3-.66-.5-1-7.1 7.65-16.5 12.35-27.3 12.35s-20.2-4.7-27.3-12.35zM80 105c-11.59 0-23 12.8-23 31s11.41 31 23 31 23-12.8 23-31-11.41-31-23-31zm117.3 0c-11.6 0-23 12.8-23 31s11.4 31 23 31 23-12.8 23-31-11.4-31-23-31zm117.4 0c-11.6 0-23 12.8-23 31s11.4 31 23 31 23-12.8 23-31-11.4-31-23-31zm117.3 0c-11.6 0-23 12.8-23 31s11.4 31 23 31 23-12.8 23-31-11.4-31-23-31zM52.71 172.7c-.17.3-.33.6-.49 1-6.46 14.5-10.34 39-10.97 73.3h77.45c-.6-34.3-4.5-58.8-10.9-73.3-.2-.4-.3-.7-.5-1-7.1 7.6-16.51 12.3-27.3 12.3-10.77 0-20.2-4.7-27.29-12.3zm117.29 0c-.2.3-.3.6-.5 1-6.4 14.5-10.3 39-10.9 73.3H236c-.6-34.3-4.5-58.8-10.9-73.3-.2-.4-.3-.7-.5-1-7.1 7.6-16.5 12.3-27.3 12.3s-20.2-4.7-27.3-12.3zm117.4 0c-.2.3-.3.6-.5 1-6.4 14.5-10.3 39-10.9 73.3h77.4c-.6-34.3-4.5-58.8-10.9-73.3-.2-.4-.3-.7-.5-1-7.1 7.6-16.5 12.3-27.3 12.3s-20.2-4.7-27.3-12.3zm117.3 0c-.2.3-.3.6-.5 1-6.4 14.5-10.3 39-10.9 73.3h77.4c-.6-34.3-4.5-58.8-10.9-73.3-.2-.4-.3-.7-.5-1-7.1 7.6-16.5 12.3-27.3 12.3s-20.2-4.7-27.3-12.3zM25 265v16h462v-16zm16 34v188h206V351.1c-3.4 1.1-6.9 2-10.7 2.9-10.4 2.4-22.2 3.9-33.5 5-6.2.5-12.1.9-17.6 1.2l23.4 46.8H233v9c0 19-9.8 33.7-21.4 43-11.6 9.3-24.6 14-35.6 14s-24-4.7-35.6-14c-11.6-9.3-21.4-24-21.4-43v-9h24.4l23-46.1c-3.9.1-6.4.1-6.4.1v-18c13-.7 27.1-.8 41.2-2 10.7-.9 21.9-2.4 31-4.5 6.4-1.5 11.7-3.6 14.8-5.2V320h18v11.3c3.1 1.6 8.4 3.7 14.8 5.2 9.1 2.1 20.3 3.6 31 4.5 15.3.5 26.2 1.9 41.2 2v18s-2.5 0-6.5-.1l23.1 46.1H393v9c0 19-9.8 33.7-21.4 42.9-11.6 9.3-24.6 14-35.6 14s-24-4.7-35.6-14C288.8 449.7 279 435 279 416v-9h24.4l23.4-46.8c-5.5-.3-11.4-.7-17.6-1.2-11.3-1.1-23.1-2.6-33.5-5-3.8-.9-7.3-1.8-10.7-2.9V487h206V299zm135 83.1L163.6 407h24.8zm160 0L323.6 407h24.8z" } }] })(a);
15
15
  }
16
- function M(a) {
16
+ function x(a) {
17
17
  return l({ tag: "svg", attr: { viewBox: "0 0 24 24" }, child: [{ tag: "path", attr: { d: "M12.707 2.293a.999.999 0 0 0-1.414 0l-9 9A1 1 0 0 0 3 13h1v7c0 1.103.897 2 2 2h12c1.103 0 2-.897 2-2v-7h1a.999.999 0 0 0 .707-1.707l-9-9zM18.001 20H6v-9.586l6-6 6 6V15l.001 5z" } }, { tag: "path", attr: { d: "M13 10h-2v3H8v2h3v3h2v-3h3v-2h-3z" } }] })(a);
18
18
  }
19
- function u(a) {
19
+ function z(a) {
20
20
  return l({ tag: "svg", attr: { viewBox: "0 0 24 24" }, child: [{ tag: "path", attr: { fill: "none", stroke: "#000", strokeWidth: "2", d: "M16,16 C16,14.8954305 12.8659932,14 9,14 C5.13400675,14 2,14.8954305 2,16 C2,17.1045695 5.13400675,18 9,18 C12.8659932,18 16,17.1045695 16,16 Z M2,16 L2,20.9367547 C2,22.0762536 5.13400675,23 9,23 C12.8659932,23 16,22.0762537 16,20.9367548 L16,16 M9,5 C4.581722,5 1,5.8954305 1,7 C1,8.1045695 4.581722,9 9,9 M1,7 L1,12.0000002 C1,13.0128881 4.581722,14 9,14 M23,4 C23,2.8954305 19.9004329,2 16.0769231,2 C12.2534133,2 9.15384615,2.8954305 9.15384615,4 C9.15384615,5.1045695 12.2534133,6 16.0769231,6 C19.9004329,6 23,5.1045695 23,4 Z M16,16 C19.8235098,16 23.0000002,15.0128879 23.0000002,14 L23,4 M9.15384615,3.99999999 L9.15384615,14.1660042 M8.99999999,9.00000001 C8.99999999,10.0128879 12.2534135,11 16.0769233,11 C19.9004331,11 23.0000004,10.0128879 23.0000004,9.00000001" } }] })(a);
21
21
  }
22
22
  function e(a) {
23
23
  return l({ tag: "svg", attr: { viewBox: "0 0 24 24" }, child: [{ tag: "path", attr: { fill: "none", stroke: "#000", strokeWidth: "2", d: "M2,3.99079514 C2,2.89130934 2.89821238,2 3.99079514,2 L20.0092049,2 C21.1086907,2 22,2.89821238 22,3.99079514 L22,20.0092049 C22,21.1086907 21.1017876,22 20.0092049,22 L3.99079514,22 C2.89130934,22 2,21.1017876 2,20.0092049 L2,3.99079514 Z M12,15 L12,14 C12,13 12,12.5 13,12 C14,11.5 15,11 15,9.5 C15,8.5 14,7 12,7 C10,7 9,8.26413718 9,10 M12,16 L12,18" } }] })(a);
24
24
  }
25
- function f(a) {
26
- return l({ tag: "svg", attr: { viewBox: "0 0 24 24" }, child: [{ tag: "path", attr: { fill: "none", stroke: "#000", strokeWidth: "2", d: "M3,6 L21,6 L3,6 Z M10,2 L10,4 M14,2 L14,4 M16,12 C18.3736719,13.1826446 20,15.6506255 20,19 L20,23 L4,23 L4,19 C4,15.6457258 5.6310898,13.1754259 8,12 M12,16.5 L12,23 M12,13 C15.3137085,13 18,10.3137085 18,7 C18,3.6862915 15.3137085,1 12,1 C8.6862915,1 6,3.6862915 6,7 C6,10.3137085 8.6862915,13 12,13 Z M8,12 C8,14.209139 9.790861,16 12,16 L12,16 C14.209139,16 16,14.209139 16,12" } }] })(a);
27
- }
28
- function z(a) {
29
- return l({ 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" } }] })(a);
30
- }
31
25
  function o(a) {
32
- return l({ 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" } }] })(a);
26
+ return l({ tag: "svg", attr: { viewBox: "0 0 24 24" }, child: [{ tag: "path", attr: { fill: "none", stroke: "#000", strokeWidth: "2", d: "M3,6 L21,6 L3,6 Z M10,2 L10,4 M14,2 L14,4 M16,12 C18.3736719,13.1826446 20,15.6506255 20,19 L20,23 L4,23 L4,19 C4,15.6457258 5.6310898,13.1754259 8,12 M12,16.5 L12,23 M12,13 C15.3137085,13 18,10.3137085 18,7 C18,3.6862915 15.3137085,1 12,1 C8.6862915,1 6,3.6862915 6,7 C6,10.3137085 8.6862915,13 12,13 Z M8,12 C8,14.209139 9.790861,16 12,16 L12,16 C14.209139,16 16,14.209139 16,12" } }] })(a);
33
27
  }
34
28
  function m(a) {
35
29
  return l({ tag: "svg", attr: { viewBox: "0 0 1024 1024" }, child: [{ tag: "path", attr: { d: "M834.7 279.8l61.3-58.9V208H683.7L532.4 586.4 360.3 208H137.7v12.9l71.6 86.6c7 6.4 10.6 15.8 9.7 25.2V673c2.2 12.3-1.7 24.8-10.3 33.7L128 805v12.7h228.6v-12.9l-80.6-98a39.99 39.99 0 0 1-11.1-33.7V378.7l200.7 439.2h23.3l172.6-439.2v349.9c0 9.2 0 11.1-6 17.2l-62.1 60.3V819h301.2v-12.9l-59.9-58.9c-5.2-4-7.9-10.7-6.8-17.2V297a18.1 18.1 0 0 1 6.8-17.2z" } }] })(a);
36
30
  }
37
- function E(a) {
38
- return a.ExternalId == null || a.ExternalId == "" ? /* @__PURE__ */ t.jsx(e, {}) : a.ExternalId.indexOf("SYKELONN") > -1 ? /* @__PURE__ */ t.jsx(n, {}) : a.ExternalId.indexOf("ANSVAR") > -1 ? /* @__PURE__ */ t.jsx(v, {}) : a.ExternalId.indexOf("RETTS") > -1 ? /* @__PURE__ */ t.jsx(x, {}) : a.ExternalId.indexOf("BEHAND") > -1 ? /* @__PURE__ */ t.jsx(M, {}) : a.ExternalId.indexOf("REISE") > -1 ? /* @__PURE__ */ t.jsx(r, {}) : a.ExternalId.indexOf("YRKE") > -1 ? /* @__PURE__ */ t.jsx(f, {}) : a.ExternalId.indexOf("VERDI") > -1 ? /* @__PURE__ */ t.jsx(d, {}) : a.ExternalId.indexOf("TJENESTE") > -1 ? /* @__PURE__ */ t.jsx(c, {}) : a.ExternalId.indexOf("GRUPPELIV") > -1 ? /* @__PURE__ */ t.jsx("span", { children: /* @__PURE__ */ t.jsx(o, {}) }) : a.ExternalId.indexOf("SYKEAV") > -1 ? /* @__PURE__ */ t.jsx("span", { children: /* @__PURE__ */ t.jsx(s, {}) }) : a.ExternalId.indexOf("_MAKS") > -1 ? /* @__PURE__ */ t.jsx("span", { children: /* @__PURE__ */ t.jsx(i, { color: "green" }) }) : a.ExternalId.indexOf("_MEDLEM") > -1 ? /* @__PURE__ */ t.jsx("span", { children: /* @__PURE__ */ t.jsx(m, { color: "#B22222" }) }) : a.ExternalId.indexOf("_PRAKSIS") > -1 ? /* @__PURE__ */ t.jsx("span", { children: /* @__PURE__ */ t.jsx(h, { color: "#8cc6ce" }) }) : a.ExternalId.indexOf("_AY") > -1 ? /* @__PURE__ */ t.jsx("span", { children: /* @__PURE__ */ t.jsx(z, { color: "#e8b281" }) }) : a.ExternalId.indexOf("_TARIFF") > -1 ? /* @__PURE__ */ t.jsx("span", { children: /* @__PURE__ */ t.jsx(u, { color: "#626FFE " }) }) : /* @__PURE__ */ t.jsx(e, {});
31
+ function g(a) {
32
+ return a.ExternalId == null || a.ExternalId == "" ? /* @__PURE__ */ t(e, {}) : a.ExternalId.indexOf("SYKELONN") > -1 ? /* @__PURE__ */ t(n, {}) : a.ExternalId.indexOf("ANSVAR") > -1 ? /* @__PURE__ */ t(s, {}) : a.ExternalId.indexOf("RETTS") > -1 ? /* @__PURE__ */ t(u, {}) : a.ExternalId.indexOf("BEHAND") > -1 ? /* @__PURE__ */ t(x, {}) : a.ExternalId.indexOf("REISE") > -1 ? /* @__PURE__ */ t(r, {}) : a.ExternalId.indexOf("YRKE") > -1 ? /* @__PURE__ */ t(o, {}) : a.ExternalId.indexOf("VERDI") > -1 ? /* @__PURE__ */ t(f, {}) : a.ExternalId.indexOf("TJENESTE") > -1 ? /* @__PURE__ */ t(i, {}) : a.ExternalId.indexOf("GRUPPELIV") > -1 ? /* @__PURE__ */ t("span", { children: /* @__PURE__ */ t(c, {}) }) : a.ExternalId.indexOf("SYKEAV") > -1 ? /* @__PURE__ */ t("span", { children: /* @__PURE__ */ t(M, {}) }) : a.ExternalId.indexOf("_MAKS") > -1 ? /* @__PURE__ */ t("span", { children: /* @__PURE__ */ t(h, { color: "green" }) }) : a.ExternalId.indexOf("_MEDLEM") > -1 ? /* @__PURE__ */ t("span", { children: /* @__PURE__ */ t(m, { color: "#B22222" }) }) : a.ExternalId.indexOf("_PRAKSIS") > -1 ? /* @__PURE__ */ t("span", { children: /* @__PURE__ */ t(d, { color: "#8cc6ce" }) }) : a.ExternalId.indexOf("_AY") > -1 ? /* @__PURE__ */ t("span", { children: /* @__PURE__ */ t(v, { color: "#e8b281" }) }) : a.ExternalId.indexOf("_TARIFF") > -1 ? /* @__PURE__ */ t("span", { children: /* @__PURE__ */ t(z, { color: "#626FFE " }) }) : /* @__PURE__ */ t(e, {});
39
33
  }
40
34
  export {
41
- E as ProductExternalIdToIcon
35
+ g as ProductExternalIdToIcon
42
36
  };
@@ -1,16 +1,16 @@
1
- import c from "react";
2
- var v = {
1
+ import i from "react";
2
+ var u = {
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
- }, u = c.createContext && c.createContext(v), l = globalThis && globalThis.__assign || function() {
8
+ }, s = i.createContext && i.createContext(u), l = globalThis && globalThis.__assign || function() {
9
9
  return l = Object.assign || function(t) {
10
10
  for (var a, e = 1, r = arguments.length; e < r; e++) {
11
11
  a = arguments[e];
12
- for (var n in a)
13
- Object.prototype.hasOwnProperty.call(a, n) && (t[n] = a[n]);
12
+ for (var c in a)
13
+ Object.prototype.hasOwnProperty.call(a, c) && (t[c] = a[c]);
14
14
  }
15
15
  return t;
16
16
  }, l.apply(this, arguments);
@@ -19,69 +19,81 @@ var v = {
19
19
  for (var r in t)
20
20
  Object.prototype.hasOwnProperty.call(t, r) && a.indexOf(r) < 0 && (e[r] = t[r]);
21
21
  if (t != null && typeof Object.getOwnPropertySymbols == "function")
22
- for (var n = 0, r = Object.getOwnPropertySymbols(t); n < r.length; n++)
23
- a.indexOf(r[n]) < 0 && Object.prototype.propertyIsEnumerable.call(t, r[n]) && (e[r[n]] = t[r[n]]);
22
+ for (var c = 0, r = Object.getOwnPropertySymbols(t); c < r.length; c++)
23
+ a.indexOf(r[c]) < 0 && Object.prototype.propertyIsEnumerable.call(t, r[c]) && (e[r[c]] = t[r[c]]);
24
24
  return e;
25
25
  };
26
- function d(t) {
26
+ function g(t) {
27
27
  return t && t.map(function(a, e) {
28
- return c.createElement(a.tag, l({
28
+ return i.createElement(a.tag, l({
29
29
  key: e
30
- }, a.attr), d(a.child));
30
+ }, a.attr), g(a.child));
31
31
  });
32
32
  }
33
- function i(t) {
33
+ function n(t) {
34
34
  return function(a) {
35
- return c.createElement(m, l({
35
+ return i.createElement(z, l({
36
36
  attr: l({}, t.attr)
37
- }, a), d(t.child));
37
+ }, a), g(t.child));
38
38
  };
39
39
  }
40
- function m(t) {
40
+ function z(t) {
41
41
  var a = function(e) {
42
- var r = t.attr, n = t.size, h = t.title, g = f(t, ["attr", "size", "title"]), s = n || e.size || "1em", o;
43
- return e.className && (o = e.className), t.className && (o = (o ? o + " " : "") + t.className), c.createElement("svg", l({
42
+ var r = t.attr, c = t.size, h = t.title, d = f(t, ["attr", "size", "title"]), v = c || e.size || "1em", o;
43
+ return e.className && (o = e.className), t.className && (o = (o ? o + " " : "") + t.className), i.createElement("svg", l({
44
44
  stroke: "currentColor",
45
45
  fill: "currentColor",
46
46
  strokeWidth: "0"
47
- }, e.attr, r, g, {
47
+ }, e.attr, r, d, {
48
48
  className: o,
49
49
  style: l(l({
50
50
  color: t.color || e.color
51
51
  }, e.style), t.style),
52
- height: s,
53
- width: s,
52
+ height: v,
53
+ width: v,
54
54
  xmlns: "http://www.w3.org/2000/svg"
55
- }), h && c.createElement("title", null, h), t.children);
55
+ }), h && i.createElement("title", null, h), t.children);
56
56
  };
57
- return u !== void 0 ? c.createElement(u.Consumer, null, function(e) {
57
+ return s !== void 0 ? i.createElement(s.Consumer, null, function(e) {
58
58
  return a(e);
59
- }) : a(v);
59
+ }) : a(u);
60
60
  }
61
61
  function M(t) {
62
- return i({ 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);
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
- function y(t) {
65
- return i({ 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);
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: "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
+ }
67
+ function L(t) {
68
+ 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);
66
69
  }
67
70
  function w(t) {
68
- return i({ 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);
71
+ 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);
72
+ }
73
+ function p(t) {
74
+ 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);
69
75
  }
70
76
  function x(t) {
71
- return i({ 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);
77
+ 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);
72
78
  }
73
- function b(t) {
74
- return i({ 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);
79
+ function C(t) {
80
+ 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);
75
81
  }
76
- function p(t) {
77
- return i({ 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);
82
+ function y(t) {
83
+ 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);
84
+ }
85
+ function V(t) {
86
+ 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);
78
87
  }
79
88
  export {
80
- i as G,
81
- p as M,
82
- b as a,
89
+ V as F,
90
+ n as G,
91
+ x as M,
92
+ p as a,
83
93
  M as b,
84
- y as c,
85
- x as d,
86
- w as e
94
+ H as c,
95
+ w as d,
96
+ y as e,
97
+ C as f,
98
+ L as g
87
99
  };
package/dist/oidc.es.js CHANGED
@@ -1,4 +1,4 @@
1
- import { j as se } from "./jsx-runtime-d0aa4c5b.js";
1
+ import { jsx as se } from "react/jsx-runtime";
2
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";
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 : {};
@@ -2632,7 +2632,7 @@ const Ee = ue(
2632
2632
  s({ accessToken: i, userInfo: n });
2633
2633
  }
2634
2634
  }), []);
2635
- return /* @__PURE__ */ se.jsx(Ee.Provider, { value: r, children: e });
2635
+ return /* @__PURE__ */ se(Ee.Provider, { value: r, children: e });
2636
2636
  }, mt = (e) => {
2637
2637
  const s = e.split(".")[1].replace(/-/g, "+").replace(/_/g, "/"), r = atob(s);
2638
2638
  return JSON.parse(r);
@@ -2756,7 +2756,7 @@ const vt = ({
2756
2756
  }),
2757
2757
  [r, o, c]
2758
2758
  );
2759
- return /* @__PURE__ */ se.jsx(t.Provider, { value: l, children: s });
2759
+ return /* @__PURE__ */ se(t.Provider, { value: l, children: s });
2760
2760
  }, oe = (e) => {
2761
2761
  const t = ge(e);
2762
2762
  if (!t)
@@ -2778,7 +2778,7 @@ const vt = ({
2778
2778
  const t = ue(null);
2779
2779
  return {
2780
2780
  AuthContext: t,
2781
- AuthProvider: ({ children: c }) => /* @__PURE__ */ se.jsx(vt, { userManager: e, context: t, children: c }),
2781
+ AuthProvider: ({ children: c }) => /* @__PURE__ */ se(vt, { userManager: e, context: t, children: c }),
2782
2782
  useAuthContext: () => oe(t),
2783
2783
  useAuthState: () => St(t),
2784
2784
  useSigninCallback: (c) => yt(t, c),
@@ -1,61 +1,63 @@
1
- import { createHeadlessEditor as T } from "@lexical/headless";
2
- import { $generateHtmlFromNodes as y } from "@lexical/html";
3
- import { $getRoot as p, ParagraphNode as S, $createParagraphNode as E, $createTextNode as $ } from "lexical";
4
- import { trimTextContentFromAnchor as F } from "@lexical/selection";
5
- import { AutoLinkNode as L, LinkNode as j } from "@lexical/link";
6
- import { ListNode as w, ListItemNode as v } from "@lexical/list";
7
- import { HeadingNode as R, QuoteNode as H } from "@lexical/rich-text";
8
- import { TableNode as k, TableRowNode as P, TableCellNode as I } from "@lexical/table";
9
- import { j as c } from "./jsx-runtime-d0aa4c5b.js";
10
- import { createContext as M, useState as B, useRef as f, useCallback as h, useContext as q, useMemo as z } from "react";
11
- import { c as d, s as A, B as x, S as D } from "./DropdownMenu-8d580c1a.js";
12
- import { LexicalComposer as V } from "@lexical/react/LexicalComposer.js";
13
- import { RichTextPlugin as W } from "@lexical/react/LexicalRichTextPlugin.js";
14
- import J from "@lexical/react/LexicalErrorBoundary.js";
1
+ import { createHeadlessEditor as y } from "@lexical/headless";
2
+ import { $generateHtmlFromNodes as S } from "@lexical/html";
3
+ import { $getRoot as f, ParagraphNode as E, $createParagraphNode as $, $createTextNode as F } from "lexical";
4
+ import { trimTextContentFromAnchor as L } from "@lexical/selection";
5
+ import { AutoLinkNode as w, LinkNode as v } from "@lexical/link";
6
+ import { ListNode as R, ListItemNode as H } from "@lexical/list";
7
+ import { HeadingNode as k, QuoteNode as P } from "@lexical/rich-text";
8
+ import { TableNode as I, TableRowNode as M, TableCellNode as B } from "@lexical/table";
9
+ import { jsx as a, jsxs as h, Fragment as j } from "react/jsx-runtime";
10
+ import { createContext as q, useState as z, useRef as b, useCallback as p, useContext as A, useMemo as D } from "react";
11
+ import { c as d, s as V, B as x, S as W } from "./DropdownMenu-c57acb78.js";
12
+ import { LexicalComposer as J } from "@lexical/react/LexicalComposer.js";
13
+ import { RichTextPlugin as O } from "@lexical/react/LexicalRichTextPlugin.js";
14
+ import Q from "@lexical/react/LexicalErrorBoundary.js";
15
15
  import "react-dom";
16
- import "./index.esm-ddc5d570.js";
17
- const O = ({
16
+ import "@radix-ui/react-toolbar";
17
+ import "./index.esm-d078f232.js";
18
+ import "@radix-ui/react-dropdown-menu";
19
+ const G = ({
18
20
  text: e,
19
21
  maxChars: i,
20
- maxLines: s
22
+ maxLines: n
21
23
  }) => {
22
24
  if (e.length === 0)
23
25
  return 0;
24
- const r = typeof s == "number", o = typeof i == "number";
26
+ const r = typeof n == "number", o = typeof i == "number";
25
27
  if (!r && !o)
26
28
  return e.length;
27
- let n = 0, t = 0;
28
- for (; t < e.length && (!r || n < s) && (!o || t < i); )
29
+ let s = 0, t = 0;
30
+ for (; t < e.length && (!r || s < n) && (!o || t < i); )
29
31
  e[t] === `
30
- ` && n++, t++;
32
+ ` && s++, t++;
31
33
  return e.slice(0, t).length;
32
- }, Q = ({
34
+ }, K = ({
33
35
  editor: e,
34
36
  maxChars: i,
35
- maxLines: s
37
+ maxLines: n
36
38
  }) => {
37
- const r = p(), o = r.getTextContent(), n = O({ text: o, maxChars: i, maxLines: s }), t = o.length - n, m = r.select().anchor;
38
- F(e, m, t);
39
- const a = r.getLastChild();
40
- return a instanceof S && a.getChildrenSize() === 0 && a.remove(), t;
41
- }, G = (e) => e[0] === "{", Ce = (e, i, s) => {
39
+ const r = f(), o = r.getTextContent(), s = G({ text: o, maxChars: i, maxLines: n }), t = o.length - s, m = r.select().anchor;
40
+ L(e, m, t);
41
+ const c = r.getLastChild();
42
+ return c instanceof E && c.getChildrenSize() === 0 && c.remove(), t;
43
+ }, U = (e) => e[0] === "{", Se = (e, i, n) => {
42
44
  let r = 0;
43
- const o = T({
45
+ const o = y({
44
46
  nodes: i,
45
47
  editable: !1
46
48
  });
47
49
  if (e)
48
50
  try {
49
- if (typeof e == "string" && !G(e))
51
+ if (typeof e == "string" && !U(e))
50
52
  o.update(() => {
51
- const t = p(), l = E();
52
- l.append($(e.trim())), t.append(l);
53
+ const t = f(), l = $();
54
+ l.append(F(e.trim())), t.append(l);
53
55
  });
54
56
  else {
55
57
  const t = o.parseEditorState(e, () => {
56
- r = Q({
58
+ r = K({
57
59
  editor: o,
58
- maxLines: s == null ? void 0 : s.maxLines
60
+ maxLines: n == null ? void 0 : n.maxLines
59
61
  });
60
62
  });
61
63
  t.isEmpty() || o.setEditorState(t);
@@ -63,62 +65,62 @@ const O = ({
63
65
  } catch (t) {
64
66
  console.error(t);
65
67
  }
66
- let n = "";
68
+ let s = "";
67
69
  return o.update(() => {
68
- n = y(o);
69
- }), { html: n, trimCount: r };
70
- }, Ne = [
70
+ s = S(o);
71
+ }), { html: s, trimCount: r };
72
+ }, Ee = [
73
+ k,
74
+ P,
71
75
  R,
72
76
  H,
73
77
  w,
74
78
  v,
75
- L,
76
- j,
77
- k,
78
- P,
79
- I
80
- ], K = d({
79
+ I,
80
+ M,
81
+ B
82
+ ], X = d({
81
83
  fontWeight: "bold"
82
- }), U = d({
84
+ }), Y = d({
83
85
  fontStyle: "italic"
84
- }), X = d({
86
+ }), Z = d({
85
87
  textDecoration: "underline"
86
- }), Y = d({
88
+ }), _ = d({
87
89
  listStyleType: "none"
88
- }), Z = d({
90
+ }), ee = d({
89
91
  borderLeft: "4px solid #ccc",
90
92
  color: "#666",
91
93
  fontStyle: "italic",
92
94
  margin: "1.5em 10px",
93
95
  padding: "0.5em 10px"
94
- }), _ = {
95
- quote: Z().className,
96
+ }), te = {
97
+ quote: ee().className,
96
98
  text: {
97
- bold: K().className,
98
- italic: U().className,
99
- underline: X().className
99
+ bold: X().className,
100
+ italic: Y().className,
101
+ underline: Z().className
100
102
  },
101
103
  list: {
102
104
  nested: {
103
- listitem: Y().className
105
+ listitem: _().className
104
106
  }
105
107
  }
106
- }, b = M({ hasFocus: !1, editorRef: { current: null } }), ee = ({ onBlur: e }) => {
107
- const [i, s] = B(!1), r = f(null), o = h(() => {
108
- s(!0), r.current && window.clearTimeout(r.current);
109
- }, []), n = h(() => {
108
+ }, g = q({ hasFocus: !1, editorRef: { current: null } }), oe = ({ onBlur: e }) => {
109
+ const [i, n] = z(!1), r = b(null), o = p(() => {
110
+ n(!0), r.current && window.clearTimeout(r.current);
111
+ }, []), s = p(() => {
110
112
  r.current = window.setTimeout(() => {
111
- s(!1), e == null || e();
113
+ n(!1), e == null || e();
112
114
  }, 0);
113
115
  }, [e]);
114
116
  return {
115
117
  hasFocus: i,
116
118
  attributes: {
117
119
  onFocus: o,
118
- onBlur: n
120
+ onBlur: s
119
121
  }
120
122
  };
121
- }, Te = () => q(b), te = A("div", {
123
+ }, $e = () => A(g), re = V("div", {
122
124
  border: "1px solid $borderDarker",
123
125
  borderRadius: "$md",
124
126
  position: "relative",
@@ -148,9 +150,9 @@ const O = ({
148
150
  }
149
151
  }
150
152
  ]
151
- }), oe = ({
153
+ }), ne = ({
152
154
  isLoading: e
153
- }) => /* @__PURE__ */ c.jsx(
155
+ }) => /* @__PURE__ */ a(
154
156
  x,
155
157
  {
156
158
  css: {
@@ -160,46 +162,46 @@ const O = ({
160
162
  right: "1rem",
161
163
  display: "flex"
162
164
  },
163
- children: /* @__PURE__ */ c.jsx(D, {})
165
+ children: /* @__PURE__ */ a(W, {})
164
166
  }
165
- ), ye = ({
167
+ ), Fe = ({
166
168
  isLoading: e,
167
169
  children: i,
168
- placeholderText: s,
170
+ placeholderText: n,
169
171
  nodes: r,
170
172
  plugins: o,
171
- toolbar: n,
173
+ toolbar: s,
172
174
  content: t,
173
175
  hideBorder: l,
174
176
  onBlur: m
175
177
  }) => {
176
- const { hasFocus: a, attributes: g } = ee({ onBlur: m }), u = f(null), C = z(() => ({ hasFocus: a, editorRef: u }), [a]);
177
- return /* @__PURE__ */ c.jsx(b.Provider, { value: C, children: /* @__PURE__ */ c.jsxs(
178
- V,
178
+ const { hasFocus: c, attributes: C } = oe({ onBlur: m }), u = b(null), N = D(() => ({ hasFocus: c, editorRef: u }), [c]);
179
+ return /* @__PURE__ */ a(g.Provider, { value: N, children: /* @__PURE__ */ h(
180
+ J,
179
181
  {
180
182
  initialConfig: {
181
183
  namespace: "CommentEditor",
182
- onError: (N) => {
183
- console.error(N);
184
+ onError: (T) => {
185
+ console.error(T);
184
186
  },
185
- theme: _,
187
+ theme: te,
186
188
  nodes: r,
187
189
  editable: !0
188
190
  },
189
191
  children: [
190
- /* @__PURE__ */ c.jsxs(
191
- te,
192
+ /* @__PURE__ */ h(
193
+ re,
192
194
  {
193
195
  ref: u,
194
- hasFocus: a,
196
+ hasFocus: c,
195
197
  hideBorder: l,
196
- ...g,
198
+ ...C,
197
199
  children: [
198
- /* @__PURE__ */ c.jsx(
199
- W,
200
+ /* @__PURE__ */ a(
201
+ O,
200
202
  {
201
203
  contentEditable: t,
202
- placeholder: s ? /* @__PURE__ */ c.jsx(
204
+ placeholder: n ? /* @__PURE__ */ a(
203
205
  x,
204
206
  {
205
207
  css: {
@@ -210,29 +212,29 @@ const O = ({
210
212
  pointerEvents: "none",
211
213
  fontSize: "$sm"
212
214
  },
213
- children: s
215
+ children: n
214
216
  }
215
217
  ) : null,
216
- ErrorBoundary: J
218
+ ErrorBoundary: Q
217
219
  }
218
220
  ),
219
221
  o,
220
- /* @__PURE__ */ c.jsx(oe, { isLoading: e }),
221
- n
222
+ /* @__PURE__ */ a(ne, { isLoading: e }),
223
+ s
222
224
  ]
223
225
  }
224
226
  ),
225
- /* @__PURE__ */ c.jsx(c.Fragment, { children: i })
227
+ /* @__PURE__ */ a(j, { children: i })
226
228
  ]
227
229
  }
228
230
  ) });
229
231
  };
230
232
  export {
231
- ye as RichTextEditor,
232
- Ne as defaultNodes,
233
- G as isJSON,
234
- b as richTextContext,
235
- Ce as stateToHTML,
236
- ee as useHasFocusWithin,
237
- Te as useRichTextContext
233
+ Fe as RichTextEditor,
234
+ Ee as defaultNodes,
235
+ U as isJSON,
236
+ g as richTextContext,
237
+ Se as stateToHTML,
238
+ oe as useHasFocusWithin,
239
+ $e as useRichTextContext
238
240
  };