golden-logic-ui 1.0.650 → 1.0.652
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 +583 -577
- package/dist/golden-logic-ui.umd.cjs +22 -22
- package/package.json +1 -1
package/dist/golden-logic-ui.js
CHANGED
|
@@ -740,7 +740,7 @@ const Txe = /* @__PURE__ */ Ti(ble, [["render", wle]]), xle = { class: "bg-white
|
|
|
740
740
|
return m.value.findIndex((Ft) => Ft.id === Jt) !== -1;
|
|
741
741
|
}
|
|
742
742
|
function oe() {
|
|
743
|
-
m.value =
|
|
743
|
+
m.value = ut();
|
|
744
744
|
}
|
|
745
745
|
function Et() {
|
|
746
746
|
m.value = [], c("update:modelValue", []), c("selected", []), c("selectionChanged", []);
|
|
@@ -763,7 +763,7 @@ const Txe = /* @__PURE__ */ Ti(ble, [["render", wle]]), xle = { class: "bg-white
|
|
|
763
763
|
function Xn(Jt) {
|
|
764
764
|
Jt === "ArrowDown" && T.value < Te.value.length && (T.value++, Xe(T.value)), Jt === "ArrowUp" && T.value > 1 && (T.value--, Xe(T.value)), Jt === "Enter" && ve(T.value);
|
|
765
765
|
}
|
|
766
|
-
function
|
|
766
|
+
function ut() {
|
|
767
767
|
return i.options.map((Jt, Ft) => typeof Jt == "object" ? Jt : { id: Jt, name: Jt });
|
|
768
768
|
}
|
|
769
769
|
function kt() {
|
|
@@ -827,7 +827,7 @@ const Txe = /* @__PURE__ */ Ti(ble, [["render", wle]]), xle = { class: "bg-white
|
|
|
827
827
|
), Lu(
|
|
828
828
|
() => i.options,
|
|
829
829
|
() => {
|
|
830
|
-
O.value =
|
|
830
|
+
O.value = ut(), m.value = kt();
|
|
831
831
|
},
|
|
832
832
|
{ immediate: !0, deep: !0 }
|
|
833
833
|
), (Jt, Ft) => {
|
|
@@ -839,7 +839,7 @@ const Txe = /* @__PURE__ */ Ti(ble, [["render", wle]]), xle = { class: "bg-white
|
|
|
839
839
|
}, [
|
|
840
840
|
Z("h3", Cle, Mt(u.label_name), 1),
|
|
841
841
|
Z("p", Tle, [
|
|
842
|
-
(ke(!0), $e(Qo, null, Hr(m.value, (
|
|
842
|
+
(ke(!0), $e(Qo, null, Hr(m.value, (lt, Ke) => (ke(), $e("span", _le, Mt(lt == null ? void 0 : lt.name), 1))), 256))
|
|
843
843
|
]),
|
|
844
844
|
Ft[4] || (Ft[4] = Z("hr", { class: "!opacity-100 bg-gray-200 border-0 dark:bg-gray-700" }, null, -1))
|
|
845
845
|
], 2)) : Ct("", !0),
|
|
@@ -847,11 +847,11 @@ const Txe = /* @__PURE__ */ Ti(ble, [["render", wle]]), xle = { class: "bg-white
|
|
|
847
847
|
key: 1,
|
|
848
848
|
class: wn(u.field_name)
|
|
849
849
|
}, [
|
|
850
|
-
(ke(!0), $e(Qo, null, Hr(w.value, (
|
|
850
|
+
(ke(!0), $e(Qo, null, Hr(w.value, (lt, Ke) => (ke(), $e("input", {
|
|
851
851
|
type: "hidden",
|
|
852
852
|
name: u.field_name + "[]",
|
|
853
853
|
key: Ke,
|
|
854
|
-
value:
|
|
854
|
+
value: lt
|
|
855
855
|
}, null, 8, Ele))), 128)),
|
|
856
856
|
u.options ? (ke(), $e("div", $le, [
|
|
857
857
|
Z("label", {
|
|
@@ -881,15 +881,15 @@ const Txe = /* @__PURE__ */ Ti(ble, [["render", wle]]), xle = { class: "bg-white
|
|
|
881
881
|
Z("div", Ale, [
|
|
882
882
|
Z("div", {
|
|
883
883
|
class: "flex flex-wrap gap-2 pr-2 gl-multi-dropdown showOptions",
|
|
884
|
-
onClick: Ft[0] || (Ft[0] = (
|
|
884
|
+
onClick: Ft[0] || (Ft[0] = (lt) => io())
|
|
885
885
|
}, [
|
|
886
|
-
(ke(!0), $e(Qo, null, Hr(m.value, (
|
|
886
|
+
(ke(!0), $e(Qo, null, Hr(m.value, (lt, Ke) => (ke(), $e("span", {
|
|
887
887
|
key: Ke,
|
|
888
888
|
class: "flex gap-2 px-2 py-1 text-xs font-medium text-blue-800 bg-blue-100 rounded pointer-events-none dark:bg-blue-900 dark:text-blue-300"
|
|
889
889
|
}, [
|
|
890
|
-
Vo(Mt(
|
|
890
|
+
Vo(Mt(lt == null ? void 0 : lt.name) + " ", 1),
|
|
891
891
|
Z("i", {
|
|
892
|
-
onClick: ma((qt) => rn(
|
|
892
|
+
onClick: ma((qt) => rn(lt), ["stop"]),
|
|
893
893
|
class: "cursor-pointer pointer-events-auto hover:text-red-600 dark:hover:text-red-400"
|
|
894
894
|
}, Ft[5] || (Ft[5] = [
|
|
895
895
|
Z("svg", {
|
|
@@ -911,7 +911,7 @@ const Txe = /* @__PURE__ */ Ti(ble, [["render", wle]]), xle = { class: "bg-white
|
|
|
911
911
|
]))), 128))
|
|
912
912
|
]),
|
|
913
913
|
Z("i", {
|
|
914
|
-
onClick: Ft[1] || (Ft[1] = ma((
|
|
914
|
+
onClick: Ft[1] || (Ft[1] = ma((lt) => io(), ["stop"])),
|
|
915
915
|
class: "absolute text-xl text-gray-500 cursor-pointer fas ltr:right-2 rtl:left-2 hover:text-gray-700 dark:hover:text-gray-800 showOptions",
|
|
916
916
|
style: { top: "13px" }
|
|
917
917
|
}, [
|
|
@@ -963,11 +963,11 @@ const Txe = /* @__PURE__ */ Ti(ble, [["render", wle]]), xle = { class: "bg-white
|
|
|
963
963
|
], -1)),
|
|
964
964
|
Ur(Z("input", {
|
|
965
965
|
type: "search",
|
|
966
|
-
"onUpdate:modelValue": Ft[2] || (Ft[2] = (
|
|
966
|
+
"onUpdate:modelValue": Ft[2] || (Ft[2] = (lt) => R.value = lt),
|
|
967
967
|
ref: h.value,
|
|
968
968
|
id: `${u.field_name}search${F.value}`,
|
|
969
969
|
onKeydown: et,
|
|
970
|
-
onBlur: Ft[3] || (Ft[3] = (
|
|
970
|
+
onBlur: Ft[3] || (Ft[3] = (lt) => It()),
|
|
971
971
|
autocomplete: "off",
|
|
972
972
|
class: "block w-full p-2 text-sm text-gray-900 border border-gray-300 rounded-lg ps-10 bg-gray-50 focus:ring-blue-500 focus:border-blue-500 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500",
|
|
973
973
|
placeholder: u.search_input_placeholder
|
|
@@ -977,16 +977,16 @@ const Txe = /* @__PURE__ */ Ti(ble, [["render", wle]]), xle = { class: "bg-white
|
|
|
977
977
|
])
|
|
978
978
|
]),
|
|
979
979
|
Z("div", Nle, [
|
|
980
|
-
(ke(!0), $e(Qo, null, Hr(Te.value, (
|
|
980
|
+
(ke(!0), $e(Qo, null, Hr(Te.value, (lt, Ke) => (ke(), $e("div", {
|
|
981
981
|
class: wn([
|
|
982
982
|
"block 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",
|
|
983
|
-
Ke + 1 == T.value || it(
|
|
983
|
+
Ke + 1 == T.value || it(lt.id) ? "bg-gray-100 dark:bg-gray-600" : ""
|
|
984
984
|
]),
|
|
985
|
-
onClick: (qt) => Q(
|
|
986
|
-
onMousedown: (qt) => Q(
|
|
985
|
+
onClick: (qt) => Q(lt),
|
|
986
|
+
onMousedown: (qt) => Q(lt),
|
|
987
987
|
key: Ke,
|
|
988
988
|
id: `${Ke + 1}${F.value}`
|
|
989
|
-
}, Mt(
|
|
989
|
+
}, Mt(lt.name || lt.id || "-"), 43, Lle))), 128))
|
|
990
990
|
])
|
|
991
991
|
], 4), [
|
|
992
992
|
[Vf, P.value]
|
|
@@ -2673,10 +2673,10 @@ const Ixe = /* @__PURE__ */ Ti(wue, [["render", Yue], ["__scopeId", "data-v-bb11
|
|
|
2673
2673
|
]))
|
|
2674
2674
|
]),
|
|
2675
2675
|
w.value ? (ke(), $e("div", tde, P[1] || (P[1] = [
|
|
2676
|
-
cJ('<div class="flex items-center justify-center h-48 mb-4 bg-gray-300 rounded dark:bg-gray-700"><svg class="w-10 h-10 text-gray-200 dark:text-gray-600" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" fill="currentColor" viewBox="0 0 16 20"><path d="M14.066 0H7v5a2 2 0 0 1-2 2H0v11a1.97 1.97 0 0 0 1.934 2h12.132A1.97 1.97 0 0 0 16 18V2a1.97 1.97 0 0 0-1.934-2ZM10.5 6a1.5 1.5 0 1 1 0 2.999A1.5 1.5 0 0 1 10.5 6Zm2.221 10.515a1 1 0 0 1-.858.485h-8a1 1 0 0 1-.9-1.43L5.6 10.039a.978.978 0 0 1 .936-.57 1 1 0 0 1 .9.632l1.181 2.981.541-1a.945.945 0 0 1 .883-.522 1 1 0 0 1 .879.529l1.832 3.438a1 1 0 0 1-.031.988Z"></path><path d="M5 5V.13a2.96 2.96 0 0 0-1.293.749L.879 3.707A2.98 2.98 0 0 0 .13 5H5Z"></path></svg></div><div class="h-2.5 bg-gray-200 rounded-full dark:bg-gray-700 w-48 mb-4"></div><div class="h-2 bg-gray-200 rounded-full dark:bg-gray-700 mb-2.5"></div><div class="h-2 bg-gray-200 rounded-full dark:bg-gray-700 mb-2.5"></div><div class="h-2 bg-gray-200 rounded-full dark:bg-gray-700"></div><div class="flex items-center mt-4"><svg class="w-10 h-10
|
|
2676
|
+
cJ('<div class="flex items-center justify-center h-48 mb-4 bg-gray-300 rounded dark:bg-gray-700"><svg class="w-10 h-10 text-gray-200 dark:text-gray-600" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" fill="currentColor" viewBox="0 0 16 20"><path d="M14.066 0H7v5a2 2 0 0 1-2 2H0v11a1.97 1.97 0 0 0 1.934 2h12.132A1.97 1.97 0 0 0 16 18V2a1.97 1.97 0 0 0-1.934-2ZM10.5 6a1.5 1.5 0 1 1 0 2.999A1.5 1.5 0 0 1 10.5 6Zm2.221 10.515a1 1 0 0 1-.858.485h-8a1 1 0 0 1-.9-1.43L5.6 10.039a.978.978 0 0 1 .936-.57 1 1 0 0 1 .9.632l1.181 2.981.541-1a.945.945 0 0 1 .883-.522 1 1 0 0 1 .879.529l1.832 3.438a1 1 0 0 1-.031.988Z"></path><path d="M5 5V.13a2.96 2.96 0 0 0-1.293.749L.879 3.707A2.98 2.98 0 0 0 .13 5H5Z"></path></svg></div><div class="h-2.5 bg-gray-200 rounded-full dark:bg-gray-700 w-48 mb-4"></div><div class="h-2 bg-gray-200 rounded-full dark:bg-gray-700 mb-2.5"></div><div class="h-2 bg-gray-200 rounded-full dark:bg-gray-700 mb-2.5"></div><div class="h-2 bg-gray-200 rounded-full dark:bg-gray-700"></div><div class="flex items-center mt-4"><svg class="w-10 h-10 text-gray-200 me-3 dark:text-gray-700" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" fill="currentColor" viewBox="0 0 20 20"><path d="M10 0a10 10 0 1 0 10 10A10.011 10.011 0 0 0 10 0Zm0 5a3 3 0 1 1 0 6 3 3 0 0 1 0-6Zm0 13a8.949 8.949 0 0 1-4.951-1.488A3.987 3.987 0 0 1 9 13h2a3.987 3.987 0 0 1 3.951 3.512A8.949 8.949 0 0 1 10 18Z"></path></svg><div><div class="h-2.5 bg-gray-200 rounded-full dark:bg-gray-700 w-32 mb-2"></div><div class="w-48 h-2 bg-gray-200 rounded-full dark:bg-gray-700"></div></div></div><span class="sr-only">Loading...</span>', 7)
|
|
2677
2677
|
]))) : Ct("", !0),
|
|
2678
2678
|
Ur(Z("div", {
|
|
2679
|
-
class: wn(["relative overflow-y-auto", u.bodyClass])
|
|
2679
|
+
class: wn(["relative overflow-y-auto gl_modal_body", u.bodyClass])
|
|
2680
2680
|
}, [
|
|
2681
2681
|
Jc(T.$slots, "body")
|
|
2682
2682
|
], 2), [
|
|
@@ -2697,7 +2697,7 @@ const Ixe = /* @__PURE__ */ Ti(wue, [["render", Yue], ["__scopeId", "data-v-bb11
|
|
|
2697
2697
|
], 2)) : Ct("", !0);
|
|
2698
2698
|
};
|
|
2699
2699
|
}
|
|
2700
|
-
}, ode = { class: "
|
|
2700
|
+
}, ode = { class: "relative flex flex-col w-full text-current bg-white border rounded-lg outline-none pointer-events-auto shadow-4 border-stroke dark:border-strokedark dark:bg-boxdark" }, sde = {
|
|
2701
2701
|
key: 0,
|
|
2702
2702
|
class: "flex items-center justify-between flex-shrink-0 pt-10 pb-3 pl-3 pr-3 border-b-2 dark:border-gray-600"
|
|
2703
2703
|
}, rde = { class: "text-xl font-medium leading-normal text-surface dark:text-white" }, ide = {
|
|
@@ -2796,10 +2796,10 @@ const Ixe = /* @__PURE__ */ Ti(wue, [["render", Yue], ["__scopeId", "data-v-bb11
|
|
|
2796
2796
|
]))
|
|
2797
2797
|
])) : Ct("", !0),
|
|
2798
2798
|
u.is_loading ? (ke(), $e("div", ide, T[1] || (T[1] = [
|
|
2799
|
-
cJ('<div class="flex items-center justify-center h-48 mb-4 bg-gray-300 rounded dark:bg-gray-700"><svg class="w-10 h-10 text-gray-200 dark:text-gray-600" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" fill="currentColor" viewBox="0 0 16 20"><path d="M14.066 0H7v5a2 2 0 0 1-2 2H0v11a1.97 1.97 0 0 0 1.934 2h12.132A1.97 1.97 0 0 0 16 18V2a1.97 1.97 0 0 0-1.934-2ZM10.5 6a1.5 1.5 0 1 1 0 2.999A1.5 1.5 0 0 1 10.5 6Zm2.221 10.515a1 1 0 0 1-.858.485h-8a1 1 0 0 1-.9-1.43L5.6 10.039a.978.978 0 0 1 .936-.57 1 1 0 0 1 .9.632l1.181 2.981.541-1a.945.945 0 0 1 .883-.522 1 1 0 0 1 .879.529l1.832 3.438a1 1 0 0 1-.031.988Z"></path><path d="M5 5V.13a2.96 2.96 0 0 0-1.293.749L.879 3.707A2.98 2.98 0 0 0 .13 5H5Z"></path></svg></div><div class="h-2.5 bg-gray-200 rounded-full dark:bg-gray-700 w-48 mb-4"></div><div class="h-2 bg-gray-200 rounded-full dark:bg-gray-700 mb-2.5"></div><div class="h-2 bg-gray-200 rounded-full dark:bg-gray-700 mb-2.5"></div><div class="h-2 bg-gray-200 rounded-full dark:bg-gray-700"></div><div class="flex items-center mt-4"><svg class="w-10 h-10
|
|
2799
|
+
cJ('<div class="flex items-center justify-center h-48 mb-4 bg-gray-300 rounded dark:bg-gray-700"><svg class="w-10 h-10 text-gray-200 dark:text-gray-600" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" fill="currentColor" viewBox="0 0 16 20"><path d="M14.066 0H7v5a2 2 0 0 1-2 2H0v11a1.97 1.97 0 0 0 1.934 2h12.132A1.97 1.97 0 0 0 16 18V2a1.97 1.97 0 0 0-1.934-2ZM10.5 6a1.5 1.5 0 1 1 0 2.999A1.5 1.5 0 0 1 10.5 6Zm2.221 10.515a1 1 0 0 1-.858.485h-8a1 1 0 0 1-.9-1.43L5.6 10.039a.978.978 0 0 1 .936-.57 1 1 0 0 1 .9.632l1.181 2.981.541-1a.945.945 0 0 1 .883-.522 1 1 0 0 1 .879.529l1.832 3.438a1 1 0 0 1-.031.988Z"></path><path d="M5 5V.13a2.96 2.96 0 0 0-1.293.749L.879 3.707A2.98 2.98 0 0 0 .13 5H5Z"></path></svg></div><div class="h-2.5 bg-gray-200 rounded-full dark:bg-gray-700 w-48 mb-4"></div><div class="h-2 bg-gray-200 rounded-full dark:bg-gray-700 mb-2.5"></div><div class="h-2 bg-gray-200 rounded-full dark:bg-gray-700 mb-2.5"></div><div class="h-2 bg-gray-200 rounded-full dark:bg-gray-700"></div><div class="flex items-center mt-4"><svg class="w-10 h-10 text-gray-200 me-3 dark:text-gray-700" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" fill="currentColor" viewBox="0 0 20 20"><path d="M10 0a10 10 0 1 0 10 10A10.011 10.011 0 0 0 10 0Zm0 5a3 3 0 1 1 0 6 3 3 0 0 1 0-6Zm0 13a8.949 8.949 0 0 1-4.951-1.488A3.987 3.987 0 0 1 9 13h2a3.987 3.987 0 0 1 3.951 3.512A8.949 8.949 0 0 1 10 18Z"></path></svg><div><div class="h-2.5 bg-gray-200 rounded-full dark:bg-gray-700 w-32 mb-2"></div><div class="w-48 h-2 bg-gray-200 rounded-full dark:bg-gray-700"></div></div></div><span class="sr-only">Loading...</span>', 7)
|
|
2800
2800
|
]))) : Ct("", !0),
|
|
2801
2801
|
Ur(Z("div", {
|
|
2802
|
-
class: wn(["relative", u.bodyClass])
|
|
2802
|
+
class: wn(["relative gl_modal_body", u.bodyClass])
|
|
2803
2803
|
}, [
|
|
2804
2804
|
Jc(w.$slots, "body")
|
|
2805
2805
|
], 2), [
|
|
@@ -2908,10 +2908,10 @@ const Ixe = /* @__PURE__ */ Ti(wue, [["render", Yue], ["__scopeId", "data-v-bb11
|
|
|
2908
2908
|
]))
|
|
2909
2909
|
]),
|
|
2910
2910
|
u.is_loading ? (ke(), $e("div", dde, T[1] || (T[1] = [
|
|
2911
|
-
cJ('<div class="flex items-center justify-center h-48 mb-4 bg-gray-300 rounded dark:bg-gray-700"><svg class="w-10 h-10 text-gray-200 dark:text-gray-600" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" fill="currentColor" viewBox="0 0 16 20"><path d="M14.066 0H7v5a2 2 0 0 1-2 2H0v11a1.97 1.97 0 0 0 1.934 2h12.132A1.97 1.97 0 0 0 16 18V2a1.97 1.97 0 0 0-1.934-2ZM10.5 6a1.5 1.5 0 1 1 0 2.999A1.5 1.5 0 0 1 10.5 6Zm2.221 10.515a1 1 0 0 1-.858.485h-8a1 1 0 0 1-.9-1.43L5.6 10.039a.978.978 0 0 1 .936-.57 1 1 0 0 1 .9.632l1.181 2.981.541-1a.945.945 0 0 1 .883-.522 1 1 0 0 1 .879.529l1.832 3.438a1 1 0 0 1-.031.988Z"></path><path d="M5 5V.13a2.96 2.96 0 0 0-1.293.749L.879 3.707A2.98 2.98 0 0 0 .13 5H5Z"></path></svg></div><div class="h-2.5 bg-gray-200 rounded-full dark:bg-gray-700 w-48 mb-4"></div><div class="h-2 bg-gray-200 rounded-full dark:bg-gray-700 mb-2.5"></div><div class="h-2 bg-gray-200 rounded-full dark:bg-gray-700 mb-2.5"></div><div class="h-2 bg-gray-200 rounded-full dark:bg-gray-700"></div><div class="flex items-center mt-4"><svg class="w-10 h-10
|
|
2911
|
+
cJ('<div class="flex items-center justify-center h-48 mb-4 bg-gray-300 rounded dark:bg-gray-700"><svg class="w-10 h-10 text-gray-200 dark:text-gray-600" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" fill="currentColor" viewBox="0 0 16 20"><path d="M14.066 0H7v5a2 2 0 0 1-2 2H0v11a1.97 1.97 0 0 0 1.934 2h12.132A1.97 1.97 0 0 0 16 18V2a1.97 1.97 0 0 0-1.934-2ZM10.5 6a1.5 1.5 0 1 1 0 2.999A1.5 1.5 0 0 1 10.5 6Zm2.221 10.515a1 1 0 0 1-.858.485h-8a1 1 0 0 1-.9-1.43L5.6 10.039a.978.978 0 0 1 .936-.57 1 1 0 0 1 .9.632l1.181 2.981.541-1a.945.945 0 0 1 .883-.522 1 1 0 0 1 .879.529l1.832 3.438a1 1 0 0 1-.031.988Z"></path><path d="M5 5V.13a2.96 2.96 0 0 0-1.293.749L.879 3.707A2.98 2.98 0 0 0 .13 5H5Z"></path></svg></div><div class="h-2.5 bg-gray-200 rounded-full dark:bg-gray-700 w-48 mb-4"></div><div class="h-2 bg-gray-200 rounded-full dark:bg-gray-700 mb-2.5"></div><div class="h-2 bg-gray-200 rounded-full dark:bg-gray-700 mb-2.5"></div><div class="h-2 bg-gray-200 rounded-full dark:bg-gray-700"></div><div class="flex items-center mt-4"><svg class="w-10 h-10 text-gray-200 me-3 dark:text-gray-700" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" fill="currentColor" viewBox="0 0 20 20"><path d="M10 0a10 10 0 1 0 10 10A10.011 10.011 0 0 0 10 0Zm0 5a3 3 0 1 1 0 6 3 3 0 0 1 0-6Zm0 13a8.949 8.949 0 0 1-4.951-1.488A3.987 3.987 0 0 1 9 13h2a3.987 3.987 0 0 1 3.951 3.512A8.949 8.949 0 0 1 10 18Z"></path></svg><div><div class="h-2.5 bg-gray-200 rounded-full dark:bg-gray-700 w-32 mb-2"></div><div class="w-48 h-2 bg-gray-200 rounded-full dark:bg-gray-700"></div></div></div><span class="sr-only">Loading...</span>', 7)
|
|
2912
2912
|
]))) : Ct("", !0),
|
|
2913
2913
|
Ur(Z("div", {
|
|
2914
|
-
class: wn(["relative overflow-y-auto", u.bodyClass])
|
|
2914
|
+
class: wn(["relative overflow-y-auto gl_modal_body", u.bodyClass])
|
|
2915
2915
|
}, [
|
|
2916
2916
|
Jc(w.$slots, "body")
|
|
2917
2917
|
], 2), [
|
|
@@ -3251,29 +3251,29 @@ const Ixe = /* @__PURE__ */ Ti(wue, [["render", Yue], ["__scopeId", "data-v-bb11
|
|
|
3251
3251
|
const h = Ro({}), m = Ro(!1), O = Ro(0), w = Ro(!1), T = Ro(""), P = Ro(""), R = Ro(!1), F = Ro(1), H = Ro(null), K = Ro(1), he = Ro([]), Me = Ro([]), ye = Ro(null), Te = Ro(null), et = Ro(0), le = Ro(0), je = () => {
|
|
3252
3252
|
if (console.log("Div Top:", ye.value), ye.value) {
|
|
3253
3253
|
et.value = ye.value.offsetWidth;
|
|
3254
|
-
var
|
|
3255
|
-
le.value =
|
|
3254
|
+
var lt = ye.value.getBoundingClientRect();
|
|
3255
|
+
le.value = lt.top + 41 + (i.label_name ? 22 : 0), console.log("Div Top:", le.value);
|
|
3256
3256
|
}
|
|
3257
|
-
}, Xt = async (
|
|
3257
|
+
}, Xt = async (lt = "down", Ke = !1) => {
|
|
3258
3258
|
if (!R.value) {
|
|
3259
3259
|
R.value = !0;
|
|
3260
3260
|
try {
|
|
3261
|
-
const qt =
|
|
3261
|
+
const qt = lt === "up" ? Math.max(F.value - 1, K) : F.value, { data: We } = await axios.get(i.api_url, {
|
|
3262
3262
|
params: { search: T.value, page: qt, per_page: 20 }
|
|
3263
3263
|
});
|
|
3264
3264
|
let pt = It(We.data);
|
|
3265
|
-
|
|
3265
|
+
lt === "down" && (he.value.push(...pt), F.value++, H.value = We.last_page), H.value || (H.value = We.last_page), K.value || (K.value = 1), h.value = rn(), Ke && (T.value = "", he.value = []);
|
|
3266
3266
|
} catch (qt) {
|
|
3267
3267
|
console.error("Error fetching data:", qt);
|
|
3268
3268
|
}
|
|
3269
3269
|
R.value = !1;
|
|
3270
3270
|
}
|
|
3271
|
-
}, it = (
|
|
3272
|
-
if (!
|
|
3273
|
-
const Ke =
|
|
3271
|
+
}, it = (lt) => {
|
|
3272
|
+
if (!lt.target) return;
|
|
3273
|
+
const Ke = lt.target.scrollTop, qt = lt.target.scrollHeight - lt.target.clientHeight <= Ke + 10, We = Ke <= 10;
|
|
3274
3274
|
qt && F.value <= H.value && Xt("down"), We && F.value > K.value;
|
|
3275
|
-
}, oe = (
|
|
3276
|
-
|
|
3275
|
+
}, oe = (lt) => {
|
|
3276
|
+
lt.target && (document.activeElement.classList.contains("showOptions" + P.value) ? w.value || Et() : lt.target.id != i.field_name + "search" + P.value && lt.target.id != i.field_name && !lt.target.classList.contains("showOptions" + P.value) && (_t(), O.value = 0, w.value = !1));
|
|
3277
3277
|
}, Et = () => {
|
|
3278
3278
|
if (!i.show) {
|
|
3279
3279
|
if (w.value) {
|
|
@@ -3282,82 +3282,88 @@ const Ixe = /* @__PURE__ */ Ti(wue, [["render", Yue], ["__scopeId", "data-v-bb11
|
|
|
3282
3282
|
}
|
|
3283
3283
|
T.value = "", w.value = !0, i.api_url && he.value.length === 0 && Xt("down"), zF(() => {
|
|
3284
3284
|
je();
|
|
3285
|
-
var
|
|
3285
|
+
var lt = document.getElementById(
|
|
3286
3286
|
`${i.field_name}search${P.value}`
|
|
3287
3287
|
);
|
|
3288
|
-
|
|
3288
|
+
lt && lt.focus();
|
|
3289
3289
|
});
|
|
3290
3290
|
}
|
|
3291
3291
|
}, rn = () => Xn(h.value) ? typeof h.value == "object" ? he.value.find(
|
|
3292
|
-
(
|
|
3292
|
+
(lt) => String(lt.id) === String(h.value.id)
|
|
3293
3293
|
) || {} : he.value.find(
|
|
3294
|
-
(
|
|
3294
|
+
(lt) => String(lt.id) === String(h.value)
|
|
3295
3295
|
) || {} : i.modelValue ? typeof i.modelValue == "object" ? he.value.find(
|
|
3296
|
-
(
|
|
3296
|
+
(lt) => String(lt.id) === String(i.modelValue.id)
|
|
3297
3297
|
) || {} : he.value.find(
|
|
3298
|
-
(
|
|
3298
|
+
(lt) => String(lt.id) === String(i.modelValue)
|
|
3299
3299
|
) || {} : {};
|
|
3300
3300
|
Fh(() => {
|
|
3301
|
-
P.value = ve(), i.show
|
|
3301
|
+
if (P.value = ve(), !i.show) {
|
|
3302
|
+
window.addEventListener("scroll", je, { passive: !0 });
|
|
3303
|
+
const lt = document.querySelector(".gl_modal_body");
|
|
3304
|
+
lt && lt.addEventListener("scroll", je, { passive: !0 }), document.body.addEventListener("click", ut), document.addEventListener("focusin", oe);
|
|
3305
|
+
}
|
|
3302
3306
|
}), _4(() => {
|
|
3303
|
-
window.removeEventListener("scroll", je)
|
|
3307
|
+
window.removeEventListener("scroll", je);
|
|
3308
|
+
const lt = document.querySelector(".gl_modal_body");
|
|
3309
|
+
lt && lt.removeEventListener("scroll", je, { passive: !0 }), document.body.removeEventListener("click", ut), document.removeEventListener("focusin", oe);
|
|
3304
3310
|
});
|
|
3305
3311
|
function dn() {
|
|
3306
|
-
const
|
|
3312
|
+
const lt = [], Ke = T.value.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"), qt = new RegExp(Ke, "ig");
|
|
3307
3313
|
for (const We of Me.value) {
|
|
3308
3314
|
const pt = String(We.name);
|
|
3309
|
-
(T.value.length < 1 || pt.match(qt)) &&
|
|
3315
|
+
(T.value.length < 1 || pt.match(qt)) && lt.length < i.maxItem && lt.push(We);
|
|
3310
3316
|
}
|
|
3311
|
-
return
|
|
3317
|
+
return lt;
|
|
3312
3318
|
}
|
|
3313
|
-
function Xe(
|
|
3319
|
+
function Xe(lt) {
|
|
3314
3320
|
if ([
|
|
3315
3321
|
"ArrowLeft",
|
|
3316
3322
|
"ArrowUp",
|
|
3317
3323
|
"ArrowRight",
|
|
3318
3324
|
"ArrowDown",
|
|
3319
3325
|
"Enter"
|
|
3320
|
-
].includes(
|
|
3321
|
-
if (["ArrowUp", "ArrowDown"].includes(
|
|
3326
|
+
].includes(lt.key)) {
|
|
3327
|
+
if (["ArrowUp", "ArrowDown"].includes(lt.key) && lt.preventDefault(), lt.key === "ArrowDown" && i.posts === "")
|
|
3322
3328
|
return;
|
|
3323
|
-
io(
|
|
3329
|
+
io(lt.key);
|
|
3324
3330
|
}
|
|
3325
3331
|
}
|
|
3326
3332
|
function ve() {
|
|
3327
|
-
let
|
|
3333
|
+
let lt = (/* @__PURE__ */ new Date()).getTime();
|
|
3328
3334
|
return "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(
|
|
3329
3335
|
/[xy]/g,
|
|
3330
3336
|
function(qt) {
|
|
3331
|
-
const We = (
|
|
3332
|
-
return
|
|
3337
|
+
const We = (lt + Math.random() * 16) % 16 | 0;
|
|
3338
|
+
return lt = Math.floor(lt / 16), (qt === "x" ? We : We & 3 | 8).toString(16);
|
|
3333
3339
|
}
|
|
3334
3340
|
);
|
|
3335
3341
|
}
|
|
3336
|
-
function Xn(
|
|
3337
|
-
return
|
|
3342
|
+
function Xn(lt) {
|
|
3343
|
+
return lt && typeof lt == "object" && Object.keys(lt).length > 0;
|
|
3338
3344
|
}
|
|
3339
|
-
function
|
|
3340
|
-
|
|
3345
|
+
function ut(lt) {
|
|
3346
|
+
lt.target.id != i.field_name + "search" + P.value && lt.target.id != i.field_name && !lt.target.classList.contains("showOptions" + P.value) && (_t(), O.value = 0, w.value = !1);
|
|
3341
3347
|
}
|
|
3342
|
-
function kt(
|
|
3343
|
-
const Ke = `${
|
|
3348
|
+
function kt(lt) {
|
|
3349
|
+
const Ke = `${lt}${P.value}`, qt = document.getElementById(Ke);
|
|
3344
3350
|
qt && qt.scrollIntoView();
|
|
3345
3351
|
}
|
|
3346
|
-
function Q(
|
|
3347
|
-
const Ke = `${
|
|
3352
|
+
function Q(lt) {
|
|
3353
|
+
const Ke = `${lt}${P.value}`, qt = document.getElementById(Ke);
|
|
3348
3354
|
qt && qt.click();
|
|
3349
3355
|
}
|
|
3350
|
-
function io(
|
|
3351
|
-
|
|
3356
|
+
function io(lt) {
|
|
3357
|
+
lt === "ArrowDown" && O.value < he.value.length && (O.value++, kt(O.value)), lt === "ArrowUp" && O.value > 1 && (O.value--, kt(O.value)), lt === "Enter" && Q(O.value);
|
|
3352
3358
|
}
|
|
3353
|
-
function It(
|
|
3354
|
-
return
|
|
3359
|
+
function It(lt) {
|
|
3360
|
+
return lt.map((Ke, qt) => typeof Ke == "object" ? Ke : { id: Ke, name: Ke });
|
|
3355
3361
|
}
|
|
3356
3362
|
function Jt() {
|
|
3357
|
-
return i.options.map((
|
|
3363
|
+
return i.options.map((lt, Ke) => typeof lt == "object" ? lt : { id: lt, name: lt });
|
|
3358
3364
|
}
|
|
3359
|
-
function Ft(
|
|
3360
|
-
m.value = !0, h.value =
|
|
3365
|
+
function Ft(lt) {
|
|
3366
|
+
m.value = !0, h.value = lt, w.value = !1, c("update:modelValue", h.value.id), c("selected", h.value), c("selectionChanged", h.value);
|
|
3361
3367
|
}
|
|
3362
3368
|
function Be() {
|
|
3363
3369
|
i.show || (h.value = {}, T.value = "", c("update:modelValue", ""), Et());
|
|
@@ -3365,14 +3371,14 @@ const Ixe = /* @__PURE__ */ Ti(wue, [["render", Yue], ["__scopeId", "data-v-bb11
|
|
|
3365
3371
|
function _t() {
|
|
3366
3372
|
(!h.value || !h.value.id) && (h.value = {}, T.value = ""), c("selected", h.value);
|
|
3367
3373
|
}
|
|
3368
|
-
return Lu(T, (
|
|
3374
|
+
return Lu(T, (lt) => {
|
|
3369
3375
|
i.api_url ? (F.value = 1, H.value = null, K.value = 1, he.value = [], Xt("down")) : he.value = dn(), he.value.length === 0 && (h.value = {});
|
|
3370
|
-
}), Lu(h, (
|
|
3371
|
-
Xn(
|
|
3376
|
+
}), Lu(h, (lt) => {
|
|
3377
|
+
Xn(lt) && lt && lt.id !== i.modelValue && c("update:modelValue", lt.id);
|
|
3372
3378
|
}), Lu(
|
|
3373
3379
|
() => i.modelValue,
|
|
3374
|
-
(
|
|
3375
|
-
|
|
3380
|
+
(lt) => {
|
|
3381
|
+
lt ? (h.value = i.modelValue, i.api_url && m.value == !1 ? (T.value = h.value, Xt("down", !0)) : h.value = rn()) : h.value = {};
|
|
3376
3382
|
},
|
|
3377
3383
|
{ immediate: !0, deep: !0 }
|
|
3378
3384
|
), Lu(
|
|
@@ -3381,7 +3387,7 @@ const Ixe = /* @__PURE__ */ Ti(wue, [["render", Yue], ["__scopeId", "data-v-bb11
|
|
|
3381
3387
|
i.api_url || (he.value = Me.value = Jt()), h.value = rn();
|
|
3382
3388
|
},
|
|
3383
3389
|
{ immediate: !0, deep: !0 }
|
|
3384
|
-
), (
|
|
3390
|
+
), (lt, Ke) => {
|
|
3385
3391
|
var qt, We, pt;
|
|
3386
3392
|
return ke(), $e(Qo, null, [
|
|
3387
3393
|
u.show ? (ke(), $e("div", {
|
|
@@ -3745,7 +3751,7 @@ function rhe() {
|
|
|
3745
3751
|
}, he = (e) => {
|
|
3746
3752
|
const n = typeof e;
|
|
3747
3753
|
return e === null ? "null" : n === "object" && Array.isArray(e) ? "array" : n === "object" && K(e, String, (s, a) => a.isPrototypeOf(s)) ? "string" : n;
|
|
3748
|
-
}, Me = (e) => (n) => he(n) === e, ye = (e) => (n) => typeof n === e, Te = (e) => (n) => e === n, et = (e, n) => je(e) && K(e, n, (s, a) => H(s) === a), le = Me("string"), je = Me("object"), Xt = (e) => et(e, Object), it = Me("array"), oe = Te(null), Et = ye("boolean"), rn = Te(void 0), dn = (e) => e == null, Xe = (e) => !dn(e), ve = ye("function"), Xn = ye("number"),
|
|
3754
|
+
}, Me = (e) => (n) => he(n) === e, ye = (e) => (n) => typeof n === e, Te = (e) => (n) => e === n, et = (e, n) => je(e) && K(e, n, (s, a) => H(s) === a), le = Me("string"), je = Me("object"), Xt = (e) => et(e, Object), it = Me("array"), oe = Te(null), Et = ye("boolean"), rn = Te(void 0), dn = (e) => e == null, Xe = (e) => !dn(e), ve = ye("function"), Xn = ye("number"), ut = (e, n) => {
|
|
3749
3755
|
if (it(e)) {
|
|
3750
3756
|
for (let s = 0, a = e.length; s < a; ++s)
|
|
3751
3757
|
if (!n(e[s]))
|
|
@@ -3761,7 +3767,7 @@ function rhe() {
|
|
|
3761
3767
|
return e.apply(null, a);
|
|
3762
3768
|
};
|
|
3763
3769
|
}
|
|
3764
|
-
const _t = (e) => (n) => !e(n),
|
|
3770
|
+
const _t = (e) => (n) => !e(n), lt = (e) => () => {
|
|
3765
3771
|
throw new Error(e);
|
|
3766
3772
|
}, Ke = (e) => e(), qt = (e) => {
|
|
3767
3773
|
e();
|
|
@@ -4031,7 +4037,7 @@ function rhe() {
|
|
|
4031
4037
|
if (n.call(s, e[a], a, e))
|
|
4032
4038
|
return a;
|
|
4033
4039
|
return -1;
|
|
4034
|
-
},
|
|
4040
|
+
}, dt = (e) => e[e.length - 1], bt = (e) => {
|
|
4035
4041
|
let n = !1, s;
|
|
4036
4042
|
return (...a) => (n || (n = !0, s = e.apply(null, a)), s);
|
|
4037
4043
|
}, Wn = (e, n, s, a) => {
|
|
@@ -7107,7 +7113,7 @@ function rhe() {
|
|
|
7107
7113
|
or: Jt,
|
|
7108
7114
|
getOrThunk: Ke,
|
|
7109
7115
|
orThunk: Ke,
|
|
7110
|
-
getOrDie:
|
|
7116
|
+
getOrDie: lt(String(e)),
|
|
7111
7117
|
each: kt,
|
|
7112
7118
|
toOptional: Y.none
|
|
7113
7119
|
};
|
|
@@ -7509,7 +7515,7 @@ Required: ` + n.join(", "));
|
|
|
7509
7515
|
default: "40px"
|
|
7510
7516
|
}), n("content_css", {
|
|
7511
7517
|
processor: (s) => {
|
|
7512
|
-
const a = s === !1 || le(s) ||
|
|
7518
|
+
const a = s === !1 || le(s) || ut(s, le);
|
|
7513
7519
|
return a ? le(s) ? {
|
|
7514
7520
|
value: Je(s.split(","), Ss),
|
|
7515
7521
|
valid: a
|
|
@@ -7533,7 +7539,7 @@ Required: ` + n.join(", "));
|
|
|
7533
7539
|
default: !1
|
|
7534
7540
|
}), n("font_css", {
|
|
7535
7541
|
processor: (s) => {
|
|
7536
|
-
const a = le(s) ||
|
|
7542
|
+
const a = le(s) || ut(s, le);
|
|
7537
7543
|
return a ? {
|
|
7538
7544
|
value: it(s) ? s : Je(s.split(","), Ss),
|
|
7539
7545
|
valid: a
|
|
@@ -7670,7 +7676,7 @@ Required: ` + n.join(", "));
|
|
|
7670
7676
|
default: !1
|
|
7671
7677
|
}), n("allow_mathml_annotation_encodings", {
|
|
7672
7678
|
processor: (s) => {
|
|
7673
|
-
const a =
|
|
7679
|
+
const a = ut(s, le);
|
|
7674
7680
|
return a ? {
|
|
7675
7681
|
value: s,
|
|
7676
7682
|
valid: a
|
|
@@ -7755,7 +7761,7 @@ Required: ` + n.join(", "));
|
|
|
7755
7761
|
processor: "number",
|
|
7756
7762
|
default: 4
|
|
7757
7763
|
}), n("text_patterns", {
|
|
7758
|
-
processor: (s) =>
|
|
7764
|
+
processor: (s) => ut(s, je) || s === !1 ? {
|
|
7759
7765
|
value: Ob(s === !1 ? [] : s),
|
|
7760
7766
|
valid: !0
|
|
7761
7767
|
} : {
|
|
@@ -7845,7 +7851,7 @@ Required: ` + n.join(", "));
|
|
|
7845
7851
|
processor: "string",
|
|
7846
7852
|
default: "mceEditable"
|
|
7847
7853
|
}), n("noneditable_regexp", {
|
|
7848
|
-
processor: (s) =>
|
|
7854
|
+
processor: (s) => ut(s, sw) ? {
|
|
7849
7855
|
value: s,
|
|
7850
7856
|
valid: !0
|
|
7851
7857
|
} : sw(s) ? {
|
|
@@ -8186,7 +8192,7 @@ Required: ` + n.join(", "));
|
|
|
8186
8192
|
if (a && (ug(e) && y.isAtEnd() || yp(e) && y.isAtStart()) && (a = dg(a, e, pt, s, !0), Ib(a, s)))
|
|
8187
8193
|
return kl(e, a);
|
|
8188
8194
|
d = a && dg(a, e, Ib, s);
|
|
8189
|
-
const B =
|
|
8195
|
+
const B = dt(yn(yM(C, s), bC));
|
|
8190
8196
|
return B && (!d || !B.contains(d)) ? (ug(e) ? y = St.after(B) : y = St.before(B), y) : d ? kl(e, d) : null;
|
|
8191
8197
|
}, vu = (e) => ({
|
|
8192
8198
|
next: (n) => hg(ul.Forwards, n, e),
|
|
@@ -15142,18 +15148,18 @@ Options:${y}${s.join(y)}` : "";
|
|
|
15142
15148
|
for (let re = 0; re < G.length; re++) {
|
|
15143
15149
|
const ge = G[re];
|
|
15144
15150
|
if (!s(ge, B)) {
|
|
15145
|
-
if (C.length > 0 && n(ge,
|
|
15151
|
+
if (C.length > 0 && n(ge, dt(C)) && y++, ge.line = y, d(ge))
|
|
15146
15152
|
return !0;
|
|
15147
15153
|
C.push(ge);
|
|
15148
15154
|
}
|
|
15149
15155
|
}
|
|
15150
15156
|
return !1;
|
|
15151
|
-
}, B =
|
|
15157
|
+
}, B = dt(p.getClientRects());
|
|
15152
15158
|
if (!B)
|
|
15153
15159
|
return C;
|
|
15154
15160
|
const W = p.getNode();
|
|
15155
15161
|
return W && ($(W), uN(e, a, $, W)), C;
|
|
15156
|
-
}, eA = (e, n) => n.line > e, xU = (e, n) => n.line === e, SU = Be(JP, Qy.Up, mr, T0), kU = Be(JP, Qy.Down, T0, mr), dN = (e) =>
|
|
15162
|
+
}, eA = (e, n) => n.line > e, xU = (e, n) => n.line === e, SU = Be(JP, Qy.Up, mr, T0), kU = Be(JP, Qy.Down, T0, mr), dN = (e) => dt(e.getClientRects()), Tee = (e, n, s, a) => {
|
|
15157
15163
|
const d = vu(n);
|
|
15158
15164
|
let p, y, C, $;
|
|
15159
15165
|
const B = [];
|
|
@@ -15166,7 +15172,7 @@ Options:${y}${s.join(y)}` : "";
|
|
|
15166
15172
|
const G = dN($);
|
|
15167
15173
|
if (C(G, X))
|
|
15168
15174
|
continue;
|
|
15169
|
-
B.length > 0 && y(G,
|
|
15175
|
+
B.length > 0 && y(G, dt(B)) && W++;
|
|
15170
15176
|
const re = cm(G);
|
|
15171
15177
|
if (re.position = $, re.line = W, s(re))
|
|
15172
15178
|
return B;
|
|
@@ -15200,7 +15206,7 @@ Options:${y}${s.join(y)}` : "";
|
|
|
15200
15206
|
const re = $(X);
|
|
15201
15207
|
return re && B(re) && F0(X, re) ? oc(n, e, re.getNode(!y), y, !1) : G ? tA(e, X.toRange(), !1) : Y.none();
|
|
15202
15208
|
}, g1 = (e, n, s, a, d, p) => {
|
|
15203
|
-
const y = Lb(n, e.getBody(), s), C =
|
|
15209
|
+
const y = Lb(n, e.getBody(), s), C = dt(y.getClientRects()), $ = n === Qy.Down, B = e.getBody();
|
|
15204
15210
|
if (!C)
|
|
15205
15211
|
return Y.none();
|
|
15206
15212
|
if (BP(e)) {
|
|
@@ -15216,7 +15222,7 @@ Options:${y}${s.join(y)}` : "";
|
|
|
15216
15222
|
if (a(y) ? de = y.getNode() : d(y) ? de = y.getNode(!0) : de = iv(s), de) {
|
|
15217
15223
|
const Oe = Tee(n, B, CU(1), de);
|
|
15218
15224
|
let Ze = cN(yn(Oe, hN(1)), re);
|
|
15219
|
-
if (Ze || (Ze =
|
|
15225
|
+
if (Ze || (Ze = dt(yn(Oe, hN(0))), Ze))
|
|
15220
15226
|
return tA(e, Ze.position.toRange(), !1);
|
|
15221
15227
|
}
|
|
15222
15228
|
return G.length === 0 ? E3(e, $).filter($ ? d : a).map((Oe) => DP(e, Oe.toRange(), !1)) : Y.none();
|
|
@@ -17832,7 +17838,7 @@ Input object: ` + Zy(e.input), VA = (e, n) => LW(e, zo(n, bS)), YW = It(PL), OS
|
|
|
17832
17838
|
type: e,
|
|
17833
17839
|
...BD(s)
|
|
17834
17840
|
}), ND = (e, n, s) => {
|
|
17835
|
-
const a =
|
|
17841
|
+
const a = lt("Function not supported on simulated event.");
|
|
17836
17842
|
return {
|
|
17837
17843
|
bubbles: !0,
|
|
17838
17844
|
cancelBubble: !1,
|
|
@@ -19733,7 +19739,7 @@ Input object: ` + Zy(e.input), VA = (e, n) => LW(e, zo(n, bS)), YW = It(PL), OS
|
|
|
19733
19739
|
}, tY = (e) => le(e) ? {
|
|
19734
19740
|
value: e.split(/[ ,]/),
|
|
19735
19741
|
valid: !0
|
|
19736
|
-
} :
|
|
19742
|
+
} : ut(e, le) ? {
|
|
19737
19743
|
value: e,
|
|
19738
19744
|
valid: !0
|
|
19739
19745
|
} : {
|
|
@@ -19757,7 +19763,7 @@ Input object: ` + Zy(e.input), VA = (e, n) => LW(e, zo(n, bS)), YW = It(PL), OS
|
|
|
19757
19763
|
case "string[]":
|
|
19758
19764
|
return tY;
|
|
19759
19765
|
case "object[]":
|
|
19760
|
-
return (s) =>
|
|
19766
|
+
return (s) => ut(s, je);
|
|
19761
19767
|
case "regexp":
|
|
19762
19768
|
return (s) => et(s, RegExp);
|
|
19763
19769
|
default:
|
|
@@ -20887,7 +20893,7 @@ function ahe() {
|
|
|
20887
20893
|
}
|
|
20888
20894
|
const Xe = (t) => (r) => !t(r), ve = (t) => () => {
|
|
20889
20895
|
throw new Error(t);
|
|
20890
|
-
}, Xn = (t) => t(),
|
|
20896
|
+
}, Xn = (t) => t(), ut = oe(!1), kt = oe(!0);
|
|
20891
20897
|
class Q {
|
|
20892
20898
|
constructor(r, l) {
|
|
20893
20899
|
this.tag = r, this.value = l;
|
|
@@ -20962,7 +20968,7 @@ function ahe() {
|
|
|
20962
20968
|
const io = Array.prototype.slice, It = Array.prototype.indexOf, Jt = Array.prototype.push, Ft = (t, r) => It.call(t, r), Be = (t, r) => {
|
|
20963
20969
|
const l = Ft(t, r);
|
|
20964
20970
|
return l === -1 ? Q.none() : Q.some(l);
|
|
20965
|
-
}, _t = (t, r) => Ft(t, r) > -1,
|
|
20971
|
+
}, _t = (t, r) => Ft(t, r) > -1, lt = (t, r) => {
|
|
20966
20972
|
for (let l = 0, f = t.length; l < f; l++) {
|
|
20967
20973
|
const b = t[l];
|
|
20968
20974
|
if (r(b, l))
|
|
@@ -21028,7 +21034,7 @@ function ahe() {
|
|
|
21028
21034
|
break;
|
|
21029
21035
|
}
|
|
21030
21036
|
return Q.none();
|
|
21031
|
-
}, Ne = (t, r) => _i(t, r,
|
|
21037
|
+
}, Ne = (t, r) => _i(t, r, ut), ze = (t, r) => {
|
|
21032
21038
|
for (let l = 0, f = t.length; l < f; l++) {
|
|
21033
21039
|
const b = t[l];
|
|
21034
21040
|
if (r(b, l))
|
|
@@ -21133,7 +21139,7 @@ function ahe() {
|
|
|
21133
21139
|
}, Fi = (t, r, l) => t.isSome() && r.isSome() ? Q.some(l(t.getOrDie(), r.getOrDie())) : Q.none(), $i = (t, r, l, f) => t.isSome() && r.isSome() && l.isSome() ? Q.some(f(t.getOrDie(), r.getOrDie(), l.getOrDie())) : Q.none(), xs = (t, r) => t != null ? Q.some(r(t)) : Q.none(), jn = (t, r) => t ? Q.some(r) : Q.none(), er = (t, r) => t + r, di = (t, r) => t.substring(r), Pl = (t, r, l) => r === "" || t.length >= r.length && t.substr(l, l + r.length) === r, Vl = (t, r) => Ws(t, r) ? di(t, r.length) : t, Ls = (t, r) => bi(t, r) ? t : er(t, r), Or = (t, r, l = 0, f) => {
|
|
21134
21140
|
const b = t.indexOf(r, l);
|
|
21135
21141
|
return b !== -1 ? K(f) ? !0 : b + r.length <= f : !1;
|
|
21136
|
-
}, Ws = (t, r) => Pl(t, r, 0), bi = (t, r) => Pl(t, r, t.length - r.length), vr = ((t) => (r) => r.replace(t, ""))(/^\s+|\s+$/g), Pe = (t) => t.length > 0, Ce = (t) => !Pe(t),
|
|
21142
|
+
}, Ws = (t, r) => Pl(t, r, 0), bi = (t, r) => Pl(t, r, t.length - r.length), vr = ((t) => (r) => r.replace(t, ""))(/^\s+|\s+$/g), Pe = (t) => t.length > 0, Ce = (t) => !Pe(t), dt = (t) => {
|
|
21137
21143
|
const r = parseFloat(t);
|
|
21138
21144
|
return isNaN(r) ? Q.none() : Q.some(r);
|
|
21139
21145
|
}, bt = (t) => t.style !== void 0 && ye(t.style.getPropertyValue), Wn = (t, r) => {
|
|
@@ -21201,7 +21207,7 @@ function ahe() {
|
|
|
21201
21207
|
const l = t.dom, f = r.dom;
|
|
21202
21208
|
return l === f ? !1 : l.contains(f);
|
|
21203
21209
|
}, hr = (t) => Ot.fromDom(t.dom.ownerDocument), tu = (t) => Oi(t) ? t : hr(t), bl = (t) => Ot.fromDom(tu(t).dom.documentElement), Hl = (t) => Ot.fromDom(tu(t).dom.defaultView), oi = (t) => Q.from(t.dom.parentNode).map(Ot.fromDom), Qu = (t) => oi(t), Ra = (t) => Q.from(t.dom.parentElement).map(Ot.fromDom), Fu = (t, r) => {
|
|
21204
|
-
const l = ye(r) ? r :
|
|
21210
|
+
const l = ye(r) ? r : ut;
|
|
21205
21211
|
let f = t.dom;
|
|
21206
21212
|
const b = [];
|
|
21207
21213
|
for (; f.parentNode !== null && f.parentNode !== void 0; ) {
|
|
@@ -21743,7 +21749,7 @@ function ahe() {
|
|
|
21743
21749
|
inner: t,
|
|
21744
21750
|
fold: (x, S) => S(t),
|
|
21745
21751
|
isValue: kt,
|
|
21746
|
-
isError:
|
|
21752
|
+
isError: ut,
|
|
21747
21753
|
map: (x) => Eo.value(x(t)),
|
|
21748
21754
|
mapError: f,
|
|
21749
21755
|
bind: r,
|
|
@@ -21765,12 +21771,12 @@ function ahe() {
|
|
|
21765
21771
|
tag: !1,
|
|
21766
21772
|
inner: t,
|
|
21767
21773
|
fold: (f, b) => f(t),
|
|
21768
|
-
isValue:
|
|
21774
|
+
isValue: ut,
|
|
21769
21775
|
isError: kt,
|
|
21770
21776
|
map: r,
|
|
21771
21777
|
mapError: (f) => Eo.error(f(t)),
|
|
21772
21778
|
bind: r,
|
|
21773
|
-
exists:
|
|
21779
|
+
exists: ut,
|
|
21774
21780
|
forall: kt,
|
|
21775
21781
|
getOr: Et,
|
|
21776
21782
|
or: Et,
|
|
@@ -22122,7 +22128,7 @@ Required: ` + r.join(", "));
|
|
|
22122
22128
|
}, Wo = (t, r) => tn(t, r), Xs = (t, r) => Rn(t, r), Hs = (t) => ko(t), Lr = (t, r) => t.length === 0 ? Eo.value(r) : Eo.value(wr(r, vd.apply(void 0, t))), yl = (t) => Eo.error(Je(t)), Wu = (t, r) => {
|
|
22123
22129
|
const l = Dt(t);
|
|
22124
22130
|
return l.errors.length > 0 ? yl(l.errors) : Lr(l.values, r);
|
|
22125
|
-
}, lh = (t) => ye(t) ? t :
|
|
22131
|
+
}, lh = (t) => ye(t) ? t : ut, Bl = (t, r, l) => {
|
|
22126
22132
|
let f = t.dom;
|
|
22127
22133
|
const b = lh(l);
|
|
22128
22134
|
for (; f.parentNode; ) {
|
|
@@ -22139,7 +22145,7 @@ Required: ` + r.join(", "));
|
|
|
22139
22145
|
return f.orThunk(() => b(t) ? Q.none() : Bl(t, r, b));
|
|
22140
22146
|
}, Jf = (t, r) => es(t.element, r.event.target), ju = {
|
|
22141
22147
|
can: kt,
|
|
22142
|
-
abort:
|
|
22148
|
+
abort: ut,
|
|
22143
22149
|
run: le
|
|
22144
22150
|
}, Xu = (t) => {
|
|
22145
22151
|
if (!Kr(t, "can") && !Kr(t, "abort") && !Kr(t, "run"))
|
|
@@ -22150,7 +22156,7 @@ Required: ` + r.join(", "));
|
|
|
22150
22156
|
};
|
|
22151
22157
|
}, Gm = (t, r) => (...l) => Xo(t, (f, b) => f && r(b).apply(void 0, l), !0), Xg = (t, r) => (...l) => Xo(t, (f, b) => f || r(b).apply(void 0, l), !1), qg = (t) => ye(t) ? {
|
|
22152
22158
|
can: kt,
|
|
22153
|
-
abort:
|
|
22159
|
+
abort: ut,
|
|
22154
22160
|
run: t
|
|
22155
22161
|
} : t, w2 = (t) => {
|
|
22156
22162
|
const r = Gm(t, (b) => b.can), l = Xg(t, (b) => b.abort);
|
|
@@ -22226,7 +22232,7 @@ Required: ` + r.join(", "));
|
|
|
22226
22232
|
const f = r.partUids[l];
|
|
22227
22233
|
return ak(t, f);
|
|
22228
22234
|
}, b0 = (t, r) => $t(t, (l, f) => {
|
|
22229
|
-
const b = f.event, x = l.getSystem().getByDom(b.target).getOrThunk(() => nf(b.target, (E) => l.getSystem().getByDom(E).toOptional(),
|
|
22235
|
+
const b = f.event, x = l.getSystem().getByDom(b.target).getOrThunk(() => nf(b.target, (E) => l.getSystem().getByDom(E).toOptional(), ut).getOr(l));
|
|
22230
22236
|
r(l, x, f);
|
|
22231
22237
|
}), np = (t) => $t(t, (r, l) => {
|
|
22232
22238
|
l.cut();
|
|
@@ -22697,7 +22703,7 @@ Required: ` + r.join(", "));
|
|
|
22697
22703
|
if (t.stack !== void 0) {
|
|
22698
22704
|
const r = t.stack.split(`
|
|
22699
22705
|
`);
|
|
22700
|
-
return Ne(r, (l) => l.indexOf("alloy") > 0 && !
|
|
22706
|
+
return Ne(r, (l) => l.indexOf("alloy") > 0 && !lt(ub, (f) => l.indexOf(f) > -1)).getOr(bk);
|
|
22701
22707
|
} else
|
|
22702
22708
|
return bk;
|
|
22703
22709
|
}, X4 = {
|
|
@@ -22817,7 +22823,7 @@ Check the ` + hh() + " event handlers"), !1) : !0;
|
|
|
22817
22823
|
removeFromGui: l("removeFromGui"),
|
|
22818
22824
|
getByUid: l("getByUid"),
|
|
22819
22825
|
getByDom: l("getByDom"),
|
|
22820
|
-
isConnected:
|
|
22826
|
+
isConnected: ut
|
|
22821
22827
|
};
|
|
22822
22828
|
}, J4 = _0(), hb = Pn("alloy-premade"), yh = (t) => (Object.defineProperty(t.element.dom, hb, {
|
|
22823
22829
|
value: t.uid,
|
|
@@ -22924,7 +22930,7 @@ The behaviours that can trigger it are: ` + JSON.stringify(We(r, (l) => l.name),
|
|
|
22924
22930
|
}) : V2(l, t);
|
|
22925
22931
|
}, s5 = (t, r) => {
|
|
22926
22932
|
const l = Aa(t, (f, b) => (f.length === 1 ? Eo.value(f[0].handler) : dv(f, r, b)).map((S) => {
|
|
22927
|
-
const E = uv(S), D = f.length > 1 ? fo(r[b], (L) =>
|
|
22933
|
+
const E = uv(S), D = f.length > 1 ? fo(r[b], (L) => lt(f, (V) => V.name === L)).join(" > ") : f[0].name;
|
|
22928
22934
|
return Xs(b, o5(E, D));
|
|
22929
22935
|
}));
|
|
22930
22936
|
return Wu(l, {});
|
|
@@ -23050,8 +23056,8 @@ The behaviours that can trigger it are: ` + JSON.stringify(We(r, (l) => l.name),
|
|
|
23050
23056
|
const He = t.domChildren;
|
|
23051
23057
|
Ak(r, He);
|
|
23052
23058
|
}, Ue = () => {
|
|
23053
|
-
const He = r,
|
|
23054
|
-
|
|
23059
|
+
const He = r, ct = t.value.getOrUndefined();
|
|
23060
|
+
ct !== Cd(He) && bp(He, ct ?? "");
|
|
23055
23061
|
};
|
|
23056
23062
|
return E(), xe(), j(), t.innerHtml.fold(we, qe), Ue(), r;
|
|
23057
23063
|
}, gb = (t) => {
|
|
@@ -23087,19 +23093,19 @@ The behaviours that can trigger it are: ` + JSON.stringify(We(r, (l) => l.name),
|
|
|
23087
23093
|
const f = { "alloy.base.behaviour": St(t) };
|
|
23088
23094
|
return ag(l, t.eventOrder, r, f).getOrDie();
|
|
23089
23095
|
}, c5 = (t, r) => {
|
|
23090
|
-
const l = () => He, f = In(J4), b = jt(hm(t)), x = l5(t), S = t5(x), E = Tk(x), D = Mk(b, S, E), L = Tc(D, r), V = hv(b, S, E), j = In(b.components), ne = (
|
|
23091
|
-
f.set(
|
|
23096
|
+
const l = () => He, f = In(J4), b = jt(hm(t)), x = l5(t), S = t5(x), E = Tk(x), D = Mk(b, S, E), L = Tc(D, r), V = hv(b, S, E), j = In(b.components), ne = (ct) => {
|
|
23097
|
+
f.set(ct);
|
|
23092
23098
|
}, ae = () => {
|
|
23093
23099
|
f.set(_0(l));
|
|
23094
23100
|
}, pe = () => {
|
|
23095
|
-
const
|
|
23101
|
+
const ct = Jr(L), gt = Se(ct, (mn) => f.get().getByDom(mn).fold(() => [], Co));
|
|
23096
23102
|
j.set(gt);
|
|
23097
|
-
}, xe = (
|
|
23103
|
+
}, xe = (ct) => {
|
|
23098
23104
|
const gt = E;
|
|
23099
|
-
return (ye(gt[
|
|
23100
|
-
throw new Error("Could not find " +
|
|
23105
|
+
return (ye(gt[ct.name()]) ? gt[ct.name()] : () => {
|
|
23106
|
+
throw new Error("Could not find " + ct.name() + " in " + JSON.stringify(t, null, 2));
|
|
23101
23107
|
})();
|
|
23102
|
-
}, qe = (
|
|
23108
|
+
}, qe = (ct) => ye(E[ct.name()]), we = () => b.apis, Ue = (ct) => E[ct]().map((gt) => gt.state.readState()).getOr("not enabled"), He = {
|
|
23103
23109
|
uid: t.uid,
|
|
23104
23110
|
getSystem: f.get,
|
|
23105
23111
|
config: xe,
|
|
@@ -23148,7 +23154,7 @@ The behaviours that can trigger it are: ` + JSON.stringify(We(r, (l) => l.name),
|
|
|
23148
23154
|
uid: x,
|
|
23149
23155
|
getSystem: l.get,
|
|
23150
23156
|
config: Q.none,
|
|
23151
|
-
hasConfigured:
|
|
23157
|
+
hasConfigured: ut,
|
|
23152
23158
|
connect: f,
|
|
23153
23159
|
disconnect: b,
|
|
23154
23160
|
getApis: () => ({}),
|
|
@@ -23170,7 +23176,7 @@ The behaviours that can trigger it are: ` + JSON.stringify(We(r, (l) => l.name),
|
|
|
23170
23176
|
var Ik = (t, r, l, f, b) => t(l, f) ? Q.some(l) : ye(b) && b(l) ? Q.none() : r(l, f, b);
|
|
23171
23177
|
const U2 = (t, r, l) => {
|
|
23172
23178
|
let f = t.dom;
|
|
23173
|
-
const b = ye(l) ? l :
|
|
23179
|
+
const b = ye(l) ? l : ut;
|
|
23174
23180
|
for (; f.parentNode; ) {
|
|
23175
23181
|
f = f.parentNode;
|
|
23176
23182
|
const x = Ot.fromDom(f);
|
|
@@ -23218,7 +23224,7 @@ The behaviours that can trigger it are: ` + JSON.stringify(We(r, (l) => l.name),
|
|
|
23218
23224
|
ce(f, P0);
|
|
23219
23225
|
}
|
|
23220
23226
|
};
|
|
23221
|
-
}, q2 = (t, r) => Fk(r).exists((l) => lg(t, l)), lg = (t, r) => j2(r, (l) => es(l, t.element),
|
|
23227
|
+
}, q2 = (t, r) => Fk(r).exists((l) => lg(t, l)), lg = (t, r) => j2(r, (l) => es(l, t.element), ut) || q2(t, r), ll = (t, r, l, f, b, x, S, E = !1) => ({
|
|
23222
23228
|
x: t,
|
|
23223
23229
|
y: r,
|
|
23224
23230
|
bubble: l,
|
|
@@ -23457,7 +23463,7 @@ Receiver: ` + Ju(r.element), L, x.data);
|
|
|
23457
23463
|
}, x5 = (t, r, l, f, b, x) => {
|
|
23458
23464
|
const S = f.width, E = f.height, D = (V, j, ne, ae, pe) => {
|
|
23459
23465
|
const xe = V(l, f, b, t, x), qe = Yk(xe, S, E, x);
|
|
23460
|
-
return qe.fold(oe(qe), (we, Ue, He,
|
|
23466
|
+
return qe.fold(oe(qe), (we, Ue, He, ct) => (pe === ct ? He > ae || Ue > ne : !pe && ct) ? qe : gm.nofit(j, ne, ae, pe));
|
|
23461
23467
|
};
|
|
23462
23468
|
return Xo(r, (V, j) => {
|
|
23463
23469
|
const ne = dn(D, j);
|
|
@@ -24054,7 +24060,7 @@ Receiver: ` + Ju(r.element), L, x.data);
|
|
|
24054
24060
|
"placement"
|
|
24055
24061
|
])
|
|
24056
24062
|
], Aw = [
|
|
24057
|
-
st("useFixed",
|
|
24063
|
+
st("useFixed", ut),
|
|
24058
24064
|
$s("getBounds")
|
|
24059
24065
|
], F0 = [
|
|
24060
24066
|
Ds("anchor", Vv),
|
|
@@ -24217,7 +24223,7 @@ Receiver: ` + Ju(r.element), L, x.data);
|
|
|
24217
24223
|
}, $C = (t, r, l) => {
|
|
24218
24224
|
const f = r.getAttachPoint(t);
|
|
24219
24225
|
an(t.element, "position", kl.getMode(f)), Xv(t, "visibility", r.cloakVisibilityAttr, "hidden");
|
|
24220
|
-
}, Z0 = (t) =>
|
|
24226
|
+
}, Z0 = (t) => lt([
|
|
24221
24227
|
"top",
|
|
24222
24228
|
"left",
|
|
24223
24229
|
"right",
|
|
@@ -24267,7 +24273,7 @@ Receiver: ` + Ju(r.element), L, x.data);
|
|
|
24267
24273
|
apis: Z5,
|
|
24268
24274
|
state: H5
|
|
24269
24275
|
}), mg = oe("dismiss.popups"), Om = oe("reposition.popups"), qv = oe("mouse.released"), Dw = il([
|
|
24270
|
-
st("isExtraPart",
|
|
24276
|
+
st("isExtraPart", ut),
|
|
24271
24277
|
Ai("fireEventInstead", [st("event", nm())])
|
|
24272
24278
|
]), Uc = (t) => {
|
|
24273
24279
|
const r = Ml("Dismissal", Dw, t);
|
|
@@ -24749,7 +24755,7 @@ Components: ` + JSON.stringify(r.components, null, 2));
|
|
|
24749
24755
|
op(t, r, Yw)
|
|
24750
24756
|
])
|
|
24751
24757
|
}), iE = [
|
|
24752
|
-
zs("disabled",
|
|
24758
|
+
zs("disabled", ut),
|
|
24753
24759
|
st("useNative", !0),
|
|
24754
24760
|
$s("disableClass"),
|
|
24755
24761
|
bs("onDisabled"),
|
|
@@ -24763,7 +24769,7 @@ Components: ` + JSON.stringify(r.components, null, 2));
|
|
|
24763
24769
|
}), YC = (t, r, l, f) => {
|
|
24764
24770
|
const b = Oc(t.element, "." + r.highlightClass);
|
|
24765
24771
|
pt(b, (x) => {
|
|
24766
|
-
|
|
24772
|
+
lt(f, (E) => es(E.element, x)) || (Yr(x, r.highlightClass), t.getSystem().getByDom(x).each((E) => {
|
|
24767
24773
|
r.onDehighlight(t, E), qo(E, tp());
|
|
24768
24774
|
}));
|
|
24769
24775
|
});
|
|
@@ -24936,25 +24942,25 @@ Components: ` + JSON.stringify(r.components, null, 2));
|
|
|
24936
24942
|
st("useTabstopAt", kt),
|
|
24937
24943
|
$s("visibilitySelector")
|
|
24938
24944
|
].concat([t]), l = (we, Ue) => {
|
|
24939
|
-
const He = we.visibilitySelector.bind((
|
|
24945
|
+
const He = we.visibilitySelector.bind((ct) => _d(Ue, ct)).getOr(Ue);
|
|
24940
24946
|
return ei(He) > 0;
|
|
24941
24947
|
}, f = (we, Ue) => {
|
|
24942
|
-
const He = Oc(we.element, Ue.selector),
|
|
24943
|
-
return Q.from(
|
|
24948
|
+
const He = Oc(we.element, Ue.selector), ct = fo(He, (gt) => l(Ue, gt));
|
|
24949
|
+
return Q.from(ct[Ue.firstTabstop]);
|
|
24944
24950
|
}, b = (we, Ue) => Ue.focusManager.get(we).bind((He) => _d(He, Ue.selector)), x = (we, Ue) => l(we, Ue) && we.useTabstopAt(Ue), S = (we, Ue, He) => {
|
|
24945
|
-
f(we, Ue).each((
|
|
24946
|
-
Ue.focusManager.set(we,
|
|
24951
|
+
f(we, Ue).each((ct) => {
|
|
24952
|
+
Ue.focusManager.set(we, ct);
|
|
24947
24953
|
});
|
|
24948
|
-
}, E = (we, Ue, He,
|
|
24954
|
+
}, E = (we, Ue, He, ct, gt) => gt(Ue, He, (mn) => x(ct, mn)).fold(() => ct.cyclic ? Q.some(!0) : Q.none(), (mn) => (ct.focusManager.set(we, mn), Q.some(!0))), D = (we, Ue, He, ct) => {
|
|
24949
24955
|
const gt = Oc(we.element, He.selector);
|
|
24950
|
-
return b(we, He).bind((mn) => ze(gt, dn(es, mn)).bind((xt) => E(we, gt, xt, He,
|
|
24956
|
+
return b(we, He).bind((mn) => ze(gt, dn(es, mn)).bind((xt) => E(we, gt, xt, He, ct)));
|
|
24951
24957
|
}, L = (we, Ue, He) => {
|
|
24952
|
-
const
|
|
24953
|
-
return D(we, Ue, He,
|
|
24958
|
+
const ct = He.cyclic ? Bt : Cn;
|
|
24959
|
+
return D(we, Ue, He, ct);
|
|
24954
24960
|
}, V = (we, Ue, He) => {
|
|
24955
|
-
const
|
|
24956
|
-
return D(we, Ue, He,
|
|
24957
|
-
}, j = (we) => Qu(we).bind(Sc).exists((Ue) => es(Ue, we)), ne = (we, Ue, He) => b(we, He).filter((
|
|
24961
|
+
const ct = He.cyclic ? qs : Gs;
|
|
24962
|
+
return D(we, Ue, He, ct);
|
|
24963
|
+
}, j = (we) => Qu(we).bind(Sc).exists((Ue) => es(Ue, we)), ne = (we, Ue, He) => b(we, He).filter((ct) => !He.useTabstopAt(ct)).bind((ct) => (j(ct) ? L : V)(we, Ue, He)), ae = (we, Ue, He) => He.onEnter.bind((ct) => ct(we, Ue)), pe = (we, Ue, He) => He.onEscape.bind((ct) => ct(we, Ue)), xe = oe([
|
|
24958
24964
|
ms(pr([
|
|
24959
24965
|
Jl,
|
|
24960
24966
|
Un(nt)
|
|
@@ -24970,7 +24976,7 @@ Components: ` + JSON.stringify(r.components, null, 2));
|
|
|
24970
24976
|
]);
|
|
24971
24977
|
return Bd(r, fh.init, xe, qe, () => Q.some(S));
|
|
24972
24978
|
};
|
|
24973
|
-
var sx = ec(As("cyclic",
|
|
24979
|
+
var sx = ec(As("cyclic", ut)), Xb = ec(As("cyclic", kt));
|
|
24974
24980
|
const pf = (t, r, l) => (GO(t, l, wl()), Q.some(!0)), Ca = (t, r, l) => X0(l) && Un(Kt)(r.event) ? Q.none() : pf(t, r, l), Sm = (t, r) => Q.some(!0), cE = [
|
|
24975
24981
|
st("execute", Ca),
|
|
24976
24982
|
st("useSpace", !1),
|
|
@@ -25887,7 +25893,7 @@ Components: ` + JSON.stringify(r.components, null, 2));
|
|
|
25887
25893
|
}, He = (Wt, On) => {
|
|
25888
25894
|
const yo = S(On);
|
|
25889
25895
|
return b.collapse(yo).bind((Zo) => (pe(Wt, Zo), xe(Wt, b, Zo).map((eo) => (t.onCollapseMenu(Wt, On, eo), eo))));
|
|
25890
|
-
},
|
|
25896
|
+
}, ct = (Wt, On) => {
|
|
25891
25897
|
const yo = S(On);
|
|
25892
25898
|
return b.refresh(yo).bind((Zo) => (pe(Wt, Zo), xe(Wt, b, Zo)));
|
|
25893
25899
|
}, gt = (Wt, On) => X0(On.element) ? Q.none() : Ue(Wt, On, qe.HighlightSubmenu), mn = (Wt, On) => X0(On.element) ? Q.none() : He(Wt, On), Sn = (Wt, On) => He(Wt, On).orThunk(() => t.onEscape(Wt, On).map(() => Wt)), xt = (Wt) => (On, yo) => _d(yo.getSource(), `.${t.markers.item}`).bind((Zo) => On.getSystem().getByDom(Zo).toOptional().bind((eo) => Wt(On, eo).map(kt))), En = nr([
|
|
@@ -25921,7 +25927,7 @@ Components: ` + JSON.stringify(r.components, null, 2));
|
|
|
25921
25927
|
}),
|
|
25922
25928
|
...t.navigateOnHover ? [$t(EE(), (Wt, On) => {
|
|
25923
25929
|
const yo = On.event.item;
|
|
25924
|
-
|
|
25930
|
+
ct(Wt, yo), Ue(Wt, yo, qe.HighlightParent), t.onHover(Wt, yo);
|
|
25925
25931
|
})] : []
|
|
25926
25932
|
]), fn = (Wt) => ue.getHighlighted(Wt).bind(ue.getHighlighted), Bn = (Wt) => {
|
|
25927
25933
|
fn(Wt).each((On) => {
|
|
@@ -26177,7 +26183,7 @@ Components: ` + JSON.stringify(r.components, null, 2));
|
|
|
26177
26183
|
Ai("fireDismissalEventInstead", [st("event", nm())]),
|
|
26178
26184
|
Ai("fireRepositionEventInstead", [st("event", g0())]),
|
|
26179
26185
|
st("getRelated", Q.none),
|
|
26180
|
-
st("isExtraPart",
|
|
26186
|
+
st("isExtraPart", ut),
|
|
26181
26187
|
st("eventOrder", Q.none)
|
|
26182
26188
|
],
|
|
26183
26189
|
factory: hT,
|
|
@@ -26905,7 +26911,7 @@ Components: ` + JSON.stringify(r.components, null, 2));
|
|
|
26905
26911
|
const vs = l.createElement("template");
|
|
26906
26912
|
vs.content && vs.content.ownerDocument && (l = vs.content.ownerDocument);
|
|
26907
26913
|
}
|
|
26908
|
-
let
|
|
26914
|
+
let ct, gt = "";
|
|
26909
26915
|
const {
|
|
26910
26916
|
implementation: mn,
|
|
26911
26917
|
createNodeIterator: Sn,
|
|
@@ -26989,9 +26995,9 @@ Components: ` + JSON.stringify(r.components, null, 2));
|
|
|
26989
26995
|
throw c1('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');
|
|
26990
26996
|
if (typeof yt.TRUSTED_TYPES_POLICY.createScriptURL != "function")
|
|
26991
26997
|
throw c1('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');
|
|
26992
|
-
|
|
26998
|
+
ct = yt.TRUSTED_TYPES_POLICY, gt = ct.createHTML("");
|
|
26993
26999
|
} else
|
|
26994
|
-
|
|
27000
|
+
ct === void 0 && (ct = h6(ae, b)), ct !== null && typeof gt == "string" && (gt = ct.createHTML(""));
|
|
26995
27001
|
od && od(yt), o4 = yt;
|
|
26996
27002
|
}
|
|
26997
27003
|
}, mte = $r({}, ["mi", "mo", "mn", "ms", "mtext"]), gte = $r({}, ["annotation-xml"]), Sae = $r({}, ["title", "style", "font", "a", "script"]), pte = $r({}, [...Cx, ...Tx, ...c6]), bte = $r({}, [..._x, ...AT]), kae = function(yt) {
|
|
@@ -27043,7 +27049,7 @@ Components: ` + JSON.stringify(r.components, null, 2));
|
|
|
27043
27049
|
us = Mu && Mu[0];
|
|
27044
27050
|
}
|
|
27045
27051
|
SR === "application/xhtml+xml" && n4 === DO && (yt = '<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>' + yt + "</body></html>");
|
|
27046
|
-
const qa =
|
|
27052
|
+
const qa = ct ? ct.createHTML(yt) : yt;
|
|
27047
27053
|
if (n4 === DO)
|
|
27048
27054
|
try {
|
|
27049
27055
|
ro = new ne().parseFromString(qa, SR);
|
|
@@ -27177,14 +27183,14 @@ Components: ` + JSON.stringify(r.components, null, 2));
|
|
|
27177
27183
|
kR(Mu, yt);
|
|
27178
27184
|
continue;
|
|
27179
27185
|
}
|
|
27180
|
-
if (
|
|
27186
|
+
if (ct && typeof ae == "object" && typeof ae.getAttributeType == "function" && !Lf)
|
|
27181
27187
|
switch (ae.getAttributeType(Tte, CR)) {
|
|
27182
27188
|
case "TrustedHTML": {
|
|
27183
|
-
cd =
|
|
27189
|
+
cd = ct.createHTML(cd);
|
|
27184
27190
|
break;
|
|
27185
27191
|
}
|
|
27186
27192
|
case "TrustedScriptURL": {
|
|
27187
|
-
cd =
|
|
27193
|
+
cd = ct.createScriptURL(cd);
|
|
27188
27194
|
break;
|
|
27189
27195
|
}
|
|
27190
27196
|
}
|
|
@@ -27223,7 +27229,7 @@ Components: ` + JSON.stringify(r.components, null, 2));
|
|
|
27223
27229
|
else {
|
|
27224
27230
|
if (!J_ && !Eg && !AO && // eslint-disable-next-line unicorn/prefer-includes
|
|
27225
27231
|
vs.indexOf("<") === -1)
|
|
27226
|
-
return
|
|
27232
|
+
return ct && LQ ? ct.createHTML(vs) : vs;
|
|
27227
27233
|
if (ro = Ote(vs), !ro)
|
|
27228
27234
|
return J_ ? null : LQ ? gt : "";
|
|
27229
27235
|
}
|
|
@@ -27245,7 +27251,7 @@ Components: ` + JSON.stringify(r.components, null, 2));
|
|
|
27245
27251
|
return AO && Ao["!doctype"] && ro.ownerDocument && ro.ownerDocument.doctype && ro.ownerDocument.doctype.name && sd(MT, ro.ownerDocument.doctype.name) && (Lf = "<!DOCTYPE " + ro.ownerDocument.doctype.name + `>
|
|
27246
27252
|
` + Lf), Eg && $T([cs, Dr, Bs], (E1) => {
|
|
27247
27253
|
Lf = kx(Lf, E1, " ");
|
|
27248
|
-
}),
|
|
27254
|
+
}), ct && LQ ? ct.createHTML(Lf) : Lf;
|
|
27249
27255
|
}, r.setConfig = function() {
|
|
27250
27256
|
let vs = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
27251
27257
|
LY(vs), wR = !0;
|
|
@@ -27481,7 +27487,7 @@ Components: ` + JSON.stringify(r.components, null, 2));
|
|
|
27481
27487
|
const pe = () => {
|
|
27482
27488
|
const He = (Sn) => {
|
|
27483
27489
|
xo.remove(Sn, qe), we();
|
|
27484
|
-
},
|
|
27490
|
+
}, ct = (Sn, xt) => {
|
|
27485
27491
|
Jr(Sn.element).length === 0 ? gt(Sn, xt) : mn(Sn, xt);
|
|
27486
27492
|
}, gt = (Sn, xt) => {
|
|
27487
27493
|
ni.hide(Sn), f.clear(), xt && t.focus();
|
|
@@ -27491,7 +27497,7 @@ Components: ` + JSON.stringify(r.components, null, 2));
|
|
|
27491
27497
|
f.on((Sn) => {
|
|
27492
27498
|
ne();
|
|
27493
27499
|
const xt = ae();
|
|
27494
|
-
He(Sn),
|
|
27500
|
+
He(Sn), ct(Sn, xt);
|
|
27495
27501
|
});
|
|
27496
27502
|
}, xe = () => !i1(t) || !b.header.isPositionedAtTop(), qe = xl(LT.sketch({
|
|
27497
27503
|
text: j.text,
|
|
@@ -27510,8 +27516,8 @@ Components: ` + JSON.stringify(r.components, null, 2));
|
|
|
27510
27516
|
}));
|
|
27511
27517
|
if (f.isSet()) {
|
|
27512
27518
|
const He = pu(qe);
|
|
27513
|
-
f.on((
|
|
27514
|
-
xo.append(
|
|
27519
|
+
f.on((ct) => {
|
|
27520
|
+
xo.append(ct, He), ni.reposition(ct), qe.hasConfigured(mr) && mr.refresh(ct), E(ct.components());
|
|
27515
27521
|
});
|
|
27516
27522
|
} else {
|
|
27517
27523
|
const He = xl(ni.sketch({
|
|
@@ -27552,11 +27558,11 @@ Components: ` + JSON.stringify(r.components, null, 2));
|
|
|
27552
27558
|
}))
|
|
27553
27559
|
})] : []
|
|
27554
27560
|
])
|
|
27555
|
-
})),
|
|
27561
|
+
})), ct = pu(qe), gt = { maxHeightFunction: Op() }, mn = {
|
|
27556
27562
|
...b.anchors.banner(),
|
|
27557
27563
|
overrides: gt
|
|
27558
27564
|
};
|
|
27559
|
-
f.set(He), l.add(He), ni.showWithinBounds(He,
|
|
27565
|
+
f.set(He), l.add(He), ni.showWithinBounds(He, ct, { anchor: mn }, S);
|
|
27560
27566
|
}
|
|
27561
27567
|
Te(j.timeout) && j.timeout > 0 && fT.setEditorTimeout(t, () => {
|
|
27562
27568
|
pe();
|
|
@@ -27899,7 +27905,7 @@ Components: ` + JSON.stringify(r.components, null, 2));
|
|
|
27899
27905
|
]
|
|
27900
27906
|
},
|
|
27901
27907
|
components: [Yb.parts.items({ preprocess: (l) => y$(l, (f, b) => t[b].type === "separator") })]
|
|
27902
|
-
}), jT = (t) =>
|
|
27908
|
+
}), jT = (t) => lt(t, (r) => "icon" in r && r.icon !== void 0), vg = (t) => (console.error(Uu(t)), console.log(t), Q.none()), Q6 = (t, r, l, f, b) => {
|
|
27903
27909
|
const x = FV(l);
|
|
27904
27910
|
return {
|
|
27905
27911
|
value: t,
|
|
@@ -27975,7 +27981,7 @@ Components: ` + JSON.stringify(r.components, null, 2));
|
|
|
27975
27981
|
wy,
|
|
27976
27982
|
_$
|
|
27977
27983
|
])), Ty = (t) => Vr("ToggleButton", j6, t), nO = [
|
|
27978
|
-
zs("predicate",
|
|
27984
|
+
zs("predicate", ut),
|
|
27979
27985
|
al("scope", "node", [
|
|
27980
27986
|
"node",
|
|
27981
27987
|
"editor"
|
|
@@ -28991,7 +28997,7 @@ Components: ` + JSON.stringify(r.components, null, 2));
|
|
|
28991
28997
|
const l = Wz(t, r), f = r.colorinput.getColorCols(t.initData.storageKey), b = "color", S = {
|
|
28992
28998
|
...cP(Pn("menu-value"), l, (E) => {
|
|
28993
28999
|
t.onAction({ value: E });
|
|
28994
|
-
}, f, b, vf.CLOSE_ON_EXECUTE, t.select.getOr(
|
|
29000
|
+
}, f, b, vf.CLOSE_ON_EXECUTE, t.select.getOr(ut), r.shared.providers),
|
|
28995
29001
|
markers: u1(b),
|
|
28996
29002
|
movement: s3(f, b),
|
|
28997
29003
|
showMenuRole: !1
|
|
@@ -29411,7 +29417,7 @@ Components: ` + JSON.stringify(r.components, null, 2));
|
|
|
29411
29417
|
}),
|
|
29412
29418
|
Hc.config({
|
|
29413
29419
|
channels: {
|
|
29414
|
-
...Uc({ isExtraPart:
|
|
29420
|
+
...Uc({ isExtraPart: ut }),
|
|
29415
29421
|
...Cp({ doReposition: tB })
|
|
29416
29422
|
}
|
|
29417
29423
|
})
|
|
@@ -29678,8 +29684,8 @@ Components: ` + JSON.stringify(r.components, null, 2));
|
|
|
29678
29684
|
}, V = () => ni.getContent(S).bind((we) => Jo(we.components(), 0)), j = () => t.execCommand("mceAutocompleterClose"), ne = (we) => {
|
|
29679
29685
|
const Ue = rs(we, (He) => Q.from(He.columns)).getOr(1);
|
|
29680
29686
|
return Se(we, (He) => {
|
|
29681
|
-
const
|
|
29682
|
-
return yH(
|
|
29687
|
+
const ct = He.items;
|
|
29688
|
+
return yH(ct, He.matchText, (gt, mn) => {
|
|
29683
29689
|
const Sn = {
|
|
29684
29690
|
hide: () => j(),
|
|
29685
29691
|
reload: (xt) => {
|
|
@@ -29692,7 +29698,7 @@ Components: ` + JSON.stringify(r.components, null, 2));
|
|
|
29692
29698
|
}, Ue, vf.BUBBLE_TO_SANDBOX, r, He.highlightOn);
|
|
29693
29699
|
});
|
|
29694
29700
|
}, ae = (we, Ue) => {
|
|
29695
|
-
const He = rs(we, (
|
|
29701
|
+
const He = rs(we, (ct) => Q.from(ct.columns)).getOr(1);
|
|
29696
29702
|
ni.showMenuAt(S, {
|
|
29697
29703
|
anchor: {
|
|
29698
29704
|
type: "selection",
|
|
@@ -29717,8 +29723,8 @@ Components: ` + JSON.stringify(r.components, null, 2));
|
|
|
29717
29723
|
width: "1px",
|
|
29718
29724
|
top: `${Ue.offsetTop}px`,
|
|
29719
29725
|
left: `${Ue.offsetLeft}px`
|
|
29720
|
-
}), t.dom.add(we, He.dom), Er(He, '[role="menu"]').each((
|
|
29721
|
-
Uo(
|
|
29726
|
+
}), t.dom.add(we, He.dom), Er(He, '[role="menu"]').each((ct) => {
|
|
29727
|
+
Uo(ct, "position"), Uo(ct, "max-height");
|
|
29722
29728
|
});
|
|
29723
29729
|
};
|
|
29724
29730
|
t.on("AutocompleterStart", ({ lookupData: we }) => {
|
|
@@ -29870,7 +29876,7 @@ Components: ` + JSON.stringify(r.components, null, 2));
|
|
|
29870
29876
|
},
|
|
29871
29877
|
cut: le,
|
|
29872
29878
|
isStopped: r.get,
|
|
29873
|
-
isCut:
|
|
29879
|
+
isCut: ut,
|
|
29874
29880
|
event: t,
|
|
29875
29881
|
setSource: ve("Cannot set source of a broadcasted event"),
|
|
29876
29882
|
getSource: ve("Cannot get source of a broadcasted event")
|
|
@@ -29885,7 +29891,7 @@ Components: ` + JSON.stringify(r.components, null, 2));
|
|
|
29885
29891
|
const L = D.descHandler;
|
|
29886
29892
|
return ig(L)(E), E.isStopped() ? (x.logEventStopped(r, D.element, L.purpose), qx.stopped()) : E.isCut() ? (x.logEventCut(r, D.element, L.purpose), qx.complete()) : oi(D.element).fold(() => (x.logNoParent(r, D.element, L.purpose), qx.complete()), (j) => (x.logEventResponse(r, D.element, L.purpose), qx.resume(j)));
|
|
29887
29893
|
});
|
|
29888
|
-
}, Gx = (t, r, l, f, b, x) => uB(t, r, l, f, b, x).fold(kt, (S) => Gx(t, r, l, S, b, x),
|
|
29894
|
+
}, Gx = (t, r, l, f, b, x) => uB(t, r, l, f, b, x).fold(kt, (S) => Gx(t, r, l, S, b, x), ut), EH = (t, r, l, f, b) => {
|
|
29889
29895
|
const x = cB(l, f);
|
|
29890
29896
|
return uB(t, r, l, f, x, b);
|
|
29891
29897
|
}, bP = (t, r, l) => {
|
|
@@ -29983,18 +29989,18 @@ The conflicting element is` + (Ve(j.element) ? " " : " not ") + "already in the
|
|
|
29983
29989
|
}), x = {
|
|
29984
29990
|
debugInfo: oe("real"),
|
|
29985
29991
|
triggerEvent: (we, Ue, He) => {
|
|
29986
|
-
L2(we, Ue, (
|
|
29992
|
+
L2(we, Ue, (ct) => dB(f, we, He, Ue, ct));
|
|
29987
29993
|
},
|
|
29988
29994
|
triggerFocus: (we, Ue) => {
|
|
29989
29995
|
fp(we).fold(() => {
|
|
29990
29996
|
bu(we);
|
|
29991
29997
|
}, (He) => {
|
|
29992
|
-
L2(hh(), we, (
|
|
29998
|
+
L2(hh(), we, (ct) => (EH(f, hh(), {
|
|
29993
29999
|
originator: Ue,
|
|
29994
30000
|
kill: le,
|
|
29995
30001
|
prevent: le,
|
|
29996
30002
|
target: we
|
|
29997
|
-
}, we,
|
|
30003
|
+
}, we, ct), !1));
|
|
29998
30004
|
});
|
|
29999
30005
|
},
|
|
30000
30006
|
triggerEscape: (we, Ue) => {
|
|
@@ -30039,8 +30045,8 @@ The conflicting element is` + (Ve(j.element) ? " " : " not ") + "already in the
|
|
|
30039
30045
|
}, j = (we) => {
|
|
30040
30046
|
const Ue = l.filter(Gu());
|
|
30041
30047
|
pt(Ue, (He) => {
|
|
30042
|
-
const
|
|
30043
|
-
ig(
|
|
30048
|
+
const ct = He.descHandler;
|
|
30049
|
+
ig(ct)(we);
|
|
30044
30050
|
});
|
|
30045
30051
|
}, ne = (we) => {
|
|
30046
30052
|
j({
|
|
@@ -30198,14 +30204,14 @@ The conflicting element is` + (Ve(j.element) ? " " : " not ") + "already in the
|
|
|
30198
30204
|
ae(pe, xe, qe, go(qe, "data-collection-item-value"));
|
|
30199
30205
|
});
|
|
30200
30206
|
}, E = (ae, pe) => {
|
|
30201
|
-
const qe = r.checkUiComponentContext("mode:design").shouldDisable || r.isDisabled() ? " tox-collection__item--state-disabled" : "", we = We(pe, (
|
|
30202
|
-
const gt = Ch.translate(
|
|
30207
|
+
const qe = r.checkUiComponentContext("mode:design").shouldDisable || r.isDisabled() ? " tox-collection__item--state-disabled" : "", we = We(pe, (ct) => {
|
|
30208
|
+
const gt = Ch.translate(ct.text), mn = t.columns === 1 ? `<div class="tox-collection__item-label">${gt}</div>` : "", Sn = `<div class="tox-collection__item-icon">${x(ct.icon)}</div>`, xt = {
|
|
30203
30209
|
_: " ",
|
|
30204
30210
|
" - ": " ",
|
|
30205
30211
|
"-": " "
|
|
30206
30212
|
}, En = gt.replace(/\_| \- |\-/g, (fn) => xt[fn]);
|
|
30207
|
-
return `<div data-mce-tooltip="${En}" class="tox-collection__item${qe}" tabindex="-1" data-collection-item-value="${DH.encodeAllRaw(
|
|
30208
|
-
}), Ue = t.columns !== "auto" && t.columns > 1 ? qt(we, t.columns) : [we], He = We(Ue, (
|
|
30213
|
+
return `<div data-mce-tooltip="${En}" class="tox-collection__item${qe}" tabindex="-1" data-collection-item-value="${DH.encodeAllRaw(ct.value)}" aria-label="${En}">${Sn}${mn}</div>`;
|
|
30214
|
+
}), Ue = t.columns !== "auto" && t.columns > 1 ? qt(we, t.columns) : [we], He = We(Ue, (ct) => `<div class="tox-collection__group">${ct.join("")}</div>`);
|
|
30209
30215
|
ji(ae.element, He.join(""));
|
|
30210
30216
|
}, D = S((ae, pe, xe, qe) => {
|
|
30211
30217
|
pe.stop(), r.checkUiComponentContext("mode:design").shouldDisable || r.isDisabled() || Vn(ae, wg, {
|
|
@@ -30423,7 +30429,7 @@ The conflicting element is` + (Ve(j.element) ? " " : " not ") + "already in the
|
|
|
30423
30429
|
lazySink: r.getSink,
|
|
30424
30430
|
fetch: (l) => nc.nu((f) => t.fetch(f)).map((f) => Q.from(gP(wr(cP(Pn("menu-value"), f, (b) => {
|
|
30425
30431
|
t.onItemAction(l, b);
|
|
30426
|
-
}, t.columns, t.presets, vf.CLOSE_ON_EXECUTE,
|
|
30432
|
+
}, t.columns, t.presets, vf.CLOSE_ON_EXECUTE, ut, r.providers), { movement: s3(t.columns, t.presets) })))),
|
|
30427
30433
|
parts: { menu: Dx(!1, 1, t.presets) }
|
|
30428
30434
|
}), kP = Pn("color-input-change"), kB = Pn("color-swatch-change"), CB = Pn("color-picker-cancel"), QH = (t, r, l, f) => {
|
|
30429
30435
|
const b = Es.parts.field({
|
|
@@ -30955,7 +30961,7 @@ The conflicting element is` + (Ve(j.element) ? " " : " not ") + "already in the
|
|
|
30955
30961
|
mn.stop(), t.mouseIsDown.set(!0), t.onDragStart(gt, b(gt));
|
|
30956
30962
|
}, He = (gt, mn) => {
|
|
30957
30963
|
mn.stop(), t.onDragEnd(gt, b(gt)), we(gt);
|
|
30958
|
-
},
|
|
30964
|
+
}, ct = (gt) => {
|
|
30959
30965
|
gr(gt, t, "spectrum").map(qn.focusIn);
|
|
30960
30966
|
};
|
|
30961
30967
|
return {
|
|
@@ -30965,7 +30971,7 @@ The conflicting element is` + (Ve(j.element) ? " " : " not ") + "already in the
|
|
|
30965
30971
|
behaviours: Mi(t.sliderBehaviours, [
|
|
30966
30972
|
qn.config({
|
|
30967
30973
|
mode: "special",
|
|
30968
|
-
focusIn:
|
|
30974
|
+
focusIn: ct
|
|
30969
30975
|
}),
|
|
30970
30976
|
kn.config({
|
|
30971
30977
|
store: {
|
|
@@ -30991,7 +30997,7 @@ The conflicting element is` + (Ve(j.element) ? " " : " not ") + "already in the
|
|
|
30991
30997
|
$t(hs(), Ue),
|
|
30992
30998
|
$t(la(), He),
|
|
30993
30999
|
$t(kc(), (gt, mn) => {
|
|
30994
|
-
|
|
31000
|
+
ct(gt), Ue(gt, mn);
|
|
30995
31001
|
}),
|
|
30996
31002
|
$t(ch(), He)
|
|
30997
31003
|
]),
|
|
@@ -31130,13 +31136,13 @@ The conflicting element is` + (Ve(j.element) ? " " : " not ") + "already in the
|
|
|
31130
31136
|
},
|
|
31131
31137
|
validator: {
|
|
31132
31138
|
validate: (Ue) => {
|
|
31133
|
-
const He = kn.getValue(Ue),
|
|
31134
|
-
return nc.pure(
|
|
31139
|
+
const He = kn.getValue(Ue), ct = qe(He) ? Eo.value(!0) : Eo.error(t("aria.input.invalid"));
|
|
31140
|
+
return nc.pure(ct);
|
|
31135
31141
|
},
|
|
31136
31142
|
validateOnLoad: !1
|
|
31137
31143
|
}
|
|
31138
31144
|
}), D = (xe, qe, we, Ue, He) => {
|
|
31139
|
-
const
|
|
31145
|
+
const ct = In(xU), gt = t(eA + "range"), mn = Es.parts.label({
|
|
31140
31146
|
dom: { tag: "label" },
|
|
31141
31147
|
components: [Qr(we)]
|
|
31142
31148
|
}), Sn = Es.parts.field({
|
|
@@ -31149,13 +31155,13 @@ The conflicting element is` + (Ve(j.element) ? " " : " not ") + "already in the
|
|
|
31149
31155
|
},
|
|
31150
31156
|
inputClasses: [r("textfield")],
|
|
31151
31157
|
inputBehaviours: Yt([
|
|
31152
|
-
E(qe, xe,
|
|
31158
|
+
E(qe, xe, ct),
|
|
31153
31159
|
zr.config({}),
|
|
31154
31160
|
gi.config({
|
|
31155
31161
|
...b({
|
|
31156
31162
|
tooltipText: "",
|
|
31157
31163
|
onSetup: (Bs) => {
|
|
31158
|
-
|
|
31164
|
+
ct.set({
|
|
31159
31165
|
isEnabled: () => gi.isEnabled(Bs),
|
|
31160
31166
|
setEnabled: (Qn) => gi.setEnabled(Bs, Qn),
|
|
31161
31167
|
immediatelyShow: () => gi.immediateOpenClose(Bs, !0),
|
|
@@ -31229,10 +31235,10 @@ The conflicting element is` + (Ve(j.element) ? " " : " not ") + "already in the
|
|
|
31229
31235
|
hex: In(Q.some("ffffff"))
|
|
31230
31236
|
}, qe = (Qn, Wt) => {
|
|
31231
31237
|
const On = Zx(Wt);
|
|
31232
|
-
V(Qn, On),
|
|
31238
|
+
V(Qn, On), ct(On);
|
|
31233
31239
|
}, we = (Qn) => xe[Qn].get(), Ue = (Qn, Wt) => {
|
|
31234
31240
|
xe[Qn].set(Wt);
|
|
31235
|
-
}, He = () => we("red").bind((Qn) => we("green").bind((Wt) => we("blue").map((On) => lO(Qn, Wt, On, 1)))),
|
|
31241
|
+
}, He = () => we("red").bind((Qn) => we("green").bind((Wt) => we("blue").map((On) => lO(Qn, Wt, On, 1)))), ct = (Qn) => {
|
|
31236
31242
|
const Wt = Qn.red, On = Qn.green, yo = Qn.blue;
|
|
31237
31243
|
Ue("red", Q.some(Wt)), Ue("green", Q.some(On)), Ue("blue", Q.some(yo));
|
|
31238
31244
|
}, gt = (Qn, Wt) => {
|
|
@@ -31243,7 +31249,7 @@ The conflicting element is` + (Ve(j.element) ? " " : " not ") + "already in the
|
|
|
31243
31249
|
const On = W$(Wt);
|
|
31244
31250
|
Ue("hex", Q.some(On.value));
|
|
31245
31251
|
const yo = Zx(On);
|
|
31246
|
-
V(Qn, yo),
|
|
31252
|
+
V(Qn, yo), ct(yo), Vn(Qn, YP, { hex: On }), ne(Qn, On);
|
|
31247
31253
|
}, Sn = (Qn, Wt, On) => {
|
|
31248
31254
|
const yo = parseInt(On, 10);
|
|
31249
31255
|
Ue(Wt, Q.some(yo)), He().each((Zo) => {
|
|
@@ -31412,7 +31418,7 @@ The conflicting element is` + (Ve(j.element) ? " " : " not ") + "already in the
|
|
|
31412
31418
|
}, He = (xt, En) => {
|
|
31413
31419
|
const fn = Zx(xt);
|
|
31414
31420
|
j.paletteRgba.set(fn), j.paletteHue.set(En);
|
|
31415
|
-
},
|
|
31421
|
+
}, ct = (xt, En, fn, Bn) => {
|
|
31416
31422
|
He(En, fn), pt(Bn, (cs) => {
|
|
31417
31423
|
cs(xt, En, fn);
|
|
31418
31424
|
});
|
|
@@ -31420,7 +31426,7 @@ The conflicting element is` + (Ve(j.element) ? " " : " not ") + "already in the
|
|
|
31420
31426
|
const xt = [qe];
|
|
31421
31427
|
return (En, fn) => {
|
|
31422
31428
|
const Bn = fn.event.value, cs = j.paletteHue.get(), Dr = Ux(cs, Bn.x, 100 - Bn.y), Bs = D7(Dr);
|
|
31423
|
-
|
|
31429
|
+
ct(En, Bs, cs, xt);
|
|
31424
31430
|
};
|
|
31425
31431
|
}, mn = () => {
|
|
31426
31432
|
const xt = [
|
|
@@ -31429,7 +31435,7 @@ The conflicting element is` + (Ve(j.element) ? " " : " not ") + "already in the
|
|
|
31429
31435
|
];
|
|
31430
31436
|
return (En, fn) => {
|
|
31431
31437
|
const Bn = L(fn.event.value), cs = j.paletteRgba.get(), Dr = eP(cs), Bs = Ux(Bn, Dr.saturation, Dr.value), Qn = D7(Bs);
|
|
31432
|
-
|
|
31438
|
+
ct(En, Qn, Bn, xt);
|
|
31433
31439
|
};
|
|
31434
31440
|
}, Sn = () => {
|
|
31435
31441
|
const xt = [
|
|
@@ -31439,7 +31445,7 @@ The conflicting element is` + (Ve(j.element) ? " " : " not ") + "already in the
|
|
|
31439
31445
|
];
|
|
31440
31446
|
return (En, fn) => {
|
|
31441
31447
|
const Bn = fn.event.hex, cs = Pz(Bn);
|
|
31442
|
-
|
|
31448
|
+
ct(En, Bn, cs.hue, xt);
|
|
31443
31449
|
};
|
|
31444
31450
|
};
|
|
31445
31451
|
return {
|
|
@@ -31607,7 +31613,7 @@ The conflicting element is` + (Ve(j.element) ? " " : " not ") + "already in the
|
|
|
31607
31613
|
};
|
|
31608
31614
|
var Fp = tinymce.util.Tools.resolve("tinymce.util.Tools");
|
|
31609
31615
|
const $3 = Pn("browse.files.event"), ON = (t, r) => {
|
|
31610
|
-
const l = Fp.explode(r.getOption("images_file_types")), f = (b) =>
|
|
31616
|
+
const l = Fp.explode(r.getOption("images_file_types")), f = (b) => lt(l, (x) => bi(b.name.toLowerCase(), `.${x.toLowerCase()}`));
|
|
31611
31617
|
return fo(Js(t), f);
|
|
31612
31618
|
}, $U = (t, r, l) => {
|
|
31613
31619
|
const f = (ne, ae) => {
|
|
@@ -31802,7 +31808,7 @@ The conflicting element is` + (Ve(j.element) ? " " : " not ") + "already in the
|
|
|
31802
31808
|
}, aS = (t) => _m(t, [
|
|
31803
31809
|
"." + oA,
|
|
31804
31810
|
"." + A3
|
|
31805
|
-
].join(","),
|
|
31811
|
+
].join(","), ut), lS = Pn("update-dialog"), wN = Pn("update-title"), xN = Pn("update-body"), SN = Pn("update-footer"), iA = Pn("body-send-message"), cS = Pn("dialog-focus-shifted"), aA = qr().browser, uS = aA.isSafari(), DU = aA.isFirefox(), kN = uS || DU, CN = aA.isChromium(), RU = ({ scrollTop: t, scrollHeight: r, clientHeight: l }) => Math.ceil(t) + l >= r, lA = (t, r) => t.scrollTo(0, r === "bottom" ? 99999999 : r), MU = (t, r) => {
|
|
31806
31812
|
const l = t.body;
|
|
31807
31813
|
return Q.from(!/^<!DOCTYPE (html|HTML)/.test(r) && (!CN && !uS || Me(l) && (l.scrollTop !== 0 || Math.abs(l.scrollHeight - l.clientHeight) > 1)) ? l : t.documentElement);
|
|
31808
31814
|
}, TN = (t, r, l) => {
|
|
@@ -32195,7 +32201,7 @@ The conflicting element is` + (Ve(j.element) ? " " : " not ") + "already in the
|
|
|
32195
32201
|
text: x.text,
|
|
32196
32202
|
getSubmenuItems: () => MN(t, r, x.items, f, b)
|
|
32197
32203
|
}), B3 = (t, r) => rs(t, (l) => M3(l) ? jn(l.value === r, l) : B3(l.items, r)), WU = (t, r, l) => {
|
|
32198
|
-
const f =
|
|
32204
|
+
const f = lt(t.items, (L) => !M3(L)), b = r.shared.providers, x = l.bind((L) => B3(t.items, L)).orThunk(() => Us(t.items).filter(M3)), S = t.label.map((L) => yg(L, b)), E = Es.parts.field({
|
|
32199
32205
|
dom: {},
|
|
32200
32206
|
factory: {
|
|
32201
32207
|
sketch: (L) => dA({
|
|
@@ -32538,7 +32544,7 @@ The conflicting element is` + (Ve(j.element) ? " " : " not ") + "already in the
|
|
|
32538
32544
|
Vn(Ue, f, { isField1: we });
|
|
32539
32545
|
}),
|
|
32540
32546
|
$t(tm(), (Ue, He) => {
|
|
32541
|
-
t.name.each((
|
|
32547
|
+
t.name.each((ct) => Vn(Ue, Su, { name: ct }));
|
|
32542
32548
|
})
|
|
32543
32549
|
]),
|
|
32544
32550
|
...t.onEnter.map((Ue) => qn.config({
|
|
@@ -32590,8 +32596,8 @@ The conflicting element is` + (Ve(j.element) ? " " : " not ") + "already in the
|
|
|
32590
32596
|
locked: !0,
|
|
32591
32597
|
markers: { lockClass: "tox-locked" },
|
|
32592
32598
|
onLockedChange: (we, Ue, He) => {
|
|
32593
|
-
bA(kn.getValue(we)).each((
|
|
32594
|
-
l(
|
|
32599
|
+
bA(kn.getValue(we)).each((ct) => {
|
|
32600
|
+
l(ct).each((gt) => {
|
|
32595
32601
|
kn.setValue(Ue, KU(gt));
|
|
32596
32602
|
});
|
|
32597
32603
|
});
|
|
@@ -32610,7 +32616,7 @@ The conflicting element is` + (Ve(j.element) ? " " : " not ") + "already in the
|
|
|
32610
32616
|
na(() => r.checkUiComponentContext("mode:design")),
|
|
32611
32617
|
Po("size-input-events", [
|
|
32612
32618
|
$t(f, (we, Ue) => {
|
|
32613
|
-
const He = Ue.event.isField1,
|
|
32619
|
+
const He = Ue.event.isField1, ct = He ? ad.getField1(we) : ad.getField2(we), gt = He ? ad.getField2(we) : ad.getField1(we), mn = ct.map(kn.getValue).getOr(""), Sn = gt.map(kn.getValue).getOr("");
|
|
32614
32620
|
l = IN(mn, Sn);
|
|
32615
32621
|
}),
|
|
32616
32622
|
$t(OB, (we) => {
|
|
@@ -33400,7 +33406,7 @@ The conflicting element is` + (Ve(j.element) ? " " : " not ") + "already in the
|
|
|
33400
33406
|
xe.fold(() => {
|
|
33401
33407
|
t.model.selectsOver && ue.highlightFirst(Ue);
|
|
33402
33408
|
}, (He) => {
|
|
33403
|
-
ue.highlightBy(Ue, (
|
|
33409
|
+
ue.highlightBy(Ue, (ct) => kn.getValue(ct).value === He.value), ue.getHighlighted(Ue).orThunk(() => (ue.highlightFirst(Ue), Q.none()));
|
|
33404
33410
|
});
|
|
33405
33411
|
});
|
|
33406
33412
|
};
|
|
@@ -33654,9 +33660,9 @@ The conflicting element is` + (Ve(j.element) ? " " : " not ") + "already in the
|
|
|
33654
33660
|
Vn(He, wg, {
|
|
33655
33661
|
name: t.name,
|
|
33656
33662
|
value: {
|
|
33657
|
-
setIcon: (
|
|
33663
|
+
setIcon: (ct) => {
|
|
33658
33664
|
x.map((gt) => gt.getOpt(He).each((mn) => {
|
|
33659
|
-
xo.set(mn, [p1(
|
|
33665
|
+
xo.set(mn, [p1(ct, r.icons)]);
|
|
33660
33666
|
}));
|
|
33661
33667
|
}
|
|
33662
33668
|
}
|
|
@@ -33763,11 +33769,11 @@ The conflicting element is` + (Ve(j.element) ? " " : " not ") + "already in the
|
|
|
33763
33769
|
minChars: 0,
|
|
33764
33770
|
responseTime: 0,
|
|
33765
33771
|
fetch: (Ue) => {
|
|
33766
|
-
const He = RA(t.filetype, Ue, l),
|
|
33772
|
+
const He = RA(t.filetype, Ue, l), ct = Fy(He, vf.BUBBLE_TO_SANDBOX, r, {
|
|
33767
33773
|
isHorizontalMenu: !1,
|
|
33768
33774
|
search: Q.none()
|
|
33769
33775
|
});
|
|
33770
|
-
return nc.pure(
|
|
33776
|
+
return nc.pure(ct);
|
|
33771
33777
|
},
|
|
33772
33778
|
getHotspot: (Ue) => pe.getOpt(Ue),
|
|
33773
33779
|
onSetValue: (Ue, He) => {
|
|
@@ -33778,19 +33784,19 @@ The conflicting element is` + (Ve(j.element) ? " " : " not ") + "already in the
|
|
|
33778
33784
|
getRoot: (He) => Ra(He.element),
|
|
33779
33785
|
invalidClass: "tox-control-wrap--status-invalid",
|
|
33780
33786
|
notify: {
|
|
33781
|
-
onInvalid: (He,
|
|
33787
|
+
onInvalid: (He, ct) => {
|
|
33782
33788
|
V.getOpt(He).each((gt) => {
|
|
33783
|
-
un(gt.element, "title", b.translate(
|
|
33789
|
+
un(gt.element, "title", b.translate(ct));
|
|
33784
33790
|
});
|
|
33785
33791
|
}
|
|
33786
33792
|
},
|
|
33787
33793
|
validator: {
|
|
33788
33794
|
validate: (He) => {
|
|
33789
|
-
const
|
|
33795
|
+
const ct = kn.getValue(He);
|
|
33790
33796
|
return iL.nu((gt) => {
|
|
33791
33797
|
Ue({
|
|
33792
33798
|
type: t.filetype,
|
|
33793
|
-
url:
|
|
33799
|
+
url: ct.value
|
|
33794
33800
|
}, (mn) => {
|
|
33795
33801
|
if (mn.status === "invalid") {
|
|
33796
33802
|
const Sn = Eo.error(mn.message);
|
|
@@ -33809,8 +33815,8 @@ The conflicting element is` + (Ve(j.element) ? " " : " not ") + "already in the
|
|
|
33809
33815
|
zr.config({}),
|
|
33810
33816
|
Po("urlinput-events", [
|
|
33811
33817
|
$t(qu(), (Ue) => {
|
|
33812
|
-
const He = Cd(Ue.element),
|
|
33813
|
-
|
|
33818
|
+
const He = Cd(Ue.element), ct = He.trim();
|
|
33819
|
+
ct !== He && bp(Ue.element, ct), t.filetype === "file" && Vn(Ue, Su, { name: t.name });
|
|
33814
33820
|
}),
|
|
33815
33821
|
$t(tm(), (Ue) => {
|
|
33816
33822
|
Vn(Ue, Su, { name: t.name }), x(Ue);
|
|
@@ -33835,16 +33841,16 @@ The conflicting element is` + (Ve(j.element) ? " " : " not ") + "already in the
|
|
|
33835
33841
|
markers: { openClass: "tox-textfield--popup-open" },
|
|
33836
33842
|
lazySink: r.shared.getSink,
|
|
33837
33843
|
parts: { menu: Dx(!1, 1, "normal") },
|
|
33838
|
-
onExecute: (Ue, He,
|
|
33844
|
+
onExecute: (Ue, He, ct) => {
|
|
33839
33845
|
Vn(He, Jx, {});
|
|
33840
33846
|
},
|
|
33841
|
-
onItemExecute: (Ue, He,
|
|
33847
|
+
onItemExecute: (Ue, He, ct, gt) => {
|
|
33842
33848
|
x(Ue), Vn(Ue, Su, { name: t.name });
|
|
33843
33849
|
}
|
|
33844
33850
|
}, E = Es.parts.field({
|
|
33845
33851
|
...S,
|
|
33846
33852
|
factory: CW
|
|
33847
|
-
}), D = t.label.map((Ue) => yg(Ue, b)), V = Qs(((Ue, He,
|
|
33853
|
+
}), D = t.label.map((Ue) => yg(Ue, b)), V = Qs(((Ue, He, ct = Ue, gt = Ue) => Ld(ct, {
|
|
33848
33854
|
tag: "div",
|
|
33849
33855
|
classes: [
|
|
33850
33856
|
"tox-icon",
|
|
@@ -33891,9 +33897,9 @@ The conflicting element is` + (Ve(j.element) ? " " : " not ") + "already in the
|
|
|
33891
33897
|
])
|
|
33892
33898
|
}), we = (Ue) => {
|
|
33893
33899
|
Os.getCurrent(Ue).each((He) => {
|
|
33894
|
-
const
|
|
33900
|
+
const ct = kn.getValue(He), gt = {
|
|
33895
33901
|
fieldname: t.name,
|
|
33896
|
-
...
|
|
33902
|
+
...ct
|
|
33897
33903
|
};
|
|
33898
33904
|
ne.each((mn) => {
|
|
33899
33905
|
mn(gt).get((Sn) => {
|
|
@@ -34600,7 +34606,7 @@ The conflicting element is` + (Ve(j.element) ? " " : " not ") + "already in the
|
|
|
34600
34606
|
l[r] = [t].concat(b).slice(0, FL), oj(l);
|
|
34601
34607
|
}, zL = (t) => !!t, ij = (t) => Bo(Fp.makeMap(t, /[, ]/), zL), qA = (t) => Q.from(H8(t)), HL = (t) => {
|
|
34602
34608
|
const r = Q.from(W8(t)).filter(zL).map(ij);
|
|
34603
|
-
return qA(t).fold(
|
|
34609
|
+
return qA(t).fold(ut, (l) => r.fold(kt, (f) => is(f).length > 0 ? f : !1));
|
|
34604
34610
|
}, aj = (t, r) => {
|
|
34605
34611
|
const l = HL(t);
|
|
34606
34612
|
return H(l) ? l ? qA(t) : Q.none() : l[r] ? qA(t) : Q.none();
|
|
@@ -34644,7 +34650,7 @@ The conflicting element is` + (Ve(j.element) ? " " : " not ") + "already in the
|
|
|
34644
34650
|
contextType: "disabled",
|
|
34645
34651
|
shouldDisable: !0
|
|
34646
34652
|
};
|
|
34647
|
-
const [Ue, He = ""] = we.split(":"),
|
|
34653
|
+
const [Ue, He = ""] = we.split(":"), ct = r.ui.registry.getAll().contexts, gt = Gt(ct, Ue).fold(() => Gt(ct, "mode").map((mn) => mn("design")).getOr(!1), (mn) => He.charAt(0) === "!" ? !mn(He.slice(1)) : mn(He));
|
|
34648
34654
|
return {
|
|
34649
34655
|
contextType: Ue,
|
|
34650
34656
|
shouldDisable: !gt
|
|
@@ -34714,23 +34720,23 @@ The conflicting element is` + (Ve(j.element) ? " " : " not ") + "already in the
|
|
|
34714
34720
|
cs.element,
|
|
34715
34721
|
...cs.others
|
|
34716
34722
|
]).getOr([]);
|
|
34717
|
-
|
|
34723
|
+
lt(Bn, (cs) => es(cs, xt.target)) && (t.dispatch("ElementScroll", { target: xt.target.dom }), f(ep(), xt));
|
|
34718
34724
|
}
|
|
34719
34725
|
});
|
|
34720
|
-
}), He = () => b(Om(), {}),
|
|
34726
|
+
}), He = () => b(Om(), {}), ct = (xt) => {
|
|
34721
34727
|
xt.state && b(mg(), { target: Ot.fromDom(t.getContainer()) });
|
|
34722
34728
|
}, gt = (xt) => {
|
|
34723
34729
|
b(mg(), { target: Ot.fromDom(xt.relatedTarget.getContainer()) });
|
|
34724
34730
|
}, mn = (xt) => t.dispatch("focusin", xt), Sn = (xt) => t.dispatch("focusout", xt);
|
|
34725
34731
|
t.on("PostRender", () => {
|
|
34726
|
-
t.on("click", ne), t.on("tap", ne), t.on("mouseup", ae), t.on("mousedown", pe), t.on("ScrollWindow", xe), t.on("ResizeWindow", qe), t.on("ResizeEditor", He), t.on("AfterProgressState",
|
|
34732
|
+
t.on("click", ne), t.on("tap", ne), t.on("mouseup", ae), t.on("mousedown", pe), t.on("ScrollWindow", xe), t.on("ResizeWindow", qe), t.on("ResizeEditor", He), t.on("AfterProgressState", ct), t.on("DismissPopups", gt), pt([
|
|
34727
34733
|
r,
|
|
34728
34734
|
...l
|
|
34729
34735
|
], (xt) => {
|
|
34730
34736
|
xt.element.dom.addEventListener("focusin", mn), xt.element.dom.addEventListener("focusout", Sn);
|
|
34731
34737
|
});
|
|
34732
34738
|
}), t.on("remove", () => {
|
|
34733
|
-
t.off("click", ne), t.off("tap", ne), t.off("mouseup", ae), t.off("mousedown", pe), t.off("ScrollWindow", xe), t.off("ResizeWindow", qe), t.off("ResizeEditor", He), t.off("AfterProgressState",
|
|
34739
|
+
t.off("click", ne), t.off("tap", ne), t.off("mouseup", ae), t.off("mousedown", pe), t.off("ScrollWindow", xe), t.off("ResizeWindow", qe), t.off("ResizeEditor", He), t.off("AfterProgressState", ct), t.off("DismissPopups", gt), pt([
|
|
34734
34740
|
r,
|
|
34735
34741
|
...l
|
|
34736
34742
|
], (xt) => {
|
|
@@ -34831,7 +34837,7 @@ The conflicting element is` + (Ve(j.element) ? " " : " not ") + "already in the
|
|
|
34831
34837
|
t.setGroups(r, l);
|
|
34832
34838
|
}
|
|
34833
34839
|
}
|
|
34834
|
-
}), XL = le, J3 =
|
|
34840
|
+
}), XL = le, J3 = ut, KA = oe([]);
|
|
34835
34841
|
var gj = /* @__PURE__ */ Object.freeze({
|
|
34836
34842
|
__proto__: null,
|
|
34837
34843
|
setup: XL,
|
|
@@ -35545,7 +35551,7 @@ The conflicting element is` + (Ve(j.element) ? " " : " not ") + "already in the
|
|
|
35545
35551
|
Hc.config({
|
|
35546
35552
|
channels: {
|
|
35547
35553
|
...Uc({
|
|
35548
|
-
isExtraPart:
|
|
35554
|
+
isExtraPart: ut,
|
|
35549
35555
|
...l.fireDismissalEventInstead.map((S) => ({ fireEventInstead: { event: S.event } })).getOr({})
|
|
35550
35556
|
}),
|
|
35551
35557
|
...Cp({
|
|
@@ -36047,7 +36053,7 @@ The conflicting element is` + (Ve(j.element) ? " " : " not ") + "already in the
|
|
|
36047
36053
|
]), sX = (t) => Vr("view", oX, t), S9 = (t, r) => {
|
|
36048
36054
|
var l, f;
|
|
36049
36055
|
const b = t.type === "togglebutton", x = t.icon.map((He) => p1(He, r.icons)).map(Qs), E = (He) => {
|
|
36050
|
-
const
|
|
36056
|
+
const ct = (xt) => {
|
|
36051
36057
|
x.map((En) => En.getOpt(He).each((fn) => {
|
|
36052
36058
|
xo.set(fn, [p1(xt, r.icons)]);
|
|
36053
36059
|
}));
|
|
@@ -36057,13 +36063,13 @@ The conflicting element is` + (Ve(j.element) ? " " : " not ") + "already in the
|
|
|
36057
36063
|
}, mn = () => ql(He.element, "tox-button--enabled"), Sn = () => bu(He.element);
|
|
36058
36064
|
if (b)
|
|
36059
36065
|
return t.onAction({
|
|
36060
|
-
setIcon:
|
|
36066
|
+
setIcon: ct,
|
|
36061
36067
|
setActive: gt,
|
|
36062
36068
|
isActive: mn,
|
|
36063
36069
|
focus: Sn
|
|
36064
36070
|
});
|
|
36065
36071
|
if (t.type === "button")
|
|
36066
|
-
return t.onAction({ setIcon:
|
|
36072
|
+
return t.onAction({ setIcon: ct });
|
|
36067
36073
|
}, D = {
|
|
36068
36074
|
...t,
|
|
36069
36075
|
name: b ? t.text.getOr(t.icon.getOr("")) : (l = t.text) !== null && l !== void 0 ? l : t.icon.getOr(""),
|
|
@@ -36541,7 +36547,7 @@ The conflicting element is` + (Ve(j.element) ? " " : " not ") + "already in the
|
|
|
36541
36547
|
text: t.title,
|
|
36542
36548
|
getItems: () => Se(t.items, (b) => {
|
|
36543
36549
|
const x = b.toLowerCase();
|
|
36544
|
-
return x.trim().length === 0 ? [] :
|
|
36550
|
+
return x.trim().length === 0 ? [] : lt(f, (S) => S === x) ? [] : x === "separator" || x === "|" ? [{ type: "separator" }] : r.menuItems[x] ? [r.menuItems[x]] : [];
|
|
36545
36551
|
})
|
|
36546
36552
|
};
|
|
36547
36553
|
}, vD = (t) => t.split(" "), M9 = (t, r) => {
|
|
@@ -36560,7 +36566,7 @@ The conflicting element is` + (Ve(j.element) ? " " : " not ") + "already in the
|
|
|
36560
36566
|
});
|
|
36561
36567
|
return fo(S, (E) => {
|
|
36562
36568
|
const D = (L) => w(L) || L.type !== "separator";
|
|
36563
|
-
return E.getItems().length > 0 &&
|
|
36569
|
+
return E.getItems().length > 0 && lt(E.getItems(), D);
|
|
36564
36570
|
});
|
|
36565
36571
|
}, B9 = (t) => {
|
|
36566
36572
|
const r = () => {
|
|
@@ -36882,7 +36888,7 @@ The conflicting element is` + (Ve(j.element) ? " " : " not ") + "already in the
|
|
|
36882
36888
|
updateText: S,
|
|
36883
36889
|
dataset: E,
|
|
36884
36890
|
shouldHide: !1,
|
|
36885
|
-
isInvalid:
|
|
36891
|
+
isInvalid: ut
|
|
36886
36892
|
};
|
|
36887
36893
|
}, DX = (t, r) => e2(t, r, q9(t), TD, "FontFamilyTextUpdate", "fontfamily"), RX = (t, r) => {
|
|
36888
36894
|
const l = Jy(r, q9(t));
|
|
@@ -36929,7 +36935,7 @@ The conflicting element is` + (Ve(j.element) ? " " : " not ") + "already in the
|
|
|
36929
36935
|
t + b(l)
|
|
36930
36936
|
].join("|")})`;
|
|
36931
36937
|
return new RegExp(`^(${S})(.*)$`);
|
|
36932
|
-
})(), NX = (t, r) =>
|
|
36938
|
+
})(), NX = (t, r) => lt(r, (l) => lt(MX[l], (f) => t === f)), O_ = (t, r) => Q.from(BX.exec(t)).bind((f) => {
|
|
36933
36939
|
const b = Number(f[1]), x = f[2];
|
|
36934
36940
|
return NX(x, r) ? Q.some({
|
|
36935
36941
|
value: b,
|
|
@@ -36952,15 +36958,15 @@ The conflicting element is` + (Ve(j.element) ? " " : " not ") + "already in the
|
|
|
36952
36958
|
pageDown: oe(34)
|
|
36953
36959
|
}, LX = (t, r, l, f) => {
|
|
36954
36960
|
let b = Q.none();
|
|
36955
|
-
const x = (He) => He.map((
|
|
36956
|
-
const
|
|
36957
|
-
b = Q.some(
|
|
36958
|
-
}), E = (He) => ({ getComponent: oe(He) }), D = In(le), L = Pn("custom-number-input-events"), V = (He,
|
|
36961
|
+
const x = (He) => He.map((ct) => kn.getValue(ct)).getOr(""), S = uO(t, "NodeChange SwitchMode DisabledStateChange", (He) => {
|
|
36962
|
+
const ct = He.getComponent();
|
|
36963
|
+
b = Q.some(ct), l.updateInputValue(ct), zn.set(ct, !t.selection.isEditable() || pT(t));
|
|
36964
|
+
}), E = (He) => ({ getComponent: oe(He) }), D = In(le), L = Pn("custom-number-input-events"), V = (He, ct, gt) => {
|
|
36959
36965
|
const mn = x(b), Sn = l.getNewValue(mn, He), xt = mn.length - `${Sn}`.length, En = b.map((Bn) => Bn.element.dom.selectionStart - xt), fn = b.map((Bn) => Bn.element.dom.selectionEnd - xt);
|
|
36960
36966
|
l.onAction(Sn, gt), b.each((Bn) => {
|
|
36961
|
-
kn.setValue(Bn, Sn),
|
|
36967
|
+
kn.setValue(Bn, Sn), ct && (En.each((cs) => Bn.element.dom.selectionStart = cs), fn.each((cs) => Bn.element.dom.selectionEnd = cs));
|
|
36962
36968
|
});
|
|
36963
|
-
}, j = (He,
|
|
36969
|
+
}, j = (He, ct) => V((gt, mn) => gt - mn, He, ct), ne = (He, ct) => V((gt, mn) => gt + mn, He, ct), ae = (He) => Ra(He.element).fold(Q.none, (ct) => (bu(ct), Q.some(!0))), pe = (He) => uf(He.element) ? (Sc(He.element).each((ct) => bu(ct)), Q.some(!0)) : Q.none(), xe = (He, ct, gt, mn) => {
|
|
36964
36970
|
const Sn = In(le), xt = r.shared.providers.translate(gt), En = Pn("altExecuting"), fn = uO(t, "NodeChange SwitchMode DisabledStateChange", (cs) => {
|
|
36965
36971
|
zn.set(cs.getComponent(), !t.selection.isEditable() || pT(t));
|
|
36966
36972
|
}), Bn = (cs) => {
|
|
@@ -36971,11 +36977,11 @@ The conflicting element is` + (Ve(j.element) ? " " : " not ") + "already in the
|
|
|
36971
36977
|
tag: "button",
|
|
36972
36978
|
attributes: {
|
|
36973
36979
|
"aria-label": xt,
|
|
36974
|
-
"data-mce-name":
|
|
36980
|
+
"data-mce-name": ct
|
|
36975
36981
|
},
|
|
36976
|
-
classes: mn.concat(
|
|
36982
|
+
classes: mn.concat(ct)
|
|
36977
36983
|
},
|
|
36978
|
-
components: [dS(
|
|
36984
|
+
components: [dS(ct, r.shared.providers.icons)],
|
|
36979
36985
|
buttonBehaviours: Yt([
|
|
36980
36986
|
zn.config({}),
|
|
36981
36987
|
gi.config(r.shared.providers.tooltips.getConfig({ tooltipText: xt })),
|
|
@@ -37032,8 +37038,8 @@ The conflicting element is` + (Ve(j.element) ? " " : " not ") + "already in the
|
|
|
37032
37038
|
El({ getApi: E }, D)
|
|
37033
37039
|
]),
|
|
37034
37040
|
Po("input-update-display-text", [
|
|
37035
|
-
$t(Fd, (He,
|
|
37036
|
-
kn.setValue(He,
|
|
37041
|
+
$t(Fd, (He, ct) => {
|
|
37042
|
+
kn.setValue(He, ct.event.text);
|
|
37037
37043
|
}),
|
|
37038
37044
|
$t(ok(), (He) => {
|
|
37039
37045
|
l.onAction(kn.getValue(He));
|
|
@@ -37048,8 +37054,8 @@ The conflicting element is` + (Ve(j.element) ? " " : " not ") + "already in the
|
|
|
37048
37054
|
onEscape: ae,
|
|
37049
37055
|
onUp: (He) => (ne(!0, !1), Q.some(!0)),
|
|
37050
37056
|
onDown: (He) => (j(!0, !1), Q.some(!0)),
|
|
37051
|
-
onLeft: (He,
|
|
37052
|
-
onRight: (He,
|
|
37057
|
+
onLeft: (He, ct) => (ct.cut(), Q.none()),
|
|
37058
|
+
onRight: (He, ct) => (ct.cut(), Q.none())
|
|
37053
37059
|
})
|
|
37054
37060
|
])
|
|
37055
37061
|
})],
|
|
@@ -37065,8 +37071,8 @@ The conflicting element is` + (Ve(j.element) ? " " : " not ") + "already in the
|
|
|
37065
37071
|
pt([
|
|
37066
37072
|
qe,
|
|
37067
37073
|
we
|
|
37068
|
-
], (
|
|
37069
|
-
const gt = Ot.fromDom(
|
|
37074
|
+
], (ct) => {
|
|
37075
|
+
const gt = Ot.fromDom(ct.get(He).element.dom);
|
|
37070
37076
|
uf(gt) && Ri(gt);
|
|
37071
37077
|
});
|
|
37072
37078
|
})])
|
|
@@ -37148,7 +37154,7 @@ The conflicting element is` + (Ve(j.element) ? " " : " not ") + "already in the
|
|
|
37148
37154
|
updateText: S,
|
|
37149
37155
|
dataset: E,
|
|
37150
37156
|
shouldHide: !1,
|
|
37151
|
-
isInvalid:
|
|
37157
|
+
isInvalid: ut
|
|
37152
37158
|
};
|
|
37153
37159
|
}, tI = (t, r) => e2(t, r, PD(t), K9, "FontSizeTextUpdate", "fontsize"), VX = (t) => {
|
|
37154
37160
|
var r;
|
|
@@ -37536,7 +37542,7 @@ The conflicting element is` + (Ve(j.element) ? " " : " not ") + "already in the
|
|
|
37536
37542
|
onSetup: t.onSetup
|
|
37537
37543
|
}, r, f), hI = (t, r, l) => (f) => nc.nu((b) => r.fetch(b)).map((b) => Q.from(gP(wr(cP(Pn("menu-value"), b, (x) => {
|
|
37538
37544
|
r.onItemAction(t(f), x);
|
|
37539
|
-
}, r.columns, r.presets, vf.CLOSE_ON_EXECUTE, r.select.getOr(
|
|
37545
|
+
}, r.columns, r.presets, vf.CLOSE_ON_EXECUTE, r.select.getOr(ut), l), {
|
|
37540
37546
|
movement: s3(r.columns, r.presets),
|
|
37541
37547
|
menuBehaviours: rO.unnamedEvents(r.columns !== "auto" ? [] : [fr((x, S) => {
|
|
37542
37548
|
L$(x, 4, _6(r.presets)).each(({ numRows: E, numColumns: D }) => {
|
|
@@ -37627,7 +37633,7 @@ The conflicting element is` + (Ve(j.element) ? " " : " not ") + "already in the
|
|
|
37627
37633
|
toggleClass: "tox-tbtn--enabled",
|
|
37628
37634
|
toggleOnExecute: !1
|
|
37629
37635
|
}),
|
|
37630
|
-
Eh.toolbarButton(
|
|
37636
|
+
Eh.toolbarButton(ut),
|
|
37631
37637
|
na(oe({
|
|
37632
37638
|
contextType: "any",
|
|
37633
37639
|
shouldDisable: !1
|
|
@@ -37643,7 +37649,7 @@ The conflicting element is` + (Ve(j.element) ? " " : " not ") + "already in the
|
|
|
37643
37649
|
innerHtml: h$("chevron-down", r.providers.icons)
|
|
37644
37650
|
},
|
|
37645
37651
|
buttonBehaviours: Yt([
|
|
37646
|
-
Eh.splitButton(
|
|
37652
|
+
Eh.splitButton(ut),
|
|
37647
37653
|
na(oe({
|
|
37648
37654
|
contextType: "any",
|
|
37649
37655
|
shouldDisable: !1
|
|
@@ -37882,7 +37888,7 @@ The conflicting element is` + (Ve(j.element) ? " " : " not ") + "already in the
|
|
|
37882
37888
|
default:
|
|
37883
37889
|
return "top";
|
|
37884
37890
|
}
|
|
37885
|
-
},
|
|
37891
|
+
}, ct = (Qn) => {
|
|
37886
37892
|
b.on((Wt) => {
|
|
37887
37893
|
mr.setModes(Wt, [Qn]), j.setDockingMode(Qn);
|
|
37888
37894
|
const On = ne() ? df.TopToBottom : df.BottomToTop;
|
|
@@ -37933,7 +37939,7 @@ The conflicting element is` + (Ve(j.element) ? " " : " not ") + "already in the
|
|
|
37933
37939
|
L && b.on(Qn), xt();
|
|
37934
37940
|
}, Bn = () => D || !L || !we() ? !1 : b.get().exists((Qn) => {
|
|
37935
37941
|
const Wt = j.getDockingMode(), On = He(Qn);
|
|
37936
|
-
return On !== Wt ? (
|
|
37942
|
+
return On !== Wt ? (ct(On), !0) : !1;
|
|
37937
37943
|
});
|
|
37938
37944
|
return {
|
|
37939
37945
|
isVisible: we,
|
|
@@ -38195,7 +38201,7 @@ The conflicting element is` + (Ve(j.element) ? " " : " not ") + "already in the
|
|
|
38195
38201
|
max: String(t.max())
|
|
38196
38202
|
},
|
|
38197
38203
|
data: t.initValue().toString(),
|
|
38198
|
-
fromInputValue: (S) =>
|
|
38204
|
+
fromInputValue: (S) => dt(S).getOr(t.min()),
|
|
38199
38205
|
toInputValue: (S) => String(S),
|
|
38200
38206
|
inputBehaviours: Yt([
|
|
38201
38207
|
zn.config({ disabled: () => r.checkUiComponentContext("mode:design").shouldDisable }),
|
|
@@ -38446,7 +38452,7 @@ The conflicting element is` + (Ve(j.element) ? " " : " not ") + "already in the
|
|
|
38446
38452
|
if (t.length <= 1)
|
|
38447
38453
|
return t;
|
|
38448
38454
|
{
|
|
38449
|
-
const r = (x) =>
|
|
38455
|
+
const r = (x) => lt(t, (S) => S.position === x), l = (x) => fo(t, (S) => S.position === x), f = r("selection"), b = r("node");
|
|
38450
38456
|
if (f || b)
|
|
38451
38457
|
if (b && f) {
|
|
38452
38458
|
const x = l("node"), S = We(l("selection"), (E) => ({
|
|
@@ -38578,11 +38584,11 @@ The conflicting element is` + (Ve(j.element) ? " " : " not ") + "already in the
|
|
|
38578
38584
|
buttons: fn,
|
|
38579
38585
|
toolbar: Bn.items,
|
|
38580
38586
|
allowToolbarGroups: !1
|
|
38581
|
-
}, f.backstage, Q.some(["form:"])),
|
|
38587
|
+
}, f.backstage, Q.some(["form:"])), ct = (fn, Bn) => _q.buildInitGroups(fn, Bn), gt = (fn) => {
|
|
38582
38588
|
const { buttons: Bn } = t.ui.registry.getAll(), cs = Ue(), Dr = {
|
|
38583
38589
|
...Bn,
|
|
38584
38590
|
...cs.formNavigators
|
|
38585
|
-
}, Bs = by(t) === Nd.scrolling ? Nd.scrolling : Nd.default, Qn = Je(We(fn, (Wt) => Wt.type === "contexttoolbar" ? He(Dr, Ix(Wt)) :
|
|
38591
|
+
}, Bs = by(t) === Nd.scrolling ? Nd.scrolling : Nd.default, Qn = Je(We(fn, (Wt) => Wt.type === "contexttoolbar" ? He(Dr, Ix(Wt)) : ct(Wt, x.providers)));
|
|
38586
38592
|
return kS({
|
|
38587
38593
|
type: Bs,
|
|
38588
38594
|
uid: Pn("context-toolbar"),
|
|
@@ -39551,7 +39557,7 @@ The conflicting element is` + (Ve(j.element) ? " " : " not ") + "already in the
|
|
|
39551
39557
|
st("mustSnap", !1)
|
|
39552
39558
|
]);
|
|
39553
39559
|
const Q_ = [
|
|
39554
|
-
st("useFixed",
|
|
39560
|
+
st("useFixed", ut),
|
|
39555
39561
|
At("blockerClass"),
|
|
39556
39562
|
st("getTarget", Et),
|
|
39557
39563
|
st("onDrag", le),
|
|
@@ -39821,7 +39827,7 @@ The conflicting element is` + (Ve(j.element) ? " " : " not ") + "already in the
|
|
|
39821
39827
|
}, Ue = (Sn, xt, En, fn) => {
|
|
39822
39828
|
const Bn = En(xt);
|
|
39823
39829
|
w1.snapTo(Sn, Bn), we(Sn, xt, (Bs) => Bs[fn] < 0, (Bs, Qn) => Bs[fn] > Qn);
|
|
39824
|
-
}, He = (Sn) => Ue(xe, Sn, E, "top"),
|
|
39830
|
+
}, He = (Sn) => Ue(xe, Sn, E, "top"), ct = () => x.get().each(He), gt = (Sn) => Ue(qe, Sn, L, "bottom"), mn = () => S.get().each(gt);
|
|
39825
39831
|
if (qr().deviceType.isTouch()) {
|
|
39826
39832
|
const Sn = (xt) => We(xt, Ot.fromDom);
|
|
39827
39833
|
t.on("TableSelectionChange", (xt) => {
|
|
@@ -39831,7 +39837,7 @@ The conflicting element is` + (Ve(j.element) ? " " : " not ") + "already in the
|
|
|
39831
39837
|
l.set(Sn(Bn.upOrLeftCells)), f.set(Sn(Bn.downOrRightCells)), He(En), gt(fn);
|
|
39832
39838
|
});
|
|
39833
39839
|
}), t.on("ResizeEditor ResizeWindow ScrollContent", () => {
|
|
39834
|
-
|
|
39840
|
+
ct(), mn();
|
|
39835
39841
|
}), t.on("TableSelectionClear", () => {
|
|
39836
39842
|
b.get() && (wh(xe), wh(qe), b.set(!1)), x.clear(), S.clear();
|
|
39837
39843
|
});
|
|
@@ -40131,10 +40137,10 @@ The conflicting element is` + (Ve(j.element) ? " " : " not ") + "already in the
|
|
|
40131
40137
|
tag: "div",
|
|
40132
40138
|
classes: ["tox-bottom-anchorbar"]
|
|
40133
40139
|
}
|
|
40134
|
-
}), we = () => x.mainUi.get().map((eo) => eo.outerContainer).bind(Ar.getHeader), Ue = () => Eo.fromOption(x.dialogUi.get().map((eo) => eo.sink), "UI has not been rendered"), He = () => Eo.fromOption(x.popupUi.get().map((eo) => eo.sink), "(popup) UI has not been rendered"),
|
|
40140
|
+
}), we = () => x.mainUi.get().map((eo) => eo.outerContainer).bind(Ar.getHeader), Ue = () => Eo.fromOption(x.dialogUi.get().map((eo) => eo.sink), "UI has not been rendered"), He = () => Eo.fromOption(x.popupUi.get().map((eo) => eo.sink), "(popup) UI has not been rendered"), ct = x.lazyGetInOuterOrDie("anchor bar", xe.getOpt), gt = x.lazyGetInOuterOrDie("bottom anchor bar", qe.getOpt), mn = x.lazyGetInOuterOrDie("toolbar", Ar.getToolbar), Sn = x.lazyGetInOuterOrDie("throbber", Ar.getThrobber), xt = K3({
|
|
40135
40141
|
popup: He,
|
|
40136
40142
|
dialog: Ue
|
|
40137
|
-
}, t,
|
|
40143
|
+
}, t, ct, gt), En = () => {
|
|
40138
40144
|
const eo = { attributes: { [ww]: ae ? df.BottomToTop : df.TopToBottom } }, Ao = Ar.parts.menubar({
|
|
40139
40145
|
dom: {
|
|
40140
40146
|
tag: "div",
|
|
@@ -41765,8 +41771,8 @@ The conflicting element is` + (Ve(j.element) ? " " : " not ") + "already in the
|
|
|
41765
41771
|
setData: (pe) => {
|
|
41766
41772
|
f((xe) => {
|
|
41767
41773
|
const qe = ae.getData(), we = wr(qe, pe), Ue = Wp(t, we), He = t.getFormWrapper();
|
|
41768
|
-
kn.setValue(He, Ue), Fs(l, (
|
|
41769
|
-
zo(we, gt) &&
|
|
41774
|
+
kn.setValue(He, Ue), Fs(l, (ct, gt) => {
|
|
41775
|
+
zo(we, gt) && ct.set(we[gt]);
|
|
41770
41776
|
});
|
|
41771
41777
|
});
|
|
41772
41778
|
},
|
|
@@ -41814,7 +41820,7 @@ The conflicting element is` + (Ve(j.element) ? " " : " not ") + "already in the
|
|
|
41814
41820
|
};
|
|
41815
41821
|
return ae;
|
|
41816
41822
|
}, MQ = (t, r, l) => {
|
|
41817
|
-
const f = Pn("dialog"), b = t.internalDialog, x = $O(b.title, f, l), S = In(b.size), E = (He) => VS(we, He), D = Pu(S.get()).toArray(), L = (He,
|
|
41823
|
+
const f = Pn("dialog"), b = t.internalDialog, x = $O(b.title, f, l), S = In(b.size), E = (He) => VS(we, He), D = Pu(S.get()).toArray(), L = (He, ct) => (S.set(ct.internalDialog.size), FS(ct.internalDialog.size, He), Q.some(ct)), V = Xa({
|
|
41818
41824
|
body: b.body,
|
|
41819
41825
|
initialData: b.initialData
|
|
41820
41826
|
}, f, l, E), j = ln(b.buttons), ne = sn(j), ae = jn(j.length !== 0, bR({ buttons: j }, f, l)), pe = Ci(() => Ue, PO(() => qe, l.shared.providers, r), l.shared.getSink), xe = {
|
|
@@ -41833,7 +41839,7 @@ The conflicting element is` + (Ve(j.element) ? " " : " not ") + "already in the
|
|
|
41833
41839
|
const He = () => {
|
|
41834
41840
|
const gt = ja.getBody(qe);
|
|
41835
41841
|
return Os.getCurrent(gt).getOr(gt);
|
|
41836
|
-
},
|
|
41842
|
+
}, ct = () => {
|
|
41837
41843
|
ht(qe, S.get());
|
|
41838
41844
|
};
|
|
41839
41845
|
return {
|
|
@@ -41842,7 +41848,7 @@ The conflicting element is` + (Ve(j.element) ? " " : " not ") + "already in the
|
|
|
41842
41848
|
getBody: () => ja.getBody(qe),
|
|
41843
41849
|
getFooter: () => ja.getFooter(qe),
|
|
41844
41850
|
getFormWrapper: He,
|
|
41845
|
-
toggleFullscreen:
|
|
41851
|
+
toggleFullscreen: ct
|
|
41846
41852
|
};
|
|
41847
41853
|
})(), Ue = OR(we, r.redial, ne);
|
|
41848
41854
|
return {
|
|
@@ -41867,7 +41873,7 @@ The conflicting element is` + (Ve(j.element) ? " " : " not ") + "already in the
|
|
|
41867
41873
|
Rh.unblock(gt);
|
|
41868
41874
|
},
|
|
41869
41875
|
onClose: () => r.closeWindow()
|
|
41870
|
-
}, l.shared.getSink), He = "tox-dialog-inline",
|
|
41876
|
+
}, l.shared.getSink), He = "tox-dialog-inline", ct = qr().os, gt = xl({
|
|
41871
41877
|
dom: {
|
|
41872
41878
|
tag: "div",
|
|
41873
41879
|
classes: [
|
|
@@ -41877,7 +41883,7 @@ The conflicting element is` + (Ve(j.element) ? " " : " not ") + "already in the
|
|
|
41877
41883
|
],
|
|
41878
41884
|
attributes: {
|
|
41879
41885
|
role: "dialog",
|
|
41880
|
-
...
|
|
41886
|
+
...ct.isMacOS() ? { "aria-label": D.title } : { "aria-labelledby": S }
|
|
41881
41887
|
}
|
|
41882
41888
|
},
|
|
41883
41889
|
eventOrder: {
|
|
@@ -42007,7 +42013,7 @@ The conflicting element is` + (Ve(j.element) ? " " : " not ") + "already in the
|
|
|
42007
42013
|
width: He + "px",
|
|
42008
42014
|
"max-width": He + "px"
|
|
42009
42015
|
}))
|
|
42010
|
-
}, V = t.width.isNone() && t.height.isNone() ? ["tox-dialog--width-lg"] : [], j = new K_(t.url, { base_uri: new K_(window.location.href) }), ne = `${j.protocol}://${j.host}${j.port ? ":" + j.port : ""}`, ae = Wl(), pe = (He,
|
|
42016
|
+
}, V = t.width.isNone() && t.height.isNone() ? ["tox-dialog--width-lg"] : [], j = new K_(t.url, { base_uri: new K_(window.location.href) }), ne = `${j.protocol}://${j.host}${j.port ? ":" + j.port : ""}`, ae = Wl(), pe = (He, ct) => Q.some(ct), xe = [
|
|
42011
42017
|
hn.config({
|
|
42012
42018
|
channel: `${lS}-${b}`,
|
|
42013
42019
|
updateState: pe,
|
|
@@ -42015,9 +42021,9 @@ The conflicting element is` + (Ve(j.element) ? " " : " not ") + "already in the
|
|
|
42015
42021
|
}),
|
|
42016
42022
|
Po("messages", [
|
|
42017
42023
|
fr(() => {
|
|
42018
|
-
const He = Kl(Ot.fromDom(window), "message", (
|
|
42019
|
-
if (j.isSameOrigin(new K_(
|
|
42020
|
-
const gt =
|
|
42024
|
+
const He = Kl(Ot.fromDom(window), "message", (ct) => {
|
|
42025
|
+
if (j.isSameOrigin(new K_(ct.raw.origin))) {
|
|
42026
|
+
const gt = ct.raw.data;
|
|
42021
42027
|
mt(gt) ? Yo(l, Ue, gt) : oo(gt) && t.onMessage(Ue, gt);
|
|
42022
42028
|
}
|
|
42023
42029
|
});
|
|
@@ -42028,10 +42034,10 @@ The conflicting element is` + (Ve(j.element) ? " " : " not ") + "already in the
|
|
|
42028
42034
|
Hc.config({
|
|
42029
42035
|
channels: {
|
|
42030
42036
|
[iA]: {
|
|
42031
|
-
onReceive: (He,
|
|
42037
|
+
onReceive: (He, ct) => {
|
|
42032
42038
|
Er(He.element, "iframe").each((gt) => {
|
|
42033
42039
|
const mn = gt.dom.contentWindow;
|
|
42034
|
-
Me(mn) && mn.postMessage(
|
|
42040
|
+
Me(mn) && mn.postMessage(ct, ne);
|
|
42035
42041
|
});
|
|
42036
42042
|
}
|
|
42037
42043
|
}
|
|
@@ -42166,9 +42172,9 @@ The conflicting element is` + (Ve(j.element) ? " " : " not ") + "already in the
|
|
|
42166
42172
|
return Ge.openUrl(qe, pe);
|
|
42167
42173
|
}, D = (pe, xe) => {
|
|
42168
42174
|
const qe = (we, Ue, He) => {
|
|
42169
|
-
const
|
|
42175
|
+
const ct = Ue, mn = MQ({
|
|
42170
42176
|
dataValidator: He,
|
|
42171
|
-
initialData:
|
|
42177
|
+
initialData: ct,
|
|
42172
42178
|
internalDialog: we
|
|
42173
42179
|
}, {
|
|
42174
42180
|
redial: Ge.redial,
|
|
@@ -42176,12 +42182,12 @@ The conflicting element is` + (Ve(j.element) ? " " : " not ") + "already in the
|
|
|
42176
42182
|
ja.hide(mn.dialog), xe(mn.instanceApi);
|
|
42177
42183
|
}
|
|
42178
42184
|
}, t.backstages.dialog);
|
|
42179
|
-
return ja.show(mn.dialog), mn.instanceApi.setData(
|
|
42185
|
+
return ja.show(mn.dialog), mn.instanceApi.setData(ct), mn.instanceApi;
|
|
42180
42186
|
};
|
|
42181
42187
|
return Ge.open(qe, pe);
|
|
42182
42188
|
}, L = (pe, xe, qe, we) => {
|
|
42183
|
-
const Ue = (He,
|
|
42184
|
-
const mn = ld(
|
|
42189
|
+
const Ue = (He, ct, gt) => {
|
|
42190
|
+
const mn = ld(ct, gt), Sn = Is(), xt = t.backstages.popup.shared.header.isPositionedAtTop(), En = {
|
|
42185
42191
|
dataValidator: gt,
|
|
42186
42192
|
initialData: mn,
|
|
42187
42193
|
internalDialog: He
|
|
@@ -42217,8 +42223,8 @@ The conflicting element is` + (Ve(j.element) ? " " : " not ") + "already in the
|
|
|
42217
42223
|
};
|
|
42218
42224
|
return Ge.open(Ue, pe);
|
|
42219
42225
|
}, V = (pe, xe, qe, we) => {
|
|
42220
|
-
const Ue = (He,
|
|
42221
|
-
const mn = ld(
|
|
42226
|
+
const Ue = (He, ct, gt) => {
|
|
42227
|
+
const mn = ld(ct, gt), Sn = Is(), xt = t.backstages.popup.shared.header.isPositionedAtTop(), En = {
|
|
42222
42228
|
dataValidator: gt,
|
|
42223
42229
|
initialData: mn,
|
|
42224
42230
|
internalDialog: He
|
|
@@ -42416,7 +42422,7 @@ function lhe() {
|
|
|
42416
42422
|
}
|
|
42417
42423
|
}
|
|
42418
42424
|
ve.singletonNone = new ve(!1);
|
|
42419
|
-
const Xn = Array.prototype.slice,
|
|
42425
|
+
const Xn = Array.prototype.slice, ut = Array.prototype.indexOf, kt = Array.prototype.push, Q = (g, v) => ut.call(g, v), io = (g, v) => Q(g, v) > -1, It = (g, v) => {
|
|
42420
42426
|
for (let k = 0, _ = g.length; k < _; k++) {
|
|
42421
42427
|
const N = g[k];
|
|
42422
42428
|
if (v(N, k))
|
|
@@ -42445,7 +42451,7 @@ function lhe() {
|
|
|
42445
42451
|
const _ = g[k];
|
|
42446
42452
|
v(_, k);
|
|
42447
42453
|
}
|
|
42448
|
-
},
|
|
42454
|
+
}, lt = (g, v) => {
|
|
42449
42455
|
const k = [], _ = [];
|
|
42450
42456
|
for (let N = 0, z = g.length; N < z; N++) {
|
|
42451
42457
|
const J = g[N];
|
|
@@ -42592,7 +42598,7 @@ function lhe() {
|
|
|
42592
42598
|
return k === null ? void 0 : k;
|
|
42593
42599
|
}, Pe = (g, v) => ve.from(vr(g, v)), Ce = (g, v) => {
|
|
42594
42600
|
g.dom.removeAttribute(v);
|
|
42595
|
-
},
|
|
42601
|
+
}, dt = (g) => We(g.dom.attributes, (v, k) => (v[k.name] = k.value, v), {}), bt = (g, v) => {
|
|
42596
42602
|
const _ = (v || document).createElement("div");
|
|
42597
42603
|
if (_.innerHTML = g, !_.hasChildNodes() || _.childNodes.length > 1) {
|
|
42598
42604
|
const N = "HTML does not have a single root node";
|
|
@@ -42702,7 +42708,7 @@ function lhe() {
|
|
|
42702
42708
|
const v = So(g);
|
|
42703
42709
|
v.length > 0 && eu(g, v), hr(g);
|
|
42704
42710
|
}, bl = (g, v) => Rt.fromDom(g.dom.cloneNode(v)), Hl = (g) => bl(g, !1), oi = (g) => bl(g, !0), Qu = (g, v) => {
|
|
42705
|
-
const k = Rt.fromTag(v), _ =
|
|
42711
|
+
const k = Rt.fromTag(v), _ = dt(g);
|
|
42706
42712
|
return bi(k, _), k;
|
|
42707
42713
|
}, Ra = (g, v) => {
|
|
42708
42714
|
const k = Qu(g, v), _ = So(oi(g));
|
|
@@ -43147,7 +43153,7 @@ function lhe() {
|
|
|
43147
43153
|
const k = g.cells, _ = Ft(k, v);
|
|
43148
43154
|
return pa(g.element, _, g.section, g.isNew);
|
|
43149
43155
|
}, Dl = (g, v) => g.cells[v], ol = (g, v) => Dl(g, v).element, jl = (g) => g.cells.length, qi = (g) => {
|
|
43150
|
-
const v =
|
|
43156
|
+
const v = lt(g, (k) => k.section === "colgroup");
|
|
43151
43157
|
return {
|
|
43152
43158
|
rows: v.fail,
|
|
43153
43159
|
cols: v.pass
|
|
@@ -43182,7 +43188,7 @@ function lhe() {
|
|
|
43182
43188
|
const {
|
|
43183
43189
|
pass: ue,
|
|
43184
43190
|
fail: Ie
|
|
43185
|
-
} =
|
|
43191
|
+
} = lt(g, (Kt) => Kt.section === "colgroup");
|
|
43186
43192
|
Be(Ie, (Kt) => {
|
|
43187
43193
|
const nn = [];
|
|
43188
43194
|
Be(Kt.cells, (Mn) => {
|
|
@@ -43769,7 +43775,7 @@ function lhe() {
|
|
|
43769
43775
|
"hr",
|
|
43770
43776
|
"input"
|
|
43771
43777
|
], Ts(Ie)) : !1, N = (Ie) => er(Ie) && vr(Ie, "contenteditable") === "false", z = (Ie, nt) => Ie.dom.compareDocumentPosition(nt.dom), J = (Ie, nt) => {
|
|
43772
|
-
const Vt =
|
|
43778
|
+
const Vt = dt(Ie);
|
|
43773
43779
|
bi(nt, Vt);
|
|
43774
43780
|
}, ie = (Ie) => {
|
|
43775
43781
|
const nt = Ts(Ie);
|
|
@@ -46720,7 +46726,7 @@ function che() {
|
|
|
46720
46726
|
U(zt, Ee) && te.push(zt);
|
|
46721
46727
|
}
|
|
46722
46728
|
return te;
|
|
46723
|
-
},
|
|
46729
|
+
}, ut = (M, U) => {
|
|
46724
46730
|
if (M.length === 0)
|
|
46725
46731
|
return [];
|
|
46726
46732
|
{
|
|
@@ -46755,7 +46761,7 @@ function che() {
|
|
|
46755
46761
|
}, Jt = (M, U) => It(Xe(M, U)), Ft = (M) => {
|
|
46756
46762
|
const U = Xt.call(M, 0);
|
|
46757
46763
|
return U.reverse(), U;
|
|
46758
|
-
}, Be = (M, U) => U >= 0 && U < M.length ? je.some(M[U]) : je.none(), _t = (M) => Be(M, 0),
|
|
46764
|
+
}, Be = (M, U) => U >= 0 && U < M.length ? je.some(M[U]) : je.none(), _t = (M) => Be(M, 0), lt = (M) => Be(M, M.length - 1), Ke = (M, U) => {
|
|
46759
46765
|
const te = [], Ee = F(U) ? (Fe) => dn(te, (zt) => U(zt, Fe)) : (Fe) => rn(te, Fe);
|
|
46760
46766
|
for (let Fe = 0, zt = M.length; Fe < zt; Fe++) {
|
|
46761
46767
|
const to = M[Fe];
|
|
@@ -46870,7 +46876,7 @@ function che() {
|
|
|
46870
46876
|
ve(U, (te) => {
|
|
46871
46877
|
bi(M, te);
|
|
46872
46878
|
});
|
|
46873
|
-
},
|
|
46879
|
+
}, dt = (M, U) => {
|
|
46874
46880
|
ve(U, (te) => {
|
|
46875
46881
|
Pe(M, te);
|
|
46876
46882
|
});
|
|
@@ -46915,7 +46921,7 @@ function che() {
|
|
|
46915
46921
|
const te = lo(M, U);
|
|
46916
46922
|
sa(M, te);
|
|
46917
46923
|
const Ee = zo(M);
|
|
46918
|
-
return
|
|
46924
|
+
return dt(te, Ee), Wn(M), te;
|
|
46919
46925
|
};
|
|
46920
46926
|
var ar = tinymce.util.Tools.resolve("tinymce.dom.DOMUtils"), Ss = tinymce.util.Tools.resolve("tinymce.util.Tools");
|
|
46921
46927
|
const Da = (M) => (U) => R(U) && U.nodeName.toLowerCase() === M, Zi = (M) => (U) => R(U) && M.test(U.nodeName), So = (M) => R(M) && M.nodeType === 3, Fo = (M) => R(M) && M.nodeType === 1, Ho = Zi(/^(OL|UL|DL)$/), Oi = Zi(/^(OL|UL)$/), vi = Da("ol"), Vi = Zi(/^(LI|DT|DD)$/), Ks = Zi(/^(DT|DD)$/), md = Zi(/^(TH|TD)$/), pl = Da("br"), eu = (M) => {
|
|
@@ -47016,7 +47022,7 @@ function che() {
|
|
|
47016
47022
|
return io(te, (zt) => Ee(zt) && go(M.schema, zt)).getOr(M.getBody());
|
|
47017
47023
|
}, q = (M) => Lo(M).exists((U) => Vi(U.dom) && Mr(U).exists((te) => !Ho(te.dom)) && Ei(U).exists((te) => !Ho(te.dom))), ce = (M, U) => {
|
|
47018
47024
|
const te = M.dom.getParents(U, "ol,ul", as(M, U));
|
|
47019
|
-
return
|
|
47025
|
+
return lt(te);
|
|
47020
47026
|
}, De = (M) => {
|
|
47021
47027
|
const U = ce(M, M.selection.getStart()), te = Xn(M.selection.getSelectedBlocks(), Oi);
|
|
47022
47028
|
return U.toArray().concat(te);
|
|
@@ -47074,7 +47080,7 @@ function che() {
|
|
|
47074
47080
|
for (let U = 1; U < M.length; U++)
|
|
47075
47081
|
ls(M[U - 1], M[U]);
|
|
47076
47082
|
}, tr = (M, U) => {
|
|
47077
|
-
pt(
|
|
47083
|
+
pt(lt(M), _t(U), ls);
|
|
47078
47084
|
}, ri = (M, U) => {
|
|
47079
47085
|
const te = {
|
|
47080
47086
|
list: Se.fromTag(U, M),
|
|
@@ -47089,24 +47095,24 @@ function che() {
|
|
|
47089
47095
|
}, Ba = (M, U) => {
|
|
47090
47096
|
for (let te = 0; te < M.length - 1; te++)
|
|
47091
47097
|
Im(M[te].item, "list-style-type", "none");
|
|
47092
|
-
|
|
47093
|
-
Ma(U) && (Nn(te.list, U.listAttributes), Nn(te.item, U.itemAttributes)),
|
|
47098
|
+
lt(M).each((te) => {
|
|
47099
|
+
Ma(U) && (Nn(te.list, U.listAttributes), Nn(te.item, U.itemAttributes)), dt(te.item, U.content);
|
|
47094
47100
|
});
|
|
47095
47101
|
}, yr = (M, U) => {
|
|
47096
47102
|
Rr(M.list) !== U.listType && (M.list = ds(M.list, U.listType)), Nn(M.list, U.listAttributes);
|
|
47097
47103
|
}, Xr = (M, U, te) => {
|
|
47098
47104
|
const Ee = Se.fromTag("li", M);
|
|
47099
|
-
return Nn(Ee, U),
|
|
47105
|
+
return Nn(Ee, U), dt(Ee, te), Ee;
|
|
47100
47106
|
}, hi = (M, U) => {
|
|
47101
47107
|
Pe(M.list, U), M.item = U;
|
|
47102
47108
|
}, ia = (M, U, te) => {
|
|
47103
47109
|
const Ee = U.slice(0, te.depth);
|
|
47104
|
-
return
|
|
47110
|
+
return lt(Ee).each((Fe) => {
|
|
47105
47111
|
if (Ma(te)) {
|
|
47106
47112
|
const zt = Xr(M, te.itemAttributes, te.content);
|
|
47107
47113
|
hi(Fe, zt), yr(Fe, te);
|
|
47108
47114
|
} else if (fe(te))
|
|
47109
|
-
|
|
47115
|
+
dt(Fe.item, te.content);
|
|
47110
47116
|
else {
|
|
47111
47117
|
const zt = Se.fromHtml(`<!--${te.content}-->`);
|
|
47112
47118
|
Pe(Fe.list, zt);
|
|
@@ -47211,7 +47217,7 @@ function che() {
|
|
|
47211
47217
|
}, ou = (M, U) => {
|
|
47212
47218
|
const te = Vh(U);
|
|
47213
47219
|
return Hi(M.contentDocument, te).toArray();
|
|
47214
|
-
}, Qm = (M, U) => Jt(
|
|
47220
|
+
}, Qm = (M, U) => Jt(ut(U, be), (te) => _t(te).exists(be) ? ou(M, te) : Yp(M, te)), Hh = (M, U) => {
|
|
47215
47221
|
ve(Xn(M, tt), (te) => Vs(U, te));
|
|
47216
47222
|
}, Lg = (M) => {
|
|
47217
47223
|
const U = Xe(Tn(M), Se.fromDom);
|
|
@@ -47881,7 +47887,7 @@ function uhe() {
|
|
|
47881
47887
|
return wt;
|
|
47882
47888
|
}
|
|
47883
47889
|
return et.none();
|
|
47884
|
-
}, Xn = (se, _e, Ve = Te) => se.exists((wt) => Ve(wt, _e)),
|
|
47890
|
+
}, Xn = (se, _e, Ve = Te) => se.exists((wt) => Ve(wt, _e)), ut = (se) => {
|
|
47885
47891
|
const _e = [], Ve = (wt) => {
|
|
47886
47892
|
_e.push(wt);
|
|
47887
47893
|
};
|
|
@@ -47933,7 +47939,7 @@ function uhe() {
|
|
|
47933
47939
|
processor: "boolean",
|
|
47934
47940
|
default: !1
|
|
47935
47941
|
});
|
|
47936
|
-
}, It = Q("link_assume_external_targets"), Jt = Q("link_context_toolbar"), Ft = Q("link_list"), Be = Q("link_default_target"), _t = Q("link_default_protocol"),
|
|
47942
|
+
}, It = Q("link_assume_external_targets"), Jt = Q("link_context_toolbar"), Ft = Q("link_list"), Be = Q("link_default_target"), _t = Q("link_default_protocol"), lt = Q("link_target_list"), Ke = Q("link_rel_list"), qt = Q("link_class_list"), We = Q("link_title"), pt = Q("allow_unsafe_link_target"), Y = Q("link_quicklink"), Ko = Object.keys, fo = Object.hasOwnProperty, wo = (se, _e) => {
|
|
47937
47943
|
const Ve = Ko(se);
|
|
47938
47944
|
for (let wt = 0, en = Ve.length; wt < en; wt++) {
|
|
47939
47945
|
const Tn = Ve[wt], un = se[Tn];
|
|
@@ -47989,7 +47995,7 @@ function uhe() {
|
|
|
47989
47995
|
const wt = Us(Ve.rel, Ve.target === "_blank");
|
|
47990
47996
|
Ve.rel = wt || null;
|
|
47991
47997
|
}
|
|
47992
|
-
return et.from(Ve.target).isNone() &&
|
|
47998
|
+
return et.from(Ve.target).isNone() && lt(se) === !1 && (Ve.target = Be(se)), Ve.href = pi(Ve.href, It(se)), Ve;
|
|
47993
47999
|
}, Lo = (se, _e, Ve, wt) => {
|
|
47994
48000
|
Ve.each((en) => {
|
|
47995
48001
|
ze(_e, "innerText") ? _e.innerText = en : _e.textContent = en;
|
|
@@ -48136,7 +48142,7 @@ function uhe() {
|
|
|
48136
48142
|
getDelta: bi
|
|
48137
48143
|
};
|
|
48138
48144
|
var Ce = tinymce.util.Tools.resolve("tinymce.util.Delay");
|
|
48139
|
-
const
|
|
48145
|
+
const dt = (se, _e, Ve) => {
|
|
48140
48146
|
const wt = se.selection.getRng();
|
|
48141
48147
|
Ce.setEditorTimeout(se, () => {
|
|
48142
48148
|
se.windowManager.confirm(_e, (en) => {
|
|
@@ -48165,7 +48171,7 @@ function uhe() {
|
|
|
48165
48171
|
bt,
|
|
48166
48172
|
Wn(It(se), _t(se))
|
|
48167
48173
|
], (Ve) => Ve(_e)).fold(() => Promise.resolve(_e), (Ve) => new Promise((wt) => {
|
|
48168
|
-
|
|
48174
|
+
dt(se, Ve.message, (en) => {
|
|
48169
48175
|
wt(en ? Ve.preprocess(_e) : _e);
|
|
48170
48176
|
});
|
|
48171
48177
|
})) }, Rt = { getAnchors: (se) => {
|
|
@@ -48214,7 +48220,7 @@ function uhe() {
|
|
|
48214
48220
|
value: "_blank"
|
|
48215
48221
|
}
|
|
48216
48222
|
], Jn = { getTargets: (se) => {
|
|
48217
|
-
const _e =
|
|
48223
|
+
const _e = lt(se);
|
|
48218
48224
|
return T(_e) ? Ls.sanitize(_e).orThunk(() => et.some(Ln)) : _e === !1 ? et.none() : et.some(Ln);
|
|
48219
48225
|
} }, lo = (se, _e, Ve) => {
|
|
48220
48226
|
const wt = se.getAttrib(_e, Ve);
|
|
@@ -48306,7 +48312,7 @@ function uhe() {
|
|
|
48306
48312
|
wt,
|
|
48307
48313
|
en,
|
|
48308
48314
|
Tn,
|
|
48309
|
-
|
|
48315
|
+
ut([
|
|
48310
48316
|
go.anchor.map(Ls.createUi("anchor", "Anchors")),
|
|
48311
48317
|
go.rels.map(Ls.createUi("rel", "Rel")),
|
|
48312
48318
|
go.targets.map(Ls.createUi("target", "Open link in...")),
|
|
@@ -48669,7 +48675,7 @@ function dhe() {
|
|
|
48669
48675
|
}, dn = (q, ce) => {
|
|
48670
48676
|
const De = {};
|
|
48671
48677
|
return rn(q, ce, Et(De), le), De;
|
|
48672
|
-
}, Xe = (q, ce) => it.call(q, ce), ve = (q, ce) => Xe(q, ce) && q[ce] !== void 0 && q[ce] !== null, Xn = Array.prototype.push,
|
|
48678
|
+
}, Xe = (q, ce) => it.call(q, ce), ve = (q, ce) => Xe(q, ce) && q[ce] !== void 0 && q[ce] !== null, Xn = Array.prototype.push, ut = (q) => {
|
|
48673
48679
|
const ce = [];
|
|
48674
48680
|
for (let De = 0, ot = q.length; De < ot; ++De) {
|
|
48675
48681
|
if (!F(q[De]))
|
|
@@ -48705,7 +48711,7 @@ function dhe() {
|
|
|
48705
48711
|
}, _t = (q, ce) => {
|
|
48706
48712
|
const ot = (ce || document).createElement(q);
|
|
48707
48713
|
return Ke(ot);
|
|
48708
|
-
},
|
|
48714
|
+
}, lt = (q, ce) => {
|
|
48709
48715
|
const ot = (ce || document).createTextNode(q);
|
|
48710
48716
|
return Ke(ot);
|
|
48711
48717
|
}, Ke = (q) => {
|
|
@@ -48715,7 +48721,7 @@ function dhe() {
|
|
|
48715
48721
|
}, We = {
|
|
48716
48722
|
fromHtml: Be,
|
|
48717
48723
|
fromTag: _t,
|
|
48718
|
-
fromText:
|
|
48724
|
+
fromText: lt,
|
|
48719
48725
|
fromDom: Ke,
|
|
48720
48726
|
fromPoint: (q, ce, De) => je.from(q.dom.elementFromPoint(ce, De)).map(Ke)
|
|
48721
48727
|
};
|
|
@@ -48914,11 +48920,11 @@ function dhe() {
|
|
|
48914
48920
|
}
|
|
48915
48921
|
}, Ce = (q, ce, De) => {
|
|
48916
48922
|
(De.alt !== ce.alt || De.isDecorative !== ce.isDecorative) && Pe(q, De.alt, De.isDecorative);
|
|
48917
|
-
},
|
|
48923
|
+
}, dt = (q, ce) => (De, ot, $n) => {
|
|
48918
48924
|
q(De, $n), Ei(De, ce);
|
|
48919
48925
|
}, bt = (q, ce, De) => {
|
|
48920
48926
|
const ot = sa(q, De);
|
|
48921
|
-
vr(De, ot, ce, "caption", ($n, an, ws) => Mr($n)), vr(De, ot, ce, "src", Gt), vr(De, ot, ce, "title", Gt), vr(De, ot, ce, "width", Qi("width", q)), vr(De, ot, ce, "height", Qi("height", q)), vr(De, ot, ce, "class", Gt), vr(De, ot, ce, "style",
|
|
48927
|
+
vr(De, ot, ce, "caption", ($n, an, ws) => Mr($n)), vr(De, ot, ce, "src", Gt), vr(De, ot, ce, "title", Gt), vr(De, ot, ce, "width", Qi("width", q)), vr(De, ot, ce, "height", Qi("height", q)), vr(De, ot, ce, "class", Gt), vr(De, ot, ce, "style", dt(($n, an) => Gt($n, "style", an), q)), vr(De, ot, ce, "hspace", dt(Fi, q)), vr(De, ot, ce, "vspace", dt($i, q)), vr(De, ot, ce, "border", dt(xs, q)), vr(De, ot, ce, "borderStyle", dt(jn, q)), Ce(De, ot, ce);
|
|
48922
48928
|
}, Wn = (q, ce) => {
|
|
48923
48929
|
const De = q.dom.styles.parse(ce), ot = is(De), $n = q.dom.styles.parse(q.dom.styles.serialize(ot));
|
|
48924
48930
|
return q.dom.styles.serialize($n);
|
|
@@ -49089,7 +49095,7 @@ function dhe() {
|
|
|
49089
49095
|
}) }, Vi = (q) => {
|
|
49090
49096
|
const ce = Ho.sanitizer((Oa) => q.convertURL(Oa.value || Oa.url || "", "src")), De = new Promise((Oa) => {
|
|
49091
49097
|
Rr(q, (ei) => {
|
|
49092
|
-
Oa(ce(ei).map((Bc) =>
|
|
49098
|
+
Oa(ce(ei).map((Bc) => ut([
|
|
49093
49099
|
[{
|
|
49094
49100
|
text: "None",
|
|
49095
49101
|
value: ""
|
|
@@ -49163,7 +49169,7 @@ function dhe() {
|
|
|
49163
49169
|
type: "grid",
|
|
49164
49170
|
columns: 2
|
|
49165
49171
|
} : { type: "panel" };
|
|
49166
|
-
return
|
|
49172
|
+
return ut([
|
|
49167
49173
|
[ce],
|
|
49168
49174
|
De.toArray(),
|
|
49169
49175
|
q.hasAccessibilityOptions && q.hasDescription ? [ws] : [],
|
|
@@ -49172,7 +49178,7 @@ function dhe() {
|
|
|
49172
49178
|
q.hasDimensions ? [an] : [],
|
|
49173
49179
|
[{
|
|
49174
49180
|
...ra(q.classList.isSome() && q.hasImageCaption),
|
|
49175
|
-
items:
|
|
49181
|
+
items: ut([
|
|
49176
49182
|
si.toArray(),
|
|
49177
49183
|
q.hasImageCaption ? [Nt] : []
|
|
49178
49184
|
])
|
|
@@ -49309,7 +49315,7 @@ function dhe() {
|
|
|
49309
49315
|
q.open = !1;
|
|
49310
49316
|
}, Zu = (q) => q.hasAdvTab || q.hasUploadUrl || q.hasUploadHandler ? {
|
|
49311
49317
|
type: "tabpanel",
|
|
49312
|
-
tabs:
|
|
49318
|
+
tabs: ut([
|
|
49313
49319
|
[pl.makeTab(q)],
|
|
49314
49320
|
q.hasAdvTab ? [vi.makeTab(q)] : [],
|
|
49315
49321
|
q.hasUploadTab && (q.hasUploadUrl || q.hasUploadHandler) ? [es.makeTab(q)] : []
|
|
@@ -49442,16 +49448,16 @@ var Qte = {}, Fte;
|
|
|
49442
49448
|
function hhe() {
|
|
49443
49449
|
return Fte || (Fte = 1, function() {
|
|
49444
49450
|
var u = tinymce.util.Tools.resolve("tinymce.PluginManager");
|
|
49445
|
-
const o = (Pe, Ce,
|
|
49451
|
+
const o = (Pe, Ce, dt) => {
|
|
49446
49452
|
var bt;
|
|
49447
|
-
return
|
|
49453
|
+
return dt(Pe, Ce.prototype) ? !0 : ((bt = Pe.constructor) === null || bt === void 0 ? void 0 : bt.name) === Ce.name;
|
|
49448
49454
|
}, i = (Pe) => {
|
|
49449
49455
|
const Ce = typeof Pe;
|
|
49450
|
-
return Pe === null ? "null" : Ce === "object" && Array.isArray(Pe) ? "array" : Ce === "object" && o(Pe, String, (
|
|
49456
|
+
return Pe === null ? "null" : Ce === "object" && Array.isArray(Pe) ? "array" : Ce === "object" && o(Pe, String, (dt, bt) => bt.isPrototypeOf(dt)) ? "string" : Ce;
|
|
49451
49457
|
}, c = (Pe) => (Ce) => i(Ce) === Pe, h = c("string"), m = c("object"), O = c("array"), w = (Pe) => Pe == null, T = (Pe) => !w(Pe);
|
|
49452
49458
|
class P {
|
|
49453
|
-
constructor(Ce,
|
|
49454
|
-
this.tag = Ce, this.value =
|
|
49459
|
+
constructor(Ce, dt) {
|
|
49460
|
+
this.tag = Ce, this.value = dt;
|
|
49455
49461
|
}
|
|
49456
49462
|
static some(Ce) {
|
|
49457
49463
|
return new P(!0, Ce);
|
|
@@ -49459,8 +49465,8 @@ function hhe() {
|
|
|
49459
49465
|
static none() {
|
|
49460
49466
|
return P.singletonNone;
|
|
49461
49467
|
}
|
|
49462
|
-
fold(Ce,
|
|
49463
|
-
return this.tag ?
|
|
49468
|
+
fold(Ce, dt) {
|
|
49469
|
+
return this.tag ? dt(this.value) : Ce();
|
|
49464
49470
|
}
|
|
49465
49471
|
isSome() {
|
|
49466
49472
|
return this.tag;
|
|
@@ -49521,16 +49527,16 @@ function hhe() {
|
|
|
49521
49527
|
}
|
|
49522
49528
|
P.singletonNone = new P(!1);
|
|
49523
49529
|
const R = Array.prototype.push, F = (Pe, Ce) => {
|
|
49524
|
-
for (let
|
|
49525
|
-
const Wn = Pe[
|
|
49526
|
-
Ce(Wn,
|
|
49530
|
+
for (let dt = 0, bt = Pe.length; dt < bt; dt++) {
|
|
49531
|
+
const Wn = Pe[dt];
|
|
49532
|
+
Ce(Wn, dt);
|
|
49527
49533
|
}
|
|
49528
49534
|
}, H = (Pe) => {
|
|
49529
49535
|
const Ce = [];
|
|
49530
|
-
for (let
|
|
49531
|
-
if (!O(Pe[
|
|
49532
|
-
throw new Error("Arr.flatten item " +
|
|
49533
|
-
R.apply(Ce, Pe[
|
|
49536
|
+
for (let dt = 0, bt = Pe.length; dt < bt; ++dt) {
|
|
49537
|
+
if (!O(Pe[dt]))
|
|
49538
|
+
throw new Error("Arr.flatten item " + dt + " was not an array, input: " + Pe);
|
|
49539
|
+
R.apply(Ce, Pe[dt]);
|
|
49534
49540
|
}
|
|
49535
49541
|
return Ce;
|
|
49536
49542
|
}, K = (Pe) => {
|
|
@@ -49542,9 +49548,9 @@ function hhe() {
|
|
|
49542
49548
|
}
|
|
49543
49549
|
};
|
|
49544
49550
|
}, he = Object.keys, Me = Object.hasOwnProperty, ye = (Pe, Ce) => {
|
|
49545
|
-
const
|
|
49546
|
-
for (let bt = 0, Wn =
|
|
49547
|
-
const ao =
|
|
49551
|
+
const dt = he(Pe);
|
|
49552
|
+
for (let bt = 0, Wn = dt.length; bt < Wn; bt++) {
|
|
49553
|
+
const ao = dt[bt], To = Pe[ao];
|
|
49548
49554
|
Ce(To, ao);
|
|
49549
49555
|
}
|
|
49550
49556
|
}, Te = (Pe, Ce) => et(Pe, Ce) ? P.from(Pe[Ce]) : P.none(), et = (Pe, Ce) => Me.call(Pe, Ce), le = (Pe) => (Ce) => Ce.options.get(Pe), je = (Pe) => {
|
|
@@ -49566,19 +49572,19 @@ function hhe() {
|
|
|
49566
49572
|
default: !0
|
|
49567
49573
|
});
|
|
49568
49574
|
}, Xt = le("audio_template_callback"), it = le("video_template_callback"), oe = le("iframe_template_callback"), Et = le("media_live_embeds"), rn = le("media_filter_html"), dn = le("media_url_resolver"), Xe = le("media_alt_source"), ve = le("media_poster"), Xn = le("media_dimensions");
|
|
49569
|
-
var
|
|
49575
|
+
var ut = tinymce.util.Tools.resolve("tinymce.util.Tools"), kt = tinymce.util.Tools.resolve("tinymce.dom.DOMUtils"), Q = tinymce.util.Tools.resolve("tinymce.html.DomParser");
|
|
49570
49576
|
const io = kt.DOM, It = (Pe) => Pe.replace(/px$/, ""), Jt = (Pe) => {
|
|
49571
|
-
const Ce = Pe.attr("style"),
|
|
49577
|
+
const Ce = Pe.attr("style"), dt = Ce ? io.parseStyle(Ce) : {};
|
|
49572
49578
|
return {
|
|
49573
49579
|
type: "ephox-embed-iri",
|
|
49574
49580
|
source: Pe.attr("data-ephox-embed-iri"),
|
|
49575
49581
|
altsource: "",
|
|
49576
49582
|
poster: "",
|
|
49577
|
-
width: Te(
|
|
49578
|
-
height: Te(
|
|
49583
|
+
width: Te(dt, "max-width").map(It).getOr(""),
|
|
49584
|
+
height: Te(dt, "max-height").map(It).getOr("")
|
|
49579
49585
|
};
|
|
49580
49586
|
}, Ft = (Pe, Ce) => {
|
|
49581
|
-
let
|
|
49587
|
+
let dt = {};
|
|
49582
49588
|
const Wn = Q({
|
|
49583
49589
|
validate: !1,
|
|
49584
49590
|
forced_root_block: !1
|
|
@@ -49587,15 +49593,15 @@ function hhe() {
|
|
|
49587
49593
|
if (ao.type === 1) {
|
|
49588
49594
|
const To = ao.name;
|
|
49589
49595
|
if (ao.attr("data-ephox-embed-iri")) {
|
|
49590
|
-
|
|
49596
|
+
dt = Jt(ao);
|
|
49591
49597
|
break;
|
|
49592
49598
|
} else
|
|
49593
|
-
!
|
|
49599
|
+
!dt.source && To === "param" && (dt.source = ao.attr("movie")), (To === "iframe" || To === "object" || To === "embed" || To === "video" || To === "audio") && (dt.type || (dt.type = To), dt = ut.extend(ao.attributes.map, dt)), To === "source" && (dt.source ? dt.altsource || (dt.altsource = ao.attr("src")) : dt.source = ao.attr("src")), To === "img" && !dt.poster && (dt.poster = ao.attr("src"));
|
|
49594
49600
|
}
|
|
49595
|
-
return
|
|
49601
|
+
return dt.source = dt.source || dt.src || "", dt.altsource = dt.altsource || "", dt.poster = dt.poster || "", dt;
|
|
49596
49602
|
}, Be = (Pe) => {
|
|
49597
49603
|
var Ce;
|
|
49598
|
-
const
|
|
49604
|
+
const dt = {
|
|
49599
49605
|
mp3: "audio/mpeg",
|
|
49600
49606
|
m4a: "audio/x-m4a",
|
|
49601
49607
|
wav: "audio/wav",
|
|
@@ -49604,21 +49610,21 @@ function hhe() {
|
|
|
49604
49610
|
ogg: "video/ogg",
|
|
49605
49611
|
swf: "application/x-shockwave-flash"
|
|
49606
49612
|
}, bt = (Ce = Pe.toLowerCase().split(".").pop()) !== null && Ce !== void 0 ? Ce : "";
|
|
49607
|
-
return Te(
|
|
49613
|
+
return Te(dt, bt).getOr("");
|
|
49608
49614
|
};
|
|
49609
|
-
var _t = tinymce.util.Tools.resolve("tinymce.html.Node"),
|
|
49615
|
+
var _t = tinymce.util.Tools.resolve("tinymce.html.Node"), lt = tinymce.util.Tools.resolve("tinymce.html.Serializer");
|
|
49610
49616
|
const Ke = (Pe, Ce = {}) => Q({
|
|
49611
49617
|
forced_root_block: !1,
|
|
49612
49618
|
validate: !1,
|
|
49613
49619
|
allow_conditional_comments: !0,
|
|
49614
49620
|
...Ce
|
|
49615
49621
|
}, Pe), qt = kt.DOM, We = (Pe) => /^[0-9.]+$/.test(Pe) ? Pe + "px" : Pe, pt = (Pe, Ce) => {
|
|
49616
|
-
const
|
|
49622
|
+
const dt = Ce.attr("style"), bt = dt ? qt.parseStyle(dt) : {};
|
|
49617
49623
|
T(Pe.width) && (bt["max-width"] = We(Pe.width)), T(Pe.height) && (bt["max-height"] = We(Pe.height)), Ce.attr("style", qt.serializeStyle(bt));
|
|
49618
49624
|
}, Y = [
|
|
49619
49625
|
"source",
|
|
49620
49626
|
"altsource"
|
|
49621
|
-
], Ko = (Pe, Ce,
|
|
49627
|
+
], Ko = (Pe, Ce, dt, bt) => {
|
|
49622
49628
|
let Wn = 0, ao = 0;
|
|
49623
49629
|
const To = Ke(bt);
|
|
49624
49630
|
To.addNodeFilter("source", (Rt) => Wn = Rt.length);
|
|
@@ -49639,7 +49645,7 @@ function hhe() {
|
|
|
49639
49645
|
Ce.height !== void 0 && Ce.width !== void 0 && (Rt.attr("width", Ce.width), Rt.attr("height", Ce.height));
|
|
49640
49646
|
break;
|
|
49641
49647
|
}
|
|
49642
|
-
if (
|
|
49648
|
+
if (dt)
|
|
49643
49649
|
switch (Ot) {
|
|
49644
49650
|
case "video":
|
|
49645
49651
|
Rt.attr("poster", Ce.poster), Rt.attr("src", null);
|
|
@@ -49673,7 +49679,7 @@ function hhe() {
|
|
|
49673
49679
|
}
|
|
49674
49680
|
}
|
|
49675
49681
|
}
|
|
49676
|
-
return
|
|
49682
|
+
return lt({}, bt).serialize(js);
|
|
49677
49683
|
}, fo = [
|
|
49678
49684
|
{
|
|
49679
49685
|
regex: /youtu\.be\/([\w\-_\?&=.]+)/i,
|
|
@@ -49759,21 +49765,21 @@ function hhe() {
|
|
|
49759
49765
|
const Ce = Pe.match(/^(https?:\/\/|www\.)(.+)$/i);
|
|
49760
49766
|
return Ce && Ce.length > 1 ? Ce[1] === "www." ? "https://" : Ce[1] : "https://";
|
|
49761
49767
|
}, Xo = (Pe, Ce) => {
|
|
49762
|
-
const
|
|
49763
|
-
let Wn =
|
|
49768
|
+
const dt = wo(Ce), bt = Pe.regex.exec(Ce);
|
|
49769
|
+
let Wn = dt + Pe.url;
|
|
49764
49770
|
if (T(bt))
|
|
49765
49771
|
for (let ao = 0; ao < bt.length; ao++)
|
|
49766
49772
|
Wn = Wn.replace("$" + ao, () => bt[ao] ? bt[ao] : "");
|
|
49767
49773
|
return Wn.replace(/\?$/, "");
|
|
49768
49774
|
}, _i = (Pe) => {
|
|
49769
|
-
const Ce = fo.filter((
|
|
49770
|
-
return Ce.length > 0 ?
|
|
49775
|
+
const Ce = fo.filter((dt) => dt.regex.test(Pe));
|
|
49776
|
+
return Ce.length > 0 ? ut.extend({}, Ce[0], { url: Xo(Ce[0], Pe) }) : null;
|
|
49771
49777
|
}, Ne = (Pe, Ce) => {
|
|
49772
49778
|
if (Ce)
|
|
49773
49779
|
return Ce(Pe);
|
|
49774
49780
|
{
|
|
49775
|
-
const
|
|
49776
|
-
return '<iframe src="' + Pe.source + '" width="' + Pe.width + '" height="' + Pe.height + '"' +
|
|
49781
|
+
const dt = Pe.allowfullscreen ? ' allowFullscreen="1"' : "";
|
|
49782
|
+
return '<iframe src="' + Pe.source + '" width="' + Pe.width + '" height="' + Pe.height + '"' + dt + "></iframe>";
|
|
49777
49783
|
}
|
|
49778
49784
|
}, ze = (Pe) => {
|
|
49779
49785
|
let Ce = '<object data="' + Pe.source + '" width="' + Pe.width + '" height="' + Pe.height + '" type="application/x-shockwave-flash">';
|
|
@@ -49784,9 +49790,9 @@ function hhe() {
|
|
|
49784
49790
|
<source src="` + Pe.source + '"' + (Pe.sourcemime ? ' type="' + Pe.sourcemime + '"' : "") + ` />
|
|
49785
49791
|
` + (Pe.altsource ? '<source src="' + Pe.altsource + '"' + (Pe.altsourcemime ? ' type="' + Pe.altsourcemime + '"' : "") + ` />
|
|
49786
49792
|
` : "") + "</video>", Fn = (Pe, Ce) => {
|
|
49787
|
-
var
|
|
49788
|
-
const bt =
|
|
49789
|
-
if (!bt.source && (
|
|
49793
|
+
var dt;
|
|
49794
|
+
const bt = ut.extend({}, Ce);
|
|
49795
|
+
if (!bt.source && (ut.extend(bt, Ft((dt = bt.embed) !== null && dt !== void 0 ? dt : "", Pe.schema)), !bt.source))
|
|
49790
49796
|
return "";
|
|
49791
49797
|
bt.altsource || (bt.altsource = ""), bt.poster || (bt.poster = ""), bt.source = Pe.convertURL(bt.source, "source"), bt.altsource = Pe.convertURL(bt.altsource, "source"), bt.sourcemime = Be(bt.source), bt.altsourcemime = Be(bt.altsource), bt.poster = Pe.convertURL(bt.poster, "poster");
|
|
49792
49798
|
const Wn = _i(bt.source);
|
|
@@ -49794,60 +49800,60 @@ function hhe() {
|
|
|
49794
49800
|
return Ko(bt.embed, bt, !0, Pe.schema);
|
|
49795
49801
|
{
|
|
49796
49802
|
const ao = Xt(Pe), To = it(Pe), js = oe(Pe);
|
|
49797
|
-
return bt.width = bt.width || "300", bt.height = bt.height || "150",
|
|
49803
|
+
return bt.width = bt.width || "300", bt.height = bt.height || "150", ut.each(bt, (Rt, Ot) => {
|
|
49798
49804
|
bt[Ot] = Pe.dom.encode("" + Rt);
|
|
49799
49805
|
}), bt.type === "iframe" ? Ne(bt, js) : bt.sourcemime === "application/x-shockwave-flash" ? ze(bt) : bt.sourcemime.indexOf("audio") !== -1 ? Je(bt, ao) : Se(bt, To);
|
|
49800
49806
|
}
|
|
49801
49807
|
}, vo = (Pe) => Pe.hasAttribute("data-mce-object") || Pe.hasAttribute("data-ephox-embed-iri"), yn = (Pe) => {
|
|
49802
49808
|
Pe.on("mousedown", (Ce) => {
|
|
49803
|
-
const
|
|
49804
|
-
|
|
49809
|
+
const dt = Pe.dom.getParent(Ce.target, ".mce-preview-object");
|
|
49810
|
+
dt && Pe.dom.getAttrib(dt, "data-mce-selected") === "2" && Ce.stopImmediatePropagation();
|
|
49805
49811
|
}), Pe.on("click keyup touchend", () => {
|
|
49806
49812
|
const Ce = Pe.selection.getNode();
|
|
49807
49813
|
Ce && Pe.dom.hasClass(Ce, "mce-preview-object") && Pe.dom.getAttrib(Ce, "data-mce-selected") && Ce.setAttribute("data-mce-selected", "2");
|
|
49808
49814
|
}), Pe.on("ObjectResized", (Ce) => {
|
|
49809
|
-
const
|
|
49810
|
-
if (
|
|
49811
|
-
let bt =
|
|
49812
|
-
bt && (bt = unescape(bt),
|
|
49815
|
+
const dt = Ce.target;
|
|
49816
|
+
if (dt.getAttribute("data-mce-object")) {
|
|
49817
|
+
let bt = dt.getAttribute("data-mce-html");
|
|
49818
|
+
bt && (bt = unescape(bt), dt.setAttribute("data-mce-html", escape(Ko(bt, {
|
|
49813
49819
|
width: String(Ce.width),
|
|
49814
49820
|
height: String(Ce.height)
|
|
49815
49821
|
}, !1, Pe.schema))));
|
|
49816
49822
|
}
|
|
49817
49823
|
});
|
|
49818
|
-
}, Ps = {}, Co = (Pe, Ce,
|
|
49824
|
+
}, Ps = {}, Co = (Pe, Ce, dt) => new Promise((bt, Wn) => {
|
|
49819
49825
|
const ao = (To) => (To.html && (Ps[Pe.source] = To), bt({
|
|
49820
49826
|
url: Pe.source,
|
|
49821
49827
|
html: To.html ? To.html : Ce(Pe)
|
|
49822
49828
|
}));
|
|
49823
|
-
Ps[Pe.source] ? ao(Ps[Pe.source]) :
|
|
49829
|
+
Ps[Pe.source] ? ao(Ps[Pe.source]) : dt({ url: Pe.source }).then(ao).catch(Wn);
|
|
49824
49830
|
}), ur = (Pe, Ce) => Promise.resolve({
|
|
49825
49831
|
html: Ce(Pe),
|
|
49826
49832
|
url: Pe.source
|
|
49827
49833
|
}), Jo = (Pe) => (Ce) => Fn(Pe, Ce), Us = (Pe, Ce) => {
|
|
49828
|
-
const
|
|
49829
|
-
return
|
|
49830
|
-
}, oa = (Pe) => et(Ps, Pe), Js = (Pe, Ce) => Te(Ce, Pe).bind((
|
|
49834
|
+
const dt = dn(Pe);
|
|
49835
|
+
return dt ? Co(Ce, Jo(Pe), dt) : ur(Ce, Jo(Pe));
|
|
49836
|
+
}, oa = (Pe) => et(Ps, Pe), Js = (Pe, Ce) => Te(Ce, Pe).bind((dt) => Te(dt, "meta")), rs = (Pe, Ce, dt) => (bt) => {
|
|
49831
49837
|
const Wn = () => Te(Pe, bt), ao = () => Te(Ce, bt), To = (Ot) => Te(Ot, "value").bind((Ae) => Ae.length > 0 ? P.some(Ae) : P.none()), js = () => Wn().bind((Ot) => m(Ot) ? To(Ot).orThunk(ao) : ao().orThunk(() => P.from(Ot))), Rt = () => ao().orThunk(() => Wn().bind((Ot) => m(Ot) ? To(Ot) : P.from(Ot)));
|
|
49832
|
-
return { [bt]: (bt ===
|
|
49838
|
+
return { [bt]: (bt === dt ? js() : Rt()).getOr("") };
|
|
49833
49839
|
}, is = (Pe, Ce) => {
|
|
49834
|
-
const
|
|
49840
|
+
const dt = {};
|
|
49835
49841
|
return Te(Pe, "dimensions").each((bt) => {
|
|
49836
49842
|
F([
|
|
49837
49843
|
"width",
|
|
49838
49844
|
"height"
|
|
49839
49845
|
], (Wn) => {
|
|
49840
|
-
Te(Ce, Wn).orThunk(() => Te(bt, Wn)).each((ao) =>
|
|
49846
|
+
Te(Ce, Wn).orThunk(() => Te(bt, Wn)).each((ao) => dt[Wn] = ao);
|
|
49841
49847
|
});
|
|
49842
|
-
}),
|
|
49848
|
+
}), dt;
|
|
49843
49849
|
}, Rr = (Pe, Ce) => {
|
|
49844
|
-
const
|
|
49850
|
+
const dt = Ce && Ce !== "dimensions" ? Js(Ce, Pe).getOr({}) : {}, bt = rs(Pe, dt, Ce);
|
|
49845
49851
|
return {
|
|
49846
49852
|
...bt("source"),
|
|
49847
49853
|
...bt("altsource"),
|
|
49848
49854
|
...bt("poster"),
|
|
49849
49855
|
...bt("embed"),
|
|
49850
|
-
...is(Pe,
|
|
49856
|
+
...is(Pe, dt)
|
|
49851
49857
|
};
|
|
49852
49858
|
}, Fs = (Pe) => {
|
|
49853
49859
|
const Ce = {
|
|
@@ -49859,20 +49865,20 @@ function hhe() {
|
|
|
49859
49865
|
return F([
|
|
49860
49866
|
"width",
|
|
49861
49867
|
"height"
|
|
49862
|
-
], (
|
|
49863
|
-
Te(Pe,
|
|
49868
|
+
], (dt) => {
|
|
49869
|
+
Te(Pe, dt).each((bt) => {
|
|
49864
49870
|
const Wn = Ce.dimensions || {};
|
|
49865
|
-
Wn[
|
|
49871
|
+
Wn[dt] = bt, Ce.dimensions = Wn;
|
|
49866
49872
|
});
|
|
49867
49873
|
}), Ce;
|
|
49868
49874
|
}, Bo = (Pe) => (Ce) => {
|
|
49869
|
-
const
|
|
49875
|
+
const dt = Ce && Ce.msg ? "Media embed handler error: " + Ce.msg : "Media embed handler threw unknown error.";
|
|
49870
49876
|
Pe.notificationManager.open({
|
|
49871
49877
|
type: "error",
|
|
49872
|
-
text:
|
|
49878
|
+
text: dt
|
|
49873
49879
|
});
|
|
49874
49880
|
}, Ya = (Pe) => {
|
|
49875
|
-
const Ce = Pe.selection.getNode(),
|
|
49881
|
+
const Ce = Pe.selection.getNode(), dt = vo(Ce) ? Pe.serializer.serialize(Ce, { selection: !0 }) : "", bt = Ft(dt, Pe.schema), ao = (() => {
|
|
49876
49882
|
if (pi(bt.source, bt.type)) {
|
|
49877
49883
|
const To = Pe.dom.getRect(Ce);
|
|
49878
49884
|
return {
|
|
@@ -49883,38 +49889,38 @@ function hhe() {
|
|
|
49883
49889
|
return {};
|
|
49884
49890
|
})();
|
|
49885
49891
|
return {
|
|
49886
|
-
embed:
|
|
49892
|
+
embed: dt,
|
|
49887
49893
|
...bt,
|
|
49888
49894
|
...ao
|
|
49889
49895
|
};
|
|
49890
|
-
}, No = (Pe, Ce) => (
|
|
49891
|
-
if (h(
|
|
49892
|
-
const bt =
|
|
49896
|
+
}, No = (Pe, Ce) => (dt) => {
|
|
49897
|
+
if (h(dt.url) && dt.url.trim().length > 0) {
|
|
49898
|
+
const bt = dt.html, ao = {
|
|
49893
49899
|
...Ft(bt, Ce.schema),
|
|
49894
|
-
source:
|
|
49900
|
+
source: dt.url,
|
|
49895
49901
|
embed: bt
|
|
49896
49902
|
};
|
|
49897
49903
|
Pe.setData(Fs(ao));
|
|
49898
49904
|
}
|
|
49899
49905
|
}, Ns = (Pe, Ce) => {
|
|
49900
|
-
const
|
|
49906
|
+
const dt = Pe.dom.select("*[data-mce-object]");
|
|
49901
49907
|
for (let bt = 0; bt < Ce.length; bt++)
|
|
49902
|
-
for (let Wn =
|
|
49903
|
-
Ce[bt] ===
|
|
49904
|
-
Pe.selection.select(
|
|
49908
|
+
for (let Wn = dt.length - 1; Wn >= 0; Wn--)
|
|
49909
|
+
Ce[bt] === dt[Wn] && dt.splice(Wn, 1);
|
|
49910
|
+
Pe.selection.select(dt[0]);
|
|
49905
49911
|
}, Fr = (Pe, Ce) => {
|
|
49906
|
-
const
|
|
49907
|
-
Pe.insertContent(Ce), Ns(Pe,
|
|
49908
|
-
}, pi = (Pe, Ce) => T(Ce) && Ce === "ephox-embed-iri" && T(_i(Pe)), Aa = (Pe, Ce) => ((bt, Wn) => bt.width !== Wn.width || bt.height !== Wn.height)(Pe, Ce) && pi(Ce.source, Pe.type), Lo = (Pe, Ce,
|
|
49912
|
+
const dt = Pe.dom.select("*[data-mce-object]");
|
|
49913
|
+
Pe.insertContent(Ce), Ns(Pe, dt), Pe.nodeChanged();
|
|
49914
|
+
}, pi = (Pe, Ce) => T(Ce) && Ce === "ephox-embed-iri" && T(_i(Pe)), Aa = (Pe, Ce) => ((bt, Wn) => bt.width !== Wn.width || bt.height !== Wn.height)(Pe, Ce) && pi(Ce.source, Pe.type), Lo = (Pe, Ce, dt) => {
|
|
49909
49915
|
var bt;
|
|
49910
|
-
Ce.embed = Aa(Pe, Ce) && Xn(
|
|
49916
|
+
Ce.embed = Aa(Pe, Ce) && Xn(dt) ? Fn(dt, {
|
|
49911
49917
|
...Ce,
|
|
49912
49918
|
embed: ""
|
|
49913
|
-
}) : Ko((bt = Ce.embed) !== null && bt !== void 0 ? bt : "", Ce, !1,
|
|
49914
|
-
Fr(
|
|
49915
|
-
}).catch(Bo(
|
|
49919
|
+
}) : Ko((bt = Ce.embed) !== null && bt !== void 0 ? bt : "", Ce, !1, dt.schema), Ce.embed && (Pe.source === Ce.source || oa(Ce.source)) ? Fr(dt, Ce.embed) : Us(dt, Ce).then((Wn) => {
|
|
49920
|
+
Fr(dt, Wn.html);
|
|
49921
|
+
}).catch(Bo(dt));
|
|
49916
49922
|
}, Ka = (Pe) => {
|
|
49917
|
-
const Ce = Ya(Pe),
|
|
49923
|
+
const Ce = Ya(Pe), dt = K(Ce), bt = Fs(Ce), Wn = (Dn, Jn) => {
|
|
49918
49924
|
const lo = Rr(Jn.getData(), "source");
|
|
49919
49925
|
Dn.source !== lo.source && (No(Ln, Pe)({
|
|
49920
49926
|
url: lo.source,
|
|
@@ -50001,12 +50007,12 @@ function hhe() {
|
|
|
50001
50007
|
],
|
|
50002
50008
|
onSubmit: (Dn) => {
|
|
50003
50009
|
const Jn = Rr(Dn.getData());
|
|
50004
|
-
Lo(
|
|
50010
|
+
Lo(dt.get(), Jn, Pe), Dn.close();
|
|
50005
50011
|
},
|
|
50006
50012
|
onChange: (Dn, Jn) => {
|
|
50007
50013
|
switch (Jn.name) {
|
|
50008
50014
|
case "source":
|
|
50009
|
-
Wn(
|
|
50015
|
+
Wn(dt.get(), Dn);
|
|
50010
50016
|
break;
|
|
50011
50017
|
case "embed":
|
|
50012
50018
|
ao(Dn);
|
|
@@ -50014,10 +50020,10 @@ function hhe() {
|
|
|
50014
50020
|
case "dimensions":
|
|
50015
50021
|
case "altsource":
|
|
50016
50022
|
case "poster":
|
|
50017
|
-
To(Dn, Jn.name,
|
|
50023
|
+
To(Dn, Jn.name, dt.get());
|
|
50018
50024
|
break;
|
|
50019
50025
|
}
|
|
50020
|
-
|
|
50026
|
+
dt.set(Rr(Dn.getData()));
|
|
50021
50027
|
},
|
|
50022
50028
|
initialData: bt
|
|
50023
50029
|
});
|
|
@@ -50028,34 +50034,34 @@ function hhe() {
|
|
|
50028
50034
|
Ka(Pe);
|
|
50029
50035
|
};
|
|
50030
50036
|
Pe.addCommand("mceMedia", Ce);
|
|
50031
|
-
}, Kr = (Pe, Ce,
|
|
50037
|
+
}, Kr = (Pe, Ce, dt) => Pe.length >= Ce.length && Pe.substr(dt, dt + Ce.length) === Ce, Mr = (Pe, Ce) => Kr(Pe, Ce, 0);
|
|
50032
50038
|
var Ei = tinymce.util.Tools.resolve("tinymce.Env");
|
|
50033
50039
|
const Qi = (Pe) => {
|
|
50034
50040
|
const Ce = Pe.name;
|
|
50035
50041
|
return Ce === "iframe" || Ce === "video" || Ce === "audio";
|
|
50036
|
-
}, Ts = (Pe, Ce,
|
|
50037
|
-
const Wn = Pe.attr(
|
|
50038
|
-
return T(Wn) ? Wn : et(Ce,
|
|
50039
|
-
}, Fi = (Pe, Ce,
|
|
50042
|
+
}, Ts = (Pe, Ce, dt, bt = null) => {
|
|
50043
|
+
const Wn = Pe.attr(dt);
|
|
50044
|
+
return T(Wn) ? Wn : et(Ce, dt) ? null : bt;
|
|
50045
|
+
}, Fi = (Pe, Ce, dt) => {
|
|
50040
50046
|
const bt = Ce.name === "img" || Pe.name === "video", Wn = bt ? "300" : null, ao = Pe.name === "audio" ? "30" : "150", To = bt ? ao : null;
|
|
50041
50047
|
Ce.attr({
|
|
50042
|
-
width: Ts(Pe,
|
|
50043
|
-
height: Ts(Pe,
|
|
50048
|
+
width: Ts(Pe, dt, "width", Wn),
|
|
50049
|
+
height: Ts(Pe, dt, "height", To)
|
|
50044
50050
|
});
|
|
50045
|
-
}, $i = (Pe, Ce,
|
|
50051
|
+
}, $i = (Pe, Ce, dt, bt) => {
|
|
50046
50052
|
const Wn = Ke(Pe.schema).parse(bt, { context: Ce });
|
|
50047
50053
|
for (; Wn.firstChild; )
|
|
50048
|
-
|
|
50054
|
+
dt.append(Wn.firstChild);
|
|
50049
50055
|
}, xs = (Pe, Ce) => {
|
|
50050
|
-
const
|
|
50056
|
+
const dt = Ce.name, bt = new _t("img", 1);
|
|
50051
50057
|
return er(Pe, Ce, bt), Fi(Ce, bt, {}), bt.attr({
|
|
50052
50058
|
style: Ce.attr("style"),
|
|
50053
50059
|
src: Ei.transparentSrc,
|
|
50054
|
-
"data-mce-object":
|
|
50055
|
-
class: "mce-object mce-object-" +
|
|
50060
|
+
"data-mce-object": dt,
|
|
50061
|
+
class: "mce-object mce-object-" + dt
|
|
50056
50062
|
}), bt;
|
|
50057
50063
|
}, jn = (Pe, Ce) => {
|
|
50058
|
-
var
|
|
50064
|
+
var dt;
|
|
50059
50065
|
const bt = Ce.name, Wn = new _t("span", 1);
|
|
50060
50066
|
Wn.attr({
|
|
50061
50067
|
contentEditable: "false",
|
|
@@ -50063,7 +50069,7 @@ function hhe() {
|
|
|
50063
50069
|
"data-mce-object": bt,
|
|
50064
50070
|
class: "mce-preview-object mce-object-" + bt
|
|
50065
50071
|
}), er(Pe, Ce, Wn);
|
|
50066
|
-
const ao = Pe.dom.parseStyle((
|
|
50072
|
+
const ao = Pe.dom.parseStyle((dt = Ce.attr("style")) !== null && dt !== void 0 ? dt : ""), To = new _t(bt, 1);
|
|
50067
50073
|
if (Fi(Ce, To, ao), To.attr({
|
|
50068
50074
|
src: Ce.attr("src"),
|
|
50069
50075
|
style: Ce.attr("style"),
|
|
@@ -50092,19 +50098,19 @@ function hhe() {
|
|
|
50092
50098
|
}
|
|
50093
50099
|
const js = new _t("span", 1);
|
|
50094
50100
|
return js.attr("class", "mce-shim"), Wn.append(To), Wn.append(js), Wn;
|
|
50095
|
-
}, er = (Pe, Ce,
|
|
50101
|
+
}, er = (Pe, Ce, dt) => {
|
|
50096
50102
|
var bt;
|
|
50097
50103
|
const Wn = (bt = Ce.attributes) !== null && bt !== void 0 ? bt : [];
|
|
50098
50104
|
let ao = Wn.length;
|
|
50099
50105
|
for (; ao--; ) {
|
|
50100
50106
|
const Ot = Wn[ao].name;
|
|
50101
50107
|
let Ae = Wn[ao].value;
|
|
50102
|
-
Ot !== "width" && Ot !== "height" && Ot !== "style" && !Mr(Ot, "data-mce-") && ((Ot === "data" || Ot === "src") && (Ae = Pe.convertURL(Ae, Ot)),
|
|
50108
|
+
Ot !== "width" && Ot !== "height" && Ot !== "style" && !Mr(Ot, "data-mce-") && ((Ot === "data" || Ot === "src") && (Ae = Pe.convertURL(Ae, Ot)), dt.attr("data-mce-p-" + Ot, Ae));
|
|
50103
50109
|
}
|
|
50104
|
-
const To =
|
|
50110
|
+
const To = lt({ inner: !0 }, Pe.schema), js = new _t("div", 1);
|
|
50105
50111
|
F(Ce.children(), (Ot) => js.append(Ot));
|
|
50106
50112
|
const Rt = To.serialize(js);
|
|
50107
|
-
Rt && (
|
|
50113
|
+
Rt && (dt.attr("data-mce-html", escape(Rt)), dt.empty());
|
|
50108
50114
|
}, di = (Pe) => {
|
|
50109
50115
|
const Ce = Pe.attr("class");
|
|
50110
50116
|
return h(Ce) && /\btiny-pageembed\b/.test(Ce);
|
|
@@ -50115,18 +50121,18 @@ function hhe() {
|
|
|
50115
50121
|
return !0;
|
|
50116
50122
|
return !1;
|
|
50117
50123
|
}, Vl = (Pe) => (Ce) => {
|
|
50118
|
-
let
|
|
50119
|
-
for (;
|
|
50120
|
-
bt = Ce[
|
|
50121
|
-
}, Ls = (Pe, Ce,
|
|
50124
|
+
let dt = Ce.length, bt;
|
|
50125
|
+
for (; dt--; )
|
|
50126
|
+
bt = Ce[dt], bt.parent && (bt.parent.attr("data-mce-object") || (Qi(bt) && Et(Pe) ? Pl(bt) || bt.replace(jn(Pe, bt)) : Pl(bt) || bt.replace(xs(Pe, bt))));
|
|
50127
|
+
}, Ls = (Pe, Ce, dt) => {
|
|
50122
50128
|
const bt = Pe.options.get, Wn = bt("xss_sanitization"), ao = rn(Pe);
|
|
50123
50129
|
return Ke(Pe.schema, {
|
|
50124
50130
|
sanitize: Wn,
|
|
50125
50131
|
validate: ao
|
|
50126
|
-
}).parse(
|
|
50132
|
+
}).parse(dt, { context: Ce });
|
|
50127
50133
|
}, Or = (Pe) => {
|
|
50128
50134
|
Pe.on("PreInit", () => {
|
|
50129
|
-
const { schema: Ce, serializer:
|
|
50135
|
+
const { schema: Ce, serializer: dt, parser: bt } = Pe, Wn = Ce.getBoolAttrs();
|
|
50130
50136
|
F("webkitallowfullscreen mozallowfullscreen".split(" "), (ao) => {
|
|
50131
50137
|
Wn[ao] = {};
|
|
50132
50138
|
}), ye({ embed: ["wmode"] }, (ao, To) => {
|
|
@@ -50134,7 +50140,7 @@ function hhe() {
|
|
|
50134
50140
|
js && F(ao, (Rt) => {
|
|
50135
50141
|
js.attributes[Rt] = {}, js.attributesOrder.push(Rt);
|
|
50136
50142
|
});
|
|
50137
|
-
}), bt.addNodeFilter("iframe,video,audio,object,embed", Vl(Pe)),
|
|
50143
|
+
}), bt.addNodeFilter("iframe,video,audio,object,embed", Vl(Pe)), dt.addAttributeFilter("data-mce-object", (ao, To) => {
|
|
50138
50144
|
var js;
|
|
50139
50145
|
let Rt = ao.length;
|
|
50140
50146
|
for (; Rt--; ) {
|
|
@@ -50169,21 +50175,21 @@ function hhe() {
|
|
|
50169
50175
|
});
|
|
50170
50176
|
}), Pe.on("SetContent", () => {
|
|
50171
50177
|
const Ce = Pe.dom;
|
|
50172
|
-
F(Ce.select("span.mce-preview-object"), (
|
|
50173
|
-
Ce.select("span.mce-shim",
|
|
50178
|
+
F(Ce.select("span.mce-preview-object"), (dt) => {
|
|
50179
|
+
Ce.select("span.mce-shim", dt).length === 0 && Ce.add(dt, "span", { class: "mce-shim" });
|
|
50174
50180
|
});
|
|
50175
50181
|
});
|
|
50176
50182
|
}, Ws = (Pe) => {
|
|
50177
50183
|
Pe.on("ResolveName", (Ce) => {
|
|
50178
|
-
let
|
|
50179
|
-
Ce.target.nodeType === 1 && (
|
|
50184
|
+
let dt;
|
|
50185
|
+
Ce.target.nodeType === 1 && (dt = Ce.target.getAttribute("data-mce-object")) && (Ce.name = dt);
|
|
50180
50186
|
});
|
|
50181
50187
|
}, bi = (Pe) => (Ce) => {
|
|
50182
|
-
const
|
|
50188
|
+
const dt = () => {
|
|
50183
50189
|
Ce.setEnabled(Pe.selection.isEditable());
|
|
50184
50190
|
};
|
|
50185
|
-
return Pe.on("NodeChange",
|
|
50186
|
-
Pe.off("NodeChange",
|
|
50191
|
+
return Pe.on("NodeChange", dt), dt(), () => {
|
|
50192
|
+
Pe.off("NodeChange", dt);
|
|
50187
50193
|
};
|
|
50188
50194
|
}, sa = (Pe) => {
|
|
50189
50195
|
const Ce = () => Pe.execCommand("mceMedia");
|
|
@@ -50191,10 +50197,10 @@ function hhe() {
|
|
|
50191
50197
|
tooltip: "Insert/edit media",
|
|
50192
50198
|
icon: "embed",
|
|
50193
50199
|
onAction: Ce,
|
|
50194
|
-
onSetup: (
|
|
50200
|
+
onSetup: (dt) => {
|
|
50195
50201
|
const bt = Pe.selection;
|
|
50196
|
-
|
|
50197
|
-
const Wn = bt.selectorChangedWithUnbind("img[data-mce-object],span[data-mce-object],div[data-ephox-embed-iri]",
|
|
50202
|
+
dt.setActive(vo(bt.getNode()));
|
|
50203
|
+
const Wn = bt.selectorChangedWithUnbind("img[data-mce-object],span[data-mce-object],div[data-ephox-embed-iri]", dt.setActive).unbind, ao = bi(Pe)(dt);
|
|
50198
50204
|
return () => {
|
|
50199
50205
|
Wn(), ao();
|
|
50200
50206
|
};
|
|
@@ -50320,17 +50326,17 @@ function fhe() {
|
|
|
50320
50326
|
}, Xn = (A, I) => {
|
|
50321
50327
|
const ee = {};
|
|
50322
50328
|
return ve(A, I, Xe(ee), he), ee;
|
|
50323
|
-
},
|
|
50329
|
+
}, ut = (A, I) => {
|
|
50324
50330
|
const ee = [];
|
|
50325
50331
|
return dn(A, (me, Qe) => {
|
|
50326
50332
|
ee.push(I(me, Qe));
|
|
50327
50333
|
}), ee;
|
|
50328
|
-
}, kt = (A) =>
|
|
50334
|
+
}, kt = (A) => ut(A, Te), Q = (A) => Et(A).length, io = (A, I) => It(A, I) ? oe.from(A[I]) : oe.none(), It = (A, I) => rn.call(A, I), Jt = (A, I) => It(A, I) && A[I] !== void 0 && A[I] !== null, Ft = (A) => {
|
|
50329
50335
|
for (const I in A)
|
|
50330
50336
|
if (rn.call(A, I))
|
|
50331
50337
|
return !1;
|
|
50332
50338
|
return !0;
|
|
50333
|
-
}, Be = Array.prototype.indexOf, _t = Array.prototype.push,
|
|
50339
|
+
}, Be = Array.prototype.indexOf, _t = Array.prototype.push, lt = (A, I) => Be.call(A, I), Ke = (A, I) => lt(A, I) > -1, qt = (A, I) => {
|
|
50334
50340
|
for (let ee = 0, me = A.length; ee < me; ee++) {
|
|
50335
50341
|
const Qe = A[ee];
|
|
50336
50342
|
if (I(Qe, ee))
|
|
@@ -50489,7 +50495,7 @@ function fhe() {
|
|
|
50489
50495
|
const ee = I.ownerDocument;
|
|
50490
50496
|
return vr(No.fromDom(I)).fold(() => ee.body.contains(I), Me(Ce, Pe));
|
|
50491
50497
|
};
|
|
50492
|
-
var
|
|
50498
|
+
var dt = (A, I, ee, me, Qe) => A(ee, me) ? oe.some(ee) : H(Qe) && Qe(ee) ? oe.none() : I(ee, me, Qe);
|
|
50493
50499
|
const bt = (A, I, ee) => {
|
|
50494
50500
|
let me = A.dom;
|
|
50495
50501
|
const Qe = H(ee) ? ee : Xt;
|
|
@@ -50502,10 +50508,10 @@ function fhe() {
|
|
|
50502
50508
|
break;
|
|
50503
50509
|
}
|
|
50504
50510
|
return oe.none();
|
|
50505
|
-
}, Wn = (A, I, ee) =>
|
|
50511
|
+
}, Wn = (A, I, ee) => dt((Qe, Dt) => Dt(Qe), bt, A, I, ee), ao = (A, I) => {
|
|
50506
50512
|
const ee = (Qe) => I(No.fromDom(Qe));
|
|
50507
50513
|
return ze(A.dom.childNodes, ee).map(No.fromDom);
|
|
50508
|
-
}, To = (A, I, ee) => bt(A, (me) => Ns(me, I), ee), js = (A, I) => ao(A, (ee) => Ns(ee, I)), Rt = (A, I) => Aa(I, A), Ot = (A, I, ee) =>
|
|
50514
|
+
}, To = (A, I, ee) => bt(A, (me) => Ns(me, I), ee), js = (A, I) => ao(A, (ee) => Ns(ee, I)), Rt = (A, I) => Aa(I, A), Ot = (A, I, ee) => dt((Qe, Dt) => Ns(Qe, Dt), To, A, I, ee), Ae = (A) => Ot(A, "[contenteditable]"), Le = (A, I = !1) => Ce(A) ? A.dom.isContentEditable : Ae(A).fold(ye(I), (ee) => Lt(ee) === "true"), Lt = (A) => A.dom.contentEditable, Ut = (A) => A.nodeName.toLowerCase(), gn = (A) => No.fromDom(A.getBody()), Nn = (A) => (I) => Lo(I, gn(A)), Ln = (A) => A ? A.replace(/px$/, "") : "", Dn = (A) => /^\d+(\.\d+)?$/.test(A) ? A + "px" : A, Jn = (A) => No.fromDom(A.selection.getStart()), lo = (A) => No.fromDom(A.selection.getEnd()), ds = (A) => Wn(A, $i("table")).forall(Le), ar = (A, I) => wo(Ls(A), I), Ss = (A, I) => {
|
|
50509
50515
|
let ee = [];
|
|
50510
50516
|
return Y(Ls(A), (me) => {
|
|
50511
50517
|
I(me) && (ee = ee.concat([me])), ee = ee.concat(Ss(me, I));
|
|
@@ -52566,11 +52572,11 @@ function ghe() {
|
|
|
52566
52572
|
const Se = h(Ne, ze), Fn = ye(Se);
|
|
52567
52573
|
return Et(Ne, Se, Fn, Je);
|
|
52568
52574
|
}, ve = (Ne, ze, Je) => dn(Ne, ze, Je).words, Xn = (Ne) => Ne.replace(/\uFEFF/g, "");
|
|
52569
|
-
var
|
|
52575
|
+
var ut = tinymce.util.Tools.resolve("tinymce.dom.TreeWalker");
|
|
52570
52576
|
const kt = (Ne, ze) => {
|
|
52571
52577
|
const Je = ze.getBlockElements(), Se = ze.getVoidElements(), Fn = (ur) => Je[ur.nodeName] || Se[ur.nodeName], vo = [];
|
|
52572
52578
|
let yn = "";
|
|
52573
|
-
const Ps = new
|
|
52579
|
+
const Ps = new ut(Ne, Ne);
|
|
52574
52580
|
let Co;
|
|
52575
52581
|
for (; Co = Ps.next(); )
|
|
52576
52582
|
Co.nodeType === 3 ? yn += Xn(Co.data) : Fn(Co) && yn.length && (vo.push(yn), yn = "");
|
|
@@ -52585,9 +52591,9 @@ function ghe() {
|
|
|
52585
52591
|
}, Ft = (Ne, ze) => {
|
|
52586
52592
|
const Je = kt(Ne, ze).join("").replace(/\s/g, "");
|
|
52587
52593
|
return io(Je);
|
|
52588
|
-
}, Be = (Ne, ze) => () => ze(Ne.getBody(), Ne.schema), _t = (Ne, ze) => () => ze(Ne.selection.getRng().cloneContents(), Ne.schema),
|
|
52594
|
+
}, Be = (Ne, ze) => () => ze(Ne.getBody(), Ne.schema), _t = (Ne, ze) => () => ze(Ne.selection.getRng().cloneContents(), Ne.schema), lt = (Ne) => Be(Ne, It), Ke = (Ne) => ({
|
|
52589
52595
|
body: {
|
|
52590
|
-
getWordCount:
|
|
52596
|
+
getWordCount: lt(Ne),
|
|
52591
52597
|
getCharacterCount: Be(Ne, Jt),
|
|
52592
52598
|
getCharacterCountWithoutSpaces: Be(Ne, Ft)
|
|
52593
52599
|
},
|
|
@@ -52596,7 +52602,7 @@ function ghe() {
|
|
|
52596
52602
|
getCharacterCount: _t(Ne, Jt),
|
|
52597
52603
|
getCharacterCountWithoutSpaces: _t(Ne, Ft)
|
|
52598
52604
|
},
|
|
52599
|
-
getCount:
|
|
52605
|
+
getCount: lt(Ne)
|
|
52600
52606
|
}), qt = (Ne, ze) => {
|
|
52601
52607
|
Ne.windowManager.open({
|
|
52602
52608
|
title: "Word Count",
|
|
@@ -52810,7 +52816,7 @@ function phe() {
|
|
|
52810
52816
|
be(ls, Pt) && tt.push(ls);
|
|
52811
52817
|
}
|
|
52812
52818
|
return tt;
|
|
52813
|
-
},
|
|
52819
|
+
}, ut = (fe, be, tt) => {
|
|
52814
52820
|
for (let Pt = 0, Hn = fe.length; Pt < Hn; Pt++) {
|
|
52815
52821
|
const ls = fe[Pt];
|
|
52816
52822
|
if (be(ls, Pt))
|
|
@@ -52819,7 +52825,7 @@ function phe() {
|
|
|
52819
52825
|
break;
|
|
52820
52826
|
}
|
|
52821
52827
|
return rn.none();
|
|
52822
|
-
}, kt = (fe, be) =>
|
|
52828
|
+
}, kt = (fe, be) => ut(fe, be, oe), Q = (fe) => {
|
|
52823
52829
|
const be = [];
|
|
52824
52830
|
for (let tt = 0, Pt = fe.length; tt < Pt; ++tt) {
|
|
52825
52831
|
if (!R(fe[tt]))
|
|
@@ -52846,7 +52852,7 @@ function phe() {
|
|
|
52846
52852
|
tt(), be.set(rn.some(tr));
|
|
52847
52853
|
}
|
|
52848
52854
|
};
|
|
52849
|
-
},
|
|
52855
|
+
}, lt = () => _t((fe) => fe.unbind()), Ke = () => {
|
|
52850
52856
|
const fe = _t(et);
|
|
52851
52857
|
return {
|
|
52852
52858
|
...fe,
|
|
@@ -53004,11 +53010,11 @@ function phe() {
|
|
|
53004
53010
|
prevent: Hn,
|
|
53005
53011
|
kill: ls,
|
|
53006
53012
|
raw: Io
|
|
53007
|
-
}),
|
|
53013
|
+
}), dt = (fe) => {
|
|
53008
53014
|
const be = Lo.fromDom(Pl(fe).getOr(fe.target)), tt = () => fe.stopPropagation(), Pt = () => fe.preventDefault(), Hn = le(Pt, tt);
|
|
53009
53015
|
return Ce(be, fe.clientX, fe.clientY, tt, Pt, Hn, fe);
|
|
53010
53016
|
}, bt = (fe, be) => (tt) => {
|
|
53011
|
-
fe(tt) && be(
|
|
53017
|
+
fe(tt) && be(dt(tt));
|
|
53012
53018
|
}, Wn = (fe, be, tt, Pt, Hn) => {
|
|
53013
53019
|
const ls = bt(tt, Pt);
|
|
53014
53020
|
return fe.dom.addEventListener(be, ls, Hn), { unbind: it(To, fe, be, ls, Hn) };
|
|
@@ -53242,7 +53248,7 @@ function phe() {
|
|
|
53242
53248
|
return pa(Pt.left, Pt.top, ls, Io);
|
|
53243
53249
|
}, (Hn) => pa(Math.max(Hn.pageLeft, Pt.left), Math.max(Hn.pageTop, Pt.top), Hn.width, Hn.height));
|
|
53244
53250
|
}, Mc = (fe, be, tt) => jr(tt).map((Pt) => {
|
|
53245
|
-
const Hn = (ls) => be(
|
|
53251
|
+
const Hn = (ls) => be(dt(ls));
|
|
53246
53252
|
return Pt.addEventListener(fe, Hn), { unbind: () => Pt.removeEventListener(fe, Hn) };
|
|
53247
53253
|
}).getOrThunk(() => ({ unbind: et }));
|
|
53248
53254
|
var se = tinymce.util.Tools.resolve("tinymce.dom.DOMUtils"), _e = tinymce.util.Tools.resolve("tinymce.Env");
|
|
@@ -53282,7 +53288,7 @@ function phe() {
|
|
|
53282
53288
|
bind: et,
|
|
53283
53289
|
unbind: et
|
|
53284
53290
|
}), (fe) => {
|
|
53285
|
-
const be = Ke(), tt =
|
|
53291
|
+
const be = Ke(), tt = lt(), Pt = lt(), Hn = () => {
|
|
53286
53292
|
document.body.scrollTop = 0, document.documentElement.scrollTop = 0;
|
|
53287
53293
|
}, ls = () => {
|
|
53288
53294
|
window.requestAnimationFrame(() => {
|
|
@@ -53448,14 +53454,14 @@ var Yte = {}, Kte;
|
|
|
53448
53454
|
function Ohe() {
|
|
53449
53455
|
return Kte || (Kte = 1, function() {
|
|
53450
53456
|
var u = tinymce.util.Tools.resolve("tinymce.PluginManager");
|
|
53451
|
-
const o = (Be, _t,
|
|
53457
|
+
const o = (Be, _t, lt) => {
|
|
53452
53458
|
const Ke = _t === "UL" ? "InsertUnorderedList" : "InsertOrderedList";
|
|
53453
|
-
Be.execCommand(Ke, !1,
|
|
53459
|
+
Be.execCommand(Ke, !1, lt === !1 ? null : { "list-style-type": lt });
|
|
53454
53460
|
}, i = (Be) => {
|
|
53455
|
-
Be.addCommand("ApplyUnorderedListStyle", (_t,
|
|
53456
|
-
o(Be, "UL",
|
|
53457
|
-
}), Be.addCommand("ApplyOrderedListStyle", (_t,
|
|
53458
|
-
o(Be, "OL",
|
|
53461
|
+
Be.addCommand("ApplyUnorderedListStyle", (_t, lt) => {
|
|
53462
|
+
o(Be, "UL", lt["list-style-type"]);
|
|
53463
|
+
}), Be.addCommand("ApplyOrderedListStyle", (_t, lt) => {
|
|
53464
|
+
o(Be, "OL", lt["list-style-type"]);
|
|
53459
53465
|
});
|
|
53460
53466
|
}, c = (Be) => (_t) => _t.options.get(Be), h = (Be) => {
|
|
53461
53467
|
const _t = Be.options.register;
|
|
@@ -53468,8 +53474,8 @@ function Ohe() {
|
|
|
53468
53474
|
});
|
|
53469
53475
|
}, m = c("advlist_number_styles"), O = c("advlist_bullet_styles"), w = (Be) => Be == null, T = (Be) => !w(Be);
|
|
53470
53476
|
class P {
|
|
53471
|
-
constructor(_t,
|
|
53472
|
-
this.tag = _t, this.value =
|
|
53477
|
+
constructor(_t, lt) {
|
|
53478
|
+
this.tag = _t, this.value = lt;
|
|
53473
53479
|
}
|
|
53474
53480
|
static some(_t) {
|
|
53475
53481
|
return new P(!0, _t);
|
|
@@ -53477,8 +53483,8 @@ function Ohe() {
|
|
|
53477
53483
|
static none() {
|
|
53478
53484
|
return P.singletonNone;
|
|
53479
53485
|
}
|
|
53480
|
-
fold(_t,
|
|
53481
|
-
return this.tag ?
|
|
53486
|
+
fold(_t, lt) {
|
|
53487
|
+
return this.tag ? lt(this.value) : _t();
|
|
53482
53488
|
}
|
|
53483
53489
|
isSome() {
|
|
53484
53490
|
return this.tag;
|
|
@@ -53538,51 +53544,51 @@ function Ohe() {
|
|
|
53538
53544
|
}
|
|
53539
53545
|
}
|
|
53540
53546
|
P.singletonNone = new P(!1);
|
|
53541
|
-
const R = Array.prototype.indexOf, F = (Be, _t) => R.call(Be, _t), H = (Be, _t) => F(Be, _t) > -1, K = (Be, _t,
|
|
53547
|
+
const R = Array.prototype.indexOf, F = (Be, _t) => R.call(Be, _t), H = (Be, _t) => F(Be, _t) > -1, K = (Be, _t, lt) => {
|
|
53542
53548
|
for (let Ke = 0, qt = Be.length; Ke < qt; Ke++) {
|
|
53543
53549
|
const We = Be[Ke];
|
|
53544
53550
|
if (_t(We, Ke))
|
|
53545
53551
|
return P.some(We);
|
|
53546
|
-
if (
|
|
53552
|
+
if (lt(We, Ke))
|
|
53547
53553
|
break;
|
|
53548
53554
|
}
|
|
53549
53555
|
return P.none();
|
|
53550
53556
|
}, he = Object.keys, Me = (Be, _t) => {
|
|
53551
|
-
const
|
|
53552
|
-
for (let Ke = 0, qt =
|
|
53553
|
-
const We =
|
|
53557
|
+
const lt = he(Be);
|
|
53558
|
+
for (let Ke = 0, qt = lt.length; Ke < qt; Ke++) {
|
|
53559
|
+
const We = lt[Ke], pt = Be[We];
|
|
53554
53560
|
_t(pt, We);
|
|
53555
53561
|
}
|
|
53556
|
-
}, ye = (Be, _t) => Te(Be, (
|
|
53562
|
+
}, ye = (Be, _t) => Te(Be, (lt, Ke) => ({
|
|
53557
53563
|
k: Ke,
|
|
53558
|
-
v: _t(
|
|
53564
|
+
v: _t(lt, Ke)
|
|
53559
53565
|
})), Te = (Be, _t) => {
|
|
53560
|
-
const
|
|
53566
|
+
const lt = {};
|
|
53561
53567
|
return Me(Be, (Ke, qt) => {
|
|
53562
53568
|
const We = _t(Ke, qt);
|
|
53563
|
-
|
|
53564
|
-
}),
|
|
53569
|
+
lt[We.k] = We.v;
|
|
53570
|
+
}), lt;
|
|
53565
53571
|
};
|
|
53566
53572
|
var et = tinymce.util.Tools.resolve("tinymce.util.Tools");
|
|
53567
|
-
const le = (Be) => /\btox\-/.test(Be.className), je = (Be, _t) => Be.dom.isChildOf(_t, Be.getBody()), Xt = (Be) => (_t) => T(_t) && Be.test(_t.nodeName), it = Xt(/^(OL|UL|DL)$/), oe = Xt(/^(TH|TD)$/), Et = (Be, _t,
|
|
53568
|
-
const _t = Be.dom.getParent(Be.selection.getNode(), "ol,ul"),
|
|
53569
|
-
return P.from(
|
|
53573
|
+
const le = (Be) => /\btox\-/.test(Be.className), je = (Be, _t) => Be.dom.isChildOf(_t, Be.getBody()), Xt = (Be) => (_t) => T(_t) && Be.test(_t.nodeName), it = Xt(/^(OL|UL|DL)$/), oe = Xt(/^(TH|TD)$/), Et = (Be, _t, lt) => K(_t, (Ke) => it(Ke) && !le(Ke), oe).exists((Ke) => Ke.nodeName === lt && je(Be, Ke)), rn = (Be) => {
|
|
53574
|
+
const _t = Be.dom.getParent(Be.selection.getNode(), "ol,ul"), lt = Be.dom.getStyle(_t, "listStyleType");
|
|
53575
|
+
return P.from(lt);
|
|
53570
53576
|
}, dn = (Be, _t) => _t !== null && !Be.dom.isEditable(_t), Xe = (Be, _t) => {
|
|
53571
|
-
const
|
|
53572
|
-
return dn(Be,
|
|
53577
|
+
const lt = Be.dom.getParent(_t, "ol,ul,dl");
|
|
53578
|
+
return dn(Be, lt) || !Be.selection.isEditable();
|
|
53573
53579
|
}, ve = (Be, _t) => {
|
|
53574
|
-
const
|
|
53580
|
+
const lt = Be.selection.getNode();
|
|
53575
53581
|
return _t({
|
|
53576
|
-
parents: Be.dom.getParents(
|
|
53577
|
-
element:
|
|
53582
|
+
parents: Be.dom.getParents(lt),
|
|
53583
|
+
element: lt
|
|
53578
53584
|
}), Be.on("NodeChange", _t), () => Be.off("NodeChange", _t);
|
|
53579
|
-
}, Xn = (Be) => Be.replace(/\-/g, " ").replace(/\b\w/g, (_t) => _t.toUpperCase()),
|
|
53585
|
+
}, Xn = (Be) => Be.replace(/\-/g, " ").replace(/\b\w/g, (_t) => _t.toUpperCase()), ut = (Be) => w(Be) || Be === "default" ? "" : Be, kt = (Be, _t) => (lt) => {
|
|
53580
53586
|
const Ke = (We, pt) => {
|
|
53581
53587
|
const Y = We.selection.getStart(!0);
|
|
53582
|
-
|
|
53588
|
+
lt.setActive(Et(We, pt, _t)), lt.setEnabled(!Xe(We, Y));
|
|
53583
53589
|
};
|
|
53584
53590
|
return ve(Be, (We) => Ke(Be, We.parents));
|
|
53585
|
-
}, Q = (Be, _t,
|
|
53591
|
+
}, Q = (Be, _t, lt, Ke, qt, We) => {
|
|
53586
53592
|
const pt = {
|
|
53587
53593
|
"lower-latin": "lower-alpha",
|
|
53588
53594
|
"upper-latin": "upper-alpha",
|
|
@@ -53590,13 +53596,13 @@ function Ohe() {
|
|
|
53590
53596
|
"upper-alpha": "upper-latin"
|
|
53591
53597
|
}, Y = ye(pt, (Ko) => H(We, Ko));
|
|
53592
53598
|
Be.ui.registry.addSplitButton(_t, {
|
|
53593
|
-
tooltip:
|
|
53599
|
+
tooltip: lt,
|
|
53594
53600
|
icon: qt === "OL" ? "ordered-list" : "unordered-list",
|
|
53595
53601
|
presets: "listpreview",
|
|
53596
53602
|
columns: 3,
|
|
53597
53603
|
fetch: (Ko) => {
|
|
53598
53604
|
const fo = et.map(We, (wo) => {
|
|
53599
|
-
const Xo = qt === "OL" ? "num" : "bull", _i = wo === "disc" || wo === "decimal" ? "default" : wo, Ne =
|
|
53605
|
+
const Xo = qt === "OL" ? "num" : "bull", _i = wo === "disc" || wo === "decimal" ? "default" : wo, Ne = ut(wo), ze = Xn(wo);
|
|
53600
53606
|
return {
|
|
53601
53607
|
type: "choiceitem",
|
|
53602
53608
|
value: Ne,
|
|
@@ -53613,16 +53619,16 @@ function Ohe() {
|
|
|
53613
53619
|
select: (Ko) => rn(Be).exists((wo) => Ko === wo || pt[wo] === Ko && !Y[Ko]),
|
|
53614
53620
|
onSetup: kt(Be, qt)
|
|
53615
53621
|
});
|
|
53616
|
-
}, io = (Be, _t,
|
|
53622
|
+
}, io = (Be, _t, lt, Ke, qt, We) => {
|
|
53617
53623
|
Be.ui.registry.addToggleButton(_t, {
|
|
53618
53624
|
active: !1,
|
|
53619
|
-
tooltip:
|
|
53625
|
+
tooltip: lt,
|
|
53620
53626
|
icon: qt === "OL" ? "ordered-list" : "unordered-list",
|
|
53621
53627
|
onSetup: kt(Be, qt),
|
|
53622
53628
|
onAction: () => Be.queryCommandState(Ke) || We === "" ? Be.execCommand(Ke) : o(Be, qt, We)
|
|
53623
53629
|
});
|
|
53624
|
-
}, It = (Be, _t,
|
|
53625
|
-
We.length > 1 ? Q(Be, _t,
|
|
53630
|
+
}, It = (Be, _t, lt, Ke, qt, We) => {
|
|
53631
|
+
We.length > 1 ? Q(Be, _t, lt, Ke, qt, We) : io(Be, _t, lt, Ke, qt, ut(We[0]));
|
|
53626
53632
|
}, Jt = (Be) => {
|
|
53627
53633
|
It(Be, "numlist", "Numbered list", "InsertOrderedList", "OL", m(Be)), It(Be, "bullist", "Bullet list", "InsertUnorderedList", "UL", O(Be));
|
|
53628
53634
|
};
|
|
@@ -53769,12 +53775,12 @@ function vhe() {
|
|
|
53769
53775
|
it.apply(Le, Ae[Lt]);
|
|
53770
53776
|
}
|
|
53771
53777
|
return Le;
|
|
53772
|
-
}, Xn = (Ae, Le) => ve(oe(Ae, Le)),
|
|
53778
|
+
}, Xn = (Ae, Le) => ve(oe(Ae, Le)), ut = (Ae, Le) => {
|
|
53773
53779
|
const Lt = Xt.call(Ae, 0);
|
|
53774
53780
|
return Lt.sort(Le), Lt;
|
|
53775
53781
|
}, kt = Object.hasOwnProperty, Q = (Ae, Le) => kt.call(Ae, Le);
|
|
53776
53782
|
typeof window < "u" || Function("return this;")();
|
|
53777
|
-
const io = 9, It = 11, Jt = 1, Ft = 3, Be = (Ae) => Ae.dom.nodeType,
|
|
53783
|
+
const io = 9, It = 11, Jt = 1, Ft = 3, Be = (Ae) => Ae.dom.nodeType, lt = ((Ae) => (Le) => Be(Le) === Ae)(Ft), Ke = (Ae, Le, Lt) => {
|
|
53778
53784
|
if (O(Lt) || T(Lt) || F(Lt))
|
|
53779
53785
|
Ae.setAttribute(Le, Lt + "");
|
|
53780
53786
|
else
|
|
@@ -53836,7 +53842,7 @@ function vhe() {
|
|
|
53836
53842
|
Nn.dom.nodeValue = Ln;
|
|
53837
53843
|
}
|
|
53838
53844
|
};
|
|
53839
|
-
})(
|
|
53845
|
+
})(lt, "text"), ur = (Ae) => Co.get(Ae), Jo = (Ae, Le, Lt) => (Ae.compareDocumentPosition(Le) & Lt) !== 0, Us = (Ae, Le) => Jo(Ae, Le, Node.DOCUMENT_POSITION_PRECEDING), oa = (Ae, Le) => _i(Le, Ae);
|
|
53840
53846
|
var Js = tinymce.util.Tools.resolve("tinymce.dom.TreeWalker");
|
|
53841
53847
|
const rs = (Ae, Le) => Ae.isBlock(Le) || Q(Ae.schema.getVoidElements(), Le.nodeName), is = (Ae, Le) => !Ae.isEditable(Le), Rr = (Ae, Le) => Ae.getContentEditable(Le) === "true" && Le.parentNode && !Ae.isEditable(Le.parentNode), Fs = (Ae, Le) => !Ae.isBlock(Le) && Q(Ae.schema.getWhitespaceElements(), Le.nodeName), Bo = (Ae, Le) => rs(Ae, Le) || is(Ae, Le) || Fs(Ae, Le) || Rr(Ae, Le), Ya = (Ae) => Ae.nodeType === 3, No = () => ({
|
|
53842
53848
|
sOffset: 0,
|
|
@@ -53894,7 +53900,7 @@ function vhe() {
|
|
|
53894
53900
|
const lo = Jn.dom;
|
|
53895
53901
|
return Aa(Ae, lo, lo);
|
|
53896
53902
|
});
|
|
53897
|
-
return
|
|
53903
|
+
return ut(Dn, (Jn, lo) => Us(Jn.elements[0].dom, lo.elements[0].dom) ? 1 : -1);
|
|
53898
53904
|
}
|
|
53899
53905
|
}, !1);
|
|
53900
53906
|
}, Ka = (Ae, Le) => Le.collapsed ? [] : Lo(Ae, Le), Gt = (Ae, Le) => {
|
|
@@ -54059,7 +54065,7 @@ function vhe() {
|
|
|
54059
54065
|
return Dn.setStart(Ut, 0), Dn.setEnd(gn, gn.data.length), Lt !== !1 && Ae.selection.setRng(Dn), Dn;
|
|
54060
54066
|
} else
|
|
54061
54067
|
return;
|
|
54062
|
-
}, Pe = (Ae, Le) => Le.get().count > 1, Ce = (Ae, Le) => Le.get().count > 1,
|
|
54068
|
+
}, Pe = (Ae, Le) => Le.get().count > 1, Ce = (Ae, Le) => Le.get().count > 1, dt = (Ae, Le) => ({
|
|
54063
54069
|
done: (Dn) => vr(Ae, Le, Dn),
|
|
54064
54070
|
find: (Dn, Jn, lo, ds = !1) => Ls(Ae, Le, Dn, Jn, lo, ds),
|
|
54065
54071
|
next: () => Or(Ae, Le),
|
|
@@ -54293,7 +54299,7 @@ function vhe() {
|
|
|
54293
54299
|
wholeWord: !1,
|
|
54294
54300
|
inSelection: !1
|
|
54295
54301
|
});
|
|
54296
|
-
return To(Ae, Le), Rt(Ae, Le),
|
|
54302
|
+
return To(Ae, Le), Rt(Ae, Le), dt(Ae, Le);
|
|
54297
54303
|
});
|
|
54298
54304
|
};
|
|
54299
54305
|
Ot();
|
|
@@ -54304,34 +54310,34 @@ var tne = {}, nne;
|
|
|
54304
54310
|
function yhe() {
|
|
54305
54311
|
return nne || (nne = 1, function() {
|
|
54306
54312
|
var u = tinymce.util.Tools.resolve("tinymce.PluginManager"), o = tinymce.util.Tools.resolve("tinymce.dom.RangeUtils"), i = tinymce.util.Tools.resolve("tinymce.util.Tools");
|
|
54307
|
-
const c = (
|
|
54308
|
-
const kt =
|
|
54313
|
+
const c = (ut) => (kt) => kt.options.get(ut), h = (ut) => {
|
|
54314
|
+
const kt = ut.options.register;
|
|
54309
54315
|
kt("allow_html_in_named_anchor", {
|
|
54310
54316
|
processor: "boolean",
|
|
54311
54317
|
default: !1
|
|
54312
54318
|
});
|
|
54313
|
-
}, m = c("allow_html_in_named_anchor"), O = "a:not([href])", w = (
|
|
54314
|
-
const kt =
|
|
54315
|
-
o(kt).walk(
|
|
54319
|
+
}, m = c("allow_html_in_named_anchor"), O = "a:not([href])", w = (ut) => !ut, T = (ut) => ut.getAttribute("id") || ut.getAttribute("name") || "", P = (ut) => ut.nodeName.toLowerCase() === "a", R = (ut) => P(ut) && !ut.getAttribute("href") && T(ut) !== "", F = (ut) => R(ut) && !ut.firstChild, H = (ut) => {
|
|
54320
|
+
const kt = ut.dom;
|
|
54321
|
+
o(kt).walk(ut.selection.getRng(), (Q) => {
|
|
54316
54322
|
i.each(Q, (io) => {
|
|
54317
54323
|
F(io) && kt.remove(io, !1);
|
|
54318
54324
|
});
|
|
54319
54325
|
});
|
|
54320
|
-
}, K = (
|
|
54321
|
-
const kt = he(
|
|
54326
|
+
}, K = (ut) => /^[A-Za-z][A-Za-z0-9\-:._]*$/.test(ut), he = (ut) => ut.dom.getParent(ut.selection.getStart(), O), Me = (ut) => {
|
|
54327
|
+
const kt = he(ut);
|
|
54322
54328
|
return kt ? T(kt) : "";
|
|
54323
|
-
}, ye = (
|
|
54324
|
-
|
|
54325
|
-
m(
|
|
54329
|
+
}, ye = (ut, kt) => {
|
|
54330
|
+
ut.undoManager.transact(() => {
|
|
54331
|
+
m(ut) || ut.selection.collapse(!0), ut.selection.isCollapsed() ? ut.insertContent(ut.dom.createHTML("a", { id: kt })) : (H(ut), ut.formatter.remove("namedAnchor", void 0, void 0, !0), ut.formatter.apply("namedAnchor", { value: kt }), ut.addVisual());
|
|
54326
54332
|
});
|
|
54327
|
-
}, Te = (
|
|
54328
|
-
Q.removeAttribute("name"), Q.id = kt,
|
|
54329
|
-
}, et = (
|
|
54330
|
-
const Q = he(
|
|
54331
|
-
Q ? Te(
|
|
54332
|
-
}, le = (
|
|
54333
|
-
const kt = Me(
|
|
54334
|
-
|
|
54333
|
+
}, Te = (ut, kt, Q) => {
|
|
54334
|
+
Q.removeAttribute("name"), Q.id = kt, ut.addVisual(), ut.undoManager.add();
|
|
54335
|
+
}, et = (ut, kt) => {
|
|
54336
|
+
const Q = he(ut);
|
|
54337
|
+
Q ? Te(ut, kt, Q) : ye(ut, kt), ut.focus();
|
|
54338
|
+
}, le = (ut, kt) => K(kt) ? (et(ut, kt), !0) : (ut.windowManager.alert("ID should start with a letter, followed only by letters, numbers, dashes, dots, colons or underscores."), !1), je = (ut) => {
|
|
54339
|
+
const kt = Me(ut);
|
|
54340
|
+
ut.windowManager.open({
|
|
54335
54341
|
title: "Anchor",
|
|
54336
54342
|
size: "normal",
|
|
54337
54343
|
body: {
|
|
@@ -54358,24 +54364,24 @@ function yhe() {
|
|
|
54358
54364
|
],
|
|
54359
54365
|
initialData: { id: kt },
|
|
54360
54366
|
onSubmit: (Q) => {
|
|
54361
|
-
le(
|
|
54367
|
+
le(ut, Q.getData().id) && Q.close();
|
|
54362
54368
|
}
|
|
54363
54369
|
});
|
|
54364
|
-
}, Xt = (
|
|
54365
|
-
|
|
54366
|
-
je(
|
|
54370
|
+
}, Xt = (ut) => {
|
|
54371
|
+
ut.addCommand("mceAnchor", () => {
|
|
54372
|
+
je(ut);
|
|
54367
54373
|
});
|
|
54368
|
-
}, it = (
|
|
54374
|
+
}, it = (ut) => w(ut.attr("href")) && !w(ut.attr("id") || ut.attr("name")), oe = (ut) => it(ut) && !ut.firstChild, Et = (ut) => (kt) => {
|
|
54369
54375
|
for (let Q = 0; Q < kt.length; Q++) {
|
|
54370
54376
|
const io = kt[Q];
|
|
54371
|
-
oe(io) && io.attr("contenteditable",
|
|
54377
|
+
oe(io) && io.attr("contenteditable", ut);
|
|
54372
54378
|
}
|
|
54373
|
-
}, rn = (
|
|
54374
|
-
|
|
54375
|
-
|
|
54379
|
+
}, rn = (ut) => {
|
|
54380
|
+
ut.on("PreInit", () => {
|
|
54381
|
+
ut.parser.addNodeFilter("a", Et("false")), ut.serializer.addNodeFilter("a", Et(null));
|
|
54376
54382
|
});
|
|
54377
|
-
}, dn = (
|
|
54378
|
-
|
|
54383
|
+
}, dn = (ut) => {
|
|
54384
|
+
ut.formatter.register("namedAnchor", {
|
|
54379
54385
|
inline: "a",
|
|
54380
54386
|
selector: O,
|
|
54381
54387
|
remove: "all",
|
|
@@ -54384,36 +54390,36 @@ function yhe() {
|
|
|
54384
54390
|
attributes: { id: "%value" },
|
|
54385
54391
|
onmatch: (kt, Q, io) => R(kt)
|
|
54386
54392
|
});
|
|
54387
|
-
}, Xe = (
|
|
54393
|
+
}, Xe = (ut) => (kt) => {
|
|
54388
54394
|
const Q = () => {
|
|
54389
|
-
kt.setEnabled(
|
|
54395
|
+
kt.setEnabled(ut.selection.isEditable());
|
|
54390
54396
|
};
|
|
54391
|
-
return
|
|
54392
|
-
|
|
54397
|
+
return ut.on("NodeChange", Q), Q(), () => {
|
|
54398
|
+
ut.off("NodeChange", Q);
|
|
54393
54399
|
};
|
|
54394
|
-
}, ve = (
|
|
54395
|
-
const kt = () =>
|
|
54396
|
-
|
|
54400
|
+
}, ve = (ut) => {
|
|
54401
|
+
const kt = () => ut.execCommand("mceAnchor");
|
|
54402
|
+
ut.ui.registry.addToggleButton("anchor", {
|
|
54397
54403
|
icon: "bookmark",
|
|
54398
54404
|
tooltip: "Anchor",
|
|
54399
54405
|
onAction: kt,
|
|
54400
54406
|
onSetup: (Q) => {
|
|
54401
|
-
const io =
|
|
54407
|
+
const io = ut.selection.selectorChangedWithUnbind("a:not([href])", Q.setActive).unbind, It = Xe(ut)(Q);
|
|
54402
54408
|
return () => {
|
|
54403
54409
|
io(), It();
|
|
54404
54410
|
};
|
|
54405
54411
|
}
|
|
54406
|
-
}),
|
|
54412
|
+
}), ut.ui.registry.addMenuItem("anchor", {
|
|
54407
54413
|
icon: "bookmark",
|
|
54408
54414
|
text: "Anchor...",
|
|
54409
54415
|
onAction: kt,
|
|
54410
|
-
onSetup: Xe(
|
|
54416
|
+
onSetup: Xe(ut)
|
|
54411
54417
|
});
|
|
54412
54418
|
};
|
|
54413
54419
|
var Xn = () => {
|
|
54414
|
-
u.add("anchor", (
|
|
54415
|
-
h(
|
|
54416
|
-
dn(
|
|
54420
|
+
u.add("anchor", (ut) => {
|
|
54421
|
+
h(ut), rn(ut), Xt(ut), ve(ut), ut.on("PreInit", () => {
|
|
54422
|
+
dn(ut);
|
|
54417
54423
|
});
|
|
54418
54424
|
});
|
|
54419
54425
|
};
|
|
@@ -54445,7 +54451,7 @@ function whe() {
|
|
|
54445
54451
|
return Y !== -1 ? K(pt) ? !0 : Y + qt.length <= pt : !1;
|
|
54446
54452
|
}, Xt = (Ke, qt) => le(Ke, qt, 0), it = "\uFEFF", oe = (Ke) => Ke === it, Et = (Ke) => Ke.replace(/\uFEFF/g, "");
|
|
54447
54453
|
var rn = tinymce.util.Tools.resolve("tinymce.dom.TextSeeker");
|
|
54448
|
-
const dn = (Ke) => Ke.nodeType === 3, Xe = (Ke) => Ke.nodeType === 1, ve = (Ke) => /^[(\[{ \u00a0]$/.test(Ke), Xn = (Ke) => /^([A-Za-z][A-Za-z\d.+-]*:\/\/)|mailto:/.test(Ke),
|
|
54454
|
+
const dn = (Ke) => Ke.nodeType === 3, Xe = (Ke) => Ke.nodeType === 1, ve = (Ke) => /^[(\[{ \u00a0]$/.test(Ke), Xn = (Ke) => /^([A-Za-z][A-Za-z\d.+-]*:\/\/)|mailto:/.test(Ke), ut = (Ke) => /[?!,.;:]/.test(Ke), kt = (Ke, qt, We) => {
|
|
54449
54455
|
for (let pt = qt - 1; pt >= 0; pt--) {
|
|
54450
54456
|
const Y = Ke.charAt(pt);
|
|
54451
54457
|
if (!oe(Y) && We(Y))
|
|
@@ -54470,7 +54476,7 @@ function whe() {
|
|
|
54470
54476
|
offset: Ne
|
|
54471
54477
|
} = Q(wo.endContainer, wo.endOffset), ze = (We = Ko.getParent(_i, Ko.isBlock)) !== null && We !== void 0 ? We : Ko.getRoot(), Je = Xo.backwards(_i, Ne + qt, (Co, ur) => {
|
|
54472
54478
|
const Jo = Co.data, Us = kt(Jo, ur, ye(ve));
|
|
54473
|
-
return Us === -1 ||
|
|
54479
|
+
return Us === -1 || ut(Jo[Us]) ? Us : Us + 1;
|
|
54474
54480
|
}, ze);
|
|
54475
54481
|
if (!Je)
|
|
54476
54482
|
return null;
|
|
@@ -54520,12 +54526,12 @@ function whe() {
|
|
|
54520
54526
|
qt.keyCode === 32 ? Jt(Ke) : (qt.keyCode === 48 && qt.shiftKey || qt.keyCode === 221) && Ft(Ke);
|
|
54521
54527
|
});
|
|
54522
54528
|
};
|
|
54523
|
-
var
|
|
54529
|
+
var lt = () => {
|
|
54524
54530
|
u.add("autolink", (Ke) => {
|
|
54525
54531
|
c(Ke), _t(Ke);
|
|
54526
54532
|
});
|
|
54527
54533
|
};
|
|
54528
|
-
|
|
54534
|
+
lt();
|
|
54529
54535
|
}()), one;
|
|
54530
54536
|
}
|
|
54531
54537
|
whe();
|
|
@@ -54648,7 +54654,7 @@ function xhe() {
|
|
|
54648
54654
|
const rn = (Ne) => (ze) => ze.options.get(Ne), dn = (Ne) => {
|
|
54649
54655
|
const ze = Ne.options.register, Je = (Se) => K(Se) || T(Se);
|
|
54650
54656
|
ze("charmap", { processor: Je }), ze("charmap_append", { processor: Je });
|
|
54651
|
-
}, Xe = rn("charmap"), ve = rn("charmap_append"), Xn = Et.isArray,
|
|
54657
|
+
}, Xe = rn("charmap"), ve = rn("charmap_append"), Xn = Et.isArray, ut = "User Defined", kt = () => [
|
|
54652
54658
|
{
|
|
54653
54659
|
name: "Currency",
|
|
54654
54660
|
characters: [
|
|
@@ -55839,17 +55845,17 @@ function xhe() {
|
|
|
55839
55845
|
], Q = (Ne) => Et.grep(Ne, (ze) => Xn(ze) && ze.length === 2), io = (Ne) => Xn(Ne) ? Q(Ne) : typeof Ne == "function" ? Ne() : [], It = (Ne, ze) => {
|
|
55840
55846
|
const Je = Xe(Ne);
|
|
55841
55847
|
Je && (ze = [{
|
|
55842
|
-
name:
|
|
55848
|
+
name: ut,
|
|
55843
55849
|
characters: io(Je)
|
|
55844
55850
|
}]);
|
|
55845
55851
|
const Se = ve(Ne);
|
|
55846
55852
|
if (Se) {
|
|
55847
|
-
const Fn = Et.grep(ze, (vo) => vo.name ===
|
|
55853
|
+
const Fn = Et.grep(ze, (vo) => vo.name === ut);
|
|
55848
55854
|
return Fn.length ? (Fn[0].characters = [
|
|
55849
55855
|
...Fn[0].characters,
|
|
55850
55856
|
...io(Se)
|
|
55851
55857
|
], ze) : ze.concat({
|
|
55852
|
-
name:
|
|
55858
|
+
name: ut,
|
|
55853
55859
|
characters: io(Se)
|
|
55854
55860
|
});
|
|
55855
55861
|
}
|
|
@@ -55886,10 +55892,10 @@ function xhe() {
|
|
|
55886
55892
|
}, ze);
|
|
55887
55893
|
}
|
|
55888
55894
|
};
|
|
55889
|
-
},
|
|
55895
|
+
}, lt = (Ne, ze, Je = 0, Se) => {
|
|
55890
55896
|
const Fn = Ne.indexOf(ze, Je);
|
|
55891
55897
|
return Fn !== -1 ? R(Se) ? !0 : Fn + ze.length <= Se : !1;
|
|
55892
|
-
}, Ke = String.fromCodePoint, qt = (Ne, ze, Je) =>
|
|
55898
|
+
}, Ke = String.fromCodePoint, qt = (Ne, ze, Je) => lt(Ke(Ne).toLowerCase(), Je) ? !0 : lt(ze.toLowerCase(), Je) || lt(ze.toLowerCase().replace(/\s+/g, ""), Je), We = (Ne, ze) => {
|
|
55893
55899
|
const Je = [], Se = ze.toLowerCase();
|
|
55894
55900
|
return le(Ne.characters, (Fn) => {
|
|
55895
55901
|
qt(Fn[0], Fn[1], Se) && Je.push(Fn);
|
|
@@ -55919,7 +55925,7 @@ function xhe() {
|
|
|
55919
55925
|
}), vo = () => ({
|
|
55920
55926
|
type: "tabpanel",
|
|
55921
55927
|
tabs: Se()
|
|
55922
|
-
}), yn = ze.length === 1 ? Be(
|
|
55928
|
+
}), yn = ze.length === 1 ? Be(ut) : Be("All"), Ps = (rs, is) => {
|
|
55923
55929
|
Xt(ze, (Rr) => Rr.name === yn.get()).each((Rr) => {
|
|
55924
55930
|
const Fs = We(Rr, is);
|
|
55925
55931
|
rs.setData({ results: Fs });
|
|
@@ -66359,56 +66365,56 @@ function tge(u) {
|
|
|
66359
66365
|
var o;
|
|
66360
66366
|
let { buffer: i, nodeSet: c, maxBufferLength: h = Zre, reused: m = [], minRepeatType: O = c.types.length } = u, w = Array.isArray(i) ? new _J(i, i.length) : i, T = c.types, P = 0, R = 0;
|
|
66361
66367
|
function F(Xt, it, oe, Et, rn, dn) {
|
|
66362
|
-
let { id: Xe, start: ve, end: Xn, size:
|
|
66363
|
-
for (;
|
|
66364
|
-
if (w.next(),
|
|
66368
|
+
let { id: Xe, start: ve, end: Xn, size: ut } = w, kt = R, Q = P;
|
|
66369
|
+
for (; ut < 0; )
|
|
66370
|
+
if (w.next(), ut == -1) {
|
|
66365
66371
|
let Be = m[Xe];
|
|
66366
66372
|
oe.push(Be), Et.push(ve - Xt);
|
|
66367
66373
|
return;
|
|
66368
|
-
} else if (
|
|
66374
|
+
} else if (ut == -3) {
|
|
66369
66375
|
P = Xe;
|
|
66370
66376
|
return;
|
|
66371
|
-
} else if (
|
|
66377
|
+
} else if (ut == -4) {
|
|
66372
66378
|
R = Xe;
|
|
66373
66379
|
return;
|
|
66374
66380
|
} else
|
|
66375
|
-
throw new RangeError(`Unrecognized record size: ${
|
|
66381
|
+
throw new RangeError(`Unrecognized record size: ${ut}`);
|
|
66376
66382
|
let io = T[Xe], It, Jt, Ft = ve - Xt;
|
|
66377
66383
|
if (Xn - ve <= h && (Jt = ye(w.pos - it, rn))) {
|
|
66378
|
-
let Be = new Uint16Array(Jt.size - Jt.skip), _t = w.pos - Jt.size,
|
|
66384
|
+
let Be = new Uint16Array(Jt.size - Jt.skip), _t = w.pos - Jt.size, lt = Be.length;
|
|
66379
66385
|
for (; w.pos > _t; )
|
|
66380
|
-
|
|
66386
|
+
lt = Te(Jt.start, Be, lt);
|
|
66381
66387
|
It = new O2(Be, Xn - Jt.start, c), Ft = Jt.start - Xt;
|
|
66382
66388
|
} else {
|
|
66383
|
-
let Be = w.pos -
|
|
66389
|
+
let Be = w.pos - ut;
|
|
66384
66390
|
w.next();
|
|
66385
|
-
let _t = [],
|
|
66391
|
+
let _t = [], lt = [], Ke = Xe >= O ? Xe : -1, qt = 0, We = Xn;
|
|
66386
66392
|
for (; w.pos > Be; )
|
|
66387
|
-
Ke >= 0 && w.id == Ke && w.size >= 0 ? (w.end <= We - h && (he(_t,
|
|
66388
|
-
if (Ke >= 0 && qt > 0 && qt < _t.length && he(_t,
|
|
66393
|
+
Ke >= 0 && w.id == Ke && w.size >= 0 ? (w.end <= We - h && (he(_t, lt, ve, qt, w.end, We, Ke, kt, Q), qt = _t.length, We = w.end), w.next()) : dn > 2500 ? H(ve, Be, _t, lt) : F(ve, Be, _t, lt, Ke, dn + 1);
|
|
66394
|
+
if (Ke >= 0 && qt > 0 && qt < _t.length && he(_t, lt, ve, qt, ve, We, Ke, kt, Q), _t.reverse(), lt.reverse(), Ke > -1 && qt > 0) {
|
|
66389
66395
|
let pt = K(io, Q);
|
|
66390
|
-
It = $J(io, _t,
|
|
66396
|
+
It = $J(io, _t, lt, 0, _t.length, 0, Xn - ve, pt, pt);
|
|
66391
66397
|
} else
|
|
66392
|
-
It = Me(io, _t,
|
|
66398
|
+
It = Me(io, _t, lt, Xn - ve, kt - Xn, Q);
|
|
66393
66399
|
}
|
|
66394
66400
|
oe.push(It), Et.push(Ft);
|
|
66395
66401
|
}
|
|
66396
66402
|
function H(Xt, it, oe, Et) {
|
|
66397
66403
|
let rn = [], dn = 0, Xe = -1;
|
|
66398
66404
|
for (; w.pos > it; ) {
|
|
66399
|
-
let { id: ve, start: Xn, end:
|
|
66405
|
+
let { id: ve, start: Xn, end: ut, size: kt } = w;
|
|
66400
66406
|
if (kt > 4)
|
|
66401
66407
|
w.next();
|
|
66402
66408
|
else {
|
|
66403
66409
|
if (Xe > -1 && Xn < Xe)
|
|
66404
66410
|
break;
|
|
66405
|
-
Xe < 0 && (Xe =
|
|
66411
|
+
Xe < 0 && (Xe = ut - h), rn.push(ve, Xn, ut), dn++, w.next();
|
|
66406
66412
|
}
|
|
66407
66413
|
}
|
|
66408
66414
|
if (dn) {
|
|
66409
66415
|
let ve = new Uint16Array(dn * 4), Xn = rn[rn.length - 2];
|
|
66410
|
-
for (let
|
|
66411
|
-
ve[kt++] = rn[
|
|
66416
|
+
for (let ut = rn.length - 3, kt = 0; ut >= 0; ut -= 3)
|
|
66417
|
+
ve[kt++] = rn[ut], ve[kt++] = rn[ut + 1] - Xn, ve[kt++] = rn[ut + 2] - Xn, ve[kt++] = kt;
|
|
66412
66418
|
oe.push(new O2(ve, rn[2] - Xn, c)), Et.push(Xn - Xt);
|
|
66413
66419
|
}
|
|
66414
66420
|
}
|
|
@@ -66424,10 +66430,10 @@ function tge(u) {
|
|
|
66424
66430
|
};
|
|
66425
66431
|
}
|
|
66426
66432
|
function he(Xt, it, oe, Et, rn, dn, Xe, ve, Xn) {
|
|
66427
|
-
let
|
|
66433
|
+
let ut = [], kt = [];
|
|
66428
66434
|
for (; Xt.length > Et; )
|
|
66429
|
-
|
|
66430
|
-
Xt.push(Me(c.types[Xe],
|
|
66435
|
+
ut.push(Xt.pop()), kt.push(it.pop() + oe - rn);
|
|
66436
|
+
Xt.push(Me(c.types[Xe], ut, kt, dn - rn, ve - dn, Xn)), it.push(rn - oe);
|
|
66431
66437
|
}
|
|
66432
66438
|
function Me(Xt, it, oe, Et, rn, dn, Xe) {
|
|
66433
66439
|
if (dn) {
|
|
@@ -66443,13 +66449,13 @@ function tge(u) {
|
|
|
66443
66449
|
function ye(Xt, it) {
|
|
66444
66450
|
let oe = w.fork(), Et = 0, rn = 0, dn = 0, Xe = oe.end - h, ve = { size: 0, start: 0, skip: 0 };
|
|
66445
66451
|
e: for (let Xn = oe.pos - Xt; oe.pos > Xn; ) {
|
|
66446
|
-
let
|
|
66447
|
-
if (oe.id == it &&
|
|
66452
|
+
let ut = oe.size;
|
|
66453
|
+
if (oe.id == it && ut >= 0) {
|
|
66448
66454
|
ve.size = Et, ve.start = rn, ve.skip = dn, dn += 4, Et += 4, oe.next();
|
|
66449
66455
|
continue;
|
|
66450
66456
|
}
|
|
66451
|
-
let kt = oe.pos -
|
|
66452
|
-
if (
|
|
66457
|
+
let kt = oe.pos - ut;
|
|
66458
|
+
if (ut < 0 || kt < Xn || oe.start < Xe)
|
|
66453
66459
|
break;
|
|
66454
66460
|
let Q = oe.id >= O ? 4 : 0, io = oe.start;
|
|
66455
66461
|
for (oe.next(); oe.pos > kt; ) {
|
|
@@ -66461,7 +66467,7 @@ function tge(u) {
|
|
|
66461
66467
|
else oe.id >= O && (Q += 4);
|
|
66462
66468
|
oe.next();
|
|
66463
66469
|
}
|
|
66464
|
-
rn = io, Et +=
|
|
66470
|
+
rn = io, Et += ut, dn += Q;
|
|
66465
66471
|
}
|
|
66466
66472
|
return (it < 0 || Et == Xt) && (ve.size = Et, ve.start = rn, ve.skip = dn), ve.size > 4 ? ve : void 0;
|
|
66467
66473
|
}
|