@neutron.co.id/operasional-interfaces 1.17.11 → 1.17.12

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.
@@ -0,0 +1,3 @@
1
+ export declare function apiUrl(): {
2
+ action: string;
3
+ };
@@ -0,0 +1,40 @@
1
+ export function apiUrl() {
2
+ const url = `${window.location.protocol}//${window.location.host}`;
3
+ const cleanUrl = url.replace(/^https?:\/\//, "");
4
+ const parts = cleanUrl.split(".");
5
+ if (parts.length < 3) {
6
+ return {
7
+ action: "http://localhost:7021"
8
+ };
9
+ }
10
+ const subDomainWithDev = parts[1];
11
+ const subDomain = parts[0];
12
+ let action;
13
+ if (subDomain === "dev") {
14
+ action = switchUrl(subDomainWithDev, true);
15
+ } else {
16
+ action = switchUrl(subDomain, false);
17
+ }
18
+ return { action };
19
+ }
20
+ function switchUrl(subdomain, isDev) {
21
+ let action;
22
+ switch (subdomain) {
23
+ case "aplikasi":
24
+ action = "api.office.neutron.neon.id";
25
+ break;
26
+ case "office":
27
+ action = "api.office.ion.neutron.neon.id";
28
+ break;
29
+ case "holding":
30
+ action = "api.office.holding.neutron.neon.id";
31
+ break;
32
+ default:
33
+ action = "127.0.0.1:7020";
34
+ }
35
+ if (isDev) {
36
+ return `https://dev.${action}`;
37
+ } else {
38
+ return `https://${action}`;
39
+ }
40
+ }
@@ -0,0 +1 @@
1
+ export * from './apiUrl';
@@ -0,0 +1 @@
1
+ export * from "./apiUrl.mjs";
@@ -2,3 +2,4 @@ export * from './operasional';
2
2
  export * from './import';
3
3
  export * from './office';
4
4
  export * from './period';
5
+ export * from './api';
@@ -2,3 +2,4 @@ export * from "./operasional/index.mjs";
2
2
  export * from "./import/index.mjs";
3
3
  export * from "./office/index.mjs";
4
4
  export * from "./period/index.mjs";
5
+ export * from "./api/index.mjs";
@@ -18,7 +18,7 @@ import {
18
18
  type Schema,
19
19
  } from '@neutron.co.id/personalia-models'
20
20
  import { DateUtil } from '../../../common/utils/util.date'
21
- import { NeonTime, useOperasional } from '../../../common'
21
+ import { NeonTime, useOperasional, apiUrl } from '../../../common'
22
22
  import { AttendanceNoteTab } from './sections'
23
23
  import { useClientHandle } from '@urql/vue'
24
24
  import { ofetch } from 'ofetch'
@@ -190,13 +190,9 @@ async function generate() {
190
190
 
191
191
  const appStore = useAppStore()
192
192
  const officeAppUrl = computed(() => {
193
- if (appStore.appEnv === 'dev')
194
- return 'https://dev.api.office.operasional.neutron.neon.id'
193
+ const url = apiUrl()
195
194
 
196
- if (appStore.appEnv === 'prod')
197
- return 'https://api.office.operasional.neutron.neon.id'
198
-
199
- return 'http://127.0.0.1:7020'
195
+ return url.action
200
196
  })
201
197
 
202
198
  const type = ref('')
@@ -10,7 +10,7 @@ import type {
10
10
  Schema,
11
11
  } from '@neutron.co.id/personalia-models'
12
12
  import { DateUtil } from '../../..//common/utils/util.date'
13
- import { useOperasional, NeonTime } from '../../../common'
13
+ import { useOperasional, NeonTime, apiUrl } from '../../../common'
14
14
  import { ofetch } from 'ofetch'
15
15
 
16
16
  const {
@@ -112,13 +112,8 @@ const rejectedAbsensi = async () => {
112
112
 
113
113
  const appStore = useAppStore()
114
114
  const officeAppUrl = computed(() => {
115
- if (appStore.appEnv === 'dev')
116
- return 'https://dev.api.office.operasional.neutron.neon.id'
117
-
118
- if (appStore.appEnv === 'prod')
119
- return 'https://api.office.operasional.neutron.neon.id'
120
-
121
- return 'http://127.0.0.1:7020'
115
+ const url = apiUrl()
116
+ return url.action
122
117
  })
123
118
 
124
119
  const type = ref('')
@@ -19,7 +19,7 @@ import {
19
19
  type Schema,
20
20
  } from '@neutron.co.id/personalia-models'
21
21
  import { DateUtil } from '../../../common/utils/util.date'
22
- import { NeonTime, useOperasional } from '../../../common'
22
+ import { NeonTime, useOperasional, apiUrl } from '../../../common'
23
23
  import { AttendanceNoteTab } from './sections'
24
24
  import { useClientHandle } from '@urql/vue'
25
25
  import { ofetch } from 'ofetch'
@@ -42,14 +42,11 @@ const {
42
42
  } = useSingle<Schema.Attendance, TPersonaliaAttendanceModel>()
43
43
 
44
44
  const appStore = useAppStore()
45
- const officeAppUrl = computed(() => {
46
- if (appStore.appEnv === 'dev')
47
- return 'https://dev.api.office.operasional.neutron.neon.id'
48
45
 
49
- if (appStore.appEnv === 'prod')
50
- return 'https://api.office.operasional.neutron.neon.id'
46
+ const officeAppUrl = computed(() => {
47
+ const url = apiUrl()
51
48
 
52
- return 'http://127.0.0.1:7020'
49
+ return url.action
53
50
  })
54
51
 
55
52
  const key = ref(0)
@@ -262,15 +259,18 @@ watch(
262
259
  },
263
260
  })
264
261
 
262
+ if (leaveStaff.code !== 200) {
263
+ isLeaveStaff.value = false
264
+ return
265
+ }
266
+
265
267
  quota.value = leaveStaff.data.quota
266
268
  maxDuration.value = leaveStaff.data.quota
267
269
 
268
- if (leaveStaff.code === 200 && leaveStaff.data.quota > 0) {
270
+ if (leaveStaff?.code === 200 && leaveStaff?.data?.quota > 0) {
269
271
  isLeaveStaff.value = true
270
- // showDurationAlert.value = false
271
272
  } else {
272
273
  isLeaveStaff.value = false
273
- // showDurationAlert.value = true
274
274
  }
275
275
  }
276
276
  },
@@ -11,7 +11,7 @@ import {
11
11
  type Schema,
12
12
  } from '@neutron.co.id/personalia-models'
13
13
  import { DateUtil } from '../../../common/utils'
14
- import { NeonTime, useOperasional } from '../../../common'
14
+ import { NeonTime, useOperasional, apiUrl } from '../../../common'
15
15
  import { useClientHandle } from '@urql/vue'
16
16
  import { ofetch } from 'ofetch'
17
17
 
@@ -157,13 +157,8 @@ async function generateAttendance() {
157
157
 
158
158
  const appStore = useAppStore()
159
159
  const officeAppUrl = computed(() => {
160
- if (appStore.appEnv === 'dev')
161
- return 'https://dev.api.office.operasional.neutron.neon.id'
162
-
163
- if (appStore.appEnv === 'prod')
164
- return 'https://api.office.operasional.neutron.neon.id'
165
-
166
- return 'http://127.0.0.1:7020'
160
+ const url = apiUrl()
161
+ return url.action
167
162
  })
168
163
 
169
164
  const type = ref('')
@@ -0,0 +1,3 @@
1
+ export declare function apiUrl(): {
2
+ action: string;
3
+ };
@@ -0,0 +1 @@
1
+ export * from './apiUrl';
@@ -2,3 +2,4 @@ export * from './operasional';
2
2
  export * from './import';
3
3
  export * from './office';
4
4
  export * from './period';
5
+ export * from './api';
@@ -12960,6 +12960,46 @@ function usePeriod() {
12960
12960
  endedAt
12961
12961
  };
12962
12962
  }
12963
+ function apiUrl() {
12964
+ const url = `${window.location.protocol}//${window.location.host}`;
12965
+ const cleanUrl = url.replace(/^https?:\/\//, "");
12966
+ const parts = cleanUrl.split(".");
12967
+ if (parts.length < 3) {
12968
+ return {
12969
+ action: "http://localhost:7021"
12970
+ };
12971
+ }
12972
+ const subDomainWithDev = parts[1];
12973
+ const subDomain = parts[0];
12974
+ let action;
12975
+ if (subDomain === "dev") {
12976
+ action = switchUrl(subDomainWithDev, true);
12977
+ } else {
12978
+ action = switchUrl(subDomain, false);
12979
+ }
12980
+ return { action };
12981
+ }
12982
+ function switchUrl(subdomain, isDev) {
12983
+ let action;
12984
+ switch (subdomain) {
12985
+ case "aplikasi":
12986
+ action = "api.office.neutron.neon.id";
12987
+ break;
12988
+ case "office":
12989
+ action = "api.office.ion.neutron.neon.id";
12990
+ break;
12991
+ case "holding":
12992
+ action = "api.office.holding.neutron.neon.id";
12993
+ break;
12994
+ default:
12995
+ action = "127.0.0.1:7020";
12996
+ }
12997
+ if (isDev) {
12998
+ return `https://dev.${action}`;
12999
+ } else {
13000
+ return `https://${action}`;
13001
+ }
13002
+ }
12963
13003
  const _hoisted_1$z = {
12964
13004
  key: 0,
12965
13005
  class: "office-single-sync"
@@ -13405,13 +13445,10 @@ const _sfc_main$1m = /* @__PURE__ */ vue.defineComponent({
13405
13445
  await executeOne("rejectedAttendance", { attendanceId: id.value });
13406
13446
  await syncOne();
13407
13447
  };
13408
- const appStore = context.useAppStore();
13448
+ context.useAppStore();
13409
13449
  const officeAppUrl = vue.computed(() => {
13410
- if (appStore.appEnv === "dev")
13411
- return "https://dev.api.office.operasional.neutron.neon.id";
13412
- if (appStore.appEnv === "prod")
13413
- return "https://api.office.operasional.neutron.neon.id";
13414
- return "http://127.0.0.1:7020";
13450
+ const url = apiUrl();
13451
+ return url.action;
13415
13452
  });
13416
13453
  const type = vue.ref("");
13417
13454
  const showLeaveQuota = vue.ref(true);
@@ -13812,7 +13849,7 @@ const _sfc_main$1m = /* @__PURE__ */ vue.defineComponent({
13812
13849
  };
13813
13850
  }
13814
13851
  });
13815
- const AttendanceManager = /* @__PURE__ */ _export_sfc$1(_sfc_main$1m, [["__scopeId", "data-v-d5b06d78"]]);
13852
+ const AttendanceManager = /* @__PURE__ */ _export_sfc$1(_sfc_main$1m, [["__scopeId", "data-v-c82c031c"]]);
13816
13853
  const _hoisted_1$u = {
13817
13854
  key: 3,
13818
13855
  class: "flex flex-wrap"
@@ -13854,13 +13891,10 @@ const _sfc_main$1l = /* @__PURE__ */ vue.defineComponent({
13854
13891
  syncOne,
13855
13892
  executeOne
13856
13893
  } = context.useSingle();
13857
- const appStore = context.useAppStore();
13894
+ context.useAppStore();
13858
13895
  const officeAppUrl = vue.computed(() => {
13859
- if (appStore.appEnv === "dev")
13860
- return "https://dev.api.office.operasional.neutron.neon.id";
13861
- if (appStore.appEnv === "prod")
13862
- return "https://api.office.operasional.neutron.neon.id";
13863
- return "http://127.0.0.1:7020";
13896
+ const url = apiUrl();
13897
+ return url.action;
13864
13898
  });
13865
13899
  const key = vue.ref(0);
13866
13900
  const responseState = vue.ref();
@@ -14015,6 +14049,7 @@ const _sfc_main$1l = /* @__PURE__ */ vue.defineComponent({
14015
14049
  vue.watch(
14016
14050
  () => [values.value.startedAt, values.value.endedAt],
14017
14051
  async (newType) => {
14052
+ var _a2;
14018
14053
  if (values.value.startedAt && values.value.endedAt) {
14019
14054
  const leaveStaff = await ofetch(`${officeAppUrl.value}/getLeaveQuota`, {
14020
14055
  method: "POST",
@@ -14028,9 +14063,13 @@ const _sfc_main$1l = /* @__PURE__ */ vue.defineComponent({
14028
14063
  endedAt: values.value.endedAt
14029
14064
  }
14030
14065
  });
14066
+ if (leaveStaff.code !== 200) {
14067
+ isLeaveStaff.value = false;
14068
+ return;
14069
+ }
14031
14070
  quota.value = leaveStaff.data.quota;
14032
14071
  maxDuration.value = leaveStaff.data.quota;
14033
- if (leaveStaff.code === 200 && leaveStaff.data.quota > 0) {
14072
+ if ((leaveStaff == null ? void 0 : leaveStaff.code) === 200 && ((_a2 = leaveStaff == null ? void 0 : leaveStaff.data) == null ? void 0 : _a2.quota) > 0) {
14034
14073
  isLeaveStaff.value = true;
14035
14074
  } else {
14036
14075
  isLeaveStaff.value = false;
@@ -14490,7 +14529,7 @@ const _sfc_main$1l = /* @__PURE__ */ vue.defineComponent({
14490
14529
  };
14491
14530
  }
14492
14531
  });
14493
- const AttendanceStaff = /* @__PURE__ */ _export_sfc$1(_sfc_main$1l, [["__scopeId", "data-v-d7fac2c9"]]);
14532
+ const AttendanceStaff = /* @__PURE__ */ _export_sfc$1(_sfc_main$1l, [["__scopeId", "data-v-da17c45a"]]);
14494
14533
  const _hoisted_1$t = { class: "flex flex-wrap" };
14495
14534
  const _hoisted_2$k = { class: "mt-2" };
14496
14535
  const _hoisted_3$c = { class: "mt-2" };
@@ -14620,13 +14659,10 @@ const _sfc_main$1k = /* @__PURE__ */ vue.defineComponent({
14620
14659
  const wrapper = (_b = responseGenerateAttendance.data) == null ? void 0 : _b.executeAttendance;
14621
14660
  responseState.value = (_c = wrapper == null ? void 0 : wrapper.info) == null ? void 0 : _c.state;
14622
14661
  }
14623
- const appStore = context.useAppStore();
14662
+ context.useAppStore();
14624
14663
  const officeAppUrl = vue.computed(() => {
14625
- if (appStore.appEnv === "dev")
14626
- return "https://dev.api.office.operasional.neutron.neon.id";
14627
- if (appStore.appEnv === "prod")
14628
- return "https://api.office.operasional.neutron.neon.id";
14629
- return "http://127.0.0.1:7020";
14664
+ const url = apiUrl();
14665
+ return url.action;
14630
14666
  });
14631
14667
  const type = vue.ref("");
14632
14668
  const showLeaveQuota = vue.ref(true);
@@ -15121,7 +15157,7 @@ const _sfc_main$1k = /* @__PURE__ */ vue.defineComponent({
15121
15157
  };
15122
15158
  }
15123
15159
  });
15124
- const AttendanceSupervisor = /* @__PURE__ */ _export_sfc$1(_sfc_main$1k, [["__scopeId", "data-v-76c1713b"]]);
15160
+ const AttendanceSupervisor = /* @__PURE__ */ _export_sfc$1(_sfc_main$1k, [["__scopeId", "data-v-612533ad"]]);
15125
15161
  const _sfc_main$1j = /* @__PURE__ */ vue.defineComponent({
15126
15162
  __name: "AttendanceDelegate",
15127
15163
  setup(__props) {
@@ -15190,13 +15226,10 @@ const _sfc_main$1j = /* @__PURE__ */ vue.defineComponent({
15190
15226
  };
15191
15227
  });
15192
15228
  vue$1.useClientHandle();
15193
- const appStore = context.useAppStore();
15229
+ context.useAppStore();
15194
15230
  const officeAppUrl = vue.computed(() => {
15195
- if (appStore.appEnv === "dev")
15196
- return "https://dev.api.office.operasional.neutron.neon.id";
15197
- if (appStore.appEnv === "prod")
15198
- return "https://api.office.operasional.neutron.neon.id";
15199
- return "http://127.0.0.1:7020";
15231
+ const url = apiUrl();
15232
+ return url.action;
15200
15233
  });
15201
15234
  const type = vue.ref("");
15202
15235
  const showLeaveQuota = vue.ref(true);
@@ -15357,7 +15390,7 @@ const _sfc_main$1j = /* @__PURE__ */ vue.defineComponent({
15357
15390
  };
15358
15391
  }
15359
15392
  });
15360
- const AttendanceDelegate = /* @__PURE__ */ _export_sfc$1(_sfc_main$1j, [["__scopeId", "data-v-2dee8adc"]]);
15393
+ const AttendanceDelegate = /* @__PURE__ */ _export_sfc$1(_sfc_main$1j, [["__scopeId", "data-v-bedf6444"]]);
15361
15394
  const _sfc_main$1i = /* @__PURE__ */ vue.defineComponent({
15362
15395
  ...{ name: "AttendanceTypeCollection" },
15363
15396
  __name: "AttendanceTypeCollection",
@@ -27504,6 +27537,7 @@ const all = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty(
27504
27537
  TaskSingle: _sfc_main$l,
27505
27538
  TaskWork: _sfc_main$n,
27506
27539
  TaskWorkButton: _sfc_main$k,
27540
+ apiUrl,
27507
27541
  bus,
27508
27542
  useAttendanceStore,
27509
27543
  useImportShift,
@@ -12941,6 +12941,46 @@ function usePeriod() {
12941
12941
  endedAt
12942
12942
  };
12943
12943
  }
12944
+ function apiUrl() {
12945
+ const url = `${window.location.protocol}//${window.location.host}`;
12946
+ const cleanUrl = url.replace(/^https?:\/\//, "");
12947
+ const parts = cleanUrl.split(".");
12948
+ if (parts.length < 3) {
12949
+ return {
12950
+ action: "http://localhost:7021"
12951
+ };
12952
+ }
12953
+ const subDomainWithDev = parts[1];
12954
+ const subDomain = parts[0];
12955
+ let action;
12956
+ if (subDomain === "dev") {
12957
+ action = switchUrl(subDomainWithDev, true);
12958
+ } else {
12959
+ action = switchUrl(subDomain, false);
12960
+ }
12961
+ return { action };
12962
+ }
12963
+ function switchUrl(subdomain, isDev) {
12964
+ let action;
12965
+ switch (subdomain) {
12966
+ case "aplikasi":
12967
+ action = "api.office.neutron.neon.id";
12968
+ break;
12969
+ case "office":
12970
+ action = "api.office.ion.neutron.neon.id";
12971
+ break;
12972
+ case "holding":
12973
+ action = "api.office.holding.neutron.neon.id";
12974
+ break;
12975
+ default:
12976
+ action = "127.0.0.1:7020";
12977
+ }
12978
+ if (isDev) {
12979
+ return `https://dev.${action}`;
12980
+ } else {
12981
+ return `https://${action}`;
12982
+ }
12983
+ }
12944
12984
  const _hoisted_1$z = {
12945
12985
  key: 0,
12946
12986
  class: "office-single-sync"
@@ -13386,13 +13426,10 @@ const _sfc_main$1m = /* @__PURE__ */ defineComponent({
13386
13426
  await executeOne("rejectedAttendance", { attendanceId: id.value });
13387
13427
  await syncOne();
13388
13428
  };
13389
- const appStore = useAppStore();
13429
+ useAppStore();
13390
13430
  const officeAppUrl = computed(() => {
13391
- if (appStore.appEnv === "dev")
13392
- return "https://dev.api.office.operasional.neutron.neon.id";
13393
- if (appStore.appEnv === "prod")
13394
- return "https://api.office.operasional.neutron.neon.id";
13395
- return "http://127.0.0.1:7020";
13431
+ const url = apiUrl();
13432
+ return url.action;
13396
13433
  });
13397
13434
  const type = ref("");
13398
13435
  const showLeaveQuota = ref(true);
@@ -13793,7 +13830,7 @@ const _sfc_main$1m = /* @__PURE__ */ defineComponent({
13793
13830
  };
13794
13831
  }
13795
13832
  });
13796
- const AttendanceManager = /* @__PURE__ */ _export_sfc$1(_sfc_main$1m, [["__scopeId", "data-v-d5b06d78"]]);
13833
+ const AttendanceManager = /* @__PURE__ */ _export_sfc$1(_sfc_main$1m, [["__scopeId", "data-v-c82c031c"]]);
13797
13834
  const _hoisted_1$u = {
13798
13835
  key: 3,
13799
13836
  class: "flex flex-wrap"
@@ -13835,13 +13872,10 @@ const _sfc_main$1l = /* @__PURE__ */ defineComponent({
13835
13872
  syncOne,
13836
13873
  executeOne
13837
13874
  } = useSingle();
13838
- const appStore = useAppStore();
13875
+ useAppStore();
13839
13876
  const officeAppUrl = computed(() => {
13840
- if (appStore.appEnv === "dev")
13841
- return "https://dev.api.office.operasional.neutron.neon.id";
13842
- if (appStore.appEnv === "prod")
13843
- return "https://api.office.operasional.neutron.neon.id";
13844
- return "http://127.0.0.1:7020";
13877
+ const url = apiUrl();
13878
+ return url.action;
13845
13879
  });
13846
13880
  const key = ref(0);
13847
13881
  const responseState = ref();
@@ -13996,6 +14030,7 @@ const _sfc_main$1l = /* @__PURE__ */ defineComponent({
13996
14030
  watch(
13997
14031
  () => [values.value.startedAt, values.value.endedAt],
13998
14032
  async (newType) => {
14033
+ var _a2;
13999
14034
  if (values.value.startedAt && values.value.endedAt) {
14000
14035
  const leaveStaff = await ofetch(`${officeAppUrl.value}/getLeaveQuota`, {
14001
14036
  method: "POST",
@@ -14009,9 +14044,13 @@ const _sfc_main$1l = /* @__PURE__ */ defineComponent({
14009
14044
  endedAt: values.value.endedAt
14010
14045
  }
14011
14046
  });
14047
+ if (leaveStaff.code !== 200) {
14048
+ isLeaveStaff.value = false;
14049
+ return;
14050
+ }
14012
14051
  quota.value = leaveStaff.data.quota;
14013
14052
  maxDuration.value = leaveStaff.data.quota;
14014
- if (leaveStaff.code === 200 && leaveStaff.data.quota > 0) {
14053
+ if ((leaveStaff == null ? void 0 : leaveStaff.code) === 200 && ((_a2 = leaveStaff == null ? void 0 : leaveStaff.data) == null ? void 0 : _a2.quota) > 0) {
14015
14054
  isLeaveStaff.value = true;
14016
14055
  } else {
14017
14056
  isLeaveStaff.value = false;
@@ -14471,7 +14510,7 @@ const _sfc_main$1l = /* @__PURE__ */ defineComponent({
14471
14510
  };
14472
14511
  }
14473
14512
  });
14474
- const AttendanceStaff = /* @__PURE__ */ _export_sfc$1(_sfc_main$1l, [["__scopeId", "data-v-d7fac2c9"]]);
14513
+ const AttendanceStaff = /* @__PURE__ */ _export_sfc$1(_sfc_main$1l, [["__scopeId", "data-v-da17c45a"]]);
14475
14514
  const _hoisted_1$t = { class: "flex flex-wrap" };
14476
14515
  const _hoisted_2$k = { class: "mt-2" };
14477
14516
  const _hoisted_3$c = { class: "mt-2" };
@@ -14601,13 +14640,10 @@ const _sfc_main$1k = /* @__PURE__ */ defineComponent({
14601
14640
  const wrapper = (_b = responseGenerateAttendance.data) == null ? void 0 : _b.executeAttendance;
14602
14641
  responseState.value = (_c = wrapper == null ? void 0 : wrapper.info) == null ? void 0 : _c.state;
14603
14642
  }
14604
- const appStore = useAppStore();
14643
+ useAppStore();
14605
14644
  const officeAppUrl = computed(() => {
14606
- if (appStore.appEnv === "dev")
14607
- return "https://dev.api.office.operasional.neutron.neon.id";
14608
- if (appStore.appEnv === "prod")
14609
- return "https://api.office.operasional.neutron.neon.id";
14610
- return "http://127.0.0.1:7020";
14645
+ const url = apiUrl();
14646
+ return url.action;
14611
14647
  });
14612
14648
  const type = ref("");
14613
14649
  const showLeaveQuota = ref(true);
@@ -15102,7 +15138,7 @@ const _sfc_main$1k = /* @__PURE__ */ defineComponent({
15102
15138
  };
15103
15139
  }
15104
15140
  });
15105
- const AttendanceSupervisor = /* @__PURE__ */ _export_sfc$1(_sfc_main$1k, [["__scopeId", "data-v-76c1713b"]]);
15141
+ const AttendanceSupervisor = /* @__PURE__ */ _export_sfc$1(_sfc_main$1k, [["__scopeId", "data-v-612533ad"]]);
15106
15142
  const _sfc_main$1j = /* @__PURE__ */ defineComponent({
15107
15143
  __name: "AttendanceDelegate",
15108
15144
  setup(__props) {
@@ -15171,13 +15207,10 @@ const _sfc_main$1j = /* @__PURE__ */ defineComponent({
15171
15207
  };
15172
15208
  });
15173
15209
  useClientHandle();
15174
- const appStore = useAppStore();
15210
+ useAppStore();
15175
15211
  const officeAppUrl = computed(() => {
15176
- if (appStore.appEnv === "dev")
15177
- return "https://dev.api.office.operasional.neutron.neon.id";
15178
- if (appStore.appEnv === "prod")
15179
- return "https://api.office.operasional.neutron.neon.id";
15180
- return "http://127.0.0.1:7020";
15212
+ const url = apiUrl();
15213
+ return url.action;
15181
15214
  });
15182
15215
  const type = ref("");
15183
15216
  const showLeaveQuota = ref(true);
@@ -15338,7 +15371,7 @@ const _sfc_main$1j = /* @__PURE__ */ defineComponent({
15338
15371
  };
15339
15372
  }
15340
15373
  });
15341
- const AttendanceDelegate = /* @__PURE__ */ _export_sfc$1(_sfc_main$1j, [["__scopeId", "data-v-2dee8adc"]]);
15374
+ const AttendanceDelegate = /* @__PURE__ */ _export_sfc$1(_sfc_main$1j, [["__scopeId", "data-v-bedf6444"]]);
15342
15375
  const _sfc_main$1i = /* @__PURE__ */ defineComponent({
15343
15376
  ...{ name: "AttendanceTypeCollection" },
15344
15377
  __name: "AttendanceTypeCollection",
@@ -27485,6 +27518,7 @@ const all = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty(
27485
27518
  TaskSingle: _sfc_main$l,
27486
27519
  TaskWork: _sfc_main$n,
27487
27520
  TaskWorkButton: _sfc_main$k,
27521
+ apiUrl,
27488
27522
  bus,
27489
27523
  useAttendanceStore,
27490
27524
  useImportShift,
@@ -101,19 +101,19 @@
101
101
  display: block
102
102
  }
103
103
 
104
- .neu-attendance-single[data-v-d5b06d78] {
104
+ .neu-attendance-single[data-v-c82c031c] {
105
105
  display: block
106
106
  }
107
107
 
108
- .neu-attendance-single[data-v-d7fac2c9] {
108
+ .neu-attendance-single[data-v-da17c45a] {
109
109
  display: block
110
110
  }
111
111
 
112
- .neu-attendance-single[data-v-76c1713b] {
112
+ .neu-attendance-single[data-v-612533ad] {
113
113
  display: block
114
114
  }
115
115
 
116
- .neu-attendance-single[data-v-2dee8adc] {
116
+ .neu-attendance-single[data-v-bedf6444] {
117
117
  display: block
118
118
  }
119
119
 
package/build/module.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "compatibility": {
5
5
  "nuxt": "^3.0.0"
6
6
  },
7
- "version": "1.17.11",
7
+ "version": "1.17.12",
8
8
  "builder": {
9
9
  "@neon.id/module-builder": "1.8.0",
10
10
  "unbuild": "2.0.0"
package/build/nuxt.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "compatibility": {
5
5
  "nuxt": "^3.0.0"
6
6
  },
7
- "version": "1.17.11",
7
+ "version": "1.17.12",
8
8
  "builder": {
9
9
  "@neon.id/module-builder": "1.8.0",
10
10
  "unbuild": "2.0.0"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@neutron.co.id/operasional-interfaces",
3
- "version": "1.17.11",
3
+ "version": "1.17.12",
4
4
  "description": "Interface library of Neutron Operasional.",
5
5
  "sideEffects": [
6
6
  "*.css"
@@ -79,7 +79,7 @@
79
79
  "@neon.id/office": "1.46.0",
80
80
  "@neon.id/utils": "^1.51.0",
81
81
  "@neutron.co.id/operasional-modules": "1.12.17",
82
- "@neutron.co.id/personalia-models": "1.13.14",
82
+ "@neutron.co.id/personalia-models": "1.13.15",
83
83
  "@nuxt/kit": "^3.12.3",
84
84
  "file-saver": "^2.0.5",
85
85
  "papaparse": "5.4.1",
@@ -154,7 +154,7 @@
154
154
  "@neon.id/office": "1.46.0",
155
155
  "@neon.id/utils": "^1.51.0",
156
156
  "@neutron.co.id/operasional-modules": "1.12.17",
157
- "@neutron.co.id/personalia-models": "1.13.14",
157
+ "@neutron.co.id/personalia-models": "1.13.15",
158
158
  "@nuxt/kit": "^3.12.3",
159
159
  "file-saver": "^2.0.5",
160
160
  "qr-scanner": "^1.4.2",
@@ -164,5 +164,5 @@
164
164
  "publishConfig": {
165
165
  "access": "public"
166
166
  },
167
- "build": 193
167
+ "build": 194
168
168
  }