beca-ui 2.0.19-beta.2 → 2.0.19-beta.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/beca-ui.js
CHANGED
|
@@ -11743,7 +11743,7 @@ Check the render method of \`` + u + "`." : "";
|
|
|
11743
11743
|
};
|
|
11744
11744
|
}
|
|
11745
11745
|
}
|
|
11746
|
-
function
|
|
11746
|
+
function JOt(u) {
|
|
11747
11747
|
return u;
|
|
11748
11748
|
}
|
|
11749
11749
|
function c0e(u) {
|
|
@@ -14230,10 +14230,10 @@ Incoming: %s`, Vt, "[" + f.join(", ") + "]", "[" + u.join(", ") + "]");
|
|
|
14230
14230
|
}
|
|
14231
14231
|
return [he, K];
|
|
14232
14232
|
}
|
|
14233
|
-
function JOt(u, f, w) {
|
|
14234
|
-
}
|
|
14235
14233
|
function QOt(u, f, w) {
|
|
14236
14234
|
}
|
|
14235
|
+
function eNt(u, f, w) {
|
|
14236
|
+
}
|
|
14237
14237
|
function QT(u, f, w) {
|
|
14238
14238
|
var T = Ri, k = gf(), K, re = rl();
|
|
14239
14239
|
if (re) {
|
|
@@ -85986,7 +85986,7 @@ const c1e = {
|
|
|
85986
85986
|
refresh: "Thanh tẩy",
|
|
85987
85987
|
table: "Bảng"
|
|
85988
85988
|
};
|
|
85989
|
-
function
|
|
85989
|
+
function oNt() {
|
|
85990
85990
|
const [e, t] = lt();
|
|
85991
85991
|
return Qt(() => {
|
|
85992
85992
|
const n = localStorage.getItem("locale");
|
|
@@ -87939,7 +87939,7 @@ const mw = 10, yJe = (e, t) => {
|
|
|
87939
87939
|
let o = [];
|
|
87940
87940
|
r && (o = JSON.parse(r)), o.push(i), localStorage.setItem("logNoti", JSON.stringify(o));
|
|
87941
87941
|
}
|
|
87942
|
-
}, CJe = zi(yJe), fE = '-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"', bJe = '"Inter", sans-serif;',
|
|
87942
|
+
}, CJe = zi(yJe), fE = '-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"', bJe = '"Inter", sans-serif;', aNt = '"Calibri", sans-serif;', S6 = 992, cd = {
|
|
87943
87943
|
colorPrimary: "#2174cd",
|
|
87944
87944
|
colorSuccess: "var(--success-color-5)",
|
|
87945
87945
|
colorWarning: "var(--warning-color-5)",
|
|
@@ -90109,7 +90109,7 @@ D2(Ng, "removeVietnameseTones", (t) => (t = t.replace(/à|á|ạ|ả|ã|â|ầ|
|
|
|
90109
90109
|
/!|@|%|\^|\*|\(|\)|\+|\=|\<|\>|\?|\/|,|\.|\:|\;|\'|\"|\&|\#|\[|\]|~|\$|_|`|-|{|}|\||\\/g,
|
|
90110
90110
|
" "
|
|
90111
90111
|
), t));
|
|
90112
|
-
const
|
|
90112
|
+
const sNt = (e) => {
|
|
90113
90113
|
if (e)
|
|
90114
90114
|
return e.toLowerCase().replace(/\b\w/g, (t) => t.toUpperCase());
|
|
90115
90115
|
}, aQe = 12;
|
|
@@ -92193,7 +92193,7 @@ const u7 = Fd({
|
|
|
92193
92193
|
)
|
|
92194
92194
|
}
|
|
92195
92195
|
);
|
|
92196
|
-
},
|
|
92196
|
+
}, uNt = zi(ret), FH = {
|
|
92197
92197
|
header: {
|
|
92198
92198
|
theme: {
|
|
92199
92199
|
visible: !0
|
|
@@ -92228,7 +92228,7 @@ const iet = {
|
|
|
92228
92228
|
const { className: t, scrollable: n = !0 } = e;
|
|
92229
92229
|
let r = "beca-content";
|
|
92230
92230
|
return t && (r += " " + t), n && (r += " scrollable"), r;
|
|
92231
|
-
},
|
|
92231
|
+
}, dNt = (e) => {
|
|
92232
92232
|
const { scrollable: t, ...n } = e;
|
|
92233
92233
|
return /* @__PURE__ */ D(
|
|
92234
92234
|
"div",
|
|
@@ -92350,7 +92350,7 @@ const iet = {
|
|
|
92350
92350
|
default:
|
|
92351
92351
|
return n;
|
|
92352
92352
|
}
|
|
92353
|
-
},
|
|
92353
|
+
}, fNt = (e) => {
|
|
92354
92354
|
const {
|
|
92355
92355
|
itemRender: t = (n, r, i) => W1e(n, r, i, e.size)
|
|
92356
92356
|
} = e;
|
|
@@ -98681,7 +98681,7 @@ const Ktt = Utt, qtt = (e) => {
|
|
|
98681
98681
|
} = e;
|
|
98682
98682
|
let m = "beca-table";
|
|
98683
98683
|
return n && (m += " " + n), t && (m += " transparent"), r && (m += " table-stripe"), i && (m += " table-box-shadow"), l && (m += " table-custom-pagination"), (!c || !c.x) && (m += " table-vertical-scroll"), s && (m += " table-body-card"), a || (m += " table-no-footer"), o || (m += " table-no-title"), h && (m += " table-responsive", d && (m += " table-responsive-bordered")), m;
|
|
98684
|
-
},
|
|
98684
|
+
}, hNt = zi(Gtt), mNt = jd.Summary, Xtt = (e) => {
|
|
98685
98685
|
const { className: t, footer: n } = e;
|
|
98686
98686
|
let r = "beca-modal";
|
|
98687
98687
|
return t && (r += " " + t), (n === null || n === !1) && (r += " modal-no-footer"), r;
|
|
@@ -98820,7 +98820,7 @@ qg.info = Qtt;
|
|
|
98820
98820
|
qg.config = La.config;
|
|
98821
98821
|
qg.destroyAll = La.destroyAll;
|
|
98822
98822
|
qg.useModal = La.useModal;
|
|
98823
|
-
const
|
|
98823
|
+
const gNt = (e) => {
|
|
98824
98824
|
const { headerRender: t, className: n } = e, r = ({
|
|
98825
98825
|
value: i,
|
|
98826
98826
|
onChange: o
|
|
@@ -98931,7 +98931,7 @@ rp.TextArea = rnt;
|
|
|
98931
98931
|
rp.Search = lnt;
|
|
98932
98932
|
rp.Group = ant;
|
|
98933
98933
|
rp.Password = ont;
|
|
98934
|
-
const
|
|
98934
|
+
const vNt = (e) => {
|
|
98935
98935
|
const { className: t, controls: n } = e;
|
|
98936
98936
|
return /* @__PURE__ */ D(
|
|
98937
98937
|
xO,
|
|
@@ -99062,7 +99062,7 @@ const ynt = (e) => {
|
|
|
99062
99062
|
const { className: t } = e;
|
|
99063
99063
|
let n = "beca-drawer";
|
|
99064
99064
|
return t && (n += " " + t), n;
|
|
99065
|
-
}, lpe = (e) => /* @__PURE__ */ D(qF, { ...e, className: ynt(e) }),
|
|
99065
|
+
}, lpe = (e) => /* @__PURE__ */ D(qF, { ...e, className: ynt(e) }), yNt = (e) => {
|
|
99066
99066
|
const { formItemProps: t, selectProps: n, isAutoComplete: r } = e, { label: i, labelCol: o, wrapperCol: a, ...l } = t ?? {}, s = $t(null), { isMobileApp: c } = d1e(), [d, h] = lt(!1), m = () => {
|
|
99067
99067
|
h(!0);
|
|
99068
99068
|
}, v = () => {
|
|
@@ -102688,7 +102688,7 @@ class kr {
|
|
|
102688
102688
|
found.
|
|
102689
102689
|
*/
|
|
102690
102690
|
static findFrom(t, n, r = !1) {
|
|
102691
|
-
let i = t.parent.inlineContent ? new
|
|
102691
|
+
let i = t.parent.inlineContent ? new Ar(t) : o4(t.node(0), t.parent, t.pos, t.index(), n, r);
|
|
102692
102692
|
if (i)
|
|
102693
102693
|
return i;
|
|
102694
102694
|
for (let o = t.depth - 1; o >= 0; o--) {
|
|
@@ -102755,7 +102755,7 @@ class kr {
|
|
|
102755
102755
|
returns the bookmark for that.
|
|
102756
102756
|
*/
|
|
102757
102757
|
getBookmark() {
|
|
102758
|
-
return
|
|
102758
|
+
return Ar.between(this.$anchor, this.$head).getBookmark();
|
|
102759
102759
|
}
|
|
102760
102760
|
}
|
|
102761
102761
|
kr.prototype.visible = !0;
|
|
@@ -102771,7 +102771,7 @@ let $J = !1;
|
|
|
102771
102771
|
function OJ(e) {
|
|
102772
102772
|
!$J && !e.parent.inlineContent && ($J = !0, console.warn("TextSelection endpoint not pointing into a node with inline content (" + e.parent.type.name + ")"));
|
|
102773
102773
|
}
|
|
102774
|
-
class
|
|
102774
|
+
class Ar extends kr {
|
|
102775
102775
|
/**
|
|
102776
102776
|
Construct a text selection between the given points.
|
|
102777
102777
|
*/
|
|
@@ -102790,7 +102790,7 @@ class Dr extends kr {
|
|
|
102790
102790
|
if (!r.parent.inlineContent)
|
|
102791
102791
|
return kr.near(r);
|
|
102792
102792
|
let i = t.resolve(n.map(this.anchor));
|
|
102793
|
-
return new
|
|
102793
|
+
return new Ar(i.parent.inlineContent ? i : r, r);
|
|
102794
102794
|
}
|
|
102795
102795
|
replace(t, n = bn.empty) {
|
|
102796
102796
|
if (super.replace(t, n), n == bn.empty) {
|
|
@@ -102799,7 +102799,7 @@ class Dr extends kr {
|
|
|
102799
102799
|
}
|
|
102800
102800
|
}
|
|
102801
102801
|
eq(t) {
|
|
102802
|
-
return t instanceof
|
|
102802
|
+
return t instanceof Ar && t.anchor == this.anchor && t.head == this.head;
|
|
102803
102803
|
}
|
|
102804
102804
|
getBookmark() {
|
|
102805
102805
|
return new cN(this.anchor, this.head);
|
|
@@ -102813,7 +102813,7 @@ class Dr extends kr {
|
|
|
102813
102813
|
static fromJSON(t, n) {
|
|
102814
102814
|
if (typeof n.anchor != "number" || typeof n.head != "number")
|
|
102815
102815
|
throw new RangeError("Invalid input for TextSelection.fromJSON");
|
|
102816
|
-
return new
|
|
102816
|
+
return new Ar(t.resolve(n.anchor), t.resolve(n.head));
|
|
102817
102817
|
}
|
|
102818
102818
|
/**
|
|
102819
102819
|
Create a text selection from non-resolved positions.
|
|
@@ -102839,10 +102839,10 @@ class Dr extends kr {
|
|
|
102839
102839
|
else
|
|
102840
102840
|
return kr.near(n, r);
|
|
102841
102841
|
}
|
|
102842
|
-
return t.parent.inlineContent || (i == 0 ? t = n : (t = (kr.findFrom(t, -r, !0) || kr.findFrom(t, r, !0)).$anchor, t.pos < n.pos != i < 0 && (t = n))), new
|
|
102842
|
+
return t.parent.inlineContent || (i == 0 ? t = n : (t = (kr.findFrom(t, -r, !0) || kr.findFrom(t, r, !0)).$anchor, t.pos < n.pos != i < 0 && (t = n))), new Ar(t, n);
|
|
102843
102843
|
}
|
|
102844
102844
|
}
|
|
102845
|
-
kr.jsonID("text",
|
|
102845
|
+
kr.jsonID("text", Ar);
|
|
102846
102846
|
class cN {
|
|
102847
102847
|
constructor(t, n) {
|
|
102848
102848
|
this.anchor = t, this.head = n;
|
|
@@ -102851,7 +102851,7 @@ class cN {
|
|
|
102851
102851
|
return new cN(t.map(this.anchor), t.map(this.head));
|
|
102852
102852
|
}
|
|
102853
102853
|
resolve(t) {
|
|
102854
|
-
return
|
|
102854
|
+
return Ar.between(t.resolve(this.anchor), t.resolve(this.head));
|
|
102855
102855
|
}
|
|
102856
102856
|
}
|
|
102857
102857
|
class Er extends kr {
|
|
@@ -102961,7 +102961,7 @@ const crt = {
|
|
|
102961
102961
|
};
|
|
102962
102962
|
function o4(e, t, n, r, i, o = !1) {
|
|
102963
102963
|
if (t.inlineContent)
|
|
102964
|
-
return
|
|
102964
|
+
return Ar.create(e, n);
|
|
102965
102965
|
for (let a = r - (i > 0 ? 0 : 1); i > 0 ? a < t.childCount : a >= 0; a += i) {
|
|
102966
102966
|
let l = t.child(a);
|
|
102967
102967
|
if (l.isAtom) {
|
|
@@ -104305,7 +104305,7 @@ class Vh extends g7 {
|
|
|
104305
104305
|
}
|
|
104306
104306
|
localCompositionInfo(t, n) {
|
|
104307
104307
|
let { from: r, to: i } = t.state.selection;
|
|
104308
|
-
if (!(t.state.selection instanceof
|
|
104308
|
+
if (!(t.state.selection instanceof Ar) || r < n || i > n + this.node.content.size)
|
|
104309
104309
|
return null;
|
|
104310
104310
|
let o = t.domSelectionRange(), a = Brt(o.focusNode, o.focusOffset);
|
|
104311
104311
|
if (!a || !this.dom.contains(a.parentNode))
|
|
@@ -104867,7 +104867,7 @@ function ip(e, t = !1) {
|
|
|
104867
104867
|
Urt(e);
|
|
104868
104868
|
else {
|
|
104869
104869
|
let { anchor: r, head: i } = n, o, a;
|
|
104870
|
-
VJ && !(n instanceof
|
|
104870
|
+
VJ && !(n instanceof Ar) && (n.$from.parent.inlineContent || (o = WJ(e, n.from)), !n.empty && !n.$from.parent.inlineContent && (a = WJ(e, n.to))), e.docView.setSelection(r, i, e.root, t), VJ && (o && UJ(o), a && UJ(a)), n.visible ? e.dom.classList.remove("ProseMirror-hideselection") : (e.dom.classList.add("ProseMirror-hideselection"), "onselectionchange" in document && Wrt(e));
|
|
104871
104871
|
}
|
|
104872
104872
|
e.domObserver.setCurSelection(), e.domObserver.connectSelection();
|
|
104873
104873
|
}
|
|
@@ -104915,7 +104915,7 @@ function KJ(e) {
|
|
|
104915
104915
|
e.lastSelectedViewDesc && (e.lastSelectedViewDesc.parent && e.lastSelectedViewDesc.deselectNode(), e.lastSelectedViewDesc = void 0);
|
|
104916
104916
|
}
|
|
104917
104917
|
function aj(e, t, n, r) {
|
|
104918
|
-
return e.someProp("createSelectionBetween", (i) => i(e, t, n)) ||
|
|
104918
|
+
return e.someProp("createSelectionBetween", (i) => i(e, t, n)) || Ar.between(t, n, r);
|
|
104919
104919
|
}
|
|
104920
104920
|
function qJ(e) {
|
|
104921
104921
|
return e.editable && !e.hasFocus() ? !1 : ohe(e);
|
|
@@ -104943,13 +104943,13 @@ function $h(e, t) {
|
|
|
104943
104943
|
}
|
|
104944
104944
|
function GJ(e, t, n) {
|
|
104945
104945
|
let r = e.state.selection;
|
|
104946
|
-
if (r instanceof
|
|
104946
|
+
if (r instanceof Ar)
|
|
104947
104947
|
if (n.indexOf("s") > -1) {
|
|
104948
104948
|
let { $head: i } = r, o = i.textOffset ? null : t < 0 ? i.nodeBefore : i.nodeAfter;
|
|
104949
104949
|
if (!o || o.isText || !o.isLeaf)
|
|
104950
104950
|
return !1;
|
|
104951
104951
|
let a = e.state.doc.resolve(i.pos + o.nodeSize * (t < 0 ? -1 : 1));
|
|
104952
|
-
return $h(e, new
|
|
104952
|
+
return $h(e, new Ar(r.$anchor, a));
|
|
104953
104953
|
} else if (r.empty) {
|
|
104954
104954
|
if (e.endOfTextblock(t > 0 ? "forward" : "backward")) {
|
|
104955
104955
|
let i = ZD(e.state, t);
|
|
@@ -104959,13 +104959,13 @@ function GJ(e, t, n) {
|
|
|
104959
104959
|
if (!o || o.isText)
|
|
104960
104960
|
return !1;
|
|
104961
104961
|
let l = t < 0 ? i.pos - o.nodeSize : i.pos;
|
|
104962
|
-
return o.isAtom || (a = e.docView.descAt(l)) && !a.contentDOM ? Er.isSelectable(o) ? $h(e, new Er(t < 0 ? e.state.doc.resolve(i.pos - o.nodeSize) : i)) : m7 ? $h(e, new
|
|
104962
|
+
return o.isAtom || (a = e.docView.descAt(l)) && !a.contentDOM ? Er.isSelectable(o) ? $h(e, new Er(t < 0 ? e.state.doc.resolve(i.pos - o.nodeSize) : i)) : m7 ? $h(e, new Ar(e.state.doc.resolve(t < 0 ? l : l + o.nodeSize))) : !1 : !1;
|
|
104963
104963
|
}
|
|
104964
104964
|
} else
|
|
104965
104965
|
return !1;
|
|
104966
104966
|
else {
|
|
104967
104967
|
if (r instanceof Er && r.node.isInline)
|
|
104968
|
-
return $h(e, new
|
|
104968
|
+
return $h(e, new Ar(t > 0 ? r.$to : r.$from));
|
|
104969
104969
|
{
|
|
104970
104970
|
let i = ZD(e.state, t);
|
|
104971
104971
|
return i ? $h(e, i) : !1;
|
|
@@ -105114,7 +105114,7 @@ function YJ(e, t) {
|
|
|
105114
105114
|
}
|
|
105115
105115
|
function XJ(e, t, n) {
|
|
105116
105116
|
let r = e.state.selection;
|
|
105117
|
-
if (r instanceof
|
|
105117
|
+
if (r instanceof Ar && !r.empty || n.indexOf("s") > -1 || gu && n.indexOf("m") > -1)
|
|
105118
105118
|
return !1;
|
|
105119
105119
|
let { $from: i, $to: o } = r;
|
|
105120
105120
|
if (!i.parent.inlineContent || e.endOfTextblock(t < 0 ? "up" : "down")) {
|
|
@@ -105129,7 +105129,7 @@ function XJ(e, t, n) {
|
|
|
105129
105129
|
return !1;
|
|
105130
105130
|
}
|
|
105131
105131
|
function ZJ(e, t) {
|
|
105132
|
-
if (!(e.state.selection instanceof
|
|
105132
|
+
if (!(e.state.selection instanceof Ar))
|
|
105133
105133
|
return !0;
|
|
105134
105134
|
let { $head: n, $anchor: r, empty: i } = e.state.selection;
|
|
105135
105135
|
if (!n.sameParent(r))
|
|
@@ -105441,7 +105441,7 @@ ys.keypress = (e, t) => {
|
|
|
105441
105441
|
return;
|
|
105442
105442
|
}
|
|
105443
105443
|
let r = e.state.selection;
|
|
105444
|
-
if (!(r instanceof
|
|
105444
|
+
if (!(r instanceof Ar) || !r.$from.sameParent(r.$to)) {
|
|
105445
105445
|
let i = String.fromCharCode(n.charCode);
|
|
105446
105446
|
!/[\r\n]/.test(i) && !e.someProp("handleTextInput", (o) => o(e, r.$from.pos, r.$to.pos, i)) && e.dispatch(e.state.tr.insertText(i).scrollIntoView()), n.preventDefault();
|
|
105447
105447
|
}
|
|
@@ -105502,12 +105502,12 @@ function vit(e, t, n) {
|
|
|
105502
105502
|
return !1;
|
|
105503
105503
|
let r = e.state.doc;
|
|
105504
105504
|
if (t == -1)
|
|
105505
|
-
return r.inlineContent ? (W4(e,
|
|
105505
|
+
return r.inlineContent ? (W4(e, Ar.create(r, 0, r.content.size)), !0) : !1;
|
|
105506
105506
|
let i = r.resolve(t);
|
|
105507
105507
|
for (let o = i.depth + 1; o > 0; o--) {
|
|
105508
105508
|
let a = o > i.depth ? i.nodeAfter : i.node(o), l = i.before(o);
|
|
105509
105509
|
if (a.inlineContent)
|
|
105510
|
-
W4(e,
|
|
105510
|
+
W4(e, Ar.create(r, l + 1, l + 1 + a.content.size));
|
|
105511
105511
|
else if (Er.isSelectable(a))
|
|
105512
105512
|
W4(e, Er.create(r, l));
|
|
105513
105513
|
else
|
|
@@ -106518,7 +106518,7 @@ function Lit(e, t, n, r, i) {
|
|
|
106518
106518
|
return;
|
|
106519
106519
|
}
|
|
106520
106520
|
if (!y)
|
|
106521
|
-
if (r && s instanceof
|
|
106521
|
+
if (r && s instanceof Ar && !s.empty && s.$head.sameParent(s.$anchor) && !e.composing && !(c.sel && c.sel.anchor != c.sel.head))
|
|
106522
106522
|
y = { start: s.from, endA: s.to, endB: s.to };
|
|
106523
106523
|
else {
|
|
106524
106524
|
if (c.sel) {
|
|
@@ -106534,7 +106534,7 @@ function Lit(e, t, n, r, i) {
|
|
|
106534
106534
|
let P = y.endB - y.start;
|
|
106535
106535
|
c.sel = { anchor: c.sel.anchor + P, head: c.sel.anchor + P };
|
|
106536
106536
|
}
|
|
106537
|
-
e.input.domChangeCount++, e.state.selection.from < e.state.selection.to && y.start == y.endB && e.state.selection instanceof
|
|
106537
|
+
e.input.domChangeCount++, e.state.selection.from < e.state.selection.to && y.start == y.endB && e.state.selection instanceof Ar && (y.start > e.state.selection.from && y.start <= e.state.selection.from + 2 && e.state.selection.from >= c.from ? y.start = e.state.selection.from : y.endA < e.state.selection.to && y.endA >= e.state.selection.to - 2 && e.state.selection.to <= c.to && (y.endB += e.state.selection.to - y.endA, y.endA = e.state.selection.to)), Ys && Bh <= 11 && y.endB == y.start + 1 && y.endA == y.start && y.start > c.from && c.doc.textBetween(y.start - c.from - 1, y.start - c.from + 1) == " " && (y.start--, y.endA--, y.endB--);
|
|
106538
106538
|
let b = c.doc.resolveNoCache(y.start - c.from), C = c.doc.resolveNoCache(y.endB - c.from), x = d.resolve(y.start), E = b.sameParent(C) && b.parent.inlineContent && x.end() >= y.endA, $;
|
|
106539
106539
|
if ((dv && e.input.lastIOSEnter > Date.now() - 225 && (!E || i.some((P) => P.nodeName == "DIV" || P.nodeName == "P")) || !E && b.pos < c.doc.content.size && !b.sameParent(C) && ($ = kr.findFrom(c.doc.resolve(b.pos + 1), 1, !0)) && $.head == C.pos) && e.someProp("handleKeyDown", (P) => P(e, W2(13, "Enter")))) {
|
|
106540
106540
|
e.input.lastIOSEnter = 0;
|
|
@@ -107331,7 +107331,7 @@ const aot = (e, t) => {
|
|
|
107331
107331
|
return !1;
|
|
107332
107332
|
if (t) {
|
|
107333
107333
|
let a = (!r.parentOffset && i.index() < i.parent.childCount ? r : i).pos, l = e.tr.insert(a, o.createAndFill());
|
|
107334
|
-
l.setSelection(
|
|
107334
|
+
l.setSelection(Ar.create(l.doc, a + 1)), t(l.scrollIntoView());
|
|
107335
107335
|
}
|
|
107336
107336
|
return !0;
|
|
107337
107337
|
}, sot = (e, t) => {
|
|
@@ -107400,7 +107400,7 @@ function The(e) {
|
|
|
107400
107400
|
return !1;
|
|
107401
107401
|
o--;
|
|
107402
107402
|
}
|
|
107403
|
-
return i.node(o).isTextblock ? (n && n(t.tr.setSelection(
|
|
107403
|
+
return i.node(o).isTextblock ? (n && n(t.tr.setSelection(Ar.create(t.doc, e < 0 ? i.start(o) : i.end(o)))), !0) : !1;
|
|
107404
107404
|
};
|
|
107405
107405
|
}
|
|
107406
107406
|
const dot = The(-1), fot = The(1);
|
|
@@ -108315,7 +108315,7 @@ const Lot = Ga.create({
|
|
|
108315
108315
|
const { state: i } = n, o = i.doc.slice(e.from, e.to);
|
|
108316
108316
|
r.deleteRange(e.from, e.to);
|
|
108317
108317
|
const a = r.mapping.map(t);
|
|
108318
|
-
return r.insert(a, o.content), r.setSelection(new
|
|
108318
|
+
return r.insert(a, o.content), r.setSelection(new Ar(r.doc.resolve(a - 1))), !0;
|
|
108319
108319
|
}, Bot = () => ({ tr: e, dispatch: t }) => {
|
|
108320
108320
|
const { selection: n } = e, r = n.$anchor.node();
|
|
108321
108321
|
if (r.content.size > 0)
|
|
@@ -108387,7 +108387,7 @@ const Yot = (e, t = {}) => ({ tr: n, state: r, dispatch: i }) => {
|
|
|
108387
108387
|
if (i) {
|
|
108388
108388
|
const h = pj(s, o, t);
|
|
108389
108389
|
if (h && h.from <= c && h.to >= d) {
|
|
108390
|
-
const m =
|
|
108390
|
+
const m = Ar.create(a, h.from, h.to);
|
|
108391
108391
|
n.setSelection(m);
|
|
108392
108392
|
}
|
|
108393
108393
|
}
|
|
@@ -108400,7 +108400,7 @@ const Yot = (e, t = {}) => ({ tr: n, state: r, dispatch: i }) => {
|
|
|
108400
108400
|
return !1;
|
|
108401
108401
|
};
|
|
108402
108402
|
function hj(e) {
|
|
108403
|
-
return e instanceof
|
|
108403
|
+
return e instanceof Ar;
|
|
108404
108404
|
}
|
|
108405
108405
|
function Q1(e = 0, t = 0, n = 0) {
|
|
108406
108406
|
return Math.min(Math.max(e, t), n);
|
|
@@ -108414,7 +108414,7 @@ function khe(e, t = null) {
|
|
|
108414
108414
|
if (t === "end")
|
|
108415
108415
|
return r;
|
|
108416
108416
|
const i = n.from, o = r.to;
|
|
108417
|
-
return t === "all" ?
|
|
108417
|
+
return t === "all" ? Ar.create(e, Q1(0, i, o), Q1(e.content.size, i, o)) : Ar.create(e, Q1(t, i, o), Q1(t, i, o));
|
|
108418
108418
|
}
|
|
108419
108419
|
function yN() {
|
|
108420
108420
|
return [
|
|
@@ -108862,7 +108862,7 @@ const zat = (e, t = {}) => ({ tr: n, state: r, dispatch: i }) => {
|
|
|
108862
108862
|
return !0;
|
|
108863
108863
|
}, Bat = (e) => ({ tr: t, dispatch: n }) => {
|
|
108864
108864
|
if (n) {
|
|
108865
|
-
const { doc: r } = t, { from: i, to: o } = typeof e == "number" ? { from: e, to: e } : e, a =
|
|
108865
|
+
const { doc: r } = t, { from: i, to: o } = typeof e == "number" ? { from: e, to: e } : e, a = Ar.atStart(r).from, l = Ar.atEnd(r).to, s = Q1(i, a, l), c = Q1(o, a, l), d = Ar.create(r, s, c);
|
|
108866
108866
|
t.setSelection(d);
|
|
108867
108867
|
}
|
|
108868
108868
|
return !0;
|
|
@@ -108885,7 +108885,7 @@ const Wat = ({ keepMarks: e = !0 } = {}) => ({ tr: t, state: n, dispatch: r, edi
|
|
|
108885
108885
|
return !1;
|
|
108886
108886
|
if (r) {
|
|
108887
108887
|
const h = s.parentOffset === s.parent.content.size;
|
|
108888
|
-
o instanceof
|
|
108888
|
+
o instanceof Ar && t.deleteSelection();
|
|
108889
108889
|
const m = l.depth === 0 ? void 0 : $at(l.node(-1).contentMatchAt(l.indexAfter(-1)));
|
|
108890
108890
|
let v = h && m ? [
|
|
108891
108891
|
{
|
|
@@ -108931,7 +108931,7 @@ const Wat = ({ keepMarks: e = !0 } = {}) => ({ tr: t, state: n, dispatch: r, edi
|
|
|
108931
108931
|
if (N > -1)
|
|
108932
108932
|
return !1;
|
|
108933
108933
|
M.isTextblock && M.content.size === 0 && (N = I + 1);
|
|
108934
|
-
}), N > -1 && t.setSelection(
|
|
108934
|
+
}), N > -1 && t.setSelection(Ar.near(t.doc.resolve(N))), t.scrollIntoView();
|
|
108935
108935
|
}
|
|
108936
108936
|
return !0;
|
|
108937
108937
|
}
|
|
@@ -113076,7 +113076,7 @@ var ro = class U1 extends kr {
|
|
|
113076
113076
|
const o = this.$anchorCell.node(-1) != r.node(-1);
|
|
113077
113077
|
return o && this.isRowSelection() ? U1.rowSelection(r, i) : o && this.isColSelection() ? U1.colSelection(r, i) : new U1(r, i);
|
|
113078
113078
|
}
|
|
113079
|
-
return
|
|
113079
|
+
return Ar.between(r, i);
|
|
113080
113080
|
}
|
|
113081
113081
|
// Returns a rectangular slice of table rows containing the selected
|
|
113082
113082
|
// cells.
|
|
@@ -113280,7 +113280,7 @@ function Xct(e, t, n) {
|
|
|
113280
113280
|
o = ro.create(i, s + 1, c);
|
|
113281
113281
|
}
|
|
113282
113282
|
} else
|
|
113283
|
-
r instanceof
|
|
113283
|
+
r instanceof Ar && Gct(r) ? o = Ar.create(i, r.from) : r instanceof Ar && Yct(r) && (o = Ar.create(i, r.$from.start(), r.$from.end()));
|
|
113284
113284
|
return o && (t || (t = e.tr)).setSelection(o), t;
|
|
113285
113285
|
}
|
|
113286
113286
|
var Zct = new Zl("fix-tables");
|
|
@@ -113792,7 +113792,7 @@ function qQ(e) {
|
|
|
113792
113792
|
if (n) {
|
|
113793
113793
|
const i = t.doc.resolve(r);
|
|
113794
113794
|
n(
|
|
113795
|
-
t.tr.setSelection(
|
|
113795
|
+
t.tr.setSelection(Ar.between(i, Wct(i))).scrollIntoView()
|
|
113796
113796
|
);
|
|
113797
113797
|
}
|
|
113798
113798
|
return !0;
|
|
@@ -114170,7 +114170,7 @@ function wut(e, t) {
|
|
|
114170
114170
|
e.root.addEventListener("mouseup", a), e.root.addEventListener("dragstart", a), e.root.addEventListener("mousemove", l);
|
|
114171
114171
|
}
|
|
114172
114172
|
function vme(e, t, n) {
|
|
114173
|
-
if (!(e.state.selection instanceof
|
|
114173
|
+
if (!(e.state.selection instanceof Ar))
|
|
114174
114174
|
return null;
|
|
114175
114175
|
const { $head: r } = e.state.selection;
|
|
114176
114176
|
for (let i = r.depth - 1; i >= 0; i--) {
|
|
@@ -114648,7 +114648,7 @@ const Ow = ({ editor: e }) => {
|
|
|
114648
114648
|
const a = zut(o.schema, e, t, n);
|
|
114649
114649
|
if (i) {
|
|
114650
114650
|
const l = r.selection.from + 1;
|
|
114651
|
-
r.replaceSelectionWith(a).scrollIntoView().setSelection(
|
|
114651
|
+
r.replaceSelectionWith(a).scrollIntoView().setSelection(Ar.near(r.doc.resolve(l)));
|
|
114652
114652
|
}
|
|
114653
114653
|
return !0;
|
|
114654
114654
|
},
|
|
@@ -118819,7 +118819,7 @@ function Nft(e) {
|
|
|
118819
118819
|
function _ft(e) {
|
|
118820
118820
|
return typeof e == "string" ? (Number(e.split("pt")[0]) * (96 / 72)).toFixed() + "px" : Number((e * (96 / 72)).toFixed());
|
|
118821
118821
|
}
|
|
118822
|
-
const
|
|
118822
|
+
const SNt = zi(Sft), Tft = (e) => {
|
|
118823
118823
|
const { className: t } = e;
|
|
118824
118824
|
let n = "beca-popover";
|
|
118825
118825
|
return t && (n += " " + t), n;
|
|
@@ -118847,7 +118847,7 @@ const kft = (e) => {
|
|
|
118847
118847
|
const { className: t } = e;
|
|
118848
118848
|
let n = "beca-switch";
|
|
118849
118849
|
return t && (n += " " + t), n;
|
|
118850
|
-
},
|
|
118850
|
+
}, wNt = (e) => /* @__PURE__ */ D(aH, { ...e, className: kft(e) }), Lft = (e) => {
|
|
118851
118851
|
const { className: t } = e;
|
|
118852
118852
|
let n = "";
|
|
118853
118853
|
return t && (n += " " + t), n;
|
|
@@ -119140,7 +119140,7 @@ const a1t = (e) => {
|
|
|
119140
119140
|
const { className: t } = e;
|
|
119141
119141
|
let n = "beca-statistic";
|
|
119142
119142
|
return t && (n += " " + t), n;
|
|
119143
|
-
},
|
|
119143
|
+
}, xNt = (e) => /* @__PURE__ */ D(AO, { ...e, className: l1t(e) });
|
|
119144
119144
|
var s1t = { exports: {} };
|
|
119145
119145
|
(function(e, t) {
|
|
119146
119146
|
(function(n, r) {
|
|
@@ -119364,7 +119364,7 @@ const zme = {
|
|
|
119364
119364
|
const { className: t } = e;
|
|
119365
119365
|
let n = "beca-tree";
|
|
119366
119366
|
return t && (n += " " + t), n;
|
|
119367
|
-
},
|
|
119367
|
+
}, ENt = (e) => {
|
|
119368
119368
|
const { switcherIcon: t } = e;
|
|
119369
119369
|
return /* @__PURE__ */ D(
|
|
119370
119370
|
BO,
|
|
@@ -119384,7 +119384,7 @@ const v1t = (e) => {
|
|
|
119384
119384
|
const { className: t } = e;
|
|
119385
119385
|
let n = "beca-slider";
|
|
119386
119386
|
return t && (n += " " + t), n;
|
|
119387
|
-
},
|
|
119387
|
+
}, $Nt = (e) => /* @__PURE__ */ D(z4, { ...e, className: v1t(e) }), y1t = (e) => {
|
|
119388
119388
|
const { className: t } = e;
|
|
119389
119389
|
let n = "beca-list";
|
|
119390
119390
|
return t && (n += " " + t), n;
|
|
@@ -119414,7 +119414,7 @@ const O1t = (e) => {
|
|
|
119414
119414
|
default:
|
|
119415
119415
|
return /* @__PURE__ */ D(yet, {});
|
|
119416
119416
|
}
|
|
119417
|
-
},
|
|
119417
|
+
}, ONt = (e) => {
|
|
119418
119418
|
const { errorText: t, text: n, buttonProps: r, errorCode: i } = e, o = () => {
|
|
119419
119419
|
r != null && r.url ? window.location.replace(r.url) : r != null && r.onClick && r.onClick();
|
|
119420
119420
|
};
|
|
@@ -119447,7 +119447,7 @@ const R1t = (e) => {
|
|
|
119447
119447
|
const { className: t } = e;
|
|
119448
119448
|
let n = "beca-segmented";
|
|
119449
119449
|
return t && (n += " " + t), n;
|
|
119450
|
-
},
|
|
119450
|
+
}, NNt = (e) => /* @__PURE__ */ D(zF, { ...e, className: R1t(e) }), M1t = (e) => {
|
|
119451
119451
|
const { className: t } = e;
|
|
119452
119452
|
let n = "beca-player beca-audio-player";
|
|
119453
119453
|
return t && (n += " " + t), n;
|
|
@@ -119731,7 +119731,7 @@ const R1t = (e) => {
|
|
|
119731
119731
|
] })
|
|
119732
119732
|
] })
|
|
119733
119733
|
] });
|
|
119734
|
-
},
|
|
119734
|
+
}, _Nt = zi(I1t), P1t = (e, t) => {
|
|
119735
119735
|
const {
|
|
119736
119736
|
url: n,
|
|
119737
119737
|
loop: r,
|
|
@@ -120016,13 +120016,13 @@ const R1t = (e) => {
|
|
|
120016
120016
|
] })
|
|
120017
120017
|
] }) })
|
|
120018
120018
|
] });
|
|
120019
|
-
},
|
|
120019
|
+
}, TNt = zi(P1t);
|
|
120020
120020
|
Fue.config({ closeIcon: /* @__PURE__ */ D(XO, {}) });
|
|
120021
120021
|
const k1t = (e) => {
|
|
120022
120022
|
const { className: t } = e;
|
|
120023
120023
|
let n = "beca-rate";
|
|
120024
120024
|
return t && (n += " " + t), n;
|
|
120025
|
-
},
|
|
120025
|
+
}, RNt = (e) => /* @__PURE__ */ D(wde, { ...e, className: k1t(e) }), $N = 0, pm = 1, r5 = 2, Fme = 4;
|
|
120026
120026
|
function Hme(e, t) {
|
|
120027
120027
|
return (n) => e(t(n));
|
|
120028
120028
|
}
|
|
@@ -122827,7 +122827,7 @@ const Zpt = /* @__PURE__ */ Vi(() => {
|
|
|
122827
122827
|
const n = To("useWindowScroll"), r = To("customScrollParent"), i = r || n ? aht : oht, o = r || n ? rht : nht;
|
|
122828
122828
|
return /* @__PURE__ */ q.createElement(i, { ...t }, /* @__PURE__ */ q.createElement(o, null, /* @__PURE__ */ q.createElement(eht, null), /* @__PURE__ */ q.createElement(Qpt, null), /* @__PURE__ */ q.createElement(tht, null)));
|
|
122829
122829
|
}), {
|
|
122830
|
-
Component:
|
|
122830
|
+
Component: MNt,
|
|
122831
122831
|
usePublisher: Od,
|
|
122832
122832
|
useEmitterValue: To,
|
|
122833
122833
|
useEmitter: m2e
|
|
@@ -122940,7 +122940,7 @@ const lht = (e) => {
|
|
|
122940
122940
|
)
|
|
122941
122941
|
}
|
|
122942
122942
|
) });
|
|
122943
|
-
},
|
|
122943
|
+
}, INt = zi(sht);
|
|
122944
122944
|
function cht(e, t) {
|
|
122945
122945
|
var n = {};
|
|
122946
122946
|
for (var r in e)
|
|
@@ -123878,7 +123878,7 @@ const Bht = uht(bie, "4.23.0") === -1 ? "visible" : "open", n4 = (e, t, n) => t
|
|
|
123878
123878
|
return x !== void 0 && (Z.width = x), E !== void 0 && (Z.okText = E), $ !== void 0 && (Z.cancelText = $), Z;
|
|
123879
123879
|
}, [$, E, x]), X = `${_f}-modal${b ? ` ${b}` : ""}`, ne = (typeof window > "u" ? "" : window.navigator.language) === "zh-CN", oe = C || (ne ? "编辑图片" : "Edit image"), ee = s || (ne ? "重置" : "Reset");
|
|
123880
123880
|
return rn(Bf, { children: [J, W && D(La, Object.assign({}, N, G, { [Bht]: !0 }, { title: oe, onCancel: U.current, onOk: Y.current, wrapClassName: X, maskClosable: !1, destroyOnClose: !0 }, { children: D(Fht, { ref: A, cropperRef: t, zoomSlider: P, rotationSlider: L, aspectSlider: a, showReset: l, resetBtnText: ee, modalImage: W, aspect: c, minZoom: d, maxZoom: h, cropShape: z, showGrid: F, cropperProps: y }) }))] });
|
|
123881
|
-
}),
|
|
123881
|
+
}), PNt = (e) => /* @__PURE__ */ D(Vht, { ...e });
|
|
123882
123882
|
var vu = {}, x7 = {}, Wht = typeof Oc == "object" && Oc && Oc.Object === Object && Oc, x2e = Wht, Uht = x2e, Kht = typeof self == "object" && self && self.Object === Object && self, qht = Uht || Kht || Function("return this")(), r1 = qht, Ght = r1, Yht = Ght.Symbol, E7 = Yht, tte = E7, E2e = Object.prototype, Xht = E2e.hasOwnProperty, Zht = E2e.toString, H9 = tte ? tte.toStringTag : void 0;
|
|
123883
123883
|
function Jht(e) {
|
|
123884
123884
|
var t = Xht.call(e, H9), n = e[H9];
|
|
@@ -127577,7 +127577,7 @@ Ege.defaultProps = {
|
|
|
127577
127577
|
direction: "horizontal",
|
|
127578
127578
|
pointer: Ywt
|
|
127579
127579
|
};
|
|
127580
|
-
const
|
|
127580
|
+
const kNt = Vc(Ege);
|
|
127581
127581
|
function $ge(e, t) {
|
|
127582
127582
|
for (var n = -1, r = e == null ? 0 : e.length, i = Array(r); ++n < r; )
|
|
127583
127583
|
i[n] = t(e[n], n, e);
|
|
@@ -128085,7 +128085,7 @@ $B.defaultProps = {
|
|
|
128085
128085
|
triangle: "top",
|
|
128086
128086
|
styles: {}
|
|
128087
128087
|
};
|
|
128088
|
-
const
|
|
128088
|
+
const LNt = Vc($B);
|
|
128089
128089
|
var c4 = { 50: "#ffebee", 100: "#ffcdd2", 200: "#ef9a9a", 300: "#e57373", 400: "#ef5350", 500: "#f44336", 600: "#e53935", 700: "#d32f2f", 800: "#c62828", 900: "#b71c1c", a100: "#ff8a80", a200: "#ff5252", a400: "#ff1744", a700: "#d50000" }, u4 = { 50: "#fce4ec", 100: "#f8bbd0", 200: "#f48fb1", 300: "#f06292", 400: "#ec407a", 500: "#e91e63", 600: "#d81b60", 700: "#c2185b", 800: "#ad1457", 900: "#880e4f", a100: "#ff80ab", a200: "#ff4081", a400: "#f50057", a700: "#c51162" }, d4 = { 50: "#f3e5f5", 100: "#e1bee7", 200: "#ce93d8", 300: "#ba68c8", 400: "#ab47bc", 500: "#9c27b0", 600: "#8e24aa", 700: "#7b1fa2", 800: "#6a1b9a", 900: "#4a148c", a100: "#ea80fc", a200: "#e040fb", a400: "#d500f9", a700: "#aa00ff" }, f4 = { 50: "#ede7f6", 100: "#d1c4e9", 200: "#b39ddb", 300: "#9575cd", 400: "#7e57c2", 500: "#673ab7", 600: "#5e35b1", 700: "#512da8", 800: "#4527a0", 900: "#311b92", a100: "#b388ff", a200: "#7c4dff", a400: "#651fff", a700: "#6200ea" }, p4 = { 50: "#e8eaf6", 100: "#c5cae9", 200: "#9fa8da", 300: "#7986cb", 400: "#5c6bc0", 500: "#3f51b5", 600: "#3949ab", 700: "#303f9f", 800: "#283593", 900: "#1a237e", a100: "#8c9eff", a200: "#536dfe", a400: "#3d5afe", a700: "#304ffe" }, h4 = { 50: "#e3f2fd", 100: "#bbdefb", 200: "#90caf9", 300: "#64b5f6", 400: "#42a5f5", 500: "#2196f3", 600: "#1e88e5", 700: "#1976d2", 800: "#1565c0", 900: "#0d47a1", a100: "#82b1ff", a200: "#448aff", a400: "#2979ff", a700: "#2962ff" }, m4 = { 50: "#e1f5fe", 100: "#b3e5fc", 200: "#81d4fa", 300: "#4fc3f7", 400: "#29b6f6", 500: "#03a9f4", 600: "#039be5", 700: "#0288d1", 800: "#0277bd", 900: "#01579b", a100: "#80d8ff", a200: "#40c4ff", a400: "#00b0ff", a700: "#0091ea" }, g4 = { 50: "#e0f7fa", 100: "#b2ebf2", 200: "#80deea", 300: "#4dd0e1", 400: "#26c6da", 500: "#00bcd4", 600: "#00acc1", 700: "#0097a7", 800: "#00838f", 900: "#006064", a100: "#84ffff", a200: "#18ffff", a400: "#00e5ff", a700: "#00b8d4" }, v4 = { 50: "#e0f2f1", 100: "#b2dfdb", 200: "#80cbc4", 300: "#4db6ac", 400: "#26a69a", 500: "#009688", 600: "#00897b", 700: "#00796b", 800: "#00695c", 900: "#004d40", a100: "#a7ffeb", a200: "#64ffda", a400: "#1de9b6", a700: "#00bfa5" }, a6 = { 50: "#e8f5e9", 100: "#c8e6c9", 200: "#a5d6a7", 300: "#81c784", 400: "#66bb6a", 500: "#4caf50", 600: "#43a047", 700: "#388e3c", 800: "#2e7d32", 900: "#1b5e20", a100: "#b9f6ca", a200: "#69f0ae", a400: "#00e676", a700: "#00c853" }, y4 = { 50: "#f1f8e9", 100: "#dcedc8", 200: "#c5e1a5", 300: "#aed581", 400: "#9ccc65", 500: "#8bc34a", 600: "#7cb342", 700: "#689f38", 800: "#558b2f", 900: "#33691e", a100: "#ccff90", a200: "#b2ff59", a400: "#76ff03", a700: "#64dd17" }, C4 = { 50: "#f9fbe7", 100: "#f0f4c3", 200: "#e6ee9c", 300: "#dce775", 400: "#d4e157", 500: "#cddc39", 600: "#c0ca33", 700: "#afb42b", 800: "#9e9d24", 900: "#827717", a100: "#f4ff81", a200: "#eeff41", a400: "#c6ff00", a700: "#aeea00" }, b4 = { 50: "#fffde7", 100: "#fff9c4", 200: "#fff59d", 300: "#fff176", 400: "#ffee58", 500: "#ffeb3b", 600: "#fdd835", 700: "#fbc02d", 800: "#f9a825", 900: "#f57f17", a100: "#ffff8d", a200: "#ffff00", a400: "#ffea00", a700: "#ffd600" }, S4 = { 50: "#fff8e1", 100: "#ffecb3", 200: "#ffe082", 300: "#ffd54f", 400: "#ffca28", 500: "#ffc107", 600: "#ffb300", 700: "#ffa000", 800: "#ff8f00", 900: "#ff6f00", a100: "#ffe57f", a200: "#ffd740", a400: "#ffc400", a700: "#ffab00" }, w4 = { 50: "#fff3e0", 100: "#ffe0b2", 200: "#ffcc80", 300: "#ffb74d", 400: "#ffa726", 500: "#ff9800", 600: "#fb8c00", 700: "#f57c00", 800: "#ef6c00", 900: "#e65100", a100: "#ffd180", a200: "#ffab40", a400: "#ff9100", a700: "#ff6d00" }, x4 = { 50: "#fbe9e7", 100: "#ffccbc", 200: "#ffab91", 300: "#ff8a65", 400: "#ff7043", 500: "#ff5722", 600: "#f4511e", 700: "#e64a19", 800: "#d84315", 900: "#bf360c", a100: "#ff9e80", a200: "#ff6e40", a400: "#ff3d00", a700: "#dd2c00" }, E4 = { 50: "#efebe9", 100: "#d7ccc8", 200: "#bcaaa4", 300: "#a1887f", 400: "#8d6e63", 500: "#795548", 600: "#6d4c41", 700: "#5d4037", 800: "#4e342e", 900: "#3e2723" }, $4 = { 50: "#eceff1", 100: "#cfd8dc", 200: "#b0bec5", 300: "#90a4ae", 400: "#78909c", 500: "#607d8b", 600: "#546e7a", 700: "#455a64", 800: "#37474f", 900: "#263238" }, Ige = function(t) {
|
|
128090
128090
|
var n = t.color, r = t.onClick, i = t.onSwatchHover, o = t.hover, a = t.active, l = t.circleSize, s = t.circleSpacing, c = Hr({
|
|
128091
128091
|
default: {
|
|
@@ -128175,7 +128175,7 @@ OB.defaultProps = {
|
|
|
128175
128175
|
colors: [c4[500], u4[500], d4[500], f4[500], p4[500], h4[500], m4[500], g4[500], v4[500], a6[500], y4[500], C4[500], b4[500], S4[500], w4[500], x4[500], E4[500], $4[500]],
|
|
128176
128176
|
styles: {}
|
|
128177
128177
|
};
|
|
128178
|
-
const
|
|
128178
|
+
const DNt = Vc(OB);
|
|
128179
128179
|
function Nne(e) {
|
|
128180
128180
|
return e === void 0;
|
|
128181
128181
|
}
|
|
@@ -128669,7 +128669,7 @@ NB.defaultProps = {
|
|
|
128669
128669
|
disableAlpha: !1,
|
|
128670
128670
|
styles: {}
|
|
128671
128671
|
};
|
|
128672
|
-
const
|
|
128672
|
+
const ANt = Vc(NB);
|
|
128673
128673
|
var xEt = function(t) {
|
|
128674
128674
|
var n = t.color, r = t.onClick, i = r === void 0 ? function() {
|
|
128675
128675
|
} : r, o = t.onSwatchHover, a = t.active, l = Hr({
|
|
@@ -128876,7 +128876,7 @@ _B.defaultProps = {
|
|
|
128876
128876
|
colors: ["#4D4D4D", "#999999", "#FFFFFF", "#F44E3B", "#FE9200", "#FCDC00", "#DBDF00", "#A4DD00", "#68CCCA", "#73D8FF", "#AEA1FF", "#FDA1FF", "#333333", "#808080", "#cccccc", "#D33115", "#E27300", "#FCC400", "#B0BC00", "#68BC00", "#16A5A5", "#009CE0", "#7B64FF", "#FA28FF", "#000000", "#666666", "#B3B3B3", "#9F0500", "#C45100", "#FB9E00", "#808900", "#194D33", "#0C797D", "#0062B1", "#653294", "#AB149E"],
|
|
128877
128877
|
styles: {}
|
|
128878
128878
|
};
|
|
128879
|
-
const
|
|
128879
|
+
const zNt = Vc(_B);
|
|
128880
128880
|
var $Et = function(t) {
|
|
128881
128881
|
var n = t.hover, r = t.color, i = t.onClick, o = t.onSwatchHover, a = {
|
|
128882
128882
|
position: "relative",
|
|
@@ -129020,7 +129020,7 @@ TB.defaultProps = {
|
|
|
129020
129020
|
triangle: "top-left",
|
|
129021
129021
|
styles: {}
|
|
129022
129022
|
};
|
|
129023
|
-
const
|
|
129023
|
+
const FNt = Vc(TB);
|
|
129024
129024
|
var NEt = function(t) {
|
|
129025
129025
|
var n = t.direction, r = Hr({
|
|
129026
129026
|
default: {
|
|
@@ -129083,7 +129083,7 @@ RB.defaultProps = {
|
|
|
129083
129083
|
pointer: NEt,
|
|
129084
129084
|
styles: {}
|
|
129085
129085
|
};
|
|
129086
|
-
const
|
|
129086
|
+
const HNt = Vc(RB);
|
|
129087
129087
|
var TEt = function(t) {
|
|
129088
129088
|
var n = t.onChange, r = t.hex, i = t.rgb, o = t.styles, a = o === void 0 ? {} : o, l = t.className, s = l === void 0 ? "" : l, c = Hr(Bc({
|
|
129089
129089
|
default: {
|
|
@@ -129210,7 +129210,7 @@ var TEt = function(t) {
|
|
|
129210
129210
|
)
|
|
129211
129211
|
);
|
|
129212
129212
|
};
|
|
129213
|
-
const
|
|
129213
|
+
const jNt = Vc(TEt);
|
|
129214
129214
|
var REt = function(t) {
|
|
129215
129215
|
var n = t.onChange, r = t.rgb, i = t.hsv, o = t.hex, a = Hr({
|
|
129216
129216
|
default: {
|
|
@@ -129674,7 +129674,7 @@ MB.defaultProps = {
|
|
|
129674
129674
|
header: "Color Picker",
|
|
129675
129675
|
styles: {}
|
|
129676
129676
|
};
|
|
129677
|
-
const
|
|
129677
|
+
const BNt = Vc(MB);
|
|
129678
129678
|
var zEt = function(t) {
|
|
129679
129679
|
var n = t.onChange, r = t.rgb, i = t.hsl, o = t.hex, a = t.disableAlpha, l = Hr({
|
|
129680
129680
|
default: {
|
|
@@ -130016,7 +130016,7 @@ IB.defaultProps = {
|
|
|
130016
130016
|
styles: {},
|
|
130017
130017
|
presetColors: ["#D0021B", "#F5A623", "#F8E71C", "#8B572A", "#7ED321", "#417505", "#BD10E0", "#9013FE", "#4A90E2", "#50E3C2", "#B8E986", "#000000", "#4A4A4A", "#9B9B9B", "#FFFFFF"]
|
|
130018
130018
|
};
|
|
130019
|
-
const
|
|
130019
|
+
const VNt = Vc(IB);
|
|
130020
130020
|
var V9 = function(t) {
|
|
130021
130021
|
var n = t.hsl, r = t.offset, i = t.onClick, o = i === void 0 ? function() {
|
|
130022
130022
|
} : i, a = t.active, l = t.first, s = t.last, c = Hr({
|
|
@@ -130179,7 +130179,7 @@ PB.defaultProps = {
|
|
|
130179
130179
|
pointer: BEt,
|
|
130180
130180
|
styles: {}
|
|
130181
130181
|
};
|
|
130182
|
-
const
|
|
130182
|
+
const WNt = Vc(PB);
|
|
130183
130183
|
var Dge = {};
|
|
130184
130184
|
Object.defineProperty(Dge, "__esModule", {
|
|
130185
130185
|
value: !0
|
|
@@ -130367,7 +130367,7 @@ kB.defaultProps = {
|
|
|
130367
130367
|
colors: [[c4[900], c4[700], c4[500], c4[300], c4[100]], [u4[900], u4[700], u4[500], u4[300], u4[100]], [d4[900], d4[700], d4[500], d4[300], d4[100]], [f4[900], f4[700], f4[500], f4[300], f4[100]], [p4[900], p4[700], p4[500], p4[300], p4[100]], [h4[900], h4[700], h4[500], h4[300], h4[100]], [m4[900], m4[700], m4[500], m4[300], m4[100]], [g4[900], g4[700], g4[500], g4[300], g4[100]], [v4[900], v4[700], v4[500], v4[300], v4[100]], ["#194D33", a6[700], a6[500], a6[300], a6[100]], [y4[900], y4[700], y4[500], y4[300], y4[100]], [C4[900], C4[700], C4[500], C4[300], C4[100]], [b4[900], b4[700], b4[500], b4[300], b4[100]], [S4[900], S4[700], S4[500], S4[300], S4[100]], [w4[900], w4[700], w4[500], w4[300], w4[100]], [x4[900], x4[700], x4[500], x4[300], x4[100]], [E4[900], E4[700], E4[500], E4[300], E4[100]], [$4[900], $4[700], $4[500], $4[300], $4[100]], ["#000000", "#525252", "#969696", "#D9D9D9", "#FFFFFF"]],
|
|
130368
130368
|
styles: {}
|
|
130369
130369
|
};
|
|
130370
|
-
const
|
|
130370
|
+
const UNt = Vc(kB);
|
|
130371
130371
|
var LB = function(t) {
|
|
130372
130372
|
var n = t.onChange, r = t.onSwatchHover, i = t.hex, o = t.colors, a = t.width, l = t.triangle, s = t.styles, c = s === void 0 ? {} : s, d = t.className, h = d === void 0 ? "" : d, m = Hr(Bc({
|
|
130373
130373
|
default: {
|
|
@@ -130523,11 +130523,11 @@ LB.defaultProps = {
|
|
|
130523
130523
|
triangle: "top-left",
|
|
130524
130524
|
styles: {}
|
|
130525
130525
|
};
|
|
130526
|
-
const
|
|
130526
|
+
const KNt = Vc(LB), YEt = (e) => {
|
|
130527
130527
|
const { className: t } = e;
|
|
130528
130528
|
let n = "beca-anchor";
|
|
130529
130529
|
return t && (n += " " + t), n;
|
|
130530
|
-
},
|
|
130530
|
+
}, qNt = (e) => /* @__PURE__ */ D(Zie, { ...e, className: YEt(e) }), b$ = (e) => /* @__PURE__ */ D(Qce, { ...e }), GNt = (e) => /* @__PURE__ */ D($O, { ...e }), YNt = (e) => /* @__PURE__ */ D(Sde, { ...e }), XNt = (e) => /* @__PURE__ */ D(CH, { ...e });
|
|
130531
130531
|
var vi = {}, XEt = Object.defineProperty, ZEt = (e, t, n) => t in e ? XEt(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, ti = (e, t, n) => (ZEt(e, typeof t != "symbol" ? t + "" : t, n), n), ez = { exports: {} }, W9 = {};
|
|
130532
130532
|
/**
|
|
130533
130533
|
* @license React
|
|
@@ -132927,6 +132927,20 @@ const y3e = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty(
|
|
|
132927
132927
|
stringify: h3e,
|
|
132928
132928
|
stringifyUrl: g3e
|
|
132929
132929
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
132930
|
+
class uk {
|
|
132931
|
+
constructor(t, ...n) {
|
|
132932
|
+
D2(this, "value");
|
|
132933
|
+
D2(this, "errors");
|
|
132934
|
+
this.value = t, this.errors = n[0] === void 0 || n[0] === null ? [] : n;
|
|
132935
|
+
}
|
|
132936
|
+
get success() {
|
|
132937
|
+
var t;
|
|
132938
|
+
return !this.errors || ((t = this.errors) == null ? void 0 : t.length) === 0;
|
|
132939
|
+
}
|
|
132940
|
+
get hasErrors() {
|
|
132941
|
+
return this.errors !== null && Array.isArray(this.errors) && this.errors.length > 0;
|
|
132942
|
+
}
|
|
132943
|
+
}
|
|
132930
132944
|
var C3e = { exports: {} };
|
|
132931
132945
|
(function(e, t) {
|
|
132932
132946
|
(function(n, r) {
|
|
@@ -133020,26 +133034,12 @@ const $Ot = (e) => {
|
|
|
133020
133034
|
return;
|
|
133021
133035
|
}
|
|
133022
133036
|
};
|
|
133023
|
-
class uk {
|
|
133024
|
-
constructor(t, ...n) {
|
|
133025
|
-
D2(this, "value");
|
|
133026
|
-
D2(this, "errors");
|
|
133027
|
-
this.value = t, this.errors = n[0] === void 0 || n[0] === null ? [] : n;
|
|
133028
|
-
}
|
|
133029
|
-
get success() {
|
|
133030
|
-
var t;
|
|
133031
|
-
return !this.errors || ((t = this.errors) == null ? void 0 : t.length) === 0;
|
|
133032
|
-
}
|
|
133033
|
-
get hasErrors() {
|
|
133034
|
-
return this.errors !== null && Array.isArray(this.errors) && this.errors.length > 0;
|
|
133035
|
-
}
|
|
133036
|
-
}
|
|
133037
133037
|
function OOt(...e) {
|
|
133038
133038
|
e.forEach((t) => {
|
|
133039
133039
|
Array != null && Array.isArray(t) ? t.forEach((n) => Hh.error(n)) : t.includes("Lỗi") ? Hh.error(t) : Hh.error("Đã xảy ra lỗi, vui lòng thử lại!");
|
|
133040
133040
|
});
|
|
133041
133041
|
}
|
|
133042
|
-
class
|
|
133042
|
+
class Dr {
|
|
133043
133043
|
static async download(t) {
|
|
133044
133044
|
let n;
|
|
133045
133045
|
if (n = {
|
|
@@ -133168,7 +133168,7 @@ class Ar {
|
|
|
133168
133168
|
} catch (c) {
|
|
133169
133169
|
if (c.message !== "Network Error") {
|
|
133170
133170
|
if (c.message === "Request failed with status code 400" && ((a = c == null ? void 0 : c.response) != null && a.data) && c.response.data.type === "https://tools.ietf.org/html/rfc7231#section-6.5.1")
|
|
133171
|
-
return sessionStorage.clear(),
|
|
133171
|
+
return sessionStorage.clear(), Dr.requestJson(t);
|
|
133172
133172
|
}
|
|
133173
133173
|
r = new uk(void 0, c.response.data);
|
|
133174
133174
|
}
|
|
@@ -133215,42 +133215,42 @@ function ire(e, t) {
|
|
|
133215
133215
|
}
|
|
133216
133216
|
class MOt {
|
|
133217
133217
|
static async getAll(t) {
|
|
133218
|
-
return t && t.content && t.content !== "" && (t.content = t.content.normalize("NFC")), await
|
|
133218
|
+
return t && t.content && t.content !== "" && (t.content = t.content.normalize("NFC")), await Dr.requestJson({
|
|
133219
133219
|
url: "/api/userWorkflows",
|
|
133220
133220
|
method: "GET",
|
|
133221
133221
|
data: t
|
|
133222
133222
|
});
|
|
133223
133223
|
}
|
|
133224
133224
|
static async getOwnUserWorkflowInDashboard(t) {
|
|
133225
|
-
return t && t.content && t.content !== "" && (t.content = t.content.normalize("NFC")), await
|
|
133225
|
+
return t && t.content && t.content !== "" && (t.content = t.content.normalize("NFC")), await Dr.requestJson({
|
|
133226
133226
|
url: "/api/userWorkflows/GetOwnUserWorkflowInDashboard",
|
|
133227
133227
|
method: "GET",
|
|
133228
133228
|
data: t
|
|
133229
133229
|
});
|
|
133230
133230
|
}
|
|
133231
133231
|
static async getByEndpoint(t, n) {
|
|
133232
|
-
return await
|
|
133232
|
+
return await Dr.requestJson({
|
|
133233
133233
|
url: t,
|
|
133234
133234
|
method: "GET",
|
|
133235
133235
|
data: n
|
|
133236
133236
|
});
|
|
133237
133237
|
}
|
|
133238
133238
|
static async get(t) {
|
|
133239
|
-
return await
|
|
133239
|
+
return await Dr.requestJson({
|
|
133240
133240
|
url: `/api/userWorkflows/${t}`,
|
|
133241
133241
|
method: "GET",
|
|
133242
133242
|
isNotShowError: !0
|
|
133243
133243
|
});
|
|
133244
133244
|
}
|
|
133245
133245
|
static async getRelateds(t) {
|
|
133246
|
-
return await
|
|
133246
|
+
return await Dr.requestJson({
|
|
133247
133247
|
url: `/api/userWorkflows/relatedUserWorkflows/${t}`,
|
|
133248
133248
|
method: "GET",
|
|
133249
133249
|
isNotShowError: !0
|
|
133250
133250
|
});
|
|
133251
133251
|
}
|
|
133252
133252
|
static async getStatistic(t) {
|
|
133253
|
-
return await
|
|
133253
|
+
return await Dr.requestJson(
|
|
133254
133254
|
{
|
|
133255
133255
|
url: "/api/userWorkflows/GetStatistic",
|
|
133256
133256
|
method: "GET",
|
|
@@ -133293,7 +133293,7 @@ class MOt {
|
|
|
133293
133293
|
relatedId: v,
|
|
133294
133294
|
relatedUserWorkflowStepId: y
|
|
133295
133295
|
};
|
|
133296
|
-
return await
|
|
133296
|
+
return await Dr.requestJson({
|
|
133297
133297
|
url: `/api/userWorkflows/${t}/addDynamicUserWorkflow/${n}`,
|
|
133298
133298
|
method: "POST",
|
|
133299
133299
|
data: b
|
|
@@ -133327,79 +133327,79 @@ class MOt {
|
|
|
133327
133327
|
isDraft: a,
|
|
133328
133328
|
activeEditUserWorkflow: o
|
|
133329
133329
|
};
|
|
133330
|
-
return await
|
|
133330
|
+
return await Dr.requestJson({
|
|
133331
133331
|
url: `/api/userWorkflows/${t}/updateDynamicUserWorkflow`,
|
|
133332
133332
|
method: "PUT",
|
|
133333
133333
|
data: c
|
|
133334
133334
|
});
|
|
133335
133335
|
}
|
|
133336
133336
|
static async deleteOldWf({ data: t }) {
|
|
133337
|
-
return await
|
|
133337
|
+
return await Dr.requestJson({
|
|
133338
133338
|
url: `/api/userWorkflows/deleteOldWf/${t.itemID}?listID=${t.listID}`,
|
|
133339
133339
|
method: "DELETE"
|
|
133340
133340
|
});
|
|
133341
133341
|
}
|
|
133342
133342
|
static async deleteByAdmin(t) {
|
|
133343
|
-
return await
|
|
133343
|
+
return await Dr.requestJson({
|
|
133344
133344
|
url: `/api/userWorkflows/ByAdmin/${t}`,
|
|
133345
133345
|
method: "DELETE"
|
|
133346
133346
|
});
|
|
133347
133347
|
}
|
|
133348
133348
|
static async delete(t) {
|
|
133349
|
-
return await
|
|
133349
|
+
return await Dr.requestJson({
|
|
133350
133350
|
url: `/api/userWorkflows/${t}`,
|
|
133351
133351
|
method: "DELETE"
|
|
133352
133352
|
});
|
|
133353
133353
|
}
|
|
133354
133354
|
static async enable(t) {
|
|
133355
|
-
return await
|
|
133355
|
+
return await Dr.requestJson({
|
|
133356
133356
|
url: `/api/userWorkflows/Enable/${t}`,
|
|
133357
133357
|
method: "POST"
|
|
133358
133358
|
});
|
|
133359
133359
|
}
|
|
133360
133360
|
static async disable(t) {
|
|
133361
|
-
return await
|
|
133361
|
+
return await Dr.requestJson({
|
|
133362
133362
|
url: `/api/userWorkflows/Disable/${t}`,
|
|
133363
133363
|
method: "POST"
|
|
133364
133364
|
});
|
|
133365
133365
|
}
|
|
133366
133366
|
static async getAssignedUserWorkflow(t) {
|
|
133367
|
-
return t && t.content && t.content !== "" && (t.content = t.content.normalize("NFC")), await
|
|
133367
|
+
return t && t.content && t.content !== "" && (t.content = t.content.normalize("NFC")), await Dr.requestJson({
|
|
133368
133368
|
url: "/api/userWorkflows/Assigned",
|
|
133369
133369
|
method: "GET",
|
|
133370
133370
|
data: t
|
|
133371
133371
|
});
|
|
133372
133372
|
}
|
|
133373
133373
|
static async getdUserWorkflowFollow(t) {
|
|
133374
|
-
return t && t.content && t.content !== "" && (t.content = t.content.normalize("NFC")), await
|
|
133374
|
+
return t && t.content && t.content !== "" && (t.content = t.content.normalize("NFC")), await Dr.requestJson({
|
|
133375
133375
|
url: "/api/userWorkflows/Follow",
|
|
133376
133376
|
method: "GET",
|
|
133377
133377
|
data: t
|
|
133378
133378
|
});
|
|
133379
133379
|
}
|
|
133380
133380
|
static async getUserWorkflowToday(t) {
|
|
133381
|
-
return t && t.content && t.content !== "" && (t.content = t.content.normalize("NFC")), await
|
|
133381
|
+
return t && t.content && t.content !== "" && (t.content = t.content.normalize("NFC")), await Dr.requestJson({
|
|
133382
133382
|
url: "/api/userWorkflows/Today",
|
|
133383
133383
|
method: "GET",
|
|
133384
133384
|
data: t
|
|
133385
133385
|
});
|
|
133386
133386
|
}
|
|
133387
133387
|
static async getdUserWorkflowOverdue(t) {
|
|
133388
|
-
return t && t.content && t.content !== "" && (t.content = t.content.normalize("NFC")), await
|
|
133388
|
+
return t && t.content && t.content !== "" && (t.content = t.content.normalize("NFC")), await Dr.requestJson({
|
|
133389
133389
|
url: "/api/userWorkflows/Overdue",
|
|
133390
133390
|
method: "GET",
|
|
133391
133391
|
data: t
|
|
133392
133392
|
});
|
|
133393
133393
|
}
|
|
133394
133394
|
static async getDataFromOldDatabase(t, n) {
|
|
133395
|
-
return await
|
|
133395
|
+
return await Dr.requestJson({
|
|
133396
133396
|
url: "/api/userWorkflows/GetDataFromOldDatabase",
|
|
133397
133397
|
method: "GET",
|
|
133398
133398
|
data: { itemId: t, listId: n }
|
|
133399
133399
|
});
|
|
133400
133400
|
}
|
|
133401
133401
|
static async getActions(t, n, r) {
|
|
133402
|
-
return await
|
|
133402
|
+
return await Dr.requestJson({
|
|
133403
133403
|
url: `/api/userWorkflows/${t}/GetAllowActions/${n}`,
|
|
133404
133404
|
method: "GET",
|
|
133405
133405
|
data: { lang: r }
|
|
@@ -133418,33 +133418,33 @@ class MOt {
|
|
|
133418
133418
|
return "";
|
|
133419
133419
|
}
|
|
133420
133420
|
static async getdUserWorkflowNotes(t, n) {
|
|
133421
|
-
return await
|
|
133421
|
+
return await Dr.requestJson({
|
|
133422
133422
|
url: `/api/userWorkflows/GetUserWorkflowNotes/${n}`,
|
|
133423
133423
|
method: "GET",
|
|
133424
133424
|
data: t
|
|
133425
133425
|
});
|
|
133426
133426
|
}
|
|
133427
133427
|
static async reCheckAndUpdateUserWorkflowStep(t) {
|
|
133428
|
-
await
|
|
133428
|
+
await Dr.requestJson({
|
|
133429
133429
|
url: `/api/userWorkflows/ReCheckAndUpdateUserWorkflowStep/${t}`,
|
|
133430
133430
|
method: "GET"
|
|
133431
133431
|
});
|
|
133432
133432
|
}
|
|
133433
133433
|
static async deleteMultiple(t, n) {
|
|
133434
|
-
return await
|
|
133434
|
+
return await Dr.requestJson({
|
|
133435
133435
|
url: `/api/userWorkflows/${t}/DeleteMultipleApplicationUserWorkflows`,
|
|
133436
133436
|
method: "POST",
|
|
133437
133437
|
data: n
|
|
133438
133438
|
});
|
|
133439
133439
|
}
|
|
133440
133440
|
static async reInsertTemplate(t) {
|
|
133441
|
-
return await
|
|
133441
|
+
return await Dr.requestJson({
|
|
133442
133442
|
url: `/api/userWorkflows/${t}/ReInsertTemplate`,
|
|
133443
133443
|
method: "GET"
|
|
133444
133444
|
});
|
|
133445
133445
|
}
|
|
133446
133446
|
static async getInstruction() {
|
|
133447
|
-
const t = await
|
|
133447
|
+
const t = await Dr.requestJson({
|
|
133448
133448
|
method: "GET",
|
|
133449
133449
|
url: "/api/userWorkflows/assigned?isAll=true&isGeneral=true&isNotSearchAllPage=false&page=1&pageSize=20&workflowTitle=BecaWork%20Instruction"
|
|
133450
133450
|
});
|
|
@@ -133453,7 +133453,7 @@ class MOt {
|
|
|
133453
133453
|
(r) => r.content === "ExecuteJS"
|
|
133454
133454
|
);
|
|
133455
133455
|
if (n) {
|
|
133456
|
-
const r = await
|
|
133456
|
+
const r = await Dr.requestJson({
|
|
133457
133457
|
method: "GET",
|
|
133458
133458
|
url: `/api/userWorkflows/${n.id}/getDynamicValue`
|
|
133459
133459
|
});
|
|
@@ -133470,95 +133470,95 @@ class MOt {
|
|
|
133470
133470
|
}
|
|
133471
133471
|
class IOt {
|
|
133472
133472
|
static async getInitialStatus(t) {
|
|
133473
|
-
return await
|
|
133473
|
+
return await Dr.requestJson({
|
|
133474
133474
|
url: `/api/sendWorkflows/GetInitialStatus/${t}`,
|
|
133475
133475
|
method: "GET"
|
|
133476
133476
|
});
|
|
133477
133477
|
}
|
|
133478
133478
|
static async updateStatus(t, n, r) {
|
|
133479
|
-
return await
|
|
133479
|
+
return await Dr.requestJson({
|
|
133480
133480
|
url: `/api/sendWorkflows/UpdateStatus/${t}?lang=${r}`,
|
|
133481
133481
|
method: "PUT",
|
|
133482
133482
|
data: n
|
|
133483
133483
|
});
|
|
133484
133484
|
}
|
|
133485
133485
|
static async accept(t, n, r) {
|
|
133486
|
-
return await
|
|
133486
|
+
return await Dr.requestJson({
|
|
133487
133487
|
url: `/api/sendWorkflows/Accept/${t}?lang=${r}`,
|
|
133488
133488
|
method: "POST",
|
|
133489
133489
|
data: n
|
|
133490
133490
|
});
|
|
133491
133491
|
}
|
|
133492
133492
|
static async sendAddInfo(t) {
|
|
133493
|
-
return await
|
|
133493
|
+
return await Dr.requestJson({
|
|
133494
133494
|
url: `/api/sendWorkflows/${t}/SendAddInfo`,
|
|
133495
133495
|
method: "POST"
|
|
133496
133496
|
});
|
|
133497
133497
|
}
|
|
133498
133498
|
static async reject(t, n) {
|
|
133499
|
-
return await
|
|
133499
|
+
return await Dr.requestJson({
|
|
133500
133500
|
url: `/api/sendWorkflows/${t}/Reject`,
|
|
133501
133501
|
method: "POST",
|
|
133502
133502
|
data: n
|
|
133503
133503
|
});
|
|
133504
133504
|
}
|
|
133505
133505
|
static async recall(t, n) {
|
|
133506
|
-
return await
|
|
133506
|
+
return await Dr.requestJson({
|
|
133507
133507
|
url: `/api/sendWorkflows/${t}/Recall`,
|
|
133508
133508
|
method: "POST",
|
|
133509
133509
|
data: n
|
|
133510
133510
|
});
|
|
133511
133511
|
}
|
|
133512
133512
|
static async approve(t, n) {
|
|
133513
|
-
return await
|
|
133513
|
+
return await Dr.requestJson({
|
|
133514
133514
|
url: `/api/sendWorkflows/${t}/Approve`,
|
|
133515
133515
|
method: "PUT",
|
|
133516
133516
|
data: n
|
|
133517
133517
|
});
|
|
133518
133518
|
}
|
|
133519
133519
|
static async addInfo(t, n) {
|
|
133520
|
-
return await
|
|
133520
|
+
return await Dr.requestJson({
|
|
133521
133521
|
url: `/api/sendWorkflows/${t}/AddInfo`,
|
|
133522
133522
|
method: "POST",
|
|
133523
133523
|
data: n
|
|
133524
133524
|
});
|
|
133525
133525
|
}
|
|
133526
133526
|
static async replace(t, n) {
|
|
133527
|
-
return await
|
|
133527
|
+
return await Dr.requestJson({
|
|
133528
133528
|
url: `/api/sendWorkflows/${t}/Replace`,
|
|
133529
133529
|
method: "POST",
|
|
133530
133530
|
data: n
|
|
133531
133531
|
});
|
|
133532
133532
|
}
|
|
133533
133533
|
static async return(t, n) {
|
|
133534
|
-
return await
|
|
133534
|
+
return await Dr.requestJson({
|
|
133535
133535
|
url: `/api/sendWorkflows/${t}/Return`,
|
|
133536
133536
|
method: "PUT",
|
|
133537
133537
|
data: n
|
|
133538
133538
|
});
|
|
133539
133539
|
}
|
|
133540
133540
|
static async requestIdea(t, n) {
|
|
133541
|
-
return await
|
|
133541
|
+
return await Dr.requestJson({
|
|
133542
133542
|
url: `/api/sendWorkflows/${t}/RequestIdea`,
|
|
133543
133543
|
method: "POST",
|
|
133544
133544
|
data: n
|
|
133545
133545
|
});
|
|
133546
133546
|
}
|
|
133547
133547
|
static async addIdea(t, n) {
|
|
133548
|
-
return await
|
|
133548
|
+
return await Dr.requestJson({
|
|
133549
133549
|
url: `/api/sendWorkflows/${t}/AddIdea`,
|
|
133550
133550
|
method: "POST",
|
|
133551
133551
|
data: n
|
|
133552
133552
|
});
|
|
133553
133553
|
}
|
|
133554
133554
|
static async requestShare(t) {
|
|
133555
|
-
return await
|
|
133555
|
+
return await Dr.requestJson({
|
|
133556
133556
|
url: `/api/sendWorkflows/${t}/RequestShare`,
|
|
133557
133557
|
method: "GET"
|
|
133558
133558
|
});
|
|
133559
133559
|
}
|
|
133560
133560
|
static async getDefaultUserWorkflowSteps(t, n) {
|
|
133561
|
-
return await
|
|
133561
|
+
return await Dr.requestJson({
|
|
133562
133562
|
method: "GET",
|
|
133563
133563
|
url: `/api/sendWorkflows/GetDefaultUserWorkflowSteps/${t}`,
|
|
133564
133564
|
data: { lang: n }
|
|
@@ -133566,14 +133566,541 @@ class IOt {
|
|
|
133566
133566
|
}
|
|
133567
133567
|
}
|
|
133568
133568
|
class POt {
|
|
133569
|
+
// static async search(props: SearchParamsType) {
|
|
133570
|
+
// const {
|
|
133571
|
+
// title = "",
|
|
133572
|
+
// page = 0,
|
|
133573
|
+
// pageSize = 0,
|
|
133574
|
+
// categoryId,
|
|
133575
|
+
// status,
|
|
133576
|
+
// isDetail,
|
|
133577
|
+
// workflowType,
|
|
133578
|
+
// } = props;
|
|
133579
|
+
// const result = await NetworkService.requestJson<QueryResult<WorkflowModel>>(
|
|
133580
|
+
// {
|
|
133581
|
+
// url: `/api/workflows`,
|
|
133582
|
+
// method: "GET",
|
|
133583
|
+
// data: {
|
|
133584
|
+
// title,
|
|
133585
|
+
// page,
|
|
133586
|
+
// pageSize,
|
|
133587
|
+
// categoryId,
|
|
133588
|
+
// status,
|
|
133589
|
+
// isDetail,
|
|
133590
|
+
// workflowType,
|
|
133591
|
+
// },
|
|
133592
|
+
// }
|
|
133593
|
+
// );
|
|
133594
|
+
// return result;
|
|
133595
|
+
// }
|
|
133596
|
+
static async getWorkflow(t, n = !1, r = !1) {
|
|
133597
|
+
return await Dr.requestJson({
|
|
133598
|
+
url: `/api/workflows/${t}`,
|
|
133599
|
+
method: "GET",
|
|
133600
|
+
data: {
|
|
133601
|
+
isCheckingPermission: n,
|
|
133602
|
+
isAdmin: r
|
|
133603
|
+
}
|
|
133604
|
+
});
|
|
133605
|
+
}
|
|
133606
|
+
// static async activate(id: number) {
|
|
133607
|
+
// try {
|
|
133608
|
+
// const result = await NetworkService.requestJson<WorkflowModel>({
|
|
133609
|
+
// url: `/api/workflows/activate/${id}`,
|
|
133610
|
+
// method: "PUT",
|
|
133611
|
+
// });
|
|
133612
|
+
// if (result.success) {
|
|
133613
|
+
// return result;
|
|
133614
|
+
// }
|
|
133615
|
+
// throw new Error();
|
|
133616
|
+
// } catch {
|
|
133617
|
+
// return { hasErrors: true, success: false, value: undefined, errors: [] };
|
|
133618
|
+
// }
|
|
133619
|
+
// }
|
|
133620
|
+
// static async deactivate(id: number) {
|
|
133621
|
+
// try {
|
|
133622
|
+
// const result = await NetworkService.requestJson<WorkflowModel>({
|
|
133623
|
+
// url: `/api/workflows/deactivate/${id}`,
|
|
133624
|
+
// method: "PUT",
|
|
133625
|
+
// });
|
|
133626
|
+
// if (result.success) {
|
|
133627
|
+
// return result;
|
|
133628
|
+
// }
|
|
133629
|
+
// throw new Error();
|
|
133630
|
+
// } catch {
|
|
133631
|
+
// return { hasErrors: true, success: false, value: undefined, errors: [] };
|
|
133632
|
+
// }
|
|
133633
|
+
// }
|
|
133634
|
+
// static async update(
|
|
133635
|
+
// model: WorkflowModel,
|
|
133636
|
+
// file?: File,
|
|
133637
|
+
// isDetail?: boolean | undefined
|
|
133638
|
+
// ) {
|
|
133639
|
+
// try {
|
|
133640
|
+
// if (isDetail) {
|
|
133641
|
+
// model = { ...model, isDetail };
|
|
133642
|
+
// }
|
|
133643
|
+
// if (model.startDate) {
|
|
133644
|
+
// model = { ...model, startDate: getStartOfDate(model.startDate) };
|
|
133645
|
+
// }
|
|
133646
|
+
// if (model.endDate) {
|
|
133647
|
+
// model = { ...model, endDate: getEndOfDate(model.endDate) };
|
|
133648
|
+
// }
|
|
133649
|
+
// if (model.code && model.code.length > 0) {
|
|
133650
|
+
// model = { ...model, code: model.code.normalize("NFC") };
|
|
133651
|
+
// }
|
|
133652
|
+
// model = { ...model, properties: [] };
|
|
133653
|
+
// let result = await NetworkService.requestJson<WorkflowModel>({
|
|
133654
|
+
// url: `/api/workflows/${model.id}`,
|
|
133655
|
+
// method: "PUT",
|
|
133656
|
+
// data: model,
|
|
133657
|
+
// });
|
|
133658
|
+
// if (result.success) {
|
|
133659
|
+
// if (file && result.value.id) {
|
|
133660
|
+
// result = await this.uploadImage(result.value.id, file);
|
|
133661
|
+
// }
|
|
133662
|
+
// return result;
|
|
133663
|
+
// }
|
|
133664
|
+
// throw new Error();
|
|
133665
|
+
// } catch {
|
|
133666
|
+
// return { hasErrors: true, success: false, value: undefined, errors: [] };
|
|
133667
|
+
// }
|
|
133668
|
+
// }
|
|
133669
|
+
// static async delete(id: number): Promise<Result<any>> {
|
|
133670
|
+
// const result = await NetworkService.requestJson({
|
|
133671
|
+
// url: `/api/workflows/${id}`,
|
|
133672
|
+
// method: "DELETE",
|
|
133673
|
+
// });
|
|
133674
|
+
// return result;
|
|
133675
|
+
// }
|
|
133676
|
+
// static async add(model: WorkflowModel): Promise<Result<WorkflowModel>> {
|
|
133677
|
+
// if (model.code && model.code.length > 0) {
|
|
133678
|
+
// model = { ...model, code: model.code.normalize("NFC") };
|
|
133679
|
+
// }
|
|
133680
|
+
// const result = await NetworkService.requestJson<WorkflowModel>({
|
|
133681
|
+
// url: "/api/workflows",
|
|
133682
|
+
// method: "POST",
|
|
133683
|
+
// data: model,
|
|
133684
|
+
// });
|
|
133685
|
+
// return result;
|
|
133686
|
+
// }
|
|
133687
|
+
// static async addWithFile(
|
|
133688
|
+
// model: WorkflowModel,
|
|
133689
|
+
// file: RcFile | undefined,
|
|
133690
|
+
// isDetail: boolean | undefined,
|
|
133691
|
+
// status = WorkflowStatus.Draft
|
|
133692
|
+
// ): Promise<Result<WorkflowModel>> {
|
|
133693
|
+
// model = { ...model, isDetail };
|
|
133694
|
+
// if (model.startDate) {
|
|
133695
|
+
// model = { ...model, startDate: getStartOfDate(model.startDate) };
|
|
133696
|
+
// }
|
|
133697
|
+
// if (model.endDate) {
|
|
133698
|
+
// model = { ...model, endDate: getEndOfDate(model.endDate) };
|
|
133699
|
+
// }
|
|
133700
|
+
// if (model.code && model.code.length > 0) {
|
|
133701
|
+
// model = { ...model, code: model.code.normalize("NFC") };
|
|
133702
|
+
// }
|
|
133703
|
+
// model.status = status;
|
|
133704
|
+
// const result = await this.add(model);
|
|
133705
|
+
// if (result.success) {
|
|
133706
|
+
// if (file && result.value.id) {
|
|
133707
|
+
// const uploadResult = await this.uploadImage(result.value.id, file);
|
|
133708
|
+
// return uploadResult;
|
|
133709
|
+
// }
|
|
133710
|
+
// }
|
|
133711
|
+
// return result;
|
|
133712
|
+
// }
|
|
133713
|
+
// static async updateWithFile(
|
|
133714
|
+
// model: WorkflowModel,
|
|
133715
|
+
// file?: RcFile,
|
|
133716
|
+
// isDetail?: boolean | undefined
|
|
133717
|
+
// ) {
|
|
133718
|
+
// try {
|
|
133719
|
+
// if (isDetail) {
|
|
133720
|
+
// model = { ...model, isDetail };
|
|
133721
|
+
// }
|
|
133722
|
+
// if (model.startDate) {
|
|
133723
|
+
// if (dayjs.isDayjs(model.startDate)) {
|
|
133724
|
+
// model.startDate = model.startDate.toDate();
|
|
133725
|
+
// }
|
|
133726
|
+
// model = { ...model, startDate: getStartOfDate(model.startDate) };
|
|
133727
|
+
// }
|
|
133728
|
+
// if (model.endDate) {
|
|
133729
|
+
// if (dayjs.isDayjs(model.endDate)) {
|
|
133730
|
+
// model.endDate = model.endDate.toDate();
|
|
133731
|
+
// }
|
|
133732
|
+
// model = { ...model, endDate: getEndOfDate(model.endDate) };
|
|
133733
|
+
// }
|
|
133734
|
+
// if (model.code && model.code.length > 0) {
|
|
133735
|
+
// model = { ...model, code: model.code.normalize("NFC") };
|
|
133736
|
+
// }
|
|
133737
|
+
// model = { ...model, properties: [] };
|
|
133738
|
+
// let result = await NetworkService.requestJson<WorkflowModel>({
|
|
133739
|
+
// url: `/api/workflows/${model.id}`,
|
|
133740
|
+
// method: "PUT",
|
|
133741
|
+
// data: model,
|
|
133742
|
+
// });
|
|
133743
|
+
// if (result.success) {
|
|
133744
|
+
// if (file && result.value.id) {
|
|
133745
|
+
// result = await this.uploadImage(result.value.id, file);
|
|
133746
|
+
// }
|
|
133747
|
+
// return result;
|
|
133748
|
+
// }
|
|
133749
|
+
// throw new Error();
|
|
133750
|
+
// } catch (e: any) {
|
|
133751
|
+
// return { hasErrors: true, success: false, value: undefined, errors: [] };
|
|
133752
|
+
// }
|
|
133753
|
+
// }
|
|
133754
|
+
// static async uploadImage(
|
|
133755
|
+
// id: number | string,
|
|
133756
|
+
// file: File
|
|
133757
|
+
// ): Promise<Result<WorkflowModel>> {
|
|
133758
|
+
// const data = new FormData();
|
|
133759
|
+
// data.append("file", file);
|
|
133760
|
+
// const result = await NetworkService.requestJson<WorkflowModel>({
|
|
133761
|
+
// url: `/api/workflows/${id}/uploadWorkflowAvatar`,
|
|
133762
|
+
// method: "POST",
|
|
133763
|
+
// data,
|
|
133764
|
+
// isFile: true,
|
|
133765
|
+
// });
|
|
133766
|
+
// return result;
|
|
133767
|
+
// }
|
|
133768
|
+
// static getImage(id: number, isCompress = false): string {
|
|
133769
|
+
// return `/api/Workflows/${id}/getWorkflowAvatar?isCompress=${isCompress}`;
|
|
133770
|
+
// }
|
|
133771
|
+
// static async getWorkflowSteps(
|
|
133772
|
+
// workflowId: number
|
|
133773
|
+
// ): Promise<Result<QueryResult<WorkflowStepModel>>> {
|
|
133774
|
+
// const data = { workflowId };
|
|
133775
|
+
// const result = await NetworkService.requestJson<
|
|
133776
|
+
// QueryResult<WorkflowStepModel>
|
|
133777
|
+
// >({
|
|
133778
|
+
// url: "/api/workflowSteps",
|
|
133779
|
+
// method: "GET",
|
|
133780
|
+
// data,
|
|
133781
|
+
// });
|
|
133782
|
+
// return result;
|
|
133783
|
+
// }
|
|
133784
|
+
// static async getStepFields(
|
|
133785
|
+
// workflowStepId: number
|
|
133786
|
+
// ): Promise<Result<QueryResult<StepFieldModel>>> {
|
|
133787
|
+
// const data = { stepId: workflowStepId };
|
|
133788
|
+
// const result = await NetworkService.requestJson<
|
|
133789
|
+
// QueryResult<StepFieldModel>
|
|
133790
|
+
// >({
|
|
133791
|
+
// url: "/api/stepFields",
|
|
133792
|
+
// method: "GET",
|
|
133793
|
+
// data,
|
|
133794
|
+
// });
|
|
133795
|
+
// return result;
|
|
133796
|
+
// }
|
|
133797
|
+
// static async getWorkflowStep(stepId: number) {
|
|
133798
|
+
// const result = await NetworkService.requestJson<WorkflowStepModel>({
|
|
133799
|
+
// url: "/api/workflowSteps/" + stepId,
|
|
133800
|
+
// method: "GET",
|
|
133801
|
+
// });
|
|
133802
|
+
// if (result.success) {
|
|
133803
|
+
// return result.value;
|
|
133804
|
+
// } else {
|
|
133805
|
+
// return undefined;
|
|
133806
|
+
// }
|
|
133807
|
+
// }
|
|
133808
|
+
// static async getAdminWorkflows(): Promise<
|
|
133809
|
+
// Result<QueryResult<WorkflowModel>>
|
|
133810
|
+
// > {
|
|
133811
|
+
// const result = await NetworkService.requestJson<QueryResult<WorkflowModel>>(
|
|
133812
|
+
// {
|
|
133813
|
+
// url: "/api/workflows?page=1&pageSize=100000&workflowType=1&status=1",
|
|
133814
|
+
// method: "GET",
|
|
133815
|
+
// }
|
|
133816
|
+
// );
|
|
133817
|
+
// return result;
|
|
133818
|
+
// }
|
|
133819
|
+
// static async getDynamicValues(
|
|
133820
|
+
// userWorkflowId: number
|
|
133821
|
+
// ): Promise<Result<DynamicValueModel[]>> {
|
|
133822
|
+
// const result = await NetworkService.requestJson<DynamicValueModel[]>({
|
|
133823
|
+
// url: `/api/userWorkflows/${userWorkflowId}/getDynamicValue`,
|
|
133824
|
+
// method: "GET",
|
|
133825
|
+
// });
|
|
133826
|
+
// return result;
|
|
133827
|
+
// }
|
|
133828
|
+
// static async getStepInfo(
|
|
133829
|
+
// rowsList: RowsType[],
|
|
133830
|
+
// stepId: number,
|
|
133831
|
+
// userWorkflowId?: number
|
|
133832
|
+
// ): Promise<StepInfoType> {
|
|
133833
|
+
// let result: StepInfoType = {
|
|
133834
|
+
// hasErrors: true,
|
|
133835
|
+
// success: false,
|
|
133836
|
+
// rows: [],
|
|
133837
|
+
// stepFields: [],
|
|
133838
|
+
// };
|
|
133839
|
+
// let stepFields: StepFieldModel[] = [];
|
|
133840
|
+
// if (stepId) {
|
|
133841
|
+
// const stepFieldsRes = await this.getStepFields(stepId);
|
|
133842
|
+
// const stepIdIsFirstStep = await this.getWorkflowStep(stepId);
|
|
133843
|
+
// if (stepFieldsRes.success) {
|
|
133844
|
+
// stepFields = stepFieldsRes.value.items;
|
|
133845
|
+
// const rowsTmp: RowsType[] = [];
|
|
133846
|
+
// let dynamicValues: DynamicValueModel[] = [];
|
|
133847
|
+
// if (userWorkflowId) {
|
|
133848
|
+
// const dynamicValuesRes = await this.getDynamicValues(userWorkflowId);
|
|
133849
|
+
// if (dynamicValuesRes.hasErrors) {
|
|
133850
|
+
// message.error(translate("GetDateErrorMessage"));
|
|
133851
|
+
// return {
|
|
133852
|
+
// hasErrors: true,
|
|
133853
|
+
// success: false,
|
|
133854
|
+
// rows: [],
|
|
133855
|
+
// values: [],
|
|
133856
|
+
// stepFields: [],
|
|
133857
|
+
// };
|
|
133858
|
+
// } else {
|
|
133859
|
+
// dynamicValues = dynamicValuesRes.value;
|
|
133860
|
+
// }
|
|
133861
|
+
// }
|
|
133862
|
+
// rowsList.map((row) => {
|
|
133863
|
+
// const rowTmp: ColType[] = [];
|
|
133864
|
+
// row.row.map((property: any) => {
|
|
133865
|
+
// const stepField = stepFields.find(
|
|
133866
|
+
// (f) => f.propertyId === property?.id
|
|
133867
|
+
// );
|
|
133868
|
+
// const dynamicValue = dynamicValues.find(
|
|
133869
|
+
// (dValue) => dValue.name === property?.name
|
|
133870
|
+
// );
|
|
133871
|
+
// if (dynamicValue?.value) {
|
|
133872
|
+
// property.defaultValue = dynamicValue?.value;
|
|
133873
|
+
// }
|
|
133874
|
+
// if (stepIdIsFirstStep && stepIdIsFirstStep.step === 1) {
|
|
133875
|
+
// property.isEdit = true;
|
|
133876
|
+
// } else if (stepField && stepField.isEdit === true) {
|
|
133877
|
+
// property.isEdit = stepField.isEdit;
|
|
133878
|
+
// }
|
|
133879
|
+
// if (
|
|
133880
|
+
// property?.debounce &&
|
|
133881
|
+
// (!property?.lookupItems || property?.lookupItems.length === 0) &&
|
|
133882
|
+
// dynamicValue
|
|
133883
|
+
// ) {
|
|
133884
|
+
// property.lookupItems = [
|
|
133885
|
+
// {
|
|
133886
|
+
// label: dynamicValue?.value,
|
|
133887
|
+
// value: dynamicValue?.value,
|
|
133888
|
+
// },
|
|
133889
|
+
// ];
|
|
133890
|
+
// }
|
|
133891
|
+
// if (stepField) {
|
|
133892
|
+
// if (stepField.isHide !== undefined && stepField.isHide !== null) {
|
|
133893
|
+
// property.hidden = stepField.isHide;
|
|
133894
|
+
// } else if (stepField.isHide === true) {
|
|
133895
|
+
// property.viewOnly = !stepField.isEdit && property?.viewOnly;
|
|
133896
|
+
// }
|
|
133897
|
+
// }
|
|
133898
|
+
// rowTmp.push(property);
|
|
133899
|
+
// });
|
|
133900
|
+
// if (rowTmp.length > 0) {
|
|
133901
|
+
// rowsTmp.push({ row: rowTmp });
|
|
133902
|
+
// }
|
|
133903
|
+
// });
|
|
133904
|
+
// result = {
|
|
133905
|
+
// hasErrors: false,
|
|
133906
|
+
// success: true,
|
|
133907
|
+
// rows: rowsTmp,
|
|
133908
|
+
// values: dynamicValues,
|
|
133909
|
+
// stepFields,
|
|
133910
|
+
// };
|
|
133911
|
+
// }
|
|
133912
|
+
// }
|
|
133913
|
+
// return result;
|
|
133914
|
+
// }
|
|
133915
|
+
// static async getActiveWorkflow(): Promise<Result<WorkflowDDLModel[]>> {
|
|
133916
|
+
// const result = await NetworkService.requestJson<WorkflowDDLModel[]>({
|
|
133917
|
+
// url: `/api/workflows/DDL`,
|
|
133918
|
+
// method: "GET",
|
|
133919
|
+
// data: { status: 1 },
|
|
133920
|
+
// });
|
|
133921
|
+
// return result;
|
|
133922
|
+
// }
|
|
133923
|
+
// static async getWorkflowByReportId(
|
|
133924
|
+
// reportId: string
|
|
133925
|
+
// ): Promise<Result<string>> {
|
|
133926
|
+
// const result = await NetworkService.requestJson<string>({
|
|
133927
|
+
// url: `/api/workflows/getWorkflowByReportId/${reportId}`,
|
|
133928
|
+
// method: "GET",
|
|
133929
|
+
// });
|
|
133930
|
+
// return result;
|
|
133931
|
+
// }
|
|
133932
|
+
// static async getMergedWorkflows(
|
|
133933
|
+
// title?: string,
|
|
133934
|
+
// categoryName?: string,
|
|
133935
|
+
// status?: number,
|
|
133936
|
+
// isDetail?: boolean,
|
|
133937
|
+
// isCreating?: boolean,
|
|
133938
|
+
// isReport?: boolean,
|
|
133939
|
+
// workflowTypeString?: string
|
|
133940
|
+
// ): Promise<Result<QueryResult<WorkflowModel>>> {
|
|
133941
|
+
// title = title ? title.normalize("NFC") : "";
|
|
133942
|
+
// categoryName = categoryName ? categoryName.normalize("NFC") : "";
|
|
133943
|
+
// if (isDetail === false) {
|
|
133944
|
+
// isDetail = undefined;
|
|
133945
|
+
// }
|
|
133946
|
+
// const result = await NetworkService.requestJson<QueryResult<WorkflowModel>>(
|
|
133947
|
+
// {
|
|
133948
|
+
// url: `/api/v2/mergedWorkflow`,
|
|
133949
|
+
// method: "GET",
|
|
133950
|
+
// data: {
|
|
133951
|
+
// title,
|
|
133952
|
+
// categoryName,
|
|
133953
|
+
// status,
|
|
133954
|
+
// isDetail,
|
|
133955
|
+
// isCreating,
|
|
133956
|
+
// isReport,
|
|
133957
|
+
// lang: "en",
|
|
133958
|
+
// workflowTypeString,
|
|
133959
|
+
// },
|
|
133960
|
+
// }
|
|
133961
|
+
// );
|
|
133962
|
+
// return result;
|
|
133963
|
+
// }
|
|
133964
|
+
// static async copyWorkflowFrom(data: any) {
|
|
133965
|
+
// const res = await NetworkService.requestJson<WorkflowModel>({
|
|
133966
|
+
// url: `/api/workflows/copyWorkflowFrom`,
|
|
133967
|
+
// method: "POST",
|
|
133968
|
+
// data,
|
|
133969
|
+
// });
|
|
133970
|
+
// return res;
|
|
133971
|
+
// }
|
|
133972
|
+
// // static async uploadAttachFiles(
|
|
133973
|
+
// // userWorkflowId: number,
|
|
133974
|
+
// // workflowId: number,
|
|
133975
|
+
// // workflow: WorkflowModel,
|
|
133976
|
+
// // attachDataSource: AttachDataType[],
|
|
133977
|
+
// // attachForm: FormInstance<any>,
|
|
133978
|
+
// // t: TransType
|
|
133979
|
+
// // ) {
|
|
133980
|
+
// // try {
|
|
133981
|
+
// // for (let i = 0; i < attachDataSource.length; i++) {
|
|
133982
|
+
// // const checkList = attachDataSource[i];
|
|
133983
|
+
// // const attachFormData: FileType = attachForm.getFieldValue(
|
|
133984
|
+
// // checkList.key
|
|
133985
|
+
// // );
|
|
133986
|
+
// // if (attachFormData && attachFormData.fileList?.length > 0) {
|
|
133987
|
+
// // let totalFileSize = 0;
|
|
133988
|
+
// // attachFormData.fileList.map((file: any) => {
|
|
133989
|
+
// // totalFileSize += file.size;
|
|
133990
|
+
// // if (
|
|
133991
|
+
// // totalFileSize > workflow?.maximumSizeTotal * 1048576 &&
|
|
133992
|
+
// // workflow?.maximumSizeTotal !== 0 &&
|
|
133993
|
+
// // workflow?.maximumSizeTotal !== null
|
|
133994
|
+
// // ) {
|
|
133995
|
+
// // throw new Error(
|
|
133996
|
+
// // t("Total capacity allowed is", {
|
|
133997
|
+
// // total: workflow?.maximumSizeTotal,
|
|
133998
|
+
// // unit: "MB",
|
|
133999
|
+
// // })
|
|
134000
|
+
// // );
|
|
134001
|
+
// // }
|
|
134002
|
+
// // });
|
|
134003
|
+
// // const checkListId = checkList.key?.toString().split("-")[0];
|
|
134004
|
+
// // const note = attachFormData.note;
|
|
134005
|
+
// // for (let j = 0; j < attachFormData.fileList.length; j++) {
|
|
134006
|
+
// // const fileItem = attachFormData.fileList[j];
|
|
134007
|
+
// // if (fileItem.size === 0) {
|
|
134008
|
+
// // throw new Error(t("Uploading files with 0 bytes is not allowed"));
|
|
134009
|
+
// // }
|
|
134010
|
+
// // if (fileItem.name.endsWith(".exe".trim())) {
|
|
134011
|
+
// // throw new Error(
|
|
134012
|
+
// // t("Not allowed file formats", {
|
|
134013
|
+
// // extensions: ".exe",
|
|
134014
|
+
// // })
|
|
134015
|
+
// // );
|
|
134016
|
+
// // }
|
|
134017
|
+
// // if (workflow?.allowAttachmentExtensions) {
|
|
134018
|
+
// // if (
|
|
134019
|
+
// // !checkValidFilesExtension(
|
|
134020
|
+
// // fileItem.name,
|
|
134021
|
+
// // workflow.allowAttachmentExtensions
|
|
134022
|
+
// // )
|
|
134023
|
+
// // ) {
|
|
134024
|
+
// // throw new Error(
|
|
134025
|
+
// // t("Allowed file formats", {
|
|
134026
|
+
// // extensions: workflow.allowAttachmentExtensions,
|
|
134027
|
+
// // })
|
|
134028
|
+
// // );
|
|
134029
|
+
// // }
|
|
134030
|
+
// // }
|
|
134031
|
+
// // }
|
|
134032
|
+
// // for (let j = 0; j < attachFormData.fileList.length; j++) {
|
|
134033
|
+
// // const fileItem = attachFormData.fileList[j];
|
|
134034
|
+
// // const uploadData: UploadFileModel = {
|
|
134035
|
+
// // workflowId,
|
|
134036
|
+
// // userWorkflowId,
|
|
134037
|
+
// // checkListId: Number(checkListId),
|
|
134038
|
+
// // name: fileItem.name,
|
|
134039
|
+
// // note: note ?? "",
|
|
134040
|
+
// // path: "",
|
|
134041
|
+
// // type: fileItem.type,
|
|
134042
|
+
// // };
|
|
134043
|
+
// // const uploadRes = await UserCheckListService.uploadFile(
|
|
134044
|
+
// // uploadData,
|
|
134045
|
+
// // fileItem
|
|
134046
|
+
// // );
|
|
134047
|
+
// // if (uploadRes.hasErrors) {
|
|
134048
|
+
// // throw new Error();
|
|
134049
|
+
// // }
|
|
134050
|
+
// // }
|
|
134051
|
+
// // }
|
|
134052
|
+
// // }
|
|
134053
|
+
// // } catch (err: any) {
|
|
134054
|
+
// // const errMessage = err.message ?? t("The files upload process failed");
|
|
134055
|
+
// // return {
|
|
134056
|
+
// // isSuccess: false,
|
|
134057
|
+
// // message: errMessage,
|
|
134058
|
+
// // };
|
|
134059
|
+
// // }
|
|
134060
|
+
// // return {
|
|
134061
|
+
// // isSuccess: true,
|
|
134062
|
+
// // };
|
|
134063
|
+
// // }
|
|
134064
|
+
// static async downloadSampleExcelFile(workflowId: number) {
|
|
134065
|
+
// const url = APIS.workflow.downloadSampleExcelFile(Number(workflowId));
|
|
134066
|
+
// NetworkService.download({
|
|
134067
|
+
// method: "GET",
|
|
134068
|
+
// url: url,
|
|
134069
|
+
// extension: "xlsx",
|
|
134070
|
+
// });
|
|
134071
|
+
// }
|
|
134072
|
+
// static async getCodeTemplateExample(workflowId: number) {
|
|
134073
|
+
// const res = await NetworkService.requestJson<string>({
|
|
134074
|
+
// url: `/api/workflows/${workflowId}/GetCodeTemplateExample`,
|
|
134075
|
+
// method: "GET",
|
|
134076
|
+
// });
|
|
134077
|
+
// return res;
|
|
134078
|
+
// }
|
|
134079
|
+
// static async getCodeTemplate(workflowId: number) {
|
|
134080
|
+
// const res = await NetworkService.requestJson<string>({
|
|
134081
|
+
// url: `/api/workflows/${workflowId}/GetCodeTemplate`,
|
|
134082
|
+
// method: "GET",
|
|
134083
|
+
// });
|
|
134084
|
+
// return res;
|
|
134085
|
+
// }
|
|
134086
|
+
// static async updateCodeTemplate(workflowId: number, template: string) {
|
|
134087
|
+
// const res = await NetworkService.requestJson<string>({
|
|
134088
|
+
// url: `/api/workflows/${workflowId}/UpdateCodeTemplate`,
|
|
134089
|
+
// method: "POST",
|
|
134090
|
+
// data: template,
|
|
134091
|
+
// });
|
|
134092
|
+
// return res;
|
|
134093
|
+
// }
|
|
134094
|
+
}
|
|
134095
|
+
class kOt {
|
|
133569
134096
|
static async get() {
|
|
133570
|
-
return await
|
|
134097
|
+
return await Dr.requestJson({
|
|
133571
134098
|
url: "/api/v2/workflowReport/GetDefaultAppMenuResource",
|
|
133572
134099
|
method: "GET"
|
|
133573
134100
|
});
|
|
133574
134101
|
}
|
|
133575
134102
|
static async getOverallProcessingRateReport(t) {
|
|
133576
|
-
return await
|
|
134103
|
+
return await Dr.requestJson({
|
|
133577
134104
|
url: "/api/v2/workflowReport/OverallProcessingRateReport",
|
|
133578
134105
|
method: "GET",
|
|
133579
134106
|
data: t
|
|
@@ -133590,7 +134117,7 @@ class ore {
|
|
|
133590
134117
|
return !!(n && n[1] === "fullscreen");
|
|
133591
134118
|
}
|
|
133592
134119
|
}
|
|
133593
|
-
function
|
|
134120
|
+
function LOt() {
|
|
133594
134121
|
const [e, t] = lt(0), [n, r] = lt(0), [i, o] = lt(!1), { isMobileApp: a, isFullscreenApp: l } = On(() => ({
|
|
133595
134122
|
isMobileApp: ore.isMobileApp(location.pathname),
|
|
133596
134123
|
isFullscreenApp: ore.isFullscreenApp(location.pathname)
|
|
@@ -133606,12 +134133,12 @@ function kOt() {
|
|
|
133606
134133
|
};
|
|
133607
134134
|
return { screenWidth: e, screenHeight: n, isMobile: i, isMobileApp: a, isFullscreenApp: l };
|
|
133608
134135
|
}
|
|
133609
|
-
function
|
|
134136
|
+
function DOt() {
|
|
133610
134137
|
return "Đã xảy ra lỗi, vui lòng thử lại";
|
|
133611
134138
|
}
|
|
133612
|
-
const U9 = window,
|
|
134139
|
+
const U9 = window, ZNt = (e) => {
|
|
133613
134140
|
const { t } = kH(), [n] = wu.useForm(), [r, i] = lt(), [o, a] = lt(), [l, s] = lt("");
|
|
133614
|
-
$t([]), $t(null),
|
|
134141
|
+
$t([]), $t(null), LOt();
|
|
133615
134142
|
const {
|
|
133616
134143
|
theme: c = "Light",
|
|
133617
134144
|
locale: d = "vi",
|
|
@@ -133737,7 +134264,7 @@ const U9 = window, XNt = (e) => {
|
|
|
133737
134264
|
});
|
|
133738
134265
|
}
|
|
133739
134266
|
async function Z() {
|
|
133740
|
-
const ce = await
|
|
134267
|
+
const ce = await kOt.get();
|
|
133741
134268
|
if (ce.success) {
|
|
133742
134269
|
const ae = ce.value.find((ge) => ge.appId === "Chat");
|
|
133743
134270
|
ae && (i(
|
|
@@ -133777,30 +134304,31 @@ const U9 = window, XNt = (e) => {
|
|
|
133777
134304
|
note: l ?? ""
|
|
133778
134305
|
}, ae = await IOt.recall(h, ce);
|
|
133779
134306
|
ae.success ? (Hh.success(t("Recalled successfully")), m && m()) : ae.errors && ae.errors.forEach((ge) => {
|
|
133780
|
-
ge.includes("Lỗi") ? Hh.error(ge) : Hh.error(
|
|
134307
|
+
ge.includes("Lỗi") ? Hh.error(ge) : Hh.error(DOt());
|
|
133781
134308
|
});
|
|
133782
134309
|
}
|
|
133783
134310
|
P(!1), j(!1);
|
|
133784
134311
|
};
|
|
133785
134312
|
async function de(ce) {
|
|
134313
|
+
h || await POt.getWorkflow(ce, !0);
|
|
133786
134314
|
}
|
|
133787
134315
|
return /* @__PURE__ */ D("div", { children: "ádasdsa" });
|
|
133788
|
-
},
|
|
133789
|
-
card:
|
|
133790
|
-
title:
|
|
133791
|
-
titleIcon:
|
|
133792
|
-
status:
|
|
133793
|
-
description:
|
|
133794
|
-
content:
|
|
133795
|
-
infoStatus:
|
|
133796
|
-
successStatus:
|
|
133797
|
-
warningStatus:
|
|
133798
|
-
dangerStatus:
|
|
133799
|
-
roundStatus:
|
|
133800
|
-
infoItemLabel:
|
|
133801
|
-
typeCard:
|
|
133802
|
-
typeList:
|
|
133803
|
-
},
|
|
134316
|
+
}, AOt = "_card_165my_1", zOt = "_title_165my_9", FOt = "_titleIcon_165my_14", HOt = "_status_165my_18", jOt = "_description_165my_22", BOt = "_content_165my_27", VOt = "_infoStatus_165my_31", WOt = "_successStatus_165my_36", UOt = "_warningStatus_165my_41", KOt = "_dangerStatus_165my_46", qOt = "_roundStatus_165my_51", GOt = "_infoItemLabel_165my_55", YOt = "_typeCard_165my_59", XOt = "_typeList_165my_63", na = {
|
|
134317
|
+
card: AOt,
|
|
134318
|
+
title: zOt,
|
|
134319
|
+
titleIcon: FOt,
|
|
134320
|
+
status: HOt,
|
|
134321
|
+
description: jOt,
|
|
134322
|
+
content: BOt,
|
|
134323
|
+
infoStatus: VOt,
|
|
134324
|
+
successStatus: WOt,
|
|
134325
|
+
warningStatus: UOt,
|
|
134326
|
+
dangerStatus: KOt,
|
|
134327
|
+
roundStatus: qOt,
|
|
134328
|
+
infoItemLabel: GOt,
|
|
134329
|
+
typeCard: YOt,
|
|
134330
|
+
typeList: XOt
|
|
134331
|
+
}, JNt = (e) => {
|
|
133804
134332
|
const {
|
|
133805
134333
|
title: t,
|
|
133806
134334
|
titleIcon: n,
|
|
@@ -133835,7 +134363,7 @@ const U9 = window, XNt = (e) => {
|
|
|
133835
134363
|
className: ve(
|
|
133836
134364
|
na.status,
|
|
133837
134365
|
r.shape !== "rectangle" && na.roundStatus,
|
|
133838
|
-
|
|
134366
|
+
ZOt(r.status)
|
|
133839
134367
|
),
|
|
133840
134368
|
bordered: !1,
|
|
133841
134369
|
children: r.text
|
|
@@ -133876,7 +134404,7 @@ const U9 = window, XNt = (e) => {
|
|
|
133876
134404
|
]
|
|
133877
134405
|
}
|
|
133878
134406
|
);
|
|
133879
|
-
},
|
|
134407
|
+
}, ZOt = (e) => {
|
|
133880
134408
|
switch (e) {
|
|
133881
134409
|
case "info":
|
|
133882
134410
|
return na.infoStatus;
|
|
@@ -133891,31 +134419,31 @@ const U9 = window, XNt = (e) => {
|
|
|
133891
134419
|
export {
|
|
133892
134420
|
fE as APPLE_FONT,
|
|
133893
134421
|
M8e as Alert,
|
|
133894
|
-
|
|
133895
|
-
|
|
134422
|
+
kNt as AlphaPicker,
|
|
134423
|
+
qNt as Anchor,
|
|
133896
134424
|
Zz as App,
|
|
133897
134425
|
u7 as AppContext,
|
|
133898
|
-
|
|
134426
|
+
_Nt as AudioPlayer,
|
|
133899
134427
|
ev as AutoComplete,
|
|
133900
134428
|
Pft as Avatar,
|
|
133901
134429
|
w6 as Badge,
|
|
133902
|
-
|
|
133903
|
-
|
|
134430
|
+
JNt as BecaCard,
|
|
134431
|
+
LNt as BlockPicker,
|
|
133904
134432
|
set as BodyCard,
|
|
133905
134433
|
g1t as Breadcrumb,
|
|
133906
134434
|
cr as Button,
|
|
133907
|
-
|
|
133908
|
-
|
|
134435
|
+
aNt as CALIBRI_FONT,
|
|
134436
|
+
gNt as Calendar,
|
|
133909
134437
|
T1t as Card,
|
|
133910
134438
|
_g as Checkbox,
|
|
133911
|
-
|
|
133912
|
-
|
|
134439
|
+
ANt as ChromePicker,
|
|
134440
|
+
DNt as CirclePicker,
|
|
133913
134441
|
yJ as Col,
|
|
133914
134442
|
r1t as Collapse,
|
|
133915
|
-
|
|
133916
|
-
|
|
134443
|
+
GNt as ColorPicker,
|
|
134444
|
+
zNt as CompactPicker,
|
|
133917
134445
|
p1t as ConfigProvider,
|
|
133918
|
-
|
|
134446
|
+
dNt as Content,
|
|
133919
134447
|
FH as DEFAULT_MAIN_LAYOUT_CONFIG,
|
|
133920
134448
|
iet as DEFAULT_USER_CONFIG,
|
|
133921
134449
|
Ng as DataService,
|
|
@@ -133926,68 +134454,68 @@ export {
|
|
|
133926
134454
|
lpe as Drawer,
|
|
133927
134455
|
yd as Dropdown,
|
|
133928
134456
|
If as Empty,
|
|
133929
|
-
|
|
134457
|
+
ONt as ErrorPage,
|
|
133930
134458
|
b$ as Flex,
|
|
133931
134459
|
sp as FloatButton,
|
|
133932
134460
|
wu as Form,
|
|
133933
|
-
|
|
133934
|
-
|
|
134461
|
+
FNt as GithubPicker,
|
|
134462
|
+
HNt as HuePicker,
|
|
133935
134463
|
bJe as INTER_FONT,
|
|
133936
134464
|
Dme as Image,
|
|
133937
|
-
|
|
134465
|
+
PNt as ImgCrop,
|
|
133938
134466
|
rp as Input,
|
|
133939
|
-
|
|
134467
|
+
vNt as InputNumber,
|
|
133940
134468
|
pE as LayoutService,
|
|
133941
134469
|
Cv as List,
|
|
133942
|
-
|
|
133943
|
-
|
|
134470
|
+
uNt as MainLayout,
|
|
134471
|
+
jNt as MaterialPicker,
|
|
133944
134472
|
hl as Menu,
|
|
133945
134473
|
qg as Modal,
|
|
133946
134474
|
oQe as NotificationService,
|
|
133947
|
-
|
|
134475
|
+
fNt as Pagination,
|
|
133948
134476
|
e1t as Paragraph,
|
|
133949
|
-
|
|
134477
|
+
BNt as PhotoshopPicker,
|
|
133950
134478
|
Aft as Popconfirm,
|
|
133951
134479
|
yee as Popover,
|
|
133952
134480
|
rH as Progress,
|
|
133953
|
-
|
|
134481
|
+
YNt as QRCode,
|
|
133954
134482
|
Snt as Radio,
|
|
133955
|
-
|
|
134483
|
+
RNt as Rate,
|
|
133956
134484
|
uk as Result,
|
|
133957
134485
|
tnt as Row,
|
|
133958
134486
|
fOt as ScrollView,
|
|
133959
|
-
|
|
134487
|
+
NNt as Segmented,
|
|
133960
134488
|
Mc as Select,
|
|
133961
|
-
|
|
134489
|
+
yNt as SelectField,
|
|
133962
134490
|
_u as Skeleton,
|
|
133963
|
-
|
|
133964
|
-
|
|
133965
|
-
|
|
134491
|
+
VNt as SketchPicker,
|
|
134492
|
+
$Nt as Slider,
|
|
134493
|
+
WNt as SliderPicker,
|
|
133966
134494
|
Ma as Space,
|
|
133967
134495
|
HH as Spin,
|
|
133968
|
-
|
|
134496
|
+
xNt as Statistic,
|
|
133969
134497
|
Ede as Steps,
|
|
133970
|
-
|
|
133971
|
-
|
|
133972
|
-
|
|
133973
|
-
|
|
134498
|
+
UNt as SwatchesPicker,
|
|
134499
|
+
wNt as Switch,
|
|
134500
|
+
hNt as Table,
|
|
134501
|
+
mNt as TableSummary,
|
|
133974
134502
|
Ame as Tabs,
|
|
133975
134503
|
Mft as Tag,
|
|
133976
|
-
|
|
134504
|
+
SNt as TextEditor,
|
|
133977
134505
|
Uft as TimePicker,
|
|
133978
134506
|
$fe as Timeline,
|
|
133979
134507
|
Dj as Tooltip,
|
|
133980
|
-
|
|
133981
|
-
|
|
134508
|
+
XNt as Tour,
|
|
134509
|
+
ENt as Tree,
|
|
133982
134510
|
Xft as TreeNode,
|
|
133983
134511
|
Gft as TreeSelect,
|
|
133984
|
-
|
|
134512
|
+
KNt as TwitterPicker,
|
|
133985
134513
|
EN as Typography,
|
|
133986
134514
|
Lme as Upload,
|
|
133987
|
-
|
|
133988
|
-
|
|
133989
|
-
|
|
133990
|
-
|
|
134515
|
+
TNt as VideoPlayer,
|
|
134516
|
+
INt as VirtualList,
|
|
134517
|
+
ZNt as WorkflowForm,
|
|
134518
|
+
sNt as convertToTitleCase,
|
|
133991
134519
|
Hh as message,
|
|
133992
134520
|
S6 as mobileWidth,
|
|
133993
134521
|
Fue as notification,
|
|
@@ -133996,6 +134524,6 @@ export {
|
|
|
133996
134524
|
tXe as useConfig,
|
|
133997
134525
|
RH as useDebouncedValue,
|
|
133998
134526
|
d1e as useDevice,
|
|
133999
|
-
|
|
134527
|
+
oNt as useLocale,
|
|
134000
134528
|
YO as useTranslation
|
|
134001
134529
|
};
|