@neutron.co.id/operasional-interfaces 1.8.4 → 1.8.5

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
@@ -30,8 +30,8 @@ import Scanner from "qr-scanner";
30
30
  import mitt from "mitt";
31
31
  import { models as models$2 } from "@neutron.co.id/personalia-models";
32
32
  import { CatatSketchPad, CatatPaperPad } from "@neon.id/catat-interfaces";
33
- const _hoisted_1$m = { class: "xxx-button" };
34
- const _sfc_main$X = /* @__PURE__ */ defineComponent({
33
+ const _hoisted_1$p = { class: "xxx-button" };
34
+ const _sfc_main$10 = /* @__PURE__ */ defineComponent({
35
35
  ...{ name: "XxxButton" },
36
36
  __name: "XxxButton",
37
37
  props: {
@@ -42,18 +42,18 @@ const _sfc_main$X = /* @__PURE__ */ defineComponent({
42
42
  },
43
43
  setup(__props) {
44
44
  return (_ctx, _cache) => {
45
- return openBlock(), createElementBlock("div", _hoisted_1$m, [
45
+ return openBlock(), createElementBlock("div", _hoisted_1$p, [
46
46
  createVNode(unref(NeonButton), { label: "XXX" })
47
47
  ]);
48
48
  };
49
49
  }
50
50
  });
51
- const _hoisted_1$l = { class: "operasional-identitas" };
52
- const _hoisted_2$g = {
51
+ const _hoisted_1$o = { class: "operasional-identitas" };
52
+ const _hoisted_2$h = {
53
53
  key: 2,
54
54
  class: "section"
55
55
  };
56
- const _sfc_main$W = /* @__PURE__ */ defineComponent({
56
+ const _sfc_main$$ = /* @__PURE__ */ defineComponent({
57
57
  ...{ name: "OperasionalIdentitas" },
58
58
  __name: "OperasionalIdentitas",
59
59
  props: {
@@ -308,7 +308,7 @@ const _sfc_main$W = /* @__PURE__ */ defineComponent({
308
308
  candidateId.value = null;
309
309
  }
310
310
  return (_ctx, _cache) => {
311
- return openBlock(), createElementBlock("div", _hoisted_1$l, [
311
+ return openBlock(), createElementBlock("div", _hoisted_1$o, [
312
312
  state.value === "connect" ? (openBlock(), createBlock(unref(IdentitasConnect), {
313
313
  key: 0,
314
314
  user: user.value,
@@ -360,7 +360,7 @@ const _sfc_main$W = /* @__PURE__ */ defineComponent({
360
360
  _: 1
361
361
  /* STABLE */
362
362
  }, 8, ["initial-values", "is-loading", "errors"])) : createCommentVNode("v-if", true),
363
- user.value && onDelegate ? (openBlock(), createElementBlock("div", _hoisted_2$g, [
363
+ user.value && onDelegate ? (openBlock(), createElementBlock("div", _hoisted_2$h, [
364
364
  createVNode(unref(NeonDivider), {
365
365
  "is-dashed": "",
366
366
  label: "Delegasi",
@@ -409,7 +409,7 @@ const _export_sfc = (sfc, props) => {
409
409
  }
410
410
  return target;
411
411
  };
412
- const OperasionalIdentitas = /* @__PURE__ */ _export_sfc(_sfc_main$W, [["__scopeId", "data-v-355c8370"]]);
412
+ const OperasionalIdentitas = /* @__PURE__ */ _export_sfc(_sfc_main$$, [["__scopeId", "data-v-355c8370"]]);
413
413
  dayjs.extend(durationPlugin);
414
414
  dayjs.extend(relativeTimePlugin);
415
415
  dayjs.extend(advancedFormat);
@@ -421,21 +421,21 @@ class DateUtil {
421
421
  }
422
422
  }
423
423
  const _withScopeId$3 = (n) => (pushScopeId("data-v-805321b9"), n = n(), popScopeId(), n);
424
- const _hoisted_1$k = {
424
+ const _hoisted_1$n = {
425
425
  key: 0,
426
426
  class: "input-loading"
427
427
  };
428
- const _hoisted_2$f = /* @__PURE__ */ _withScopeId$3(() => /* @__PURE__ */ createElementVNode(
428
+ const _hoisted_2$g = /* @__PURE__ */ _withScopeId$3(() => /* @__PURE__ */ createElementVNode(
429
429
  "div",
430
430
  { class: "loading placeholder-block placeholder-wave" },
431
431
  null,
432
432
  -1
433
433
  /* HOISTED */
434
434
  ));
435
- const _hoisted_3$7 = [
436
- _hoisted_2$f
435
+ const _hoisted_3$8 = [
436
+ _hoisted_2$g
437
437
  ];
438
- const _sfc_main$V = /* @__PURE__ */ defineComponent({
438
+ const _sfc_main$_ = /* @__PURE__ */ defineComponent({
439
439
  __name: "NeonTime",
440
440
  props: {
441
441
  modelValue: {
@@ -472,7 +472,7 @@ const _sfc_main$V = /* @__PURE__ */ defineComponent({
472
472
  class: normalizeClass(["neon-time", { "is-disabled": __props.isDisabled }])
473
473
  },
474
474
  [
475
- __props.isLoading ? (openBlock(), createElementBlock("div", _hoisted_1$k, _hoisted_3$7)) : (openBlock(), createBlock(unref(DatePicker), mergeProps({
475
+ __props.isLoading ? (openBlock(), createElementBlock("div", _hoisted_1$n, _hoisted_3$8)) : (openBlock(), createBlock(unref(DatePicker), mergeProps({
476
476
  key: 1,
477
477
  "model-value": internalValue.value
478
478
  }, {
@@ -496,7 +496,7 @@ const _sfc_main$V = /* @__PURE__ */ defineComponent({
496
496
  });
497
497
  const NeonTime_vue_vue_type_style_index_0_scoped_805321b9_lang = "";
498
498
  const NeonTime_vue_vue_type_style_index_1_lang = "";
499
- const NeonTime = /* @__PURE__ */ _export_sfc(_sfc_main$V, [["__scopeId", "data-v-805321b9"]]);
499
+ const NeonTime = /* @__PURE__ */ _export_sfc(_sfc_main$_, [["__scopeId", "data-v-805321b9"]]);
500
500
  const CheckInModel = models$1.CheckInModel;
501
501
  const useOperasionalStore = defineStore("neu:operasional", () => {
502
502
  const isLoading = ref(false);
@@ -639,12 +639,12 @@ function withOperasional() {
639
639
  }
640
640
  }
641
641
  const bus = mitt();
642
- const _withScopeId$2 = (n) => (pushScopeId("data-v-ee60c24a"), n = n(), popScopeId(), n);
643
- const _hoisted_1$j = { id: "view-checkIns" };
644
- const _hoisted_2$e = { class: "summary" };
645
- const _hoisted_3$6 = { class: "wrapper" };
646
- const _hoisted_4$4 = { class: "header" };
647
- const _hoisted_5$3 = /* @__PURE__ */ _withScopeId$2(() => /* @__PURE__ */ createElementVNode(
642
+ const _withScopeId$2 = (n) => (pushScopeId("data-v-8637aebc"), n = n(), popScopeId(), n);
643
+ const _hoisted_1$m = { id: "view-checkIns" };
644
+ const _hoisted_2$f = { class: "summary" };
645
+ const _hoisted_3$7 = { class: "wrapper" };
646
+ const _hoisted_4$5 = { class: "header" };
647
+ const _hoisted_5$4 = /* @__PURE__ */ _withScopeId$2(() => /* @__PURE__ */ createElementVNode(
648
648
  "div",
649
649
  { class: "start" },
650
650
  [
@@ -654,8 +654,8 @@ const _hoisted_5$3 = /* @__PURE__ */ _withScopeId$2(() => /* @__PURE__ */ create
654
654
  -1
655
655
  /* HOISTED */
656
656
  ));
657
- const _hoisted_6$2 = { class: "end" };
658
- const _sfc_main$U = /* @__PURE__ */ defineComponent({
657
+ const _hoisted_6$3 = { class: "end" };
658
+ const _sfc_main$Z = /* @__PURE__ */ defineComponent({
659
659
  ...{
660
660
  name: "CheckInPresenceCollection"
661
661
  },
@@ -755,6 +755,7 @@ const _sfc_main$U = /* @__PURE__ */ defineComponent({
755
755
  id.value = await checkInStaff(data, type.value, (_a = staff.value) == null ? void 0 : _a.id);
756
756
  }
757
757
  async function checkInStaff(qrKey, type2, staffId) {
758
+ var _a;
758
759
  const toastId = "neu:personalia:staff:checkIn";
759
760
  let checkInId;
760
761
  console.log("bangunan...", qrKey);
@@ -765,7 +766,8 @@ const _sfc_main$U = /* @__PURE__ */ defineComponent({
765
766
  userId: userId.value,
766
767
  staffId,
767
768
  key: qrKey,
768
- type: type2
769
+ type: type2,
770
+ branchId: (_a = staff.value) == null ? void 0 : _a.branchId
769
771
  }
770
772
  }).toPromise();
771
773
  const data = resp.data.executeCheckIn.output;
@@ -810,14 +812,14 @@ const _sfc_main$U = /* @__PURE__ */ defineComponent({
810
812
  return (_ctx, _cache) => {
811
813
  const _component_CheckInSingleExternalView = resolveComponent("CheckInSingleExternalView");
812
814
  const _component_CheckInCollection = resolveComponent("CheckInCollection");
813
- return openBlock(), createElementBlock("div", _hoisted_1$j, [
815
+ return openBlock(), createElementBlock("div", _hoisted_1$m, [
814
816
  createVNode(unref(OfficeContent), {
815
817
  icon: "barcode-read",
816
818
  title: "Presensi",
817
819
  "is-expanded": ""
818
820
  }, {
819
821
  "header-detail": withCtx(() => [
820
- createElementVNode("div", _hoisted_2$e, [
822
+ createElementVNode("div", _hoisted_2$f, [
821
823
  createVNode(unref(NeonSlider), {
822
824
  "per-view": 2,
823
825
  gap: 16,
@@ -965,7 +967,7 @@ const _sfc_main$U = /* @__PURE__ */ defineComponent({
965
967
  ])
966
968
  ]),
967
969
  default: withCtx(() => [
968
- createElementVNode("div", _hoisted_3$6, [
970
+ createElementVNode("div", _hoisted_3$7, [
969
971
  createVNode(unref(NeonCollectionContext), {
970
972
  definition: "neu:tempat:checkIn",
971
973
  scope: "_checkIns",
@@ -980,9 +982,9 @@ const _sfc_main$U = /* @__PURE__ */ defineComponent({
980
982
  "is-main": ""
981
983
  }, {
982
984
  default: withCtx(() => [
983
- createElementVNode("div", _hoisted_4$4, [
984
- _hoisted_5$3,
985
- createElementVNode("div", _hoisted_6$2, [
985
+ createElementVNode("div", _hoisted_4$5, [
986
+ _hoisted_5$4,
987
+ createElementVNode("div", _hoisted_6$3, [
986
988
  createVNode(unref(OfficeCollectionQuery), { displays: ["table"] }, {
987
989
  default: withCtx(() => [
988
990
  createVNode(unref(OfficeCollectionOperation), { "is-main": "" })
@@ -1007,10 +1009,10 @@ const _sfc_main$U = /* @__PURE__ */ defineComponent({
1007
1009
  };
1008
1010
  }
1009
1011
  });
1010
- const CheckInPresenceCollection_vue_vue_type_style_index_0_scoped_ee60c24a_lang = "";
1011
- const CheckInPresenceCollection = /* @__PURE__ */ _export_sfc(_sfc_main$U, [["__scopeId", "data-v-ee60c24a"]]);
1012
- const _hoisted_1$i = { class: "grid gap-4 sm:grid-cols-2" };
1013
- const _sfc_main$T = /* @__PURE__ */ defineComponent({
1012
+ const CheckInPresenceCollection_vue_vue_type_style_index_0_scoped_8637aebc_lang = "";
1013
+ const CheckInPresenceCollection = /* @__PURE__ */ _export_sfc(_sfc_main$Z, [["__scopeId", "data-v-8637aebc"]]);
1014
+ const _hoisted_1$l = { class: "grid gap-4 sm:grid-cols-2" };
1015
+ const _sfc_main$Y = /* @__PURE__ */ defineComponent({
1014
1016
  __name: "CheckInSingle",
1015
1017
  setup(__props) {
1016
1018
  const {
@@ -1068,7 +1070,7 @@ const _sfc_main$T = /* @__PURE__ */ defineComponent({
1068
1070
  field: unref(fields).building,
1069
1071
  "is-disabled": ""
1070
1072
  }, null, 8, ["modelValue", "field"]),
1071
- createElementVNode("div", _hoisted_1$i, [
1073
+ createElementVNode("div", _hoisted_1$l, [
1072
1074
  createVNode(unref(NeonField), mergeProps({
1073
1075
  modelValue: unref(values).type,
1074
1076
  "onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => unref(values).type = $event)
@@ -1108,9 +1110,9 @@ const _sfc_main$T = /* @__PURE__ */ defineComponent({
1108
1110
  }
1109
1111
  });
1110
1112
  const CheckInSingle_vue_vue_type_style_index_0_scoped_2e2803fb_lang = "";
1111
- const CheckInSingle = /* @__PURE__ */ _export_sfc(_sfc_main$T, [["__scopeId", "data-v-2e2803fb"]]);
1112
- const _hoisted_1$h = { class: "grid gap-4 sm:grid-cols-2" };
1113
- const _sfc_main$S = /* @__PURE__ */ defineComponent({
1113
+ const CheckInSingle = /* @__PURE__ */ _export_sfc(_sfc_main$Y, [["__scopeId", "data-v-2e2803fb"]]);
1114
+ const _hoisted_1$k = { class: "grid gap-4 sm:grid-cols-2" };
1115
+ const _sfc_main$X = /* @__PURE__ */ defineComponent({
1114
1116
  __name: "CheckInExternal",
1115
1117
  setup(__props) {
1116
1118
  const {
@@ -1175,15 +1177,16 @@ const _sfc_main$S = /* @__PURE__ */ defineComponent({
1175
1177
  modelValue: unref(values),
1176
1178
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => isRef(values) ? values.value = $event : null),
1177
1179
  field: unref(fields).building,
1178
- "is-disabled": unref(values).type === "checkin" || unref(values).type === "checkout"
1180
+ "is-disabled": unref(values).type === "checkin" || unref(values).type === "checkout" || unref(values).type === "out"
1179
1181
  }, null, 8, ["modelValue", "field", "is-disabled"])) : createCommentVNode("v-if", true),
1180
- createElementVNode("div", _hoisted_1$h, [
1182
+ createElementVNode("div", _hoisted_1$k, [
1181
1183
  createVNode(unref(NeonField), mergeProps({
1182
1184
  modelValue: unref(values).type,
1183
1185
  "onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => unref(values).type = $event)
1184
1186
  }, unref(fields).type, {
1185
- "is-disabled": !unref(permit).isAny(["neu:cabangOperasional", "neu:admin"])
1187
+ "is-disabled": unref(values).type === "checkin" || unref(values).type === "checkout" || unref(values).type === "out" || unref(values).type === "checkpoint"
1186
1188
  }), null, 16, ["modelValue", "is-disabled"]),
1189
+ createCommentVNode(" !permit.isAny(['neu:cabangOperasional', 'neu:admin']) "),
1187
1190
  createVNode(unref(NeonField), mergeProps({
1188
1191
  modelValue: unref(values).checkInAt,
1189
1192
  "onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => unref(values).checkInAt = $event)
@@ -1222,17 +1225,17 @@ const _sfc_main$S = /* @__PURE__ */ defineComponent({
1222
1225
  };
1223
1226
  }
1224
1227
  });
1225
- const CheckInExternal_vue_vue_type_style_index_0_scoped_dcdbc71a_lang = "";
1226
- const CheckInExternal = /* @__PURE__ */ _export_sfc(_sfc_main$S, [["__scopeId", "data-v-dcdbc71a"]]);
1228
+ const CheckInExternal_vue_vue_type_style_index_0_scoped_a269bce2_lang = "";
1229
+ const CheckInExternal = /* @__PURE__ */ _export_sfc(_sfc_main$X, [["__scopeId", "data-v-a269bce2"]]);
1227
1230
  const _withScopeId$1 = (n) => (pushScopeId("data-v-d23b6de5"), n = n(), popScopeId(), n);
1228
- const _hoisted_1$g = /* @__PURE__ */ _withScopeId$1(() => /* @__PURE__ */ createElementVNode(
1231
+ const _hoisted_1$j = /* @__PURE__ */ _withScopeId$1(() => /* @__PURE__ */ createElementVNode(
1229
1232
  "h4",
1230
1233
  { align: "center" },
1231
1234
  "Aktifkan kamera untuk scan QR Code",
1232
1235
  -1
1233
1236
  /* HOISTED */
1234
1237
  ));
1235
- const _hoisted_2$d = /* @__PURE__ */ _withScopeId$1(() => /* @__PURE__ */ createElementVNode(
1238
+ const _hoisted_2$e = /* @__PURE__ */ _withScopeId$1(() => /* @__PURE__ */ createElementVNode(
1236
1239
  "p",
1237
1240
  { align: "center" },
1238
1241
  [
@@ -1243,7 +1246,7 @@ const _hoisted_2$d = /* @__PURE__ */ _withScopeId$1(() => /* @__PURE__ */ create
1243
1246
  -1
1244
1247
  /* HOISTED */
1245
1248
  ));
1246
- const _sfc_main$R = /* @__PURE__ */ defineComponent({
1249
+ const _sfc_main$W = /* @__PURE__ */ defineComponent({
1247
1250
  __name: "CheckInAccess",
1248
1251
  emits: ["close"],
1249
1252
  setup(__props) {
@@ -1268,8 +1271,8 @@ const _sfc_main$R = /* @__PURE__ */ defineComponent({
1268
1271
  onClose: _cache[0] || (_cache[0] = ($event) => _ctx.$emit("close"))
1269
1272
  }, {
1270
1273
  default: withCtx(() => [
1271
- _hoisted_1$g,
1272
- _hoisted_2$d,
1274
+ _hoisted_1$j,
1275
+ _hoisted_2$e,
1273
1276
  createVNode(unref(NeonButton), {
1274
1277
  "is-full": "",
1275
1278
  size: "md",
@@ -1296,9 +1299,9 @@ const _sfc_main$R = /* @__PURE__ */ defineComponent({
1296
1299
  }
1297
1300
  });
1298
1301
  const CheckInAccess_vue_vue_type_style_index_0_scoped_d23b6de5_lang = "";
1299
- const CheckInAccess = /* @__PURE__ */ _export_sfc(_sfc_main$R, [["__scopeId", "data-v-d23b6de5"]]);
1300
- const _hoisted_1$f = { class: "buttons" };
1301
- const _sfc_main$Q = /* @__PURE__ */ defineComponent({
1302
+ const CheckInAccess = /* @__PURE__ */ _export_sfc(_sfc_main$W, [["__scopeId", "data-v-d23b6de5"]]);
1303
+ const _hoisted_1$i = { class: "buttons" };
1304
+ const _sfc_main$V = /* @__PURE__ */ defineComponent({
1302
1305
  __name: "CheckInScanError",
1303
1306
  setup(__props) {
1304
1307
  const attendanceStore = useAttendanceStore();
@@ -1311,7 +1314,7 @@ const _sfc_main$Q = /* @__PURE__ */ defineComponent({
1311
1314
  default: withCtx(() => [
1312
1315
  createVNode(unref(NeonSheet), null, {
1313
1316
  footer: withCtx(() => [
1314
- createElementVNode("div", _hoisted_1$f, [
1317
+ createElementVNode("div", _hoisted_1$i, [
1315
1318
  createVNode(unref(NeonButton), {
1316
1319
  "is-full": "",
1317
1320
  "is-rounded": "",
@@ -1346,23 +1349,23 @@ const _sfc_main$Q = /* @__PURE__ */ defineComponent({
1346
1349
  }
1347
1350
  });
1348
1351
  const _withScopeId = (n) => (pushScopeId("data-v-ef426ef3"), n = n(), popScopeId(), n);
1349
- const _hoisted_1$e = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode(
1352
+ const _hoisted_1$h = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode(
1350
1353
  "div",
1351
1354
  { class: "invalid-message" },
1352
1355
  "Invalid Code!",
1353
1356
  -1
1354
1357
  /* HOISTED */
1355
1358
  ));
1356
- const _hoisted_2$c = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode(
1359
+ const _hoisted_2$d = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode(
1357
1360
  "div",
1358
1361
  null,
1359
1362
  null,
1360
1363
  -1
1361
1364
  /* HOISTED */
1362
1365
  ));
1363
- const _hoisted_3$5 = ["onClick"];
1364
- const _hoisted_4$3 = { class: "mr-2 text-sm" };
1365
- const _sfc_main$P = /* @__PURE__ */ defineComponent({
1366
+ const _hoisted_3$6 = ["onClick"];
1367
+ const _hoisted_4$4 = { class: "mr-2 text-sm" };
1368
+ const _sfc_main$U = /* @__PURE__ */ defineComponent({
1366
1369
  __name: "CheckInScanner",
1367
1370
  emits: ["start", "stop", "scanned", "close"],
1368
1371
  setup(__props, { emit }) {
@@ -1507,15 +1510,15 @@ const _sfc_main$P = /* @__PURE__ */ defineComponent({
1507
1510
  class: "inner",
1508
1511
  onClick: switchCamera
1509
1512
  }, [
1510
- _hoisted_1$e,
1511
- _hoisted_2$c,
1513
+ _hoisted_1$h,
1514
+ _hoisted_2$d,
1512
1515
  createElementVNode("div", {
1513
1516
  class: "button-switch",
1514
1517
  onClick: withModifiers(switchCamera, ["stop"])
1515
1518
  }, [
1516
1519
  createElementVNode(
1517
1520
  "div",
1518
- _hoisted_4$3,
1521
+ _hoisted_4$4,
1519
1522
  toDisplayString(currentCamera.value),
1520
1523
  1
1521
1524
  /* TEXT */
@@ -1526,7 +1529,7 @@ const _sfc_main$P = /* @__PURE__ */ defineComponent({
1526
1529
  size: "sm",
1527
1530
  "is-disabled": !canSwitch.value
1528
1531
  }, null, 8, ["is-disabled"])
1529
- ], 8, _hoisted_3$5)
1532
+ ], 8, _hoisted_3$6)
1530
1533
  ])
1531
1534
  ],
1532
1535
  2
@@ -1544,15 +1547,15 @@ const _sfc_main$P = /* @__PURE__ */ defineComponent({
1544
1547
  }
1545
1548
  });
1546
1549
  const CheckInScanner_vue_vue_type_style_index_0_scoped_ef426ef3_lang = "";
1547
- const CheckInScanner = /* @__PURE__ */ _export_sfc(_sfc_main$P, [["__scopeId", "data-v-ef426ef3"]]);
1548
- const _hoisted_1$d = /* @__PURE__ */ createElementVNode(
1550
+ const CheckInScanner = /* @__PURE__ */ _export_sfc(_sfc_main$U, [["__scopeId", "data-v-ef426ef3"]]);
1551
+ const _hoisted_1$g = /* @__PURE__ */ createElementVNode(
1549
1552
  "h3",
1550
1553
  { align: "center" },
1551
1554
  "Presensi Berhasil!",
1552
1555
  -1
1553
1556
  /* HOISTED */
1554
1557
  );
1555
- const _sfc_main$O = /* @__PURE__ */ defineComponent({
1558
+ const _sfc_main$T = /* @__PURE__ */ defineComponent({
1556
1559
  __name: "CheckInScanSuccess",
1557
1560
  emits: ["close"],
1558
1561
  setup(__props) {
@@ -1572,7 +1575,7 @@ const _sfc_main$O = /* @__PURE__ */ defineComponent({
1572
1575
  onClose: _cache[0] || (_cache[0] = ($event) => _ctx.$emit("close"))
1573
1576
  }, {
1574
1577
  default: withCtx(() => [
1575
- _hoisted_1$d
1578
+ _hoisted_1$g
1576
1579
  ]),
1577
1580
  _: 1
1578
1581
  /* STABLE */
@@ -1584,7 +1587,7 @@ const _sfc_main$O = /* @__PURE__ */ defineComponent({
1584
1587
  };
1585
1588
  }
1586
1589
  });
1587
- const _sfc_main$N = /* @__PURE__ */ defineComponent({
1590
+ const _sfc_main$S = /* @__PURE__ */ defineComponent({
1588
1591
  ...{
1589
1592
  name: "CheckInCollection"
1590
1593
  },
@@ -1602,8 +1605,124 @@ const _sfc_main$N = /* @__PURE__ */ defineComponent({
1602
1605
  };
1603
1606
  }
1604
1607
  });
1608
+ const _hoisted_1$f = { class: "grid gap-4 sm:grid-cols-2" };
1609
+ const _sfc_main$R = /* @__PURE__ */ defineComponent({
1610
+ __name: "CheckInSupervisor",
1611
+ setup(__props) {
1612
+ const {
1613
+ fields,
1614
+ id,
1615
+ initialValues,
1616
+ values,
1617
+ isLoading,
1618
+ isChanged,
1619
+ isReady,
1620
+ isMain,
1621
+ isNew,
1622
+ saveOne,
1623
+ discardChanges,
1624
+ getOne
1625
+ } = useSingle();
1626
+ const route = useRoute();
1627
+ const permit = usePermit();
1628
+ const { staff } = useOperasional();
1629
+ const isOperasional = computed(() => {
1630
+ var _a;
1631
+ return (_a = route.name) == null ? void 0 : _a.includes("rapor");
1632
+ });
1633
+ onMounted(() => {
1634
+ var _a, _b, _c;
1635
+ console.log("idnya?", id.value);
1636
+ if (id.value === "new" && isOperasional) {
1637
+ values.value.staffId = (_a = staff.value) == null ? void 0 : _a.id;
1638
+ values.value.staff = {
1639
+ id: (_b = staff.value) == null ? void 0 : _b.id,
1640
+ display: (_c = staff.value) == null ? void 0 : _c.display
1641
+ };
1642
+ values.value.checkInAt = (/* @__PURE__ */ new Date()).toISOString();
1643
+ values.value.type = "checkpoint";
1644
+ } else {
1645
+ values.value.checkInAt = (/* @__PURE__ */ new Date()).toISOString();
1646
+ }
1647
+ });
1648
+ return (_ctx, _cache) => {
1649
+ return openBlock(), createBlock(unref(NeonSingle), { class: "neu-checkIn-single" }, {
1650
+ default: withCtx(() => [
1651
+ createVNode(unref(OfficeTabs), { "use-url": unref(isMain) }, {
1652
+ default: withCtx(() => [
1653
+ createVNode(unref(OfficeTab), {
1654
+ handle: "info",
1655
+ icon: "circle-info",
1656
+ title: "Info"
1657
+ }, {
1658
+ default: withCtx(() => [
1659
+ createVNode(unref(NeonForm), {
1660
+ handle: "info",
1661
+ "initial-values": unref(initialValues),
1662
+ "is-loading": unref(isLoading),
1663
+ "is-changed": unref(isChanged),
1664
+ "use-unsaved": "",
1665
+ onCancel: unref(discardChanges),
1666
+ onSubmit: unref(saveOne)
1667
+ }, {
1668
+ default: withCtx(() => [
1669
+ unref(values).type === "in" || unref(values).type === "out" || unref(values).type === "checkin" || unref(values).type === "checkout" ? (openBlock(), createBlock(unref(OfficeRelation), {
1670
+ key: 0,
1671
+ modelValue: unref(values),
1672
+ "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => isRef(values) ? values.value = $event : null),
1673
+ field: unref(fields).building,
1674
+ "is-disabled": unref(values).type === "checkin" || unref(values).type === "checkout" || unref(values).type === "out"
1675
+ }, null, 8, ["modelValue", "field", "is-disabled"])) : createCommentVNode("v-if", true),
1676
+ createElementVNode("div", _hoisted_1$f, [
1677
+ createVNode(unref(NeonField), mergeProps({
1678
+ modelValue: unref(values).type,
1679
+ "onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => unref(values).type = $event)
1680
+ }, unref(fields).type, {
1681
+ "is-disabled": unref(values).type === "checkin" || unref(values).type === "checkout" || unref(values).type === "out" || unref(values).type === "checkpoint"
1682
+ }), null, 16, ["modelValue", "is-disabled"]),
1683
+ createCommentVNode(" !permit.isAny(['neu:cabangOperasional', 'neu:admin']) "),
1684
+ createVNode(unref(NeonField), mergeProps({
1685
+ modelValue: unref(values).checkInAt,
1686
+ "onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => unref(values).checkInAt = $event)
1687
+ }, unref(fields).checkInAt, { "is-disabled": "" }), null, 16, ["modelValue"])
1688
+ ]),
1689
+ createVNode(unref(OfficeRelation), {
1690
+ modelValue: unref(values),
1691
+ "onUpdate:modelValue": _cache[3] || (_cache[3] = ($event) => isRef(values) ? values.value = $event : null),
1692
+ field: unref(fields).staff,
1693
+ "is-disabled": !unref(permit).isAny([
1694
+ "neu:cabangOperasional",
1695
+ "neu:admin",
1696
+ "neu:karyawan"
1697
+ ])
1698
+ }, null, 8, ["modelValue", "field", "is-disabled"]),
1699
+ createVNode(unref(NeonField), mergeProps({
1700
+ modelValue: unref(values).note,
1701
+ "onUpdate:modelValue": _cache[4] || (_cache[4] = ($event) => unref(values).note = $event)
1702
+ }, unref(fields).note), null, 16, ["modelValue"])
1703
+ ]),
1704
+ _: 1
1705
+ /* STABLE */
1706
+ }, 8, ["initial-values", "is-loading", "is-changed", "onCancel", "onSubmit"])
1707
+ ]),
1708
+ _: 1
1709
+ /* STABLE */
1710
+ })
1711
+ ]),
1712
+ _: 1
1713
+ /* STABLE */
1714
+ }, 8, ["use-url"])
1715
+ ]),
1716
+ _: 1
1717
+ /* STABLE */
1718
+ });
1719
+ };
1720
+ }
1721
+ });
1722
+ const CheckInSupervisor_vue_vue_type_style_index_0_scoped_235231fa_lang = "";
1723
+ const CheckInSupervisor = /* @__PURE__ */ _export_sfc(_sfc_main$R, [["__scopeId", "data-v-235231fa"]]);
1605
1724
  const StaffModel = models$2.StaffModel;
1606
- const _sfc_main$M = /* @__PURE__ */ defineComponent({
1725
+ const _sfc_main$Q = /* @__PURE__ */ defineComponent({
1607
1726
  ...{
1608
1727
  name: "StaffCollection"
1609
1728
  },
@@ -1621,9 +1740,9 @@ const _sfc_main$M = /* @__PURE__ */ defineComponent({
1621
1740
  };
1622
1741
  }
1623
1742
  });
1624
- const _hoisted_1$c = { class: "grid gap-4 sm:grid-cols-[3fr_1fr]" };
1625
- const _hoisted_2$b = { class: "grid gap-4 sm:grid-cols-2" };
1626
- const _sfc_main$L = /* @__PURE__ */ defineComponent({
1743
+ const _hoisted_1$e = { class: "grid gap-4 sm:grid-cols-[3fr_1fr]" };
1744
+ const _hoisted_2$c = { class: "grid gap-4 sm:grid-cols-2" };
1745
+ const _sfc_main$P = /* @__PURE__ */ defineComponent({
1627
1746
  __name: "StaffSingle",
1628
1747
  setup(__props) {
1629
1748
  const {
@@ -1660,7 +1779,7 @@ const _sfc_main$L = /* @__PURE__ */ defineComponent({
1660
1779
  onSubmit: unref(saveOne)
1661
1780
  }, {
1662
1781
  default: withCtx(() => [
1663
- createElementVNode("div", _hoisted_1$c, [
1782
+ createElementVNode("div", _hoisted_1$e, [
1664
1783
  createVNode(unref(NeonField), mergeProps({
1665
1784
  modelValue: unref(values).name,
1666
1785
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => unref(values).name = $event)
@@ -1670,7 +1789,7 @@ const _sfc_main$L = /* @__PURE__ */ defineComponent({
1670
1789
  "onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => unref(values).nik = $event)
1671
1790
  }, unref(fields).nik), null, 16, ["modelValue"])
1672
1791
  ]),
1673
- createElementVNode("div", _hoisted_2$b, [
1792
+ createElementVNode("div", _hoisted_2$c, [
1674
1793
  createVNode(unref(NeonField), mergeProps({
1675
1794
  modelValue: unref(values).birthPlace,
1676
1795
  "onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => unref(values).birthPlace = $event)
@@ -1703,7 +1822,7 @@ const _sfc_main$L = /* @__PURE__ */ defineComponent({
1703
1822
  title: "Identitas"
1704
1823
  }, {
1705
1824
  default: withCtx(() => [
1706
- createVNode(unref(_sfc_main$J))
1825
+ createVNode(unref(_sfc_main$N))
1707
1826
  ]),
1708
1827
  _: 1
1709
1828
  /* STABLE */
@@ -1774,10 +1893,10 @@ const _sfc_main$L = /* @__PURE__ */ defineComponent({
1774
1893
  }
1775
1894
  });
1776
1895
  const StaffSingle_vue_vue_type_style_index_0_scoped_0cf4cd99_lang = "";
1777
- const StaffSingle = /* @__PURE__ */ _export_sfc(_sfc_main$L, [["__scopeId", "data-v-0cf4cd99"]]);
1778
- const _hoisted_1$b = { class: "grid gap-4 sm:grid-cols-[3fr_1fr]" };
1779
- const _hoisted_2$a = { class: "grid gap-4 sm:grid-cols-2" };
1780
- const _sfc_main$K = /* @__PURE__ */ defineComponent({
1896
+ const StaffSingle = /* @__PURE__ */ _export_sfc(_sfc_main$P, [["__scopeId", "data-v-0cf4cd99"]]);
1897
+ const _hoisted_1$d = { class: "grid gap-4 sm:grid-cols-[3fr_1fr]" };
1898
+ const _hoisted_2$b = { class: "grid gap-4 sm:grid-cols-2" };
1899
+ const _sfc_main$O = /* @__PURE__ */ defineComponent({
1781
1900
  __name: "StaffOperasional",
1782
1901
  setup(__props) {
1783
1902
  const {
@@ -1814,7 +1933,7 @@ const _sfc_main$K = /* @__PURE__ */ defineComponent({
1814
1933
  onSubmit: unref(saveOne)
1815
1934
  }, {
1816
1935
  default: withCtx(() => [
1817
- createElementVNode("div", _hoisted_1$b, [
1936
+ createElementVNode("div", _hoisted_1$d, [
1818
1937
  createVNode(unref(NeonField), mergeProps({
1819
1938
  modelValue: unref(values).name,
1820
1939
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => unref(values).name = $event)
@@ -1824,7 +1943,7 @@ const _sfc_main$K = /* @__PURE__ */ defineComponent({
1824
1943
  "onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => unref(values).nik = $event)
1825
1944
  }, unref(fields).nik), null, 16, ["modelValue"])
1826
1945
  ]),
1827
- createElementVNode("div", _hoisted_2$a, [
1946
+ createElementVNode("div", _hoisted_2$b, [
1828
1947
  createVNode(unref(NeonField), mergeProps({
1829
1948
  modelValue: unref(values).birthPlace,
1830
1949
  "onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => unref(values).birthPlace = $event)
@@ -1857,7 +1976,7 @@ const _sfc_main$K = /* @__PURE__ */ defineComponent({
1857
1976
  title: "Identitas"
1858
1977
  }, {
1859
1978
  default: withCtx(() => [
1860
- createVNode(unref(_sfc_main$J))
1979
+ createVNode(unref(_sfc_main$N))
1861
1980
  ]),
1862
1981
  _: 1
1863
1982
  /* STABLE */
@@ -1935,8 +2054,8 @@ const _sfc_main$K = /* @__PURE__ */ defineComponent({
1935
2054
  }
1936
2055
  });
1937
2056
  const StaffOperasional_vue_vue_type_style_index_0_scoped_c62cf70a_lang = "";
1938
- const StaffOperasional = /* @__PURE__ */ _export_sfc(_sfc_main$K, [["__scopeId", "data-v-c62cf70a"]]);
1939
- const _sfc_main$J = /* @__PURE__ */ defineComponent({
2057
+ const StaffOperasional = /* @__PURE__ */ _export_sfc(_sfc_main$O, [["__scopeId", "data-v-c62cf70a"]]);
2058
+ const _sfc_main$N = /* @__PURE__ */ defineComponent({
1940
2059
  __name: "StaffIdentity",
1941
2060
  setup(__props) {
1942
2061
  const { values, saveOne, executeOne, syncOne } = useSingle();
@@ -2024,7 +2143,7 @@ const _sfc_main$J = /* @__PURE__ */ defineComponent({
2024
2143
  // OPERASIONAL
2025
2144
  {
2026
2145
  id: "64a686ba3fe0bb481faa0f8b",
2027
- name: "Pengelola Tanggungjawab"
2146
+ name: "Pengelola SDM"
2028
2147
  },
2029
2148
  {
2030
2149
  id: "64a687823fe0bb481faa0fba",
@@ -2032,7 +2151,7 @@ const _sfc_main$J = /* @__PURE__ */ defineComponent({
2032
2151
  },
2033
2152
  {
2034
2153
  id: "64a687b93fe0bb481faa0fd6",
2035
- name: "Pengawas Progress"
2154
+ name: "Pengawas SDM"
2036
2155
  },
2037
2156
  {
2038
2157
  id: "64a687ed3fe0bb481faa0ff2",
@@ -2110,7 +2229,7 @@ const _sfc_main$J = /* @__PURE__ */ defineComponent({
2110
2229
  }
2111
2230
  });
2112
2231
  const SituationModel = models$2.SituationModel;
2113
- const _sfc_main$I = /* @__PURE__ */ defineComponent({
2232
+ const _sfc_main$M = /* @__PURE__ */ defineComponent({
2114
2233
  ...{ name: "SituationCollection" },
2115
2234
  __name: "SituationCollection",
2116
2235
  setup(__props) {
@@ -2126,7 +2245,7 @@ const _sfc_main$I = /* @__PURE__ */ defineComponent({
2126
2245
  };
2127
2246
  }
2128
2247
  });
2129
- const _sfc_main$H = /* @__PURE__ */ defineComponent({
2248
+ const _sfc_main$L = /* @__PURE__ */ defineComponent({
2130
2249
  __name: "SituationSingle",
2131
2250
  setup(__props) {
2132
2251
  const {
@@ -2264,7 +2383,7 @@ const _sfc_main$H = /* @__PURE__ */ defineComponent({
2264
2383
  };
2265
2384
  }
2266
2385
  });
2267
- const _sfc_main$G = /* @__PURE__ */ defineComponent({
2386
+ const _sfc_main$K = /* @__PURE__ */ defineComponent({
2268
2387
  __name: "SituationWork",
2269
2388
  setup(__props) {
2270
2389
  const {
@@ -2445,7 +2564,7 @@ const _sfc_main$G = /* @__PURE__ */ defineComponent({
2445
2564
  };
2446
2565
  }
2447
2566
  });
2448
- const _sfc_main$F = /* @__PURE__ */ defineComponent({
2567
+ const _sfc_main$J = /* @__PURE__ */ defineComponent({
2449
2568
  ...{ name: "SituationSupportive" },
2450
2569
  __name: "SituationSupportive",
2451
2570
  setup(__props) {
@@ -2584,7 +2703,7 @@ const _sfc_main$F = /* @__PURE__ */ defineComponent({
2584
2703
  }
2585
2704
  });
2586
2705
  const SituationTypeModel = models$2.SituationTypeModel;
2587
- const _sfc_main$E = /* @__PURE__ */ defineComponent({
2706
+ const _sfc_main$I = /* @__PURE__ */ defineComponent({
2588
2707
  ...{ name: "SituationTypeCollection" },
2589
2708
  __name: "SituationTypeCollection",
2590
2709
  setup(__props) {
@@ -2600,7 +2719,7 @@ const _sfc_main$E = /* @__PURE__ */ defineComponent({
2600
2719
  };
2601
2720
  }
2602
2721
  });
2603
- const _sfc_main$D = /* @__PURE__ */ defineComponent({
2722
+ const _sfc_main$H = /* @__PURE__ */ defineComponent({
2604
2723
  __name: "SituationTypeSingle",
2605
2724
  setup(__props) {
2606
2725
  const {
@@ -2673,9 +2792,9 @@ const _sfc_main$D = /* @__PURE__ */ defineComponent({
2673
2792
  }
2674
2793
  });
2675
2794
  const TaskModel = models$2.TaskModel;
2676
- const _hoisted_1$a = { key: 0 };
2677
- const _hoisted_2$9 = { key: 1 };
2678
- const _sfc_main$C = /* @__PURE__ */ defineComponent({
2795
+ const _hoisted_1$c = { key: 0 };
2796
+ const _hoisted_2$a = { key: 1 };
2797
+ const _sfc_main$G = /* @__PURE__ */ defineComponent({
2679
2798
  ...{ name: "TaskWorkButton" },
2680
2799
  __name: "TaskWorkButton",
2681
2800
  setup(__props) {
@@ -2768,7 +2887,7 @@ const _sfc_main$C = /* @__PURE__ */ defineComponent({
2768
2887
  Fragment,
2769
2888
  null,
2770
2889
  [
2771
- onHandleTaskWork.value.onStartTaskWorking ? (openBlock(), createElementBlock("div", _hoisted_1$a, [
2890
+ onHandleTaskWork.value.onStartTaskWorking ? (openBlock(), createElementBlock("div", _hoisted_1$c, [
2772
2891
  createVNode(unref(NeonButton), {
2773
2892
  "is-rounded": true,
2774
2893
  size: "sm",
@@ -2778,7 +2897,7 @@ const _sfc_main$C = /* @__PURE__ */ defineComponent({
2778
2897
  onClick: onClickHandlerStartTaskWork
2779
2898
  })
2780
2899
  ])) : createCommentVNode("v-if", true),
2781
- onHandleTaskWork.value.onFinishedTaskWorking ? (openBlock(), createElementBlock("div", _hoisted_2$9, [
2900
+ onHandleTaskWork.value.onFinishedTaskWorking ? (openBlock(), createElementBlock("div", _hoisted_2$a, [
2782
2901
  createVNode(unref(NeonButton), {
2783
2902
  "is-rounded": true,
2784
2903
  size: "sm",
@@ -2796,7 +2915,7 @@ const _sfc_main$C = /* @__PURE__ */ defineComponent({
2796
2915
  };
2797
2916
  }
2798
2917
  });
2799
- const _sfc_main$B = /* @__PURE__ */ defineComponent({
2918
+ const _sfc_main$F = /* @__PURE__ */ defineComponent({
2800
2919
  ...{ name: "TaskCollection" },
2801
2920
  __name: "TaskCollection",
2802
2921
  setup(__props) {
@@ -2812,7 +2931,7 @@ const _sfc_main$B = /* @__PURE__ */ defineComponent({
2812
2931
  };
2813
2932
  }
2814
2933
  });
2815
- const _sfc_main$A = /* @__PURE__ */ defineComponent({
2934
+ const _sfc_main$E = /* @__PURE__ */ defineComponent({
2816
2935
  __name: "TaskSingle",
2817
2936
  setup(__props) {
2818
2937
  const {
@@ -3035,7 +3154,7 @@ const _sfc_main$A = /* @__PURE__ */ defineComponent({
3035
3154
  };
3036
3155
  }
3037
3156
  });
3038
- const _sfc_main$z = /* @__PURE__ */ defineComponent({
3157
+ const _sfc_main$D = /* @__PURE__ */ defineComponent({
3039
3158
  __name: "TaskWork",
3040
3159
  setup(__props) {
3041
3160
  const {
@@ -3258,7 +3377,7 @@ const _sfc_main$z = /* @__PURE__ */ defineComponent({
3258
3377
  }
3259
3378
  });
3260
3379
  const SubmissionModel = models$2.SubmissionModel;
3261
- const _sfc_main$y = /* @__PURE__ */ defineComponent({
3380
+ const _sfc_main$C = /* @__PURE__ */ defineComponent({
3262
3381
  ...{
3263
3382
  name: "SubmissionCollection"
3264
3383
  },
@@ -3276,7 +3395,7 @@ const _sfc_main$y = /* @__PURE__ */ defineComponent({
3276
3395
  };
3277
3396
  }
3278
3397
  });
3279
- const _sfc_main$x = /* @__PURE__ */ defineComponent({
3398
+ const _sfc_main$B = /* @__PURE__ */ defineComponent({
3280
3399
  __name: "SubmissionSingle",
3281
3400
  setup(__props) {
3282
3401
  const {
@@ -3474,8 +3593,8 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
3474
3593
  }
3475
3594
  });
3476
3595
  const SubmissionSingle_vue_vue_type_style_index_0_scoped_db121b49_lang = "";
3477
- const SubmissionSingle = /* @__PURE__ */ _export_sfc(_sfc_main$x, [["__scopeId", "data-v-db121b49"]]);
3478
- const _sfc_main$w = /* @__PURE__ */ defineComponent({
3596
+ const SubmissionSingle = /* @__PURE__ */ _export_sfc(_sfc_main$B, [["__scopeId", "data-v-db121b49"]]);
3597
+ const _sfc_main$A = /* @__PURE__ */ defineComponent({
3479
3598
  __name: "SubmissionStaff",
3480
3599
  setup(__props) {
3481
3600
  var _a;
@@ -3759,8 +3878,8 @@ const _sfc_main$w = /* @__PURE__ */ defineComponent({
3759
3878
  }
3760
3879
  });
3761
3880
  const SubmissionStaff_vue_vue_type_style_index_0_scoped_c971a3c0_lang = "";
3762
- const SubmissionStaff = /* @__PURE__ */ _export_sfc(_sfc_main$w, [["__scopeId", "data-v-c971a3c0"]]);
3763
- const _sfc_main$v = /* @__PURE__ */ defineComponent({
3881
+ const SubmissionStaff = /* @__PURE__ */ _export_sfc(_sfc_main$A, [["__scopeId", "data-v-c971a3c0"]]);
3882
+ const _sfc_main$z = /* @__PURE__ */ defineComponent({
3764
3883
  __name: "SubmissionFollowUp",
3765
3884
  setup(__props) {
3766
3885
  const {
@@ -3952,13 +4071,13 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
3952
4071
  }
3953
4072
  });
3954
4073
  const SubmissionFollowUp_vue_vue_type_style_index_0_scoped_890dfdf2_lang = "";
3955
- const SubmissionFollowUp = /* @__PURE__ */ _export_sfc(_sfc_main$v, [["__scopeId", "data-v-890dfdf2"]]);
3956
- const _hoisted_1$9 = { class: "flex flex-wrap" };
3957
- const _hoisted_2$8 = { class: "mt-2" };
3958
- const _hoisted_3$4 = { class: "mt-2" };
3959
- const _hoisted_4$2 = { class: "mt-2" };
3960
- const _hoisted_5$2 = { class: "mt-2" };
3961
- const _sfc_main$u = /* @__PURE__ */ defineComponent({
4074
+ const SubmissionFollowUp = /* @__PURE__ */ _export_sfc(_sfc_main$z, [["__scopeId", "data-v-890dfdf2"]]);
4075
+ const _hoisted_1$b = { class: "flex flex-wrap" };
4076
+ const _hoisted_2$9 = { class: "mt-2" };
4077
+ const _hoisted_3$5 = { class: "mt-2" };
4078
+ const _hoisted_4$3 = { class: "mt-2" };
4079
+ const _hoisted_5$3 = { class: "mt-2" };
4080
+ const _sfc_main$y = /* @__PURE__ */ defineComponent({
3962
4081
  __name: "SubmissionAudit",
3963
4082
  setup(__props) {
3964
4083
  var _a;
@@ -4062,8 +4181,8 @@ const _sfc_main$u = /* @__PURE__ */ defineComponent({
4062
4181
  onSubmit: unref(saveOne)
4063
4182
  }, {
4064
4183
  default: withCtx(() => [
4065
- createElementVNode("div", _hoisted_1$9, [
4066
- createElementVNode("div", _hoisted_2$8, [
4184
+ createElementVNode("div", _hoisted_1$b, [
4185
+ createElementVNode("div", _hoisted_2$9, [
4067
4186
  unref(isReady) ? (openBlock(), createBlock(unref(NeonField), { key: 0 }, {
4068
4187
  input: withCtx(() => [
4069
4188
  createVNode(unref(NeonButton), {
@@ -4085,7 +4204,7 @@ const _sfc_main$u = /* @__PURE__ */ defineComponent({
4085
4204
  })) : createCommentVNode("v-if", true)
4086
4205
  ]),
4087
4206
  createTextVNode("    "),
4088
- createElementVNode("div", _hoisted_3$4, [
4207
+ createElementVNode("div", _hoisted_3$5, [
4089
4208
  unref(isReady) ? (openBlock(), createBlock(unref(NeonField), { key: 0 }, {
4090
4209
  input: withCtx(() => [
4091
4210
  createVNode(unref(NeonButton), {
@@ -4107,7 +4226,7 @@ const _sfc_main$u = /* @__PURE__ */ defineComponent({
4107
4226
  })) : createCommentVNode("v-if", true)
4108
4227
  ]),
4109
4228
  createTextVNode("    "),
4110
- createElementVNode("div", _hoisted_4$2, [
4229
+ createElementVNode("div", _hoisted_4$3, [
4111
4230
  unref(isReady) ? (openBlock(), createBlock(unref(NeonField), { key: 0 }, {
4112
4231
  input: withCtx(() => [
4113
4232
  createVNode(unref(NeonButton), {
@@ -4129,7 +4248,7 @@ const _sfc_main$u = /* @__PURE__ */ defineComponent({
4129
4248
  })) : createCommentVNode("v-if", true)
4130
4249
  ]),
4131
4250
  createTextVNode("    "),
4132
- createElementVNode("div", _hoisted_5$2, [
4251
+ createElementVNode("div", _hoisted_5$3, [
4133
4252
  unref(isReady) ? (openBlock(), createBlock(unref(NeonField), { key: 0 }, {
4134
4253
  input: withCtx(() => [
4135
4254
  createVNode(unref(NeonButton), {
@@ -4362,11 +4481,11 @@ const _sfc_main$u = /* @__PURE__ */ defineComponent({
4362
4481
  }
4363
4482
  });
4364
4483
  const SubmissionAudit_vue_vue_type_style_index_0_scoped_0478202c_lang = "";
4365
- const SubmissionAudit = /* @__PURE__ */ _export_sfc(_sfc_main$u, [["__scopeId", "data-v-0478202c"]]);
4366
- const _hoisted_1$8 = { class: "flex flex-wrap" };
4367
- const _hoisted_2$7 = { class: "mt-2" };
4368
- const _hoisted_3$3 = { class: "mt-2" };
4369
- const _sfc_main$t = /* @__PURE__ */ defineComponent({
4484
+ const SubmissionAudit = /* @__PURE__ */ _export_sfc(_sfc_main$y, [["__scopeId", "data-v-0478202c"]]);
4485
+ const _hoisted_1$a = { class: "flex flex-wrap" };
4486
+ const _hoisted_2$8 = { class: "mt-2" };
4487
+ const _hoisted_3$4 = { class: "mt-2" };
4488
+ const _sfc_main$x = /* @__PURE__ */ defineComponent({
4370
4489
  __name: "SubmissionDecision",
4371
4490
  setup(__props) {
4372
4491
  var _a;
@@ -4470,8 +4589,8 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
4470
4589
  onSubmit: unref(saveOne)
4471
4590
  }, {
4472
4591
  default: withCtx(() => [
4473
- createElementVNode("div", _hoisted_1$8, [
4474
- createElementVNode("div", _hoisted_2$7, [
4592
+ createElementVNode("div", _hoisted_1$a, [
4593
+ createElementVNode("div", _hoisted_2$8, [
4475
4594
  unref(isReady) ? (openBlock(), createBlock(unref(NeonField), { key: 0 }, {
4476
4595
  input: withCtx(() => {
4477
4596
  var _a2, _b;
@@ -4496,7 +4615,7 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
4496
4615
  })) : createCommentVNode("v-if", true)
4497
4616
  ]),
4498
4617
  createTextVNode("    "),
4499
- createElementVNode("div", _hoisted_3$3, [
4618
+ createElementVNode("div", _hoisted_3$4, [
4500
4619
  unref(isReady) ? (openBlock(), createBlock(unref(NeonField), { key: 0 }, {
4501
4620
  input: withCtx(() => {
4502
4621
  var _a2, _b;
@@ -4734,11 +4853,11 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
4734
4853
  }
4735
4854
  });
4736
4855
  const SubmissionDecision_vue_vue_type_style_index_0_scoped_59b0701c_lang = "";
4737
- const SubmissionDecision = /* @__PURE__ */ _export_sfc(_sfc_main$t, [["__scopeId", "data-v-59b0701c"]]);
4738
- const _hoisted_1$7 = { class: "flex flex-wrap" };
4739
- const _hoisted_2$6 = { class: "mt-2" };
4740
- const _hoisted_3$2 = { class: "mt-2" };
4741
- const _sfc_main$s = /* @__PURE__ */ defineComponent({
4856
+ const SubmissionDecision = /* @__PURE__ */ _export_sfc(_sfc_main$x, [["__scopeId", "data-v-59b0701c"]]);
4857
+ const _hoisted_1$9 = { class: "flex flex-wrap" };
4858
+ const _hoisted_2$7 = { class: "mt-2" };
4859
+ const _hoisted_3$3 = { class: "mt-2" };
4860
+ const _sfc_main$w = /* @__PURE__ */ defineComponent({
4742
4861
  __name: "SubmissionWaitingDecision",
4743
4862
  setup(__props) {
4744
4863
  var _a;
@@ -4844,8 +4963,8 @@ const _sfc_main$s = /* @__PURE__ */ defineComponent({
4844
4963
  onSubmit: unref(saveOne)
4845
4964
  }, {
4846
4965
  default: withCtx(() => [
4847
- createElementVNode("div", _hoisted_1$7, [
4848
- createElementVNode("div", _hoisted_2$6, [
4966
+ createElementVNode("div", _hoisted_1$9, [
4967
+ createElementVNode("div", _hoisted_2$7, [
4849
4968
  unref(isReady) ? (openBlock(), createBlock(unref(NeonField), { key: 0 }, {
4850
4969
  input: withCtx(() => {
4851
4970
  var _a2, _b;
@@ -4870,7 +4989,7 @@ const _sfc_main$s = /* @__PURE__ */ defineComponent({
4870
4989
  })) : createCommentVNode("v-if", true)
4871
4990
  ]),
4872
4991
  createTextVNode("    "),
4873
- createElementVNode("div", _hoisted_3$2, [
4992
+ createElementVNode("div", _hoisted_3$3, [
4874
4993
  unref(isReady) ? (openBlock(), createBlock(unref(NeonField), { key: 0 }, {
4875
4994
  input: withCtx(() => {
4876
4995
  var _a2, _b;
@@ -5064,28 +5183,9 @@ const _sfc_main$s = /* @__PURE__ */ defineComponent({
5064
5183
  }
5065
5184
  });
5066
5185
  const SubmissionWaitingDecision_vue_vue_type_style_index_0_scoped_1f81ee74_lang = "";
5067
- const SubmissionWaitingDecision = /* @__PURE__ */ _export_sfc(_sfc_main$s, [["__scopeId", "data-v-1f81ee74"]]);
5068
- const SubmissionTypeModel = models$2.SubmissionTypeModel;
5069
- const _sfc_main$r = /* @__PURE__ */ defineComponent({
5070
- ...{
5071
- name: "SubmissionTypeCollection"
5072
- },
5073
- __name: "SubmissionTypeCollection",
5074
- setup(__props) {
5075
- useCollection();
5076
- return (_ctx, _cache) => {
5077
- return openBlock(), createBlock(unref(NeonCollection), { class: "neu-submission-type-collection" }, {
5078
- default: withCtx(() => [
5079
- createVNode(unref(OfficeCollectionTable))
5080
- ]),
5081
- _: 1
5082
- /* STABLE */
5083
- });
5084
- };
5085
- }
5086
- });
5087
- const _sfc_main$q = /* @__PURE__ */ defineComponent({
5088
- __name: "SubmissionTypeSingle",
5186
+ const SubmissionWaitingDecision = /* @__PURE__ */ _export_sfc(_sfc_main$w, [["__scopeId", "data-v-1f81ee74"]]);
5187
+ const _sfc_main$v = /* @__PURE__ */ defineComponent({
5188
+ __name: "SubmissionSupervisor",
5089
5189
  setup(__props) {
5090
5190
  const {
5091
5191
  fields,
@@ -5097,11 +5197,17 @@ const _sfc_main$q = /* @__PURE__ */ defineComponent({
5097
5197
  isReady,
5098
5198
  isMain,
5099
5199
  isNew,
5200
+ syncOne,
5100
5201
  saveOne,
5101
- discardChanges
5202
+ discardChanges,
5203
+ executeOne
5102
5204
  } = useSingle();
5205
+ const appStore = useAppStore();
5206
+ const objectDef = computed(
5207
+ () => `neu:operasional:submission:${id.value}`
5208
+ );
5103
5209
  return (_ctx, _cache) => {
5104
- return openBlock(), createBlock(unref(NeonSingle), { class: "neu-submission-type-single" }, {
5210
+ return openBlock(), createBlock(unref(NeonSingle), { class: "neu-submission-single" }, {
5105
5211
  default: withCtx(() => [
5106
5212
  createVNode(unref(OfficeTabs), { "use-url": unref(isMain) }, {
5107
5213
  default: withCtx(() => [
@@ -5122,45 +5228,165 @@ const _sfc_main$q = /* @__PURE__ */ defineComponent({
5122
5228
  }, {
5123
5229
  default: withCtx(() => [
5124
5230
  createVNode(unref(NeonField), mergeProps({
5125
- modelValue: unref(values).name,
5126
- "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => unref(values).name = $event)
5127
- }, unref(fields).name), null, 16, ["modelValue"]),
5128
- createVNode(unref(OfficeRelation), {
5129
- modelValue: unref(values),
5130
- "onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => isRef(values) ? values.value = $event : null),
5131
- field: unref(fields).branches
5132
- }, null, 8, ["modelValue", "field"])
5133
- ]),
5134
- _: 1
5135
- /* STABLE */
5136
- }, 8, ["initial-values", "is-loading", "is-changed", "onCancel", "onSubmit"])
5137
- ]),
5138
- _: 1
5139
- /* STABLE */
5140
- })
5141
- ]),
5142
- _: 1
5143
- /* STABLE */
5144
- }, 8, ["use-url"])
5145
- ]),
5146
- _: 1
5147
- /* STABLE */
5148
- });
5231
+ modelValue: unref(values).title,
5232
+ "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => unref(values).title = $event)
5233
+ }, unref(fields).title, { "is-disabled": "" }), null, 16, ["modelValue"]),
5234
+ createVNode(unref(NeonFields), { md: "grid-cols-2" }, {
5235
+ default: withCtx(() => [
5236
+ createVNode(unref(OfficeRelation), {
5237
+ modelValue: unref(values),
5238
+ "onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => isRef(values) ? values.value = $event : null),
5239
+ field: unref(fields).branches,
5240
+ "is-disabled": ""
5241
+ }, null, 8, ["modelValue", "field"]),
5242
+ createVNode(unref(OfficeRelation), {
5243
+ modelValue: unref(values),
5244
+ "onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => isRef(values) ? values.value = $event : null),
5245
+ field: unref(fields).type,
5246
+ "is-disabled": ""
5247
+ }, null, 8, ["modelValue", "field"])
5248
+ ]),
5249
+ _: 1
5250
+ /* STABLE */
5251
+ }),
5252
+ createVNode(unref(NeonFields), { md: "grid-cols-2" }, {
5253
+ default: withCtx(() => [
5254
+ createVNode(unref(OfficeRelation), {
5255
+ modelValue: unref(values),
5256
+ "onUpdate:modelValue": _cache[3] || (_cache[3] = ($event) => isRef(values) ? values.value = $event : null),
5257
+ field: unref(fields).submissionStaffs,
5258
+ "is-disabled": ""
5259
+ }, null, 8, ["modelValue", "field"]),
5260
+ createVNode(unref(OfficeRelation), {
5261
+ modelValue: unref(values),
5262
+ "onUpdate:modelValue": _cache[4] || (_cache[4] = ($event) => isRef(values) ? values.value = $event : null),
5263
+ field: unref(fields).raiseStaffs,
5264
+ "is-disabled": ""
5265
+ }, null, 8, ["modelValue", "field"])
5266
+ ]),
5267
+ _: 1
5268
+ /* STABLE */
5269
+ }),
5270
+ createVNode(unref(NeonFields), { md: "grid-cols-2" }, {
5271
+ default: withCtx(() => [
5272
+ createVNode(unref(OfficeRelation), {
5273
+ modelValue: unref(values),
5274
+ "onUpdate:modelValue": _cache[5] || (_cache[5] = ($event) => isRef(values) ? values.value = $event : null),
5275
+ field: unref(fields).decideStaffs,
5276
+ "is-disabled": ""
5277
+ }, null, 8, ["modelValue", "field"]),
5278
+ createVNode(unref(OfficeRelation), {
5279
+ modelValue: unref(values),
5280
+ "onUpdate:modelValue": _cache[6] || (_cache[6] = ($event) => isRef(values) ? values.value = $event : null),
5281
+ field: unref(fields).followUpStaffs
5282
+ }, null, 8, ["modelValue", "field"])
5283
+ ]),
5284
+ _: 1
5285
+ /* STABLE */
5286
+ }),
5287
+ createCommentVNode(' <NeonField\n v-model="values.specifications"\n v-bind="fields.specifications"\n is-disabled\n /> '),
5288
+ createVNode(unref(NeonField), mergeProps({
5289
+ modelValue: unref(values).updatedAt,
5290
+ "onUpdate:modelValue": _cache[7] || (_cache[7] = ($event) => unref(values).updatedAt = $event)
5291
+ }, {
5292
+ handle: "updatedAt",
5293
+ name: "Tanggal Diupdate",
5294
+ type: "date",
5295
+ input: "date2",
5296
+ options: {
5297
+ note: "Tanggal pengajuan diupdate."
5298
+ }
5299
+ }, { "is-disabled": "" }), null, 16, ["modelValue"]),
5300
+ createVNode(unref(NeonDivider), {
5301
+ "is-dashed": "",
5302
+ label: "Spesifikasi"
5303
+ }),
5304
+ createVNode(unref(NeonField), mergeProps({
5305
+ modelValue: unref(values).nominal,
5306
+ "onUpdate:modelValue": _cache[8] || (_cache[8] = ($event) => unref(values).nominal = $event)
5307
+ }, unref(fields).nominal, { "is-disabled": "" }), null, 16, ["modelValue"]),
5308
+ createVNode(unref(NeonField), mergeProps({
5309
+ modelValue: unref(values).workingHours,
5310
+ "onUpdate:modelValue": _cache[9] || (_cache[9] = ($event) => unref(values).workingHours = $event)
5311
+ }, unref(fields).workingHours, { "is-disabled": "" }), null, 16, ["modelValue"]),
5312
+ createVNode(unref(NeonDivider), {
5313
+ "is-dashed": "",
5314
+ label: "Keputusan"
5315
+ }),
5316
+ createVNode(unref(NeonFields), { md: "grid-cols-2" }, {
5317
+ default: withCtx(() => [
5318
+ createVNode(unref(OfficeRelation), {
5319
+ modelValue: unref(values),
5320
+ "onUpdate:modelValue": _cache[10] || (_cache[10] = ($event) => isRef(values) ? values.value = $event : null),
5321
+ field: unref(fields).delayStaffs,
5322
+ "is-disabled": ""
5323
+ }, null, 8, ["modelValue", "field"]),
5324
+ createVNode(unref(OfficeRelation), {
5325
+ modelValue: unref(values),
5326
+ "onUpdate:modelValue": _cache[11] || (_cache[11] = ($event) => isRef(values) ? values.value = $event : null),
5327
+ field: unref(fields).agreedStaffs,
5328
+ "is-disabled": ""
5329
+ }, null, 8, ["modelValue", "field"])
5330
+ ]),
5331
+ _: 1
5332
+ /* STABLE */
5333
+ })
5334
+ ]),
5335
+ _: 1
5336
+ /* STABLE */
5337
+ }, 8, ["initial-values", "is-loading", "is-changed", "onCancel", "onSubmit"])
5338
+ ]),
5339
+ _: 1
5340
+ /* STABLE */
5341
+ }),
5342
+ createCommentVNode(" DOKUMEN "),
5343
+ !unref(isNew) ? (openBlock(), createBlock(unref(OfficeTab), {
5344
+ key: 0,
5345
+ handle: "dokumen",
5346
+ icon: "circle-info",
5347
+ title: "Dokumen"
5348
+ }, {
5349
+ default: withCtx(({ isTouched }) => [
5350
+ createVNode(
5351
+ unref(CatatSketchPad),
5352
+ normalizeProps(guardReactiveProps({
5353
+ applicationId: unref(appStore).appId,
5354
+ object: `${objectDef.value}:office`,
5355
+ isReady: unref(isReady) && isTouched,
5356
+ isLoading: unref(isLoading),
5357
+ isReadonly: true
5358
+ })),
5359
+ null,
5360
+ 16
5361
+ /* FULL_PROPS */
5362
+ )
5363
+ ]),
5364
+ _: 1
5365
+ /* STABLE */
5366
+ })) : createCommentVNode("v-if", true)
5367
+ ]),
5368
+ _: 1
5369
+ /* STABLE */
5370
+ }, 8, ["use-url"])
5371
+ ]),
5372
+ _: 1
5373
+ /* STABLE */
5374
+ });
5149
5375
  };
5150
5376
  }
5151
5377
  });
5152
- const SubmissionTypeSingle_vue_vue_type_style_index_0_scoped_2b7e18ba_lang = "";
5153
- const SubmissionTypeSingle = /* @__PURE__ */ _export_sfc(_sfc_main$q, [["__scopeId", "data-v-2b7e18ba"]]);
5154
- const ResponsibilityTypeModel = models$2.ResponsibilityTypeModel;
5155
- const _sfc_main$p = /* @__PURE__ */ defineComponent({
5378
+ const SubmissionSupervisor_vue_vue_type_style_index_0_scoped_201be0ad_lang = "";
5379
+ const SubmissionSupervisor = /* @__PURE__ */ _export_sfc(_sfc_main$v, [["__scopeId", "data-v-201be0ad"]]);
5380
+ const SubmissionTypeModel = models$2.SubmissionTypeModel;
5381
+ const _sfc_main$u = /* @__PURE__ */ defineComponent({
5156
5382
  ...{
5157
- name: "ResponsibilityTypeCollection"
5383
+ name: "SubmissionTypeCollection"
5158
5384
  },
5159
- __name: "ResponsibilityTypeCollection",
5385
+ __name: "SubmissionTypeCollection",
5160
5386
  setup(__props) {
5161
5387
  useCollection();
5162
5388
  return (_ctx, _cache) => {
5163
- return openBlock(), createBlock(unref(NeonCollection), { class: "neu-responsibility-type-collection" }, {
5389
+ return openBlock(), createBlock(unref(NeonCollection), { class: "neu-submission-type-collection" }, {
5164
5390
  default: withCtx(() => [
5165
5391
  createVNode(unref(OfficeCollectionTable))
5166
5392
  ]),
@@ -5170,8 +5396,8 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
5170
5396
  };
5171
5397
  }
5172
5398
  });
5173
- const _sfc_main$o = /* @__PURE__ */ defineComponent({
5174
- __name: "ResponsibilityTypeSingle",
5399
+ const _sfc_main$t = /* @__PURE__ */ defineComponent({
5400
+ __name: "SubmissionTypeSingle",
5175
5401
  setup(__props) {
5176
5402
  const {
5177
5403
  fields,
@@ -5187,7 +5413,7 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
5187
5413
  discardChanges
5188
5414
  } = useSingle();
5189
5415
  return (_ctx, _cache) => {
5190
- return openBlock(), createBlock(unref(NeonSingle), { class: "neu-responsibility-type-single" }, {
5416
+ return openBlock(), createBlock(unref(NeonSingle), { class: "neu-submission-type-single" }, {
5191
5417
  default: withCtx(() => [
5192
5418
  createVNode(unref(OfficeTabs), { "use-url": unref(isMain) }, {
5193
5419
  default: withCtx(() => [
@@ -5235,18 +5461,18 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
5235
5461
  };
5236
5462
  }
5237
5463
  });
5238
- const ResponsibilityTypeSingle_vue_vue_type_style_index_0_scoped_3df9fac1_lang = "";
5239
- const ResponsibilityTypeSingle = /* @__PURE__ */ _export_sfc(_sfc_main$o, [["__scopeId", "data-v-3df9fac1"]]);
5240
- const ResponsibilityModel = models$2.ResponsibilityModel;
5241
- const _sfc_main$n = /* @__PURE__ */ defineComponent({
5464
+ const SubmissionTypeSingle_vue_vue_type_style_index_0_scoped_2b7e18ba_lang = "";
5465
+ const SubmissionTypeSingle = /* @__PURE__ */ _export_sfc(_sfc_main$t, [["__scopeId", "data-v-2b7e18ba"]]);
5466
+ const ResponsibilityTypeModel = models$2.ResponsibilityTypeModel;
5467
+ const _sfc_main$s = /* @__PURE__ */ defineComponent({
5242
5468
  ...{
5243
- name: "ResponsibilityCollection"
5469
+ name: "ResponsibilityTypeCollection"
5244
5470
  },
5245
- __name: "ResponsibilityCollection",
5471
+ __name: "ResponsibilityTypeCollection",
5246
5472
  setup(__props) {
5247
5473
  useCollection();
5248
5474
  return (_ctx, _cache) => {
5249
- return openBlock(), createBlock(unref(NeonCollection), { class: "neu-responsibility-collection" }, {
5475
+ return openBlock(), createBlock(unref(NeonCollection), { class: "neu-responsibility-type-collection" }, {
5250
5476
  default: withCtx(() => [
5251
5477
  createVNode(unref(OfficeCollectionTable))
5252
5478
  ]),
@@ -5256,8 +5482,8 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
5256
5482
  };
5257
5483
  }
5258
5484
  });
5259
- const _sfc_main$m = /* @__PURE__ */ defineComponent({
5260
- __name: "ResponsibilitySingle",
5485
+ const _sfc_main$r = /* @__PURE__ */ defineComponent({
5486
+ __name: "ResponsibilityTypeSingle",
5261
5487
  setup(__props) {
5262
5488
  const {
5263
5489
  fields,
@@ -5272,20 +5498,8 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
5272
5498
  saveOne,
5273
5499
  discardChanges
5274
5500
  } = useSingle();
5275
- const { staff } = useOperasional();
5276
- const responsibilityTypeOptions = computed(() => {
5277
- return {
5278
- filter: [
5279
- {
5280
- handle: "branchIds",
5281
- operator: "in",
5282
- value: values.value.branchId
5283
- }
5284
- ]
5285
- };
5286
- });
5287
5501
  return (_ctx, _cache) => {
5288
- return openBlock(), createBlock(unref(NeonSingle), { class: "neu-responsibility-single" }, {
5502
+ return openBlock(), createBlock(unref(NeonSingle), { class: "neu-responsibility-type-single" }, {
5289
5503
  default: withCtx(() => [
5290
5504
  createVNode(unref(OfficeTabs), { "use-url": unref(isMain) }, {
5291
5505
  default: withCtx(() => [
@@ -5306,60 +5520,14 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
5306
5520
  }, {
5307
5521
  default: withCtx(() => [
5308
5522
  createVNode(unref(NeonField), mergeProps({
5309
- modelValue: unref(values).condition,
5310
- "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => unref(values).condition = $event)
5311
- }, unref(fields).condition), null, 16, ["modelValue"]),
5312
- createVNode(unref(NeonField), mergeProps({
5313
- modelValue: unref(values).title,
5314
- "onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => unref(values).title = $event)
5315
- }, unref(fields).title), null, 16, ["modelValue"]),
5316
- createVNode(unref(NeonField), mergeProps({
5317
- modelValue: unref(values).score,
5318
- "onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => unref(values).score = $event)
5319
- }, unref(fields).score), null, 16, ["modelValue"]),
5320
- createVNode(unref(NeonFields), { md: "grid-cols-2" }, {
5321
- default: withCtx(() => [
5322
- createVNode(unref(OfficeRelation), {
5323
- modelValue: unref(values),
5324
- "onUpdate:modelValue": _cache[3] || (_cache[3] = ($event) => isRef(values) ? values.value = $event : null),
5325
- field: unref(fields).branch
5326
- }, null, 8, ["modelValue", "field"]),
5327
- createVNode(unref(OfficeRelation), {
5328
- modelValue: unref(values),
5329
- "onUpdate:modelValue": _cache[4] || (_cache[4] = ($event) => isRef(values) ? values.value = $event : null),
5330
- field: unref(fields).responsibilityType,
5331
- query: unref(Query).define(responsibilityTypeOptions.value)
5332
- }, null, 8, ["modelValue", "field", "query"])
5333
- ]),
5334
- _: 1
5335
- /* STABLE */
5336
- }),
5337
- createVNode(unref(NeonFields), { md: "grid-cols-2" }, {
5338
- default: withCtx(() => [
5339
- createVNode(unref(OfficeRelation), {
5340
- modelValue: unref(values),
5341
- "onUpdate:modelValue": _cache[5] || (_cache[5] = ($event) => isRef(values) ? values.value = $event : null),
5342
- field: unref(fields).staffWorks
5343
- }, null, 8, ["modelValue", "field"]),
5344
- createVNode(unref(OfficeRelation), {
5345
- modelValue: unref(values),
5346
- "onUpdate:modelValue": _cache[6] || (_cache[6] = ($event) => isRef(values) ? values.value = $event : null),
5347
- field: unref(fields).staffSupervises
5348
- }, null, 8, ["modelValue", "field"])
5349
- ]),
5350
- _: 1
5351
- /* STABLE */
5352
- }),
5353
- unref(isReady) || unref(isNew) ? (openBlock(), createBlock(unref(NeonField), mergeProps({
5354
- key: 0,
5355
- modelValue: unref(values).detail,
5356
- "onUpdate:modelValue": _cache[7] || (_cache[7] = ($event) => unref(values).detail = $event)
5357
- }, unref(fields).detail), null, 16, ["modelValue"])) : createCommentVNode("v-if", true),
5358
- unref(isReady) || unref(isNew) ? (openBlock(), createBlock(unref(NeonField), mergeProps({
5359
- key: 1,
5360
- modelValue: unref(values).result,
5361
- "onUpdate:modelValue": _cache[8] || (_cache[8] = ($event) => unref(values).result = $event)
5362
- }, unref(fields).result), null, 16, ["modelValue"])) : createCommentVNode("v-if", true)
5523
+ modelValue: unref(values).name,
5524
+ "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => unref(values).name = $event)
5525
+ }, unref(fields).name), null, 16, ["modelValue"]),
5526
+ createVNode(unref(OfficeRelation), {
5527
+ modelValue: unref(values),
5528
+ "onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => isRef(values) ? values.value = $event : null),
5529
+ field: unref(fields).branches
5530
+ }, null, 8, ["modelValue", "field"])
5363
5531
  ]),
5364
5532
  _: 1
5365
5533
  /* STABLE */
@@ -5367,11 +5535,180 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
5367
5535
  ]),
5368
5536
  _: 1
5369
5537
  /* STABLE */
5370
- }),
5371
- createCommentVNode(" PROGRESS "),
5372
- !unref(isNew) ? (openBlock(), createBlock(unref(OfficeTab), {
5373
- key: 0,
5374
- handle: "progress",
5538
+ })
5539
+ ]),
5540
+ _: 1
5541
+ /* STABLE */
5542
+ }, 8, ["use-url"])
5543
+ ]),
5544
+ _: 1
5545
+ /* STABLE */
5546
+ });
5547
+ };
5548
+ }
5549
+ });
5550
+ const ResponsibilityTypeSingle_vue_vue_type_style_index_0_scoped_3df9fac1_lang = "";
5551
+ const ResponsibilityTypeSingle = /* @__PURE__ */ _export_sfc(_sfc_main$r, [["__scopeId", "data-v-3df9fac1"]]);
5552
+ const ResponsibilityModel = models$2.ResponsibilityModel;
5553
+ const _sfc_main$q = /* @__PURE__ */ defineComponent({
5554
+ ...{
5555
+ name: "ResponsibilityCollection"
5556
+ },
5557
+ __name: "ResponsibilityCollection",
5558
+ setup(__props) {
5559
+ useCollection();
5560
+ return (_ctx, _cache) => {
5561
+ return openBlock(), createBlock(unref(NeonCollection), { class: "neu-responsibility-collection" }, {
5562
+ default: withCtx(() => [
5563
+ createVNode(unref(OfficeCollectionTable))
5564
+ ]),
5565
+ _: 1
5566
+ /* STABLE */
5567
+ });
5568
+ };
5569
+ }
5570
+ });
5571
+ const _sfc_main$p = /* @__PURE__ */ defineComponent({
5572
+ __name: "ResponsibilitySingle",
5573
+ setup(__props) {
5574
+ const {
5575
+ fields,
5576
+ id,
5577
+ initialValues,
5578
+ values,
5579
+ isLoading,
5580
+ isChanged,
5581
+ isReady,
5582
+ isMain,
5583
+ isNew,
5584
+ saveOne,
5585
+ discardChanges
5586
+ } = useSingle();
5587
+ const { staff } = useOperasional();
5588
+ const responsibilityTypeOptions = computed(() => {
5589
+ return {
5590
+ filter: [
5591
+ {
5592
+ handle: "branchIds",
5593
+ operator: "in",
5594
+ value: values.value.branchId
5595
+ }
5596
+ ]
5597
+ };
5598
+ });
5599
+ const branchOptions = computed(() => {
5600
+ var _a;
5601
+ return {
5602
+ filter: [
5603
+ {
5604
+ handle: "_id",
5605
+ operator: "in",
5606
+ value: (_a = staff.value) == null ? void 0 : _a.branchIds
5607
+ }
5608
+ ]
5609
+ };
5610
+ });
5611
+ const staffWorkOptions = computed(() => {
5612
+ return {
5613
+ filter: [
5614
+ {
5615
+ handle: "branchIds",
5616
+ operator: "in",
5617
+ value: values.value.branchId
5618
+ }
5619
+ ]
5620
+ };
5621
+ });
5622
+ return (_ctx, _cache) => {
5623
+ return openBlock(), createBlock(unref(NeonSingle), { class: "neu-responsibility-single" }, {
5624
+ default: withCtx(() => [
5625
+ createVNode(unref(OfficeTabs), { "use-url": unref(isMain) }, {
5626
+ default: withCtx(() => [
5627
+ createVNode(unref(OfficeTab), {
5628
+ handle: "info",
5629
+ icon: "circle-info",
5630
+ title: "Info"
5631
+ }, {
5632
+ default: withCtx(() => [
5633
+ createVNode(unref(NeonForm), {
5634
+ handle: "info",
5635
+ "initial-values": unref(initialValues),
5636
+ "is-loading": unref(isLoading),
5637
+ "is-changed": unref(isChanged),
5638
+ "use-unsaved": "",
5639
+ onCancel: unref(discardChanges),
5640
+ onSubmit: unref(saveOne)
5641
+ }, {
5642
+ default: withCtx(() => [
5643
+ createVNode(unref(NeonField), mergeProps({
5644
+ modelValue: unref(values).condition,
5645
+ "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => unref(values).condition = $event)
5646
+ }, unref(fields).condition), null, 16, ["modelValue"]),
5647
+ createVNode(unref(NeonField), mergeProps({
5648
+ modelValue: unref(values).title,
5649
+ "onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => unref(values).title = $event)
5650
+ }, unref(fields).title), null, 16, ["modelValue"]),
5651
+ createVNode(unref(NeonField), mergeProps({
5652
+ modelValue: unref(values).score,
5653
+ "onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => unref(values).score = $event)
5654
+ }, unref(fields).score), null, 16, ["modelValue"]),
5655
+ createVNode(unref(NeonFields), { md: "grid-cols-2" }, {
5656
+ default: withCtx(() => [
5657
+ createVNode(unref(OfficeRelation), {
5658
+ modelValue: unref(values),
5659
+ "onUpdate:modelValue": _cache[3] || (_cache[3] = ($event) => isRef(values) ? values.value = $event : null),
5660
+ field: unref(fields).branch,
5661
+ query: unref(Query).define(branchOptions.value)
5662
+ }, null, 8, ["modelValue", "field", "query"]),
5663
+ createVNode(unref(OfficeRelation), {
5664
+ modelValue: unref(values),
5665
+ "onUpdate:modelValue": _cache[4] || (_cache[4] = ($event) => isRef(values) ? values.value = $event : null),
5666
+ field: unref(fields).responsibilityType,
5667
+ query: unref(Query).define(responsibilityTypeOptions.value)
5668
+ }, null, 8, ["modelValue", "field", "query"])
5669
+ ]),
5670
+ _: 1
5671
+ /* STABLE */
5672
+ }),
5673
+ createVNode(unref(NeonFields), { md: "grid-cols-2" }, {
5674
+ default: withCtx(() => [
5675
+ createVNode(unref(OfficeRelation), {
5676
+ modelValue: unref(values),
5677
+ "onUpdate:modelValue": _cache[5] || (_cache[5] = ($event) => isRef(values) ? values.value = $event : null),
5678
+ field: unref(fields).staffWorks,
5679
+ query: unref(Query).define(staffWorkOptions.value)
5680
+ }, null, 8, ["modelValue", "field", "query"]),
5681
+ createVNode(unref(OfficeRelation), {
5682
+ modelValue: unref(values),
5683
+ "onUpdate:modelValue": _cache[6] || (_cache[6] = ($event) => isRef(values) ? values.value = $event : null),
5684
+ field: unref(fields).staffSupervises
5685
+ }, null, 8, ["modelValue", "field"])
5686
+ ]),
5687
+ _: 1
5688
+ /* STABLE */
5689
+ }),
5690
+ unref(isReady) || unref(isNew) ? (openBlock(), createBlock(unref(NeonField), mergeProps({
5691
+ key: 0,
5692
+ modelValue: unref(values).detail,
5693
+ "onUpdate:modelValue": _cache[7] || (_cache[7] = ($event) => unref(values).detail = $event)
5694
+ }, unref(fields).detail), null, 16, ["modelValue"])) : createCommentVNode("v-if", true),
5695
+ unref(isReady) || unref(isNew) ? (openBlock(), createBlock(unref(NeonField), mergeProps({
5696
+ key: 1,
5697
+ modelValue: unref(values).result,
5698
+ "onUpdate:modelValue": _cache[8] || (_cache[8] = ($event) => unref(values).result = $event)
5699
+ }, unref(fields).result), null, 16, ["modelValue"])) : createCommentVNode("v-if", true)
5700
+ ]),
5701
+ _: 1
5702
+ /* STABLE */
5703
+ }, 8, ["initial-values", "is-loading", "is-changed", "onCancel", "onSubmit"])
5704
+ ]),
5705
+ _: 1
5706
+ /* STABLE */
5707
+ }),
5708
+ createCommentVNode(" PROGRESS "),
5709
+ !unref(isNew) ? (openBlock(), createBlock(unref(OfficeTab), {
5710
+ key: 0,
5711
+ handle: "progress",
5375
5712
  icon: "info-circle",
5376
5713
  title: "Progress"
5377
5714
  }, {
@@ -5426,9 +5763,9 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
5426
5763
  };
5427
5764
  }
5428
5765
  });
5429
- const ResponsibilitySingle_vue_vue_type_style_index_0_scoped_3ec4a018_lang = "";
5430
- const ResponsibilitySingle = /* @__PURE__ */ _export_sfc(_sfc_main$m, [["__scopeId", "data-v-3ec4a018"]]);
5431
- const _sfc_main$l = /* @__PURE__ */ defineComponent({
5766
+ const ResponsibilitySingle_vue_vue_type_style_index_0_scoped_9eded4a7_lang = "";
5767
+ const ResponsibilitySingle = /* @__PURE__ */ _export_sfc(_sfc_main$p, [["__scopeId", "data-v-9eded4a7"]]);
5768
+ const _sfc_main$o = /* @__PURE__ */ defineComponent({
5432
5769
  __name: "ResponsibilityStaff",
5433
5770
  setup(__props) {
5434
5771
  const {
@@ -5591,28 +5928,9 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
5591
5928
  }
5592
5929
  });
5593
5930
  const ResponsibilityStaff_vue_vue_type_style_index_0_scoped_a1ec66a6_lang = "";
5594
- const ResponsibilityStaff = /* @__PURE__ */ _export_sfc(_sfc_main$l, [["__scopeId", "data-v-a1ec66a6"]]);
5595
- const TargetModel = models$2.TargetModel;
5596
- const _sfc_main$k = /* @__PURE__ */ defineComponent({
5597
- ...{
5598
- name: "TargetCollection"
5599
- },
5600
- __name: "TargetCollection",
5601
- setup(__props) {
5602
- useCollection();
5603
- return (_ctx, _cache) => {
5604
- return openBlock(), createBlock(unref(NeonCollection), { class: "neu-target-collection" }, {
5605
- default: withCtx(() => [
5606
- createVNode(unref(OfficeCollectionTable))
5607
- ]),
5608
- _: 1
5609
- /* STABLE */
5610
- });
5611
- };
5612
- }
5613
- });
5614
- const _sfc_main$j = /* @__PURE__ */ defineComponent({
5615
- __name: "TargetSingle",
5931
+ const ResponsibilityStaff = /* @__PURE__ */ _export_sfc(_sfc_main$o, [["__scopeId", "data-v-a1ec66a6"]]);
5932
+ const _sfc_main$n = /* @__PURE__ */ defineComponent({
5933
+ __name: "ResponsibilitySupervisor",
5616
5934
  setup(__props) {
5617
5935
  const {
5618
5936
  fields,
@@ -5627,8 +5945,9 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
5627
5945
  saveOne,
5628
5946
  discardChanges
5629
5947
  } = useSingle();
5948
+ const { staff } = useOperasional();
5630
5949
  return (_ctx, _cache) => {
5631
- return openBlock(), createBlock(unref(NeonSingle), { class: "neu-target-single" }, {
5950
+ return openBlock(), createBlock(unref(NeonSingle), { class: "neu-responsibility-single" }, {
5632
5951
  default: withCtx(() => [
5633
5952
  createVNode(unref(OfficeTabs), { "use-url": unref(isMain) }, {
5634
5953
  default: withCtx(() => [
@@ -5648,27 +5967,31 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
5648
5967
  onSubmit: unref(saveOne)
5649
5968
  }, {
5650
5969
  default: withCtx(() => [
5651
- withDirectives(createVNode(unref(NeonField), mergeProps({
5970
+ createVNode(unref(NeonField), mergeProps({
5652
5971
  modelValue: unref(values).condition,
5653
5972
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => unref(values).condition = $event)
5654
- }, unref(fields).condition), null, 16, ["modelValue"]), [
5655
- [vShow, false]
5656
- ]),
5973
+ }, unref(fields).condition, { "is-disabled": "" }), null, 16, ["modelValue"]),
5657
5974
  createVNode(unref(NeonField), mergeProps({
5658
- modelValue: unref(values).name,
5659
- "onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => unref(values).name = $event)
5660
- }, unref(fields).name), null, 16, ["modelValue"]),
5975
+ modelValue: unref(values).title,
5976
+ "onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => unref(values).title = $event)
5977
+ }, unref(fields).title, { "is-disabled": "" }), null, 16, ["modelValue"]),
5978
+ createVNode(unref(NeonField), mergeProps({
5979
+ modelValue: unref(values).score,
5980
+ "onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => unref(values).score = $event)
5981
+ }, unref(fields).score), null, 16, ["modelValue"]),
5661
5982
  createVNode(unref(NeonFields), { md: "grid-cols-2" }, {
5662
5983
  default: withCtx(() => [
5663
5984
  createVNode(unref(OfficeRelation), {
5664
5985
  modelValue: unref(values),
5665
- "onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => isRef(values) ? values.value = $event : null),
5666
- field: unref(fields).branches
5986
+ "onUpdate:modelValue": _cache[3] || (_cache[3] = ($event) => isRef(values) ? values.value = $event : null),
5987
+ field: unref(fields).branch,
5988
+ "is-disabled": ""
5667
5989
  }, null, 8, ["modelValue", "field"]),
5668
5990
  createVNode(unref(OfficeRelation), {
5669
5991
  modelValue: unref(values),
5670
- "onUpdate:modelValue": _cache[3] || (_cache[3] = ($event) => isRef(values) ? values.value = $event : null),
5671
- field: unref(fields).stages
5992
+ "onUpdate:modelValue": _cache[4] || (_cache[4] = ($event) => isRef(values) ? values.value = $event : null),
5993
+ field: unref(fields).responsibilityType,
5994
+ "is-disabled": ""
5672
5995
  }, null, 8, ["modelValue", "field"])
5673
5996
  ]),
5674
5997
  _: 1
@@ -5676,34 +5999,212 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
5676
5999
  }),
5677
6000
  createVNode(unref(NeonFields), { md: "grid-cols-2" }, {
5678
6001
  default: withCtx(() => [
5679
- createVNode(unref(NeonField), mergeProps({
5680
- modelValue: unref(values).startedAt,
5681
- "onUpdate:modelValue": _cache[4] || (_cache[4] = ($event) => unref(values).startedAt = $event)
5682
- }, unref(fields).startedAt), null, 16, ["modelValue"]),
5683
- createVNode(unref(NeonField), mergeProps({
5684
- modelValue: unref(values).endedAt,
5685
- "onUpdate:modelValue": _cache[5] || (_cache[5] = ($event) => unref(values).endedAt = $event)
5686
- }, unref(fields).endedAt), null, 16, ["modelValue"])
6002
+ createVNode(unref(OfficeRelation), {
6003
+ modelValue: unref(values),
6004
+ "onUpdate:modelValue": _cache[5] || (_cache[5] = ($event) => isRef(values) ? values.value = $event : null),
6005
+ field: unref(fields).staffWorks,
6006
+ "is-disabled": ""
6007
+ }, null, 8, ["modelValue", "field"]),
6008
+ createVNode(unref(OfficeRelation), {
6009
+ modelValue: unref(values),
6010
+ "onUpdate:modelValue": _cache[6] || (_cache[6] = ($event) => isRef(values) ? values.value = $event : null),
6011
+ field: unref(fields).staffSupervises,
6012
+ "is-disabled": ""
6013
+ }, null, 8, ["modelValue", "field"])
5687
6014
  ]),
5688
6015
  _: 1
5689
6016
  /* STABLE */
5690
6017
  }),
5691
- createVNode(unref(OfficeRelation), {
5692
- modelValue: unref(values),
5693
- "onUpdate:modelValue": _cache[6] || (_cache[6] = ($event) => isRef(values) ? values.value = $event : null),
5694
- field: unref(fields).school
5695
- }, null, 8, ["modelValue", "field"]),
5696
- createVNode(unref(NeonFields), { md: "grid-cols-2" }, {
5697
- default: withCtx(() => [
5698
- createVNode(unref(NeonField), mergeProps({
5699
- modelValue: unref(values).targetEst,
5700
- "onUpdate:modelValue": _cache[7] || (_cache[7] = ($event) => unref(values).targetEst = $event)
5701
- }, unref(fields).targetEst), null, 16, ["modelValue"]),
5702
- createVNode(unref(NeonField), mergeProps({
5703
- modelValue: unref(values).actualInvoice,
5704
- "onUpdate:modelValue": _cache[8] || (_cache[8] = ($event) => unref(values).actualInvoice = $event)
5705
- }, unref(fields).actualInvoice), null, 16, ["modelValue"])
5706
- ]),
6018
+ unref(isReady) || unref(isNew) ? (openBlock(), createBlock(unref(NeonField), mergeProps({
6019
+ key: 0,
6020
+ modelValue: unref(values).detail,
6021
+ "onUpdate:modelValue": _cache[7] || (_cache[7] = ($event) => unref(values).detail = $event)
6022
+ }, unref(fields).detail, { "is-disabled": "" }), null, 16, ["modelValue"])) : createCommentVNode("v-if", true),
6023
+ unref(isReady) || unref(isNew) ? (openBlock(), createBlock(unref(NeonField), mergeProps({
6024
+ key: 1,
6025
+ modelValue: unref(values).result,
6026
+ "onUpdate:modelValue": _cache[8] || (_cache[8] = ($event) => unref(values).result = $event)
6027
+ }, unref(fields).result), null, 16, ["modelValue"])) : createCommentVNode("v-if", true)
6028
+ ]),
6029
+ _: 1
6030
+ /* STABLE */
6031
+ }, 8, ["initial-values", "is-loading", "is-changed", "onCancel", "onSubmit"])
6032
+ ]),
6033
+ _: 1
6034
+ /* STABLE */
6035
+ }),
6036
+ createCommentVNode(" PROGRESS "),
6037
+ !unref(isNew) ? (openBlock(), createBlock(unref(OfficeTab), {
6038
+ key: 0,
6039
+ handle: "progress",
6040
+ icon: "info-circle",
6041
+ title: "Progress"
6042
+ }, {
6043
+ default: withCtx(() => {
6044
+ var _a;
6045
+ return [
6046
+ createVNode(unref(OfficeCollectionRelated), {
6047
+ definition: "neu:personalia:progress",
6048
+ title: "Progress",
6049
+ description: "Progress dari tanggungjawab.",
6050
+ query: unref(Query).define({
6051
+ filter: [
6052
+ {
6053
+ responsibilityIds: unref(id)
6054
+ }
6055
+ ],
6056
+ sort: {
6057
+ handle: "startedAt",
6058
+ direction: "descending"
6059
+ }
6060
+ }),
6061
+ "is-ready": unref(isReady),
6062
+ columns: [
6063
+ "startedAt",
6064
+ "endedAt",
6065
+ "detail",
6066
+ "staffs",
6067
+ "virtualIsNotes",
6068
+ "accessStaffs"
6069
+ ],
6070
+ sorts: ["startedAt", "createdAt", "updatedAt"],
6071
+ "initial-values": {
6072
+ responsibilityIds: unref(id),
6073
+ responsibilities: unref(values),
6074
+ staffIds: (_a = unref(staff)) == null ? void 0 : _a.id,
6075
+ staffs: unref(staff)
6076
+ }
6077
+ }, null, 8, ["query", "is-ready", "initial-values"])
6078
+ ];
6079
+ }),
6080
+ _: 1
6081
+ /* STABLE */
6082
+ })) : createCommentVNode("v-if", true)
6083
+ ]),
6084
+ _: 1
6085
+ /* STABLE */
6086
+ }, 8, ["use-url"])
6087
+ ]),
6088
+ _: 1
6089
+ /* STABLE */
6090
+ });
6091
+ };
6092
+ }
6093
+ });
6094
+ const ResponsibilitySupervisor_vue_vue_type_style_index_0_scoped_63e476fd_lang = "";
6095
+ const ResponsibilitySupervisor = /* @__PURE__ */ _export_sfc(_sfc_main$n, [["__scopeId", "data-v-63e476fd"]]);
6096
+ const TargetModel = models$2.TargetModel;
6097
+ const _sfc_main$m = /* @__PURE__ */ defineComponent({
6098
+ ...{
6099
+ name: "TargetCollection"
6100
+ },
6101
+ __name: "TargetCollection",
6102
+ setup(__props) {
6103
+ useCollection();
6104
+ return (_ctx, _cache) => {
6105
+ return openBlock(), createBlock(unref(NeonCollection), { class: "neu-target-collection" }, {
6106
+ default: withCtx(() => [
6107
+ createVNode(unref(OfficeCollectionTable))
6108
+ ]),
6109
+ _: 1
6110
+ /* STABLE */
6111
+ });
6112
+ };
6113
+ }
6114
+ });
6115
+ const _sfc_main$l = /* @__PURE__ */ defineComponent({
6116
+ __name: "TargetSingle",
6117
+ setup(__props) {
6118
+ const {
6119
+ fields,
6120
+ id,
6121
+ initialValues,
6122
+ values,
6123
+ isLoading,
6124
+ isChanged,
6125
+ isReady,
6126
+ isMain,
6127
+ isNew,
6128
+ saveOne,
6129
+ discardChanges
6130
+ } = useSingle();
6131
+ return (_ctx, _cache) => {
6132
+ return openBlock(), createBlock(unref(NeonSingle), { class: "neu-target-single" }, {
6133
+ default: withCtx(() => [
6134
+ createVNode(unref(OfficeTabs), { "use-url": unref(isMain) }, {
6135
+ default: withCtx(() => [
6136
+ createVNode(unref(OfficeTab), {
6137
+ handle: "info",
6138
+ icon: "circle-info",
6139
+ title: "Info"
6140
+ }, {
6141
+ default: withCtx(() => [
6142
+ createVNode(unref(NeonForm), {
6143
+ handle: "info",
6144
+ "initial-values": unref(initialValues),
6145
+ "is-loading": unref(isLoading),
6146
+ "is-changed": unref(isChanged),
6147
+ "use-unsaved": "",
6148
+ onCancel: unref(discardChanges),
6149
+ onSubmit: unref(saveOne)
6150
+ }, {
6151
+ default: withCtx(() => [
6152
+ withDirectives(createVNode(unref(NeonField), mergeProps({
6153
+ modelValue: unref(values).condition,
6154
+ "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => unref(values).condition = $event)
6155
+ }, unref(fields).condition), null, 16, ["modelValue"]), [
6156
+ [vShow, false]
6157
+ ]),
6158
+ createVNode(unref(NeonField), mergeProps({
6159
+ modelValue: unref(values).name,
6160
+ "onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => unref(values).name = $event)
6161
+ }, unref(fields).name), null, 16, ["modelValue"]),
6162
+ createVNode(unref(NeonFields), { md: "grid-cols-2" }, {
6163
+ default: withCtx(() => [
6164
+ createVNode(unref(OfficeRelation), {
6165
+ modelValue: unref(values),
6166
+ "onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => isRef(values) ? values.value = $event : null),
6167
+ field: unref(fields).branches
6168
+ }, null, 8, ["modelValue", "field"]),
6169
+ createVNode(unref(OfficeRelation), {
6170
+ modelValue: unref(values),
6171
+ "onUpdate:modelValue": _cache[3] || (_cache[3] = ($event) => isRef(values) ? values.value = $event : null),
6172
+ field: unref(fields).stages
6173
+ }, null, 8, ["modelValue", "field"])
6174
+ ]),
6175
+ _: 1
6176
+ /* STABLE */
6177
+ }),
6178
+ createVNode(unref(NeonFields), { md: "grid-cols-2" }, {
6179
+ default: withCtx(() => [
6180
+ createVNode(unref(NeonField), mergeProps({
6181
+ modelValue: unref(values).startedAt,
6182
+ "onUpdate:modelValue": _cache[4] || (_cache[4] = ($event) => unref(values).startedAt = $event)
6183
+ }, unref(fields).startedAt), null, 16, ["modelValue"]),
6184
+ createVNode(unref(NeonField), mergeProps({
6185
+ modelValue: unref(values).endedAt,
6186
+ "onUpdate:modelValue": _cache[5] || (_cache[5] = ($event) => unref(values).endedAt = $event)
6187
+ }, unref(fields).endedAt), null, 16, ["modelValue"])
6188
+ ]),
6189
+ _: 1
6190
+ /* STABLE */
6191
+ }),
6192
+ createVNode(unref(OfficeRelation), {
6193
+ modelValue: unref(values),
6194
+ "onUpdate:modelValue": _cache[6] || (_cache[6] = ($event) => isRef(values) ? values.value = $event : null),
6195
+ field: unref(fields).school
6196
+ }, null, 8, ["modelValue", "field"]),
6197
+ createVNode(unref(NeonFields), { md: "grid-cols-2" }, {
6198
+ default: withCtx(() => [
6199
+ createVNode(unref(NeonField), mergeProps({
6200
+ modelValue: unref(values).targetEst,
6201
+ "onUpdate:modelValue": _cache[7] || (_cache[7] = ($event) => unref(values).targetEst = $event)
6202
+ }, unref(fields).targetEst), null, 16, ["modelValue"]),
6203
+ createVNode(unref(NeonField), mergeProps({
6204
+ modelValue: unref(values).actualInvoice,
6205
+ "onUpdate:modelValue": _cache[8] || (_cache[8] = ($event) => unref(values).actualInvoice = $event)
6206
+ }, unref(fields).actualInvoice), null, 16, ["modelValue"])
6207
+ ]),
5707
6208
  _: 1
5708
6209
  /* STABLE */
5709
6210
  })
@@ -5764,8 +6265,8 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
5764
6265
  }
5765
6266
  });
5766
6267
  const TargetSingle_vue_vue_type_style_index_0_scoped_c12b8df8_lang = "";
5767
- const TargetSingle = /* @__PURE__ */ _export_sfc(_sfc_main$j, [["__scopeId", "data-v-c12b8df8"]]);
5768
- const _sfc_main$i = /* @__PURE__ */ defineComponent({
6268
+ const TargetSingle = /* @__PURE__ */ _export_sfc(_sfc_main$l, [["__scopeId", "data-v-c12b8df8"]]);
6269
+ const _sfc_main$k = /* @__PURE__ */ defineComponent({
5769
6270
  __name: "TargetBranch",
5770
6271
  setup(__props) {
5771
6272
  const {
@@ -5918,9 +6419,9 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
5918
6419
  }
5919
6420
  });
5920
6421
  const TargetBranch_vue_vue_type_style_index_0_scoped_6a5a6e80_lang = "";
5921
- const TargetBranch = /* @__PURE__ */ _export_sfc(_sfc_main$i, [["__scopeId", "data-v-6a5a6e80"]]);
6422
+ const TargetBranch = /* @__PURE__ */ _export_sfc(_sfc_main$k, [["__scopeId", "data-v-6a5a6e80"]]);
5922
6423
  const PlanTypeModel = models$2.PlanTypeModel;
5923
- const _sfc_main$h = /* @__PURE__ */ defineComponent({
6424
+ const _sfc_main$j = /* @__PURE__ */ defineComponent({
5924
6425
  ...{
5925
6426
  name: "PlanTypeCollection"
5926
6427
  },
@@ -5938,7 +6439,7 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
5938
6439
  };
5939
6440
  }
5940
6441
  });
5941
- const _sfc_main$g = /* @__PURE__ */ defineComponent({
6442
+ const _sfc_main$i = /* @__PURE__ */ defineComponent({
5942
6443
  __name: "PlanTypeSingle",
5943
6444
  setup(__props) {
5944
6445
  const {
@@ -6059,9 +6560,9 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
6059
6560
  }
6060
6561
  });
6061
6562
  const PlanTypeSingle_vue_vue_type_style_index_0_scoped_80d2e1d3_lang = "";
6062
- const PlanTypeSingle = /* @__PURE__ */ _export_sfc(_sfc_main$g, [["__scopeId", "data-v-80d2e1d3"]]);
6563
+ const PlanTypeSingle = /* @__PURE__ */ _export_sfc(_sfc_main$i, [["__scopeId", "data-v-80d2e1d3"]]);
6063
6564
  const PlanModel = models$2.PlanModel;
6064
- const _sfc_main$f = /* @__PURE__ */ defineComponent({
6565
+ const _sfc_main$h = /* @__PURE__ */ defineComponent({
6065
6566
  ...{
6066
6567
  name: "PlanCollection"
6067
6568
  },
@@ -6079,7 +6580,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
6079
6580
  };
6080
6581
  }
6081
6582
  });
6082
- const _sfc_main$e = /* @__PURE__ */ defineComponent({
6583
+ const _sfc_main$g = /* @__PURE__ */ defineComponent({
6083
6584
  __name: "PlanSingle",
6084
6585
  setup(__props) {
6085
6586
  const {
@@ -6262,8 +6763,8 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
6262
6763
  }
6263
6764
  });
6264
6765
  const PlanSingle_vue_vue_type_style_index_0_scoped_a39127c2_lang = "";
6265
- const PlanSingle = /* @__PURE__ */ _export_sfc(_sfc_main$e, [["__scopeId", "data-v-a39127c2"]]);
6266
- const _sfc_main$d = /* @__PURE__ */ defineComponent({
6766
+ const PlanSingle = /* @__PURE__ */ _export_sfc(_sfc_main$g, [["__scopeId", "data-v-a39127c2"]]);
6767
+ const _sfc_main$f = /* @__PURE__ */ defineComponent({
6267
6768
  __name: "PlanStaff",
6268
6769
  setup(__props) {
6269
6770
  const {
@@ -6415,10 +6916,10 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
6415
6916
  }
6416
6917
  });
6417
6918
  const PlanStaff_vue_vue_type_style_index_0_scoped_aa8de6da_lang = "";
6418
- const PlanStaff = /* @__PURE__ */ _export_sfc(_sfc_main$d, [["__scopeId", "data-v-aa8de6da"]]);
6919
+ const PlanStaff = /* @__PURE__ */ _export_sfc(_sfc_main$f, [["__scopeId", "data-v-aa8de6da"]]);
6419
6920
  const ProgressModel = models$2.ProgressModel;
6420
- const _hoisted_1$6 = { class: "flex flex-wrap" };
6421
- const _sfc_main$c = /* @__PURE__ */ defineComponent({
6921
+ const _hoisted_1$8 = { class: "flex flex-wrap" };
6922
+ const _sfc_main$e = /* @__PURE__ */ defineComponent({
6422
6923
  ...{ name: "ProgressButton" },
6423
6924
  __name: "ProgressButton",
6424
6925
  setup(__props) {
@@ -6433,7 +6934,7 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
6433
6934
  router.push("/penugasan/yesterday-progresses/new");
6434
6935
  };
6435
6936
  return (_ctx, _cache) => {
6436
- return openBlock(), createElementBlock("div", _hoisted_1$6, [
6937
+ return openBlock(), createElementBlock("div", _hoisted_1$8, [
6437
6938
  createVNode(unref(NeonButton), {
6438
6939
  "is-rounded": true,
6439
6940
  size: "sm",
@@ -6464,7 +6965,30 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
6464
6965
  };
6465
6966
  }
6466
6967
  });
6467
- const _sfc_main$b = /* @__PURE__ */ defineComponent({
6968
+ const _hoisted_1$7 = { class: "flex flex-wrap" };
6969
+ const _sfc_main$d = /* @__PURE__ */ defineComponent({
6970
+ ...{ name: "ProgressNoteButton" },
6971
+ __name: "ProgressNoteButton",
6972
+ setup(__props) {
6973
+ const router = useRouter();
6974
+ const noteClick = () => {
6975
+ router.push("/penugasan/notes/new");
6976
+ };
6977
+ return (_ctx, _cache) => {
6978
+ return openBlock(), createElementBlock("div", _hoisted_1$7, [
6979
+ createVNode(unref(NeonButton), {
6980
+ "is-rounded": true,
6981
+ size: "sm",
6982
+ color: "dark",
6983
+ "icon-left": "plus",
6984
+ label: "Catatan",
6985
+ onClick: noteClick
6986
+ })
6987
+ ]);
6988
+ };
6989
+ }
6990
+ });
6991
+ const _sfc_main$c = /* @__PURE__ */ defineComponent({
6468
6992
  ...{
6469
6993
  name: "ProgressCollection"
6470
6994
  },
@@ -6527,10 +7051,10 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
6527
7051
  }
6528
7052
  });
6529
7053
  const ProgressCollection_vue_vue_type_style_index_0_scoped_2634660f_lang = "";
6530
- const ProgressCollection = /* @__PURE__ */ _export_sfc(_sfc_main$b, [["__scopeId", "data-v-2634660f"]]);
6531
- const _hoisted_1$5 = { class: "grid gap-2 sm:grid-cols-2" };
6532
- const _hoisted_2$5 = { class: "text-right text-fg-subdued text-sm" };
6533
- const _sfc_main$a = /* @__PURE__ */ defineComponent({
7054
+ const ProgressCollection = /* @__PURE__ */ _export_sfc(_sfc_main$c, [["__scopeId", "data-v-2634660f"]]);
7055
+ const _hoisted_1$6 = { class: "grid gap-2 sm:grid-cols-2" };
7056
+ const _hoisted_2$6 = { class: "text-right text-fg-subdued text-sm" };
7057
+ const _sfc_main$b = /* @__PURE__ */ defineComponent({
6534
7058
  __name: "ProgressSingle",
6535
7059
  setup(__props) {
6536
7060
  var _a;
@@ -6682,7 +7206,7 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
6682
7206
  _: 1
6683
7207
  /* STABLE */
6684
7208
  }),
6685
- createElementVNode("div", _hoisted_1$5, [
7209
+ createElementVNode("div", _hoisted_1$6, [
6686
7210
  createVNode(unref(NeonField), mergeProps({
6687
7211
  modelValue: unref(values).startedAt,
6688
7212
  "onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => unref(values).startedAt = $event)
@@ -6723,7 +7247,7 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
6723
7247
  }, null, 8, ["modelValue", "is-loading"]),
6724
7248
  createElementVNode(
6725
7249
  "div",
6726
- _hoisted_2$5,
7250
+ _hoisted_2$6,
6727
7251
  toDisplayString(duration.value),
6728
7252
  1
6729
7253
  /* TEXT */
@@ -6813,10 +7337,10 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
6813
7337
  }
6814
7338
  });
6815
7339
  const ProgressSingle_vue_vue_type_style_index_0_scoped_ca99d46c_lang = "";
6816
- const ProgressSingle = /* @__PURE__ */ _export_sfc(_sfc_main$a, [["__scopeId", "data-v-ca99d46c"]]);
6817
- const _hoisted_1$4 = { class: "grid gap-2 sm:grid-cols-2" };
6818
- const _hoisted_2$4 = { class: "text-right text-fg-subdued text-sm" };
6819
- const _sfc_main$9 = /* @__PURE__ */ defineComponent({
7340
+ const ProgressSingle = /* @__PURE__ */ _export_sfc(_sfc_main$b, [["__scopeId", "data-v-ca99d46c"]]);
7341
+ const _hoisted_1$5 = { class: "grid gap-2 sm:grid-cols-2" };
7342
+ const _hoisted_2$5 = { class: "text-right text-fg-subdued text-sm" };
7343
+ const _sfc_main$a = /* @__PURE__ */ defineComponent({
6820
7344
  __name: "ProgressTomorrow",
6821
7345
  setup(__props) {
6822
7346
  var _a;
@@ -6968,7 +7492,7 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
6968
7492
  _: 1
6969
7493
  /* STABLE */
6970
7494
  }),
6971
- createElementVNode("div", _hoisted_1$4, [
7495
+ createElementVNode("div", _hoisted_1$5, [
6972
7496
  createVNode(unref(NeonField), mergeProps({
6973
7497
  modelValue: unref(values).startedAt,
6974
7498
  "onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => unref(values).startedAt = $event)
@@ -7009,7 +7533,7 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
7009
7533
  }, null, 8, ["modelValue", "is-loading"]),
7010
7534
  createElementVNode(
7011
7535
  "div",
7012
- _hoisted_2$4,
7536
+ _hoisted_2$5,
7013
7537
  toDisplayString(duration.value),
7014
7538
  1
7015
7539
  /* TEXT */
@@ -7099,10 +7623,10 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
7099
7623
  }
7100
7624
  });
7101
7625
  const ProgressTomorrow_vue_vue_type_style_index_0_scoped_41302f2e_lang = "";
7102
- const ProgressTomorrow = /* @__PURE__ */ _export_sfc(_sfc_main$9, [["__scopeId", "data-v-41302f2e"]]);
7103
- const _hoisted_1$3 = { class: "grid gap-2 sm:grid-cols-2" };
7104
- const _hoisted_2$3 = { class: "text-right text-fg-subdued text-sm" };
7105
- const _sfc_main$8 = /* @__PURE__ */ defineComponent({
7626
+ const ProgressTomorrow = /* @__PURE__ */ _export_sfc(_sfc_main$a, [["__scopeId", "data-v-41302f2e"]]);
7627
+ const _hoisted_1$4 = { class: "grid gap-2 sm:grid-cols-2" };
7628
+ const _hoisted_2$4 = { class: "text-right text-fg-subdued text-sm" };
7629
+ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
7106
7630
  __name: "ProgressYesterday",
7107
7631
  setup(__props) {
7108
7632
  var _a;
@@ -7254,7 +7778,7 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
7254
7778
  _: 1
7255
7779
  /* STABLE */
7256
7780
  }),
7257
- createElementVNode("div", _hoisted_1$3, [
7781
+ createElementVNode("div", _hoisted_1$4, [
7258
7782
  createVNode(unref(NeonField), mergeProps({
7259
7783
  modelValue: unref(values).startedAt,
7260
7784
  "onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => unref(values).startedAt = $event)
@@ -7295,7 +7819,7 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
7295
7819
  }, null, 8, ["modelValue", "is-loading"]),
7296
7820
  createElementVNode(
7297
7821
  "div",
7298
- _hoisted_2$3,
7822
+ _hoisted_2$4,
7299
7823
  toDisplayString(duration.value),
7300
7824
  1
7301
7825
  /* TEXT */
@@ -7385,8 +7909,8 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
7385
7909
  }
7386
7910
  });
7387
7911
  const ProgressYesterday_vue_vue_type_style_index_0_scoped_78de8f41_lang = "";
7388
- const ProgressYesterday = /* @__PURE__ */ _export_sfc(_sfc_main$8, [["__scopeId", "data-v-78de8f41"]]);
7389
- const _sfc_main$7 = /* @__PURE__ */ defineComponent({
7912
+ const ProgressYesterday = /* @__PURE__ */ _export_sfc(_sfc_main$9, [["__scopeId", "data-v-78de8f41"]]);
7913
+ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
7390
7914
  __name: "ProgressNote",
7391
7915
  setup(__props) {
7392
7916
  var _a;
@@ -7545,9 +8069,9 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
7545
8069
  }
7546
8070
  });
7547
8071
  const ProgressNote_vue_vue_type_style_index_0_scoped_cee18889_lang = "";
7548
- const ProgressNote = /* @__PURE__ */ _export_sfc(_sfc_main$7, [["__scopeId", "data-v-cee18889"]]);
8072
+ const ProgressNote = /* @__PURE__ */ _export_sfc(_sfc_main$8, [["__scopeId", "data-v-cee18889"]]);
7549
8073
  const AttendanceModel = models$2.AttendanceModel;
7550
- const _sfc_main$6 = /* @__PURE__ */ defineComponent({
8074
+ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
7551
8075
  ...{
7552
8076
  name: "AttendanceCollection"
7553
8077
  },
@@ -7565,9 +8089,9 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
7565
8089
  };
7566
8090
  }
7567
8091
  });
7568
- const _hoisted_1$2 = { class: "grid gap-2 sm:grid-cols-2" };
7569
- const _hoisted_2$2 = { class: "text-right text-fg-subdued text-sm" };
7570
- const _sfc_main$5 = /* @__PURE__ */ defineComponent({
8092
+ const _hoisted_1$3 = { class: "grid gap-2 sm:grid-cols-2" };
8093
+ const _hoisted_2$3 = { class: "text-right text-fg-subdued text-sm" };
8094
+ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
7571
8095
  __name: "AttendanceSingle",
7572
8096
  setup(__props) {
7573
8097
  const {
@@ -7658,30 +8182,449 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
7658
8182
  }, { "onUpdate:modelValue": onStartedAtUpdate }), null, 16, ["model-value"])),
7659
8183
  createVNode(unref(NeonField), mergeProps({
7660
8184
  modelValue: unref(values).type,
7661
- "onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => unref(values).type = $event)
7662
- }, unref(fields).type), null, 16, ["modelValue"]),
8185
+ "onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => unref(values).type = $event)
8186
+ }, unref(fields).type), null, 16, ["modelValue"]),
8187
+ createVNode(unref(OfficeRelation), {
8188
+ modelValue: unref(values),
8189
+ "onUpdate:modelValue": _cache[3] || (_cache[3] = ($event) => isRef(values) ? values.value = $event : null),
8190
+ field: unref(fields).decideStaff
8191
+ }, null, 8, ["modelValue", "field"]),
8192
+ unref(isNew) || unref(isReady) ? (openBlock(), createBlock(unref(NeonField), mergeProps({
8193
+ key: 0,
8194
+ modelValue: unref(values).notes,
8195
+ "onUpdate:modelValue": _cache[4] || (_cache[4] = ($event) => unref(values).notes = $event)
8196
+ }, unref(fields).notes), null, 16, ["modelValue"])) : createCommentVNode("v-if", true),
8197
+ createVNode(unref(NeonDivider), {
8198
+ "is-dashed": "",
8199
+ label: "Keterangan"
8200
+ }),
8201
+ createVNode(unref(NeonField), mergeProps({
8202
+ modelValue: unref(values).submittedAt,
8203
+ "onUpdate:modelValue": _cache[5] || (_cache[5] = ($event) => unref(values).submittedAt = $event)
8204
+ }, unref(fields).submittedAt), null, 16, ["modelValue"]),
8205
+ createElementVNode("div", _hoisted_1$3, [
8206
+ createVNode(unref(NeonField), mergeProps({
8207
+ modelValue: unref(values).startedAt,
8208
+ "onUpdate:modelValue": _cache[7] || (_cache[7] = ($event) => unref(values).startedAt = $event)
8209
+ }, {
8210
+ handle: "startedAt",
8211
+ name: "Mulai",
8212
+ options: {
8213
+ note: "Jam mulai."
8214
+ }
8215
+ }), {
8216
+ input: withCtx(() => [
8217
+ createVNode(unref(NeonTime), {
8218
+ modelValue: unref(values).startedAt,
8219
+ "onUpdate:modelValue": _cache[6] || (_cache[6] = ($event) => unref(values).startedAt = $event),
8220
+ "is-loading": unref(isLoading),
8221
+ class: "mt-2"
8222
+ }, null, 8, ["modelValue", "is-loading"])
8223
+ ]),
8224
+ _: 1
8225
+ /* STABLE */
8226
+ }, 16, ["modelValue"]),
8227
+ createVNode(unref(NeonField), mergeProps({
8228
+ modelValue: unref(values).endedAt,
8229
+ "onUpdate:modelValue": _cache[9] || (_cache[9] = ($event) => unref(values).endedAt = $event)
8230
+ }, {
8231
+ handle: "endedAt",
8232
+ name: "Selesai",
8233
+ options: {
8234
+ note: "Jam selesai."
8235
+ }
8236
+ }), {
8237
+ input: withCtx(() => [
8238
+ createVNode(unref(NeonTime), {
8239
+ modelValue: unref(values).endedAt,
8240
+ "onUpdate:modelValue": _cache[8] || (_cache[8] = ($event) => unref(values).endedAt = $event),
8241
+ "is-loading": unref(isLoading),
8242
+ class: "mt-2"
8243
+ }, null, 8, ["modelValue", "is-loading"]),
8244
+ createElementVNode(
8245
+ "div",
8246
+ _hoisted_2$3,
8247
+ toDisplayString(duration.value),
8248
+ 1
8249
+ /* TEXT */
8250
+ )
8251
+ ]),
8252
+ _: 1
8253
+ /* STABLE */
8254
+ }, 16, ["modelValue"])
8255
+ ])
8256
+ ]),
8257
+ _: 1
8258
+ /* STABLE */
8259
+ }, 8, ["initial-values", "is-loading", "is-changed", "onCancel", "onSubmit"])
8260
+ ]),
8261
+ _: 1
8262
+ /* STABLE */
8263
+ })
8264
+ ]),
8265
+ _: 1
8266
+ /* STABLE */
8267
+ }, 8, ["use-url"])
8268
+ ]),
8269
+ _: 1
8270
+ /* STABLE */
8271
+ });
8272
+ };
8273
+ }
8274
+ });
8275
+ const AttendanceSingle_vue_vue_type_style_index_0_scoped_0c3c6187_lang = "";
8276
+ const AttendanceSingle = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["__scopeId", "data-v-0c3c6187"]]);
8277
+ const _hoisted_1$2 = {
8278
+ key: 1,
8279
+ class: "flex flex-wrap"
8280
+ };
8281
+ const _hoisted_2$2 = { class: "mt-2" };
8282
+ const _hoisted_3$2 = { class: "mt-2" };
8283
+ const _hoisted_4$2 = {
8284
+ key: 5,
8285
+ class: "grid gap-2 sm:grid-cols-2"
8286
+ };
8287
+ const _hoisted_5$2 = { class: "text-right text-fg-subdued text-sm" };
8288
+ const _hoisted_6$2 = {
8289
+ key: 6,
8290
+ class: "grid gap-2 sm:grid-cols-2"
8291
+ };
8292
+ const _hoisted_7$2 = { class: "text-right text-fg-subdued text-sm" };
8293
+ const _hoisted_8$2 = {
8294
+ key: 7,
8295
+ class: "grid gap-2 sm:grid-cols-2"
8296
+ };
8297
+ const _hoisted_9$2 = { class: "text-right text-fg-subdued text-sm" };
8298
+ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
8299
+ __name: "AttendanceStaff",
8300
+ setup(__props) {
8301
+ var _a;
8302
+ const {
8303
+ fields,
8304
+ id,
8305
+ initialValues,
8306
+ values,
8307
+ isLoading,
8308
+ isChanged,
8309
+ isReady,
8310
+ isMain,
8311
+ isNew,
8312
+ saveOne,
8313
+ discardChanges,
8314
+ syncOne,
8315
+ executeOne
8316
+ } = useSingle();
8317
+ const key = ref(0);
8318
+ const diff = computed(() => {
8319
+ return DateUtil.day(values.value.endedAt).diff(values.value.startedAt);
8320
+ });
8321
+ const duration = computed(() => {
8322
+ if (isNaN(diff.value))
8323
+ return "-";
8324
+ const duration2 = DateUtil.day.duration(diff.value);
8325
+ return duration2.format("HH [jam] mm [menit]");
8326
+ });
8327
+ function onStartedAtUpdate(date) {
8328
+ if (!date)
8329
+ return;
8330
+ const currentEndedendedAt = DateUtil.day(values.value.endedAt);
8331
+ let startedAt = DateUtil.day(date);
8332
+ let endedAt = DateUtil.day(date);
8333
+ startedAt = startedAt.second(0).millisecond(0);
8334
+ endedAt = endedAt.hour(currentEndedendedAt.hour()).minute(currentEndedendedAt.minute()).second(0).millisecond(0);
8335
+ values.value.startedAt = startedAt.toISOString();
8336
+ values.value.endedAt = endedAt.toISOString();
8337
+ conflictAtt.value = false;
8338
+ }
8339
+ const { staff } = useOperasional();
8340
+ const staffId = ((_a = staff.value) == null ? void 0 : _a.id) || "";
8341
+ watch(
8342
+ isNew,
8343
+ (isNew2) => {
8344
+ if (!isNew2)
8345
+ return;
8346
+ values.value.submitStaffId = staffId;
8347
+ values.value.submitStaff = staff.value;
8348
+ },
8349
+ {
8350
+ immediate: true
8351
+ }
8352
+ );
8353
+ const submitAbsensi = async () => {
8354
+ await executeOne("submitAttendance", { attendanceId: id.value });
8355
+ await syncOne();
8356
+ };
8357
+ const changeAbsensi = async () => {
8358
+ await executeOne("changeAttendance", { attendanceId: id.value });
8359
+ await syncOne();
8360
+ };
8361
+ const conflictAtt = ref(false);
8362
+ async function conflictAttendance() {
8363
+ var _a2;
8364
+ const resp = await executeOne("checkAttendance", {
8365
+ staffId: (_a2 = staff.value) == null ? void 0 : _a2.id,
8366
+ startedAt: values.value.startedAt
8367
+ });
8368
+ const countAtt = resp.data.executeAttendance.output.countAttendance;
8369
+ if (values.value.startedAt) {
8370
+ if (countAtt > 1) {
8371
+ conflictAtt.value = true;
8372
+ } else {
8373
+ await submitAbsensi();
8374
+ await syncOne();
8375
+ conflictAtt.value = false;
8376
+ }
8377
+ } else {
8378
+ conflictAtt.value = true;
8379
+ }
8380
+ }
8381
+ const staffOptions = computed(() => {
8382
+ var _a2;
8383
+ return {
8384
+ filter: [
8385
+ {
8386
+ handle: "_id",
8387
+ operator: "nin",
8388
+ value: (_a2 = staff.value) == null ? void 0 : _a2.id
8389
+ }
8390
+ ]
8391
+ };
8392
+ });
8393
+ return (_ctx, _cache) => {
8394
+ return openBlock(), createBlock(unref(NeonSingle), { class: "neu-attendance-single" }, {
8395
+ default: withCtx(() => [
8396
+ createVNode(unref(OfficeTabs), { "use-url": unref(isMain) }, {
8397
+ default: withCtx(() => [
8398
+ createVNode(unref(OfficeTab), {
8399
+ handle: "info",
8400
+ icon: "circle-info",
8401
+ title: "Info"
8402
+ }, {
8403
+ default: withCtx(() => [
8404
+ createVNode(unref(NeonForm), {
8405
+ handle: "info",
8406
+ "initial-values": unref(initialValues),
8407
+ "is-loading": unref(isLoading),
8408
+ "is-changed": unref(isChanged),
8409
+ "use-unsaved": "",
8410
+ onCancel: unref(discardChanges),
8411
+ onSubmit: unref(saveOne)
8412
+ }, {
8413
+ default: withCtx(() => [
8414
+ conflictAtt.value == true ? (openBlock(), createBlock(unref(NeonAlert), {
8415
+ key: 0,
8416
+ icon: "circle-info",
8417
+ label: "Sudah ada Absensi!. ",
8418
+ description: "Untuk hari ini kamu sudah ada absensi yang diajukan, silahkan cari absensi yang telah diajukan dan ajukan kembali untuk pergantiannya.",
8419
+ color: "#F7CF6D"
8420
+ })) : createCommentVNode("v-if", true),
8421
+ !unref(isNew) && conflictAtt.value == false ? (openBlock(), createElementBlock("div", _hoisted_1$2, [
8422
+ createElementVNode("div", _hoisted_2$2, [
8423
+ createVNode(unref(NeonField), null, {
8424
+ input: withCtx(() => [
8425
+ createVNode(unref(NeonButton), {
8426
+ size: "md",
8427
+ color: "success",
8428
+ "icon-left": "up-from-line",
8429
+ "is-disabled": unref(values).status == "notApproved" || unref(values).status == "approved",
8430
+ onClick: conflictAttendance
8431
+ }, {
8432
+ default: withCtx(() => [
8433
+ createTextVNode("Ajukan")
8434
+ ]),
8435
+ _: 1
8436
+ /* STABLE */
8437
+ }, 8, ["is-disabled"])
8438
+ ]),
8439
+ _: 1
8440
+ /* STABLE */
8441
+ })
8442
+ ]),
8443
+ createTextVNode("    "),
8444
+ createElementVNode("div", _hoisted_3$2, [
8445
+ createVNode(unref(NeonField), null, {
8446
+ input: withCtx(() => [
8447
+ createVNode(unref(NeonButton), {
8448
+ size: "md",
8449
+ color: "warning",
8450
+ "icon-left": "arrows-retweet",
8451
+ "is-disabled": unref(values).status == "notApproved" || unref(values).status == "draft",
8452
+ onClick: changeAbsensi
8453
+ }, {
8454
+ default: withCtx(() => [
8455
+ createTextVNode("Ganti")
8456
+ ]),
8457
+ _: 1
8458
+ /* STABLE */
8459
+ }, 8, ["is-disabled"])
8460
+ ]),
8461
+ _: 1
8462
+ /* STABLE */
8463
+ })
8464
+ ])
8465
+ ])) : createCommentVNode("v-if", true),
8466
+ createVNode(unref(OfficeRelation), {
8467
+ modelValue: unref(values),
8468
+ "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => isRef(values) ? values.value = $event : null),
8469
+ field: unref(fields).submitStaff,
8470
+ "is-disabled": ""
8471
+ }, null, 8, ["modelValue", "field"]),
8472
+ (openBlock(), createBlock(unref(NeonField), mergeProps({
8473
+ key: key.value,
8474
+ "model-value": unref(values).startedAt
8475
+ }, {
8476
+ handle: "startedAt",
8477
+ name: "Tanggal",
8478
+ type: "date",
8479
+ input: "date2",
8480
+ options: {
8481
+ note: "Tanggal absensi."
8482
+ }
8483
+ }, {
8484
+ "is-disabled": unref(values).status == "notApproved" || unref(values).status == "approved",
8485
+ "onUpdate:modelValue": onStartedAtUpdate
8486
+ }), null, 16, ["model-value", "is-disabled"])),
8487
+ createVNode(unref(NeonField), mergeProps({
8488
+ modelValue: unref(values).type,
8489
+ "onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => unref(values).type = $event)
8490
+ }, unref(fields).type, {
8491
+ "is-disabled": unref(values).status == "notApproved" || unref(values).status == "approved"
8492
+ }), null, 16, ["modelValue", "is-disabled"]),
7663
8493
  createVNode(unref(OfficeRelation), {
7664
8494
  modelValue: unref(values),
7665
- "onUpdate:modelValue": _cache[3] || (_cache[3] = ($event) => isRef(values) ? values.value = $event : null),
7666
- field: unref(fields).decideStaff
7667
- }, null, 8, ["modelValue", "field"]),
8495
+ "onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => isRef(values) ? values.value = $event : null),
8496
+ field: unref(fields).decideStaff,
8497
+ query: unref(Query).define(staffOptions.value),
8498
+ "is-disabled": unref(values).status == "notApproved" || unref(values).status == "approved"
8499
+ }, null, 8, ["modelValue", "field", "query", "is-disabled"]),
7668
8500
  unref(isNew) || unref(isReady) ? (openBlock(), createBlock(unref(NeonField), mergeProps({
7669
- key: 0,
8501
+ key: 2,
7670
8502
  modelValue: unref(values).notes,
7671
- "onUpdate:modelValue": _cache[4] || (_cache[4] = ($event) => unref(values).notes = $event)
8503
+ "onUpdate:modelValue": _cache[3] || (_cache[3] = ($event) => unref(values).notes = $event)
7672
8504
  }, unref(fields).notes), null, 16, ["modelValue"])) : createCommentVNode("v-if", true),
7673
- createVNode(unref(NeonDivider), {
8505
+ unref(values).type ? (openBlock(), createBlock(unref(NeonDivider), {
8506
+ key: 3,
7674
8507
  "is-dashed": "",
7675
8508
  label: "Keterangan"
7676
- }),
7677
- createVNode(unref(NeonField), mergeProps({
8509
+ })) : createCommentVNode("v-if", true),
8510
+ unref(values).type == "dayOff" || unref(values).type == "sick" || unref(values).type == "permission" || unref(values).type == "leave" ? (openBlock(), createBlock(unref(NeonField), mergeProps({
8511
+ key: 4,
7678
8512
  modelValue: unref(values).submittedAt,
7679
- "onUpdate:modelValue": _cache[5] || (_cache[5] = ($event) => unref(values).submittedAt = $event)
7680
- }, unref(fields).submittedAt), null, 16, ["modelValue"]),
7681
- createElementVNode("div", _hoisted_1$2, [
8513
+ "onUpdate:modelValue": _cache[4] || (_cache[4] = ($event) => unref(values).submittedAt = $event)
8514
+ }, unref(fields).submittedAt, { "is-disabled": "" }), null, 16, ["modelValue"])) : createCommentVNode("v-if", true),
8515
+ createCommentVNode(" EARLY GO HOME "),
8516
+ unref(values).type == "homeEarly" ? (openBlock(), createElementBlock("div", _hoisted_4$2, [
7682
8517
  createVNode(unref(NeonField), mergeProps({
7683
8518
  modelValue: unref(values).startedAt,
7684
- "onUpdate:modelValue": _cache[7] || (_cache[7] = ($event) => unref(values).startedAt = $event)
8519
+ "onUpdate:modelValue": _cache[6] || (_cache[6] = ($event) => unref(values).startedAt = $event)
8520
+ }, {
8521
+ handle: "startedAt",
8522
+ name: "Jam Pulang Kerja",
8523
+ options: {
8524
+ note: "Jam pulang kerja."
8525
+ }
8526
+ }), {
8527
+ input: withCtx(() => [
8528
+ createVNode(unref(NeonTime), {
8529
+ modelValue: unref(values).startedAt,
8530
+ "onUpdate:modelValue": _cache[5] || (_cache[5] = ($event) => unref(values).startedAt = $event),
8531
+ "is-loading": unref(isLoading),
8532
+ class: "mt-2",
8533
+ "is-disabled": unref(values).status == "notApproved" || unref(values).status == "approved"
8534
+ }, null, 8, ["modelValue", "is-loading", "is-disabled"])
8535
+ ]),
8536
+ _: 1
8537
+ /* STABLE */
8538
+ }, 16, ["modelValue"]),
8539
+ createVNode(unref(NeonField), mergeProps({
8540
+ modelValue: unref(values).endedAt,
8541
+ "onUpdate:modelValue": _cache[8] || (_cache[8] = ($event) => unref(values).endedAt = $event)
8542
+ }, {
8543
+ handle: "endedAt",
8544
+ name: "Jam Pulang Lebih Awal",
8545
+ options: {
8546
+ note: "Jam pulang lebih awal."
8547
+ }
8548
+ }), {
8549
+ input: withCtx(() => [
8550
+ createVNode(unref(NeonTime), {
8551
+ modelValue: unref(values).endedAt,
8552
+ "onUpdate:modelValue": _cache[7] || (_cache[7] = ($event) => unref(values).endedAt = $event),
8553
+ "is-loading": unref(isLoading),
8554
+ class: "mt-2",
8555
+ "is-disabled": unref(values).status == "notApproved" || unref(values).status == "approved"
8556
+ }, null, 8, ["modelValue", "is-loading", "is-disabled"]),
8557
+ createElementVNode(
8558
+ "div",
8559
+ _hoisted_5$2,
8560
+ toDisplayString(duration.value),
8561
+ 1
8562
+ /* TEXT */
8563
+ )
8564
+ ]),
8565
+ _: 1
8566
+ /* STABLE */
8567
+ }, 16, ["modelValue"])
8568
+ ])) : createCommentVNode("v-if", true),
8569
+ createCommentVNode(" COME TOO LATE "),
8570
+ unref(values).type == "comeLate" ? (openBlock(), createElementBlock("div", _hoisted_6$2, [
8571
+ createVNode(unref(NeonField), mergeProps({
8572
+ modelValue: unref(values).startedAt,
8573
+ "onUpdate:modelValue": _cache[10] || (_cache[10] = ($event) => unref(values).startedAt = $event)
8574
+ }, {
8575
+ handle: "startedAt",
8576
+ name: "Jam Datang",
8577
+ options: {
8578
+ note: "Jam Datang kerja."
8579
+ }
8580
+ }), {
8581
+ input: withCtx(() => [
8582
+ createVNode(unref(NeonTime), {
8583
+ modelValue: unref(values).startedAt,
8584
+ "onUpdate:modelValue": _cache[9] || (_cache[9] = ($event) => unref(values).startedAt = $event),
8585
+ "is-loading": unref(isLoading),
8586
+ class: "mt-2",
8587
+ "is-disabled": unref(values).status == "notApproved" || unref(values).status == "approved"
8588
+ }, null, 8, ["modelValue", "is-loading", "is-disabled"])
8589
+ ]),
8590
+ _: 1
8591
+ /* STABLE */
8592
+ }, 16, ["modelValue"]),
8593
+ createVNode(unref(NeonField), mergeProps({
8594
+ modelValue: unref(values).endedAt,
8595
+ "onUpdate:modelValue": _cache[12] || (_cache[12] = ($event) => unref(values).endedAt = $event)
8596
+ }, {
8597
+ handle: "endedAt",
8598
+ name: "Jam Datang Terlambat",
8599
+ options: {
8600
+ note: "Jam datang terlambat."
8601
+ }
8602
+ }), {
8603
+ input: withCtx(() => [
8604
+ createVNode(unref(NeonTime), {
8605
+ modelValue: unref(values).endedAt,
8606
+ "onUpdate:modelValue": _cache[11] || (_cache[11] = ($event) => unref(values).endedAt = $event),
8607
+ "is-loading": unref(isLoading),
8608
+ class: "mt-2",
8609
+ "is-disabled": unref(values).status == "notApproved" || unref(values).status == "approved"
8610
+ }, null, 8, ["modelValue", "is-loading", "is-disabled"]),
8611
+ createElementVNode(
8612
+ "div",
8613
+ _hoisted_7$2,
8614
+ toDisplayString(duration.value),
8615
+ 1
8616
+ /* TEXT */
8617
+ )
8618
+ ]),
8619
+ _: 1
8620
+ /* STABLE */
8621
+ }, 16, ["modelValue"])
8622
+ ])) : createCommentVNode("v-if", true),
8623
+ createCommentVNode(" TIMEOUT "),
8624
+ unref(values).type == "timeout" ? (openBlock(), createElementBlock("div", _hoisted_8$2, [
8625
+ createVNode(unref(NeonField), mergeProps({
8626
+ modelValue: unref(values).startedAt,
8627
+ "onUpdate:modelValue": _cache[14] || (_cache[14] = ($event) => unref(values).startedAt = $event)
7685
8628
  }, {
7686
8629
  handle: "startedAt",
7687
8630
  name: "Mulai",
@@ -7692,17 +8635,18 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
7692
8635
  input: withCtx(() => [
7693
8636
  createVNode(unref(NeonTime), {
7694
8637
  modelValue: unref(values).startedAt,
7695
- "onUpdate:modelValue": _cache[6] || (_cache[6] = ($event) => unref(values).startedAt = $event),
8638
+ "onUpdate:modelValue": _cache[13] || (_cache[13] = ($event) => unref(values).startedAt = $event),
7696
8639
  "is-loading": unref(isLoading),
7697
- class: "mt-2"
7698
- }, null, 8, ["modelValue", "is-loading"])
8640
+ class: "mt-2",
8641
+ "is-disabled": unref(values).status == "notApproved" || unref(values).status == "approved"
8642
+ }, null, 8, ["modelValue", "is-loading", "is-disabled"])
7699
8643
  ]),
7700
8644
  _: 1
7701
8645
  /* STABLE */
7702
8646
  }, 16, ["modelValue"]),
7703
8647
  createVNode(unref(NeonField), mergeProps({
7704
8648
  modelValue: unref(values).endedAt,
7705
- "onUpdate:modelValue": _cache[9] || (_cache[9] = ($event) => unref(values).endedAt = $event)
8649
+ "onUpdate:modelValue": _cache[16] || (_cache[16] = ($event) => unref(values).endedAt = $event)
7706
8650
  }, {
7707
8651
  handle: "endedAt",
7708
8652
  name: "Selesai",
@@ -7713,13 +8657,14 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
7713
8657
  input: withCtx(() => [
7714
8658
  createVNode(unref(NeonTime), {
7715
8659
  modelValue: unref(values).endedAt,
7716
- "onUpdate:modelValue": _cache[8] || (_cache[8] = ($event) => unref(values).endedAt = $event),
8660
+ "onUpdate:modelValue": _cache[15] || (_cache[15] = ($event) => unref(values).endedAt = $event),
7717
8661
  "is-loading": unref(isLoading),
7718
- class: "mt-2"
7719
- }, null, 8, ["modelValue", "is-loading"]),
8662
+ class: "mt-2",
8663
+ "is-disabled": unref(values).status == "notApproved" || unref(values).status == "approved"
8664
+ }, null, 8, ["modelValue", "is-loading", "is-disabled"]),
7720
8665
  createElementVNode(
7721
8666
  "div",
7722
- _hoisted_2$2,
8667
+ _hoisted_9$2,
7723
8668
  toDisplayString(duration.value),
7724
8669
  1
7725
8670
  /* TEXT */
@@ -7728,7 +8673,7 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
7728
8673
  _: 1
7729
8674
  /* STABLE */
7730
8675
  }, 16, ["modelValue"])
7731
- ])
8676
+ ])) : createCommentVNode("v-if", true)
7732
8677
  ]),
7733
8678
  _: 1
7734
8679
  /* STABLE */
@@ -7748,31 +8693,28 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
7748
8693
  };
7749
8694
  }
7750
8695
  });
7751
- const AttendanceSingle_vue_vue_type_style_index_0_scoped_0c3c6187_lang = "";
7752
- const AttendanceSingle = /* @__PURE__ */ _export_sfc(_sfc_main$5, [["__scopeId", "data-v-0c3c6187"]]);
7753
- const _hoisted_1$1 = {
7754
- key: 1,
7755
- class: "flex flex-wrap"
7756
- };
8696
+ const AttendanceStaff_vue_vue_type_style_index_0_scoped_a86e895b_lang = "";
8697
+ const AttendanceStaff = /* @__PURE__ */ _export_sfc(_sfc_main$5, [["__scopeId", "data-v-a86e895b"]]);
8698
+ const _hoisted_1$1 = { class: "flex flex-wrap" };
7757
8699
  const _hoisted_2$1 = { class: "mt-2" };
7758
8700
  const _hoisted_3$1 = { class: "mt-2" };
7759
8701
  const _hoisted_4$1 = {
7760
- key: 5,
8702
+ key: 3,
7761
8703
  class: "grid gap-2 sm:grid-cols-2"
7762
8704
  };
7763
8705
  const _hoisted_5$1 = { class: "text-right text-fg-subdued text-sm" };
7764
8706
  const _hoisted_6$1 = {
7765
- key: 6,
8707
+ key: 4,
7766
8708
  class: "grid gap-2 sm:grid-cols-2"
7767
8709
  };
7768
8710
  const _hoisted_7$1 = { class: "text-right text-fg-subdued text-sm" };
7769
8711
  const _hoisted_8$1 = {
7770
- key: 7,
8712
+ key: 5,
7771
8713
  class: "grid gap-2 sm:grid-cols-2"
7772
8714
  };
7773
8715
  const _hoisted_9$1 = { class: "text-right text-fg-subdued text-sm" };
7774
8716
  const _sfc_main$4 = /* @__PURE__ */ defineComponent({
7775
- __name: "AttendanceStaff",
8717
+ __name: "AttendanceManager",
7776
8718
  setup(__props) {
7777
8719
  var _a;
7778
8720
  const {
@@ -7800,6 +8742,15 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
7800
8742
  const duration2 = DateUtil.day.duration(diff.value);
7801
8743
  return duration2.format("HH [jam] mm [menit]");
7802
8744
  });
8745
+ const reverseDiff = computed(() => {
8746
+ return DateUtil.day(values.value.startedAt).diff(values.value.endedAt);
8747
+ });
8748
+ const reverseDuration = computed(() => {
8749
+ if (isNaN(reverseDiff.value))
8750
+ return "-";
8751
+ const duration2 = DateUtil.day.duration(reverseDiff.value);
8752
+ return duration2.format("HH [jam] mm [menit]");
8753
+ });
7803
8754
  function onStartedAtUpdate(date) {
7804
8755
  if (!date)
7805
8756
  return;
@@ -7810,7 +8761,6 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
7810
8761
  endedAt = endedAt.hour(currentEndedendedAt.hour()).minute(currentEndedendedAt.minute()).second(0).millisecond(0);
7811
8762
  values.value.startedAt = startedAt.toISOString();
7812
8763
  values.value.endedAt = endedAt.toISOString();
7813
- conflictAtt.value = false;
7814
8764
  }
7815
8765
  const { staff } = useOperasional();
7816
8766
  const staffId = ((_a = staff.value) == null ? void 0 : _a.id) || "";
@@ -7826,34 +8776,15 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
7826
8776
  immediate: true
7827
8777
  }
7828
8778
  );
7829
- const submitAbsensi = async () => {
7830
- await executeOne("submitAttendance", { attendanceId: id.value });
8779
+ const approvedAbsensi = async () => {
8780
+ await executeOne("approvedAttendance", { attendanceId: id.value });
7831
8781
  await syncOne();
7832
8782
  };
7833
- const changeAbsensi = async () => {
7834
- await executeOne("changeAttendance", { attendanceId: id.value });
8783
+ const deleteAbsensi = async () => {
8784
+ await executeOne("deleteAttendance", { attendanceId: id.value });
7835
8785
  await syncOne();
8786
+ window.location.href = "/penugasan/manager-attendances";
7836
8787
  };
7837
- const conflictAtt = ref(false);
7838
- async function conflictAttendance() {
7839
- var _a2;
7840
- const resp = await executeOne("checkAttendance", {
7841
- staffId: (_a2 = staff.value) == null ? void 0 : _a2.id,
7842
- startedAt: values.value.startedAt
7843
- });
7844
- const countAtt = resp.data.executeAttendance.output.countAttendance;
7845
- if (values.value.startedAt) {
7846
- if (countAtt > 1) {
7847
- conflictAtt.value = true;
7848
- } else {
7849
- await submitAbsensi();
7850
- await syncOne();
7851
- conflictAtt.value = false;
7852
- }
7853
- } else {
7854
- conflictAtt.value = true;
7855
- }
7856
- }
7857
8788
  return (_ctx, _cache) => {
7858
8789
  return openBlock(), createBlock(unref(NeonSingle), { class: "neu-attendance-single" }, {
7859
8790
  default: withCtx(() => [
@@ -7875,26 +8806,19 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
7875
8806
  onSubmit: unref(saveOne)
7876
8807
  }, {
7877
8808
  default: withCtx(() => [
7878
- conflictAtt.value == true ? (openBlock(), createBlock(unref(NeonAlert), {
7879
- key: 0,
7880
- icon: "circle-info",
7881
- label: "Sudah ada Absensi!. ",
7882
- description: "Untuk hari ini kamu sudah ada absensi yang diajukan, silahkan cari absensi yang telah diajukan dan ajukan kembali untuk pergantiannya.",
7883
- color: "#F7CF6D"
7884
- })) : createCommentVNode("v-if", true),
7885
- !unref(isNew) && conflictAtt.value == false ? (openBlock(), createElementBlock("div", _hoisted_1$1, [
8809
+ createElementVNode("div", _hoisted_1$1, [
7886
8810
  createElementVNode("div", _hoisted_2$1, [
7887
8811
  createVNode(unref(NeonField), null, {
7888
8812
  input: withCtx(() => [
7889
8813
  createVNode(unref(NeonButton), {
7890
8814
  size: "md",
7891
8815
  color: "success",
7892
- "icon-left": "up-from-line",
7893
- "is-disabled": unref(values).status == "notApproved" || unref(values).status == "approved",
7894
- onClick: conflictAttendance
8816
+ "icon-left": "check",
8817
+ "is-disabled": unref(values).status == "approved",
8818
+ onClick: approvedAbsensi
7895
8819
  }, {
7896
8820
  default: withCtx(() => [
7897
- createTextVNode("Ajukan")
8821
+ createTextVNode("Disetujui")
7898
8822
  ]),
7899
8823
  _: 1
7900
8824
  /* STABLE */
@@ -7910,23 +8834,22 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
7910
8834
  input: withCtx(() => [
7911
8835
  createVNode(unref(NeonButton), {
7912
8836
  size: "md",
7913
- color: "warning",
7914
- "icon-left": "arrows-retweet",
7915
- "is-disabled": unref(values).status == "notApproved" || unref(values).status == "draft",
7916
- onClick: changeAbsensi
8837
+ color: "danger",
8838
+ "icon-left": "trash-can",
8839
+ onClick: deleteAbsensi
7917
8840
  }, {
7918
8841
  default: withCtx(() => [
7919
- createTextVNode("Ganti")
8842
+ createTextVNode("Dihapus")
7920
8843
  ]),
7921
8844
  _: 1
7922
8845
  /* STABLE */
7923
- }, 8, ["is-disabled"])
8846
+ })
7924
8847
  ]),
7925
8848
  _: 1
7926
8849
  /* STABLE */
7927
8850
  })
7928
8851
  ])
7929
- ])) : createCommentVNode("v-if", true),
8852
+ ]),
7930
8853
  createVNode(unref(OfficeRelation), {
7931
8854
  modelValue: unref(values),
7932
8855
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => isRef(values) ? values.value = $event : null),
@@ -7945,33 +8868,33 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
7945
8868
  note: "Tanggal absensi."
7946
8869
  }
7947
8870
  }, {
7948
- "is-disabled": unref(values).status == "notApproved" || unref(values).status == "approved",
8871
+ "is-disabled": unref(values).status == "approved",
7949
8872
  "onUpdate:modelValue": onStartedAtUpdate
7950
8873
  }), null, 16, ["model-value", "is-disabled"])),
7951
8874
  createVNode(unref(NeonField), mergeProps({
7952
8875
  modelValue: unref(values).type,
7953
8876
  "onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => unref(values).type = $event)
7954
8877
  }, unref(fields).type, {
7955
- "is-disabled": unref(values).status == "notApproved" || unref(values).status == "approved"
8878
+ "is-disabled": unref(values).status == "approved"
7956
8879
  }), null, 16, ["modelValue", "is-disabled"]),
7957
8880
  createVNode(unref(OfficeRelation), {
7958
8881
  modelValue: unref(values),
7959
8882
  "onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => isRef(values) ? values.value = $event : null),
7960
8883
  field: unref(fields).decideStaff,
7961
- "is-disabled": unref(values).status == "notApproved" || unref(values).status == "approved"
8884
+ "is-disabled": unref(values).status == "approved"
7962
8885
  }, null, 8, ["modelValue", "field", "is-disabled"]),
7963
8886
  unref(isNew) || unref(isReady) ? (openBlock(), createBlock(unref(NeonField), mergeProps({
7964
- key: 2,
8887
+ key: 0,
7965
8888
  modelValue: unref(values).notes,
7966
8889
  "onUpdate:modelValue": _cache[3] || (_cache[3] = ($event) => unref(values).notes = $event)
7967
8890
  }, unref(fields).notes), null, 16, ["modelValue"])) : createCommentVNode("v-if", true),
7968
8891
  unref(values).type ? (openBlock(), createBlock(unref(NeonDivider), {
7969
- key: 3,
8892
+ key: 1,
7970
8893
  "is-dashed": "",
7971
8894
  label: "Keterangan"
7972
8895
  })) : createCommentVNode("v-if", true),
7973
8896
  unref(values).type == "dayOff" || unref(values).type == "sick" || unref(values).type == "permission" || unref(values).type == "leave" ? (openBlock(), createBlock(unref(NeonField), mergeProps({
7974
- key: 4,
8897
+ key: 2,
7975
8898
  modelValue: unref(values).submittedAt,
7976
8899
  "onUpdate:modelValue": _cache[4] || (_cache[4] = ($event) => unref(values).submittedAt = $event)
7977
8900
  }, unref(fields).submittedAt, { "is-disabled": "" }), null, 16, ["modelValue"])) : createCommentVNode("v-if", true),
@@ -8018,7 +8941,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
8018
8941
  createElementVNode(
8019
8942
  "div",
8020
8943
  _hoisted_5$1,
8021
- toDisplayString(duration.value),
8944
+ toDisplayString(reverseDuration.value),
8022
8945
  1
8023
8946
  /* TEXT */
8024
8947
  )
@@ -8150,8 +9073,8 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
8150
9073
  };
8151
9074
  }
8152
9075
  });
8153
- const AttendanceStaff_vue_vue_type_style_index_0_scoped_724535b0_lang = "";
8154
- const AttendanceStaff = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["__scopeId", "data-v-724535b0"]]);
9076
+ const AttendanceManager_vue_vue_type_style_index_0_scoped_643cca03_lang = "";
9077
+ const AttendanceManager = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["__scopeId", "data-v-643cca03"]]);
8155
9078
  const _hoisted_1 = { class: "flex flex-wrap" };
8156
9079
  const _hoisted_2 = { class: "mt-2" };
8157
9080
  const _hoisted_3 = { class: "mt-2" };
@@ -8171,7 +9094,7 @@ const _hoisted_8 = {
8171
9094
  };
8172
9095
  const _hoisted_9 = { class: "text-right text-fg-subdued text-sm" };
8173
9096
  const _sfc_main$3 = /* @__PURE__ */ defineComponent({
8174
- __name: "AttendanceManager",
9097
+ __name: "AttendanceSupervisor",
8175
9098
  setup(__props) {
8176
9099
  var _a;
8177
9100
  const {
@@ -8240,7 +9163,7 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
8240
9163
  const deleteAbsensi = async () => {
8241
9164
  await executeOne("deleteAttendance", { attendanceId: id.value });
8242
9165
  await syncOne();
8243
- window.location.href = "/penugasan/manager-attendances";
9166
+ window.location.href = "/pengawas/attendances";
8244
9167
  };
8245
9168
  return (_ctx, _cache) => {
8246
9169
  return openBlock(), createBlock(unref(NeonSingle), { class: "neu-attendance-single" }, {
@@ -8334,16 +9257,15 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
8334
9257
  }, unref(fields).type, {
8335
9258
  "is-disabled": unref(values).status == "approved"
8336
9259
  }), null, 16, ["modelValue", "is-disabled"]),
8337
- createVNode(unref(OfficeRelation), {
8338
- modelValue: unref(values),
8339
- "onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => isRef(values) ? values.value = $event : null),
8340
- field: unref(fields).decideStaff,
8341
- "is-disabled": unref(values).status == "approved"
8342
- }, null, 8, ["modelValue", "field", "is-disabled"]),
9260
+ createCommentVNode(` <OfficeRelation
9261
+ v-model="values"
9262
+ :field="fields.decideStaff"
9263
+ :is-disabled="values.status == 'approved'"
9264
+ /> `),
8343
9265
  unref(isNew) || unref(isReady) ? (openBlock(), createBlock(unref(NeonField), mergeProps({
8344
9266
  key: 0,
8345
9267
  modelValue: unref(values).notes,
8346
- "onUpdate:modelValue": _cache[3] || (_cache[3] = ($event) => unref(values).notes = $event)
9268
+ "onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => unref(values).notes = $event)
8347
9269
  }, unref(fields).notes), null, 16, ["modelValue"])) : createCommentVNode("v-if", true),
8348
9270
  unref(values).type ? (openBlock(), createBlock(unref(NeonDivider), {
8349
9271
  key: 1,
@@ -8353,13 +9275,13 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
8353
9275
  unref(values).type == "dayOff" || unref(values).type == "sick" || unref(values).type == "permission" || unref(values).type == "leave" ? (openBlock(), createBlock(unref(NeonField), mergeProps({
8354
9276
  key: 2,
8355
9277
  modelValue: unref(values).submittedAt,
8356
- "onUpdate:modelValue": _cache[4] || (_cache[4] = ($event) => unref(values).submittedAt = $event)
9278
+ "onUpdate:modelValue": _cache[3] || (_cache[3] = ($event) => unref(values).submittedAt = $event)
8357
9279
  }, unref(fields).submittedAt, { "is-disabled": "" }), null, 16, ["modelValue"])) : createCommentVNode("v-if", true),
8358
9280
  createCommentVNode(" EARLY GO HOME "),
8359
9281
  unref(values).type == "homeEarly" ? (openBlock(), createElementBlock("div", _hoisted_4, [
8360
9282
  createVNode(unref(NeonField), mergeProps({
8361
9283
  modelValue: unref(values).startedAt,
8362
- "onUpdate:modelValue": _cache[6] || (_cache[6] = ($event) => unref(values).startedAt = $event)
9284
+ "onUpdate:modelValue": _cache[5] || (_cache[5] = ($event) => unref(values).startedAt = $event)
8363
9285
  }, {
8364
9286
  handle: "startedAt",
8365
9287
  name: "Jam Pulang Kerja",
@@ -8370,7 +9292,7 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
8370
9292
  input: withCtx(() => [
8371
9293
  createVNode(unref(NeonTime), {
8372
9294
  modelValue: unref(values).startedAt,
8373
- "onUpdate:modelValue": _cache[5] || (_cache[5] = ($event) => unref(values).startedAt = $event),
9295
+ "onUpdate:modelValue": _cache[4] || (_cache[4] = ($event) => unref(values).startedAt = $event),
8374
9296
  "is-loading": unref(isLoading),
8375
9297
  class: "mt-2"
8376
9298
  }, null, 8, ["modelValue", "is-loading"])
@@ -8380,7 +9302,7 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
8380
9302
  }, 16, ["modelValue"]),
8381
9303
  createVNode(unref(NeonField), mergeProps({
8382
9304
  modelValue: unref(values).endedAt,
8383
- "onUpdate:modelValue": _cache[8] || (_cache[8] = ($event) => unref(values).endedAt = $event)
9305
+ "onUpdate:modelValue": _cache[7] || (_cache[7] = ($event) => unref(values).endedAt = $event)
8384
9306
  }, {
8385
9307
  handle: "endedAt",
8386
9308
  name: "Jam Pulang Lebih Awal",
@@ -8391,7 +9313,7 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
8391
9313
  input: withCtx(() => [
8392
9314
  createVNode(unref(NeonTime), {
8393
9315
  modelValue: unref(values).endedAt,
8394
- "onUpdate:modelValue": _cache[7] || (_cache[7] = ($event) => unref(values).endedAt = $event),
9316
+ "onUpdate:modelValue": _cache[6] || (_cache[6] = ($event) => unref(values).endedAt = $event),
8395
9317
  "is-loading": unref(isLoading),
8396
9318
  class: "mt-2"
8397
9319
  }, null, 8, ["modelValue", "is-loading"]),
@@ -8411,7 +9333,7 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
8411
9333
  unref(values).type == "comeLate" ? (openBlock(), createElementBlock("div", _hoisted_6, [
8412
9334
  createVNode(unref(NeonField), mergeProps({
8413
9335
  modelValue: unref(values).startedAt,
8414
- "onUpdate:modelValue": _cache[10] || (_cache[10] = ($event) => unref(values).startedAt = $event)
9336
+ "onUpdate:modelValue": _cache[9] || (_cache[9] = ($event) => unref(values).startedAt = $event)
8415
9337
  }, {
8416
9338
  handle: "startedAt",
8417
9339
  name: "Jam Datang",
@@ -8422,7 +9344,7 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
8422
9344
  input: withCtx(() => [
8423
9345
  createVNode(unref(NeonTime), {
8424
9346
  modelValue: unref(values).startedAt,
8425
- "onUpdate:modelValue": _cache[9] || (_cache[9] = ($event) => unref(values).startedAt = $event),
9347
+ "onUpdate:modelValue": _cache[8] || (_cache[8] = ($event) => unref(values).startedAt = $event),
8426
9348
  "is-loading": unref(isLoading),
8427
9349
  class: "mt-2"
8428
9350
  }, null, 8, ["modelValue", "is-loading"])
@@ -8432,7 +9354,7 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
8432
9354
  }, 16, ["modelValue"]),
8433
9355
  createVNode(unref(NeonField), mergeProps({
8434
9356
  modelValue: unref(values).endedAt,
8435
- "onUpdate:modelValue": _cache[12] || (_cache[12] = ($event) => unref(values).endedAt = $event)
9357
+ "onUpdate:modelValue": _cache[11] || (_cache[11] = ($event) => unref(values).endedAt = $event)
8436
9358
  }, {
8437
9359
  handle: "endedAt",
8438
9360
  name: "Jam Datang Terlambat",
@@ -8443,7 +9365,7 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
8443
9365
  input: withCtx(() => [
8444
9366
  createVNode(unref(NeonTime), {
8445
9367
  modelValue: unref(values).endedAt,
8446
- "onUpdate:modelValue": _cache[11] || (_cache[11] = ($event) => unref(values).endedAt = $event),
9368
+ "onUpdate:modelValue": _cache[10] || (_cache[10] = ($event) => unref(values).endedAt = $event),
8447
9369
  "is-loading": unref(isLoading),
8448
9370
  class: "mt-2"
8449
9371
  }, null, 8, ["modelValue", "is-loading"]),
@@ -8463,7 +9385,7 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
8463
9385
  unref(values).type == "timeout" ? (openBlock(), createElementBlock("div", _hoisted_8, [
8464
9386
  createVNode(unref(NeonField), mergeProps({
8465
9387
  modelValue: unref(values).startedAt,
8466
- "onUpdate:modelValue": _cache[14] || (_cache[14] = ($event) => unref(values).startedAt = $event)
9388
+ "onUpdate:modelValue": _cache[13] || (_cache[13] = ($event) => unref(values).startedAt = $event)
8467
9389
  }, {
8468
9390
  handle: "startedAt",
8469
9391
  name: "Mulai",
@@ -8474,7 +9396,7 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
8474
9396
  input: withCtx(() => [
8475
9397
  createVNode(unref(NeonTime), {
8476
9398
  modelValue: unref(values).startedAt,
8477
- "onUpdate:modelValue": _cache[13] || (_cache[13] = ($event) => unref(values).startedAt = $event),
9399
+ "onUpdate:modelValue": _cache[12] || (_cache[12] = ($event) => unref(values).startedAt = $event),
8478
9400
  "is-loading": unref(isLoading),
8479
9401
  class: "mt-2"
8480
9402
  }, null, 8, ["modelValue", "is-loading"])
@@ -8484,7 +9406,7 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
8484
9406
  }, 16, ["modelValue"]),
8485
9407
  createVNode(unref(NeonField), mergeProps({
8486
9408
  modelValue: unref(values).endedAt,
8487
- "onUpdate:modelValue": _cache[16] || (_cache[16] = ($event) => unref(values).endedAt = $event)
9409
+ "onUpdate:modelValue": _cache[15] || (_cache[15] = ($event) => unref(values).endedAt = $event)
8488
9410
  }, {
8489
9411
  handle: "endedAt",
8490
9412
  name: "Selesai",
@@ -8495,7 +9417,7 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
8495
9417
  input: withCtx(() => [
8496
9418
  createVNode(unref(NeonTime), {
8497
9419
  modelValue: unref(values).endedAt,
8498
- "onUpdate:modelValue": _cache[15] || (_cache[15] = ($event) => unref(values).endedAt = $event),
9420
+ "onUpdate:modelValue": _cache[14] || (_cache[14] = ($event) => unref(values).endedAt = $event),
8499
9421
  "is-loading": unref(isLoading),
8500
9422
  class: "mt-2"
8501
9423
  }, null, 8, ["modelValue", "is-loading"]),
@@ -8530,8 +9452,8 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
8530
9452
  };
8531
9453
  }
8532
9454
  });
8533
- const AttendanceManager_vue_vue_type_style_index_0_scoped_643cca03_lang = "";
8534
- const AttendanceManager = /* @__PURE__ */ _export_sfc(_sfc_main$3, [["__scopeId", "data-v-643cca03"]]);
9455
+ const AttendanceSupervisor_vue_vue_type_style_index_0_scoped_3b3cd9ef_lang = "";
9456
+ const AttendanceSupervisor = /* @__PURE__ */ _export_sfc(_sfc_main$3, [["__scopeId", "data-v-3b3cd9ef"]]);
8535
9457
  const ProgressAccessModel = models$2.ProgressAccessModel;
8536
9458
  const _sfc_main$2 = /* @__PURE__ */ defineComponent({
8537
9459
  ...{
@@ -8691,81 +9613,86 @@ const ProgressAccessSupervisor_vue_vue_type_style_index_0_scoped_54eff340_lang =
8691
9613
  const ProgressAccessSupervisor = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-54eff340"]]);
8692
9614
  const components = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
8693
9615
  __proto__: null,
8694
- AttendanceCollection: _sfc_main$6,
9616
+ AttendanceCollection: _sfc_main$7,
8695
9617
  AttendanceManager,
8696
9618
  AttendanceModel,
8697
9619
  AttendanceSingle,
8698
9620
  AttendanceStaff,
9621
+ AttendanceSupervisor,
8699
9622
  CheckInAccess,
8700
- CheckInCollection: _sfc_main$N,
9623
+ CheckInCollection: _sfc_main$S,
8701
9624
  CheckInExternal,
8702
9625
  CheckInModel,
8703
9626
  CheckInPresenceCollection,
8704
- CheckInScanError: _sfc_main$Q,
8705
- CheckInScanSuccess: _sfc_main$O,
9627
+ CheckInScanError: _sfc_main$V,
9628
+ CheckInScanSuccess: _sfc_main$T,
8706
9629
  CheckInScanner,
8707
9630
  CheckInSingle,
9631
+ CheckInSupervisor,
8708
9632
  NeonTime,
8709
9633
  OperasionalIdentitas,
8710
- PlanCollection: _sfc_main$f,
9634
+ PlanCollection: _sfc_main$h,
8711
9635
  PlanModel,
8712
9636
  PlanSingle,
8713
9637
  PlanStaff,
8714
- PlanTypeCollection: _sfc_main$h,
9638
+ PlanTypeCollection: _sfc_main$j,
8715
9639
  PlanTypeModel,
8716
9640
  PlanTypeSingle,
8717
9641
  ProgressAccessCollection: _sfc_main$2,
8718
9642
  ProgressAccessModel,
8719
9643
  ProgressAccessSingle,
8720
9644
  ProgressAccessSupervisor,
8721
- ProgressButton: _sfc_main$c,
9645
+ ProgressButton: _sfc_main$e,
8722
9646
  ProgressCollection,
8723
9647
  ProgressModel,
8724
9648
  ProgressNote,
9649
+ ProgressNoteButton: _sfc_main$d,
8725
9650
  ProgressSingle,
8726
9651
  ProgressTomorrow,
8727
9652
  ProgressYesterday,
8728
- ResponsibilityCollection: _sfc_main$n,
9653
+ ResponsibilityCollection: _sfc_main$q,
8729
9654
  ResponsibilityModel,
8730
9655
  ResponsibilitySingle,
8731
9656
  ResponsibilityStaff,
8732
- ResponsibilityTypeCollection: _sfc_main$p,
9657
+ ResponsibilitySupervisor,
9658
+ ResponsibilityTypeCollection: _sfc_main$s,
8733
9659
  ResponsibilityTypeModel,
8734
9660
  ResponsibilityTypeSingle,
8735
- SituationCollection: _sfc_main$I,
9661
+ SituationCollection: _sfc_main$M,
8736
9662
  SituationModel,
8737
- SituationSingle: _sfc_main$H,
8738
- SituationSupportive: _sfc_main$F,
8739
- SituationTypeCollection: _sfc_main$E,
9663
+ SituationSingle: _sfc_main$L,
9664
+ SituationSupportive: _sfc_main$J,
9665
+ SituationTypeCollection: _sfc_main$I,
8740
9666
  SituationTypeModel,
8741
- SituationTypeSingle: _sfc_main$D,
8742
- SituationWork: _sfc_main$G,
8743
- StaffCollection: _sfc_main$M,
8744
- StaffIdentity: _sfc_main$J,
9667
+ SituationTypeSingle: _sfc_main$H,
9668
+ SituationWork: _sfc_main$K,
9669
+ StaffCollection: _sfc_main$Q,
9670
+ StaffIdentity: _sfc_main$N,
8745
9671
  StaffModel,
8746
9672
  StaffOperasional,
8747
9673
  StaffSingle,
8748
9674
  SubmissionAudit,
8749
- SubmissionCollection: _sfc_main$y,
9675
+ SubmissionCollection: _sfc_main$C,
8750
9676
  SubmissionDecision,
8751
9677
  SubmissionFollowUp,
8752
9678
  SubmissionModel,
8753
9679
  SubmissionSingle,
8754
9680
  SubmissionStaff,
8755
- SubmissionTypeCollection: _sfc_main$r,
9681
+ SubmissionSupervisor,
9682
+ SubmissionTypeCollection: _sfc_main$u,
8756
9683
  SubmissionTypeModel,
8757
9684
  SubmissionTypeSingle,
8758
9685
  SubmissionWaitingDecision,
8759
9686
  TargetBranch,
8760
- TargetCollection: _sfc_main$k,
9687
+ TargetCollection: _sfc_main$m,
8761
9688
  TargetModel,
8762
9689
  TargetSingle,
8763
- TaskCollection: _sfc_main$B,
9690
+ TaskCollection: _sfc_main$F,
8764
9691
  TaskModel,
8765
- TaskSingle: _sfc_main$A,
8766
- TaskWork: _sfc_main$z,
8767
- TaskWorkButton: _sfc_main$C,
8768
- XxxButton: _sfc_main$X
9692
+ TaskSingle: _sfc_main$E,
9693
+ TaskWork: _sfc_main$D,
9694
+ TaskWorkButton: _sfc_main$G,
9695
+ XxxButton: _sfc_main$10
8769
9696
  }, Symbol.toStringTag, { value: "Module" }));
8770
9697
  function registerComponents(app) {
8771
9698
  Object.entries(components).forEach(([name, component]) => {
@@ -8781,84 +9708,89 @@ const OperasionalInterfacesPlugin = {
8781
9708
  }
8782
9709
  };
8783
9710
  export {
8784
- _sfc_main$6 as AttendanceCollection,
9711
+ _sfc_main$7 as AttendanceCollection,
8785
9712
  AttendanceManager,
8786
9713
  AttendanceModel,
8787
9714
  AttendanceSingle,
8788
9715
  AttendanceStaff,
9716
+ AttendanceSupervisor,
8789
9717
  CheckInAccess,
8790
- _sfc_main$N as CheckInCollection,
9718
+ _sfc_main$S as CheckInCollection,
8791
9719
  CheckInExternal,
8792
9720
  CheckInModel,
8793
9721
  CheckInPresenceCollection,
8794
- _sfc_main$Q as CheckInScanError,
8795
- _sfc_main$O as CheckInScanSuccess,
9722
+ _sfc_main$V as CheckInScanError,
9723
+ _sfc_main$T as CheckInScanSuccess,
8796
9724
  CheckInScanner,
8797
9725
  CheckInSingle,
9726
+ CheckInSupervisor,
8798
9727
  operasional_types as NOperasional,
8799
9728
  NeonTime,
8800
9729
  OperasionalIdentitas,
8801
9730
  OperasionalInterfacesPlugin,
8802
- _sfc_main$f as PlanCollection,
9731
+ _sfc_main$h as PlanCollection,
8803
9732
  PlanModel,
8804
9733
  PlanSingle,
8805
9734
  PlanStaff,
8806
- _sfc_main$h as PlanTypeCollection,
9735
+ _sfc_main$j as PlanTypeCollection,
8807
9736
  PlanTypeModel,
8808
9737
  PlanTypeSingle,
8809
9738
  _sfc_main$2 as ProgressAccessCollection,
8810
9739
  ProgressAccessModel,
8811
9740
  ProgressAccessSingle,
8812
9741
  ProgressAccessSupervisor,
8813
- _sfc_main$c as ProgressButton,
9742
+ _sfc_main$e as ProgressButton,
8814
9743
  ProgressCollection,
8815
9744
  ProgressModel,
8816
9745
  ProgressNote,
9746
+ _sfc_main$d as ProgressNoteButton,
8817
9747
  ProgressSingle,
8818
9748
  ProgressTomorrow,
8819
9749
  ProgressYesterday,
8820
- _sfc_main$n as ResponsibilityCollection,
9750
+ _sfc_main$q as ResponsibilityCollection,
8821
9751
  ResponsibilityModel,
8822
9752
  ResponsibilitySingle,
8823
9753
  ResponsibilityStaff,
8824
- _sfc_main$p as ResponsibilityTypeCollection,
9754
+ ResponsibilitySupervisor,
9755
+ _sfc_main$s as ResponsibilityTypeCollection,
8825
9756
  ResponsibilityTypeModel,
8826
9757
  ResponsibilityTypeSingle,
8827
9758
  graphql as Schema,
8828
- _sfc_main$I as SituationCollection,
9759
+ _sfc_main$M as SituationCollection,
8829
9760
  SituationModel,
8830
- _sfc_main$H as SituationSingle,
8831
- _sfc_main$F as SituationSupportive,
8832
- _sfc_main$E as SituationTypeCollection,
9761
+ _sfc_main$L as SituationSingle,
9762
+ _sfc_main$J as SituationSupportive,
9763
+ _sfc_main$I as SituationTypeCollection,
8833
9764
  SituationTypeModel,
8834
- _sfc_main$D as SituationTypeSingle,
8835
- _sfc_main$G as SituationWork,
8836
- _sfc_main$M as StaffCollection,
8837
- _sfc_main$J as StaffIdentity,
9765
+ _sfc_main$H as SituationTypeSingle,
9766
+ _sfc_main$K as SituationWork,
9767
+ _sfc_main$Q as StaffCollection,
9768
+ _sfc_main$N as StaffIdentity,
8838
9769
  StaffModel,
8839
9770
  StaffOperasional,
8840
9771
  StaffSingle,
8841
9772
  SubmissionAudit,
8842
- _sfc_main$y as SubmissionCollection,
9773
+ _sfc_main$C as SubmissionCollection,
8843
9774
  SubmissionDecision,
8844
9775
  SubmissionFollowUp,
8845
9776
  SubmissionModel,
8846
9777
  SubmissionSingle,
8847
9778
  SubmissionStaff,
8848
- _sfc_main$r as SubmissionTypeCollection,
9779
+ SubmissionSupervisor,
9780
+ _sfc_main$u as SubmissionTypeCollection,
8849
9781
  SubmissionTypeModel,
8850
9782
  SubmissionTypeSingle,
8851
9783
  SubmissionWaitingDecision,
8852
9784
  TargetBranch,
8853
- _sfc_main$k as TargetCollection,
9785
+ _sfc_main$m as TargetCollection,
8854
9786
  TargetModel,
8855
9787
  TargetSingle,
8856
- _sfc_main$B as TaskCollection,
9788
+ _sfc_main$F as TaskCollection,
8857
9789
  TaskModel,
8858
- _sfc_main$A as TaskSingle,
8859
- _sfc_main$z as TaskWork,
8860
- _sfc_main$C as TaskWorkButton,
8861
- _sfc_main$X as XxxButton,
9790
+ _sfc_main$E as TaskSingle,
9791
+ _sfc_main$D as TaskWork,
9792
+ _sfc_main$G as TaskWorkButton,
9793
+ _sfc_main$10 as XxxButton,
8862
9794
  bus,
8863
9795
  useAttendanceStore,
8864
9796
  useOperasional,