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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,13 +1,13 @@
1
1
  import * as t from "zod";
2
2
  import T, { z as x } from "zod";
3
- import { defineComponent as k, openBlock as c, createBlock as f, unref as a, withCtx as d, renderSlot as H, createElementBlock as v, createElementVNode as b, computed as D, normalizeStyle as Io, ref as $, readonly as Vo, watch as Ne, createVNode as r, Fragment as q, renderList as X, resolveDynamicComponent as J, toDisplayString as N, provide as Un, createCommentVNode as S, useModel as je, mergeModels as Ce, createStaticVNode as St, normalizeClass as ee, createTextVNode as me, onMounted as Ke, createSlots as Uo, onUnmounted as Sa, useId as Qt, withModifiers as Aa, mergeProps as E, inject as No, h as be, toValue as So, useAttrs as Ao, useTemplateRef as Eo, onBeforeUnmount as Fo } from "vue";
4
- import { c as j, z as Po, a as Bo, b as jo, d as zo, e as Mo, f as To, g as $o, h as Lo, i as qo, j as Ro, k as Oo, l as Ho, m as Zo, n as Go, o as Ko, p as Qo, q as Wo, r as Jo, s as Yo, t as Xo, u as es, v as ts, w as ns, x as as, y as is, A as os, B as ss, C as rs, D as ls, E as cs, F as us, G as ds, H as ms, I as _s, J as ps, K as fs, L as gs, M as bs, N as hs, O as vs, P as ys, Q as ws, R as Cs, S as xs, T as ks, U as Ds, V as Is, W as Vs, X as Us, Y as Ns, Z as Ss, _ as As, $ as Es, a0 as Fs, a1 as Ps, a2 as Bs, a3 as js, a4 as zs, a5 as Ms, a6 as Ts, a7 as $s, a8 as Ls, a9 as qs, aa as Rs, ab as Os, ac as Hs, ad as Zs, ae as Gs, af as Ks, ag as Qs, ah as Ws, ai as Js, aj as Ys, ak as Xs, al as er, am as tr, an as nr, ao as ar, ap as ir, aq as or, ar as sr, as as rr, at as lr, au as cr, av as ur, aw as dr, ax as mr, ay as _r, az as pr, aA as fr, aB as gr, aC as br, aD as hr, aE as vr, aF as yr, aG as wr, aH as Cr, aI as xr, aJ as kr, aK as Dr, aL as Ir, aM as Vr, aN as Ur, aO as Nr, aP as Sr, aQ as Ar, aR as Er, aS as Fr, aT as Pr, aU as Br, aV as jr, aW as zr, aX as Mr, aY as ae, aZ as O, a_ as dt, a$ as qt, b0 as Ue, b1 as Tr, b2 as kt, b3 as at, b4 as At, b5 as Ea, b6 as $r } from "./uuid.util-90e4mXv8.js";
5
- import { UIThemeProvider as Lr, UITabs as Nn, UITabsList as Sn, UITabsItem as An, UITabsContent as Fa, UIDialog as Et, UIButton as G, UITooltip as En, UIIconButton as we, UIBadge as Pe, useInjectConfigContext as qr, UITimeline as Rr, UITimelineItem as Or, useToast as Wt, useOverlay as Ae, UITextareaField as Pa, toFormField as P, UIDropdownMenu as Ba, UIDropdownMenuGroup as ja, UIDropdownMenuItem as Ht, UILoader as Fn, UIFormDialog as ze, UIDialogHeader as ve, UIDialogBody as Qe, UIDialogFooter as Me, UIDialogFooterCancel as ht, UIDialogFooterSubmit as Te, createAutocompleteOptions as Jt, UIAutocomplete as Yt, UIFormLayout as Ee, UIFormFieldGroup as Ve, UIFormFieldGrid as K, UITextField as Q, UIPhoneNumberField as xe, UICheckbox as Hr, UIDateField as Zr, createSelectOptions as mt, UISelect as _t, UINumberField as Gr, UIRadioGroup as Kr, UIRadioGroupItem as Qr, UIAddressAutocomplete as vt, UIForm as It, UILink as za, UIPopover as Wr, UITagsField as nt, UISwitch as ra, useSearch as Ma, defineTableColumns as Ta, UITableBodyRowCell as et, UITableBodyRowCellText as tt, UIDashboardPageActions as Pn, UISearchField as $a, UITable as La, UIEmptyState as Jr, UIColumnLayout as qa, UIClickableElement as Yr, UIAutoFocus as Xr, UIAvatarLabel as el, UIFormFileUpload as tl, UIScrollable as nl, useDialogChin as al, UIDashboardPage as il, UIRowLayout as la, UITooltipContent as ol, UIKeyboardShortcut as sl, BaseFileUploadStatus as Le, UIBaseFileUploadItemReplace as rl, UIBaseFileUploadItemRemove as ll, UIBaseFileUploadItem as cl, UIBaseFileUploadRoot as ul, UIBaseFileUploadTrigger as dl, UIBaseFileUploadDropzone as ml } from "@wisemen/vue-core-design-system";
3
+ import { defineComponent as k, openBlock as c, createBlock as f, unref as a, withCtx as d, renderSlot as H, createElementBlock as v, createElementVNode as b, computed as D, normalizeStyle as Io, ref as $, readonly as Vo, watch as Ne, createVNode as r, Fragment as q, renderList as X, resolveDynamicComponent as J, toDisplayString as N, provide as Un, createCommentVNode as S, useModel as je, mergeModels as Ce, createStaticVNode as St, normalizeClass as ee, createTextVNode as me, onMounted as Ke, createSlots as Uo, onUnmounted as Sa, useId as Wt, withModifiers as Aa, mergeProps as E, inject as No, h as be, toValue as So, useAttrs as Ao, useTemplateRef as Eo, onBeforeUnmount as Fo } from "vue";
4
+ import { c as j, z as Po, a as Bo, b as jo, d as zo, e as Mo, f as To, g as $o, h as Lo, i as qo, j as Ro, k as Oo, l as Ho, m as Zo, n as Go, o as Ko, p as Qo, q as Wo, r as Jo, s as Yo, t as Xo, u as es, v as ts, w as ns, x as as, y as is, A as os, B as ss, C as rs, D as ls, E as cs, F as us, G as ds, H as ms, I as _s, J as ps, K as fs, L as gs, M as bs, N as hs, O as vs, P as ys, Q as ws, R as Cs, S as xs, T as ks, U as Ds, V as Is, W as Vs, X as Us, Y as Ns, Z as Ss, _ as As, $ as Es, a0 as Fs, a1 as Ps, a2 as Bs, a3 as js, a4 as zs, a5 as Ms, a6 as Ts, a7 as $s, a8 as Ls, a9 as qs, aa as Rs, ab as Os, ac as Hs, ad as Zs, ae as Gs, af as Ks, ag as Qs, ah as Ws, ai as Js, aj as Ys, ak as Xs, al as er, am as tr, an as nr, ao as ar, ap as ir, aq as or, ar as sr, as as rr, at as lr, au as cr, av as ur, aw as dr, ax as mr, ay as _r, az as pr, aA as fr, aB as gr, aC as br, aD as hr, aE as vr, aF as yr, aG as wr, aH as Cr, aI as xr, aJ as kr, aK as Dr, aL as Ir, aM as Vr, aN as Ur, aO as Nr, aP as Sr, aQ as Ar, aR as Er, aS as Fr, aT as Pr, aU as Br, aV as jr, aW as zr, aX as Mr, aY as ae, aZ as O, a_ as dt, a$ as Rt, b0 as Ue, b1 as Tr, b2 as kt, b3 as at, b4 as At, b5 as Ea, b6 as $r } from "./uuid.util-90e4mXv8.js";
5
+ import { UIThemeProvider as Lr, UITabs as Nn, UITabsList as Sn, UITabsItem as An, UITabsContent as Fa, UIDialog as Et, UIButton as G, UITooltip as En, UIIconButton as we, UIBadge as Pe, useInjectConfigContext as qr, UITimeline as Rr, UITimelineItem as Or, useToast as Ft, useOverlay as Ae, UITextareaField as Pa, toFormField as P, UIDropdownMenu as Ba, UIDropdownMenuGroup as ja, UIDropdownMenuItem as Zt, UILoader as Fn, UIFormDialog as ze, UIDialogHeader as ve, UIDialogBody as Qe, UIDialogFooter as Me, UIDialogFooterCancel as ht, UIDialogFooterSubmit as Te, createAutocompleteOptions as Jt, UIAutocomplete as Yt, UIFormLayout as Ee, UIFormFieldGroup as Ve, UIFormFieldGrid as K, UITextField as Q, UIPhoneNumberField as xe, UICheckbox as Hr, UIDateField as Zr, createSelectOptions as mt, UISelect as _t, UINumberField as Gr, UIRadioGroup as Kr, UIRadioGroupItem as Qr, UIAddressAutocomplete as vt, UIForm as It, UILink as za, UIPopover as Wr, UITagsField as nt, UISwitch as ra, useSearch as Ma, defineTableColumns as Ta, UITableBodyRowCell as et, UITableBodyRowCellText as tt, UIDashboardPageActions as Pn, UISearchField as $a, UITable as La, UIEmptyState as Jr, UIColumnLayout as qa, UIClickableElement as Yr, UIAutoFocus as Xr, UIAvatarLabel as el, UIFormFileUpload as tl, UIScrollable as nl, useDialogChin as al, UIDashboardPage as il, UIRowLayout as la, UITooltipContent as ol, UIKeyboardShortcut as sl, BaseFileUploadStatus as Le, UIBaseFileUploadItemReplace as rl, UIBaseFileUploadItemRemove as ll, UIBaseFileUploadItem as cl, UIBaseFileUploadRoot as ul, UIBaseFileUploadTrigger as dl, UIBaseFileUploadDropzone as ml } from "@wisemen/vue-core-design-system";
6
6
  import { useRouter as ot, RouterLink as _l, onBeforeRouteLeave as pl, useRoute as fl } from "vue-router";
7
7
  import { Motion as he, AnimatePresence as yt, motion as gl, MotionConfig as bl } from "motion-v";
8
8
  import { useLocalStorage as Ra, useClipboard as Oa, useInfiniteScroll as hl, useDebounceFn as Bn, useElementSize as Ha, useStepper as Za } from "@vueuse/core";
9
9
  import { useI18n as F, createI18n as vl } from "vue-i18n";
10
- import { ApiUtil as U, useQuery as ye, useKeysetInfiniteQuery as Xt, useMutation as te, useOffsetInfiniteQuery as Ft } from "@wisemen/vue-core-api-utils";
10
+ import { ApiUtil as U, useQuery as ye, useKeysetInfiniteQuery as Xt, useMutation as te, useOffsetInfiniteQuery as Pt } from "@wisemen/vue-core-api-utils";
11
11
  import { Temporal as He } from "temporal-polyfill";
12
12
  import { useForm as oe } from "formango";
13
13
  import { useQueryClient as Ga, useMutation as Ka } from "@tanstack/vue-query";
@@ -1898,7 +1898,7 @@ function Qu(n, e) {
1898
1898
  "stroke-linejoin": "round"
1899
1899
  }, null, -1)]]);
1900
1900
  }
1901
- var Pt = /* @__PURE__ */ L(Gu, [["render", Qu]]), Wu = {}, Ju = {
1901
+ var Bt = /* @__PURE__ */ L(Gu, [["render", Qu]]), Wu = {}, Ju = {
1902
1902
  width: "100%",
1903
1903
  height: "100%",
1904
1904
  viewBox: "0 0 24 24",
@@ -3016,11 +3016,11 @@ function Wm({
3016
3016
  re = aa.pop() ?? "";
3017
3017
  for (const ko of aa) {
3018
3018
  const Do = ko.split(`
3019
- `), Lt = [];
3019
+ `), qt = [];
3020
3020
  let ia;
3021
3021
  for (const De of Do)
3022
3022
  if (De.startsWith("data:"))
3023
- Lt.push(De.replace(/^data:\s*/, ""));
3023
+ qt.push(De.replace(/^data:\s*/, ""));
3024
3024
  else if (De.startsWith("event:"))
3025
3025
  ia = De.replace(/^event:\s*/, "");
3026
3026
  else if (De.startsWith("id:"))
@@ -3030,8 +3030,8 @@ function Wm({
3030
3030
  Number.isNaN(sa) || (C = sa);
3031
3031
  }
3032
3032
  let Ye, oa = !1;
3033
- if (Lt.length > 0) {
3034
- const De = Lt.join(`
3033
+ if (qt.length > 0) {
3034
+ const De = qt.join(`
3035
3035
  `);
3036
3036
  try {
3037
3037
  Ye = JSON.parse(De), oa = !0;
@@ -3044,7 +3044,7 @@ function Wm({
3044
3044
  data: Ye,
3045
3045
  event: ia,
3046
3046
  retry: C
3047
- }), Lt.length > 0 && (yield Ye);
3047
+ }), qt.length > 0 && (yield Ye);
3048
3048
  }
3049
3049
  }
3050
3050
  } finally {
@@ -3628,7 +3628,7 @@ function m_(n = {}) {
3628
3628
  trace: m("TRACE")
3629
3629
  };
3630
3630
  }
3631
- const Rt = m_(pi({
3631
+ const Ot = m_(pi({
3632
3632
  throwOnError: !0
3633
3633
  }));
3634
3634
  class Ut {
@@ -3660,7 +3660,7 @@ function __(n, e, i) {
3660
3660
  "Accept-Language": typeof navigator < "u" ? navigator.language : "en-US"
3661
3661
  },
3662
3662
  querySerializer: Ut.serialize
3663
- }), Rt.setConfig({
3663
+ }), Ot.setConfig({
3664
3664
  baseUrl: i,
3665
3665
  headers: {
3666
3666
  "Accept-Language": typeof navigator < "u" ? navigator.language : "en-US"
@@ -3673,7 +3673,7 @@ function __(n, e, i) {
3673
3673
  const l = await n();
3674
3674
  return s.headers.set("Authorization", `Bearer ${l}`), s;
3675
3675
  }
3676
- j.interceptors.request.use(o), Rt.interceptors.request.use(o), j.interceptors.response.use((s) => (s?.status !== 401 || console.error(s), s)), Rt.interceptors.response.use((s) => (s?.status !== 401 || console.error(s), s));
3676
+ j.interceptors.request.use(o), Ot.interceptors.request.use(o), j.interceptors.response.use((s) => (s?.status !== 401 || console.error(s), s)), Ot.interceptors.response.use((s) => (s?.status !== 401 || console.error(s), s));
3677
3677
  }
3678
3678
  const p_ = "https://kbo-service.test.appwi.se", f_ = "https://kbo-service.production.appwi.se";
3679
3679
  function g_(n) {
@@ -4212,7 +4212,7 @@ class j_ {
4212
4212
  };
4213
4213
  }
4214
4214
  }
4215
- class Bt {
4215
+ class jt {
4216
4216
  static isEmpty(e) {
4217
4217
  return e.trim().length === 0;
4218
4218
  }
@@ -4226,7 +4226,7 @@ class Bt {
4226
4226
  class Ci {
4227
4227
  static toDto(e) {
4228
4228
  return {
4229
- email: Bt.trimOrNull(e.email),
4229
+ email: jt.trimOrNull(e.email),
4230
4230
  firstName: e.firstName,
4231
4231
  lastName: e.lastName,
4232
4232
  mobilePhone: e.mobilePhone,
@@ -4362,7 +4362,7 @@ class _e {
4362
4362
  const l = await U.fromPromise(wm({
4363
4363
  body: {
4364
4364
  contactPersonUuid: i,
4365
- email: Bt.trimOrNull(s.email),
4365
+ email: jt.trimOrNull(s.email),
4366
4366
  mobilePhone: s.mobilePhone,
4367
4367
  phone: s.phone,
4368
4368
  position: o
@@ -4444,7 +4444,7 @@ function $_(n, e) {
4444
4444
  H(n.$slots, "default")
4445
4445
  ]);
4446
4446
  }
4447
- const xi = /* @__PURE__ */ ge(M_, [["render", $_]]), L_ = { class: "duration-500 starting:opacity-0 starting:blur-md" }, q_ = { class: "block text-center text-xl font-bold text-secondary" }, R_ = { class: "mx-auto mt-md max-w-sm text-center text-sm text-secondary" }, jt = /* @__PURE__ */ k({
4447
+ const xi = /* @__PURE__ */ ge(M_, [["render", $_]]), L_ = { class: "duration-500 starting:opacity-0 starting:blur-md" }, q_ = { class: "block text-center text-xl font-bold text-secondary" }, R_ = { class: "mx-auto mt-md max-w-sm text-center text-sm text-secondary" }, zt = /* @__PURE__ */ k({
4448
4448
  __name: "Error",
4449
4449
  props: {
4450
4450
  title: {},
@@ -4490,7 +4490,7 @@ const G_ = { class: "flex items-center gap-sm p-sm px-md text-brand-500" }, K_ =
4490
4490
  case "address":
4491
4491
  return tn;
4492
4492
  case "email":
4493
- return Pt;
4493
+ return Bt;
4494
4494
  case "phone":
4495
4495
  return pt;
4496
4496
  default:
@@ -5261,7 +5261,7 @@ class Up {
5261
5261
  }
5262
5262
  }
5263
5263
  function ne() {
5264
- const n = F(), e = Wt();
5264
+ const n = F(), e = Ft();
5265
5265
  function i(o) {
5266
5266
  if (Up.error(o), Ni.isError(o)) {
5267
5267
  const s = Vp.getI18nKeyForError(o);
@@ -5356,7 +5356,7 @@ function zp(n, e) {
5356
5356
  H(n.$slots, "default")
5357
5357
  ]);
5358
5358
  }
5359
- const zt = /* @__PURE__ */ ge(Bp, [["render", zp]]), Mp = {}, Tp = { class: "p-xl" };
5359
+ const Mt = /* @__PURE__ */ ge(Bp, [["render", zp]]), Mp = {}, Tp = { class: "p-xl" };
5360
5360
  function $p(n, e) {
5361
5361
  return c(), v("div", Tp, [
5362
5362
  H(n.$slots, "default")
@@ -5394,7 +5394,7 @@ const Nt = /* @__PURE__ */ ge(Mp, [["render", $p]]), Lp = { class: "text-center
5394
5394
  }),
5395
5395
  r(Nt, null, {
5396
5396
  default: d(() => [
5397
- r(zt, null, {
5397
+ r(Mt, null, {
5398
5398
  default: d(() => [
5399
5399
  r(Ap, {
5400
5400
  "is-disabled": i.isLoading,
@@ -5471,7 +5471,7 @@ const Zp = ["id"], rt = /* @__PURE__ */ k({
5471
5471
  form: {}
5472
5472
  },
5473
5473
  setup(n) {
5474
- const e = n, i = Qt(), o = Np();
5474
+ const e = n, i = Wt(), o = Np();
5475
5475
  return e.canExitWhenDirty || Hp(D(() => e.form.isDirty.value && !e.form.isSubmitting.value)), Ne(
5476
5476
  () => e.form.isSubmitting,
5477
5477
  (s) => {
@@ -5601,7 +5601,7 @@ const Zp = ["id"], rt = /* @__PURE__ */ k({
5601
5601
  content: d(() => [
5602
5602
  r(a(ja), null, {
5603
5603
  default: d(() => [
5604
- r(a(Ht), {
5604
+ r(a(Zt), {
5605
5605
  label: a(s).t("wise_crm.info_dialog.notes.update_note"),
5606
5606
  config: {
5607
5607
  left: {
@@ -5611,7 +5611,7 @@ const Zp = ["id"], rt = /* @__PURE__ */ k({
5611
5611
  },
5612
5612
  onSelect: (y) => p(h)
5613
5613
  }, null, 8, ["label", "config", "onSelect"]),
5614
- r(a(Ht), {
5614
+ r(a(Zt), {
5615
5615
  "is-destructive": !0,
5616
5616
  label: a(s).t("wise_crm.shared.delete"),
5617
5617
  config: {
@@ -5708,7 +5708,7 @@ const Fi = /* @__PURE__ */ k({
5708
5708
  },
5709
5709
  emits: ["close"],
5710
5710
  setup(n, { emit: e }) {
5711
- const i = n, o = e, s = F(), l = Wt(), u = i1(), m = oe({
5711
+ const i = n, o = e, s = F(), l = Ft(), u = i1(), m = oe({
5712
5712
  initialState: {
5713
5713
  note: i.note.content ?? null
5714
5714
  },
@@ -5917,7 +5917,7 @@ function l1() {
5917
5917
  });
5918
5918
  }
5919
5919
  function qn(n, e) {
5920
- return Ft("businessIndex", {
5920
+ return Pt("businessIndex", {
5921
5921
  isEnabled: D(() => e?.value ?? !0),
5922
5922
  params: {
5923
5923
  queryParams: n?.params
@@ -6226,7 +6226,7 @@ t.object({
6226
6226
  ]),
6227
6227
  slug: t.string()
6228
6228
  });
6229
- const Mt = t.object({
6229
+ const Tt = t.object({
6230
6230
  limit: t.number().gte(1).lte(100),
6231
6231
  offset: t.number().gte(0)
6232
6232
  }), A1 = t.object({
@@ -6239,14 +6239,14 @@ const Mt = t.object({
6239
6239
  t.null()
6240
6240
  ]),
6241
6241
  slug: t.string()
6242
- }), Tt = t.object({
6242
+ }), $t = t.object({
6243
6243
  limit: t.number(),
6244
6244
  offset: t.number(),
6245
6245
  total: t.number()
6246
6246
  });
6247
6247
  t.object({
6248
6248
  items: t.array(A1),
6249
- meta: Tt
6249
+ meta: $t
6250
6250
  });
6251
6251
  t.object({
6252
6252
  commit: t.string(),
@@ -6349,7 +6349,7 @@ const F1 = t.object({
6349
6349
  });
6350
6350
  t.object({
6351
6351
  items: t.array(P1),
6352
- meta: Tt
6352
+ meta: $t
6353
6353
  });
6354
6354
  const B1 = t.object({
6355
6355
  name: t.string()
@@ -6758,7 +6758,7 @@ const Z1 = t.object({
6758
6758
  }), G1 = t.object({
6759
6759
  latitude: t.number(),
6760
6760
  longitude: t.number()
6761
- }), $t = t.object({
6761
+ }), Lt = t.object({
6762
6762
  placeId: t.union([
6763
6763
  t.string(),
6764
6764
  t.null()
@@ -6830,7 +6830,7 @@ t.object({
6830
6830
  updatedAt: t.iso.datetime(),
6831
6831
  isActive: t.boolean(),
6832
6832
  address: t.union([
6833
- $t,
6833
+ Lt,
6834
6834
  t.null()
6835
6835
  ]),
6836
6836
  avatar: t.union([
@@ -6881,7 +6881,7 @@ const J1 = t.enum([
6881
6881
  isActive: t.boolean(),
6882
6882
  name: t.string(),
6883
6883
  address: t.union([
6884
- $t,
6884
+ Lt,
6885
6885
  t.null()
6886
6886
  ]),
6887
6887
  email: t.union([
@@ -6895,7 +6895,7 @@ const J1 = t.enum([
6895
6895
  });
6896
6896
  t.object({
6897
6897
  items: t.array(ef),
6898
- meta: Tt
6898
+ meta: $t
6899
6899
  });
6900
6900
  const Mi = t.enum([
6901
6901
  "light",
@@ -7038,7 +7038,7 @@ const Ri = t.enum([
7038
7038
  isActive: t.boolean(),
7039
7039
  name: t.string(),
7040
7040
  address: t.union([
7041
- $t,
7041
+ Lt,
7042
7042
  t.null()
7043
7043
  ]),
7044
7044
  email: t.union([
@@ -7305,7 +7305,7 @@ const Mf = t.enum([
7305
7305
  t.null()
7306
7306
  ]),
7307
7307
  address: t.union([
7308
- $t,
7308
+ Lt,
7309
7309
  t.null()
7310
7310
  ]),
7311
7311
  email: t.union([
@@ -7328,7 +7328,7 @@ const Mf = t.enum([
7328
7328
  ])
7329
7329
  }), $f = t.object({
7330
7330
  items: t.array(Tf),
7331
- meta: Tt
7331
+ meta: $t
7332
7332
  }), Lf = t.object({
7333
7333
  enterpriseNumber: t.optional(t.string())
7334
7334
  }), qf = t.object({
@@ -7337,7 +7337,7 @@ const Mf = t.enum([
7337
7337
  t.null()
7338
7338
  ]),
7339
7339
  address: t.union([
7340
- $t,
7340
+ Lt,
7341
7341
  t.null()
7342
7342
  ]),
7343
7343
  commercialName: t.union([
@@ -7350,7 +7350,7 @@ const Mf = t.enum([
7350
7350
  t.object({
7351
7351
  items: t.array(t.array(t.unknown())),
7352
7352
  results: t.array(qf),
7353
- meta: Tt
7353
+ meta: $t
7354
7354
  });
7355
7355
  t.object({
7356
7356
  code: t.enum([
@@ -7369,7 +7369,7 @@ t.object({
7369
7369
  t.object({
7370
7370
  body: t.optional(t.never()),
7371
7371
  query: t.optional(t.object({
7372
- pagination: t.optional(Mt),
7372
+ pagination: t.optional(Tt),
7373
7373
  search: t.optional(t.string())
7374
7374
  })),
7375
7375
  path: t.optional(t.never())
@@ -7446,7 +7446,7 @@ t.object({
7446
7446
  t.object({
7447
7447
  body: t.optional(t.never()),
7448
7448
  query: t.optional(t.object({
7449
- pagination: t.optional(Mt),
7449
+ pagination: t.optional(Tt),
7450
7450
  search: t.optional(t.string())
7451
7451
  })),
7452
7452
  path: t.optional(t.never())
@@ -7537,7 +7537,7 @@ t.object({
7537
7537
  body: t.optional(t.never()),
7538
7538
  query: t.optional(t.object({
7539
7539
  filter: t.optional(X1),
7540
- pagination: t.optional(Mt),
7540
+ pagination: t.optional(Tt),
7541
7541
  search: t.optional(t.string()),
7542
7542
  sort: t.optional(t.array(Y1))
7543
7543
  })),
@@ -7709,7 +7709,7 @@ t.object({
7709
7709
  const Rf = t.object({
7710
7710
  body: t.optional(t.never()),
7711
7711
  query: t.object({
7712
- pagination: t.optional(Mt),
7712
+ pagination: t.optional(Tt),
7713
7713
  search: t.string()
7714
7714
  }),
7715
7715
  path: t.optional(t.never())
@@ -7718,13 +7718,13 @@ t.object({
7718
7718
  body: t.optional(t.never()),
7719
7719
  query: t.object({
7720
7720
  filter: t.optional(Lf),
7721
- pagination: t.optional(Mt),
7721
+ pagination: t.optional(Tt),
7722
7722
  search: t.string()
7723
7723
  }),
7724
7724
  path: t.optional(t.never())
7725
7725
  });
7726
7726
  function Hf(n) {
7727
- return (n.client ?? Rt).get({
7727
+ return (n.client ?? Ot).get({
7728
7728
  requestValidator: async (e) => await Rf.parseAsync(e),
7729
7729
  responseValidator: async (e) => await Of.parseAsync(e),
7730
7730
  url: "/api/v1/cbe/enterprises",
@@ -7858,7 +7858,7 @@ const Qf = { class: "w-full" }, Wf = /* @__PURE__ */ k({
7858
7858
  label: a(s).t("wise_crm.contact.create_dialog.form.fields.cbe_search"),
7859
7859
  onCreateNew: u
7860
7860
  }, null, 8, ["modelValue", "is-external-loading", "label"]),
7861
- r(zt, null, {
7861
+ r(Mt, null, {
7862
7862
  default: d(() => [
7863
7863
  r(a(G), {
7864
7864
  label: a(s).t("wise_crm.shared.back"),
@@ -7898,7 +7898,7 @@ function tg(n) {
7898
7898
  const ng = ["aria-describedby"], ag = /* @__PURE__ */ k({
7899
7899
  __name: "BaseFieldset",
7900
7900
  setup(n) {
7901
- const e = Qt();
7901
+ const e = Wt();
7902
7902
  return tg({
7903
7903
  id: e
7904
7904
  }), (i, o) => (c(), v("fieldset", { "aria-describedby": a(e) }, [
@@ -8030,7 +8030,7 @@ const ng = ["aria-describedby"], ag = /* @__PURE__ */ k({
8030
8030
  ]),
8031
8031
  _: 1
8032
8032
  }),
8033
- r(zt, null, {
8033
+ r(Mt, null, {
8034
8034
  default: d(() => [
8035
8035
  r(a(G), {
8036
8036
  label: a(s).t("wise_crm.shared.back"),
@@ -8289,7 +8289,7 @@ class se {
8289
8289
  const l = await U.fromPromise(gm({
8290
8290
  body: {
8291
8291
  contactPersonUuid: i,
8292
- email: Bt.trimOrNull(s.email),
8292
+ email: jt.trimOrNull(s.email),
8293
8293
  mobilePhone: s.mobilePhone,
8294
8294
  phone: s.phone,
8295
8295
  position: o
@@ -8353,7 +8353,7 @@ class se {
8353
8353
  }
8354
8354
  }
8355
8355
  function Ji(n) {
8356
- return Ft("individualIndex", {
8356
+ return Pt("individualIndex", {
8357
8357
  params: {
8358
8358
  queryParams: n?.params
8359
8359
  },
@@ -8468,7 +8468,7 @@ const gg = { class: "w-full" }, Yi = /* @__PURE__ */ k({
8468
8468
  label: a(s).t("wise_crm.contact.create_dialog.form.contact_person"),
8469
8469
  onCreateNew: h
8470
8470
  }, null, 8, ["modelValue", "label"]),
8471
- r(zt, null, {
8471
+ r(Mt, null, {
8472
8472
  default: d(() => [
8473
8473
  r(a(G), {
8474
8474
  label: a(s).t("wise_crm.shared.back"),
@@ -8804,7 +8804,7 @@ const gg = { class: "w-full" }, Yi = /* @__PURE__ */ k({
8804
8804
  ]),
8805
8805
  _: 1
8806
8806
  }),
8807
- r(zt, null, {
8807
+ r(Mt, null, {
8808
8808
  default: d(() => [
8809
8809
  r(a(G), {
8810
8810
  label: a(s).t("wise_crm.shared.back"),
@@ -9026,7 +9026,7 @@ const pe = x.object({
9026
9026
  postalCode: x.string().min(1),
9027
9027
  street: x.string().min(1),
9028
9028
  streetNumber: x.string()
9029
- }), ie = T.string().refine((n) => {
9029
+ }), ie = T.literal("").or(T.string().refine((n) => {
9030
9030
  try {
9031
9031
  const e = Bl(n);
9032
9032
  return e.isPossible() && e.isValid();
@@ -9035,8 +9035,8 @@ const pe = x.object({
9035
9035
  }
9036
9036
  }, {
9037
9037
  message: Be.global.t("wise_crm.form.errors.invalid_phone_number")
9038
- }), mn = T.object({
9039
- countryCode: T.enum(qt, {
9038
+ })), mn = T.object({
9039
+ countryCode: T.enum(Rt, {
9040
9040
  error: Be.global.t("validation.vat_number.invalid_country_code")
9041
9041
  }),
9042
9042
  number: T.string().min(1).regex(/^\d+$/, Be.global.t("validation.vat_number.numbers_only"))
@@ -9141,7 +9141,7 @@ function Tg(n) {
9141
9141
  var Ge = /* @__PURE__ */ ((n) => (n.BUSINESS = "business", n.INDIVIDUAL = "individual", n))(Ge || {});
9142
9142
  const $g = /\./g;
9143
9143
  function Qn(n) {
9144
- const e = ne(), i = ke(), o = fe(), s = Ig(), l = Wt(), u = F(), {
9144
+ const e = ne(), i = ke(), o = fe(), s = Ig(), l = Ft(), u = F(), {
9145
9145
  geocodeAddress: m
9146
9146
  } = Mg(), p = D(() => i.getCustomFieldDefinitionForEntity(Ge.BUSINESS).filter((V) => V.isDisplayedOnCreate)), g = oe({
9147
9147
  initialState: {
@@ -9197,7 +9197,7 @@ function Qn(n) {
9197
9197
  return !1;
9198
9198
  const A = V.uuid.replace($g, "");
9199
9199
  C.value = !0;
9200
- const z = await _e.checkVatNumberExistence(A, qt.BE);
9200
+ const z = await _e.checkVatNumberExistence(A, Rt.BE);
9201
9201
  if (C.value = !1, z.isErr())
9202
9202
  return e.show(z.error), !1;
9203
9203
  if (z.value !== null)
@@ -9221,12 +9221,12 @@ function Qn(n) {
9221
9221
  lat: null,
9222
9222
  lng: null
9223
9223
  },
9224
- country: qt.BE
9224
+ country: Rt.BE
9225
9225
  });
9226
9226
  } else
9227
9227
  h.setValue(null);
9228
9228
  return w.setValue({
9229
- countryCode: qt.BE,
9229
+ countryCode: Rt.BE,
9230
9230
  number: A
9231
9231
  }), y.setValue(A), await M(), !0;
9232
9232
  }
@@ -9566,7 +9566,7 @@ const Rg = /* @__PURE__ */ k({
9566
9566
  _: 1
9567
9567
  }));
9568
9568
  }
9569
- }), Zt = /* @__PURE__ */ k({
9569
+ }), Gt = /* @__PURE__ */ k({
9570
9570
  __name: "ContactPersonCreateForm",
9571
9571
  props: {
9572
9572
  isNewMode: { type: Boolean },
@@ -9723,7 +9723,7 @@ const Rg = /* @__PURE__ */ k({
9723
9723
  "prompt-on-unsaved-changes": !1
9724
9724
  }, {
9725
9725
  default: d(() => [
9726
- r(Zt, {
9726
+ r(Gt, {
9727
9727
  "is-new-mode": p.value,
9728
9728
  "onUpdate:isNewMode": B[0] || (B[0] = (M) => p.value = M),
9729
9729
  "create-form": a(g),
@@ -9737,7 +9737,7 @@ const Rg = /* @__PURE__ */ k({
9737
9737
  "prompt-on-unsaved-changes": !1
9738
9738
  }, {
9739
9739
  default: d(() => [
9740
- r(Zt, {
9740
+ r(Gt, {
9741
9741
  "is-new-mode": p.value,
9742
9742
  "onUpdate:isNewMode": B[1] || (B[1] = (M) => p.value = M),
9743
9743
  "create-form": a(g),
@@ -10051,12 +10051,12 @@ const ct = /* @__PURE__ */ ge(Qg, [["render", Jg]]), Yg = { class: "font-semibol
10051
10051
  content: d(() => [
10052
10052
  r(a(ja), null, {
10053
10053
  default: d(() => [
10054
- r(a(Ht), {
10054
+ r(a(Zt), {
10055
10055
  config: l,
10056
10056
  label: a(s).t("wise_crm.info_dialog.sidebar.overview.update_contact_person"),
10057
10057
  onSelect: m
10058
10058
  }, null, 8, ["label"]),
10059
- r(a(Ht), {
10059
+ r(a(Zt), {
10060
10060
  "is-destructive": !0,
10061
10061
  "is-disabled": i.contactPerson.isPrimary,
10062
10062
  config: u,
@@ -10075,7 +10075,7 @@ const ct = /* @__PURE__ */ ge(Qg, [["render", Jg]]), Yg = { class: "font-semibol
10075
10075
  i.contactPerson.email !== null ? (c(), f(ce, {
10076
10076
  key: 0,
10077
10077
  label: i.contactPerson.email,
10078
- icon: a(Pt)
10078
+ icon: a(Bt)
10079
10079
  }, null, 8, ["label", "icon"])) : S("", !0),
10080
10080
  i.contactPerson.mobilePhone !== null ? (c(), f(ce, {
10081
10081
  key: 1,
@@ -10370,7 +10370,7 @@ const Cb = { class: "flex items-start gap-md" }, xb = { class: "flex-1" }, kb =
10370
10370
  }, null, 8, ["label", "icon"]),
10371
10371
  r(ce, {
10372
10372
  label: y.email ?? "-",
10373
- icon: a(Pt)
10373
+ icon: a(Bt)
10374
10374
  }, null, 8, ["label", "icon"]),
10375
10375
  r(ce, {
10376
10376
  label: y.mobilePhone ?? y.phone ?? "-",
@@ -10648,7 +10648,7 @@ const Cb = { class: "flex items-start gap-md" }, xb = { class: "flex-1" }, kb =
10648
10648
  ), s = D(() => o.result.value.isOk() ? o.result.value.getValue() : null);
10649
10649
  return (l, u) => (c(), f(xi, null, {
10650
10650
  default: d(() => [
10651
- a(o).isError.value ? (c(), f(jt, {
10651
+ a(o).isError.value ? (c(), f(zt, {
10652
10652
  key: 0,
10653
10653
  message: a(i).t("error.business_details.description"),
10654
10654
  title: a(i).t("error.business_details.title")
@@ -11353,7 +11353,7 @@ const Yb = /* @__PURE__ */ k({
11353
11353
  ] = e.error.errors ?? [];
11354
11354
  return l ?? null;
11355
11355
  });
11356
- return (l, u) => (c(), f(jt, {
11356
+ return (l, u) => (c(), f(zt, {
11357
11357
  title: s.value?.status ?? a(i).t("component.api_error.default_title"),
11358
11358
  message: s.value?.detail ?? a(i).t("component.api_error.default_message"),
11359
11359
  action: {
@@ -11378,7 +11378,7 @@ const a0 = /* @__PURE__ */ ge(e0, [["render", n0]]), i0 = /* @__PURE__ */ k({
11378
11378
  function s() {
11379
11379
  i.copy(JSON.stringify(e.error.format(), null, 2));
11380
11380
  }
11381
- return (l, u) => (c(), f(jt, {
11381
+ return (l, u) => (c(), f(zt, {
11382
11382
  action: {
11383
11383
  label: a(i).copied.value ? a(o).t("component.zod_error.copied") : a(o).t("component.zod_error.copy_details"),
11384
11384
  onClick: s
@@ -11417,7 +11417,7 @@ const _o = /* @__PURE__ */ k({
11417
11417
  }, null, 8, ["error"])) : a(Va).isZodError(e.error) ? (c(), f(i0, {
11418
11418
  key: 1,
11419
11419
  error: e.error
11420
- }, null, 8, ["error"])) : (c(), f(jt, {
11420
+ }, null, 8, ["error"])) : (c(), f(zt, {
11421
11421
  key: 2,
11422
11422
  title: "Error",
11423
11423
  message: "An unexpected error occurred."
@@ -12192,7 +12192,7 @@ class T0 {
12192
12192
  }
12193
12193
  }
12194
12194
  function $0() {
12195
- return Ft("wiseCrmRecentEntities", {
12195
+ return Pt("wiseCrmRecentEntities", {
12196
12196
  queryFn: (n) => T0.getAll({
12197
12197
  pagination: n
12198
12198
  })
@@ -12908,7 +12908,7 @@ class A2 {
12908
12908
  class E2 {
12909
12909
  static toDto(e) {
12910
12910
  return {
12911
- email: Bt.trimOrNull(e.email),
12911
+ email: jt.trimOrNull(e.email),
12912
12912
  firstName: e.firstName,
12913
12913
  lastName: e.lastName,
12914
12914
  mobilePhone: e.mobilePhone,
@@ -12930,7 +12930,7 @@ class F2 {
12930
12930
  };
12931
12931
  }
12932
12932
  }
12933
- class Gt {
12933
+ class Kt {
12934
12934
  static toFullName(e) {
12935
12935
  return `${e.firstName} ${e.lastName}`;
12936
12936
  }
@@ -12959,7 +12959,7 @@ class P2 {
12959
12959
  })),
12960
12960
  createdBy: {
12961
12961
  uuid: e.createdBy.uuid,
12962
- name: Gt.toFullName({
12962
+ name: Kt.toFullName({
12963
12963
  firstName: e.createdBy.firstName ?? "",
12964
12964
  lastName: e.createdBy.lastName ?? ""
12965
12965
  })
@@ -12968,7 +12968,7 @@ class P2 {
12968
12968
  dealSource: e.dealSource,
12969
12969
  owner: e.owner ? {
12970
12970
  uuid: e.owner.uuid,
12971
- name: Gt.toFullName({
12971
+ name: Kt.toFullName({
12972
12972
  firstName: e.owner.firstName ?? "",
12973
12973
  lastName: e.owner.lastName ?? ""
12974
12974
  })
@@ -12986,7 +12986,7 @@ class Ua {
12986
12986
  client: e.client,
12987
12987
  createdBy: {
12988
12988
  uuid: e.createdBy.uuid,
12989
- name: Gt.toFullName({
12989
+ name: Kt.toFullName({
12990
12990
  firstName: e.createdBy.firstName ?? "",
12991
12991
  lastName: e.createdBy.lastName ?? ""
12992
12992
  })
@@ -12995,7 +12995,7 @@ class Ua {
12995
12995
  dealSource: e.dealSource,
12996
12996
  owner: e.owner ? {
12997
12997
  uuid: e.owner.uuid,
12998
- name: Gt.toFullName({
12998
+ name: Kt.toFullName({
12999
12999
  firstName: e.owner.firstName ?? "",
13000
13000
  lastName: e.owner.lastName ?? ""
13001
13001
  })
@@ -13074,7 +13074,7 @@ class ea {
13074
13074
  const s = await U.fromPromise(Pm({
13075
13075
  body: {
13076
13076
  contactPersonUuid: i,
13077
- email: Bt.trimOrNull(o.email),
13077
+ email: jt.trimOrNull(o.email),
13078
13078
  mobilePhone: o.mobilePhone,
13079
13079
  phone: o.phone
13080
13080
  },
@@ -13136,7 +13136,7 @@ class ea {
13136
13136
  }
13137
13137
  }
13138
13138
  function z2(n) {
13139
- return Ft("dealIndex", {
13139
+ return Pt("dealIndex", {
13140
13140
  params: {
13141
13141
  queryParams: n.params
13142
13142
  },
@@ -13866,7 +13866,7 @@ function uh(n) {
13866
13866
  });
13867
13867
  }
13868
13868
  function dh(n) {
13869
- return Ft("mailTemplateIndex", {
13869
+ return Pt("mailTemplateIndex", {
13870
13870
  params: {
13871
13871
  queryParams: n?.params
13872
13872
  },
@@ -13994,7 +13994,7 @@ const yh = /* @__PURE__ */ ge(bh, [["render", vh]]), wh = { class: "h-full" }, C
13994
13994
  }),
13995
13995
  emits: /* @__PURE__ */ Ce(["blur"], ["update:modelValue"]),
13996
13996
  setup(n, { emit: e }) {
13997
- const i = n, o = e, s = je(n, "modelValue"), l = Qt(), u = Ol({
13997
+ const i = n, o = e, s = je(n, "modelValue"), l = Wt(), u = Ol({
13998
13998
  content: s.value,
13999
13999
  editorProps: {
14000
14000
  attributes: {
@@ -14292,67 +14292,70 @@ const yh = /* @__PURE__ */ ge(bh, [["render", vh]]), wh = { class: "h-full" }, C
14292
14292
  __name: "DealSettingsDialog",
14293
14293
  emits: ["close"],
14294
14294
  setup(n, { emit: e }) {
14295
- const i = e, o = F(), s = al(), l = ne(), u = lh(), m = $(null), p = ch(
14296
- D(() => m.value?.uuid)
14297
- ), g = D(() => p.result.value.isOk() ? p.result.value.getValue() : null), _ = oe({
14298
- initialState: D(() => g.value === null ? null : {
14299
- defaultBCC: g.value.defaultBCC,
14300
- defaultCC: g.value.defaultCC,
14301
- locales: g.value.locales.map((w) => ({
14302
- attachments: w.attachments.map(gn.toForm),
14303
- language: w.language,
14304
- message: w.message,
14295
+ const i = e, o = F(), s = al(), l = ne(), u = Ft(), m = lh(), p = $(null), g = ch(
14296
+ D(() => p.value?.uuid)
14297
+ ), _ = D(() => g.result.value.isOk() ? g.result.value.getValue() : null), h = oe({
14298
+ initialState: D(() => _.value === null ? null : {
14299
+ defaultBCC: _.value.defaultBCC,
14300
+ defaultCC: _.value.defaultCC,
14301
+ locales: _.value.locales.map((I) => ({
14302
+ attachments: I.attachments.map(gn.toForm),
14303
+ language: I.language,
14304
+ message: I.message,
14305
14305
  replyTo: null,
14306
- subject: w.subject
14306
+ subject: I.subject
14307
14307
  }))
14308
14308
  }),
14309
14309
  schema: Eh,
14310
- onSubmit: async (w) => {
14311
- if (m.value !== null)
14310
+ onSubmit: async (I) => {
14311
+ if (p.value !== null)
14312
14312
  try {
14313
- await u.execute({
14314
- body: w,
14313
+ await m.execute({
14314
+ body: I,
14315
14315
  params: {
14316
- mailTemplateUuid: m.value.uuid
14316
+ mailTemplateUuid: p.value.uuid
14317
14317
  }
14318
- }), h();
14319
- } catch (I) {
14320
- l.show(I);
14318
+ }), y();
14319
+ } catch (C) {
14320
+ l.show(C);
14321
14321
  }
14322
+ },
14323
+ onSubmitError: () => {
14324
+ u.unableToSave();
14322
14325
  }
14323
14326
  });
14324
- function h() {
14327
+ function y() {
14325
14328
  i("close");
14326
14329
  }
14327
- function y() {
14328
- m.value = null;
14330
+ function w() {
14331
+ p.value = null;
14329
14332
  }
14330
- return (w, I) => (c(), f(a(ze), {
14331
- form: a(_),
14333
+ return (I, C) => (c(), f(a(ze), {
14334
+ form: a(h),
14332
14335
  chin: a(s).chin.value,
14333
14336
  size: "lg",
14334
- onClose: h
14337
+ onClose: y
14335
14338
  }, {
14336
14339
  default: d(() => [
14337
- m.value === null ? (c(), v(q, { key: 0 }, [
14340
+ p.value === null ? (c(), v(q, { key: 0 }, [
14338
14341
  r(a(ve), {
14339
14342
  icon: a(kn),
14340
14343
  title: a(o).t("wise_crm.deal.settings.mail_template.title"),
14341
14344
  description: a(o).t("wise_crm.deal.settings.title")
14342
14345
  }, null, 8, ["icon", "title", "description"]),
14343
14346
  r(mh, {
14344
- onSelect: I[0] || (I[0] = (C) => m.value = C)
14347
+ onSelect: C[0] || (C[0] = (B) => p.value = B)
14345
14348
  })
14346
14349
  ], 64)) : (c(), v(q, { key: 1 }, [
14347
14350
  r(a(ve), {
14348
14351
  icon: a(kn),
14349
- title: m.value.name,
14352
+ title: p.value.name,
14350
14353
  description: a(o).t("wise_crm.deal.settings.title")
14351
14354
  }, null, 8, ["icon", "title", "description"]),
14352
- g.value !== null ? (c(), f(Sh, {
14355
+ _.value !== null ? (c(), f(Sh, {
14353
14356
  key: 0,
14354
- form: a(_),
14355
- "mail-template": g.value,
14357
+ form: a(h),
14358
+ "mail-template": _.value,
14356
14359
  chin: a(s)
14357
14360
  }, null, 8, ["form", "mail-template", "chin"])) : S("", !0),
14358
14361
  r(a(Me), null, {
@@ -14360,16 +14363,16 @@ const yh = /* @__PURE__ */ ge(bh, [["render", vh]]), wh = { class: "h-full" }, C
14360
14363
  r(a(G), {
14361
14364
  label: a(o).t("wise_crm.shared.back"),
14362
14365
  variant: "secondary",
14363
- onClick: y
14366
+ onClick: w
14364
14367
  }, null, 8, ["label"])
14365
14368
  ]),
14366
14369
  right: d(() => [
14367
14370
  r(a(ht), {
14368
14371
  label: a(o).t("wise_crm.form.cancel"),
14369
- onClick: h
14372
+ onClick: y
14370
14373
  }, null, 8, ["label"]),
14371
14374
  r(a(Te), {
14372
- "is-loading": a(_).isSubmitting.value,
14375
+ "is-loading": a(h).isSubmitting.value,
14373
14376
  label: a(o).t("wise_crm.form.save")
14374
14377
  }, null, 8, ["is-loading", "label"])
14375
14378
  ]),
@@ -14700,7 +14703,7 @@ function Rh() {
14700
14703
  x.object({
14701
14704
  address: pe.nullable(),
14702
14705
  customFields: x.object(lt.getZodType([])).nullable(),
14703
- email: x.email().min(1).nullable(),
14706
+ email: x.literal("").or(x.email()).nullable(),
14704
14707
  firstName: x.string().min(1),
14705
14708
  language: fn,
14706
14709
  lastName: x.string().min(1),
@@ -14711,7 +14714,7 @@ function Oh(n) {
14711
14714
  return x.object({
14712
14715
  address: pe.nullable(),
14713
14716
  customFields: x.object(lt.getZodType(n)).nullable(),
14714
- email: x.email().min(1).nullable(),
14717
+ email: x.literal("").or(x.email()).nullable(),
14715
14718
  firstName: x.string().min(1),
14716
14719
  language: fn,
14717
14720
  lastName: x.string().min(1),
@@ -15104,7 +15107,7 @@ const nv = { class: "flex flex-col gap-md" }, av = { class: "flex flex-col gap-s
15104
15107
  b("div", av, [
15105
15108
  r(ce, {
15106
15109
  label: e.individual.email ?? "-",
15107
- icon: a(Pt)
15110
+ icon: a(Bt)
15108
15111
  }, null, 8, ["label", "icon"]),
15109
15112
  r(ce, {
15110
15113
  label: e.individual.mobilePhone ?? "-",
@@ -15256,7 +15259,7 @@ const rv = /* @__PURE__ */ k({
15256
15259
  "prompt-on-unsaved-changes": !1
15257
15260
  }, {
15258
15261
  default: d(() => [
15259
- r(Zt, {
15262
+ r(Gt, {
15260
15263
  "is-new-mode": p.value,
15261
15264
  "onUpdate:isNewMode": B[0] || (B[0] = (M) => p.value = M),
15262
15265
  "create-form": a(g),
@@ -15270,7 +15273,7 @@ const rv = /* @__PURE__ */ k({
15270
15273
  "prompt-on-unsaved-changes": !1
15271
15274
  }, {
15272
15275
  default: d(() => [
15273
- r(Zt, {
15276
+ r(Gt, {
15274
15277
  "is-new-mode": p.value,
15275
15278
  "onUpdate:isNewMode": B[1] || (B[1] = (M) => p.value = M),
15276
15279
  "create-form": a(g),
@@ -15555,7 +15558,7 @@ const uv = /* @__PURE__ */ k({
15555
15558
  ]),
15556
15559
  r(ce, {
15557
15560
  label: V.email ?? "-",
15558
- icon: a(Pt)
15561
+ icon: a(Bt)
15559
15562
  }, null, 8, ["label", "icon"]),
15560
15563
  r(ce, {
15561
15564
  label: V.mobilePhone ?? V.phone ?? "-",
@@ -15578,7 +15581,7 @@ const uv = /* @__PURE__ */ k({
15578
15581
  },
15579
15582
  setup(n) {
15580
15583
  const e = n, i = F();
15581
- Wt();
15584
+ Ft();
15582
15585
  const o = fe();
15583
15586
  ne(), Kh();
15584
15587
  const s = $(
@@ -15658,7 +15661,7 @@ const uv = /* @__PURE__ */ k({
15658
15661
  ), s = D(() => o.result.value.isOk() ? o.result.value.getValue() : null);
15659
15662
  return (l, u) => (c(), f(xi, null, {
15660
15663
  default: d(() => [
15661
- a(o).isError.value ? (c(), f(jt, {
15664
+ a(o).isError.value ? (c(), f(zt, {
15662
15665
  key: 0,
15663
15666
  message: a(i).t("error.business_details.description"),
15664
15667
  title: a(i).t("error.business_details.title")
@@ -15812,7 +15815,7 @@ class hv {
15812
15815
  };
15813
15816
  }
15814
15817
  }
15815
- class Kt {
15818
+ class Qt {
15816
15819
  static attachmentTransformer(e) {
15817
15820
  return {
15818
15821
  uuid: e.uuid,
@@ -15823,7 +15826,7 @@ class Kt {
15823
15826
  };
15824
15827
  }
15825
15828
  static fromDto(e) {
15826
- const i = e.attachments.map(Kt.attachmentTransformer), o = e.externalAttachments.map(Kt.attachmentTransformer);
15829
+ const i = e.attachments.map(Qt.attachmentTransformer), o = e.externalAttachments.map(Qt.attachmentTransformer);
15827
15830
  return {
15828
15831
  uuid: e.uuid,
15829
15832
  dealUuid: e.dealUuid,
@@ -15871,7 +15874,7 @@ class yv {
15871
15874
  return (await U.fromPromise(Om({
15872
15875
  query: i
15873
15876
  }))).map((s) => ({
15874
- data: s.data.items.map(Kt.fromDto),
15877
+ data: s.data.items.map(Qt.fromDto),
15875
15878
  meta: s.data.meta
15876
15879
  }));
15877
15880
  }
@@ -15978,7 +15981,7 @@ const xv = /* @__PURE__ */ k({
15978
15981
  src: {}
15979
15982
  },
15980
15983
  setup(n) {
15981
- const e = n, i = Qt(), s = Ae().create(Vv), l = $(!0);
15984
+ const e = n, i = Wt(), s = Ae().create(Vv), l = $(!0);
15982
15985
  function u() {
15983
15986
  l.value = !1;
15984
15987
  }
@@ -16039,7 +16042,7 @@ const xv = /* @__PURE__ */ k({
16039
16042
  }), Ev = {
16040
16043
  key: 0,
16041
16044
  class: "max-w-xs text-center text-xs text-secondary"
16042
- }, Ot = /* @__PURE__ */ k({
16045
+ }, Ht = /* @__PURE__ */ k({
16043
16046
  __name: "ButtonTooltip",
16044
16047
  props: {
16045
16048
  isDisabled: { type: Boolean, default: !1 },
@@ -16137,7 +16140,7 @@ const xv = /* @__PURE__ */ k({
16137
16140
  }), l.observe(m));
16138
16141
  }), Fo(() => {
16139
16142
  l?.disconnect();
16140
- }), (m, p) => (c(), f(Ot, {
16143
+ }), (m, p) => (c(), f(Ht, {
16141
16144
  "is-disabled": !s.value,
16142
16145
  label: e.label
16143
16146
  }, {
@@ -16304,7 +16307,7 @@ const wo = /* @__PURE__ */ k({
16304
16307
  default: d(() => [
16305
16308
  r(de, { gap: "none" }, {
16306
16309
  default: d(() => [
16307
- r(Ot, { label: "Replace" }, {
16310
+ r(Ht, { label: "Replace" }, {
16308
16311
  default: d(() => [
16309
16312
  r(a(rl), null, {
16310
16313
  default: d(() => [
@@ -16320,7 +16323,7 @@ const wo = /* @__PURE__ */ k({
16320
16323
  ]),
16321
16324
  _: 1
16322
16325
  }),
16323
- r(Ot, { label: "Download" }, {
16326
+ r(Ht, { label: "Download" }, {
16324
16327
  default: d(() => [
16325
16328
  e.item.url !== null ? (c(), f(a(we), {
16326
16329
  key: 0,
@@ -16333,7 +16336,7 @@ const wo = /* @__PURE__ */ k({
16333
16336
  ]),
16334
16337
  _: 1
16335
16338
  }),
16336
- r(Ot, { label: "Remove" }, {
16339
+ r(Ht, { label: "Remove" }, {
16337
16340
  default: d(() => [
16338
16341
  r(a(ll), null, {
16339
16342
  default: d(() => [
@@ -16819,7 +16822,7 @@ function dy(n) {
16819
16822
  }))
16820
16823
  },
16821
16824
  path: "/business/:businessUuid",
16822
- component: () => import("./BusinessDetailView-DBCcuhbr.js"),
16825
+ component: () => import("./BusinessDetailView-DTY5Ov9g.js"),
16823
16826
  redirect: {
16824
16827
  name: n[0].route.name
16825
16828
  },
@@ -16833,7 +16836,7 @@ function my(n) {
16833
16836
  {
16834
16837
  name: "deal-communication",
16835
16838
  path: "communication",
16836
- component: () => import("./DealCommunicationTabView-DpnmDqLy.js")
16839
+ component: () => import("./DealCommunicationTabView-Bu35rD0n.js")
16837
16840
  }
16838
16841
  ];
16839
16842
  return [
@@ -16846,7 +16849,7 @@ function my(n) {
16846
16849
  }))
16847
16850
  },
16848
16851
  path: "/deals/:dealUuid",
16849
- component: () => import("./DealDetailView-6LoOYgXK.js"),
16852
+ component: () => import("./DealDetailView-DrvM0GwH.js"),
16850
16853
  redirect: {
16851
16854
  name: e[0].name
16852
16855
  },
@@ -16865,7 +16868,7 @@ function _y(n) {
16865
16868
  }))
16866
16869
  },
16867
16870
  path: "/individual/:individualUuid",
16868
- component: () => import("./IndividualDetailView-POyXs3J3.js"),
16871
+ component: () => import("./IndividualDetailView-C6mdYISi.js"),
16869
16872
  redirect: {
16870
16873
  name: n[0].route.name
16871
16874
  },
@@ -16921,7 +16924,7 @@ export {
16921
16924
  Di as a0,
16922
16925
  Cv as a1,
16923
16926
  xi as a2,
16924
- jt as a3,
16927
+ zt as a3,
16925
16928
  bv as a4,
16926
16929
  Od as a5,
16927
16930
  v2 as a6,
@@ -16950,7 +16953,7 @@ export {
16950
16953
  ne as d,
16951
16954
  rt as e,
16952
16955
  ro as f,
16953
- Pt as g,
16956
+ Bt as g,
16954
16957
  ab as h,
16955
16958
  Tu as i,
16956
16959
  Xc as j,