@bigbinary/neeto-editor 1.25.22 → 1.25.24
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/index.cjs.js +8527 -8078
- package/index.cjs.js.map +1 -1
- package/index.js +1908 -1459
- package/index.js.map +1 -1
- package/package.json +2 -2
package/index.js
CHANGED
|
@@ -4,7 +4,7 @@ import * as React$6 from 'react';
|
|
|
4
4
|
import React__default, { useContext, useState, useRef as useRef$1, useEffect as useEffect$1, useImperativeHandle, createContext, forwardRef as forwardRef$1, cloneElement, useLayoutEffect, Fragment as Fragment$1 } from 'react';
|
|
5
5
|
import { renderToString } from 'react-dom/server';
|
|
6
6
|
import { Toastr, Dropdown as Dropdown$1, Tooltip, Input, Button as Button$1, Typography, Alert, Modal, Spinner, Avatar, Tab, Label } from '@bigbinary/neetoui';
|
|
7
|
-
import { LeftAlign, CenterAlign, RightAlign, Delete, Close, MenuVertical, MenuHorizontal, Paragraph as Paragraph$1, TextH1, TextH2, Text as Text$2, ListNumber, ListDot, ImageUpload, Video, Blockquote as Blockquote$1,
|
|
7
|
+
import { LeftAlign, CenterAlign, RightAlign, Delete, Close, MenuVertical, MenuHorizontal, Paragraph as Paragraph$1, TextH1, TextH2, Text as Text$2, ListNumber, ListDot, ImageUpload, Video, Blockquote as Blockquote$1, CodeBlock as CodeBlock$2, Smiley, Minus, MediaVideo, Notes, NeetoChangelog, TextBold, TextItalic, Underline as Underline$1, TextCross, Highlight as Highlight$1, Quote, Code as Code$1, Undo, Redo, Check, Email as Email$1, Link as Link$1, Braces, Settings, File as File$2 } from '@bigbinary/neeto-icons';
|
|
8
8
|
import axios from 'axios';
|
|
9
9
|
import ReactDOM, { flushSync, createPortal } from 'react-dom';
|
|
10
10
|
import { useFuncDebounce } from '@bigbinary/neeto-commons-frontend/react-utils';
|
|
@@ -24765,9 +24765,9 @@ function _toArray(arr) {
|
|
|
24765
24765
|
return _arrayWithHoles(arr) || _iterableToArray$1(arr) || _unsupportedIterableToArray$1(arr) || _nonIterableRest();
|
|
24766
24766
|
}
|
|
24767
24767
|
|
|
24768
|
-
function ownKeys$
|
|
24768
|
+
function ownKeys$h(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }
|
|
24769
24769
|
|
|
24770
|
-
function _objectSpread$
|
|
24770
|
+
function _objectSpread$h(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys$h(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys$h(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
|
|
24771
24771
|
|
|
24772
24772
|
var consoleLogger = {
|
|
24773
24773
|
type: 'logger',
|
|
@@ -24854,7 +24854,7 @@ var Logger = function () {
|
|
|
24854
24854
|
}, {
|
|
24855
24855
|
key: "create",
|
|
24856
24856
|
value: function create(moduleName) {
|
|
24857
|
-
return new Logger(this.logger, _objectSpread$
|
|
24857
|
+
return new Logger(this.logger, _objectSpread$h(_objectSpread$h({}, {
|
|
24858
24858
|
prefix: "".concat(this.prefix, ":").concat(moduleName, ":")
|
|
24859
24859
|
}), this.options));
|
|
24860
24860
|
}
|
|
@@ -27558,9 +27558,9 @@ function _objectWithoutProperties$1(source, excluded) {
|
|
|
27558
27558
|
return target;
|
|
27559
27559
|
}
|
|
27560
27560
|
|
|
27561
|
-
function ownKeys$
|
|
27561
|
+
function ownKeys$g(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }
|
|
27562
27562
|
|
|
27563
|
-
function _objectSpread$
|
|
27563
|
+
function _objectSpread$g(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys$g(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys$g(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
|
|
27564
27564
|
var defaultOptions$1 = {
|
|
27565
27565
|
bindI18n: 'languageChanged',
|
|
27566
27566
|
bindI18nStore: '',
|
|
@@ -27574,7 +27574,7 @@ var i18nInstance;
|
|
|
27574
27574
|
var I18nContext = React__default.createContext();
|
|
27575
27575
|
function setDefaults() {
|
|
27576
27576
|
var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
27577
|
-
defaultOptions$1 = _objectSpread$
|
|
27577
|
+
defaultOptions$1 = _objectSpread$g(_objectSpread$g({}, defaultOptions$1), options);
|
|
27578
27578
|
}
|
|
27579
27579
|
function getDefaults() {
|
|
27580
27580
|
return defaultOptions$1;
|
|
@@ -27730,9 +27730,9 @@ function _slicedToArray(arr, i) {
|
|
|
27730
27730
|
return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray$1(arr, i) || _nonIterableRest();
|
|
27731
27731
|
}
|
|
27732
27732
|
|
|
27733
|
-
function ownKeys$
|
|
27733
|
+
function ownKeys$f(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }
|
|
27734
27734
|
|
|
27735
|
-
function _objectSpread$
|
|
27735
|
+
function _objectSpread$f(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys$f(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys$f(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
|
|
27736
27736
|
function useTranslation(ns) {
|
|
27737
27737
|
var props = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
27738
27738
|
var i18nFromProps = props.i18n;
|
|
@@ -27760,7 +27760,7 @@ function useTranslation(ns) {
|
|
|
27760
27760
|
|
|
27761
27761
|
if (i18n.options.react && i18n.options.react.wait !== undefined) warnOnce('It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.');
|
|
27762
27762
|
|
|
27763
|
-
var i18nOptions = _objectSpread$
|
|
27763
|
+
var i18nOptions = _objectSpread$f(_objectSpread$f(_objectSpread$f({}, getDefaults()), i18n.options.react), props);
|
|
27764
27764
|
|
|
27765
27765
|
var useSuspense = i18nOptions.useSuspense,
|
|
27766
27766
|
keyPrefix = i18nOptions.keyPrefix;
|
|
@@ -40665,13 +40665,13 @@ function cov_vqdq5apbi() {
|
|
|
40665
40665
|
return actualCoverage;
|
|
40666
40666
|
}
|
|
40667
40667
|
cov_vqdq5apbi();
|
|
40668
|
-
function ownKeys$
|
|
40669
|
-
function _objectSpread$
|
|
40668
|
+
function ownKeys$e(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
40669
|
+
function _objectSpread$e(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$e(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$e(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
40670
40670
|
cov_vqdq5apbi().s[0]++;
|
|
40671
40671
|
var generate = function generate(url, payload, config) {
|
|
40672
40672
|
cov_vqdq5apbi().f[0]++;
|
|
40673
40673
|
cov_vqdq5apbi().s[1]++;
|
|
40674
|
-
return axios.post(url, payload, _objectSpread$
|
|
40674
|
+
return axios.post(url, payload, _objectSpread$e(_objectSpread$e({}, config), {}, {
|
|
40675
40675
|
transformRequestCase: false,
|
|
40676
40676
|
transformResponseCase: false
|
|
40677
40677
|
}));
|
|
@@ -40680,7 +40680,7 @@ cov_vqdq5apbi().s[2]++;
|
|
|
40680
40680
|
var create$1 = function create(url, file, config) {
|
|
40681
40681
|
cov_vqdq5apbi().f[1]++;
|
|
40682
40682
|
cov_vqdq5apbi().s[3]++;
|
|
40683
|
-
return axios.put(url, file, _objectSpread$
|
|
40683
|
+
return axios.put(url, file, _objectSpread$e(_objectSpread$e({}, config), {}, {
|
|
40684
40684
|
transformRequestCase: false,
|
|
40685
40685
|
transformResponseCase: false,
|
|
40686
40686
|
showToastr: false
|
|
@@ -50137,8 +50137,8 @@ function cov_r3t02fgv5() {
|
|
|
50137
50137
|
return actualCoverage;
|
|
50138
50138
|
}
|
|
50139
50139
|
cov_r3t02fgv5();
|
|
50140
|
-
function ownKeys$
|
|
50141
|
-
function _objectSpread$
|
|
50140
|
+
function ownKeys$d(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
50141
|
+
function _objectSpread$d(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$d(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$d(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
50142
50142
|
cov_r3t02fgv5().s[0]++;
|
|
50143
50143
|
var useUppyUploader = function useUppyUploader(_ref) {
|
|
50144
50144
|
var endpoint = _ref.endpoint,
|
|
@@ -50175,9 +50175,9 @@ var useUppyUploader = function useUppyUploader(_ref) {
|
|
|
50175
50175
|
var uppy = (cov_r3t02fgv5().s[9]++, useUppy(function () {
|
|
50176
50176
|
cov_r3t02fgv5().f[2]++;
|
|
50177
50177
|
cov_r3t02fgv5().s[10]++;
|
|
50178
|
-
return new Uppy(_objectSpread$
|
|
50178
|
+
return new Uppy(_objectSpread$d(_objectSpread$d({}, uppyConfig), {}, {
|
|
50179
50179
|
onBeforeFileAdded: onBeforeFileAdded
|
|
50180
|
-
})).use(ActiveStorageUpload, _objectSpread$
|
|
50180
|
+
})).use(ActiveStorageUpload, _objectSpread$d({
|
|
50181
50181
|
directUploadUrl: endpoint
|
|
50182
50182
|
}, UPPY_UPLOAD_CONFIG)).on("upload", function () {
|
|
50183
50183
|
cov_r3t02fgv5().f[3]++;
|
|
@@ -55342,8 +55342,8 @@ function cov_zjfqfoy4d() {
|
|
|
55342
55342
|
return actualCoverage;
|
|
55343
55343
|
}
|
|
55344
55344
|
cov_zjfqfoy4d();
|
|
55345
|
-
function ownKeys$
|
|
55346
|
-
function _objectSpread$
|
|
55345
|
+
function ownKeys$c(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
55346
|
+
function _objectSpread$c(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$c(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$c(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
55347
55347
|
cov_zjfqfoy4d().s[0]++;
|
|
55348
55348
|
var Attachments = function Attachments(_ref, ref) {
|
|
55349
55349
|
var _config$allowedFileTy;
|
|
@@ -55523,7 +55523,7 @@ var Attachments = function Attachments(_ref, ref) {
|
|
|
55523
55523
|
return prevState.map(function (uploadingFile) {
|
|
55524
55524
|
cov_zjfqfoy4d().f[10]++;
|
|
55525
55525
|
cov_zjfqfoy4d().s[38]++;
|
|
55526
|
-
return _objectSpread$
|
|
55526
|
+
return _objectSpread$c(_objectSpread$c({}, uploadingFile), {}, {
|
|
55527
55527
|
progress: uploadingFile.filename !== file.name ? (cov_zjfqfoy4d().b[14][0]++, uploadingFile.progress) : (cov_zjfqfoy4d().b[14][1]++, progress.progress)
|
|
55528
55528
|
});
|
|
55529
55529
|
});
|
|
@@ -80718,193 +80718,917 @@ var CustomCommands = Extension.create({
|
|
|
80718
80718
|
}
|
|
80719
80719
|
});
|
|
80720
80720
|
|
|
80721
|
-
function
|
|
80722
|
-
|
|
80723
|
-
|
|
80721
|
+
var __extends$1 = (undefined && undefined.__extends) || (function () {
|
|
80722
|
+
var extendStatics = function (d, b) {
|
|
80723
|
+
extendStatics = Object.setPrototypeOf ||
|
|
80724
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
80725
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
80726
|
+
return extendStatics(d, b);
|
|
80727
|
+
};
|
|
80728
|
+
return function (d, b) {
|
|
80729
|
+
extendStatics(d, b);
|
|
80730
|
+
function __() { this.constructor = d; }
|
|
80731
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
80732
|
+
};
|
|
80733
|
+
})();
|
|
80734
|
+
var __assign$1 = (undefined && undefined.__assign) || function () {
|
|
80735
|
+
__assign$1 = Object.assign || function(t) {
|
|
80736
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
80737
|
+
s = arguments[i];
|
|
80738
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
80739
|
+
t[p] = s[p];
|
|
80740
|
+
}
|
|
80741
|
+
return t;
|
|
80742
|
+
};
|
|
80743
|
+
return __assign$1.apply(this, arguments);
|
|
80744
|
+
};
|
|
80745
|
+
var rowSizeBase = {
|
|
80746
|
+
width: '100%',
|
|
80747
|
+
height: '10px',
|
|
80748
|
+
top: '0px',
|
|
80749
|
+
left: '0px',
|
|
80750
|
+
cursor: 'row-resize',
|
|
80751
|
+
};
|
|
80752
|
+
var colSizeBase = {
|
|
80753
|
+
width: '10px',
|
|
80754
|
+
height: '100%',
|
|
80755
|
+
top: '0px',
|
|
80756
|
+
left: '0px',
|
|
80757
|
+
cursor: 'col-resize',
|
|
80758
|
+
};
|
|
80759
|
+
var edgeBase = {
|
|
80760
|
+
width: '20px',
|
|
80761
|
+
height: '20px',
|
|
80762
|
+
position: 'absolute',
|
|
80763
|
+
};
|
|
80764
|
+
var styles = {
|
|
80765
|
+
top: __assign$1(__assign$1({}, rowSizeBase), { top: '-5px' }),
|
|
80766
|
+
right: __assign$1(__assign$1({}, colSizeBase), { left: undefined, right: '-5px' }),
|
|
80767
|
+
bottom: __assign$1(__assign$1({}, rowSizeBase), { top: undefined, bottom: '-5px' }),
|
|
80768
|
+
left: __assign$1(__assign$1({}, colSizeBase), { left: '-5px' }),
|
|
80769
|
+
topRight: __assign$1(__assign$1({}, edgeBase), { right: '-10px', top: '-10px', cursor: 'ne-resize' }),
|
|
80770
|
+
bottomRight: __assign$1(__assign$1({}, edgeBase), { right: '-10px', bottom: '-10px', cursor: 'se-resize' }),
|
|
80771
|
+
bottomLeft: __assign$1(__assign$1({}, edgeBase), { left: '-10px', bottom: '-10px', cursor: 'sw-resize' }),
|
|
80772
|
+
topLeft: __assign$1(__assign$1({}, edgeBase), { left: '-10px', top: '-10px', cursor: 'nw-resize' }),
|
|
80773
|
+
};
|
|
80774
|
+
var Resizer = /** @class */ (function (_super) {
|
|
80775
|
+
__extends$1(Resizer, _super);
|
|
80776
|
+
function Resizer() {
|
|
80777
|
+
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
80778
|
+
_this.onMouseDown = function (e) {
|
|
80779
|
+
_this.props.onResizeStart(e, _this.props.direction);
|
|
80780
|
+
};
|
|
80781
|
+
_this.onTouchStart = function (e) {
|
|
80782
|
+
_this.props.onResizeStart(e, _this.props.direction);
|
|
80783
|
+
};
|
|
80784
|
+
return _this;
|
|
80785
|
+
}
|
|
80786
|
+
Resizer.prototype.render = function () {
|
|
80787
|
+
return (React$6.createElement("div", { className: this.props.className || '', style: __assign$1(__assign$1({ position: 'absolute', userSelect: 'none' }, styles[this.props.direction]), (this.props.replaceStyles || {})), onMouseDown: this.onMouseDown, onTouchStart: this.onTouchStart }, this.props.children));
|
|
80788
|
+
};
|
|
80789
|
+
return Resizer;
|
|
80790
|
+
}(React$6.PureComponent));
|
|
80791
|
+
|
|
80792
|
+
var __extends = (undefined && undefined.__extends) || (function () {
|
|
80793
|
+
var extendStatics = function (d, b) {
|
|
80794
|
+
extendStatics = Object.setPrototypeOf ||
|
|
80795
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
80796
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
80797
|
+
return extendStatics(d, b);
|
|
80798
|
+
};
|
|
80799
|
+
return function (d, b) {
|
|
80800
|
+
extendStatics(d, b);
|
|
80801
|
+
function __() { this.constructor = d; }
|
|
80802
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
80803
|
+
};
|
|
80804
|
+
})();
|
|
80805
|
+
var __assign = (undefined && undefined.__assign) || function () {
|
|
80806
|
+
__assign = Object.assign || function(t) {
|
|
80807
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
80808
|
+
s = arguments[i];
|
|
80809
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
80810
|
+
t[p] = s[p];
|
|
80811
|
+
}
|
|
80812
|
+
return t;
|
|
80813
|
+
};
|
|
80814
|
+
return __assign.apply(this, arguments);
|
|
80815
|
+
};
|
|
80816
|
+
var DEFAULT_SIZE = {
|
|
80817
|
+
width: 'auto',
|
|
80818
|
+
height: 'auto',
|
|
80819
|
+
};
|
|
80820
|
+
var clamp = function (n, min, max) { return Math.max(Math.min(n, max), min); };
|
|
80821
|
+
var snap = function (n, size) { return Math.round(n / size) * size; };
|
|
80822
|
+
var hasDirection = function (dir, target) {
|
|
80823
|
+
return new RegExp(dir, 'i').test(target);
|
|
80824
|
+
};
|
|
80825
|
+
// INFO: In case of window is a Proxy and does not porxy Events correctly, use isTouchEvent & isMouseEvent to distinguish event type instead of `instanceof`.
|
|
80826
|
+
var isTouchEvent = function (event) {
|
|
80827
|
+
return Boolean(event.touches && event.touches.length);
|
|
80828
|
+
};
|
|
80829
|
+
var isMouseEvent = function (event) {
|
|
80830
|
+
return Boolean((event.clientX || event.clientX === 0) &&
|
|
80831
|
+
(event.clientY || event.clientY === 0));
|
|
80832
|
+
};
|
|
80833
|
+
var findClosestSnap = function (n, snapArray, snapGap) {
|
|
80834
|
+
if (snapGap === void 0) { snapGap = 0; }
|
|
80835
|
+
var closestGapIndex = snapArray.reduce(function (prev, curr, index) { return (Math.abs(curr - n) < Math.abs(snapArray[prev] - n) ? index : prev); }, 0);
|
|
80836
|
+
var gap = Math.abs(snapArray[closestGapIndex] - n);
|
|
80837
|
+
return snapGap === 0 || gap < snapGap ? snapArray[closestGapIndex] : n;
|
|
80838
|
+
};
|
|
80839
|
+
var getStringSize = function (n) {
|
|
80840
|
+
n = n.toString();
|
|
80841
|
+
if (n === 'auto') {
|
|
80842
|
+
return n;
|
|
80843
|
+
}
|
|
80844
|
+
if (n.endsWith('px')) {
|
|
80845
|
+
return n;
|
|
80846
|
+
}
|
|
80847
|
+
if (n.endsWith('%')) {
|
|
80848
|
+
return n;
|
|
80849
|
+
}
|
|
80850
|
+
if (n.endsWith('vh')) {
|
|
80851
|
+
return n;
|
|
80852
|
+
}
|
|
80853
|
+
if (n.endsWith('vw')) {
|
|
80854
|
+
return n;
|
|
80855
|
+
}
|
|
80856
|
+
if (n.endsWith('vmax')) {
|
|
80857
|
+
return n;
|
|
80858
|
+
}
|
|
80859
|
+
if (n.endsWith('vmin')) {
|
|
80860
|
+
return n;
|
|
80861
|
+
}
|
|
80862
|
+
return n + "px";
|
|
80863
|
+
};
|
|
80864
|
+
var getPixelSize = function (size, parentSize, innerWidth, innerHeight) {
|
|
80865
|
+
if (size && typeof size === 'string') {
|
|
80866
|
+
if (size.endsWith('px')) {
|
|
80867
|
+
return Number(size.replace('px', ''));
|
|
80868
|
+
}
|
|
80869
|
+
if (size.endsWith('%')) {
|
|
80870
|
+
var ratio = Number(size.replace('%', '')) / 100;
|
|
80871
|
+
return parentSize * ratio;
|
|
80872
|
+
}
|
|
80873
|
+
if (size.endsWith('vw')) {
|
|
80874
|
+
var ratio = Number(size.replace('vw', '')) / 100;
|
|
80875
|
+
return innerWidth * ratio;
|
|
80876
|
+
}
|
|
80877
|
+
if (size.endsWith('vh')) {
|
|
80878
|
+
var ratio = Number(size.replace('vh', '')) / 100;
|
|
80879
|
+
return innerHeight * ratio;
|
|
80880
|
+
}
|
|
80881
|
+
}
|
|
80882
|
+
return size;
|
|
80883
|
+
};
|
|
80884
|
+
var calculateNewMax = function (parentSize, innerWidth, innerHeight, maxWidth, maxHeight, minWidth, minHeight) {
|
|
80885
|
+
maxWidth = getPixelSize(maxWidth, parentSize.width, innerWidth, innerHeight);
|
|
80886
|
+
maxHeight = getPixelSize(maxHeight, parentSize.height, innerWidth, innerHeight);
|
|
80887
|
+
minWidth = getPixelSize(minWidth, parentSize.width, innerWidth, innerHeight);
|
|
80888
|
+
minHeight = getPixelSize(minHeight, parentSize.height, innerWidth, innerHeight);
|
|
80889
|
+
return {
|
|
80890
|
+
maxWidth: typeof maxWidth === 'undefined' ? undefined : Number(maxWidth),
|
|
80891
|
+
maxHeight: typeof maxHeight === 'undefined' ? undefined : Number(maxHeight),
|
|
80892
|
+
minWidth: typeof minWidth === 'undefined' ? undefined : Number(minWidth),
|
|
80893
|
+
minHeight: typeof minHeight === 'undefined' ? undefined : Number(minHeight),
|
|
80894
|
+
};
|
|
80895
|
+
};
|
|
80896
|
+
var definedProps = [
|
|
80897
|
+
'as',
|
|
80898
|
+
'style',
|
|
80899
|
+
'className',
|
|
80900
|
+
'grid',
|
|
80901
|
+
'snap',
|
|
80902
|
+
'bounds',
|
|
80903
|
+
'boundsByDirection',
|
|
80904
|
+
'size',
|
|
80905
|
+
'defaultSize',
|
|
80906
|
+
'minWidth',
|
|
80907
|
+
'minHeight',
|
|
80908
|
+
'maxWidth',
|
|
80909
|
+
'maxHeight',
|
|
80910
|
+
'lockAspectRatio',
|
|
80911
|
+
'lockAspectRatioExtraWidth',
|
|
80912
|
+
'lockAspectRatioExtraHeight',
|
|
80913
|
+
'enable',
|
|
80914
|
+
'handleStyles',
|
|
80915
|
+
'handleClasses',
|
|
80916
|
+
'handleWrapperStyle',
|
|
80917
|
+
'handleWrapperClass',
|
|
80918
|
+
'children',
|
|
80919
|
+
'onResizeStart',
|
|
80920
|
+
'onResize',
|
|
80921
|
+
'onResizeStop',
|
|
80922
|
+
'handleComponent',
|
|
80923
|
+
'scale',
|
|
80924
|
+
'resizeRatio',
|
|
80925
|
+
'snapGap',
|
|
80926
|
+
];
|
|
80927
|
+
// HACK: This class is used to calculate % size.
|
|
80928
|
+
var baseClassName = '__resizable_base__';
|
|
80929
|
+
var Resizable = /** @class */ (function (_super) {
|
|
80930
|
+
__extends(Resizable, _super);
|
|
80931
|
+
function Resizable(props) {
|
|
80932
|
+
var _this = _super.call(this, props) || this;
|
|
80933
|
+
_this.ratio = 1;
|
|
80934
|
+
_this.resizable = null;
|
|
80935
|
+
// For parent boundary
|
|
80936
|
+
_this.parentLeft = 0;
|
|
80937
|
+
_this.parentTop = 0;
|
|
80938
|
+
// For boundary
|
|
80939
|
+
_this.resizableLeft = 0;
|
|
80940
|
+
_this.resizableRight = 0;
|
|
80941
|
+
_this.resizableTop = 0;
|
|
80942
|
+
_this.resizableBottom = 0;
|
|
80943
|
+
// For target boundary
|
|
80944
|
+
_this.targetLeft = 0;
|
|
80945
|
+
_this.targetTop = 0;
|
|
80946
|
+
_this.appendBase = function () {
|
|
80947
|
+
if (!_this.resizable || !_this.window) {
|
|
80948
|
+
return null;
|
|
80949
|
+
}
|
|
80950
|
+
var parent = _this.parentNode;
|
|
80951
|
+
if (!parent) {
|
|
80952
|
+
return null;
|
|
80953
|
+
}
|
|
80954
|
+
var element = _this.window.document.createElement('div');
|
|
80955
|
+
element.style.width = '100%';
|
|
80956
|
+
element.style.height = '100%';
|
|
80957
|
+
element.style.position = 'absolute';
|
|
80958
|
+
element.style.transform = 'scale(0, 0)';
|
|
80959
|
+
element.style.left = '0';
|
|
80960
|
+
element.style.flex = '0 0 100%';
|
|
80961
|
+
if (element.classList) {
|
|
80962
|
+
element.classList.add(baseClassName);
|
|
80963
|
+
}
|
|
80964
|
+
else {
|
|
80965
|
+
element.className += baseClassName;
|
|
80966
|
+
}
|
|
80967
|
+
parent.appendChild(element);
|
|
80968
|
+
return element;
|
|
80969
|
+
};
|
|
80970
|
+
_this.removeBase = function (base) {
|
|
80971
|
+
var parent = _this.parentNode;
|
|
80972
|
+
if (!parent) {
|
|
80973
|
+
return;
|
|
80974
|
+
}
|
|
80975
|
+
parent.removeChild(base);
|
|
80976
|
+
};
|
|
80977
|
+
_this.ref = function (c) {
|
|
80978
|
+
if (c) {
|
|
80979
|
+
_this.resizable = c;
|
|
80980
|
+
}
|
|
80981
|
+
};
|
|
80982
|
+
_this.state = {
|
|
80983
|
+
isResizing: false,
|
|
80984
|
+
width: typeof (_this.propsSize && _this.propsSize.width) === 'undefined'
|
|
80985
|
+
? 'auto'
|
|
80986
|
+
: _this.propsSize && _this.propsSize.width,
|
|
80987
|
+
height: typeof (_this.propsSize && _this.propsSize.height) === 'undefined'
|
|
80988
|
+
? 'auto'
|
|
80989
|
+
: _this.propsSize && _this.propsSize.height,
|
|
80990
|
+
direction: 'right',
|
|
80991
|
+
original: {
|
|
80992
|
+
x: 0,
|
|
80993
|
+
y: 0,
|
|
80994
|
+
width: 0,
|
|
80995
|
+
height: 0,
|
|
80996
|
+
},
|
|
80997
|
+
backgroundStyle: {
|
|
80998
|
+
height: '100%',
|
|
80999
|
+
width: '100%',
|
|
81000
|
+
backgroundColor: 'rgba(0,0,0,0)',
|
|
81001
|
+
cursor: 'auto',
|
|
81002
|
+
opacity: 0,
|
|
81003
|
+
position: 'fixed',
|
|
81004
|
+
zIndex: 9999,
|
|
81005
|
+
top: '0',
|
|
81006
|
+
left: '0',
|
|
81007
|
+
bottom: '0',
|
|
81008
|
+
right: '0',
|
|
81009
|
+
},
|
|
81010
|
+
flexBasis: undefined,
|
|
81011
|
+
};
|
|
81012
|
+
_this.onResizeStart = _this.onResizeStart.bind(_this);
|
|
81013
|
+
_this.onMouseMove = _this.onMouseMove.bind(_this);
|
|
81014
|
+
_this.onMouseUp = _this.onMouseUp.bind(_this);
|
|
81015
|
+
return _this;
|
|
81016
|
+
}
|
|
81017
|
+
Object.defineProperty(Resizable.prototype, "parentNode", {
|
|
81018
|
+
get: function () {
|
|
81019
|
+
if (!this.resizable) {
|
|
81020
|
+
return null;
|
|
81021
|
+
}
|
|
81022
|
+
return this.resizable.parentNode;
|
|
81023
|
+
},
|
|
81024
|
+
enumerable: false,
|
|
81025
|
+
configurable: true
|
|
81026
|
+
});
|
|
81027
|
+
Object.defineProperty(Resizable.prototype, "window", {
|
|
81028
|
+
get: function () {
|
|
81029
|
+
if (!this.resizable) {
|
|
81030
|
+
return null;
|
|
81031
|
+
}
|
|
81032
|
+
if (!this.resizable.ownerDocument) {
|
|
81033
|
+
return null;
|
|
81034
|
+
}
|
|
81035
|
+
return this.resizable.ownerDocument.defaultView;
|
|
81036
|
+
},
|
|
81037
|
+
enumerable: false,
|
|
81038
|
+
configurable: true
|
|
81039
|
+
});
|
|
81040
|
+
Object.defineProperty(Resizable.prototype, "propsSize", {
|
|
81041
|
+
get: function () {
|
|
81042
|
+
return this.props.size || this.props.defaultSize || DEFAULT_SIZE;
|
|
81043
|
+
},
|
|
81044
|
+
enumerable: false,
|
|
81045
|
+
configurable: true
|
|
81046
|
+
});
|
|
81047
|
+
Object.defineProperty(Resizable.prototype, "size", {
|
|
81048
|
+
get: function () {
|
|
81049
|
+
var width = 0;
|
|
81050
|
+
var height = 0;
|
|
81051
|
+
if (this.resizable && this.window) {
|
|
81052
|
+
var orgWidth = this.resizable.offsetWidth;
|
|
81053
|
+
var orgHeight = this.resizable.offsetHeight;
|
|
81054
|
+
// HACK: Set position `relative` to get parent size.
|
|
81055
|
+
// This is because when re-resizable set `absolute`, I can not get base width correctly.
|
|
81056
|
+
var orgPosition = this.resizable.style.position;
|
|
81057
|
+
if (orgPosition !== 'relative') {
|
|
81058
|
+
this.resizable.style.position = 'relative';
|
|
81059
|
+
}
|
|
81060
|
+
// INFO: Use original width or height if set auto.
|
|
81061
|
+
width = this.resizable.style.width !== 'auto' ? this.resizable.offsetWidth : orgWidth;
|
|
81062
|
+
height = this.resizable.style.height !== 'auto' ? this.resizable.offsetHeight : orgHeight;
|
|
81063
|
+
// Restore original position
|
|
81064
|
+
this.resizable.style.position = orgPosition;
|
|
81065
|
+
}
|
|
81066
|
+
return { width: width, height: height };
|
|
81067
|
+
},
|
|
81068
|
+
enumerable: false,
|
|
81069
|
+
configurable: true
|
|
81070
|
+
});
|
|
81071
|
+
Object.defineProperty(Resizable.prototype, "sizeStyle", {
|
|
81072
|
+
get: function () {
|
|
81073
|
+
var _this = this;
|
|
81074
|
+
var size = this.props.size;
|
|
81075
|
+
var getSize = function (key) {
|
|
81076
|
+
if (typeof _this.state[key] === 'undefined' || _this.state[key] === 'auto') {
|
|
81077
|
+
return 'auto';
|
|
81078
|
+
}
|
|
81079
|
+
if (_this.propsSize && _this.propsSize[key] && _this.propsSize[key].toString().endsWith('%')) {
|
|
81080
|
+
if (_this.state[key].toString().endsWith('%')) {
|
|
81081
|
+
return _this.state[key].toString();
|
|
81082
|
+
}
|
|
81083
|
+
var parentSize = _this.getParentSize();
|
|
81084
|
+
var value = Number(_this.state[key].toString().replace('px', ''));
|
|
81085
|
+
var percent = (value / parentSize[key]) * 100;
|
|
81086
|
+
return percent + "%";
|
|
81087
|
+
}
|
|
81088
|
+
return getStringSize(_this.state[key]);
|
|
81089
|
+
};
|
|
81090
|
+
var width = size && typeof size.width !== 'undefined' && !this.state.isResizing
|
|
81091
|
+
? getStringSize(size.width)
|
|
81092
|
+
: getSize('width');
|
|
81093
|
+
var height = size && typeof size.height !== 'undefined' && !this.state.isResizing
|
|
81094
|
+
? getStringSize(size.height)
|
|
81095
|
+
: getSize('height');
|
|
81096
|
+
return { width: width, height: height };
|
|
81097
|
+
},
|
|
81098
|
+
enumerable: false,
|
|
81099
|
+
configurable: true
|
|
81100
|
+
});
|
|
81101
|
+
Resizable.prototype.getParentSize = function () {
|
|
81102
|
+
if (!this.parentNode) {
|
|
81103
|
+
if (!this.window) {
|
|
81104
|
+
return { width: 0, height: 0 };
|
|
81105
|
+
}
|
|
81106
|
+
return { width: this.window.innerWidth, height: this.window.innerHeight };
|
|
81107
|
+
}
|
|
81108
|
+
var base = this.appendBase();
|
|
81109
|
+
if (!base) {
|
|
81110
|
+
return { width: 0, height: 0 };
|
|
81111
|
+
}
|
|
81112
|
+
// INFO: To calculate parent width with flex layout
|
|
81113
|
+
var wrapChanged = false;
|
|
81114
|
+
var wrap = this.parentNode.style.flexWrap;
|
|
81115
|
+
if (wrap !== 'wrap') {
|
|
81116
|
+
wrapChanged = true;
|
|
81117
|
+
this.parentNode.style.flexWrap = 'wrap';
|
|
81118
|
+
// HACK: Use relative to get parent padding size
|
|
81119
|
+
}
|
|
81120
|
+
base.style.position = 'relative';
|
|
81121
|
+
base.style.minWidth = '100%';
|
|
81122
|
+
base.style.minHeight = '100%';
|
|
81123
|
+
var size = {
|
|
81124
|
+
width: base.offsetWidth,
|
|
81125
|
+
height: base.offsetHeight,
|
|
81126
|
+
};
|
|
81127
|
+
if (wrapChanged) {
|
|
81128
|
+
this.parentNode.style.flexWrap = wrap;
|
|
81129
|
+
}
|
|
81130
|
+
this.removeBase(base);
|
|
81131
|
+
return size;
|
|
81132
|
+
};
|
|
81133
|
+
Resizable.prototype.bindEvents = function () {
|
|
81134
|
+
if (this.window) {
|
|
81135
|
+
this.window.addEventListener('mouseup', this.onMouseUp);
|
|
81136
|
+
this.window.addEventListener('mousemove', this.onMouseMove);
|
|
81137
|
+
this.window.addEventListener('mouseleave', this.onMouseUp);
|
|
81138
|
+
this.window.addEventListener('touchmove', this.onMouseMove, {
|
|
81139
|
+
capture: true,
|
|
81140
|
+
passive: false,
|
|
81141
|
+
});
|
|
81142
|
+
this.window.addEventListener('touchend', this.onMouseUp);
|
|
81143
|
+
}
|
|
81144
|
+
};
|
|
81145
|
+
Resizable.prototype.unbindEvents = function () {
|
|
81146
|
+
if (this.window) {
|
|
81147
|
+
this.window.removeEventListener('mouseup', this.onMouseUp);
|
|
81148
|
+
this.window.removeEventListener('mousemove', this.onMouseMove);
|
|
81149
|
+
this.window.removeEventListener('mouseleave', this.onMouseUp);
|
|
81150
|
+
this.window.removeEventListener('touchmove', this.onMouseMove, true);
|
|
81151
|
+
this.window.removeEventListener('touchend', this.onMouseUp);
|
|
81152
|
+
}
|
|
81153
|
+
};
|
|
81154
|
+
Resizable.prototype.componentDidMount = function () {
|
|
81155
|
+
if (!this.resizable || !this.window) {
|
|
81156
|
+
return;
|
|
81157
|
+
}
|
|
81158
|
+
var computedStyle = this.window.getComputedStyle(this.resizable);
|
|
81159
|
+
this.setState({
|
|
81160
|
+
width: this.state.width || this.size.width,
|
|
81161
|
+
height: this.state.height || this.size.height,
|
|
81162
|
+
flexBasis: computedStyle.flexBasis !== 'auto' ? computedStyle.flexBasis : undefined,
|
|
81163
|
+
});
|
|
81164
|
+
};
|
|
81165
|
+
Resizable.prototype.componentWillUnmount = function () {
|
|
81166
|
+
if (this.window) {
|
|
81167
|
+
this.unbindEvents();
|
|
81168
|
+
}
|
|
81169
|
+
};
|
|
81170
|
+
Resizable.prototype.createSizeForCssProperty = function (newSize, kind) {
|
|
81171
|
+
var propsSize = this.propsSize && this.propsSize[kind];
|
|
81172
|
+
return this.state[kind] === 'auto' &&
|
|
81173
|
+
this.state.original[kind] === newSize &&
|
|
81174
|
+
(typeof propsSize === 'undefined' || propsSize === 'auto')
|
|
81175
|
+
? 'auto'
|
|
81176
|
+
: newSize;
|
|
81177
|
+
};
|
|
81178
|
+
Resizable.prototype.calculateNewMaxFromBoundary = function (maxWidth, maxHeight) {
|
|
81179
|
+
var boundsByDirection = this.props.boundsByDirection;
|
|
81180
|
+
var direction = this.state.direction;
|
|
81181
|
+
var widthByDirection = boundsByDirection && hasDirection('left', direction);
|
|
81182
|
+
var heightByDirection = boundsByDirection && hasDirection('top', direction);
|
|
81183
|
+
var boundWidth;
|
|
81184
|
+
var boundHeight;
|
|
81185
|
+
if (this.props.bounds === 'parent') {
|
|
81186
|
+
var parent_1 = this.parentNode;
|
|
81187
|
+
if (parent_1) {
|
|
81188
|
+
boundWidth = widthByDirection
|
|
81189
|
+
? this.resizableRight - this.parentLeft
|
|
81190
|
+
: parent_1.offsetWidth + (this.parentLeft - this.resizableLeft);
|
|
81191
|
+
boundHeight = heightByDirection
|
|
81192
|
+
? this.resizableBottom - this.parentTop
|
|
81193
|
+
: parent_1.offsetHeight + (this.parentTop - this.resizableTop);
|
|
81194
|
+
}
|
|
81195
|
+
}
|
|
81196
|
+
else if (this.props.bounds === 'window') {
|
|
81197
|
+
if (this.window) {
|
|
81198
|
+
boundWidth = widthByDirection ? this.resizableRight : this.window.innerWidth - this.resizableLeft;
|
|
81199
|
+
boundHeight = heightByDirection ? this.resizableBottom : this.window.innerHeight - this.resizableTop;
|
|
81200
|
+
}
|
|
81201
|
+
}
|
|
81202
|
+
else if (this.props.bounds) {
|
|
81203
|
+
boundWidth = widthByDirection
|
|
81204
|
+
? this.resizableRight - this.targetLeft
|
|
81205
|
+
: this.props.bounds.offsetWidth + (this.targetLeft - this.resizableLeft);
|
|
81206
|
+
boundHeight = heightByDirection
|
|
81207
|
+
? this.resizableBottom - this.targetTop
|
|
81208
|
+
: this.props.bounds.offsetHeight + (this.targetTop - this.resizableTop);
|
|
81209
|
+
}
|
|
81210
|
+
if (boundWidth && Number.isFinite(boundWidth)) {
|
|
81211
|
+
maxWidth = maxWidth && maxWidth < boundWidth ? maxWidth : boundWidth;
|
|
81212
|
+
}
|
|
81213
|
+
if (boundHeight && Number.isFinite(boundHeight)) {
|
|
81214
|
+
maxHeight = maxHeight && maxHeight < boundHeight ? maxHeight : boundHeight;
|
|
81215
|
+
}
|
|
81216
|
+
return { maxWidth: maxWidth, maxHeight: maxHeight };
|
|
81217
|
+
};
|
|
81218
|
+
Resizable.prototype.calculateNewSizeFromDirection = function (clientX, clientY) {
|
|
81219
|
+
var scale = this.props.scale || 1;
|
|
81220
|
+
var resizeRatio = this.props.resizeRatio || 1;
|
|
81221
|
+
var _a = this.state, direction = _a.direction, original = _a.original;
|
|
81222
|
+
var _b = this.props, lockAspectRatio = _b.lockAspectRatio, lockAspectRatioExtraHeight = _b.lockAspectRatioExtraHeight, lockAspectRatioExtraWidth = _b.lockAspectRatioExtraWidth;
|
|
81223
|
+
var newWidth = original.width;
|
|
81224
|
+
var newHeight = original.height;
|
|
81225
|
+
var extraHeight = lockAspectRatioExtraHeight || 0;
|
|
81226
|
+
var extraWidth = lockAspectRatioExtraWidth || 0;
|
|
81227
|
+
if (hasDirection('right', direction)) {
|
|
81228
|
+
newWidth = original.width + ((clientX - original.x) * resizeRatio) / scale;
|
|
81229
|
+
if (lockAspectRatio) {
|
|
81230
|
+
newHeight = (newWidth - extraWidth) / this.ratio + extraHeight;
|
|
81231
|
+
}
|
|
81232
|
+
}
|
|
81233
|
+
if (hasDirection('left', direction)) {
|
|
81234
|
+
newWidth = original.width - ((clientX - original.x) * resizeRatio) / scale;
|
|
81235
|
+
if (lockAspectRatio) {
|
|
81236
|
+
newHeight = (newWidth - extraWidth) / this.ratio + extraHeight;
|
|
81237
|
+
}
|
|
81238
|
+
}
|
|
81239
|
+
if (hasDirection('bottom', direction)) {
|
|
81240
|
+
newHeight = original.height + ((clientY - original.y) * resizeRatio) / scale;
|
|
81241
|
+
if (lockAspectRatio) {
|
|
81242
|
+
newWidth = (newHeight - extraHeight) * this.ratio + extraWidth;
|
|
81243
|
+
}
|
|
81244
|
+
}
|
|
81245
|
+
if (hasDirection('top', direction)) {
|
|
81246
|
+
newHeight = original.height - ((clientY - original.y) * resizeRatio) / scale;
|
|
81247
|
+
if (lockAspectRatio) {
|
|
81248
|
+
newWidth = (newHeight - extraHeight) * this.ratio + extraWidth;
|
|
81249
|
+
}
|
|
81250
|
+
}
|
|
81251
|
+
return { newWidth: newWidth, newHeight: newHeight };
|
|
81252
|
+
};
|
|
81253
|
+
Resizable.prototype.calculateNewSizeFromAspectRatio = function (newWidth, newHeight, max, min) {
|
|
81254
|
+
var _a = this.props, lockAspectRatio = _a.lockAspectRatio, lockAspectRatioExtraHeight = _a.lockAspectRatioExtraHeight, lockAspectRatioExtraWidth = _a.lockAspectRatioExtraWidth;
|
|
81255
|
+
var computedMinWidth = typeof min.width === 'undefined' ? 10 : min.width;
|
|
81256
|
+
var computedMaxWidth = typeof max.width === 'undefined' || max.width < 0 ? newWidth : max.width;
|
|
81257
|
+
var computedMinHeight = typeof min.height === 'undefined' ? 10 : min.height;
|
|
81258
|
+
var computedMaxHeight = typeof max.height === 'undefined' || max.height < 0 ? newHeight : max.height;
|
|
81259
|
+
var extraHeight = lockAspectRatioExtraHeight || 0;
|
|
81260
|
+
var extraWidth = lockAspectRatioExtraWidth || 0;
|
|
81261
|
+
if (lockAspectRatio) {
|
|
81262
|
+
var extraMinWidth = (computedMinHeight - extraHeight) * this.ratio + extraWidth;
|
|
81263
|
+
var extraMaxWidth = (computedMaxHeight - extraHeight) * this.ratio + extraWidth;
|
|
81264
|
+
var extraMinHeight = (computedMinWidth - extraWidth) / this.ratio + extraHeight;
|
|
81265
|
+
var extraMaxHeight = (computedMaxWidth - extraWidth) / this.ratio + extraHeight;
|
|
81266
|
+
var lockedMinWidth = Math.max(computedMinWidth, extraMinWidth);
|
|
81267
|
+
var lockedMaxWidth = Math.min(computedMaxWidth, extraMaxWidth);
|
|
81268
|
+
var lockedMinHeight = Math.max(computedMinHeight, extraMinHeight);
|
|
81269
|
+
var lockedMaxHeight = Math.min(computedMaxHeight, extraMaxHeight);
|
|
81270
|
+
newWidth = clamp(newWidth, lockedMinWidth, lockedMaxWidth);
|
|
81271
|
+
newHeight = clamp(newHeight, lockedMinHeight, lockedMaxHeight);
|
|
81272
|
+
}
|
|
81273
|
+
else {
|
|
81274
|
+
newWidth = clamp(newWidth, computedMinWidth, computedMaxWidth);
|
|
81275
|
+
newHeight = clamp(newHeight, computedMinHeight, computedMaxHeight);
|
|
81276
|
+
}
|
|
81277
|
+
return { newWidth: newWidth, newHeight: newHeight };
|
|
81278
|
+
};
|
|
81279
|
+
Resizable.prototype.setBoundingClientRect = function () {
|
|
81280
|
+
// For parent boundary
|
|
81281
|
+
if (this.props.bounds === 'parent') {
|
|
81282
|
+
var parent_2 = this.parentNode;
|
|
81283
|
+
if (parent_2) {
|
|
81284
|
+
var parentRect = parent_2.getBoundingClientRect();
|
|
81285
|
+
this.parentLeft = parentRect.left;
|
|
81286
|
+
this.parentTop = parentRect.top;
|
|
81287
|
+
}
|
|
81288
|
+
}
|
|
81289
|
+
// For target(html element) boundary
|
|
81290
|
+
if (this.props.bounds && typeof this.props.bounds !== 'string') {
|
|
81291
|
+
var targetRect = this.props.bounds.getBoundingClientRect();
|
|
81292
|
+
this.targetLeft = targetRect.left;
|
|
81293
|
+
this.targetTop = targetRect.top;
|
|
81294
|
+
}
|
|
81295
|
+
// For boundary
|
|
81296
|
+
if (this.resizable) {
|
|
81297
|
+
var _a = this.resizable.getBoundingClientRect(), left = _a.left, top_1 = _a.top, right = _a.right, bottom = _a.bottom;
|
|
81298
|
+
this.resizableLeft = left;
|
|
81299
|
+
this.resizableRight = right;
|
|
81300
|
+
this.resizableTop = top_1;
|
|
81301
|
+
this.resizableBottom = bottom;
|
|
81302
|
+
}
|
|
81303
|
+
};
|
|
81304
|
+
Resizable.prototype.onResizeStart = function (event, direction) {
|
|
81305
|
+
if (!this.resizable || !this.window) {
|
|
81306
|
+
return;
|
|
81307
|
+
}
|
|
81308
|
+
var clientX = 0;
|
|
81309
|
+
var clientY = 0;
|
|
81310
|
+
if (event.nativeEvent && isMouseEvent(event.nativeEvent)) {
|
|
81311
|
+
clientX = event.nativeEvent.clientX;
|
|
81312
|
+
clientY = event.nativeEvent.clientY;
|
|
81313
|
+
}
|
|
81314
|
+
else if (event.nativeEvent && isTouchEvent(event.nativeEvent)) {
|
|
81315
|
+
clientX = event.nativeEvent.touches[0].clientX;
|
|
81316
|
+
clientY = event.nativeEvent.touches[0].clientY;
|
|
81317
|
+
}
|
|
81318
|
+
if (this.props.onResizeStart) {
|
|
81319
|
+
if (this.resizable) {
|
|
81320
|
+
var startResize = this.props.onResizeStart(event, direction, this.resizable);
|
|
81321
|
+
if (startResize === false) {
|
|
81322
|
+
return;
|
|
81323
|
+
}
|
|
81324
|
+
}
|
|
81325
|
+
}
|
|
81326
|
+
// Fix #168
|
|
81327
|
+
if (this.props.size) {
|
|
81328
|
+
if (typeof this.props.size.height !== 'undefined' && this.props.size.height !== this.state.height) {
|
|
81329
|
+
this.setState({ height: this.props.size.height });
|
|
81330
|
+
}
|
|
81331
|
+
if (typeof this.props.size.width !== 'undefined' && this.props.size.width !== this.state.width) {
|
|
81332
|
+
this.setState({ width: this.props.size.width });
|
|
81333
|
+
}
|
|
81334
|
+
}
|
|
81335
|
+
// For lockAspectRatio case
|
|
81336
|
+
this.ratio =
|
|
81337
|
+
typeof this.props.lockAspectRatio === 'number' ? this.props.lockAspectRatio : this.size.width / this.size.height;
|
|
81338
|
+
var flexBasis;
|
|
81339
|
+
var computedStyle = this.window.getComputedStyle(this.resizable);
|
|
81340
|
+
if (computedStyle.flexBasis !== 'auto') {
|
|
81341
|
+
var parent_3 = this.parentNode;
|
|
81342
|
+
if (parent_3) {
|
|
81343
|
+
var dir = this.window.getComputedStyle(parent_3).flexDirection;
|
|
81344
|
+
this.flexDir = dir.startsWith('row') ? 'row' : 'column';
|
|
81345
|
+
flexBasis = computedStyle.flexBasis;
|
|
81346
|
+
}
|
|
81347
|
+
}
|
|
81348
|
+
// For boundary
|
|
81349
|
+
this.setBoundingClientRect();
|
|
81350
|
+
this.bindEvents();
|
|
81351
|
+
var state = {
|
|
81352
|
+
original: {
|
|
81353
|
+
x: clientX,
|
|
81354
|
+
y: clientY,
|
|
81355
|
+
width: this.size.width,
|
|
81356
|
+
height: this.size.height,
|
|
81357
|
+
},
|
|
81358
|
+
isResizing: true,
|
|
81359
|
+
backgroundStyle: __assign(__assign({}, this.state.backgroundStyle), { cursor: this.window.getComputedStyle(event.target).cursor || 'auto' }),
|
|
81360
|
+
direction: direction,
|
|
81361
|
+
flexBasis: flexBasis,
|
|
81362
|
+
};
|
|
81363
|
+
this.setState(state);
|
|
81364
|
+
};
|
|
81365
|
+
Resizable.prototype.onMouseMove = function (event) {
|
|
81366
|
+
var _this = this;
|
|
81367
|
+
if (!this.state.isResizing || !this.resizable || !this.window) {
|
|
81368
|
+
return;
|
|
81369
|
+
}
|
|
81370
|
+
if (this.window.TouchEvent && isTouchEvent(event)) {
|
|
81371
|
+
try {
|
|
81372
|
+
event.preventDefault();
|
|
81373
|
+
event.stopPropagation();
|
|
81374
|
+
}
|
|
81375
|
+
catch (e) {
|
|
81376
|
+
// Ignore on fail
|
|
81377
|
+
}
|
|
81378
|
+
}
|
|
81379
|
+
var _a = this.props, maxWidth = _a.maxWidth, maxHeight = _a.maxHeight, minWidth = _a.minWidth, minHeight = _a.minHeight;
|
|
81380
|
+
var clientX = isTouchEvent(event) ? event.touches[0].clientX : event.clientX;
|
|
81381
|
+
var clientY = isTouchEvent(event) ? event.touches[0].clientY : event.clientY;
|
|
81382
|
+
var _b = this.state, direction = _b.direction, original = _b.original, width = _b.width, height = _b.height;
|
|
81383
|
+
var parentSize = this.getParentSize();
|
|
81384
|
+
var max = calculateNewMax(parentSize, this.window.innerWidth, this.window.innerHeight, maxWidth, maxHeight, minWidth, minHeight);
|
|
81385
|
+
maxWidth = max.maxWidth;
|
|
81386
|
+
maxHeight = max.maxHeight;
|
|
81387
|
+
minWidth = max.minWidth;
|
|
81388
|
+
minHeight = max.minHeight;
|
|
81389
|
+
// Calculate new size
|
|
81390
|
+
var _c = this.calculateNewSizeFromDirection(clientX, clientY), newHeight = _c.newHeight, newWidth = _c.newWidth;
|
|
81391
|
+
// Calculate max size from boundary settings
|
|
81392
|
+
var boundaryMax = this.calculateNewMaxFromBoundary(maxWidth, maxHeight);
|
|
81393
|
+
if (this.props.snap && this.props.snap.x) {
|
|
81394
|
+
newWidth = findClosestSnap(newWidth, this.props.snap.x, this.props.snapGap);
|
|
81395
|
+
}
|
|
81396
|
+
if (this.props.snap && this.props.snap.y) {
|
|
81397
|
+
newHeight = findClosestSnap(newHeight, this.props.snap.y, this.props.snapGap);
|
|
81398
|
+
}
|
|
81399
|
+
// Calculate new size from aspect ratio
|
|
81400
|
+
var newSize = this.calculateNewSizeFromAspectRatio(newWidth, newHeight, { width: boundaryMax.maxWidth, height: boundaryMax.maxHeight }, { width: minWidth, height: minHeight });
|
|
81401
|
+
newWidth = newSize.newWidth;
|
|
81402
|
+
newHeight = newSize.newHeight;
|
|
81403
|
+
if (this.props.grid) {
|
|
81404
|
+
var newGridWidth = snap(newWidth, this.props.grid[0]);
|
|
81405
|
+
var newGridHeight = snap(newHeight, this.props.grid[1]);
|
|
81406
|
+
var gap = this.props.snapGap || 0;
|
|
81407
|
+
newWidth = gap === 0 || Math.abs(newGridWidth - newWidth) <= gap ? newGridWidth : newWidth;
|
|
81408
|
+
newHeight = gap === 0 || Math.abs(newGridHeight - newHeight) <= gap ? newGridHeight : newHeight;
|
|
81409
|
+
}
|
|
81410
|
+
var delta = {
|
|
81411
|
+
width: newWidth - original.width,
|
|
81412
|
+
height: newHeight - original.height,
|
|
81413
|
+
};
|
|
81414
|
+
if (width && typeof width === 'string') {
|
|
81415
|
+
if (width.endsWith('%')) {
|
|
81416
|
+
var percent = (newWidth / parentSize.width) * 100;
|
|
81417
|
+
newWidth = percent + "%";
|
|
81418
|
+
}
|
|
81419
|
+
else if (width.endsWith('vw')) {
|
|
81420
|
+
var vw = (newWidth / this.window.innerWidth) * 100;
|
|
81421
|
+
newWidth = vw + "vw";
|
|
81422
|
+
}
|
|
81423
|
+
else if (width.endsWith('vh')) {
|
|
81424
|
+
var vh = (newWidth / this.window.innerHeight) * 100;
|
|
81425
|
+
newWidth = vh + "vh";
|
|
81426
|
+
}
|
|
81427
|
+
}
|
|
81428
|
+
if (height && typeof height === 'string') {
|
|
81429
|
+
if (height.endsWith('%')) {
|
|
81430
|
+
var percent = (newHeight / parentSize.height) * 100;
|
|
81431
|
+
newHeight = percent + "%";
|
|
81432
|
+
}
|
|
81433
|
+
else if (height.endsWith('vw')) {
|
|
81434
|
+
var vw = (newHeight / this.window.innerWidth) * 100;
|
|
81435
|
+
newHeight = vw + "vw";
|
|
81436
|
+
}
|
|
81437
|
+
else if (height.endsWith('vh')) {
|
|
81438
|
+
var vh = (newHeight / this.window.innerHeight) * 100;
|
|
81439
|
+
newHeight = vh + "vh";
|
|
81440
|
+
}
|
|
81441
|
+
}
|
|
81442
|
+
var newState = {
|
|
81443
|
+
width: this.createSizeForCssProperty(newWidth, 'width'),
|
|
81444
|
+
height: this.createSizeForCssProperty(newHeight, 'height'),
|
|
81445
|
+
};
|
|
81446
|
+
if (this.flexDir === 'row') {
|
|
81447
|
+
newState.flexBasis = newState.width;
|
|
81448
|
+
}
|
|
81449
|
+
else if (this.flexDir === 'column') {
|
|
81450
|
+
newState.flexBasis = newState.height;
|
|
81451
|
+
}
|
|
81452
|
+
// For v18, update state sync
|
|
81453
|
+
flushSync(function () {
|
|
81454
|
+
_this.setState(newState);
|
|
81455
|
+
});
|
|
81456
|
+
if (this.props.onResize) {
|
|
81457
|
+
this.props.onResize(event, direction, this.resizable, delta);
|
|
81458
|
+
}
|
|
81459
|
+
};
|
|
81460
|
+
Resizable.prototype.onMouseUp = function (event) {
|
|
81461
|
+
var _a = this.state, isResizing = _a.isResizing, direction = _a.direction, original = _a.original;
|
|
81462
|
+
if (!isResizing || !this.resizable) {
|
|
81463
|
+
return;
|
|
81464
|
+
}
|
|
81465
|
+
var delta = {
|
|
81466
|
+
width: this.size.width - original.width,
|
|
81467
|
+
height: this.size.height - original.height,
|
|
81468
|
+
};
|
|
81469
|
+
if (this.props.onResizeStop) {
|
|
81470
|
+
this.props.onResizeStop(event, direction, this.resizable, delta);
|
|
81471
|
+
}
|
|
81472
|
+
if (this.props.size) {
|
|
81473
|
+
this.setState(this.props.size);
|
|
81474
|
+
}
|
|
81475
|
+
this.unbindEvents();
|
|
81476
|
+
this.setState({
|
|
81477
|
+
isResizing: false,
|
|
81478
|
+
backgroundStyle: __assign(__assign({}, this.state.backgroundStyle), { cursor: 'auto' }),
|
|
81479
|
+
});
|
|
81480
|
+
};
|
|
81481
|
+
Resizable.prototype.updateSize = function (size) {
|
|
81482
|
+
this.setState({ width: size.width, height: size.height });
|
|
81483
|
+
};
|
|
81484
|
+
Resizable.prototype.renderResizer = function () {
|
|
81485
|
+
var _this = this;
|
|
81486
|
+
var _a = this.props, enable = _a.enable, handleStyles = _a.handleStyles, handleClasses = _a.handleClasses, handleWrapperStyle = _a.handleWrapperStyle, handleWrapperClass = _a.handleWrapperClass, handleComponent = _a.handleComponent;
|
|
81487
|
+
if (!enable) {
|
|
81488
|
+
return null;
|
|
81489
|
+
}
|
|
81490
|
+
var resizers = Object.keys(enable).map(function (dir) {
|
|
81491
|
+
if (enable[dir] !== false) {
|
|
81492
|
+
return (React$6.createElement(Resizer, { key: dir, direction: dir, onResizeStart: _this.onResizeStart, replaceStyles: handleStyles && handleStyles[dir], className: handleClasses && handleClasses[dir] }, handleComponent && handleComponent[dir] ? handleComponent[dir] : null));
|
|
81493
|
+
}
|
|
81494
|
+
return null;
|
|
81495
|
+
});
|
|
81496
|
+
// #93 Wrap the resize box in span (will not break 100% width/height)
|
|
81497
|
+
return (React$6.createElement("div", { className: handleWrapperClass, style: handleWrapperStyle }, resizers));
|
|
81498
|
+
};
|
|
81499
|
+
Resizable.prototype.render = function () {
|
|
81500
|
+
var _this = this;
|
|
81501
|
+
var extendsProps = Object.keys(this.props).reduce(function (acc, key) {
|
|
81502
|
+
if (definedProps.indexOf(key) !== -1) {
|
|
81503
|
+
return acc;
|
|
81504
|
+
}
|
|
81505
|
+
acc[key] = _this.props[key];
|
|
81506
|
+
return acc;
|
|
81507
|
+
}, {});
|
|
81508
|
+
var style = __assign(__assign(__assign({ position: 'relative', userSelect: this.state.isResizing ? 'none' : 'auto' }, this.props.style), this.sizeStyle), { maxWidth: this.props.maxWidth, maxHeight: this.props.maxHeight, minWidth: this.props.minWidth, minHeight: this.props.minHeight, boxSizing: 'border-box', flexShrink: 0 });
|
|
81509
|
+
if (this.state.flexBasis) {
|
|
81510
|
+
style.flexBasis = this.state.flexBasis;
|
|
81511
|
+
}
|
|
81512
|
+
var Wrapper = this.props.as || 'div';
|
|
81513
|
+
return (React$6.createElement(Wrapper, __assign({ ref: this.ref, style: style, className: this.props.className }, extendsProps),
|
|
81514
|
+
this.state.isResizing && React$6.createElement("div", { style: this.state.backgroundStyle }),
|
|
81515
|
+
this.props.children,
|
|
81516
|
+
this.renderResizer()));
|
|
81517
|
+
};
|
|
81518
|
+
Resizable.defaultProps = {
|
|
81519
|
+
as: 'div',
|
|
81520
|
+
onResizeStart: function () { },
|
|
81521
|
+
onResize: function () { },
|
|
81522
|
+
onResizeStop: function () { },
|
|
81523
|
+
enable: {
|
|
81524
|
+
top: true,
|
|
81525
|
+
right: true,
|
|
81526
|
+
bottom: true,
|
|
81527
|
+
left: true,
|
|
81528
|
+
topRight: true,
|
|
81529
|
+
bottomRight: true,
|
|
81530
|
+
bottomLeft: true,
|
|
81531
|
+
topLeft: true,
|
|
81532
|
+
},
|
|
81533
|
+
style: {},
|
|
81534
|
+
grid: [1, 1],
|
|
81535
|
+
lockAspectRatio: false,
|
|
81536
|
+
lockAspectRatioExtraWidth: 0,
|
|
81537
|
+
lockAspectRatioExtraHeight: 0,
|
|
81538
|
+
scale: 1,
|
|
81539
|
+
resizeRatio: 1,
|
|
81540
|
+
snapGap: 0,
|
|
81541
|
+
};
|
|
81542
|
+
return Resizable;
|
|
81543
|
+
}(React$6.PureComponent));
|
|
81544
|
+
|
|
81545
|
+
function cov_15b9syaiuk() {
|
|
81546
|
+
var path = "/home/runner/work/neeto-editor/neeto-editor/src/components/Editor/CustomExtensions/Image/Menu.jsx";
|
|
81547
|
+
var hash = "ee87fa2f4bc8ea864e388ade290f6aeb5c5527ae";
|
|
80724
81548
|
var global = new Function("return this")();
|
|
80725
81549
|
var gcv = "__coverage__";
|
|
80726
81550
|
var coverageData = {
|
|
80727
|
-
path: "/home/runner/work/neeto-editor/neeto-editor/src/components/Editor/CustomExtensions/
|
|
81551
|
+
path: "/home/runner/work/neeto-editor/neeto-editor/src/components/Editor/CustomExtensions/Image/Menu.jsx",
|
|
80728
81552
|
statementMap: {
|
|
80729
81553
|
"0": {
|
|
80730
81554
|
start: {
|
|
80731
|
-
line:
|
|
80732
|
-
column:
|
|
81555
|
+
line: 8,
|
|
81556
|
+
column: 13
|
|
80733
81557
|
},
|
|
80734
81558
|
end: {
|
|
80735
|
-
line:
|
|
80736
|
-
column:
|
|
81559
|
+
line: 36,
|
|
81560
|
+
column: 1
|
|
80737
81561
|
}
|
|
80738
81562
|
},
|
|
80739
81563
|
"1": {
|
|
80740
81564
|
start: {
|
|
80741
|
-
line:
|
|
80742
|
-
column:
|
|
81565
|
+
line: 9,
|
|
81566
|
+
column: 22
|
|
80743
81567
|
},
|
|
80744
81568
|
end: {
|
|
80745
|
-
line:
|
|
80746
|
-
column:
|
|
81569
|
+
line: 9,
|
|
81570
|
+
column: 41
|
|
80747
81571
|
}
|
|
80748
81572
|
},
|
|
80749
81573
|
"2": {
|
|
80750
81574
|
start: {
|
|
80751
|
-
line:
|
|
80752
|
-
column:
|
|
81575
|
+
line: 11,
|
|
81576
|
+
column: 22
|
|
80753
81577
|
},
|
|
80754
81578
|
end: {
|
|
80755
|
-
line:
|
|
80756
|
-
column:
|
|
81579
|
+
line: 14,
|
|
81580
|
+
column: 3
|
|
80757
81581
|
}
|
|
80758
81582
|
},
|
|
80759
81583
|
"3": {
|
|
80760
81584
|
start: {
|
|
80761
|
-
line:
|
|
81585
|
+
line: 12,
|
|
80762
81586
|
column: 4
|
|
80763
81587
|
},
|
|
80764
81588
|
end: {
|
|
80765
|
-
line:
|
|
80766
|
-
column:
|
|
81589
|
+
line: 12,
|
|
81590
|
+
column: 55
|
|
80767
81591
|
}
|
|
80768
81592
|
},
|
|
80769
81593
|
"4": {
|
|
80770
81594
|
start: {
|
|
80771
|
-
line:
|
|
81595
|
+
line: 13,
|
|
80772
81596
|
column: 4
|
|
80773
81597
|
},
|
|
80774
81598
|
end: {
|
|
80775
|
-
line:
|
|
80776
|
-
column:
|
|
81599
|
+
line: 13,
|
|
81600
|
+
column: 28
|
|
80777
81601
|
}
|
|
80778
81602
|
},
|
|
80779
81603
|
"5": {
|
|
80780
81604
|
start: {
|
|
80781
|
-
line:
|
|
80782
|
-
column:
|
|
81605
|
+
line: 16,
|
|
81606
|
+
column: 2
|
|
80783
81607
|
},
|
|
80784
81608
|
end: {
|
|
80785
|
-
line:
|
|
80786
|
-
column: 6
|
|
80787
|
-
}
|
|
80788
|
-
},
|
|
80789
|
-
"6": {
|
|
80790
|
-
start: {
|
|
80791
|
-
line: 68,
|
|
81609
|
+
line: 35,
|
|
80792
81610
|
column: 4
|
|
80793
|
-
},
|
|
80794
|
-
end: {
|
|
80795
|
-
line: 76,
|
|
80796
|
-
column: 6
|
|
80797
81611
|
}
|
|
80798
81612
|
},
|
|
80799
|
-
"
|
|
81613
|
+
"6": {
|
|
80800
81614
|
start: {
|
|
80801
|
-
line:
|
|
81615
|
+
line: 26,
|
|
80802
81616
|
column: 8
|
|
80803
81617
|
},
|
|
80804
81618
|
end: {
|
|
80805
|
-
line:
|
|
80806
|
-
column: 12
|
|
80807
|
-
}
|
|
80808
|
-
},
|
|
80809
|
-
"8": {
|
|
80810
|
-
start: {
|
|
80811
|
-
line: 72,
|
|
80812
|
-
column: 10
|
|
80813
|
-
},
|
|
80814
|
-
end: {
|
|
80815
|
-
line: 75,
|
|
80816
|
-
column: 12
|
|
80817
|
-
}
|
|
80818
|
-
},
|
|
80819
|
-
"9": {
|
|
80820
|
-
start: {
|
|
80821
|
-
line: 80,
|
|
80822
|
-
column: 4
|
|
80823
|
-
},
|
|
80824
|
-
end: {
|
|
80825
|
-
line: 106,
|
|
80826
|
-
column: 6
|
|
80827
|
-
}
|
|
80828
|
-
},
|
|
80829
|
-
"10": {
|
|
80830
|
-
start: {
|
|
80831
|
-
line: 84,
|
|
80832
|
-
column: 10
|
|
80833
|
-
},
|
|
80834
|
-
end: {
|
|
80835
|
-
line: 84,
|
|
80836
|
-
column: 48
|
|
80837
|
-
}
|
|
80838
|
-
},
|
|
80839
|
-
"11": {
|
|
80840
|
-
start: {
|
|
80841
|
-
line: 85,
|
|
80842
|
-
column: 10
|
|
80843
|
-
},
|
|
80844
|
-
end: {
|
|
80845
|
-
line: 87,
|
|
80846
|
-
column: 12
|
|
80847
|
-
}
|
|
80848
|
-
},
|
|
80849
|
-
"12": {
|
|
80850
|
-
start: {
|
|
80851
|
-
line: 89,
|
|
80852
|
-
column: 31
|
|
80853
|
-
},
|
|
80854
|
-
end: {
|
|
80855
|
-
line: 89,
|
|
80856
|
-
column: 52
|
|
80857
|
-
}
|
|
80858
|
-
},
|
|
80859
|
-
"13": {
|
|
80860
|
-
start: {
|
|
80861
|
-
line: 90,
|
|
81619
|
+
line: 32,
|
|
80862
81620
|
column: 10
|
|
80863
|
-
},
|
|
80864
|
-
end: {
|
|
80865
|
-
line: 103,
|
|
80866
|
-
column: 11
|
|
80867
81621
|
}
|
|
80868
81622
|
},
|
|
80869
|
-
"
|
|
81623
|
+
"7": {
|
|
80870
81624
|
start: {
|
|
80871
|
-
line:
|
|
81625
|
+
line: 31,
|
|
80872
81626
|
column: 25
|
|
80873
81627
|
},
|
|
80874
81628
|
end: {
|
|
80875
|
-
line:
|
|
80876
|
-
column: 14
|
|
80877
|
-
}
|
|
80878
|
-
},
|
|
80879
|
-
"15": {
|
|
80880
|
-
start: {
|
|
80881
|
-
line: 94,
|
|
80882
|
-
column: 12
|
|
80883
|
-
},
|
|
80884
|
-
end: {
|
|
80885
|
-
line: 94,
|
|
81629
|
+
line: 31,
|
|
80886
81630
|
column: 46
|
|
80887
81631
|
}
|
|
80888
|
-
},
|
|
80889
|
-
"16": {
|
|
80890
|
-
start: {
|
|
80891
|
-
line: 95,
|
|
80892
|
-
column: 12
|
|
80893
|
-
},
|
|
80894
|
-
end: {
|
|
80895
|
-
line: 98,
|
|
80896
|
-
column: 14
|
|
80897
|
-
}
|
|
80898
|
-
},
|
|
80899
|
-
"17": {
|
|
80900
|
-
start: {
|
|
80901
|
-
line: 100,
|
|
80902
|
-
column: 12
|
|
80903
|
-
},
|
|
80904
|
-
end: {
|
|
80905
|
-
line: 102,
|
|
80906
|
-
column: 14
|
|
80907
|
-
}
|
|
80908
81632
|
}
|
|
80909
81633
|
},
|
|
80910
81634
|
fnMap: {
|
|
@@ -80912,320 +81636,1153 @@ function cov_xd1lqdp2c() {
|
|
|
80912
81636
|
name: "(anonymous_0)",
|
|
80913
81637
|
decl: {
|
|
80914
81638
|
start: {
|
|
80915
|
-
line:
|
|
80916
|
-
column:
|
|
81639
|
+
line: 8,
|
|
81640
|
+
column: 13
|
|
80917
81641
|
},
|
|
80918
81642
|
end: {
|
|
80919
|
-
line:
|
|
80920
|
-
column:
|
|
81643
|
+
line: 8,
|
|
81644
|
+
column: 14
|
|
80921
81645
|
}
|
|
80922
81646
|
},
|
|
80923
81647
|
loc: {
|
|
80924
81648
|
start: {
|
|
80925
|
-
line:
|
|
80926
|
-
column:
|
|
81649
|
+
line: 8,
|
|
81650
|
+
column: 66
|
|
80927
81651
|
},
|
|
80928
81652
|
end: {
|
|
80929
|
-
line:
|
|
80930
|
-
column:
|
|
81653
|
+
line: 36,
|
|
81654
|
+
column: 1
|
|
80931
81655
|
}
|
|
80932
81656
|
},
|
|
80933
|
-
line:
|
|
81657
|
+
line: 8
|
|
80934
81658
|
},
|
|
80935
81659
|
"1": {
|
|
80936
81660
|
name: "(anonymous_1)",
|
|
80937
81661
|
decl: {
|
|
80938
81662
|
start: {
|
|
80939
|
-
line:
|
|
80940
|
-
column:
|
|
81663
|
+
line: 11,
|
|
81664
|
+
column: 22
|
|
80941
81665
|
},
|
|
80942
81666
|
end: {
|
|
80943
|
-
line:
|
|
81667
|
+
line: 11,
|
|
81668
|
+
column: 23
|
|
81669
|
+
}
|
|
81670
|
+
},
|
|
81671
|
+
loc: {
|
|
81672
|
+
start: {
|
|
81673
|
+
line: 11,
|
|
81674
|
+
column: 31
|
|
81675
|
+
},
|
|
81676
|
+
end: {
|
|
81677
|
+
line: 14,
|
|
80944
81678
|
column: 3
|
|
80945
81679
|
}
|
|
80946
81680
|
},
|
|
81681
|
+
line: 11
|
|
81682
|
+
},
|
|
81683
|
+
"2": {
|
|
81684
|
+
name: "(anonymous_2)",
|
|
81685
|
+
decl: {
|
|
81686
|
+
start: {
|
|
81687
|
+
line: 25,
|
|
81688
|
+
column: 23
|
|
81689
|
+
},
|
|
81690
|
+
end: {
|
|
81691
|
+
line: 25,
|
|
81692
|
+
column: 24
|
|
81693
|
+
}
|
|
81694
|
+
},
|
|
81695
|
+
loc: {
|
|
81696
|
+
start: {
|
|
81697
|
+
line: 26,
|
|
81698
|
+
column: 8
|
|
81699
|
+
},
|
|
81700
|
+
end: {
|
|
81701
|
+
line: 32,
|
|
81702
|
+
column: 10
|
|
81703
|
+
}
|
|
81704
|
+
},
|
|
81705
|
+
line: 26
|
|
81706
|
+
},
|
|
81707
|
+
"3": {
|
|
81708
|
+
name: "(anonymous_3)",
|
|
81709
|
+
decl: {
|
|
81710
|
+
start: {
|
|
81711
|
+
line: 31,
|
|
81712
|
+
column: 19
|
|
81713
|
+
},
|
|
81714
|
+
end: {
|
|
81715
|
+
line: 31,
|
|
81716
|
+
column: 20
|
|
81717
|
+
}
|
|
81718
|
+
},
|
|
81719
|
+
loc: {
|
|
81720
|
+
start: {
|
|
81721
|
+
line: 31,
|
|
81722
|
+
column: 25
|
|
81723
|
+
},
|
|
81724
|
+
end: {
|
|
81725
|
+
line: 31,
|
|
81726
|
+
column: 46
|
|
81727
|
+
}
|
|
81728
|
+
},
|
|
81729
|
+
line: 31
|
|
81730
|
+
}
|
|
81731
|
+
},
|
|
81732
|
+
branchMap: {
|
|
81733
|
+
"0": {
|
|
81734
|
+
loc: {
|
|
81735
|
+
start: {
|
|
81736
|
+
line: 12,
|
|
81737
|
+
column: 4
|
|
81738
|
+
},
|
|
81739
|
+
end: {
|
|
81740
|
+
line: 12,
|
|
81741
|
+
column: 54
|
|
81742
|
+
}
|
|
81743
|
+
},
|
|
81744
|
+
type: "cond-expr",
|
|
81745
|
+
locations: [{
|
|
81746
|
+
start: {
|
|
81747
|
+
line: 12,
|
|
81748
|
+
column: 12
|
|
81749
|
+
},
|
|
81750
|
+
end: {
|
|
81751
|
+
line: 12,
|
|
81752
|
+
column: 39
|
|
81753
|
+
}
|
|
81754
|
+
}, {
|
|
81755
|
+
start: {
|
|
81756
|
+
line: 12,
|
|
81757
|
+
column: 42
|
|
81758
|
+
},
|
|
81759
|
+
end: {
|
|
81760
|
+
line: 12,
|
|
81761
|
+
column: 54
|
|
81762
|
+
}
|
|
81763
|
+
}],
|
|
81764
|
+
line: 12
|
|
81765
|
+
},
|
|
81766
|
+
"1": {
|
|
80947
81767
|
loc: {
|
|
80948
81768
|
start: {
|
|
81769
|
+
line: 29,
|
|
81770
|
+
column: 17
|
|
81771
|
+
},
|
|
81772
|
+
end: {
|
|
81773
|
+
line: 29,
|
|
81774
|
+
column: 58
|
|
81775
|
+
}
|
|
81776
|
+
},
|
|
81777
|
+
type: "cond-expr",
|
|
81778
|
+
locations: [{
|
|
81779
|
+
start: {
|
|
81780
|
+
line: 29,
|
|
81781
|
+
column: 38
|
|
81782
|
+
},
|
|
81783
|
+
end: {
|
|
81784
|
+
line: 29,
|
|
81785
|
+
column: 49
|
|
81786
|
+
}
|
|
81787
|
+
}, {
|
|
81788
|
+
start: {
|
|
81789
|
+
line: 29,
|
|
81790
|
+
column: 52
|
|
81791
|
+
},
|
|
81792
|
+
end: {
|
|
81793
|
+
line: 29,
|
|
81794
|
+
column: 58
|
|
81795
|
+
}
|
|
81796
|
+
}],
|
|
81797
|
+
line: 29
|
|
81798
|
+
}
|
|
81799
|
+
},
|
|
81800
|
+
s: {
|
|
81801
|
+
"0": 0,
|
|
81802
|
+
"1": 0,
|
|
81803
|
+
"2": 0,
|
|
81804
|
+
"3": 0,
|
|
81805
|
+
"4": 0,
|
|
81806
|
+
"5": 0,
|
|
81807
|
+
"6": 0,
|
|
81808
|
+
"7": 0
|
|
81809
|
+
},
|
|
81810
|
+
f: {
|
|
81811
|
+
"0": 0,
|
|
81812
|
+
"1": 0,
|
|
81813
|
+
"2": 0,
|
|
81814
|
+
"3": 0
|
|
81815
|
+
},
|
|
81816
|
+
b: {
|
|
81817
|
+
"0": [0, 0],
|
|
81818
|
+
"1": [0, 0]
|
|
81819
|
+
},
|
|
81820
|
+
_coverageSchema: "1a1c01bbd47fc00a2c39e90264f33305004495a9",
|
|
81821
|
+
hash: "ee87fa2f4bc8ea864e388ade290f6aeb5c5527ae"
|
|
81822
|
+
};
|
|
81823
|
+
var coverage = global[gcv] || (global[gcv] = {});
|
|
81824
|
+
if (!coverage[path] || coverage[path].hash !== hash) {
|
|
81825
|
+
coverage[path] = coverageData;
|
|
81826
|
+
}
|
|
81827
|
+
var actualCoverage = coverage[path];
|
|
81828
|
+
{
|
|
81829
|
+
// @ts-ignore
|
|
81830
|
+
cov_15b9syaiuk = function () {
|
|
81831
|
+
return actualCoverage;
|
|
81832
|
+
};
|
|
81833
|
+
}
|
|
81834
|
+
return actualCoverage;
|
|
81835
|
+
}
|
|
81836
|
+
cov_15b9syaiuk();
|
|
81837
|
+
cov_15b9syaiuk().s[0]++;
|
|
81838
|
+
var Menu$7 = function Menu(_ref) {
|
|
81839
|
+
var align = _ref.align,
|
|
81840
|
+
editor = _ref.editor,
|
|
81841
|
+
updateAttributes = _ref.updateAttributes,
|
|
81842
|
+
deleteNode = _ref.deleteNode;
|
|
81843
|
+
cov_15b9syaiuk().f[0]++;
|
|
81844
|
+
var menuOptions = (cov_15b9syaiuk().s[1]++, buildImageOptions());
|
|
81845
|
+
cov_15b9syaiuk().s[2]++;
|
|
81846
|
+
var handleClick = function handleClick(align) {
|
|
81847
|
+
cov_15b9syaiuk().f[1]++;
|
|
81848
|
+
cov_15b9syaiuk().s[3]++;
|
|
81849
|
+
align ? (cov_15b9syaiuk().b[0][0]++, updateAttributes({
|
|
81850
|
+
align: align
|
|
81851
|
+
})) : (cov_15b9syaiuk().b[0][1]++, deleteNode());
|
|
81852
|
+
cov_15b9syaiuk().s[4]++;
|
|
81853
|
+
editor.commands.focus();
|
|
81854
|
+
};
|
|
81855
|
+
cov_15b9syaiuk().s[5]++;
|
|
81856
|
+
return /*#__PURE__*/React__default.createElement(Dropdown$1, {
|
|
81857
|
+
buttonProps: {
|
|
81858
|
+
className: "neeto-editor__image-menu-btn"
|
|
81859
|
+
},
|
|
81860
|
+
buttonSize: "small",
|
|
81861
|
+
buttonStyle: "secondary",
|
|
81862
|
+
className: "neeto-editor__image-menu",
|
|
81863
|
+
icon: MenuHorizontal,
|
|
81864
|
+
position: "top"
|
|
81865
|
+
}, menuOptions.map(function (_ref2) {
|
|
81866
|
+
var Icon = _ref2.Icon,
|
|
81867
|
+
optionName = _ref2.optionName,
|
|
81868
|
+
alignPos = _ref2.alignPos;
|
|
81869
|
+
cov_15b9syaiuk().f[2]++;
|
|
81870
|
+
cov_15b9syaiuk().s[6]++;
|
|
81871
|
+
return /*#__PURE__*/React__default.createElement(Button$1, {
|
|
81872
|
+
icon: Icon,
|
|
81873
|
+
key: optionName,
|
|
81874
|
+
style: alignPos === align ? (cov_15b9syaiuk().b[1][0]++, "secondary") : (cov_15b9syaiuk().b[1][1]++, "text"),
|
|
81875
|
+
tooltipProps: {
|
|
81876
|
+
content: optionName,
|
|
81877
|
+
position: "top"
|
|
81878
|
+
},
|
|
81879
|
+
onClick: function onClick() {
|
|
81880
|
+
cov_15b9syaiuk().f[3]++;
|
|
81881
|
+
cov_15b9syaiuk().s[7]++;
|
|
81882
|
+
return handleClick(alignPos);
|
|
81883
|
+
}
|
|
81884
|
+
});
|
|
81885
|
+
}));
|
|
81886
|
+
};
|
|
81887
|
+
|
|
81888
|
+
function cov_19t30othsf() {
|
|
81889
|
+
var path = "/home/runner/work/neeto-editor/neeto-editor/src/components/Editor/CustomExtensions/Embeds/EmbedComponent.jsx";
|
|
81890
|
+
var hash = "1eebce8678f563ce443ab0890015febf872e05b3";
|
|
81891
|
+
var global = new Function("return this")();
|
|
81892
|
+
var gcv = "__coverage__";
|
|
81893
|
+
var coverageData = {
|
|
81894
|
+
path: "/home/runner/work/neeto-editor/neeto-editor/src/components/Editor/CustomExtensions/Embeds/EmbedComponent.jsx",
|
|
81895
|
+
statementMap: {
|
|
81896
|
+
"0": {
|
|
81897
|
+
start: {
|
|
81898
|
+
line: 9,
|
|
81899
|
+
column: 23
|
|
81900
|
+
},
|
|
81901
|
+
end: {
|
|
81902
|
+
line: 57,
|
|
81903
|
+
column: 1
|
|
81904
|
+
}
|
|
81905
|
+
},
|
|
81906
|
+
"1": {
|
|
81907
|
+
start: {
|
|
81908
|
+
line: 16,
|
|
81909
|
+
column: 41
|
|
81910
|
+
},
|
|
81911
|
+
end: {
|
|
81912
|
+
line: 16,
|
|
81913
|
+
column: 51
|
|
81914
|
+
}
|
|
81915
|
+
},
|
|
81916
|
+
"2": {
|
|
81917
|
+
start: {
|
|
81918
|
+
line: 17,
|
|
81919
|
+
column: 19
|
|
81920
|
+
},
|
|
81921
|
+
end: {
|
|
81922
|
+
line: 17,
|
|
81923
|
+
column: 25
|
|
81924
|
+
}
|
|
81925
|
+
},
|
|
81926
|
+
"3": {
|
|
81927
|
+
start: {
|
|
81928
|
+
line: 18,
|
|
81929
|
+
column: 15
|
|
81930
|
+
},
|
|
81931
|
+
end: {
|
|
81932
|
+
line: 18,
|
|
81933
|
+
column: 24
|
|
81934
|
+
}
|
|
81935
|
+
},
|
|
81936
|
+
"4": {
|
|
81937
|
+
start: {
|
|
81938
|
+
line: 19,
|
|
81939
|
+
column: 14
|
|
81940
|
+
},
|
|
81941
|
+
end: {
|
|
81942
|
+
line: 19,
|
|
81943
|
+
column: 22
|
|
81944
|
+
}
|
|
81945
|
+
},
|
|
81946
|
+
"5": {
|
|
81947
|
+
start: {
|
|
81948
|
+
line: 21,
|
|
81949
|
+
column: 2
|
|
81950
|
+
},
|
|
81951
|
+
end: {
|
|
81952
|
+
line: 56,
|
|
81953
|
+
column: 4
|
|
81954
|
+
}
|
|
81955
|
+
},
|
|
81956
|
+
"6": {
|
|
81957
|
+
start: {
|
|
81958
|
+
line: 30,
|
|
81959
|
+
column: 10
|
|
81960
|
+
},
|
|
81961
|
+
end: {
|
|
81962
|
+
line: 30,
|
|
81963
|
+
column: 36
|
|
81964
|
+
}
|
|
81965
|
+
},
|
|
81966
|
+
"7": {
|
|
81967
|
+
start: {
|
|
81968
|
+
line: 31,
|
|
81969
|
+
column: 10
|
|
81970
|
+
},
|
|
81971
|
+
end: {
|
|
81972
|
+
line: 31,
|
|
81973
|
+
column: 34
|
|
81974
|
+
}
|
|
81975
|
+
},
|
|
81976
|
+
"8": {
|
|
81977
|
+
start: {
|
|
81978
|
+
line: 32,
|
|
81979
|
+
column: 10
|
|
81980
|
+
},
|
|
81981
|
+
end: {
|
|
81982
|
+
line: 43,
|
|
81983
|
+
column: 12
|
|
81984
|
+
}
|
|
81985
|
+
},
|
|
81986
|
+
"9": {
|
|
81987
|
+
start: {
|
|
81988
|
+
line: 44,
|
|
81989
|
+
column: 10
|
|
81990
|
+
},
|
|
81991
|
+
end: {
|
|
81992
|
+
line: 44,
|
|
81993
|
+
column: 34
|
|
81994
|
+
}
|
|
81995
|
+
}
|
|
81996
|
+
},
|
|
81997
|
+
fnMap: {
|
|
81998
|
+
"0": {
|
|
81999
|
+
name: "(anonymous_0)",
|
|
82000
|
+
decl: {
|
|
82001
|
+
start: {
|
|
82002
|
+
line: 9,
|
|
82003
|
+
column: 23
|
|
82004
|
+
},
|
|
82005
|
+
end: {
|
|
82006
|
+
line: 9,
|
|
82007
|
+
column: 24
|
|
82008
|
+
}
|
|
82009
|
+
},
|
|
82010
|
+
loc: {
|
|
82011
|
+
start: {
|
|
82012
|
+
line: 15,
|
|
82013
|
+
column: 6
|
|
82014
|
+
},
|
|
82015
|
+
end: {
|
|
82016
|
+
line: 57,
|
|
82017
|
+
column: 1
|
|
82018
|
+
}
|
|
82019
|
+
},
|
|
82020
|
+
line: 15
|
|
82021
|
+
},
|
|
82022
|
+
"1": {
|
|
82023
|
+
name: "(anonymous_1)",
|
|
82024
|
+
decl: {
|
|
82025
|
+
start: {
|
|
82026
|
+
line: 29,
|
|
82027
|
+
column: 22
|
|
82028
|
+
},
|
|
82029
|
+
end: {
|
|
82030
|
+
line: 29,
|
|
82031
|
+
column: 23
|
|
82032
|
+
}
|
|
82033
|
+
},
|
|
82034
|
+
loc: {
|
|
82035
|
+
start: {
|
|
82036
|
+
line: 29,
|
|
82037
|
+
column: 51
|
|
82038
|
+
},
|
|
82039
|
+
end: {
|
|
82040
|
+
line: 45,
|
|
82041
|
+
column: 9
|
|
82042
|
+
}
|
|
82043
|
+
},
|
|
82044
|
+
line: 29
|
|
82045
|
+
}
|
|
82046
|
+
},
|
|
82047
|
+
branchMap: {},
|
|
82048
|
+
s: {
|
|
82049
|
+
"0": 0,
|
|
82050
|
+
"1": 0,
|
|
82051
|
+
"2": 0,
|
|
82052
|
+
"3": 0,
|
|
82053
|
+
"4": 0,
|
|
82054
|
+
"5": 0,
|
|
82055
|
+
"6": 0,
|
|
82056
|
+
"7": 0,
|
|
82057
|
+
"8": 0,
|
|
82058
|
+
"9": 0
|
|
82059
|
+
},
|
|
82060
|
+
f: {
|
|
82061
|
+
"0": 0,
|
|
82062
|
+
"1": 0
|
|
82063
|
+
},
|
|
82064
|
+
b: {},
|
|
82065
|
+
_coverageSchema: "1a1c01bbd47fc00a2c39e90264f33305004495a9",
|
|
82066
|
+
hash: "1eebce8678f563ce443ab0890015febf872e05b3"
|
|
82067
|
+
};
|
|
82068
|
+
var coverage = global[gcv] || (global[gcv] = {});
|
|
82069
|
+
if (!coverage[path] || coverage[path].hash !== hash) {
|
|
82070
|
+
coverage[path] = coverageData;
|
|
82071
|
+
}
|
|
82072
|
+
var actualCoverage = coverage[path];
|
|
82073
|
+
{
|
|
82074
|
+
// @ts-ignore
|
|
82075
|
+
cov_19t30othsf = function () {
|
|
82076
|
+
return actualCoverage;
|
|
82077
|
+
};
|
|
82078
|
+
}
|
|
82079
|
+
return actualCoverage;
|
|
82080
|
+
}
|
|
82081
|
+
cov_19t30othsf();
|
|
82082
|
+
cov_19t30othsf().s[0]++;
|
|
82083
|
+
var EmbedComponent = function EmbedComponent(_ref) {
|
|
82084
|
+
var node = _ref.node,
|
|
82085
|
+
editor = _ref.editor,
|
|
82086
|
+
getPos = _ref.getPos,
|
|
82087
|
+
updateAttributes = _ref.updateAttributes,
|
|
82088
|
+
deleteNode = _ref.deleteNode;
|
|
82089
|
+
cov_19t30othsf().f[0]++;
|
|
82090
|
+
var _ref2 = (cov_19t30othsf().s[1]++, node.attrs),
|
|
82091
|
+
figheight = _ref2.figheight,
|
|
82092
|
+
figwidth = _ref2.figwidth,
|
|
82093
|
+
align = _ref2.align;
|
|
82094
|
+
var _ref3 = (cov_19t30othsf().s[2]++, editor),
|
|
82095
|
+
view = _ref3.view;
|
|
82096
|
+
var height = (cov_19t30othsf().s[3]++, figheight);
|
|
82097
|
+
var width = (cov_19t30othsf().s[4]++, figwidth);
|
|
82098
|
+
cov_19t30othsf().s[5]++;
|
|
82099
|
+
return /*#__PURE__*/React__default.createElement(NodeViewWrapper, {
|
|
82100
|
+
className: "neeto-editor__video-wrapper neeto-editor__video--".concat(align)
|
|
82101
|
+
}, /*#__PURE__*/React__default.createElement(Resizable, {
|
|
82102
|
+
lockAspectRatio: true,
|
|
82103
|
+
className: "neeto-editor__video-iframe",
|
|
82104
|
+
size: {
|
|
82105
|
+
height: height,
|
|
82106
|
+
width: width
|
|
82107
|
+
},
|
|
82108
|
+
onResizeStop: function onResizeStop(_event, _direction, ref) {
|
|
82109
|
+
cov_19t30othsf().f[1]++;
|
|
82110
|
+
cov_19t30othsf().s[6]++;
|
|
82111
|
+
height = ref.offsetHeight;
|
|
82112
|
+
cov_19t30othsf().s[7]++;
|
|
82113
|
+
width = ref.offsetWidth;
|
|
82114
|
+
cov_19t30othsf().s[8]++;
|
|
82115
|
+
view.dispatch(view.state.tr.setNodeMarkup(getPos(), undefined, mergeRight(node.attrs, {
|
|
82116
|
+
figheight: height,
|
|
82117
|
+
figwidth: width,
|
|
82118
|
+
height: height,
|
|
82119
|
+
width: width
|
|
82120
|
+
})));
|
|
82121
|
+
cov_19t30othsf().s[9]++;
|
|
82122
|
+
editor.commands.focus();
|
|
82123
|
+
}
|
|
82124
|
+
}, /*#__PURE__*/React__default.createElement(Menu$7, {
|
|
82125
|
+
align: align,
|
|
82126
|
+
deleteNode: deleteNode,
|
|
82127
|
+
editor: editor,
|
|
82128
|
+
updateAttributes: updateAttributes
|
|
82129
|
+
}), /*#__PURE__*/React__default.createElement("iframe", node.attrs)));
|
|
82130
|
+
};
|
|
82131
|
+
|
|
82132
|
+
function cov_xd1lqdp2c() {
|
|
82133
|
+
var path = "/home/runner/work/neeto-editor/neeto-editor/src/components/Editor/CustomExtensions/Embeds/ExtensionConfig.js";
|
|
82134
|
+
var hash = "7456025e518ab7052d1641085d52037ded31a25f";
|
|
82135
|
+
var global = new Function("return this")();
|
|
82136
|
+
var gcv = "__coverage__";
|
|
82137
|
+
var coverageData = {
|
|
82138
|
+
path: "/home/runner/work/neeto-editor/neeto-editor/src/components/Editor/CustomExtensions/Embeds/ExtensionConfig.js",
|
|
82139
|
+
statementMap: {
|
|
82140
|
+
"0": {
|
|
82141
|
+
start: {
|
|
82142
|
+
line: 14,
|
|
82143
|
+
column: 4
|
|
82144
|
+
},
|
|
82145
|
+
end: {
|
|
82146
|
+
line: 17,
|
|
82147
|
+
column: 6
|
|
82148
|
+
}
|
|
82149
|
+
},
|
|
82150
|
+
"1": {
|
|
82151
|
+
start: {
|
|
82152
|
+
line: 21,
|
|
82153
|
+
column: 4
|
|
82154
|
+
},
|
|
82155
|
+
end: {
|
|
82156
|
+
line: 21,
|
|
82157
|
+
column: 31
|
|
82158
|
+
}
|
|
82159
|
+
},
|
|
82160
|
+
"2": {
|
|
82161
|
+
start: {
|
|
82162
|
+
line: 25,
|
|
82163
|
+
column: 4
|
|
82164
|
+
},
|
|
82165
|
+
end: {
|
|
82166
|
+
line: 25,
|
|
82167
|
+
column: 52
|
|
82168
|
+
}
|
|
82169
|
+
},
|
|
82170
|
+
"3": {
|
|
82171
|
+
start: {
|
|
82172
|
+
line: 31,
|
|
82173
|
+
column: 4
|
|
82174
|
+
},
|
|
82175
|
+
end: {
|
|
82176
|
+
line: 67,
|
|
82177
|
+
column: 6
|
|
82178
|
+
}
|
|
82179
|
+
},
|
|
82180
|
+
"4": {
|
|
82181
|
+
start: {
|
|
82182
|
+
line: 55,
|
|
82183
|
+
column: 30
|
|
82184
|
+
},
|
|
82185
|
+
end: {
|
|
82186
|
+
line: 55,
|
|
82187
|
+
column: 63
|
|
82188
|
+
}
|
|
82189
|
+
},
|
|
82190
|
+
"5": {
|
|
82191
|
+
start: {
|
|
82192
|
+
line: 60,
|
|
82193
|
+
column: 30
|
|
82194
|
+
},
|
|
82195
|
+
end: {
|
|
82196
|
+
line: 60,
|
|
82197
|
+
column: 62
|
|
82198
|
+
}
|
|
82199
|
+
},
|
|
82200
|
+
"6": {
|
|
82201
|
+
start: {
|
|
82202
|
+
line: 65,
|
|
82203
|
+
column: 30
|
|
82204
|
+
},
|
|
82205
|
+
end: {
|
|
82206
|
+
line: 65,
|
|
82207
|
+
column: 59
|
|
82208
|
+
}
|
|
82209
|
+
},
|
|
82210
|
+
"7": {
|
|
82211
|
+
start: {
|
|
82212
|
+
line: 71,
|
|
82213
|
+
column: 4
|
|
82214
|
+
},
|
|
82215
|
+
end: {
|
|
82216
|
+
line: 75,
|
|
82217
|
+
column: 6
|
|
82218
|
+
}
|
|
82219
|
+
},
|
|
82220
|
+
"8": {
|
|
82221
|
+
start: {
|
|
82222
|
+
line: 79,
|
|
82223
|
+
column: 43
|
|
82224
|
+
},
|
|
82225
|
+
end: {
|
|
82226
|
+
line: 79,
|
|
82227
|
+
column: 53
|
|
82228
|
+
}
|
|
82229
|
+
},
|
|
82230
|
+
"9": {
|
|
82231
|
+
start: {
|
|
82232
|
+
line: 81,
|
|
82233
|
+
column: 4
|
|
82234
|
+
},
|
|
82235
|
+
end: {
|
|
82236
|
+
line: 99,
|
|
82237
|
+
column: 6
|
|
82238
|
+
}
|
|
82239
|
+
},
|
|
82240
|
+
"10": {
|
|
82241
|
+
start: {
|
|
82242
|
+
line: 103,
|
|
82243
|
+
column: 4
|
|
82244
|
+
},
|
|
82245
|
+
end: {
|
|
82246
|
+
line: 103,
|
|
82247
|
+
column: 49
|
|
82248
|
+
}
|
|
82249
|
+
},
|
|
82250
|
+
"11": {
|
|
82251
|
+
start: {
|
|
82252
|
+
line: 107,
|
|
82253
|
+
column: 4
|
|
82254
|
+
},
|
|
82255
|
+
end: {
|
|
82256
|
+
line: 115,
|
|
82257
|
+
column: 6
|
|
82258
|
+
}
|
|
82259
|
+
},
|
|
82260
|
+
"12": {
|
|
82261
|
+
start: {
|
|
82262
|
+
line: 110,
|
|
82263
|
+
column: 8
|
|
82264
|
+
},
|
|
82265
|
+
end: {
|
|
82266
|
+
line: 114,
|
|
82267
|
+
column: 12
|
|
82268
|
+
}
|
|
82269
|
+
},
|
|
82270
|
+
"13": {
|
|
82271
|
+
start: {
|
|
82272
|
+
line: 111,
|
|
82273
|
+
column: 10
|
|
82274
|
+
},
|
|
82275
|
+
end: {
|
|
82276
|
+
line: 114,
|
|
82277
|
+
column: 12
|
|
82278
|
+
}
|
|
82279
|
+
},
|
|
82280
|
+
"14": {
|
|
82281
|
+
start: {
|
|
82282
|
+
line: 119,
|
|
82283
|
+
column: 4
|
|
82284
|
+
},
|
|
82285
|
+
end: {
|
|
82286
|
+
line: 145,
|
|
82287
|
+
column: 6
|
|
82288
|
+
}
|
|
82289
|
+
},
|
|
82290
|
+
"15": {
|
|
82291
|
+
start: {
|
|
82292
|
+
line: 123,
|
|
82293
|
+
column: 10
|
|
82294
|
+
},
|
|
82295
|
+
end: {
|
|
82296
|
+
line: 123,
|
|
82297
|
+
column: 48
|
|
82298
|
+
}
|
|
82299
|
+
},
|
|
82300
|
+
"16": {
|
|
82301
|
+
start: {
|
|
82302
|
+
line: 124,
|
|
82303
|
+
column: 10
|
|
82304
|
+
},
|
|
82305
|
+
end: {
|
|
82306
|
+
line: 126,
|
|
82307
|
+
column: 12
|
|
82308
|
+
}
|
|
82309
|
+
},
|
|
82310
|
+
"17": {
|
|
82311
|
+
start: {
|
|
82312
|
+
line: 128,
|
|
82313
|
+
column: 31
|
|
82314
|
+
},
|
|
82315
|
+
end: {
|
|
82316
|
+
line: 128,
|
|
82317
|
+
column: 52
|
|
82318
|
+
}
|
|
82319
|
+
},
|
|
82320
|
+
"18": {
|
|
82321
|
+
start: {
|
|
82322
|
+
line: 129,
|
|
82323
|
+
column: 10
|
|
82324
|
+
},
|
|
82325
|
+
end: {
|
|
82326
|
+
line: 142,
|
|
82327
|
+
column: 11
|
|
82328
|
+
}
|
|
82329
|
+
},
|
|
82330
|
+
"19": {
|
|
82331
|
+
start: {
|
|
82332
|
+
line: 130,
|
|
82333
|
+
column: 25
|
|
82334
|
+
},
|
|
82335
|
+
end: {
|
|
82336
|
+
line: 132,
|
|
82337
|
+
column: 14
|
|
82338
|
+
}
|
|
82339
|
+
},
|
|
82340
|
+
"20": {
|
|
82341
|
+
start: {
|
|
82342
|
+
line: 133,
|
|
82343
|
+
column: 12
|
|
82344
|
+
},
|
|
82345
|
+
end: {
|
|
82346
|
+
line: 133,
|
|
82347
|
+
column: 46
|
|
82348
|
+
}
|
|
82349
|
+
},
|
|
82350
|
+
"21": {
|
|
82351
|
+
start: {
|
|
82352
|
+
line: 134,
|
|
82353
|
+
column: 12
|
|
82354
|
+
},
|
|
82355
|
+
end: {
|
|
82356
|
+
line: 137,
|
|
82357
|
+
column: 14
|
|
82358
|
+
}
|
|
82359
|
+
},
|
|
82360
|
+
"22": {
|
|
82361
|
+
start: {
|
|
82362
|
+
line: 139,
|
|
82363
|
+
column: 12
|
|
82364
|
+
},
|
|
82365
|
+
end: {
|
|
82366
|
+
line: 141,
|
|
82367
|
+
column: 14
|
|
82368
|
+
}
|
|
82369
|
+
}
|
|
82370
|
+
},
|
|
82371
|
+
fnMap: {
|
|
82372
|
+
"0": {
|
|
82373
|
+
name: "(anonymous_0)",
|
|
82374
|
+
decl: {
|
|
82375
|
+
start: {
|
|
82376
|
+
line: 13,
|
|
82377
|
+
column: 2
|
|
82378
|
+
},
|
|
82379
|
+
end: {
|
|
82380
|
+
line: 13,
|
|
82381
|
+
column: 3
|
|
82382
|
+
}
|
|
82383
|
+
},
|
|
82384
|
+
loc: {
|
|
82385
|
+
start: {
|
|
82386
|
+
line: 13,
|
|
82387
|
+
column: 15
|
|
82388
|
+
},
|
|
82389
|
+
end: {
|
|
80949
82390
|
line: 18,
|
|
80950
|
-
column:
|
|
82391
|
+
column: 3
|
|
82392
|
+
}
|
|
82393
|
+
},
|
|
82394
|
+
line: 13
|
|
82395
|
+
},
|
|
82396
|
+
"1": {
|
|
82397
|
+
name: "(anonymous_1)",
|
|
82398
|
+
decl: {
|
|
82399
|
+
start: {
|
|
82400
|
+
line: 20,
|
|
82401
|
+
column: 2
|
|
80951
82402
|
},
|
|
80952
82403
|
end: {
|
|
80953
82404
|
line: 20,
|
|
80954
82405
|
column: 3
|
|
80955
82406
|
}
|
|
80956
82407
|
},
|
|
80957
|
-
|
|
82408
|
+
loc: {
|
|
82409
|
+
start: {
|
|
82410
|
+
line: 20,
|
|
82411
|
+
column: 11
|
|
82412
|
+
},
|
|
82413
|
+
end: {
|
|
82414
|
+
line: 22,
|
|
82415
|
+
column: 3
|
|
82416
|
+
}
|
|
82417
|
+
},
|
|
82418
|
+
line: 20
|
|
80958
82419
|
},
|
|
80959
82420
|
"2": {
|
|
80960
82421
|
name: "(anonymous_2)",
|
|
80961
82422
|
decl: {
|
|
80962
82423
|
start: {
|
|
80963
|
-
line:
|
|
82424
|
+
line: 24,
|
|
80964
82425
|
column: 2
|
|
80965
82426
|
},
|
|
80966
82427
|
end: {
|
|
80967
|
-
line:
|
|
82428
|
+
line: 24,
|
|
80968
82429
|
column: 3
|
|
80969
82430
|
}
|
|
80970
82431
|
},
|
|
80971
82432
|
loc: {
|
|
80972
82433
|
start: {
|
|
80973
|
-
line:
|
|
82434
|
+
line: 24,
|
|
80974
82435
|
column: 10
|
|
80975
82436
|
},
|
|
80976
82437
|
end: {
|
|
80977
|
-
line:
|
|
82438
|
+
line: 26,
|
|
80978
82439
|
column: 3
|
|
80979
82440
|
}
|
|
80980
82441
|
},
|
|
80981
|
-
line:
|
|
82442
|
+
line: 24
|
|
80982
82443
|
},
|
|
80983
82444
|
"3": {
|
|
80984
82445
|
name: "(anonymous_3)",
|
|
80985
82446
|
decl: {
|
|
80986
82447
|
start: {
|
|
80987
|
-
line:
|
|
82448
|
+
line: 30,
|
|
80988
82449
|
column: 2
|
|
80989
82450
|
},
|
|
80990
82451
|
end: {
|
|
80991
|
-
line:
|
|
82452
|
+
line: 30,
|
|
80992
82453
|
column: 3
|
|
80993
82454
|
}
|
|
80994
82455
|
},
|
|
80995
82456
|
loc: {
|
|
80996
82457
|
start: {
|
|
80997
|
-
line:
|
|
82458
|
+
line: 30,
|
|
80998
82459
|
column: 18
|
|
80999
82460
|
},
|
|
81000
82461
|
end: {
|
|
81001
|
-
line:
|
|
82462
|
+
line: 68,
|
|
81002
82463
|
column: 3
|
|
81003
82464
|
}
|
|
81004
82465
|
},
|
|
81005
|
-
line:
|
|
82466
|
+
line: 30
|
|
81006
82467
|
},
|
|
81007
82468
|
"4": {
|
|
81008
82469
|
name: "(anonymous_4)",
|
|
81009
82470
|
decl: {
|
|
81010
82471
|
start: {
|
|
81011
|
-
line:
|
|
82472
|
+
line: 55,
|
|
82473
|
+
column: 19
|
|
82474
|
+
},
|
|
82475
|
+
end: {
|
|
82476
|
+
line: 55,
|
|
82477
|
+
column: 20
|
|
82478
|
+
}
|
|
82479
|
+
},
|
|
82480
|
+
loc: {
|
|
82481
|
+
start: {
|
|
82482
|
+
line: 55,
|
|
82483
|
+
column: 30
|
|
82484
|
+
},
|
|
82485
|
+
end: {
|
|
82486
|
+
line: 55,
|
|
82487
|
+
column: 63
|
|
82488
|
+
}
|
|
82489
|
+
},
|
|
82490
|
+
line: 55
|
|
82491
|
+
},
|
|
82492
|
+
"5": {
|
|
82493
|
+
name: "(anonymous_5)",
|
|
82494
|
+
decl: {
|
|
82495
|
+
start: {
|
|
82496
|
+
line: 60,
|
|
82497
|
+
column: 19
|
|
82498
|
+
},
|
|
82499
|
+
end: {
|
|
82500
|
+
line: 60,
|
|
82501
|
+
column: 20
|
|
82502
|
+
}
|
|
82503
|
+
},
|
|
82504
|
+
loc: {
|
|
82505
|
+
start: {
|
|
82506
|
+
line: 60,
|
|
82507
|
+
column: 30
|
|
82508
|
+
},
|
|
82509
|
+
end: {
|
|
82510
|
+
line: 60,
|
|
82511
|
+
column: 62
|
|
82512
|
+
}
|
|
82513
|
+
},
|
|
82514
|
+
line: 60
|
|
82515
|
+
},
|
|
82516
|
+
"6": {
|
|
82517
|
+
name: "(anonymous_6)",
|
|
82518
|
+
decl: {
|
|
82519
|
+
start: {
|
|
82520
|
+
line: 65,
|
|
82521
|
+
column: 19
|
|
82522
|
+
},
|
|
82523
|
+
end: {
|
|
82524
|
+
line: 65,
|
|
82525
|
+
column: 20
|
|
82526
|
+
}
|
|
82527
|
+
},
|
|
82528
|
+
loc: {
|
|
82529
|
+
start: {
|
|
82530
|
+
line: 65,
|
|
82531
|
+
column: 30
|
|
82532
|
+
},
|
|
82533
|
+
end: {
|
|
82534
|
+
line: 65,
|
|
82535
|
+
column: 59
|
|
82536
|
+
}
|
|
82537
|
+
},
|
|
82538
|
+
line: 65
|
|
82539
|
+
},
|
|
82540
|
+
"7": {
|
|
82541
|
+
name: "(anonymous_7)",
|
|
82542
|
+
decl: {
|
|
82543
|
+
start: {
|
|
82544
|
+
line: 70,
|
|
81012
82545
|
column: 2
|
|
81013
82546
|
},
|
|
81014
82547
|
end: {
|
|
81015
|
-
line:
|
|
82548
|
+
line: 70,
|
|
81016
82549
|
column: 3
|
|
81017
82550
|
}
|
|
81018
82551
|
},
|
|
81019
82552
|
loc: {
|
|
81020
82553
|
start: {
|
|
81021
|
-
line:
|
|
82554
|
+
line: 70,
|
|
81022
82555
|
column: 14
|
|
81023
82556
|
},
|
|
81024
82557
|
end: {
|
|
81025
|
-
line:
|
|
82558
|
+
line: 76,
|
|
81026
82559
|
column: 3
|
|
81027
82560
|
}
|
|
81028
82561
|
},
|
|
81029
|
-
line:
|
|
82562
|
+
line: 70
|
|
81030
82563
|
},
|
|
81031
|
-
"
|
|
81032
|
-
name: "(
|
|
82564
|
+
"8": {
|
|
82565
|
+
name: "(anonymous_8)",
|
|
81033
82566
|
decl: {
|
|
81034
82567
|
start: {
|
|
81035
|
-
line:
|
|
82568
|
+
line: 78,
|
|
81036
82569
|
column: 2
|
|
81037
82570
|
},
|
|
81038
82571
|
end: {
|
|
81039
|
-
line:
|
|
82572
|
+
line: 78,
|
|
81040
82573
|
column: 3
|
|
81041
82574
|
}
|
|
81042
82575
|
},
|
|
81043
82576
|
loc: {
|
|
81044
82577
|
start: {
|
|
81045
|
-
line:
|
|
81046
|
-
column:
|
|
82578
|
+
line: 78,
|
|
82579
|
+
column: 39
|
|
81047
82580
|
},
|
|
81048
82581
|
end: {
|
|
81049
|
-
line:
|
|
82582
|
+
line: 100,
|
|
81050
82583
|
column: 3
|
|
81051
82584
|
}
|
|
81052
82585
|
},
|
|
81053
|
-
line:
|
|
82586
|
+
line: 78
|
|
81054
82587
|
},
|
|
81055
|
-
"
|
|
81056
|
-
name: "(
|
|
82588
|
+
"9": {
|
|
82589
|
+
name: "(anonymous_9)",
|
|
81057
82590
|
decl: {
|
|
81058
82591
|
start: {
|
|
81059
|
-
line:
|
|
82592
|
+
line: 102,
|
|
81060
82593
|
column: 2
|
|
81061
82594
|
},
|
|
81062
82595
|
end: {
|
|
81063
|
-
line:
|
|
82596
|
+
line: 102,
|
|
81064
82597
|
column: 3
|
|
81065
82598
|
}
|
|
81066
82599
|
},
|
|
81067
82600
|
loc: {
|
|
81068
82601
|
start: {
|
|
81069
|
-
line:
|
|
82602
|
+
line: 102,
|
|
81070
82603
|
column: 16
|
|
81071
82604
|
},
|
|
81072
82605
|
end: {
|
|
81073
|
-
line:
|
|
82606
|
+
line: 104,
|
|
81074
82607
|
column: 3
|
|
81075
82608
|
}
|
|
81076
82609
|
},
|
|
81077
|
-
line:
|
|
82610
|
+
line: 102
|
|
81078
82611
|
},
|
|
81079
|
-
"
|
|
81080
|
-
name: "(
|
|
82612
|
+
"10": {
|
|
82613
|
+
name: "(anonymous_10)",
|
|
81081
82614
|
decl: {
|
|
81082
82615
|
start: {
|
|
81083
|
-
line:
|
|
82616
|
+
line: 106,
|
|
82617
|
+
column: 2
|
|
82618
|
+
},
|
|
82619
|
+
end: {
|
|
82620
|
+
line: 106,
|
|
82621
|
+
column: 3
|
|
82622
|
+
}
|
|
82623
|
+
},
|
|
82624
|
+
loc: {
|
|
82625
|
+
start: {
|
|
82626
|
+
line: 106,
|
|
82627
|
+
column: 16
|
|
82628
|
+
},
|
|
82629
|
+
end: {
|
|
82630
|
+
line: 116,
|
|
82631
|
+
column: 3
|
|
82632
|
+
}
|
|
82633
|
+
},
|
|
82634
|
+
line: 106
|
|
82635
|
+
},
|
|
82636
|
+
"11": {
|
|
82637
|
+
name: "(anonymous_11)",
|
|
82638
|
+
decl: {
|
|
82639
|
+
start: {
|
|
82640
|
+
line: 109,
|
|
81084
82641
|
column: 8
|
|
81085
82642
|
},
|
|
81086
82643
|
end: {
|
|
81087
|
-
line:
|
|
82644
|
+
line: 109,
|
|
81088
82645
|
column: 9
|
|
81089
82646
|
}
|
|
81090
82647
|
},
|
|
81091
82648
|
loc: {
|
|
81092
82649
|
start: {
|
|
81093
|
-
line:
|
|
82650
|
+
line: 110,
|
|
81094
82651
|
column: 8
|
|
81095
82652
|
},
|
|
81096
82653
|
end: {
|
|
81097
|
-
line:
|
|
82654
|
+
line: 114,
|
|
81098
82655
|
column: 12
|
|
81099
82656
|
}
|
|
81100
82657
|
},
|
|
81101
|
-
line:
|
|
82658
|
+
line: 110
|
|
81102
82659
|
},
|
|
81103
|
-
"
|
|
81104
|
-
name: "(
|
|
82660
|
+
"12": {
|
|
82661
|
+
name: "(anonymous_12)",
|
|
81105
82662
|
decl: {
|
|
81106
82663
|
start: {
|
|
81107
|
-
line:
|
|
82664
|
+
line: 110,
|
|
81108
82665
|
column: 8
|
|
81109
82666
|
},
|
|
81110
82667
|
end: {
|
|
81111
|
-
line:
|
|
82668
|
+
line: 110,
|
|
81112
82669
|
column: 9
|
|
81113
82670
|
}
|
|
81114
82671
|
},
|
|
81115
82672
|
loc: {
|
|
81116
82673
|
start: {
|
|
81117
|
-
line:
|
|
82674
|
+
line: 111,
|
|
81118
82675
|
column: 10
|
|
81119
82676
|
},
|
|
81120
82677
|
end: {
|
|
81121
|
-
line:
|
|
82678
|
+
line: 114,
|
|
81122
82679
|
column: 12
|
|
81123
82680
|
}
|
|
81124
82681
|
},
|
|
81125
|
-
line:
|
|
82682
|
+
line: 111
|
|
81126
82683
|
},
|
|
81127
|
-
"
|
|
81128
|
-
name: "(
|
|
82684
|
+
"13": {
|
|
82685
|
+
name: "(anonymous_13)",
|
|
81129
82686
|
decl: {
|
|
81130
82687
|
start: {
|
|
81131
|
-
line:
|
|
82688
|
+
line: 118,
|
|
81132
82689
|
column: 2
|
|
81133
82690
|
},
|
|
81134
82691
|
end: {
|
|
81135
|
-
line:
|
|
82692
|
+
line: 118,
|
|
81136
82693
|
column: 3
|
|
81137
82694
|
}
|
|
81138
82695
|
},
|
|
81139
82696
|
loc: {
|
|
81140
82697
|
start: {
|
|
81141
|
-
line:
|
|
82698
|
+
line: 118,
|
|
81142
82699
|
column: 18
|
|
81143
82700
|
},
|
|
81144
82701
|
end: {
|
|
81145
|
-
line:
|
|
82702
|
+
line: 146,
|
|
81146
82703
|
column: 3
|
|
81147
82704
|
}
|
|
81148
82705
|
},
|
|
81149
|
-
line:
|
|
82706
|
+
line: 118
|
|
81150
82707
|
},
|
|
81151
|
-
"
|
|
81152
|
-
name: "(
|
|
82708
|
+
"14": {
|
|
82709
|
+
name: "(anonymous_14)",
|
|
81153
82710
|
decl: {
|
|
81154
82711
|
start: {
|
|
81155
|
-
line:
|
|
82712
|
+
line: 122,
|
|
81156
82713
|
column: 17
|
|
81157
82714
|
},
|
|
81158
82715
|
end: {
|
|
81159
|
-
line:
|
|
82716
|
+
line: 122,
|
|
81160
82717
|
column: 18
|
|
81161
82718
|
}
|
|
81162
82719
|
},
|
|
81163
82720
|
loc: {
|
|
81164
82721
|
start: {
|
|
81165
|
-
line:
|
|
82722
|
+
line: 122,
|
|
81166
82723
|
column: 46
|
|
81167
82724
|
},
|
|
81168
82725
|
end: {
|
|
81169
|
-
line:
|
|
82726
|
+
line: 143,
|
|
81170
82727
|
column: 9
|
|
81171
82728
|
}
|
|
81172
82729
|
},
|
|
81173
|
-
line:
|
|
82730
|
+
line: 122
|
|
81174
82731
|
}
|
|
81175
82732
|
},
|
|
81176
82733
|
branchMap: {
|
|
81177
82734
|
"0": {
|
|
81178
82735
|
loc: {
|
|
81179
82736
|
start: {
|
|
81180
|
-
line:
|
|
82737
|
+
line: 25,
|
|
81181
82738
|
column: 11
|
|
81182
82739
|
},
|
|
81183
82740
|
end: {
|
|
81184
|
-
line:
|
|
82741
|
+
line: 25,
|
|
81185
82742
|
column: 51
|
|
81186
82743
|
}
|
|
81187
82744
|
},
|
|
81188
82745
|
type: "cond-expr",
|
|
81189
82746
|
locations: [{
|
|
81190
82747
|
start: {
|
|
81191
|
-
line:
|
|
82748
|
+
line: 25,
|
|
81192
82749
|
column: 33
|
|
81193
82750
|
},
|
|
81194
82751
|
end: {
|
|
81195
|
-
line:
|
|
82752
|
+
line: 25,
|
|
81196
82753
|
column: 41
|
|
81197
82754
|
}
|
|
81198
82755
|
}, {
|
|
81199
82756
|
start: {
|
|
81200
|
-
line:
|
|
82757
|
+
line: 25,
|
|
81201
82758
|
column: 44
|
|
81202
82759
|
},
|
|
81203
82760
|
end: {
|
|
81204
|
-
line:
|
|
82761
|
+
line: 25,
|
|
81205
82762
|
column: 51
|
|
81206
82763
|
}
|
|
81207
82764
|
}],
|
|
81208
|
-
line:
|
|
82765
|
+
line: 25
|
|
81209
82766
|
},
|
|
81210
82767
|
"1": {
|
|
81211
82768
|
loc: {
|
|
81212
82769
|
start: {
|
|
81213
|
-
line:
|
|
82770
|
+
line: 129,
|
|
81214
82771
|
column: 10
|
|
81215
82772
|
},
|
|
81216
82773
|
end: {
|
|
81217
|
-
line:
|
|
82774
|
+
line: 142,
|
|
81218
82775
|
column: 11
|
|
81219
82776
|
}
|
|
81220
82777
|
},
|
|
81221
82778
|
type: "if",
|
|
81222
82779
|
locations: [{
|
|
81223
82780
|
start: {
|
|
81224
|
-
line:
|
|
82781
|
+
line: 129,
|
|
81225
82782
|
column: 10
|
|
81226
82783
|
},
|
|
81227
82784
|
end: {
|
|
81228
|
-
line:
|
|
82785
|
+
line: 142,
|
|
81229
82786
|
column: 11
|
|
81230
82787
|
}
|
|
81231
82788
|
}, {
|
|
@@ -81238,7 +82795,7 @@ function cov_xd1lqdp2c() {
|
|
|
81238
82795
|
column: undefined
|
|
81239
82796
|
}
|
|
81240
82797
|
}],
|
|
81241
|
-
line:
|
|
82798
|
+
line: 129
|
|
81242
82799
|
}
|
|
81243
82800
|
},
|
|
81244
82801
|
s: {
|
|
@@ -81259,7 +82816,12 @@ function cov_xd1lqdp2c() {
|
|
|
81259
82816
|
"14": 0,
|
|
81260
82817
|
"15": 0,
|
|
81261
82818
|
"16": 0,
|
|
81262
|
-
"17": 0
|
|
82819
|
+
"17": 0,
|
|
82820
|
+
"18": 0,
|
|
82821
|
+
"19": 0,
|
|
82822
|
+
"20": 0,
|
|
82823
|
+
"21": 0,
|
|
82824
|
+
"22": 0
|
|
81263
82825
|
},
|
|
81264
82826
|
f: {
|
|
81265
82827
|
"0": 0,
|
|
@@ -81272,14 +82834,18 @@ function cov_xd1lqdp2c() {
|
|
|
81272
82834
|
"7": 0,
|
|
81273
82835
|
"8": 0,
|
|
81274
82836
|
"9": 0,
|
|
81275
|
-
"10": 0
|
|
82837
|
+
"10": 0,
|
|
82838
|
+
"11": 0,
|
|
82839
|
+
"12": 0,
|
|
82840
|
+
"13": 0,
|
|
82841
|
+
"14": 0
|
|
81276
82842
|
},
|
|
81277
82843
|
b: {
|
|
81278
82844
|
"0": [0, 0],
|
|
81279
82845
|
"1": [0, 0]
|
|
81280
82846
|
},
|
|
81281
82847
|
_coverageSchema: "1a1c01bbd47fc00a2c39e90264f33305004495a9",
|
|
81282
|
-
hash: "
|
|
82848
|
+
hash: "7456025e518ab7052d1641085d52037ded31a25f"
|
|
81283
82849
|
};
|
|
81284
82850
|
var coverage = global[gcv] || (global[gcv] = {});
|
|
81285
82851
|
if (!coverage[path] || coverage[path].hash !== hash) {
|
|
@@ -81295,8 +82861,8 @@ function cov_xd1lqdp2c() {
|
|
|
81295
82861
|
return actualCoverage;
|
|
81296
82862
|
}
|
|
81297
82863
|
cov_xd1lqdp2c();
|
|
81298
|
-
function ownKeys$
|
|
81299
|
-
function _objectSpread$
|
|
82864
|
+
function ownKeys$b(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
82865
|
+
function _objectSpread$b(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$b(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$b(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
81300
82866
|
var Embeds = Node$1.create({
|
|
81301
82867
|
name: "external-video",
|
|
81302
82868
|
addOptions: function addOptions() {
|
|
@@ -81336,36 +82902,73 @@ var Embeds = Node$1.create({
|
|
|
81336
82902
|
},
|
|
81337
82903
|
allowfullscreen: {
|
|
81338
82904
|
"default": "allowfullscreen"
|
|
82905
|
+
},
|
|
82906
|
+
figheight: {
|
|
82907
|
+
"default": 281,
|
|
82908
|
+
parseHTML: function parseHTML(element) {
|
|
82909
|
+
cov_xd1lqdp2c().f[4]++;
|
|
82910
|
+
cov_xd1lqdp2c().s[4]++;
|
|
82911
|
+
return element.getAttribute("figheight");
|
|
82912
|
+
}
|
|
82913
|
+
},
|
|
82914
|
+
figwidth: {
|
|
82915
|
+
"default": 500,
|
|
82916
|
+
parseHTML: function parseHTML(element) {
|
|
82917
|
+
cov_xd1lqdp2c().f[5]++;
|
|
82918
|
+
cov_xd1lqdp2c().s[5]++;
|
|
82919
|
+
return element.getAttribute("figwidth");
|
|
82920
|
+
}
|
|
82921
|
+
},
|
|
82922
|
+
align: {
|
|
82923
|
+
"default": "center",
|
|
82924
|
+
parseHTML: function parseHTML(element) {
|
|
82925
|
+
cov_xd1lqdp2c().f[6]++;
|
|
82926
|
+
cov_xd1lqdp2c().s[6]++;
|
|
82927
|
+
return element.getAttribute("align");
|
|
82928
|
+
}
|
|
81339
82929
|
}
|
|
81340
82930
|
};
|
|
81341
82931
|
},
|
|
81342
82932
|
parseHTML: function parseHTML() {
|
|
81343
|
-
cov_xd1lqdp2c().f[
|
|
81344
|
-
cov_xd1lqdp2c().s[
|
|
82933
|
+
cov_xd1lqdp2c().f[7]++;
|
|
82934
|
+
cov_xd1lqdp2c().s[7]++;
|
|
81345
82935
|
return [{
|
|
81346
82936
|
tag: "iframe[src]"
|
|
81347
82937
|
}];
|
|
81348
82938
|
},
|
|
81349
82939
|
renderHTML: function renderHTML(_ref) {
|
|
81350
|
-
var HTMLAttributes = _ref.HTMLAttributes
|
|
81351
|
-
|
|
81352
|
-
cov_xd1lqdp2c().
|
|
81353
|
-
|
|
81354
|
-
|
|
81355
|
-
|
|
82940
|
+
var HTMLAttributes = _ref.HTMLAttributes,
|
|
82941
|
+
node = _ref.node;
|
|
82942
|
+
cov_xd1lqdp2c().f[8]++;
|
|
82943
|
+
var _ref2 = (cov_xd1lqdp2c().s[8]++, node.attrs),
|
|
82944
|
+
align = _ref2.align,
|
|
82945
|
+
figheight = _ref2.figheight,
|
|
82946
|
+
figwidth = _ref2.figwidth;
|
|
82947
|
+
cov_xd1lqdp2c().s[9]++;
|
|
82948
|
+
return ["div", {
|
|
82949
|
+
"class": "neeto-editor__video-wrapper neeto-editor__video--".concat(align)
|
|
82950
|
+
}, ["div", {
|
|
82951
|
+
"class": "neeto-editor__video-iframe",
|
|
82952
|
+
style: "width: ".concat(figwidth, "px; height: ").concat(figheight, "px;")
|
|
82953
|
+
}, ["iframe", mergeAttributes(this.options.HTMLAttributes, _objectSpread$b({}, HTMLAttributes))]]];
|
|
82954
|
+
},
|
|
82955
|
+
addNodeView: function addNodeView() {
|
|
82956
|
+
cov_xd1lqdp2c().f[9]++;
|
|
82957
|
+
cov_xd1lqdp2c().s[10]++;
|
|
82958
|
+
return ReactNodeViewRenderer(EmbedComponent);
|
|
81356
82959
|
},
|
|
81357
82960
|
addCommands: function addCommands() {
|
|
81358
82961
|
var _this = this;
|
|
81359
|
-
cov_xd1lqdp2c().f[
|
|
81360
|
-
cov_xd1lqdp2c().s[
|
|
82962
|
+
cov_xd1lqdp2c().f[10]++;
|
|
82963
|
+
cov_xd1lqdp2c().s[11]++;
|
|
81361
82964
|
return {
|
|
81362
82965
|
setExternalVideo: function setExternalVideo(options) {
|
|
81363
|
-
cov_xd1lqdp2c().f[
|
|
81364
|
-
cov_xd1lqdp2c().s[
|
|
81365
|
-
return function (
|
|
81366
|
-
var commands =
|
|
81367
|
-
cov_xd1lqdp2c().f[
|
|
81368
|
-
cov_xd1lqdp2c().s[
|
|
82966
|
+
cov_xd1lqdp2c().f[11]++;
|
|
82967
|
+
cov_xd1lqdp2c().s[12]++;
|
|
82968
|
+
return function (_ref3) {
|
|
82969
|
+
var commands = _ref3.commands;
|
|
82970
|
+
cov_xd1lqdp2c().f[12]++;
|
|
82971
|
+
cov_xd1lqdp2c().s[13]++;
|
|
81369
82972
|
return commands.insertContent({
|
|
81370
82973
|
type: _this.name,
|
|
81371
82974
|
attrs: options
|
|
@@ -81375,31 +82978,31 @@ var Embeds = Node$1.create({
|
|
|
81375
82978
|
};
|
|
81376
82979
|
},
|
|
81377
82980
|
addPasteRules: function addPasteRules() {
|
|
81378
|
-
cov_xd1lqdp2c().f[
|
|
81379
|
-
cov_xd1lqdp2c().s[
|
|
82981
|
+
cov_xd1lqdp2c().f[13]++;
|
|
82982
|
+
cov_xd1lqdp2c().s[14]++;
|
|
81380
82983
|
return [new PasteRule({
|
|
81381
82984
|
find: COMBINED_REGEX,
|
|
81382
|
-
handler: function handler(
|
|
81383
|
-
var state =
|
|
81384
|
-
range =
|
|
81385
|
-
match =
|
|
81386
|
-
cov_xd1lqdp2c().f[
|
|
81387
|
-
cov_xd1lqdp2c().s[
|
|
82985
|
+
handler: function handler(_ref4) {
|
|
82986
|
+
var state = _ref4.state,
|
|
82987
|
+
range = _ref4.range,
|
|
82988
|
+
match = _ref4.match;
|
|
82989
|
+
cov_xd1lqdp2c().f[14]++;
|
|
82990
|
+
cov_xd1lqdp2c().s[15]++;
|
|
81388
82991
|
state.tr["delete"](range.from, range.to);
|
|
81389
|
-
cov_xd1lqdp2c().s[
|
|
82992
|
+
cov_xd1lqdp2c().s[16]++;
|
|
81390
82993
|
state.tr.setSelection(TextSelection.create(state.doc, range.from + 1));
|
|
81391
|
-
var validatedUrl = (cov_xd1lqdp2c().s[
|
|
81392
|
-
cov_xd1lqdp2c().s[
|
|
82994
|
+
var validatedUrl = (cov_xd1lqdp2c().s[17]++, validateUrl(match[0]));
|
|
82995
|
+
cov_xd1lqdp2c().s[18]++;
|
|
81393
82996
|
if (validatedUrl) {
|
|
81394
82997
|
cov_xd1lqdp2c().b[1][0]++;
|
|
81395
|
-
var node = (cov_xd1lqdp2c().s[
|
|
82998
|
+
var node = (cov_xd1lqdp2c().s[19]++, state.schema.nodes["external-video"].create({
|
|
81396
82999
|
src: validatedUrl
|
|
81397
83000
|
}));
|
|
81398
|
-
cov_xd1lqdp2c().s[
|
|
83001
|
+
cov_xd1lqdp2c().s[20]++;
|
|
81399
83002
|
state.tr.insert(range.from, node);
|
|
81400
|
-
cov_xd1lqdp2c().s[
|
|
83003
|
+
cov_xd1lqdp2c().s[21]++;
|
|
81401
83004
|
state.tr.insert(range.from + node.nodeSize + 1, state.schema.nodes.paragraph.create());
|
|
81402
|
-
cov_xd1lqdp2c().s[
|
|
83005
|
+
cov_xd1lqdp2c().s[22]++;
|
|
81403
83006
|
state.tr.setSelection(TextSelection.create(state.tr.doc, range.from + node.nodeSize + 1));
|
|
81404
83007
|
} else {
|
|
81405
83008
|
cov_xd1lqdp2c().b[1][1]++;
|
|
@@ -84802,8 +86405,8 @@ function cov_qvuggokby() {
|
|
|
84802
86405
|
return actualCoverage;
|
|
84803
86406
|
}
|
|
84804
86407
|
cov_qvuggokby();
|
|
84805
|
-
function ownKeys$
|
|
84806
|
-
function _objectSpread$
|
|
86408
|
+
function ownKeys$a(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
86409
|
+
function _objectSpread$a(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$a(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$a(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
84807
86410
|
function _createSuper$4(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$5(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn$1(this, result); }; }
|
|
84808
86411
|
function _isNativeReflectConstruct$5() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
84809
86412
|
var EmojiPickerMenu = /*#__PURE__*/function (_React$Component) {
|
|
@@ -84874,7 +86477,7 @@ var EmojiPickerMenu = /*#__PURE__*/function (_React$Component) {
|
|
|
84874
86477
|
value: function componentDidMount() {
|
|
84875
86478
|
cov_qvuggokby().f[0]++;
|
|
84876
86479
|
cov_qvuggokby().s[1]++;
|
|
84877
|
-
new $b802fbb11c9bd2dc$export$2e2bcd8739ae039(_objectSpread$
|
|
86480
|
+
new $b802fbb11c9bd2dc$export$2e2bcd8739ae039(_objectSpread$a(_objectSpread$a({}, this.props), {}, {
|
|
84878
86481
|
onEmojiSelect: this.handleSelect,
|
|
84879
86482
|
style: {
|
|
84880
86483
|
maxWidth: "100%"
|
|
@@ -85277,8 +86880,8 @@ function cov_j4ap1l9tq() {
|
|
|
85277
86880
|
return actualCoverage;
|
|
85278
86881
|
}
|
|
85279
86882
|
cov_j4ap1l9tq();
|
|
85280
|
-
function ownKeys$
|
|
85281
|
-
function _objectSpread$
|
|
86883
|
+
function ownKeys$9(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
86884
|
+
function _objectSpread$9(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$9(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$9(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
85282
86885
|
var EmojiPickerPluginKey = (cov_j4ap1l9tq().s[0]++, new PluginKey("emoji-picker"));
|
|
85283
86886
|
var EmojiPicker = (cov_j4ap1l9tq().s[1]++, Node$1.create({
|
|
85284
86887
|
name: "emojiPicker",
|
|
@@ -85350,7 +86953,7 @@ var EmojiPicker = (cov_j4ap1l9tq().s[1]++, Node$1.create({
|
|
|
85350
86953
|
addProseMirrorPlugins: function addProseMirrorPlugins() {
|
|
85351
86954
|
cov_j4ap1l9tq().f[7]++;
|
|
85352
86955
|
cov_j4ap1l9tq().s[11]++;
|
|
85353
|
-
return [Suggestion(_objectSpread$
|
|
86956
|
+
return [Suggestion(_objectSpread$9({
|
|
85354
86957
|
editor: this.editor
|
|
85355
86958
|
}, this.options.suggestion))];
|
|
85356
86959
|
}
|
|
@@ -88667,8 +90270,8 @@ function cov_2l880i9euo() {
|
|
|
88667
90270
|
return actualCoverage;
|
|
88668
90271
|
}
|
|
88669
90272
|
cov_2l880i9euo();
|
|
88670
|
-
function ownKeys$
|
|
88671
|
-
function _objectSpread$
|
|
90273
|
+
function ownKeys$8(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
90274
|
+
function _objectSpread$8(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$8(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$8(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
88672
90275
|
var EmojiSuggestionPluginKey = (cov_2l880i9euo().s[0]++, new PluginKey("emoji-suggestion"));
|
|
88673
90276
|
var EmojiSuggestion = (cov_2l880i9euo().s[1]++, Node$1.create({
|
|
88674
90277
|
name: "emojiSuggestion",
|
|
@@ -88776,7 +90379,7 @@ var EmojiSuggestion = (cov_2l880i9euo().s[1]++, Node$1.create({
|
|
|
88776
90379
|
addProseMirrorPlugins: function addProseMirrorPlugins() {
|
|
88777
90380
|
cov_2l880i9euo().f[11]++;
|
|
88778
90381
|
cov_2l880i9euo().s[15]++;
|
|
88779
|
-
return [Suggestion(_objectSpread$
|
|
90382
|
+
return [Suggestion(_objectSpread$8({
|
|
88780
90383
|
editor: this.editor
|
|
88781
90384
|
}, this.options.suggestion))];
|
|
88782
90385
|
}
|
|
@@ -88877,1162 +90480,9 @@ var EmojiSuggestion$1 = EmojiSuggestion.configure({
|
|
|
88877
90480
|
suggestion: suggestionConfig
|
|
88878
90481
|
});
|
|
88879
90482
|
|
|
88880
|
-
var __extends$1 = (undefined && undefined.__extends) || (function () {
|
|
88881
|
-
var extendStatics = function (d, b) {
|
|
88882
|
-
extendStatics = Object.setPrototypeOf ||
|
|
88883
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
88884
|
-
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
88885
|
-
return extendStatics(d, b);
|
|
88886
|
-
};
|
|
88887
|
-
return function (d, b) {
|
|
88888
|
-
extendStatics(d, b);
|
|
88889
|
-
function __() { this.constructor = d; }
|
|
88890
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
88891
|
-
};
|
|
88892
|
-
})();
|
|
88893
|
-
var __assign$1 = (undefined && undefined.__assign) || function () {
|
|
88894
|
-
__assign$1 = Object.assign || function(t) {
|
|
88895
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
88896
|
-
s = arguments[i];
|
|
88897
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
88898
|
-
t[p] = s[p];
|
|
88899
|
-
}
|
|
88900
|
-
return t;
|
|
88901
|
-
};
|
|
88902
|
-
return __assign$1.apply(this, arguments);
|
|
88903
|
-
};
|
|
88904
|
-
var rowSizeBase = {
|
|
88905
|
-
width: '100%',
|
|
88906
|
-
height: '10px',
|
|
88907
|
-
top: '0px',
|
|
88908
|
-
left: '0px',
|
|
88909
|
-
cursor: 'row-resize',
|
|
88910
|
-
};
|
|
88911
|
-
var colSizeBase = {
|
|
88912
|
-
width: '10px',
|
|
88913
|
-
height: '100%',
|
|
88914
|
-
top: '0px',
|
|
88915
|
-
left: '0px',
|
|
88916
|
-
cursor: 'col-resize',
|
|
88917
|
-
};
|
|
88918
|
-
var edgeBase = {
|
|
88919
|
-
width: '20px',
|
|
88920
|
-
height: '20px',
|
|
88921
|
-
position: 'absolute',
|
|
88922
|
-
};
|
|
88923
|
-
var styles = {
|
|
88924
|
-
top: __assign$1(__assign$1({}, rowSizeBase), { top: '-5px' }),
|
|
88925
|
-
right: __assign$1(__assign$1({}, colSizeBase), { left: undefined, right: '-5px' }),
|
|
88926
|
-
bottom: __assign$1(__assign$1({}, rowSizeBase), { top: undefined, bottom: '-5px' }),
|
|
88927
|
-
left: __assign$1(__assign$1({}, colSizeBase), { left: '-5px' }),
|
|
88928
|
-
topRight: __assign$1(__assign$1({}, edgeBase), { right: '-10px', top: '-10px', cursor: 'ne-resize' }),
|
|
88929
|
-
bottomRight: __assign$1(__assign$1({}, edgeBase), { right: '-10px', bottom: '-10px', cursor: 'se-resize' }),
|
|
88930
|
-
bottomLeft: __assign$1(__assign$1({}, edgeBase), { left: '-10px', bottom: '-10px', cursor: 'sw-resize' }),
|
|
88931
|
-
topLeft: __assign$1(__assign$1({}, edgeBase), { left: '-10px', top: '-10px', cursor: 'nw-resize' }),
|
|
88932
|
-
};
|
|
88933
|
-
var Resizer = /** @class */ (function (_super) {
|
|
88934
|
-
__extends$1(Resizer, _super);
|
|
88935
|
-
function Resizer() {
|
|
88936
|
-
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
88937
|
-
_this.onMouseDown = function (e) {
|
|
88938
|
-
_this.props.onResizeStart(e, _this.props.direction);
|
|
88939
|
-
};
|
|
88940
|
-
_this.onTouchStart = function (e) {
|
|
88941
|
-
_this.props.onResizeStart(e, _this.props.direction);
|
|
88942
|
-
};
|
|
88943
|
-
return _this;
|
|
88944
|
-
}
|
|
88945
|
-
Resizer.prototype.render = function () {
|
|
88946
|
-
return (React$6.createElement("div", { className: this.props.className || '', style: __assign$1(__assign$1({ position: 'absolute', userSelect: 'none' }, styles[this.props.direction]), (this.props.replaceStyles || {})), onMouseDown: this.onMouseDown, onTouchStart: this.onTouchStart }, this.props.children));
|
|
88947
|
-
};
|
|
88948
|
-
return Resizer;
|
|
88949
|
-
}(React$6.PureComponent));
|
|
88950
|
-
|
|
88951
|
-
var __extends = (undefined && undefined.__extends) || (function () {
|
|
88952
|
-
var extendStatics = function (d, b) {
|
|
88953
|
-
extendStatics = Object.setPrototypeOf ||
|
|
88954
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
88955
|
-
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
88956
|
-
return extendStatics(d, b);
|
|
88957
|
-
};
|
|
88958
|
-
return function (d, b) {
|
|
88959
|
-
extendStatics(d, b);
|
|
88960
|
-
function __() { this.constructor = d; }
|
|
88961
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
88962
|
-
};
|
|
88963
|
-
})();
|
|
88964
|
-
var __assign = (undefined && undefined.__assign) || function () {
|
|
88965
|
-
__assign = Object.assign || function(t) {
|
|
88966
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
88967
|
-
s = arguments[i];
|
|
88968
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
88969
|
-
t[p] = s[p];
|
|
88970
|
-
}
|
|
88971
|
-
return t;
|
|
88972
|
-
};
|
|
88973
|
-
return __assign.apply(this, arguments);
|
|
88974
|
-
};
|
|
88975
|
-
var DEFAULT_SIZE = {
|
|
88976
|
-
width: 'auto',
|
|
88977
|
-
height: 'auto',
|
|
88978
|
-
};
|
|
88979
|
-
var clamp = function (n, min, max) { return Math.max(Math.min(n, max), min); };
|
|
88980
|
-
var snap = function (n, size) { return Math.round(n / size) * size; };
|
|
88981
|
-
var hasDirection = function (dir, target) {
|
|
88982
|
-
return new RegExp(dir, 'i').test(target);
|
|
88983
|
-
};
|
|
88984
|
-
// INFO: In case of window is a Proxy and does not porxy Events correctly, use isTouchEvent & isMouseEvent to distinguish event type instead of `instanceof`.
|
|
88985
|
-
var isTouchEvent = function (event) {
|
|
88986
|
-
return Boolean(event.touches && event.touches.length);
|
|
88987
|
-
};
|
|
88988
|
-
var isMouseEvent = function (event) {
|
|
88989
|
-
return Boolean((event.clientX || event.clientX === 0) &&
|
|
88990
|
-
(event.clientY || event.clientY === 0));
|
|
88991
|
-
};
|
|
88992
|
-
var findClosestSnap = function (n, snapArray, snapGap) {
|
|
88993
|
-
if (snapGap === void 0) { snapGap = 0; }
|
|
88994
|
-
var closestGapIndex = snapArray.reduce(function (prev, curr, index) { return (Math.abs(curr - n) < Math.abs(snapArray[prev] - n) ? index : prev); }, 0);
|
|
88995
|
-
var gap = Math.abs(snapArray[closestGapIndex] - n);
|
|
88996
|
-
return snapGap === 0 || gap < snapGap ? snapArray[closestGapIndex] : n;
|
|
88997
|
-
};
|
|
88998
|
-
var getStringSize = function (n) {
|
|
88999
|
-
n = n.toString();
|
|
89000
|
-
if (n === 'auto') {
|
|
89001
|
-
return n;
|
|
89002
|
-
}
|
|
89003
|
-
if (n.endsWith('px')) {
|
|
89004
|
-
return n;
|
|
89005
|
-
}
|
|
89006
|
-
if (n.endsWith('%')) {
|
|
89007
|
-
return n;
|
|
89008
|
-
}
|
|
89009
|
-
if (n.endsWith('vh')) {
|
|
89010
|
-
return n;
|
|
89011
|
-
}
|
|
89012
|
-
if (n.endsWith('vw')) {
|
|
89013
|
-
return n;
|
|
89014
|
-
}
|
|
89015
|
-
if (n.endsWith('vmax')) {
|
|
89016
|
-
return n;
|
|
89017
|
-
}
|
|
89018
|
-
if (n.endsWith('vmin')) {
|
|
89019
|
-
return n;
|
|
89020
|
-
}
|
|
89021
|
-
return n + "px";
|
|
89022
|
-
};
|
|
89023
|
-
var getPixelSize = function (size, parentSize, innerWidth, innerHeight) {
|
|
89024
|
-
if (size && typeof size === 'string') {
|
|
89025
|
-
if (size.endsWith('px')) {
|
|
89026
|
-
return Number(size.replace('px', ''));
|
|
89027
|
-
}
|
|
89028
|
-
if (size.endsWith('%')) {
|
|
89029
|
-
var ratio = Number(size.replace('%', '')) / 100;
|
|
89030
|
-
return parentSize * ratio;
|
|
89031
|
-
}
|
|
89032
|
-
if (size.endsWith('vw')) {
|
|
89033
|
-
var ratio = Number(size.replace('vw', '')) / 100;
|
|
89034
|
-
return innerWidth * ratio;
|
|
89035
|
-
}
|
|
89036
|
-
if (size.endsWith('vh')) {
|
|
89037
|
-
var ratio = Number(size.replace('vh', '')) / 100;
|
|
89038
|
-
return innerHeight * ratio;
|
|
89039
|
-
}
|
|
89040
|
-
}
|
|
89041
|
-
return size;
|
|
89042
|
-
};
|
|
89043
|
-
var calculateNewMax = function (parentSize, innerWidth, innerHeight, maxWidth, maxHeight, minWidth, minHeight) {
|
|
89044
|
-
maxWidth = getPixelSize(maxWidth, parentSize.width, innerWidth, innerHeight);
|
|
89045
|
-
maxHeight = getPixelSize(maxHeight, parentSize.height, innerWidth, innerHeight);
|
|
89046
|
-
minWidth = getPixelSize(minWidth, parentSize.width, innerWidth, innerHeight);
|
|
89047
|
-
minHeight = getPixelSize(minHeight, parentSize.height, innerWidth, innerHeight);
|
|
89048
|
-
return {
|
|
89049
|
-
maxWidth: typeof maxWidth === 'undefined' ? undefined : Number(maxWidth),
|
|
89050
|
-
maxHeight: typeof maxHeight === 'undefined' ? undefined : Number(maxHeight),
|
|
89051
|
-
minWidth: typeof minWidth === 'undefined' ? undefined : Number(minWidth),
|
|
89052
|
-
minHeight: typeof minHeight === 'undefined' ? undefined : Number(minHeight),
|
|
89053
|
-
};
|
|
89054
|
-
};
|
|
89055
|
-
var definedProps = [
|
|
89056
|
-
'as',
|
|
89057
|
-
'style',
|
|
89058
|
-
'className',
|
|
89059
|
-
'grid',
|
|
89060
|
-
'snap',
|
|
89061
|
-
'bounds',
|
|
89062
|
-
'boundsByDirection',
|
|
89063
|
-
'size',
|
|
89064
|
-
'defaultSize',
|
|
89065
|
-
'minWidth',
|
|
89066
|
-
'minHeight',
|
|
89067
|
-
'maxWidth',
|
|
89068
|
-
'maxHeight',
|
|
89069
|
-
'lockAspectRatio',
|
|
89070
|
-
'lockAspectRatioExtraWidth',
|
|
89071
|
-
'lockAspectRatioExtraHeight',
|
|
89072
|
-
'enable',
|
|
89073
|
-
'handleStyles',
|
|
89074
|
-
'handleClasses',
|
|
89075
|
-
'handleWrapperStyle',
|
|
89076
|
-
'handleWrapperClass',
|
|
89077
|
-
'children',
|
|
89078
|
-
'onResizeStart',
|
|
89079
|
-
'onResize',
|
|
89080
|
-
'onResizeStop',
|
|
89081
|
-
'handleComponent',
|
|
89082
|
-
'scale',
|
|
89083
|
-
'resizeRatio',
|
|
89084
|
-
'snapGap',
|
|
89085
|
-
];
|
|
89086
|
-
// HACK: This class is used to calculate % size.
|
|
89087
|
-
var baseClassName = '__resizable_base__';
|
|
89088
|
-
var Resizable = /** @class */ (function (_super) {
|
|
89089
|
-
__extends(Resizable, _super);
|
|
89090
|
-
function Resizable(props) {
|
|
89091
|
-
var _this = _super.call(this, props) || this;
|
|
89092
|
-
_this.ratio = 1;
|
|
89093
|
-
_this.resizable = null;
|
|
89094
|
-
// For parent boundary
|
|
89095
|
-
_this.parentLeft = 0;
|
|
89096
|
-
_this.parentTop = 0;
|
|
89097
|
-
// For boundary
|
|
89098
|
-
_this.resizableLeft = 0;
|
|
89099
|
-
_this.resizableRight = 0;
|
|
89100
|
-
_this.resizableTop = 0;
|
|
89101
|
-
_this.resizableBottom = 0;
|
|
89102
|
-
// For target boundary
|
|
89103
|
-
_this.targetLeft = 0;
|
|
89104
|
-
_this.targetTop = 0;
|
|
89105
|
-
_this.appendBase = function () {
|
|
89106
|
-
if (!_this.resizable || !_this.window) {
|
|
89107
|
-
return null;
|
|
89108
|
-
}
|
|
89109
|
-
var parent = _this.parentNode;
|
|
89110
|
-
if (!parent) {
|
|
89111
|
-
return null;
|
|
89112
|
-
}
|
|
89113
|
-
var element = _this.window.document.createElement('div');
|
|
89114
|
-
element.style.width = '100%';
|
|
89115
|
-
element.style.height = '100%';
|
|
89116
|
-
element.style.position = 'absolute';
|
|
89117
|
-
element.style.transform = 'scale(0, 0)';
|
|
89118
|
-
element.style.left = '0';
|
|
89119
|
-
element.style.flex = '0 0 100%';
|
|
89120
|
-
if (element.classList) {
|
|
89121
|
-
element.classList.add(baseClassName);
|
|
89122
|
-
}
|
|
89123
|
-
else {
|
|
89124
|
-
element.className += baseClassName;
|
|
89125
|
-
}
|
|
89126
|
-
parent.appendChild(element);
|
|
89127
|
-
return element;
|
|
89128
|
-
};
|
|
89129
|
-
_this.removeBase = function (base) {
|
|
89130
|
-
var parent = _this.parentNode;
|
|
89131
|
-
if (!parent) {
|
|
89132
|
-
return;
|
|
89133
|
-
}
|
|
89134
|
-
parent.removeChild(base);
|
|
89135
|
-
};
|
|
89136
|
-
_this.ref = function (c) {
|
|
89137
|
-
if (c) {
|
|
89138
|
-
_this.resizable = c;
|
|
89139
|
-
}
|
|
89140
|
-
};
|
|
89141
|
-
_this.state = {
|
|
89142
|
-
isResizing: false,
|
|
89143
|
-
width: typeof (_this.propsSize && _this.propsSize.width) === 'undefined'
|
|
89144
|
-
? 'auto'
|
|
89145
|
-
: _this.propsSize && _this.propsSize.width,
|
|
89146
|
-
height: typeof (_this.propsSize && _this.propsSize.height) === 'undefined'
|
|
89147
|
-
? 'auto'
|
|
89148
|
-
: _this.propsSize && _this.propsSize.height,
|
|
89149
|
-
direction: 'right',
|
|
89150
|
-
original: {
|
|
89151
|
-
x: 0,
|
|
89152
|
-
y: 0,
|
|
89153
|
-
width: 0,
|
|
89154
|
-
height: 0,
|
|
89155
|
-
},
|
|
89156
|
-
backgroundStyle: {
|
|
89157
|
-
height: '100%',
|
|
89158
|
-
width: '100%',
|
|
89159
|
-
backgroundColor: 'rgba(0,0,0,0)',
|
|
89160
|
-
cursor: 'auto',
|
|
89161
|
-
opacity: 0,
|
|
89162
|
-
position: 'fixed',
|
|
89163
|
-
zIndex: 9999,
|
|
89164
|
-
top: '0',
|
|
89165
|
-
left: '0',
|
|
89166
|
-
bottom: '0',
|
|
89167
|
-
right: '0',
|
|
89168
|
-
},
|
|
89169
|
-
flexBasis: undefined,
|
|
89170
|
-
};
|
|
89171
|
-
_this.onResizeStart = _this.onResizeStart.bind(_this);
|
|
89172
|
-
_this.onMouseMove = _this.onMouseMove.bind(_this);
|
|
89173
|
-
_this.onMouseUp = _this.onMouseUp.bind(_this);
|
|
89174
|
-
return _this;
|
|
89175
|
-
}
|
|
89176
|
-
Object.defineProperty(Resizable.prototype, "parentNode", {
|
|
89177
|
-
get: function () {
|
|
89178
|
-
if (!this.resizable) {
|
|
89179
|
-
return null;
|
|
89180
|
-
}
|
|
89181
|
-
return this.resizable.parentNode;
|
|
89182
|
-
},
|
|
89183
|
-
enumerable: false,
|
|
89184
|
-
configurable: true
|
|
89185
|
-
});
|
|
89186
|
-
Object.defineProperty(Resizable.prototype, "window", {
|
|
89187
|
-
get: function () {
|
|
89188
|
-
if (!this.resizable) {
|
|
89189
|
-
return null;
|
|
89190
|
-
}
|
|
89191
|
-
if (!this.resizable.ownerDocument) {
|
|
89192
|
-
return null;
|
|
89193
|
-
}
|
|
89194
|
-
return this.resizable.ownerDocument.defaultView;
|
|
89195
|
-
},
|
|
89196
|
-
enumerable: false,
|
|
89197
|
-
configurable: true
|
|
89198
|
-
});
|
|
89199
|
-
Object.defineProperty(Resizable.prototype, "propsSize", {
|
|
89200
|
-
get: function () {
|
|
89201
|
-
return this.props.size || this.props.defaultSize || DEFAULT_SIZE;
|
|
89202
|
-
},
|
|
89203
|
-
enumerable: false,
|
|
89204
|
-
configurable: true
|
|
89205
|
-
});
|
|
89206
|
-
Object.defineProperty(Resizable.prototype, "size", {
|
|
89207
|
-
get: function () {
|
|
89208
|
-
var width = 0;
|
|
89209
|
-
var height = 0;
|
|
89210
|
-
if (this.resizable && this.window) {
|
|
89211
|
-
var orgWidth = this.resizable.offsetWidth;
|
|
89212
|
-
var orgHeight = this.resizable.offsetHeight;
|
|
89213
|
-
// HACK: Set position `relative` to get parent size.
|
|
89214
|
-
// This is because when re-resizable set `absolute`, I can not get base width correctly.
|
|
89215
|
-
var orgPosition = this.resizable.style.position;
|
|
89216
|
-
if (orgPosition !== 'relative') {
|
|
89217
|
-
this.resizable.style.position = 'relative';
|
|
89218
|
-
}
|
|
89219
|
-
// INFO: Use original width or height if set auto.
|
|
89220
|
-
width = this.resizable.style.width !== 'auto' ? this.resizable.offsetWidth : orgWidth;
|
|
89221
|
-
height = this.resizable.style.height !== 'auto' ? this.resizable.offsetHeight : orgHeight;
|
|
89222
|
-
// Restore original position
|
|
89223
|
-
this.resizable.style.position = orgPosition;
|
|
89224
|
-
}
|
|
89225
|
-
return { width: width, height: height };
|
|
89226
|
-
},
|
|
89227
|
-
enumerable: false,
|
|
89228
|
-
configurable: true
|
|
89229
|
-
});
|
|
89230
|
-
Object.defineProperty(Resizable.prototype, "sizeStyle", {
|
|
89231
|
-
get: function () {
|
|
89232
|
-
var _this = this;
|
|
89233
|
-
var size = this.props.size;
|
|
89234
|
-
var getSize = function (key) {
|
|
89235
|
-
if (typeof _this.state[key] === 'undefined' || _this.state[key] === 'auto') {
|
|
89236
|
-
return 'auto';
|
|
89237
|
-
}
|
|
89238
|
-
if (_this.propsSize && _this.propsSize[key] && _this.propsSize[key].toString().endsWith('%')) {
|
|
89239
|
-
if (_this.state[key].toString().endsWith('%')) {
|
|
89240
|
-
return _this.state[key].toString();
|
|
89241
|
-
}
|
|
89242
|
-
var parentSize = _this.getParentSize();
|
|
89243
|
-
var value = Number(_this.state[key].toString().replace('px', ''));
|
|
89244
|
-
var percent = (value / parentSize[key]) * 100;
|
|
89245
|
-
return percent + "%";
|
|
89246
|
-
}
|
|
89247
|
-
return getStringSize(_this.state[key]);
|
|
89248
|
-
};
|
|
89249
|
-
var width = size && typeof size.width !== 'undefined' && !this.state.isResizing
|
|
89250
|
-
? getStringSize(size.width)
|
|
89251
|
-
: getSize('width');
|
|
89252
|
-
var height = size && typeof size.height !== 'undefined' && !this.state.isResizing
|
|
89253
|
-
? getStringSize(size.height)
|
|
89254
|
-
: getSize('height');
|
|
89255
|
-
return { width: width, height: height };
|
|
89256
|
-
},
|
|
89257
|
-
enumerable: false,
|
|
89258
|
-
configurable: true
|
|
89259
|
-
});
|
|
89260
|
-
Resizable.prototype.getParentSize = function () {
|
|
89261
|
-
if (!this.parentNode) {
|
|
89262
|
-
if (!this.window) {
|
|
89263
|
-
return { width: 0, height: 0 };
|
|
89264
|
-
}
|
|
89265
|
-
return { width: this.window.innerWidth, height: this.window.innerHeight };
|
|
89266
|
-
}
|
|
89267
|
-
var base = this.appendBase();
|
|
89268
|
-
if (!base) {
|
|
89269
|
-
return { width: 0, height: 0 };
|
|
89270
|
-
}
|
|
89271
|
-
// INFO: To calculate parent width with flex layout
|
|
89272
|
-
var wrapChanged = false;
|
|
89273
|
-
var wrap = this.parentNode.style.flexWrap;
|
|
89274
|
-
if (wrap !== 'wrap') {
|
|
89275
|
-
wrapChanged = true;
|
|
89276
|
-
this.parentNode.style.flexWrap = 'wrap';
|
|
89277
|
-
// HACK: Use relative to get parent padding size
|
|
89278
|
-
}
|
|
89279
|
-
base.style.position = 'relative';
|
|
89280
|
-
base.style.minWidth = '100%';
|
|
89281
|
-
base.style.minHeight = '100%';
|
|
89282
|
-
var size = {
|
|
89283
|
-
width: base.offsetWidth,
|
|
89284
|
-
height: base.offsetHeight,
|
|
89285
|
-
};
|
|
89286
|
-
if (wrapChanged) {
|
|
89287
|
-
this.parentNode.style.flexWrap = wrap;
|
|
89288
|
-
}
|
|
89289
|
-
this.removeBase(base);
|
|
89290
|
-
return size;
|
|
89291
|
-
};
|
|
89292
|
-
Resizable.prototype.bindEvents = function () {
|
|
89293
|
-
if (this.window) {
|
|
89294
|
-
this.window.addEventListener('mouseup', this.onMouseUp);
|
|
89295
|
-
this.window.addEventListener('mousemove', this.onMouseMove);
|
|
89296
|
-
this.window.addEventListener('mouseleave', this.onMouseUp);
|
|
89297
|
-
this.window.addEventListener('touchmove', this.onMouseMove, {
|
|
89298
|
-
capture: true,
|
|
89299
|
-
passive: false,
|
|
89300
|
-
});
|
|
89301
|
-
this.window.addEventListener('touchend', this.onMouseUp);
|
|
89302
|
-
}
|
|
89303
|
-
};
|
|
89304
|
-
Resizable.prototype.unbindEvents = function () {
|
|
89305
|
-
if (this.window) {
|
|
89306
|
-
this.window.removeEventListener('mouseup', this.onMouseUp);
|
|
89307
|
-
this.window.removeEventListener('mousemove', this.onMouseMove);
|
|
89308
|
-
this.window.removeEventListener('mouseleave', this.onMouseUp);
|
|
89309
|
-
this.window.removeEventListener('touchmove', this.onMouseMove, true);
|
|
89310
|
-
this.window.removeEventListener('touchend', this.onMouseUp);
|
|
89311
|
-
}
|
|
89312
|
-
};
|
|
89313
|
-
Resizable.prototype.componentDidMount = function () {
|
|
89314
|
-
if (!this.resizable || !this.window) {
|
|
89315
|
-
return;
|
|
89316
|
-
}
|
|
89317
|
-
var computedStyle = this.window.getComputedStyle(this.resizable);
|
|
89318
|
-
this.setState({
|
|
89319
|
-
width: this.state.width || this.size.width,
|
|
89320
|
-
height: this.state.height || this.size.height,
|
|
89321
|
-
flexBasis: computedStyle.flexBasis !== 'auto' ? computedStyle.flexBasis : undefined,
|
|
89322
|
-
});
|
|
89323
|
-
};
|
|
89324
|
-
Resizable.prototype.componentWillUnmount = function () {
|
|
89325
|
-
if (this.window) {
|
|
89326
|
-
this.unbindEvents();
|
|
89327
|
-
}
|
|
89328
|
-
};
|
|
89329
|
-
Resizable.prototype.createSizeForCssProperty = function (newSize, kind) {
|
|
89330
|
-
var propsSize = this.propsSize && this.propsSize[kind];
|
|
89331
|
-
return this.state[kind] === 'auto' &&
|
|
89332
|
-
this.state.original[kind] === newSize &&
|
|
89333
|
-
(typeof propsSize === 'undefined' || propsSize === 'auto')
|
|
89334
|
-
? 'auto'
|
|
89335
|
-
: newSize;
|
|
89336
|
-
};
|
|
89337
|
-
Resizable.prototype.calculateNewMaxFromBoundary = function (maxWidth, maxHeight) {
|
|
89338
|
-
var boundsByDirection = this.props.boundsByDirection;
|
|
89339
|
-
var direction = this.state.direction;
|
|
89340
|
-
var widthByDirection = boundsByDirection && hasDirection('left', direction);
|
|
89341
|
-
var heightByDirection = boundsByDirection && hasDirection('top', direction);
|
|
89342
|
-
var boundWidth;
|
|
89343
|
-
var boundHeight;
|
|
89344
|
-
if (this.props.bounds === 'parent') {
|
|
89345
|
-
var parent_1 = this.parentNode;
|
|
89346
|
-
if (parent_1) {
|
|
89347
|
-
boundWidth = widthByDirection
|
|
89348
|
-
? this.resizableRight - this.parentLeft
|
|
89349
|
-
: parent_1.offsetWidth + (this.parentLeft - this.resizableLeft);
|
|
89350
|
-
boundHeight = heightByDirection
|
|
89351
|
-
? this.resizableBottom - this.parentTop
|
|
89352
|
-
: parent_1.offsetHeight + (this.parentTop - this.resizableTop);
|
|
89353
|
-
}
|
|
89354
|
-
}
|
|
89355
|
-
else if (this.props.bounds === 'window') {
|
|
89356
|
-
if (this.window) {
|
|
89357
|
-
boundWidth = widthByDirection ? this.resizableRight : this.window.innerWidth - this.resizableLeft;
|
|
89358
|
-
boundHeight = heightByDirection ? this.resizableBottom : this.window.innerHeight - this.resizableTop;
|
|
89359
|
-
}
|
|
89360
|
-
}
|
|
89361
|
-
else if (this.props.bounds) {
|
|
89362
|
-
boundWidth = widthByDirection
|
|
89363
|
-
? this.resizableRight - this.targetLeft
|
|
89364
|
-
: this.props.bounds.offsetWidth + (this.targetLeft - this.resizableLeft);
|
|
89365
|
-
boundHeight = heightByDirection
|
|
89366
|
-
? this.resizableBottom - this.targetTop
|
|
89367
|
-
: this.props.bounds.offsetHeight + (this.targetTop - this.resizableTop);
|
|
89368
|
-
}
|
|
89369
|
-
if (boundWidth && Number.isFinite(boundWidth)) {
|
|
89370
|
-
maxWidth = maxWidth && maxWidth < boundWidth ? maxWidth : boundWidth;
|
|
89371
|
-
}
|
|
89372
|
-
if (boundHeight && Number.isFinite(boundHeight)) {
|
|
89373
|
-
maxHeight = maxHeight && maxHeight < boundHeight ? maxHeight : boundHeight;
|
|
89374
|
-
}
|
|
89375
|
-
return { maxWidth: maxWidth, maxHeight: maxHeight };
|
|
89376
|
-
};
|
|
89377
|
-
Resizable.prototype.calculateNewSizeFromDirection = function (clientX, clientY) {
|
|
89378
|
-
var scale = this.props.scale || 1;
|
|
89379
|
-
var resizeRatio = this.props.resizeRatio || 1;
|
|
89380
|
-
var _a = this.state, direction = _a.direction, original = _a.original;
|
|
89381
|
-
var _b = this.props, lockAspectRatio = _b.lockAspectRatio, lockAspectRatioExtraHeight = _b.lockAspectRatioExtraHeight, lockAspectRatioExtraWidth = _b.lockAspectRatioExtraWidth;
|
|
89382
|
-
var newWidth = original.width;
|
|
89383
|
-
var newHeight = original.height;
|
|
89384
|
-
var extraHeight = lockAspectRatioExtraHeight || 0;
|
|
89385
|
-
var extraWidth = lockAspectRatioExtraWidth || 0;
|
|
89386
|
-
if (hasDirection('right', direction)) {
|
|
89387
|
-
newWidth = original.width + ((clientX - original.x) * resizeRatio) / scale;
|
|
89388
|
-
if (lockAspectRatio) {
|
|
89389
|
-
newHeight = (newWidth - extraWidth) / this.ratio + extraHeight;
|
|
89390
|
-
}
|
|
89391
|
-
}
|
|
89392
|
-
if (hasDirection('left', direction)) {
|
|
89393
|
-
newWidth = original.width - ((clientX - original.x) * resizeRatio) / scale;
|
|
89394
|
-
if (lockAspectRatio) {
|
|
89395
|
-
newHeight = (newWidth - extraWidth) / this.ratio + extraHeight;
|
|
89396
|
-
}
|
|
89397
|
-
}
|
|
89398
|
-
if (hasDirection('bottom', direction)) {
|
|
89399
|
-
newHeight = original.height + ((clientY - original.y) * resizeRatio) / scale;
|
|
89400
|
-
if (lockAspectRatio) {
|
|
89401
|
-
newWidth = (newHeight - extraHeight) * this.ratio + extraWidth;
|
|
89402
|
-
}
|
|
89403
|
-
}
|
|
89404
|
-
if (hasDirection('top', direction)) {
|
|
89405
|
-
newHeight = original.height - ((clientY - original.y) * resizeRatio) / scale;
|
|
89406
|
-
if (lockAspectRatio) {
|
|
89407
|
-
newWidth = (newHeight - extraHeight) * this.ratio + extraWidth;
|
|
89408
|
-
}
|
|
89409
|
-
}
|
|
89410
|
-
return { newWidth: newWidth, newHeight: newHeight };
|
|
89411
|
-
};
|
|
89412
|
-
Resizable.prototype.calculateNewSizeFromAspectRatio = function (newWidth, newHeight, max, min) {
|
|
89413
|
-
var _a = this.props, lockAspectRatio = _a.lockAspectRatio, lockAspectRatioExtraHeight = _a.lockAspectRatioExtraHeight, lockAspectRatioExtraWidth = _a.lockAspectRatioExtraWidth;
|
|
89414
|
-
var computedMinWidth = typeof min.width === 'undefined' ? 10 : min.width;
|
|
89415
|
-
var computedMaxWidth = typeof max.width === 'undefined' || max.width < 0 ? newWidth : max.width;
|
|
89416
|
-
var computedMinHeight = typeof min.height === 'undefined' ? 10 : min.height;
|
|
89417
|
-
var computedMaxHeight = typeof max.height === 'undefined' || max.height < 0 ? newHeight : max.height;
|
|
89418
|
-
var extraHeight = lockAspectRatioExtraHeight || 0;
|
|
89419
|
-
var extraWidth = lockAspectRatioExtraWidth || 0;
|
|
89420
|
-
if (lockAspectRatio) {
|
|
89421
|
-
var extraMinWidth = (computedMinHeight - extraHeight) * this.ratio + extraWidth;
|
|
89422
|
-
var extraMaxWidth = (computedMaxHeight - extraHeight) * this.ratio + extraWidth;
|
|
89423
|
-
var extraMinHeight = (computedMinWidth - extraWidth) / this.ratio + extraHeight;
|
|
89424
|
-
var extraMaxHeight = (computedMaxWidth - extraWidth) / this.ratio + extraHeight;
|
|
89425
|
-
var lockedMinWidth = Math.max(computedMinWidth, extraMinWidth);
|
|
89426
|
-
var lockedMaxWidth = Math.min(computedMaxWidth, extraMaxWidth);
|
|
89427
|
-
var lockedMinHeight = Math.max(computedMinHeight, extraMinHeight);
|
|
89428
|
-
var lockedMaxHeight = Math.min(computedMaxHeight, extraMaxHeight);
|
|
89429
|
-
newWidth = clamp(newWidth, lockedMinWidth, lockedMaxWidth);
|
|
89430
|
-
newHeight = clamp(newHeight, lockedMinHeight, lockedMaxHeight);
|
|
89431
|
-
}
|
|
89432
|
-
else {
|
|
89433
|
-
newWidth = clamp(newWidth, computedMinWidth, computedMaxWidth);
|
|
89434
|
-
newHeight = clamp(newHeight, computedMinHeight, computedMaxHeight);
|
|
89435
|
-
}
|
|
89436
|
-
return { newWidth: newWidth, newHeight: newHeight };
|
|
89437
|
-
};
|
|
89438
|
-
Resizable.prototype.setBoundingClientRect = function () {
|
|
89439
|
-
// For parent boundary
|
|
89440
|
-
if (this.props.bounds === 'parent') {
|
|
89441
|
-
var parent_2 = this.parentNode;
|
|
89442
|
-
if (parent_2) {
|
|
89443
|
-
var parentRect = parent_2.getBoundingClientRect();
|
|
89444
|
-
this.parentLeft = parentRect.left;
|
|
89445
|
-
this.parentTop = parentRect.top;
|
|
89446
|
-
}
|
|
89447
|
-
}
|
|
89448
|
-
// For target(html element) boundary
|
|
89449
|
-
if (this.props.bounds && typeof this.props.bounds !== 'string') {
|
|
89450
|
-
var targetRect = this.props.bounds.getBoundingClientRect();
|
|
89451
|
-
this.targetLeft = targetRect.left;
|
|
89452
|
-
this.targetTop = targetRect.top;
|
|
89453
|
-
}
|
|
89454
|
-
// For boundary
|
|
89455
|
-
if (this.resizable) {
|
|
89456
|
-
var _a = this.resizable.getBoundingClientRect(), left = _a.left, top_1 = _a.top, right = _a.right, bottom = _a.bottom;
|
|
89457
|
-
this.resizableLeft = left;
|
|
89458
|
-
this.resizableRight = right;
|
|
89459
|
-
this.resizableTop = top_1;
|
|
89460
|
-
this.resizableBottom = bottom;
|
|
89461
|
-
}
|
|
89462
|
-
};
|
|
89463
|
-
Resizable.prototype.onResizeStart = function (event, direction) {
|
|
89464
|
-
if (!this.resizable || !this.window) {
|
|
89465
|
-
return;
|
|
89466
|
-
}
|
|
89467
|
-
var clientX = 0;
|
|
89468
|
-
var clientY = 0;
|
|
89469
|
-
if (event.nativeEvent && isMouseEvent(event.nativeEvent)) {
|
|
89470
|
-
clientX = event.nativeEvent.clientX;
|
|
89471
|
-
clientY = event.nativeEvent.clientY;
|
|
89472
|
-
}
|
|
89473
|
-
else if (event.nativeEvent && isTouchEvent(event.nativeEvent)) {
|
|
89474
|
-
clientX = event.nativeEvent.touches[0].clientX;
|
|
89475
|
-
clientY = event.nativeEvent.touches[0].clientY;
|
|
89476
|
-
}
|
|
89477
|
-
if (this.props.onResizeStart) {
|
|
89478
|
-
if (this.resizable) {
|
|
89479
|
-
var startResize = this.props.onResizeStart(event, direction, this.resizable);
|
|
89480
|
-
if (startResize === false) {
|
|
89481
|
-
return;
|
|
89482
|
-
}
|
|
89483
|
-
}
|
|
89484
|
-
}
|
|
89485
|
-
// Fix #168
|
|
89486
|
-
if (this.props.size) {
|
|
89487
|
-
if (typeof this.props.size.height !== 'undefined' && this.props.size.height !== this.state.height) {
|
|
89488
|
-
this.setState({ height: this.props.size.height });
|
|
89489
|
-
}
|
|
89490
|
-
if (typeof this.props.size.width !== 'undefined' && this.props.size.width !== this.state.width) {
|
|
89491
|
-
this.setState({ width: this.props.size.width });
|
|
89492
|
-
}
|
|
89493
|
-
}
|
|
89494
|
-
// For lockAspectRatio case
|
|
89495
|
-
this.ratio =
|
|
89496
|
-
typeof this.props.lockAspectRatio === 'number' ? this.props.lockAspectRatio : this.size.width / this.size.height;
|
|
89497
|
-
var flexBasis;
|
|
89498
|
-
var computedStyle = this.window.getComputedStyle(this.resizable);
|
|
89499
|
-
if (computedStyle.flexBasis !== 'auto') {
|
|
89500
|
-
var parent_3 = this.parentNode;
|
|
89501
|
-
if (parent_3) {
|
|
89502
|
-
var dir = this.window.getComputedStyle(parent_3).flexDirection;
|
|
89503
|
-
this.flexDir = dir.startsWith('row') ? 'row' : 'column';
|
|
89504
|
-
flexBasis = computedStyle.flexBasis;
|
|
89505
|
-
}
|
|
89506
|
-
}
|
|
89507
|
-
// For boundary
|
|
89508
|
-
this.setBoundingClientRect();
|
|
89509
|
-
this.bindEvents();
|
|
89510
|
-
var state = {
|
|
89511
|
-
original: {
|
|
89512
|
-
x: clientX,
|
|
89513
|
-
y: clientY,
|
|
89514
|
-
width: this.size.width,
|
|
89515
|
-
height: this.size.height,
|
|
89516
|
-
},
|
|
89517
|
-
isResizing: true,
|
|
89518
|
-
backgroundStyle: __assign(__assign({}, this.state.backgroundStyle), { cursor: this.window.getComputedStyle(event.target).cursor || 'auto' }),
|
|
89519
|
-
direction: direction,
|
|
89520
|
-
flexBasis: flexBasis,
|
|
89521
|
-
};
|
|
89522
|
-
this.setState(state);
|
|
89523
|
-
};
|
|
89524
|
-
Resizable.prototype.onMouseMove = function (event) {
|
|
89525
|
-
var _this = this;
|
|
89526
|
-
if (!this.state.isResizing || !this.resizable || !this.window) {
|
|
89527
|
-
return;
|
|
89528
|
-
}
|
|
89529
|
-
if (this.window.TouchEvent && isTouchEvent(event)) {
|
|
89530
|
-
try {
|
|
89531
|
-
event.preventDefault();
|
|
89532
|
-
event.stopPropagation();
|
|
89533
|
-
}
|
|
89534
|
-
catch (e) {
|
|
89535
|
-
// Ignore on fail
|
|
89536
|
-
}
|
|
89537
|
-
}
|
|
89538
|
-
var _a = this.props, maxWidth = _a.maxWidth, maxHeight = _a.maxHeight, minWidth = _a.minWidth, minHeight = _a.minHeight;
|
|
89539
|
-
var clientX = isTouchEvent(event) ? event.touches[0].clientX : event.clientX;
|
|
89540
|
-
var clientY = isTouchEvent(event) ? event.touches[0].clientY : event.clientY;
|
|
89541
|
-
var _b = this.state, direction = _b.direction, original = _b.original, width = _b.width, height = _b.height;
|
|
89542
|
-
var parentSize = this.getParentSize();
|
|
89543
|
-
var max = calculateNewMax(parentSize, this.window.innerWidth, this.window.innerHeight, maxWidth, maxHeight, minWidth, minHeight);
|
|
89544
|
-
maxWidth = max.maxWidth;
|
|
89545
|
-
maxHeight = max.maxHeight;
|
|
89546
|
-
minWidth = max.minWidth;
|
|
89547
|
-
minHeight = max.minHeight;
|
|
89548
|
-
// Calculate new size
|
|
89549
|
-
var _c = this.calculateNewSizeFromDirection(clientX, clientY), newHeight = _c.newHeight, newWidth = _c.newWidth;
|
|
89550
|
-
// Calculate max size from boundary settings
|
|
89551
|
-
var boundaryMax = this.calculateNewMaxFromBoundary(maxWidth, maxHeight);
|
|
89552
|
-
if (this.props.snap && this.props.snap.x) {
|
|
89553
|
-
newWidth = findClosestSnap(newWidth, this.props.snap.x, this.props.snapGap);
|
|
89554
|
-
}
|
|
89555
|
-
if (this.props.snap && this.props.snap.y) {
|
|
89556
|
-
newHeight = findClosestSnap(newHeight, this.props.snap.y, this.props.snapGap);
|
|
89557
|
-
}
|
|
89558
|
-
// Calculate new size from aspect ratio
|
|
89559
|
-
var newSize = this.calculateNewSizeFromAspectRatio(newWidth, newHeight, { width: boundaryMax.maxWidth, height: boundaryMax.maxHeight }, { width: minWidth, height: minHeight });
|
|
89560
|
-
newWidth = newSize.newWidth;
|
|
89561
|
-
newHeight = newSize.newHeight;
|
|
89562
|
-
if (this.props.grid) {
|
|
89563
|
-
var newGridWidth = snap(newWidth, this.props.grid[0]);
|
|
89564
|
-
var newGridHeight = snap(newHeight, this.props.grid[1]);
|
|
89565
|
-
var gap = this.props.snapGap || 0;
|
|
89566
|
-
newWidth = gap === 0 || Math.abs(newGridWidth - newWidth) <= gap ? newGridWidth : newWidth;
|
|
89567
|
-
newHeight = gap === 0 || Math.abs(newGridHeight - newHeight) <= gap ? newGridHeight : newHeight;
|
|
89568
|
-
}
|
|
89569
|
-
var delta = {
|
|
89570
|
-
width: newWidth - original.width,
|
|
89571
|
-
height: newHeight - original.height,
|
|
89572
|
-
};
|
|
89573
|
-
if (width && typeof width === 'string') {
|
|
89574
|
-
if (width.endsWith('%')) {
|
|
89575
|
-
var percent = (newWidth / parentSize.width) * 100;
|
|
89576
|
-
newWidth = percent + "%";
|
|
89577
|
-
}
|
|
89578
|
-
else if (width.endsWith('vw')) {
|
|
89579
|
-
var vw = (newWidth / this.window.innerWidth) * 100;
|
|
89580
|
-
newWidth = vw + "vw";
|
|
89581
|
-
}
|
|
89582
|
-
else if (width.endsWith('vh')) {
|
|
89583
|
-
var vh = (newWidth / this.window.innerHeight) * 100;
|
|
89584
|
-
newWidth = vh + "vh";
|
|
89585
|
-
}
|
|
89586
|
-
}
|
|
89587
|
-
if (height && typeof height === 'string') {
|
|
89588
|
-
if (height.endsWith('%')) {
|
|
89589
|
-
var percent = (newHeight / parentSize.height) * 100;
|
|
89590
|
-
newHeight = percent + "%";
|
|
89591
|
-
}
|
|
89592
|
-
else if (height.endsWith('vw')) {
|
|
89593
|
-
var vw = (newHeight / this.window.innerWidth) * 100;
|
|
89594
|
-
newHeight = vw + "vw";
|
|
89595
|
-
}
|
|
89596
|
-
else if (height.endsWith('vh')) {
|
|
89597
|
-
var vh = (newHeight / this.window.innerHeight) * 100;
|
|
89598
|
-
newHeight = vh + "vh";
|
|
89599
|
-
}
|
|
89600
|
-
}
|
|
89601
|
-
var newState = {
|
|
89602
|
-
width: this.createSizeForCssProperty(newWidth, 'width'),
|
|
89603
|
-
height: this.createSizeForCssProperty(newHeight, 'height'),
|
|
89604
|
-
};
|
|
89605
|
-
if (this.flexDir === 'row') {
|
|
89606
|
-
newState.flexBasis = newState.width;
|
|
89607
|
-
}
|
|
89608
|
-
else if (this.flexDir === 'column') {
|
|
89609
|
-
newState.flexBasis = newState.height;
|
|
89610
|
-
}
|
|
89611
|
-
// For v18, update state sync
|
|
89612
|
-
flushSync(function () {
|
|
89613
|
-
_this.setState(newState);
|
|
89614
|
-
});
|
|
89615
|
-
if (this.props.onResize) {
|
|
89616
|
-
this.props.onResize(event, direction, this.resizable, delta);
|
|
89617
|
-
}
|
|
89618
|
-
};
|
|
89619
|
-
Resizable.prototype.onMouseUp = function (event) {
|
|
89620
|
-
var _a = this.state, isResizing = _a.isResizing, direction = _a.direction, original = _a.original;
|
|
89621
|
-
if (!isResizing || !this.resizable) {
|
|
89622
|
-
return;
|
|
89623
|
-
}
|
|
89624
|
-
var delta = {
|
|
89625
|
-
width: this.size.width - original.width,
|
|
89626
|
-
height: this.size.height - original.height,
|
|
89627
|
-
};
|
|
89628
|
-
if (this.props.onResizeStop) {
|
|
89629
|
-
this.props.onResizeStop(event, direction, this.resizable, delta);
|
|
89630
|
-
}
|
|
89631
|
-
if (this.props.size) {
|
|
89632
|
-
this.setState(this.props.size);
|
|
89633
|
-
}
|
|
89634
|
-
this.unbindEvents();
|
|
89635
|
-
this.setState({
|
|
89636
|
-
isResizing: false,
|
|
89637
|
-
backgroundStyle: __assign(__assign({}, this.state.backgroundStyle), { cursor: 'auto' }),
|
|
89638
|
-
});
|
|
89639
|
-
};
|
|
89640
|
-
Resizable.prototype.updateSize = function (size) {
|
|
89641
|
-
this.setState({ width: size.width, height: size.height });
|
|
89642
|
-
};
|
|
89643
|
-
Resizable.prototype.renderResizer = function () {
|
|
89644
|
-
var _this = this;
|
|
89645
|
-
var _a = this.props, enable = _a.enable, handleStyles = _a.handleStyles, handleClasses = _a.handleClasses, handleWrapperStyle = _a.handleWrapperStyle, handleWrapperClass = _a.handleWrapperClass, handleComponent = _a.handleComponent;
|
|
89646
|
-
if (!enable) {
|
|
89647
|
-
return null;
|
|
89648
|
-
}
|
|
89649
|
-
var resizers = Object.keys(enable).map(function (dir) {
|
|
89650
|
-
if (enable[dir] !== false) {
|
|
89651
|
-
return (React$6.createElement(Resizer, { key: dir, direction: dir, onResizeStart: _this.onResizeStart, replaceStyles: handleStyles && handleStyles[dir], className: handleClasses && handleClasses[dir] }, handleComponent && handleComponent[dir] ? handleComponent[dir] : null));
|
|
89652
|
-
}
|
|
89653
|
-
return null;
|
|
89654
|
-
});
|
|
89655
|
-
// #93 Wrap the resize box in span (will not break 100% width/height)
|
|
89656
|
-
return (React$6.createElement("div", { className: handleWrapperClass, style: handleWrapperStyle }, resizers));
|
|
89657
|
-
};
|
|
89658
|
-
Resizable.prototype.render = function () {
|
|
89659
|
-
var _this = this;
|
|
89660
|
-
var extendsProps = Object.keys(this.props).reduce(function (acc, key) {
|
|
89661
|
-
if (definedProps.indexOf(key) !== -1) {
|
|
89662
|
-
return acc;
|
|
89663
|
-
}
|
|
89664
|
-
acc[key] = _this.props[key];
|
|
89665
|
-
return acc;
|
|
89666
|
-
}, {});
|
|
89667
|
-
var style = __assign(__assign(__assign({ position: 'relative', userSelect: this.state.isResizing ? 'none' : 'auto' }, this.props.style), this.sizeStyle), { maxWidth: this.props.maxWidth, maxHeight: this.props.maxHeight, minWidth: this.props.minWidth, minHeight: this.props.minHeight, boxSizing: 'border-box', flexShrink: 0 });
|
|
89668
|
-
if (this.state.flexBasis) {
|
|
89669
|
-
style.flexBasis = this.state.flexBasis;
|
|
89670
|
-
}
|
|
89671
|
-
var Wrapper = this.props.as || 'div';
|
|
89672
|
-
return (React$6.createElement(Wrapper, __assign({ ref: this.ref, style: style, className: this.props.className }, extendsProps),
|
|
89673
|
-
this.state.isResizing && React$6.createElement("div", { style: this.state.backgroundStyle }),
|
|
89674
|
-
this.props.children,
|
|
89675
|
-
this.renderResizer()));
|
|
89676
|
-
};
|
|
89677
|
-
Resizable.defaultProps = {
|
|
89678
|
-
as: 'div',
|
|
89679
|
-
onResizeStart: function () { },
|
|
89680
|
-
onResize: function () { },
|
|
89681
|
-
onResizeStop: function () { },
|
|
89682
|
-
enable: {
|
|
89683
|
-
top: true,
|
|
89684
|
-
right: true,
|
|
89685
|
-
bottom: true,
|
|
89686
|
-
left: true,
|
|
89687
|
-
topRight: true,
|
|
89688
|
-
bottomRight: true,
|
|
89689
|
-
bottomLeft: true,
|
|
89690
|
-
topLeft: true,
|
|
89691
|
-
},
|
|
89692
|
-
style: {},
|
|
89693
|
-
grid: [1, 1],
|
|
89694
|
-
lockAspectRatio: false,
|
|
89695
|
-
lockAspectRatioExtraWidth: 0,
|
|
89696
|
-
lockAspectRatioExtraHeight: 0,
|
|
89697
|
-
scale: 1,
|
|
89698
|
-
resizeRatio: 1,
|
|
89699
|
-
snapGap: 0,
|
|
89700
|
-
};
|
|
89701
|
-
return Resizable;
|
|
89702
|
-
}(React$6.PureComponent));
|
|
89703
|
-
|
|
89704
|
-
function cov_15b9syaiuk() {
|
|
89705
|
-
var path = "/home/runner/work/neeto-editor/neeto-editor/src/components/Editor/CustomExtensions/Image/Menu.jsx";
|
|
89706
|
-
var hash = "3ba46b3dc117ea42db34d1a84f99da5fb0eba973";
|
|
89707
|
-
var global = new Function("return this")();
|
|
89708
|
-
var gcv = "__coverage__";
|
|
89709
|
-
var coverageData = {
|
|
89710
|
-
path: "/home/runner/work/neeto-editor/neeto-editor/src/components/Editor/CustomExtensions/Image/Menu.jsx",
|
|
89711
|
-
statementMap: {
|
|
89712
|
-
"0": {
|
|
89713
|
-
start: {
|
|
89714
|
-
line: 8,
|
|
89715
|
-
column: 13
|
|
89716
|
-
},
|
|
89717
|
-
end: {
|
|
89718
|
-
line: 34,
|
|
89719
|
-
column: 1
|
|
89720
|
-
}
|
|
89721
|
-
},
|
|
89722
|
-
"1": {
|
|
89723
|
-
start: {
|
|
89724
|
-
line: 9,
|
|
89725
|
-
column: 22
|
|
89726
|
-
},
|
|
89727
|
-
end: {
|
|
89728
|
-
line: 9,
|
|
89729
|
-
column: 41
|
|
89730
|
-
}
|
|
89731
|
-
},
|
|
89732
|
-
"2": {
|
|
89733
|
-
start: {
|
|
89734
|
-
line: 11,
|
|
89735
|
-
column: 22
|
|
89736
|
-
},
|
|
89737
|
-
end: {
|
|
89738
|
-
line: 12,
|
|
89739
|
-
column: 54
|
|
89740
|
-
}
|
|
89741
|
-
},
|
|
89742
|
-
"3": {
|
|
89743
|
-
start: {
|
|
89744
|
-
line: 12,
|
|
89745
|
-
column: 4
|
|
89746
|
-
},
|
|
89747
|
-
end: {
|
|
89748
|
-
line: 12,
|
|
89749
|
-
column: 54
|
|
89750
|
-
}
|
|
89751
|
-
},
|
|
89752
|
-
"4": {
|
|
89753
|
-
start: {
|
|
89754
|
-
line: 14,
|
|
89755
|
-
column: 2
|
|
89756
|
-
},
|
|
89757
|
-
end: {
|
|
89758
|
-
line: 33,
|
|
89759
|
-
column: 4
|
|
89760
|
-
}
|
|
89761
|
-
},
|
|
89762
|
-
"5": {
|
|
89763
|
-
start: {
|
|
89764
|
-
line: 24,
|
|
89765
|
-
column: 8
|
|
89766
|
-
},
|
|
89767
|
-
end: {
|
|
89768
|
-
line: 30,
|
|
89769
|
-
column: 10
|
|
89770
|
-
}
|
|
89771
|
-
},
|
|
89772
|
-
"6": {
|
|
89773
|
-
start: {
|
|
89774
|
-
line: 29,
|
|
89775
|
-
column: 25
|
|
89776
|
-
},
|
|
89777
|
-
end: {
|
|
89778
|
-
line: 29,
|
|
89779
|
-
column: 46
|
|
89780
|
-
}
|
|
89781
|
-
}
|
|
89782
|
-
},
|
|
89783
|
-
fnMap: {
|
|
89784
|
-
"0": {
|
|
89785
|
-
name: "(anonymous_0)",
|
|
89786
|
-
decl: {
|
|
89787
|
-
start: {
|
|
89788
|
-
line: 8,
|
|
89789
|
-
column: 13
|
|
89790
|
-
},
|
|
89791
|
-
end: {
|
|
89792
|
-
line: 8,
|
|
89793
|
-
column: 14
|
|
89794
|
-
}
|
|
89795
|
-
},
|
|
89796
|
-
loc: {
|
|
89797
|
-
start: {
|
|
89798
|
-
line: 8,
|
|
89799
|
-
column: 58
|
|
89800
|
-
},
|
|
89801
|
-
end: {
|
|
89802
|
-
line: 34,
|
|
89803
|
-
column: 1
|
|
89804
|
-
}
|
|
89805
|
-
},
|
|
89806
|
-
line: 8
|
|
89807
|
-
},
|
|
89808
|
-
"1": {
|
|
89809
|
-
name: "(anonymous_1)",
|
|
89810
|
-
decl: {
|
|
89811
|
-
start: {
|
|
89812
|
-
line: 11,
|
|
89813
|
-
column: 22
|
|
89814
|
-
},
|
|
89815
|
-
end: {
|
|
89816
|
-
line: 11,
|
|
89817
|
-
column: 23
|
|
89818
|
-
}
|
|
89819
|
-
},
|
|
89820
|
-
loc: {
|
|
89821
|
-
start: {
|
|
89822
|
-
line: 12,
|
|
89823
|
-
column: 4
|
|
89824
|
-
},
|
|
89825
|
-
end: {
|
|
89826
|
-
line: 12,
|
|
89827
|
-
column: 54
|
|
89828
|
-
}
|
|
89829
|
-
},
|
|
89830
|
-
line: 12
|
|
89831
|
-
},
|
|
89832
|
-
"2": {
|
|
89833
|
-
name: "(anonymous_2)",
|
|
89834
|
-
decl: {
|
|
89835
|
-
start: {
|
|
89836
|
-
line: 23,
|
|
89837
|
-
column: 23
|
|
89838
|
-
},
|
|
89839
|
-
end: {
|
|
89840
|
-
line: 23,
|
|
89841
|
-
column: 24
|
|
89842
|
-
}
|
|
89843
|
-
},
|
|
89844
|
-
loc: {
|
|
89845
|
-
start: {
|
|
89846
|
-
line: 24,
|
|
89847
|
-
column: 8
|
|
89848
|
-
},
|
|
89849
|
-
end: {
|
|
89850
|
-
line: 30,
|
|
89851
|
-
column: 10
|
|
89852
|
-
}
|
|
89853
|
-
},
|
|
89854
|
-
line: 24
|
|
89855
|
-
},
|
|
89856
|
-
"3": {
|
|
89857
|
-
name: "(anonymous_3)",
|
|
89858
|
-
decl: {
|
|
89859
|
-
start: {
|
|
89860
|
-
line: 29,
|
|
89861
|
-
column: 19
|
|
89862
|
-
},
|
|
89863
|
-
end: {
|
|
89864
|
-
line: 29,
|
|
89865
|
-
column: 20
|
|
89866
|
-
}
|
|
89867
|
-
},
|
|
89868
|
-
loc: {
|
|
89869
|
-
start: {
|
|
89870
|
-
line: 29,
|
|
89871
|
-
column: 25
|
|
89872
|
-
},
|
|
89873
|
-
end: {
|
|
89874
|
-
line: 29,
|
|
89875
|
-
column: 46
|
|
89876
|
-
}
|
|
89877
|
-
},
|
|
89878
|
-
line: 29
|
|
89879
|
-
}
|
|
89880
|
-
},
|
|
89881
|
-
branchMap: {
|
|
89882
|
-
"0": {
|
|
89883
|
-
loc: {
|
|
89884
|
-
start: {
|
|
89885
|
-
line: 12,
|
|
89886
|
-
column: 4
|
|
89887
|
-
},
|
|
89888
|
-
end: {
|
|
89889
|
-
line: 12,
|
|
89890
|
-
column: 54
|
|
89891
|
-
}
|
|
89892
|
-
},
|
|
89893
|
-
type: "cond-expr",
|
|
89894
|
-
locations: [{
|
|
89895
|
-
start: {
|
|
89896
|
-
line: 12,
|
|
89897
|
-
column: 12
|
|
89898
|
-
},
|
|
89899
|
-
end: {
|
|
89900
|
-
line: 12,
|
|
89901
|
-
column: 39
|
|
89902
|
-
}
|
|
89903
|
-
}, {
|
|
89904
|
-
start: {
|
|
89905
|
-
line: 12,
|
|
89906
|
-
column: 42
|
|
89907
|
-
},
|
|
89908
|
-
end: {
|
|
89909
|
-
line: 12,
|
|
89910
|
-
column: 54
|
|
89911
|
-
}
|
|
89912
|
-
}],
|
|
89913
|
-
line: 12
|
|
89914
|
-
},
|
|
89915
|
-
"1": {
|
|
89916
|
-
loc: {
|
|
89917
|
-
start: {
|
|
89918
|
-
line: 27,
|
|
89919
|
-
column: 17
|
|
89920
|
-
},
|
|
89921
|
-
end: {
|
|
89922
|
-
line: 27,
|
|
89923
|
-
column: 58
|
|
89924
|
-
}
|
|
89925
|
-
},
|
|
89926
|
-
type: "cond-expr",
|
|
89927
|
-
locations: [{
|
|
89928
|
-
start: {
|
|
89929
|
-
line: 27,
|
|
89930
|
-
column: 38
|
|
89931
|
-
},
|
|
89932
|
-
end: {
|
|
89933
|
-
line: 27,
|
|
89934
|
-
column: 49
|
|
89935
|
-
}
|
|
89936
|
-
}, {
|
|
89937
|
-
start: {
|
|
89938
|
-
line: 27,
|
|
89939
|
-
column: 52
|
|
89940
|
-
},
|
|
89941
|
-
end: {
|
|
89942
|
-
line: 27,
|
|
89943
|
-
column: 58
|
|
89944
|
-
}
|
|
89945
|
-
}],
|
|
89946
|
-
line: 27
|
|
89947
|
-
}
|
|
89948
|
-
},
|
|
89949
|
-
s: {
|
|
89950
|
-
"0": 0,
|
|
89951
|
-
"1": 0,
|
|
89952
|
-
"2": 0,
|
|
89953
|
-
"3": 0,
|
|
89954
|
-
"4": 0,
|
|
89955
|
-
"5": 0,
|
|
89956
|
-
"6": 0
|
|
89957
|
-
},
|
|
89958
|
-
f: {
|
|
89959
|
-
"0": 0,
|
|
89960
|
-
"1": 0,
|
|
89961
|
-
"2": 0,
|
|
89962
|
-
"3": 0
|
|
89963
|
-
},
|
|
89964
|
-
b: {
|
|
89965
|
-
"0": [0, 0],
|
|
89966
|
-
"1": [0, 0]
|
|
89967
|
-
},
|
|
89968
|
-
_coverageSchema: "1a1c01bbd47fc00a2c39e90264f33305004495a9",
|
|
89969
|
-
hash: "3ba46b3dc117ea42db34d1a84f99da5fb0eba973"
|
|
89970
|
-
};
|
|
89971
|
-
var coverage = global[gcv] || (global[gcv] = {});
|
|
89972
|
-
if (!coverage[path] || coverage[path].hash !== hash) {
|
|
89973
|
-
coverage[path] = coverageData;
|
|
89974
|
-
}
|
|
89975
|
-
var actualCoverage = coverage[path];
|
|
89976
|
-
{
|
|
89977
|
-
// @ts-ignore
|
|
89978
|
-
cov_15b9syaiuk = function () {
|
|
89979
|
-
return actualCoverage;
|
|
89980
|
-
};
|
|
89981
|
-
}
|
|
89982
|
-
return actualCoverage;
|
|
89983
|
-
}
|
|
89984
|
-
cov_15b9syaiuk();
|
|
89985
|
-
cov_15b9syaiuk().s[0]++;
|
|
89986
|
-
var Menu$7 = function Menu(_ref) {
|
|
89987
|
-
var align = _ref.align,
|
|
89988
|
-
updateAttributes = _ref.updateAttributes,
|
|
89989
|
-
deleteNode = _ref.deleteNode;
|
|
89990
|
-
cov_15b9syaiuk().f[0]++;
|
|
89991
|
-
var menuOptions = (cov_15b9syaiuk().s[1]++, buildImageOptions());
|
|
89992
|
-
cov_15b9syaiuk().s[2]++;
|
|
89993
|
-
var handleClick = function handleClick(align) {
|
|
89994
|
-
cov_15b9syaiuk().f[1]++;
|
|
89995
|
-
cov_15b9syaiuk().s[3]++;
|
|
89996
|
-
return align ? (cov_15b9syaiuk().b[0][0]++, updateAttributes({
|
|
89997
|
-
align: align
|
|
89998
|
-
})) : (cov_15b9syaiuk().b[0][1]++, deleteNode());
|
|
89999
|
-
};
|
|
90000
|
-
cov_15b9syaiuk().s[4]++;
|
|
90001
|
-
return /*#__PURE__*/React__default.createElement(Dropdown$1, {
|
|
90002
|
-
buttonProps: {
|
|
90003
|
-
className: "neeto-editor__image-menu-btn"
|
|
90004
|
-
},
|
|
90005
|
-
buttonSize: "small",
|
|
90006
|
-
buttonStyle: "secondary",
|
|
90007
|
-
className: "neeto-editor__image-menu",
|
|
90008
|
-
icon: MenuHorizontal,
|
|
90009
|
-
position: "top"
|
|
90010
|
-
}, menuOptions.map(function (_ref2) {
|
|
90011
|
-
var Icon = _ref2.Icon,
|
|
90012
|
-
optionName = _ref2.optionName,
|
|
90013
|
-
alignPos = _ref2.alignPos;
|
|
90014
|
-
cov_15b9syaiuk().f[2]++;
|
|
90015
|
-
cov_15b9syaiuk().s[5]++;
|
|
90016
|
-
return /*#__PURE__*/React__default.createElement(Button$1, {
|
|
90017
|
-
icon: Icon,
|
|
90018
|
-
key: optionName,
|
|
90019
|
-
style: alignPos === align ? (cov_15b9syaiuk().b[1][0]++, "secondary") : (cov_15b9syaiuk().b[1][1]++, "text"),
|
|
90020
|
-
tooltipProps: {
|
|
90021
|
-
content: optionName,
|
|
90022
|
-
position: "top"
|
|
90023
|
-
},
|
|
90024
|
-
onClick: function onClick() {
|
|
90025
|
-
cov_15b9syaiuk().f[3]++;
|
|
90026
|
-
cov_15b9syaiuk().s[6]++;
|
|
90027
|
-
return handleClick(alignPos);
|
|
90028
|
-
}
|
|
90029
|
-
});
|
|
90030
|
-
}));
|
|
90031
|
-
};
|
|
90032
|
-
|
|
90033
90483
|
function cov_1rrokgc9k1() {
|
|
90034
90484
|
var path = "/home/runner/work/neeto-editor/neeto-editor/src/components/Editor/CustomExtensions/Image/ImageComponent.jsx";
|
|
90035
|
-
var hash = "
|
|
90485
|
+
var hash = "982fbd6893b6ecec1c31036d5015460f16dcd00a";
|
|
90036
90486
|
var global = new Function("return this")();
|
|
90037
90487
|
var gcv = "__coverage__";
|
|
90038
90488
|
var coverageData = {
|
|
@@ -90044,7 +90494,7 @@ function cov_1rrokgc9k1() {
|
|
|
90044
90494
|
column: 23
|
|
90045
90495
|
},
|
|
90046
90496
|
end: {
|
|
90047
|
-
line:
|
|
90497
|
+
line: 69,
|
|
90048
90498
|
column: 1
|
|
90049
90499
|
}
|
|
90050
90500
|
},
|
|
@@ -90114,47 +90564,47 @@ function cov_1rrokgc9k1() {
|
|
|
90114
90564
|
column: 2
|
|
90115
90565
|
},
|
|
90116
90566
|
end: {
|
|
90117
|
-
line:
|
|
90567
|
+
line: 68,
|
|
90118
90568
|
column: 4
|
|
90119
90569
|
}
|
|
90120
90570
|
},
|
|
90121
90571
|
"8": {
|
|
90122
90572
|
start: {
|
|
90123
|
-
line:
|
|
90573
|
+
line: 43,
|
|
90124
90574
|
column: 12
|
|
90125
90575
|
},
|
|
90126
90576
|
end: {
|
|
90127
|
-
line:
|
|
90577
|
+
line: 43,
|
|
90128
90578
|
column: 38
|
|
90129
90579
|
}
|
|
90130
90580
|
},
|
|
90131
90581
|
"9": {
|
|
90132
90582
|
start: {
|
|
90133
|
-
line:
|
|
90583
|
+
line: 44,
|
|
90134
90584
|
column: 12
|
|
90135
90585
|
},
|
|
90136
90586
|
end: {
|
|
90137
|
-
line:
|
|
90587
|
+
line: 44,
|
|
90138
90588
|
column: 36
|
|
90139
90589
|
}
|
|
90140
90590
|
},
|
|
90141
90591
|
"10": {
|
|
90142
90592
|
start: {
|
|
90143
|
-
line:
|
|
90593
|
+
line: 45,
|
|
90144
90594
|
column: 12
|
|
90145
90595
|
},
|
|
90146
90596
|
end: {
|
|
90147
|
-
line:
|
|
90597
|
+
line: 56,
|
|
90148
90598
|
column: 14
|
|
90149
90599
|
}
|
|
90150
90600
|
},
|
|
90151
90601
|
"11": {
|
|
90152
90602
|
start: {
|
|
90153
|
-
line:
|
|
90603
|
+
line: 57,
|
|
90154
90604
|
column: 12
|
|
90155
90605
|
},
|
|
90156
90606
|
end: {
|
|
90157
|
-
line:
|
|
90607
|
+
line: 57,
|
|
90158
90608
|
column: 36
|
|
90159
90609
|
}
|
|
90160
90610
|
}
|
|
@@ -90178,7 +90628,7 @@ function cov_1rrokgc9k1() {
|
|
|
90178
90628
|
column: 6
|
|
90179
90629
|
},
|
|
90180
90630
|
end: {
|
|
90181
|
-
line:
|
|
90631
|
+
line: 69,
|
|
90182
90632
|
column: 1
|
|
90183
90633
|
}
|
|
90184
90634
|
},
|
|
@@ -90188,25 +90638,25 @@ function cov_1rrokgc9k1() {
|
|
|
90188
90638
|
name: "(anonymous_1)",
|
|
90189
90639
|
decl: {
|
|
90190
90640
|
start: {
|
|
90191
|
-
line:
|
|
90641
|
+
line: 42,
|
|
90192
90642
|
column: 24
|
|
90193
90643
|
},
|
|
90194
90644
|
end: {
|
|
90195
|
-
line:
|
|
90645
|
+
line: 42,
|
|
90196
90646
|
column: 25
|
|
90197
90647
|
}
|
|
90198
90648
|
},
|
|
90199
90649
|
loc: {
|
|
90200
90650
|
start: {
|
|
90201
|
-
line:
|
|
90651
|
+
line: 42,
|
|
90202
90652
|
column: 53
|
|
90203
90653
|
},
|
|
90204
90654
|
end: {
|
|
90205
|
-
line:
|
|
90655
|
+
line: 58,
|
|
90206
90656
|
column: 11
|
|
90207
90657
|
}
|
|
90208
90658
|
},
|
|
90209
|
-
line:
|
|
90659
|
+
line: 42
|
|
90210
90660
|
}
|
|
90211
90661
|
},
|
|
90212
90662
|
branchMap: {
|
|
@@ -90266,7 +90716,7 @@ function cov_1rrokgc9k1() {
|
|
|
90266
90716
|
"0": [0, 0]
|
|
90267
90717
|
},
|
|
90268
90718
|
_coverageSchema: "1a1c01bbd47fc00a2c39e90264f33305004495a9",
|
|
90269
|
-
hash: "
|
|
90719
|
+
hash: "982fbd6893b6ecec1c31036d5015460f16dcd00a"
|
|
90270
90720
|
};
|
|
90271
90721
|
var coverage = global[gcv] || (global[gcv] = {});
|
|
90272
90722
|
if (!coverage[path] || coverage[path].hash !== hash) {
|
|
@@ -90282,8 +90732,6 @@ function cov_1rrokgc9k1() {
|
|
|
90282
90732
|
return actualCoverage;
|
|
90283
90733
|
}
|
|
90284
90734
|
cov_1rrokgc9k1();
|
|
90285
|
-
function ownKeys$8(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
90286
|
-
function _objectSpread$8(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$8(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$8(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
90287
90735
|
cov_1rrokgc9k1().s[0]++;
|
|
90288
90736
|
var ImageComponent = function ImageComponent(_ref) {
|
|
90289
90737
|
var _figureRef$current$qu;
|
|
@@ -90313,6 +90761,7 @@ var ImageComponent = function ImageComponent(_ref) {
|
|
|
90313
90761
|
}, /*#__PURE__*/React__default.createElement(Menu$7, {
|
|
90314
90762
|
align: align,
|
|
90315
90763
|
deleteNode: deleteNode,
|
|
90764
|
+
editor: editor,
|
|
90316
90765
|
updateAttributes: updateAttributes
|
|
90317
90766
|
}), /*#__PURE__*/React__default.createElement(Resizable, {
|
|
90318
90767
|
lockAspectRatio: true,
|
|
@@ -90328,7 +90777,7 @@ var ImageComponent = function ImageComponent(_ref) {
|
|
|
90328
90777
|
cov_1rrokgc9k1().s[9]++;
|
|
90329
90778
|
width = ref.offsetWidth;
|
|
90330
90779
|
cov_1rrokgc9k1().s[10]++;
|
|
90331
|
-
view.dispatch(view.state.tr.setNodeMarkup(getPos(), undefined,
|
|
90780
|
+
view.dispatch(view.state.tr.setNodeMarkup(getPos(), undefined, mergeRight(node.attrs, {
|
|
90332
90781
|
figheight: height,
|
|
90333
90782
|
figwidth: width,
|
|
90334
90783
|
height: height,
|
|
@@ -100833,7 +101282,7 @@ var MENU_ITEMS = (cov_140r6ea3a4().s[0]++, [{
|
|
|
100833
101282
|
optionName: EDITOR_OPTIONS.CODE_BLOCK,
|
|
100834
101283
|
title: "Code block",
|
|
100835
101284
|
description: "Add a code block with syntax highlighting.",
|
|
100836
|
-
Icon:
|
|
101285
|
+
Icon: CodeBlock$2,
|
|
100837
101286
|
command: function command(_ref11) {
|
|
100838
101287
|
var editor = _ref11.editor,
|
|
100839
101288
|
range = _ref11.range;
|
|
@@ -118148,7 +118597,7 @@ var MENU_OPTIONS$1 = function MENU_OPTIONS(_ref2) {
|
|
|
118148
118597
|
optionName: "code",
|
|
118149
118598
|
tooltip: (cov_17cji89s6g().b[6][0]++, tooltips.code) || (cov_17cji89s6g().b[6][1]++, t$2("menu.code"))
|
|
118150
118599
|
}, {
|
|
118151
|
-
Icon:
|
|
118600
|
+
Icon: CodeBlock$2,
|
|
118152
118601
|
command: function command() {
|
|
118153
118602
|
cov_17cji89s6g().f[8]++;
|
|
118154
118603
|
cov_17cji89s6g().s[10]++;
|
|
@@ -127974,7 +128423,7 @@ var MENU_OPTIONS = function MENU_OPTIONS(_ref2) {
|
|
|
127974
128423
|
optionName: "code",
|
|
127975
128424
|
tooltip: (cov_1fwd2t6om3().b[6][0]++, tooltips.code) || (cov_1fwd2t6om3().b[6][1]++, t("menu.code"))
|
|
127976
128425
|
}, {
|
|
127977
|
-
Icon:
|
|
128426
|
+
Icon: CodeBlock$2,
|
|
127978
128427
|
command: function command() {
|
|
127979
128428
|
cov_1fwd2t6om3().f[8]++;
|
|
127980
128429
|
cov_1fwd2t6om3().s[10]++;
|
|
@@ -133651,7 +134100,7 @@ var EditorContent = function EditorContent(_ref) {
|
|
|
133651
134100
|
}, otherProps));
|
|
133652
134101
|
};
|
|
133653
134102
|
|
|
133654
|
-
var css = "@charset \"UTF-8\";@import url(\"https://cdnjs.cloudflare.com/ajax/libs/highlight.js/10.7.2/styles/github.min.css\");@keyframes shake{0%{transform:translateX(0)}10%{transform:translateX(-4px)}20%{transform:translateX(4px)}30%{transform:translateX(-4px)}40%{transform:translateX(4px)}50%{transform:translateX(-4px)}60%{transform:translateX(4px)}70%{transform:translateX(-4px)}80%{transform:translateX(4px)}90%{transform:translateX(-4px)}to{transform:translateX(0)}}@keyframes fade-in{0%{opacity:0}to{opacity:1}}@keyframes spin{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}.neeto-editor-slash-commands__wrapper{align-items:flex-start;display:flex;flex-direction:column;gap:4px;justify-content:flex-start;max-height:384px;max-width:100%;overflow-y:auto;padding:12px;width:256px}.neeto-editor-slash-commands__wrapper .neeto-editor-slash-commands__item{align-items:center;border-radius:var(--neeto-ui-rounded);color:rgb(var(--neeto-ui-white));cursor:pointer;display:flex;flex-direction:row;gap:12px;justify-content:flex-start;padding:8px 12px;transition:var(--neeto-ui-transition);width:100%}.neeto-editor-slash-commands__wrapper .neeto-editor-slash-commands__item.active,.neeto-editor-slash-commands__wrapper .neeto-editor-slash-commands__item:hover{background-color:rgb(var(--neeto-ui-gray-700))}.neeto-editor-slash-commands__wrapper .neeto-editor-slash-commands__item .neeto-editor-slash-commands__item-content h5{font-size:var(--neeto-ui-text-sm);font-weight:var(--neeto-ui-font-semibold);line-height:var(--neeto-ui-leading-normal)}.neeto-editor-slash-commands__wrapper .neeto-editor-slash-commands__item .neeto-editor-slash-commands__item-content p{color:rgb(var(--neeto-ui-gray-300));font-size:var(--neeto-ui-text-xs)}.neeto-editor-mentions__wrapper{max-height:256px;min-width:208px;overflow-y:auto;padding:8px;width:auto}.neeto-editor-mentions__wrapper .neeto-editor-mentions__item{align-items:center;border-radius:var(--neeto-ui-rounded);color:rgb(var(--neeto-ui-white));cursor:pointer;display:flex;flex-direction:row;font-size:var(--neeto-ui-text-xs);gap:8px;justify-content:flex-start;padding:8px;transition:var(--neeto-ui-transition);width:100%}.neeto-editor-mentions__wrapper .neeto-editor-mentions__item p{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.neeto-editor-mentions__wrapper .neeto-editor-mentions__item.active,.neeto-editor-mentions__wrapper .neeto-editor-mentions__item:hover{background-color:rgb(var(--neeto-ui-gray-700))}.ProseMirror.slash-active p.is-empty:last-child:before{content:url(\"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAwIiBoZWlnaHQ9IjIwIiBmaWxsPSJub25lIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjxwYXRoIGQ9Ik0zLjgyMSAxNWgxLjIzVjYuMjQzaDMuMThWNS4xMzZILjY0MnYxLjEwN0gzLjgyVjE1Wm01LjkgMi41ODRjMS4zMDUgMCAxLjkxNC0uNDc5IDIuNTIyLTIuMTMzbDIuODc4LTcuODJoLTEuMjVsLTIuMDE4IDYuMDYzaC0uMTA5TDkuNzIxIDcuNjMxSDguNDQ5bDIuNzI4IDcuMzc2LS4xMzcuNDM3Yy0uMjY3Ljg0OC0uNjc3IDEuMTU2LTEuMzUzIDEuMTU2LS4xNjUgMC0uMzUtLjAwNy0uNDkzLS4wMzV2Ljk3OGMuMTY0LjAyNy4zNy4wNDEuNTI3LjA0MVptNi45NzItLjEyM2gxLjE5di0zLjYyM2guMTFjLjQwMi43ODYgMS4yODQgMS4yOTIgMi4yOTYgMS4yOTIgMS44NzMgMCAzLjA5LTEuNDk3IDMuMDktMy44MDh2LS4wMTNjMC0yLjI5Ny0xLjIyNC0zLjgwOC0zLjA5LTMuODA4LTEuMDI1IDAtMS44NDYuNDg1LTIuMjk3IDEuMzA2aC0uMTFWNy42M2gtMS4xODl2OS44M1ptMy4zMjMtMy4zODRjLTEuMzQgMC0yLjE2LTEuMDUzLTIuMTYtMi43NTV2LS4wMTNjMC0xLjcwMy44Mi0yLjc1NSAyLjE2LTIuNzU1IDEuMzQ2IDAgMi4xNDYgMS4wMzkgMi4xNDYgMi43NTV2LjAxM2MwIDEuNzE2LS44IDIuNzU1LTIuMTQ2IDIuNzU1Wm04LjIzIDEuMDUzYzEuNzM2IDAgMi43OS0uOTg1IDMuMDQyLTEuOTgybC4wMTQtLjA1NWgtMS4xOWwtLjAyNy4wNjFjLS4xOTguNDQ1LS44MTQuOTE2LTEuODEyLjkxNi0xLjMxMiAwLTIuMTUzLS44ODgtMi4xODctMi40MTNoNS4zMDV2LS40NjVjMC0yLjItMS4yMTctMy42OTEtMy4yMi0zLjY5MXMtMy4zMDIgMS41NTktMy4zMDIgMy44MzV2LjAwN2MwIDIuMzEgMS4yNzIgMy43ODcgMy4zNzcgMy43ODdabS0uMDgyLTYuNTdjMS4wODcgMCAxLjg5NC42OTEgMi4wMTcgMi4xNDdoLTQuMDc1Yy4xMy0xLjQwMS45NjQtMi4xNDYgMi4wNTgtMi4xNDZaIiBmaWxsPSIjODc5MjlEIi8+PHJlY3QgeD0iMzciIHdpZHRoPSIyMCIgaGVpZ2h0PSIyMCIgcng9IjMiIGZpbGw9IiNFOUVCRUQiLz48cGF0aCBkPSJtNTAuNDI4IDUuOTE0LTYuODU2IDguMTcyIiBzdHJva2U9IiMyNTJDMzIiIHN0cm9rZS13aWR0aD0iMS41IiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiLz48cGF0aCBkPSJNNjQuNzI2IDE1LjA1NWMuMjMyIDAgLjQ1OC0uMDI4LjY5LS4wNjl2LTEuMDExYy0uMjE5LjAyLS4zMzUuMDI3LS41NDcuMDI3LS43NjYgMC0xLjA2Ni0uMzQ5LTEuMDY2LTEuMjE3di00LjE3aDEuNjEzdi0uOTg0aC0xLjYxM1Y1LjcyNGgtMS4yM1Y3LjYzSDYxLjQxdi45ODRoMS4xNjJ2NC40N2MwIDEuNDEuNjM2IDEuOTcgMi4xNTQgMS45N1ptNS4zODYuMDc1YzIuMDk5IDAgMy4zOTgtMS40NSAzLjM5OC0zLjgwOHYtLjAxM2MwLTIuMzY2LTEuMy0zLjgwOC0zLjM5OC0zLjgwOHMtMy4zOTcgMS40NDItMy4zOTcgMy44MDh2LjAxM2MwIDIuMzU5IDEuMjk5IDMuODA4IDMuMzk3IDMuODA4Wm0wLTEuMDUzYy0xLjM5NCAwLTIuMTgtMS4wMTgtMi4xOC0yLjc1NXYtLjAxM2MwLTEuNzQ0Ljc4Ni0yLjc1NSAyLjE4LTIuNzU1IDEuMzk1IDAgMi4xODEgMS4wMTEgMi4xODEgMi43NTV2LjAxM2MwIDEuNzM3LS43ODYgMi43NTUtMi4xOCAyLjc1NVptMTIuMTk2IDEuMDUzYzEuNzcgMCAyLjc2MS0uOTUgMy4wNjItMi4yODNsLjAxNC0uMDc1LTEuMTc2LjAwNi0uMDE0LjA0MWMtLjI3My44Mi0uOTAyIDEuMjU4LTEuODkzIDEuMjU4LTEuMzEzIDAtMi4xNi0xLjA4Ny0yLjE2LTIuNzgydi0uMDE0YzAtMS42Ni44MzQtMi43MjcgMi4xNi0yLjcyNyAxLjA2IDAgMS43MTYuNTg4IDEuOSAxLjMxMmwuMDA3LjAyaDEuMTgzbC0uMDA3LS4wNEM4NS4xNjUgOC41MzMgODQuMDkyIDcuNSA4Mi4zIDcuNWMtMi4wNjUgMC0zLjM3NyAxLjQ5LTMuMzc3IDMuNzh2LjAxNGMwIDIuMzM4IDEuMzIgMy44MzUgMy4zODQgMy44MzVabTQuODg3LS4xM2gxLjE5di00LjM2MWMwLTEuMjkyLjc0NS0yLjA4NSAxLjkyLTIuMDg1IDEuMTc2IDAgMS43MjMuNjM1IDEuNzIzIDEuOTYyVjE1aDEuMTl2LTQuNzcxYzAtMS43NS0uOTIzLTIuNzI4LTIuNTc3LTIuNzI4LTEuMDg3IDAtMS43NzguNDU4LTIuMTQ3IDEuMjM3aC0uMTFWNC43MDVoLTEuMTg5VjE1Wm0xMC4yLjEzYy45OSAwIDEuNzYzLS40MyAyLjIyOC0xLjIxN2guMTFWMTVoMS4xODlWOS45NTVjMC0xLjUzMS0xLjAwNS0yLjQ1NC0yLjgwMy0yLjQ1NC0xLjU3MiAwLTIuNjkzLjc4LTIuODg1IDEuOTM1bC0uMDA2LjA0aDEuMTg5bC4wMDctLjAyYy4xOTEtLjU3NC43NzItLjkwMiAxLjY1NC0uOTAyIDEuMSAwIDEuNjU0LjQ5MiAxLjY1NCAxLjQwMXYuNjdsLTIuMTEyLjEzYy0xLjcxNi4xMDItMi42ODYuODYxLTIuNjg2IDIuMTc0di4wMTNjMCAxLjM0IDEuMDYgMi4xODggMi40NiAyLjE4OFptLTEuMjQ1LTIuMjE1di0uMDE0YzAtLjczMS40OTMtMS4xMjggMS42MTQtMS4xOTZsMS45NjgtLjEyM3YuNjdjMCAxLjA1My0uODgxIDEuODQ2LTIuMDkxIDEuODQ2LS44NTUgMC0xLjQ5LS40MzgtMS40OS0xLjE4M1pNMTAzLjA5NiAxNWgxLjE4OXYtNC4zNjFjMC0xLjI5Mi43NDUtMi4wODUgMS45MjEtMi4wODUgMS4xNzYgMCAxLjcyMy42MzUgMS43MjMgMS45NjJWMTVoMS4xODl2LTQuNzcxYzAtMS43NS0uOTIzLTIuNzI4LTIuNTc3LTIuNzI4LTEuMDg3IDAtMS43NzcuNDU4LTIuMTQ2IDEuMjM3aC0uMTFWNy42MzFoLTEuMTg5VjE1Wm0xMS4yMTEgMi41OThjMi4wMDkgMCAzLjI4MS0xLjA1MyAzLjI4MS0yLjdWNy42M2gtMS4xOXYxLjIxN2gtLjA4MmMtLjQ1MS0uODM0LTEuMjU3LTEuMzQ3LTIuMjk2LTEuMzQ3LTEuOTI4IDAtMy4xMTggMS40OTctMy4xMTggMy41NjF2LjAxNGMwIDIuMDY1IDEuMTgzIDMuNTQxIDMuMDkgMy41NDEgMS4wMTIgMCAxLjg0Ni0uNDU4IDIuMzExLTEuMjcxaC4xMDl2MS40OWMwIDEuMDg3LS43ODYgMS43MDktMi4xMDUgMS43MDktMS4wNiAwLTEuNzE2LS4zOTctMS44NDYtLjk1N2wtLjAwNy0uMDA3aC0xLjIzbC0uMDE0LjAwN2MuMTg1IDEuMjEgMS4zMTkgMi4wMSAzLjA5NyAyLjAxWm0tLjA1NS00LjAzM2MtMS4zNjcgMC0yLjEzMy0xLjAyNi0yLjEzMy0yLjQ4OXYtLjAxNGMwLTEuNDYyLjc2Ni0yLjUwOCAyLjEzMy0yLjUwOCAxLjM2IDAgMi4xODcgMS4wNDYgMi4xODcgMi41MDh2LjAxNGMwIDEuNDYzLS44MiAyLjQ4OS0yLjE4NyAyLjQ4OVptOC41NTkgMS41NjVjMS43MzYgMCAyLjc4OS0uOTg1IDMuMDQyLTEuOTgybC4wMTMtLjA1NWgtMS4xODlsLS4wMjguMDYxYy0uMTk4LjQ0NS0uODEzLjkxNi0xLjgxMS45MTYtMS4zMTMgMC0yLjE1My0uODg4LTIuMTg4LTIuNDEzaDUuMzA1di0uNDY1YzAtMi4yLTEuMjE3LTMuNjkxLTMuMjItMy42OTFzLTMuMzAxIDEuNTU5LTMuMzAxIDMuODM1di4wMDdjMCAyLjMxIDEuMjcxIDMuNzg3IDMuMzc3IDMuNzg3Wm0tLjA4Mi02LjU3YzEuMDg2IDAgMS44OTMuNjkxIDIuMDE2IDIuMTQ3aC00LjA3NGMuMTMtMS40MDEuOTY0LTIuMTQ2IDIuMDU4LTIuMTQ2Wm0xMi42NzMgNi41N2MxLjg2NyAwIDMuMDktMS41MSAzLjA5LTMuODA4di0uMDEzYzAtMi4zMTEtMS4yMTctMy44MDgtMy4wOS0zLjgwOC0xLjAxMSAwLTEuODkzLjUwNi0yLjI5NyAxLjI5MmgtLjEwOVY0LjcwNWgtMS4xODlWMTVoMS4xODl2LTEuMTc2aC4xMDljLjQ1Mi44MiAxLjI3MiAxLjMwNiAyLjI5NyAxLjMwNlptLS4yNzMtMS4wNTNjLTEuMzQgMC0yLjE2LTEuMDUzLTIuMTYtMi43NTV2LS4wMTNjMC0xLjcwMy44Mi0yLjc1NSAyLjE2LTIuNzU1IDEuMzQ3IDAgMi4xNDYgMS4wMzkgMi4xNDYgMi43NTV2LjAxM2MwIDEuNzE2LS43OTkgMi43NTUtMi4xNDYgMi43NTVabTUuMjc3LjkyM2gxLjE5VjQuNzA1aC0xLjE5VjE1Wm02LjUwMS4xM2MyLjA5OSAwIDMuMzk4LTEuNDUgMy4zOTgtMy44MDh2LS4wMTNjMC0yLjM2Ni0xLjI5OS0zLjgwOC0zLjM5OC0zLjgwOC0yLjA5OCAwLTMuMzk3IDEuNDQyLTMuMzk3IDMuODA4di4wMTNjMCAyLjM1OSAxLjI5OSAzLjgwOCAzLjM5NyAzLjgwOFptMC0xLjA1M2MtMS4zOTQgMC0yLjE4LTEuMDE4LTIuMTgtMi43NTV2LS4wMTNjMC0xLjc0NC43ODYtMi43NTUgMi4xOC0yLjc1NSAxLjM5NSAwIDIuMTgxIDEuMDExIDIuMTgxIDIuNzU1di4wMTNjMCAxLjczNy0uNzg2IDIuNzU1LTIuMTgxIDIuNzU1Wm04LjI1OCAxLjA1M2MxLjc3MSAwIDIuNzYyLS45NSAzLjA2My0yLjI4M2wuMDEzLS4wNzUtMS4xNzYuMDA2LS4wMTMuMDQxYy0uMjc0LjgyLS45MDMgMS4yNTgtMS44OTQgMS4yNTgtMS4zMTIgMC0yLjE2LTEuMDg3LTIuMTYtMi43ODJ2LS4wMTRjMC0xLjY2LjgzNC0yLjcyNyAyLjE2LTIuNzI3IDEuMDYgMCAxLjcxNi41ODggMS45MDEgMS4zMTJsLjAwNi4wMmgxLjE4M2wtLjAwNy0uMDRjLS4yMTktMS4zMTMtMS4yOTItMi4zNDUtMy4wODMtMi4zNDUtMi4wNjQgMC0zLjM3NyAxLjQ5LTMuMzc3IDMuNzh2LjAxNGMwIDIuMzM4IDEuMzIgMy44MzUgMy4zODQgMy44MzVabTQuODg4LS4xM2gxLjE4OXYtMi43OTZsLjY5MS0uNjdMMTY0LjY5NCAxNWgxLjQ5N2wtMy40MjQtNC4yNzMgMy4yMTItMy4wOTZoLTEuNDQybC0zLjE4NSAzLjIyaC0uMTFWNC43MDVoLTEuMTg5VjE1Wm0xNC4wODkuMDU1Yy4yMzIgMCAuNDU4LS4wMjguNjktLjA2OXYtMS4wMTFjLS4yMTkuMDItLjMzNS4wMjctLjU0Ny4wMjctLjc2NSAwLTEuMDY2LS4zNDktMS4wNjYtMS4yMTd2LTQuMTdoMS42MTN2LS45ODRoLTEuNjEzVjUuNzI0aC0xLjIzMVY3LjYzaC0xLjE2MnYuOTg0aDEuMTYydjQuNDdjMCAxLjQxLjYzNiAxLjk3IDIuMTU0IDEuOTdabTMuMDk2IDIuNTI5YzEuMzA2IDAgMS45MTQtLjQ3OSAyLjUyMy0yLjEzM2wyLjg3OC03LjgyaC0xLjI1MWwtMi4wMTcgNi4wNjNoLS4xMDlsLTIuMDI0LTYuMDYzaC0xLjI3MWwyLjcyNyA3LjM3Ni0uMTM2LjQzN2MtLjI2Ny44NDgtLjY3NyAxLjE1Ni0xLjM1NCAxLjE1NmEyLjgyIDIuODIgMCAwIDEtLjQ5Mi0uMDM1di45NzhjLjE2NC4wMjcuMzY5LjA0MS41MjYuMDQxWm02Ljk3My0uMTIzaDEuMTg5di0zLjYyM2guMTFjLjQwMy43ODYgMS4yODUgMS4yOTIgMi4yOTcgMS4yOTIgMS44NzMgMCAzLjA4OS0xLjQ5NyAzLjA4OS0zLjgwOHYtLjAxM2MwLTIuMjk3LTEuMjIzLTMuODA4LTMuMDg5LTMuODA4LTEuMDI2IDAtMS44NDYuNDg1LTIuMjk3IDEuMzA2aC0uMTFWNy42M2gtMS4xODl2OS44M1ptMy4zMjItMy4zODRjLTEuMzQgMC0yLjE2LTEuMDUzLTIuMTYtMi43NTV2LS4wMTNjMC0xLjcwMy44Mi0yLjc1NSAyLjE2LTIuNzU1IDEuMzQ3IDAgMi4xNDcgMS4wMzkgMi4xNDcgMi43NTV2LjAxM2MwIDEuNzE2LS44IDIuNzU1LTIuMTQ3IDIuNzU1Wm04LjIzMSAxLjA1M2MxLjczNiAwIDIuNzg5LS45ODUgMy4wNDItMS45ODJsLjAxMy0uMDU1aC0xLjE4OWwtLjAyNy4wNjFjLS4xOTkuNDQ1LS44MTQuOTE2LTEuODEyLjkxNi0xLjMxMiAwLTIuMTUzLS44ODgtMi4xODctMi40MTNoNS4zMDR2LS40NjVjMC0yLjItMS4yMTctMy42OTEtMy4yMi0zLjY5MS0yLjAwMiAwLTMuMzAxIDEuNTU5LTMuMzAxIDMuODM1di4wMDdjMCAyLjMxIDEuMjcxIDMuNzg3IDMuMzc3IDMuNzg3Wm0tLjA4Mi02LjU3YzEuMDg3IDAgMS44OTMuNjkxIDIuMDE2IDIuMTQ3aC00LjA3NGMuMTMtMS40MDEuOTY0LTIuMTQ2IDIuMDU4LTIuMTQ2WiIgZmlsbD0iIzg3OTI5RCIvPjwvc3ZnPg==\");height:0;pointer-events:none;position:absolute;top:-2px;z-index:-1}.neeto-editor{background-color:rgb(var(--neeto-ui-white));border-radius:var(--neeto-ui-rounded);color:rgb(var(--neeto-ui-gray-700));max-width:100%!important;padding:16px;white-space:pre-wrap}.neeto-editor:focus{outline:none}.neeto-editor a{pointer-events:none}.neeto-editor [data-variable]{color:rgb(var(--neeto-ui-gray-600));padding:4px 6px}.neeto-editor .ProseMirror-separator{display:none}.neeto-editor.fixed-menu-active{border:thin solid rgb(var(--neeto-ui-gray-300));border-top:none;border-top-left-radius:0;border-top-right-radius:0}.neeto-editor.attachments-active{border-bottom:none;border-bottom-left-radius:0;border-bottom-right-radius:0}.neeto-editor .is-empty{position:relative}.neeto-editor.placeholder-active .is-editor-empty:first-child:before{color:#ced4da;content:attr(data-placeholder);float:left;height:0;pointer-events:none}.neeto-editor hr{margin:8px 0}.neeto-editor .ProseMirror-selectednode{outline:3px solid rgb(var(--neeto-ui-pastel-blue))}.neeto-editor .has-focus{background:var(--focus-background-color);transition:background-color .2s ease}.neeto-editor [data-variable]{background-color:rgb(var(--neeto-ui-gray-200));border-radius:var(--neeto-ui-rounded-sm);color:rgb(var(--neeto-ui-gray-700));display:inline-flex;line-height:1;padding:4px}.neeto-editor-character-count{color:rgb(var(--neeto-ui-gray-600));font-size:12px;padding:4px;text-align:right}.neeto-editor-error{border-color:rgb(var(--neeto-ui-error-500));border-radius:var(--neeto-ui-rounded);border-width:1px;color:rgb(var(--neeto-ui-error-500))}.neeto-editor-error:focus-within{border-color:rgb(var(--neeto-ui-error-600))}.ne_variable-tag{border-radius:6px!important}.neeto-editor,.neeto-editor-content{-moz-tab-size:2;-o-tab-size:2;tab-size:2;white-space:pre-wrap;word-break:break-word}.neeto-editor h1,.neeto-editor h2,.neeto-editor h3,.neeto-editor h4,.neeto-editor h5,.neeto-editor h6,.neeto-editor-content h1,.neeto-editor-content h2,.neeto-editor-content h3,.neeto-editor-content h4,.neeto-editor-content h5,.neeto-editor-content h6{margin:1rem 0 .5rem}.neeto-editor p,.neeto-editor-content p{color:rgb(var(--neeto-ui-gray-700));font-size:var(--neeto-ui-text-body2);line-height:var(--neeto-ui-leading-normal)}.neeto-editor p:empty:after,.neeto-editor-content p:empty:after{content:\" \"}.neeto-editor p:last-child,.neeto-editor-content p:last-child{margin-bottom:0}.neeto-editor code,.neeto-editor-content code{background-color:rgb(var(--neeto-ui-gray-200));border-radius:var(--neeto-ui-rounded-sm);font-family:ui-monospace,SFMono-Regular,SF Mono,Menlo,Consolas,Liberation Mono,monospace;font-size:85%;padding:2px}.neeto-editor pre,.neeto-editor-content pre{background-color:#f6f8fa;border-radius:var(--neeto-ui-rounded-sm);font-size:14px;line-height:20px;margin-bottom:16px;margin-top:16px;overflow-x:auto;padding:16px}.neeto-editor pre>code,.neeto-editor-content pre>code{background-color:transparent;border-radius:0;border-width:0;color:inherit;font-family:inherit;font-size:inherit;font-weight:400;line-height:inherit;padding:0}.neeto-editor blockquote,.neeto-editor-content blockquote{border-left-color:#e5e7eb;border-left-width:4px;color:rgb(var(--neeto-ui-black));font-weight:var(--neeto-ui-font-medium);margin:8px 0;padding-left:12px;quotes:\"“\" \"”\" \"‘\" \"’\"}.neeto-editor blockquote>p:after,.neeto-editor blockquote>p:before,.neeto-editor-content blockquote>p:after,.neeto-editor-content blockquote>p:before{content:\"\"!important}.neeto-editor ol,.neeto-editor ul,.neeto-editor-content ol,.neeto-editor-content ul{list-style:revert;margin-bottom:1em;padding-left:28px}.neeto-editor ol li:before,.neeto-editor ul li:before,.neeto-editor-content ol li:before,.neeto-editor-content ul li:before{background-color:rgb(var(--neeto-ui-black))}.neeto-editor a[href],.neeto-editor-content a[href]{color:rgb(var(--neeto-ui-primary-800));font-weight:500}.neeto-editor .video-wrapper,.neeto-editor-content .video-wrapper{height:315px;margin:16px auto;width:560px}.neeto-editor mark,.neeto-editor-content mark{border-radius:var(--neeto-ui-rounded-sm);padding:0 4px}.neeto-editor [data-type=mention],.neeto-editor [data-type=special-mention],.neeto-editor-content [data-type=mention],.neeto-editor-content [data-type=special-mention]{color:rgb(var(--neeto-ui-primary-800))}.neeto-editor table,.neeto-editor-content table{border:1px solid rgba(var(--neeto-ui-gray-300));border-collapse:separate;border-radius:var(--neeto-ui-rounded-sm);border-spacing:0;min-width:300px;overflow:hidden;table-layout:fixed}.neeto-editor table td,.neeto-editor table th,.neeto-editor-content table td,.neeto-editor-content table th{border-left:1px solid rgba(var(--neeto-ui-gray-300));border-top:1px solid rgba(var(--neeto-ui-gray-300));padding:8px 12px;position:relative}.neeto-editor table td:first-child,.neeto-editor table th:first-child,.neeto-editor-content table td:first-child,.neeto-editor-content table th:first-child{border-left:none}.neeto-editor table th,.neeto-editor-content table th{background:rgb(var(--neeto-ui-gray-100));border-top:none}.neeto-editor table td,.neeto-editor-content table td{background:rgb(var(--neeto-ui-white))}.neeto-editor-content--hidden{display:none}.neeto-editor__image-wrapper{color:inherit!important;display:flex;font-weight:400!important;margin:16px 0}.neeto-editor__image-wrapper figure{display:inline-block;position:relative}.neeto-editor__image-wrapper .neeto-editor__image{display:inline-block}.neeto-editor__image-wrapper .neeto-editor__image img,.neeto-editor__image-wrapper .neeto-editor__image video{border:2px solid rgb(var(--neeto-ui-gray-300));border-radius:var(--neeto-ui-rounded-lg);display:inline-block;height:100%;padding:4px}.neeto-editor__image-wrapper figcaption{font-size:var(--neeto-ui-text-sm);font-weight:var(--neeto-ui-font-normal);margin-top:4px;text-align:center}.neeto-editor__image-wrapper figcaption a{display:inline-block;text-align:center}.neeto-editor__image-wrapper figcaption.is-empty div:before{color:rgb(var(--neeto-ui-gray-500));content:\"Add a caption\";inset:0;position:absolute}.neeto-editor__image--left{justify-content:flex-start}.neeto-editor__image--center{justify-content:center}.neeto-editor__image--right{justify-content:flex-end}.neeto-editor-fixed-menu{background-color:rgb(var(--neeto-ui-white));border:thin solid rgb(var(--neeto-ui-gray-300));border-bottom:none;border-radius:var(--neeto-ui-rounded) var(--neeto-ui-rounded) 0 0;position:relative}.neeto-editor-fixed-menu--independant{border-bottom:thin solid rgb(var(--neeto-ui-gray-300));border-radius:0;border-radius:initial}.neeto-editor-fixed-menu__item{border-radius:var(--neeto-ui-rounded-sm)!important}.neeto-editor-fixed-menu button.neeto-editor-fixed-menu__item{min-width:-moz-fit-content;min-width:fit-content}.neeto-editor-fixed-menu button.neeto-editor-fixed-menu__item .neeto-ui-btn__icon{height:18px!important;width:18px!important}.neeto-editor-fixed-menu__wrapper{align-items:center;display:flex;gap:0 4px;justify-content:flex-start;overflow:auto;padding:2px;width:100%}.neeto-editor-fixed-menu__variables{bottom:-24px;position:absolute;right:8px;z-index:10}.neeto-editor-fixed-menu__variables .neeto-editor-menu__item{background-color:rgb(var(--neeto-ui-gray-700));border-radius:var(--neeto-ui-rounded-sm);padding:4px}.neeto-editor-fixed-menu__variables .neeto-editor-menu__item.active,.neeto-editor-fixed-menu__variables .neeto-editor-menu__item:hover{background-color:rgb(var(--neeto-ui-gray-600))}.neeto-editor-fixed-menu__right-options{display:flex;justify-self:flex-end;margin-left:auto}.neeto-editor-fixed-menu__emoji-dropdown{max-height:none!important}.neeto-editor-fixed-menu__separator{display:flex;height:28px;width:32px}.neeto-editor-fixed-menu__separator span{width:100%}.neeto-editor-fixed-menu__separator span:first-child{border-right:1px solid rgb(var(--neeto-ui-gray-200))}.neeto-editor-menu__item{align-items:center;border-radius:2px;cursor:pointer;display:flex;flex-direction:row;gap:4px;justify-content:center;padding:8px;transition:var(--neeto-ui-transition)}.neeto-editor-menu__item p{color:rgb(var(--neeto-ui-gray-600));font-size:var(--neeto-ui-text-xs);line-height:1;white-space:nowrap}.neeto-editor-menu__item.active,.neeto-editor-menu__item:hover{background-color:rgb(var(--neeto-ui-gray-200))}.neeto-editor-menu__item:focus,.neeto-editor-menu__item:focus-visible{outline:rgb(var(--neeto-ui-gray-300)) auto 1px}.neeto-editor-menu__item input[type=color]{height:0;visibility:hidden;width:0}.neeto-editor-menu__item:disabled{background-color:rgb(var(--neeto-ui-gray-100));opacity:.5}.neeto-editor-link__item{align-items:flex-start;justify-content:flex-start}.neeto-editor-link__item,.neeto-editor-table__item{display:flex!important;flex-direction:row;gap:8px;padding:8px!important}.neeto-editor-table__item input{max-width:60px!important}.neeto-editor-table__options-menu{display:flex;flex-direction:column;gap:8px;max-height:150px!important;overflow:scroll;padding:8px!important}.neeto-editor-font-size__wrapper{font-weight:var(--neeto-ui-font-normal)!important;padding:8px!important}.neeto-editor-bubble-menu{align-items:center;background:rgb(var(--neeto-ui-gray-800));border-radius:var(--neeto-ui-rounded);display:flex;flex-direction:row;gap:1px;justify-content:flex-start;padding:0 4px;position:relative}.neeto-editor-bubble-menu button.neeto-ui-btn--style-text{color:rgb(var(--neeto-ui-gray-200));min-width:-moz-fit-content;min-width:fit-content}.neeto-editor-bubble-menu button.neeto-ui-btn--style-text.active,.neeto-editor-bubble-menu button.neeto-ui-btn--style-text:active,.neeto-editor-bubble-menu button.neeto-ui-btn--style-text:hover{background-color:rgb(var(--neeto-ui-gray-600))!important;color:rgb(var(--neeto-ui-gray-200))!important}.neeto-editor-bubble-menu button.neeto-ui-btn--style-secondary{background-color:rgb(var(--neeto-ui-gray-400));min-width:-moz-fit-content;min-width:fit-content}.neeto-editor-bubble-menu .neeto-ui-dropdown__popup{background-color:rgb(var(--neeto-ui-gray-700))}.neeto-editor-bubble-menu .neeto-ui-dropdown__popup-menu-item-btn{color:rgb(var(--neeto-ui-gray-200))!important}.neeto-editor-bubble-menu .neeto-ui-dropdown__popup-menu-item-btn.active,.neeto-editor-bubble-menu .neeto-ui-dropdown__popup-menu-item-btn:active,.neeto-editor-bubble-menu .neeto-ui-dropdown__popup-menu-item-btn:hover{background-color:rgb(var(--neeto-ui-gray-600))!important}.neeto-editor-bubble-menu .neeto-editor-bubble-menu__link{align-items:center;display:flex;gap:8px;justify-content:space-between;padding:6px;width:256px}.neeto-editor-bubble-menu .neeto-editor-bubble-menu__link .neeto-editor-bubble-menu-link__input{background-color:transparent;line-height:20px;outline:none;width:100%}.neeto-editor-bubble-menu .neeto-editor-bubble-menu__link .neeto-editor-bubble-menu-link__input::-moz-placeholder{color:rgba(.4);color:rgba(var(--neeto-ui-white,.4))}.neeto-editor-bubble-menu .neeto-editor-bubble-menu__link .neeto-editor-bubble-menu-link__input::placeholder{color:rgba(.4);color:rgba(var(--neeto-ui-white,.4))}.neeto-editor-bubble-menu .neeto-editor-bubble-menu__link .ne-btn--icon-only{min-height:0;opacity:.8;padding:0}.neeto-editor-bubble-menu .neeto-editor-bubble-menu__link .ne-btn--icon-only:hover{opacity:1}.neeto-editor-bubble-menu .neeto-editor-bubble-menu__table{align-items:center;display:flex;gap:6px;justify-content:space-between;max-width:256px;padding:4px}.neeto-editor-bubble-menu .neeto-editor-bubble-menu__table input{background-color:rgba(var(--neeto-ui-gray-400),.2);height:24px;line-height:20px;outline:none;width:60px}.neeto-editor-bubble-menu .neeto-editor-bubble-menu__table input::-moz-placeholder{color:rgba(.4);color:rgba(var(--neeto-ui-white,.4))}.neeto-editor-bubble-menu .neeto-editor-bubble-menu__table input::placeholder{color:rgba(.4);color:rgba(var(--neeto-ui-white,.4))}.neeto-editor-bubble-menu .neeto-editor-bubble-menu__table__buttons{align-items:center;display:flex;gap:4px;justify-content:space-between}.neeto-editor-bubble-menu .neeto-editor-bubble-menu__table-options{align-items:center;display:flex;flex-direction:column;gap:2px;max-height:100px;overflow:scroll}.neeto-editor-bubble-menu .neeto-editor-bubble-menu__dropdown-target{align-items:center;display:flex;font-size:var(--neeto-ui-text-xs);gap:4px;line-height:var(--neeto-ui-leading-normal);white-space:nowrap}.neeto-editor-bubble-menu .neeto-editor-bubble-menu__dropdown{align-items:flex-start;display:flex;flex-direction:column}.neeto-editor-bubble-menu .neeto-editor-bubble-menu__dropdown .neeto-editor-bubble-menu__dropdown-item{font-size:var(--neeto-ui-text-xs);padding:8px 12px;text-align:left;width:100%}.neeto-editor-bubble-menu .neeto-editor-bubble-menu__dropdown .neeto-editor-bubble-menu__dropdown-item:first-child{border-top-left-radius:var(--neeto-ui-rounded);border-top-right-radius:var(--neeto-ui-rounded)}.neeto-editor-bubble-menu .neeto-editor-bubble-menu__dropdown .neeto-editor-bubble-menu__dropdown-item:last-child{border-bottom-left-radius:var(--neeto-ui-rounded);border-bottom-right-radius:var(--neeto-ui-rounded)}.neeto-editor-bubble-menu-animate-shake{animation:shake 1s linear infinite alternate both}.neeto-editor__image-menu .neeto-ui-dropdown__popup{display:flex;min-width:0;min-width:auto}.neeto-editor__image-menu .neeto-ui-dropdown__popup .neeto-ui-btn .neeto-ui-btn__icon{height:18px!important;width:18px!important}.neeto-editor__image-menu-btn{padding:2px!important;position:absolute!important;right:4px;top:4px;z-index:1}.ne-media-uploader{display:flex;flex-direction:column;min-height:184px}.ne-media-uploader .ne-tab__wrapper .ne-tab{min-width:88px}.ne-media-uploader .ne-media-uploader__content{display:flex;flex-grow:1;padding:16px}.ne-media-uploader .ne-media-uploader__dnd{align-items:center;border:1px dashed rgb(var(--neeto-ui-primary-600));border-radius:var(--neeto-ui-rounded);box-sizing:border-box;display:flex;flex-direction:column;flex-grow:1;gap:2px;justify-content:center;width:100%}.ne-media-uploader .ne-media-uploader__dnd-icon{color:rgb(var(--neeto-ui-primary-600));margin-bottom:6px}.ne-media-uploader .ne-media-uploader__dnd-input{display:none}.ne-media-uploader .ne-media-uploader__dnd:hover{background-color:rgb(var(--neeto-ui-gray-100));cursor:pointer}.ne-media-uploader .ne-media-uploader__dnd.uppy-is-drag-over{background-color:rgba(var(--neeto-ui-gray-300),.5);border:3px dashed rgb(var(--neeto-ui-gray-500));color:rgb(var(--neeto-ui-gray-600))}.ne-media-uploader .ne-media-uploader__wrapper{display:flex;flex-wrap:wrap;gap:8px;width:100%}.ne-media-uploader .ne-media-uploader__wrapper .ne-media-uploader__media{align-self:start;background-color:rgb(var(--neeto-ui-white));border:1px solid rgb(var(--neeto-ui-gray-200));border-radius:var(--neeto-ui-rounded-sm);display:flex;flex-direction:column;flex-grow:1;height:58px;justify-content:space-between;padding:4px 8px;width:220px}.ne-media-uploader .ne-media-uploader__wrapper .ne-media-uploader__media__info{align-items:center;display:flex;gap:4px;justify-content:space-between}.ne-media-uploader .ne-media-uploader__wrapper .ne-media-uploader__media__info p{display:block;max-width:80%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ne-media-uploader .ne-media-uploader__wrapper .ne-media-uploader__media__progress{align-self:flex-end;background-color:rgb(var(--neeto-ui-gray-200));border-radius:var(--neeto-ui-rounded-full);overflow:hidden;width:100%}.ne-media-uploader .ne-media-uploader__wrapper .ne-media-uploader__media__progress-bar{align-items:center;animation:pulse 2s cubic-bezier(.4,0,.6,1) infinite;background-color:rgb(var(--neeto-ui-primary-600));border-radius:var(--neeto-ui-rounded-full);color:rgb(var(--neeto-ui-primary-100));display:flex;font-size:12px;font-weight:500px;height:12px;justify-content:center;line-height:1;transition:var(--neeto-ui-transition)}.ne-media-uploader .neeto-editor-unsplash-wrapper{width:100%}.ne-media-uploader .neeto-editor-unsplash-wrapper .neeto-editor-unsplash-container{max-height:50vh;overflow-x:hidden;overflow-y:auto}.ne-media-uploader .neeto-editor-unsplash-wrapper .neeto-editor-unsplash-search{margin-bottom:16px;padding:0 8px}.ne-media-uploader .neeto-editor-unsplash-wrapper .neeto-editor-unsplash-gallery{right:-8px;width:100%}.ne-media-uploader .neeto-editor-unsplash-wrapper .neeto-editor-unsplash-gallery__loader{display:flex;justify-content:center}.ne-media-uploader .neeto-editor-unsplash-wrapper .neeto-editor-unsplash-gallery__item{float:left;padding-bottom:16px;padding-right:16px;width:33.3%}.ne-media-uploader .neeto-editor-unsplash-wrapper .neeto-editor-unsplash-gallery__item-placeholder{position:relative;width:100%}.ne-media-uploader .neeto-editor-unsplash-wrapper .neeto-editor-unsplash-gallery__item-placeholder .neeto-editor-unsplash-gallery__item-inner{background-color:rgb(var(--neeto-ui-gray-100));border-radius:var(--neeto-ui-rounded-sm);height:100%;position:absolute;width:100%}.ne-media-uploader .neeto-editor-unsplash-wrapper .neeto-editor-unsplash-gallery__item-placeholder .neeto-editor-unsplash-gallery__item-inner img{animation:fade-in 1.2s cubic-bezier(.39,.575,.565,1) 1s both;border-radius:var(--neeto-ui-rounded);cursor:pointer;height:100%;-o-object-fit:cover;object-fit:cover;position:relative;width:100%}.ne-media-uploader .neeto-editor-unsplash-wrapper .neeto-editor-unsplash-gallery__item-placeholder .neeto-editor-unsplash-gallery__item-inner a{bottom:8px;color:rgb(var(--neeto-ui-white));font-size:12px;font-weight:var(--neeto-ui-font-normal);left:8px;line-height:1;margin:auto;opacity:0;position:absolute;text-transform:capitalize;transition:var(--neeto-ui-transition)}.ne-media-uploader .neeto-editor-unsplash-wrapper .neeto-editor-unsplash-gallery__item-placeholder .neeto-editor-unsplash-gallery__item-inner a:hover{text-decoration:underline}.ne-media-uploader .neeto-editor-unsplash-wrapper .neeto-editor-unsplash-gallery__item-placeholder .neeto-editor-unsplash-gallery__item-inner:hover a{opacity:1}.ne-media-uploader .neeto-editor-unsplash-wrapper .neeto-editor-unsplash-gallery__text{color:rgb(var(--neeto-ui-gray-700));font-size:var(--neeto-ui-text-xs);margin-top:12px;text-align:center}.neeto-editor-url-form__wrapper{align-items:center;display:flex;flex-direction:column;flex-grow:1;justify-content:center;padding:0 24px}.neeto-editor-url-form__wrapper .neeto-ui-input__wrapper{flex-grow:0;margin-bottom:16px;width:100%}.neeto-editor-emoji{font-family:apple color emoji,segoe ui emoji,noto color emoji,android emoji,emojisymbols,emojione mozilla,twemoji mozilla,segoe ui symbol}.emoji-mart.emoji-mart-light{border:none;color:rgb(var(--neeto-ui-gray-700));font-size:14px}.emoji-mart.emoji-mart-light .emoji-mart-bar .emoji-mart-anchors .emoji-mart-anchor{color:rgb(var(--neeto-ui-gray-500))}.emoji-mart.emoji-mart-light .emoji-mart-bar .emoji-mart-anchors .emoji-mart-anchor svg{margin:auto}.emoji-mart.emoji-mart-light .emoji-mart-bar .emoji-mart-anchors .emoji-mart-anchor .emoji-mart-anchor-bar{background-color:rgb(var(--neeto-ui-gray-700))!important}.emoji-mart.emoji-mart-light .emoji-mart-bar .emoji-mart-anchors .emoji-mart-anchor.emoji-mart-anchor-selected{color:rgb(var(--neeto-ui-gray-700))!important}.emoji-mart.emoji-mart-light .emoji-mart-search input{border-radius:var(--neeto-ui-rounded-sm)}.emoji-mart.emoji-mart-light .emoji-mart-category .emoji-mart-category-label span{padding-top:8px}.emoji-mart.emoji-mart-light .emoji-mart-category .emoji-mart-emoji span{cursor:pointer}.emoji-mart.emoji-mart-light .emoji-mart-category .emoji-mart-emoji:hover:before{background-color:rgb(var(--neeto-ui-gray-200));border-radius:var(--neeto-ui-rounded-sm)}.emoji-mart.emoji-mart-light .emoji-mart-scroll{height:264px;padding-bottom:0}.neeto-editor-emoji-suggestion{align-items:center;display:flex;flex-direction:row;font-family:apple color emoji,segoe ui emoji,noto color emoji,android emoji,emojisymbols,emojione mozilla,twemoji mozilla,segoe ui symbol;gap:2px;justify-content:flex-start;padding:4px}.neeto-editor-emoji-suggestion p{color:rgb(var(--neeto-ui-gray-700));font-size:var(--neeto-ui-text-xs)}.neeto-editor-emoji-suggestion span{font-size:10px;height:16px!important;width:16px!important}.neeto-editor-emoji-suggestion .neeto-editor-emoji-suggestion__item{border-radius:var(--neeto-ui-rounded-sm);cursor:pointer;font-size:var(--neeto-ui-text-2xl);line-height:1;padding:6px;transition:var(--neeto-ui-transition)}.neeto-editor-emoji-suggestion .neeto-editor-emoji-suggestion__item--selected,.neeto-editor-emoji-suggestion .neeto-editor-emoji-suggestion__item:hover{background-color:rgb(var(--neeto-ui-gray-200))}.neeto-editor-table{display:relative;margin:16px 0;width:-moz-fit-content;width:fit-content}.neeto-editor-table table td p,.neeto-editor-table table th p{margin:0}.neeto-editor-table table .column-resize-handle{background-color:rgb(var(--neeto-ui-gray-300));bottom:0;position:absolute;right:-2px;top:0;width:4px}.neeto-editor-table table .selectedCell:after{background:rgba(var(--neeto-ui-primary-500),.1);content:\"\";inset:0;position:absolute}.neeto-editor-table__wrapper{display:flex;gap:4px}.neeto-editor-table__add-column,.neeto-editor-table__add-row{align-items:center;background:rgba(var(--neeto-ui-gray-200));border-radius:var(--neeto-ui-rounded-sm);cursor:pointer;display:flex;justify-content:center;transition:var(--neeto-ui-transition)}.neeto-editor-table__add-column p,.neeto-editor-table__add-row p{background:#fff;color:rgb(var(--neeto-ui-gray-700));font-size:var(--neeto-ui-text-xl);line-height:16px;padding:4px}.neeto-editor-table__add-column:hover,.neeto-editor-table__add-row:hover{background:rgba(var(--neeto-ui-gray-300))}.neeto-editor-table__add-row{height:16px;margin:4px 20px 4px 0}.neeto-editor-table__add-column{flex-direction:column;width:16px}.ProseMirror.resize-cursor{cursor:col-resize}.ne-attachments{display:flex;flex-direction:column;gap:8px}.ne-attachments__items{display:flex;flex-wrap:wrap;gap:8px}.ne-attachments__attachment{align-items:center;background-color:rgb(var(--neeto-ui-white));border:1px solid rgb(var(--neeto-ui-gray-200));border-radius:var(--neeto-ui-rounded-sm);display:flex;justify-content:space-between;padding:4px 2px 4px 8px;width:256px}.ne-attachments__attachment-file-icon{height:auto;width:15px}.ne-attachments__attachment__progress{display:flex;justify-content:space-between;opacity:.5;width:76%}.ne-attachments__attachment__progress p{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ne-attachments__attachment__progress p:nth-child(2){width:-moz-fit-content;width:fit-content}.ne-attachments__attachment__progress-icon{height:auto;width:15px}.ne-attachments__attachment p{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:75%}.ne-attachments input[type=file]{display:none}.ne-attachments--integrated{background-color:rgb(var(--neeto-ui-white));border:1px solid rgb(var(--neeto-ui-gray-300));border-radius:0 0 var(--neeto-ui-rounded) var(--neeto-ui-rounded);border-top:none;padding:0 6px}.ne-attachments__wrapper{position:relative}.ne-attachments__wrapper.uppy-is-drag-over:after{align-items:center;background-color:rgba(var(--neeto-ui-gray-300),.5);border:3px dashed rgb(var(--neeto-ui-gray-500));border-radius:5px;color:rgb(var(--neeto-ui-gray-600));content:\"Drop the file here\";display:flex;font-size:1.2rem;font-weight:700;inset:7px;justify-content:center;position:absolute}.ProseMirror{height:100%;overflow-y:auto;white-space:break-spaces}.ProseMirror:focus{outline:none}";
|
|
134103
|
+
var css = "@charset \"UTF-8\";@import url(\"https://cdnjs.cloudflare.com/ajax/libs/highlight.js/10.7.2/styles/github.min.css\");@keyframes shake{0%{transform:translateX(0)}10%{transform:translateX(-4px)}20%{transform:translateX(4px)}30%{transform:translateX(-4px)}40%{transform:translateX(4px)}50%{transform:translateX(-4px)}60%{transform:translateX(4px)}70%{transform:translateX(-4px)}80%{transform:translateX(4px)}90%{transform:translateX(-4px)}to{transform:translateX(0)}}@keyframes fade-in{0%{opacity:0}to{opacity:1}}@keyframes spin{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}.neeto-editor-slash-commands__wrapper{align-items:flex-start;display:flex;flex-direction:column;gap:4px;justify-content:flex-start;max-height:384px;max-width:100%;overflow-y:auto;padding:12px;width:256px}.neeto-editor-slash-commands__wrapper .neeto-editor-slash-commands__item{align-items:center;border-radius:var(--neeto-ui-rounded);color:rgb(var(--neeto-ui-white));cursor:pointer;display:flex;flex-direction:row;gap:12px;justify-content:flex-start;padding:8px 12px;transition:var(--neeto-ui-transition);width:100%}.neeto-editor-slash-commands__wrapper .neeto-editor-slash-commands__item.active,.neeto-editor-slash-commands__wrapper .neeto-editor-slash-commands__item:hover{background-color:rgb(var(--neeto-ui-gray-700))}.neeto-editor-slash-commands__wrapper .neeto-editor-slash-commands__item .neeto-editor-slash-commands__item-content h5{font-size:var(--neeto-ui-text-sm);font-weight:var(--neeto-ui-font-semibold);line-height:var(--neeto-ui-leading-normal)}.neeto-editor-slash-commands__wrapper .neeto-editor-slash-commands__item .neeto-editor-slash-commands__item-content p{color:rgb(var(--neeto-ui-gray-300));font-size:var(--neeto-ui-text-xs)}.neeto-editor-mentions__wrapper{max-height:256px;min-width:208px;overflow-y:auto;padding:8px;width:auto}.neeto-editor-mentions__wrapper .neeto-editor-mentions__item{align-items:center;border-radius:var(--neeto-ui-rounded);color:rgb(var(--neeto-ui-white));cursor:pointer;display:flex;flex-direction:row;font-size:var(--neeto-ui-text-xs);gap:8px;justify-content:flex-start;padding:8px;transition:var(--neeto-ui-transition);width:100%}.neeto-editor-mentions__wrapper .neeto-editor-mentions__item p{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.neeto-editor-mentions__wrapper .neeto-editor-mentions__item.active,.neeto-editor-mentions__wrapper .neeto-editor-mentions__item:hover{background-color:rgb(var(--neeto-ui-gray-700))}.ProseMirror.slash-active p.is-empty:last-child:before{content:url(\"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAwIiBoZWlnaHQ9IjIwIiBmaWxsPSJub25lIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjxwYXRoIGQ9Ik0zLjgyMSAxNWgxLjIzVjYuMjQzaDMuMThWNS4xMzZILjY0MnYxLjEwN0gzLjgyVjE1Wm01LjkgMi41ODRjMS4zMDUgMCAxLjkxNC0uNDc5IDIuNTIyLTIuMTMzbDIuODc4LTcuODJoLTEuMjVsLTIuMDE4IDYuMDYzaC0uMTA5TDkuNzIxIDcuNjMxSDguNDQ5bDIuNzI4IDcuMzc2LS4xMzcuNDM3Yy0uMjY3Ljg0OC0uNjc3IDEuMTU2LTEuMzUzIDEuMTU2LS4xNjUgMC0uMzUtLjAwNy0uNDkzLS4wMzV2Ljk3OGMuMTY0LjAyNy4zNy4wNDEuNTI3LjA0MVptNi45NzItLjEyM2gxLjE5di0zLjYyM2guMTFjLjQwMi43ODYgMS4yODQgMS4yOTIgMi4yOTYgMS4yOTIgMS44NzMgMCAzLjA5LTEuNDk3IDMuMDktMy44MDh2LS4wMTNjMC0yLjI5Ny0xLjIyNC0zLjgwOC0zLjA5LTMuODA4LTEuMDI1IDAtMS44NDYuNDg1LTIuMjk3IDEuMzA2aC0uMTFWNy42M2gtMS4xODl2OS44M1ptMy4zMjMtMy4zODRjLTEuMzQgMC0yLjE2LTEuMDUzLTIuMTYtMi43NTV2LS4wMTNjMC0xLjcwMy44Mi0yLjc1NSAyLjE2LTIuNzU1IDEuMzQ2IDAgMi4xNDYgMS4wMzkgMi4xNDYgMi43NTV2LjAxM2MwIDEuNzE2LS44IDIuNzU1LTIuMTQ2IDIuNzU1Wm04LjIzIDEuMDUzYzEuNzM2IDAgMi43OS0uOTg1IDMuMDQyLTEuOTgybC4wMTQtLjA1NWgtMS4xOWwtLjAyNy4wNjFjLS4xOTguNDQ1LS44MTQuOTE2LTEuODEyLjkxNi0xLjMxMiAwLTIuMTUzLS44ODgtMi4xODctMi40MTNoNS4zMDV2LS40NjVjMC0yLjItMS4yMTctMy42OTEtMy4yMi0zLjY5MXMtMy4zMDIgMS41NTktMy4zMDIgMy44MzV2LjAwN2MwIDIuMzEgMS4yNzIgMy43ODcgMy4zNzcgMy43ODdabS0uMDgyLTYuNTdjMS4wODcgMCAxLjg5NC42OTEgMi4wMTcgMi4xNDdoLTQuMDc1Yy4xMy0xLjQwMS45NjQtMi4xNDYgMi4wNTgtMi4xNDZaIiBmaWxsPSIjODc5MjlEIi8+PHJlY3QgeD0iMzciIHdpZHRoPSIyMCIgaGVpZ2h0PSIyMCIgcng9IjMiIGZpbGw9IiNFOUVCRUQiLz48cGF0aCBkPSJtNTAuNDI4IDUuOTE0LTYuODU2IDguMTcyIiBzdHJva2U9IiMyNTJDMzIiIHN0cm9rZS13aWR0aD0iMS41IiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiLz48cGF0aCBkPSJNNjQuNzI2IDE1LjA1NWMuMjMyIDAgLjQ1OC0uMDI4LjY5LS4wNjl2LTEuMDExYy0uMjE5LjAyLS4zMzUuMDI3LS41NDcuMDI3LS43NjYgMC0xLjA2Ni0uMzQ5LTEuMDY2LTEuMjE3di00LjE3aDEuNjEzdi0uOTg0aC0xLjYxM1Y1LjcyNGgtMS4yM1Y3LjYzSDYxLjQxdi45ODRoMS4xNjJ2NC40N2MwIDEuNDEuNjM2IDEuOTcgMi4xNTQgMS45N1ptNS4zODYuMDc1YzIuMDk5IDAgMy4zOTgtMS40NSAzLjM5OC0zLjgwOHYtLjAxM2MwLTIuMzY2LTEuMy0zLjgwOC0zLjM5OC0zLjgwOHMtMy4zOTcgMS40NDItMy4zOTcgMy44MDh2LjAxM2MwIDIuMzU5IDEuMjk5IDMuODA4IDMuMzk3IDMuODA4Wm0wLTEuMDUzYy0xLjM5NCAwLTIuMTgtMS4wMTgtMi4xOC0yLjc1NXYtLjAxM2MwLTEuNzQ0Ljc4Ni0yLjc1NSAyLjE4LTIuNzU1IDEuMzk1IDAgMi4xODEgMS4wMTEgMi4xODEgMi43NTV2LjAxM2MwIDEuNzM3LS43ODYgMi43NTUtMi4xOCAyLjc1NVptMTIuMTk2IDEuMDUzYzEuNzcgMCAyLjc2MS0uOTUgMy4wNjItMi4yODNsLjAxNC0uMDc1LTEuMTc2LjAwNi0uMDE0LjA0MWMtLjI3My44Mi0uOTAyIDEuMjU4LTEuODkzIDEuMjU4LTEuMzEzIDAtMi4xNi0xLjA4Ny0yLjE2LTIuNzgydi0uMDE0YzAtMS42Ni44MzQtMi43MjcgMi4xNi0yLjcyNyAxLjA2IDAgMS43MTYuNTg4IDEuOSAxLjMxMmwuMDA3LjAyaDEuMTgzbC0uMDA3LS4wNEM4NS4xNjUgOC41MzMgODQuMDkyIDcuNSA4Mi4zIDcuNWMtMi4wNjUgMC0zLjM3NyAxLjQ5LTMuMzc3IDMuNzh2LjAxNGMwIDIuMzM4IDEuMzIgMy44MzUgMy4zODQgMy44MzVabTQuODg3LS4xM2gxLjE5di00LjM2MWMwLTEuMjkyLjc0NS0yLjA4NSAxLjkyLTIuMDg1IDEuMTc2IDAgMS43MjMuNjM1IDEuNzIzIDEuOTYyVjE1aDEuMTl2LTQuNzcxYzAtMS43NS0uOTIzLTIuNzI4LTIuNTc3LTIuNzI4LTEuMDg3IDAtMS43NzguNDU4LTIuMTQ3IDEuMjM3aC0uMTFWNC43MDVoLTEuMTg5VjE1Wm0xMC4yLjEzYy45OSAwIDEuNzYzLS40MyAyLjIyOC0xLjIxN2guMTFWMTVoMS4xODlWOS45NTVjMC0xLjUzMS0xLjAwNS0yLjQ1NC0yLjgwMy0yLjQ1NC0xLjU3MiAwLTIuNjkzLjc4LTIuODg1IDEuOTM1bC0uMDA2LjA0aDEuMTg5bC4wMDctLjAyYy4xOTEtLjU3NC43NzItLjkwMiAxLjY1NC0uOTAyIDEuMSAwIDEuNjU0LjQ5MiAxLjY1NCAxLjQwMXYuNjdsLTIuMTEyLjEzYy0xLjcxNi4xMDItMi42ODYuODYxLTIuNjg2IDIuMTc0di4wMTNjMCAxLjM0IDEuMDYgMi4xODggMi40NiAyLjE4OFptLTEuMjQ1LTIuMjE1di0uMDE0YzAtLjczMS40OTMtMS4xMjggMS42MTQtMS4xOTZsMS45NjgtLjEyM3YuNjdjMCAxLjA1My0uODgxIDEuODQ2LTIuMDkxIDEuODQ2LS44NTUgMC0xLjQ5LS40MzgtMS40OS0xLjE4M1pNMTAzLjA5NiAxNWgxLjE4OXYtNC4zNjFjMC0xLjI5Mi43NDUtMi4wODUgMS45MjEtMi4wODUgMS4xNzYgMCAxLjcyMy42MzUgMS43MjMgMS45NjJWMTVoMS4xODl2LTQuNzcxYzAtMS43NS0uOTIzLTIuNzI4LTIuNTc3LTIuNzI4LTEuMDg3IDAtMS43NzcuNDU4LTIuMTQ2IDEuMjM3aC0uMTFWNy42MzFoLTEuMTg5VjE1Wm0xMS4yMTEgMi41OThjMi4wMDkgMCAzLjI4MS0xLjA1MyAzLjI4MS0yLjdWNy42M2gtMS4xOXYxLjIxN2gtLjA4MmMtLjQ1MS0uODM0LTEuMjU3LTEuMzQ3LTIuMjk2LTEuMzQ3LTEuOTI4IDAtMy4xMTggMS40OTctMy4xMTggMy41NjF2LjAxNGMwIDIuMDY1IDEuMTgzIDMuNTQxIDMuMDkgMy41NDEgMS4wMTIgMCAxLjg0Ni0uNDU4IDIuMzExLTEuMjcxaC4xMDl2MS40OWMwIDEuMDg3LS43ODYgMS43MDktMi4xMDUgMS43MDktMS4wNiAwLTEuNzE2LS4zOTctMS44NDYtLjk1N2wtLjAwNy0uMDA3aC0xLjIzbC0uMDE0LjAwN2MuMTg1IDEuMjEgMS4zMTkgMi4wMSAzLjA5NyAyLjAxWm0tLjA1NS00LjAzM2MtMS4zNjcgMC0yLjEzMy0xLjAyNi0yLjEzMy0yLjQ4OXYtLjAxNGMwLTEuNDYyLjc2Ni0yLjUwOCAyLjEzMy0yLjUwOCAxLjM2IDAgMi4xODcgMS4wNDYgMi4xODcgMi41MDh2LjAxNGMwIDEuNDYzLS44MiAyLjQ4OS0yLjE4NyAyLjQ4OVptOC41NTkgMS41NjVjMS43MzYgMCAyLjc4OS0uOTg1IDMuMDQyLTEuOTgybC4wMTMtLjA1NWgtMS4xODlsLS4wMjguMDYxYy0uMTk4LjQ0NS0uODEzLjkxNi0xLjgxMS45MTYtMS4zMTMgMC0yLjE1My0uODg4LTIuMTg4LTIuNDEzaDUuMzA1di0uNDY1YzAtMi4yLTEuMjE3LTMuNjkxLTMuMjItMy42OTFzLTMuMzAxIDEuNTU5LTMuMzAxIDMuODM1di4wMDdjMCAyLjMxIDEuMjcxIDMuNzg3IDMuMzc3IDMuNzg3Wm0tLjA4Mi02LjU3YzEuMDg2IDAgMS44OTMuNjkxIDIuMDE2IDIuMTQ3aC00LjA3NGMuMTMtMS40MDEuOTY0LTIuMTQ2IDIuMDU4LTIuMTQ2Wm0xMi42NzMgNi41N2MxLjg2NyAwIDMuMDktMS41MSAzLjA5LTMuODA4di0uMDEzYzAtMi4zMTEtMS4yMTctMy44MDgtMy4wOS0zLjgwOC0xLjAxMSAwLTEuODkzLjUwNi0yLjI5NyAxLjI5MmgtLjEwOVY0LjcwNWgtMS4xODlWMTVoMS4xODl2LTEuMTc2aC4xMDljLjQ1Mi44MiAxLjI3MiAxLjMwNiAyLjI5NyAxLjMwNlptLS4yNzMtMS4wNTNjLTEuMzQgMC0yLjE2LTEuMDUzLTIuMTYtMi43NTV2LS4wMTNjMC0xLjcwMy44Mi0yLjc1NSAyLjE2LTIuNzU1IDEuMzQ3IDAgMi4xNDYgMS4wMzkgMi4xNDYgMi43NTV2LjAxM2MwIDEuNzE2LS43OTkgMi43NTUtMi4xNDYgMi43NTVabTUuMjc3LjkyM2gxLjE5VjQuNzA1aC0xLjE5VjE1Wm02LjUwMS4xM2MyLjA5OSAwIDMuMzk4LTEuNDUgMy4zOTgtMy44MDh2LS4wMTNjMC0yLjM2Ni0xLjI5OS0zLjgwOC0zLjM5OC0zLjgwOC0yLjA5OCAwLTMuMzk3IDEuNDQyLTMuMzk3IDMuODA4di4wMTNjMCAyLjM1OSAxLjI5OSAzLjgwOCAzLjM5NyAzLjgwOFptMC0xLjA1M2MtMS4zOTQgMC0yLjE4LTEuMDE4LTIuMTgtMi43NTV2LS4wMTNjMC0xLjc0NC43ODYtMi43NTUgMi4xOC0yLjc1NSAxLjM5NSAwIDIuMTgxIDEuMDExIDIuMTgxIDIuNzU1di4wMTNjMCAxLjczNy0uNzg2IDIuNzU1LTIuMTgxIDIuNzU1Wm04LjI1OCAxLjA1M2MxLjc3MSAwIDIuNzYyLS45NSAzLjA2My0yLjI4M2wuMDEzLS4wNzUtMS4xNzYuMDA2LS4wMTMuMDQxYy0uMjc0LjgyLS45MDMgMS4yNTgtMS44OTQgMS4yNTgtMS4zMTIgMC0yLjE2LTEuMDg3LTIuMTYtMi43ODJ2LS4wMTRjMC0xLjY2LjgzNC0yLjcyNyAyLjE2LTIuNzI3IDEuMDYgMCAxLjcxNi41ODggMS45MDEgMS4zMTJsLjAwNi4wMmgxLjE4M2wtLjAwNy0uMDRjLS4yMTktMS4zMTMtMS4yOTItMi4zNDUtMy4wODMtMi4zNDUtMi4wNjQgMC0zLjM3NyAxLjQ5LTMuMzc3IDMuNzh2LjAxNGMwIDIuMzM4IDEuMzIgMy44MzUgMy4zODQgMy44MzVabTQuODg4LS4xM2gxLjE4OXYtMi43OTZsLjY5MS0uNjdMMTY0LjY5NCAxNWgxLjQ5N2wtMy40MjQtNC4yNzMgMy4yMTItMy4wOTZoLTEuNDQybC0zLjE4NSAzLjIyaC0uMTFWNC43MDVoLTEuMTg5VjE1Wm0xNC4wODkuMDU1Yy4yMzIgMCAuNDU4LS4wMjguNjktLjA2OXYtMS4wMTFjLS4yMTkuMDItLjMzNS4wMjctLjU0Ny4wMjctLjc2NSAwLTEuMDY2LS4zNDktMS4wNjYtMS4yMTd2LTQuMTdoMS42MTN2LS45ODRoLTEuNjEzVjUuNzI0aC0xLjIzMVY3LjYzaC0xLjE2MnYuOTg0aDEuMTYydjQuNDdjMCAxLjQxLjYzNiAxLjk3IDIuMTU0IDEuOTdabTMuMDk2IDIuNTI5YzEuMzA2IDAgMS45MTQtLjQ3OSAyLjUyMy0yLjEzM2wyLjg3OC03LjgyaC0xLjI1MWwtMi4wMTcgNi4wNjNoLS4xMDlsLTIuMDI0LTYuMDYzaC0xLjI3MWwyLjcyNyA3LjM3Ni0uMTM2LjQzN2MtLjI2Ny44NDgtLjY3NyAxLjE1Ni0xLjM1NCAxLjE1NmEyLjgyIDIuODIgMCAwIDEtLjQ5Mi0uMDM1di45NzhjLjE2NC4wMjcuMzY5LjA0MS41MjYuMDQxWm02Ljk3My0uMTIzaDEuMTg5di0zLjYyM2guMTFjLjQwMy43ODYgMS4yODUgMS4yOTIgMi4yOTcgMS4yOTIgMS44NzMgMCAzLjA4OS0xLjQ5NyAzLjA4OS0zLjgwOHYtLjAxM2MwLTIuMjk3LTEuMjIzLTMuODA4LTMuMDg5LTMuODA4LTEuMDI2IDAtMS44NDYuNDg1LTIuMjk3IDEuMzA2aC0uMTFWNy42M2gtMS4xODl2OS44M1ptMy4zMjItMy4zODRjLTEuMzQgMC0yLjE2LTEuMDUzLTIuMTYtMi43NTV2LS4wMTNjMC0xLjcwMy44Mi0yLjc1NSAyLjE2LTIuNzU1IDEuMzQ3IDAgMi4xNDcgMS4wMzkgMi4xNDcgMi43NTV2LjAxM2MwIDEuNzE2LS44IDIuNzU1LTIuMTQ3IDIuNzU1Wm04LjIzMSAxLjA1M2MxLjczNiAwIDIuNzg5LS45ODUgMy4wNDItMS45ODJsLjAxMy0uMDU1aC0xLjE4OWwtLjAyNy4wNjFjLS4xOTkuNDQ1LS44MTQuOTE2LTEuODEyLjkxNi0xLjMxMiAwLTIuMTUzLS44ODgtMi4xODctMi40MTNoNS4zMDR2LS40NjVjMC0yLjItMS4yMTctMy42OTEtMy4yMi0zLjY5MS0yLjAwMiAwLTMuMzAxIDEuNTU5LTMuMzAxIDMuODM1di4wMDdjMCAyLjMxIDEuMjcxIDMuNzg3IDMuMzc3IDMuNzg3Wm0tLjA4Mi02LjU3YzEuMDg3IDAgMS44OTMuNjkxIDIuMDE2IDIuMTQ3aC00LjA3NGMuMTMtMS40MDEuOTY0LTIuMTQ2IDIuMDU4LTIuMTQ2WiIgZmlsbD0iIzg3OTI5RCIvPjwvc3ZnPg==\");height:0;pointer-events:none;position:absolute;top:-2px;z-index:-1}.neeto-editor{background-color:rgb(var(--neeto-ui-white));border-radius:var(--neeto-ui-rounded);color:rgb(var(--neeto-ui-gray-700));max-width:100%!important;padding:16px;white-space:pre-wrap}.neeto-editor:focus{outline:none}.neeto-editor a{pointer-events:none}.neeto-editor [data-variable]{color:rgb(var(--neeto-ui-gray-600));padding:4px 6px}.neeto-editor .ProseMirror-separator{display:none}.neeto-editor.fixed-menu-active{border:thin solid rgb(var(--neeto-ui-gray-300));border-top:none;border-top-left-radius:0;border-top-right-radius:0}.neeto-editor.attachments-active{border-bottom:none;border-bottom-left-radius:0;border-bottom-right-radius:0}.neeto-editor .is-empty{position:relative}.neeto-editor.placeholder-active .is-editor-empty:first-child:before{color:#ced4da;content:attr(data-placeholder);float:left;height:0;pointer-events:none}.neeto-editor hr{margin:8px 0}.neeto-editor .ProseMirror-selectednode{outline:3px solid rgb(var(--neeto-ui-pastel-blue))}.neeto-editor .has-focus{background:var(--focus-background-color);transition:background-color .2s ease}.neeto-editor [data-variable]{background-color:rgb(var(--neeto-ui-gray-200));border-radius:var(--neeto-ui-rounded-sm);color:rgb(var(--neeto-ui-gray-700));display:inline-flex;line-height:1;padding:4px}.neeto-editor-character-count{color:rgb(var(--neeto-ui-gray-600));font-size:12px;padding:4px;text-align:right}.neeto-editor-error{border-color:rgb(var(--neeto-ui-error-500));border-radius:var(--neeto-ui-rounded);border-width:1px;color:rgb(var(--neeto-ui-error-500))}.neeto-editor-error:focus-within{border-color:rgb(var(--neeto-ui-error-600))}.ne_variable-tag{border-radius:6px!important}.neeto-editor,.neeto-editor-content{-moz-tab-size:2;-o-tab-size:2;tab-size:2;white-space:pre-wrap;word-break:break-word}.neeto-editor h1,.neeto-editor h2,.neeto-editor h3,.neeto-editor h4,.neeto-editor h5,.neeto-editor h6,.neeto-editor-content h1,.neeto-editor-content h2,.neeto-editor-content h3,.neeto-editor-content h4,.neeto-editor-content h5,.neeto-editor-content h6{margin:1rem 0 .5rem}.neeto-editor p,.neeto-editor-content p{color:rgb(var(--neeto-ui-gray-700));font-size:var(--neeto-ui-text-body2);line-height:var(--neeto-ui-leading-normal)}.neeto-editor p:empty:after,.neeto-editor-content p:empty:after{content:\" \"}.neeto-editor p:last-child,.neeto-editor-content p:last-child{margin-bottom:0}.neeto-editor code,.neeto-editor-content code{background-color:rgb(var(--neeto-ui-gray-200));border-radius:var(--neeto-ui-rounded-sm);font-family:ui-monospace,SFMono-Regular,SF Mono,Menlo,Consolas,Liberation Mono,monospace;font-size:85%;padding:2px}.neeto-editor pre,.neeto-editor-content pre{background-color:#f6f8fa;border-radius:var(--neeto-ui-rounded-sm);font-size:14px;line-height:20px;margin-bottom:16px;margin-top:16px;overflow-x:auto;padding:16px}.neeto-editor pre>code,.neeto-editor-content pre>code{background-color:transparent;border-radius:0;border-width:0;color:inherit;font-family:inherit;font-size:inherit;font-weight:400;line-height:inherit;padding:0}.neeto-editor blockquote,.neeto-editor-content blockquote{border-left-color:#e5e7eb;border-left-width:4px;color:rgb(var(--neeto-ui-black));font-weight:var(--neeto-ui-font-medium);margin:8px 0;padding-left:12px;quotes:\"“\" \"”\" \"‘\" \"’\"}.neeto-editor blockquote>p:after,.neeto-editor blockquote>p:before,.neeto-editor-content blockquote>p:after,.neeto-editor-content blockquote>p:before{content:\"\"!important}.neeto-editor ol,.neeto-editor ul,.neeto-editor-content ol,.neeto-editor-content ul{list-style:revert;margin-bottom:1em;padding-left:28px}.neeto-editor ol li:before,.neeto-editor ul li:before,.neeto-editor-content ol li:before,.neeto-editor-content ul li:before{background-color:rgb(var(--neeto-ui-black))}.neeto-editor a[href],.neeto-editor-content a[href]{color:rgb(var(--neeto-ui-primary-800));font-weight:500}.neeto-editor .neeto-editor__video-wrapper,.neeto-editor-content .neeto-editor__video-wrapper{display:flex;margin:16px 0}.neeto-editor .neeto-editor__video-wrapper .neeto-editor__video-iframe,.neeto-editor-content .neeto-editor__video-wrapper .neeto-editor__video-iframe{border:2px solid rgb(var(--neeto-ui-gray-300));border-radius:var(--neeto-ui-rounded-lg);display:inline-block;padding:4px}.neeto-editor .neeto-editor__video-wrapper .neeto-editor__video-iframe iframe,.neeto-editor-content .neeto-editor__video-wrapper .neeto-editor__video-iframe iframe{height:100%;width:100%}.neeto-editor .neeto-editor__video--left,.neeto-editor-content .neeto-editor__video--left{justify-content:flex-start}.neeto-editor .neeto-editor__video--right,.neeto-editor-content .neeto-editor__video--right{justify-content:flex-end}.neeto-editor .neeto-editor__video--center,.neeto-editor-content .neeto-editor__video--center{justify-content:center}.neeto-editor mark,.neeto-editor-content mark{border-radius:var(--neeto-ui-rounded-sm);padding:0 4px}.neeto-editor [data-type=mention],.neeto-editor [data-type=special-mention],.neeto-editor-content [data-type=mention],.neeto-editor-content [data-type=special-mention]{color:rgb(var(--neeto-ui-primary-800))}.neeto-editor table,.neeto-editor-content table{border:1px solid rgba(var(--neeto-ui-gray-300));border-collapse:separate;border-radius:var(--neeto-ui-rounded-sm);border-spacing:0;min-width:300px;overflow:hidden;table-layout:fixed}.neeto-editor table td,.neeto-editor table th,.neeto-editor-content table td,.neeto-editor-content table th{border-left:1px solid rgba(var(--neeto-ui-gray-300));border-top:1px solid rgba(var(--neeto-ui-gray-300));padding:8px 12px;position:relative}.neeto-editor table td:first-child,.neeto-editor table th:first-child,.neeto-editor-content table td:first-child,.neeto-editor-content table th:first-child{border-left:none}.neeto-editor table th,.neeto-editor-content table th{background:rgb(var(--neeto-ui-gray-100));border-top:none}.neeto-editor table td,.neeto-editor-content table td{background:rgb(var(--neeto-ui-white))}.neeto-editor-content--hidden{display:none}.neeto-editor__image-wrapper{color:inherit!important;display:flex;font-weight:400!important;margin:16px 0}.neeto-editor__image-wrapper figure{display:inline-block;position:relative}.neeto-editor__image-wrapper .neeto-editor__image{display:inline-block}.neeto-editor__image-wrapper .neeto-editor__image img,.neeto-editor__image-wrapper .neeto-editor__image video{border:2px solid rgb(var(--neeto-ui-gray-300));border-radius:var(--neeto-ui-rounded-lg);display:inline-block;height:100%;padding:4px}.neeto-editor__image-wrapper figcaption{font-size:var(--neeto-ui-text-sm);font-weight:var(--neeto-ui-font-normal);margin-top:4px;text-align:center}.neeto-editor__image-wrapper figcaption a{display:inline-block;text-align:center}.neeto-editor__image-wrapper figcaption.is-empty div:before{color:rgb(var(--neeto-ui-gray-500));content:\"Add a caption\";inset:0;position:absolute}.neeto-editor__image--left{justify-content:flex-start}.neeto-editor__image--center{justify-content:center}.neeto-editor__image--right{justify-content:flex-end}.neeto-editor-fixed-menu{background-color:rgb(var(--neeto-ui-white));border:thin solid rgb(var(--neeto-ui-gray-300));border-bottom:none;border-radius:var(--neeto-ui-rounded) var(--neeto-ui-rounded) 0 0;position:relative}.neeto-editor-fixed-menu--independant{border-bottom:thin solid rgb(var(--neeto-ui-gray-300));border-radius:0;border-radius:initial}.neeto-editor-fixed-menu__item{border-radius:var(--neeto-ui-rounded-sm)!important}.neeto-editor-fixed-menu button.neeto-editor-fixed-menu__item{min-width:-moz-fit-content;min-width:fit-content}.neeto-editor-fixed-menu button.neeto-editor-fixed-menu__item .neeto-ui-btn__icon{height:18px!important;width:18px!important}.neeto-editor-fixed-menu__wrapper{align-items:center;display:flex;gap:0 4px;justify-content:flex-start;overflow:auto;padding:2px;width:100%}.neeto-editor-fixed-menu__variables{bottom:-24px;position:absolute;right:8px;z-index:10}.neeto-editor-fixed-menu__variables .neeto-editor-menu__item{background-color:rgb(var(--neeto-ui-gray-700));border-radius:var(--neeto-ui-rounded-sm);padding:4px}.neeto-editor-fixed-menu__variables .neeto-editor-menu__item.active,.neeto-editor-fixed-menu__variables .neeto-editor-menu__item:hover{background-color:rgb(var(--neeto-ui-gray-600))}.neeto-editor-fixed-menu__right-options{display:flex;justify-self:flex-end;margin-left:auto}.neeto-editor-fixed-menu__emoji-dropdown{max-height:none!important}.neeto-editor-fixed-menu__separator{display:flex;height:28px;width:32px}.neeto-editor-fixed-menu__separator span{width:100%}.neeto-editor-fixed-menu__separator span:first-child{border-right:1px solid rgb(var(--neeto-ui-gray-200))}.neeto-editor-menu__item{align-items:center;border-radius:2px;cursor:pointer;display:flex;flex-direction:row;gap:4px;justify-content:center;padding:8px;transition:var(--neeto-ui-transition)}.neeto-editor-menu__item p{color:rgb(var(--neeto-ui-gray-600));font-size:var(--neeto-ui-text-xs);line-height:1;white-space:nowrap}.neeto-editor-menu__item.active,.neeto-editor-menu__item:hover{background-color:rgb(var(--neeto-ui-gray-200))}.neeto-editor-menu__item:focus,.neeto-editor-menu__item:focus-visible{outline:rgb(var(--neeto-ui-gray-300)) auto 1px}.neeto-editor-menu__item input[type=color]{height:0;visibility:hidden;width:0}.neeto-editor-menu__item:disabled{background-color:rgb(var(--neeto-ui-gray-100));opacity:.5}.neeto-editor-link__item{align-items:flex-start;justify-content:flex-start}.neeto-editor-link__item,.neeto-editor-table__item{display:flex!important;flex-direction:row;gap:8px;padding:8px!important}.neeto-editor-table__item input{max-width:60px!important}.neeto-editor-table__options-menu{display:flex;flex-direction:column;gap:8px;max-height:150px!important;overflow:scroll;padding:8px!important}.neeto-editor-font-size__wrapper{font-weight:var(--neeto-ui-font-normal)!important;padding:8px!important}.neeto-editor-bubble-menu{align-items:center;background:rgb(var(--neeto-ui-gray-800));border-radius:var(--neeto-ui-rounded);display:flex;flex-direction:row;gap:1px;justify-content:flex-start;padding:0 4px;position:relative}.neeto-editor-bubble-menu button.neeto-ui-btn--style-text{color:rgb(var(--neeto-ui-gray-200));min-width:-moz-fit-content;min-width:fit-content}.neeto-editor-bubble-menu button.neeto-ui-btn--style-text.active,.neeto-editor-bubble-menu button.neeto-ui-btn--style-text:active,.neeto-editor-bubble-menu button.neeto-ui-btn--style-text:hover{background-color:rgb(var(--neeto-ui-gray-600))!important;color:rgb(var(--neeto-ui-gray-200))!important}.neeto-editor-bubble-menu button.neeto-ui-btn--style-secondary{background-color:rgb(var(--neeto-ui-gray-400));min-width:-moz-fit-content;min-width:fit-content}.neeto-editor-bubble-menu .neeto-ui-dropdown__popup{background-color:rgb(var(--neeto-ui-gray-700))}.neeto-editor-bubble-menu .neeto-ui-dropdown__popup-menu-item-btn{color:rgb(var(--neeto-ui-gray-200))!important}.neeto-editor-bubble-menu .neeto-ui-dropdown__popup-menu-item-btn.active,.neeto-editor-bubble-menu .neeto-ui-dropdown__popup-menu-item-btn:active,.neeto-editor-bubble-menu .neeto-ui-dropdown__popup-menu-item-btn:hover{background-color:rgb(var(--neeto-ui-gray-600))!important}.neeto-editor-bubble-menu .neeto-editor-bubble-menu__link{align-items:center;display:flex;gap:8px;justify-content:space-between;padding:6px;width:256px}.neeto-editor-bubble-menu .neeto-editor-bubble-menu__link .neeto-editor-bubble-menu-link__input{background-color:transparent;line-height:20px;outline:none;width:100%}.neeto-editor-bubble-menu .neeto-editor-bubble-menu__link .neeto-editor-bubble-menu-link__input::-moz-placeholder{color:rgba(.4);color:rgba(var(--neeto-ui-white,.4))}.neeto-editor-bubble-menu .neeto-editor-bubble-menu__link .neeto-editor-bubble-menu-link__input::placeholder{color:rgba(.4);color:rgba(var(--neeto-ui-white,.4))}.neeto-editor-bubble-menu .neeto-editor-bubble-menu__link .ne-btn--icon-only{min-height:0;opacity:.8;padding:0}.neeto-editor-bubble-menu .neeto-editor-bubble-menu__link .ne-btn--icon-only:hover{opacity:1}.neeto-editor-bubble-menu .neeto-editor-bubble-menu__table{align-items:center;display:flex;gap:6px;justify-content:space-between;max-width:256px;padding:4px}.neeto-editor-bubble-menu .neeto-editor-bubble-menu__table input{background-color:rgba(var(--neeto-ui-gray-400),.2);height:24px;line-height:20px;outline:none;width:60px}.neeto-editor-bubble-menu .neeto-editor-bubble-menu__table input::-moz-placeholder{color:rgba(.4);color:rgba(var(--neeto-ui-white,.4))}.neeto-editor-bubble-menu .neeto-editor-bubble-menu__table input::placeholder{color:rgba(.4);color:rgba(var(--neeto-ui-white,.4))}.neeto-editor-bubble-menu .neeto-editor-bubble-menu__table__buttons{align-items:center;display:flex;gap:4px;justify-content:space-between}.neeto-editor-bubble-menu .neeto-editor-bubble-menu__table-options{align-items:center;display:flex;flex-direction:column;gap:2px;max-height:100px;overflow:scroll}.neeto-editor-bubble-menu .neeto-editor-bubble-menu__dropdown-target{align-items:center;display:flex;font-size:var(--neeto-ui-text-xs);gap:4px;line-height:var(--neeto-ui-leading-normal);white-space:nowrap}.neeto-editor-bubble-menu .neeto-editor-bubble-menu__dropdown{align-items:flex-start;display:flex;flex-direction:column}.neeto-editor-bubble-menu .neeto-editor-bubble-menu__dropdown .neeto-editor-bubble-menu__dropdown-item{font-size:var(--neeto-ui-text-xs);padding:8px 12px;text-align:left;width:100%}.neeto-editor-bubble-menu .neeto-editor-bubble-menu__dropdown .neeto-editor-bubble-menu__dropdown-item:first-child{border-top-left-radius:var(--neeto-ui-rounded);border-top-right-radius:var(--neeto-ui-rounded)}.neeto-editor-bubble-menu .neeto-editor-bubble-menu__dropdown .neeto-editor-bubble-menu__dropdown-item:last-child{border-bottom-left-radius:var(--neeto-ui-rounded);border-bottom-right-radius:var(--neeto-ui-rounded)}.neeto-editor-bubble-menu-animate-shake{animation:shake 1s linear infinite alternate both}.neeto-editor__image-menu .neeto-ui-dropdown__popup{display:flex;min-width:0;min-width:auto}.neeto-editor__image-menu .neeto-ui-dropdown__popup .neeto-ui-btn .neeto-ui-btn__icon{height:18px!important;width:18px!important}.neeto-editor__image-menu-btn{padding:2px!important;position:absolute!important;right:4px;top:4px;z-index:1}.ne-media-uploader{display:flex;flex-direction:column;min-height:184px}.ne-media-uploader .ne-tab__wrapper .ne-tab{min-width:88px}.ne-media-uploader .ne-media-uploader__content{display:flex;flex-grow:1;padding:16px}.ne-media-uploader .ne-media-uploader__dnd{align-items:center;border:1px dashed rgb(var(--neeto-ui-primary-600));border-radius:var(--neeto-ui-rounded);box-sizing:border-box;display:flex;flex-direction:column;flex-grow:1;gap:2px;justify-content:center;width:100%}.ne-media-uploader .ne-media-uploader__dnd-icon{color:rgb(var(--neeto-ui-primary-600));margin-bottom:6px}.ne-media-uploader .ne-media-uploader__dnd-input{display:none}.ne-media-uploader .ne-media-uploader__dnd:hover{background-color:rgb(var(--neeto-ui-gray-100));cursor:pointer}.ne-media-uploader .ne-media-uploader__dnd.uppy-is-drag-over{background-color:rgba(var(--neeto-ui-gray-300),.5);border:3px dashed rgb(var(--neeto-ui-gray-500));color:rgb(var(--neeto-ui-gray-600))}.ne-media-uploader .ne-media-uploader__wrapper{display:flex;flex-wrap:wrap;gap:8px;width:100%}.ne-media-uploader .ne-media-uploader__wrapper .ne-media-uploader__media{align-self:start;background-color:rgb(var(--neeto-ui-white));border:1px solid rgb(var(--neeto-ui-gray-200));border-radius:var(--neeto-ui-rounded-sm);display:flex;flex-direction:column;flex-grow:1;height:58px;justify-content:space-between;padding:4px 8px;width:220px}.ne-media-uploader .ne-media-uploader__wrapper .ne-media-uploader__media__info{align-items:center;display:flex;gap:4px;justify-content:space-between}.ne-media-uploader .ne-media-uploader__wrapper .ne-media-uploader__media__info p{display:block;max-width:80%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ne-media-uploader .ne-media-uploader__wrapper .ne-media-uploader__media__progress{align-self:flex-end;background-color:rgb(var(--neeto-ui-gray-200));border-radius:var(--neeto-ui-rounded-full);overflow:hidden;width:100%}.ne-media-uploader .ne-media-uploader__wrapper .ne-media-uploader__media__progress-bar{align-items:center;animation:pulse 2s cubic-bezier(.4,0,.6,1) infinite;background-color:rgb(var(--neeto-ui-primary-600));border-radius:var(--neeto-ui-rounded-full);color:rgb(var(--neeto-ui-primary-100));display:flex;font-size:12px;font-weight:500px;height:12px;justify-content:center;line-height:1;transition:var(--neeto-ui-transition)}.ne-media-uploader .neeto-editor-unsplash-wrapper{width:100%}.ne-media-uploader .neeto-editor-unsplash-wrapper .neeto-editor-unsplash-container{max-height:50vh;overflow-x:hidden;overflow-y:auto}.ne-media-uploader .neeto-editor-unsplash-wrapper .neeto-editor-unsplash-search{margin-bottom:16px;padding:0 8px}.ne-media-uploader .neeto-editor-unsplash-wrapper .neeto-editor-unsplash-gallery{right:-8px;width:100%}.ne-media-uploader .neeto-editor-unsplash-wrapper .neeto-editor-unsplash-gallery__loader{display:flex;justify-content:center}.ne-media-uploader .neeto-editor-unsplash-wrapper .neeto-editor-unsplash-gallery__item{float:left;padding-bottom:16px;padding-right:16px;width:33.3%}.ne-media-uploader .neeto-editor-unsplash-wrapper .neeto-editor-unsplash-gallery__item-placeholder{position:relative;width:100%}.ne-media-uploader .neeto-editor-unsplash-wrapper .neeto-editor-unsplash-gallery__item-placeholder .neeto-editor-unsplash-gallery__item-inner{background-color:rgb(var(--neeto-ui-gray-100));border-radius:var(--neeto-ui-rounded-sm);height:100%;position:absolute;width:100%}.ne-media-uploader .neeto-editor-unsplash-wrapper .neeto-editor-unsplash-gallery__item-placeholder .neeto-editor-unsplash-gallery__item-inner img{animation:fade-in 1.2s cubic-bezier(.39,.575,.565,1) 1s both;border-radius:var(--neeto-ui-rounded);cursor:pointer;height:100%;-o-object-fit:cover;object-fit:cover;position:relative;width:100%}.ne-media-uploader .neeto-editor-unsplash-wrapper .neeto-editor-unsplash-gallery__item-placeholder .neeto-editor-unsplash-gallery__item-inner a{bottom:8px;color:rgb(var(--neeto-ui-white));font-size:12px;font-weight:var(--neeto-ui-font-normal);left:8px;line-height:1;margin:auto;opacity:0;position:absolute;text-transform:capitalize;transition:var(--neeto-ui-transition)}.ne-media-uploader .neeto-editor-unsplash-wrapper .neeto-editor-unsplash-gallery__item-placeholder .neeto-editor-unsplash-gallery__item-inner a:hover{text-decoration:underline}.ne-media-uploader .neeto-editor-unsplash-wrapper .neeto-editor-unsplash-gallery__item-placeholder .neeto-editor-unsplash-gallery__item-inner:hover a{opacity:1}.ne-media-uploader .neeto-editor-unsplash-wrapper .neeto-editor-unsplash-gallery__text{color:rgb(var(--neeto-ui-gray-700));font-size:var(--neeto-ui-text-xs);margin-top:12px;text-align:center}.neeto-editor-url-form__wrapper{align-items:center;display:flex;flex-direction:column;flex-grow:1;justify-content:center;padding:0 24px}.neeto-editor-url-form__wrapper .neeto-ui-input__wrapper{flex-grow:0;margin-bottom:16px;width:100%}.neeto-editor-emoji{font-family:apple color emoji,segoe ui emoji,noto color emoji,android emoji,emojisymbols,emojione mozilla,twemoji mozilla,segoe ui symbol}.emoji-mart.emoji-mart-light{border:none;color:rgb(var(--neeto-ui-gray-700));font-size:14px}.emoji-mart.emoji-mart-light .emoji-mart-bar .emoji-mart-anchors .emoji-mart-anchor{color:rgb(var(--neeto-ui-gray-500))}.emoji-mart.emoji-mart-light .emoji-mart-bar .emoji-mart-anchors .emoji-mart-anchor svg{margin:auto}.emoji-mart.emoji-mart-light .emoji-mart-bar .emoji-mart-anchors .emoji-mart-anchor .emoji-mart-anchor-bar{background-color:rgb(var(--neeto-ui-gray-700))!important}.emoji-mart.emoji-mart-light .emoji-mart-bar .emoji-mart-anchors .emoji-mart-anchor.emoji-mart-anchor-selected{color:rgb(var(--neeto-ui-gray-700))!important}.emoji-mart.emoji-mart-light .emoji-mart-search input{border-radius:var(--neeto-ui-rounded-sm)}.emoji-mart.emoji-mart-light .emoji-mart-category .emoji-mart-category-label span{padding-top:8px}.emoji-mart.emoji-mart-light .emoji-mart-category .emoji-mart-emoji span{cursor:pointer}.emoji-mart.emoji-mart-light .emoji-mart-category .emoji-mart-emoji:hover:before{background-color:rgb(var(--neeto-ui-gray-200));border-radius:var(--neeto-ui-rounded-sm)}.emoji-mart.emoji-mart-light .emoji-mart-scroll{height:264px;padding-bottom:0}.neeto-editor-emoji-suggestion{align-items:center;display:flex;flex-direction:row;font-family:apple color emoji,segoe ui emoji,noto color emoji,android emoji,emojisymbols,emojione mozilla,twemoji mozilla,segoe ui symbol;gap:2px;justify-content:flex-start;padding:4px}.neeto-editor-emoji-suggestion p{color:rgb(var(--neeto-ui-gray-700));font-size:var(--neeto-ui-text-xs)}.neeto-editor-emoji-suggestion span{font-size:10px;height:16px!important;width:16px!important}.neeto-editor-emoji-suggestion .neeto-editor-emoji-suggestion__item{border-radius:var(--neeto-ui-rounded-sm);cursor:pointer;font-size:var(--neeto-ui-text-2xl);line-height:1;padding:6px;transition:var(--neeto-ui-transition)}.neeto-editor-emoji-suggestion .neeto-editor-emoji-suggestion__item--selected,.neeto-editor-emoji-suggestion .neeto-editor-emoji-suggestion__item:hover{background-color:rgb(var(--neeto-ui-gray-200))}.neeto-editor-table{display:relative;margin:16px 0;width:-moz-fit-content;width:fit-content}.neeto-editor-table table td p,.neeto-editor-table table th p{margin:0}.neeto-editor-table table .column-resize-handle{background-color:rgb(var(--neeto-ui-gray-300));bottom:0;position:absolute;right:-2px;top:0;width:4px}.neeto-editor-table table .selectedCell:after{background:rgba(var(--neeto-ui-primary-500),.1);content:\"\";inset:0;position:absolute}.neeto-editor-table__wrapper{display:flex;gap:4px}.neeto-editor-table__add-column,.neeto-editor-table__add-row{align-items:center;background:rgba(var(--neeto-ui-gray-200));border-radius:var(--neeto-ui-rounded-sm);cursor:pointer;display:flex;justify-content:center;transition:var(--neeto-ui-transition)}.neeto-editor-table__add-column p,.neeto-editor-table__add-row p{background:#fff;color:rgb(var(--neeto-ui-gray-700));font-size:var(--neeto-ui-text-xl);line-height:16px;padding:4px}.neeto-editor-table__add-column:hover,.neeto-editor-table__add-row:hover{background:rgba(var(--neeto-ui-gray-300))}.neeto-editor-table__add-row{height:16px;margin:4px 20px 4px 0}.neeto-editor-table__add-column{flex-direction:column;width:16px}.ProseMirror.resize-cursor{cursor:col-resize}.ne-attachments{display:flex;flex-direction:column;gap:8px}.ne-attachments__items{display:flex;flex-wrap:wrap;gap:8px}.ne-attachments__attachment{align-items:center;background-color:rgb(var(--neeto-ui-white));border:1px solid rgb(var(--neeto-ui-gray-200));border-radius:var(--neeto-ui-rounded-sm);display:flex;justify-content:space-between;padding:4px 2px 4px 8px;width:256px}.ne-attachments__attachment-file-icon{height:auto;width:15px}.ne-attachments__attachment__progress{display:flex;justify-content:space-between;opacity:.5;width:76%}.ne-attachments__attachment__progress p{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ne-attachments__attachment__progress p:nth-child(2){width:-moz-fit-content;width:fit-content}.ne-attachments__attachment__progress-icon{height:auto;width:15px}.ne-attachments__attachment p{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:75%}.ne-attachments input[type=file]{display:none}.ne-attachments--integrated{background-color:rgb(var(--neeto-ui-white));border:1px solid rgb(var(--neeto-ui-gray-300));border-radius:0 0 var(--neeto-ui-rounded) var(--neeto-ui-rounded);border-top:none;padding:0 6px}.ne-attachments__wrapper{position:relative}.ne-attachments__wrapper.uppy-is-drag-over:after{align-items:center;background-color:rgba(var(--neeto-ui-gray-300),.5);border:3px dashed rgb(var(--neeto-ui-gray-500));border-radius:5px;color:rgb(var(--neeto-ui-gray-600));content:\"Drop the file here\";display:flex;font-size:1.2rem;font-weight:700;inset:7px;justify-content:center;position:absolute}.ProseMirror{height:100%;overflow-y:auto;white-space:break-spaces}.ProseMirror:focus{outline:none}";
|
|
133655
134104
|
n$1(css,{});
|
|
133656
134105
|
|
|
133657
134106
|
function cov_1e6pfjcktm() {
|