@processmaker/screen-builder 2.85.12 → 2.87.0

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.
@@ -7789,19 +7789,27 @@ const Tg = fk.exports, pk = {
7789
7789
  this.collection ? (this.setPrefix(), this.setFilesInfoFromCollectionValue()) : this.setFilesInfoFromRequest();
7790
7790
  },
7791
7791
  setFilesInfoFromRequest() {
7792
+ var r;
7792
7793
  const t = this.value ? this.value : ae.get(this.requestData, this.fileDataName, null);
7793
7794
  let { endpoint: e } = this;
7794
7795
  if (this.requestFiles) {
7795
- this.filesInfo.push(ae.get(this.requestFiles, this.fileDataName, null));
7796
+ const a = (r = this.requestFiles) == null ? void 0 : r[this.fileDataName];
7797
+ a && this.filesInfo.push(a);
7796
7798
  return;
7797
7799
  }
7798
7800
  if (!this.requestId || !t) {
7799
7801
  this.filesInfo = [];
7800
7802
  return;
7801
7803
  }
7802
- e || (e = `requests/${this.requestId}/files?id=${t}`, ae.has(window, "PM4ConfigOverrides.getFileEndpoint") && (e = window.PM4ConfigOverrides.getFileEndpoint, e += `/${t}`)), this.$dataProvider.get(e).then((r) => {
7803
- const a = r.data.data ? ae.get(r, "data.data.0", null) : ae.get(r, "data", null);
7804
- a ? typeof this.value == "number" && this.filesInfo.length > 0 ? this.filesInfo[0] = a : this.filesInfo.push(a) : console.log(this.$t("File ID does not exist"));
7804
+ e || (e = `requests/${this.requestId}/files?id=${t}`, ae.has(window, "PM4ConfigOverrides.getFileEndpoint") && (e = window.PM4ConfigOverrides.getFileEndpoint, e += `/${t}`)), this.$dataProvider.get(e).then((a) => {
7805
+ const i = a.data.data ? ae.get(a, "data.data.0", null) : ae.get(a, "data", null);
7806
+ i ? typeof this.value == "number" && this.filesInfo.length > 0 ? this.filesInfo[0] = i : this.filesInfo.push(i) : console.log(this.$t("File ID does not exist"));
7807
+ }).catch((a) => {
7808
+ var o, u, l, c, d;
7809
+ const i = document.querySelector(".alert-danger"), n = this.$t(
7810
+ "Something went wrong and the file cannot be previewed or downloaded."
7811
+ ), s = ((u = (o = a == null ? void 0 : a.response) == null ? void 0 : o.data) == null ? void 0 : u.message) || n;
7812
+ !i && (((l = a == null ? void 0 : a.response) == null ? void 0 : l.status) === 404 || (d = (c = a == null ? void 0 : a.response) == null ? void 0 : c.data) != null && d.message) && window.ProcessMaker.alert(s, "danger");
7805
7813
  });
7806
7814
  },
7807
7815
  setFilesInfoFromCollectionValue() {
@@ -15491,7 +15499,7 @@ var Ll = I2, N2 = ze, F2 = Qa, B2 = p2, H2 = $b, R2 = Ya, q2 = z2, V2 = Ll, X2 =
15491
15499
  }, function(i) {
15492
15500
  return K2(i) ? i >= r && i <= a : !0;
15493
15501
  });
15494
- }, $2 = ze, eN = jr, tN = function(e, r, a) {
15502
+ }, $2 = ze, e7 = jr, t7 = function(e, r, a) {
15495
15503
  return $2.withParams({
15496
15504
  type: "schemaContains",
15497
15505
  contains: r,
@@ -15501,16 +15509,16 @@ var Ll = I2, N2 = ze, F2 = Qa, B2 = p2, H2 = $b, R2 = Ya, q2 = z2, V2 = Ll, X2 =
15501
15509
  return !0;
15502
15510
  var n = a(r);
15503
15511
  return i.some(function(s) {
15504
- return eN(n, s);
15512
+ return e7(n, s);
15505
15513
  });
15506
15514
  });
15507
- }, rN = ze, aN = wt, iN = jr, nN = function(e, r, a) {
15508
- return rN.withParams({
15515
+ }, r7 = ze, a7 = wt, i7 = jr, n7 = function(e, r, a) {
15516
+ return r7.withParams({
15509
15517
  type: "schemaDependencies",
15510
15518
  dependencies: r,
15511
15519
  schema: e
15512
15520
  }, function(i) {
15513
- if (!aN(i))
15521
+ if (!a7(i))
15514
15522
  return !0;
15515
15523
  var n = Object.keys(i), s = n.filter(function(o) {
15516
15524
  return r.hasOwnProperty(o);
@@ -15521,45 +15529,45 @@ var Ll = I2, N2 = ze, F2 = Qa, B2 = p2, H2 = $b, R2 = Ya, q2 = z2, V2 = Ll, X2 =
15521
15529
  var l = r[u];
15522
15530
  return Array.isArray(l) ? l.every(function(c) {
15523
15531
  return n.indexOf(c) !== -1;
15524
- }) : iN(a(l), i);
15532
+ }) : i7(a(l), i);
15525
15533
  }, !0);
15526
15534
  });
15527
- }, sN = ze, oN = Qa, lN = tf, uN = function(e, r) {
15528
- return sN.withParams({
15535
+ }, s7 = ze, o7 = Qa, l7 = tf, u7 = function(e, r) {
15536
+ return s7.withParams({
15529
15537
  type: "schemaEnum",
15530
15538
  choices: r,
15531
15539
  schema: e
15532
15540
  }, function(a) {
15533
- return oN(a) ? r.some(function(i) {
15534
- return lN(a, i);
15541
+ return o7(a) ? r.some(function(i) {
15542
+ return l7(a, i);
15535
15543
  }) : !0;
15536
15544
  });
15537
- }, cN = ze, dN = tf, fN = Qa, pN = function(e, r) {
15538
- return cN.withParams({
15545
+ }, c7 = ze, d7 = tf, f7 = Qa, p7 = function(e, r) {
15546
+ return c7.withParams({
15539
15547
  type: "schemaConst",
15540
15548
  equal: r,
15541
15549
  schema: e
15542
15550
  }, function(a) {
15543
- return !fN(a) || dN(r, a);
15551
+ return !f7(a) || d7(r, a);
15544
15552
  });
15545
- }, hN = ze, mN = Ya, vN = function(e, r) {
15546
- return hN.withParams({
15553
+ }, h7 = ze, m7 = Ya, v7 = function(e, r) {
15554
+ return h7.withParams({
15547
15555
  type: "schemaExclusiveMaximum",
15548
15556
  max: r,
15549
15557
  schema: e
15550
15558
  }, function(a) {
15551
- return mN(a) ? a < r : !0;
15559
+ return m7(a) ? a < r : !0;
15552
15560
  });
15553
- }, gN = ze, bN = Ya, yN = function(e, r) {
15554
- return gN.withParams({
15561
+ }, g7 = ze, b7 = Ya, y7 = function(e, r) {
15562
+ return g7.withParams({
15555
15563
  type: "schemaExclusiveMinimum",
15556
15564
  min: r,
15557
15565
  schema: e
15558
15566
  }, function(a) {
15559
- return bN(a) ? a > r : !0;
15567
+ return b7(a) ? a > r : !0;
15560
15568
  });
15561
- }, xN = ze, PN = ys, qh = jr, wN = function(e, r) {
15562
- return xN.withParams({
15569
+ }, x7 = ze, P7 = ys, qh = jr, w7 = function(e, r) {
15570
+ return x7.withParams({
15563
15571
  type: "schemaItems",
15564
15572
  schema: e
15565
15573
  }, function(a) {
@@ -15567,7 +15575,7 @@ var Ll = I2, N2 = ze, F2 = Qa, B2 = p2, H2 = $b, R2 = Ya, q2 = z2, V2 = Ll, X2 =
15567
15575
  return !0;
15568
15576
  if (e.items.type === "object") {
15569
15577
  var i = a.some(function(s) {
15570
- return !PN(e, e.type)(s);
15578
+ return !P7(e, e.type)(s);
15571
15579
  });
15572
15580
  if (i)
15573
15581
  return !0;
@@ -15581,110 +15589,110 @@ var Ll = I2, N2 = ze, F2 = Qa, B2 = p2, H2 = $b, R2 = Ya, q2 = z2, V2 = Ll, X2 =
15581
15589
  return qh(n, s);
15582
15590
  }));
15583
15591
  });
15584
- }, SN = ze, kN = function(e, r) {
15585
- return SN.withParams({
15592
+ }, S7 = ze, k7 = function(e, r) {
15593
+ return S7.withParams({
15586
15594
  type: "schemaMaxItems",
15587
15595
  schema: e,
15588
15596
  max: r
15589
15597
  }, function(a) {
15590
15598
  return Array.isArray(a) ? a.length <= r : !0;
15591
15599
  });
15592
- }, CN = ze, TN = Ll, ON = function(e, r) {
15593
- return CN.withParams({
15600
+ }, C7 = ze, T7 = Ll, O7 = function(e, r) {
15601
+ return C7.withParams({
15594
15602
  type: "schemaMaxLength",
15595
15603
  schema: e,
15596
15604
  max: r
15597
15605
  }, function(a) {
15598
- return TN(a) ? a.length <= r : !0;
15606
+ return T7(a) ? a.length <= r : !0;
15599
15607
  });
15600
- }, DN = ze, AN = wt, zN = function(e, r) {
15601
- return DN.withParams({
15608
+ }, D7 = ze, A7 = wt, z7 = function(e, r) {
15609
+ return D7.withParams({
15602
15610
  type: "schemaMaxProperties",
15603
15611
  max: r,
15604
15612
  schema: e
15605
15613
  }, function(a) {
15606
- return AN(a) ? Object.keys(a).length <= r : !0;
15614
+ return A7(a) ? Object.keys(a).length <= r : !0;
15607
15615
  });
15608
- }, EN = ze, MN = Ya, jN = function(e, r) {
15609
- return EN.withParams({
15616
+ }, E7 = ze, M7 = Ya, j7 = function(e, r) {
15617
+ return E7.withParams({
15610
15618
  type: "schemaMaximum",
15611
15619
  max: r,
15612
15620
  schema: e
15613
15621
  }, function(a) {
15614
- return MN(a) ? a <= r : !0;
15622
+ return M7(a) ? a <= r : !0;
15615
15623
  });
15616
- }, LN = ze, IN = function(e, r) {
15617
- return LN.withParams({
15624
+ }, L7 = ze, I7 = function(e, r) {
15625
+ return L7.withParams({
15618
15626
  type: "schemaMinItems",
15619
15627
  schema: e,
15620
15628
  min: r
15621
15629
  }, function(a) {
15622
15630
  return Array.isArray(a) ? a.length >= r : !0;
15623
15631
  });
15624
- }, NN = ze, FN = Ll, BN = function(e, r) {
15625
- return NN.withParams({
15632
+ }, N7 = ze, F7 = Ll, B7 = function(e, r) {
15633
+ return N7.withParams({
15626
15634
  type: "schemaMinLength",
15627
15635
  schema: e,
15628
15636
  min: r
15629
15637
  }, function(a) {
15630
- return FN(a) ? a.length >= r : !0;
15638
+ return F7(a) ? a.length >= r : !0;
15631
15639
  });
15632
- }, HN = ze, RN = wt, qN = function(e, r) {
15633
- return HN.withParams({
15640
+ }, H7 = ze, R7 = wt, q7 = function(e, r) {
15641
+ return H7.withParams({
15634
15642
  type: "schemaMinProperties",
15635
15643
  min: r,
15636
15644
  schema: e
15637
15645
  }, function(a) {
15638
- return RN(a) ? Object.keys(a).length >= r : !0;
15646
+ return R7(a) ? Object.keys(a).length >= r : !0;
15639
15647
  });
15640
- }, VN = ze, XN = Ya, WN = function(e, r) {
15641
- return VN.withParams({
15648
+ }, V7 = ze, X7 = Ya, W7 = function(e, r) {
15649
+ return V7.withParams({
15642
15650
  type: "schemaMinimum",
15643
15651
  min: r,
15644
15652
  schema: e
15645
15653
  }, function(a) {
15646
- return XN(a) ? a >= r : !0;
15654
+ return X7(a) ? a >= r : !0;
15647
15655
  });
15648
- }, JN = ze, GN = Ya, UN = $b, QN = function(e, r) {
15649
- return JN.withParams({
15656
+ }, J7 = ze, G7 = Ya, U7 = $b, Q7 = function(e, r) {
15657
+ return J7.withParams({
15650
15658
  type: "schemaMultipleOf",
15651
15659
  divider: r,
15652
15660
  schema: e
15653
15661
  }, function(a) {
15654
- return GN(a) ? UN(a / r) : !0;
15662
+ return G7(a) ? U7(a / r) : !0;
15655
15663
  });
15656
- }, YN = ze, ZN = Qa, KN = ys, _N = jr, $N = function(e, r, a) {
15657
- return YN.withParams({
15664
+ }, Y7 = ze, Z7 = Qa, K7 = ys, _7 = jr, $7 = function(e, r, a) {
15665
+ return Y7.withParams({
15658
15666
  type: "schemaNot",
15659
15667
  not: r,
15660
15668
  schema: e
15661
15669
  }, function(i) {
15662
- return !ZN(i) || !KN(e, e.type)(i) ? !0 : !_N(a(r), i);
15670
+ return !Z7(i) || !K7(e, e.type)(i) ? !0 : !_7(a(r), i);
15663
15671
  });
15664
- }, e7 = ze, t7 = Qa, r7 = ys, a7 = jr, i7 = function(e, r, a) {
15665
- return e7.withParams({
15672
+ }, eN = ze, tN = Qa, rN = ys, aN = jr, iN = function(e, r, a) {
15673
+ return eN.withParams({
15666
15674
  type: "schemaOneOf",
15667
15675
  schemas: r,
15668
15676
  schema: e
15669
15677
  }, function(i) {
15670
- return !t7(i) || !r7(e, e.type)(i) ? !0 : r.reduce(function(n, s) {
15671
- return n > 1 ? 2 : a7(a(s), i) ? n + 1 : n;
15678
+ return !tN(i) || !rN(e, e.type)(i) ? !0 : r.reduce(function(n, s) {
15679
+ return n > 1 ? 2 : aN(a(s), i) ? n + 1 : n;
15672
15680
  }, 0) === 1;
15673
15681
  });
15674
- }, n7 = El;
15675
- function s7(t, e) {
15682
+ }, nN = El;
15683
+ function sN(t, e) {
15676
15684
  var r = [];
15677
- return n7(t, function(a, i, n) {
15685
+ return nN(t, function(a, i, n) {
15678
15686
  e(a, i, n) && r.push(a);
15679
15687
  }), r;
15680
15688
  }
15681
- var o7 = s7, l7 = Kg, u7 = o7, c7 = Ml, d7 = mt;
15682
- function f7(t, e) {
15683
- var r = d7(t) ? l7 : u7;
15684
- return r(t, c7(e));
15689
+ var oN = sN, lN = Kg, uN = oN, cN = Ml, dN = mt;
15690
+ function fN(t, e) {
15691
+ var r = dN(t) ? lN : uN;
15692
+ return r(t, cN(e));
15685
15693
  }
15686
- var p7 = f7, h7 = ze, Vh = wt, m7 = pf, v7 = jl, g7 = p7, b7 = jr, y7 = function(e, r, a) {
15687
- return h7.withParams({
15694
+ var pN = fN, hN = ze, Vh = wt, mN = pf, vN = jl, gN = pN, bN = jr, yN = function(e, r, a) {
15695
+ return hN.withParams({
15688
15696
  type: "schemaPatternProperties",
15689
15697
  patternProperties: r,
15690
15698
  schema: e
@@ -15702,47 +15710,47 @@ var p7 = f7, h7 = ze, Vh = wt, m7 = pf, v7 = jl, g7 = p7, b7 = jr, y7 = function
15702
15710
  if (!s)
15703
15711
  return !1;
15704
15712
  }
15705
- var o = v7(i, function(u, l, c) {
15706
- return u[c] = g7(r, function(d, f) {
15713
+ var o = vN(i, function(u, l, c) {
15714
+ return u[c] = gN(r, function(d, f) {
15707
15715
  return new RegExp(f).test(c);
15708
15716
  }), u;
15709
15717
  }, {});
15710
- return m7(o, function(u, l) {
15718
+ return mN(o, function(u, l) {
15711
15719
  return u.every(function(c) {
15712
- return b7(a(c), i[l]);
15720
+ return bN(a(c), i[l]);
15713
15721
  });
15714
15722
  });
15715
15723
  });
15716
- }, x7 = ze, P7 = Ll, w7 = function(e, r) {
15717
- return x7.withParams({
15724
+ }, xN = ze, PN = Ll, wN = function(e, r) {
15725
+ return xN.withParams({
15718
15726
  type: "schemaPattern",
15719
15727
  pattern: r,
15720
15728
  schema: e
15721
15729
  }, function(a) {
15722
- return P7(a) ? r.test(a) : !0;
15730
+ return PN(a) ? r.test(a) : !0;
15723
15731
  });
15724
- }, S7 = ze, k7 = wt, C7 = jr, T7 = function(e, r, a) {
15725
- return S7.withParams({
15732
+ }, SN = ze, kN = wt, CN = jr, TN = function(e, r, a) {
15733
+ return SN.withParams({
15726
15734
  type: "schemaPropertyNames",
15727
15735
  propertyNames: r,
15728
15736
  schema: e
15729
15737
  }, function(i) {
15730
- if (!k7(i))
15738
+ if (!kN(i))
15731
15739
  return !0;
15732
15740
  var n = Object.keys(i), s = a(r);
15733
15741
  return n.every(function(o) {
15734
- return C7(s, o);
15742
+ return CN(s, o);
15735
15743
  });
15736
15744
  });
15737
- }, O7 = ze, D7 = Qa, A7 = wt, z7 = function(e, r) {
15738
- return O7.withParams({
15745
+ }, ON = ze, DN = Qa, AN = wt, zN = function(e, r) {
15746
+ return ON.withParams({
15739
15747
  type: "schemaRequired",
15740
15748
  schema: e
15741
15749
  }, function(a, i) {
15742
- return !A7(i) && r ? !0 : D7(a);
15750
+ return !AN(i) && r ? !0 : DN(a);
15743
15751
  });
15744
15752
  }, Te = {}, Il = {}, Je = {}, Nl = {}, cn = {}, Xh;
15745
- function E7() {
15753
+ function EN() {
15746
15754
  if (Xh)
15747
15755
  return cn;
15748
15756
  Xh = 1, Object.defineProperty(cn, "__esModule", {
@@ -15766,8 +15774,8 @@ Object.defineProperty(Nl, "__esModule", {
15766
15774
  value: !0
15767
15775
  });
15768
15776
  Nl.default = void 0;
15769
- var M7 = {}.BUILD === "web" ? E7().withParams : zt.withParams, j7 = M7;
15770
- Nl.default = j7;
15777
+ var MN = {}.BUILD === "web" ? EN().withParams : zt.withParams, jN = MN;
15778
+ Nl.default = jN;
15771
15779
  (function(t) {
15772
15780
  Object.defineProperty(t, "__esModule", {
15773
15781
  value: !0
@@ -15827,28 +15835,28 @@ Object.defineProperty(Il, "__esModule", {
15827
15835
  value: !0
15828
15836
  });
15829
15837
  Il.default = void 0;
15830
- var L7 = Je, I7 = (0, L7.regex)("alpha", /^[a-zA-Z]*$/);
15831
- Il.default = I7;
15838
+ var LN = Je, IN = (0, LN.regex)("alpha", /^[a-zA-Z]*$/);
15839
+ Il.default = IN;
15832
15840
  var Fl = {};
15833
15841
  Object.defineProperty(Fl, "__esModule", {
15834
15842
  value: !0
15835
15843
  });
15836
15844
  Fl.default = void 0;
15837
- var N7 = Je, F7 = (0, N7.regex)("alphaNum", /^[a-zA-Z0-9]*$/);
15838
- Fl.default = F7;
15845
+ var NN = Je, FN = (0, NN.regex)("alphaNum", /^[a-zA-Z0-9]*$/);
15846
+ Fl.default = FN;
15839
15847
  var Bl = {};
15840
15848
  Object.defineProperty(Bl, "__esModule", {
15841
15849
  value: !0
15842
15850
  });
15843
15851
  Bl.default = void 0;
15844
- var B7 = Je, H7 = (0, B7.regex)("numeric", /^[0-9]*$/);
15845
- Bl.default = H7;
15852
+ var BN = Je, HN = (0, BN.regex)("numeric", /^[0-9]*$/);
15853
+ Bl.default = HN;
15846
15854
  var Hl = {};
15847
15855
  Object.defineProperty(Hl, "__esModule", {
15848
15856
  value: !0
15849
15857
  });
15850
15858
  Hl.default = void 0;
15851
- var Wh = Je, R7 = function(e, r) {
15859
+ var Wh = Je, RN = function(e, r) {
15852
15860
  return (0, Wh.withParams)({
15853
15861
  type: "between",
15854
15862
  min: e,
@@ -15857,20 +15865,20 @@ var Wh = Je, R7 = function(e, r) {
15857
15865
  return !(0, Wh.req)(a) || (!/\s/.test(a) || a instanceof Date) && +e <= +a && +r >= +a;
15858
15866
  });
15859
15867
  };
15860
- Hl.default = R7;
15868
+ Hl.default = RN;
15861
15869
  var Rl = {};
15862
15870
  Object.defineProperty(Rl, "__esModule", {
15863
15871
  value: !0
15864
15872
  });
15865
15873
  Rl.default = void 0;
15866
- var q7 = Je, V7 = /^(?:[A-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[A-z0-9!#$%&'*+/=?^_`{|}~-]+)*|"(?:[\x01-\x08\x0b\x0c\x0e-\x1f\x21\x23-\x5b\x5d-\x7f]|[\x01-\x09\x0b\x0c\x0e-\x7f])*")@(?:(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9]{2,}(?:[a-z0-9-]*[a-z0-9])?|\[(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?|[a-z0-9-]*[a-z0-9]:(?:[\x01-\x08\x0b\x0c\x0e-\x1f\x21-\x5a\x53-\x7f]|\\[\x01-\x09\x0b\x0c\x0e-\x7f])+)\])$/i, X7 = (0, q7.regex)("email", V7);
15867
- Rl.default = X7;
15874
+ var qN = Je, VN = /^(?:[A-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[A-z0-9!#$%&'*+/=?^_`{|}~-]+)*|"(?:[\x01-\x08\x0b\x0c\x0e-\x1f\x21\x23-\x5b\x5d-\x7f]|[\x01-\x09\x0b\x0c\x0e-\x7f])*")@(?:(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9]{2,}(?:[a-z0-9-]*[a-z0-9])?|\[(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?|[a-z0-9-]*[a-z0-9]:(?:[\x01-\x08\x0b\x0c\x0e-\x1f\x21-\x5a\x53-\x7f]|\\[\x01-\x09\x0b\x0c\x0e-\x7f])+)\])$/i, XN = (0, qN.regex)("email", VN);
15875
+ Rl.default = XN;
15868
15876
  var ql = {};
15869
15877
  Object.defineProperty(ql, "__esModule", {
15870
15878
  value: !0
15871
15879
  });
15872
15880
  ql.default = void 0;
15873
- var Jh = Je, W7 = (0, Jh.withParams)({
15881
+ var Jh = Je, WN = (0, Jh.withParams)({
15874
15882
  type: "ipAddress"
15875
15883
  }, function(t) {
15876
15884
  if (!(0, Jh.req)(t))
@@ -15878,10 +15886,10 @@ var Jh = Je, W7 = (0, Jh.withParams)({
15878
15886
  if (typeof t != "string")
15879
15887
  return !1;
15880
15888
  var e = t.split(".");
15881
- return e.length === 4 && e.every(J7);
15889
+ return e.length === 4 && e.every(JN);
15882
15890
  });
15883
- ql.default = W7;
15884
- var J7 = function(e) {
15891
+ ql.default = WN;
15892
+ var JN = function(e) {
15885
15893
  if (e.length > 3 || e.length === 0 || e[0] === "0" && e !== "0" || !e.match(/^\d+$/))
15886
15894
  return !1;
15887
15895
  var r = +e | 0;
@@ -15891,7 +15899,7 @@ Object.defineProperty(Vl, "__esModule", {
15891
15899
  value: !0
15892
15900
  });
15893
15901
  Vl.default = void 0;
15894
- var Gh = Je, G7 = function() {
15902
+ var Gh = Je, GN = function() {
15895
15903
  var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : ":";
15896
15904
  return (0, Gh.withParams)({
15897
15905
  type: "macAddress"
@@ -15901,18 +15909,18 @@ var Gh = Je, G7 = function() {
15901
15909
  if (typeof r != "string")
15902
15910
  return !1;
15903
15911
  var a = typeof e == "string" && e !== "" ? r.split(e) : r.length === 12 || r.length === 16 ? r.match(/.{2}/g) : null;
15904
- return a !== null && (a.length === 6 || a.length === 8) && a.every(U7);
15912
+ return a !== null && (a.length === 6 || a.length === 8) && a.every(UN);
15905
15913
  });
15906
15914
  };
15907
- Vl.default = G7;
15908
- var U7 = function(e) {
15915
+ Vl.default = GN;
15916
+ var UN = function(e) {
15909
15917
  return e.toLowerCase().match(/^[0-9a-f]{2}$/);
15910
15918
  }, Xl = {};
15911
15919
  Object.defineProperty(Xl, "__esModule", {
15912
15920
  value: !0
15913
15921
  });
15914
15922
  Xl.default = void 0;
15915
- var Qu = Je, Q7 = function(e) {
15923
+ var Qu = Je, QN = function(e) {
15916
15924
  return (0, Qu.withParams)({
15917
15925
  type: "maxLength",
15918
15926
  max: e
@@ -15920,13 +15928,13 @@ var Qu = Je, Q7 = function(e) {
15920
15928
  return !(0, Qu.req)(r) || (0, Qu.len)(r) <= e;
15921
15929
  });
15922
15930
  };
15923
- Xl.default = Q7;
15931
+ Xl.default = QN;
15924
15932
  var Wl = {};
15925
15933
  Object.defineProperty(Wl, "__esModule", {
15926
15934
  value: !0
15927
15935
  });
15928
15936
  Wl.default = void 0;
15929
- var Yu = Je, Y7 = function(e) {
15937
+ var Yu = Je, YN = function(e) {
15930
15938
  return (0, Yu.withParams)({
15931
15939
  type: "minLength",
15932
15940
  min: e
@@ -15934,24 +15942,24 @@ var Yu = Je, Y7 = function(e) {
15934
15942
  return !(0, Yu.req)(r) || (0, Yu.len)(r) >= e;
15935
15943
  });
15936
15944
  };
15937
- Wl.default = Y7;
15945
+ Wl.default = YN;
15938
15946
  var Jl = {};
15939
15947
  Object.defineProperty(Jl, "__esModule", {
15940
15948
  value: !0
15941
15949
  });
15942
15950
  Jl.default = void 0;
15943
- var Zu = Je, Z7 = (0, Zu.withParams)({
15951
+ var Zu = Je, ZN = (0, Zu.withParams)({
15944
15952
  type: "required"
15945
15953
  }, function(t) {
15946
15954
  return typeof t == "string" ? (0, Zu.req)(t.trim()) : (0, Zu.req)(t);
15947
15955
  });
15948
- Jl.default = Z7;
15956
+ Jl.default = ZN;
15949
15957
  var Gl = {};
15950
15958
  Object.defineProperty(Gl, "__esModule", {
15951
15959
  value: !0
15952
15960
  });
15953
15961
  Gl.default = void 0;
15954
- var Ku = Je, K7 = function(e) {
15962
+ var Ku = Je, KN = function(e) {
15955
15963
  return (0, Ku.withParams)({
15956
15964
  type: "requiredIf",
15957
15965
  prop: e
@@ -15959,13 +15967,13 @@ var Ku = Je, K7 = function(e) {
15959
15967
  return (0, Ku.ref)(e, this, a) ? (0, Ku.req)(r) : !0;
15960
15968
  });
15961
15969
  };
15962
- Gl.default = K7;
15970
+ Gl.default = KN;
15963
15971
  var Ul = {};
15964
15972
  Object.defineProperty(Ul, "__esModule", {
15965
15973
  value: !0
15966
15974
  });
15967
15975
  Ul.default = void 0;
15968
- var _u = Je, _7 = function(e) {
15976
+ var _u = Je, _N = function(e) {
15969
15977
  return (0, _u.withParams)({
15970
15978
  type: "requiredUnless",
15971
15979
  prop: e
@@ -15973,13 +15981,13 @@ var _u = Je, _7 = function(e) {
15973
15981
  return (0, _u.ref)(e, this, a) ? !0 : (0, _u.req)(r);
15974
15982
  });
15975
15983
  };
15976
- Ul.default = _7;
15984
+ Ul.default = _N;
15977
15985
  var Ql = {};
15978
15986
  Object.defineProperty(Ql, "__esModule", {
15979
15987
  value: !0
15980
15988
  });
15981
15989
  Ql.default = void 0;
15982
- var Uh = Je, $7 = function(e) {
15990
+ var Uh = Je, $N = function(e) {
15983
15991
  return (0, Uh.withParams)({
15984
15992
  type: "sameAs",
15985
15993
  eq: e
@@ -15987,7 +15995,7 @@ var Uh = Je, $7 = function(e) {
15987
15995
  return r === (0, Uh.ref)(e, this, a);
15988
15996
  });
15989
15997
  };
15990
- Ql.default = $7;
15998
+ Ql.default = $N;
15991
15999
  var Yl = {};
15992
16000
  Object.defineProperty(Yl, "__esModule", {
15993
16001
  value: !0
@@ -16291,7 +16299,7 @@ var V5 = function(e) {
16291
16299
  }, function(r) {
16292
16300
  return !Array.isArray(r) || r.length < 2 ? !0 : r.length === H5(r, q5).length;
16293
16301
  });
16294
- }, X5 = UI, W5 = d2, J5 = Y2, G5 = _2, U5 = tN, Q5 = nN, Y5 = uN, Z5 = pN, K5 = vN, _5 = yN, $5 = gs, eF = Ga, Yn = wt, tF = wN, rF = kN, aF = ON, iF = zN, nF = jN, sF = IN, oF = BN, lF = qN, uF = WN, cF = QN, dF = $N, fF = i7, pF = y7, hF = w7, mF = T7, vF = jl, gF = z7, bF = m5, _h = ys, yF = j5, xF = V5, PF = Te;
16302
+ }, X5 = UI, W5 = d2, J5 = Y2, G5 = _2, U5 = t7, Q5 = n7, Y5 = u7, Z5 = p7, K5 = v7, _5 = y7, $5 = gs, eF = Ga, Yn = wt, tF = w7, rF = k7, aF = O7, iF = z7, nF = j7, sF = I7, oF = B7, lF = q7, uF = W7, cF = Q7, dF = $7, fF = iN, pF = yN, hF = wN, mF = TN, vF = jl, gF = zN, bF = m5, _h = ys, yF = j5, xF = V5, PF = Te;
16295
16303
  function ty(t, e) {
16296
16304
  var r = yF(Object.keys(t).concat(Object.keys(e)));
16297
16305
  r.forEach(function(a) {
@@ -45510,7 +45518,7 @@ var oK = function() {
45510
45518
  const AP = uK.exports;
45511
45519
  const cK = ds(), dK = {
45512
45520
  mixins: [cK],
45513
- props: ["name", "description", "filter", "id", "process"],
45521
+ props: ["name", "description", "filter", "id", "process", "event"],
45514
45522
  data() {
45515
45523
  return {
45516
45524
  disabled: !1,
@@ -45581,20 +45589,18 @@ const cK = ds(), dK = {
45581
45589
  };
45582
45590
  var fK = function() {
45583
45591
  var e = this, r = e._self._c;
45584
- return r("div", [e._l(e.emptyStartEvents, function(a) {
45585
- return [r("div", { key: a.id, staticClass: "mb-3 card-request" }, [r("div", { staticClass: "card-body" }, [r("div", { staticClass: "d-flex justify-content-between" }, [r("div", [r("span", { directives: [{ name: "uni-id", rawName: "v-uni-id", value: a.id.toString(), expression: "event.id.toString()" }], staticClass: "card-info card-title" }, [e._v(" " + e._s(e.transformedName) + " ")]), r("span", { staticClass: "card-info" }, [e._v(" " + e._s(a.name) + " ")])]), r("div", { staticClass: "d-flex align-items-center" }, [r("button", { staticClass: "btn btn-ellipsis btn-sm mr-1", attrs: { "aria-expanded": e.ariaExpanded, "aria-controls": e.getComputedId(e.process, a) }, on: { click: function(i) {
45586
- return e.showRequestDetails(e.process, a);
45587
- } } }, [r("i", { staticClass: "fas fa-ellipsis-v" })]), r("button", { directives: [{ name: "uni-aria-describedby", rawName: "v-uni-aria-describedby", value: a.id.toString(), expression: "event.id.toString()" }], staticClass: "btn btn-custom btn-sm", attrs: { href: e.getNewRequestLinkHref(e.process, a) }, on: { click: function(i) {
45588
- return i.preventDefault(), e.newRequestLink(e.process, a);
45589
- } } }, [e._v(" " + e._s(e.$t("Start")) + " "), r("i", { staticClass: "fas fa-play mr-1 card-icon" })])])]), r("b-collapse", { attrs: { id: e.getComputedId(e.process, a), "aria-hidden": e.ariaHidden } }, [r("hr"), r("p", { staticClass: "card-text text-muted card-description" }, [e._v(" " + e._s(e.process.description) + " ")])])], 1)])];
45590
- })], 2);
45592
+ return r("div", [r("div", { staticClass: "mb-3 card-request" }, [r("div", { staticClass: "card-body" }, [r("div", { staticClass: "d-flex justify-content-between" }, [r("div", [r("span", { directives: [{ name: "uni-id", rawName: "v-uni-id", value: e.event.id.toString(), expression: "event.id.toString()" }], staticClass: "card-info card-title" }, [e._v(" " + e._s(e.transformedName) + " ")]), r("span", { staticClass: "card-info" }, [e._v(" " + e._s(e.event.name) + " ")])]), r("div", { staticClass: "d-flex align-items-center" }, [r("button", { staticClass: "btn btn-ellipsis btn-sm mr-1", attrs: { "aria-expanded": e.ariaExpanded, "aria-controls": e.getComputedId(e.process, e.event) }, on: { click: function(a) {
45593
+ return e.showRequestDetails(e.process, e.event);
45594
+ } } }, [r("i", { staticClass: "fas fa-ellipsis-v" })]), r("button", { directives: [{ name: "uni-aria-describedby", rawName: "v-uni-aria-describedby", value: e.event.id.toString(), expression: "event.id.toString()" }], staticClass: "btn btn-custom btn-sm", attrs: { href: e.getNewRequestLinkHref(e.process, e.event) }, on: { click: function(a) {
45595
+ return a.preventDefault(), e.newRequestLink(e.process, e.event);
45596
+ } } }, [e._v(" " + e._s(e.$t("Start")) + " "), r("i", { staticClass: "fas fa-play mr-1 card-icon" })])])]), r("b-collapse", { attrs: { id: e.getComputedId(e.process, e.event), "aria-hidden": e.ariaHidden } }, [r("hr"), r("p", { staticClass: "card-text text-muted card-description" }, [e._v(" " + e._s(e.process.description) + " ")])])], 1)])]);
45591
45597
  }, pK = [], hK = /* @__PURE__ */ oe(
45592
45598
  dK,
45593
45599
  fK,
45594
45600
  pK,
45595
45601
  !1,
45596
45602
  null,
45597
- "6935b2c4",
45603
+ "07b0aa45",
45598
45604
  null,
45599
45605
  null
45600
45606
  );
@@ -45615,6 +45621,11 @@ const mK = hK.exports, vK = {
45615
45621
  this.fetch(), this.$root.$on("dropdownSelectionStart", this.fetchData);
45616
45622
  },
45617
45623
  methods: {
45624
+ emptyStartEvents(t) {
45625
+ return t.startEvents.filter(
45626
+ (e) => !e.eventDefinitions || e.eventDefinitions.length === 0
45627
+ );
45628
+ },
45618
45629
  hasEmptyStartEvents(t) {
45619
45630
  return !!t.events.find(
45620
45631
  (e) => !e.eventDefinitions || e.eventDefinitions.length === 0
@@ -45639,9 +45650,11 @@ const mK = hK.exports, vK = {
45639
45650
  };
45640
45651
  var gK = function() {
45641
45652
  var e = this, r = e._self._c;
45642
- return r("div", [Object.keys(e.processes).length && !e.loading ? r("div", { staticClass: "process-list" }, [r("b-container", { attrs: { fluid: "" } }, e._l(e.processes, function(a, i) {
45643
- return r("div", { key: `process-${i}` }, [e.hasEmptyStartEvents(a) ? r("ProcessCard", { attrs: { filter: e.filter, process: a } }) : e._e()], 1);
45644
- }), 0)], 1) : r("div", [r("formEmpty", { attrs: { link: "", title: "No Request to Start", url: "" } })], 1)]);
45653
+ return r("div", [Object.keys(e.processes).length && !e.loading ? r("div", { staticClass: "process-list" }, [r("div", { staticClass: "row" }, [e._l(e.processes, function(a, i) {
45654
+ return e._l(e.emptyStartEvents(a), function(n, s) {
45655
+ return r("div", { key: `process-${i}-${s}`, staticClass: "col-sm-6" }, [r("ProcessCard", { attrs: { filter: e.filter, process: a, event: n } })], 1);
45656
+ });
45657
+ })], 2)]) : r("div", [r("formEmpty", { attrs: { link: "", title: "No Request to Start", url: "" } })], 1)]);
45645
45658
  }, bK = [], yK = /* @__PURE__ */ oe(
45646
45659
  vK,
45647
45660
  gK,