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