jodit-pro-react 5.5.56 → 5.5.58
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.
|
@@ -579,8 +579,8 @@ function css(element, key3, value, onlyStyleMode = false) {
|
|
|
579
579
|
};
|
|
580
580
|
if (isPlainObject(key3)) {
|
|
581
581
|
const keys3 = Object.keys(key3);
|
|
582
|
-
for (let
|
|
583
|
-
setValue(element, camelCase(keys3[
|
|
582
|
+
for (let j10 = 0; j10 < keys3.length; j10 += 1) {
|
|
583
|
+
setValue(element, camelCase(keys3[j10]), key3[keys3[j10]]);
|
|
584
584
|
}
|
|
585
585
|
} else {
|
|
586
586
|
setValue(element, camelCase(key3), value);
|
|
@@ -4241,8 +4241,8 @@ function previewBox(editor, defaultValue, points = "px", container = null) {
|
|
|
4241
4241
|
const c74 = dv.childNodes[i54];
|
|
4242
4242
|
if (Dom.isElement(c74)) {
|
|
4243
4243
|
const newNode = box.ownerDocument.createElement(c74.nodeName);
|
|
4244
|
-
for (let
|
|
4245
|
-
attr(newNode, c74.attributes[
|
|
4244
|
+
for (let j10 = 0; j10 < c74.attributes.length; j10 += 1) {
|
|
4245
|
+
attr(newNode, c74.attributes[j10].nodeName, c74.attributes[j10].nodeValue);
|
|
4246
4246
|
}
|
|
4247
4247
|
if (c74.childNodes.length === 0 || Dom.isTag(c74, "table")) {
|
|
4248
4248
|
switch (c74.nodeName) {
|
|
@@ -4982,28 +4982,28 @@ var init_size = __esm({
|
|
|
4982
4982
|
|
|
4983
4983
|
// node_modules/jodit/esm/core/helpers/string/fuzzy-search-index.js
|
|
4984
4984
|
function fuzzySearchIndex(needle, haystack, offset2 = 0, maxDistance = 1) {
|
|
4985
|
-
let i54 = 0,
|
|
4986
|
-
for (
|
|
4987
|
-
if (needle[i54].toLowerCase() === haystack[
|
|
4985
|
+
let i54 = 0, j10 = 0, startIndex = -1, len = 0, errorDistance = 0;
|
|
4986
|
+
for (j10 = offset2; i54 < needle.length && j10 < haystack.length; ) {
|
|
4987
|
+
if (needle[i54].toLowerCase() === haystack[j10].toLowerCase()) {
|
|
4988
4988
|
i54++;
|
|
4989
4989
|
len++;
|
|
4990
4990
|
errorDistance = 0;
|
|
4991
4991
|
if (startIndex === -1) {
|
|
4992
|
-
startIndex =
|
|
4992
|
+
startIndex = j10;
|
|
4993
4993
|
}
|
|
4994
4994
|
} else if (i54 > 0) {
|
|
4995
|
-
if (errorDistance >= maxDistance && haystack[
|
|
4995
|
+
if (errorDistance >= maxDistance && haystack[j10] !== INVISIBLE_SPACE) {
|
|
4996
4996
|
i54 = 0;
|
|
4997
4997
|
startIndex = -1;
|
|
4998
4998
|
len = 0;
|
|
4999
4999
|
errorDistance = 0;
|
|
5000
|
-
|
|
5000
|
+
j10--;
|
|
5001
5001
|
} else {
|
|
5002
5002
|
errorDistance++;
|
|
5003
5003
|
len++;
|
|
5004
5004
|
}
|
|
5005
5005
|
}
|
|
5006
|
-
|
|
5006
|
+
j10++;
|
|
5007
5007
|
}
|
|
5008
5008
|
return i54 === needle.length ? [startIndex, len] : [-1, 0];
|
|
5009
5009
|
}
|
|
@@ -6001,8 +6001,8 @@ function derive(...traits) {
|
|
|
6001
6001
|
for (let i54 = 0; i54 < traits.length; i54++) {
|
|
6002
6002
|
const trait = traits[i54];
|
|
6003
6003
|
const keys3 = Object.getOwnPropertyNames(trait.prototype);
|
|
6004
|
-
for (let
|
|
6005
|
-
const key3 = keys3[
|
|
6004
|
+
for (let j10 = 0; j10 < keys3.length; j10++) {
|
|
6005
|
+
const key3 = keys3[j10], method = Object.getOwnPropertyDescriptor(trait.prototype, key3);
|
|
6006
6006
|
const canDerive = method != null && isFunction(method.value) && !isFunction(origin[key3]);
|
|
6007
6007
|
if (canDerive) {
|
|
6008
6008
|
Object.defineProperty(origin, key3, {
|
|
@@ -6739,10 +6739,10 @@ var init_plugin = __esm({
|
|
|
6739
6739
|
jodit.e.on("afterPluginSystemInit", this.__afterPluginSystemInit).on("afterInit", this.__afterInit).on("beforeDestruct", this.__beforeDestruct);
|
|
6740
6740
|
}
|
|
6741
6741
|
__afterPluginSystemInit() {
|
|
6742
|
-
const { j:
|
|
6743
|
-
if (buttons && isJoditObject(
|
|
6742
|
+
const { j: j10, buttons } = this;
|
|
6743
|
+
if (buttons && isJoditObject(j10)) {
|
|
6744
6744
|
buttons.forEach((btn) => {
|
|
6745
|
-
|
|
6745
|
+
j10.registerButton(btn);
|
|
6746
6746
|
});
|
|
6747
6747
|
}
|
|
6748
6748
|
}
|
|
@@ -6763,15 +6763,15 @@ var init_plugin = __esm({
|
|
|
6763
6763
|
if (this.isInDestruct) {
|
|
6764
6764
|
return;
|
|
6765
6765
|
}
|
|
6766
|
-
const { j:
|
|
6767
|
-
|
|
6766
|
+
const { j: j10 } = this;
|
|
6767
|
+
j10.e.off("afterPluginSystemInit", this.__afterPluginSystemInit).off("afterInit", this.__afterInit).off("beforeDestruct", this.destruct);
|
|
6768
6768
|
this.setStatus(STATUSES.beforeDestruct);
|
|
6769
6769
|
if (!this.__inited) {
|
|
6770
6770
|
return super.destruct();
|
|
6771
6771
|
}
|
|
6772
|
-
if (isJoditObject(
|
|
6772
|
+
if (isJoditObject(j10)) {
|
|
6773
6773
|
(_a2 = this.buttons) === null || _a2 === void 0 ? void 0 : _a2.forEach((btn) => {
|
|
6774
|
-
|
|
6774
|
+
j10 === null || j10 === void 0 ? void 0 : j10.unregisterButton(btn);
|
|
6775
6775
|
});
|
|
6776
6776
|
}
|
|
6777
6777
|
this.beforeDestruct(this.j);
|
|
@@ -7645,7 +7645,7 @@ var require_acolorpicker = __commonJS({
|
|
|
7645
7645
|
case b17:
|
|
7646
7646
|
var R4 = o57(t49, 4);
|
|
7647
7647
|
this.H = R4[0], this.S = R4[1], this.L = R4[2], this.A = R4[3];
|
|
7648
|
-
var
|
|
7648
|
+
var C14 = (0, n57.hslToRgb)(this.H, this.S, this.L), S8 = o57(C14, 3);
|
|
7649
7649
|
this.R = S8[0], this.G = S8[1], this.B = S8[2], this.slBarHelper.setHue(this.H), this.updatePointerH(this.H), this.updatePointerSL(this.H, this.S, this.L), this.updateInputHSL(this.H, this.S, this.L), this.updateInputRGB(this.R, this.G, this.B), this.updateInputRGBHEX(this.R, this.G, this.B), this.updatePointerA(this.A);
|
|
7650
7650
|
break;
|
|
7651
7651
|
case "RGBHEX":
|
|
@@ -8994,8 +8994,8 @@ var Popup = class _Popup extends UIGroup {
|
|
|
8994
8994
|
}
|
|
8995
8995
|
return false;
|
|
8996
8996
|
};
|
|
8997
|
-
const { j:
|
|
8998
|
-
if (checkView(
|
|
8997
|
+
const { j: j10 } = this;
|
|
8998
|
+
if (checkView(j10)) {
|
|
8999
8999
|
return;
|
|
9000
9000
|
}
|
|
9001
9001
|
let pe2 = this.parentElement;
|
|
@@ -9870,18 +9870,18 @@ var UISelect = UISelect_1 = class UISelect2 extends UIInput {
|
|
|
9870
9870
|
createContainer(state) {
|
|
9871
9871
|
var _a2;
|
|
9872
9872
|
const container = super.createContainer(state);
|
|
9873
|
-
const { j:
|
|
9874
|
-
const opt = () =>
|
|
9873
|
+
const { j: j10 } = this, { nativeInput } = this;
|
|
9874
|
+
const opt = () => j10.create.element("option");
|
|
9875
9875
|
if (state.placeholder !== void 0) {
|
|
9876
9876
|
const option = opt();
|
|
9877
9877
|
option.value = "";
|
|
9878
|
-
option.text =
|
|
9878
|
+
option.text = j10.i18n(state.placeholder);
|
|
9879
9879
|
nativeInput.add(option);
|
|
9880
9880
|
}
|
|
9881
9881
|
(_a2 = state.options) === null || _a2 === void 0 ? void 0 : _a2.forEach((element) => {
|
|
9882
9882
|
const option = opt();
|
|
9883
9883
|
option.value = element.value.toString();
|
|
9884
|
-
option.text =
|
|
9884
|
+
option.text = j10.i18n(element.text);
|
|
9885
9885
|
nativeInput.add(option);
|
|
9886
9886
|
});
|
|
9887
9887
|
if (state.size && state.size > 0) {
|
|
@@ -14701,14 +14701,14 @@ var Snapshot = class _Snapshot extends ViewComponent {
|
|
|
14701
14701
|
}
|
|
14702
14702
|
const elms = elm.parentNode.childNodes;
|
|
14703
14703
|
let count = 0, previous = null;
|
|
14704
|
-
for (let
|
|
14705
|
-
if (previous && !this.isIgnoredNode(elms[
|
|
14704
|
+
for (let j10 = 0; j10 < elms.length; j10 += 1) {
|
|
14705
|
+
if (previous && !this.isIgnoredNode(elms[j10]) && !(Dom.isText(previous) && Dom.isText(elms[j10]))) {
|
|
14706
14706
|
count += 1;
|
|
14707
14707
|
}
|
|
14708
|
-
if (elms[
|
|
14708
|
+
if (elms[j10] === elm) {
|
|
14709
14709
|
return count;
|
|
14710
14710
|
}
|
|
14711
|
-
previous = elms[
|
|
14711
|
+
previous = elms[j10];
|
|
14712
14712
|
}
|
|
14713
14713
|
return 0;
|
|
14714
14714
|
}
|
|
@@ -14828,9 +14828,9 @@ var Snapshot = class _Snapshot extends ViewComponent {
|
|
|
14828
14828
|
return [this.j.ow.scrollY, this.j.editor.scrollTop];
|
|
14829
14829
|
}
|
|
14830
14830
|
restoreScrollState(scrolls) {
|
|
14831
|
-
const { j:
|
|
14831
|
+
const { j: j10 } = this, { ow } = j10;
|
|
14832
14832
|
ow.scrollTo(ow.scrollX, scrolls[0]);
|
|
14833
|
-
|
|
14833
|
+
j10.editor.scrollTop = scrolls[1];
|
|
14834
14834
|
}
|
|
14835
14835
|
/**
|
|
14836
14836
|
* Restore selection from snapshot
|
|
@@ -15285,8 +15285,8 @@ var Table = class _Table extends ViewComponent {
|
|
|
15285
15285
|
};
|
|
15286
15286
|
for (let i54 = 0; i54 < rows.length; i54 += 1) {
|
|
15287
15287
|
const cells = toArray(rows[i54].cells);
|
|
15288
|
-
for (let
|
|
15289
|
-
if (setCell(cells[
|
|
15288
|
+
for (let j10 = 0; j10 < cells.length; j10 += 1) {
|
|
15289
|
+
if (setCell(cells[j10], i54) === false) {
|
|
15290
15290
|
return matrix;
|
|
15291
15291
|
}
|
|
15292
15292
|
}
|
|
@@ -15302,21 +15302,21 @@ var Table = class _Table extends ViewComponent {
|
|
|
15302
15302
|
return _Table.__formalMatrix(table2, callback);
|
|
15303
15303
|
}
|
|
15304
15304
|
static __formalCoordinate(table2, cell, max = false) {
|
|
15305
|
-
let i54 = 0,
|
|
15305
|
+
let i54 = 0, j10 = 0, width = 1, height = 1;
|
|
15306
15306
|
_Table.__formalMatrix(table2, (td, ii, jj, colSpan, rowSpan) => {
|
|
15307
15307
|
if (cell === td) {
|
|
15308
15308
|
i54 = ii;
|
|
15309
|
-
|
|
15309
|
+
j10 = jj;
|
|
15310
15310
|
width = colSpan || 1;
|
|
15311
15311
|
height = rowSpan || 1;
|
|
15312
15312
|
if (max) {
|
|
15313
|
-
|
|
15313
|
+
j10 += (colSpan || 1) - 1;
|
|
15314
15314
|
i54 += (rowSpan || 1) - 1;
|
|
15315
15315
|
}
|
|
15316
15316
|
return false;
|
|
15317
15317
|
}
|
|
15318
15318
|
});
|
|
15319
|
-
return [i54,
|
|
15319
|
+
return [i54, j10, width, height];
|
|
15320
15320
|
}
|
|
15321
15321
|
/**
|
|
15322
15322
|
* Get cell coordinate in formal table (without colspan and rowspan)
|
|
@@ -15330,7 +15330,7 @@ var Table = class _Table extends ViewComponent {
|
|
|
15330
15330
|
if (!line) {
|
|
15331
15331
|
const columnsCount = _Table.__getColumnsCount(table2);
|
|
15332
15332
|
row = create.element("tr");
|
|
15333
|
-
for (let
|
|
15333
|
+
for (let j10 = 0; j10 < columnsCount; j10 += 1) {
|
|
15334
15334
|
row.appendChild(create.element("td"));
|
|
15335
15335
|
}
|
|
15336
15336
|
} else {
|
|
@@ -15369,14 +15369,14 @@ var Table = class _Table extends ViewComponent {
|
|
|
15369
15369
|
const box = _Table.__formalMatrix(table2);
|
|
15370
15370
|
let dec;
|
|
15371
15371
|
const row = table2.rows[rowIndex];
|
|
15372
|
-
box[rowIndex].forEach((cell,
|
|
15372
|
+
box[rowIndex].forEach((cell, j10) => {
|
|
15373
15373
|
dec = false;
|
|
15374
|
-
if (rowIndex - 1 >= 0 && box[rowIndex - 1][
|
|
15374
|
+
if (rowIndex - 1 >= 0 && box[rowIndex - 1][j10] === cell) {
|
|
15375
15375
|
dec = true;
|
|
15376
|
-
} else if (box[rowIndex + 1] && box[rowIndex + 1][
|
|
15376
|
+
} else if (box[rowIndex + 1] && box[rowIndex + 1][j10] === cell) {
|
|
15377
15377
|
if (cell.parentNode === row && cell.parentNode.nextSibling) {
|
|
15378
15378
|
dec = true;
|
|
15379
|
-
let nextCell =
|
|
15379
|
+
let nextCell = j10 + 1;
|
|
15380
15380
|
while (box[rowIndex + 1][nextCell] === cell) {
|
|
15381
15381
|
nextCell += 1;
|
|
15382
15382
|
}
|
|
@@ -15400,7 +15400,7 @@ var Table = class _Table extends ViewComponent {
|
|
|
15400
15400
|
} else {
|
|
15401
15401
|
Dom.safeRemove(cell);
|
|
15402
15402
|
}
|
|
15403
|
-
if (dec && (cell.parentNode === row || cell !== box[rowIndex][
|
|
15403
|
+
if (dec && (cell.parentNode === row || cell !== box[rowIndex][j10 - 1])) {
|
|
15404
15404
|
const rowSpan = cell.rowSpan;
|
|
15405
15405
|
attr(cell, "rowspan", rowSpan - 1 > 1 ? rowSpan - 1 : null);
|
|
15406
15406
|
}
|
|
@@ -15442,20 +15442,20 @@ var Table = class _Table extends ViewComponent {
|
|
|
15442
15442
|
i54 += cells[columnIndex].rowSpan || 1;
|
|
15443
15443
|
}
|
|
15444
15444
|
}
|
|
15445
|
-
static __removeColumn(table2,
|
|
15445
|
+
static __removeColumn(table2, j10) {
|
|
15446
15446
|
const box = _Table.__formalMatrix(table2);
|
|
15447
15447
|
let dec;
|
|
15448
15448
|
box.forEach((cells, i54) => {
|
|
15449
|
-
const td = cells[
|
|
15449
|
+
const td = cells[j10];
|
|
15450
15450
|
dec = false;
|
|
15451
|
-
if (
|
|
15451
|
+
if (j10 - 1 >= 0 && box[i54][j10 - 1] === td) {
|
|
15452
15452
|
dec = true;
|
|
15453
|
-
} else if (
|
|
15453
|
+
} else if (j10 + 1 < cells.length && box[i54][j10 + 1] === td) {
|
|
15454
15454
|
dec = true;
|
|
15455
15455
|
} else {
|
|
15456
15456
|
Dom.safeRemove(td);
|
|
15457
15457
|
}
|
|
15458
|
-
if (dec && (i54 - 1 < 0 || td !== box[i54 - 1][
|
|
15458
|
+
if (dec && (i54 - 1 < 0 || td !== box[i54 - 1][j10])) {
|
|
15459
15459
|
const colSpan = td.colSpan;
|
|
15460
15460
|
attr(td, "colspan", colSpan - 1 > 1 ? (colSpan - 1).toString() : null);
|
|
15461
15461
|
}
|
|
@@ -15464,8 +15464,8 @@ var Table = class _Table extends ViewComponent {
|
|
|
15464
15464
|
/**
|
|
15465
15465
|
* Remove column by index
|
|
15466
15466
|
*/
|
|
15467
|
-
removeColumn(table2,
|
|
15468
|
-
return _Table.__removeColumn(table2,
|
|
15467
|
+
removeColumn(table2, j10) {
|
|
15468
|
+
return _Table.__removeColumn(table2, j10);
|
|
15469
15469
|
}
|
|
15470
15470
|
static __getSelectedBound(table2, selectedCells) {
|
|
15471
15471
|
const bound = [
|
|
@@ -15473,38 +15473,38 @@ var Table = class _Table extends ViewComponent {
|
|
|
15473
15473
|
[0, 0]
|
|
15474
15474
|
];
|
|
15475
15475
|
const box = _Table.__formalMatrix(table2);
|
|
15476
|
-
let i54,
|
|
15476
|
+
let i54, j10, k6;
|
|
15477
15477
|
for (i54 = 0; i54 < box.length; i54 += 1) {
|
|
15478
|
-
for (
|
|
15479
|
-
if (selectedCells.includes(box[i54][
|
|
15478
|
+
for (j10 = 0; box[i54] && j10 < box[i54].length; j10 += 1) {
|
|
15479
|
+
if (selectedCells.includes(box[i54][j10])) {
|
|
15480
15480
|
bound[0][0] = Math.min(i54, bound[0][0]);
|
|
15481
|
-
bound[0][1] = Math.min(
|
|
15481
|
+
bound[0][1] = Math.min(j10, bound[0][1]);
|
|
15482
15482
|
bound[1][0] = Math.max(i54, bound[1][0]);
|
|
15483
|
-
bound[1][1] = Math.max(
|
|
15483
|
+
bound[1][1] = Math.max(j10, bound[1][1]);
|
|
15484
15484
|
}
|
|
15485
15485
|
}
|
|
15486
15486
|
}
|
|
15487
15487
|
for (i54 = bound[0][0]; i54 <= bound[1][0]; i54 += 1) {
|
|
15488
|
-
for (k6 = 1,
|
|
15489
|
-
while (box[i54] && box[i54][
|
|
15490
|
-
bound[0][1] = Math.min(
|
|
15491
|
-
bound[1][1] = Math.max(
|
|
15488
|
+
for (k6 = 1, j10 = bound[0][1]; j10 <= bound[1][1]; j10 += 1) {
|
|
15489
|
+
while (box[i54] && box[i54][j10 - k6] && box[i54][j10] === box[i54][j10 - k6]) {
|
|
15490
|
+
bound[0][1] = Math.min(j10 - k6, bound[0][1]);
|
|
15491
|
+
bound[1][1] = Math.max(j10 - k6, bound[1][1]);
|
|
15492
15492
|
k6 += 1;
|
|
15493
15493
|
}
|
|
15494
15494
|
k6 = 1;
|
|
15495
|
-
while (box[i54] && box[i54][
|
|
15496
|
-
bound[0][1] = Math.min(
|
|
15497
|
-
bound[1][1] = Math.max(
|
|
15495
|
+
while (box[i54] && box[i54][j10 + k6] && box[i54][j10] === box[i54][j10 + k6]) {
|
|
15496
|
+
bound[0][1] = Math.min(j10 + k6, bound[0][1]);
|
|
15497
|
+
bound[1][1] = Math.max(j10 + k6, bound[1][1]);
|
|
15498
15498
|
k6 += 1;
|
|
15499
15499
|
}
|
|
15500
15500
|
k6 = 1;
|
|
15501
|
-
while (box[i54 - k6] && box[i54][
|
|
15501
|
+
while (box[i54 - k6] && box[i54][j10] === box[i54 - k6][j10]) {
|
|
15502
15502
|
bound[0][0] = Math.min(i54 - k6, bound[0][0]);
|
|
15503
15503
|
bound[1][0] = Math.max(i54 - k6, bound[1][0]);
|
|
15504
15504
|
k6 += 1;
|
|
15505
15505
|
}
|
|
15506
15506
|
k6 = 1;
|
|
15507
|
-
while (box[i54 + k6] && box[i54][
|
|
15507
|
+
while (box[i54 + k6] && box[i54][j10] === box[i54 + k6][j10]) {
|
|
15508
15508
|
bound[0][0] = Math.min(i54 + k6, bound[0][0]);
|
|
15509
15509
|
bound[1][0] = Math.max(i54 + k6, bound[1][0]);
|
|
15510
15510
|
k6 += 1;
|
|
@@ -15524,69 +15524,69 @@ var Table = class _Table extends ViewComponent {
|
|
|
15524
15524
|
_Table.__removeExtraColspans(box, __marked);
|
|
15525
15525
|
_Table.__removeExtraRowspans(box, __marked);
|
|
15526
15526
|
for (let i54 = 0; i54 < box.length; i54 += 1) {
|
|
15527
|
-
for (let
|
|
15528
|
-
if (box[i54][
|
|
15527
|
+
for (let j10 = 0; j10 < box[i54].length; j10 += 1) {
|
|
15528
|
+
if (box[i54][j10] === void 0) {
|
|
15529
15529
|
continue;
|
|
15530
15530
|
}
|
|
15531
|
-
if (box[i54][
|
|
15532
|
-
attr(box[i54][
|
|
15531
|
+
if (box[i54][j10].hasAttribute("rowspan") && box[i54][j10].rowSpan === 1) {
|
|
15532
|
+
attr(box[i54][j10], "rowspan", null);
|
|
15533
15533
|
}
|
|
15534
|
-
if (box[i54][
|
|
15535
|
-
attr(box[i54][
|
|
15534
|
+
if (box[i54][j10].hasAttribute("colspan") && box[i54][j10].colSpan === 1) {
|
|
15535
|
+
attr(box[i54][j10], "colspan", null);
|
|
15536
15536
|
}
|
|
15537
|
-
if (box[i54][
|
|
15538
|
-
attr(box[i54][
|
|
15537
|
+
if (box[i54][j10].hasAttribute("class") && !attr(box[i54][j10], "class")) {
|
|
15538
|
+
attr(box[i54][j10], "class", null);
|
|
15539
15539
|
}
|
|
15540
15540
|
}
|
|
15541
15541
|
}
|
|
15542
15542
|
_Table.__unmark(__marked);
|
|
15543
15543
|
}
|
|
15544
15544
|
static __removeExtraColspans(box, __marked) {
|
|
15545
|
-
for (let
|
|
15545
|
+
for (let j10 = 0; j10 < box[0].length; j10 += 1) {
|
|
15546
15546
|
let min = 1e6;
|
|
15547
15547
|
let not = false;
|
|
15548
15548
|
for (let i54 = 0; i54 < box.length; i54 += 1) {
|
|
15549
|
-
if (box[i54][
|
|
15549
|
+
if (box[i54][j10] === void 0) {
|
|
15550
15550
|
continue;
|
|
15551
15551
|
}
|
|
15552
|
-
if (box[i54][
|
|
15552
|
+
if (box[i54][j10].colSpan < 2) {
|
|
15553
15553
|
not = true;
|
|
15554
15554
|
break;
|
|
15555
15555
|
}
|
|
15556
|
-
min = Math.min(min, box[i54][
|
|
15556
|
+
min = Math.min(min, box[i54][j10].colSpan);
|
|
15557
15557
|
}
|
|
15558
15558
|
if (!not) {
|
|
15559
15559
|
for (let i54 = 0; i54 < box.length; i54 += 1) {
|
|
15560
|
-
if (box[i54][
|
|
15560
|
+
if (box[i54][j10] === void 0) {
|
|
15561
15561
|
continue;
|
|
15562
15562
|
}
|
|
15563
|
-
_Table.__mark(box[i54][
|
|
15563
|
+
_Table.__mark(box[i54][j10], "colspan", box[i54][j10].colSpan - min + 1, __marked);
|
|
15564
15564
|
}
|
|
15565
15565
|
}
|
|
15566
15566
|
}
|
|
15567
15567
|
}
|
|
15568
15568
|
static __removeExtraRowspans(box, marked) {
|
|
15569
15569
|
let i54 = 0;
|
|
15570
|
-
let
|
|
15570
|
+
let j10 = 0;
|
|
15571
15571
|
for (i54 = 0; i54 < box.length; i54 += 1) {
|
|
15572
15572
|
let min = 1e6;
|
|
15573
15573
|
let not = false;
|
|
15574
|
-
for (
|
|
15575
|
-
if (box[i54][
|
|
15574
|
+
for (j10 = 0; j10 < box[i54].length; j10 += 1) {
|
|
15575
|
+
if (box[i54][j10] === void 0) {
|
|
15576
15576
|
continue;
|
|
15577
15577
|
}
|
|
15578
|
-
if (box[i54][
|
|
15578
|
+
if (box[i54][j10].rowSpan < 2) {
|
|
15579
15579
|
not = true;
|
|
15580
15580
|
break;
|
|
15581
15581
|
}
|
|
15582
|
-
min = Math.min(min, box[i54][
|
|
15582
|
+
min = Math.min(min, box[i54][j10].rowSpan);
|
|
15583
15583
|
}
|
|
15584
15584
|
if (!not) {
|
|
15585
|
-
for (
|
|
15586
|
-
if (box[i54][
|
|
15585
|
+
for (j10 = 0; j10 < box[i54].length; j10 += 1) {
|
|
15586
|
+
if (box[i54][j10] === void 0) {
|
|
15587
15587
|
continue;
|
|
15588
15588
|
}
|
|
15589
|
-
_Table.__mark(box[i54][
|
|
15589
|
+
_Table.__mark(box[i54][j10], "rowspan", box[i54][j10].rowSpan - min + 1, marked);
|
|
15590
15590
|
}
|
|
15591
15591
|
}
|
|
15592
15592
|
}
|
|
@@ -15602,9 +15602,9 @@ var Table = class _Table extends ViewComponent {
|
|
|
15602
15602
|
let w9 = 0, first = null, first_j = 0, td, cols = 0, rows = 0;
|
|
15603
15603
|
const alreadyMerged = /* @__PURE__ */ new Set(), __marked = [];
|
|
15604
15604
|
if (bound && (bound[0][0] - bound[1][0] || bound[0][1] - bound[1][1])) {
|
|
15605
|
-
_Table.__formalMatrix(table2, (cell, i54,
|
|
15605
|
+
_Table.__formalMatrix(table2, (cell, i54, j10, cs, rs) => {
|
|
15606
15606
|
if (i54 >= bound[0][0] && i54 <= bound[1][0]) {
|
|
15607
|
-
if (
|
|
15607
|
+
if (j10 >= bound[0][1] && j10 <= bound[1][1]) {
|
|
15608
15608
|
td = cell;
|
|
15609
15609
|
if (alreadyMerged.has(td)) {
|
|
15610
15610
|
return;
|
|
@@ -15624,7 +15624,7 @@ var Table = class _Table extends ViewComponent {
|
|
|
15624
15624
|
}
|
|
15625
15625
|
if (!first) {
|
|
15626
15626
|
first = cell;
|
|
15627
|
-
first_j =
|
|
15627
|
+
first_j = j10;
|
|
15628
15628
|
} else {
|
|
15629
15629
|
_Table.__mark(td, "remove", 1, __marked);
|
|
15630
15630
|
instance(jodit).removeSelection(td);
|
|
@@ -15675,8 +15675,8 @@ var Table = class _Table extends ViewComponent {
|
|
|
15675
15675
|
tr = jodit.createInside.element("tr");
|
|
15676
15676
|
coord = _Table.__formalCoordinate(table2, cell);
|
|
15677
15677
|
if (cell.rowSpan < 2) {
|
|
15678
|
-
_Table.__formalMatrix(table2, (tdElm, i54,
|
|
15679
|
-
if (coord[0] === i54 && coord[1] !==
|
|
15678
|
+
_Table.__formalMatrix(table2, (tdElm, i54, j10) => {
|
|
15679
|
+
if (coord[0] === i54 && coord[1] !== j10 && tdElm !== cell) {
|
|
15680
15680
|
_Table.__mark(tdElm, "rowspan", tdElm.rowSpan + 1, __marked);
|
|
15681
15681
|
}
|
|
15682
15682
|
});
|
|
@@ -15684,8 +15684,8 @@ var Table = class _Table extends ViewComponent {
|
|
|
15684
15684
|
tr.appendChild(td);
|
|
15685
15685
|
} else {
|
|
15686
15686
|
_Table.__mark(cell, "rowspan", cell.rowSpan - 1, __marked);
|
|
15687
|
-
_Table.__formalMatrix(table2, (tdElm, i54,
|
|
15688
|
-
if (i54 > coord[0] && i54 < coord[0] + cell.rowSpan && coord[1] >
|
|
15687
|
+
_Table.__formalMatrix(table2, (tdElm, i54, j10) => {
|
|
15688
|
+
if (i54 > coord[0] && i54 < coord[0] + cell.rowSpan && coord[1] > j10 && tdElm.parentNode.rowIndex === i54) {
|
|
15689
15689
|
after = tdElm;
|
|
15690
15690
|
}
|
|
15691
15691
|
if (coord[0] < i54 && tdElm === cell) {
|
|
@@ -15718,8 +15718,8 @@ var Table = class _Table extends ViewComponent {
|
|
|
15718
15718
|
_Table.__getSelectedCellsByTable(table2).forEach((cell) => {
|
|
15719
15719
|
coord = _Table.__formalCoordinate(table2, cell);
|
|
15720
15720
|
if (cell.colSpan < 2) {
|
|
15721
|
-
_Table.__formalMatrix(table2, (tdElm, i54,
|
|
15722
|
-
if (coord[1] ===
|
|
15721
|
+
_Table.__formalMatrix(table2, (tdElm, i54, j10) => {
|
|
15722
|
+
if (coord[1] === j10 && coord[0] !== i54 && tdElm !== cell) {
|
|
15723
15723
|
_Table.__mark(tdElm, "colspan", tdElm.colSpan + 1, __marked);
|
|
15724
15724
|
}
|
|
15725
15725
|
});
|
|
@@ -15820,7 +15820,7 @@ Table.__selectedByTable = /* @__PURE__ */ new WeakMap();
|
|
|
15820
15820
|
__decorate31([
|
|
15821
15821
|
debounce()
|
|
15822
15822
|
], Table.prototype, "__recalculateStyles", null);
|
|
15823
|
-
var instance = (
|
|
15823
|
+
var instance = (j10) => j10.getInstance("Table", j10.o);
|
|
15824
15824
|
|
|
15825
15825
|
// node_modules/jodit/esm/modules/toolbar/button/button.js
|
|
15826
15826
|
init_statuses();
|
|
@@ -16105,7 +16105,7 @@ var ToolbarButton = class ToolbarButton2 extends UIButton {
|
|
|
16105
16105
|
const { childTemplate } = control;
|
|
16106
16106
|
const childControl = {
|
|
16107
16107
|
name: key3.toString(),
|
|
16108
|
-
template: childTemplate && ((
|
|
16108
|
+
template: childTemplate && ((j10, k6, v22) => childTemplate(j10, k6, v22, this)),
|
|
16109
16109
|
exec: control.childExec ? (view, current, options2) => {
|
|
16110
16110
|
var _a3;
|
|
16111
16111
|
return (_a3 = control.childExec) === null || _a3 === void 0 ? void 0 : _a3.call(control, view, current, __spreadProps(__spreadValues({}, options2), {
|
|
@@ -16861,22 +16861,22 @@ Config.prototype.uploader = {
|
|
|
16861
16861
|
return baseurl + filename;
|
|
16862
16862
|
},
|
|
16863
16863
|
defaultHandlerSuccess(resp) {
|
|
16864
|
-
const
|
|
16865
|
-
if (!isJoditObject(
|
|
16864
|
+
const j10 = this.j || this;
|
|
16865
|
+
if (!isJoditObject(j10)) {
|
|
16866
16866
|
return;
|
|
16867
16867
|
}
|
|
16868
16868
|
if (resp.files && resp.files.length) {
|
|
16869
16869
|
resp.files.forEach((filename, index) => {
|
|
16870
16870
|
const [tagName, attr2] = resp.isImages && resp.isImages[index] ? ["img", "src"] : ["a", "href"];
|
|
16871
|
-
const elm =
|
|
16871
|
+
const elm = j10.createInside.element(tagName);
|
|
16872
16872
|
elm.setAttribute(attr2, resp.baseurl + filename);
|
|
16873
16873
|
if (tagName === "a") {
|
|
16874
|
-
elm.textContent =
|
|
16874
|
+
elm.textContent = j10.o.uploader.getDisplayName.call(this, resp.baseurl, filename);
|
|
16875
16875
|
}
|
|
16876
16876
|
if (tagName === "img") {
|
|
16877
|
-
|
|
16877
|
+
j10.s.insertImage(elm, null, j10.o.imageDefaultWidth);
|
|
16878
16878
|
} else {
|
|
16879
|
-
|
|
16879
|
+
j10.s.insertNode(elm);
|
|
16880
16880
|
}
|
|
16881
16881
|
});
|
|
16882
16882
|
}
|
|
@@ -17921,9 +17921,9 @@ init_dom();
|
|
|
17921
17921
|
// node_modules/jodit/esm/core/selection/helpers/move-node-inside-start.js
|
|
17922
17922
|
init_constants();
|
|
17923
17923
|
init_dom();
|
|
17924
|
-
function moveNodeInsideStart(
|
|
17924
|
+
function moveNodeInsideStart(j10, node, start) {
|
|
17925
17925
|
let sibling = Dom.findSibling(node, start), anotherSibling = Dom.findSibling(node, !start);
|
|
17926
|
-
while (Dom.isElement(sibling) && !Dom.isTag(sibling, INSEPARABLE_TAGS) && Dom.isContentEditable(sibling,
|
|
17926
|
+
while (Dom.isElement(sibling) && !Dom.isTag(sibling, INSEPARABLE_TAGS) && Dom.isContentEditable(sibling, j10.editor) && (!anotherSibling || !Dom.closest(node, Dom.isElement, j10.editor))) {
|
|
17927
17927
|
if (start || !sibling.firstChild) {
|
|
17928
17928
|
sibling.appendChild(node);
|
|
17929
17929
|
} else {
|
|
@@ -22265,7 +22265,7 @@ Config.prototype.controls.fontsize = {
|
|
|
22265
22265
|
};
|
|
22266
22266
|
Config.prototype.controls.font = __spreadProps(__spreadValues({}, Config.prototype.controls.fontsize), {
|
|
22267
22267
|
command: "fontname",
|
|
22268
|
-
textTemplate: (
|
|
22268
|
+
textTemplate: (j10, value) => {
|
|
22269
22269
|
const [first] = value.split(",");
|
|
22270
22270
|
return trimChars(first, `"'`);
|
|
22271
22271
|
},
|
|
@@ -23679,19 +23679,19 @@ UIImagePropertiesForm = __decorate46([
|
|
|
23679
23679
|
// node_modules/jodit/esm/plugins/image-properties/utils/open-image-editor.js
|
|
23680
23680
|
init_is_string();
|
|
23681
23681
|
init_attr();
|
|
23682
|
-
function openImageEditorDialog(
|
|
23683
|
-
const url2 = attr(state.image, "src") || "", a77 =
|
|
23682
|
+
function openImageEditorDialog(j10, state) {
|
|
23683
|
+
const url2 = attr(state.image, "src") || "", a77 = j10.c.element("a"), loadExternal = () => {
|
|
23684
23684
|
if (a77.host !== location.host) {
|
|
23685
|
-
|
|
23686
|
-
if (yes &&
|
|
23687
|
-
|
|
23688
|
-
|
|
23685
|
+
j10.confirm("You can only edit your own images. Download this image on the host?", (yes) => {
|
|
23686
|
+
if (yes && j10.uploader) {
|
|
23687
|
+
j10.uploader.uploadRemoteImage(a77.href.toString(), (resp) => {
|
|
23688
|
+
j10.alert("The image has been successfully uploaded to the host!", () => {
|
|
23689
23689
|
if (isString(resp.newfilename)) {
|
|
23690
23690
|
state.values.imageSrc = resp.baseurl + resp.newfilename;
|
|
23691
23691
|
}
|
|
23692
23692
|
});
|
|
23693
23693
|
}, (error2) => {
|
|
23694
|
-
|
|
23694
|
+
j10.alert(j10.i18n("There was an error loading %s", error2.message));
|
|
23695
23695
|
});
|
|
23696
23696
|
}
|
|
23697
23697
|
});
|
|
@@ -23699,29 +23699,29 @@ function openImageEditorDialog(j11, state) {
|
|
|
23699
23699
|
}
|
|
23700
23700
|
};
|
|
23701
23701
|
a77.href = url2;
|
|
23702
|
-
|
|
23703
|
-
openImageEditor.call(
|
|
23702
|
+
j10.filebrowser.dataProvider.getPathByUrl(a77.href.toString()).then((resp) => {
|
|
23703
|
+
openImageEditor.call(j10.filebrowser, a77.href, resp.name, resp.path, resp.source, (newPath) => {
|
|
23704
23704
|
const timestamp = (/* @__PURE__ */ new Date()).getTime();
|
|
23705
23705
|
const newUrl = newPath || url2;
|
|
23706
23706
|
state.values.imageSrc = newUrl + (newUrl.indexOf("?") !== -1 ? "" : "?") + "&_tmp=" + timestamp.toString();
|
|
23707
23707
|
}, (error2) => {
|
|
23708
|
-
|
|
23708
|
+
j10.alert(error2.message);
|
|
23709
23709
|
});
|
|
23710
23710
|
}).catch((error2) => {
|
|
23711
|
-
|
|
23711
|
+
j10.alert(error2.message, loadExternal);
|
|
23712
23712
|
});
|
|
23713
23713
|
}
|
|
23714
23714
|
|
|
23715
23715
|
// node_modules/jodit/esm/plugins/image-properties/utils/open-image-popup.js
|
|
23716
23716
|
init_is_array();
|
|
23717
23717
|
init_position();
|
|
23718
|
-
function openImagePopup(
|
|
23718
|
+
function openImagePopup(j10, dialog, state, button2) {
|
|
23719
23719
|
const popup = new Popup(dialog);
|
|
23720
23720
|
const closePopup = () => {
|
|
23721
23721
|
popup.close();
|
|
23722
23722
|
popup.destruct();
|
|
23723
23723
|
};
|
|
23724
|
-
popup.setContent(FileSelectorWidget(
|
|
23724
|
+
popup.setContent(FileSelectorWidget(j10, {
|
|
23725
23725
|
upload: (data) => {
|
|
23726
23726
|
if (data.files && data.files.length) {
|
|
23727
23727
|
state.values.imageSrc = data.baseurl + data.files[0];
|
|
@@ -23757,8 +23757,8 @@ function readAlign(image2, values) {
|
|
|
23757
23757
|
// node_modules/jodit/esm/plugins/image-properties/readers/link.js
|
|
23758
23758
|
init_dom();
|
|
23759
23759
|
init_attr();
|
|
23760
|
-
function readLink(state,
|
|
23761
|
-
const a77 = Dom.closest(state.sourceImage, "a",
|
|
23760
|
+
function readLink(state, j10, values) {
|
|
23761
|
+
const a77 = Dom.closest(state.sourceImage, "a", j10.editor);
|
|
23762
23762
|
if (a77) {
|
|
23763
23763
|
values.imageLink = attr(a77, "href") || "";
|
|
23764
23764
|
values.imageLinkOpenInNewTab = attr(a77, "target") === "_blank";
|
|
@@ -23826,7 +23826,7 @@ function readSizes(image2, values, state) {
|
|
|
23826
23826
|
}
|
|
23827
23827
|
|
|
23828
23828
|
// node_modules/jodit/esm/plugins/image-properties/readers/index.js
|
|
23829
|
-
function readValuesFromImage(
|
|
23829
|
+
function readValuesFromImage(j10, state) {
|
|
23830
23830
|
return __async(this, null, function* () {
|
|
23831
23831
|
const { sourceImage: image2, values } = state;
|
|
23832
23832
|
readAlign(image2, values);
|
|
@@ -23837,7 +23837,7 @@ function readValuesFromImage(j11, state) {
|
|
|
23837
23837
|
values.style = attr(image2, "style") || "";
|
|
23838
23838
|
values.classes = (attr(image2, "class") || "").replace(/jodit_focused_image[\s]*/, "");
|
|
23839
23839
|
readMargins(image2, values, state);
|
|
23840
|
-
readLink(state,
|
|
23840
|
+
readLink(state, j10, values);
|
|
23841
23841
|
values.imageSrc = attr(image2, "src") || "";
|
|
23842
23842
|
return readSizes(image2, values, state);
|
|
23843
23843
|
});
|
|
@@ -23850,11 +23850,11 @@ init_utils3();
|
|
|
23850
23850
|
// node_modules/jodit/esm/plugins/image-properties/writers/link.js
|
|
23851
23851
|
init_dom();
|
|
23852
23852
|
init_attr();
|
|
23853
|
-
function applyLink(
|
|
23854
|
-
let link2 = Dom.closest(image2, "a",
|
|
23853
|
+
function applyLink(j10, image2, imageLink, imageLinkOpenInNewTab) {
|
|
23854
|
+
let link2 = Dom.closest(image2, "a", j10.editor);
|
|
23855
23855
|
if (imageLink) {
|
|
23856
23856
|
if (!link2) {
|
|
23857
|
-
link2 = Dom.wrap(image2, "a",
|
|
23857
|
+
link2 = Dom.wrap(image2, "a", j10.createInside);
|
|
23858
23858
|
}
|
|
23859
23859
|
attr(link2, "href", imageLink);
|
|
23860
23860
|
attr(link2, "target", imageLinkOpenInNewTab ? "_blank" : null);
|
|
@@ -23871,7 +23871,7 @@ function applyLink(j11, image2, imageLink, imageLinkOpenInNewTab) {
|
|
|
23871
23871
|
|
|
23872
23872
|
// node_modules/jodit/esm/plugins/image-properties/writers/margin.js
|
|
23873
23873
|
init_css();
|
|
23874
|
-
function applyMargin(
|
|
23874
|
+
function applyMargin(j10, marginTop, marginRight, marginBottom, marginLeft, image2, marginIsLocked) {
|
|
23875
23875
|
const margins = [marginTop, marginRight, marginBottom, marginLeft];
|
|
23876
23876
|
const applyMargin2 = (key3, value) => {
|
|
23877
23877
|
const oldValue = css(image2, key3);
|
|
@@ -23917,9 +23917,9 @@ function applySize(image2, imageWidth, imageHeight, sizeIsLocked) {
|
|
|
23917
23917
|
}
|
|
23918
23918
|
|
|
23919
23919
|
// node_modules/jodit/esm/plugins/image-properties/writers/index.js
|
|
23920
|
-
function applyValuesToImage(
|
|
23920
|
+
function applyValuesToImage(j10, state, image2) {
|
|
23921
23921
|
const { style, imageSrc, borderRadius, imageTitle, imageAlt, imageLink, imageWidth, imageHeight, marginTop, marginRight, marginBottom, marginLeft, imageLinkOpenInNewTab, align: align2, classes, id } = state.values;
|
|
23922
|
-
const opt =
|
|
23922
|
+
const opt = j10.o;
|
|
23923
23923
|
if (opt.image.editStyle) {
|
|
23924
23924
|
attr(image2, "style", style || null);
|
|
23925
23925
|
}
|
|
@@ -23932,10 +23932,10 @@ function applyValuesToImage(j11, state, image2) {
|
|
|
23932
23932
|
image2.style.borderRadius = borderRadius ? borderRadius + "px" : "";
|
|
23933
23933
|
attr(image2, "title", imageTitle || null);
|
|
23934
23934
|
attr(image2, "alt", imageAlt || null);
|
|
23935
|
-
applyLink(
|
|
23935
|
+
applyLink(j10, image2, imageLink, imageLinkOpenInNewTab);
|
|
23936
23936
|
applySize(image2, imageWidth, imageHeight, state.sizeIsLocked);
|
|
23937
|
-
if (
|
|
23938
|
-
applyMargin(
|
|
23937
|
+
if (j10.o.image.editMargins) {
|
|
23938
|
+
applyMargin(j10, marginTop, marginRight, marginBottom, marginLeft, image2, state.marginIsLocked);
|
|
23939
23939
|
}
|
|
23940
23940
|
if (opt.image.editClass) {
|
|
23941
23941
|
attr(image2, "class", classes || null);
|
|
@@ -24004,43 +24004,43 @@ var imageProperties = class extends Plugin {
|
|
|
24004
24004
|
* Dialog for form
|
|
24005
24005
|
*/
|
|
24006
24006
|
get dialog() {
|
|
24007
|
-
const { j:
|
|
24008
|
-
const dialog =
|
|
24007
|
+
const { j: j10 } = this;
|
|
24008
|
+
const dialog = j10.dlg({
|
|
24009
24009
|
minWidth: Math.min(400, screen.width),
|
|
24010
24010
|
minHeight: 590,
|
|
24011
24011
|
buttons: ["fullsize", "dialog.close"]
|
|
24012
24012
|
});
|
|
24013
24013
|
const buttons = this.__buttons;
|
|
24014
24014
|
buttons.check.onAction(() => {
|
|
24015
|
-
applyValuesToImage(
|
|
24016
|
-
|
|
24015
|
+
applyValuesToImage(j10, this.state, this.state.sourceImage);
|
|
24016
|
+
j10.synchronizeValues();
|
|
24017
24017
|
dialog.close();
|
|
24018
24018
|
});
|
|
24019
24019
|
buttons.remove.onAction(() => {
|
|
24020
|
-
|
|
24020
|
+
j10.s.removeNode(this.state.sourceImage);
|
|
24021
24021
|
dialog.close();
|
|
24022
24022
|
});
|
|
24023
24023
|
buttons.cancel.onAction(() => {
|
|
24024
24024
|
dialog.close();
|
|
24025
24025
|
});
|
|
24026
|
-
dialog.setHeader(
|
|
24026
|
+
dialog.setHeader(j10.i18n("Image properties"));
|
|
24027
24027
|
dialog.setContent(this.form);
|
|
24028
24028
|
dialog.setFooter([[buttons.cancel, buttons.remove], buttons.check]);
|
|
24029
|
-
|
|
24030
|
-
if (this.state.image.parentNode &&
|
|
24031
|
-
|
|
24029
|
+
j10.e.on(dialog, "afterClose", () => {
|
|
24030
|
+
if (this.state.image.parentNode && j10.o.image.selectImageAfterClose) {
|
|
24031
|
+
j10.s.select(this.state.sourceImage);
|
|
24032
24032
|
}
|
|
24033
24033
|
});
|
|
24034
|
-
dialog.setSize(
|
|
24035
|
-
markOwner(
|
|
24034
|
+
dialog.setSize(j10.o.image.dialogWidth);
|
|
24035
|
+
markOwner(j10, dialog.container);
|
|
24036
24036
|
return dialog;
|
|
24037
24037
|
}
|
|
24038
24038
|
get __buttons() {
|
|
24039
|
-
const { j:
|
|
24039
|
+
const { j: j10 } = this;
|
|
24040
24040
|
return {
|
|
24041
|
-
check: Button(
|
|
24042
|
-
remove: Button(
|
|
24043
|
-
cancel: Button(
|
|
24041
|
+
check: Button(j10, "ok", "Apply", "primary"),
|
|
24042
|
+
remove: Button(j10, "bin", "Delete"),
|
|
24043
|
+
cancel: Button(j10, "cancel", "Cancel")
|
|
24044
24044
|
};
|
|
24045
24045
|
}
|
|
24046
24046
|
/**
|
|
@@ -26407,8 +26407,8 @@ Config.prototype.controls.paste = {
|
|
|
26407
26407
|
list: {
|
|
26408
26408
|
[psKey]: "Paste Storage"
|
|
26409
26409
|
},
|
|
26410
|
-
isChildDisabled(
|
|
26411
|
-
return
|
|
26410
|
+
isChildDisabled(j10) {
|
|
26411
|
+
return j10.e.fire("pasteStorageList") < 2;
|
|
26412
26412
|
}
|
|
26413
26413
|
};
|
|
26414
26414
|
|
|
@@ -26608,10 +26608,10 @@ var pasteFromWord = class extends Plugin {
|
|
|
26608
26608
|
* Try if text is Word's document fragment and try process this
|
|
26609
26609
|
*/
|
|
26610
26610
|
processWordHTML(e42, text2, texts) {
|
|
26611
|
-
const { j:
|
|
26611
|
+
const { j: j10 } = this, { processPasteFromWord, askBeforePasteFromWord, defaultActionOnPasteFromWord, defaultActionOnPaste, pasteFromWordActionList } = j10.o;
|
|
26612
26612
|
if (processPasteFromWord && isHtmlFromWord(text2)) {
|
|
26613
26613
|
if (askBeforePasteFromWord) {
|
|
26614
|
-
askInsertTypeDialog(
|
|
26614
|
+
askInsertTypeDialog(j10, "The pasted content is coming from a Microsoft Word/Excel document. Do you want to keep the format or clean it up?", "Word Paste Detected", (insertType) => {
|
|
26615
26615
|
this.insertFromWordByType(e42, text2, insertType, texts);
|
|
26616
26616
|
}, pasteFromWordActionList);
|
|
26617
26617
|
} else {
|
|
@@ -27059,8 +27059,8 @@ function generateCriticalCSS(jodit) {
|
|
|
27059
27059
|
continue;
|
|
27060
27060
|
}
|
|
27061
27061
|
finalCSS += k6 + " { ";
|
|
27062
|
-
for (const
|
|
27063
|
-
finalCSS +=
|
|
27062
|
+
for (const j10 in this.css[k6]) {
|
|
27063
|
+
finalCSS += j10 + ": " + this.css[k6][j10] + "; ";
|
|
27064
27064
|
}
|
|
27065
27065
|
finalCSS += "}\n";
|
|
27066
27066
|
}
|
|
@@ -27274,12 +27274,12 @@ var resizeCells = class extends Plugin {
|
|
|
27274
27274
|
this.maxX = this.minX + tableBox.width;
|
|
27275
27275
|
} else {
|
|
27276
27276
|
const coordinate = this.module.formalCoordinate(this.workTable, this.workCell, true);
|
|
27277
|
-
this.module.formalMatrix(this.workTable, (td, i54,
|
|
27278
|
-
if (coordinate[1] ===
|
|
27277
|
+
this.module.formalMatrix(this.workTable, (td, i54, j10) => {
|
|
27278
|
+
if (coordinate[1] === j10) {
|
|
27279
27279
|
box = td.getBoundingClientRect();
|
|
27280
27280
|
this.minX = Math.max(box.left + NEARBY / 2, this.minX);
|
|
27281
27281
|
}
|
|
27282
|
-
if (coordinate[1] + (this.isRTL ? -1 : 1) ===
|
|
27282
|
+
if (coordinate[1] + (this.isRTL ? -1 : 1) === j10) {
|
|
27283
27283
|
box = td.getBoundingClientRect();
|
|
27284
27284
|
this.maxX = Math.min(box.left + box.width - NEARBY / 2, this.maxX);
|
|
27285
27285
|
}
|
|
@@ -27749,18 +27749,18 @@ var resizer = class extends Plugin {
|
|
|
27749
27749
|
this.startY = e42.clientY;
|
|
27750
27750
|
this.pointerX = e42.clientX;
|
|
27751
27751
|
this.pointerY = e42.clientY;
|
|
27752
|
-
const { j:
|
|
27753
|
-
|
|
27754
|
-
|
|
27755
|
-
|
|
27752
|
+
const { j: j10 } = this;
|
|
27753
|
+
j10.e.fire("hidePopup");
|
|
27754
|
+
j10.lock(this.LOCK_KEY);
|
|
27755
|
+
j10.e.on(j10.ow, "mousemove.resizer touchmove.resizer", this.onResize);
|
|
27756
27756
|
}
|
|
27757
27757
|
onEndResizing() {
|
|
27758
|
-
const { j:
|
|
27759
|
-
|
|
27758
|
+
const { j: j10 } = this;
|
|
27759
|
+
j10.unlock();
|
|
27760
27760
|
this.isResizeMode = false;
|
|
27761
27761
|
this.isAltMode = false;
|
|
27762
|
-
|
|
27763
|
-
|
|
27762
|
+
j10.synchronizeValues();
|
|
27763
|
+
j10.e.off(j10.ow, "mousemove.resizer touchmove.resizer", this.onResize);
|
|
27764
27764
|
}
|
|
27765
27765
|
onResize(e42) {
|
|
27766
27766
|
if (this.isResizeMode) {
|
|
@@ -28360,8 +28360,8 @@ var UISearch = class UISearch2 extends UIElement {
|
|
|
28360
28360
|
if (!this.isOpened) {
|
|
28361
28361
|
return;
|
|
28362
28362
|
}
|
|
28363
|
-
const { j:
|
|
28364
|
-
if (
|
|
28363
|
+
const { j: j10 } = this;
|
|
28364
|
+
if (j10.getRealMode() !== MODE_WYSIWYG) {
|
|
28365
28365
|
return;
|
|
28366
28366
|
}
|
|
28367
28367
|
switch (e42.key) {
|
|
@@ -28370,7 +28370,7 @@ var UISearch = class UISearch2 extends UIElement {
|
|
|
28370
28370
|
break;
|
|
28371
28371
|
case KEY_F3:
|
|
28372
28372
|
if (this.queryInput.value) {
|
|
28373
|
-
|
|
28373
|
+
j10.e.fire(!e42.shiftKey ? "searchNext" : "searchPrevious");
|
|
28374
28374
|
e42.preventDefault();
|
|
28375
28375
|
}
|
|
28376
28376
|
break;
|
|
@@ -28801,14 +28801,14 @@ var select = class extends Plugin {
|
|
|
28801
28801
|
});
|
|
28802
28802
|
}
|
|
28803
28803
|
onStartSelection(e42) {
|
|
28804
|
-
const { j:
|
|
28804
|
+
const { j: j10 } = this;
|
|
28805
28805
|
let result, target = e42.target;
|
|
28806
|
-
while (result === void 0 && target && target !==
|
|
28807
|
-
result =
|
|
28806
|
+
while (result === void 0 && target && target !== j10.editor) {
|
|
28807
|
+
result = j10.e.fire(camelCase(e42.type + "_" + target.nodeName.toLowerCase()), target, e42);
|
|
28808
28808
|
target = target.parentElement;
|
|
28809
28809
|
}
|
|
28810
|
-
if (e42.type === "click" && result === void 0 && target ===
|
|
28811
|
-
|
|
28810
|
+
if (e42.type === "click" && result === void 0 && target === j10.editor) {
|
|
28811
|
+
j10.e.fire(e42.type + "Editor", target, e42);
|
|
28812
28812
|
}
|
|
28813
28813
|
}
|
|
28814
28814
|
/**
|
|
@@ -29091,8 +29091,8 @@ var selectCells = class extends Plugin {
|
|
|
29091
29091
|
this.__selectedCell
|
|
29092
29092
|
]), box = this.__tableModule.formalMatrix(table2);
|
|
29093
29093
|
for (let i54 = bound[0][0]; i54 <= bound[1][0]; i54 += 1) {
|
|
29094
|
-
for (let
|
|
29095
|
-
this.__tableModule.addSelection(box[i54][
|
|
29094
|
+
for (let j10 = bound[0][1]; j10 <= bound[1][1]; j10 += 1) {
|
|
29095
|
+
this.__tableModule.addSelection(box[i54][j10]);
|
|
29096
29096
|
}
|
|
29097
29097
|
}
|
|
29098
29098
|
const cellsCount = this.__tableModule.getAllSelectedCells().length;
|
|
@@ -29341,29 +29341,29 @@ var size2 = class extends Plugin {
|
|
|
29341
29341
|
this.__immediateInitialize();
|
|
29342
29342
|
}
|
|
29343
29343
|
__immediateInitialize() {
|
|
29344
|
-
const { j:
|
|
29345
|
-
if (
|
|
29344
|
+
const { j: j10 } = this;
|
|
29345
|
+
if (j10.o.inline) {
|
|
29346
29346
|
return;
|
|
29347
29347
|
}
|
|
29348
|
-
let { height } =
|
|
29349
|
-
if (
|
|
29350
|
-
const localHeight =
|
|
29348
|
+
let { height } = j10.o;
|
|
29349
|
+
if (j10.o.saveHeightInStorage && height !== "auto") {
|
|
29350
|
+
const localHeight = j10.storage.get("height");
|
|
29351
29351
|
if (localHeight) {
|
|
29352
29352
|
height = localHeight;
|
|
29353
29353
|
}
|
|
29354
29354
|
}
|
|
29355
|
-
css(
|
|
29355
|
+
css(j10.editor, {
|
|
29356
29356
|
minHeight: "100%"
|
|
29357
29357
|
});
|
|
29358
|
-
css(
|
|
29359
|
-
minHeight:
|
|
29360
|
-
maxHeight:
|
|
29361
|
-
minWidth:
|
|
29362
|
-
maxWidth:
|
|
29358
|
+
css(j10.container, {
|
|
29359
|
+
minHeight: j10.o.minHeight,
|
|
29360
|
+
maxHeight: j10.o.maxHeight,
|
|
29361
|
+
minWidth: j10.o.minWidth,
|
|
29362
|
+
maxWidth: j10.o.maxWidth
|
|
29363
29363
|
});
|
|
29364
|
-
if (!
|
|
29364
|
+
if (!j10.isFullSize) {
|
|
29365
29365
|
this.__setHeight(height);
|
|
29366
|
-
this.__setWidth(
|
|
29366
|
+
this.__setWidth(j10.o.width);
|
|
29367
29367
|
}
|
|
29368
29368
|
}
|
|
29369
29369
|
/**
|
|
@@ -30631,8 +30631,8 @@ var sticky = class extends Plugin {
|
|
|
30631
30631
|
* Is mobile device
|
|
30632
30632
|
*/
|
|
30633
30633
|
__isMobile() {
|
|
30634
|
-
const { j:
|
|
30635
|
-
return
|
|
30634
|
+
const { j: j10 } = this;
|
|
30635
|
+
return j10 && j10.options && j10.container && j10.options.sizeSM >= j10.container.offsetWidth;
|
|
30636
30636
|
}
|
|
30637
30637
|
beforeDestruct(jodit) {
|
|
30638
30638
|
Dom.safeRemove(this.__dummyBox);
|
|
@@ -31147,10 +31147,10 @@ var symbols = class extends Plugin {
|
|
|
31147
31147
|
const chars = [];
|
|
31148
31148
|
for (let i54 = 0; i54 < jodit.o.specialCharacters.length; ) {
|
|
31149
31149
|
const tr = jodit.c.element("tr");
|
|
31150
|
-
for (let
|
|
31150
|
+
for (let j10 = 0; j10 < this.__countInRow && i54 < jodit.o.specialCharacters.length; j10 += 1, i54 += 1) {
|
|
31151
31151
|
const td = jodit.c.element("td"), a77 = jodit.c.fromHTML(`<a
|
|
31152
31152
|
data-index="${i54}"
|
|
31153
|
-
data-index-j="${
|
|
31153
|
+
data-index-j="${j10}"
|
|
31154
31154
|
role="option"
|
|
31155
31155
|
tabindex="-1"
|
|
31156
31156
|
>${jodit.o.specialCharacters[i54]}</a>`);
|
|
@@ -31724,7 +31724,7 @@ Config.prototype.controls.table = {
|
|
|
31724
31724
|
let first_td = null, tr, td;
|
|
31725
31725
|
for (let i54 = 1; i54 <= rows_count; i54 += 1) {
|
|
31726
31726
|
tr = crt.element("tr");
|
|
31727
|
-
for (let
|
|
31727
|
+
for (let j10 = 1; j10 <= cols_count; j10 += 1) {
|
|
31728
31728
|
td = crt.element("td");
|
|
31729
31729
|
if (!first_td) {
|
|
31730
31730
|
first_td = td;
|
|
@@ -31782,8 +31782,8 @@ Config.prototype.controls.table = {
|
|
|
31782
31782
|
if (button2 && button2.parentElement) {
|
|
31783
31783
|
for (let i54 = 0; i54 < default_rows_count; i54 += 1) {
|
|
31784
31784
|
const row = editor.c.div();
|
|
31785
|
-
for (let
|
|
31786
|
-
row.appendChild(cells[i54 * default_cols_count +
|
|
31785
|
+
for (let j10 = 0; j10 < default_cols_count; j10 += 1) {
|
|
31786
|
+
row.appendChild(cells[i54 * default_cols_count + j10]);
|
|
31787
31787
|
}
|
|
31788
31788
|
blocksContainer.appendChild(row);
|
|
31789
31789
|
}
|
|
@@ -32397,8 +32397,8 @@ Config.prototype.speechRecognize = {
|
|
|
32397
32397
|
};
|
|
32398
32398
|
Icon.set("speech-recognize", speech_recognize_svg_default);
|
|
32399
32399
|
Config.prototype.controls.speechRecognize = {
|
|
32400
|
-
isVisible(
|
|
32401
|
-
return Boolean(
|
|
32400
|
+
isVisible(j10) {
|
|
32401
|
+
return Boolean(j10.o.speechRecognize.api);
|
|
32402
32402
|
},
|
|
32403
32403
|
isActive(jodit, _12) {
|
|
32404
32404
|
const api = dataBind(jodit, "speech");
|
|
@@ -34084,16 +34084,16 @@ var SpeechRecognizeNative = class extends Plugin {
|
|
|
34084
34084
|
onSpeechRecognizeResult(text2) {
|
|
34085
34085
|
this.j.async.clearTimeout(this.__hidePopupTimeout);
|
|
34086
34086
|
Dom.safeRemove(this.messagePopup);
|
|
34087
|
-
const { j:
|
|
34088
|
-
const { s: s50 } =
|
|
34087
|
+
const { j: j10 } = this;
|
|
34088
|
+
const { s: s50 } = j10;
|
|
34089
34089
|
if (!this._checkCommand(text2)) {
|
|
34090
34090
|
const { range } = s50, node = s50.current();
|
|
34091
|
-
if (s50.isCollapsed() && Dom.isText(node) && Dom.isOrContains(
|
|
34091
|
+
if (s50.isCollapsed() && Dom.isText(node) && Dom.isOrContains(j10.editor, node) && node.nodeValue) {
|
|
34092
34092
|
const sentence = node.nodeValue;
|
|
34093
34093
|
node.nodeValue = sentence + (/[\u00A0 ]\uFEFF*$/.test(sentence) ? "" : " ") + text2;
|
|
34094
34094
|
range.setStartAfter(node);
|
|
34095
34095
|
s50.selectRange(range);
|
|
34096
|
-
|
|
34096
|
+
j10.synchronizeValues();
|
|
34097
34097
|
} else {
|
|
34098
34098
|
s50.insertHTML(text2);
|
|
34099
34099
|
}
|
|
@@ -39823,7 +39823,7 @@ Config.prototype.autocomplete = { displayMode: "list", sources: [], maxItems: 50
|
|
|
39823
39823
|
|
|
39824
39824
|
// node_modules/jodit-pro/esm/core/ui/helpers/list-reconciler.js
|
|
39825
39825
|
var U = Object.defineProperty;
|
|
39826
|
-
var v4 = (
|
|
39826
|
+
var v4 = (C14, e42) => U(C14, "name", { value: e42, configurable: true });
|
|
39827
39827
|
var u5 = class u6 {
|
|
39828
39828
|
static reconcile(e42, i54, d53) {
|
|
39829
39829
|
const { getId: o57, isEqual: t48 = v4((n57, s50) => o57(n57) === o57(s50), "isEqual"), preserveOrder: p63 = true } = d53, a77 = /* @__PURE__ */ new Map(), h60 = /* @__PURE__ */ new Map();
|
|
@@ -40441,8 +40441,8 @@ function p10(e42, s50, f50) {
|
|
|
40441
40441
|
if (a20(f50), e42.s.restore(), e42.s.isCollapsed()) return { hasSelection: false };
|
|
40442
40442
|
const l57 = e42.s.html, c74 = e42.s.range, t48 = c74.toString(), a77 = { hasSelection: true, html: l57, text: t48, startContainer: c74.startContainer.nodeName, endContainer: c74.endContainer.nodeName };
|
|
40443
40443
|
if (o57 > 0 || r59 > 0) {
|
|
40444
|
-
const n57 = e42.editor.textContent || "", x9 = n57.substring(0, n57.indexOf(t48)),
|
|
40445
|
-
o57 > 0 && (a77.contextBefore = x9.slice(-o57)), r59 > 0 && (a77.contextAfter =
|
|
40444
|
+
const n57 = e42.editor.textContent || "", x9 = n57.substring(0, n57.indexOf(t48)), C14 = n57.substring(n57.indexOf(t48) + t48.length);
|
|
40445
|
+
o57 > 0 && (a77.contextBefore = x9.slice(-o57)), r59 > 0 && (a77.contextAfter = C14.slice(0, r59));
|
|
40446
40446
|
}
|
|
40447
40447
|
return a77;
|
|
40448
40448
|
});
|
|
@@ -44035,8 +44035,8 @@ function x5(e42, o57, n57, i54) {
|
|
|
44035
44035
|
return (u58 = d53.toolCalls) === null || u58 === void 0 ? void 0 : u58.find((p63) => p63.id === o57);
|
|
44036
44036
|
});
|
|
44037
44037
|
if (l57 === -1) return;
|
|
44038
|
-
const r59 = s50.messages[l57], c74 = __spreadProps(__spreadValues({}, a77), { result: { error: "Tool call denied by user." }, status: "denied" }),
|
|
44039
|
-
v22[l57] =
|
|
44038
|
+
const r59 = s50.messages[l57], c74 = __spreadProps(__spreadValues({}, a77), { result: { error: "Tool call denied by user." }, status: "denied" }), C14 = c21(r59, c74), v22 = [...s50.messages];
|
|
44039
|
+
v22[l57] = C14, s50 = __spreadProps(__spreadValues({}, s50), { messages: v22, updated: Date.now() }), n57.setCurrentConversation(s50), yield i54.save(s50), e42.e.fire("toolCallDenied.ai-assistant-pro", a77), n57.removePendingToolCall(o57);
|
|
44040
44040
|
});
|
|
44041
44041
|
}
|
|
44042
44042
|
t19(x5, "handleToolDenial");
|
|
@@ -44351,12 +44351,12 @@ var l23 = (f18 = class extends Plugin {
|
|
|
44351
44351
|
const x9 = m54.slice(0, s50);
|
|
44352
44352
|
if (n57 > 0) {
|
|
44353
44353
|
if (r59.size >= o57) {
|
|
44354
|
-
const
|
|
44355
|
-
|
|
44354
|
+
const C14 = r59.keys().next().value;
|
|
44355
|
+
C14 != null && r59.delete(C14);
|
|
44356
44356
|
}
|
|
44357
44357
|
r59.set(P4, { ts: Date.now(), data: x9 });
|
|
44358
44358
|
}
|
|
44359
|
-
g24(x9.map((
|
|
44359
|
+
g24(x9.map((C14) => ({ value: C14, title: C14 })));
|
|
44360
44360
|
return;
|
|
44361
44361
|
}
|
|
44362
44362
|
g24([]);
|
|
@@ -44987,7 +44987,7 @@ var p30 = x6 = (f22 = class extends UIElement {
|
|
|
44987
44987
|
}
|
|
44988
44988
|
static extractStyle(o57, e42) {
|
|
44989
44989
|
var d53, n57, r59, l57;
|
|
44990
|
-
const t48 = ((d53 = e42.ownerDocument.defaultView) === null || d53 === void 0 ? void 0 : d53.getComputedStyle(e42)) || {},
|
|
44990
|
+
const t48 = ((d53 = e42.ownerDocument.defaultView) === null || d53 === void 0 ? void 0 : d53.getComputedStyle(e42)) || {}, C14 = b12(() => {
|
|
44991
44991
|
var c74, a77;
|
|
44992
44992
|
const i54 = { solid: true, bgStart: (c74 = t48.backgroundColor) !== null && c74 !== void 0 ? c74 : "#44c767", bgEnd: (a77 = t48.backgroundColor) !== null && a77 !== void 0 ? a77 : "#44c767" }, S8 = t48.backgroundImage;
|
|
44993
44993
|
if (S8 && /linear-gradient/.test(S8)) {
|
|
@@ -45004,13 +45004,14 @@ var p30 = x6 = (f22 = class extends UIElement {
|
|
|
45004
45004
|
} else h60 === "inset" ? a77.boxShadowInset = true : a77[S8] = h60;
|
|
45005
45005
|
}), a77[i54] = true, a77);
|
|
45006
45006
|
}, "extractShadow");
|
|
45007
|
-
Object.assign(o57, __spreadValues(__spreadProps(__spreadValues(__spreadProps(__spreadValues({ text: e42.innerText, className: e42.className, href: e42.getAttribute("href") || "" },
|
|
45007
|
+
Object.assign(o57, __spreadValues(__spreadProps(__spreadValues(__spreadProps(__spreadValues({ text: e42.innerText, className: e42.className, href: e42.getAttribute("href") || "" }, C14()), { borderColor: (n57 = t48 == null ? void 0 : t48.borderColor) !== null && n57 !== void 0 ? n57 : "#18ab29", borderRadius: (r59 = t48 == null ? void 0 : t48.borderRadius) !== null && r59 !== void 0 ? r59 : 0, borderSize: (l57 = t48 == null ? void 0 : t48.borderWidth) !== null && l57 !== void 0 ? l57 : 1 }), m54(["boxShadowOffsetX", "boxShadowOffsetY", "boxShadowBlurRadius", "boxShadowSpreadRadius"], { boxShadowBlurRadius: 0, boxShadowColor: "#3dc21b", boxShadowInset: false, boxShadowOffsetX: 0, boxShadowOffsetY: 0, boxShadowSpreadRadius: 0 }, "boxShadow", "boxShadowColor")), { fontColor: t48.color, fontFamily: t48.fontFamily, fontSize: t48.fontSize, fontWeight: t48.fontWeight === "bold", fontItalic: t48.fontStyle === "italic", paddingX: t48.paddingLeft, paddingY: t48.paddingTop }), m54(["textShadowOffsetX", "textShadowOffsetY", "textShadowBlurRadius"], { textShadowBlurRadius: 0, textShadowColor: "#2f6627", textShadowOffsetX: 0, textShadowOffsetY: 1 }, "textShadow", "textShadowColor")));
|
|
45008
45008
|
}
|
|
45009
45009
|
}, b12(f22, "UIGButton"), f22);
|
|
45010
45010
|
_7([watch("style")], p30.prototype, "__updateStyles", null), p30 = x6 = _7([component], p30);
|
|
45011
45011
|
|
|
45012
45012
|
// node_modules/jodit-pro/esm/plugins/button-generator/ui/generator/button-generator.js
|
|
45013
45013
|
init_decorators();
|
|
45014
|
+
init_helpers();
|
|
45014
45015
|
init_assert();
|
|
45015
45016
|
|
|
45016
45017
|
// node_modules/jodit-pro/esm/plugins/button-generator/assets/styles.json.js
|
|
@@ -45093,10 +45094,10 @@ var r35 = class r36 extends UIElement {
|
|
|
45093
45094
|
<input type='range' min='8' max='28' name='fontSize' placeholder='~Font Size~'/>
|
|
45094
45095
|
<div class='&__checkboxes'>
|
|
45095
45096
|
<label>
|
|
45096
|
-
<input type='checkbox' name='fontWeight'/> bold
|
|
45097
|
+
<input type='checkbox' name='fontWeight'/> ~bold~
|
|
45097
45098
|
</label>
|
|
45098
45099
|
<label>
|
|
45099
|
-
<input type='checkbox' name='fontItalic'/> italic
|
|
45100
|
+
<input type='checkbox' name='fontItalic'/> ~italic~
|
|
45100
45101
|
</label>
|
|
45101
45102
|
</div>
|
|
45102
45103
|
</div>
|
|
@@ -45252,11 +45253,11 @@ h27 = p31([component], h27);
|
|
|
45252
45253
|
var u30 = Object.defineProperty;
|
|
45253
45254
|
var p32 = (i54, t48) => u30(i54, "name", { value: t48, configurable: true });
|
|
45254
45255
|
var a40;
|
|
45255
|
-
var b13 = function(i54, t48, e42,
|
|
45256
|
-
var s50 = arguments.length,
|
|
45257
|
-
if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
|
|
45258
|
-
else for (var f50 = i54.length - 1; f50 >= 0; f50--) (n57 = i54[f50]) && (
|
|
45259
|
-
return s50 > 3 &&
|
|
45256
|
+
var b13 = function(i54, t48, e42, r59) {
|
|
45257
|
+
var s50 = arguments.length, o57 = s50 < 3 ? t48 : r59 === null ? r59 = Object.getOwnPropertyDescriptor(t48, e42) : r59, n57;
|
|
45258
|
+
if (typeof Reflect == "object" && typeof Reflect.decorate == "function") o57 = Reflect.decorate(i54, t48, e42, r59);
|
|
45259
|
+
else for (var f50 = i54.length - 1; f50 >= 0; f50--) (n57 = i54[f50]) && (o57 = (s50 < 3 ? n57(o57) : s50 > 3 ? n57(t48, e42, o57) : n57(t48, e42)) || o57);
|
|
45260
|
+
return s50 > 3 && o57 && Object.defineProperty(t48, e42, o57), o57;
|
|
45260
45261
|
};
|
|
45261
45262
|
var l27;
|
|
45262
45263
|
var d24 = l27 = (a40 = class extends UIElement {
|
|
@@ -45276,23 +45277,23 @@ var d24 = l27 = (a40 = class extends UIElement {
|
|
|
45276
45277
|
super(t48), this.state = { text: "", className: "", href: "", bgEnd: "#5cbf2a", bgStart: "#44c767", borderColor: "#18ab29", borderRadius: 28, borderSize: 1, boxShadow: false, boxShadowBlurRadius: 0, boxShadowColor: "#3dc21b", boxShadowInset: false, boxShadowOffsetX: 0, boxShadowOffsetY: 0, boxShadowSpreadRadius: 0, fontColor: "#fff", fontFamily: "Arial", fontSize: 17, fontStyle: false, fontWeight: false, fontItalic: false, paddingX: 31, paddingY: 16, previewBgColor: "#f5f5f5", solid: true, textShadow: true, textShadowBlurRadius: 0, textShadowColor: "#2f6627", textShadowOffsetX: 0, textShadowOffsetY: 1 }, this.preview = new h27(this.j, this.state, this.updateState), this.form = new h26(this.j, this.state, this.updateState), this.generateLibrary();
|
|
45277
45278
|
const e42 = this.getElm("preview");
|
|
45278
45279
|
assert(e42 != null, "preview element does not exists"), e42.appendChild(this.preview.container);
|
|
45279
|
-
const
|
|
45280
|
-
assert(
|
|
45280
|
+
const r59 = this.getElm("form");
|
|
45281
|
+
assert(r59 != null, "form element does not exists"), r59.appendChild(this.form.container);
|
|
45281
45282
|
}
|
|
45282
45283
|
generateLibrary() {
|
|
45283
45284
|
const t48 = new UIGroup(this.j);
|
|
45284
|
-
s27.map(l27.mapKey).forEach((
|
|
45285
|
-
const s50 = new p30(this.j,
|
|
45285
|
+
s27.map((r59) => l27.mapKey(r59, this.j)).forEach((r59) => {
|
|
45286
|
+
const s50 = new p30(this.j, r59);
|
|
45286
45287
|
s50.setMod("mode", "library"), t48.append(s50), this.j.e.on(s50.container, "click", () => {
|
|
45287
|
-
const { text:
|
|
45288
|
-
Object.assign(this.state,
|
|
45288
|
+
const { text: o57 } = this.state;
|
|
45289
|
+
Object.assign(this.state, r59), Object.assign(this.state, { className: "", text: o57 }), this.update();
|
|
45289
45290
|
});
|
|
45290
45291
|
});
|
|
45291
45292
|
const e42 = this.getElm("library");
|
|
45292
45293
|
assert(e42 != null, "library element does not exists"), e42.appendChild(t48.container);
|
|
45293
45294
|
}
|
|
45294
|
-
static mapKey(t48) {
|
|
45295
|
-
return { bgEnd: t48.be, bgStart: t48.bs, borderColor: t48.bc, borderRadius: t48.br, borderSize: t48.bse, boxShadow: t48.bsh, boxShadowBlurRadius: t48.bsbr, boxShadowColor: t48.bsc, boxShadowInset: t48.bsi, boxShadowOffsetX: t48.bsox, boxShadowOffsetY: t48.bsoy, boxShadowSpreadRadius: t48.bssr, fontColor: t48.fc, fontFamily: t48.ff, fontSize: t48.fs, fontStyle: t48.fse, fontWeight: t48.fw, paddingX: t48.px, paddingY: t48.py, previewBgColor: t48.pbc, solid: t48.s, text: t48.t, textShadow: t48.ts, textShadowBlurRadius: t48.tsbr, textShadowColor: t48.tsc, textShadowOffsetX: t48.tsox, textShadowOffsetY: t48.tsoy };
|
|
45295
|
+
static mapKey(t48, e42) {
|
|
45296
|
+
return { bgEnd: t48.be, bgStart: t48.bs, borderColor: t48.bc, borderRadius: t48.br, borderSize: t48.bse, boxShadow: t48.bsh, boxShadowBlurRadius: t48.bsbr, boxShadowColor: t48.bsc, boxShadowInset: t48.bsi, boxShadowOffsetX: t48.bsox, boxShadowOffsetY: t48.bsoy, boxShadowSpreadRadius: t48.bssr, fontColor: t48.fc, fontFamily: t48.ff, fontSize: t48.fs, fontStyle: t48.fse, fontWeight: t48.fw, paddingX: t48.px, paddingY: t48.py, previewBgColor: t48.pbc, solid: t48.s, text: isString(t48.t) ? e42.i18n(t48.t) : t48.t, textShadow: t48.ts, textShadowBlurRadius: t48.tsbr, textShadowColor: t48.tsc, textShadowOffsetX: t48.tsox, textShadowOffsetY: t48.tsoy };
|
|
45296
45297
|
}
|
|
45297
45298
|
updateState(t48, e42) {
|
|
45298
45299
|
this.state[t48] = e42, this.update();
|
|
@@ -45377,8 +45378,8 @@ var p33 = class p34 extends Plugin {
|
|
|
45377
45378
|
r59 && r59.parentElement && this.applyCase(t48, r59.parentElement), s50.setStart(g24, h60), e42.s.selectRange(s50);
|
|
45378
45379
|
} else {
|
|
45379
45380
|
const r59 = s50.cloneRange(), u58 = s50.cloneRange(), o57 = e42.createInside.fake(), c74 = e42.createInside.fake();
|
|
45380
|
-
r59.collapse(true), u58.collapse(false), r59.insertNode(o57), u58.insertNode(c74), Dom.between(o57, c74, (
|
|
45381
|
-
this.applyCase(t48,
|
|
45381
|
+
r59.collapse(true), u58.collapse(false), r59.insertNode(o57), u58.insertNode(c74), Dom.between(o57, c74, (C14) => {
|
|
45382
|
+
this.applyCase(t48, C14);
|
|
45382
45383
|
}), s50.setStartAfter(o57), s50.setEndBefore(c74), e42.s.selectRange(s50), Dom.safeRemove(o57), Dom.safeRemove(c74);
|
|
45383
45384
|
}
|
|
45384
45385
|
}, "exec") });
|
|
@@ -45444,8 +45445,8 @@ f24.requires = ["license"], m21([autobind], f24.prototype, "onAfterGenerateColor
|
|
|
45444
45445
|
init_decorators();
|
|
45445
45446
|
init_dom();
|
|
45446
45447
|
init_helpers();
|
|
45447
|
-
var
|
|
45448
|
-
var v13 = (u58, t48) =>
|
|
45448
|
+
var C5 = Object.defineProperty;
|
|
45449
|
+
var v13 = (u58, t48) => C5(u58, "name", { value: t48, configurable: true });
|
|
45449
45450
|
var h28;
|
|
45450
45451
|
var r37 = function(u58, t48, i54, e42) {
|
|
45451
45452
|
var o57 = arguments.length, s50 = o57 < 3 ? t48 : e42 === null ? e42 = Object.getOwnPropertyDescriptor(t48, i54) : e42, a77;
|
|
@@ -45493,7 +45494,7 @@ var l29 = c25 = (h28 = class extends UIElement {
|
|
|
45493
45494
|
this.activeIndex = t48;
|
|
45494
45495
|
}
|
|
45495
45496
|
generateCategoriesList(t48) {
|
|
45496
|
-
return t48.map((i54, e42) => this.j.c.div(this.getFullElName("category"), { "data-index": e42, title: i54, style: { width: 100 / t48.length + "%" } }));
|
|
45497
|
+
return t48.map((i54, e42) => this.j.c.div(this.getFullElName("category"), { "data-index": e42, title: this.j.i18n(i54), style: { width: 100 / t48.length + "%" } }));
|
|
45497
45498
|
}
|
|
45498
45499
|
generateEmojiList(t48, i54) {
|
|
45499
45500
|
let e42 = "";
|
|
@@ -46711,8 +46712,8 @@ init_position();
|
|
|
46711
46712
|
// node_modules/jodit-pro/esm/traits/select-items/select-items.js
|
|
46712
46713
|
init_dom();
|
|
46713
46714
|
init_css();
|
|
46714
|
-
var
|
|
46715
|
-
var e22 = (d53, t48) =>
|
|
46715
|
+
var j5 = Object.defineProperty;
|
|
46716
|
+
var e22 = (d53, t48) => j5(d53, "name", { value: t48, configurable: true });
|
|
46716
46717
|
var n38 = class n39 {
|
|
46717
46718
|
static remove(t48) {
|
|
46718
46719
|
Dom.safeRemove(t48.container.querySelector(".jodit-ui-select-items")), t48.j.e.off(t48.container, "mousedown.uiselectitems touchstart.uiselectitems");
|
|
@@ -47236,13 +47237,13 @@ Config.prototype.controls.gm = { hand: o41("hand"), marker: o41("marker"), polyl
|
|
|
47236
47237
|
var c37 = '<svg viewBox="0 0 83 84" fill="none" xmlns="http://www.w3.org/2000/svg"> <circle cx="40" cy="44" r="37" stroke="black" stroke-width="6"/> <path d="M40 4V44H79" stroke="black" stroke-width="5"/> <circle cx="40" cy="6" r="6" fill="#C8C8C8"/> <circle cx="40" cy="43" r="6" fill="#C8C8C8"/> <circle cx="77" cy="44" r="6" fill="#C8C8C8"/> </svg> ';
|
|
47237
47238
|
|
|
47238
47239
|
// node_modules/jodit-pro/esm/plugins/google-maps/assets/hand.svg.js
|
|
47239
|
-
var
|
|
47240
|
+
var C6 = '<svg viewBox="0 0 76 76" xmlns="http://www.w3.org/2000/svg"> <path d="M38 6.90909C36.2517 6.90909 34.7591 7.58381 33.5221 8.93324C32.2852 10.2827 31.6667 11.911 31.6667 13.8182V20.7273H30.0833V15.7074C30.0833 13.9801 29.5556 12.5137 28.5 11.3082C27.4444 10.1027 26.125 9.5 24.5417 9.5C23.0243 9.5 21.7214 10.0938 20.6328 11.2813C19.5443 12.4688 19 13.8902 19 15.5455V38.7017L17.4167 37.0824V27.7983C17.4167 26.071 16.8889 24.6046 15.8333 23.3991C14.7778 22.1937 13.4583 21.5909 11.875 21.5909C10.3576 21.5909 9.05469 22.1847 7.96615 23.3722C6.8776 24.5597 6.33333 25.9811 6.33333 27.6364V39.7273C6.33333 41.4186 6.91059 42.8939 8.0651 44.1534L23.4036 60.1307C24.6901 61.5341 25.3333 63.3693 25.3333 65.6364C25.3333 66.572 25.6467 67.3816 26.2734 68.0653C26.9002 68.7491 27.6424 69.0909 28.5 69.0909H60.1667C61.0243 69.0909 61.7665 68.7491 62.3932 68.0653C63.02 67.3816 63.3333 66.572 63.3333 65.6364V64.2869C63.3333 62.8116 63.4983 61.4261 63.8281 60.1307L69.1719 36.5966C69.5017 35.3011 69.6667 33.9157 69.6667 32.4403V19.1619C69.6667 17.4347 69.1389 15.9683 68.0833 14.7628C67.0278 13.5573 65.7083 12.9545 64.125 12.9545C62.6076 12.9545 61.3047 13.5483 60.2161 14.7358C59.1276 15.9233 58.5833 17.3447 58.5833 19V20.7273H57V13.9801C57 12.5407 56.5877 11.2363 55.763 10.0668C54.9384 8.89725 53.8828 8.16856 52.5964 7.88068C52.1345 7.80871 51.7552 7.77273 51.4583 7.77273C49.941 7.77273 48.638 8.36648 47.5495 9.55398C46.4609 10.7415 45.9167 12.1629 45.9167 13.8182V20.7273H44.3333V14.142C44.3333 12.3068 43.7973 10.6965 42.7253 9.31108C41.6532 7.92566 40.2925 7.14299 38.6432 6.96307C38.4783 6.92708 38.2639 6.90909 38 6.90909ZM38 0C40.7708 0 43.2283 0.899621 45.3724 2.69886C47.2526 1.47538 49.2813 0.863636 51.4583 0.863636C53.4045 0.863636 55.2352 1.34943 56.9505 2.32102C58.6658 3.29261 60.0842 4.66004 61.2057 6.4233C62.0964 6.1714 63.0694 6.04545 64.125 6.04545C67.4236 6.04545 70.2274 7.33191 72.5365 9.90483C74.8455 12.4777 76 15.5634 76 19.1619V32.4403C76 34.2756 75.7856 36.2188 75.3568 38.2699L69.9635 61.804C69.7656 62.6676 69.6667 63.9451 69.6667 65.6364C69.6667 68.5152 68.7431 70.9621 66.8958 72.9773C65.0486 74.9924 62.8056 76 60.1667 76H28.5C25.7292 76 23.4531 74.9474 21.6719 72.8423C19.8906 70.7372 19 68.1733 19 65.1506L3.76042 49.1733C1.25347 46.5464 0 43.3977 0 39.7273V27.6364C0 24.0739 1.16276 21.0241 3.48828 18.4872C5.8138 15.9503 8.60938 14.6818 11.875 14.6818C12.2378 14.6818 12.5017 14.6998 12.6667 14.7358C12.8646 11.3172 14.1098 8.43845 16.4023 6.09943C18.6949 3.76042 21.408 2.59091 24.5417 2.59091C26.2569 2.59091 27.8733 2.96875 29.3906 3.72443C31.7656 1.24148 34.6354 0 38 0Z"/> </svg> ';
|
|
47240
47241
|
|
|
47241
47242
|
// node_modules/jodit-pro/esm/plugins/google-maps/assets/icon.svg.js
|
|
47242
47243
|
var c38 = '<svg viewBox="0 0 32 32" xmlns="http://www.w3.org/2000/svg"> <g> <path d="M23,13.6l5,5V4c0-0.6-0.4-1-1-1h-4V13.6z"/> <polygon points="12.4,3 16.7,7.3 19.7,10.3 21,11.6 21,3"/> <path d="M14.6,8l-5-5H5C4.4,3,4,3.4,4,4v14.6L14.6,8z"/> </g> <path d="M28.8,29.2L26,26.4c0.7-1,1-2.1,1-3.4c0-3.3-2.7-6-6-6s-6,2.7-6,6s2.7,6,6,6c1.2,0,2.4-0.4,3.4-1l2.8,2.8 c0.4,0.4,1.2,0.4,1.6,0C29.2,30.4,29.2,29.6,28.8,29.2z"/> <path d="M13,23c0-4.4,3.6-8,8-8c0.2,0,0.4,0,0.6,0l-0.3-0.3c0,0,0,0,0,0l-3-3L16,9.4l-12,12V26c0,0.6,0.4,1,1,1h9.1 C13.4,25.8,13,24.5,13,23z"/> </svg> ';
|
|
47243
47244
|
|
|
47244
47245
|
// node_modules/jodit-pro/esm/plugins/google-maps/assets/marker.svg.js
|
|
47245
|
-
var
|
|
47246
|
+
var C7 = '<svg viewBox="0 0 88 88" fill="none" xmlns="http://www.w3.org/2000/svg"> <g> <path d="M44 0.513519C27.2931 0.513519 13.75 13.8981 13.75 30.4095C13.75 46.9208 44 87.4835 44 87.4835C44 87.4835 74.25 46.9208 74.25 30.4095C74.25 13.8981 60.7069 0.513519 44 0.513519ZM19.25 30.4095C19.25 16.921 30.3518 5.94914 44 5.94914C57.6482 5.94914 68.75 16.921 68.75 30.4095C68.75 39.8049 54.9945 62.4871 44 78.1329C33.0055 62.4871 19.25 39.8049 19.25 30.4095ZM44 16.8204C36.4052 16.8204 30.25 22.9035 30.25 30.4095C30.25 37.9154 36.4052 43.9985 44 43.9985C51.5948 43.9985 57.75 37.9154 57.75 30.4095C57.75 22.9035 51.5948 16.8204 44 16.8204ZM44 38.5629C39.4508 38.5629 35.75 34.9054 35.75 30.4095C35.75 25.9135 39.4508 22.256 44 22.256C48.5492 22.256 52.25 25.9135 52.25 30.4095C52.25 34.9054 48.5492 38.5629 44 38.5629Z" fill="#404040"/> </g> <defs> <rect width="88" height="86.97" fill="white" transform="translate(0 0.513519)"/> </defs> </svg> ';
|
|
47246
47247
|
|
|
47247
47248
|
// node_modules/jodit-pro/esm/plugins/google-maps/assets/polygon.svg.js
|
|
47248
47249
|
var c39 = '<svg viewBox="0 0 77 86" fill="none" xmlns="http://www.w3.org/2000/svg"> <path d="M7 38.6056L33.1367 7.96263L69.5477 45.7058L36.2444 72.166L7 76.9673V38.6056Z" stroke="black" stroke-width="6"/> <circle cx="71" cy="45" r="6" fill="#C8C8C8"/> <circle cx="35" cy="73" r="6" fill="#C8C8C8"/> <circle cx="6" cy="79" r="6" fill="#C8C8C8"/> <circle cx="6" cy="39" r="6" fill="#C8C8C8"/> <circle cx="33" cy="6" r="6" fill="#C8C8C8"/> </svg> ';
|
|
@@ -47254,7 +47255,7 @@ var c40 = '<svg width="72" height="86" viewBox="0 0 72 86" fill="none" xmlns="ht
|
|
|
47254
47255
|
var l44 = '<svg viewBox="0 0 47 61" fill="none" xmlns="http://www.w3.org/2000/svg"> <path d="M46.7671 7.12793H27.3433V61H19.416V7.12793H0.0336914V0.570312H46.7671V7.12793Z" fill="black"/> </svg> ';
|
|
47255
47256
|
|
|
47256
47257
|
// node_modules/jodit-pro/esm/plugins/google-maps/assets/index.js
|
|
47257
|
-
Icon.set("map", c38).set("edit-hand",
|
|
47258
|
+
Icon.set("map", c38).set("edit-hand", C6).set("edit-polygon", c39).set("edit-marker", C7).set("edit-text", l44).set("edit-polyline", c40).set("edit-circle", c37);
|
|
47258
47259
|
|
|
47259
47260
|
// node_modules/jodit-pro/esm/plugins/google-maps/helpers/generate-js-script.js
|
|
47260
47261
|
init_ucfirst();
|
|
@@ -47995,8 +47996,8 @@ init_constants();
|
|
|
47995
47996
|
init_decorators();
|
|
47996
47997
|
init_helpers();
|
|
47997
47998
|
init_plugin2();
|
|
47998
|
-
var
|
|
47999
|
-
var u49 = (d53, e42) =>
|
|
47999
|
+
var C8 = Object.defineProperty;
|
|
48000
|
+
var u49 = (d53, e42) => C8(d53, "name", { value: e42, configurable: true });
|
|
48000
48001
|
var h42 = function(d53, e42, s50, t48) {
|
|
48001
48002
|
var i54 = arguments.length, r59 = i54 < 3 ? e42 : t48 === null ? t48 = Object.getOwnPropertyDescriptor(e42, s50) : t48, c74;
|
|
48002
48003
|
if (typeof Reflect == "object" && typeof Reflect.decorate == "function") r59 = Reflect.decorate(d53, e42, s50, t48);
|
|
@@ -48104,7 +48105,7 @@ var g17 = y6;
|
|
|
48104
48105
|
g17.requires = ["license", "color-picker"], h42([watch("?:openOnDblClick")], g17.prototype, "onOpenOnDblClick", null), h42([watch(":beforeSetNativeEditorValue")], g17.prototype, "onBeforeSetNativeEditorValue", null), h42([watch(":afterGetValueFromEditor")], g17.prototype, "onAfterGetValueFromEditor", null), n11.plugins.add("google-maps", g17);
|
|
48105
48106
|
|
|
48106
48107
|
// node_modules/jodit-pro/esm/plugins/google-search/icon.svg.js
|
|
48107
|
-
var
|
|
48108
|
+
var C9 = '<svg width="11" height="15" viewBox="0 0 11 15" fill="none" xmlns="http://www.w3.org/2000/svg"> <path d="M10.925 7.122V14H9.747L9.462 13.164C9.044 13.4933 8.55 13.7467 7.98 13.924C7.42267 14.1013 6.82733 14.19 6.194 14.19C5.054 14.19 4.066 13.9177 3.23 13.373C2.394 12.8157 1.75433 12.024 1.311 10.998C0.867667 9.972 0.646 8.756 0.646 7.35C0.646 5.96933 0.880333 4.766 1.349 3.74C1.83033 2.714 2.50167 1.92233 3.363 1.365C4.237 0.794999 5.25667 0.509999 6.422 0.509999C7.41 0.509999 8.284 0.693666 9.044 1.061C9.804 1.42833 10.3613 1.935 10.716 2.581L9.747 3.55C9.41767 3.03067 8.968 2.638 8.398 2.372C7.84067 2.09333 7.18833 1.954 6.441 1.954C5.17433 1.954 4.18633 2.429 3.477 3.379C2.76767 4.329 2.413 5.65267 2.413 7.35C2.413 9.07267 2.755 10.4153 3.439 11.378C4.13567 12.3407 5.10467 12.822 6.346 12.822C6.92867 12.822 7.46067 12.7397 7.942 12.575C8.436 12.4103 8.854 12.1697 9.196 11.853V8.414H6.023V7.122H10.925Z" fill="black"/> </svg> ';
|
|
48108
48109
|
|
|
48109
48110
|
// node_modules/jodit-pro/esm/plugins/google-search/google-search.js
|
|
48110
48111
|
init_config();
|
|
@@ -48112,7 +48113,7 @@ init_helpers();
|
|
|
48112
48113
|
init_plugin2();
|
|
48113
48114
|
var d45 = Object.defineProperty;
|
|
48114
48115
|
var m38 = (e42, o57) => d45(e42, "name", { value: o57, configurable: true });
|
|
48115
|
-
Config.prototype.controls.google = { tooltip: "Google search", icon:
|
|
48116
|
+
Config.prototype.controls.google = { tooltip: "Google search", icon: C9, isDisabled(e42) {
|
|
48116
48117
|
return isEditorEmpty(e42.editor);
|
|
48117
48118
|
}, command: "startSearch" };
|
|
48118
48119
|
var c50 = class c51 extends Plugin {
|
|
@@ -48146,8 +48147,8 @@ init_decorators();
|
|
|
48146
48147
|
init_dom();
|
|
48147
48148
|
init_attr();
|
|
48148
48149
|
init_plugin();
|
|
48149
|
-
var
|
|
48150
|
-
var d46 = (c74, e42) =>
|
|
48150
|
+
var j6 = Object.defineProperty;
|
|
48151
|
+
var d46 = (c74, e42) => j6(c74, "name", { value: e42, configurable: true });
|
|
48151
48152
|
var g18 = function(c74, e42, t48, r59) {
|
|
48152
48153
|
var i54 = arguments.length, o57 = i54 < 3 ? e42 : r59 === null ? r59 = Object.getOwnPropertyDescriptor(e42, t48) : r59, n57;
|
|
48153
48154
|
if (typeof Reflect == "object" && typeof Reflect.decorate == "function") o57 = Reflect.decorate(c74, e42, t48, r59);
|
|
@@ -50916,7 +50917,7 @@ init_config();
|
|
|
50916
50917
|
init_component3();
|
|
50917
50918
|
var T3 = Object.defineProperty;
|
|
50918
50919
|
var h46 = (P4, n57) => T3(P4, "name", { value: n57, configurable: true });
|
|
50919
|
-
var
|
|
50920
|
+
var j7 = class j8 extends ViewComponent {
|
|
50920
50921
|
constructor() {
|
|
50921
50922
|
super(...arguments), this.isProImageEditor = true;
|
|
50922
50923
|
}
|
|
@@ -50965,8 +50966,8 @@ var j8 = class j9 extends ViewComponent {
|
|
|
50965
50966
|
const z2 = g24(a77.container, p63.container, f50.container);
|
|
50966
50967
|
z2.style.marginLeft = "auto", m54.appendChild(z2), n57.setHeader(m54);
|
|
50967
50968
|
const x9 = "jodit-image-editor-pro__button_busy", _12 = h46((d53) => {
|
|
50968
|
-
const u58 = selectors.selectOutputSize(d53), b17 = d53.status === "exporting",
|
|
50969
|
-
b17 || (y9 = null), s50.setState({ disabled: !d53.source ||
|
|
50969
|
+
const u58 = selectors.selectOutputSize(d53), b17 = d53.status === "exporting", C14 = b17 || d53.status === "loading", S8 = d53.busyVisible, E4 = b17 && (S8 != null ? S8 : true);
|
|
50970
|
+
b17 || (y9 = null), s50.setState({ disabled: !d53.source || C14 }), i54.setState({ disabled: !d53.source || C14 }), s50.container.classList.toggle(x9, E4 && y9 !== i54), i54.container.classList.toggle(x9, E4 && y9 === i54), a77.setState({ disabled: !selectors.selectIsDirty(d53) }), p63.setState({ disabled: !selectors.selectCanUndo(d53) }), f50.setState({ disabled: !selectors.selectCanRedo(d53) }), r59.textContent = u58 ? `${u58.width} \xD7 ${u58.height}` : "";
|
|
50970
50971
|
const A4 = selectors.selectViewportFit(d53), V = Math.round(A4 ? A4.scale * 100 : d53.zoom * 100);
|
|
50971
50972
|
c74.textContent = `${V}%`;
|
|
50972
50973
|
}, "sync");
|
|
@@ -51053,8 +51054,8 @@ var j8 = class j9 extends ViewComponent {
|
|
|
51053
51054
|
this.j.e.fire("errorMessage", n57.message);
|
|
51054
51055
|
}
|
|
51055
51056
|
};
|
|
51056
|
-
h46(
|
|
51057
|
-
var $4 =
|
|
51057
|
+
h46(j7, "ProImageEditor");
|
|
51058
|
+
var $4 = j7;
|
|
51058
51059
|
|
|
51059
51060
|
// node_modules/jodit-pro/esm/plugins/image-editor-pro/image-editor-pro.js
|
|
51060
51061
|
init_plugin2();
|
|
@@ -51447,7 +51448,7 @@ var S6 = h50((d53) => {
|
|
|
51447
51448
|
var mobile_view_default = S6();
|
|
51448
51449
|
|
|
51449
51450
|
// node_modules/jodit-pro/esm/plugins/page-break/assets/page-break.svg.js
|
|
51450
|
-
var
|
|
51451
|
+
var C10 = '<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"> <path d="M2.5 12C2.5 11.5858 2.83579 11.25 3.25 11.25H4.75C5.16421 11.25 5.5 11.5858 5.5 12C5.5 12.4142 5.16421 12.75 4.75 12.75H3.25C2.83579 12.75 2.5 12.4142 2.5 12Z"/> <path d="M6.5 12C6.5 11.5858 6.83579 11.25 7.25 11.25H8.75C9.16421 11.25 9.5 11.5858 9.5 12C9.5 12.4142 9.16421 12.75 8.75 12.75H7.25C6.83579 12.75 6.5 12.4142 6.5 12Z" /> <path d="M10.5 12C10.5 11.5858 10.8358 11.25 11.25 11.25H12.75C13.1642 11.25 13.5 11.5858 13.5 12C13.5 12.4142 13.1642 12.75 12.75 12.75H11.25C10.8358 12.75 10.5 12.4142 10.5 12Z" /> <path d="M14.5 12C14.5 11.5858 14.8358 11.25 15.25 11.25H16.75C17.1642 11.25 17.5 11.5858 17.5 12C17.5 12.4142 17.1642 12.75 16.75 12.75H15.25C14.8358 12.75 14.5 12.4142 14.5 12Z" /> <path d="M18.5 12C18.5 11.5858 18.8358 11.25 19.25 11.25H20.75C21.1642 11.25 21.5 11.5858 21.5 12C21.5 12.4142 21.1642 12.75 20.75 12.75H19.25C18.8358 12.75 18.5 12.4142 18.5 12Z" /> <path d="M4.75 2C4.33579 2 4 2.33579 4 2.75V7C4 8.104 4.896 9 6 9H18C19.104 9 20 8.104 20 7V2.75C20 2.33579 19.6642 2 19.25 2C18.8358 2 18.5 2.33579 18.5 2.75V7C18.5 7.275 18.276 7.5 18 7.5H6C5.724 7.5 5.5 7.275 5.5 7V2.75C5.5 2.33579 5.16421 2 4.75 2Z" /> <path d="M19.25 22C19.6642 22 20 21.6642 20 21.25V17C20 15.896 19.104 15 18 15L6 15C4.896 15 4 15.896 4 17L4 21.25C4 21.6642 4.33579 22 4.75 22C5.16421 22 5.5 21.6642 5.5 21.25L5.5 17C5.5 16.725 5.724 16.5 6 16.5L18 16.5C18.276 16.5 18.5 16.725 18.5 17V21.25C18.5 21.6642 18.8358 22 19.25 22Z" /> </svg> ';
|
|
51451
51452
|
|
|
51452
51453
|
// node_modules/jodit-pro/esm/plugins/page-break/page-break.css.js
|
|
51453
51454
|
var e26 = `[data-jodit-page-break] {
|
|
@@ -51471,7 +51472,7 @@ var e26 = `[data-jodit-page-break] {
|
|
|
51471
51472
|
|
|
51472
51473
|
// node_modules/jodit-pro/esm/plugins/page-break/config.js
|
|
51473
51474
|
init_config();
|
|
51474
|
-
Config.prototype.pageBreak = { separator: '<div style="page-break-before: always"></div>' }, Config.prototype.controls.pageBreak = { tooltip: "Insert page break", icon:
|
|
51475
|
+
Config.prototype.pageBreak = { separator: '<div style="page-break-before: always"></div>' }, Config.prototype.controls.pageBreak = { tooltip: "Insert page break", icon: C10, command: "insertPageBreak" }, Config.prototype.iframeStyle = `${Config.prototype.iframeStyle};${e26.replace(/[\n\t]/g, "")}`;
|
|
51475
51476
|
|
|
51476
51477
|
// node_modules/jodit-pro/esm/plugins/page-break/page-break.js
|
|
51477
51478
|
init_decorators();
|
|
@@ -51529,7 +51530,7 @@ function f41(e42) {
|
|
|
51529
51530
|
return e42.firstElementChild === e42.lastElementChild && Dom.isTag(e42.firstElementChild, "code") ? e42.firstElementChild : e42;
|
|
51530
51531
|
}
|
|
51531
51532
|
i48(f41, "codeContainer");
|
|
51532
|
-
function
|
|
51533
|
+
function C11(e42, t48) {
|
|
51533
51534
|
let n57 = null;
|
|
51534
51535
|
const o57 = i48((c74) => c74.classList.forEach((s50) => {
|
|
51535
51536
|
const l57 = /^language-(.+)/.exec(s50);
|
|
@@ -51539,7 +51540,7 @@ function C10(e42, t48) {
|
|
|
51539
51540
|
const a77 = f41(t48);
|
|
51540
51541
|
return n57 == null && a77 !== t48 && o57(a77), e42.o.pasteCode.canonicalLanguageCode(n57 || "html");
|
|
51541
51542
|
}
|
|
51542
|
-
i48(
|
|
51543
|
+
i48(C11, "parseLanguage");
|
|
51543
51544
|
function h51(e42, t48) {
|
|
51544
51545
|
const n57 = e42.o.pasteCode.languages.find((o57) => String(o57.value) === t48);
|
|
51545
51546
|
return e42.i18n(String(n57 ? n57.text : t48));
|
|
@@ -51616,7 +51617,7 @@ var r52 = function(p63, t48, e42, i54) {
|
|
|
51616
51617
|
else for (var d53 = p63.length - 1; d53 >= 0; d53--) (u58 = p63[d53]) && (n57 = (o57 < 3 ? u58(n57) : o57 > 3 ? u58(t48, e42, n57) : u58(t48, e42)) || n57);
|
|
51617
51618
|
return o57 > 3 && n57 && Object.defineProperty(t48, e42, n57), n57;
|
|
51618
51619
|
};
|
|
51619
|
-
var
|
|
51620
|
+
var C12 = 16;
|
|
51620
51621
|
var v19 = 6;
|
|
51621
51622
|
var s44 = (l51 = class extends UIElement {
|
|
51622
51623
|
constructor() {
|
|
@@ -51655,7 +51656,7 @@ var s44 = (l51 = class extends UIElement {
|
|
|
51655
51656
|
}
|
|
51656
51657
|
__inActiveZone(t48, e42) {
|
|
51657
51658
|
const i54 = position(this.currentBlock, this.j);
|
|
51658
|
-
return t48 >= i54.left -
|
|
51659
|
+
return t48 >= i54.left - C12 - v19 - 6 && t48 <= i54.left + i54.width && e42 >= i54.top - 6 && e42 <= i54.top + i54.height + 6;
|
|
51659
51660
|
}
|
|
51660
51661
|
__scheduleHide() {
|
|
51661
51662
|
this.__hideTimer || (this.__hideTimer = this.j.async.setTimeout(() => {
|
|
@@ -51679,7 +51680,7 @@ var s44 = (l51 = class extends UIElement {
|
|
|
51679
51680
|
}
|
|
51680
51681
|
calcPosition() {
|
|
51681
51682
|
const t48 = position(this.currentBlock, this.j);
|
|
51682
|
-
css(this.container, { left: Math.round(t48.left -
|
|
51683
|
+
css(this.container, { left: Math.round(t48.left - C12 - v19), top: Math.round(t48.top + 4) }), this.popup.isOpened && this.popup.updatePosition();
|
|
51683
51684
|
}
|
|
51684
51685
|
openToolbar() {
|
|
51685
51686
|
this.toolbar.build([this.__languageControl(), ...this.j.o.pasteCode.popup], this.currentBlock), this.popup.setContent(this.toolbar.container), this.popup.isOpened ? this.popup.updatePosition() : this.popup.open(() => position(this.currentBlock, this.j));
|
|
@@ -51688,9 +51689,9 @@ var s44 = (l51 = class extends UIElement {
|
|
|
51688
51689
|
const t48 = {};
|
|
51689
51690
|
return this.j.o.pasteCode.languages.forEach((e42) => {
|
|
51690
51691
|
t48[String(e42.value)] = String(e42.text);
|
|
51691
|
-
}), { name: "language", list: t48, tooltip: "Language", text: h51(this.j,
|
|
51692
|
+
}), { name: "language", list: t48, tooltip: "Language", text: h51(this.j, C11(this.j, this.currentBlock)), childTemplate: a67((e42, i54, o57) => this.j.i18n(o57), "childTemplate"), update: a67((e42, i54) => {
|
|
51692
51693
|
const o57 = i54.target;
|
|
51693
|
-
Dom.isTag(o57, "pre") && i54.setState({ text: h51(this.j,
|
|
51694
|
+
Dom.isTag(o57, "pre") && i54.setState({ text: h51(this.j, C11(this.j, o57)), icon: { name: "" } });
|
|
51694
51695
|
}, "update"), childExec: a67((e42, i54, { control: o57 }) => {
|
|
51695
51696
|
const n57 = String(o57.args && o57.args[0] || "plaintext");
|
|
51696
51697
|
Dom.isTag(i54, "pre") && (m46(this.j, i54, n57), this.j.e.fire("hideCodeTuner.pasteCode"));
|
|
@@ -51797,7 +51798,7 @@ var l52 = (u53 = class extends Plugin {
|
|
|
51797
51798
|
}
|
|
51798
51799
|
}
|
|
51799
51800
|
__parseLanguage(e42) {
|
|
51800
|
-
return
|
|
51801
|
+
return C11(this.jodit, e42);
|
|
51801
51802
|
}
|
|
51802
51803
|
onAfterGetValueFromEditor(e42) {
|
|
51803
51804
|
const t48 = _9((o57, i54, a77, s50, n57, c74) => `${i54.trim()}${s50}${htmlspecialchars(stripTags(n57, this.j.ed, /* @__PURE__ */ new Set(["br"])))}${c74}`, "strip");
|
|
@@ -52151,9 +52152,9 @@ init_attr();
|
|
|
52151
52152
|
var h55 = Object.defineProperty;
|
|
52152
52153
|
var f45 = (t48, o57) => h55(t48, "name", { value: o57, configurable: true });
|
|
52153
52154
|
var n52 = "jodit-style-popup";
|
|
52154
|
-
function
|
|
52155
|
+
function j9(t48, o57, v22) {
|
|
52155
52156
|
var s50, a77;
|
|
52156
|
-
const m54 = r55(o57),
|
|
52157
|
+
const m54 = r55(o57), C14 = h54(t48, o57), i54 = t48.c.div(n52);
|
|
52157
52158
|
for (const p63 of m54) {
|
|
52158
52159
|
const r59 = t48.c.div(`${n52}__group-title`);
|
|
52159
52160
|
r59.textContent = t48.i18n(p63.title), i54.appendChild(r59);
|
|
@@ -52161,7 +52162,7 @@ function j10(t48, o57, v22) {
|
|
|
52161
52162
|
for (const e42 of p63.definitions) {
|
|
52162
52163
|
const c74 = t48.c.element("button");
|
|
52163
52164
|
c74.type = "button";
|
|
52164
|
-
const b17 =
|
|
52165
|
+
const b17 = C14 === e42;
|
|
52165
52166
|
c74.className = `${n52}__card` + (b17 ? ` ${n52}__card_active_true` : "");
|
|
52166
52167
|
const u58 = t48.c.div(`${n52}__card-preview`), l57 = t48.c.element(e42.element);
|
|
52167
52168
|
if (e42.attributes) attr(l57, e42.attributes);
|
|
@@ -52176,7 +52177,7 @@ function j10(t48, o57, v22) {
|
|
|
52176
52177
|
}
|
|
52177
52178
|
return i54;
|
|
52178
52179
|
}
|
|
52179
|
-
f45(
|
|
52180
|
+
f45(j9, "buildStylePopup");
|
|
52180
52181
|
|
|
52181
52182
|
// node_modules/jodit-pro/esm/plugins/style/icon.svg.js
|
|
52182
52183
|
var t43 = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24" stroke="currentColor" stroke-width="1.5"> <rect x="2" y="3.5" width="9" height="9" rx="1.5" fill="none"/> <rect x="2" y="14.5" width="9" height="9" rx="1.5" fill="none"/> <rect x="13" y="14.5" width="9" height="9" rx="1.5" fill="none"/> <rect x="13" y="3.5" width="9" height="9" rx="1.5" fill="currentColor" transform="rotate(45 17.5 8)"/> </svg> ';
|
|
@@ -52200,7 +52201,7 @@ Config.prototype.customStyles = { definitions: [] }, Config.prototype.controls.s
|
|
|
52200
52201
|
const o57 = t48.o.customStyles.definitions;
|
|
52201
52202
|
if (!o57.length) return false;
|
|
52202
52203
|
t48.s.current() || t48.s.focus(), t48.s.save();
|
|
52203
|
-
const n57 =
|
|
52204
|
+
const n57 = j9(t48, o57, () => {
|
|
52204
52205
|
t48.s.restore(), s50();
|
|
52205
52206
|
});
|
|
52206
52207
|
return t48.e.one("beforePopupClose", () => {
|
|
@@ -52229,7 +52230,7 @@ t44.requires = ["license"], n11.plugins.add("style", t44);
|
|
|
52229
52230
|
var m49 = Object.defineProperty;
|
|
52230
52231
|
var r56 = (n57, p63) => m49(n57, "name", { value: p63, configurable: true });
|
|
52231
52232
|
var t45 = "jodit-templates-popup";
|
|
52232
|
-
function
|
|
52233
|
+
function C13(n57, p63, _12) {
|
|
52233
52234
|
const l57 = n57.c.div(t45);
|
|
52234
52235
|
for (const e42 of p63) {
|
|
52235
52236
|
const c74 = n57.c.element("button");
|
|
@@ -52252,7 +52253,7 @@ function C12(n57, p63, _12) {
|
|
|
52252
52253
|
}
|
|
52253
52254
|
return l57;
|
|
52254
52255
|
}
|
|
52255
|
-
r56(
|
|
52256
|
+
r56(C13, "buildTemplatesPopup");
|
|
52256
52257
|
|
|
52257
52258
|
// node_modules/jodit-pro/esm/plugins/templates/icon.svg.js
|
|
52258
52259
|
var t46 = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24" stroke="currentColor" stroke-width="1.5"> <rect x="2" y="2" width="20" height="9" rx="1.5" fill="none"/> <rect x="2" y="14" width="9" height="8" rx="1.5" fill="none"/> <rect x="13" y="14" width="9" height="8" rx="1.5" fill="currentColor"/> </svg> ';
|
|
@@ -52267,7 +52268,7 @@ Config.prototype.contentTemplates = { definitions: [] }, Config.prototype.contro
|
|
|
52267
52268
|
const t48 = e42.o.contentTemplates.definitions;
|
|
52268
52269
|
if (!t48.length) return false;
|
|
52269
52270
|
e42.s.current() || e42.s.focus(), e42.s.save();
|
|
52270
|
-
const s50 =
|
|
52271
|
+
const s50 = C13(e42, t48, () => {
|
|
52271
52272
|
e42.s.restore(), n57();
|
|
52272
52273
|
});
|
|
52273
52274
|
return e42.e.one("beforePopupClose", () => {
|