@wisemen/wise-crm-web 2.0.0-alpha.13 → 2.0.0-alpha.15

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.
@@ -1,8 +1,8 @@
1
1
  import { defineComponent as n, openBlock as o, createBlock as r, unref as s, withCtx as a, createVNode as u } from "vue";
2
2
  import { useRouteParams as m } from "@vueuse/router";
3
- import { _ as p } from "./index-xck90fnP.js";
4
- import { aZ as c } from "./uuid.util-90e4mXv8.js";
5
- import { _ } from "./CrmDetailView.vue_vue_type_script_setup_true_lang-DVQiT3Dp.js";
3
+ import { _ as p } from "./index-BJCeV9bF.js";
4
+ import { b1 as c } from "./uuid.util-DLzSSHiG.js";
5
+ import { _ } from "./CrmDetailView.vue_vue_type_script_setup_true_lang-LSyqFIhy.js";
6
6
  const x = /* @__PURE__ */ n({
7
7
  __name: "BusinessDetailView",
8
8
  props: {
@@ -1,7 +1,7 @@
1
1
  import { defineComponent as v, ref as h, unref as e, openBlock as d, createElementBlock as u, createElementVNode as t, renderSlot as x, createVNode as r, withCtx as f, Fragment as y, renderList as g, createBlock as w, toValue as m, createCommentVNode as b } from "vue";
2
2
  import { onKeyStroke as C } from "@vueuse/core";
3
3
  import { UITabsRouterLink as R, UITabsRouterLinkItem as k, UIIconButton as B } from "@wisemen/vue-core-design-system";
4
- import { X as E, O as I, R as T, a5 as V } from "./index-xck90fnP.js";
4
+ import { X as E, O as I, R as T, a5 as V } from "./index-BJCeV9bF.js";
5
5
  import { useRoute as A, RouterView as H } from "vue-router";
6
6
  class U {
7
7
  /**
@@ -1,7 +1,7 @@
1
1
  import { defineComponent as C, openBlock as t, createElementBlock as f, createElementVNode as s, createVNode as a, withCtx as n, toDisplayString as m, unref as e, createBlock as o, createCommentVNode as _, Fragment as g, renderList as v, normalizeClass as b, resolveDynamicComponent as k, computed as M } from "vue";
2
2
  import { useRouteParams as I } from "@vueuse/router";
3
3
  import { useOffsetInfiniteQuery as L } from "@wisemen/vue-core-api-utils";
4
- import { M as T, D as p, g as w, a as A, m as S, b as V, u as j, A as Q } from "./index-xck90fnP.js";
4
+ import { M as T, D as p, g as w, a as A, m as S, b as V, u as j, A as Q } from "./index-BJCeV9bF.js";
5
5
  import { UIEmptyState as U } from "@wisemen/vue-core-design-system";
6
6
  import { AnimatePresence as $, Motion as q } from "motion-v";
7
7
  import { AccordionRoot as z, AccordionItem as B, AccordionHeader as E, AccordionTrigger as F, AccordionContent as H } from "reka-ui";
@@ -1,21 +1,21 @@
1
- import { defineComponent as x, ref as M, useTemplateRef as xe, openBlock as d, createElementBlock as V, createBlock as g, unref as e, withCtx as i, createVNode as l, mergeProps as q, createElementVNode as F, toDisplayString as R, nextTick as Ie, computed as C, createCommentVNode as S, Fragment as ee, createTextVNode as le, renderList as Ne, useModel as Se, mergeModels as Fe } from "vue";
2
- import { useRouteParams as ke } from "@vueuse/router";
1
+ import { defineComponent as x, ref as M, useTemplateRef as xe, openBlock as d, createElementBlock as V, createBlock as g, unref as e, withCtx as i, createVNode as l, mergeProps as q, createElementVNode as k, toDisplayString as R, nextTick as Ie, computed as C, createCommentVNode as S, Fragment as ee, createTextVNode as le, renderList as Ne, useModel as Se, mergeModels as ke } from "vue";
2
+ import { useRouteParams as Fe } from "@vueuse/router";
3
3
  import { useI18n as I } from "vue-i18n";
4
- import { aZ as de, b3 as $e, b5 as Te, b8 as Me } from "./uuid.util-90e4mXv8.js";
5
- import { _ as Ve } from "./CrmDetailView.vue_vue_type_script_setup_true_lang-DVQiT3Dp.js";
6
- import { c as k, d as E, e as Le, E as me, C as pe, f as Ee, h as qe, i as Oe, j as Qe, k as j, g as Ae, J as Be, l as Ke, n as oe, o as je, I as Re, p as fe, q as Q, r as ze, s as _e, t as Ge, v as Ze, U as Ye, w as He, u as Je, x as Xe, Q as We, y as ea, z as aa, B as ta, F as re, G as ge, H as na, K as ie, L as la, N as oa, O as ra, P as ia, R as sa, S as be, T as ua, V as ca, W as da, X as ma, Y as pa, Z as fa, $ as _a, a0 as ga, a1 as ba, a2 as ya, a3 as va, A as ha } from "./index-xck90fnP.js";
7
- import { UITextField as z, toFormField as O, UIIconButton as ye, UIDropdownMenu as Ua, UIDropdownMenuGroup as wa, UIDropdownMenuItem as se, UIPhoneNumberField as ue, UIFormLayout as ae, UIFormFieldGroup as A, UIFormFieldGrid as B, useToast as Ca, UIFormDialog as ve, UIDialogHeader as he, UIForm as ce, UIDialogBody as Y, UIDialogFooter as H, UIDialogFooterSubmit as J, createAutocompleteOptions as Pa, createSelectOptions as X, UIAutocomplete as Da, UISelect as W, useOverlay as te, UIButton as xa, UIBadge as Ue } from "@wisemen/vue-core-design-system";
4
+ import { b1 as de, b7 as $e, b9 as Te, bc as Me } from "./uuid.util-DLzSSHiG.js";
5
+ import { _ as Ve } from "./CrmDetailView.vue_vue_type_script_setup_true_lang-LSyqFIhy.js";
6
+ import { c as F, d as E, e as Le, E as me, C as pe, f as Ee, h as qe, i as Oe, j as Qe, k as j, g as Ae, J as Be, l as Ke, n as oe, o as je, I as Re, p as fe, q as Q, r as ze, s as _e, t as Ge, v as Ye, U as Ze, w as He, u as Je, x as Xe, Q as We, y as ea, z as aa, B as ta, F as re, G as ge, H as na, K as ie, L as la, N as oa, O as ra, P as ia, R as sa, S as be, T as ua, V as ca, W as da, X as ma, Y as pa, Z as fa, $ as _a, a0 as ga, a1 as ba, a2 as ya, a3 as ha, A as va } from "./index-BJCeV9bF.js";
7
+ import { UITextField as z, toFormField as O, UIIconButton as ye, UIDropdownMenu as Ua, UIDropdownMenuGroup as wa, UIDropdownMenuItem as se, UIPhoneNumberField as ue, UIFormLayout as ae, UIFormFieldGroup as A, UIFormFieldGrid as B, useToast as Ca, UIFormDialog as he, UIDialogHeader as ve, UIForm as ce, UIDialogBody as Z, UIDialogFooter as H, UIDialogFooterSubmit as J, createAutocompleteOptions as Pa, createSelectOptions as X, UIAutocomplete as Da, UISelect as W, useOverlay as te, UIButton as xa, UIBadge as Ue } from "@wisemen/vue-core-design-system";
8
8
  import { useForm as G } from "formango";
9
- import Z, { z as N } from "zod";
9
+ import Y, { z as N } from "zod";
10
10
  import { useMutation as T, useQuery as we, useOffsetInfiniteQuery as Ia, useKeysetInfiniteQuery as Na } from "@wisemen/vue-core-api-utils";
11
11
  import { Motion as Sa } from "motion-v";
12
- import { useQueryClient as Fa, useMutation as ka } from "@tanstack/vue-query";
12
+ import { useQueryClient as ka, useMutation as Fa } from "@tanstack/vue-query";
13
13
  function $a() {
14
14
  return T({
15
15
  queryFn: async ({
16
16
  body: t,
17
17
  params: a
18
- }) => await k.update(a.dealUuid, {
18
+ }) => await F.update(a.dealUuid, {
19
19
  dealLanguage: t.dealLanguage
20
20
  }),
21
21
  queryKeysToInvalidate: {
@@ -31,7 +31,7 @@ function Ta() {
31
31
  queryFn: async ({
32
32
  body: t,
33
33
  params: a
34
- }) => await k.update(a.dealUuid, {
34
+ }) => await F.update(a.dealUuid, {
35
35
  dealSource: t.dealSource
36
36
  }),
37
37
  queryKeysToInvalidate: {
@@ -47,7 +47,7 @@ function Ma() {
47
47
  queryFn: async ({
48
48
  body: t,
49
49
  params: a
50
- }) => await k.update(a.dealUuid, {
50
+ }) => await F.update(a.dealUuid, {
51
51
  dealOwner: t.dealOwner
52
52
  }),
53
53
  queryKeysToInvalidate: {
@@ -63,7 +63,7 @@ function Va() {
63
63
  queryFn: async ({
64
64
  body: t,
65
65
  params: a
66
- }) => await k.update(a.dealUuid, {
66
+ }) => await F.update(a.dealUuid, {
67
67
  name: t.name
68
68
  }),
69
69
  queryKeysToInvalidate: {
@@ -84,8 +84,8 @@ const La = {
84
84
  },
85
85
  setup(t) {
86
86
  const a = t, n = I(), r = E(), o = M(!1), s = xe("nameFieldContainerRef"), p = Va(), f = G({
87
- schema: Z.object({
88
- name: Z.string().min(1)
87
+ schema: Y.object({
88
+ name: Y.string().min(1)
89
89
  }),
90
90
  onSubmit: async (_) => {
91
91
  try {
@@ -112,7 +112,7 @@ const La = {
112
112
  "input"
113
113
  )?.focus();
114
114
  }
115
- function v() {
115
+ function h() {
116
116
  if (!f.isDirty.value) {
117
117
  o.value = !1;
118
118
  return;
@@ -132,16 +132,16 @@ const La = {
132
132
  "is-loading": e(f).isSubmitting.value,
133
133
  label: e(n).t("wise_crm.deal.detail.sidebar.name_field.label"),
134
134
  class: "[&_input]:text-xl [&_input]:font-bold",
135
- onBlur: v
135
+ onBlur: h
136
136
  }), null, 16, ["is-loading", "label"]),
137
- b[0] || (b[0] = F("button", {
137
+ b[0] || (b[0] = k("button", {
138
138
  type: "submit",
139
139
  class: "sr-only"
140
140
  }, null, -1))
141
141
  ]),
142
142
  _: 1
143
143
  }, 8, ["form"])) : (d(), V("div", La, [
144
- F("h2", Ea, R(a.deal.name), 1),
144
+ k("h2", Ea, R(a.deal.name), 1),
145
145
  l(e(ye), {
146
146
  label: e(n).t("wise_crm.deal.detail.sidebar.name_field.edit_label"),
147
147
  icon: e(me),
@@ -154,9 +154,9 @@ const La = {
154
154
  }
155
155
  });
156
156
  function Oa() {
157
- const t = Fa(), a = "dealDetail", n = ka({
157
+ const t = ka(), a = "dealDetail", n = Fa({
158
158
  mutationFn: async (r) => {
159
- const o = await k.setPrimaryContactPerson(r.dealUuid, r.contactPersonUuid);
159
+ const o = await F.setPrimaryContactPerson(r.dealUuid, r.contactPersonUuid);
160
160
  if (o.isErr())
161
161
  throw o.error;
162
162
  },
@@ -228,7 +228,7 @@ function Qa() {
228
228
  queryFn: async ({
229
229
  body: t,
230
230
  params: a
231
- }) => await k.unlinkContactPerson(a.dealUuid, t.contactPersonUuid),
231
+ }) => await F.unlinkContactPerson(a.dealUuid, t.contactPersonUuid),
232
232
  queryKeysToInvalidate: {
233
233
  dealDetail: {
234
234
  dealUuid: (t) => t.dealUuid
@@ -269,10 +269,10 @@ const Aa = { class: "flex items-start justify-between" }, Ba = { class: "flex fl
269
269
  function y() {
270
270
  n.onToggleIsPrimary();
271
271
  }
272
- return (v, _) => (d(), g(pe, { class: "flex flex-col gap-lg" }, {
272
+ return (h, _) => (d(), g(pe, { class: "flex flex-col gap-lg" }, {
273
273
  default: i(() => [
274
- F("div", Aa, [
275
- F("div", Ba, [
274
+ k("div", Aa, [
275
+ k("div", Ba, [
276
276
  e(s) ? (d(), g(Ee, {
277
277
  key: 0,
278
278
  label: `${n.contactPerson.firstName} ${n.contactPerson.lastName}`,
@@ -282,7 +282,7 @@ const Aa = { class: "flex items-start justify-between" }, Ba = { class: "flex fl
282
282
  }, null, 8, ["label", "entity-type", "uuid"])) : S("", !0),
283
283
  n.description ? (d(), V("p", Ka, R(n.description), 1)) : S("", !0)
284
284
  ]),
285
- F("div", ja, [
285
+ k("div", ja, [
286
286
  l(qe, {
287
287
  "is-active": n.contactPerson.isPrimary,
288
288
  onClick: y
@@ -319,7 +319,7 @@ const Aa = { class: "flex items-start justify-between" }, Ba = { class: "flex fl
319
319
  })
320
320
  ])
321
321
  ]),
322
- F("div", Ra, [
322
+ k("div", Ra, [
323
323
  n.contactPerson.email !== null ? (d(), g(j, {
324
324
  key: 0,
325
325
  label: n.contactPerson.email,
@@ -346,7 +346,7 @@ function Ga() {
346
346
  queryFn: async ({
347
347
  body: t,
348
348
  params: a
349
- }) => await k.linkContactPerson(
349
+ }) => await F.linkContactPerson(
350
350
  a.dealUuid,
351
351
  t.contactPersonUuid,
352
352
  t.contactInfo
@@ -398,7 +398,7 @@ const ne = /* @__PURE__ */ x({
398
398
  }), null, 16, ["label", "placeholder"])
399
399
  ], 64));
400
400
  }
401
- }), Za = /* @__PURE__ */ x({
401
+ }), Ya = /* @__PURE__ */ x({
402
402
  __name: "DealContactPersonCreateExistingForm",
403
403
  props: {
404
404
  form: {}
@@ -406,16 +406,16 @@ const ne = /* @__PURE__ */ x({
406
406
  emits: ["createNewContactPerson"],
407
407
  setup(t, { emit: a }) {
408
408
  const n = t, r = a, o = I(), s = n.form.register("email"), p = n.form.register("phone"), f = n.form.register("mobile"), m = n.form.register("existingContactPerson"), u = M(null);
409
- async function y(v) {
410
- if (u.value = v, m.setValue(v?.uuid ?? null), v === null)
409
+ async function y(h) {
410
+ if (u.value = h, m.setValue(h?.uuid ?? null), h === null)
411
411
  return;
412
- const _ = await Re.getByUuid(v.uuid);
412
+ const _ = await Re.getByUuid(h.uuid);
413
413
  if (_.isErr())
414
414
  return;
415
415
  const b = _.value;
416
416
  s.setValue(b.email), p.setValue(b.phone), f.setValue(b.mobilePhone);
417
417
  }
418
- return (v, _) => (d(), g(e(ae), null, {
418
+ return (h, _) => (d(), g(e(ae), null, {
419
419
  default: i(() => [
420
420
  l(e(A), null, {
421
421
  default: i(() => [
@@ -473,7 +473,7 @@ const ne = /* @__PURE__ */ x({
473
473
  }), null, 16, ["label", "placeholder"])
474
474
  ], 64));
475
475
  }
476
- }), Ya = /* @__PURE__ */ x({
476
+ }), Za = /* @__PURE__ */ x({
477
477
  __name: "DealContactPersonCreateNewForm",
478
478
  props: {
479
479
  form: {}
@@ -525,8 +525,8 @@ const ne = /* @__PURE__ */ x({
525
525
  _: 1
526
526
  }));
527
527
  }
528
- }), Ha = Z.object({
529
- email: Z.email().nullable(),
528
+ }), Ha = Y.object({
529
+ email: Y.email().nullable(),
530
530
  existingContactPerson: ze.nullable(),
531
531
  mobile: Q.nullable(),
532
532
  phone: Q.nullable()
@@ -597,10 +597,10 @@ const ne = /* @__PURE__ */ x({
597
597
  onSubmitError: () => {
598
598
  p.unableToSave();
599
599
  }
600
- }), v = G({
600
+ }), h = G({
601
601
  schema: Ha,
602
602
  onSubmit: async (c) => {
603
- await h(
603
+ await v(
604
604
  c.existingContactPerson,
605
605
  {
606
606
  email: c.email,
@@ -613,12 +613,12 @@ const ne = /* @__PURE__ */ x({
613
613
  p.unableToSave();
614
614
  }
615
615
  }), _ = C(
616
- () => u.value ? y : v
616
+ () => u.value ? y : h
617
617
  );
618
618
  function b() {
619
619
  u.value = !0;
620
620
  }
621
- async function h(c, P) {
621
+ async function v(c, P) {
622
622
  if (c !== null)
623
623
  try {
624
624
  await f.execute({
@@ -641,14 +641,14 @@ const ne = /* @__PURE__ */ x({
641
641
  }
642
642
  r("createNewContactPerson", c), r("close");
643
643
  }
644
- return (c, P) => (d(), g(e(ve), {
644
+ return (c, P) => (d(), g(e(he), {
645
645
  form: _.value,
646
646
  size: "md",
647
647
  "render-own-form-component": "",
648
648
  onClose: w
649
649
  }, {
650
650
  default: i(() => [
651
- l(e(he), {
651
+ l(e(ve), {
652
652
  title: e(o).t("wise_crm.info_dialog.contact_person_create.title"),
653
653
  description: e(o).t("wise_crm.info_dialog.contact_person_create.description")
654
654
  }, null, 8, ["title", "description"]),
@@ -658,9 +658,9 @@ const ne = /* @__PURE__ */ x({
658
658
  "prompt-on-unsaved-changes": !1
659
659
  }, {
660
660
  default: i(() => [
661
- l(e(Y), null, {
661
+ l(e(Z), null, {
662
662
  default: i(() => [
663
- l(Ya, { form: e(y) }, null, 8, ["form"])
663
+ l(Za, { form: e(y) }, null, 8, ["form"])
664
664
  ]),
665
665
  _: 1
666
666
  }),
@@ -677,14 +677,14 @@ const ne = /* @__PURE__ */ x({
677
677
  _: 1
678
678
  }, 8, ["form"])) : (d(), g(e(ce), {
679
679
  key: 1,
680
- form: e(v),
680
+ form: e(h),
681
681
  "prompt-on-unsaved-changes": !1
682
682
  }, {
683
683
  default: i(() => [
684
- l(e(Y), null, {
684
+ l(e(Z), null, {
685
685
  default: i(() => [
686
- l(Za, {
687
- form: e(v),
686
+ l(Ya, {
687
+ form: e(h),
688
688
  onCreateNewContactPerson: b
689
689
  }, null, 8, ["form"])
690
690
  ]),
@@ -693,7 +693,7 @@ const ne = /* @__PURE__ */ x({
693
693
  l(e(H), null, {
694
694
  right: i(() => [
695
695
  l(e(J), {
696
- "is-loading": e(v).isSubmitting.value,
696
+ "is-loading": e(h).isSubmitting.value,
697
697
  label: e(o).t("wise_crm.shared.create")
698
698
  }, null, 8, ["is-loading", "label"])
699
699
  ]),
@@ -712,7 +712,7 @@ function Wa() {
712
712
  queryFn: async ({
713
713
  body: t,
714
714
  params: a
715
- }) => await k.updateContactPerson(a.dealUuid, a.contactPersonUuid, t.form),
715
+ }) => await F.updateContactPerson(a.dealUuid, a.contactPersonUuid, t.form),
716
716
  queryKeysToInvalidate: {
717
717
  dealContactPersonDetail: {
718
718
  contactPersonUuid: (t) => t.contactPersonUuid,
@@ -731,7 +731,7 @@ function et(t, a) {
731
731
  contactPersonUuid: a,
732
732
  dealUuid: t
733
733
  },
734
- queryFn: () => k.getContactPerson(t.value, a.value)
734
+ queryFn: () => F.getContactPerson(t.value, a.value)
735
735
  });
736
736
  }
737
737
  const at = N.object({
@@ -768,7 +768,7 @@ const at = N.object({
768
768
  onSubmit: async (P) => {
769
769
  await w(P);
770
770
  }
771
- }), y = u.register("firstName"), v = u.register("lastName"), _ = u.register("email"), b = u.register("mobilePhone"), h = u.register("phone");
771
+ }), y = u.register("firstName"), h = u.register("lastName"), _ = u.register("email"), b = u.register("mobilePhone"), v = u.register("phone");
772
772
  async function w(P) {
773
773
  try {
774
774
  await p.execute({
@@ -787,17 +787,17 @@ const at = N.object({
787
787
  function c() {
788
788
  r("close");
789
789
  }
790
- return (P, $) => (d(), g(e(ve), {
790
+ return (P, $) => (d(), g(e(he), {
791
791
  form: e(u),
792
792
  size: "md",
793
793
  onClose: c
794
794
  }, {
795
795
  default: i(() => [
796
- l(e(he), {
796
+ l(e(ve), {
797
797
  title: e(o).t("wise_crm.info_dialog.contact_person_update.title"),
798
798
  description: e(o).t("wise_crm.info_dialog.contact_person_create.description")
799
799
  }, null, 8, ["title", "description"]),
800
- m.value !== null ? (d(), g(e(Y), { key: 0 }, {
800
+ m.value !== null ? (d(), g(e(Z), { key: 0 }, {
801
801
  default: i(() => [
802
802
  l(e(ae), null, {
803
803
  default: i(() => [
@@ -810,7 +810,7 @@ const at = N.object({
810
810
  default: i(() => [
811
811
  l(Ce, {
812
812
  "first-name": e(y),
813
- "last-name": e(v)
813
+ "last-name": e(h)
814
814
  }, null, 8, ["first-name", "last-name"])
815
815
  ]),
816
816
  _: 1
@@ -818,7 +818,7 @@ const at = N.object({
818
818
  ]),
819
819
  _: 1
820
820
  }),
821
- l(Ze, {
821
+ l(Ye, {
822
822
  title: e(o).t("wise_crm.shared.contact_info")
823
823
  }, {
824
824
  default: i(() => [
@@ -831,7 +831,7 @@ const at = N.object({
831
831
  l(ne, {
832
832
  email: e(_),
833
833
  "mobile-phone": e(b),
834
- phone: e(h)
834
+ phone: e(v)
835
835
  }, null, 8, ["email", "mobile-phone", "phone"])
836
836
  ]),
837
837
  _: 1
@@ -863,7 +863,7 @@ const at = N.object({
863
863
  function nt(t) {
864
864
  return Ia("userIndex", {
865
865
  params: t,
866
- queryFn: (a) => Ye.getAll({
866
+ queryFn: (a) => Ze.getAll({
867
867
  pagination: a,
868
868
  search: t.params.search?.value
869
869
  })
@@ -881,7 +881,7 @@ const lt = { class: "p-lg" }, ot = /* @__PURE__ */ x({
881
881
  params: {
882
882
  search: f.debouncedSearch
883
883
  }
884
- }), u = M(a.deal.dealLanguage), y = M(a.deal.dealSource), v = M(
884
+ }), u = M(a.deal.dealLanguage), y = M(a.deal.dealSource), h = M(
885
885
  a.deal.owner ? {
886
886
  uuid: a.deal.owner.uuid,
887
887
  name: a.deal.owner.name
@@ -896,7 +896,7 @@ const lt = { class: "p-lg" }, ot = /* @__PURE__ */ x({
896
896
  function b(U) {
897
897
  return n.t(ea.getI18nKey(U));
898
898
  }
899
- function h(U) {
899
+ function v(U) {
900
900
  return n.t(aa.getI18nKey(U));
901
901
  }
902
902
  const w = X(Object.values($e)), c = X(Object.values(Te)), P = Je();
@@ -934,7 +934,7 @@ const lt = { class: "p-lg" }, ot = /* @__PURE__ */ x({
934
934
  }
935
935
  }
936
936
  async function De(U) {
937
- if (v.value = U, U !== null)
937
+ if (h.value = U, U !== null)
938
938
  try {
939
939
  await p.execute({
940
940
  body: {
@@ -951,13 +951,13 @@ const lt = { class: "p-lg" }, ot = /* @__PURE__ */ x({
951
951
  return (U, D) => (d(), V("div", null, [
952
952
  l(pe, null, {
953
953
  default: i(() => [
954
- F("form", null, [
954
+ k("form", null, [
955
955
  l(Xe, { cols: 1 }, {
956
956
  default: i(() => [
957
957
  l(e(Da), {
958
- modelValue: v.value,
958
+ modelValue: h.value,
959
959
  "onUpdate:modelValue": [
960
- D[0] || (D[0] = (L) => v.value = L),
960
+ D[0] || (D[0] = (L) => h.value = L),
961
961
  De
962
962
  ],
963
963
  items: _.value,
@@ -986,7 +986,7 @@ const lt = { class: "p-lg" }, ot = /* @__PURE__ */ x({
986
986
  D[2] || (D[2] = (L) => y.value = L),
987
987
  Pe
988
988
  ],
989
- "display-fn": h,
989
+ "display-fn": v,
990
990
  label: e(n).t("wise_crm.deal.form.fields.source"),
991
991
  placeholder: e(n).t("wise_crm.deal.form.fields.source_placeholder"),
992
992
  "is-loading": e(s).isLoading.value,
@@ -999,7 +999,7 @@ const lt = { class: "p-lg" }, ot = /* @__PURE__ */ x({
999
999
  ]),
1000
1000
  _: 1
1001
1001
  }),
1002
- F("div", lt, [
1002
+ k("div", lt, [
1003
1003
  l(j, {
1004
1004
  label: e(n).t("wise_crm.deal.sidebar.created_at", {
1005
1005
  date: e(P).toDate(a.deal.createdAt.toPlainDate())
@@ -1023,17 +1023,17 @@ const lt = { class: "p-lg" }, ot = /* @__PURE__ */ x({
1023
1023
  dealUuid: a.deal.uuid
1024
1024
  });
1025
1025
  }
1026
- function v(h) {
1026
+ function h(v) {
1027
1027
  m.open({
1028
- contactPersonUuid: h,
1028
+ contactPersonUuid: v,
1029
1029
  dealUuid: a.deal.uuid
1030
1030
  });
1031
1031
  }
1032
- async function _(h) {
1032
+ async function _(v) {
1033
1033
  try {
1034
1034
  await s.execute({
1035
1035
  body: {
1036
- contactPersonUuid: h
1036
+ contactPersonUuid: v
1037
1037
  },
1038
1038
  params: {
1039
1039
  dealUuid: a.deal.uuid
@@ -1043,15 +1043,15 @@ const lt = { class: "p-lg" }, ot = /* @__PURE__ */ x({
1043
1043
  r.show(w);
1044
1044
  }
1045
1045
  }
1046
- function b(h) {
1046
+ function b(v) {
1047
1047
  o.execute({
1048
1048
  params: {
1049
- contactPersonUuid: h,
1049
+ contactPersonUuid: v,
1050
1050
  dealUuid: a.deal.uuid
1051
1051
  }
1052
1052
  });
1053
1053
  }
1054
- return (h, w) => (d(), g(ta, { "default-values": ["general-info", "contact-persons"] }, {
1054
+ return (v, w) => (d(), g(ta, { "default-values": ["general-info", "contact-persons"] }, {
1055
1055
  default: i(() => [
1056
1056
  l(re, {
1057
1057
  label: e(n).t("wise_crm.deal.detail.sidebar.accordion.general_info"),
@@ -1091,7 +1091,7 @@ const lt = { class: "p-lg" }, ot = /* @__PURE__ */ x({
1091
1091
  "contact-person": c,
1092
1092
  "on-toggle-is-primary": () => b(c.uuid),
1093
1093
  description: c.phone,
1094
- onUpdate: (P) => v(c.uuid),
1094
+ onUpdate: (P) => h(c.uuid),
1095
1095
  onDelete: (P) => _(c.uuid)
1096
1096
  }, null, 8, ["contact-person", "on-toggle-is-primary", "description", "onUpdate", "onDelete"])
1097
1097
  ]),
@@ -1118,7 +1118,7 @@ function it() {
1118
1118
  queryFn: async ({
1119
1119
  body: t,
1120
1120
  params: a
1121
- }) => await k.transition(a.dealUuid, t.toBoardColumnUuid),
1121
+ }) => await F.transition(a.dealUuid, t.toBoardColumnUuid),
1122
1122
  queryKeysToInvalidate: {
1123
1123
  dealDetail: {
1124
1124
  dealUuid: (t) => t.dealUuid
@@ -1137,7 +1137,7 @@ function st(t, a) {
1137
1137
  }
1138
1138
  const ut = /* @__PURE__ */ x({
1139
1139
  __name: "DealDetailSidebarTransitionSelect",
1140
- props: /* @__PURE__ */ Fe({
1140
+ props: /* @__PURE__ */ ke({
1141
1141
  deal: {}
1142
1142
  }, {
1143
1143
  modelValue: {
@@ -1159,27 +1159,27 @@ const ut = /* @__PURE__ */ x({
1159
1159
  c
1160
1160
  ]
1161
1161
  }))));
1162
- function v(h) {
1163
- return h?.toColumnDisplayName ?? "-";
1162
+ function h(v) {
1163
+ return v?.toColumnDisplayName ?? "-";
1164
1164
  }
1165
1165
  const _ = C(() => X(y.value));
1166
- async function b(h) {
1167
- if (h.triggers.length !== 0) {
1168
- if (h.triggers[0]?.triggerType === Me.EMAIL) {
1166
+ async function b(v) {
1167
+ if (v.triggers.length !== 0) {
1168
+ if (v.triggers[0]?.triggerType === Me.EMAIL) {
1169
1169
  s.open({
1170
1170
  dealUuid: a.deal.uuid,
1171
1171
  client: {
1172
1172
  uuid: a.deal.client.uuid,
1173
1173
  type: a.deal.client.type
1174
1174
  },
1175
- templateKey: h.triggers[0].config.mailTemplateKey
1175
+ templateKey: v.triggers[0].config.mailTemplateKey
1176
1176
  });
1177
1177
  return;
1178
1178
  }
1179
1179
  try {
1180
- p.value = h, await m.execute({
1180
+ p.value = v, await m.execute({
1181
1181
  body: {
1182
- toBoardColumnUuid: h.toColumnUuid
1182
+ toBoardColumnUuid: v.toColumnUuid
1183
1183
  },
1184
1184
  params: {
1185
1185
  dealUuid: a.deal.uuid
@@ -1190,7 +1190,7 @@ const ut = /* @__PURE__ */ x({
1190
1190
  }
1191
1191
  }
1192
1192
  }
1193
- return (h, w) => (d(), g(sa, {
1193
+ return (v, w) => (d(), g(sa, {
1194
1194
  color: p.value?.toColumnColor ?? null
1195
1195
  }, {
1196
1196
  default: i(() => [
@@ -1206,12 +1206,12 @@ const ut = /* @__PURE__ */ x({
1206
1206
  key: 1,
1207
1207
  "model-value": p.value,
1208
1208
  "is-loading": e(m).isLoading.value,
1209
- "display-fn": v,
1209
+ "display-fn": h,
1210
1210
  items: _.value,
1211
1211
  "is-label-hidden": !0,
1212
1212
  placeholder: e(n).t("wise_crm.deal.transition.placeholder"),
1213
1213
  label: e(n).t("wise_crm.deal.transition.label"),
1214
- class: "w-20",
1214
+ class: "w-fit shrink-0 text-nowrap",
1215
1215
  size: "sm",
1216
1216
  "onUpdate:modelValue": b
1217
1217
  }, null, 8, ["model-value", "is-loading", "items", "placeholder", "label"]))
@@ -1271,7 +1271,7 @@ const mt = /* @__PURE__ */ x({
1271
1271
  o.show(b);
1272
1272
  }
1273
1273
  }
1274
- function v(_) {
1274
+ function h(_) {
1275
1275
  r.open({
1276
1276
  note: _
1277
1277
  });
@@ -1281,9 +1281,9 @@ const mt = /* @__PURE__ */ x({
1281
1281
  notes: m.value,
1282
1282
  "on-submit": u,
1283
1283
  "has-next-page": e(f).hasNextPage.value,
1284
- onNext: b[0] || (b[0] = (h) => e(f).fetchNextPage()),
1284
+ onNext: b[0] || (b[0] = (v) => e(f).fetchNextPage()),
1285
1285
  onDelete: y,
1286
- onUpdate: v
1286
+ onUpdate: h
1287
1287
  }, null, 8, ["is-loading", "notes", "has-next-page"]));
1288
1288
  }
1289
1289
  }), pt = { class: "flex h-full flex-1 flex-col" }, ft = { class: "flex flex-col gap-xl rounded-2xl border border-primary p-xl" }, _t = { class: "flex w-full flex-wrap items-center justify-between gap-sm" }, gt = /* @__PURE__ */ x({
@@ -1318,11 +1318,11 @@ const mt = /* @__PURE__ */ x({
1318
1318
  }
1319
1319
  ]);
1320
1320
  return (f, m) => (d(), V("div", pt, [
1321
- F("div", ft, [
1321
+ k("div", ft, [
1322
1322
  l(qa, {
1323
1323
  deal: a.deal
1324
1324
  }, null, 8, ["deal"]),
1325
- F("div", _t, [
1325
+ k("div", _t, [
1326
1326
  l(fa, {
1327
1327
  class: "max-w-full min-w-0",
1328
1328
  onClick: m[0] || (m[0] = (u) => e(r).openBusinessDetail(
@@ -1376,11 +1376,11 @@ const mt = /* @__PURE__ */ x({
1376
1376
  ), r = I();
1377
1377
  return (o, s) => (d(), g(ya, null, {
1378
1378
  default: i(() => [
1379
- e(n).isError.value ? (d(), g(va, {
1379
+ e(n).isError.value ? (d(), g(ha, {
1380
1380
  key: 0,
1381
1381
  message: e(r).t("error.deal_details.description"),
1382
1382
  title: e(r).t("error.deal_details.title")
1383
- }, null, 8, ["message", "title"])) : e(n).isLoading.value ? (d(), g(ha, {
1383
+ }, null, 8, ["message", "title"])) : e(n).isLoading.value ? (d(), g(va, {
1384
1384
  key: 1,
1385
1385
  class: "h-full"
1386
1386
  })) : e(n).result.value.isOk() ? (d(), g(gt, {
@@ -1391,13 +1391,13 @@ const mt = /* @__PURE__ */ x({
1391
1391
  _: 1
1392
1392
  }));
1393
1393
  }
1394
- }), Ft = /* @__PURE__ */ x({
1394
+ }), kt = /* @__PURE__ */ x({
1395
1395
  __name: "DealDetailView",
1396
1396
  props: {
1397
1397
  tabs: {}
1398
1398
  },
1399
1399
  setup(t) {
1400
- const a = t, n = I(), r = ke("dealUuid"), o = C(() => [
1400
+ const a = t, n = I(), r = Fe("dealUuid"), o = C(() => [
1401
1401
  ...a.tabs,
1402
1402
  {
1403
1403
  label: C(() => n.t("wise_crm.deal.detail_view.communication_tab_label")),
@@ -1417,5 +1417,5 @@ const mt = /* @__PURE__ */ x({
1417
1417
  }
1418
1418
  });
1419
1419
  export {
1420
- Ft as default
1420
+ kt as default
1421
1421
  };
@@ -1,8 +1,8 @@
1
1
  import { defineComponent as n, openBlock as o, createBlock as r, unref as i, withCtx as s, createVNode as u } from "vue";
2
2
  import { useRouteParams as d } from "@vueuse/router";
3
- import { aZ as m } from "./uuid.util-90e4mXv8.js";
4
- import { _ as p } from "./CrmDetailView.vue_vue_type_script_setup_true_lang-DVQiT3Dp.js";
5
- import { a4 as c } from "./index-xck90fnP.js";
3
+ import { b1 as m } from "./uuid.util-DLzSSHiG.js";
4
+ import { _ as p } from "./CrmDetailView.vue_vue_type_script_setup_true_lang-LSyqFIhy.js";
5
+ import { a4 as c } from "./index-BJCeV9bF.js";
6
6
  const k = /* @__PURE__ */ n({
7
7
  __name: "IndividualDetailView",
8
8
  props: {