@arkitektbedriftene/fe-lib 4.3.0 → 4.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/rich-text.es.js +361 -365
  2. package/package.json +1 -1
@@ -1,32 +1,32 @@
1
- var Le = Object.defineProperty;
2
- var _e = (t, r, e) => r in t ? Le(t, r, { enumerable: !0, configurable: !0, writable: !0, value: e }) : t[r] = e;
3
- var $ = (t, r, e) => (_e(t, typeof r != "symbol" ? r + "" : r, e), e);
4
- import { createHeadlessEditor as Ut } from "@lexical/headless";
5
- import { $generateHtmlFromNodes as Wt } from "@lexical/html";
6
- import { $getRoot as Y, ParagraphNode as we, $createParagraphNode as G, $createTextNode as z, $setSelection as nt, $getNodeByKey as ct, DecoratorNode as ye, $applyNodeReplacement as Se, SELECTION_CHANGE_COMMAND as X, $getSelection as _, COMMAND_PRIORITY_EDITOR as q, $isRangeSelection as N, $isRootOrShadowRoot as jt, FORMAT_TEXT_COMMAND as A, COMMAND_PRIORITY_LOW as D, KEY_ARROW_DOWN_COMMAND as Ne, KEY_ARROW_UP_COMMAND as Ee, KEY_ESCAPE_COMMAND as Kt, KEY_SPACE_COMMAND as Re, $getNearestNodeFromDOMNode as pt, KEY_ARROW_LEFT_COMMAND as Ie, $isElementNode as Oe, createCommand as ze, $insertNodes as $e, $createRangeSelection as Gt, COMMAND_PRIORITY_HIGH as Ae, FORMAT_ELEMENT_COMMAND as dt } from "lexical";
7
- import { trimTextContentFromAnchor as De, $setBlocksType as ht, $getSelectionStyleValueForProperty as Be, $patchStyleText as Pe, $isAtNodeEnd as Rt } from "@lexical/selection";
8
- import { $dfs as Fe, $getNearestNodeOfType as He, $findMatchingParent as qt, mergeRegister as ot, isHTMLElement as It, $wrapNodeInElement as Ue, mediaFileReader as We, isMimeType as je } from "@lexical/utils";
9
- import { LinkNode as j, AutoLinkNode as Jt, $isLinkNode as Z, TOGGLE_LINK_COMMAND as it } from "@lexical/link";
10
- import { ListNode as mt, ListItemNode as Yt, $isListNode as ft, INSERT_UNORDERED_LIST_COMMAND as Ke, INSERT_ORDERED_LIST_COMMAND as Ge, INSERT_CHECK_LIST_COMMAND as Xt, insertList as qe, $isListItemNode as K } from "@lexical/list";
11
- import { HeadingNode as Vt, QuoteNode as Qt, $isHeadingNode as Je, $createHeadingNode as Ye, $createQuoteNode as Xe, DRAG_DROP_PASTE as Ve } from "@lexical/rich-text";
12
- import { TableNode as Zt, TableRowNode as te, TableCellNode as ee, INSERT_TABLE_COMMAND as Qe, $getTableCellNodeFromLexicalNode as Ze, $deleteTableColumn__EXPERIMENTAL as tr, $deleteTableRow__EXPERIMENTAL as er, $insertTableColumn__EXPERIMENTAL as Ot, $insertTableRow__EXPERIMENTAL as zt } from "@lexical/table";
1
+ var Ce = Object.defineProperty;
2
+ var Me = (t, r, e) => r in t ? Ce(t, r, { enumerable: !0, configurable: !0, writable: !0, value: e }) : t[r] = e;
3
+ var $ = (t, r, e) => (Me(t, typeof r != "symbol" ? r + "" : r, e), e);
4
+ import { createHeadlessEditor as Bt } from "@lexical/headless";
5
+ import { $generateHtmlFromNodes as Pt } from "@lexical/html";
6
+ import { $getRoot as Y, ParagraphNode as Te, $createParagraphNode as G, $createTextNode as z, $setSelection as nt, $getNodeByKey as ct, DecoratorNode as xe, $applyNodeReplacement as Le, SELECTION_CHANGE_COMMAND as X, $getSelection as L, COMMAND_PRIORITY_EDITOR as q, $isRangeSelection as N, $isRootOrShadowRoot as Ft, FORMAT_TEXT_COMMAND as A, COMMAND_PRIORITY_LOW as D, KEY_ARROW_DOWN_COMMAND as _e, KEY_ARROW_UP_COMMAND as we, KEY_ESCAPE_COMMAND as Ht, KEY_SPACE_COMMAND as ye, $getNearestNodeFromDOMNode as pt, KEY_ARROW_LEFT_COMMAND as Se, $isElementNode as Ne, createCommand as Ee, $insertNodes as Re, $createRangeSelection as Ut, COMMAND_PRIORITY_HIGH as Ie, FORMAT_ELEMENT_COMMAND as dt } from "lexical";
7
+ import { trimTextContentFromAnchor as Oe, $setBlocksType as ht, $getSelectionStyleValueForProperty as ze, $patchStyleText as $e, $isAtNodeEnd as yt } from "@lexical/selection";
8
+ import { $dfs as Ae, $getNearestNodeOfType as De, $findMatchingParent as Wt, mergeRegister as ot, isHTMLElement as St, $wrapNodeInElement as Be, mediaFileReader as Pe, isMimeType as Fe } from "@lexical/utils";
9
+ import { LinkNode as j, AutoLinkNode as jt, $isLinkNode as Z, TOGGLE_LINK_COMMAND as it } from "@lexical/link";
10
+ import { ListNode as mt, ListItemNode as Kt, $isListNode as ft, INSERT_UNORDERED_LIST_COMMAND as He, INSERT_ORDERED_LIST_COMMAND as Ue, INSERT_CHECK_LIST_COMMAND as Gt, insertList as We, $isListItemNode as K } from "@lexical/list";
11
+ import { HeadingNode as qt, QuoteNode as Jt, $isHeadingNode as je, $createHeadingNode as Ke, $createQuoteNode as Ge, DRAG_DROP_PASTE as qe } from "@lexical/rich-text";
12
+ import { TableNode as Yt, TableRowNode as Xt, TableCellNode as Vt, INSERT_TABLE_COMMAND as Je, $getTableCellNodeFromLexicalNode as Ye, $deleteTableColumn__EXPERIMENTAL as Xe, $deleteTableRow__EXPERIMENTAL as Ve, $insertTableColumn__EXPERIMENTAL as Nt, $insertTableRow__EXPERIMENTAL as Et } from "@lexical/table";
13
13
  import { jsx as n, jsxs as h, Fragment as F } from "react/jsx-runtime";
14
- import { createContext as rr, useState as m, useRef as V, useCallback as M, useContext as nr, useEffect as w, useMemo as re, useLayoutEffect as or } from "react";
15
- import { Box as P, Stack as ir, Button as y, DropdownMenu as at, ToolbarButton as lt, DropdownMenuIconItem as T, ToolbarToggleGroup as tt, ToolbarToggleItem as O, Popover as ne, PopoverTrigger as oe, PopoverContent as ie, OverlayCard as ae, Toolbar as ar, ToolbarSeparator as $t, styled as lr, Spinner as kt, Dialog as le, DialogHeader as sr, TextInput as bt, DialogActions as st, DropdownMenuItem as W, DropdownMenuSeparator as At, NavBar as cr, NavBarItem as ut, Combobox as dr } from "./ui.es.js";
16
- import { f as hr, g as ur, h as gr, G as f, i as pr, j as mr, k as fr, l as kr } from "./index.esm-fa9e6ea7.js";
14
+ import { createContext as Qe, useState as m, useRef as V, useCallback as M, useContext as Ze, useEffect as _, useMemo as Qt, useLayoutEffect as tr } from "react";
15
+ import { Box as P, Stack as er, Button as w, DropdownMenu as at, ToolbarButton as lt, DropdownMenuIconItem as T, ToolbarToggleGroup as tt, ToolbarToggleItem as O, Popover as Zt, PopoverTrigger as te, PopoverContent as ee, OverlayCard as re, Toolbar as rr, ToolbarSeparator as Rt, styled as nr, Spinner as kt, Dialog as ne, DialogHeader as or, TextInput as bt, DialogActions as st, DropdownMenuItem as W, DropdownMenuSeparator as It, NavBar as ir, NavBarItem as ut, Combobox as ar } from "./ui.es.js";
16
+ import { f as lr, g as sr, h as cr, G as f, i as dr, j as hr, k as ur, l as gr } from "./index.esm-fa9e6ea7.js";
17
17
  import { useLexicalComposerContext as x } from "@lexical/react/LexicalComposerContext.js";
18
- import { LexicalComposer as br } from "@lexical/react/LexicalComposer.js";
19
- import { RichTextPlugin as vr } from "@lexical/react/LexicalRichTextPlugin.js";
20
- import { LexicalErrorBoundary as Cr } from "@lexical/react/LexicalErrorBoundary.js";
21
- import { useFloating as vt, autoUpdate as se, size as Mr, flip as Tr, offset as ce, shift as xr, useInteractions as de, useRole as he, FloatingPortal as ue, inline as Lr, useDismiss as _r } from "@floating-ui/react";
22
- import { s as wr, c as yr } from "./stitches.config-00c23cdb.js";
23
- import { ListPlugin as Sr } from "@lexical/react/LexicalListPlugin.js";
24
- import { HistoryPlugin as Nr } from "@lexical/react/LexicalHistoryPlugin.js";
25
- import { TablePlugin as Er } from "@lexical/react/LexicalTablePlugin.js";
26
- import { TabIndentationPlugin as Rr } from "@lexical/react/LexicalTabIndentationPlugin.js";
18
+ import { LexicalComposer as pr } from "@lexical/react/LexicalComposer.js";
19
+ import { RichTextPlugin as mr } from "@lexical/react/LexicalRichTextPlugin.js";
20
+ import { LexicalErrorBoundary as fr } from "@lexical/react/LexicalErrorBoundary.js";
21
+ import { useFloating as vt, autoUpdate as oe, size as kr, flip as br, offset as ie, shift as vr, useInteractions as ae, useRole as le, FloatingPortal as se, inline as Cr, useDismiss as Mr } from "@floating-ui/react";
22
+ import { s as Tr, c as xr } from "./stitches.config-00c23cdb.js";
23
+ import { ListPlugin as Lr } from "@lexical/react/LexicalListPlugin.js";
24
+ import { HistoryPlugin as _r } from "@lexical/react/LexicalHistoryPlugin.js";
25
+ import { TablePlugin as wr } from "@lexical/react/LexicalTablePlugin.js";
26
+ import { TabIndentationPlugin as yr } from "@lexical/react/LexicalTabIndentationPlugin.js";
27
27
  import { useLexicalComposerContext as Ct } from "@lexical/react/LexicalComposerContext";
28
28
  import "@stitches/react";
29
- const Ir = ({
29
+ const Sr = ({
30
30
  text: t,
31
31
  maxChars: r,
32
32
  maxLines: e
@@ -41,15 +41,15 @@ const Ir = ({
41
41
  t[l] === `
42
42
  ` && a++, l++;
43
43
  return t.slice(0, l).length;
44
- }, ge = ({
44
+ }, ce = ({
45
45
  editor: t,
46
46
  maxChars: r,
47
47
  maxLines: e
48
48
  }) => {
49
- const o = Y(), i = o.getTextContent(), a = Ir({ text: i, maxChars: r, maxLines: e }), l = i.length - a, d = o.select().anchor;
50
- De(t, d, l);
49
+ const o = Y(), i = o.getTextContent(), a = Sr({ text: i, maxChars: r, maxLines: e }), l = i.length - a, d = o.select().anchor;
50
+ Oe(t, d, l);
51
51
  const c = o.getLastChild();
52
- return c instanceof we && c.getChildrenSize() === 0 && c.remove(), l;
52
+ return c instanceof Te && c.getChildrenSize() === 0 && c.remove(), l;
53
53
  }, Mt = {
54
54
  quote: "ain-rich-text-quote",
55
55
  text: {
@@ -63,7 +63,7 @@ const Ir = ({
63
63
  listitem: "ain-rich-text-nested-list-item"
64
64
  }
65
65
  }
66
- }, Tt = (t) => t[0] === "{", Or = (t) => t !== null && typeof t == "object" && "isEmpty" in t, zr = (t, r) => {
66
+ }, Tt = (t) => t[0] === "{", Nr = (t) => t !== null && typeof t == "object" && "isEmpty" in t, Er = (t, r) => {
67
67
  t.update(
68
68
  () => {
69
69
  const e = Y();
@@ -75,7 +75,7 @@ const Ir = ({
75
75
  tag: r
76
76
  }
77
77
  );
78
- }, $r = (t, r, e) => {
78
+ }, Rr = (t, r, e) => {
79
79
  r.update(
80
80
  () => {
81
81
  const o = Y();
@@ -87,10 +87,10 @@ const Ir = ({
87
87
  tag: e
88
88
  }
89
89
  ), r.blur();
90
- }, ao = async (t, r, e) => {
90
+ }, ro = async (t, r, e) => {
91
91
  var l;
92
92
  let o = 0;
93
- const i = Ut({
93
+ const i = Bt({
94
94
  nodes: r,
95
95
  editable: !1,
96
96
  theme: Mt
@@ -104,7 +104,7 @@ const Ir = ({
104
104
  });
105
105
  else {
106
106
  const s = i.parseEditorState(t, () => {
107
- (e == null ? void 0 : e.maxLines) !== void 0 && (o = ge({
107
+ (e == null ? void 0 : e.maxLines) !== void 0 && (o = ce({
108
108
  editor: i,
109
109
  maxLines: e.maxLines
110
110
  }));
@@ -117,11 +117,11 @@ const Ir = ({
117
117
  await ((l = e == null ? void 0 : e.updateFn) == null ? void 0 : l.call(e, i));
118
118
  let a = "";
119
119
  return i.read(() => {
120
- a = Wt(i);
120
+ a = Pt(i);
121
121
  }), { html: a, trimCount: o };
122
- }, lo = (t, r, e) => {
122
+ }, no = (t, r, e) => {
123
123
  let o = 0;
124
- const i = Ut({
124
+ const i = Bt({
125
125
  nodes: r,
126
126
  editable: !1,
127
127
  theme: Mt
@@ -135,7 +135,7 @@ const Ir = ({
135
135
  });
136
136
  else {
137
137
  const l = i.parseEditorState(t, () => {
138
- (e == null ? void 0 : e.maxLines) !== void 0 && (o = ge({
138
+ (e == null ? void 0 : e.maxLines) !== void 0 && (o = ce({
139
139
  editor: i,
140
140
  maxLines: e.maxLines
141
141
  }));
@@ -148,12 +148,12 @@ const Ir = ({
148
148
  let a = "";
149
149
  try {
150
150
  i.read(() => {
151
- a = Wt(i);
151
+ a = Pt(i);
152
152
  });
153
153
  } catch {
154
154
  }
155
155
  return { html: a, trimCount: o };
156
- }, so = (t) => Fe().map(({ node: r }) => r).filter((r) => t.some((e) => r instanceof e));
156
+ }, oo = (t) => Ae().map(({ node: r }) => r).filter((r) => t.some((e) => r instanceof e));
157
157
  class et extends j {
158
158
  static getType() {
159
159
  return "target-link";
@@ -182,12 +182,12 @@ class et extends j {
182
182
  return j.importJSON(r);
183
183
  }
184
184
  }
185
- const pe = rr({
185
+ const de = Qe({
186
186
  hasFocus: !1,
187
187
  editorRef: { current: null },
188
188
  signUrl: void 0,
189
189
  fileUpload: void 0
190
- }), Ar = ({ onBlur: t }) => {
190
+ }), Ir = ({ onBlur: t }) => {
191
191
  const [r, e] = m(!1), o = V(null), i = M(() => {
192
192
  e(!0), o.current && window.clearTimeout(o.current);
193
193
  }, []), a = M(() => {
@@ -202,8 +202,8 @@ const pe = rr({
202
202
  onBlur: a
203
203
  }
204
204
  };
205
- }, H = () => nr(pe);
206
- function Dr({
205
+ }, H = () => Ze(de);
206
+ function Or({
207
207
  src: t,
208
208
  altText: r,
209
209
  width: e,
@@ -211,7 +211,7 @@ function Dr({
211
211
  nodeKey: i
212
212
  }) {
213
213
  const { signUrl: a } = H(), [l, s] = m(a ? "" : t), [d, c] = m(!1), u = V(!1), [g] = x();
214
- w(() => {
214
+ _(() => {
215
215
  const p = async () => {
216
216
  s(await (a == null ? void 0 : a(t)) ?? t);
217
217
  };
@@ -226,26 +226,26 @@ function Dr({
226
226
  });
227
227
  }, R = () => {
228
228
  g.update(() => {
229
- var L;
229
+ var y;
230
230
  const p = ct(i);
231
231
  if (!p)
232
232
  return;
233
- const C = p.getPreviousSibling() || ((L = p.getParent()) == null ? void 0 : L.getPreviousSibling());
233
+ const C = p.getPreviousSibling() || ((y = p.getParent()) == null ? void 0 : y.getPreviousSibling());
234
234
  C && C.insertBefore(p);
235
235
  });
236
236
  }, b = () => {
237
237
  g.update(() => {
238
- var L;
238
+ var y;
239
239
  const p = ct(i);
240
240
  if (!p)
241
241
  return;
242
- const C = p.getNextSibling() || ((L = p.getParent()) == null ? void 0 : L.getNextSibling());
242
+ const C = p.getNextSibling() || ((y = p.getParent()) == null ? void 0 : y.getNextSibling());
243
243
  C && C.insertAfter(p);
244
244
  });
245
245
  };
246
246
  return l ? /* @__PURE__ */ h(P, { css: { position: "relative", display: "inline-block" }, children: [
247
247
  /* @__PURE__ */ h(
248
- ir,
248
+ er,
249
249
  {
250
250
  css: {
251
251
  position: "absolute",
@@ -260,34 +260,34 @@ function Dr({
260
260
  onMouseLeave: k(!1),
261
261
  children: [
262
262
  /* @__PURE__ */ n(
263
- y,
263
+ w,
264
264
  {
265
265
  icon: !0,
266
266
  size: "sm",
267
267
  css: { width: "20px", height: "20px" },
268
268
  onClick: E,
269
269
  color: "danger",
270
- children: /* @__PURE__ */ n(hr, {})
270
+ children: /* @__PURE__ */ n(lr, {})
271
271
  }
272
272
  ),
273
273
  /* @__PURE__ */ n(
274
- y,
274
+ w,
275
275
  {
276
276
  icon: !0,
277
277
  size: "sm",
278
278
  css: { width: "20px", height: "20px" },
279
279
  onClick: R,
280
- children: /* @__PURE__ */ n(ur, {})
280
+ children: /* @__PURE__ */ n(sr, {})
281
281
  }
282
282
  ),
283
283
  /* @__PURE__ */ n(
284
- y,
284
+ w,
285
285
  {
286
286
  icon: !0,
287
287
  size: "sm",
288
288
  css: { width: "20px", height: "20px" },
289
289
  onClick: b,
290
- children: /* @__PURE__ */ n(gr, {})
290
+ children: /* @__PURE__ */ n(cr, {})
291
291
  }
292
292
  )
293
293
  ]
@@ -310,11 +310,11 @@ function Dr({
310
310
  )
311
311
  ] }) : /* @__PURE__ */ n("span", {});
312
312
  }
313
- function Br(t) {
313
+ function zr(t) {
314
314
  const r = t, { alt: e, src: o, width: i, height: a } = r;
315
315
  return { node: xt({ altText: e, height: a, src: o, width: i }) };
316
316
  }
317
- class U extends ye {
317
+ class U extends xe {
318
318
  constructor(e, o, i, a, l, s) {
319
319
  super(s);
320
320
  $(this, "__src");
@@ -354,7 +354,7 @@ class U extends ye {
354
354
  static importDOM() {
355
355
  return {
356
356
  img: (e) => ({
357
- conversion: Br,
357
+ conversion: zr,
358
358
  priority: 0
359
359
  })
360
360
  };
@@ -396,7 +396,7 @@ class U extends ye {
396
396
  }
397
397
  decorate() {
398
398
  return /* @__PURE__ */ n(
399
- Dr,
399
+ Or,
400
400
  {
401
401
  src: this.__src,
402
402
  altText: this.__altText,
@@ -415,34 +415,34 @@ function xt({
415
415
  meta: i,
416
416
  key: a
417
417
  }) {
418
- return Se(
418
+ return Le(
419
419
  new U(e, t, o, r, i, a)
420
420
  );
421
421
  }
422
- function co(t) {
422
+ function io(t) {
423
423
  return t instanceof U;
424
424
  }
425
- const ho = [
426
- Vt,
427
- Qt,
428
- mt,
429
- Yt,
425
+ const ao = [
426
+ qt,
430
427
  Jt,
431
- j,
432
- Zt,
433
- te,
434
- ee,
435
- U
436
- ], uo = [
437
- Vt,
438
- Qt,
439
428
  mt,
429
+ Kt,
430
+ jt,
431
+ j,
440
432
  Yt,
433
+ Xt,
434
+ Vt,
435
+ U
436
+ ], lo = [
437
+ qt,
441
438
  Jt,
439
+ mt,
440
+ Kt,
441
+ jt,
442
442
  j,
443
- Zt,
444
- te,
445
- ee,
443
+ Yt,
444
+ Xt,
445
+ Vt,
446
446
  U,
447
447
  et,
448
448
  {
@@ -453,82 +453,82 @@ const ho = [
453
453
  )
454
454
  }
455
455
  ];
456
- function Pr(t) {
456
+ function $r(t) {
457
457
  return f({ tag: "svg", attr: { viewBox: "0 0 24 24", strokeWidth: "2", stroke: "currentColor", fill: "none", strokeLinecap: "round", strokeLinejoin: "round" }, child: [{ tag: "path", attr: { stroke: "none", d: "M0 0h24v24H0z", fill: "none" } }, { tag: "path", attr: { d: "M4 6l16 0" } }, { tag: "path", attr: { d: "M8 12l8 0" } }, { tag: "path", attr: { d: "M6 18l12 0" } }] })(t);
458
458
  }
459
- function Dt(t) {
459
+ function Ot(t) {
460
460
  return f({ tag: "svg", attr: { viewBox: "0 0 24 24", strokeWidth: "2", stroke: "currentColor", fill: "none", strokeLinecap: "round", strokeLinejoin: "round" }, child: [{ tag: "path", attr: { stroke: "none", d: "M0 0h24v24H0z", fill: "none" } }, { tag: "path", attr: { d: "M4 6l16 0" } }, { tag: "path", attr: { d: "M4 12l10 0" } }, { tag: "path", attr: { d: "M4 18l14 0" } }] })(t);
461
461
  }
462
- function Fr(t) {
462
+ function Ar(t) {
463
463
  return f({ tag: "svg", attr: { viewBox: "0 0 24 24", strokeWidth: "2", stroke: "currentColor", fill: "none", strokeLinecap: "round", strokeLinejoin: "round" }, child: [{ tag: "path", attr: { stroke: "none", d: "M0 0h24v24H0z", fill: "none" } }, { tag: "path", attr: { d: "M4 6l16 0" } }, { tag: "path", attr: { d: "M10 12l10 0" } }, { tag: "path", attr: { d: "M6 18l14 0" } }] })(t);
464
464
  }
465
- function Hr(t) {
465
+ function Dr(t) {
466
466
  return f({ tag: "svg", attr: { viewBox: "0 0 24 24", strokeWidth: "2", stroke: "currentColor", fill: "none", strokeLinecap: "round", strokeLinejoin: "round" }, child: [{ tag: "path", attr: { stroke: "none", d: "M0 0h24v24H0z", fill: "none" } }, { tag: "path", attr: { d: "M7 5h6a3.5 3.5 0 0 1 0 7h-6z" } }, { tag: "path", attr: { d: "M13 12h1a3.5 3.5 0 0 1 0 7h-7v-7" } }] })(t);
467
467
  }
468
- function Ur(t) {
468
+ function Br(t) {
469
469
  return f({ tag: "svg", attr: { viewBox: "0 0 24 24", strokeWidth: "2", stroke: "currentColor", fill: "none", strokeLinecap: "round", strokeLinejoin: "round" }, child: [{ tag: "path", attr: { stroke: "none", d: "M0 0h24v24H0z", fill: "none" } }, { tag: "path", attr: { d: "M7 8l-4 4l4 4" } }, { tag: "path", attr: { d: "M17 8l4 4l-4 4" } }, { tag: "path", attr: { d: "M14 4l-4 16" } }] })(t);
470
470
  }
471
- function Wr(t) {
471
+ function Pr(t) {
472
472
  return f({ tag: "svg", attr: { viewBox: "0 0 24 24", strokeWidth: "2", stroke: "currentColor", fill: "none", strokeLinecap: "round", strokeLinejoin: "round" }, child: [{ tag: "path", attr: { stroke: "none", d: "M0 0h24v24H0z", fill: "none" } }, { tag: "path", attr: { d: "M19 18v-8l-2 2" } }, { tag: "path", attr: { d: "M4 6v12" } }, { tag: "path", attr: { d: "M12 6v12" } }, { tag: "path", attr: { d: "M11 18h2" } }, { tag: "path", attr: { d: "M3 18h2" } }, { tag: "path", attr: { d: "M4 12h8" } }, { tag: "path", attr: { d: "M3 6h2" } }, { tag: "path", attr: { d: "M11 6h2" } }] })(t);
473
473
  }
474
- function jr(t) {
474
+ function Fr(t) {
475
475
  return f({ tag: "svg", attr: { viewBox: "0 0 24 24", strokeWidth: "2", stroke: "currentColor", fill: "none", strokeLinecap: "round", strokeLinejoin: "round" }, child: [{ tag: "path", attr: { stroke: "none", d: "M0 0h24v24H0z", fill: "none" } }, { tag: "path", attr: { d: "M17 12a2 2 0 1 1 4 0c0 .591 -.417 1.318 -.816 1.858l-3.184 4.143l4 0" } }, { tag: "path", attr: { d: "M4 6v12" } }, { tag: "path", attr: { d: "M12 6v12" } }, { tag: "path", attr: { d: "M11 18h2" } }, { tag: "path", attr: { d: "M3 18h2" } }, { tag: "path", attr: { d: "M4 12h8" } }, { tag: "path", attr: { d: "M3 6h2" } }, { tag: "path", attr: { d: "M11 6h2" } }] })(t);
476
476
  }
477
- function Kr(t) {
477
+ function Hr(t) {
478
478
  return f({ tag: "svg", attr: { viewBox: "0 0 24 24", strokeWidth: "2", stroke: "currentColor", fill: "none", strokeLinecap: "round", strokeLinejoin: "round" }, child: [{ tag: "path", attr: { stroke: "none", d: "M0 0h24v24H0z", fill: "none" } }, { tag: "path", attr: { d: "M19 14a2 2 0 1 0 -2 -2" } }, { tag: "path", attr: { d: "M17 16a2 2 0 1 0 2 -2" } }, { tag: "path", attr: { d: "M4 6v12" } }, { tag: "path", attr: { d: "M12 6v12" } }, { tag: "path", attr: { d: "M11 18h2" } }, { tag: "path", attr: { d: "M3 18h2" } }, { tag: "path", attr: { d: "M4 12h8" } }, { tag: "path", attr: { d: "M3 6h2" } }, { tag: "path", attr: { d: "M11 6h2" } }] })(t);
479
479
  }
480
- function Gr(t) {
480
+ function Ur(t) {
481
481
  return f({ tag: "svg", attr: { viewBox: "0 0 24 24", strokeWidth: "2", stroke: "currentColor", fill: "none", strokeLinecap: "round", strokeLinejoin: "round" }, child: [{ tag: "path", attr: { stroke: "none", d: "M0 0h24v24H0z", fill: "none" } }, { tag: "path", attr: { d: "M20 18v-8l-4 6h5" } }, { tag: "path", attr: { d: "M4 6v12" } }, { tag: "path", attr: { d: "M12 6v12" } }, { tag: "path", attr: { d: "M11 18h2" } }, { tag: "path", attr: { d: "M3 18h2" } }, { tag: "path", attr: { d: "M4 12h8" } }, { tag: "path", attr: { d: "M3 6h2" } }, { tag: "path", attr: { d: "M11 6h2" } }] })(t);
482
482
  }
483
- function qr(t) {
483
+ function Wr(t) {
484
484
  return f({ tag: "svg", attr: { viewBox: "0 0 24 24", strokeWidth: "2", stroke: "currentColor", fill: "none", strokeLinecap: "round", strokeLinejoin: "round" }, child: [{ tag: "path", attr: { stroke: "none", d: "M0 0h24v24H0z", fill: "none" } }, { tag: "path", attr: { d: "M17 18h2a2 2 0 1 0 0 -4h-2v-4h4" } }, { tag: "path", attr: { d: "M4 6v12" } }, { tag: "path", attr: { d: "M12 6v12" } }, { tag: "path", attr: { d: "M11 18h2" } }, { tag: "path", attr: { d: "M3 18h2" } }, { tag: "path", attr: { d: "M4 12h8" } }, { tag: "path", attr: { d: "M3 6h2" } }, { tag: "path", attr: { d: "M11 6h2" } }] })(t);
485
485
  }
486
- function Jr(t) {
486
+ function jr(t) {
487
487
  return f({ tag: "svg", attr: { viewBox: "0 0 24 24", strokeWidth: "2", stroke: "currentColor", fill: "none", strokeLinecap: "round", strokeLinejoin: "round" }, child: [{ tag: "path", attr: { stroke: "none", d: "M0 0h24v24H0z", fill: "none" } }, { tag: "path", attr: { d: "M19 14a2 2 0 1 0 0 4a2 2 0 0 0 0 -4z" } }, { tag: "path", attr: { d: "M21 12a2 2 0 1 0 -4 0v4" } }, { tag: "path", attr: { d: "M4 6v12" } }, { tag: "path", attr: { d: "M12 6v12" } }, { tag: "path", attr: { d: "M11 18h2" } }, { tag: "path", attr: { d: "M3 18h2" } }, { tag: "path", attr: { d: "M4 12h8" } }, { tag: "path", attr: { d: "M3 6h2" } }, { tag: "path", attr: { d: "M11 6h2" } }] })(t);
488
488
  }
489
- function Yr(t) {
489
+ function Kr(t) {
490
490
  return f({ tag: "svg", attr: { viewBox: "0 0 24 24", strokeWidth: "2", stroke: "currentColor", fill: "none", strokeLinecap: "round", strokeLinejoin: "round" }, child: [{ tag: "path", attr: { stroke: "none", d: "M0 0h24v24H0z", fill: "none" } }, { tag: "path", attr: { d: "M11 5l6 0" } }, { tag: "path", attr: { d: "M7 19l6 0" } }, { tag: "path", attr: { d: "M14 5l-4 14" } }] })(t);
491
491
  }
492
- function Xr(t) {
492
+ function Gr(t) {
493
493
  return f({ tag: "svg", attr: { viewBox: "0 0 24 24", strokeWidth: "2", stroke: "currentColor", fill: "none", strokeLinecap: "round", strokeLinejoin: "round" }, child: [{ tag: "path", attr: { stroke: "none", d: "M0 0h24v24H0z", fill: "none" } }, { tag: "path", attr: { d: "M17.5 15.5m-3.5 0a3.5 3.5 0 1 0 7 0a3.5 3.5 0 1 0 -7 0" } }, { tag: "path", attr: { d: "M3 19v-10.5a3.5 3.5 0 0 1 7 0v10.5" } }, { tag: "path", attr: { d: "M3 13h7" } }, { tag: "path", attr: { d: "M21 12v7" } }] })(t);
494
494
  }
495
- function Vr(t) {
495
+ function qr(t) {
496
496
  return f({ tag: "svg", attr: { viewBox: "0 0 24 24", strokeWidth: "2", stroke: "currentColor", fill: "none", strokeLinecap: "round", strokeLinejoin: "round" }, child: [{ tag: "path", attr: { stroke: "none", d: "M0 0h24v24H0z", fill: "none" } }, { tag: "path", attr: { d: "M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5" } }, { tag: "path", attr: { d: "M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5" } }] })(t);
497
497
  }
498
- function Qr(t) {
498
+ function Jr(t) {
499
499
  return f({ tag: "svg", attr: { viewBox: "0 0 24 24", strokeWidth: "2", stroke: "currentColor", fill: "none", strokeLinecap: "round", strokeLinejoin: "round" }, child: [{ tag: "path", attr: { stroke: "none", d: "M0 0h24v24H0z", fill: "none" } }, { tag: "path", attr: { d: "M3.5 5.5l1.5 1.5l2.5 -2.5" } }, { tag: "path", attr: { d: "M3.5 11.5l1.5 1.5l2.5 -2.5" } }, { tag: "path", attr: { d: "M3.5 17.5l1.5 1.5l2.5 -2.5" } }, { tag: "path", attr: { d: "M11 6l9 0" } }, { tag: "path", attr: { d: "M11 12l9 0" } }, { tag: "path", attr: { d: "M11 18l9 0" } }] })(t);
500
500
  }
501
- function Zr(t) {
501
+ function Yr(t) {
502
502
  return f({ tag: "svg", attr: { viewBox: "0 0 24 24", strokeWidth: "2", stroke: "currentColor", fill: "none", strokeLinecap: "round", strokeLinejoin: "round" }, child: [{ tag: "path", attr: { stroke: "none", d: "M0 0h24v24H0z", fill: "none" } }, { tag: "path", attr: { d: "M11 6h9" } }, { tag: "path", attr: { d: "M11 12h9" } }, { tag: "path", attr: { d: "M12 18h8" } }, { tag: "path", attr: { d: "M4 16a2 2 0 1 1 4 0c0 .591 -.5 1 -1 1.5l-3 2.5h4" } }, { tag: "path", attr: { d: "M6 10v-6l-2 2" } }] })(t);
503
503
  }
504
- function tn(t) {
504
+ function Xr(t) {
505
505
  return f({ tag: "svg", attr: { viewBox: "0 0 24 24", strokeWidth: "2", stroke: "currentColor", fill: "none", strokeLinecap: "round", strokeLinejoin: "round" }, child: [{ tag: "path", attr: { stroke: "none", d: "M0 0h24v24H0z", fill: "none" } }, { tag: "path", attr: { d: "M9 6l11 0" } }, { tag: "path", attr: { d: "M9 12l11 0" } }, { tag: "path", attr: { d: "M9 18l11 0" } }, { tag: "path", attr: { d: "M5 6l0 .01" } }, { tag: "path", attr: { d: "M5 12l0 .01" } }, { tag: "path", attr: { d: "M5 18l0 .01" } }] })(t);
506
506
  }
507
- function en(t) {
507
+ function Vr(t) {
508
508
  return f({ tag: "svg", attr: { viewBox: "0 0 24 24", strokeWidth: "2", stroke: "currentColor", fill: "none", strokeLinecap: "round", strokeLinejoin: "round" }, child: [{ tag: "path", attr: { stroke: "none", d: "M0 0h24v24H0z", fill: "none" } }, { tag: "path", attr: { d: "M10 11h-4a1 1 0 0 1 -1 -1v-3a1 1 0 0 1 1 -1h3a1 1 0 0 1 1 1v6c0 2.667 -1.333 4.333 -4 5" } }, { tag: "path", attr: { d: "M19 11h-4a1 1 0 0 1 -1 -1v-3a1 1 0 0 1 1 -1h3a1 1 0 0 1 1 1v6c0 2.667 -1.333 4.333 -4 5" } }] })(t);
509
509
  }
510
- function rn(t) {
510
+ function Qr(t) {
511
511
  return f({ tag: "svg", attr: { viewBox: "0 0 24 24", strokeWidth: "2", stroke: "currentColor", fill: "none", strokeLinecap: "round", strokeLinejoin: "round" }, child: [{ tag: "path", attr: { stroke: "none", d: "M0 0h24v24H0z", fill: "none" } }, { tag: "path", attr: { d: "M5 12l14 0" } }, { tag: "path", attr: { d: "M16 6.5a4 2 0 0 0 -4 -1.5h-1a3.5 3.5 0 0 0 0 7h2a3.5 3.5 0 0 1 0 7h-1.5a4 2 0 0 1 -4 -1.5" } }] })(t);
512
512
  }
513
- function nn(t) {
513
+ function Zr(t) {
514
514
  return f({ tag: "svg", attr: { viewBox: "0 0 24 24", strokeWidth: "2", stroke: "currentColor", fill: "none", strokeLinecap: "round", strokeLinejoin: "round" }, child: [{ tag: "path", attr: { stroke: "none", d: "M0 0h24v24H0z", fill: "none" } }, { tag: "path", attr: { d: "M5 7l8 10m-8 0l8 -10" } }, { tag: "path", attr: { d: "M21 20h-4l3.5 -4a1.73 1.73 0 0 0 -3.5 -2" } }] })(t);
515
515
  }
516
- function on(t) {
516
+ function tn(t) {
517
517
  return f({ tag: "svg", attr: { viewBox: "0 0 24 24", strokeWidth: "2", stroke: "currentColor", fill: "none", strokeLinecap: "round", strokeLinejoin: "round" }, child: [{ tag: "path", attr: { stroke: "none", d: "M0 0h24v24H0z", fill: "none" } }, { tag: "path", attr: { d: "M5 7l8 10m-8 0l8 -10" } }, { tag: "path", attr: { d: "M21 11h-4l3.5 -4a1.73 1.73 0 0 0 -3.5 -2" } }] })(t);
518
518
  }
519
- function an(t) {
519
+ function en(t) {
520
520
  return f({ tag: "svg", attr: { viewBox: "0 0 24 24", strokeWidth: "2", stroke: "currentColor", fill: "none", strokeLinecap: "round", strokeLinejoin: "round" }, child: [{ tag: "path", attr: { stroke: "none", d: "M0 0h24v24H0z", fill: "none" } }, { tag: "path", attr: { d: "M4 4m0 2a2 2 0 0 1 2 -2h12a2 2 0 0 1 2 2v12a2 2 0 0 1 -2 2h-12a2 2 0 0 1 -2 -2z" } }, { tag: "path", attr: { d: "M4 10l16 0" } }, { tag: "path", attr: { d: "M10 4l0 16" } }] })(t);
521
521
  }
522
- function ln(t) {
522
+ function rn(t) {
523
523
  return f({ tag: "svg", attr: { viewBox: "0 0 24 24", strokeWidth: "2", stroke: "currentColor", fill: "none", strokeLinecap: "round", strokeLinejoin: "round" }, child: [{ tag: "path", attr: { stroke: "none", d: "M0 0h24v24H0z", fill: "none" } }, { tag: "path", attr: { d: "M9 15v-7a3 3 0 0 1 6 0v7" } }, { tag: "path", attr: { d: "M9 11h6" } }, { tag: "path", attr: { d: "M5 19h14" } }] })(t);
524
524
  }
525
- function sn(t) {
525
+ function nn(t) {
526
526
  return f({ tag: "svg", attr: { viewBox: "0 0 24 24", strokeWidth: "2", stroke: "currentColor", fill: "none", strokeLinecap: "round", strokeLinejoin: "round" }, child: [{ tag: "path", attr: { stroke: "none", d: "M0 0h24v24H0z", fill: "none" } }, { tag: "path", attr: { d: "M7 5v5a5 5 0 0 0 10 0v-5" } }, { tag: "path", attr: { d: "M5 19h14" } }] })(t);
527
527
  }
528
- const cn = wr("div", {
528
+ const on = Tr("div", {
529
529
  width: "10rem",
530
530
  display: "flex"
531
- }), me = {
531
+ }), he = {
532
532
  bullet: "Punktliste",
533
533
  h1: "Overskrift 1",
534
534
  h2: "Overskrift 2",
@@ -540,22 +540,22 @@ const cn = wr("div", {
540
540
  paragraph: "Normal",
541
541
  quote: "Sitat",
542
542
  check: "Avkrysningsliste"
543
- }, dn = {
544
- bullet: /* @__PURE__ */ n(tn, { size: "1.25rem" }),
545
- h1: /* @__PURE__ */ n(Wr, { size: "1.25rem" }),
546
- h2: /* @__PURE__ */ n(jr, { size: "1.25rem" }),
547
- h3: /* @__PURE__ */ n(Kr, { size: "1.25rem" }),
548
- h4: /* @__PURE__ */ n(Gr, { size: "1.25rem" }),
549
- h5: /* @__PURE__ */ n(qr, { size: "1.25rem" }),
550
- h6: /* @__PURE__ */ n(Jr, { size: "1.25rem" }),
551
- number: /* @__PURE__ */ n(Zr, { size: "1.25rem" }),
552
- check: /* @__PURE__ */ n(Qr, { size: "1.25rem" }),
553
- paragraph: /* @__PURE__ */ n(Xr, { size: "1.25rem" }),
554
- quote: /* @__PURE__ */ n(en, { size: "1.25rem" })
543
+ }, an = {
544
+ bullet: /* @__PURE__ */ n(Xr, { size: "1.25rem" }),
545
+ h1: /* @__PURE__ */ n(Pr, { size: "1.25rem" }),
546
+ h2: /* @__PURE__ */ n(Fr, { size: "1.25rem" }),
547
+ h3: /* @__PURE__ */ n(Hr, { size: "1.25rem" }),
548
+ h4: /* @__PURE__ */ n(Ur, { size: "1.25rem" }),
549
+ h5: /* @__PURE__ */ n(Wr, { size: "1.25rem" }),
550
+ h6: /* @__PURE__ */ n(jr, { size: "1.25rem" }),
551
+ number: /* @__PURE__ */ n(Yr, { size: "1.25rem" }),
552
+ check: /* @__PURE__ */ n(Jr, { size: "1.25rem" }),
553
+ paragraph: /* @__PURE__ */ n(Gr, { size: "1.25rem" }),
554
+ quote: /* @__PURE__ */ n(Vr, { size: "1.25rem" })
555
555
  }, S = ({
556
556
  blockType: t
557
557
  }) => /* @__PURE__ */ h(F, { children: [
558
- /* @__PURE__ */ n(P, { css: { display: "flex", flex: "0 0 auto" }, children: dn[t] }),
558
+ /* @__PURE__ */ n(P, { css: { display: "flex", flex: "0 0 auto" }, children: an[t] }),
559
559
  /* @__PURE__ */ n(
560
560
  P,
561
561
  {
@@ -565,40 +565,40 @@ const cn = wr("div", {
565
565
  textOverflow: "ellipsis",
566
566
  whiteSpace: "nowrap"
567
567
  },
568
- children: me[t]
568
+ children: he[t]
569
569
  }
570
570
  )
571
- ] }), hn = (t) => {
571
+ ] }), ln = (t) => {
572
572
  if (!N(t))
573
573
  return null;
574
574
  const r = t.anchor.getNode();
575
- let e = r.getKey() === "root" ? r : qt(r, (o) => {
575
+ let e = r.getKey() === "root" ? r : Wt(r, (o) => {
576
576
  const i = o.getParent();
577
- return i !== null && jt(i);
577
+ return i !== null && Ft(i);
578
578
  });
579
579
  return e === null && (e = r.getTopLevelElementOrThrow()), {
580
580
  anchorNode: r,
581
581
  element: e
582
582
  };
583
- }, un = () => {
583
+ }, sn = () => {
584
584
  const [t] = x(), [r, e] = m("paragraph");
585
- w(() => t.registerCommand(
585
+ _(() => t.registerCommand(
586
586
  X,
587
587
  () => {
588
- const c = _(), u = hn(c);
588
+ const c = L(), u = ln(c);
589
589
  if (!u)
590
590
  return !1;
591
591
  const { element: g, anchorNode: k } = u, E = g.getKey();
592
592
  if (t.getElementByKey(E) !== null)
593
593
  if (ft(g)) {
594
- const b = He(
594
+ const b = De(
595
595
  k,
596
596
  mt
597
597
  ), p = b ? b.getListType() : g.getListType();
598
598
  e(p);
599
599
  } else {
600
- const b = Je(g) ? g.getTag() : g.getType();
601
- b in me && e(b);
600
+ const b = je(g) ? g.getTag() : g.getType();
601
+ b in he && e(b);
602
602
  }
603
603
  return !1;
604
604
  },
@@ -606,11 +606,11 @@ const cn = wr("div", {
606
606
  ), [t]);
607
607
  const o = (c) => {
608
608
  r !== c && t.update(() => {
609
- const u = _();
610
- N(u) && (ht(u, () => Ye(c)), e(c));
609
+ const u = L();
610
+ N(u) && (ht(u, () => Ke(c)), e(c));
611
611
  });
612
612
  };
613
- return /* @__PURE__ */ n(cn, { children: /* @__PURE__ */ h(
613
+ return /* @__PURE__ */ n(on, { children: /* @__PURE__ */ h(
614
614
  at,
615
615
  {
616
616
  trigger: /* @__PURE__ */ n(
@@ -626,7 +626,7 @@ const cn = wr("div", {
626
626
  children: [
627
627
  /* @__PURE__ */ n(T, { onClick: () => {
628
628
  r !== "paragraph" && t.update(() => {
629
- const c = _();
629
+ const c = L();
630
630
  N(c) && (ht(c, () => G()), e("paragraph"));
631
631
  });
632
632
  }, children: /* @__PURE__ */ n(S, { blockType: "paragraph" }) }),
@@ -637,33 +637,29 @@ const cn = wr("div", {
637
637
  /* @__PURE__ */ n(T, { onClick: () => o("h5"), children: /* @__PURE__ */ n(S, { blockType: "h5" }) }),
638
638
  /* @__PURE__ */ n(T, { onClick: () => o("h6"), children: /* @__PURE__ */ n(S, { blockType: "h6" }) }),
639
639
  /* @__PURE__ */ n(T, { onClick: () => {
640
- r !== "bullet" && (t.dispatchCommand(Ke, void 0), e("bullet"));
640
+ r !== "bullet" && (t.dispatchCommand(He, void 0), e("bullet"));
641
641
  }, children: /* @__PURE__ */ n(S, { blockType: "bullet" }) }),
642
642
  /* @__PURE__ */ n(T, { onClick: () => {
643
- r !== "number" && (t.dispatchCommand(Ge, void 0), e("number"));
643
+ r !== "number" && (t.dispatchCommand(Ue, void 0), e("number"));
644
644
  }, children: /* @__PURE__ */ n(S, { blockType: "number" }) }),
645
645
  /* @__PURE__ */ n(T, { onClick: () => {
646
- r !== "check" && (t.dispatchCommand(Xt, void 0), e("check"));
646
+ r !== "check" && (t.dispatchCommand(Gt, void 0), e("check"));
647
647
  }, children: /* @__PURE__ */ n(S, { blockType: "check" }) }),
648
648
  /* @__PURE__ */ n(T, { onClick: () => {
649
649
  r !== "quote" && t.update(() => {
650
- const c = _();
651
- N(c) && (ht(c, () => Xe()), e("quote"));
650
+ const c = L();
651
+ N(c) && (ht(c, () => Ge()), e("quote"));
652
652
  });
653
653
  }, children: /* @__PURE__ */ n(S, { blockType: "quote" }) })
654
654
  ]
655
655
  }
656
656
  ) });
657
- }, gn = () => {
658
- const [t] = x(), [r, e] = m(!1), [o, i] = m(!1), [a, l] = m(!1), [s, d] = m(!1), [c, u] = m(!1), [g, k] = m(!1), [E, R] = m(!1), [b, p] = m(""), [C, L] = m(!1), I = M(() => {
659
- const v = _();
660
- if (!N(v))
661
- return;
662
- e(v.hasFormat("bold")), i(v.hasFormat("italic")), l(v.hasFormat("underline")), p(Be(v, "color", ""));
663
- const yt = v.hasFormat("strikethrough"), St = v.hasFormat("code"), Nt = v.hasFormat("superscript"), Et = v.hasFormat("subscript");
664
- d(yt), u(St), k(Nt), R(Et), (yt || St || Nt || Et) && L(!0);
657
+ }, cn = () => {
658
+ const [t] = x(), [r, e] = m(!1), [o, i] = m(!1), [a, l] = m(!1), [s, d] = m(!1), [c, u] = m(!1), [g, k] = m(!1), [E, R] = m(!1), [b, p] = m(""), [C, y] = m(!1), I = M(() => {
659
+ const v = L();
660
+ N(v) && (e(v.hasFormat("bold")), i(v.hasFormat("italic")), l(v.hasFormat("underline")), d(v.hasFormat("strikethrough")), u(v.hasFormat("code")), k(v.hasFormat("superscript")), R(v.hasFormat("subscript")), p(ze(v, "color", "")));
665
661
  }, []);
666
- w(() => ot(
662
+ _(() => ot(
667
663
  t.registerCommand(
668
664
  X,
669
665
  () => (I(), !1),
@@ -681,22 +677,22 @@ const cn = wr("div", {
681
677
  ), Q = M(
682
678
  () => t.dispatchCommand(A, "italic"),
683
679
  [t]
684
- ), ve = M(
680
+ ), me = M(
685
681
  () => t.dispatchCommand(A, "underline"),
686
682
  [t]
687
- ), Ce = M(
683
+ ), fe = M(
688
684
  () => t.dispatchCommand(A, "strikethrough"),
689
685
  [t]
690
- ), Me = M(
686
+ ), ke = M(
691
687
  () => t.dispatchCommand(A, "code"),
692
688
  [t]
693
- ), Te = M(
689
+ ), be = M(
694
690
  () => t.dispatchCommand(A, "superscript"),
695
691
  [t]
696
- ), xe = M(
692
+ ), ve = M(
697
693
  () => t.dispatchCommand(A, "subscript"),
698
694
  [t]
699
- ), wt = re(() => {
695
+ ), wt = Qt(() => {
700
696
  const v = [];
701
697
  return r && v.push("bold"), o && v.push("italic"), a && v.push("underline"), s && v.push("strikethrough"), c && v.push("code"), g && v.push("superscript"), E && v.push("subscript"), b && v.push("color"), v;
702
698
  }, [
@@ -717,31 +713,31 @@ const cn = wr("div", {
717
713
  "aria-label": "Tekstformattering",
718
714
  value: wt,
719
715
  children: [
720
- /* @__PURE__ */ n(O, { onClick: J, title: "Fet tekst", value: "bold", children: /* @__PURE__ */ n(Hr, { size: "1.25rem" }) }),
716
+ /* @__PURE__ */ n(O, { onClick: J, title: "Fet tekst", value: "bold", children: /* @__PURE__ */ n(Dr, { size: "1.25rem" }) }),
721
717
  /* @__PURE__ */ n(
722
718
  O,
723
719
  {
724
720
  onClick: Q,
725
721
  title: "Kursiv tekst",
726
722
  value: "italic",
727
- children: /* @__PURE__ */ n(Yr, { size: "1.25rem" })
723
+ children: /* @__PURE__ */ n(Kr, { size: "1.25rem" })
728
724
  }
729
725
  ),
730
726
  /* @__PURE__ */ n(
731
727
  O,
732
728
  {
733
- onClick: ve,
729
+ onClick: me,
734
730
  title: "Understreket tekst",
735
731
  value: "underline",
736
- children: /* @__PURE__ */ n(sn, { size: "1.25rem" })
732
+ children: /* @__PURE__ */ n(nn, { size: "1.25rem" })
737
733
  }
738
734
  )
739
735
  ]
740
736
  }
741
737
  ),
742
- /* @__PURE__ */ h(ne, { open: C, onOpenChange: L, children: [
743
- /* @__PURE__ */ n(oe, { children: /* @__PURE__ */ n(lt, { children: /* @__PURE__ */ n(pr, { size: "1.25rem" }) }) }),
744
- /* @__PURE__ */ n(ie, { children: /* @__PURE__ */ h(
738
+ /* @__PURE__ */ h(Zt, { open: C, onOpenChange: y, children: [
739
+ /* @__PURE__ */ n(te, { children: /* @__PURE__ */ n(lt, { children: /* @__PURE__ */ n(dr, { size: "1.25rem" }) }) }),
740
+ /* @__PURE__ */ n(ee, { children: /* @__PURE__ */ h(
745
741
  tt,
746
742
  {
747
743
  type: "multiple",
@@ -752,60 +748,60 @@ const cn = wr("div", {
752
748
  /* @__PURE__ */ n(
753
749
  O,
754
750
  {
755
- onClick: Ce,
751
+ onClick: fe,
756
752
  title: "Gjennomstreking",
757
753
  value: "strikethrough",
758
- children: /* @__PURE__ */ n(rn, { size: "1.25rem" })
754
+ children: /* @__PURE__ */ n(Qr, { size: "1.25rem" })
759
755
  }
760
756
  ),
761
757
  /* @__PURE__ */ n(
762
758
  O,
763
759
  {
764
- onClick: Te,
760
+ onClick: be,
765
761
  title: "Superscript",
766
762
  value: "superscript",
767
- children: /* @__PURE__ */ n(on, { size: "1.25rem" })
763
+ children: /* @__PURE__ */ n(tn, { size: "1.25rem" })
768
764
  }
769
765
  ),
770
766
  /* @__PURE__ */ n(
771
767
  O,
772
768
  {
773
- onClick: xe,
769
+ onClick: ve,
774
770
  title: "Subscript",
775
771
  value: "subscript",
776
- children: /* @__PURE__ */ n(nn, { size: "1.25rem" })
772
+ children: /* @__PURE__ */ n(Zr, { size: "1.25rem" })
777
773
  }
778
774
  ),
779
- /* @__PURE__ */ n(O, { onClick: Me, title: "Kode", value: "code", children: /* @__PURE__ */ n(Ur, { size: "1.25rem" }) }),
780
- /* @__PURE__ */ n(mn, { activeColor: b })
775
+ /* @__PURE__ */ n(O, { onClick: ke, title: "Kode", value: "code", children: /* @__PURE__ */ n(Br, { size: "1.25rem" }) }),
776
+ /* @__PURE__ */ n(hn, { activeColor: b })
781
777
  ]
782
778
  }
783
779
  ) })
784
780
  ] })
785
781
  ] });
786
- }, pn = [
782
+ }, dn = [
787
783
  { name: "Reset", value: "" },
788
784
  { name: "Rød", value: "#df2222" },
789
785
  { name: "Grønn", value: "#1ca021" },
790
786
  { name: "Blå", value: "#2044b8" },
791
787
  { name: "Lilla", value: "#9c31de" }
792
- ], mn = ({ activeColor: t }) => {
788
+ ], hn = ({ activeColor: t }) => {
793
789
  const [r] = x(), [e, o] = m(!1), i = (a) => {
794
790
  r.update(() => {
795
- const l = _();
796
- l && Pe(l, { color: a });
791
+ const l = L();
792
+ l && $e(l, { color: a });
797
793
  });
798
794
  };
799
- return /* @__PURE__ */ h(ne, { open: e, onOpenChange: o, children: [
800
- /* @__PURE__ */ n(oe, { children: /* @__PURE__ */ n(O, { value: "color", title: "Tekstfarge", children: /* @__PURE__ */ n(ln, { size: "1.25rem" }) }) }),
801
- /* @__PURE__ */ n(ie, { children: /* @__PURE__ */ n(
795
+ return /* @__PURE__ */ h(Zt, { open: e, onOpenChange: o, children: [
796
+ /* @__PURE__ */ n(te, { children: /* @__PURE__ */ n(O, { value: "color", title: "Tekstfarge", children: /* @__PURE__ */ n(rn, { size: "1.25rem" }) }) }),
797
+ /* @__PURE__ */ n(ee, { children: /* @__PURE__ */ n(
802
798
  tt,
803
799
  {
804
800
  type: "single",
805
801
  "aria-label": "Tekstfarge",
806
802
  value: t,
807
803
  css: { margin: "$1" },
808
- children: pn.map((a) => /* @__PURE__ */ n(
804
+ children: dn.map((a) => /* @__PURE__ */ n(
809
805
  O,
810
806
  {
811
807
  value: a.value,
@@ -824,7 +820,7 @@ const cn = wr("div", {
824
820
  }
825
821
  }
826
822
  ) : /* @__PURE__ */ n(
827
- mr,
823
+ hr,
828
824
  {
829
825
  size: "1.25rem",
830
826
  style: { color: "#000" }
@@ -836,25 +832,25 @@ const cn = wr("div", {
836
832
  }
837
833
  ) })
838
834
  ] });
839
- }, fn = ({ children: t }) => {
835
+ }, un = ({ children: t }) => {
840
836
  const { hasFocus: r, editorRef: e } = H(), o = r, [i, a] = m(o);
841
- or(() => {
837
+ tr(() => {
842
838
  a(o);
843
839
  }, [o]);
844
840
  const { context: l, refs: s, floatingStyles: d } = vt({
845
841
  placement: "top",
846
- whileElementsMounted: se,
842
+ whileElementsMounted: oe,
847
843
  middleware: [
848
- Mr({
844
+ kr({
849
845
  apply: ({ rects: u, elements: g }) => {
850
846
  g.floating.style.minWidth = `${u.reference.width}px`;
851
847
  }
852
848
  }),
853
- Tr(),
854
- ce({
849
+ br(),
850
+ ie({
855
851
  mainAxis: 8
856
852
  }),
857
- xr({
853
+ vr({
858
854
  padding: 8
859
855
  })
860
856
  ],
@@ -863,13 +859,13 @@ const cn = wr("div", {
863
859
  elements: {
864
860
  reference: e.current
865
861
  }
866
- }), { getFloatingProps: c } = de([
867
- he(l, {
862
+ }), { getFloatingProps: c } = ae([
863
+ le(l, {
868
864
  role: "dialog"
869
865
  })
870
866
  ]);
871
- return i ? /* @__PURE__ */ n(ue, { children: /* @__PURE__ */ n(
872
- ae,
867
+ return i ? /* @__PURE__ */ n(se, { children: /* @__PURE__ */ n(
868
+ re,
873
869
  {
874
870
  ref: s.setFloating,
875
871
  style: d,
@@ -880,39 +876,39 @@ const cn = wr("div", {
880
876
  overflow: "hidden",
881
877
  boxShadow: "$md"
882
878
  },
883
- children: /* @__PURE__ */ n(kn, { children: t })
879
+ children: /* @__PURE__ */ n(gn, { children: t })
884
880
  }
885
881
  ) }) : null;
886
- }, kn = ({
882
+ }, gn = ({
887
883
  children: t,
888
884
  ...r
889
- }) => /* @__PURE__ */ h(ar, { "aria-label": "Formattering", ...r, children: [
890
- /* @__PURE__ */ n(un, {}),
891
- /* @__PURE__ */ n($t, {}),
892
- /* @__PURE__ */ n(gn, {}),
893
- /* @__PURE__ */ n($t, {}),
885
+ }) => /* @__PURE__ */ h(rr, { "aria-label": "Formattering", ...r, children: [
886
+ /* @__PURE__ */ n(sn, {}),
887
+ /* @__PURE__ */ n(Rt, {}),
888
+ /* @__PURE__ */ n(cn, {}),
889
+ /* @__PURE__ */ n(Rt, {}),
894
890
  t
895
891
  ] });
896
- function bn() {
892
+ function pn() {
897
893
  const [t] = x();
898
- return w(() => ot(
894
+ return _(() => ot(
899
895
  t.registerCommand(
900
- Xt,
901
- () => (qe(t, "check"), !0),
896
+ Gt,
897
+ () => (We(t, "check"), !0),
902
898
  D
903
899
  ),
904
900
  t.registerCommand(
905
- Ne,
906
- (r) => Ft(r, t, !1),
901
+ _e,
902
+ (r) => At(r, t, !1),
907
903
  D
908
904
  ),
909
905
  t.registerCommand(
910
- Ee,
911
- (r) => Ft(r, t, !0),
906
+ we,
907
+ (r) => At(r, t, !0),
912
908
  D
913
909
  ),
914
910
  t.registerCommand(
915
- Kt,
911
+ Ht,
916
912
  (r) => {
917
913
  if (gt() != null) {
918
914
  const o = t.getRootElement();
@@ -923,7 +919,7 @@ function bn() {
923
919
  D
924
920
  ),
925
921
  t.registerCommand(
926
- Re,
922
+ ye,
927
923
  (r) => {
928
924
  const e = gt();
929
925
  return e != null && t.isEditable() ? (t.update(() => {
@@ -934,15 +930,15 @@ function bn() {
934
930
  D
935
931
  ),
936
932
  t.registerCommand(
937
- Ie,
933
+ Se,
938
934
  (r) => t.getEditorState().read(() => {
939
- const e = _();
935
+ const e = L();
940
936
  if (N(e) && e.isCollapsed()) {
941
937
  const { anchor: o } = e, i = o.type === "element";
942
938
  if (i || o.offset === 0) {
943
- const a = o.getNode(), l = qt(
939
+ const a = o.getNode(), l = Wt(
944
940
  a,
945
- (s) => Oe(s) && !s.isInline()
941
+ (s) => Ne(s) && !s.isInline()
946
942
  );
947
943
  if (K(l)) {
948
944
  const s = l.getParent();
@@ -959,16 +955,16 @@ function bn() {
959
955
  D
960
956
  ),
961
957
  t.registerRootListener((r, e) => {
962
- r !== null && (r.addEventListener("click", Bt), r.addEventListener("pointerdown", Pt)), e !== null && (e.removeEventListener("click", Bt), e.removeEventListener("pointerdown", Pt));
958
+ r !== null && (r.addEventListener("click", zt), r.addEventListener("pointerdown", $t)), e !== null && (e.removeEventListener("click", zt), e.removeEventListener("pointerdown", $t));
963
959
  })
964
960
  ), [t]), null;
965
961
  }
966
- function fe(t, r) {
962
+ function ue(t, r) {
967
963
  const e = t.target;
968
- if (e === null || !It(e))
964
+ if (e === null || !St(e))
969
965
  return;
970
966
  const o = e.firstChild;
971
- if (o != null && It(o) && (o.tagName === "UL" || o.tagName === "OL"))
967
+ if (o != null && St(o) && (o.tagName === "UL" || o.tagName === "OL"))
972
968
  return;
973
969
  const i = e.parentNode;
974
970
  if (!i || i.__lexicalListType !== "check")
@@ -976,9 +972,9 @@ function fe(t, r) {
976
972
  const a = t.pageX, l = e.getBoundingClientRect();
977
973
  (e.dir === "rtl" ? a < l.right && a > l.right - 20 : a > l.left && a < l.left + 20) && r();
978
974
  }
979
- function Bt(t) {
980
- fe(t, () => {
981
- const r = t.target, e = vn(r);
975
+ function zt(t) {
976
+ ue(t, () => {
977
+ const r = t.target, e = mn(r);
982
978
  e != null && e.isEditable() && e.update(() => {
983
979
  if (t.target) {
984
980
  const o = pt(r);
@@ -987,12 +983,12 @@ function Bt(t) {
987
983
  });
988
984
  });
989
985
  }
990
- function Pt(t) {
991
- fe(t, () => {
986
+ function $t(t) {
987
+ ue(t, () => {
992
988
  t.preventDefault();
993
989
  });
994
990
  }
995
- function vn(t) {
991
+ function mn(t) {
996
992
  let r = t;
997
993
  for (; r; ) {
998
994
  if (r.__lexicalEditor)
@@ -1006,7 +1002,7 @@ function gt() {
1006
1002
  return t != null && t.tagName === "LI" && t.parentNode != null && // @ts-ignore internal field
1007
1003
  t.parentNode.__lexicalListType === "check" ? t : null;
1008
1004
  }
1009
- function Cn(t, r) {
1005
+ function fn(t, r) {
1010
1006
  let e = r ? t.getPreviousSibling() : t.getNextSibling(), o = t;
1011
1007
  for (; e == null && K(o); )
1012
1008
  o = o.getParentOrThrow().getParent(), o != null && (e = r ? o.getPreviousSibling() : o.getNextSibling());
@@ -1018,13 +1014,13 @@ function Cn(t, r) {
1018
1014
  }
1019
1015
  return null;
1020
1016
  }
1021
- function Ft(t, r, e) {
1017
+ function At(t, r, e) {
1022
1018
  const o = gt();
1023
1019
  return o != null && r.update(() => {
1024
1020
  const i = pt(o);
1025
1021
  if (!K(i))
1026
1022
  return;
1027
- const a = Cn(i, e);
1023
+ const a = fn(i, e);
1028
1024
  if (a != null) {
1029
1025
  a.selectStart();
1030
1026
  const l = r.getElementByKey(a.__key);
@@ -1034,10 +1030,10 @@ function Ft(t, r, e) {
1034
1030
  }
1035
1031
  }), !1;
1036
1032
  }
1037
- const Lt = ze("INSERT_IMAGE_COMMAND");
1038
- function Mn() {
1033
+ const Lt = Ee("INSERT_IMAGE_COMMAND");
1034
+ function kn() {
1039
1035
  const [t] = Ct();
1040
- return w(() => {
1036
+ return _(() => {
1041
1037
  if (!t.hasNodes([U]))
1042
1038
  throw new Error("ImagePlugin: ImageNode not registered on editor");
1043
1039
  return ot(
@@ -1045,33 +1041,33 @@ function Mn() {
1045
1041
  Lt,
1046
1042
  (r) => {
1047
1043
  const e = xt(r);
1048
- return $e([e]), jt(e.getParentOrThrow()) && Ue(e, G).selectEnd(), !0;
1044
+ return Re([e]), Ft(e.getParentOrThrow()) && Be(e, G).selectEnd(), !0;
1049
1045
  },
1050
1046
  q
1051
1047
  )
1052
1048
  );
1053
1049
  }, [t]), null;
1054
1050
  }
1055
- const Tn = () => /* @__PURE__ */ h(F, { children: [
1056
- /* @__PURE__ */ n(Sr, {}),
1057
- /* @__PURE__ */ n(Er, {}),
1058
- /* @__PURE__ */ n(Nr, {}),
1059
- /* @__PURE__ */ n(bn, {}),
1060
- /* @__PURE__ */ n(Rr, {}),
1061
- /* @__PURE__ */ n(Mn, {})
1062
- ] }), xn = ({
1051
+ const bn = () => /* @__PURE__ */ h(F, { children: [
1052
+ /* @__PURE__ */ n(Lr, {}),
1053
+ /* @__PURE__ */ n(wr, {}),
1054
+ /* @__PURE__ */ n(_r, {}),
1055
+ /* @__PURE__ */ n(pn, {}),
1056
+ /* @__PURE__ */ n(yr, {}),
1057
+ /* @__PURE__ */ n(kn, {})
1058
+ ] }), vn = ({
1063
1059
  state: t
1064
1060
  }) => {
1065
1061
  const [r] = x(), e = V(!1);
1066
- return w(() => {
1062
+ return _(() => {
1067
1063
  !t || e.current || (e.current = !0, window.queueMicrotask(() => {
1068
1064
  try {
1069
- if (Or(t)) {
1070
- t.isEmpty() ? zr(r) : r.setEditorState(t);
1065
+ if (Nr(t)) {
1066
+ t.isEmpty() ? Er(r) : r.setEditorState(t);
1071
1067
  return;
1072
1068
  }
1073
1069
  if (typeof t == "string" && !Tt(t)) {
1074
- $r(t, r);
1070
+ Rr(t, r);
1075
1071
  return;
1076
1072
  }
1077
1073
  const o = r.parseEditorState(t);
@@ -1081,7 +1077,7 @@ const Tn = () => /* @__PURE__ */ h(F, { children: [
1081
1077
  }
1082
1078
  }));
1083
1079
  }, []), null;
1084
- }, Ln = lr("div", {
1080
+ }, Cn = nr("div", {
1085
1081
  border: "1px solid $borderDarker",
1086
1082
  borderRadius: "$md",
1087
1083
  position: "relative",
@@ -1118,7 +1114,7 @@ const Tn = () => /* @__PURE__ */ h(F, { children: [
1118
1114
  }
1119
1115
  }
1120
1116
  ]
1121
- }), _n = ({
1117
+ }), Mn = ({
1122
1118
  isLoading: t
1123
1119
  }) => /* @__PURE__ */ n(
1124
1120
  P,
@@ -1132,7 +1128,7 @@ const Tn = () => /* @__PURE__ */ h(F, { children: [
1132
1128
  },
1133
1129
  children: /* @__PURE__ */ n(kt, {})
1134
1130
  }
1135
- ), go = ({
1131
+ ), so = ({
1136
1132
  isLoading: t,
1137
1133
  children: r,
1138
1134
  placeholderText: e,
@@ -1149,12 +1145,12 @@ const Tn = () => /* @__PURE__ */ h(F, { children: [
1149
1145
  fileUpload: E,
1150
1146
  editable: R = !0
1151
1147
  }) => {
1152
- const { hasFocus: b, attributes: p } = Ar({ onBlur: c }), C = V(null), L = re(
1148
+ const { hasFocus: b, attributes: p } = Ir({ onBlur: c }), C = V(null), y = Qt(
1153
1149
  () => ({ hasFocus: b, editorRef: C, signUrl: k, fileUpload: E }),
1154
1150
  [b, k, E]
1155
1151
  );
1156
- return /* @__PURE__ */ n(pe.Provider, { value: L, children: /* @__PURE__ */ h(
1157
- br,
1152
+ return /* @__PURE__ */ n(de.Provider, { value: y, children: /* @__PURE__ */ h(
1153
+ pr,
1158
1154
  {
1159
1155
  initialConfig: {
1160
1156
  namespace: "ain-rich-text",
@@ -1167,7 +1163,7 @@ const Tn = () => /* @__PURE__ */ h(F, { children: [
1167
1163
  },
1168
1164
  children: [
1169
1165
  /* @__PURE__ */ h(
1170
- Ln,
1166
+ Cn,
1171
1167
  {
1172
1168
  ref: C,
1173
1169
  hasFocus: b,
@@ -1177,7 +1173,7 @@ const Tn = () => /* @__PURE__ */ h(F, { children: [
1177
1173
  children: [
1178
1174
  a,
1179
1175
  /* @__PURE__ */ n(
1180
- vr,
1176
+ mr,
1181
1177
  {
1182
1178
  contentEditable: s,
1183
1179
  placeholder: e ? /* @__PURE__ */ n(
@@ -1194,22 +1190,22 @@ const Tn = () => /* @__PURE__ */ h(F, { children: [
1194
1190
  children: e
1195
1191
  }
1196
1192
  ) : null,
1197
- ErrorBoundary: Cr
1193
+ ErrorBoundary: fr
1198
1194
  }
1199
1195
  ),
1200
- /* @__PURE__ */ n(Tn, {}),
1196
+ /* @__PURE__ */ n(bn, {}),
1201
1197
  i,
1202
- /* @__PURE__ */ n(_n, { isLoading: t }),
1203
- R && !a && /* @__PURE__ */ n(fn, { children: l })
1198
+ /* @__PURE__ */ n(Mn, { isLoading: t }),
1199
+ R && !a && /* @__PURE__ */ n(un, { children: l })
1204
1200
  ]
1205
1201
  }
1206
1202
  ),
1207
- /* @__PURE__ */ n(xn, { state: u }),
1203
+ /* @__PURE__ */ n(vn, { state: u }),
1208
1204
  /* @__PURE__ */ n(F, { children: r })
1209
1205
  ]
1210
1206
  }
1211
1207
  ) });
1212
- }, wn = {
1208
+ }, Tn = {
1213
1209
  fontSize: "1rem",
1214
1210
  lineHeight: "1.5",
1215
1211
  "h1, h2, h3, h4, h5, h6": {
@@ -1406,7 +1402,7 @@ const Tn = () => /* @__PURE__ */ h(F, { children: [
1406
1402
  defaultVariants: {
1407
1403
  size: "md"
1408
1404
  }
1409
- }, po = yr(wn), yn = ({
1405
+ }, co = xr(Tn), xn = ({
1410
1406
  fileUpload: t,
1411
1407
  ...r
1412
1408
  }) => {
@@ -1427,8 +1423,8 @@ const Tn = () => /* @__PURE__ */ h(F, { children: [
1427
1423
  meta: { width: o.width, height: o.height }
1428
1424
  }), r.onOpenChange(!1));
1429
1425
  };
1430
- return /* @__PURE__ */ h(le, { ...r, children: [
1431
- /* @__PURE__ */ n(sr, { children: "Sett inn bilde" }),
1426
+ return /* @__PURE__ */ h(ne, { ...r, children: [
1427
+ /* @__PURE__ */ n(or, { children: "Sett inn bilde" }),
1432
1428
  t.isLoading && /* @__PURE__ */ n(kt, {}),
1433
1429
  /* @__PURE__ */ n(
1434
1430
  bt,
@@ -1440,9 +1436,9 @@ const Tn = () => /* @__PURE__ */ h(F, { children: [
1440
1436
  }
1441
1437
  ),
1442
1438
  /* @__PURE__ */ h(st, { children: [
1443
- /* @__PURE__ */ n(y, { onClick: () => r.onOpenChange(!1), children: "Avbryt" }),
1439
+ /* @__PURE__ */ n(w, { onClick: () => r.onOpenChange(!1), children: "Avbryt" }),
1444
1440
  /* @__PURE__ */ n(
1445
- y,
1441
+ w,
1446
1442
  {
1447
1443
  variant: "primary",
1448
1444
  disabled: !o || t.isLoading,
@@ -1452,9 +1448,9 @@ const Tn = () => /* @__PURE__ */ h(F, { children: [
1452
1448
  )
1453
1449
  ] })
1454
1450
  ] });
1455
- }, mo = () => {
1451
+ }, ho = () => {
1456
1452
  const [t] = x(), { fileUpload: r } = H(), [e, o] = m(!1), i = M(() => {
1457
- t.dispatchCommand(Qe, {
1453
+ t.dispatchCommand(Je, {
1458
1454
  rows: "3",
1459
1455
  columns: "3",
1460
1456
  includeHeaders: !1
@@ -1469,18 +1465,18 @@ const Tn = () => /* @__PURE__ */ h(F, { children: [
1469
1465
  align: "end",
1470
1466
  children: [
1471
1467
  /* @__PURE__ */ h(T, { onClick: i, children: [
1472
- /* @__PURE__ */ n(an, { size: "1.25rem" }),
1468
+ /* @__PURE__ */ n(en, { size: "1.25rem" }),
1473
1469
  " Tabell"
1474
1470
  ] }),
1475
1471
  r && /* @__PURE__ */ h(T, { onClick: () => o(!0), children: [
1476
- /* @__PURE__ */ n(fr, { size: "1.25rem" }),
1472
+ /* @__PURE__ */ n(ur, { size: "1.25rem" }),
1477
1473
  " Bilde"
1478
1474
  ] })
1479
1475
  ]
1480
1476
  }
1481
1477
  ),
1482
1478
  r && /* @__PURE__ */ n(
1483
- yn,
1479
+ xn,
1484
1480
  {
1485
1481
  open: e,
1486
1482
  onOpenChange: o,
@@ -1489,12 +1485,12 @@ const Tn = () => /* @__PURE__ */ h(F, { children: [
1489
1485
  )
1490
1486
  ] });
1491
1487
  };
1492
- function Sn(t) {
1488
+ function Ln(t) {
1493
1489
  return f({ tag: "svg", attr: { viewBox: "0 0 512 512" }, child: [{ tag: "circle", attr: { cx: "256", cy: "256", r: "48" } }, { tag: "circle", attr: { cx: "416", cy: "256", r: "48" } }, { tag: "circle", attr: { cx: "96", cy: "256", r: "48" } }] })(t);
1494
1490
  }
1495
- const fo = () => {
1491
+ const uo = () => {
1496
1492
  const [t] = x(), [r, e] = m(null), { hasFocus: o } = H();
1497
- w(() => {
1493
+ _(() => {
1498
1494
  !o && r && e(null);
1499
1495
  }, [o, r]);
1500
1496
  const { refs: i, floatingStyles: a } = vt({
@@ -1503,14 +1499,14 @@ const fo = () => {
1503
1499
  elements: {
1504
1500
  reference: r
1505
1501
  },
1506
- middleware: [ce({ mainAxis: -20, crossAxis: -2 })]
1502
+ middleware: [ie({ mainAxis: -20, crossAxis: -2 })]
1507
1503
  });
1508
- w(() => t.registerCommand(
1504
+ _(() => t.registerCommand(
1509
1505
  X,
1510
1506
  () => {
1511
- const s = _();
1507
+ const s = L();
1512
1508
  if (N(s)) {
1513
- const d = s.anchor.getNode(), c = Ze(d);
1509
+ const d = s.anchor.getNode(), c = Ye(d);
1514
1510
  e(c ? t.getElementByKey(c.getKey()) : null);
1515
1511
  }
1516
1512
  return !1;
@@ -1521,22 +1517,22 @@ const fo = () => {
1521
1517
  t.update(() => {
1522
1518
  switch (s) {
1523
1519
  case "add-row-over":
1524
- zt(!1);
1520
+ Et(!1);
1525
1521
  break;
1526
1522
  case "add-row-under":
1527
- zt(!0);
1523
+ Et(!0);
1528
1524
  break;
1529
1525
  case "add-column-left":
1530
- Ot(!1);
1526
+ Nt(!1);
1531
1527
  break;
1532
1528
  case "add-column-right":
1533
- Ot(!0);
1529
+ Nt(!0);
1534
1530
  break;
1535
1531
  case "delete-row":
1536
- er();
1532
+ Ve();
1537
1533
  break;
1538
1534
  case "delete-column":
1539
- tr();
1535
+ Xe();
1540
1536
  break;
1541
1537
  }
1542
1538
  });
@@ -1545,7 +1541,7 @@ const fo = () => {
1545
1541
  at,
1546
1542
  {
1547
1543
  trigger: /* @__PURE__ */ n(
1548
- y,
1544
+ w,
1549
1545
  {
1550
1546
  icon: !0,
1551
1547
  variant: "primary",
@@ -1553,16 +1549,16 @@ const fo = () => {
1553
1549
  ref: i.setFloating,
1554
1550
  style: a,
1555
1551
  css: { padding: "2px", width: "18px", height: "18px" },
1556
- children: /* @__PURE__ */ n(Sn, {})
1552
+ children: /* @__PURE__ */ n(Ln, {})
1557
1553
  }
1558
1554
  ),
1559
1555
  children: [
1560
1556
  /* @__PURE__ */ n(W, { onClick: l("add-row-over"), children: "Legg til rad over" }),
1561
1557
  /* @__PURE__ */ n(W, { onClick: l("add-row-under"), children: "Legg til rad under" }),
1562
- /* @__PURE__ */ n(At, {}),
1558
+ /* @__PURE__ */ n(It, {}),
1563
1559
  /* @__PURE__ */ n(W, { onClick: l("add-column-left"), children: "Legg til kolonne venstre" }),
1564
1560
  /* @__PURE__ */ n(W, { onClick: l("add-column-right"), children: "Legg til kolonne høyre" }),
1565
- /* @__PURE__ */ n(At, {}),
1561
+ /* @__PURE__ */ n(It, {}),
1566
1562
  /* @__PURE__ */ n(W, { onClick: l("delete-row"), children: "Fjern rad" }),
1567
1563
  /* @__PURE__ */ n(W, { onClick: l("delete-column"), children: "Fjern kolonne" })
1568
1564
  ]
@@ -1574,11 +1570,11 @@ function _t(t) {
1574
1570
  const e = /^(?:(?:https?|mailto|ftp|tel|file|sms):|[^&:/?#]*(?:[/?#]|$))/gi, o = /^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[a-z0-9+/]+=*$/i;
1575
1571
  return r = String(r).trim(), r.match(e) || r.match(o) ? r : "https://";
1576
1572
  }
1577
- function ke(t) {
1573
+ function ge(t) {
1578
1574
  const r = t.anchor, e = t.focus, o = t.anchor.getNode(), i = t.focus.getNode();
1579
- return o === i ? o : t.isBackward() ? Rt(e) ? o : i : Rt(r) ? o : i;
1575
+ return o === i ? o : t.isBackward() ? yt(e) ? o : i : yt(r) ? o : i;
1580
1576
  }
1581
- const ko = (t) => (B.baseURL = t, B), rt = class extends j {
1577
+ const go = (t) => (B.baseURL = t, B), rt = class extends j {
1582
1578
  static getType() {
1583
1579
  return "rutine_link";
1584
1580
  }
@@ -1590,7 +1586,7 @@ const ko = (t) => (B.baseURL = t, B), rt = class extends j {
1590
1586
  return e.setAttribute("href", this.getURL()), e.setAttribute("target", "_blank"), e.setAttribute("rel", "noopener noreferrer"), e.classList.add("rutine-link"), e;
1591
1587
  }
1592
1588
  static importJSON(r) {
1593
- return be(r.url);
1589
+ return pe(r.url);
1594
1590
  }
1595
1591
  exportJSON() {
1596
1592
  return {
@@ -1610,21 +1606,21 @@ const ko = (t) => (B.baseURL = t, B), rt = class extends j {
1610
1606
  };
1611
1607
  let B = rt;
1612
1608
  $(B, "baseURL", "");
1613
- function be(t) {
1609
+ function pe(t) {
1614
1610
  return new B(t);
1615
1611
  }
1616
- function Nn(t) {
1612
+ function _n(t) {
1617
1613
  return t instanceof B;
1618
1614
  }
1619
- const En = ({ onClose: t }) => {
1615
+ const wn = ({ onClose: t }) => {
1620
1616
  const [r] = x(), e = M(
1621
1617
  (i) => {
1622
1618
  r.update(() => {
1623
- const a = _();
1619
+ const a = L();
1624
1620
  if (N(a) && a.isCollapsed()) {
1625
1621
  const l = z(i);
1626
1622
  a.insertNodes([l]);
1627
- const s = Gt();
1623
+ const s = Ut();
1628
1624
  s.setTextNodeRange(l, 0, l, i.length), nt(s);
1629
1625
  }
1630
1626
  r.dispatchCommand(it, _t(i));
@@ -1637,22 +1633,22 @@ const En = ({ onClose: t }) => {
1637
1633
  }, children: [
1638
1634
  /* @__PURE__ */ n(bt, { name: "url", label: "URL", type: "url", required: !0 }),
1639
1635
  /* @__PURE__ */ h(st, { children: [
1640
- /* @__PURE__ */ n(y, { onClick: t, children: "Avbryt" }),
1641
- /* @__PURE__ */ n(y, { type: "submit", variant: "primary", children: "Sett inn" })
1636
+ /* @__PURE__ */ n(w, { onClick: t, children: "Avbryt" }),
1637
+ /* @__PURE__ */ n(w, { type: "submit", variant: "primary", children: "Sett inn" })
1642
1638
  ] })
1643
1639
  ] });
1644
- }, Rn = ({
1640
+ }, yn = ({
1645
1641
  onClose: t,
1646
1642
  getDocs: r
1647
1643
  }) => {
1648
1644
  const [e] = x(), [o, i] = m([]), a = r(), l = M(
1649
1645
  (s) => {
1650
1646
  e.update(() => {
1651
- const d = _();
1647
+ const d = L();
1652
1648
  if (N(d)) {
1653
1649
  const c = [];
1654
1650
  for (const [u, g] of s.entries()) {
1655
- const k = be(g.value);
1651
+ const k = pe(g.value);
1656
1652
  k.append(z(g.label)), c.push(k), u !== s.length - 1 && c.push(z(" "));
1657
1653
  }
1658
1654
  d.insertNodes(c);
@@ -1663,7 +1659,7 @@ const En = ({ onClose: t }) => {
1663
1659
  );
1664
1660
  return /* @__PURE__ */ h(F, { children: [
1665
1661
  /* @__PURE__ */ n(
1666
- dr,
1662
+ ar,
1667
1663
  {
1668
1664
  isMulti: !0,
1669
1665
  options: a,
@@ -1671,9 +1667,9 @@ const En = ({ onClose: t }) => {
1671
1667
  }
1672
1668
  ),
1673
1669
  /* @__PURE__ */ h(st, { children: [
1674
- /* @__PURE__ */ n(y, { onClick: t, children: "Avbryt" }),
1670
+ /* @__PURE__ */ n(w, { onClick: t, children: "Avbryt" }),
1675
1671
  /* @__PURE__ */ n(
1676
- y,
1672
+ w,
1677
1673
  {
1678
1674
  variant: "primary",
1679
1675
  onClick: () => {
@@ -1684,7 +1680,7 @@ const En = ({ onClose: t }) => {
1684
1680
  )
1685
1681
  ] })
1686
1682
  ] });
1687
- }, In = ({
1683
+ }, Sn = ({
1688
1684
  onClose: t,
1689
1685
  fileUpload: r,
1690
1686
  filePrefix: e
@@ -1703,11 +1699,11 @@ const En = ({ onClose: t }) => {
1703
1699
  o.update(() => {
1704
1700
  if (!i)
1705
1701
  return;
1706
- const d = _();
1702
+ const d = L();
1707
1703
  if (N(d) && d.isCollapsed()) {
1708
1704
  const c = z(i.name);
1709
1705
  d.insertNodes([c]);
1710
- const u = Gt();
1706
+ const u = Ut();
1711
1707
  u.setTextNodeRange(c, 0, c, i.name.length), nt(u);
1712
1708
  }
1713
1709
  o.dispatchCommand(it, _t(i.url));
@@ -1724,9 +1720,9 @@ const En = ({ onClose: t }) => {
1724
1720
  }
1725
1721
  ),
1726
1722
  /* @__PURE__ */ h(st, { children: [
1727
- /* @__PURE__ */ n(y, { onClick: t, children: "Avbryt" }),
1723
+ /* @__PURE__ */ n(w, { onClick: t, children: "Avbryt" }),
1728
1724
  /* @__PURE__ */ n(
1729
- y,
1725
+ w,
1730
1726
  {
1731
1727
  variant: "primary",
1732
1728
  onClick: () => {
@@ -1738,7 +1734,7 @@ const En = ({ onClose: t }) => {
1738
1734
  )
1739
1735
  ] })
1740
1736
  ] });
1741
- }, On = ({
1737
+ }, Nn = ({
1742
1738
  open: t,
1743
1739
  onOpenChange: r,
1744
1740
  getDocs: e,
@@ -1747,8 +1743,8 @@ const En = ({ onClose: t }) => {
1747
1743
  const { fileUpload: i } = H(), [a, l] = m("url"), s = () => {
1748
1744
  r(!1);
1749
1745
  };
1750
- return /* @__PURE__ */ h(le, { open: t, onOpenChange: r, css: { width: "600px" }, children: [
1751
- /* @__PURE__ */ h(cr, { css: { marginBottom: "$8" }, children: [
1746
+ return /* @__PURE__ */ h(ne, { open: t, onOpenChange: r, css: { width: "600px" }, children: [
1747
+ /* @__PURE__ */ h(ir, { css: { marginBottom: "$8" }, children: [
1752
1748
  /* @__PURE__ */ n(ut, { active: a === "url", onClick: () => l("url"), children: "URL" }),
1753
1749
  e && /* @__PURE__ */ n(
1754
1750
  ut,
@@ -1760,10 +1756,10 @@ const En = ({ onClose: t }) => {
1760
1756
  ),
1761
1757
  i && /* @__PURE__ */ n(ut, { active: a === "file", onClick: () => l("file"), children: "Fil" })
1762
1758
  ] }),
1763
- a === "url" && /* @__PURE__ */ n(En, { onClose: s }),
1764
- a === "rutine" && e && /* @__PURE__ */ n(Rn, { onClose: s, getDocs: e }),
1759
+ a === "url" && /* @__PURE__ */ n(wn, { onClose: s }),
1760
+ a === "rutine" && e && /* @__PURE__ */ n(yn, { onClose: s, getDocs: e }),
1765
1761
  a === "file" && i && /* @__PURE__ */ n(
1766
- In,
1762
+ Sn,
1767
1763
  {
1768
1764
  onClose: s,
1769
1765
  fileUpload: i,
@@ -1771,18 +1767,18 @@ const En = ({ onClose: t }) => {
1771
1767
  }
1772
1768
  )
1773
1769
  ] });
1774
- }, bo = ({
1770
+ }, po = ({
1775
1771
  getDocs: t,
1776
1772
  filePrefix: r
1777
1773
  }) => {
1778
1774
  const [e] = x(), [o, i] = m(!1), [a, l] = m(!1), s = M(() => {
1779
- const d = _();
1775
+ const d = L();
1780
1776
  if (N(d)) {
1781
- const c = ke(d), u = c.getParent();
1777
+ const c = ge(d), u = c.getParent();
1782
1778
  i(Z(u) || Z(c));
1783
1779
  }
1784
1780
  }, []);
1785
- return w(() => e.registerCommand(
1781
+ return _(() => e.registerCommand(
1786
1782
  X,
1787
1783
  () => (s(), !1),
1788
1784
  q
@@ -1795,11 +1791,11 @@ const En = ({ onClose: t }) => {
1795
1791
  },
1796
1792
  title: "Lenke",
1797
1793
  value: "link",
1798
- children: /* @__PURE__ */ n(Vr, { size: "1.25rem" })
1794
+ children: /* @__PURE__ */ n(qr, { size: "1.25rem" })
1799
1795
  }
1800
1796
  ),
1801
1797
  /* @__PURE__ */ n(
1802
- On,
1798
+ Nn,
1803
1799
  {
1804
1800
  open: a,
1805
1801
  onOpenChange: l,
@@ -1808,9 +1804,9 @@ const En = ({ onClose: t }) => {
1808
1804
  }
1809
1805
  )
1810
1806
  ] });
1811
- }, vo = () => {
1807
+ }, mo = () => {
1812
1808
  const [t] = x(), r = V(null), [e, o] = m(null), [i, a] = m(""), { hasFocus: l } = H();
1813
- w(() => {
1809
+ _(() => {
1814
1810
  e ? t.update(() => {
1815
1811
  a(e.getURL());
1816
1812
  }) : a("");
@@ -1819,36 +1815,36 @@ const En = ({ onClose: t }) => {
1819
1815
  placement: "top",
1820
1816
  strategy: "fixed",
1821
1817
  open: s,
1822
- whileElementsMounted: se,
1818
+ whileElementsMounted: oe,
1823
1819
  elements: {
1824
1820
  reference: r.current
1825
1821
  },
1826
- middleware: [Lr()]
1827
- }), { getFloatingProps: g } = de([
1828
- he(u),
1829
- _r(u)
1822
+ middleware: [Cr()]
1823
+ }), { getFloatingProps: g } = ae([
1824
+ le(u),
1825
+ Mr(u)
1830
1826
  ]), k = M(() => {
1831
1827
  var p;
1832
- const b = _();
1828
+ const b = L();
1833
1829
  if (N(b)) {
1834
- const C = ke(b), L = C.getParent();
1830
+ const C = ge(b), y = C.getParent();
1835
1831
  let I = null;
1836
- if (Z(L) ? I = L : Z(C) && (I = C), I) {
1832
+ if (Z(y) ? I = y : Z(C) && (I = C), I) {
1837
1833
  const J = window.getSelection(), Q = t.getRootElement();
1838
1834
  b !== null && J !== null && Q !== null && Q.contains(J.anchorNode) && t.isEditable() && (r.current = ((p = J.focusNode) == null ? void 0 : p.parentElement) ?? null);
1839
1835
  }
1840
1836
  o(I);
1841
1837
  }
1842
1838
  }, [t]), E = M(() => {
1843
- e && Nn(e) && t.update(() => {
1839
+ e && _n(e) && t.update(() => {
1844
1840
  e.remove();
1845
1841
  }), t.dispatchCommand(it, null);
1846
1842
  }, [t, e]);
1847
- if (w(() => {
1843
+ if (_(() => {
1848
1844
  t.getEditorState().read(() => {
1849
1845
  k();
1850
1846
  });
1851
- }, [t, k]), w(() => ot(
1847
+ }, [t, k]), _(() => ot(
1852
1848
  t.registerUpdateListener(({ editorState: b }) => {
1853
1849
  b.read(() => {
1854
1850
  k();
@@ -1860,15 +1856,15 @@ const En = ({ onClose: t }) => {
1860
1856
  q
1861
1857
  ),
1862
1858
  t.registerCommand(
1863
- Kt,
1859
+ Ht,
1864
1860
  () => e ? (o(null), !0) : !1,
1865
- Ae
1861
+ Ie
1866
1862
  )
1867
1863
  ), [t, k, e]), !s)
1868
1864
  return null;
1869
1865
  const R = _t(i);
1870
- return /* @__PURE__ */ n(ue, { children: /* @__PURE__ */ h(
1871
- ae,
1866
+ return /* @__PURE__ */ n(se, { children: /* @__PURE__ */ h(
1867
+ re,
1872
1868
  {
1873
1869
  ref: d.setFloating,
1874
1870
  css: {
@@ -1899,24 +1895,24 @@ const En = ({ onClose: t }) => {
1899
1895
  children: i
1900
1896
  }
1901
1897
  ),
1902
- /* @__PURE__ */ n(y, { color: "danger", icon: !0, size: "sm", onClick: E, children: /* @__PURE__ */ n(kr, { size: 24 }) })
1898
+ /* @__PURE__ */ n(w, { color: "danger", icon: !0, size: "sm", onClick: E, children: /* @__PURE__ */ n(gr, { size: 24 }) })
1903
1899
  ]
1904
1900
  }
1905
1901
  ) });
1906
- }, Co = () => {
1902
+ }, fo = () => {
1907
1903
  const [t] = Ct();
1908
1904
  return /* @__PURE__ */ h(
1909
1905
  at,
1910
1906
  {
1911
1907
  align: "end",
1912
- trigger: /* @__PURE__ */ n(lt, { dropdown: !0, children: /* @__PURE__ */ n(Dt, { size: "1.25rem" }) }),
1908
+ trigger: /* @__PURE__ */ n(lt, { dropdown: !0, children: /* @__PURE__ */ n(Ot, { size: "1.25rem" }) }),
1913
1909
  children: [
1914
1910
  /* @__PURE__ */ h(
1915
1911
  T,
1916
1912
  {
1917
1913
  onClick: () => t.dispatchCommand(dt, "left"),
1918
1914
  children: [
1919
- /* @__PURE__ */ n(Dt, { size: "1.25rem" }),
1915
+ /* @__PURE__ */ n(Ot, { size: "1.25rem" }),
1920
1916
  "Venstre"
1921
1917
  ]
1922
1918
  }
@@ -1926,7 +1922,7 @@ const En = ({ onClose: t }) => {
1926
1922
  {
1927
1923
  onClick: () => t.dispatchCommand(dt, "center"),
1928
1924
  children: [
1929
- /* @__PURE__ */ n(Pr, { size: "1.25rem" }),
1925
+ /* @__PURE__ */ n($r, { size: "1.25rem" }),
1930
1926
  "Midt"
1931
1927
  ]
1932
1928
  }
@@ -1936,7 +1932,7 @@ const En = ({ onClose: t }) => {
1936
1932
  {
1937
1933
  onClick: () => t.dispatchCommand(dt, "right"),
1938
1934
  children: [
1939
- /* @__PURE__ */ n(Fr, { size: "1.25rem" }),
1935
+ /* @__PURE__ */ n(Ar, { size: "1.25rem" }),
1940
1936
  "Høyre"
1941
1937
  ]
1942
1938
  }
@@ -1944,17 +1940,17 @@ const En = ({ onClose: t }) => {
1944
1940
  ]
1945
1941
  }
1946
1942
  );
1947
- }, Ht = ["image/"], Mo = () => {
1943
+ }, Dt = ["image/"], ko = () => {
1948
1944
  const [t] = Ct(), { fileUpload: r } = H();
1949
- return w(() => t.registerCommand(
1950
- Ve,
1945
+ return _(() => t.registerCommand(
1946
+ qe,
1951
1947
  (e) => ((async () => {
1952
- const o = await We(
1948
+ const o = await Pe(
1953
1949
  e,
1954
- [Ht].flatMap((i) => i)
1950
+ [Dt].flatMap((i) => i)
1955
1951
  );
1956
1952
  for (const { file: i, result: a } of o)
1957
- if (je(i, Ht)) {
1953
+ if (Fe(i, Dt)) {
1958
1954
  let l = a;
1959
1955
  const s = new Image(), d = window.URL.createObjectURL(i);
1960
1956
  s.onload = async () => {
@@ -1971,34 +1967,34 @@ const En = ({ onClose: t }) => {
1971
1967
  };
1972
1968
  export {
1973
1969
  xt as $createImageNode,
1974
- be as $createRutineLinkNode,
1975
- so as $getNodesOfTypes,
1976
- co as $isImageNode,
1977
- Nn as $isRutineLinkNode,
1978
- Co as AlignToolbarDropdown,
1979
- Mo as DragDropPastePlugin,
1980
- fn as FloatingToolbar,
1970
+ pe as $createRutineLinkNode,
1971
+ oo as $getNodesOfTypes,
1972
+ io as $isImageNode,
1973
+ _n as $isRutineLinkNode,
1974
+ fo as AlignToolbarDropdown,
1975
+ ko as DragDropPastePlugin,
1976
+ un as FloatingToolbar,
1981
1977
  U as ImageNode,
1982
- mo as InsertSelector,
1983
- vo as LinkEditPlugin,
1978
+ ho as InsertSelector,
1979
+ mo as LinkEditPlugin,
1984
1980
  et as LinkTargetNode,
1985
- bo as LinkToolbarButton,
1986
- go as RichTextEditor,
1987
- kn as RichTextToolbar,
1981
+ po as LinkToolbarButton,
1982
+ so as RichTextEditor,
1983
+ gn as RichTextToolbar,
1988
1984
  B as RutineLinkNode,
1989
- ko as RutineLinkNodeInit,
1990
- fo as TableEditPlugin,
1991
- zr as clearEditorState,
1992
- ho as defaultNodes,
1993
- uo as defaultViewNodes,
1994
- Or as isEditorState,
1985
+ go as RutineLinkNodeInit,
1986
+ uo as TableEditPlugin,
1987
+ Er as clearEditorState,
1988
+ ao as defaultNodes,
1989
+ lo as defaultViewNodes,
1990
+ Nr as isEditorState,
1995
1991
  Tt as isJSON,
1996
- pe as richTextContext,
1997
- po as richTextCss,
1998
- wn as richTextStyleObj,
1999
- $r as setStateFromPlainText,
2000
- ao as stateToHTML,
2001
- lo as syncStateToHTML,
2002
- Ar as useHasFocusWithin,
1992
+ de as richTextContext,
1993
+ co as richTextCss,
1994
+ Tn as richTextStyleObj,
1995
+ Rr as setStateFromPlainText,
1996
+ ro as stateToHTML,
1997
+ no as syncStateToHTML,
1998
+ Ir as useHasFocusWithin,
2003
1999
  H as useRichTextContext
2004
2000
  };