@wisemen/wise-crm 0.0.0-alpha.4 → 0.0.0-alpha.5
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/{ActivityIcon-D44t-BSn.js → ActivityIcon-DwPUmxzt.js} +1 -1
- package/dist/{BookIcon-CutBdbC0.js → BookIcon-CnxMEJ4U.js} +1 -1
- package/dist/{BuildingIcon-ElARxIlR.js → BuildingIcon-Dm4zLpVp.js} +1 -1
- package/dist/{BuildingsIcon-C0MbMDz1.js → BuildingsIcon-ZsYVNceU.js} +1 -1
- package/dist/{BusinessDetailView-i3MZXuUe.js → BusinessDetailView-BD_5-gur.js} +2 -2
- package/dist/{ChevronDownIcon-DZH2vgen.js → ChevronDownIcon-QE7YBP4M.js} +1 -1
- package/dist/{ClockPlusIcon-CgSXl6Sx.js → ClockPlusIcon-CoUf-dk-.js} +1 -1
- package/dist/{CopyIcon-BmIRbs5V.js → CopyIcon-DBT5WWA2.js} +1 -1
- package/dist/{CrmDetailView.vue_vue_type_script_setup_true_lang-CySrktmd.js → CrmDetailView.vue_vue_type_script_setup_true_lang-B31uX-X7.js} +1 -1
- package/dist/{DealDetailView-CUl42ZTd.js → DealDetailView-DdZbslOT.js} +2 -2
- package/dist/{DealIcon-C6Px3HJO.js → DealIcon-DSXPERiO.js} +1 -1
- package/dist/{EditWithLineIcon-CwA3jPQp.js → EditWithLineIcon-wkAXH1Pr.js} +1 -1
- package/dist/{FileIcon-7MDmblin.js → FileIcon-Dftn1Vwn.js} +1 -1
- package/dist/{FilterLinesIcon-Da3BV-iT.js → FilterLinesIcon-SPyYyjBK.js} +1 -1
- package/dist/{HashIcon-BpSFNhr7.js → HashIcon-B6IWdDkU.js} +1 -1
- package/dist/{HomeFilledIcon-HJC8cV41.js → HomeFilledIcon-DkvBdyyf.js} +1 -1
- package/dist/{IndividualDetailView-nnbBnmG8.js → IndividualDetailView-CLUuxWnM.js} +2 -2
- package/dist/{LayersTreeIcon-BgHcjuI_.js → LayersTreeIcon-DlCcavlA.js} +1 -1
- package/dist/{LinkExternalIcon-C_UlFHmu.js → LinkExternalIcon-BdiDxCaa.js} +1 -1
- package/dist/{LocationPinIcon-CLrEHNef.js → LocationPinIcon-B0IaKlCF.js} +1 -1
- package/dist/{MailIcon-k_vWPmr0.js → MailIcon-C0w41KdY.js} +1 -1
- package/dist/{MobilePhoneIcon-jp_Sdqnw.js → MobilePhoneIcon-CIz1YoHp.js} +1 -1
- package/dist/{PhoneIcon-NfSpRTNZ.js → PhoneIcon-BgjQNd2l.js} +1 -1
- package/dist/{SendIcon-CmfMQQhD.js → SendIcon-C_NTDGvj.js} +1 -1
- package/dist/{StarOutlineIcon-CyWY8Cj8.js → StarOutlineIcon-DAxf746-.js} +1 -1
- package/dist/{StarYellowIcon-CyNBsGIx.js → StarYellowIcon-CYyd9E-r.js} +1 -1
- package/dist/{TimeLineMarkerIcon-jCDSGnG-.js → TimeLineMarkerIcon-CKZFUDiO.js} +1 -1
- package/dist/{TrashIcon-BDgKB4RM.js → TrashIcon-BOi6vWHg.js} +1 -1
- package/dist/{UserCircleIcon-OKdaanJV.js → UserCircleIcon-Bdr-IBNX.js} +1 -1
- package/dist/{UserIcon-CLG6DEo_.js → UserIcon-BAix1jEo.js} +1 -1
- package/dist/{VerticalDotsIcon--_VYFMTY.js → VerticalDotsIcon-Cht6si1H.js} +1 -1
- package/dist/{WalletIcon-7sJZlclI.js → WalletIcon-C-EjYVxW.js} +1 -1
- package/dist/{index-Dtk-GIav.js → index-YXBr1SD9.js} +562 -555
- package/dist/index.d.ts +6 -0
- package/dist/index.js +1 -1
- package/dist/plugins/i18n.plugin.d.ts +6 -0
- package/package.json +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import ge, { z as n } from "zod";
|
|
2
2
|
import * as Nf from "vue";
|
|
3
|
-
import { provide as wt, computed as S, hasInjectionContext as wv, inject as je, getCurrentScope as Wo, shallowReactive as Oo, reactive as Ji, watch as X, onScopeDispose as Zo, shallowReadonly as vr, readonly as ro, toRefs as vn, isRef as br, unref as d, defineComponent as A, createElementBlock as V, openBlock as _, normalizeClass as Oe, renderSlot as
|
|
4
|
-
import { useI18n as
|
|
3
|
+
import { provide as wt, computed as S, hasInjectionContext as wv, inject as je, getCurrentScope as Wo, shallowReactive as Oo, reactive as Ji, watch as X, onScopeDispose as Zo, shallowReadonly as vr, readonly as ro, toRefs as vn, isRef as br, unref as d, defineComponent as A, createElementBlock as V, openBlock as _, normalizeClass as Oe, renderSlot as Z, createBlock as I, createCommentVNode as $, Fragment as le, renderList as pe, toDisplayString as k, withCtx as w, createTextVNode as H, createVNode as b, createElementVNode as T, createStaticVNode as v1, shallowRef as Ye, onMounted as Pt, nextTick as it, onUnmounted as _i, toValue as ue, getCurrentInstance as Rn, toRef as jn, ref as M, customRef as xv, toRaw as b1, useId as Bc, withModifiers as Ys, mergeProps as R, resolveDynamicComponent as Yo, Transition as y1, TransitionGroup as _1, useAttrs as w1, onBeforeMount as x1, onBeforeUnmount as wi, onBeforeUpdate as C1, onUpdated as E1, h as rn, Comment as yr, cloneVNode as Cv, mergeModels as Ct, useModel as xi, watchEffect as Ev, withKeys as ui, markRaw as an, watchSyncEffect as S1, withMemo as I1, useSlots as D1, normalizeProps as P1, guardReactiveProps as A1, normalizeStyle as Sv, useTemplateRef as T1, resolveComponent as j1 } from "vue";
|
|
4
|
+
import { useI18n as G, createI18n as k1 } from "vue-i18n";
|
|
5
5
|
import { PaginationParamsBuilder as ln, VcTooltip as Iv, VcBadge as kn, VcIcon as _e, useInjectConfigContext as N1, usePagination as bn, useToast as Dv, VcDialogCloseButton as il, VcButton as Ie, VcKeyboardKey as Pv, VcKeyboardShortcutProvider as U1, VcDialogDescription as _r, VcDialogTitle as wr, VcDialog as Rc, VcDialogContent as xr, useDialog as Ft, VcTextarea as V1, VcIconButton as Et, VcDropdownMenu as Av, VcDropdownMenuItem as Ia, VcSpinner as F1, VcTextField as ve, VcSelect as Qs, VcSelectItem as Js, VcAddressAutocomplete as ao, VcPhoneNumberField as mt, VcAutocomplete as M1, VcDialogRoot as ol, VcDialogPortal as $c, VcDialogOverlay as sl, VcDialogOverlayTransition as rl, VcPopoverRoot as O1, VcFormField as Tv, VcPopoverAnchor as B1, VcPopoverTrigger as R1, VcPopoverPortal as $1, VcPopoverContent as L1, VcRouterLinkButton as jv, VcPopover as z1, VcThemeProvider as q1, VcTabs as kv, VcTabsItem as Nv, VcTabsContent as K1, VcSwitch as Uf, VcCheckbox as G1, VcDateField as Uv, VcNumberField as H1, VcRadioGroup as W1, VcRadioGroupItem as Z1, VcTableCell as Vv, VcTableHeaderCell as Y1, VcTableHeader as Q1, VcTableCellSkeleton as J1, VcTableRoot as X1, VcTableScrollContainer as ex, VcTableContent as tx, VcTableBody as nx, VcTableRow as ix, VcTableHiddenResultsHint as ox } from "@wisemen/vue-core-components";
|
|
6
6
|
import { RouterLink as sx, onBeforeRouteLeave as rx, useRouter as Qo } from "vue-router";
|
|
7
7
|
const Fv = {
|
|
@@ -538,7 +538,10 @@ const Fv = {
|
|
|
538
538
|
"wise_crm.info_dialog.business.information.billing_information.purchase_notes_different_switch": "Purchase notes on a different email",
|
|
539
539
|
"module.crm.info_dialog.individual.tabs.info.label": "Information",
|
|
540
540
|
"wise_crm.deal.form.fields.name": "Name",
|
|
541
|
+
"wise_crm.deal.overview_title": "Deal",
|
|
542
|
+
"wise_crm.deal.overview.create": "Create deal",
|
|
541
543
|
"wise_crm.deal.form.fields.name_placeholder": "Name",
|
|
544
|
+
"wise_crm.deal.form.fields.search_vat_number": "Search a business (VAT number)",
|
|
542
545
|
"wise_crm.deal.form.fields.language": "Language",
|
|
543
546
|
"wise_crm.deal.form.fields.language_placeholder": "Choose a language",
|
|
544
547
|
"wise_crm.deal.form.fields.source": "Source channel",
|
|
@@ -1070,6 +1073,9 @@ const Fv = {
|
|
|
1070
1073
|
"wise_crm.info_dialog.business.information.billing_information.purchase_notes_different_switch": "Aankoop nota's op een ander E-mail",
|
|
1071
1074
|
"module.crm.info_dialog.individual.tabs.info.label": "Informatie",
|
|
1072
1075
|
"wise_crm.deal.form.fields.name": "Naam",
|
|
1076
|
+
"wise_crm.deal.overview_title": "Deal",
|
|
1077
|
+
"wise_crm.deal.overview.create": "Deal aanmaken",
|
|
1078
|
+
"wise_crm.deal.form.fields.search_vat_number": "Zoeken op ondernemingsnummer",
|
|
1073
1079
|
"wise_crm.deal.form.fields.name_placeholder": "Naam",
|
|
1074
1080
|
"wise_crm.deal.form.fields.language": "Taal",
|
|
1075
1081
|
"wise_crm.deal.form.fields.language_placeholder": "Kies een taal",
|
|
@@ -1610,8 +1616,8 @@ var Rv = class extends al {
|
|
|
1610
1616
|
const o = this.#e, s = this.options, r = this.#i, a = this.#o, l = this.#s, u = e !== o ? e.state : this.#n, { state: m } = e;
|
|
1611
1617
|
let c = { ...m }, f = !1, p;
|
|
1612
1618
|
if (i._optimisticResults) {
|
|
1613
|
-
const U = this.hasListeners(),
|
|
1614
|
-
(
|
|
1619
|
+
const U = this.hasListeners(), N = !U && zf(e, i), j = U && qf(e, o, i, s);
|
|
1620
|
+
(N || j) && (c = {
|
|
1615
1621
|
...c,
|
|
1616
1622
|
...xx(m.data, e.options)
|
|
1617
1623
|
}), i._optimisticResults === "isRestoring" && (c.fetchStatus = "idle");
|
|
@@ -1670,7 +1676,7 @@ var Rv = class extends al {
|
|
|
1670
1676
|
if (this.options.experimental_prefetchInRender) {
|
|
1671
1677
|
const U = (L) => {
|
|
1672
1678
|
O.status === "error" ? L.reject(O.error) : O.data !== void 0 && L.resolve(O.data);
|
|
1673
|
-
},
|
|
1679
|
+
}, N = () => {
|
|
1674
1680
|
const L = this.#r = O.promise = $f();
|
|
1675
1681
|
U(L);
|
|
1676
1682
|
}, j = this.#r;
|
|
@@ -1679,10 +1685,10 @@ var Rv = class extends al {
|
|
|
1679
1685
|
e.queryHash === o.queryHash && U(j);
|
|
1680
1686
|
break;
|
|
1681
1687
|
case "fulfilled":
|
|
1682
|
-
(O.status === "error" || O.data !== j.value) &&
|
|
1688
|
+
(O.status === "error" || O.data !== j.value) && N();
|
|
1683
1689
|
break;
|
|
1684
1690
|
case "rejected":
|
|
1685
|
-
(O.status !== "error" || O.error !== j.reason) &&
|
|
1691
|
+
(O.status !== "error" || O.error !== j.reason) && N();
|
|
1686
1692
|
break;
|
|
1687
1693
|
}
|
|
1688
1694
|
}
|
|
@@ -7558,7 +7564,7 @@ const fT = {
|
|
|
7558
7564
|
);
|
|
7559
7565
|
if (!O.body) throw new Error("No body in SSE response");
|
|
7560
7566
|
const U = O.body.pipeThrough(new TextDecoderStream()).getReader();
|
|
7561
|
-
let
|
|
7567
|
+
let N = "";
|
|
7562
7568
|
const j = () => {
|
|
7563
7569
|
try {
|
|
7564
7570
|
U.cancel();
|
|
@@ -7570,11 +7576,11 @@ const fT = {
|
|
|
7570
7576
|
for (; ; ) {
|
|
7571
7577
|
const { done: L, value: K } = await U.read();
|
|
7572
7578
|
if (L) break;
|
|
7573
|
-
|
|
7574
|
-
const ee =
|
|
7579
|
+
N += K;
|
|
7580
|
+
const ee = N.split(`
|
|
7575
7581
|
|
|
7576
7582
|
`);
|
|
7577
|
-
|
|
7583
|
+
N = ee.pop() ?? "";
|
|
7578
7584
|
for (const de of ee) {
|
|
7579
7585
|
const Q = de.split(`
|
|
7580
7586
|
`), oe = [];
|
|
@@ -9001,8 +9007,8 @@ function Sj(t, e, i, o, s) {
|
|
|
9001
9007
|
$o(l) || (St(m), St(v));
|
|
9002
9008
|
const y = g(c, m, v, a);
|
|
9003
9009
|
return or(a, l) ? sp(y, a) : ((x, C, E, D, P, O, U) => {
|
|
9004
|
-
const
|
|
9005
|
-
return x[De[E]] + K *
|
|
9010
|
+
const N = Si(x), [j, L] = xd(D, nm(E, x), E, N, P, O, U), K = Cd(C, j, L);
|
|
9011
|
+
return x[De[E]] + K * N;
|
|
9006
9012
|
})(y, p(v), a, c, m, p, h);
|
|
9007
9013
|
}
|
|
9008
9014
|
function sp(t, e) {
|
|
@@ -9102,12 +9108,12 @@ function El(t, e, i, o, s, r, a, l, u, m) {
|
|
|
9102
9108
|
for (let U = x + 1; U <= y; U++) {
|
|
9103
9109
|
if (U === 7 && y !== 7)
|
|
9104
9110
|
continue;
|
|
9105
|
-
const
|
|
9106
|
-
|
|
9107
|
-
const j = hn(pn(D(P(C, E,
|
|
9111
|
+
const N = nm(U, g);
|
|
9112
|
+
N[De[U]] += O;
|
|
9113
|
+
const j = hn(pn(D(P(C, E, N)), v));
|
|
9108
9114
|
if (j && Math.sign(j) !== O)
|
|
9109
9115
|
break;
|
|
9110
|
-
g =
|
|
9116
|
+
g = N;
|
|
9111
9117
|
}
|
|
9112
9118
|
return g;
|
|
9113
9119
|
})(f, p, i, Math.max(6, o), a, l, u, m)), f;
|
|
@@ -9460,10 +9466,10 @@ function _p(t, e, i, o, s, r, a) {
|
|
|
9460
9466
|
return Qe(h(c, m, p(c, g, r), u));
|
|
9461
9467
|
}
|
|
9462
9468
|
function Oj(t, e, i, o, s) {
|
|
9463
|
-
const r = eo(o), [a, l, u, m, c] = ((O, U,
|
|
9469
|
+
const r = eo(o), [a, l, u, m, c] = ((O, U, N) => {
|
|
9464
9470
|
O = xl(O, Oa);
|
|
9465
9471
|
let j = Wy(O);
|
|
9466
|
-
const L =
|
|
9472
|
+
const L = N(O[Gy]);
|
|
9467
9473
|
let K = bd(O);
|
|
9468
9474
|
const ee = Vr(O, 7);
|
|
9469
9475
|
let de = Ur(O);
|
|
@@ -9474,8 +9480,8 @@ function Oj(t, e, i, o, s) {
|
|
|
9474
9480
|
return [j, de, K, ee, L];
|
|
9475
9481
|
})(s, r, t), f = Math.max(r, a);
|
|
9476
9482
|
if (!c && f <= 6)
|
|
9477
|
-
return Qe(mo(((O, U,
|
|
9478
|
-
const K = Sl(et(O),
|
|
9483
|
+
return Qe(mo(((O, U, N, j, L) => {
|
|
9484
|
+
const K = Sl(et(O), N, j, L);
|
|
9479
9485
|
return {
|
|
9480
9486
|
...tt,
|
|
9481
9487
|
...ls(K, U)
|
|
@@ -9965,15 +9971,15 @@ function sy(t, e, i, o, s, r, a) {
|
|
|
9965
9971
|
return U = {
|
|
9966
9972
|
...co(E, P++ * -v),
|
|
9967
9973
|
...C
|
|
9968
|
-
},
|
|
9974
|
+
}, N = Pr(p, U), Bt(D, N) === -v;
|
|
9969
9975
|
}
|
|
9970
9976
|
const x = $t(h, p), C = Zt(Jt, x), E = $t(g, p), D = g.epochNanoseconds;
|
|
9971
9977
|
let P = 0;
|
|
9972
9978
|
const O = zd(x, E);
|
|
9973
|
-
let U,
|
|
9979
|
+
let U, N;
|
|
9974
9980
|
if (Math.sign(O) === -v && P++, y() && (v === -1 || y()))
|
|
9975
9981
|
throw new RangeError(ds);
|
|
9976
|
-
const j = hn(pn(
|
|
9982
|
+
const j = hn(pn(N, D));
|
|
9977
9983
|
return [x, U, j];
|
|
9978
9984
|
})(e, i, o, s);
|
|
9979
9985
|
var c, f;
|
|
@@ -10258,7 +10264,7 @@ function jr(t, e) {
|
|
|
10258
10264
|
}
|
|
10259
10265
|
function _k(t, e, i, o, s) {
|
|
10260
10266
|
const { calendar: r, timeZone: a } = i, l = t(r), u = e(a), m = [...l.fields(Hn), ...Fy].sort(), c = ((x) => {
|
|
10261
|
-
const C = $t(x, me), E = Dr(C.offsetNanoseconds), D = $l(x.calendar), [P, O, U] = D.v(C), [
|
|
10267
|
+
const C = $t(x, me), E = Dr(C.offsetNanoseconds), D = $l(x.calendar), [P, O, U] = D.v(C), [N, j] = D.q(P, O), L = Ar(N, j);
|
|
10262
10268
|
return {
|
|
10263
10269
|
...IU(C),
|
|
10264
10270
|
year: P,
|
|
@@ -10851,8 +10857,8 @@ const fm = "([+-])", _a = "(?:[.,](\\d{1,9}))?", Qy = `(?:(?:${fm}(\\d{6}))|(\\d
|
|
|
10851
10857
|
[p, h] = u.un(p, h, -C), v = p - m, y = h - c, E = u.U(p, h), D = C < 0 ? -P : E;
|
|
10852
10858
|
}
|
|
10853
10859
|
if (x = g - Math.min(f, E) + D, v) {
|
|
10854
|
-
const [P, O] = u.q(m, c), [U,
|
|
10855
|
-
if (y = U - P || Number(
|
|
10860
|
+
const [P, O] = u.q(m, c), [U, N] = u.q(p, h);
|
|
10861
|
+
if (y = U - P || Number(N) - Number(O), Math.sign(y) === -C) {
|
|
10856
10862
|
const j = C < 0 && -u.B(p);
|
|
10857
10863
|
v = (p -= C) - m, y = h - Fa(P, O, u.L(p)) + (j || u.B(p));
|
|
10858
10864
|
}
|
|
@@ -12168,7 +12174,7 @@ const Ne = /* @__PURE__ */ A({
|
|
|
12168
12174
|
"gap-xl grid"
|
|
12169
12175
|
])
|
|
12170
12176
|
}, [
|
|
12171
|
-
|
|
12177
|
+
Z(i.$slots, "default")
|
|
12172
12178
|
], 2));
|
|
12173
12179
|
}
|
|
12174
12180
|
}), PV = { class: "gap-xs flex flex-wrap items-center" }, AV = {
|
|
@@ -12197,14 +12203,14 @@ const Ne = /* @__PURE__ */ A({
|
|
|
12197
12203
|
}));
|
|
12198
12204
|
return (o, s) => (_(), V("div", PV, [
|
|
12199
12205
|
(_(!0), V(le, null, pe(i.value, (r) => (_(), V(le, { key: r }, [
|
|
12200
|
-
r.type === "text" ? (_(), V("span", AV,
|
|
12206
|
+
r.type === "text" ? (_(), V("span", AV, k(r.text), 1)) : $("", !0),
|
|
12201
12207
|
r.type === "link" && r.route !== void 0 ? (_(), I(d(sx), {
|
|
12202
12208
|
key: 1,
|
|
12203
12209
|
to: r.route,
|
|
12204
12210
|
class: "hover:text-brand hover:underline text-primary text-sm font-medium"
|
|
12205
12211
|
}, {
|
|
12206
12212
|
default: w(() => [
|
|
12207
|
-
|
|
12213
|
+
H(k(r.text), 1)
|
|
12208
12214
|
]),
|
|
12209
12215
|
_: 2
|
|
12210
12216
|
}, 1032, ["to"])) : $("", !0)
|
|
@@ -12230,7 +12236,7 @@ const Ne = /* @__PURE__ */ A({
|
|
|
12230
12236
|
class: "gap-sm flex flex-col"
|
|
12231
12237
|
}, [
|
|
12232
12238
|
T("div", TV, [
|
|
12233
|
-
T("p", jV,
|
|
12239
|
+
T("p", jV, k(r.key) + ": ", 1),
|
|
12234
12240
|
r.oldValue !== null ? (_(), I(d(kn), {
|
|
12235
12241
|
key: 0,
|
|
12236
12242
|
"class-config": {
|
|
@@ -12241,7 +12247,7 @@ const Ne = /* @__PURE__ */ A({
|
|
|
12241
12247
|
color: "error"
|
|
12242
12248
|
}, {
|
|
12243
12249
|
default: w(() => [
|
|
12244
|
-
|
|
12250
|
+
H(k(r.oldValue), 1)
|
|
12245
12251
|
]),
|
|
12246
12252
|
_: 2
|
|
12247
12253
|
}, 1024)) : $("", !0),
|
|
@@ -12259,7 +12265,7 @@ const Ne = /* @__PURE__ */ A({
|
|
|
12259
12265
|
color: "success"
|
|
12260
12266
|
}, {
|
|
12261
12267
|
default: w(() => [
|
|
12262
|
-
|
|
12268
|
+
H(k(r.value), 1)
|
|
12263
12269
|
]),
|
|
12264
12270
|
_: 2
|
|
12265
12271
|
}, 1024)
|
|
@@ -12360,7 +12366,7 @@ const Ne = /* @__PURE__ */ A({
|
|
|
12360
12366
|
return (a, l) => (_(), V("div", {
|
|
12361
12367
|
class: Oe([[s.value, o.value, i.value, r.value], "flex"])
|
|
12362
12368
|
}, [
|
|
12363
|
-
|
|
12369
|
+
Z(a.$slots, "default")
|
|
12364
12370
|
], 2));
|
|
12365
12371
|
}
|
|
12366
12372
|
}), km = ge.instanceof(gi.PlainDate);
|
|
@@ -12407,7 +12413,7 @@ function no() {
|
|
|
12407
12413
|
const {
|
|
12408
12414
|
locale: t,
|
|
12409
12415
|
t: e
|
|
12410
|
-
} =
|
|
12416
|
+
} = G(), i = N1(), o = S(() => i.hourCycle.value || Bs.getDefaultHourCycle(t.value));
|
|
12411
12417
|
function s(c) {
|
|
12412
12418
|
return {
|
|
12413
12419
|
hour: "2-digit",
|
|
@@ -12537,9 +12543,9 @@ const NV = { class: "flex flex-col items-center justify-center" }, UV = { class:
|
|
|
12537
12543
|
}, null, 8, ["activity"]),
|
|
12538
12544
|
b(Be, null, {
|
|
12539
12545
|
default: w(() => [
|
|
12540
|
-
T("p", FV,
|
|
12546
|
+
T("p", FV, k(i(e.activity.createdAt)), 1),
|
|
12541
12547
|
s[0] || (s[0] = T("div", { class: "bg-quaternary size-1 rounded-full" }, null, -1)),
|
|
12542
|
-
T("p", MV,
|
|
12548
|
+
T("p", MV, k(e.activity.changedBy), 1)
|
|
12543
12549
|
]),
|
|
12544
12550
|
_: 1
|
|
12545
12551
|
})
|
|
@@ -12583,8 +12589,8 @@ const LV = /* @__PURE__ */ Ui(BV, [["render", $V]]), zV = { class: "relative fle
|
|
|
12583
12589
|
}, null, 8, ["icon"])
|
|
12584
12590
|
]),
|
|
12585
12591
|
T("div", GV, [
|
|
12586
|
-
T("h3", HV,
|
|
12587
|
-
T("p", WV,
|
|
12592
|
+
T("h3", HV, k(e.title), 1),
|
|
12593
|
+
T("p", WV, k(e.description), 1)
|
|
12588
12594
|
])
|
|
12589
12595
|
]),
|
|
12590
12596
|
T("div", ZV, [
|
|
@@ -12849,7 +12855,7 @@ function dF(t, e, i = {}) {
|
|
|
12849
12855
|
function mF(t) {
|
|
12850
12856
|
return typeof t == "function" ? t : typeof t == "string" ? (e) => e.key === t : Array.isArray(t) ? (e) => t.includes(e.key) : () => !0;
|
|
12851
12857
|
}
|
|
12852
|
-
function
|
|
12858
|
+
function mG(...t) {
|
|
12853
12859
|
let e, i, o = {};
|
|
12854
12860
|
t.length === 3 ? (e = t[0], i = t[1], o = t[2]) : t.length === 2 ? typeof t[1] == "object" ? (e = !0, i = t[0], o = t[1]) : (e = t[0], i = t[1]) : (e = !0, i = t[0]);
|
|
12855
12861
|
const {
|
|
@@ -13021,10 +13027,10 @@ function w_(t, e, i, o = {}) {
|
|
|
13021
13027
|
let O = !1;
|
|
13022
13028
|
const U = (Q) => {
|
|
13023
13029
|
g && !O || ee(Q);
|
|
13024
|
-
},
|
|
13030
|
+
}, N = (Q) => {
|
|
13025
13031
|
g && !O || de(Q);
|
|
13026
13032
|
};
|
|
13027
|
-
f && l && (i instanceof Storage ? io(f, "storage", U, { passive: !0 }) : io(f, zp,
|
|
13033
|
+
f && l && (i instanceof Storage ? io(f, "storage", U, { passive: !0 }) : io(f, zp, N)), g ? Vm(() => {
|
|
13028
13034
|
O = !0, ee();
|
|
13029
13035
|
}) : ee();
|
|
13030
13036
|
function j(Q, oe) {
|
|
@@ -13308,7 +13314,7 @@ function xF(t, e = {}) {
|
|
|
13308
13314
|
j === c.document && !xe && (xe = c.document.body.scrollTop), D.top = xe < g.value, D.bottom = xe > g.value;
|
|
13309
13315
|
const F = Math.abs(xe) <= (a.top || 0), ie = Math.abs(xe) + K.clientHeight >= K.scrollHeight - (a.bottom || 0) - qp;
|
|
13310
13316
|
ee === "flex" && de === "column-reverse" ? (E.top = ie, E.bottom = F) : (E.top = F, E.bottom = ie), g.value = xe;
|
|
13311
|
-
},
|
|
13317
|
+
}, N = (j) => {
|
|
13312
13318
|
var L;
|
|
13313
13319
|
if (!c)
|
|
13314
13320
|
return;
|
|
@@ -13318,7 +13324,7 @@ function xF(t, e = {}) {
|
|
|
13318
13324
|
return io(
|
|
13319
13325
|
t,
|
|
13320
13326
|
"scroll",
|
|
13321
|
-
i ? /* @__PURE__ */ iF(
|
|
13327
|
+
i ? /* @__PURE__ */ iF(N, i, !0, !1) : N,
|
|
13322
13328
|
u
|
|
13323
13329
|
), Vm(() => {
|
|
13324
13330
|
try {
|
|
@@ -13484,7 +13490,7 @@ const E_ = /* @__PURE__ */ A({
|
|
|
13484
13490
|
ref: i,
|
|
13485
13491
|
class: "thin-scroll overflow-auto"
|
|
13486
13492
|
}, [
|
|
13487
|
-
|
|
13493
|
+
Z(o.$slots, "default")
|
|
13488
13494
|
], 512));
|
|
13489
13495
|
}
|
|
13490
13496
|
}), S_ = /* @__PURE__ */ A({
|
|
@@ -13495,7 +13501,7 @@ const E_ = /* @__PURE__ */ A({
|
|
|
13495
13501
|
onNext: { type: Function }
|
|
13496
13502
|
},
|
|
13497
13503
|
setup(t) {
|
|
13498
|
-
const e = t, i =
|
|
13504
|
+
const e = t, i = G(), o = S(() => !e.isLoading && e.activities.length === 0);
|
|
13499
13505
|
async function s() {
|
|
13500
13506
|
await e.onNext();
|
|
13501
13507
|
}
|
|
@@ -13737,7 +13743,7 @@ class P_ {
|
|
|
13737
13743
|
}
|
|
13738
13744
|
}
|
|
13739
13745
|
function Ke() {
|
|
13740
|
-
const t =
|
|
13746
|
+
const t = G(), e = Dv();
|
|
13741
13747
|
function i(o) {
|
|
13742
13748
|
if (P_.error(o), D_.isError(o)) {
|
|
13743
13749
|
const s = AF.getI18nKeyForError(o);
|
|
@@ -14480,8 +14486,8 @@ function st({
|
|
|
14480
14486
|
continue;
|
|
14481
14487
|
const B = Number.parseInt(he.replace(`${te}.`, ""), 10);
|
|
14482
14488
|
if (B > se) {
|
|
14483
|
-
const
|
|
14484
|
-
h.value.set(ae, `${
|
|
14489
|
+
const W = `${te}.${B - 1}`, Y = he.slice(W.length);
|
|
14490
|
+
h.value.set(ae, `${W}${Y}`);
|
|
14485
14491
|
} else B === se && h.value.delete(ae);
|
|
14486
14492
|
}
|
|
14487
14493
|
} else {
|
|
@@ -14553,7 +14559,7 @@ function st({
|
|
|
14553
14559
|
function B(be) {
|
|
14554
14560
|
return re(te.value.length, be);
|
|
14555
14561
|
}
|
|
14556
|
-
function
|
|
14562
|
+
function W() {
|
|
14557
14563
|
ae(te.value.length - 1);
|
|
14558
14564
|
}
|
|
14559
14565
|
function Y() {
|
|
@@ -14607,7 +14613,7 @@ function st({
|
|
|
14607
14613
|
insert: re,
|
|
14608
14614
|
modelValue: S(() => se),
|
|
14609
14615
|
move: Ue,
|
|
14610
|
-
pop:
|
|
14616
|
+
pop: W,
|
|
14611
14617
|
prepend: he,
|
|
14612
14618
|
rawErrors: S(() => []),
|
|
14613
14619
|
register: (be, Ge) => {
|
|
@@ -14628,7 +14634,7 @@ function st({
|
|
|
14628
14634
|
value: S(() => se)
|
|
14629
14635
|
};
|
|
14630
14636
|
}
|
|
14631
|
-
function
|
|
14637
|
+
function N(F) {
|
|
14632
14638
|
return F._isTouched !== void 0;
|
|
14633
14639
|
}
|
|
14634
14640
|
function j(F, ie) {
|
|
@@ -14638,7 +14644,7 @@ function st({
|
|
|
14638
14644
|
return !1;
|
|
14639
14645
|
const te = $i(p.value, F._path.value) ?? se;
|
|
14640
14646
|
return F.modelValue.value === "" && te === null ? !1 : JSON.stringify(F.modelValue.value) !== JSON.stringify(te);
|
|
14641
|
-
}), F.isTouched = S(() => F._path.value === null ? !1 : P(F._path.value).some((ae) => ae.isTouched) ? !0 :
|
|
14647
|
+
}), F.isTouched = S(() => F._path.value === null ? !1 : P(F._path.value).some((ae) => ae.isTouched) ? !0 : N(F) ? F._isTouched.value : !1), F.rawErrors = S(() => F._path.value === null ? [] : a.value.filter((re) => {
|
|
14642
14648
|
const ae = re.path?.map((B) => typeof B == "object" ? B.key : B).join(".");
|
|
14643
14649
|
if (ae == null || F._path.value == null)
|
|
14644
14650
|
return !1;
|
|
@@ -14653,14 +14659,14 @@ function st({
|
|
|
14653
14659
|
return re;
|
|
14654
14660
|
const he = ae.join("."), {
|
|
14655
14661
|
isPart: B,
|
|
14656
|
-
relativePath:
|
|
14662
|
+
relativePath: W
|
|
14657
14663
|
} = ra({
|
|
14658
14664
|
childPath: he,
|
|
14659
14665
|
parentPath: F._path.value
|
|
14660
14666
|
});
|
|
14661
14667
|
return B ? {
|
|
14662
14668
|
...re,
|
|
14663
|
-
path:
|
|
14669
|
+
path: W?.split(".") ?? []
|
|
14664
14670
|
} : {
|
|
14665
14671
|
...re,
|
|
14666
14672
|
path: []
|
|
@@ -14689,14 +14695,14 @@ function st({
|
|
|
14689
14695
|
};
|
|
14690
14696
|
const {
|
|
14691
14697
|
isPart: B,
|
|
14692
|
-
relativePath:
|
|
14698
|
+
relativePath: W
|
|
14693
14699
|
} = ra({
|
|
14694
14700
|
childPath: he,
|
|
14695
14701
|
parentPath: F._path.value
|
|
14696
14702
|
});
|
|
14697
14703
|
return B ? {
|
|
14698
14704
|
message: re.message,
|
|
14699
|
-
path:
|
|
14705
|
+
path: W
|
|
14700
14706
|
} : {
|
|
14701
14707
|
message: re.message,
|
|
14702
14708
|
path: null
|
|
@@ -14732,12 +14738,12 @@ function st({
|
|
|
14732
14738
|
}, ee = (F, ie) => {
|
|
14733
14739
|
const se = E(h.value, F), te = In(ie);
|
|
14734
14740
|
if (se !== null) {
|
|
14735
|
-
let
|
|
14736
|
-
if (
|
|
14741
|
+
let W = y.get(se) ?? null;
|
|
14742
|
+
if (W === null) {
|
|
14737
14743
|
const Y = $i(r.value, F);
|
|
14738
|
-
|
|
14744
|
+
W = U(se, F, Y ?? []);
|
|
14739
14745
|
}
|
|
14740
|
-
return j(
|
|
14746
|
+
return j(W, []);
|
|
14741
14747
|
}
|
|
14742
14748
|
const re = $i(r.value, F);
|
|
14743
14749
|
re == null && Ps(r.value, F, []);
|
|
@@ -14745,8 +14751,8 @@ function st({
|
|
|
14745
14751
|
h.value.set(ae, F);
|
|
14746
14752
|
const he = U(ae, F, re ?? []);
|
|
14747
14753
|
if (te !== void 0 && (re == null || re.length === 0)) {
|
|
14748
|
-
const
|
|
14749
|
-
for (const Y of
|
|
14754
|
+
const W = te;
|
|
14755
|
+
for (const Y of W)
|
|
14750
14756
|
he.append(Y);
|
|
14751
14757
|
}
|
|
14752
14758
|
return y.set(ae, he), L(F), j(he, []);
|
|
@@ -14859,7 +14865,7 @@ const aM = /* @__PURE__ */ A({
|
|
|
14859
14865
|
isDisabled: { type: Boolean, default: !1 }
|
|
14860
14866
|
},
|
|
14861
14867
|
setup(t) {
|
|
14862
|
-
const e = t, i =
|
|
14868
|
+
const e = t, i = G();
|
|
14863
14869
|
return (o, s) => (_(), I(d(il), null, {
|
|
14864
14870
|
default: w(() => [
|
|
14865
14871
|
b(d(Ie), {
|
|
@@ -14870,7 +14876,7 @@ const aM = /* @__PURE__ */ A({
|
|
|
14870
14876
|
default: w(() => [
|
|
14871
14877
|
b(Be, null, {
|
|
14872
14878
|
default: w(() => [
|
|
14873
|
-
|
|
14879
|
+
H(k(d(i).t("shared.cancel")) + " ", 1),
|
|
14874
14880
|
b(d(Pv), {
|
|
14875
14881
|
"keyboard-key": "escape",
|
|
14876
14882
|
class: "border-tertiary bg-secondary text-tertiary"
|
|
@@ -14923,7 +14929,7 @@ const cM = /* @__PURE__ */ A({
|
|
|
14923
14929
|
default: w(() => [
|
|
14924
14930
|
b(Be, null, {
|
|
14925
14931
|
default: w(() => [
|
|
14926
|
-
|
|
14932
|
+
H(k(i.label) + " ", 1),
|
|
14927
14933
|
d(s) ? (_(), I(d(Pv), {
|
|
14928
14934
|
key: 0,
|
|
14929
14935
|
"class-config": {
|
|
@@ -14949,7 +14955,7 @@ const cM = /* @__PURE__ */ A({
|
|
|
14949
14955
|
class: "mt-4xl"
|
|
14950
14956
|
}, {
|
|
14951
14957
|
default: w(() => [
|
|
14952
|
-
|
|
14958
|
+
Z(e.$slots, "default")
|
|
14953
14959
|
]),
|
|
14954
14960
|
_: 3
|
|
14955
14961
|
}));
|
|
@@ -14973,13 +14979,13 @@ const cM = /* @__PURE__ */ A({
|
|
|
14973
14979
|
T("div", null, [
|
|
14974
14980
|
b(d(_r), null, {
|
|
14975
14981
|
default: w(() => [
|
|
14976
|
-
T("p", pM,
|
|
14982
|
+
T("p", pM, k(e.description), 1)
|
|
14977
14983
|
]),
|
|
14978
14984
|
_: 1
|
|
14979
14985
|
}),
|
|
14980
14986
|
b(d(wr), null, {
|
|
14981
14987
|
default: w(() => [
|
|
14982
|
-
T("h2", hM,
|
|
14988
|
+
T("h2", hM, k(e.title), 1)
|
|
14983
14989
|
]),
|
|
14984
14990
|
_: 1
|
|
14985
14991
|
})
|
|
@@ -15111,7 +15117,7 @@ const yM = ["id"], Tt = /* @__PURE__ */ A({
|
|
|
15111
15117
|
["prevent"]
|
|
15112
15118
|
))
|
|
15113
15119
|
}, [
|
|
15114
|
-
|
|
15120
|
+
Z(s.$slots, "default", { formId: d(i) })
|
|
15115
15121
|
], 40, yM));
|
|
15116
15122
|
}
|
|
15117
15123
|
}), _M = n.object({
|
|
@@ -15134,7 +15140,7 @@ const wM = { class: "p-md flex justify-end" }, V_ = /* @__PURE__ */ A({
|
|
|
15134
15140
|
onSubmit: { type: Function }
|
|
15135
15141
|
},
|
|
15136
15142
|
setup(t) {
|
|
15137
|
-
const e = t, i =
|
|
15143
|
+
const e = t, i = G(), o = st({
|
|
15138
15144
|
initialState: {
|
|
15139
15145
|
note: e.content ?? null
|
|
15140
15146
|
},
|
|
@@ -15194,7 +15200,7 @@ const wM = { class: "p-md flex justify-end" }, V_ = /* @__PURE__ */ A({
|
|
|
15194
15200
|
},
|
|
15195
15201
|
emits: ["delete", "next", "update"],
|
|
15196
15202
|
setup(t, { emit: e }) {
|
|
15197
|
-
const i = t, o = e, s =
|
|
15203
|
+
const i = t, o = e, s = G();
|
|
15198
15204
|
function r(m) {
|
|
15199
15205
|
const c = m.updatedAt, f = c.toInstant(), p = gi.Now.instant(), h = Bs.diffInSeconds(f, p), g = Bs.diffInMinutes(f, p), v = Bs.diffInHours(f, p);
|
|
15200
15206
|
return h < 60 ? s.t("wise_crm.note.just_now") : g < 60 ? s.t("wise_crm.note.minutes_ago", {
|
|
@@ -15220,11 +15226,11 @@ const wM = { class: "p-md flex justify-end" }, V_ = /* @__PURE__ */ A({
|
|
|
15220
15226
|
class: "gap-sm flex"
|
|
15221
15227
|
}, [
|
|
15222
15228
|
T("div", CM, [
|
|
15223
|
-
T("p", EM,
|
|
15229
|
+
T("p", EM, k(f.content), 1),
|
|
15224
15230
|
T("div", SM, [
|
|
15225
|
-
T("span", null,
|
|
15231
|
+
T("span", null, k(r(f)), 1),
|
|
15226
15232
|
c[0] || (c[0] = T("div", { class: "size-1 rounded-full bg-gray-400" }, null, -1)),
|
|
15227
|
-
T("span", null,
|
|
15233
|
+
T("span", null, k(f.lastUpdatedByUser), 1)
|
|
15228
15234
|
]),
|
|
15229
15235
|
T("div", IM, [
|
|
15230
15236
|
b(d(Av), {
|
|
@@ -15277,7 +15283,7 @@ const wM = { class: "p-md flex justify-end" }, V_ = /* @__PURE__ */ A({
|
|
|
15277
15283
|
},
|
|
15278
15284
|
emits: ["delete", "next", "update"],
|
|
15279
15285
|
setup(t, { emit: e }) {
|
|
15280
|
-
const i = t, o = e, s =
|
|
15286
|
+
const i = t, o = e, s = G(), r = Ke();
|
|
15281
15287
|
async function a(c) {
|
|
15282
15288
|
try {
|
|
15283
15289
|
await i.onSubmit(c);
|
|
@@ -15297,7 +15303,7 @@ const wM = { class: "p-md flex justify-end" }, V_ = /* @__PURE__ */ A({
|
|
|
15297
15303
|
return (c, f) => (_(), V("div", PM, [
|
|
15298
15304
|
i.isLoading ? (_(), V("div", AM, [
|
|
15299
15305
|
b(d(F1), { class: "size-4" }),
|
|
15300
|
-
T("p", TM,
|
|
15306
|
+
T("p", TM, k(d(s).t("wise_crm.shared.loading")), 1)
|
|
15301
15307
|
])) : i.notes.length === 0 ? (_(), I(h_, {
|
|
15302
15308
|
key: 1,
|
|
15303
15309
|
title: d(s).t("wise_crm.info_dialog.notes.empty_state.title"),
|
|
@@ -15335,7 +15341,7 @@ const kM = { class: "px-4xl py-3xl overflow-y-auto" }, M_ = /* @__PURE__ */ A({
|
|
|
15335
15341
|
},
|
|
15336
15342
|
emits: ["close"],
|
|
15337
15343
|
setup(t, { emit: e }) {
|
|
15338
|
-
const i = t, o = e, s =
|
|
15344
|
+
const i = t, o = e, s = G(), r = Ke(), a = jM();
|
|
15339
15345
|
async function l(m) {
|
|
15340
15346
|
try {
|
|
15341
15347
|
await a.execute({
|
|
@@ -15495,7 +15501,7 @@ function O_(t, e) {
|
|
|
15495
15501
|
};
|
|
15496
15502
|
return { schedule: aa.reduce((E, D) => {
|
|
15497
15503
|
const P = a[D];
|
|
15498
|
-
return E[D] = (O, U = !1,
|
|
15504
|
+
return E[D] = (O, U = !1, N = !1) => (i || y(), P.schedule(O, U, N)), E;
|
|
15499
15505
|
}, {}), cancel: (E) => {
|
|
15500
15506
|
for (let D = 0; D < aa.length; D++)
|
|
15501
15507
|
a[aa[D]].cancel(E);
|
|
@@ -17371,15 +17377,15 @@ function NB(t, { defaultTransition: e = {}, ...i } = {}, o, s) {
|
|
|
17371
17377
|
let [v, y, x = {}] = g;
|
|
17372
17378
|
x.at !== void 0 && (f = wh(f, x.at, c, m));
|
|
17373
17379
|
let C = 0;
|
|
17374
|
-
const E = (D, P, O, U = 0,
|
|
17380
|
+
const E = (D, P, O, U = 0, N = 0) => {
|
|
17375
17381
|
const j = UB(D), { delay: L = 0, times: K = w0(j), type: ee = "keyframes", repeat: de, repeatType: Q, repeatDelay: oe = 0, ...ye } = P;
|
|
17376
17382
|
let { ease: Ae = e.ease || "easeOut", duration: Le } = P;
|
|
17377
|
-
const xe = typeof L == "function" ? L(U,
|
|
17383
|
+
const xe = typeof L == "function" ? L(U, N) : L, F = j.length, ie = Jm(ee) ? ee : s?.[ee || "keyframes"];
|
|
17378
17384
|
if (F <= 2 && ie) {
|
|
17379
17385
|
let ae = 100;
|
|
17380
17386
|
if (F === 2 && MB(j)) {
|
|
17381
|
-
const
|
|
17382
|
-
ae = Math.abs(
|
|
17387
|
+
const W = j[1] - j[0];
|
|
17388
|
+
ae = Math.abs(W);
|
|
17383
17389
|
}
|
|
17384
17390
|
const he = { ...ye };
|
|
17385
17391
|
Le !== void 0 && (he.duration = /* @__PURE__ */ Mt(Le));
|
|
@@ -17395,10 +17401,10 @@ function NB(t, { defaultTransition: e = {}, ...i } = {}, o, s) {
|
|
|
17395
17401
|
const ae = [...j], he = [...K];
|
|
17396
17402
|
Ae = Array.isArray(Ae) ? [...Ae] : [Ae];
|
|
17397
17403
|
const B = [...Ae];
|
|
17398
|
-
for (let
|
|
17404
|
+
for (let W = 0; W < de; W++) {
|
|
17399
17405
|
j.push(...ae);
|
|
17400
17406
|
for (let Y = 0; Y < ae.length; Y++)
|
|
17401
|
-
K.push(he[Y] + (
|
|
17407
|
+
K.push(he[Y] + (W + 1)), Ae.push(Y === 0 ? "linear" : y0(B, Y - 1));
|
|
17402
17408
|
}
|
|
17403
17409
|
AB(K, de);
|
|
17404
17410
|
}
|
|
@@ -17412,9 +17418,9 @@ function NB(t, { defaultTransition: e = {}, ...i } = {}, o, s) {
|
|
|
17412
17418
|
const D = v0(v, y, o, u), P = D.length;
|
|
17413
17419
|
for (let O = 0; O < P; O++) {
|
|
17414
17420
|
y = y, x = x;
|
|
17415
|
-
const U = D[O],
|
|
17421
|
+
const U = D[O], N = xh(U, l);
|
|
17416
17422
|
for (const j in y)
|
|
17417
|
-
E(y[j], VB(x, j), Ch(j,
|
|
17423
|
+
E(y[j], VB(x, j), Ch(j, N), O, P);
|
|
17418
17424
|
}
|
|
17419
17425
|
}
|
|
17420
17426
|
c = f, f += C;
|
|
@@ -17425,8 +17431,8 @@ function NB(t, { defaultTransition: e = {}, ...i } = {}, o, s) {
|
|
|
17425
17431
|
y.sort(TB);
|
|
17426
17432
|
const x = [], C = [], E = [];
|
|
17427
17433
|
for (let P = 0; P < y.length; P++) {
|
|
17428
|
-
const { at: O, value: U, easing:
|
|
17429
|
-
x.push(U), C.push(/* @__PURE__ */ Ko(0, p, O)), E.push(
|
|
17434
|
+
const { at: O, value: U, easing: N } = y[P];
|
|
17435
|
+
x.push(U), C.push(/* @__PURE__ */ Ko(0, p, O)), E.push(N || "easeOut");
|
|
17430
17436
|
}
|
|
17431
17437
|
C[0] !== 0 && (C.unshift(0), x.unshift(x[0]), E.unshift(jB)), C[C.length - 1] !== 1 && (C.push(1), x.push(null)), a.has(g) || a.set(g, {
|
|
17432
17438
|
keyframes: {},
|
|
@@ -17756,8 +17762,8 @@ function dr(t = Te.visualDuration, e = Te.bounce) {
|
|
|
17756
17762
|
else {
|
|
17757
17763
|
const P = x * Math.sqrt(v * v - 1);
|
|
17758
17764
|
E = (O) => {
|
|
17759
|
-
const U = Math.exp(-v * x * O),
|
|
17760
|
-
return a - U * ((g + v * x * y) * Math.sinh(
|
|
17765
|
+
const U = Math.exp(-v * x * O), N = Math.min(P * O, 300);
|
|
17766
|
+
return a - U * ((g + v * x * y) * Math.sinh(N) + P * y * Math.cosh(N)) / P;
|
|
17761
17767
|
};
|
|
17762
17768
|
}
|
|
17763
17769
|
const D = {
|
|
@@ -17769,8 +17775,8 @@ function dr(t = Te.visualDuration, e = Te.bounce) {
|
|
|
17769
17775
|
else {
|
|
17770
17776
|
let U = P === 0 ? g : 0;
|
|
17771
17777
|
v < 1 && (U = P === 0 ? /* @__PURE__ */ Mt(g) : D0(E, P, O));
|
|
17772
|
-
const
|
|
17773
|
-
l.done =
|
|
17778
|
+
const N = Math.abs(U) <= o, j = Math.abs(a - O) <= s;
|
|
17779
|
+
l.done = N && j;
|
|
17774
17780
|
}
|
|
17775
17781
|
return l.value = l.done ? a : O, l;
|
|
17776
17782
|
},
|
|
@@ -17791,19 +17797,19 @@ function _c({ keyframes: t, velocity: e = 0, power: i = 0.8, timeConstant: o = 3
|
|
|
17791
17797
|
const f = t[0], p = {
|
|
17792
17798
|
done: !1,
|
|
17793
17799
|
value: f
|
|
17794
|
-
}, h = (
|
|
17800
|
+
}, h = (N) => l !== void 0 && N < l || u !== void 0 && N > u, g = (N) => l === void 0 ? u : u === void 0 || Math.abs(l - N) < Math.abs(u - N) ? l : u;
|
|
17795
17801
|
let v = i * e;
|
|
17796
17802
|
const y = f + v, x = a === void 0 ? y : a(y);
|
|
17797
17803
|
x !== y && (v = x - f);
|
|
17798
|
-
const C = (
|
|
17799
|
-
const j = C(
|
|
17804
|
+
const C = (N) => -v * Math.exp(-N / o), E = (N) => x + C(N), D = (N) => {
|
|
17805
|
+
const j = C(N), L = E(N);
|
|
17800
17806
|
p.done = Math.abs(j) <= m, p.value = p.done ? x : L;
|
|
17801
17807
|
};
|
|
17802
17808
|
let P, O;
|
|
17803
|
-
const U = (
|
|
17804
|
-
h(p.value) && (P =
|
|
17809
|
+
const U = (N) => {
|
|
17810
|
+
h(p.value) && (P = N, O = dr({
|
|
17805
17811
|
keyframes: [p.value, g(p.value)],
|
|
17806
|
-
velocity: D0(E,
|
|
17812
|
+
velocity: D0(E, N, p.value),
|
|
17807
17813
|
// TODO: This should be passing * 1000
|
|
17808
17814
|
damping: s,
|
|
17809
17815
|
stiffness: r,
|
|
@@ -17813,9 +17819,9 @@ function _c({ keyframes: t, velocity: e = 0, power: i = 0.8, timeConstant: o = 3
|
|
|
17813
17819
|
};
|
|
17814
17820
|
return U(0), {
|
|
17815
17821
|
calculatedDuration: null,
|
|
17816
|
-
next: (
|
|
17822
|
+
next: (N) => {
|
|
17817
17823
|
let j = !1;
|
|
17818
|
-
return !O && P === void 0 && (j = !0, D(
|
|
17824
|
+
return !O && P === void 0 && (j = !0, D(N), U(N)), P !== void 0 && N >= P ? O.next(N - P) : (!j && D(N), p);
|
|
17819
17825
|
}
|
|
17820
17826
|
};
|
|
17821
17827
|
}
|
|
@@ -17987,9 +17993,9 @@ class rf extends sf {
|
|
|
17987
17993
|
this.currentTime = Math.max(x, 0), this.state === "finished" && this.holdTime === null && (this.currentTime = s);
|
|
17988
17994
|
let E = this.currentTime, D = o;
|
|
17989
17995
|
if (f) {
|
|
17990
|
-
const
|
|
17991
|
-
let j = Math.floor(
|
|
17992
|
-
!L &&
|
|
17996
|
+
const N = Math.min(this.currentTime, s) / l;
|
|
17997
|
+
let j = Math.floor(N), L = N % 1;
|
|
17998
|
+
!L && N >= 1 && (L = 1), L === 1 && j--, j = Math.min(j, f + 1), !!(j % 2) && (p === "reverse" ? (L = 1 - L, h && (L -= h / l)) : p === "mirror" && (D = a)), E = Mn(0, 1, L) * l;
|
|
17993
17999
|
}
|
|
17994
18000
|
const P = C ? { done: !1, value: c[0] } : D.next(E);
|
|
17995
18001
|
r && (P.value = r(P.value));
|
|
@@ -20767,7 +20773,7 @@ const gw = /* @__PURE__ */ A({
|
|
|
20767
20773
|
onLeave: u
|
|
20768
20774
|
}), {
|
|
20769
20775
|
default: w(() => [
|
|
20770
|
-
|
|
20776
|
+
Z(c.$slots, "default")
|
|
20771
20777
|
]),
|
|
20772
20778
|
_: 3
|
|
20773
20779
|
}, 16));
|
|
@@ -21493,7 +21499,7 @@ var pz = class extends Kl {
|
|
|
21493
21499
|
const i = this.#e, o = this.options, s = this.#i, r = this.#o, a = this.#s, u = t !== i ? t.state : this.#n, { state: m } = t;
|
|
21494
21500
|
let c = { ...m }, f = !1, p;
|
|
21495
21501
|
if (e._optimisticResults) {
|
|
21496
|
-
const
|
|
21502
|
+
const N = this.hasListeners(), j = !N && Mg(t, e), L = N && Og(t, i, e, o);
|
|
21497
21503
|
(j || L) && (c = {
|
|
21498
21504
|
...c,
|
|
21499
21505
|
...fz(m.data, t.options)
|
|
@@ -21503,13 +21509,13 @@ var pz = class extends Kl {
|
|
|
21503
21509
|
p = c.data;
|
|
21504
21510
|
let y = !1;
|
|
21505
21511
|
if (e.placeholderData !== void 0 && p === void 0 && v === "pending") {
|
|
21506
|
-
let
|
|
21507
|
-
s?.isPlaceholderData && e.placeholderData === a?.placeholderData ? (
|
|
21512
|
+
let N;
|
|
21513
|
+
s?.isPlaceholderData && e.placeholderData === a?.placeholderData ? (N = s.data, y = !0) : N = typeof e.placeholderData == "function" ? e.placeholderData(
|
|
21508
21514
|
this.#f?.state.data,
|
|
21509
21515
|
this.#f
|
|
21510
|
-
) : e.placeholderData,
|
|
21516
|
+
) : e.placeholderData, N !== void 0 && (v = "success", p = Ug(
|
|
21511
21517
|
s?.data,
|
|
21512
|
-
|
|
21518
|
+
N,
|
|
21513
21519
|
e
|
|
21514
21520
|
), f = !0);
|
|
21515
21521
|
}
|
|
@@ -21519,8 +21525,8 @@ var pz = class extends Kl {
|
|
|
21519
21525
|
else
|
|
21520
21526
|
try {
|
|
21521
21527
|
this.#h = e.select, p = e.select(p), p = Ug(s?.data, p, e), this.#m = p, this.#a = null;
|
|
21522
|
-
} catch (
|
|
21523
|
-
this.#a =
|
|
21528
|
+
} catch (N) {
|
|
21529
|
+
this.#a = N;
|
|
21524
21530
|
}
|
|
21525
21531
|
this.#a && (h = this.#a, p = this.#m, g = Date.now(), v = "error");
|
|
21526
21532
|
const x = c.fetchStatus === "fetching", C = v === "pending", E = v === "error", D = C && x, P = p !== void 0, U = {
|
|
@@ -21552,15 +21558,15 @@ var pz = class extends Kl {
|
|
|
21552
21558
|
isEnabled: Kt(e.enabled, t) !== !1
|
|
21553
21559
|
};
|
|
21554
21560
|
if (this.options.experimental_prefetchInRender) {
|
|
21555
|
-
const
|
|
21561
|
+
const N = (K) => {
|
|
21556
21562
|
U.status === "error" ? K.reject(U.error) : U.data !== void 0 && K.resolve(U.data);
|
|
21557
21563
|
}, j = () => {
|
|
21558
21564
|
const K = this.#r = U.promise = Fg();
|
|
21559
|
-
|
|
21565
|
+
N(K);
|
|
21560
21566
|
}, L = this.#r;
|
|
21561
21567
|
switch (L.status) {
|
|
21562
21568
|
case "pending":
|
|
21563
|
-
t.queryHash === i.queryHash &&
|
|
21569
|
+
t.queryHash === i.queryHash && N(L);
|
|
21564
21570
|
break;
|
|
21565
21571
|
case "fulfilled":
|
|
21566
21572
|
(U.status === "error" || U.data !== L.value) && j();
|
|
@@ -22134,7 +22140,7 @@ function Vz(t, e) {
|
|
|
22134
22140
|
return _(), V("div", Nz, [
|
|
22135
22141
|
e[0] || (e[0] = T("div", { class: "bg-quaternary h-px w-full flex-1" }, null, -1)),
|
|
22136
22142
|
T("span", Uz, [
|
|
22137
|
-
|
|
22143
|
+
Z(t.$slots, "default")
|
|
22138
22144
|
]),
|
|
22139
22145
|
e[1] || (e[1] = T("div", { class: "bg-quaternary h-px w-full flex-1" }, null, -1)),
|
|
22140
22146
|
e[2] || (e[2] = T("div", null, null, -1))
|
|
@@ -22155,7 +22161,7 @@ const Wt = /* @__PURE__ */ Ui(kz, [["render", Vz]]), Fz = {
|
|
|
22155
22161
|
icon: "alertCircle",
|
|
22156
22162
|
class: "text-error-primary size-4"
|
|
22157
22163
|
}),
|
|
22158
|
-
T("p", Mz,
|
|
22164
|
+
T("p", Mz, k(i.value), 1)
|
|
22159
22165
|
])) : $("", !0);
|
|
22160
22166
|
}
|
|
22161
22167
|
}), Oz = { class: "pt-xl pb-md flex w-full justify-end" }, Go = /* @__PURE__ */ A({
|
|
@@ -22182,7 +22188,7 @@ const Wt = /* @__PURE__ */ Ui(kz, [["render", Vz]]), Fz = {
|
|
|
22182
22188
|
onClick: s
|
|
22183
22189
|
}, {
|
|
22184
22190
|
default: w(() => [
|
|
22185
|
-
|
|
22191
|
+
H(k(i.label), 1)
|
|
22186
22192
|
]),
|
|
22187
22193
|
_: 1
|
|
22188
22194
|
}, 8, ["is-loading", "type"])
|
|
@@ -22257,7 +22263,7 @@ const Wt = /* @__PURE__ */ Ui(kz, [["render", Vz]]), Fz = {
|
|
|
22257
22263
|
value: u
|
|
22258
22264
|
}, {
|
|
22259
22265
|
default: w(() => [
|
|
22260
|
-
|
|
22266
|
+
H(k(u), 1)
|
|
22261
22267
|
]),
|
|
22262
22268
|
_: 2
|
|
22263
22269
|
}, 1032, ["value"]))), 128))
|
|
@@ -22991,7 +22997,7 @@ var yq = /* @__PURE__ */ A({
|
|
|
22991
22997
|
"data-state": d(r) ? "open" : "closed",
|
|
22992
22998
|
"data-disabled": d(a) ? "" : void 0
|
|
22993
22999
|
}, {
|
|
22994
|
-
default: w(() => [
|
|
23000
|
+
default: w(() => [Z(u.$slots, "default", { open: d(r) })]),
|
|
22995
23001
|
_: 3
|
|
22996
23002
|
}, 8, [
|
|
22997
23003
|
"as",
|
|
@@ -23061,7 +23067,7 @@ var yq = /* @__PURE__ */ A({
|
|
|
23061
23067
|
"--reka-collapsible-content-width": `${u.value}px`
|
|
23062
23068
|
}
|
|
23063
23069
|
}), {
|
|
23064
|
-
default: w(() => [!d(s).unmountOnHide.value || y ?
|
|
23070
|
+
default: w(() => [!d(s).unmountOnHide.value || y ? Z(g.$slots, "default", { key: 0 }) : $("v-if", !0)]),
|
|
23065
23071
|
_: 2
|
|
23066
23072
|
}, 1040, [
|
|
23067
23073
|
"id",
|
|
@@ -23103,7 +23109,7 @@ var yq = /* @__PURE__ */ A({
|
|
|
23103
23109
|
disabled: d(i).disabled?.value,
|
|
23104
23110
|
onClick: d(i).onOpenToggle
|
|
23105
23111
|
}, {
|
|
23106
|
-
default: w(() => [
|
|
23112
|
+
default: w(() => [Z(o.$slots, "default")]),
|
|
23107
23113
|
_: 3
|
|
23108
23114
|
}, 8, [
|
|
23109
23115
|
"type",
|
|
@@ -23223,7 +23229,7 @@ var Tq = /* @__PURE__ */ A({
|
|
|
23223
23229
|
"as-child": h.asChild,
|
|
23224
23230
|
as: h.as
|
|
23225
23231
|
}, {
|
|
23226
|
-
default: w(() => [
|
|
23232
|
+
default: w(() => [Z(h.$slots, "default", { modelValue: d(u) })]),
|
|
23227
23233
|
_: 3
|
|
23228
23234
|
}, 8, ["as-child", "as"]));
|
|
23229
23235
|
}
|
|
@@ -23299,7 +23305,7 @@ var Nq = /* @__PURE__ */ A({
|
|
|
23299
23305
|
"end"
|
|
23300
23306
|
])
|
|
23301
23307
|
}, {
|
|
23302
|
-
default: w(() => [
|
|
23308
|
+
default: w(() => [Z(f.$slots, "default", { open: s.value })]),
|
|
23303
23309
|
_: 3
|
|
23304
23310
|
}, 8, [
|
|
23305
23311
|
"data-orientation",
|
|
@@ -23345,7 +23351,7 @@ var Nq = /* @__PURE__ */ A({
|
|
|
23345
23351
|
},
|
|
23346
23352
|
onContentFound: r[0] || (r[0] = (a) => d(i).changeModelValue(d(o).value.value))
|
|
23347
23353
|
}, {
|
|
23348
|
-
default: w(() => [
|
|
23354
|
+
default: w(() => [Z(s.$slots, "default")]),
|
|
23349
23355
|
_: 3
|
|
23350
23356
|
}, 8, [
|
|
23351
23357
|
"as-child",
|
|
@@ -23379,7 +23385,7 @@ var Nq = /* @__PURE__ */ A({
|
|
|
23379
23385
|
"data-state": d(o).dataState.value,
|
|
23380
23386
|
"data-disabled": d(o).dataDisabled.value
|
|
23381
23387
|
}, {
|
|
23382
|
-
default: w(() => [
|
|
23388
|
+
default: w(() => [Z(s.$slots, "default")]),
|
|
23383
23389
|
_: 3
|
|
23384
23390
|
}, 8, [
|
|
23385
23391
|
"as",
|
|
@@ -23422,7 +23428,7 @@ var Nq = /* @__PURE__ */ A({
|
|
|
23422
23428
|
disabled: d(o).disabled.value,
|
|
23423
23429
|
onClick: s
|
|
23424
23430
|
}, {
|
|
23425
|
-
default: w(() => [
|
|
23431
|
+
default: w(() => [Z(r.$slots, "default")]),
|
|
23426
23432
|
_: 3
|
|
23427
23433
|
}, 8, [
|
|
23428
23434
|
"id",
|
|
@@ -23547,7 +23553,7 @@ var qq = /* @__PURE__ */ A({
|
|
|
23547
23553
|
wordWrap: "normal"
|
|
23548
23554
|
}
|
|
23549
23555
|
}, {
|
|
23550
|
-
default: w(() => [
|
|
23556
|
+
default: w(() => [Z(e.$slots, "default")]),
|
|
23551
23557
|
_: 3
|
|
23552
23558
|
}, 8, [
|
|
23553
23559
|
"as",
|
|
@@ -23744,28 +23750,28 @@ var Zq = /* @__PURE__ */ A({
|
|
|
23744
23750
|
});
|
|
23745
23751
|
function O(B) {
|
|
23746
23752
|
if (E.value = !0, o.multiple) {
|
|
23747
|
-
const
|
|
23748
|
-
o.selectionBehavior === "toggle" ? (Y === -1 ?
|
|
23753
|
+
const W = Array.isArray(P.value) ? [...P.value] : [], Y = W.findIndex((Ue) => Zs(Ue, B, o.by));
|
|
23754
|
+
o.selectionBehavior === "toggle" ? (Y === -1 ? W.push(B) : W.splice(Y, 1), P.value = W) : (P.value = [B], C.value = B);
|
|
23749
23755
|
} else o.selectionBehavior === "toggle" && Zs(P.value, B, o.by) ? P.value = void 0 : P.value = B;
|
|
23750
23756
|
setTimeout(() => {
|
|
23751
23757
|
E.value = !1;
|
|
23752
23758
|
}, 1);
|
|
23753
23759
|
}
|
|
23754
|
-
const U = M(null),
|
|
23760
|
+
const U = M(null), N = M(null), j = M(!1), L = M(!1), K = Vu(), ee = Vu(), de = Vu();
|
|
23755
23761
|
function Q() {
|
|
23756
23762
|
return f().map((B) => B.ref).filter((B) => B.dataset.disabled !== "");
|
|
23757
23763
|
}
|
|
23758
|
-
function oe(B,
|
|
23764
|
+
function oe(B, W = !0) {
|
|
23759
23765
|
if (!B) return;
|
|
23760
|
-
U.value = B, D.value && U.value.focus(),
|
|
23766
|
+
U.value = B, D.value && U.value.focus(), W && U.value.scrollIntoView({ block: "nearest" });
|
|
23761
23767
|
const Y = f().find((Ue) => Ue.ref === B);
|
|
23762
23768
|
s("highlight", Y);
|
|
23763
23769
|
}
|
|
23764
23770
|
function ye(B) {
|
|
23765
23771
|
if (j.value) de.trigger(B);
|
|
23766
23772
|
else {
|
|
23767
|
-
const
|
|
23768
|
-
|
|
23773
|
+
const W = f().find((Y) => Zs(Y.value, B, o.by));
|
|
23774
|
+
W && (U.value = W.ref, oe(W.ref));
|
|
23769
23775
|
}
|
|
23770
23776
|
}
|
|
23771
23777
|
function Ae(B) {
|
|
@@ -23775,11 +23781,11 @@ var Zq = /* @__PURE__ */ A({
|
|
|
23775
23781
|
if (D.value) {
|
|
23776
23782
|
if (E.value = !0, j.value) ee.trigger(B);
|
|
23777
23783
|
else {
|
|
23778
|
-
const
|
|
23779
|
-
if (
|
|
23784
|
+
const W = B.altKey || B.ctrlKey || B.metaKey;
|
|
23785
|
+
if (W && B.key === "a" && r.value) {
|
|
23780
23786
|
const Y = f(), Ue = Y.map((En) => En.value);
|
|
23781
23787
|
P.value = [...Ue], B.preventDefault(), oe(Y[Y.length - 1].ref);
|
|
23782
|
-
} else if (!
|
|
23788
|
+
} else if (!W) {
|
|
23783
23789
|
const Y = p(B.key, f());
|
|
23784
23790
|
Y && oe(Y);
|
|
23785
23791
|
}
|
|
@@ -23804,44 +23810,44 @@ var Zq = /* @__PURE__ */ A({
|
|
|
23804
23810
|
});
|
|
23805
23811
|
}
|
|
23806
23812
|
function se(B) {
|
|
23807
|
-
const
|
|
23808
|
-
|
|
23813
|
+
const W = U.value;
|
|
23814
|
+
W?.isConnected && (N.value = W), U.value = null, s("leave", B);
|
|
23809
23815
|
}
|
|
23810
23816
|
function te(B) {
|
|
23811
|
-
const
|
|
23817
|
+
const W = new CustomEvent("listbox.entryFocus", {
|
|
23812
23818
|
bubbles: !1,
|
|
23813
23819
|
cancelable: !0
|
|
23814
23820
|
});
|
|
23815
|
-
if (B.currentTarget?.dispatchEvent(
|
|
23816
|
-
if (
|
|
23821
|
+
if (B.currentTarget?.dispatchEvent(W), s("entryFocus", W), !W.defaultPrevented)
|
|
23822
|
+
if (N.value) oe(N.value);
|
|
23817
23823
|
else {
|
|
23818
23824
|
const Y = Q()?.[0];
|
|
23819
23825
|
oe(Y);
|
|
23820
23826
|
}
|
|
23821
23827
|
}
|
|
23822
23828
|
function re(B) {
|
|
23823
|
-
const
|
|
23824
|
-
if (!
|
|
23829
|
+
const W = zq(B, l.value, y.value);
|
|
23830
|
+
if (!W) return;
|
|
23825
23831
|
let Y = Q();
|
|
23826
23832
|
if (U.value) {
|
|
23827
|
-
if (
|
|
23828
|
-
else if (
|
|
23829
|
-
|
|
23833
|
+
if (W === "last") Y.reverse();
|
|
23834
|
+
else if (W === "prev" || W === "next") {
|
|
23835
|
+
W === "prev" && Y.reverse();
|
|
23830
23836
|
const Ue = Y.indexOf(U.value);
|
|
23831
23837
|
Y = Y.slice(Ue + 1);
|
|
23832
23838
|
}
|
|
23833
23839
|
ae(B, Y[0]);
|
|
23834
23840
|
}
|
|
23835
23841
|
if (Y.length) {
|
|
23836
|
-
const Ue = !U.value &&
|
|
23842
|
+
const Ue = !U.value && W === "prev" ? Y.length - 1 : 0;
|
|
23837
23843
|
oe(Y[Ue]);
|
|
23838
23844
|
}
|
|
23839
23845
|
if (j.value) return ee.trigger(B);
|
|
23840
23846
|
}
|
|
23841
|
-
function ae(B,
|
|
23847
|
+
function ae(B, W) {
|
|
23842
23848
|
if (!(j.value || o.selectionBehavior !== "replace" || !r.value || !Array.isArray(P.value) || (B.altKey || B.ctrlKey || B.metaKey) && !B.shiftKey) && B.shiftKey) {
|
|
23843
23849
|
const Ue = f().filter((wo) => wo.ref.dataset.disabled !== "");
|
|
23844
|
-
let En = Ue.find((wo) => wo.ref ===
|
|
23850
|
+
let En = Ue.find((wo) => wo.ref === W)?.value;
|
|
23845
23851
|
if (B.key === v.END ? En = Ue[Ue.length - 1].value : B.key === v.HOME && (En = Ue[0].value), !En || !C.value) return;
|
|
23846
23852
|
const ou = Rz(Ue.map((wo) => wo.value), C.value, En);
|
|
23847
23853
|
P.value = ou;
|
|
@@ -23850,8 +23856,8 @@ var Zq = /* @__PURE__ */ A({
|
|
|
23850
23856
|
async function he(B) {
|
|
23851
23857
|
if (await it(), j.value) K.trigger(B);
|
|
23852
23858
|
else {
|
|
23853
|
-
const
|
|
23854
|
-
Y ? oe(Y) :
|
|
23859
|
+
const W = Q(), Y = W.find((Ue) => Ue.dataset.state === "checked");
|
|
23860
|
+
Y ? oe(Y) : W.length && oe(W[0]);
|
|
23855
23861
|
}
|
|
23856
23862
|
}
|
|
23857
23863
|
return X(P, () => {
|
|
@@ -23893,7 +23899,7 @@ var Zq = /* @__PURE__ */ A({
|
|
|
23893
23899
|
onCompositionStart: xe,
|
|
23894
23900
|
onCompositionEnd: F,
|
|
23895
23901
|
highlightFirstItem: ie
|
|
23896
|
-
}), (B,
|
|
23902
|
+
}), (B, W) => (_(), I(d(nt), {
|
|
23897
23903
|
ref_key: "primitiveElement",
|
|
23898
23904
|
ref: h,
|
|
23899
23905
|
as: B.as,
|
|
@@ -23901,12 +23907,12 @@ var Zq = /* @__PURE__ */ A({
|
|
|
23901
23907
|
dir: d(y),
|
|
23902
23908
|
"data-disabled": d(u) ? "" : void 0,
|
|
23903
23909
|
onPointerleave: se,
|
|
23904
|
-
onFocusout:
|
|
23910
|
+
onFocusout: W[0] || (W[0] = async (Y) => {
|
|
23905
23911
|
const Ue = Y.relatedTarget || Y.target;
|
|
23906
23912
|
await it(), U.value && d(g) && !d(g).contains(Ue) && se(Y);
|
|
23907
23913
|
})
|
|
23908
23914
|
}, {
|
|
23909
|
-
default: w(() => [
|
|
23915
|
+
default: w(() => [Z(B.$slots, "default", { modelValue: d(P) }), d(x) && B.name ? (_(), I(d(Pw), {
|
|
23910
23916
|
key: 0,
|
|
23911
23917
|
name: B.name,
|
|
23912
23918
|
value: d(P),
|
|
@@ -23968,7 +23974,7 @@ var Zq = /* @__PURE__ */ A({
|
|
|
23968
23974
|
d(i).onKeydownTypeAhead
|
|
23969
23975
|
]
|
|
23970
23976
|
}, {
|
|
23971
|
-
default: w(() => [
|
|
23977
|
+
default: w(() => [Z(s.$slots, "default")]),
|
|
23972
23978
|
_: 3
|
|
23973
23979
|
}, 8, [
|
|
23974
23980
|
"as",
|
|
@@ -24042,7 +24048,7 @@ var Zq = /* @__PURE__ */ A({
|
|
|
24042
24048
|
onCompositionstart: d(r).onCompositionStart,
|
|
24043
24049
|
onCompositionend: d(r).onCompositionEnd
|
|
24044
24050
|
}, {
|
|
24045
|
-
default: w(() => [
|
|
24051
|
+
default: w(() => [Z(c.$slots, "default", { modelValue: d(s) })]),
|
|
24046
24052
|
_: 3
|
|
24047
24053
|
}, 8, [
|
|
24048
24054
|
"as",
|
|
@@ -24058,7 +24064,7 @@ var Zq = /* @__PURE__ */ A({
|
|
|
24058
24064
|
]));
|
|
24059
24065
|
}
|
|
24060
24066
|
}), jw = Qq;
|
|
24061
|
-
const Jq = "listbox.select", [
|
|
24067
|
+
const Jq = "listbox.select", [hG, Xq] = Vi("ListboxItem");
|
|
24062
24068
|
var e2 = /* @__PURE__ */ A({
|
|
24063
24069
|
__name: "ListboxItem",
|
|
24064
24070
|
props: {
|
|
@@ -24111,7 +24117,7 @@ var e2 = /* @__PURE__ */ A({
|
|
|
24111
24117
|
d(u).highlightedElement.value !== d(l) && (d(u).highlightOnHover.value ? d(u).changeHighlight(d(l), !1) : d(u).focusable.value || d(u).changeHighlight(d(l), !1));
|
|
24112
24118
|
})
|
|
24113
24119
|
}), {
|
|
24114
|
-
default: w(() => [
|
|
24120
|
+
default: w(() => [Z(g.$slots, "default")]),
|
|
24115
24121
|
_: 3
|
|
24116
24122
|
}, 16, [
|
|
24117
24123
|
"id",
|
|
@@ -24218,18 +24224,18 @@ var n2 = /* @__PURE__ */ A({
|
|
|
24218
24224
|
passive: !0,
|
|
24219
24225
|
deep: !0
|
|
24220
24226
|
}), { forwardRef: g, currentElement: v } = bt(), { focused: y } = lq(v), x = Sw(v), { getItems: C, CollectionSlot: E } = Qr({ isProvider: !0 }), D = M(), P = M(!1), O = S(() => Array.isArray(h.value) ? [...h.value] : []);
|
|
24221
|
-
function U(
|
|
24222
|
-
if (
|
|
24227
|
+
function U(N) {
|
|
24228
|
+
if (N !== -1) {
|
|
24223
24229
|
const j = C().filter((L) => L.ref.dataset.disabled !== "");
|
|
24224
|
-
h.value = h.value.filter((L, K) => K !==
|
|
24230
|
+
h.value = h.value.filter((L, K) => K !== N), o("removeTag", j[N].value);
|
|
24225
24231
|
}
|
|
24226
24232
|
}
|
|
24227
24233
|
return t2({
|
|
24228
24234
|
modelValue: h,
|
|
24229
|
-
onAddValue: (
|
|
24235
|
+
onAddValue: (N) => {
|
|
24230
24236
|
const j = [...O.value], L = j.length > 0 && typeof j[0] == "object", K = j.length > 0 && typeof i.defaultValue[0] == "object";
|
|
24231
24237
|
if ((L || K) && typeof i.convertValue != "function") throw new Error("You must provide a `convertValue` function when using objects as values.");
|
|
24232
|
-
const ee = i.convertValue ? i.convertValue(
|
|
24238
|
+
const ee = i.convertValue ? i.convertValue(N) : N;
|
|
24233
24239
|
if (j.length >= l.value && l.value)
|
|
24234
24240
|
return o("invalid", ee), !1;
|
|
24235
24241
|
if (i.duplicate)
|
|
@@ -24240,43 +24246,43 @@ var n2 = /* @__PURE__ */ A({
|
|
|
24240
24246
|
return o("invalid", ee), !1;
|
|
24241
24247
|
},
|
|
24242
24248
|
onRemoveValue: U,
|
|
24243
|
-
onInputKeydown: (
|
|
24244
|
-
const j =
|
|
24249
|
+
onInputKeydown: (N) => {
|
|
24250
|
+
const j = N.target, L = C().map((ee) => ee.ref).filter((ee) => ee.dataset.disabled !== "");
|
|
24245
24251
|
if (!L.length) return;
|
|
24246
24252
|
const K = L.at(-1);
|
|
24247
|
-
switch (
|
|
24253
|
+
switch (N.key) {
|
|
24248
24254
|
case "Delete":
|
|
24249
24255
|
case "Backspace": {
|
|
24250
24256
|
if (j.selectionStart !== 0 || j.selectionEnd !== 0) break;
|
|
24251
24257
|
if (D.value) {
|
|
24252
24258
|
const ee = L.findIndex((de) => de === D.value);
|
|
24253
|
-
U(ee), D.value = D.value === K ? L.at(ee - 1) : L.at(ee + 1),
|
|
24254
|
-
} else
|
|
24259
|
+
U(ee), D.value = D.value === K ? L.at(ee - 1) : L.at(ee + 1), N.preventDefault();
|
|
24260
|
+
} else N.key === "Backspace" && (D.value = K, N.preventDefault());
|
|
24255
24261
|
break;
|
|
24256
24262
|
}
|
|
24257
24263
|
case "Home":
|
|
24258
24264
|
case "End":
|
|
24259
24265
|
case "ArrowRight":
|
|
24260
24266
|
case "ArrowLeft": {
|
|
24261
|
-
const ee =
|
|
24267
|
+
const ee = N.key === "ArrowRight" && p.value === "ltr" || N.key === "ArrowLeft" && p.value === "rtl", de = !ee;
|
|
24262
24268
|
if (j.selectionStart !== 0 || j.selectionEnd !== 0) break;
|
|
24263
24269
|
if (de && !D.value)
|
|
24264
|
-
D.value = K,
|
|
24270
|
+
D.value = K, N.preventDefault();
|
|
24265
24271
|
else if (ee && K && D.value === K)
|
|
24266
|
-
D.value = void 0,
|
|
24272
|
+
D.value = void 0, N.preventDefault();
|
|
24267
24273
|
else if (D.value) {
|
|
24268
|
-
const Q = _w(
|
|
24274
|
+
const Q = _w(N, D.value, void 0, {
|
|
24269
24275
|
itemsArray: L,
|
|
24270
24276
|
loop: !1,
|
|
24271
24277
|
dir: p.value
|
|
24272
24278
|
});
|
|
24273
|
-
Q && (D.value = Q),
|
|
24279
|
+
Q && (D.value = Q), N.preventDefault();
|
|
24274
24280
|
}
|
|
24275
24281
|
break;
|
|
24276
24282
|
}
|
|
24277
24283
|
case "ArrowUp":
|
|
24278
24284
|
case "ArrowDown": {
|
|
24279
|
-
D.value &&
|
|
24285
|
+
D.value && N.preventDefault();
|
|
24280
24286
|
break;
|
|
24281
24287
|
}
|
|
24282
24288
|
default:
|
|
@@ -24294,21 +24300,21 @@ var n2 = /* @__PURE__ */ A({
|
|
|
24294
24300
|
max: l,
|
|
24295
24301
|
id: u,
|
|
24296
24302
|
displayValue: i.displayValue
|
|
24297
|
-
}), (
|
|
24303
|
+
}), (N, j) => (_(), I(d(E), null, {
|
|
24298
24304
|
default: w(() => [b(d(nt), {
|
|
24299
24305
|
ref: d(g),
|
|
24300
24306
|
dir: d(p),
|
|
24301
|
-
as:
|
|
24302
|
-
"as-child":
|
|
24307
|
+
as: N.as,
|
|
24308
|
+
"as-child": N.asChild,
|
|
24303
24309
|
"data-invalid": P.value ? "" : void 0,
|
|
24304
24310
|
"data-disabled": d(r) ? "" : void 0,
|
|
24305
24311
|
"data-focused": d(y) ? "" : void 0
|
|
24306
24312
|
}, {
|
|
24307
|
-
default: w(() => [
|
|
24313
|
+
default: w(() => [Z(N.$slots, "default", { modelValue: d(h) }), d(x) && N.name ? (_(), I(d(Pw), {
|
|
24308
24314
|
key: 0,
|
|
24309
|
-
name:
|
|
24315
|
+
name: N.name,
|
|
24310
24316
|
value: d(h),
|
|
24311
|
-
required:
|
|
24317
|
+
required: N.required,
|
|
24312
24318
|
disabled: d(r)
|
|
24313
24319
|
}, null, 8, [
|
|
24314
24320
|
"name",
|
|
@@ -24353,7 +24359,7 @@ var n2 = /* @__PURE__ */ A({
|
|
|
24353
24359
|
"data-disabled": d(i).disabled.value ? "" : void 0,
|
|
24354
24360
|
onClick: o
|
|
24355
24361
|
}), {
|
|
24356
|
-
default: w(() => [
|
|
24362
|
+
default: w(() => [Z(s.$slots, "default")]),
|
|
24357
24363
|
_: 3
|
|
24358
24364
|
}, 16, ["type", "data-disabled"]));
|
|
24359
24365
|
}
|
|
@@ -24456,7 +24462,7 @@ var n2 = /* @__PURE__ */ A({
|
|
|
24456
24462
|
onCompositionend: m,
|
|
24457
24463
|
onPaste: p
|
|
24458
24464
|
}, {
|
|
24459
|
-
default: w(() => [
|
|
24465
|
+
default: w(() => [Z(h.$slots, "default")]),
|
|
24460
24466
|
_: 3
|
|
24461
24467
|
}, 8, [
|
|
24462
24468
|
"id",
|
|
@@ -24509,7 +24515,7 @@ var l2 = /* @__PURE__ */ A({
|
|
|
24509
24515
|
"data-disabled": u.value ? "" : void 0,
|
|
24510
24516
|
"data-state": l.value ? "active" : "inactive"
|
|
24511
24517
|
}, {
|
|
24512
|
-
default: w(() => [
|
|
24518
|
+
default: w(() => [Z(c.$slots, "default")]),
|
|
24513
24519
|
_: 3
|
|
24514
24520
|
}, 8, [
|
|
24515
24521
|
"as",
|
|
@@ -24552,7 +24558,7 @@ var l2 = /* @__PURE__ */ A({
|
|
|
24552
24558
|
type: a.as === "button" ? "button" : void 0,
|
|
24553
24559
|
onClick: r
|
|
24554
24560
|
}), {
|
|
24555
|
-
default: w(() => [
|
|
24561
|
+
default: w(() => [Z(a.$slots, "default")]),
|
|
24556
24562
|
_: 3
|
|
24557
24563
|
}, 16, [
|
|
24558
24564
|
"aria-labelledby",
|
|
@@ -24578,7 +24584,7 @@ var l2 = /* @__PURE__ */ A({
|
|
|
24578
24584
|
setup(t) {
|
|
24579
24585
|
const e = t, i = Nw();
|
|
24580
24586
|
return bt(), i.textId ||= Wl(void 0, "reka-tags-input-item-text"), (o, s) => (_(), I(d(nt), R(e, { id: d(i).textId }), {
|
|
24581
|
-
default: w(() => [
|
|
24587
|
+
default: w(() => [Z(o.$slots, "default", {}, () => [H(k(d(i).displayValue.value), 1)])]),
|
|
24582
24588
|
_: 3
|
|
24583
24589
|
}, 16, ["id"]));
|
|
24584
24590
|
}
|
|
@@ -24598,7 +24604,7 @@ const g2 = ["aria-describedby"], v2 = /* @__PURE__ */ A({
|
|
|
24598
24604
|
return h2({
|
|
24599
24605
|
id: e
|
|
24600
24606
|
}), (i, o) => (_(), V("fieldset", { "aria-describedby": d(e) }, [
|
|
24601
|
-
|
|
24607
|
+
Z(i.$slots, "default")
|
|
24602
24608
|
], 8, g2));
|
|
24603
24609
|
}
|
|
24604
24610
|
}), b2 = /* @__PURE__ */ A({
|
|
@@ -24612,7 +24618,7 @@ const g2 = ["aria-describedby"], v2 = /* @__PURE__ */ A({
|
|
|
24612
24618
|
id: d(i).id
|
|
24613
24619
|
}, {
|
|
24614
24620
|
default: w(() => [
|
|
24615
|
-
|
|
24621
|
+
Z(o.$slots, "default")
|
|
24616
24622
|
]),
|
|
24617
24623
|
_: 3
|
|
24618
24624
|
}, 8, ["id"]));
|
|
@@ -24639,17 +24645,17 @@ const g2 = ["aria-describedby"], v2 = /* @__PURE__ */ A({
|
|
|
24639
24645
|
class: "text-primary text-sm font-medium"
|
|
24640
24646
|
}, {
|
|
24641
24647
|
default: w(() => [
|
|
24642
|
-
|
|
24648
|
+
H(k(e.title), 1)
|
|
24643
24649
|
]),
|
|
24644
24650
|
_: 1
|
|
24645
24651
|
})
|
|
24646
24652
|
]),
|
|
24647
24653
|
_: 1
|
|
24648
24654
|
})),
|
|
24649
|
-
e.description !== null ? (_(), V("p", _2,
|
|
24655
|
+
e.description !== null ? (_(), V("p", _2, k(e.description), 1)) : $("", !0)
|
|
24650
24656
|
]),
|
|
24651
24657
|
T("div", w2, [
|
|
24652
|
-
|
|
24658
|
+
Z(i.$slots, "default")
|
|
24653
24659
|
])
|
|
24654
24660
|
]),
|
|
24655
24661
|
_: 3
|
|
@@ -24778,7 +24784,7 @@ const C2 = { class: "col-span-2 flex w-full justify-center" }, E2 = /* @__PURE__
|
|
|
24778
24784
|
},
|
|
24779
24785
|
emits: ["close", "useExisting"],
|
|
24780
24786
|
setup(t, { emit: e }) {
|
|
24781
|
-
const i = t, o = e, s =
|
|
24787
|
+
const i = t, o = e, s = G(), r = st({
|
|
24782
24788
|
initialState: {
|
|
24783
24789
|
childUuid: null,
|
|
24784
24790
|
parentUuid: null,
|
|
@@ -24837,7 +24843,7 @@ const C2 = { class: "col-span-2 flex w-full justify-center" }, E2 = /* @__PURE__
|
|
|
24837
24843
|
}), null, 16, ["label", "placeholder"]),
|
|
24838
24844
|
b(Wt, null, {
|
|
24839
24845
|
default: w(() => [
|
|
24840
|
-
|
|
24846
|
+
H(k(d(s).t("wise_crm.contact.create_dialog.form.seperator_label")), 1)
|
|
24841
24847
|
]),
|
|
24842
24848
|
_: 1
|
|
24843
24849
|
}),
|
|
@@ -24847,7 +24853,7 @@ const C2 = { class: "col-span-2 flex w-full justify-center" }, E2 = /* @__PURE__
|
|
|
24847
24853
|
}), null, 16, ["label", "placeholder"]),
|
|
24848
24854
|
b(Wt, null, {
|
|
24849
24855
|
default: w(() => [
|
|
24850
|
-
|
|
24856
|
+
H(k(d(s).t("wise_crm.contact.create_dialog.form.seperator_label")), 1)
|
|
24851
24857
|
]),
|
|
24852
24858
|
_: 1
|
|
24853
24859
|
}),
|
|
@@ -24871,7 +24877,7 @@ const C2 = { class: "col-span-2 flex w-full justify-center" }, E2 = /* @__PURE__
|
|
|
24871
24877
|
onClick: h
|
|
24872
24878
|
}, {
|
|
24873
24879
|
default: w(() => [
|
|
24874
|
-
|
|
24880
|
+
H(k(d(s).t("wise_crm.info_dialog.add_business_child_dialog.create_a_existing_one")), 1)
|
|
24875
24881
|
]),
|
|
24876
24882
|
_: 1
|
|
24877
24883
|
})
|
|
@@ -24909,7 +24915,7 @@ const S2 = /* @__PURE__ */ A({
|
|
|
24909
24915
|
},
|
|
24910
24916
|
emits: ["createNew"],
|
|
24911
24917
|
setup(t, { emit: e }) {
|
|
24912
|
-
const i = t, o = e, s =
|
|
24918
|
+
const i = t, o = e, s = G(), r = bn({
|
|
24913
24919
|
isRouteQueryEnabled: !1
|
|
24914
24920
|
}), a = bf(r.paginationOptions), l = st({
|
|
24915
24921
|
initialState: {
|
|
@@ -24948,7 +24954,7 @@ const S2 = /* @__PURE__ */ A({
|
|
|
24948
24954
|
}), null, 16, ["items", "display-fn", "is-loading", "label"]),
|
|
24949
24955
|
b(Wt, null, {
|
|
24950
24956
|
default: w(() => [
|
|
24951
|
-
|
|
24957
|
+
H(k(d(s).t("wise_crm.shared.or")), 1)
|
|
24952
24958
|
]),
|
|
24953
24959
|
_: 1
|
|
24954
24960
|
}),
|
|
@@ -24958,7 +24964,7 @@ const S2 = /* @__PURE__ */ A({
|
|
|
24958
24964
|
onClick: f
|
|
24959
24965
|
}, {
|
|
24960
24966
|
default: w(() => [
|
|
24961
|
-
|
|
24967
|
+
H(k(d(s).t("wise_crm.info_dialog.add_business_child_dialog.create_a_new_one")), 1)
|
|
24962
24968
|
]),
|
|
24963
24969
|
_: 1
|
|
24964
24970
|
}),
|
|
@@ -24985,13 +24991,13 @@ const S2 = /* @__PURE__ */ A({
|
|
|
24985
24991
|
return (i, o) => (_(), V("header", I2, [
|
|
24986
24992
|
b(d(wr), null, {
|
|
24987
24993
|
default: w(() => [
|
|
24988
|
-
T("h1", D2,
|
|
24994
|
+
T("h1", D2, k(e.title), 1)
|
|
24989
24995
|
]),
|
|
24990
24996
|
_: 1
|
|
24991
24997
|
}),
|
|
24992
24998
|
b(d(_r), null, {
|
|
24993
24999
|
default: w(() => [
|
|
24994
|
-
T("p", P2,
|
|
25000
|
+
T("p", P2, k(e.description), 1)
|
|
24995
25001
|
]),
|
|
24996
25002
|
_: 1
|
|
24997
25003
|
})
|
|
@@ -25016,7 +25022,7 @@ const S2 = /* @__PURE__ */ A({
|
|
|
25016
25022
|
onClose: o
|
|
25017
25023
|
}, {
|
|
25018
25024
|
default: w(() => [
|
|
25019
|
-
|
|
25025
|
+
Z(s.$slots, "default")
|
|
25020
25026
|
]),
|
|
25021
25027
|
_: 3
|
|
25022
25028
|
}));
|
|
@@ -25072,7 +25078,7 @@ const S2 = /* @__PURE__ */ A({
|
|
|
25072
25078
|
description: i.description
|
|
25073
25079
|
}, null, 8, ["title", "description"]),
|
|
25074
25080
|
T("div", j2, [
|
|
25075
|
-
|
|
25081
|
+
Z(r.$slots, "default")
|
|
25076
25082
|
])
|
|
25077
25083
|
]),
|
|
25078
25084
|
_: 3
|
|
@@ -25094,7 +25100,7 @@ const S2 = /* @__PURE__ */ A({
|
|
|
25094
25100
|
},
|
|
25095
25101
|
emits: ["close"],
|
|
25096
25102
|
setup(t, { emit: e }) {
|
|
25097
|
-
const i = t, o = e, s =
|
|
25103
|
+
const i = t, o = e, s = G(), r = Ke(), a = M(!1), l = M(null), u = mf(), m = jz();
|
|
25098
25104
|
function c() {
|
|
25099
25105
|
o("close");
|
|
25100
25106
|
}
|
|
@@ -25488,7 +25494,7 @@ const yf = /* @__PURE__ */ A({
|
|
|
25488
25494
|
form: {}
|
|
25489
25495
|
},
|
|
25490
25496
|
setup(t) {
|
|
25491
|
-
const e = t, i =
|
|
25497
|
+
const e = t, i = G(), o = e.form.register("firstName"), s = e.form.register("lastName"), r = e.form.register("email"), a = e.form.register("mobilePhone"), l = e.form.register("position"), u = e.form.register("phone");
|
|
25492
25498
|
return (m, c) => (_(), I(Tt, {
|
|
25493
25499
|
form: e.form,
|
|
25494
25500
|
class: "pb-xl flex h-full flex-col justify-between"
|
|
@@ -25516,7 +25522,7 @@ const yf = /* @__PURE__ */ A({
|
|
|
25516
25522
|
}), null, 16, ["label", "placeholder"]),
|
|
25517
25523
|
b(Wt, { class: "col-span-2" }, {
|
|
25518
25524
|
default: w(() => [
|
|
25519
|
-
|
|
25525
|
+
H(k(d(i).t("wise_crm.contact.create_dialog.form.seperator_label")), 1)
|
|
25520
25526
|
]),
|
|
25521
25527
|
_: 1
|
|
25522
25528
|
}),
|
|
@@ -25527,7 +25533,7 @@ const yf = /* @__PURE__ */ A({
|
|
|
25527
25533
|
}), null, 16, ["label", "placeholder"]),
|
|
25528
25534
|
b(Wt, { class: "col-span-2" }, {
|
|
25529
25535
|
default: w(() => [
|
|
25530
|
-
|
|
25536
|
+
H(k(d(i).t("wise_crm.contact.create_dialog.form.seperator_label")), 1)
|
|
25531
25537
|
]),
|
|
25532
25538
|
_: 1
|
|
25533
25539
|
}),
|
|
@@ -25540,7 +25546,7 @@ const yf = /* @__PURE__ */ A({
|
|
|
25540
25546
|
]),
|
|
25541
25547
|
_: 1
|
|
25542
25548
|
}),
|
|
25543
|
-
|
|
25549
|
+
Z(m.$slots, "actions")
|
|
25544
25550
|
]),
|
|
25545
25551
|
_: 3
|
|
25546
25552
|
}, 8, ["form"]));
|
|
@@ -25578,7 +25584,7 @@ const Uc = /* @__PURE__ */ A({
|
|
|
25578
25584
|
ref_key: "el",
|
|
25579
25585
|
ref: e
|
|
25580
25586
|
}, [
|
|
25581
|
-
|
|
25587
|
+
Z(o.$slots, "default")
|
|
25582
25588
|
], 512)
|
|
25583
25589
|
]),
|
|
25584
25590
|
_: 3
|
|
@@ -25616,7 +25622,7 @@ const Uc = /* @__PURE__ */ A({
|
|
|
25616
25622
|
}),
|
|
25617
25623
|
emits: /* @__PURE__ */ Ct(["createNew", "search"], ["update:modelValue"]),
|
|
25618
25624
|
setup(t, { emit: e }) {
|
|
25619
|
-
const i = t, o = e, s = xi(t, "modelValue"), r =
|
|
25625
|
+
const i = t, o = e, s = xi(t, "modelValue"), r = G(), a = D1(), l = M(!1), u = M(null), m = M(null), c = /* @__PURE__ */ Lr((x) => {
|
|
25620
25626
|
o("search", x);
|
|
25621
25627
|
}, 100);
|
|
25622
25628
|
async function f(x) {
|
|
@@ -25673,7 +25679,7 @@ const Uc = /* @__PURE__ */ A({
|
|
|
25673
25679
|
onKeydown: y
|
|
25674
25680
|
}, {
|
|
25675
25681
|
default: w(() => [
|
|
25676
|
-
|
|
25682
|
+
H(k(s.value?.label ?? i.placeholder), 1)
|
|
25677
25683
|
]),
|
|
25678
25684
|
_: 1
|
|
25679
25685
|
}, 8, ["class-config"])
|
|
@@ -25729,7 +25735,7 @@ const Uc = /* @__PURE__ */ A({
|
|
|
25729
25735
|
onSelect: C[1] || (C[1] = (D) => g(D.detail.value))
|
|
25730
25736
|
}, {
|
|
25731
25737
|
default: w(() => [
|
|
25732
|
-
d(a).option !== void 0 ?
|
|
25738
|
+
d(a).option !== void 0 ? Z(x.$slots, "option", {
|
|
25733
25739
|
key: 0,
|
|
25734
25740
|
option: E,
|
|
25735
25741
|
isHighlighted: h(E.uuid)
|
|
@@ -25760,7 +25766,7 @@ const Uc = /* @__PURE__ */ A({
|
|
|
25760
25766
|
onClick: v
|
|
25761
25767
|
}, {
|
|
25762
25768
|
default: w(() => [
|
|
25763
|
-
|
|
25769
|
+
H(k(d(r).t("wise_crm.contact.create_dialog.form.fields.create_new_label")), 1)
|
|
25764
25770
|
]),
|
|
25765
25771
|
_: 1
|
|
25766
25772
|
})
|
|
@@ -25792,7 +25798,7 @@ const Uc = /* @__PURE__ */ A({
|
|
|
25792
25798
|
}),
|
|
25793
25799
|
emits: /* @__PURE__ */ Ct(["createNew"], ["update:modelValue"]),
|
|
25794
25800
|
setup(t, { emit: e }) {
|
|
25795
|
-
const i = t, o = e, s =
|
|
25801
|
+
const i = t, o = e, s = G(), r = xi(t, "modelValue"), a = M(!1), l = bn({
|
|
25796
25802
|
isRouteQueryEnabled: !1
|
|
25797
25803
|
}), u = Ow(l.paginationOptions), m = S(() => u.data.value?.data ?? []);
|
|
25798
25804
|
async function c(h) {
|
|
@@ -25821,8 +25827,8 @@ const Uc = /* @__PURE__ */ A({
|
|
|
25821
25827
|
"bg-brand-50": y
|
|
25822
25828
|
}, "p-md px-lg rounded-md"])
|
|
25823
25829
|
}, [
|
|
25824
|
-
T("p", H2,
|
|
25825
|
-
v.email ? (_(), V("p", W2,
|
|
25830
|
+
T("p", H2, k(v.name), 1),
|
|
25831
|
+
v.email ? (_(), V("p", W2, k(v.email), 1)) : $("", !0)
|
|
25826
25832
|
], 2)
|
|
25827
25833
|
]),
|
|
25828
25834
|
_: 1
|
|
@@ -25851,7 +25857,7 @@ const Uc = /* @__PURE__ */ A({
|
|
|
25851
25857
|
onSubmit: {}
|
|
25852
25858
|
},
|
|
25853
25859
|
setup(t) {
|
|
25854
|
-
const e = t, i =
|
|
25860
|
+
const e = t, i = G(), o = M(e.isCreatingNewContactPerson), s = st({
|
|
25855
25861
|
initialState: {
|
|
25856
25862
|
email: null,
|
|
25857
25863
|
firstName: null,
|
|
@@ -25928,7 +25934,7 @@ const Uc = /* @__PURE__ */ A({
|
|
|
25928
25934
|
}), null, 16, ["label", "placeholder"]),
|
|
25929
25935
|
b(Wt, { class: "col-span-2" }, {
|
|
25930
25936
|
default: w(() => [
|
|
25931
|
-
|
|
25937
|
+
H(k(d(i).t("wise_crm.contact.create_dialog.form.seperator_label")), 1)
|
|
25932
25938
|
]),
|
|
25933
25939
|
_: 1
|
|
25934
25940
|
}),
|
|
@@ -25939,7 +25945,7 @@ const Uc = /* @__PURE__ */ A({
|
|
|
25939
25945
|
}), null, 16, ["label", "placeholder"]),
|
|
25940
25946
|
b(Wt, { class: "col-span-2" }, {
|
|
25941
25947
|
default: w(() => [
|
|
25942
|
-
|
|
25948
|
+
H(k(d(i).t("wise_crm.contact.create_dialog.form.seperator_label")), 1)
|
|
25943
25949
|
]),
|
|
25944
25950
|
_: 1
|
|
25945
25951
|
}),
|
|
@@ -25968,7 +25974,7 @@ const Uc = /* @__PURE__ */ A({
|
|
|
25968
25974
|
},
|
|
25969
25975
|
emits: ["close", "createNewContactPerson"],
|
|
25970
25976
|
setup(t, { emit: e }) {
|
|
25971
|
-
const i = t, o = e, s =
|
|
25977
|
+
const i = t, o = e, s = G(), r = Ke(), a = N2(), l = Mw();
|
|
25972
25978
|
async function u(f) {
|
|
25973
25979
|
try {
|
|
25974
25980
|
const p = await l.execute({
|
|
@@ -26089,7 +26095,7 @@ const Rw = n.object({
|
|
|
26089
26095
|
onSubmit: { type: Function }
|
|
26090
26096
|
},
|
|
26091
26097
|
setup(t) {
|
|
26092
|
-
const e = t, i =
|
|
26098
|
+
const e = t, i = G(), o = st({
|
|
26093
26099
|
initialState: {
|
|
26094
26100
|
email: e.contactPerson.email,
|
|
26095
26101
|
firstName: e.contactPerson.firstName,
|
|
@@ -26121,7 +26127,7 @@ const Rw = n.object({
|
|
|
26121
26127
|
},
|
|
26122
26128
|
emits: ["close"],
|
|
26123
26129
|
setup(t, { emit: e }) {
|
|
26124
|
-
const i = t, o = e, s =
|
|
26130
|
+
const i = t, o = e, s = G(), r = Ke(), a = X2(), l = e8(
|
|
26125
26131
|
S(() => i.businessUuid),
|
|
26126
26132
|
S(() => i.contactPersonUuid)
|
|
26127
26133
|
);
|
|
@@ -26177,7 +26183,7 @@ const Rw = n.object({
|
|
|
26177
26183
|
icon: e.icon,
|
|
26178
26184
|
class: "size-4 shrink-0"
|
|
26179
26185
|
}, null, 8, ["icon"]),
|
|
26180
|
-
T("p", null,
|
|
26186
|
+
T("p", null, k(e.label === null ? e.placeholder : e.label), 1)
|
|
26181
26187
|
], 2));
|
|
26182
26188
|
}
|
|
26183
26189
|
}), wf = /* @__PURE__ */ A({
|
|
@@ -26195,7 +26201,7 @@ const Rw = n.object({
|
|
|
26195
26201
|
class: "gap-md flex flex-col"
|
|
26196
26202
|
}, {
|
|
26197
26203
|
default: w(() => [
|
|
26198
|
-
|
|
26204
|
+
Z(i.$slots, "default")
|
|
26199
26205
|
]),
|
|
26200
26206
|
_: 3
|
|
26201
26207
|
}, 8, ["default-value", "type"]));
|
|
@@ -26223,7 +26229,7 @@ const Rw = n.object({
|
|
|
26223
26229
|
T("div", i8, [
|
|
26224
26230
|
b(d(Rq), { class: "ring-brand-500 absolute inset-0 rounded-xl ring-offset-1 duration-200 outline-none focus-visible:ring-2" }, {
|
|
26225
26231
|
default: w(() => [
|
|
26226
|
-
T("span", o8,
|
|
26232
|
+
T("span", o8, k(t.label), 1)
|
|
26227
26233
|
]),
|
|
26228
26234
|
_: 1
|
|
26229
26235
|
}),
|
|
@@ -26237,10 +26243,10 @@ const Rw = n.object({
|
|
|
26237
26243
|
"text-primary": s && !e.isEmpty,
|
|
26238
26244
|
"text-secondary": !s
|
|
26239
26245
|
}, "text-primary text-sm font-semibold"])
|
|
26240
|
-
},
|
|
26246
|
+
}, k(t.label), 3)
|
|
26241
26247
|
]),
|
|
26242
26248
|
T("div", r8, [
|
|
26243
|
-
|
|
26249
|
+
Z(i.$slots, "actions"),
|
|
26244
26250
|
e.isEmpty ? $("", !0) : (_(), V("div", a8, [
|
|
26245
26251
|
b(d(_e), {
|
|
26246
26252
|
class: Oe([{
|
|
@@ -26292,7 +26298,7 @@ const Rw = n.object({
|
|
|
26292
26298
|
"py-0": e.isEmpty
|
|
26293
26299
|
}, "gap-md flex flex-col"])
|
|
26294
26300
|
}, [
|
|
26295
|
-
|
|
26301
|
+
Z(i.$slots, "default")
|
|
26296
26302
|
], 2)
|
|
26297
26303
|
]),
|
|
26298
26304
|
_: 3
|
|
@@ -26310,7 +26316,7 @@ const Rw = n.object({
|
|
|
26310
26316
|
}), l8 = {}, u8 = { class: "border-secondary bg-primary p-lg rounded-xl border text-sm" };
|
|
26311
26317
|
function c8(t, e) {
|
|
26312
26318
|
return _(), V("div", u8, [
|
|
26313
|
-
|
|
26319
|
+
Z(t.$slots, "default")
|
|
26314
26320
|
]);
|
|
26315
26321
|
}
|
|
26316
26322
|
const vo = /* @__PURE__ */ Ui(l8, [["render", c8]]);
|
|
@@ -26337,7 +26343,7 @@ const Lw = /* @__PURE__ */ A({
|
|
|
26337
26343
|
const e = t, i = S(() => $w(e.entityType, e.uuid));
|
|
26338
26344
|
return (o, s) => (_(), I(d(jv), { to: i.value }, {
|
|
26339
26345
|
default: w(() => [
|
|
26340
|
-
|
|
26346
|
+
Z(o.$slots, "default")
|
|
26341
26347
|
]),
|
|
26342
26348
|
_: 3
|
|
26343
26349
|
}, 8, ["to"]));
|
|
@@ -26370,7 +26376,7 @@ const d8 = { class: "gap-md flex items-start" }, m8 = { class: "flex-1" }, f8 =
|
|
|
26370
26376
|
},
|
|
26371
26377
|
emits: ["addChild"],
|
|
26372
26378
|
setup(t, { emit: e }) {
|
|
26373
|
-
const i = t, o = e, s =
|
|
26379
|
+
const i = t, o = e, s = G(), r = zw(), a = S(() => i.business.children), l = S(() => a.value.length > 1 ? s.t("wise_crm.shared.departments_amount", {
|
|
26374
26380
|
value: a.value.length
|
|
26375
26381
|
}) : a.value[0]?.name ?? "");
|
|
26376
26382
|
function u() {
|
|
@@ -26394,7 +26400,7 @@ const d8 = { class: "gap-md flex items-start" }, m8 = { class: "flex-1" }, f8 =
|
|
|
26394
26400
|
uuid: i.business.parent.uuid
|
|
26395
26401
|
}, {
|
|
26396
26402
|
default: w(() => [
|
|
26397
|
-
|
|
26403
|
+
H(k(i.business.parent.name), 1)
|
|
26398
26404
|
]),
|
|
26399
26405
|
_: 1
|
|
26400
26406
|
}, 8, ["entity-type", "uuid"])
|
|
@@ -26406,7 +26412,7 @@ const d8 = { class: "gap-md flex items-start" }, m8 = { class: "flex-1" }, f8 =
|
|
|
26406
26412
|
icon: "timeLineMarker",
|
|
26407
26413
|
class: "text-brand-500 size-4"
|
|
26408
26414
|
})) : $("", !0),
|
|
26409
|
-
T("p", g8,
|
|
26415
|
+
T("p", g8, k(i.business.name), 1)
|
|
26410
26416
|
]),
|
|
26411
26417
|
b(d(Et), {
|
|
26412
26418
|
"class-config": {
|
|
@@ -26445,7 +26451,7 @@ const d8 = { class: "gap-md flex items-start" }, m8 = { class: "flex-1" }, f8 =
|
|
|
26445
26451
|
class: "underline"
|
|
26446
26452
|
}, {
|
|
26447
26453
|
default: w(() => [
|
|
26448
|
-
|
|
26454
|
+
H(k(l.value), 1)
|
|
26449
26455
|
]),
|
|
26450
26456
|
_: 1
|
|
26451
26457
|
})
|
|
@@ -27134,8 +27140,8 @@ const Yg = [
|
|
|
27134
27140
|
var C, E, D;
|
|
27135
27141
|
const { center: P, zoom: O, ...U } = l();
|
|
27136
27142
|
(C = s.value) == null || C.setOptions(U), v !== void 0 && v !== x && ((E = s.value) == null || E.setZoom(v));
|
|
27137
|
-
const
|
|
27138
|
-
g &&
|
|
27143
|
+
const N = !y || g.lng !== y.lng || g.lat !== y.lat;
|
|
27144
|
+
g && N && ((D = s.value) == null || D.panTo(g));
|
|
27139
27145
|
}
|
|
27140
27146
|
);
|
|
27141
27147
|
};
|
|
@@ -27158,7 +27164,7 @@ const Yg = [
|
|
|
27158
27164
|
function T8(t, e, i, o, s, r) {
|
|
27159
27165
|
return _(), V("div", null, [
|
|
27160
27166
|
T("div", A8, null, 512),
|
|
27161
|
-
|
|
27167
|
+
Z(t.$slots, "default", P1(A1({ ready: t.ready, map: t.map, api: t.api, mapTilesLoaded: t.mapTilesLoaded })), void 0, !0)
|
|
27162
27168
|
]);
|
|
27163
27169
|
}
|
|
27164
27170
|
const j8 = /* @__PURE__ */ P8(D8, [["render", T8], ["__scopeId", "data-v-289550ca"]]);
|
|
@@ -27228,7 +27234,7 @@ A({
|
|
|
27228
27234
|
const P = !hr(a.value, v) || !hr(l.value, y), O = s.value !== x, U = P || O || m.value !== g;
|
|
27229
27235
|
if (!m.value || !c.value || !U || r.value && !s.value)
|
|
27230
27236
|
return;
|
|
27231
|
-
const { AdvancedMarkerElement:
|
|
27237
|
+
const { AdvancedMarkerElement: N, PinElement: j } = c.value.marker;
|
|
27232
27238
|
if (u.value) {
|
|
27233
27239
|
const { map: L, content: K, ...ee } = a.value;
|
|
27234
27240
|
Object.assign(u.value, {
|
|
@@ -27236,7 +27242,7 @@ A({
|
|
|
27236
27242
|
...ee
|
|
27237
27243
|
}), p.value && ((C = f.value) == null || C.removeMarker(u.value), (E = f.value) == null || E.addMarker(u.value));
|
|
27238
27244
|
} else
|
|
27239
|
-
r.value ? a.value.content = s.value : l.value && (a.value.content = new j(l.value).element), u.value = an(new
|
|
27245
|
+
r.value ? a.value.content = s.value : l.value && (a.value.content = new j(l.value).element), u.value = an(new N(a.value)), p.value ? (D = f.value) == null || D.addMarker(u.value) : u.value.map = m.value, Qg.forEach((L) => {
|
|
27240
27246
|
var K;
|
|
27241
27247
|
(K = u.value) == null || K.addListener(L, (ee) => e(L, ee));
|
|
27242
27248
|
});
|
|
@@ -28123,8 +28129,8 @@ class Ww {
|
|
|
28123
28129
|
if (u[U + qi] <= i)
|
|
28124
28130
|
continue;
|
|
28125
28131
|
u[U + qi] = i;
|
|
28126
|
-
const
|
|
28127
|
-
x += u[U] *
|
|
28132
|
+
const N = u[U + Qn];
|
|
28133
|
+
x += u[U] * N, C += u[U + 1] * N, u[U + Ou] = P, r && (E || (E = this._map(u, f, !0), D = this.clusterProps.length, this.clusterProps.push(E)), r(E, this._map(u, U)));
|
|
28128
28134
|
}
|
|
28129
28135
|
u[f + Ou] = P, m.push(x / y, C / y, 1 / 0, P, -1, y), r && m.push(D);
|
|
28130
28136
|
} else {
|
|
@@ -28737,14 +28743,14 @@ const j5 = /* @__PURE__ */ A({
|
|
|
28737
28743
|
address: {}
|
|
28738
28744
|
},
|
|
28739
28745
|
setup(t) {
|
|
28740
|
-
const e = t, i =
|
|
28746
|
+
const e = t, i = G();
|
|
28741
28747
|
return (o, s) => e.address !== null ? (_(), I(vo, {
|
|
28742
28748
|
key: 0,
|
|
28743
28749
|
class: "relative overflow-hidden !p-0"
|
|
28744
28750
|
}, {
|
|
28745
28751
|
default: w(() => [
|
|
28746
28752
|
T("div", k5, [
|
|
28747
|
-
T("p", null,
|
|
28753
|
+
T("p", null, k(d(i).t("wise_crm.shared.home_address")), 1)
|
|
28748
28754
|
]),
|
|
28749
28755
|
T("div", N5, [
|
|
28750
28756
|
T("div", U5, [
|
|
@@ -28755,8 +28761,8 @@ const j5 = /* @__PURE__ */ A({
|
|
|
28755
28761
|
})
|
|
28756
28762
|
]),
|
|
28757
28763
|
T("div", F5, [
|
|
28758
|
-
T("p", M5,
|
|
28759
|
-
T("p", null,
|
|
28764
|
+
T("p", M5, k(e.address?.street) + " " + k(e.address?.streetNumber), 1),
|
|
28765
|
+
T("p", null, k(e.address?.postalCode) + " " + k(e.address?.city), 1)
|
|
28760
28766
|
])
|
|
28761
28767
|
])
|
|
28762
28768
|
]),
|
|
@@ -28785,7 +28791,7 @@ const O5 = { class: "gap-md flex flex-col" }, B5 = { class: "gap-sm border-secon
|
|
|
28785
28791
|
},
|
|
28786
28792
|
emits: ["addChild"],
|
|
28787
28793
|
setup(t, { emit: e }) {
|
|
28788
|
-
const i = t, o = e, s =
|
|
28794
|
+
const i = t, o = e, s = G();
|
|
28789
28795
|
function r() {
|
|
28790
28796
|
o("addChild");
|
|
28791
28797
|
}
|
|
@@ -28828,7 +28834,7 @@ const O5 = { class: "gap-md flex flex-col" }, B5 = { class: "gap-sm border-secon
|
|
|
28828
28834
|
const e = t;
|
|
28829
28835
|
return (i, o) => (_(), I(vo, { class: "gap-md flex flex-col" }, {
|
|
28830
28836
|
default: w(() => [
|
|
28831
|
-
T("p", L5,
|
|
28837
|
+
T("p", L5, k(e.invoiceEmail), 1),
|
|
28832
28838
|
T("div", z5, [
|
|
28833
28839
|
b(ot, {
|
|
28834
28840
|
label: e.invoiceAddress !== null ? d(Jl).formatShort(e.invoiceAddress) : "-",
|
|
@@ -28847,7 +28853,7 @@ const O5 = { class: "gap-md flex flex-col" }, B5 = { class: "gap-sm border-secon
|
|
|
28847
28853
|
},
|
|
28848
28854
|
emits: ["delete", "update"],
|
|
28849
28855
|
setup(t, { emit: e }) {
|
|
28850
|
-
const i = t, o = e, s =
|
|
28856
|
+
const i = t, o = e, s = G();
|
|
28851
28857
|
function r() {
|
|
28852
28858
|
o("update");
|
|
28853
28859
|
}
|
|
@@ -28869,11 +28875,11 @@ const O5 = { class: "gap-md flex flex-col" }, B5 = { class: "gap-sm border-secon
|
|
|
28869
28875
|
uuid: i.contactPerson.uuid
|
|
28870
28876
|
}, {
|
|
28871
28877
|
default: w(() => [
|
|
28872
|
-
|
|
28878
|
+
H(k(i.contactPerson.firstName) + " " + k(i.contactPerson.lastName), 1)
|
|
28873
28879
|
]),
|
|
28874
28880
|
_: 1
|
|
28875
28881
|
}, 8, ["entity-type", "uuid"]),
|
|
28876
|
-
T("p", G5,
|
|
28882
|
+
T("p", G5, k(i.contactPerson.position), 1)
|
|
28877
28883
|
]),
|
|
28878
28884
|
T("div", H5, [
|
|
28879
28885
|
b(d(Et), {
|
|
@@ -28942,7 +28948,7 @@ const O5 = { class: "gap-md flex flex-col" }, B5 = { class: "gap-sm border-secon
|
|
|
28942
28948
|
business: {}
|
|
28943
28949
|
},
|
|
28944
28950
|
setup(t) {
|
|
28945
|
-
const e = t, i =
|
|
28951
|
+
const e = t, i = G(), o = Ke(), s = Az(), r = Tz(), a = Ft(J2), l = Ft(n8), u = Ft(k2), m = S(() => e.business.contactPersons.length > 0);
|
|
28946
28952
|
function c() {
|
|
28947
28953
|
a.open({
|
|
28948
28954
|
businessUuid: e.business.uuid
|
|
@@ -29051,7 +29057,7 @@ const O5 = { class: "gap-md flex flex-col" }, B5 = { class: "gap-sm border-secon
|
|
|
29051
29057
|
onClick: c
|
|
29052
29058
|
}, {
|
|
29053
29059
|
default: w(() => [
|
|
29054
|
-
|
|
29060
|
+
H(k(d(i).t("wise_crm.shared.add")), 1)
|
|
29055
29061
|
]),
|
|
29056
29062
|
_: 1
|
|
29057
29063
|
})) : $("", !0)
|
|
@@ -29124,7 +29130,7 @@ const O5 = { class: "gap-md flex flex-col" }, B5 = { class: "gap-sm border-secon
|
|
|
29124
29130
|
class: "h-full"
|
|
29125
29131
|
}, {
|
|
29126
29132
|
default: w(() => [
|
|
29127
|
-
|
|
29133
|
+
Z(o.$slots, "default")
|
|
29128
29134
|
]),
|
|
29129
29135
|
_: 3
|
|
29130
29136
|
}, 8, ["style"]));
|
|
@@ -29147,7 +29153,7 @@ const O5 = { class: "gap-md flex flex-col" }, B5 = { class: "gap-sm border-secon
|
|
|
29147
29153
|
default:
|
|
29148
29154
|
return "phone";
|
|
29149
29155
|
}
|
|
29150
|
-
}), o =
|
|
29156
|
+
}), o = G(), s = __({
|
|
29151
29157
|
source: e.value
|
|
29152
29158
|
});
|
|
29153
29159
|
function r() {
|
|
@@ -29180,11 +29186,11 @@ const O5 = { class: "gap-md flex flex-col" }, B5 = { class: "gap-sm border-secon
|
|
|
29180
29186
|
key: 0,
|
|
29181
29187
|
href: `mailto:${e.value}`,
|
|
29182
29188
|
class: "ring-brand-500 underline ring-offset-1 duration-200 outline-none focus-visible:ring-2"
|
|
29183
|
-
},
|
|
29189
|
+
}, k(e.value), 9, Q5)) : t.type === "phone" ? (_(), V("a", {
|
|
29184
29190
|
key: 1,
|
|
29185
29191
|
href: `tel:${e.value}`,
|
|
29186
29192
|
class: "ring-brand-500 underline ring-offset-1 duration-200 outline-none focus-visible:ring-2"
|
|
29187
|
-
},
|
|
29193
|
+
}, k(e.value), 9, J5)) : (_(), V("p", X5, k(e.value), 1)),
|
|
29188
29194
|
b(d(Et), {
|
|
29189
29195
|
"class-config": {
|
|
29190
29196
|
root: "bg-transparent border-none shadow-none p-0 w-auto h-auto rounded-sm p-xs data-[loading=false]:not-disabled:hover:bg-tertiary",
|
|
@@ -29213,9 +29219,9 @@ const O5 = { class: "gap-md flex flex-col" }, B5 = { class: "gap-sm border-secon
|
|
|
29213
29219
|
const e = t;
|
|
29214
29220
|
return (i, o) => (_(), V("div", e3, [
|
|
29215
29221
|
T("div", t3, [
|
|
29216
|
-
T("h2", n3,
|
|
29222
|
+
T("h2", n3, k(e.name), 1),
|
|
29217
29223
|
T("div", i3, [
|
|
29218
|
-
|
|
29224
|
+
Z(i.$slots, "actions"),
|
|
29219
29225
|
e.email !== null ? (_(), I(Ru, {
|
|
29220
29226
|
key: 0,
|
|
29221
29227
|
value: e.email,
|
|
@@ -29240,7 +29246,7 @@ const O5 = { class: "gap-md flex flex-col" }, B5 = { class: "gap-sm border-secon
|
|
|
29240
29246
|
icon: "user"
|
|
29241
29247
|
}, {
|
|
29242
29248
|
default: w(() => [
|
|
29243
|
-
|
|
29249
|
+
H(k(e.entityName ?? "-"), 1)
|
|
29244
29250
|
]),
|
|
29245
29251
|
_: 1
|
|
29246
29252
|
})
|
|
@@ -29281,14 +29287,14 @@ const O5 = { class: "gap-md flex flex-col" }, B5 = { class: "gap-sm border-secon
|
|
|
29281
29287
|
icon: r.icon,
|
|
29282
29288
|
class: "size-4"
|
|
29283
29289
|
}, null, 8, ["icon"]),
|
|
29284
|
-
T("span", null,
|
|
29290
|
+
T("span", null, k(r.label), 1)
|
|
29285
29291
|
]),
|
|
29286
29292
|
_: 2
|
|
29287
29293
|
}, 1032, ["value"]))), 128))
|
|
29288
29294
|
]),
|
|
29289
29295
|
content: w(() => [
|
|
29290
29296
|
T("div", r3, [
|
|
29291
|
-
|
|
29297
|
+
Z(o.$slots, "default")
|
|
29292
29298
|
])
|
|
29293
29299
|
]),
|
|
29294
29300
|
_: 3
|
|
@@ -29763,7 +29769,7 @@ class m3 {
|
|
|
29763
29769
|
let Zi = null, s1 = [], r1 = [];
|
|
29764
29770
|
const vv = M(!1);
|
|
29765
29771
|
function jt() {
|
|
29766
|
-
const t =
|
|
29772
|
+
const t = G(), e = Jw();
|
|
29767
29773
|
async function i(s) {
|
|
29768
29774
|
d3(s.getAccessToken, s.apiCrmBaseUrl), e.setGoogleMapsApiKey(s.googleMapsApiKey), J.setConfig({
|
|
29769
29775
|
headers: {
|
|
@@ -29780,7 +29786,7 @@ function jt() {
|
|
|
29780
29786
|
}), Zi = await $u(), s1 = await bv(fe.INDIVIDUAL), r1 = await bv(fe.BUSINESS), p3(Zi.entities), vv.value = !0;
|
|
29781
29787
|
}
|
|
29782
29788
|
function o() {
|
|
29783
|
-
const s =
|
|
29789
|
+
const s = G();
|
|
29784
29790
|
X(() => s.locale.value, async (r) => {
|
|
29785
29791
|
J.setConfig({
|
|
29786
29792
|
headers: {
|
|
@@ -29832,7 +29838,7 @@ const g3 = /* @__PURE__ */ A({
|
|
|
29832
29838
|
business: {}
|
|
29833
29839
|
},
|
|
29834
29840
|
setup(t) {
|
|
29835
|
-
const e = t, i =
|
|
29841
|
+
const e = t, i = G(), o = jt(), s = S(() => o.getConfigForEntity(fe.BUSINESS)), r = M(
|
|
29836
29842
|
"overview"
|
|
29837
29843
|
/* OVERVIEW */
|
|
29838
29844
|
), a = S(() => [
|
|
@@ -29901,10 +29907,10 @@ const g3 = /* @__PURE__ */ A({
|
|
|
29901
29907
|
message: {}
|
|
29902
29908
|
},
|
|
29903
29909
|
setup(t) {
|
|
29904
|
-
const e = t, i =
|
|
29910
|
+
const e = t, i = G();
|
|
29905
29911
|
return (o, s) => (_(), V("div", v3, [
|
|
29906
|
-
T("span", b3,
|
|
29907
|
-
T("p", y3,
|
|
29912
|
+
T("span", b3, k(e.title), 1),
|
|
29913
|
+
T("p", y3, k(d(i).t("component.error.message_prefix")) + " — " + k(e.message), 1),
|
|
29908
29914
|
e.action !== null ? (_(), I(d(Ie), {
|
|
29909
29915
|
key: 0,
|
|
29910
29916
|
class: "mt-2xl mx-auto",
|
|
@@ -29912,7 +29918,7 @@ const g3 = /* @__PURE__ */ A({
|
|
|
29912
29918
|
onClick: e.action.onClick
|
|
29913
29919
|
}, {
|
|
29914
29920
|
default: w(() => [
|
|
29915
|
-
|
|
29921
|
+
H(k(e.action.label), 1)
|
|
29916
29922
|
]),
|
|
29917
29923
|
_: 1
|
|
29918
29924
|
}, 8, ["onClick"])) : $("", !0)
|
|
@@ -29921,7 +29927,7 @@ const g3 = /* @__PURE__ */ A({
|
|
|
29921
29927
|
}), _3 = {}, w3 = { class: "border-secondary bg-primary py-md px-md flex h-full w-100 flex-col overflow-hidden border-r" };
|
|
29922
29928
|
function x3(t, e) {
|
|
29923
29929
|
return _(), V("div", w3, [
|
|
29924
|
-
|
|
29930
|
+
Z(t.$slots, "default")
|
|
29925
29931
|
]);
|
|
29926
29932
|
}
|
|
29927
29933
|
const a1 = /* @__PURE__ */ Ui(_3, [["render", x3]]), C3 = {}, E3 = { class: "bg-tertiary w-full animate-pulse rounded-lg" };
|
|
@@ -29934,7 +29940,7 @@ const Cs = /* @__PURE__ */ Ui(C3, [["render", S3]]), I3 = /* @__PURE__ */ A({
|
|
|
29934
29940
|
businessUuid: {}
|
|
29935
29941
|
},
|
|
29936
29942
|
setup(t) {
|
|
29937
|
-
const e = t, i =
|
|
29943
|
+
const e = t, i = G(), o = jm(
|
|
29938
29944
|
S(() => e.businessUuid)
|
|
29939
29945
|
), s = S(() => o.data.value ?? null);
|
|
29940
29946
|
return (r, a) => (_(), I(a1, null, {
|
|
@@ -29984,7 +29990,7 @@ const Cs = /* @__PURE__ */ Ui(C3, [["render", S3]]), I3 = /* @__PURE__ */ A({
|
|
|
29984
29990
|
class: "bg-secondary flex overflow-hidden rounded-tl-2xl"
|
|
29985
29991
|
}, {
|
|
29986
29992
|
default: w(() => [
|
|
29987
|
-
|
|
29993
|
+
Z(e.$slots, "default")
|
|
29988
29994
|
]),
|
|
29989
29995
|
_: 3
|
|
29990
29996
|
}));
|
|
@@ -30026,7 +30032,7 @@ const Cs = /* @__PURE__ */ Ui(C3, [["render", S3]]), I3 = /* @__PURE__ */ A({
|
|
|
30026
30032
|
value: r.value
|
|
30027
30033
|
}, {
|
|
30028
30034
|
default: w(() => [
|
|
30029
|
-
|
|
30035
|
+
H(k(r.label), 1)
|
|
30030
30036
|
]),
|
|
30031
30037
|
_: 2
|
|
30032
30038
|
}, 1032, ["value"]))), 128))
|
|
@@ -30045,7 +30051,7 @@ const Cs = /* @__PURE__ */ Ui(C3, [["render", S3]]), I3 = /* @__PURE__ */ A({
|
|
|
30045
30051
|
_: 1
|
|
30046
30052
|
}, 8, ["modelValue"])
|
|
30047
30053
|
]),
|
|
30048
|
-
|
|
30054
|
+
Z(o.$slots, "default")
|
|
30049
30055
|
]),
|
|
30050
30056
|
_: 3
|
|
30051
30057
|
}, 8, ["entity-type"]));
|
|
@@ -30090,18 +30096,18 @@ const Cs = /* @__PURE__ */ Ui(C3, [["render", S3]]), I3 = /* @__PURE__ */ A({
|
|
|
30090
30096
|
default: w(() => [
|
|
30091
30097
|
b(d(wr), { class: "sr-only" }, {
|
|
30092
30098
|
default: w(() => [
|
|
30093
|
-
T("p", null,
|
|
30099
|
+
T("p", null, k(i.title), 1)
|
|
30094
30100
|
]),
|
|
30095
30101
|
_: 1
|
|
30096
30102
|
}),
|
|
30097
30103
|
b(d(_r), { class: "sr-only" }, {
|
|
30098
30104
|
default: w(() => [
|
|
30099
|
-
T("p", null,
|
|
30105
|
+
T("p", null, k(i.description), 1)
|
|
30100
30106
|
]),
|
|
30101
30107
|
_: 1
|
|
30102
30108
|
}),
|
|
30103
30109
|
l[0] || (l[0] = T("div", { id: "crm-info-dialog" }, null, -1)),
|
|
30104
|
-
|
|
30110
|
+
Z(a.$slots, "default"),
|
|
30105
30111
|
b(T3, {
|
|
30106
30112
|
"entity-type": i.entityType,
|
|
30107
30113
|
tabs: t.tabs
|
|
@@ -30119,7 +30125,7 @@ const Cs = /* @__PURE__ */ Ui(C3, [["render", S3]]), I3 = /* @__PURE__ */ A({
|
|
|
30119
30125
|
_: 3
|
|
30120
30126
|
}));
|
|
30121
30127
|
}
|
|
30122
|
-
}),
|
|
30128
|
+
}), gG = /* @__PURE__ */ A({
|
|
30123
30129
|
__name: "BusinessDialog",
|
|
30124
30130
|
props: {
|
|
30125
30131
|
businessUuid: {},
|
|
@@ -30195,12 +30201,12 @@ const N3 = { class: "border-primary/50 overflow-hidden rounded-xl border shadow-
|
|
|
30195
30201
|
icon: e.icon,
|
|
30196
30202
|
class: "text-primary size-4"
|
|
30197
30203
|
}, null, 8, ["icon"]),
|
|
30198
|
-
T("p", F3,
|
|
30204
|
+
T("p", F3, k(e.title), 1)
|
|
30199
30205
|
]),
|
|
30200
|
-
|
|
30206
|
+
Z(i.$slots, "header-action")
|
|
30201
30207
|
]),
|
|
30202
30208
|
T("div", M3, [
|
|
30203
|
-
|
|
30209
|
+
Z(i.$slots, "default")
|
|
30204
30210
|
])
|
|
30205
30211
|
]));
|
|
30206
30212
|
}
|
|
@@ -30221,7 +30227,7 @@ const N3 = { class: "border-primary/50 overflow-hidden rounded-xl border shadow-
|
|
|
30221
30227
|
}),
|
|
30222
30228
|
emits: /* @__PURE__ */ Ct(["blur"], ["update:modelValue"]),
|
|
30223
30229
|
setup(t, { emit: e }) {
|
|
30224
|
-
const i = t, o = e, s =
|
|
30230
|
+
const i = t, o = e, s = G(), r = xi(t, "modelValue"), a = Bc();
|
|
30225
30231
|
return (l, u) => (_(), I(d(Tv), {
|
|
30226
30232
|
"is-touched": i.isTouched,
|
|
30227
30233
|
hint: null,
|
|
@@ -30315,7 +30321,7 @@ const R3 = /* @__PURE__ */ A({
|
|
|
30315
30321
|
onSubmit: { type: Function }
|
|
30316
30322
|
},
|
|
30317
30323
|
setup(t) {
|
|
30318
|
-
const e = t, i =
|
|
30324
|
+
const e = t, i = G(), o = st({
|
|
30319
30325
|
initialState: S(() => e.billingInformation === null ? null : {
|
|
30320
30326
|
billingAddress: e.businessAddress,
|
|
30321
30327
|
invoiceCcEmails: e.billingInformation.invoiceCcEmails ?? [],
|
|
@@ -30452,7 +30458,7 @@ const R3 = /* @__PURE__ */ A({
|
|
|
30452
30458
|
type: "submit"
|
|
30453
30459
|
}, {
|
|
30454
30460
|
default: w(() => [
|
|
30455
|
-
|
|
30461
|
+
H(k(d(i).t("wise_crm.shared.save_changes")), 1)
|
|
30456
30462
|
]),
|
|
30457
30463
|
_: 1
|
|
30458
30464
|
}, 8, ["is-loading", "form"])
|
|
@@ -30466,7 +30472,7 @@ const R3 = /* @__PURE__ */ A({
|
|
|
30466
30472
|
_: 1
|
|
30467
30473
|
}, 8, ["id", "form"]));
|
|
30468
30474
|
}
|
|
30469
|
-
}),
|
|
30475
|
+
}), vG = /* @__PURE__ */ A({
|
|
30470
30476
|
__name: "BusinessBillingInformationCard",
|
|
30471
30477
|
props: {
|
|
30472
30478
|
businessUuid: {}
|
|
@@ -30548,7 +30554,7 @@ const nu = /* @__PURE__ */ A({
|
|
|
30548
30554
|
}
|
|
30549
30555
|
}, {
|
|
30550
30556
|
default: w(() => [
|
|
30551
|
-
|
|
30557
|
+
Z(i.$slots, "default")
|
|
30552
30558
|
]),
|
|
30553
30559
|
_: 3
|
|
30554
30560
|
})) : $("", !0)
|
|
@@ -30607,7 +30613,7 @@ const nu = /* @__PURE__ */ A({
|
|
|
30607
30613
|
value: a.key
|
|
30608
30614
|
}, {
|
|
30609
30615
|
default: w(() => [
|
|
30610
|
-
|
|
30616
|
+
H(k(a.value), 1)
|
|
30611
30617
|
]),
|
|
30612
30618
|
_: 2
|
|
30613
30619
|
}, 1032, ["value"]))), 128))
|
|
@@ -30675,7 +30681,7 @@ const nu = /* @__PURE__ */ A({
|
|
|
30675
30681
|
value: r.key
|
|
30676
30682
|
}, {
|
|
30677
30683
|
default: w(() => [
|
|
30678
|
-
|
|
30684
|
+
H(k(r.value), 1)
|
|
30679
30685
|
]),
|
|
30680
30686
|
_: 2
|
|
30681
30687
|
}, 1032, ["value"]))), 128))
|
|
@@ -30792,7 +30798,7 @@ const Y3 = /* @__PURE__ */ A({
|
|
|
30792
30798
|
onSubmit: { type: Function }
|
|
30793
30799
|
},
|
|
30794
30800
|
setup(t) {
|
|
30795
|
-
const e = t, i =
|
|
30801
|
+
const e = t, i = G(), o = st({
|
|
30796
30802
|
initialState: {
|
|
30797
30803
|
name: e.business.name,
|
|
30798
30804
|
address: e.business.address,
|
|
@@ -30905,7 +30911,7 @@ const Y3 = /* @__PURE__ */ A({
|
|
|
30905
30911
|
type: "submit"
|
|
30906
30912
|
}, {
|
|
30907
30913
|
default: w(() => [
|
|
30908
|
-
|
|
30914
|
+
H(k(d(i).t("wise_crm.shared.save_changes")), 1)
|
|
30909
30915
|
]),
|
|
30910
30916
|
_: 1
|
|
30911
30917
|
}, 8, ["is-loading"])
|
|
@@ -30919,7 +30925,7 @@ const Y3 = /* @__PURE__ */ A({
|
|
|
30919
30925
|
_: 1
|
|
30920
30926
|
}, 8, ["form"]));
|
|
30921
30927
|
}
|
|
30922
|
-
}),
|
|
30928
|
+
}), bG = /* @__PURE__ */ A({
|
|
30923
30929
|
__name: "BusinessInfoUpdateCard",
|
|
30924
30930
|
props: {
|
|
30925
30931
|
businessUuid: {}
|
|
@@ -30966,8 +30972,8 @@ const Y3 = /* @__PURE__ */ A({
|
|
|
30966
30972
|
return (i, o) => (_(), I(d(Vv), null, {
|
|
30967
30973
|
default: w(() => [
|
|
30968
30974
|
T("div", Q3, [
|
|
30969
|
-
T("span", J3,
|
|
30970
|
-
e.email ? (_(), V("span", X3,
|
|
30975
|
+
T("span", J3, k(e.name), 1),
|
|
30976
|
+
e.email ? (_(), V("span", X3, k(e.email), 1)) : $("", !0)
|
|
30971
30977
|
])
|
|
30972
30978
|
]),
|
|
30973
30979
|
_: 1
|
|
@@ -31018,7 +31024,7 @@ const s6 = /* @__PURE__ */ Ui(n6, [["render", o6]]), [
|
|
|
31018
31024
|
onSort: s[0] || (s[0] = (r) => d(i)?.setSort(d(e).key))
|
|
31019
31025
|
}, {
|
|
31020
31026
|
default: w(() => [
|
|
31021
|
-
|
|
31027
|
+
H(k(d(e).headerLabel), 1)
|
|
31022
31028
|
]),
|
|
31023
31029
|
_: 1
|
|
31024
31030
|
}, 8, ["is-sortable", "sort-direction"]));
|
|
@@ -31034,7 +31040,7 @@ const s6 = /* @__PURE__ */ Ui(n6, [["render", o6]]), [
|
|
|
31034
31040
|
return r6({
|
|
31035
31041
|
column: S(() => e.column),
|
|
31036
31042
|
sort: e.sort
|
|
31037
|
-
}), (i, o) =>
|
|
31043
|
+
}), (i, o) => Z(i.$slots, "default");
|
|
31038
31044
|
}
|
|
31039
31045
|
}), d1 = /* @__PURE__ */ A({
|
|
31040
31046
|
__name: "DataTableHeader",
|
|
@@ -31078,7 +31084,7 @@ const s6 = /* @__PURE__ */ Ui(n6, [["render", o6]]), [
|
|
|
31078
31084
|
columns: s,
|
|
31079
31085
|
gridTemplateColumns: r,
|
|
31080
31086
|
onClear: a
|
|
31081
|
-
} = c1(), l =
|
|
31087
|
+
} = c1(), l = G();
|
|
31082
31088
|
return (u, m) => d(e) || d(i) ? (_(), V("div", {
|
|
31083
31089
|
key: 0,
|
|
31084
31090
|
style: Sv({ gridTemplateColumns: d(r) }),
|
|
@@ -31086,23 +31092,23 @@ const s6 = /* @__PURE__ */ Ui(n6, [["render", o6]]), [
|
|
|
31086
31092
|
}, [
|
|
31087
31093
|
b(d1),
|
|
31088
31094
|
d(e) ? (_(), V("div", c6, [
|
|
31089
|
-
|
|
31095
|
+
Z(u.$slots, "empty-state", { activeFilterCount: d(o) }, () => [
|
|
31090
31096
|
b(d(_e), {
|
|
31091
31097
|
icon: "search",
|
|
31092
31098
|
class: "text-secondary mx-auto size-6"
|
|
31093
31099
|
}),
|
|
31094
31100
|
T("p", d6, [
|
|
31095
31101
|
d(o) > 0 ? (_(), V(le, { key: 0 }, [
|
|
31096
|
-
|
|
31102
|
+
H(k(d(l).t("component.table.no_results.title")), 1)
|
|
31097
31103
|
], 64)) : (_(), V(le, { key: 1 }, [
|
|
31098
|
-
|
|
31104
|
+
H(k(d(l).t("component.table.no_data.title")), 1)
|
|
31099
31105
|
], 64))
|
|
31100
31106
|
]),
|
|
31101
31107
|
T("p", m6, [
|
|
31102
31108
|
d(o) > 0 ? (_(), V(le, { key: 0 }, [
|
|
31103
|
-
|
|
31109
|
+
H(k(d(l).t("component.table.no_results.description")), 1)
|
|
31104
31110
|
], 64)) : (_(), V(le, { key: 1 }, [
|
|
31105
|
-
|
|
31111
|
+
H(k(d(l).t("component.table.no_data.description")), 1)
|
|
31106
31112
|
], 64))
|
|
31107
31113
|
]),
|
|
31108
31114
|
d(o) > 0 ? (_(), I(d(Ie), {
|
|
@@ -31112,7 +31118,7 @@ const s6 = /* @__PURE__ */ Ui(n6, [["render", o6]]), [
|
|
|
31112
31118
|
onClick: m[0] || (m[0] = (c) => d(a)())
|
|
31113
31119
|
}, {
|
|
31114
31120
|
default: w(() => [
|
|
31115
|
-
|
|
31121
|
+
H(k(d(l).t("component.table.clear_filter", { count: d(o) })), 1)
|
|
31116
31122
|
]),
|
|
31117
31123
|
_: 1
|
|
31118
31124
|
})) : $("", !0)
|
|
@@ -31140,7 +31146,7 @@ const s6 = /* @__PURE__ */ Ui(n6, [["render", o6]]), [
|
|
|
31140
31146
|
error: {}
|
|
31141
31147
|
},
|
|
31142
31148
|
setup(t) {
|
|
31143
|
-
const e = t, i =
|
|
31149
|
+
const e = t, i = G(), o = Qo(), s = S(() => {
|
|
31144
31150
|
const [
|
|
31145
31151
|
r
|
|
31146
31152
|
] = e.error.errors ?? [];
|
|
@@ -31158,7 +31164,7 @@ const s6 = /* @__PURE__ */ Ui(n6, [["render", o6]]), [
|
|
|
31158
31164
|
}), v6 = {}, b6 = { class: "flex size-full items-center justify-center" };
|
|
31159
31165
|
function y6(t, e) {
|
|
31160
31166
|
return _(), V("div", b6, [
|
|
31161
|
-
|
|
31167
|
+
Z(t.$slots, "default")
|
|
31162
31168
|
]);
|
|
31163
31169
|
}
|
|
31164
31170
|
const _6 = /* @__PURE__ */ Ui(v6, [["render", y6]]), w6 = /* @__PURE__ */ A({
|
|
@@ -31167,7 +31173,7 @@ const _6 = /* @__PURE__ */ Ui(v6, [["render", y6]]), w6 = /* @__PURE__ */ A({
|
|
|
31167
31173
|
error: {}
|
|
31168
31174
|
},
|
|
31169
31175
|
setup(t) {
|
|
31170
|
-
const e = t, i = __(), o =
|
|
31176
|
+
const e = t, i = __(), o = G();
|
|
31171
31177
|
function s() {
|
|
31172
31178
|
i.copy(JSON.stringify(e.error.format(), null, 2));
|
|
31173
31179
|
}
|
|
@@ -31317,7 +31323,7 @@ const x6 = /* @__PURE__ */ A({
|
|
|
31317
31323
|
}, 512),
|
|
31318
31324
|
b(h6, null, {
|
|
31319
31325
|
"empty-state": w(({ activeFilterCount: p }) => [
|
|
31320
|
-
|
|
31326
|
+
Z(c.$slots, "empty-state", { activeFilterCounter: p })
|
|
31321
31327
|
]),
|
|
31322
31328
|
_: 3
|
|
31323
31329
|
})
|
|
@@ -31325,7 +31331,7 @@ const x6 = /* @__PURE__ */ A({
|
|
|
31325
31331
|
_: 3
|
|
31326
31332
|
}, 8, ["is-first-column-sticky", "is-last-column-sticky", "grid-template-columns"]));
|
|
31327
31333
|
}
|
|
31328
|
-
}),
|
|
31334
|
+
}), yG = /* @__PURE__ */ A({
|
|
31329
31335
|
__name: "BusinessOverview",
|
|
31330
31336
|
emits: ["rowClick"],
|
|
31331
31337
|
setup(t, { emit: e }) {
|
|
@@ -31372,7 +31378,7 @@ const x6 = /* @__PURE__ */ A({
|
|
|
31372
31378
|
class: "cursor-pointer disabled:cursor-not-allowed disabled:opacity-50",
|
|
31373
31379
|
onClick: i[0] || (i[0] = (o) => e.$emit("click", o))
|
|
31374
31380
|
}, [
|
|
31375
|
-
|
|
31381
|
+
Z(e.$slots, "default")
|
|
31376
31382
|
], 8, C6));
|
|
31377
31383
|
}
|
|
31378
31384
|
});
|
|
@@ -31492,7 +31498,7 @@ const f1 = /* @__PURE__ */ A({
|
|
|
31492
31498
|
ref_key: "el",
|
|
31493
31499
|
ref: e
|
|
31494
31500
|
}, [
|
|
31495
|
-
|
|
31501
|
+
Z(s.$slots, "default")
|
|
31496
31502
|
], 512)
|
|
31497
31503
|
]),
|
|
31498
31504
|
_: 3
|
|
@@ -31537,7 +31543,7 @@ const f1 = /* @__PURE__ */ A({
|
|
|
31537
31543
|
})
|
|
31538
31544
|
]),
|
|
31539
31545
|
a[2] || (a[2] = T("h3", { class: "mb-2 text-sm font-medium text-gray-900" }, " No contacts found ", -1)),
|
|
31540
|
-
T("p", P6, ` We couldn't find any contacts matching "` +
|
|
31546
|
+
T("p", P6, ` We couldn't find any contacts matching "` + k(t.searchTerm) + '". ', 1),
|
|
31541
31547
|
b(Be, {
|
|
31542
31548
|
gap: "sm",
|
|
31543
31549
|
justify: "center",
|
|
@@ -31553,7 +31559,7 @@ const f1 = /* @__PURE__ */ A({
|
|
|
31553
31559
|
icon: "plus",
|
|
31554
31560
|
class: "size-4"
|
|
31555
31561
|
}),
|
|
31556
|
-
a[0] || (a[0] =
|
|
31562
|
+
a[0] || (a[0] = H(" Create new contact ", -1))
|
|
31557
31563
|
]),
|
|
31558
31564
|
_: 1
|
|
31559
31565
|
}),
|
|
@@ -31562,7 +31568,7 @@ const f1 = /* @__PURE__ */ A({
|
|
|
31562
31568
|
onClick: s
|
|
31563
31569
|
}, {
|
|
31564
31570
|
default: w(() => [...a[1] || (a[1] = [
|
|
31565
|
-
|
|
31571
|
+
H(" Clear search ", -1)
|
|
31566
31572
|
])]),
|
|
31567
31573
|
_: 1
|
|
31568
31574
|
})
|
|
@@ -31688,8 +31694,8 @@ const f1 = /* @__PURE__ */ A({
|
|
|
31688
31694
|
class: "size-4 text-gray-500"
|
|
31689
31695
|
}, null, 8, ["icon"]),
|
|
31690
31696
|
T("div", U6, [
|
|
31691
|
-
T("div", V6,
|
|
31692
|
-
E.metadata ? (_(), V("div", F6,
|
|
31697
|
+
T("div", V6, k(E.label), 1),
|
|
31698
|
+
E.metadata ? (_(), V("div", F6, k(E.metadata), 1)) : $("", !0)
|
|
31693
31699
|
])
|
|
31694
31700
|
]),
|
|
31695
31701
|
_: 2
|
|
@@ -31773,7 +31779,7 @@ const f1 = /* @__PURE__ */ A({
|
|
|
31773
31779
|
_: 1
|
|
31774
31780
|
}));
|
|
31775
31781
|
}
|
|
31776
|
-
}), R6 = { class: "p-xl inline-flex items-center justify-center overflow-hidden rounded-lg" }, $6 = { class: "border-primary/50 bg-primary rounded-3xl border shadow-lg" },
|
|
31782
|
+
}), R6 = { class: "p-xl inline-flex items-center justify-center overflow-hidden rounded-lg" }, $6 = { class: "border-primary/50 bg-primary rounded-3xl border shadow-lg" }, _G = /* @__PURE__ */ A({
|
|
31777
31783
|
__name: "CrmSearchTrigger",
|
|
31778
31784
|
emits: ["select"],
|
|
31779
31785
|
setup(t, { emit: e }) {
|
|
@@ -31808,7 +31814,7 @@ const f1 = /* @__PURE__ */ A({
|
|
|
31808
31814
|
class: "text-placeholder inline-block items-center justify-between"
|
|
31809
31815
|
}, {
|
|
31810
31816
|
default: w(() => [...l[0] || (l[0] = [
|
|
31811
|
-
|
|
31817
|
+
H(" Zoeken ", -1)
|
|
31812
31818
|
])]),
|
|
31813
31819
|
_: 1
|
|
31814
31820
|
})
|
|
@@ -31872,7 +31878,7 @@ const f1 = /* @__PURE__ */ A({
|
|
|
31872
31878
|
ref_key: "dialogRef",
|
|
31873
31879
|
ref: e
|
|
31874
31880
|
}, [
|
|
31875
|
-
|
|
31881
|
+
Z(o.$slots, "default")
|
|
31876
31882
|
], 512)
|
|
31877
31883
|
]),
|
|
31878
31884
|
_: 3
|
|
@@ -31891,7 +31897,7 @@ const f1 = /* @__PURE__ */ A({
|
|
|
31891
31897
|
},
|
|
31892
31898
|
emits: /* @__PURE__ */ Ct(["next"], ["update:modelValue"]),
|
|
31893
31899
|
setup(t, { emit: e }) {
|
|
31894
|
-
const i = e, o =
|
|
31900
|
+
const i = e, o = G(), s = jt(), r = xi(t, "modelValue"), a = S(() => (s.getConfig()?.entities ?? [])?.map((f) => ({
|
|
31895
31901
|
color: f.color,
|
|
31896
31902
|
icon: m3.getIcon(f.type),
|
|
31897
31903
|
label: f.name,
|
|
@@ -31907,13 +31913,13 @@ const f1 = /* @__PURE__ */ A({
|
|
|
31907
31913
|
T("div", z6, [
|
|
31908
31914
|
b(d(wr), null, {
|
|
31909
31915
|
default: w(() => [
|
|
31910
|
-
T("h2", q6,
|
|
31916
|
+
T("h2", q6, k(d(o).t("wise_crm.contact.create_dialog.title")), 1)
|
|
31911
31917
|
]),
|
|
31912
31918
|
_: 1
|
|
31913
31919
|
}),
|
|
31914
31920
|
b(d(_r), null, {
|
|
31915
31921
|
default: w(() => [
|
|
31916
|
-
T("p", K6,
|
|
31922
|
+
T("p", K6, k(d(o).t("wise_crm.contact.create_dialog.description")), 1)
|
|
31917
31923
|
]),
|
|
31918
31924
|
_: 1
|
|
31919
31925
|
})
|
|
@@ -31941,7 +31947,7 @@ const f1 = /* @__PURE__ */ A({
|
|
|
31941
31947
|
class: "size-5"
|
|
31942
31948
|
}, null, 8, ["icon"])
|
|
31943
31949
|
]),
|
|
31944
|
-
T("span", Y6,
|
|
31950
|
+
T("span", Y6, k(f.label), 1)
|
|
31945
31951
|
])
|
|
31946
31952
|
]),
|
|
31947
31953
|
_: 2
|
|
@@ -32024,7 +32030,7 @@ const nK = { class: "text-sm" }, iK = {
|
|
|
32024
32030
|
}),
|
|
32025
32031
|
emits: /* @__PURE__ */ Ct(["createNew"], ["update:modelValue"]),
|
|
32026
32032
|
setup(t, { emit: e }) {
|
|
32027
|
-
const i = t, o = e, s = xi(t, "modelValue"), r = M(null), a = M(null), l =
|
|
32033
|
+
const i = t, o = e, s = xi(t, "modelValue"), r = M(null), a = M(null), l = G(), u = M(!0), m = tK(
|
|
32028
32034
|
S(() => a.value ?? "")
|
|
32029
32035
|
), c = /* @__PURE__ */ Lr((y) => {
|
|
32030
32036
|
y !== null && (u.value = y.length === 0 || y.trim().length === 0, a.value = y);
|
|
@@ -32067,8 +32073,8 @@ const nK = { class: "text-sm" }, iK = {
|
|
|
32067
32073
|
"bg-brand-50": E
|
|
32068
32074
|
}, "p-md px-lg flex flex-col rounded-md"])
|
|
32069
32075
|
}, [
|
|
32070
|
-
T("span", nK,
|
|
32071
|
-
C.address ? (_(), V("span", iK,
|
|
32076
|
+
T("span", nK, k(C.name), 1),
|
|
32077
|
+
C.address ? (_(), V("span", iK, k(d(Jl).format(C.address)), 1)) : $("", !0)
|
|
32072
32078
|
], 2)
|
|
32073
32079
|
]),
|
|
32074
32080
|
_: 1
|
|
@@ -32080,7 +32086,7 @@ const nK = { class: "text-sm" }, iK = {
|
|
|
32080
32086
|
form: {}
|
|
32081
32087
|
},
|
|
32082
32088
|
setup(t) {
|
|
32083
|
-
const e = t, i =
|
|
32089
|
+
const e = t, i = G(), o = jt(), s = M(!1), r = M(!1), a = S(() => o.getCustomFieldDefinitionForEntity(fe.BUSINESS).filter((x) => x.isDisplayedOnCreate)), l = e.form.register("name"), u = e.form.register("email"), m = e.form.register("address"), c = e.form.register("mobilePhone"), f = e.form.register("phone"), p = e.form.register("companyNumber"), h = e.form.register("vatNumber"), g = M(null);
|
|
32084
32090
|
function v() {
|
|
32085
32091
|
s.value = !0;
|
|
32086
32092
|
}
|
|
@@ -32146,7 +32152,7 @@ const nK = { class: "text-sm" }, iK = {
|
|
|
32146
32152
|
}), null, 16, ["label", "placeholder"]),
|
|
32147
32153
|
b(Wt, null, {
|
|
32148
32154
|
default: w(() => [
|
|
32149
|
-
|
|
32155
|
+
H(k(d(i).t("wise_crm.contact.create_dialog.form.seperator_label")), 1)
|
|
32150
32156
|
]),
|
|
32151
32157
|
_: 1
|
|
32152
32158
|
}),
|
|
@@ -32156,7 +32162,7 @@ const nK = { class: "text-sm" }, iK = {
|
|
|
32156
32162
|
}), null, 16, ["label", "placeholder"]),
|
|
32157
32163
|
b(Wt, null, {
|
|
32158
32164
|
default: w(() => [
|
|
32159
|
-
|
|
32165
|
+
H(k(d(i).t("wise_crm.contact.create_dialog.form.seperator_label")), 1)
|
|
32160
32166
|
]),
|
|
32161
32167
|
_: 1
|
|
32162
32168
|
}),
|
|
@@ -32199,7 +32205,7 @@ const nK = { class: "text-sm" }, iK = {
|
|
|
32199
32205
|
},
|
|
32200
32206
|
emits: ["back", "create", "next"],
|
|
32201
32207
|
setup(t, { emit: e }) {
|
|
32202
|
-
const i = t, o = e, s =
|
|
32208
|
+
const i = t, o = e, s = G();
|
|
32203
32209
|
function r() {
|
|
32204
32210
|
o("back");
|
|
32205
32211
|
}
|
|
@@ -32213,7 +32219,7 @@ const nK = { class: "text-sm" }, iK = {
|
|
|
32213
32219
|
onClick: r
|
|
32214
32220
|
}, {
|
|
32215
32221
|
default: w(() => [
|
|
32216
|
-
|
|
32222
|
+
H(k(d(s).t("wise_crm.shared.back")), 1)
|
|
32217
32223
|
]),
|
|
32218
32224
|
_: 1
|
|
32219
32225
|
}),
|
|
@@ -32226,7 +32232,7 @@ const nK = { class: "text-sm" }, iK = {
|
|
|
32226
32232
|
class: "flex-1"
|
|
32227
32233
|
}, {
|
|
32228
32234
|
default: w(() => [
|
|
32229
|
-
|
|
32235
|
+
H(k(d(s).t("wise_crm.shared.create")), 1)
|
|
32230
32236
|
]),
|
|
32231
32237
|
_: 1
|
|
32232
32238
|
}, 8, ["is-loading"])
|
|
@@ -32239,7 +32245,7 @@ const nK = { class: "text-sm" }, iK = {
|
|
|
32239
32245
|
},
|
|
32240
32246
|
emits: ["back"],
|
|
32241
32247
|
setup(t, { emit: e }) {
|
|
32242
|
-
const i = t, o = e, s =
|
|
32248
|
+
const i = t, o = e, s = G(), r = jt(), a = S(() => r.getConfigForEntity(fe.BUSINESS)), l = S(() => r.getCustomFieldDefinitionForEntity(fe.BUSINESS).filter((c) => c.isDisplayedOnCreate)), u = st({
|
|
32243
32249
|
initialState: {
|
|
32244
32250
|
childUuid: null,
|
|
32245
32251
|
parentUuid: null,
|
|
@@ -32328,7 +32334,7 @@ const lK = { class: "py-2xl" }, uK = /* @__PURE__ */ A({
|
|
|
32328
32334
|
},
|
|
32329
32335
|
emits: ["back"],
|
|
32330
32336
|
setup(t, { emit: e }) {
|
|
32331
|
-
const i = t, o = e, s =
|
|
32337
|
+
const i = t, o = e, s = G(), r = jt(), a = S(() => r.getConfigForEntity(Mo.INDIVIDUAL)), l = S(() => r.getCustomFieldDefinitionForEntity(Mo.INDIVIDUAL).filter((y) => y.isDisplayedOnCreate)), u = st({
|
|
32332
32338
|
initialState: {
|
|
32333
32339
|
address: null,
|
|
32334
32340
|
customFields: null,
|
|
@@ -32401,7 +32407,7 @@ const lK = { class: "py-2xl" }, uK = /* @__PURE__ */ A({
|
|
|
32401
32407
|
}), null, 16, ["label", "placeholder"]),
|
|
32402
32408
|
b(Wt, null, {
|
|
32403
32409
|
default: w(() => [
|
|
32404
|
-
|
|
32410
|
+
H(k(d(s).t("wise_crm.contact.create_dialog.form.seperator_label")), 1)
|
|
32405
32411
|
]),
|
|
32406
32412
|
_: 1
|
|
32407
32413
|
}),
|
|
@@ -32411,7 +32417,7 @@ const lK = { class: "py-2xl" }, uK = /* @__PURE__ */ A({
|
|
|
32411
32417
|
}), null, 16, ["label", "placeholder"]),
|
|
32412
32418
|
b(Wt, null, {
|
|
32413
32419
|
default: w(() => [
|
|
32414
|
-
|
|
32420
|
+
H(k(d(s).t("wise_crm.contact.create_dialog.form.seperator_label")), 1)
|
|
32415
32421
|
]),
|
|
32416
32422
|
_: 1
|
|
32417
32423
|
}),
|
|
@@ -32550,7 +32556,7 @@ const lK = { class: "py-2xl" }, uK = /* @__PURE__ */ A({
|
|
|
32550
32556
|
}));
|
|
32551
32557
|
}
|
|
32552
32558
|
});
|
|
32553
|
-
function
|
|
32559
|
+
function wG() {
|
|
32554
32560
|
const t = Ft(dK);
|
|
32555
32561
|
function e(i) {
|
|
32556
32562
|
t.open({
|
|
@@ -32819,14 +32825,14 @@ function _K(t) {
|
|
|
32819
32825
|
const wK = {}, xK = { class: "p-xl" };
|
|
32820
32826
|
function CK(t, e) {
|
|
32821
32827
|
return _(), V("div", xK, [
|
|
32822
|
-
|
|
32828
|
+
Z(t.$slots, "default")
|
|
32823
32829
|
]);
|
|
32824
32830
|
}
|
|
32825
32831
|
const nl = /* @__PURE__ */ Ui(wK, [["render", CK]]), EK = { class: "py-2xl" }, SK = { class: "border-primary bg-primary border-t" }, IK = /* @__PURE__ */ A({
|
|
32826
32832
|
__name: "DealCreateDialogBusinessCreateForm",
|
|
32827
32833
|
emits: ["back", "businessCreated"],
|
|
32828
32834
|
setup(t, { emit: e }) {
|
|
32829
|
-
const i = e, o =
|
|
32835
|
+
const i = e, o = G(), s = jt(), r = Ke(), a = mf();
|
|
32830
32836
|
async function l(f) {
|
|
32831
32837
|
try {
|
|
32832
32838
|
const p = await a.execute({
|
|
@@ -32881,7 +32887,7 @@ const nl = /* @__PURE__ */ Ui(wK, [["render", CK]]), EK = { class: "py-2xl" }, S
|
|
|
32881
32887
|
onClick: c
|
|
32882
32888
|
}, {
|
|
32883
32889
|
default: w(() => [
|
|
32884
|
-
|
|
32890
|
+
H(k(d(o).t("shared.previous")), 1)
|
|
32885
32891
|
]),
|
|
32886
32892
|
_: 1
|
|
32887
32893
|
}),
|
|
@@ -32891,7 +32897,7 @@ const nl = /* @__PURE__ */ Ui(wK, [["render", CK]]), EK = { class: "py-2xl" }, S
|
|
|
32891
32897
|
type: "submit"
|
|
32892
32898
|
}, {
|
|
32893
32899
|
default: w(() => [
|
|
32894
|
-
|
|
32900
|
+
H(k(d(o).t("shared.next")), 1)
|
|
32895
32901
|
]),
|
|
32896
32902
|
_: 1
|
|
32897
32903
|
}, 8, ["is-loading"])
|
|
@@ -32911,7 +32917,7 @@ const nl = /* @__PURE__ */ Ui(wK, [["render", CK]]), EK = { class: "py-2xl" }, S
|
|
|
32911
32917
|
stepper: {}
|
|
32912
32918
|
},
|
|
32913
32919
|
setup(t) {
|
|
32914
|
-
const e = t, i =
|
|
32920
|
+
const e = t, i = G(), o = S(() => {
|
|
32915
32921
|
for (let l = 0; l < e.stepper.index.value; l++)
|
|
32916
32922
|
if (!e.stepper.findStepAt(l)?.isValid)
|
|
32917
32923
|
return !1;
|
|
@@ -32933,7 +32939,7 @@ const nl = /* @__PURE__ */ Ui(wK, [["render", CK]]), EK = { class: "py-2xl" }, S
|
|
|
32933
32939
|
onClick: t.stepper.goToPrevious
|
|
32934
32940
|
}, {
|
|
32935
32941
|
default: w(() => [
|
|
32936
|
-
|
|
32942
|
+
H(k(d(i).t("shared.previous")), 1)
|
|
32937
32943
|
]),
|
|
32938
32944
|
_: 1
|
|
32939
32945
|
}, 8, ["is-disabled", "onClick"]),
|
|
@@ -32954,7 +32960,7 @@ const nl = /* @__PURE__ */ Ui(wK, [["render", CK]]), EK = { class: "py-2xl" }, S
|
|
|
32954
32960
|
type: "submit"
|
|
32955
32961
|
}, {
|
|
32956
32962
|
default: w(() => [
|
|
32957
|
-
|
|
32963
|
+
H(k(d(i).t("shared.add")), 1)
|
|
32958
32964
|
]),
|
|
32959
32965
|
_: 1
|
|
32960
32966
|
}, 8, ["is-disabled", "is-loading"])) : (_(), I(d(Ie), {
|
|
@@ -32964,7 +32970,7 @@ const nl = /* @__PURE__ */ Ui(wK, [["render", CK]]), EK = { class: "py-2xl" }, S
|
|
|
32964
32970
|
onClick: a
|
|
32965
32971
|
}, {
|
|
32966
32972
|
default: w(() => [
|
|
32967
|
-
|
|
32973
|
+
H(k(d(i).t("shared.next")), 1)
|
|
32968
32974
|
]),
|
|
32969
32975
|
_: 1
|
|
32970
32976
|
}, 8, ["is-disabled"]))
|
|
@@ -33001,7 +33007,7 @@ const kK = /* @__PURE__ */ A({
|
|
|
33001
33007
|
form: {}
|
|
33002
33008
|
},
|
|
33003
33009
|
setup(t) {
|
|
33004
|
-
const e = t, i =
|
|
33010
|
+
const e = t, i = G(), o = e.form.register("name"), s = e.form.register("dealLanguage"), r = e.form.register("dealSource");
|
|
33005
33011
|
function a(u) {
|
|
33006
33012
|
return i.t(TK.getI18nKey(u));
|
|
33007
33013
|
}
|
|
@@ -33025,7 +33031,7 @@ const kK = /* @__PURE__ */ A({
|
|
|
33025
33031
|
value: c
|
|
33026
33032
|
}, {
|
|
33027
33033
|
default: w(() => [
|
|
33028
|
-
|
|
33034
|
+
H(k(a(c)), 1)
|
|
33029
33035
|
]),
|
|
33030
33036
|
_: 2
|
|
33031
33037
|
}, 1032, ["value"]))), 128))
|
|
@@ -33043,7 +33049,7 @@ const kK = /* @__PURE__ */ A({
|
|
|
33043
33049
|
value: c
|
|
33044
33050
|
}, {
|
|
33045
33051
|
default: w(() => [
|
|
33046
|
-
|
|
33052
|
+
H(k(l(c)), 1)
|
|
33047
33053
|
]),
|
|
33048
33054
|
_: 2
|
|
33049
33055
|
}, 1032, ["value"]))), 128))
|
|
@@ -33067,7 +33073,7 @@ const kK = /* @__PURE__ */ A({
|
|
|
33067
33073
|
}),
|
|
33068
33074
|
emits: /* @__PURE__ */ Ct(["createNew"], ["update:modelValue"]),
|
|
33069
33075
|
setup(t, { emit: e }) {
|
|
33070
|
-
const i = t, o = e, s =
|
|
33076
|
+
const i = t, o = e, s = G(), r = xi(t, "modelValue"), a = M(!0), l = bn({
|
|
33071
33077
|
isRouteQueryEnabled: !1
|
|
33072
33078
|
}), u = bf(
|
|
33073
33079
|
l.paginationOptions,
|
|
@@ -33102,8 +33108,8 @@ const kK = /* @__PURE__ */ A({
|
|
|
33102
33108
|
"bg-brand-50": x
|
|
33103
33109
|
}, "p-md px-lg flex flex-col rounded-md"])
|
|
33104
33110
|
}, [
|
|
33105
|
-
T("span", NK,
|
|
33106
|
-
T("span", UK,
|
|
33111
|
+
T("span", NK, k(y.name), 1),
|
|
33112
|
+
T("span", UK, k(y.email) + " | " + k(d(e1).format(y.vatNumber)), 1)
|
|
33107
33113
|
], 2)
|
|
33108
33114
|
]),
|
|
33109
33115
|
_: 1
|
|
@@ -33116,39 +33122,39 @@ const kK = /* @__PURE__ */ A({
|
|
|
33116
33122
|
},
|
|
33117
33123
|
emits: ["createNew"],
|
|
33118
33124
|
setup(t, { emit: e }) {
|
|
33119
|
-
const i = t, o = e;
|
|
33120
|
-
function
|
|
33125
|
+
const i = t, o = e, s = G();
|
|
33126
|
+
function r() {
|
|
33121
33127
|
o("createNew");
|
|
33122
33128
|
}
|
|
33123
|
-
const
|
|
33124
|
-
|
|
33125
|
-
label:
|
|
33126
|
-
value:
|
|
33129
|
+
const a = i.form.register("clientId"), l = M(
|
|
33130
|
+
a.modelValue.value ? {
|
|
33131
|
+
label: a.modelValue.value.name,
|
|
33132
|
+
value: a.modelValue.value.uuid
|
|
33127
33133
|
} : null
|
|
33128
33134
|
);
|
|
33129
|
-
function
|
|
33130
|
-
if (
|
|
33131
|
-
|
|
33135
|
+
function u(m) {
|
|
33136
|
+
if (l.value = m, m === null) {
|
|
33137
|
+
a.setValue(null);
|
|
33132
33138
|
return;
|
|
33133
33139
|
}
|
|
33134
|
-
|
|
33135
|
-
uuid:
|
|
33136
|
-
name:
|
|
33140
|
+
a.setValue({
|
|
33141
|
+
uuid: m.value,
|
|
33142
|
+
name: m.label,
|
|
33137
33143
|
type: ll.BUSINESS
|
|
33138
33144
|
});
|
|
33139
33145
|
}
|
|
33140
|
-
return (
|
|
33146
|
+
return (m, c) => (_(), I(Ne, { cols: 1 }, {
|
|
33141
33147
|
default: w(() => [
|
|
33142
33148
|
b(VK, {
|
|
33143
|
-
modelValue:
|
|
33149
|
+
modelValue: l.value,
|
|
33144
33150
|
"onUpdate:modelValue": [
|
|
33145
|
-
|
|
33146
|
-
|
|
33151
|
+
c[0] || (c[0] = (f) => l.value = f),
|
|
33152
|
+
u
|
|
33147
33153
|
],
|
|
33148
33154
|
"is-required": !0,
|
|
33149
|
-
label: "
|
|
33150
|
-
onCreateNew:
|
|
33151
|
-
}, null, 8, ["modelValue"])
|
|
33155
|
+
label: d(s).t("wise_crm.deal.form.fields.search_vat_number"),
|
|
33156
|
+
onCreateNew: r
|
|
33157
|
+
}, null, 8, ["modelValue", "label"])
|
|
33152
33158
|
]),
|
|
33153
33159
|
_: 1
|
|
33154
33160
|
}));
|
|
@@ -33162,7 +33168,7 @@ const kK = /* @__PURE__ */ A({
|
|
|
33162
33168
|
},
|
|
33163
33169
|
emits: ["createNewBusiness"],
|
|
33164
33170
|
setup(t, { emit: e }) {
|
|
33165
|
-
const i = t, o = e, s =
|
|
33171
|
+
const i = t, o = e, s = G();
|
|
33166
33172
|
function r() {
|
|
33167
33173
|
o("createNewBusiness");
|
|
33168
33174
|
}
|
|
@@ -33214,7 +33220,7 @@ const kK = /* @__PURE__ */ A({
|
|
|
33214
33220
|
__name: "DealCreateDialog",
|
|
33215
33221
|
emits: ["close"],
|
|
33216
33222
|
setup(t, { emit: e }) {
|
|
33217
|
-
const i = e, o =
|
|
33223
|
+
const i = e, o = G(), s = Ke(), r = yK(), a = M(!1), l = st({
|
|
33218
33224
|
initialState: {
|
|
33219
33225
|
clientId: null,
|
|
33220
33226
|
dealOwnerUuid: null,
|
|
@@ -33375,7 +33381,7 @@ const qK = { class: "font-medium" }, KK = /* @__PURE__ */ A({
|
|
|
33375
33381
|
justify: "between"
|
|
33376
33382
|
}, {
|
|
33377
33383
|
default: w(() => [
|
|
33378
|
-
T("p", qK,
|
|
33384
|
+
T("p", qK, k(i.deal.name), 1),
|
|
33379
33385
|
b(d(_e), {
|
|
33380
33386
|
class: "text-placeholder size-4",
|
|
33381
33387
|
icon: "chevronRight"
|
|
@@ -33397,7 +33403,7 @@ const qK = { class: "font-medium" }, KK = /* @__PURE__ */ A({
|
|
|
33397
33403
|
variant: "translucent"
|
|
33398
33404
|
}, {
|
|
33399
33405
|
default: w(() => [
|
|
33400
|
-
|
|
33406
|
+
H(k(d(s).toDate(i.deal.createdAt.toPlainDate())), 1)
|
|
33401
33407
|
]),
|
|
33402
33408
|
_: 1
|
|
33403
33409
|
})
|
|
@@ -33437,7 +33443,7 @@ const qK = { class: "font-medium" }, KK = /* @__PURE__ */ A({
|
|
|
33437
33443
|
variant: "translucent"
|
|
33438
33444
|
}, {
|
|
33439
33445
|
default: w(() => [
|
|
33440
|
-
|
|
33446
|
+
H(k(i.column.displayName), 1)
|
|
33441
33447
|
]),
|
|
33442
33448
|
_: 1
|
|
33443
33449
|
})
|
|
@@ -33455,44 +33461,45 @@ const qK = { class: "font-medium" }, KK = /* @__PURE__ */ A({
|
|
|
33455
33461
|
})
|
|
33456
33462
|
]));
|
|
33457
33463
|
}
|
|
33458
|
-
}), ZK = { class: "p-lg opverflow-hidden flex h-dvh flex-col" }, YK = { class: "gap-sm p-md flex flex-1 overflow-x-auto" },
|
|
33464
|
+
}), ZK = { class: "p-lg opverflow-hidden flex h-dvh flex-col" }, YK = { class: "p-md flex justify-between" }, QK = { class: "text-2xl font-bold" }, JK = { class: "gap-sm p-md flex flex-1 overflow-x-auto" }, xG = /* @__PURE__ */ A({
|
|
33459
33465
|
__name: "DealOverview",
|
|
33460
33466
|
setup(t) {
|
|
33461
|
-
const e =
|
|
33462
|
-
function
|
|
33463
|
-
|
|
33467
|
+
const e = G(), i = Qo(), o = pK(), s = Ft(RK);
|
|
33468
|
+
function r() {
|
|
33469
|
+
s.open();
|
|
33464
33470
|
}
|
|
33465
|
-
function
|
|
33466
|
-
|
|
33471
|
+
function a(l) {
|
|
33472
|
+
i.push({
|
|
33467
33473
|
name: "deal-detail",
|
|
33468
33474
|
params: {
|
|
33469
|
-
dealUuid:
|
|
33475
|
+
dealUuid: l
|
|
33470
33476
|
}
|
|
33471
33477
|
});
|
|
33472
33478
|
}
|
|
33473
|
-
return (
|
|
33474
|
-
T("div",
|
|
33479
|
+
return (l, u) => (_(), V("div", ZK, [
|
|
33480
|
+
T("div", YK, [
|
|
33481
|
+
T("p", QK, k(d(e).t("wise_crm.deal.overview_title")), 1),
|
|
33475
33482
|
b(d(Ie), {
|
|
33476
33483
|
"icon-left": "plus",
|
|
33477
|
-
onClick:
|
|
33484
|
+
onClick: r
|
|
33478
33485
|
}, {
|
|
33479
|
-
default: w(() => [
|
|
33480
|
-
|
|
33481
|
-
])
|
|
33486
|
+
default: w(() => [
|
|
33487
|
+
H(k(d(e).t("wise_crm.deal.overview.create")), 1)
|
|
33488
|
+
]),
|
|
33482
33489
|
_: 1
|
|
33483
33490
|
})
|
|
33484
33491
|
]),
|
|
33485
|
-
T("div",
|
|
33486
|
-
(_(!0), V(le, null, pe(d(
|
|
33487
|
-
key:
|
|
33488
|
-
column:
|
|
33489
|
-
onOpenDeal:
|
|
33492
|
+
T("div", JK, [
|
|
33493
|
+
(_(!0), V(le, null, pe(d(o).data.value ?? [], (m) => (_(), I(WK, {
|
|
33494
|
+
key: m.uuid,
|
|
33495
|
+
column: m,
|
|
33496
|
+
onOpenDeal: a
|
|
33490
33497
|
}, null, 8, ["column"]))), 128))
|
|
33491
33498
|
])
|
|
33492
33499
|
]));
|
|
33493
33500
|
}
|
|
33494
33501
|
});
|
|
33495
|
-
function
|
|
33502
|
+
function XK() {
|
|
33496
33503
|
return $e({
|
|
33497
33504
|
queryFn: async ({
|
|
33498
33505
|
body: t,
|
|
@@ -33509,7 +33516,7 @@ function QK() {
|
|
|
33509
33516
|
}
|
|
33510
33517
|
});
|
|
33511
33518
|
}
|
|
33512
|
-
function
|
|
33519
|
+
function e4(t, e) {
|
|
33513
33520
|
return zt({
|
|
33514
33521
|
isEnabled: S(() => t.value !== null && e.value),
|
|
33515
33522
|
queryFn: () => (Jo(t.value !== null, "Individual UUID must not be null"), at.getBillingInformation(t.value)),
|
|
@@ -33534,11 +33541,11 @@ function Af(t) {
|
|
|
33534
33541
|
}
|
|
33535
33542
|
});
|
|
33536
33543
|
}
|
|
33537
|
-
const
|
|
33544
|
+
const t4 = n.object({
|
|
33538
33545
|
billingAddress: Cn,
|
|
33539
33546
|
invoiceCcEmails: n.array(n.string().email()),
|
|
33540
33547
|
invoiceEmail: n.string().email()
|
|
33541
|
-
}),
|
|
33548
|
+
}), n4 = /* @__PURE__ */ A({
|
|
33542
33549
|
__name: "IndividualBillingInformationUpdateForm",
|
|
33543
33550
|
props: {
|
|
33544
33551
|
individualUuid: {},
|
|
@@ -33547,13 +33554,13 @@ const XK = n.object({
|
|
|
33547
33554
|
onSubmit: { type: Function }
|
|
33548
33555
|
},
|
|
33549
33556
|
setup(t) {
|
|
33550
|
-
const e = t, i =
|
|
33557
|
+
const e = t, i = G(), o = st({
|
|
33551
33558
|
initialState: S(() => e.billingInformation === null ? null : {
|
|
33552
33559
|
billingAddress: e.individualAddress,
|
|
33553
33560
|
invoiceCcEmails: e.billingInformation.invoiceCcEmails ?? [],
|
|
33554
33561
|
invoiceEmail: e.billingInformation.invoiceEmail
|
|
33555
33562
|
}),
|
|
33556
|
-
schema:
|
|
33563
|
+
schema: t4,
|
|
33557
33564
|
onSubmit: async (l) => {
|
|
33558
33565
|
await e.onSubmit(l);
|
|
33559
33566
|
}
|
|
@@ -33601,7 +33608,7 @@ const XK = n.object({
|
|
|
33601
33608
|
type: "submit"
|
|
33602
33609
|
}, {
|
|
33603
33610
|
default: w(() => [
|
|
33604
|
-
|
|
33611
|
+
H(k(d(i).t("wise_crm.shared.save_changes")), 1)
|
|
33605
33612
|
]),
|
|
33606
33613
|
_: 1
|
|
33607
33614
|
}, 8, ["is-loading"])
|
|
@@ -33615,13 +33622,13 @@ const XK = n.object({
|
|
|
33615
33622
|
_: 1
|
|
33616
33623
|
}, 8, ["form"]));
|
|
33617
33624
|
}
|
|
33618
|
-
}),
|
|
33625
|
+
}), CG = /* @__PURE__ */ A({
|
|
33619
33626
|
__name: "IndividualBillingInformationCard",
|
|
33620
33627
|
props: {
|
|
33621
33628
|
individualUuid: {}
|
|
33622
33629
|
},
|
|
33623
33630
|
setup(t) {
|
|
33624
|
-
const e = t, i = Ke(), o =
|
|
33631
|
+
const e = t, i = Ke(), o = XK(), s = S(() => e.individualUuid), r = Af(s), a = S(() => r.data.value === null ? !1 : r.data.value.billingInformationDetail !== null), l = e4(
|
|
33625
33632
|
s,
|
|
33626
33633
|
S(() => a.value)
|
|
33627
33634
|
), u = S(() => l.data.value?.billingLocation.address ?? null);
|
|
@@ -33640,7 +33647,7 @@ const XK = n.object({
|
|
|
33640
33647
|
return (c, f) => d(r).isLoading.value || d(l).isLoading.value ? (_(), I(Cs, {
|
|
33641
33648
|
key: 0,
|
|
33642
33649
|
class: "h-40"
|
|
33643
|
-
})) : (_(), I(
|
|
33650
|
+
})) : (_(), I(n4, {
|
|
33644
33651
|
key: 1,
|
|
33645
33652
|
"individual-address": u.value,
|
|
33646
33653
|
"individual-uuid": s.value,
|
|
@@ -33649,7 +33656,7 @@ const XK = n.object({
|
|
|
33649
33656
|
}, null, 8, ["individual-address", "individual-uuid", "billing-information"]));
|
|
33650
33657
|
}
|
|
33651
33658
|
});
|
|
33652
|
-
function
|
|
33659
|
+
function i4() {
|
|
33653
33660
|
return $e({
|
|
33654
33661
|
queryFn: async ({
|
|
33655
33662
|
body: t,
|
|
@@ -33674,7 +33681,7 @@ n.object({
|
|
|
33674
33681
|
phone: n.string().min(1).nullable(),
|
|
33675
33682
|
socialSecurityNumber: n.string().min(1).nullable()
|
|
33676
33683
|
});
|
|
33677
|
-
function
|
|
33684
|
+
function o4(t) {
|
|
33678
33685
|
return n.object({
|
|
33679
33686
|
birthDate: km.nullable(),
|
|
33680
33687
|
address: Cn,
|
|
@@ -33687,7 +33694,7 @@ function n4(t) {
|
|
|
33687
33694
|
socialSecurityNumber: n.string().min(1).nullable()
|
|
33688
33695
|
});
|
|
33689
33696
|
}
|
|
33690
|
-
const
|
|
33697
|
+
const s4 = /* @__PURE__ */ A({
|
|
33691
33698
|
__name: "IndividualCustomerInfoForm",
|
|
33692
33699
|
props: {
|
|
33693
33700
|
customFieldDefinitions: {},
|
|
@@ -33695,9 +33702,9 @@ const i4 = /* @__PURE__ */ A({
|
|
|
33695
33702
|
onSubmit: { type: Function }
|
|
33696
33703
|
},
|
|
33697
33704
|
setup(t) {
|
|
33698
|
-
const e = t, i =
|
|
33705
|
+
const e = t, i = G(), o = st({
|
|
33699
33706
|
initialState: Fw.toForm(e.individual),
|
|
33700
|
-
schema:
|
|
33707
|
+
schema: o4(e.customFieldDefinitions),
|
|
33701
33708
|
onSubmit: async (p) => {
|
|
33702
33709
|
await e.onSubmit(p);
|
|
33703
33710
|
}
|
|
@@ -33726,7 +33733,7 @@ const i4 = /* @__PURE__ */ A({
|
|
|
33726
33733
|
type: "submit"
|
|
33727
33734
|
}, {
|
|
33728
33735
|
default: w(() => [
|
|
33729
|
-
|
|
33736
|
+
H(k(d(i).t("wise_crm.shared.save_changes")), 1)
|
|
33730
33737
|
]),
|
|
33731
33738
|
_: 1
|
|
33732
33739
|
}, 8, ["is-loading"])
|
|
@@ -33781,13 +33788,13 @@ const i4 = /* @__PURE__ */ A({
|
|
|
33781
33788
|
_: 1
|
|
33782
33789
|
}, 8, ["form"]));
|
|
33783
33790
|
}
|
|
33784
|
-
}),
|
|
33791
|
+
}), EG = /* @__PURE__ */ A({
|
|
33785
33792
|
__name: "IndividualInfoUpdateCard",
|
|
33786
33793
|
props: {
|
|
33787
33794
|
individualUuid: {}
|
|
33788
33795
|
},
|
|
33789
33796
|
setup(t) {
|
|
33790
|
-
const e = t, i = jt(), o = Ke(), s = S(() => e.individualUuid), r = Af(s), a =
|
|
33797
|
+
const e = t, i = jt(), o = Ke(), s = S(() => e.individualUuid), r = Af(s), a = i4();
|
|
33791
33798
|
async function l(u) {
|
|
33792
33799
|
try {
|
|
33793
33800
|
await a.execute({
|
|
@@ -33803,18 +33810,18 @@ const i4 = /* @__PURE__ */ A({
|
|
|
33803
33810
|
return (u, m) => d(r).isLoading.value ? (_(), I(Cs, {
|
|
33804
33811
|
key: 0,
|
|
33805
33812
|
class: "h-100"
|
|
33806
|
-
})) : d(r).data.value ? (_(), I(
|
|
33813
|
+
})) : d(r).data.value ? (_(), I(s4, {
|
|
33807
33814
|
key: 1,
|
|
33808
33815
|
"on-submit": l,
|
|
33809
33816
|
individual: d(r).data.value,
|
|
33810
33817
|
"custom-field-definitions": d(i).getCustomFieldDefinitionForEntity(d(fe).INDIVIDUAL)
|
|
33811
33818
|
}, null, 8, ["individual", "custom-field-definitions"])) : $("", !0);
|
|
33812
33819
|
}
|
|
33813
|
-
}),
|
|
33814
|
-
function
|
|
33815
|
-
wt(
|
|
33820
|
+
}), r4 = Symbol("individualDialogContext");
|
|
33821
|
+
function a4(t) {
|
|
33822
|
+
wt(r4, t);
|
|
33816
33823
|
}
|
|
33817
|
-
function
|
|
33824
|
+
function l4() {
|
|
33818
33825
|
return $e({
|
|
33819
33826
|
queryFn: async ({
|
|
33820
33827
|
body: t,
|
|
@@ -33827,7 +33834,7 @@ function r4() {
|
|
|
33827
33834
|
}
|
|
33828
33835
|
});
|
|
33829
33836
|
}
|
|
33830
|
-
function
|
|
33837
|
+
function u4(t, e) {
|
|
33831
33838
|
return Xo({
|
|
33832
33839
|
paginationOptions: e,
|
|
33833
33840
|
queryFn: async (i) => await at.getActivity(t.value, i),
|
|
@@ -33838,7 +33845,7 @@ function a4(t, e) {
|
|
|
33838
33845
|
}
|
|
33839
33846
|
});
|
|
33840
33847
|
}
|
|
33841
|
-
const
|
|
33848
|
+
const c4 = /* @__PURE__ */ A({
|
|
33842
33849
|
__name: "IndividualDialogSidebarActivityContent",
|
|
33843
33850
|
props: {
|
|
33844
33851
|
individual: {}
|
|
@@ -33847,7 +33854,7 @@ const l4 = /* @__PURE__ */ A({
|
|
|
33847
33854
|
const e = t, i = bn({
|
|
33848
33855
|
isRouteQueryEnabled: !1,
|
|
33849
33856
|
type: "keyset"
|
|
33850
|
-
}), o = S(() => e.individual.uuid), s =
|
|
33857
|
+
}), o = S(() => e.individual.uuid), s = u4(o, i.paginationOptions), r = S(() => s.data.value.data ?? []);
|
|
33851
33858
|
async function a() {
|
|
33852
33859
|
await s.getNextPage();
|
|
33853
33860
|
}
|
|
@@ -33858,7 +33865,7 @@ const l4 = /* @__PURE__ */ A({
|
|
|
33858
33865
|
}, null, 8, ["is-loading", "activities"]));
|
|
33859
33866
|
}
|
|
33860
33867
|
});
|
|
33861
|
-
function
|
|
33868
|
+
function d4() {
|
|
33862
33869
|
return $e({
|
|
33863
33870
|
queryFn: async ({
|
|
33864
33871
|
body: t,
|
|
@@ -33869,7 +33876,7 @@ function u4() {
|
|
|
33869
33876
|
}
|
|
33870
33877
|
});
|
|
33871
33878
|
}
|
|
33872
|
-
function
|
|
33879
|
+
function m4(t, e) {
|
|
33873
33880
|
return Xo({
|
|
33874
33881
|
paginationOptions: t,
|
|
33875
33882
|
queryFn: (i) => hs.getIndividualNotes(i, e.value),
|
|
@@ -33880,16 +33887,16 @@ function c4(t, e) {
|
|
|
33880
33887
|
}
|
|
33881
33888
|
});
|
|
33882
33889
|
}
|
|
33883
|
-
const
|
|
33890
|
+
const f4 = /* @__PURE__ */ A({
|
|
33884
33891
|
__name: "IndividualDialogSidebarNotesContent",
|
|
33885
33892
|
props: {
|
|
33886
33893
|
individual: {}
|
|
33887
33894
|
},
|
|
33888
33895
|
setup(t) {
|
|
33889
|
-
const e = t, i = Ke(), o =
|
|
33896
|
+
const e = t, i = Ke(), o = d4(), s = I_(), r = Ft(M_), a = bn({
|
|
33890
33897
|
isRouteQueryEnabled: !1,
|
|
33891
33898
|
type: "keyset"
|
|
33892
|
-
}), l =
|
|
33899
|
+
}), l = m4(
|
|
33893
33900
|
a.paginationOptions,
|
|
33894
33901
|
S(() => e.individual.uuid)
|
|
33895
33902
|
), u = S(() => l.data?.value?.data ?? []);
|
|
@@ -33933,7 +33940,7 @@ const d4 = /* @__PURE__ */ A({
|
|
|
33933
33940
|
}, null, 8, ["is-loading", "notes", "has-next-page", "onNext"]));
|
|
33934
33941
|
}
|
|
33935
33942
|
});
|
|
33936
|
-
function
|
|
33943
|
+
function p4() {
|
|
33937
33944
|
const t = Gl(), e = "wiseCrmIndividualDetail", i = yw({
|
|
33938
33945
|
mutationFn: async (o) => {
|
|
33939
33946
|
await at.setPrimaryContactPerson(o.individualUuid, o.contactPersonUuid);
|
|
@@ -34003,7 +34010,7 @@ function m4() {
|
|
|
34003
34010
|
}
|
|
34004
34011
|
};
|
|
34005
34012
|
}
|
|
34006
|
-
function
|
|
34013
|
+
function h4() {
|
|
34007
34014
|
return $e({
|
|
34008
34015
|
queryFn: async ({
|
|
34009
34016
|
body: t,
|
|
@@ -34017,17 +34024,17 @@ function f4() {
|
|
|
34017
34024
|
}
|
|
34018
34025
|
});
|
|
34019
34026
|
}
|
|
34020
|
-
const
|
|
34027
|
+
const g4 = { class: "gap-md flex flex-col" }, v4 = { class: "gap-sm border-secondary pb-sm flex flex-col border-b" }, b4 = { class: "pt-lg" }, y4 = /* @__PURE__ */ A({
|
|
34021
34028
|
__name: "InfoDialogSidebarAccordionCustomerInfo",
|
|
34022
34029
|
props: {
|
|
34023
34030
|
individual: {}
|
|
34024
34031
|
},
|
|
34025
34032
|
setup(t) {
|
|
34026
|
-
const e = t, i =
|
|
34027
|
-
return (o, s) => (_(), V("div",
|
|
34033
|
+
const e = t, i = G();
|
|
34034
|
+
return (o, s) => (_(), V("div", g4, [
|
|
34028
34035
|
b(vo, null, {
|
|
34029
34036
|
default: w(() => [
|
|
34030
|
-
T("div",
|
|
34037
|
+
T("div", v4, [
|
|
34031
34038
|
b(ot, {
|
|
34032
34039
|
label: d(i).t("wise_crm.info_dialog.sidebar.overview.birthday_label", {
|
|
34033
34040
|
value: e.individual.birthDate ? d(no)().toDate(e.individual.birthDate) : "-"
|
|
@@ -34041,7 +34048,7 @@ const p4 = { class: "gap-md flex flex-col" }, h4 = { class: "gap-sm border-secon
|
|
|
34041
34048
|
icon: "hash"
|
|
34042
34049
|
}, null, 8, ["label"])
|
|
34043
34050
|
]),
|
|
34044
|
-
T("div",
|
|
34051
|
+
T("div", b4, [
|
|
34045
34052
|
b(ot, {
|
|
34046
34053
|
label: d(i).t("wise_crm.info_dialog.sidebar.overview.created_at_label", {
|
|
34047
34054
|
value: e.individual.createdAt ? d(no)().toDateTime(e.individual.createdAt) : "-"
|
|
@@ -34058,7 +34065,7 @@ const p4 = { class: "gap-md flex flex-col" }, h4 = { class: "gap-sm border-secon
|
|
|
34058
34065
|
]));
|
|
34059
34066
|
}
|
|
34060
34067
|
});
|
|
34061
|
-
function
|
|
34068
|
+
function _4() {
|
|
34062
34069
|
return $e({
|
|
34063
34070
|
queryFn: async ({
|
|
34064
34071
|
body: t,
|
|
@@ -34077,7 +34084,7 @@ function b4() {
|
|
|
34077
34084
|
}
|
|
34078
34085
|
});
|
|
34079
34086
|
}
|
|
34080
|
-
const
|
|
34087
|
+
const w4 = /* @__PURE__ */ A({
|
|
34081
34088
|
__name: "IndividualContactPersonCreateDialog",
|
|
34082
34089
|
props: {
|
|
34083
34090
|
individualUuid: {},
|
|
@@ -34085,7 +34092,7 @@ const y4 = /* @__PURE__ */ A({
|
|
|
34085
34092
|
},
|
|
34086
34093
|
emits: ["close", "createNewContactPerson"],
|
|
34087
34094
|
setup(t, { emit: e }) {
|
|
34088
|
-
const i = t, o = e, s =
|
|
34095
|
+
const i = t, o = e, s = G(), r = Ke(), a = _4(), l = Mw();
|
|
34089
34096
|
async function u(f) {
|
|
34090
34097
|
try {
|
|
34091
34098
|
const p = await l.execute({
|
|
@@ -34153,7 +34160,7 @@ const y4 = /* @__PURE__ */ A({
|
|
|
34153
34160
|
}, 8, ["title", "description"]));
|
|
34154
34161
|
}
|
|
34155
34162
|
});
|
|
34156
|
-
function
|
|
34163
|
+
function x4() {
|
|
34157
34164
|
return $e({
|
|
34158
34165
|
queryFn: async ({
|
|
34159
34166
|
body: t,
|
|
@@ -34170,7 +34177,7 @@ function _4() {
|
|
|
34170
34177
|
}
|
|
34171
34178
|
});
|
|
34172
34179
|
}
|
|
34173
|
-
function
|
|
34180
|
+
function C4(t, e) {
|
|
34174
34181
|
return zt({
|
|
34175
34182
|
isEnabled: S(() => t.value !== null && e.value !== null),
|
|
34176
34183
|
queryFn: () => {
|
|
@@ -34187,7 +34194,7 @@ function w4(t, e) {
|
|
|
34187
34194
|
}
|
|
34188
34195
|
});
|
|
34189
34196
|
}
|
|
34190
|
-
const
|
|
34197
|
+
const E4 = /* @__PURE__ */ A({
|
|
34191
34198
|
__name: "IndividualContactPersonUpdateForm",
|
|
34192
34199
|
props: {
|
|
34193
34200
|
individualUuid: {},
|
|
@@ -34195,7 +34202,7 @@ const x4 = /* @__PURE__ */ A({
|
|
|
34195
34202
|
onSubmit: { type: Function }
|
|
34196
34203
|
},
|
|
34197
34204
|
setup(t) {
|
|
34198
|
-
const e = t, i =
|
|
34205
|
+
const e = t, i = G(), o = st({
|
|
34199
34206
|
initialState: {
|
|
34200
34207
|
email: e.contactPerson.email,
|
|
34201
34208
|
firstName: e.contactPerson.firstName,
|
|
@@ -34219,7 +34226,7 @@ const x4 = /* @__PURE__ */ A({
|
|
|
34219
34226
|
_: 1
|
|
34220
34227
|
}, 8, ["form"]));
|
|
34221
34228
|
}
|
|
34222
|
-
}),
|
|
34229
|
+
}), S4 = /* @__PURE__ */ A({
|
|
34223
34230
|
__name: "IndividualContactPersonUpdateDialog",
|
|
34224
34231
|
props: {
|
|
34225
34232
|
contactPersonUuid: {},
|
|
@@ -34227,10 +34234,10 @@ const x4 = /* @__PURE__ */ A({
|
|
|
34227
34234
|
},
|
|
34228
34235
|
emits: ["close"],
|
|
34229
34236
|
setup(t, { emit: e }) {
|
|
34230
|
-
const i = t, o = e, s =
|
|
34237
|
+
const i = t, o = e, s = G(), r = Ke(), a = S(() => i.individualUuid), l = S(() => i.contactPersonUuid), u = C4(
|
|
34231
34238
|
a,
|
|
34232
34239
|
l
|
|
34233
|
-
), m =
|
|
34240
|
+
), m = x4();
|
|
34234
34241
|
async function c(p) {
|
|
34235
34242
|
try {
|
|
34236
34243
|
await m.execute({
|
|
@@ -34253,7 +34260,7 @@ const x4 = /* @__PURE__ */ A({
|
|
|
34253
34260
|
onClose: f
|
|
34254
34261
|
}, {
|
|
34255
34262
|
default: w(() => [
|
|
34256
|
-
d(u).data.value ? (_(), I(
|
|
34263
|
+
d(u).data.value ? (_(), I(E4, {
|
|
34257
34264
|
key: 0,
|
|
34258
34265
|
"individual-uuid": i.individualUuid,
|
|
34259
34266
|
"on-submit": c,
|
|
@@ -34264,13 +34271,13 @@ const x4 = /* @__PURE__ */ A({
|
|
|
34264
34271
|
_: 1
|
|
34265
34272
|
}, 8, ["title", "description"]));
|
|
34266
34273
|
}
|
|
34267
|
-
}),
|
|
34274
|
+
}), I4 = { class: "gap-sm flex" }, D4 = { class: "font-regular flex flex-col items-start" }, P4 = { class: "font-semibold" }, A4 = { class: "font-regular text-brand-500 text-xs" }, T4 = /* @__PURE__ */ A({
|
|
34268
34275
|
__name: "IndividualDialogSidebarOverviewContent",
|
|
34269
34276
|
props: {
|
|
34270
34277
|
individual: {}
|
|
34271
34278
|
},
|
|
34272
34279
|
setup(t) {
|
|
34273
|
-
const e = t, i =
|
|
34280
|
+
const e = t, i = G(), o = Qo(), s = Ke(), r = jt(), a = Ft(w4), l = Ft(S4), u = Ft(U_), m = p4(), c = h4(), f = S(() => e.individual.contactPersons.length > 0), p = S(() => e.individual.billingInformationDetail !== null), h = S(() => r.getConfigForEntity(fe.BUSINESS)?.name.toLowerCase() ?? "");
|
|
34274
34281
|
function g() {
|
|
34275
34282
|
a.open({
|
|
34276
34283
|
individualUuid: e.individual.uuid
|
|
@@ -34323,7 +34330,7 @@ const x4 = /* @__PURE__ */ A({
|
|
|
34323
34330
|
icon: "infoCircle"
|
|
34324
34331
|
}, {
|
|
34325
34332
|
default: w(() => [
|
|
34326
|
-
b(
|
|
34333
|
+
b(y4, { individual: t.individual }, null, 8, ["individual"])
|
|
34327
34334
|
]),
|
|
34328
34335
|
_: 1
|
|
34329
34336
|
}, 8, ["label"]),
|
|
@@ -34382,7 +34389,7 @@ const x4 = /* @__PURE__ */ A({
|
|
|
34382
34389
|
onClick: g
|
|
34383
34390
|
}, {
|
|
34384
34391
|
default: w(() => [
|
|
34385
|
-
|
|
34392
|
+
H(k(d(i).t("wise_crm.shared.add")), 1)
|
|
34386
34393
|
]),
|
|
34387
34394
|
_: 1
|
|
34388
34395
|
})) : $("", !0)
|
|
@@ -34404,8 +34411,8 @@ const x4 = /* @__PURE__ */ A({
|
|
|
34404
34411
|
class: "gap-lg flex flex-col"
|
|
34405
34412
|
}, {
|
|
34406
34413
|
default: w(() => [
|
|
34407
|
-
T("div",
|
|
34408
|
-
T("div",
|
|
34414
|
+
T("div", I4, [
|
|
34415
|
+
T("div", D4, [
|
|
34409
34416
|
b(d(jv), {
|
|
34410
34417
|
to: {
|
|
34411
34418
|
name: d(o).currentRoute.value.name,
|
|
@@ -34419,11 +34426,11 @@ const x4 = /* @__PURE__ */ A({
|
|
|
34419
34426
|
variant: "tertiary"
|
|
34420
34427
|
}, {
|
|
34421
34428
|
default: w(() => [
|
|
34422
|
-
T("span",
|
|
34429
|
+
T("span", P4, k(D.name), 1)
|
|
34423
34430
|
]),
|
|
34424
34431
|
_: 2
|
|
34425
34432
|
}, 1032, ["to"]),
|
|
34426
|
-
T("p",
|
|
34433
|
+
T("p", A4, k(D.position), 1)
|
|
34427
34434
|
])
|
|
34428
34435
|
]),
|
|
34429
34436
|
b(ot, {
|
|
@@ -34444,13 +34451,13 @@ const x4 = /* @__PURE__ */ A({
|
|
|
34444
34451
|
_: 1
|
|
34445
34452
|
}));
|
|
34446
34453
|
}
|
|
34447
|
-
}),
|
|
34454
|
+
}), j4 = /* @__PURE__ */ A({
|
|
34448
34455
|
__name: "IndividualDialogSidebar",
|
|
34449
34456
|
props: {
|
|
34450
34457
|
individual: {}
|
|
34451
34458
|
},
|
|
34452
34459
|
setup(t) {
|
|
34453
|
-
const e = t, i =
|
|
34460
|
+
const e = t, i = G(), o = Dv(), s = jt(), r = Ke(), a = l4(), l = M(
|
|
34454
34461
|
"overview"
|
|
34455
34462
|
/* OVERVIEW */
|
|
34456
34463
|
), u = S(() => [
|
|
@@ -34529,14 +34536,14 @@ const x4 = /* @__PURE__ */ A({
|
|
|
34529
34536
|
tabs: u.value
|
|
34530
34537
|
}, {
|
|
34531
34538
|
default: w(() => [
|
|
34532
|
-
l.value === "overview" ? (_(), I(
|
|
34539
|
+
l.value === "overview" ? (_(), I(T4, {
|
|
34533
34540
|
key: 0,
|
|
34534
34541
|
individual: t.individual
|
|
34535
|
-
}, null, 8, ["individual"])) : l.value === "activity" ? (_(), I(
|
|
34542
|
+
}, null, 8, ["individual"])) : l.value === "activity" ? (_(), I(c4, {
|
|
34536
34543
|
key: 1,
|
|
34537
34544
|
individual: t.individual
|
|
34538
34545
|
}, null, 8, ["individual"])) : $("", !0),
|
|
34539
|
-
l.value === "notes" ? (_(), I(
|
|
34546
|
+
l.value === "notes" ? (_(), I(f4, {
|
|
34540
34547
|
key: 2,
|
|
34541
34548
|
individual: e.individual
|
|
34542
34549
|
}, null, 8, ["individual"])) : $("", !0)
|
|
@@ -34547,13 +34554,13 @@ const x4 = /* @__PURE__ */ A({
|
|
|
34547
34554
|
_: 1
|
|
34548
34555
|
}, 8, ["entity-type"]));
|
|
34549
34556
|
}
|
|
34550
|
-
}),
|
|
34557
|
+
}), k4 = /* @__PURE__ */ A({
|
|
34551
34558
|
__name: "IndividualDialogSidebarProvider",
|
|
34552
34559
|
props: {
|
|
34553
34560
|
individualUuid: {}
|
|
34554
34561
|
},
|
|
34555
34562
|
setup(t) {
|
|
34556
|
-
const e = t, i =
|
|
34563
|
+
const e = t, i = G(), o = Af(
|
|
34557
34564
|
S(() => e.individualUuid)
|
|
34558
34565
|
), s = S(() => o.data.value ?? null);
|
|
34559
34566
|
return (r, a) => {
|
|
@@ -34567,7 +34574,7 @@ const x4 = /* @__PURE__ */ A({
|
|
|
34567
34574
|
}, null, 8, ["message", "title"])) : d(o).isLoading.value ? (_(), I(Cs, {
|
|
34568
34575
|
key: 1,
|
|
34569
34576
|
class: "h-full"
|
|
34570
|
-
})) : s.value ? (_(), I(
|
|
34577
|
+
})) : s.value ? (_(), I(j4, {
|
|
34571
34578
|
key: 2,
|
|
34572
34579
|
individual: s.value
|
|
34573
34580
|
}, null, 8, ["individual"])) : $("", !0)
|
|
@@ -34576,7 +34583,7 @@ const x4 = /* @__PURE__ */ A({
|
|
|
34576
34583
|
});
|
|
34577
34584
|
};
|
|
34578
34585
|
}
|
|
34579
|
-
}),
|
|
34586
|
+
}), SG = /* @__PURE__ */ A({
|
|
34580
34587
|
__name: "IndividualDialog",
|
|
34581
34588
|
props: {
|
|
34582
34589
|
individualUuid: {},
|
|
@@ -34587,7 +34594,7 @@ const x4 = /* @__PURE__ */ A({
|
|
|
34587
34594
|
emits: ["close"],
|
|
34588
34595
|
setup(t, { emit: e }) {
|
|
34589
34596
|
const i = t, o = e;
|
|
34590
|
-
|
|
34597
|
+
a4({
|
|
34591
34598
|
individualUuid: S(() => i.individualUuid)
|
|
34592
34599
|
});
|
|
34593
34600
|
function s() {
|
|
@@ -34601,17 +34608,17 @@ const x4 = /* @__PURE__ */ A({
|
|
|
34601
34608
|
onClose: s
|
|
34602
34609
|
}, {
|
|
34603
34610
|
default: w(() => [
|
|
34604
|
-
b(
|
|
34611
|
+
b(k4, {
|
|
34605
34612
|
"individual-uuid": i.individualUuid
|
|
34606
34613
|
}, null, 8, ["individual-uuid"])
|
|
34607
34614
|
]),
|
|
34608
34615
|
_: 1
|
|
34609
34616
|
}, 8, ["entity-type", "title", "description", "tabs"]));
|
|
34610
34617
|
}
|
|
34611
|
-
}),
|
|
34618
|
+
}), N4 = { class: "flex flex-col" }, U4 = { class: "font-medium" }, V4 = {
|
|
34612
34619
|
key: 0,
|
|
34613
34620
|
class: "text-placeholder text-sm"
|
|
34614
|
-
},
|
|
34621
|
+
}, F4 = /* @__PURE__ */ A({
|
|
34615
34622
|
__name: "IndividualOverviewTableNameCell",
|
|
34616
34623
|
props: {
|
|
34617
34624
|
name: {},
|
|
@@ -34621,15 +34628,15 @@ const x4 = /* @__PURE__ */ A({
|
|
|
34621
34628
|
const e = t;
|
|
34622
34629
|
return (i, o) => (_(), I(d(Vv), null, {
|
|
34623
34630
|
default: w(() => [
|
|
34624
|
-
T("div",
|
|
34625
|
-
T("span",
|
|
34626
|
-
e.email ? (_(), V("span",
|
|
34631
|
+
T("div", N4, [
|
|
34632
|
+
T("span", U4, k(e.name), 1),
|
|
34633
|
+
e.email ? (_(), V("span", V4, k(e.email), 1)) : $("", !0)
|
|
34627
34634
|
])
|
|
34628
34635
|
]),
|
|
34629
34636
|
_: 1
|
|
34630
34637
|
}));
|
|
34631
34638
|
}
|
|
34632
|
-
}),
|
|
34639
|
+
}), IG = /* @__PURE__ */ A({
|
|
34633
34640
|
__name: "IndividualOverview",
|
|
34634
34641
|
emits: ["rowClick"],
|
|
34635
34642
|
setup(t, { emit: e }) {
|
|
@@ -34637,7 +34644,7 @@ const x4 = /* @__PURE__ */ A({
|
|
|
34637
34644
|
isRouteQueryEnabled: !1
|
|
34638
34645
|
}), s = Ow(o.paginationOptions), r = S(() => [
|
|
34639
34646
|
{
|
|
34640
|
-
cell: (a) => rn(
|
|
34647
|
+
cell: (a) => rn(F4, {
|
|
34641
34648
|
name: a.name,
|
|
34642
34649
|
email: a.email ?? void 0
|
|
34643
34650
|
}),
|
|
@@ -34663,7 +34670,7 @@ const x4 = /* @__PURE__ */ A({
|
|
|
34663
34670
|
}, null, 8, ["get-key", "error", "columns", "pagination", "data", "row-action", "on-next-page"]));
|
|
34664
34671
|
}
|
|
34665
34672
|
});
|
|
34666
|
-
function
|
|
34673
|
+
function M4(t) {
|
|
34667
34674
|
return Jo(t.length > 0, "At least one business tab route is required"), [
|
|
34668
34675
|
{
|
|
34669
34676
|
name: "business-detail",
|
|
@@ -34674,7 +34681,7 @@ function V4(t) {
|
|
|
34674
34681
|
}))
|
|
34675
34682
|
},
|
|
34676
34683
|
path: "/business/:businessUuid",
|
|
34677
|
-
component: () => import("./BusinessDetailView-
|
|
34684
|
+
component: () => import("./BusinessDetailView-BD_5-gur.js"),
|
|
34678
34685
|
redirect: {
|
|
34679
34686
|
name: t[0].route.name
|
|
34680
34687
|
},
|
|
@@ -34682,16 +34689,16 @@ function V4(t) {
|
|
|
34682
34689
|
}
|
|
34683
34690
|
];
|
|
34684
34691
|
}
|
|
34685
|
-
function
|
|
34692
|
+
function O4(t) {
|
|
34686
34693
|
return [
|
|
34687
34694
|
{
|
|
34688
34695
|
name: "deal-detail",
|
|
34689
34696
|
path: "/deals/:dealUuid",
|
|
34690
|
-
component: () => import("./DealDetailView-
|
|
34697
|
+
component: () => import("./DealDetailView-DdZbslOT.js")
|
|
34691
34698
|
}
|
|
34692
34699
|
];
|
|
34693
34700
|
}
|
|
34694
|
-
function
|
|
34701
|
+
function B4(t) {
|
|
34695
34702
|
return Jo(t.length > 0, "At least one individual tab route is required"), [
|
|
34696
34703
|
{
|
|
34697
34704
|
name: "individual-detail",
|
|
@@ -34702,7 +34709,7 @@ function M4(t) {
|
|
|
34702
34709
|
}))
|
|
34703
34710
|
},
|
|
34704
34711
|
path: "/individual/:individualUuid",
|
|
34705
|
-
component: () => import("./IndividualDetailView-
|
|
34712
|
+
component: () => import("./IndividualDetailView-CLUuxWnM.js"),
|
|
34706
34713
|
redirect: {
|
|
34707
34714
|
name: t[0].route.name
|
|
34708
34715
|
},
|
|
@@ -34710,18 +34717,18 @@ function M4(t) {
|
|
|
34710
34717
|
}
|
|
34711
34718
|
];
|
|
34712
34719
|
}
|
|
34713
|
-
function
|
|
34720
|
+
function DG(t) {
|
|
34714
34721
|
return {
|
|
34715
34722
|
beforeEnter: (e, i) => (console.log("CRM ROUTE - Storing return route:", i.name), Pf().storeReturnRoute(i.name), !0),
|
|
34716
34723
|
path: "",
|
|
34717
34724
|
children: [
|
|
34718
|
-
...
|
|
34719
|
-
...
|
|
34720
|
-
...
|
|
34725
|
+
...B4(t.individualTabRoutes),
|
|
34726
|
+
...M4(t.businessTabRoutes),
|
|
34727
|
+
...O4(t.dealTabRoutes)
|
|
34721
34728
|
]
|
|
34722
34729
|
};
|
|
34723
34730
|
}
|
|
34724
|
-
function
|
|
34731
|
+
function R4() {
|
|
34725
34732
|
return zt({
|
|
34726
34733
|
queryFn: () => vt.getStatistics(),
|
|
34727
34734
|
queryKey: {
|
|
@@ -34729,24 +34736,24 @@ function O4() {
|
|
|
34729
34736
|
}
|
|
34730
34737
|
});
|
|
34731
34738
|
}
|
|
34732
|
-
const
|
|
34739
|
+
const $4 = { class: "p-xl from-brand-100 to-brand-300 min-w-80 rounded-xl bg-gradient-to-tr text-white shadow-lg" }, L4 = { class: "text-black" }, z4 = { class: "text-6xl font-bold" }, PG = /* @__PURE__ */ A({
|
|
34733
34740
|
__name: "WidgetBusinessStatistics",
|
|
34734
34741
|
setup(t) {
|
|
34735
|
-
const e =
|
|
34742
|
+
const e = G(), i = jt(), o = R4(), s = S(() => (o.data.value?.monthlyPercentageGrowth ?? 0) < 0 ? "arrowDown" : "arrowUp");
|
|
34736
34743
|
return (r, a) => (_(), I(Oi, {
|
|
34737
34744
|
"entity-type": d(fe).BUSINESS
|
|
34738
34745
|
}, {
|
|
34739
34746
|
default: w(() => [
|
|
34740
|
-
T("div",
|
|
34747
|
+
T("div", $4, [
|
|
34741
34748
|
b(Be, {
|
|
34742
34749
|
direction: "col",
|
|
34743
34750
|
align: "start",
|
|
34744
34751
|
gap: "lg"
|
|
34745
34752
|
}, {
|
|
34746
34753
|
default: w(() => [
|
|
34747
|
-
T("div",
|
|
34748
|
-
T("span",
|
|
34749
|
-
T("p", null,
|
|
34754
|
+
T("div", L4, [
|
|
34755
|
+
T("span", z4, k(d(o).data.value?.total ?? 0), 1),
|
|
34756
|
+
T("p", null, k(d(i).getConfigForEntity(d(fe).BUSINESS)?.name ?? ""), 1)
|
|
34750
34757
|
]),
|
|
34751
34758
|
b(Be, {
|
|
34752
34759
|
align: "start",
|
|
@@ -34764,7 +34771,7 @@ const B4 = { class: "p-xl from-brand-100 to-brand-300 min-w-80 rounded-xl bg-gra
|
|
|
34764
34771
|
icon: "plus",
|
|
34765
34772
|
class: "size-3"
|
|
34766
34773
|
}),
|
|
34767
|
-
T("p", null,
|
|
34774
|
+
T("p", null, k(d(e).t("wise_crm.widgets.individuals.value_since_last_month", { count: d(o).data.value?.monthlyAdded ?? 0 })), 1)
|
|
34768
34775
|
]),
|
|
34769
34776
|
_: 1
|
|
34770
34777
|
})
|
|
@@ -34782,7 +34789,7 @@ const B4 = { class: "p-xl from-brand-100 to-brand-300 min-w-80 rounded-xl bg-gra
|
|
|
34782
34789
|
icon: s.value,
|
|
34783
34790
|
class: "size-3"
|
|
34784
34791
|
}, null, 8, ["icon"]),
|
|
34785
|
-
T("p", null,
|
|
34792
|
+
T("p", null, k(d(e).t("wise_crm.widgets.individuals.since_last_month", { count: Math.abs(d(o).data.value?.monthlyPercentageGrowth ?? 0) })), 1)
|
|
34786
34793
|
]),
|
|
34787
34794
|
_: 1
|
|
34788
34795
|
})
|
|
@@ -34801,7 +34808,7 @@ const B4 = { class: "p-xl from-brand-100 to-brand-300 min-w-80 rounded-xl bg-gra
|
|
|
34801
34808
|
}, 8, ["entity-type"]));
|
|
34802
34809
|
}
|
|
34803
34810
|
});
|
|
34804
|
-
function
|
|
34811
|
+
function q4() {
|
|
34805
34812
|
return zt({
|
|
34806
34813
|
queryFn: () => at.getStatistics(),
|
|
34807
34814
|
queryKey: {
|
|
@@ -34809,24 +34816,24 @@ function L4() {
|
|
|
34809
34816
|
}
|
|
34810
34817
|
});
|
|
34811
34818
|
}
|
|
34812
|
-
const
|
|
34819
|
+
const K4 = { class: "p-xl from-brand-100 to-brand-300 min-w-80 rounded-xl bg-gradient-to-tr text-white shadow-lg" }, G4 = { class: "text-black" }, H4 = { class: "text-6xl font-bold" }, AG = /* @__PURE__ */ A({
|
|
34813
34820
|
__name: "WidgetIndividualStatistics",
|
|
34814
34821
|
setup(t) {
|
|
34815
|
-
const e =
|
|
34822
|
+
const e = G(), i = jt(), o = q4();
|
|
34816
34823
|
return (s, r) => (_(), I(Oi, {
|
|
34817
34824
|
"entity-type": d(fe).INDIVIDUAL
|
|
34818
34825
|
}, {
|
|
34819
34826
|
default: w(() => [
|
|
34820
|
-
T("div",
|
|
34827
|
+
T("div", K4, [
|
|
34821
34828
|
b(Be, {
|
|
34822
34829
|
direction: "col",
|
|
34823
34830
|
align: "start",
|
|
34824
34831
|
gap: "lg"
|
|
34825
34832
|
}, {
|
|
34826
34833
|
default: w(() => [
|
|
34827
|
-
T("div",
|
|
34828
|
-
T("span",
|
|
34829
|
-
T("p", null,
|
|
34834
|
+
T("div", G4, [
|
|
34835
|
+
T("span", H4, k(d(o).data.value?.total ?? 0), 1),
|
|
34836
|
+
T("p", null, k(d(i).getConfigForEntity(d(fe).INDIVIDUAL)?.name ?? ""), 1)
|
|
34830
34837
|
]),
|
|
34831
34838
|
b(Be, {
|
|
34832
34839
|
align: "start",
|
|
@@ -34844,7 +34851,7 @@ const z4 = { class: "p-xl from-brand-100 to-brand-300 min-w-80 rounded-xl bg-gra
|
|
|
34844
34851
|
icon: "plus",
|
|
34845
34852
|
class: "size-3"
|
|
34846
34853
|
}),
|
|
34847
|
-
T("p", null,
|
|
34854
|
+
T("p", null, k(d(e).t("wise_crm.widgets.individuals.value_since_last_month", { count: d(o).data.value?.monthlyAdded ?? 0 })), 1)
|
|
34848
34855
|
]),
|
|
34849
34856
|
_: 1
|
|
34850
34857
|
})
|
|
@@ -34862,7 +34869,7 @@ const z4 = { class: "p-xl from-brand-100 to-brand-300 min-w-80 rounded-xl bg-gra
|
|
|
34862
34869
|
icon: (d(o).data.value?.monthlyPercentageGrowth ?? 0) < 0 ? "arrowDown" : "arrowUp",
|
|
34863
34870
|
class: "size-3"
|
|
34864
34871
|
}, null, 8, ["icon"]),
|
|
34865
|
-
T("p", null,
|
|
34872
|
+
T("p", null, k(d(e).t("wise_crm.widgets.individuals.since_last_month", { count: Math.abs(d(o).data.value?.monthlyPercentageGrowth ?? 0) })), 1)
|
|
34866
34873
|
]),
|
|
34867
34874
|
_: 1
|
|
34868
34875
|
})
|
|
@@ -34881,7 +34888,7 @@ const z4 = { class: "p-xl from-brand-100 to-brand-300 min-w-80 rounded-xl bg-gra
|
|
|
34881
34888
|
}, 8, ["entity-type"]));
|
|
34882
34889
|
}
|
|
34883
34890
|
});
|
|
34884
|
-
class
|
|
34891
|
+
class W4 {
|
|
34885
34892
|
static fromDto(e) {
|
|
34886
34893
|
return {
|
|
34887
34894
|
uuid: e.uuid,
|
|
@@ -34891,20 +34898,20 @@ class G4 {
|
|
|
34891
34898
|
};
|
|
34892
34899
|
}
|
|
34893
34900
|
}
|
|
34894
|
-
class
|
|
34901
|
+
class Z4 {
|
|
34895
34902
|
static async getAll(e) {
|
|
34896
34903
|
const i = new ln(e).build(), o = await sj({
|
|
34897
34904
|
query: i
|
|
34898
34905
|
});
|
|
34899
34906
|
return {
|
|
34900
|
-
data: o.data.items.map(
|
|
34907
|
+
data: o.data.items.map(W4.fromDto),
|
|
34901
34908
|
meta: o.data.meta
|
|
34902
34909
|
};
|
|
34903
34910
|
}
|
|
34904
34911
|
}
|
|
34905
|
-
function
|
|
34912
|
+
function Y4(t) {
|
|
34906
34913
|
return zt({
|
|
34907
|
-
queryFn: () =>
|
|
34914
|
+
queryFn: () => Z4.getAll(t.value),
|
|
34908
34915
|
queryKey: {
|
|
34909
34916
|
wiseCrmRecentEntities: {
|
|
34910
34917
|
paginationOptions: t
|
|
@@ -34912,10 +34919,10 @@ function W4(t) {
|
|
|
34912
34919
|
}
|
|
34913
34920
|
});
|
|
34914
34921
|
}
|
|
34915
|
-
const
|
|
34922
|
+
const Q4 = { class: "p-xl gap-lg border-primary/50 flex min-w-150 flex-col rounded-xl border shadow-lg" }, J4 = { key: 0 }, X4 = {
|
|
34916
34923
|
key: 1,
|
|
34917
34924
|
class: "gap-md flex flex-col overflow-hidden"
|
|
34918
|
-
},
|
|
34925
|
+
}, eG = { class: "gap-sm flex items-center" }, TG = /* @__PURE__ */ A({
|
|
34919
34926
|
__name: "WidgetRecentlyCreated",
|
|
34920
34927
|
setup(t) {
|
|
34921
34928
|
const e = Pf(), i = bn({
|
|
@@ -34926,7 +34933,7 @@ const Z4 = { class: "p-xl gap-lg border-primary/50 flex min-w-150 flex-col round
|
|
|
34926
34933
|
offset: 0
|
|
34927
34934
|
}
|
|
34928
34935
|
}
|
|
34929
|
-
}), o =
|
|
34936
|
+
}), o = Y4(i.paginationOptions), s = S(() => o.data.value?.data ?? []);
|
|
34930
34937
|
function r(a) {
|
|
34931
34938
|
if (a.type === fe.INDIVIDUAL) {
|
|
34932
34939
|
e.openIndividualDetail(a.uuid);
|
|
@@ -34934,21 +34941,21 @@ const Z4 = { class: "p-xl gap-lg border-primary/50 flex min-w-150 flex-col round
|
|
|
34934
34941
|
}
|
|
34935
34942
|
e.openBusinessDetail(a.uuid);
|
|
34936
34943
|
}
|
|
34937
|
-
return (a, l) => (_(), V("div",
|
|
34944
|
+
return (a, l) => (_(), V("div", Q4, [
|
|
34938
34945
|
l[1] || (l[1] = T("p", { class: "font-medium" }, " Recent aangemaakt ", -1)),
|
|
34939
|
-
s.value.length === 0 ? (_(), V("div",
|
|
34946
|
+
s.value.length === 0 ? (_(), V("div", J4, [...l[0] || (l[0] = [
|
|
34940
34947
|
T("p", { class: "text-tertiary" }, " Er zijn nog geen recent aangemaakte entiteiten. ", -1)
|
|
34941
|
-
])])) : (_(), V("div",
|
|
34948
|
+
])])) : (_(), V("div", X4, [
|
|
34942
34949
|
(_(!0), V(le, null, pe(s.value, (u) => (_(), V("div", {
|
|
34943
34950
|
key: u.uuid,
|
|
34944
34951
|
class: "gap-sm bg-tertiary text-primary p-sm px-lg flex items-center justify-between rounded-lg"
|
|
34945
34952
|
}, [
|
|
34946
|
-
T("div",
|
|
34953
|
+
T("div", eG, [
|
|
34947
34954
|
b(d(_e), {
|
|
34948
34955
|
icon: u.type === d(fe).BUSINESS ? "building" : "user",
|
|
34949
34956
|
class: "text-brand-500 size-4"
|
|
34950
34957
|
}, null, 8, ["icon"]),
|
|
34951
|
-
T("p", null,
|
|
34958
|
+
T("p", null, k(u.name), 1)
|
|
34952
34959
|
]),
|
|
34953
34960
|
b(d(Et), {
|
|
34954
34961
|
variant: "tertiary",
|
|
@@ -34960,72 +34967,72 @@ const Z4 = { class: "p-xl gap-lg border-primary/50 flex min-w-150 flex-col round
|
|
|
34960
34967
|
]))
|
|
34961
34968
|
]));
|
|
34962
34969
|
}
|
|
34963
|
-
}),
|
|
34964
|
-
hash: import("./HashIcon-
|
|
34965
|
-
activity: import("./ActivityIcon-
|
|
34966
|
-
book: import("./BookIcon-
|
|
34967
|
-
building: import("./BuildingIcon-
|
|
34968
|
-
buildings: import("./BuildingsIcon-
|
|
34969
|
-
chevronDown: import("./ChevronDownIcon-
|
|
34970
|
-
clockPlus: import("./ClockPlusIcon-
|
|
34971
|
-
copy: import("./CopyIcon-
|
|
34972
|
-
deal: import("./DealIcon-
|
|
34973
|
-
editWithLine: import("./EditWithLineIcon-
|
|
34974
|
-
file: import("./FileIcon-
|
|
34975
|
-
filterLines: import("./FilterLinesIcon-
|
|
34976
|
-
homeFilled: import("./HomeFilledIcon-
|
|
34977
|
-
layersTree: import("./LayersTreeIcon-
|
|
34978
|
-
linkExternal: import("./LinkExternalIcon-
|
|
34979
|
-
locationPin: import("./LocationPinIcon-
|
|
34980
|
-
mail: import("./MailIcon-
|
|
34981
|
-
mobilePhone: import("./MobilePhoneIcon-
|
|
34982
|
-
phone: import("./PhoneIcon-
|
|
34983
|
-
send: import("./SendIcon-
|
|
34984
|
-
starOutline: import("./StarOutlineIcon-
|
|
34985
|
-
starYellow: import("./StarYellowIcon-
|
|
34986
|
-
timeLineMarker: import("./TimeLineMarkerIcon-
|
|
34987
|
-
trash: import("./TrashIcon-
|
|
34988
|
-
user: import("./UserIcon-
|
|
34989
|
-
userCircle: import("./UserCircleIcon-
|
|
34990
|
-
verticalDots: import("./VerticalDotsIcon
|
|
34991
|
-
wallet: import("./WalletIcon-
|
|
34992
|
-
},
|
|
34970
|
+
}), jG = {
|
|
34971
|
+
hash: import("./HashIcon-B6IWdDkU.js"),
|
|
34972
|
+
activity: import("./ActivityIcon-DwPUmxzt.js"),
|
|
34973
|
+
book: import("./BookIcon-CnxMEJ4U.js"),
|
|
34974
|
+
building: import("./BuildingIcon-Dm4zLpVp.js"),
|
|
34975
|
+
buildings: import("./BuildingsIcon-ZsYVNceU.js"),
|
|
34976
|
+
chevronDown: import("./ChevronDownIcon-QE7YBP4M.js"),
|
|
34977
|
+
clockPlus: import("./ClockPlusIcon-CoUf-dk-.js"),
|
|
34978
|
+
copy: import("./CopyIcon-DBT5WWA2.js"),
|
|
34979
|
+
deal: import("./DealIcon-DSXPERiO.js"),
|
|
34980
|
+
editWithLine: import("./EditWithLineIcon-wkAXH1Pr.js"),
|
|
34981
|
+
file: import("./FileIcon-Dftn1Vwn.js"),
|
|
34982
|
+
filterLines: import("./FilterLinesIcon-SPyYyjBK.js"),
|
|
34983
|
+
homeFilled: import("./HomeFilledIcon-DkvBdyyf.js"),
|
|
34984
|
+
layersTree: import("./LayersTreeIcon-DlCcavlA.js"),
|
|
34985
|
+
linkExternal: import("./LinkExternalIcon-BdiDxCaa.js"),
|
|
34986
|
+
locationPin: import("./LocationPinIcon-B0IaKlCF.js"),
|
|
34987
|
+
mail: import("./MailIcon-C0w41KdY.js"),
|
|
34988
|
+
mobilePhone: import("./MobilePhoneIcon-CIz1YoHp.js"),
|
|
34989
|
+
phone: import("./PhoneIcon-BgjQNd2l.js"),
|
|
34990
|
+
send: import("./SendIcon-C_NTDGvj.js"),
|
|
34991
|
+
starOutline: import("./StarOutlineIcon-DAxf746-.js"),
|
|
34992
|
+
starYellow: import("./StarYellowIcon-CYyd9E-r.js"),
|
|
34993
|
+
timeLineMarker: import("./TimeLineMarkerIcon-CKZFUDiO.js"),
|
|
34994
|
+
trash: import("./TrashIcon-BOi6vWHg.js"),
|
|
34995
|
+
user: import("./UserIcon-BAix1jEo.js"),
|
|
34996
|
+
userCircle: import("./UserCircleIcon-Bdr-IBNX.js"),
|
|
34997
|
+
verticalDots: import("./VerticalDotsIcon-Cht6si1H.js"),
|
|
34998
|
+
wallet: import("./WalletIcon-C-EjYVxW.js")
|
|
34999
|
+
}, kG = {
|
|
34993
35000
|
"en-US": Fv,
|
|
34994
35001
|
"nl-BE": Mv
|
|
34995
35002
|
};
|
|
34996
35003
|
export {
|
|
34997
|
-
|
|
34998
|
-
|
|
34999
|
-
|
|
35004
|
+
AG as A,
|
|
35005
|
+
TG as B,
|
|
35006
|
+
jG as C,
|
|
35000
35007
|
g1 as D,
|
|
35001
35008
|
fe as E,
|
|
35002
35009
|
zt as H,
|
|
35003
35010
|
a1 as I,
|
|
35004
35011
|
Ui as _,
|
|
35005
35012
|
I3 as a,
|
|
35006
|
-
|
|
35013
|
+
k4 as b,
|
|
35007
35014
|
Oi as c,
|
|
35008
35015
|
Xs as d,
|
|
35009
|
-
|
|
35010
|
-
|
|
35011
|
-
|
|
35012
|
-
|
|
35016
|
+
gG as e,
|
|
35017
|
+
vG as f,
|
|
35018
|
+
bG as g,
|
|
35019
|
+
yG as h,
|
|
35013
35020
|
ax as i,
|
|
35014
35021
|
nu as j,
|
|
35015
35022
|
tu as k,
|
|
35016
|
-
|
|
35017
|
-
|
|
35023
|
+
_G as l,
|
|
35024
|
+
wG as m,
|
|
35018
35025
|
jt as n,
|
|
35019
|
-
|
|
35020
|
-
|
|
35026
|
+
mG as o,
|
|
35027
|
+
xG as p,
|
|
35021
35028
|
dK as q,
|
|
35022
|
-
|
|
35023
|
-
|
|
35029
|
+
CG as r,
|
|
35030
|
+
EG as s,
|
|
35024
35031
|
$r as t,
|
|
35025
35032
|
Pf as u,
|
|
35026
|
-
|
|
35027
|
-
|
|
35028
|
-
|
|
35029
|
-
|
|
35030
|
-
|
|
35033
|
+
SG as v,
|
|
35034
|
+
kG as w,
|
|
35035
|
+
IG as x,
|
|
35036
|
+
DG as y,
|
|
35037
|
+
PG as z
|
|
35031
35038
|
};
|