@neutron.co.id/operasional-interfaces 1.6.1 → 1.6.3

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/build/index.mjs CHANGED
@@ -21,7 +21,7 @@ import { ComponentUtil } from "@neon.id/utils/component";
21
21
  import Scanner from "qr-scanner";
22
22
  import { models as models$2 } from "@neutron.co.id/personalia-models";
23
23
  import { CatatSketchPad } from "@neon.id/catat-interfaces";
24
- const _hoisted_1$b = { class: "xxx-button" };
24
+ const _hoisted_1$d = { class: "xxx-button" };
25
25
  const _sfc_main$v = /* @__PURE__ */ defineComponent({
26
26
  ...{ name: "XxxButton" },
27
27
  __name: "XxxButton",
@@ -33,14 +33,14 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
33
33
  },
34
34
  setup(__props) {
35
35
  return (_ctx, _cache) => {
36
- return openBlock(), createElementBlock("div", _hoisted_1$b, [
36
+ return openBlock(), createElementBlock("div", _hoisted_1$d, [
37
37
  createVNode(unref(NeonButton), { label: "XXX" })
38
38
  ]);
39
39
  };
40
40
  }
41
41
  });
42
- const _hoisted_1$a = { class: "operasional-identitas" };
43
- const _hoisted_2$6 = {
42
+ const _hoisted_1$c = { class: "operasional-identitas" };
43
+ const _hoisted_2$8 = {
44
44
  key: 2,
45
45
  class: "section"
46
46
  };
@@ -299,7 +299,7 @@ const _sfc_main$u = /* @__PURE__ */ defineComponent({
299
299
  candidateId.value = null;
300
300
  }
301
301
  return (_ctx, _cache) => {
302
- return openBlock(), createElementBlock("div", _hoisted_1$a, [
302
+ return openBlock(), createElementBlock("div", _hoisted_1$c, [
303
303
  state.value === "connect" ? (openBlock(), createBlock(unref(IdentitasConnect), {
304
304
  key: 0,
305
305
  user: user.value,
@@ -351,7 +351,7 @@ const _sfc_main$u = /* @__PURE__ */ defineComponent({
351
351
  _: 1
352
352
  /* STABLE */
353
353
  }, 8, ["initial-values", "is-loading", "errors"])) : createCommentVNode("v-if", true),
354
- user.value && onDelegate ? (openBlock(), createElementBlock("div", _hoisted_2$6, [
354
+ user.value && onDelegate ? (openBlock(), createElementBlock("div", _hoisted_2$8, [
355
355
  createVNode(unref(NeonDivider), {
356
356
  "is-dashed": "",
357
357
  label: "Delegasi",
@@ -542,11 +542,11 @@ function mitt(n) {
542
542
  }
543
543
  const bus = mitt();
544
544
  const _withScopeId$2 = (n) => (pushScopeId("data-v-533df021"), n = n(), popScopeId(), n);
545
- const _hoisted_1$9 = { id: "view-checkIns" };
546
- const _hoisted_2$5 = { class: "summary" };
547
- const _hoisted_3$1 = { class: "wrapper" };
548
- const _hoisted_4$1 = { class: "header" };
549
- const _hoisted_5 = /* @__PURE__ */ _withScopeId$2(() => /* @__PURE__ */ createElementVNode(
545
+ const _hoisted_1$b = { id: "view-checkIns" };
546
+ const _hoisted_2$7 = { class: "summary" };
547
+ const _hoisted_3$3 = { class: "wrapper" };
548
+ const _hoisted_4$2 = { class: "header" };
549
+ const _hoisted_5$1 = /* @__PURE__ */ _withScopeId$2(() => /* @__PURE__ */ createElementVNode(
550
550
  "div",
551
551
  { class: "start" },
552
552
  [
@@ -698,14 +698,14 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
698
698
  return (_ctx, _cache) => {
699
699
  const _component_CheckInSingleExternalView = resolveComponent("CheckInSingleExternalView");
700
700
  const _component_CheckInCollection = resolveComponent("CheckInCollection");
701
- return openBlock(), createElementBlock("div", _hoisted_1$9, [
701
+ return openBlock(), createElementBlock("div", _hoisted_1$b, [
702
702
  createVNode(unref(OfficeContent), {
703
703
  icon: "barcode-read",
704
704
  title: "Presensi",
705
705
  "is-expanded": ""
706
706
  }, {
707
707
  "header-detail": withCtx(() => [
708
- createElementVNode("div", _hoisted_2$5, [
708
+ createElementVNode("div", _hoisted_2$7, [
709
709
  createVNode(unref(NeonSlider), {
710
710
  "per-view": 2,
711
711
  gap: 16,
@@ -819,7 +819,7 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
819
819
  ])
820
820
  ]),
821
821
  default: withCtx(() => [
822
- createElementVNode("div", _hoisted_3$1, [
822
+ createElementVNode("div", _hoisted_3$3, [
823
823
  createVNode(unref(NeonCollectionContext), {
824
824
  definition: "neu:tempat:checkIn",
825
825
  scope: "_checkIns",
@@ -834,8 +834,8 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
834
834
  "is-main": ""
835
835
  }, {
836
836
  default: withCtx(() => [
837
- createElementVNode("div", _hoisted_4$1, [
838
- _hoisted_5,
837
+ createElementVNode("div", _hoisted_4$2, [
838
+ _hoisted_5$1,
839
839
  createElementVNode("div", _hoisted_6, [
840
840
  createVNode(unref(OfficeCollectionQuery), { displays: ["table"] }, {
841
841
  default: withCtx(() => [
@@ -863,7 +863,7 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
863
863
  });
864
864
  const CheckInPresenceCollection_vue_vue_type_style_index_0_scoped_533df021_lang = "";
865
865
  const CheckInPresenceCollection = /* @__PURE__ */ _export_sfc(_sfc_main$t, [["__scopeId", "data-v-533df021"]]);
866
- const _hoisted_1$8 = { class: "grid gap-4 sm:grid-cols-2" };
866
+ const _hoisted_1$a = { class: "grid gap-4 sm:grid-cols-2" };
867
867
  const _sfc_main$s = /* @__PURE__ */ defineComponent({
868
868
  __name: "CheckInSingle",
869
869
  setup(__props) {
@@ -922,7 +922,7 @@ const _sfc_main$s = /* @__PURE__ */ defineComponent({
922
922
  field: unref(fields).building,
923
923
  "is-disabled": ""
924
924
  }, null, 8, ["modelValue", "field"]),
925
- createElementVNode("div", _hoisted_1$8, [
925
+ createElementVNode("div", _hoisted_1$a, [
926
926
  createVNode(unref(NeonField), mergeProps({
927
927
  modelValue: unref(values).type,
928
928
  "onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => unref(values).type = $event)
@@ -963,7 +963,7 @@ const _sfc_main$s = /* @__PURE__ */ defineComponent({
963
963
  });
964
964
  const CheckInSingle_vue_vue_type_style_index_0_scoped_2e2803fb_lang = "";
965
965
  const CheckInSingle = /* @__PURE__ */ _export_sfc(_sfc_main$s, [["__scopeId", "data-v-2e2803fb"]]);
966
- const _hoisted_1$7 = { class: "grid gap-4 sm:grid-cols-2" };
966
+ const _hoisted_1$9 = { class: "grid gap-4 sm:grid-cols-2" };
967
967
  const _sfc_main$r = /* @__PURE__ */ defineComponent({
968
968
  __name: "CheckInExternal",
969
969
  setup(__props) {
@@ -1030,7 +1030,7 @@ const _sfc_main$r = /* @__PURE__ */ defineComponent({
1030
1030
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => isRef(values) ? values.value = $event : null),
1031
1031
  field: unref(fields).building
1032
1032
  }, null, 8, ["modelValue", "field"])) : createCommentVNode("v-if", true),
1033
- createElementVNode("div", _hoisted_1$7, [
1033
+ createElementVNode("div", _hoisted_1$9, [
1034
1034
  createVNode(unref(NeonField), mergeProps({
1035
1035
  modelValue: unref(values).type,
1036
1036
  "onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => unref(values).type = $event)
@@ -1074,14 +1074,14 @@ const _sfc_main$r = /* @__PURE__ */ defineComponent({
1074
1074
  const CheckInExternal_vue_vue_type_style_index_0_scoped_9c4a435e_lang = "";
1075
1075
  const CheckInExternal = /* @__PURE__ */ _export_sfc(_sfc_main$r, [["__scopeId", "data-v-9c4a435e"]]);
1076
1076
  const _withScopeId$1 = (n) => (pushScopeId("data-v-d23b6de5"), n = n(), popScopeId(), n);
1077
- const _hoisted_1$6 = /* @__PURE__ */ _withScopeId$1(() => /* @__PURE__ */ createElementVNode(
1077
+ const _hoisted_1$8 = /* @__PURE__ */ _withScopeId$1(() => /* @__PURE__ */ createElementVNode(
1078
1078
  "h4",
1079
1079
  { align: "center" },
1080
1080
  "Aktifkan kamera untuk scan QR Code",
1081
1081
  -1
1082
1082
  /* HOISTED */
1083
1083
  ));
1084
- const _hoisted_2$4 = /* @__PURE__ */ _withScopeId$1(() => /* @__PURE__ */ createElementVNode(
1084
+ const _hoisted_2$6 = /* @__PURE__ */ _withScopeId$1(() => /* @__PURE__ */ createElementVNode(
1085
1085
  "p",
1086
1086
  { align: "center" },
1087
1087
  [
@@ -1117,8 +1117,8 @@ const _sfc_main$q = /* @__PURE__ */ defineComponent({
1117
1117
  onClose: _cache[0] || (_cache[0] = ($event) => _ctx.$emit("close"))
1118
1118
  }, {
1119
1119
  default: withCtx(() => [
1120
- _hoisted_1$6,
1121
- _hoisted_2$4,
1120
+ _hoisted_1$8,
1121
+ _hoisted_2$6,
1122
1122
  createVNode(unref(NeonButton), {
1123
1123
  "is-full": "",
1124
1124
  size: "md",
@@ -1146,7 +1146,7 @@ const _sfc_main$q = /* @__PURE__ */ defineComponent({
1146
1146
  });
1147
1147
  const CheckInAccess_vue_vue_type_style_index_0_scoped_d23b6de5_lang = "";
1148
1148
  const CheckInAccess = /* @__PURE__ */ _export_sfc(_sfc_main$q, [["__scopeId", "data-v-d23b6de5"]]);
1149
- const _hoisted_1$5 = { class: "buttons" };
1149
+ const _hoisted_1$7 = { class: "buttons" };
1150
1150
  const _sfc_main$p = /* @__PURE__ */ defineComponent({
1151
1151
  __name: "CheckInScanError",
1152
1152
  setup(__props) {
@@ -1160,7 +1160,7 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
1160
1160
  default: withCtx(() => [
1161
1161
  createVNode(unref(NeonSheet), null, {
1162
1162
  footer: withCtx(() => [
1163
- createElementVNode("div", _hoisted_1$5, [
1163
+ createElementVNode("div", _hoisted_1$7, [
1164
1164
  createVNode(unref(NeonButton), {
1165
1165
  "is-full": "",
1166
1166
  "is-rounded": "",
@@ -1195,22 +1195,22 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
1195
1195
  }
1196
1196
  });
1197
1197
  const _withScopeId = (n) => (pushScopeId("data-v-ef426ef3"), n = n(), popScopeId(), n);
1198
- const _hoisted_1$4 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode(
1198
+ const _hoisted_1$6 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode(
1199
1199
  "div",
1200
1200
  { class: "invalid-message" },
1201
1201
  "Invalid Code!",
1202
1202
  -1
1203
1203
  /* HOISTED */
1204
1204
  ));
1205
- const _hoisted_2$3 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode(
1205
+ const _hoisted_2$5 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode(
1206
1206
  "div",
1207
1207
  null,
1208
1208
  null,
1209
1209
  -1
1210
1210
  /* HOISTED */
1211
1211
  ));
1212
- const _hoisted_3 = ["onClick"];
1213
- const _hoisted_4 = { class: "mr-2 text-sm" };
1212
+ const _hoisted_3$2 = ["onClick"];
1213
+ const _hoisted_4$1 = { class: "mr-2 text-sm" };
1214
1214
  const _sfc_main$o = /* @__PURE__ */ defineComponent({
1215
1215
  __name: "CheckInScanner",
1216
1216
  emits: ["start", "stop", "scanned", "close"],
@@ -1356,15 +1356,15 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
1356
1356
  class: "inner",
1357
1357
  onClick: switchCamera
1358
1358
  }, [
1359
- _hoisted_1$4,
1360
- _hoisted_2$3,
1359
+ _hoisted_1$6,
1360
+ _hoisted_2$5,
1361
1361
  createElementVNode("div", {
1362
1362
  class: "button-switch",
1363
1363
  onClick: withModifiers(switchCamera, ["stop"])
1364
1364
  }, [
1365
1365
  createElementVNode(
1366
1366
  "div",
1367
- _hoisted_4,
1367
+ _hoisted_4$1,
1368
1368
  toDisplayString(currentCamera.value),
1369
1369
  1
1370
1370
  /* TEXT */
@@ -1375,7 +1375,7 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
1375
1375
  size: "sm",
1376
1376
  "is-disabled": !canSwitch.value
1377
1377
  }, null, 8, ["is-disabled"])
1378
- ], 8, _hoisted_3)
1378
+ ], 8, _hoisted_3$2)
1379
1379
  ])
1380
1380
  ],
1381
1381
  2
@@ -1394,7 +1394,7 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
1394
1394
  });
1395
1395
  const CheckInScanner_vue_vue_type_style_index_0_scoped_ef426ef3_lang = "";
1396
1396
  const CheckInScanner = /* @__PURE__ */ _export_sfc(_sfc_main$o, [["__scopeId", "data-v-ef426ef3"]]);
1397
- const _hoisted_1$3 = /* @__PURE__ */ createElementVNode(
1397
+ const _hoisted_1$5 = /* @__PURE__ */ createElementVNode(
1398
1398
  "h3",
1399
1399
  { align: "center" },
1400
1400
  "Presensi Berhasil!",
@@ -1421,7 +1421,7 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
1421
1421
  onClose: _cache[0] || (_cache[0] = ($event) => _ctx.$emit("close"))
1422
1422
  }, {
1423
1423
  default: withCtx(() => [
1424
- _hoisted_1$3
1424
+ _hoisted_1$5
1425
1425
  ]),
1426
1426
  _: 1
1427
1427
  /* STABLE */
@@ -1470,8 +1470,8 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
1470
1470
  };
1471
1471
  }
1472
1472
  });
1473
- const _hoisted_1$2 = { class: "grid gap-4 sm:grid-cols-[3fr_1fr]" };
1474
- const _hoisted_2$2 = { class: "grid gap-4 sm:grid-cols-2" };
1473
+ const _hoisted_1$4 = { class: "grid gap-4 sm:grid-cols-[3fr_1fr]" };
1474
+ const _hoisted_2$4 = { class: "grid gap-4 sm:grid-cols-2" };
1475
1475
  const _sfc_main$k = /* @__PURE__ */ defineComponent({
1476
1476
  __name: "StaffSingle",
1477
1477
  setup(__props) {
@@ -1509,7 +1509,7 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
1509
1509
  onSubmit: unref(saveOne)
1510
1510
  }, {
1511
1511
  default: withCtx(() => [
1512
- createElementVNode("div", _hoisted_1$2, [
1512
+ createElementVNode("div", _hoisted_1$4, [
1513
1513
  createVNode(unref(NeonField), mergeProps({
1514
1514
  modelValue: unref(values).name,
1515
1515
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => unref(values).name = $event)
@@ -1519,7 +1519,7 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
1519
1519
  "onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => unref(values).nik = $event)
1520
1520
  }, unref(fields).nik), null, 16, ["modelValue"])
1521
1521
  ]),
1522
- createElementVNode("div", _hoisted_2$2, [
1522
+ createElementVNode("div", _hoisted_2$4, [
1523
1523
  createVNode(unref(NeonField), mergeProps({
1524
1524
  modelValue: unref(values).birthPlace,
1525
1525
  "onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => unref(values).birthPlace = $event)
@@ -1624,8 +1624,8 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
1624
1624
  });
1625
1625
  const StaffSingle_vue_vue_type_style_index_0_scoped_0cf4cd99_lang = "";
1626
1626
  const StaffSingle = /* @__PURE__ */ _export_sfc(_sfc_main$k, [["__scopeId", "data-v-0cf4cd99"]]);
1627
- const _hoisted_1$1 = { class: "grid gap-4 sm:grid-cols-[3fr_1fr]" };
1628
- const _hoisted_2$1 = { class: "grid gap-4 sm:grid-cols-2" };
1627
+ const _hoisted_1$3 = { class: "grid gap-4 sm:grid-cols-[3fr_1fr]" };
1628
+ const _hoisted_2$3 = { class: "grid gap-4 sm:grid-cols-2" };
1629
1629
  const _sfc_main$j = /* @__PURE__ */ defineComponent({
1630
1630
  __name: "StaffOperasional",
1631
1631
  setup(__props) {
@@ -1663,7 +1663,7 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
1663
1663
  onSubmit: unref(saveOne)
1664
1664
  }, {
1665
1665
  default: withCtx(() => [
1666
- createElementVNode("div", _hoisted_1$1, [
1666
+ createElementVNode("div", _hoisted_1$3, [
1667
1667
  createVNode(unref(NeonField), mergeProps({
1668
1668
  modelValue: unref(values).name,
1669
1669
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => unref(values).name = $event)
@@ -1673,7 +1673,7 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
1673
1673
  "onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => unref(values).nik = $event)
1674
1674
  }, unref(fields).nik), null, 16, ["modelValue"])
1675
1675
  ]),
1676
- createElementVNode("div", _hoisted_2$1, [
1676
+ createElementVNode("div", _hoisted_2$3, [
1677
1677
  createVNode(unref(NeonField), mergeProps({
1678
1678
  modelValue: unref(values).birthPlace,
1679
1679
  "onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => unref(values).birthPlace = $event)
@@ -1867,7 +1867,9 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
1867
1867
  // { id: '64101f7078ae4f8388b1d1e8', name: 'Cabang Operasional' },
1868
1868
  { id: "641d357c78ae4f8388b1dbaf", name: "Manager Cabang" },
1869
1869
  { id: "641d35b178ae4f8388b1dbd4", name: "SDM Cabang" },
1870
- { id: "6309c3c2e64a1324b8663dab", name: "Karyawan" }
1870
+ { id: "6309c3c2e64a1324b8663dab", name: "Karyawan" },
1871
+ { id: "646a42976af710fe3618af9a", name: "Pengawas Pengajuan" },
1872
+ { id: "646a43106af710fe3618afca", name: "Pengambil Keputusan" }
1871
1873
  // { id: '', name: 'Admin Keuangan' },
1872
1874
  // { id: '', name: 'Cabang Keuangan' },
1873
1875
  // { id: '', name: 'Admin Operasional' },
@@ -2455,8 +2457,8 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
2455
2457
  }
2456
2458
  });
2457
2459
  const TaskModel = models$2.TaskModel;
2458
- const _hoisted_1 = { key: 0 };
2459
- const _hoisted_2 = { key: 1 };
2460
+ const _hoisted_1$2 = { key: 0 };
2461
+ const _hoisted_2$2 = { key: 1 };
2460
2462
  const _sfc_main$b = /* @__PURE__ */ defineComponent({
2461
2463
  ...{ name: "TaskWorkButton" },
2462
2464
  __name: "TaskWorkButton",
@@ -2550,7 +2552,7 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
2550
2552
  Fragment,
2551
2553
  null,
2552
2554
  [
2553
- onHandleTaskWork.value.onStartTaskWorking ? (openBlock(), createElementBlock("div", _hoisted_1, [
2555
+ onHandleTaskWork.value.onStartTaskWorking ? (openBlock(), createElementBlock("div", _hoisted_1$2, [
2554
2556
  createVNode(unref(NeonButton), {
2555
2557
  "is-rounded": true,
2556
2558
  size: "sm",
@@ -2560,7 +2562,7 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
2560
2562
  onClick: onClickHandlerStartTaskWork
2561
2563
  })
2562
2564
  ])) : createCommentVNode("v-if", true),
2563
- onHandleTaskWork.value.onFinishedTaskWorking ? (openBlock(), createElementBlock("div", _hoisted_2, [
2565
+ onHandleTaskWork.value.onFinishedTaskWorking ? (openBlock(), createElementBlock("div", _hoisted_2$2, [
2564
2566
  createVNode(unref(NeonButton), {
2565
2567
  "is-rounded": true,
2566
2568
  size: "sm",
@@ -3458,21 +3460,15 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
3458
3460
  createVNode(unref(NeonField), mergeProps({
3459
3461
  modelValue: unref(values).preparedAt,
3460
3462
  "onUpdate:modelValue": _cache[8] || (_cache[8] = ($event) => unref(values).preparedAt = $event)
3461
- }, unref(fields).preparedAt, {
3462
- "is-disabled": unref(values).status === "raised" || unref(values).status === "processed" || unref(values).status === "approved" || unref(values).status === "monitored" || unref(values).status === "discontinued" || unref(values).status === "resolved"
3463
- }), null, 16, ["modelValue", "is-disabled"]),
3463
+ }, unref(fields).preparedAt, { "is-disabled": "" }), null, 16, ["modelValue"]),
3464
3464
  createVNode(unref(NeonField), mergeProps({
3465
3465
  modelValue: unref(values).raisedAt,
3466
3466
  "onUpdate:modelValue": _cache[9] || (_cache[9] = ($event) => unref(values).raisedAt = $event)
3467
- }, unref(fields).raisedAt, {
3468
- "is-disabled": unref(values).status === "raised" || unref(values).status === "processed" || unref(values).status === "approved" || unref(values).status === "monitored" || unref(values).status === "discontinued" || unref(values).status === "resolved"
3469
- }), null, 16, ["modelValue", "is-disabled"]),
3467
+ }, unref(fields).raisedAt, { "is-disabled": "" }), null, 16, ["modelValue"]),
3470
3468
  createVNode(unref(NeonField), mergeProps({
3471
3469
  modelValue: unref(values).processedAt,
3472
3470
  "onUpdate:modelValue": _cache[10] || (_cache[10] = ($event) => unref(values).processedAt = $event)
3473
- }, unref(fields).processedAt, {
3474
- "is-disabled": unref(values).status === "raised" || unref(values).status === "processed" || unref(values).status === "approved" || unref(values).status === "monitored" || unref(values).status === "discontinued" || unref(values).status === "resolved"
3475
- }), null, 16, ["modelValue", "is-disabled"]),
3471
+ }, unref(fields).processedAt, { "is-disabled": "" }), null, 16, ["modelValue"]),
3476
3472
  createVNode(unref(NeonDivider), {
3477
3473
  "is-dashed": "",
3478
3474
  label: "Nominal"
@@ -3549,8 +3545,8 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
3549
3545
  };
3550
3546
  }
3551
3547
  });
3552
- const SubmissionStaff_vue_vue_type_style_index_0_scoped_af256a74_lang = "";
3553
- const SubmissionStaff = /* @__PURE__ */ _export_sfc(_sfc_main$5, [["__scopeId", "data-v-af256a74"]]);
3548
+ const SubmissionStaff_vue_vue_type_style_index_0_scoped_62cdd107_lang = "";
3549
+ const SubmissionStaff = /* @__PURE__ */ _export_sfc(_sfc_main$5, [["__scopeId", "data-v-62cdd107"]]);
3554
3550
  const _sfc_main$4 = /* @__PURE__ */ defineComponent({
3555
3551
  __name: "SubmissionFollowUp",
3556
3552
  setup(__props) {
@@ -3743,6 +3739,11 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
3743
3739
  });
3744
3740
  const SubmissionFollowUp_vue_vue_type_style_index_0_scoped_6fd14e52_lang = "";
3745
3741
  const SubmissionFollowUp = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["__scopeId", "data-v-6fd14e52"]]);
3742
+ const _hoisted_1$1 = { class: "flex flex-wrap" };
3743
+ const _hoisted_2$1 = { class: "mt-2" };
3744
+ const _hoisted_3$1 = { class: "mt-2" };
3745
+ const _hoisted_4 = { class: "mt-2" };
3746
+ const _hoisted_5 = { class: "mt-2" };
3746
3747
  const _sfc_main$3 = /* @__PURE__ */ defineComponent({
3747
3748
  __name: "SubmissionAudit",
3748
3749
  setup(__props) {
@@ -3847,8 +3848,8 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
3847
3848
  onSubmit: unref(saveOne)
3848
3849
  }, {
3849
3850
  default: withCtx(() => [
3850
- createVNode(unref(NeonFields), { md: "grid-cols-4" }, {
3851
- default: withCtx(() => [
3851
+ createElementVNode("div", _hoisted_1$1, [
3852
+ createElementVNode("div", _hoisted_2$1, [
3852
3853
  unref(isReady) ? (openBlock(), createBlock(unref(NeonField), { key: 0 }, {
3853
3854
  input: withCtx(() => [
3854
3855
  createVNode(unref(NeonButton), {
@@ -3867,8 +3868,11 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
3867
3868
  ]),
3868
3869
  _: 1
3869
3870
  /* STABLE */
3870
- })) : createCommentVNode("v-if", true),
3871
- unref(isReady) ? (openBlock(), createBlock(unref(NeonField), { key: 1 }, {
3871
+ })) : createCommentVNode("v-if", true)
3872
+ ]),
3873
+ createTextVNode("    "),
3874
+ createElementVNode("div", _hoisted_3$1, [
3875
+ unref(isReady) ? (openBlock(), createBlock(unref(NeonField), { key: 0 }, {
3872
3876
  input: withCtx(() => [
3873
3877
  createVNode(unref(NeonButton), {
3874
3878
  size: "md",
@@ -3886,8 +3890,11 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
3886
3890
  ]),
3887
3891
  _: 1
3888
3892
  /* STABLE */
3889
- })) : createCommentVNode("v-if", true),
3890
- unref(isReady) ? (openBlock(), createBlock(unref(NeonField), { key: 2 }, {
3893
+ })) : createCommentVNode("v-if", true)
3894
+ ]),
3895
+ createTextVNode("    "),
3896
+ createElementVNode("div", _hoisted_4, [
3897
+ unref(isReady) ? (openBlock(), createBlock(unref(NeonField), { key: 0 }, {
3891
3898
  input: withCtx(() => [
3892
3899
  createVNode(unref(NeonButton), {
3893
3900
  size: "md",
@@ -3905,8 +3912,11 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
3905
3912
  ]),
3906
3913
  _: 1
3907
3914
  /* STABLE */
3908
- })) : createCommentVNode("v-if", true),
3909
- unref(isReady) ? (openBlock(), createBlock(unref(NeonField), { key: 3 }, {
3915
+ })) : createCommentVNode("v-if", true)
3916
+ ]),
3917
+ createTextVNode("    "),
3918
+ createElementVNode("div", _hoisted_5, [
3919
+ unref(isReady) ? (openBlock(), createBlock(unref(NeonField), { key: 0 }, {
3910
3920
  input: withCtx(() => [
3911
3921
  createVNode(unref(NeonButton), {
3912
3922
  size: "md",
@@ -3925,10 +3935,8 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
3925
3935
  _: 1
3926
3936
  /* STABLE */
3927
3937
  })) : createCommentVNode("v-if", true)
3928
- ]),
3929
- _: 1
3930
- /* STABLE */
3931
- }),
3938
+ ])
3939
+ ]),
3932
3940
  createVNode(unref(NeonField), mergeProps({
3933
3941
  modelValue: unref(values).title,
3934
3942
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => unref(values).title = $event)
@@ -3999,21 +4007,15 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
3999
4007
  createVNode(unref(NeonField), mergeProps({
4000
4008
  modelValue: unref(values).preparedAt,
4001
4009
  "onUpdate:modelValue": _cache[8] || (_cache[8] = ($event) => unref(values).preparedAt = $event)
4002
- }, unref(fields).preparedAt, {
4003
- "is-disabled": unref(values).status === "raised" || unref(values).status === "processed" || unref(values).status === "approved" || unref(values).status === "monitored" || unref(values).status === "discontinued" || unref(values).status === "resolved"
4004
- }), null, 16, ["modelValue", "is-disabled"]),
4010
+ }, unref(fields).preparedAt, { "is-disabled": "" }), null, 16, ["modelValue"]),
4005
4011
  createVNode(unref(NeonField), mergeProps({
4006
4012
  modelValue: unref(values).raisedAt,
4007
4013
  "onUpdate:modelValue": _cache[9] || (_cache[9] = ($event) => unref(values).raisedAt = $event)
4008
- }, unref(fields).raisedAt, {
4009
- "is-disabled": unref(values).status === "raised" || unref(values).status === "processed" || unref(values).status === "approved" || unref(values).status === "monitored" || unref(values).status === "discontinued" || unref(values).status === "resolved"
4010
- }), null, 16, ["modelValue", "is-disabled"]),
4014
+ }, unref(fields).raisedAt, { "is-disabled": "" }), null, 16, ["modelValue"]),
4011
4015
  createVNode(unref(NeonField), mergeProps({
4012
4016
  modelValue: unref(values).processedAt,
4013
4017
  "onUpdate:modelValue": _cache[10] || (_cache[10] = ($event) => unref(values).processedAt = $event)
4014
- }, unref(fields).processedAt, {
4015
- "is-disabled": unref(values).status === "raised" || unref(values).status === "processed" || unref(values).status === "approved" || unref(values).status === "monitored" || unref(values).status === "discontinued" || unref(values).status === "resolved"
4016
- }), null, 16, ["modelValue", "is-disabled"]),
4018
+ }, unref(fields).processedAt, { "is-disabled": "" }), null, 16, ["modelValue"]),
4017
4019
  createVNode(unref(NeonDivider), {
4018
4020
  "is-dashed": "",
4019
4021
  label: "Nominal"
@@ -4090,8 +4092,11 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
4090
4092
  };
4091
4093
  }
4092
4094
  });
4093
- const SubmissionAudit_vue_vue_type_style_index_0_scoped_cf27d98b_lang = "";
4094
- const SubmissionAudit = /* @__PURE__ */ _export_sfc(_sfc_main$3, [["__scopeId", "data-v-cf27d98b"]]);
4095
+ const SubmissionAudit_vue_vue_type_style_index_0_scoped_1e7eba36_lang = "";
4096
+ const SubmissionAudit = /* @__PURE__ */ _export_sfc(_sfc_main$3, [["__scopeId", "data-v-1e7eba36"]]);
4097
+ const _hoisted_1 = { class: "flex flex-wrap" };
4098
+ const _hoisted_2 = { class: "mt-2" };
4099
+ const _hoisted_3 = { class: "mt-2" };
4095
4100
  const _sfc_main$2 = /* @__PURE__ */ defineComponent({
4096
4101
  __name: "SubmissionDecision",
4097
4102
  setup(__props) {
@@ -4155,21 +4160,23 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
4155
4160
  immediate: true
4156
4161
  }
4157
4162
  );
4158
- const syncDelay = () => {
4163
+ const syncDelay = async () => {
4159
4164
  var _a2;
4160
- executeOne("delaySubmission", {
4165
+ await executeOne("delaySubmission", {
4161
4166
  submissionId: id.value,
4162
4167
  staffId: (_a2 = staff.value) == null ? void 0 : _a2.id
4163
4168
  });
4164
- syncOne();
4169
+ await syncOne();
4170
+ window.location.href = "/pengajuan/waiting-decision-submission";
4165
4171
  };
4166
- const syncApproved = () => {
4172
+ const syncApproved = async () => {
4167
4173
  var _a2;
4168
- executeOne("approvedSubmission", {
4174
+ await executeOne("approvedSubmission", {
4169
4175
  submissionId: id.value,
4170
4176
  staffId: (_a2 = staff.value) == null ? void 0 : _a2.id
4171
4177
  });
4172
- syncOne();
4178
+ await syncOne();
4179
+ window.location.href = "/pengajuan/waiting-decision-submission";
4173
4180
  };
4174
4181
  const appStore = useAppStore();
4175
4182
  const objectDef = computed(
@@ -4196,50 +4203,57 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
4196
4203
  onSubmit: unref(saveOne)
4197
4204
  }, {
4198
4205
  default: withCtx(() => [
4199
- unref(isReady) ? (openBlock(), createBlock(unref(NeonField), { key: 0 }, {
4200
- input: withCtx(() => {
4201
- var _a2, _b;
4202
- return [
4203
- createVNode(unref(NeonButton), {
4204
- size: "md",
4205
- color: "danger",
4206
- "icon-left": "circle-stop",
4207
- "is-disabled": unref(isNew) || unref(values).status === "prepared" || unref(values).status === "raised" || ((_b = unref(values).delayStaffIds) == null ? void 0 : _b.includes(((_a2 = unref(staff)) == null ? void 0 : _a2.id) || "")) ? true : false,
4208
- onClick: syncDelay
4209
- }, {
4210
- default: withCtx(() => [
4211
- createTextVNode("Ditunda")
4212
- ]),
4213
- _: 1
4214
- /* STABLE */
4215
- }, 8, ["is-disabled"])
4216
- ];
4217
- }),
4218
- _: 1
4219
- /* STABLE */
4220
- })) : createCommentVNode("v-if", true),
4221
- unref(isReady) ? (openBlock(), createBlock(unref(NeonField), { key: 1 }, {
4222
- input: withCtx(() => {
4223
- var _a2, _b;
4224
- return [
4225
- createVNode(unref(NeonButton), {
4226
- size: "md",
4227
- color: "success",
4228
- "icon-left": "list-check",
4229
- "is-disabled": unref(isNew) || unref(values).status === "prepared" || unref(values).status === "raised" || ((_b = unref(values).agreedStaffIds) == null ? void 0 : _b.includes(((_a2 = unref(staff)) == null ? void 0 : _a2.id) || "")) ? true : false,
4230
- onClick: syncApproved
4231
- }, {
4232
- default: withCtx(() => [
4233
- createTextVNode("Disetujui")
4234
- ]),
4235
- _: 1
4236
- /* STABLE */
4237
- }, 8, ["is-disabled"])
4238
- ];
4239
- }),
4240
- _: 1
4241
- /* STABLE */
4242
- })) : createCommentVNode("v-if", true),
4206
+ createElementVNode("div", _hoisted_1, [
4207
+ createElementVNode("div", _hoisted_2, [
4208
+ unref(isReady) ? (openBlock(), createBlock(unref(NeonField), { key: 0 }, {
4209
+ input: withCtx(() => {
4210
+ var _a2, _b;
4211
+ return [
4212
+ createVNode(unref(NeonButton), {
4213
+ size: "md",
4214
+ color: "danger",
4215
+ "icon-left": "circle-stop",
4216
+ "is-disabled": unref(isNew) || unref(values).status === "prepared" || unref(values).status === "raised" || ((_b = unref(values).delayStaffIds) == null ? void 0 : _b.includes(((_a2 = unref(staff)) == null ? void 0 : _a2.id) || "")) ? true : false,
4217
+ onClick: syncDelay
4218
+ }, {
4219
+ default: withCtx(() => [
4220
+ createTextVNode("Ditunda")
4221
+ ]),
4222
+ _: 1
4223
+ /* STABLE */
4224
+ }, 8, ["is-disabled"])
4225
+ ];
4226
+ }),
4227
+ _: 1
4228
+ /* STABLE */
4229
+ })) : createCommentVNode("v-if", true)
4230
+ ]),
4231
+ createTextVNode("    "),
4232
+ createElementVNode("div", _hoisted_3, [
4233
+ unref(isReady) ? (openBlock(), createBlock(unref(NeonField), { key: 0 }, {
4234
+ input: withCtx(() => {
4235
+ var _a2, _b;
4236
+ return [
4237
+ createVNode(unref(NeonButton), {
4238
+ size: "md",
4239
+ color: "success",
4240
+ "icon-left": "list-check",
4241
+ "is-disabled": unref(isNew) || unref(values).status === "prepared" || unref(values).status === "raised" || ((_b = unref(values).agreedStaffIds) == null ? void 0 : _b.includes(((_a2 = unref(staff)) == null ? void 0 : _a2.id) || "")) ? true : false,
4242
+ onClick: syncApproved
4243
+ }, {
4244
+ default: withCtx(() => [
4245
+ createTextVNode("Disetujui")
4246
+ ]),
4247
+ _: 1
4248
+ /* STABLE */
4249
+ }, 8, ["is-disabled"])
4250
+ ];
4251
+ }),
4252
+ _: 1
4253
+ /* STABLE */
4254
+ })) : createCommentVNode("v-if", true)
4255
+ ])
4256
+ ]),
4243
4257
  createVNode(unref(NeonField), mergeProps({
4244
4258
  modelValue: unref(values).title,
4245
4259
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => unref(values).title = $event)
@@ -4310,21 +4324,15 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
4310
4324
  createVNode(unref(NeonField), mergeProps({
4311
4325
  modelValue: unref(values).preparedAt,
4312
4326
  "onUpdate:modelValue": _cache[8] || (_cache[8] = ($event) => unref(values).preparedAt = $event)
4313
- }, unref(fields).preparedAt, {
4314
- "is-disabled": unref(values).status === "raised" || unref(values).status === "processed" || unref(values).status === "delay" || unref(values).status === "approved" || unref(values).status === "monitored" || unref(values).status === "discontinued" || unref(values).status === "resolved"
4315
- }), null, 16, ["modelValue", "is-disabled"]),
4327
+ }, unref(fields).preparedAt, { "is-disabled": "" }), null, 16, ["modelValue"]),
4316
4328
  createVNode(unref(NeonField), mergeProps({
4317
4329
  modelValue: unref(values).raisedAt,
4318
4330
  "onUpdate:modelValue": _cache[9] || (_cache[9] = ($event) => unref(values).raisedAt = $event)
4319
- }, unref(fields).raisedAt, {
4320
- "is-disabled": unref(values).status === "raised" || unref(values).status === "processed" || unref(values).status === "delay" || unref(values).status === "approved" || unref(values).status === "monitored" || unref(values).status === "discontinued" || unref(values).status === "resolved"
4321
- }), null, 16, ["modelValue", "is-disabled"]),
4331
+ }, unref(fields).raisedAt, { "is-disabled": "" }), null, 16, ["modelValue"]),
4322
4332
  createVNode(unref(NeonField), mergeProps({
4323
4333
  modelValue: unref(values).processedAt,
4324
4334
  "onUpdate:modelValue": _cache[10] || (_cache[10] = ($event) => unref(values).processedAt = $event)
4325
- }, unref(fields).processedAt, {
4326
- "is-disabled": unref(values).status === "raised" || unref(values).status === "processed" || unref(values).status === "delay" || unref(values).status === "approved" || unref(values).status === "monitored" || unref(values).status === "discontinued" || unref(values).status === "resolved"
4327
- }), null, 16, ["modelValue", "is-disabled"]),
4335
+ }, unref(fields).processedAt, { "is-disabled": "" }), null, 16, ["modelValue"]),
4328
4336
  createVNode(unref(NeonDivider), {
4329
4337
  "is-dashed": "",
4330
4338
  label: "Nominal"
@@ -4401,8 +4409,8 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
4401
4409
  };
4402
4410
  }
4403
4411
  });
4404
- const SubmissionDecision_vue_vue_type_style_index_0_scoped_17856177_lang = "";
4405
- const SubmissionDecision = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["__scopeId", "data-v-17856177"]]);
4412
+ const SubmissionDecision_vue_vue_type_style_index_0_scoped_845d6773_lang = "";
4413
+ const SubmissionDecision = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["__scopeId", "data-v-845d6773"]]);
4406
4414
  const SubmissionTypeModel = models$2.SubmissionTypeModel;
4407
4415
  const _sfc_main$1 = /* @__PURE__ */ defineComponent({
4408
4416
  ...{