vcomply-workflow-engine 2.6.90 → 2.6.91

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.
@@ -30732,7 +30732,7 @@
30732
30732
  * }
30733
30733
  */
30734
30734
  AddMultipleResponsibilityWithTabComponent.prototype.validateDataWithProgram = function (data) {
30735
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3, _4, _5;
30735
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3, _4, _5, _6, _7;
30736
30736
  var program = (_b = (_a = this.templateInfo) === null || _a === void 0 ? void 0 : _a.categoryList) === null || _b === void 0 ? void 0 : _b.filter(function (program) { return (program === null || program === void 0 ? void 0 : program.programName) === (data === null || data === void 0 ? void 0 : data.program); });
30737
30737
  var selectedAssignee = (_d = (_c = this.templateInfo) === null || _c === void 0 ? void 0 : _c.assigneesList) === null || _d === void 0 ? void 0 : _d.filter(function (assignee) { return (assignee === null || assignee === void 0 ? void 0 : assignee.nameAndEmail) === (data === null || data === void 0 ? void 0 : data.assignee); });
30738
30738
  var selectedAssignor = (_f = (_e = this.templateInfo) === null || _e === void 0 ? void 0 : _e.assignorsList) === null || _f === void 0 ? void 0 : _f.filter(function (assignor) { return (assignor === null || assignor === void 0 ? void 0 : assignor.nameAndEmail) === (data === null || data === void 0 ? void 0 : data.assignor); });
@@ -30745,15 +30745,17 @@
30745
30745
  var isValidOverseer = true;
30746
30746
  var isValidNotifyOnFailure = true;
30747
30747
  if (program) {
30748
- if ((_p = (_o = program[0]) === null || _o === void 0 ? void 0 : _o.assignee) === null || _p === void 0 ? void 0 : _p.length) {
30748
+ if (((_p = (_o = program[0]) === null || _o === void 0 ? void 0 : _o.assignee) === null || _p === void 0 ? void 0 : _p.length) && (selectedAssignee === null || selectedAssignee === void 0 ? void 0 : selectedAssignee.length)) {
30749
30749
  isValidAssignee = ((_r = (_q = program[0]) === null || _q === void 0 ? void 0 : _q.assignee) === null || _r === void 0 ? void 0 : _r.includes((_s = selectedAssignee[0]) === null || _s === void 0 ? void 0 : _s.my_member_id)) ? true : false;
30750
30750
  }
30751
- if ((_u = (_t = program[0]) === null || _t === void 0 ? void 0 : _t.reviewer) === null || _u === void 0 ? void 0 : _u.length) {
30751
+ if (((_u = (_t = program[0]) === null || _t === void 0 ? void 0 : _t.reviewer) === null || _u === void 0 ? void 0 : _u.length) && (selectedReviewer === null || selectedReviewer === void 0 ? void 0 : selectedReviewer.length)) {
30752
30752
  isValidReviewer = ((_w = (_v = program[0]) === null || _v === void 0 ? void 0 : _v.reviewer) === null || _w === void 0 ? void 0 : _w.includes((_x = selectedReviewer[0]) === null || _x === void 0 ? void 0 : _x.my_member_id)) ? true : false;
30753
30753
  }
30754
- if ((_z = (_y = program[0]) === null || _y === void 0 ? void 0 : _y.overseer) === null || _z === void 0 ? void 0 : _z.length) {
30754
+ if (((_z = (_y = program[0]) === null || _y === void 0 ? void 0 : _y.overseer) === null || _z === void 0 ? void 0 : _z.length) && (selectedOverseer === null || selectedOverseer === void 0 ? void 0 : selectedOverseer.length)) {
30755
30755
  isValidOverseer = ((_1 = (_0 = program[0]) === null || _0 === void 0 ? void 0 : _0.overseer) === null || _1 === void 0 ? void 0 : _1.includes((_2 = selectedOverseer[0]) === null || _2 === void 0 ? void 0 : _2.my_member_id)) ? true : false;
30756
- isValidNotifyOnFailure = ((_4 = (_3 = program[0]) === null || _3 === void 0 ? void 0 : _3.overseer) === null || _4 === void 0 ? void 0 : _4.includes((_5 = selectedNotifyOnFailure[0]) === null || _5 === void 0 ? void 0 : _5.my_member_id)) ? true : false;
30756
+ }
30757
+ if (((_4 = (_3 = program[0]) === null || _3 === void 0 ? void 0 : _3.overseer) === null || _4 === void 0 ? void 0 : _4.length) && (selectedNotifyOnFailure === null || selectedNotifyOnFailure === void 0 ? void 0 : selectedNotifyOnFailure.length)) {
30758
+ isValidNotifyOnFailure = ((_6 = (_5 = program[0]) === null || _5 === void 0 ? void 0 : _5.overseer) === null || _6 === void 0 ? void 0 : _6.includes((_7 = selectedNotifyOnFailure[0]) === null || _7 === void 0 ? void 0 : _7.my_member_id)) ? true : false;
30757
30759
  }
30758
30760
  }
30759
30761
  return {