@neutron.co.id/operasional-interfaces 1.7.2 → 1.8.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/build/index.mjs CHANGED
@@ -3,7 +3,7 @@ import { defineComponent, openBlock, createElementBlock, createVNode, unref, ref
3
3
  import { NeonButton, NeonAvatar, NeonDivider, NeonModal, NeonSheet, useToastStore, NeonSlider, NeonSlide, NeonStat, NeonInfo } from "@neon.id/interfaces";
4
4
  import { GraphUtil, NeonCollectionContext, useSingle, NeonSingle, usePermit, useCollection, NeonCollection, useAppStore } from "@neon.id/context";
5
5
  import { RowUtil } from "@neon.id/display";
6
- import { NeonField, NeonForm, NeonFormWrapper, NeonFields } from "@neon.id/form";
6
+ import { NeonField, NeonForm, NeonFormWrapper, NeonFields, NeonCheck } from "@neon.id/form";
7
7
  import { IdentitasConnect, IdentitasAssistRegistration, IdentitasDelegate, useAuthStore } from "@neon.id/identitas-interfaces";
8
8
  import { models } from "@neon.id/identitas-models";
9
9
  import { Field } from "@neon.id/model";
@@ -15,15 +15,15 @@ import { format, startOfToday, endOfToday } from "date-fns";
15
15
  import { DatePicker } from "v-calendar";
16
16
  import { models as models$1 } from "@neutron.co.id/tempat-models";
17
17
  import { useEventBus, useIntervalFn, useThrottleFn } from "@vueuse/core";
18
- import { OfficeContent, OfficeCollectionQuery, OfficeCollectionOperation, OfficeTabs, OfficeTab, OfficeRelation, OfficeCollectionTable, OfficeCollectionRelated, OfficeCollectionCalendar } from "@neon.id/office";
18
+ import { OfficeContent, OfficeCollectionQuery, OfficeCollectionOperation, OfficeTabs, OfficeTab, OfficeRelation, OfficeCollectionTable, OfficeCollectionRelated, OfficeCollectionCalendar, OfficePad } from "@neon.id/office";
19
19
  import { defineStore, storeToRefs } from "pinia";
20
20
  import { useRouter, useRoute } from "vue-router";
21
21
  import { ComponentUtil } from "@neon.id/utils/component";
22
22
  import Scanner from "qr-scanner";
23
23
  import { models as models$2 } from "@neutron.co.id/personalia-models";
24
- import { CatatSketchPad } from "@neon.id/catat-interfaces";
25
- const _hoisted_1$j = { class: "xxx-button" };
26
- const _sfc_main$P = /* @__PURE__ */ defineComponent({
24
+ import { CatatSketchPad, CatatPaperSegments, CatatPaperPad } from "@neon.id/catat-interfaces";
25
+ const _hoisted_1$m = { class: "xxx-button" };
26
+ const _sfc_main$T = /* @__PURE__ */ defineComponent({
27
27
  ...{ name: "XxxButton" },
28
28
  __name: "XxxButton",
29
29
  props: {
@@ -34,18 +34,18 @@ const _sfc_main$P = /* @__PURE__ */ defineComponent({
34
34
  },
35
35
  setup(__props) {
36
36
  return (_ctx, _cache) => {
37
- return openBlock(), createElementBlock("div", _hoisted_1$j, [
37
+ return openBlock(), createElementBlock("div", _hoisted_1$m, [
38
38
  createVNode(unref(NeonButton), { label: "XXX" })
39
39
  ]);
40
40
  };
41
41
  }
42
42
  });
43
- const _hoisted_1$i = { class: "operasional-identitas" };
44
- const _hoisted_2$d = {
43
+ const _hoisted_1$l = { class: "operasional-identitas" };
44
+ const _hoisted_2$g = {
45
45
  key: 2,
46
46
  class: "section"
47
47
  };
48
- const _sfc_main$O = /* @__PURE__ */ defineComponent({
48
+ const _sfc_main$S = /* @__PURE__ */ defineComponent({
49
49
  ...{ name: "OperasionalIdentitas" },
50
50
  __name: "OperasionalIdentitas",
51
51
  props: {
@@ -300,7 +300,7 @@ const _sfc_main$O = /* @__PURE__ */ defineComponent({
300
300
  candidateId.value = null;
301
301
  }
302
302
  return (_ctx, _cache) => {
303
- return openBlock(), createElementBlock("div", _hoisted_1$i, [
303
+ return openBlock(), createElementBlock("div", _hoisted_1$l, [
304
304
  state.value === "connect" ? (openBlock(), createBlock(unref(IdentitasConnect), {
305
305
  key: 0,
306
306
  user: user.value,
@@ -352,7 +352,7 @@ const _sfc_main$O = /* @__PURE__ */ defineComponent({
352
352
  _: 1
353
353
  /* STABLE */
354
354
  }, 8, ["initial-values", "is-loading", "errors"])) : createCommentVNode("v-if", true),
355
- user.value && onDelegate ? (openBlock(), createElementBlock("div", _hoisted_2$d, [
355
+ user.value && onDelegate ? (openBlock(), createElementBlock("div", _hoisted_2$g, [
356
356
  createVNode(unref(NeonDivider), {
357
357
  "is-dashed": "",
358
358
  label: "Delegasi",
@@ -401,7 +401,7 @@ const _export_sfc = (sfc, props) => {
401
401
  }
402
402
  return target;
403
403
  };
404
- const OperasionalIdentitas = /* @__PURE__ */ _export_sfc(_sfc_main$O, [["__scopeId", "data-v-355c8370"]]);
404
+ const OperasionalIdentitas = /* @__PURE__ */ _export_sfc(_sfc_main$S, [["__scopeId", "data-v-355c8370"]]);
405
405
  var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof window !== "undefined" ? window : typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : {};
406
406
  function getDefaultExportFromCjs(x) {
407
407
  return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, "default") ? x["default"] : x;
@@ -503,13 +503,13 @@ var dayjs_min = { exports: {} };
503
503
  }, m2.valueOf = function() {
504
504
  return this.$d.getTime();
505
505
  }, m2.startOf = function(t2, e2) {
506
- var n2 = this, r2 = !!O.u(e2) || e2, h22 = O.p(t2), l2 = function(t3, e3) {
506
+ var n2 = this, r2 = !!O.u(e2) || e2, h3 = O.p(t2), l2 = function(t3, e3) {
507
507
  var i2 = O.w(n2.$u ? Date.UTC(n2.$y, e3, t3) : new Date(n2.$y, e3, t3), n2);
508
508
  return r2 ? i2 : i2.endOf(a);
509
509
  }, $2 = function(t3, e3) {
510
510
  return O.w(n2.toDate()[t3].apply(n2.toDate("s"), (r2 ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(e3)), n2);
511
511
  }, y2 = this.$W, M3 = this.$M, m3 = this.$D, v2 = "set" + (this.$u ? "UTC" : "");
512
- switch (h22) {
512
+ switch (h3) {
513
513
  case c:
514
514
  return r2 ? l2(1, 0) : l2(31, 11);
515
515
  case f:
@@ -532,7 +532,7 @@ var dayjs_min = { exports: {} };
532
532
  }, m2.endOf = function(t2) {
533
533
  return this.startOf(t2, false);
534
534
  }, m2.$set = function(t2, e2) {
535
- var n2, o2 = O.p(t2), h22 = "set" + (this.$u ? "UTC" : ""), l2 = (n2 = {}, n2[a] = h22 + "Date", n2[d] = h22 + "Date", n2[f] = h22 + "Month", n2[c] = h22 + "FullYear", n2[u] = h22 + "Hours", n2[s] = h22 + "Minutes", n2[i] = h22 + "Seconds", n2[r] = h22 + "Milliseconds", n2)[o2], $2 = o2 === a ? this.$D + (e2 - this.$W) : e2;
535
+ var n2, o2 = O.p(t2), h3 = "set" + (this.$u ? "UTC" : ""), l2 = (n2 = {}, n2[a] = h3 + "Date", n2[d] = h3 + "Date", n2[f] = h3 + "Month", n2[c] = h3 + "FullYear", n2[u] = h3 + "Hours", n2[s] = h3 + "Minutes", n2[i] = h3 + "Seconds", n2[r] = h3 + "Milliseconds", n2)[o2], $2 = o2 === a ? this.$D + (e2 - this.$W) : e2;
536
536
  if (o2 === f || o2 === c) {
537
537
  var y2 = this.clone().set(d, 1);
538
538
  y2.$d[l2]($2), y2.init(), this.$d = y2.set(d, Math.min(this.$D, y2.daysInMonth())).$d;
@@ -543,10 +543,10 @@ var dayjs_min = { exports: {} };
543
543
  return this.clone().$set(t2, e2);
544
544
  }, m2.get = function(t2) {
545
545
  return this[O.p(t2)]();
546
- }, m2.add = function(r2, h22) {
546
+ }, m2.add = function(r2, h3) {
547
547
  var d2, l2 = this;
548
548
  r2 = Number(r2);
549
- var $2 = O.p(h22), y2 = function(t2) {
549
+ var $2 = O.p(h3), y2 = function(t2) {
550
550
  var e2 = w(l2);
551
551
  return O.w(e2.date(e2.date() + Math.round(t2 * r2)), l2);
552
552
  };
@@ -566,14 +566,14 @@ var dayjs_min = { exports: {} };
566
566
  var e2 = this, n2 = this.$locale();
567
567
  if (!this.isValid())
568
568
  return n2.invalidDate || l;
569
- var r2 = t2 || "YYYY-MM-DDTHH:mm:ssZ", i2 = O.z(this), s2 = this.$H, u2 = this.$m, a2 = this.$M, o2 = n2.weekdays, f2 = n2.months, h22 = function(t3, n3, i3, s3) {
569
+ var r2 = t2 || "YYYY-MM-DDTHH:mm:ssZ", i2 = O.z(this), s2 = this.$H, u2 = this.$m, a2 = this.$M, o2 = n2.weekdays, f2 = n2.months, h3 = function(t3, n3, i3, s3) {
570
570
  return t3 && (t3[n3] || t3(e2, r2)) || i3[n3].slice(0, s3);
571
571
  }, c2 = function(t3) {
572
572
  return O.s(s2 % 12 || 12, t3, "0");
573
573
  }, d2 = n2.meridiem || function(t3, e3, n3) {
574
574
  var r3 = t3 < 12 ? "AM" : "PM";
575
575
  return n3 ? r3.toLowerCase() : r3;
576
- }, $2 = { YY: String(this.$y).slice(-2), YYYY: this.$y, M: a2 + 1, MM: O.s(a2 + 1, 2, "0"), MMM: h22(n2.monthsShort, a2, f2, 3), MMMM: h22(f2, a2), D: this.$D, DD: O.s(this.$D, 2, "0"), d: String(this.$W), dd: h22(n2.weekdaysMin, this.$W, o2, 2), ddd: h22(n2.weekdaysShort, this.$W, o2, 3), dddd: o2[this.$W], H: String(s2), HH: O.s(s2, 2, "0"), h: c2(1), hh: c2(2), a: d2(s2, u2, true), A: d2(s2, u2, false), m: String(u2), mm: O.s(u2, 2, "0"), s: String(this.$s), ss: O.s(this.$s, 2, "0"), SSS: O.s(this.$ms, 3, "0"), Z: i2 };
576
+ }, $2 = { YY: String(this.$y).slice(-2), YYYY: O.s(this.$y, 4, "0"), M: a2 + 1, MM: O.s(a2 + 1, 2, "0"), MMM: h3(n2.monthsShort, a2, f2, 3), MMMM: h3(f2, a2), D: this.$D, DD: O.s(this.$D, 2, "0"), d: String(this.$W), dd: h3(n2.weekdaysMin, this.$W, o2, 2), ddd: h3(n2.weekdaysShort, this.$W, o2, 3), dddd: o2[this.$W], H: String(s2), HH: O.s(s2, 2, "0"), h: c2(1), hh: c2(2), a: d2(s2, u2, true), A: d2(s2, u2, false), m: String(u2), mm: O.s(u2, 2, "0"), s: String(this.$s), ss: O.s(this.$s, 2, "0"), SSS: O.s(this.$ms, 3, "0"), Z: i2 };
577
577
  return r2.replace(y, function(t3, e3) {
578
578
  return e3 || $2[t3] || i2.replace(":", "");
579
579
  });
@@ -617,21 +617,21 @@ var dayjs_min = { exports: {} };
617
617
  var dayjs_minExports = dayjs_min.exports;
618
618
  const dayjs = /* @__PURE__ */ getDefaultExportFromCjs(dayjs_minExports);
619
619
  const _withScopeId$3 = (n) => (pushScopeId("data-v-3cf0c9ae"), n = n(), popScopeId(), n);
620
- const _hoisted_1$h = {
620
+ const _hoisted_1$k = {
621
621
  key: 0,
622
622
  class: "input-loading"
623
623
  };
624
- const _hoisted_2$c = /* @__PURE__ */ _withScopeId$3(() => /* @__PURE__ */ createElementVNode(
624
+ const _hoisted_2$f = /* @__PURE__ */ _withScopeId$3(() => /* @__PURE__ */ createElementVNode(
625
625
  "div",
626
626
  { class: "loading placeholder-block placeholder-wave" },
627
627
  null,
628
628
  -1
629
629
  /* HOISTED */
630
630
  ));
631
- const _hoisted_3$5 = [
632
- _hoisted_2$c
631
+ const _hoisted_3$9 = [
632
+ _hoisted_2$f
633
633
  ];
634
- const _sfc_main$N = /* @__PURE__ */ defineComponent({
634
+ const _sfc_main$R = /* @__PURE__ */ defineComponent({
635
635
  __name: "NeonTime",
636
636
  props: {
637
637
  modelValue: {
@@ -668,7 +668,7 @@ const _sfc_main$N = /* @__PURE__ */ defineComponent({
668
668
  class: normalizeClass(["neon-time", { "is-disabled": __props.isDisabled }])
669
669
  },
670
670
  [
671
- __props.isLoading ? (openBlock(), createElementBlock("div", _hoisted_1$h, _hoisted_3$5)) : (openBlock(), createBlock(unref(DatePicker), mergeProps({
671
+ __props.isLoading ? (openBlock(), createElementBlock("div", _hoisted_1$k, _hoisted_3$9)) : (openBlock(), createBlock(unref(DatePicker), mergeProps({
672
672
  key: 1,
673
673
  "model-value": internalValue.value
674
674
  }, {
@@ -692,7 +692,7 @@ const _sfc_main$N = /* @__PURE__ */ defineComponent({
692
692
  });
693
693
  const NeonTime_vue_vue_type_style_index_0_scoped_3cf0c9ae_lang = "";
694
694
  const NeonTime_vue_vue_type_style_index_1_lang = "";
695
- const NeonTime = /* @__PURE__ */ _export_sfc(_sfc_main$N, [["__scopeId", "data-v-3cf0c9ae"]]);
695
+ const NeonTime = /* @__PURE__ */ _export_sfc(_sfc_main$R, [["__scopeId", "data-v-3cf0c9ae"]]);
696
696
  const CheckInModel = models$1.CheckInModel;
697
697
  const useOperasionalStore = defineStore("neu:operasional", () => {
698
698
  const isLoading = ref(false);
@@ -834,11 +834,11 @@ function mitt(n) {
834
834
  }
835
835
  const bus = mitt();
836
836
  const _withScopeId$2 = (n) => (pushScopeId("data-v-ee60c24a"), n = n(), popScopeId(), n);
837
- const _hoisted_1$g = { id: "view-checkIns" };
838
- const _hoisted_2$b = { class: "summary" };
839
- const _hoisted_3$4 = { class: "wrapper" };
840
- const _hoisted_4$2 = { class: "header" };
841
- const _hoisted_5$1 = /* @__PURE__ */ _withScopeId$2(() => /* @__PURE__ */ createElementVNode(
837
+ const _hoisted_1$j = { id: "view-checkIns" };
838
+ const _hoisted_2$e = { class: "summary" };
839
+ const _hoisted_3$8 = { class: "wrapper" };
840
+ const _hoisted_4$5 = { class: "header" };
841
+ const _hoisted_5$4 = /* @__PURE__ */ _withScopeId$2(() => /* @__PURE__ */ createElementVNode(
842
842
  "div",
843
843
  { class: "start" },
844
844
  [
@@ -848,8 +848,8 @@ const _hoisted_5$1 = /* @__PURE__ */ _withScopeId$2(() => /* @__PURE__ */ create
848
848
  -1
849
849
  /* HOISTED */
850
850
  ));
851
- const _hoisted_6 = { class: "end" };
852
- const _sfc_main$M = /* @__PURE__ */ defineComponent({
851
+ const _hoisted_6$3 = { class: "end" };
852
+ const _sfc_main$Q = /* @__PURE__ */ defineComponent({
853
853
  ...{
854
854
  name: "CheckInPresenceCollection"
855
855
  },
@@ -1004,14 +1004,14 @@ const _sfc_main$M = /* @__PURE__ */ defineComponent({
1004
1004
  return (_ctx, _cache) => {
1005
1005
  const _component_CheckInSingleExternalView = resolveComponent("CheckInSingleExternalView");
1006
1006
  const _component_CheckInCollection = resolveComponent("CheckInCollection");
1007
- return openBlock(), createElementBlock("div", _hoisted_1$g, [
1007
+ return openBlock(), createElementBlock("div", _hoisted_1$j, [
1008
1008
  createVNode(unref(OfficeContent), {
1009
1009
  icon: "barcode-read",
1010
1010
  title: "Presensi",
1011
1011
  "is-expanded": ""
1012
1012
  }, {
1013
1013
  "header-detail": withCtx(() => [
1014
- createElementVNode("div", _hoisted_2$b, [
1014
+ createElementVNode("div", _hoisted_2$e, [
1015
1015
  createVNode(unref(NeonSlider), {
1016
1016
  "per-view": 2,
1017
1017
  gap: 16,
@@ -1159,7 +1159,7 @@ const _sfc_main$M = /* @__PURE__ */ defineComponent({
1159
1159
  ])
1160
1160
  ]),
1161
1161
  default: withCtx(() => [
1162
- createElementVNode("div", _hoisted_3$4, [
1162
+ createElementVNode("div", _hoisted_3$8, [
1163
1163
  createVNode(unref(NeonCollectionContext), {
1164
1164
  definition: "neu:tempat:checkIn",
1165
1165
  scope: "_checkIns",
@@ -1174,9 +1174,9 @@ const _sfc_main$M = /* @__PURE__ */ defineComponent({
1174
1174
  "is-main": ""
1175
1175
  }, {
1176
1176
  default: withCtx(() => [
1177
- createElementVNode("div", _hoisted_4$2, [
1178
- _hoisted_5$1,
1179
- createElementVNode("div", _hoisted_6, [
1177
+ createElementVNode("div", _hoisted_4$5, [
1178
+ _hoisted_5$4,
1179
+ createElementVNode("div", _hoisted_6$3, [
1180
1180
  createVNode(unref(OfficeCollectionQuery), { displays: ["table"] }, {
1181
1181
  default: withCtx(() => [
1182
1182
  createVNode(unref(OfficeCollectionOperation), { "is-main": "" })
@@ -1202,9 +1202,9 @@ const _sfc_main$M = /* @__PURE__ */ defineComponent({
1202
1202
  }
1203
1203
  });
1204
1204
  const CheckInPresenceCollection_vue_vue_type_style_index_0_scoped_ee60c24a_lang = "";
1205
- const CheckInPresenceCollection = /* @__PURE__ */ _export_sfc(_sfc_main$M, [["__scopeId", "data-v-ee60c24a"]]);
1206
- const _hoisted_1$f = { class: "grid gap-4 sm:grid-cols-2" };
1207
- const _sfc_main$L = /* @__PURE__ */ defineComponent({
1205
+ const CheckInPresenceCollection = /* @__PURE__ */ _export_sfc(_sfc_main$Q, [["__scopeId", "data-v-ee60c24a"]]);
1206
+ const _hoisted_1$i = { class: "grid gap-4 sm:grid-cols-2" };
1207
+ const _sfc_main$P = /* @__PURE__ */ defineComponent({
1208
1208
  __name: "CheckInSingle",
1209
1209
  setup(__props) {
1210
1210
  const {
@@ -1262,7 +1262,7 @@ const _sfc_main$L = /* @__PURE__ */ defineComponent({
1262
1262
  field: unref(fields).building,
1263
1263
  "is-disabled": ""
1264
1264
  }, null, 8, ["modelValue", "field"]),
1265
- createElementVNode("div", _hoisted_1$f, [
1265
+ createElementVNode("div", _hoisted_1$i, [
1266
1266
  createVNode(unref(NeonField), mergeProps({
1267
1267
  modelValue: unref(values).type,
1268
1268
  "onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => unref(values).type = $event)
@@ -1302,9 +1302,9 @@ const _sfc_main$L = /* @__PURE__ */ defineComponent({
1302
1302
  }
1303
1303
  });
1304
1304
  const CheckInSingle_vue_vue_type_style_index_0_scoped_2e2803fb_lang = "";
1305
- const CheckInSingle = /* @__PURE__ */ _export_sfc(_sfc_main$L, [["__scopeId", "data-v-2e2803fb"]]);
1306
- const _hoisted_1$e = { class: "grid gap-4 sm:grid-cols-2" };
1307
- const _sfc_main$K = /* @__PURE__ */ defineComponent({
1305
+ const CheckInSingle = /* @__PURE__ */ _export_sfc(_sfc_main$P, [["__scopeId", "data-v-2e2803fb"]]);
1306
+ const _hoisted_1$h = { class: "grid gap-4 sm:grid-cols-2" };
1307
+ const _sfc_main$O = /* @__PURE__ */ defineComponent({
1308
1308
  __name: "CheckInExternal",
1309
1309
  setup(__props) {
1310
1310
  const {
@@ -1371,7 +1371,7 @@ const _sfc_main$K = /* @__PURE__ */ defineComponent({
1371
1371
  field: unref(fields).building,
1372
1372
  "is-disabled": unref(values).type === "checkin" || unref(values).type === "checkout"
1373
1373
  }, null, 8, ["modelValue", "field", "is-disabled"])) : createCommentVNode("v-if", true),
1374
- createElementVNode("div", _hoisted_1$e, [
1374
+ createElementVNode("div", _hoisted_1$h, [
1375
1375
  createVNode(unref(NeonField), mergeProps({
1376
1376
  modelValue: unref(values).type,
1377
1377
  "onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => unref(values).type = $event)
@@ -1417,16 +1417,16 @@ const _sfc_main$K = /* @__PURE__ */ defineComponent({
1417
1417
  }
1418
1418
  });
1419
1419
  const CheckInExternal_vue_vue_type_style_index_0_scoped_dcdbc71a_lang = "";
1420
- const CheckInExternal = /* @__PURE__ */ _export_sfc(_sfc_main$K, [["__scopeId", "data-v-dcdbc71a"]]);
1420
+ const CheckInExternal = /* @__PURE__ */ _export_sfc(_sfc_main$O, [["__scopeId", "data-v-dcdbc71a"]]);
1421
1421
  const _withScopeId$1 = (n) => (pushScopeId("data-v-d23b6de5"), n = n(), popScopeId(), n);
1422
- const _hoisted_1$d = /* @__PURE__ */ _withScopeId$1(() => /* @__PURE__ */ createElementVNode(
1422
+ const _hoisted_1$g = /* @__PURE__ */ _withScopeId$1(() => /* @__PURE__ */ createElementVNode(
1423
1423
  "h4",
1424
1424
  { align: "center" },
1425
1425
  "Aktifkan kamera untuk scan QR Code",
1426
1426
  -1
1427
1427
  /* HOISTED */
1428
1428
  ));
1429
- const _hoisted_2$a = /* @__PURE__ */ _withScopeId$1(() => /* @__PURE__ */ createElementVNode(
1429
+ const _hoisted_2$d = /* @__PURE__ */ _withScopeId$1(() => /* @__PURE__ */ createElementVNode(
1430
1430
  "p",
1431
1431
  { align: "center" },
1432
1432
  [
@@ -1437,7 +1437,7 @@ const _hoisted_2$a = /* @__PURE__ */ _withScopeId$1(() => /* @__PURE__ */ create
1437
1437
  -1
1438
1438
  /* HOISTED */
1439
1439
  ));
1440
- const _sfc_main$J = /* @__PURE__ */ defineComponent({
1440
+ const _sfc_main$N = /* @__PURE__ */ defineComponent({
1441
1441
  __name: "CheckInAccess",
1442
1442
  emits: ["close"],
1443
1443
  setup(__props) {
@@ -1462,8 +1462,8 @@ const _sfc_main$J = /* @__PURE__ */ defineComponent({
1462
1462
  onClose: _cache[0] || (_cache[0] = ($event) => _ctx.$emit("close"))
1463
1463
  }, {
1464
1464
  default: withCtx(() => [
1465
- _hoisted_1$d,
1466
- _hoisted_2$a,
1465
+ _hoisted_1$g,
1466
+ _hoisted_2$d,
1467
1467
  createVNode(unref(NeonButton), {
1468
1468
  "is-full": "",
1469
1469
  size: "md",
@@ -1490,9 +1490,9 @@ const _sfc_main$J = /* @__PURE__ */ defineComponent({
1490
1490
  }
1491
1491
  });
1492
1492
  const CheckInAccess_vue_vue_type_style_index_0_scoped_d23b6de5_lang = "";
1493
- const CheckInAccess = /* @__PURE__ */ _export_sfc(_sfc_main$J, [["__scopeId", "data-v-d23b6de5"]]);
1494
- const _hoisted_1$c = { class: "buttons" };
1495
- const _sfc_main$I = /* @__PURE__ */ defineComponent({
1493
+ const CheckInAccess = /* @__PURE__ */ _export_sfc(_sfc_main$N, [["__scopeId", "data-v-d23b6de5"]]);
1494
+ const _hoisted_1$f = { class: "buttons" };
1495
+ const _sfc_main$M = /* @__PURE__ */ defineComponent({
1496
1496
  __name: "CheckInScanError",
1497
1497
  setup(__props) {
1498
1498
  const attendanceStore = useAttendanceStore();
@@ -1505,7 +1505,7 @@ const _sfc_main$I = /* @__PURE__ */ defineComponent({
1505
1505
  default: withCtx(() => [
1506
1506
  createVNode(unref(NeonSheet), null, {
1507
1507
  footer: withCtx(() => [
1508
- createElementVNode("div", _hoisted_1$c, [
1508
+ createElementVNode("div", _hoisted_1$f, [
1509
1509
  createVNode(unref(NeonButton), {
1510
1510
  "is-full": "",
1511
1511
  "is-rounded": "",
@@ -1540,23 +1540,23 @@ const _sfc_main$I = /* @__PURE__ */ defineComponent({
1540
1540
  }
1541
1541
  });
1542
1542
  const _withScopeId = (n) => (pushScopeId("data-v-ef426ef3"), n = n(), popScopeId(), n);
1543
- const _hoisted_1$b = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode(
1543
+ const _hoisted_1$e = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode(
1544
1544
  "div",
1545
1545
  { class: "invalid-message" },
1546
1546
  "Invalid Code!",
1547
1547
  -1
1548
1548
  /* HOISTED */
1549
1549
  ));
1550
- const _hoisted_2$9 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode(
1550
+ const _hoisted_2$c = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode(
1551
1551
  "div",
1552
1552
  null,
1553
1553
  null,
1554
1554
  -1
1555
1555
  /* HOISTED */
1556
1556
  ));
1557
- const _hoisted_3$3 = ["onClick"];
1558
- const _hoisted_4$1 = { class: "mr-2 text-sm" };
1559
- const _sfc_main$H = /* @__PURE__ */ defineComponent({
1557
+ const _hoisted_3$7 = ["onClick"];
1558
+ const _hoisted_4$4 = { class: "mr-2 text-sm" };
1559
+ const _sfc_main$L = /* @__PURE__ */ defineComponent({
1560
1560
  __name: "CheckInScanner",
1561
1561
  emits: ["start", "stop", "scanned", "close"],
1562
1562
  setup(__props, { emit }) {
@@ -1701,15 +1701,15 @@ const _sfc_main$H = /* @__PURE__ */ defineComponent({
1701
1701
  class: "inner",
1702
1702
  onClick: switchCamera
1703
1703
  }, [
1704
- _hoisted_1$b,
1705
- _hoisted_2$9,
1704
+ _hoisted_1$e,
1705
+ _hoisted_2$c,
1706
1706
  createElementVNode("div", {
1707
1707
  class: "button-switch",
1708
1708
  onClick: withModifiers(switchCamera, ["stop"])
1709
1709
  }, [
1710
1710
  createElementVNode(
1711
1711
  "div",
1712
- _hoisted_4$1,
1712
+ _hoisted_4$4,
1713
1713
  toDisplayString(currentCamera.value),
1714
1714
  1
1715
1715
  /* TEXT */
@@ -1720,7 +1720,7 @@ const _sfc_main$H = /* @__PURE__ */ defineComponent({
1720
1720
  size: "sm",
1721
1721
  "is-disabled": !canSwitch.value
1722
1722
  }, null, 8, ["is-disabled"])
1723
- ], 8, _hoisted_3$3)
1723
+ ], 8, _hoisted_3$7)
1724
1724
  ])
1725
1725
  ],
1726
1726
  2
@@ -1738,15 +1738,15 @@ const _sfc_main$H = /* @__PURE__ */ defineComponent({
1738
1738
  }
1739
1739
  });
1740
1740
  const CheckInScanner_vue_vue_type_style_index_0_scoped_ef426ef3_lang = "";
1741
- const CheckInScanner = /* @__PURE__ */ _export_sfc(_sfc_main$H, [["__scopeId", "data-v-ef426ef3"]]);
1742
- const _hoisted_1$a = /* @__PURE__ */ createElementVNode(
1741
+ const CheckInScanner = /* @__PURE__ */ _export_sfc(_sfc_main$L, [["__scopeId", "data-v-ef426ef3"]]);
1742
+ const _hoisted_1$d = /* @__PURE__ */ createElementVNode(
1743
1743
  "h3",
1744
1744
  { align: "center" },
1745
1745
  "Presensi Berhasil!",
1746
1746
  -1
1747
1747
  /* HOISTED */
1748
1748
  );
1749
- const _sfc_main$G = /* @__PURE__ */ defineComponent({
1749
+ const _sfc_main$K = /* @__PURE__ */ defineComponent({
1750
1750
  __name: "CheckInScanSuccess",
1751
1751
  emits: ["close"],
1752
1752
  setup(__props) {
@@ -1766,7 +1766,7 @@ const _sfc_main$G = /* @__PURE__ */ defineComponent({
1766
1766
  onClose: _cache[0] || (_cache[0] = ($event) => _ctx.$emit("close"))
1767
1767
  }, {
1768
1768
  default: withCtx(() => [
1769
- _hoisted_1$a
1769
+ _hoisted_1$d
1770
1770
  ]),
1771
1771
  _: 1
1772
1772
  /* STABLE */
@@ -1778,7 +1778,7 @@ const _sfc_main$G = /* @__PURE__ */ defineComponent({
1778
1778
  };
1779
1779
  }
1780
1780
  });
1781
- const _sfc_main$F = /* @__PURE__ */ defineComponent({
1781
+ const _sfc_main$J = /* @__PURE__ */ defineComponent({
1782
1782
  ...{
1783
1783
  name: "CheckInCollection"
1784
1784
  },
@@ -1797,7 +1797,7 @@ const _sfc_main$F = /* @__PURE__ */ defineComponent({
1797
1797
  }
1798
1798
  });
1799
1799
  const StaffModel = models$2.StaffModel;
1800
- const _sfc_main$E = /* @__PURE__ */ defineComponent({
1800
+ const _sfc_main$I = /* @__PURE__ */ defineComponent({
1801
1801
  ...{
1802
1802
  name: "StaffCollection"
1803
1803
  },
@@ -1815,9 +1815,9 @@ const _sfc_main$E = /* @__PURE__ */ defineComponent({
1815
1815
  };
1816
1816
  }
1817
1817
  });
1818
- const _hoisted_1$9 = { class: "grid gap-4 sm:grid-cols-[3fr_1fr]" };
1819
- const _hoisted_2$8 = { class: "grid gap-4 sm:grid-cols-2" };
1820
- const _sfc_main$D = /* @__PURE__ */ defineComponent({
1818
+ const _hoisted_1$c = { class: "grid gap-4 sm:grid-cols-[3fr_1fr]" };
1819
+ const _hoisted_2$b = { class: "grid gap-4 sm:grid-cols-2" };
1820
+ const _sfc_main$H = /* @__PURE__ */ defineComponent({
1821
1821
  __name: "StaffSingle",
1822
1822
  setup(__props) {
1823
1823
  const {
@@ -1854,7 +1854,7 @@ const _sfc_main$D = /* @__PURE__ */ defineComponent({
1854
1854
  onSubmit: unref(saveOne)
1855
1855
  }, {
1856
1856
  default: withCtx(() => [
1857
- createElementVNode("div", _hoisted_1$9, [
1857
+ createElementVNode("div", _hoisted_1$c, [
1858
1858
  createVNode(unref(NeonField), mergeProps({
1859
1859
  modelValue: unref(values).name,
1860
1860
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => unref(values).name = $event)
@@ -1864,7 +1864,7 @@ const _sfc_main$D = /* @__PURE__ */ defineComponent({
1864
1864
  "onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => unref(values).nik = $event)
1865
1865
  }, unref(fields).nik), null, 16, ["modelValue"])
1866
1866
  ]),
1867
- createElementVNode("div", _hoisted_2$8, [
1867
+ createElementVNode("div", _hoisted_2$b, [
1868
1868
  createVNode(unref(NeonField), mergeProps({
1869
1869
  modelValue: unref(values).birthPlace,
1870
1870
  "onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => unref(values).birthPlace = $event)
@@ -1897,7 +1897,7 @@ const _sfc_main$D = /* @__PURE__ */ defineComponent({
1897
1897
  title: "Identitas"
1898
1898
  }, {
1899
1899
  default: withCtx(() => [
1900
- createVNode(unref(_sfc_main$B))
1900
+ createVNode(unref(_sfc_main$F))
1901
1901
  ]),
1902
1902
  _: 1
1903
1903
  /* STABLE */
@@ -1968,10 +1968,10 @@ const _sfc_main$D = /* @__PURE__ */ defineComponent({
1968
1968
  }
1969
1969
  });
1970
1970
  const StaffSingle_vue_vue_type_style_index_0_scoped_0cf4cd99_lang = "";
1971
- const StaffSingle = /* @__PURE__ */ _export_sfc(_sfc_main$D, [["__scopeId", "data-v-0cf4cd99"]]);
1972
- const _hoisted_1$8 = { class: "grid gap-4 sm:grid-cols-[3fr_1fr]" };
1973
- const _hoisted_2$7 = { class: "grid gap-4 sm:grid-cols-2" };
1974
- const _sfc_main$C = /* @__PURE__ */ defineComponent({
1971
+ const StaffSingle = /* @__PURE__ */ _export_sfc(_sfc_main$H, [["__scopeId", "data-v-0cf4cd99"]]);
1972
+ const _hoisted_1$b = { class: "grid gap-4 sm:grid-cols-[3fr_1fr]" };
1973
+ const _hoisted_2$a = { class: "grid gap-4 sm:grid-cols-2" };
1974
+ const _sfc_main$G = /* @__PURE__ */ defineComponent({
1975
1975
  __name: "StaffOperasional",
1976
1976
  setup(__props) {
1977
1977
  const {
@@ -2008,7 +2008,7 @@ const _sfc_main$C = /* @__PURE__ */ defineComponent({
2008
2008
  onSubmit: unref(saveOne)
2009
2009
  }, {
2010
2010
  default: withCtx(() => [
2011
- createElementVNode("div", _hoisted_1$8, [
2011
+ createElementVNode("div", _hoisted_1$b, [
2012
2012
  createVNode(unref(NeonField), mergeProps({
2013
2013
  modelValue: unref(values).name,
2014
2014
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => unref(values).name = $event)
@@ -2018,7 +2018,7 @@ const _sfc_main$C = /* @__PURE__ */ defineComponent({
2018
2018
  "onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => unref(values).nik = $event)
2019
2019
  }, unref(fields).nik), null, 16, ["modelValue"])
2020
2020
  ]),
2021
- createElementVNode("div", _hoisted_2$7, [
2021
+ createElementVNode("div", _hoisted_2$a, [
2022
2022
  createVNode(unref(NeonField), mergeProps({
2023
2023
  modelValue: unref(values).birthPlace,
2024
2024
  "onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => unref(values).birthPlace = $event)
@@ -2051,7 +2051,7 @@ const _sfc_main$C = /* @__PURE__ */ defineComponent({
2051
2051
  title: "Identitas"
2052
2052
  }, {
2053
2053
  default: withCtx(() => [
2054
- createVNode(unref(_sfc_main$B))
2054
+ createVNode(unref(_sfc_main$F))
2055
2055
  ]),
2056
2056
  _: 1
2057
2057
  /* STABLE */
@@ -2129,8 +2129,8 @@ const _sfc_main$C = /* @__PURE__ */ defineComponent({
2129
2129
  }
2130
2130
  });
2131
2131
  const StaffOperasional_vue_vue_type_style_index_0_scoped_c62cf70a_lang = "";
2132
- const StaffOperasional = /* @__PURE__ */ _export_sfc(_sfc_main$C, [["__scopeId", "data-v-c62cf70a"]]);
2133
- const _sfc_main$B = /* @__PURE__ */ defineComponent({
2132
+ const StaffOperasional = /* @__PURE__ */ _export_sfc(_sfc_main$G, [["__scopeId", "data-v-c62cf70a"]]);
2133
+ const _sfc_main$F = /* @__PURE__ */ defineComponent({
2134
2134
  __name: "StaffIdentity",
2135
2135
  setup(__props) {
2136
2136
  const { values, saveOne, executeOne, syncOne } = useSingle();
@@ -2286,7 +2286,7 @@ const _sfc_main$B = /* @__PURE__ */ defineComponent({
2286
2286
  }
2287
2287
  });
2288
2288
  const SituationModel = models$2.SituationModel;
2289
- const _sfc_main$A = /* @__PURE__ */ defineComponent({
2289
+ const _sfc_main$E = /* @__PURE__ */ defineComponent({
2290
2290
  ...{ name: "SituationCollection" },
2291
2291
  __name: "SituationCollection",
2292
2292
  setup(__props) {
@@ -2302,7 +2302,7 @@ const _sfc_main$A = /* @__PURE__ */ defineComponent({
2302
2302
  };
2303
2303
  }
2304
2304
  });
2305
- const _sfc_main$z = /* @__PURE__ */ defineComponent({
2305
+ const _sfc_main$D = /* @__PURE__ */ defineComponent({
2306
2306
  __name: "SituationSingle",
2307
2307
  setup(__props) {
2308
2308
  const {
@@ -2440,7 +2440,7 @@ const _sfc_main$z = /* @__PURE__ */ defineComponent({
2440
2440
  };
2441
2441
  }
2442
2442
  });
2443
- const _sfc_main$y = /* @__PURE__ */ defineComponent({
2443
+ const _sfc_main$C = /* @__PURE__ */ defineComponent({
2444
2444
  __name: "SituationWork",
2445
2445
  setup(__props) {
2446
2446
  const {
@@ -2621,7 +2621,7 @@ const _sfc_main$y = /* @__PURE__ */ defineComponent({
2621
2621
  };
2622
2622
  }
2623
2623
  });
2624
- const _sfc_main$x = /* @__PURE__ */ defineComponent({
2624
+ const _sfc_main$B = /* @__PURE__ */ defineComponent({
2625
2625
  ...{ name: "SituationSupportive" },
2626
2626
  __name: "SituationSupportive",
2627
2627
  setup(__props) {
@@ -2760,7 +2760,7 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
2760
2760
  }
2761
2761
  });
2762
2762
  const SituationTypeModel = models$2.SituationTypeModel;
2763
- const _sfc_main$w = /* @__PURE__ */ defineComponent({
2763
+ const _sfc_main$A = /* @__PURE__ */ defineComponent({
2764
2764
  ...{ name: "SituationTypeCollection" },
2765
2765
  __name: "SituationTypeCollection",
2766
2766
  setup(__props) {
@@ -2776,7 +2776,7 @@ const _sfc_main$w = /* @__PURE__ */ defineComponent({
2776
2776
  };
2777
2777
  }
2778
2778
  });
2779
- const _sfc_main$v = /* @__PURE__ */ defineComponent({
2779
+ const _sfc_main$z = /* @__PURE__ */ defineComponent({
2780
2780
  __name: "SituationTypeSingle",
2781
2781
  setup(__props) {
2782
2782
  const {
@@ -2849,9 +2849,9 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
2849
2849
  }
2850
2850
  });
2851
2851
  const TaskModel = models$2.TaskModel;
2852
- const _hoisted_1$7 = { key: 0 };
2853
- const _hoisted_2$6 = { key: 1 };
2854
- const _sfc_main$u = /* @__PURE__ */ defineComponent({
2852
+ const _hoisted_1$a = { key: 0 };
2853
+ const _hoisted_2$9 = { key: 1 };
2854
+ const _sfc_main$y = /* @__PURE__ */ defineComponent({
2855
2855
  ...{ name: "TaskWorkButton" },
2856
2856
  __name: "TaskWorkButton",
2857
2857
  setup(__props) {
@@ -2944,7 +2944,7 @@ const _sfc_main$u = /* @__PURE__ */ defineComponent({
2944
2944
  Fragment,
2945
2945
  null,
2946
2946
  [
2947
- onHandleTaskWork.value.onStartTaskWorking ? (openBlock(), createElementBlock("div", _hoisted_1$7, [
2947
+ onHandleTaskWork.value.onStartTaskWorking ? (openBlock(), createElementBlock("div", _hoisted_1$a, [
2948
2948
  createVNode(unref(NeonButton), {
2949
2949
  "is-rounded": true,
2950
2950
  size: "sm",
@@ -2954,7 +2954,7 @@ const _sfc_main$u = /* @__PURE__ */ defineComponent({
2954
2954
  onClick: onClickHandlerStartTaskWork
2955
2955
  })
2956
2956
  ])) : createCommentVNode("v-if", true),
2957
- onHandleTaskWork.value.onFinishedTaskWorking ? (openBlock(), createElementBlock("div", _hoisted_2$6, [
2957
+ onHandleTaskWork.value.onFinishedTaskWorking ? (openBlock(), createElementBlock("div", _hoisted_2$9, [
2958
2958
  createVNode(unref(NeonButton), {
2959
2959
  "is-rounded": true,
2960
2960
  size: "sm",
@@ -2972,7 +2972,7 @@ const _sfc_main$u = /* @__PURE__ */ defineComponent({
2972
2972
  };
2973
2973
  }
2974
2974
  });
2975
- const _sfc_main$t = /* @__PURE__ */ defineComponent({
2975
+ const _sfc_main$x = /* @__PURE__ */ defineComponent({
2976
2976
  ...{ name: "TaskCollection" },
2977
2977
  __name: "TaskCollection",
2978
2978
  setup(__props) {
@@ -2988,7 +2988,7 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
2988
2988
  };
2989
2989
  }
2990
2990
  });
2991
- const _sfc_main$s = /* @__PURE__ */ defineComponent({
2991
+ const _sfc_main$w = /* @__PURE__ */ defineComponent({
2992
2992
  __name: "TaskSingle",
2993
2993
  setup(__props) {
2994
2994
  const {
@@ -3211,7 +3211,7 @@ const _sfc_main$s = /* @__PURE__ */ defineComponent({
3211
3211
  };
3212
3212
  }
3213
3213
  });
3214
- const _sfc_main$r = /* @__PURE__ */ defineComponent({
3214
+ const _sfc_main$v = /* @__PURE__ */ defineComponent({
3215
3215
  __name: "TaskWork",
3216
3216
  setup(__props) {
3217
3217
  const {
@@ -3434,7 +3434,7 @@ const _sfc_main$r = /* @__PURE__ */ defineComponent({
3434
3434
  }
3435
3435
  });
3436
3436
  const SubmissionModel = models$2.SubmissionModel;
3437
- const _sfc_main$q = /* @__PURE__ */ defineComponent({
3437
+ const _sfc_main$u = /* @__PURE__ */ defineComponent({
3438
3438
  ...{
3439
3439
  name: "SubmissionCollection"
3440
3440
  },
@@ -3452,7 +3452,7 @@ const _sfc_main$q = /* @__PURE__ */ defineComponent({
3452
3452
  };
3453
3453
  }
3454
3454
  });
3455
- const _sfc_main$p = /* @__PURE__ */ defineComponent({
3455
+ const _sfc_main$t = /* @__PURE__ */ defineComponent({
3456
3456
  __name: "SubmissionSingle",
3457
3457
  setup(__props) {
3458
3458
  const {
@@ -3649,8 +3649,8 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
3649
3649
  }
3650
3650
  });
3651
3651
  const SubmissionSingle_vue_vue_type_style_index_0_scoped_39553dbd_lang = "";
3652
- const SubmissionSingle = /* @__PURE__ */ _export_sfc(_sfc_main$p, [["__scopeId", "data-v-39553dbd"]]);
3653
- const _sfc_main$o = /* @__PURE__ */ defineComponent({
3652
+ const SubmissionSingle = /* @__PURE__ */ _export_sfc(_sfc_main$t, [["__scopeId", "data-v-39553dbd"]]);
3653
+ const _sfc_main$s = /* @__PURE__ */ defineComponent({
3654
3654
  __name: "SubmissionStaff",
3655
3655
  setup(__props) {
3656
3656
  var _a;
@@ -3922,8 +3922,8 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
3922
3922
  }
3923
3923
  });
3924
3924
  const SubmissionStaff_vue_vue_type_style_index_0_scoped_3ed905bd_lang = "";
3925
- const SubmissionStaff = /* @__PURE__ */ _export_sfc(_sfc_main$o, [["__scopeId", "data-v-3ed905bd"]]);
3926
- const _sfc_main$n = /* @__PURE__ */ defineComponent({
3925
+ const SubmissionStaff = /* @__PURE__ */ _export_sfc(_sfc_main$s, [["__scopeId", "data-v-3ed905bd"]]);
3926
+ const _sfc_main$r = /* @__PURE__ */ defineComponent({
3927
3927
  __name: "SubmissionFollowUp",
3928
3928
  setup(__props) {
3929
3929
  const {
@@ -4114,13 +4114,13 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
4114
4114
  }
4115
4115
  });
4116
4116
  const SubmissionFollowUp_vue_vue_type_style_index_0_scoped_6fd14e52_lang = "";
4117
- const SubmissionFollowUp = /* @__PURE__ */ _export_sfc(_sfc_main$n, [["__scopeId", "data-v-6fd14e52"]]);
4118
- const _hoisted_1$6 = { class: "flex flex-wrap" };
4119
- const _hoisted_2$5 = { class: "mt-2" };
4120
- const _hoisted_3$2 = { class: "mt-2" };
4121
- const _hoisted_4 = { class: "mt-2" };
4122
- const _hoisted_5 = { class: "mt-2" };
4123
- const _sfc_main$m = /* @__PURE__ */ defineComponent({
4117
+ const SubmissionFollowUp = /* @__PURE__ */ _export_sfc(_sfc_main$r, [["__scopeId", "data-v-6fd14e52"]]);
4118
+ const _hoisted_1$9 = { class: "flex flex-wrap" };
4119
+ const _hoisted_2$8 = { class: "mt-2" };
4120
+ const _hoisted_3$6 = { class: "mt-2" };
4121
+ const _hoisted_4$3 = { class: "mt-2" };
4122
+ const _hoisted_5$3 = { class: "mt-2" };
4123
+ const _sfc_main$q = /* @__PURE__ */ defineComponent({
4124
4124
  __name: "SubmissionAudit",
4125
4125
  setup(__props) {
4126
4126
  var _a;
@@ -4224,8 +4224,8 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
4224
4224
  onSubmit: unref(saveOne)
4225
4225
  }, {
4226
4226
  default: withCtx(() => [
4227
- createElementVNode("div", _hoisted_1$6, [
4228
- createElementVNode("div", _hoisted_2$5, [
4227
+ createElementVNode("div", _hoisted_1$9, [
4228
+ createElementVNode("div", _hoisted_2$8, [
4229
4229
  unref(isReady) ? (openBlock(), createBlock(unref(NeonField), { key: 0 }, {
4230
4230
  input: withCtx(() => [
4231
4231
  createVNode(unref(NeonButton), {
@@ -4247,7 +4247,7 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
4247
4247
  })) : createCommentVNode("v-if", true)
4248
4248
  ]),
4249
4249
  createTextVNode("    "),
4250
- createElementVNode("div", _hoisted_3$2, [
4250
+ createElementVNode("div", _hoisted_3$6, [
4251
4251
  unref(isReady) ? (openBlock(), createBlock(unref(NeonField), { key: 0 }, {
4252
4252
  input: withCtx(() => [
4253
4253
  createVNode(unref(NeonButton), {
@@ -4269,7 +4269,7 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
4269
4269
  })) : createCommentVNode("v-if", true)
4270
4270
  ]),
4271
4271
  createTextVNode("    "),
4272
- createElementVNode("div", _hoisted_4, [
4272
+ createElementVNode("div", _hoisted_4$3, [
4273
4273
  unref(isReady) ? (openBlock(), createBlock(unref(NeonField), { key: 0 }, {
4274
4274
  input: withCtx(() => [
4275
4275
  createVNode(unref(NeonButton), {
@@ -4291,7 +4291,7 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
4291
4291
  })) : createCommentVNode("v-if", true)
4292
4292
  ]),
4293
4293
  createTextVNode("    "),
4294
- createElementVNode("div", _hoisted_5, [
4294
+ createElementVNode("div", _hoisted_5$3, [
4295
4295
  unref(isReady) ? (openBlock(), createBlock(unref(NeonField), { key: 0 }, {
4296
4296
  input: withCtx(() => [
4297
4297
  createVNode(unref(NeonButton), {
@@ -4469,11 +4469,11 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
4469
4469
  }
4470
4470
  });
4471
4471
  const SubmissionAudit_vue_vue_type_style_index_0_scoped_7ee6c6b9_lang = "";
4472
- const SubmissionAudit = /* @__PURE__ */ _export_sfc(_sfc_main$m, [["__scopeId", "data-v-7ee6c6b9"]]);
4473
- const _hoisted_1$5 = { class: "flex flex-wrap" };
4474
- const _hoisted_2$4 = { class: "mt-2" };
4475
- const _hoisted_3$1 = { class: "mt-2" };
4476
- const _sfc_main$l = /* @__PURE__ */ defineComponent({
4472
+ const SubmissionAudit = /* @__PURE__ */ _export_sfc(_sfc_main$q, [["__scopeId", "data-v-7ee6c6b9"]]);
4473
+ const _hoisted_1$8 = { class: "flex flex-wrap" };
4474
+ const _hoisted_2$7 = { class: "mt-2" };
4475
+ const _hoisted_3$5 = { class: "mt-2" };
4476
+ const _sfc_main$p = /* @__PURE__ */ defineComponent({
4477
4477
  __name: "SubmissionDecision",
4478
4478
  setup(__props) {
4479
4479
  var _a;
@@ -4577,8 +4577,8 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
4577
4577
  onSubmit: unref(saveOne)
4578
4578
  }, {
4579
4579
  default: withCtx(() => [
4580
- createElementVNode("div", _hoisted_1$5, [
4581
- createElementVNode("div", _hoisted_2$4, [
4580
+ createElementVNode("div", _hoisted_1$8, [
4581
+ createElementVNode("div", _hoisted_2$7, [
4582
4582
  unref(isReady) ? (openBlock(), createBlock(unref(NeonField), { key: 0 }, {
4583
4583
  input: withCtx(() => {
4584
4584
  var _a2, _b;
@@ -4603,7 +4603,7 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
4603
4603
  })) : createCommentVNode("v-if", true)
4604
4604
  ]),
4605
4605
  createTextVNode("    "),
4606
- createElementVNode("div", _hoisted_3$1, [
4606
+ createElementVNode("div", _hoisted_3$5, [
4607
4607
  unref(isReady) ? (openBlock(), createBlock(unref(NeonField), { key: 0 }, {
4608
4608
  input: withCtx(() => {
4609
4609
  var _a2, _b;
@@ -4784,11 +4784,11 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
4784
4784
  }
4785
4785
  });
4786
4786
  const SubmissionDecision_vue_vue_type_style_index_0_scoped_ec347ac5_lang = "";
4787
- const SubmissionDecision = /* @__PURE__ */ _export_sfc(_sfc_main$l, [["__scopeId", "data-v-ec347ac5"]]);
4788
- const _hoisted_1$4 = { class: "flex flex-wrap" };
4789
- const _hoisted_2$3 = { class: "mt-2" };
4790
- const _hoisted_3 = { class: "mt-2" };
4791
- const _sfc_main$k = /* @__PURE__ */ defineComponent({
4787
+ const SubmissionDecision = /* @__PURE__ */ _export_sfc(_sfc_main$p, [["__scopeId", "data-v-ec347ac5"]]);
4788
+ const _hoisted_1$7 = { class: "flex flex-wrap" };
4789
+ const _hoisted_2$6 = { class: "mt-2" };
4790
+ const _hoisted_3$4 = { class: "mt-2" };
4791
+ const _sfc_main$o = /* @__PURE__ */ defineComponent({
4792
4792
  __name: "SubmissionWaitingDecision",
4793
4793
  setup(__props) {
4794
4794
  var _a;
@@ -4894,8 +4894,8 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
4894
4894
  onSubmit: unref(saveOne)
4895
4895
  }, {
4896
4896
  default: withCtx(() => [
4897
- createElementVNode("div", _hoisted_1$4, [
4898
- createElementVNode("div", _hoisted_2$3, [
4897
+ createElementVNode("div", _hoisted_1$7, [
4898
+ createElementVNode("div", _hoisted_2$6, [
4899
4899
  unref(isReady) ? (openBlock(), createBlock(unref(NeonField), { key: 0 }, {
4900
4900
  input: withCtx(() => {
4901
4901
  var _a2, _b;
@@ -4920,7 +4920,7 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
4920
4920
  })) : createCommentVNode("v-if", true)
4921
4921
  ]),
4922
4922
  createTextVNode("    "),
4923
- createElementVNode("div", _hoisted_3, [
4923
+ createElementVNode("div", _hoisted_3$4, [
4924
4924
  unref(isReady) ? (openBlock(), createBlock(unref(NeonField), { key: 0 }, {
4925
4925
  input: withCtx(() => {
4926
4926
  var _a2, _b;
@@ -5101,9 +5101,9 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
5101
5101
  }
5102
5102
  });
5103
5103
  const SubmissionWaitingDecision_vue_vue_type_style_index_0_scoped_051b2194_lang = "";
5104
- const SubmissionWaitingDecision = /* @__PURE__ */ _export_sfc(_sfc_main$k, [["__scopeId", "data-v-051b2194"]]);
5104
+ const SubmissionWaitingDecision = /* @__PURE__ */ _export_sfc(_sfc_main$o, [["__scopeId", "data-v-051b2194"]]);
5105
5105
  const SubmissionTypeModel = models$2.SubmissionTypeModel;
5106
- const _sfc_main$j = /* @__PURE__ */ defineComponent({
5106
+ const _sfc_main$n = /* @__PURE__ */ defineComponent({
5107
5107
  ...{
5108
5108
  name: "SubmissionTypeCollection"
5109
5109
  },
@@ -5121,7 +5121,7 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
5121
5121
  };
5122
5122
  }
5123
5123
  });
5124
- const _sfc_main$i = /* @__PURE__ */ defineComponent({
5124
+ const _sfc_main$m = /* @__PURE__ */ defineComponent({
5125
5125
  __name: "SubmissionTypeSingle",
5126
5126
  setup(__props) {
5127
5127
  const {
@@ -5187,9 +5187,9 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
5187
5187
  }
5188
5188
  });
5189
5189
  const SubmissionTypeSingle_vue_vue_type_style_index_0_scoped_2b7e18ba_lang = "";
5190
- const SubmissionTypeSingle = /* @__PURE__ */ _export_sfc(_sfc_main$i, [["__scopeId", "data-v-2b7e18ba"]]);
5190
+ const SubmissionTypeSingle = /* @__PURE__ */ _export_sfc(_sfc_main$m, [["__scopeId", "data-v-2b7e18ba"]]);
5191
5191
  const ResponsibilityTypeModel = models$2.ResponsibilityTypeModel;
5192
- const _sfc_main$h = /* @__PURE__ */ defineComponent({
5192
+ const _sfc_main$l = /* @__PURE__ */ defineComponent({
5193
5193
  ...{
5194
5194
  name: "ResponsibilityTypeCollection"
5195
5195
  },
@@ -5207,7 +5207,7 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
5207
5207
  };
5208
5208
  }
5209
5209
  });
5210
- const _sfc_main$g = /* @__PURE__ */ defineComponent({
5210
+ const _sfc_main$k = /* @__PURE__ */ defineComponent({
5211
5211
  __name: "ResponsibilityTypeSingle",
5212
5212
  setup(__props) {
5213
5213
  const {
@@ -5273,9 +5273,9 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
5273
5273
  }
5274
5274
  });
5275
5275
  const ResponsibilityTypeSingle_vue_vue_type_style_index_0_scoped_3df9fac1_lang = "";
5276
- const ResponsibilityTypeSingle = /* @__PURE__ */ _export_sfc(_sfc_main$g, [["__scopeId", "data-v-3df9fac1"]]);
5276
+ const ResponsibilityTypeSingle = /* @__PURE__ */ _export_sfc(_sfc_main$k, [["__scopeId", "data-v-3df9fac1"]]);
5277
5277
  const ResponsibilityModel = models$2.ResponsibilityModel;
5278
- const _sfc_main$f = /* @__PURE__ */ defineComponent({
5278
+ const _sfc_main$j = /* @__PURE__ */ defineComponent({
5279
5279
  ...{
5280
5280
  name: "ResponsibilityCollection"
5281
5281
  },
@@ -5293,7 +5293,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
5293
5293
  };
5294
5294
  }
5295
5295
  });
5296
- const _sfc_main$e = /* @__PURE__ */ defineComponent({
5296
+ const _sfc_main$i = /* @__PURE__ */ defineComponent({
5297
5297
  __name: "ResponsibilitySingle",
5298
5298
  setup(__props) {
5299
5299
  const {
@@ -5424,8 +5424,8 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
5424
5424
  "initial-values": {
5425
5425
  responsibilityIds: unref(id),
5426
5426
  responsibilities: unref(values),
5427
- staffId: (_a = unref(staff)) == null ? void 0 : _a.id,
5428
- staff: unref(staff)
5427
+ staffIds: (_a = unref(staff)) == null ? void 0 : _a.id,
5428
+ staffs: unref(staff)
5429
5429
  }
5430
5430
  }, null, 8, ["query", "is-ready", "initial-values"])
5431
5431
  ];
@@ -5444,9 +5444,9 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
5444
5444
  };
5445
5445
  }
5446
5446
  });
5447
- const ResponsibilitySingle_vue_vue_type_style_index_0_scoped_66cf149e_lang = "";
5448
- const ResponsibilitySingle = /* @__PURE__ */ _export_sfc(_sfc_main$e, [["__scopeId", "data-v-66cf149e"]]);
5449
- const _sfc_main$d = /* @__PURE__ */ defineComponent({
5447
+ const ResponsibilitySingle_vue_vue_type_style_index_0_scoped_aaff5c1e_lang = "";
5448
+ const ResponsibilitySingle = /* @__PURE__ */ _export_sfc(_sfc_main$i, [["__scopeId", "data-v-aaff5c1e"]]);
5449
+ const _sfc_main$h = /* @__PURE__ */ defineComponent({
5450
5450
  __name: "ResponsibilityStaff",
5451
5451
  setup(__props) {
5452
5452
  const {
@@ -5581,8 +5581,8 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
5581
5581
  "initial-values": {
5582
5582
  responsibilityIds: unref(id),
5583
5583
  responsibilities: unref(values),
5584
- staffId: (_a = unref(staff)) == null ? void 0 : _a.id,
5585
- staff: unref(staff)
5584
+ staffIds: (_a = unref(staff)) == null ? void 0 : _a.id,
5585
+ staffs: unref(staff)
5586
5586
  }
5587
5587
  }, null, 8, ["query", "is-ready", "initial-values"])
5588
5588
  ];
@@ -5601,10 +5601,10 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
5601
5601
  };
5602
5602
  }
5603
5603
  });
5604
- const ResponsibilityStaff_vue_vue_type_style_index_0_scoped_67407b3a_lang = "";
5605
- const ResponsibilityStaff = /* @__PURE__ */ _export_sfc(_sfc_main$d, [["__scopeId", "data-v-67407b3a"]]);
5604
+ const ResponsibilityStaff_vue_vue_type_style_index_0_scoped_8c4d64ad_lang = "";
5605
+ const ResponsibilityStaff = /* @__PURE__ */ _export_sfc(_sfc_main$h, [["__scopeId", "data-v-8c4d64ad"]]);
5606
5606
  const TargetModel = models$2.TargetModel;
5607
- const _sfc_main$c = /* @__PURE__ */ defineComponent({
5607
+ const _sfc_main$g = /* @__PURE__ */ defineComponent({
5608
5608
  ...{
5609
5609
  name: "TargetCollection"
5610
5610
  },
@@ -5622,7 +5622,7 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
5622
5622
  };
5623
5623
  }
5624
5624
  });
5625
- const _sfc_main$b = /* @__PURE__ */ defineComponent({
5625
+ const _sfc_main$f = /* @__PURE__ */ defineComponent({
5626
5626
  __name: "TargetSingle",
5627
5627
  setup(__props) {
5628
5628
  const {
@@ -5775,8 +5775,8 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
5775
5775
  }
5776
5776
  });
5777
5777
  const TargetSingle_vue_vue_type_style_index_0_scoped_c12b8df8_lang = "";
5778
- const TargetSingle = /* @__PURE__ */ _export_sfc(_sfc_main$b, [["__scopeId", "data-v-c12b8df8"]]);
5779
- const _sfc_main$a = /* @__PURE__ */ defineComponent({
5778
+ const TargetSingle = /* @__PURE__ */ _export_sfc(_sfc_main$f, [["__scopeId", "data-v-c12b8df8"]]);
5779
+ const _sfc_main$e = /* @__PURE__ */ defineComponent({
5780
5780
  __name: "TargetBranch",
5781
5781
  setup(__props) {
5782
5782
  const {
@@ -5929,9 +5929,9 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
5929
5929
  }
5930
5930
  });
5931
5931
  const TargetBranch_vue_vue_type_style_index_0_scoped_6a5a6e80_lang = "";
5932
- const TargetBranch = /* @__PURE__ */ _export_sfc(_sfc_main$a, [["__scopeId", "data-v-6a5a6e80"]]);
5932
+ const TargetBranch = /* @__PURE__ */ _export_sfc(_sfc_main$e, [["__scopeId", "data-v-6a5a6e80"]]);
5933
5933
  const PlanTypeModel = models$2.PlanTypeModel;
5934
- const _sfc_main$9 = /* @__PURE__ */ defineComponent({
5934
+ const _sfc_main$d = /* @__PURE__ */ defineComponent({
5935
5935
  ...{
5936
5936
  name: "PlanTypeCollection"
5937
5937
  },
@@ -5949,7 +5949,7 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
5949
5949
  };
5950
5950
  }
5951
5951
  });
5952
- const _sfc_main$8 = /* @__PURE__ */ defineComponent({
5952
+ const _sfc_main$c = /* @__PURE__ */ defineComponent({
5953
5953
  __name: "PlanTypeSingle",
5954
5954
  setup(__props) {
5955
5955
  const {
@@ -6070,9 +6070,9 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
6070
6070
  }
6071
6071
  });
6072
6072
  const PlanTypeSingle_vue_vue_type_style_index_0_scoped_80d2e1d3_lang = "";
6073
- const PlanTypeSingle = /* @__PURE__ */ _export_sfc(_sfc_main$8, [["__scopeId", "data-v-80d2e1d3"]]);
6073
+ const PlanTypeSingle = /* @__PURE__ */ _export_sfc(_sfc_main$c, [["__scopeId", "data-v-80d2e1d3"]]);
6074
6074
  const PlanModel = models$2.PlanModel;
6075
- const _sfc_main$7 = /* @__PURE__ */ defineComponent({
6075
+ const _sfc_main$b = /* @__PURE__ */ defineComponent({
6076
6076
  ...{
6077
6077
  name: "PlanCollection"
6078
6078
  },
@@ -6090,7 +6090,7 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
6090
6090
  };
6091
6091
  }
6092
6092
  });
6093
- const _sfc_main$6 = /* @__PURE__ */ defineComponent({
6093
+ const _sfc_main$a = /* @__PURE__ */ defineComponent({
6094
6094
  __name: "PlanSingle",
6095
6095
  setup(__props) {
6096
6096
  const {
@@ -6266,8 +6266,8 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
6266
6266
  }
6267
6267
  });
6268
6268
  const PlanSingle_vue_vue_type_style_index_0_scoped_b3d29aa4_lang = "";
6269
- const PlanSingle = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["__scopeId", "data-v-b3d29aa4"]]);
6270
- const _sfc_main$5 = /* @__PURE__ */ defineComponent({
6269
+ const PlanSingle = /* @__PURE__ */ _export_sfc(_sfc_main$a, [["__scopeId", "data-v-b3d29aa4"]]);
6270
+ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
6271
6271
  __name: "PlanStaff",
6272
6272
  setup(__props) {
6273
6273
  const {
@@ -6419,10 +6419,10 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
6419
6419
  }
6420
6420
  });
6421
6421
  const PlanStaff_vue_vue_type_style_index_0_scoped_aa8de6da_lang = "";
6422
- const PlanStaff = /* @__PURE__ */ _export_sfc(_sfc_main$5, [["__scopeId", "data-v-aa8de6da"]]);
6422
+ const PlanStaff = /* @__PURE__ */ _export_sfc(_sfc_main$9, [["__scopeId", "data-v-aa8de6da"]]);
6423
6423
  const ProgressModel = models$2.ProgressModel;
6424
- const _hoisted_1$3 = { class: "flex flex-wrap" };
6425
- const _sfc_main$4 = /* @__PURE__ */ defineComponent({
6424
+ const _hoisted_1$6 = { class: "flex flex-wrap" };
6425
+ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
6426
6426
  ...{ name: "ProgressButton" },
6427
6427
  __name: "ProgressButton",
6428
6428
  setup(__props) {
@@ -6437,7 +6437,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
6437
6437
  router.push("/penugasan/yesterday-progresses/new");
6438
6438
  };
6439
6439
  return (_ctx, _cache) => {
6440
- return openBlock(), createElementBlock("div", _hoisted_1$3, [
6440
+ return openBlock(), createElementBlock("div", _hoisted_1$6, [
6441
6441
  createVNode(unref(NeonButton), {
6442
6442
  "is-rounded": true,
6443
6443
  size: "sm",
@@ -6468,7 +6468,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
6468
6468
  };
6469
6469
  }
6470
6470
  });
6471
- const _sfc_main$3 = /* @__PURE__ */ defineComponent({
6471
+ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
6472
6472
  ...{
6473
6473
  name: "ProgressCollection"
6474
6474
  },
@@ -6531,36 +6531,36 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
6531
6531
  }
6532
6532
  });
6533
6533
  const ProgressCollection_vue_vue_type_style_index_0_scoped_2634660f_lang = "";
6534
- const ProgressCollection = /* @__PURE__ */ _export_sfc(_sfc_main$3, [["__scopeId", "data-v-2634660f"]]);
6534
+ const ProgressCollection = /* @__PURE__ */ _export_sfc(_sfc_main$7, [["__scopeId", "data-v-2634660f"]]);
6535
6535
  var duration = { exports: {} };
6536
6536
  (function(module, exports) {
6537
6537
  !function(t, s) {
6538
6538
  module.exports = s();
6539
6539
  }(commonjsGlobal, function() {
6540
6540
  var t, s, n = 1e3, i = 6e4, e = 36e5, r = 864e5, o = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, u = 31536e6, h2 = 2592e6, a = /^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/, d = { years: u, months: h2, days: r, hours: e, minutes: i, seconds: n, milliseconds: 1, weeks: 6048e5 }, c = function(t2) {
6541
- return t2 instanceof p;
6541
+ return t2 instanceof g;
6542
6542
  }, f = function(t2, s2, n2) {
6543
- return new p(t2, n2, s2.$l);
6544
- }, m = function(t2) {
6545
- return s.p(t2) + "s";
6543
+ return new g(t2, n2, s2.$l);
6546
6544
  }, l = function(t2) {
6545
+ return s.p(t2) + "s";
6546
+ }, m = function(t2) {
6547
6547
  return t2 < 0;
6548
6548
  }, $ = function(t2) {
6549
- return l(t2) ? Math.ceil(t2) : Math.floor(t2);
6549
+ return m(t2) ? Math.ceil(t2) : Math.floor(t2);
6550
6550
  }, y = function(t2) {
6551
6551
  return Math.abs(t2);
6552
- }, g = function(t2, s2) {
6553
- return t2 ? l(t2) ? { negative: true, format: "" + y(t2) + s2 } : { negative: false, format: "" + t2 + s2 } : { negative: false, format: "" };
6554
- }, p = function() {
6555
- function l2(t2, s2, n2) {
6552
+ }, v = function(t2, s2) {
6553
+ return t2 ? m(t2) ? { negative: true, format: "" + y(t2) + s2 } : { negative: false, format: "" + t2 + s2 } : { negative: false, format: "" };
6554
+ }, g = function() {
6555
+ function m2(t2, s2, n2) {
6556
6556
  var i2 = this;
6557
6557
  if (this.$d = {}, this.$l = n2, void 0 === t2 && (this.$ms = 0, this.parseFromMilliseconds()), s2)
6558
- return f(t2 * d[m(s2)], this);
6558
+ return f(t2 * d[l(s2)], this);
6559
6559
  if ("number" == typeof t2)
6560
6560
  return this.$ms = t2, this.parseFromMilliseconds(), this;
6561
6561
  if ("object" == typeof t2)
6562
6562
  return Object.keys(t2).forEach(function(s3) {
6563
- i2.$d[m(s3)] = t2[s3];
6563
+ i2.$d[l(s3)] = t2[s3];
6564
6564
  }), this.calMilliseconds(), this;
6565
6565
  if ("string" == typeof t2) {
6566
6566
  var e2 = t2.match(a);
@@ -6573,7 +6573,7 @@ var duration = { exports: {} };
6573
6573
  }
6574
6574
  return this;
6575
6575
  }
6576
- var y2 = l2.prototype;
6576
+ var y2 = m2.prototype;
6577
6577
  return y2.calMilliseconds = function() {
6578
6578
  var t2 = this;
6579
6579
  this.$ms = Object.keys(this.$d).reduce(function(s2, n2) {
@@ -6583,11 +6583,11 @@ var duration = { exports: {} };
6583
6583
  var t2 = this.$ms;
6584
6584
  this.$d.years = $(t2 / u), t2 %= u, this.$d.months = $(t2 / h2), t2 %= h2, this.$d.days = $(t2 / r), t2 %= r, this.$d.hours = $(t2 / e), t2 %= e, this.$d.minutes = $(t2 / i), t2 %= i, this.$d.seconds = $(t2 / n), t2 %= n, this.$d.milliseconds = t2;
6585
6585
  }, y2.toISOString = function() {
6586
- var t2 = g(this.$d.years, "Y"), s2 = g(this.$d.months, "M"), n2 = +this.$d.days || 0;
6586
+ var t2 = v(this.$d.years, "Y"), s2 = v(this.$d.months, "M"), n2 = +this.$d.days || 0;
6587
6587
  this.$d.weeks && (n2 += 7 * this.$d.weeks);
6588
- var i2 = g(n2, "D"), e2 = g(this.$d.hours, "H"), r2 = g(this.$d.minutes, "M"), o2 = this.$d.seconds || 0;
6588
+ var i2 = v(n2, "D"), e2 = v(this.$d.hours, "H"), r2 = v(this.$d.minutes, "M"), o2 = this.$d.seconds || 0;
6589
6589
  this.$d.milliseconds && (o2 += this.$d.milliseconds / 1e3);
6590
- var u2 = g(o2, "S"), h22 = t2.negative || s2.negative || i2.negative || e2.negative || r2.negative || u2.negative, a2 = e2.format || r2.format || u2.format ? "T" : "", d2 = (h22 ? "-" : "") + "P" + t2.format + s2.format + i2.format + a2 + e2.format + r2.format + u2.format;
6590
+ var u2 = v(o2, "S"), h3 = t2.negative || s2.negative || i2.negative || e2.negative || r2.negative || u2.negative, a2 = e2.format || r2.format || u2.format ? "T" : "", d2 = (h3 ? "-" : "") + "P" + t2.format + s2.format + i2.format + a2 + e2.format + r2.format + u2.format;
6591
6591
  return "P" === d2 || "-P" === d2 ? "P0D" : d2;
6592
6592
  }, y2.toJSON = function() {
6593
6593
  return this.toISOString();
@@ -6597,13 +6597,13 @@ var duration = { exports: {} };
6597
6597
  return s2 || String(i2[t3]);
6598
6598
  });
6599
6599
  }, y2.as = function(t2) {
6600
- return this.$ms / d[m(t2)];
6600
+ return this.$ms / d[l(t2)];
6601
6601
  }, y2.get = function(t2) {
6602
- var s2 = this.$ms, n2 = m(t2);
6602
+ var s2 = this.$ms, n2 = l(t2);
6603
6603
  return "milliseconds" === n2 ? s2 %= 1e3 : s2 = "weeks" === n2 ? $(s2 / d[n2]) : this.$d[n2], 0 === s2 ? 0 : s2;
6604
6604
  }, y2.add = function(t2, s2, n2) {
6605
6605
  var i2;
6606
- return i2 = s2 ? t2 * d[m(s2)] : c(t2) ? t2.$ms : f(t2, this).$ms, f(this.$ms + i2 * (n2 ? -1 : 1), this);
6606
+ return i2 = s2 ? t2 * d[l(s2)] : c(t2) ? t2.$ms : f(t2, this).$ms, f(this.$ms + i2 * (n2 ? -1 : 1), this);
6607
6607
  }, y2.subtract = function(t2, s2) {
6608
6608
  return this.add(t2, s2, true);
6609
6609
  }, y2.locale = function(t2) {
@@ -6613,6 +6613,8 @@ var duration = { exports: {} };
6613
6613
  return f(this.$ms, this);
6614
6614
  }, y2.humanize = function(s2) {
6615
6615
  return t().add(this.$ms, "ms").locale(this.$l).fromNow(!s2);
6616
+ }, y2.valueOf = function() {
6617
+ return this.asMilliseconds();
6616
6618
  }, y2.milliseconds = function() {
6617
6619
  return this.get("milliseconds");
6618
6620
  }, y2.asMilliseconds = function() {
@@ -6645,7 +6647,7 @@ var duration = { exports: {} };
6645
6647
  return this.get("years");
6646
6648
  }, y2.asYears = function() {
6647
6649
  return this.as("years");
6648
- }, l2;
6650
+ }, m2;
6649
6651
  }();
6650
6652
  return function(n2, i2, e2) {
6651
6653
  t = e2, s = e2().$utils(), e2.duration = function(t2, s2) {
@@ -6715,9 +6717,10 @@ class DateUtil {
6715
6717
  return dayjs;
6716
6718
  }
6717
6719
  }
6718
- const _hoisted_1$2 = { class: "grid gap-2 sm:grid-cols-2" };
6719
- const _hoisted_2$2 = { class: "text-right text-fg-subdued text-sm" };
6720
- const _sfc_main$2 = /* @__PURE__ */ defineComponent({
6720
+ const _hoisted_1$5 = { class: "grid gap-2 sm:grid-cols-2" };
6721
+ const _hoisted_2$5 = { class: "text-right text-fg-subdued text-sm" };
6722
+ const _hoisted_3$3 = { class: "segments" };
6723
+ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
6721
6724
  __name: "ProgressSingle",
6722
6725
  setup(__props) {
6723
6726
  const {
@@ -6789,8 +6792,8 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
6789
6792
  var _a;
6790
6793
  if (!isNew2)
6791
6794
  return;
6792
- values.value.staffId = (_a = staff.value) == null ? void 0 : _a.id;
6793
- values.value.staff = staff.value;
6795
+ values.value.staffIds = (_a = staff.value) == null ? void 0 : _a.id;
6796
+ values.value.staffs = staff.value;
6794
6797
  values.value.startedAt = besok.second(0).millisecond(0).toISOString();
6795
6798
  values.value.endedAt = besok.add(90, "m").toISOString();
6796
6799
  },
@@ -6809,13 +6812,55 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
6809
6812
  {
6810
6813
  handle: "followUpStaffIds",
6811
6814
  operator: "in",
6812
- value: values.value.staffId
6815
+ value: values.value.staffIds
6813
6816
  }
6814
6817
  ]
6815
6818
  };
6816
6819
  });
6820
+ const appStore = useAppStore();
6821
+ const objectDef = computed(
6822
+ () => `neu:operasional:progress:${id.value}`
6823
+ );
6824
+ const display = ref();
6825
+ const pads = {
6826
+ comments: {
6827
+ handle: "comments",
6828
+ title: "Comments",
6829
+ icon: "comments"
6830
+ },
6831
+ note: {
6832
+ handle: "note",
6833
+ title: "Note",
6834
+ icon: "notes"
6835
+ },
6836
+ sketch: {
6837
+ handle: "sketch",
6838
+ title: "Sketch",
6839
+ icon: "pen-swirl"
6840
+ }
6841
+ };
6817
6842
  return (_ctx, _cache) => {
6818
6843
  return openBlock(), createBlock(unref(NeonSingle), { class: "neu-progress-single" }, {
6844
+ sketch: withCtx(({ close }) => [
6845
+ createVNode(unref(OfficePad), mergeProps(pads.sketch, { onClose: close }), {
6846
+ default: withCtx(() => [
6847
+ createVNode(
6848
+ unref(CatatSketchPad),
6849
+ normalizeProps(guardReactiveProps({
6850
+ applicationId: unref(appStore).appId,
6851
+ object: `${objectDef.value}:office`,
6852
+ isReady: unref(isReady),
6853
+ isLoading: unref(isLoading)
6854
+ })),
6855
+ null,
6856
+ 16
6857
+ /* FULL_PROPS */
6858
+ )
6859
+ ]),
6860
+ _: 2
6861
+ /* DYNAMIC */
6862
+ }, 1040, ["onClose"])
6863
+ ]),
6819
6864
  default: withCtx(() => [
6820
6865
  createVNode(unref(OfficeTabs), { "use-url": unref(isMain) }, {
6821
6866
  default: withCtx(() => [
@@ -6857,7 +6902,7 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
6857
6902
  _: 1
6858
6903
  /* STABLE */
6859
6904
  }),
6860
- createElementVNode("div", _hoisted_1$2, [
6905
+ createElementVNode("div", _hoisted_1$5, [
6861
6906
  createVNode(unref(NeonField), mergeProps({
6862
6907
  modelValue: unref(values).startedAt,
6863
6908
  "onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => unref(values).startedAt = $event)
@@ -6898,7 +6943,7 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
6898
6943
  }, null, 8, ["modelValue", "is-loading"]),
6899
6944
  createElementVNode(
6900
6945
  "div",
6901
- _hoisted_2$2,
6946
+ _hoisted_2$5,
6902
6947
  toDisplayString(duration2.value),
6903
6948
  1
6904
6949
  /* TEXT */
@@ -6911,22 +6956,37 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
6911
6956
  createVNode(unref(OfficeRelation), {
6912
6957
  modelValue: unref(values),
6913
6958
  "onUpdate:modelValue": _cache[5] || (_cache[5] = ($event) => isRef(values) ? values.value = $event : null),
6914
- field: unref(fields).staff
6959
+ field: unref(fields).staffs
6915
6960
  }, null, 8, ["modelValue", "field"]),
6961
+ createVNode(unref(NeonField), mergeProps({
6962
+ modelValue: unref(values).isNotes,
6963
+ "onUpdate:modelValue": _cache[7] || (_cache[7] = ($event) => unref(values).isNotes = $event)
6964
+ }, unref(fields).isNotes), {
6965
+ input: withCtx(() => [
6966
+ createVNode(unref(NeonCheck), {
6967
+ modelValue: unref(values).isNotes,
6968
+ "onUpdate:modelValue": _cache[6] || (_cache[6] = ($event) => unref(values).isNotes = $event),
6969
+ label: "Catatan",
6970
+ class: "mt-2"
6971
+ }, null, 8, ["modelValue"])
6972
+ ]),
6973
+ _: 1
6974
+ /* STABLE */
6975
+ }, 16, ["modelValue"]),
6916
6976
  createVNode(unref(NeonDivider), {
6917
6977
  "is-dashed": "",
6918
6978
  label: "Referensi"
6919
6979
  }),
6920
6980
  createVNode(unref(OfficeRelation), {
6921
6981
  modelValue: unref(values),
6922
- "onUpdate:modelValue": _cache[6] || (_cache[6] = ($event) => isRef(values) ? values.value = $event : null),
6982
+ "onUpdate:modelValue": _cache[8] || (_cache[8] = ($event) => isRef(values) ? values.value = $event : null),
6923
6983
  field: unref(fields).responsibilities,
6924
6984
  query: unref(Query).define(responsibilityOptions.value)
6925
6985
  }, null, 8, ["modelValue", "field", "query"]),
6926
6986
  createCommentVNode(' <OfficeRelation v-model="values" :field="fields.plans" /> '),
6927
6987
  createVNode(unref(OfficeRelation), {
6928
6988
  modelValue: unref(values),
6929
- "onUpdate:modelValue": _cache[7] || (_cache[7] = ($event) => isRef(values) ? values.value = $event : null),
6989
+ "onUpdate:modelValue": _cache[9] || (_cache[9] = ($event) => isRef(values) ? values.value = $event : null),
6930
6990
  field: unref(fields).submissions,
6931
6991
  query: unref(Query).define(submissionOptions.value)
6932
6992
  }, null, 8, ["modelValue", "field", "query"])
@@ -6937,7 +6997,31 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
6937
6997
  ]),
6938
6998
  _: 1
6939
6999
  /* STABLE */
6940
- })
7000
+ }),
7001
+ createCommentVNode(" Catatan "),
7002
+ !unref(isNew) && unref(values).isNotes === true ? (openBlock(), createBlock(unref(OfficeTab), {
7003
+ key: 0,
7004
+ handle: "catatan",
7005
+ icon: "circle-info",
7006
+ title: "Catatan"
7007
+ }, {
7008
+ default: withCtx(({ isTouched }) => [
7009
+ createElementVNode("div", _hoisted_3$3, [
7010
+ createVNode(unref(CatatPaperSegments), {
7011
+ display: display.value,
7012
+ "onUpdate:display": _cache[10] || (_cache[10] = ($event) => display.value = $event)
7013
+ }, null, 8, ["display"])
7014
+ ]),
7015
+ createVNode(unref(CatatPaperPad), mergeProps({
7016
+ applicationId: unref(appStore).appId,
7017
+ object: `${objectDef.value}:office`,
7018
+ isReady: unref(isReady) && isTouched,
7019
+ isLoading: unref(isLoading)
7020
+ }, { display: display.value }), null, 16, ["display"])
7021
+ ]),
7022
+ _: 1
7023
+ /* STABLE */
7024
+ })) : createCommentVNode("v-if", true)
6941
7025
  ]),
6942
7026
  _: 1
6943
7027
  /* STABLE */
@@ -6949,11 +7033,11 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
6949
7033
  };
6950
7034
  }
6951
7035
  });
6952
- const ProgressSingle_vue_vue_type_style_index_0_scoped_56177a6b_lang = "";
6953
- const ProgressSingle = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["__scopeId", "data-v-56177a6b"]]);
6954
- const _hoisted_1$1 = { class: "grid gap-2 sm:grid-cols-2" };
6955
- const _hoisted_2$1 = { class: "text-right text-fg-subdued text-sm" };
6956
- const _sfc_main$1 = /* @__PURE__ */ defineComponent({
7036
+ const ProgressSingle_vue_vue_type_style_index_0_scoped_8354411e_lang = "";
7037
+ const ProgressSingle = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["__scopeId", "data-v-8354411e"]]);
7038
+ const _hoisted_1$4 = { class: "grid gap-2 sm:grid-cols-2" };
7039
+ const _hoisted_2$4 = { class: "text-right text-fg-subdued text-sm" };
7040
+ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
6957
7041
  __name: "ProgressTomorrow",
6958
7042
  setup(__props) {
6959
7043
  const {
@@ -7025,8 +7109,8 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
7025
7109
  var _a;
7026
7110
  if (!isNew2)
7027
7111
  return;
7028
- values.value.staffId = (_a = staff.value) == null ? void 0 : _a.id;
7029
- values.value.staff = staff.value;
7112
+ values.value.staffIds = (_a = staff.value) == null ? void 0 : _a.id;
7113
+ values.value.staffs = staff.value;
7030
7114
  values.value.startedAt = besok.second(0).millisecond(0).toISOString();
7031
7115
  values.value.endedAt = besok.add(90, "m").toISOString();
7032
7116
  },
@@ -7045,7 +7129,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
7045
7129
  {
7046
7130
  handle: "followUpStaffIds",
7047
7131
  operator: "in",
7048
- value: values.value.staffId
7132
+ value: values.value.staffIds
7049
7133
  }
7050
7134
  ]
7051
7135
  };
@@ -7093,7 +7177,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
7093
7177
  _: 1
7094
7178
  /* STABLE */
7095
7179
  }),
7096
- createElementVNode("div", _hoisted_1$1, [
7180
+ createElementVNode("div", _hoisted_1$4, [
7097
7181
  createVNode(unref(NeonField), mergeProps({
7098
7182
  modelValue: unref(values).startedAt,
7099
7183
  "onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => unref(values).startedAt = $event)
@@ -7134,7 +7218,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
7134
7218
  }, null, 8, ["modelValue", "is-loading"]),
7135
7219
  createElementVNode(
7136
7220
  "div",
7137
- _hoisted_2$1,
7221
+ _hoisted_2$4,
7138
7222
  toDisplayString(duration2.value),
7139
7223
  1
7140
7224
  /* TEXT */
@@ -7147,7 +7231,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
7147
7231
  createVNode(unref(OfficeRelation), {
7148
7232
  modelValue: unref(values),
7149
7233
  "onUpdate:modelValue": _cache[5] || (_cache[5] = ($event) => isRef(values) ? values.value = $event : null),
7150
- field: unref(fields).staff
7234
+ field: unref(fields).staffs
7151
7235
  }, null, 8, ["modelValue", "field"]),
7152
7236
  createVNode(unref(NeonDivider), {
7153
7237
  "is-dashed": "",
@@ -7185,11 +7269,11 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
7185
7269
  };
7186
7270
  }
7187
7271
  });
7188
- const ProgressTomorrow_vue_vue_type_style_index_0_scoped_47774f0e_lang = "";
7189
- const ProgressTomorrow = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["__scopeId", "data-v-47774f0e"]]);
7190
- const _hoisted_1 = { class: "grid gap-2 sm:grid-cols-2" };
7191
- const _hoisted_2 = { class: "text-right text-fg-subdued text-sm" };
7192
- const _sfc_main = /* @__PURE__ */ defineComponent({
7272
+ const ProgressTomorrow_vue_vue_type_style_index_0_scoped_a2784c89_lang = "";
7273
+ const ProgressTomorrow = /* @__PURE__ */ _export_sfc(_sfc_main$5, [["__scopeId", "data-v-a2784c89"]]);
7274
+ const _hoisted_1$3 = { class: "grid gap-2 sm:grid-cols-2" };
7275
+ const _hoisted_2$3 = { class: "text-right text-fg-subdued text-sm" };
7276
+ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
7193
7277
  __name: "ProgressYesterday",
7194
7278
  setup(__props) {
7195
7279
  const {
@@ -7261,8 +7345,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
7261
7345
  var _a;
7262
7346
  if (!isNew2)
7263
7347
  return;
7264
- values.value.staffId = (_a = staff.value) == null ? void 0 : _a.id;
7265
- values.value.staff = staff.value;
7348
+ values.value.staffIds = (_a = staff.value) == null ? void 0 : _a.id;
7349
+ values.value.staffs = staff.value;
7266
7350
  values.value.startedAt = besok.second(0).millisecond(0).toISOString();
7267
7351
  values.value.endedAt = besok.add(90, "m").toISOString();
7268
7352
  },
@@ -7281,7 +7365,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
7281
7365
  {
7282
7366
  handle: "followUpStaffIds",
7283
7367
  operator: "in",
7284
- value: values.value.staffId
7368
+ value: values.value.staffIds
7285
7369
  }
7286
7370
  ]
7287
7371
  };
@@ -7329,7 +7413,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
7329
7413
  _: 1
7330
7414
  /* STABLE */
7331
7415
  }),
7332
- createElementVNode("div", _hoisted_1, [
7416
+ createElementVNode("div", _hoisted_1$3, [
7333
7417
  createVNode(unref(NeonField), mergeProps({
7334
7418
  modelValue: unref(values).startedAt,
7335
7419
  "onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => unref(values).startedAt = $event)
@@ -7370,7 +7454,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
7370
7454
  }, null, 8, ["modelValue", "is-loading"]),
7371
7455
  createElementVNode(
7372
7456
  "div",
7373
- _hoisted_2,
7457
+ _hoisted_2$3,
7374
7458
  toDisplayString(duration2.value),
7375
7459
  1
7376
7460
  /* TEXT */
@@ -7383,7 +7467,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
7383
7467
  createVNode(unref(OfficeRelation), {
7384
7468
  modelValue: unref(values),
7385
7469
  "onUpdate:modelValue": _cache[5] || (_cache[5] = ($event) => isRef(values) ? values.value = $event : null),
7386
- field: unref(fields).staff
7470
+ field: unref(fields).staffs
7387
7471
  }, null, 8, ["modelValue", "field"]),
7388
7472
  createVNode(unref(NeonDivider), {
7389
7473
  "is-dashed": "",
@@ -7425,75 +7509,1342 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
7425
7509
  };
7426
7510
  }
7427
7511
  });
7428
- const ProgressYesterday_vue_vue_type_style_index_0_scoped_7e2a51fe_lang = "";
7429
- const ProgressYesterday = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-7e2a51fe"]]);
7512
+ const ProgressYesterday_vue_vue_type_style_index_0_scoped_e2e0ccca_lang = "";
7513
+ const ProgressYesterday = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["__scopeId", "data-v-e2e0ccca"]]);
7514
+ const AttendanceModel = models$2.AttendanceModel;
7515
+ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
7516
+ ...{
7517
+ name: "AttendanceCollection"
7518
+ },
7519
+ __name: "AttendanceCollection",
7520
+ setup(__props) {
7521
+ useCollection();
7522
+ return (_ctx, _cache) => {
7523
+ return openBlock(), createBlock(unref(NeonCollection), { class: "neu-attendance-collection" }, {
7524
+ default: withCtx(() => [
7525
+ createVNode(unref(OfficeCollectionTable))
7526
+ ]),
7527
+ _: 1
7528
+ /* STABLE */
7529
+ });
7530
+ };
7531
+ }
7532
+ });
7533
+ const _hoisted_1$2 = { class: "grid gap-2 sm:grid-cols-2" };
7534
+ const _hoisted_2$2 = { class: "text-right text-fg-subdued text-sm" };
7535
+ const _hoisted_3$2 = { class: "grid gap-2 sm:grid-cols-2" };
7536
+ const _hoisted_4$2 = { class: "text-right text-fg-subdued text-sm" };
7537
+ const _hoisted_5$2 = { class: "grid gap-2 sm:grid-cols-2" };
7538
+ const _hoisted_6$2 = { class: "text-right text-fg-subdued text-sm" };
7539
+ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
7540
+ __name: "AttendanceSingle",
7541
+ setup(__props) {
7542
+ const {
7543
+ fields,
7544
+ id,
7545
+ initialValues,
7546
+ values,
7547
+ isLoading,
7548
+ isChanged,
7549
+ isReady,
7550
+ isMain,
7551
+ isNew,
7552
+ saveOne,
7553
+ discardChanges,
7554
+ syncOne
7555
+ } = useSingle();
7556
+ const keyHomeAt = ref(0);
7557
+ const diffHomeAt = computed(() => {
7558
+ return DateUtil.day(values.value.earlyAt).diff(values.value.homeAt);
7559
+ });
7560
+ const durationHomeAt = computed(() => {
7561
+ if (isNaN(diffHomeAt.value))
7562
+ return "-";
7563
+ const duration2 = DateUtil.day.duration(diffHomeAt.value);
7564
+ return duration2.format("HH [jam] mm [menit]");
7565
+ });
7566
+ function onHomeAtUpdate(date) {
7567
+ if (!date)
7568
+ return;
7569
+ const earlyAt = DateUtil.day(date);
7570
+ const homeAt = DateUtil.day(date);
7571
+ values.value.earlyAt = earlyAt.toISOString();
7572
+ values.value.homeAt = homeAt.toISOString();
7573
+ }
7574
+ const keyComeAt = ref(0);
7575
+ const diffComeAt = computed(() => {
7576
+ return DateUtil.day(values.value.lateAt).diff(values.value.comeAt);
7577
+ });
7578
+ const durationComeAt = computed(() => {
7579
+ if (isNaN(diffComeAt.value))
7580
+ return "-";
7581
+ const duration2 = DateUtil.day.duration(diffComeAt.value);
7582
+ return duration2.format("HH [jam] mm [menit]");
7583
+ });
7584
+ function onComeAtUpdate(date) {
7585
+ if (!date)
7586
+ return;
7587
+ const comeAt = DateUtil.day(date);
7588
+ const lateAt = DateUtil.day(date);
7589
+ values.value.comeAt = comeAt.toISOString();
7590
+ values.value.lateAt = lateAt.toISOString();
7591
+ }
7592
+ const keyStartedAt = ref(0);
7593
+ const diffStartedAt = computed(() => {
7594
+ return DateUtil.day(values.value.endedAt).diff(values.value.startedAt);
7595
+ });
7596
+ const durationStartedAt = computed(() => {
7597
+ if (isNaN(diffStartedAt.value))
7598
+ return "-";
7599
+ const duration2 = DateUtil.day.duration(diffStartedAt.value);
7600
+ return duration2.format("HH [jam] mm [menit]");
7601
+ });
7602
+ function onStartedAtUpdate(date) {
7603
+ if (!date)
7604
+ return;
7605
+ const startedAt = DateUtil.day(date);
7606
+ const endedAt = DateUtil.day(date);
7607
+ values.value.startedAt = startedAt.toISOString();
7608
+ values.value.endedAt = endedAt.toISOString();
7609
+ }
7610
+ return (_ctx, _cache) => {
7611
+ return openBlock(), createBlock(unref(NeonSingle), { class: "neu-attendance-single" }, {
7612
+ default: withCtx(() => [
7613
+ createVNode(unref(OfficeTabs), { "use-url": unref(isMain) }, {
7614
+ default: withCtx(() => [
7615
+ createVNode(unref(OfficeTab), {
7616
+ handle: "info",
7617
+ icon: "circle-info",
7618
+ title: "Info"
7619
+ }, {
7620
+ default: withCtx(() => [
7621
+ createVNode(unref(NeonForm), {
7622
+ handle: "info",
7623
+ "initial-values": unref(initialValues),
7624
+ "is-loading": unref(isLoading),
7625
+ "is-changed": unref(isChanged),
7626
+ "use-unsaved": "",
7627
+ onCancel: unref(discardChanges),
7628
+ onSubmit: unref(saveOne)
7629
+ }, {
7630
+ default: withCtx(() => [
7631
+ createCommentVNode(' <NeonAlert\n icon="circle-info"\n label="Sudah ada Absensi!. "\n description="Untuk hari ini kamu sudah ada absensi yang diajukan, silahkan cari absensi yang telah diajukan dan ajukan kembali untuk pergantiannya."\n color="#F7CF6D"\n /> '),
7632
+ createCommentVNode(' <div class="flex flex-wrap">\n <div class="mt-2">\n <NeonField>\n <template #input>\n <NeonButton\n size="md"\n color="success"\n icon-left="up-from-line"\n @click="syncOne"\n >Ajukan</NeonButton\n >\n </template>\n </NeonField>\n </div>\n &nbsp;&nbsp;\n <div class="mt-2">\n <NeonField>\n <template #input>\n <NeonButton\n size="md"\n color="warning"\n icon-left="arrows-retweet"\n @click="syncOne"\n >Ganti</NeonButton\n >\n </template>\n </NeonField>\n </div>\n </div> '),
7633
+ createVNode(unref(NeonField), mergeProps({
7634
+ modelValue: unref(values).status,
7635
+ "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => unref(values).status = $event)
7636
+ }, unref(fields).status), null, 16, ["modelValue"]),
7637
+ createVNode(unref(OfficeRelation), {
7638
+ modelValue: unref(values),
7639
+ "onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => isRef(values) ? values.value = $event : null),
7640
+ field: unref(fields).submitStaff
7641
+ }, null, 8, ["modelValue", "field"]),
7642
+ createVNode(unref(NeonField), mergeProps({
7643
+ modelValue: unref(values).attendanceAt,
7644
+ "onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => unref(values).attendanceAt = $event)
7645
+ }, unref(fields).attendanceAt), null, 16, ["modelValue"]),
7646
+ createVNode(unref(NeonField), mergeProps({
7647
+ modelValue: unref(values).type,
7648
+ "onUpdate:modelValue": _cache[3] || (_cache[3] = ($event) => unref(values).type = $event)
7649
+ }, unref(fields).type), null, 16, ["modelValue"]),
7650
+ createVNode(unref(OfficeRelation), {
7651
+ modelValue: unref(values),
7652
+ "onUpdate:modelValue": _cache[4] || (_cache[4] = ($event) => isRef(values) ? values.value = $event : null),
7653
+ field: unref(fields).decideStaff
7654
+ }, null, 8, ["modelValue", "field"]),
7655
+ unref(isNew) || unref(isReady) ? (openBlock(), createBlock(unref(NeonField), mergeProps({
7656
+ key: 0,
7657
+ modelValue: unref(values).notes,
7658
+ "onUpdate:modelValue": _cache[5] || (_cache[5] = ($event) => unref(values).notes = $event)
7659
+ }, unref(fields).notes), null, 16, ["modelValue"])) : createCommentVNode("v-if", true),
7660
+ createVNode(unref(NeonDivider), {
7661
+ "is-dashed": "",
7662
+ label: "Keterangan"
7663
+ }),
7664
+ createVNode(unref(NeonField), mergeProps({
7665
+ modelValue: unref(values).submittedAt,
7666
+ "onUpdate:modelValue": _cache[6] || (_cache[6] = ($event) => unref(values).submittedAt = $event)
7667
+ }, unref(fields).submittedAt), null, 16, ["modelValue"]),
7668
+ createCommentVNode(" EARLY GO HOME "),
7669
+ (openBlock(), createBlock(unref(NeonField), mergeProps({
7670
+ key: keyHomeAt.value,
7671
+ "model-value": unref(values).homeAt
7672
+ }, {
7673
+ handle: "homeAt",
7674
+ name: "Tanggal",
7675
+ type: "date",
7676
+ input: "date2",
7677
+ options: {
7678
+ note: "Tanggal absensi."
7679
+ }
7680
+ }, { "onUpdate:modelValue": onHomeAtUpdate }), null, 16, ["model-value"])),
7681
+ createElementVNode("div", _hoisted_1$2, [
7682
+ createVNode(unref(NeonField), mergeProps({
7683
+ modelValue: unref(values).homeAt,
7684
+ "onUpdate:modelValue": _cache[8] || (_cache[8] = ($event) => unref(values).homeAt = $event)
7685
+ }, {
7686
+ handle: "homeAt",
7687
+ name: "Jam Pulang Kerja",
7688
+ options: {
7689
+ note: "Jam pulang kerja."
7690
+ }
7691
+ }), {
7692
+ input: withCtx(() => [
7693
+ createVNode(unref(NeonTime), {
7694
+ modelValue: unref(values).homeAt,
7695
+ "onUpdate:modelValue": _cache[7] || (_cache[7] = ($event) => unref(values).homeAt = $event),
7696
+ "is-loading": unref(isLoading),
7697
+ class: "mt-2"
7698
+ }, null, 8, ["modelValue", "is-loading"])
7699
+ ]),
7700
+ _: 1
7701
+ /* STABLE */
7702
+ }, 16, ["modelValue"]),
7703
+ createVNode(unref(NeonField), mergeProps({
7704
+ modelValue: unref(values).earlyAt,
7705
+ "onUpdate:modelValue": _cache[10] || (_cache[10] = ($event) => unref(values).earlyAt = $event)
7706
+ }, {
7707
+ handle: "earlyAt",
7708
+ name: "Jam Pulang Lebih Awal",
7709
+ options: {
7710
+ note: "Jam pulang lebih awal."
7711
+ }
7712
+ }), {
7713
+ input: withCtx(() => [
7714
+ createVNode(unref(NeonTime), {
7715
+ modelValue: unref(values).earlyAt,
7716
+ "onUpdate:modelValue": _cache[9] || (_cache[9] = ($event) => unref(values).earlyAt = $event),
7717
+ "is-loading": unref(isLoading),
7718
+ class: "mt-2"
7719
+ }, null, 8, ["modelValue", "is-loading"]),
7720
+ createElementVNode(
7721
+ "div",
7722
+ _hoisted_2$2,
7723
+ toDisplayString(durationHomeAt.value),
7724
+ 1
7725
+ /* TEXT */
7726
+ )
7727
+ ]),
7728
+ _: 1
7729
+ /* STABLE */
7730
+ }, 16, ["modelValue"])
7731
+ ]),
7732
+ createCommentVNode(" COME TOO LATE "),
7733
+ (openBlock(), createBlock(unref(NeonField), mergeProps({
7734
+ key: keyComeAt.value,
7735
+ "model-value": unref(values).comeAt
7736
+ }, {
7737
+ handle: "comeAt",
7738
+ name: "Tanggal",
7739
+ type: "date",
7740
+ input: "date2",
7741
+ options: {
7742
+ note: "Tanggal absensi."
7743
+ }
7744
+ }, { "onUpdate:modelValue": onComeAtUpdate }), null, 16, ["model-value"])),
7745
+ createElementVNode("div", _hoisted_3$2, [
7746
+ createVNode(unref(NeonField), mergeProps({
7747
+ modelValue: unref(values).comeAt,
7748
+ "onUpdate:modelValue": _cache[12] || (_cache[12] = ($event) => unref(values).comeAt = $event)
7749
+ }, {
7750
+ handle: "comeAt",
7751
+ name: "Jam Datang",
7752
+ options: {
7753
+ note: "Jam Datang kerja."
7754
+ }
7755
+ }), {
7756
+ input: withCtx(() => [
7757
+ createVNode(unref(NeonTime), {
7758
+ modelValue: unref(values).comeAt,
7759
+ "onUpdate:modelValue": _cache[11] || (_cache[11] = ($event) => unref(values).comeAt = $event),
7760
+ "is-loading": unref(isLoading),
7761
+ class: "mt-2"
7762
+ }, null, 8, ["modelValue", "is-loading"])
7763
+ ]),
7764
+ _: 1
7765
+ /* STABLE */
7766
+ }, 16, ["modelValue"]),
7767
+ createVNode(unref(NeonField), mergeProps({
7768
+ modelValue: unref(values).lateAt,
7769
+ "onUpdate:modelValue": _cache[14] || (_cache[14] = ($event) => unref(values).lateAt = $event)
7770
+ }, {
7771
+ handle: "lateAt",
7772
+ name: "Jam Datang Terlambat",
7773
+ options: {
7774
+ note: "Jam datang terlambat."
7775
+ }
7776
+ }), {
7777
+ input: withCtx(() => [
7778
+ createVNode(unref(NeonTime), {
7779
+ modelValue: unref(values).lateAt,
7780
+ "onUpdate:modelValue": _cache[13] || (_cache[13] = ($event) => unref(values).lateAt = $event),
7781
+ "is-loading": unref(isLoading),
7782
+ class: "mt-2"
7783
+ }, null, 8, ["modelValue", "is-loading"]),
7784
+ createElementVNode(
7785
+ "div",
7786
+ _hoisted_4$2,
7787
+ toDisplayString(durationComeAt.value),
7788
+ 1
7789
+ /* TEXT */
7790
+ )
7791
+ ]),
7792
+ _: 1
7793
+ /* STABLE */
7794
+ }, 16, ["modelValue"])
7795
+ ]),
7796
+ createCommentVNode(" TIMEOUT "),
7797
+ (openBlock(), createBlock(unref(NeonField), mergeProps({
7798
+ key: keyStartedAt.value,
7799
+ "model-value": unref(values).startedAt
7800
+ }, {
7801
+ handle: "startedAt",
7802
+ name: "Tanggal",
7803
+ type: "date",
7804
+ input: "date2",
7805
+ options: {
7806
+ note: "Tanggal absensi."
7807
+ }
7808
+ }, { "onUpdate:modelValue": onStartedAtUpdate }), null, 16, ["model-value"])),
7809
+ createElementVNode("div", _hoisted_5$2, [
7810
+ createVNode(unref(NeonField), mergeProps({
7811
+ modelValue: unref(values).startedAt,
7812
+ "onUpdate:modelValue": _cache[16] || (_cache[16] = ($event) => unref(values).startedAt = $event)
7813
+ }, {
7814
+ handle: "startedAt",
7815
+ name: "Mulai",
7816
+ options: {
7817
+ note: "Jam mulai."
7818
+ }
7819
+ }), {
7820
+ input: withCtx(() => [
7821
+ createVNode(unref(NeonTime), {
7822
+ modelValue: unref(values).startedAt,
7823
+ "onUpdate:modelValue": _cache[15] || (_cache[15] = ($event) => unref(values).startedAt = $event),
7824
+ "is-loading": unref(isLoading),
7825
+ class: "mt-2"
7826
+ }, null, 8, ["modelValue", "is-loading"])
7827
+ ]),
7828
+ _: 1
7829
+ /* STABLE */
7830
+ }, 16, ["modelValue"]),
7831
+ createVNode(unref(NeonField), mergeProps({
7832
+ modelValue: unref(values).endedAt,
7833
+ "onUpdate:modelValue": _cache[18] || (_cache[18] = ($event) => unref(values).endedAt = $event)
7834
+ }, {
7835
+ handle: "endedAt",
7836
+ name: "Selesai",
7837
+ options: {
7838
+ note: "Jam selesai."
7839
+ }
7840
+ }), {
7841
+ input: withCtx(() => [
7842
+ createVNode(unref(NeonTime), {
7843
+ modelValue: unref(values).endedAt,
7844
+ "onUpdate:modelValue": _cache[17] || (_cache[17] = ($event) => unref(values).endedAt = $event),
7845
+ "is-loading": unref(isLoading),
7846
+ class: "mt-2"
7847
+ }, null, 8, ["modelValue", "is-loading"]),
7848
+ createElementVNode(
7849
+ "div",
7850
+ _hoisted_6$2,
7851
+ toDisplayString(durationStartedAt.value),
7852
+ 1
7853
+ /* TEXT */
7854
+ )
7855
+ ]),
7856
+ _: 1
7857
+ /* STABLE */
7858
+ }, 16, ["modelValue"])
7859
+ ])
7860
+ ]),
7861
+ _: 1
7862
+ /* STABLE */
7863
+ }, 8, ["initial-values", "is-loading", "is-changed", "onCancel", "onSubmit"])
7864
+ ]),
7865
+ _: 1
7866
+ /* STABLE */
7867
+ })
7868
+ ]),
7869
+ _: 1
7870
+ /* STABLE */
7871
+ }, 8, ["use-url"])
7872
+ ]),
7873
+ _: 1
7874
+ /* STABLE */
7875
+ });
7876
+ };
7877
+ }
7878
+ });
7879
+ const AttendanceSingle_vue_vue_type_style_index_0_scoped_f2d3d252_lang = "";
7880
+ const AttendanceSingle = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["__scopeId", "data-v-f2d3d252"]]);
7881
+ const _hoisted_1$1 = {
7882
+ key: 0,
7883
+ class: "flex flex-wrap"
7884
+ };
7885
+ const _hoisted_2$1 = { class: "mt-2" };
7886
+ const _hoisted_3$1 = { class: "mt-2" };
7887
+ const _hoisted_4$1 = {
7888
+ key: 8,
7889
+ class: "grid gap-2 sm:grid-cols-2"
7890
+ };
7891
+ const _hoisted_5$1 = { class: "text-right text-fg-subdued text-sm" };
7892
+ const _hoisted_6$1 = {
7893
+ key: 9,
7894
+ class: "grid gap-2 sm:grid-cols-2"
7895
+ };
7896
+ const _hoisted_7$1 = { class: "text-right text-fg-subdued text-sm" };
7897
+ const _hoisted_8$1 = {
7898
+ key: 10,
7899
+ class: "grid gap-2 sm:grid-cols-2"
7900
+ };
7901
+ const _hoisted_9$1 = { class: "text-right text-fg-subdued text-sm" };
7902
+ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
7903
+ __name: "AttendanceStaff",
7904
+ setup(__props) {
7905
+ var _a;
7906
+ const {
7907
+ fields,
7908
+ id,
7909
+ initialValues,
7910
+ values,
7911
+ isLoading,
7912
+ isChanged,
7913
+ isReady,
7914
+ isMain,
7915
+ isNew,
7916
+ saveOne,
7917
+ discardChanges,
7918
+ syncOne,
7919
+ executeOne
7920
+ } = useSingle();
7921
+ const keyHomeAt = ref(0);
7922
+ const diffHomeAt = computed(() => {
7923
+ return DateUtil.day(values.value.earlyAt).diff(values.value.homeAt);
7924
+ });
7925
+ const durationHomeAt = computed(() => {
7926
+ if (isNaN(diffHomeAt.value))
7927
+ return "-";
7928
+ const duration2 = DateUtil.day.duration(diffHomeAt.value);
7929
+ return duration2.format("HH [jam] mm [menit]");
7930
+ });
7931
+ function onHomeAtUpdate(date) {
7932
+ if (!date)
7933
+ return;
7934
+ const earlyAt = DateUtil.day(date);
7935
+ const homeAt = DateUtil.day(date);
7936
+ values.value.earlyAt = earlyAt.toISOString();
7937
+ values.value.homeAt = homeAt.toISOString();
7938
+ values.value.attendanceAt = earlyAt.toISOString();
7939
+ }
7940
+ const keyComeAt = ref(0);
7941
+ const diffComeAt = computed(() => {
7942
+ return DateUtil.day(values.value.lateAt).diff(values.value.comeAt);
7943
+ });
7944
+ const durationComeAt = computed(() => {
7945
+ if (isNaN(diffComeAt.value))
7946
+ return "-";
7947
+ const duration2 = DateUtil.day.duration(diffComeAt.value);
7948
+ return duration2.format("HH [jam] mm [menit]");
7949
+ });
7950
+ function onComeAtUpdate(date) {
7951
+ if (!date)
7952
+ return;
7953
+ const comeAt = DateUtil.day(date);
7954
+ const lateAt = DateUtil.day(date);
7955
+ values.value.comeAt = comeAt.toISOString();
7956
+ values.value.lateAt = lateAt.toISOString();
7957
+ values.value.attendanceAt = comeAt.toISOString();
7958
+ }
7959
+ const keyStartedAt = ref(0);
7960
+ const diffStartedAt = computed(() => {
7961
+ return DateUtil.day(values.value.endedAt).diff(values.value.startedAt);
7962
+ });
7963
+ const durationStartedAt = computed(() => {
7964
+ if (isNaN(diffStartedAt.value))
7965
+ return "-";
7966
+ const duration2 = DateUtil.day.duration(diffStartedAt.value);
7967
+ return duration2.format("HH [jam] mm [menit]");
7968
+ });
7969
+ function onStartedAtUpdate(date) {
7970
+ if (!date)
7971
+ return;
7972
+ const startedAt = DateUtil.day(date);
7973
+ const endedAt = DateUtil.day(date);
7974
+ values.value.startedAt = startedAt.toISOString();
7975
+ values.value.endedAt = endedAt.toISOString();
7976
+ values.value.attendanceAt = startedAt.toISOString();
7977
+ }
7978
+ const { staff } = useOperasional();
7979
+ const staffId = ((_a = staff.value) == null ? void 0 : _a.id) || "";
7980
+ watch(
7981
+ isNew,
7982
+ (isNew2) => {
7983
+ if (!isNew2)
7984
+ return;
7985
+ values.value.submitStaffId = staffId;
7986
+ values.value.submitStaff = staff.value;
7987
+ },
7988
+ {
7989
+ immediate: true
7990
+ }
7991
+ );
7992
+ const submitAbsensi = async () => {
7993
+ await executeOne("submitAttendance", { attendanceId: id.value });
7994
+ await syncOne();
7995
+ };
7996
+ const changeAbsensi = async () => {
7997
+ await executeOne("changeAttendance", { attendanceId: id.value });
7998
+ await syncOne();
7999
+ };
8000
+ return (_ctx, _cache) => {
8001
+ return openBlock(), createBlock(unref(NeonSingle), { class: "neu-attendance-single" }, {
8002
+ default: withCtx(() => [
8003
+ createVNode(unref(OfficeTabs), { "use-url": unref(isMain) }, {
8004
+ default: withCtx(() => [
8005
+ createVNode(unref(OfficeTab), {
8006
+ handle: "info",
8007
+ icon: "circle-info",
8008
+ title: "Info"
8009
+ }, {
8010
+ default: withCtx(() => [
8011
+ createVNode(unref(NeonForm), {
8012
+ handle: "info",
8013
+ "initial-values": unref(initialValues),
8014
+ "is-loading": unref(isLoading),
8015
+ "is-changed": unref(isChanged),
8016
+ "use-unsaved": "",
8017
+ onCancel: unref(discardChanges),
8018
+ onSubmit: unref(saveOne)
8019
+ }, {
8020
+ default: withCtx(() => [
8021
+ createCommentVNode(' <NeonAlert\n icon="circle-info"\n label="Sudah ada Absensi!. "\n description="Untuk hari ini kamu sudah ada absensi yang diajukan, silahkan cari absensi yang telah diajukan dan ajukan kembali untuk pergantiannya."\n color="#F7CF6D"\n /> '),
8022
+ !unref(isNew) ? (openBlock(), createElementBlock("div", _hoisted_1$1, [
8023
+ createElementVNode("div", _hoisted_2$1, [
8024
+ createVNode(unref(NeonField), null, {
8025
+ input: withCtx(() => [
8026
+ createVNode(unref(NeonButton), {
8027
+ size: "md",
8028
+ color: "success",
8029
+ "icon-left": "up-from-line",
8030
+ "is-disabled": unref(values).status == "notApproved" || unref(values).status == "approved",
8031
+ onClick: submitAbsensi
8032
+ }, {
8033
+ default: withCtx(() => [
8034
+ createTextVNode("Ajukan")
8035
+ ]),
8036
+ _: 1
8037
+ /* STABLE */
8038
+ }, 8, ["is-disabled"])
8039
+ ]),
8040
+ _: 1
8041
+ /* STABLE */
8042
+ })
8043
+ ]),
8044
+ createTextVNode("    "),
8045
+ createElementVNode("div", _hoisted_3$1, [
8046
+ createVNode(unref(NeonField), null, {
8047
+ input: withCtx(() => [
8048
+ createVNode(unref(NeonButton), {
8049
+ size: "md",
8050
+ color: "warning",
8051
+ "icon-left": "arrows-retweet",
8052
+ "is-disabled": unref(values).status == "approved" || unref(values).status == "draft",
8053
+ onClick: changeAbsensi
8054
+ }, {
8055
+ default: withCtx(() => [
8056
+ createTextVNode("Ganti")
8057
+ ]),
8058
+ _: 1
8059
+ /* STABLE */
8060
+ }, 8, ["is-disabled"])
8061
+ ]),
8062
+ _: 1
8063
+ /* STABLE */
8064
+ })
8065
+ ])
8066
+ ])) : createCommentVNode("v-if", true),
8067
+ createVNode(unref(OfficeRelation), {
8068
+ modelValue: unref(values),
8069
+ "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => isRef(values) ? values.value = $event : null),
8070
+ field: unref(fields).submitStaff,
8071
+ "is-disabled": ""
8072
+ }, null, 8, ["modelValue", "field"]),
8073
+ unref(values).type == null || unref(values).type == "dayOff" || unref(values).type == "sick" || unref(values).type == "permission" || unref(values).type == "leave" ? (openBlock(), createBlock(unref(NeonField), mergeProps({
8074
+ key: 1,
8075
+ modelValue: unref(values).attendanceAt,
8076
+ "onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => unref(values).attendanceAt = $event)
8077
+ }, unref(fields).attendanceAt, {
8078
+ "is-disabled": unref(values).status == "notApproved" || unref(values).status == "approved"
8079
+ }), null, 16, ["modelValue", "is-disabled"])) : createCommentVNode("v-if", true),
8080
+ createCommentVNode(" EARLY GO HOME "),
8081
+ unref(values).type == "homeEarly" ? (openBlock(), createBlock(unref(NeonField), mergeProps({
8082
+ key: keyHomeAt.value,
8083
+ "model-value": unref(values).homeAt
8084
+ }, {
8085
+ handle: "homeAt",
8086
+ name: "Tanggal",
8087
+ type: "date",
8088
+ input: "date2",
8089
+ options: {
8090
+ note: "Tanggal absensi."
8091
+ }
8092
+ }, {
8093
+ "is-disabled": unref(values).status == "notApproved" || unref(values).status == "approved",
8094
+ "onUpdate:modelValue": onHomeAtUpdate
8095
+ }), null, 16, ["model-value", "is-disabled"])) : createCommentVNode("v-if", true),
8096
+ createCommentVNode(" TIMEOUT "),
8097
+ unref(values).type == "timeout" ? (openBlock(), createBlock(unref(NeonField), mergeProps({
8098
+ key: keyStartedAt.value,
8099
+ "model-value": unref(values).startedAt
8100
+ }, {
8101
+ handle: "startedAt",
8102
+ name: "Tanggal",
8103
+ type: "date",
8104
+ input: "date2",
8105
+ options: {
8106
+ note: "Tanggal absensi."
8107
+ }
8108
+ }, {
8109
+ "is-disabled": unref(values).status == "notApproved" || unref(values).status == "approved",
8110
+ "onUpdate:modelValue": onStartedAtUpdate
8111
+ }), null, 16, ["model-value", "is-disabled"])) : createCommentVNode("v-if", true),
8112
+ createCommentVNode(" COME TOO LATE "),
8113
+ unref(values).type == "comeLate" ? (openBlock(), createBlock(unref(NeonField), mergeProps({
8114
+ key: keyComeAt.value,
8115
+ "model-value": unref(values).comeAt
8116
+ }, {
8117
+ handle: "comeAt",
8118
+ name: "Tanggal",
8119
+ type: "date",
8120
+ input: "date2",
8121
+ options: {
8122
+ note: "Tanggal absensi."
8123
+ }
8124
+ }, {
8125
+ "is-disabled": unref(values).status == "notApproved" || unref(values).status == "approved",
8126
+ "onUpdate:modelValue": onComeAtUpdate
8127
+ }), null, 16, ["model-value", "is-disabled"])) : createCommentVNode("v-if", true),
8128
+ createVNode(unref(NeonField), mergeProps({
8129
+ modelValue: unref(values).type,
8130
+ "onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => unref(values).type = $event)
8131
+ }, unref(fields).type, {
8132
+ "is-disabled": unref(values).status == "notApproved" || unref(values).status == "approved"
8133
+ }), null, 16, ["modelValue", "is-disabled"]),
8134
+ createVNode(unref(OfficeRelation), {
8135
+ modelValue: unref(values),
8136
+ "onUpdate:modelValue": _cache[3] || (_cache[3] = ($event) => isRef(values) ? values.value = $event : null),
8137
+ field: unref(fields).decideStaff,
8138
+ "is-disabled": unref(values).status == "notApproved" || unref(values).status == "approved"
8139
+ }, null, 8, ["modelValue", "field", "is-disabled"]),
8140
+ unref(isNew) || unref(isReady) ? (openBlock(), createBlock(unref(NeonField), mergeProps({
8141
+ key: 5,
8142
+ modelValue: unref(values).notes,
8143
+ "onUpdate:modelValue": _cache[4] || (_cache[4] = ($event) => unref(values).notes = $event)
8144
+ }, unref(fields).notes), null, 16, ["modelValue"])) : createCommentVNode("v-if", true),
8145
+ unref(values).type ? (openBlock(), createBlock(unref(NeonDivider), {
8146
+ key: 6,
8147
+ "is-dashed": "",
8148
+ label: "Keterangan"
8149
+ })) : createCommentVNode("v-if", true),
8150
+ unref(values).type == "dayOff" || unref(values).type == "sick" || unref(values).type == "permission" || unref(values).type == "leave" ? (openBlock(), createBlock(unref(NeonField), mergeProps({
8151
+ key: 7,
8152
+ modelValue: unref(values).submittedAt,
8153
+ "onUpdate:modelValue": _cache[5] || (_cache[5] = ($event) => unref(values).submittedAt = $event)
8154
+ }, unref(fields).submittedAt, { "is-disabled": "" }), null, 16, ["modelValue"])) : createCommentVNode("v-if", true),
8155
+ createCommentVNode(" EARLY GO HOME "),
8156
+ unref(values).type == "homeEarly" ? (openBlock(), createElementBlock("div", _hoisted_4$1, [
8157
+ createVNode(unref(NeonField), mergeProps({
8158
+ modelValue: unref(values).homeAt,
8159
+ "onUpdate:modelValue": _cache[7] || (_cache[7] = ($event) => unref(values).homeAt = $event)
8160
+ }, {
8161
+ handle: "homeAt",
8162
+ name: "Jam Pulang Kerja",
8163
+ options: {
8164
+ note: "Jam pulang kerja."
8165
+ }
8166
+ }), {
8167
+ input: withCtx(() => [
8168
+ createVNode(unref(NeonTime), {
8169
+ modelValue: unref(values).homeAt,
8170
+ "onUpdate:modelValue": _cache[6] || (_cache[6] = ($event) => unref(values).homeAt = $event),
8171
+ "is-loading": unref(isLoading),
8172
+ class: "mt-2"
8173
+ }, null, 8, ["modelValue", "is-loading"])
8174
+ ]),
8175
+ _: 1
8176
+ /* STABLE */
8177
+ }, 16, ["modelValue"]),
8178
+ createVNode(unref(NeonField), mergeProps({
8179
+ modelValue: unref(values).earlyAt,
8180
+ "onUpdate:modelValue": _cache[9] || (_cache[9] = ($event) => unref(values).earlyAt = $event)
8181
+ }, {
8182
+ handle: "earlyAt",
8183
+ name: "Jam Pulang Lebih Awal",
8184
+ options: {
8185
+ note: "Jam pulang lebih awal."
8186
+ }
8187
+ }), {
8188
+ input: withCtx(() => [
8189
+ createVNode(unref(NeonTime), {
8190
+ modelValue: unref(values).earlyAt,
8191
+ "onUpdate:modelValue": _cache[8] || (_cache[8] = ($event) => unref(values).earlyAt = $event),
8192
+ "is-loading": unref(isLoading),
8193
+ class: "mt-2"
8194
+ }, null, 8, ["modelValue", "is-loading"]),
8195
+ createElementVNode(
8196
+ "div",
8197
+ _hoisted_5$1,
8198
+ toDisplayString(durationHomeAt.value),
8199
+ 1
8200
+ /* TEXT */
8201
+ )
8202
+ ]),
8203
+ _: 1
8204
+ /* STABLE */
8205
+ }, 16, ["modelValue"])
8206
+ ])) : createCommentVNode("v-if", true),
8207
+ createCommentVNode(" COME TOO LATE "),
8208
+ unref(values).type == "comeLate" ? (openBlock(), createElementBlock("div", _hoisted_6$1, [
8209
+ createVNode(unref(NeonField), mergeProps({
8210
+ modelValue: unref(values).comeAt,
8211
+ "onUpdate:modelValue": _cache[11] || (_cache[11] = ($event) => unref(values).comeAt = $event)
8212
+ }, {
8213
+ handle: "comeAt",
8214
+ name: "Jam Datang",
8215
+ options: {
8216
+ note: "Jam Datang kerja."
8217
+ }
8218
+ }), {
8219
+ input: withCtx(() => [
8220
+ createVNode(unref(NeonTime), {
8221
+ modelValue: unref(values).comeAt,
8222
+ "onUpdate:modelValue": _cache[10] || (_cache[10] = ($event) => unref(values).comeAt = $event),
8223
+ "is-loading": unref(isLoading),
8224
+ class: "mt-2"
8225
+ }, null, 8, ["modelValue", "is-loading"])
8226
+ ]),
8227
+ _: 1
8228
+ /* STABLE */
8229
+ }, 16, ["modelValue"]),
8230
+ createVNode(unref(NeonField), mergeProps({
8231
+ modelValue: unref(values).lateAt,
8232
+ "onUpdate:modelValue": _cache[13] || (_cache[13] = ($event) => unref(values).lateAt = $event)
8233
+ }, {
8234
+ handle: "lateAt",
8235
+ name: "Jam Datang Terlambat",
8236
+ options: {
8237
+ note: "Jam datang terlambat."
8238
+ }
8239
+ }), {
8240
+ input: withCtx(() => [
8241
+ createVNode(unref(NeonTime), {
8242
+ modelValue: unref(values).lateAt,
8243
+ "onUpdate:modelValue": _cache[12] || (_cache[12] = ($event) => unref(values).lateAt = $event),
8244
+ "is-loading": unref(isLoading),
8245
+ class: "mt-2"
8246
+ }, null, 8, ["modelValue", "is-loading"]),
8247
+ createElementVNode(
8248
+ "div",
8249
+ _hoisted_7$1,
8250
+ toDisplayString(durationComeAt.value),
8251
+ 1
8252
+ /* TEXT */
8253
+ )
8254
+ ]),
8255
+ _: 1
8256
+ /* STABLE */
8257
+ }, 16, ["modelValue"])
8258
+ ])) : createCommentVNode("v-if", true),
8259
+ createCommentVNode(" TIMEOUT "),
8260
+ unref(values).type == "timeout" ? (openBlock(), createElementBlock("div", _hoisted_8$1, [
8261
+ createVNode(unref(NeonField), mergeProps({
8262
+ modelValue: unref(values).startedAt,
8263
+ "onUpdate:modelValue": _cache[15] || (_cache[15] = ($event) => unref(values).startedAt = $event)
8264
+ }, {
8265
+ handle: "startedAt",
8266
+ name: "Mulai",
8267
+ options: {
8268
+ note: "Jam mulai."
8269
+ }
8270
+ }), {
8271
+ input: withCtx(() => [
8272
+ createVNode(unref(NeonTime), {
8273
+ modelValue: unref(values).startedAt,
8274
+ "onUpdate:modelValue": _cache[14] || (_cache[14] = ($event) => unref(values).startedAt = $event),
8275
+ "is-loading": unref(isLoading),
8276
+ class: "mt-2"
8277
+ }, null, 8, ["modelValue", "is-loading"])
8278
+ ]),
8279
+ _: 1
8280
+ /* STABLE */
8281
+ }, 16, ["modelValue"]),
8282
+ createVNode(unref(NeonField), mergeProps({
8283
+ modelValue: unref(values).endedAt,
8284
+ "onUpdate:modelValue": _cache[17] || (_cache[17] = ($event) => unref(values).endedAt = $event)
8285
+ }, {
8286
+ handle: "endedAt",
8287
+ name: "Selesai",
8288
+ options: {
8289
+ note: "Jam selesai."
8290
+ }
8291
+ }), {
8292
+ input: withCtx(() => [
8293
+ createVNode(unref(NeonTime), {
8294
+ modelValue: unref(values).endedAt,
8295
+ "onUpdate:modelValue": _cache[16] || (_cache[16] = ($event) => unref(values).endedAt = $event),
8296
+ "is-loading": unref(isLoading),
8297
+ class: "mt-2"
8298
+ }, null, 8, ["modelValue", "is-loading"]),
8299
+ createElementVNode(
8300
+ "div",
8301
+ _hoisted_9$1,
8302
+ toDisplayString(durationStartedAt.value),
8303
+ 1
8304
+ /* TEXT */
8305
+ )
8306
+ ]),
8307
+ _: 1
8308
+ /* STABLE */
8309
+ }, 16, ["modelValue"])
8310
+ ])) : createCommentVNode("v-if", true)
8311
+ ]),
8312
+ _: 1
8313
+ /* STABLE */
8314
+ }, 8, ["initial-values", "is-loading", "is-changed", "onCancel", "onSubmit"])
8315
+ ]),
8316
+ _: 1
8317
+ /* STABLE */
8318
+ })
8319
+ ]),
8320
+ _: 1
8321
+ /* STABLE */
8322
+ }, 8, ["use-url"])
8323
+ ]),
8324
+ _: 1
8325
+ /* STABLE */
8326
+ });
8327
+ };
8328
+ }
8329
+ });
8330
+ const AttendanceStaff_vue_vue_type_style_index_0_scoped_922e86d6_lang = "";
8331
+ const AttendanceStaff = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["__scopeId", "data-v-922e86d6"]]);
8332
+ const _hoisted_1 = { class: "flex flex-wrap" };
8333
+ const _hoisted_2 = { class: "mt-2" };
8334
+ const _hoisted_3 = { class: "mt-2" };
8335
+ const _hoisted_4 = {
8336
+ key: 7,
8337
+ class: "grid gap-2 sm:grid-cols-2"
8338
+ };
8339
+ const _hoisted_5 = { class: "text-right text-fg-subdued text-sm" };
8340
+ const _hoisted_6 = {
8341
+ key: 8,
8342
+ class: "grid gap-2 sm:grid-cols-2"
8343
+ };
8344
+ const _hoisted_7 = { class: "text-right text-fg-subdued text-sm" };
8345
+ const _hoisted_8 = {
8346
+ key: 9,
8347
+ class: "grid gap-2 sm:grid-cols-2"
8348
+ };
8349
+ const _hoisted_9 = { class: "text-right text-fg-subdued text-sm" };
8350
+ const _sfc_main = /* @__PURE__ */ defineComponent({
8351
+ __name: "AttendanceManager",
8352
+ setup(__props) {
8353
+ var _a;
8354
+ const {
8355
+ fields,
8356
+ id,
8357
+ initialValues,
8358
+ values,
8359
+ isLoading,
8360
+ isChanged,
8361
+ isReady,
8362
+ isMain,
8363
+ isNew,
8364
+ saveOne,
8365
+ discardChanges,
8366
+ syncOne,
8367
+ executeOne
8368
+ } = useSingle();
8369
+ const keyHomeAt = ref(0);
8370
+ const diffHomeAt = computed(() => {
8371
+ return DateUtil.day(values.value.earlyAt).diff(values.value.homeAt);
8372
+ });
8373
+ const durationHomeAt = computed(() => {
8374
+ if (isNaN(diffHomeAt.value))
8375
+ return "-";
8376
+ const duration2 = DateUtil.day.duration(diffHomeAt.value);
8377
+ return duration2.format("HH [jam] mm [menit]");
8378
+ });
8379
+ function onHomeAtUpdate(date) {
8380
+ if (!date)
8381
+ return;
8382
+ const earlyAt = DateUtil.day(date);
8383
+ const homeAt = DateUtil.day(date);
8384
+ values.value.earlyAt = earlyAt.toISOString();
8385
+ values.value.homeAt = homeAt.toISOString();
8386
+ }
8387
+ const keyComeAt = ref(0);
8388
+ const diffComeAt = computed(() => {
8389
+ return DateUtil.day(values.value.lateAt).diff(values.value.comeAt);
8390
+ });
8391
+ const durationComeAt = computed(() => {
8392
+ if (isNaN(diffComeAt.value))
8393
+ return "-";
8394
+ const duration2 = DateUtil.day.duration(diffComeAt.value);
8395
+ return duration2.format("HH [jam] mm [menit]");
8396
+ });
8397
+ function onComeAtUpdate(date) {
8398
+ if (!date)
8399
+ return;
8400
+ const comeAt = DateUtil.day(date);
8401
+ const lateAt = DateUtil.day(date);
8402
+ values.value.comeAt = comeAt.toISOString();
8403
+ values.value.lateAt = lateAt.toISOString();
8404
+ }
8405
+ const keyStartedAt = ref(0);
8406
+ const diffStartedAt = computed(() => {
8407
+ return DateUtil.day(values.value.endedAt).diff(values.value.startedAt);
8408
+ });
8409
+ const durationStartedAt = computed(() => {
8410
+ if (isNaN(diffStartedAt.value))
8411
+ return "-";
8412
+ const duration2 = DateUtil.day.duration(diffStartedAt.value);
8413
+ return duration2.format("HH [jam] mm [menit]");
8414
+ });
8415
+ function onStartedAtUpdate(date) {
8416
+ if (!date)
8417
+ return;
8418
+ const startedAt = DateUtil.day(date);
8419
+ const endedAt = DateUtil.day(date);
8420
+ values.value.startedAt = startedAt.toISOString();
8421
+ values.value.endedAt = endedAt.toISOString();
8422
+ }
8423
+ const { staff } = useOperasional();
8424
+ const staffId = ((_a = staff.value) == null ? void 0 : _a.id) || "";
8425
+ watch(
8426
+ isNew,
8427
+ (isNew2) => {
8428
+ if (!isNew2)
8429
+ return;
8430
+ values.value.submitStaffId = staffId;
8431
+ values.value.submitStaff = staff.value;
8432
+ },
8433
+ {
8434
+ immediate: true
8435
+ }
8436
+ );
8437
+ const approvedAbsensi = async () => {
8438
+ await executeOne("approvedAttendance", { attendanceId: id.value });
8439
+ await syncOne();
8440
+ };
8441
+ const deleteAbsensi = async () => {
8442
+ await executeOne("deleteAttendance", { attendanceId: id.value });
8443
+ await syncOne();
8444
+ window.location.href = "/penugasan/manager-attendances";
8445
+ };
8446
+ return (_ctx, _cache) => {
8447
+ return openBlock(), createBlock(unref(NeonSingle), { class: "neu-attendance-single" }, {
8448
+ default: withCtx(() => [
8449
+ createVNode(unref(OfficeTabs), { "use-url": unref(isMain) }, {
8450
+ default: withCtx(() => [
8451
+ createVNode(unref(OfficeTab), {
8452
+ handle: "info",
8453
+ icon: "circle-info",
8454
+ title: "Info"
8455
+ }, {
8456
+ default: withCtx(() => [
8457
+ createVNode(unref(NeonForm), {
8458
+ handle: "info",
8459
+ "initial-values": unref(initialValues),
8460
+ "is-loading": unref(isLoading),
8461
+ "is-changed": unref(isChanged),
8462
+ "use-unsaved": "",
8463
+ onCancel: unref(discardChanges),
8464
+ onSubmit: unref(saveOne)
8465
+ }, {
8466
+ default: withCtx(() => [
8467
+ createElementVNode("div", _hoisted_1, [
8468
+ createElementVNode("div", _hoisted_2, [
8469
+ createVNode(unref(NeonField), null, {
8470
+ input: withCtx(() => [
8471
+ createVNode(unref(NeonButton), {
8472
+ size: "md",
8473
+ color: "success",
8474
+ "icon-left": "check",
8475
+ "is-disabled": unref(values).status == "approved",
8476
+ onClick: approvedAbsensi
8477
+ }, {
8478
+ default: withCtx(() => [
8479
+ createTextVNode("Disetujui")
8480
+ ]),
8481
+ _: 1
8482
+ /* STABLE */
8483
+ }, 8, ["is-disabled"])
8484
+ ]),
8485
+ _: 1
8486
+ /* STABLE */
8487
+ })
8488
+ ]),
8489
+ createTextVNode("    "),
8490
+ createElementVNode("div", _hoisted_3, [
8491
+ createVNode(unref(NeonField), null, {
8492
+ input: withCtx(() => [
8493
+ createVNode(unref(NeonButton), {
8494
+ size: "md",
8495
+ color: "danger",
8496
+ "icon-left": "trash-can",
8497
+ onClick: deleteAbsensi
8498
+ }, {
8499
+ default: withCtx(() => [
8500
+ createTextVNode("Dihapus")
8501
+ ]),
8502
+ _: 1
8503
+ /* STABLE */
8504
+ })
8505
+ ]),
8506
+ _: 1
8507
+ /* STABLE */
8508
+ })
8509
+ ])
8510
+ ]),
8511
+ createVNode(unref(OfficeRelation), {
8512
+ modelValue: unref(values),
8513
+ "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => isRef(values) ? values.value = $event : null),
8514
+ field: unref(fields).submitStaff,
8515
+ "is-disabled": ""
8516
+ }, null, 8, ["modelValue", "field"]),
8517
+ unref(values).type == "dayOff" || unref(values).type == "sick" || unref(values).type == "permission" || unref(values).type == "leave" ? (openBlock(), createBlock(unref(NeonField), mergeProps({
8518
+ key: 0,
8519
+ modelValue: unref(values).attendanceAt,
8520
+ "onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => unref(values).attendanceAt = $event)
8521
+ }, unref(fields).attendanceAt, {
8522
+ "is-disabled": unref(values).status == "approved"
8523
+ }), null, 16, ["modelValue", "is-disabled"])) : createCommentVNode("v-if", true),
8524
+ createCommentVNode(" EARLY GO HOME "),
8525
+ unref(values).type == "homeEarly" ? (openBlock(), createBlock(unref(NeonField), mergeProps({
8526
+ key: keyHomeAt.value,
8527
+ "model-value": unref(values).homeAt
8528
+ }, {
8529
+ handle: "homeAt",
8530
+ name: "Tanggal",
8531
+ type: "date",
8532
+ input: "date2",
8533
+ options: {
8534
+ note: "Tanggal absensi."
8535
+ }
8536
+ }, {
8537
+ "is-disabled": unref(values).status == "approved",
8538
+ "onUpdate:modelValue": onHomeAtUpdate
8539
+ }), null, 16, ["model-value", "is-disabled"])) : createCommentVNode("v-if", true),
8540
+ createCommentVNode(" TIMEOUT "),
8541
+ unref(values).type == "timeout" ? (openBlock(), createBlock(unref(NeonField), mergeProps({
8542
+ key: keyStartedAt.value,
8543
+ "model-value": unref(values).startedAt
8544
+ }, {
8545
+ handle: "startedAt",
8546
+ name: "Tanggal",
8547
+ type: "date",
8548
+ input: "date2",
8549
+ options: {
8550
+ note: "Tanggal absensi."
8551
+ }
8552
+ }, {
8553
+ "is-disabled": unref(values).status == "approved",
8554
+ "onUpdate:modelValue": onStartedAtUpdate
8555
+ }), null, 16, ["model-value", "is-disabled"])) : createCommentVNode("v-if", true),
8556
+ createCommentVNode(" COME TOO LATE "),
8557
+ unref(values).type == "comeLate" ? (openBlock(), createBlock(unref(NeonField), mergeProps({
8558
+ key: keyComeAt.value,
8559
+ "model-value": unref(values).comeAt
8560
+ }, {
8561
+ handle: "comeAt",
8562
+ name: "Tanggal",
8563
+ type: "date",
8564
+ input: "date2",
8565
+ options: {
8566
+ note: "Tanggal absensi."
8567
+ }
8568
+ }, {
8569
+ "is-disabled": unref(values).status == "approved",
8570
+ "onUpdate:modelValue": onComeAtUpdate
8571
+ }), null, 16, ["model-value", "is-disabled"])) : createCommentVNode("v-if", true),
8572
+ createVNode(unref(NeonField), mergeProps({
8573
+ modelValue: unref(values).type,
8574
+ "onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => unref(values).type = $event)
8575
+ }, unref(fields).type, {
8576
+ "is-disabled": unref(values).status == "approved"
8577
+ }), null, 16, ["modelValue", "is-disabled"]),
8578
+ createVNode(unref(OfficeRelation), {
8579
+ modelValue: unref(values),
8580
+ "onUpdate:modelValue": _cache[3] || (_cache[3] = ($event) => isRef(values) ? values.value = $event : null),
8581
+ field: unref(fields).decideStaff,
8582
+ "is-disabled": unref(values).status == "approved"
8583
+ }, null, 8, ["modelValue", "field", "is-disabled"]),
8584
+ unref(isNew) || unref(isReady) ? (openBlock(), createBlock(unref(NeonField), mergeProps({
8585
+ key: 4,
8586
+ modelValue: unref(values).notes,
8587
+ "onUpdate:modelValue": _cache[4] || (_cache[4] = ($event) => unref(values).notes = $event)
8588
+ }, unref(fields).notes), null, 16, ["modelValue"])) : createCommentVNode("v-if", true),
8589
+ unref(values).type ? (openBlock(), createBlock(unref(NeonDivider), {
8590
+ key: 5,
8591
+ "is-dashed": "",
8592
+ label: "Keterangan"
8593
+ })) : createCommentVNode("v-if", true),
8594
+ unref(values).type == "dayOff" || unref(values).type == "sick" || unref(values).type == "permission" || unref(values).type == "leave" ? (openBlock(), createBlock(unref(NeonField), mergeProps({
8595
+ key: 6,
8596
+ modelValue: unref(values).submittedAt,
8597
+ "onUpdate:modelValue": _cache[5] || (_cache[5] = ($event) => unref(values).submittedAt = $event)
8598
+ }, unref(fields).submittedAt, { "is-disabled": "" }), null, 16, ["modelValue"])) : createCommentVNode("v-if", true),
8599
+ createCommentVNode(" EARLY GO HOME "),
8600
+ unref(values).type == "homeEarly" ? (openBlock(), createElementBlock("div", _hoisted_4, [
8601
+ createVNode(unref(NeonField), mergeProps({
8602
+ modelValue: unref(values).homeAt,
8603
+ "onUpdate:modelValue": _cache[7] || (_cache[7] = ($event) => unref(values).homeAt = $event)
8604
+ }, {
8605
+ handle: "homeAt",
8606
+ name: "Jam Pulang Kerja",
8607
+ options: {
8608
+ note: "Jam pulang kerja."
8609
+ }
8610
+ }), {
8611
+ input: withCtx(() => [
8612
+ createVNode(unref(NeonTime), {
8613
+ modelValue: unref(values).homeAt,
8614
+ "onUpdate:modelValue": _cache[6] || (_cache[6] = ($event) => unref(values).homeAt = $event),
8615
+ "is-loading": unref(isLoading),
8616
+ class: "mt-2"
8617
+ }, null, 8, ["modelValue", "is-loading"])
8618
+ ]),
8619
+ _: 1
8620
+ /* STABLE */
8621
+ }, 16, ["modelValue"]),
8622
+ createVNode(unref(NeonField), mergeProps({
8623
+ modelValue: unref(values).earlyAt,
8624
+ "onUpdate:modelValue": _cache[9] || (_cache[9] = ($event) => unref(values).earlyAt = $event)
8625
+ }, {
8626
+ handle: "earlyAt",
8627
+ name: "Jam Pulang Lebih Awal",
8628
+ options: {
8629
+ note: "Jam pulang lebih awal."
8630
+ }
8631
+ }), {
8632
+ input: withCtx(() => [
8633
+ createVNode(unref(NeonTime), {
8634
+ modelValue: unref(values).earlyAt,
8635
+ "onUpdate:modelValue": _cache[8] || (_cache[8] = ($event) => unref(values).earlyAt = $event),
8636
+ "is-loading": unref(isLoading),
8637
+ class: "mt-2"
8638
+ }, null, 8, ["modelValue", "is-loading"]),
8639
+ createElementVNode(
8640
+ "div",
8641
+ _hoisted_5,
8642
+ toDisplayString(durationHomeAt.value),
8643
+ 1
8644
+ /* TEXT */
8645
+ )
8646
+ ]),
8647
+ _: 1
8648
+ /* STABLE */
8649
+ }, 16, ["modelValue"])
8650
+ ])) : createCommentVNode("v-if", true),
8651
+ createCommentVNode(" COME TOO LATE "),
8652
+ unref(values).type == "comeLate" ? (openBlock(), createElementBlock("div", _hoisted_6, [
8653
+ createVNode(unref(NeonField), mergeProps({
8654
+ modelValue: unref(values).comeAt,
8655
+ "onUpdate:modelValue": _cache[11] || (_cache[11] = ($event) => unref(values).comeAt = $event)
8656
+ }, {
8657
+ handle: "comeAt",
8658
+ name: "Jam Datang",
8659
+ options: {
8660
+ note: "Jam Datang kerja."
8661
+ }
8662
+ }), {
8663
+ input: withCtx(() => [
8664
+ createVNode(unref(NeonTime), {
8665
+ modelValue: unref(values).comeAt,
8666
+ "onUpdate:modelValue": _cache[10] || (_cache[10] = ($event) => unref(values).comeAt = $event),
8667
+ "is-loading": unref(isLoading),
8668
+ class: "mt-2"
8669
+ }, null, 8, ["modelValue", "is-loading"])
8670
+ ]),
8671
+ _: 1
8672
+ /* STABLE */
8673
+ }, 16, ["modelValue"]),
8674
+ createVNode(unref(NeonField), mergeProps({
8675
+ modelValue: unref(values).lateAt,
8676
+ "onUpdate:modelValue": _cache[13] || (_cache[13] = ($event) => unref(values).lateAt = $event)
8677
+ }, {
8678
+ handle: "lateAt",
8679
+ name: "Jam Datang Terlambat",
8680
+ options: {
8681
+ note: "Jam datang terlambat."
8682
+ }
8683
+ }), {
8684
+ input: withCtx(() => [
8685
+ createVNode(unref(NeonTime), {
8686
+ modelValue: unref(values).lateAt,
8687
+ "onUpdate:modelValue": _cache[12] || (_cache[12] = ($event) => unref(values).lateAt = $event),
8688
+ "is-loading": unref(isLoading),
8689
+ class: "mt-2"
8690
+ }, null, 8, ["modelValue", "is-loading"]),
8691
+ createElementVNode(
8692
+ "div",
8693
+ _hoisted_7,
8694
+ toDisplayString(durationComeAt.value),
8695
+ 1
8696
+ /* TEXT */
8697
+ )
8698
+ ]),
8699
+ _: 1
8700
+ /* STABLE */
8701
+ }, 16, ["modelValue"])
8702
+ ])) : createCommentVNode("v-if", true),
8703
+ createCommentVNode(" TIMEOUT "),
8704
+ unref(values).type == "timeout" ? (openBlock(), createElementBlock("div", _hoisted_8, [
8705
+ createVNode(unref(NeonField), mergeProps({
8706
+ modelValue: unref(values).startedAt,
8707
+ "onUpdate:modelValue": _cache[15] || (_cache[15] = ($event) => unref(values).startedAt = $event)
8708
+ }, {
8709
+ handle: "startedAt",
8710
+ name: "Mulai",
8711
+ options: {
8712
+ note: "Jam mulai."
8713
+ }
8714
+ }), {
8715
+ input: withCtx(() => [
8716
+ createVNode(unref(NeonTime), {
8717
+ modelValue: unref(values).startedAt,
8718
+ "onUpdate:modelValue": _cache[14] || (_cache[14] = ($event) => unref(values).startedAt = $event),
8719
+ "is-loading": unref(isLoading),
8720
+ class: "mt-2"
8721
+ }, null, 8, ["modelValue", "is-loading"])
8722
+ ]),
8723
+ _: 1
8724
+ /* STABLE */
8725
+ }, 16, ["modelValue"]),
8726
+ createVNode(unref(NeonField), mergeProps({
8727
+ modelValue: unref(values).endedAt,
8728
+ "onUpdate:modelValue": _cache[17] || (_cache[17] = ($event) => unref(values).endedAt = $event)
8729
+ }, {
8730
+ handle: "endedAt",
8731
+ name: "Selesai",
8732
+ options: {
8733
+ note: "Jam selesai."
8734
+ }
8735
+ }), {
8736
+ input: withCtx(() => [
8737
+ createVNode(unref(NeonTime), {
8738
+ modelValue: unref(values).endedAt,
8739
+ "onUpdate:modelValue": _cache[16] || (_cache[16] = ($event) => unref(values).endedAt = $event),
8740
+ "is-loading": unref(isLoading),
8741
+ class: "mt-2"
8742
+ }, null, 8, ["modelValue", "is-loading"]),
8743
+ createElementVNode(
8744
+ "div",
8745
+ _hoisted_9,
8746
+ toDisplayString(durationStartedAt.value),
8747
+ 1
8748
+ /* TEXT */
8749
+ )
8750
+ ]),
8751
+ _: 1
8752
+ /* STABLE */
8753
+ }, 16, ["modelValue"])
8754
+ ])) : createCommentVNode("v-if", true)
8755
+ ]),
8756
+ _: 1
8757
+ /* STABLE */
8758
+ }, 8, ["initial-values", "is-loading", "is-changed", "onCancel", "onSubmit"])
8759
+ ]),
8760
+ _: 1
8761
+ /* STABLE */
8762
+ })
8763
+ ]),
8764
+ _: 1
8765
+ /* STABLE */
8766
+ }, 8, ["use-url"])
8767
+ ]),
8768
+ _: 1
8769
+ /* STABLE */
8770
+ });
8771
+ };
8772
+ }
8773
+ });
8774
+ const AttendanceManager_vue_vue_type_style_index_0_scoped_eb6a78b6_lang = "";
8775
+ const AttendanceManager = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-eb6a78b6"]]);
7430
8776
  const components = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
7431
8777
  __proto__: null,
8778
+ AttendanceCollection: _sfc_main$3,
8779
+ AttendanceManager,
8780
+ AttendanceModel,
8781
+ AttendanceSingle,
8782
+ AttendanceStaff,
7432
8783
  CheckInAccess,
7433
- CheckInCollection: _sfc_main$F,
8784
+ CheckInCollection: _sfc_main$J,
7434
8785
  CheckInExternal,
7435
8786
  CheckInModel,
7436
8787
  CheckInPresenceCollection,
7437
- CheckInScanError: _sfc_main$I,
7438
- CheckInScanSuccess: _sfc_main$G,
8788
+ CheckInScanError: _sfc_main$M,
8789
+ CheckInScanSuccess: _sfc_main$K,
7439
8790
  CheckInScanner,
7440
8791
  CheckInSingle,
7441
8792
  NeonTime,
7442
8793
  OperasionalIdentitas,
7443
- PlanCollection: _sfc_main$7,
8794
+ PlanCollection: _sfc_main$b,
7444
8795
  PlanModel,
7445
8796
  PlanSingle,
7446
8797
  PlanStaff,
7447
- PlanTypeCollection: _sfc_main$9,
8798
+ PlanTypeCollection: _sfc_main$d,
7448
8799
  PlanTypeModel,
7449
8800
  PlanTypeSingle,
7450
- ProgressButton: _sfc_main$4,
8801
+ ProgressButton: _sfc_main$8,
7451
8802
  ProgressCollection,
7452
8803
  ProgressModel,
7453
8804
  ProgressSingle,
7454
8805
  ProgressTomorrow,
7455
8806
  ProgressYesterday,
7456
- ResponsibilityCollection: _sfc_main$f,
8807
+ ResponsibilityCollection: _sfc_main$j,
7457
8808
  ResponsibilityModel,
7458
8809
  ResponsibilitySingle,
7459
8810
  ResponsibilityStaff,
7460
- ResponsibilityTypeCollection: _sfc_main$h,
8811
+ ResponsibilityTypeCollection: _sfc_main$l,
7461
8812
  ResponsibilityTypeModel,
7462
8813
  ResponsibilityTypeSingle,
7463
- SituationCollection: _sfc_main$A,
8814
+ SituationCollection: _sfc_main$E,
7464
8815
  SituationModel,
7465
- SituationSingle: _sfc_main$z,
7466
- SituationSupportive: _sfc_main$x,
7467
- SituationTypeCollection: _sfc_main$w,
8816
+ SituationSingle: _sfc_main$D,
8817
+ SituationSupportive: _sfc_main$B,
8818
+ SituationTypeCollection: _sfc_main$A,
7468
8819
  SituationTypeModel,
7469
- SituationTypeSingle: _sfc_main$v,
7470
- SituationWork: _sfc_main$y,
7471
- StaffCollection: _sfc_main$E,
7472
- StaffIdentity: _sfc_main$B,
8820
+ SituationTypeSingle: _sfc_main$z,
8821
+ SituationWork: _sfc_main$C,
8822
+ StaffCollection: _sfc_main$I,
8823
+ StaffIdentity: _sfc_main$F,
7473
8824
  StaffModel,
7474
8825
  StaffOperasional,
7475
8826
  StaffSingle,
7476
8827
  SubmissionAudit,
7477
- SubmissionCollection: _sfc_main$q,
8828
+ SubmissionCollection: _sfc_main$u,
7478
8829
  SubmissionDecision,
7479
8830
  SubmissionFollowUp,
7480
8831
  SubmissionModel,
7481
8832
  SubmissionSingle,
7482
8833
  SubmissionStaff,
7483
- SubmissionTypeCollection: _sfc_main$j,
8834
+ SubmissionTypeCollection: _sfc_main$n,
7484
8835
  SubmissionTypeModel,
7485
8836
  SubmissionTypeSingle,
7486
8837
  SubmissionWaitingDecision,
7487
8838
  TargetBranch,
7488
- TargetCollection: _sfc_main$c,
8839
+ TargetCollection: _sfc_main$g,
7489
8840
  TargetModel,
7490
8841
  TargetSingle,
7491
- TaskCollection: _sfc_main$t,
8842
+ TaskCollection: _sfc_main$x,
7492
8843
  TaskModel,
7493
- TaskSingle: _sfc_main$s,
7494
- TaskWork: _sfc_main$r,
7495
- TaskWorkButton: _sfc_main$u,
7496
- XxxButton: _sfc_main$P
8844
+ TaskSingle: _sfc_main$w,
8845
+ TaskWork: _sfc_main$v,
8846
+ TaskWorkButton: _sfc_main$y,
8847
+ XxxButton: _sfc_main$T
7497
8848
  }, Symbol.toStringTag, { value: "Module" }));
7498
8849
  function registerComponents(app) {
7499
8850
  Object.entries(components).forEach(([name, component]) => {
@@ -7509,74 +8860,79 @@ const OperasionalInterfacesPlugin = {
7509
8860
  }
7510
8861
  };
7511
8862
  export {
8863
+ _sfc_main$3 as AttendanceCollection,
8864
+ AttendanceManager,
8865
+ AttendanceModel,
8866
+ AttendanceSingle,
8867
+ AttendanceStaff,
7512
8868
  CheckInAccess,
7513
- _sfc_main$F as CheckInCollection,
8869
+ _sfc_main$J as CheckInCollection,
7514
8870
  CheckInExternal,
7515
8871
  CheckInModel,
7516
8872
  CheckInPresenceCollection,
7517
- _sfc_main$I as CheckInScanError,
7518
- _sfc_main$G as CheckInScanSuccess,
8873
+ _sfc_main$M as CheckInScanError,
8874
+ _sfc_main$K as CheckInScanSuccess,
7519
8875
  CheckInScanner,
7520
8876
  CheckInSingle,
7521
8877
  operasional_types as NOperasional,
7522
8878
  NeonTime,
7523
8879
  OperasionalIdentitas,
7524
8880
  OperasionalInterfacesPlugin,
7525
- _sfc_main$7 as PlanCollection,
8881
+ _sfc_main$b as PlanCollection,
7526
8882
  PlanModel,
7527
8883
  PlanSingle,
7528
8884
  PlanStaff,
7529
- _sfc_main$9 as PlanTypeCollection,
8885
+ _sfc_main$d as PlanTypeCollection,
7530
8886
  PlanTypeModel,
7531
8887
  PlanTypeSingle,
7532
- _sfc_main$4 as ProgressButton,
8888
+ _sfc_main$8 as ProgressButton,
7533
8889
  ProgressCollection,
7534
8890
  ProgressModel,
7535
8891
  ProgressSingle,
7536
8892
  ProgressTomorrow,
7537
8893
  ProgressYesterday,
7538
- _sfc_main$f as ResponsibilityCollection,
8894
+ _sfc_main$j as ResponsibilityCollection,
7539
8895
  ResponsibilityModel,
7540
8896
  ResponsibilitySingle,
7541
8897
  ResponsibilityStaff,
7542
- _sfc_main$h as ResponsibilityTypeCollection,
8898
+ _sfc_main$l as ResponsibilityTypeCollection,
7543
8899
  ResponsibilityTypeModel,
7544
8900
  ResponsibilityTypeSingle,
7545
8901
  graphql as Schema,
7546
- _sfc_main$A as SituationCollection,
8902
+ _sfc_main$E as SituationCollection,
7547
8903
  SituationModel,
7548
- _sfc_main$z as SituationSingle,
7549
- _sfc_main$x as SituationSupportive,
7550
- _sfc_main$w as SituationTypeCollection,
8904
+ _sfc_main$D as SituationSingle,
8905
+ _sfc_main$B as SituationSupportive,
8906
+ _sfc_main$A as SituationTypeCollection,
7551
8907
  SituationTypeModel,
7552
- _sfc_main$v as SituationTypeSingle,
7553
- _sfc_main$y as SituationWork,
7554
- _sfc_main$E as StaffCollection,
7555
- _sfc_main$B as StaffIdentity,
8908
+ _sfc_main$z as SituationTypeSingle,
8909
+ _sfc_main$C as SituationWork,
8910
+ _sfc_main$I as StaffCollection,
8911
+ _sfc_main$F as StaffIdentity,
7556
8912
  StaffModel,
7557
8913
  StaffOperasional,
7558
8914
  StaffSingle,
7559
8915
  SubmissionAudit,
7560
- _sfc_main$q as SubmissionCollection,
8916
+ _sfc_main$u as SubmissionCollection,
7561
8917
  SubmissionDecision,
7562
8918
  SubmissionFollowUp,
7563
8919
  SubmissionModel,
7564
8920
  SubmissionSingle,
7565
8921
  SubmissionStaff,
7566
- _sfc_main$j as SubmissionTypeCollection,
8922
+ _sfc_main$n as SubmissionTypeCollection,
7567
8923
  SubmissionTypeModel,
7568
8924
  SubmissionTypeSingle,
7569
8925
  SubmissionWaitingDecision,
7570
8926
  TargetBranch,
7571
- _sfc_main$c as TargetCollection,
8927
+ _sfc_main$g as TargetCollection,
7572
8928
  TargetModel,
7573
8929
  TargetSingle,
7574
- _sfc_main$t as TaskCollection,
8930
+ _sfc_main$x as TaskCollection,
7575
8931
  TaskModel,
7576
- _sfc_main$s as TaskSingle,
7577
- _sfc_main$r as TaskWork,
7578
- _sfc_main$u as TaskWorkButton,
7579
- _sfc_main$P as XxxButton,
8932
+ _sfc_main$w as TaskSingle,
8933
+ _sfc_main$v as TaskWork,
8934
+ _sfc_main$y as TaskWorkButton,
8935
+ _sfc_main$T as XxxButton,
7580
8936
  bus,
7581
8937
  useAttendanceStore,
7582
8938
  useOperasional,