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