@uva-glass/component-library 2.6.0 → 2.6.2
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/Lexical.prod-BAr6tzpa.js +4236 -0
- package/dist/Lexical.prod-BAr6tzpa.js.map +1 -0
- package/dist/{LexicalClipboard.prod-Dg23ixPD.js → LexicalClipboard.prod-CLCBYtDj.js} +56 -56
- package/dist/LexicalClipboard.prod-CLCBYtDj.js.map +1 -0
- package/dist/LexicalLink.prod-CBgZ4B3x.js +263 -0
- package/dist/LexicalLink.prod-CBgZ4B3x.js.map +1 -0
- package/dist/LexicalList.prod-haeqjypw.js +576 -0
- package/dist/LexicalList.prod-haeqjypw.js.map +1 -0
- package/dist/{LexicalSelection.prod-CNWFGVlh.js → LexicalSelection.prod-C8x7KK4L.js} +38 -38
- package/dist/LexicalSelection.prod-C8x7KK4L.js.map +1 -0
- package/dist/LexicalTable.prod-8RqiGUG-.js +1447 -0
- package/dist/LexicalTable.prod-8RqiGUG-.js.map +1 -0
- package/dist/LexicalUtils.prod-Dsec_Kl-.js +122 -0
- package/dist/LexicalUtils.prod-Dsec_Kl-.js.map +1 -0
- package/dist/{TablePlugin-E6UFlCgy.js → TablePlugin-sPSGmCno.js} +69 -69
- package/dist/{TablePlugin-E6UFlCgy.js.map → TablePlugin-sPSGmCno.js.map} +1 -1
- package/dist/assets/CheckboxTree.css +1 -1
- package/dist/components/CheckboxTree/CheckboxTree.js +42 -42
- package/dist/components/FormInput/FormInput.js +1 -1
- package/dist/components/InputField/InputField.stories.js +1 -1
- package/dist/components/MultiSelect/MultiSelect.js +1 -1
- package/dist/components/MultiSelect/MultiSelect.stories.js +1 -1
- package/dist/components/MultiSelect/components/MultiSelectHeader.js +1 -1
- package/dist/components/MultiSelect/index.js +1 -1
- package/dist/components/OverlayStepBar/OverlayStepBar.js +1 -1
- package/dist/components/PeriodSelector/PeriodSelector.js +1 -1
- package/dist/components/ProgrammeCard/ProgrammeCard.stories.js +1 -1
- package/dist/components/RteEditor/EditorHeader/EditorHeader.js +1 -1
- package/dist/components/RteEditor/Plugins/BlockFormatPlugin/BlockFormatPlugin.js +3 -3
- package/dist/components/RteEditor/Plugins/HistoryPlugin/HistoryPlugin.js +2 -2
- package/dist/components/RteEditor/Plugins/LinkPlugin/AddLinkForm/AddLinkFrom.js +2 -2
- package/dist/components/RteEditor/Plugins/LinkPlugin/LinkContextMenu/LinkContextMenu.js +1 -1
- package/dist/components/RteEditor/Plugins/LinkPlugin/LinkPlugin.js +37 -37
- package/dist/components/RteEditor/Plugins/LinkPlugin/helpers.js +1 -1
- package/dist/components/RteEditor/Plugins/ListPlugin/ListPlugin.js +23 -23
- package/dist/components/RteEditor/Plugins/PasteHandlerPlugin/PasteHandlerPlugin.js +13 -13
- package/dist/components/RteEditor/Plugins/TablePlugin/AddTableFrom.js +1 -1
- package/dist/components/RteEditor/Plugins/TablePlugin/TablePlugin.js +3 -3
- package/dist/components/RteEditor/Plugins/TablePlugin/helpers.js +26 -26
- package/dist/components/RteEditor/Plugins/TablePlugin/index.js +1 -1
- package/dist/components/RteEditor/Plugins/ToolbarPlugin/ToolbarPlugin.js +17 -17
- package/dist/components/RteEditor/Plugins/index.js +1 -1
- package/dist/components/RteEditor/RteEditor.js +501 -557
- package/dist/components/RteEditor/RteEditor.js.map +1 -1
- package/dist/components/RteEditor/helpers.js +11 -11
- package/dist/components/index.js +1 -1
- package/dist/{helpers-BVGma1u6.js → helpers-DHHQR5ys.js} +44 -44
- package/dist/{helpers-BVGma1u6.js.map → helpers-DHHQR5ys.js.map} +1 -1
- package/dist/index.js +1 -1
- package/package.json +16 -16
- package/dist/Lexical.prod-Bzma_w4s.js +0 -4216
- package/dist/Lexical.prod-Bzma_w4s.js.map +0 -1
- package/dist/LexicalClipboard.prod-Dg23ixPD.js.map +0 -1
- package/dist/LexicalLink.prod-C1RDJLfo.js +0 -208
- package/dist/LexicalLink.prod-C1RDJLfo.js.map +0 -1
- package/dist/LexicalList.prod-BGzfDPU0.js +0 -568
- package/dist/LexicalList.prod-BGzfDPU0.js.map +0 -1
- package/dist/LexicalSelection.prod-CNWFGVlh.js.map +0 -1
- package/dist/LexicalTable.prod-D-4NN9o5.js +0 -1366
- package/dist/LexicalTable.prod-D-4NN9o5.js.map +0 -1
- package/dist/LexicalUtils.prod-Cg2siy-c.js +0 -94
- package/dist/LexicalUtils.prod-Cg2siy-c.js.map +0 -1
|
@@ -1,86 +1,86 @@
|
|
|
1
|
-
import {
|
|
2
|
-
function
|
|
1
|
+
import { a4 as w, a2 as x, L as g, a5 as P, I as m, y as S, n as _, v as O, a6 as E } from "./Lexical.prod-BAr6tzpa.js";
|
|
2
|
+
function N(n) {
|
|
3
3
|
return n && n.__esModule && Object.prototype.hasOwnProperty.call(n, "default") ? n.default : n;
|
|
4
4
|
}
|
|
5
|
-
var
|
|
5
|
+
var T = N(function(n) {
|
|
6
6
|
const t = new URLSearchParams();
|
|
7
7
|
t.append("code", n);
|
|
8
8
|
for (let e = 1; e < arguments.length; e++) t.append("v", arguments[e]);
|
|
9
9
|
throw Error(`Minified Lexical error #${n}; visit https://lexical.dev/docs/error?${t} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`);
|
|
10
10
|
});
|
|
11
|
-
const
|
|
12
|
-
function
|
|
11
|
+
const k = /* @__PURE__ */ new Map();
|
|
12
|
+
function B(n) {
|
|
13
13
|
const t = {};
|
|
14
14
|
if (!n) return t;
|
|
15
15
|
const e = n.split(";");
|
|
16
16
|
for (const i of e) if (i !== "") {
|
|
17
|
-
const [
|
|
18
|
-
|
|
17
|
+
const [a, l] = i.split(/:([^]+)/);
|
|
18
|
+
a && l && (t[a.trim()] = l.trim());
|
|
19
19
|
}
|
|
20
20
|
return t;
|
|
21
21
|
}
|
|
22
|
-
function
|
|
22
|
+
function j(n, t) {
|
|
23
23
|
const e = n.getStartEndPoints();
|
|
24
24
|
if (t.isSelected(n) && !t.isSegmented() && !t.isToken() && e !== null) {
|
|
25
|
-
const [i,
|
|
26
|
-
if (o ||
|
|
27
|
-
const [
|
|
25
|
+
const [i, a] = e, l = n.isBackward(), s = i.getNode(), r = a.getNode(), o = t.is(s), h = t.is(r);
|
|
26
|
+
if (o || h) {
|
|
27
|
+
const [c, u] = w(n), v = s.is(r), y = t.is(l ? r : s), I = t.is(l ? s : r);
|
|
28
28
|
let f, d = 0;
|
|
29
|
-
return v ? (d =
|
|
29
|
+
return v ? (d = c > u ? u : c, f = c > u ? c : u) : y ? (d = l ? u : c, f = void 0) : I && (d = 0, f = l ? c : u), t.__text = t.__text.slice(d, f), t;
|
|
30
30
|
}
|
|
31
31
|
}
|
|
32
32
|
return t;
|
|
33
33
|
}
|
|
34
|
-
function
|
|
35
|
-
const t = n.getStyle(), e =
|
|
36
|
-
|
|
34
|
+
function C(n) {
|
|
35
|
+
const t = n.getStyle(), e = B(t);
|
|
36
|
+
k.set(t, e);
|
|
37
37
|
}
|
|
38
|
-
function
|
|
38
|
+
function D(n, t) {
|
|
39
39
|
if (n === null) return;
|
|
40
40
|
const e = n.getStartEndPoints(), i = e ? e[0] : null;
|
|
41
41
|
if (i !== null && i.key === "root") {
|
|
42
|
-
const s = t(), r =
|
|
42
|
+
const s = t(), r = x(), o = r.getFirstChild();
|
|
43
43
|
return void (o ? o.replace(s, !0) : r.append(s));
|
|
44
44
|
}
|
|
45
|
-
const
|
|
45
|
+
const a = n.getNodes(), l = i !== null && function(s, r) {
|
|
46
46
|
let o = s;
|
|
47
47
|
for (; o !== null && o.getParent() !== null && !r(o); ) o = o.getParentOrThrow();
|
|
48
48
|
return r(o) ? o : null;
|
|
49
49
|
}(i.getNode(), p);
|
|
50
|
-
l &&
|
|
51
|
-
for (let s = 0; s <
|
|
52
|
-
const r =
|
|
50
|
+
l && a.indexOf(l) === -1 && a.push(l);
|
|
51
|
+
for (let s = 0; s < a.length; s++) {
|
|
52
|
+
const r = a[s];
|
|
53
53
|
if (!p(r)) continue;
|
|
54
|
-
g(r) ||
|
|
54
|
+
g(r) || T(178);
|
|
55
55
|
const o = t();
|
|
56
56
|
o.setFormat(r.getFormatType()), o.setIndent(r.getIndent()), r.replace(o, !0);
|
|
57
57
|
}
|
|
58
58
|
}
|
|
59
|
-
function
|
|
59
|
+
function $(n, t) {
|
|
60
60
|
const e = P(n.focus, t);
|
|
61
|
-
return
|
|
61
|
+
return m(e) && !e.isIsolated() || g(e) && !e.isInline() && !e.canBeEmpty();
|
|
62
62
|
}
|
|
63
|
-
function
|
|
63
|
+
function F(n, t, e, i) {
|
|
64
64
|
n.modify(t ? "extend" : "move", e, i);
|
|
65
65
|
}
|
|
66
|
-
function
|
|
66
|
+
function L(n) {
|
|
67
67
|
const t = n.anchor.getNode();
|
|
68
|
-
return (
|
|
68
|
+
return (E(t) ? t : t.getParentOrThrow()).getDirection() === "rtl";
|
|
69
69
|
}
|
|
70
|
-
function
|
|
71
|
-
const i =
|
|
72
|
-
|
|
70
|
+
function b(n, t, e) {
|
|
71
|
+
const i = L(n);
|
|
72
|
+
F(n, t, e ? !i : i, "character");
|
|
73
73
|
}
|
|
74
74
|
function p(n) {
|
|
75
|
-
if (
|
|
76
|
-
const t = n.getFirstChild(), e = t === null ||
|
|
75
|
+
if (m(n) || !g(n) || S(n)) return !1;
|
|
76
|
+
const t = n.getFirstChild(), e = t === null || _(t) || O(t) || t.isInline();
|
|
77
77
|
return !n.isInline() && n.canBeEmpty() !== !1 && e;
|
|
78
78
|
}
|
|
79
79
|
export {
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
D as
|
|
83
|
-
|
|
84
|
-
C as
|
|
80
|
+
j as I,
|
|
81
|
+
$ as M,
|
|
82
|
+
D as _,
|
|
83
|
+
b as j,
|
|
84
|
+
C as k
|
|
85
85
|
};
|
|
86
|
-
//# sourceMappingURL=LexicalSelection.prod-
|
|
86
|
+
//# sourceMappingURL=LexicalSelection.prod-C8x7KK4L.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"LexicalSelection.prod-C8x7KK4L.js","sources":["../node_modules/@lexical/selection/LexicalSelection.prod.mjs"],"sourcesContent":["/**\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n */\n\nimport{$isTextNode as e,$getCharacterOffsets as t,$isElementNode as n,$isRootNode as l,$getNodeByKey as o,$getPreviousSelection as r,$createTextNode as s,$isRangeSelection as i,$getSelection as c,$isTokenOrSegmented as f,$getRoot as u,$isRootOrShadowRoot as a,$hasAncestor as g,$isLeafNode as d,$setSelection as p,$getAdjacentNode as h,$isDecoratorNode as y,$isLineBreakNode as m}from\"lexical\";export{$cloneWithProperties,$selectAll}from\"lexical\";function S(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,\"default\")?e.default:e}var x=S((function(e){const t=new URLSearchParams;t.append(\"code\",e);for(let e=1;e<arguments.length;e++)t.append(\"v\",arguments[e]);throw Error(`Minified Lexical error #${e}; visit https://lexical.dev/docs/error?${t} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}));const T=new Map;function v(e){let t=e;for(;null!=t;){if(t.nodeType===Node.TEXT_NODE)return t;t=t.firstChild}return null}function C(e){const t=e.parentNode;if(null==t)throw new Error(\"Should never happen\");return[t,Array.from(t.childNodes).indexOf(e)]}function N(t,n,l,o,r){const s=n.getKey(),i=o.getKey(),c=document.createRange();let f=t.getElementByKey(s),u=t.getElementByKey(i),a=l,g=r;if(e(n)&&(f=v(f)),e(o)&&(u=v(u)),void 0===n||void 0===o||null===f||null===u)return null;\"BR\"===f.nodeName&&([f,a]=C(f)),\"BR\"===u.nodeName&&([u,g]=C(u));const d=f.firstChild;f===u&&null!=d&&\"BR\"===d.nodeName&&0===a&&0===g&&(g=1);try{c.setStart(f,a),c.setEnd(u,g)}catch(e){return null}return!c.collapsed||a===g&&s===i||(c.setStart(u,g),c.setEnd(f,a)),c}function P(e,t){const n=e.getRootElement();if(null===n)return[];const l=n.getBoundingClientRect(),o=getComputedStyle(n),r=parseFloat(o.paddingLeft)+parseFloat(o.paddingRight),s=Array.from(t.getClientRects());let i,c=s.length;s.sort(((e,t)=>{const n=e.top-t.top;return Math.abs(n)<=3?e.left-t.left:n}));for(let e=0;e<c;e++){const t=s[e],n=i&&i.top<=t.top&&i.top+i.height>t.top&&i.left+i.width>t.left,o=t.width+r===l.width;n||o?(s.splice(e--,1),c--):i=t}return s}function w(e){const t={};if(!e)return t;const n=e.split(\";\");for(const e of n)if(\"\"!==e){const[n,l]=e.split(/:([^]+)/);n&&l&&(t[n.trim()]=l.trim())}return t}function E(e){let t=T.get(e);return void 0===t&&(t=w(e),T.set(e,t)),t}function F(e){let t=\"\";for(const n in e)n&&(t+=`${n}: ${e[n]};`);return t}function I(e,n){const l=e.getStartEndPoints();if(n.isSelected(e)&&!n.isSegmented()&&!n.isToken()&&null!==l){const[o,r]=l,s=e.isBackward(),i=o.getNode(),c=r.getNode(),f=n.is(i),u=n.is(c);if(f||u){const[l,o]=t(e),r=i.is(c),f=n.is(s?c:i),u=n.is(s?i:c);let a,g=0;if(r)g=l>o?o:l,a=l>o?l:o;else if(f){g=s?o:l,a=void 0}else if(u){g=0,a=s?l:o}return n.__text=n.__text.slice(g,a),n}}return n}function K(e){if(\"text\"===e.type)return e.offset===e.getNode().getTextContentSize();const t=e.getNode();return n(t)||x(177),e.offset===t.getChildrenSize()}function B(t,c,f){let u=c.getNode(),a=f;if(n(u)){const e=u.getDescendantByIndex(c.offset);null!==e&&(u=e)}for(;a>0&&null!==u;){if(n(u)){const e=u.getLastDescendant();null!==e&&(u=e)}let f=u.getPreviousSibling(),g=0;if(null===f){let e=u.getParentOrThrow(),t=e.getPreviousSibling();for(;null===t;){if(e=e.getParent(),null===e){f=null;break}t=e.getPreviousSibling()}null!==e&&(g=e.isInline()?0:2,f=t)}let d=u.getTextContent();\"\"===d&&n(u)&&!u.isInline()&&(d=\"\\n\\n\");const p=d.length;if(!e(u)||a>=p){const e=u.getParent();u.remove(),null==e||0!==e.getChildrenSize()||l(e)||e.remove(),a-=p+g,u=f}else{const n=u.getKey(),l=t.getEditorState().read((()=>{const t=o(n);return e(t)&&t.isSimpleText()?t.getTextContent():null})),f=p-a,g=d.slice(0,f);if(null!==l&&l!==d){const e=r();let t=u;if(u.isSimpleText())u.setTextContent(l);else{const e=s(l);u.replace(e),t=e}if(i(e)&&e.isCollapsed()){const n=e.anchor.offset;t.select(n,n)}}else if(u.isSimpleText()){const e=c.key===n;let t=c.offset;t<a&&(t=p);const l=e?t-a:0,o=e?t:f;if(e&&0===l){const[e]=u.splitText(l,o);e.remove()}else{const[,e]=u.splitText(l,o);e.remove()}}else{const e=s(g);u.replace(e)}a=0}}}function k(e){const t=e.getStyle(),n=w(t);T.set(t,n)}function O(e,t){const n=E(\"getStyle\"in e?e.getStyle():e.style),l=Object.entries(t).reduce(((t,[l,o])=>(\"function\"==typeof o?t[l]=o(n[l],e):null===o?delete t[l]:t[l]=o,t)),{...n}||{}),o=F(l);e.setStyle(o),T.set(o,l)}function b(e,t){e.isCollapsed()&&i(e)?O(e,t):R((e=>{O(e,t)}))}function R(t){const n=c();if(!i(n))return;const l=n.getNodes(),o=l.length,{anchor:r,focus:s}=n,u=o-1;let a=l[0],g=l[u];const d=a.getTextContent().length,p=s.offset;let h=r.offset;const y=r.isBefore(s);let m=y?h:p,S=y?p:h;const x=y?r.type:s.type,T=y?s.type:r.type,v=y?s.key:r.key;if(e(a)&&m===d){const t=a.getNextSibling();e(t)&&(h=0,m=0,a=t)}if(1===l.length){if(e(a)&&a.canHaveFormat()){if(m=\"element\"===x?0:h>p?p:h,S=\"element\"===T?d:h>p?h:p,m===S)return;if(f(a)||0===m&&S===d)t(a),a.select(m,S);else{const e=a.splitText(m,S),n=0===m?e[0]:e[1];t(n),n.select(0,S-m)}}}else{if(e(a)&&m<a.getTextContentSize()&&a.canHaveFormat()&&(0===m||f(a)||(a=a.splitText(m)[1],m=0,y?r.set(a.getKey(),m,\"text\"):s.set(a.getKey(),m,\"text\")),t(a)),e(g)&&g.canHaveFormat()){const e=g.getTextContent().length;g.__key!==v&&0!==S&&(S=e),S===e||f(g)||([g]=g.splitText(S)),0===S&&\"element\"!==T||t(g)}for(let n=1;n<u;n++){const o=l[n],r=o.getKey();e(o)&&o.canHaveFormat()&&r!==a.getKey()&&r!==g.getKey()&&!o.isToken()&&t(o)}}}function _(e,t){if(null===e)return;const l=e.getStartEndPoints(),o=l?l[0]:null;if(null!==o&&\"root\"===o.key){const e=t(),n=u(),l=n.getFirstChild();return void(l?l.replace(e,!0):n.append(e))}const r=e.getNodes(),s=null!==o&&function(e,t){let n=e;for(;null!==n&&null!==n.getParent()&&!t(n);)n=n.getParentOrThrow();return t(n)?n:null}(o.getNode(),X);s&&-1===r.indexOf(s)&&r.push(s);for(let e=0;e<r.length;e++){const l=r[e];if(!X(l))continue;n(l)||x(178);const o=t();o.setFormat(l.getFormatType()),o.setIndent(l.getIndent()),l.replace(o,!0)}}function A(e){return e.getNode().isAttached()}function z(e){let t=e;for(;null!==t&&!a(t);){const e=t.getLatest(),n=t.getParent();0===e.getChildrenSize()&&t.remove(!0),t=n}}function $(e,t,n=null){const l=e.getStartEndPoints(),o=l?l[0]:null,r=e.getNodes(),s=r.length;if(null!==o&&(0===s||1===s&&\"element\"===o.type&&0===o.getNode().getChildrenSize())){const e=\"text\"===o.type?o.getNode().getParentOrThrow():o.getNode(),l=e.getChildren();let r=t();return r.setFormat(e.getFormatType()),r.setIndent(e.getIndent()),l.forEach((e=>r.append(e))),n&&(r=n.append(r)),void e.replace(r)}let i=null,c=[];for(let l=0;l<s;l++){const o=r[l];a(o)?(L(e,c,c.length,t,n),c=[],i=o):null===i||null!==i&&g(o,i)?c.push(o):(L(e,c,c.length,t,n),c=[o])}L(e,c,c.length,t,n)}function L(e,t,l,o,s=null){if(0===t.length)return;const c=t[0],f=new Map,u=[];let g=n(c)?c:c.getParentOrThrow();g.isInline()&&(g=g.getParentOrThrow());let h=!1;for(;null!==g;){const e=g.getPreviousSibling();if(null!==e){g=e,h=!0;break}if(g=g.getParentOrThrow(),a(g))break}const y=new Set;for(let e=0;e<l;e++){const l=t[e];n(l)&&0===l.getChildrenSize()&&y.add(l.getKey())}const m=new Set;for(let e=0;e<l;e++){const l=t[e];let r=l.getParent();if(null!==r&&r.isInline()&&(r=r.getParent()),null!==r&&d(l)&&!m.has(l.getKey())){const e=r.getKey();if(void 0===f.get(e)){const t=o();t.setFormat(r.getFormatType()),t.setIndent(r.getIndent()),u.push(t),f.set(e,t),r.getChildren().forEach((e=>{t.append(e),m.add(e.getKey()),n(e)&&e.getChildrenKeys().forEach((e=>m.add(e)))})),z(r)}}else if(y.has(l.getKey())){n(l)||x(179);const e=o();e.setFormat(l.getFormatType()),e.setIndent(l.getIndent()),u.push(e),l.remove(!0)}}if(null!==s)for(let e=0;e<u.length;e++){const t=u[e];s.append(t)}let S=null;if(a(g))if(h)if(null!==s)g.insertAfter(s);else for(let e=u.length-1;e>=0;e--){const t=u[e];g.insertAfter(t)}else{const e=g.getFirstChild();if(n(e)&&(g=e),null===e)if(s)g.append(s);else for(let e=0;e<u.length;e++){const t=u[e];g.append(t),S=t}else if(null!==s)e.insertBefore(s);else for(let t=0;t<u.length;t++){const n=u[t];e.insertBefore(n),S=n}}else if(s)g.insertAfter(s);else for(let e=u.length-1;e>=0;e--){const t=u[e];g.insertAfter(t),S=t}const T=r();i(T)&&A(T.anchor)&&A(T.focus)?p(T.clone()):null!==S?S.selectEnd():e.dirty=!0}function M(e,t){const l=h(e.focus,t);return y(l)&&!l.isIsolated()||n(l)&&!l.isInline()&&!l.canBeEmpty()}function D(e,t,n,l){e.modify(t?\"extend\":\"move\",n,l)}function H(e){const t=e.anchor.getNode();return\"rtl\"===(l(t)?t:t.getParentOrThrow()).getDirection()}function j(e,t,n){const l=H(e);D(e,t,n?!l:l,\"character\")}function U(e,t,n){const l=E(e.getStyle());return null!==l&&l[t]||n}function W(t,n,l=\"\"){let o=null;const r=t.getNodes(),s=t.anchor,c=t.focus,f=t.isBackward(),u=f?c.offset:s.offset,a=f?c.getNode():s.getNode();if(i(t)&&t.isCollapsed()&&\"\"!==t.style){const e=E(t.style);if(null!==e&&n in e)return e[n]}for(let t=0;t<r.length;t++){const s=r[t];if((0===t||0!==u||!s.is(a))&&e(s)){const e=U(s,n,l);if(null===o)o=e;else if(o!==e){o=\"\";break}}}return null===o?l:o}function X(t){if(y(t))return!1;if(!n(t)||a(t))return!1;const l=t.getFirstChild(),o=null===l||m(l)||e(l)||l.isInline();return!t.isInline()&&!1!==t.canBeEmpty()&&o}const q=B;export{k as $addNodeStyle,R as $forEachSelectedTextNode,W as $getSelectionStyleValueForProperty,K as $isAtNodeEnd,H as $isParentElementRTL,D as $moveCaretSelection,j as $moveCharacter,b as $patchStyleText,_ as $setBlocksType,M as $shouldOverrideDefaultCharacterSelection,I as $sliceSelectedTextNodeContent,B as $trimTextContentFromAnchor,$ as $wrapNodes,N as createDOMRange,P as createRectsFromDOMRange,F as getCSSFromStyleObject,E as getStyleObjectFromCSS,q as trimTextContentFromAnchor};\n"],"names":["S","e","x","T","w","n","I","l","o","r","s","i","c","f","u","t","a","g","k","_","X","M","h","y","D","H","j","m"],"mappings":";AAQ+b,SAASA,EAAEC,GAAE;AAAC,SAAOA,KAAGA,EAAE,cAAY,OAAO,UAAU,eAAe,KAAKA,GAAE,SAAS,IAAEA,EAAE,UAAQA;AAAC;AAAC,IAAIC,IAAEF,EAAG,SAASC,GAAE;AAAC,QAAM,IAAE,IAAI;AAAgB,IAAE,OAAO,QAAOA,CAAC;AAAE,WAAQ,IAAE,GAAE,IAAE,UAAU,QAAO,IAAI,GAAE,OAAO,KAAI,UAAU,CAAC,CAAC;AAAE,QAAM,MAAM,2BAA2BA,CAAC,0CAA0C,CAAC,gHAAgH;AAAC,CAAG;AAAC,MAAME,IAAE,oBAAI;AAAoqC,SAASC,EAAEH,GAAE;AAAC,QAAM,IAAE,CAAE;AAAC,MAAG,CAACA,EAAE,QAAO;AAAE,QAAMI,I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