jodit-pro-react 5.5.12 → 5.5.13
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.
|
@@ -78,6 +78,17 @@ var __await = function(promise, isYieldStar) {
|
|
|
78
78
|
this[0] = promise;
|
|
79
79
|
this[1] = isYieldStar;
|
|
80
80
|
};
|
|
81
|
+
var __asyncGenerator = (__this, __arguments, generator) => {
|
|
82
|
+
var resume = (k5, v19, yes, no) => {
|
|
83
|
+
try {
|
|
84
|
+
var x9 = generator[k5](v19), isAwait = (v19 = x9.value) instanceof __await, done = x9.done;
|
|
85
|
+
Promise.resolve(isAwait ? v19[0] : v19).then((y10) => isAwait ? resume(k5 === "return" ? k5 : "next", v19[1] ? { done: y10.done, value: y10.value } : y10, yes, no) : yes({ value: y10, done })).catch((e42) => resume("throw", e42, yes, no));
|
|
86
|
+
} catch (e42) {
|
|
87
|
+
no(e42);
|
|
88
|
+
}
|
|
89
|
+
}, method = (k5) => it2[k5] = (x9) => new Promise((yes, no) => resume(k5, x9, yes, no)), it2 = {};
|
|
90
|
+
return generator = generator.apply(__this, __arguments), it2[__knownSymbol("asyncIterator")] = () => it2, method("next"), method("throw"), method("return"), it2;
|
|
91
|
+
};
|
|
81
92
|
var __yieldStar = (value) => {
|
|
82
93
|
var obj = value[__knownSymbol("asyncIterator")], isAwait = false, method, it2 = {};
|
|
83
94
|
if (obj == null) {
|
|
@@ -182,7 +193,7 @@ var APP_VERSION, ES, IS_ES_MODERN, IS_ES_NEXT, IS_PROD, IS_TEST, FAT_MODE, HOMEP
|
|
|
182
193
|
var init_constants = __esm({
|
|
183
194
|
"node_modules/jodit/esm/core/constants.js"() {
|
|
184
195
|
"use strict";
|
|
185
|
-
APP_VERSION = "4.11.
|
|
196
|
+
APP_VERSION = "4.11.14";
|
|
186
197
|
ES = "es2020";
|
|
187
198
|
IS_ES_MODERN = true;
|
|
188
199
|
IS_ES_NEXT = true;
|
|
@@ -546,7 +557,7 @@ var init_camel_case = __esm({
|
|
|
546
557
|
"node_modules/jodit/esm/core/helpers/string/camel-case.js"() {
|
|
547
558
|
"use strict";
|
|
548
559
|
camelCase = (key3) => {
|
|
549
|
-
return key3.replace(/([-_])(.)/g, (
|
|
560
|
+
return key3.replace(/([-_])(.)/g, (m53, code, letter) => {
|
|
550
561
|
return letter.toUpperCase();
|
|
551
562
|
});
|
|
552
563
|
};
|
|
@@ -665,8 +676,8 @@ var init_connection_error = __esm({
|
|
|
665
676
|
"node_modules/jodit/esm/core/helpers/utils/error/errors/connection-error.js"() {
|
|
666
677
|
"use strict";
|
|
667
678
|
ConnectionError = class _ConnectionError extends Error {
|
|
668
|
-
constructor(
|
|
669
|
-
super(
|
|
679
|
+
constructor(m53) {
|
|
680
|
+
super(m53);
|
|
670
681
|
Object.setPrototypeOf(this, _ConnectionError.prototype);
|
|
671
682
|
}
|
|
672
683
|
};
|
|
@@ -679,8 +690,8 @@ var init_options_error = __esm({
|
|
|
679
690
|
"node_modules/jodit/esm/core/helpers/utils/error/errors/options-error.js"() {
|
|
680
691
|
"use strict";
|
|
681
692
|
OptionsError = class _OptionsError extends TypeError {
|
|
682
|
-
constructor(
|
|
683
|
-
super(
|
|
693
|
+
constructor(m53) {
|
|
694
|
+
super(m53);
|
|
684
695
|
Object.setPrototypeOf(this, _OptionsError.prototype);
|
|
685
696
|
}
|
|
686
697
|
};
|
|
@@ -724,8 +735,8 @@ var init_error2 = __esm({
|
|
|
724
735
|
});
|
|
725
736
|
|
|
726
737
|
// node_modules/jodit/esm/core/helpers/checker/is-native-function.js
|
|
727
|
-
function isNativeFunction(
|
|
728
|
-
return Boolean(
|
|
738
|
+
function isNativeFunction(f46) {
|
|
739
|
+
return Boolean(f46) && (typeof f46).toLowerCase() === "function" && (f46 === Function.prototype || /^\s*function\s*(\b[a-z$_][a-z0-9$_]*\b)*\s*\((|([a-z$_][a-z0-9$_]*)(\s*,[a-z$_][a-z0-9$_]*)*)\)\s*{\s*\[native code]\s*}\s*$/i.test(String(f46)));
|
|
729
740
|
}
|
|
730
741
|
var init_is_native_function = __esm({
|
|
731
742
|
"node_modules/jodit/esm/core/helpers/checker/is-native-function.js"() {
|
|
@@ -1099,13 +1110,13 @@ var init_event_emitter = __esm({
|
|
|
1099
1110
|
this.__domEventsMap.set(subject, callbackStore);
|
|
1100
1111
|
}
|
|
1101
1112
|
__unmemoryDOMSubjectToHandler(subject, syntheticCallback) {
|
|
1102
|
-
const
|
|
1103
|
-
const callbackStore =
|
|
1113
|
+
const m53 = this.__domEventsMap;
|
|
1114
|
+
const callbackStore = m53.get(subject) || /* @__PURE__ */ new Set();
|
|
1104
1115
|
callbackStore.delete(syntheticCallback);
|
|
1105
1116
|
if (callbackStore.size) {
|
|
1106
|
-
|
|
1117
|
+
m53.set(subject, callbackStore);
|
|
1107
1118
|
} else {
|
|
1108
|
-
|
|
1119
|
+
m53.delete(subject);
|
|
1109
1120
|
}
|
|
1110
1121
|
}
|
|
1111
1122
|
one(eventsOrSubjects, callbackOrEvents, optionsOrCallback, opts) {
|
|
@@ -6858,11 +6869,11 @@ var require_acolorpicker = __commonJS({
|
|
|
6858
6869
|
}
|
|
6859
6870
|
return Array.from(e43);
|
|
6860
6871
|
}
|
|
6861
|
-
var h52 = "undefined" != typeof window && window.navigator.userAgent.indexOf("Edge") > -1, p59 = "undefined" != typeof window && window.navigator.userAgent.indexOf("rv:") > -1, d49 = { id: null, attachTo: "body", showHSL: true, showRGB: true, showHEX: true, showAlpha: false, color: "#ff0000", palette: null, paletteEditable: false, useAlphaInPalette: "auto", slBarSize: [232, 150], hueBarSize: [150, 11], alphaBarSize: [150, 11] },
|
|
6872
|
+
var h52 = "undefined" != typeof window && window.navigator.userAgent.indexOf("Edge") > -1, p59 = "undefined" != typeof window && window.navigator.userAgent.indexOf("rv:") > -1, d49 = { id: null, attachTo: "body", showHSL: true, showRGB: true, showHEX: true, showAlpha: false, color: "#ff0000", palette: null, paletteEditable: false, useAlphaInPalette: "auto", slBarSize: [232, 150], hueBarSize: [150, 11], alphaBarSize: [150, 11] }, f46 = "COLOR", g21 = "RGBA_USER", b18 = "HSLA_USER";
|
|
6862
6873
|
function v19(e43, t46, r61) {
|
|
6863
6874
|
return e43 ? e43 instanceof HTMLElement ? e43 : e43 instanceof NodeList ? e43[0] : "string" == typeof e43 ? document.querySelector(e43) : e43.jquery ? e43.get(0) : r61 ? t46 : null : t46;
|
|
6864
6875
|
}
|
|
6865
|
-
function
|
|
6876
|
+
function m53(e43) {
|
|
6866
6877
|
var t46 = e43.getContext("2d"), r61 = +e43.width, i50 = +e43.height, s53 = t46.createLinearGradient(1, 1, 1, i50 - 1);
|
|
6867
6878
|
return s53.addColorStop(0, "white"), s53.addColorStop(1, "black"), { setHue: function(e44) {
|
|
6868
6879
|
var o53 = t46.createLinearGradient(1, 0, r61 - 1, 0);
|
|
@@ -6905,9 +6916,9 @@ var require_acolorpicker = __commonJS({
|
|
|
6905
6916
|
t47.hasAttribute(r62 + "color") && (e44.color = t47.getAttribute(r62 + "color"));
|
|
6906
6917
|
})(this.options, t46), this.H = 0, this.S = 0, this.L = 0, this.R = 0, this.G = 0, this.B = 0, this.A = 1, this.palette = {}, this.element = document.createElement("div"), this.options.id && (this.element.id = this.options.id), this.element.className = "a-color-picker", this.element.innerHTML = a68.default, t46.appendChild(this.element);
|
|
6907
6918
|
var i50 = this.element.querySelector(".a-color-picker-h");
|
|
6908
|
-
this.setupHueCanvas(i50), this.hueBarHelper =
|
|
6919
|
+
this.setupHueCanvas(i50), this.hueBarHelper = m53(i50), this.huePointer = this.element.querySelector(".a-color-picker-h+.a-color-picker-dot");
|
|
6909
6920
|
var o53 = this.element.querySelector(".a-color-picker-sl");
|
|
6910
|
-
this.setupSlCanvas(o53), this.slBarHelper =
|
|
6921
|
+
this.setupSlCanvas(o53), this.slBarHelper = m53(o53), this.slPointer = this.element.querySelector(".a-color-picker-sl+.a-color-picker-dot"), this.preview = this.element.querySelector(".a-color-picker-preview"), this.setupClipboard(this.preview.querySelector(".a-color-picker-clipbaord")), this.options.showHSL ? (this.setupInput(this.inputH = this.element.querySelector(".a-color-picker-hsl>input[nameref=H]")), this.setupInput(this.inputS = this.element.querySelector(".a-color-picker-hsl>input[nameref=S]")), this.setupInput(this.inputL = this.element.querySelector(".a-color-picker-hsl>input[nameref=L]"))) : this.element.querySelector(".a-color-picker-hsl").remove(), this.options.showRGB ? (this.setupInput(this.inputR = this.element.querySelector(".a-color-picker-rgb>input[nameref=R]")), this.setupInput(this.inputG = this.element.querySelector(".a-color-picker-rgb>input[nameref=G]")), this.setupInput(this.inputB = this.element.querySelector(".a-color-picker-rgb>input[nameref=B]"))) : this.element.querySelector(".a-color-picker-rgb").remove(), this.options.showHEX ? this.setupInput(this.inputRGBHEX = this.element.querySelector("input[nameref=RGBHEX]")) : this.element.querySelector(".a-color-picker-rgbhex").remove(), this.options.paletteEditable || this.options.palette && this.options.palette.length > 0 ? this.setPalette(this.paletteRow = this.element.querySelector(".a-color-picker-palette")) : (this.paletteRow = this.element.querySelector(".a-color-picker-palette"), this.paletteRow.remove()), this.options.showAlpha ? (this.setupAlphaCanvas(this.element.querySelector(".a-color-picker-a")), this.alphaPointer = this.element.querySelector(".a-color-picker-a+.a-color-picker-dot")) : this.element.querySelector(".a-color-picker-alpha").remove(), this.element.style.width = this.options.slBarSize[0] + "px", this.onValueChanged(f46, this.options.color);
|
|
6911
6922
|
}
|
|
6912
6923
|
return i49(e43, [{ key: "setupHueCanvas", value: function(e44) {
|
|
6913
6924
|
var t46 = this;
|
|
@@ -6998,10 +7009,10 @@ var require_acolorpicker = __commonJS({
|
|
|
6998
7009
|
}), this.options.paletteEditable) {
|
|
6999
7010
|
var a69 = document.createElement("div");
|
|
7000
7011
|
a69.className = "a-color-picker-palette-color a-color-picker-palette-add", a69.innerHTML = "+", e44.appendChild(a69), e44.addEventListener("click", function(e45) {
|
|
7001
|
-
/a-color-picker-palette-add/.test(e45.target.className) ? e45.shiftKey ? s53(null, true) : o53(r61 ? (0, n49.parseColor)([t46.R, t46.G, t46.B, t46.A], "rgbcss4") : (0, n49.rgbToHex)(t46.R, t46.G, t46.B), e45.target, true) : /a-color-picker-palette-color/.test(e45.target.className) && (e45.shiftKey ? s53(e45.target, true) : t46.onValueChanged(
|
|
7012
|
+
/a-color-picker-palette-add/.test(e45.target.className) ? e45.shiftKey ? s53(null, true) : o53(r61 ? (0, n49.parseColor)([t46.R, t46.G, t46.B, t46.A], "rgbcss4") : (0, n49.rgbToHex)(t46.R, t46.G, t46.B), e45.target, true) : /a-color-picker-palette-color/.test(e45.target.className) && (e45.shiftKey ? s53(e45.target, true) : t46.onValueChanged(f46, e45.target.getAttribute("data-color")));
|
|
7002
7013
|
});
|
|
7003
7014
|
} else e44.addEventListener("click", function(e45) {
|
|
7004
|
-
/a-color-picker-palette-color/.test(e45.target.className) && t46.onValueChanged(
|
|
7015
|
+
/a-color-picker-palette-color/.test(e45.target.className) && t46.onValueChanged(f46, e45.target.getAttribute("data-color"));
|
|
7005
7016
|
});
|
|
7006
7017
|
} else e44.style.display = "none";
|
|
7007
7018
|
} }, { key: "updatePalette", value: function(e44) {
|
|
@@ -7036,7 +7047,7 @@ var require_acolorpicker = __commonJS({
|
|
|
7036
7047
|
break;
|
|
7037
7048
|
case "B":
|
|
7038
7049
|
this.B = t46;
|
|
7039
|
-
var
|
|
7050
|
+
var m54 = (0, n49.rgbToHsl)(this.R, this.G, this.B), A5 = o52(m54, 3);
|
|
7040
7051
|
this.H = A5[0], this.S = A5[1], this.L = A5[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.updateInputRGBHEX(this.R, this.G, this.B);
|
|
7041
7052
|
break;
|
|
7042
7053
|
case "RGB":
|
|
@@ -7063,7 +7074,7 @@ var require_acolorpicker = __commonJS({
|
|
|
7063
7074
|
var T3 = (0, n49.rgbToHsl)(this.R, this.G, this.B), x9 = o52(T3, 3);
|
|
7064
7075
|
this.H = x9[0], this.S = x9[1], this.L = x9[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);
|
|
7065
7076
|
break;
|
|
7066
|
-
case
|
|
7077
|
+
case f46:
|
|
7067
7078
|
var G2 = (0, n49.parseColor)(t46, "rgba") || [0, 0, 0, 1], I2 = o52(G2, 4);
|
|
7068
7079
|
this.R = I2[0], this.G = I2[1], this.B = I2[2], this.A = I2[3];
|
|
7069
7080
|
var P5 = (0, n49.rgbToHsl)(this.R, this.G, this.B), D3 = o52(P5, 3);
|
|
@@ -7137,10 +7148,10 @@ var require_acolorpicker = __commonJS({
|
|
|
7137
7148
|
}, get color() {
|
|
7138
7149
|
return this.all.toString();
|
|
7139
7150
|
}, set color(e44) {
|
|
7140
|
-
r61.onValueChanged(
|
|
7151
|
+
r61.onValueChanged(f46, e44);
|
|
7141
7152
|
}, setColor: function(e44) {
|
|
7142
7153
|
var t47 = arguments.length > 1 && void 0 !== arguments[1] && arguments[1];
|
|
7143
|
-
r61.onValueChanged(
|
|
7154
|
+
r61.onValueChanged(f46, e44, { silent: t47 });
|
|
7144
7155
|
}, get all() {
|
|
7145
7156
|
if (s53) {
|
|
7146
7157
|
var e44 = [r61.R, r61.G, r61.B, r61.A], t47 = r61.A < 1 ? "rgba(" + r61.R + "," + r61.G + "," + r61.B + "," + r61.A + ")" : n49.rgbToHex.apply(void 0, e44);
|
|
@@ -7296,7 +7307,7 @@ var require_acolorpicker = __commonJS({
|
|
|
7296
7307
|
if (void 0 !== c69) return [parseInt(c69, 16), parseInt(u63, 16), parseInt(h53, 16)];
|
|
7297
7308
|
}
|
|
7298
7309
|
}
|
|
7299
|
-
function
|
|
7310
|
+
function f46(e43) {
|
|
7300
7311
|
if (e43) {
|
|
7301
7312
|
var t46 = s52[e43.toString().toLowerCase()], r61 = /^\s*#?((([0-9A-F])([0-9A-F])([0-9A-F])([0-9A-F])?)|(([0-9A-F]{2})([0-9A-F]{2})([0-9A-F]{2})([0-9A-F]{2})?))\s*$/i.exec(t46 || e43) || [], o53 = i49(r61, 12), n50 = o53[3], a69 = o53[4], l48 = o53[5], c69 = o53[6], u63 = o53[8], h53 = o53[9], p60 = o53[10], d50 = o53[11];
|
|
7302
7313
|
if (void 0 !== n50) return [parseInt(n50 + n50, 16), parseInt(a69 + a69, 16), parseInt(l48 + l48, 16), c69 ? +(parseInt(c69 + c69, 16) / 255).toFixed(2) : 1];
|
|
@@ -7317,10 +7328,10 @@ var require_acolorpicker = __commonJS({
|
|
|
7317
7328
|
}
|
|
7318
7329
|
function v19(e43) {
|
|
7319
7330
|
if (Array.isArray(e43)) return [a68(e43[0], 0, 255), a68(e43[1], 0, 255), a68(e43[2], 0, 255), a68(l47(e43[3], 1), 0, 1)];
|
|
7320
|
-
var t46 =
|
|
7331
|
+
var t46 = f46(e43) || b18(e43);
|
|
7321
7332
|
return t46 && 3 === t46.length && t46.push(1), t46;
|
|
7322
7333
|
}
|
|
7323
|
-
function
|
|
7334
|
+
function m53(e43) {
|
|
7324
7335
|
if (e43) {
|
|
7325
7336
|
var t46 = /^hsl\((\d+)[\s,](\d+)[\s,](\d+)\)/i.exec(e43) || [], r61 = i49(t46, 4), o53 = r61[0], n50 = r61[1], s53 = r61[2], l48 = r61[3];
|
|
7326
7337
|
return o53 ? [a68(n50, 0, 360), a68(s53, 0, 100), a68(l48, 0, 100)] : void 0;
|
|
@@ -7391,10 +7402,10 @@ var require_acolorpicker = __commonJS({
|
|
|
7391
7402
|
return [l48, o53, c69];
|
|
7392
7403
|
}, t45.rgbToInt = p59, t45.intToRgb = function(e43) {
|
|
7393
7404
|
return [e43 >> 16 & 255, e43 >> 8 & 255, 255 & e43];
|
|
7394
|
-
}, t45.cssColorToRgb = d49, t45.cssColorToRgba =
|
|
7405
|
+
}, t45.cssColorToRgb = d49, t45.cssColorToRgba = f46, t45.cssRgbToRgb = g21, t45.cssRgbaToRgba = b18, t45.parseColorToRgb = function(e43) {
|
|
7395
7406
|
return Array.isArray(e43) ? e43 = [a68(e43[0], 0, 255), a68(e43[1], 0, 255), a68(e43[2], 0, 255)] : d49(e43) || g21(e43);
|
|
7396
|
-
}, t45.parseColorToRgba = v19, t45.cssHslToHsl =
|
|
7397
|
-
return Array.isArray(e43) ? e43 = [a68(e43[0], 0, 360), a68(e43[1], 0, 100), a68(e43[2], 0, 100)] :
|
|
7407
|
+
}, t45.parseColorToRgba = v19, t45.cssHslToHsl = m53, t45.cssHslaToHsla = A4, t45.parseColorToHsl = function(e43) {
|
|
7408
|
+
return Array.isArray(e43) ? e43 = [a68(e43[0], 0, 360), a68(e43[1], 0, 100), a68(e43[2], 0, 100)] : m53(e43);
|
|
7398
7409
|
}, t45.parseColorToHsla = y10, t45.parseColor = function(e43, t46) {
|
|
7399
7410
|
if (t46 = t46 || "rgb", null != e43) {
|
|
7400
7411
|
var r61 = void 0;
|
|
@@ -11816,11 +11827,11 @@ Config.prototype.filebrowser = {
|
|
|
11816
11827
|
sortBy: "changed-desc",
|
|
11817
11828
|
sort(a68, b18, sortBy) {
|
|
11818
11829
|
const [sortAttr, arrow] = sortBy.toLowerCase().split("-"), asc = arrow === "asc";
|
|
11819
|
-
const compareStr = (
|
|
11820
|
-
if (
|
|
11830
|
+
const compareStr = (f46, s52) => {
|
|
11831
|
+
if (f46 < s52) {
|
|
11821
11832
|
return asc ? -1 : 1;
|
|
11822
11833
|
}
|
|
11823
|
-
if (
|
|
11834
|
+
if (f46 > s52) {
|
|
11824
11835
|
return asc ? 1 : -1;
|
|
11825
11836
|
}
|
|
11826
11837
|
return 0;
|
|
@@ -11839,12 +11850,12 @@ Config.prototype.filebrowser = {
|
|
|
11839
11850
|
}
|
|
11840
11851
|
switch (sortAttr) {
|
|
11841
11852
|
case "changed": {
|
|
11842
|
-
const
|
|
11843
|
-
return asc ?
|
|
11853
|
+
const f46 = new Date(a68.changed).getTime(), s52 = new Date(b18.changed).getTime();
|
|
11854
|
+
return asc ? f46 - s52 : s52 - f46;
|
|
11844
11855
|
}
|
|
11845
11856
|
case "size": {
|
|
11846
|
-
const
|
|
11847
|
-
return asc ?
|
|
11857
|
+
const f46 = humanSizeToBytes(a68.size), s52 = humanSizeToBytes(b18.size);
|
|
11858
|
+
return asc ? f46 - s52 : s52 - f46;
|
|
11848
11859
|
}
|
|
11849
11860
|
}
|
|
11850
11861
|
return 0;
|
|
@@ -12318,6 +12329,108 @@ var Ajax = class _Ajax {
|
|
|
12318
12329
|
}, 0);
|
|
12319
12330
|
}));
|
|
12320
12331
|
}
|
|
12332
|
+
stream() {
|
|
12333
|
+
return __asyncGenerator(this, null, function* () {
|
|
12334
|
+
var _a2;
|
|
12335
|
+
this.__activated = true;
|
|
12336
|
+
const { xhr, o: o52 } = this;
|
|
12337
|
+
const request = this.prepareRequest();
|
|
12338
|
+
let lastIndex = 0;
|
|
12339
|
+
let buffer = "";
|
|
12340
|
+
const queue = [];
|
|
12341
|
+
let waitResolve = null;
|
|
12342
|
+
let done = false;
|
|
12343
|
+
let streamError = null;
|
|
12344
|
+
const notify = () => {
|
|
12345
|
+
if (waitResolve) {
|
|
12346
|
+
const r60 = waitResolve;
|
|
12347
|
+
waitResolve = null;
|
|
12348
|
+
r60();
|
|
12349
|
+
}
|
|
12350
|
+
};
|
|
12351
|
+
const processChunk = (final) => {
|
|
12352
|
+
var _a3;
|
|
12353
|
+
const text = xhr.responseText;
|
|
12354
|
+
buffer += text.substring(lastIndex);
|
|
12355
|
+
lastIndex = text.length;
|
|
12356
|
+
const events = buffer.split("\n\n");
|
|
12357
|
+
buffer = final ? "" : (_a3 = events.pop()) !== null && _a3 !== void 0 ? _a3 : "";
|
|
12358
|
+
for (const event of events) {
|
|
12359
|
+
const trimmed = event.trim();
|
|
12360
|
+
if (!trimmed) {
|
|
12361
|
+
continue;
|
|
12362
|
+
}
|
|
12363
|
+
const dataLines = [];
|
|
12364
|
+
for (const line of trimmed.split("\n")) {
|
|
12365
|
+
if (line.startsWith("data: ")) {
|
|
12366
|
+
dataLines.push(line.slice(6));
|
|
12367
|
+
} else if (line.startsWith("data:")) {
|
|
12368
|
+
dataLines.push(line.slice(5));
|
|
12369
|
+
}
|
|
12370
|
+
}
|
|
12371
|
+
if (dataLines.length) {
|
|
12372
|
+
queue.push(dataLines.join("\n"));
|
|
12373
|
+
}
|
|
12374
|
+
}
|
|
12375
|
+
notify();
|
|
12376
|
+
};
|
|
12377
|
+
xhr.onprogress = () => processChunk(false);
|
|
12378
|
+
xhr.onload = () => {
|
|
12379
|
+
processChunk(true);
|
|
12380
|
+
done = true;
|
|
12381
|
+
this.__isFulfilled = true;
|
|
12382
|
+
notify();
|
|
12383
|
+
};
|
|
12384
|
+
xhr.onerror = () => {
|
|
12385
|
+
streamError = connection("Connection error");
|
|
12386
|
+
done = true;
|
|
12387
|
+
this.__isFulfilled = true;
|
|
12388
|
+
notify();
|
|
12389
|
+
};
|
|
12390
|
+
xhr.onabort = () => {
|
|
12391
|
+
streamError = abort("Abort connection");
|
|
12392
|
+
done = true;
|
|
12393
|
+
this.__isFulfilled = true;
|
|
12394
|
+
notify();
|
|
12395
|
+
};
|
|
12396
|
+
xhr.withCredentials = (_a2 = o52.withCredentials) !== null && _a2 !== void 0 ? _a2 : false;
|
|
12397
|
+
const { url: url2, data, method } = request;
|
|
12398
|
+
xhr.open(method, url2, true);
|
|
12399
|
+
if (o52.contentType && xhr.setRequestHeader) {
|
|
12400
|
+
xhr.setRequestHeader("Content-type", o52.contentType);
|
|
12401
|
+
}
|
|
12402
|
+
let { headers } = o52;
|
|
12403
|
+
if (isFunction(headers)) {
|
|
12404
|
+
headers = yield new __await(headers.call(this));
|
|
12405
|
+
}
|
|
12406
|
+
if (headers && xhr.setRequestHeader) {
|
|
12407
|
+
Object.keys(headers).forEach((key3) => {
|
|
12408
|
+
xhr.setRequestHeader(key3, headers[key3]);
|
|
12409
|
+
});
|
|
12410
|
+
}
|
|
12411
|
+
xhr.send(data ? this.__buildParams(data) : void 0);
|
|
12412
|
+
try {
|
|
12413
|
+
while (true) {
|
|
12414
|
+
if (queue.length > 0) {
|
|
12415
|
+
yield queue.shift();
|
|
12416
|
+
} else if (done) {
|
|
12417
|
+
break;
|
|
12418
|
+
} else {
|
|
12419
|
+
yield new __await(new Promise((r60) => {
|
|
12420
|
+
waitResolve = r60;
|
|
12421
|
+
}));
|
|
12422
|
+
}
|
|
12423
|
+
}
|
|
12424
|
+
} finally {
|
|
12425
|
+
if (!this.__isFulfilled) {
|
|
12426
|
+
this.abort();
|
|
12427
|
+
}
|
|
12428
|
+
}
|
|
12429
|
+
if (streamError) {
|
|
12430
|
+
throw streamError;
|
|
12431
|
+
}
|
|
12432
|
+
});
|
|
12433
|
+
}
|
|
12321
12434
|
prepareRequest() {
|
|
12322
12435
|
if (!this.o.url) {
|
|
12323
12436
|
throw error("Need URL for AJAX request");
|
|
@@ -14577,7 +14690,7 @@ var History = class extends ViewComponent {
|
|
|
14577
14690
|
"mouseup",
|
|
14578
14691
|
"keydown",
|
|
14579
14692
|
"keyup"
|
|
14580
|
-
].map((
|
|
14693
|
+
].map((f46) => f46 + ".history").join(" "), () => {
|
|
14581
14694
|
if (this.startValue.html === this.j.getNativeEditorValue()) {
|
|
14582
14695
|
this.startValue = this.snapshot.make();
|
|
14583
14696
|
}
|
|
@@ -29118,9 +29231,9 @@ var source = class extends Plugin {
|
|
|
29118
29231
|
this.__oldMirrorValue = value;
|
|
29119
29232
|
}
|
|
29120
29233
|
getNormalPosition(pos, str) {
|
|
29121
|
-
str = str.replace(/<(script|style|iframe)[^>]*>[^]*?<\/\1>/im, (
|
|
29234
|
+
str = str.replace(/<(script|style|iframe)[^>]*>[^]*?<\/\1>/im, (m53) => {
|
|
29122
29235
|
let res = "";
|
|
29123
|
-
for (let i49 = 0; i49 <
|
|
29236
|
+
for (let i49 = 0; i49 < m53.length; i49 += 1) {
|
|
29124
29237
|
res += INVISIBLE_SPACE;
|
|
29125
29238
|
}
|
|
29126
29239
|
return res;
|
|
@@ -33306,8 +33419,8 @@ function b(t45, n49 = () => true, s52 = true, i49) {
|
|
|
33306
33419
|
case t45.isElement: {
|
|
33307
33420
|
const { attributes: e42 } = t45, r60 = j(t45, n49, s52, i49);
|
|
33308
33421
|
if (!t45.attributes["jd-safe"] && s52 && r60.replace(/[\n\t]/g, "").length === 0 && !t45.isSingle) return "";
|
|
33309
|
-
const c68 = Object.keys(e42).map((o52) => o52 === "style" || e42[o52] == null || /^jd-/.test(o52) ? "" : `${o52}="${p3(e42[o52])}"`).filter(Boolean), { str: g21 } = t45.style,
|
|
33310
|
-
if (
|
|
33422
|
+
const c68 = Object.keys(e42).map((o52) => o52 === "style" || e42[o52] == null || /^jd-/.test(o52) ? "" : `${o52}="${p3(e42[o52])}"`).filter(Boolean), { str: g21 } = t45.style, f46 = p3(g21((o52) => a3(o52, i49)));
|
|
33423
|
+
if (f46 && c68.push(`style="${f46}"`), s52 && c68.length === 0 && ["span", "a"].includes(t45.name)) return r60;
|
|
33311
33424
|
const h52 = c68.length ? " " + c68.join(" ") : "";
|
|
33312
33425
|
return n49(t45) ? t45.isSingle ? `<${t45.name}${h52}/>` : `<${t45.name}${h52}>${r60}</${t45.name}>` : r60;
|
|
33313
33426
|
}
|
|
@@ -33369,7 +33482,7 @@ var c4 = (i49, t45) => b3(i49, "name", { value: t45, configurable: true });
|
|
|
33369
33482
|
var a5 = function(i49, t45, r60, n49) {
|
|
33370
33483
|
var e42 = arguments.length, o52 = e42 < 3 ? t45 : n49 === null ? n49 = Object.getOwnPropertyDescriptor(t45, r60) : n49, u62;
|
|
33371
33484
|
if (typeof Reflect == "object" && typeof Reflect.decorate == "function") o52 = Reflect.decorate(i49, t45, r60, n49);
|
|
33372
|
-
else for (var
|
|
33485
|
+
else for (var f46 = i49.length - 1; f46 >= 0; f46--) (u62 = i49[f46]) && (o52 = (e42 < 3 ? u62(o52) : e42 > 3 ? u62(t45, r60, o52) : u62(t45, r60)) || o52);
|
|
33373
33486
|
return e42 > 3 && o52 && Object.defineProperty(t45, r60, o52), o52;
|
|
33374
33487
|
};
|
|
33375
33488
|
var h = class h2 {
|
|
@@ -33403,8 +33516,8 @@ var h = class h2 {
|
|
|
33403
33516
|
return ["padding", "margin"].forEach((e42) => {
|
|
33404
33517
|
if (this._data[e42]) {
|
|
33405
33518
|
const o52 = r60.indexOf(e42), u62 = p(this._data[e42]);
|
|
33406
|
-
["top", "right", "bottom", "left"].forEach((
|
|
33407
|
-
const p59 = `${e42}-${
|
|
33519
|
+
["top", "right", "bottom", "left"].forEach((f46, g21) => {
|
|
33520
|
+
const p59 = `${e42}-${f46}`, d49 = this._data[p59];
|
|
33408
33521
|
d49 != null && (r60.indexOf(p59) < o52 || n49(u62[g21]) === n49(d49)) && r60.indexOf(p59) !== -1 && r60.splice(r60.indexOf(p59), 1);
|
|
33409
33522
|
});
|
|
33410
33523
|
}
|
|
@@ -33656,12 +33769,12 @@ function b5(t45, e42, l47, h52) {
|
|
|
33656
33769
|
if (i49 && i49.length < 2) continue;
|
|
33657
33770
|
let r60 = null;
|
|
33658
33771
|
if (i49[0].indexOf("pngblip") ? r60 = "image/png" : i49[0].indexOf("jpegblip") !== -1 && (r60 = "image/jpeg"), !r60) continue;
|
|
33659
|
-
const
|
|
33660
|
-
if (
|
|
33772
|
+
const f46 = i49[1].split("}");
|
|
33773
|
+
if (f46 && f46.length < 2) continue;
|
|
33661
33774
|
let g21;
|
|
33662
|
-
if (2 <
|
|
33775
|
+
if (2 < f46.length && f46[0].includes("blipuid")) g21 = f46[1].split(" ");
|
|
33663
33776
|
else {
|
|
33664
|
-
if (g21 =
|
|
33777
|
+
if (g21 = f46[0].split(" "), g21 && g21.length < 2) continue;
|
|
33665
33778
|
g21.shift();
|
|
33666
33779
|
}
|
|
33667
33780
|
h52[e42 + o52] = { hex: g21.join(""), type: r60 };
|
|
@@ -33725,9 +33838,9 @@ var S = [j3, b4, s8, c5, s, B, b6, u2, v, o, n6, n9, a];
|
|
|
33725
33838
|
|
|
33726
33839
|
// node_modules/jodit-pro/esm/plugins/paste-from-word/helpers/transform-word-to-html.js
|
|
33727
33840
|
var s10 = Object.defineProperty;
|
|
33728
|
-
var n10 = (
|
|
33729
|
-
function v3(
|
|
33730
|
-
const a68 = { jodit:
|
|
33841
|
+
var n10 = (f46, o52) => s10(f46, "name", { value: o52, configurable: true });
|
|
33842
|
+
function v3(f46, o52, i49, c68) {
|
|
33843
|
+
const a68 = { jodit: f46, rtf: c68 };
|
|
33731
33844
|
return o52.forEach(n10(function t45(r60) {
|
|
33732
33845
|
if (r60) {
|
|
33733
33846
|
for (const e42 of S) if (r60 = e42(r60, a68), r60 == null) break;
|
|
@@ -33735,7 +33848,7 @@ function v3(f45, o52, i49, c68) {
|
|
|
33735
33848
|
}
|
|
33736
33849
|
}, "eachElm")), i49 && o52.forEach((t45) => {
|
|
33737
33850
|
t45.style.clear();
|
|
33738
|
-
}, true), trim(j(o52, (t45) => !t45.isComment, true,
|
|
33851
|
+
}, true), trim(j(o52, (t45) => !t45.isComment, true, f46.o.pasteFromWord.allowedStyleProps));
|
|
33739
33852
|
}
|
|
33740
33853
|
n10(v3, "transformWordToHtml");
|
|
33741
33854
|
|
|
@@ -33746,11 +33859,11 @@ init_selector();
|
|
|
33746
33859
|
var $2 = Object.defineProperty;
|
|
33747
33860
|
var a10 = (y10, n49) => $2(y10, "name", { value: n49, configurable: true });
|
|
33748
33861
|
function w(y10, n49, u62, p59 = "") {
|
|
33749
|
-
var d49,
|
|
33862
|
+
var d49, f46;
|
|
33750
33863
|
const s52 = document.createElement("iframe");
|
|
33751
33864
|
s52.style.display = "none", document.body.appendChild(s52);
|
|
33752
33865
|
try {
|
|
33753
|
-
const t45 = (d49 = s52.contentDocument) !== null && d49 !== void 0 ? d49 : (
|
|
33866
|
+
const t45 = (d49 = s52.contentDocument) !== null && d49 !== void 0 ? d49 : (f46 = s52.contentWindow) === null || f46 === void 0 ? void 0 : f46.document;
|
|
33754
33867
|
if (!t45) return n49;
|
|
33755
33868
|
t45.open(), t45.write(n49), t45.close();
|
|
33756
33869
|
const i49 = "jd-style";
|
|
@@ -38782,8 +38895,8 @@ var s11 = class s12 extends pasteFromWord {
|
|
|
38782
38895
|
var e42;
|
|
38783
38896
|
if (this.j.o.pasteFromWord.enable && (i49 === INSERT_AS_HTML || i49 === INSERT_AS_TEXT)) {
|
|
38784
38897
|
if (r60 = w(this.j, r60, i49 === INSERT_AS_TEXT, p59.rtf), this.j.o.beautifyHTML) {
|
|
38785
|
-
const
|
|
38786
|
-
isString(
|
|
38898
|
+
const m53 = (e42 = this.j.events) === null || e42 === void 0 ? void 0 : e42.fire("beautifyHTML", r60);
|
|
38899
|
+
isString(m53) && (r60 = m53);
|
|
38787
38900
|
}
|
|
38788
38901
|
pasteInsertHtml(o52, this.j, r60);
|
|
38789
38902
|
return;
|
|
@@ -38840,7 +38953,7 @@ init_is_boolean();
|
|
|
38840
38953
|
init_is_string();
|
|
38841
38954
|
init_plugin();
|
|
38842
38955
|
var p4 = Object.defineProperty;
|
|
38843
|
-
var c7 = (
|
|
38956
|
+
var c7 = (f46, o52) => p4(f46, "name", { value: o52, configurable: true });
|
|
38844
38957
|
var a12 = class a13 extends Plugin {
|
|
38845
38958
|
static make(o52) {
|
|
38846
38959
|
return new a13(o52);
|
|
@@ -38908,8 +39021,8 @@ var u5 = class u6 {
|
|
|
38908
39021
|
});
|
|
38909
39022
|
const E5 = [], l47 = [], g21 = [], M2 = [];
|
|
38910
39023
|
return i49.forEach((n49, s52) => {
|
|
38911
|
-
const c68 = o52(n49),
|
|
38912
|
-
|
|
39024
|
+
const c68 = o52(n49), f46 = a68.get(c68);
|
|
39025
|
+
f46 ? !t45(f46, n49) || p59 && h52.get(c68) !== s52 ? l47.push({ oldItem: f46, newItem: n49, index: p59 ? s52 : h52.get(c68) }) : M2.push(f46) : E5.push(n49);
|
|
38913
39026
|
}), e42.forEach((n49) => {
|
|
38914
39027
|
const s52 = o52(n49);
|
|
38915
39028
|
r60.has(s52) || g21.push(n49);
|
|
@@ -38995,7 +39108,7 @@ var u8;
|
|
|
38995
39108
|
var v5 = function(a68, e42, t45, l47) {
|
|
38996
39109
|
var s52 = arguments.length, i49 = s52 < 3 ? e42 : l47 === null ? l47 = Object.getOwnPropertyDescriptor(e42, t45) : l47, o52;
|
|
38997
39110
|
if (typeof Reflect == "object" && typeof Reflect.decorate == "function") i49 = Reflect.decorate(a68, e42, t45, l47);
|
|
38998
|
-
else for (var
|
|
39111
|
+
else for (var m53 = a68.length - 1; m53 >= 0; m53--) (o52 = a68[m53]) && (i49 = (s52 < 3 ? o52(i49) : s52 > 3 ? o52(e42, t45, i49) : o52(e42, t45)) || i49);
|
|
38999
39112
|
return s52 > 3 && i49 && Object.defineProperty(e42, t45, i49), i49;
|
|
39000
39113
|
};
|
|
39001
39114
|
var d4 = (u8 = class extends UIGroup {
|
|
@@ -39035,8 +39148,8 @@ var d4 = (u8 = class extends UIGroup {
|
|
|
39035
39148
|
const h52 = this.itemsMap.get(c68);
|
|
39036
39149
|
h52 && (h52.item = n49, this.elements.indexOf(h52) !== r60 && r60 < this.elements.length && (this.remove(h52), this.append(h52, r60)));
|
|
39037
39150
|
});
|
|
39038
|
-
const
|
|
39039
|
-
this.currentSelection = Math.max(0, e42.findIndex((n49) => s52(n49) === l47)),
|
|
39151
|
+
const m53 = this.currentSelection;
|
|
39152
|
+
this.currentSelection = Math.max(0, e42.findIndex((n49) => s52(n49) === l47)), m53 === this.currentSelection && this.onChangeSelection(), this.__previousList = [...e42];
|
|
39040
39153
|
}
|
|
39041
39154
|
selectNext() {
|
|
39042
39155
|
this.currentSelection + 1 <= this.elements.length - 1 ? this.currentSelection += 1 : this.currentSelection = 0;
|
|
@@ -39069,9 +39182,9 @@ function _2(i49, n49) {
|
|
|
39069
39182
|
var o52, r60, s52;
|
|
39070
39183
|
let { startContainer: t45, startOffset: l47 } = i49;
|
|
39071
39184
|
if (Dom.isText(t45) || (t45 = t45.childNodes[l47 - 1], Dom.isText(t45) && (l47 = (r60 = (o52 = t45.nodeValue) === null || o52 === void 0 ? void 0 : o52.length) !== null && r60 !== void 0 ? r60 : 0)), Dom.isText(t45)) {
|
|
39072
|
-
const e42 = (s52 = t45.nodeValue) !== null && s52 !== void 0 ? s52 : "", d49 = e42.substring(0, l47), v19 = e42.substring(l47),
|
|
39073
|
-
|
|
39074
|
-
const c68 =
|
|
39185
|
+
const e42 = (s52 = t45.nodeValue) !== null && s52 !== void 0 ? s52 : "", d49 = e42.substring(0, l47), v19 = e42.substring(l47), f46 = d49.split(" ");
|
|
39186
|
+
f46[f46.length - 1] = "";
|
|
39187
|
+
const c68 = f46.join(" ");
|
|
39075
39188
|
t45.nodeValue = c68 + v19, i49.setStart(t45, c68.length), i49.insertNode(n49);
|
|
39076
39189
|
return;
|
|
39077
39190
|
}
|
|
@@ -39177,8 +39290,8 @@ var a16 = class a17 extends Plugin {
|
|
|
39177
39290
|
if (r60 && isArray(r60)) {
|
|
39178
39291
|
const { itemRenderer: s52, insertValueRenderer: n49, maxItems: i49 } = this.j.o.autocomplete;
|
|
39179
39292
|
return r60 = r60.map((K4) => {
|
|
39180
|
-
var h52,
|
|
39181
|
-
return __spreadValues({ itemRenderer: (h52 = o52 == null ? void 0 : o52.itemRenderer) !== null && h52 !== void 0 ? h52 : s52, insertValueRenderer: (
|
|
39293
|
+
var h52, f46;
|
|
39294
|
+
return __spreadValues({ itemRenderer: (h52 = o52 == null ? void 0 : o52.itemRenderer) !== null && h52 !== void 0 ? h52 : s52, insertValueRenderer: (f46 = o52 == null ? void 0 : o52.insertValueRenderer) !== null && f46 !== void 0 ? f46 : n49 }, K4);
|
|
39182
39295
|
}), r60.slice(0, i49);
|
|
39183
39296
|
}
|
|
39184
39297
|
return [];
|
|
@@ -39259,10 +39372,10 @@ r12(a19, "throwIfAborted");
|
|
|
39259
39372
|
// node_modules/jodit-pro/esm/plugins/ai-assistant-pro/core/block-utils.js
|
|
39260
39373
|
init_dom2();
|
|
39261
39374
|
var c8 = Object.defineProperty;
|
|
39262
|
-
var
|
|
39263
|
-
function a20(t45, { selector: e42, index: r60, requireExactlyOne:
|
|
39264
|
-
const o52 = e42 != null, l47 = r60 != null;
|
|
39265
|
-
if (
|
|
39375
|
+
var f5 = (t45, e42) => c8(t45, "name", { value: e42, configurable: true });
|
|
39376
|
+
function a20(t45, { selector: e42, index: r60, requireExactlyOne: s52 = false } = {}) {
|
|
39377
|
+
const o52 = e42 != null && e42.trim() !== "", l47 = r60 != null;
|
|
39378
|
+
if (s52 && o52 === l47) throw new Error("Either index or selector must be provided, but not both");
|
|
39266
39379
|
if (!o52 && !l47) throw new Error("Block identifier is required");
|
|
39267
39380
|
if (o52) {
|
|
39268
39381
|
if (typeof e42 != "string") throw new Error("Selector must be a string");
|
|
@@ -39274,21 +39387,21 @@ function a20(t45, { selector: e42, index: r60, requireExactlyOne: h52 = false }
|
|
|
39274
39387
|
if (typeof r60 != "number") throw new Error("Block index must be a number");
|
|
39275
39388
|
const n49 = Array.from(t45.editor.children);
|
|
39276
39389
|
if (r60 < 0 || r60 >= n49.length) throw new Error(`Block index ${r60} is out of range. Document has ${n49.length} blocks`);
|
|
39277
|
-
const
|
|
39278
|
-
if (!Dom.isElement(
|
|
39279
|
-
return { element:
|
|
39390
|
+
const m53 = n49[r60];
|
|
39391
|
+
if (!Dom.isElement(m53)) throw new Error(`Block at index ${r60} is not a valid element`);
|
|
39392
|
+
return { element: m53, identifier: `at index ${r60}` };
|
|
39280
39393
|
}
|
|
39281
|
-
|
|
39394
|
+
f5(a20, "resolveBlock");
|
|
39282
39395
|
|
|
39283
39396
|
// node_modules/jodit-pro/esm/plugins/ai-assistant-pro/tools/apply-format/executor.js
|
|
39284
39397
|
var a21 = Object.defineProperty;
|
|
39285
39398
|
var c9 = (e42, r60) => a21(e42, "name", { value: r60, configurable: true });
|
|
39286
39399
|
function h7(e42, r60, i49) {
|
|
39287
39400
|
return __async(this, null, function* () {
|
|
39288
|
-
const { element: s52, attributes: o52, remove: l47, blockIndex: n49, selector:
|
|
39401
|
+
const { element: s52, attributes: o52, remove: l47, blockIndex: n49, selector: m53 } = r60;
|
|
39289
39402
|
if (a19(i49), !s52 && !o52) throw new Error('Either "element" or "attributes" must be provided');
|
|
39290
|
-
if (e42.s.restore(), n49 !== void 0 ||
|
|
39291
|
-
const { element: t45 } = a20(e42, { selector:
|
|
39403
|
+
if (e42.s.restore(), n49 !== void 0 || m53) {
|
|
39404
|
+
const { element: t45 } = a20(e42, { selector: m53, index: n49 });
|
|
39292
39405
|
e42.s.select(t45);
|
|
39293
39406
|
}
|
|
39294
39407
|
if (e42.s.isCollapsed()) throw new Error("No selection found. Please select text to format");
|
|
@@ -39331,7 +39444,7 @@ i9(u9, "requireString");
|
|
|
39331
39444
|
// node_modules/jodit-pro/esm/plugins/ai-assistant-pro/tools/insert-html/executor.js
|
|
39332
39445
|
var i10 = Object.defineProperty;
|
|
39333
39446
|
var o13 = (e42, r60) => i10(e42, "name", { value: r60, configurable: true });
|
|
39334
|
-
function
|
|
39447
|
+
function f6(e42, r60, n49) {
|
|
39335
39448
|
return __async(this, null, function* () {
|
|
39336
39449
|
const s52 = u9(r60, "html", { allowEmpty: true }), { replace: c68 } = r60;
|
|
39337
39450
|
if (!s52.trim()) return { success: true, message: "Nothing to insert: HTML is empty" };
|
|
@@ -39343,10 +39456,10 @@ function f5(e42, r60, n49) {
|
|
|
39343
39456
|
}
|
|
39344
39457
|
});
|
|
39345
39458
|
}
|
|
39346
|
-
o13(
|
|
39459
|
+
o13(f6, "execute");
|
|
39347
39460
|
|
|
39348
39461
|
// node_modules/jodit-pro/esm/plugins/ai-assistant-pro/tools/insert-html/index.js
|
|
39349
|
-
var i11 = __spreadProps(__spreadValues({}, definition_exports2), { execute:
|
|
39462
|
+
var i11 = __spreadProps(__spreadValues({}, definition_exports2), { execute: f6 });
|
|
39350
39463
|
|
|
39351
39464
|
// node_modules/jodit-pro/esm/plugins/ai-assistant-pro/tools/read-blocks/definition.js
|
|
39352
39465
|
var definition_exports3 = {};
|
|
@@ -39365,10 +39478,10 @@ var o14 = false;
|
|
|
39365
39478
|
init_dom2();
|
|
39366
39479
|
var u10 = Object.defineProperty;
|
|
39367
39480
|
var d5 = (s52, i49) => u10(s52, "name", { value: i49, configurable: true });
|
|
39368
|
-
function w2(s52, i49,
|
|
39481
|
+
function w2(s52, i49, m53) {
|
|
39369
39482
|
return __async(this, null, function* () {
|
|
39370
|
-
const { offset:
|
|
39371
|
-
a19(
|
|
39483
|
+
const { offset: f46, limit: e42, query: l47 } = i49;
|
|
39484
|
+
a19(m53);
|
|
39372
39485
|
const n49 = [];
|
|
39373
39486
|
Array.from(s52.editor.children).forEach((o52, a68) => {
|
|
39374
39487
|
if (Dom.isElement(o52)) {
|
|
@@ -39381,7 +39494,7 @@ function w2(s52, i49, m54) {
|
|
|
39381
39494
|
const o52 = l47.toLowerCase();
|
|
39382
39495
|
t45 = n49.filter((a68) => a68.textContent.toLowerCase().includes(o52));
|
|
39383
39496
|
}
|
|
39384
|
-
const c68 = Math.max(0, Math.min(typeof
|
|
39497
|
+
const c68 = Math.max(0, Math.min(typeof f46 == "number" ? f46 : 0, t45.length)), h52 = e42 !== void 0 ? Math.min(c68 + e42, t45.length) : t45.length;
|
|
39385
39498
|
return { blocks: t45.slice(c68, h52), total: n49.length, offset: c68, limit: e42 !== void 0 ? e42 : void 0 };
|
|
39386
39499
|
});
|
|
39387
39500
|
}
|
|
@@ -39406,14 +39519,14 @@ var n13 = false;
|
|
|
39406
39519
|
// node_modules/jodit-pro/esm/plugins/ai-assistant-pro/tools/read-document/executor.js
|
|
39407
39520
|
init_dom2();
|
|
39408
39521
|
var u11 = Object.defineProperty;
|
|
39409
|
-
var
|
|
39522
|
+
var m6 = (t45, o52) => u11(t45, "name", { value: o52, configurable: true });
|
|
39410
39523
|
function w3(t45, o52, c68) {
|
|
39411
39524
|
return __async(this, null, function* () {
|
|
39412
|
-
const { start: i49, end: l47, aroundSelection:
|
|
39525
|
+
const { start: i49, end: l47, aroundSelection: f46 } = o52;
|
|
39413
39526
|
a19(c68);
|
|
39414
39527
|
let n49 = t45.value;
|
|
39415
39528
|
const r60 = n49.length, h52 = typeof i49 == "number" ? i49 : 0;
|
|
39416
|
-
if (
|
|
39529
|
+
if (f46 && !t45.s.isCollapsed()) {
|
|
39417
39530
|
let e42 = t45.s.range.commonAncestorContainer;
|
|
39418
39531
|
for (; e42 && e42 !== t45.editor; ) {
|
|
39419
39532
|
if (Dom.isElement(e42) && e42.parentNode === t45.editor) {
|
|
@@ -39428,7 +39541,7 @@ function w3(t45, o52, c68) {
|
|
|
39428
39541
|
return (s52 > 0 || a68 < r60) && (n49 = n49.substring(s52, a68)), { html: n49, length: r60, start: s52, end: a68 };
|
|
39429
39542
|
});
|
|
39430
39543
|
}
|
|
39431
|
-
|
|
39544
|
+
m6(w3, "execute");
|
|
39432
39545
|
|
|
39433
39546
|
// node_modules/jodit-pro/esm/plugins/ai-assistant-pro/tools/read-document/index.js
|
|
39434
39547
|
var i13 = __spreadProps(__spreadValues({}, definition_exports4), { execute: w3 });
|
|
@@ -39449,10 +39562,10 @@ var n14 = false;
|
|
|
39449
39562
|
// node_modules/jodit-pro/esm/plugins/ai-assistant-pro/tools/read-selection/executor.js
|
|
39450
39563
|
var u12 = Object.defineProperty;
|
|
39451
39564
|
var i14 = (e42, s52) => u12(e42, "name", { value: s52, configurable: true });
|
|
39452
|
-
function p8(e42, s52,
|
|
39565
|
+
function p8(e42, s52, f46) {
|
|
39453
39566
|
return __async(this, null, function* () {
|
|
39454
39567
|
const { contextCharsBefore: o52, contextCharsAfter: r60 } = s52;
|
|
39455
|
-
if (a19(
|
|
39568
|
+
if (a19(f46), e42.s.restore(), e42.s.isCollapsed()) return { hasSelection: false };
|
|
39456
39569
|
const l47 = e42.s.html, c68 = e42.s.range, t45 = c68.toString(), a68 = { hasSelection: true, html: l47, text: t45, startContainer: c68.startContainer.nodeName, endContainer: c68.endContainer.nodeName };
|
|
39457
39570
|
if (o52 > 0 || r60 > 0) {
|
|
39458
39571
|
const n49 = e42.editor.textContent || "", x9 = n49.substring(0, n49.indexOf(t45)), C13 = n49.substring(n49.indexOf(t45) + t45.length);
|
|
@@ -39486,12 +39599,12 @@ var a22 = (e42, r60) => u13(e42, "name", { value: r60, configurable: true });
|
|
|
39486
39599
|
function y2(e42, r60, d49) {
|
|
39487
39600
|
return __async(this, null, function* () {
|
|
39488
39601
|
var o52;
|
|
39489
|
-
const { index: n49, selector: i49 } = r60,
|
|
39602
|
+
const { index: n49, selector: i49 } = r60, m53 = u9(r60, "html");
|
|
39490
39603
|
if (a19(d49), n49 === void 0 && !i49 || n49 !== void 0 && i49) throw new Error("Either index or selector must be provided, but not both");
|
|
39491
39604
|
const { element: s52, identifier: l47 } = a20(e42, { selector: i49, index: n49, requireExactlyOne: true });
|
|
39492
39605
|
try {
|
|
39493
39606
|
const t45 = e42.createInside.div();
|
|
39494
|
-
t45.innerHTML =
|
|
39607
|
+
t45.innerHTML = m53;
|
|
39495
39608
|
const c68 = t45.firstChild;
|
|
39496
39609
|
if (!c68 || !Dom.isElement(c68)) throw new Error("Invalid HTML: must contain at least one element");
|
|
39497
39610
|
return (o52 = s52.parentNode) === null || o52 === void 0 || o52.replaceChild(c68, s52), e42.synchronizeValues(), { success: true, message: `Block ${l47} replaced successfully` };
|
|
@@ -39520,7 +39633,7 @@ var s16 = true;
|
|
|
39520
39633
|
|
|
39521
39634
|
// node_modules/jodit-pro/esm/plugins/ai-assistant-pro/tools/replace-in-document/executor.js
|
|
39522
39635
|
var w4 = Object.defineProperty;
|
|
39523
|
-
var
|
|
39636
|
+
var m7 = (n49, s52) => w4(n49, "name", { value: s52, configurable: true });
|
|
39524
39637
|
function d6(n49, s52, o52, c68, u62, a68) {
|
|
39525
39638
|
const l47 = n49.editor.querySelectorAll(u62);
|
|
39526
39639
|
if (l47.length === 0) return { replacements: 0, message: `No elements found matching selector "${u62}"` };
|
|
@@ -39528,7 +39641,7 @@ function d6(n49, s52, o52, c68, u62, a68) {
|
|
|
39528
39641
|
return l47.forEach((t45) => {
|
|
39529
39642
|
a19(a68);
|
|
39530
39643
|
let r60 = t45.innerHTML;
|
|
39531
|
-
const
|
|
39644
|
+
const f46 = r60;
|
|
39532
39645
|
if (c68) try {
|
|
39533
39646
|
const i49 = new RegExp(s52, "g");
|
|
39534
39647
|
r60 = r60.replace(i49, () => (e42++, o52));
|
|
@@ -39540,10 +39653,10 @@ function d6(n49, s52, o52, c68, u62, a68) {
|
|
|
39540
39653
|
let g21 = 0;
|
|
39541
39654
|
for (; (g21 = r60.indexOf(s52, g21)) !== -1; ) a19(a68), r60 = r60.substring(0, g21) + o52 + r60.substring(g21 + i49), g21 += o52.length, e42++;
|
|
39542
39655
|
}
|
|
39543
|
-
r60 !==
|
|
39656
|
+
r60 !== f46 && (t45.innerHTML = r60);
|
|
39544
39657
|
}), e42 > 0 && (n49.synchronizeValues(), n49.s.restore()), { replacements: e42 };
|
|
39545
39658
|
}
|
|
39546
|
-
|
|
39659
|
+
m7(d6, "replaceInSelectedElements");
|
|
39547
39660
|
function v6(n49, s52, o52, c68, u62, a68) {
|
|
39548
39661
|
let l47 = 0, e42 = s52;
|
|
39549
39662
|
if (u62) try {
|
|
@@ -39559,7 +39672,7 @@ function v6(n49, s52, o52, c68, u62, a68) {
|
|
|
39559
39672
|
}
|
|
39560
39673
|
return l47 > 0 && (n49.value = e42, n49.s.restore(), n49.synchronizeValues()), l47;
|
|
39561
39674
|
}
|
|
39562
|
-
|
|
39675
|
+
m7(v6, "replaceInDocument");
|
|
39563
39676
|
function b7(n49, s52, o52) {
|
|
39564
39677
|
return __async(this, null, function* () {
|
|
39565
39678
|
const c68 = u9(s52, "search"), u62 = u9(s52, "replace", { allowEmpty: true }), { useRegex: a68, useSelector: l47 } = s52;
|
|
@@ -39577,7 +39690,7 @@ function b7(n49, s52, o52) {
|
|
|
39577
39690
|
}
|
|
39578
39691
|
});
|
|
39579
39692
|
}
|
|
39580
|
-
|
|
39693
|
+
m7(b7, "execute");
|
|
39581
39694
|
|
|
39582
39695
|
// node_modules/jodit-pro/esm/plugins/ai-assistant-pro/tools/replace-in-document/index.js
|
|
39583
39696
|
var i17 = __spreadProps(__spreadValues({}, definition_exports7), { execute: b7 });
|
|
@@ -39651,8 +39764,8 @@ n17(i19, "execute");
|
|
|
39651
39764
|
var i20 = __spreadProps(__spreadValues({}, definition_exports9), { execute: i19 });
|
|
39652
39765
|
|
|
39653
39766
|
// node_modules/jodit-pro/esm/plugins/ai-assistant-pro/tools/index.js
|
|
39654
|
-
var
|
|
39655
|
-
var r20 = (o52, e42) =>
|
|
39767
|
+
var m8 = Object.defineProperty;
|
|
39768
|
+
var r20 = (o52, e42) => m8(o52, "name", { value: e42, configurable: true });
|
|
39656
39769
|
var t15 = { readDocument: i13, readBlocks: i12, readSelection: i15, writeDocument: i20, replaceSelection: i18, replaceBlock: i16, replaceInDocument: i17, insertHTML: i11, applyFormat: i8 };
|
|
39657
39770
|
function g4() {
|
|
39658
39771
|
return Object.keys(t15);
|
|
@@ -39682,7 +39795,7 @@ var _3 = { exec: () => null };
|
|
|
39682
39795
|
function k2(u62, e42 = "") {
|
|
39683
39796
|
let t45 = typeof u62 == "string" ? u62 : u62.source, n49 = { replace: (r60, i49) => {
|
|
39684
39797
|
let s52 = typeof i49 == "string" ? i49 : i49.source;
|
|
39685
|
-
return s52 = s52.replace(
|
|
39798
|
+
return s52 = s52.replace(m9.caret, "$1"), t45 = t45.replace(r60, s52), n49;
|
|
39686
39799
|
}, getRegex: () => new RegExp(t45, e42) };
|
|
39687
39800
|
return n49;
|
|
39688
39801
|
}
|
|
@@ -39693,7 +39806,7 @@ var Re = (() => {
|
|
|
39693
39806
|
return false;
|
|
39694
39807
|
}
|
|
39695
39808
|
})();
|
|
39696
|
-
var
|
|
39809
|
+
var m9 = { codeRemoveIndent: /^(?: {1,4}| {0,3}\t)/gm, outputLinkReplace: /\\([\[\]])/g, indentCodeCompensation: /^(\s+)(?:```)/, beginningSpace: /^\s+/, endingHash: /#$/, startingSpaceChar: /^ /, endingSpaceChar: / $/, nonSpaceChar: /[^ ]/, newLineCharGlobal: /\n/g, tabCharGlobal: /\t/g, multipleSpaceGlobal: /\s+/g, blankLine: /^[ \t]*$/, doubleBlankLine: /\n[ \t]*\n[ \t]*$/, blockquoteStart: /^ {0,3}>/, blockquoteSetextReplace: /\n {0,3}((?:=+|-+) *)(?=\n|$)/g, blockquoteSetextReplace2: /^ {0,3}>[ \t]?/gm, listReplaceNesting: /^ {1,4}(?=( {4})*[^ ])/g, listIsTask: /^\[[ xX]\] +\S/, listReplaceTask: /^\[[ xX]\] +/, listTaskCheckbox: /\[[ xX]\]/, anyLine: /\n.*\n/, hrefBrackets: /^<(.*)>$/, tableDelimiter: /[:|]/, tableAlignChars: /^\||\| *$/g, tableRowBlankLine: /\n[ \t]*$/, tableAlignRight: /^ *-+: *$/, tableAlignCenter: /^ *:-+: *$/, tableAlignLeft: /^ *:-+ *$/, startATag: /^<a /i, endATag: /^<\/a>/i, startPreScriptTag: /^<(pre|code|kbd|script)(\s|>)/i, endPreScriptTag: /^<\/(pre|code|kbd|script)(\s|>)/i, startAngleBracket: /^</, endAngleBracket: />$/, pedanticHrefTitle: /^([^'"]*[^\s])\s+(['"])(.*)\2/, unicodeAlphaNumeric: /[\p{L}\p{N}]/u, escapeTest: /[&<>"']/, escapeReplace: /[&<>"']/g, escapeTestNoEncode: /[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/, escapeReplaceNoEncode: /[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g, caret: /(^|[^\[])\^/g, percentDecode: /%25/g, findPipe: /\|/g, splitPipe: / \|/, slashPipe: /\\\|/g, carriageReturn: /\r\n|\r/g, spaceLine: /^ +$/gm, notSpaceStart: /^\S*/, endingNewline: /\n$/, listItemRegex: (u62) => new RegExp(`^( {0,3}${u62})((?:[ ][^\\n]*)?(?:\\n|$))`), nextBulletRegex: (u62) => new RegExp(`^ {0,${Math.min(3, u62 - 1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`), hrRegex: (u62) => new RegExp(`^ {0,${Math.min(3, u62 - 1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`), fencesBeginRegex: (u62) => new RegExp(`^ {0,${Math.min(3, u62 - 1)}}(?:\`\`\`|~~~)`), headingBeginRegex: (u62) => new RegExp(`^ {0,${Math.min(3, u62 - 1)}}#`), htmlBeginRegex: (u62) => new RegExp(`^ {0,${Math.min(3, u62 - 1)}}<(?:[a-z].*>|!--)`, "i"), blockquoteBeginRegex: (u62) => new RegExp(`^ {0,${Math.min(3, u62 - 1)}}>`) };
|
|
39697
39810
|
var Te = /^(?:[ \t]*(?:\n|$))+/;
|
|
39698
39811
|
var Oe = /^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/;
|
|
39699
39812
|
var we = /^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/;
|
|
@@ -39763,13 +39876,13 @@ var st = { "&": "&", "<": "<", ">": ">", '"': """, "'": "'" }
|
|
|
39763
39876
|
var de = (u62) => st[u62];
|
|
39764
39877
|
function O(u62, e42) {
|
|
39765
39878
|
if (e42) {
|
|
39766
|
-
if (
|
|
39767
|
-
} else if (
|
|
39879
|
+
if (m9.escapeTest.test(u62)) return u62.replace(m9.escapeReplace, de);
|
|
39880
|
+
} else if (m9.escapeTestNoEncode.test(u62)) return u62.replace(m9.escapeReplaceNoEncode, de);
|
|
39768
39881
|
return u62;
|
|
39769
39882
|
}
|
|
39770
39883
|
function X(u62) {
|
|
39771
39884
|
try {
|
|
39772
|
-
u62 = encodeURI(u62).replace(
|
|
39885
|
+
u62 = encodeURI(u62).replace(m9.percentDecode, "%");
|
|
39773
39886
|
} catch (e42) {
|
|
39774
39887
|
return null;
|
|
39775
39888
|
}
|
|
@@ -39777,14 +39890,14 @@ function X(u62) {
|
|
|
39777
39890
|
}
|
|
39778
39891
|
function J(u62, e42) {
|
|
39779
39892
|
var _a2;
|
|
39780
|
-
let t45 = u62.replace(
|
|
39893
|
+
let t45 = u62.replace(m9.findPipe, (i49, s52, a68) => {
|
|
39781
39894
|
let o52 = false, l47 = s52;
|
|
39782
39895
|
for (; --l47 >= 0 && a68[l47] === "\\"; ) o52 = !o52;
|
|
39783
39896
|
return o52 ? "|" : " |";
|
|
39784
|
-
}), n49 = t45.split(
|
|
39897
|
+
}), n49 = t45.split(m9.splitPipe), r60 = 0;
|
|
39785
39898
|
if (n49[0].trim() || n49.shift(), n49.length > 0 && !((_a2 = n49.at(-1)) == null ? void 0 : _a2.trim()) && n49.pop(), e42) if (n49.length > e42) n49.splice(e42);
|
|
39786
39899
|
else for (; n49.length < e42; ) n49.push("");
|
|
39787
|
-
for (; r60 < n49.length; r60++) n49[r60] = n49[r60].trim().replace(
|
|
39900
|
+
for (; r60 < n49.length; r60++) n49[r60] = n49[r60].trim().replace(m9.slashPipe, "|");
|
|
39788
39901
|
return n49;
|
|
39789
39902
|
}
|
|
39790
39903
|
function E3(u62, e42, t45) {
|
|
@@ -39899,16 +40012,16 @@ ${c68}` : c68;
|
|
|
39899
40012
|
let h52 = s52.at(-1);
|
|
39900
40013
|
if ((h52 == null ? void 0 : h52.type) === "code") break;
|
|
39901
40014
|
if ((h52 == null ? void 0 : h52.type) === "blockquote") {
|
|
39902
|
-
let R4 = h52,
|
|
40015
|
+
let R4 = h52, f46 = R4.raw + `
|
|
39903
40016
|
` + n49.join(`
|
|
39904
|
-
`), S5 = this.blockquote(
|
|
40017
|
+
`), S5 = this.blockquote(f46);
|
|
39905
40018
|
s52[s52.length - 1] = S5, r60 = r60.substring(0, r60.length - R4.raw.length) + S5.raw, i49 = i49.substring(0, i49.length - R4.text.length) + S5.text;
|
|
39906
40019
|
break;
|
|
39907
40020
|
} else if ((h52 == null ? void 0 : h52.type) === "list") {
|
|
39908
|
-
let R4 = h52,
|
|
40021
|
+
let R4 = h52, f46 = R4.raw + `
|
|
39909
40022
|
` + n49.join(`
|
|
39910
|
-
`), S5 = this.list(
|
|
39911
|
-
s52[s52.length - 1] = S5, r60 = r60.substring(0, r60.length - h52.raw.length) + S5.raw, i49 = i49.substring(0, i49.length - R4.raw.length) + S5.raw, n49 =
|
|
40023
|
+
`), S5 = this.list(f46);
|
|
40024
|
+
s52[s52.length - 1] = S5, r60 = r60.substring(0, r60.length - h52.raw.length) + S5.raw, i49 = i49.substring(0, i49.length - R4.raw.length) + S5.raw, n49 = f46.substring(s52.at(-1).raw.length).split(`
|
|
39912
40025
|
`);
|
|
39913
40026
|
continue;
|
|
39914
40027
|
}
|
|
@@ -39929,23 +40042,23 @@ ${c68}` : c68;
|
|
|
39929
40042
|
p59 = t45[0], e42 = e42.substring(p59.length);
|
|
39930
40043
|
let d49 = fe(t45[2].split(`
|
|
39931
40044
|
`, 1)[0], t45[1].length), h52 = e42.split(`
|
|
39932
|
-
`, 1)[0], R4 = !d49.trim(),
|
|
39933
|
-
if (this.options.pedantic ? (
|
|
40045
|
+
`, 1)[0], R4 = !d49.trim(), f46 = 0;
|
|
40046
|
+
if (this.options.pedantic ? (f46 = 2, c68 = d49.trimStart()) : R4 ? f46 = t45[1].length + 1 : (f46 = d49.search(this.rules.other.nonSpaceChar), f46 = f46 > 4 ? 1 : f46, c68 = d49.slice(f46), f46 += t45[1].length), R4 && this.rules.other.blankLine.test(h52) && (p59 += h52 + `
|
|
39934
40047
|
`, e42 = e42.substring(h52.length + 1), l47 = true), !l47) {
|
|
39935
|
-
let S5 = this.rules.other.nextBulletRegex(
|
|
40048
|
+
let S5 = this.rules.other.nextBulletRegex(f46), V = this.rules.other.hrRegex(f46), Y = this.rules.other.fencesBeginRegex(f46), ee = this.rules.other.headingBeginRegex(f46), xe = this.rules.other.htmlBeginRegex(f46), be = this.rules.other.blockquoteBeginRegex(f46);
|
|
39936
40049
|
for (; e42; ) {
|
|
39937
40050
|
let H = e42.split(`
|
|
39938
40051
|
`, 1)[0], I2;
|
|
39939
40052
|
if (h52 = H, this.options.pedantic ? (h52 = h52.replace(this.rules.other.listReplaceNesting, " "), I2 = h52) : I2 = h52.replace(this.rules.other.tabCharGlobal, " "), Y.test(h52) || ee.test(h52) || xe.test(h52) || be.test(h52) || S5.test(h52) || V.test(h52)) break;
|
|
39940
|
-
if (I2.search(this.rules.other.nonSpaceChar) >=
|
|
39941
|
-
` + I2.slice(
|
|
40053
|
+
if (I2.search(this.rules.other.nonSpaceChar) >= f46 || !h52.trim()) c68 += `
|
|
40054
|
+
` + I2.slice(f46);
|
|
39942
40055
|
else {
|
|
39943
40056
|
if (R4 || d49.replace(this.rules.other.tabCharGlobal, " ").search(this.rules.other.nonSpaceChar) >= 4 || Y.test(d49) || ee.test(d49) || V.test(d49)) break;
|
|
39944
40057
|
c68 += `
|
|
39945
40058
|
` + h52;
|
|
39946
40059
|
}
|
|
39947
40060
|
R4 = !h52.trim(), p59 += H + `
|
|
39948
|
-
`, e42 = e42.substring(H.length + 1), d49 = I2.slice(
|
|
40061
|
+
`, e42 = e42.substring(H.length + 1), d49 = I2.slice(f46);
|
|
39949
40062
|
}
|
|
39950
40063
|
}
|
|
39951
40064
|
i49.loose || (a68 ? i49.loose = true : this.rules.other.doubleBlankLine.test(p59) && (a68 = true)), i49.items.push({ type: "list_item", raw: p59, task: !!this.options.gfm && this.rules.other.listIsTask.test(c68), loose: false, text: c68, tokens: [] }), i49.raw += p59;
|
|
@@ -40082,8 +40195,8 @@ ${c68}` : c68;
|
|
|
40082
40195
|
o52 = Math.min(o52, o52 + l47 + p59);
|
|
40083
40196
|
let d49 = [...r60[0]][0].length, h52 = e42.slice(0, s52 + r60.index + d49 + o52);
|
|
40084
40197
|
if (Math.min(s52, o52) % 2) {
|
|
40085
|
-
let
|
|
40086
|
-
return { type: "em", raw: h52, text:
|
|
40198
|
+
let f46 = h52.slice(1, -1);
|
|
40199
|
+
return { type: "em", raw: h52, text: f46, tokens: this.lexer.inlineTokens(f46) };
|
|
40087
40200
|
}
|
|
40088
40201
|
let R4 = h52.slice(2, -2);
|
|
40089
40202
|
return { type: "strong", raw: h52, text: R4, tokens: this.lexer.inlineTokens(R4) };
|
|
@@ -40158,7 +40271,7 @@ var x5 = class u14 {
|
|
|
40158
40271
|
__publicField(this, "inlineQueue");
|
|
40159
40272
|
__publicField(this, "tokenizer");
|
|
40160
40273
|
this.tokens = [], this.tokens.links = /* @__PURE__ */ Object.create(null), this.options = e42 || T2, this.options.tokenizer = this.options.tokenizer || new w5(), this.tokenizer = this.options.tokenizer, this.tokenizer.options = this.options, this.tokenizer.lexer = this, this.inlineQueue = [], this.state = { inLink: false, inRawBlock: false, top: true };
|
|
40161
|
-
let t45 = { other:
|
|
40274
|
+
let t45 = { other: m9, block: C2.normal, inline: z.normal };
|
|
40162
40275
|
this.options.pedantic ? (t45.block = C2.pedantic, t45.inline = z.pedantic) : this.options.gfm && (t45.block = C2.gfm, this.options.breaks ? t45.inline = z.breaks : t45.inline = z.gfm), this.tokenizer.rules = t45;
|
|
40163
40276
|
}
|
|
40164
40277
|
static get rules() {
|
|
@@ -40171,7 +40284,7 @@ var x5 = class u14 {
|
|
|
40171
40284
|
return new u14(t45).inlineTokens(e42);
|
|
40172
40285
|
}
|
|
40173
40286
|
lex(e42) {
|
|
40174
|
-
e42 = e42.replace(
|
|
40287
|
+
e42 = e42.replace(m9.carriageReturn, `
|
|
40175
40288
|
`), this.blockTokens(e42, this.tokens);
|
|
40176
40289
|
for (let t45 = 0; t45 < this.inlineQueue.length; t45++) {
|
|
40177
40290
|
let n49 = this.inlineQueue[t45];
|
|
@@ -40181,7 +40294,7 @@ var x5 = class u14 {
|
|
|
40181
40294
|
}
|
|
40182
40295
|
blockTokens(e42, t45 = [], n49 = false) {
|
|
40183
40296
|
var _a2, _b, _c;
|
|
40184
|
-
for (this.options.pedantic && (e42 = e42.replace(
|
|
40297
|
+
for (this.options.pedantic && (e42 = e42.replace(m9.tabCharGlobal, " ").replace(m9.spaceLine, "")); e42; ) {
|
|
40185
40298
|
let r60;
|
|
40186
40299
|
if ((_b = (_a2 = this.options.extensions) == null ? void 0 : _a2.block) == null ? void 0 : _b.some((s52) => (r60 = s52.call({ lexer: this }, e42, t45)) ? (e42 = e42.substring(r60.raw.length), t45.push(r60), true) : false)) continue;
|
|
40187
40300
|
if (r60 = this.tokenizer.space(e42)) {
|
|
@@ -40371,7 +40484,7 @@ var y4 = class {
|
|
|
40371
40484
|
}
|
|
40372
40485
|
code({ text: e42, lang: t45, escaped: n49 }) {
|
|
40373
40486
|
var _a2;
|
|
40374
|
-
let r60 = (_a2 = (t45 || "").match(
|
|
40487
|
+
let r60 = (_a2 = (t45 || "").match(m9.notSpaceStart)) == null ? void 0 : _a2[0], i49 = e42.replace(m9.endingNewline, "") + `
|
|
40375
40488
|
`;
|
|
40376
40489
|
return r60 ? '<pre><code class="language-' + O(r60) + '">' + (n49 ? i49 : O(i49, true)) + `</code></pre>
|
|
40377
40490
|
` : "<pre><code>" + (n49 ? i49 : O(i49, true)) + `</code></pre>
|
|
@@ -40942,7 +41055,7 @@ var p10 = class p11 {
|
|
|
40942
41055
|
try {
|
|
40943
41056
|
const a68 = this.buildRequestContext(o52, t45, e42, r60, l47);
|
|
40944
41057
|
let h52 = null;
|
|
40945
|
-
for (let
|
|
41058
|
+
for (let f46 = 0; f46 <= i49; f46++) try {
|
|
40946
41059
|
if (s52.signal.aborted) throw abort();
|
|
40947
41060
|
const d49 = setTimeout(() => {
|
|
40948
41061
|
s52.abort();
|
|
@@ -40954,8 +41067,8 @@ var p10 = class p11 {
|
|
|
40954
41067
|
throw clearTimeout(d49), u62;
|
|
40955
41068
|
}
|
|
40956
41069
|
} catch (d49) {
|
|
40957
|
-
if (h52 = d49, IS_PROD || console.warn(`API request attempt ${
|
|
40958
|
-
const u62 = this.calculateRetryDelay(
|
|
41070
|
+
if (h52 = d49, IS_PROD || console.warn(`API request attempt ${f46 + 1} failed:`, d49), f46 < i49) {
|
|
41071
|
+
const u62 = this.calculateRetryDelay(f46);
|
|
40959
41072
|
yield this.sleep(u62);
|
|
40960
41073
|
} else throw d49;
|
|
40961
41074
|
}
|
|
@@ -41025,11 +41138,11 @@ var p10 = class p11 {
|
|
|
41025
41138
|
}
|
|
41026
41139
|
};
|
|
41027
41140
|
w6(p10, "APIClient");
|
|
41028
|
-
var
|
|
41141
|
+
var m10 = p10;
|
|
41029
41142
|
|
|
41030
41143
|
// node_modules/jodit-pro/esm/plugins/ai-assistant-pro/helpers/permission-manager.js
|
|
41031
41144
|
var d8 = Object.defineProperty;
|
|
41032
|
-
var
|
|
41145
|
+
var m11 = (c68, s52) => d8(c68, "name", { value: s52, configurable: true });
|
|
41033
41146
|
var o17 = class o18 {
|
|
41034
41147
|
constructor(s52, t45) {
|
|
41035
41148
|
this.jodit = s52, this.toolRegistry = t45, this.permanentPermissions = /* @__PURE__ */ new Map(), this.PERMANENT_PERMISSIONS_KEY = "jodit-permissions.ai-assistant-pro", this.loadPermanentPermissions();
|
|
@@ -41113,7 +41226,7 @@ var o17 = class o18 {
|
|
|
41113
41226
|
this.permanentPermissions.clear();
|
|
41114
41227
|
}
|
|
41115
41228
|
};
|
|
41116
|
-
|
|
41229
|
+
m11(o17, "PermissionManager");
|
|
41117
41230
|
var u17 = o17;
|
|
41118
41231
|
|
|
41119
41232
|
// node_modules/jodit-pro/esm/plugins/ai-assistant-pro/helpers/state-manager.js
|
|
@@ -41391,10 +41504,10 @@ function p12(r60, t45) {
|
|
|
41391
41504
|
return AsyncStorage.makeStorage(r60, t45);
|
|
41392
41505
|
}
|
|
41393
41506
|
n20(p12, "createStorageProvider");
|
|
41394
|
-
function
|
|
41507
|
+
function f7() {
|
|
41395
41508
|
return `conv_${Date.now()}_${Math.random().toString(36).substring(2, 11)}`;
|
|
41396
41509
|
}
|
|
41397
|
-
n20(
|
|
41510
|
+
n20(f7, "generateConversationId");
|
|
41398
41511
|
function _4() {
|
|
41399
41512
|
return `msg_${Date.now()}_${Math.random().toString(36).substring(2, 11)}`;
|
|
41400
41513
|
}
|
|
@@ -41406,7 +41519,7 @@ n20(K3, "generateToolCallId");
|
|
|
41406
41519
|
|
|
41407
41520
|
// node_modules/jodit-pro/esm/plugins/ai-assistant-pro/helpers/tool-registry.js
|
|
41408
41521
|
var h9 = Object.defineProperty;
|
|
41409
|
-
var
|
|
41522
|
+
var m12 = (l47, e42) => h9(l47, "name", { value: e42, configurable: true });
|
|
41410
41523
|
var u18 = class u19 {
|
|
41411
41524
|
constructor(e42) {
|
|
41412
41525
|
this.jodit = e42, this.tools = /* @__PURE__ */ new Map(), this.registerBuiltInTools(e42.o.aiAssistantPro.enabledTools || []), this.registerCustomTools(e42.o.aiAssistantPro.customTools || []);
|
|
@@ -41481,8 +41594,8 @@ var u18 = class u19 {
|
|
|
41481
41594
|
this.tools.clear();
|
|
41482
41595
|
}
|
|
41483
41596
|
};
|
|
41484
|
-
|
|
41485
|
-
var
|
|
41597
|
+
m12(u18, "ToolRegistry");
|
|
41598
|
+
var f8 = u18;
|
|
41486
41599
|
|
|
41487
41600
|
// node_modules/jodit-pro/esm/plugins/ai-assistant-pro/ui/conversation-list/conversation-list-item.js
|
|
41488
41601
|
init_decorators();
|
|
@@ -41879,13 +41992,13 @@ var o22 = (d10 = class extends UIElement {
|
|
|
41879
41992
|
s52.textContent = "\u{1F4C4}";
|
|
41880
41993
|
const r60 = this.j.c.div(this.getFullElName("file-info")), h52 = this.j.c.div(this.getFullElName("file-name"));
|
|
41881
41994
|
h52.textContent = ((t45 = this.artifact.metadata) === null || t45 === void 0 ? void 0 : t45.filename) || "download.file";
|
|
41882
|
-
const
|
|
41883
|
-
!((e42 = this.artifact.metadata) === null || e42 === void 0) && e42.size && (
|
|
41995
|
+
const f46 = this.j.c.div(this.getFullElName("file-size"));
|
|
41996
|
+
!((e42 = this.artifact.metadata) === null || e42 === void 0) && e42.size && (f46.textContent = this.formatFileSize(this.artifact.metadata.size)), r60.appendChild(h52), r60.appendChild(f46);
|
|
41884
41997
|
const c68 = this.j.c.element("a", { class: this.getFullElName("download-btn"), download: ((i49 = this.artifact.metadata) === null || i49 === void 0 ? void 0 : i49.filename) || "download.file" });
|
|
41885
41998
|
if (c68.textContent = this.j.i18n("Download"), this.artifact.data.kind === "url") c68.href = this.artifact.data.url;
|
|
41886
41999
|
else if (this.artifact.data.kind === "base64") {
|
|
41887
|
-
const
|
|
41888
|
-
c68.href = `data:${
|
|
42000
|
+
const m53 = this.artifact.mimeType || "application/octet-stream";
|
|
42001
|
+
c68.href = `data:${m53};base64,${this.artifact.data.base64}`;
|
|
41889
42002
|
}
|
|
41890
42003
|
n49.appendChild(s52), n49.appendChild(r60), n49.appendChild(c68), a68.appendChild(n49), this.container.appendChild(a68);
|
|
41891
42004
|
}
|
|
@@ -42003,8 +42116,8 @@ var d11 = (l13 = class extends UIElement {
|
|
|
42003
42116
|
o52.textContent = this.getToolStatusText(t45.status || "unknown"), s52.appendChild(i49), s52.appendChild(n49), s52.appendChild(o52), e42.appendChild(s52);
|
|
42004
42117
|
const a68 = this.createExpandableSection("Arguments", JSON.stringify(t45.arguments || {}, null, 2));
|
|
42005
42118
|
if (e42.appendChild(a68), t45.result) {
|
|
42006
|
-
const h52 = t45.result.error ? `Error: ${t45.result.error}` : t45.result.result || "",
|
|
42007
|
-
e42.appendChild(
|
|
42119
|
+
const h52 = t45.result.error ? `Error: ${t45.result.error}` : t45.result.result || "", m53 = this.createExpandableSection("Result", typeof h52 == "string" ? h52 : JSON.stringify(h52, null, 2));
|
|
42120
|
+
e42.appendChild(m53);
|
|
42008
42121
|
}
|
|
42009
42122
|
return e42;
|
|
42010
42123
|
}
|
|
@@ -42047,7 +42160,7 @@ var a26;
|
|
|
42047
42160
|
var l14 = function(r60, s52, i49, t45) {
|
|
42048
42161
|
var e42 = arguments.length, o52 = e42 < 3 ? s52 : t45 === null ? t45 = Object.getOwnPropertyDescriptor(s52, i49) : t45, c68;
|
|
42049
42162
|
if (typeof Reflect == "object" && typeof Reflect.decorate == "function") o52 = Reflect.decorate(r60, s52, i49, t45);
|
|
42050
|
-
else for (var
|
|
42163
|
+
else for (var m53 = r60.length - 1; m53 >= 0; m53--) (c68 = r60[m53]) && (o52 = (e42 < 3 ? c68(o52) : e42 > 3 ? c68(s52, i49, o52) : c68(s52, i49)) || o52);
|
|
42051
42164
|
return e42 > 3 && o52 && Object.defineProperty(s52, i49, o52), o52;
|
|
42052
42165
|
};
|
|
42053
42166
|
var n21 = (a26 = class extends UIGroup {
|
|
@@ -42230,8 +42343,8 @@ var i21 = (o23 = class extends UIInput {
|
|
|
42230
42343
|
r24([watch(["handle:mousedown", "handle:touchstart"])], i21.prototype, "onDragStart", null), r24([autobind], i21.prototype, "onDrag", null), r24([watch(["j.ow:mouseup", "j.ow:touchend"])], i21.prototype, "onDragEnd", null), r24([watch(":change")], i21.prototype, "onChangeSelfValue", null), i21 = r24([component], i21);
|
|
42231
42344
|
|
|
42232
42345
|
// node_modules/jodit-pro/esm/plugins/ai-assistant-pro/ui/settings-popup/dialog-settings.js
|
|
42233
|
-
var
|
|
42234
|
-
var h14 = (l47, e42) =>
|
|
42346
|
+
var f9 = Object.defineProperty;
|
|
42347
|
+
var h14 = (l47, e42) => f9(l47, "name", { value: e42, configurable: true });
|
|
42235
42348
|
var r25;
|
|
42236
42349
|
var d13 = function(l47, e42, t45, n49) {
|
|
42237
42350
|
var o52 = arguments.length, i49 = o52 < 3 ? e42 : n49 === null ? n49 = Object.getOwnPropertyDescriptor(e42, t45) : n49, a68;
|
|
@@ -42297,8 +42410,8 @@ d13([watch("state.defaultModel")], p18.prototype, "onDefaultModelChange", null),
|
|
|
42297
42410
|
|
|
42298
42411
|
// node_modules/jodit-pro/esm/plugins/ai-assistant-pro/ui/settings-popup/global-settings.js
|
|
42299
42412
|
init_decorators();
|
|
42300
|
-
var
|
|
42301
|
-
var p19 = (d49, t45) =>
|
|
42413
|
+
var m13 = Object.defineProperty;
|
|
42414
|
+
var p19 = (d49, t45) => m13(d49, "name", { value: t45, configurable: true });
|
|
42302
42415
|
var o24;
|
|
42303
42416
|
var u22 = function(d49, t45, e42, i49) {
|
|
42304
42417
|
var n49 = arguments.length, a68 = n49 < 3 ? t45 : i49 === null ? i49 = Object.getOwnPropertyDescriptor(t45, e42) : i49, l47;
|
|
@@ -42444,8 +42557,8 @@ c13([watch("state.theme"), hook("ready")], h16.prototype, "onChangeTheme", null)
|
|
|
42444
42557
|
// node_modules/jodit-pro/esm/plugins/ai-assistant-pro/ui/settings-button/settings-button.js
|
|
42445
42558
|
init_component();
|
|
42446
42559
|
init_watch();
|
|
42447
|
-
var
|
|
42448
|
-
var l16 = (p59, t45) =>
|
|
42560
|
+
var f10 = Object.defineProperty;
|
|
42561
|
+
var l16 = (p59, t45) => f10(p59, "name", { value: t45, configurable: true });
|
|
42449
42562
|
var s19;
|
|
42450
42563
|
var h17 = function(p59, t45, e42, o52) {
|
|
42451
42564
|
var n49 = arguments.length, i49 = n49 < 3 ? t45 : o52 === null ? o52 = Object.getOwnPropertyDescriptor(t45, e42) : o52, r60;
|
|
@@ -42479,7 +42592,7 @@ init_decorators();
|
|
|
42479
42592
|
var a28 = Object.defineProperty;
|
|
42480
42593
|
var d14 = (i49, e42) => a28(i49, "name", { value: e42, configurable: true });
|
|
42481
42594
|
var c14;
|
|
42482
|
-
var
|
|
42595
|
+
var f11 = function(i49, e42, o52, n49) {
|
|
42483
42596
|
var r60 = arguments.length, t45 = r60 < 3 ? e42 : n49 === null ? n49 = Object.getOwnPropertyDescriptor(e42, o52) : n49, s52;
|
|
42484
42597
|
if (typeof Reflect == "object" && typeof Reflect.decorate == "function") t45 = Reflect.decorate(i49, e42, o52, n49);
|
|
42485
42598
|
else for (var l47 = i49.length - 1; l47 >= 0; l47--) (s52 = i49[l47]) && (t45 = (r60 < 3 ? s52(t45) : r60 > 3 ? s52(e42, o52, t45) : s52(e42, o52)) || t45);
|
|
@@ -42502,7 +42615,7 @@ var v11 = (c14 = class extends UIElement {
|
|
|
42502
42615
|
</div>`;
|
|
42503
42616
|
}
|
|
42504
42617
|
}, d14(c14, "UIWelcomeScreen"), c14);
|
|
42505
|
-
v11 =
|
|
42618
|
+
v11 = f11([component], v11);
|
|
42506
42619
|
|
|
42507
42620
|
// node_modules/jodit-pro/esm/plugins/ai-assistant-pro/ui/main-panel/main-panel.js
|
|
42508
42621
|
init_decorators();
|
|
@@ -42659,10 +42772,10 @@ function c15() {
|
|
|
42659
42772
|
return { id: "", role: "assistant", content: "", artifacts: [], timestamp: Date.now(), toolCalls: [] };
|
|
42660
42773
|
}
|
|
42661
42774
|
t16(c15, "createAIMessage");
|
|
42662
|
-
function
|
|
42775
|
+
function m14(e42) {
|
|
42663
42776
|
return { id: "error_" + _4(), role: "assistant", content: `\u274C Error: ${e42.message}`, timestamp: Date.now(), toolCalls: [], artifacts: [] };
|
|
42664
42777
|
}
|
|
42665
|
-
t16(
|
|
42778
|
+
t16(m14, "createErrorMessage");
|
|
42666
42779
|
function d16(e42, r60) {
|
|
42667
42780
|
return __async(this, null, function* () {
|
|
42668
42781
|
if (!r60 || r60.length === 0) return r60;
|
|
@@ -42678,7 +42791,7 @@ t16(d16, "uploadArtifacts");
|
|
|
42678
42791
|
// node_modules/jodit-pro/esm/plugins/ai-assistant-pro/core/ai-response-handler.js
|
|
42679
42792
|
var l18 = Object.defineProperty;
|
|
42680
42793
|
var c16 = (a68, t45) => l18(a68, "name", { value: t45, configurable: true });
|
|
42681
|
-
function
|
|
42794
|
+
function m15(a68, t45, s52) {
|
|
42682
42795
|
return __async(this, null, function* () {
|
|
42683
42796
|
let e42 = c15(), r60 = -1;
|
|
42684
42797
|
try {
|
|
@@ -42698,7 +42811,7 @@ function m16(a68, t45, s52) {
|
|
|
42698
42811
|
break;
|
|
42699
42812
|
}
|
|
42700
42813
|
case "error": {
|
|
42701
|
-
const o52 =
|
|
42814
|
+
const o52 = m14(n49.error);
|
|
42702
42815
|
e42 = __spreadProps(__spreadValues({}, e42), { id: o52.id, content: o52.content });
|
|
42703
42816
|
break;
|
|
42704
42817
|
}
|
|
@@ -42721,7 +42834,7 @@ function m16(a68, t45, s52) {
|
|
|
42721
42834
|
return { aiMessage: e42, index: r60, conversation: s52 };
|
|
42722
42835
|
});
|
|
42723
42836
|
}
|
|
42724
|
-
c16(
|
|
42837
|
+
c16(m15, "processStreamingResponse");
|
|
42725
42838
|
function u24(a68, t45) {
|
|
42726
42839
|
const s52 = __spreadProps(__spreadValues({}, c15()), { id: a68.response.responseId, content: a68.response.content, toolCalls: a68.response.toolCalls || [], artifacts: a68.response.artifacts || [] }), e42 = t45.messages.slice();
|
|
42727
42840
|
e42.push(s52), t45 = __spreadProps(__spreadValues({}, t45), { messages: e42, updated: Date.now() });
|
|
@@ -42744,7 +42857,7 @@ c16(h18, "processArtifacts");
|
|
|
42744
42857
|
var i23 = Object.defineProperty;
|
|
42745
42858
|
var o25 = (t45, e42) => i23(t45, "name", { value: e42, configurable: true });
|
|
42746
42859
|
function g10(t45, e42, s52, a68 = []) {
|
|
42747
|
-
const n49 = t45.o.aiAssistantPro, r60 = { id:
|
|
42860
|
+
const n49 = t45.o.aiAssistantPro, r60 = { id: f7(), created: Date.now(), updated: Date.now(), messages: a68, permissions: [], options: { model: e42 != null ? e42 : n49.defaultModel, temperature: s52 != null ? s52 : n49.defaultTemperature } };
|
|
42748
42861
|
return t45.e.fire("conversationCreated.ai-assistant-pro", r60), r60;
|
|
42749
42862
|
}
|
|
42750
42863
|
o25(g10, "createNewConversation");
|
|
@@ -42761,11 +42874,11 @@ function l19(t45) {
|
|
|
42761
42874
|
return d17.has(t45);
|
|
42762
42875
|
}
|
|
42763
42876
|
o25(l19, "isTerminalToolCallStatus");
|
|
42764
|
-
function
|
|
42877
|
+
function m16(t45) {
|
|
42765
42878
|
const e42 = t45.messages[t45.messages.length - 1];
|
|
42766
42879
|
return (e42 == null ? void 0 : e42.toolCalls) ? e42.toolCalls.every((s52) => l19(s52.status)) : false;
|
|
42767
42880
|
}
|
|
42768
|
-
o25(
|
|
42881
|
+
o25(m16, "areAllToolCallsExecuted");
|
|
42769
42882
|
function p22(t45) {
|
|
42770
42883
|
return t45.messages.filter((e42) => e42.toolCalls && e42.toolCalls.length > 0 && e42.toolCalls.some((s52) => !l19(s52.status)));
|
|
42771
42884
|
}
|
|
@@ -42798,14 +42911,14 @@ a30(c17, "updateToolCallInMessage");
|
|
|
42798
42911
|
|
|
42799
42912
|
// node_modules/jodit-pro/esm/plugins/ai-assistant-pro/core/event-handlers.js
|
|
42800
42913
|
init_constants();
|
|
42801
|
-
var
|
|
42802
|
-
var t17 = (e42, o52) =>
|
|
42803
|
-
function L3(e42, o52, n49, i49,
|
|
42914
|
+
var m17 = Object.defineProperty;
|
|
42915
|
+
var t17 = (e42, o52) => m17(e42, "name", { value: o52, configurable: true });
|
|
42916
|
+
function L3(e42, o52, n49, i49, f46) {
|
|
42804
42917
|
return __async(this, null, function* () {
|
|
42805
42918
|
const s52 = n49.getPendingToolCalls().find((c68) => c68.id === e42);
|
|
42806
42919
|
if (!s52) return console.error("Tool call not found:", e42), null;
|
|
42807
42920
|
const l47 = i49.grantPermission(s52.name, o52), r60 = n49.getCurrentConversation();
|
|
42808
|
-
return r60 && (r60.permissions.push(l47), yield
|
|
42921
|
+
return r60 && (r60.permissions.push(l47), yield f46.save(r60)), n49.removePendingToolCall(e42), __spreadProps(__spreadValues({}, s52), { status: "approved" });
|
|
42809
42922
|
});
|
|
42810
42923
|
}
|
|
42811
42924
|
t17(L3, "handleToolApproval");
|
|
@@ -42868,8 +42981,8 @@ t17(S2, "handleConversationSearch");
|
|
|
42868
42981
|
|
|
42869
42982
|
// node_modules/jodit-pro/esm/plugins/ai-assistant-pro/core/panel-resize.js
|
|
42870
42983
|
init_css();
|
|
42871
|
-
var
|
|
42872
|
-
var l20 = (r60, t45) =>
|
|
42984
|
+
var f12 = Object.defineProperty;
|
|
42985
|
+
var l20 = (r60, t45) => f12(r60, "name", { value: t45, configurable: true });
|
|
42873
42986
|
function i24(r60) {
|
|
42874
42987
|
switch (r60) {
|
|
42875
42988
|
case "left":
|
|
@@ -42906,7 +43019,7 @@ r27(o26, "getCurrentSelectionContext");
|
|
|
42906
43019
|
init_constants();
|
|
42907
43020
|
var d19 = Object.defineProperty;
|
|
42908
43021
|
var r28 = (s52, i49) => d19(s52, "name", { value: i49, configurable: true });
|
|
42909
|
-
function
|
|
43022
|
+
function f13(s52, i49, e42, n49, t45) {
|
|
42910
43023
|
return __async(this, null, function* () {
|
|
42911
43024
|
try {
|
|
42912
43025
|
n49.setLoading(true), yield e42.delete(i49), n49.removeConversation(i49), t45.clearConversationPermissions(i49);
|
|
@@ -42921,7 +43034,7 @@ function f12(s52, i49, e42, n49, t45) {
|
|
|
42921
43034
|
}
|
|
42922
43035
|
});
|
|
42923
43036
|
}
|
|
42924
|
-
r28(
|
|
43037
|
+
r28(f13, "deleteConversationWithCleanup");
|
|
42925
43038
|
function w7(s52, i49, e42) {
|
|
42926
43039
|
return __async(this, null, function* () {
|
|
42927
43040
|
var n49;
|
|
@@ -42943,8 +43056,8 @@ function w7(s52, i49, e42) {
|
|
|
42943
43056
|
r28(w7, "loadInitialData");
|
|
42944
43057
|
|
|
42945
43058
|
// node_modules/jodit-pro/esm/plugins/ai-assistant-pro/core/theme.js
|
|
42946
|
-
var
|
|
42947
|
-
var _5 = (v19, t45) =>
|
|
43059
|
+
var m18 = Object.defineProperty;
|
|
43060
|
+
var _5 = (v19, t45) => m18(v19, "name", { value: t45, configurable: true });
|
|
42948
43061
|
var l21 = ["jodit_theme_dark", "jodit-ai-assistant-pro_theme_dark", "jodit-dialog_theme_dark"];
|
|
42949
43062
|
var e15 = ["jodit_theme_light", "jodit-ai-assistant-pro_theme_light", "jodit-dialog_theme_light"];
|
|
42950
43063
|
function u25(v19, t45, a68, o52, s52) {
|
|
@@ -43029,13 +43142,13 @@ var h19 = class h20 {
|
|
|
43029
43142
|
}
|
|
43030
43143
|
};
|
|
43031
43144
|
b11(h19, "UIFlightPosition");
|
|
43032
|
-
var
|
|
43145
|
+
var f14 = h19;
|
|
43033
43146
|
|
|
43034
43147
|
// node_modules/jodit-pro/esm/traits/resize/resize.js
|
|
43035
43148
|
init_dom();
|
|
43036
43149
|
init_css();
|
|
43037
|
-
var
|
|
43038
|
-
var r30 = (u62, i49) =>
|
|
43150
|
+
var f15 = Object.defineProperty;
|
|
43151
|
+
var r30 = (u62, i49) => f15(u62, "name", { value: i49, configurable: true });
|
|
43039
43152
|
var a31 = class a32 {
|
|
43040
43153
|
static remove(i49) {
|
|
43041
43154
|
i49.container.classList.remove("jodit-ui-resize"), Dom.safeRemove(i49.container.querySelector(".jodit-ui-resize__handle"));
|
|
@@ -43066,12 +43179,12 @@ var h21 = a31;
|
|
|
43066
43179
|
|
|
43067
43180
|
// node_modules/jodit-pro/esm/plugins/ai-assistant-pro/ai-assistant-pro.js
|
|
43068
43181
|
var j5 = Object.defineProperty;
|
|
43069
|
-
var
|
|
43182
|
+
var f16 = (m53, t45) => j5(m53, "name", { value: t45, configurable: true });
|
|
43070
43183
|
var u26;
|
|
43071
|
-
var h22 = function(
|
|
43184
|
+
var h22 = function(m53, t45, e42, a68) {
|
|
43072
43185
|
var s52 = arguments.length, i49 = s52 < 3 ? t45 : a68 === null ? a68 = Object.getOwnPropertyDescriptor(t45, e42) : a68, n49;
|
|
43073
|
-
if (typeof Reflect == "object" && typeof Reflect.decorate == "function") i49 = Reflect.decorate(
|
|
43074
|
-
else for (var o52 =
|
|
43186
|
+
if (typeof Reflect == "object" && typeof Reflect.decorate == "function") i49 = Reflect.decorate(m53, t45, e42, a68);
|
|
43187
|
+
else for (var o52 = m53.length - 1; o52 >= 0; o52--) (n49 = m53[o52]) && (i49 = (s52 < 3 ? n49(i49) : s52 > 3 ? n49(t45, e42, i49) : n49(t45, e42)) || i49);
|
|
43075
43188
|
return s52 > 3 && i49 && Object.defineProperty(t45, e42, i49), i49;
|
|
43076
43189
|
};
|
|
43077
43190
|
var r31 = (u26 = class extends Plugin {
|
|
@@ -43082,13 +43195,13 @@ var r31 = (u26 = class extends Plugin {
|
|
|
43082
43195
|
return this.stateManager.state;
|
|
43083
43196
|
}
|
|
43084
43197
|
get toolRegistry() {
|
|
43085
|
-
return new
|
|
43198
|
+
return new f8(this.j);
|
|
43086
43199
|
}
|
|
43087
43200
|
get permissionManager() {
|
|
43088
43201
|
return new u17(this.j, this.toolRegistry);
|
|
43089
43202
|
}
|
|
43090
43203
|
get apiClient() {
|
|
43091
|
-
return new
|
|
43204
|
+
return new m10(this.j, this.toolRegistry);
|
|
43092
43205
|
}
|
|
43093
43206
|
get storage() {
|
|
43094
43207
|
const { storage: t45, storageKey: e42, maxConversations: a68 } = this.j.o.aiAssistantPro;
|
|
@@ -43208,11 +43321,11 @@ var r31 = (u26 = class extends Plugin {
|
|
|
43208
43321
|
break;
|
|
43209
43322
|
}
|
|
43210
43323
|
case "flight": {
|
|
43211
|
-
|
|
43324
|
+
f14.install(this.mainPanel, this.j.container, { panelHeight: a68, containerClassName: this.getFullElName("flight-container") });
|
|
43212
43325
|
break;
|
|
43213
43326
|
}
|
|
43214
43327
|
default: {
|
|
43215
|
-
t45 && (h21.remove(this.mainPanel), h21.install(this.mainPanel, i24(s52), { handleClassName: this.getFullElName("ai-assistent-resize-handle"), onResize:
|
|
43328
|
+
t45 && (h21.remove(this.mainPanel), h21.install(this.mainPanel, i24(s52), { handleClassName: this.getFullElName("ai-assistent-resize-handle"), onResize: f16(({ newSize: o52 }) => {
|
|
43216
43329
|
const l47 = s52 === "left" || s52 === "right" ? o52 : i49, g21 = s52 === "top" || s52 === "bottom" ? o52 : n49;
|
|
43217
43330
|
return this.stateManager.state.panelWidth = l47, this.stateManager.state.panelHeight = g21, true;
|
|
43218
43331
|
}, "onResize") })), this.j.currentPlace.slots[s52].appendChild(this.mainPanel.container), P3(this.j, s52, i49, n49);
|
|
@@ -43245,7 +43358,7 @@ var r31 = (u26 = class extends Plugin {
|
|
|
43245
43358
|
});
|
|
43246
43359
|
}
|
|
43247
43360
|
__closeFlightMode() {
|
|
43248
|
-
|
|
43361
|
+
f14.remove(this.mainPanel);
|
|
43249
43362
|
}
|
|
43250
43363
|
__onSavedStateChange() {
|
|
43251
43364
|
var t45;
|
|
@@ -43339,7 +43452,7 @@ ${n49}`.trim();
|
|
|
43339
43452
|
const s52 = C4(a68), [i49] = yield Promise.all([this.apiClient.sendRequest(a68.id, a68.messages, s52, this.stateManager.getSelectionContexts(), a68.options), this.storage.save(a68)]);
|
|
43340
43453
|
let n49, o52;
|
|
43341
43454
|
if (i49.mode === "stream") {
|
|
43342
|
-
const l47 = yield
|
|
43455
|
+
const l47 = yield m15(this.stateManager, i49, a68);
|
|
43343
43456
|
n49 = l47.aiMessage, o52 = l47.index, a68 = l47.conversation;
|
|
43344
43457
|
} else {
|
|
43345
43458
|
const l47 = u24(i49, a68);
|
|
@@ -43350,7 +43463,7 @@ ${n49}`.trim();
|
|
|
43350
43463
|
}
|
|
43351
43464
|
deleteConversation(t45) {
|
|
43352
43465
|
return __async(this, null, function* () {
|
|
43353
|
-
yield this.__loadData(), yield
|
|
43466
|
+
yield this.__loadData(), yield f13(this.j, t45, this.storage, this.stateManager, this.permissionManager);
|
|
43354
43467
|
});
|
|
43355
43468
|
}
|
|
43356
43469
|
renameConversation(t45, e42) {
|
|
@@ -43391,7 +43504,7 @@ ${n49}`.trim();
|
|
|
43391
43504
|
const i49 = yield d18(this.j, e42, this.toolRegistry), n49 = s52.messages.findIndex((g21) => g21.id === t45);
|
|
43392
43505
|
if (n49 === -1) return;
|
|
43393
43506
|
const o52 = s52.messages[n49], l47 = s52.messages.slice();
|
|
43394
|
-
l47[n49] = c17(o52, i49), s52 = __spreadProps(__spreadValues({}, s52), { messages: l47, updated: Date.now() }), this.stateManager.setCurrentConversation(s52),
|
|
43507
|
+
l47[n49] = c17(o52, i49), s52 = __spreadProps(__spreadValues({}, s52), { messages: l47, updated: Date.now() }), this.stateManager.setCurrentConversation(s52), m16(s52) && (yield this.sendRequestToAI(a68 + 1));
|
|
43395
43508
|
});
|
|
43396
43509
|
}
|
|
43397
43510
|
copyMessage(t45) {
|
|
@@ -43443,7 +43556,7 @@ ${n49}`.trim();
|
|
|
43443
43556
|
var t45, e42, a68, s52, i49, n49, o52, l47;
|
|
43444
43557
|
this.__closeFlightMode(), (t45 = cached(this, "toolRegistry")) === null || t45 === void 0 || t45.destruct(), (e42 = cached(this, "permissionManager")) === null || e42 === void 0 || e42.destruct(), (a68 = cached(this, "apiClient")) === null || a68 === void 0 || a68.destruct(), (s52 = cached(this, "stateManager")) === null || s52 === void 0 || s52.destruct(), (i49 = cached(this, "mainPanel")) === null || i49 === void 0 || i49.destruct(), (n49 = cached(this, "dialog")) === null || n49 === void 0 || n49.destruct(), (l47 = (o52 = cached(this, "storage")) === null || o52 === void 0 ? void 0 : o52.close) === null || l47 === void 0 || l47.call(o52);
|
|
43445
43558
|
}
|
|
43446
|
-
},
|
|
43559
|
+
}, f16(u26, "aiAssistantPro"), u26);
|
|
43447
43560
|
r31.requires = ["license"], h22([cache], r31.prototype, "toolRegistry", null), h22([cache], r31.prototype, "permissionManager", null), h22([cache], r31.prototype, "apiClient", null), h22([cache], r31.prototype, "storage", null), h22([cache], r31.prototype, "stateManager", null), h22([cache], r31.prototype, "mainPanel", null), h22([cache], r31.prototype, "dialog", null), h22([watch("state.theme")], r31.prototype, "__applyTheme", null), h22([watch(":openAIAssistantPro.ai-assistant-pro")], r31.prototype, "openAssistant", null), h22([watch([":resize", "state.panelWidth", "state.panelHeight"])], r31.prototype, "__onResizeInPanelView", null), h22([watch(["state.isOpen", "state.displayMode", "state.panelWidth", "state.panelHeight", "state.theme", "state.defaultModel", "state.defaultTemperature", "state.currentConversation"]), debounce()], r31.prototype, "__onSavedStateChange", null), h22([watch(":closeAIAssistantPro.ai-assistant-pro")], r31.prototype, "closeAssistant", null), h22([watch(":addContextToAIAssistant.ai-assistant-pro")], r31.prototype, "addCurrentSelectionToContext", null), h22([watch(":executeQuickCommand.ai-assistant-pro")], r31.prototype, "executeQuickCommand", null), h22([watch(":sendMessage.ai-assistant-pro")], r31.prototype, "sendMessage", null), h22([watch(":searchConversations.ai-assistant-pro")], r31.prototype, "searchConversations", null), h22([watch(":copyMessage.ai-assistant-pro")], r31.prototype, "copyMessage", null), h22([watch(":restartFromMessage.ai-assistant-pro")], r31.prototype, "restartFromMessage", null), h22([watch(":editMessage.ai-assistant-pro")], r31.prototype, "editMessage", null), h22([watch(":cancelEditMessage.ai-assistant-pro")], r31.prototype, "cancelEditMessage", null), h22([watch(":deleteMessage.ai-assistant-pro")], r31.prototype, "deleteMessage", null), r31 = h22([component], r31);
|
|
43448
43561
|
n11.plugins.add("aiAssistantPro", r31);
|
|
43449
43562
|
|
|
@@ -43484,8 +43597,8 @@ var r33 = e16;
|
|
|
43484
43597
|
|
|
43485
43598
|
// node_modules/jodit-pro/esm/plugins/backup/ui/item.js
|
|
43486
43599
|
init_helpers();
|
|
43487
|
-
var
|
|
43488
|
-
var o27 = (a68, t45) =>
|
|
43600
|
+
var f17 = Object.defineProperty;
|
|
43601
|
+
var o27 = (a68, t45) => f17(a68, "name", { value: t45, configurable: true });
|
|
43489
43602
|
var n24 = class n25 extends UIElement {
|
|
43490
43603
|
className() {
|
|
43491
43604
|
return "UIBackupItem";
|
|
@@ -43508,8 +43621,8 @@ var s24 = n24;
|
|
|
43508
43621
|
init_constants();
|
|
43509
43622
|
init_decorators();
|
|
43510
43623
|
init_helpers();
|
|
43511
|
-
var
|
|
43512
|
-
var a34 = (l47, e42) =>
|
|
43624
|
+
var f18 = Object.defineProperty;
|
|
43625
|
+
var a34 = (l47, e42) => f18(l47, "name", { value: e42, configurable: true });
|
|
43513
43626
|
var c18;
|
|
43514
43627
|
var h23 = function(l47, e42, t45, n49) {
|
|
43515
43628
|
var o52 = arguments.length, i49 = o52 < 3 ? e42 : n49 === null ? n49 = Object.getOwnPropertyDescriptor(e42, t45) : n49, r60;
|
|
@@ -43604,8 +43717,8 @@ p23([autobind], l23.prototype, "onSelectItem", null), p23([autobind], l23.protot
|
|
|
43604
43717
|
// node_modules/jodit-pro/esm/plugins/backup/backup.js
|
|
43605
43718
|
init_decorators();
|
|
43606
43719
|
init_plugin2();
|
|
43607
|
-
var
|
|
43608
|
-
var u28 = (l47, t45) =>
|
|
43720
|
+
var f19 = Object.defineProperty;
|
|
43721
|
+
var u28 = (l47, t45) => f19(l47, "name", { value: t45, configurable: true });
|
|
43609
43722
|
var h24 = function(l47, t45, o52, n49) {
|
|
43610
43723
|
var s52 = arguments.length, e42 = s52 < 3 ? t45 : n49 === null ? n49 = Object.getOwnPropertyDescriptor(t45, o52) : n49, i49;
|
|
43611
43724
|
if (typeof Reflect == "object" && typeof Reflect.decorate == "function") e42 = Reflect.decorate(l47, t45, o52, n49);
|
|
@@ -43696,7 +43809,7 @@ init_checker();
|
|
|
43696
43809
|
init_assert();
|
|
43697
43810
|
var O2 = Object.defineProperty;
|
|
43698
43811
|
var b12 = (u62, o52) => O2(u62, "name", { value: o52, configurable: true });
|
|
43699
|
-
var
|
|
43812
|
+
var f20;
|
|
43700
43813
|
var _6 = function(u62, o52, e42, d49) {
|
|
43701
43814
|
var n49 = arguments.length, r60 = n49 < 3 ? o52 : d49 === null ? d49 = Object.getOwnPropertyDescriptor(o52, e42) : d49, l47;
|
|
43702
43815
|
if (typeof Reflect == "object" && typeof Reflect.decorate == "function") r60 = Reflect.decorate(u62, o52, e42, d49);
|
|
@@ -43704,7 +43817,7 @@ var _6 = function(u62, o52, e42, d49) {
|
|
|
43704
43817
|
return n49 > 3 && r60 && Object.defineProperty(o52, e42, r60), r60;
|
|
43705
43818
|
};
|
|
43706
43819
|
var x7;
|
|
43707
|
-
var p27 = x7 = (
|
|
43820
|
+
var p27 = x7 = (f20 = class extends UIElement {
|
|
43708
43821
|
className() {
|
|
43709
43822
|
return "UIGButton";
|
|
43710
43823
|
}
|
|
@@ -43741,7 +43854,7 @@ var p27 = x7 = (f19 = class extends UIElement {
|
|
|
43741
43854
|
s52 && (i49.solid = false, i49.bgStart = s52[1] || i49.bgStart, i49.bgEnd = s52[2] || "#5cbf2a");
|
|
43742
43855
|
}
|
|
43743
43856
|
return i49;
|
|
43744
|
-
}, "extractColors"),
|
|
43857
|
+
}, "extractColors"), m53 = b12((c68, a68, i49, S5) => {
|
|
43745
43858
|
const s52 = t45[i49];
|
|
43746
43859
|
return !s52 || ["none", "inherit", "initial", "unset"].includes(s52) ? { [i49]: false } : (s52.replace(/,\s/g, ",").split(/\s+/).forEach((h52) => {
|
|
43747
43860
|
if (/[0-9.]+(px|pt|em|%)/.test(h52)) {
|
|
@@ -43750,9 +43863,9 @@ var p27 = x7 = (f19 = class extends UIElement {
|
|
|
43750
43863
|
} else h52 === "inset" ? a68.boxShadowInset = true : a68[S5] = h52;
|
|
43751
43864
|
}), a68[i49] = true, a68);
|
|
43752
43865
|
}, "extractShadow");
|
|
43753
|
-
Object.assign(o52, __spreadValues(__spreadProps(__spreadValues(__spreadProps(__spreadValues({ text: e42.innerText, className: e42.className, href: e42.getAttribute("href") || "" }, C13()), { borderColor: (n49 = t45 == null ? void 0 : t45.borderColor) !== null && n49 !== void 0 ? n49 : "#18ab29", borderRadius: (r60 = t45 == null ? void 0 : t45.borderRadius) !== null && r60 !== void 0 ? r60 : 0, borderSize: (l47 = t45 == null ? void 0 : t45.borderWidth) !== null && l47 !== void 0 ? l47 : 1 }),
|
|
43866
|
+
Object.assign(o52, __spreadValues(__spreadProps(__spreadValues(__spreadProps(__spreadValues({ text: e42.innerText, className: e42.className, href: e42.getAttribute("href") || "" }, C13()), { borderColor: (n49 = t45 == null ? void 0 : t45.borderColor) !== null && n49 !== void 0 ? n49 : "#18ab29", borderRadius: (r60 = t45 == null ? void 0 : t45.borderRadius) !== null && r60 !== void 0 ? r60 : 0, borderSize: (l47 = t45 == null ? void 0 : t45.borderWidth) !== null && l47 !== void 0 ? l47 : 1 }), m53(["boxShadowOffsetX", "boxShadowOffsetY", "boxShadowBlurRadius", "boxShadowSpreadRadius"], { boxShadowBlurRadius: 0, boxShadowColor: "#3dc21b", boxShadowInset: false, boxShadowOffsetX: 0, boxShadowOffsetY: 0, boxShadowSpreadRadius: 0 }, "boxShadow", "boxShadowColor")), { fontColor: t45.color, fontFamily: t45.fontFamily, fontSize: t45.fontSize, fontWeight: t45.fontWeight === "bold", fontItalic: t45.fontStyle === "italic", paddingX: t45.paddingLeft, paddingY: t45.paddingTop }), m53(["textShadowOffsetX", "textShadowOffsetY", "textShadowBlurRadius"], { textShadowBlurRadius: 0, textShadowColor: "#2f6627", textShadowOffsetX: 0, textShadowOffsetY: 1 }, "textShadow", "textShadowColor")));
|
|
43754
43867
|
}
|
|
43755
|
-
}, b12(
|
|
43868
|
+
}, b12(f20, "UIGButton"), f20);
|
|
43756
43869
|
_6([watch("style")], p27.prototype, "__updateStyles", null), p27 = x7 = _6([component], p27);
|
|
43757
43870
|
|
|
43758
43871
|
// node_modules/jodit-pro/esm/plugins/button-generator/ui/generator/button-generator.js
|
|
@@ -43767,7 +43880,7 @@ init_dom();
|
|
|
43767
43880
|
init_to_array();
|
|
43768
43881
|
init_assert();
|
|
43769
43882
|
var v12 = Object.defineProperty;
|
|
43770
|
-
var o28 = (
|
|
43883
|
+
var o28 = (m53, i49) => v12(m53, "name", { value: i49, configurable: true });
|
|
43771
43884
|
var r35 = class r36 extends UIElement {
|
|
43772
43885
|
className() {
|
|
43773
43886
|
return "UIFormButtonGenerator";
|
|
@@ -43911,10 +44024,10 @@ init_constants();
|
|
|
43911
44024
|
init_decorators();
|
|
43912
44025
|
init_helpers();
|
|
43913
44026
|
init_assert();
|
|
43914
|
-
var
|
|
43915
|
-
var u29 = (a68, e42) =>
|
|
44027
|
+
var m19 = Object.defineProperty;
|
|
44028
|
+
var u29 = (a68, e42) => m19(a68, "name", { value: e42, configurable: true });
|
|
43916
44029
|
var l24;
|
|
43917
|
-
var
|
|
44030
|
+
var f21 = function(a68, e42, t45, o52) {
|
|
43918
44031
|
var r60 = arguments.length, i49 = r60 < 3 ? e42 : o52 === null ? o52 = Object.getOwnPropertyDescriptor(e42, t45) : o52, n49;
|
|
43919
44032
|
if (typeof Reflect == "object" && typeof Reflect.decorate == "function") i49 = Reflect.decorate(a68, e42, t45, o52);
|
|
43920
44033
|
else for (var s52 = a68.length - 1; s52 >= 0; s52--) (n49 = a68[s52]) && (i49 = (r60 < 3 ? n49(i49) : r60 > 3 ? n49(e42, t45, i49) : n49(e42, t45)) || i49);
|
|
@@ -43953,7 +44066,7 @@ var c19 = (l24 = class extends UIInput {
|
|
|
43953
44066
|
e42.key === KEY_ESC && ((t45 = this.popup) === null || t45 === void 0 || t45.close());
|
|
43954
44067
|
}
|
|
43955
44068
|
}, u29(l24, "ColorInput"), l24);
|
|
43956
|
-
|
|
44069
|
+
f21([watch(":change")], c19.prototype, "onChangeSelfValue", null), f21([watch("nativeInput:keydown")], c19.prototype, "onEscKeyDown", null), c19 = f21([component], c19);
|
|
43957
44070
|
|
|
43958
44071
|
// node_modules/jodit-pro/esm/plugins/button-generator/ui/preview/preview.js
|
|
43959
44072
|
var u30 = Object.defineProperty;
|
|
@@ -44001,7 +44114,7 @@ var a37;
|
|
|
44001
44114
|
var b13 = function(i49, t45, e42, o52) {
|
|
44002
44115
|
var s52 = arguments.length, r60 = s52 < 3 ? t45 : o52 === null ? o52 = Object.getOwnPropertyDescriptor(t45, e42) : o52, n49;
|
|
44003
44116
|
if (typeof Reflect == "object" && typeof Reflect.decorate == "function") r60 = Reflect.decorate(i49, t45, e42, o52);
|
|
44004
|
-
else for (var
|
|
44117
|
+
else for (var f46 = i49.length - 1; f46 >= 0; f46--) (n49 = i49[f46]) && (r60 = (s52 < 3 ? n49(r60) : s52 > 3 ? n49(t45, e42, r60) : n49(t45, e42)) || r60);
|
|
44005
44118
|
return s52 > 3 && r60 && Object.defineProperty(t45, e42, r60), r60;
|
|
44006
44119
|
};
|
|
44007
44120
|
var l25;
|
|
@@ -44099,9 +44212,9 @@ init_data_bind();
|
|
|
44099
44212
|
Config.prototype.controls.changeCase = { tooltip: "Change case", icon: C5, list: ["lowercase", "UPPERCASE", "Title Case"], isDisabled(e42) {
|
|
44100
44213
|
return !e42.s.current();
|
|
44101
44214
|
}, exec(e42, o52, { control: a68 }) {
|
|
44102
|
-
const c68 = a68.command + "Selected",
|
|
44103
|
-
if (!
|
|
44104
|
-
dataBind(e42, c68,
|
|
44215
|
+
const c68 = a68.command + "Selected", m53 = a68.args && a68.args[0] || dataBind(e42, c68);
|
|
44216
|
+
if (!m53 || !a68.command) return false;
|
|
44217
|
+
dataBind(e42, c68, m53), e42.execCommand(a68.command, null, m53);
|
|
44105
44218
|
}, command: "changeCase" };
|
|
44106
44219
|
|
|
44107
44220
|
// node_modules/jodit-pro/esm/plugins/change-case/change-case.js
|
|
@@ -44109,13 +44222,13 @@ init_dom();
|
|
|
44109
44222
|
init_ucfirst();
|
|
44110
44223
|
init_plugin2();
|
|
44111
44224
|
var R2 = Object.defineProperty;
|
|
44112
|
-
var l26 = (
|
|
44225
|
+
var l26 = (m53, e42) => R2(m53, "name", { value: e42, configurable: true });
|
|
44113
44226
|
var p30 = class p31 extends Plugin {
|
|
44114
44227
|
constructor() {
|
|
44115
44228
|
super(...arguments), this.buttons = [{ name: "changeCase", group: "font-style" }];
|
|
44116
44229
|
}
|
|
44117
44230
|
afterInit(e42) {
|
|
44118
|
-
e42.registerCommand("changeCase", { exec: l26((a68,
|
|
44231
|
+
e42.registerCommand("changeCase", { exec: l26((a68, f46, t45) => {
|
|
44119
44232
|
t45 = t45.toLowerCase();
|
|
44120
44233
|
const s52 = e42.s.range, { startContainer: g21, startOffset: h52 } = s52;
|
|
44121
44234
|
if (e42.s.isCollapsed()) {
|
|
@@ -44130,7 +44243,7 @@ var p30 = class p31 extends Plugin {
|
|
|
44130
44243
|
}, "exec") });
|
|
44131
44244
|
}
|
|
44132
44245
|
applyCase(e42, a68) {
|
|
44133
|
-
const
|
|
44246
|
+
const f46 = l26((t45) => {
|
|
44134
44247
|
switch (e42) {
|
|
44135
44248
|
case "lowercase":
|
|
44136
44249
|
return t45.toLowerCase();
|
|
@@ -44142,7 +44255,7 @@ var p30 = class p31 extends Plugin {
|
|
|
44142
44255
|
}, "change");
|
|
44143
44256
|
if (Dom.isText(a68)) {
|
|
44144
44257
|
const t45 = a68.nodeValue;
|
|
44145
|
-
t45 && (a68.nodeValue =
|
|
44258
|
+
t45 && (a68.nodeValue = f46(t45));
|
|
44146
44259
|
} else Dom.each(a68, (t45) => {
|
|
44147
44260
|
this.applyCase(e42, t45);
|
|
44148
44261
|
});
|
|
@@ -44160,7 +44273,7 @@ init_dom();
|
|
|
44160
44273
|
init_plugin2();
|
|
44161
44274
|
var u34 = Object.defineProperty;
|
|
44162
44275
|
var p32 = (i49, e42) => u34(i49, "name", { value: e42, configurable: true });
|
|
44163
|
-
var
|
|
44276
|
+
var m20 = function(i49, e42, o52, t45) {
|
|
44164
44277
|
var n49 = arguments.length, r60 = n49 < 3 ? e42 : t45 === null ? t45 = Object.getOwnPropertyDescriptor(e42, o52) : t45, l47;
|
|
44165
44278
|
if (typeof Reflect == "object" && typeof Reflect.decorate == "function") r60 = Reflect.decorate(i49, e42, o52, t45);
|
|
44166
44279
|
else for (var c68 = i49.length - 1; c68 >= 0; c68--) (l47 = i49[c68]) && (r60 = (n49 < 3 ? l47(r60) : n49 > 3 ? l47(e42, o52, r60) : l47(e42, o52)) || r60);
|
|
@@ -44183,15 +44296,15 @@ var a38 = class a39 extends Plugin {
|
|
|
44183
44296
|
}
|
|
44184
44297
|
};
|
|
44185
44298
|
p32(a38, "colorPicker");
|
|
44186
|
-
var
|
|
44187
|
-
|
|
44299
|
+
var f22 = a38;
|
|
44300
|
+
f22.requires = ["license"], m20([autobind], f22.prototype, "onAfterGenerateColorPicker", null), n11.plugins.add("color-picker", f22);
|
|
44188
44301
|
|
|
44189
44302
|
// node_modules/jodit-pro/esm/plugins/emoji/ui/emoji.js
|
|
44190
44303
|
init_decorators();
|
|
44191
44304
|
init_dom();
|
|
44192
44305
|
init_helpers();
|
|
44193
44306
|
var j6 = Object.defineProperty;
|
|
44194
|
-
var
|
|
44307
|
+
var f23 = (u62, t45) => j6(u62, "name", { value: t45, configurable: true });
|
|
44195
44308
|
var h27;
|
|
44196
44309
|
var l27 = function(u62, t45, i49, e42) {
|
|
44197
44310
|
var o52 = arguments.length, s52 = o52 < 3 ? t45 : e42 === null ? e42 = Object.getOwnPropertyDescriptor(t45, i49) : e42, a68;
|
|
@@ -44248,8 +44361,8 @@ var n27 = c21 = (h27 = class extends UIElement {
|
|
|
44248
44361
|
const v19 = (r60 = this.cache[e42]) !== null && r60 !== void 0 ? r60 : this.j.c.div(this.getFullElName("category-title"), e42 ? this.j.i18n(e42) : "");
|
|
44249
44362
|
this.cache[e42] = v19, o52.push(v19);
|
|
44250
44363
|
}
|
|
44251
|
-
const
|
|
44252
|
-
return this.cache[s52.emoji + s52.category] =
|
|
44364
|
+
const m53 = (p59 = this.cache[s52.emoji + s52.category]) !== null && p59 !== void 0 ? p59 : this.j.c.div(this.getFullElName("emoji"), { "data-id": a68, "data-value": s52.emoji }, s52.emoji);
|
|
44365
|
+
return this.cache[s52.emoji + s52.category] = m53, o52.push(m53), o52;
|
|
44253
44366
|
}, []);
|
|
44254
44367
|
}
|
|
44255
44368
|
static isShortCat(t45) {
|
|
@@ -44305,7 +44418,7 @@ var n27 = c21 = (h27 = class extends UIElement {
|
|
|
44305
44418
|
destruct() {
|
|
44306
44419
|
return this.input.destruct(), super.destruct();
|
|
44307
44420
|
}
|
|
44308
|
-
},
|
|
44421
|
+
}, f23(h27, "Emoji"), h27);
|
|
44309
44422
|
l27([persistent], n27.prototype, "recent", void 0), l27([throttle()], n27.prototype, "onScrollList", null), l27([autobind], n27.prototype, "onClickCategory", null), l27([autobind], n27.prototype, "onClickItem", null), l27([debounce()], n27.prototype, "onInputFilter", null), l27([hook("ready")], n27.prototype, "onReady", null), n27 = c21 = l27([component], n27);
|
|
44310
44423
|
|
|
44311
44424
|
// node_modules/jodit-pro/esm/plugins/emoji/emoji.json.js
|
|
@@ -44321,8 +44434,8 @@ var t19 = (o52, r60) => p33(o52, "name", { value: r60, configurable: true });
|
|
|
44321
44434
|
Config.prototype.emoji = { data: t19(() => a40, "data"), enableAutoComplete: true, recentCountLimit: 10 }, Config.prototype.controls.emoji = { tooltip: "Insert Emoji", icon: t18, popup: t19((o52, r60, s52) => {
|
|
44322
44435
|
o52.s.save();
|
|
44323
44436
|
const e42 = o52.getInstance(n27);
|
|
44324
|
-
return o52.e.off(e42, "insert").on(e42, "insert", (
|
|
44325
|
-
o52.s.restore(), o52.s.insertNode(o52.createInside.text(
|
|
44437
|
+
return o52.e.off(e42, "insert").on(e42, "insert", (m53) => {
|
|
44438
|
+
o52.s.restore(), o52.s.insertNode(o52.createInside.text(m53), true), s52();
|
|
44326
44439
|
}), o52.e.one("beforePopupClose", () => {
|
|
44327
44440
|
o52.s.restore();
|
|
44328
44441
|
}), e42.reset(), e42.container;
|
|
@@ -44340,7 +44453,7 @@ var d24 = function(r60, t45, e42, o52) {
|
|
|
44340
44453
|
else for (var l47 = r60.length - 1; l47 >= 0; l47--) (a68 = r60[l47]) && (i49 = (s52 < 3 ? a68(i49) : s52 > 3 ? a68(t45, e42, i49) : a68(t45, e42)) || i49);
|
|
44341
44454
|
return s52 > 3 && i49 && Object.defineProperty(t45, e42, i49), i49;
|
|
44342
44455
|
};
|
|
44343
|
-
var
|
|
44456
|
+
var m21 = class m22 extends Plugin {
|
|
44344
44457
|
constructor() {
|
|
44345
44458
|
super(...arguments), this.hasStyle = !n11.fatMode, this.buttons = [{ name: "emoji", group: "insert" }];
|
|
44346
44459
|
}
|
|
@@ -44361,8 +44474,8 @@ var m22 = class m23 extends Plugin {
|
|
|
44361
44474
|
beforeDestruct(t45) {
|
|
44362
44475
|
}
|
|
44363
44476
|
};
|
|
44364
|
-
p34(
|
|
44365
|
-
var n28 =
|
|
44477
|
+
p34(m21, "emoji");
|
|
44478
|
+
var n28 = m21;
|
|
44366
44479
|
n28.requires = ["autocomplete", "license"], d24([autobind], n28.prototype, "onAutoComplete", null), n11.plugins.add("emoji", n28);
|
|
44367
44480
|
|
|
44368
44481
|
// node_modules/jodit-pro/esm/plugins/export-docs/assets/export.svg.js
|
|
@@ -44524,7 +44637,7 @@ init_decorators();
|
|
|
44524
44637
|
var u36 = Object.defineProperty;
|
|
44525
44638
|
var i29 = (c68, e42) => u36(c68, "name", { value: e42, configurable: true });
|
|
44526
44639
|
var s30;
|
|
44527
|
-
var
|
|
44640
|
+
var f24 = function(c68, e42, t45, o52) {
|
|
44528
44641
|
var n49 = arguments.length, r60 = n49 < 3 ? e42 : o52 === null ? o52 = Object.getOwnPropertyDescriptor(e42, t45) : o52, a68;
|
|
44529
44642
|
if (typeof Reflect == "object" && typeof Reflect.decorate == "function") r60 = Reflect.decorate(c68, e42, t45, o52);
|
|
44530
44643
|
else for (var d49 = c68.length - 1; d49 >= 0; d49--) (a68 = c68[d49]) && (r60 = (n49 < 3 ? a68(r60) : n49 > 3 ? a68(e42, t45, r60) : a68(e42, t45)) || r60);
|
|
@@ -44575,7 +44688,7 @@ var l30 = (s30 = class extends ViewComponent {
|
|
|
44575
44688
|
}, "exec") }];
|
|
44576
44689
|
}
|
|
44577
44690
|
}, i29(s30, "ContextMenuManager"), s30);
|
|
44578
|
-
|
|
44691
|
+
f24([watch(":contextmenuFolder.filebrowser")], l30.prototype, "onFolderContext", null), f24([watch(":contextmenuItem.filebrowser")], l30.prototype, "onItemContext", null), f24([watch(":contextmenuSource.filebrowser")], l30.prototype, "onSourceContext", null), l30 = f24([component], l30);
|
|
44579
44692
|
|
|
44580
44693
|
// node_modules/jodit-pro/esm/plugins/finder/helpers/helpers.js
|
|
44581
44694
|
var e20 = Object.defineProperty;
|
|
@@ -44589,8 +44702,8 @@ var s31 = p36((n49) => {
|
|
|
44589
44702
|
init_view_component();
|
|
44590
44703
|
init_decorators();
|
|
44591
44704
|
init_extend();
|
|
44592
|
-
var
|
|
44593
|
-
var p37 = (h52, t45) =>
|
|
44705
|
+
var f25 = Object.defineProperty;
|
|
44706
|
+
var p37 = (h52, t45) => f25(h52, "name", { value: t45, configurable: true });
|
|
44594
44707
|
var o30;
|
|
44595
44708
|
var c22 = function(h52, t45, e42, s52) {
|
|
44596
44709
|
var r60 = arguments.length, n49 = r60 < 3 ? t45 : s52 === null ? s52 = Object.getOwnPropertyDescriptor(t45, e42) : s52, u62;
|
|
@@ -44685,7 +44798,7 @@ var r40 = (l31 = class extends ViewComponent {
|
|
|
44685
44798
|
this.__tick += 1;
|
|
44686
44799
|
const { __tick: t45 } = this;
|
|
44687
44800
|
this.offset = 0, this.stopLoadingParts = false, this.__callQueueCount = 0;
|
|
44688
|
-
const { items: e42, loadedTotal: o52 } = yield
|
|
44801
|
+
const { items: e42, loadedTotal: o52 } = yield m23(this.state, this.j.dataProvider, this.offset, this.countInOneChunk);
|
|
44689
44802
|
if (this.state.elements = e42, this.stopLoadingParts = o52 < this.countInOneChunk, yield this.loadItemsChunk(t45), yield this.async.requestIdlePromise(), this.__tick !== t45) return;
|
|
44690
44803
|
for (; !this.stopLoadingParts && this.j.panel.countInColumn * this.j.panel.countInRow >= this.state.elements.length; ) if (yield this.loadItemsChunk(t45), this.__tick !== t45) return;
|
|
44691
44804
|
} catch (t45) {
|
|
@@ -44706,7 +44819,7 @@ var r40 = (l31 = class extends ViewComponent {
|
|
|
44706
44819
|
this.__isLoadingPart = true, this.j.panel.items.setMod("chunk-loading", true);
|
|
44707
44820
|
try {
|
|
44708
44821
|
this.offset += this.countInOneChunk;
|
|
44709
|
-
const { items: e42, loadedTotal: o52 } = yield
|
|
44822
|
+
const { items: e42, loadedTotal: o52 } = yield m23(this.state, this.j.dataProvider, this.offset, this.countInOneChunk);
|
|
44710
44823
|
if (this.__tick !== t45) return;
|
|
44711
44824
|
this.stopLoadingParts = o52 < this.countInOneChunk, e42.length && (this.state.elements = this.state.elements.concat(e42));
|
|
44712
44825
|
} catch (e42) {
|
|
@@ -44720,11 +44833,11 @@ var r40 = (l31 = class extends ViewComponent {
|
|
|
44720
44833
|
}
|
|
44721
44834
|
}, c23(l31, "LoadingManager"), l31);
|
|
44722
44835
|
h29([watch(":update.filebrowser")], r40.prototype, "onUpdateFileBrowser", null), h29([watch(["state.currentPath", "state.currentSource", "state.onlyImages"]), debounce((i49) => ({ timeout: i49.defaultTimeout, promisify: true }))], r40.prototype, "loadFolders", null), h29([watch(["state.currentPath", "state.currentSource", "state.sortBy", "state.onlyImages", "state.foldersPosition", "state.filterWord"]), debounce((i49) => ({ timeout: i49.defaultTimeout, promisify: true }))], r40.prototype, "loadItems", null), h29([debounce((i49) => ({ timeout: i49.defaultTimeout, promisify: true }))], r40.prototype, "loadItemsChunk", null), r40 = h29([component], r40);
|
|
44723
|
-
function
|
|
44836
|
+
function m23(i49, t45, e42, o52) {
|
|
44724
44837
|
const { currentPath: n49, currentSource: s52, sortBy: a68, withFolders: u62, foldersPosition: _11, onlyImages: p59, filterWord: P5 } = i49;
|
|
44725
44838
|
return t45.itemsEx(n49, s52, { offset: e42, limit: o52, sortBy: a68, withFolders: u62, foldersPosition: _11, onlyImages: p59, filterWord: P5 });
|
|
44726
44839
|
}
|
|
44727
|
-
c23(
|
|
44840
|
+
c23(m23, "loadPartItems");
|
|
44728
44841
|
|
|
44729
44842
|
// node_modules/jodit-pro/esm/plugins/finder/helpers/persistent-store.js
|
|
44730
44843
|
init_component3();
|
|
@@ -44819,12 +44932,12 @@ var u37 = class u38 {
|
|
|
44819
44932
|
}
|
|
44820
44933
|
fillTreeForPath(e42, t45) {
|
|
44821
44934
|
if (!this.state.tree.length || !t45 || t45 === "/") {
|
|
44822
|
-
this.state.tree = e42.map(
|
|
44935
|
+
this.state.tree = e42.map(m24);
|
|
44823
44936
|
return;
|
|
44824
44937
|
}
|
|
44825
44938
|
this.removeActive(this.state.tree), e42.forEach((i49) => {
|
|
44826
44939
|
let r60 = v13(this.state.tree, i49.name);
|
|
44827
|
-
r60 || (r60 =
|
|
44940
|
+
r60 || (r60 = m24(i49), this.state.tree.push(r60)), r60.isActive = true;
|
|
44828
44941
|
const n49 = y5(t45, r60);
|
|
44829
44942
|
n49 && (n49.isActive = true, n49.children = d26(i49.folders).map((a68) => p38(a68, t45 + "/" + a68, i49.name)));
|
|
44830
44943
|
}), this.state.tree = [...this.state.tree];
|
|
@@ -44854,10 +44967,10 @@ function d26(s52) {
|
|
|
44854
44967
|
return s52.filter((e42) => e42 !== "." && e42 !== "..");
|
|
44855
44968
|
}
|
|
44856
44969
|
l32(d26, "filterFolders");
|
|
44857
|
-
function
|
|
44970
|
+
function m24(s52) {
|
|
44858
44971
|
return { type: "source", name: s52.name, title: s52.title, sourceName: s52.name, path: "/", children: d26(s52.folders).map((e42) => p38(e42, e42, s52.name)) };
|
|
44859
44972
|
}
|
|
44860
|
-
l32(
|
|
44973
|
+
l32(m24, "sourceToTreeItem");
|
|
44861
44974
|
function p38(s52, e42, t45) {
|
|
44862
44975
|
return { type: "directory", name: s52, path: e42, sourceName: t45, children: [] };
|
|
44863
44976
|
}
|
|
@@ -44918,8 +45031,8 @@ var a45 = function(l47, e42, t45, i49) {
|
|
|
44918
45031
|
else for (var c68 = l47.length - 1; c68 >= 0; c68--) (h52 = l47[c68]) && (n49 = (s52 < 3 ? h52(n49) : s52 > 3 ? h52(e42, t45, n49) : h52(e42, t45)) || n49);
|
|
44919
45032
|
return s52 > 3 && n49 && Object.defineProperty(e42, t45, n49), n49;
|
|
44920
45033
|
};
|
|
44921
|
-
var
|
|
44922
|
-
var o32 =
|
|
45034
|
+
var m25;
|
|
45035
|
+
var o32 = m25 = (r41 = class extends UIElement {
|
|
44923
45036
|
className() {
|
|
44924
45037
|
return "UILightBox";
|
|
44925
45038
|
}
|
|
@@ -44970,7 +45083,7 @@ var o32 = m26 = (r41 = class extends UIElement {
|
|
|
44970
45083
|
t45 >= this.elements.length - 1 ? t45 = 0 : t45 += 1, this.current = this.elements[t45];
|
|
44971
45084
|
}
|
|
44972
45085
|
static open(e42, t45, i49) {
|
|
44973
|
-
return new
|
|
45086
|
+
return new m25(e42, t45, i49);
|
|
44974
45087
|
}
|
|
44975
45088
|
addGlobalListeners() {
|
|
44976
45089
|
this.j.e.on(this.j.od, "keydown", this.onKeyPress);
|
|
@@ -44985,7 +45098,7 @@ var o32 = m26 = (r41 = class extends UIElement {
|
|
|
44985
45098
|
return this.removeGlobalListeners(), this.dialog.destruct(), super.destruct();
|
|
44986
45099
|
}
|
|
44987
45100
|
}, d28(r41, "UILightBox"), r41);
|
|
44988
|
-
a45([watch("current")], o32.prototype, "onChangeCurrent", null), a45([watch("previous:click")], o32.prototype, "onPreviousClick", null), a45([watch("next:click")], o32.prototype, "onNextClick", null), a45([autobind], o32.prototype, "onKeyPress", null), o32 =
|
|
45101
|
+
a45([watch("current")], o32.prototype, "onChangeCurrent", null), a45([watch("previous:click")], o32.prototype, "onPreviousClick", null), a45([watch("next:click")], o32.prototype, "onNextClick", null), a45([autobind], o32.prototype, "onKeyPress", null), o32 = m25 = a45([component], o32);
|
|
44989
45102
|
|
|
44990
45103
|
// node_modules/jodit-pro/esm/plugins/finder/ui/panel/panel.js
|
|
44991
45104
|
init_decorators();
|
|
@@ -45002,12 +45115,12 @@ init_decorators();
|
|
|
45002
45115
|
init_helpers();
|
|
45003
45116
|
init_assert();
|
|
45004
45117
|
var d29 = Object.defineProperty;
|
|
45005
|
-
var
|
|
45118
|
+
var f26 = (l47, e42) => d29(l47, "name", { value: e42, configurable: true });
|
|
45006
45119
|
var s33;
|
|
45007
45120
|
var c26 = function(l47, e42, t45, i49) {
|
|
45008
|
-
var r60 = arguments.length, n49 = r60 < 3 ? e42 : i49 === null ? i49 = Object.getOwnPropertyDescriptor(e42, t45) : i49,
|
|
45121
|
+
var r60 = arguments.length, n49 = r60 < 3 ? e42 : i49 === null ? i49 = Object.getOwnPropertyDescriptor(e42, t45) : i49, m53;
|
|
45009
45122
|
if (typeof Reflect == "object" && typeof Reflect.decorate == "function") n49 = Reflect.decorate(l47, e42, t45, i49);
|
|
45010
|
-
else for (var a68 = l47.length - 1; a68 >= 0; a68--) (
|
|
45123
|
+
else for (var a68 = l47.length - 1; a68 >= 0; a68--) (m53 = l47[a68]) && (n49 = (r60 < 3 ? m53(n49) : r60 > 3 ? m53(e42, t45, n49) : m53(e42, t45)) || n49);
|
|
45011
45124
|
return r60 > 3 && n49 && Object.defineProperty(e42, t45, n49), n49;
|
|
45012
45125
|
};
|
|
45013
45126
|
var o33 = (s33 = class extends UIElement {
|
|
@@ -45048,7 +45161,7 @@ var o33 = (s33 = class extends UIElement {
|
|
|
45048
45161
|
}
|
|
45049
45162
|
return r60.innerText = t45, this;
|
|
45050
45163
|
}
|
|
45051
|
-
},
|
|
45164
|
+
}, f26(s33, "UIBrowserItem"), s33);
|
|
45052
45165
|
c26([watch("heart:click")], o33.prototype, "onClickFavorite", null), c26([watch(["container:click", "container:contextmenu", "container:dblclick"])], o33.prototype, "onAction", null), o33 = c26([component], o33);
|
|
45053
45166
|
|
|
45054
45167
|
// node_modules/jodit-pro/esm/plugins/finder/ui/preview/preview.js
|
|
@@ -45061,7 +45174,7 @@ var d30 = function(r60, e42, i49, t45) {
|
|
|
45061
45174
|
else for (var n49 = r60.length - 1; n49 >= 0; n49--) (l47 = r60[n49]) && (o52 = (s52 < 3 ? l47(o52) : s52 > 3 ? l47(e42, i49, o52) : l47(e42, i49)) || o52);
|
|
45062
45175
|
return s52 > 3 && o52 && Object.defineProperty(e42, i49, o52), o52;
|
|
45063
45176
|
};
|
|
45064
|
-
var
|
|
45177
|
+
var m26 = (a46 = class extends UIGroup {
|
|
45065
45178
|
className() {
|
|
45066
45179
|
return "UIPreview";
|
|
45067
45180
|
}
|
|
@@ -45099,7 +45212,7 @@ var m27 = (a46 = class extends UIGroup {
|
|
|
45099
45212
|
}));
|
|
45100
45213
|
}
|
|
45101
45214
|
}, p40(a46, "UIPreview"), a46);
|
|
45102
|
-
d30([hook("ready"), watch(":resize", { context: window }), debounce()],
|
|
45215
|
+
d30([hook("ready"), watch(":resize", { context: window }), debounce()], m26.prototype, "addResize", null), d30([watch("state.metaInfo")], m26.prototype, "onChangeMetaInfo", null), m26 = d30([component], m26);
|
|
45103
45216
|
|
|
45104
45217
|
// node_modules/jodit-pro/esm/plugins/finder/ui/settings/settings.js
|
|
45105
45218
|
init_decorators();
|
|
@@ -45225,10 +45338,10 @@ init_component();
|
|
|
45225
45338
|
// node_modules/jodit-pro/esm/plugins/finder/ui/folder/folder.js
|
|
45226
45339
|
init_component();
|
|
45227
45340
|
init_assert();
|
|
45228
|
-
var
|
|
45229
|
-
var d31 = (s52, e42) =>
|
|
45341
|
+
var f27 = Object.defineProperty;
|
|
45342
|
+
var d31 = (s52, e42) => f27(s52, "name", { value: e42, configurable: true });
|
|
45230
45343
|
var i32;
|
|
45231
|
-
var
|
|
45344
|
+
var m27 = function(s52, e42, r60, t45) {
|
|
45232
45345
|
var o52 = arguments.length, n49 = o52 < 3 ? e42 : t45 === null ? t45 = Object.getOwnPropertyDescriptor(e42, r60) : t45, l47;
|
|
45233
45346
|
if (typeof Reflect == "object" && typeof Reflect.decorate == "function") n49 = Reflect.decorate(s52, e42, r60, t45);
|
|
45234
45347
|
else for (var c68 = s52.length - 1; c68 >= 0; c68--) (l47 = s52[c68]) && (n49 = (o52 < 3 ? l47(n49) : o52 > 3 ? l47(e42, r60, n49) : l47(e42, r60)) || n49);
|
|
@@ -45256,7 +45369,7 @@ var a49 = (i32 = class extends UIElement {
|
|
|
45256
45369
|
assert(t45 != null, "name element does not exists"), t45.innerText = r60.name, e42.e.on(this.container, "click", () => (this.getMod("active") || this.setMod("loading", true), e42.e.fire("openFolder", r60))).on(this.container, "contextmenu", (o52) => e42.e.fire("contextmenuFolder.filebrowser", r60, o52));
|
|
45257
45370
|
}
|
|
45258
45371
|
}, d31(i32, "UIBrowserFolder"), i32);
|
|
45259
|
-
a49 =
|
|
45372
|
+
a49 = m27([component], a49);
|
|
45260
45373
|
|
|
45261
45374
|
// node_modules/jodit-pro/esm/plugins/finder/ui/tree/tree.js
|
|
45262
45375
|
var d32 = Object.defineProperty;
|
|
@@ -45268,8 +45381,8 @@ var u41 = function(i49, e42, r60, o52) {
|
|
|
45268
45381
|
else for (var s52 = i49.length - 1; s52 >= 0; s52--) (l47 = i49[s52]) && (t45 = (c68 < 3 ? l47(t45) : c68 > 3 ? l47(e42, r60, t45) : l47(e42, r60)) || t45);
|
|
45269
45382
|
return c68 > 3 && t45 && Object.defineProperty(e42, r60, t45), t45;
|
|
45270
45383
|
};
|
|
45271
|
-
var
|
|
45272
|
-
var p43 =
|
|
45384
|
+
var f28;
|
|
45385
|
+
var p43 = f28 = (n31 = class extends UIGroup {
|
|
45273
45386
|
className() {
|
|
45274
45387
|
return "UITree";
|
|
45275
45388
|
}
|
|
@@ -45279,11 +45392,11 @@ var p43 = f27 = (n31 = class extends UIGroup {
|
|
|
45279
45392
|
build(e42) {
|
|
45280
45393
|
this.clear(), e42.forEach((r60) => {
|
|
45281
45394
|
const o52 = new a49(this.jodit, r60);
|
|
45282
|
-
this.append(o52), r60.isActive && o52.setMod("active", true), r60.children.length && this.append(new
|
|
45395
|
+
this.append(o52), r60.isActive && o52.setMod("active", true), r60.children.length && this.append(new f28(this.jodit, r60.children));
|
|
45283
45396
|
});
|
|
45284
45397
|
}
|
|
45285
45398
|
}, h31(n31, "UITree"), n31);
|
|
45286
|
-
p43 =
|
|
45399
|
+
p43 = f28 = u41([component], p43);
|
|
45287
45400
|
|
|
45288
45401
|
// node_modules/jodit-pro/esm/plugins/finder/ui/source/source.js
|
|
45289
45402
|
var h32 = Object.defineProperty;
|
|
@@ -45295,7 +45408,7 @@ var p44 = function(i49, e42, t45, n49) {
|
|
|
45295
45408
|
else for (var l47 = i49.length - 1; l47 >= 0; l47--) (c68 = i49[l47]) && (r60 = (o52 < 3 ? c68(r60) : o52 > 3 ? c68(e42, t45, r60) : c68(e42, t45)) || r60);
|
|
45296
45409
|
return o52 > 3 && r60 && Object.defineProperty(e42, t45, r60), r60;
|
|
45297
45410
|
};
|
|
45298
|
-
var
|
|
45411
|
+
var m28 = (s34 = class extends UIElement {
|
|
45299
45412
|
className() {
|
|
45300
45413
|
return "UIBrowserSource";
|
|
45301
45414
|
}
|
|
@@ -45313,16 +45426,16 @@ var m29 = (s34 = class extends UIElement {
|
|
|
45313
45426
|
assert(o52 != null, "tree element does not exists"), o52.appendChild(this.tree.container), e42.e.on(this.container, "contextmenu", (r60) => e42.e.fire("contextmenuSource.filebrowser", t45, r60));
|
|
45314
45427
|
}
|
|
45315
45428
|
}, u42(s34, "UIBrowserSource"), s34);
|
|
45316
|
-
|
|
45429
|
+
m28 = p44([component], m28);
|
|
45317
45430
|
|
|
45318
45431
|
// node_modules/jodit-pro/esm/plugins/finder/ui/sources/sources.js
|
|
45319
45432
|
var l34 = Object.defineProperty;
|
|
45320
45433
|
var p45 = (c68, e42) => l34(c68, "name", { value: e42, configurable: true });
|
|
45321
45434
|
var t23;
|
|
45322
|
-
var
|
|
45323
|
-
var s52 = arguments.length, r60 = s52 < 3 ? e42 : n49 === null ? n49 = Object.getOwnPropertyDescriptor(e42, o52) : n49,
|
|
45435
|
+
var m29 = function(c68, e42, o52, n49) {
|
|
45436
|
+
var s52 = arguments.length, r60 = s52 < 3 ? e42 : n49 === null ? n49 = Object.getOwnPropertyDescriptor(e42, o52) : n49, f46;
|
|
45324
45437
|
if (typeof Reflect == "object" && typeof Reflect.decorate == "function") r60 = Reflect.decorate(c68, e42, o52, n49);
|
|
45325
|
-
else for (var i49 = c68.length - 1; i49 >= 0; i49--) (
|
|
45438
|
+
else for (var i49 = c68.length - 1; i49 >= 0; i49--) (f46 = c68[i49]) && (r60 = (s52 < 3 ? f46(r60) : s52 > 3 ? f46(e42, o52, r60) : f46(e42, o52)) || r60);
|
|
45326
45439
|
return s52 > 3 && r60 && Object.defineProperty(e42, o52, r60), r60;
|
|
45327
45440
|
};
|
|
45328
45441
|
var u43 = (t23 = class extends UIGroup {
|
|
@@ -45334,11 +45447,11 @@ var u43 = (t23 = class extends UIGroup {
|
|
|
45334
45447
|
}
|
|
45335
45448
|
build(e42) {
|
|
45336
45449
|
this.clear(), e42.forEach((o52) => {
|
|
45337
|
-
this.append(new
|
|
45450
|
+
this.append(new m28(this.jodit, o52));
|
|
45338
45451
|
});
|
|
45339
45452
|
}
|
|
45340
45453
|
}, p45(t23, "UIBrowserSources"), t23);
|
|
45341
|
-
u43 =
|
|
45454
|
+
u43 = m29([component], u43);
|
|
45342
45455
|
|
|
45343
45456
|
// node_modules/jodit-pro/esm/plugins/finder/ui/statusbar/statusbar.js
|
|
45344
45457
|
init_decorators();
|
|
@@ -45346,13 +45459,13 @@ init_assert();
|
|
|
45346
45459
|
var d33 = Object.defineProperty;
|
|
45347
45460
|
var a50 = (s52, t45) => d33(s52, "name", { value: t45, configurable: true });
|
|
45348
45461
|
var l35;
|
|
45349
|
-
var
|
|
45462
|
+
var m30 = function(s52, t45, r60, o52) {
|
|
45350
45463
|
var n49 = arguments.length, e42 = n49 < 3 ? t45 : o52 === null ? o52 = Object.getOwnPropertyDescriptor(t45, r60) : o52, i49;
|
|
45351
45464
|
if (typeof Reflect == "object" && typeof Reflect.decorate == "function") e42 = Reflect.decorate(s52, t45, r60, o52);
|
|
45352
45465
|
else for (var c68 = s52.length - 1; c68 >= 0; c68--) (i49 = s52[c68]) && (e42 = (n49 < 3 ? i49(e42) : n49 > 3 ? i49(t45, r60, e42) : i49(t45, r60)) || e42);
|
|
45353
45466
|
return n49 > 3 && e42 && Object.defineProperty(t45, r60, e42), e42;
|
|
45354
45467
|
};
|
|
45355
|
-
var
|
|
45468
|
+
var f29 = (l35 = class extends UIElement {
|
|
45356
45469
|
className() {
|
|
45357
45470
|
return "UIBrowserStatusBar";
|
|
45358
45471
|
}
|
|
@@ -45368,7 +45481,7 @@ var f28 = (l35 = class extends UIElement {
|
|
|
45368
45481
|
return assert(o52 != null, "Slot does not exists"), o52.innerText = t45, this;
|
|
45369
45482
|
}
|
|
45370
45483
|
}, a50(l35, "UIBrowserStatusBar"), l35);
|
|
45371
|
-
|
|
45484
|
+
f29 = m30([component], f29);
|
|
45372
45485
|
|
|
45373
45486
|
// node_modules/jodit-pro/esm/plugins/finder/ui/virtual-scroll/virtual-scroll.js
|
|
45374
45487
|
init_decorators();
|
|
@@ -45394,7 +45507,7 @@ var n32 = class n33 {
|
|
|
45394
45507
|
t45.j.lock(), t45.j.e.on(t45.j.ow, "mousemove touchmove", s52).one(t45.j.ow, "mouseup touchend", this.onEndSelect.bind(this, t45, c68, s52)), t45.onSelectItems({ left: i49.x, top: i49.y, width: 0, height: 0 });
|
|
45395
45508
|
}
|
|
45396
45509
|
static onSelect(t45, c68, o52, i49) {
|
|
45397
|
-
const s52 = o52.x > i49.clientX ? i49.clientX : o52.x,
|
|
45510
|
+
const s52 = o52.x > i49.clientX ? i49.clientX : o52.x, f46 = o52.y > i49.clientY ? i49.clientY : o52.y, h52 = { left: s52, top: f46, width: Math.abs(o52.x - i49.clientX), height: Math.abs(o52.y - i49.clientY) };
|
|
45398
45511
|
css(c68, h52), t45.onSelectItems(h52);
|
|
45399
45512
|
}
|
|
45400
45513
|
static onEndSelect(t45, c68, o52, i49) {
|
|
@@ -45405,8 +45518,8 @@ e22(n32, "UISelectItems");
|
|
|
45405
45518
|
var r43 = n32;
|
|
45406
45519
|
|
|
45407
45520
|
// node_modules/jodit-pro/esm/plugins/finder/ui/virtual-scroll/virtual-scroll.js
|
|
45408
|
-
var
|
|
45409
|
-
var p46 = (l47, e42) =>
|
|
45521
|
+
var m31 = Object.defineProperty;
|
|
45522
|
+
var p46 = (l47, e42) => m31(l47, "name", { value: e42, configurable: true });
|
|
45410
45523
|
var n34;
|
|
45411
45524
|
var h33 = function(l47, e42, t45, o52) {
|
|
45412
45525
|
var r60 = arguments.length, s52 = r60 < 3 ? e42 : o52 === null ? o52 = Object.getOwnPropertyDescriptor(e42, t45) : o52, c68;
|
|
@@ -45414,8 +45527,8 @@ var h33 = function(l47, e42, t45, o52) {
|
|
|
45414
45527
|
else for (var d49 = l47.length - 1; d49 >= 0; d49--) (c68 = l47[d49]) && (s52 = (r60 < 3 ? c68(s52) : r60 > 3 ? c68(e42, t45, s52) : c68(e42, t45)) || s52);
|
|
45415
45528
|
return r60 > 3 && s52 && Object.defineProperty(e42, t45, s52), s52;
|
|
45416
45529
|
};
|
|
45417
|
-
var
|
|
45418
|
-
var i33 =
|
|
45530
|
+
var f30;
|
|
45531
|
+
var i33 = f30 = (n34 = class extends UIGroup {
|
|
45419
45532
|
className() {
|
|
45420
45533
|
return "UIVirtualScroll";
|
|
45421
45534
|
}
|
|
@@ -45465,15 +45578,15 @@ var i33 = f29 = (n34 = class extends UIGroup {
|
|
|
45465
45578
|
const t45 = [];
|
|
45466
45579
|
this.elements.forEach((o52) => {
|
|
45467
45580
|
const r60 = position(o52.container);
|
|
45468
|
-
|
|
45581
|
+
f30.intersectRect(r60, e42) && t45.push(o52.item);
|
|
45469
45582
|
}), this.stateManager.state.activeElements = t45;
|
|
45470
45583
|
}
|
|
45471
45584
|
}, p46(n34, "UIVirtualScroll"), n34);
|
|
45472
|
-
h33([watch(":afterResize"), watch(":resize"), watch("container:scroll"), throttle()], i33.prototype, "onScrollLoadChunk", null), h33([watch("container:dragover")], i33.prototype, "onDragOver", null), h33([watch(["container:dragleave", "container:drop"])], i33.prototype, "onDragLeave", null), i33 =
|
|
45585
|
+
h33([watch(":afterResize"), watch(":resize"), watch("container:scroll"), throttle()], i33.prototype, "onScrollLoadChunk", null), h33([watch("container:dragover")], i33.prototype, "onDragOver", null), h33([watch(["container:dragleave", "container:drop"])], i33.prototype, "onDragLeave", null), i33 = f30 = h33([component], i33);
|
|
45473
45586
|
|
|
45474
45587
|
// node_modules/jodit-pro/esm/plugins/finder/ui/panel/panel.js
|
|
45475
45588
|
var d34 = Object.defineProperty;
|
|
45476
|
-
var
|
|
45589
|
+
var m32 = (r60, e42) => d34(r60, "name", { value: e42, configurable: true });
|
|
45477
45590
|
var a51;
|
|
45478
45591
|
var i34 = function(r60, e42, s52, h52) {
|
|
45479
45592
|
var l47 = arguments.length, n49 = l47 < 3 ? e42 : h52 === null ? h52 = Object.getOwnPropertyDescriptor(e42, s52) : h52, g21;
|
|
@@ -45502,7 +45615,7 @@ var t24 = (a51 = class extends UIGroup {
|
|
|
45502
45615
|
</div>`;
|
|
45503
45616
|
}
|
|
45504
45617
|
constructor(e42, s52) {
|
|
45505
|
-
super(e42), this.stateManager = s52, this.syncMod = true, this.sources = new u43(this.j), this.sidebar = new i31(this.jodit, [this.sources], this.stateManager.state), this.preview = new
|
|
45618
|
+
super(e42), this.stateManager = s52, this.syncMod = true, this.sources = new u43(this.j), this.sidebar = new i31(this.jodit, [this.sources], this.stateManager.state), this.preview = new m26(this.jodit, this.stateManager.state), this.statusbar = new f29(this.j), this.items = new i33(this.j, this.stateManager), this.settings = new u40(this.jodit, this.stateManager.state), this.state = s52.state, this.append(this.sidebar, "content"), this.append(this.items, "content"), this.append(this.settings, "content"), this.append(this.preview, "content"), this.append(this.statusbar, "footer"), this.onChangeElements(), this.onChangeSources(), this.onChangeView(), this.onChangeTileSize(), this.onChangeShowFavorites(), this.onChangeActiveElements(), this.onChangeFavorites(), this.onChangeShowSideBar(), this.onChangeShowSettings(), this.onChangeShowPreview(), this.onChangeTheme();
|
|
45506
45619
|
}
|
|
45507
45620
|
onChangeTheme() {
|
|
45508
45621
|
this.setMod("theme", this.stateManager.state.theme);
|
|
@@ -45567,7 +45680,7 @@ var t24 = (a51 = class extends UIGroup {
|
|
|
45567
45680
|
onFolderClick(e42) {
|
|
45568
45681
|
this.stateManager.state.currentSource = e42.sourceName, this.stateManager.state.currentPath = e42.path || "/", this.j.e.fire("afterOpenFolder.filebrowser");
|
|
45569
45682
|
}
|
|
45570
|
-
},
|
|
45683
|
+
}, m32(a51, "UIBrowserPanel"), a51);
|
|
45571
45684
|
i34([watch("state.theme")], t24.prototype, "onChangeTheme", null), i34([watch("state.elements")], t24.prototype, "onChangeElements", null), i34([watch("state.activeElements")], t24.prototype, "onChangeActiveElements", null), i34([watch(["state.favorites", "state.elements"])], t24.prototype, "onChangeFavorites", null), i34([watch("state.sources")], t24.prototype, "onChangeSources", null), i34([watch("state.lastSelectedIndex")], t24.prototype, "onChangeLastSelectedIndex", null), i34([watch("state.info")], t24.prototype, "onChangeInfo", null), i34([watch(["state.currentPath", "state.currentSource"])], t24.prototype, "onChangePathOrSource", null), i34([watch("state.showSettings")], t24.prototype, "onChangeShowSettings", null), i34([watch("state.showPreview")], t24.prototype, "onChangeShowPreview", null), i34([watch("state.showSideBar")], t24.prototype, "onChangeShowSideBar", null), i34([watch("state.view")], t24.prototype, "onChangeView", null), i34([watch("state.tileSize")], t24.prototype, "onChangeTileSize", null), i34([watch("state.showFavorites")], t24.prototype, "onChangeShowFavorites", null), i34([watch(":dblclickItem.filebrowser")], t24.prototype, "onItemDblClick", null), i34([watch(":clickItem.filebrowser")], t24.prototype, "onItemClick", null), i34([watch(":togglePreview.filebrowser")], t24.prototype, "onTogglePreview", null), i34([watch(":toggleFavoriteItem")], t24.prototype, "onToggleFavoriteItem", null), i34([watch(":openFolder")], t24.prototype, "onFolderClick", null), t24 = i34([component], t24);
|
|
45572
45685
|
|
|
45573
45686
|
// node_modules/jodit-pro/esm/plugins/finder/ui/progress/progress.js
|
|
@@ -45575,7 +45688,7 @@ init_decorators();
|
|
|
45575
45688
|
var u44 = Object.defineProperty;
|
|
45576
45689
|
var c28 = (o52, e42) => u44(o52, "name", { value: e42, configurable: true });
|
|
45577
45690
|
var r44;
|
|
45578
|
-
var
|
|
45691
|
+
var f31 = function(o52, e42, s52, i49) {
|
|
45579
45692
|
var h52 = arguments.length, t45 = h52 < 3 ? e42 : i49 === null ? i49 = Object.getOwnPropertyDescriptor(e42, s52) : i49, n49;
|
|
45580
45693
|
if (typeof Reflect == "object" && typeof Reflect.decorate == "function") t45 = Reflect.decorate(o52, e42, s52, i49);
|
|
45581
45694
|
else for (var p59 = o52.length - 1; p59 >= 0; p59--) (n49 = o52[p59]) && (t45 = (h52 < 3 ? n49(t45) : h52 > 3 ? n49(e42, s52, t45) : n49(e42, s52)) || t45);
|
|
@@ -45603,7 +45716,7 @@ var l36 = (r44 = class extends ProgressBar {
|
|
|
45603
45716
|
return this.setMod("hidden", false), this;
|
|
45604
45717
|
}
|
|
45605
45718
|
}, c28(r44, "UIProgress"), r44);
|
|
45606
|
-
|
|
45719
|
+
f31([watch("state.progress")], l36.prototype, "onProgress", null), l36 = f31([component], l36);
|
|
45607
45720
|
|
|
45608
45721
|
// node_modules/jodit-pro/esm/plugins/finder/browser.js
|
|
45609
45722
|
init_config();
|
|
@@ -45611,12 +45724,12 @@ init_constants();
|
|
|
45611
45724
|
init_decorators();
|
|
45612
45725
|
init_helpers();
|
|
45613
45726
|
var E4 = Object.defineProperty;
|
|
45614
|
-
var d35 = (
|
|
45727
|
+
var d35 = (m53, e42) => E4(m53, "name", { value: e42, configurable: true });
|
|
45615
45728
|
var u45;
|
|
45616
|
-
var o34 = function(
|
|
45729
|
+
var o34 = function(m53, e42, t45, s52) {
|
|
45617
45730
|
var i49 = arguments.length, n49 = i49 < 3 ? e42 : s52 === null ? s52 = Object.getOwnPropertyDescriptor(e42, t45) : s52, h52;
|
|
45618
|
-
if (typeof Reflect == "object" && typeof Reflect.decorate == "function") n49 = Reflect.decorate(
|
|
45619
|
-
else for (var l47 =
|
|
45731
|
+
if (typeof Reflect == "object" && typeof Reflect.decorate == "function") n49 = Reflect.decorate(m53, e42, t45, s52);
|
|
45732
|
+
else for (var l47 = m53.length - 1; l47 >= 0; l47--) (h52 = m53[l47]) && (n49 = (i49 < 3 ? h52(n49) : i49 > 3 ? h52(e42, t45, n49) : h52(e42, t45)) || n49);
|
|
45620
45733
|
return i49 > 3 && n49 && Object.defineProperty(e42, t45, n49), n49;
|
|
45621
45734
|
};
|
|
45622
45735
|
var r45 = (u45 = class _this extends Dialog {
|
|
@@ -45989,15 +46102,15 @@ function i37() {
|
|
|
45989
46102
|
p47 = true, n35 && n35.forEach((e42) => e42());
|
|
45990
46103
|
}
|
|
45991
46104
|
t26(i37, "GoogleReadyHandler");
|
|
45992
|
-
function
|
|
46105
|
+
function f32(e42, o52 = false) {
|
|
45993
46106
|
const r60 = [];
|
|
45994
46107
|
if (Array.isArray(e42)) if (Array.isArray(e42[0]) || Array.isArray(e42[1])) e42.forEach((a68) => {
|
|
45995
|
-
r60.push(
|
|
46108
|
+
r60.push(f32(a68, o52));
|
|
45996
46109
|
});
|
|
45997
46110
|
else return o52 ? { lat: e42[0], lng: e42[1] } : new google.maps.LatLng(e42[0], e42[1]);
|
|
45998
46111
|
return r60;
|
|
45999
46112
|
}
|
|
46000
|
-
t26(
|
|
46113
|
+
t26(f32, "arrayToPath");
|
|
46001
46114
|
function g12(e42) {
|
|
46002
46115
|
return e42.getArray().map((o52) => [o52.lat(), o52.lng()]);
|
|
46003
46116
|
}
|
|
@@ -46020,9 +46133,9 @@ function h34(e42) {
|
|
|
46020
46133
|
var r60, t45, n49, a68, i49, l47;
|
|
46021
46134
|
switch (o52.type) {
|
|
46022
46135
|
case "polygon":
|
|
46023
|
-
return `&path=fillcolor:${u46((r60 = o52.fillColor) !== null && r60 !== void 0 ? r60 : "#fff")}%7Cweight:${(t45 = o52.strokeWeight) !== null && t45 !== void 0 ? t45 : 1}%7Ccolor:${u46((n49 = o52.strokeColor) !== null && n49 !== void 0 ? n49 : "#fff")}%7Cenc:${google.maps.geometry.encoding.encodePath(
|
|
46136
|
+
return `&path=fillcolor:${u46((r60 = o52.fillColor) !== null && r60 !== void 0 ? r60 : "#fff")}%7Cweight:${(t45 = o52.strokeWeight) !== null && t45 !== void 0 ? t45 : 1}%7Ccolor:${u46((n49 = o52.strokeColor) !== null && n49 !== void 0 ? n49 : "#fff")}%7Cenc:${google.maps.geometry.encoding.encodePath(f32(o52.coordinates))}`;
|
|
46024
46137
|
case "polyline":
|
|
46025
|
-
return `&path=weight:${(a68 = o52.strokeWeight) !== null && a68 !== void 0 ? a68 : 1}%7Ccolor:${u46((i49 = o52.strokeColor) !== null && i49 !== void 0 ? i49 : "#fff")}%7Cenc:${google.maps.geometry.encoding.encodePath(
|
|
46138
|
+
return `&path=weight:${(a68 = o52.strokeWeight) !== null && a68 !== void 0 ? a68 : 1}%7Ccolor:${u46((i49 = o52.strokeColor) !== null && i49 !== void 0 ? i49 : "#fff")}%7Cenc:${google.maps.geometry.encoding.encodePath(f32(o52.coordinates))}`;
|
|
46026
46139
|
case "marker":
|
|
46027
46140
|
return `&markers=color:blue%7Clabel:${encodeURIComponent(stripTags((l47 = o52.text) !== null && l47 !== void 0 ? l47 : "").charAt(0).toUpperCase())}%7C${o52.coordinates}`;
|
|
46028
46141
|
}
|
|
@@ -46103,9 +46216,9 @@ var e23 = t27;
|
|
|
46103
46216
|
init_component();
|
|
46104
46217
|
init_assert();
|
|
46105
46218
|
var u48 = Object.defineProperty;
|
|
46106
|
-
var
|
|
46219
|
+
var m33 = (s52, e42) => u48(s52, "name", { value: e42, configurable: true });
|
|
46107
46220
|
var n36;
|
|
46108
|
-
var
|
|
46221
|
+
var f33 = function(s52, e42, i49, l47) {
|
|
46109
46222
|
var r60 = arguments.length, t45 = r60 < 3 ? e42 : l47 === null ? l47 = Object.getOwnPropertyDescriptor(e42, i49) : l47, o52;
|
|
46110
46223
|
if (typeof Reflect == "object" && typeof Reflect.decorate == "function") t45 = Reflect.decorate(s52, e42, i49, l47);
|
|
46111
46224
|
else for (var a68 = s52.length - 1; a68 >= 0; a68--) (o52 = s52[a68]) && (t45 = (r60 < 3 ? o52(t45) : r60 > 3 ? o52(e42, i49, t45) : o52(e42, i49)) || t45);
|
|
@@ -46128,12 +46241,12 @@ var c33 = (n36 = class extends UIElement {
|
|
|
46128
46241
|
<div class='&__editor'></div>
|
|
46129
46242
|
</div>`;
|
|
46130
46243
|
}
|
|
46131
|
-
},
|
|
46132
|
-
c33 =
|
|
46244
|
+
}, m33(n36, "UIWysiwyg"), n36);
|
|
46245
|
+
c33 = f33([component], c33);
|
|
46133
46246
|
|
|
46134
46247
|
// node_modules/jodit-pro/esm/plugins/google-maps/ui/editors/marker/marker.js
|
|
46135
46248
|
var d40 = Object.defineProperty;
|
|
46136
|
-
var
|
|
46249
|
+
var f34 = (i49, e42) => d40(i49, "name", { value: e42, configurable: true });
|
|
46137
46250
|
var n37;
|
|
46138
46251
|
var c34 = function(i49, e42, o52, r60) {
|
|
46139
46252
|
var s52 = arguments.length, t45 = s52 < 3 ? e42 : r60 === null ? r60 = Object.getOwnPropertyDescriptor(e42, o52) : r60, p59;
|
|
@@ -46151,7 +46264,7 @@ var a55 = (n37 = class extends e23 {
|
|
|
46151
46264
|
const o52 = new c33(this.j, this.options.googleMaps.inlineEditorOptions, (e42 = this.state.text) !== null && e42 !== void 0 ? e42 : "", (r60) => this.j.e.fire(this, "change", "text", r60));
|
|
46152
46265
|
this.append(o52, "form");
|
|
46153
46266
|
}
|
|
46154
|
-
},
|
|
46267
|
+
}, f34(n37, "UIMarkerEditor"), n37);
|
|
46155
46268
|
c34([hook("ready")], a55.prototype, "onReady", null), a55 = c34([component], a55);
|
|
46156
46269
|
|
|
46157
46270
|
// node_modules/jodit-pro/esm/plugins/google-maps/ui/editors/polygon/polygon.js
|
|
@@ -46165,7 +46278,7 @@ var n38;
|
|
|
46165
46278
|
var p48 = function(i49, e42, t45, o52) {
|
|
46166
46279
|
var l47 = arguments.length, r60 = l47 < 3 ? e42 : o52 === null ? o52 = Object.getOwnPropertyDescriptor(e42, t45) : o52, s52;
|
|
46167
46280
|
if (typeof Reflect == "object" && typeof Reflect.decorate == "function") r60 = Reflect.decorate(i49, e42, t45, o52);
|
|
46168
|
-
else for (var
|
|
46281
|
+
else for (var f46 = i49.length - 1; f46 >= 0; f46--) (s52 = i49[f46]) && (r60 = (l47 < 3 ? s52(r60) : l47 > 3 ? s52(e42, t45, r60) : s52(e42, t45)) || r60);
|
|
46169
46282
|
return l47 > 3 && r60 && Object.defineProperty(e42, t45, r60), r60;
|
|
46170
46283
|
};
|
|
46171
46284
|
var h35 = (n38 = class extends e23 {
|
|
@@ -46181,7 +46294,7 @@ p48([hook("ready")], h35.prototype, "onReady", null), h35 = p48([component], h35
|
|
|
46181
46294
|
|
|
46182
46295
|
// node_modules/jodit-pro/esm/plugins/google-maps/ui/editors/polygon/polygon.js
|
|
46183
46296
|
var h36 = Object.defineProperty;
|
|
46184
|
-
var
|
|
46297
|
+
var f35 = (r60, e42) => h36(r60, "name", { value: e42, configurable: true });
|
|
46185
46298
|
var i42;
|
|
46186
46299
|
var c36 = function(r60, e42, o52, t45) {
|
|
46187
46300
|
var n49 = arguments.length, l47 = n49 < 3 ? e42 : t45 === null ? t45 = Object.getOwnPropertyDescriptor(e42, o52) : t45, a68;
|
|
@@ -46195,11 +46308,11 @@ var s40 = (i42 = class extends h35 {
|
|
|
46195
46308
|
}
|
|
46196
46309
|
onReady() {
|
|
46197
46310
|
var e42, o52;
|
|
46198
|
-
this.append([new c19(this.j, { label: "Fill color", value: (e42 = this.state.fillColor) !== null && e42 !== void 0 ? e42 : "#000", onChange:
|
|
46311
|
+
this.append([new c19(this.j, { label: "Fill color", value: (e42 = this.state.fillColor) !== null && e42 !== void 0 ? e42 : "#000", onChange: f35((t45) => this.j.e.fire(this, "change", "fillColor", t45), "onChange") }).setMod("trigger", false), new i21(this.j, { label: "Opacity", min: 0, max: 1, value: (o52 = this.state.fillOpacity) !== null && o52 !== void 0 ? o52 : 1, onChange: f35((t45) => {
|
|
46199
46312
|
this.j.e.fire(this, "change", "fillOpacity", parseFloat(t45) || 0);
|
|
46200
46313
|
}, "onChange") }).setMod("log", false)], "form");
|
|
46201
46314
|
}
|
|
46202
|
-
},
|
|
46315
|
+
}, f35(i42, "UIPolygonEditor"), i42);
|
|
46203
46316
|
c36([hook("ready")], s40.prototype, "onReady", null), s40 = c36([component], s40);
|
|
46204
46317
|
|
|
46205
46318
|
// node_modules/jodit-pro/esm/plugins/google-maps/ui/map/modules/add-new-in-state.js
|
|
@@ -46231,7 +46344,7 @@ c37(u49, "addNewInState");
|
|
|
46231
46344
|
// node_modules/jodit-pro/esm/plugins/google-maps/ui/map/modules/update-state-and-gme.js
|
|
46232
46345
|
var n39 = Object.defineProperty;
|
|
46233
46346
|
var c38 = (e42, o52) => n39(e42, "name", { value: o52, configurable: true });
|
|
46234
|
-
function
|
|
46347
|
+
function m34(e42, o52, i49 = false) {
|
|
46235
46348
|
const t45 = this.mapElements[o52];
|
|
46236
46349
|
if (t45.state === e42 || t45.state.type !== e42.type) return;
|
|
46237
46350
|
const r60 = t45.state;
|
|
@@ -46257,7 +46370,7 @@ function m35(e42, o52, i49 = false) {
|
|
|
46257
46370
|
switch (t45.type) {
|
|
46258
46371
|
case "polygon":
|
|
46259
46372
|
case "polyline": {
|
|
46260
|
-
t45.gme.setPath(
|
|
46373
|
+
t45.gme.setPath(f32(a68));
|
|
46261
46374
|
break;
|
|
46262
46375
|
}
|
|
46263
46376
|
}
|
|
@@ -46267,7 +46380,7 @@ function m35(e42, o52, i49 = false) {
|
|
|
46267
46380
|
}
|
|
46268
46381
|
t45.state = e42, this.state.elements[o52] = e42;
|
|
46269
46382
|
}
|
|
46270
|
-
c38(
|
|
46383
|
+
c38(m34, "updateStateAndGme");
|
|
46271
46384
|
|
|
46272
46385
|
// node_modules/jodit-pro/esm/plugins/google-maps/ui/map/modules/on-change-geometries.js
|
|
46273
46386
|
var d41 = Object.defineProperty;
|
|
@@ -46278,17 +46391,17 @@ function h38(o52, e42) {
|
|
|
46278
46391
|
case "polyline":
|
|
46279
46392
|
case "polygon": {
|
|
46280
46393
|
const t45 = g12(o52.gme.getPath()), a68 = __spreadProps(__spreadValues({}, o52.state), { coordinates: t45 });
|
|
46281
|
-
|
|
46394
|
+
m34.call(this, a68, e42, true);
|
|
46282
46395
|
break;
|
|
46283
46396
|
}
|
|
46284
46397
|
case "marker": {
|
|
46285
46398
|
const t45 = o52.gme.getPosition(), a68 = __spreadProps(__spreadValues({}, o52.state), { coordinates: [(i49 = t45 == null ? void 0 : t45.lat()) !== null && i49 !== void 0 ? i49 : 0, (l47 = t45 == null ? void 0 : t45.lng()) !== null && l47 !== void 0 ? l47 : 0] });
|
|
46286
|
-
|
|
46399
|
+
m34.call(this, a68, e42, true);
|
|
46287
46400
|
break;
|
|
46288
46401
|
}
|
|
46289
46402
|
case "circle": {
|
|
46290
46403
|
const t45 = o52.gme.getCenter(), a68 = __spreadProps(__spreadValues({}, o52.state), { radius: o52.gme.getRadius(), coordinates: [(r60 = t45 == null ? void 0 : t45.lat()) !== null && r60 !== void 0 ? r60 : 0, (s52 = t45 == null ? void 0 : t45.lng()) !== null && s52 !== void 0 ? s52 : 0] });
|
|
46291
|
-
|
|
46404
|
+
m34.call(this, a68, e42, true);
|
|
46292
46405
|
break;
|
|
46293
46406
|
}
|
|
46294
46407
|
}
|
|
@@ -46296,8 +46409,8 @@ function h38(o52, e42) {
|
|
|
46296
46409
|
c39(h38, "onChangeGeometries");
|
|
46297
46410
|
|
|
46298
46411
|
// node_modules/jodit-pro/esm/plugins/google-maps/ui/map/modules/remove-element.js
|
|
46299
|
-
var
|
|
46300
|
-
var s41 = (t45, e42) =>
|
|
46412
|
+
var m35 = Object.defineProperty;
|
|
46413
|
+
var s41 = (t45, e42) => m35(t45, "name", { value: e42, configurable: true });
|
|
46301
46414
|
function i43(t45) {
|
|
46302
46415
|
const e42 = this.mapElements.indexOf(t45);
|
|
46303
46416
|
e42 !== -1 && (this.mapElements[e42].gme.setMap(null), this.mapElements.splice(e42, 1), this.state.elements.splice(e42, 1), this.state.elements = [...this.state.elements]);
|
|
@@ -46334,7 +46447,7 @@ function u50(t45, i49) {
|
|
|
46334
46447
|
this.append(e42), this.j.e.on(e42, "bin", () => {
|
|
46335
46448
|
i43.call(this, t45);
|
|
46336
46449
|
}).on(e42, "change", (s52, r60) => {
|
|
46337
|
-
|
|
46450
|
+
m34.call(this, __spreadProps(__spreadValues({}, t45.state), { [s52]: r60 }), i49);
|
|
46338
46451
|
});
|
|
46339
46452
|
const o52 = l39.call(this);
|
|
46340
46453
|
if (t45.type === "polygon" || t45.type === "polyline") {
|
|
@@ -46355,7 +46468,7 @@ function L5(o52, e42) {
|
|
|
46355
46468
|
var a68;
|
|
46356
46469
|
const t45 = this.mapElements[e42];
|
|
46357
46470
|
if (t45) {
|
|
46358
|
-
if (t45.state.type === o52.type) return
|
|
46471
|
+
if (t45.state.type === o52.type) return m34.call(this, o52, e42);
|
|
46359
46472
|
t45.gme.setMap(null);
|
|
46360
46473
|
}
|
|
46361
46474
|
let r60;
|
|
@@ -46369,7 +46482,7 @@ function L5(o52, e42) {
|
|
|
46369
46482
|
case "polyline":
|
|
46370
46483
|
case "polygon":
|
|
46371
46484
|
{
|
|
46372
|
-
const l47 =
|
|
46485
|
+
const l47 = f32(o52.coordinates);
|
|
46373
46486
|
r60 = new google.maps[o52.type === "polygon" ? "Polygon" : "Polyline"]({ path: l47, strokeColor: o52.strokeColor, fillColor: o52.fillColor, strokeWeight: o52.strokeWeight, editable: true, draggable: true, map: this.map, fillOpacity: o52.type === "polygon" ? o52.fillOpacity : 1 });
|
|
46374
46487
|
}
|
|
46375
46488
|
break;
|
|
@@ -46506,7 +46619,7 @@ init_component();
|
|
|
46506
46619
|
var h39 = Object.defineProperty;
|
|
46507
46620
|
var p49 = (l47, o52) => h39(l47, "name", { value: o52, configurable: true });
|
|
46508
46621
|
var c41;
|
|
46509
|
-
var
|
|
46622
|
+
var m36 = function(l47, o52, e42, n49) {
|
|
46510
46623
|
var r60 = arguments.length, t45 = r60 < 3 ? o52 : n49 === null ? n49 = Object.getOwnPropertyDescriptor(o52, e42) : n49, s52;
|
|
46511
46624
|
if (typeof Reflect == "object" && typeof Reflect.decorate == "function") t45 = Reflect.decorate(l47, o52, e42, n49);
|
|
46512
46625
|
else for (var a68 = l47.length - 1; a68 >= 0; a68--) (s52 = l47[a68]) && (t45 = (r60 < 3 ? s52(t45) : r60 > 3 ? s52(o52, e42, t45) : s52(o52, e42)) || t45);
|
|
@@ -46525,13 +46638,13 @@ var i44 = (c41 = class extends UIForm {
|
|
|
46525
46638
|
this.state.controls = __spreadProps(__spreadValues({}, this.state.controls), { [o52]: e42 === "true" });
|
|
46526
46639
|
}
|
|
46527
46640
|
}, p49(c41, "UIMapsControlsForm"), c41);
|
|
46528
|
-
i44 =
|
|
46641
|
+
i44 = m36([component], i44);
|
|
46529
46642
|
|
|
46530
46643
|
// node_modules/jodit-pro/esm/plugins/google-maps/ui/maps-props/maps-props.js
|
|
46531
46644
|
init_decorators();
|
|
46532
46645
|
init_selector();
|
|
46533
|
-
var
|
|
46534
|
-
var v16 = (u62, e42) =>
|
|
46646
|
+
var m37 = Object.defineProperty;
|
|
46647
|
+
var v16 = (u62, e42) => m37(u62, "name", { value: e42, configurable: true });
|
|
46535
46648
|
var h40;
|
|
46536
46649
|
var r50 = function(u62, e42, t45, n49) {
|
|
46537
46650
|
var a68 = arguments.length, l47 = a68 < 3 ? e42 : n49 === null ? n49 = Object.getOwnPropertyDescriptor(e42, t45) : n49, i49;
|
|
@@ -46622,8 +46735,8 @@ var y7 = class y8 extends Plugin {
|
|
|
46622
46735
|
return __async(this, null, function* () {
|
|
46623
46736
|
const t45 = this.j, i49 = this.getDialog(), r60 = this.j.o.googleMaps.saveStateInStorage ? i49.storage.get(o35) : void 0, { apiUrl: c68 } = this.jodit.o.googleMaps;
|
|
46624
46737
|
A3() || appendScriptAsync(this.jodit, c68.replace(/\${([^}]+)}/g, (a68, l47) => {
|
|
46625
|
-
var
|
|
46626
|
-
return (
|
|
46738
|
+
var f46;
|
|
46739
|
+
return (f46 = this.get(l47)) !== null && f46 !== void 0 ? f46 : "";
|
|
46627
46740
|
}));
|
|
46628
46741
|
const p59 = __spreadValues(__spreadValues({ type: this.j.o.googleMaps.map.type, layer: this.j.o.googleMaps.map.layer, size: this.j.o.googleMaps.map.size }, r60), s52), o52 = new s42(i49, p59, this.j.options);
|
|
46629
46742
|
o52.container.classList.add(i49.getFullElName("map"));
|
|
@@ -46655,13 +46768,13 @@ var y7 = class y8 extends Plugin {
|
|
|
46655
46768
|
const l47 = { value: a68.outerHTML };
|
|
46656
46769
|
this.onAfterGetValueFromEditor(l47), t45.execCommand("preview", null, l47.value);
|
|
46657
46770
|
})]).setContent(TabsWidget(t45, [{ name: "Map", icon: "map", content: o52 }, { name: "Settings", content: new o38(t45, o52.state) }, { name: "Controls", icon: "menu", content: new i44(t45, o52.state) }])).setFooter([Button(t45, "cancel", "Cancel", "default").onAction(() => i49.close()), Button(t45, "ok", e42 ? "Save" : "Insert", "primary").onAction(() => {
|
|
46658
|
-
o52.destruct(), n49.destruct(), i49.e.off("beforeClose",
|
|
46771
|
+
o52.destruct(), n49.destruct(), i49.e.off("beforeClose", m53), i49.close(), this.insertMap(e42, o52);
|
|
46659
46772
|
})]).open();
|
|
46660
|
-
const
|
|
46773
|
+
const m53 = u51(() => {
|
|
46661
46774
|
if (o52.state.elements.length && JSON.stringify(o52.state.elements) !== JSON.stringify(p59.elements) && !IS_TEST && !confirm(this.i18n("Are you sure?"))) return false;
|
|
46662
|
-
o52.destruct(), n49.destruct(), i49.e.off("beforeClose",
|
|
46775
|
+
o52.destruct(), n49.destruct(), i49.e.off("beforeClose", m53);
|
|
46663
46776
|
}, "onCLose");
|
|
46664
|
-
i49.e.on("beforeClose",
|
|
46777
|
+
i49.e.on("beforeClose", m53);
|
|
46665
46778
|
});
|
|
46666
46779
|
}
|
|
46667
46780
|
getDialog() {
|
|
@@ -46701,7 +46814,7 @@ init_config();
|
|
|
46701
46814
|
init_helpers();
|
|
46702
46815
|
init_plugin2();
|
|
46703
46816
|
var d42 = Object.defineProperty;
|
|
46704
|
-
var
|
|
46817
|
+
var m38 = (e42, o52) => d42(e42, "name", { value: o52, configurable: true });
|
|
46705
46818
|
Config.prototype.controls.google = { tooltip: "Google search", icon: C9, isDisabled(e42) {
|
|
46706
46819
|
return isEditorEmpty(e42.editor);
|
|
46707
46820
|
}, command: "startSearch" };
|
|
@@ -46710,7 +46823,7 @@ var c42 = class c43 extends Plugin {
|
|
|
46710
46823
|
super(...arguments), this.buttons = [{ name: "google", group: "search" }];
|
|
46711
46824
|
}
|
|
46712
46825
|
afterInit(o52) {
|
|
46713
|
-
o52.registerCommand("startSearch", { exec:
|
|
46826
|
+
o52.registerCommand("startSearch", { exec: m38(() => {
|
|
46714
46827
|
var i49, n49, s52;
|
|
46715
46828
|
let r60;
|
|
46716
46829
|
const { s: l47 } = o52;
|
|
@@ -46723,7 +46836,7 @@ var c42 = class c43 extends Plugin {
|
|
|
46723
46836
|
beforeDestruct(o52) {
|
|
46724
46837
|
}
|
|
46725
46838
|
};
|
|
46726
|
-
|
|
46839
|
+
m38(c42, "googleSearch");
|
|
46727
46840
|
var t29 = c42;
|
|
46728
46841
|
t29.requires = ["license"], n11.plugins.add("google-search", t29);
|
|
46729
46842
|
|
|
@@ -46802,14 +46915,14 @@ var h42 = class h43 extends Plugin {
|
|
|
46802
46915
|
}
|
|
46803
46916
|
replaceMatchedTextToElm(e42, t45, r60, i49) {
|
|
46804
46917
|
var o52;
|
|
46805
|
-
const { j: n49 } = this, { range: s52 } = n49.s, u62 = s52.startContainer === e42,
|
|
46806
|
-
e42.nodeValue = t45.substring(0,
|
|
46807
|
-
const p59 = t45.substring(
|
|
46918
|
+
const { j: n49 } = this, { range: s52 } = n49.s, u62 = s52.startContainer === e42, m53 = s52.startOffset, f46 = (o52 = r60.index) !== null && o52 !== void 0 ? o52 : 0;
|
|
46919
|
+
e42.nodeValue = t45.substring(0, f46);
|
|
46920
|
+
const p59 = t45.substring(f46 + r60[0].length);
|
|
46808
46921
|
if (p59.length) {
|
|
46809
46922
|
const x9 = n49.createInside.text(p59);
|
|
46810
46923
|
Dom.after(e42, x9);
|
|
46811
46924
|
}
|
|
46812
|
-
i49.innerText = r60[0], Dom.after(e42, i49), u62 && this.restoreCursorPosition(
|
|
46925
|
+
i49.innerText = r60[0], Dom.after(e42, i49), u62 && this.restoreCursorPosition(m53, e42, i49.firstChild, i49.nextSibling);
|
|
46813
46926
|
}
|
|
46814
46927
|
static hasUtilWrapper(e42) {
|
|
46815
46928
|
return Dom.isTemporary(e42.parentElement);
|
|
@@ -46857,8 +46970,8 @@ Config.prototype.controls.iframeEditor = { icon: h44, tooltip: "Iframe Editor",
|
|
|
46857
46970
|
|
|
46858
46971
|
// node_modules/jodit-pro/esm/plugins/iframe-editor/ui/iframe-editor/iframe-editor.js
|
|
46859
46972
|
init_component();
|
|
46860
|
-
var
|
|
46861
|
-
var s43 = (l47, e42) =>
|
|
46973
|
+
var f36 = Object.defineProperty;
|
|
46974
|
+
var s43 = (l47, e42) => f36(l47, "name", { value: e42, configurable: true });
|
|
46862
46975
|
var n43;
|
|
46863
46976
|
var p51 = function(l47, e42, a68, t45) {
|
|
46864
46977
|
var i49 = arguments.length, r60 = i49 < 3 ? e42 : t45 === null ? t45 = Object.getOwnPropertyDescriptor(e42, a68) : t45, c68;
|
|
@@ -46866,7 +46979,7 @@ var p51 = function(l47, e42, a68, t45) {
|
|
|
46866
46979
|
else for (var o52 = l47.length - 1; o52 >= 0; o52--) (c68 = l47[o52]) && (r60 = (i49 < 3 ? c68(r60) : i49 > 3 ? c68(e42, a68, r60) : c68(e42, a68)) || r60);
|
|
46867
46980
|
return i49 > 3 && r60 && Object.defineProperty(e42, a68, r60), r60;
|
|
46868
46981
|
};
|
|
46869
|
-
var
|
|
46982
|
+
var m39 = (n43 = class extends UIGroup {
|
|
46870
46983
|
className() {
|
|
46871
46984
|
return "UIIframeEditor";
|
|
46872
46985
|
}
|
|
@@ -46886,7 +46999,7 @@ var m40 = (n43 = class extends UIGroup {
|
|
|
46886
46999
|
}, "onChange") })]);
|
|
46887
47000
|
}
|
|
46888
47001
|
}, s43(n43, "UIIframeEditor"), n43);
|
|
46889
|
-
|
|
47002
|
+
m39 = p51([component], m39);
|
|
46890
47003
|
|
|
46891
47004
|
// node_modules/jodit-pro/esm/plugins/iframe-editor/iframe-editor.js
|
|
46892
47005
|
init_decorators();
|
|
@@ -46901,7 +47014,7 @@ var u52 = function(c68, i49, e42, t45) {
|
|
|
46901
47014
|
else for (var o52 = c68.length - 1; o52 >= 0; o52--) (d49 = c68[o52]) && (l47 = (s52 < 3 ? d49(l47) : s52 > 3 ? d49(i49, e42, l47) : d49(i49, e42)) || l47);
|
|
46902
47015
|
return s52 > 3 && l47 && Object.defineProperty(i49, e42, l47), l47;
|
|
46903
47016
|
};
|
|
46904
|
-
var
|
|
47017
|
+
var m40 = class m41 extends Plugin {
|
|
46905
47018
|
constructor() {
|
|
46906
47019
|
super(...arguments), this.buttons = [{ group: "form", name: "iframeEditor" }];
|
|
46907
47020
|
}
|
|
@@ -46911,7 +47024,7 @@ var m41 = class m42 extends Plugin {
|
|
|
46911
47024
|
toggleEditor(i49) {
|
|
46912
47025
|
var e42, t45, s52, l47, d49;
|
|
46913
47026
|
this.__dialog || (this.__dialog = new Dialog({ language: this.j.o.language, theme: this.j.o.theme }), this.__dialog.setHeader("Iframe Properties").setSize(470, 400)), i49 && !Dom.isTag(i49, "iframe") && (i49 = void 0);
|
|
46914
|
-
const o52 = new
|
|
47027
|
+
const o52 = new m39(this.__dialog, { src: (e42 = i49 == null ? void 0 : i49.src) !== null && e42 !== void 0 ? e42 : "", name: (t45 = i49 == null ? void 0 : i49.name) !== null && t45 !== void 0 ? t45 : "", title: (s52 = i49 == null ? void 0 : i49.title) !== null && s52 !== void 0 ? s52 : "", frameBorder: (i49 == null ? void 0 : i49.frameBorder) === "1" || (i49 == null ? void 0 : i49.frameBorder) === "yes", width: (l47 = i49 == null ? void 0 : i49.offsetWidth) !== null && l47 !== void 0 ? l47 : 700, height: (d49 = i49 == null ? void 0 : i49.offsetHeight) !== null && d49 !== void 0 ? d49 : 400 });
|
|
46915
47028
|
this.__dialog.setContent(o52);
|
|
46916
47029
|
const n49 = this.__dialog;
|
|
46917
47030
|
n49.isOpened ? n49.close() : (n49.setFooter([Button(n49, "cancel", "Cancel", "default").onAction(() => n49.close()), Button(n49, "ok", i49 ? "Update" : "Insert", "primary").onAction(() => {
|
|
@@ -46932,8 +47045,8 @@ var m41 = class m42 extends Plugin {
|
|
|
46932
47045
|
(e42 = this.__dialog) === null || e42 === void 0 || e42.destruct();
|
|
46933
47046
|
}
|
|
46934
47047
|
};
|
|
46935
|
-
a58(
|
|
46936
|
-
var r51 =
|
|
47048
|
+
a58(m40, "IframeEditor");
|
|
47049
|
+
var r51 = m40;
|
|
46937
47050
|
r51.requires = ["license", "color-picker"], u52([autobind], r51.prototype, "toggleEditor", null), u52([watch(":dblclick")], r51.prototype, "onDblClick", null), n11.plugins.add("iframe-editor", r51);
|
|
46938
47051
|
|
|
46939
47052
|
// node_modules/jodit-pro/esm/plugins/keyboard/icon.svg.js
|
|
@@ -46967,7 +47080,7 @@ var v17 = '<svg viewBox="0 0 48 48" xmlns="http://www.w3.org/2000/svg"> <path d=
|
|
|
46967
47080
|
|
|
46968
47081
|
// node_modules/jodit-pro/esm/plugins/keyboard/ui/keyboard/keyboard.js
|
|
46969
47082
|
var b14 = Object.defineProperty;
|
|
46970
|
-
var
|
|
47083
|
+
var m42 = (u62, t45) => b14(u62, "name", { value: t45, configurable: true });
|
|
46971
47084
|
var p53;
|
|
46972
47085
|
var l42 = function(u62, t45, r60, s52) {
|
|
46973
47086
|
var o52 = arguments.length, e42 = o52 < 3 ? t45 : s52 === null ? s52 = Object.getOwnPropertyDescriptor(t45, r60) : s52, a68;
|
|
@@ -46975,8 +47088,8 @@ var l42 = function(u62, t45, r60, s52) {
|
|
|
46975
47088
|
else for (var i49 = u62.length - 1; i49 >= 0; i49--) (a68 = u62[i49]) && (e42 = (o52 < 3 ? a68(e42) : o52 > 3 ? a68(t45, r60, e42) : a68(t45, r60)) || e42);
|
|
46976
47089
|
return o52 > 3 && e42 && Object.defineProperty(t45, r60, e42), e42;
|
|
46977
47090
|
};
|
|
46978
|
-
var
|
|
46979
|
-
var n44 =
|
|
47091
|
+
var f37;
|
|
47092
|
+
var n44 = f37 = (p53 = class extends UIElement {
|
|
46980
47093
|
className() {
|
|
46981
47094
|
return "UIKeyboard";
|
|
46982
47095
|
}
|
|
@@ -47000,7 +47113,7 @@ var n44 = f36 = (p53 = class extends UIElement {
|
|
|
47000
47113
|
for (let i49 = 0; i49 < e42.length; i49 += 1) for (let y10 = 0; y10 < e42[i49].length; y10 += 1) {
|
|
47001
47114
|
const c68 = e42[i49][y10].split(" ");
|
|
47002
47115
|
let h52 = c68[0];
|
|
47003
|
-
s52 && (h52 = c68[1]), !s52 && o52 && c68[1] &&
|
|
47116
|
+
s52 && (h52 = c68[1]), !s52 && o52 && c68[1] && f37.isLetter(c68[0]) && (h52 = c68[1]), r60 && (h52 = c68[2]), this.setKeyValue(a68, h52 != null ? h52 : c68[0]), a68 += 1;
|
|
47004
47117
|
}
|
|
47005
47118
|
}
|
|
47006
47119
|
static isLetter(t45) {
|
|
@@ -47022,7 +47135,7 @@ var n44 = f36 = (p53 = class extends UIElement {
|
|
|
47022
47135
|
o52 = a68;
|
|
47023
47136
|
break;
|
|
47024
47137
|
}
|
|
47025
|
-
s52.innerHTML =
|
|
47138
|
+
s52.innerHTML = f37.decorate(r60), s52.classList.toggle(this.getFullElName("key", "active", true), o52), attr(s52, "-key", r60);
|
|
47026
47139
|
}
|
|
47027
47140
|
onKeyUp() {
|
|
47028
47141
|
this.pressed && this.stopPress();
|
|
@@ -47088,8 +47201,8 @@ var n44 = f36 = (p53 = class extends UIElement {
|
|
|
47088
47201
|
return t45;
|
|
47089
47202
|
}
|
|
47090
47203
|
}
|
|
47091
|
-
},
|
|
47092
|
-
l42([watch(["state.currentLayout", "state.options", "state.shift", "state.caps"])], n44.prototype, "onStateChange", null), l42([watch(["ow:mouseup"])], n44.prototype, "onKeyUp", null), l42([hook("ready")], n44.prototype, "onReady", null), l42([autobind], n44.prototype, "stopPress", null), l42([watch(["container:mousedown", "container:touchstart"])], n44.prototype, "onKeyDown", null), n44 =
|
|
47204
|
+
}, m42(p53, "UIKeyboard"), p53);
|
|
47205
|
+
l42([watch(["state.currentLayout", "state.options", "state.shift", "state.caps"])], n44.prototype, "onStateChange", null), l42([watch(["ow:mouseup"])], n44.prototype, "onKeyUp", null), l42([hook("ready")], n44.prototype, "onReady", null), l42([autobind], n44.prototype, "stopPress", null), l42([watch(["container:mousedown", "container:touchstart"])], n44.prototype, "onKeyDown", null), n44 = f37 = l42([component], n44);
|
|
47093
47206
|
|
|
47094
47207
|
// node_modules/jodit-pro/esm/plugins/keyboard/keyboard.js
|
|
47095
47208
|
init_config();
|
|
@@ -47158,15 +47271,15 @@ var a60 = '<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"> <path d=
|
|
|
47158
47271
|
init_config();
|
|
47159
47272
|
init_is_numeric();
|
|
47160
47273
|
init_data_bind();
|
|
47161
|
-
var
|
|
47162
|
-
var l43 = (e42, n49) =>
|
|
47274
|
+
var f38 = Object.defineProperty;
|
|
47275
|
+
var l43 = (e42, n49) => f38(e42, "name", { value: n49, configurable: true });
|
|
47163
47276
|
Config.prototype.mobileView = { mode: "default" };
|
|
47164
47277
|
var c46 = "buttonmobileSView";
|
|
47165
|
-
var
|
|
47166
|
-
Config.prototype.controls.mobileView = { tooltip: "Mobile View", icon: a60, command: "mobileView", isActive: l43((e42) => dataBind(e42,
|
|
47278
|
+
var m43 = "buttonmobileCView";
|
|
47279
|
+
Config.prototype.controls.mobileView = { tooltip: "Mobile View", icon: a60, command: "mobileView", isActive: l43((e42) => dataBind(e42, m43) && dataBind(e42, m43) !== "default", "isActive"), isChildActive: l43((e42, n49) => {
|
|
47167
47280
|
var t45, i49;
|
|
47168
47281
|
let o52 = (i49 = (t45 = n49.control) === null || t45 === void 0 ? void 0 : t45.args) === null || i49 === void 0 ? void 0 : i49[0];
|
|
47169
|
-
return isNumeric(o52) && (o52 = Number(o52)), (dataBind(e42,
|
|
47282
|
+
return isNumeric(o52) && (o52 = Number(o52)), (dataBind(e42, m43) || "default") === o52;
|
|
47170
47283
|
}, "isChildActive"), exec: l43((e42) => {
|
|
47171
47284
|
if (dataBind(e42, c46)) {
|
|
47172
47285
|
e42.execCommand("mobileView", false, dataBind(e42, c46));
|
|
@@ -47187,13 +47300,13 @@ var b15 = Object.defineProperty;
|
|
|
47187
47300
|
var c47 = (o52, e42) => b15(o52, "name", { value: e42, configurable: true });
|
|
47188
47301
|
var h47 = (o52, e42) => () => (e42 || o52((e42 = { exports: {} }).exports, e42), e42.exports);
|
|
47189
47302
|
var S4 = h47((d49) => {
|
|
47190
|
-
var n49,
|
|
47303
|
+
var n49, m53 = d49 && d49.__decorate || function(o52, e42, i49, l47) {
|
|
47191
47304
|
var t45 = arguments.length, r60 = t45 < 3 ? e42 : l47 === null ? l47 = Object.getOwnPropertyDescriptor(e42, i49) : l47, u62;
|
|
47192
47305
|
if (typeof Reflect == "object" && typeof Reflect.decorate == "function") r60 = Reflect.decorate(o52, e42, i49, l47);
|
|
47193
47306
|
else for (var a68 = o52.length - 1; a68 >= 0; a68--) (u62 = o52[a68]) && (r60 = (t45 < 3 ? u62(r60) : t45 > 3 ? u62(e42, i49, r60) : u62(e42, i49)) || r60);
|
|
47194
47307
|
return t45 > 3 && r60 && Object.defineProperty(e42, i49, r60), r60;
|
|
47195
47308
|
};
|
|
47196
|
-
let
|
|
47309
|
+
let f46 = (n49 = class extends Plugin {
|
|
47197
47310
|
constructor() {
|
|
47198
47311
|
super(...arguments), this.buttons = [{ name: "mobileView", group: "state" }], this.__currentMode = "default";
|
|
47199
47312
|
}
|
|
@@ -47202,7 +47315,7 @@ var S4 = h47((d49) => {
|
|
|
47202
47315
|
}
|
|
47203
47316
|
afterInit(e42) {
|
|
47204
47317
|
e42.registerCommand("mobileView", { exec: c47((i49, l47, t45) => {
|
|
47205
|
-
this.__currentMode === t45 && (t45 = "default"), this.__currentMode = t45, dataBind(e42,
|
|
47318
|
+
this.__currentMode === t45 && (t45 = "default"), this.__currentMode = t45, dataBind(e42, m43, t45), this.__currentMode !== "default" && dataBind(e42, c46, t45), t45 === "default" ? css(this.jodit.currentPlace.slots.center, { width: null, margin: null }) : css(this.j.currentPlace.slots.center, { width: t45, margin: "0 auto" });
|
|
47206
47319
|
}, "exec") }), e42.events.on("beforeSetMode", () => {
|
|
47207
47320
|
});
|
|
47208
47321
|
}
|
|
@@ -47212,7 +47325,7 @@ var S4 = h47((d49) => {
|
|
|
47212
47325
|
beforeDestruct(e42) {
|
|
47213
47326
|
}
|
|
47214
47327
|
}, c47(n49, "MobileView"), n49);
|
|
47215
|
-
|
|
47328
|
+
f46.requires = ["license"], m53([watch(":beforeSetMode.mobileView")], f46.prototype, "__beforeSetMode", null), f46 = m53([component], f46), n11.plugins.add("mobileView", f46);
|
|
47216
47329
|
});
|
|
47217
47330
|
var mobile_view_default = S4();
|
|
47218
47331
|
|
|
@@ -47256,7 +47369,7 @@ var u55 = function(i49, e42, t45, r60) {
|
|
|
47256
47369
|
else for (var l47 = i49.length - 1; l47 >= 0; l47--) (s52 = i49[l47]) && (a68 = (n49 < 3 ? s52(a68) : n49 > 3 ? s52(e42, t45, a68) : s52(e42, t45)) || a68);
|
|
47257
47370
|
return n49 > 3 && a68 && Object.defineProperty(e42, t45, a68), a68;
|
|
47258
47371
|
};
|
|
47259
|
-
var
|
|
47372
|
+
var f39 = class f40 extends Plugin {
|
|
47260
47373
|
constructor() {
|
|
47261
47374
|
super(...arguments), this.styles = styles, this.buttons = [{ name: "pageBreak", group: "insert" }];
|
|
47262
47375
|
}
|
|
@@ -47286,8 +47399,8 @@ var f38 = class f39 extends Plugin {
|
|
|
47286
47399
|
e42.value = e42.value.replace(/<div[^>]+data-jodit-page-break[^>]+>[^]*?<\/div>/gi, this.j.o.pageBreak.separator);
|
|
47287
47400
|
}
|
|
47288
47401
|
};
|
|
47289
|
-
c48(
|
|
47290
|
-
var o39 =
|
|
47402
|
+
c48(f39, "PageBreak");
|
|
47403
|
+
var o39 = f39;
|
|
47291
47404
|
o39.requires = ["license"], u55([watch([":change", ":afterSetMode"]), debounce()], o39.prototype, "onChange", null), u55([watch(":afterGetValueFromEditor")], o39.prototype, "onAfterGetValueFromEditor", null), n11.plugins.add("pageBreak", o39);
|
|
47292
47405
|
|
|
47293
47406
|
// node_modules/jodit-pro/esm/plugins/paste-code/icon.svg.js
|
|
@@ -47355,8 +47468,8 @@ var r53 = (g19 = class extends Plugin {
|
|
|
47355
47468
|
const h52 = o52.createInside.fromHTML(o52.o.pasteCode.insertTemplate(o52, n49.value, s52.value));
|
|
47356
47469
|
if (i49) Dom.replace(i49, h52, o52.createInside, false, true);
|
|
47357
47470
|
else {
|
|
47358
|
-
const b18 = o52.s.current(),
|
|
47359
|
-
|
|
47471
|
+
const b18 = o52.s.current(), f46 = Dom.up(b18, Dom.isBlock, o52.editor);
|
|
47472
|
+
f46 && !Dom.isCell(f46) ? Dom.after(f46, h52) : o52.s.insertNode(h52);
|
|
47360
47473
|
}
|
|
47361
47474
|
this.__imdOnChange();
|
|
47362
47475
|
return;
|
|
@@ -47492,7 +47605,7 @@ var fa_default6 = e28();
|
|
|
47492
47605
|
|
|
47493
47606
|
// node_modules/jodit-pro/esm/plugins/show-blocks/langs/fr.js
|
|
47494
47607
|
var o41 = (e42, s52) => () => (s52 || e42((s52 = { exports: {} }).exports, s52), s52.exports);
|
|
47495
|
-
var r54 = o41((
|
|
47608
|
+
var r54 = o41((f46, c68) => {
|
|
47496
47609
|
c68.exports = { "Show Blocks": "Afficher Les Blocs" };
|
|
47497
47610
|
});
|
|
47498
47611
|
var fr_default7 = r54();
|
|
@@ -47596,8 +47709,8 @@ init_decorators();
|
|
|
47596
47709
|
init_dom();
|
|
47597
47710
|
init_global2();
|
|
47598
47711
|
init_plugin2();
|
|
47599
|
-
var
|
|
47600
|
-
var c61 = (s52, e42) =>
|
|
47712
|
+
var m44 = Object.defineProperty;
|
|
47713
|
+
var c61 = (s52, e42) => m44(s52, "name", { value: e42, configurable: true });
|
|
47601
47714
|
var a63 = function(s52, e42, i49, n49) {
|
|
47602
47715
|
var r60 = arguments.length, t45 = r60 < 3 ? e42 : n49 === null ? n49 = Object.getOwnPropertyDescriptor(e42, i49) : n49, l47;
|
|
47603
47716
|
if (typeof Reflect == "object" && typeof Reflect.decorate == "function") t45 = Reflect.decorate(s52, e42, i49, n49);
|
|
@@ -47677,8 +47790,8 @@ i45(d44, "detectActiveStyle");
|
|
|
47677
47790
|
// node_modules/jodit-pro/esm/plugins/style/helpers/apply-style.js
|
|
47678
47791
|
init_constants();
|
|
47679
47792
|
init_dom();
|
|
47680
|
-
var
|
|
47681
|
-
var r55 = (e42, s52) =>
|
|
47793
|
+
var f41 = Object.defineProperty;
|
|
47794
|
+
var r55 = (e42, s52) => f41(e42, "name", { value: s52, configurable: true });
|
|
47682
47795
|
function c63(e42, s52) {
|
|
47683
47796
|
const n49 = e42.s.current();
|
|
47684
47797
|
if (!n49) return null;
|
|
@@ -47718,22 +47831,22 @@ function C11(e42, s52) {
|
|
|
47718
47831
|
if (i49) for (let l47 = 1; l47 < t45.length; l47++) i49.classList.add(t45[l47]);
|
|
47719
47832
|
}
|
|
47720
47833
|
r55(C11, "addExtraClasses");
|
|
47721
|
-
function
|
|
47834
|
+
function m45(e42) {
|
|
47722
47835
|
var s52;
|
|
47723
47836
|
const n49 = (s52 = e42.classes) === null || s52 === void 0 ? void 0 : s52.filter(Boolean)[0];
|
|
47724
47837
|
return n49 ? { element: e42.element, attributes: { class: n49 } } : { element: e42.element };
|
|
47725
47838
|
}
|
|
47726
|
-
r55(
|
|
47839
|
+
r55(m45, "buildCommitStyleOptions");
|
|
47727
47840
|
function b16(e42, s52, n49) {
|
|
47728
47841
|
const t45 = d44(e42, n49);
|
|
47729
|
-
t45 && (e42.s.commitStyle(
|
|
47842
|
+
t45 && (e42.s.commitStyle(m45(t45)), p54(e42, t45), t45 === s52) || (e42.s.commitStyle(m45(s52)), C11(e42, s52));
|
|
47730
47843
|
}
|
|
47731
47844
|
r55(b16, "applyStyle");
|
|
47732
47845
|
|
|
47733
47846
|
// node_modules/jodit-pro/esm/plugins/style/helpers/classify-definitions.js
|
|
47734
47847
|
init_constants();
|
|
47735
|
-
var
|
|
47736
|
-
var o44 = (e42, t45) =>
|
|
47848
|
+
var f42 = Object.defineProperty;
|
|
47849
|
+
var o44 = (e42, t45) => f42(e42, "name", { value: t45, configurable: true });
|
|
47737
47850
|
function r56(e42) {
|
|
47738
47851
|
const t45 = [], s52 = [];
|
|
47739
47852
|
for (const n49 of e42) IS_BLOCK.test(n49.element) ? t45.push(n49) : s52.push(n49);
|
|
@@ -47746,10 +47859,10 @@ o44(r56, "classifyDefinitions");
|
|
|
47746
47859
|
var b17 = Object.defineProperty;
|
|
47747
47860
|
var u58 = (t45, l47) => b17(t45, "name", { value: l47, configurable: true });
|
|
47748
47861
|
var e37 = "jodit-style-popup";
|
|
47749
|
-
function L7(t45, l47,
|
|
47862
|
+
function L7(t45, l47, f46) {
|
|
47750
47863
|
var o52, s52;
|
|
47751
|
-
const
|
|
47752
|
-
for (const i49 of
|
|
47864
|
+
const m53 = r56(l47), C13 = d44(t45, l47), p59 = t45.c.div(e37);
|
|
47865
|
+
for (const i49 of m53) {
|
|
47753
47866
|
const d49 = t45.c.div(`${e37}__group-title`);
|
|
47754
47867
|
d49.textContent = t45.i18n(i49.title), p59.appendChild(d49);
|
|
47755
47868
|
const r60 = t45.c.div(`${e37}__grid`);
|
|
@@ -47763,7 +47876,7 @@ function L7(t45, l47, f45) {
|
|
|
47763
47876
|
a68.textContent = n49.name, _11.appendChild(a68), c68.appendChild(_11);
|
|
47764
47877
|
const v19 = t45.c.div(`${e37}__card-label`);
|
|
47765
47878
|
v19.textContent = n49.name, c68.appendChild(v19), t45.e.on(c68, "click", () => {
|
|
47766
|
-
t45.s.focus(), b16(t45, n49, l47), t45.synchronizeValues(),
|
|
47879
|
+
t45.s.focus(), b16(t45, n49, l47), t45.synchronizeValues(), f46();
|
|
47767
47880
|
}), r60.appendChild(c68);
|
|
47768
47881
|
}
|
|
47769
47882
|
p59.appendChild(r60);
|
|
@@ -47820,8 +47933,8 @@ var t41 = o45;
|
|
|
47820
47933
|
t41.requires = ["license"], n11.plugins.add("style", t41);
|
|
47821
47934
|
|
|
47822
47935
|
// node_modules/jodit-pro/esm/plugins/templates/ui/templates-popup.js
|
|
47823
|
-
var
|
|
47824
|
-
var r57 = (n49, p59) =>
|
|
47936
|
+
var m46 = Object.defineProperty;
|
|
47937
|
+
var r57 = (n49, p59) => m46(n49, "name", { value: p59, configurable: true });
|
|
47825
47938
|
var t42 = "jodit-templates-popup";
|
|
47826
47939
|
function C12(n49, p59, _11) {
|
|
47827
47940
|
const l47 = n49.c.div(t42);
|
|
@@ -48060,8 +48173,8 @@ init_decorators();
|
|
|
48060
48173
|
init_dom();
|
|
48061
48174
|
init_helpers();
|
|
48062
48175
|
init_attr();
|
|
48063
|
-
var
|
|
48064
|
-
var _9 = (r60, t45) =>
|
|
48176
|
+
var m47 = Object.defineProperty;
|
|
48177
|
+
var _9 = (r60, t45) => m47(r60, "name", { value: t45, configurable: true });
|
|
48065
48178
|
var s49;
|
|
48066
48179
|
var l45 = function(r60, t45, e42, i49) {
|
|
48067
48180
|
var n49 = arguments.length, a68 = n49 < 3 ? t45 : i49 === null ? i49 = Object.getOwnPropertyDescriptor(t45, e42) : i49, h52;
|
|
@@ -48168,33 +48281,33 @@ function R3(t45) {
|
|
|
48168
48281
|
t45.s.range.commonAncestorContainer.normalize();
|
|
48169
48282
|
const a68 = t45.s.range, { commonAncestorContainer: T3, startContainer: l47, endContainer: h52, startOffset: u62, endOffset: d49 } = a68;
|
|
48170
48283
|
if (l47 === h52) {
|
|
48171
|
-
if (Dom.isText(l47)) return [
|
|
48284
|
+
if (Dom.isText(l47)) return [f43(l47, u62, d49)];
|
|
48172
48285
|
if (d49 - u62 === 1) {
|
|
48173
48286
|
const o52 = l47.childNodes[u62];
|
|
48174
|
-
return Dom.isText(o52) ? [
|
|
48287
|
+
return Dom.isText(o52) ? [f43(o52, 0, o52.nodeValue.length)] : [N3(o52)];
|
|
48175
48288
|
}
|
|
48176
48289
|
if (u62 === 0 && l47.childNodes.length === d49) return [N3(l47)];
|
|
48177
48290
|
for (let o52 = u62; o52 < d49; o52++) {
|
|
48178
48291
|
const s52 = l47.childNodes[o52];
|
|
48179
|
-
Dom.isText(s52) ? e42.push(
|
|
48292
|
+
Dom.isText(s52) ? e42.push(f43(s52, 0, s52.nodeValue.length)) : e42.push(N3(s52));
|
|
48180
48293
|
}
|
|
48181
48294
|
return e42;
|
|
48182
48295
|
}
|
|
48183
48296
|
const p59 = /* @__PURE__ */ new Set(), g21 = t45.ed.createTreeWalker(T3, NodeFilter.SHOW_ALL, { acceptNode: i47((o52) => !a68.intersectsNode(o52) || Dom.closest(o52, (s52) => s52 && p59.has(s52), T3) ? NodeFilter.FILTER_REJECT : NodeFilter.FILTER_ACCEPT, "acceptNode") });
|
|
48184
48297
|
let n49 = g21.nextNode();
|
|
48185
48298
|
for (; n49; ) {
|
|
48186
|
-
if (Dom.isElement(n49) &&
|
|
48187
|
-
else if (Dom.isText(n49) &&
|
|
48299
|
+
if (Dom.isElement(n49) && m48(a68, n49)) p59.add(n49), e42.push(N3(n49));
|
|
48300
|
+
else if (Dom.isText(n49) && m48(a68, n49)) e42.push(f43(n49, 0, n49.nodeValue.length));
|
|
48188
48301
|
else if (Dom.isText(n49)) {
|
|
48189
48302
|
let o52 = 0, s52 = n49.nodeValue.length;
|
|
48190
|
-
n49 === l47 && (o52 = u62), n49 === h52 && (s52 = d49), e42.push(
|
|
48303
|
+
n49 === l47 && (o52 = u62), n49 === h52 && (s52 = d49), e42.push(f43(n49, o52, s52));
|
|
48191
48304
|
}
|
|
48192
48305
|
n49 = g21.nextNode();
|
|
48193
48306
|
}
|
|
48194
48307
|
return e42;
|
|
48195
48308
|
}
|
|
48196
48309
|
i47(R3, "getSelectionFragments");
|
|
48197
|
-
var
|
|
48310
|
+
var m48 = i47((t45, e42) => {
|
|
48198
48311
|
const r60 = document.createRange();
|
|
48199
48312
|
try {
|
|
48200
48313
|
r60.selectNodeContents(e42);
|
|
@@ -48203,12 +48316,12 @@ var m49 = i47((t45, e42) => {
|
|
|
48203
48316
|
}
|
|
48204
48317
|
return t45.compareBoundaryPoints(Range.START_TO_START, r60) <= 0 && t45.compareBoundaryPoints(Range.END_TO_END, r60) >= 0;
|
|
48205
48318
|
}, "fullyContains");
|
|
48206
|
-
function
|
|
48319
|
+
function f43(t45, e42, r60) {
|
|
48207
48320
|
return { text: t45.nodeValue.slice(e42, r60), replace: i47((T3) => {
|
|
48208
48321
|
t45.nodeValue = t45.nodeValue.slice(0, e42) + T3 + t45.nodeValue.slice(r60);
|
|
48209
48322
|
}, "replace") };
|
|
48210
48323
|
}
|
|
48211
|
-
i47(
|
|
48324
|
+
i47(f43, "replaceTextNode");
|
|
48212
48325
|
function N3(t45) {
|
|
48213
48326
|
const e42 = t45;
|
|
48214
48327
|
return { text: e42.innerHTML, replace: i47((r60) => {
|
|
@@ -48232,7 +48345,7 @@ var P4 = function(g21, t45, n49, i49) {
|
|
|
48232
48345
|
else for (var r60 = g21.length - 1; r60 >= 0; r60--) (e42 = g21[r60]) && (s52 = (a68 < 3 ? e42(s52) : a68 > 3 ? e42(t45, n49, s52) : e42(t45, n49)) || s52);
|
|
48233
48346
|
return a68 > 3 && s52 && Object.defineProperty(t45, n49, s52), s52;
|
|
48234
48347
|
};
|
|
48235
|
-
var
|
|
48348
|
+
var m49 = class m50 extends Plugin {
|
|
48236
48349
|
constructor() {
|
|
48237
48350
|
super(...arguments), this.buttons = [{ name: "translate.translate", group: "insert" }], this.state = { sourceLang: this.jodit.o.translate.defaultSourceLang || "en", targetLang: this.jodit.o.translate.defaultTargetLang };
|
|
48238
48351
|
}
|
|
@@ -48277,16 +48390,16 @@ var m50 = class m51 extends Plugin {
|
|
|
48277
48390
|
beforeDestruct(t45) {
|
|
48278
48391
|
}
|
|
48279
48392
|
};
|
|
48280
|
-
u59(
|
|
48281
|
-
var c66 =
|
|
48393
|
+
u59(m49, "Translate");
|
|
48394
|
+
var c66 = m49;
|
|
48282
48395
|
c66.requires = ["license"], P4([persistent], c66.prototype, "state", void 0), n11.plugins.add("translate", c66);
|
|
48283
48396
|
|
|
48284
48397
|
// node_modules/jodit-pro/esm/plugins/tune-block/config.js
|
|
48285
48398
|
init_config();
|
|
48286
48399
|
init_dom2();
|
|
48287
48400
|
init_helpers();
|
|
48288
|
-
var
|
|
48289
|
-
var c67 = (e42, n49) =>
|
|
48401
|
+
var f44 = Object.defineProperty;
|
|
48402
|
+
var c67 = (e42, n49) => f44(e42, "name", { value: n49, configurable: true });
|
|
48290
48403
|
var i48 = ["tune.up", "tune.remove", "tune.down"];
|
|
48291
48404
|
var s50 = ["tune.h1", "tune.h2", "tune.h3", `
|
|
48292
48405
|
`, "tune.h4", "tune.h5", "tune.h6", `
|
|
@@ -48326,8 +48439,8 @@ c67(a67, "moveTo"), Config.prototype.controls.tune = { h1: u60("h1"), h2: u60("h
|
|
|
48326
48439
|
init_decorators();
|
|
48327
48440
|
init_dom2();
|
|
48328
48441
|
init_helpers();
|
|
48329
|
-
var
|
|
48330
|
-
var d46 = (h52, t45) =>
|
|
48442
|
+
var m51 = Object.defineProperty;
|
|
48443
|
+
var d46 = (h52, t45) => m51(h52, "name", { value: t45, configurable: true });
|
|
48331
48444
|
var p56;
|
|
48332
48445
|
var s51 = function(h52, t45, o52, i49) {
|
|
48333
48446
|
var r60 = arguments.length, e42 = r60 < 3 ? t45 : i49 === null ? i49 = Object.getOwnPropertyDescriptor(t45, o52) : i49, l47;
|
|
@@ -48392,7 +48505,7 @@ s51([watch(":hideTuner.tune")], n48.prototype, "hide", null), s51([watch("j.edit
|
|
|
48392
48505
|
init_decorators();
|
|
48393
48506
|
init_plugin2();
|
|
48394
48507
|
var d47 = Object.defineProperty;
|
|
48395
|
-
var
|
|
48508
|
+
var f45 = (i49, e42) => d47(i49, "name", { value: e42, configurable: true });
|
|
48396
48509
|
var u61 = function(i49, e42, n49, r60) {
|
|
48397
48510
|
var l47 = arguments.length, t45 = l47 < 3 ? e42 : r60 === null ? r60 = Object.getOwnPropertyDescriptor(e42, n49) : r60, c68;
|
|
48398
48511
|
if (typeof Reflect == "object" && typeof Reflect.decorate == "function") t45 = Reflect.decorate(i49, e42, n49, r60);
|
|
@@ -48416,16 +48529,16 @@ var p57 = class p58 extends Plugin {
|
|
|
48416
48529
|
this.tuner.destruct();
|
|
48417
48530
|
}
|
|
48418
48531
|
};
|
|
48419
|
-
|
|
48532
|
+
f45(p57, "tuneBlock");
|
|
48420
48533
|
var o50 = p57;
|
|
48421
48534
|
o50.requires = ["license"], u61([watch(":outsideClick :keydown")], o50.prototype, "hideTuner", null), u61([watch("j.ed:selectionchange"), debounce()], o50.prototype, "onChangeSelection", null), u61([watch(":click")], o50.prototype, "onClickInBlock", null), n11.plugins.add("tune-block", o50);
|
|
48422
48535
|
|
|
48423
48536
|
// node_modules/jodit-pro/esm/index.js
|
|
48424
48537
|
var d48 = Object.defineProperty;
|
|
48425
48538
|
var o51 = (r60, t45) => d48(r60, "name", { value: t45, configurable: true });
|
|
48426
|
-
function
|
|
48539
|
+
function m52() {
|
|
48427
48540
|
}
|
|
48428
|
-
o51(
|
|
48541
|
+
o51(m52, "poweredByJodit"), n11.plugins.add("poweredByJodit", m52), n11.modules.ListReconciler = x2;
|
|
48429
48542
|
|
|
48430
48543
|
// src/JoditEditor.tsx
|
|
48431
48544
|
import { forwardRef, useEffect, useRef } from "react";
|