@wisemen/wise-crm-web 2.0.0-alpha.44 → 2.0.0-alpha.45
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/dist/{BusinessDetailView-CUqP54YS.js → BusinessDetailView-BWVZOMfl.js} +29 -34
- package/dist/{CrmDetailSidebarMapCard.vue_vue_type_script_setup_true_lang-CeS10J7W.js → CrmDetailSidebarMapCard.vue_vue_type_script_setup_true_lang-CCUsR4oc.js} +148 -149
- package/dist/{CrmDetailView.vue_vue_type_script_setup_true_lang-CTukbqp5.js → CrmDetailView.vue_vue_type_script_setup_true_lang-7UUg6E4g.js} +1 -1
- package/dist/{DealCommunicationTabView-CioSYkKm.js → DealCommunicationTabView-fR6lGKkQ.js} +1 -1
- package/dist/{DealDetailView-2iuxQ5Tc.js → DealDetailView-BMQrIles.js} +2 -2
- package/dist/{IndividualDetailView-BdTovUI2.js → IndividualDetailView-BGYlXTzE.js} +46 -51
- package/dist/{index-D4L5GVbr.js → index-DSFHgVvi.js} +4 -4
- package/dist/index.js +1 -1
- package/package.json +1 -1
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { defineComponent as x, computed as f, openBlock as a, createBlock as m, unref as e, createElementBlock as k, renderSlot as se, withCtx as _, createVNode as u, mergeProps as pe, createTextVNode as _e, toDisplayString as O, createElementVNode as S, resolveDynamicComponent as V, ref as L, Fragment as T, createCommentVNode as D, normalizeClass as fe, renderList as K } from "vue";
|
|
2
2
|
import { useRouteParams as ve } from "@vueuse/router";
|
|
3
3
|
import { useI18n as N } from "vue-i18n";
|
|
4
|
-
import { B as
|
|
5
|
-
import { N as oe, _ as Je, u as We, a as Xe, b as Ye, c as Ze, d as ue, e as Q, C as re, f as F, g as es, h as ss, i as ns, j as ts, k as is } from "./CrmDetailView.vue_vue_type_script_setup_true_lang-
|
|
4
|
+
import { B as I, u as q, _ as ye, a as ge, b as he, c as Ce, d as Ue, e as xe, f as we, l as Be, A as Pe, g as Se, h as ke, i as De, j as ne, S as W, k as Ne, m as $e, J as X, o as J, n as te, p as Ie, q as Ae, W as Fe, r as Ee, s as Me, V as Qe, Q as Ve, t as Te, v as ie, I as ae, w as qe, x as ze, y as Oe, z as Le, C as Ke, D as je, E as Re, F as Ge, G as He } from "./index-DSFHgVvi.js";
|
|
5
|
+
import { N as oe, _ as Je, u as We, a as Xe, b as Ye, c as Ze, d as ue, e as Q, C as re, f as F, g as es, h as ss, i as ns, j as ts, k as is } from "./CrmDetailView.vue_vue_type_script_setup_true_lang-7UUg6E4g.js";
|
|
6
6
|
import { z as H } from "zod";
|
|
7
7
|
import { bs as E } from "./uuid.util-DUuuAgdg.js";
|
|
8
|
-
import { _ as as, c as os, a as us, b as Y, d as rs, e as ls, f as cs, u as ds, g as ms, h as bs, i as ps } from "./CrmDetailSidebarMapCard.vue_vue_type_script_setup_true_lang-
|
|
8
|
+
import { _ as as, c as os, a as us, b as Y, d as rs, e as ls, f as cs, u as ds, g as ms, h as bs, i as ps } from "./CrmDetailSidebarMapCard.vue_vue_type_script_setup_true_lang-CCUsR4oc.js";
|
|
9
9
|
import { useKeysetInfiniteQuery as le, useMutation as z, useQuery as _s } from "@wisemen/vue-core-api-utils";
|
|
10
10
|
import { useOverlay as ce, UIButton as R, createAutocompleteOptions as fs, UIAutocomplete as vs, toFormField as ys, UIDialog as gs, UIFormDialog as de, UIDialogHeader as me, UIForm as Z, UIDialogFooter as hs, UIDialogFooterSubmit as Cs, UIIconButton as ee, UIPopover as Us, UIConfirmDialog as xs } from "@wisemen/vue-core-design-system";
|
|
11
11
|
import { Motion as ws } from "motion-v";
|
|
@@ -13,7 +13,7 @@ import { useQueryClient as Bs, useMutation as Ps } from "@tanstack/vue-query";
|
|
|
13
13
|
import { useForm as j } from "formango";
|
|
14
14
|
function Ss(n) {
|
|
15
15
|
return le("businessActivityIndex", {
|
|
16
|
-
queryFn: (s) =>
|
|
16
|
+
queryFn: (s) => I.getActivity(n.value, s.key)
|
|
17
17
|
});
|
|
18
18
|
}
|
|
19
19
|
const ks = /* @__PURE__ */ x({
|
|
@@ -106,7 +106,7 @@ function Is() {
|
|
|
106
106
|
const {
|
|
107
107
|
businessUuid: o,
|
|
108
108
|
contactPersonUuid: l
|
|
109
|
-
} = i, r = await
|
|
109
|
+
} = i, r = await I.setPrimaryContactPersonForBusiness(o, l);
|
|
110
110
|
if (r.isErr())
|
|
111
111
|
throw r.error;
|
|
112
112
|
},
|
|
@@ -181,7 +181,7 @@ function As() {
|
|
|
181
181
|
queryFn: async ({
|
|
182
182
|
body: n,
|
|
183
183
|
params: s
|
|
184
|
-
}) => await
|
|
184
|
+
}) => await I.unlinkContactPerson(s.businessUuid, n.contactPersonUuid),
|
|
185
185
|
queryKeysToInvalidate: {
|
|
186
186
|
businessIndex: {},
|
|
187
187
|
wiseCrmBusinessDetail: {
|
|
@@ -194,7 +194,7 @@ function Fs() {
|
|
|
194
194
|
return z({
|
|
195
195
|
queryFn: async ({
|
|
196
196
|
params: n
|
|
197
|
-
}) => await
|
|
197
|
+
}) => await I.addChildBusiness(n.parentUuid, n.childUuid),
|
|
198
198
|
queryKeysToInvalidate: {
|
|
199
199
|
businessIndex: {},
|
|
200
200
|
wiseCrmBusinessDetail: {
|
|
@@ -356,11 +356,11 @@ const Vs = /* @__PURE__ */ ye(Es, [["render", Qs]]), Ts = /* @__PURE__ */ x({
|
|
|
356
356
|
onUpdateCbeSearchItem: g
|
|
357
357
|
} = Se({
|
|
358
358
|
onClose: y,
|
|
359
|
-
onCreate: async (
|
|
359
|
+
onCreate: async (A) => {
|
|
360
360
|
try {
|
|
361
361
|
await p.execute({
|
|
362
362
|
params: {
|
|
363
|
-
childUuid:
|
|
363
|
+
childUuid: A,
|
|
364
364
|
parentUuid: t.businessUuid
|
|
365
365
|
}
|
|
366
366
|
});
|
|
@@ -369,11 +369,11 @@ const Vs = /* @__PURE__ */ ye(Es, [["render", Qs]]), Ts = /* @__PURE__ */ x({
|
|
|
369
369
|
}
|
|
370
370
|
}
|
|
371
371
|
});
|
|
372
|
-
async function P(
|
|
372
|
+
async function P(A) {
|
|
373
373
|
try {
|
|
374
374
|
await p.execute({
|
|
375
375
|
params: {
|
|
376
|
-
childUuid:
|
|
376
|
+
childUuid: A,
|
|
377
377
|
parentUuid: t.businessUuid
|
|
378
378
|
}
|
|
379
379
|
}), i("close");
|
|
@@ -387,7 +387,7 @@ const Vs = /* @__PURE__ */ ye(Es, [["render", Qs]]), Ts = /* @__PURE__ */ x({
|
|
|
387
387
|
function G() {
|
|
388
388
|
c(), r.value = !0;
|
|
389
389
|
}
|
|
390
|
-
return (
|
|
390
|
+
return (A, U) => (a(), m(e(gs), { onClose: y }, {
|
|
391
391
|
default: _(() => [
|
|
392
392
|
r.value ? (a(), m(ke, {
|
|
393
393
|
key: 0,
|
|
@@ -410,7 +410,7 @@ const Vs = /* @__PURE__ */ ye(Es, [["render", Qs]]), Ts = /* @__PURE__ */ x({
|
|
|
410
410
|
}, null, 8, ["title", "description", "icon"]),
|
|
411
411
|
u(qs, {
|
|
412
412
|
modelValue: b.value,
|
|
413
|
-
"onUpdate:modelValue": U[0] || (U[0] = (
|
|
413
|
+
"onUpdate:modelValue": U[0] || (U[0] = ($) => b.value = $),
|
|
414
414
|
"parent-business-uuid": t.businessUuid,
|
|
415
415
|
"on-submit": P,
|
|
416
416
|
onCreateNew: G
|
|
@@ -428,7 +428,7 @@ function Hs() {
|
|
|
428
428
|
queryFn: async ({
|
|
429
429
|
body: n,
|
|
430
430
|
params: s
|
|
431
|
-
}) => await
|
|
431
|
+
}) => await I.linkContactPerson(
|
|
432
432
|
s.businessUuid,
|
|
433
433
|
n.contactPersonUuid,
|
|
434
434
|
n.position,
|
|
@@ -587,7 +587,7 @@ function Ws() {
|
|
|
587
587
|
queryFn: async ({
|
|
588
588
|
body: n,
|
|
589
589
|
params: s
|
|
590
|
-
}) => await
|
|
590
|
+
}) => await I.updateContactPerson(s.businessUuid, s.contactPersonUuid, n),
|
|
591
591
|
queryKeysToInvalidate: {
|
|
592
592
|
businessIndex: {},
|
|
593
593
|
contactPersonDetail: {
|
|
@@ -610,7 +610,7 @@ function Xs(n, s) {
|
|
|
610
610
|
throw new Error("Business UUID is null");
|
|
611
611
|
if (s.value === null)
|
|
612
612
|
throw new Error("Contact Person UUID is null");
|
|
613
|
-
return
|
|
613
|
+
return I.getContactPerson(n.value, s.value);
|
|
614
614
|
}
|
|
615
615
|
});
|
|
616
616
|
}
|
|
@@ -871,7 +871,7 @@ const Ys = /* @__PURE__ */ x({
|
|
|
871
871
|
f(() => ({
|
|
872
872
|
businessUuid: s.business.uuid
|
|
873
873
|
}))
|
|
874
|
-
), b = ce(), p = b.create(xs), y = Is(), v = As(), h = b.create(Js), d = b.create(Zs), C = b.create(Gs), w = f(() => s.business.contactPersons.length > 0), c = f(() => s.business.contactPersons.toSorted((U,
|
|
874
|
+
), b = ce(), p = b.create(xs), y = Is(), v = As(), h = b.create(Js), d = b.create(Zs), C = b.create(Gs), w = f(() => s.business.contactPersons.length > 0), c = f(() => s.business.contactPersons.toSorted((U, $) => Number($.isPrimary) - Number(U.isPrimary)));
|
|
875
875
|
function g() {
|
|
876
876
|
h.open({
|
|
877
877
|
businessUuid: s.business.uuid
|
|
@@ -890,20 +890,15 @@ const Ys = /* @__PURE__ */ x({
|
|
|
890
890
|
confirmLabel: t.t("shared.delete"),
|
|
891
891
|
description: t.t("wise_crm.info_dialog.sidebar.overview.delete_contact_person_description"),
|
|
892
892
|
onConfirm: async () => {
|
|
893
|
-
|
|
894
|
-
|
|
895
|
-
|
|
896
|
-
|
|
897
|
-
|
|
898
|
-
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
|
|
902
|
-
} catch (A) {
|
|
903
|
-
i.show(A);
|
|
904
|
-
} finally {
|
|
905
|
-
p.close();
|
|
906
|
-
}
|
|
893
|
+
const $ = await v.execute({
|
|
894
|
+
body: {
|
|
895
|
+
contactPersonUuid: U
|
|
896
|
+
},
|
|
897
|
+
params: {
|
|
898
|
+
businessUuid: s.business.uuid
|
|
899
|
+
}
|
|
900
|
+
});
|
|
901
|
+
p.close(), $.isErr() && i.show($.error);
|
|
907
902
|
}
|
|
908
903
|
});
|
|
909
904
|
}
|
|
@@ -915,12 +910,12 @@ const Ys = /* @__PURE__ */ x({
|
|
|
915
910
|
}
|
|
916
911
|
});
|
|
917
912
|
}
|
|
918
|
-
function
|
|
913
|
+
function A() {
|
|
919
914
|
C.open({
|
|
920
915
|
businessUuid: s.business.uuid
|
|
921
916
|
});
|
|
922
917
|
}
|
|
923
|
-
return (U,
|
|
918
|
+
return (U, $) => (a(), m(ue, {
|
|
924
919
|
"default-values": ["business", "invoice", "contact-persons", ...l.value.map((B) => `custom-${B.key}`)]
|
|
925
920
|
}, {
|
|
926
921
|
default: _(() => [
|
|
@@ -932,7 +927,7 @@ const Ys = /* @__PURE__ */ x({
|
|
|
932
927
|
default: _(() => [
|
|
933
928
|
u(mn, {
|
|
934
929
|
business: n.business,
|
|
935
|
-
onAddChild:
|
|
930
|
+
onAddChild: A
|
|
936
931
|
}, null, 8, ["business"])
|
|
937
932
|
]),
|
|
938
933
|
_: 1
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { defineComponent as b, computed as
|
|
2
|
-
import { UITooltip as H, UIIconButton as Q, UIText as
|
|
3
|
-
import { q as O, p as oe, W as K, ai as be, r as
|
|
1
|
+
import { defineComponent as b, computed as P, openBlock as n, createBlock as c, unref as e, withCtx as s, createElementVNode as d, resolveDynamicComponent as F, createElementBlock as _, toDisplayString as m, createVNode as a, renderSlot as J, createCommentVNode as p, Fragment as C, renderList as j, createTextVNode as z, ref as ce, mergeProps as y } from "vue";
|
|
2
|
+
import { UITooltip as H, UIIconButton as Q, UIText as ue, UIBadgeGroup as de, UIBadge as G, UITimeline as me, UITimelineItem as pe, UIDialogBody as Z, UIFormLayout as X, UIFormFieldGroup as Y, UIFormFieldGrid as T, UITextField as U, toFormField as v, UIPhoneNumberField as B, UIDialogFooter as ee, UIDialogFooterSubmit as te, UIDialogFooterCancel as fe, UIDropdownMenu as _e, UIDropdownMenuGroup as ge, UIDropdownMenuItem as R } from "@wisemen/vue-core-design-system";
|
|
3
|
+
import { q as O, p as oe, W as K, ai as be, r as le, j as he, aj as ye, f as ve, ak as xe, I as ae, al as we, t as W, am as ke, z as Pe, u as Ce, a3 as $e, a9 as ne, A as E, a4 as Ie, a5 as Ne, a7 as Se, a6 as A, a8 as re, $ as Ue, a0 as Fe, a1 as Ae, a2 as De, an as ze } from "./index-DSFHgVvi.js";
|
|
4
4
|
import { bs as se } from "./uuid.util-DUuuAgdg.js";
|
|
5
5
|
import { useClipboard as Ve } from "@vueuse/core";
|
|
6
6
|
import { useI18n as $ } from "vue-i18n";
|
|
7
|
-
import { m as Me, C as q, f as M, c as Te, l as Be } from "./CrmDetailView.vue_vue_type_script_setup_true_lang-
|
|
7
|
+
import { m as Me, C as q, f as M, c as Te, l as Be } from "./CrmDetailView.vue_vue_type_script_setup_true_lang-7UUg6E4g.js";
|
|
8
8
|
import { RouterLink as Ee } from "vue-router";
|
|
9
9
|
import V, { z as f } from "zod";
|
|
10
10
|
import { GoogleMap as Le } from "vue3-google-map";
|
|
@@ -14,8 +14,8 @@ const je = { class: "flex items-center gap-sm p-sm px-md text-brand-500" }, Ge =
|
|
|
14
14
|
type: {},
|
|
15
15
|
value: {}
|
|
16
16
|
},
|
|
17
|
-
setup(
|
|
18
|
-
const t =
|
|
17
|
+
setup(l) {
|
|
18
|
+
const t = l, o = $(), i = P(() => {
|
|
19
19
|
switch (t.type) {
|
|
20
20
|
case "address":
|
|
21
21
|
return K;
|
|
@@ -26,7 +26,7 @@ const je = { class: "flex items-center gap-sm p-sm px-md text-brand-500" }, Ge =
|
|
|
26
26
|
default:
|
|
27
27
|
return O;
|
|
28
28
|
}
|
|
29
|
-
}), r =
|
|
29
|
+
}), r = P(() => {
|
|
30
30
|
switch (t.type) {
|
|
31
31
|
case "email":
|
|
32
32
|
return `mailto:${t.value}`;
|
|
@@ -37,7 +37,7 @@ const je = { class: "flex items-center gap-sm p-sm px-md text-brand-500" }, Ge =
|
|
|
37
37
|
default:
|
|
38
38
|
return null;
|
|
39
39
|
}
|
|
40
|
-
}), h =
|
|
40
|
+
}), h = P(() => {
|
|
41
41
|
switch (t.type) {
|
|
42
42
|
case "email":
|
|
43
43
|
return o.t("component.contact_tooltip.aria_label.email", {
|
|
@@ -54,19 +54,19 @@ const je = { class: "flex items-center gap-sm p-sm px-md text-brand-500" }, Ge =
|
|
|
54
54
|
default:
|
|
55
55
|
return t.value;
|
|
56
56
|
}
|
|
57
|
-
}),
|
|
57
|
+
}), u = Ve({
|
|
58
58
|
source: t.value
|
|
59
59
|
});
|
|
60
60
|
function g() {
|
|
61
|
-
|
|
61
|
+
u.copy(t.value);
|
|
62
62
|
}
|
|
63
63
|
return (x, I) => (n(), c(e(H), null, {
|
|
64
64
|
trigger: s(() => [
|
|
65
65
|
(n(), c(F(r.value ? "a" : "div"), {
|
|
66
66
|
href: r.value,
|
|
67
67
|
"aria-label": h.value,
|
|
68
|
-
target:
|
|
69
|
-
rel:
|
|
68
|
+
target: l.type === "address" ? "_blank" : void 0,
|
|
69
|
+
rel: l.type === "address" ? "noopener noreferrer" : void 0,
|
|
70
70
|
class: "flex aspect-square size-8 items-center justify-center rounded-full border-none bg-gray-50/50 p-xs ring-brand-500 ring-offset-2 duration-300 outline-none focus-visible:ring-2 data-[loading=false]:not-disabled:hover:bg-gray-50/30 dark:bg-brand-950"
|
|
71
71
|
}, {
|
|
72
72
|
default: s(() => [
|
|
@@ -76,18 +76,18 @@ const je = { class: "flex items-center gap-sm p-sm px-md text-brand-500" }, Ge =
|
|
|
76
76
|
}, 8, ["href", "aria-label", "target", "rel"]))
|
|
77
77
|
]),
|
|
78
78
|
content: s(() => [
|
|
79
|
-
|
|
79
|
+
d("div", je, [
|
|
80
80
|
(n(), c(F(i.value), { class: "size-4" })),
|
|
81
|
-
|
|
81
|
+
l.type === "email" ? (n(), _("a", {
|
|
82
82
|
key: 0,
|
|
83
83
|
href: `mailto:${t.value}`,
|
|
84
84
|
class: "underline ring-brand-500 ring-offset-1 duration-200 outline-none focus-visible:ring-2"
|
|
85
|
-
}, m(t.value), 9, Ge)) :
|
|
85
|
+
}, m(t.value), 9, Ge)) : l.type === "phone" ? (n(), _("a", {
|
|
86
86
|
key: 1,
|
|
87
87
|
href: `tel:${t.value}`,
|
|
88
88
|
class: "underline ring-brand-500 ring-offset-1 duration-200 outline-none focus-visible:ring-2"
|
|
89
89
|
}, m(t.value), 9, Oe)) : (n(), _("p", Ke, m(t.value), 1)),
|
|
90
|
-
|
|
90
|
+
a(e(Q), {
|
|
91
91
|
label: e(o).t("wise_crm.info_dialog.copy_to_clipboard"),
|
|
92
92
|
icon: e(be),
|
|
93
93
|
variant: "tertiary",
|
|
@@ -110,16 +110,16 @@ const je = { class: "flex items-center gap-sm p-sm px-md text-brand-500" }, Ge =
|
|
|
110
110
|
mobilePhone: {},
|
|
111
111
|
phone: {}
|
|
112
112
|
},
|
|
113
|
-
setup(
|
|
114
|
-
const t =
|
|
113
|
+
setup(l) {
|
|
114
|
+
const t = l;
|
|
115
115
|
return (o, i) => (n(), _("div", qe, [
|
|
116
|
-
|
|
117
|
-
|
|
116
|
+
d("div", Je, [
|
|
117
|
+
a(e(ue), {
|
|
118
118
|
text: t.name,
|
|
119
119
|
as: "h2",
|
|
120
120
|
class: "min-w-0 flex-1 text-xl font-bold text-primary"
|
|
121
121
|
}, null, 8, ["text"]),
|
|
122
|
-
|
|
122
|
+
d("div", Re, [
|
|
123
123
|
J(o.$slots, "actions"),
|
|
124
124
|
t.email !== null ? (n(), c(L, {
|
|
125
125
|
key: 0,
|
|
@@ -133,14 +133,14 @@ const je = { class: "flex items-center gap-sm p-sm px-md text-brand-500" }, Ge =
|
|
|
133
133
|
}, null, 8, ["value"])) : p("", !0),
|
|
134
134
|
t.address !== null ? (n(), c(L, {
|
|
135
135
|
key: 2,
|
|
136
|
-
value: e(
|
|
136
|
+
value: e(le).format(t.address),
|
|
137
137
|
type: "address"
|
|
138
138
|
}, null, 8, ["value"])) : p("", !0)
|
|
139
139
|
])
|
|
140
140
|
]),
|
|
141
|
-
|
|
141
|
+
a(e(de), null, {
|
|
142
142
|
default: s(() => [
|
|
143
|
-
|
|
143
|
+
a(e(G), {
|
|
144
144
|
icon: t.entityType === e(se).BUSINESS ? e(he) : e(ye),
|
|
145
145
|
label: t.entityName ?? "-",
|
|
146
146
|
variant: "translucent",
|
|
@@ -160,12 +160,12 @@ const je = { class: "flex items-center gap-sm p-sm px-md text-brand-500" }, Ge =
|
|
|
160
160
|
props: {
|
|
161
161
|
activity: {}
|
|
162
162
|
},
|
|
163
|
-
setup(
|
|
164
|
-
const t =
|
|
163
|
+
setup(l) {
|
|
164
|
+
const t = l;
|
|
165
165
|
function o(r) {
|
|
166
166
|
return r === null ? "" : typeof r == "object" ? JSON.stringify(r) : r.toString();
|
|
167
167
|
}
|
|
168
|
-
const i =
|
|
168
|
+
const i = P(() => t.activity.message.split(" ").map((r) => r === "[note]" ? {
|
|
169
169
|
text: t.activity.content?.note?.name ?? "",
|
|
170
170
|
type: "text"
|
|
171
171
|
} : r === "[contactPerson]" ? {
|
|
@@ -181,54 +181,54 @@ const je = { class: "flex items-center gap-sm p-sm px-md text-brand-500" }, Ge =
|
|
|
181
181
|
type: "text"
|
|
182
182
|
}));
|
|
183
183
|
return (r, h) => (n(), _("div", We, [
|
|
184
|
-
(n(!0), _(C, null, j(i.value, (
|
|
185
|
-
|
|
186
|
-
|
|
184
|
+
(n(!0), _(C, null, j(i.value, (u) => (n(), _(C, { key: u }, [
|
|
185
|
+
u.type === "text" ? (n(), _("span", He, m(u.text), 1)) : p("", !0),
|
|
186
|
+
u.type === "link" && u.route !== void 0 ? (n(), c(e(Ee), {
|
|
187
187
|
key: 1,
|
|
188
|
-
to:
|
|
188
|
+
to: u.route,
|
|
189
189
|
class: "hover:text-brand text-sm font-medium text-primary hover:underline"
|
|
190
190
|
}, {
|
|
191
191
|
default: s(() => [
|
|
192
|
-
z(m(
|
|
192
|
+
z(m(u.text), 1)
|
|
193
193
|
]),
|
|
194
194
|
_: 2
|
|
195
195
|
}, 1032, ["to"])) : p("", !0)
|
|
196
196
|
], 64))), 128)),
|
|
197
197
|
t.activity.changes.length > 0 ? (n(), c(e(H), { key: 0 }, {
|
|
198
198
|
trigger: s(() => [
|
|
199
|
-
(n(), c(F(e(
|
|
199
|
+
(n(), c(F(e(ae)), { class: "size-3 text-tertiary" }))
|
|
200
200
|
]),
|
|
201
201
|
content: s(() => [
|
|
202
|
-
|
|
202
|
+
a(ve, {
|
|
203
203
|
cols: 1,
|
|
204
204
|
class: "max-w-80 p-lg"
|
|
205
205
|
}, {
|
|
206
206
|
default: s(() => [
|
|
207
|
-
(n(!0), _(C, null, j(t.activity.changes, (
|
|
208
|
-
key: JSON.stringify(
|
|
207
|
+
(n(!0), _(C, null, j(t.activity.changes, (u) => (n(), _("div", {
|
|
208
|
+
key: JSON.stringify(u),
|
|
209
209
|
class: "flex flex-col gap-sm"
|
|
210
210
|
}, [
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
211
|
+
d("div", Qe, [
|
|
212
|
+
d("p", Ze, m(u.key) + ": ", 1),
|
|
213
|
+
u.oldValue !== null ? (n(), c(e(G), {
|
|
214
214
|
key: 0,
|
|
215
215
|
"class-config": {
|
|
216
216
|
root: "rounded-sm border-none whitespace-pre-wrap"
|
|
217
217
|
},
|
|
218
|
-
label: o(
|
|
218
|
+
label: o(u.oldValue),
|
|
219
219
|
size: "sm",
|
|
220
220
|
variant: "translucent",
|
|
221
221
|
color: "error"
|
|
222
222
|
}, null, 8, ["label"])) : p("", !0),
|
|
223
|
-
|
|
223
|
+
u.oldValue !== null && u.value !== null ? (n(), c(F(e(xe)), {
|
|
224
224
|
key: 1,
|
|
225
225
|
class: "size-3"
|
|
226
226
|
})) : p("", !0),
|
|
227
|
-
|
|
227
|
+
a(e(G), {
|
|
228
228
|
"class-config": {
|
|
229
229
|
root: "rounded-sm border-none whitespace-pre-wrap"
|
|
230
230
|
},
|
|
231
|
-
label: o(
|
|
231
|
+
label: o(u.value),
|
|
232
232
|
size: "sm",
|
|
233
233
|
variant: "translucent",
|
|
234
234
|
color: "success"
|
|
@@ -248,16 +248,16 @@ const je = { class: "flex items-center gap-sm p-sm px-md text-brand-500" }, Ge =
|
|
|
248
248
|
props: {
|
|
249
249
|
activity: {}
|
|
250
250
|
},
|
|
251
|
-
setup(
|
|
252
|
-
const t =
|
|
251
|
+
setup(l) {
|
|
252
|
+
const t = l;
|
|
253
253
|
function o(i) {
|
|
254
254
|
return we.isToday(i) ? W().fromNow(i.toInstant()) : W().toDate(i.toPlainDate());
|
|
255
255
|
}
|
|
256
256
|
return (i, r) => (n(), _(C, null, [
|
|
257
|
-
|
|
257
|
+
a(Xe, {
|
|
258
258
|
activity: t.activity
|
|
259
259
|
}, null, 8, ["activity"]),
|
|
260
|
-
|
|
260
|
+
d("p", Ye, m(o(t.activity.createdAt)) + " · " + m(t.activity.changedBy), 1)
|
|
261
261
|
], 64));
|
|
262
262
|
}
|
|
263
263
|
}), St = /* @__PURE__ */ b({
|
|
@@ -267,12 +267,12 @@ const je = { class: "flex items-center gap-sm p-sm px-md text-brand-500" }, Ge =
|
|
|
267
267
|
activities: {},
|
|
268
268
|
onNext: { type: Function }
|
|
269
269
|
},
|
|
270
|
-
setup(
|
|
271
|
-
const t =
|
|
270
|
+
setup(l) {
|
|
271
|
+
const t = l, o = $(), i = P(() => !t.isLoading && t.activities.length === 0);
|
|
272
272
|
async function r() {
|
|
273
273
|
await t.onNext();
|
|
274
274
|
}
|
|
275
|
-
return (h,
|
|
275
|
+
return (h, u) => (n(), c(ke, {
|
|
276
276
|
"on-next": r,
|
|
277
277
|
class: "h-full"
|
|
278
278
|
}, {
|
|
@@ -282,13 +282,13 @@ const je = { class: "flex items-center gap-sm p-sm px-md text-brand-500" }, Ge =
|
|
|
282
282
|
size: "md"
|
|
283
283
|
}, {
|
|
284
284
|
default: s(() => [
|
|
285
|
-
(n(!0), _(C, null, j(
|
|
285
|
+
(n(!0), _(C, null, j(l.activities, (g, x) => (n(), c(e(pe), {
|
|
286
286
|
key: JSON.stringify(g),
|
|
287
|
-
icon: e(
|
|
288
|
-
"is-last": x ===
|
|
287
|
+
icon: e(ae),
|
|
288
|
+
"is-last": x === l.activities.length - 1
|
|
289
289
|
}, {
|
|
290
290
|
default: s(() => [
|
|
291
|
-
|
|
291
|
+
a(et, { activity: g }, null, 8, ["activity"])
|
|
292
292
|
]),
|
|
293
293
|
_: 2
|
|
294
294
|
}, 1032, ["icon", "is-last"]))), 128))
|
|
@@ -299,7 +299,7 @@ const je = { class: "flex items-center gap-sm p-sm px-md text-brand-500" }, Ge =
|
|
|
299
299
|
key: 1,
|
|
300
300
|
title: e(o).t("wise_crm.info_dialog.activity.empty_state.title"),
|
|
301
301
|
description: e(o).t("wise_crm.info_dialog.activity.empty_state.description"),
|
|
302
|
-
icon: e(
|
|
302
|
+
icon: e(Pe)
|
|
303
303
|
}, null, 8, ["title", "description", "icon"])) : p("", !0)
|
|
304
304
|
]),
|
|
305
305
|
_: 1
|
|
@@ -311,47 +311,47 @@ const je = { class: "flex items-center gap-sm p-sm px-md text-brand-500" }, Ge =
|
|
|
311
311
|
form: {}
|
|
312
312
|
},
|
|
313
313
|
emits: ["createNewContactPerson"],
|
|
314
|
-
setup(
|
|
315
|
-
const o =
|
|
314
|
+
setup(l, { emit: t }) {
|
|
315
|
+
const o = l, i = t, r = $(), h = Ce(), u = o.form.register("position"), g = o.form.register("email"), x = o.form.register("phone"), I = o.form.register("mobile"), w = o.form.register("existingContactPerson"), N = ce(null);
|
|
316
316
|
async function ie(D) {
|
|
317
317
|
if (N.value = D, D === null) {
|
|
318
318
|
w.setValue(null);
|
|
319
319
|
return;
|
|
320
320
|
}
|
|
321
321
|
w.setValue(D.uuid);
|
|
322
|
-
const
|
|
323
|
-
if (
|
|
324
|
-
h.show(
|
|
322
|
+
const k = await Ie.getByUuid(D.uuid);
|
|
323
|
+
if (k.isErr()) {
|
|
324
|
+
h.show(k.error);
|
|
325
325
|
return;
|
|
326
326
|
}
|
|
327
|
-
const S =
|
|
327
|
+
const S = k.value;
|
|
328
328
|
g.setValue(S.email), x.setValue(S.phone), I.setValue(S.mobilePhone);
|
|
329
329
|
}
|
|
330
|
-
return (D,
|
|
331
|
-
|
|
330
|
+
return (D, k) => (n(), _(C, null, [
|
|
331
|
+
a(e(Z), null, {
|
|
332
332
|
default: s(() => [
|
|
333
|
-
|
|
333
|
+
a(e(X), null, {
|
|
334
334
|
default: s(() => [
|
|
335
|
-
|
|
335
|
+
a(e(Y), null, {
|
|
336
336
|
default: s(() => [
|
|
337
|
-
|
|
337
|
+
a(e(T), {
|
|
338
338
|
sm: 1,
|
|
339
339
|
lg: 1
|
|
340
340
|
}, {
|
|
341
341
|
default: s(() => [
|
|
342
|
-
|
|
342
|
+
a($e, {
|
|
343
343
|
modelValue: N.value,
|
|
344
344
|
"onUpdate:modelValue": [
|
|
345
|
-
|
|
345
|
+
k[0] || (k[0] = (S) => N.value = S),
|
|
346
346
|
ie
|
|
347
347
|
],
|
|
348
348
|
"is-touched": e(w).isTouched.value,
|
|
349
349
|
"error-message": e(w).isTouched.value ? e(w).errors.value[0]?.message ?? null : null,
|
|
350
350
|
label: e(r).t("wise_crm.contact.create_dialog.form.fields.contact_person"),
|
|
351
351
|
onBlur: e(w).onBlur,
|
|
352
|
-
onCreateNew:
|
|
352
|
+
onCreateNew: k[1] || (k[1] = (S) => i("createNewContactPerson"))
|
|
353
353
|
}, null, 8, ["modelValue", "is-touched", "error-message", "label", "onBlur"]),
|
|
354
|
-
N.value !== null ? (n(), c(e(U), y({ key: 0 }, e(v)(e(
|
|
354
|
+
N.value !== null ? (n(), c(e(U), y({ key: 0 }, e(v)(e(u)), {
|
|
355
355
|
label: e(r).t("wise_crm.contact.create_dialog.form.fields.position"),
|
|
356
356
|
placeholder: e(r).t("wise_crm.contact.create_dialog.form.fields.position")
|
|
357
357
|
}), null, 16, ["label", "placeholder"])) : p("", !0)
|
|
@@ -366,33 +366,33 @@ const je = { class: "flex items-center gap-sm p-sm px-md text-brand-500" }, Ge =
|
|
|
366
366
|
title: e(r).t("wise_crm.shared.contact_info")
|
|
367
367
|
}, {
|
|
368
368
|
default: s(() => [
|
|
369
|
-
|
|
369
|
+
a(e(T), {
|
|
370
370
|
sm: 1,
|
|
371
371
|
lg: 1,
|
|
372
372
|
variant: "card"
|
|
373
373
|
}, {
|
|
374
374
|
default: s(() => [
|
|
375
|
-
|
|
375
|
+
a(e(U), y(e(v)(e(g)), {
|
|
376
376
|
label: e(r).t("wise_crm.contact.create_dialog.form.fields.email"),
|
|
377
377
|
placeholder: e(r).t("wise_crm.contact.create_dialog.form.fields.email")
|
|
378
378
|
}), null, 16, ["label", "placeholder"]),
|
|
379
|
-
|
|
379
|
+
a(E, null, {
|
|
380
380
|
default: s(() => [
|
|
381
381
|
z(m(e(r).t("wise_crm.contact.create_dialog.form.seperator_label")), 1)
|
|
382
382
|
]),
|
|
383
383
|
_: 1
|
|
384
384
|
}),
|
|
385
|
-
|
|
385
|
+
a(e(B), y(e(v)(e(I)), {
|
|
386
386
|
label: e(r).t("wise_crm.contact.create_dialog.form.fields.mobile_phone"),
|
|
387
387
|
placeholder: e(r).t("wise_crm.contact.create_dialog.form.fields.mobile_phone")
|
|
388
388
|
}), null, 16, ["label", "placeholder"]),
|
|
389
|
-
|
|
389
|
+
a(E, null, {
|
|
390
390
|
default: s(() => [
|
|
391
391
|
z(m(e(r).t("wise_crm.contact.create_dialog.form.seperator_label")), 1)
|
|
392
392
|
]),
|
|
393
393
|
_: 1
|
|
394
394
|
}),
|
|
395
|
-
|
|
395
|
+
a(e(B), y(e(v)(e(x)), {
|
|
396
396
|
label: e(r).t("wise_crm.contact.create_dialog.form.fields.phone"),
|
|
397
397
|
placeholder: e(r).t("wise_crm.contact.create_dialog.form.fields.phone")
|
|
398
398
|
}), null, 16, ["label", "placeholder"])
|
|
@@ -408,9 +408,9 @@ const je = { class: "flex items-center gap-sm p-sm px-md text-brand-500" }, Ge =
|
|
|
408
408
|
]),
|
|
409
409
|
_: 1
|
|
410
410
|
}),
|
|
411
|
-
|
|
411
|
+
a(e(ee), null, {
|
|
412
412
|
right: s(() => [
|
|
413
|
-
|
|
413
|
+
a(e(te), {
|
|
414
414
|
"is-loading": o.form.isSubmitting.value,
|
|
415
415
|
label: e(r).t("wise_crm.shared.add")
|
|
416
416
|
}, null, 8, ["is-loading", "label"])
|
|
@@ -424,28 +424,28 @@ const je = { class: "flex items-center gap-sm p-sm px-md text-brand-500" }, Ge =
|
|
|
424
424
|
props: {
|
|
425
425
|
form: {}
|
|
426
426
|
},
|
|
427
|
-
setup(
|
|
428
|
-
const t =
|
|
427
|
+
setup(l) {
|
|
428
|
+
const t = l, o = $(), i = t.form.register("firstName"), r = t.form.register("lastName"), h = t.form.register("email"), u = t.form.register("mobilePhone"), g = t.form.register("position"), x = t.form.register("phone");
|
|
429
429
|
return (I, w) => (n(), c(e(Z), null, {
|
|
430
430
|
default: s(() => [
|
|
431
|
-
|
|
431
|
+
a(e(X), null, {
|
|
432
432
|
default: s(() => [
|
|
433
|
-
|
|
433
|
+
a(e(Y), null, {
|
|
434
434
|
default: s(() => [
|
|
435
|
-
|
|
435
|
+
a(e(T), {
|
|
436
436
|
sm: 1,
|
|
437
437
|
lg: 2
|
|
438
438
|
}, {
|
|
439
439
|
default: s(() => [
|
|
440
|
-
|
|
440
|
+
a(e(U), y(e(v)(e(i)), {
|
|
441
441
|
label: e(o).t("wise_crm.contact.create_dialog.form.fields.first_name"),
|
|
442
442
|
placeholder: e(o).t("wise_crm.contact.create_dialog.form.fields.first_name")
|
|
443
443
|
}), null, 16, ["label", "placeholder"]),
|
|
444
|
-
|
|
444
|
+
a(e(U), y(e(v)(e(r)), {
|
|
445
445
|
label: e(o).t("wise_crm.contact.create_dialog.form.fields.last_name"),
|
|
446
446
|
placeholder: e(o).t("wise_crm.contact.create_dialog.form.fields.last_name")
|
|
447
447
|
}), null, 16, ["label", "placeholder"]),
|
|
448
|
-
|
|
448
|
+
a(e(U), y(e(v)(e(g)), {
|
|
449
449
|
label: e(o).t("wise_crm.contact.create_dialog.form.fields.position"),
|
|
450
450
|
placeholder: e(o).t("wise_crm.contact.create_dialog.form.fields.position"),
|
|
451
451
|
class: "col-span-2"
|
|
@@ -456,44 +456,44 @@ const je = { class: "flex items-center gap-sm p-sm px-md text-brand-500" }, Ge =
|
|
|
456
456
|
]),
|
|
457
457
|
_: 1
|
|
458
458
|
}),
|
|
459
|
-
|
|
459
|
+
a(ne, {
|
|
460
460
|
title: e(o).t("wise_crm.shared.contact_info")
|
|
461
461
|
}, {
|
|
462
462
|
default: s(() => [
|
|
463
|
-
|
|
463
|
+
a(e(T), {
|
|
464
464
|
sm: 1,
|
|
465
465
|
lg: 1,
|
|
466
466
|
variant: "card"
|
|
467
467
|
}, {
|
|
468
468
|
default: s(() => [
|
|
469
|
-
|
|
469
|
+
a(e(U), y(e(v)(e(h)), {
|
|
470
470
|
label: e(o).t("wise_crm.contact.create_dialog.form.fields.email"),
|
|
471
471
|
placeholder: e(o).t("wise_crm.contact.create_dialog.form.fields.email")
|
|
472
472
|
}), null, 16, ["label", "placeholder"]),
|
|
473
|
-
|
|
473
|
+
a(E, null, {
|
|
474
474
|
default: s(() => [
|
|
475
475
|
z(m(e(o).t("wise_crm.contact.create_dialog.form.seperator_label")), 1)
|
|
476
476
|
]),
|
|
477
477
|
_: 1
|
|
478
478
|
}),
|
|
479
|
-
|
|
479
|
+
a(e(B), y(e(v)(e(u)), {
|
|
480
480
|
label: e(o).t("wise_crm.contact.create_dialog.form.fields.mobile_phone"),
|
|
481
481
|
placeholder: e(o).t("wise_crm.contact.create_dialog.form.fields.mobile_phone")
|
|
482
482
|
}), null, 16, ["label", "placeholder"]),
|
|
483
|
-
|
|
483
|
+
a(E, null, {
|
|
484
484
|
default: s(() => [
|
|
485
485
|
z(m(e(o).t("wise_crm.contact.create_dialog.form.seperator_label")), 1)
|
|
486
486
|
]),
|
|
487
487
|
_: 1
|
|
488
488
|
}),
|
|
489
|
-
|
|
489
|
+
a(e(B), y(e(v)(e(x)), {
|
|
490
490
|
label: e(o).t("wise_crm.contact.create_dialog.form.fields.phone"),
|
|
491
491
|
placeholder: e(o).t("wise_crm.contact.create_dialog.form.fields.phone")
|
|
492
492
|
}), null, 16, ["label", "placeholder"])
|
|
493
493
|
]),
|
|
494
494
|
_: 1
|
|
495
495
|
}),
|
|
496
|
-
|
|
496
|
+
a(Ne, {
|
|
497
497
|
form: t.form
|
|
498
498
|
}, null, 8, ["form"])
|
|
499
499
|
]),
|
|
@@ -514,24 +514,24 @@ const je = { class: "flex items-center gap-sm p-sm px-md text-brand-500" }, Ge =
|
|
|
514
514
|
existingForm: {}
|
|
515
515
|
},
|
|
516
516
|
emits: ["update:isNewMode"],
|
|
517
|
-
setup(
|
|
518
|
-
const o =
|
|
519
|
-
return (h,
|
|
517
|
+
setup(l, { emit: t }) {
|
|
518
|
+
const o = l, i = t, r = $();
|
|
519
|
+
return (h, u) => (n(), _(C, null, [
|
|
520
520
|
o.isNewMode ? (n(), c(ot, {
|
|
521
521
|
key: 0,
|
|
522
522
|
form: o.createForm
|
|
523
523
|
}, null, 8, ["form"])) : (n(), c(tt, {
|
|
524
524
|
key: 1,
|
|
525
525
|
form: o.existingForm,
|
|
526
|
-
onCreateNewContactPerson:
|
|
526
|
+
onCreateNewContactPerson: u[0] || (u[0] = (g) => i("update:isNewMode", !0))
|
|
527
527
|
}, null, 8, ["form"])),
|
|
528
528
|
o.isNewMode ? (n(), c(e(ee), { key: 2 }, {
|
|
529
529
|
right: s(() => [
|
|
530
|
-
|
|
530
|
+
a(e(fe), {
|
|
531
531
|
label: e(r).t("wise_crm.contact.create_dialog.form.back"),
|
|
532
|
-
onClick:
|
|
532
|
+
onClick: u[1] || (u[1] = (g) => i("update:isNewMode", !1))
|
|
533
533
|
}, null, 8, ["label"]),
|
|
534
|
-
|
|
534
|
+
a(e(te), {
|
|
535
535
|
"is-loading": o.createForm.isSubmitting.value,
|
|
536
536
|
label: e(r).t("wise_crm.shared.create")
|
|
537
537
|
}, null, 8, ["is-loading", "label"])
|
|
@@ -553,8 +553,8 @@ const je = { class: "flex items-center gap-sm p-sm px-md text-brand-500" }, Ge =
|
|
|
553
553
|
mobilePhone: A.nullable(),
|
|
554
554
|
phone: A.nullable(),
|
|
555
555
|
position: f.string().nullable()
|
|
556
|
-
}).superRefine((
|
|
557
|
-
|
|
556
|
+
}).superRefine((l, t) => {
|
|
557
|
+
l.email !== null && l.email !== "" || l.mobilePhone !== null && l.mobilePhone !== "" || l.phone !== null && l.phone !== "" || t.addIssue({
|
|
558
558
|
code: f.ZodIssueCode.custom,
|
|
559
559
|
message: re.global.t("wise_crm.form.errors.at_least_one")
|
|
560
560
|
});
|
|
@@ -565,25 +565,25 @@ const je = { class: "flex items-center gap-sm p-sm px-md text-brand-500" }, Ge =
|
|
|
565
565
|
mobilePhone: A.nullable(),
|
|
566
566
|
phone: A.nullable(),
|
|
567
567
|
position: f.string().nullable()
|
|
568
|
-
}).superRefine((
|
|
569
|
-
|
|
568
|
+
}).superRefine((l, t) => {
|
|
569
|
+
l.email !== null && l.email !== "" || l.mobilePhone !== null && l.mobilePhone !== "" || l.phone !== null && l.phone !== "" || t.addIssue({
|
|
570
570
|
code: f.ZodIssueCode.custom,
|
|
571
571
|
message: re.global.t("wise_crm.form.errors.at_least_one")
|
|
572
572
|
});
|
|
573
|
-
}),
|
|
573
|
+
}), lt = { class: "font-semibold text-primary" }, at = { class: "flex flex-col gap-sm" }, zt = /* @__PURE__ */ b({
|
|
574
574
|
__name: "CrmDetailSidebarAccordionBillingInformation",
|
|
575
575
|
props: {
|
|
576
576
|
invoiceAddress: {},
|
|
577
577
|
invoiceEmail: {}
|
|
578
578
|
},
|
|
579
|
-
setup(
|
|
580
|
-
const t =
|
|
579
|
+
setup(l) {
|
|
580
|
+
const t = l;
|
|
581
581
|
return (o, i) => (n(), c(q, { class: "flex flex-col gap-md" }, {
|
|
582
582
|
default: s(() => [
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
label: t.invoiceAddress !== null ? e(
|
|
583
|
+
d("p", lt, m(t.invoiceEmail), 1),
|
|
584
|
+
d("div", at, [
|
|
585
|
+
a(M, {
|
|
586
|
+
label: t.invoiceAddress !== null ? e(le).formatShort(t.invoiceAddress) : "-",
|
|
587
587
|
icon: e(K)
|
|
588
588
|
}, null, 8, ["label", "icon"])
|
|
589
589
|
])
|
|
@@ -598,13 +598,13 @@ const je = { class: "flex items-center gap-sm p-sm px-md text-brand-500" }, Ge =
|
|
|
598
598
|
onToggleIsPrimary: { type: Function }
|
|
599
599
|
},
|
|
600
600
|
emits: ["delete", "update"],
|
|
601
|
-
setup(
|
|
602
|
-
const o =
|
|
601
|
+
setup(l, { emit: t }) {
|
|
602
|
+
const o = l, i = t, r = $(), h = {
|
|
603
603
|
left: {
|
|
604
604
|
icon: Ue,
|
|
605
605
|
type: "icon"
|
|
606
606
|
}
|
|
607
|
-
},
|
|
607
|
+
}, u = {
|
|
608
608
|
left: {
|
|
609
609
|
icon: Fe,
|
|
610
610
|
type: "icon"
|
|
@@ -621,24 +621,24 @@ const je = { class: "flex items-center gap-sm p-sm px-md text-brand-500" }, Ge =
|
|
|
621
621
|
}
|
|
622
622
|
return (w, N) => (n(), c(q, { class: "flex flex-col gap-lg" }, {
|
|
623
623
|
default: s(() => [
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
624
|
+
d("div", nt, [
|
|
625
|
+
d("div", rt, [
|
|
626
|
+
a(Te, {
|
|
627
627
|
"entity-type": e(se).INDIVIDUAL,
|
|
628
628
|
uuid: o.contactPerson.uuid,
|
|
629
629
|
label: `${o.contactPerson.firstName} ${o.contactPerson.lastName}`,
|
|
630
630
|
class: "-ml-xs"
|
|
631
631
|
}, null, 8, ["entity-type", "uuid", "label"]),
|
|
632
|
-
|
|
632
|
+
d("p", st, m(o.contactPerson.position), 1)
|
|
633
633
|
]),
|
|
634
|
-
|
|
635
|
-
|
|
634
|
+
d("div", it, [
|
|
635
|
+
a(Be, {
|
|
636
636
|
"is-active": o.contactPerson.isPrimary,
|
|
637
637
|
onClick: I
|
|
638
638
|
}, null, 8, ["is-active"]),
|
|
639
|
-
|
|
639
|
+
a(e(_e), { "popover-align": "end" }, {
|
|
640
640
|
trigger: s(() => [
|
|
641
|
-
|
|
641
|
+
a(e(Q), {
|
|
642
642
|
icon: e(Ae),
|
|
643
643
|
variant: "tertiary",
|
|
644
644
|
size: "sm",
|
|
@@ -646,20 +646,19 @@ const je = { class: "flex items-center gap-sm p-sm px-md text-brand-500" }, Ge =
|
|
|
646
646
|
}, null, 8, ["icon"])
|
|
647
647
|
]),
|
|
648
648
|
content: s(() => [
|
|
649
|
-
|
|
649
|
+
a(e(ge), null, {
|
|
650
650
|
default: s(() => [
|
|
651
|
-
|
|
651
|
+
a(e(R), {
|
|
652
652
|
config: h,
|
|
653
653
|
label: e(r).t("wise_crm.info_dialog.sidebar.overview.update_contact_person"),
|
|
654
654
|
onSelect: g
|
|
655
655
|
}, null, 8, ["label"]),
|
|
656
|
-
|
|
656
|
+
a(e(R), {
|
|
657
657
|
"is-destructive": !0,
|
|
658
|
-
|
|
659
|
-
config: d,
|
|
658
|
+
config: u,
|
|
660
659
|
label: e(r).t("wise_crm.info_dialog.sidebar.overview.delete_contact_person"),
|
|
661
660
|
onSelect: x
|
|
662
|
-
}, null, 8, ["
|
|
661
|
+
}, null, 8, ["label"])
|
|
663
662
|
]),
|
|
664
663
|
_: 1
|
|
665
664
|
})
|
|
@@ -668,7 +667,7 @@ const je = { class: "flex items-center gap-sm p-sm px-md text-brand-500" }, Ge =
|
|
|
668
667
|
})
|
|
669
668
|
])
|
|
670
669
|
]),
|
|
671
|
-
|
|
670
|
+
d("div", ct, [
|
|
672
671
|
o.contactPerson.email !== null ? (n(), c(M, {
|
|
673
672
|
key: 0,
|
|
674
673
|
label: o.contactPerson.email,
|
|
@@ -690,23 +689,23 @@ const je = { class: "flex items-center gap-sm p-sm px-md text-brand-500" }, Ge =
|
|
|
690
689
|
}));
|
|
691
690
|
}
|
|
692
691
|
});
|
|
693
|
-
function Mt(
|
|
692
|
+
function Mt(l, t) {
|
|
694
693
|
const o = new Map(
|
|
695
|
-
|
|
694
|
+
l.value.map((i) => [
|
|
696
695
|
i.key,
|
|
697
|
-
i.useIsVisible?.(t) ??
|
|
696
|
+
i.useIsVisible?.(t) ?? P(() => !0)
|
|
698
697
|
])
|
|
699
698
|
);
|
|
700
|
-
return
|
|
699
|
+
return P(() => l.value.filter((i) => o.get(i.key)?.value ?? !0));
|
|
701
700
|
}
|
|
702
|
-
const
|
|
701
|
+
const ut = /* @__PURE__ */ b({
|
|
703
702
|
__name: "AppGoogleMaps",
|
|
704
703
|
props: {
|
|
705
704
|
center: {},
|
|
706
705
|
zoom: {}
|
|
707
706
|
},
|
|
708
|
-
setup(
|
|
709
|
-
const t =
|
|
707
|
+
setup(l) {
|
|
708
|
+
const t = l, o = ze();
|
|
710
709
|
return (i, r) => e(o).googleMapsApiKey.value ? (n(), c(e(Le), {
|
|
711
710
|
key: 0,
|
|
712
711
|
"api-key": e(o).googleMapsApiKey.value,
|
|
@@ -718,33 +717,33 @@ const dt = /* @__PURE__ */ b({
|
|
|
718
717
|
"disable-default-ui": !0
|
|
719
718
|
}, null, 8, ["api-key", "zoom", "center"])) : p("", !0);
|
|
720
719
|
}
|
|
721
|
-
}),
|
|
720
|
+
}), dt = { class: "absolute top-3 left-3 z-2 rounded-full bg-brand-500 px-md py-xxs font-medium text-(--brand-contrast)" }, mt = { class: "absolute inset-0 z-1 flex flex-col items-center justify-center bg-linear-to-t from-primary from-10% to-transparent" }, pt = { class: "flex flex-col items-center gap-md" }, ft = { class: "rounded-full border border-secondary bg-primary p-sm" }, _t = { class: "text-center" }, gt = { class: "font-semibold text-primary" }, bt = { class: "text-primary" }, Tt = /* @__PURE__ */ b({
|
|
722
721
|
__name: "CrmDetailSidebarMapCard",
|
|
723
722
|
props: {
|
|
724
723
|
address: {}
|
|
725
724
|
},
|
|
726
|
-
setup(
|
|
727
|
-
const t =
|
|
725
|
+
setup(l) {
|
|
726
|
+
const t = l, o = $();
|
|
728
727
|
return (i, r) => t.address !== null ? (n(), c(q, {
|
|
729
728
|
key: 0,
|
|
730
729
|
class: "relative overflow-hidden p-0!"
|
|
731
730
|
}, {
|
|
732
731
|
default: s(() => [
|
|
733
|
-
|
|
734
|
-
|
|
732
|
+
d("div", dt, [
|
|
733
|
+
d("p", null, m(e(o).t("wise_crm.shared.home_address")), 1)
|
|
735
734
|
]),
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
735
|
+
d("div", mt, [
|
|
736
|
+
d("div", pt, [
|
|
737
|
+
d("div", ft, [
|
|
739
738
|
(n(), c(F(e(K)), { class: "size-4 text-brand-500" }))
|
|
740
739
|
]),
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
740
|
+
d("div", _t, [
|
|
741
|
+
d("p", gt, m(t.address?.street) + " " + m(t.address?.streetNumber), 1),
|
|
742
|
+
d("p", bt, m(t.address?.postalCode) + " " + m(t.address?.city), 1)
|
|
744
743
|
])
|
|
745
744
|
])
|
|
746
745
|
]),
|
|
747
|
-
|
|
746
|
+
a(ut, {
|
|
748
747
|
center: {
|
|
749
748
|
lat: t.address?.coordinates.lat ?? 0,
|
|
750
749
|
lng: t.address?.coordinates.lng ?? 0
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { openBlock as i, createElementBlock as _, renderSlot as C, defineComponent as g, computed as w, unref as t, createBlock as p, withCtx as d, createVNode as r, createCommentVNode as N, useModel as Z, Fragment as A, renderList as T, createElementVNode as a, mergeModels as Y, createStaticVNode as J, resolveDynamicComponent as I, toDisplayString as v, mergeProps as j, normalizeClass as $, ref as W, toValue as F } from "vue";
|
|
2
|
-
import { _ as V, ao as X, ap as ee, aq as te, ar as ne, as as oe, at as se, au as le, av as ae, e as ie, aw as re, am as ce, $ as ue, Y as de, ax as me, al as S, t as pe, u as fe, ay as _e, a4 as ye, az as xe, U as he, y as ge, aA as be, aB as ve, D as we, aC as Ce } from "./index-
|
|
2
|
+
import { _ as V, ao as X, ap as ee, aq as te, ar as ne, as as oe, at as se, au as le, av as ae, e as ie, aw as re, am as ce, $ as ue, Y as de, ax as me, al as S, t as pe, u as fe, ay as _e, a4 as ye, az as xe, U as he, y as ge, aA as be, aB as ve, D as we, aC as Ce } from "./index-DSFHgVvi.js";
|
|
3
3
|
import { useQuery as ke, ApiUtil as b, useMutation as E } from "@wisemen/vue-core-api-utils";
|
|
4
4
|
import { UISkeletonItem as Ue, UIBadge as $e, UITabs as Ie, UITabsList as De, UITabsItem as Se, UITextareaField as R, toFormField as q, UIIconButton as D, UIDropdownMenu as Be, UIDropdownMenuGroup as Ne, UIDropdownMenuItem as z, UILoader as Ae, useToast as Te, UIFormDialog as Ve, UIDialogHeader as Ee, UIDialogBody as Pe, UIDialogFooter as Le, UIDialogFooterCancel as Fe, UIDialogFooterSubmit as ze, UILink as Me, UITabsRouterLink as je, UITabsRouterLinkItem as Re } from "@wisemen/vue-core-design-system";
|
|
5
5
|
import { Motion as H, AnimatePresence as qe } from "motion-v";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent as y, openBlock as t, createElementBlock as _, createElementVNode as s, createBlock as o, resolveDynamicComponent as x, unref as e, toDisplayString as p, createVNode as r, withCtx as n, createCommentVNode as f, Fragment as b, renderList as w, normalizeClass as k, computed as $ } 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, u as z, H as E, T as j, K as B, L as N, N as T, O as S, P as h, p as A, R as C, U as F, t as H, G as V } from "./index-
|
|
4
|
+
import { M, u as z, H as E, T as j, K as B, L as N, N as T, O as S, P as h, p as A, R as C, U as F, t as H, G as V } from "./index-DSFHgVvi.js";
|
|
5
5
|
import { UIIconButton as P, UIEmptyState as Q, UIBadge as q } from "@wisemen/vue-core-design-system";
|
|
6
6
|
import { AnimatePresence as O, Motion as R } from "motion-v";
|
|
7
7
|
import { AccordionRoot as W, AccordionItem as G, AccordionHeader as K, AccordionTrigger as J, AccordionContent as X } from "reka-ui";
|
|
@@ -2,8 +2,8 @@ import { defineComponent as x, openBlock as c, createBlock as y, unref as e, ref
|
|
|
2
2
|
import { useRouteParams as Oe } from "@vueuse/router";
|
|
3
3
|
import { useI18n as I } from "vue-i18n";
|
|
4
4
|
import { bs as ge, by as Ee, bz as Ve, bB as Le } from "./uuid.util-DUuuAgdg.js";
|
|
5
|
-
import { C as ye, c as qe, l as Ae, f as z, b as Qe, d as Be, e as ue, g as Ke, N as be, _ as Re, u as je, a as ze, h as Ge, i as Ye, j as Ze, k as Xe } from "./CrmDetailView.vue_vue_type_script_setup_true_lang-
|
|
6
|
-
import { X as F, y as he, Y as He, v as $, Z as E, u as q, e as Je, $ as ve, a0 as We, a1 as ea, p as aa, a2 as ta, q as na, A as ce, a3 as la, a4 as oa, a5 as Ce, a6 as B, a7 as ia, a8 as Ue, a9 as ra, aa as sa, b as ua, t as ca, f as da, Q as ma, ab as fa, ac as pa, I as we, x as _a, o as de, ad as ga, ae as ya, D as ba, C as ha, af as va, j as Ca, ag as Ua, F as wa, G as Pa } from "./index-
|
|
5
|
+
import { C as ye, c as qe, l as Ae, f as z, b as Qe, d as Be, e as ue, g as Ke, N as be, _ as Re, u as je, a as ze, h as Ge, i as Ye, j as Ze, k as Xe } from "./CrmDetailView.vue_vue_type_script_setup_true_lang-7UUg6E4g.js";
|
|
6
|
+
import { X as F, y as he, Y as He, v as $, Z as E, u as q, e as Je, $ as ve, a0 as We, a1 as ea, p as aa, a2 as ta, q as na, A as ce, a3 as la, a4 as oa, a5 as Ce, a6 as B, a7 as ia, a8 as Ue, a9 as ra, aa as sa, b as ua, t as ca, f as da, Q as ma, ab as fa, ac as pa, I as we, x as _a, o as de, ad as ga, ae as ya, D as ba, C as ha, af as va, j as Ca, ag as Ua, F as wa, G as Pa } from "./index-DSFHgVvi.js";
|
|
7
7
|
import { useToast as Pe, useOverlay as J, UIConfirmDialog as Da, UIIconButton as oe, UITextField as Y, toFormField as Q, UIDropdownMenu as xa, UIDropdownMenuGroup as Ia, UIDropdownMenuItem as me, UIPhoneNumberField as fe, UIFormLayout as ie, UIFormFieldGroup as K, UIFormFieldGrid as R, UIFormDialog as De, UIDialogHeader as xe, UIForm as pe, UIDialogBody as W, UIDialogFooter as ee, UIDialogFooterSubmit as ae, createAutocompleteOptions as Na, createSelectOptions as te, UIAutocomplete as Sa, UISelect as ne, UIButton as ka, UIBadge as le, UIColumnLayout as Ta, UIBadgeGroup as Fa } from "@wisemen/vue-core-design-system";
|
|
8
8
|
import { useMutation as M, useQuery as Ie, useOffsetInfiniteQuery as $a, useKeysetInfiniteQuery as Ma } from "@wisemen/vue-core-api-utils";
|
|
9
9
|
import { useForm as Z } from "formango";
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { defineComponent as P, computed as c, openBlock as o, createBlock as s, unref as e, createElementBlock as S, createVNode as d, withCtx as p, createElementVNode as
|
|
1
|
+
import { defineComponent as P, computed as c, openBlock as o, createBlock as s, unref as e, createElementBlock as S, createVNode as d, withCtx as p, createElementVNode as Q, ref as G, Fragment as q, createCommentVNode as x, renderList as V, toDisplayString as si, resolveDynamicComponent as ri } from "vue";
|
|
2
2
|
import { useRouteParams as di } from "@vueuse/router";
|
|
3
|
-
import { bs as
|
|
4
|
-
import { N as R, u as ci, _ as vi, a as mi, C as Y, f as $, b as pi, d as fi, e as
|
|
3
|
+
import { bs as A } from "./uuid.util-DUuuAgdg.js";
|
|
4
|
+
import { N as R, u as ci, _ as vi, a as mi, C as Y, f as $, b as pi, d as fi, e as M, g as _i, h as yi, i as bi, j as gi, k as Ui } from "./CrmDetailView.vue_vue_type_script_setup_true_lang-7UUg6E4g.js";
|
|
5
5
|
import { useI18n as k } from "vue-i18n";
|
|
6
|
-
import { a4 as N, u as
|
|
6
|
+
import { a4 as N, u as T, p as H, a2 as Ci, q as J, Q as hi, t as wi, S as O, v as W, y as X, I as Z, w as Ii, x as Pi, o as K, j as xi, z as Di, C as ki, D as Ni, ah as $i, F as Si, G as Ei } from "./index-DSFHgVvi.js";
|
|
7
7
|
import { useOverlay as ii, UIFormDialog as ei, UIDialogHeader as ni, UIForm as z, UIDialogFooter as Fi, UIDialogFooterSubmit as Mi, UIConfirmDialog as Qi, UIButton as qi, UILink as Ai, useToast as Ti } from "@wisemen/vue-core-design-system";
|
|
8
|
-
import { useMutation as
|
|
8
|
+
import { useMutation as L, useKeysetInfiniteQuery as ti, useQuery as Li } from "@wisemen/vue-core-api-utils";
|
|
9
9
|
import "zod";
|
|
10
|
-
import { _ as Vi, f as Bi, c as Oi, a as Ki, b as j, d as zi, e as ji, u as Gi, g as Ri, h as Yi, i as Hi } from "./CrmDetailSidebarMapCard.vue_vue_type_script_setup_true_lang-
|
|
10
|
+
import { _ as Vi, f as Bi, c as Oi, a as Ki, b as j, d as zi, e as ji, u as Gi, g as Ri, h as Yi, i as Hi } from "./CrmDetailSidebarMapCard.vue_vue_type_script_setup_true_lang-CCUsR4oc.js";
|
|
11
11
|
import { Motion as Ji } from "motion-v";
|
|
12
12
|
import { useQueryClient as Wi, useMutation as Xi } from "@tanstack/vue-query";
|
|
13
13
|
import { useForm as B } from "formango";
|
|
14
14
|
function Zi() {
|
|
15
|
-
return
|
|
15
|
+
return L({
|
|
16
16
|
queryFn: async ({
|
|
17
17
|
body: n,
|
|
18
18
|
params: i
|
|
@@ -47,7 +47,7 @@ const ee = /* @__PURE__ */ P({
|
|
|
47
47
|
}
|
|
48
48
|
});
|
|
49
49
|
function ne() {
|
|
50
|
-
return
|
|
50
|
+
return L({
|
|
51
51
|
queryFn: async ({
|
|
52
52
|
body: n,
|
|
53
53
|
params: i
|
|
@@ -75,7 +75,7 @@ const ae = /* @__PURE__ */ P({
|
|
|
75
75
|
individual: {}
|
|
76
76
|
},
|
|
77
77
|
setup(n) {
|
|
78
|
-
const i = n, t =
|
|
78
|
+
const i = n, t = T(), a = ne(), u = ci(), f = ii().create(vi), y = te(
|
|
79
79
|
c(() => i.individual.uuid)
|
|
80
80
|
), _ = c(() => y.result.value.isOk() ? y.result.value.getValue().data : []);
|
|
81
81
|
async function w(C) {
|
|
@@ -193,7 +193,7 @@ function oe() {
|
|
|
193
193
|
};
|
|
194
194
|
}
|
|
195
195
|
function le() {
|
|
196
|
-
return
|
|
196
|
+
return L({
|
|
197
197
|
queryFn: async ({
|
|
198
198
|
body: n,
|
|
199
199
|
params: i
|
|
@@ -216,7 +216,7 @@ const ue = { class: "flex flex-col gap-md" }, se = { class: "flex flex-col gap-s
|
|
|
216
216
|
return (a, u) => (o(), S("div", ue, [
|
|
217
217
|
d(Y, null, {
|
|
218
218
|
default: p(() => [
|
|
219
|
-
|
|
219
|
+
Q("div", se, [
|
|
220
220
|
d($, {
|
|
221
221
|
label: i.individual.email ?? "-",
|
|
222
222
|
icon: e(H)
|
|
@@ -230,7 +230,7 @@ const ue = { class: "flex flex-col gap-md" }, se = { class: "flex flex-col gap-s
|
|
|
230
230
|
icon: e(J)
|
|
231
231
|
}, null, 8, ["label", "icon"])
|
|
232
232
|
]),
|
|
233
|
-
|
|
233
|
+
Q("div", re, [
|
|
234
234
|
d($, {
|
|
235
235
|
label: e(t).t("wise_crm.info_dialog.sidebar.overview.created_at_label", {
|
|
236
236
|
value: i.individual.createdAt ? e(wi)().toDateTime(i.individual.createdAt) : "-"
|
|
@@ -248,7 +248,7 @@ const ue = { class: "flex flex-col gap-md" }, se = { class: "flex flex-col gap-s
|
|
|
248
248
|
}
|
|
249
249
|
});
|
|
250
250
|
function ce() {
|
|
251
|
-
return
|
|
251
|
+
return L({
|
|
252
252
|
queryFn: async ({
|
|
253
253
|
body: n,
|
|
254
254
|
params: i
|
|
@@ -274,7 +274,7 @@ const ve = /* @__PURE__ */ P({
|
|
|
274
274
|
},
|
|
275
275
|
emits: ["close", "createNewContactPerson"],
|
|
276
276
|
setup(n, { emit: i }) {
|
|
277
|
-
const t = n, a = i, u = k(), r =
|
|
277
|
+
const t = n, a = i, u = k(), r = T(), f = ce(), y = pi(), _ = G(t.isCreatingNewContactPerson), w = B({
|
|
278
278
|
schema: Oi,
|
|
279
279
|
onSubmit: async (l) => {
|
|
280
280
|
await C(l);
|
|
@@ -407,7 +407,7 @@ const ve = /* @__PURE__ */ P({
|
|
|
407
407
|
}
|
|
408
408
|
});
|
|
409
409
|
function me() {
|
|
410
|
-
return
|
|
410
|
+
return L({
|
|
411
411
|
queryFn: async ({
|
|
412
412
|
body: n,
|
|
413
413
|
params: i
|
|
@@ -447,7 +447,7 @@ const fe = /* @__PURE__ */ P({
|
|
|
447
447
|
},
|
|
448
448
|
setup(n) {
|
|
449
449
|
const i = n, t = k();
|
|
450
|
-
return (a, u) => (o(), S(
|
|
450
|
+
return (a, u) => (o(), S(q, null, [
|
|
451
451
|
d(zi, {
|
|
452
452
|
form: i.form
|
|
453
453
|
}, null, 8, ["form"]),
|
|
@@ -470,7 +470,7 @@ const fe = /* @__PURE__ */ P({
|
|
|
470
470
|
},
|
|
471
471
|
emits: ["close"],
|
|
472
472
|
setup(n, { emit: i }) {
|
|
473
|
-
const t = n, a = i, u = k(), r =
|
|
473
|
+
const t = n, a = i, u = k(), r = T(), f = c(() => t.individualUuid), y = c(() => t.contactPersonUuid), _ = pe(
|
|
474
474
|
f,
|
|
475
475
|
y
|
|
476
476
|
), w = me(), m = c(() => _.result.value.isOk() ? _.result.value.getValue() : null), b = B({
|
|
@@ -529,7 +529,7 @@ const fe = /* @__PURE__ */ P({
|
|
|
529
529
|
individual: {}
|
|
530
530
|
},
|
|
531
531
|
setup(n) {
|
|
532
|
-
const i = n, t = k(), a =
|
|
532
|
+
const i = n, t = k(), a = T(), u = W(), r = X(), f = c(
|
|
533
533
|
() => u.getOptions().individual?.sidebarSections ?? []
|
|
534
534
|
), y = Gi(
|
|
535
535
|
f,
|
|
@@ -537,8 +537,8 @@ const fe = /* @__PURE__ */ P({
|
|
|
537
537
|
individualUuid: i.individual.uuid
|
|
538
538
|
}))
|
|
539
539
|
), _ = ii(), w = _.create(ve), m = _.create(_e), b = _.create(Qi), C = oe(), h = le(), U = c(() => i.individual.contactPersons.length > 0), l = c(
|
|
540
|
-
() => i.individual.contactPersons.toSorted((D,
|
|
541
|
-
), g = c(() => i.individual.billingInformationDetail !== null), I = c(() => r.getEntityConfig(
|
|
540
|
+
() => i.individual.contactPersons.toSorted((D, F) => Number(F.isPrimary) - Number(D.isPrimary))
|
|
541
|
+
), g = c(() => i.individual.billingInformationDetail !== null), I = c(() => r.getEntityConfig(A.BUSINESS)?.name.toLowerCase() ?? "");
|
|
542
542
|
function E() {
|
|
543
543
|
w.open({
|
|
544
544
|
individualUuid: i.individual.uuid
|
|
@@ -557,20 +557,15 @@ const fe = /* @__PURE__ */ P({
|
|
|
557
557
|
confirmLabel: t.t("shared.delete"),
|
|
558
558
|
description: t.t("wise_crm.info_dialog.sidebar.overview.delete_contact_person_description"),
|
|
559
559
|
onConfirm: async () => {
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
} catch (L) {
|
|
570
|
-
a.show(L);
|
|
571
|
-
} finally {
|
|
572
|
-
b.close();
|
|
573
|
-
}
|
|
560
|
+
const F = await h.execute({
|
|
561
|
+
body: {
|
|
562
|
+
contactPersonUuid: D
|
|
563
|
+
},
|
|
564
|
+
params: {
|
|
565
|
+
individualUuid: i.individual.uuid
|
|
566
|
+
}
|
|
567
|
+
});
|
|
568
|
+
b.close(), F.isErr() && a.show(F.error);
|
|
574
569
|
}
|
|
575
570
|
});
|
|
576
571
|
}
|
|
@@ -582,11 +577,11 @@ const fe = /* @__PURE__ */ P({
|
|
|
582
577
|
}
|
|
583
578
|
});
|
|
584
579
|
}
|
|
585
|
-
return (D,
|
|
580
|
+
return (D, F) => (o(), s(fi, {
|
|
586
581
|
"default-values": ["customer", "invoice", "contact-persons", "linked-businesses", ...f.value.map((v) => `custom-${v.key}`)]
|
|
587
582
|
}, {
|
|
588
583
|
default: p(() => [
|
|
589
|
-
d(
|
|
584
|
+
d(M, {
|
|
590
585
|
label: e(t).t("wise_crm.info_dialog.sidebar.overview.customer_info_label"),
|
|
591
586
|
icon: e(Z),
|
|
592
587
|
value: "customer"
|
|
@@ -596,7 +591,7 @@ const fe = /* @__PURE__ */ P({
|
|
|
596
591
|
]),
|
|
597
592
|
_: 1
|
|
598
593
|
}, 8, ["label", "icon"]),
|
|
599
|
-
d(
|
|
594
|
+
d(M, {
|
|
600
595
|
label: e(t).t("wise_crm.info_dialog.sidebar.overview.invoice_label"),
|
|
601
596
|
"is-empty": !g.value,
|
|
602
597
|
icon: e(Ii),
|
|
@@ -611,7 +606,7 @@ const fe = /* @__PURE__ */ P({
|
|
|
611
606
|
]),
|
|
612
607
|
_: 1
|
|
613
608
|
}, 8, ["label", "is-empty", "icon"]),
|
|
614
|
-
d(
|
|
609
|
+
d(M, {
|
|
615
610
|
"is-empty": !U.value,
|
|
616
611
|
label: e(t).t("wise_crm.info_dialog.sidebar.overview.contact_persons_label"),
|
|
617
612
|
icon: e(Pi),
|
|
@@ -628,7 +623,7 @@ const fe = /* @__PURE__ */ P({
|
|
|
628
623
|
}, null, 8, ["label", "icon"]))
|
|
629
624
|
]),
|
|
630
625
|
default: p(() => [
|
|
631
|
-
(o(!0), S(
|
|
626
|
+
(o(!0), S(q, null, V(l.value, (v) => (o(), s(e(Ji), {
|
|
632
627
|
key: v.uuid,
|
|
633
628
|
"layout-id": v.uuid
|
|
634
629
|
}, {
|
|
@@ -653,7 +648,7 @@ const fe = /* @__PURE__ */ P({
|
|
|
653
648
|
]),
|
|
654
649
|
_: 1
|
|
655
650
|
}, 8, ["is-empty", "label", "icon"]),
|
|
656
|
-
i.individual.linkedBusinesses.length > 0 ? (o(), s(
|
|
651
|
+
i.individual.linkedBusinesses.length > 0 ? (o(), s(M, {
|
|
657
652
|
key: 0,
|
|
658
653
|
"is-edit-button-hidden": !0,
|
|
659
654
|
label: e(t).t("wise_crm.info_dialog.sidebar.overview.linked_business_label", {
|
|
@@ -663,13 +658,13 @@ const fe = /* @__PURE__ */ P({
|
|
|
663
658
|
value: "linked-businesses"
|
|
664
659
|
}, {
|
|
665
660
|
default: p(() => [
|
|
666
|
-
(o(!0), S(
|
|
661
|
+
(o(!0), S(q, null, V(i.individual.linkedBusinesses, (v) => (o(), s(Y, {
|
|
667
662
|
key: v.uuid,
|
|
668
663
|
class: "flex flex-col gap-lg"
|
|
669
664
|
}, {
|
|
670
665
|
default: p(() => [
|
|
671
|
-
|
|
672
|
-
|
|
666
|
+
Q("div", ye, [
|
|
667
|
+
Q("div", be, [
|
|
673
668
|
d(e(Ai), {
|
|
674
669
|
to: {
|
|
675
670
|
name: "business-detail",
|
|
@@ -682,7 +677,7 @@ const fe = /* @__PURE__ */ P({
|
|
|
682
677
|
variant: "secondary",
|
|
683
678
|
class: "-ml-xs"
|
|
684
679
|
}, null, 8, ["to", "label"]),
|
|
685
|
-
|
|
680
|
+
Q("p", ge, si(v.position), 1)
|
|
686
681
|
])
|
|
687
682
|
]),
|
|
688
683
|
d($, {
|
|
@@ -699,7 +694,7 @@ const fe = /* @__PURE__ */ P({
|
|
|
699
694
|
]),
|
|
700
695
|
_: 1
|
|
701
696
|
}, 8, ["label", "icon"])) : x("", !0),
|
|
702
|
-
(o(!0), S(
|
|
697
|
+
(o(!0), S(q, null, V(e(y), (v) => (o(), s(M, {
|
|
703
698
|
key: v.key,
|
|
704
699
|
label: v.label.value,
|
|
705
700
|
icon: v.icon,
|
|
@@ -725,7 +720,7 @@ const fe = /* @__PURE__ */ P({
|
|
|
725
720
|
const i = n, t = k();
|
|
726
721
|
Ti();
|
|
727
722
|
const a = X(), u = W();
|
|
728
|
-
|
|
723
|
+
T(), Zi();
|
|
729
724
|
const r = G(
|
|
730
725
|
"overview"
|
|
731
726
|
/* OVERVIEW */
|
|
@@ -748,16 +743,16 @@ const fe = /* @__PURE__ */ P({
|
|
|
748
743
|
value: "notes"
|
|
749
744
|
/* NOTES */
|
|
750
745
|
}
|
|
751
|
-
]), y = c(() => a.getEntityConfig(
|
|
746
|
+
]), y = c(() => a.getEntityConfig(A.INDIVIDUAL)), _ = c(
|
|
752
747
|
() => u.getOptions().individual?.headerBadges ?? []
|
|
753
748
|
);
|
|
754
749
|
return (w, m) => (o(), s(Ni, {
|
|
755
|
-
color: e(a).getEntityConfig(e(
|
|
750
|
+
color: e(a).getEntityConfig(e(A).INDIVIDUAL)?.color ?? null,
|
|
756
751
|
class: "flex h-full flex-col"
|
|
757
752
|
}, {
|
|
758
753
|
default: p(() => [
|
|
759
754
|
d(Hi, {
|
|
760
|
-
"entity-type": e(
|
|
755
|
+
"entity-type": e(A).INDIVIDUAL,
|
|
761
756
|
name: `${i.individual.firstName} ${i.individual.lastName}`,
|
|
762
757
|
address: i.individual.address,
|
|
763
758
|
email: i.individual.email,
|
|
@@ -769,7 +764,7 @@ const fe = /* @__PURE__ */ P({
|
|
|
769
764
|
x("", !0)
|
|
770
765
|
]),
|
|
771
766
|
badges: p(() => [
|
|
772
|
-
(o(!0), S(
|
|
767
|
+
(o(!0), S(q, null, V(_.value, (b) => (o(), s(yi, {
|
|
773
768
|
key: b.key,
|
|
774
769
|
badge: b,
|
|
775
770
|
uuid: i.individual.uuid,
|
|
@@ -838,7 +833,7 @@ const fe = /* @__PURE__ */ P({
|
|
|
838
833
|
return (a, u) => (o(), s(Ui, {
|
|
839
834
|
key: e(t),
|
|
840
835
|
tabs: i.tabs,
|
|
841
|
-
"entity-type": e(
|
|
836
|
+
"entity-type": e(A).INDIVIDUAL
|
|
842
837
|
}, {
|
|
843
838
|
sidebar: p(() => [
|
|
844
839
|
d(he, { "individual-uuid": e(t) }, null, 8, ["individual-uuid"])
|
|
@@ -14080,7 +14080,7 @@ function m2(n) {
|
|
|
14080
14080
|
}))
|
|
14081
14081
|
},
|
|
14082
14082
|
path: "/business/:businessUuid",
|
|
14083
|
-
component: () => import("./BusinessDetailView-
|
|
14083
|
+
component: () => import("./BusinessDetailView-BWVZOMfl.js"),
|
|
14084
14084
|
redirect: {
|
|
14085
14085
|
name: n[0].route.name
|
|
14086
14086
|
},
|
|
@@ -14094,7 +14094,7 @@ function p2(n) {
|
|
|
14094
14094
|
{
|
|
14095
14095
|
name: "deal-communication",
|
|
14096
14096
|
path: "communication",
|
|
14097
|
-
component: () => import("./DealCommunicationTabView-
|
|
14097
|
+
component: () => import("./DealCommunicationTabView-fR6lGKkQ.js")
|
|
14098
14098
|
}
|
|
14099
14099
|
];
|
|
14100
14100
|
return [
|
|
@@ -14107,7 +14107,7 @@ function p2(n) {
|
|
|
14107
14107
|
}))
|
|
14108
14108
|
},
|
|
14109
14109
|
path: "/deals/:dealUuid",
|
|
14110
|
-
component: () => import("./DealDetailView-
|
|
14110
|
+
component: () => import("./DealDetailView-BMQrIles.js"),
|
|
14111
14111
|
redirect: {
|
|
14112
14112
|
name: e[0].name
|
|
14113
14113
|
},
|
|
@@ -14126,7 +14126,7 @@ function _2(n) {
|
|
|
14126
14126
|
}))
|
|
14127
14127
|
},
|
|
14128
14128
|
path: "/individual/:individualUuid",
|
|
14129
|
-
component: () => import("./IndividualDetailView-
|
|
14129
|
+
component: () => import("./IndividualDetailView-BGYlXTzE.js"),
|
|
14130
14130
|
redirect: {
|
|
14131
14131
|
name: n[0].route.name
|
|
14132
14132
|
},
|
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { aD as i, aE as r, aF as C, aG as m, aH as n, Z as d, aI as o, aJ as t, aK as l, aL as u, aM as W, aN as v, d as p, a7 as g, y as B, v as D, aO as I, aP as b, aQ as f } from "./index-
|
|
1
|
+
import { aD as i, aE as r, aF as C, aG as m, aH as n, Z as d, aI as o, aJ as t, aK as l, aL as u, aM as W, aN as v, d as p, a7 as g, y as B, v as D, aO as I, aP as b, aQ as f } from "./index-DSFHgVvi.js";
|
|
2
2
|
import "zod";
|
|
3
3
|
import { bs as c } from "./uuid.util-DUuuAgdg.js";
|
|
4
4
|
export {
|
package/package.json
CHANGED