@neutron.co.id/operasional-interfaces 1.12.5-beta.1 → 1.12.6

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.cjs CHANGED
@@ -21759,8 +21759,13 @@ const _sfc_main$P = /* @__PURE__ */ vue.defineComponent({
21759
21759
  modelValue: vue.unref(values),
21760
21760
  "onUpdate:modelValue": _cache[8] || (_cache[8] = ($event) => vue.isRef(values) ? values.value = $event : null),
21761
21761
  field: vue.unref(fields).target,
21762
+ query: vue.unref(query.Query).define({
21763
+ filter: {
21764
+ branchIds: { $in: vue.unref(values).branchIds }
21765
+ }
21766
+ }),
21762
21767
  "is-disabled": ""
21763
- }, null, 8, ["modelValue", "field"])
21768
+ }, null, 8, ["modelValue", "field", "query"])
21764
21769
  ]),
21765
21770
  _: 1
21766
21771
  /* STABLE */
@@ -21770,8 +21775,13 @@ const _sfc_main$P = /* @__PURE__ */ vue.defineComponent({
21770
21775
  modelValue: vue.unref(values),
21771
21776
  "onUpdate:modelValue": _cache[9] || (_cache[9] = ($event) => vue.isRef(values) ? values.value = $event : null),
21772
21777
  field: vue.unref(fields).target,
21778
+ query: vue.unref(query.Query).define({
21779
+ filter: {
21780
+ branchIds: { $in: vue.unref(values).branchIds }
21781
+ }
21782
+ }),
21773
21783
  "is-disabled": ""
21774
- }, null, 8, ["modelValue", "field"])) : vue.createCommentVNode("v-if", true),
21784
+ }, null, 8, ["modelValue", "field", "query"])) : vue.createCommentVNode("v-if", true),
21775
21785
  vue.createVNode(vue.unref(office$1.OfficeRelation), {
21776
21786
  modelValue: vue.unref(values),
21777
21787
  "onUpdate:modelValue": _cache[10] || (_cache[10] = ($event) => vue.isRef(values) ? values.value = $event : null),
@@ -21797,7 +21807,7 @@ const _sfc_main$P = /* @__PURE__ */ vue.defineComponent({
21797
21807
  };
21798
21808
  }
21799
21809
  });
21800
- const PlanStaff = /* @__PURE__ */ _export_sfc$1(_sfc_main$P, [["__scopeId", "data-v-d5ab1112"]]);
21810
+ const PlanStaff = /* @__PURE__ */ _export_sfc$1(_sfc_main$P, [["__scopeId", "data-v-2d98a018"]]);
21801
21811
  const _sfc_main$O = /* @__PURE__ */ vue.defineComponent({
21802
21812
  ...{
21803
21813
  name: "PlanCollection"
@@ -21917,8 +21927,13 @@ const _sfc_main$N = /* @__PURE__ */ vue.defineComponent({
21917
21927
  vue.createVNode(vue.unref(office$1.OfficeRelation), {
21918
21928
  modelValue: vue.unref(values),
21919
21929
  "onUpdate:modelValue": _cache[7] || (_cache[7] = ($event) => vue.isRef(values) ? values.value = $event : null),
21920
- field: vue.unref(fields).target
21921
- }, null, 8, ["modelValue", "field"])
21930
+ field: vue.unref(fields).target,
21931
+ query: vue.unref(query.Query).define({
21932
+ filter: {
21933
+ branchIds: { $in: vue.unref(values).branchIds }
21934
+ }
21935
+ })
21936
+ }, null, 8, ["modelValue", "field", "query"])
21922
21937
  ]),
21923
21938
  _: 1
21924
21939
  /* STABLE */
@@ -21927,8 +21942,13 @@ const _sfc_main$N = /* @__PURE__ */ vue.defineComponent({
21927
21942
  key: 1,
21928
21943
  modelValue: vue.unref(values),
21929
21944
  "onUpdate:modelValue": _cache[8] || (_cache[8] = ($event) => vue.isRef(values) ? values.value = $event : null),
21930
- field: vue.unref(fields).target
21931
- }, null, 8, ["modelValue", "field"])) : vue.createCommentVNode("v-if", true),
21945
+ field: vue.unref(fields).target,
21946
+ query: vue.unref(query.Query).define({
21947
+ filter: {
21948
+ branchIds: { $in: vue.unref(values).branchIds }
21949
+ }
21950
+ })
21951
+ }, null, 8, ["modelValue", "field", "query"])) : vue.createCommentVNode("v-if", true),
21932
21952
  vue.createVNode(vue.unref(office$1.OfficeRelation), {
21933
21953
  modelValue: vue.unref(values),
21934
21954
  "onUpdate:modelValue": _cache[9] || (_cache[9] = ($event) => vue.isRef(values) ? values.value = $event : null),
@@ -21997,7 +22017,7 @@ const _sfc_main$N = /* @__PURE__ */ vue.defineComponent({
21997
22017
  };
21998
22018
  }
21999
22019
  });
22000
- const PlanSingle = /* @__PURE__ */ _export_sfc$1(_sfc_main$N, [["__scopeId", "data-v-cbe9e475"]]);
22020
+ const PlanSingle = /* @__PURE__ */ _export_sfc$1(_sfc_main$N, [["__scopeId", "data-v-d45d0a06"]]);
22001
22021
  const _sfc_main$M = /* @__PURE__ */ vue.defineComponent({
22002
22022
  ...{
22003
22023
  name: "PlanTypeCollection"
@@ -24914,7 +24934,7 @@ const _sfc_main$n = /* @__PURE__ */ vue.defineComponent({
24914
24934
  { id: "658f68884dec264ead160078", name: "Cabang Rasionalisasi" },
24915
24935
  // { id: '63e1734b78ae4f8388b1b313', name: 'Cabang Pendidikan' },
24916
24936
  // Keuangan
24917
- { id: "6309c39fe64a1324b8663da7", name: "Konsumen" },
24937
+ // { id: '6309c39fe64a1324b8663da7', name: 'Konsumen' },
24918
24938
  { id: "6454a30dd760fc7b529d4c23", name: "Karyawan FO Cabang" },
24919
24939
  { id: "6454a343d760fc7b529d4c64", name: "Karyawan Kasir Cabang" },
24920
24940
  { id: "6454a368d760fc7b529d4c8e", name: "karyawan Keuangan Cabang" },
@@ -28283,6 +28303,7 @@ const _sfc_main$6 = /* @__PURE__ */ vue.defineComponent({
28283
28303
  saveOne,
28284
28304
  discardChanges
28285
28305
  } = context.useSingle();
28306
+ const { staff } = useOperasional();
28286
28307
  return (_ctx, _cache) => {
28287
28308
  return vue.openBlock(), vue.createBlock(vue.unref(context.NeonSingle), { class: "neu-target-single" }, {
28288
28309
  default: vue.withCtx(() => [
@@ -28315,18 +28336,26 @@ const _sfc_main$6 = /* @__PURE__ */ vue.defineComponent({
28315
28336
  "onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => vue.unref(values).name = $event)
28316
28337
  }, vue.unref(fields).name), null, 16, ["modelValue"]),
28317
28338
  vue.createVNode(vue.unref(form.NeonFields), { md: "grid-cols-2" }, {
28318
- default: vue.withCtx(() => [
28319
- vue.createVNode(vue.unref(office$1.OfficeRelation), {
28320
- modelValue: vue.unref(values),
28321
- "onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => vue.isRef(values) ? values.value = $event : null),
28322
- field: vue.unref(fields).branches
28323
- }, null, 8, ["modelValue", "field"]),
28324
- vue.createVNode(vue.unref(office$1.OfficeRelation), {
28325
- modelValue: vue.unref(values),
28326
- "onUpdate:modelValue": _cache[3] || (_cache[3] = ($event) => vue.isRef(values) ? values.value = $event : null),
28327
- field: vue.unref(fields).stages
28328
- }, null, 8, ["modelValue", "field"])
28329
- ]),
28339
+ default: vue.withCtx(() => {
28340
+ var _a;
28341
+ return [
28342
+ vue.createVNode(vue.unref(office$1.OfficeRelation), {
28343
+ modelValue: vue.unref(values),
28344
+ "onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => vue.isRef(values) ? values.value = $event : null),
28345
+ field: vue.unref(fields).branches,
28346
+ query: vue.unref(query.Query).define({
28347
+ filter: {
28348
+ _id: { $in: (_a = vue.unref(staff)) == null ? void 0 : _a.branchIds }
28349
+ }
28350
+ })
28351
+ }, null, 8, ["modelValue", "field", "query"]),
28352
+ vue.createVNode(vue.unref(office$1.OfficeRelation), {
28353
+ modelValue: vue.unref(values),
28354
+ "onUpdate:modelValue": _cache[3] || (_cache[3] = ($event) => vue.isRef(values) ? values.value = $event : null),
28355
+ field: vue.unref(fields).stages
28356
+ }, null, 8, ["modelValue", "field"])
28357
+ ];
28358
+ }),
28330
28359
  _: 1
28331
28360
  /* STABLE */
28332
28361
  }),
@@ -28419,7 +28448,7 @@ const _sfc_main$6 = /* @__PURE__ */ vue.defineComponent({
28419
28448
  };
28420
28449
  }
28421
28450
  });
28422
- const TargetBranch = /* @__PURE__ */ _export_sfc$1(_sfc_main$6, [["__scopeId", "data-v-c5152cca"]]);
28451
+ const TargetBranch = /* @__PURE__ */ _export_sfc$1(_sfc_main$6, [["__scopeId", "data-v-de9ac459"]]);
28423
28452
  const _sfc_main$5 = /* @__PURE__ */ vue.defineComponent({
28424
28453
  ...{
28425
28454
  name: "TargetCollection"
@@ -28454,6 +28483,7 @@ const _sfc_main$4 = /* @__PURE__ */ vue.defineComponent({
28454
28483
  saveOne,
28455
28484
  discardChanges
28456
28485
  } = context.useSingle();
28486
+ const { staff } = useOperasional();
28457
28487
  return (_ctx, _cache) => {
28458
28488
  return vue.openBlock(), vue.createBlock(vue.unref(context.NeonSingle), { class: "neu-target-single" }, {
28459
28489
  default: vue.withCtx(() => [
@@ -28486,18 +28516,26 @@ const _sfc_main$4 = /* @__PURE__ */ vue.defineComponent({
28486
28516
  "onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => vue.unref(values).name = $event)
28487
28517
  }, vue.unref(fields).name), null, 16, ["modelValue"]),
28488
28518
  vue.createVNode(vue.unref(form.NeonFields), { md: "grid-cols-2" }, {
28489
- default: vue.withCtx(() => [
28490
- vue.createVNode(vue.unref(office$1.OfficeRelation), {
28491
- modelValue: vue.unref(values),
28492
- "onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => vue.isRef(values) ? values.value = $event : null),
28493
- field: vue.unref(fields).branches
28494
- }, null, 8, ["modelValue", "field"]),
28495
- vue.createVNode(vue.unref(office$1.OfficeRelation), {
28496
- modelValue: vue.unref(values),
28497
- "onUpdate:modelValue": _cache[3] || (_cache[3] = ($event) => vue.isRef(values) ? values.value = $event : null),
28498
- field: vue.unref(fields).stages
28499
- }, null, 8, ["modelValue", "field"])
28500
- ]),
28519
+ default: vue.withCtx(() => {
28520
+ var _a;
28521
+ return [
28522
+ vue.createVNode(vue.unref(office$1.OfficeRelation), {
28523
+ modelValue: vue.unref(values),
28524
+ "onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => vue.isRef(values) ? values.value = $event : null),
28525
+ field: vue.unref(fields).branches,
28526
+ query: vue.unref(query.Query).define({
28527
+ filter: {
28528
+ _id: { $in: (_a = vue.unref(staff)) == null ? void 0 : _a.branchIds }
28529
+ }
28530
+ })
28531
+ }, null, 8, ["modelValue", "field", "query"]),
28532
+ vue.createVNode(vue.unref(office$1.OfficeRelation), {
28533
+ modelValue: vue.unref(values),
28534
+ "onUpdate:modelValue": _cache[3] || (_cache[3] = ($event) => vue.isRef(values) ? values.value = $event : null),
28535
+ field: vue.unref(fields).stages
28536
+ }, null, 8, ["modelValue", "field"])
28537
+ ];
28538
+ }),
28501
28539
  _: 1
28502
28540
  /* STABLE */
28503
28541
  }),
@@ -28590,7 +28628,7 @@ const _sfc_main$4 = /* @__PURE__ */ vue.defineComponent({
28590
28628
  };
28591
28629
  }
28592
28630
  });
28593
- const TargetSingle = /* @__PURE__ */ _export_sfc$1(_sfc_main$4, [["__scopeId", "data-v-70400976"]]);
28631
+ const TargetSingle = /* @__PURE__ */ _export_sfc$1(_sfc_main$4, [["__scopeId", "data-v-814ff8b0"]]);
28594
28632
  const _hoisted_1$1 = { key: 0 };
28595
28633
  const _hoisted_2$1 = { key: 1 };
28596
28634
  const _sfc_main$3 = /* @__PURE__ */ vue.defineComponent({
package/build/index.mjs CHANGED
@@ -21757,8 +21757,13 @@ const _sfc_main$P = /* @__PURE__ */ defineComponent({
21757
21757
  modelValue: unref(values),
21758
21758
  "onUpdate:modelValue": _cache[8] || (_cache[8] = ($event) => isRef(values) ? values.value = $event : null),
21759
21759
  field: unref(fields).target,
21760
+ query: unref(Query).define({
21761
+ filter: {
21762
+ branchIds: { $in: unref(values).branchIds }
21763
+ }
21764
+ }),
21760
21765
  "is-disabled": ""
21761
- }, null, 8, ["modelValue", "field"])
21766
+ }, null, 8, ["modelValue", "field", "query"])
21762
21767
  ]),
21763
21768
  _: 1
21764
21769
  /* STABLE */
@@ -21768,8 +21773,13 @@ const _sfc_main$P = /* @__PURE__ */ defineComponent({
21768
21773
  modelValue: unref(values),
21769
21774
  "onUpdate:modelValue": _cache[9] || (_cache[9] = ($event) => isRef(values) ? values.value = $event : null),
21770
21775
  field: unref(fields).target,
21776
+ query: unref(Query).define({
21777
+ filter: {
21778
+ branchIds: { $in: unref(values).branchIds }
21779
+ }
21780
+ }),
21771
21781
  "is-disabled": ""
21772
- }, null, 8, ["modelValue", "field"])) : createCommentVNode("v-if", true),
21782
+ }, null, 8, ["modelValue", "field", "query"])) : createCommentVNode("v-if", true),
21773
21783
  createVNode(unref(OfficeRelation), {
21774
21784
  modelValue: unref(values),
21775
21785
  "onUpdate:modelValue": _cache[10] || (_cache[10] = ($event) => isRef(values) ? values.value = $event : null),
@@ -21795,7 +21805,7 @@ const _sfc_main$P = /* @__PURE__ */ defineComponent({
21795
21805
  };
21796
21806
  }
21797
21807
  });
21798
- const PlanStaff = /* @__PURE__ */ _export_sfc$1(_sfc_main$P, [["__scopeId", "data-v-d5ab1112"]]);
21808
+ const PlanStaff = /* @__PURE__ */ _export_sfc$1(_sfc_main$P, [["__scopeId", "data-v-2d98a018"]]);
21799
21809
  const _sfc_main$O = /* @__PURE__ */ defineComponent({
21800
21810
  ...{
21801
21811
  name: "PlanCollection"
@@ -21915,8 +21925,13 @@ const _sfc_main$N = /* @__PURE__ */ defineComponent({
21915
21925
  createVNode(unref(OfficeRelation), {
21916
21926
  modelValue: unref(values),
21917
21927
  "onUpdate:modelValue": _cache[7] || (_cache[7] = ($event) => isRef(values) ? values.value = $event : null),
21918
- field: unref(fields).target
21919
- }, null, 8, ["modelValue", "field"])
21928
+ field: unref(fields).target,
21929
+ query: unref(Query).define({
21930
+ filter: {
21931
+ branchIds: { $in: unref(values).branchIds }
21932
+ }
21933
+ })
21934
+ }, null, 8, ["modelValue", "field", "query"])
21920
21935
  ]),
21921
21936
  _: 1
21922
21937
  /* STABLE */
@@ -21925,8 +21940,13 @@ const _sfc_main$N = /* @__PURE__ */ defineComponent({
21925
21940
  key: 1,
21926
21941
  modelValue: unref(values),
21927
21942
  "onUpdate:modelValue": _cache[8] || (_cache[8] = ($event) => isRef(values) ? values.value = $event : null),
21928
- field: unref(fields).target
21929
- }, null, 8, ["modelValue", "field"])) : createCommentVNode("v-if", true),
21943
+ field: unref(fields).target,
21944
+ query: unref(Query).define({
21945
+ filter: {
21946
+ branchIds: { $in: unref(values).branchIds }
21947
+ }
21948
+ })
21949
+ }, null, 8, ["modelValue", "field", "query"])) : createCommentVNode("v-if", true),
21930
21950
  createVNode(unref(OfficeRelation), {
21931
21951
  modelValue: unref(values),
21932
21952
  "onUpdate:modelValue": _cache[9] || (_cache[9] = ($event) => isRef(values) ? values.value = $event : null),
@@ -21995,7 +22015,7 @@ const _sfc_main$N = /* @__PURE__ */ defineComponent({
21995
22015
  };
21996
22016
  }
21997
22017
  });
21998
- const PlanSingle = /* @__PURE__ */ _export_sfc$1(_sfc_main$N, [["__scopeId", "data-v-cbe9e475"]]);
22018
+ const PlanSingle = /* @__PURE__ */ _export_sfc$1(_sfc_main$N, [["__scopeId", "data-v-d45d0a06"]]);
21999
22019
  const _sfc_main$M = /* @__PURE__ */ defineComponent({
22000
22020
  ...{
22001
22021
  name: "PlanTypeCollection"
@@ -24912,7 +24932,7 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
24912
24932
  { id: "658f68884dec264ead160078", name: "Cabang Rasionalisasi" },
24913
24933
  // { id: '63e1734b78ae4f8388b1b313', name: 'Cabang Pendidikan' },
24914
24934
  // Keuangan
24915
- { id: "6309c39fe64a1324b8663da7", name: "Konsumen" },
24935
+ // { id: '6309c39fe64a1324b8663da7', name: 'Konsumen' },
24916
24936
  { id: "6454a30dd760fc7b529d4c23", name: "Karyawan FO Cabang" },
24917
24937
  { id: "6454a343d760fc7b529d4c64", name: "Karyawan Kasir Cabang" },
24918
24938
  { id: "6454a368d760fc7b529d4c8e", name: "karyawan Keuangan Cabang" },
@@ -28281,6 +28301,7 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
28281
28301
  saveOne,
28282
28302
  discardChanges
28283
28303
  } = useSingle();
28304
+ const { staff } = useOperasional();
28284
28305
  return (_ctx, _cache) => {
28285
28306
  return openBlock(), createBlock(unref(NeonSingle), { class: "neu-target-single" }, {
28286
28307
  default: withCtx(() => [
@@ -28313,18 +28334,26 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
28313
28334
  "onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => unref(values).name = $event)
28314
28335
  }, unref(fields).name), null, 16, ["modelValue"]),
28315
28336
  createVNode(unref(NeonFields), { md: "grid-cols-2" }, {
28316
- default: withCtx(() => [
28317
- createVNode(unref(OfficeRelation), {
28318
- modelValue: unref(values),
28319
- "onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => isRef(values) ? values.value = $event : null),
28320
- field: unref(fields).branches
28321
- }, null, 8, ["modelValue", "field"]),
28322
- createVNode(unref(OfficeRelation), {
28323
- modelValue: unref(values),
28324
- "onUpdate:modelValue": _cache[3] || (_cache[3] = ($event) => isRef(values) ? values.value = $event : null),
28325
- field: unref(fields).stages
28326
- }, null, 8, ["modelValue", "field"])
28327
- ]),
28337
+ default: withCtx(() => {
28338
+ var _a;
28339
+ return [
28340
+ createVNode(unref(OfficeRelation), {
28341
+ modelValue: unref(values),
28342
+ "onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => isRef(values) ? values.value = $event : null),
28343
+ field: unref(fields).branches,
28344
+ query: unref(Query).define({
28345
+ filter: {
28346
+ _id: { $in: (_a = unref(staff)) == null ? void 0 : _a.branchIds }
28347
+ }
28348
+ })
28349
+ }, null, 8, ["modelValue", "field", "query"]),
28350
+ createVNode(unref(OfficeRelation), {
28351
+ modelValue: unref(values),
28352
+ "onUpdate:modelValue": _cache[3] || (_cache[3] = ($event) => isRef(values) ? values.value = $event : null),
28353
+ field: unref(fields).stages
28354
+ }, null, 8, ["modelValue", "field"])
28355
+ ];
28356
+ }),
28328
28357
  _: 1
28329
28358
  /* STABLE */
28330
28359
  }),
@@ -28417,7 +28446,7 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
28417
28446
  };
28418
28447
  }
28419
28448
  });
28420
- const TargetBranch = /* @__PURE__ */ _export_sfc$1(_sfc_main$6, [["__scopeId", "data-v-c5152cca"]]);
28449
+ const TargetBranch = /* @__PURE__ */ _export_sfc$1(_sfc_main$6, [["__scopeId", "data-v-de9ac459"]]);
28421
28450
  const _sfc_main$5 = /* @__PURE__ */ defineComponent({
28422
28451
  ...{
28423
28452
  name: "TargetCollection"
@@ -28452,6 +28481,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
28452
28481
  saveOne,
28453
28482
  discardChanges
28454
28483
  } = useSingle();
28484
+ const { staff } = useOperasional();
28455
28485
  return (_ctx, _cache) => {
28456
28486
  return openBlock(), createBlock(unref(NeonSingle), { class: "neu-target-single" }, {
28457
28487
  default: withCtx(() => [
@@ -28484,18 +28514,26 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
28484
28514
  "onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => unref(values).name = $event)
28485
28515
  }, unref(fields).name), null, 16, ["modelValue"]),
28486
28516
  createVNode(unref(NeonFields), { md: "grid-cols-2" }, {
28487
- default: withCtx(() => [
28488
- createVNode(unref(OfficeRelation), {
28489
- modelValue: unref(values),
28490
- "onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => isRef(values) ? values.value = $event : null),
28491
- field: unref(fields).branches
28492
- }, null, 8, ["modelValue", "field"]),
28493
- createVNode(unref(OfficeRelation), {
28494
- modelValue: unref(values),
28495
- "onUpdate:modelValue": _cache[3] || (_cache[3] = ($event) => isRef(values) ? values.value = $event : null),
28496
- field: unref(fields).stages
28497
- }, null, 8, ["modelValue", "field"])
28498
- ]),
28517
+ default: withCtx(() => {
28518
+ var _a;
28519
+ return [
28520
+ createVNode(unref(OfficeRelation), {
28521
+ modelValue: unref(values),
28522
+ "onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => isRef(values) ? values.value = $event : null),
28523
+ field: unref(fields).branches,
28524
+ query: unref(Query).define({
28525
+ filter: {
28526
+ _id: { $in: (_a = unref(staff)) == null ? void 0 : _a.branchIds }
28527
+ }
28528
+ })
28529
+ }, null, 8, ["modelValue", "field", "query"]),
28530
+ createVNode(unref(OfficeRelation), {
28531
+ modelValue: unref(values),
28532
+ "onUpdate:modelValue": _cache[3] || (_cache[3] = ($event) => isRef(values) ? values.value = $event : null),
28533
+ field: unref(fields).stages
28534
+ }, null, 8, ["modelValue", "field"])
28535
+ ];
28536
+ }),
28499
28537
  _: 1
28500
28538
  /* STABLE */
28501
28539
  }),
@@ -28588,7 +28626,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
28588
28626
  };
28589
28627
  }
28590
28628
  });
28591
- const TargetSingle = /* @__PURE__ */ _export_sfc$1(_sfc_main$4, [["__scopeId", "data-v-70400976"]]);
28629
+ const TargetSingle = /* @__PURE__ */ _export_sfc$1(_sfc_main$4, [["__scopeId", "data-v-814ff8b0"]]);
28592
28630
  const _hoisted_1$1 = { key: 0 };
28593
28631
  const _hoisted_2$1 = { key: 1 };
28594
28632
  const _sfc_main$3 = /* @__PURE__ */ defineComponent({
@@ -21845,8 +21845,13 @@ const _sfc_main$R = /* @__PURE__ */ vue$1.defineComponent({
21845
21845
  modelValue: vue$1.unref(values),
21846
21846
  "onUpdate:modelValue": _cache[8] || (_cache[8] = ($event) => vue$1.isRef(values) ? values.value = $event : null),
21847
21847
  field: vue$1.unref(fields).target,
21848
+ query: vue$1.unref(query.Query).define({
21849
+ filter: {
21850
+ branchIds: { $in: vue$1.unref(values).branchIds }
21851
+ }
21852
+ }),
21848
21853
  "is-disabled": ""
21849
- }, null, 8, ["modelValue", "field"])
21854
+ }, null, 8, ["modelValue", "field", "query"])
21850
21855
  ]),
21851
21856
  _: 1
21852
21857
  /* STABLE */
@@ -21856,8 +21861,13 @@ const _sfc_main$R = /* @__PURE__ */ vue$1.defineComponent({
21856
21861
  modelValue: vue$1.unref(values),
21857
21862
  "onUpdate:modelValue": _cache[9] || (_cache[9] = ($event) => vue$1.isRef(values) ? values.value = $event : null),
21858
21863
  field: vue$1.unref(fields).target,
21864
+ query: vue$1.unref(query.Query).define({
21865
+ filter: {
21866
+ branchIds: { $in: vue$1.unref(values).branchIds }
21867
+ }
21868
+ }),
21859
21869
  "is-disabled": ""
21860
- }, null, 8, ["modelValue", "field"])) : vue$1.createCommentVNode("v-if", true),
21870
+ }, null, 8, ["modelValue", "field", "query"])) : vue$1.createCommentVNode("v-if", true),
21861
21871
  vue$1.createVNode(vue$1.unref(office$1.OfficeRelation), {
21862
21872
  modelValue: vue$1.unref(values),
21863
21873
  "onUpdate:modelValue": _cache[10] || (_cache[10] = ($event) => vue$1.isRef(values) ? values.value = $event : null),
@@ -21883,7 +21893,7 @@ const _sfc_main$R = /* @__PURE__ */ vue$1.defineComponent({
21883
21893
  };
21884
21894
  }
21885
21895
  });
21886
- const PlanStaff = /* @__PURE__ */ _export_sfc$1(_sfc_main$R, [["__scopeId", "data-v-d5ab1112"]]);
21896
+ const PlanStaff = /* @__PURE__ */ _export_sfc$1(_sfc_main$R, [["__scopeId", "data-v-2d98a018"]]);
21887
21897
  const _sfc_main$Q = /* @__PURE__ */ vue$1.defineComponent({
21888
21898
  ...{
21889
21899
  name: "PlanCollection"
@@ -22003,8 +22013,13 @@ const _sfc_main$P = /* @__PURE__ */ vue$1.defineComponent({
22003
22013
  vue$1.createVNode(vue$1.unref(office$1.OfficeRelation), {
22004
22014
  modelValue: vue$1.unref(values),
22005
22015
  "onUpdate:modelValue": _cache[7] || (_cache[7] = ($event) => vue$1.isRef(values) ? values.value = $event : null),
22006
- field: vue$1.unref(fields).target
22007
- }, null, 8, ["modelValue", "field"])
22016
+ field: vue$1.unref(fields).target,
22017
+ query: vue$1.unref(query.Query).define({
22018
+ filter: {
22019
+ branchIds: { $in: vue$1.unref(values).branchIds }
22020
+ }
22021
+ })
22022
+ }, null, 8, ["modelValue", "field", "query"])
22008
22023
  ]),
22009
22024
  _: 1
22010
22025
  /* STABLE */
@@ -22013,8 +22028,13 @@ const _sfc_main$P = /* @__PURE__ */ vue$1.defineComponent({
22013
22028
  key: 1,
22014
22029
  modelValue: vue$1.unref(values),
22015
22030
  "onUpdate:modelValue": _cache[8] || (_cache[8] = ($event) => vue$1.isRef(values) ? values.value = $event : null),
22016
- field: vue$1.unref(fields).target
22017
- }, null, 8, ["modelValue", "field"])) : vue$1.createCommentVNode("v-if", true),
22031
+ field: vue$1.unref(fields).target,
22032
+ query: vue$1.unref(query.Query).define({
22033
+ filter: {
22034
+ branchIds: { $in: vue$1.unref(values).branchIds }
22035
+ }
22036
+ })
22037
+ }, null, 8, ["modelValue", "field", "query"])) : vue$1.createCommentVNode("v-if", true),
22018
22038
  vue$1.createVNode(vue$1.unref(office$1.OfficeRelation), {
22019
22039
  modelValue: vue$1.unref(values),
22020
22040
  "onUpdate:modelValue": _cache[9] || (_cache[9] = ($event) => vue$1.isRef(values) ? values.value = $event : null),
@@ -22083,7 +22103,7 @@ const _sfc_main$P = /* @__PURE__ */ vue$1.defineComponent({
22083
22103
  };
22084
22104
  }
22085
22105
  });
22086
- const PlanSingle = /* @__PURE__ */ _export_sfc$1(_sfc_main$P, [["__scopeId", "data-v-cbe9e475"]]);
22106
+ const PlanSingle = /* @__PURE__ */ _export_sfc$1(_sfc_main$P, [["__scopeId", "data-v-d45d0a06"]]);
22087
22107
  const _sfc_main$O = /* @__PURE__ */ vue$1.defineComponent({
22088
22108
  ...{
22089
22109
  name: "PlanTypeCollection"
@@ -25000,7 +25020,7 @@ const _sfc_main$o = /* @__PURE__ */ vue$1.defineComponent({
25000
25020
  { id: "658f68884dec264ead160078", name: "Cabang Rasionalisasi" },
25001
25021
  // { id: '63e1734b78ae4f8388b1b313', name: 'Cabang Pendidikan' },
25002
25022
  // Keuangan
25003
- { id: "6309c39fe64a1324b8663da7", name: "Konsumen" },
25023
+ // { id: '6309c39fe64a1324b8663da7', name: 'Konsumen' },
25004
25024
  { id: "6454a30dd760fc7b529d4c23", name: "Karyawan FO Cabang" },
25005
25025
  { id: "6454a343d760fc7b529d4c64", name: "Karyawan Kasir Cabang" },
25006
25026
  { id: "6454a368d760fc7b529d4c8e", name: "karyawan Keuangan Cabang" },
@@ -28369,6 +28389,7 @@ const _sfc_main$7 = /* @__PURE__ */ vue$1.defineComponent({
28369
28389
  saveOne,
28370
28390
  discardChanges
28371
28391
  } = context.useSingle();
28392
+ const { staff } = useOperasional$1();
28372
28393
  return (_ctx, _cache) => {
28373
28394
  return vue$1.openBlock(), vue$1.createBlock(vue$1.unref(context.NeonSingle), { class: "neu-target-single" }, {
28374
28395
  default: vue$1.withCtx(() => [
@@ -28401,18 +28422,26 @@ const _sfc_main$7 = /* @__PURE__ */ vue$1.defineComponent({
28401
28422
  "onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => vue$1.unref(values).name = $event)
28402
28423
  }, vue$1.unref(fields).name), null, 16, ["modelValue"]),
28403
28424
  vue$1.createVNode(vue$1.unref(form.NeonFields), { md: "grid-cols-2" }, {
28404
- default: vue$1.withCtx(() => [
28405
- vue$1.createVNode(vue$1.unref(office$1.OfficeRelation), {
28406
- modelValue: vue$1.unref(values),
28407
- "onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => vue$1.isRef(values) ? values.value = $event : null),
28408
- field: vue$1.unref(fields).branches
28409
- }, null, 8, ["modelValue", "field"]),
28410
- vue$1.createVNode(vue$1.unref(office$1.OfficeRelation), {
28411
- modelValue: vue$1.unref(values),
28412
- "onUpdate:modelValue": _cache[3] || (_cache[3] = ($event) => vue$1.isRef(values) ? values.value = $event : null),
28413
- field: vue$1.unref(fields).stages
28414
- }, null, 8, ["modelValue", "field"])
28415
- ]),
28425
+ default: vue$1.withCtx(() => {
28426
+ var _a;
28427
+ return [
28428
+ vue$1.createVNode(vue$1.unref(office$1.OfficeRelation), {
28429
+ modelValue: vue$1.unref(values),
28430
+ "onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => vue$1.isRef(values) ? values.value = $event : null),
28431
+ field: vue$1.unref(fields).branches,
28432
+ query: vue$1.unref(query.Query).define({
28433
+ filter: {
28434
+ _id: { $in: (_a = vue$1.unref(staff)) == null ? void 0 : _a.branchIds }
28435
+ }
28436
+ })
28437
+ }, null, 8, ["modelValue", "field", "query"]),
28438
+ vue$1.createVNode(vue$1.unref(office$1.OfficeRelation), {
28439
+ modelValue: vue$1.unref(values),
28440
+ "onUpdate:modelValue": _cache[3] || (_cache[3] = ($event) => vue$1.isRef(values) ? values.value = $event : null),
28441
+ field: vue$1.unref(fields).stages
28442
+ }, null, 8, ["modelValue", "field"])
28443
+ ];
28444
+ }),
28416
28445
  _: 1
28417
28446
  /* STABLE */
28418
28447
  }),
@@ -28505,7 +28534,7 @@ const _sfc_main$7 = /* @__PURE__ */ vue$1.defineComponent({
28505
28534
  };
28506
28535
  }
28507
28536
  });
28508
- const TargetBranch = /* @__PURE__ */ _export_sfc$1(_sfc_main$7, [["__scopeId", "data-v-c5152cca"]]);
28537
+ const TargetBranch = /* @__PURE__ */ _export_sfc$1(_sfc_main$7, [["__scopeId", "data-v-de9ac459"]]);
28509
28538
  const _sfc_main$6 = /* @__PURE__ */ vue$1.defineComponent({
28510
28539
  ...{
28511
28540
  name: "TargetCollection"
@@ -28540,6 +28569,7 @@ const _sfc_main$5 = /* @__PURE__ */ vue$1.defineComponent({
28540
28569
  saveOne,
28541
28570
  discardChanges
28542
28571
  } = context.useSingle();
28572
+ const { staff } = useOperasional$1();
28543
28573
  return (_ctx, _cache) => {
28544
28574
  return vue$1.openBlock(), vue$1.createBlock(vue$1.unref(context.NeonSingle), { class: "neu-target-single" }, {
28545
28575
  default: vue$1.withCtx(() => [
@@ -28572,18 +28602,26 @@ const _sfc_main$5 = /* @__PURE__ */ vue$1.defineComponent({
28572
28602
  "onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => vue$1.unref(values).name = $event)
28573
28603
  }, vue$1.unref(fields).name), null, 16, ["modelValue"]),
28574
28604
  vue$1.createVNode(vue$1.unref(form.NeonFields), { md: "grid-cols-2" }, {
28575
- default: vue$1.withCtx(() => [
28576
- vue$1.createVNode(vue$1.unref(office$1.OfficeRelation), {
28577
- modelValue: vue$1.unref(values),
28578
- "onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => vue$1.isRef(values) ? values.value = $event : null),
28579
- field: vue$1.unref(fields).branches
28580
- }, null, 8, ["modelValue", "field"]),
28581
- vue$1.createVNode(vue$1.unref(office$1.OfficeRelation), {
28582
- modelValue: vue$1.unref(values),
28583
- "onUpdate:modelValue": _cache[3] || (_cache[3] = ($event) => vue$1.isRef(values) ? values.value = $event : null),
28584
- field: vue$1.unref(fields).stages
28585
- }, null, 8, ["modelValue", "field"])
28586
- ]),
28605
+ default: vue$1.withCtx(() => {
28606
+ var _a;
28607
+ return [
28608
+ vue$1.createVNode(vue$1.unref(office$1.OfficeRelation), {
28609
+ modelValue: vue$1.unref(values),
28610
+ "onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => vue$1.isRef(values) ? values.value = $event : null),
28611
+ field: vue$1.unref(fields).branches,
28612
+ query: vue$1.unref(query.Query).define({
28613
+ filter: {
28614
+ _id: { $in: (_a = vue$1.unref(staff)) == null ? void 0 : _a.branchIds }
28615
+ }
28616
+ })
28617
+ }, null, 8, ["modelValue", "field", "query"]),
28618
+ vue$1.createVNode(vue$1.unref(office$1.OfficeRelation), {
28619
+ modelValue: vue$1.unref(values),
28620
+ "onUpdate:modelValue": _cache[3] || (_cache[3] = ($event) => vue$1.isRef(values) ? values.value = $event : null),
28621
+ field: vue$1.unref(fields).stages
28622
+ }, null, 8, ["modelValue", "field"])
28623
+ ];
28624
+ }),
28587
28625
  _: 1
28588
28626
  /* STABLE */
28589
28627
  }),
@@ -28676,7 +28714,7 @@ const _sfc_main$5 = /* @__PURE__ */ vue$1.defineComponent({
28676
28714
  };
28677
28715
  }
28678
28716
  });
28679
- const TargetSingle = /* @__PURE__ */ _export_sfc$1(_sfc_main$5, [["__scopeId", "data-v-70400976"]]);
28717
+ const TargetSingle = /* @__PURE__ */ _export_sfc$1(_sfc_main$5, [["__scopeId", "data-v-814ff8b0"]]);
28680
28718
  const _hoisted_1$2 = { key: 0 };
28681
28719
  const _hoisted_2$2 = { key: 1 };
28682
28720
  const _sfc_main$4 = /* @__PURE__ */ vue$1.defineComponent({