@wisemen/wise-crm-web 2.0.0-alpha.15 → 2.0.0-alpha.17
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-BnoWGKBs.js → BusinessDetailView-BAPIWUJK.js} +2 -2
- package/dist/{CrmDetailView.vue_vue_type_script_setup_true_lang-LSyqFIhy.js → CrmDetailView.vue_vue_type_script_setup_true_lang-CHId_zsC.js} +1 -1
- package/dist/{DealCommunicationTabView-B-oshWI3.js → DealCommunicationTabView-BcWXQ8Nh.js} +1 -1
- package/dist/{DealDetailView-DWMwY_hT.js → DealDetailView-BFwkI6kR.js} +2 -2
- package/dist/{IndividualDetailView-CysEkhQT.js → IndividualDetailView-CnqNAYNM.js} +2 -2
- package/dist/{index-BJCeV9bF.js → index-BrCd1uKq.js} +111 -111
- package/dist/index.js +1 -1
- package/package.json +2 -1
|
@@ -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-
|
|
3
|
+
import { _ as p } from "./index-BrCd1uKq.js";
|
|
4
4
|
import { b1 as c } from "./uuid.util-DLzSSHiG.js";
|
|
5
|
-
import { _ } from "./CrmDetailView.vue_vue_type_script_setup_true_lang-
|
|
5
|
+
import { _ } from "./CrmDetailView.vue_vue_type_script_setup_true_lang-CHId_zsC.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-
|
|
4
|
+
import { X as E, O as I, R as T, a5 as V } from "./index-BrCd1uKq.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-
|
|
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-BrCd1uKq.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";
|
|
@@ -2,8 +2,8 @@ import { defineComponent as x, ref as M, useTemplateRef as xe, openBlock as d, c
|
|
|
2
2
|
import { useRouteParams as Fe } from "@vueuse/router";
|
|
3
3
|
import { useI18n as I } from "vue-i18n";
|
|
4
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-
|
|
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-
|
|
5
|
+
import { _ as Ve } from "./CrmDetailView.vue_vue_type_script_setup_true_lang-CHId_zsC.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-BrCd1uKq.js";
|
|
7
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
9
|
import Y, { z as N } from "zod";
|
|
@@ -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
3
|
import { b1 as m } from "./uuid.util-DLzSSHiG.js";
|
|
4
|
-
import { _ as p } from "./CrmDetailView.vue_vue_type_script_setup_true_lang-
|
|
5
|
-
import { a4 as c } from "./index-
|
|
4
|
+
import { _ as p } from "./CrmDetailView.vue_vue_type_script_setup_true_lang-CHId_zsC.js";
|
|
5
|
+
import { a4 as c } from "./index-BrCd1uKq.js";
|
|
6
6
|
const k = /* @__PURE__ */ n({
|
|
7
7
|
__name: "IndividualDetailView",
|
|
8
8
|
props: {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import * as t from "zod";
|
|
2
2
|
import T, { z as C } from "zod";
|
|
3
3
|
import { defineComponent as k, openBlock as c, createBlock as g, unref as n, withCtx as d, renderSlot as H, createElementBlock as v, createElementVNode as b, computed as D, normalizeStyle as No, ref as $, readonly as So, watch as Ae, createVNode as r, Fragment as q, renderList as X, resolveDynamicComponent as W, toDisplayString as E, provide as Un, createCommentVNode as N, useModel as Me, mergeModels as Ce, createStaticVNode as Nt, normalizeClass as ee, createTextVNode as me, onUnmounted as Aa, onMounted as it, useId as Kt, withModifiers as Ea, mergeProps as F, inject as Ao, h as ge, toValue as Eo, useAttrs as Fo, useTemplateRef as Po, onBeforeUnmount as Bo } from "vue";
|
|
4
|
-
import { c as j, z as jo, a as zo, b as Mo, d as To, e as $o, f as Lo, g as qo, h as Ro, i as Oo, j as Ho, k as Zo, l as Go, m as Ko, n as Qo, o as Wo, p as Jo, q as Yo, r as Xo, s as es, t as ts, u as ns, v as as, w as is, x as os, y as ss, A as rs, B as ls, C as cs, D as us, E as ds, F as ms, G as _s, H as ps, I as fs, J as gs, K as bs, L as hs, M as vs, N as ys, O as ws, P as Cs, Q as xs, R as ks, S as Ds, T as Is, U as Vs, V as Us, W as Ns, X as Ss, Y as As, Z as Es, _ as Fs, $ as Ps, a0 as Bs, a1 as js, a2 as zs, a3 as Ms, a4 as Ts, a5 as $s, a6 as Ls, a7 as qs, a8 as Rs, a9 as Os, aa as Hs, ab as Zs, ac as Gs, ad as Ks, ae as Qs, af as Ws, ag as Js, ah as Ys, ai as Xs, aj as er, ak as tr, al as nr, am as ar, an as ir, ao as or, ap as sr, aq as rr, ar as lr, as as cr, at as ur, au as dr, av as mr, aw as _r, ax as pr, ay as fr, az as gr, aA as br, aB as hr, aC as vr, aD as yr, aE as wr, aF as Cr, aG as xr, aH as kr, aI as Dr, aJ as Ir, aK as Vr, aL as Ur, aM as Nr, aN as Sr, aO as Ar, aP as Er, aQ as Fr, aR as Pr, aS as Br, aT as jr, aU as zr, aV as Mr, aW as Tr, aX as $r, aY as Lr, aZ as qr, a_ as Rr, a$ as Or, b0 as ae, b1 as O, b2 as
|
|
5
|
-
import { UIThemeProvider as Gr, UITabs as Nn, UITabsList as Sn, UITabsItem as An, UITabsContent as Pa, UIDialog as Qt, UIButton as Y, UITooltip as En, UIIconButton as we, UIText as Ba, UIBadge as je, useInjectConfigContext as ja, UITimeline as Kr, UITimelineItem as Qr, useToast as At, useOverlay as Fe, UIConfirmDialog as Fn, UITextareaField as za, toFormField as P, UIDropdownMenu as Ma, UIDropdownMenuGroup as Ta, UIDropdownMenuItem as Ot, UILoader as Pn, UIFormDialog as Te, UIDialogHeader as he, UIDialogBody as Ke, UIDialogFooter as xe, UIDialogFooterCancel as Et, UIDialogFooterSubmit as Ue, createAutocompleteOptions as Wt, UIAutocomplete as Jt, UIDialogFooterSecondary as Ft, UIFormLayout as Pe, UIFormFieldGroup as Ne, UIFormFieldGrid as G, UITextField as K, UIPhoneNumberField as ke, UICheckbox as Wr, UIDateField as Jr, createSelectOptions as
|
|
4
|
+
import { c as j, z as jo, a as zo, b as Mo, d as To, e as $o, f as Lo, g as qo, h as Ro, i as Oo, j as Ho, k as Zo, l as Go, m as Ko, n as Qo, o as Wo, p as Jo, q as Yo, r as Xo, s as es, t as ts, u as ns, v as as, w as is, x as os, y as ss, A as rs, B as ls, C as cs, D as us, E as ds, F as ms, G as _s, H as ps, I as fs, J as gs, K as bs, L as hs, M as vs, N as ys, O as ws, P as Cs, Q as xs, R as ks, S as Ds, T as Is, U as Vs, V as Us, W as Ns, X as Ss, Y as As, Z as Es, _ as Fs, $ as Ps, a0 as Bs, a1 as js, a2 as zs, a3 as Ms, a4 as Ts, a5 as $s, a6 as Ls, a7 as qs, a8 as Rs, a9 as Os, aa as Hs, ab as Zs, ac as Gs, ad as Ks, ae as Qs, af as Ws, ag as Js, ah as Ys, ai as Xs, aj as er, ak as tr, al as nr, am as ar, an as ir, ao as or, ap as sr, aq as rr, ar as lr, as as cr, at as ur, au as dr, av as mr, aw as _r, ax as pr, ay as fr, az as gr, aA as br, aB as hr, aC as vr, aD as yr, aE as wr, aF as Cr, aG as xr, aH as kr, aI as Dr, aJ as Ir, aK as Vr, aL as Ur, aM as Nr, aN as Sr, aO as Ar, aP as Er, aQ as Fr, aR as Pr, aS as Br, aT as jr, aU as zr, aV as Mr, aW as Tr, aX as $r, aY as Lr, aZ as qr, a_ as Rr, a$ as Or, b0 as ae, b1 as O, b2 as dt, b3 as ct, b4 as Se, b5 as Hr, b6 as Dt, b7 as nt, b8 as St, b9 as Fa, ba as Zr } from "./uuid.util-DLzSSHiG.js";
|
|
5
|
+
import { UIThemeProvider as Gr, UITabs as Nn, UITabsList as Sn, UITabsItem as An, UITabsContent as Pa, UIDialog as Qt, UIButton as Y, UITooltip as En, UIIconButton as we, UIText as Ba, UIBadge as je, useInjectConfigContext as ja, UITimeline as Kr, UITimelineItem as Qr, useToast as At, useOverlay as Fe, UIConfirmDialog as Fn, UITextareaField as za, toFormField as P, UIDropdownMenu as Ma, UIDropdownMenuGroup as Ta, UIDropdownMenuItem as Ot, UILoader as Pn, UIFormDialog as Te, UIDialogHeader as he, UIDialogBody as Ke, UIDialogFooter as xe, UIDialogFooterCancel as Et, UIDialogFooterSubmit as Ue, createAutocompleteOptions as Wt, UIAutocomplete as Jt, UIDialogFooterSecondary as Ft, UIFormLayout as Pe, UIFormFieldGroup as Ne, UIFormFieldGrid as G, UITextField as K, UIPhoneNumberField as ke, UICheckbox as Wr, UIDateField as Jr, createSelectOptions as mt, UISelect as _t, UINumberField as Yr, UIRadioGroup as Xr, UIRadioGroupItem as el, UIAddressAutocomplete as vt, UIDialogFooterPrimary as tl, UIForm as pt, UILink as $a, UIPopover as nl, UITagsField as tt, UISwitch as ra, useSearch as La, defineTableColumns as qa, UITableBodyRowCell as Xe, UITableBodyRowCellText as et, UIDashboardPageActions as Bn, UISearchField as Ra, UITable as Oa, UIEmptyState as al, UIColumnLayout as Ha, UIClickableElement as il, UIAutoFocus as ol, UIAvatarLabel as sl, UIConfigProvider as rl, UIFormFileUpload as ll, UIScrollable as cl, useDialogChin as ul, UIDashboardPage as dl, UIRowLayout as la, UITooltipContent as ml, UIKeyboardShortcut as _l, BaseFileUploadStatus as Le, UIBaseFileUploadItemReplace as pl, UIBaseFileUploadItemRemove as fl, UIBaseFileUploadItem as gl, UIBaseFileUploadRoot as bl, UIBaseFileUploadTrigger as hl, UIBaseFileUploadDropzone as vl } from "@wisemen/vue-core-design-system";
|
|
6
6
|
import { useRouter as ot, RouterLink as yl, onBeforeRouteLeave as wl, useRoute as Cl } from "vue-router";
|
|
7
|
-
import { Motion as be, AnimatePresence as
|
|
7
|
+
import { Motion as be, AnimatePresence as yt, motion as xl, MotionConfig as kl } from "motion-v";
|
|
8
8
|
import { useLocalStorage as Dl, useClipboard as Za, useInfiniteScroll as Il, useDebounceFn as jn, useElementSize as Ga, useStepper as Ka } from "@vueuse/core";
|
|
9
9
|
import { useI18n as B, createI18n as Vl } from "vue-i18n";
|
|
10
10
|
import { ApiUtil as U, useQuery as ve, useKeysetInfiniteQuery as Yt, useMutation as te, useOffsetInfiniteQuery as Pt } from "@wisemen/vue-core-api-utils";
|
|
@@ -1974,7 +1974,7 @@ function fd(a, e) {
|
|
|
1974
1974
|
"stroke-linejoin": "round"
|
|
1975
1975
|
}, null, -1)]]);
|
|
1976
1976
|
}
|
|
1977
|
-
var
|
|
1977
|
+
var ft = /* @__PURE__ */ L(_d, [["render", fd]]), gd = {}, bd = {
|
|
1978
1978
|
width: "100%",
|
|
1979
1979
|
height: "100%",
|
|
1980
1980
|
viewBox: "0 0 24 24",
|
|
@@ -3711,11 +3711,11 @@ function Ln() {
|
|
|
3711
3711
|
let bi = [], hi = [];
|
|
3712
3712
|
const ba = $(!1), vi = $({
|
|
3713
3713
|
deals: null
|
|
3714
|
-
}),
|
|
3714
|
+
}), ut = $(null);
|
|
3715
3715
|
function D_() {
|
|
3716
|
-
if (
|
|
3716
|
+
if (ut.value === null)
|
|
3717
3717
|
throw new Error("CRM Tenant Config not initialized");
|
|
3718
|
-
return
|
|
3718
|
+
return ut.value;
|
|
3719
3719
|
}
|
|
3720
3720
|
function I_() {
|
|
3721
3721
|
return vi.value;
|
|
@@ -3728,12 +3728,12 @@ function De() {
|
|
|
3728
3728
|
headers: {
|
|
3729
3729
|
"Accept-Language": i.locale
|
|
3730
3730
|
}
|
|
3731
|
-
}),
|
|
3731
|
+
}), ut.value === null && (ut.value = await ha()), V_(ut.value.entities), bi = [], hi = [], ba.value = !0, Ae(() => o.locale.value, async (s) => {
|
|
3732
3732
|
j.setConfig({
|
|
3733
3733
|
headers: {
|
|
3734
3734
|
"Accept-Language": s
|
|
3735
3735
|
}
|
|
3736
|
-
}),
|
|
3736
|
+
}), ut.value = await ha();
|
|
3737
3737
|
}, {
|
|
3738
3738
|
deep: !0
|
|
3739
3739
|
});
|
|
@@ -3931,7 +3931,7 @@ const S_ = { class: "flex h-full w-full flex-1 justify-center overflow-hidden p-
|
|
|
3931
3931
|
}));
|
|
3932
3932
|
}
|
|
3933
3933
|
});
|
|
3934
|
-
function
|
|
3934
|
+
function wt(a, e) {
|
|
3935
3935
|
if (!a)
|
|
3936
3936
|
throw new Error(e);
|
|
3937
3937
|
}
|
|
@@ -4445,7 +4445,7 @@ function on(a) {
|
|
|
4445
4445
|
params: {
|
|
4446
4446
|
businessUuid: a
|
|
4447
4447
|
},
|
|
4448
|
-
queryFn: async () => (
|
|
4448
|
+
queryFn: async () => (wt(a.value !== null, "businessUuid is null"), await _e.getByUuid(a.value))
|
|
4449
4449
|
});
|
|
4450
4450
|
}
|
|
4451
4451
|
const ye = (a, e) => {
|
|
@@ -4485,7 +4485,7 @@ function ep(a, e) {
|
|
|
4485
4485
|
return c(), v("div", X_);
|
|
4486
4486
|
}
|
|
4487
4487
|
const Ze = /* @__PURE__ */ ye(Y_, [["render", ep]]);
|
|
4488
|
-
class
|
|
4488
|
+
class gt {
|
|
4489
4489
|
static format(e) {
|
|
4490
4490
|
return `${e.street} ${e.streetNumber}, ${e.postalCode} ${e.city}, ${e.country}`;
|
|
4491
4491
|
}
|
|
@@ -4507,9 +4507,9 @@ const tp = { class: "flex items-center gap-sm p-sm px-md text-brand-500" }, np =
|
|
|
4507
4507
|
case "email":
|
|
4508
4508
|
return Bt;
|
|
4509
4509
|
case "phone":
|
|
4510
|
-
return
|
|
4510
|
+
return ft;
|
|
4511
4511
|
default:
|
|
4512
|
-
return
|
|
4512
|
+
return ft;
|
|
4513
4513
|
}
|
|
4514
4514
|
}), s = D(() => {
|
|
4515
4515
|
switch (e.type) {
|
|
@@ -4617,7 +4617,7 @@ const tp = { class: "flex items-center gap-sm p-sm px-md text-brand-500" }, np =
|
|
|
4617
4617
|
}, null, 8, ["value"])) : N("", !0),
|
|
4618
4618
|
e.address !== null ? (c(), g(wn, {
|
|
4619
4619
|
key: 2,
|
|
4620
|
-
value: n(
|
|
4620
|
+
value: n(gt).format(e.address),
|
|
4621
4621
|
type: "address"
|
|
4622
4622
|
}, null, 8, ["value"])) : N("", !0)
|
|
4623
4623
|
])
|
|
@@ -4779,7 +4779,7 @@ function wa() {
|
|
|
4779
4779
|
year: "numeric"
|
|
4780
4780
|
};
|
|
4781
4781
|
}
|
|
4782
|
-
function
|
|
4782
|
+
function bt() {
|
|
4783
4783
|
const {
|
|
4784
4784
|
locale: a,
|
|
4785
4785
|
t: e
|
|
@@ -4999,7 +4999,7 @@ const st = /* @__PURE__ */ k({
|
|
|
4999
4999
|
setup(a) {
|
|
5000
5000
|
const e = a;
|
|
5001
5001
|
function i(o) {
|
|
5002
|
-
return It.isToday(o) ?
|
|
5002
|
+
return It.isToday(o) ? bt().fromNow(o.toInstant()) : bt().toDate(o.toPlainDate());
|
|
5003
5003
|
}
|
|
5004
5004
|
return (o, s) => (c(), v(q, null, [
|
|
5005
5005
|
r(Vp, {
|
|
@@ -5091,7 +5091,7 @@ class Ap {
|
|
|
5091
5091
|
};
|
|
5092
5092
|
}
|
|
5093
5093
|
}
|
|
5094
|
-
class
|
|
5094
|
+
class Ct {
|
|
5095
5095
|
static async create(e, i) {
|
|
5096
5096
|
const o = await U.fromPromise(ym({
|
|
5097
5097
|
body: Ap.toDto(
|
|
@@ -5167,7 +5167,7 @@ function Ep() {
|
|
|
5167
5167
|
queryFn: async ({
|
|
5168
5168
|
body: a,
|
|
5169
5169
|
params: e
|
|
5170
|
-
}) => await
|
|
5170
|
+
}) => await Ct.create(a, {
|
|
5171
5171
|
businessUuid: e.businessUuid
|
|
5172
5172
|
}),
|
|
5173
5173
|
queryKeysToInvalidate: {
|
|
@@ -5179,7 +5179,7 @@ function Si() {
|
|
|
5179
5179
|
return te({
|
|
5180
5180
|
queryFn: async ({
|
|
5181
5181
|
params: a
|
|
5182
|
-
}) => await
|
|
5182
|
+
}) => await Ct.delete(a.noteUuid),
|
|
5183
5183
|
queryKeysToInvalidate: {
|
|
5184
5184
|
noteBusinessIndex: {},
|
|
5185
5185
|
noteDealIndex: {},
|
|
@@ -5192,7 +5192,7 @@ function Fp(a, e) {
|
|
|
5192
5192
|
params: {
|
|
5193
5193
|
params: e?.params
|
|
5194
5194
|
},
|
|
5195
|
-
queryFn: (i) =>
|
|
5195
|
+
queryFn: (i) => Ct.getBusinessNotes({
|
|
5196
5196
|
pagination: i
|
|
5197
5197
|
}, a.value)
|
|
5198
5198
|
});
|
|
@@ -5308,9 +5308,9 @@ function zp(a) {
|
|
|
5308
5308
|
Ei.value = a;
|
|
5309
5309
|
}
|
|
5310
5310
|
const Mp = {
|
|
5311
|
-
[
|
|
5312
|
-
[
|
|
5313
|
-
}, Ca =
|
|
5311
|
+
[dt.EN_US]: Ja,
|
|
5312
|
+
[dt.NL_BE]: Ya
|
|
5313
|
+
}, Ca = dt.NL_BE, Tp = typeof window < "u" ? localStorage.getItem("locale") : null, ze = Vl({
|
|
5314
5314
|
fallbackLocale: Ca,
|
|
5315
5315
|
legacy: !1,
|
|
5316
5316
|
locale: Tp ?? Ca,
|
|
@@ -5355,7 +5355,7 @@ function $p(a) {
|
|
|
5355
5355
|
handleUnsavedClose: o
|
|
5356
5356
|
};
|
|
5357
5357
|
}
|
|
5358
|
-
const Lp = ["id"],
|
|
5358
|
+
const Lp = ["id"], xt = /* @__PURE__ */ k({
|
|
5359
5359
|
__name: "AppForm",
|
|
5360
5360
|
props: {
|
|
5361
5361
|
canExitWhenDirty: { type: Boolean, default: !1 },
|
|
@@ -5405,7 +5405,7 @@ const Lp = ["id"], Ct = /* @__PURE__ */ k({
|
|
|
5405
5405
|
!o.isValid.value || o.isSubmitting.value || m.key === "Enter" && !m.shiftKey && (m.preventDefault(), await o.submit(), s.setValue(null));
|
|
5406
5406
|
}
|
|
5407
5407
|
return (m, p) => (c(), v("div", null, [
|
|
5408
|
-
r(
|
|
5408
|
+
r(xt, {
|
|
5409
5409
|
"can-exit-when-dirty": !0,
|
|
5410
5410
|
form: n(o),
|
|
5411
5411
|
class: "w-full"
|
|
@@ -5454,7 +5454,7 @@ const Lp = ["id"], Ct = /* @__PURE__ */ k({
|
|
|
5454
5454
|
count: Math.round(I)
|
|
5455
5455
|
}) : w < 24 ? s.t("wise_crm.note.hours_ago", {
|
|
5456
5456
|
count: Math.round(w)
|
|
5457
|
-
}) :
|
|
5457
|
+
}) : bt().toDateTime(_);
|
|
5458
5458
|
}
|
|
5459
5459
|
function u() {
|
|
5460
5460
|
o("next");
|
|
@@ -5582,7 +5582,7 @@ function Xp() {
|
|
|
5582
5582
|
queryFn: async ({
|
|
5583
5583
|
body: a,
|
|
5584
5584
|
params: e
|
|
5585
|
-
}) => await
|
|
5585
|
+
}) => await Ct.update(e.noteUuid, a.note),
|
|
5586
5586
|
queryKeysToInvalidate: {
|
|
5587
5587
|
noteBusinessIndex: {},
|
|
5588
5588
|
noteDealIndex: {},
|
|
@@ -5969,7 +5969,7 @@ const f1 = /* @__PURE__ */ k({
|
|
|
5969
5969
|
function h() {
|
|
5970
5970
|
o("createNew");
|
|
5971
5971
|
}
|
|
5972
|
-
return (y, x) => (c(), g(
|
|
5972
|
+
return (y, x) => (c(), g(xt, { form: n(m) }, {
|
|
5973
5973
|
default: d(() => [
|
|
5974
5974
|
r(st, { cols: 1 }, {
|
|
5975
5975
|
default: d(() => [
|
|
@@ -6552,7 +6552,7 @@ const $1 = t.object({
|
|
|
6552
6552
|
"XPD",
|
|
6553
6553
|
"XPT",
|
|
6554
6554
|
"XAG"
|
|
6555
|
-
]),
|
|
6555
|
+
]), ht = t.object({
|
|
6556
6556
|
amount: t.int(),
|
|
6557
6557
|
currency: q1,
|
|
6558
6558
|
precision: t.int()
|
|
@@ -6574,11 +6574,11 @@ const $1 = t.object({
|
|
|
6574
6574
|
t.null()
|
|
6575
6575
|
]),
|
|
6576
6576
|
balance: t.union([
|
|
6577
|
-
|
|
6577
|
+
ht,
|
|
6578
6578
|
t.null()
|
|
6579
6579
|
]),
|
|
6580
6580
|
discount: t.union([
|
|
6581
|
-
|
|
6581
|
+
ht,
|
|
6582
6582
|
t.null()
|
|
6583
6583
|
]),
|
|
6584
6584
|
email: t.union([
|
|
@@ -6629,11 +6629,11 @@ const O1 = t.object({
|
|
|
6629
6629
|
t.null()
|
|
6630
6630
|
]),
|
|
6631
6631
|
balance: t.union([
|
|
6632
|
-
|
|
6632
|
+
ht,
|
|
6633
6633
|
t.null()
|
|
6634
6634
|
]),
|
|
6635
6635
|
discount: t.union([
|
|
6636
|
-
|
|
6636
|
+
ht,
|
|
6637
6637
|
t.null()
|
|
6638
6638
|
]),
|
|
6639
6639
|
email: t.union([
|
|
@@ -6735,11 +6735,11 @@ t.object({
|
|
|
6735
6735
|
t.null()
|
|
6736
6736
|
]),
|
|
6737
6737
|
balance: t.union([
|
|
6738
|
-
|
|
6738
|
+
ht,
|
|
6739
6739
|
t.null()
|
|
6740
6740
|
]),
|
|
6741
6741
|
discount: t.union([
|
|
6742
|
-
|
|
6742
|
+
ht,
|
|
6743
6743
|
t.null()
|
|
6744
6744
|
]),
|
|
6745
6745
|
email: t.union([
|
|
@@ -7697,18 +7697,18 @@ const Gf = { class: "w-full" }, Kf = /* @__PURE__ */ k({
|
|
|
7697
7697
|
f.result.value.isOk() ? f.result.value.getValue().data : []
|
|
7698
7698
|
));
|
|
7699
7699
|
function y(w) {
|
|
7700
|
-
return w.name !== null ? w.name : w.address !== null ?
|
|
7700
|
+
return w.name !== null ? w.name : w.address !== null ? gt.format(w.address) : w.uuid;
|
|
7701
7701
|
}
|
|
7702
7702
|
function x(w) {
|
|
7703
7703
|
return un.format({
|
|
7704
|
-
countryCode:
|
|
7704
|
+
countryCode: ct.BE,
|
|
7705
7705
|
number: w.replace(s, "")
|
|
7706
7706
|
});
|
|
7707
7707
|
}
|
|
7708
7708
|
function I(w) {
|
|
7709
7709
|
const S = [
|
|
7710
7710
|
x(w.uuid),
|
|
7711
|
-
w.address !== null ?
|
|
7711
|
+
w.address !== null ? gt.format(w.address) : null
|
|
7712
7712
|
].filter(Boolean);
|
|
7713
7713
|
return S.length > 0 ? {
|
|
7714
7714
|
description: {
|
|
@@ -7803,7 +7803,7 @@ const Gf = { class: "w-full" }, Kf = /* @__PURE__ */ k({
|
|
|
7803
7803
|
}), Ji = /* @__PURE__ */ Symbol("baseFieldsetContext");
|
|
7804
7804
|
function Yf() {
|
|
7805
7805
|
const a = Ao(Ji) ?? null;
|
|
7806
|
-
return
|
|
7806
|
+
return wt(a !== null, "`useBaseFieldsetContext` must be used within a component that provides the context"), a;
|
|
7807
7807
|
}
|
|
7808
7808
|
function Xf(a) {
|
|
7809
7809
|
Un(Ji, a);
|
|
@@ -7837,7 +7837,7 @@ const eg = ["aria-describedby"], tg = /* @__PURE__ */ k({
|
|
|
7837
7837
|
}), ag = { class: "mb-lg" }, ig = {
|
|
7838
7838
|
key: 0,
|
|
7839
7839
|
class: "mt-sm text-sm text-secondary"
|
|
7840
|
-
}, og = { class: "col-span-2" },
|
|
7840
|
+
}, og = { class: "col-span-2" }, kt = /* @__PURE__ */ k({
|
|
7841
7841
|
__name: "FormFieldset",
|
|
7842
7842
|
props: {
|
|
7843
7843
|
title: {},
|
|
@@ -7911,7 +7911,7 @@ const eg = ["aria-describedby"], tg = /* @__PURE__ */ k({
|
|
|
7911
7911
|
]),
|
|
7912
7912
|
_: 1
|
|
7913
7913
|
}),
|
|
7914
|
-
r(
|
|
7914
|
+
r(kt, {
|
|
7915
7915
|
title: n(s).t("wise_crm.shared.contact_info")
|
|
7916
7916
|
}, {
|
|
7917
7917
|
default: d(() => [
|
|
@@ -8472,11 +8472,11 @@ const pg = { class: "w-full" }, eo = /* @__PURE__ */ k({
|
|
|
8472
8472
|
form: {}
|
|
8473
8473
|
},
|
|
8474
8474
|
setup(a) {
|
|
8475
|
-
const e = a, i = e.form.register(`customFields.${e.definition.key}`, []), o =
|
|
8475
|
+
const e = a, i = e.form.register(`customFields.${e.definition.key}`, []), o = mt(e.definition.options.map((l) => l.key));
|
|
8476
8476
|
function s(l) {
|
|
8477
8477
|
return e.definition.options.find((u) => u.key === l)?.value ?? l;
|
|
8478
8478
|
}
|
|
8479
|
-
return (l, u) => (c(), g(n(
|
|
8479
|
+
return (l, u) => (c(), g(n(_t), F(n(P)(n(i)), {
|
|
8480
8480
|
"display-fn": s,
|
|
8481
8481
|
label: e.definition.displayName,
|
|
8482
8482
|
placeholder: e.definition.displayName,
|
|
@@ -8530,13 +8530,13 @@ const pg = { class: "w-full" }, eo = /* @__PURE__ */ k({
|
|
|
8530
8530
|
form: {}
|
|
8531
8531
|
},
|
|
8532
8532
|
setup(a) {
|
|
8533
|
-
const e = a, i = e.form.register(`customFields.${e.definition.key}`), o =
|
|
8533
|
+
const e = a, i = e.form.register(`customFields.${e.definition.key}`), o = mt(e.definition.options.map((l) => l.key));
|
|
8534
8534
|
function s(l) {
|
|
8535
8535
|
const u = e.definition.options.find((m) => m.key === l);
|
|
8536
8536
|
return u ? u.value : l;
|
|
8537
8537
|
}
|
|
8538
8538
|
return (l, u) => (c(), v("div", null, [
|
|
8539
|
-
r(n(
|
|
8539
|
+
r(n(_t), F({
|
|
8540
8540
|
"display-fn": s,
|
|
8541
8541
|
label: e.definition.displayName,
|
|
8542
8542
|
placeholder: e.definition.displayName,
|
|
@@ -8664,7 +8664,7 @@ const pg = { class: "w-full" }, eo = /* @__PURE__ */ k({
|
|
|
8664
8664
|
lg: 1
|
|
8665
8665
|
}, {
|
|
8666
8666
|
default: d(() => [
|
|
8667
|
-
r(n(
|
|
8667
|
+
r(n(vt), F({
|
|
8668
8668
|
"is-disabled": i.isDataFromCbe,
|
|
8669
8669
|
"is-required": !0,
|
|
8670
8670
|
label: n(s).t("wise_crm.contact.create_dialog.form.fields.address"),
|
|
@@ -8771,7 +8771,7 @@ const pg = { class: "w-full" }, eo = /* @__PURE__ */ k({
|
|
|
8771
8771
|
}
|
|
8772
8772
|
return (f, _) => (c(), g(n(Ke), null, {
|
|
8773
8773
|
default: d(() => [
|
|
8774
|
-
r(n(
|
|
8774
|
+
r(n(pt), {
|
|
8775
8775
|
"is-unsaved-changes-prompt-enabled": !1,
|
|
8776
8776
|
form: i.form,
|
|
8777
8777
|
class: "flex flex-1 flex-col"
|
|
@@ -8942,7 +8942,7 @@ const pe = C.object({
|
|
|
8942
8942
|
}, {
|
|
8943
8943
|
message: ze.global.t("wise_crm.form.errors.invalid_phone_number")
|
|
8944
8944
|
})), mn = T.object({
|
|
8945
|
-
countryCode: T.enum(
|
|
8945
|
+
countryCode: T.enum(ct, {
|
|
8946
8946
|
error: ze.global.t("validation.vat_number.invalid_country_code")
|
|
8947
8947
|
}),
|
|
8948
8948
|
number: T.string().min(1).regex(/^\d+$/, ze.global.t("validation.vat_number.numbers_only"))
|
|
@@ -9083,7 +9083,7 @@ function Wn(a) {
|
|
|
9083
9083
|
if (!i.getConfig().businessConfig.viesValidation)
|
|
9084
9084
|
return;
|
|
9085
9085
|
const V = x.value.value;
|
|
9086
|
-
if (V === null)
|
|
9086
|
+
if (V === null || V.countryCode === ct.BE)
|
|
9087
9087
|
return;
|
|
9088
9088
|
S.value = !0;
|
|
9089
9089
|
const A = await _e.checkVatNumber(V);
|
|
@@ -9103,7 +9103,7 @@ function Wn(a) {
|
|
|
9103
9103
|
return !1;
|
|
9104
9104
|
const A = V.uuid.replace(Mg, "");
|
|
9105
9105
|
w.value = !0;
|
|
9106
|
-
const M = await _e.checkVatNumberExistence(A,
|
|
9106
|
+
const M = await _e.checkVatNumberExistence(A, ct.BE);
|
|
9107
9107
|
if (w.value = !1, M.isErr())
|
|
9108
9108
|
return e.show(M.error), !1;
|
|
9109
9109
|
if (M.value !== null)
|
|
@@ -9127,12 +9127,12 @@ function Wn(a) {
|
|
|
9127
9127
|
lat: null,
|
|
9128
9128
|
lng: null
|
|
9129
9129
|
},
|
|
9130
|
-
country:
|
|
9130
|
+
country: ct.BE
|
|
9131
9131
|
});
|
|
9132
9132
|
} else
|
|
9133
9133
|
h.setValue(null);
|
|
9134
9134
|
return x.setValue({
|
|
9135
|
-
countryCode:
|
|
9135
|
+
countryCode: ct.BE,
|
|
9136
9136
|
number: A
|
|
9137
9137
|
}), y.setValue(A), await z(), !0;
|
|
9138
9138
|
}
|
|
@@ -9328,7 +9328,7 @@ const Lg = /* @__PURE__ */ k({
|
|
|
9328
9328
|
]),
|
|
9329
9329
|
_: 1
|
|
9330
9330
|
}),
|
|
9331
|
-
r(
|
|
9331
|
+
r(kt, {
|
|
9332
9332
|
title: n(s).t("wise_crm.shared.contact_info")
|
|
9333
9333
|
}, {
|
|
9334
9334
|
default: d(() => [
|
|
@@ -9422,7 +9422,7 @@ const Lg = /* @__PURE__ */ k({
|
|
|
9422
9422
|
]),
|
|
9423
9423
|
_: 1
|
|
9424
9424
|
}),
|
|
9425
|
-
r(
|
|
9425
|
+
r(kt, {
|
|
9426
9426
|
title: n(i).t("wise_crm.shared.contact_info")
|
|
9427
9427
|
}, {
|
|
9428
9428
|
default: d(() => [
|
|
@@ -9623,7 +9623,7 @@ const Lg = /* @__PURE__ */ k({
|
|
|
9623
9623
|
title: n(s).t("wise_crm.info_dialog.contact_person_create.title"),
|
|
9624
9624
|
description: n(s).t("wise_crm.info_dialog.contact_person_create.description")
|
|
9625
9625
|
}, null, 8, ["title", "description"]),
|
|
9626
|
-
p.value ? (c(), g(n(
|
|
9626
|
+
p.value ? (c(), g(n(pt), {
|
|
9627
9627
|
key: 0,
|
|
9628
9628
|
form: n(f),
|
|
9629
9629
|
"prompt-on-unsaved-changes": !1
|
|
@@ -9637,7 +9637,7 @@ const Lg = /* @__PURE__ */ k({
|
|
|
9637
9637
|
}, null, 8, ["is-new-mode", "create-form", "existing-form"])
|
|
9638
9638
|
]),
|
|
9639
9639
|
_: 1
|
|
9640
|
-
}, 8, ["form"])) : (c(), g(n(
|
|
9640
|
+
}, 8, ["form"])) : (c(), g(n(pt), {
|
|
9641
9641
|
key: 1,
|
|
9642
9642
|
form: n(_),
|
|
9643
9643
|
"prompt-on-unsaved-changes": !1
|
|
@@ -9844,7 +9844,7 @@ const lt = /* @__PURE__ */ ye(Gg, [["render", Qg]]), Wg = { class: "font-semibol
|
|
|
9844
9844
|
b("p", Wg, E(e.invoiceEmail), 1),
|
|
9845
9845
|
b("div", Jg, [
|
|
9846
9846
|
r(ce, {
|
|
9847
|
-
label: e.invoiceAddress !== null ? n(
|
|
9847
|
+
label: e.invoiceAddress !== null ? n(gt).formatShort(e.invoiceAddress) : "-",
|
|
9848
9848
|
icon: n(en)
|
|
9849
9849
|
}, null, 8, ["label", "icon"])
|
|
9850
9850
|
])
|
|
@@ -9991,7 +9991,7 @@ const lt = /* @__PURE__ */ ye(Gg, [["render", Qg]]), Wg = { class: "font-semibol
|
|
|
9991
9991
|
i.contactPerson.phone !== null ? (c(), g(ce, {
|
|
9992
9992
|
key: 2,
|
|
9993
9993
|
label: i.contactPerson.phone,
|
|
9994
|
-
icon: n(
|
|
9994
|
+
icon: n(ft)
|
|
9995
9995
|
}, null, 8, ["label", "icon"])) : N("", !0)
|
|
9996
9996
|
])
|
|
9997
9997
|
]),
|
|
@@ -10068,7 +10068,7 @@ const lt = /* @__PURE__ */ ye(Gg, [["render", Qg]]), Wg = { class: "font-semibol
|
|
|
10068
10068
|
]),
|
|
10069
10069
|
_: 2
|
|
10070
10070
|
}, 1024),
|
|
10071
|
-
r(n(
|
|
10071
|
+
r(n(yt), { initial: !1 }, {
|
|
10072
10072
|
default: d(() => [
|
|
10073
10073
|
s ? (c(), g(n(Fl), {
|
|
10074
10074
|
key: 0,
|
|
@@ -10274,10 +10274,10 @@ const lt = /* @__PURE__ */ ye(Gg, [["render", Qg]]), Wg = { class: "font-semibol
|
|
|
10274
10274
|
}, null, 8, ["label", "icon"]),
|
|
10275
10275
|
r(ce, {
|
|
10276
10276
|
label: y.mobilePhone ?? y.phone ?? "-",
|
|
10277
|
-
icon: n(
|
|
10277
|
+
icon: n(ft)
|
|
10278
10278
|
}, null, 8, ["label", "icon"]),
|
|
10279
10279
|
r(ce, {
|
|
10280
|
-
label: y.address ? n(
|
|
10280
|
+
label: y.address ? n(gt).formatShort(y.address) : "-",
|
|
10281
10281
|
icon: n(en)
|
|
10282
10282
|
}, null, 8, ["label", "icon"])
|
|
10283
10283
|
]),
|
|
@@ -10324,7 +10324,7 @@ const lt = /* @__PURE__ */ ye(Gg, [["render", Qg]]), Wg = { class: "font-semibol
|
|
|
10324
10324
|
b("div", Sb, [
|
|
10325
10325
|
r(ce, {
|
|
10326
10326
|
label: n(s).t("wise_crm.info_dialog.sidebar.overview.created_at_label", {
|
|
10327
|
-
value: i.business.createdAt ? n(
|
|
10327
|
+
value: i.business.createdAt ? n(bt)().toDateTime(i.business.createdAt) : "-"
|
|
10328
10328
|
}),
|
|
10329
10329
|
icon: n(ii)
|
|
10330
10330
|
}, null, 8, ["label", "icon"])
|
|
@@ -10774,7 +10774,7 @@ const Gb = /* @__PURE__ */ k({
|
|
|
10774
10774
|
function R(V) {
|
|
10775
10775
|
V || (h.setValue(f.modelValue.value ?? ""), _.setValue(p.modelValue.value ?? []));
|
|
10776
10776
|
}
|
|
10777
|
-
return (V, A) => (c(), g(
|
|
10777
|
+
return (V, A) => (c(), g(xt, {
|
|
10778
10778
|
id: u.value,
|
|
10779
10779
|
form: n(l),
|
|
10780
10780
|
class: "flex h-full flex-col justify-between"
|
|
@@ -10794,7 +10794,7 @@ const Gb = /* @__PURE__ */ k({
|
|
|
10794
10794
|
lg: 1
|
|
10795
10795
|
}, {
|
|
10796
10796
|
default: d(() => [
|
|
10797
|
-
r(n(
|
|
10797
|
+
r(n(vt), F({
|
|
10798
10798
|
label: n(i).t("wise_crm.info_dialog.business.information.billing_information.billing_address"),
|
|
10799
10799
|
placeholder: n(i).t("wise_crm.info_dialog.business.information.billing_information.billing_address")
|
|
10800
10800
|
}, n(P)(n(m))), null, 16, ["label", "placeholder"])
|
|
@@ -10978,7 +10978,7 @@ const pn = /* @__PURE__ */ k({
|
|
|
10978
10978
|
},
|
|
10979
10979
|
setup(a) {
|
|
10980
10980
|
const e = a;
|
|
10981
|
-
return (i, o) => (c(), g(n(
|
|
10981
|
+
return (i, o) => (c(), g(n(yt), null, {
|
|
10982
10982
|
default: d(() => [
|
|
10983
10983
|
e.isOpen ? (c(), g(n(be), {
|
|
10984
10984
|
key: 0,
|
|
@@ -11012,7 +11012,7 @@ const pn = /* @__PURE__ */ k({
|
|
|
11012
11012
|
_: 3
|
|
11013
11013
|
}));
|
|
11014
11014
|
}
|
|
11015
|
-
}), fn = T.enum(
|
|
11015
|
+
}), fn = T.enum(dt);
|
|
11016
11016
|
class po {
|
|
11017
11017
|
static i18nKeys = rn({
|
|
11018
11018
|
"en-US": "wise_crm.enum.language.en",
|
|
@@ -11071,8 +11071,8 @@ const Wb = /* @__PURE__ */ k({
|
|
|
11071
11071
|
onSubmit: async (x) => {
|
|
11072
11072
|
await e.onSubmit(x);
|
|
11073
11073
|
}
|
|
11074
|
-
}), s = o.register("name"), l = o.register("address"), u = o.register("companyNumber"), m = o.register("email"), p = o.register("mobilePhone"), f = o.register("phone"), _ = o.register("vatNumber"), h = o.register("language"), y =
|
|
11075
|
-
return (x, I) => (c(), g(
|
|
11074
|
+
}), s = o.register("name"), l = o.register("address"), u = o.register("companyNumber"), m = o.register("email"), p = o.register("mobilePhone"), f = o.register("phone"), _ = o.register("vatNumber"), h = o.register("language"), y = mt(Object.values(dt));
|
|
11075
|
+
return (x, I) => (c(), g(xt, {
|
|
11076
11076
|
form: n(o),
|
|
11077
11077
|
class: "flex h-full flex-col justify-between"
|
|
11078
11078
|
}, {
|
|
@@ -11095,7 +11095,7 @@ const Wb = /* @__PURE__ */ k({
|
|
|
11095
11095
|
label: n(i).t("wise_crm.contact.create_dialog.form.name"),
|
|
11096
11096
|
placeholder: n(i).t("wise_crm.contact.create_dialog.form.name")
|
|
11097
11097
|
}), null, 16, ["label", "placeholder"]),
|
|
11098
|
-
r(n(
|
|
11098
|
+
r(n(_t), F({
|
|
11099
11099
|
label: n(i).t("wise_crm.contact.create_dialog.form.fields.language")
|
|
11100
11100
|
}, n(P)(n(h)), {
|
|
11101
11101
|
"display-fn": (w) => w ? n(i).t(n(po).getI18nKey(w)) : "",
|
|
@@ -11117,7 +11117,7 @@ const Wb = /* @__PURE__ */ k({
|
|
|
11117
11117
|
lg: 1
|
|
11118
11118
|
}, {
|
|
11119
11119
|
default: d(() => [
|
|
11120
|
-
r(n(
|
|
11120
|
+
r(n(vt), F({
|
|
11121
11121
|
"is-required": !0,
|
|
11122
11122
|
label: n(i).t("wise_crm.contact.create_dialog.form.fields.address"),
|
|
11123
11123
|
placeholder: n(i).t("wise_crm.contact.create_dialog.form.fields.address")
|
|
@@ -11140,7 +11140,7 @@ const Wb = /* @__PURE__ */ k({
|
|
|
11140
11140
|
]),
|
|
11141
11141
|
_: 1
|
|
11142
11142
|
}),
|
|
11143
|
-
r(
|
|
11143
|
+
r(kt, {
|
|
11144
11144
|
title: n(i).t("wise_crm.shared.contact_info")
|
|
11145
11145
|
}, {
|
|
11146
11146
|
default: d(() => [
|
|
@@ -11524,7 +11524,7 @@ const fo = /* @__PURE__ */ k({
|
|
|
11524
11524
|
lg: 1
|
|
11525
11525
|
}, {
|
|
11526
11526
|
default: d(() => [
|
|
11527
|
-
r(n(
|
|
11527
|
+
r(n(vt), F({
|
|
11528
11528
|
label: n(s).t("wise_crm.contact.create_dialog.form.fields.address"),
|
|
11529
11529
|
placeholder: n(s).t("wise_crm.contact.create_dialog.form.fields.address")
|
|
11530
11530
|
}, n(P)(n(y)), { class: "col-span-2" }), null, 16, ["label", "placeholder"])
|
|
@@ -11547,7 +11547,7 @@ const fo = /* @__PURE__ */ k({
|
|
|
11547
11547
|
]),
|
|
11548
11548
|
_: 1
|
|
11549
11549
|
}),
|
|
11550
|
-
r(
|
|
11550
|
+
r(kt, {
|
|
11551
11551
|
title: n(s).t("wise_crm.shared.contact_info"),
|
|
11552
11552
|
class: "w-full"
|
|
11553
11553
|
}, {
|
|
@@ -12466,7 +12466,7 @@ const ho = /* @__PURE__ */ k({
|
|
|
12466
12466
|
M.parentName ? (c(), v("p", s2, E(M.parentName), 1)) : N("", !0),
|
|
12467
12467
|
b("p", null, E(M.description), 1),
|
|
12468
12468
|
M.email ? (c(), v("p", r2, E(M.email), 1)) : N("", !0),
|
|
12469
|
-
M.address ? (c(), v("p", l2, E(n(
|
|
12469
|
+
M.address ? (c(), v("p", l2, E(n(gt).formatShort(M.address)), 1)) : N("", !0)
|
|
12470
12470
|
])) : N("", !0)
|
|
12471
12471
|
])
|
|
12472
12472
|
]),
|
|
@@ -13054,7 +13054,7 @@ const B2 = { class: "text-sm font-medium text-primary" }, j2 = { class: "text-xs
|
|
|
13054
13054
|
},
|
|
13055
13055
|
emits: ["openDeal"],
|
|
13056
13056
|
setup(a, { emit: e }) {
|
|
13057
|
-
const i = a, o = e, s = B(), l =
|
|
13057
|
+
const i = a, o = e, s = B(), l = bt(), u = D(() => {
|
|
13058
13058
|
if (i.boardColumnConfig.maxDaysInColumnBeforeHighlight === null)
|
|
13059
13059
|
return !1;
|
|
13060
13060
|
const p = i.deal.createdAt, f = He.Now.zonedDateTimeISO();
|
|
@@ -13325,7 +13325,7 @@ const K2 = /* @__PURE__ */ k({
|
|
|
13325
13325
|
function _(x) {
|
|
13326
13326
|
return i.t(G2.getI18nKey(x));
|
|
13327
13327
|
}
|
|
13328
|
-
const h =
|
|
13328
|
+
const h = mt(Object.values(nt)), y = mt(Object.values(Fa));
|
|
13329
13329
|
return it(() => {
|
|
13330
13330
|
l.setValue(`${i.t("wise_crm.deal.form.fields.quote")}: ${e.form.state.value.clientId?.name}`);
|
|
13331
13331
|
}), (x, I) => (c(), g(n(Pe), null, {
|
|
@@ -13342,14 +13342,14 @@ const K2 = /* @__PURE__ */ k({
|
|
|
13342
13342
|
placeholder: n(i).t("wise_crm.deal.form.fields.name_placeholder"),
|
|
13343
13343
|
"is-required": !0
|
|
13344
13344
|
}, n(P)(n(l)), { class: "col-span-full" }), null, 16, ["label", "placeholder"]),
|
|
13345
|
-
r(n(
|
|
13345
|
+
r(n(_t), F(n(P)(n(m)), {
|
|
13346
13346
|
"display-fn": f,
|
|
13347
13347
|
label: n(i).t("wise_crm.deal.form.fields.language"),
|
|
13348
13348
|
placeholder: n(i).t("wise_crm.deal.form.fields.language_placeholder"),
|
|
13349
13349
|
items: n(h),
|
|
13350
13350
|
"is-required": !0
|
|
13351
13351
|
}), null, 16, ["label", "placeholder", "items"]),
|
|
13352
|
-
r(n(
|
|
13352
|
+
r(n(_t), F({
|
|
13353
13353
|
"display-fn": _,
|
|
13354
13354
|
label: n(i).t("wise_crm.deal.form.fields.source"),
|
|
13355
13355
|
placeholder: n(i).t("wise_crm.deal.form.fields.source_placeholder")
|
|
@@ -13482,7 +13482,7 @@ const K2 = /* @__PURE__ */ k({
|
|
|
13482
13482
|
function l() {
|
|
13483
13483
|
o("createNewBusiness");
|
|
13484
13484
|
}
|
|
13485
|
-
return (u, m) => (c(), g(n(
|
|
13485
|
+
return (u, m) => (c(), g(n(pt), {
|
|
13486
13486
|
form: i.form,
|
|
13487
13487
|
"prompt-on-unsaved-changes": !1
|
|
13488
13488
|
}, {
|
|
@@ -14444,7 +14444,7 @@ function Fh(a, e) {
|
|
|
14444
14444
|
params: {
|
|
14445
14445
|
individualUuid: a
|
|
14446
14446
|
},
|
|
14447
|
-
queryFn: () => (
|
|
14447
|
+
queryFn: () => (wt(a.value !== null, "Individual UUID must not be null"), se.getBillingInformation(a.value))
|
|
14448
14448
|
});
|
|
14449
14449
|
}
|
|
14450
14450
|
function ta(a) {
|
|
@@ -14453,7 +14453,7 @@ function ta(a) {
|
|
|
14453
14453
|
params: {
|
|
14454
14454
|
individualUuid: a
|
|
14455
14455
|
},
|
|
14456
|
-
queryFn: () => (
|
|
14456
|
+
queryFn: () => (wt(a.value !== null, "individualUuid is null"), se.getByUuid(a.value))
|
|
14457
14457
|
});
|
|
14458
14458
|
}
|
|
14459
14459
|
const Ph = C.object({
|
|
@@ -14515,7 +14515,7 @@ const Th = /* @__PURE__ */ k({
|
|
|
14515
14515
|
await e.onSubmit(f);
|
|
14516
14516
|
}
|
|
14517
14517
|
}), u = l.register("billingAddress"), m = l.register("invoiceCcEmails", []), p = l.register("invoiceEmail");
|
|
14518
|
-
return (f, _) => (c(), g(
|
|
14518
|
+
return (f, _) => (c(), g(xt, {
|
|
14519
14519
|
form: n(l),
|
|
14520
14520
|
class: "flex h-full flex-col justify-between"
|
|
14521
14521
|
}, {
|
|
@@ -14534,7 +14534,7 @@ const Th = /* @__PURE__ */ k({
|
|
|
14534
14534
|
lg: 1
|
|
14535
14535
|
}, {
|
|
14536
14536
|
default: d(() => [
|
|
14537
|
-
r(n(
|
|
14537
|
+
r(n(vt), F({
|
|
14538
14538
|
label: n(i).t("wise_crm.info_dialog.business.information.billing_information.billing_address"),
|
|
14539
14539
|
placeholder: n(i).t("wise_crm.info_dialog.business.information.billing_information.billing_address")
|
|
14540
14540
|
}, n(P)(n(u))), null, 16, ["label", "placeholder"])
|
|
@@ -14679,8 +14679,8 @@ const qh = /* @__PURE__ */ k({
|
|
|
14679
14679
|
onSubmit: async (y) => {
|
|
14680
14680
|
await e.onSubmit(y);
|
|
14681
14681
|
}
|
|
14682
|
-
}), s = o.register("firstName"), l = o.register("lastName"), u = o.register("language"), m = o.register("address"), p = o.register("email"), f = o.register("mobilePhone"), _ = o.register("phone"), h =
|
|
14683
|
-
return (y, x) => (c(), g(
|
|
14682
|
+
}), s = o.register("firstName"), l = o.register("lastName"), u = o.register("language"), m = o.register("address"), p = o.register("email"), f = o.register("mobilePhone"), _ = o.register("phone"), h = mt(Object.values(dt));
|
|
14683
|
+
return (y, x) => (c(), g(xt, {
|
|
14684
14684
|
form: n(o),
|
|
14685
14685
|
class: "flex h-full flex-col justify-between"
|
|
14686
14686
|
}, {
|
|
@@ -14730,7 +14730,7 @@ const qh = /* @__PURE__ */ k({
|
|
|
14730
14730
|
lg: 1
|
|
14731
14731
|
}, {
|
|
14732
14732
|
default: d(() => [
|
|
14733
|
-
r(n(
|
|
14733
|
+
r(n(vt), F({
|
|
14734
14734
|
label: n(i).t("wise_crm.contact.create_dialog.form.fields.address"),
|
|
14735
14735
|
placeholder: n(i).t("wise_crm.contact.create_dialog.form.fields.address")
|
|
14736
14736
|
}, n(P)(n(m))), null, 16, ["label", "placeholder"])
|
|
@@ -14742,7 +14742,7 @@ const qh = /* @__PURE__ */ k({
|
|
|
14742
14742
|
lg: 2
|
|
14743
14743
|
}, {
|
|
14744
14744
|
default: d(() => [
|
|
14745
|
-
r(n(
|
|
14745
|
+
r(n(_t), F({
|
|
14746
14746
|
label: n(i).t("wise_crm.contact.create_dialog.form.fields.language")
|
|
14747
14747
|
}, n(P)(n(u)), {
|
|
14748
14748
|
"display-fn": (I) => I ? n(i).t(n(po).getI18nKey(I)) : "",
|
|
@@ -14759,7 +14759,7 @@ const qh = /* @__PURE__ */ k({
|
|
|
14759
14759
|
]),
|
|
14760
14760
|
_: 1
|
|
14761
14761
|
}),
|
|
14762
|
-
r(
|
|
14762
|
+
r(kt, {
|
|
14763
14763
|
title: n(i).t("wise_crm.shared.contact_info")
|
|
14764
14764
|
}, {
|
|
14765
14765
|
default: d(() => [
|
|
@@ -14882,7 +14882,7 @@ function Kh() {
|
|
|
14882
14882
|
queryFn: async ({
|
|
14883
14883
|
body: a,
|
|
14884
14884
|
params: e
|
|
14885
|
-
}) => await
|
|
14885
|
+
}) => await Ct.create(a, {
|
|
14886
14886
|
individualUuid: e.individualUuid
|
|
14887
14887
|
}),
|
|
14888
14888
|
queryKeysToInvalidate: {
|
|
@@ -14895,7 +14895,7 @@ function Qh(a, e) {
|
|
|
14895
14895
|
params: {
|
|
14896
14896
|
params: e?.params
|
|
14897
14897
|
},
|
|
14898
|
-
queryFn: (i) =>
|
|
14898
|
+
queryFn: (i) => Ct.getIndividualNotes({
|
|
14899
14899
|
pagination: i
|
|
14900
14900
|
}, a.value)
|
|
14901
14901
|
});
|
|
@@ -15058,13 +15058,13 @@ const Xh = { class: "flex flex-col gap-md" }, ev = { class: "flex flex-col gap-s
|
|
|
15058
15058
|
}, null, 8, ["label", "icon"]),
|
|
15059
15059
|
r(ce, {
|
|
15060
15060
|
label: e.individual.phone ?? "-",
|
|
15061
|
-
icon: n(
|
|
15061
|
+
icon: n(ft)
|
|
15062
15062
|
}, null, 8, ["label", "icon"])
|
|
15063
15063
|
]),
|
|
15064
15064
|
b("div", tv, [
|
|
15065
15065
|
r(ce, {
|
|
15066
15066
|
label: n(i).t("wise_crm.info_dialog.sidebar.overview.created_at_label", {
|
|
15067
|
-
value: e.individual.createdAt ? n(
|
|
15067
|
+
value: e.individual.createdAt ? n(bt)().toDateTime(e.individual.createdAt) : "-"
|
|
15068
15068
|
}),
|
|
15069
15069
|
icon: n(ii)
|
|
15070
15070
|
}, null, 8, ["label", "icon"])
|
|
@@ -15196,7 +15196,7 @@ const iv = /* @__PURE__ */ k({
|
|
|
15196
15196
|
title: n(s).t("wise_crm.info_dialog.contact_person_create.title"),
|
|
15197
15197
|
description: n(s).t("wise_crm.info_dialog.contact_person_create.description")
|
|
15198
15198
|
}, null, 8, ["title", "description"]),
|
|
15199
|
-
p.value ? (c(), g(n(
|
|
15199
|
+
p.value ? (c(), g(n(pt), {
|
|
15200
15200
|
key: 0,
|
|
15201
15201
|
form: n(f),
|
|
15202
15202
|
"prompt-on-unsaved-changes": !1
|
|
@@ -15210,7 +15210,7 @@ const iv = /* @__PURE__ */ k({
|
|
|
15210
15210
|
}, null, 8, ["is-new-mode", "create-form", "existing-form"])
|
|
15211
15211
|
]),
|
|
15212
15212
|
_: 1
|
|
15213
|
-
}, 8, ["form"])) : (c(), g(n(
|
|
15213
|
+
}, 8, ["form"])) : (c(), g(n(pt), {
|
|
15214
15214
|
key: 1,
|
|
15215
15215
|
form: n(_),
|
|
15216
15216
|
"prompt-on-unsaved-changes": !1
|
|
@@ -15504,7 +15504,7 @@ const rv = /* @__PURE__ */ k({
|
|
|
15504
15504
|
}, null, 8, ["label", "icon"]),
|
|
15505
15505
|
r(ce, {
|
|
15506
15506
|
label: V.mobilePhone ?? V.phone ?? "-",
|
|
15507
|
-
icon: n(
|
|
15507
|
+
icon: n(ft)
|
|
15508
15508
|
}, null, 8, ["label", "icon"])
|
|
15509
15509
|
]),
|
|
15510
15510
|
_: 2
|
|
@@ -15936,7 +15936,7 @@ const yv = /* @__PURE__ */ k({
|
|
|
15936
15936
|
});
|
|
15937
15937
|
}
|
|
15938
15938
|
return (p, f) => (c(), v("div", Dv, [
|
|
15939
|
-
r(n(
|
|
15939
|
+
r(n(yt), { initial: !1 }, {
|
|
15940
15940
|
default: d(() => [
|
|
15941
15941
|
l.value ? (c(), g(n(be), {
|
|
15942
15942
|
key: 0,
|
|
@@ -16210,7 +16210,7 @@ const ko = /* @__PURE__ */ k({
|
|
|
16210
16210
|
s === Le.SUCCESS && (i.value = !0, setTimeout(() => {
|
|
16211
16211
|
i.value = !1;
|
|
16212
16212
|
}, 2e3));
|
|
16213
|
-
}), (s, l) => (c(), g(n(
|
|
16213
|
+
}), (s, l) => (c(), g(n(yt), { mode: "popLayout" }, {
|
|
16214
16214
|
default: d(() => [
|
|
16215
16215
|
i.value ? (c(), g(n(be), {
|
|
16216
16216
|
key: 0,
|
|
@@ -16367,7 +16367,7 @@ const ko = /* @__PURE__ */ k({
|
|
|
16367
16367
|
r(de, null, {
|
|
16368
16368
|
default: d(() => [
|
|
16369
16369
|
b("span", $v, E(e.item.mimeType), 1),
|
|
16370
|
-
r(n(
|
|
16370
|
+
r(n(yt), { initial: !1 }, {
|
|
16371
16371
|
default: d(() => [
|
|
16372
16372
|
e.item.status === n(Le).UPLOADING || e.item.status === n(Le).PENDING ? (c(), g(n(be), {
|
|
16373
16373
|
key: 0,
|
|
@@ -16508,7 +16508,7 @@ const ko = /* @__PURE__ */ k({
|
|
|
16508
16508
|
default: d(() => [
|
|
16509
16509
|
r(vo, null, {
|
|
16510
16510
|
default: d(() => [
|
|
16511
|
-
r(n(
|
|
16511
|
+
r(n(yt), {
|
|
16512
16512
|
initial: !1,
|
|
16513
16513
|
mode: "popLayout"
|
|
16514
16514
|
}, {
|
|
@@ -16758,7 +16758,7 @@ const ko = /* @__PURE__ */ k({
|
|
|
16758
16758
|
}
|
|
16759
16759
|
});
|
|
16760
16760
|
function ly(a) {
|
|
16761
|
-
return
|
|
16761
|
+
return wt(a.length > 0, "At least one business tab route is required"), [
|
|
16762
16762
|
{
|
|
16763
16763
|
name: "business-detail",
|
|
16764
16764
|
props: {
|
|
@@ -16768,7 +16768,7 @@ function ly(a) {
|
|
|
16768
16768
|
}))
|
|
16769
16769
|
},
|
|
16770
16770
|
path: "/business/:businessUuid",
|
|
16771
|
-
component: () => import("./BusinessDetailView-
|
|
16771
|
+
component: () => import("./BusinessDetailView-BAPIWUJK.js"),
|
|
16772
16772
|
redirect: {
|
|
16773
16773
|
name: a[0].route.name
|
|
16774
16774
|
},
|
|
@@ -16782,7 +16782,7 @@ function cy(a) {
|
|
|
16782
16782
|
{
|
|
16783
16783
|
name: "deal-communication",
|
|
16784
16784
|
path: "communication",
|
|
16785
|
-
component: () => import("./DealCommunicationTabView-
|
|
16785
|
+
component: () => import("./DealCommunicationTabView-BcWXQ8Nh.js")
|
|
16786
16786
|
}
|
|
16787
16787
|
];
|
|
16788
16788
|
return [
|
|
@@ -16795,7 +16795,7 @@ function cy(a) {
|
|
|
16795
16795
|
}))
|
|
16796
16796
|
},
|
|
16797
16797
|
path: "/deals/:dealUuid",
|
|
16798
|
-
component: () => import("./DealDetailView-
|
|
16798
|
+
component: () => import("./DealDetailView-BFwkI6kR.js"),
|
|
16799
16799
|
redirect: {
|
|
16800
16800
|
name: e[0].name
|
|
16801
16801
|
},
|
|
@@ -16804,7 +16804,7 @@ function cy(a) {
|
|
|
16804
16804
|
];
|
|
16805
16805
|
}
|
|
16806
16806
|
function uy(a) {
|
|
16807
|
-
return
|
|
16807
|
+
return wt(a.length > 0, "At least one individual tab route is required"), [
|
|
16808
16808
|
{
|
|
16809
16809
|
name: "individual-detail",
|
|
16810
16810
|
props: {
|
|
@@ -16814,7 +16814,7 @@ function uy(a) {
|
|
|
16814
16814
|
}))
|
|
16815
16815
|
},
|
|
16816
16816
|
path: "/individual/:individualUuid",
|
|
16817
|
-
component: () => import("./IndividualDetailView-
|
|
16817
|
+
component: () => import("./IndividualDetailView-CnqNAYNM.js"),
|
|
16818
16818
|
redirect: {
|
|
16819
16819
|
name: a[0].route.name
|
|
16820
16820
|
},
|
|
@@ -16857,7 +16857,7 @@ export {
|
|
|
16857
16857
|
qy as P,
|
|
16858
16858
|
ii as Q,
|
|
16859
16859
|
We as R,
|
|
16860
|
-
|
|
16860
|
+
Ct as S,
|
|
16861
16861
|
Bi as T,
|
|
16862
16862
|
V2 as U,
|
|
16863
16863
|
Si as V,
|
|
@@ -16897,14 +16897,14 @@ export {
|
|
|
16897
16897
|
Kv as b,
|
|
16898
16898
|
ea as c,
|
|
16899
16899
|
ne as d,
|
|
16900
|
-
|
|
16900
|
+
xt as e,
|
|
16901
16901
|
co as f,
|
|
16902
16902
|
Bt as g,
|
|
16903
16903
|
tb as h,
|
|
16904
16904
|
Gu as i,
|
|
16905
16905
|
ru as j,
|
|
16906
16906
|
ce as k,
|
|
16907
|
-
|
|
16907
|
+
ft as l,
|
|
16908
16908
|
Rc as m,
|
|
16909
16909
|
Ve as n,
|
|
16910
16910
|
eo as o,
|
|
@@ -16913,8 +16913,8 @@ export {
|
|
|
16913
16913
|
Mn as r,
|
|
16914
16914
|
ze as s,
|
|
16915
16915
|
io as t,
|
|
16916
|
-
|
|
16917
|
-
|
|
16916
|
+
bt as u,
|
|
16917
|
+
kt as v,
|
|
16918
16918
|
Rn as w,
|
|
16919
16919
|
st as x,
|
|
16920
16920
|
Vn as y,
|
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a6 as i, a7 as e, a8 as r, a9 as C, aa as m, ab as n, ac as d, ad as W, ae as l, P as t, af as o, ag as u, ah as g, ai as v, aj as c, ak as B, al as D, am as I, an as b, r as f, X as S, O as h, ao as p, ap as T, aq as U } from "./index-
|
|
1
|
+
import { a6 as i, a7 as e, a8 as r, a9 as C, aa as m, ab as n, ac as d, ad as W, ae as l, P as t, af as o, ag as u, ah as g, ai as v, aj as c, ak as B, al as D, am as I, an as b, r as f, X as S, O as h, ao as p, ap as T, aq as U } from "./index-BrCd1uKq.js";
|
|
2
2
|
export {
|
|
3
3
|
i as CrmSearchTrigger,
|
|
4
4
|
e as WiseCrmBusinessBillingInformationCard,
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wisemen/wise-crm-web",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "2.0.0-alpha.
|
|
4
|
+
"version": "2.0.0-alpha.17",
|
|
5
5
|
"private": false,
|
|
6
6
|
"description": "CRM frontend package with Vue 3 components, composables and types",
|
|
7
7
|
"author": "Wisemen",
|
|
@@ -91,6 +91,7 @@
|
|
|
91
91
|
"@wisemen/vue-core-icons": "^0.0.3",
|
|
92
92
|
"eslint": "9.39.2",
|
|
93
93
|
"eslint-plugin-oxlint": "1.43.0",
|
|
94
|
+
"oxlint": "1.43.0",
|
|
94
95
|
"formango": "3.2.5",
|
|
95
96
|
"motion-v": "1.10.2",
|
|
96
97
|
"pinia": "3.0.4",
|