golden-logic-ui 1.0.426 → 1.0.428
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/golden-logic-ui.js +392 -388
- package/dist/golden-logic-ui.umd.cjs +17 -17
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/golden-logic-ui.js
CHANGED
|
@@ -143,7 +143,7 @@ const Bj = /* @__PURE__ */ Kr(Fq, [["render", Vq]]), zq = {
|
|
|
143
143
|
"aria-hidden": "true"
|
|
144
144
|
}, "", -1), Gq = { class: "inline-block overflow-hidden text-left align-bottom transition-all transform bg-white dark:bg-gray-800 rounded-lg shadow-xl sm:my-8 sm:align-middle sm:max-w-lg sm:w-full" }, qq = /* @__PURE__ */ Rj('<div class="px-4 pt-5 pb-4 sm:p-6 sm:pb-4"><div class="sm:flex sm:items-start"><div class="mt-3 text-center sm:mt-0 sm:ml-4 sm:text-left"><h3 class="text-lg font-medium leading-6" id="modal-title"> Confirm Deletion </h3><div class="mt-2"><p class="text-sm"> Are you sure you want to delete this item? This action cannot be undone. </p></div></div></div></div>', 1), Kq = { class: "border-t border-gray-200 rounded-b dark:border-gray-600 px-4 py-3 sm:px-6 sm:flex sm:flex-row-reverse gap-2" };
|
|
145
145
|
function Yq(D, ie, Q, ke, se, j) {
|
|
146
|
-
const
|
|
146
|
+
const Ee = Od("gl-button");
|
|
147
147
|
return Q.isOpen ? (ge(), ye("div", Uq, [
|
|
148
148
|
$("div", Wq, [
|
|
149
149
|
Zq,
|
|
@@ -151,7 +151,7 @@ function Yq(D, ie, Q, ke, se, j) {
|
|
|
151
151
|
$("div", Gq, [
|
|
152
152
|
qq,
|
|
153
153
|
$("div", Kq, [
|
|
154
|
-
ui(
|
|
154
|
+
ui(Ee, {
|
|
155
155
|
onClick: j.confirmDeletion,
|
|
156
156
|
tag: "button",
|
|
157
157
|
button_type: "red"
|
|
@@ -161,7 +161,7 @@ function Yq(D, ie, Q, ke, se, j) {
|
|
|
161
161
|
]),
|
|
162
162
|
_: 1
|
|
163
163
|
}, 8, ["onClick"]),
|
|
164
|
-
ui(
|
|
164
|
+
ui(Ee, {
|
|
165
165
|
onClick: j.cancelDeletion,
|
|
166
166
|
tag: "button",
|
|
167
167
|
button_type: "light"
|
|
@@ -324,7 +324,7 @@ const ZN = /* @__PURE__ */ Kr(zq, [["render", Yq]]), Oj = Rq({
|
|
|
324
324
|
}
|
|
325
325
|
}).then((se) => {
|
|
326
326
|
let j = this.files.findIndex(
|
|
327
|
-
(
|
|
327
|
+
(Ee) => Ee.file_name === D.name
|
|
328
328
|
);
|
|
329
329
|
j !== -1 && this.files.splice(j, 1), this.has_multiple_file || (this.uploadFileList = []), this.uploadFileList.push({
|
|
330
330
|
file_name: se.data.file_name,
|
|
@@ -338,7 +338,7 @@ const ZN = /* @__PURE__ */ Kr(zq, [["render", Yq]]), Oj = Rq({
|
|
|
338
338
|
this.field_name
|
|
339
339
|
) : console.error("An error occurred:", se);
|
|
340
340
|
let j = this.files.findIndex(
|
|
341
|
-
(
|
|
341
|
+
(Ee) => Ee.file_name === D.name
|
|
342
342
|
);
|
|
343
343
|
j !== -1 && this.files.splice(j, 1), console.log(se), ie();
|
|
344
344
|
});
|
|
@@ -380,9 +380,9 @@ const ZN = /* @__PURE__ */ Kr(zq, [["render", Yq]]), Oj = Rq({
|
|
|
380
380
|
"aria-hidden": "true"
|
|
381
381
|
}, null, -1), CK = { class: "flex flex-col ml-3" }, SK = { class: "text-xs" }, _K = { class: "text-xs" }, kK = { class: "flex gap-2" }, TK = ["href"], EK = ["onClick"];
|
|
382
382
|
function AK(D, ie, Q, ke, se, j) {
|
|
383
|
-
const
|
|
383
|
+
const Ee = Od("DeleteConfirmationModal");
|
|
384
384
|
return ge(), ye(Jn, null, [
|
|
385
|
-
ui(
|
|
385
|
+
ui(Ee, {
|
|
386
386
|
isOpen: se.open_delete_modal,
|
|
387
387
|
onConfirmDelete: j.deleteAction,
|
|
388
388
|
onCancelDelete: j.closeDeleteModal
|
|
@@ -513,24 +513,24 @@ const fle = /* @__PURE__ */ Kr(Jq, [["render", AK]]), DK = {
|
|
|
513
513
|
}, OK = { class: "grid w-full gap-1 mt-5 mb-5 md:gap-0 md:grid-cols-10 language-selector" }, RK = ["name", "value", "id", "checked"], $K = ["for"];
|
|
514
514
|
function MK(D, ie, Q, ke, se, j) {
|
|
515
515
|
return ge(), ye("ul", OK, [
|
|
516
|
-
(ge(!0), ye(Jn, null, rr(se.locals, (
|
|
516
|
+
(ge(!0), ye(Jn, null, rr(se.locals, (Ee, ee) => (ge(), ye("li", null, [
|
|
517
517
|
$("input", {
|
|
518
518
|
type: "radio",
|
|
519
519
|
name: Q.trans_selector_name,
|
|
520
|
-
value:
|
|
520
|
+
value: Ee,
|
|
521
521
|
class: "hidden peer",
|
|
522
|
-
id:
|
|
522
|
+
id: Ee + "_" + Q.field_name,
|
|
523
523
|
autocomplete: "off",
|
|
524
|
-
checked:
|
|
524
|
+
checked: Ee === se.default_language
|
|
525
525
|
}, null, 8, RK),
|
|
526
526
|
$("label", {
|
|
527
|
-
for:
|
|
527
|
+
for: Ee + "_" + Q.field_name,
|
|
528
528
|
class: nn([{
|
|
529
529
|
"border md:!rounded-s-lg": ee === 0,
|
|
530
530
|
"border md:!rounded-e-lg": ee === se.locals.length - 1,
|
|
531
531
|
"border-t border-b": ee !== 0 && ee !== se.locals.length - 1
|
|
532
532
|
}, "block w-full p-1 font-bold text-center text-gray-500 uppercase bg-white border-gray-200 rounded-lg cursor-pointer md:rounded-none dark:hover:text-gray-300 dark:border-gray-700 dark:peer-checked:text-blue-500 peer-checked:border-blue-600 peer-checked:text-blue-600 hover:text-gray-600 hover:bg-gray-100 dark:text-gray-400 dark:bg-gray-800 dark:hover:bg-gray-700"])
|
|
533
|
-
}, mt(
|
|
533
|
+
}, mt(Ee), 11, $K)
|
|
534
534
|
]))), 256))
|
|
535
535
|
]);
|
|
536
536
|
}
|
|
@@ -664,7 +664,7 @@ const gle = /* @__PURE__ */ Kr(DK, [["render", MK]]), PK = { class: "bg-white bo
|
|
|
664
664
|
},
|
|
665
665
|
emits: ["update:modelValue", "selected", "selectionChanged"],
|
|
666
666
|
setup(D, { emit: ie }) {
|
|
667
|
-
const Q = D, ke = ie, se = co(null), j = co([]),
|
|
667
|
+
const Q = D, ke = ie, se = co(null), j = co([]), Ee = co([]), ee = co([]), Be = co(0), lt = co(!1), _t = co(""), yn = co(""), Et = co(null), io = co(0), lo = co(0), eo = () => {
|
|
668
668
|
if (Et.value) {
|
|
669
669
|
io.value = Et.value.offsetWidth;
|
|
670
670
|
var Ht = Et.value.getBoundingClientRect();
|
|
@@ -680,7 +680,7 @@ const gle = /* @__PURE__ */ Kr(DK, [["render", MK]]), PK = { class: "bg-white bo
|
|
|
680
680
|
});
|
|
681
681
|
const Ls = pu(() => {
|
|
682
682
|
const Ht = [], Ct = new RegExp(_t.value, "ig");
|
|
683
|
-
for (const Me of
|
|
683
|
+
for (const Me of Ee.value) {
|
|
684
684
|
const no = String(Me.name);
|
|
685
685
|
(_t.value.length < 1 || no.match(Ct)) && Ht.length < Q.maxItem && Ht.push(Me);
|
|
686
686
|
}
|
|
@@ -747,21 +747,21 @@ const gle = /* @__PURE__ */ Kr(DK, [["render", MK]]), PK = { class: "bg-white bo
|
|
|
747
747
|
}
|
|
748
748
|
function Nt() {
|
|
749
749
|
if (kt(j.value))
|
|
750
|
-
return ia(j.value) ?
|
|
750
|
+
return ia(j.value) ? Ee.value.filter(
|
|
751
751
|
(Ht) => j.value.some(
|
|
752
752
|
(Ct) => String(Ct.id) === String(Ht.id)
|
|
753
753
|
)
|
|
754
|
-
) || [] :
|
|
754
|
+
) || [] : Ee.value.filter(
|
|
755
755
|
(Ht) => j.value.some(
|
|
756
756
|
(Ct) => String(Ct) === String(Ht.id)
|
|
757
757
|
)
|
|
758
758
|
) || [];
|
|
759
759
|
if (Q.modelValue)
|
|
760
|
-
return ia(Q.modelValue) ?
|
|
760
|
+
return ia(Q.modelValue) ? Ee.value.filter(
|
|
761
761
|
(Ht) => Q.modelValue.some(
|
|
762
762
|
(Ct) => String(Ct.id) === String(Ht.id)
|
|
763
763
|
)
|
|
764
|
-
) || [] :
|
|
764
|
+
) || [] : Ee.value.filter(
|
|
765
765
|
(Ht) => Q.modelValue.some(
|
|
766
766
|
(Ct) => String(Ct) === String(Ht.id)
|
|
767
767
|
)
|
|
@@ -802,7 +802,7 @@ const gle = /* @__PURE__ */ Kr(DK, [["render", MK]]), PK = { class: "bg-white bo
|
|
|
802
802
|
), Eg(
|
|
803
803
|
() => Q.options,
|
|
804
804
|
() => {
|
|
805
|
-
|
|
805
|
+
Ee.value = Cn(), j.value = Nt();
|
|
806
806
|
},
|
|
807
807
|
{ immediate: !0, deep: !0 }
|
|
808
808
|
), (Ht, Ct) => (ge(), ye(Jn, null, [
|
|
@@ -972,11 +972,11 @@ const gle = /* @__PURE__ */ Kr(DK, [["render", MK]]), PK = { class: "bg-white bo
|
|
|
972
972
|
},
|
|
973
973
|
emits: ["update:modelValue", "update:modelValueTranslate", "keydown"],
|
|
974
974
|
setup(D, { expose: ie, emit: Q }) {
|
|
975
|
-
const ke = D, se = Q, j = co(null),
|
|
976
|
-
|
|
975
|
+
const ke = D, se = Q, j = co(null), Ee = co(null), ee = () => {
|
|
976
|
+
Ee.value && se("update:modelValueTranslate", Ee.value.value);
|
|
977
977
|
};
|
|
978
978
|
return Ag(() => {
|
|
979
|
-
j.value !== null && j.value.hasAttribute("autofocus") && j.value.focus(), ke.modelValue && (se("update:modelValue", ke.modelValue), j.value.value = ke.modelValue), ke.modelValueTranslate && (se("update:modelValueTranslate", ke.modelValueTranslate),
|
|
979
|
+
j.value !== null && j.value.hasAttribute("autofocus") && j.value.focus(), ke.modelValue && (se("update:modelValue", ke.modelValue), j.value.value = ke.modelValue), ke.modelValueTranslate && (se("update:modelValueTranslate", ke.modelValueTranslate), Ee.value.value = ke.modelValueTranslate);
|
|
980
980
|
}), ie({ focus: () => j.value.focus() }), (Be, lt) => (ge(), ye(Jn, null, [
|
|
981
981
|
D.show ? (ge(), ye("div", {
|
|
982
982
|
key: 0,
|
|
@@ -989,7 +989,7 @@ const gle = /* @__PURE__ */ Kr(DK, [["render", MK]]), PK = { class: "bg-white bo
|
|
|
989
989
|
name: D.field_name + "_i18n",
|
|
990
990
|
id: D.field_name + "_i18n",
|
|
991
991
|
ref_key: "input_translate",
|
|
992
|
-
ref:
|
|
992
|
+
ref: Ee,
|
|
993
993
|
"onUpdate:modelValue": lt[0] || (lt[0] = (_t) => Be.inputTranslateValue = _t)
|
|
994
994
|
}, null, 8, tY), [
|
|
995
995
|
[Sm, Be.inputTranslateValue]
|
|
@@ -1021,7 +1021,7 @@ const gle = /* @__PURE__ */ Kr(DK, [["render", MK]]), PK = { class: "bg-white bo
|
|
|
1021
1021
|
id: D.field_name + "_i18n",
|
|
1022
1022
|
onChange: ee,
|
|
1023
1023
|
ref_key: "input_translate",
|
|
1024
|
-
ref:
|
|
1024
|
+
ref: Ee
|
|
1025
1025
|
}, null, 40, aY),
|
|
1026
1026
|
$("textarea", {
|
|
1027
1027
|
required: D.is_required,
|
|
@@ -1102,22 +1102,22 @@ const gle = /* @__PURE__ */ Kr(DK, [["render", MK]]), PK = { class: "bg-white bo
|
|
|
1102
1102
|
},
|
|
1103
1103
|
emits: ["update:modelValue", "update:modelValueTranslate", "keydown"],
|
|
1104
1104
|
setup(D, { expose: ie, emit: Q }) {
|
|
1105
|
-
const ke = D, se = Q, j = co(null),
|
|
1106
|
-
|
|
1105
|
+
const ke = D, se = Q, j = co(null), Ee = co(null), ee = () => {
|
|
1106
|
+
Ee.value && se("update:modelValueTranslate", Ee.value.value);
|
|
1107
1107
|
};
|
|
1108
1108
|
return Ag(() => {
|
|
1109
1109
|
tinymce.init({
|
|
1110
1110
|
selector: "#" + ke.field_name,
|
|
1111
1111
|
width: "100%",
|
|
1112
1112
|
height: 300
|
|
1113
|
-
}), j.value !== null && j.value.hasAttribute("autofocus") && j.value.focus(), ke.modelValue && (se("update:modelValue", ke.modelValue), j.value.value = ke.modelValue), ke.modelValueTranslate && (se("update:modelValueTranslate", ke.modelValueTranslate),
|
|
1113
|
+
}), j.value !== null && j.value.hasAttribute("autofocus") && j.value.focus(), ke.modelValue && (se("update:modelValue", ke.modelValue), j.value.value = ke.modelValue), ke.modelValueTranslate && (se("update:modelValueTranslate", ke.modelValueTranslate), Ee.value.value = ke.modelValueTranslate), ke.translatable && !ke.modelValueTranslate && axios.get("/admin/get_field_translations", {
|
|
1114
1114
|
params: {
|
|
1115
1115
|
model: ke.translatable.model,
|
|
1116
1116
|
row_id: ke.translatable.row_id,
|
|
1117
1117
|
field: ke.translatable.field
|
|
1118
1118
|
}
|
|
1119
1119
|
}).then((Be) => {
|
|
1120
|
-
|
|
1120
|
+
Ee.value.value = JSON.stringify(Be.data), se("update:modelValueTranslate", JSON.stringify(Be.data));
|
|
1121
1121
|
}).catch((Be) => {
|
|
1122
1122
|
console.log(Be);
|
|
1123
1123
|
});
|
|
@@ -1133,7 +1133,7 @@ const gle = /* @__PURE__ */ Kr(DK, [["render", MK]]), PK = { class: "bg-white bo
|
|
|
1133
1133
|
name: D.field_name + "_i18n",
|
|
1134
1134
|
id: D.field_name + "_i18n",
|
|
1135
1135
|
ref_key: "input_translate",
|
|
1136
|
-
ref:
|
|
1136
|
+
ref: Ee,
|
|
1137
1137
|
"onUpdate:modelValue": lt[0] || (lt[0] = (_t) => Be.inputTranslateValue = _t)
|
|
1138
1138
|
}, null, 8, dY), [
|
|
1139
1139
|
[Sm, Be.inputTranslateValue]
|
|
@@ -1165,7 +1165,7 @@ const gle = /* @__PURE__ */ Kr(DK, [["render", MK]]), PK = { class: "bg-white bo
|
|
|
1165
1165
|
id: D.field_name + "_i18n",
|
|
1166
1166
|
onChange: ee,
|
|
1167
1167
|
ref_key: "input_translate",
|
|
1168
|
-
ref:
|
|
1168
|
+
ref: Ee
|
|
1169
1169
|
}, null, 40, pY),
|
|
1170
1170
|
$("textarea", {
|
|
1171
1171
|
name: D.field_name,
|
|
@@ -1237,11 +1237,11 @@ const gle = /* @__PURE__ */ Kr(DK, [["render", MK]]), PK = { class: "bg-white bo
|
|
|
1237
1237
|
},
|
|
1238
1238
|
emits: ["update:modelValue", "update:modelValueTranslate", "keydown"],
|
|
1239
1239
|
setup(D, { expose: ie, emit: Q }) {
|
|
1240
|
-
const ke = D, se = Q, j = co(null),
|
|
1241
|
-
|
|
1240
|
+
const ke = D, se = Q, j = co(null), Ee = co(null), ee = () => {
|
|
1241
|
+
Ee.value && se("update:modelValueTranslate", Ee.value.value);
|
|
1242
1242
|
};
|
|
1243
1243
|
return Ag(() => {
|
|
1244
|
-
j.value !== null && j.value.hasAttribute("autofocus") && j.value.focus(), ke.modelValue && (se("update:modelValue", ke.modelValue), j.value.value = ke.modelValue), ke.modelValueTranslate && (se("update:modelValueTranslate", ke.modelValueTranslate),
|
|
1244
|
+
j.value !== null && j.value.hasAttribute("autofocus") && j.value.focus(), ke.modelValue && (se("update:modelValue", ke.modelValue), j.value.value = ke.modelValue), ke.modelValueTranslate && (se("update:modelValueTranslate", ke.modelValueTranslate), Ee.value.value = ke.modelValueTranslate);
|
|
1245
1245
|
}), ie({ focus: () => j.value.focus() }), (Be, lt) => (ge(), ye(Jn, null, [
|
|
1246
1246
|
D.show ? (ge(), ye("div", {
|
|
1247
1247
|
key: 0,
|
|
@@ -1254,7 +1254,7 @@ const gle = /* @__PURE__ */ Kr(DK, [["render", MK]]), PK = { class: "bg-white bo
|
|
|
1254
1254
|
name: D.field_name + "_i18n",
|
|
1255
1255
|
id: D.field_name + "_i18n",
|
|
1256
1256
|
ref_key: "input_translate",
|
|
1257
|
-
ref:
|
|
1257
|
+
ref: Ee,
|
|
1258
1258
|
"onUpdate:modelValue": lt[0] || (lt[0] = (_t) => Be.inputTranslateValue = _t)
|
|
1259
1259
|
}, null, 8, xY), [
|
|
1260
1260
|
[Sm, Be.inputTranslateValue]
|
|
@@ -1286,7 +1286,7 @@ const gle = /* @__PURE__ */ Kr(DK, [["render", MK]]), PK = { class: "bg-white bo
|
|
|
1286
1286
|
id: D.field_name + "_i18n",
|
|
1287
1287
|
onChange: ee,
|
|
1288
1288
|
ref_key: "input_translate",
|
|
1289
|
-
ref:
|
|
1289
|
+
ref: Ee
|
|
1290
1290
|
}, null, 40, TY),
|
|
1291
1291
|
$("input", {
|
|
1292
1292
|
required: D.is_required,
|
|
@@ -1353,7 +1353,7 @@ const gle = /* @__PURE__ */ Kr(DK, [["render", MK]]), PK = { class: "bg-white bo
|
|
|
1353
1353
|
Ag(() => {
|
|
1354
1354
|
j.value !== null && j.value.hasAttribute("autofocus") && j.value.focus();
|
|
1355
1355
|
});
|
|
1356
|
-
const
|
|
1356
|
+
const Ee = pu({
|
|
1357
1357
|
get() {
|
|
1358
1358
|
return ke.modelValue;
|
|
1359
1359
|
},
|
|
@@ -1392,13 +1392,13 @@ const gle = /* @__PURE__ */ Kr(DK, [["render", MK]]), PK = { class: "bg-white bo
|
|
|
1392
1392
|
"gl-input-form-invalid": D.error_message !== ""
|
|
1393
1393
|
}),
|
|
1394
1394
|
type: D.type,
|
|
1395
|
-
"onUpdate:modelValue": Be[0] || (Be[0] = (lt) =>
|
|
1395
|
+
"onUpdate:modelValue": Be[0] || (Be[0] = (lt) => Ee.value = lt),
|
|
1396
1396
|
onKeydown: Be[1] || (Be[1] = (lt) => ee.$emit("keydown", lt)),
|
|
1397
1397
|
ref_key: "input",
|
|
1398
1398
|
ref: j,
|
|
1399
1399
|
placeholder: D.placeholder
|
|
1400
1400
|
}, null, 42, PY), [
|
|
1401
|
-
[tq,
|
|
1401
|
+
[tq, Ee.value]
|
|
1402
1402
|
]),
|
|
1403
1403
|
$("span", BY, mt(D.error_message), 1),
|
|
1404
1404
|
$("small", NY, mt(D.description), 1)
|
|
@@ -1459,7 +1459,7 @@ const gle = /* @__PURE__ */ Kr(DK, [["render", MK]]), PK = { class: "bg-white bo
|
|
|
1459
1459
|
Ag(() => {
|
|
1460
1460
|
j.value !== null && j.value.hasAttribute("autofocus") && j.value.focus();
|
|
1461
1461
|
});
|
|
1462
|
-
const
|
|
1462
|
+
const Ee = pu({
|
|
1463
1463
|
get() {
|
|
1464
1464
|
return ke.modelValue;
|
|
1465
1465
|
},
|
|
@@ -1500,13 +1500,13 @@ const gle = /* @__PURE__ */ Kr(DK, [["render", MK]]), PK = { class: "bg-white bo
|
|
|
1500
1500
|
"gl-input-form-invalid-text": D.error_message !== ""
|
|
1501
1501
|
}, "!border-e-0 !rounded-s-lg"]),
|
|
1502
1502
|
type: D.type,
|
|
1503
|
-
"onUpdate:modelValue": Be[0] || (Be[0] = (lt) =>
|
|
1503
|
+
"onUpdate:modelValue": Be[0] || (Be[0] = (lt) => Ee.value = lt),
|
|
1504
1504
|
onKeydown: Be[1] || (Be[1] = (lt) => ee.$emit("keydown", lt)),
|
|
1505
1505
|
ref_key: "input",
|
|
1506
1506
|
ref: j,
|
|
1507
1507
|
placeholder: D.placeholder
|
|
1508
1508
|
}, null, 42, WY), [
|
|
1509
|
-
[tq,
|
|
1509
|
+
[tq, Ee.value]
|
|
1510
1510
|
])
|
|
1511
1511
|
]),
|
|
1512
1512
|
$("label", ZY, mt(D.input_text), 1)
|
|
@@ -1559,7 +1559,7 @@ const gle = /* @__PURE__ */ Kr(DK, [["render", MK]]), PK = { class: "bg-white bo
|
|
|
1559
1559
|
end: Q.modelValue.end
|
|
1560
1560
|
});
|
|
1561
1561
|
co(""), co("");
|
|
1562
|
-
const
|
|
1562
|
+
const Ee = pu({
|
|
1563
1563
|
get() {
|
|
1564
1564
|
return Q.modelValue.start;
|
|
1565
1565
|
},
|
|
@@ -1607,10 +1607,10 @@ const gle = /* @__PURE__ */ Kr(DK, [["render", MK]]), PK = { class: "bg-white bo
|
|
|
1607
1607
|
"gl-input-form-invalid": D.error_message !== "" || se.value !== ""
|
|
1608
1608
|
}),
|
|
1609
1609
|
type: "date",
|
|
1610
|
-
"onUpdate:modelValue": _t[0] || (_t[0] = (yn) =>
|
|
1610
|
+
"onUpdate:modelValue": _t[0] || (_t[0] = (yn) => Ee.value = yn),
|
|
1611
1611
|
placeholder: D.placeholder
|
|
1612
1612
|
}, null, 10, QY), [
|
|
1613
|
-
[Sm,
|
|
1613
|
+
[Sm, Ee.value]
|
|
1614
1614
|
]),
|
|
1615
1615
|
eX,
|
|
1616
1616
|
Tr($("input", {
|
|
@@ -1682,10 +1682,10 @@ const gle = /* @__PURE__ */ Kr(DK, [["render", MK]]), PK = { class: "bg-white bo
|
|
|
1682
1682
|
emits: ["update:modelValue", "keydown"],
|
|
1683
1683
|
setup(D, { emit: ie }) {
|
|
1684
1684
|
const Q = ie, ke = co(null), se = (j) => {
|
|
1685
|
-
const
|
|
1686
|
-
console.log(
|
|
1685
|
+
const Ee = j.target.files[0];
|
|
1686
|
+
console.log(Ee), Q("keydown", j), Ee && Q("update:modelValue", Ee);
|
|
1687
1687
|
};
|
|
1688
|
-
return (j,
|
|
1688
|
+
return (j, Ee) => (ge(), ye(Jn, null, [
|
|
1689
1689
|
D.show ? (ge(), ye("div", {
|
|
1690
1690
|
key: 0,
|
|
1691
1691
|
class: nn(D.field_name)
|
|
@@ -1732,14 +1732,14 @@ const gle = /* @__PURE__ */ Kr(DK, [["render", MK]]), PK = { class: "bg-white bo
|
|
|
1732
1732
|
setup(D, { emit: ie }) {
|
|
1733
1733
|
const Q = ie, ke = $q(), se = co(ke.default().map((Be) => Be.props)), j = co("");
|
|
1734
1734
|
nq("selectedTitle", j);
|
|
1735
|
-
const
|
|
1735
|
+
const Ee = (Be) => {
|
|
1736
1736
|
window.location.hash = encodeURIComponent(Be), Q("TabChange", Be);
|
|
1737
1737
|
}, ee = () => {
|
|
1738
1738
|
const Be = decodeURIComponent(window.location.hash.replace("#", "")), lt = se.value.find((_t) => _t.title === Be);
|
|
1739
1739
|
lt && (j.value = lt.title);
|
|
1740
1740
|
};
|
|
1741
1741
|
return Eg(j, (Be) => {
|
|
1742
|
-
|
|
1742
|
+
Ee(Be);
|
|
1743
1743
|
}), Ag(() => {
|
|
1744
1744
|
ee(), window.addEventListener("hashchange", ee);
|
|
1745
1745
|
}), WN(() => {
|
|
@@ -1854,10 +1854,10 @@ const _le = /* @__PURE__ */ Kr(yX, [["render", xX]]), CX = {
|
|
|
1854
1854
|
const j = (ee) => {
|
|
1855
1855
|
const Be = ee.clientX || ee.touches && ee.touches[0] && ee.touches[0].clientX, lt = ee.clientY || ee.touches && ee.touches[0] && ee.touches[0].clientY, _t = Be - D.initialX, yn = lt - D.initialY;
|
|
1856
1856
|
Math.abs(_t) > Math.abs(yn) ? (ee.preventDefault(), Math.abs(_t) >= 70 && (_t < 0 ? D.next() : D.prev(), D.initialX = Be)) : ie.style.cursor = "grab", Math.abs(yn) > Math.abs(_t) && (ie.style.cursor = "grab");
|
|
1857
|
-
},
|
|
1858
|
-
document.removeEventListener("mousemove", j), document.removeEventListener("touchmove", j), document.removeEventListener("mouseup",
|
|
1857
|
+
}, Ee = () => {
|
|
1858
|
+
document.removeEventListener("mousemove", j), document.removeEventListener("touchmove", j), document.removeEventListener("mouseup", Ee), document.removeEventListener("touchend", Ee), ie.style.cursor = "grab";
|
|
1859
1859
|
};
|
|
1860
|
-
document.addEventListener("mousemove", j), document.addEventListener("touchmove", j, { passive: !1 }), document.addEventListener("mouseup",
|
|
1860
|
+
document.addEventListener("mousemove", j), document.addEventListener("touchmove", j, { passive: !1 }), document.addEventListener("mouseup", Ee), document.addEventListener("touchend", Ee), D.initialX = se.clientX || se.touches && se.touches[0] && se.touches[0].clientX, D.initialY = se.clientY || se.touches && se.touches[0] && se.touches[0].clientY;
|
|
1861
1861
|
}, ke = (se) => {
|
|
1862
1862
|
se.key === "ArrowLeft" ? D.prev() : se.key === "ArrowRight" && D.next();
|
|
1863
1863
|
};
|
|
@@ -1870,18 +1870,22 @@ const _le = /* @__PURE__ */ Kr(yX, [["render", xX]]), CX = {
|
|
|
1870
1870
|
this.currentDot > 1 && (this.currentDot--, this.setDot(this.currentDot));
|
|
1871
1871
|
},
|
|
1872
1872
|
initSlider() {
|
|
1873
|
-
let D = document.getElementById("sliderContainer_" + this.Random_string), ie = document.getElementById("mainSliderContainer_" + this.Random_string), Q = document.getElementById("slider_" + this.Random_string), ke = Q.querySelectorAll("li"), se = Array.from(ke).filter((ee) => ee.parentNode === Q)
|
|
1874
|
-
|
|
1873
|
+
let D = document.getElementById("sliderContainer_" + this.Random_string), ie = document.getElementById("mainSliderContainer_" + this.Random_string), Q = document.getElementById("slider_" + this.Random_string), ke = Q.querySelectorAll("li"), se = Array.from(ke).filter((ee) => ee.parentNode === Q);
|
|
1874
|
+
console.log("cards length :", se.length);
|
|
1875
|
+
let j = D.clientWidth;
|
|
1876
|
+
console.log("sliderContainerWidth :", D.clientWidth), console.log("elementsToShow :", this.elementsToShow);
|
|
1877
|
+
let Ee = j / this.elementsToShow;
|
|
1878
|
+
if (console.log("cardwidth :", Ee), this.elementsToShow > 1 ? document.body.clientWidth < 1e3 ? (this.elementsToShow = 1, Ee = this.hide_arrow ? ie.clientWidth : j) : document.body.clientWidth < 1500 && (this.elementsToShow = 2) : (this.elementsToShow = 1, Ee = this.hide_arrow ? ie.clientWidth : j), se.length > 1) {
|
|
1875
1879
|
this.dotsNum = this.elementsToShow == 1 ? se.length : se.length - this.elementsToShow + 1;
|
|
1876
|
-
let ee = this.elementsToShow == 1 ?
|
|
1880
|
+
let ee = this.elementsToShow == 1 ? Ee * se.length / this.dotsNum : Ee * (se.length - this.elementsToShow) / (this.dotsNum - 1);
|
|
1877
1881
|
this.dotsNavigation = [];
|
|
1878
1882
|
for (let Be = 0; Be < this.dotsNum; Be++)
|
|
1879
1883
|
this.dotsNavigation.push(ee * Be);
|
|
1880
1884
|
}
|
|
1881
|
-
Q.style.width = se.length *
|
|
1885
|
+
console.log("slider.style.width :", se.length * Ee), Q.style.width = se.length * Ee + "px", Q.style.transition = "margin", Q.style.transitionDuration = "1s";
|
|
1882
1886
|
for (let ee = 0; ee < se.length; ee++) {
|
|
1883
1887
|
const Be = se[ee];
|
|
1884
|
-
Be.style.width =
|
|
1888
|
+
Be.style.width = Ee + "px", console.log("element.style.width", Ee);
|
|
1885
1889
|
}
|
|
1886
1890
|
},
|
|
1887
1891
|
setDot(D) {
|
|
@@ -1889,7 +1893,7 @@ const _le = /* @__PURE__ */ Kr(yX, [["render", xX]]), CX = {
|
|
|
1889
1893
|
this.direction_property == "rtl" ? ie.style.marginRight = -this.dotsNavigation[D - 1] + "px" : ie.style.marginLeft = -this.dotsNavigation[D - 1] + "px", this.currentDot = D;
|
|
1890
1894
|
}
|
|
1891
1895
|
}
|
|
1892
|
-
}, _m = (D) => (Mq("data-v-
|
|
1896
|
+
}, _m = (D) => (Mq("data-v-38caa188"), D = D(), Pq(), D), SX = ["id"], _X = {
|
|
1893
1897
|
key: 0,
|
|
1894
1898
|
class: "items-center hidden w-2/12 xl:flex xxl:flex md:flex sm:flex arrow_button"
|
|
1895
1899
|
}, kX = { class: "w-full" }, TX = {
|
|
@@ -2084,7 +2088,7 @@ function TJ(D, ie, Q, ke, se, j) {
|
|
|
2084
2088
|
$("div", kX, [
|
|
2085
2089
|
$("button", {
|
|
2086
2090
|
class: "p-3 mr-5 rounded-full shadow-lg arrow_button_styles",
|
|
2087
|
-
onClick: ie[0] || (ie[0] = (
|
|
2091
|
+
onClick: ie[0] || (ie[0] = (Ee) => j.prev())
|
|
2088
2092
|
}, [
|
|
2089
2093
|
Q.direction_property == "ltr" ? (ge(), ye("svg", TX, AX)) : at("", !0),
|
|
2090
2094
|
Q.direction_property == "rtl" ? (ge(), ye("svg", DX, RX)) : at("", !0)
|
|
@@ -2106,7 +2110,7 @@ function TJ(D, ie, Q, ke, se, j) {
|
|
|
2106
2110
|
$("div", PX, [
|
|
2107
2111
|
$("button", {
|
|
2108
2112
|
class: "p-3 rounded-full shadow-lg arrow_button_styles",
|
|
2109
|
-
onClick: ie[1] || (ie[1] = bl((
|
|
2113
|
+
onClick: ie[1] || (ie[1] = bl((Ee) => j.prev(), ["stop"]))
|
|
2110
2114
|
}, [
|
|
2111
2115
|
Q.direction_property == "ltr" ? (ge(), ye("svg", BX, IX)) : at("", !0),
|
|
2112
2116
|
Q.direction_property == "rtl" ? (ge(), ye("svg", LX, HX)) : at("", !0)
|
|
@@ -2121,7 +2125,7 @@ function TJ(D, ie, Q, ke, se, j) {
|
|
|
2121
2125
|
$("div", VX, [
|
|
2122
2126
|
$("button", {
|
|
2123
2127
|
class: "p-3 rounded-full shadow-lg arrow_button_styles",
|
|
2124
|
-
onClick: ie[2] || (ie[2] = bl((
|
|
2128
|
+
onClick: ie[2] || (ie[2] = bl((Ee) => j.next(), ["stop"]))
|
|
2125
2129
|
}, [
|
|
2126
2130
|
Q.direction_property == "ltr" ? (ge(), ye("svg", zX, WX)) : at("", !0),
|
|
2127
2131
|
Q.direction_property == "rtl" ? (ge(), ye("svg", ZX, GX)) : at("", !0)
|
|
@@ -2133,22 +2137,22 @@ function TJ(D, ie, Q, ke, se, j) {
|
|
|
2133
2137
|
key: 0,
|
|
2134
2138
|
class: nn(["flex justify-center mb-1 space-x-1", j.sliderIndicatorsAction()])
|
|
2135
2139
|
}, [
|
|
2136
|
-
(ge(!0), ye(Jn, null, rr(D.dotsNum, (
|
|
2140
|
+
(ge(!0), ye(Jn, null, rr(D.dotsNum, (Ee) => (ge(), ye("button", {
|
|
2137
2141
|
role: "button",
|
|
2138
|
-
class: nn(["gl-dot", { active: D.currentDot ==
|
|
2139
|
-
key:
|
|
2140
|
-
onClick: (ee) => j.setDot(
|
|
2142
|
+
class: nn(["gl-dot", { active: D.currentDot == Ee }]),
|
|
2143
|
+
key: Ee,
|
|
2144
|
+
onClick: (ee) => j.setDot(Ee)
|
|
2141
2145
|
}, YX, 10, qX))), 128))
|
|
2142
2146
|
], 2)) : at("", !0),
|
|
2143
2147
|
Q.slider_arrows_indicators_position == "arrows_indicators_below_slider" ? (ge(), ye("div", XX, [
|
|
2144
2148
|
$("div", {
|
|
2145
2149
|
class: nn(["flex justify-center mb-1 space-x-1", j.sliderIndicatorsAction()])
|
|
2146
2150
|
}, [
|
|
2147
|
-
(ge(!0), ye(Jn, null, rr(D.dotsNum, (
|
|
2151
|
+
(ge(!0), ye(Jn, null, rr(D.dotsNum, (Ee) => (ge(), ye("button", {
|
|
2148
2152
|
role: "button",
|
|
2149
|
-
class: nn(["gl-dot", { active: D.currentDot ==
|
|
2150
|
-
key:
|
|
2151
|
-
onClick: (ee) => j.setDot(
|
|
2153
|
+
class: nn(["gl-dot", { active: D.currentDot == Ee }]),
|
|
2154
|
+
key: Ee,
|
|
2155
|
+
onClick: (ee) => j.setDot(Ee)
|
|
2152
2156
|
}, eJ, 10, JX))), 128))
|
|
2153
2157
|
], 2),
|
|
2154
2158
|
D.dotsNum > 0 ? (ge(), ye("div", tJ, [
|
|
@@ -2156,7 +2160,7 @@ function TJ(D, ie, Q, ke, se, j) {
|
|
|
2156
2160
|
$("div", oJ, [
|
|
2157
2161
|
$("button", {
|
|
2158
2162
|
class: nn(["p-3 rounded-full arrow_button_styles", Q.direction_property == "rtl" ? "ml-3" : "mr-3"]),
|
|
2159
|
-
onClick: ie[3] || (ie[3] = (
|
|
2163
|
+
onClick: ie[3] || (ie[3] = (Ee) => j.prev())
|
|
2160
2164
|
}, [
|
|
2161
2165
|
Q.direction_property == "ltr" ? (ge(), ye("svg", sJ, aJ)) : at("", !0),
|
|
2162
2166
|
Q.direction_property == "rtl" ? (ge(), ye("svg", lJ, iJ)) : at("", !0)
|
|
@@ -2167,7 +2171,7 @@ function TJ(D, ie, Q, ke, se, j) {
|
|
|
2167
2171
|
$("div", dJ, [
|
|
2168
2172
|
$("button", {
|
|
2169
2173
|
class: "p-3 rounded-full arrow_button_styles",
|
|
2170
|
-
onClick: ie[4] || (ie[4] = (
|
|
2174
|
+
onClick: ie[4] || (ie[4] = (Ee) => j.next())
|
|
2171
2175
|
}, [
|
|
2172
2176
|
Q.direction_property == "ltr" ? (ge(), ye("svg", mJ, gJ)) : at("", !0),
|
|
2173
2177
|
Q.direction_property == "rtl" ? (ge(), ye("svg", hJ, bJ)) : at("", !0)
|
|
@@ -2181,7 +2185,7 @@ function TJ(D, ie, Q, ke, se, j) {
|
|
|
2181
2185
|
$("div", yJ, [
|
|
2182
2186
|
$("button", {
|
|
2183
2187
|
class: "p-3 ml-5 rounded-full shadow-lg arrow_button_styles",
|
|
2184
|
-
onClick: ie[5] || (ie[5] = (
|
|
2188
|
+
onClick: ie[5] || (ie[5] = (Ee) => j.next())
|
|
2185
2189
|
}, [
|
|
2186
2190
|
Q.direction_property == "ltr" ? (ge(), ye("svg", wJ, CJ)) : at("", !0),
|
|
2187
2191
|
Q.direction_property == "rtl" ? (ge(), ye("svg", SJ, kJ)) : at("", !0)
|
|
@@ -2191,7 +2195,7 @@ function TJ(D, ie, Q, ke, se, j) {
|
|
|
2191
2195
|
], 10, SX)
|
|
2192
2196
|
]);
|
|
2193
2197
|
}
|
|
2194
|
-
const kle = /* @__PURE__ */ Kr(CX, [["render", TJ], ["__scopeId", "data-v-
|
|
2198
|
+
const kle = /* @__PURE__ */ Kr(CX, [["render", TJ], ["__scopeId", "data-v-38caa188"]]), EJ = { class: "pointer-events-auto relative flex max-h-[100%] w-full flex-col overflow-hidden text-current shadow-4 outline-none bg-white border rounded-lg border-stroke dark:border-strokedark dark:bg-boxdark" }, AJ = { class: "flex items-center justify-between flex-shrink-0 pt-10 pb-3 pl-3 pr-3 border-b-2 dark:border-gray-600" }, DJ = { class: "text-xl font-medium leading-normal text-surface dark:text-white" }, OJ = /* @__PURE__ */ $("span", { class: "[&>svg]:h-6 [&>svg]:w-6" }, [
|
|
2195
2199
|
/* @__PURE__ */ $("svg", {
|
|
2196
2200
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2197
2201
|
fill: "currentColor",
|
|
@@ -2247,7 +2251,7 @@ const kle = /* @__PURE__ */ Kr(CX, [["render", TJ], ["__scopeId", "data-v-37dd4e
|
|
|
2247
2251
|
document.documentElement.style.overflow = "hidden", document.documentElement.style.paddingRight = "0px";
|
|
2248
2252
|
}, j = () => {
|
|
2249
2253
|
document.documentElement.style.overflow = "", document.documentElement.style.paddingRight = "";
|
|
2250
|
-
},
|
|
2254
|
+
}, Ee = () => {
|
|
2251
2255
|
ke("closeModal"), j();
|
|
2252
2256
|
};
|
|
2253
2257
|
return Eg(
|
|
@@ -2271,7 +2275,7 @@ const kle = /* @__PURE__ */ Kr(CX, [["render", TJ], ["__scopeId", "data-v-37dd4e
|
|
|
2271
2275
|
$("button", {
|
|
2272
2276
|
type: "button",
|
|
2273
2277
|
class: "box-content border-none rounded-none text-neutral-500 hover:text-neutral-800 hover:no-underline focus:text-neutral-800 focus:opacity-100 focus:shadow-none focus:outline-none dark:text-neutral-400 dark:hover:text-neutral-300 dark:focus:text-neutral-300",
|
|
2274
|
-
onClick:
|
|
2278
|
+
onClick: Ee,
|
|
2275
2279
|
"aria-label": "Close"
|
|
2276
2280
|
}, RJ)
|
|
2277
2281
|
]),
|
|
@@ -2286,7 +2290,7 @@ const kle = /* @__PURE__ */ Kr(CX, [["render", TJ], ["__scopeId", "data-v-37dd4e
|
|
|
2286
2290
|
Tr($("div", BJ, [
|
|
2287
2291
|
Rd(ee.$slots, "buttons"),
|
|
2288
2292
|
$("button", {
|
|
2289
|
-
onClick:
|
|
2293
|
+
onClick: Ee,
|
|
2290
2294
|
type: "button",
|
|
2291
2295
|
class: "px-5 py-2 text-sm font-medium text-gray-500 bg-white border border-gray-200 rounded-lg ms-3 hover:bg-gray-100 focus:ring-4 focus:outline-none focus:ring-blue-300 hover:text-gray-900 focus:z-10 dark:bg-gray-700 dark:text-gray-300 dark:border-gray-500 dark:hover:text-white dark:hover:bg-gray-600 dark:focus:ring-gray-600"
|
|
2292
2296
|
}, " Close ")
|
|
@@ -2353,7 +2357,7 @@ const kle = /* @__PURE__ */ Kr(CX, [["render", TJ], ["__scopeId", "data-v-37dd4e
|
|
|
2353
2357
|
document.documentElement.style.overflow = "hidden", document.documentElement.style.paddingRight = "0px";
|
|
2354
2358
|
}, j = () => {
|
|
2355
2359
|
document.documentElement.style.overflow = "", document.documentElement.style.paddingRight = "";
|
|
2356
|
-
},
|
|
2360
|
+
}, Ee = () => {
|
|
2357
2361
|
ke("closeModal"), j();
|
|
2358
2362
|
};
|
|
2359
2363
|
return Eg(
|
|
@@ -2376,7 +2380,7 @@ const kle = /* @__PURE__ */ Kr(CX, [["render", TJ], ["__scopeId", "data-v-37dd4e
|
|
|
2376
2380
|
$("button", {
|
|
2377
2381
|
type: "button",
|
|
2378
2382
|
class: "box-content border-none rounded-none text-neutral-500 hover:text-neutral-800 hover:no-underline focus:text-neutral-800 focus:opacity-100 focus:shadow-none focus:outline-none dark:text-neutral-400 dark:hover:text-neutral-300 dark:focus:text-neutral-300",
|
|
2379
|
-
onClick:
|
|
2383
|
+
onClick: Ee,
|
|
2380
2384
|
"aria-label": "Close"
|
|
2381
2385
|
}, HJ)
|
|
2382
2386
|
]),
|
|
@@ -2391,7 +2395,7 @@ const kle = /* @__PURE__ */ Kr(CX, [["render", TJ], ["__scopeId", "data-v-37dd4e
|
|
|
2391
2395
|
Tr($("div", WJ, [
|
|
2392
2396
|
Rd(ee.$slots, "buttons"),
|
|
2393
2397
|
$("button", {
|
|
2394
|
-
onClick:
|
|
2398
|
+
onClick: Ee,
|
|
2395
2399
|
type: "button",
|
|
2396
2400
|
class: "px-5 py-2 text-sm font-medium text-gray-500 bg-white border border-gray-200 rounded-lg ms-3 hover:bg-gray-100 focus:ring-4 focus:outline-none focus:ring-blue-300 hover:text-gray-900 focus:z-10 dark:bg-gray-700 dark:text-gray-300 dark:border-gray-500 dark:hover:text-white dark:hover:bg-gray-600 dark:focus:ring-gray-600"
|
|
2397
2401
|
}, " Close ")
|
|
@@ -2457,11 +2461,11 @@ const kle = /* @__PURE__ */ Kr(CX, [["render", TJ], ["__scopeId", "data-v-37dd4e
|
|
|
2457
2461
|
get() {
|
|
2458
2462
|
return Q.modelValue;
|
|
2459
2463
|
},
|
|
2460
|
-
set(
|
|
2461
|
-
ke("update:modelValue",
|
|
2464
|
+
set(Ee) {
|
|
2465
|
+
ke("update:modelValue", Ee);
|
|
2462
2466
|
}
|
|
2463
2467
|
});
|
|
2464
|
-
return (
|
|
2468
|
+
return (Ee, ee) => (ge(), ye(Jn, null, [
|
|
2465
2469
|
D.show ? (ge(), ye("div", {
|
|
2466
2470
|
key: 0,
|
|
2467
2471
|
class: nn(D.field_name)
|
|
@@ -2568,11 +2572,11 @@ const kle = /* @__PURE__ */ Kr(CX, [["render", TJ], ["__scopeId", "data-v-37dd4e
|
|
|
2568
2572
|
get() {
|
|
2569
2573
|
return Q.modelValue;
|
|
2570
2574
|
},
|
|
2571
|
-
set(
|
|
2572
|
-
ke("update:modelValue",
|
|
2575
|
+
set(Ee) {
|
|
2576
|
+
ke("update:modelValue", Ee);
|
|
2573
2577
|
}
|
|
2574
2578
|
});
|
|
2575
|
-
return (
|
|
2579
|
+
return (Ee, ee) => (ge(), ye(Jn, null, [
|
|
2576
2580
|
D.show ? (ge(), ye("div", {
|
|
2577
2581
|
key: 0,
|
|
2578
2582
|
class: nn(D.field_name)
|
|
@@ -2741,7 +2745,7 @@ const kle = /* @__PURE__ */ Kr(CX, [["render", TJ], ["__scopeId", "data-v-37dd4e
|
|
|
2741
2745
|
setup(D, { emit: ie }) {
|
|
2742
2746
|
const Q = D, ke = ie;
|
|
2743
2747
|
co(null);
|
|
2744
|
-
const se = co({}), j = co([]),
|
|
2748
|
+
const se = co({}), j = co([]), Ee = co(0), ee = co(!1), Be = co(""), lt = co(""), _t = co(null), yn = co(0), Et = co(0), io = () => {
|
|
2745
2749
|
if (_t.value) {
|
|
2746
2750
|
yn.value = _t.value.offsetWidth;
|
|
2747
2751
|
var Yt = _t.value.getBoundingClientRect();
|
|
@@ -2790,7 +2794,7 @@ const kle = /* @__PURE__ */ Kr(CX, [["render", TJ], ["__scopeId", "data-v-37dd4e
|
|
|
2790
2794
|
return Yt !== null && typeof Yt == "object" && Object.keys(Yt).length > 0;
|
|
2791
2795
|
}
|
|
2792
2796
|
function fe(Yt) {
|
|
2793
|
-
Yt.target.id != Q.field_name + "search" + lt.value && Yt.target.id != Q.field_name && !Yt.target.classList.contains("showOptions") && (he(),
|
|
2797
|
+
Yt.target.id != Q.field_name + "search" + lt.value && Yt.target.id != Q.field_name && !Yt.target.classList.contains("showOptions") && (he(), Ee.value = 0, ee.value = !1);
|
|
2794
2798
|
}
|
|
2795
2799
|
function kt(Yt) {
|
|
2796
2800
|
const Cn = `${Yt}${lt.value}`, Nt = document.getElementById(Cn);
|
|
@@ -2801,7 +2805,7 @@ const kle = /* @__PURE__ */ Kr(CX, [["render", TJ], ["__scopeId", "data-v-37dd4e
|
|
|
2801
2805
|
Nt && Nt.click();
|
|
2802
2806
|
}
|
|
2803
2807
|
function oo(Yt) {
|
|
2804
|
-
Yt === "ArrowDown" &&
|
|
2808
|
+
Yt === "ArrowDown" && Ee.value < eo.value.length && (Ee.value++, kt(Ee.value)), Yt === "ArrowUp" && Ee.value > 1 && (Ee.value--, kt(Ee.value)), Yt === "Enter" && ia(Ee.value);
|
|
2805
2809
|
}
|
|
2806
2810
|
function re() {
|
|
2807
2811
|
return Q.options.map((Yt, Cn) => typeof Yt == "object" ? Yt : { id: Yt, name: Yt });
|
|
@@ -2952,7 +2956,7 @@ const kle = /* @__PURE__ */ Kr(CX, [["render", TJ], ["__scopeId", "data-v-37dd4e
|
|
|
2952
2956
|
return ge(), ye("div", {
|
|
2953
2957
|
class: nn([
|
|
2954
2958
|
"relative px-2 py-2 text-xs leading-4 text-gray-700 no-underline cursor-pointer dark:text-gray-200 hover:bg-gray-100 dark:hover:bg-gray-600 dark:hover:text-white",
|
|
2955
|
-
Ht + 1 ==
|
|
2959
|
+
Ht + 1 == Ee.value ? "bg-gray-100 dark:bg-gray-600" : ""
|
|
2956
2960
|
]),
|
|
2957
2961
|
onClick: (Me) => ss(nt),
|
|
2958
2962
|
onMousedown: (Me) => ss(nt),
|
|
@@ -3030,7 +3034,7 @@ const kle = /* @__PURE__ */ Kr(CX, [["render", TJ], ["__scopeId", "data-v-37dd4e
|
|
|
3030
3034
|
Ag(() => {
|
|
3031
3035
|
j.value !== null && j.value.hasAttribute("autofocus") && j.value.focus();
|
|
3032
3036
|
});
|
|
3033
|
-
const
|
|
3037
|
+
const Ee = pu({
|
|
3034
3038
|
get() {
|
|
3035
3039
|
return ke.modelValue;
|
|
3036
3040
|
},
|
|
@@ -3071,14 +3075,14 @@ const kle = /* @__PURE__ */ Kr(CX, [["render", TJ], ["__scopeId", "data-v-37dd4e
|
|
|
3071
3075
|
" gl-textarea-form-invalid mt-4 ": D.error_message !== ""
|
|
3072
3076
|
}),
|
|
3073
3077
|
type: D.type,
|
|
3074
|
-
"onUpdate:modelValue": Be[0] || (Be[0] = (lt) =>
|
|
3078
|
+
"onUpdate:modelValue": Be[0] || (Be[0] = (lt) => Ee.value = lt),
|
|
3075
3079
|
onKeydown: Be[1] || (Be[1] = (lt) => ee.$emit("keydown", lt)),
|
|
3076
3080
|
ref_key: "input",
|
|
3077
3081
|
ref: j,
|
|
3078
3082
|
rows: "4",
|
|
3079
3083
|
placeholder: D.placeholder
|
|
3080
3084
|
}, null, 42, jQ), [
|
|
3081
|
-
[Sm,
|
|
3085
|
+
[Sm, Ee.value]
|
|
3082
3086
|
]),
|
|
3083
3087
|
$("span", GQ, mt(D.error_message), 1),
|
|
3084
3088
|
$("small", qQ, mt(D.description), 1)
|
|
@@ -3118,9 +3122,9 @@ var rq = { exports: {} };
|
|
|
3118
3122
|
});
|
|
3119
3123
|
}, j = function(e) {
|
|
3120
3124
|
return { eq: e };
|
|
3121
|
-
},
|
|
3125
|
+
}, Ee = j(function(e, n) {
|
|
3122
3126
|
return e === n;
|
|
3123
|
-
}), ee =
|
|
3127
|
+
}), ee = Ee, Be = function(e) {
|
|
3124
3128
|
return j(function(n, o) {
|
|
3125
3129
|
if (n.length !== o.length)
|
|
3126
3130
|
return !1;
|
|
@@ -3476,14 +3480,14 @@ var rq = { exports: {} };
|
|
|
3476
3480
|
return Yr(r(1), r(2));
|
|
3477
3481
|
}, fi = (e, n) => {
|
|
3478
3482
|
const o = String(n).toLowerCase();
|
|
3479
|
-
return e.length === 0 ?
|
|
3480
|
-
},
|
|
3483
|
+
return e.length === 0 ? Ae() : Ll(e, o);
|
|
3484
|
+
}, Ae = () => Yr(0, 0), Yr = (e, n) => ({
|
|
3481
3485
|
major: e,
|
|
3482
3486
|
minor: n
|
|
3483
3487
|
}), Fl = {
|
|
3484
3488
|
nu: Yr,
|
|
3485
3489
|
detect: fi,
|
|
3486
|
-
unknown:
|
|
3490
|
+
unknown: Ae
|
|
3487
3491
|
}, ju = (e, n) => Bl(n.brands, (o) => {
|
|
3488
3492
|
const r = o.brand.toLowerCase();
|
|
3489
3493
|
return ps(e, (l) => {
|
|
@@ -20496,7 +20500,7 @@ tinymce.IconManager.add("default", {
|
|
|
20496
20500
|
}, Q = (t) => {
|
|
20497
20501
|
const s = typeof t;
|
|
20498
20502
|
return t === null ? "null" : s === "object" && Array.isArray(t) ? "array" : s === "object" && ie(t, String, (a, c) => c.isPrototypeOf(a)) ? "string" : s;
|
|
20499
|
-
}, ke = (t) => (s) => Q(s) === t, se = (t) => (s) => typeof s === t, j = (t) => (s) => t === s,
|
|
20503
|
+
}, ke = (t) => (s) => Q(s) === t, se = (t) => (s) => typeof s === t, j = (t) => (s) => t === s, Ee = (t, s) => Be(t) && ie(t, s, (a, c) => D(a) === c), ee = ke("string"), Be = ke("object"), lt = (t) => Ee(t, Object), _t = ke("array"), yn = j(null), Et = se("boolean"), io = j(void 0), lo = (t) => t == null, eo = (t) => !lo(t), Ot = se("function"), Ls = se("number"), un = (t, s) => {
|
|
20500
20504
|
if (_t(t)) {
|
|
20501
20505
|
for (let a = 0, c = t.length; a < c; ++a)
|
|
20502
20506
|
if (!s(t[a]))
|
|
@@ -20777,7 +20781,7 @@ tinymce.IconManager.add("default", {
|
|
|
20777
20781
|
if (t == null)
|
|
20778
20782
|
throw new Error("Node cannot be null or undefined");
|
|
20779
20783
|
return { dom: t };
|
|
20780
|
-
},
|
|
20784
|
+
}, Ae = {
|
|
20781
20785
|
fromHtml: sc,
|
|
20782
20786
|
fromTag: Hc,
|
|
20783
20787
|
fromText: rc,
|
|
@@ -20817,39 +20821,39 @@ tinymce.IconManager.add("default", {
|
|
|
20817
20821
|
}
|
|
20818
20822
|
}, os = (t) => t.nodeType !== Ts && t.nodeType !== Yi && t.nodeType !== ys || t.childElementCount === 0, $a = (t, s) => {
|
|
20819
20823
|
const a = s === void 0 ? document : s.dom;
|
|
20820
|
-
return os(a) ? [] : et(a.querySelectorAll(t),
|
|
20824
|
+
return os(a) ? [] : et(a.querySelectorAll(t), Ae.fromDom);
|
|
20821
20825
|
}, Xi = (t, s) => {
|
|
20822
20826
|
const a = s === void 0 ? document : s.dom;
|
|
20823
|
-
return os(a) ? A.none() : A.from(a.querySelector(t)).map(
|
|
20827
|
+
return os(a) ? A.none() : A.from(a.querySelector(t)).map(Ae.fromDom);
|
|
20824
20828
|
}, zo = (t, s) => t.dom === s.dom, Rr = (t, s) => {
|
|
20825
20829
|
const a = t.dom, c = s.dom;
|
|
20826
20830
|
return a === c ? !1 : a.contains(c);
|
|
20827
|
-
}, fa = (t) =>
|
|
20831
|
+
}, fa = (t) => Ae.fromDom(t.dom.ownerDocument), ar = (t) => da(t) ? t : fa(t), wl = (t) => Ae.fromDom(ar(t).dom.documentElement), Hl = (t) => Ae.fromDom(ar(t).dom.defaultView), ta = (t) => A.from(t.dom.parentNode).map(Ae.fromDom), Vl = (t) => ta(t), zl = (t) => A.from(t.dom.parentElement).map(Ae.fromDom), Gu = (t, s) => {
|
|
20828
20832
|
const a = Ot(s) ? s : Cn;
|
|
20829
20833
|
let c = t.dom;
|
|
20830
20834
|
const d = [];
|
|
20831
20835
|
for (; c.parentNode !== null && c.parentNode !== void 0; ) {
|
|
20832
|
-
const g = c.parentNode, p =
|
|
20836
|
+
const g = c.parentNode, p = Ae.fromDom(g);
|
|
20833
20837
|
if (d.push(p), a(p) === !0)
|
|
20834
20838
|
break;
|
|
20835
20839
|
c = g;
|
|
20836
20840
|
}
|
|
20837
20841
|
return d;
|
|
20838
|
-
}, xl = (t) => A.from(t.dom.offsetParent).map(
|
|
20842
|
+
}, xl = (t) => A.from(t.dom.offsetParent).map(Ae.fromDom), Ji = (t) => A.from(t.dom.nextSibling).map(Ae.fromDom), Ma = (t) => et(t.dom.childNodes, Ae.fromDom), Cc = (t, s) => {
|
|
20839
20843
|
const a = t.dom.childNodes;
|
|
20840
|
-
return A.from(a[s]).map(
|
|
20844
|
+
return A.from(a[s]).map(Ae.fromDom);
|
|
20841
20845
|
}, hi = (t) => Cc(t, 0), bu = (t, s) => ({
|
|
20842
20846
|
element: t,
|
|
20843
20847
|
offset: s
|
|
20844
20848
|
}), qu = (t, s) => {
|
|
20845
20849
|
const a = Ma(t);
|
|
20846
20850
|
return a.length > 0 && s < a.length ? bu(a[s], 0) : bu(t, s);
|
|
20847
|
-
}, G = (t) => Vc(t) && eo(t.dom.host), me = Ot(Element.prototype.attachShadow) && Ot(Node.prototype.getRootNode), Te = re(me), Ie = me ? (t) =>
|
|
20851
|
+
}, G = (t) => Vc(t) && eo(t.dom.host), me = Ot(Element.prototype.attachShadow) && Ot(Node.prototype.getRootNode), Te = re(me), Ie = me ? (t) => Ae.fromDom(t.dom.getRootNode()) : ar, ft = (t) => G(t) ? t : Ae.fromDom(ar(t).dom.body), fn = (t) => Zo(t).isSome(), Zo = (t) => {
|
|
20848
20852
|
const s = Ie(t);
|
|
20849
20853
|
return G(s) ? A.some(s) : A.none();
|
|
20850
|
-
}, as = (t) =>
|
|
20854
|
+
}, as = (t) => Ae.fromDom(t.dom.host), jo = (t) => {
|
|
20851
20855
|
if (Te() && eo(t.target)) {
|
|
20852
|
-
const s =
|
|
20856
|
+
const s = Ae.fromDom(t.target);
|
|
20853
20857
|
if (Po(s) && ws(s) && t.composed && t.composedPath) {
|
|
20854
20858
|
const a = t.composedPath();
|
|
20855
20859
|
if (a)
|
|
@@ -20862,12 +20866,12 @@ tinymce.IconManager.add("default", {
|
|
|
20862
20866
|
if (s == null || s.ownerDocument === null)
|
|
20863
20867
|
return !1;
|
|
20864
20868
|
const a = s.ownerDocument;
|
|
20865
|
-
return Zo(
|
|
20866
|
-
}, Vs = () => Pa(
|
|
20869
|
+
return Zo(Ae.fromDom(s)).fold(() => a.body.contains(s), oo(po, as));
|
|
20870
|
+
}, Vs = () => Pa(Ae.fromDom(document)), Pa = (t) => {
|
|
20867
20871
|
const s = t.dom.body;
|
|
20868
20872
|
if (s == null)
|
|
20869
20873
|
throw new Error("Body is not available yet");
|
|
20870
|
-
return
|
|
20874
|
+
return Ae.fromDom(s);
|
|
20871
20875
|
}, vu = (t, s, a) => {
|
|
20872
20876
|
if (ee(a) || Et(a) || Ls(a))
|
|
20873
20877
|
t.setAttribute(s, a + "");
|
|
@@ -20926,7 +20930,7 @@ tinymce.IconManager.add("default", {
|
|
|
20926
20930
|
}
|
|
20927
20931
|
return s;
|
|
20928
20932
|
}, zc = (t, s, a) => {
|
|
20929
|
-
const c =
|
|
20933
|
+
const c = Ae.fromTag(t);
|
|
20930
20934
|
return Kt(c, s, a), zs(c, s).isSome();
|
|
20931
20935
|
}, Co = (t, s) => {
|
|
20932
20936
|
const a = t.dom;
|
|
@@ -21224,7 +21228,7 @@ tinymce.IconManager.add("default", {
|
|
|
21224
21228
|
kill: g,
|
|
21225
21229
|
raw: p
|
|
21226
21230
|
}), xu = (t) => {
|
|
21227
|
-
const s =
|
|
21231
|
+
const s = Ae.fromDom(jo(t).getOr(t.target)), a = () => t.stopPropagation(), c = () => t.preventDefault(), d = ia(c, a);
|
|
21228
21232
|
return ic(s, t.clientX, t.clientY, a, c, d, t);
|
|
21229
21233
|
}, kc = (t, s) => (a) => {
|
|
21230
21234
|
t(a) && s(xu(a));
|
|
@@ -21287,12 +21291,12 @@ tinymce.IconManager.add("default", {
|
|
|
21287
21291
|
right: t + a,
|
|
21288
21292
|
bottom: s + c
|
|
21289
21293
|
}), kf = (t) => {
|
|
21290
|
-
const s = t === void 0 ? window : t, a = s.document, c = qa(
|
|
21294
|
+
const s = t === void 0 ? window : t, a = s.document, c = qa(Ae.fromDom(a));
|
|
21291
21295
|
return Uh(s).fold(() => {
|
|
21292
21296
|
const d = s.document.documentElement, g = d.clientWidth, p = d.clientHeight;
|
|
21293
21297
|
return Rm(c.left, c.top, g, p);
|
|
21294
21298
|
}, (d) => Rm(Math.max(d.pageLeft, c.left), Math.max(d.pageTop, c.top), d.width, d.height));
|
|
21295
|
-
}, Nd = () =>
|
|
21299
|
+
}, Nd = () => Ae.fromDom(document), xi = (t, s) => t.view(s).fold(re([]), (c) => {
|
|
21296
21300
|
const d = t.owner(c), g = xi(t, d);
|
|
21297
21301
|
return [c].concat(g);
|
|
21298
21302
|
}), Wh = (t, s) => {
|
|
@@ -21303,7 +21307,7 @@ tinymce.IconManager.add("default", {
|
|
|
21303
21307
|
__proto__: null,
|
|
21304
21308
|
view: (t) => {
|
|
21305
21309
|
var s;
|
|
21306
|
-
return (t.dom === document ? A.none() : A.from((s = t.dom.defaultView) === null || s === void 0 ? void 0 : s.frameElement)).map(
|
|
21310
|
+
return (t.dom === document ? A.none() : A.from((s = t.dom.defaultView) === null || s === void 0 ? void 0 : s.frameElement)).map(Ae.fromDom);
|
|
21307
21311
|
},
|
|
21308
21312
|
owner: (t) => fa(t)
|
|
21309
21313
|
});
|
|
@@ -21747,7 +21751,7 @@ Required: ` + s.join(", "));
|
|
|
21747
21751
|
const d = Ns(a);
|
|
21748
21752
|
for (; c.parentNode; ) {
|
|
21749
21753
|
c = c.parentNode;
|
|
21750
|
-
const g =
|
|
21754
|
+
const g = Ae.fromDom(c), p = s(g);
|
|
21751
21755
|
if (p.isSome())
|
|
21752
21756
|
return p;
|
|
21753
21757
|
if (d(g))
|
|
@@ -21854,14 +21858,14 @@ Required: ` + s.join(", "));
|
|
|
21854
21858
|
a.stop();
|
|
21855
21859
|
}), Wd = (t, s) => N1(t)(s), Cs = N1(_i()), Zd = N1(Bf()), Fy = N1(Pf()), Ru = O4(Jc()), Um = (t, s) => {
|
|
21856
21860
|
const c = (s || document).createElement("div");
|
|
21857
|
-
return c.innerHTML = t, Ma(
|
|
21861
|
+
return c.innerHTML = t, Ma(Ae.fromDom(c));
|
|
21858
21862
|
}, Hy = (t) => t.dom.innerHTML, th = (t, s) => {
|
|
21859
|
-
const c = fa(t).dom, d =
|
|
21863
|
+
const c = fa(t).dom, d = Ae.fromDom(c.createDocumentFragment()), g = Um(s, c);
|
|
21860
21864
|
Cu(d, g), Bd(t), Ga(t, d);
|
|
21861
21865
|
}, eC = (t) => {
|
|
21862
|
-
const s =
|
|
21866
|
+
const s = Ae.fromTag("div"), a = Ae.fromDom(t.dom.cloneNode(!0));
|
|
21863
21867
|
return Ga(s, a), Hy(s);
|
|
21864
|
-
}, Eb = (t, s) =>
|
|
21868
|
+
}, Eb = (t, s) => Ae.fromDom(t.dom.cloneNode(s)), Vy = (t) => Eb(t, !1), M4 = (t) => Eb(t, !0), zy = (t) => {
|
|
21865
21869
|
if (G(t))
|
|
21866
21870
|
return "#shadow-root";
|
|
21867
21871
|
{
|
|
@@ -22172,7 +22176,7 @@ The behaviours that can trigger it are: ` + JSON.stringify(et(s, (a) => a.name),
|
|
|
22172
22176
|
t.dom.value = s;
|
|
22173
22177
|
}, Ff = (t, s, a) => Cc(t, s).map((d) => {
|
|
22174
22178
|
if (a.exists((p) => !zo(p, d))) {
|
|
22175
|
-
const p = a.map(Ra).getOr("span"), w =
|
|
22179
|
+
const p = a.map(Ra).getOr("span"), w = Ae.fromTag(p);
|
|
22176
22180
|
return uc(d, w), w;
|
|
22177
22181
|
} else
|
|
22178
22182
|
return d;
|
|
@@ -22223,7 +22227,7 @@ The behaviours that can trigger it are: ` + JSON.stringify(et(s, (a) => a.name),
|
|
|
22223
22227
|
};
|
|
22224
22228
|
return w(), ue(), N(), t.innerHtml.fold(xe, $e), be(), s;
|
|
22225
22229
|
}, U4 = (t) => {
|
|
22226
|
-
const s =
|
|
22230
|
+
const s = Ae.fromTag(t.tag);
|
|
22227
22231
|
Ku(s, t.attributes), ur(s, t.classes), Ms(s, t.styles), t.innerHtml.each((c) => th(s, c));
|
|
22228
22232
|
const a = t.domChildren;
|
|
22229
22233
|
return Cu(s, a), t.value.each((c) => {
|
|
@@ -22300,7 +22304,7 @@ The behaviours that can trigger it are: ` + JSON.stringify(et(s, (a) => a.name),
|
|
|
22300
22304
|
};
|
|
22301
22305
|
return Vn.value(gp(g, s));
|
|
22302
22306
|
}, _r = (t) => {
|
|
22303
|
-
const s =
|
|
22307
|
+
const s = Ae.fromText(t);
|
|
22304
22308
|
return dC({ element: s });
|
|
22305
22309
|
}, dC = (t) => {
|
|
22306
22310
|
const s = _l("external.component", Es([
|
|
@@ -22341,7 +22345,7 @@ The behaviours that can trigger it are: ` + JSON.stringify(et(s, (a) => a.name),
|
|
|
22341
22345
|
const d = Ot(a) ? a : Cn;
|
|
22342
22346
|
for (; c.parentNode; ) {
|
|
22343
22347
|
c = c.parentNode;
|
|
22344
|
-
const g =
|
|
22348
|
+
const g = Ae.fromDom(c);
|
|
22345
22349
|
if (s(g))
|
|
22346
22350
|
return A.some(g);
|
|
22347
22351
|
if (d(g))
|
|
@@ -22349,12 +22353,12 @@ The behaviours that can trigger it are: ` + JSON.stringify(et(s, (a) => a.name),
|
|
|
22349
22353
|
}
|
|
22350
22354
|
return A.none();
|
|
22351
22355
|
}, rh = (t, s, a) => fC((d, g) => g(d), Vb, t, s, a), Z4 = (t, s) => {
|
|
22352
|
-
const a = (d) => s(
|
|
22353
|
-
return qe(t.dom.childNodes, a).map(
|
|
22356
|
+
const a = (d) => s(Ae.fromDom(d));
|
|
22357
|
+
return qe(t.dom.childNodes, a).map(Ae.fromDom);
|
|
22354
22358
|
}, gC = (t, s) => {
|
|
22355
22359
|
const a = (c) => {
|
|
22356
22360
|
for (let d = 0; d < c.childNodes.length; d++) {
|
|
22357
|
-
const g =
|
|
22361
|
+
const g = Ae.fromDom(c.childNodes[d]);
|
|
22358
22362
|
if (s(g))
|
|
22359
22363
|
return A.some(g);
|
|
22360
22364
|
const p = a(c.childNodes[d]);
|
|
@@ -22688,7 +22692,7 @@ Receiver: ` + jd(s.element), E, g.data);
|
|
|
22688
22692
|
const Oc = (t, s = !1) => t.dom.focus({ preventScroll: s }), xp = (t) => t.dom.blur(), K1 = (t) => {
|
|
22689
22693
|
const s = Ie(t).dom;
|
|
22690
22694
|
return t.dom === s.activeElement;
|
|
22691
|
-
}, Jd = (t = Nd()) => A.from(t.dom.activeElement).map(
|
|
22695
|
+
}, Jd = (t = Nd()) => A.from(t.dom.activeElement).map(Ae.fromDom), Pu = (t) => Jd(Ie(t)).filter((s) => t.dom.contains(s.dom)), Ut = (t, s) => {
|
|
22692
22696
|
const a = Ie(s), c = Jd(a).bind((g) => {
|
|
22693
22697
|
const p = (w) => zo(g, w);
|
|
22694
22698
|
return p(s) ? A.some(s) : gC(s, p);
|
|
@@ -23122,7 +23126,7 @@ Receiver: ` + jd(s.element), E, g.data);
|
|
|
23122
23126
|
const p = fa(g), w = fa(t.element);
|
|
23123
23127
|
return zo(p, w);
|
|
23124
23128
|
};
|
|
23125
|
-
return A.from(c.frameElement).map(
|
|
23129
|
+
return A.from(c.frameElement).map(Ae.fromDom).filter(d).map(Cl);
|
|
23126
23130
|
}, HC = (t, s, a) => {
|
|
23127
23131
|
const c = fa(t.element), d = qa(c), g = CT(t, s, a).getOr(d);
|
|
23128
23132
|
return nv(g, d.left, d.top);
|
|
@@ -23193,7 +23197,7 @@ Receiver: ` + jd(s.element), E, g.data);
|
|
|
23193
23197
|
]
|
|
23194
23198
|
}
|
|
23195
23199
|
]), ET = (t) => Ep.exact(t.start, t.soffset, t.finish, t.foffset), $2 = (t) => t.match({
|
|
23196
|
-
domRange: (s) =>
|
|
23200
|
+
domRange: (s) => Ae.fromDom(s.startContainer),
|
|
23197
23201
|
relative: (s, a) => TT.getStart(s),
|
|
23198
23202
|
exact: (s, a, c, d) => s
|
|
23199
23203
|
}), AT = Ep.domRange, DT = Ep.relative, OT = Ep.exact, UC = (t) => {
|
|
@@ -23258,7 +23262,7 @@ Receiver: ` + jd(s.element), E, g.data);
|
|
|
23258
23262
|
"foffset"
|
|
23259
23263
|
]
|
|
23260
23264
|
}
|
|
23261
|
-
]), n0 = (t, s, a) => s(
|
|
23265
|
+
]), n0 = (t, s, a) => s(Ae.fromDom(a.startContainer), a.startOffset, Ae.fromDom(a.endContainer), a.endOffset), $T = (t, s) => s.match({
|
|
23262
23266
|
domRange: (a) => ({
|
|
23263
23267
|
ltr: re(a),
|
|
23264
23268
|
rtl: A.none
|
|
@@ -23273,7 +23277,7 @@ Receiver: ` + jd(s.element), E, g.data);
|
|
|
23273
23277
|
})
|
|
23274
23278
|
}), MT = (t, s) => {
|
|
23275
23279
|
const a = s.ltr();
|
|
23276
|
-
return a.collapsed ? s.rtl().filter((d) => d.collapsed === !1).map((d) => mh.rtl(
|
|
23280
|
+
return a.collapsed ? s.rtl().filter((d) => d.collapsed === !1).map((d) => mh.rtl(Ae.fromDom(d.endContainer), d.endOffset, Ae.fromDom(d.startContainer), d.startOffset)).getOrThunk(() => n0(t, mh.ltr, a)) : n0(t, mh.ltr, a);
|
|
23277
23281
|
}, o0 = (t, s) => {
|
|
23278
23282
|
const a = $T(t, s);
|
|
23279
23283
|
return MT(t, a);
|
|
@@ -23297,14 +23301,14 @@ Receiver: ` + jd(s.element), E, g.data);
|
|
|
23297
23301
|
}, gO = (t) => A.from(t.getSelection()), Dp = (t) => {
|
|
23298
23302
|
if (t.rangeCount > 0) {
|
|
23299
23303
|
const s = t.getRangeAt(0), a = t.getRangeAt(t.rangeCount - 1);
|
|
23300
|
-
return A.some(ov.create(
|
|
23304
|
+
return A.some(ov.create(Ae.fromDom(s.startContainer), s.startOffset, Ae.fromDom(a.endContainer), a.endOffset));
|
|
23301
23305
|
} else
|
|
23302
23306
|
return A.none();
|
|
23303
23307
|
}, PT = (t) => {
|
|
23304
23308
|
if (t.anchorNode === null || t.focusNode === null)
|
|
23305
23309
|
return Dp(t);
|
|
23306
23310
|
{
|
|
23307
|
-
const s =
|
|
23311
|
+
const s = Ae.fromDom(t.anchorNode), a = Ae.fromDom(t.focusNode);
|
|
23308
23312
|
return B2(s, t.anchorOffset, a, t.focusOffset) ? A.some(ov.create(s, t.anchorOffset, a, t.focusOffset)) : Dp(t);
|
|
23309
23313
|
}
|
|
23310
23314
|
}, KC = (t) => gO(t).filter((s) => s.rangeCount > 0).bind(PT), N2 = (t, s) => {
|
|
@@ -23351,7 +23355,7 @@ Receiver: ` + jd(s.element), E, g.data);
|
|
|
23351
23355
|
const c = Hl(s.root).dom, d = HC(t, a, s), g = I2(c, s).bind((C) => {
|
|
23352
23356
|
if (Kf(C))
|
|
23353
23357
|
return s0(c, Ka.exactFromRange(C)).orThunk(() => {
|
|
23354
|
-
const R =
|
|
23358
|
+
const R = Ae.fromText(VC);
|
|
23355
23359
|
uc(C.start, R);
|
|
23356
23360
|
const N = N2(c, Ka.exact(R, 0, R, 1));
|
|
23357
23361
|
return Tc(R), N;
|
|
@@ -25628,7 +25632,7 @@ Components: ` + JSON.stringify(s.components, null, 2));
|
|
|
25628
25632
|
[c.name]: c.value
|
|
25629
25633
|
}, {});
|
|
25630
25634
|
}, nI = (t) => Array.prototype.slice.call(t.dom.classList, 0), Sh = (t) => {
|
|
25631
|
-
const s =
|
|
25635
|
+
const s = Ae.fromHtml(t), a = Ma(s), c = tI(s), d = nI(s), g = a.length === 0 ? {} : { innerHtml: Hy(s) };
|
|
25632
25636
|
return {
|
|
25633
25637
|
tag: Ra(s),
|
|
25634
25638
|
classes: d,
|
|
@@ -26939,7 +26943,7 @@ Components: ` + JSON.stringify(s.components, null, 2));
|
|
|
26939
26943
|
});
|
|
26940
26944
|
var j3 = (t, s, a) => {
|
|
26941
26945
|
const c = s.backstage.shared, d = () => {
|
|
26942
|
-
const C = Ys(
|
|
26946
|
+
const C = Ys(Ae.fromDom(t.getContentAreaContainer())), E = na(), R = Ei(E.x, C.x, C.right), N = Ei(E.y, C.y, C.bottom), H = Math.max(C.right, E.right), W = Math.max(C.bottom, E.bottom);
|
|
26943
26947
|
return A.some(Bs(R, N, H - R, W - N));
|
|
26944
26948
|
};
|
|
26945
26949
|
return {
|
|
@@ -26988,7 +26992,7 @@ Components: ` + JSON.stringify(s.components, null, 2));
|
|
|
26988
26992
|
const Oe = xe[be - 1].getEl(), dt = {
|
|
26989
26993
|
type: "node",
|
|
26990
26994
|
root: Vs(),
|
|
26991
|
-
node: A.some(
|
|
26995
|
+
node: A.some(Ae.fromDom(Oe)),
|
|
26992
26996
|
overrides: $e,
|
|
26993
26997
|
layouts: {
|
|
26994
26998
|
onRtl: () => [Sa],
|
|
@@ -27164,8 +27168,8 @@ Components: ` + JSON.stringify(s.components, null, 2));
|
|
|
27164
27168
|
if (a.length > 0)
|
|
27165
27169
|
return Ir(Vs(), a);
|
|
27166
27170
|
const c = CI(t);
|
|
27167
|
-
return eo(c) ? A.some(
|
|
27168
|
-
}, zv = (t) => t.inline && LR(t).isSome(), rE = (t) => LR(t).getOrThunk(() => ft(Ie(
|
|
27171
|
+
return eo(c) ? A.some(Ae.fromDom(c)) : A.none();
|
|
27172
|
+
}, zv = (t) => t.inline && LR(t).isSome(), rE = (t) => LR(t).getOrThunk(() => ft(Ie(Ae.fromDom(t.getElement())))), aE = (t) => t.inline && !Vv(t) && !r_(t) && !$w(t), Mw = (t) => (t.options.get("toolbar_sticky") || t.inline) && !zv(t) && !aE(t), ag = (t) => !zv(t) && t.options.get("ui_mode") === "split", FR = (t) => {
|
|
27169
27173
|
const s = t.options.get("menu");
|
|
27170
27174
|
return Ko(s, (a) => ({
|
|
27171
27175
|
...a,
|
|
@@ -27247,7 +27251,7 @@ Components: ` + JSON.stringify(s.components, null, 2));
|
|
|
27247
27251
|
a(p, d), d.preventDefault(), d.stopImmediatePropagation();
|
|
27248
27252
|
}) : (g === 13 || g === 38 || g === 40) && t.cancelIfNecessary());
|
|
27249
27253
|
}), s.on("NodeChange", (d) => {
|
|
27250
|
-
t.isActive() && !t.isProcessingAction() && lE(
|
|
27254
|
+
t.isActive() && !t.isProcessingAction() && lE(Ae.fromDom(d.element)).isNone() && t.cancelIfNecessary();
|
|
27251
27255
|
});
|
|
27252
27256
|
} };
|
|
27253
27257
|
var cE;
|
|
@@ -28115,7 +28119,7 @@ Components: ` + JSON.stringify(s.components, null, 2));
|
|
|
28115
28119
|
mode: "follow-highlight",
|
|
28116
28120
|
onShow: (c, d) => {
|
|
28117
28121
|
a((g) => {
|
|
28118
|
-
E$.setComponents(c, [dC({ element:
|
|
28122
|
+
E$.setComponents(c, [dC({ element: Ae.fromDom(g) })]);
|
|
28119
28123
|
});
|
|
28120
28124
|
}
|
|
28121
28125
|
})]).getOr([]), LE = (t) => I0.DOM.encode(t), $$ = (t, s) => {
|
|
@@ -28498,7 +28502,7 @@ Components: ` + JSON.stringify(s.components, null, 2));
|
|
|
28498
28502
|
} else
|
|
28499
28503
|
return A.none();
|
|
28500
28504
|
}).getOr(s6), r6 = (t, s) => {
|
|
28501
|
-
const a =
|
|
28505
|
+
const a = Ae.fromDom(t.selection.getStart()), c = s === "hilitecolor" ? OL(a) : ls(a, "color");
|
|
28502
28506
|
return zE(c).map((d) => "#" + ey(d).value);
|
|
28503
28507
|
}, RL = (t, s, a) => {
|
|
28504
28508
|
t.undoManager.transact(() => {
|
|
@@ -29344,7 +29348,7 @@ Components: ` + JSON.stringify(s.components, null, 2));
|
|
|
29344
29348
|
fakeFocus: a === qw.ContentFocus
|
|
29345
29349
|
}
|
|
29346
29350
|
};
|
|
29347
|
-
}, hF = (t, s) => lE(
|
|
29351
|
+
}, hF = (t, s) => lE(Ae.fromDom(s.startContainer)).map((a) => {
|
|
29348
29352
|
const c = t.createRng();
|
|
29349
29353
|
return c.selectNode(a.dom), c;
|
|
29350
29354
|
}), pF = { register: (t, s) => {
|
|
@@ -29359,14 +29363,14 @@ Components: ` + JSON.stringify(s.components, null, 2));
|
|
|
29359
29363
|
inlineBehaviours: wt([Un("dismissAutocompleter", [
|
|
29360
29364
|
Je(Nf(), () => R()),
|
|
29361
29365
|
Je(M1(), ($e, xe) => {
|
|
29362
|
-
I(xe.event.target, "id").each((be) => It(
|
|
29366
|
+
I(xe.event.target, "id").each((be) => It(Ae.fromDom(t.getBody()), "aria-activedescendant", be));
|
|
29363
29367
|
})
|
|
29364
29368
|
])]),
|
|
29365
29369
|
lazySink: s.getSink
|
|
29366
29370
|
})), p = () => dr.isOpen(g), w = d.get, C = () => {
|
|
29367
29371
|
if (p()) {
|
|
29368
29372
|
dr.hide(g), t.dom.remove(a, !1);
|
|
29369
|
-
const $e =
|
|
29373
|
+
const $e = Ae.fromDom(t.getBody());
|
|
29370
29374
|
I($e, "aria-owns").filter((xe) => xe === a).each(() => {
|
|
29371
29375
|
ae($e, "aria-owns"), ae($e, "aria-activedescendant");
|
|
29372
29376
|
});
|
|
@@ -29389,19 +29393,19 @@ Components: ` + JSON.stringify(s.components, null, 2));
|
|
|
29389
29393
|
}, xe, mf.BUBBLE_TO_SANDBOX, s, be.highlightOn);
|
|
29390
29394
|
});
|
|
29391
29395
|
}, H = ($e, xe) => {
|
|
29392
|
-
_I(
|
|
29396
|
+
_I(Ae.fromDom(t.getBody())).each((be) => {
|
|
29393
29397
|
const Oe = tr($e, (dt) => A.from(dt.columns)).getOr(1);
|
|
29394
29398
|
dr.showMenuAt(g, {
|
|
29395
29399
|
anchor: {
|
|
29396
29400
|
type: "node",
|
|
29397
|
-
root:
|
|
29401
|
+
root: Ae.fromDom(t.getBody()),
|
|
29398
29402
|
node: A.from(be)
|
|
29399
29403
|
}
|
|
29400
29404
|
}, gF(m_("autocompleter-value", !0, xe, Oe, { menuType: "normal" }), Oe, qw.ContentFocus, "normal"));
|
|
29401
29405
|
}), E().each(Ho.highlightFirst);
|
|
29402
29406
|
}, W = ($e) => {
|
|
29403
29407
|
const xe = N($e);
|
|
29404
|
-
xe.length > 0 ? (H($e, xe), It(
|
|
29408
|
+
xe.length > 0 ? (H($e, xe), It(Ae.fromDom(t.getBody()), "aria-owns", a), t.inline || X()) : C();
|
|
29405
29409
|
}, X = () => {
|
|
29406
29410
|
t.dom.get(a) && t.dom.remove(a, !1);
|
|
29407
29411
|
const $e = t.getDoc().documentElement, xe = t.selection.getNode(), be = M4(g.element);
|
|
@@ -30145,7 +30149,7 @@ The conflicting element is` + (po(N.element) ? " " : " not ") + "already in the
|
|
|
30145
30149
|
if (R.length === 0)
|
|
30146
30150
|
return tc.pure(Vn.value(!0));
|
|
30147
30151
|
{
|
|
30148
|
-
const N =
|
|
30152
|
+
const N = Ae.fromTag("span");
|
|
30149
30153
|
Kt(N, "background-color", R);
|
|
30150
30154
|
const H = zs(N, "background-color").fold(() => Vn.error("blah"), (W) => Vn.value(R));
|
|
30151
30155
|
return tc.pure(H);
|
|
@@ -33787,19 +33791,19 @@ The conflicting element is` + (po(N.element) ? " " : " not ") + "already in the
|
|
|
33787
33791
|
const a = t.selection.getRng(), c = t.model.table.getSelectedCells();
|
|
33788
33792
|
if (c.length > 1) {
|
|
33789
33793
|
const d = c[0], g = c[c.length - 1], p = {
|
|
33790
|
-
firstCell:
|
|
33791
|
-
lastCell:
|
|
33794
|
+
firstCell: Ae.fromDom(d),
|
|
33795
|
+
lastCell: Ae.fromDom(g)
|
|
33792
33796
|
};
|
|
33793
33797
|
return A.some(p);
|
|
33794
33798
|
}
|
|
33795
|
-
return A.some(Ka.range(
|
|
33799
|
+
return A.some(Ka.range(Ae.fromDom(a.startContainer), a.startOffset, Ae.fromDom(a.endContainer), a.endOffset));
|
|
33796
33800
|
}
|
|
33797
33801
|
}), iV = (t) => (s) => ({
|
|
33798
33802
|
type: "node",
|
|
33799
33803
|
root: t(),
|
|
33800
33804
|
node: s
|
|
33801
33805
|
}), uV = (t, s, a, c) => {
|
|
33802
|
-
const d = zv(t), g = () =>
|
|
33806
|
+
const d = zv(t), g = () => Ae.fromDom(t.getBody()), p = () => Ae.fromDom(t.getContentAreaContainer()), w = () => d || !c();
|
|
33803
33807
|
return {
|
|
33804
33808
|
inlineDialog: T8(p, s, w),
|
|
33805
33809
|
inlineBottomDialog: bf(t.inline, p, a, w),
|
|
@@ -34031,7 +34035,7 @@ The conflicting element is` + (po(N.element) ? " " : " not ") + "already in the
|
|
|
34031
34035
|
return yV(s);
|
|
34032
34036
|
}
|
|
34033
34037
|
return !1;
|
|
34034
|
-
}, xV = (t, s) => et(ka(
|
|
34038
|
+
}, xV = (t, s) => et(ka(Ae.fromDom(s), t), (a) => a.dom), F8 = (t) => t.innerText || t.textContent, CV = (t) => t.id ? t.id : jt("h"), H8 = (t) => t && t.nodeName === "A" && (t.id || t.name) !== void 0, E5 = (t) => H8(t) && z8(t), V8 = (t) => t && /^(H[1-6])$/.test(t.nodeName), z8 = (t) => gG(t) && !L8(t), U8 = (t) => V8(t) && z8(t), SV = (t) => V8(t) ? parseInt(t.nodeName.substr(1), 10) : 0, _V = (t) => {
|
|
34035
34039
|
var s;
|
|
34036
34040
|
const a = CV(t), c = () => {
|
|
34037
34041
|
t.id = a;
|
|
@@ -34156,15 +34160,15 @@ The conflicting element is` + (po(N.element) ? " " : " not ") + "already in the
|
|
|
34156
34160
|
});
|
|
34157
34161
|
}, g = (Ge) => d(hd(), { target: Ge.target }), p = Nd(), w = Jl(p, "touchstart", g), C = Jl(p, "touchmove", (Ge) => c(R1(), Ge)), E = Jl(p, "touchend", (Ge) => c(xb(), Ge)), R = Jl(p, "mousedown", g), N = Jl(p, "mouseup", (Ge) => {
|
|
34158
34162
|
Ge.raw.button === 0 && d(j2(), { target: Ge.target });
|
|
34159
|
-
}), H = (Ge) => d(hd(), { target:
|
|
34160
|
-
Ge.button === 0 && d(j2(), { target:
|
|
34163
|
+
}), H = (Ge) => d(hd(), { target: Ae.fromDom(Ge.target) }), W = (Ge) => {
|
|
34164
|
+
Ge.button === 0 && d(j2(), { target: Ae.fromDom(Ge.target) });
|
|
34161
34165
|
}, X = () => {
|
|
34162
34166
|
pt(t.editorManager.get(), (Ge) => {
|
|
34163
34167
|
t !== Ge && Ge.dispatch("DismissPopups", { relatedTarget: t });
|
|
34164
34168
|
});
|
|
34165
34169
|
}, ue = (Ge) => c(Ud(), x2(Ge)), $e = (Ge) => {
|
|
34166
34170
|
d(hh(), {}), c(cd(), x2(Ge));
|
|
34167
|
-
}, xe = Ie(
|
|
34171
|
+
}, xe = Ie(Ae.fromDom(t.getElement())), be = Jb(xe, "scroll", (Ge) => {
|
|
34168
34172
|
requestAnimationFrame(() => {
|
|
34169
34173
|
const vt = t.getContainer();
|
|
34170
34174
|
if (vt != null) {
|
|
@@ -34176,9 +34180,9 @@ The conflicting element is` + (po(N.element) ? " " : " not ") + "already in the
|
|
|
34176
34180
|
}
|
|
34177
34181
|
});
|
|
34178
34182
|
}), Oe = () => d(hh(), {}), dt = (Ge) => {
|
|
34179
|
-
Ge.state && d(hd(), { target:
|
|
34183
|
+
Ge.state && d(hd(), { target: Ae.fromDom(t.getContainer()) });
|
|
34180
34184
|
}, Xe = (Ge) => {
|
|
34181
|
-
d(hd(), { target:
|
|
34185
|
+
d(hd(), { target: Ae.fromDom(Ge.relatedTarget.getContainer()) });
|
|
34182
34186
|
};
|
|
34183
34187
|
t.on("PostRender", () => {
|
|
34184
34188
|
t.on("click", H), t.on("tap", H), t.on("mouseup", W), t.on("mousedown", X), t.on("ScrollWindow", ue), t.on("ResizeWindow", $e), t.on("ResizeEditor", Oe), t.on("AfterProgressState", dt), t.on("DismissPopups", Xe);
|
|
@@ -34287,7 +34291,7 @@ The conflicting element is` + (po(N.element) ? " " : " not ") + "already in the
|
|
|
34287
34291
|
getBehaviours: Q8
|
|
34288
34292
|
});
|
|
34289
34293
|
const P5 = (t) => (Da(zs(t, "position"), "fixed") ? A.none() : xl(t)).orThunk(() => {
|
|
34290
|
-
const c =
|
|
34294
|
+
const c = Ae.fromTag("span");
|
|
34291
34295
|
return ta(t).bind((d) => {
|
|
34292
34296
|
Ga(d, c);
|
|
34293
34297
|
const g = xl(c);
|
|
@@ -34547,7 +34551,7 @@ The conflicting element is` + (po(N.element) ? " " : " not ") + "already in the
|
|
|
34547
34551
|
fadeOutClass: "tox-editor-dock-fadeout",
|
|
34548
34552
|
transitionClass: "tox-editor-dock-transition"
|
|
34549
34553
|
}, iP = "tox-tinymce--toolbar-sticky-on", uP = "tox-tinymce--toolbar-sticky-off", W5 = (t, s) => {
|
|
34550
|
-
const a = fa(s), d = Hl(s).dom.innerHeight, g = qa(a), p =
|
|
34554
|
+
const a = fa(s), d = Hl(s).dom.innerHeight, g = qa(a), p = Ae.fromDom(t.elm), w = rl(p), C = Us(p), E = w.y, R = E + C, N = Cl(s), H = Us(s), W = N.top, X = W + H, ue = Math.abs(W - g.top) < 2, $e = Math.abs(X - (g.top + d)) < 2;
|
|
34551
34555
|
if (ue && E < X)
|
|
34552
34556
|
Ig(g.left, E - H, a);
|
|
34553
34557
|
else if ($e && R > W) {
|
|
@@ -34573,11 +34577,11 @@ The conflicting element is` + (po(N.element) ? " " : " not ") + "already in the
|
|
|
34573
34577
|
hm.transitionClass
|
|
34574
34578
|
]));
|
|
34575
34579
|
}, dP = (t, s) => {
|
|
34576
|
-
const a =
|
|
34580
|
+
const a = Ae.fromDom(t.getContainer());
|
|
34577
34581
|
s ? (Nr(a, iP), nr(a, uP)) : (Nr(a, uP), nr(a, iP));
|
|
34578
34582
|
}, oz = (t, s) => {
|
|
34579
34583
|
const a = fa(s);
|
|
34580
|
-
Jd(a).filter((c) => !zo(s, c)).filter((c) => zo(c,
|
|
34584
|
+
Jd(a).filter((c) => !zo(s, c)).filter((c) => zo(c, Ae.fromDom(a.dom.body)) || Rr(t, c)).each(() => Oc(s));
|
|
34581
34585
|
}, sz = (t, s) => Pu(t).orThunk(() => s().toOptional().bind((a) => Pu(a.element))), rz = (t, s, a) => {
|
|
34582
34586
|
t.inline || (s.header.isPositionedAtTop() || t.on("ResizeEditor", () => {
|
|
34583
34587
|
a().each(or.reset);
|
|
@@ -34611,7 +34615,7 @@ The conflicting element is` + (po(N.element) ? " " : " not ") + "already in the
|
|
|
34611
34615
|
lazyContext: (w) => {
|
|
34612
34616
|
const C = Md(w.element), E = t.inline ? t.getContentAreaContainer() : t.getContainer();
|
|
34613
34617
|
return A.from(E).map((R) => {
|
|
34614
|
-
const N = Ys(
|
|
34618
|
+
const N = Ys(Ae.fromDom(R));
|
|
34615
34619
|
return s1(t, w.element).fold(() => {
|
|
34616
34620
|
const W = N.height - C, X = N.y + (Tk(w, "top") ? 0 : C);
|
|
34617
34621
|
return Bs(N.x, X, N.width, W);
|
|
@@ -35048,7 +35052,7 @@ The conflicting element is` + (po(N.element) ? " " : " not ") + "already in the
|
|
|
35048
35052
|
components: [{ dom: Sh('<div class="tox-spinner"><div></div><div></div><div></div></div>') }]
|
|
35049
35053
|
}), wP = (t) => yo.getCurrent(t).each((s) => Oc(s.element, !0)), Dx = (t, s) => {
|
|
35050
35054
|
const a = "tabindex", c = `data-mce-${a}`;
|
|
35051
|
-
A.from(t.iframeElement).map(
|
|
35055
|
+
A.from(t.iframeElement).map(Ae.fromDom).each((d) => {
|
|
35052
35056
|
s ? (I(d, a).each((g) => It(d, c, g)), It(d, a, -1)) : (ae(d, a), I(d, c).each((g) => {
|
|
35053
35057
|
It(d, a, g), ae(d, c);
|
|
35054
35058
|
}));
|
|
@@ -35075,7 +35079,7 @@ The conflicting element is` + (po(N.element) ? " " : " not ") + "already in the
|
|
|
35075
35079
|
yo.config({ find: (s) => vr(s.components()) })
|
|
35076
35080
|
]),
|
|
35077
35081
|
components: []
|
|
35078
|
-
}), Ez = (t) => t.type === "focusin", Rk = (t) => Ez(t) ? (t.composed ? vr(t.composedPath()) : A.from(t.target)).map(
|
|
35082
|
+
}), Ez = (t) => t.type === "focusin", Rk = (t) => Ez(t) ? (t.composed ? vr(t.composedPath()) : A.from(t.target)).map(Ae.fromDom).filter(Po).exists((a) => ra(a, "mce-pastebin")) : !1, Az = (t, s, a) => {
|
|
35079
35083
|
const c = gn(!1), d = ro(), g = (w) => {
|
|
35080
35084
|
c.get() && !Rk(w) && (w.preventDefault(), wP(s()), t.editorManager.setActive(t));
|
|
35081
35085
|
};
|
|
@@ -36236,7 +36240,7 @@ The conflicting element is` + (po(N.element) ? " " : " not ") + "already in the
|
|
|
36236
36240
|
return jP(t, g, t.ui.styleSheetLoader);
|
|
36237
36241
|
}
|
|
36238
36242
|
}, pU = async (t, s) => {
|
|
36239
|
-
if (fn(
|
|
36243
|
+
if (fn(Ae.fromDom(t.getElement()))) {
|
|
36240
36244
|
const d = "ui/" + s_(t).getOr("default") + "/skin.shadowdom.css", g = tinymce.Resource.get(d);
|
|
36241
36245
|
if (ee(g))
|
|
36242
36246
|
return mD(t, d, g, I0.DOM.styleSheetLoader), Promise.resolve();
|
|
@@ -36681,7 +36685,7 @@ The conflicting element is` + (po(N.element) ? " " : " not ") + "already in the
|
|
|
36681
36685
|
ue,
|
|
36682
36686
|
$e
|
|
36683
36687
|
], (Oe) => {
|
|
36684
|
-
const dt =
|
|
36688
|
+
const dt = Ae.fromDom(Oe.get(be).element.dom);
|
|
36685
36689
|
K1(dt) && xp(dt);
|
|
36686
36690
|
});
|
|
36687
36691
|
})])
|
|
@@ -37357,7 +37361,7 @@ The conflicting element is` + (po(N.element) ? " " : " not ") + "already in the
|
|
|
37357
37361
|
pL(t, H);
|
|
37358
37362
|
};
|
|
37359
37363
|
c.bind(d, "resize", C), c.bind(d, "scroll", R);
|
|
37360
|
-
const N = Jb(
|
|
37364
|
+
const N = Jb(Ae.fromDom(t.getBody()), "load", E);
|
|
37361
37365
|
t.on("hide", () => {
|
|
37362
37366
|
pt(a, (H) => {
|
|
37363
37367
|
Kt(H.element, "display", "none");
|
|
@@ -37377,7 +37381,7 @@ The conflicting element is` + (po(N.element) ? " " : " not ") + "already in the
|
|
|
37377
37381
|
render: (t, s, a, c, d) => {
|
|
37378
37382
|
const { mainUi: g, uiMotherships: p } = s, w = gn(0), C = g.outerContainer;
|
|
37379
37383
|
vU(t);
|
|
37380
|
-
const E =
|
|
37384
|
+
const E = Ae.fromDom(d.targetNode), R = ft(Ie(E));
|
|
37381
37385
|
Qm(E, g.mothership), TB(t, R, s), t.on("SkinLoaded", () => {
|
|
37382
37386
|
Os.setSidebar(C, a.sidebar, t_(t)), SB(t, s, a, c), w.set(t.getWin().innerWidth), Os.setMenubar(C, Lk(t, a)), Os.setViews(C, a.views), kB(t, s);
|
|
37383
37387
|
});
|
|
@@ -37564,14 +37568,14 @@ The conflicting element is` + (po(N.element) ? " " : " not ") + "already in the
|
|
|
37564
37568
|
a.update(or.refresh);
|
|
37565
37569
|
});
|
|
37566
37570
|
const C = Ym();
|
|
37567
|
-
C.set(Jb(
|
|
37571
|
+
C.set(Jb(Ae.fromDom(t.getBody()), "load", (E) => g(E.raw))), t.on("remove", () => {
|
|
37568
37572
|
C.clear();
|
|
37569
37573
|
});
|
|
37570
37574
|
};
|
|
37571
37575
|
var mW = /* @__PURE__ */ Object.freeze({
|
|
37572
37576
|
__proto__: null,
|
|
37573
37577
|
render: (t, s, a, c, d) => {
|
|
37574
|
-
const { mainUi: g } = s, p = ro(), w =
|
|
37578
|
+
const { mainUi: g } = s, p = ro(), w = Ae.fromDom(d.targetNode), C = iW(t, w, s, c, p), E = DR(t);
|
|
37575
37579
|
qP(t);
|
|
37576
37580
|
const R = () => {
|
|
37577
37581
|
if (p.isSet()) {
|
|
@@ -37679,7 +37683,7 @@ The conflicting element is` + (po(N.element) ? " " : " not ") + "already in the
|
|
|
37679
37683
|
}, nb = (t, s, a) => s.bottom - t.y >= a && t.bottom - s.y >= a, Xk = (t) => {
|
|
37680
37684
|
const s = t.getBoundingClientRect();
|
|
37681
37685
|
if (s.height <= 0 && s.width <= 0) {
|
|
37682
|
-
const a = qu(
|
|
37686
|
+
const a = qu(Ae.fromDom(t.startContainer), t.startOffset).element;
|
|
37683
37687
|
return (ea(a) ? ta(a) : A.some(a)).filter(Po).map((d) => d.dom.getBoundingClientRect()).getOr(s);
|
|
37684
37688
|
} else
|
|
37685
37689
|
return s;
|
|
@@ -37689,7 +37693,7 @@ The conflicting element is` + (po(N.element) ? " " : " not ") + "already in the
|
|
|
37689
37693
|
const c = qa();
|
|
37690
37694
|
return Bs(c.left + a.left, c.top + a.top, a.width, a.height);
|
|
37691
37695
|
} else {
|
|
37692
|
-
const c = rl(
|
|
37696
|
+
const c = rl(Ae.fromDom(t.getBody()));
|
|
37693
37697
|
return Bs(c.x + a.left, c.y + a.top, a.width, a.height);
|
|
37694
37698
|
}
|
|
37695
37699
|
}, MB = (t, s) => s.filter((a) => po(a) && xc(a)).map(rl).getOrThunk(() => Bx(t)), PB = (t, s, a) => {
|
|
@@ -37699,7 +37703,7 @@ The conflicting element is` + (po(N.element) ? " " : " not ") + "already in the
|
|
|
37699
37703
|
width: d - c
|
|
37700
37704
|
};
|
|
37701
37705
|
}, wW = (t, s, a, c, d, g) => {
|
|
37702
|
-
const p =
|
|
37706
|
+
const p = Ae.fromDom(t.getContainer()), w = Ir(p, ".tox-editor-header").getOr(p), C = Ys(w), E = C.y >= s.bottom, R = c && !E;
|
|
37703
37707
|
if (t.inline && R)
|
|
37704
37708
|
return {
|
|
37705
37709
|
y: Math.max(C.bottom + g, a.y),
|
|
@@ -37719,7 +37723,7 @@ The conflicting element is` + (po(N.element) ? " " : " not ") + "already in the
|
|
|
37719
37723
|
bottom: Math.min(C.y - g, a.bottom)
|
|
37720
37724
|
};
|
|
37721
37725
|
}, TD = (t, s, a, c = 0) => {
|
|
37722
|
-
const d = kf(window), g = Ys(
|
|
37726
|
+
const d = kf(window), g = Ys(Ae.fromDom(t.getContentAreaContainer())), p = Vv(t) || r_(t) || $w(t), { x: w, width: C } = PB(g, d, c);
|
|
37723
37727
|
if (t.inline && !p)
|
|
37724
37728
|
return Bs(w, d.y, C, d.height);
|
|
37725
37729
|
{
|
|
@@ -37740,7 +37744,7 @@ The conflicting element is` + (po(N.element) ? " " : " not ") + "already in the
|
|
|
37740
37744
|
maxHeightFunction: _p(),
|
|
37741
37745
|
maxWidthFunction: $k()
|
|
37742
37746
|
}, xW = (t, s) => {
|
|
37743
|
-
const a = t.selection.getRng(), c = qu(
|
|
37747
|
+
const a = t.selection.getRng(), c = qu(Ae.fromDom(a.startContainer), a.startOffset);
|
|
37744
37748
|
return a.startContainer === a.endContainer && a.startOffset === a.endOffset - 1 && zo(c.element, s);
|
|
37745
37749
|
}, CW = (t, s, a) => {
|
|
37746
37750
|
const c = zs(t, "position");
|
|
@@ -37878,7 +37882,7 @@ The conflicting element is` + (po(N.element) ? " " : " not ") + "already in the
|
|
|
37878
37882
|
} else
|
|
37879
37883
|
return A.none();
|
|
37880
37884
|
}, t), e4 = (t, s) => {
|
|
37881
|
-
const a =
|
|
37885
|
+
const a = Ae.fromDom(s.getBody()), c = (p) => zo(p, a), d = (p) => !c(p) && !Rr(a, p), g = Ae.fromDom(s.selection.getNode());
|
|
37882
37886
|
return d(g) ? A.none() : _W(g, t.inNodeScope, t.inEditorScope).orThunk(() => kW(c, g, t));
|
|
37883
37887
|
}, HB = (t, s) => {
|
|
37884
37888
|
const a = {}, c = [], d = [], g = {}, p = {}, w = (R, N) => {
|
|
@@ -38176,7 +38180,7 @@ The conflicting element is` + (po(N.element) ? " " : " not ") + "already in the
|
|
|
38176
38180
|
}).unbind;
|
|
38177
38181
|
},
|
|
38178
38182
|
getCurrent: (c) => {
|
|
38179
|
-
const d =
|
|
38183
|
+
const d = Ae.fromDom(c.selection.getNode());
|
|
38180
38184
|
return ql(d, (g) => A.some(g).filter(Po).bind((p) => I(p, "lang").map((C) => {
|
|
38181
38185
|
const E = I(p, "data-mce-lang").getOrUndefined();
|
|
38182
38186
|
return {
|
|
@@ -38589,11 +38593,11 @@ The conflicting element is` + (po(N.element) ? " " : " not ") + "already in the
|
|
|
38589
38593
|
return eN(s, a.x, a.y);
|
|
38590
38594
|
}, qW = (t, s) => s.type === "contextmenu" || s.type === "longpress" ? t.inline ? ZW(s) : GW(t.getContentAreaContainer(), jW(s)) : nN(t), nN = (t) => ({
|
|
38591
38595
|
type: "selection",
|
|
38592
|
-
root:
|
|
38596
|
+
root: Ae.fromDom(t.selection.getNode())
|
|
38593
38597
|
}), KW = (t) => ({
|
|
38594
38598
|
type: "node",
|
|
38595
|
-
node: A.some(
|
|
38596
|
-
root:
|
|
38599
|
+
node: A.some(Ae.fromDom(t.selection.getNode())),
|
|
38600
|
+
root: Ae.fromDom(t.getBody())
|
|
38597
38601
|
}), oN = (t, s, a) => {
|
|
38598
38602
|
switch (a) {
|
|
38599
38603
|
case "node":
|
|
@@ -38766,7 +38770,7 @@ The conflicting element is` + (po(N.element) ? " " : " not ") + "already in the
|
|
|
38766
38770
|
const a = UW(t), c = iN(t, s) ? "selection" : "point";
|
|
38767
38771
|
if (ua(a)) {
|
|
38768
38772
|
const d = uN(t, s);
|
|
38769
|
-
return Kw(
|
|
38773
|
+
return Kw(Ae.fromDom(d), a) ? "node" : c;
|
|
38770
38774
|
} else
|
|
38771
38775
|
return c;
|
|
38772
38776
|
}, rZ = (t, s, a) => {
|
|
@@ -39218,7 +39222,7 @@ The conflicting element is` + (po(N.element) ? " " : " not ") + "already in the
|
|
|
39218
39222
|
}), W = p1(N), X = p1(H), ue = Tl(W.asSpec()), $e = Tl(X.asSpec()), xe = (vt, At, Wn, Zt) => {
|
|
39219
39223
|
const Dn = At.dom.getBoundingClientRect();
|
|
39220
39224
|
Co(vt.element, "display");
|
|
39221
|
-
const _n = Hl(
|
|
39225
|
+
const _n = Hl(Ae.fromDom(t.getBody())).dom.innerHeight, Yo = Wn(Dn), pn = Zt(Dn, _n);
|
|
39222
39226
|
(Yo || pn) && Kt(vt.element, "display", "none");
|
|
39223
39227
|
}, be = (vt, At, Wn, Zt) => {
|
|
39224
39228
|
const Dn = Wn(At);
|
|
@@ -39319,7 +39323,7 @@ The conflicting element is` + (po(N.element) ? " " : " not ") + "already in the
|
|
|
39319
39323
|
const g = { height: Yk(c + s.top, Lv(t), q3(t)) };
|
|
39320
39324
|
return a === b1.Both && (g.width = Yk(d + s.left, G3(t), YS(t))), g;
|
|
39321
39325
|
}, wN = (t, s, a) => {
|
|
39322
|
-
const c =
|
|
39326
|
+
const c = Ae.fromDom(t.getContainer()), d = LZ(t, s, a, Us(c), Ur(c));
|
|
39323
39327
|
ds(d, (g, p) => {
|
|
39324
39328
|
Ls(g) && Kt(c, p, Kk(g));
|
|
39325
39329
|
}), G$(t);
|
|
@@ -40935,13 +40939,13 @@ The conflicting element is` + (po(N.element) ? " " : " not ") + "already in the
|
|
|
40935
40939
|
return A.none();
|
|
40936
40940
|
}
|
|
40937
40941
|
}, C1 = (t, s) => {
|
|
40938
|
-
const a =
|
|
40942
|
+
const a = Ae.fromDom(s.element.dom);
|
|
40939
40943
|
ra(a, fo) || (ki(a, [
|
|
40940
40944
|
sr,
|
|
40941
40945
|
ii
|
|
40942
40946
|
]), Qa(t).each((c) => Nr(a, c)));
|
|
40943
40947
|
}, Ed = (t, s) => {
|
|
40944
|
-
const a =
|
|
40948
|
+
const a = Ae.fromDom(t.element.dom), c = up(a), d = qe(c, (g) => g === sr || g === ii).or(Qa(s));
|
|
40945
40949
|
Ky(a, [
|
|
40946
40950
|
fo,
|
|
40947
40951
|
...d.toArray()
|
|
@@ -41366,7 +41370,7 @@ The conflicting element is` + (po(N.element) ? " " : " not ") + "already in the
|
|
|
41366
41370
|
}),
|
|
41367
41371
|
Un("messages", [
|
|
41368
41372
|
Cs(() => {
|
|
41369
|
-
const Oe = Jl(
|
|
41373
|
+
const Oe = Jl(Ae.fromDom(window), "message", (dt) => {
|
|
41370
41374
|
if (N.isSameOrigin(new LN(dt.raw.origin))) {
|
|
41371
41375
|
const Xe = dt.raw.data;
|
|
41372
41376
|
NG(Xe) ? fq(a, be, Xe) : mq(Xe) && t.onMessage(be, Xe);
|
|
@@ -41475,7 +41479,7 @@ The conflicting element is` + (po(N.element) ? " " : " not ") + "already in the
|
|
|
41475
41479
|
} };
|
|
41476
41480
|
}, IG = (t, s) => cs(Xs("data", s, t)), LG = (t) => Kw(t, ".tox-alert-dialog") || Kw(t, ".tox-confirm-dialog"), bq = (t, s, a) => s && a ? [] : [or.config({
|
|
41477
41481
|
contextual: {
|
|
41478
|
-
lazyContext: () => A.some(Ys(
|
|
41482
|
+
lazyContext: () => A.some(Ys(Ae.fromDom(t.getContentAreaContainer()))),
|
|
41479
41483
|
fadeInClass: "tox-dialog-dock-fadein",
|
|
41480
41484
|
fadeOutClass: "tox-dialog-dock-fadeout",
|
|
41481
41485
|
transitionClass: "tox-dialog-dock-transition"
|
|
@@ -41558,7 +41562,7 @@ The conflicting element is` + (po(N.element) ? " " : " not ") + "already in the
|
|
|
41558
41562
|
}));
|
|
41559
41563
|
vt.set(_n);
|
|
41560
41564
|
const Yo = () => {
|
|
41561
|
-
const pn = s.inline ? Vs() :
|
|
41565
|
+
const pn = s.inline ? Vs() : Ae.fromDom(s.getContainer()), Ro = Ys(pn);
|
|
41562
41566
|
return A.some(Ro);
|
|
41563
41567
|
};
|
|
41564
41568
|
return dr.showWithinBounds(_n, Ti(Dn.dialog), { anchor: ue }, Yo), (!a || !At) && (or.refresh(_n), s.on("ResizeEditor", Zt)), Dn.instanceApi.setData(Ge), mn.focusIn(Dn.dialog), Dn.instanceApi;
|
|
@@ -41591,7 +41595,7 @@ The conflicting element is` + (po(N.element) ? " " : " not ") + "already in the
|
|
|
41591
41595
|
})]),
|
|
41592
41596
|
or.config({
|
|
41593
41597
|
contextual: {
|
|
41594
|
-
lazyContext: () => A.some(Ys(
|
|
41598
|
+
lazyContext: () => A.some(Ys(Ae.fromDom(s.getContentAreaContainer()))),
|
|
41595
41599
|
fadeInClass: "tox-dialog-dock-fadein",
|
|
41596
41600
|
fadeOutClass: "tox-dialog-dock-fadeout",
|
|
41597
41601
|
transitionClass: "tox-dialog-dock-transition"
|
|
@@ -41616,7 +41620,7 @@ The conflicting element is` + (po(N.element) ? " " : " not ") + "already in the
|
|
|
41616
41620
|
}));
|
|
41617
41621
|
vt.set(_n);
|
|
41618
41622
|
const Yo = () => t.backstages.popup.shared.getSink().toOptional().bind((pn) => {
|
|
41619
|
-
const Ro = s1(s, pn.element), Dt = 15, Qt = Ro.map((vn) => ty(vn)).getOr(na()), On = Ys(
|
|
41623
|
+
const Ro = s1(s, pn.element), Dt = 15, Qt = Ro.map((vn) => ty(vn)).getOr(na()), On = Ys(Ae.fromDom(s.getContentAreaContainer())), Pn = Hg(On, Qt);
|
|
41620
41624
|
return A.some(Bs(Pn.x, Pn.y, Pn.width, Pn.height - Dt));
|
|
41621
41625
|
});
|
|
41622
41626
|
return dr.showWithinBounds(_n, Ti(Dn.dialog), { anchor: ue }, Yo), or.refresh(_n), s.on("ResizeEditor ScrollWindow ElementScroll ResizeWindow", Zt), Dn.instanceApi.setData(Ge), mn.focusIn(Dn.dialog), Dn.instanceApi;
|
|
@@ -41678,7 +41682,7 @@ The conflicting element is` + (po(N.element) ? " " : " not ") + "already in the
|
|
|
41678
41682
|
}, Q = (i) => {
|
|
41679
41683
|
const m = typeof i;
|
|
41680
41684
|
return i === null ? "null" : m === "object" && Array.isArray(i) ? "array" : m === "object" && ie(i, String, (h, v) => v.isPrototypeOf(h)) ? "string" : m;
|
|
41681
|
-
}, ke = (i) => (m) => Q(m) === i, se = (i) => (m) => typeof m === i, j = (i) => (m) => i === m,
|
|
41685
|
+
}, ke = (i) => (m) => Q(m) === i, se = (i) => (m) => typeof m === i, j = (i) => (m) => i === m, Ee = ke("string"), ee = ke("object"), Be = ke("array"), lt = j(null), _t = se("boolean"), yn = j(void 0), Et = (i) => i == null, io = (i) => !Et(i), lo = se("function"), eo = se("number"), Ot = () => {
|
|
41682
41686
|
}, Ls = (i, m) => (...h) => i(m.apply(null, h)), un = (i, m) => (h) => i(m(h)), fe = (i) => () => i, kt = (i) => i, ia = (i, m) => i === m;
|
|
41683
41687
|
function oo(i, ...m) {
|
|
41684
41688
|
return (...h) => {
|
|
@@ -41912,7 +41916,7 @@ The conflicting element is` + (po(N.element) ? " " : " not ") + "already in the
|
|
|
41912
41916
|
const m = wr("ownerDocument.defaultView", i);
|
|
41913
41917
|
return ee(i) && (Gi(m).prototype.isPrototypeOf(i) || /^HTML\w*Element$/.test(es(i).constructor.name));
|
|
41914
41918
|
}, xo = 8, Ar = 9, Da = 11, Nl = 1, Oa = 3, ts = (i) => i.dom.nodeName.toLowerCase(), tl = (i) => i.dom.nodeType, vl = (i) => (m) => tl(m) === i, Xo = (i) => tl(i) === xo || ts(i) === "#comment", hn = (i) => Dr(i) && bt(i.dom), Dr = vl(Nl), Il = vl(Oa), Fc = vl(Ar), mi = vl(Da), xr = (i) => (m) => Dr(m) && ts(m) === i, fr = (i, m, h) => {
|
|
41915
|
-
if (
|
|
41919
|
+
if (Ee(h) || _t(h) || eo(h))
|
|
41916
41920
|
i.setAttribute(m, h + "");
|
|
41917
41921
|
else
|
|
41918
41922
|
throw console.error("Invalid call to Attribute.set. Key ", m, ":: Value ", h, ":: Element ", i), new Error("Attribute value was not simple");
|
|
@@ -41953,7 +41957,7 @@ The conflicting element is` + (po(N.element) ? " " : " not ") + "already in the
|
|
|
41953
41957
|
if (i == null)
|
|
41954
41958
|
throw new Error("Node cannot be null or undefined");
|
|
41955
41959
|
return { dom: i };
|
|
41956
|
-
},
|
|
41960
|
+
}, Ae = {
|
|
41957
41961
|
fromHtml: sc,
|
|
41958
41962
|
fromTag: Hc,
|
|
41959
41963
|
fromText: rc,
|
|
@@ -41977,27 +41981,27 @@ The conflicting element is` + (po(N.element) ? " " : " not ") + "already in the
|
|
|
41977
41981
|
}
|
|
41978
41982
|
}, Fl = (i) => i.nodeType !== Nl && i.nodeType !== Ar && i.nodeType !== Da || i.childElementCount === 0, ju = (i, m) => {
|
|
41979
41983
|
const h = m === void 0 ? document : m.dom;
|
|
41980
|
-
return Fl(h) ? [] : Ct(h.querySelectorAll(i),
|
|
41984
|
+
return Fl(h) ? [] : Ct(h.querySelectorAll(i), Ae.fromDom);
|
|
41981
41985
|
}, Ki = (i, m) => {
|
|
41982
41986
|
const h = m === void 0 ? document : m.dom;
|
|
41983
|
-
return Fl(h) ? he.none() : he.from(h.querySelector(i)).map(
|
|
41987
|
+
return Fl(h) ? he.none() : he.from(h.querySelector(i)).map(Ae.fromDom);
|
|
41984
41988
|
}, ns = (i, m) => i.dom === m.dom, km = (i, m) => {
|
|
41985
41989
|
const h = i.dom, v = m.dom;
|
|
41986
41990
|
return h === v ? !1 : h.contains(v);
|
|
41987
|
-
}, $d = Yr, nl = (i) =>
|
|
41991
|
+
}, $d = Yr, nl = (i) => Ae.fromDom(i.dom.ownerDocument), Yi = (i) => Fc(i) ? i : nl(i), ys = (i) => Ae.fromDom(Yi(i).dom.documentElement), Ts = (i) => Ae.fromDom(Yi(i).dom.defaultView), Ua = (i) => he.from(i.dom.parentNode).map(Ae.fromDom), Ra = (i) => he.from(i.dom.parentElement).map(Ae.fromDom), wc = (i, m) => {
|
|
41988
41992
|
const h = lo(m) ? m : In;
|
|
41989
41993
|
let v = i.dom;
|
|
41990
41994
|
const _ = [];
|
|
41991
41995
|
for (; v.parentNode !== null && v.parentNode !== void 0; ) {
|
|
41992
|
-
const O = v.parentNode, L =
|
|
41996
|
+
const O = v.parentNode, L = Ae.fromDom(O);
|
|
41993
41997
|
if (_.push(L), h(L) === !0)
|
|
41994
41998
|
break;
|
|
41995
41999
|
v = O;
|
|
41996
42000
|
}
|
|
41997
42001
|
return _;
|
|
41998
|
-
}, gi = (i) => he.from(i.dom.previousSibling).map(
|
|
42002
|
+
}, gi = (i) => he.from(i.dom.previousSibling).map(Ae.fromDom), xc = (i) => he.from(i.dom.nextSibling).map(Ae.fromDom), Po = (i) => Ct(i.dom.childNodes, Ae.fromDom), ea = (i, m) => {
|
|
41999
42003
|
const h = i.dom.childNodes;
|
|
42000
|
-
return he.from(h[m]).map(
|
|
42004
|
+
return he.from(h[m]).map(Ae.fromDom);
|
|
42001
42005
|
}, da = (i) => ea(i, 0), Vc = (i, m) => {
|
|
42002
42006
|
Ua(i).each((v) => {
|
|
42003
42007
|
v.dom.insertBefore(m.dom, i.dom);
|
|
@@ -42045,8 +42049,8 @@ The conflicting element is` + (po(N.element) ? " " : " not ") + "already in the
|
|
|
42045
42049
|
}, wl = (i) => {
|
|
42046
42050
|
const m = Po(i);
|
|
42047
42051
|
m.length > 0 && zo(i, m), ar(i);
|
|
42048
|
-
}, Hl = (i, m) =>
|
|
42049
|
-
const h =
|
|
42052
|
+
}, Hl = (i, m) => Ae.fromDom(i.dom.cloneNode(m)), ta = (i) => Hl(i, !1), Vl = (i) => Hl(i, !0), zl = (i, m) => {
|
|
42053
|
+
const h = Ae.fromTag(m), v = Or(i);
|
|
42050
42054
|
return yl(h, v), h;
|
|
42051
42055
|
}, Gu = (i, m) => {
|
|
42052
42056
|
const h = zl(i, m), v = Po(Vl(i));
|
|
@@ -42113,12 +42117,12 @@ The conflicting element is` + (po(N.element) ? " " : " not ") + "already in the
|
|
|
42113
42117
|
}), as = (i, m) => ({
|
|
42114
42118
|
element: i,
|
|
42115
42119
|
columns: m
|
|
42116
|
-
}), jo = (i) => mi(i) && io(i.dom.host), ws = lo(Element.prototype.attachShadow) && lo(Node.prototype.getRootNode), po = fe(ws), Vs = ws ? (i) =>
|
|
42120
|
+
}), jo = (i) => mi(i) && io(i.dom.host), ws = lo(Element.prototype.attachShadow) && lo(Node.prototype.getRootNode), po = fe(ws), Vs = ws ? (i) => Ae.fromDom(i.dom.getRootNode()) : Yi, Pa = (i) => {
|
|
42117
42121
|
const m = Vs(i);
|
|
42118
42122
|
return jo(m) ? he.some(m) : he.none();
|
|
42119
|
-
}, vu = (i) =>
|
|
42123
|
+
}, vu = (i) => Ae.fromDom(i.dom.host), It = (i) => {
|
|
42120
42124
|
if (po() && io(i.target)) {
|
|
42121
|
-
const m =
|
|
42125
|
+
const m = Ae.fromDom(i.target);
|
|
42122
42126
|
if (Dr(m) && Ku(m) && i.composed && i.composedPath) {
|
|
42123
42127
|
const h = i.composedPath();
|
|
42124
42128
|
if (h)
|
|
@@ -42131,12 +42135,12 @@ The conflicting element is` + (po(N.element) ? " " : " not ") + "already in the
|
|
|
42131
42135
|
if (m == null || m.ownerDocument === null)
|
|
42132
42136
|
return !1;
|
|
42133
42137
|
const h = m.ownerDocument;
|
|
42134
|
-
return Pa(
|
|
42135
|
-
}, I = () => Y(
|
|
42138
|
+
return Pa(Ae.fromDom(m)).fold(() => h.body.contains(m), un(js, vu));
|
|
42139
|
+
}, I = () => Y(Ae.fromDom(document)), Y = (i) => {
|
|
42136
42140
|
const m = i.dom.body;
|
|
42137
42141
|
if (m == null)
|
|
42138
42142
|
throw new Error("Body is not available yet");
|
|
42139
|
-
return
|
|
42143
|
+
return Ae.fromDom(m);
|
|
42140
42144
|
}, ae = (i, m, h) => ho(wc(i, h), m), Fe = (i, m) => ho(Po(i), m), $t = (i, m) => {
|
|
42141
42145
|
let h = [];
|
|
42142
42146
|
return Me(Po(i), (v) => {
|
|
@@ -42149,7 +42153,7 @@ The conflicting element is` + (po(N.element) ? " " : " not ") + "already in the
|
|
|
42149
42153
|
const _ = lo(h) ? h : In;
|
|
42150
42154
|
for (; v.parentNode; ) {
|
|
42151
42155
|
v = v.parentNode;
|
|
42152
|
-
const O =
|
|
42156
|
+
const O = Ae.fromDom(v);
|
|
42153
42157
|
if (m(O))
|
|
42154
42158
|
return he.some(O);
|
|
42155
42159
|
if (_(O))
|
|
@@ -42157,12 +42161,12 @@ The conflicting element is` + (po(N.element) ? " " : " not ") + "already in the
|
|
|
42157
42161
|
}
|
|
42158
42162
|
return he.none();
|
|
42159
42163
|
}, Wa = (i, m, h) => ct((_, O) => O(_), ls, i, m, h), zs = (i, m) => {
|
|
42160
|
-
const h = (_) => m(
|
|
42161
|
-
return z(i.dom.childNodes, h).map(
|
|
42164
|
+
const h = (_) => m(Ae.fromDom(_));
|
|
42165
|
+
return z(i.dom.childNodes, h).map(Ae.fromDom);
|
|
42162
42166
|
}, Cr = (i, m) => {
|
|
42163
42167
|
const h = (v) => {
|
|
42164
42168
|
for (let _ = 0; _ < v.childNodes.length; _++) {
|
|
42165
|
-
const O =
|
|
42169
|
+
const O = Ae.fromDom(v.childNodes[_]);
|
|
42166
42170
|
if (m(O))
|
|
42167
42171
|
return he.some(O);
|
|
42168
42172
|
const L = h(v.childNodes[_]);
|
|
@@ -42186,7 +42190,7 @@ The conflicting element is` + (po(N.element) ? " " : " not ") + "already in the
|
|
|
42186
42190
|
const m = parseFloat(i);
|
|
42187
42191
|
return isNaN(m) ? he.none() : he.some(m);
|
|
42188
42192
|
}, Ur = (i) => i.style !== void 0 && lo(i.style.getPropertyValue), ga = (i, m, h) => {
|
|
42189
|
-
if (!
|
|
42193
|
+
if (!Ee(h))
|
|
42190
42194
|
throw console.error("Invalid call to CSS.set. Property ", m, ":: Value ", h, ":: Element ", i), new Error("CSS value must be a string: " + h);
|
|
42191
42195
|
Ur(i) && i.style.setProperty(m, h);
|
|
42192
42196
|
}, Fh = (i, m) => {
|
|
@@ -42829,8 +42833,8 @@ The conflicting element is` + (po(N.element) ? " " : " not ") + "already in the
|
|
|
42829
42833
|
}
|
|
42830
42834
|
}), Du(_, O, L, Z, te, de);
|
|
42831
42835
|
}, x = (i, m, h) => {
|
|
42832
|
-
const v = i[h].element, _ =
|
|
42833
|
-
os(_,
|
|
42836
|
+
const v = i[h].element, _ = Ae.fromTag("td");
|
|
42837
|
+
os(_, Ae.fromTag("br")), (m ? os : Hs)(v, _);
|
|
42834
42838
|
}, T = (i, m, h, v) => {
|
|
42835
42839
|
const _ = ho(i, (Z) => Z.section !== "colgroup"), O = m.grid.columns, L = m.grid.rows;
|
|
42836
42840
|
for (let Z = 0; Z < L; Z++) {
|
|
@@ -42894,9 +42898,9 @@ The conflicting element is` + (po(N.element) ? " " : " not ") + "already in the
|
|
|
42894
42898
|
"col"
|
|
42895
42899
|
]
|
|
42896
42900
|
}, Im = (i) => () => {
|
|
42897
|
-
const m =
|
|
42898
|
-
return os(m,
|
|
42899
|
-
}, Yg = (i) => () =>
|
|
42901
|
+
const m = Ae.fromTag("td", i.dom);
|
|
42902
|
+
return os(m, Ae.fromTag("br", i.dom)), m;
|
|
42903
|
+
}, Yg = (i) => () => Ae.fromTag("col", i.dom), jr = (i) => () => Ae.fromTag("colgroup", i.dom), Xc = (i) => () => Ae.fromTag("tr", i.dom), Rf = (i, m, h) => {
|
|
42900
42904
|
const v = Gu(i, m);
|
|
42901
42905
|
return Vo(h, (_, O) => {
|
|
42902
42906
|
_ === null ? Fs(v, O) : Zs(v, O, _);
|
|
@@ -42913,7 +42917,7 @@ The conflicting element is` + (po(N.element) ? " " : " not ") + "already in the
|
|
|
42913
42917
|
const v = (L, Z) => {
|
|
42914
42918
|
Sf(L.element, Z), lc(Z, "height"), L.colspan !== 1 && lc(Z, "width");
|
|
42915
42919
|
}, _ = (L) => {
|
|
42916
|
-
const Z =
|
|
42920
|
+
const Z = Ae.fromTag(ts(L.element), m.dom), te = h.getOr([
|
|
42917
42921
|
"strong",
|
|
42918
42922
|
"em",
|
|
42919
42923
|
"b",
|
|
@@ -42929,11 +42933,11 @@ The conflicting element is` + (po(N.element) ? " " : " not ") + "already in the
|
|
|
42929
42933
|
"p",
|
|
42930
42934
|
"div"
|
|
42931
42935
|
]), de = te.length > 0 ? No(L.element, Z, te) : Z;
|
|
42932
|
-
return os(de,
|
|
42936
|
+
return os(de, Ae.fromTag("br")), v(L, Z), uo(L.element, Z), i(L.element, Z), Z;
|
|
42933
42937
|
};
|
|
42934
42938
|
return {
|
|
42935
42939
|
col: (L) => {
|
|
42936
|
-
const Z =
|
|
42940
|
+
const Z = Ae.fromTag(ts(L.element), m.dom);
|
|
42937
42941
|
return v(L, Z), i(L.element, Z), Z;
|
|
42938
42942
|
},
|
|
42939
42943
|
colgroup: jr(m),
|
|
@@ -42953,11 +42957,11 @@ The conflicting element is` + (po(N.element) ? " " : " not ") + "already in the
|
|
|
42953
42957
|
gap: Im(i)
|
|
42954
42958
|
}), D1 = (i, m) => {
|
|
42955
42959
|
const v = document.createElement("div");
|
|
42956
|
-
return v.innerHTML = i, Po(
|
|
42957
|
-
}, rd = (i) => Ct(i,
|
|
42960
|
+
return v.innerHTML = i, Po(Ae.fromDom(v));
|
|
42961
|
+
}, rd = (i) => Ct(i, Ae.fromDom), ul = (i) => (m) => m.options.get(i), Fm = "100%", Ou = (i) => {
|
|
42958
42962
|
var m;
|
|
42959
42963
|
const h = i.dom, v = (m = h.getParent(i.selection.getStart(), h.isBlock)) !== null && m !== void 0 ? m : i.getBody();
|
|
42960
|
-
return Tf(
|
|
42964
|
+
return Tf(Ae.fromDom(v)) + "px";
|
|
42961
42965
|
}, $f = (i, m) => Qg(i) || !Jc(i) ? m : Mf(i) ? {
|
|
42962
42966
|
...m,
|
|
42963
42967
|
width: Ou(i)
|
|
@@ -43035,11 +43039,11 @@ The conflicting element is` + (po(N.element) ? " " : " not ") + "already in the
|
|
|
43035
43039
|
}, My = (i) => {
|
|
43036
43040
|
const m = i.options, h = m.get("table_default_styles");
|
|
43037
43041
|
return m.isSet("table_default_styles") ? h : $f(i, h);
|
|
43038
|
-
}, O1 = ul("table_use_colgroups"), wb = (i) => Ps(i, "[contenteditable]"), Pf = (i, m = !1) => js(i) ? i.dom.isContentEditable : wb(i).fold(fe(m), (h) => R1(h) === "true"), R1 = (i) => i.dom.contentEditable, xb = (i) =>
|
|
43042
|
+
}, O1 = ul("table_use_colgroups"), wb = (i) => Ps(i, "[contenteditable]"), Pf = (i, m = !1) => js(i) ? i.dom.isContentEditable : wb(i).fold(fe(m), (h) => R1(h) === "true"), R1 = (i) => i.dom.contentEditable, xb = (i) => Ae.fromDom(i.getBody()), Ud = (i) => (m) => ns(m, xb(i)), cd = (i) => {
|
|
43039
43043
|
Fs(i, "data-mce-style");
|
|
43040
43044
|
const m = (h) => Fs(h, "data-mce-style");
|
|
43041
43045
|
Me(ol(i), m), Me(Am(i), m), Me(Wc(i), m);
|
|
43042
|
-
}, _i = (i) =>
|
|
43046
|
+
}, _i = (i) => Ae.fromDom(i.selection.getStart()), Bf = (i) => i.getBoundingClientRect().width, Nf = (i) => i.getBoundingClientRect().height, Jx = (i, m) => {
|
|
43043
43047
|
const h = i.dom.getStyle(m, "width") || i.dom.getAttrib(m, "width");
|
|
43044
43048
|
return he.from(h).filter(Tm);
|
|
43045
43049
|
}, Cb = (i) => /^(\d+(\.\d+)?)%$/.test(i), $1 = (i) => /^(\d+(\.\d+)?)px$/.test(i), Sb = (i) => Wa(i, xr("table")).exists(Pf), Qx = (i, m) => {
|
|
@@ -43110,7 +43114,7 @@ The conflicting element is` + (po(N.element) ? " " : " not ") + "already in the
|
|
|
43110
43114
|
"pre",
|
|
43111
43115
|
"address"
|
|
43112
43116
|
], Je = () => {
|
|
43113
|
-
const i = (de) =>
|
|
43117
|
+
const i = (de) => Ae.fromDom(de.dom.cloneNode(!1)), m = (de) => Yi(de).dom, h = (de) => Dr(de) ? ts(de) === "body" ? !0 : go(Iy, ts(de)) : !1, v = (de) => Dr(de) ? go([
|
|
43114
43118
|
"br",
|
|
43115
43119
|
"img",
|
|
43116
43120
|
"hr",
|
|
@@ -43169,9 +43173,9 @@ The conflicting element is` + (po(N.element) ? " " : " not ") + "already in the
|
|
|
43169
43173
|
remove: ar
|
|
43170
43174
|
}),
|
|
43171
43175
|
create: fe({
|
|
43172
|
-
nu:
|
|
43176
|
+
nu: Ae.fromTag,
|
|
43173
43177
|
clone: i,
|
|
43174
|
-
text:
|
|
43178
|
+
text: Ae.fromText
|
|
43175
43179
|
}),
|
|
43176
43180
|
query: fe({
|
|
43177
43181
|
comparePosition: O,
|
|
@@ -43319,7 +43323,7 @@ The conflicting element is` + (po(N.element) ? " " : " not ") + "already in the
|
|
|
43319
43323
|
const L = ho(D1(h.content), (te) => ts(te) !== "meta"), Z = xr("table");
|
|
43320
43324
|
if (pr(i) && L.length === 1 && Z(L[0])) {
|
|
43321
43325
|
h.preventDefault();
|
|
43322
|
-
const te =
|
|
43326
|
+
const te = Ae.fromDom(i.getDoc()), de = il(te), De = I1(_, L[0], de);
|
|
43323
43327
|
m.pasteCells(O, De).each(() => {
|
|
43324
43328
|
i.focus();
|
|
43325
43329
|
});
|
|
@@ -43481,7 +43485,7 @@ The conflicting element is` + (po(N.element) ? " " : " not ") + "already in the
|
|
|
43481
43485
|
wn(Kt(i, m)).fold(() => Hs(i, h), (v) => ma(v, h));
|
|
43482
43486
|
}, cp = (i, m) => {
|
|
43483
43487
|
const h = Co(i, m).getOrThunk(() => {
|
|
43484
|
-
const v =
|
|
43488
|
+
const v = Ae.fromTag(m, nl(i).dom);
|
|
43485
43489
|
return m === "thead" ? qy(i, "caption,colgroup", v) : m === "colgroup" ? qy(i, "caption", v) : os(i, v), v;
|
|
43486
43490
|
});
|
|
43487
43491
|
return fa(h), h;
|
|
@@ -44093,13 +44097,13 @@ Required: ` + m.join(", "));
|
|
|
44093
44097
|
], i.property().name(m)), Js = Je(), Gb = (i) => Ei(Js, i), Km = (i) => vp(Js, i), s2 = (i) => o2(Js, i), qb = (i) => {
|
|
44094
44098
|
const m = xr("br"), h = (te) => Wo(te, (de) => m(de) || Il(de) && an(de).trim().length === 0), v = (te) => ts(te) === "li" || ls(te, Km).isSome(), _ = (te) => xc(te).map((de) => Gb(de) ? !0 : s2(de) ? ts(de) !== "img" : !1).getOr(!1), O = (te) => cu(te).bind((de) => {
|
|
44095
44099
|
const De = _(de);
|
|
44096
|
-
return Ua(de).map((rt) => De === !0 || v(rt) || m(de) || Gb(rt) && !ns(te, rt) ? [] : [
|
|
44100
|
+
return Ua(de).map((rt) => De === !0 || v(rt) || m(de) || Gb(rt) && !ns(te, rt) ? [] : [Ae.fromTag("br")]);
|
|
44097
44101
|
}).getOr([]), Z = (() => {
|
|
44098
44102
|
const te = rs(i, (de) => {
|
|
44099
44103
|
const De = Po(de);
|
|
44100
44104
|
return h(De) ? [] : De.concat(O(de));
|
|
44101
44105
|
});
|
|
44102
|
-
return te.length === 0 ? [
|
|
44106
|
+
return te.length === 0 ? [Ae.fromTag("br")] : te;
|
|
44103
44107
|
})();
|
|
44104
44108
|
fa(i[0]), Rr(i[0], Z);
|
|
44105
44109
|
}, r2 = (i) => Pf(i, !0), j1 = (i) => {
|
|
@@ -44279,7 +44283,7 @@ Required: ` + m.join(", "));
|
|
|
44279
44283
|
return Rl.setStart(sm.element.dom, sm.offset), Rl.setEnd(sm.element.dom, sm.offset), i.selection.setRng(Rl), h.clearSelectedCells(pc.dom), he.some(Rl);
|
|
44280
44284
|
}), De = (pc, hw, D0, sm) => (Rl, O0, ES = !1) => {
|
|
44281
44285
|
cd(Rl);
|
|
44282
|
-
const AS =
|
|
44286
|
+
const AS = Ae.fromDom(i.getDoc()), Kp = wa(D0, AS, L), DS = {
|
|
44283
44287
|
sizing: Jl(i, Rl),
|
|
44284
44288
|
resize: Br(i) ? rC() : jy(),
|
|
44285
44289
|
section: te(Rl)
|
|
@@ -44333,7 +44337,7 @@ Required: ` + m.join(", "));
|
|
|
44333
44337
|
const v = ho(Kn.justColumns(i), C2(m, h)), _ = Ct(v, (L) => {
|
|
44334
44338
|
const Z = Vl(L.element);
|
|
44335
44339
|
return x2(Z, "span", h - m), Z;
|
|
44336
|
-
}), O =
|
|
44340
|
+
}), O = Ae.fromTag("colgroup");
|
|
44337
44341
|
return Rr(O, _), [O];
|
|
44338
44342
|
} else
|
|
44339
44343
|
return [];
|
|
@@ -44341,7 +44345,7 @@ Required: ` + m.join(", "));
|
|
|
44341
44345
|
const _ = ho(v.cells, C2(m, h)), O = Ct(_, (Z) => {
|
|
44342
44346
|
const te = Vl(Z.element);
|
|
44343
44347
|
return x2(te, "colspan", h - m), te;
|
|
44344
|
-
}), L =
|
|
44348
|
+
}), L = Ae.fromTag("tr");
|
|
44345
44349
|
return Rr(L, O), L;
|
|
44346
44350
|
}), iT = (i, m) => {
|
|
44347
44351
|
const h = Kn.fromTable(i);
|
|
@@ -44462,32 +44466,32 @@ Required: ` + m.join(", "));
|
|
|
44462
44466
|
},
|
|
44463
44467
|
attributes: { border: "1" },
|
|
44464
44468
|
colGroups: !1
|
|
44465
|
-
}, tv = () =>
|
|
44466
|
-
const _ =
|
|
44469
|
+
}, tv = () => Ae.fromTag("th"), hT = () => Ae.fromTag("td"), pT = () => Ae.fromTag("col"), IC = (i, m, h, v) => {
|
|
44470
|
+
const _ = Ae.fromTag("tr");
|
|
44467
44471
|
for (let O = 0; O < i; O++) {
|
|
44468
44472
|
const L = v < m || O < h ? tv() : hT();
|
|
44469
|
-
O < h && Zs(L, "scope", "row"), v < m && Zs(L, "scope", "col"), os(L,
|
|
44473
|
+
O < h && Zs(L, "scope", "row"), v < m && Zs(L, "scope", "col"), os(L, Ae.fromTag("br")), os(_, L);
|
|
44470
44474
|
}
|
|
44471
44475
|
return _;
|
|
44472
44476
|
}, bT = (i) => {
|
|
44473
|
-
const m =
|
|
44477
|
+
const m = Ae.fromTag("colgroup");
|
|
44474
44478
|
return Ht(i, () => os(m, pT())), m;
|
|
44475
44479
|
}, k2 = (i, m, h, v) => Ht(i, (_) => IC(m, h, v, _)), vT = (i, m, h, v, _, O = jf) => {
|
|
44476
|
-
const L =
|
|
44480
|
+
const L = Ae.fromTag("table"), Z = _ !== "cells";
|
|
44477
44481
|
Ba(L, O.styles), yl(L, O.attributes), O.colGroups && os(L, bT(m));
|
|
44478
44482
|
const te = Math.min(i, h);
|
|
44479
44483
|
if (Z && h > 0) {
|
|
44480
|
-
const Pt =
|
|
44484
|
+
const Pt = Ae.fromTag("thead");
|
|
44481
44485
|
os(L, Pt);
|
|
44482
44486
|
const Lt = k2(h, m, _ === "sectionCells" ? te : 0, v);
|
|
44483
44487
|
Rr(Pt, Lt);
|
|
44484
44488
|
}
|
|
44485
|
-
const de =
|
|
44489
|
+
const de = Ae.fromTag("tbody");
|
|
44486
44490
|
os(L, de);
|
|
44487
44491
|
const De = Z ? i - te : i, Bt = k2(De, m, Z ? 0 : h, v);
|
|
44488
44492
|
return Rr(de, Bt), L;
|
|
44489
44493
|
}, yT = (i) => i.dom.innerHTML, LC = (i) => {
|
|
44490
|
-
const m =
|
|
44494
|
+
const m = Ae.fromTag("div"), h = Ae.fromDom(i.dom.cloneNode(!0));
|
|
44491
44495
|
return os(m, h), yT(m);
|
|
44492
44496
|
}, wT = (i, m) => {
|
|
44493
44497
|
i.selection.select(m.dom, !0), i.selection.collapse(!0);
|
|
@@ -44499,7 +44503,7 @@ Required: ` + m.join(", "));
|
|
|
44499
44503
|
v2(i, v.dom);
|
|
44500
44504
|
});
|
|
44501
44505
|
});
|
|
44502
|
-
}, nv = (i) =>
|
|
44506
|
+
}, nv = (i) => Ee(i) && i.indexOf("%") !== -1, CT = (i, m, h, v, _) => {
|
|
44503
44507
|
const O = My(i), L = {
|
|
44504
44508
|
styles: O,
|
|
44505
44509
|
attributes: ld(i),
|
|
@@ -44536,7 +44540,7 @@ Required: ` + m.join(", "));
|
|
|
44536
44540
|
}, zC = () => D2(A2), kT = () => ST(A2), R2 = (i) => id(_i(i), Ud(i)).filter(Sb), TT = (i) => L1(_i(i), Ud(i)).filter(Sb), Ep = (i, m) => {
|
|
44537
44541
|
const h = Ud(i), v = () => R2(i).each((Ye) => {
|
|
44538
44542
|
sl(Ye, h).filter(re(h)).each((en) => {
|
|
44539
|
-
const En =
|
|
44543
|
+
const En = Ae.fromText("");
|
|
44540
44544
|
if (ma(en, En), ar(en), i.dom.isEmpty(i.getBody()))
|
|
44541
44545
|
i.setContent(""), i.selection.setCursorLocation();
|
|
44542
44546
|
else {
|
|
@@ -44561,8 +44565,8 @@ Required: ` + m.join(", "));
|
|
|
44561
44565
|
R2(i).each((Ye) => {
|
|
44562
44566
|
sl(Ye, h).each((en) => {
|
|
44563
44567
|
Co(en, "caption").fold(() => {
|
|
44564
|
-
const En =
|
|
44565
|
-
os(En,
|
|
44568
|
+
const En = Ae.fromTag("caption");
|
|
44569
|
+
os(En, Ae.fromText("Caption")), $a(en, En, 0), i.selection.setCursorLocation(En.dom, 0);
|
|
44566
44570
|
}, (En) => {
|
|
44567
44571
|
xr("caption")(Ye) && Ki("td", en).each((jn) => i.selection.setCursorLocation(jn.dom, 0)), ar(En);
|
|
44568
44572
|
}), uh(i, en.dom, ro);
|
|
@@ -44574,7 +44578,7 @@ Required: ` + m.join(", "));
|
|
|
44574
44578
|
const qs = ep(iu(i), En, jn);
|
|
44575
44579
|
Ye(En, qs, en).each(De);
|
|
44576
44580
|
}), Bt = () => L((Ye, en) => {
|
|
44577
|
-
const En = ep(iu(i), Ye, en), jn = wa(Ot,
|
|
44581
|
+
const En = ep(iu(i), Ye, en), jn = wa(Ot, Ae.fromDom(i.getDoc()), he.none());
|
|
44578
44582
|
return uT(Ye, En, jn);
|
|
44579
44583
|
}), Pt = () => L((Ye, en) => {
|
|
44580
44584
|
const En = ep(iu(i), Ye, en);
|
|
@@ -44582,7 +44586,7 @@ Required: ` + m.join(", "));
|
|
|
44582
44586
|
}), Qe = (Ye, en) => en().each((En) => {
|
|
44583
44587
|
const jn = Ct(En, (qs) => Vl(qs));
|
|
44584
44588
|
L((qs, Ta) => {
|
|
44585
|
-
const kr = il(
|
|
44589
|
+
const kr = il(Ae.fromDom(i.getDoc())), Mc = tp(iu(i), Ta, jn, kr);
|
|
44586
44590
|
Ye(qs, Mc).each(De);
|
|
44587
44591
|
});
|
|
44588
44592
|
}), Lt = (Ye) => (en, En) => ji(En, "type").each((jn) => {
|
|
@@ -44635,7 +44639,7 @@ Required: ` + m.join(", "));
|
|
|
44635
44639
|
const jn = ho(iu(i), Sb);
|
|
44636
44640
|
if (jn.length === 0)
|
|
44637
44641
|
return;
|
|
44638
|
-
const qs = yr(en, (Ta, kr) => i.formatter.has(En(kr)) &&
|
|
44642
|
+
const qs = yr(en, (Ta, kr) => i.formatter.has(En(kr)) && Ee(Ta));
|
|
44639
44643
|
yc(qs) || (Vo(qs, (Ta, kr) => {
|
|
44640
44644
|
const Mc = En(kr);
|
|
44641
44645
|
Me(jn, (yh) => {
|
|
@@ -44726,7 +44730,7 @@ Required: ` + m.join(", "));
|
|
|
44726
44730
|
"foffset"
|
|
44727
44731
|
]
|
|
44728
44732
|
}
|
|
44729
|
-
]), P2 = (i, m, h) => m(
|
|
44733
|
+
]), P2 = (i, m, h) => m(Ae.fromDom(h.startContainer), h.startOffset, Ae.fromDom(h.endContainer), h.endOffset), GC = (i, m) => m.match({
|
|
44730
44734
|
domRange: (h) => ({
|
|
44731
44735
|
ltr: fe(h),
|
|
44732
44736
|
rtl: he.none
|
|
@@ -44741,7 +44745,7 @@ Required: ` + m.join(", "));
|
|
|
44741
44745
|
})
|
|
44742
44746
|
}), ka = (i, m) => {
|
|
44743
44747
|
const h = m.ltr();
|
|
44744
|
-
return h.collapsed ? m.rtl().filter((_) => _.collapsed === !1).map((_) => o0.rtl(
|
|
44748
|
+
return h.collapsed ? m.rtl().filter((_) => _.collapsed === !1).map((_) => o0.rtl(Ae.fromDom(_.endContainer), _.endOffset, Ae.fromDom(_.startContainer), _.startOffset)).getOrThunk(() => P2(i, o0.ltr, h)) : P2(i, o0.ltr, h);
|
|
44745
44749
|
}, qC = (i, m) => {
|
|
44746
44750
|
const h = GC(i, m);
|
|
44747
44751
|
return ka(i, h);
|
|
@@ -44766,7 +44770,7 @@ Required: ` + m.join(", "));
|
|
|
44766
44770
|
finish: Ka.on(h, v)
|
|
44767
44771
|
}) }, N2 = (i, m) => {
|
|
44768
44772
|
const h = B2(i, m);
|
|
44769
|
-
return Dp.create(
|
|
44773
|
+
return Dp.create(Ae.fromDom(h.startContainer), h.startOffset, Ae.fromDom(h.endContainer), h.endOffset);
|
|
44770
44774
|
}, s0 = KC.create, av = (i, m, h, v, _, O, L) => ns(h, _) && v === O ? he.none() : Ps(h, "td,th", m).bind((Z) => Ps(_, "td,th", m).bind((te) => Op(i, m, Z, te, L))), Op = (i, m, h, v, _) => ns(h, v) ? he.none() : Ru(h, v, m).bind((O) => {
|
|
44771
44775
|
const L = O.boxes.getOr([]);
|
|
44772
44776
|
return L.length > 1 ? (_(i, L, O.start, O.finish), he.some(Ap.create(he.some(s0(h, 0, h, Fo(h))), !0))) : he.none();
|
|
@@ -44994,7 +44998,7 @@ Required: ` + m.join(", "));
|
|
|
44994
44998
|
]
|
|
44995
44999
|
}
|
|
44996
45000
|
]), ZT = (i) => ef.exact(i.start, i.soffset, i.finish, i.foffset), jT = (i) => i.match({
|
|
44997
|
-
domRange: (m) =>
|
|
45001
|
+
domRange: (m) => Ae.fromDom(m.startContainer),
|
|
44998
45002
|
relative: (m, h) => Ka.getStart(m),
|
|
44999
45003
|
exact: (m, h, v, _) => m
|
|
45000
45004
|
}), lS = ef.domRange, G2 = ef.relative, q2 = ef.exact, K2 = (i) => {
|
|
@@ -45019,8 +45023,8 @@ Required: ` + m.join(", "));
|
|
|
45019
45023
|
var v, _;
|
|
45020
45024
|
return he.from((_ = (v = i.dom).caretRangeFromPoint) === null || _ === void 0 ? void 0 : _.call(v, m, h));
|
|
45021
45025
|
}, Y2 = document.caretPositionFromPoint ? cS : document.caretRangeFromPoint ? f0 : he.none, GT = (i, m, h) => {
|
|
45022
|
-
const v =
|
|
45023
|
-
return Y2(v, m, h).map((_) => Dp.create(
|
|
45026
|
+
const v = Ae.fromDom(i.document);
|
|
45027
|
+
return Y2(v, m, h).map((_) => Dp.create(Ae.fromDom(_.startContainer), _.startOffset, Ae.fromDom(_.endContainer), _.endOffset));
|
|
45024
45028
|
}, g0 = (i, m) => {
|
|
45025
45029
|
const h = ts(i);
|
|
45026
45030
|
return h === "input" ? Ka.after(i) : go([
|
|
@@ -45075,14 +45079,14 @@ Required: ` + m.join(", "));
|
|
|
45075
45079
|
}, Vp = (i) => {
|
|
45076
45080
|
if (i.rangeCount > 0) {
|
|
45077
45081
|
const m = i.getRangeAt(0), h = i.getRangeAt(i.rangeCount - 1);
|
|
45078
|
-
return he.some(Dp.create(
|
|
45082
|
+
return he.some(Dp.create(Ae.fromDom(m.startContainer), m.startOffset, Ae.fromDom(h.endContainer), h.endOffset));
|
|
45079
45083
|
} else
|
|
45080
45084
|
return he.none();
|
|
45081
45085
|
}, iS = (i) => {
|
|
45082
45086
|
if (i.anchorNode === null || i.focusNode === null)
|
|
45083
45087
|
return Vp(i);
|
|
45084
45088
|
{
|
|
45085
|
-
const m =
|
|
45089
|
+
const m = Ae.fromDom(i.anchorNode), h = Ae.fromDom(i.focusNode);
|
|
45086
45090
|
return tf(m, i.anchorOffset, h, i.focusOffset) ? he.some(Dp.create(m, i.anchorOffset, h, i.focusOffset)) : Vp(i);
|
|
45087
45091
|
}
|
|
45088
45092
|
}, p0 = (i, m, h = !0) => {
|
|
@@ -45094,7 +45098,7 @@ Required: ` + m.join(", "));
|
|
|
45094
45098
|
}, bd = (i, m, h) => GT(i, m, h), xv = (i) => {
|
|
45095
45099
|
Gr(i).each((m) => m.removeAllRanges());
|
|
45096
45100
|
}, zp = (i) => ({
|
|
45097
|
-
elementFromPoint: (Ye, en) =>
|
|
45101
|
+
elementFromPoint: (Ye, en) => Ae.fromPoint(Ae.fromDom(i.document), Ye, en),
|
|
45098
45102
|
getRect: (Ye) => Ye.dom.getBoundingClientRect(),
|
|
45099
45103
|
getRangedRect: (Ye, en, En, jn) => {
|
|
45100
45104
|
const qs = tg.exact(Ye, en, En, jn);
|
|
@@ -45131,9 +45135,9 @@ Required: ` + m.join(", "));
|
|
|
45131
45135
|
p0(i, Ye);
|
|
45132
45136
|
},
|
|
45133
45137
|
getInnerHeight: () => i.innerHeight,
|
|
45134
|
-
getScrollY: () => WT(
|
|
45138
|
+
getScrollY: () => WT(Ae.fromDom(i.document)).top,
|
|
45135
45139
|
scrollBy: (Ye, en) => {
|
|
45136
|
-
Hp(Ye, en,
|
|
45140
|
+
Hp(Ye, en, Ae.fromDom(i.document));
|
|
45137
45141
|
}
|
|
45138
45142
|
}), gl = (i, m) => ({
|
|
45139
45143
|
rows: i,
|
|
@@ -45289,7 +45293,7 @@ Required: ` + m.join(", "));
|
|
|
45289
45293
|
kill: O,
|
|
45290
45294
|
raw: L
|
|
45291
45295
|
}), tw = (i) => {
|
|
45292
|
-
const m =
|
|
45296
|
+
const m = Ae.fromDom(It(i).getOr(i.target)), h = () => i.stopPropagation(), v = () => i.preventDefault(), _ = Ls(v, h);
|
|
45293
45297
|
return bS(m, i.clientX, i.clientY, h, v, _, i);
|
|
45294
45298
|
}, nw = (i, m) => (h) => {
|
|
45295
45299
|
i(h) && m(tw(h));
|
|
@@ -45298,16 +45302,16 @@ Required: ` + m.join(", "));
|
|
|
45298
45302
|
return i.dom.addEventListener(m, O, _), { unbind: oo(sw, i, m, O, _) };
|
|
45299
45303
|
}, ow = (i, m, h, v) => bh(i, m, h, v, !1), sw = (i, m, h, v) => {
|
|
45300
45304
|
i.dom.removeEventListener(m, h, v);
|
|
45301
|
-
}, XT = Ze, Wp = (i, m, h) => ow(i, m, XT, h), Zp = tw, rw = (i) => !$c(
|
|
45302
|
-
const h = ew(() =>
|
|
45305
|
+
}, XT = Ze, Wp = (i, m, h) => ow(i, m, XT, h), Zp = tw, rw = (i) => !$c(Ae.fromDom(i.target), "ephox-snooker-resizer-bar"), aw = (i, m) => {
|
|
45306
|
+
const h = ew(() => Ae.fromDom(i.getBody()), () => L1(_i(i), Ud(i)), nh.selectedSelector), v = (te, de, De) => {
|
|
45303
45307
|
sl(de).each((Bt) => {
|
|
45304
|
-
const Pt = Hm(i), Qe = wa(Ot,
|
|
45308
|
+
const Pt = Hm(i), Qe = wa(Ot, Ae.fromDom(i.getDoc()), Pt), Lt = iu(i), Ye = of(Bt, { selection: Lt }, Qe);
|
|
45305
45309
|
aT(i, te, de, De, Ye);
|
|
45306
45310
|
});
|
|
45307
45311
|
}, _ = () => lT(i), O = nf.byAttr(nh, v, _);
|
|
45308
45312
|
return i.on("init", (te) => {
|
|
45309
45313
|
const de = i.getWin(), De = xb(i), rt = Ud(i), Bt = () => {
|
|
45310
|
-
const ms = i.selection, ec =
|
|
45314
|
+
const ms = i.selection, ec = Ae.fromDom(ms.getStart()), hl = Ae.fromDom(ms.getEnd());
|
|
45311
45315
|
Cs(sl, [
|
|
45312
45316
|
ec,
|
|
45313
45317
|
hl
|
|
@@ -45322,7 +45326,7 @@ Required: ` + m.join(", "));
|
|
|
45322
45326
|
}, En = (ms) => {
|
|
45323
45327
|
const ec = Zp(ms);
|
|
45324
45328
|
if (ec.raw.shiftKey && ph(ec.raw.which)) {
|
|
45325
|
-
const hl = i.selection.getRng(), Mi =
|
|
45329
|
+
const hl = i.selection.getRng(), Mi = Ae.fromDom(hl.startContainer), ai = Ae.fromDom(hl.endContainer);
|
|
45326
45330
|
Qe.keyup(ec, Mi, hl.startOffset, ai, hl.endOffset).each((sg) => {
|
|
45327
45331
|
en(ec, sg);
|
|
45328
45332
|
});
|
|
@@ -45330,7 +45334,7 @@ Required: ` + m.join(", "));
|
|
|
45330
45334
|
}, jn = (ms) => {
|
|
45331
45335
|
const ec = Zp(ms);
|
|
45332
45336
|
m.hide();
|
|
45333
|
-
const hl = i.selection.getRng(), Mi =
|
|
45337
|
+
const hl = i.selection.getRng(), Mi = Ae.fromDom(hl.startContainer), ai = Ae.fromDom(hl.endContainer), sg = qh(UT, aS)(Ae.fromDom(i.selection.getStart()));
|
|
45334
45338
|
Qe.keydown(ec, Mi, hl.startOffset, ai, hl.endOffset, sg).each((pc) => {
|
|
45335
45339
|
en(ec, pc);
|
|
45336
45340
|
}), m.show();
|
|
@@ -45343,9 +45347,9 @@ Required: ` + m.join(", "));
|
|
|
45343
45347
|
}, wh = (ms) => {
|
|
45344
45348
|
qs(ms) && rw(ms) && Pt.mouseup(Zp(ms));
|
|
45345
45349
|
}, Rv = (() => {
|
|
45346
|
-
const ms = m0(
|
|
45350
|
+
const ms = m0(Ae.fromDom(De)), ec = m0(0);
|
|
45347
45351
|
return { touchEnd: (Mi) => {
|
|
45348
|
-
const ai =
|
|
45352
|
+
const ai = Ae.fromDom(Mi.target);
|
|
45349
45353
|
if (xr("td")(ai) || xr("th")(ai)) {
|
|
45350
45354
|
const sg = ms.get(), pc = ec.get();
|
|
45351
45355
|
ns(sg, ai) && Mi.timeStamp - pc < 300 && (Mi.preventDefault(), Lt(ai, ai));
|
|
@@ -45358,7 +45362,7 @@ Required: ` + m.join(", "));
|
|
|
45358
45362
|
i.serializer.addTempAttr(nh.firstSelected), i.serializer.addTempAttr(nh.lastSelected);
|
|
45359
45363
|
}), {
|
|
45360
45364
|
getSelectedCells: () => S0(h.get(), fe([]), (te) => Ct(te, (de) => de.dom), (te) => [te.dom]),
|
|
45361
|
-
clearSelectedCells: (te) => O.clear(
|
|
45365
|
+
clearSelectedCells: (te) => O.clear(Ae.fromDom(te))
|
|
45362
45366
|
};
|
|
45363
45367
|
}, Lu = (i) => {
|
|
45364
45368
|
let m = [];
|
|
@@ -45410,7 +45414,7 @@ Required: ` + m.join(", "));
|
|
|
45410
45414
|
if (!Be(m))
|
|
45411
45415
|
throw new Error("The " + i + " fields must be an array. Was: " + m + ".");
|
|
45412
45416
|
Me(m, (h) => {
|
|
45413
|
-
if (!
|
|
45417
|
+
if (!Ee(h))
|
|
45414
45418
|
throw new Error("The value " + h + " in the " + i + " fields was not a string.");
|
|
45415
45419
|
});
|
|
45416
45420
|
}, vh = (i, m) => {
|
|
@@ -45537,7 +45541,7 @@ Required: ` + m.join(", "));
|
|
|
45537
45541
|
const m = {
|
|
45538
45542
|
layerClass: k0("blocker"),
|
|
45539
45543
|
...i
|
|
45540
|
-
}, h =
|
|
45544
|
+
}, h = Ae.fromTag("div");
|
|
45541
45545
|
return Zs(h, "role", "presentation"), Ba(h, {
|
|
45542
45546
|
position: "fixed",
|
|
45543
45547
|
left: "0px",
|
|
@@ -45613,7 +45617,7 @@ Required: ` + m.join(", "));
|
|
|
45613
45617
|
events: i.registry
|
|
45614
45618
|
};
|
|
45615
45619
|
}, E0 = (i, m, h, v, _) => {
|
|
45616
|
-
const O =
|
|
45620
|
+
const O = Ae.fromTag("div");
|
|
45617
45621
|
return Ba(O, {
|
|
45618
45622
|
position: "absolute",
|
|
45619
45623
|
left: m - v / 2 + "px",
|
|
@@ -45625,7 +45629,7 @@ Required: ` + m.join(", "));
|
|
|
45625
45629
|
role: "presentation"
|
|
45626
45630
|
}), O;
|
|
45627
45631
|
}, l3 = (i, m, h, v, _) => {
|
|
45628
|
-
const O =
|
|
45632
|
+
const O = Ae.fromTag("div");
|
|
45629
45633
|
return Ba(O, {
|
|
45630
45634
|
position: "absolute",
|
|
45631
45635
|
left: m + "px",
|
|
@@ -45811,7 +45815,7 @@ Required: ` + m.join(", "));
|
|
|
45811
45815
|
isResizable: h
|
|
45812
45816
|
})
|
|
45813
45817
|
}, f3 = () => {
|
|
45814
|
-
const i =
|
|
45818
|
+
const i = Ae.fromTag("div");
|
|
45815
45819
|
return Ba(i, {
|
|
45816
45820
|
position: "static",
|
|
45817
45821
|
height: "0",
|
|
@@ -45820,7 +45824,7 @@ Required: ` + m.join(", "));
|
|
|
45820
45824
|
margin: "0",
|
|
45821
45825
|
border: "0"
|
|
45822
45826
|
}), os(I(), i), i;
|
|
45823
|
-
}, mw = (i, m) => i.inline ? dw.body(
|
|
45827
|
+
}, mw = (i, m) => i.inline ? dw.body(Ae.fromDom(i.getBody()), f3(), m) : dw.only(Ae.fromDom(i.getDoc()), m), g3 = (i, m) => {
|
|
45824
45828
|
i.inline && ar(m.parent());
|
|
45825
45829
|
}, ko = (i) => io(i) && i.nodeName === "TABLE", $i = "bar-", lf = (i) => zr(i, "data-mce-resize") !== "false", h3 = (i) => {
|
|
45826
45830
|
const m = Kn.fromTable(i);
|
|
@@ -45868,7 +45872,7 @@ Required: ` + m.join(", "));
|
|
|
45868
45872
|
}), i.on("ObjectResizeStart", (Qe) => {
|
|
45869
45873
|
const Lt = Qe.target;
|
|
45870
45874
|
if (ko(Lt)) {
|
|
45871
|
-
const Ye =
|
|
45875
|
+
const Ye = Ae.fromDom(Lt);
|
|
45872
45876
|
Me(i.dom.select(".mce-clonedresizable"), (en) => {
|
|
45873
45877
|
i.dom.addClass(en, "mce-" + $y(i) + "-columns");
|
|
45874
45878
|
}), !Q1(Ye) && Mf(i) ? kp(Ye) : !J1(Ye) && ad(i) && uu(Ye), ev(Ye) && Uc(Qe.origin, $i) && uu(Ye), _ = Qe.width, O = Qg(i) ? "" : Jx(i, Lt).getOr("");
|
|
@@ -45876,7 +45880,7 @@ Required: ` + m.join(", "));
|
|
|
45876
45880
|
}), i.on("ObjectResized", (Qe) => {
|
|
45877
45881
|
const Lt = Qe.target;
|
|
45878
45882
|
if (ko(Lt)) {
|
|
45879
|
-
const Ye =
|
|
45883
|
+
const Ye = Ae.fromDom(Lt), en = Qe.origin;
|
|
45880
45884
|
Uc(en, "corner-") && de(Ye, en, Qe.width), cd(Ye), uh(i, Ye.dom, Ym);
|
|
45881
45885
|
}
|
|
45882
45886
|
}), i.on("SwitchMode", () => {
|
|
@@ -45891,7 +45895,7 @@ Required: ` + m.join(", "));
|
|
|
45891
45895
|
De();
|
|
45892
45896
|
}), {
|
|
45893
45897
|
refresh: (Qe) => {
|
|
45894
|
-
h.on((Lt) => Lt.refreshBars(
|
|
45898
|
+
h.on((Lt) => Lt.refreshBars(Ae.fromDom(Qe)));
|
|
45895
45899
|
},
|
|
45896
45900
|
hide: () => {
|
|
45897
45901
|
h.on((Qe) => Qe.hideBars());
|
|
@@ -45921,7 +45925,7 @@ Required: ` + m.join(", "));
|
|
|
45921
45925
|
}, Q = (S) => {
|
|
45922
45926
|
const M = typeof S;
|
|
45923
45927
|
return S === null ? "null" : M === "object" && Array.isArray(S) ? "array" : M === "object" && ie(S, String, (U, le) => le.isPrototypeOf(U)) ? "string" : M;
|
|
45924
|
-
}, ke = (S) => (M) => Q(M) === S, se = (S) => (M) => typeof M === S, j = ke("string"),
|
|
45928
|
+
}, ke = (S) => (M) => Q(M) === S, se = (S) => (M) => typeof M === S, j = ke("string"), Ee = ke("object"), ee = ke("array"), Be = se("boolean"), lt = (S) => S == null, _t = (S) => !lt(S), yn = se("function"), Et = se("number"), io = () => {
|
|
45925
45929
|
}, lo = (S, M) => (U) => S(M(U)), eo = (S) => () => S, Ot = (S, M) => S === M;
|
|
45926
45930
|
function Ls(S, ...M) {
|
|
45927
45931
|
return (...U) => {
|
|
@@ -46126,7 +46130,7 @@ Required: ` + m.join(", "));
|
|
|
46126
46130
|
return U;
|
|
46127
46131
|
}, tr = Object.getPrototypeOf, bs = (S) => yr("HTMLElement", S), ji = (S) => {
|
|
46128
46132
|
const M = vr("ownerDocument.defaultView", S);
|
|
46129
|
-
return
|
|
46133
|
+
return Ee(S) && (bs(M).prototype.isPrototypeOf(S) || /^HTML\w*Element$/.test(tr(S).constructor.name));
|
|
46130
46134
|
}, ds = (S) => S.dom.nodeName.toLowerCase(), Ko = (S) => S.dom.nodeType, yc = (S) => (M) => Ko(M) === S, to = (S) => Ko(S) === z || ds(S) === "#comment", vs = (S) => wr(S) && ji(S.dom), wr = yc(rs), Bl = yc(Wo), di = yc(el), es = yc(so), Gi = (S) => (M) => wr(M) && ds(M) === S, bt = (S) => wn.fromDom(S.dom.ownerDocument), xo = (S) => di(S) ? S : bt(S), Ar = (S) => kt.from(S.dom.parentNode).map(wn.fromDom), Da = (S) => kt.from(S.dom.parentElement).map(wn.fromDom), Nl = (S) => kt.from(S.dom.nextSibling).map(wn.fromDom), Oa = (S) => Ze(S.dom.childNodes, wn.fromDom), ts = (S, M) => {
|
|
46131
46135
|
const U = S.dom.childNodes;
|
|
46132
46136
|
return kt.from(U[M]).map(wn.fromDom);
|
|
@@ -46181,7 +46185,7 @@ Required: ` + m.join(", "));
|
|
|
46181
46185
|
he(M, (U) => {
|
|
46182
46186
|
rc(S, U);
|
|
46183
46187
|
});
|
|
46184
|
-
},
|
|
46188
|
+
}, Ae = (S) => {
|
|
46185
46189
|
S.dom.textContent = "", he(Oa(S), (M) => {
|
|
46186
46190
|
Yr(M);
|
|
46187
46191
|
});
|
|
@@ -46754,7 +46758,7 @@ Required: ` + m.join(", "));
|
|
|
46754
46758
|
const le = Pa(S);
|
|
46755
46759
|
if (Za(S, le))
|
|
46756
46760
|
return;
|
|
46757
|
-
const pe = Ku(S), it =
|
|
46761
|
+
const pe = Ku(S), it = Ee(U) ? U : {};
|
|
46758
46762
|
pe.length > 0 ? gb(S, le, pe, M, it) : Fg(S, le, M, it);
|
|
46759
46763
|
}, $m = ea.DOM, Id = (S, M) => {
|
|
46760
46764
|
const U = M.parentElement;
|
|
@@ -46803,13 +46807,13 @@ Required: ` + m.join(", "));
|
|
|
46803
46807
|
return;
|
|
46804
46808
|
$a(U.lastChild) && (le = U.lastChild), pe === U.lastChild && wl(pe.previousSibling) && S.remove(pe.previousSibling);
|
|
46805
46809
|
const it = U.lastChild;
|
|
46806
|
-
it && wl(it) && M.hasChildNodes() && S.remove(it), xl(S, U, !0) &&
|
|
46810
|
+
it && wl(it) && M.hasChildNodes() && S.remove(it), xl(S, U, !0) && Ae(wn.fromDom(U)), na(S, M, U), le && U.appendChild(le);
|
|
46807
46811
|
const Rn = Er(wn.fromDom(U), wn.fromDom(M)) ? S.getParents(M, $a, U) : [];
|
|
46808
46812
|
S.remove(M), he(Rn, (Tn) => {
|
|
46809
46813
|
xl(S, Tn) && Tn !== S.getRoot() && S.remove(Tn);
|
|
46810
46814
|
});
|
|
46811
46815
|
}, al = (S, M, U) => {
|
|
46812
|
-
|
|
46816
|
+
Ae(wn.fromDom(U)), tu(S.dom, M, U), S.selection.setCursorLocation(U, 0);
|
|
46813
46817
|
}, Ci = (S, M, U, le) => {
|
|
46814
46818
|
const pe = S.dom;
|
|
46815
46819
|
if (pe.isEmpty(le))
|
|
@@ -46891,7 +46895,7 @@ Required: ` + m.join(", "));
|
|
|
46891
46895
|
}), Mr = (S, M) => {
|
|
46892
46896
|
const U = Pa(S);
|
|
46893
46897
|
U === null || Za(S, U) || S.undoManager.transact(() => {
|
|
46894
|
-
|
|
46898
|
+
Ee(M.styles) && S.dom.setStyles(U, M.styles), Ee(M.attrs) && $d(M.attrs, (le, pe) => S.dom.setAttrib(U, pe, le));
|
|
46895
46899
|
});
|
|
46896
46900
|
}, Fd = (S) => {
|
|
46897
46901
|
const M = Ct(Ih(S).split("")), U = Ze(M, (le, pe) => {
|
|
@@ -46996,7 +47000,7 @@ Required: ` + m.join(", "));
|
|
|
46996
47000
|
}), S.addCommand("RemoveList", () => {
|
|
46997
47001
|
Pg(S);
|
|
46998
47002
|
}), Gc(S), S.addCommand("mceListUpdate", (M, U) => {
|
|
46999
|
-
|
|
47003
|
+
Ee(U) && Mr(S, U);
|
|
47000
47004
|
}), S.addQueryStateHandler("InsertUnorderedList", Go(S, "UL")), S.addQueryStateHandler("InsertOrderedList", Go(S, "OL")), S.addQueryStateHandler("InsertDefinitionList", Go(S, "DL"));
|
|
47001
47005
|
};
|
|
47002
47006
|
var ll = tinymce.util.Tools.resolve("tinymce.html.Node");
|
|
@@ -47069,7 +47073,7 @@ Required: ` + m.join(", "));
|
|
|
47069
47073
|
}, Q = (G) => {
|
|
47070
47074
|
const me = typeof G;
|
|
47071
47075
|
return G === null ? "null" : me === "object" && Array.isArray(G) ? "array" : me === "object" && ie(G, String, (Te, Ie) => Ie.isPrototypeOf(Te)) ? "string" : me;
|
|
47072
|
-
}, ke = (G) => (me) => Q(me) === G, se = (G) => (me) => typeof me === G, j = (G) => (me) => G === me,
|
|
47076
|
+
}, ke = (G) => (me) => Q(me) === G, se = (G) => (me) => typeof me === G, j = (G) => (me) => G === me, Ee = ke("string"), ee = ke("object"), Be = ke("array"), lt = j(null), _t = se("boolean"), yn = (G) => G == null, Et = (G) => !yn(G), io = se("function"), lo = (G, me) => {
|
|
47073
47077
|
if (Be(G)) {
|
|
47074
47078
|
for (let Te = 0, Ie = G.length; Te < Ie; ++Te)
|
|
47075
47079
|
if (!me(G[Te]))
|
|
@@ -47190,7 +47194,7 @@ Required: ` + m.join(", "));
|
|
|
47190
47194
|
const me = G.options.register;
|
|
47191
47195
|
me("link_assume_external_targets", {
|
|
47192
47196
|
processor: (Te) => {
|
|
47193
|
-
const Ie =
|
|
47197
|
+
const Ie = Ee(Te) || _t(Te);
|
|
47194
47198
|
return Ie ? Te === !0 ? {
|
|
47195
47199
|
value: 1,
|
|
47196
47200
|
valid: Ie
|
|
@@ -47209,7 +47213,7 @@ Required: ` + m.join(", "));
|
|
|
47209
47213
|
}), me("link_context_toolbar", {
|
|
47210
47214
|
processor: "boolean",
|
|
47211
47215
|
default: !1
|
|
47212
|
-
}), me("link_list", { processor: (Te) =>
|
|
47216
|
+
}), me("link_list", { processor: (Te) => Ee(Te) || io(Te) || lo(Te, ee) }), me("link_default_target", { processor: "string" }), me("link_default_protocol", {
|
|
47213
47217
|
processor: "string",
|
|
47214
47218
|
default: "https"
|
|
47215
47219
|
}), me("link_target_list", {
|
|
@@ -47233,7 +47237,7 @@ Required: ` + m.join(", "));
|
|
|
47233
47237
|
});
|
|
47234
47238
|
}, nt = A("link_assume_external_targets"), Ht = A("link_context_toolbar"), Ct = A("link_list"), Me = A("link_default_target"), no = A("link_default_protocol"), Ks = A("link_target_list"), ho = A("link_rel_list"), br = A("link_class_list"), et = A("link_title"), pt = A("allow_unsafe_link_target"), z = A("link_quicklink");
|
|
47235
47239
|
var el = tinymce.util.Tools.resolve("tinymce.util.Tools");
|
|
47236
|
-
const so = (G) =>
|
|
47240
|
+
const so = (G) => Ee(G.value) ? G.value : "", rs = (G) => Ee(G.text) ? G.text : Ee(G.title) ? G.title : "", Wo = (G, me) => {
|
|
47237
47241
|
const Te = [];
|
|
47238
47242
|
return el.each(G, (Ie) => {
|
|
47239
47243
|
const ft = rs(Ie);
|
|
@@ -47468,7 +47472,7 @@ Required: ` + m.join(", "));
|
|
|
47468
47472
|
Or(G, Te.message, (ft) => {
|
|
47469
47473
|
Ie(ft ? Te.preprocess(me) : me);
|
|
47470
47474
|
});
|
|
47471
|
-
})) },
|
|
47475
|
+
})) }, Ae = { getAnchors: (G) => {
|
|
47472
47476
|
const me = G.dom.select("a:not([href])"), Te = Ze(me, (Ie) => {
|
|
47473
47477
|
const ft = Ie.name || Ie.id;
|
|
47474
47478
|
return ft ? [{
|
|
@@ -47492,7 +47496,7 @@ Required: ` + m.join(", "));
|
|
|
47492
47496
|
}, ns = { getLinks: (G) => {
|
|
47493
47497
|
const me = (Ie) => G.convertURL(Ie.value || Ie.url || "", "href"), Te = Ct(G);
|
|
47494
47498
|
return new Promise((Ie) => {
|
|
47495
|
-
|
|
47499
|
+
Ee(Te) ? fetch(Te).then((ft) => ft.ok ? ft.text().then(ju) : Promise.reject()).then(Ie, () => Ie(un.none())) : io(Te) ? Te((ft) => Ie(un.some(ft))) : Ie(un.from(Te));
|
|
47496
47500
|
}).then((Ie) => Ie.bind(Ke.sanitizeWith(me)).map((ft) => ft.length > 0 ? [{
|
|
47497
47501
|
text: "None",
|
|
47498
47502
|
value: ""
|
|
@@ -47537,7 +47541,7 @@ Required: ` + m.join(", "));
|
|
|
47537
47541
|
targets: ys.getTargets(G),
|
|
47538
47542
|
rels: $d.getRels(G, Ie.target),
|
|
47539
47543
|
classes: Fl.getClasses(G),
|
|
47540
|
-
anchor:
|
|
47544
|
+
anchor: Ae.getAnchors(G),
|
|
47541
47545
|
link: Te
|
|
47542
47546
|
},
|
|
47543
47547
|
optNode: me,
|
|
@@ -47826,7 +47830,7 @@ Required: ` + m.join(", "));
|
|
|
47826
47830
|
}, ke = (I) => {
|
|
47827
47831
|
const Y = typeof I;
|
|
47828
47832
|
return I === null ? "null" : Y === "object" && Array.isArray(I) ? "array" : Y === "object" && Q(I, String, (ae, Fe) => Fe.isPrototypeOf(ae)) ? "string" : Y;
|
|
47829
|
-
}, se = (I) => (Y) => ke(Y) === I, j = (I) => (Y) => typeof Y === I,
|
|
47833
|
+
}, se = (I) => (Y) => ke(Y) === I, j = (I) => (Y) => typeof Y === I, Ee = (I) => (Y) => I === Y, ee = (I, Y) => lt(I) && Q(I, Y, (ae, Fe) => ie(ae) === Fe), Be = se("string"), lt = se("object"), _t = (I) => ee(I, Object), yn = se("array"), Et = Ee(null), io = j("boolean"), lo = (I) => I == null, eo = (I) => !lo(I), Ot = j("function"), Ls = j("number"), un = (I, Y) => {
|
|
47830
47834
|
if (yn(I)) {
|
|
47831
47835
|
for (let ae = 0, Fe = I.length; ae < Fe; ++ae)
|
|
47832
47836
|
if (!Y(I[ae]))
|
|
@@ -48185,7 +48189,7 @@ Required: ` + m.join(", "));
|
|
|
48185
48189
|
}, fi = (I) => {
|
|
48186
48190
|
const Y = rc(I);
|
|
48187
48191
|
return Y ? qi((ae) => Hc(I, ae), Y) : fr();
|
|
48188
|
-
},
|
|
48192
|
+
}, Ae = (I, Y) => {
|
|
48189
48193
|
const ae = yl(($t) => Hc(I, $t), Y);
|
|
48190
48194
|
I.dom.setAttrib(ae, "data-mce-id", "__mcenew"), I.focus(), I.selection.setContent(ae.outerHTML);
|
|
48191
48195
|
const Fe = I.dom.select('*[data-mce-id="__mcenew"]')[0];
|
|
@@ -48223,7 +48227,7 @@ Required: ` + m.join(", "));
|
|
|
48223
48227
|
...Y
|
|
48224
48228
|
}, Qn = Ki(I, $t);
|
|
48225
48229
|
$t.src ? ju(I, Qn) : Fl(I, ae);
|
|
48226
|
-
} else Y.src &&
|
|
48230
|
+
} else Y.src && Ae(I, {
|
|
48227
48231
|
...fr(),
|
|
48228
48232
|
...Y
|
|
48229
48233
|
});
|
|
@@ -48695,7 +48699,7 @@ Required: ` + m.join(", "));
|
|
|
48695
48699
|
}, Q = (x) => {
|
|
48696
48700
|
const T = typeof x;
|
|
48697
48701
|
return x === null ? "null" : T === "object" && Array.isArray(x) ? "array" : T === "object" && ie(x, String, (V, K) => K.isPrototypeOf(V)) ? "string" : T;
|
|
48698
|
-
}, ke = (x) => (T) => Q(T) === x, se = (x) => (T) => typeof T === x, j = (x) => (T) => x === T,
|
|
48702
|
+
}, ke = (x) => (T) => Q(T) === x, se = (x) => (T) => typeof T === x, j = (x) => (T) => x === T, Ee = ke("string"), ee = ke("array"), Be = se("boolean"), lt = j(void 0), _t = (x) => x == null, yn = (x) => !_t(x), Et = se("function"), io = se("number"), lo = () => {
|
|
48699
48703
|
}, eo = (x, T) => (V) => x(T(V)), Ot = (x) => () => x, Ls = (x) => x, un = (x, T) => x === T;
|
|
48700
48704
|
function fe(x, ...T) {
|
|
48701
48705
|
return (...V) => {
|
|
@@ -48977,13 +48981,13 @@ Required: ` + m.join(", "));
|
|
|
48977
48981
|
}, rc = (x, T, V) => sc((ve, je) => je(ve), Hc, x, T, V), Ll = (x, T) => {
|
|
48978
48982
|
const V = (ve) => T(to.fromDom(ve));
|
|
48979
48983
|
return Rt(x.dom.childNodes, V).map(to.fromDom);
|
|
48980
|
-
}, fi = (x, T, V) => Hc(x, (K) => vs(K, T), V),
|
|
48984
|
+
}, fi = (x, T, V) => Hc(x, (K) => vs(K, T), V), Ae = (x, T) => Ll(x, (V) => vs(V, T)), Yr = (x, T) => di(T, x), Fl = (x, T, V) => sc((ve, je) => vs(ve, je), fi, x, T, V), ju = (x) => Fl(x, "[contenteditable]"), Ki = (x, T = !1) => Or(x) ? x.dom.isContentEditable : ju(x).fold(Ot(T), (V) => ns(V) === "true"), ns = (x) => x.dom.contentEditable, km = (x) => x.nodeName.toLowerCase(), $d = (x) => to.fromDom(x.getBody()), nl = (x) => (T) => es(T, $d(x)), Yi = (x) => x ? x.replace(/px$/, "") : "", ys = (x) => /^\d+(\.\d+)?$/.test(x) ? x + "px" : x, Ts = (x) => to.fromDom(x.selection.getStart()), Ua = (x) => to.fromDom(x.selection.getEnd()), Ra = (x) => rc(x, vl("table")).forall(Ki), wc = (x, T) => rs(xr(x), T), gi = (x, T) => {
|
|
48981
48985
|
let V = [];
|
|
48982
48986
|
return z(xr(x), (K) => {
|
|
48983
48987
|
T(K) && (V = V.concat([K])), V = V.concat(gi(K, T));
|
|
48984
48988
|
}), V;
|
|
48985
48989
|
}, xc = (x, T) => wc(x, (V) => vs(V, T)), Po = (x, T) => Bl(T, x), ea = (x, T, V) => {
|
|
48986
|
-
if (
|
|
48990
|
+
if (Ee(V) || Be(V) || io(V))
|
|
48987
48991
|
x.setAttribute(T, V + "");
|
|
48988
48992
|
else
|
|
48989
48993
|
throw console.error("Invalid call to Attribute.set. Key ", T, ":: Value ", V, ":: Element ", x), new Error("Attribute value was not simple");
|
|
@@ -49013,7 +49017,7 @@ Required: ` + m.join(", "));
|
|
|
49013
49017
|
const T = parseFloat(x);
|
|
49014
49018
|
return isNaN(T) ? re.none() : re.some(T);
|
|
49015
49019
|
}, hi = (x) => x.style !== void 0 && Et(x.style.getPropertyValue), bu = (x, T, V) => {
|
|
49016
|
-
if (!
|
|
49020
|
+
if (!Ee(V))
|
|
49017
49021
|
throw console.error("Invalid call to CSS.set. Property ", T, ":: Value ", V, ":: Element ", x), new Error("CSS value must be a string: " + V);
|
|
49018
49022
|
hi(x) && x.style.setProperty(T, V);
|
|
49019
49023
|
}, qu = (x, T) => {
|
|
@@ -50248,7 +50252,7 @@ Required: ` + T.join(", "));
|
|
|
50248
50252
|
return K.concat(ve).concat(je).concat(gt).concat(Mt);
|
|
50249
50253
|
}, vb = (x, T, V, K) => {
|
|
50250
50254
|
if (T.tagName === "TD" || T.tagName === "TH")
|
|
50251
|
-
|
|
50255
|
+
Ee(V) && yn(K) ? x.setStyle(T, V, K) : x.setStyles(T, V);
|
|
50252
50256
|
else if (T.children)
|
|
50253
50257
|
for (let ve = 0; ve < T.children.length; ve++)
|
|
50254
50258
|
vb(x, T.children[ve], V, K);
|
|
@@ -50353,7 +50357,7 @@ Required: ` + T.join(", "));
|
|
|
50353
50357
|
mceTableCellProps: fe(_l, x),
|
|
50354
50358
|
mceInsertTableDialog: fe(Si, x, !0)
|
|
50355
50359
|
}, (V, K) => x.addCommand(K, () => T(V)));
|
|
50356
|
-
}, Ec = (x, T) =>
|
|
50360
|
+
}, Ec = (x, T) => Ae(x, T).isSome(), Uo = Ls, Au = (x) => {
|
|
50357
50361
|
const T = (K, ve) => Hs(K, ve).exists((je) => parseInt(je, 10) > 1), V = (K) => T(K, "rowspan") || T(K, "colspan");
|
|
50358
50362
|
return x.length > 0 && wn(x, V) ? re.some(x) : re.none();
|
|
50359
50363
|
}, Pm = (x, T, V) => T.length <= 1 ? re.none() : gb(x, V.firstSelectedSelector, V.lastSelectedSelector).map((K) => ({
|
|
@@ -50904,10 +50908,10 @@ Required: ` + T.join(", "));
|
|
|
50904
50908
|
onAction: Be
|
|
50905
50909
|
});
|
|
50906
50910
|
};
|
|
50907
|
-
var
|
|
50911
|
+
var Ee = () => {
|
|
50908
50912
|
D.add("code", (ee) => (se(ee), j(ee), {}));
|
|
50909
50913
|
};
|
|
50910
|
-
|
|
50914
|
+
Ee();
|
|
50911
50915
|
})();
|
|
50912
50916
|
(function() {
|
|
50913
50917
|
var D = tinymce.util.Tools.resolve("tinymce.PluginManager");
|
|
@@ -50918,7 +50922,7 @@ Required: ` + T.join(", "));
|
|
|
50918
50922
|
_e[wn] = Rt(qo, wn);
|
|
50919
50923
|
}
|
|
50920
50924
|
return _e;
|
|
50921
|
-
},
|
|
50925
|
+
}, Ee = {
|
|
50922
50926
|
aletter: "[A-Za-zªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԧԱ-Ֆՙա-ևא-תװ-׳ؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘऄ-हऽॐक़-ॡॱ-ॷॹ-ॿঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-ళవ-హఽౘౙౠౡಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೞೠೡೱೲഅ-ഌഎ-ഐഒ-ഺഽൎൠൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆༀཀ-ཇཉ-ཬྈ-ྌႠ-Ⴥა-ჺჼᄀ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏼᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛰᜀ-ᜌᜎ-ᜑᜠ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰᠠ-ᡷᢀ-ᢨᢪᢰ-ᣵᤀ-ᤜᨀ-ᨖᬅ-ᬳᭅ-ᭋᮃ-ᮠᮮᮯᯀ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᳩ-ᳬᳮ-ᳱᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⒶ-ⓩⰀ-Ⱞⰰ-ⱞⱠ-ⳤⳫ-ⳮⴀ-ⴥⴰ-ⵥⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞⸯ々〻〼ㄅ-ㄭㄱ-ㆎㆠ-ㆺꀀ-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚗꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꞎꞐꞑꞠ-ꞩꟺ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꨀ-ꨨꩀ-ꩂꩄ-ꩋꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꯀ-ꯢ가-힣ힰ-ퟆퟋ-ퟻff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zᅠ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ]",
|
|
50923
50927
|
midnumlet: "[-'\\.‘’․﹒'.]",
|
|
50924
50928
|
midletter: "[:··״‧︓﹕:]",
|
|
@@ -50948,20 +50952,20 @@ Required: ` + T.join(", "));
|
|
|
50948
50952
|
AT: 12,
|
|
50949
50953
|
OTHER: 13
|
|
50950
50954
|
}, Be = [
|
|
50951
|
-
new RegExp(
|
|
50952
|
-
new RegExp(
|
|
50953
|
-
new RegExp(
|
|
50954
|
-
new RegExp(
|
|
50955
|
-
new RegExp(
|
|
50956
|
-
new RegExp(
|
|
50957
|
-
new RegExp(
|
|
50958
|
-
new RegExp(
|
|
50959
|
-
new RegExp(
|
|
50960
|
-
new RegExp(
|
|
50961
|
-
new RegExp(
|
|
50962
|
-
new RegExp(
|
|
50955
|
+
new RegExp(Ee.aletter),
|
|
50956
|
+
new RegExp(Ee.midnumlet),
|
|
50957
|
+
new RegExp(Ee.midletter),
|
|
50958
|
+
new RegExp(Ee.midnum),
|
|
50959
|
+
new RegExp(Ee.numeric),
|
|
50960
|
+
new RegExp(Ee.cr),
|
|
50961
|
+
new RegExp(Ee.lf),
|
|
50962
|
+
new RegExp(Ee.newline),
|
|
50963
|
+
new RegExp(Ee.extend),
|
|
50964
|
+
new RegExp(Ee.format),
|
|
50965
|
+
new RegExp(Ee.katakana),
|
|
50966
|
+
new RegExp(Ee.extendnumlet),
|
|
50963
50967
|
new RegExp("@")
|
|
50964
|
-
], lt = "", _t = new RegExp("^" +
|
|
50968
|
+
], lt = "", _t = new RegExp("^" + Ee.punctuation + "$"), yn = /^\s+$/, Et = Be, io = ee.OTHER, lo = (qe) => {
|
|
50965
50969
|
let Rt = io;
|
|
50966
50970
|
const Ke = Et.length;
|
|
50967
50971
|
for (let _e = 0; _e < Ke; ++_e) {
|
|
@@ -51174,9 +51178,9 @@ const JQ = { class: "font-bold ptext-lg dark:text-white" }, QQ = ["id"], eee = /
|
|
|
51174
51178
|
emits: ["update:modelValue", "keydown"],
|
|
51175
51179
|
setup(D, { expose: ie, emit: Q }) {
|
|
51176
51180
|
const ke = D, se = Q, j = co(null);
|
|
51177
|
-
let
|
|
51181
|
+
let Ee = null;
|
|
51178
51182
|
Ag(async () => {
|
|
51179
|
-
await Mj(),
|
|
51183
|
+
await Mj(), Ee && (Ee.destroy(), Ee = null), XQ.init({
|
|
51180
51184
|
selector: "#" + ke.field_name,
|
|
51181
51185
|
height: 300,
|
|
51182
51186
|
plugins: [
|
|
@@ -51191,7 +51195,7 @@ const JQ = { class: "font-bold ptext-lg dark:text-white" }, QQ = ["id"], eee = /
|
|
|
51191
51195
|
content_css: !1,
|
|
51192
51196
|
// disable import of css
|
|
51193
51197
|
setup(lt) {
|
|
51194
|
-
|
|
51198
|
+
Ee = lt, lt.on("Change", () => {
|
|
51195
51199
|
se("update:modelValue", lt.getContent());
|
|
51196
51200
|
}), lt.on("init", () => {
|
|
51197
51201
|
lt.setContent(ke.modelValue);
|
|
@@ -51199,9 +51203,9 @@ const JQ = { class: "font-bold ptext-lg dark:text-white" }, QQ = ["id"], eee = /
|
|
|
51199
51203
|
}
|
|
51200
51204
|
});
|
|
51201
51205
|
}), WN(() => {
|
|
51202
|
-
|
|
51206
|
+
Ee && (Ee.destroy(), Ee = null);
|
|
51203
51207
|
}), Eg(() => ke.modelValue, (lt) => {
|
|
51204
|
-
|
|
51208
|
+
Ee && Ee.getContent() !== lt && Ee.setContent(lt);
|
|
51205
51209
|
});
|
|
51206
51210
|
const Be = pu({
|
|
51207
51211
|
get() {
|
|
@@ -51308,11 +51312,11 @@ const JQ = { class: "font-bold ptext-lg dark:text-white" }, QQ = ["id"], eee = /
|
|
|
51308
51312
|
return 0;
|
|
51309
51313
|
if (this.limit === 0)
|
|
51310
51314
|
return this.lastPage;
|
|
51311
|
-
for (var D = this.currentPage, ie = this.lastPage, Q = this.limit, ke = D - Q, se = D + Q + 1, j = [],
|
|
51315
|
+
for (var D = this.currentPage, ie = this.lastPage, Q = this.limit, ke = D - Q, se = D + Q + 1, j = [], Ee = [], ee, Be = 1; Be <= ie; Be++)
|
|
51312
51316
|
(Be === 1 || Be === ie || Be >= ke && Be < se) && j.push(Be);
|
|
51313
51317
|
return j.forEach(function(lt) {
|
|
51314
|
-
ee && (lt - ee === 2 ?
|
|
51315
|
-
}),
|
|
51318
|
+
ee && (lt - ee === 2 ? Ee.push(ee + 1) : lt - ee !== 1 && Ee.push("...")), Ee.push(lt), ee = lt;
|
|
51319
|
+
}), Ee;
|
|
51316
51320
|
}
|
|
51317
51321
|
},
|
|
51318
51322
|
methods: {
|
|
@@ -51435,8 +51439,8 @@ const JQ = { class: "font-bold ptext-lg dark:text-white" }, QQ = ["id"], eee = /
|
|
|
51435
51439
|
})
|
|
51436
51440
|
], -1);
|
|
51437
51441
|
function yee(D, ie, Q, ke, se, j) {
|
|
51438
|
-
const
|
|
51439
|
-
return ge(), Zu(
|
|
51442
|
+
const Ee = Od("RenderlessPagination");
|
|
51443
|
+
return ge(), Zu(Ee, {
|
|
51440
51444
|
data: Q.data,
|
|
51441
51445
|
limit: Q.limit,
|
|
51442
51446
|
onPaginationChangePage: j.onPaginationChangePage
|
|
@@ -51546,16 +51550,16 @@ const aq = /* @__PURE__ */ Kr(aee, [["render", yee]]), wee = {
|
|
|
51546
51550
|
}
|
|
51547
51551
|
},
|
|
51548
51552
|
setup(D, { expose: ie }) {
|
|
51549
|
-
const Q = co(""), ke = co(""), se = co(""), j = co("Cancel"),
|
|
51553
|
+
const Q = co(""), ke = co(""), se = co(""), j = co("Cancel"), Ee = co(!1), ee = co(!1), Be = co(void 0), lt = co(void 0), _t = (eo = {}) => (Q.value = eo.title, ke.value = eo.message, se.value = eo.okButton, eo.cancelButton && (j.value = eo.cancelButton), Ee.value = !0, new Promise((Ot, Ls) => {
|
|
51550
51554
|
Be.value = Ot, lt.value = Ls;
|
|
51551
51555
|
})), yn = () => {
|
|
51552
51556
|
ee.value = !0;
|
|
51553
51557
|
}, Et = () => {
|
|
51554
51558
|
ee.value = !1;
|
|
51555
51559
|
}, io = () => {
|
|
51556
|
-
|
|
51560
|
+
Ee.value = !1, Be.value(!0);
|
|
51557
51561
|
}, lo = () => {
|
|
51558
|
-
|
|
51562
|
+
Ee.value = !1, Be.value(!1);
|
|
51559
51563
|
};
|
|
51560
51564
|
return ie({
|
|
51561
51565
|
show: _t,
|
|
@@ -51563,7 +51567,7 @@ const aq = /* @__PURE__ */ Kr(aee, [["render", yee]]), wee = {
|
|
|
51563
51567
|
hideLoading: Et
|
|
51564
51568
|
}), (eo, Ot) => {
|
|
51565
51569
|
const Ls = Od("gl-button");
|
|
51566
|
-
return
|
|
51570
|
+
return Ee.value ? (ge(), ye("div", wee, [
|
|
51567
51571
|
$("div", xee, [
|
|
51568
51572
|
Cee,
|
|
51569
51573
|
See,
|
|
@@ -51826,9 +51830,9 @@ const aq = /* @__PURE__ */ Kr(aee, [["render", yee]]), wee = {
|
|
|
51826
51830
|
"data-label": ""
|
|
51827
51831
|
}, rte = ["checked", "onChange"], ate = ["data-label"], lte = { class: "overflow-auto max-h-40" }, cte = { class: "flex items-center justify-between px-4 py-3 bg-white border-gray-200 sm:px-6 dark:text-gray-400 dark:bg-gray-800" };
|
|
51828
51832
|
function ite(D, ie, Q, ke, se, j) {
|
|
51829
|
-
const
|
|
51833
|
+
const Ee = Od("DynamicConfirmation"), ee = Od("dropdown"), Be = Od("GlDropdown"), lt = Od("GlTextInput"), _t = Od("gl-button"), yn = Od("TailwindPagination");
|
|
51830
51834
|
return ge(), ye(Jn, null, [
|
|
51831
|
-
ui(
|
|
51835
|
+
ui(Ee, { ref: "ConfirmationDelete" }, null, 512),
|
|
51832
51836
|
$("div", Bee, [
|
|
51833
51837
|
$("div", Nee, [
|
|
51834
51838
|
$("div", Iee, [
|
|
@@ -52262,13 +52266,13 @@ const $le = /* @__PURE__ */ Kr(Pee, [["render", ite]]), ute = {
|
|
|
52262
52266
|
Jte
|
|
52263
52267
|
];
|
|
52264
52268
|
function ene(D, ie, Q, ke, se, j) {
|
|
52265
|
-
const
|
|
52269
|
+
const Ee = Od("dropdown");
|
|
52266
52270
|
return ge(), ye("div", dte, [
|
|
52267
52271
|
$("div", mte, [
|
|
52268
52272
|
$("div", fte, [
|
|
52269
52273
|
gte,
|
|
52270
52274
|
$("div", hte, [
|
|
52271
|
-
ui(
|
|
52275
|
+
ui(Ee, {
|
|
52272
52276
|
has_cancel: !1,
|
|
52273
52277
|
options: se.showNoOfEntries,
|
|
52274
52278
|
modelValue: se.itemsPerPage,
|
|
@@ -52583,13 +52587,13 @@ const Mle = /* @__PURE__ */ Kr(ute, [["render", ene]]), tne = {
|
|
|
52583
52587
|
wne
|
|
52584
52588
|
], Cne = { class: "bg-white dark:bg-gray-800 dark:border-gray-700 hover:bg-gray-50 dark:hover:bg-gray-600 hover:dark:text-gray-200 text-gray-500" }, Sne = ["colspan"], _ne = ["data-label"], kne = { class: "overflow-auto max-h-40" }, Tne = { class: "flex items-center justify-between px-4 py-3 bg-white border-gray-200 sm:px-6 dark:text-gray-400 dark:bg-gray-800" };
|
|
52585
52589
|
function Ene(D, ie, Q, ke, se, j) {
|
|
52586
|
-
const
|
|
52590
|
+
const Ee = Od("dropdown"), ee = Od("TailwindPagination");
|
|
52587
52591
|
return ge(), ye("div", nne, [
|
|
52588
52592
|
$("div", one, [
|
|
52589
52593
|
$("div", sne, [
|
|
52590
52594
|
rne,
|
|
52591
52595
|
$("div", ane, [
|
|
52592
|
-
ui(
|
|
52596
|
+
ui(Ee, {
|
|
52593
52597
|
has_cancel: !1,
|
|
52594
52598
|
options: se.pageOptions,
|
|
52595
52599
|
modelValue: se.perPage,
|
|
@@ -52832,13 +52836,13 @@ const Ple = /* @__PURE__ */ Kr(tne, [["render", Ene]]), Ane = {
|
|
|
52832
52836
|
moe
|
|
52833
52837
|
];
|
|
52834
52838
|
function goe(D, ie, Q, ke, se, j) {
|
|
52835
|
-
const
|
|
52839
|
+
const Ee = Od("dropdown");
|
|
52836
52840
|
return ge(), ye("div", Dne, [
|
|
52837
52841
|
$("div", One, [
|
|
52838
52842
|
$("div", Rne, [
|
|
52839
52843
|
$ne,
|
|
52840
52844
|
$("div", Mne, [
|
|
52841
|
-
ui(
|
|
52845
|
+
ui(Ee, {
|
|
52842
52846
|
has_cancel: !1,
|
|
52843
52847
|
options: se.showNoOfEntries,
|
|
52844
52848
|
modelValue: se.itemsPerPage,
|
|
@@ -52982,7 +52986,7 @@ const Ble = /* @__PURE__ */ Kr(Ane, [["render", goe]]), hoe = {
|
|
|
52982
52986
|
return "Runs every minute.";
|
|
52983
52987
|
if (ie === "0" && Q === "0" && ke === "*" && se === "*" && j !== "*")
|
|
52984
52988
|
return `Runs at 12:00 AM every ${this.convertDayOfWeek(j)}.`;
|
|
52985
|
-
const
|
|
52989
|
+
const Ee = {
|
|
52986
52990
|
0: "Sunday",
|
|
52987
52991
|
1: "Monday",
|
|
52988
52992
|
2: "Tuesday",
|
|
@@ -53005,7 +53009,7 @@ const Ble = /* @__PURE__ */ Kr(Ane, [["render", goe]]), hoe = {
|
|
|
53005
53009
|
11: "November",
|
|
53006
53010
|
12: "December",
|
|
53007
53011
|
"*": "every month"
|
|
53008
|
-
}, Be = this.convertField(ie, "minute", 59), lt = this.convertField(Q, "hour", 23), _t = this.convertField(ke, "day of the month", 31), yn = this.convertField(se, "month", 12, ee), Et = this.convertField(j, "day", 6,
|
|
53012
|
+
}, Be = this.convertField(ie, "minute", 59), lt = this.convertField(Q, "hour", 23), _t = this.convertField(ke, "day of the month", 31), yn = this.convertField(se, "month", 12, ee), Et = this.convertField(j, "day", 6, Ee);
|
|
53009
53013
|
return `Runs ${Be} ${lt} ${_t} ${yn} on ${Et}.`;
|
|
53010
53014
|
},
|
|
53011
53015
|
convertField(D, ie, Q, ke = {}) {
|
|
@@ -53090,12 +53094,12 @@ const Ile = /* @__PURE__ */ Kr(yoe, [["render", woe]]), xoe = {
|
|
|
53090
53094
|
return lt = Math.floor(lt / 16), (yn === "x" ? Et : Et & 3 | 8).toString(16);
|
|
53091
53095
|
});
|
|
53092
53096
|
return _t;
|
|
53093
|
-
})(), se = { isOpen: D, id: ke }, j = pu(() => ie.accordions.value),
|
|
53097
|
+
})(), se = { isOpen: D, id: ke }, j = pu(() => ie.accordions.value), Ee = pu(() => j.value.length > 0 && j.value[0].id === ke), ee = pu(() => j.value.length > 0 && j.value[j.value.length - 1].id === ke);
|
|
53094
53098
|
return Ag(() => {
|
|
53095
53099
|
ie.registerAccordion(se);
|
|
53096
53100
|
}), Bq(() => {
|
|
53097
53101
|
ie.unregisterAccordion(se);
|
|
53098
|
-
}), { isOpen: D, isFirstAccordion:
|
|
53102
|
+
}), { isOpen: D, isFirstAccordion: Ee, isLastAccordion: ee, toggle: () => {
|
|
53099
53103
|
ie.toggleAccordion(se);
|
|
53100
53104
|
} };
|
|
53101
53105
|
}
|
|
@@ -53134,7 +53138,7 @@ function Doe(D, ie, Q, ke, se, j) {
|
|
|
53134
53138
|
return ge(), ye("div", null, [
|
|
53135
53139
|
$("h2", null, [
|
|
53136
53140
|
$("button", {
|
|
53137
|
-
onClick: ie[0] || (ie[0] = (...
|
|
53141
|
+
onClick: ie[0] || (ie[0] = (...Ee) => ke.toggle && ke.toggle(...Ee)),
|
|
53138
53142
|
type: "button",
|
|
53139
53143
|
class: nn(["flex items-center justify-between w-full gap-3 p-5 font-medium text-gray-500 border border-gray-200 rtl:text-right dark:border-gray-700 dark:text-gray-400 hover:bg-gray-100 dark:hover:bg-gray-800", {
|
|
53140
53144
|
"rounded-t-xl": ke.isFirstAccordion,
|
|
@@ -53245,7 +53249,7 @@ const Lle = /* @__PURE__ */ Kr(xoe, [["render", Doe]]), Ooe = {
|
|
|
53245
53249
|
Q.type === "warning" ? (ge(), ye("div", Foe, zoe)) : at("", !0),
|
|
53246
53250
|
$("div", Uoe, mt(Q.message), 1),
|
|
53247
53251
|
$("button", {
|
|
53248
|
-
onClick: j[0] || (j[0] = (
|
|
53252
|
+
onClick: j[0] || (j[0] = (Ee) => ke("remove")),
|
|
53249
53253
|
type: "button",
|
|
53250
53254
|
class: "-mx-1.5 -my-1.5 ml-auto inline-flex h-8 w-8 rounded-lg bg-white p-1.5 text-gray-400 hover:bg-gray-100 hover:text-gray-900 focus:ring-2 focus:ring-gray-300 dark:bg-gray-800 dark:text-gray-500 dark:hover:bg-gray-700 dark:hover:text-white",
|
|
53251
53255
|
"data-dismiss-target": "#toast-default",
|
|
@@ -53273,7 +53277,7 @@ const Lle = /* @__PURE__ */ Kr(xoe, [["render", Doe]]), Ooe = {
|
|
|
53273
53277
|
message: se.message,
|
|
53274
53278
|
type: se.type,
|
|
53275
53279
|
duration: se.duration,
|
|
53276
|
-
onRemove: (
|
|
53280
|
+
onRemove: (Ee) => ie(j)
|
|
53277
53281
|
}, null, 8, ["message", "type", "duration", "onRemove"]))), 128))
|
|
53278
53282
|
]),
|
|
53279
53283
|
_: 1
|
|
@@ -53323,7 +53327,7 @@ const Lle = /* @__PURE__ */ Kr(xoe, [["render", Doe]]), Ooe = {
|
|
|
53323
53327
|
setup(D, { emit: ie }) {
|
|
53324
53328
|
const Q = D, ke = co(!1), se = co(!1), j = () => {
|
|
53325
53329
|
ke.value = !1;
|
|
53326
|
-
},
|
|
53330
|
+
}, Ee = () => {
|
|
53327
53331
|
ke.value = !0;
|
|
53328
53332
|
}, ee = () => {
|
|
53329
53333
|
se.value = !1;
|
|
@@ -53350,7 +53354,7 @@ const Lle = /* @__PURE__ */ Kr(xoe, [["render", Doe]]), Ooe = {
|
|
|
53350
53354
|
}, null, 8, ["isOpen"]),
|
|
53351
53355
|
D.row && yn.can(`edit_${D.xprops.permission} || delete_${D.xprops.permission}`) ? Tr((ge(), ye("div", qoe, [
|
|
53352
53356
|
$("button", {
|
|
53353
|
-
onClick:
|
|
53357
|
+
onClick: Ee,
|
|
53354
53358
|
class: "inline-flex items-center p-2 text-sm font-medium text-center text-gray-900 bg-white rounded-lg hover:bg-gray-100 focus:ring-4 focus:outline-none dark:text-white focus:ring-gray-50 dark:bg-gray-800 dark:hover:bg-gray-700 dark:focus:ring-gray-600",
|
|
53355
53359
|
type: "button"
|
|
53356
53360
|
}, Yoe),
|
|
@@ -53429,7 +53433,7 @@ const Lle = /* @__PURE__ */ Kr(xoe, [["render", Doe]]), Ooe = {
|
|
|
53429
53433
|
setup(D, { emit: ie }) {
|
|
53430
53434
|
const Q = D, ke = co(!1), se = co(!1), j = () => {
|
|
53431
53435
|
ke.value = !1;
|
|
53432
|
-
},
|
|
53436
|
+
}, Ee = () => {
|
|
53433
53437
|
ke.value = !0;
|
|
53434
53438
|
}, ee = () => {
|
|
53435
53439
|
se.value = !1;
|
|
@@ -53456,7 +53460,7 @@ const Lle = /* @__PURE__ */ Kr(xoe, [["render", Doe]]), Ooe = {
|
|
|
53456
53460
|
}, null, 8, ["isOpen"]),
|
|
53457
53461
|
D.row && yn.can(`delete_${D.xprops.permission}`) ? Tr((ge(), ye("div", sse, [
|
|
53458
53462
|
$("button", {
|
|
53459
|
-
onClick:
|
|
53463
|
+
onClick: Ee,
|
|
53460
53464
|
class: "inline-flex items-center p-2 text-sm font-medium text-center text-gray-900 bg-white rounded-lg hover:bg-gray-100 focus:ring-4 focus:outline-none dark:text-white focus:ring-gray-50 dark:bg-gray-800 dark:hover:bg-gray-700 dark:focus:ring-gray-600",
|
|
53461
53465
|
type: "button"
|
|
53462
53466
|
}, ase),
|
|
@@ -53526,7 +53530,7 @@ const Lle = /* @__PURE__ */ Kr(xoe, [["render", Doe]]), Ooe = {
|
|
|
53526
53530
|
setup(D, { emit: ie }) {
|
|
53527
53531
|
const Q = D, ke = co(!1), se = co(!1), j = () => {
|
|
53528
53532
|
se.value = !1;
|
|
53529
|
-
},
|
|
53533
|
+
}, Ee = () => {
|
|
53530
53534
|
se.value = !0;
|
|
53531
53535
|
}, ee = () => {
|
|
53532
53536
|
ke.value = !1;
|
|
@@ -53574,7 +53578,7 @@ const Lle = /* @__PURE__ */ Kr(xoe, [["render", Doe]]), Ooe = {
|
|
|
53574
53578
|
Et.can(`delete_${D.xprops.permission}`) ? (ge(), ye("li", vse, [
|
|
53575
53579
|
$("a", {
|
|
53576
53580
|
href: "#",
|
|
53577
|
-
onClick: bl(
|
|
53581
|
+
onClick: bl(Ee, ["prevent"]),
|
|
53578
53582
|
class: "block px-4 py-2 text-red-600 hover:text-white hover:bg-red-600 dark:text-red-500 dark:hover:text-white dark:hover:bg-red-600"
|
|
53579
53583
|
}, [
|
|
53580
53584
|
yse,
|
|
@@ -53646,13 +53650,13 @@ const Lle = /* @__PURE__ */ Kr(xoe, [["render", Doe]]), Ooe = {
|
|
|
53646
53650
|
], -1);
|
|
53647
53651
|
function Tse(D, ie, Q, ke, se, j) {
|
|
53648
53652
|
return ge(), ye("div", null, [
|
|
53649
|
-
j.isArray ? (ge(!0), ye(Jn, { key: 0 }, rr(Q.row, (
|
|
53653
|
+
j.isArray ? (ge(!0), ye(Jn, { key: 0 }, rr(Q.row, (Ee, ee) => (ge(), ye("div", {
|
|
53650
53654
|
key: ee,
|
|
53651
53655
|
class: "m-1 d-inline-block"
|
|
53652
53656
|
}, [
|
|
53653
53657
|
$("a", {
|
|
53654
|
-
href:
|
|
53655
|
-
title:
|
|
53658
|
+
href: Ee,
|
|
53659
|
+
title: Ee,
|
|
53656
53660
|
target: "_blank",
|
|
53657
53661
|
class: "inline-flex items-center px-3 py-2 text-xs font-medium text-center text-white bg-blue-700 rounded-lg hover:bg-blue-800 focus:ring-4 focus:outline-none focus:ring-blue-300 dark:bg-blue-600 dark:hover:bg-blue-700 dark:focus:ring-blue-800"
|
|
53658
53662
|
}, [
|
|
@@ -53721,13 +53725,13 @@ const Ule = /* @__PURE__ */ Kr(wse, [["render", Tse]]), Ese = {
|
|
|
53721
53725
|
})
|
|
53722
53726
|
], -1);
|
|
53723
53727
|
function Mse(D, ie, Q, ke, se, j) {
|
|
53724
|
-
return j.isArray ? (ge(!0), ye(Jn, { key: 0 }, rr(Q.row[Q.field], (
|
|
53725
|
-
key:
|
|
53728
|
+
return j.isArray ? (ge(!0), ye(Jn, { key: 0 }, rr(Q.row[Q.field], (Ee) => (ge(), ye("div", {
|
|
53729
|
+
key: Ee.id,
|
|
53726
53730
|
class: "m-1 d-inline-block"
|
|
53727
53731
|
}, [
|
|
53728
53732
|
$("a", {
|
|
53729
|
-
href:
|
|
53730
|
-
title:
|
|
53733
|
+
href: Ee.url,
|
|
53734
|
+
title: Ee.name,
|
|
53731
53735
|
target: "_blank",
|
|
53732
53736
|
class: "inline-flex items-center px-3 py-2 text-xs font-medium text-center text-white bg-blue-700 rounded-lg hover:bg-blue-800 focus:ring-4 focus:outline-none focus:ring-blue-300 dark:bg-blue-600 dark:hover:bg-blue-700 dark:focus:ring-blue-800"
|
|
53733
53737
|
}, [
|
|
@@ -53780,10 +53784,10 @@ const Zle = /* @__PURE__ */ Kr(Pse, [["render", Ise]]), Lse = {
|
|
|
53780
53784
|
};
|
|
53781
53785
|
function Vse(D, ie, Q, ke, se, j) {
|
|
53782
53786
|
return this.row[this.entry.key] ? (ge(), ye("div", Fse, [
|
|
53783
|
-
j.isArray ? (ge(!0), ye(Jn, { key: 0 }, rr(Q.row[j.entry.key], (
|
|
53787
|
+
j.isArray ? (ge(!0), ye(Jn, { key: 0 }, rr(Q.row[j.entry.key], (Ee, ee) => (ge(), ye("span", {
|
|
53784
53788
|
key: ee,
|
|
53785
53789
|
class: "px-2 py-1 text-xs font-medium text-blue-800 bg-blue-100 rounded dark:bg-blue-900 dark:text-blue-300"
|
|
53786
|
-
}, mt(
|
|
53790
|
+
}, mt(Ee[j.entry.field]), 1))), 128)) : j.isObject ? (ge(), ye("span", Hse, mt(Q.row[j.entry.key][j.entry.field]), 1)) : at("", !0)
|
|
53787
53791
|
])) : at("", !0);
|
|
53788
53792
|
}
|
|
53789
53793
|
const jle = /* @__PURE__ */ Kr(Lse, [["render", Vse]]), zse = {
|
|
@@ -53811,10 +53815,10 @@ const jle = /* @__PURE__ */ Kr(Lse, [["render", Vse]]), zse = {
|
|
|
53811
53815
|
};
|
|
53812
53816
|
function Zse(D, ie, Q, ke, se, j) {
|
|
53813
53817
|
return ge(), ye("div", Use, [
|
|
53814
|
-
j.isArray ? (ge(!0), ye(Jn, { key: 0 }, rr(j.getNestedValue(Q.row, j.entry.keys), (
|
|
53818
|
+
j.isArray ? (ge(!0), ye(Jn, { key: 0 }, rr(j.getNestedValue(Q.row, j.entry.keys), (Ee, ee) => (ge(), ye("span", {
|
|
53815
53819
|
key: ee,
|
|
53816
53820
|
class: "px-2 py-1 text-xs font-medium text-blue-800 bg-blue-100 rounded dark:bg-blue-900 dark:text-blue-300"
|
|
53817
|
-
}, mt(
|
|
53821
|
+
}, mt(Ee[j.entry.field]), 1))), 128)) : j.isObject ? (ge(), ye("span", Wse, mt(j.getNestedValue(Q.row, j.entry.keys)[j.entry.field]), 1)) : at("", !0)
|
|
53818
53822
|
]);
|
|
53819
53823
|
}
|
|
53820
53824
|
const Gle = /* @__PURE__ */ Kr(zse, [["render", Zse]]), jse = {
|
|
@@ -53853,13 +53857,13 @@ const qle = /* @__PURE__ */ Kr(jse, [["render", Xse], ["__scopeId", "data-v-3a28
|
|
|
53853
53857
|
}, ere = ["src", "alt"], tre = { key: 1 }, nre = ["src", "alt"];
|
|
53854
53858
|
function ore(D, ie, Q, ke, se, j) {
|
|
53855
53859
|
return j.isArray ? (ge(), ye("div", Qse, [
|
|
53856
|
-
(ge(!0), ye(Jn, null, rr(Q.row[Q.field], (
|
|
53857
|
-
key:
|
|
53860
|
+
(ge(!0), ye(Jn, null, rr(Q.row[Q.field], (Ee) => (ge(), ye("div", {
|
|
53861
|
+
key: Ee.id
|
|
53858
53862
|
}, [
|
|
53859
53863
|
$("img", {
|
|
53860
53864
|
class: "h-auto max-w-full rounded-lg",
|
|
53861
|
-
src:
|
|
53862
|
-
alt:
|
|
53865
|
+
src: Ee.thumbnail,
|
|
53866
|
+
alt: Ee.file_name
|
|
53863
53867
|
}, null, 8, ere)
|
|
53864
53868
|
]))), 128))
|
|
53865
53869
|
])) : j.isObject ? (ge(), ye("div", tre, [
|
|
@@ -54091,8 +54095,8 @@ const Qle = /* @__PURE__ */ Kr(Ere, [["render", Fre]]), Hre = {
|
|
|
54091
54095
|
return "";
|
|
54092
54096
|
const D = new Date(this.row[this.field]), ie = D.getFullYear(), Q = D.toLocaleString("default", { month: "long" }), ke = D.getDate();
|
|
54093
54097
|
let se = D.getHours();
|
|
54094
|
-
const j = D.getMinutes(),
|
|
54095
|
-
return se = se % 12, se = se || 12, `${Q} ${ke}, ${ie}, ${se}:${j}:${
|
|
54098
|
+
const j = D.getMinutes(), Ee = D.getSeconds(), ee = se >= 12 ? "pm" : "am";
|
|
54099
|
+
return se = se % 12, se = se || 12, `${Q} ${ke}, ${ie}, ${se}:${j}:${Ee} ${ee}`;
|
|
54096
54100
|
}
|
|
54097
54101
|
}
|
|
54098
54102
|
}, Vre = { class: "w-full" };
|
|
@@ -54182,7 +54186,7 @@ const oce = /* @__PURE__ */ Kr(tae, [["render", sae]]), rae = {
|
|
|
54182
54186
|
"aria-hidden": "true"
|
|
54183
54187
|
}, "", -1), uae = { class: "inline-block overflow-hidden text-left align-bottom transition-all transform bg-white dark:bg-gray-800 rounded-lg shadow-xl sm:my-8 sm:align-middle sm:max-w-lg sm:w-full" }, dae = { class: "px-4 pt-5 pb-4 sm:p-6 sm:pb-4" }, mae = { class: "sm:flex sm:items-start" }, fae = { class: "mt-3 text-center sm:mt-0 sm:ml-4 sm:text-left" }, gae = { class: "text-lg font-medium leading-6" }, hae = { class: "mt-2" }, pae = { class: "border-t border-gray-200 rounded-b dark:border-gray-600 px-4 py-3 sm:px-6 sm:flex sm:flex-row-reverse gap-2" };
|
|
54184
54188
|
function bae(D, ie, Q, ke, se, j) {
|
|
54185
|
-
const
|
|
54189
|
+
const Ee = Od("gl-button");
|
|
54186
54190
|
return Q.isOpen ? (ge(), ye("div", aae, [
|
|
54187
54191
|
$("div", lae, [
|
|
54188
54192
|
cae,
|
|
@@ -54199,7 +54203,7 @@ function bae(D, ie, Q, ke, se, j) {
|
|
|
54199
54203
|
])
|
|
54200
54204
|
]),
|
|
54201
54205
|
$("div", pae, [
|
|
54202
|
-
ui(
|
|
54206
|
+
ui(Ee, {
|
|
54203
54207
|
onClick: j.confirmAction,
|
|
54204
54208
|
tag: "button",
|
|
54205
54209
|
button_type: "red"
|
|
@@ -54209,7 +54213,7 @@ function bae(D, ie, Q, ke, se, j) {
|
|
|
54209
54213
|
]),
|
|
54210
54214
|
_: 1
|
|
54211
54215
|
}, 8, ["onClick"]),
|
|
54212
|
-
ui(
|
|
54216
|
+
ui(Ee, {
|
|
54213
54217
|
onClick: j.cancelAction,
|
|
54214
54218
|
tag: "button",
|
|
54215
54219
|
button_type: "light"
|
|
@@ -54280,11 +54284,11 @@ const sce = /* @__PURE__ */ Kr(rae, [["render", bae]]), vae = { class: "w-full"
|
|
|
54280
54284
|
Q.value = !0, setTimeout(() => {
|
|
54281
54285
|
Q.value = !1;
|
|
54282
54286
|
}, 2e3);
|
|
54283
|
-
}).catch(function(
|
|
54284
|
-
console.error("Error copying to clipboard: ",
|
|
54287
|
+
}).catch(function(Ee) {
|
|
54288
|
+
console.error("Error copying to clipboard: ", Ee);
|
|
54285
54289
|
});
|
|
54286
54290
|
}, se = pu(() => ie.code);
|
|
54287
|
-
return (j,
|
|
54291
|
+
return (j, Ee) => (ge(), ye("div", vae, [
|
|
54288
54292
|
$("div", yae, [
|
|
54289
54293
|
$("p", wae, mt(D.label_name), 1)
|
|
54290
54294
|
]),
|
|
@@ -54294,7 +54298,7 @@ const sce = /* @__PURE__ */ Kr(rae, [["render", bae]]), vae = { class: "w-full"
|
|
|
54294
54298
|
]),
|
|
54295
54299
|
$("div", _ae, [
|
|
54296
54300
|
$("button", {
|
|
54297
|
-
onClick:
|
|
54301
|
+
onClick: Ee[0] || (Ee[0] = (ee) => ke(se.value)),
|
|
54298
54302
|
class: "text-gray-900 dark:text-gray-400 m-1 hover:bg-gray-100 dark:bg-gray-800 dark:border-gray-600 dark:hover:bg-gray-700 rounded-lg py-2 px-3 inline-flex items-center justify-center bg-white border-gray-200 border"
|
|
54299
54303
|
}, [
|
|
54300
54304
|
Q.value ? at("", !0) : (ge(), ye("span", kae, Aae)),
|
|
@@ -54360,11 +54364,11 @@ const sce = /* @__PURE__ */ Kr(rae, [["render", bae]]), vae = { class: "w-full"
|
|
|
54360
54364
|
Q.value = !0, setTimeout(() => {
|
|
54361
54365
|
Q.value = !1;
|
|
54362
54366
|
}, 2e3);
|
|
54363
|
-
}).catch(function(
|
|
54364
|
-
console.error("Error copying to clipboard: ",
|
|
54367
|
+
}).catch(function(Ee) {
|
|
54368
|
+
console.error("Error copying to clipboard: ", Ee);
|
|
54365
54369
|
});
|
|
54366
54370
|
}, se = pu(() => ie.code);
|
|
54367
|
-
return (j,
|
|
54371
|
+
return (j, Ee) => (ge(), ye("div", Pae, [
|
|
54368
54372
|
$("div", Bae, [
|
|
54369
54373
|
$("label", Nae, mt(D.label_name), 1)
|
|
54370
54374
|
]),
|
|
@@ -54382,7 +54386,7 @@ const sce = /* @__PURE__ */ Kr(rae, [["render", bae]]), vae = { class: "w-full"
|
|
|
54382
54386
|
]),
|
|
54383
54387
|
$("button", {
|
|
54384
54388
|
style: { padding: ".61rem" },
|
|
54385
|
-
onClick:
|
|
54389
|
+
onClick: Ee[0] || (Ee[0] = (ee) => ke(se.value)),
|
|
54386
54390
|
class: "flex-shrink-0 z-10 inline-flex items-center px-4 text-sm font-medium text-center text-white bg-blue-700 rounded-e-lg hover:bg-blue-800 focus:ring-4 focus:outline-none focus:ring-blue-300 dark:bg-blue-600 dark:hover:bg-blue-700 dark:focus:ring-blue-800 border border-blue-700 dark:border-blue-600 hover:border-blue-800 dark:hover:border-blue-700",
|
|
54387
54391
|
type: "button"
|
|
54388
54392
|
}, [
|