@neutron.co.id/operasional-interfaces 1.12.6 → 1.12.7

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
@@ -3357,8 +3357,8 @@ function addYears(dirtyDate, dirtyAmount) {
3357
3357
  var amount = toInteger(dirtyAmount);
3358
3358
  return addMonths(dirtyDate, amount * 12);
3359
3359
  }
3360
- var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof window !== "undefined" ? window : typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : {};
3361
- var freeGlobal$1 = typeof commonjsGlobal == "object" && commonjsGlobal && commonjsGlobal.Object === Object && commonjsGlobal;
3360
+ var commonjsGlobal$1 = typeof globalThis !== "undefined" ? globalThis : typeof window !== "undefined" ? window : typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : {};
3361
+ var freeGlobal$1 = typeof commonjsGlobal$1 == "object" && commonjsGlobal$1 && commonjsGlobal$1.Object === Object && commonjsGlobal$1;
3362
3362
  var _freeGlobal = freeGlobal$1;
3363
3363
  var freeGlobal = _freeGlobal;
3364
3364
  var freeSelf = typeof self == "object" && self && self.Object === Object && self;
@@ -10919,7 +10919,7 @@ var parseLocale = function parseLocale2(preset, object, isLocal) {
10919
10919
  L2 = l;
10920
10920
  return l || !isLocal && L2;
10921
10921
  };
10922
- var dayjs = function dayjs2(date, c2) {
10922
+ var dayjs$1 = function dayjs(date, c2) {
10923
10923
  if (isDayjs(date)) {
10924
10924
  return date.clone();
10925
10925
  }
@@ -10929,7 +10929,7 @@ var dayjs = function dayjs2(date, c2) {
10929
10929
  return new Dayjs(cfg);
10930
10930
  };
10931
10931
  var wrapper$1 = function wrapper(date, instance) {
10932
- return dayjs(date, {
10932
+ return dayjs$1(date, {
10933
10933
  locale: instance.$L,
10934
10934
  utc: instance.$u,
10935
10935
  x: instance.$x,
@@ -10992,14 +10992,14 @@ var Dayjs = /* @__PURE__ */ function() {
10992
10992
  return !(this.$d.toString() === INVALID_DATE_STRING);
10993
10993
  };
10994
10994
  _proto.isSame = function isSame(that, units) {
10995
- var other = dayjs(that);
10995
+ var other = dayjs$1(that);
10996
10996
  return this.startOf(units) <= other && other <= this.endOf(units);
10997
10997
  };
10998
10998
  _proto.isAfter = function isAfter(that, units) {
10999
- return dayjs(that) < this.startOf(units);
10999
+ return dayjs$1(that) < this.startOf(units);
11000
11000
  };
11001
11001
  _proto.isBefore = function isBefore(that, units) {
11002
- return this.endOf(units) < dayjs(that);
11002
+ return this.endOf(units) < dayjs$1(that);
11003
11003
  };
11004
11004
  _proto.$g = function $g(input2, get2, set2) {
11005
11005
  if (Utils.u(input2))
@@ -11084,7 +11084,7 @@ var Dayjs = /* @__PURE__ */ function() {
11084
11084
  number = Number(number);
11085
11085
  var unit = Utils.p(units);
11086
11086
  var instanceFactorySet = function instanceFactorySet2(n) {
11087
- var d3 = dayjs(_this2);
11087
+ var d3 = dayjs$1(_this2);
11088
11088
  return Utils.w(d3.date(d3.date() + Math.round(n * number)), _this2);
11089
11089
  };
11090
11090
  if (unit === M3) {
@@ -11188,7 +11188,7 @@ var Dayjs = /* @__PURE__ */ function() {
11188
11188
  _proto.diff = function diff(input2, units, _float) {
11189
11189
  var _this4 = this;
11190
11190
  var unit = Utils.p(units);
11191
- var that = dayjs(input2);
11191
+ var that = dayjs$1(input2);
11192
11192
  var zoneDelta = (that.utcOffset() - this.utcOffset()) * MILLISECONDS_A_MINUTE;
11193
11193
  var diff2 = this - that;
11194
11194
  var getMonth = function getMonth2() {
@@ -11259,28 +11259,28 @@ var Dayjs = /* @__PURE__ */ function() {
11259
11259
  return Dayjs2;
11260
11260
  }();
11261
11261
  var proto = Dayjs.prototype;
11262
- dayjs.prototype = proto;
11262
+ dayjs$1.prototype = proto;
11263
11263
  [["$ms", MS], ["$s", S3], ["$m", MIN], ["$H", H3], ["$W", D2], ["$M", M3], ["$y", Y2], ["$D", DATE]].forEach(function(g) {
11264
11264
  proto[g[1]] = function(input2) {
11265
11265
  return this.$g(input2, g[0], g[1]);
11266
11266
  };
11267
11267
  });
11268
- dayjs.extend = function(plugin, option) {
11268
+ dayjs$1.extend = function(plugin, option) {
11269
11269
  if (!plugin.$i) {
11270
- plugin(option, Dayjs, dayjs);
11270
+ plugin(option, Dayjs, dayjs$1);
11271
11271
  plugin.$i = true;
11272
11272
  }
11273
- return dayjs;
11273
+ return dayjs$1;
11274
11274
  };
11275
- dayjs.locale = parseLocale;
11276
- dayjs.isDayjs = isDayjs;
11277
- dayjs.unix = function(timestamp) {
11278
- return dayjs(timestamp * 1e3);
11275
+ dayjs$1.locale = parseLocale;
11276
+ dayjs$1.isDayjs = isDayjs;
11277
+ dayjs$1.unix = function(timestamp) {
11278
+ return dayjs$1(timestamp * 1e3);
11279
11279
  };
11280
- dayjs.en = Ls[L2];
11281
- dayjs.Ls = Ls;
11282
- dayjs.p = {};
11283
- const dayjs$1 = dayjs;
11280
+ dayjs$1.en = Ls[L2];
11281
+ dayjs$1.Ls = Ls;
11282
+ dayjs$1.p = {};
11283
+ const dayjs$2 = dayjs$1;
11284
11284
  var locale = {
11285
11285
  name: "id",
11286
11286
  weekdays: "Minggu_Senin_Selasa_Rabu_Kamis_Jumat_Sabtu".split("_"),
@@ -11316,7 +11316,7 @@ var locale = {
11316
11316
  return n + ".";
11317
11317
  }
11318
11318
  };
11319
- dayjs$1.locale(locale, null, true);
11319
+ dayjs$2.locale(locale, null, true);
11320
11320
  const advancedFormat = function(o, c2) {
11321
11321
  var proto2 = c2.prototype;
11322
11322
  var oldFormat = proto2.format;
@@ -11806,14 +11806,14 @@ const relativeTimePlugin = function(o, c2, d3) {
11806
11806
  return this.from(makeNow(this), withoutSuffix);
11807
11807
  };
11808
11808
  };
11809
- dayjs$1.extend(durationPlugin);
11810
- dayjs$1.extend(relativeTimePlugin);
11811
- dayjs$1.extend(advancedFormat);
11812
- dayjs$1.extend(isoWeek);
11813
- dayjs$1.locale("id");
11809
+ dayjs$2.extend(durationPlugin);
11810
+ dayjs$2.extend(relativeTimePlugin);
11811
+ dayjs$2.extend(advancedFormat);
11812
+ dayjs$2.extend(isoWeek);
11813
+ dayjs$2.locale("id");
11814
11814
  class DateUtil {
11815
11815
  static get day() {
11816
- return dayjs$1;
11816
+ return dayjs$2;
11817
11817
  }
11818
11818
  }
11819
11819
  const _withScopeId$3 = (n) => (pushScopeId("data-v-805321b9"), n = n(), popScopeId(), n);
@@ -14081,6 +14081,37 @@ const StatusStaff = Choice.define({
14081
14081
  }
14082
14082
  ]
14083
14083
  });
14084
+ const StatusWork = Choice.define({
14085
+ handle: "statusWork",
14086
+ name: "Work Status",
14087
+ items: [
14088
+ {
14089
+ label: "Off",
14090
+ value: "off",
14091
+ color: "danger"
14092
+ },
14093
+ {
14094
+ label: "Kerja",
14095
+ value: "work",
14096
+ color: "success"
14097
+ },
14098
+ {
14099
+ label: "Cuti",
14100
+ value: "leave",
14101
+ color: "warning"
14102
+ },
14103
+ {
14104
+ label: "Libur",
14105
+ value: "holiday",
14106
+ color: "info"
14107
+ },
14108
+ {
14109
+ label: "Pulang",
14110
+ value: "home",
14111
+ color: "info"
14112
+ }
14113
+ ]
14114
+ });
14084
14115
  const PriorityStatus = Choice.define({
14085
14116
  handle: "priorityStatus",
14086
14117
  name: "Priority Status",
@@ -17964,6 +17995,302 @@ const SituationTypeModel = Model.define({
17964
17995
  fluffy: {}
17965
17996
  }
17966
17997
  });
17998
+ var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof window !== "undefined" ? window : typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : {};
17999
+ function getDefaultExportFromCjs(x2) {
18000
+ return x2 && x2.__esModule && Object.prototype.hasOwnProperty.call(x2, "default") ? x2["default"] : x2;
18001
+ }
18002
+ var dayjs_min = { exports: {} };
18003
+ (function(module, exports) {
18004
+ !function(t2, e3) {
18005
+ module.exports = e3();
18006
+ }(commonjsGlobal, function() {
18007
+ var t2 = 1e3, e3 = 6e4, n = 36e5, r = "millisecond", i2 = "second", s3 = "minute", u2 = "hour", a3 = "day", o = "week", c2 = "month", f = "quarter", h4 = "year", d3 = "date", l = "Invalid Date", $ = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, y3 = /\[([^\]]+)]|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, M4 = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(t3) {
18008
+ var e4 = ["th", "st", "nd", "rd"], n2 = t3 % 100;
18009
+ return "[" + t3 + (e4[(n2 - 20) % 10] || e4[n2] || e4[0]) + "]";
18010
+ } }, m3 = function(t3, e4, n2) {
18011
+ var r2 = String(t3);
18012
+ return !r2 || r2.length >= e4 ? t3 : "" + Array(e4 + 1 - r2.length).join(n2) + t3;
18013
+ }, v = { s: m3, z: function(t3) {
18014
+ var e4 = -t3.utcOffset(), n2 = Math.abs(e4), r2 = Math.floor(n2 / 60), i3 = n2 % 60;
18015
+ return (e4 <= 0 ? "+" : "-") + m3(r2, 2, "0") + ":" + m3(i3, 2, "0");
18016
+ }, m: function t3(e4, n2) {
18017
+ if (e4.date() < n2.date())
18018
+ return -t3(n2, e4);
18019
+ var r2 = 12 * (n2.year() - e4.year()) + (n2.month() - e4.month()), i3 = e4.clone().add(r2, c2), s4 = n2 - i3 < 0, u3 = e4.clone().add(r2 + (s4 ? -1 : 1), c2);
18020
+ return +(-(r2 + (n2 - i3) / (s4 ? i3 - u3 : u3 - i3)) || 0);
18021
+ }, a: function(t3) {
18022
+ return t3 < 0 ? Math.ceil(t3) || 0 : Math.floor(t3);
18023
+ }, p: function(t3) {
18024
+ return { M: c2, y: h4, w: o, d: a3, D: d3, h: u2, m: s3, s: i2, ms: r, Q: f }[t3] || String(t3 || "").toLowerCase().replace(/s$/, "");
18025
+ }, u: function(t3) {
18026
+ return void 0 === t3;
18027
+ } }, g = "en", D3 = {};
18028
+ D3[g] = M4;
18029
+ var p = "$isDayjsObject", S4 = function(t3) {
18030
+ return t3 instanceof _ || !(!t3 || !t3[p]);
18031
+ }, w2 = function t3(e4, n2, r2) {
18032
+ var i3;
18033
+ if (!e4)
18034
+ return g;
18035
+ if ("string" == typeof e4) {
18036
+ var s4 = e4.toLowerCase();
18037
+ D3[s4] && (i3 = s4), n2 && (D3[s4] = n2, i3 = s4);
18038
+ var u3 = e4.split("-");
18039
+ if (!i3 && u3.length > 1)
18040
+ return t3(u3[0]);
18041
+ } else {
18042
+ var a4 = e4.name;
18043
+ D3[a4] = e4, i3 = a4;
18044
+ }
18045
+ return !r2 && i3 && (g = i3), i3 || !r2 && g;
18046
+ }, O2 = function(t3, e4) {
18047
+ if (S4(t3))
18048
+ return t3.clone();
18049
+ var n2 = "object" == typeof e4 ? e4 : {};
18050
+ return n2.date = t3, n2.args = arguments, new _(n2);
18051
+ }, b2 = v;
18052
+ b2.l = w2, b2.i = S4, b2.w = function(t3, e4) {
18053
+ return O2(t3, { locale: e4.$L, utc: e4.$u, x: e4.$x, $offset: e4.$offset });
18054
+ };
18055
+ var _ = function() {
18056
+ function M5(t3) {
18057
+ this.$L = w2(t3.locale, null, true), this.parse(t3), this.$x = this.$x || t3.x || {}, this[p] = true;
18058
+ }
18059
+ var m4 = M5.prototype;
18060
+ return m4.parse = function(t3) {
18061
+ this.$d = function(t4) {
18062
+ var e4 = t4.date, n2 = t4.utc;
18063
+ if (null === e4)
18064
+ return /* @__PURE__ */ new Date(NaN);
18065
+ if (b2.u(e4))
18066
+ return /* @__PURE__ */ new Date();
18067
+ if (e4 instanceof Date)
18068
+ return new Date(e4);
18069
+ if ("string" == typeof e4 && !/Z$/i.test(e4)) {
18070
+ var r2 = e4.match($);
18071
+ if (r2) {
18072
+ var i3 = r2[2] - 1 || 0, s4 = (r2[7] || "0").substring(0, 3);
18073
+ return n2 ? new Date(Date.UTC(r2[1], i3, r2[3] || 1, r2[4] || 0, r2[5] || 0, r2[6] || 0, s4)) : new Date(r2[1], i3, r2[3] || 1, r2[4] || 0, r2[5] || 0, r2[6] || 0, s4);
18074
+ }
18075
+ }
18076
+ return new Date(e4);
18077
+ }(t3), this.init();
18078
+ }, m4.init = function() {
18079
+ var t3 = this.$d;
18080
+ this.$y = t3.getFullYear(), this.$M = t3.getMonth(), this.$D = t3.getDate(), this.$W = t3.getDay(), this.$H = t3.getHours(), this.$m = t3.getMinutes(), this.$s = t3.getSeconds(), this.$ms = t3.getMilliseconds();
18081
+ }, m4.$utils = function() {
18082
+ return b2;
18083
+ }, m4.isValid = function() {
18084
+ return !(this.$d.toString() === l);
18085
+ }, m4.isSame = function(t3, e4) {
18086
+ var n2 = O2(t3);
18087
+ return this.startOf(e4) <= n2 && n2 <= this.endOf(e4);
18088
+ }, m4.isAfter = function(t3, e4) {
18089
+ return O2(t3) < this.startOf(e4);
18090
+ }, m4.isBefore = function(t3, e4) {
18091
+ return this.endOf(e4) < O2(t3);
18092
+ }, m4.$g = function(t3, e4, n2) {
18093
+ return b2.u(t3) ? this[e4] : this.set(n2, t3);
18094
+ }, m4.unix = function() {
18095
+ return Math.floor(this.valueOf() / 1e3);
18096
+ }, m4.valueOf = function() {
18097
+ return this.$d.getTime();
18098
+ }, m4.startOf = function(t3, e4) {
18099
+ var n2 = this, r2 = !!b2.u(e4) || e4, f2 = b2.p(t3), l2 = function(t4, e5) {
18100
+ var i3 = b2.w(n2.$u ? Date.UTC(n2.$y, e5, t4) : new Date(n2.$y, e5, t4), n2);
18101
+ return r2 ? i3 : i3.endOf(a3);
18102
+ }, $2 = function(t4, e5) {
18103
+ return b2.w(n2.toDate()[t4].apply(n2.toDate("s"), (r2 ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(e5)), n2);
18104
+ }, y4 = this.$W, M6 = this.$M, m5 = this.$D, v2 = "set" + (this.$u ? "UTC" : "");
18105
+ switch (f2) {
18106
+ case h4:
18107
+ return r2 ? l2(1, 0) : l2(31, 11);
18108
+ case c2:
18109
+ return r2 ? l2(1, M6) : l2(0, M6 + 1);
18110
+ case o:
18111
+ var g2 = this.$locale().weekStart || 0, D4 = (y4 < g2 ? y4 + 7 : y4) - g2;
18112
+ return l2(r2 ? m5 - D4 : m5 + (6 - D4), M6);
18113
+ case a3:
18114
+ case d3:
18115
+ return $2(v2 + "Hours", 0);
18116
+ case u2:
18117
+ return $2(v2 + "Minutes", 1);
18118
+ case s3:
18119
+ return $2(v2 + "Seconds", 2);
18120
+ case i2:
18121
+ return $2(v2 + "Milliseconds", 3);
18122
+ default:
18123
+ return this.clone();
18124
+ }
18125
+ }, m4.endOf = function(t3) {
18126
+ return this.startOf(t3, false);
18127
+ }, m4.$set = function(t3, e4) {
18128
+ var n2, o2 = b2.p(t3), f2 = "set" + (this.$u ? "UTC" : ""), l2 = (n2 = {}, n2[a3] = f2 + "Date", n2[d3] = f2 + "Date", n2[c2] = f2 + "Month", n2[h4] = f2 + "FullYear", n2[u2] = f2 + "Hours", n2[s3] = f2 + "Minutes", n2[i2] = f2 + "Seconds", n2[r] = f2 + "Milliseconds", n2)[o2], $2 = o2 === a3 ? this.$D + (e4 - this.$W) : e4;
18129
+ if (o2 === c2 || o2 === h4) {
18130
+ var y4 = this.clone().set(d3, 1);
18131
+ y4.$d[l2]($2), y4.init(), this.$d = y4.set(d3, Math.min(this.$D, y4.daysInMonth())).$d;
18132
+ } else
18133
+ l2 && this.$d[l2]($2);
18134
+ return this.init(), this;
18135
+ }, m4.set = function(t3, e4) {
18136
+ return this.clone().$set(t3, e4);
18137
+ }, m4.get = function(t3) {
18138
+ return this[b2.p(t3)]();
18139
+ }, m4.add = function(r2, f2) {
18140
+ var d4, l2 = this;
18141
+ r2 = Number(r2);
18142
+ var $2 = b2.p(f2), y4 = function(t3) {
18143
+ var e4 = O2(l2);
18144
+ return b2.w(e4.date(e4.date() + Math.round(t3 * r2)), l2);
18145
+ };
18146
+ if ($2 === c2)
18147
+ return this.set(c2, this.$M + r2);
18148
+ if ($2 === h4)
18149
+ return this.set(h4, this.$y + r2);
18150
+ if ($2 === a3)
18151
+ return y4(1);
18152
+ if ($2 === o)
18153
+ return y4(7);
18154
+ var M6 = (d4 = {}, d4[s3] = e3, d4[u2] = n, d4[i2] = t2, d4)[$2] || 1, m5 = this.$d.getTime() + r2 * M6;
18155
+ return b2.w(m5, this);
18156
+ }, m4.subtract = function(t3, e4) {
18157
+ return this.add(-1 * t3, e4);
18158
+ }, m4.format = function(t3) {
18159
+ var e4 = this, n2 = this.$locale();
18160
+ if (!this.isValid())
18161
+ return n2.invalidDate || l;
18162
+ var r2 = t3 || "YYYY-MM-DDTHH:mm:ssZ", i3 = b2.z(this), s4 = this.$H, u3 = this.$m, a4 = this.$M, o2 = n2.weekdays, c3 = n2.months, f2 = n2.meridiem, h5 = function(t4, n3, i4, s5) {
18163
+ return t4 && (t4[n3] || t4(e4, r2)) || i4[n3].slice(0, s5);
18164
+ }, d4 = function(t4) {
18165
+ return b2.s(s4 % 12 || 12, t4, "0");
18166
+ }, $2 = f2 || function(t4, e5, n3) {
18167
+ var r3 = t4 < 12 ? "AM" : "PM";
18168
+ return n3 ? r3.toLowerCase() : r3;
18169
+ };
18170
+ return r2.replace(y3, function(t4, r3) {
18171
+ return r3 || function(t5) {
18172
+ switch (t5) {
18173
+ case "YY":
18174
+ return String(e4.$y).slice(-2);
18175
+ case "YYYY":
18176
+ return b2.s(e4.$y, 4, "0");
18177
+ case "M":
18178
+ return a4 + 1;
18179
+ case "MM":
18180
+ return b2.s(a4 + 1, 2, "0");
18181
+ case "MMM":
18182
+ return h5(n2.monthsShort, a4, c3, 3);
18183
+ case "MMMM":
18184
+ return h5(c3, a4);
18185
+ case "D":
18186
+ return e4.$D;
18187
+ case "DD":
18188
+ return b2.s(e4.$D, 2, "0");
18189
+ case "d":
18190
+ return String(e4.$W);
18191
+ case "dd":
18192
+ return h5(n2.weekdaysMin, e4.$W, o2, 2);
18193
+ case "ddd":
18194
+ return h5(n2.weekdaysShort, e4.$W, o2, 3);
18195
+ case "dddd":
18196
+ return o2[e4.$W];
18197
+ case "H":
18198
+ return String(s4);
18199
+ case "HH":
18200
+ return b2.s(s4, 2, "0");
18201
+ case "h":
18202
+ return d4(1);
18203
+ case "hh":
18204
+ return d4(2);
18205
+ case "a":
18206
+ return $2(s4, u3, true);
18207
+ case "A":
18208
+ return $2(s4, u3, false);
18209
+ case "m":
18210
+ return String(u3);
18211
+ case "mm":
18212
+ return b2.s(u3, 2, "0");
18213
+ case "s":
18214
+ return String(e4.$s);
18215
+ case "ss":
18216
+ return b2.s(e4.$s, 2, "0");
18217
+ case "SSS":
18218
+ return b2.s(e4.$ms, 3, "0");
18219
+ case "Z":
18220
+ return i3;
18221
+ }
18222
+ return null;
18223
+ }(t4) || i3.replace(":", "");
18224
+ });
18225
+ }, m4.utcOffset = function() {
18226
+ return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
18227
+ }, m4.diff = function(r2, d4, l2) {
18228
+ var $2, y4 = this, M6 = b2.p(d4), m5 = O2(r2), v2 = (m5.utcOffset() - this.utcOffset()) * e3, g2 = this - m5, D4 = function() {
18229
+ return b2.m(y4, m5);
18230
+ };
18231
+ switch (M6) {
18232
+ case h4:
18233
+ $2 = D4() / 12;
18234
+ break;
18235
+ case c2:
18236
+ $2 = D4();
18237
+ break;
18238
+ case f:
18239
+ $2 = D4() / 3;
18240
+ break;
18241
+ case o:
18242
+ $2 = (g2 - v2) / 6048e5;
18243
+ break;
18244
+ case a3:
18245
+ $2 = (g2 - v2) / 864e5;
18246
+ break;
18247
+ case u2:
18248
+ $2 = g2 / n;
18249
+ break;
18250
+ case s3:
18251
+ $2 = g2 / e3;
18252
+ break;
18253
+ case i2:
18254
+ $2 = g2 / t2;
18255
+ break;
18256
+ default:
18257
+ $2 = g2;
18258
+ }
18259
+ return l2 ? $2 : b2.a($2);
18260
+ }, m4.daysInMonth = function() {
18261
+ return this.endOf(c2).$D;
18262
+ }, m4.$locale = function() {
18263
+ return D3[this.$L];
18264
+ }, m4.locale = function(t3, e4) {
18265
+ if (!t3)
18266
+ return this.$L;
18267
+ var n2 = this.clone(), r2 = w2(t3, e4, true);
18268
+ return r2 && (n2.$L = r2), n2;
18269
+ }, m4.clone = function() {
18270
+ return b2.w(this.$d, this);
18271
+ }, m4.toDate = function() {
18272
+ return new Date(this.valueOf());
18273
+ }, m4.toJSON = function() {
18274
+ return this.isValid() ? this.toISOString() : null;
18275
+ }, m4.toISOString = function() {
18276
+ return this.$d.toISOString();
18277
+ }, m4.toString = function() {
18278
+ return this.$d.toUTCString();
18279
+ }, M5;
18280
+ }(), k2 = _.prototype;
18281
+ return O2.prototype = k2, [["$ms", r], ["$s", i2], ["$m", s3], ["$H", u2], ["$W", a3], ["$M", c2], ["$y", h4], ["$D", d3]].forEach(function(t3) {
18282
+ k2[t3[1]] = function(e4) {
18283
+ return this.$g(e4, t3[0], t3[1]);
18284
+ };
18285
+ }), O2.extend = function(t3, e4) {
18286
+ return t3.$i || (t3(e4, _, O2), t3.$i = true), O2;
18287
+ }, O2.locale = w2, O2.isDayjs = S4, O2.unix = function(t3) {
18288
+ return O2(1e3 * t3);
18289
+ }, O2.en = D3[g], O2.Ls = D3, O2.p = {}, O2;
18290
+ });
18291
+ })(dayjs_min);
18292
+ var dayjs_minExports = dayjs_min.exports;
18293
+ const dayjs2 = /* @__PURE__ */ getDefaultExportFromCjs(dayjs_minExports);
17967
18294
  const StaffModel$1 = Model.define({
17968
18295
  name: "Staff",
17969
18296
  definition: "neu:personalia:staff",
@@ -18170,6 +18497,249 @@ const StaffModel$1 = Model.define({
18170
18497
  return roleIds;
18171
18498
  }
18172
18499
  }
18500
+ }),
18501
+ workStatus: Field.define({
18502
+ handle: "workStatus",
18503
+ name: "Status",
18504
+ type: "string",
18505
+ input: "select",
18506
+ options: {
18507
+ note: "Status dari karyawan.",
18508
+ default: "notActive",
18509
+ enums: StatusWork.values,
18510
+ choices: StatusWork.items,
18511
+ isVirtual: true,
18512
+ isPersisted: true
18513
+ },
18514
+ virtual: {
18515
+ dependency: {
18516
+ checkIns: {
18517
+ _id: 1,
18518
+ type: 1,
18519
+ checkInAt: 1
18520
+ },
18521
+ submitStaffAttendances: {
18522
+ _id: 1,
18523
+ type: 1,
18524
+ startedAt: 1,
18525
+ status: 1
18526
+ }
18527
+ },
18528
+ reduce(o) {
18529
+ var _a;
18530
+ if (!o.checkIns.length)
18531
+ return "off";
18532
+ const opts = { pattern: "yyyy-MM-dd" };
18533
+ const todayDate = DateUtil$1.formatTz((/* @__PURE__ */ new Date()).toISOString(), opts);
18534
+ const arrCheckIn = o.checkIns.filter(
18535
+ (field) => field.type == "in" || field.type == "checkpoint" || field.type == "checkin"
18536
+ );
18537
+ const arrCheckInReverse = arrCheckIn.reverse();
18538
+ const checkInAtReverse = arrCheckInReverse[0];
18539
+ const lastPresence = DateUtil$1.formatTz(
18540
+ checkInAtReverse == null ? void 0 : checkInAtReverse.checkInAt,
18541
+ opts
18542
+ );
18543
+ const arrCheckInHome = o.checkIns.filter(
18544
+ (field) => field.type == "home"
18545
+ );
18546
+ const arrCheckInHomeReverse = (_a = arrCheckInHome.reverse()[0]) == null ? void 0 : _a.checkInAt;
18547
+ const lastPresenceHome = DateUtil$1.formatTz(
18548
+ arrCheckInHomeReverse,
18549
+ opts
18550
+ );
18551
+ const arrAttendance = o.submitStaffAttendances.filter(
18552
+ (field) => field.type == "leave" && field.status == "approved"
18553
+ ).map((field) => DateUtil$1.formatTz(field.startedAt, opts));
18554
+ if (arrAttendance.includes(todayDate)) {
18555
+ return "leave";
18556
+ } else {
18557
+ if (todayDate == lastPresence) {
18558
+ if (todayDate == lastPresenceHome) {
18559
+ return "home";
18560
+ } else {
18561
+ return "work";
18562
+ }
18563
+ } else {
18564
+ return "off";
18565
+ }
18566
+ }
18567
+ }
18568
+ }
18569
+ }),
18570
+ workCome: Field.define({
18571
+ handle: "workCome",
18572
+ name: "Masuk",
18573
+ type: "date",
18574
+ input: "date2",
18575
+ display: "date",
18576
+ options: {
18577
+ note: "Presensi masuk hari ini.",
18578
+ isVirtual: true,
18579
+ isPersisted: true
18580
+ },
18581
+ virtual: {
18582
+ dependency: {
18583
+ checkIns: {
18584
+ _id: 1,
18585
+ type: 1,
18586
+ checkInAt: 1
18587
+ }
18588
+ },
18589
+ reduce(o) {
18590
+ var _a, _b;
18591
+ if (!o.checkIns.length)
18592
+ return null;
18593
+ const todayDate = dayjs2((/* @__PURE__ */ new Date()).toISOString()).hour(0).minute(0).second(0).millisecond(0).toISOString();
18594
+ const checkInsCome = (_a = o.checkIns) == null ? void 0 : _a.filter(
18595
+ (field) => field.type == "in" || field.type == "checkpoint" || field.type == "checkin"
18596
+ );
18597
+ const checkInsNotNull = checkInsCome == null ? void 0 : checkInsCome.filter(
18598
+ (field) => field.checkInAt != null
18599
+ );
18600
+ const checkInAtCome = checkInsNotNull == null ? void 0 : checkInsNotNull.filter(
18601
+ (field) => dayjs2(field == null ? void 0 : field.checkInAt).add(7, "hour").toISOString() > todayDate
18602
+ );
18603
+ console.log({ checkInAtCome });
18604
+ if (!checkInAtCome.length) {
18605
+ return null;
18606
+ } else {
18607
+ const resultCheckInCome = (_b = checkInAtCome[0]) == null ? void 0 : _b.checkInAt;
18608
+ return resultCheckInCome;
18609
+ }
18610
+ }
18611
+ }
18612
+ }),
18613
+ workHome: Field.define({
18614
+ handle: "workHome",
18615
+ name: "Pulang",
18616
+ type: "date",
18617
+ input: "date2",
18618
+ display: "date",
18619
+ options: {
18620
+ note: "Presensi pulang hari ini.",
18621
+ isVirtual: true,
18622
+ isPersisted: true
18623
+ },
18624
+ virtual: {
18625
+ dependency: {
18626
+ checkIns: {
18627
+ _id: 1,
18628
+ type: 1,
18629
+ checkInAt: 1
18630
+ }
18631
+ },
18632
+ reduce(o) {
18633
+ var _a;
18634
+ if (!o.checkIns.length)
18635
+ return null;
18636
+ const lateTodayDate = dayjs2((/* @__PURE__ */ new Date()).toISOString()).hour(23).minute(0).second(0).millisecond(0).toISOString();
18637
+ const checkInsHome = o.checkIns.filter(
18638
+ (field) => field.type == "home"
18639
+ );
18640
+ const checkInsHomeNotNull = checkInsHome == null ? void 0 : checkInsHome.filter(
18641
+ (field) => field.checkInAt != null
18642
+ );
18643
+ const checkInAtHome = checkInsHomeNotNull.filter(
18644
+ (field) => dayjs2(field == null ? void 0 : field.checkInAt).add(7, "hour").toISOString() < lateTodayDate
18645
+ ).reverse();
18646
+ if (!checkInAtHome.length) {
18647
+ return null;
18648
+ } else {
18649
+ const resultCheckInHome = (_a = checkInAtHome[0]) == null ? void 0 : _a.checkInAt;
18650
+ const todayDateOnly = dayjs2(lateTodayDate).format("YYYY-MM-DD");
18651
+ const homeDateOnly = dayjs2(resultCheckInHome).format("YYYY-MM-DD");
18652
+ if (todayDateOnly == homeDateOnly) {
18653
+ return resultCheckInHome;
18654
+ } else {
18655
+ return null;
18656
+ }
18657
+ }
18658
+ }
18659
+ }
18660
+ }),
18661
+ workNote: Field.define({
18662
+ handle: "workNote",
18663
+ name: "Keterangan",
18664
+ type: "string",
18665
+ input: "short-text",
18666
+ options: {
18667
+ note: "Keterangan presensi hari ini.",
18668
+ isVirtual: true,
18669
+ isPersisted: true
18670
+ },
18671
+ virtual: {
18672
+ dependency: {
18673
+ workStatus: 1,
18674
+ checkIns: {
18675
+ _id: 1,
18676
+ type: 1,
18677
+ checkInAt: 1
18678
+ }
18679
+ },
18680
+ reduce(o) {
18681
+ var _a, _b, _c, _d, _e, _f;
18682
+ if (!o.checkIns.length)
18683
+ return null;
18684
+ const todayDate = dayjs2((/* @__PURE__ */ new Date()).toISOString()).hour(0).minute(0).second(0).millisecond(0).toISOString();
18685
+ const checkInsCome = (_a = o.checkIns) == null ? void 0 : _a.filter(
18686
+ (field) => field.type == "in" || field.type == "checkpoint" || field.type == "checkin"
18687
+ );
18688
+ const checkInsComeNotNull = checkInsCome == null ? void 0 : checkInsCome.filter(
18689
+ (field) => field.checkInAt != null
18690
+ );
18691
+ const checkInAtCome = checkInsComeNotNull == null ? void 0 : checkInsComeNotNull.filter(
18692
+ (field) => dayjs2(field == null ? void 0 : field.checkInAt).add(7, "hour").toISOString() > todayDate
18693
+ );
18694
+ const resultCheckInCome = checkInAtCome[0];
18695
+ const lateTodayDate = dayjs2((/* @__PURE__ */ new Date()).toISOString()).hour(23).minute(0).second(0).millisecond(0).toISOString();
18696
+ const checkInsHome = (_b = o.checkIns) == null ? void 0 : _b.filter(
18697
+ (field) => field.type == "home"
18698
+ );
18699
+ const checkInsHomeNotNull = checkInsHome == null ? void 0 : checkInsHome.filter(
18700
+ (field) => field.checkInAt != null
18701
+ );
18702
+ const checkInAtHome = (_c = checkInsHomeNotNull == null ? void 0 : checkInsHomeNotNull.filter(
18703
+ (field) => dayjs2(field == null ? void 0 : field.checkInAt).add(7, "hour").toISOString() < lateTodayDate
18704
+ )) == null ? void 0 : _c.reverse();
18705
+ const resultCheckInHome = checkInAtHome[0];
18706
+ const opts = { pattern: "yyyy-MM-dd" };
18707
+ const todayDateOnly = DateUtil$1.formatTz(
18708
+ (/* @__PURE__ */ new Date()).toISOString(),
18709
+ opts
18710
+ );
18711
+ const arrCheckInHome = (_d = o.checkIns) == null ? void 0 : _d.filter(
18712
+ (field) => field.type == "home"
18713
+ );
18714
+ const arrCheckInHomeReverse = (_e = arrCheckInHome == null ? void 0 : arrCheckInHome.reverse()[0]) == null ? void 0 : _e.checkInAt;
18715
+ const lastPresenceHome = DateUtil$1.formatTz(
18716
+ arrCheckInHomeReverse,
18717
+ opts
18718
+ );
18719
+ if (o.workStatus == "leave") {
18720
+ return "Cuti";
18721
+ } else if (o.workStatus == "off") {
18722
+ return "Belum Masuk";
18723
+ } else {
18724
+ if (todayDateOnly == lastPresenceHome) {
18725
+ const workMinutes = ((_f = DateUtil$1) == null ? void 0 : _f.diff(
18726
+ resultCheckInCome == null ? void 0 : resultCheckInCome.checkInAt,
18727
+ resultCheckInHome == null ? void 0 : resultCheckInHome.checkInAt,
18728
+ "minutes"
18729
+ )) || 0;
18730
+ const hours = Math.floor(workMinutes / 60);
18731
+ const minutes = workMinutes % 60;
18732
+ if (workMinutes < 540) {
18733
+ return `Jam kerja tidak memenuhi waktu minimal: ${hours} Jam ${minutes} minutes`;
18734
+ } else {
18735
+ return `Tepat Waktu: ${hours - 1} Jam ${minutes} minutes`;
18736
+ }
18737
+ } else {
18738
+ return "Sedang Bekerja";
18739
+ }
18740
+ }
18741
+ }
18742
+ }
18173
18743
  })
18174
18744
  },
18175
18745
  fragments: {
@@ -18208,7 +18778,11 @@ const StaffModel$1 = Model.define({
18208
18778
  display: 1,
18209
18779
  flag: 1,
18210
18780
  name: 1
18211
- }
18781
+ },
18782
+ workStatus: 1,
18783
+ workCome: 1,
18784
+ workHome: 1,
18785
+ workNote: 1
18212
18786
  },
18213
18787
  detail: {
18214
18788
  id: 1,
@@ -18249,7 +18823,11 @@ const StaffModel$1 = Model.define({
18249
18823
  branchId: 1,
18250
18824
  branchIds: 1,
18251
18825
  userId: 1,
18252
- virtualRoleIds: 1
18826
+ virtualRoleIds: 1,
18827
+ workStatus: 1,
18828
+ workCome: 1,
18829
+ workHome: 1,
18830
+ workNote: 1
18253
18831
  },
18254
18832
  fluffy: {}
18255
18833
  }
@@ -25978,6 +26556,7 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
25978
26556
  staffId: (_a2 = staff.value) == null ? void 0 : _a2.id
25979
26557
  });
25980
26558
  await syncOne();
26559
+ window.location.href = `/pengajuan/staff-submission?peek=neu:personalia:submission:${id.value}:single-staff-view:m`;
25981
26560
  };
25982
26561
  return (_ctx, _cache) => {
25983
26562
  return openBlock(), createBlock(unref(NeonSingle), { class: "neu-submission-single" }, {
@@ -26221,7 +26800,7 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
26221
26800
  };
26222
26801
  }
26223
26802
  });
26224
- const SubmissionStaff = /* @__PURE__ */ _export_sfc$1(_sfc_main$g, [["__scopeId", "data-v-e39fa184"]]);
26803
+ const SubmissionStaff = /* @__PURE__ */ _export_sfc$1(_sfc_main$g, [["__scopeId", "data-v-d0c7c05c"]]);
26225
26804
  const _sfc_main$f = /* @__PURE__ */ defineComponent({
26226
26805
  __name: "SubmissionFollowUp",
26227
26806
  setup(__props) {
@@ -26543,14 +27122,17 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
26543
27122
  const syncResolved = async () => {
26544
27123
  await executeOne("resolvedSubmission", { submissionId: id.value });
26545
27124
  await syncOne();
27125
+ window.location.href = `/pengajuan/audit-submission?peek=neu:personalia:submission:${id.value}:single-audit-view:m`;
26546
27126
  };
26547
27127
  const syncDiscontinued = async () => {
26548
27128
  await executeOne("discontinuedSubmission", { submissionId: id.value });
26549
27129
  await syncOne();
27130
+ window.location.href = `/pengajuan/audit-submission?peek=neu:personalia:submission:${id.value}:single-audit-view:m`;
26550
27131
  };
26551
27132
  const syncMonitored = async () => {
26552
27133
  await executeOne("monitoredSubmission", { submissionId: id.value });
26553
27134
  await syncOne();
27135
+ window.location.href = `/pengajuan/audit-submission?peek=neu:personalia:submission:${id.value}:single-audit-view:m`;
26554
27136
  };
26555
27137
  const syncProcessed = async () => {
26556
27138
  var _a2;
@@ -26559,6 +27141,7 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
26559
27141
  staffId: (_a2 = staff.value) == null ? void 0 : _a2.id
26560
27142
  });
26561
27143
  await syncOne();
27144
+ window.location.href = `/pengajuan/audit-submission?peek=neu:personalia:submission:${id.value}:single-audit-view:m`;
26562
27145
  };
26563
27146
  const syncLowered = async () => {
26564
27147
  var _a2;
@@ -26567,6 +27150,7 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
26567
27150
  staffId: (_a2 = staff.value) == null ? void 0 : _a2.id
26568
27151
  });
26569
27152
  await syncOne();
27153
+ window.location.href = `/pengajuan/audit-submission?peek=neu:personalia:submission:${id.value}:single-audit-view:m`;
26570
27154
  };
26571
27155
  return (_ctx, _cache) => {
26572
27156
  return openBlock(), createBlock(unref(NeonSingle), { class: "neu-submission-single" }, {
@@ -26933,7 +27517,7 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
26933
27517
  };
26934
27518
  }
26935
27519
  });
26936
- const SubmissionAudit = /* @__PURE__ */ _export_sfc$1(_sfc_main$e, [["__scopeId", "data-v-3ef7852b"]]);
27520
+ const SubmissionAudit = /* @__PURE__ */ _export_sfc$1(_sfc_main$e, [["__scopeId", "data-v-d1ec1298"]]);
26937
27521
  const _hoisted_1$3 = { class: "flex flex-wrap" };
26938
27522
  const _hoisted_2$3 = { class: "mt-2" };
26939
27523
  const _hoisted_3$2 = { class: "mt-2" };
@@ -27046,6 +27630,7 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
27046
27630
  staffId: (_a2 = staff.value) == null ? void 0 : _a2.id
27047
27631
  });
27048
27632
  await syncOne();
27633
+ window.location.href = `/pengajuan/decision-submission?peek=neu:personalia:submission:${id.value}:single-decision-view:m`;
27049
27634
  };
27050
27635
  const syncApproved = async () => {
27051
27636
  var _a2;
@@ -27054,6 +27639,7 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
27054
27639
  staffId: (_a2 = staff.value) == null ? void 0 : _a2.id
27055
27640
  });
27056
27641
  await syncOne();
27642
+ window.location.href = `/pengajuan/decision-submission?peek=neu:personalia:submission:${id.value}:single-decision-view:m`;
27057
27643
  };
27058
27644
  return (_ctx, _cache) => {
27059
27645
  return openBlock(), createBlock(unref(NeonSingle), { class: "neu-submission-single" }, {
@@ -27368,7 +27954,7 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
27368
27954
  };
27369
27955
  }
27370
27956
  });
27371
- const SubmissionDecision = /* @__PURE__ */ _export_sfc$1(_sfc_main$d, [["__scopeId", "data-v-b87a8600"]]);
27957
+ const SubmissionDecision = /* @__PURE__ */ _export_sfc$1(_sfc_main$d, [["__scopeId", "data-v-6f8e3ae5"]]);
27372
27958
  const _hoisted_1$2 = { class: "flex flex-wrap" };
27373
27959
  const _hoisted_2$2 = { class: "mt-2" };
27374
27960
  const _hoisted_3$1 = { class: "mt-2" };