agilebuilder-ui 1.1.35-sit3 → 1.1.35
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/lib/{401-cf905888.js → 401-20f1c97c.js} +1 -1
- package/lib/{404-5a6f0cf4.js → 404-36d09e24.js} +1 -1
- package/lib/{iframe-page-603a05cd.js → iframe-page-51c292dc.js} +1 -1
- package/lib/{index-78107f31.js → index-19f46200.js} +485 -549
- package/lib/super-ui.css +1 -1
- package/lib/super-ui.js +1 -1
- package/lib/super-ui.umd.cjs +48 -48
- package/lib/{tab-content-iframe-index-8f8128dd.js → tab-content-iframe-index-5d9d85c0.js} +1 -1
- package/lib/{tab-content-index-9d7fc3c7.js → tab-content-index-bd535c86.js} +1 -1
- package/lib/{tache-subprocess-history-a3e8a008.js → tache-subprocess-history-56bf69ba.js} +1 -1
- package/package.json +1 -1
- package/packages/super-grid/src/formatter.js +3 -4
- package/packages/super-grid/src/normal-column-content.vue +0 -24
- package/packages/super-grid/src/row-operation.vue +13 -21
- package/packages/super-grid/src/search-form-open.vue +1 -0
- package/packages/super-grid/src/super-grid-service.js +1 -1
- package/packages/super-grid/src/utils.js +0 -8
- package/packages/super-icon/src/index.vue +1 -7
- package/packages/utils/value-set.js +1 -147
- package/src/utils/util.js +715 -721
- package/src/views/dsc-component/Sidebar/Item.vue +2 -7
|
@@ -8195,13 +8195,13 @@ function getAdditionalParamMap$1(n) {
|
|
|
8195
8195
|
return r && Object.assign(o, r), o;
|
|
8196
8196
|
}
|
|
8197
8197
|
}
|
|
8198
|
-
function getPropValueNew(n, o
|
|
8199
|
-
let
|
|
8198
|
+
function getPropValueNew(n, o) {
|
|
8199
|
+
let r = null;
|
|
8200
8200
|
if (n && n !== null && n !== "") {
|
|
8201
|
-
const
|
|
8202
|
-
n === "null" ?
|
|
8201
|
+
const a = o && o.entity ? o.entity.data : null, s = getAdditionalParamMap$1(o), l = o && o.entity ? o.entity.context : null, d = o && o.entity ? o.entity.parent ? o.entity.parent : o.entity.data : null, p = o && o.entity ? o.entity.row : null, v = o && o.entity ? o.entity.task : null, w = o && o.entity ? o.entity.system : null;
|
|
8202
|
+
n === "null" ? r = null : n.includes("${context.") || n.includes("${request.") || n.includes("${obj.") || n.includes("${data.") ? n.includes("${context.") ? r = getContextValue(l, n = n.replace("${context.", "").replace("}", "")) : n.includes("${request.") && n !== "${request.term}" ? (n = n.replace("${request.", "").replace("}", ""), r = s && s != null && Object.keys(s).indexOf(n) >= 0 && s[n] && s[n] !== null ? s[n] : null) : n.includes("${obj.") ? a === void 0 || a == null ? r = null : r = getEntityFieldValue(a, n.replace("${obj.", "").replace("}", "")) : n.includes("${data.") && (a === void 0 || a == null ? r = null : r = getEntityFieldValue(a, n.replace("${data.", "").replace("}", ""))) : n.includes("${parent.") ? d === void 0 || d == null ? r = null : r = getEntityFieldValue(d, n.replace("${parent.", "").replace("}", "")) : n.includes("${system.") ? w === void 0 || w == null ? r = null : r = getEntityFieldValue(w, n.replace("${system.", "").replace("}", "")) : n.includes("${task.") ? v === void 0 || v == null ? r = null : r = getEntityFieldValue(v, n.replace("${task.", "").replace("}", "")) : n.includes("${subObj.") ? p === void 0 || p == null ? r = null : r = getEntityFieldValue(p, n.replace("${subObj.", "").replace("}", "")) : r = n.includes("${input.") ? n.replace("${input.", "").replace("}", "") : n.includes("${fixed.") ? n.replace("${fixed.", "").replace("}", "") : n;
|
|
8203
8203
|
}
|
|
8204
|
-
return
|
|
8204
|
+
return r;
|
|
8205
8205
|
}
|
|
8206
8206
|
function analysisValue(n, o, r, a, s) {
|
|
8207
8207
|
if (!n)
|
|
@@ -8210,7 +8210,7 @@ function analysisValue(n, o, r, a, s) {
|
|
|
8210
8210
|
const d = n.split("-#-#");
|
|
8211
8211
|
return d != null && d.length > 0 && d.forEach((p) => {
|
|
8212
8212
|
let v;
|
|
8213
|
-
v = s ? getPropValueNew(p, s
|
|
8213
|
+
v = s ? getPropValueNew(p, s) : getPropValue(p, o, r, a), v && v !== null || (v = ""), l += v;
|
|
8214
8214
|
}), l;
|
|
8215
8215
|
}
|
|
8216
8216
|
function setEntityFieldValue(n, o, r) {
|
|
@@ -9662,16 +9662,16 @@ const SvgIcon = _export_sfc(_sfc_main$1K, [["render", _sfc_render$1e], ["__scope
|
|
|
9662
9662
|
const o = ref(window.$vueApp.config.globalProperties.baseAPI + "/component/super-form/show-image?serverPath=");
|
|
9663
9663
|
return (r, a) => {
|
|
9664
9664
|
const s = resolveComponent("el-icon");
|
|
9665
|
-
return n.iconValue.indexOf("amb-icon-") === 0 ? (openBlock(), createElementBlock("i", { key: 0, class: normalizeClass(["amb-iconfont", n.iconValue]) }, null, 2)) : n.iconValue.indexOf("amb-color-icon-") === 0 ? (openBlock(), createElementBlock("i", { key: 1, class: normalizeClass(["amb-color-iconfont
|
|
9665
|
+
return n.iconValue.indexOf("amb-icon-") === 0 ? (openBlock(), createElementBlock("i", { key: 0, class: normalizeClass(["amb-iconfont", n.iconValue]) }, null, 2)) : n.iconValue.indexOf("amb-color-icon-") === 0 ? (openBlock(), createElementBlock("i", { key: 1, class: normalizeClass(["amb-color-iconfont", n.iconValue]) }, null, 2)) : n.iconValue.indexOf("fa-") === 0 ? (openBlock(), createElementBlock("i", { key: 2, class: normalizeClass("fa " + n.iconValue) }, null, 2)) : n.iconValue.indexOf("svg-img-") === 0 ? (openBlock(), createElementBlock("img", { key: 3, src: o.value + n.iconValue.substring(8), style: { width: "1em", height: "1em" } }, null, 8, _hoisted_1$1l)) : n.iconValue.indexOf("svg-") === 0 ? (openBlock(), createBlock(SvgIcon, { key: 4, "icon-class": n.iconValue.substring(4) }, null, 8, ["icon-class"])) : n.iconValue.indexOf("http") === 0 || n.iconValue.indexOf("//") === 0 || n.iconValue.indexOf("data:") === 0 ? (openBlock(), createElementBlock("img", { key: 5, src: n.iconValue, style: { width: "1em", height: "1em" } }, null, 8, _hoisted_2$Q)) : (openBlock(), createBlock(s, { key: 6 }, { default: withCtx(() => [(openBlock(), createBlock(resolveDynamicComponent(n.iconValue)))]), _: 1 }));
|
|
9666
9666
|
};
|
|
9667
|
-
} })
|
|
9668
|
-
|
|
9669
|
-
n.component("SuperIcon",
|
|
9667
|
+
} });
|
|
9668
|
+
_sfc_main$1J.install = function(n) {
|
|
9669
|
+
n.component("SuperIcon", _sfc_main$1J);
|
|
9670
9670
|
};
|
|
9671
9671
|
const _sfc_main$1I = defineComponent({ name: "MenuItem", functional: !0, props: { icon: { type: String, default: "" }, title: { type: String, default: "" }, hasChildren: { type: Boolean, default: !1 }, isRoot: { type: Boolean, default: !1 }, code: { type: Boolean, default: !1 }, backlogTotal: { type: Number, default: 0 } }, render(n) {
|
|
9672
9672
|
const { title: o, hasChildren: r, isRoot: a, code: s, backlogTotal: l } = n, d = n.icon, p = [];
|
|
9673
9673
|
let v = [h("i", { class: "amb-iconfont amb-icon-meun_post" })];
|
|
9674
|
-
return d && (v = [h(
|
|
9674
|
+
return d && (v = [h(_sfc_main$1J, { iconValue: d })]), p.push(h("div", { class: ["smb-sidebar-menu-item-icon"] }, v)), o && (a ? p.push(h("div", { class: ["smb-sidebar-menu-item-title"] }, [h("div", { title: o }, o)])) : s === "undoneTask" ? p.push(h("div", { class: ["smb-sidebar-menu-item-title"] }, [h("div", { title: o }, [h(ElBadge, { value: l, style: { display: "inline" } }, o)])])) : p.push(h("div", { class: ["smb-sidebar-menu-item-title"] }, [h("div", { title: o }, o)]))), p;
|
|
9675
9675
|
} }), _sfc_main$1H = { props: { to: { type: Object, required: !0 } }, data() {
|
|
9676
9676
|
const n = this.to.isExternal, o = this.to.openWay;
|
|
9677
9677
|
let r = !1;
|
|
@@ -9950,7 +9950,7 @@ function _sfc_render$1a(n, o, r, a, s, l) {
|
|
|
9950
9950
|
const d = resolveComponent("app-main");
|
|
9951
9951
|
return openBlock(), createElementBlock("div", _hoisted_1$1i, [createElementVNode("div", _hoisted_2$P, [createVNode(d)])]);
|
|
9952
9952
|
}
|
|
9953
|
-
const Layout = _export_sfc(_sfc_main$1E, [["render", _sfc_render$1a]]), publicRouterMap = [{ path: "/redirect", component: Layout, hidden: !0, children: [{ path: "/redirect/:path*", component: () => import("./index-1cc4db24.js") }] }, { path: "/iframe-page", component: Layout, hidden: !0, children: [{ path: "page", component: () => import("./iframe-page-
|
|
9953
|
+
const Layout = _export_sfc(_sfc_main$1E, [["render", _sfc_render$1a]]), publicRouterMap = [{ path: "/redirect", component: Layout, hidden: !0, children: [{ path: "/redirect/:path*", component: () => import("./index-1cc4db24.js") }] }, { path: "/iframe-page", component: Layout, hidden: !0, children: [{ path: "page", component: () => import("./iframe-page-51c292dc.js"), hidden: !0 }] }, { path: "/auth-redirect", component: () => import("./authredirect-294d14ef.js"), hidden: !0 }, { path: "/404", component: () => import("./404-36d09e24.js"), hidden: !0 }, { path: "/401", component: () => import("./401-20f1c97c.js"), hidden: !0 }, { path: "/show-sub-wf-history", component: () => import("./tache-subprocess-history-56bf69ba.js"), hidden: !0 }, { path: "/tab-content-index", component: () => import("./tab-content-index-bd535c86.js"), hidden: !0 }, { path: "/tab-content-iframe-index", component: () => import("./tab-content-iframe-index-5d9d85c0.js"), hidden: !0 }], protectedRouterMap = [];
|
|
9954
9954
|
function filterProtectedRouter(n, o) {
|
|
9955
9955
|
const r = [], a = [];
|
|
9956
9956
|
return n.forEach((s) => {
|
|
@@ -10753,16 +10753,16 @@ function doFormatWithValueSet(n, o) {
|
|
|
10753
10753
|
return o;
|
|
10754
10754
|
const r = n.valueSet;
|
|
10755
10755
|
if (r !== void 0)
|
|
10756
|
-
if (n.componentType
|
|
10756
|
+
if (n.componentType !== "multiselect" || isDynamicDataSourceSource(n)) {
|
|
10757
|
+
const a = r.filter((s) => s.value === o + "");
|
|
10758
|
+
a.length > 0 && (o = a[0].label);
|
|
10759
|
+
} else {
|
|
10757
10760
|
typeof o == "number" && (o += "");
|
|
10758
10761
|
const a = (o + "").split(","), s = [];
|
|
10759
10762
|
a.forEach((l) => {
|
|
10760
10763
|
const d = r.filter((p) => p.value === l + "");
|
|
10761
10764
|
d.length > 0 && s.push(d[0].label);
|
|
10762
|
-
}),
|
|
10763
|
-
} else {
|
|
10764
|
-
const a = r.filter((s) => s.value === o + "");
|
|
10765
|
-
a.length > 0 && (o = a[0].label);
|
|
10765
|
+
}), o = s.join(",");
|
|
10766
10766
|
}
|
|
10767
10767
|
return o;
|
|
10768
10768
|
}
|
|
@@ -11005,11 +11005,6 @@ function getDynamicDataSourceOptions(n, o, r, a) {
|
|
|
11005
11005
|
return l;
|
|
11006
11006
|
}
|
|
11007
11007
|
function isDynamicDataSourceSource(n) {
|
|
11008
|
-
if (n.valueSetOptions) {
|
|
11009
|
-
const o = JSON.parse(n.valueSetOptions);
|
|
11010
|
-
if (o.type && o.type === "dynamicData" || o.dynamicDataSourceCode)
|
|
11011
|
-
return !0;
|
|
11012
|
-
}
|
|
11013
11008
|
return !!(n.valueSet && n.valueSet.length > 0 && n.valueSet[0].value === "dynamicDataSource");
|
|
11014
11009
|
}
|
|
11015
11010
|
function getLastPageNum(n, o) {
|
|
@@ -12795,19 +12790,15 @@ function _sfc_render$_(n, o, r, a, s, l) {
|
|
|
12795
12790
|
const d = resolveComponent("el-date-picker"), p = resolveComponent("el-time-picker"), v = resolveComponent("el-input"), w = resolveComponent("SuperIcon"), E = resolveComponent("fs-upload-list"), x = resolveComponent("multipart-upload"), D = resolveComponent("el-option"), O = resolveComponent("el-select"), M = resolveComponent("dynamic-source-select"), L = resolveComponent("el-input-number"), q = resolveComponent("el-switch"), G = resolveComponent("el-slider"), W = resolveComponent("el-rate"), Z = resolveComponent("organization-input"), X = resolveComponent("el-button"), J = resolveComponent("el-upload"), ue = resolveComponent("el-dialog"), re = resolveComponent("view-image-dialog"), ge = resolveComponent("scan-code-input-browser");
|
|
12796
12791
|
return r.type && r.type.indexOf("custom:") >= 0 && s.componentName != "" ? (openBlock(), createElementBlock("div", { key: 0, style: normalizeStyle(r.row.validateErrorField && r.row.validateErrorField === r.column.prop ? "border:1px solid red" : "") }, [(openBlock(), createBlock(resolveDynamicComponent(s.componentName), { ref: "customItem", disabled: r.disabled, entity: r.row, "grid-data": s.gridData, "page-grid-data": s.pageGridData, "additional-settings": s.controlConfig, parent: s.parentFormData, prop: r.column.prop, row: r.row, "row-index": r.position ? r.position.row : null, "select-options": r.options, value: s.innerValue, "additional-param-map": s.additionalParamMap, listCode: r.listCode, "component-id": s.componentId, "page-context": s.pageContext, onChange: o[0] || (o[0] = (oe) => l.cellEvent("change", oe)), onInput: o[1] || (o[1] = (oe) => l.cellEvent("input", oe)) }, null, 40, ["disabled", "entity", "grid-data", "page-grid-data", "additional-settings", "parent", "prop", "row", "row-index", "select-options", "value", "additional-param-map", "listCode", "component-id", "page-context"]))], 4)) : (openBlock(), createElementBlock("div", { key: 1, style: normalizeStyle(r.row.validateErrorField && r.row.validateErrorField === r.column.prop ? "border:1px solid red" : "") }, [r.type === "year" || r.type === "month" || r.type === "week" ? (openBlock(), createBlock(d, { key: 0, ref: "item", modelValue: s.innerValue, "onUpdate:modelValue": o[2] || (o[2] = (oe) => s.innerValue = oe), disabled: r.disabled, editable: !1, format: l.isFormat(), placeholder: n.$t("imatrixUIMessage.selectTime"), type: r.type, "value-format": l.isValueFormat(), style: { width: "100%" }, onBlur: o[3] || (o[3] = (oe) => l.cellEvent("blur", oe)), onChange: o[4] || (o[4] = (oe) => l.cellEvent("change", oe)), onFocus: o[5] || (o[5] = (oe) => l.cellEvent("focus", oe)), onInput: o[6] || (o[6] = (oe) => l.cellEvent("input", oe)) }, null, 8, ["modelValue", "disabled", "format", "placeholder", "type", "value-format"])) : r.type === "yearRange" ? (openBlock(), createBlock(d, { key: 1, ref: "item", modelValue: s.innerValue, "onUpdate:modelValue": o[7] || (o[7] = (oe) => s.innerValue = oe), disabled: r.disabled, editable: !1, placeholder: n.$t("imatrixUIMessage.selectYear"), style: { width: "100%" }, type: "year", "value-format": "YYYY", onBlur: o[8] || (o[8] = (oe) => l.cellEvent("blur", oe)), onChange: o[9] || (o[9] = (oe) => l.cellEvent("change", oe)), onFocus: o[10] || (o[10] = (oe) => l.cellEvent("focus", oe)), onInput: o[11] || (o[11] = (oe) => l.cellEvent("input", oe)) }, null, 8, ["modelValue", "disabled", "placeholder"])) : r.type === "dateTimePicker" ? (openBlock(), createBlock(d, { key: 2, ref: "item", modelValue: s.innerValue, "onUpdate:modelValue": o[12] || (o[12] = (oe) => s.innerValue = oe), disabled: r.disabled, editable: !1, format: l.isFormat(), placeholder: n.$t("imatrixUIMessage.selectTime"), "value-format": l.isValueFormat(), style: { width: "100%" }, type: "datetime", onBlur: o[13] || (o[13] = (oe) => l.cellEvent("blur", oe)), onChange: o[14] || (o[14] = (oe) => l.cellEvent("change", oe)), onFocus: o[15] || (o[15] = (oe) => l.cellEvent("focus", oe)), onInput: o[16] || (o[16] = (oe) => l.cellEvent("input", oe)) }, null, 8, ["modelValue", "disabled", "format", "placeholder", "value-format"])) : r.type === "date" ? (openBlock(), createBlock(d, { key: 3, ref: "item", modelValue: s.innerValue, "onUpdate:modelValue": o[17] || (o[17] = (oe) => s.innerValue = oe), disabled: r.disabled, editable: !1, format: l.isFormat(), "picker-options": s.pickerOptions, placeholder: n.$t("imatrixUIMessage.selectionDate"), "value-format": l.isValueFormat(), style: { width: "100%" }, type: "date", onBlur: o[18] || (o[18] = (oe) => l.cellEvent("blur", oe)), onChange: o[19] || (o[19] = (oe) => l.cellEvent("change", oe)), onFocus: o[20] || (o[20] = (oe) => l.cellEvent("focus", oe)), onInput: o[21] || (o[21] = (oe) => l.cellEvent("input", oe)) }, null, 8, ["modelValue", "disabled", "format", "picker-options", "placeholder", "value-format"])) : r.type === "timePicker" || r.type === "input" && r.column.dataType === "TIME" ? (openBlock(), createBlock(p, { key: 4, ref: "item", modelValue: s.innerValue, "onUpdate:modelValue": o[22] || (o[22] = (oe) => s.innerValue = oe), disabled: r.disabled, format: l.isFormat(), placeholder: n.$t("imatrixUIMessage.pleaseEnterATimePoint"), "value-format": l.isValueFormat(), style: { width: "100%" }, onBlur: o[23] || (o[23] = (oe) => l.cellEvent("blur", oe)), onChange: o[24] || (o[24] = (oe) => l.cellEvent("change", oe)), onFocus: o[25] || (o[25] = (oe) => l.cellEvent("focus", oe)), onInput: o[26] || (o[26] = (oe) => l.cellEvent("input", oe)) }, null, 8, ["modelValue", "disabled", "format", "placeholder", "value-format"])) : r.type === "time" ? (openBlock(), createBlock(d, { key: 5, ref: "item", modelValue: s.innerValue, "onUpdate:modelValue": o[27] || (o[27] = (oe) => s.innerValue = oe), disabled: r.disabled, editable: !1, format: l.isFormat(), placeholder: n.$t("imatrixUIMessage.selectTime"), "value-format": l.isValueFormat(), style: { width: "100%" }, type: "datetime", onBlur: o[28] || (o[28] = (oe) => l.cellEvent("blur", oe)), onChange: o[29] || (o[29] = (oe) => l.cellEvent("change", oe)), onFocus: o[30] || (o[30] = (oe) => l.cellEvent("focus", oe)), onInput: o[31] || (o[31] = (oe) => l.cellEvent("input", oe)) }, null, 8, ["modelValue", "disabled", "format", "placeholder", "value-format"])) : r.column.dataType === "DATE" ? (openBlock(), createBlock(d, { key: 6, ref: "item", modelValue: s.innerValue, "onUpdate:modelValue": o[32] || (o[32] = (oe) => s.innerValue = oe), disabled: r.disabled, editable: !1, format: l.isFormat(), "picker-options": s.pickerOptions, placeholder: n.$t("imatrixUIMessage.selectionDate"), "value-format": l.isValueFormat(), style: { width: "100%" }, type: "date", onBlur: o[33] || (o[33] = (oe) => l.cellEvent("blur", oe)), onChange: o[34] || (o[34] = (oe) => l.cellEvent("change", oe)), onFocus: o[35] || (o[35] = (oe) => l.cellEvent("focus", oe)), onInput: o[36] || (o[36] = (oe) => l.cellEvent("input", oe)) }, null, 8, ["modelValue", "disabled", "format", "picker-options", "placeholder", "value-format"])) : r.type !== "input" || r.column.dataType !== "INTEGER" && r.column.dataType !== "LONG" ? r.type === "input" ? (openBlock(), createBlock(v, { key: 8, ref: "item", disabled: r.disabled, maxlength: s.controlConfig && s.controlConfig.maxlength ? s.controlConfig.maxlength : "", minlength: s.controlConfig && s.controlConfig.minlength ? s.controlConfig.minlength : "", placeholder: n.$t("imatrixUIMessage.pleaseEnterContent"), title: s.innerValue, clearable: "", modelValue: s.innerValue, "onUpdate:modelValue": o[48] || (o[48] = (oe) => s.innerValue = oe), onBlur: o[49] || (o[49] = (oe) => l.cellEvent("blur", oe)), onChange: o[50] || (o[50] = (oe) => l.cellEvent("change", oe)), onClear: o[51] || (o[51] = (oe) => l.cellEvent("clear", oe)), onFocus: o[52] || (o[52] = (oe) => l.cellEvent("focus", oe)), onInput: o[53] || (o[53] = (oe) => l.cellEvent("input", oe, !0)) }, createSlots({ _: 2 }, [s.designProperty.iconPosition != "outer" && (s.designProperty.preIconType && s.designProperty.preIconValue || s.designProperty.preText) ? { name: "prefix", fn: withCtx(() => [s.designProperty.preIconType && s.designProperty.preIconValue ? (openBlock(), createBlock(w, { key: 0, iconType: s.designProperty.preIconType, iconValue: s.designProperty.preIconValue, onClick: o[43] || (o[43] = (oe) => l.doClickwithJumpPage("prefixClick")) }, null, 8, ["iconType", "iconValue"])) : createCommentVNode("", !0), s.designProperty.preText ? (openBlock(), createElementBlock("span", _hoisted_1$14, toDisplayString$1(n.$t(s.designProperty.preText)), 1)) : createCommentVNode("", !0)]), key: "0" } : void 0, s.designProperty.iconPosition == "outer" && (s.designProperty.preIconType && s.designProperty.preIconValue || s.designProperty.preText) ? { name: "prepend", fn: withCtx(() => [s.designProperty.preIconType && s.designProperty.preIconValue ? (openBlock(), createBlock(w, { key: 0, iconType: s.designProperty.preIconType, iconValue: s.designProperty.preIconValue, onClick: o[44] || (o[44] = (oe) => l.doClickwithJumpPage("prefixClick")) }, null, 8, ["iconType", "iconValue"])) : createCommentVNode("", !0), s.designProperty.preText ? (openBlock(), createElementBlock("span", _hoisted_2$G, toDisplayString$1(n.$t(s.designProperty.preText)), 1)) : createCommentVNode("", !0)]), key: "1" } : void 0, s.designProperty.iconPosition != "outer" && (s.designProperty.sufIconType && s.designProperty.sufIconValue || s.designProperty.sufText) ? { name: "suffix", fn: withCtx(() => [s.designProperty.sufIconType && s.designProperty.sufIconValue ? (openBlock(), createBlock(w, { key: 0, iconType: s.designProperty.sufIconType, iconValue: s.designProperty.sufIconValue, onClick: o[45] || (o[45] = (oe) => l.doClickwithJumpPage("suffixClick")) }, null, 8, ["iconType", "iconValue"])) : createCommentVNode("", !0), s.designProperty.sufText ? (openBlock(), createElementBlock("span", _hoisted_3$v, toDisplayString$1(n.$t(s.designProperty.sufText)), 1)) : createCommentVNode("", !0)]), key: "2" } : void 0, s.isShowScanIcon || s.designProperty.iconPosition == "outer" && (s.designProperty.sufIconType && s.designProperty.sufIconValue || s.designProperty.sufText) ? { name: "append", fn: withCtx(() => [s.isShowScanIcon ? (openBlock(), createBlock(w, { key: 0, iconValue: "fa-barcode", onClick: o[46] || (o[46] = (oe) => l.scanClick()) })) : createCommentVNode("", !0), s.designProperty.sufIconType && s.designProperty.sufIconValue ? (openBlock(), createBlock(w, { key: 1, iconType: s.designProperty.sufIconType, iconValue: s.designProperty.sufIconValue, onClick: o[47] || (o[47] = (oe) => l.doClickwithJumpPage("suffixClick")) }, null, 8, ["iconType", "iconValue"])) : createCommentVNode("", !0), s.designProperty.sufText ? (openBlock(), createElementBlock("span", _hoisted_4$m, toDisplayString$1(n.$t(s.designProperty.sufText)), 1)) : createCommentVNode("", !0)]), key: "3" } : void 0]), 1032, ["disabled", "maxlength", "minlength", "placeholder", "title", "modelValue"])) : r.type === "textarea" ? (openBlock(), createBlock(v, { key: 9, ref: "item", modelValue: s.innerValue, "onUpdate:modelValue": o[54] || (o[54] = (oe) => s.innerValue = oe), disabled: r.disabled, maxlength: s.controlConfig && s.controlConfig.maxlength ? s.controlConfig.maxlength : "", minlength: s.controlConfig && s.controlConfig.minlength ? s.controlConfig.minlength : "", placeholder: n.$t("imatrixUIMessage.pleaseEnterContent"), rows: 1, title: s.innerValue, clearable: "", type: "textarea", onBlur: o[55] || (o[55] = (oe) => l.cellEvent("blur", oe)), onChange: o[56] || (o[56] = (oe) => l.cellEvent("change", oe)), onClear: o[57] || (o[57] = (oe) => l.cellEvent("clear", oe)), onFocus: o[58] || (o[58] = (oe) => l.cellEvent("focus", oe)), onInput: o[59] || (o[59] = (oe) => l.cellEvent("input", oe)) }, null, 8, ["modelValue", "disabled", "maxlength", "minlength", "placeholder", "title"])) : r.type === "annex" ? (openBlock(), createBlock(E, { key: 10, ref: "fileUploadRef", "custom-view-url": !0, disabled: r.disabled, "file-info": s.fileInfo, "file-list": s.fileList, "file-set-obj": s.fileSetObj, "is-sql": r.isSql, row: r.row, value: s.innerValue, "page-context": s.pageContext, "list-code": r.listCode, componentId: s.componentId, onDelete: l.deleteFile, onDeleteSuccess: l.deleteSuccess, onUploadSuccess: l.uploadOnSuccess }, null, 8, ["disabled", "file-info", "file-list", "file-set-obj", "is-sql", "row", "value", "page-context", "list-code", "componentId", "onDelete", "onDeleteSuccess", "onUploadSuccess"])) : r.type === "multipartUpload" ? (openBlock(), createBlock(x, { key: 11, disabled: r.disabled, entity: r.row, "file-info": s.fileInfo, "file-list": s.fileList, "file-set-obj": s.fileSetObj, value: s.innerValue, type: "list", onDelete: l.deleteFile, onDeleteSuccess: l.deleteSuccess, onUploadSuccess: l.uploadOnSuccess }, null, 8, ["disabled", "entity", "file-info", "file-list", "file-set-obj", "value", "onDelete", "onDeleteSuccess", "onUploadSuccess"])) : r.type !== "select" || l.isDynamicDataSourceSource() ? r.type !== "multiselect" || l.isDynamicDataSourceSource() ? r.type !== "multiselect" && r.type !== "select" || !l.isDynamicDataSourceSource() ? r.type === "inputNumber" ? (openBlock(), createBlock(L, { key: 15, ref: "item", modelValue: s.innerValue, "onUpdate:modelValue": o[81] || (o[81] = (oe) => s.innerValue = oe), "controls-position": s.inputNumberSet.position, disabled: r.disabled, max: s.inputNumberSet.max == 0 ? 0 : s.inputNumberSet.max ? s.inputNumberSet.max : 1 / 0, min: s.inputNumberSet.min == 0 ? 0 : s.inputNumberSet.min ? s.inputNumberSet.min : -1 / 0, precision: s.inputNumberSet.precision, step: s.inputNumberSet.step ? s.inputNumberSet.step : 1, onBlur: o[82] || (o[82] = (oe) => l.cellEvent("blur", oe)), onChange: o[83] || (o[83] = (oe) => l.cellEvent("change", oe)), onFocus: o[84] || (o[84] = (oe) => l.cellEvent("focus", oe)), onInput: o[85] || (o[85] = (oe) => l.cellEvent("input", oe)) }, null, 8, ["modelValue", "controls-position", "disabled", "max", "min", "precision", "step"])) : r.type === "switch" || r.column.dataType === "BOOLEAN" ? (openBlock(), createBlock(q, { key: 16, ref: "item", modelValue: s.innerValue, "onUpdate:modelValue": o[86] || (o[86] = (oe) => s.innerValue = oe), "active-text": l.getSwitchConfig("activeText"), "active-value": l.getSwitchConfig("activeValue"), disabled: r.disabled, "inactive-text": l.getSwitchConfig("inactiveText"), "inactive-value": l.getSwitchConfig("inactiveValue"), onChange: o[87] || (o[87] = (oe) => l.cellEvent("change", oe)), onInput: o[88] || (o[88] = (oe) => l.cellEvent("input", oe, !0)) }, null, 8, ["modelValue", "active-text", "active-value", "disabled", "inactive-text", "inactive-value"])) : r.type === "slider" ? (openBlock(), createBlock(G, { key: 17, ref: "item", modelValue: s.innerValue, "onUpdate:modelValue": o[89] || (o[89] = (oe) => s.innerValue = oe), disabled: r.disabled, onChange: o[90] || (o[90] = (oe) => l.cellEvent("change", oe)), onInput: o[91] || (o[91] = (oe) => l.cellEvent("input", oe, !0)) }, null, 8, ["modelValue", "disabled"])) : r.type === "rate" ? (openBlock(), createBlock(W, { key: 18, ref: "item", modelValue: s.innerValue, "onUpdate:modelValue": o[92] || (o[92] = (oe) => s.innerValue = oe), disabled: r.disabled, onChange: o[93] || (o[93] = (oe) => l.cellEvent("change", oe)), onInput: o[94] || (o[94] = (oe) => l.cellEvent("input", oe, !0)) }, null, 8, ["modelValue", "disabled"])) : s.deptManTree || s.deptTree || s.wgManTree || s.wgTree ? (openBlock(), createBlock(Z, { key: 19, "check-strictly": s.isCheckStrictly, "department-info": s.departmentInfo, disabled: r.disabled, fields: s.fields, "is-join-table": s.isJoinTable, models: r.row, multiple: s.isMultiTree, "table-name": s.tableName, "tree-type": s.deptManTree ? "DeptUserTree" : s.deptTree ? "DeptTree" : s.wgManTree ? "WgTree" : s.wgTree ? "WgUserTree" : null, value: s.innerValue, onAppend: l.appendOrganizationInputEvent, onClear: l.clearOrganizationInputEvent, onFocus: l.showOrganizationTree, onReplace: l.replaceOrganizationInputEvent, onSetValue: l.organizationInputEvent }, null, 8, ["check-strictly", "department-info", "disabled", "fields", "is-join-table", "models", "multiple", "table-name", "tree-type", "value", "onAppend", "onClear", "onFocus", "onReplace", "onSetValue"])) : createCommentVNode("", !0) : (openBlock(), createBlock(M, { key: 14, value: s.innerValue, "onUpdate:value": o[74] || (o[74] = (oe) => s.innerValue = oe), "base-props": { multiple: r.type === "multiselect", disabled: r.disabled }, column: r.column, entity: r.row, "is-join-table": s.isJoinTable, "list-code": r.listCode, "list-toolbar-form-data": r.listToolbarFormData, options: { dynamicDataSourceCode: s.dynamicDataSourceCode, valueSetOptions: s.valueSetOptions, isSql: r.isSql, backendUrl: s.baseURL, additionalParameter: s.additionalParamMap ? JSON.stringify(s.additionalParamMap) : null }, parent: s.parentFormData, "table-name": s.tableName, onBlur: o[75] || (o[75] = (oe) => l.cellEvent("blur", oe)), onChange: l.multiselectChange, onClear: o[76] || (o[76] = (oe) => l.cellEvent("clear", oe)), onFocus: o[77] || (o[77] = (oe) => l.cellEvent("focus", oe)), onInput: o[78] || (o[78] = (oe) => l.cellEvent("input", oe)), onVisibleChange: o[79] || (o[79] = (oe) => l.cellEvent("visible-change", oe)), onRemoveTag: o[80] || (o[80] = (oe) => l.cellEvent("remove-tag", oe)), onSetValue: l.setDynamicSourceSelectValue }, null, 8, ["value", "base-props", "column", "entity", "is-join-table", "list-code", "list-toolbar-form-data", "options", "parent", "table-name", "onChange", "onSetValue"])) : (openBlock(), createBlock(O, { key: 13, ref: "item", modelValue: s.innerValue, "onUpdate:modelValue": o[67] || (o[67] = (oe) => s.innerValue = oe), disabled: r.disabled, placeholder: n.$t("imatrixUIMessage.pleaseSelect"), title: l.getClassOptionTitle(s.innerValue), clearable: "", "collapse-tags": "", multiple: "", onBlur: o[68] || (o[68] = (oe) => l.cellEvent("blur", oe)), onChange: l.multiselectChange, onClear: o[69] || (o[69] = (oe) => l.cellEvent("clear", oe)), onFocus: o[70] || (o[70] = (oe) => l.cellEvent("focus", oe)), onInput: o[71] || (o[71] = (oe) => l.cellEvent("input", oe)), onVisibleChange: o[72] || (o[72] = (oe) => l.cellEvent("visible-change", oe)), onRemoveTag: o[73] || (o[73] = (oe) => l.cellEvent("remove-tag", oe)) }, { default: withCtx(() => [createVNode(D, { label: n.$t("superGrid.selectAll"), value: "saveAll" }, null, 8, ["label"]), (openBlock(!0), createElementBlock(Fragment, null, renderList(r.options, (oe) => (openBlock(), createBlock(D, { key: oe.value, label: oe.label, value: oe.value }, null, 8, ["label", "value"]))), 128))]), _: 1 }, 8, ["modelValue", "disabled", "placeholder", "title", "onChange"])) : (openBlock(), createBlock(O, { key: 12, ref: "item", modelValue: s.innerValue, "onUpdate:modelValue": o[60] || (o[60] = (oe) => s.innerValue = oe), "allow-create": !!s.controlConfig.allowCreate, clearable: !!s.controlConfig.clearable, "default-first-option": !!s.controlConfig.allowCreate, disabled: r.disabled, filterable: !!s.controlConfig.filterable, placeholder: n.$t("imatrixUIMessage.pleaseSelect"), title: l.getClassOptionTitle(s.innerValue), onBlur: o[61] || (o[61] = (oe) => l.cellEvent("blur", oe)), onChange: o[62] || (o[62] = (oe) => l.cellEvent("change", oe)), onClear: o[63] || (o[63] = (oe) => l.cellEvent("clear", oe)), onFocus: o[64] || (o[64] = (oe) => l.cellEvent("focus", oe)), onInput: o[65] || (o[65] = (oe) => l.cellEvent("input", oe)), onVisibleChange: o[66] || (o[66] = (oe) => l.cellEvent("visible-change", oe)) }, { default: withCtx(() => [(openBlock(!0), createElementBlock(Fragment, null, renderList(r.options, (oe) => (openBlock(), createBlock(D, { key: oe.value, label: oe.label, value: oe.value }, null, 8, ["label", "value"]))), 128))]), _: 1 }, 8, ["modelValue", "allow-create", "clearable", "default-first-option", "disabled", "filterable", "placeholder", "title"])) : (openBlock(), createBlock(v, { key: 7, ref: "item", modelValue: s.innerValue, "onUpdate:modelValue": o[37] || (o[37] = (oe) => s.innerValue = oe), modelModifiers: { number: !0 }, disabled: r.disabled, placeholder: n.$t("imatrixUIMessage.pleaseEnterContent"), title: s.innerValue, type: r.column.dataType === "INTEGER" || r.column.dataType === "LONG" ? "number" : "text", clearable: "", onBlur: o[38] || (o[38] = (oe) => l.cellEvent("blur", oe)), onChange: o[39] || (o[39] = (oe) => l.cellEvent("change", oe)), onClear: o[40] || (o[40] = (oe) => l.cellEvent("clear", oe)), onFocus: o[41] || (o[41] = (oe) => l.cellEvent("focus", oe)), onInput: o[42] || (o[42] = (oe) => l.cellEvent("input", oe, !0)) }, null, 8, ["modelValue", "disabled", "placeholder", "title", "type"])), createVNode(ue, { "append-to-body": !0, "show-close": !0, title: n.$t("imatrixUIMessage.tips"), visible: s.annexUploadFlag, width: "30%" }, { default: withCtx(() => [r.type === "annex" && s.annexUploadFlag ? (openBlock(), createBlock(J, { key: 0, accept: s.fileSetObj && s.fileSetObj.accept ? s.fileSetObj.accept : null, action: s.defaultAction, "before-upload": l.handleBeforeUpload, headers: s.headers, "on-success": l.uploadOnSuccess, "with-credentials": !0, name: "file" }, { default: withCtx(() => [createVNode(X, null, { default: withCtx(() => [createTextVNode(toDisplayString$1(n.$t("imatrixUIMessage.upload")), 1)]), _: 1 })]), _: 1 }, 8, ["accept", "action", "before-upload", "headers", "on-success"])) : createCommentVNode("", !0)]), _: 1 }, 8, ["title", "visible"]), s.showSingleImgFlag ? (openBlock(), createBlock(re, { key: 20, deleteable: !r.disabled, downloadable: !r.disabled, "file-list": s.fileList, onClose: o[95] || (o[95] = (oe) => s.showSingleImgFlag = !1), onDelete: l.deleteFile }, null, 8, ["deleteable", "downloadable", "file-list", "onDelete"])) : createCommentVNode("", !0), s.isShowBrowserScan ? (openBlock(), createBlock(ge, { key: 21, onClose: l.closeBrowserScan }, null, 8, ["onClose"])) : createCommentVNode("", !0)], 4));
|
|
12797
12792
|
}
|
|
12798
|
-
const DynamicInput = _export_sfc(_sfc_main$1o, [["render", _sfc_render$_]]),
|
|
12799
|
-
} }, entity: { type: Object, default: null }, column: { type: Object, default: null }, rowIndex: { type: Number, default: null }, label: { type: String, default: null },
|
|
12800
|
-
|
|
12801
|
-
return ["lineEditSave", "saveRow"].includes((n = this.operation) == null ? void 0 : n.eventName);
|
|
12793
|
+
const DynamicInput = _export_sfc(_sfc_main$1o, [["render", _sfc_render$_]]), rowOperation_vue_vue_type_style_index_0_scoped_5be2372b_lang = "", _sfc_main$1n = { name: "RowOperation", components: { superIcon: _sfc_main$1J }, props: { editing: { type: Boolean, default: !1 }, isTableBtnLink: { type: [Boolean], default: !1 }, isShow: { type: [Boolean, Function], default: !0 }, onClick: { type: Function, default: function() {
|
|
12794
|
+
} }, entity: { type: Object, default: null }, column: { type: Object, default: null }, rowIndex: { type: Number, default: null }, label: { type: String, default: null }, operationSetting: { type: Object, default: null }, operationIndex: { type: Number, default: null }, listCode: { type: String, default: null }, parentFormData: { type: Object, default: null } }, data: () => ({ elementType: "el-button", myStyle: null }), computed: { ...mapGetters(["preventReclick"]), isSaveRow() {
|
|
12795
|
+
return /^\s*function\s+saveRow*\s*\(/.test(this.onClick ?? "");
|
|
12802
12796
|
}, isDeleteRow() {
|
|
12803
|
-
|
|
12804
|
-
return ["lineEditDelete", "deleteRow"].includes((n = this.operation) == null ? void 0 : n.eventName);
|
|
12797
|
+
return /^\s*function\s+deleteRow*\s*\(/.test(this.onClick ?? "");
|
|
12805
12798
|
}, isEditRow() {
|
|
12806
|
-
|
|
12807
|
-
return ["lineEditUpdate", "editRow"].includes((n = this.operation) == null ? void 0 : n.eventName);
|
|
12799
|
+
return /^\s*function\s+editRow*\s*\(/.test(this.onClick ?? "");
|
|
12808
12800
|
}, isRestoreRow() {
|
|
12809
|
-
|
|
12810
|
-
return ["restoreEdit", "restoreRow"].includes((n = this.operation) == null ? void 0 : n.eventName);
|
|
12801
|
+
return /^\s*function\s+restoreRow*\s*\(/.test(this.onClick ?? "");
|
|
12811
12802
|
}, prefixIcon() {
|
|
12812
12803
|
if (!this.suffixIcon) {
|
|
12813
12804
|
if (["left", !0, ""].includes(this.operationSettingData.iconPosition) || this.operationSetting.iconValue) {
|
|
@@ -12835,20 +12826,19 @@ const DynamicInput = _export_sfc(_sfc_main$1o, [["render", _sfc_render$_]]), row
|
|
|
12835
12826
|
}
|
|
12836
12827
|
}
|
|
12837
12828
|
}, suffixIcon() {
|
|
12838
|
-
if (["right"].includes(this.
|
|
12829
|
+
if (["right"].includes(this.operationSettingData.iconPosition))
|
|
12839
12830
|
return this.operationSetting.iconValue;
|
|
12840
12831
|
}, isTextIcon() {
|
|
12841
|
-
return !!this.isTableBtnLinkShow && (this.
|
|
12832
|
+
return !!this.isTableBtnLinkShow && (this.operationSettingData.isTextIcon === void 0 ? this.isSaveRow || this.isDeleteRow || this.isEditRow || this.isRestoreRow : this.operationSettingData.isTextIcon);
|
|
12842
12833
|
}, labelText() {
|
|
12843
12834
|
if (!this.isTextIcon)
|
|
12844
12835
|
return this.label || void 0;
|
|
12845
12836
|
}, tooltipDisabled() {
|
|
12846
12837
|
return !this.isTextIcon || !this.label;
|
|
12847
12838
|
}, isTableBtnLinkShow() {
|
|
12848
|
-
|
|
12849
|
-
return !!((n = this.operationSetting) != null && n.text) || !(!this.isTableBtnLink || this.elementType !== "el-button") && [(o = this.operationSetting) == null ? void 0 : o.text, (r = this.operationSetting) == null ? void 0 : r.plain, (a = this.operationSetting) == null ? void 0 : a.round].every((s) => s === void 0);
|
|
12839
|
+
return !!this.operationSetting.text || !(!this.isTableBtnLink || this.elementType !== "el-button") && [this.operationSetting.text, this.operationSetting.plain, this.operationSetting.round].every((n) => n === void 0);
|
|
12850
12840
|
}, operationSettingData() {
|
|
12851
|
-
const n = { ...this.operationSetting
|
|
12841
|
+
const n = { ...this.operationSetting };
|
|
12852
12842
|
return this.isTableBtnLinkShow && (n.underline = !1, delete n.text), this.tooltipDisabled || delete n.title, n;
|
|
12853
12843
|
}, isElementType() {
|
|
12854
12844
|
return this.isTableBtnLinkShow ? "el-link" : this.elementType;
|
|
@@ -12877,12 +12867,9 @@ const DynamicInput = _export_sfc(_sfc_main$1o, [["render", _sfc_render$_]]), row
|
|
|
12877
12867
|
} } };
|
|
12878
12868
|
function _sfc_render$Z(n, o, r, a, s, l) {
|
|
12879
12869
|
const d = resolveComponent("superIcon"), p = resolveComponent("el-tooltip"), v = resolveDirective("permission");
|
|
12880
|
-
return openBlock(), createElementBlock("span", {
|
|
12881
|
-
var w;
|
|
12882
|
-
return [(w = l.operationSettingData) != null && w.permission ? withDirectives((openBlock(), createBlock(resolveDynamicComponent(l.isElementType), mergeProps({ key: 0 }, l.operationSettingData, { disabled: n.preventReclick, onMousedown: o[0] || (o[0] = (E) => l.onClickFun(l.operationSettingData)) }), { default: withCtx(() => [l.prefixIcon ? (openBlock(), createBlock(d, { key: 0, iconValue: l.prefixIcon, class: normalizeClass([{ "is-text-labl": !!l.labelText }, "prefix-btn-icon"]) }, null, 8, ["iconValue", "class"])) : createCommentVNode("", !0), createTextVNode(" " + toDisplayString$1(l.labelText) + " ", 1), l.suffixIcon ? (openBlock(), createBlock(d, { key: 1, iconValue: l.suffixIcon, class: normalizeClass([{ "is-text-labl": !!l.labelText }, "suffix-btn-icon"]) }, null, 8, ["iconValue", "class"])) : createCommentVNode("", !0)]), _: 1 }, 16, ["disabled"])), [[v, l.operationSettingData.permission]]) : (openBlock(), createBlock(resolveDynamicComponent(l.isElementType), mergeProps({ key: 1 }, l.operationSettingData, { disabled: n.preventReclick, onMousedown: o[1] || (o[1] = (E) => l.onClickFun(l.operationSettingData)) }), { default: withCtx(() => [l.prefixIcon ? (openBlock(), createBlock(d, { key: 0, iconValue: l.prefixIcon, class: normalizeClass([{ "is-text-labl": !!l.labelText }, "prefix-btn-icon"]) }, null, 8, ["iconValue", "class"])) : createCommentVNode("", !0), createTextVNode(" " + toDisplayString$1(l.labelText) + " ", 1), l.suffixIcon ? (openBlock(), createBlock(d, { key: 1, iconValue: l.suffixIcon, class: normalizeClass([{ "is-text-labl": !!l.labelText }, "suffix-btn-icon"]) }, null, 8, ["iconValue", "class"])) : createCommentVNode("", !0)]), _: 1 }, 16, ["disabled"]))];
|
|
12883
|
-
}), _: 1 }, 8, ["disabled", "content"])) : createCommentVNode("", !0)], 4);
|
|
12870
|
+
return openBlock(), createElementBlock("span", { style: normalizeStyle(s.myStyle) }, [l.isShowButton() ? (openBlock(), createBlock(p, { key: 0, disabled: l.tooltipDisabled, content: r.label, placement: "top" }, { default: withCtx(() => [l.operationSettingData.permission ? withDirectives((openBlock(), createBlock(resolveDynamicComponent(l.isElementType), mergeProps({ key: 0 }, l.operationSettingData, { disabled: n.preventReclick, onMousedown: o[0] || (o[0] = (w) => l.onClickFun(l.operationSettingData)) }), { default: withCtx(() => [l.prefixIcon ? (openBlock(), createBlock(d, { key: 0, iconValue: l.prefixIcon, class: normalizeClass([{ "is-text-labl": !!l.labelText }, "prefix-btn-icon"]) }, null, 8, ["iconValue", "class"])) : createCommentVNode("", !0), createTextVNode(" " + toDisplayString$1(l.labelText) + " ", 1), l.suffixIcon ? (openBlock(), createBlock(d, { key: 1, iconValue: l.suffixIcon, class: normalizeClass([{ "is-text-labl": !!l.labelText }, "suffix-btn-icon"]) }, null, 8, ["iconValue", "class"])) : createCommentVNode("", !0)]), _: 1 }, 16, ["disabled"])), [[v, l.operationSettingData.permission]]) : (openBlock(), createBlock(resolveDynamicComponent(l.isElementType), mergeProps({ key: 1 }, l.operationSettingData, { disabled: n.preventReclick, onMousedown: o[1] || (o[1] = (w) => l.onClickFun(l.operationSettingData)) }), { default: withCtx(() => [l.prefixIcon ? (openBlock(), createBlock(d, { key: 0, iconValue: l.prefixIcon, class: normalizeClass([{ "is-text-labl": !!l.labelText }, "prefix-btn-icon"]) }, null, 8, ["iconValue", "class"])) : createCommentVNode("", !0), createTextVNode(" " + toDisplayString$1(l.labelText) + " ", 1), l.suffixIcon ? (openBlock(), createBlock(d, { key: 1, iconValue: l.suffixIcon, class: normalizeClass([{ "is-text-labl": !!l.labelText }, "suffix-btn-icon"]) }, null, 8, ["iconValue", "class"])) : createCommentVNode("", !0)]), _: 1 }, 16, ["disabled"]))]), _: 1 }, 8, ["disabled", "content"])) : createCommentVNode("", !0)], 4);
|
|
12884
12871
|
}
|
|
12885
|
-
const RowOperation = _export_sfc(_sfc_main$1n, [["render", _sfc_render$Z], ["__scopeId", "data-v-
|
|
12872
|
+
const RowOperation = _export_sfc(_sfc_main$1n, [["render", _sfc_render$Z], ["__scopeId", "data-v-5be2372b"]]), version$1 = "3.7.7", VERSION = version$1, _hasBuffer = typeof Buffer == "function", _TD = typeof TextDecoder == "function" ? new TextDecoder() : void 0, _TE = typeof TextEncoder == "function" ? new TextEncoder() : void 0, b64ch = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=", b64chs = Array.prototype.slice.call(b64ch), b64tab = ((n) => {
|
|
12886
12873
|
let o = {};
|
|
12887
12874
|
return b64chs.forEach((r, a) => o[r] = a), o;
|
|
12888
12875
|
})(), b64re = /^(?:[A-Za-z\d+\/]{4})*?(?:[A-Za-z\d+\/]{2}(?:==)?|[A-Za-z\d+\/]{3}=?)?$/, _fromCC = String.fromCharCode.bind(String), _U8Afrom = typeof Uint8Array.from == "function" ? Uint8Array.from.bind(Uint8Array) : (n) => new Uint8Array(Array.prototype.slice.call(n, 0)), _mkUriSafe = (n) => n.replace(/=/g, "").replace(/[+\/]/g, (o) => o == "+" ? "-" : "_"), _tidyB64 = (n) => n.replace(/[^A-Za-z0-9\+\/]/g, ""), btoaPolyfill = (n) => {
|
|
@@ -13083,7 +13070,7 @@ function _sfc_render$W(n, o, r, a, s, l) {
|
|
|
13083
13070
|
const d = resolveComponent("el-tag");
|
|
13084
13071
|
return openBlock(), createElementBlock("span", null, [s.formatConfig.isTag ? (openBlock(), createElementBlock("span", _hoisted_1$11, [s.displayText ? (openBlock(), createBlock(d, { key: 0, type: s.customStyle.type, color: s.customStyle.color, effect: s.formatConfig.effect, size: s.formatConfig.size, hit: s.formatConfig.hit }, { default: withCtx(() => [createTextVNode(toDisplayString$1(s.displayText), 1)]), _: 1 }, 8, ["type", "color", "effect", "size", "hit"])) : createCommentVNode("", !0)])) : (openBlock(), createElementBlock("span", { key: 1, style: normalizeStyle(s.customStyle) }, [s.formatConfig.position === "pre" ? (openBlock(), createElementBlock("i", { key: 0, class: normalizeClass(s.formatConfig.icon) }, null, 2)) : createCommentVNode("", !0), s.formatConfig.displayTextJudge ? (openBlock(), createElementBlock("span", _hoisted_2$E, toDisplayString$1(s.displayText), 1)) : createCommentVNode("", !0), s.formatConfig.position === "suf" ? (openBlock(), createElementBlock("i", { key: 2, class: normalizeClass(s.formatConfig.icon) }, null, 2)) : createCommentVNode("", !0)], 4))]);
|
|
13085
13072
|
}
|
|
13086
|
-
const GridIcon = _export_sfc(_sfc_main$1k, [["render", _sfc_render$W]]),
|
|
13073
|
+
const GridIcon = _export_sfc(_sfc_main$1k, [["render", _sfc_render$W]]), normalColumnContent_vue_vue_type_style_index_0_scoped_794407b6_lang = "", _sfc_main$1j = { components: { DynamicInput, RowOperation, ViewImageDialog, FsPreview, RichEditorViewer, CirclePlus: circle_plus_default, ElIconZoomIn: zoom_in_default, GridIcon }, name: "NormalColumnContent", props: { isContentViewText: { type: Boolean, default: !1 }, column: { type: Object, default: null }, customFormat: { type: Function, default: null }, listCode: { type: String, default: null }, isSql: { type: Boolean, default: !1 }, newWidth: { type: Number, default: null }, dragColumnProp: { type: String, default: null }, tableName: { type: String, default: null }, pageCode: { type: String, default: null }, listName: { type: String, default: null }, currentPage: { type: Number, default: 1 }, gridData: { type: Array, default: null }, pageGridData: { type: Array, default: null }, listToolbarFormData: { type: Object, default: null }, row: { type: Object, default: null }, rowIndex: { type: Number, default: null }, isShowForm: { type: Boolean, default: !1 } }, data() {
|
|
13087
13074
|
let n;
|
|
13088
13075
|
const o = store$1.get(this.listCode), r = o.options;
|
|
13089
13076
|
o.options.extraParam && o.options.extraParam.entityMap && (n = o.options.extraParam.entityMap);
|
|
@@ -13105,7 +13092,7 @@ const GridIcon = _export_sfc(_sfc_main$1k, [["render", _sfc_render$W]]), normalC
|
|
|
13105
13092
|
return `${this.$rowGuId}_${this.column.prop}`;
|
|
13106
13093
|
}, isEditing() {
|
|
13107
13094
|
try {
|
|
13108
|
-
return this.
|
|
13095
|
+
return this.hasEditPermission ? !!store$3.getters.isEditing(this.$rowColumnDataGuId) || (!this.isFormSubTable && this.row.$editing ? !store$3.getters.isRowEditing(this.$rowGuId) : this.row.$editing) : void 0;
|
|
13109
13096
|
} catch {
|
|
13110
13097
|
return !1;
|
|
13111
13098
|
}
|
|
@@ -13349,21 +13336,13 @@ const GridIcon = _export_sfc(_sfc_main$1k, [["render", _sfc_render$W]]), normalC
|
|
|
13349
13336
|
o(d === void 0 || d === !0);
|
|
13350
13337
|
}) : (l !== void 0 && l !== !0 || o(!0), o(!1));
|
|
13351
13338
|
});
|
|
13352
|
-
}, validateEditConditions() {
|
|
13353
|
-
var n;
|
|
13354
|
-
if (this.controlConfig && ((n = this.controlConfig.editConditions) == null ? void 0 : n.length) > 0) {
|
|
13355
|
-
const o = store$1.get(this.listCode).options;
|
|
13356
|
-
if (!o.isWorkflowEntity && o.validateEitConditions && !o.validateEitConditions({ row: this.row, editConditions: this.controlConfig.editConditions, listCode: this.listCode }))
|
|
13357
|
-
return !1;
|
|
13358
|
-
}
|
|
13359
|
-
return !0;
|
|
13360
13339
|
} }, emits: ["refresData", "refresPortData", "refresPortsData", "refresMainTableFields", "prohibitToEdit"] }, _hoisted_1$10 = { class: "normal-column-content-view" }, _hoisted_2$D = { key: 1, class: "column-text-main" }, _hoisted_3$u = { key: 0, "table-column-placeholder": "" }, _hoisted_4$l = { key: 1, class: "grid-operation-buttons", "data-v": "20250527" }, _hoisted_5$f = ["id"], _hoisted_6$e = { key: 0, type: "primary" }, _hoisted_7$8 = ["id", "title"], _hoisted_8$6 = ["id", "title"], _hoisted_9$6 = ["id"], _hoisted_10$6 = ["id", "title"], _hoisted_11$4 = ["id"], _hoisted_12$4 = { key: 0, type: "primary" }, _hoisted_13$3 = ["id", "title"], _hoisted_14$3 = ["id"], _hoisted_15$3 = { key: 1 }, _hoisted_16$3 = ["id", "title"], _hoisted_17$3 = ["id", "title"], _hoisted_18$2 = ["id"], _hoisted_19 = ["id", "title", "innerHTML"], _hoisted_20 = ["id"];
|
|
13361
13340
|
function _sfc_render$V(n, o, r, a, s, l) {
|
|
13362
13341
|
var J, ue, re, ge, oe, Ne;
|
|
13363
13342
|
const d = resolveComponent("dynamic-input"), p = resolveComponent("Edit"), v = resolveComponent("el-icon"), w = resolveComponent("el-dropdown-item"), E = resolveComponent("el-dropdown-menu"), x = resolveComponent("el-dropdown"), D = resolveComponent("row-operation"), O = resolveComponent("secret-info"), M = resolveComponent("FsPreview"), L = resolveComponent("el-link"), q = resolveComponent("el-tooltip"), G = resolveComponent("GridIcon"), W = resolveComponent("view-image-dialog"), Z = resolveComponent("rich-editor-viewer"), X = resolveDirective("permission");
|
|
13364
|
-
return openBlock(), createElementBlock("div", _hoisted_1$10, [l.isEditing || r.isShowForm ? (openBlock(), createBlock(d, { key: 0, ref: "dynamicRef", value: r.row[r.column.prop], "onUpdate:value": o[0] || (o[0] = (Ce) => r.row[r.column.prop] = Ce), class: normalizeClass(s.requiredClass), column: r.column, "is-sql": r.isSql, "line-edit": s.lineEdit, "list-code": r.listCode, "list-toolbar-form-data": r.listToolbarFormData, options: r.column.valueSet, "grid-options": s.options, position: { row: r.rowIndex, prop: r.column.prop }, disabled: s.disabled, row: r.row, "row-index": r.rowIndex, type: r.column.componentType, onKeyup: withKeys(l.clearAllEditing, ["enter"]), onFindIndex: o[1] || (o[1] = (Ce) => l.findIndex(r.rowIndex)), onFocus: o[2] || (o[2] = (Ce) => l.onFocus(r.rowIndex)), onProhibitToEdit: l.prohibitToEdit, onRefreshList: l.refreshList, onRefresData: l.refresData, onRefresMainTableFields: l.refresMainTableFields, onRefresPortData: l.refresPortData, onRefresPortsData: l.refresPortsData, onChangeDisabled: l.changeDisabled, onChangeRequired: l.changeRequired, onOpenPage: l.openPageEvent }, null, 8, ["value", "class", "column", "is-sql", "line-edit", "list-code", "list-toolbar-form-data", "options", "grid-options", "position", "disabled", "row", "row-index", "type", "onKeyup", "onProhibitToEdit", "onRefreshList", "onRefresData", "onRefresMainTableFields", "onRefresPortData", "onRefresPortsData", "onChangeDisabled", "onChangeRequired", "onOpenPage"])) : (openBlock(), createElementBlock("div", _hoisted_2$D, [s.lineEdit.editable && ((ge = (re = (ue = (J = s.options) == null ? void 0 : J.configureObj) == null ? void 0 : ue.props) == null ? void 0 : re.base) != null && ge.columnEditable) && s.isEditable && !l.isHideEdit && !r.isContentViewText ? (openBlock(), createElementBlock("div", { key: 0, class: "column-text-edit-main", onClick: o[3] || (o[3] = (...Ce) => l.onEditing && l.onEditing(...Ce)) }, [createVNode(v, { size: 14, color: "#409eff" }, { default: withCtx(() => [createVNode(p)]), _: 1 }), [void 0, null, ""].includes(r.row[r.column.prop]) ? (openBlock(), createElementBlock("span", _hoisted_3$u, toDisplayString$1(n.$t("superGrid.editablePlaceholder")), 1)) : createCommentVNode("", !0)])) : createCommentVNode("", !0), r.column.operations ? (openBlock(), createElementBlock("span", _hoisted_4$l, [(openBlock(!0), createElementBlock(Fragment, null, renderList(r.column.operations, (Ce, $) => (openBlock(), createElementBlock("span", { key: $, class: normalizeClass([r.isShowForm ? "" : "cell--span", "buttons-row-content-span"]) }, [Ce.isGroup ? (openBlock(), createBlock(x, { key: 0, size: Ce.buttons && Ce.buttons.length > 0 ? Ce.buttons[0].props.size : "small", "split-button": "", onCommand: l.handleCommand }, { dropdown: withCtx(() => [createVNode(E, null, { default: withCtx(() => [(openBlock(!0), createElementBlock(Fragment, null, renderList(Ce.buttons, (_e, ce) => (openBlock(), createElementBlock("span", { key: _e.props.code + ce }, [withDirectives((openBlock(), createBlock(w, { command: l.beforeHandleCommand(_e.props.code, r.row, r.rowIndex), disabled: n.preventReclick }, { default: withCtx(() => [createTextVNode(toDisplayString$1(n.$escapeHtml(_e.props.label)), 1)]), _: 2 }, 1032, ["command", "disabled"])), [[X, _e.props.permission]])]))), 128))]), _: 2 }, 1024)]), default: withCtx(() => [createTextVNode(toDisplayString$1(n.$escapeHtml(Ce.label)) + " ", 1)]), _: 2 }, 1032, ["size", "onCommand"])) : Ce.props.customControl ? withDirectives((openBlock(), createBlock(resolveDynamicComponent(Ce.props.customControl), { key: r.column.prop + "_" + r.rowIndex + "_" + r.currentPage, disabled: !0, row: r.pageGridData[r.rowIndex], entity: r.pageGridData[r.rowIndex], prop: r.column.prop, parent: s.parentFormData, "row-index": r.rowIndex, "grid-data": r.gridData, "page-grid-data": r.pageGridData, "current-page": r.currentPage, onRefreshList: l.refreshList }, null, 40, ["row", "entity", "prop", "parent", "row-index", "grid-data", "page-grid-data", "current-page", "onRefreshList"])), [[X, Ce.props.permission]]) : (openBlock(), createBlock(D, { key: 2, column: r.column, editing: r.row.$editing, entity: r.row, "is-show": Ce.isShow, label: Ce.props.label ? Ce.props.label : r.row[r.column.prop], "on-click": Ce.onClick, operation: Ce, "operation-index": $, "operation-setting": Ce.props, "row-index": r.rowIndex, "list-code": r.listCode, "parent-form-data": s.parentFormData, "is-table-btn-link": "" }, null, 8, ["column", "editing", "entity", "is-show", "label", "on-click", "operation", "operation-index", "operation-setting", "row-index", "list-code", "parent-form-data"]))], 2))), 128))])) : n.customFormatValue(r.row, r.column.prop, r.customFormat, r.rowIndex) ? (openBlock(), createElementBlock("span", { key: 2, class: normalizeClass(r.isShowForm ? "" : "cell--span") }, [(openBlock(), createBlock(resolveDynamicComponent(r.column.prop + r.rowIndex), { entity: r.row, parent: s.parentFormData, prop: r.column.prop, row: r.row, "row-index": r.rowIndex, "select-options": r.column.valueSet, "show-value": n.$escapeHtml(l.getLabel(r.row, r.rowIndex)), value: l.getCellValue(r.row), "additional-param-map": s.additionalParamMap, "additional-settings": s.additionalSettings, "page-context": (oe = s.options) == null ? void 0 : oe.pageContext }, null, 8, ["entity", "parent", "prop", "row", "row-index", "select-options", "show-value", "value", "additional-param-map", "additional-settings", "page-context"]))], 2)) : s.columnFormatter !== void 0 && s.columnFormatter.type !== void 0 && s.columnFormatter.type === "customControl" && s.columnFormatter.options && s.columnFormatter.options.format && s.columnFormatter.options.format !== "" ? (openBlock(), createElementBlock("span", { key: 3, class: normalizeClass(r.isShowForm ? "" : "cell--span") }, [(openBlock(), createBlock(resolveDynamicComponent(s.columnFormatter.options.format), { key: r.column.prop + "_" + r.rowIndex + "_" + r.currentPage, "current-page": r.currentPage, disabled: !0, entity: r.pageGridData[r.rowIndex], "get-form-data": s.getFormData, "get-grid-data": s.getTableGridData, "grid-data": r.gridData, "page-grid-data": r.pageGridData, parent: s.parentFormData, prop: r.column.prop, row: r.pageGridData[r.rowIndex], "row-index": r.rowIndex, "select-options": r.column.valueSet, "show-value": n.$escapeHtml(l.getLabel(r.pageGridData[r.rowIndex], r.rowIndex)), value: l.getCellValue(r.pageGridData[r.rowIndex]), "additional-param-map": s.additionalParamMap, listCode: r.listCode, "component-id": s.componentId, "additional-settings": s.additionalSettings, "page-context": (Ne = s.options) == null ? void 0 : Ne.pageContext, onProhibitToEdit: l.prohibitToEdit, onRefreshList: l.refreshList }, null, 40, ["current-page", "entity", "get-form-data", "get-grid-data", "grid-data", "page-grid-data", "parent", "prop", "row", "row-index", "select-options", "show-value", "value", "additional-param-map", "listCode", "component-id", "additional-settings", "page-context", "onProhibitToEdit", "onRefreshList"]))], 2)) : s.columnFormatter !== void 0 && s.columnFormatter.type !== void 0 && s.columnFormatter.type === "secretInfo" ? (openBlock(), createElementBlock("span", { key: 4, id: r.column.prop + "DomData" + r.rowIndex, class: normalizeClass(r.isShowForm ? "" : "cell--span") }, [createVNode(O, { entity: r.row, "field-label": n.$escapeHtml(n.label), "list-code": r.listCode, "list-name": r.listName, "page-code": r.pageCode, prop: r.column.prop, "table-name": r.tableName, value: l.getCellValue(r.row) }, null, 8, ["entity", "field-label", "list-code", "list-name", "page-code", "prop", "table-name", "value"])], 10, _hoisted_5$f)) : n.isObjectProp(r.column.prop) ? (openBlock(), createElementBlock(Fragment, { key: 5 }, [r.column.formatter && r.column.formatter.type === "files" ? (openBlock(), createElementBlock("span", _hoisted_6$e, [createElementVNode("span", { id: r.column.prop + "DomData" + r.rowIndex, style: normalizeStyle(s.textOverflow === "newline" ? {} : { width: s.cellWidth + "px" }), title: n.isShowOverflowTooltip ? n.$escapeHtml(l.getLabel(r.row)) : "", class: normalizeClass(s.textOverflow === "newline" ? "wrap-text" : "ellipsis cell--span") }, [createVNode(M, { entity: r.row, "file-set-obj": l.getFilesFormatter(), "is-sql": r.isSql, label: n.$escapeHtml(l.getLabel(r.row, r.rowIndex)) }, null, 8, ["entity", "file-set-obj", "is-sql", "label"])], 14, _hoisted_7$8)])) : s.columnFormatter !== void 0 && s.columnFormatter.type !== void 0 && s.columnFormatter.type === "hyperlinks" && l.getMyHyperLinkSetting(r.row, r.rowIndex).visible === !0 ? (openBlock(), createBlock(L, { key: 1, type: l.getLinkType(r.row), onClick: o[4] || (o[4] = (Ce) => n.clickHyperLink(r.column, r.row, r.listCode, r.rowIndex)) }, { default: withCtx(() => [n.isShowOverflowTooltip ? (openBlock(), createElementBlock("span", { key: 0, id: r.column.prop + "DomData" + r.rowIndex, style: normalizeStyle(s.textOverflow === "newline" ? {} : { width: s.cellWidth + "px" }), title: l.getMyHyperLinkSetting(r.row, r.rowIndex).title, class: normalizeClass(s.textOverflow === "newline" ? "wrap-text" : "ellipsis cell--span") }, [createTextVNode(toDisplayString$1(l.getMyHyperLinkSetting(r.row, r.rowIndex).label) + " ", 1), l.getMyHyperLinkSetting(r.row, r.rowIndex).icon ? (openBlock(), createBlock(v, { key: 0 }, { default: withCtx(() => [(openBlock(), createBlock(resolveDynamicComponent((l.getMyHyperLinkSetting(r.row), r.rowIndex.icon))))]), _: 1 })) : createCommentVNode("", !0)], 14, _hoisted_8$6)) : (openBlock(), createElementBlock("span", { key: 1, id: r.column.prop + "DomData" + r.rowIndex, class: normalizeClass(r.isShowForm ? "" : "cell--span") }, [createTextVNode(toDisplayString$1(l.getMyHyperLinkSetting(r.row, r.rowIndex).label) + " ", 1), l.getMyHyperLinkSetting(r.row, r.rowIndex).icon ? (openBlock(), createBlock(v, { key: 0 }, { default: withCtx(() => [(openBlock(), createBlock(resolveDynamicComponent(l.getMyHyperLinkSetting(r.row, r.rowIndex).icon)))]), _: 1 })) : createCommentVNode("", !0)], 10, _hoisted_9$6))]), _: 1 }, 8, ["type"])) : n.isShowOverflowTooltip ? (openBlock(), createElementBlock("span", { key: 2, id: r.column.prop + "DomData" + r.rowIndex, style: normalizeStyle(s.textOverflow === "newline" ? {} : { width: s.cellWidth + "px" }), title: n.$escapeHtml(l.getLabel(r.row)), class: normalizeClass(s.textOverflow === "newline" ? "wrap-text" : "ellipsis cell--span") }, toDisplayString$1(n.$escapeHtml(l.getLabel(r.row, r.rowIndex))), 15, _hoisted_10$6)) : (openBlock(), createElementBlock("span", { key: 3, id: r.column.prop + "DomData" + r.rowIndex, class: normalizeClass(r.isShowForm ? "" : "cell--span") }, toDisplayString$1(n.$escapeHtml(l.getLabel(r.row, r.rowIndex))), 11, _hoisted_11$4))], 64)) : (openBlock(), createElementBlock(Fragment, { key: 6 }, [r.column.componentType === "annex" || r.column.componentType === "multipartUpload" ? (openBlock(), createElementBlock("span", _hoisted_12$4, [n.isShowOverflowTooltip ? (openBlock(), createElementBlock("span", { key: 0, id: r.column.prop + "DomData" + r.rowIndex, style: normalizeStyle(s.textOverflow === "newline" ? {} : { width: s.cellWidth + "px" }), title: n.$escapeHtml(l.getLabel(r.row)), class: normalizeClass(s.textOverflow === "newline" ? "wrap-text" : "ellipsis cell--span") }, [createVNode(M, { entity: r.row, "file-set-obj": l.getFileObj(r.column.fileSet), "is-sql": r.isSql, label: n.$escapeHtml(l.getLabel(r.row, r.rowIndex)) }, null, 8, ["entity", "file-set-obj", "is-sql", "label"])], 14, _hoisted_13$3)) : (openBlock(), createElementBlock("span", { key: 1, id: r.column.prop + "DomData" + r.rowIndex, class: normalizeClass(r.isShowForm ? "" : "cell--span") }, [createVNode(M, { entity: r.row, "file-set-obj": l.getFileObj(r.column.fileSet), "is-sql": r.isSql, label: n.$escapeHtml(l.getLabel(r.row, r.rowIndex)) }, null, 8, ["entity", "file-set-obj", "is-sql", "label"])], 10, _hoisted_14$3))])) : r.column.formatter && r.column.formatter.type === "files" ? (openBlock(), createElementBlock("span", _hoisted_15$3, [createElementVNode("span", { id: r.column.prop + "DomData" + r.rowIndex, style: normalizeStyle(s.textOverflow === "newline" ? {} : { width: s.cellWidth + "px" }), title: n.isShowOverflowTooltip ? n.$escapeHtml(l.getLabel(r.row)) : "", class: normalizeClass(s.textOverflow === "newline" ? "wrap-text" : "ellipsis cell--span") }, [createVNode(M, { entity: r.row, "file-set-obj": l.getFilesFormatter(), "is-sql": r.isSql, label: n.$escapeHtml(l.getLabel(r.row, r.rowIndex)) }, null, 8, ["entity", "file-set-obj", "is-sql", "label"])], 14, _hoisted_16$3)])) : s.columnFormatter !== void 0 && s.columnFormatter.type !== void 0 && s.columnFormatter.type === "hyperlinks" && l.getMyHyperLinkSetting(r.row, r.rowIndex).visible === !0 ? (openBlock(), createBlock(L, { key: 2, type: "primary", onClick: o[5] || (o[5] = (Ce) => n.clickHyperLink(r.column, r.row, r.listCode, r.rowIndex)) }, { default: withCtx(() => [n.isShowOverflowTooltip ? (openBlock(), createElementBlock("span", { key: 0, id: r.column.prop + "DomData" + r.rowIndex, style: normalizeStyle(s.textOverflow === "newline" ? {} : { width: s.cellWidth + "px" }), title: n.$escapeHtml(l.getMyHyperLinkSetting(r.row, r.rowIndex).title), class: normalizeClass(s.textOverflow === "newline" ? "wrap-text" : "ellipsis cell--span") }, [createTextVNode(toDisplayString$1(n.$escapeHtml(l.getMyHyperLinkSetting(r.row, r.rowIndex).label)) + " ", 1), l.getMyHyperLinkSetting(r.row, r.rowIndex).icon ? (openBlock(), createBlock(v, { key: 0 }, { default: withCtx(() => [(openBlock(), createBlock(resolveDynamicComponent(l.getMyHyperLinkSetting(r.row, r.rowIndex).icon)))]), _: 1 })) : createCommentVNode("", !0)], 14, _hoisted_17$3)) : (openBlock(), createElementBlock("span", { key: 1, id: r.column.prop + "DomData" + r.rowIndex, class: normalizeClass(r.isShowForm ? "" : "cell--span") }, [createTextVNode(toDisplayString$1(n.$escapeHtml(l.getMyHyperLinkSetting(r.row, r.rowIndex).label)) + " ", 1), l.getMyHyperLinkSetting(r.row, r.rowIndex).icon ? (openBlock(), createBlock(v, { key: 0 }, { default: withCtx(() => [(openBlock(), createBlock(resolveDynamicComponent(l.getMyHyperLinkSetting(r.row, r.rowIndex).icon)))]), _: 1 })) : createCommentVNode("", !0)], 10, _hoisted_18$2))]), _: 1 })) : r.column.formatter && r.column.formatter.type === "richEditor" ? (openBlock(), createBlock(q, { key: 3, content: n.$t("superGrid.show"), class: "item", effect: "dark", placement: "top" }, { default: withCtx(() => [createElementVNode("em", { class: "fa fa-info-circle annex-cell", onClick: o[6] || (o[6] = (Ce) => l.showRichEditorContent(r.row, r.column, l.getHeader())) })]), _: 1 }, 8, ["content"])) : r.column.formatter && r.column.formatter.type === "icon" ? (openBlock(), createBlock(G, { key: 4, id: r.column.prop + "DomData" + r.rowIndex, column: r.column, row: r.row, "row-index": r.rowIndex, "is-sql": r.isSql, "list-code": r.listCode }, null, 8, ["id", "column", "row", "row-index", "is-sql", "list-code"])) : n.isShowOverflowTooltip ? (openBlock(), createElementBlock("span", { key: 5, id: r.column.prop + "DomData" + r.rowIndex, style: normalizeStyle(s.textOverflow === "newline" ? {} : { width: s.cellWidth + "px" }), title: l.getLabel(r.row), class: normalizeClass(s.textOverflow === "newline" ? "wrap-text" : "ellipsis cell--span"), innerHTML: n.$escapeHtml(l.getLabel(r.row, r.rowIndex)) }, null, 14, _hoisted_19)) : (openBlock(), createElementBlock("span", { key: 6, id: r.column.prop + "DomData" + r.rowIndex, class: normalizeClass(r.isShowForm ? "" : "cell--span") }, toDisplayString$1(n.$escapeHtml(l.getLabel(r.row, r.rowIndex))), 11, _hoisted_20))], 64))])), s.showSingleImgFlag ? (openBlock(), createBlock(W, { key: 2, "file-list": s.fileList, onClose: o[7] || (o[7] = (Ce) => s.showSingleImgFlag = !1) }, null, 8, ["file-list"])) : createCommentVNode("", !0), s.showRichEditorViewer ? (openBlock(), createBlock(Z, { key: 3, ref: "richEditorViewerRef", onCloseRichEditorContent: l.closeRichEditorContent }, null, 8, ["onCloseRichEditorContent"])) : createCommentVNode("", !0)]);
|
|
13343
|
+
return openBlock(), createElementBlock("div", _hoisted_1$10, [l.isEditing || r.isShowForm ? (openBlock(), createBlock(d, { key: 0, ref: "dynamicRef", value: r.row[r.column.prop], "onUpdate:value": o[0] || (o[0] = (Ce) => r.row[r.column.prop] = Ce), class: normalizeClass(s.requiredClass), column: r.column, "is-sql": r.isSql, "line-edit": s.lineEdit, "list-code": r.listCode, "list-toolbar-form-data": r.listToolbarFormData, options: r.column.valueSet, "grid-options": s.options, position: { row: r.rowIndex, prop: r.column.prop }, disabled: s.disabled, row: r.row, "row-index": r.rowIndex, type: r.column.componentType, onKeyup: withKeys(l.clearAllEditing, ["enter"]), onFindIndex: o[1] || (o[1] = (Ce) => l.findIndex(r.rowIndex)), onFocus: o[2] || (o[2] = (Ce) => l.onFocus(r.rowIndex)), onProhibitToEdit: l.prohibitToEdit, onRefreshList: l.refreshList, onRefresData: l.refresData, onRefresMainTableFields: l.refresMainTableFields, onRefresPortData: l.refresPortData, onRefresPortsData: l.refresPortsData, onChangeDisabled: l.changeDisabled, onChangeRequired: l.changeRequired, onOpenPage: l.openPageEvent }, null, 8, ["value", "class", "column", "is-sql", "line-edit", "list-code", "list-toolbar-form-data", "options", "grid-options", "position", "disabled", "row", "row-index", "type", "onKeyup", "onProhibitToEdit", "onRefreshList", "onRefresData", "onRefresMainTableFields", "onRefresPortData", "onRefresPortsData", "onChangeDisabled", "onChangeRequired", "onOpenPage"])) : (openBlock(), createElementBlock("div", _hoisted_2$D, [s.lineEdit.editable && ((ge = (re = (ue = (J = s.options) == null ? void 0 : J.configureObj) == null ? void 0 : ue.props) == null ? void 0 : re.base) != null && ge.columnEditable) && s.isEditable && !l.isHideEdit && !r.isContentViewText ? (openBlock(), createElementBlock("div", { key: 0, class: "column-text-edit-main", onClick: o[3] || (o[3] = (...Ce) => l.onEditing && l.onEditing(...Ce)) }, [createVNode(v, { size: 14, color: "#409eff" }, { default: withCtx(() => [createVNode(p)]), _: 1 }), [void 0, null, ""].includes(r.row[r.column.prop]) ? (openBlock(), createElementBlock("span", _hoisted_3$u, toDisplayString$1(n.$t("superGrid.editablePlaceholder")), 1)) : createCommentVNode("", !0)])) : createCommentVNode("", !0), r.column.operations ? (openBlock(), createElementBlock("span", _hoisted_4$l, [(openBlock(!0), createElementBlock(Fragment, null, renderList(r.column.operations, (Ce, $) => (openBlock(), createElementBlock("span", { key: $, class: normalizeClass([r.isShowForm ? "" : "cell--span", "buttons-row-content-span"]) }, [Ce.isGroup ? (openBlock(), createBlock(x, { key: 0, size: Ce.buttons && Ce.buttons.length > 0 ? Ce.buttons[0].props.size : "small", "split-button": "", onCommand: l.handleCommand }, { dropdown: withCtx(() => [createVNode(E, null, { default: withCtx(() => [(openBlock(!0), createElementBlock(Fragment, null, renderList(Ce.buttons, (_e, ce) => (openBlock(), createElementBlock("span", { key: _e.props.code + ce }, [withDirectives((openBlock(), createBlock(w, { command: l.beforeHandleCommand(_e.props.code, r.row, r.rowIndex), disabled: n.preventReclick }, { default: withCtx(() => [createTextVNode(toDisplayString$1(n.$escapeHtml(_e.props.label)), 1)]), _: 2 }, 1032, ["command", "disabled"])), [[X, _e.props.permission]])]))), 128))]), _: 2 }, 1024)]), default: withCtx(() => [createTextVNode(toDisplayString$1(n.$escapeHtml(Ce.label)) + " ", 1)]), _: 2 }, 1032, ["size", "onCommand"])) : Ce.props.customControl ? withDirectives((openBlock(), createBlock(resolveDynamicComponent(Ce.props.customControl), { key: r.column.prop + "_" + r.rowIndex + "_" + r.currentPage, disabled: !0, row: r.pageGridData[r.rowIndex], entity: r.pageGridData[r.rowIndex], prop: r.column.prop, parent: s.parentFormData, "row-index": r.rowIndex, "grid-data": r.gridData, "page-grid-data": r.pageGridData, "current-page": r.currentPage, onRefreshList: l.refreshList }, null, 40, ["row", "entity", "prop", "parent", "row-index", "grid-data", "page-grid-data", "current-page", "onRefreshList"])), [[X, Ce.props.permission]]) : (openBlock(), createBlock(D, { key: 2, column: r.column, editing: r.row.$editing, entity: r.row, "is-show": Ce.isShow, label: Ce.props.label ? Ce.props.label : r.row[r.column.prop], "on-click": Ce.onClick, "operation-index": $, "operation-setting": Ce.props, "row-index": r.rowIndex, "list-code": r.listCode, "parent-form-data": s.parentFormData, "is-table-btn-link": "" }, null, 8, ["column", "editing", "entity", "is-show", "label", "on-click", "operation-index", "operation-setting", "row-index", "list-code", "parent-form-data"]))], 2))), 128))])) : n.customFormatValue(r.row, r.column.prop, r.customFormat, r.rowIndex) ? (openBlock(), createElementBlock("span", { key: 2, class: normalizeClass(r.isShowForm ? "" : "cell--span") }, [(openBlock(), createBlock(resolveDynamicComponent(r.column.prop + r.rowIndex), { entity: r.row, parent: s.parentFormData, prop: r.column.prop, row: r.row, "row-index": r.rowIndex, "select-options": r.column.valueSet, "show-value": n.$escapeHtml(l.getLabel(r.row, r.rowIndex)), value: l.getCellValue(r.row), "additional-param-map": s.additionalParamMap, "additional-settings": s.additionalSettings, "page-context": (oe = s.options) == null ? void 0 : oe.pageContext }, null, 8, ["entity", "parent", "prop", "row", "row-index", "select-options", "show-value", "value", "additional-param-map", "additional-settings", "page-context"]))], 2)) : s.columnFormatter !== void 0 && s.columnFormatter.type !== void 0 && s.columnFormatter.type === "customControl" && s.columnFormatter.options && s.columnFormatter.options.format && s.columnFormatter.options.format !== "" ? (openBlock(), createElementBlock("span", { key: 3, class: normalizeClass(r.isShowForm ? "" : "cell--span") }, [(openBlock(), createBlock(resolveDynamicComponent(s.columnFormatter.options.format), { key: r.column.prop + "_" + r.rowIndex + "_" + r.currentPage, "current-page": r.currentPage, disabled: !0, entity: r.pageGridData[r.rowIndex], "get-form-data": s.getFormData, "get-grid-data": s.getTableGridData, "grid-data": r.gridData, "page-grid-data": r.pageGridData, parent: s.parentFormData, prop: r.column.prop, row: r.pageGridData[r.rowIndex], "row-index": r.rowIndex, "select-options": r.column.valueSet, "show-value": n.$escapeHtml(l.getLabel(r.pageGridData[r.rowIndex], r.rowIndex)), value: l.getCellValue(r.pageGridData[r.rowIndex]), "additional-param-map": s.additionalParamMap, listCode: r.listCode, "component-id": s.componentId, "additional-settings": s.additionalSettings, "page-context": (Ne = s.options) == null ? void 0 : Ne.pageContext, onProhibitToEdit: l.prohibitToEdit, onRefreshList: l.refreshList }, null, 40, ["current-page", "entity", "get-form-data", "get-grid-data", "grid-data", "page-grid-data", "parent", "prop", "row", "row-index", "select-options", "show-value", "value", "additional-param-map", "listCode", "component-id", "additional-settings", "page-context", "onProhibitToEdit", "onRefreshList"]))], 2)) : s.columnFormatter !== void 0 && s.columnFormatter.type !== void 0 && s.columnFormatter.type === "secretInfo" ? (openBlock(), createElementBlock("span", { key: 4, id: r.column.prop + "DomData" + r.rowIndex, class: normalizeClass(r.isShowForm ? "" : "cell--span") }, [createVNode(O, { entity: r.row, "field-label": n.$escapeHtml(n.label), "list-code": r.listCode, "list-name": r.listName, "page-code": r.pageCode, prop: r.column.prop, "table-name": r.tableName, value: l.getCellValue(r.row) }, null, 8, ["entity", "field-label", "list-code", "list-name", "page-code", "prop", "table-name", "value"])], 10, _hoisted_5$f)) : n.isObjectProp(r.column.prop) ? (openBlock(), createElementBlock(Fragment, { key: 5 }, [r.column.formatter && r.column.formatter.type === "files" ? (openBlock(), createElementBlock("span", _hoisted_6$e, [createElementVNode("span", { id: r.column.prop + "DomData" + r.rowIndex, style: normalizeStyle(s.textOverflow === "newline" ? {} : { width: s.cellWidth + "px" }), title: n.isShowOverflowTooltip ? n.$escapeHtml(l.getLabel(r.row)) : "", class: normalizeClass(s.textOverflow === "newline" ? "wrap-text" : "ellipsis cell--span") }, [createVNode(M, { entity: r.row, "file-set-obj": l.getFilesFormatter(), "is-sql": r.isSql, label: n.$escapeHtml(l.getLabel(r.row, r.rowIndex)) }, null, 8, ["entity", "file-set-obj", "is-sql", "label"])], 14, _hoisted_7$8)])) : s.columnFormatter !== void 0 && s.columnFormatter.type !== void 0 && s.columnFormatter.type === "hyperlinks" && l.getMyHyperLinkSetting(r.row, r.rowIndex).visible === !0 ? (openBlock(), createBlock(L, { key: 1, type: l.getLinkType(r.row), onClick: o[4] || (o[4] = (Ce) => n.clickHyperLink(r.column, r.row, r.listCode, r.rowIndex)) }, { default: withCtx(() => [n.isShowOverflowTooltip ? (openBlock(), createElementBlock("span", { key: 0, id: r.column.prop + "DomData" + r.rowIndex, style: normalizeStyle(s.textOverflow === "newline" ? {} : { width: s.cellWidth + "px" }), title: l.getMyHyperLinkSetting(r.row, r.rowIndex).title, class: normalizeClass(s.textOverflow === "newline" ? "wrap-text" : "ellipsis cell--span") }, [createTextVNode(toDisplayString$1(l.getMyHyperLinkSetting(r.row, r.rowIndex).label) + " ", 1), l.getMyHyperLinkSetting(r.row, r.rowIndex).icon ? (openBlock(), createBlock(v, { key: 0 }, { default: withCtx(() => [(openBlock(), createBlock(resolveDynamicComponent((l.getMyHyperLinkSetting(r.row), r.rowIndex.icon))))]), _: 1 })) : createCommentVNode("", !0)], 14, _hoisted_8$6)) : (openBlock(), createElementBlock("span", { key: 1, id: r.column.prop + "DomData" + r.rowIndex, class: normalizeClass(r.isShowForm ? "" : "cell--span") }, [createTextVNode(toDisplayString$1(l.getMyHyperLinkSetting(r.row, r.rowIndex).label) + " ", 1), l.getMyHyperLinkSetting(r.row, r.rowIndex).icon ? (openBlock(), createBlock(v, { key: 0 }, { default: withCtx(() => [(openBlock(), createBlock(resolveDynamicComponent(l.getMyHyperLinkSetting(r.row, r.rowIndex).icon)))]), _: 1 })) : createCommentVNode("", !0)], 10, _hoisted_9$6))]), _: 1 }, 8, ["type"])) : n.isShowOverflowTooltip ? (openBlock(), createElementBlock("span", { key: 2, id: r.column.prop + "DomData" + r.rowIndex, style: normalizeStyle(s.textOverflow === "newline" ? {} : { width: s.cellWidth + "px" }), title: n.$escapeHtml(l.getLabel(r.row)), class: normalizeClass(s.textOverflow === "newline" ? "wrap-text" : "ellipsis cell--span") }, toDisplayString$1(n.$escapeHtml(l.getLabel(r.row, r.rowIndex))), 15, _hoisted_10$6)) : (openBlock(), createElementBlock("span", { key: 3, id: r.column.prop + "DomData" + r.rowIndex, class: normalizeClass(r.isShowForm ? "" : "cell--span") }, toDisplayString$1(n.$escapeHtml(l.getLabel(r.row, r.rowIndex))), 11, _hoisted_11$4))], 64)) : (openBlock(), createElementBlock(Fragment, { key: 6 }, [r.column.componentType === "annex" || r.column.componentType === "multipartUpload" ? (openBlock(), createElementBlock("span", _hoisted_12$4, [n.isShowOverflowTooltip ? (openBlock(), createElementBlock("span", { key: 0, id: r.column.prop + "DomData" + r.rowIndex, style: normalizeStyle(s.textOverflow === "newline" ? {} : { width: s.cellWidth + "px" }), title: n.$escapeHtml(l.getLabel(r.row)), class: normalizeClass(s.textOverflow === "newline" ? "wrap-text" : "ellipsis cell--span") }, [createVNode(M, { entity: r.row, "file-set-obj": l.getFileObj(r.column.fileSet), "is-sql": r.isSql, label: n.$escapeHtml(l.getLabel(r.row, r.rowIndex)) }, null, 8, ["entity", "file-set-obj", "is-sql", "label"])], 14, _hoisted_13$3)) : (openBlock(), createElementBlock("span", { key: 1, id: r.column.prop + "DomData" + r.rowIndex, class: normalizeClass(r.isShowForm ? "" : "cell--span") }, [createVNode(M, { entity: r.row, "file-set-obj": l.getFileObj(r.column.fileSet), "is-sql": r.isSql, label: n.$escapeHtml(l.getLabel(r.row, r.rowIndex)) }, null, 8, ["entity", "file-set-obj", "is-sql", "label"])], 10, _hoisted_14$3))])) : r.column.formatter && r.column.formatter.type === "files" ? (openBlock(), createElementBlock("span", _hoisted_15$3, [createElementVNode("span", { id: r.column.prop + "DomData" + r.rowIndex, style: normalizeStyle(s.textOverflow === "newline" ? {} : { width: s.cellWidth + "px" }), title: n.isShowOverflowTooltip ? n.$escapeHtml(l.getLabel(r.row)) : "", class: normalizeClass(s.textOverflow === "newline" ? "wrap-text" : "ellipsis cell--span") }, [createVNode(M, { entity: r.row, "file-set-obj": l.getFilesFormatter(), "is-sql": r.isSql, label: n.$escapeHtml(l.getLabel(r.row, r.rowIndex)) }, null, 8, ["entity", "file-set-obj", "is-sql", "label"])], 14, _hoisted_16$3)])) : s.columnFormatter !== void 0 && s.columnFormatter.type !== void 0 && s.columnFormatter.type === "hyperlinks" && l.getMyHyperLinkSetting(r.row, r.rowIndex).visible === !0 ? (openBlock(), createBlock(L, { key: 2, type: "primary", onClick: o[5] || (o[5] = (Ce) => n.clickHyperLink(r.column, r.row, r.listCode, r.rowIndex)) }, { default: withCtx(() => [n.isShowOverflowTooltip ? (openBlock(), createElementBlock("span", { key: 0, id: r.column.prop + "DomData" + r.rowIndex, style: normalizeStyle(s.textOverflow === "newline" ? {} : { width: s.cellWidth + "px" }), title: n.$escapeHtml(l.getMyHyperLinkSetting(r.row, r.rowIndex).title), class: normalizeClass(s.textOverflow === "newline" ? "wrap-text" : "ellipsis cell--span") }, [createTextVNode(toDisplayString$1(n.$escapeHtml(l.getMyHyperLinkSetting(r.row, r.rowIndex).label)) + " ", 1), l.getMyHyperLinkSetting(r.row, r.rowIndex).icon ? (openBlock(), createBlock(v, { key: 0 }, { default: withCtx(() => [(openBlock(), createBlock(resolveDynamicComponent(l.getMyHyperLinkSetting(r.row, r.rowIndex).icon)))]), _: 1 })) : createCommentVNode("", !0)], 14, _hoisted_17$3)) : (openBlock(), createElementBlock("span", { key: 1, id: r.column.prop + "DomData" + r.rowIndex, class: normalizeClass(r.isShowForm ? "" : "cell--span") }, [createTextVNode(toDisplayString$1(n.$escapeHtml(l.getMyHyperLinkSetting(r.row, r.rowIndex).label)) + " ", 1), l.getMyHyperLinkSetting(r.row, r.rowIndex).icon ? (openBlock(), createBlock(v, { key: 0 }, { default: withCtx(() => [(openBlock(), createBlock(resolveDynamicComponent(l.getMyHyperLinkSetting(r.row, r.rowIndex).icon)))]), _: 1 })) : createCommentVNode("", !0)], 10, _hoisted_18$2))]), _: 1 })) : r.column.formatter && r.column.formatter.type === "richEditor" ? (openBlock(), createBlock(q, { key: 3, content: n.$t("superGrid.show"), class: "item", effect: "dark", placement: "top" }, { default: withCtx(() => [createElementVNode("em", { class: "fa fa-info-circle annex-cell", onClick: o[6] || (o[6] = (Ce) => l.showRichEditorContent(r.row, r.column, l.getHeader())) })]), _: 1 }, 8, ["content"])) : r.column.formatter && r.column.formatter.type === "icon" ? (openBlock(), createBlock(G, { key: 4, id: r.column.prop + "DomData" + r.rowIndex, column: r.column, row: r.row, "row-index": r.rowIndex, "is-sql": r.isSql, "list-code": r.listCode }, null, 8, ["id", "column", "row", "row-index", "is-sql", "list-code"])) : n.isShowOverflowTooltip ? (openBlock(), createElementBlock("span", { key: 5, id: r.column.prop + "DomData" + r.rowIndex, style: normalizeStyle(s.textOverflow === "newline" ? {} : { width: s.cellWidth + "px" }), title: l.getLabel(r.row), class: normalizeClass(s.textOverflow === "newline" ? "wrap-text" : "ellipsis cell--span"), innerHTML: n.$escapeHtml(l.getLabel(r.row, r.rowIndex)) }, null, 14, _hoisted_19)) : (openBlock(), createElementBlock("span", { key: 6, id: r.column.prop + "DomData" + r.rowIndex, class: normalizeClass(r.isShowForm ? "" : "cell--span") }, toDisplayString$1(n.$escapeHtml(l.getLabel(r.row, r.rowIndex))), 11, _hoisted_20))], 64))])), s.showSingleImgFlag ? (openBlock(), createBlock(W, { key: 2, "file-list": s.fileList, onClose: o[7] || (o[7] = (Ce) => s.showSingleImgFlag = !1) }, null, 8, ["file-list"])) : createCommentVNode("", !0), s.showRichEditorViewer ? (openBlock(), createBlock(Z, { key: 3, ref: "richEditorViewerRef", onCloseRichEditorContent: l.closeRichEditorContent }, null, 8, ["onCloseRichEditorContent"])) : createCommentVNode("", !0)]);
|
|
13365
13344
|
}
|
|
13366
|
-
const NormalColumnContent = _export_sfc(_sfc_main$1j, [["render", _sfc_render$V], ["__scopeId", "data-v-
|
|
13345
|
+
const NormalColumnContent = _export_sfc(_sfc_main$1j, [["render", _sfc_render$V], ["__scopeId", "data-v-794407b6"]]), _sfc_main$1i = { components: { DynamicInput, RowOperation, ViewImageDialog, FsPreview, RichEditorViewer, CirclePlus: circle_plus_default, ElIconZoomIn: zoom_in_default, GridIcon, NormalColumnContent }, name: "NormalColumn", props: { column: { type: Object, default: null }, customFormat: { type: Function, default: null }, listCode: { type: String, default: null }, isSql: { type: Boolean, default: !1 }, newWidth: { type: Number, default: null }, dragColumnProp: { type: String, default: null }, tableName: { type: String, default: null }, pageCode: { type: String, default: null }, listName: { type: String, default: null }, currentPage: { type: Number, default: 1 }, gridData: { type: Array, default: null }, pageGridData: { type: Array, default: null }, listToolbarFormData: { type: Object, default: null } }, data() {
|
|
13367
13346
|
let n;
|
|
13368
13347
|
const o = store$1.get(this.listCode), r = o.options;
|
|
13369
13348
|
return o.options.extraParam && o.options.extraParam.entityMap && (n = o.options.extraParam.entityMap), { selectRow: null, that: this, align: "left", headerAlign: "left", isFormSubTable: !1, subTableCanAdd: !0, isShowAdd: !1, cellWidth: null, parentFormData: n, options: r };
|
|
@@ -15323,10 +15302,7 @@ const MobileCard = defineComponent({ name: "MobileTableCard", components: { Norm
|
|
|
15323
15302
|
}, sort: function(n, o) {
|
|
15324
15303
|
this.$refs.superGrid.sort(n, o);
|
|
15325
15304
|
} };
|
|
15326
|
-
function packageEnumAndBeanColumnValueSets(n, o
|
|
15327
|
-
return isPlateSys(window.$vueApp.config.globalProperties.systemCode) ? packageEnumAndBeanColumnValueSetsWhenPlate(n, o) : packageEnumAndBeanColumnValueSetsWhenOtherSys(n, o, r, a);
|
|
15328
|
-
}
|
|
15329
|
-
function packageEnumAndBeanColumnValueSetsWhenPlate(n, o) {
|
|
15305
|
+
function packageEnumAndBeanColumnValueSets(n, o) {
|
|
15330
15306
|
return new Promise((r, a) => {
|
|
15331
15307
|
const s = { listCode: o, valueSetMetas: [] }, l = [];
|
|
15332
15308
|
for (let d = 0; d < n.length; d++) {
|
|
@@ -15362,46 +15338,6 @@ function packageEnumAndBeanColumnValueSet(n) {
|
|
|
15362
15338
|
} else if (r && r !== "")
|
|
15363
15339
|
return "beanname:" + r;
|
|
15364
15340
|
}
|
|
15365
|
-
function packageEnumAndBeanColumnValueSetsWhenOtherSys(n, o, r, a, s) {
|
|
15366
|
-
return new Promise((l, d) => {
|
|
15367
|
-
const p = getDataSourceConfigList(n), v = p.valueSetColumnIndexs, w = { listCode: o, entityMap: a, additionalParamMap: r, dataSourceList: p.dataSourceConfigList, dataSourceListTitle: p.dataSourceConfigListTitle, systemCode: s }, E = window.$vueApp.config.globalProperties.baseURL + "/common/common-data/find-grid-datas";
|
|
15368
|
-
window.$vueApp.config.globalProperties.$http.post(E, w).then((x) => {
|
|
15369
|
-
const D = x.columnValueSet, O = x.columnTitleValueSet;
|
|
15370
|
-
for (let M in v) {
|
|
15371
|
-
const L = v[M], q = D[M];
|
|
15372
|
-
q && (n[L].valueSet = q);
|
|
15373
|
-
const G = O[M];
|
|
15374
|
-
G && (n[L].titleValueSetValue = G);
|
|
15375
|
-
}
|
|
15376
|
-
l(x);
|
|
15377
|
-
}).catch((x) => {
|
|
15378
|
-
d(x);
|
|
15379
|
-
});
|
|
15380
|
-
});
|
|
15381
|
-
}
|
|
15382
|
-
function getDataSourceConfigList(n) {
|
|
15383
|
-
const o = [], r = [], a = {};
|
|
15384
|
-
for (let s = 0; s < n.length; s++) {
|
|
15385
|
-
const l = n[s], d = l.prop ? l.prop : l.label, p = getConfigWithValueSet(l, d, l);
|
|
15386
|
-
let v = null;
|
|
15387
|
-
const w = l.titleValueSet;
|
|
15388
|
-
w && (v = getConfigWithValueSet(JSON.parse(w), d)), (p || v) && (p && o.push(p), v && r.push(v), a[d] = s);
|
|
15389
|
-
}
|
|
15390
|
-
return { dataSourceConfigList: o, dataSourceConfigListTitle: r, valueSetColumnIndexs: a };
|
|
15391
|
-
}
|
|
15392
|
-
function getConfigWithValueSet(n, o, r) {
|
|
15393
|
-
const a = n.enumName, s = n.beanName;
|
|
15394
|
-
let l = { uuid: o };
|
|
15395
|
-
if (a && a !== "")
|
|
15396
|
-
n.remoteEnum === !0 && (l.type = "enumName", l.props = { prop: o, valueSet: "enumname:" + a });
|
|
15397
|
-
else if (s && s !== "")
|
|
15398
|
-
l.type = "beanName", l.props = { prop: o, valueSet: "beanname:" + s };
|
|
15399
|
-
else if (r && r.valueSetOptions) {
|
|
15400
|
-
const d = JSON.parse(r.valueSetOptions);
|
|
15401
|
-
(d.type || d.dynamicDataSourceCode) && d.valueLabelSwitch && (d.type && d.type === "optionGroup" || (Object.assign(l, d), l.uuid = o, l.props || (l.props = {}), l.props.prop = o), d.dynamicDataSourceCode && (l.type = "dynamicData", l.props || (l.props = {}), l.props.code = d.dynamicDataSourceCode));
|
|
15402
|
-
}
|
|
15403
|
-
return l.type ? l : null;
|
|
15404
|
-
}
|
|
15405
15341
|
const superGridService$1 = { initialize() {
|
|
15406
15342
|
return (/* @__PURE__ */ new Date()).getTime(), new Promise((n, o) => {
|
|
15407
15343
|
const r = store$1.get(this.code);
|
|
@@ -15431,7 +15367,7 @@ const superGridService$1 = { initialize() {
|
|
|
15431
15367
|
}
|
|
15432
15368
|
l.pagination.layout = "total, sizes,prev, pager, next, jumper", l.pagination.pageSizes = v;
|
|
15433
15369
|
}
|
|
15434
|
-
this.options.initSortInfo !== void 0 && (Array.isArray(this.options.initSortInfo) ? l.sortInfo = this.options.initSortInfo : (l.sortInfo = [], l.sortInfo.push(this.options.initSortInfo))), packageEnumAndBeanColumnValueSets(l.columns, this.code
|
|
15370
|
+
this.options.initSortInfo !== void 0 && (Array.isArray(this.options.initSortInfo) ? l.sortInfo = this.options.initSortInfo : (l.sortInfo = [], l.sortInfo.push(this.options.initSortInfo))), packageEnumAndBeanColumnValueSets(l.columns, this.code).then(() => this.getDynamicColumnByBean(a, l.dynamicColumnInfo, l.columns, r)).then((v) => {
|
|
15435
15371
|
(/* @__PURE__ */ new Date()).getTime();
|
|
15436
15372
|
let w = [];
|
|
15437
15373
|
this.options.showColumns !== void 0 && (w = this.options.showColumns.split(","));
|
|
@@ -38985,17 +38921,17 @@ Required: ` + f.join(", "));
|
|
|
38985
38921
|
}).getOr(u);
|
|
38986
38922
|
}, bg = function(u) {
|
|
38987
38923
|
return u.collapsed ? u : v6(u);
|
|
38988
|
-
},
|
|
38924
|
+
}, e4 = function(u, f) {
|
|
38989
38925
|
return u.getBlockElements()[f.name] && function(g) {
|
|
38990
38926
|
return g.firstChild && g.firstChild === g.lastChild;
|
|
38991
38927
|
}(f) && function(g) {
|
|
38992
38928
|
return g.name === "br" || g.value === ms;
|
|
38993
38929
|
}(f.firstChild);
|
|
38994
|
-
},
|
|
38930
|
+
}, t4 = function(u, f) {
|
|
38995
38931
|
var g = f.firstChild, _ = f.lastChild;
|
|
38996
38932
|
return g && g.name === "meta" && (g = g.next), _ && _.attr("id") === "mce_marker" && (_ = _.prev), function(b, S) {
|
|
38997
38933
|
var N = b.getNonEmptyElements();
|
|
38998
|
-
return S && (S.isEmpty(N) ||
|
|
38934
|
+
return S && (S.isEmpty(N) || e4(b, S));
|
|
38999
38935
|
}(u, _) && (_ = _.prev), !(!g || g !== _) && (g.name === "ul" || g.name === "ol");
|
|
39000
38936
|
}, hy = function(u) {
|
|
39001
38937
|
return u && u.firstChild && u.firstChild === u.lastChild && function(f) {
|
|
@@ -39007,7 +38943,7 @@ Required: ` + f.join(", "));
|
|
|
39007
38943
|
}, v0 = function(u, f) {
|
|
39008
38944
|
var g = u.getParent(f, u.isBlock);
|
|
39009
38945
|
return g && g.nodeName === "LI" ? g : null;
|
|
39010
|
-
},
|
|
38946
|
+
}, n4 = function(u, f) {
|
|
39011
38947
|
var g = ln.after(u), _ = gl(f).prev(g);
|
|
39012
38948
|
return _ ? _.toRange() : null;
|
|
39013
38949
|
}, _0 = function(u, f, g) {
|
|
@@ -39032,7 +38968,7 @@ Required: ` + f.join(", "));
|
|
|
39032
38968
|
return !me || v0(f, me.getNode()) !== N;
|
|
39033
38969
|
};
|
|
39034
38970
|
return j(1) ? _0(N, P, R) : j(2) ? function(Y, ne, ie, me) {
|
|
39035
|
-
return me.insertAfter(ne.reverse(), Y),
|
|
38971
|
+
return me.insertAfter(ne.reverse(), Y), n4(ne[0], ie);
|
|
39036
38972
|
}(N, P, R, f) : function(Y, ne, ie, me) {
|
|
39037
38973
|
var Pe = function(ke, We) {
|
|
39038
38974
|
var we = We.cloneRange(), at = We.cloneRange();
|
|
@@ -39040,9 +38976,9 @@ Required: ` + f.join(", "));
|
|
|
39040
38976
|
}(Y, me), je = Y.parentNode;
|
|
39041
38977
|
return je.insertBefore(Pe[0], Y), un.each(ne, function(ke) {
|
|
39042
38978
|
je.insertBefore(ke, Y);
|
|
39043
|
-
}), je.insertBefore(Pe[1], Y), je.removeChild(Y),
|
|
38979
|
+
}), je.insertBefore(Pe[1], Y), je.removeChild(Y), n4(ne[ne.length - 1], ie);
|
|
39044
38980
|
}(N, P, R, g);
|
|
39045
|
-
}, u2 = gh,
|
|
38981
|
+
}, u2 = gh, o4 = function(u) {
|
|
39046
38982
|
var f = u.dom, g = bg(u.selection.getRng());
|
|
39047
38983
|
u.selection.setRng(g);
|
|
39048
38984
|
var _ = f.getParent(g.startContainer, u2);
|
|
@@ -39063,9 +38999,9 @@ Required: ` + f.join(", "));
|
|
|
39063
38999
|
var je = (P = j.getRng()).startContainer || (P.parentElement ? P.parentElement() : null), ke = u.getBody();
|
|
39064
39000
|
je === ke && j.isCollapsed() && Y.isBlock(ke.firstChild) && function(qe, Et) {
|
|
39065
39001
|
return Et && !qe.schema.getShortEndedElements()[Et.nodeName];
|
|
39066
|
-
}(u, ke.firstChild) && Y.isEmpty(ke.firstChild) && ((P = Y.createRng()).setStart(ke.firstChild, 0), P.setEnd(ke.firstChild, 0), j.setRng(P)), j.isCollapsed() ||
|
|
39002
|
+
}(u, ke.firstChild) && Y.isEmpty(ke.firstChild) && ((P = Y.createRng()).setStart(ke.firstChild, 0), P.setEnd(ke.firstChild, 0), j.setRng(P)), j.isCollapsed() || o4(u);
|
|
39067
39003
|
var We, we = { context: (_ = j.getNode()).nodeName.toLowerCase(), data: g.data, insert: !0 }, at = ne.parse(f, we);
|
|
39068
|
-
if (g.paste === !0 &&
|
|
39004
|
+
if (g.paste === !0 && t4(u.schema, at) && function(qe, Et) {
|
|
39069
39005
|
return !!v0(qe, Et);
|
|
39070
39006
|
}(Y, _))
|
|
39071
39007
|
return P = gy(me, Y, j.getRng(), at), j.setRng(P), void u.fire("SetContent", S);
|
|
@@ -39139,7 +39075,7 @@ Required: ` + f.join(", "));
|
|
|
39139
39075
|
}
|
|
39140
39076
|
}, vy = function(u, f) {
|
|
39141
39077
|
f(u), u.firstChild && vy(u.firstChild, f), u.next && vy(u.next, f);
|
|
39142
|
-
},
|
|
39078
|
+
}, r4 = function(u, f, g) {
|
|
39143
39079
|
var _ = function(b, S, N) {
|
|
39144
39080
|
var P = {}, R = {}, j = [];
|
|
39145
39081
|
for (var Y in N.firstChild && vy(N.firstChild, function(ie) {
|
|
@@ -39171,7 +39107,7 @@ Required: ` + f.join(", "));
|
|
|
39171
39107
|
}, b6 = function(u, f, g) {
|
|
39172
39108
|
return g.format = g.format ? g.format : "html", g.set = !0, g.content = c2(f) ? "" : f, g.no_events || u.fire("BeforeSetContent", g), c2(f) || (f = g.content), ae.from(u.getBody()).fold(re(f), function(_) {
|
|
39173
39109
|
return c2(f) ? function(b, S, N, P) {
|
|
39174
|
-
|
|
39110
|
+
r4(b.parser.getNodeFilters(), b.parser.getAttributeFilters(), N);
|
|
39175
39111
|
var R = fg({ validate: b.validate }, b.schema).serialize(N);
|
|
39176
39112
|
return P.content = Qs(Ft.fromDom(S)) ? R : un.trim(R), _y(b, P.content), P.no_events || b.fire("SetContent", P), N;
|
|
39177
39113
|
}(u, _, f, g) : function(b, S, N, P) {
|
|
@@ -39186,13 +39122,13 @@ Required: ` + f.join(", "));
|
|
|
39186
39122
|
return !Fo(g, S) && _(S);
|
|
39187
39123
|
}) : ae.none();
|
|
39188
39124
|
}(u, f).isSome();
|
|
39189
|
-
},
|
|
39125
|
+
}, i4 = function(u) {
|
|
39190
39126
|
return Z(u) ? u : ce;
|
|
39191
39127
|
}, d2 = function(u, f, g) {
|
|
39192
|
-
var _ = f(u), b =
|
|
39128
|
+
var _ = f(u), b = i4(g);
|
|
39193
39129
|
return _.orThunk(function() {
|
|
39194
39130
|
return b(u) ? ae.none() : function(S, N, P) {
|
|
39195
|
-
for (var R = S.dom, j =
|
|
39131
|
+
for (var R = S.dom, j = i4(P); R.parentNode; ) {
|
|
39196
39132
|
R = R.parentNode;
|
|
39197
39133
|
var Y = Ft.fromDom(R), ne = N(Y);
|
|
39198
39134
|
if (ne.isSome())
|
|
@@ -39203,7 +39139,7 @@ Required: ` + f.join(", "));
|
|
|
39203
39139
|
return ae.none();
|
|
39204
39140
|
}(u, f, b);
|
|
39205
39141
|
});
|
|
39206
|
-
}, b0 = J1,
|
|
39142
|
+
}, b0 = J1, a4 = function(u, f, g) {
|
|
39207
39143
|
var _ = u.formatter.get(g);
|
|
39208
39144
|
if (_) {
|
|
39209
39145
|
for (var b = 0; b < _.length; b++)
|
|
@@ -39214,11 +39150,11 @@ Required: ` + f.join(", "));
|
|
|
39214
39150
|
}, f2 = function(u, f, g, _) {
|
|
39215
39151
|
var b = u.dom.getRoot();
|
|
39216
39152
|
return f !== b && (f = u.dom.getParent(f, function(S) {
|
|
39217
|
-
return !!
|
|
39153
|
+
return !!a4(u, S, g) || S.parentNode === b || !!$c(u, S, g, _, !0);
|
|
39218
39154
|
}), $c(u, f, g, _));
|
|
39219
39155
|
}, yy = function(u, f, g) {
|
|
39220
39156
|
return !!b0(f, g.inline) || !!b0(f, g.block) || (g.selector ? f.nodeType === 1 && u.is(f, g.selector) : void 0);
|
|
39221
|
-
},
|
|
39157
|
+
}, s4 = function(u, f, g, _, b, S) {
|
|
39222
39158
|
var N, P, R, j = g[_];
|
|
39223
39159
|
if (g.onmatch)
|
|
39224
39160
|
return g.onmatch(f, g, _);
|
|
@@ -39237,7 +39173,7 @@ Required: ` + f.join(", "));
|
|
|
39237
39173
|
var S, N, P, R, j = u.formatter.get(g), Y = u.dom;
|
|
39238
39174
|
if (j && f) {
|
|
39239
39175
|
for (N = 0; N < j.length; N++)
|
|
39240
|
-
if (S = j[N], yy(u.dom, f, S) &&
|
|
39176
|
+
if (S = j[N], yy(u.dom, f, S) && s4(Y, f, S, "attributes", b, _) && s4(Y, f, S, "styles", b, _)) {
|
|
39241
39177
|
if (R = S.classes) {
|
|
39242
39178
|
for (P = 0; P < R.length; P++)
|
|
39243
39179
|
if (!u.dom.hasClass(f, Vl(R[P], _)))
|
|
@@ -39290,7 +39226,7 @@ Required: ` + f.join(", "));
|
|
|
39290
39226
|
}(u, b);
|
|
39291
39227
|
return u.formatter.matchNode(f, b, {}, S) ? _.concat([b]) : _;
|
|
39292
39228
|
}, []);
|
|
39293
|
-
}, wg = li,
|
|
39229
|
+
}, wg = li, l4 = "_mce_caret", u4 = function(u) {
|
|
39294
39230
|
return function(f) {
|
|
39295
39231
|
for (var g = []; f; ) {
|
|
39296
39232
|
if (f.nodeType === 3 && f.nodeValue !== wg || f.childNodes.length > 1)
|
|
@@ -39309,11 +39245,11 @@ Required: ` + f.join(", "));
|
|
|
39309
39245
|
return null;
|
|
39310
39246
|
}, Ul = function(u) {
|
|
39311
39247
|
var f = Ft.fromTag("span");
|
|
39312
|
-
return Xl(f, { id:
|
|
39248
|
+
return Xl(f, { id: l4, "data-mce-bogus": "1", "data-mce-type": "format-caret" }), u && ai(f, Ft.fromText(wg)), f;
|
|
39313
39249
|
}, w0 = function(u, f, g) {
|
|
39314
39250
|
g === void 0 && (g = !0);
|
|
39315
39251
|
var _ = u.dom, b = u.selection;
|
|
39316
|
-
if (
|
|
39252
|
+
if (u4(f))
|
|
39317
39253
|
ap(u, !1, Ft.fromDom(f), g);
|
|
39318
39254
|
else {
|
|
39319
39255
|
var S = b.getRng(), N = _.getParent(f, _.isBlock), P = S.startContainer, R = S.startOffset, j = S.endContainer, Y = S.endOffset, ne = function(ie) {
|
|
@@ -39328,16 +39264,16 @@ Required: ` + f.join(", "));
|
|
|
39328
39264
|
if (f)
|
|
39329
39265
|
w0(u, f, g);
|
|
39330
39266
|
else if (!(f = hu(u.getBody(), b.getStart())))
|
|
39331
|
-
for (; f = _.get(
|
|
39267
|
+
for (; f = _.get(l4); )
|
|
39332
39268
|
w0(u, f, !1);
|
|
39333
39269
|
}, p2 = function(u, f) {
|
|
39334
39270
|
return u.appendChild(f), f;
|
|
39335
|
-
},
|
|
39271
|
+
}, c4 = function(u, f) {
|
|
39336
39272
|
var g = Ge(u, function(_, b) {
|
|
39337
39273
|
return p2(_, b.cloneNode(!1));
|
|
39338
39274
|
}, f);
|
|
39339
39275
|
return p2(g, g.ownerDocument.createTextNode(wg));
|
|
39340
|
-
},
|
|
39276
|
+
}, d4 = function(u, f, g, _) {
|
|
39341
39277
|
var b, S, N, P = u.dom, R = u.selection, j = [], Y = R.getRng(), ne = Y.startContainer, ie = Y.startOffset;
|
|
39342
39278
|
for (S = ne, ne.nodeType === 3 && (ie !== ne.nodeValue.length && (b = !0), S = S.parentNode); S; ) {
|
|
39343
39279
|
if ($c(u, S, f, g, _)) {
|
|
@@ -39369,7 +39305,7 @@ Required: ` + f.join(", "));
|
|
|
39369
39305
|
return bn.add(qe, yn), hn.remove(bt, Tt, yn, Zt), bn.remove(yn), ae.some(yn);
|
|
39370
39306
|
}
|
|
39371
39307
|
return ae.none();
|
|
39372
|
-
}(u, ke, N, f, g, _), we =
|
|
39308
|
+
}(u, ke, N, f, g, _), we = c4(j.concat(We.toArray()), ke);
|
|
39373
39309
|
w0(u, je, !1), R.setCursorLocation(we, 1), P.isEmpty(N) && P.remove(N);
|
|
39374
39310
|
}
|
|
39375
39311
|
}, wy = function(u) {
|
|
@@ -39379,7 +39315,7 @@ Required: ` + f.join(", "));
|
|
|
39379
39315
|
C0(g, null, !1), _ !== 8 && _ !== 46 || !b.isCollapsed() || b.getStart().innerHTML !== wg || C0(g, hu(S, b.getStart())), _ !== 37 && _ !== 39 || C0(g, hu(S, b.getStart()));
|
|
39380
39316
|
})(u, f.keyCode);
|
|
39381
39317
|
});
|
|
39382
|
-
},
|
|
39318
|
+
}, f4 = function(u, f) {
|
|
39383
39319
|
return u.schema.getTextInlineElements().hasOwnProperty(ur(f)) && !bl(f.dom) && !si(f.dom);
|
|
39384
39320
|
}, lp = {}, Cy = Ye, Ey = Re;
|
|
39385
39321
|
(function(u, f) {
|
|
@@ -39414,7 +39350,7 @@ Required: ` + f.join(", "));
|
|
|
39414
39350
|
}), f;
|
|
39415
39351
|
}
|
|
39416
39352
|
return g;
|
|
39417
|
-
},
|
|
39353
|
+
}, p4 = function(u, f, g, _) {
|
|
39418
39354
|
if (_ && f.merge_siblings !== !1) {
|
|
39419
39355
|
var b = zm(u, Ac(_), _);
|
|
39420
39356
|
zm(u, b, Ac(b, !0));
|
|
@@ -39433,7 +39369,7 @@ Required: ` + f.join(", "));
|
|
|
39433
39369
|
S.nodeName === "SPAN" && b.getAttribs(S).length === 0 && b.remove(S, !0);
|
|
39434
39370
|
}(u, _);
|
|
39435
39371
|
};
|
|
39436
|
-
}, Cg = eu([{ keep: [] }, { rename: ["name"] }, { removed: [] }]), ky = /^(src|href|style)$/, Eg = un.each, Cl = J1,
|
|
39372
|
+
}, Cg = eu([{ keep: [] }, { rename: ["name"] }, { removed: [] }]), ky = /^(src|href|style)$/, Eg = un.each, Cl = J1, m4 = function(u, f, g) {
|
|
39437
39373
|
return u.isChildOf(f, g) && f !== g && !u.isBlock(g);
|
|
39438
39374
|
}, v2 = function(u, f, g) {
|
|
39439
39375
|
var _, b;
|
|
@@ -39442,7 +39378,7 @@ Required: ` + f.join(", "));
|
|
|
39442
39378
|
!g && b && b--, _ = _.childNodes[b > S ? S : b];
|
|
39443
39379
|
}
|
|
39444
39380
|
return io(_) && g && b >= _.nodeValue.length && (_ = new Ai(_, u.getBody()).next() || _), io(_) && !g && b === 0 && (_ = new Ai(_, u.getBody()).prev() || _), _;
|
|
39445
|
-
},
|
|
39381
|
+
}, h4 = function(u, f) {
|
|
39446
39382
|
var g = f ? "firstChild" : "lastChild";
|
|
39447
39383
|
if (function(b) {
|
|
39448
39384
|
return /^(TR|TH|TD)$/.test(b.nodeName);
|
|
@@ -39454,7 +39390,7 @@ Required: ` + f.join(", "));
|
|
|
39454
39390
|
}, Ty = function(u, f, g, _) {
|
|
39455
39391
|
var b = u.create(g, _);
|
|
39456
39392
|
return f.parentNode.insertBefore(b, f), b.appendChild(f), b;
|
|
39457
|
-
},
|
|
39393
|
+
}, g4 = function(u, f, g, _, b) {
|
|
39458
39394
|
var S = Ft.fromDom(f), N = Ft.fromDom(u.create(_, b)), P = g ? Qa(S) : ds(S);
|
|
39459
39395
|
return Kn(N, P), g ? (aa(S, N), Rn(N, S)) : (pi(S, N), ai(N, S)), N.dom;
|
|
39460
39396
|
}, _2 = function(u, f, g, _) {
|
|
@@ -39514,7 +39450,7 @@ Required: ` + f.join(", "));
|
|
|
39514
39450
|
return Ny(u, f, g, _, _).fold(re(_), function(b) {
|
|
39515
39451
|
return u.dom.createFragment().appendChild(_), u.dom.rename(_, b);
|
|
39516
39452
|
}, re(null));
|
|
39517
|
-
},
|
|
39453
|
+
}, _4 = function(u, f, g, _, b) {
|
|
39518
39454
|
var S = u.formatter.get(f), N = S[0], P = !0, R = u.dom, j = u.selection, Y = function(ke) {
|
|
39519
39455
|
var We = function(we, at, qe, Et, bt) {
|
|
39520
39456
|
var Tt;
|
|
@@ -39534,7 +39470,7 @@ Required: ` + f.join(", "));
|
|
|
39534
39470
|
;
|
|
39535
39471
|
bn && (Qt && bn.appendChild(Qt), Un || (Un = bn), Qt = bn);
|
|
39536
39472
|
}
|
|
39537
|
-
!Tt || Zt.mixed && yn.isBlock(qe) || (Et = yn.split(qe, Et)), Qt && (bt.parentNode.insertBefore(Qt, bt), Un.appendChild(bt), Zt.inline &&
|
|
39473
|
+
!Tt || Zt.mixed && yn.isBlock(qe) || (Et = yn.split(qe, Et)), Qt && (bt.parentNode.insertBefore(Qt, bt), Un.appendChild(bt), Zt.inline && p4(yn, Zt, 0, Qt));
|
|
39538
39474
|
}
|
|
39539
39475
|
return Et;
|
|
39540
39476
|
}(u, S, We, ke, ke, !0, N, g);
|
|
@@ -39559,12 +39495,12 @@ Required: ` + f.join(", "));
|
|
|
39559
39495
|
var We, we, at = Gf(u, ke, S, ke.collapsed);
|
|
39560
39496
|
if (N.split) {
|
|
39561
39497
|
if (at = pr(at), (We = v2(u, at, !0)) !== (we = v2(u, at))) {
|
|
39562
|
-
if (We =
|
|
39498
|
+
if (We = h4(We, !0), we = h4(we, !1), m4(R, We, we)) {
|
|
39563
39499
|
var qe = ae.from(We.firstChild).getOr(We);
|
|
39564
|
-
return Y(
|
|
39500
|
+
return Y(g4(R, qe, !0, "span", { id: "_start", "data-mce-type": "bookmark" })), void ie(!0);
|
|
39565
39501
|
}
|
|
39566
|
-
if (
|
|
39567
|
-
return qe = ae.from(we.lastChild).getOr(we), Y(
|
|
39502
|
+
if (m4(R, we, We))
|
|
39503
|
+
return qe = ae.from(we.lastChild).getOr(we), Y(g4(R, qe, !1, "span", { id: "_end", "data-mce-type": "bookmark" })), void ie(!1);
|
|
39568
39504
|
We = Ty(R, We, "span", { id: "_start", "data-mce-type": "bookmark" }), we = Ty(R, we, "span", { id: "_end", "data-mce-type": "bookmark" });
|
|
39569
39505
|
var Et = R.createRng();
|
|
39570
39506
|
Et.setStartAfter(We), Et.setEndBefore(we), Dc(R, Et, function(bt) {
|
|
@@ -39591,7 +39527,7 @@ Required: ` + f.join(", "));
|
|
|
39591
39527
|
} else
|
|
39592
39528
|
me(_);
|
|
39593
39529
|
else if (R.getContentEditable(j.getNode()) !== "false")
|
|
39594
|
-
j.isCollapsed() && N.inline && !Rd(u).length ?
|
|
39530
|
+
j.isCollapsed() && N.inline && !Rd(u).length ? d4(u, f, g, b) : (xm(j, !0, function() {
|
|
39595
39531
|
Sm(u, me);
|
|
39596
39532
|
}), N.inline && by(u, f, g, j.getStart()) && Od(R, j, j.getRng()), u.nodeChanged());
|
|
39597
39533
|
else {
|
|
@@ -39599,9 +39535,9 @@ Required: ` + f.join(", "));
|
|
|
39599
39535
|
for (var je = 0; je < S.length && (!S[je].ceFalseOverride || !Hm(u, S[je], g, _, _)); je++)
|
|
39600
39536
|
;
|
|
39601
39537
|
}
|
|
39602
|
-
},
|
|
39603
|
-
|
|
39604
|
-
|
|
39538
|
+
}, y4 = un.each, E6 = function(u, f, g, _) {
|
|
39539
|
+
y4(f, function(b) {
|
|
39540
|
+
y4(u.dom.select(b.inline, _), function(S) {
|
|
39605
39541
|
Sy(S) && Hm(u, b, g, S, b.exact ? S : null);
|
|
39606
39542
|
}), function(S, N, P) {
|
|
39607
39543
|
if (N.clear_child_styles) {
|
|
@@ -39614,7 +39550,7 @@ Required: ` + f.join(", "));
|
|
|
39614
39550
|
}
|
|
39615
39551
|
}(u.dom, b, _);
|
|
39616
39552
|
});
|
|
39617
|
-
}, Xu = un.each,
|
|
39553
|
+
}, Xu = un.each, b4 = function(u, f) {
|
|
39618
39554
|
return or(u, f);
|
|
39619
39555
|
}, Iy = function(u, f, g, _) {
|
|
39620
39556
|
var b = u.formatter.get(f), S = b[0], N = !_ && u.selection.isCollapsed(), P = u.dom, R = u.selection, j = function(we, at) {
|
|
@@ -39663,10 +39599,10 @@ Required: ` + f.join(", "));
|
|
|
39663
39599
|
}
|
|
39664
39600
|
if (Wf(S)) {
|
|
39665
39601
|
var Jt = Y(b, yn);
|
|
39666
|
-
if (io(yn) && Wv(we, yn.parentNode) && Y(b, yn.parentNode), !
|
|
39602
|
+
if (io(yn) && Wv(we, yn.parentNode) && Y(b, yn.parentNode), !b4(S, "inline") || Jt)
|
|
39667
39603
|
return void (Qt = null);
|
|
39668
39604
|
}
|
|
39669
|
-
!Tt || Nn || !gu(u, Zt, Xt) || !gu(u, Tn, Zt) || !Et && yn.nodeType === 3 && yn.nodeValue.length === 1 && yn.nodeValue.charCodeAt(0) === 65279 || bl(yn) ||
|
|
39605
|
+
!Tt || Nn || !gu(u, Zt, Xt) || !gu(u, Tn, Zt) || !Et && yn.nodeType === 3 && yn.nodeValue.length === 1 && yn.nodeValue.charCodeAt(0) === 65279 || bl(yn) || b4(S, "inline") && we.isBlock(yn) ? (Qt = null, Xu(un.grep(yn.childNodes), Un), Nn && (Tt = Ht), Qt = null) : (Qt || (Qt = we.clone(hn, !1), yn.parentNode.insertBefore(Qt, yn), bt.push(Qt)), Qt.appendChild(yn));
|
|
39670
39606
|
}
|
|
39671
39607
|
};
|
|
39672
39608
|
Xu(bn, Un);
|
|
@@ -39712,7 +39648,7 @@ Required: ` + f.join(", "));
|
|
|
39712
39648
|
Nn.styles && (Nn.styles.color || Nn.styles.textDecoration) && (un.walk(Xt, Tn, "childNodes"), Tn(Xt));
|
|
39713
39649
|
}(we, S, 0, bn), function(yn, Nn, Ht, Xt) {
|
|
39714
39650
|
Nn.inline !== "sub" && Nn.inline !== "sup" || (xy(Xt, E0(yn, "fontSize"), g2(yn, "fontSize", "")), yn.remove(yn.select(Nn.inline === "sup" ? "sub" : "sup", Xt), !0));
|
|
39715
|
-
}(we, S, 0, bn),
|
|
39651
|
+
}(we, S, 0, bn), p4(we, S, 0, bn)) : we.remove(bn, !0);
|
|
39716
39652
|
});
|
|
39717
39653
|
};
|
|
39718
39654
|
if (P.getContentEditable(R.getNode()) !== "false") {
|
|
@@ -39769,7 +39705,7 @@ Required: ` + f.join(", "));
|
|
|
39769
39705
|
un.each(P, function(ne) {
|
|
39770
39706
|
return u.formatter.matchNode(ne, Y, {}, j.similar) ? (b.indexOf(Y) === -1 && (Je(j.callbacks, function(ie) {
|
|
39771
39707
|
ie(!0, { node: ne, format: Y, parents: P });
|
|
39772
|
-
}), S[Y] = j.callbacks), N[Y] = j.callbacks, !1) : !
|
|
39708
|
+
}), S[Y] = j.callbacks), N[Y] = j.callbacks, !1) : !a4(u, ne, Y) && void 0;
|
|
39773
39709
|
});
|
|
39774
39710
|
});
|
|
39775
39711
|
var R = S6(g.get(), N, f, P);
|
|
@@ -39810,23 +39746,23 @@ Required: ` + f.join(", "));
|
|
|
39810
39746
|
return { element: u, width: f, rows: g };
|
|
39811
39747
|
}, xg = function(u, f) {
|
|
39812
39748
|
return { element: u, cells: f };
|
|
39813
|
-
},
|
|
39749
|
+
}, w4 = function(u, f) {
|
|
39814
39750
|
return { x: u, y: f };
|
|
39815
|
-
},
|
|
39751
|
+
}, C4 = function(u, f) {
|
|
39816
39752
|
var g = parseInt(Gi(u, f), 10);
|
|
39817
39753
|
return isNaN(g) ? 1 : g;
|
|
39818
39754
|
}, x6 = function(u, f, g) {
|
|
39819
39755
|
var _ = u.rows;
|
|
39820
39756
|
return !!(_[g] ? _[g].cells : [])[f];
|
|
39821
|
-
},
|
|
39757
|
+
}, E4 = function(u) {
|
|
39822
39758
|
return St(u, function(f, g) {
|
|
39823
39759
|
return g.cells.length > f ? g.cells.length : f;
|
|
39824
39760
|
}, 0);
|
|
39825
|
-
},
|
|
39761
|
+
}, S4 = function(u, f) {
|
|
39826
39762
|
for (var g = u.rows, _ = 0; _ < g.length; _++)
|
|
39827
39763
|
for (var b = g[_].cells, S = 0; S < b.length; S++)
|
|
39828
39764
|
if (Fo(b[S], f))
|
|
39829
|
-
return ae.some(
|
|
39765
|
+
return ae.some(w4(S, _));
|
|
39830
39766
|
return ae.none();
|
|
39831
39767
|
}, Oy = function(u, f, g, _, b) {
|
|
39832
39768
|
for (var S = [], N = u.rows, P = g; P <= b; P++) {
|
|
@@ -39839,7 +39775,7 @@ Required: ` + f.join(", "));
|
|
|
39839
39775
|
return Je(da(u, "tr"), function(g, _) {
|
|
39840
39776
|
Je(da(g, "td,th"), function(b, S) {
|
|
39841
39777
|
(function(N, P, R, j, Y) {
|
|
39842
|
-
for (var ne =
|
|
39778
|
+
for (var ne = C4(Y, "rowspan"), ie = C4(Y, "colspan"), me = N.rows, Pe = R; Pe < R + ne; Pe++) {
|
|
39843
39779
|
me[Pe] || (me[Pe] = xg(fa(j), []));
|
|
39844
39780
|
for (var je = P; je < P + ie; je++)
|
|
39845
39781
|
me[Pe].cells[je] = Pe === R && je === P ? Y : di(Y);
|
|
@@ -39850,7 +39786,7 @@ Required: ` + f.join(", "));
|
|
|
39850
39786
|
return P;
|
|
39851
39787
|
}(f, S, _), _, g, b);
|
|
39852
39788
|
});
|
|
39853
|
-
}), jm(f.element,
|
|
39789
|
+
}), jm(f.element, E4(f.rows), f.rows);
|
|
39854
39790
|
}, zl = function(u) {
|
|
39855
39791
|
return function(f, g) {
|
|
39856
39792
|
var _ = di(f.element), b = Ft.fromTag("tbody");
|
|
@@ -39865,15 +39801,15 @@ Required: ` + f.join(", "));
|
|
|
39865
39801
|
});
|
|
39866
39802
|
}(u));
|
|
39867
39803
|
}, k6 = function(u, f, g) {
|
|
39868
|
-
return
|
|
39869
|
-
return
|
|
39804
|
+
return S4(u, f).bind(function(_) {
|
|
39805
|
+
return S4(u, g).map(function(b) {
|
|
39870
39806
|
return function(S, N, P) {
|
|
39871
39807
|
var R = N.x, j = N.y, Y = P.x, ne = P.y, ie = j < ne ? Oy(S, R, j, Y, ne) : Oy(S, R, ne, Y, j);
|
|
39872
|
-
return jm(S.element,
|
|
39808
|
+
return jm(S.element, E4(ie), ie);
|
|
39873
39809
|
}(u, _, b);
|
|
39874
39810
|
});
|
|
39875
39811
|
});
|
|
39876
|
-
},
|
|
39812
|
+
}, x4 = function(u, f) {
|
|
39877
39813
|
return Ot(u, function(g) {
|
|
39878
39814
|
return ur(g) === "li" && Sr(g, f);
|
|
39879
39815
|
}).fold(re([]), function(g) {
|
|
@@ -39891,13 +39827,13 @@ Required: ` + f.join(", "));
|
|
|
39891
39827
|
}, Dy = function(u, f) {
|
|
39892
39828
|
var g = Ft.fromDom(f.commonAncestorContainer), _ = yu(g, u), b = Ue(_, function(P) {
|
|
39893
39829
|
return yf(P) || xn(P);
|
|
39894
|
-
}), S =
|
|
39830
|
+
}), S = x4(_, f), N = b.concat(S.length ? S : function(P) {
|
|
39895
39831
|
return Vp(P) ? Pr(P).filter(Ou).fold(re([]), function(R) {
|
|
39896
39832
|
return [P, R];
|
|
39897
39833
|
}) : Ou(P) ? [P] : [];
|
|
39898
39834
|
}(g));
|
|
39899
39835
|
return Qe(N, di);
|
|
39900
|
-
},
|
|
39836
|
+
}, k4 = function() {
|
|
39901
39837
|
return b2([]);
|
|
39902
39838
|
}, T6 = function(u, f) {
|
|
39903
39839
|
return g = Ft.fromDom(f.cloneContents()), _ = Dy(u, f), b = St(_, function(S, N) {
|
|
@@ -39910,12 +39846,12 @@ Required: ` + f.join(", "));
|
|
|
39910
39846
|
return k6(P, S, N).map(function(R) {
|
|
39911
39847
|
return b2([zl(R)]);
|
|
39912
39848
|
});
|
|
39913
|
-
}).getOrThunk(
|
|
39849
|
+
}).getOrThunk(k4);
|
|
39914
39850
|
var g, _;
|
|
39915
39851
|
}, I6 = function(u, f) {
|
|
39916
39852
|
var g = t0(f, u);
|
|
39917
39853
|
return g.length > 0 ? N6(u, g) : function(_, b) {
|
|
39918
|
-
return b.length > 0 && b[0].collapsed ?
|
|
39854
|
+
return b.length > 0 && b[0].collapsed ? k4() : T6(_, b[0]);
|
|
39919
39855
|
}(u, f);
|
|
39920
39856
|
}, kg = function(u, f) {
|
|
39921
39857
|
return f >= 0 && f < u.length && Ic(u.charAt(f));
|
|
@@ -39924,7 +39860,7 @@ Required: ` + f.join(", "));
|
|
|
39924
39860
|
return f ? function(_) {
|
|
39925
39861
|
return _.replace(/^[ \f\n\r\t\v]+/, "");
|
|
39926
39862
|
}(g) : g;
|
|
39927
|
-
},
|
|
39863
|
+
}, T4 = function(u, f, g) {
|
|
39928
39864
|
if (g === void 0 && (g = {}), g.get = !0, g.format = f, g.selection = !0, (g = u.fire("BeforeGetContent", g)).isDefaultPrevented())
|
|
39929
39865
|
return u.fire("GetContent", g), g.content;
|
|
39930
39866
|
if (g.format === "text")
|
|
@@ -39948,7 +39884,7 @@ Required: ` + f.join(", "));
|
|
|
39948
39884
|
return Y && P.appendChild(Y), b.selection.serializer.serialize(P, S);
|
|
39949
39885
|
}(u, g);
|
|
39950
39886
|
return g.format === "tree" ? _ : (g.content = u.selection.isCollapsed() ? "" : _, u.fire("GetContent", g), g.content);
|
|
39951
|
-
},
|
|
39887
|
+
}, N4 = function(u) {
|
|
39952
39888
|
return Gn(u) ? u.outerHTML : io(u) ? Ol.encodeRaw(u.data, !1) : Ga(u) ? "<!--" + u.data + "-->" : "";
|
|
39953
39889
|
}, A6 = function(u, f, g) {
|
|
39954
39890
|
var _ = function(S) {
|
|
@@ -39963,7 +39899,7 @@ Required: ` + f.join(", "));
|
|
|
39963
39899
|
} else
|
|
39964
39900
|
u.appendChild(_);
|
|
39965
39901
|
}, O6 = function(u, f) {
|
|
39966
|
-
var g, _, b, S, N, P, R, j, Y, ne = Qe(Dn(f.childNodes),
|
|
39902
|
+
var g, _, b, S, N, P, R, j, Y, ne = Qe(Dn(f.childNodes), N4);
|
|
39967
39903
|
return function(ie, me) {
|
|
39968
39904
|
var Pe = 0;
|
|
39969
39905
|
Je(ie, function(je) {
|
|
@@ -40012,7 +39948,7 @@ Required: ` + f.join(", "));
|
|
|
40012
39948
|
}
|
|
40013
39949
|
}, Y = [], P(0, g.length, 0, _.length, Y), Y), f), f;
|
|
40014
39950
|
}, _o = ei(ae.none()), Py = function(u) {
|
|
40015
|
-
var f, g = (f = u.getBody(), Ue(Qe(Dn(f.childNodes),
|
|
39951
|
+
var f, g = (f = u.getBody(), Ue(Qe(Dn(f.childNodes), N4), function(S) {
|
|
40016
39952
|
return S.length > 0;
|
|
40017
39953
|
})), _ = kn(g, function(S) {
|
|
40018
39954
|
var N = $m(u.serializer, S);
|
|
@@ -40150,11 +40086,11 @@ Required: ` + f.join(", "));
|
|
|
40150
40086
|
}, apply: function(f, g, _) {
|
|
40151
40087
|
return Iy(u, f, g, _);
|
|
40152
40088
|
}, remove: function(f, g, _, b) {
|
|
40153
|
-
return
|
|
40089
|
+
return _4(u, f, g, _, b);
|
|
40154
40090
|
}, toggle: function(f, g, _) {
|
|
40155
40091
|
return function(b, S, N, P) {
|
|
40156
40092
|
var R = b.formatter.get(S);
|
|
40157
|
-
!by(b, S, N, P) || "toggle" in R[0] && !R[0].toggle ? Iy(b, S, N, P) :
|
|
40093
|
+
!by(b, S, N, P) || "toggle" in R[0] && !R[0].toggle ? Iy(b, S, N, P) : _4(b, S, N, P);
|
|
40158
40094
|
}(u, f, g, _);
|
|
40159
40095
|
}, formatChanged: function(f, g, _, b) {
|
|
40160
40096
|
return y2(u, f, g, _, b);
|
|
@@ -40192,7 +40128,7 @@ Required: ` + f.join(", "));
|
|
|
40192
40128
|
}), g.fire("VisualAid", { element: _, hasVisual: g.hasVisual });
|
|
40193
40129
|
}(u, f);
|
|
40194
40130
|
} }, selection: { getContent: function(f, g) {
|
|
40195
|
-
return
|
|
40131
|
+
return T4(u, f, g);
|
|
40196
40132
|
} }, raw: { getModel: function() {
|
|
40197
40133
|
return ae.none();
|
|
40198
40134
|
} } };
|
|
@@ -40270,7 +40206,7 @@ Required: ` + f.join(", "));
|
|
|
40270
40206
|
if (f)
|
|
40271
40207
|
return f;
|
|
40272
40208
|
throw new Error("Failed to get RTC instance not yet initialized.");
|
|
40273
|
-
},
|
|
40209
|
+
}, I4 = function(u, f) {
|
|
40274
40210
|
return f === void 0 && (f = {}), function(g, _, b) {
|
|
40275
40211
|
return yi(g).selection.getContent(_, b);
|
|
40276
40212
|
}(u, f.format ? f.format : "html", f);
|
|
@@ -40299,7 +40235,7 @@ Required: ` + f.join(", "));
|
|
|
40299
40235
|
}(S, _);
|
|
40300
40236
|
});
|
|
40301
40237
|
});
|
|
40302
|
-
},
|
|
40238
|
+
}, A4 = function(u, f, g) {
|
|
40303
40239
|
g === void 0 && (g = {});
|
|
40304
40240
|
var _ = function(S, N) {
|
|
40305
40241
|
return ht(ht({ format: "html" }, S), { set: !0, selection: !0, content: N });
|
|
@@ -40332,7 +40268,7 @@ Required: ` + f.join(", "));
|
|
|
40332
40268
|
return !!u.select;
|
|
40333
40269
|
}, I0 = function(u) {
|
|
40334
40270
|
return !(!u || !u.ownerDocument) && ia(Ft.fromDom(u.ownerDocument), Ft.fromDom(u));
|
|
40335
|
-
},
|
|
40271
|
+
}, O4 = function(u, f, g, _) {
|
|
40336
40272
|
var b, S, N = function(ke, We) {
|
|
40337
40273
|
var we, at;
|
|
40338
40274
|
return { selectorChangedWithUnbind: function(qe, Et) {
|
|
@@ -40355,7 +40291,7 @@ Required: ` + f.join(", "));
|
|
|
40355
40291
|
} };
|
|
40356
40292
|
} };
|
|
40357
40293
|
}(u, _).selectorChangedWithUnbind, P = function(ke, We) {
|
|
40358
|
-
return
|
|
40294
|
+
return A4(_, ke, We);
|
|
40359
40295
|
}, R = function(ke) {
|
|
40360
40296
|
var We = Y();
|
|
40361
40297
|
We.collapse(!!ke), ne(We);
|
|
@@ -40418,7 +40354,7 @@ Required: ` + f.join(", "));
|
|
|
40418
40354
|
var we = u.createRng();
|
|
40419
40355
|
W(ke) && W(We) ? (we.setStart(ke, We), we.setEnd(ke, We), ne(we), R(!1)) : (wl(u, we, _.getBody(), !0), ne(we));
|
|
40420
40356
|
}, getContent: function(ke) {
|
|
40421
|
-
return
|
|
40357
|
+
return I4(_, ke);
|
|
40422
40358
|
}, setContent: P, getBookmark: function(ke, We) {
|
|
40423
40359
|
return Pe.getBookmark(ke, We);
|
|
40424
40360
|
}, moveToBookmark: function(ke) {
|
|
@@ -40525,7 +40461,7 @@ Required: ` + f.join(", "));
|
|
|
40525
40461
|
for (var _ = new Uint8Array(g.length), b = 0; b < _.length; b++)
|
|
40526
40462
|
_[b] = g.charCodeAt(b);
|
|
40527
40463
|
return ae.some(new Blob([_], { type: u }));
|
|
40528
|
-
},
|
|
40464
|
+
}, D4 = function(u) {
|
|
40529
40465
|
return u.indexOf("blob:") === 0 ? function(g) {
|
|
40530
40466
|
return new ko(function(_, b) {
|
|
40531
40467
|
var S = function() {
|
|
@@ -40553,13 +40489,13 @@ Required: ` + f.join(", "));
|
|
|
40553
40489
|
var b, S;
|
|
40554
40490
|
if (f.src.indexOf("blob:") !== 0) {
|
|
40555
40491
|
var N = Fy(f.src), P = N.data, R = N.type;
|
|
40556
|
-
b = P, (S = u.getByData(b, R)) ? g({ image: f, blobInfo: S }) :
|
|
40492
|
+
b = P, (S = u.getByData(b, R)) ? g({ image: f, blobInfo: S }) : D4(f.src).then(function(j) {
|
|
40557
40493
|
S = u.create(N2(), j, b), u.add(S), g({ image: f, blobInfo: S });
|
|
40558
40494
|
}, function(j) {
|
|
40559
40495
|
_(j);
|
|
40560
40496
|
});
|
|
40561
40497
|
} else
|
|
40562
|
-
(S = u.getByUri(f.src)) ? g({ image: f, blobInfo: S }) :
|
|
40498
|
+
(S = u.getByUri(f.src)) ? g({ image: f, blobInfo: S }) : D4(f.src).then(function(j) {
|
|
40563
40499
|
(function(Y) {
|
|
40564
40500
|
return new ko(function(ne) {
|
|
40565
40501
|
var ie = new FileReader();
|
|
@@ -40648,7 +40584,7 @@ Required: ` + f.join(", "));
|
|
|
40648
40584
|
g && u.addAttributeFilter("src", function(b) {
|
|
40649
40585
|
return Je(b, _);
|
|
40650
40586
|
});
|
|
40651
|
-
}, Ig = un.makeMap, Ag = un.each,
|
|
40587
|
+
}, Ig = un.makeMap, Ag = un.each, P4 = un.explode, R6 = un.extend, cp = function(u, f) {
|
|
40652
40588
|
f === void 0 && (f = Si());
|
|
40653
40589
|
var g = {}, _ = [], b = {}, S = {};
|
|
40654
40590
|
(u = u || {}).validate = !("validate" in u) || u.validate, u.root_name = u.root_name || "body";
|
|
@@ -40658,7 +40594,7 @@ Required: ` + f.join(", "));
|
|
|
40658
40594
|
(Y = _[j].name) in R.attributes.map && ((ne = S[Y]) ? ne.push(R) : S[Y] = [R]);
|
|
40659
40595
|
return R;
|
|
40660
40596
|
}, P = { schema: f, addAttributeFilter: function(R, j) {
|
|
40661
|
-
Ag(
|
|
40597
|
+
Ag(P4(R), function(Y) {
|
|
40662
40598
|
var ne;
|
|
40663
40599
|
for (ne = 0; ne < _.length; ne++)
|
|
40664
40600
|
if (_[ne].name === Y)
|
|
@@ -40668,7 +40604,7 @@ Required: ` + f.join(", "));
|
|
|
40668
40604
|
}, getAttributeFilters: function() {
|
|
40669
40605
|
return [].concat(_);
|
|
40670
40606
|
}, addNodeFilter: function(R, j) {
|
|
40671
|
-
Ag(
|
|
40607
|
+
Ag(P4(R), function(Y) {
|
|
40672
40608
|
var ne = g[Y];
|
|
40673
40609
|
ne || (g[Y] = ne = []), ne.push(j);
|
|
40674
40610
|
});
|
|
@@ -40974,10 +40910,10 @@ Required: ` + f.join(", "));
|
|
|
40974
40910
|
}, setRules: function(N) {
|
|
40975
40911
|
b.setValidElements(N);
|
|
40976
40912
|
}, addTempAttr: oe(Dg, S, g), getTempAttrs: re(g), getNodeFilters: S.getNodeFilters, getAttributeFilters: S.getAttributeFilters };
|
|
40977
|
-
},
|
|
40913
|
+
}, B4 = function(u, f) {
|
|
40978
40914
|
var g = M6(u, f);
|
|
40979
40915
|
return { schema: g.schema, addNodeFilter: g.addNodeFilter, addAttributeFilter: g.addAttributeFilter, serialize: g.serialize, addRules: g.addRules, setRules: g.setRules, addTempAttr: g.addTempAttr, getTempAttrs: g.getTempAttrs, getNodeFilters: g.getNodeFilters, getAttributeFilters: g.getAttributeFilters };
|
|
40980
|
-
},
|
|
40916
|
+
}, R4 = function(u, f) {
|
|
40981
40917
|
return f === void 0 && (f = {}), function(g, _, b) {
|
|
40982
40918
|
return Jd(g).editor.getContent(_, b);
|
|
40983
40919
|
}(u, f, f.format ? f.format : "html");
|
|
@@ -40989,7 +40925,7 @@ Required: ` + f.join(", "));
|
|
|
40989
40925
|
return ae.from(u).each(function(f) {
|
|
40990
40926
|
return f.destroy();
|
|
40991
40927
|
});
|
|
40992
|
-
},
|
|
40928
|
+
}, M4 = function(u) {
|
|
40993
40929
|
if (!u.removed) {
|
|
40994
40930
|
var f = u._selectionOverrides, g = u.editorUpload, _ = u.getBody(), b = u.getElement();
|
|
40995
40931
|
_ && u.save({ is_removing: !0 }), u.removed = !0, u.unbindAllNativeEvents(), u.hasHiddenInput && b && O2.remove(b.nextSibling), function(S) {
|
|
@@ -41000,7 +40936,7 @@ Required: ` + f.join(", "));
|
|
|
41000
40936
|
S.fire("detach");
|
|
41001
40937
|
}(u), O2.remove(u.getContainer()), D2(f), D2(g), u.destroy();
|
|
41002
40938
|
}
|
|
41003
|
-
},
|
|
40939
|
+
}, $4 = function(u, f) {
|
|
41004
40940
|
var g = u.selection, _ = u.dom;
|
|
41005
40941
|
u.destroyed || (f || u.removed ? (f || (u.editorManager.off("beforeunload", u._beforeUnload), u.theme && u.theme.destroy && u.theme.destroy(), D2(g), D2(_)), function(b) {
|
|
41006
40942
|
var S = b.formElement;
|
|
@@ -41008,8 +40944,8 @@ Required: ` + f.join(", "));
|
|
|
41008
40944
|
}(u), function(b) {
|
|
41009
40945
|
b.contentAreaContainer = b.formElement = b.container = b.editorContainer = null, b.bodyElement = b.contentDocument = b.contentWindow = null, b.iframeElement = b.targetElm = null, b.selection && (b.selection = b.selection.win = b.selection.dom = b.selection.dom.doc = null);
|
|
41010
40946
|
}(u), u.destroyed = !0) : u.remove());
|
|
41011
|
-
}, $6 = Object.prototype.hasOwnProperty,
|
|
41012
|
-
return D(u) && D(f) ?
|
|
40947
|
+
}, $6 = Object.prototype.hasOwnProperty, V4 = (N0 = function(u, f) {
|
|
40948
|
+
return D(u) && D(f) ? V4(u, f) : f;
|
|
41013
40949
|
}, function() {
|
|
41014
40950
|
for (var u = [], f = 0; f < arguments.length; f++)
|
|
41015
40951
|
u[f] = arguments[f];
|
|
@@ -41021,12 +40957,12 @@ Required: ` + f.join(", "));
|
|
|
41021
40957
|
$6.call(b, S) && (g[S] = N0(g[S], b[S]));
|
|
41022
40958
|
}
|
|
41023
40959
|
return g;
|
|
41024
|
-
}), qm = Wn().deviceType,
|
|
40960
|
+
}), qm = Wn().deviceType, F4 = qm.isTouch(), zy = qm.isPhone(), L4 = qm.isTablet(), U4 = ["lists", "autolink", "autosave"], Hy = { table_grid: !1, object_resizing: !1, resize: !1 }, Pg = function(u) {
|
|
41025
40961
|
var f = O(u) ? u.join(" ") : u, g = Qe(x(f) ? f.split(" ") : [], ze);
|
|
41026
40962
|
return Ue(g, function(_) {
|
|
41027
40963
|
return _.length > 0;
|
|
41028
40964
|
});
|
|
41029
|
-
},
|
|
40965
|
+
}, z4 = function(u, f) {
|
|
41030
40966
|
var g = Jo(f, function(_, b) {
|
|
41031
40967
|
return Te(u, b);
|
|
41032
40968
|
});
|
|
@@ -41035,49 +40971,49 @@ Required: ` + f.join(", "));
|
|
|
41035
40971
|
}(g.t, g.f);
|
|
41036
40972
|
}, P2 = function(u, f) {
|
|
41037
40973
|
return u.sections().hasOwnProperty(f);
|
|
41038
|
-
},
|
|
40974
|
+
}, H4 = function(u, f) {
|
|
41039
40975
|
return Ro(u, "toolbar_mode").orThunk(function() {
|
|
41040
40976
|
return Ro(u, "toolbar_drawer").map(function(g) {
|
|
41041
40977
|
return g === !1 ? "wrap" : g;
|
|
41042
40978
|
});
|
|
41043
40979
|
}).getOr(f);
|
|
41044
40980
|
}, jy = function(u, f) {
|
|
41045
|
-
var g = { resize: !1, toolbar_mode:
|
|
40981
|
+
var g = { resize: !1, toolbar_mode: H4(u, "scrolling"), toolbar_sticky: !1 };
|
|
41046
40982
|
return ht(ht(ht({}, Hy), g), f ? { menubar: !1 } : {});
|
|
41047
40983
|
}, Wy = function(u, f) {
|
|
41048
40984
|
var g = f.external_plugins ? f.external_plugins : {};
|
|
41049
40985
|
return u && u.external_plugins ? un.extend({}, u.external_plugins, g) : g;
|
|
41050
|
-
},
|
|
40986
|
+
}, j4 = function(u, f, g, _) {
|
|
41051
40987
|
return u && function(b, S, N) {
|
|
41052
40988
|
var P = b.sections();
|
|
41053
40989
|
return P2(b, S) && P[S].theme === N;
|
|
41054
40990
|
}(f, "mobile", "mobile") ? function(b) {
|
|
41055
|
-
return Ue(b, oe(Te,
|
|
40991
|
+
return Ue(b, oe(Te, U4));
|
|
41056
40992
|
}(_) : u && P2(f, "mobile") ? _ : g;
|
|
41057
|
-
},
|
|
40993
|
+
}, W4 = function(u, f, g, _) {
|
|
41058
40994
|
var b = Pg(g.forced_plugins), S = Pg(_.plugins), N = function(j, Y) {
|
|
41059
40995
|
return P2(j, Y) ? j.sections()[Y] : {};
|
|
41060
40996
|
}(f, "mobile"), P = N.plugins ? Pg(N.plugins) : S, R = function(j, Y) {
|
|
41061
40997
|
return [].concat(Pg(j)).concat(Pg(Y));
|
|
41062
|
-
}(b,
|
|
40998
|
+
}(b, j4(u, f, S, P));
|
|
41063
40999
|
if (Qn.browser.isIE() && Te(R, "rtc"))
|
|
41064
41000
|
throw new Error("RTC plugin is not supported on IE 11.");
|
|
41065
41001
|
return un.extend(_, { plugins: R.join(" ") });
|
|
41066
41002
|
}, B2 = function(u, f, g, _, b) {
|
|
41067
|
-
var S = u ? { mobile: jy(b.mobile || {}, f) } : {}, N =
|
|
41003
|
+
var S = u ? { mobile: jy(b.mobile || {}, f) } : {}, N = z4(["mobile"], V4(S, b)), P = un.extend(g, _, N.settings(), function(R, j) {
|
|
41068
41004
|
return R && P2(j, "mobile");
|
|
41069
41005
|
}(u, N) ? function(R, j, Y) {
|
|
41070
41006
|
Y === void 0 && (Y = {});
|
|
41071
41007
|
var ne = R.sections(), ie = ne.hasOwnProperty(j) ? ne[j] : {};
|
|
41072
41008
|
return un.extend({}, Y, ie);
|
|
41073
41009
|
}(N, "mobile") : {}, { validate: !0, external_plugins: Wy(_, N.settings()) });
|
|
41074
|
-
return
|
|
41010
|
+
return W4(u, N, _, P);
|
|
41075
41011
|
}, V6 = function(u, f, g, _, b) {
|
|
41076
41012
|
var S = function(N, P, R, j, Y) {
|
|
41077
|
-
var ne = { id: P, theme: "silver", toolbar_mode:
|
|
41013
|
+
var ne = { id: P, theme: "silver", toolbar_mode: H4(N, "floating"), plugins: "", document_base_url: R, add_form_submit_trigger: !0, submit_patch: !0, add_unload_trigger: !0, convert_urls: !0, relative_urls: !0, remove_script_host: !0, object_resizing: !0, doctype: "<!DOCTYPE html>", visual: !0, font_size_legacy_values: "xx-small,small,medium,large,x-large,xx-large,300%", forced_root_block: "p", hidden_input: !0, inline_styles: !0, convert_fonts_to_spans: !0, indent: !0, indent_before: "p,h1,h2,h3,h4,h5,h6,blockquote,div,title,style,pre,script,td,th,ul,ol,li,dl,dt,dd,area,table,thead,tfoot,tbody,tr,section,summary,article,hgroup,aside,figure,figcaption,option,optgroup,datalist", indent_after: "p,h1,h2,h3,h4,h5,h6,blockquote,div,title,style,pre,script,td,th,ul,ol,li,dl,dt,dd,area,table,thead,tfoot,tbody,tr,section,summary,article,hgroup,aside,figure,figcaption,option,optgroup,datalist", entity_encoding: "named", url_converter: Y.convertURL, url_converter_scope: Y };
|
|
41078
41014
|
return ht(ht({}, ne), j ? Hy : {});
|
|
41079
|
-
}(b, f, g,
|
|
41080
|
-
return B2(zy ||
|
|
41015
|
+
}(b, f, g, F4, u);
|
|
41016
|
+
return B2(zy || L4, zy, S, _, b);
|
|
41081
41017
|
}, Km = function(u, f, g) {
|
|
41082
41018
|
return ae.from(f.settings[g]).filter(u);
|
|
41083
41019
|
}, Ym = function(u, f, g, _) {
|
|
@@ -41101,18 +41037,18 @@ Required: ` + f.join(", "));
|
|
|
41101
41037
|
return f.dom[u];
|
|
41102
41038
|
}, Rg = function(u, f) {
|
|
41103
41039
|
return parseInt(Il(f, u), 10);
|
|
41104
|
-
},
|
|
41040
|
+
}, G4 = oe(Gy, "clientWidth"), q4 = oe(Gy, "clientHeight"), K4 = oe(Rg, "margin-top"), qy = oe(Rg, "margin-left"), A0 = function(u, f, g) {
|
|
41105
41041
|
var _, b = Ft.fromDom(u.getBody()), S = u.inline ? b : (_ = b, Ft.fromDom(Hr(_).dom.documentElement)), N = function(P, R, j, Y) {
|
|
41106
41042
|
var ne = function(ie) {
|
|
41107
41043
|
return ie.dom.getBoundingClientRect();
|
|
41108
41044
|
}(R);
|
|
41109
|
-
return { x: j - (P ? ne.left + R.dom.clientLeft + qy(R) : 0), y: Y - (P ? ne.top + R.dom.clientTop +
|
|
41045
|
+
return { x: j - (P ? ne.left + R.dom.clientLeft + qy(R) : 0), y: Y - (P ? ne.top + R.dom.clientTop + K4(R) : 0) };
|
|
41110
41046
|
}(u.inline, S, f, g);
|
|
41111
41047
|
return function(P, R, j) {
|
|
41112
|
-
var Y =
|
|
41048
|
+
var Y = G4(P), ne = q4(P);
|
|
41113
41049
|
return R >= 0 && j >= 0 && R <= Y && j <= ne;
|
|
41114
41050
|
}(S, N.x, N.y);
|
|
41115
|
-
},
|
|
41051
|
+
}, Y4 = function(u) {
|
|
41116
41052
|
var f, g = u.inline ? u.getBody() : u.getContentAreaContainer();
|
|
41117
41053
|
return (f = g, ae.from(f).map(Ft.fromDom)).map(Yl).getOr(!1);
|
|
41118
41054
|
}, Mg = function(u) {
|
|
@@ -41132,7 +41068,7 @@ Required: ` + f.join(", "));
|
|
|
41132
41068
|
f.splice(R, 1);
|
|
41133
41069
|
});
|
|
41134
41070
|
}, N = function(P, R) {
|
|
41135
|
-
if (R === void 0 && (R = !0), !u.removed &&
|
|
41071
|
+
if (R === void 0 && (R = !0), !u.removed && Y4(u))
|
|
41136
41072
|
return R && u.fire("BeforeOpenNotification", { notification: P }), Ot(f, function(j) {
|
|
41137
41073
|
return Y = g().getArgs(j), ne = P, !(Y.type !== ne.type || Y.text !== ne.text || Y.progressBar || Y.timeout || ne.progressBar || ne.timeout);
|
|
41138
41074
|
var Y, ne;
|
|
@@ -41237,7 +41173,7 @@ Required: ` + f.join(", "));
|
|
|
41237
41173
|
f[g - 1] = arguments[g];
|
|
41238
41174
|
var _ = window.console;
|
|
41239
41175
|
_ && (_.error ? _.error.apply(_, wt([u], f)) : _.log.apply(_, wt([u], f)));
|
|
41240
|
-
},
|
|
41176
|
+
}, X4 = function(u) {
|
|
41241
41177
|
return Xy(u, function(f) {
|
|
41242
41178
|
var g = f.getParam("content_css");
|
|
41243
41179
|
return x(g) ? Qe(g.split(","), ze) : O(g) ? g : g === !1 || f.inline ? [] : ["default"];
|
|
@@ -41249,8 +41185,8 @@ Required: ` + f.join(", "));
|
|
|
41249
41185
|
return /^[a-z0-9\-]+$/i.test(N);
|
|
41250
41186
|
}(S) && !b ? g + "/" + S + "/" + _ : u.documentBaseURI.toAbsolute(S);
|
|
41251
41187
|
});
|
|
41252
|
-
},
|
|
41253
|
-
u.contentCSS = u.contentCSS.concat(
|
|
41188
|
+
}, J4 = function(u) {
|
|
41189
|
+
u.contentCSS = u.contentCSS.concat(X4(u), function(f) {
|
|
41254
41190
|
return Xy(f, tm(f));
|
|
41255
41191
|
}(u));
|
|
41256
41192
|
}, Jy = function() {
|
|
@@ -41275,8 +41211,8 @@ Required: ` + f.join(", "));
|
|
|
41275
41211
|
}, destroy: function() {
|
|
41276
41212
|
u = {};
|
|
41277
41213
|
} };
|
|
41278
|
-
},
|
|
41279
|
-
return u +
|
|
41214
|
+
}, Z4 = 0, $2 = function(u) {
|
|
41215
|
+
return u + Z4++ + (f = function() {
|
|
41280
41216
|
return Math.round(4294967295 * Math.random()).toString(36);
|
|
41281
41217
|
}, "s" + (/* @__PURE__ */ new Date()).getTime().toString(36) + f() + f() + f());
|
|
41282
41218
|
var f;
|
|
@@ -41351,7 +41287,7 @@ Required: ` + f.join(", "));
|
|
|
41351
41287
|
};
|
|
41352
41288
|
}, Zy = function(u, f) {
|
|
41353
41289
|
return F6(f, { url: Ec(u), basePath: jh(u), credentials: Vf(u), handler: M1(u) });
|
|
41354
|
-
},
|
|
41290
|
+
}, Q4 = function(u) {
|
|
41355
41291
|
var f, g, _ = function() {
|
|
41356
41292
|
var ke = [], We = function(qe) {
|
|
41357
41293
|
if (!qe.blob || !qe.base64)
|
|
@@ -41528,7 +41464,7 @@ Required: ` + f.join(", "));
|
|
|
41528
41464
|
}, register: g, unregister: function(_) {
|
|
41529
41465
|
return _ && f[_] && delete f[_], f;
|
|
41530
41466
|
} };
|
|
41531
|
-
}, V2 = un.each, ss = Br.DOM,
|
|
41467
|
+
}, V2 = un.each, ss = Br.DOM, eC = function(u, f) {
|
|
41532
41468
|
var g, _, b, S = f && f.schema || Si({}), N = function(R) {
|
|
41533
41469
|
_ = typeof R == "string" ? { name: R, classes: [], attrs: {} } : R;
|
|
41534
41470
|
var j = ss.create(_.name);
|
|
@@ -41571,7 +41507,7 @@ Required: ` + f.join(", "));
|
|
|
41571
41507
|
}
|
|
41572
41508
|
return "";
|
|
41573
41509
|
})), g.name = f || "div", g;
|
|
41574
|
-
},
|
|
41510
|
+
}, tC = function(u, f) {
|
|
41575
41511
|
var g, _, b, S = "", N = function(ie) {
|
|
41576
41512
|
var me = ie.getParam("preview_styles", "font-family font-size font-weight font-style text-decoration text-transform color background-color border border-radius outline text-shadow");
|
|
41577
41513
|
return x(me) ? me : "";
|
|
@@ -41597,7 +41533,7 @@ Required: ` + f.join(", "));
|
|
|
41597
41533
|
var me = un.map(ie.split(/(?:~\+|~|\+)/), U6), Pe = me.pop();
|
|
41598
41534
|
return me.length && (Pe.siblings = me), Pe;
|
|
41599
41535
|
}).reverse()) : [];
|
|
41600
|
-
Y.length ? (Y[0].name || (Y[0].name = g), g = f.selector, _ =
|
|
41536
|
+
Y.length ? (Y[0].name || (Y[0].name = g), g = f.selector, _ = eC(Y, u)) : _ = eC([g], u);
|
|
41601
41537
|
var ne = ss.select(g, _)[0] || _.firstChild;
|
|
41602
41538
|
return V2(f.styles, function(ie, me) {
|
|
41603
41539
|
var Pe = P(ie);
|
|
@@ -41619,7 +41555,7 @@ Required: ` + f.join(", "));
|
|
|
41619
41555
|
ie === "border" && me && (S += "padding:0 2px;"), S += ie + ":" + me + ";";
|
|
41620
41556
|
}
|
|
41621
41557
|
}), u.fire("AfterPreviewFormats"), ss.remove(_), S;
|
|
41622
|
-
},
|
|
41558
|
+
}, nC = function(u) {
|
|
41623
41559
|
var f = L6(u), g = ei(null);
|
|
41624
41560
|
return function(_) {
|
|
41625
41561
|
_.addShortcut("meta+b", "", "Bold"), _.addShortcut("meta+i", "", "Italic"), _.addShortcut("meta+u", "", "Underline");
|
|
@@ -41662,8 +41598,8 @@ Required: ` + f.join(", "));
|
|
|
41662
41598
|
return function(N, P, R, j, Y) {
|
|
41663
41599
|
return Y === void 0 && (Y = !1), yi(N).formatter.formatChanged(P, R, j, Y);
|
|
41664
41600
|
}(u, g, _, b, S);
|
|
41665
|
-
}, getCssText: oe(
|
|
41666
|
-
},
|
|
41601
|
+
}, getCssText: oe(tC, u) };
|
|
41602
|
+
}, oC = function(u) {
|
|
41667
41603
|
var f = ei(ae.none()), g = ei(0), _ = ei(0), b = { data: [], typing: !1, beforeChange: function() {
|
|
41668
41604
|
(function(S, N, P) {
|
|
41669
41605
|
yi(S).undoManager.beforeChange(N, P);
|
|
@@ -41751,9 +41687,9 @@ Required: ` + f.join(", "));
|
|
|
41751
41687
|
}(u, b, g), function(S) {
|
|
41752
41688
|
S.addShortcut("meta+z", "", "Undo"), S.addShortcut("meta+y,meta+shift+z", "", "Redo");
|
|
41753
41689
|
}(u), b;
|
|
41754
|
-
}, z6 = [9, 27, vo.HOME, vo.END, 19, 20, 44, 144, 145, 33, 34, 45, 16, 17, 18, 91, 92, 93, vo.DOWN, vo.UP, vo.LEFT, vo.RIGHT].concat(Qn.browser.isFirefox() ? [224] : []),
|
|
41690
|
+
}, z6 = [9, 27, vo.HOME, vo.END, 19, 20, 44, 144, 145, 33, 34, 45, 16, 17, 18, 91, 92, 93, vo.DOWN, vo.UP, vo.LEFT, vo.RIGHT].concat(Qn.browser.isFirefox() ? [224] : []), rC = "data-mce-placeholder", iC = function(u) {
|
|
41755
41691
|
return u.type === "keydown" || u.type === "keyup";
|
|
41756
|
-
},
|
|
41692
|
+
}, aC = function(u) {
|
|
41757
41693
|
var f = u.keyCode;
|
|
41758
41694
|
return f === vo.BACKSPACE || f === vo.DELETE;
|
|
41759
41695
|
}, H6 = function(u) {
|
|
@@ -41761,14 +41697,14 @@ Required: ` + f.join(", "));
|
|
|
41761
41697
|
return S.getParam("placeholder", j_.getAttrib(S.getElement(), "placeholder"), "string");
|
|
41762
41698
|
}(u), b = function(S, N) {
|
|
41763
41699
|
if (!function(j) {
|
|
41764
|
-
if (
|
|
41700
|
+
if (iC(j)) {
|
|
41765
41701
|
var Y = j.keyCode;
|
|
41766
|
-
return !
|
|
41702
|
+
return !aC(j) && (vo.metaKeyPressed(j) || j.altKey || Y >= 112 && Y <= 123 || Te(z6, Y));
|
|
41767
41703
|
}
|
|
41768
41704
|
return !1;
|
|
41769
41705
|
}(S)) {
|
|
41770
41706
|
var P = u.getBody(), R = !function(j) {
|
|
41771
|
-
return
|
|
41707
|
+
return iC(j) && !(aC(j) || j.type === "keyup" && j.keyCode === 229);
|
|
41772
41708
|
}(S) && function(j, Y, ne) {
|
|
41773
41709
|
if (ts(Ft.fromDom(Y), !1)) {
|
|
41774
41710
|
var ie = ne === "", me = Y.firstElementChild;
|
|
@@ -41776,7 +41712,7 @@ Required: ` + f.join(", "));
|
|
|
41776
41712
|
}
|
|
41777
41713
|
return !1;
|
|
41778
41714
|
}(f, P, g);
|
|
41779
|
-
(f.getAttrib(P,
|
|
41715
|
+
(f.getAttrib(P, rC) !== "" !== R || N) && (f.setAttrib(P, rC, R ? _ : null), f.setAttrib(P, "aria-placeholder", R ? _ : null), function(j, Y) {
|
|
41780
41716
|
j.fire("PlaceholderToggle", { state: Y });
|
|
41781
41717
|
}(u, R), u.on(R ? "keydown" : "keyup", b), u.off(R ? "keyup" : "keydown", b));
|
|
41782
41718
|
}
|
|
@@ -41788,12 +41724,12 @@ Required: ` + f.join(", "));
|
|
|
41788
41724
|
});
|
|
41789
41725
|
});
|
|
41790
41726
|
});
|
|
41791
|
-
},
|
|
41727
|
+
}, sC = /[\u0591-\u07FF\uFB1D-\uFDFF\uFE70-\uFEFC]/, fp = function(u, f) {
|
|
41792
41728
|
return Za(Ft.fromDom(f), function(g) {
|
|
41793
41729
|
return g.getParam("inline_boundaries_selector", "a[href],code,.mce-annotation", "string");
|
|
41794
41730
|
}(u));
|
|
41795
41731
|
}, j6 = function(u) {
|
|
41796
|
-
return Br.DOM.getStyle(u, "direction", !0) === "rtl" || (f = u.textContent,
|
|
41732
|
+
return Br.DOM.getStyle(u, "direction", !0) === "rtl" || (f = u.textContent, sC.test(f));
|
|
41797
41733
|
var f;
|
|
41798
41734
|
}, Zd = function(u, f, g) {
|
|
41799
41735
|
var _ = function(b, S, N) {
|
|
@@ -41818,7 +41754,7 @@ Required: ` + f.join(", "));
|
|
|
41818
41754
|
var g = f.getBody(), _ = g.firstChild && f.dom.isBlock(g.firstChild) ? g.firstChild : g;
|
|
41819
41755
|
f.selection.setCursorLocation(_, 0);
|
|
41820
41756
|
}(u));
|
|
41821
|
-
},
|
|
41757
|
+
}, lC = function(u, f) {
|
|
41822
41758
|
return { from: u, to: f };
|
|
41823
41759
|
}, tb = function(u, f) {
|
|
41824
41760
|
var g = Ft.fromDom(u), _ = Ft.fromDom(f.container());
|
|
@@ -41827,7 +41763,7 @@ Required: ` + f.join(", "));
|
|
|
41827
41763
|
return { block: S, position: N };
|
|
41828
41764
|
}(b, f);
|
|
41829
41765
|
});
|
|
41830
|
-
},
|
|
41766
|
+
}, uC = function(u, f, g) {
|
|
41831
41767
|
var _ = tb(u, ln.fromRangeStart(g)), b = _.bind(function(S) {
|
|
41832
41768
|
return Bo(f, u, S.position).bind(function(N) {
|
|
41833
41769
|
return tb(u, N).map(function(P) {
|
|
@@ -41841,7 +41777,7 @@ Required: ` + f.join(", "));
|
|
|
41841
41777
|
});
|
|
41842
41778
|
});
|
|
41843
41779
|
});
|
|
41844
|
-
return pa(_, b,
|
|
41780
|
+
return pa(_, b, lC).filter(function(S) {
|
|
41845
41781
|
return function(N) {
|
|
41846
41782
|
return Fo(N.from.block, N.to.block) === !1;
|
|
41847
41783
|
}(S) && function(N) {
|
|
@@ -41861,7 +41797,7 @@ Required: ` + f.join(", "));
|
|
|
41861
41797
|
}, function(g) {
|
|
41862
41798
|
return f.slice(0, g);
|
|
41863
41799
|
});
|
|
41864
|
-
},
|
|
41800
|
+
}, cC = function(u) {
|
|
41865
41801
|
var f = W6(u);
|
|
41866
41802
|
return Je(f, mi), f;
|
|
41867
41803
|
}, nb = function(u, f) {
|
|
@@ -41876,34 +41812,34 @@ Required: ` + f.join(", "));
|
|
|
41876
41812
|
return !ts(S);
|
|
41877
41813
|
}).length === 0 && ts(f) && aa(_, Ft.fromTag("br"));
|
|
41878
41814
|
var b = _l(g.dom, ln.before(_.dom));
|
|
41879
|
-
return Je(
|
|
41815
|
+
return Je(cC(f), function(S) {
|
|
41880
41816
|
aa(_, S);
|
|
41881
41817
|
}), nb(u, f), b;
|
|
41882
|
-
},
|
|
41818
|
+
}, dC = function(u, f, g) {
|
|
41883
41819
|
if (ts(g))
|
|
41884
41820
|
return mi(g), ts(f) && hg(f), Ta(f.dom);
|
|
41885
41821
|
var _ = yl(g.dom);
|
|
41886
|
-
return Je(
|
|
41822
|
+
return Je(cC(f), function(b) {
|
|
41887
41823
|
ai(g, b);
|
|
41888
41824
|
}), nb(u, f), _;
|
|
41889
|
-
},
|
|
41825
|
+
}, fC = function(u, f) {
|
|
41890
41826
|
return ia(f, u) ? function(g, _) {
|
|
41891
41827
|
var b = yu(_, g);
|
|
41892
41828
|
return ae.from(b[b.length - 1]);
|
|
41893
41829
|
}(f, u) : ae.none();
|
|
41894
|
-
},
|
|
41830
|
+
}, pC = function(u, f) {
|
|
41895
41831
|
Nc(u, f.dom).map(function(g) {
|
|
41896
41832
|
return g.getNode();
|
|
41897
41833
|
}).map(Ft.fromDom).filter(Rs).each(mi);
|
|
41898
41834
|
}, ob = function(u, f, g) {
|
|
41899
|
-
return
|
|
41900
|
-
},
|
|
41835
|
+
return pC(!0, f), pC(!1, g), fC(f, g).fold(oe(dC, u, f, g), oe(R0, u, f, g));
|
|
41836
|
+
}, mC = function(u, f, g, _) {
|
|
41901
41837
|
return f ? ob(u, _, g) : ob(u, g, _);
|
|
41902
41838
|
}, F2 = function(u, f) {
|
|
41903
41839
|
var g = Ft.fromDom(u.getBody()), _ = function(b, S, N) {
|
|
41904
|
-
return N.collapsed ?
|
|
41840
|
+
return N.collapsed ? uC(b, S, N) : ae.none();
|
|
41905
41841
|
}(g.dom, f, u.selection.getRng()).bind(function(b) {
|
|
41906
|
-
return
|
|
41842
|
+
return mC(g, f, b.from.block, b.to.block);
|
|
41907
41843
|
});
|
|
41908
41844
|
return _.each(function(b) {
|
|
41909
41845
|
u.selection.setRng(b.toRange());
|
|
@@ -41911,19 +41847,19 @@ Required: ` + f.join(", "));
|
|
|
41911
41847
|
}, Na = function(u, f) {
|
|
41912
41848
|
var g = Ft.fromDom(f), _ = oe(Fo, u);
|
|
41913
41849
|
return gf(g, Ur, _).isSome();
|
|
41914
|
-
},
|
|
41850
|
+
}, hC = function(u, f) {
|
|
41915
41851
|
var g = _l(u.dom, ln.fromRangeStart(f)).isNone(), _ = vl(u.dom, ln.fromRangeEnd(f)).isNone();
|
|
41916
41852
|
return !function(b, S) {
|
|
41917
41853
|
return Na(b, S.startContainer) || Na(b, S.endContainer);
|
|
41918
41854
|
}(u, f) && g && _;
|
|
41919
41855
|
}, G6 = function(u) {
|
|
41920
41856
|
var f = Ft.fromDom(u.getBody()), g = u.selection.getRng();
|
|
41921
|
-
return
|
|
41857
|
+
return hC(f, g) ? function(_) {
|
|
41922
41858
|
return _.setContent(""), _.selection.setCursorLocation(), !0;
|
|
41923
41859
|
}(u) : function(_, b) {
|
|
41924
41860
|
var S = b.getRng();
|
|
41925
41861
|
return pa(pp(_, Ft.fromDom(S.startContainer)), pp(_, Ft.fromDom(S.endContainer)), function(N, P) {
|
|
41926
|
-
return Fo(N, P) === !1 && (S.deleteContents(),
|
|
41862
|
+
return Fo(N, P) === !1 && (S.deleteContents(), mC(_, !0, N, P).each(function(R) {
|
|
41927
41863
|
b.setRng(R.toRange());
|
|
41928
41864
|
}), !0);
|
|
41929
41865
|
}).getOr(!1);
|
|
@@ -41937,7 +41873,7 @@ Required: ` + f.join(", "));
|
|
|
41937
41873
|
var _ = g.ownerDocument.createRange();
|
|
41938
41874
|
return _.selectNode(g), _;
|
|
41939
41875
|
}(f));
|
|
41940
|
-
},
|
|
41876
|
+
}, gC = function(u, f, g) {
|
|
41941
41877
|
var _ = kd(1, u.getBody(), f), b = ln.fromRangeStart(_), S = b.getNode();
|
|
41942
41878
|
if (Ed(S))
|
|
41943
41879
|
return Qd(1, u, S, !b.isAtEnd(), !1);
|
|
@@ -41949,10 +41885,10 @@ Required: ` + f.join(", "));
|
|
|
41949
41885
|
});
|
|
41950
41886
|
return Ed(P) ? Qd(1, u, P, !1, g) : ae.none();
|
|
41951
41887
|
}, Xm = function(u, f, g) {
|
|
41952
|
-
return f.collapsed ?
|
|
41888
|
+
return f.collapsed ? gC(u, f, g).getOr(f) : f;
|
|
41953
41889
|
}, K6 = function(u) {
|
|
41954
41890
|
return rp(u) || pg(u);
|
|
41955
|
-
},
|
|
41891
|
+
}, vC = function(u) {
|
|
41956
41892
|
return ip(u) || mg(u);
|
|
41957
41893
|
}, ef = function(u, f, g, _, b, S) {
|
|
41958
41894
|
return Qd(_, u, S.getNode(!b), b, !0).each(function(N) {
|
|
@@ -41970,7 +41906,7 @@ Required: ` + f.join(", "));
|
|
|
41970
41906
|
var b = g.selection.getRng();
|
|
41971
41907
|
if (!io(b.commonAncestorContainer))
|
|
41972
41908
|
return !1;
|
|
41973
|
-
var S = _ ? gi.Forwards : gi.Backwards, N = gl(g.getBody()), P = oe(hl, _ ? N.next : N.prev), R = _ ? K6 :
|
|
41909
|
+
var S = _ ? gi.Forwards : gi.Backwards, N = gl(g.getBody()), P = oe(hl, _ ? N.next : N.prev), R = _ ? K6 : vC, j = xc(S, g.getBody(), b), Y = $i(_, P(j));
|
|
41974
41910
|
if (!Y || !kc(j, Y))
|
|
41975
41911
|
return !1;
|
|
41976
41912
|
if (R(Y))
|
|
@@ -42045,7 +41981,7 @@ Required: ` + f.join(", "));
|
|
|
42045
41981
|
}(u));
|
|
42046
41982
|
});
|
|
42047
41983
|
}, fe);
|
|
42048
|
-
},
|
|
41984
|
+
}, _C = function(u, f) {
|
|
42049
41985
|
var g = u.selection.getNode();
|
|
42050
41986
|
return !!Vr(g) && U2(u, g.parentNode).filter(Vr).fold(function() {
|
|
42051
41987
|
var _;
|
|
@@ -42059,7 +41995,7 @@ Required: ` + f.join(", "));
|
|
|
42059
41995
|
}
|
|
42060
41996
|
return !0;
|
|
42061
41997
|
}, z2 = function(u, f) {
|
|
42062
|
-
return u.selection.isCollapsed() ? rb(u, f) :
|
|
41998
|
+
return u.selection.isCollapsed() ? rb(u, f) : _C(u, f);
|
|
42063
41999
|
}, $0 = function(u, f) {
|
|
42064
42000
|
return !!u.selection.isCollapsed() && function(g, _) {
|
|
42065
42001
|
var b = ln.fromRangeStart(g.selection.getRng());
|
|
@@ -42071,7 +42007,7 @@ Required: ` + f.join(", "));
|
|
|
42071
42007
|
return g.selection.select(S), !0;
|
|
42072
42008
|
});
|
|
42073
42009
|
}(u, f);
|
|
42074
|
-
}, Zm = io,
|
|
42010
|
+
}, Zm = io, yC = function(u) {
|
|
42075
42011
|
return Zm(u) && u.data[0] === li;
|
|
42076
42012
|
}, ab = function(u) {
|
|
42077
42013
|
return Zm(u) && u.data[u.data.length - 1] === li;
|
|
@@ -42082,18 +42018,18 @@ Required: ` + f.join(", "));
|
|
|
42082
42018
|
if (Zm(g.previousSibling))
|
|
42083
42019
|
return ab(g.previousSibling) || g.previousSibling.appendData(li), g.previousSibling;
|
|
42084
42020
|
if (Zm(g))
|
|
42085
|
-
return
|
|
42021
|
+
return yC(g) || g.insertData(0, li), g;
|
|
42086
42022
|
var _ = Vg(g);
|
|
42087
42023
|
return g.parentNode.insertBefore(_, g), _;
|
|
42088
42024
|
}(f) : function(g) {
|
|
42089
42025
|
if (Zm(g.nextSibling))
|
|
42090
|
-
return
|
|
42026
|
+
return yC(g.nextSibling) || g.nextSibling.insertData(0, li), g.nextSibling;
|
|
42091
42027
|
if (Zm(g))
|
|
42092
42028
|
return ab(g) || g.appendData(li), g;
|
|
42093
42029
|
var _ = Vg(g);
|
|
42094
42030
|
return g.nextSibling ? g.parentNode.insertBefore(_, g.nextSibling) : g.parentNode.appendChild(_), _;
|
|
42095
42031
|
}(f);
|
|
42096
|
-
},
|
|
42032
|
+
}, bC = oe(V0, !0), Zu = oe(V0, !1), sb = function(u, f) {
|
|
42097
42033
|
return io(u.container()) ? V0(f, u.container()) : V0(f, u.getNode());
|
|
42098
42034
|
}, H2 = function(u, f) {
|
|
42099
42035
|
var g = f.get();
|
|
@@ -42101,7 +42037,7 @@ Required: ` + f.join(", "));
|
|
|
42101
42037
|
}, lb = function(u, f) {
|
|
42102
42038
|
return f.fold(function(g) {
|
|
42103
42039
|
Bi(u.get());
|
|
42104
|
-
var _ =
|
|
42040
|
+
var _ = bC(g);
|
|
42105
42041
|
return u.set(_), ae.some(ln(_, _.length - 1));
|
|
42106
42042
|
}, function(g) {
|
|
42107
42043
|
return Ta(g).map(function(_) {
|
|
@@ -42124,7 +42060,7 @@ Required: ` + f.join(", "));
|
|
|
42124
42060
|
var _ = Zu(g);
|
|
42125
42061
|
return u.set(_), ae.some(ln(_, 1));
|
|
42126
42062
|
});
|
|
42127
|
-
},
|
|
42063
|
+
}, wC = function(u, f) {
|
|
42128
42064
|
for (var g = 0; g < u.length; g++) {
|
|
42129
42065
|
var _ = u[g].apply(null, f);
|
|
42130
42066
|
if (_.isSome())
|
|
@@ -42145,17 +42081,17 @@ Required: ` + f.join(", "));
|
|
|
42145
42081
|
return hu(u, f) === null;
|
|
42146
42082
|
}, ub = function(u, f, g) {
|
|
42147
42083
|
return Zd(u, f, g).filter(oe(Y6, f));
|
|
42148
|
-
},
|
|
42084
|
+
}, CC = function(u, f, g) {
|
|
42149
42085
|
var _ = Qy(g);
|
|
42150
42086
|
return ub(u, f, _).bind(function(b) {
|
|
42151
42087
|
return _l(b, _).isNone() ? ae.some(ea.start(b)) : ae.none();
|
|
42152
42088
|
});
|
|
42153
|
-
},
|
|
42089
|
+
}, EC = function(u, f, g) {
|
|
42154
42090
|
var _ = B0(g);
|
|
42155
42091
|
return ub(u, f, _).bind(function(b) {
|
|
42156
42092
|
return vl(b, _).isNone() ? ae.some(ea.end(b)) : ae.none();
|
|
42157
42093
|
});
|
|
42158
|
-
},
|
|
42094
|
+
}, SC = function(u, f, g) {
|
|
42159
42095
|
var _ = Qy(g), b = tf(f, _.container());
|
|
42160
42096
|
return Zd(u, b, _).fold(function() {
|
|
42161
42097
|
return _l(b, _).bind(oe(Zd, u, b)).map(function(S) {
|
|
@@ -42165,10 +42101,10 @@ Required: ` + f.join(", "));
|
|
|
42165
42101
|
}, j2 = function(u) {
|
|
42166
42102
|
return j6(cb(u)) === !1;
|
|
42167
42103
|
}, Vc = function(u, f, g) {
|
|
42168
|
-
return
|
|
42104
|
+
return wC([nf, CC, EC, SC], [u, f, g]).filter(j2);
|
|
42169
42105
|
}, cb = function(u) {
|
|
42170
42106
|
return u.fold(ge, ge, ge, ge);
|
|
42171
|
-
},
|
|
42107
|
+
}, xC = function(u) {
|
|
42172
42108
|
return u.fold(re("before"), re("start"), re("end"), re("after"));
|
|
42173
42109
|
}, Hl = function(u) {
|
|
42174
42110
|
return u.fold(ea.before, ea.before, ea.after, ea.after);
|
|
@@ -42183,7 +42119,7 @@ Required: ` + f.join(", "));
|
|
|
42183
42119
|
}).getOr(S);
|
|
42184
42120
|
}, J6 = function(u, f) {
|
|
42185
42121
|
return u.fold(fe, function(g) {
|
|
42186
|
-
return b = f, !(
|
|
42122
|
+
return b = f, !(xC(_ = g) === xC(b) && cb(_) === cb(b));
|
|
42187
42123
|
var _, b;
|
|
42188
42124
|
});
|
|
42189
42125
|
}, bi = function(u, f) {
|
|
@@ -42205,7 +42141,7 @@ Required: ` + f.join(", "));
|
|
|
42205
42141
|
var Qu, fb = function(u, f, g) {
|
|
42206
42142
|
var _ = u ? 1 : -1;
|
|
42207
42143
|
return f.setRng(ln(g.container(), g.offset() + _).toRange()), f.getSel().modify("move", u ? "forward" : "backward", "word"), !0;
|
|
42208
|
-
},
|
|
42144
|
+
}, kC = function(u, f) {
|
|
42209
42145
|
var g = f.selection.getRng(), _ = u ? ln.fromRangeEnd(g) : ln.fromRangeStart(g);
|
|
42210
42146
|
return !!function(b) {
|
|
42211
42147
|
return Z(b.selection.getSel().modify);
|
|
@@ -42234,7 +42170,7 @@ Required: ` + f.join(", "));
|
|
|
42234
42170
|
N = b;
|
|
42235
42171
|
}
|
|
42236
42172
|
return { positions: F0(f, P), breakType: Qu.Eol, breakAt: ae.none() };
|
|
42237
|
-
},
|
|
42173
|
+
}, TC = function(u, f, g, _) {
|
|
42238
42174
|
return f(g, _).breakAt.map(function(b) {
|
|
42239
42175
|
var S = f(g, b).positions;
|
|
42240
42176
|
return u === gi.Backwards ? S.concat(b) : [b].concat(S);
|
|
@@ -42254,7 +42190,7 @@ Required: ` + f.join(", "));
|
|
|
42254
42190
|
return Fn(f.getClientRects()).bind(function(g) {
|
|
42255
42191
|
return G2(u, g.left);
|
|
42256
42192
|
});
|
|
42257
|
-
}, eh = oe(Qm, ln.isAbove, -1), Fg = oe(Qm, ln.isBelow, 1), hb = oe(
|
|
42193
|
+
}, eh = oe(Qm, ln.isAbove, -1), Fg = oe(Qm, ln.isBelow, 1), hb = oe(TC, -1, eh), Q6 = oe(TC, 1, Fg), e8 = function(u) {
|
|
42258
42194
|
var f = function(_) {
|
|
42259
42195
|
return Qe(_, function(b) {
|
|
42260
42196
|
return (b = bc(b)).node = u, b;
|
|
@@ -42290,7 +42226,7 @@ Required: ` + f.join(", "));
|
|
|
42290
42226
|
if (me(Pe))
|
|
42291
42227
|
return;
|
|
42292
42228
|
}(u, _, R, Y), P;
|
|
42293
|
-
},
|
|
42229
|
+
}, NC = oe(gb, mp.Up, wc, Lu), IC = oe(gb, mp.Down, Lu, wc), AC = function(u) {
|
|
42294
42230
|
return function(f) {
|
|
42295
42231
|
return function(g, _) {
|
|
42296
42232
|
return _.line > g;
|
|
@@ -42302,25 +42238,25 @@ Required: ` + f.join(", "));
|
|
|
42302
42238
|
return _.line === g;
|
|
42303
42239
|
}(u, f);
|
|
42304
42240
|
};
|
|
42305
|
-
}, gp = Vr,
|
|
42241
|
+
}, gp = Vr, OC = xd, _b = function(u, f) {
|
|
42306
42242
|
return Math.abs(u.left - f);
|
|
42307
42243
|
}, yb = function(u, f) {
|
|
42308
42244
|
return Math.abs(u.right - f);
|
|
42309
|
-
},
|
|
42245
|
+
}, DC = function(u, f) {
|
|
42310
42246
|
return u >= f.left && u <= f.right;
|
|
42311
42247
|
}, t8 = function(u, f) {
|
|
42312
42248
|
return u >= f.top && u <= f.bottom;
|
|
42313
42249
|
}, q2 = function(u, f) {
|
|
42314
42250
|
return Ke(u, function(g, _) {
|
|
42315
42251
|
var b = Math.min(_b(g, f), yb(g, f)), S = Math.min(_b(_, f), yb(_, f));
|
|
42316
|
-
return
|
|
42252
|
+
return DC(f, _) ? _ : DC(f, g) ? g : S === b && gp(_.node) || S < b ? _ : g;
|
|
42317
42253
|
});
|
|
42318
|
-
},
|
|
42319
|
-
var S =
|
|
42254
|
+
}, PC = function(u, f, g, _, b) {
|
|
42255
|
+
var S = OC(_, u, bh, f, !b);
|
|
42320
42256
|
do
|
|
42321
42257
|
if (!S || g(S))
|
|
42322
42258
|
return;
|
|
42323
|
-
while (S =
|
|
42259
|
+
while (S = OC(S, u, bh, f));
|
|
42324
42260
|
}, n8 = function(u, f, g) {
|
|
42325
42261
|
var _ = El(function(P) {
|
|
42326
42262
|
return Ue(Dn(P.getElementsByTagName("*")), mu);
|
|
@@ -42335,7 +42271,7 @@ Required: ` + f.join(", "));
|
|
|
42335
42271
|
});
|
|
42336
42272
|
return Y = Y.concat(Pe), Pe.length === 0;
|
|
42337
42273
|
};
|
|
42338
|
-
return Y.push(R),
|
|
42274
|
+
return Y.push(R), PC(mp.Up, P, oe(ne, wc), R.node, j), PC(mp.Down, P, oe(ne, Lu), R.node, j), Y;
|
|
42339
42275
|
}(u, S, N), f), S && mu(S.node))
|
|
42340
42276
|
return function(P, R) {
|
|
42341
42277
|
return { node: P.node, before: _b(P, R) < yb(P, R) };
|
|
@@ -42346,7 +42282,7 @@ Required: ` + f.join(", "));
|
|
|
42346
42282
|
u.selection.setRng(f), Qf(u, u.selection.getRng());
|
|
42347
42283
|
}, bb = function(u, f, g) {
|
|
42348
42284
|
return ae.some(Xm(u, f, g));
|
|
42349
|
-
},
|
|
42285
|
+
}, BC = function(u, f, g, _, b, S) {
|
|
42350
42286
|
var N = f === gi.Forwards, P = gl(u.getBody()), R = oe(hl, N ? P.next : P.prev), j = N ? _ : b;
|
|
42351
42287
|
if (!g.collapsed) {
|
|
42352
42288
|
var Y = zh(g);
|
|
@@ -42369,7 +42305,7 @@ Required: ` + f.join(", "));
|
|
|
42369
42305
|
var N = xc(f, u.getBody(), g), P = pt(N.getClientRects()), R = f === mp.Down;
|
|
42370
42306
|
if (!P)
|
|
42371
42307
|
return ae.none();
|
|
42372
|
-
var j, Y = (R ?
|
|
42308
|
+
var j, Y = (R ? IC : NC)(u.getBody(), AC(1), N), ne = Ue(Y, vb(1)), ie = P.left, me = q2(ne, ie);
|
|
42373
42309
|
if (me && S(me.node)) {
|
|
42374
42310
|
var Pe = Math.abs(ie - me.left), je = Math.abs(ie - me.right);
|
|
42375
42311
|
return Qd(f, u, me.node, Pe < je, !1);
|
|
@@ -42389,7 +42325,7 @@ Required: ` + f.join(", "));
|
|
|
42389
42325
|
}
|
|
42390
42326
|
while (hn = bt(hn));
|
|
42391
42327
|
return Un;
|
|
42392
|
-
}(f, u.getBody(),
|
|
42328
|
+
}(f, u.getBody(), AC(1), j), We = q2(Ue(ke, vb(1)), ie);
|
|
42393
42329
|
if (We || (We = pt(Ue(ke, vb(0)))))
|
|
42394
42330
|
return bb(u, We.position.toRange(), !1);
|
|
42395
42331
|
}
|
|
@@ -42431,7 +42367,7 @@ Required: ` + f.join(", "));
|
|
|
42431
42367
|
});
|
|
42432
42368
|
}(u, f, g).isSome();
|
|
42433
42369
|
}, H0 = function(u, f, g) {
|
|
42434
|
-
return !!Lf(f) &&
|
|
42370
|
+
return !!Lf(f) && kC(u, f);
|
|
42435
42371
|
}, K2 = function(u) {
|
|
42436
42372
|
var f = ei(null), g = oe(fp, u);
|
|
42437
42373
|
return u.on("NodeChange", function(_) {
|
|
@@ -42452,7 +42388,7 @@ Required: ` + f.join(", "));
|
|
|
42452
42388
|
}
|
|
42453
42389
|
}(g, u, f, _.parents));
|
|
42454
42390
|
}), f;
|
|
42455
|
-
},
|
|
42391
|
+
}, RC = oe(H0, !0), wb = oe(H0, !1), Ug = function(u, f, g) {
|
|
42456
42392
|
if (Lf(u)) {
|
|
42457
42393
|
var _ = L0(u, f).getOrThunk(function() {
|
|
42458
42394
|
var b = u.selection.getRng();
|
|
@@ -42516,17 +42452,17 @@ Required: ` + f.join(", "));
|
|
|
42516
42452
|
return zg(u, f, g, _);
|
|
42517
42453
|
}
|
|
42518
42454
|
return !1;
|
|
42519
|
-
},
|
|
42455
|
+
}, MC = function(u) {
|
|
42520
42456
|
return Wo(u).length === 1;
|
|
42521
|
-
}, $
|
|
42522
|
-
var b = oe(
|
|
42457
|
+
}, $C = function(u, f, g, _) {
|
|
42458
|
+
var b = oe(f4, f), S = Qe(Ue(_, b), function(P) {
|
|
42523
42459
|
return P.dom;
|
|
42524
42460
|
});
|
|
42525
42461
|
if (S.length === 0)
|
|
42526
42462
|
ap(f, u, g);
|
|
42527
42463
|
else {
|
|
42528
42464
|
var N = function(P, R) {
|
|
42529
|
-
var j = Ul(!1), Y =
|
|
42465
|
+
var j = Ul(!1), Y = c4(R, j.dom);
|
|
42530
42466
|
return aa(Ft.fromDom(P), j), mi(Ft.fromDom(P)), ln(Y, 0);
|
|
42531
42467
|
}(g.dom, S);
|
|
42532
42468
|
f.selection.setRng(N.toRange());
|
|
@@ -42537,7 +42473,7 @@ Required: ` + f.join(", "));
|
|
|
42537
42473
|
return Kt(P, Zs).fold(re(P), function(R) {
|
|
42538
42474
|
return P.slice(0, R);
|
|
42539
42475
|
});
|
|
42540
|
-
}(g, _),
|
|
42476
|
+
}(g, _), MC);
|
|
42541
42477
|
return Gt(b).exists(function(S) {
|
|
42542
42478
|
var N, P = ln.fromRangeStart(u.selection.getRng());
|
|
42543
42479
|
return !(!function(R, j, Y) {
|
|
@@ -42549,7 +42485,7 @@ Required: ` + f.join(", "));
|
|
|
42549
42485
|
return ke.isEqual(me) && j.isEqual(Pe);
|
|
42550
42486
|
});
|
|
42551
42487
|
}).getOr(!0);
|
|
42552
|
-
}(f, P, S.dom) || (N = S, bl(N.dom) &&
|
|
42488
|
+
}(f, P, S.dom) || (N = S, bl(N.dom) && u4(N.dom))) && ($C(f, u, S, b), !0);
|
|
42553
42489
|
});
|
|
42554
42490
|
}, W0 = function(u, f) {
|
|
42555
42491
|
return !!u.selection.isCollapsed() && Y2(u, f);
|
|
@@ -42615,7 +42551,7 @@ Required: ` + f.join(", "));
|
|
|
42615
42551
|
return !1;
|
|
42616
42552
|
}, Q2 = function(u, f) {
|
|
42617
42553
|
u.getDoc().execCommand(f, !1, null);
|
|
42618
|
-
},
|
|
42554
|
+
}, VC = function(u, f) {
|
|
42619
42555
|
u.addCommand("delete", function() {
|
|
42620
42556
|
(function(g, _) {
|
|
42621
42557
|
Z2(g) || z2(g, !1) || ls(g, !1) || j0(g, _, !1) || F2(g, !1) || g0(g) || $0(g, !1) || G0(g, !1) || L2(g) || W0(g, !1) || (Q2(g, "Delete"), eb(g));
|
|
@@ -42627,7 +42563,7 @@ Required: ` + f.join(", "));
|
|
|
42627
42563
|
});
|
|
42628
42564
|
}, kb = function(u) {
|
|
42629
42565
|
return u.touches === void 0 || u.touches.length !== 1 ? ae.none() : ae.some(u.touches[0]);
|
|
42630
|
-
},
|
|
42566
|
+
}, FC = function(u) {
|
|
42631
42567
|
var f = ei(ae.none()), g = ei(!1), _ = Rh(function(b) {
|
|
42632
42568
|
u.fire("longpress", ht(ht({}, b), { type: "longpress" })), g.set(!0);
|
|
42633
42569
|
}, 400);
|
|
@@ -42655,9 +42591,9 @@ Required: ` + f.join(", "));
|
|
|
42655
42591
|
}, !0);
|
|
42656
42592
|
}, q0 = function(u, f) {
|
|
42657
42593
|
return u.hasOwnProperty(f.nodeName);
|
|
42658
|
-
},
|
|
42594
|
+
}, LC = function(u, f) {
|
|
42659
42595
|
return !!io(f) || !!Gn(f) && !q0(u, f) && !$n(f);
|
|
42660
|
-
},
|
|
42596
|
+
}, UC = function(u, f) {
|
|
42661
42597
|
return !!(io(f) && (f.nodeValue.length === 0 || /^\s+$/.test(f.nodeValue) && (!f.nextSibling || q0(u, f.nextSibling))));
|
|
42662
42598
|
}, Tb = function(u) {
|
|
42663
42599
|
var f, g, _, b = u.dom, S = u.selection, N = u.schema, P = N.getBlockElements(), R = S.getStart(), j = u.getBody(), Y = ka(u);
|
|
@@ -42670,8 +42606,8 @@ Required: ` + f.join(", "));
|
|
|
42670
42606
|
}(P, j, R)) {
|
|
42671
42607
|
var ie = S.getRng(), me = ie.startContainer, Pe = ie.startOffset, je = ie.endContainer, ke = ie.endOffset, We = ct(u);
|
|
42672
42608
|
for (R = j.firstChild; R; )
|
|
42673
|
-
if (
|
|
42674
|
-
if (
|
|
42609
|
+
if (LC(P, R)) {
|
|
42610
|
+
if (UC(P, R)) {
|
|
42675
42611
|
g = R, R = R.nextSibling, b.remove(g);
|
|
42676
42612
|
continue;
|
|
42677
42613
|
}
|
|
@@ -42712,11 +42648,11 @@ Required: ` + f.join(", "));
|
|
|
42712
42648
|
}, e_ = function(u, f) {
|
|
42713
42649
|
var g = f ? gi.Forwards : gi.Backwards, _ = u.selection.getRng();
|
|
42714
42650
|
return function(b, S, N) {
|
|
42715
|
-
return
|
|
42651
|
+
return BC(S, b, N, rp, ip, K0);
|
|
42716
42652
|
}(g, u, _).orThunk(function() {
|
|
42717
42653
|
return Nb(u, g, _), ae.none();
|
|
42718
42654
|
});
|
|
42719
|
-
},
|
|
42655
|
+
}, zC = function(u, f) {
|
|
42720
42656
|
var g = f ? 1 : -1, _ = u.selection.getRng();
|
|
42721
42657
|
return function(b, S, N) {
|
|
42722
42658
|
return Lg(S, b, N, function(P) {
|
|
@@ -42732,12 +42668,12 @@ Required: ` + f.join(", "));
|
|
|
42732
42668
|
return of(u, g), !0;
|
|
42733
42669
|
});
|
|
42734
42670
|
}, Ab = function(u, f) {
|
|
42735
|
-
return
|
|
42671
|
+
return zC(u, f).exists(function(g) {
|
|
42736
42672
|
return of(u, g), !0;
|
|
42737
42673
|
});
|
|
42738
42674
|
}, Ob = function(u, f) {
|
|
42739
42675
|
return vp(u, f, f ? ip : rp);
|
|
42740
|
-
},
|
|
42676
|
+
}, HC = function(u) {
|
|
42741
42677
|
return Te(["figcaption"], ur(u));
|
|
42742
42678
|
}, Db = function(u) {
|
|
42743
42679
|
var f = document.createRange();
|
|
@@ -42758,11 +42694,11 @@ Required: ` + f.join(", "));
|
|
|
42758
42694
|
}(u.dom, g) : function(_, b) {
|
|
42759
42695
|
return eh(_, b).breakAt.isNone();
|
|
42760
42696
|
}(u.dom, g);
|
|
42761
|
-
},
|
|
42697
|
+
}, jC = function(u, f) {
|
|
42762
42698
|
var g = Ft.fromDom(u.getBody()), _ = ln.fromRangeStart(u.selection.getRng()), b = ka(u), S = Zp(u);
|
|
42763
42699
|
return function(N, P) {
|
|
42764
42700
|
var R = oe(Fo, P);
|
|
42765
|
-
return id(Ft.fromDom(N.container()), Zs, R).filter(
|
|
42701
|
+
return id(Ft.fromDom(N.container()), Zs, R).filter(HC);
|
|
42766
42702
|
}(_, g).exists(function() {
|
|
42767
42703
|
if (Pb(g, f, _)) {
|
|
42768
42704
|
var N = t_(g, b, S, f);
|
|
@@ -42771,7 +42707,7 @@ Required: ` + f.join(", "));
|
|
|
42771
42707
|
return !1;
|
|
42772
42708
|
});
|
|
42773
42709
|
}, n_ = function(u, f) {
|
|
42774
|
-
return !!u.selection.isCollapsed() &&
|
|
42710
|
+
return !!u.selection.isCollapsed() && jC(u, f);
|
|
42775
42711
|
}, o8 = function(u, f) {
|
|
42776
42712
|
return kn(function(g) {
|
|
42777
42713
|
return Qe(g, function(_) {
|
|
@@ -42792,17 +42728,17 @@ Required: ` + f.join(", "));
|
|
|
42792
42728
|
return Ot(o8(u, f), function(g) {
|
|
42793
42729
|
return g.action();
|
|
42794
42730
|
});
|
|
42795
|
-
},
|
|
42731
|
+
}, WC = function(u, f) {
|
|
42796
42732
|
var g = f ? gi.Forwards : gi.Backwards, _ = u.selection.getRng();
|
|
42797
|
-
return
|
|
42733
|
+
return BC(u, g, _, pg, mg, mr).exists(function(b) {
|
|
42798
42734
|
return of(u, b), !0;
|
|
42799
42735
|
});
|
|
42800
|
-
},
|
|
42736
|
+
}, GC = function(u, f) {
|
|
42801
42737
|
var g = f ? 1 : -1, _ = u.selection.getRng();
|
|
42802
42738
|
return Lg(u, g, _, pg, mg, mr).exists(function(b) {
|
|
42803
42739
|
return of(u, b), !0;
|
|
42804
42740
|
});
|
|
42805
|
-
},
|
|
42741
|
+
}, qC = function(u, f) {
|
|
42806
42742
|
return vp(u, f, f ? mg : pg);
|
|
42807
42743
|
}, X0 = function(u, f, g, _, b) {
|
|
42808
42744
|
var S = da(Ft.fromDom(g), "td,th,caption").map(function(P) {
|
|
@@ -42837,7 +42773,7 @@ Required: ` + f.join(", "));
|
|
|
42837
42773
|
return u.top;
|
|
42838
42774
|
}, function(u, f) {
|
|
42839
42775
|
return u.y > f;
|
|
42840
|
-
}),
|
|
42776
|
+
}), KC = function(u, f) {
|
|
42841
42777
|
return Fn(f.getClientRects()).bind(function(g) {
|
|
42842
42778
|
return o_(u, g.left, g.top);
|
|
42843
42779
|
}).bind(function(g) {
|
|
@@ -42855,7 +42791,7 @@ Required: ` + f.join(", "));
|
|
|
42855
42791
|
}).getOr([]), f);
|
|
42856
42792
|
var _;
|
|
42857
42793
|
});
|
|
42858
|
-
},
|
|
42794
|
+
}, YC = function(u, f, g) {
|
|
42859
42795
|
var _ = u(f, g);
|
|
42860
42796
|
return function(b) {
|
|
42861
42797
|
return b.breakType === Qu.Wrap && b.positions.length === 0;
|
|
@@ -42866,7 +42802,7 @@ Required: ` + f.join(", "));
|
|
|
42866
42802
|
return b(S, P).breakAt.isSome();
|
|
42867
42803
|
});
|
|
42868
42804
|
}(u, f, _) : _.breakAt.isNone();
|
|
42869
|
-
}, r8 = oe(
|
|
42805
|
+
}, r8 = oe(YC, eh), i8 = oe(YC, Fg), a8 = function(u, f, g, _) {
|
|
42870
42806
|
var b = u.selection.getRng(), S = f ? 1 : -1;
|
|
42871
42807
|
return !(!H1() || !function(N, P, R) {
|
|
42872
42808
|
var j = ln.fromRangeStart(P);
|
|
@@ -42879,7 +42815,7 @@ Required: ` + f.join(", "));
|
|
|
42879
42815
|
}, s8 = function(u, f) {
|
|
42880
42816
|
var g = f.getNode(u);
|
|
42881
42817
|
return Gn(g) && g.nodeName === "TABLE" ? ae.some(g) : ae.none();
|
|
42882
|
-
},
|
|
42818
|
+
}, XC = function(u, f, g) {
|
|
42883
42819
|
var _ = s8(!!f, g), b = f === !1;
|
|
42884
42820
|
_.fold(function() {
|
|
42885
42821
|
return of(u, g.toRange());
|
|
@@ -42904,13 +42840,13 @@ Required: ` + f.join(", "));
|
|
|
42904
42840
|
var b = u.selection.getRng(), S = ln.fromRangeStart(b), N = u.getBody();
|
|
42905
42841
|
if (!f && r8(_, S)) {
|
|
42906
42842
|
var P = function(R, j, Y) {
|
|
42907
|
-
return
|
|
42843
|
+
return KC(j, Y).orThunk(function() {
|
|
42908
42844
|
return Fn(Y.getClientRects()).bind(function(ne) {
|
|
42909
42845
|
return G2(hb(R, ln.before(j)), ne.left);
|
|
42910
42846
|
});
|
|
42911
42847
|
}).getOr(ln.before(j));
|
|
42912
42848
|
}(N, g, S);
|
|
42913
|
-
return
|
|
42849
|
+
return XC(u, f, P), !0;
|
|
42914
42850
|
}
|
|
42915
42851
|
return f && i8(_, S) ? (P = function(R, j, Y) {
|
|
42916
42852
|
return Rb(j, Y).orThunk(function() {
|
|
@@ -42918,7 +42854,7 @@ Required: ` + f.join(", "));
|
|
|
42918
42854
|
return G2(Q6(R, ln.after(j)), ne.left);
|
|
42919
42855
|
});
|
|
42920
42856
|
}).getOr(ln.after(j));
|
|
42921
|
-
}(N, g, S),
|
|
42857
|
+
}(N, g, S), XC(u, f, P), !0) : !1;
|
|
42922
42858
|
}, J0 = function(u, f, g) {
|
|
42923
42859
|
return ae.from(u.dom.getParent(u.selection.getNode(), "td,th")).bind(function(_) {
|
|
42924
42860
|
return ae.from(u.dom.getParent(_, "table")).map(function(b) {
|
|
@@ -42927,13 +42863,13 @@ Required: ` + f.join(", "));
|
|
|
42927
42863
|
}).getOr(!1);
|
|
42928
42864
|
}, Z0 = function(u, f) {
|
|
42929
42865
|
return J0(u, f, a8);
|
|
42930
|
-
},
|
|
42866
|
+
}, JC = function(u, f) {
|
|
42931
42867
|
return J0(u, f, r_);
|
|
42932
42868
|
}, l8 = function(u, f) {
|
|
42933
42869
|
u.on("keydown", function(g) {
|
|
42934
42870
|
g.isDefaultPrevented() === !1 && function(_, b, S) {
|
|
42935
42871
|
var N = Wn().os;
|
|
42936
|
-
Hg([{ keyCode: vo.RIGHT, action: dr(Ib, _, !0) }, { keyCode: vo.LEFT, action: dr(Ib, _, !1) }, { keyCode: vo.UP, action: dr(Ab, _, !1) }, { keyCode: vo.DOWN, action: dr(Ab, _, !0) }, { keyCode: vo.RIGHT, action: dr(Z0, _, !0) }, { keyCode: vo.LEFT, action: dr(Z0, _, !1) }, { keyCode: vo.UP, action: dr(
|
|
42872
|
+
Hg([{ keyCode: vo.RIGHT, action: dr(Ib, _, !0) }, { keyCode: vo.LEFT, action: dr(Ib, _, !1) }, { keyCode: vo.UP, action: dr(Ab, _, !1) }, { keyCode: vo.DOWN, action: dr(Ab, _, !0) }, { keyCode: vo.RIGHT, action: dr(Z0, _, !0) }, { keyCode: vo.LEFT, action: dr(Z0, _, !1) }, { keyCode: vo.UP, action: dr(JC, _, !1) }, { keyCode: vo.DOWN, action: dr(JC, _, !0) }, { keyCode: vo.RIGHT, action: dr(WC, _, !0) }, { keyCode: vo.LEFT, action: dr(WC, _, !1) }, { keyCode: vo.UP, action: dr(GC, _, !1) }, { keyCode: vo.DOWN, action: dr(GC, _, !0) }, { keyCode: vo.RIGHT, action: dr(_p, _, b, !0) }, { keyCode: vo.LEFT, action: dr(_p, _, b, !1) }, { keyCode: vo.RIGHT, ctrlKey: !N.isOSX(), altKey: N.isOSX(), action: dr(RC, _, b) }, { keyCode: vo.LEFT, ctrlKey: !N.isOSX(), altKey: N.isOSX(), action: dr(wb, _, b) }, { keyCode: vo.UP, action: dr(n_, _, !1) }, { keyCode: vo.DOWN, action: dr(n_, _, !0) }], S).each(function(P) {
|
|
42937
42873
|
S.preventDefault();
|
|
42938
42874
|
});
|
|
42939
42875
|
}(u, f, g);
|
|
@@ -42983,7 +42919,7 @@ Required: ` + f.join(", "));
|
|
|
42983
42919
|
}
|
|
42984
42920
|
}, Mb = function(u) {
|
|
42985
42921
|
return ae.from(u.dom.getParent(u.selection.getStart(!0), u.dom.isBlock));
|
|
42986
|
-
},
|
|
42922
|
+
}, ZC = function(u, f) {
|
|
42987
42923
|
return u && u.parentNode && u.parentNode.nodeName === f;
|
|
42988
42924
|
}, Wl = function(u) {
|
|
42989
42925
|
return u && /^(OL|UL|LI)$/.test(u.nodeName);
|
|
@@ -42994,14 +42930,14 @@ Required: ` + f.join(", "));
|
|
|
42994
42930
|
for (var _ = u[g ? "firstChild" : "lastChild"]; _ && !Gn(_); )
|
|
42995
42931
|
_ = _[g ? "nextSibling" : "previousSibling"];
|
|
42996
42932
|
return _ === f;
|
|
42997
|
-
},
|
|
42933
|
+
}, QC = function(u, f, g, _, b) {
|
|
42998
42934
|
var S = u.dom, N = u.selection.getRng();
|
|
42999
42935
|
if (g !== u.getBody()) {
|
|
43000
42936
|
var P;
|
|
43001
42937
|
Wl(P = g) && Wl(P.parentNode) && (b = "LI");
|
|
43002
42938
|
var R = b ? f(b) : S.create("BR");
|
|
43003
42939
|
if (jg(g, _, !0) && jg(g, _, !1))
|
|
43004
|
-
if (
|
|
42940
|
+
if (ZC(g, "LI")) {
|
|
43005
42941
|
var j = yp(g);
|
|
43006
42942
|
S.insertAfter(R, j), function(ie) {
|
|
43007
42943
|
var me;
|
|
@@ -43010,7 +42946,7 @@ Required: ` + f.join(", "));
|
|
|
43010
42946
|
} else
|
|
43011
42947
|
S.replace(R, g);
|
|
43012
42948
|
else if (jg(g, _, !0))
|
|
43013
|
-
|
|
42949
|
+
ZC(g, "LI") ? (S.insertAfter(R, yp(g)), R.appendChild(S.doc.createTextNode(" ")), R.appendChild(g)) : g.parentNode.insertBefore(R, g), S.remove(_);
|
|
43014
42950
|
else if (jg(g, _, !1))
|
|
43015
42951
|
S.insertAfter(R, yp(g)), S.remove(_);
|
|
43016
42952
|
else {
|
|
@@ -43131,7 +43067,7 @@ Required: ` + f.join(", "));
|
|
|
43131
43067
|
return bn;
|
|
43132
43068
|
}(u, Y, je, _, b)), S = ie.getParent(_, ie.isBlock), R = S ? ie.getParent(S.parentNode, ie.isBlock) : null, j = S ? S.nodeName.toUpperCase() : "";
|
|
43133
43069
|
var bt = R ? R.nodeName.toUpperCase() : "";
|
|
43134
|
-
bt !== "LI" || qe || (S = R, R = R.parentNode, j = bt), /^(LI|DT|DD)$/.test(j) && ie.isEmpty(S) ?
|
|
43070
|
+
bt !== "LI" || qe || (S = R, R = R.parentNode, j = bt), /^(LI|DT|DD)$/.test(j) && ie.isEmpty(S) ? QC(u, ke, R, S, Y) : Y && S === u.getBody() || (Y = Y || "P", Du(S) ? (N = Ef(S), ie.isEmpty(S) && i_(S), ev(u, N), Q0(u, N)) : We() ? we() : We(!0) ? (N = S.parentNode.insertBefore(ke(), S), Q0(u, a_(S, "HR") ? N : S)) : (g = function(Tt) {
|
|
43135
43071
|
var Zt = Tt.cloneRange();
|
|
43136
43072
|
return Zt.setStart(Tt.startContainer, Fb(!0, Tt.startContainer, Tt.startOffset)), Zt.setEnd(Tt.endContainer, Fb(!1, Tt.endContainer, Tt.endOffset)), Zt;
|
|
43137
43073
|
}(je).cloneRange(), g.setEndAfter(S), function(Tt) {
|
|
@@ -43267,7 +43203,7 @@ Required: ` + f.join(", "));
|
|
|
43267
43203
|
};
|
|
43268
43204
|
}, a3 = function(u, f) {
|
|
43269
43205
|
(function(g, _) {
|
|
43270
|
-
return
|
|
43206
|
+
return wC([Ss([f8], Sl.none()), Ss([r3("summary", !0)], Sl.br()), Ss([tv(!0), l_(!1), nv], Sl.br()), Ss([tv(!0), l_(!1)], Sl.block()), Ss([tv(!0), l_(!0), nv], Sl.block()), Ss([tv(!0), l_(!0)], Sl.br()), Ss([Fa(!0), nv], Sl.br()), Ss([Fa(!0)], Sl.block()), Ss([Hb(!0), nv, i3], Sl.block()), Ss([Hb(!0)], Sl.br()), Ss([p8], Sl.br()), Ss([Hb(!1), nv], Sl.br()), Ss([i3], Sl.block())], [g, !(!_ || !_.shiftKey)]).getOr(Sl.none());
|
|
43271
43207
|
})(u, f).fold(function() {
|
|
43272
43208
|
o3(u, f);
|
|
43273
43209
|
}, function() {
|
|
@@ -43285,7 +43221,7 @@ Required: ` + f.join(", "));
|
|
|
43285
43221
|
}, Wb = function(u, f) {
|
|
43286
43222
|
u.on("keydown", function(g) {
|
|
43287
43223
|
g.isDefaultPrevented() === !1 && function(_, b, S) {
|
|
43288
|
-
Hg([{ keyCode: vo.END, action: dr(Ob, _, !0) }, { keyCode: vo.HOME, action: dr(Ob, _, !1) }, { keyCode: vo.END, action: dr(
|
|
43224
|
+
Hg([{ keyCode: vo.END, action: dr(Ob, _, !0) }, { keyCode: vo.HOME, action: dr(Ob, _, !1) }, { keyCode: vo.END, action: dr(qC, _, !0) }, { keyCode: vo.HOME, action: dr(qC, _, !1) }, { keyCode: vo.END, action: dr(Ug, _, !0, b) }, { keyCode: vo.HOME, action: dr(Ug, _, !1, b) }], S).each(function(N) {
|
|
43289
43225
|
S.preventDefault();
|
|
43290
43226
|
});
|
|
43291
43227
|
}(u, f, g);
|
|
@@ -43645,7 +43581,7 @@ Required: ` + f.join(", "));
|
|
|
43645
43581
|
return Qn.ceFalse && !up(u) && function() {
|
|
43646
43582
|
u.on("mouseup", function(bt) {
|
|
43647
43583
|
var Tt = ne();
|
|
43648
|
-
Tt.collapsed && A0(u, bt.clientX, bt.clientY) &&
|
|
43584
|
+
Tt.collapsed && A0(u, bt.clientX, bt.clientY) && gC(u, Tt, !1).each(Y);
|
|
43649
43585
|
}), u.on("click", function(bt) {
|
|
43650
43586
|
var Tt = c_(u, bt.target);
|
|
43651
43587
|
Tt && (ah(Tt) && (bt.preventDefault(), u.focus()), g3(Tt) && _.isChildOf(Tt, g.getNode()) && we());
|
|
@@ -43998,7 +43934,7 @@ Required: ` + f.join(", "));
|
|
|
43998
43934
|
var g = u.settings, _ = u.getElement(), b = u.getDoc();
|
|
43999
43935
|
g.inline || (u.getElement().style.visibility = u.orgVisibility), f || u.inline || (b.open(), b.write(u.iframeHTML), b.close()), u.inline && (d_.addClass(_, "mce-content-body"), u.contentDocument = b = document, u.contentWindow = window, u.bodyElement = _, u.contentAreaContainer = _);
|
|
44000
43936
|
var S = u.getBody();
|
|
44001
|
-
S.disabled = !0, u.readonly = !!g.readonly, u.readonly || (u.inline && d_.getStyle(S, "position", !0) === "static" && (S.style.position = "relative"), S.contentEditable = u.getParam("content_editable_state", !0)), S.disabled = !1, u.editorUpload =
|
|
43937
|
+
S.disabled = !0, u.readonly = !!g.readonly, u.readonly || (u.inline && d_.getStyle(S, "position", !0) === "static" && (S.style.position = "relative"), S.contentEditable = u.getParam("content_editable_state", !0)), S.disabled = !1, u.editorUpload = Q4(u), u.schema = Si(g), u.dom = Br(b, { keep_values: !0, url_converter: u.convertURL, url_converter_scope: u, hex_colors: g.force_hex_style_colors, update_styles: !0, root_element: u.inline ? u.getBody() : null, collect: function() {
|
|
44002
43938
|
return u.inline;
|
|
44003
43939
|
}, schema: u.schema, contentCssCors: Qp(u), referrerPolicy: Wh(u), onSetAttrib: function(P) {
|
|
44004
43940
|
u.fire("SetAttrib", P);
|
|
@@ -44027,14 +43963,14 @@ Required: ` + f.join(", "));
|
|
|
44027
43963
|
ie.isEmpty(ne) && ie.getAll("br").length === 0 && (ie.append(new ti("br", 1)).shortEnded = !0);
|
|
44028
43964
|
}
|
|
44029
43965
|
}), R;
|
|
44030
|
-
}(u), u.serializer =
|
|
43966
|
+
}(u), u.serializer = B4(function(P) {
|
|
44031
43967
|
var R = P.settings;
|
|
44032
43968
|
return ht(ht({}, v3(P)), Jb({ url_converter: R.url_converter, url_converter_scope: R.url_converter_scope, element_format: R.element_format, entities: R.entities, entity_encoding: R.entity_encoding, indent: R.indent, indent_after: R.indent_after, indent_before: R.indent_before, block_elements: R.block_elements, boolean_attributes: R.boolean_attributes, custom_elements: R.custom_elements, extended_valid_elements: R.extended_valid_elements, invalid_elements: R.invalid_elements, invalid_styles: R.invalid_styles, move_caret_before_on_enter_elements: R.move_caret_before_on_enter_elements, non_empty_elements: R.non_empty_elements, schema: R.schema, self_closing_elements: R.self_closing_elements, short_ended_elements: R.short_ended_elements, special: R.special, text_block_elements: R.text_block_elements, text_inline_elements: R.text_inline_elements, valid_children: R.valid_children, valid_classes: R.valid_classes, valid_elements: R.valid_elements, valid_styles: R.valid_styles, verify_html: R.verify_html, whitespace_elements: R.whitespace_elements }));
|
|
44033
|
-
}(u), u), u.selection =
|
|
43969
|
+
}(u), u), u.selection = O4(u.dom, u.getWin(), u.serializer, u), u.annotator = o0(u), u.formatter = nC(u), u.undoManager = oC(u), u._nodeChangeDispatcher = new v8(u), u._selectionOverrides = C8(u), FC(u), f3(u), up(u) || _8(u);
|
|
44034
43970
|
var N = function(P) {
|
|
44035
43971
|
return up(P) ? ei(null) : ih(P);
|
|
44036
43972
|
}(u);
|
|
44037
|
-
|
|
43973
|
+
VC(u, N), function(P) {
|
|
44038
43974
|
ka(P) && P.on("NodeChange", oe(Tb, P));
|
|
44039
43975
|
}(u), H6(u), function(P) {
|
|
44040
43976
|
P.fire("PreInit");
|
|
@@ -44145,7 +44081,7 @@ Required: ` + f.join(", "));
|
|
|
44145
44081
|
_.ui = ht(ht({}, _.ui), S);
|
|
44146
44082
|
})(u, ae.from(f.api).getOr({}));
|
|
44147
44083
|
var g = { editorContainer: f.editorContainer, iframeContainer: f.iframeContainer };
|
|
44148
|
-
return u.editorContainer = g.editorContainer ? g.editorContainer : null,
|
|
44084
|
+
return u.editorContainer = g.editorContainer ? g.editorContainer : null, J4(u), u.inline ? Qb(u) : function(_, b) {
|
|
44149
44085
|
var S = N8(_, b);
|
|
44150
44086
|
b.editorContainer && (rv.get(b.editorContainer).style.display = _.orgDisplay, _.hidden = rv.isHidden(b.editorContainer)), _.getElement().style.display = "none", rv.setAttrib(_.id, "aria-hidden", "true"), S || Qb(_);
|
|
44151
44087
|
}(u, g);
|
|
@@ -45064,7 +45000,7 @@ Required: ` + f.join(", "));
|
|
|
45064
45000
|
}, u.prototype.setContent = function(f, g) {
|
|
45065
45001
|
return A2(this, f, g);
|
|
45066
45002
|
}, u.prototype.getContent = function(f) {
|
|
45067
|
-
return
|
|
45003
|
+
return R4(this, f);
|
|
45068
45004
|
}, u.prototype.insertContent = function(f, g) {
|
|
45069
45005
|
g && (f = pw({ content: f }, g)), this.execCommand("mceInsertContent", !1, f);
|
|
45070
45006
|
}, u.prototype.resetContent = function(f) {
|
|
@@ -45096,9 +45032,9 @@ Required: ` + f.join(", "));
|
|
|
45096
45032
|
}, u.prototype.addVisual = function(f) {
|
|
45097
45033
|
O8(this, f);
|
|
45098
45034
|
}, u.prototype.remove = function() {
|
|
45099
|
-
|
|
45035
|
+
M4(this);
|
|
45100
45036
|
}, u.prototype.destroy = function(f) {
|
|
45101
|
-
|
|
45037
|
+
$4(this, f);
|
|
45102
45038
|
}, u.prototype.uploadImages = function(f) {
|
|
45103
45039
|
return this.editorUpload.uploadImages(f);
|
|
45104
45040
|
}, u.prototype._scanForImages = function() {
|
|
@@ -45493,7 +45429,7 @@ Required: ` + f.join(", "));
|
|
|
45493
45429
|
return { upload: function(_, b) {
|
|
45494
45430
|
return b === void 0 && (b = !0), g.upload(_, b ? P0(u) : void 0);
|
|
45495
45431
|
} };
|
|
45496
|
-
} }, dom: { EventUtils: kf, Sizzle: kr, DomQuery: To, TreeWalker: Ai, TextSeeker: Ji, DOMUtils: Br, ScriptLoader: cl, RangeUtils: Bc, Serializer:
|
|
45432
|
+
} }, dom: { EventUtils: kf, Sizzle: kr, DomQuery: To, TreeWalker: Ai, TextSeeker: Ji, DOMUtils: Br, ScriptLoader: cl, RangeUtils: Bc, Serializer: B4, StyleSheetLoader: _h, ControlSelection: Pc, BookmarkManager: Yf, Selection: O4, Event: kf.Event }, html: { Styles: iu, Entities: Ol, Node: ti, Schema: Si, SaxParser: Gd, DomParser: cp, Writer: Z_, Serializer: fg }, Env: Qn, AddOnManager: Ea, Annotator: o0, Formatter: nC, UndoManager: oC, EditorCommands: T3, WindowManager: Ky, NotificationManager: Mg, EditorObservable: O3, Shortcuts: lh, Editor: __, FocusManager: A, EditorManager: xp, DOM: Br.DOM, ScriptLoader: cl.ScriptLoader, PluginManager: zr, ThemeManager: dp, IconManager: Bg, Resource: ta, trim: un.trim, isArray: un.isArray, is: un.is, toArray: un.toArray, makeMap: un.makeMap, each: un.each, map: un.map, grep: un.grep, inArray: un.inArray, extend: un.extend, create: un.create, walk: un.walk, createNS: un.createNS, resolve: un.resolve, explode: un.explode, _addCacheSuffix: un._addCacheSuffix, isOpera: Qn.opera, isWebKit: Qn.webkit, isIE: Qn.ie, isGecko: Qn.gecko, isMac: Qn.mac }, z3 = un.extend(xp, W8);
|
|
45497
45433
|
(function(u) {
|
|
45498
45434
|
window.tinymce = u, window.tinyMCE = u;
|
|
45499
45435
|
})(z3), function(u) {
|
|
@@ -49800,9 +49736,9 @@ Components: ` + JSON.stringify(m.components, null, 2));
|
|
|
49800
49736
|
});
|
|
49801
49737
|
}, bg = function(c) {
|
|
49802
49738
|
return bs(c, "[data-mce-autocompleter]");
|
|
49803
|
-
},
|
|
49739
|
+
}, e4 = function(c) {
|
|
49804
49740
|
return c.toString().replace(/\u00A0/g, " ").replace(/\uFEFF/g, "");
|
|
49805
|
-
},
|
|
49741
|
+
}, t4 = function(c) {
|
|
49806
49742
|
return c !== "" && ` \f
|
|
49807
49743
|
\r \v`.indexOf(c) !== -1;
|
|
49808
49744
|
}, hy = function(c, m) {
|
|
@@ -49818,7 +49754,7 @@ Components: ` + JSON.stringify(m.components, null, 2));
|
|
|
49818
49754
|
var te;
|
|
49819
49755
|
for (te = z - 1; te >= 0; te--) {
|
|
49820
49756
|
var ve = H.charAt(te);
|
|
49821
|
-
if (
|
|
49757
|
+
if (t4(ve))
|
|
49822
49758
|
return $.none();
|
|
49823
49759
|
if (ve === Q)
|
|
49824
49760
|
break;
|
|
@@ -49829,7 +49765,7 @@ Components: ` + JSON.stringify(m.components, null, 2));
|
|
|
49829
49765
|
var B = m.cloneRange();
|
|
49830
49766
|
if (B.setStart(I.container, I.offset), B.setEnd(m.endContainer, m.endOffset), B.collapsed)
|
|
49831
49767
|
return $.none();
|
|
49832
|
-
var F =
|
|
49768
|
+
var F = e4(B);
|
|
49833
49769
|
return F.lastIndexOf(y) !== 0 || hy(F, y).length < C ? $.none() : $.some({ text: hy(F, y), range: B, triggerChar: y });
|
|
49834
49770
|
});
|
|
49835
49771
|
}, v0 = function(c, m, y, C) {
|
|
@@ -49838,10 +49774,10 @@ Components: ` + JSON.stringify(m.components, null, 2));
|
|
|
49838
49774
|
}, function(T) {
|
|
49839
49775
|
var I = c.createRng();
|
|
49840
49776
|
I.selectNode(T.dom);
|
|
49841
|
-
var B =
|
|
49777
|
+
var B = e4(I);
|
|
49842
49778
|
return $.some({ range: I, text: hy(B, y), triggerChar: y });
|
|
49843
49779
|
});
|
|
49844
|
-
},
|
|
49780
|
+
}, n4 = function(c, m) {
|
|
49845
49781
|
m.on("keypress compositionend", c.onKeypress.throttle), m.on("remove", c.onKeypress.cancel);
|
|
49846
49782
|
var y = function(C, T) {
|
|
49847
49783
|
ho(C, ac(), { raw: T });
|
|
@@ -49869,20 +49805,20 @@ Components: ` + JSON.stringify(m.components, null, 2));
|
|
|
49869
49805
|
return gy(c, c.data.length);
|
|
49870
49806
|
var m = c.childNodes;
|
|
49871
49807
|
return m.length > 0 ? u2(m[m.length - 1]) : gy(c, m.length);
|
|
49872
|
-
},
|
|
49808
|
+
}, o4 = function(c, m) {
|
|
49873
49809
|
var y = c.childNodes;
|
|
49874
|
-
return y.length > 0 && m < y.length ?
|
|
49810
|
+
return y.length > 0 && m < y.length ? o4(y[m], 0) : y.length > 0 && function(C) {
|
|
49875
49811
|
return C.nodeType === 1;
|
|
49876
49812
|
}(c) && y.length === m ? u2(y[y.length - 1]) : gy(c, m);
|
|
49877
49813
|
}, y6 = function(c) {
|
|
49878
49814
|
return function(m) {
|
|
49879
|
-
var y =
|
|
49815
|
+
var y = o4(m.startContainer, m.startOffset);
|
|
49880
49816
|
return !function(C, T) {
|
|
49881
49817
|
return g0(C, T.container, T.offset, function(I, B) {
|
|
49882
49818
|
return B === 0 ? -1 : B;
|
|
49883
49819
|
}, C.getRoot()).filter(function(I) {
|
|
49884
49820
|
var B = I.container.data.charAt(I.offset - 1);
|
|
49885
|
-
return !
|
|
49821
|
+
return !t4(B);
|
|
49886
49822
|
}).isSome();
|
|
49887
49823
|
}(c, y);
|
|
49888
49824
|
};
|
|
@@ -49893,9 +49829,9 @@ Components: ` + JSON.stringify(m.components, null, 2));
|
|
|
49893
49829
|
return v0(T, I, F);
|
|
49894
49830
|
});
|
|
49895
49831
|
}(c.dom, C, y).bind(function(T) {
|
|
49896
|
-
return
|
|
49832
|
+
return r4(c, m, T);
|
|
49897
49833
|
});
|
|
49898
|
-
},
|
|
49834
|
+
}, r4 = function(c, m, y, C) {
|
|
49899
49835
|
C === void 0 && (C = {});
|
|
49900
49836
|
var T = m(), I = c.selection.getRng().startContainer.nodeValue, B = Te(T.lookupByChar(y.triggerChar), function(H) {
|
|
49901
49837
|
return y.text.length >= H.minChars && H.matches.getOrThunk(function() {
|
|
@@ -49912,13 +49848,13 @@ Components: ` + JSON.stringify(m.components, null, 2));
|
|
|
49912
49848
|
return $.some({ lookupData: F, context: y });
|
|
49913
49849
|
}, c2 = Bt([ro("type"), Wo("text")]), _y = Bt([Vt("type", "autocompleteitem"), Vt("active", !1), Vt("disabled", !1), Vt("meta", {}), ro("value"), Wo("text"), Wo("icon")]), b6 = Bt([ro("type"), ro("ch"), Su("minChars", 1), Vt("columns", 1), Su("maxResults", 10), Oa("matches"), Hr("fetch"), Hr("onAction"), oc("highlightOn", [], Fo)]), y0 = [Xr("disabled", !1), Wo("tooltip"), Wo("icon"), Wo("text"), Ar("onSetup", function() {
|
|
49914
49850
|
return x;
|
|
49915
|
-
})],
|
|
49916
|
-
return gr("toolbarbutton",
|
|
49917
|
-
}, b0 = [Xr("active", !1)].concat(y0),
|
|
49918
|
-
return gr("ToggleButton",
|
|
49919
|
-
}, yy = [Ar("predicate", W), ga("scope", "node", ["node", "editor"]), ga("position", "selection", ["node", "selection", "line"])],
|
|
49851
|
+
})], i4 = Bt([ro("type"), Hr("onAction")].concat(y0)), d2 = function(c) {
|
|
49852
|
+
return gr("toolbarbutton", i4, c);
|
|
49853
|
+
}, b0 = [Xr("active", !1)].concat(y0), a4 = Bt(b0.concat([ro("type"), Hr("onAction")])), f2 = function(c) {
|
|
49854
|
+
return gr("ToggleButton", a4, c);
|
|
49855
|
+
}, yy = [Ar("predicate", W), ga("scope", "node", ["node", "editor"]), ga("position", "selection", ["node", "selection", "line"])], s4 = y0.concat([Vt("type", "contextformbutton"), Vt("primary", !1), Hr("onAction"), pi("original", M)]), $c = b0.concat([Vt("type", "contextformbutton"), Vt("primary", !1), Hr("onAction"), pi("original", M)]), by = y0.concat([Vt("type", "contextformbutton")]), w6 = b0.concat([Vt("type", "contextformtogglebutton")]), C6 = Ft("type", { contextformbutton: s4, contextformtogglebutton: $c }), wg = Bt([Vt("type", "contextform"), Ar("initValue", function() {
|
|
49920
49856
|
return "";
|
|
49921
|
-
}), Wo("label"), ii("commands", C6), ds("launch", Ft("type", { contextformbutton: by, contextformtogglebutton: w6 }))].concat(yy)),
|
|
49857
|
+
}), Wo("label"), ii("commands", C6), ds("launch", Ft("type", { contextformbutton: by, contextformtogglebutton: w6 }))].concat(yy)), l4 = Bt([Vt("type", "contexttoolbar"), ro("items")].concat(yy)), u4 = function(c) {
|
|
49922
49858
|
var m = c.ui.registry.getAll().popups, y = Ye(m, function(I) {
|
|
49923
49859
|
return (B = I, gr("Autocompleter", b6, B)).fold(function(F) {
|
|
49924
49860
|
throw new Error(un(F));
|
|
@@ -49943,8 +49879,8 @@ Components: ` + JSON.stringify(m.components, null, 2));
|
|
|
49943
49879
|
(function(c) {
|
|
49944
49880
|
c[c.CLOSE_ON_EXECUTE = 0] = "CLOSE_ON_EXECUTE", c[c.BUBBLE_TO_SANDBOX = 1] = "BUBBLE_TO_SANDBOX";
|
|
49945
49881
|
})(py || (py = {}));
|
|
49946
|
-
var Ws, Ul = py, w0 = "tox-menu-nav__js", C0 = "tox-collection__item", p2 = "tox-swatch",
|
|
49947
|
-
return wt(
|
|
49882
|
+
var Ws, Ul = py, w0 = "tox-menu-nav__js", C0 = "tox-collection__item", p2 = "tox-swatch", c4 = { normal: w0, color: p2 }, d4 = "tox-collection__item--enabled", wy = "tox-collection__item-label", f4 = "tox-collection__item-caret", lp = "tox-collection__item--active", Cy = "tox-collection__item-container", Ey = "tox-collection__item-container--row", m2 = function(c) {
|
|
49883
|
+
return wt(c4, c).getOr(w0);
|
|
49948
49884
|
}, Sy = function(c) {
|
|
49949
49885
|
return c === "color" ? "tox-swatches" : "tox-menu";
|
|
49950
49886
|
}, h2 = function(c) {
|
|
@@ -49952,7 +49888,7 @@ Components: ` + JSON.stringify(m.components, null, 2));
|
|
|
49952
49888
|
}, zm = function(c) {
|
|
49953
49889
|
var m = h2(c);
|
|
49954
49890
|
return { backgroundMenu: m.backgroundMenu, selectedMenu: m.selectedMenu, menu: m.menu, selectedItem: m.selectedItem, item: m2(c) };
|
|
49955
|
-
},
|
|
49891
|
+
}, p4 = function(c, m, y) {
|
|
49956
49892
|
var C = h2(y);
|
|
49957
49893
|
return { tag: "div", classes: Ue([[C.menu, "tox-menu-" + m + "-column"], c ? [C.hasIcons] : []]) };
|
|
49958
49894
|
}, xy = [Kd.parts.items({})], E0 = function(c, m, y) {
|
|
@@ -49984,7 +49920,7 @@ Components: ` + JSON.stringify(m.components, null, 2));
|
|
|
49984
49920
|
});
|
|
49985
49921
|
}, Cl = function(c) {
|
|
49986
49922
|
return console.error(un(c)), $.none();
|
|
49987
|
-
},
|
|
49923
|
+
}, m4 = function(c, m, y, C, T) {
|
|
49988
49924
|
var I, B = (I = y, { dom: { tag: "div", classes: ["tox-collection", "tox-collection--horizontal"] }, components: [Kd.parts.items({ preprocess: function(F) {
|
|
49989
49925
|
return Cg(F, function(H, z) {
|
|
49990
49926
|
return I[z].type === "separator";
|
|
@@ -50000,16 +49936,16 @@ Components: ` + JSON.stringify(m.components, null, 2));
|
|
|
50000
49936
|
}
|
|
50001
49937
|
return T === "normal" && C === "auto" ? { value: c, dom: (I = ky(C, y)).dom, components: I.components, items: y } : T === "normal" && C === 1 ? { value: c, dom: (I = ky(1, y)).dom, components: I.components, items: y } : T === "normal" ? { value: c, dom: (I = ky(C, y)).dom, components: I.components, items: y } : T === "listpreview" && C !== "auto" ? (I = function(B) {
|
|
50002
49938
|
return { dom: { tag: "div", classes: ["tox-menu", "tox-collection", "tox-collection--toolbar", "tox-collection--toolbar-lg"] }, components: [Kd.parts.items({ preprocess: g2({ tag: "div", classes: ["tox-collection__group"] }, B) })] };
|
|
50003
|
-
}(C), { value: c, dom: I.dom, components: I.components, items: y }) : { value: c, dom:
|
|
50004
|
-
},
|
|
49939
|
+
}(C), { value: c, dom: I.dom, components: I.components, items: y }) : { value: c, dom: p4(m, C, T), components: xy, items: y };
|
|
49940
|
+
}, h4 = [ro("type"), ro("src"), Wo("alt"), oc("classes", [], Fo)], Ty = Bt(h4), g4 = [ro("type"), ro("text"), Wo("name"), oc("classes", ["tox-collection__item-label"], Fo)], _2 = Bt(g4), Ny = mf(function() {
|
|
50005
49941
|
return Is("type", { cardimage: Ty, cardtext: _2, cardcontainer: Hm });
|
|
50006
49942
|
}), Hm = Bt([ro("type"), As("direction", "horizontal"), As("align", "left"), As("valign", "middle"), ii("items", Ny)]), Sg = [Xr("disabled", !1), Wo("text"), Wo("shortcut"), mo("value", "value", gn(function() {
|
|
50007
49943
|
return uo("menuitem-value");
|
|
50008
|
-
}), ra()), Vt("meta", {})],
|
|
49944
|
+
}), ra()), Vt("meta", {})], _4 = Bt([ro("type"), Wo("label"), ii("items", Ny), Ar("onSetup", function() {
|
|
50009
49945
|
return x;
|
|
50010
|
-
}), Ar("onAction", x)].concat(Sg)),
|
|
49946
|
+
}), Ar("onAction", x)].concat(Sg)), y4 = Bt([ro("type"), Xr("active", !1), Wo("icon")].concat(Sg)), E6 = Bt([ro("type"), Ys("fancytype", ["inserttable", "colorswatch"]), Ar("onAction", x)]), Xu = Bt([ro("type"), Ar("onSetup", function() {
|
|
50011
49947
|
return x;
|
|
50012
|
-
}), Ar("onAction", x), Wo("icon")].concat(Sg)),
|
|
49948
|
+
}), Ar("onAction", x), Wo("icon")].concat(Sg)), b4 = Bt([ro("type"), Hr("getSubmenuItems"), Ar("onSetup", function() {
|
|
50013
49949
|
return x;
|
|
50014
49950
|
}), Wo("icon")].concat(Sg)), Iy = Bt([ro("type"), Wo("icon"), Xr("active", !1), Ar("onSetup", function() {
|
|
50015
49951
|
return x;
|
|
@@ -50027,9 +49963,9 @@ Components: ` + JSON.stringify(m.components, null, 2));
|
|
|
50027
49963
|
return zn([Xo(c, m)]);
|
|
50028
49964
|
}, y2 = function(c) {
|
|
50029
49965
|
return S6(uo("unnamed-events"), c);
|
|
50030
|
-
}, b2 = uo("tooltip.exclusive"), jm = uo("tooltip.show"), xg = uo("tooltip.hide"),
|
|
49966
|
+
}, b2 = uo("tooltip.exclusive"), jm = uo("tooltip.show"), xg = uo("tooltip.hide"), w4 = function(c, m, y) {
|
|
50031
49967
|
c.getSystem().broadcastOn([b2], {});
|
|
50032
|
-
},
|
|
49968
|
+
}, C4 = Object.freeze({ __proto__: null, hideAllExclusive: w4, setComponents: function(c, m, y, C) {
|
|
50033
49969
|
y.getTooltip().each(function(T) {
|
|
50034
49970
|
T.getSystem().isConnected() && Do.set(T, C);
|
|
50035
49971
|
});
|
|
@@ -50043,7 +49979,7 @@ Components: ` + JSON.stringify(m.components, null, 2));
|
|
|
50043
49979
|
m.resetTimer(function() {
|
|
50044
49980
|
(function(T) {
|
|
50045
49981
|
if (!m.isShowing()) {
|
|
50046
|
-
|
|
49982
|
+
w4(T);
|
|
50047
49983
|
var I = c.lazySink(T).getOrDie(), B = T.getSystem().build({ dom: c.tooltipDom, components: c.tooltipComponents, events: Ir(c.mode === "normal" ? [xn(Tu(), function(F) {
|
|
50048
49984
|
ko(T, jm);
|
|
50049
49985
|
}), xn(u1(), function(F) {
|
|
@@ -50075,9 +50011,9 @@ Components: ` + JSON.stringify(m.components, null, 2));
|
|
|
50075
50011
|
}), xn(Bs(), function(C) {
|
|
50076
50012
|
ko(C, xg);
|
|
50077
50013
|
})]]));
|
|
50078
|
-
} }),
|
|
50014
|
+
} }), E4 = [mn("lazySink"), mn("tooltipDom"), Vt("exclusive", !0), Vt("tooltipComponents", []), Vt("delay", 300), ga("mode", "normal", ["normal", "follow-highlight"]), Vt("anchor", function(c) {
|
|
50079
50015
|
return { anchor: "hotspot", hotspot: c, layouts: { onLtr: O([Ji, $a, ki, di, Xi, fa]), onRtl: O([Ji, $a, ki, di, Xi, fa]) } };
|
|
50080
|
-
}), Zo("onHide"), Zo("onShow")],
|
|
50016
|
+
}), Zo("onHide"), Zo("onShow")], S4 = Object.freeze({ __proto__: null, init: function() {
|
|
50081
50017
|
var c = Rn($.none()), m = Rn($.none()), y = function() {
|
|
50082
50018
|
c.get().each(function(T) {
|
|
50083
50019
|
clearTimeout(T);
|
|
@@ -50096,11 +50032,11 @@ Components: ` + JSON.stringify(m.components, null, 2));
|
|
|
50096
50032
|
T();
|
|
50097
50033
|
}, I)));
|
|
50098
50034
|
}, readState: C });
|
|
50099
|
-
} }), Oy = qr({ fields:
|
|
50035
|
+
} }), Oy = qr({ fields: E4, name: "tooltipping", active: x6, state: S4, apis: C4 }), S0 = tinymce.util.Tools.resolve("tinymce.dom.DOMUtils"), zl = tinymce.util.Tools.resolve("tinymce.util.I18n"), k6 = ["input", "button", "textarea", "select"], x4 = function(c, m, y) {
|
|
50100
50036
|
(m.disabled() ? kg : w2)(c, m);
|
|
50101
50037
|
}, Dy = function(c, m) {
|
|
50102
50038
|
return m.useNative === !0 && de(k6, Ms(c.element));
|
|
50103
|
-
},
|
|
50039
|
+
}, k4 = function(c) {
|
|
50104
50040
|
cr(c.element, "disabled", "disabled");
|
|
50105
50041
|
}, T6 = function(c) {
|
|
50106
50042
|
gs(c.element, "disabled");
|
|
@@ -50111,26 +50047,26 @@ Components: ` + JSON.stringify(m.components, null, 2));
|
|
|
50111
50047
|
}, kg = function(c, m, y) {
|
|
50112
50048
|
m.disableClass.each(function(C) {
|
|
50113
50049
|
Di(c.element, C);
|
|
50114
|
-
}), (Dy(c, m) ?
|
|
50050
|
+
}), (Dy(c, m) ? k4 : N6)(c), m.onDisabled(c);
|
|
50115
50051
|
}, w2 = function(c, m, y) {
|
|
50116
50052
|
m.disableClass.each(function(C) {
|
|
50117
50053
|
Zr(c.element, C);
|
|
50118
50054
|
}), (Dy(c, m) ? T6 : I6)(c), m.onEnabled(c);
|
|
50119
|
-
},
|
|
50055
|
+
}, T4 = function(c, m) {
|
|
50120
50056
|
return Dy(c, m) ? function(y) {
|
|
50121
50057
|
return Ch(y.element, "disabled");
|
|
50122
50058
|
}(c) : function(y) {
|
|
50123
50059
|
return Yi(y.element, "aria-disabled") === "true";
|
|
50124
50060
|
}(c);
|
|
50125
|
-
},
|
|
50061
|
+
}, N4 = Object.freeze({ __proto__: null, enable: w2, disable: kg, isDisabled: T4, onLoad: x4, set: function(c, m, y, C) {
|
|
50126
50062
|
(C ? kg : w2)(c, m);
|
|
50127
50063
|
} }), A6 = Object.freeze({ __proto__: null, exhibit: function(c, m) {
|
|
50128
50064
|
return ol({ classes: m.disabled() ? m.disableClass.toArray() : [] });
|
|
50129
50065
|
}, events: function(c, m) {
|
|
50130
50066
|
return Ir([Ai(ya(), function(y, C) {
|
|
50131
|
-
return
|
|
50132
|
-
}), _d(c, m,
|
|
50133
|
-
} }), O6 = [Ar("disabled", W), Vt("useNative", !0), jo("disableClass"), Zo("onDisabled"), Zo("onEnabled")], _o = qr({ fields: O6, name: "disabling", active: A6, apis:
|
|
50067
|
+
return T4(y, c);
|
|
50068
|
+
}), _d(c, m, x4)]);
|
|
50069
|
+
} }), O6 = [Ar("disabled", W), Vt("useNative", !0), jo("disableClass"), Zo("onDisabled"), Zo("onEnabled")], _o = qr({ fields: O6, name: "disabling", active: A6, apis: N4 }), Py = tinymce.util.Tools.resolve("tinymce.EditorManager"), C2 = function(c) {
|
|
50134
50070
|
return c.getParam("height", Math.max(c.getElement().offsetHeight, 200));
|
|
50135
50071
|
}, E2 = function(c) {
|
|
50136
50072
|
return c.getParam("width", S0.DOM.getStyle(c.getElement(), "width"));
|
|
@@ -50168,9 +50104,9 @@ Components: ` + JSON.stringify(m.components, null, 2));
|
|
|
50168
50104
|
(function(c) {
|
|
50169
50105
|
c.auto = "auto", c.top = "top", c.bottom = "bottom";
|
|
50170
50106
|
})(Jd || (Jd = {}));
|
|
50171
|
-
var
|
|
50107
|
+
var I4, Ry, My = function(c) {
|
|
50172
50108
|
return c.getParam("toolbar_location", Jd.auto, "string");
|
|
50173
|
-
},
|
|
50109
|
+
}, A4 = function(c) {
|
|
50174
50110
|
return My(c) === Jd.bottom;
|
|
50175
50111
|
}, $y = function(c) {
|
|
50176
50112
|
if (!c.inline)
|
|
@@ -50194,7 +50130,7 @@ Components: ` + JSON.stringify(m.components, null, 2));
|
|
|
50194
50130
|
return c.inline && !S2(c) && !x2(c) && !k2(c);
|
|
50195
50131
|
}, I0 = function(c) {
|
|
50196
50132
|
return (c.getParam("toolbar_sticky", !1, "boolean") || c.inline) && !N0(c) && !Vy(c);
|
|
50197
|
-
},
|
|
50133
|
+
}, O4 = function(c) {
|
|
50198
50134
|
var m = c.getParam("menu");
|
|
50199
50135
|
return m ? Ye(m, function(y) {
|
|
50200
50136
|
return J(J({}, y), { items: y.items });
|
|
@@ -50205,7 +50141,7 @@ Components: ` + JSON.stringify(m.components, null, 2));
|
|
|
50205
50141
|
return c.getParam("anchor_top", "#top");
|
|
50206
50142
|
}, Fy = function(c) {
|
|
50207
50143
|
return c.getParam("anchor_bottom", "#bottom");
|
|
50208
|
-
}, T2 = "silver.readonly",
|
|
50144
|
+
}, T2 = "silver.readonly", D4 = Bt([(I4 = "readonly", wr(I4, Xc))]), Ng = function(c, m) {
|
|
50209
50145
|
var y = c.outerContainer.element;
|
|
50210
50146
|
m && (c.mothership.broadcastOn([Wu()], { target: y }), c.uiMothership.broadcastOn([Wu()], { target: y })), c.mothership.broadcastOn([T2], { readonly: m }), c.uiMothership.broadcastOn([T2], { readonly: m });
|
|
50211
50147
|
}, N2 = function(c, m) {
|
|
@@ -50218,7 +50154,7 @@ Components: ` + JSON.stringify(m.components, null, 2));
|
|
|
50218
50154
|
}(c) && c.setMode("readonly");
|
|
50219
50155
|
}, Mi = function() {
|
|
50220
50156
|
var c;
|
|
50221
|
-
return os.config({ channels: (c = {}, c[T2] = { schema:
|
|
50157
|
+
return os.config({ channels: (c = {}, c[T2] = { schema: D4, onReceive: function(m, y) {
|
|
50222
50158
|
_o.set(m, y.readonly);
|
|
50223
50159
|
} }, c) });
|
|
50224
50160
|
}, B6 = function(c) {
|
|
@@ -50245,7 +50181,7 @@ Components: ` + JSON.stringify(m.components, null, 2));
|
|
|
50245
50181
|
return Qs(function(y) {
|
|
50246
50182
|
return I2(c, y)(m.get());
|
|
50247
50183
|
});
|
|
50248
|
-
},
|
|
50184
|
+
}, P4 = function(c, m) {
|
|
50249
50185
|
return li(function(y, C) {
|
|
50250
50186
|
I2(c, y)(c.onAction), c.triggersSubmenu || m !== Ul.CLOSE_ON_EXECUTE || (y.getSystem().isConnected() && ko(y, hf()), C.stop());
|
|
50251
50187
|
});
|
|
@@ -50255,7 +50191,7 @@ Components: ` + JSON.stringify(m.components, null, 2));
|
|
|
50255
50191
|
});
|
|
50256
50192
|
}, Og = function(c, m, y, C) {
|
|
50257
50193
|
var T = Rn(x);
|
|
50258
|
-
return { type: "item", dom: m.dom, components: cp(m.optComponents), data: c.data, eventOrder: R6, hasSubmenu: c.triggersSubmenu, itemBehaviours: zn([Xo("item-events", [
|
|
50194
|
+
return { type: "item", dom: m.dom, components: cp(m.optComponents), data: c.data, eventOrder: R6, hasSubmenu: c.triggersSubmenu, itemBehaviours: zn([Xo("item-events", [P4(c, y), Ig(c, T), Ag(c, T)]), B6(function() {
|
|
50259
50195
|
return c.disabled || C.isDisabled();
|
|
50260
50196
|
}), Mi(), Do.config({})].concat(c.itemBehaviours)) };
|
|
50261
50197
|
}, Dg = function(c) {
|
|
@@ -50266,9 +50202,9 @@ Components: ` + JSON.stringify(m.components, null, 2));
|
|
|
50266
50202
|
return Ut(m, I) ? m[I] : T;
|
|
50267
50203
|
});
|
|
50268
50204
|
return Uy.mac ? C.join("") : C.join("+");
|
|
50269
|
-
},
|
|
50205
|
+
}, B4 = function(c) {
|
|
50270
50206
|
return { dom: { tag: "div", classes: ["tox-collection__item-icon"], innerHtml: c } };
|
|
50271
|
-
},
|
|
50207
|
+
}, R4 = function(c) {
|
|
50272
50208
|
return { dom: { tag: "div", classes: [wy] }, components: [qa(zl.translate(c))] };
|
|
50273
50209
|
}, A2 = function(c, m) {
|
|
50274
50210
|
return { dom: { tag: "div", classes: m, innerHtml: c } };
|
|
@@ -50276,17 +50212,17 @@ Components: ` + JSON.stringify(m.components, null, 2));
|
|
|
50276
50212
|
return { dom: { tag: "div", classes: [wy] }, components: [{ dom: { tag: c.tag, styles: c.styles }, components: [qa(zl.translate(m))] }] };
|
|
50277
50213
|
}, D2 = function(c) {
|
|
50278
50214
|
return { dom: { tag: "div", classes: ["tox-collection__item-accessory"], innerHtml: M6(c) } };
|
|
50279
|
-
},
|
|
50215
|
+
}, M4 = function(c) {
|
|
50280
50216
|
return { dom: { tag: "div", classes: ["tox-collection__item-checkmark"], innerHtml: Es("checkmark", c) } };
|
|
50281
|
-
},
|
|
50217
|
+
}, $4 = function(c, m) {
|
|
50282
50218
|
var y = m.map(function(C) {
|
|
50283
50219
|
return { attributes: { title: zl.translate(C) } };
|
|
50284
50220
|
}).getOr({});
|
|
50285
50221
|
return J({ tag: "div", classes: [w0, C0].concat(c ? ["tox-collection__item-icon-rtl"] : []) }, y);
|
|
50286
|
-
}, $6 = ["list-num-default", "list-num-lower-alpha", "list-num-lower-greek", "list-num-lower-roman", "list-num-upper-alpha", "list-num-upper-roman"],
|
|
50222
|
+
}, $6 = ["list-num-default", "list-num-lower-alpha", "list-num-lower-greek", "list-num-lower-roman", "list-num-upper-alpha", "list-num-upper-roman"], V4 = ["list-bull-circle", "list-bull-default", "list-bull-square"], qm = function(c, m, y, C) {
|
|
50287
50223
|
C === void 0 && (C = $.none());
|
|
50288
50224
|
var T, I = zl.isRtl() && c.iconContent.exists(function(H) {
|
|
50289
|
-
return de(
|
|
50225
|
+
return de(V4, H);
|
|
50290
50226
|
}), B = (T = c.iconContent, T.map(function(H) {
|
|
50291
50227
|
return zl.isRtl() && de($6, H) ? H + "-rtl" : H;
|
|
50292
50228
|
})).map(function(H) {
|
|
@@ -50296,9 +50232,9 @@ Components: ` + JSON.stringify(m.components, null, 2));
|
|
|
50296
50232
|
});
|
|
50297
50233
|
}(H, m.icons, C);
|
|
50298
50234
|
}), F = $.from(c.meta).fold(function() {
|
|
50299
|
-
return
|
|
50235
|
+
return R4;
|
|
50300
50236
|
}, function(H) {
|
|
50301
|
-
return Ut(H, "style") ? L(O2, H.style) :
|
|
50237
|
+
return Ut(H, "style") ? L(O2, H.style) : R4;
|
|
50302
50238
|
});
|
|
50303
50239
|
return c.presets === "color" ? function(H, z, Q, te) {
|
|
50304
50240
|
var ve, De, Fe, it;
|
|
@@ -50306,14 +50242,14 @@ Components: ` + JSON.stringify(m.components, null, 2));
|
|
|
50306
50242
|
return { title: te.translate(Ve) };
|
|
50307
50243
|
}).getOr({}), it = { tag: "div", attributes: Fe, classes: [ve] }, J(J({}, it), z === "custom" ? { tag: "button", classes: re(it.classes, ["tox-swatches__picker-btn"]), innerHtml: De } : z === "remove" ? { classes: re(it.classes, ["tox-swatch--remove"]), innerHtml: De } : { attributes: J(J({}, it.attributes), { "data-mce-color": z }), styles: { "background-color": z } })), optComponents: [] };
|
|
50308
50244
|
}(c.ariaLabel, c.value, B, m) : function(H, z, Q, te, ve) {
|
|
50309
|
-
var De = Q ? z.or($.some("")).map(
|
|
50245
|
+
var De = Q ? z.or($.some("")).map(B4) : $.none(), Fe = H.checkMark, it = H.htmlContent.fold(function() {
|
|
50310
50246
|
return H.textContent.map(te);
|
|
50311
50247
|
}, function(Ve) {
|
|
50312
50248
|
return $.some(A2(Ve, [wy]));
|
|
50313
50249
|
});
|
|
50314
|
-
return { dom:
|
|
50250
|
+
return { dom: $4(ve, H.ariaLabel), optComponents: [De, it, H.shortcutContent.map(D2), Fe, H.caret] };
|
|
50315
50251
|
}(c, B, y, F, I);
|
|
50316
|
-
},
|
|
50252
|
+
}, F4 = function(c, m) {
|
|
50317
50253
|
return wt(c, "tooltipWorker").map(function(y) {
|
|
50318
50254
|
return [Oy.config({ lazySink: m.getSink, tooltipDom: { tag: "div", classes: ["tox-tooltip-worker-container"] }, tooltipComponents: [], anchor: function(C) {
|
|
50319
50255
|
return { anchor: "submenu", item: C, overrides: { maxHeightFunction: bd } };
|
|
@@ -50336,7 +50272,7 @@ Components: ` + JSON.stringify(m.components, null, 2));
|
|
|
50336
50272
|
});
|
|
50337
50273
|
}
|
|
50338
50274
|
return y;
|
|
50339
|
-
},
|
|
50275
|
+
}, L4 = function(c, m) {
|
|
50340
50276
|
return Ee(c, function(y) {
|
|
50341
50277
|
switch (y.type) {
|
|
50342
50278
|
case "cardcontainer":
|
|
@@ -50352,7 +50288,7 @@ Components: ` + JSON.stringify(m.components, null, 2));
|
|
|
50352
50288
|
return "tox-collection__item-container--valign-bottom";
|
|
50353
50289
|
}
|
|
50354
50290
|
}()] }, components: B };
|
|
50355
|
-
}(y,
|
|
50291
|
+
}(y, L4(y.items, m));
|
|
50356
50292
|
case "cardimage":
|
|
50357
50293
|
return function(I, B, F) {
|
|
50358
50294
|
return { dom: { tag: "img", classes: B, attributes: { src: I, alt: F.getOr("") } } };
|
|
@@ -50364,17 +50300,17 @@ Components: ` + JSON.stringify(m.components, null, 2));
|
|
|
50364
50300
|
return A2(zy(y.text, T), y.classes);
|
|
50365
50301
|
}
|
|
50366
50302
|
});
|
|
50367
|
-
},
|
|
50303
|
+
}, U4 = Dc(m0(), ly()), Hy = function(c) {
|
|
50368
50304
|
return { value: c };
|
|
50369
|
-
}, Pg = /^#?([a-f\d])([a-f\d])([a-f\d])$/i,
|
|
50370
|
-
return Pg.test(c) ||
|
|
50371
|
-
},
|
|
50305
|
+
}, Pg = /^#?([a-f\d])([a-f\d])([a-f\d])$/i, z4 = /^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i, P2 = function(c) {
|
|
50306
|
+
return Pg.test(c) || z4.test(c);
|
|
50307
|
+
}, H4 = function(c) {
|
|
50372
50308
|
var m = function(C) {
|
|
50373
50309
|
var T = C.value.replace(Pg, function(I, B, F, H) {
|
|
50374
50310
|
return B + B + F + F + H + H;
|
|
50375
50311
|
});
|
|
50376
50312
|
return { value: T };
|
|
50377
|
-
}(c), y =
|
|
50313
|
+
}(c), y = z4.exec(m.value);
|
|
50378
50314
|
return y === null ? ["FFFFFF", "FF", "FF", "FF"] : y;
|
|
50379
50315
|
}, jy = function(c) {
|
|
50380
50316
|
var m = c.toString(16);
|
|
@@ -50382,14 +50318,14 @@ Components: ` + JSON.stringify(m.components, null, 2));
|
|
|
50382
50318
|
}, Wy = function(c) {
|
|
50383
50319
|
var m = jy(c.red) + jy(c.green) + jy(c.blue);
|
|
50384
50320
|
return Hy(m);
|
|
50385
|
-
},
|
|
50321
|
+
}, j4 = Math.min, W4 = Math.max, B2 = Math.round, V6 = /^rgb\((\d+),\s*(\d+),\s*(\d+)\)/, Km = /^rgba\((\d+),\s*(\d+),\s*(\d+),\s*(\d?(?:\.\d+)?)\)/, Ym = function(c, m, y, C) {
|
|
50386
50322
|
return { red: c, green: m, blue: y, alpha: C };
|
|
50387
50323
|
}, Bg = function(c) {
|
|
50388
50324
|
var m = parseInt(c, 10);
|
|
50389
50325
|
return m.toString() === c && m >= 0 && m <= 255;
|
|
50390
50326
|
}, Gy = function(c) {
|
|
50391
50327
|
var m, y, C, T = (c.hue || 0) % 360, I = c.saturation / 100, B = c.value / 100;
|
|
50392
|
-
if (I =
|
|
50328
|
+
if (I = W4(0, j4(I, 1)), B = W4(0, j4(B, 1)), I === 0)
|
|
50393
50329
|
return m = y = C = B2(255 * B), Ym(m, y, C, 1);
|
|
50394
50330
|
var F = T / 60, H = B * I, z = H * (1 - Math.abs(F % 2 - 1)), Q = B - H;
|
|
50395
50331
|
switch (Math.floor(F)) {
|
|
@@ -50416,25 +50352,25 @@ Components: ` + JSON.stringify(m.components, null, 2));
|
|
|
50416
50352
|
}
|
|
50417
50353
|
return m = B2(255 * (m + Q)), y = B2(255 * (y + Q)), C = B2(255 * (C + Q)), Ym(m, y, C, 1);
|
|
50418
50354
|
}, Rg = function(c) {
|
|
50419
|
-
var m =
|
|
50355
|
+
var m = H4(c), y = parseInt(m[1], 16), C = parseInt(m[2], 16), T = parseInt(m[3], 16);
|
|
50420
50356
|
return Ym(y, C, T, 1);
|
|
50421
|
-
},
|
|
50357
|
+
}, G4 = function(c, m, y, C) {
|
|
50422
50358
|
var T = parseInt(c, 10), I = parseInt(m, 10), B = parseInt(y, 10), F = parseFloat(C);
|
|
50423
50359
|
return Ym(T, I, B, F);
|
|
50424
|
-
},
|
|
50360
|
+
}, q4 = function(c) {
|
|
50425
50361
|
return "rgba(" + c.red + "," + c.green + "," + c.blue + "," + c.alpha + ")";
|
|
50426
|
-
},
|
|
50362
|
+
}, K4 = Ym(255, 0, 0, 1), qy = function(c, m) {
|
|
50427
50363
|
return c.fire("ResizeContent", m);
|
|
50428
|
-
}, A0 = tinymce.util.Tools.resolve("tinymce.util.LocalStorage"),
|
|
50364
|
+
}, A0 = tinymce.util.Tools.resolve("tinymce.util.LocalStorage"), Y4 = "tinymce-custom-colors", Mg, zr = "choiceitem", dp = [{ type: zr, text: "Light Green", value: "#BFEDD2" }, { type: zr, text: "Light Yellow", value: "#FBEEB8" }, { type: zr, text: "Light Red", value: "#F8CAC6" }, { type: zr, text: "Light Purple", value: "#ECCAFA" }, { type: zr, text: "Light Blue", value: "#C2E0F4" }, { type: zr, text: "Green", value: "#2DC26B" }, { type: zr, text: "Yellow", value: "#F1C40F" }, { type: zr, text: "Red", value: "#E03E2D" }, { type: zr, text: "Purple", value: "#B96AD9" }, { type: zr, text: "Blue", value: "#3598DB" }, { type: zr, text: "Dark Turquoise", value: "#169179" }, { type: zr, text: "Orange", value: "#E67E23" }, { type: zr, text: "Dark Red", value: "#BA372A" }, { type: zr, text: "Dark Purple", value: "#843FA1" }, { type: zr, text: "Dark Blue", value: "#236FA1" }, { type: zr, text: "Light Gray", value: "#ECF0F1" }, { type: zr, text: "Medium Gray", value: "#CED4D9" }, { type: zr, text: "Gray", value: "#95A5A6" }, { type: zr, text: "Dark Gray", value: "#7E8C8D" }, { type: zr, text: "Navy Blue", value: "#34495E" }, { type: zr, text: "Black", value: "#000000" }, { type: zr, text: "White", value: "#ffffff" }], Ky = function(c) {
|
|
50429
50365
|
c === void 0 && (c = 10);
|
|
50430
|
-
var m, y = A0.getItem(
|
|
50366
|
+
var m, y = A0.getItem(Y4), C = r(y) ? JSON.parse(y) : [], T = c - (m = C).length < 0 ? m.slice(0, c) : m, I = function(B) {
|
|
50431
50367
|
T.splice(B, 1);
|
|
50432
50368
|
};
|
|
50433
50369
|
return { add: function(B) {
|
|
50434
50370
|
(function(F, H) {
|
|
50435
50371
|
var z = pe(F, H);
|
|
50436
50372
|
return z === -1 ? $.none() : $.some(z);
|
|
50437
|
-
})(T, B).each(I), T.unshift(B), T.length > c && T.pop(), A0.setItem(
|
|
50373
|
+
})(T, B).each(I), T.unshift(B), T.length > c && T.pop(), A0.setItem(Y4, JSON.stringify(T));
|
|
50438
50374
|
}, state: function() {
|
|
50439
50375
|
return T.slice(0);
|
|
50440
50376
|
} };
|
|
@@ -50470,7 +50406,7 @@ Components: ` + JSON.stringify(m.components, null, 2));
|
|
|
50470
50406
|
return y.getParam("color_cols", C, "number");
|
|
50471
50407
|
}(c, m);
|
|
50472
50408
|
}, O0 = function(c, m, y, C) {
|
|
50473
|
-
y === "custom" ?
|
|
50409
|
+
y === "custom" ? Z4(c)(function(T) {
|
|
50474
50410
|
T.each(function(I) {
|
|
50475
50411
|
R2(I), c.execCommand("mceApplyTextcolor", m, I), C(I);
|
|
50476
50412
|
});
|
|
@@ -50482,14 +50418,14 @@ Components: ` + JSON.stringify(m.components, null, 2));
|
|
|
50482
50418
|
var C = "choiceitem", T = { type: C, text: "Remove color", icon: "color-swatch-remove-color", value: "remove" };
|
|
50483
50419
|
return y ? [T, { type: C, text: "Custom color", icon: "color-picker", value: "custom" }] : [T];
|
|
50484
50420
|
}(m)));
|
|
50485
|
-
},
|
|
50421
|
+
}, X4 = function(c, m) {
|
|
50486
50422
|
return function(y) {
|
|
50487
50423
|
y(D0(c, m));
|
|
50488
50424
|
};
|
|
50489
50425
|
}, Xy = function(c, m, y) {
|
|
50490
50426
|
var C = m === "forecolor" ? "tox-icon-text-color__color" : "tox-icon-highlight-bg-color__color";
|
|
50491
50427
|
c.setIconFill(C, y);
|
|
50492
|
-
},
|
|
50428
|
+
}, J4 = function(c, m, y, C, T) {
|
|
50493
50429
|
c.ui.registry.addSplitButton(m, { tooltip: C, presets: "color", icon: m === "forecolor" ? "text-color" : "highlight-bg-color", select: function(I) {
|
|
50494
50430
|
var B = $.from(function(F, H) {
|
|
50495
50431
|
var z;
|
|
@@ -50504,15 +50440,15 @@ Components: ` + JSON.stringify(m.components, null, 2));
|
|
|
50504
50440
|
return $.some(Ym(0, 0, 0, 0));
|
|
50505
50441
|
var z = V6.exec(H);
|
|
50506
50442
|
if (z !== null)
|
|
50507
|
-
return $.some(
|
|
50443
|
+
return $.some(G4(z[1], z[2], z[3], "1"));
|
|
50508
50444
|
var Q = Km.exec(H);
|
|
50509
|
-
return Q !== null ? $.some(
|
|
50445
|
+
return Q !== null ? $.some(G4(Q[1], Q[2], Q[3], Q[4])) : $.none();
|
|
50510
50446
|
}(F).map(function(H) {
|
|
50511
50447
|
var z = Wy(H).value;
|
|
50512
50448
|
return rt(I.toLowerCase(), z);
|
|
50513
50449
|
});
|
|
50514
50450
|
}).getOr(!1);
|
|
50515
|
-
}, columns: M2(c), fetch:
|
|
50451
|
+
}, columns: M2(c), fetch: X4($g(c), Yy(c)), onAction: function(I) {
|
|
50516
50452
|
T.get() !== null && O0(c, y, T.get(), x);
|
|
50517
50453
|
}, onItemAction: function(I, B) {
|
|
50518
50454
|
O0(c, y, B, function(F) {
|
|
@@ -50535,7 +50471,7 @@ Components: ` + JSON.stringify(m.components, null, 2));
|
|
|
50535
50471
|
O0(c, y, T.value, x);
|
|
50536
50472
|
} }];
|
|
50537
50473
|
} });
|
|
50538
|
-
},
|
|
50474
|
+
}, Z4 = function(c) {
|
|
50539
50475
|
return function(m, y) {
|
|
50540
50476
|
var C = !1, T = { colorpicker: y };
|
|
50541
50477
|
c.windowManager.open({ title: "Color Picker", size: "normal", body: { type: "panel", items: [{ type: "colorpicker", name: "colorpicker", label: "Color" }] }, buttons: [{ type: "cancel", name: "cancel", text: "Cancel" }, { type: "submit", name: "save", text: "Save", primary: !0 }], initialData: T, onAction: function(I, B) {
|
|
@@ -50552,10 +50488,10 @@ Components: ` + JSON.stringify(m.components, null, 2));
|
|
|
50552
50488
|
return v2(c, H, z, C, T);
|
|
50553
50489
|
}, F6 = function(c, m, y, C, T, I, B) {
|
|
50554
50490
|
return vo(Ee(c, function(F) {
|
|
50555
|
-
return F.type === "choiceitem" ? (H = F, gr("choicemenuitem",
|
|
50491
|
+
return F.type === "choiceitem" ? (H = F, gr("choicemenuitem", y4, H)).fold(Cl, function(z) {
|
|
50556
50492
|
return $.some(function(Q, te, ve, De, Fe, it, Ve, ft) {
|
|
50557
50493
|
ft === void 0 && (ft = !0);
|
|
50558
|
-
var He = qm({ presets: ve, textContent: te ? Q.text : $.none(), htmlContent: $.none(), ariaLabel: Q.text, iconContent: Q.icon, shortcutContent: te ? Q.shortcut : $.none(), checkMark: te ? $.some(
|
|
50494
|
+
var He = qm({ presets: ve, textContent: te ? Q.text : $.none(), htmlContent: $.none(), ariaLabel: Q.text, iconContent: Q.icon, shortcutContent: te ? Q.shortcut : $.none(), checkMark: te ? $.some(M4(Ve.icons)) : $.none(), caret: $.none(), value: Q.value }, Ve, ft);
|
|
50559
50495
|
return Ae(Og({ data: Dg(Q), disabled: Q.disabled, getApi: function(et) {
|
|
50560
50496
|
return { setActive: function(Nt) {
|
|
50561
50497
|
rr.set(et, Nt);
|
|
@@ -50570,7 +50506,7 @@ Components: ` + JSON.stringify(m.components, null, 2));
|
|
|
50570
50506
|
return De(Q.value);
|
|
50571
50507
|
}, onSetup: function(et) {
|
|
50572
50508
|
return et.setActive(Fe), x;
|
|
50573
|
-
}, triggersSubmenu: !1, itemBehaviours: [] }, He, it, Ve), { toggling: { toggleClass:
|
|
50509
|
+
}, triggersSubmenu: !1, itemBehaviours: [] }, He, it, Ve), { toggling: { toggleClass: d4, toggleOnExecute: !1, selected: Q.active } });
|
|
50574
50510
|
}(z, y === 1, C, m, I(F.value), T, B, Eg(c)));
|
|
50575
50511
|
}) : $.none();
|
|
50576
50512
|
var H;
|
|
@@ -50578,9 +50514,9 @@ Components: ` + JSON.stringify(m.components, null, 2));
|
|
|
50578
50514
|
}, P0 = function(c, m) {
|
|
50579
50515
|
var y = zm(m);
|
|
50580
50516
|
return c === 1 ? { mode: "menu", moveOnTab: !0 } : c === "auto" ? { mode: "grid", selector: "." + y.item, initSize: { numColumns: 1, numRows: 1 } } : { mode: "matrix", rowSelector: "." + (m === "color" ? "tox-swatches__row" : "tox-collection__group") };
|
|
50581
|
-
}, Zy = uo("cell-over"),
|
|
50517
|
+
}, Zy = uo("cell-over"), Q4 = uo("cell-execute"), L6 = function(c, m, y) {
|
|
50582
50518
|
var C, T = function(B) {
|
|
50583
|
-
return ho(B,
|
|
50519
|
+
return ho(B, Q4, { row: c, col: m });
|
|
50584
50520
|
}, I = function(B, F) {
|
|
50585
50521
|
F.stop(), T(B);
|
|
50586
50522
|
};
|
|
@@ -50593,7 +50529,7 @@ Components: ` + JSON.stringify(m.components, null, 2));
|
|
|
50593
50529
|
});
|
|
50594
50530
|
}, ss = function(c, m) {
|
|
50595
50531
|
return qa(m + 1 + "x" + (c + 1));
|
|
50596
|
-
},
|
|
50532
|
+
}, eC = { inserttable: function(c) {
|
|
50597
50533
|
var m = uo("size-label"), y = function(T, I, B) {
|
|
50598
50534
|
for (var F = [], H = 0; H < I; H++) {
|
|
50599
50535
|
for (var z = [], Q = 0; Q < B; Q++)
|
|
@@ -50602,21 +50538,21 @@ Components: ` + JSON.stringify(m.components, null, 2));
|
|
|
50602
50538
|
}
|
|
50603
50539
|
return F;
|
|
50604
50540
|
}(m, 10, 10), C = _r({ dom: { tag: "span", classes: ["tox-insert-table-picker__label"], attributes: { id: m } }, components: [qa("0x0")], behaviours: zn([Do.config({})]) });
|
|
50605
|
-
return { type: "widget", data: { value: uo("widget-id") }, dom: { tag: "div", classes: ["tox-fancymenuitem"] }, autofocus: !0, components: [
|
|
50541
|
+
return { type: "widget", data: { value: uo("widget-id") }, dom: { tag: "div", classes: ["tox-fancymenuitem"] }, autofocus: !0, components: [U4.widget({ dom: { tag: "div", classes: ["tox-insert-table-picker"] }, components: V2(y).concat(C.asSpec()), behaviours: zn([Xo("insert-table-picker", [bf(Zy, function(T, I, B) {
|
|
50606
50542
|
var F = B.event.row, H = B.event.col;
|
|
50607
50543
|
(function(z, Q, te, ve, De) {
|
|
50608
50544
|
for (var Fe = 0; Fe < ve; Fe++)
|
|
50609
50545
|
for (var it = 0; it < De; it++)
|
|
50610
50546
|
rr.set(z[Fe][it], Fe <= Q && it <= te);
|
|
50611
50547
|
})(y, F, H, 10, 10), Do.set(C.get(T), [ss(F, H)]);
|
|
50612
|
-
}), bf(
|
|
50548
|
+
}), bf(Q4, function(T, I, B) {
|
|
50613
50549
|
c.onAction({ numRows: B.event.row + 1, numColumns: B.event.col + 1 }), ko(T, hf());
|
|
50614
50550
|
})]), bo.config({ initSize: { numRows: 10, numColumns: 10 }, mode: "flatgrid", selector: '[role="button"]' })]) })] };
|
|
50615
50551
|
}, colorswatch: function(c, m) {
|
|
50616
50552
|
var y = D0(m.colorinput.getColors(), m.colorinput.hasCustomColors()), C = m.colorinput.getColorCols(), T = "color", I = $2(uo("menu-value"), y, function(F) {
|
|
50617
50553
|
c.onAction({ value: F });
|
|
50618
50554
|
}, C, T, Ul.CLOSE_ON_EXECUTE, W, m.shared.providers), B = J(J({}, I), { markers: zm(T), movement: P0(C, T) });
|
|
50619
|
-
return { type: "widget", data: { value: uo("widget-id") }, dom: { tag: "div", classes: ["tox-fancymenuitem"] }, autofocus: !0, components: [
|
|
50555
|
+
return { type: "widget", data: { value: uo("widget-id") }, dom: { tag: "div", classes: ["tox-fancymenuitem"] }, autofocus: !0, components: [U4.widget(Kd.sketch(B))] };
|
|
50620
50556
|
} }, U6 = function(c, m, y, C, T, I, B, F) {
|
|
50621
50557
|
F === void 0 && (F = !0);
|
|
50622
50558
|
var H = qm({ presets: C, textContent: $.none(), htmlContent: y ? c.text.map(function(z) {
|
|
@@ -50624,15 +50560,15 @@ Components: ` + JSON.stringify(m.components, null, 2));
|
|
|
50624
50560
|
}) : $.none(), ariaLabel: c.text, iconContent: c.icon, shortcutContent: $.none(), checkMark: $.none(), caret: $.none(), value: c.value }, B.providers, F, c.icon);
|
|
50625
50561
|
return Og({ data: Dg(c), disabled: c.disabled, getApi: O({}), onAction: function(z) {
|
|
50626
50562
|
return T(c.value, c.meta);
|
|
50627
|
-
}, onSetup: O(x), triggersSubmenu: !1, itemBehaviours:
|
|
50628
|
-
},
|
|
50563
|
+
}, onSetup: O(x), triggersSubmenu: !1, itemBehaviours: F4(c.meta, B) }, H, I, B.providers);
|
|
50564
|
+
}, tC = function(c) {
|
|
50629
50565
|
var m = c.text.fold(function() {
|
|
50630
50566
|
return {};
|
|
50631
50567
|
}, function(y) {
|
|
50632
50568
|
return { innerHtml: y };
|
|
50633
50569
|
});
|
|
50634
50570
|
return { type: "separator", dom: J({ tag: "div", classes: [C0, "tox-collection__group-heading"] }, m), components: [] };
|
|
50635
|
-
},
|
|
50571
|
+
}, nC = function(c, m, y, C) {
|
|
50636
50572
|
C === void 0 && (C = !0);
|
|
50637
50573
|
var T = qm({ presets: "normal", iconContent: c.icon, textContent: c.text, htmlContent: $.none(), ariaLabel: c.text, caret: $.none(), checkMark: $.none(), shortcutContent: c.shortcut }, y, C);
|
|
50638
50574
|
return Og({ data: Dg(c), getApi: function(I) {
|
|
@@ -50642,10 +50578,10 @@ Components: ` + JSON.stringify(m.components, null, 2));
|
|
|
50642
50578
|
return _o.set(I, B);
|
|
50643
50579
|
} };
|
|
50644
50580
|
}, disabled: c.disabled, onAction: c.onAction, onSetup: c.onSetup, triggersSubmenu: !1, itemBehaviours: [] }, T, m, y);
|
|
50645
|
-
},
|
|
50581
|
+
}, oC = function(c, m, y, C, T) {
|
|
50646
50582
|
C === void 0 && (C = !0), T === void 0 && (T = !1);
|
|
50647
|
-
var I, B = T ? (I = y.icons, { dom: { tag: "div", classes: [
|
|
50648
|
-
return { dom: { tag: "div", classes: [
|
|
50583
|
+
var I, B = T ? (I = y.icons, { dom: { tag: "div", classes: [f4], innerHtml: Es("chevron-down", I) } }) : function(H) {
|
|
50584
|
+
return { dom: { tag: "div", classes: [f4], innerHtml: Es("chevron-right", H) } };
|
|
50649
50585
|
}(y.icons), F = qm({ presets: "normal", iconContent: c.icon, textContent: c.text, htmlContent: $.none(), ariaLabel: c.text, caret: $.some(B), checkMark: $.none(), shortcutContent: c.shortcut }, y, C);
|
|
50650
50586
|
return Og({ data: Dg(c), getApi: function(H) {
|
|
50651
50587
|
return { isDisabled: function() {
|
|
@@ -50656,7 +50592,7 @@ Components: ` + JSON.stringify(m.components, null, 2));
|
|
|
50656
50592
|
}, disabled: c.disabled, onAction: x, onSetup: c.onSetup, triggersSubmenu: !0, itemBehaviours: [] }, F, m, y);
|
|
50657
50593
|
}, z6 = function(c, m, y, C) {
|
|
50658
50594
|
C === void 0 && (C = !0);
|
|
50659
|
-
var T = qm({ iconContent: c.icon, textContent: c.text, htmlContent: $.none(), ariaLabel: c.text, checkMark: $.some(
|
|
50595
|
+
var T = qm({ iconContent: c.icon, textContent: c.text, htmlContent: $.none(), ariaLabel: c.text, checkMark: $.some(M4(y.icons)), caret: $.none(), shortcutContent: c.shortcut, presets: "normal", meta: c.meta }, y, C);
|
|
50660
50596
|
return Ae(Og({ data: Dg(c), disabled: c.disabled, getApi: function(I) {
|
|
50661
50597
|
return { setActive: function(B) {
|
|
50662
50598
|
rr.set(I, B);
|
|
@@ -50667,15 +50603,15 @@ Components: ` + JSON.stringify(m.components, null, 2));
|
|
|
50667
50603
|
}, setDisabled: function(B) {
|
|
50668
50604
|
return _o.set(I, B);
|
|
50669
50605
|
} };
|
|
50670
|
-
}, onAction: c.onAction, onSetup: c.onSetup, triggersSubmenu: !1, itemBehaviours: [] }, T, m, y), { toggling: { toggleClass:
|
|
50671
|
-
},
|
|
50606
|
+
}, onAction: c.onAction, onSetup: c.onSetup, triggersSubmenu: !1, itemBehaviours: [] }, T, m, y), { toggling: { toggleClass: d4, toggleOnExecute: !1, selected: c.active } });
|
|
50607
|
+
}, rC = function(c, m) {
|
|
50672
50608
|
return function(y, C) {
|
|
50673
50609
|
return Object.prototype.hasOwnProperty.call(y, C) ? $.some(y[C]) : $.none();
|
|
50674
|
-
}(
|
|
50610
|
+
}(eC, c.fancytype).map(function(y) {
|
|
50675
50611
|
return y(c, m);
|
|
50676
50612
|
});
|
|
50677
|
-
},
|
|
50678
|
-
var T = { dom:
|
|
50613
|
+
}, iC = function(c, m, y, C) {
|
|
50614
|
+
var T = { dom: $4(!1, c.label), optComponents: [$.some({ dom: { tag: "div", classes: [Cy, Ey] }, components: L4(c.items, C) })] };
|
|
50679
50615
|
return Og({ data: Dg(J({ text: $.none() }, c)), disabled: c.disabled, getApi: function(I) {
|
|
50680
50616
|
return { isDisabled: function() {
|
|
50681
50617
|
return _o.isDisabled(I);
|
|
@@ -50691,20 +50627,20 @@ Components: ` + JSON.stringify(m.components, null, 2));
|
|
|
50691
50627
|
(function(c) {
|
|
50692
50628
|
c[c.ContentFocus = 0] = "ContentFocus", c[c.UiFocus = 1] = "UiFocus";
|
|
50693
50629
|
})(Mg || (Mg = {}));
|
|
50694
|
-
var
|
|
50630
|
+
var aC = function(c, m, y, C, T) {
|
|
50695
50631
|
var I, B = y.shared.providers, F = function(H) {
|
|
50696
50632
|
return T ? J(J({}, H), { shortcut: $.none(), icon: H.text.isSome() ? $.none() : H.icon }) : H;
|
|
50697
50633
|
};
|
|
50698
50634
|
switch (c.type) {
|
|
50699
50635
|
case "menuitem":
|
|
50700
50636
|
return (I = c, gr("menuitem", Xu, I)).fold(Cl, function(H) {
|
|
50701
|
-
return $.some(
|
|
50637
|
+
return $.some(nC(F(H), m, B, C));
|
|
50702
50638
|
});
|
|
50703
50639
|
case "nestedmenuitem":
|
|
50704
50640
|
return function(H) {
|
|
50705
|
-
return gr("nestedmenuitem",
|
|
50641
|
+
return gr("nestedmenuitem", b4, H);
|
|
50706
50642
|
}(c).fold(Cl, function(H) {
|
|
50707
|
-
return $.some(
|
|
50643
|
+
return $.some(oC(F(H), m, B, C, T));
|
|
50708
50644
|
});
|
|
50709
50645
|
case "togglemenuitem":
|
|
50710
50646
|
return function(H) {
|
|
@@ -50716,13 +50652,13 @@ Components: ` + JSON.stringify(m.components, null, 2));
|
|
|
50716
50652
|
return function(H) {
|
|
50717
50653
|
return gr("separatormenuitem", c2, H);
|
|
50718
50654
|
}(c).fold(Cl, function(H) {
|
|
50719
|
-
return $.some(
|
|
50655
|
+
return $.some(tC(H));
|
|
50720
50656
|
});
|
|
50721
50657
|
case "fancymenuitem":
|
|
50722
50658
|
return function(H) {
|
|
50723
50659
|
return gr("fancymenuitem", E6, H);
|
|
50724
50660
|
}(c).fold(Cl, function(H) {
|
|
50725
|
-
return
|
|
50661
|
+
return rC(F(H), y);
|
|
50726
50662
|
});
|
|
50727
50663
|
default:
|
|
50728
50664
|
return console.error("Unknown item in general menu", c), $.none();
|
|
@@ -50733,15 +50669,15 @@ Components: ` + JSON.stringify(m.components, null, 2));
|
|
|
50733
50669
|
switch (z.type) {
|
|
50734
50670
|
case "separator":
|
|
50735
50671
|
return (Q = z, gr("Autocompleter.Separator", c2, Q)).fold(Cl, function(te) {
|
|
50736
|
-
return $.some(
|
|
50672
|
+
return $.some(tC(te));
|
|
50737
50673
|
});
|
|
50738
50674
|
case "cardmenuitem":
|
|
50739
50675
|
return function(te) {
|
|
50740
|
-
return gr("cardmenuitem",
|
|
50676
|
+
return gr("cardmenuitem", _4, te);
|
|
50741
50677
|
}(z).fold(Cl, function(te) {
|
|
50742
|
-
return $.some(
|
|
50678
|
+
return $.some(iC(J(J({}, te), { onAction: function(ve) {
|
|
50743
50679
|
te.onAction(ve), y(te.value, te.meta);
|
|
50744
|
-
} }), T, I, { itemBehaviours:
|
|
50680
|
+
} }), T, I, { itemBehaviours: F4(te.meta, I), cardText: { matchText: m, highlightOn: B } }));
|
|
50745
50681
|
});
|
|
50746
50682
|
default:
|
|
50747
50683
|
return function(te) {
|
|
@@ -50752,16 +50688,16 @@ Components: ` + JSON.stringify(m.components, null, 2));
|
|
|
50752
50688
|
}
|
|
50753
50689
|
var Q;
|
|
50754
50690
|
}));
|
|
50755
|
-
},
|
|
50691
|
+
}, sC = function(c, m, y, C, T) {
|
|
50756
50692
|
var I = Eg(m), B = vo(Ee(m, function(F) {
|
|
50757
50693
|
var H = function(z) {
|
|
50758
|
-
return
|
|
50694
|
+
return aC(z, y, C, function(Q) {
|
|
50759
50695
|
return T ? !Q.hasOwnProperty("text") : I;
|
|
50760
50696
|
}(z), T);
|
|
50761
50697
|
};
|
|
50762
50698
|
return F.type === "nestedmenuitem" && F.getSubmenuItems().length <= 0 ? H(J(J({}, F), { disabled: !0 })) : H(F);
|
|
50763
50699
|
}));
|
|
50764
|
-
return (T ?
|
|
50700
|
+
return (T ? m4 : v2)(c, I, B, 1, "normal");
|
|
50765
50701
|
}, fp = function(c) {
|
|
50766
50702
|
return Yd.singleData(c.value, c);
|
|
50767
50703
|
}, j6 = function(c, m) {
|
|
@@ -50779,7 +50715,7 @@ Components: ` + JSON.stringify(m.components, null, 2));
|
|
|
50779
50715
|
bg(De.getOr(Kn.fromDom(c.selection.getNode()))).each(h1), B(), y.set($.none()), C.set(!1);
|
|
50780
50716
|
}
|
|
50781
50717
|
}, H = yt(function() {
|
|
50782
|
-
return
|
|
50718
|
+
return u4(c);
|
|
50783
50719
|
}), z = function(De, Fe, it, Ve) {
|
|
50784
50720
|
De.matchLength = Fe.text.length;
|
|
50785
50721
|
var ft = Fn(it, function(He) {
|
|
@@ -50798,7 +50734,7 @@ Components: ` + JSON.stringify(m.components, null, 2));
|
|
|
50798
50734
|
(function(Fe) {
|
|
50799
50735
|
return y.get().map(function(it) {
|
|
50800
50736
|
return v0(c.dom, c.selection.getRng(), it.triggerChar).bind(function(Ve) {
|
|
50801
|
-
return
|
|
50737
|
+
return r4(c, H, Ve, Fe);
|
|
50802
50738
|
});
|
|
50803
50739
|
}).getOrThunk(function() {
|
|
50804
50740
|
return vy(c, H);
|
|
@@ -50846,7 +50782,7 @@ Components: ` + JSON.stringify(m.components, null, 2));
|
|
|
50846
50782
|
}, isActive: I, isProcessingAction: C.get, getView: function() {
|
|
50847
50783
|
return Yr.getContent(T);
|
|
50848
50784
|
} };
|
|
50849
|
-
c.hasPlugin("rtc") === !1 &&
|
|
50785
|
+
c.hasPlugin("rtc") === !1 && n4(ve, c);
|
|
50850
50786
|
}, Zd = Z, $i = function(c, m, y) {
|
|
50851
50787
|
return function(C, T, I, B) {
|
|
50852
50788
|
return Nf(C, T, I, B, !1);
|
|
@@ -50868,20 +50804,20 @@ Components: ` + JSON.stringify(m.components, null, 2));
|
|
|
50868
50804
|
c.apply(null, C), y = null;
|
|
50869
50805
|
}, m);
|
|
50870
50806
|
} };
|
|
50871
|
-
},
|
|
50807
|
+
}, lC = function(c) {
|
|
50872
50808
|
var m = c.raw;
|
|
50873
50809
|
return m.touches === void 0 || m.touches.length !== 1 ? $.none() : $.some(m.touches[0]);
|
|
50874
50810
|
}, tb = function(c) {
|
|
50875
50811
|
var m = Rn($.none()), y = Rn(!1), C = eb(function(I) {
|
|
50876
50812
|
c.triggerEvent(d1(), I), y.set(!0);
|
|
50877
50813
|
}, 400), T = Wt([{ key: fs(), value: function(I) {
|
|
50878
|
-
return
|
|
50814
|
+
return lC(I).each(function(B) {
|
|
50879
50815
|
C.cancel();
|
|
50880
50816
|
var F = { x: B.clientX, y: B.clientY, target: I.target };
|
|
50881
50817
|
C.schedule(I), y.set(!1), m.set($.some(F));
|
|
50882
50818
|
}), $.none();
|
|
50883
50819
|
} }, { key: ku(), value: function(I) {
|
|
50884
|
-
return C.cancel(),
|
|
50820
|
+
return C.cancel(), lC(I).each(function(B) {
|
|
50885
50821
|
m.get().each(function(F) {
|
|
50886
50822
|
(function(H, z) {
|
|
50887
50823
|
var Q = Math.abs(H.clientX - z.x), te = Math.abs(H.clientY - z.y);
|
|
@@ -50901,9 +50837,9 @@ Components: ` + JSON.stringify(m.components, null, 2));
|
|
|
50901
50837
|
return F(I);
|
|
50902
50838
|
});
|
|
50903
50839
|
} };
|
|
50904
|
-
},
|
|
50840
|
+
}, uC = function() {
|
|
50905
50841
|
return mr().browser.isFirefox();
|
|
50906
|
-
}, W6 = Pt([Hr("triggerEvent"), Vt("stopBackspace", !0)]),
|
|
50842
|
+
}, W6 = Pt([Hr("triggerEvent"), Vt("stopBackspace", !0)]), cC = function(c, m) {
|
|
50907
50843
|
var y = oi("Getting GUI events settings", W6, m), C = tb(y), T = Ee(["touchstart", "touchmove", "touchend", "touchcancel", "gesturestart", "mousedown", "mouseup", "mouseover", "mousemove", "mouseout", "click"].concat(["selectstart", "input", "contextmenu", "change", "transitionend", "drag", "dragstart", "dragend", "dragenter", "dragleave", "dragover", "drop", "keyup"]), function(te) {
|
|
50908
50844
|
return $i(c, te, function(ve) {
|
|
50909
50845
|
C.fireIfReady(ve, te).each(function(De) {
|
|
@@ -50921,11 +50857,11 @@ Components: ` + JSON.stringify(m.components, null, 2));
|
|
|
50921
50857
|
return ve.raw.which === Bc[0] && !de(["input", "textarea"], Ms(ve.target)) && !pp(ve.target, '[contenteditable="true"]');
|
|
50922
50858
|
}(te) && te.prevent();
|
|
50923
50859
|
}), H = function(te, ve) {
|
|
50924
|
-
return
|
|
50860
|
+
return uC() ? B0(te, "focus", ve) : $i(te, "focusin", ve);
|
|
50925
50861
|
}(c, function(te) {
|
|
50926
50862
|
y.triggerEvent("focusin", te) && te.kill();
|
|
50927
50863
|
}), z = Rn($.none()), Q = function(te, ve) {
|
|
50928
|
-
return
|
|
50864
|
+
return uC() ? B0(te, "blur", ve) : $i(te, "focusout", ve);
|
|
50929
50865
|
}(c, function(te) {
|
|
50930
50866
|
y.triggerEvent("focusout", te) && te.kill(), z.set($.some(setTimeout(function() {
|
|
50931
50867
|
y.triggerEvent(vh(), te);
|
|
@@ -50939,7 +50875,7 @@ Components: ` + JSON.stringify(m.components, null, 2));
|
|
|
50939
50875
|
}, nb = function(c, m) {
|
|
50940
50876
|
var y = wt(c, "target").getOr(m);
|
|
50941
50877
|
return Rn(y);
|
|
50942
|
-
}, R0 = se([{ stopped: [] }, { resume: ["element"] }, { complete: [] }]),
|
|
50878
|
+
}, R0 = se([{ stopped: [] }, { resume: ["element"] }, { complete: [] }]), dC = function(c, m, y, C, T, I) {
|
|
50943
50879
|
var B = c(m, C), F = function(H, z) {
|
|
50944
50880
|
var Q = Rn(!1), te = Rn(!1);
|
|
50945
50881
|
return { stop: function() {
|
|
@@ -50958,11 +50894,11 @@ Components: ` + JSON.stringify(m.components, null, 2));
|
|
|
50958
50894
|
return I.logEventResponse(m, H.element, z.purpose), R0.resume(Q);
|
|
50959
50895
|
});
|
|
50960
50896
|
});
|
|
50961
|
-
},
|
|
50962
|
-
return
|
|
50963
|
-
return
|
|
50897
|
+
}, fC = function(c, m, y, C, T, I) {
|
|
50898
|
+
return dC(c, m, y, C, T, I).fold(Z, function(B) {
|
|
50899
|
+
return fC(c, m, y, B, T, I);
|
|
50964
50900
|
}, W);
|
|
50965
|
-
},
|
|
50901
|
+
}, pC = function(c, m, y) {
|
|
50966
50902
|
var C = function(T) {
|
|
50967
50903
|
var I = Rn(!1);
|
|
50968
50904
|
return { stop: function() {
|
|
@@ -50975,8 +50911,8 @@ Components: ` + JSON.stringify(m.components, null, 2));
|
|
|
50975
50911
|
}), C.isStopped();
|
|
50976
50912
|
}, ob = function(c, m, y, C, T) {
|
|
50977
50913
|
var I = nb(y, C);
|
|
50978
|
-
return
|
|
50979
|
-
},
|
|
50914
|
+
return fC(c, m, y, C, I, T);
|
|
50915
|
+
}, mC = function() {
|
|
50980
50916
|
var c = {};
|
|
50981
50917
|
return { registerId: function(m, y, C) {
|
|
50982
50918
|
Ze(C, function(T, I) {
|
|
@@ -51017,7 +50953,7 @@ Components: ` + JSON.stringify(m.components, null, 2));
|
|
|
51017
50953
|
}, m);
|
|
51018
50954
|
} };
|
|
51019
50955
|
}, F2 = function() {
|
|
51020
|
-
var c =
|
|
50956
|
+
var c = mC(), m = {}, y = function(T) {
|
|
51021
50957
|
var I = T.element;
|
|
51022
50958
|
return Ol(I).fold(function() {
|
|
51023
50959
|
return function(B, F) {
|
|
@@ -51054,14 +50990,14 @@ The conflicting element is` + (ua(z.element) ? " " : " not ") + "already in the
|
|
|
51054
50990
|
}, Na = as({ name: "Container", factory: function(c) {
|
|
51055
50991
|
var m = c.dom, y = m.attributes, C = ue(m, ["attributes"]);
|
|
51056
50992
|
return { uid: c.uid, dom: J({ tag: "div", attributes: J({ role: "presentation" }, y) }, C), components: c.components, behaviours: Ic(c.containerBehaviours), events: c.events, domModification: c.domModification, eventOrder: c.eventOrder };
|
|
51057
|
-
}, configFields: [Vt("components", []), Mr("containerBehaviours", []), Vt("events", {}), Vt("domModification", {}), Vt("eventOrder", {})] }),
|
|
50993
|
+
}, configFields: [Vt("components", []), Mr("containerBehaviours", []), Vt("events", {}), Vt("domModification", {}), Vt("eventOrder", {})] }), hC = function(c) {
|
|
51058
50994
|
var m = function(Ve) {
|
|
51059
50995
|
return es(c.element).fold(Z, function(ft) {
|
|
51060
50996
|
return Nr(Ve, ft);
|
|
51061
50997
|
});
|
|
51062
50998
|
}, y = F2(), C = function(Ve, ft) {
|
|
51063
50999
|
return y.find(m, Ve, ft);
|
|
51064
|
-
}, T =
|
|
51000
|
+
}, T = cC(c.element, { triggerEvent: function(Ve, ft) {
|
|
51065
51001
|
return pd(Ve, ft.target, function(He) {
|
|
51066
51002
|
return function(et, Nt, Mt, Lt) {
|
|
51067
51003
|
return ob(et, Nt, Mt, Mt.target, Lt);
|
|
@@ -51078,7 +51014,7 @@ The conflicting element is` + (ua(z.element) ? " " : " not ") + "already in the
|
|
|
51078
51014
|
pd(Iu(), Ve, function(et) {
|
|
51079
51015
|
return function(Nt, Mt, Lt, En, vn) {
|
|
51080
51016
|
var Jn = nb(Lt, En);
|
|
51081
|
-
|
|
51017
|
+
dC(Nt, Mt, Lt, En, Jn, vn);
|
|
51082
51018
|
}(C, Iu(), { originator: ft, kill: x, prevent: x, target: Ve }, Ve, et), !1;
|
|
51083
51019
|
});
|
|
51084
51020
|
});
|
|
@@ -51122,7 +51058,7 @@ The conflicting element is` + (ua(z.element) ? " " : " not ") + "already in the
|
|
|
51122
51058
|
Q({ universal: !1, channels: Ve, data: ft });
|
|
51123
51059
|
}, De = function(Ve, ft) {
|
|
51124
51060
|
var He = y.filter(Ve);
|
|
51125
|
-
return
|
|
51061
|
+
return pC(He, ft);
|
|
51126
51062
|
}, Fe = function(Ve) {
|
|
51127
51063
|
return y.getById(Ve).fold(function() {
|
|
51128
51064
|
return Pn.error(new Error('Could not find component with uid: "' + Ve + '" in system.'));
|
|
@@ -51171,16 +51107,16 @@ The conflicting element is` + (ua(z.element) ? " " : " not ") + "already in the
|
|
|
51171
51107
|
return c.getLabel(m);
|
|
51172
51108
|
} } }), q6 = Object.freeze({ __proto__: null, exhibit: function(c, m) {
|
|
51173
51109
|
return ol({ attributes: Wt([{ key: m.tabAttr, value: "true" }]) });
|
|
51174
|
-
} }), Qd = [Vt("tabAttr", "data-alloy-tabstop")], jr = qr({ fields: Qd, name: "tabstopping", active: q6 }),
|
|
51110
|
+
} }), Qd = [Vt("tabAttr", "data-alloy-tabstop")], jr = qr({ fields: Qd, name: "tabstopping", active: q6 }), gC = tinymce.util.Tools.resolve("tinymce.html.Entities"), Xm = function(c, m, y, C) {
|
|
51175
51111
|
var T = K6(c, m, y, C);
|
|
51176
51112
|
return vr.sketch(T);
|
|
51177
51113
|
}, K6 = function(c, m, y, C) {
|
|
51178
|
-
return { dom:
|
|
51179
|
-
},
|
|
51114
|
+
return { dom: vC(y), components: c.toArray().concat([m]), fieldBehaviours: zn(C) };
|
|
51115
|
+
}, vC = function(c) {
|
|
51180
51116
|
return { tag: "div", classes: ["tox-form__group"].concat(c) };
|
|
51181
51117
|
}, ef = function(c, m) {
|
|
51182
51118
|
return vr.parts.label({ dom: { tag: "label", classes: ["tox-label"], innerHtml: m.translate(c) } });
|
|
51183
|
-
}, ls = uo("form-component-change"), us = uo("form-close"), Jm = uo("form-cancel"), Ju = uo("form-action"), M0 = uo("form-submit"), U2 = uo("form-block"), rb = uo("form-unblock"),
|
|
51119
|
+
}, ls = uo("form-component-change"), us = uo("form-close"), Jm = uo("form-cancel"), Ju = uo("form-action"), M0 = uo("form-submit"), U2 = uo("form-block"), rb = uo("form-unblock"), _C = uo("form-tabchange"), ib = uo("form-resize"), z2 = function(c, m) {
|
|
51184
51120
|
var y, C, T, I = c.label.map(function(te) {
|
|
51185
51121
|
return ef(te, m);
|
|
51186
51122
|
}), B = function(te) {
|
|
@@ -51219,7 +51155,7 @@ The conflicting element is` + (ua(z.element) ? " " : " not ") + "already in the
|
|
|
51219
51155
|
var et = zl.translate(He.text), Nt = c.columns === 1 ? '<div class="tox-collection__item-label">' + et + "</div>" : "", Mt = '<div class="tox-collection__item-icon">' + He.icon + "</div>", Lt = { _: " ", " - ": " ", "-": " " }, En = et.replace(/\_| \- |\-/g, function(vn) {
|
|
51220
51156
|
return Lt[vn];
|
|
51221
51157
|
});
|
|
51222
|
-
return '<div class="tox-collection__item' + (m.isDisabled() ? " tox-collection__item--state-disabled" : "") + '" tabindex="-1" data-collection-item-value="' +
|
|
51158
|
+
return '<div class="tox-collection__item' + (m.isDisabled() ? " tox-collection__item--state-disabled" : "") + '" tabindex="-1" data-collection-item-value="' + gC.encodeAllRaw(He.value) + '" title="' + En + '" aria-label="' + En + '">' + Mt + Nt + "</div>";
|
|
51223
51159
|
}), Ve = c.columns !== "auto" && c.columns > 1 ? ye(it, c.columns) : [it], ft = Ee(Ve, function(He) {
|
|
51224
51160
|
return '<div class="tox-collection__group">' + He.join("") + "</div>";
|
|
51225
51161
|
});
|
|
@@ -51235,7 +51171,7 @@ The conflicting element is` + (ua(z.element) ? " " : " not ") + "already in the
|
|
|
51235
51171
|
var y = m.element, C = Pl(y);
|
|
51236
51172
|
y.dom.setSelectionRange(0, C.length);
|
|
51237
51173
|
} : x })]);
|
|
51238
|
-
},
|
|
51174
|
+
}, yC = function(c) {
|
|
51239
51175
|
return J(J({}, Zm(c)), vi(c.inputBehaviours, [$n.config({ store: J(J({ mode: "manual" }, c.data.map(function(m) {
|
|
51240
51176
|
return { initialValue: m };
|
|
51241
51177
|
}).getOr({})), { getValue: function(m) {
|
|
@@ -51246,8 +51182,8 @@ The conflicting element is` + (ua(z.element) ? " " : " not ") + "already in the
|
|
|
51246
51182
|
}, ab = function(c) {
|
|
51247
51183
|
return { tag: c.tag, attributes: J({ type: "text" }, c.inputAttributes), styles: c.inputStyles, classes: c.inputClasses };
|
|
51248
51184
|
}, Vg = as({ name: "Input", configFields: $0(), factory: function(c, m) {
|
|
51249
|
-
return { uid: c.uid, dom: ab(c), components: [], behaviours:
|
|
51250
|
-
} }), V0 = {},
|
|
51185
|
+
return { uid: c.uid, dom: ab(c), components: [], behaviours: yC(c), eventOrder: c.eventOrder };
|
|
51186
|
+
} }), V0 = {}, bC = { exports: V0 };
|
|
51251
51187
|
(function(c, m, y, C) {
|
|
51252
51188
|
(function(T) {
|
|
51253
51189
|
typeof m == "object" && y !== void 0 ? y.exports = T() : typeof c == "function" && c.amd ? c([], T) : (typeof window < "u" ? window : commonjsGlobal !== void 0 ? commonjsGlobal : typeof self < "u" ? self : this).EphoxContactWrapper = T();
|
|
@@ -51533,8 +51469,8 @@ The conflicting element is` + (ua(z.element) ? " " : " not ") + "already in the
|
|
|
51533
51469
|
I.exports = { boltExport: H.Promise || F };
|
|
51534
51470
|
}, { "promise-polyfill": 2 }] }, {}, [4])(4);
|
|
51535
51471
|
});
|
|
51536
|
-
})(void 0, V0,
|
|
51537
|
-
var Zu, sb =
|
|
51472
|
+
})(void 0, V0, bC, void 0);
|
|
51473
|
+
var Zu, sb = bC.exports.boltExport, H2 = function(c) {
|
|
51538
51474
|
var m = $.none(), y = [], C = function(F) {
|
|
51539
51475
|
T() ? B(F) : y.push(F);
|
|
51540
51476
|
}, T = function() {
|
|
@@ -51561,13 +51497,13 @@ The conflicting element is` + (ua(z.element) ? " " : " not ") + "already in the
|
|
|
51561
51497
|
return H2(function(m) {
|
|
51562
51498
|
m(c);
|
|
51563
51499
|
});
|
|
51564
|
-
} },
|
|
51500
|
+
} }, wC = function(c) {
|
|
51565
51501
|
setTimeout(function() {
|
|
51566
51502
|
throw c;
|
|
51567
51503
|
}, 0);
|
|
51568
51504
|
}, ea = function(c) {
|
|
51569
51505
|
var m = function(y) {
|
|
51570
|
-
c().then(y,
|
|
51506
|
+
c().then(y, wC);
|
|
51571
51507
|
};
|
|
51572
51508
|
return { map: function(y) {
|
|
51573
51509
|
return ea(function() {
|
|
@@ -51604,21 +51540,21 @@ The conflicting element is` + (ua(z.element) ? " " : " not ") + "already in the
|
|
|
51604
51540
|
}, Y6 = ["input", "textarea"], ub = function(c) {
|
|
51605
51541
|
var m = Ms(c);
|
|
51606
51542
|
return de(Y6, m);
|
|
51607
|
-
},
|
|
51543
|
+
}, CC = function(c, m) {
|
|
51608
51544
|
var y = m.getRoot(c).getOr(c.element);
|
|
51609
51545
|
Zr(y, m.invalidClass), m.notify.each(function(C) {
|
|
51610
51546
|
ub(c.element) && cr(c.element, "aria-invalid", !1), C.getContainer(c).each(function(T) {
|
|
51611
51547
|
Ba(T, C.validHtml);
|
|
51612
51548
|
}), C.onValid(c);
|
|
51613
51549
|
});
|
|
51614
|
-
},
|
|
51550
|
+
}, EC = function(c, m, y, C) {
|
|
51615
51551
|
var T = m.getRoot(c).getOr(c.element);
|
|
51616
51552
|
Di(T, m.invalidClass), m.notify.each(function(I) {
|
|
51617
51553
|
ub(c.element) && cr(c.element, "aria-invalid", !0), I.getContainer(c).each(function(B) {
|
|
51618
51554
|
Ba(B, C);
|
|
51619
51555
|
}), I.onInvalid(c, C);
|
|
51620
51556
|
});
|
|
51621
|
-
},
|
|
51557
|
+
}, SC = function(c, m, y) {
|
|
51622
51558
|
return m.validator.fold(function() {
|
|
51623
51559
|
return nf(Pn.value(!0));
|
|
51624
51560
|
}, function(C) {
|
|
@@ -51627,14 +51563,14 @@ The conflicting element is` + (ua(z.element) ? " " : " not ") + "already in the
|
|
|
51627
51563
|
}, j2 = function(c, m, y) {
|
|
51628
51564
|
return m.notify.each(function(C) {
|
|
51629
51565
|
C.onValidate(c);
|
|
51630
|
-
}),
|
|
51566
|
+
}), SC(c, m).map(function(C) {
|
|
51631
51567
|
return c.getSystem().isConnected() ? C.fold(function(T) {
|
|
51632
|
-
return
|
|
51568
|
+
return EC(c, m, 0, T), Pn.error(T);
|
|
51633
51569
|
}, function(T) {
|
|
51634
|
-
return
|
|
51570
|
+
return CC(c, m), Pn.value(T);
|
|
51635
51571
|
}) : Pn.error("No longer in system");
|
|
51636
51572
|
});
|
|
51637
|
-
}, Vc = Object.freeze({ __proto__: null, markValid:
|
|
51573
|
+
}, Vc = Object.freeze({ __proto__: null, markValid: CC, markInvalid: EC, query: SC, run: j2, isInvalid: function(c, m) {
|
|
51638
51574
|
var y = m.getRoot(c).getOr(c.element);
|
|
51639
51575
|
return il(y, m.invalidClass);
|
|
51640
51576
|
} }), cb = Object.freeze({ __proto__: null, events: function(c, m) {
|
|
@@ -51645,7 +51581,7 @@ The conflicting element is` + (ua(z.element) ? " " : " not ") + "already in the
|
|
|
51645
51581
|
j2(C, c).get(x);
|
|
51646
51582
|
})] : []));
|
|
51647
51583
|
}).getOr({});
|
|
51648
|
-
} }),
|
|
51584
|
+
} }), xC = [mn("invalidClass"), Vt("getRoot", $.none), Wi("notify", [Vt("aria", "alert"), Vt("getContainer", $.none), Vt("validHtml", ""), Zo("onValid"), Zo("onInvalid"), Zo("onValidate")]), Wi("validator", [mn("validate"), Vt("onEvent", "input"), Vt("validateOnLoad", !0)])], Hl = qr({ fields: xC, name: "invalidating", active: cb, apis: Vc, extra: { validation: function(c) {
|
|
51649
51585
|
return function(m) {
|
|
51650
51586
|
var y = $n.getValue(m);
|
|
51651
51587
|
return nf(c(y));
|
|
@@ -51667,7 +51603,7 @@ The conflicting element is` + (ua(z.element) ? " " : " not ") + "already in the
|
|
|
51667
51603
|
(function(c) {
|
|
51668
51604
|
c[c.HighlightFirst = 0] = "HighlightFirst", c[c.HighlightNone = 1] = "HighlightNone";
|
|
51669
51605
|
})(Zu || (Zu = {}));
|
|
51670
|
-
var fb,
|
|
51606
|
+
var fb, kC, mp, F0 = function(c, m) {
|
|
51671
51607
|
var y = c.getHotspot(m).getOr(m), C = "hotspot", T = c.getAnchorOverrides();
|
|
51672
51608
|
return c.layouts.fold(function() {
|
|
51673
51609
|
return { anchor: C, hotspot: y, overrides: T };
|
|
@@ -51710,7 +51646,7 @@ The conflicting element is` + (ua(z.element) ? " " : " not ") + "already in the
|
|
|
51710
51646
|
}, Qm = function(c, m, y, C, T, I) {
|
|
51711
51647
|
var B = bi.getCoupled(y, "sandbox");
|
|
51712
51648
|
return (Bo.isOpen(B) ? Z6 : pb)(c, m, y, B, C, T, I);
|
|
51713
|
-
},
|
|
51649
|
+
}, TC = function(c, m, y) {
|
|
51714
51650
|
var C = nr.getCurrent(m).getOr(m), T = wa(c.element);
|
|
51715
51651
|
y ? Lo(C.element, "min-width", T + "px") : function(I, B) {
|
|
51716
51652
|
Wp.set(I, B);
|
|
@@ -51739,7 +51675,7 @@ The conflicting element is` + (ua(z.element) ? " " : " not ") + "already in the
|
|
|
51739
51675
|
var C = qp(), T = G2(m, c);
|
|
51740
51676
|
return { dom: { tag: "div", classes: c.sandboxClasses, attributes: { id: C.id, role: "listbox" } }, behaviours: Od(c.sandboxBehaviours, [$n.config({ store: { mode: "memory", initialValue: m } }), Bo.config({ onOpen: function(I, B) {
|
|
51741
51677
|
var F = F0(c, m);
|
|
51742
|
-
C.link(m.element), c.matchWidth &&
|
|
51678
|
+
C.link(m.element), c.matchWidth && TC(F.hotspot, B, c.useMinWidth), c.onOpen(F, I, B), y !== void 0 && y.onOpen !== void 0 && y.onOpen(I, B);
|
|
51743
51679
|
}, onClose: function(I, B) {
|
|
51744
51680
|
C.unlink(m.element), y !== void 0 && y.onClose !== void 0 && y.onClose(I, B);
|
|
51745
51681
|
}, isPartOf: function(I, B, F) {
|
|
@@ -51820,7 +51756,7 @@ The conflicting element is` + (ua(z.element) ? " " : " not ") + "already in the
|
|
|
51820
51756
|
return Ir([Ai(tu(), Z)]);
|
|
51821
51757
|
}, exhibit: function() {
|
|
51822
51758
|
return ol({ styles: { "-webkit-user-select": "none", "user-select": "none", "-ms-user-select": "none", "-moz-user-select": "-moz-none" }, attributes: { unselectable: "on" } });
|
|
51823
|
-
} }), hp = qr({ fields: [], name: "unselecting", active: th }), gb = uo("color-input-change"),
|
|
51759
|
+
} }), hp = qr({ fields: [], name: "unselecting", active: th }), gb = uo("color-input-change"), NC = uo("color-swatch-change"), IC = uo("color-picker-cancel"), AC = function(c, m, y) {
|
|
51824
51760
|
var C = vr.parts.field({ factory: Vg, inputClasses: ["tox-textfield"], onSetValue: function(F) {
|
|
51825
51761
|
return Hl.run(F).get(x);
|
|
51826
51762
|
}, inputBehaviours: zn([_o.config({ disabled: m.providers.isDisabled }), Mi(), jr.config({}), Hl.config({ invalidClass: "tox-textbox-field-invalid", getRoot: function(F) {
|
|
@@ -51843,7 +51779,7 @@ The conflicting element is` + (ua(z.element) ? " " : " not ") + "already in the
|
|
|
51843
51779
|
} } })]), selectOnFocus: !1 }), T = c.label.map(function(F) {
|
|
51844
51780
|
return ef(F, m.providers);
|
|
51845
51781
|
}), I = function(F, H) {
|
|
51846
|
-
ho(F,
|
|
51782
|
+
ho(F, NC, { value: H });
|
|
51847
51783
|
}, B = _r(function(F, H) {
|
|
51848
51784
|
return El.sketch({ dom: F.dom, components: F.components, toggleClass: "mce-active", dropdownBehaviours: zn([Wm(H.providers.isDisabled), Mi(), hp.config({}), jr.config({})]), layouts: F.layouts, sandboxClasses: ["tox-dialog__popups"], lazySink: H.getSink, fetch: function(z) {
|
|
51849
51785
|
return tf(function(Q) {
|
|
@@ -51858,11 +51794,11 @@ The conflicting element is` + (ua(z.element) ? " " : " not ") + "already in the
|
|
|
51858
51794
|
return [Xi, ki, Ji];
|
|
51859
51795
|
}, onLtr: function() {
|
|
51860
51796
|
return [ki, Xi, Ji];
|
|
51861
|
-
} }, components: [], fetch:
|
|
51797
|
+
} }, components: [], fetch: X4(y.getColors(), y.hasCustomColors()), columns: y.getColorCols(), presets: "color", onItemAction: function(F, H) {
|
|
51862
51798
|
B.getOpt(F).each(function(z) {
|
|
51863
51799
|
H === "custom" ? y.colorPicker(function(Q) {
|
|
51864
51800
|
Q.fold(function() {
|
|
51865
|
-
return ko(z,
|
|
51801
|
+
return ko(z, IC);
|
|
51866
51802
|
}, function(te) {
|
|
51867
51803
|
I(z, te), R2(te);
|
|
51868
51804
|
});
|
|
@@ -51873,11 +51809,11 @@ The conflicting element is` + (ua(z.element) ? " " : " not ") + "already in the
|
|
|
51873
51809
|
B.getOpt(F).each(function(z) {
|
|
51874
51810
|
Lo(z.element, "background-color", H.event.color);
|
|
51875
51811
|
}), ho(F, ls, { name: c.name });
|
|
51876
|
-
}), xn(
|
|
51812
|
+
}), xn(NC, function(F, H) {
|
|
51877
51813
|
vr.getField(F).each(function(z) {
|
|
51878
51814
|
$n.setValue(z, H.event.value), nr.getCurrent(F).each(No.focus);
|
|
51879
51815
|
});
|
|
51880
|
-
}), xn(
|
|
51816
|
+
}), xn(IC, function(F, H) {
|
|
51881
51817
|
vr.getField(F).each(function(z) {
|
|
51882
51818
|
nr.getCurrent(F).each(No.focus);
|
|
51883
51819
|
});
|
|
@@ -51896,7 +51832,7 @@ The conflicting element is` + (ua(z.element) ? " " : " not ") + "already in the
|
|
|
51896
51832
|
}, [m])]) };
|
|
51897
51833
|
});
|
|
51898
51834
|
} });
|
|
51899
|
-
},
|
|
51835
|
+
}, OC = gp("top-left"), _b = gp("top"), yb = gp("top-right"), DC = gp("right"), t8 = gp("bottom-right"), q2 = gp("bottom"), PC = gp("bottom-left"), n8 = gp("left"), of = Hi({ name: "thumb", defaults: O({ dom: { styles: { position: "absolute" } } }), overrides: function(c) {
|
|
51900
51836
|
return { events: Ir([Rs(fs(), c, "spectrum"), Rs(ku(), c, "spectrum"), Rs(Zl(), c, "spectrum"), Rs(Ds(), c, "spectrum"), Rs(Pp(), c, "spectrum"), Rs(Bp(), c, "spectrum")]) };
|
|
51901
51837
|
} }), bb = Hi({ schema: [pi("mouseIsDown", function() {
|
|
51902
51838
|
return Rn(!1);
|
|
@@ -51917,7 +51853,7 @@ The conflicting element is` + (ua(z.element) ? " " : " not ") + "already in the
|
|
|
51917
51853
|
} }), No.config({})]), events: Ir([xn(fs(), y), xn(ku(), y), xn(Ds(), y), xn(Pp(), function(C, T) {
|
|
51918
51854
|
c.mouseIsDown.get() && y(C, T);
|
|
51919
51855
|
})]) };
|
|
51920
|
-
} }),
|
|
51856
|
+
} }), BC = [vb, n8, DC, _b, q2, OC, yb, PC, t8, of, bb], Lg = O("slider.change.value"), L0 = function(c) {
|
|
51921
51857
|
var m = c.event.raw;
|
|
51922
51858
|
if (function(T) {
|
|
51923
51859
|
return T.type.indexOf("touch") !== -1;
|
|
@@ -51947,12 +51883,12 @@ The conflicting element is` + (ua(z.element) ? " " : " not ") + "already in the
|
|
|
51947
51883
|
return c.model.maxX + 1;
|
|
51948
51884
|
}, K2 = function(c) {
|
|
51949
51885
|
return c.model.maxY + 1;
|
|
51950
|
-
},
|
|
51886
|
+
}, RC = function(c, m, y) {
|
|
51951
51887
|
return m(c) - y(c);
|
|
51952
51888
|
}, wb = function(c) {
|
|
51953
|
-
return
|
|
51889
|
+
return RC(c, nh, vp);
|
|
51954
51890
|
}, Ug = function(c) {
|
|
51955
|
-
return
|
|
51891
|
+
return RC(c, _p, Fc);
|
|
51956
51892
|
}, Cb = function(c) {
|
|
51957
51893
|
return wb(c) / 2;
|
|
51958
51894
|
}, Eb = function(c) {
|
|
@@ -51961,9 +51897,9 @@ The conflicting element is` + (ua(z.element) ? " " : " not ") + "already in the
|
|
|
51961
51897
|
return c.stepSize;
|
|
51962
51898
|
}, j0 = function(c) {
|
|
51963
51899
|
return c.snapToGrid;
|
|
51964
|
-
},
|
|
51900
|
+
}, MC = function(c) {
|
|
51965
51901
|
return c.snapStart;
|
|
51966
|
-
}, $
|
|
51902
|
+
}, $C = function(c) {
|
|
51967
51903
|
return c.rounded;
|
|
51968
51904
|
}, Y2 = function(c, m) {
|
|
51969
51905
|
return c[m + "-edge"] !== void 0;
|
|
@@ -51989,7 +51925,7 @@ The conflicting element is` + (ua(z.element) ? " " : " not ") + "already in the
|
|
|
51989
51925
|
return c < m ? c : c > y ? y : c === m ? m - 1 : Math.max(m, c - C);
|
|
51990
51926
|
}, Q2 = function(c, m, y, C) {
|
|
51991
51927
|
return c > y ? c : c < m ? m : c === y ? y + 1 : Math.min(y, c + C);
|
|
51992
|
-
},
|
|
51928
|
+
}, VC = function(c, m, y) {
|
|
51993
51929
|
return Math.max(m, Math.min(y, c));
|
|
51994
51930
|
}, kb = function(c) {
|
|
51995
51931
|
var m = c.min, y = c.max, C = c.range, T = c.value, I = c.step, B = c.snap, F = c.snapStart, H = c.rounded, z = c.hasMinEdge, Q = c.hasMaxEdge, te = c.minBound, ve = c.maxBound, De = c.screenRange, Fe = z ? m - 1 : m, it = Q ? y + 1 : y;
|
|
@@ -51999,20 +51935,20 @@ The conflicting element is` + (ua(z.element) ? " " : " not ") + "already in the
|
|
|
51999
51935
|
return it;
|
|
52000
51936
|
var Ve = function(He, et, Nt) {
|
|
52001
51937
|
return Math.min(Nt, Math.max(He, et)) - et;
|
|
52002
|
-
}(T, te, ve), ft =
|
|
51938
|
+
}(T, te, ve), ft = VC(Ve / De * C + m, Fe, it);
|
|
52003
51939
|
return B && ft >= m && ft <= y ? function(He, et, Nt, Mt, Lt) {
|
|
52004
51940
|
return Lt.fold(function() {
|
|
52005
51941
|
var En = He - et, vn = Math.round(En / Mt) * Mt;
|
|
52006
|
-
return
|
|
51942
|
+
return VC(et + vn, et - 1, Nt + 1);
|
|
52007
51943
|
}, function(En) {
|
|
52008
51944
|
var vn = (He - En) % Mt, Jn = Math.round(vn / Mt), oo = Math.floor((He - En) / Mt), So = Math.floor((Nt - En) / Mt), Mo = En + Math.min(So, oo + Jn) * Mt;
|
|
52009
51945
|
return Math.max(En, Mo);
|
|
52010
51946
|
});
|
|
52011
51947
|
}(ft, m, y, I, F) : H ? Math.round(ft) : ft;
|
|
52012
|
-
},
|
|
51948
|
+
}, FC = function(c) {
|
|
52013
51949
|
var m = c.min, y = c.max, C = c.range, T = c.value, I = c.hasMinEdge, B = c.hasMaxEdge, F = c.maxBound, H = c.maxOffset, z = c.centerMinEdge, Q = c.centerMaxEdge;
|
|
52014
51950
|
return T < m ? I ? 0 : z : T > y ? B ? F : Q : (T - m) / C * H;
|
|
52015
|
-
}, q0 = "top",
|
|
51951
|
+
}, q0 = "top", LC = "right", UC = "bottom", Tb = "left", ec = function(c) {
|
|
52016
51952
|
return c.element.dom.getBoundingClientRect();
|
|
52017
51953
|
}, wu = function(c, m) {
|
|
52018
51954
|
return c[m];
|
|
@@ -52021,13 +51957,13 @@ The conflicting element is` + (ua(z.element) ? " " : " not ") + "already in the
|
|
|
52021
51957
|
return wu(m, Tb);
|
|
52022
51958
|
}, Nb = function(c) {
|
|
52023
51959
|
var m = ec(c);
|
|
52024
|
-
return wu(m,
|
|
51960
|
+
return wu(m, LC);
|
|
52025
51961
|
}, e_ = function(c) {
|
|
52026
51962
|
var m = ec(c);
|
|
52027
51963
|
return wu(m, q0);
|
|
52028
|
-
},
|
|
51964
|
+
}, zC = function(c) {
|
|
52029
51965
|
var m = ec(c);
|
|
52030
|
-
return wu(m,
|
|
51966
|
+
return wu(m, UC);
|
|
52031
51967
|
}, Ib = function(c) {
|
|
52032
51968
|
var m = ec(c);
|
|
52033
51969
|
return wu(m, "width");
|
|
@@ -52036,20 +51972,20 @@ The conflicting element is` + (ua(z.element) ? " " : " not ") + "already in the
|
|
|
52036
51972
|
return wu(m, "height");
|
|
52037
51973
|
}, Ob = function(c, m, y) {
|
|
52038
51974
|
return (c + m) / 2 - y;
|
|
52039
|
-
},
|
|
52040
|
-
var y = ec(c), C = ec(m), T = wu(y, Tb), I = wu(y,
|
|
51975
|
+
}, HC = function(c, m) {
|
|
51976
|
+
var y = ec(c), C = ec(m), T = wu(y, Tb), I = wu(y, LC), B = wu(C, Tb);
|
|
52041
51977
|
return Ob(T, I, B);
|
|
52042
51978
|
}, Db = function(c, m) {
|
|
52043
|
-
var y = ec(c), C = ec(m), T = wu(y, q0), I = wu(y,
|
|
51979
|
+
var y = ec(c), C = ec(m), T = wu(y, q0), I = wu(y, UC), B = wu(C, q0);
|
|
52044
51980
|
return Ob(T, I, B);
|
|
52045
51981
|
}, Y0 = function(c, m) {
|
|
52046
51982
|
ho(c, Lg(), { value: m });
|
|
52047
51983
|
}, t_ = function(c) {
|
|
52048
51984
|
return { x: c };
|
|
52049
51985
|
}, Pb = function(c, m, y) {
|
|
52050
|
-
var C = { min: vp(m), max: nh(m), range: wb(m), value: y, step: zg(m), snap: j0(m), snapStart:
|
|
51986
|
+
var C = { min: vp(m), max: nh(m), range: wb(m), value: y, step: zg(m), snap: j0(m), snapStart: MC(m), rounded: $C(m), hasMinEdge: W0(m), hasMaxEdge: X2(m), minBound: K0(c), maxBound: Nb(c), screenRange: Ib(c) };
|
|
52051
51987
|
return kb(C);
|
|
52052
|
-
},
|
|
51988
|
+
}, jC = function(c) {
|
|
52053
51989
|
return function(m, y) {
|
|
52054
51990
|
return function(C, T, I) {
|
|
52055
51991
|
var B = (C > 0 ? Q2 : Z2)(Lc(I).x, vp(I), nh(I), zg(I));
|
|
@@ -52059,18 +51995,18 @@ The conflicting element is` + (ua(z.element) ? " " : " not ") + "already in the
|
|
|
52059
51995
|
}, n_ = function(c, m, y, C, T, I) {
|
|
52060
51996
|
var B = function(F, H, z, Q, te) {
|
|
52061
51997
|
var ve = Ib(F), De = Q.bind(function(Ve) {
|
|
52062
|
-
return $.some(
|
|
51998
|
+
return $.some(HC(Ve, F));
|
|
52063
51999
|
}).getOr(0), Fe = te.bind(function(Ve) {
|
|
52064
|
-
return $.some(
|
|
52000
|
+
return $.some(HC(Ve, F));
|
|
52065
52001
|
}).getOr(ve), it = { min: vp(H), max: nh(H), range: wb(H), value: z, hasMinEdge: W0(H), hasMaxEdge: X2(H), minBound: K0(F), minOffset: 0, maxBound: Nb(F), maxOffset: ve, centerMinEdge: De, centerMaxEdge: Fe };
|
|
52066
|
-
return
|
|
52002
|
+
return FC(it);
|
|
52067
52003
|
}(m, I, y, C, T);
|
|
52068
52004
|
return K0(m) - K0(c) + B;
|
|
52069
|
-
}, o8 =
|
|
52005
|
+
}, o8 = jC(-1), dr = jC(1), Hg = $.none, WC = $.none, GC = { "top-left": $.none(), top: $.none(), "top-right": $.none(), right: $.some(function(c, m) {
|
|
52070
52006
|
jl(c, Sb(H0(m)));
|
|
52071
52007
|
}), "bottom-right": $.none(), bottom: $.none(), "bottom-left": $.none(), left: $.some(function(c, m) {
|
|
52072
52008
|
jl(c, Sb(U0(m)));
|
|
52073
|
-
}) },
|
|
52009
|
+
}) }, qC = Object.freeze({ __proto__: null, setValueFrom: function(c, m, y) {
|
|
52074
52010
|
var C = Pb(c, m, y), T = t_(C);
|
|
52075
52011
|
return Y0(c, T), C;
|
|
52076
52012
|
}, setToMin: function(c, m) {
|
|
@@ -52086,14 +52022,14 @@ The conflicting element is` + (ua(z.element) ? " " : " not ") + "already in the
|
|
|
52086
52022
|
}, findPositionOfValue: n_, setPositionFromValue: function(c, m, y, C) {
|
|
52087
52023
|
var T = Lc(y), I = n_(c, C.getSpectrum(c), T.x, C.getLeftEdge(c), C.getRightEdge(c), y), B = wa(m.element) / 2;
|
|
52088
52024
|
Lo(m.element, "left", I - B + "px");
|
|
52089
|
-
}, onLeft: o8, onRight: dr, onUp: Hg, onDown:
|
|
52025
|
+
}, onLeft: o8, onRight: dr, onUp: Hg, onDown: WC, edgeActions: GC }), X0 = function(c, m) {
|
|
52090
52026
|
ho(c, Lg(), { value: m });
|
|
52091
52027
|
}, o_ = function(c) {
|
|
52092
52028
|
return { y: c };
|
|
52093
52029
|
}, Bb = function(c, m, y) {
|
|
52094
|
-
var C = { min: Fc(m), max: _p(m), range: Ug(m), value: y, step: zg(m), snap: j0(m), snapStart:
|
|
52030
|
+
var C = { min: Fc(m), max: _p(m), range: Ug(m), value: y, step: zg(m), snap: j0(m), snapStart: MC(m), rounded: $C(m), hasMinEdge: G0(m), hasMaxEdge: J2(m), minBound: e_(c), maxBound: zC(c), screenRange: Ab(c) };
|
|
52095
52031
|
return kb(C);
|
|
52096
|
-
},
|
|
52032
|
+
}, KC = function(c) {
|
|
52097
52033
|
return function(m, y) {
|
|
52098
52034
|
return function(C, T, I) {
|
|
52099
52035
|
var B = (C > 0 ? Q2 : Z2)(Lc(I).y, Fc(I), _p(I), zg(I));
|
|
@@ -52106,15 +52042,15 @@ The conflicting element is` + (ua(z.element) ? " " : " not ") + "already in the
|
|
|
52106
52042
|
return $.some(Db(Ve, F));
|
|
52107
52043
|
}).getOr(0), Fe = te.bind(function(Ve) {
|
|
52108
52044
|
return $.some(Db(Ve, F));
|
|
52109
|
-
}).getOr(ve), it = { min: Fc(H), max: _p(H), range: Ug(H), value: z, hasMinEdge: G0(H), hasMaxEdge: J2(H), minBound: e_(F), minOffset: 0, maxBound:
|
|
52110
|
-
return
|
|
52045
|
+
}).getOr(ve), it = { min: Fc(H), max: _p(H), range: Ug(H), value: z, hasMinEdge: G0(H), hasMaxEdge: J2(H), minBound: e_(F), minOffset: 0, maxBound: zC(F), maxOffset: ve, centerMinEdge: De, centerMaxEdge: Fe };
|
|
52046
|
+
return FC(it);
|
|
52111
52047
|
}(m, I, y, C, T);
|
|
52112
52048
|
return e_(m) - e_(c) + B;
|
|
52113
|
-
},
|
|
52049
|
+
}, YC = $.none, r8 = $.none, i8 = KC(-1), a8 = KC(1), s8 = { "top-left": $.none(), top: $.some(function(c, m) {
|
|
52114
52050
|
jl(c, xb(z0(m)));
|
|
52115
52051
|
}), "top-right": $.none(), right: $.none(), "bottom-right": $.none(), bottom: $.some(function(c, m) {
|
|
52116
52052
|
jl(c, xb(K2(m)));
|
|
52117
|
-
}), "bottom-left": $.none(), left: $.none() },
|
|
52053
|
+
}), "bottom-left": $.none(), left: $.none() }, XC = Object.freeze({ __proto__: null, setValueFrom: function(c, m, y) {
|
|
52118
52054
|
var C = Bb(c, m, y), T = o_(C);
|
|
52119
52055
|
return X0(c, T), C;
|
|
52120
52056
|
}, setToMin: function(c, m) {
|
|
@@ -52130,7 +52066,7 @@ The conflicting element is` + (ua(z.element) ? " " : " not ") + "already in the
|
|
|
52130
52066
|
}, findPositionOfValue: Rb, setPositionFromValue: function(c, m, y, C) {
|
|
52131
52067
|
var T = Lc(y), I = Rb(c, C.getSpectrum(c), T.y, C.getTopEdge(c), C.getBottomEdge(c), y), B = Wr(m.element) / 2;
|
|
52132
52068
|
Lo(m.element, "top", I - B + "px");
|
|
52133
|
-
}, onLeft:
|
|
52069
|
+
}, onLeft: YC, onRight: r8, onUp: i8, onDown: a8, edgeActions: s8 }), r_ = function(c, m) {
|
|
52134
52070
|
ho(c, Lg(), { value: m });
|
|
52135
52071
|
}, J0 = function(c, m) {
|
|
52136
52072
|
return { x: c, y: m };
|
|
@@ -52141,7 +52077,7 @@ The conflicting element is` + (ua(z.element) ? " " : " not ") + "already in the
|
|
|
52141
52077
|
return r_(B, J0(z, Q)), $.some(z);
|
|
52142
52078
|
}(c, m, y, C).map(Z);
|
|
52143
52079
|
};
|
|
52144
|
-
},
|
|
52080
|
+
}, JC = Z0(-1, !1), l8 = Z0(1, !1), u8 = Z0(-1, !0), Q0 = Z0(1, !0), Mb = { "top-left": $.some(function(c, m) {
|
|
52145
52081
|
jl(c, rf(U0(m), z0(m)));
|
|
52146
52082
|
}), top: $.some(function(c, m) {
|
|
52147
52083
|
jl(c, rf(Cb(m), z0(m)));
|
|
@@ -52157,7 +52093,7 @@ The conflicting element is` + (ua(z.element) ? " " : " not ") + "already in the
|
|
|
52157
52093
|
jl(c, rf(U0(m), K2(m)));
|
|
52158
52094
|
}), left: $.some(function(c, m) {
|
|
52159
52095
|
jl(c, rf(U0(m), Eb(m)));
|
|
52160
|
-
}) },
|
|
52096
|
+
}) }, ZC = Object.freeze({ __proto__: null, setValueFrom: function(c, m, y) {
|
|
52161
52097
|
var C = Pb(c, m, y.left), T = Bb(c, m, y.top), I = J0(C, T);
|
|
52162
52098
|
return r_(c, I), I;
|
|
52163
52099
|
}, setToMin: function(c, m) {
|
|
@@ -52171,15 +52107,15 @@ The conflicting element is` + (ua(z.element) ? " " : " not ") + "already in the
|
|
|
52171
52107
|
}, setPositionFromValue: function(c, m, y, C) {
|
|
52172
52108
|
var T = Lc(y), I = n_(c, C.getSpectrum(c), T.x, C.getLeftEdge(c), C.getRightEdge(c), y), B = Rb(c, C.getSpectrum(c), T.y, C.getTopEdge(c), C.getBottomEdge(c), y), F = wa(m.element) / 2, H = Wr(m.element) / 2;
|
|
52173
52109
|
Lo(m.element, "left", I - F + "px"), Lo(m.element, "top", B - H + "px");
|
|
52174
|
-
}, onLeft:
|
|
52110
|
+
}, onLeft: JC, onRight: l8, onUp: u8, onDown: Q0, edgeActions: Mb }), Wl = Qi({ name: "Slider", configFields: [Vt("stepSize", 1), Vt("onChange", x), Vt("onChoose", x), Vt("onInit", x), Vt("onDragStart", x), Vt("onDragEnd", x), Vt("snapToGrid", !1), Vt("rounded", !0), jo("snapStart"), wr("model", Ft("mode", { x: [Vt("minX", 0), Vt("maxX", 100), pi("value", function(c) {
|
|
52175
52111
|
return Rn(c.mode.minX);
|
|
52176
|
-
}), mn("getInitialValue"), Or("manager",
|
|
52112
|
+
}), mn("getInitialValue"), Or("manager", qC)], y: [Vt("minY", 0), Vt("maxY", 100), pi("value", function(c) {
|
|
52177
52113
|
return Rn(c.mode.minY);
|
|
52178
|
-
}), mn("getInitialValue"), Or("manager",
|
|
52114
|
+
}), mn("getInitialValue"), Or("manager", XC)], xy: [Vt("minX", 0), Vt("maxX", 100), Vt("minY", 0), Vt("maxY", 100), pi("value", function(c) {
|
|
52179
52115
|
return Rn({ x: c.mode.minX, y: c.mode.minY });
|
|
52180
|
-
}), mn("getInitialValue"), Or("manager",
|
|
52116
|
+
}), mn("getInitialValue"), Or("manager", ZC)] })), Mr("sliderBehaviours", [bo, $n]), pi("mouseIsDown", function() {
|
|
52181
52117
|
return Rn(!1);
|
|
52182
|
-
})], partFields:
|
|
52118
|
+
})], partFields: BC, factory: function(c, m, y, C) {
|
|
52183
52119
|
var T, I = function(He) {
|
|
52184
52120
|
return wl(He, c, "thumb");
|
|
52185
52121
|
}, B = function(He) {
|
|
@@ -52244,7 +52180,7 @@ The conflicting element is` + (ua(z.element) ? " " : " not ") + "already in the
|
|
|
52244
52180
|
}, jg = function(c) {
|
|
52245
52181
|
var m, y = 0, C = 0, T = c.red / 255, I = c.green / 255, B = c.blue / 255, F = Math.min(T, Math.min(I, B)), H = Math.max(T, Math.max(I, B));
|
|
52246
52182
|
return F === H ? yp(0, 0, 100 * (C = F)) : (y = 60 * ((y = T === F ? 3 : B === F ? 1 : 5) - (T === F ? I - B : B === F ? T - I : B - T) / (H - F)), m = (H - F) / H, C = H, yp(Math.round(y), Math.round(100 * m), Math.round(100 * C)));
|
|
52247
|
-
},
|
|
52183
|
+
}, QC = function(c) {
|
|
52248
52184
|
return Wy(Gy(c));
|
|
52249
52185
|
}, $b = uo("rgb-hex-update"), i_ = uo("slider-update"), a_ = uo("palette-update"), Vb = "form", Fb = [Mr("formBehaviours", [$n])], Lb = function(c) {
|
|
52250
52186
|
return "<alloy.field." + c + ">";
|
|
@@ -52378,12 +52314,12 @@ The conflicting element is` + (ua(z.element) ? " " : " not ") + "already in the
|
|
|
52378
52314
|
return Wl.sketch({ dom: { tag: "div", attributes: { role: "presentation" }, classes: [m("sv-palette")] }, model: { mode: "xy", getInitialValue: F }, rounded: !1, components: [y, C], onChange: function(z, Q, te) {
|
|
52379
52315
|
ho(z, a_, { value: te });
|
|
52380
52316
|
}, onInit: function(z, Q, te, ve) {
|
|
52381
|
-
T(te.element.dom,
|
|
52317
|
+
T(te.element.dom, q4(K4));
|
|
52382
52318
|
}, sliderBehaviours: H });
|
|
52383
52319
|
}, name: "SaturationBrightnessPalette", configFields: [], apis: { setHue: function(B, F, H) {
|
|
52384
52320
|
(function(z, Q) {
|
|
52385
52321
|
var te = z.components()[0].element.dom, ve = yp(Q, 100, 100), De = Gy(ve);
|
|
52386
|
-
T(te,
|
|
52322
|
+
T(te, q4(De));
|
|
52387
52323
|
})(F, H);
|
|
52388
52324
|
}, setThumb: function(B, F, H) {
|
|
52389
52325
|
(function(z, Q) {
|
|
@@ -52396,7 +52332,7 @@ The conflicting element is` + (ua(z.element) ? " " : " not ") + "already in the
|
|
|
52396
52332
|
var y = as({ name: "ColourPicker", configFields: [mn("dom"), Vt("onValidHex", x), Vt("onInvalidHex", x)], factory: function(C) {
|
|
52397
52333
|
var T, I = c8(c, m, C.onValidHex, C.onInvalidHex), B = n3(0, m), F = function(ft) {
|
|
52398
52334
|
return 100 - ft / 360 * 100;
|
|
52399
|
-
}, H = { paletteRgba: Rn(
|
|
52335
|
+
}, H = { paletteRgba: Rn(K4), paletteHue: Rn(0) }, z = _r(function(ft, He) {
|
|
52400
52336
|
var et = Wl.parts.spectrum({ dom: { tag: "div", classes: [He("hue-slider-spectrum")], attributes: { role: "presentation" } } }), Nt = Wl.parts.thumb({ dom: { tag: "div", classes: [He("hue-slider-thumb")], attributes: { role: "presentation" } } });
|
|
52401
52337
|
return Wl.sketch({ dom: { tag: "div", classes: [He("hue-slider")], attributes: { role: "presentation" } }, rounded: !1, model: { mode: "y", getInitialValue: O({ y: 0 }) }, components: [et, Nt], sliderBehaviours: zn([No.config({})]), onChange: function(Mt, Lt, En) {
|
|
52402
52338
|
ho(Mt, i_, { value: En });
|
|
@@ -52433,7 +52369,7 @@ The conflicting element is` + (ua(z.element) ? " " : " not ") + "already in the
|
|
|
52433
52369
|
})), xn(a_, function() {
|
|
52434
52370
|
var ft = [De];
|
|
52435
52371
|
return function(He, et) {
|
|
52436
|
-
var Nt = et.event.value, Mt = H.paletteHue.get(), Lt = yp(Mt, Nt.x, 100 - Nt.y), En =
|
|
52372
|
+
var Nt = et.event.value, Mt = H.paletteHue.get(), Lt = yp(Mt, Nt.x, 100 - Nt.y), En = QC(Lt);
|
|
52437
52373
|
Ve(He, En, Mt, ft);
|
|
52438
52374
|
};
|
|
52439
52375
|
}()), xn(i_, function() {
|
|
@@ -52441,7 +52377,7 @@ The conflicting element is` + (ua(z.element) ? " " : " not ") + "already in the
|
|
|
52441
52377
|
return function(He, et) {
|
|
52442
52378
|
var Nt = function(Jn) {
|
|
52443
52379
|
return (100 - Jn) / 100 * 360;
|
|
52444
|
-
}(et.event.value.y), Mt = H.paletteRgba.get(), Lt = jg(Mt), En = yp(Nt, Lt.saturation, Lt.value), vn =
|
|
52380
|
+
}(et.event.value.y), Mt = H.paletteRgba.get(), Lt = jg(Mt), En = yp(Nt, Lt.saturation, Lt.value), vn = QC(En);
|
|
52445
52381
|
Ve(He, vn, Nt, ft);
|
|
52446
52382
|
};
|
|
52447
52383
|
}())]), nr.config({ find: function(ft) {
|
|
@@ -52831,13 +52767,13 @@ The conflicting element is` + (ua(z.element) ? " " : " not ") + "already in the
|
|
|
52831
52767
|
return m3(C, m.getType(), y);
|
|
52832
52768
|
});
|
|
52833
52769
|
}(c, fb);
|
|
52834
|
-
}), E8 = (
|
|
52770
|
+
}), E8 = (kC = function(c, m) {
|
|
52835
52771
|
return 255 * Math.pow(c / 255, 1 - m);
|
|
52836
52772
|
}, function(c, m) {
|
|
52837
52773
|
return c.toCanvas().then(function(y) {
|
|
52838
52774
|
return function(C, T, I) {
|
|
52839
52775
|
for (var B = af(C), F = new Array(256), H = 0; H < F.length; H++)
|
|
52840
|
-
F[H] =
|
|
52776
|
+
F[H] = kC(H, I);
|
|
52841
52777
|
var z = function(Q, te) {
|
|
52842
52778
|
for (var ve = Q.data, De = 0; De < ve.length; De += 4)
|
|
52843
52779
|
ve[De] = te[ve[De]], ve[De + 1] = te[ve[De + 1]], ve[De + 2] = te[ve[De + 2]];
|
|
@@ -52989,8 +52925,8 @@ The conflicting element is` + (ua(z.element) ? " " : " not ") + "already in the
|
|
|
52989
52925
|
var T = uo("primary-menu"), I = E3(c, y.shared.providers.menuItems());
|
|
52990
52926
|
if (I.items.length === 0)
|
|
52991
52927
|
return $.none();
|
|
52992
|
-
var B =
|
|
52993
|
-
return
|
|
52928
|
+
var B = sC(T, I.items, m, y, C), F = Ye(I.menus, function(z, Q) {
|
|
52929
|
+
return sC(Q, z, m, y, !1);
|
|
52994
52930
|
}), H = Ae(F, xt(T, B));
|
|
52995
52931
|
return $.from(Yd.tieredData(T, H, I.expansions));
|
|
52996
52932
|
}, S3 = function(c) {
|
|
@@ -54047,7 +53983,7 @@ The conflicting element is` + (ua(z.element) ? " " : " not ") + "already in the
|
|
|
54047
53983
|
} }), Mi()]) });
|
|
54048
53984
|
}(c, m.shared.providers);
|
|
54049
53985
|
}), colorinput: ta(function(c, m) {
|
|
54050
|
-
return
|
|
53986
|
+
return AC(c, m.shared, m.colorinput);
|
|
54051
53987
|
}), colorpicker: ta(function(c) {
|
|
54052
53988
|
var m = function(T) {
|
|
54053
53989
|
return "tox-" + T;
|
|
@@ -54185,7 +54121,7 @@ The conflicting element is` + (ua(z.element) ? " " : " not ") + "already in the
|
|
|
54185
54121
|
} })]) }), it = _r(sw({ name: y.name, icon: $.some("browse"), text: y.label.getOr(""), disabled: y.disabled, primary: !1, borderless: !0 }, function(Ve) {
|
|
54186
54122
|
return ko(Ve, De);
|
|
54187
54123
|
}, B, [], ["tox-browse-url"]));
|
|
54188
|
-
return vr.sketch({ dom:
|
|
54124
|
+
return vr.sketch({ dom: vC([]), components: z.toArray().concat([{ dom: { tag: "div", classes: ["tox-form__controls-h-stack"] }, components: Ue([[Fe.asSpec()], ve.map(function() {
|
|
54189
54125
|
return it.asSpec();
|
|
54190
54126
|
}).toArray()]) }]), fieldBehaviours: zn([_o.config({ disabled: function() {
|
|
54191
54127
|
return y.disabled || B.isDisabled();
|
|
@@ -54310,7 +54246,7 @@ The conflicting element is` + (ua(z.element) ? " " : " not ") + "already in the
|
|
|
54310
54246
|
return { inlineDialog: x_(I, m, B), banner: dh(I, m, B), cursor: _w(c, T), node: H8(T) };
|
|
54311
54247
|
}, U3 = function(c) {
|
|
54312
54248
|
return function(m, y) {
|
|
54313
|
-
|
|
54249
|
+
Z4(c)(m, y);
|
|
54314
54250
|
};
|
|
54315
54251
|
}, j8 = function(c) {
|
|
54316
54252
|
return function() {
|
|
@@ -54570,7 +54506,7 @@ The conflicting element is` + (ua(z.element) ? " " : " not ") + "already in the
|
|
|
54570
54506
|
} };
|
|
54571
54507
|
}, Jt = function(c, m, y) {
|
|
54572
54508
|
var C = Rn(!1), T = function(B) {
|
|
54573
|
-
var F = Rn(
|
|
54509
|
+
var F = Rn(A4(B) ? "bottom" : "top");
|
|
54574
54510
|
return { isPositionedAtTop: function() {
|
|
54575
54511
|
return F.get() === "top";
|
|
54576
54512
|
}, getDockingMode: F.get, setDockingMode: F.set };
|
|
@@ -55291,7 +55227,7 @@ The conflicting element is` + (ua(z.element) ? " " : " not ") + "already in the
|
|
|
55291
55227
|
}), ve.scope === "editor" ? T.push(ve) : C.push(ve), B[Q] = ve;
|
|
55292
55228
|
}, H = function(Q, te) {
|
|
55293
55229
|
var ve;
|
|
55294
|
-
(ve = te, gr("ContextToolbar",
|
|
55230
|
+
(ve = te, gr("ContextToolbar", l4, ve)).each(function(De) {
|
|
55295
55231
|
te.scope === "editor" ? T.push(De) : C.push(De), B[Q] = De;
|
|
55296
55232
|
});
|
|
55297
55233
|
}, z = qo(c);
|
|
@@ -56892,7 +56828,7 @@ The conflicting element is` + (ua(z.element) ? " " : " not ") + "already in the
|
|
|
56892
56828
|
});
|
|
56893
56829
|
})(y);
|
|
56894
56830
|
var C = Rn(null), T = Rn(null);
|
|
56895
|
-
|
|
56831
|
+
J4(y, "forecolor", "forecolor", "Text color", C), J4(y, "backcolor", "hilitecolor", "Background color", T), Jy(y, "forecolor", "forecolor", "Text color"), Jy(y, "backcolor", "hilitecolor", "Background color");
|
|
56896
56832
|
}(c), function(y) {
|
|
56897
56833
|
(function(C) {
|
|
56898
56834
|
C.ui.registry.addButton("visualaid", { tooltip: "Visual aids", text: "Visual aids", onAction: function() {
|
|
@@ -57535,7 +57471,7 @@ The conflicting element is` + (ua(z.element) ? " " : " not ") + "already in the
|
|
|
57535
57471
|
return C.concat(T.toArray());
|
|
57536
57472
|
}() };
|
|
57537
57473
|
}, c5 = function(c) {
|
|
57538
|
-
var m, y, C, T, I = c.inline, B = I ? ET : bT, F = I0(c) ? Jk : Uk, H = $.none(), z = mr(), Q = z.browser.isIE() ? ["tox-platform-ie"] : [], te = z.deviceType.isTouch() ? ["tox-platform-touch"] : [], ve =
|
|
57474
|
+
var m, y, C, T, I = c.inline, B = I ? ET : bT, F = I0(c) ? Jk : Uk, H = $.none(), z = mr(), Q = z.browser.isIE() ? ["tox-platform-ie"] : [], te = z.deviceType.isTouch() ? ["tox-platform-touch"] : [], ve = A4(c), De = Tg(c), Fe = zl.isRtl() ? { attributes: { dir: "rtl" } } : {}, it = { attributes: (m = {}, m[Jp] = ve ? fl.BottomToTop : fl.TopToBottom, m) }, Ve = function() {
|
|
57539
57475
|
return H.bind(Ci.getHeader);
|
|
57540
57476
|
}, ft = function() {
|
|
57541
57477
|
Lo(df.element, "width", document.body.clientWidth + "px");
|
|
@@ -57573,7 +57509,7 @@ The conflicting element is` + (ua(z.element) ? " " : " not ") + "already in the
|
|
|
57573
57509
|
}), c.addQueryStateHandler("ToggleToolbarDrawer", function() {
|
|
57574
57510
|
return Ci.isToolbarDrawerToggled(Ia);
|
|
57575
57511
|
});
|
|
57576
|
-
var n1 =
|
|
57512
|
+
var n1 = hC(Ia), df = hC(He);
|
|
57577
57513
|
(function($r, Ha, ff) {
|
|
57578
57514
|
var o1 = function(ui, gv) {
|
|
57579
57515
|
nt([Ha, ff], function(Aw) {
|
|
@@ -57641,7 +57577,7 @@ The conflicting element is` + (ua(z.element) ? " " : " not ") + "already in the
|
|
|
57641
57577
|
}(c), function(fr, oa) {
|
|
57642
57578
|
c.ui.registry.addGroupToolbarButton(oa, fr);
|
|
57643
57579
|
});
|
|
57644
|
-
var $r = c.ui.registry.getAll(), Ha = $r.buttons, ff = $r.menuItems, o1 = $r.contextToolbars, pf = $r.sidebars, hv = up(c), Iw = { menuItems: ff, menus:
|
|
57580
|
+
var $r = c.ui.registry.getAll(), Ha = $r.buttons, ff = $r.menuItems, o1 = $r.contextToolbars, pf = $r.sidebars, hv = up(c), Iw = { menuItems: ff, menus: O4(c), menubar: D6(c), toolbar: hv.getOrThunk(function() {
|
|
57645
57581
|
return function(fr) {
|
|
57646
57582
|
return fr.getParam("toolbar", !0);
|
|
57647
57583
|
}(c);
|
|
@@ -57962,7 +57898,7 @@ The conflicting element is` + (ua(z.element) ? " " : " not ") + "already in the
|
|
|
57962
57898
|
}), F = $N(B).smartTabHeight;
|
|
57963
57899
|
return P_.sketch({ dom: { tag: "div", classes: ["tox-dialog__body"] }, onChangeTab: function(H, z, Q) {
|
|
57964
57900
|
var te = $n.getValue(z);
|
|
57965
|
-
ho(H,
|
|
57901
|
+
ho(H, _C, { name: te, oldName: I.get() }), I.set(te);
|
|
57966
57902
|
}, tabs: B, components: [P_.parts.tabbar({ dom: { tag: "div", classes: ["tox-dialog__body-nav"] }, components: [_x.parts.tabs({})], markers: { tabClass: "tox-tab", selectedClass: "tox-dialog__body-nav-item--active" }, tabbarBehaviours: zn([jr.config({})]) }), P_.parts.tabview({ dom: { tag: "div", classes: ["tox-dialog__body-content"] } })], selectFirst: F.selectFirst, tabSectionBehaviours: zn([Xo("tabpanel", F.extraEvents), bo.config({ mode: "acyclic" }), nr.config({ find: function(H) {
|
|
57967
57903
|
return qn(P_.getViewItems(H));
|
|
57968
57904
|
} }), $n.config({ store: { mode: "manual", getValue: function(H) {
|
|
@@ -58114,7 +58050,7 @@ The conflicting element is` + (ua(z.element) ? " " : " not ") + "already in the
|
|
|
58114
58050
|
return !Gi(Fe.element, De);
|
|
58115
58051
|
}).each(z);
|
|
58116
58052
|
});
|
|
58117
|
-
}), C(
|
|
58053
|
+
}), C(_C, function(I, B, F) {
|
|
58118
58054
|
B.onTabChange(I, { newTabName: F.name, oldTabName: F.oldName });
|
|
58119
58055
|
}), Qs(function(I) {
|
|
58120
58056
|
var B = c();
|
|
@@ -73207,7 +73143,7 @@ const _sfc_main = defineComponent({ __name: "index", props: { offset: { type: Nu
|
|
|
73207
73143
|
const X = resolveDirective("resize");
|
|
73208
73144
|
return openBlock(), createElementBlock("div", { ref_key: "affixMainRef", ref: a, class: "yx-affix", style: normalizeStyle({ height: l.value ? d.value.height : void 0 }) }, [withDirectives((openBlock(), createElementBlock("div", { ref_key: "affixRef", ref: s, style: normalizeStyle(G.value), class: normalizeClass([{ "is-fixed": l.value, "is-top": r.position === "top", "is-bottom": r.position === "bottom" }, "yx-affix-content"]) }, [renderSlot(W.$slots, "default", {}, void 0, !0)], 6)), [[X, x]])], 4);
|
|
73209
73145
|
};
|
|
73210
|
-
} }), index_vue_vue_type_style_index_0_scoped_417c4495_lang = "", YxAffix = _export_sfc(_sfc_main, [["__scopeId", "data-v-417c4495"]]), components = [YxAffix, Breadcrumb, DepartmentTree, hamburger, SvgIcon, SuperGrid, DepartmentUserTree, WorkgroupTree, WorkgroupUserTree, InlineDepartmentTree, InlineDepartmentUserTree, InlineWorkgroupTree, InlineWorkgroupUserTree, WorkflowButton, WorkflowHistoryList, ValidCode, RemoveUser, RemoveDepartment, RemoveWorkgroup, OrganizationInput, SuperNineGrid, DynamicSourceSelect, FsUpload, ScanCodeInput, FsPreview, FsUploadList, YearRangePicker, MultipartUpload, RichEditor, SecretInfo, SectionDate, _sfc_main$1v, _sfc_main$P,
|
|
73146
|
+
} }), index_vue_vue_type_style_index_0_scoped_417c4495_lang = "", YxAffix = _export_sfc(_sfc_main, [["__scopeId", "data-v-417c4495"]]), components = [YxAffix, Breadcrumb, DepartmentTree, hamburger, SvgIcon, SuperGrid, DepartmentUserTree, WorkgroupTree, WorkgroupUserTree, InlineDepartmentTree, InlineDepartmentUserTree, InlineWorkgroupTree, InlineWorkgroupUserTree, WorkflowButton, WorkflowHistoryList, ValidCode, RemoveUser, RemoveDepartment, RemoveWorkgroup, OrganizationInput, SuperNineGrid, DynamicSourceSelect, FsUpload, ScanCodeInput, FsPreview, FsUploadList, YearRangePicker, MultipartUpload, RichEditor, SecretInfo, SectionDate, _sfc_main$1v, _sfc_main$P, _sfc_main$1J, _sfc_main$3, ScanCodeInputBrowser, _sfc_main$J, _sfc_main$1], install = function(n) {
|
|
73211
73147
|
if (n.directive("prevent-reclick", PreventReclick), n.use(customPlugin), !install.installed) {
|
|
73212
73148
|
n.directive("resize", resizeDirective), components.forEach((o) => {
|
|
73213
73149
|
n.component(o.name, o);
|
|
@@ -73224,7 +73160,7 @@ export {
|
|
|
73224
73160
|
Breadcrumb as B,
|
|
73225
73161
|
_sfc_main$P as C,
|
|
73226
73162
|
DepartmentTree as D,
|
|
73227
|
-
|
|
73163
|
+
_sfc_main$1J as E,
|
|
73228
73164
|
FsUpload as F,
|
|
73229
73165
|
_sfc_main$3 as G,
|
|
73230
73166
|
ScanCodeInputBrowser as H,
|