@wisemen/wise-crm-web 0.0.1 → 0.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,11 +1,11 @@
1
- import "./CrmDetailContainer-C7-L_VOS.js";
2
- import { t as BusinessDialogSidebarProvider_default } from "./BusinessDialogSidebarProvider-DLB6xwx6.js";
3
- import "./CrmDetailHeaderCard-DDFgf_WH.js";
1
+ import "./CrmDetailContainer-BEVK4cI_.js";
2
+ import { t as BusinessDialogSidebarProvider_default } from "./BusinessDialogSidebarProvider-DqaC1K5J.js";
3
+ import "./CrmDetailHeaderCard-DrtAKAt_.js";
4
4
  import { in as EntityType } from "./AppSkeletonLoader-0JvTFsQE.js";
5
5
  import "./_plugin-vue_export-helper-D6IyMfNk.js";
6
6
  import "./Error-1YqHfPB-.js";
7
7
  import { t as useRouteParams } from "./router-Ff0-znMk.js";
8
- import { t as CrmDetailView_default } from "./CrmDetailView-BYKcMRnA.js";
8
+ import { t as CrmDetailView_default } from "./CrmDetailView-jfiXUtZr.js";
9
9
  import { createBlock, createVNode, defineComponent, openBlock, unref, withCtx } from "vue";
10
10
  var BusinessDetailView_default = /* @__PURE__ */ defineComponent({
11
11
  __name: "BusinessDetailView",
@@ -1,5 +1,5 @@
1
- import { $ as useApiErrorToast, A as useOffsetInfiniteQuery, B as AppGlobalFormError_default, D as AppDrawer_default, G as AppForm_default, H as NoteUpdateDialog_default, I as VisuallyHidden_default, K as i18nPlugin, O as useSearch, Q as useForm, U as CrmDetailSidebarNotesView_default, V as AppAndOrSeparator_default, W as toFormField, a as AppColorProvider_default, at as useNoteDeleteMutation, c as useEntityDetail, d as CrmDetailSidebarAccordionItem_default, dt as AddressTransformer, f as CrmDetailAccordionRoot_default, ft as ActivityIndexPaginationTransformer, g as ContactPersonCreateNewForm_default, i as CrmDetailSidebarTabs_default, it as useQueryClient, l as AppOpenEntityButton_default, lt as AppGrid_default, m as contactPersonUpdateFormSchema, n as useCrm, nt as useKeysetInfiniteQuery, ot as NoteService, p as AppIconLabelPair_default, pt as ActivityIndexTransformer, rt as useMutation, t as CrmDetailContainer_default, u as CrmDetailSidebarCard_default, ut as ContactPersonUpdateTransformer, w as useContactPersonCreateMutation, z as AppSidebarFormSubmitButton_default } from "./CrmDetailContainer-C7-L_VOS.js";
2
- import { a as AddressUtil, c as assert, i as CrmDetailSidebarMapCard_default, n as CrmDetailSidebarAccordionContactPersonInfo_default, o as ContactPersonCreateForm_default, r as CrmDetailSidebarAccordionBillingInformation_default, s as ActivityList_default, t as CrmDetailHeaderCard_default } from "./CrmDetailHeaderCard-DDFgf_WH.js";
1
+ import { $ as useApiErrorToast, A as useOffsetInfiniteQuery, B as AppGlobalFormError_default, D as AppDrawer_default, G as AppForm_default, H as NoteUpdateDialog_default, I as VisuallyHidden_default, K as i18nPlugin, O as useSearch, Q as useForm, U as CrmDetailSidebarNotesView_default, V as AppAndOrSeparator_default, W as toFormField, a as AppColorProvider_default, at as useNoteDeleteMutation, c as useEntityDetail, d as CrmDetailSidebarAccordionItem_default, dt as AddressTransformer, f as CrmDetailAccordionRoot_default, ft as ActivityIndexPaginationTransformer, g as ContactPersonCreateNewForm_default, i as CrmDetailSidebarTabs_default, it as useQueryClient, l as AppOpenEntityButton_default, lt as AppGrid_default, m as contactPersonUpdateFormSchema, n as useCrm, nt as useKeysetInfiniteQuery, ot as NoteService, p as AppIconLabelPair_default, pt as ActivityIndexTransformer, rt as useMutation, t as CrmDetailContainer_default, u as CrmDetailSidebarCard_default, ut as ContactPersonUpdateTransformer, w as useContactPersonCreateMutation, z as AppSidebarFormSubmitButton_default } from "./CrmDetailContainer-BEVK4cI_.js";
2
+ import { a as AddressUtil, c as assert, i as CrmDetailSidebarMapCard_default, n as CrmDetailSidebarAccordionContactPersonInfo_default, o as ContactPersonCreateForm_default, r as CrmDetailSidebarAccordionBillingInformation_default, s as ActivityList_default, t as CrmDetailHeaderCard_default } from "./CrmDetailHeaderCard-DrtAKAt_.js";
3
3
  import { At as viewBusinessIndexV1, Dt as viewBusinessBillingInformationDetailV1, Et as viewBusinessActivityLogIndexV1, Mt as viewBusinessStatisticsV1, Ot as viewBusinessContactPersonDetailV1, V as plainDateSchema, W as ZonedDateTimeTransformer, _t as updateBusinessV1, cn as Be, gt as updateBusinessContactPersonV1, in as EntityType, kt as viewBusinessDetailV1, ln as He, nt as linkContactPersonToBusinessV1, pt as unlinkContactPersonFromBusinessV1, q as createBusinessV1, st as makeBusinessContactPersonPrimaryV1, t as AppSkeletonLoader_default, tn as CountryCode, tt as linkBusinessAsChildV1, un as ze, wt as upsertBusinessBillingInformationV1, x as Motion, z as useDateTimeFormat } from "./AppSkeletonLoader-0JvTFsQE.js";
4
4
  import { t as Error_default } from "./Error-1YqHfPB-.js";
5
5
  import z$1, { z } from "zod";
@@ -1348,17 +1348,17 @@ var ActivityIndexTransformer = class {
1348
1348
  "grid-cols-4": c.cols === 4
1349
1349
  }, "gap-xl grid"]) }, [renderSlot(t.$slots, "default")], 2));
1350
1350
  }
1351
- }), _sfc_main$4 = {}, _hoisted_1$18 = {
1351
+ }), _sfc_main$5 = {}, _hoisted_1$19 = {
1352
1352
  fill: "none",
1353
1353
  height: "100%",
1354
1354
  viewBox: "0 0 756 560",
1355
1355
  width: "100%",
1356
1356
  xmlns: "http://www.w3.org/2000/svg"
1357
1357
  };
1358
- function _sfc_render$3(t, c) {
1359
- return openBlock(), createElementBlock("svg", _hoisted_1$18, [...c[0] ||= [createStaticVNode("<mask id=\"mask0_2103_18170\" height=\"768\" maskUnits=\"userSpaceOnUse\" style=\"mask-type:alpha;\" width=\"768\" x=\"-6\" y=\"-208\"><rect fill=\"url(#paint0_radial_2103_18170)\" height=\"768\" transform=\"translate(-6 -208)\" width=\"768\"></rect></mask><g mask=\"url(#mask0_2103_18170)\"><g clip-path=\"url(#clip0_2103_18170)\"><g clip-path=\"url(#clip1_2103_18170)\"><line stroke=\"currentColor\" x1=\"42.5\" x2=\"42.5\" y1=\"-208\" y2=\"560\"></line><line stroke=\"currentColor\" x1=\"90.5\" x2=\"90.5\" y1=\"-208\" y2=\"560\"></line><line stroke=\"currentColor\" x1=\"138.5\" x2=\"138.5\" y1=\"-208\" y2=\"560\"></line><line stroke=\"currentColor\" x1=\"186.5\" x2=\"186.5\" y1=\"-208\" y2=\"560\"></line><line stroke=\"currentColor\" x1=\"234.5\" x2=\"234.5\" y1=\"-208\" y2=\"560\"></line><line stroke=\"currentColor\" x1=\"282.5\" x2=\"282.5\" y1=\"-208\" y2=\"560\"></line><line stroke=\"currentColor\" x1=\"330.5\" x2=\"330.5\" y1=\"-208\" y2=\"560\"></line><line stroke=\"currentColor\" x1=\"378.5\" x2=\"378.5\" y1=\"-208\" y2=\"560\"></line><line stroke=\"currentColor\" x1=\"426.5\" x2=\"426.5\" y1=\"-208\" y2=\"560\"></line><line stroke=\"currentColor\" x1=\"474.5\" x2=\"474.5\" y1=\"-208\" y2=\"560\"></line><line stroke=\"currentColor\" x1=\"522.5\" x2=\"522.5\" y1=\"-208\" y2=\"560\"></line><line stroke=\"currentColor\" x1=\"570.5\" x2=\"570.5\" y1=\"-208\" y2=\"560\"></line><line stroke=\"currentColor\" x1=\"618.5\" x2=\"618.5\" y1=\"-208\" y2=\"560\"></line><line stroke=\"currentColor\" x1=\"666.5\" x2=\"666.5\" y1=\"-208\" y2=\"560\"></line><line stroke=\"currentColor\" x1=\"714.5\" x2=\"714.5\" y1=\"-208\" y2=\"560\"></line></g><rect height=\"767\" stroke=\"currentColor\" width=\"767\" x=\"-5.5\" y=\"-207.5\"></rect><g clip-path=\"url(#clip2_2103_18170)\"><line stroke=\"currentColor\" x1=\"-6\" x2=\"762\" y1=\"31.5\" y2=\"31.5\"></line><line stroke=\"currentColor\" x1=\"-6\" x2=\"762\" y1=\"79.5\" y2=\"79.5\"></line><line stroke=\"currentColor\" x1=\"-6\" x2=\"762\" y1=\"127.5\" y2=\"127.5\"></line><line stroke=\"currentColor\" x1=\"-6\" x2=\"762\" y1=\"175.5\" y2=\"175.5\"></line><line stroke=\"currentColor\" x1=\"-6\" x2=\"762\" y1=\"223.5\" y2=\"223.5\"></line><line stroke=\"currentColor\" x1=\"-6\" x2=\"762\" y1=\"271.5\" y2=\"271.5\"></line><line stroke=\"currentColor\" x1=\"-6\" x2=\"762\" y1=\"319.5\" y2=\"319.5\"></line><line stroke=\"currentColor\" x1=\"-6\" x2=\"762\" y1=\"367.5\" y2=\"367.5\"></line><line stroke=\"currentColor\" x1=\"-6\" x2=\"762\" y1=\"415.5\" y2=\"415.5\"></line><line stroke=\"currentColor\" x1=\"-6\" x2=\"762\" y1=\"463.5\" y2=\"463.5\"></line><line stroke=\"currentColor\" x1=\"-6\" x2=\"762\" y1=\"511.5\" y2=\"511.5\"></line><line stroke=\"currentColor\" x1=\"-6\" x2=\"762\" y1=\"559.5\" y2=\"559.5\"></line></g><rect height=\"767\" stroke=\"currentColor\" width=\"767\" x=\"-5.5\" y=\"-207.5\"></rect></g></g><defs><radialGradient id=\"paint0_radial_2103_18170\" cx=\"0\" cy=\"0\" gradientTransform=\"translate(384 384) rotate(90) scale(384 384)\" gradientUnits=\"userSpaceOnUse\" r=\"1\"><stop></stop><stop offset=\"1\" stop-opacity=\"0\"></stop></radialGradient><clipPath id=\"clip0_2103_18170\"><rect fill=\"white\" height=\"768\" transform=\"translate(-6 -208)\" width=\"768\"></rect></clipPath><clipPath id=\"clip1_2103_18170\"><rect fill=\"white\" height=\"768\" width=\"768\" x=\"-6\" y=\"-208\"></rect></clipPath><clipPath id=\"clip2_2103_18170\"><rect fill=\"white\" height=\"768\" width=\"768\" x=\"-6\" y=\"-208\"></rect></clipPath></defs>", 3)]]);
1358
+ function _sfc_render$4(t, c) {
1359
+ return openBlock(), createElementBlock("svg", _hoisted_1$19, [...c[0] ||= [createStaticVNode("<mask id=\"mask0_2103_18170\" height=\"768\" maskUnits=\"userSpaceOnUse\" style=\"mask-type:alpha;\" width=\"768\" x=\"-6\" y=\"-208\"><rect fill=\"url(#paint0_radial_2103_18170)\" height=\"768\" transform=\"translate(-6 -208)\" width=\"768\"></rect></mask><g mask=\"url(#mask0_2103_18170)\"><g clip-path=\"url(#clip0_2103_18170)\"><g clip-path=\"url(#clip1_2103_18170)\"><line stroke=\"currentColor\" x1=\"42.5\" x2=\"42.5\" y1=\"-208\" y2=\"560\"></line><line stroke=\"currentColor\" x1=\"90.5\" x2=\"90.5\" y1=\"-208\" y2=\"560\"></line><line stroke=\"currentColor\" x1=\"138.5\" x2=\"138.5\" y1=\"-208\" y2=\"560\"></line><line stroke=\"currentColor\" x1=\"186.5\" x2=\"186.5\" y1=\"-208\" y2=\"560\"></line><line stroke=\"currentColor\" x1=\"234.5\" x2=\"234.5\" y1=\"-208\" y2=\"560\"></line><line stroke=\"currentColor\" x1=\"282.5\" x2=\"282.5\" y1=\"-208\" y2=\"560\"></line><line stroke=\"currentColor\" x1=\"330.5\" x2=\"330.5\" y1=\"-208\" y2=\"560\"></line><line stroke=\"currentColor\" x1=\"378.5\" x2=\"378.5\" y1=\"-208\" y2=\"560\"></line><line stroke=\"currentColor\" x1=\"426.5\" x2=\"426.5\" y1=\"-208\" y2=\"560\"></line><line stroke=\"currentColor\" x1=\"474.5\" x2=\"474.5\" y1=\"-208\" y2=\"560\"></line><line stroke=\"currentColor\" x1=\"522.5\" x2=\"522.5\" y1=\"-208\" y2=\"560\"></line><line stroke=\"currentColor\" x1=\"570.5\" x2=\"570.5\" y1=\"-208\" y2=\"560\"></line><line stroke=\"currentColor\" x1=\"618.5\" x2=\"618.5\" y1=\"-208\" y2=\"560\"></line><line stroke=\"currentColor\" x1=\"666.5\" x2=\"666.5\" y1=\"-208\" y2=\"560\"></line><line stroke=\"currentColor\" x1=\"714.5\" x2=\"714.5\" y1=\"-208\" y2=\"560\"></line></g><rect height=\"767\" stroke=\"currentColor\" width=\"767\" x=\"-5.5\" y=\"-207.5\"></rect><g clip-path=\"url(#clip2_2103_18170)\"><line stroke=\"currentColor\" x1=\"-6\" x2=\"762\" y1=\"31.5\" y2=\"31.5\"></line><line stroke=\"currentColor\" x1=\"-6\" x2=\"762\" y1=\"79.5\" y2=\"79.5\"></line><line stroke=\"currentColor\" x1=\"-6\" x2=\"762\" y1=\"127.5\" y2=\"127.5\"></line><line stroke=\"currentColor\" x1=\"-6\" x2=\"762\" y1=\"175.5\" y2=\"175.5\"></line><line stroke=\"currentColor\" x1=\"-6\" x2=\"762\" y1=\"223.5\" y2=\"223.5\"></line><line stroke=\"currentColor\" x1=\"-6\" x2=\"762\" y1=\"271.5\" y2=\"271.5\"></line><line stroke=\"currentColor\" x1=\"-6\" x2=\"762\" y1=\"319.5\" y2=\"319.5\"></line><line stroke=\"currentColor\" x1=\"-6\" x2=\"762\" y1=\"367.5\" y2=\"367.5\"></line><line stroke=\"currentColor\" x1=\"-6\" x2=\"762\" y1=\"415.5\" y2=\"415.5\"></line><line stroke=\"currentColor\" x1=\"-6\" x2=\"762\" y1=\"463.5\" y2=\"463.5\"></line><line stroke=\"currentColor\" x1=\"-6\" x2=\"762\" y1=\"511.5\" y2=\"511.5\"></line><line stroke=\"currentColor\" x1=\"-6\" x2=\"762\" y1=\"559.5\" y2=\"559.5\"></line></g><rect height=\"767\" stroke=\"currentColor\" width=\"767\" x=\"-5.5\" y=\"-207.5\"></rect></g></g><defs><radialGradient id=\"paint0_radial_2103_18170\" cx=\"0\" cy=\"0\" gradientTransform=\"translate(384 384) rotate(90) scale(384 384)\" gradientUnits=\"userSpaceOnUse\" r=\"1\"><stop></stop><stop offset=\"1\" stop-opacity=\"0\"></stop></radialGradient><clipPath id=\"clip0_2103_18170\"><rect fill=\"white\" height=\"768\" transform=\"translate(-6 -208)\" width=\"768\"></rect></clipPath><clipPath id=\"clip1_2103_18170\"><rect fill=\"white\" height=\"768\" width=\"768\" x=\"-6\" y=\"-208\"></rect></clipPath><clipPath id=\"clip2_2103_18170\"><rect fill=\"white\" height=\"768\" width=\"768\" x=\"-6\" y=\"-208\"></rect></clipPath></defs>", 3)]]);
1360
1360
  }
1361
- var GridDecorativeBackgroundPattern_default = /* @__PURE__ */ __plugin_vue_export_helper_default(_sfc_main$4, [["render", _sfc_render$3]]), _hoisted_1$17 = { class: "relative flex h-full flex-col items-center justify-center text-center" }, _hoisted_2$10 = { class: "gap-lg relative z-1 flex flex-col items-center" }, _hoisted_3$6 = { class: "bg-brand-200 p-md flex size-12 items-center justify-center rounded-full border-3 border-solid border-white shadow-md" }, _hoisted_4$4 = { class: "gap-sm flex flex-col" }, _hoisted_5$3 = { class: "text-md font-semibold" }, _hoisted_6$1 = { class: "text-tertiary text-sm" }, _hoisted_7$1 = { class: "absolute right-0 left-0 scale-140 opacity-10" }, AppEmptyState_default = /* @__PURE__ */ defineComponent({
1361
+ var GridDecorativeBackgroundPattern_default = /* @__PURE__ */ __plugin_vue_export_helper_default(_sfc_main$5, [["render", _sfc_render$4]]), _hoisted_1$18 = { class: "relative flex h-full flex-col items-center justify-center text-center" }, _hoisted_2$10 = { class: "gap-lg relative z-1 flex flex-col items-center" }, _hoisted_3$6 = { class: "bg-brand-200 p-md flex size-12 items-center justify-center rounded-full border-3 border-solid border-white shadow-md" }, _hoisted_4$4 = { class: "gap-sm flex flex-col" }, _hoisted_5$3 = { class: "text-md font-semibold" }, _hoisted_6$1 = { class: "text-tertiary text-sm" }, _hoisted_7$1 = { class: "absolute right-0 left-0 scale-140 opacity-10" }, AppEmptyState_default = /* @__PURE__ */ defineComponent({
1362
1362
  __name: "AppEmptyState",
1363
1363
  props: {
1364
1364
  title: {},
@@ -1367,7 +1367,7 @@ var GridDecorativeBackgroundPattern_default = /* @__PURE__ */ __plugin_vue_expor
1367
1367
  },
1368
1368
  setup(t) {
1369
1369
  let c = t;
1370
- return (t, l) => (openBlock(), createElementBlock("div", _hoisted_1$17, [createElementVNode("div", _hoisted_2$10, [createElementVNode("div", _hoisted_3$6, [createVNode(unref(VcIcon), {
1370
+ return (t, l) => (openBlock(), createElementBlock("div", _hoisted_1$18, [createElementVNode("div", _hoisted_2$10, [createElementVNode("div", _hoisted_3$6, [createVNode(unref(VcIcon), {
1371
1371
  icon: c.icon,
1372
1372
  class: "text-brand-600 size-full"
1373
1373
  }, null, 8, ["icon"])]), createElementVNode("div", _hoisted_4$4, [createElementVNode("h3", _hoisted_5$3, toDisplayString(c.title), 1), createElementVNode("p", _hoisted_6$1, toDisplayString(c.description), 1)])]), createElementVNode("div", _hoisted_7$1, [createVNode(GridDecorativeBackgroundPattern_default)])]));
@@ -3366,18 +3366,11 @@ var AppDialogActionPrimary_default = /* @__PURE__ */ defineComponent({
3366
3366
  _: 1
3367
3367
  }, 8, ["is-disabled"]));
3368
3368
  }
3369
- }), AppDialogActions_default = /* @__PURE__ */ defineComponent({
3370
- __name: "AppDialogActions",
3371
- setup(t) {
3372
- return (t, c) => (openBlock(), createBlock(AppGroup_default, {
3373
- justify: "center",
3374
- class: "mt-4xl"
3375
- }, {
3376
- default: withCtx(() => [renderSlot(t.$slots, "default")]),
3377
- _: 3
3378
- }));
3379
- }
3380
- }), _hoisted_1$16 = { class: "gap-xl flex items-center" }, _hoisted_2$9 = { class: "bg-brand-200 flex size-13 items-center justify-center rounded-full border-3 border-solid border-white shadow-[0px_2px_10px_0px_rgba(0,0,0,0.1)]" }, _hoisted_3$5 = { class: "text-primary text-sm" }, _hoisted_4$3 = { class: "text-primary text-xl font-semibold" }, AppDialogHeader_default = /* @__PURE__ */ defineComponent({
3369
+ }), _sfc_main$4 = {}, _hoisted_1$17 = { class: "p-xl" };
3370
+ function _sfc_render$3(t, c) {
3371
+ return openBlock(), createElementBlock("div", _hoisted_1$17, [renderSlot(t.$slots, "default")]);
3372
+ }
3373
+ var AppDialogContainer_default = /* @__PURE__ */ __plugin_vue_export_helper_default(_sfc_main$4, [["render", _sfc_render$3]]), _hoisted_1$16 = { class: "gap-xl flex items-center" }, _hoisted_2$9 = { class: "bg-brand-200 flex size-13 shrink-0 items-center justify-center rounded-full border-3 border-solid border-white shadow-[0px_2px_10px_0px_rgba(0,0,0,0.1)]" }, _hoisted_3$5 = { class: "text-primary text-sm" }, _hoisted_4$3 = { class: "text-primary text-xl font-semibold" }, AppDialogHeader_default = /* @__PURE__ */ defineComponent({
3381
3374
  __name: "AppDialogHeader",
3382
3375
  props: {
3383
3376
  title: {},
@@ -3388,7 +3381,7 @@ var AppDialogActionPrimary_default = /* @__PURE__ */ defineComponent({
3388
3381
  let c = t;
3389
3382
  return (t, l) => (openBlock(), createElementBlock("div", _hoisted_1$16, [createElementVNode("div", _hoisted_2$9, [createVNode(unref(VcIcon), {
3390
3383
  icon: c.icon,
3391
- class: "text-brand-600 size-6"
3384
+ class: "text-brand-600 size-6 shrink-0"
3392
3385
  }, null, 8, ["icon"])]), createElementVNode("div", null, [createVNode(unref(VcDialogDescription), null, {
3393
3386
  default: withCtx(() => [createElementVNode("p", _hoisted_3$5, toDisplayString(c.description), 1)]),
3394
3387
  _: 1
@@ -3422,27 +3415,27 @@ var AppDialogActionPrimary_default = /* @__PURE__ */ defineComponent({
3422
3415
  u("closed");
3423
3416
  }
3424
3417
  return (t, c) => (openBlock(), createBlock(unref(VcDialog), {
3425
- class: "w-dialog-sm",
3418
+ "class-config": { content: "w-120" },
3426
3419
  onClose: f
3427
3420
  }, {
3428
- default: withCtx(() => [createVNode(unref(VcDialogContent), null, {
3421
+ default: withCtx(() => [createVNode(AppDialogContainer_default, null, {
3429
3422
  default: withCtx(() => [createVNode(AppDialogHeader_default, {
3430
3423
  title: l.title,
3431
3424
  description: l.description,
3432
3425
  icon: "infoCircle"
3433
- }, null, 8, ["title", "description"]), createVNode(AppDialogActions_default, null, {
3434
- default: withCtx(() => [createVNode(AppDialogActionCancel_default, { "is-disabled": l.isLoading }, null, 8, ["is-disabled"]), createVNode(AppDialogActionPrimary_default, {
3435
- label: l.confirmText,
3436
- "is-destructive": l.isDestructive,
3437
- "is-loading": l.isLoading,
3438
- onConfirm: d
3439
- }, null, 8, [
3440
- "label",
3441
- "is-destructive",
3442
- "is-loading"
3443
- ])]),
3444
- _: 1
3445
- })]),
3426
+ }, null, 8, ["title", "description"])]),
3427
+ _: 1
3428
+ }), createVNode(AppDialogContainer_default, { class: "gap-sm flex items-center" }, {
3429
+ default: withCtx(() => [createVNode(AppDialogActionCancel_default, { "is-disabled": l.isLoading }, null, 8, ["is-disabled"]), createVNode(AppDialogActionPrimary_default, {
3430
+ label: l.confirmText,
3431
+ "is-destructive": l.isDestructive,
3432
+ "is-loading": l.isLoading,
3433
+ onConfirm: d
3434
+ }, null, 8, [
3435
+ "label",
3436
+ "is-destructive",
3437
+ "is-loading"
3438
+ ])]),
3446
3439
  _: 1
3447
3440
  })]),
3448
3441
  _: 1
@@ -6112,4 +6105,4 @@ function _sfc_render(t, c) {
6112
6105
  return openBlock(), createElementBlock("div", _hoisted_1, [renderSlot(t.$slots, "default")]);
6113
6106
  }
6114
6107
  var CrmDetailContainer_default = /* @__PURE__ */ __plugin_vue_export_helper_default(_sfc_main, [["render", _sfc_render]]);
6115
- export { useApiErrorToast as $, useOffsetInfiniteQuery as A, AppGlobalFormError_default as B, ContactPersonFormContactField_default as C, AppDrawer_default as D, IndividualUpdateTransformer as E, VisuallyHiddenInput_default as F, AppForm_default as G, NoteUpdateDialog_default as H, VisuallyHidden_default as I, AppDialogHeader_default as J, i18nPlugin as K, useCollection as L, ListboxFilter_default as M, ListboxContent_default as N, useSearch as O, ListboxRoot_default as P, useForm as Q, useFormControl as R, useIndividualIndexQuery as S, IndividualService as T, CrmDetailSidebarNotesView_default as U, AppAndOrSeparator_default as V, toFormField as W, AppDialogActionPrimary_default as X, AppDialogActions_default as Y, AppDialogActionCancel_default as Z, ContactPersonFormNameField_default as _, AppColorProvider_default as a, useNoteDeleteMutation as at, AppSeparator_default as b, useEntityDetail as c, AppEmptyState_default as ct, CrmDetailSidebarAccordionItem_default as d, AddressTransformer as dt, LoggerUtil as et, CrmDetailAccordionRoot_default as f, ActivityIndexPaginationTransformer as ft, ContactPersonCreateNewForm_default as g, en_US_default as gt, individualItemSchema as h, nl_BE_default as ht, CrmDetailSidebarTabs_default as i, useQueryClient as it, ListboxItem_default as j, useRouteQueryState as k, AppOpenEntityButton_default as l, AppGrid_default as lt, contactPersonUpdateFormSchema as m, individualUuidSchema as mt, useCrm as n, useKeysetInfiniteQuery as nt, EntityTypeUtil as o, NoteService as ot, AppIconLabelPair_default as p, ActivityIndexTransformer as pt, AppConfirmDialog_default as q, useCrmConfig as r, useMutation as rt, useGoogleMapsApiKey as s, AppInfiniteScroll_default as st, CrmDetailContainer_default as t, createI18nKeyMap as tt, CrmDetailSidebarCard_default as u, ContactPersonUpdateTransformer as ut, IndividualAutocomplete_default as v, useContactPersonCreateMutation as w, AppHeightTransition_default as x, EntityAutocomplete_default as y, AppSidebarFormSubmitButton_default as z };
6108
+ export { useApiErrorToast as $, useOffsetInfiniteQuery as A, AppGlobalFormError_default as B, ContactPersonFormContactField_default as C, AppDrawer_default as D, IndividualUpdateTransformer as E, VisuallyHiddenInput_default as F, AppForm_default as G, NoteUpdateDialog_default as H, VisuallyHidden_default as I, AppDialogHeader_default as J, i18nPlugin as K, useCollection as L, ListboxFilter_default as M, ListboxContent_default as N, useSearch as O, ListboxRoot_default as P, useForm as Q, useFormControl as R, useIndividualIndexQuery as S, IndividualService as T, CrmDetailSidebarNotesView_default as U, AppAndOrSeparator_default as V, toFormField as W, AppDialogActionPrimary_default as X, AppDialogContainer_default as Y, AppDialogActionCancel_default as Z, ContactPersonFormNameField_default as _, AppColorProvider_default as a, useNoteDeleteMutation as at, AppSeparator_default as b, useEntityDetail as c, AppEmptyState_default as ct, CrmDetailSidebarAccordionItem_default as d, AddressTransformer as dt, LoggerUtil as et, CrmDetailAccordionRoot_default as f, ActivityIndexPaginationTransformer as ft, ContactPersonCreateNewForm_default as g, en_US_default as gt, individualItemSchema as h, nl_BE_default as ht, CrmDetailSidebarTabs_default as i, useQueryClient as it, ListboxItem_default as j, useRouteQueryState as k, AppOpenEntityButton_default as l, AppGrid_default as lt, contactPersonUpdateFormSchema as m, individualUuidSchema as mt, useCrm as n, useKeysetInfiniteQuery as nt, EntityTypeUtil as o, NoteService as ot, AppIconLabelPair_default as p, ActivityIndexTransformer as pt, AppConfirmDialog_default as q, useCrmConfig as r, useMutation as rt, useGoogleMapsApiKey as s, AppInfiniteScroll_default as st, CrmDetailContainer_default as t, createI18nKeyMap as tt, CrmDetailSidebarCard_default as u, ContactPersonUpdateTransformer as ut, IndividualAutocomplete_default as v, useContactPersonCreateMutation as w, AppHeightTransition_default as x, EntityAutocomplete_default as y, AppSidebarFormSubmitButton_default as z };
@@ -1,4 +1,4 @@
1
- import { C as ContactPersonFormContactField_default, G as AppForm_default, K as i18nPlugin, Q as useForm, W as toFormField, ct as AppEmptyState_default, g as ContactPersonCreateNewForm_default, h as individualItemSchema, l as AppOpenEntityButton_default, lt as AppGrid_default, p as AppIconLabelPair_default, s as useGoogleMapsApiKey, st as AppInfiniteScroll_default, u as CrmDetailSidebarCard_default, v as IndividualAutocomplete_default, z as AppSidebarFormSubmitButton_default } from "./CrmDetailContainer-C7-L_VOS.js";
1
+ import { C as ContactPersonFormContactField_default, G as AppForm_default, K as i18nPlugin, Q as useForm, W as toFormField, ct as AppEmptyState_default, g as ContactPersonCreateNewForm_default, h as individualItemSchema, l as AppOpenEntityButton_default, lt as AppGrid_default, p as AppIconLabelPair_default, s as useGoogleMapsApiKey, st as AppInfiniteScroll_default, u as CrmDetailSidebarCard_default, v as IndividualAutocomplete_default, z as AppSidebarFormSubmitButton_default } from "./CrmDetailContainer-BEVK4cI_.js";
2
2
  import { B as DateUtil, H as AppGroup_default, in as EntityType, k as useClipboard, z as useDateTimeFormat } from "./AppSkeletonLoader-0JvTFsQE.js";
3
3
  import z$1, { z } from "zod";
4
4
  import { Comment, Fragment, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createTextVNode, createVNode, defineComponent, guardReactiveProps, inject, markRaw, mergeProps, normalizeProps, onBeforeUnmount, onMounted, openBlock, provide, ref, renderList, renderSlot, toDisplayString, toRef, unref, watch, withCtx } from "vue";
@@ -2272,11 +2272,10 @@ var AppGoogleMaps_default = /* @__PURE__ */ defineComponent({
2272
2272
  onSelect: y
2273
2273
  }, null, 8, ["label"]), createVNode(unref(VcDropdownMenuItem), {
2274
2274
  "is-destructive": !0,
2275
- "is-disabled": h.contactPerson.isPrimary,
2276
2275
  label: unref(v).t("wise_crm.shared.delete"),
2277
2276
  icon: "trash",
2278
2277
  onSelect: b
2279
- }, null, 8, ["is-disabled", "label"])]),
2278
+ }, null, 8, ["label"])]),
2280
2279
  _: 1
2281
2280
  })])]), createElementVNode("div", _hoisted_5, [
2282
2281
  h.contactPerson.email === null ? createCommentVNode("", !0) : (openBlock(), createBlock(AppIconLabelPair_default, {
@@ -1,9 +1,9 @@
1
- import { a as AppColorProvider_default, n as useCrm } from "./CrmDetailContainer-C7-L_VOS.js";
1
+ import { a as AppColorProvider_default, n as useCrm } from "./CrmDetailContainer-BEVK4cI_.js";
2
2
  import { O as onKeyStroke } from "./AppSkeletonLoader-0JvTFsQE.js";
3
3
  import { Fragment, createBlock, createElementBlock, createElementVNode, createTextVNode, createVNode, defineComponent, openBlock, renderList, renderSlot, toDisplayString, toValue, unref, withCtx } from "vue";
4
4
  import { VcIconButton, VcRouterLinkTabs, VcRouterLinkTabsItem } from "@wisemen/vue-core-components";
5
5
  import { RouterView } from "vue-router";
6
- var _hoisted_1 = { class: "flex h-dvh w-dvw flex-1 overflow-hidden" }, _hoisted_2 = { class: "flex h-full min-w-[400px] flex-col" }, _hoisted_3 = { class: "p-sm bg-secondary flex h-full w-full flex-1 justify-center overflow-hidden" }, _hoisted_4 = { class: "flex w-full flex-col" }, _hoisted_5 = { class: "p-lg grid w-full grid-cols-3" }, _hoisted_6 = { class: "flex items-center justify-center" }, _hoisted_7 = { class: "flex items-center justify-end" }, _hoisted_8 = { class: "h-full w-full overflow-y-auto" }, CrmDetailView_default = /* @__PURE__ */ defineComponent({
6
+ var _hoisted_1 = { class: "flex h-dvh w-dvw flex-1 overflow-hidden" }, _hoisted_2 = { class: "flex h-full min-w-[400px] flex-col" }, _hoisted_3 = { class: "bg-secondary flex h-full w-full flex-1 justify-center overflow-hidden" }, _hoisted_4 = { class: "flex w-full flex-col" }, _hoisted_5 = { class: "p-lg grid w-full grid-cols-3" }, _hoisted_6 = { class: "flex items-center justify-center" }, _hoisted_7 = { class: "flex items-center justify-end" }, _hoisted_8 = { class: "h-full w-full overflow-y-auto" }, CrmDetailView_default = /* @__PURE__ */ defineComponent({
7
7
  __name: "CrmDetailView",
8
8
  props: {
9
9
  entityType: {},
@@ -1,10 +1,10 @@
1
- import { $ as useApiErrorToast, B as AppGlobalFormError_default, C as ContactPersonFormContactField_default, D as AppDrawer_default, G as AppForm_default, H as NoteUpdateDialog_default, K as i18nPlugin, O as useSearch, Q as useForm, U as CrmDetailSidebarNotesView_default, W as toFormField, _ as ContactPersonFormNameField_default, a as AppColorProvider_default, at as useNoteDeleteMutation, d as CrmDetailSidebarAccordionItem_default, f as CrmDetailAccordionRoot_default, g as ContactPersonCreateNewForm_default, h as individualItemSchema, i as CrmDetailSidebarTabs_default, it as useQueryClient, l as AppOpenEntityButton_default, lt as AppGrid_default, m as contactPersonUpdateFormSchema, n as useCrm, nt as useKeysetInfiniteQuery, ot as NoteService, p as AppIconLabelPair_default, rt as useMutation, t as CrmDetailContainer_default, u as CrmDetailSidebarCard_default, v as IndividualAutocomplete_default, w as useContactPersonCreateMutation, z as AppSidebarFormSubmitButton_default } from "./CrmDetailContainer-C7-L_VOS.js";
1
+ import { $ as useApiErrorToast, B as AppGlobalFormError_default, C as ContactPersonFormContactField_default, D as AppDrawer_default, G as AppForm_default, H as NoteUpdateDialog_default, K as i18nPlugin, O as useSearch, Q as useForm, U as CrmDetailSidebarNotesView_default, W as toFormField, _ as ContactPersonFormNameField_default, a as AppColorProvider_default, at as useNoteDeleteMutation, d as CrmDetailSidebarAccordionItem_default, f as CrmDetailAccordionRoot_default, g as ContactPersonCreateNewForm_default, h as individualItemSchema, i as CrmDetailSidebarTabs_default, it as useQueryClient, l as AppOpenEntityButton_default, lt as AppGrid_default, m as contactPersonUpdateFormSchema, n as useCrm, nt as useKeysetInfiniteQuery, ot as NoteService, p as AppIconLabelPair_default, rt as useMutation, t as CrmDetailContainer_default, u as CrmDetailSidebarCard_default, v as IndividualAutocomplete_default, w as useContactPersonCreateMutation, z as AppSidebarFormSubmitButton_default } from "./CrmDetailContainer-BEVK4cI_.js";
2
2
  import { H as AppGroup_default, en as ContentLocale, in as EntityType, ln as He, nn as DealSource, t as AppSkeletonLoader_default, un as ze, x as Motion, z as useDateTimeFormat } from "./AppSkeletonLoader-0JvTFsQE.js";
3
3
  import "./_plugin-vue_export-helper-D6IyMfNk.js";
4
4
  import { t as Error_default } from "./Error-1YqHfPB-.js";
5
- import { a as useUserIndexQuery, i as DealService, n as DealSourceUtil, o as BoardService, r as ContentLocaleUtil, s as AppUnstyledButton_default, t as useDealDetailQuery } from "./dealDetail.query-CU8T_sbl.js";
5
+ import { a as useUserIndexQuery, i as DealService, n as DealSourceUtil, o as BoardService, r as ContentLocaleUtil, s as AppUnstyledButton_default, t as useDealDetailQuery } from "./dealDetail.query-BXtWvh3j.js";
6
6
  import { t as useRouteParams } from "./router-Ff0-znMk.js";
7
- import { t as CrmDetailView_default } from "./CrmDetailView-BYKcMRnA.js";
7
+ import { t as CrmDetailView_default } from "./CrmDetailView-jfiXUtZr.js";
8
8
  import z$1, { z } from "zod";
9
9
  import { Fragment, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createTextVNode, createVNode, defineComponent, mergeModels, mergeProps, nextTick, openBlock, ref, renderList, renderSlot, toDisplayString, unref, useModel, useTemplateRef, withCtx } from "vue";
10
10
  import { useI18n } from "vue-i18n";
@@ -1,10 +1,10 @@
1
- import "./CrmDetailContainer-C7-L_VOS.js";
2
- import "./CrmDetailHeaderCard-DDFgf_WH.js";
1
+ import "./CrmDetailContainer-BEVK4cI_.js";
2
+ import "./CrmDetailHeaderCard-DrtAKAt_.js";
3
3
  import { in as EntityType } from "./AppSkeletonLoader-0JvTFsQE.js";
4
4
  import "./_plugin-vue_export-helper-D6IyMfNk.js";
5
- import { t as IndividualDialogSidebarProvider_default } from "./IndividualDialogSidebarProvider-Dzwnz3RA.js";
5
+ import { t as IndividualDialogSidebarProvider_default } from "./IndividualDialogSidebarProvider-B8UCjpiu.js";
6
6
  import { t as useRouteParams } from "./router-Ff0-znMk.js";
7
- import { t as CrmDetailView_default } from "./CrmDetailView-BYKcMRnA.js";
7
+ import { t as CrmDetailView_default } from "./CrmDetailView-jfiXUtZr.js";
8
8
  import { createBlock, createVNode, defineComponent, openBlock, unref, withCtx } from "vue";
9
9
  var IndividualDetailView_default = /* @__PURE__ */ defineComponent({
10
10
  __name: "IndividualDetailView",
@@ -1,5 +1,5 @@
1
- import { $ as useApiErrorToast, D as AppDrawer_default, H as NoteUpdateDialog_default, Q as useForm, T as IndividualService, U as CrmDetailSidebarNotesView_default, a as AppColorProvider_default, at as useNoteDeleteMutation, d as CrmDetailSidebarAccordionItem_default, f as CrmDetailAccordionRoot_default, g as ContactPersonCreateNewForm_default, i as CrmDetailSidebarTabs_default, it as useQueryClient, m as contactPersonUpdateFormSchema, n as useCrm, nt as useKeysetInfiniteQuery, ot as NoteService, p as AppIconLabelPair_default, q as AppConfirmDialog_default, rt as useMutation, t as CrmDetailContainer_default, u as CrmDetailSidebarCard_default, w as useContactPersonCreateMutation, z as AppSidebarFormSubmitButton_default } from "./CrmDetailContainer-C7-L_VOS.js";
2
- import { c as assert, i as CrmDetailSidebarMapCard_default, n as CrmDetailSidebarAccordionContactPersonInfo_default, o as ContactPersonCreateForm_default, r as CrmDetailSidebarAccordionBillingInformation_default, s as ActivityList_default, t as CrmDetailHeaderCard_default } from "./CrmDetailHeaderCard-DDFgf_WH.js";
1
+ import { $ as useApiErrorToast, D as AppDrawer_default, H as NoteUpdateDialog_default, Q as useForm, T as IndividualService, U as CrmDetailSidebarNotesView_default, a as AppColorProvider_default, at as useNoteDeleteMutation, d as CrmDetailSidebarAccordionItem_default, f as CrmDetailAccordionRoot_default, g as ContactPersonCreateNewForm_default, i as CrmDetailSidebarTabs_default, it as useQueryClient, m as contactPersonUpdateFormSchema, n as useCrm, nt as useKeysetInfiniteQuery, ot as NoteService, p as AppIconLabelPair_default, q as AppConfirmDialog_default, rt as useMutation, t as CrmDetailContainer_default, u as CrmDetailSidebarCard_default, w as useContactPersonCreateMutation, z as AppSidebarFormSubmitButton_default } from "./CrmDetailContainer-BEVK4cI_.js";
2
+ import { c as assert, i as CrmDetailSidebarMapCard_default, n as CrmDetailSidebarAccordionContactPersonInfo_default, o as ContactPersonCreateForm_default, r as CrmDetailSidebarAccordionBillingInformation_default, s as ActivityList_default, t as CrmDetailHeaderCard_default } from "./CrmDetailHeaderCard-DrtAKAt_.js";
3
3
  import { cn as Be, in as EntityType, ln as He, t as AppSkeletonLoader_default, un as ze, x as Motion, z as useDateTimeFormat } from "./AppSkeletonLoader-0JvTFsQE.js";
4
4
  import { Fragment, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createTextVNode, createVNode, defineComponent, openBlock, ref, renderList, resolveComponent, toDisplayString, unref, withCtx } from "vue";
5
5
  import { useI18n } from "vue-i18n";
@@ -1,4 +1,4 @@
1
- import { A as useOffsetInfiniteQuery, tt as createI18nKeyMap, ut as ContactPersonUpdateTransformer } from "./CrmDetailContainer-C7-L_VOS.js";
1
+ import { A as useOffsetInfiniteQuery, tt as createI18nKeyMap, ut as ContactPersonUpdateTransformer } from "./CrmDetailContainer-BEVK4cI_.js";
2
2
  import { Ft as viewDealDetailV1, It as viewDealIndexV1, J as createDealV1, Pt as viewDealContactPersonDetailV1, W as ZonedDateTimeTransformer, Zt as viewUserIndexV1, at as listBoardColumnTransitionsV1, ct as makeDealContactPersonPrimaryV1, en as ContentLocale, ft as transitionDealColumnV1, ln as He, mt as unlinkContactPersonFromDealV1, ot as listBoardColumnsV1, rt as linkContactPersonToDealV1, vt as updateDealContactPersonV1, yt as updateDealV1 } from "./AppSkeletonLoader-0JvTFsQE.js";
3
3
  import { z } from "zod";
4
4
  import { createElementBlock, defineComponent, openBlock, renderSlot } from "vue";
package/dist/index.js CHANGED
@@ -1,12 +1,12 @@
1
- import { $ as useApiErrorToast, A as useOffsetInfiniteQuery, B as AppGlobalFormError_default, E as IndividualUpdateTransformer, F as VisuallyHiddenInput_default, G as AppForm_default, J as AppDialogHeader_default, K as i18nPlugin, L as useCollection, M as ListboxFilter_default, N as ListboxContent_default, O as useSearch, P as ListboxRoot_default, Q as useForm, R as useFormControl, S as useIndividualIndexQuery, T as IndividualService, V as AppAndOrSeparator_default, W as toFormField, X as AppDialogActionPrimary_default, Y as AppDialogActions_default, Z as AppDialogActionCancel_default, a as AppColorProvider_default, b as AppSeparator_default, dt as AddressTransformer, et as LoggerUtil, gt as en_US_default, ht as nl_BE_default, j as ListboxItem_default, k as useRouteQueryState, lt as AppGrid_default, mt as individualUuidSchema, n as useCrm, o as EntityTypeUtil, r as useCrmConfig, st as AppInfiniteScroll_default, x as AppHeightTransition_default, y as EntityAutocomplete_default } from "./CrmDetailContainer-C7-L_VOS.js";
2
- import { a as CustomFieldDefinitionUtil, c as FormFieldset_default, d as useBusinessDetailQuery, f as BusinessService, i as getBusinessCreateFormSchema, l as AppVatNumberField_default, n as VatNumberUtil, o as vatNumberSchema, p as businessUuidSchema, r as useBusinessIndexQuery, s as addressFormSchema, t as BusinessDialogSidebarProvider_default, u as useBusinessCreateMutation } from "./BusinessDialogSidebarProvider-DLB6xwx6.js";
3
- import { a as AddressUtil, c as assert } from "./CrmDetailHeaderCard-DDFgf_WH.js";
1
+ import { $ as useApiErrorToast, A as useOffsetInfiniteQuery, B as AppGlobalFormError_default, E as IndividualUpdateTransformer, F as VisuallyHiddenInput_default, G as AppForm_default, J as AppDialogHeader_default, K as i18nPlugin, L as useCollection, M as ListboxFilter_default, N as ListboxContent_default, O as useSearch, P as ListboxRoot_default, Q as useForm, R as useFormControl, S as useIndividualIndexQuery, T as IndividualService, V as AppAndOrSeparator_default, W as toFormField, X as AppDialogActionPrimary_default, Y as AppDialogContainer_default, Z as AppDialogActionCancel_default, a as AppColorProvider_default, b as AppSeparator_default, dt as AddressTransformer, et as LoggerUtil, gt as en_US_default, ht as nl_BE_default, j as ListboxItem_default, k as useRouteQueryState, lt as AppGrid_default, mt as individualUuidSchema, n as useCrm, o as EntityTypeUtil, r as useCrmConfig, st as AppInfiniteScroll_default, x as AppHeightTransition_default, y as EntityAutocomplete_default } from "./CrmDetailContainer-BEVK4cI_.js";
2
+ import { a as CustomFieldDefinitionUtil, c as FormFieldset_default, d as useBusinessDetailQuery, f as BusinessService, i as getBusinessCreateFormSchema, l as AppVatNumberField_default, n as VatNumberUtil, o as vatNumberSchema, p as businessUuidSchema, r as useBusinessIndexQuery, s as addressFormSchema, t as BusinessDialogSidebarProvider_default, u as useBusinessCreateMutation } from "./BusinessDialogSidebarProvider-DqaC1K5J.js";
3
+ import { a as AddressUtil, c as assert } from "./CrmDetailHeaderCard-DrtAKAt_.js";
4
4
  import { $t as ClientType, A as useElementSize, C as _sfc_main, D as warning, E as useMotionConfig, G as Xn, H as AppGroup_default, I as isDef, Jt as viewMailTemplateIndexV1, K as confirmFileUploadV1, Kt as viewMailTemplateDetailByKeyV1, M as useInfiniteScroll, P as useStepper, R as useDebounceFn, S as motion, St as updateMailTemplateV1, T as provideMotionConfig, V as plainDateSchema, W as ZonedDateTimeTransformer, Y as createFileV1, Yt as viewRecentEntitiesV1, an as GlobalSearchCollectionName, b as isEqual, d as useDirection, dt as searchCollectionsV1, en as ContentLocale, in as EntityType, j as useEventListener, k as useClipboard, l as useId$1, ln as He, m as useVModel, nn as DealSource, p as useFocusWithin, qt as viewMailTemplateDetailV1, s as Primitive, t as AppSkeletonLoader_default, tn as CountryCode, u as useForwardExpose, un as ze, ut as searchCbeEnterprisesV1, v as useArrowNavigation, w as defaultConfig, x as Motion, y as createContext, z as useDateTimeFormat } from "./AppSkeletonLoader-0JvTFsQE.js";
5
5
  import { t as __plugin_vue_export_helper_default } from "./_plugin-vue_export-helper-D6IyMfNk.js";
6
6
  import { t as Error_default } from "./Error-1YqHfPB-.js";
7
- import { a as useUserIndexQuery, i as DealService, n as DealSourceUtil, o as BoardService, r as ContentLocaleUtil, s as AppUnstyledButton_default, t as useDealDetailQuery } from "./dealDetail.query-CU8T_sbl.js";
7
+ import { a as useUserIndexQuery, i as DealService, n as DealSourceUtil, o as BoardService, r as ContentLocaleUtil, s as AppUnstyledButton_default, t as useDealDetailQuery } from "./dealDetail.query-BXtWvh3j.js";
8
8
  import { a as RevealOnHoverOrFocus_default, i as FileUtil, n as DealCommunicationMailListSectionContainer_default, o as FileReferenceTransformer, r as MailService, t as DealExternalAttachment_default } from "./DealExternalAttachment-Dp_U3Q2S.js";
9
- import { n as useIndividualDetailQuery, t as IndividualDialogSidebarProvider_default } from "./IndividualDialogSidebarProvider-Dzwnz3RA.js";
9
+ import { n as useIndividualDetailQuery, t as IndividualDialogSidebarProvider_default } from "./IndividualDialogSidebarProvider-B8UCjpiu.js";
10
10
  import z$1, { z } from "zod";
11
11
  import { Fragment, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createTextVNode, createVNode, customRef, defineComponent, getCurrentInstance, h, inject, isRef, markRaw, mergeModels, mergeProps, nextTick, normalizeClass, normalizeStyle, onBeforeUnmount, onMounted, onUnmounted, openBlock, provide, reactive, ref, renderList, renderSlot, resolveDynamicComponent, shallowRef, toDisplayString, toRaw, toRefs, toValue, unref, useAttrs, useId, useModel, useTemplateRef, watch, watchEffect, withCtx, withKeys, withModifiers } from "vue";
12
12
  import { useI18n } from "vue-i18n";
@@ -144,8 +144,8 @@ var [injectTagsInputRootContext, provideTagsInputRootContext] = createContext("T
144
144
  defaultValue: n.defaultValue,
145
145
  passive: !0,
146
146
  deep: !0
147
- }), { forwardRef: U, currentElement: ak } = useForwardExpose(), { focused: ok } = useFocusWithin(ak), K = useFormControl(ak), { getItems: Z, CollectionSlot: sk } = useCollection({ isProvider: !0 }), ck = ref(), lk = ref(!1), uk = computed(() => Array.isArray(I.value) ? [...I.value] : []);
148
- function dk(e) {
147
+ }), { forwardRef: U, currentElement: nk } = useForwardExpose(), { focused: rk } = useFocusWithin(nk), K = useFormControl(nk), { getItems: Z, CollectionSlot: ik } = useCollection({ isProvider: !0 }), ak = ref(), ok = ref(!1), sk = computed(() => Array.isArray(I.value) ? [...I.value] : []);
148
+ function ck(e) {
149
149
  if (e !== -1) {
150
150
  let t = Z().filter((e) => e.ref.dataset.disabled !== "");
151
151
  I.value = I.value.filter((t, n) => n !== e), r("removeTag", t[e].value);
@@ -154,16 +154,16 @@ var [injectTagsInputRootContext, provideTagsInputRootContext] = createContext("T
154
154
  return provideTagsInputRootContext({
155
155
  modelValue: I,
156
156
  onAddValue: (e) => {
157
- let t = [...uk.value], a = t.length > 0 && typeof t[0] == "object", o = t.length > 0 && typeof n.defaultValue[0] == "object";
157
+ let t = [...sk.value], a = t.length > 0 && typeof t[0] == "object", o = t.length > 0 && typeof n.defaultValue[0] == "object";
158
158
  if ((a || o) && typeof n.convertValue != "function") throw Error("You must provide a `convertValue` function when using objects as values.");
159
159
  let s = n.convertValue ? n.convertValue(e) : e;
160
160
  if (t.length >= p.value && p.value) return r("invalid", s), !1;
161
161
  if (n.duplicate) return I.value = [...t, s], r("addTag", s), !0;
162
- if (t.includes(s)) lk.value = !0;
162
+ if (t.includes(s)) ok.value = !0;
163
163
  else return I.value = [...t, s], r("addTag", s), !0;
164
164
  return r("invalid", s), !1;
165
165
  },
166
- onRemoveValue: dk,
166
+ onRemoveValue: ck,
167
167
  onInputKeydown: (e) => {
168
168
  let t = e.target, n = Z().map((e) => e.ref).filter((e) => e.dataset.disabled !== "");
169
169
  if (!n.length) return;
@@ -172,10 +172,10 @@ var [injectTagsInputRootContext, provideTagsInputRootContext] = createContext("T
172
172
  case "Delete":
173
173
  case "Backspace":
174
174
  if (t.selectionStart !== 0 || t.selectionEnd !== 0) break;
175
- if (ck.value) {
176
- let t = n.findIndex((e) => e === ck.value);
177
- dk(t), ck.value = ck.value === r ? n.at(t - 1) : n.at(t + 1), e.preventDefault();
178
- } else e.key === "Backspace" && (ck.value = r, e.preventDefault());
175
+ if (ak.value) {
176
+ let t = n.findIndex((e) => e === ak.value);
177
+ ck(t), ak.value = ak.value === r ? n.at(t - 1) : n.at(t + 1), e.preventDefault();
178
+ } else e.key === "Backspace" && (ak.value = r, e.preventDefault());
179
179
  break;
180
180
  case "Home":
181
181
  case "End":
@@ -183,27 +183,27 @@ var [injectTagsInputRootContext, provideTagsInputRootContext] = createContext("T
183
183
  case "ArrowLeft": {
184
184
  let a = e.key === "ArrowRight" && N.value === "ltr" || e.key === "ArrowLeft" && N.value === "rtl", o = !a;
185
185
  if (t.selectionStart !== 0 || t.selectionEnd !== 0) break;
186
- if (o && !ck.value) ck.value = r, e.preventDefault();
187
- else if (a && r && ck.value === r) ck.value = void 0, e.preventDefault();
188
- else if (ck.value) {
189
- let t = useArrowNavigation(e, ck.value, void 0, {
186
+ if (o && !ak.value) ak.value = r, e.preventDefault();
187
+ else if (a && r && ak.value === r) ak.value = void 0, e.preventDefault();
188
+ else if (ak.value) {
189
+ let t = useArrowNavigation(e, ak.value, void 0, {
190
190
  itemsArray: n,
191
191
  loop: !1,
192
192
  dir: N.value
193
193
  });
194
- t && (ck.value = t), e.preventDefault();
194
+ t && (ak.value = t), e.preventDefault();
195
195
  }
196
196
  break;
197
197
  }
198
198
  case "ArrowUp":
199
199
  case "ArrowDown":
200
- ck.value && e.preventDefault();
200
+ ak.value && e.preventDefault();
201
201
  break;
202
- default: ck.value = void 0;
202
+ default: ak.value = void 0;
203
203
  }
204
204
  },
205
- selectedElement: ck,
206
- isInvalidInput: lk,
205
+ selectedElement: ak,
206
+ isInvalidInput: ok,
207
207
  addOnPaste: o,
208
208
  addOnBlur: v,
209
209
  addOnTab: y,
@@ -213,15 +213,15 @@ var [injectTagsInputRootContext, provideTagsInputRootContext] = createContext("T
213
213
  max: p,
214
214
  id: g,
215
215
  displayValue: n.displayValue
216
- }), (e, t) => (openBlock(), createBlock(unref(sk), null, {
216
+ }), (e, t) => (openBlock(), createBlock(unref(ik), null, {
217
217
  default: withCtx(() => [createVNode(unref(Primitive), {
218
218
  ref: unref(U),
219
219
  dir: unref(N),
220
220
  as: e.as,
221
221
  "as-child": e.asChild,
222
- "data-invalid": lk.value ? "" : void 0,
222
+ "data-invalid": ok.value ? "" : void 0,
223
223
  "data-disabled": unref(s) ? "" : void 0,
224
- "data-focused": unref(ok) ? "" : void 0
224
+ "data-focused": unref(rk) ? "" : void 0
225
225
  }, {
226
226
  default: withCtx(() => [renderSlot(e.$slots, "default", { modelValue: unref(I) }), unref(K) && e.name ? (openBlock(), createBlock(unref(VisuallyHiddenInput_default), {
227
227
  key: 0,
@@ -532,7 +532,7 @@ var [injectTagsInputRootContext, provideTagsInputRootContext] = createContext("T
532
532
  _: 3
533
533
  }));
534
534
  }
535
- }), _hoisted_1$52 = { class: "p-sm flex h-full w-full flex-1 justify-center overflow-hidden" }, _hoisted_2$30 = { class: "mt-xl p-lg absolute top-0 right-6 z-1 flex w-full justify-end" }, CrmDetailContent_default = /* @__PURE__ */ defineComponent({
535
+ }), _hoisted_1$51 = { class: "p-sm flex h-full w-full flex-1 justify-center overflow-hidden" }, _hoisted_2$30 = { class: "mt-xl p-lg absolute top-0 right-6 z-1 flex w-full justify-end" }, CrmDetailContent_default = /* @__PURE__ */ defineComponent({
536
536
  __name: "CrmDetailContent",
537
537
  props: {
538
538
  entityType: {},
@@ -544,7 +544,7 @@ var [injectTagsInputRootContext, provideTagsInputRootContext] = createContext("T
544
544
  color: unref(r).getEntityConfig(unref(EntityType).BUSINESS)?.color ?? null,
545
545
  class: "relative flex-1"
546
546
  }, {
547
- default: withCtx(() => [createElementVNode("div", _hoisted_1$52, [createElementVNode("div", _hoisted_2$30, [createVNode(unref(VcDialogCloseButton))]), createVNode(unref(VcTabs), {
547
+ default: withCtx(() => [createElementVNode("div", _hoisted_1$51, [createElementVNode("div", _hoisted_2$30, [createVNode(unref(VcDialogCloseButton))]), createVNode(unref(VcTabs), {
548
548
  modelValue: n.value,
549
549
  "onUpdate:modelValue": a[0] ||= (e) => n.value = e,
550
550
  "class-config": {
@@ -677,7 +677,7 @@ function useBusinessBillingInformationQuery(e, t) {
677
677
  queryKey: { wiseCrmBusinessBillingInformation: { businessUuid: e } }
678
678
  });
679
679
  }
680
- var _hoisted_1$51 = { class: "border-primary/50 overflow-hidden rounded-xl border shadow-lg" }, _hoisted_2$29 = { class: "bg-tertiary p-lg flex h-14 items-center justify-between rounded-t-xl" }, _hoisted_3$20 = { class: "gap-sm flex items-center" }, _hoisted_4$11 = { class: "text-primary text-sm font-medium" }, _hoisted_5$5 = { class: "bg-primary p-xl shadow-lg" }, AppCard_default = /* @__PURE__ */ defineComponent({
680
+ var _hoisted_1$50 = { class: "border-primary/50 overflow-hidden rounded-xl border shadow-lg" }, _hoisted_2$29 = { class: "bg-tertiary p-lg flex h-14 items-center justify-between rounded-t-xl" }, _hoisted_3$20 = { class: "gap-sm flex items-center" }, _hoisted_4$11 = { class: "text-primary text-sm font-medium" }, _hoisted_5$5 = { class: "bg-primary p-xl shadow-lg" }, AppCard_default = /* @__PURE__ */ defineComponent({
681
681
  __name: "AppCard",
682
682
  props: {
683
683
  title: {},
@@ -685,7 +685,7 @@ var _hoisted_1$51 = { class: "border-primary/50 overflow-hidden rounded-xl borde
685
685
  },
686
686
  setup(e) {
687
687
  let t = e;
688
- return (e, n) => (openBlock(), createElementBlock("div", _hoisted_1$51, [createElementVNode("div", _hoisted_2$29, [createElementVNode("div", _hoisted_3$20, [createVNode(unref(VcIcon), {
688
+ return (e, n) => (openBlock(), createElementBlock("div", _hoisted_1$50, [createElementVNode("div", _hoisted_2$29, [createElementVNode("div", _hoisted_3$20, [createVNode(unref(VcIcon), {
689
689
  icon: t.icon,
690
690
  class: "text-primary size-4"
691
691
  }, null, 8, ["icon"]), createElementVNode("p", _hoisted_4$11, toDisplayString(t.title), 1)]), renderSlot(e.$slots, "header-action")]), createElementVNode("div", _hoisted_5$5, [renderSlot(e.$slots, "default")])]));
@@ -807,7 +807,7 @@ var UuidUtil = class {
807
807
  function U(e) {
808
808
  T.value || _.setValue(e ?? []), N.value || p.setValue(e ?? []);
809
809
  }
810
- function ok(e) {
810
+ function rk(e) {
811
811
  e || (v.setValue(l.modelValue.value ?? ""), _.setValue(c.modelValue.value ?? []));
812
812
  }
813
813
  function K(e) {
@@ -843,7 +843,7 @@ var UuidUtil = class {
843
843
  default: withCtx(() => [createVNode(AppGrid_default, { cols: 2 }, {
844
844
  default: withCtx(() => [createVNode(unref(VcSwitch), {
845
845
  modelValue: T.value,
846
- "onUpdate:modelValue": [t[0] ||= (e) => T.value = e, ok],
846
+ "onUpdate:modelValue": [t[0] ||= (e) => T.value = e, rk],
847
847
  label: unref(n).t("wise_crm.info_dialog.business.information.billing_information.reminder_different_switch"),
848
848
  class: "col-span-full"
849
849
  }, null, 8, ["modelValue", "label"]), T.value ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [createVNode(unref(VcTextField), mergeProps({ label: unref(n).t("wise_crm.info_dialog.business.information.billing_information.reminder_email") }, unref(toFormField)(unref(v)), { placeholder: unref(n).t("wise_crm.info_dialog.business.information.billing_information.email") }), null, 16, ["label", "placeholder"]), createVNode(AppTagsInputField_default, mergeProps(unref(toFormField)(unref(_)), {
@@ -1354,7 +1354,7 @@ var BusinessInfoForm_default = /* @__PURE__ */ defineComponent({
1354
1354
  "on-submit": g
1355
1355
  }, null, 8, ["business", "custom-field-definitions"])) : createCommentVNode("", !0);
1356
1356
  }
1357
- }), _hoisted_1$50 = { class: "flex flex-col" }, _hoisted_2$28 = { class: "font-medium" }, _hoisted_3$19 = {
1357
+ }), _hoisted_1$49 = { class: "flex flex-col" }, _hoisted_2$28 = { class: "font-medium" }, _hoisted_3$19 = {
1358
1358
  key: 0,
1359
1359
  class: "text-placeholder text-sm"
1360
1360
  }, BusinessOverviewTableNameCell_default = /* @__PURE__ */ defineComponent({
@@ -1366,7 +1366,7 @@ var BusinessInfoForm_default = /* @__PURE__ */ defineComponent({
1366
1366
  setup(e) {
1367
1367
  let t = e;
1368
1368
  return (e, n) => (openBlock(), createBlock(unref(VcTableCell), null, {
1369
- default: withCtx(() => [createElementVNode("div", _hoisted_1$50, [createElementVNode("span", _hoisted_2$28, toDisplayString(t.name), 1), t.email ? (openBlock(), createElementBlock("span", _hoisted_3$19, toDisplayString(t.email), 1)) : createCommentVNode("", !0)])]),
1369
+ default: withCtx(() => [createElementVNode("div", _hoisted_1$49, [createElementVNode("span", _hoisted_2$28, toDisplayString(t.name), 1), t.email ? (openBlock(), createElementBlock("span", _hoisted_3$19, toDisplayString(t.email), 1)) : createCommentVNode("", !0)])]),
1370
1370
  _: 1
1371
1371
  }));
1372
1372
  }
@@ -1384,14 +1384,14 @@ function useContext(e) {
1384
1384
  return [n, r];
1385
1385
  }
1386
1386
  const [useProvideDataTableContext, useInjectDataTableContext] = useContext("DataTable");
1387
- var _sfc_main$5 = {}, _hoisted_1$49 = { class: "absolute" };
1388
- function _sfc_render$3(e, t) {
1389
- return openBlock(), createElementBlock("div", _hoisted_1$49, [(openBlock(), createElementBlock(Fragment, null, renderList(3, (e) => createElementVNode("div", {
1387
+ var _sfc_main$4 = {}, _hoisted_1$48 = { class: "absolute" };
1388
+ function _sfc_render$2(e, t) {
1389
+ return openBlock(), createElementBlock("div", _hoisted_1$48, [(openBlock(), createElementBlock(Fragment, null, renderList(3, (e) => createElementVNode("div", {
1390
1390
  key: e,
1391
1391
  class: "absolute inset-0 mask-t-from-25% mask-t-to-100% backdrop-blur-md"
1392
1392
  })), 64))]);
1393
1393
  }
1394
- var DataTableEmptyOrLoadingStateBlurOverlay_default = /* @__PURE__ */ __plugin_vue_export_helper_default(_sfc_main$5, [["render", _sfc_render$3]]);
1394
+ var DataTableEmptyOrLoadingStateBlurOverlay_default = /* @__PURE__ */ __plugin_vue_export_helper_default(_sfc_main$4, [["render", _sfc_render$2]]);
1395
1395
  const [useProvideTableHeaderCellContext, useInjectTableHeaderCellContext] = useContext("TableHeaderCell");
1396
1396
  var DataTableHeaderCell_default = /* @__PURE__ */ defineComponent({
1397
1397
  __name: "DataTableHeaderCell",
@@ -1441,7 +1441,7 @@ var DataTableHeaderCell_default = /* @__PURE__ */ defineComponent({
1441
1441
  _: 1
1442
1442
  }));
1443
1443
  }
1444
- }), _hoisted_1$48 = {
1444
+ }), _hoisted_1$47 = {
1445
1445
  key: 0,
1446
1446
  class: "absolute top-1/2 left-1/2 z-12 -translate-x-1/2 -translate-y-1/2 text-center"
1447
1447
  }, _hoisted_2$27 = { class: "mt-xl text-primary text-lg font-semibold" }, _hoisted_3$18 = { class: "pt-md pb-xl text-secondary mx-auto max-w-92 text-sm" }, _hoisted_4$10 = { class: "relative col-span-full grid grid-cols-subgrid overflow-hidden mask-b-from-0% mask-b-to-75%" }, ROW_COUNT = 10, DataTableEmptyOrLoadingState_default = /* @__PURE__ */ defineComponent({
@@ -1454,7 +1454,7 @@ var DataTableHeaderCell_default = /* @__PURE__ */ defineComponent({
1454
1454
  class: "bg-primary relative grid overflow-hidden"
1455
1455
  }, [
1456
1456
  createVNode(DataTableHeader_default),
1457
- unref(t) ? (openBlock(), createElementBlock("div", _hoisted_1$48, [renderSlot(e.$slots, "empty-state", { activeFilterCount: unref(r) }, () => [
1457
+ unref(t) ? (openBlock(), createElementBlock("div", _hoisted_1$47, [renderSlot(e.$slots, "empty-state", { activeFilterCount: unref(r) }, () => [
1458
1458
  createVNode(unref(VcIcon), {
1459
1459
  icon: "search",
1460
1460
  class: "text-secondary mx-auto size-6"
@@ -1501,11 +1501,11 @@ var DataTableHeaderCell_default = /* @__PURE__ */ defineComponent({
1501
1501
  "action"
1502
1502
  ]));
1503
1503
  }
1504
- }), _sfc_main$4 = {}, _hoisted_1$47 = { class: "flex size-full items-center justify-center" };
1505
- function _sfc_render$2(e, t) {
1506
- return openBlock(), createElementBlock("div", _hoisted_1$47, [renderSlot(e.$slots, "default")]);
1504
+ }), _sfc_main$3 = {}, _hoisted_1$46 = { class: "flex size-full items-center justify-center" };
1505
+ function _sfc_render$1(e, t) {
1506
+ return openBlock(), createElementBlock("div", _hoisted_1$46, [renderSlot(e.$slots, "default")]);
1507
1507
  }
1508
- var CenterContent_default = /* @__PURE__ */ __plugin_vue_export_helper_default(_sfc_main$4, [["render", _sfc_render$2]]), ZodError_default = /* @__PURE__ */ defineComponent({
1508
+ var CenterContent_default = /* @__PURE__ */ __plugin_vue_export_helper_default(_sfc_main$3, [["render", _sfc_render$1]]), ZodError_default = /* @__PURE__ */ defineComponent({
1509
1509
  __name: "ZodError",
1510
1510
  props: { error: {} },
1511
1511
  setup(e) {
@@ -1795,7 +1795,7 @@ var AnimateHeight_default = /* @__PURE__ */ defineComponent({
1795
1795
  _: 3
1796
1796
  }, 8, ["animate", "transition"]));
1797
1797
  }
1798
- }), _hoisted_1$46 = { class: "text-center" }, _hoisted_2$26 = { class: "mx-auto mb-4 flex size-12 items-center justify-center rounded-full bg-gray-100" }, _hoisted_3$17 = { class: "mb-2 text-sm font-medium text-gray-900" }, _hoisted_4$9 = { class: "mb-6 text-sm text-gray-500" }, CrmSearchDialogContentEmptyState_default = /* @__PURE__ */ defineComponent({
1798
+ }), _hoisted_1$45 = { class: "text-center" }, _hoisted_2$26 = { class: "mx-auto mb-4 flex size-12 items-center justify-center rounded-full bg-gray-100" }, _hoisted_3$17 = { class: "mb-2 text-sm font-medium text-gray-900" }, _hoisted_4$9 = { class: "mb-6 text-sm text-gray-500" }, CrmSearchDialogContentEmptyState_default = /* @__PURE__ */ defineComponent({
1799
1799
  __name: "CrmSearchDialogContentEmptyState",
1800
1800
  props: { searchTerm: {} },
1801
1801
  emits: ["clearSearch", "createNewContact"],
@@ -1823,7 +1823,7 @@ var AnimateHeight_default = /* @__PURE__ */ defineComponent({
1823
1823
  },
1824
1824
  class: "p-4"
1825
1825
  }, {
1826
- default: withCtx(() => [createElementVNode("div", _hoisted_1$46, [
1826
+ default: withCtx(() => [createElementVNode("div", _hoisted_1$45, [
1827
1827
  createElementVNode("div", _hoisted_2$26, [createVNode(unref(VcIcon), {
1828
1828
  icon: "search",
1829
1829
  class: "size-6 text-gray-400"
@@ -1855,7 +1855,7 @@ var AnimateHeight_default = /* @__PURE__ */ defineComponent({
1855
1855
  _: 1
1856
1856
  }));
1857
1857
  }
1858
- }), _hoisted_1$45 = { class: "flex flex-col" }, _hoisted_2$25 = { class: "flex items-center border-gray-200 py-3" }, _hoisted_3$16 = { key: 0 }, _hoisted_4$8 = { class: "px-2 py-1" }, _hoisted_5$4 = { class: "min-w-0 flex-1" }, _hoisted_6$2 = { class: "font-medium text-gray-900" }, _hoisted_7$2 = {
1858
+ }), _hoisted_1$44 = { class: "flex flex-col" }, _hoisted_2$25 = { class: "flex items-center border-gray-200 py-3" }, _hoisted_3$16 = { key: 0 }, _hoisted_4$8 = { class: "px-2 py-1" }, _hoisted_5$4 = { class: "min-w-0 flex-1" }, _hoisted_6$2 = { class: "font-medium text-gray-900" }, _hoisted_7$2 = {
1859
1859
  key: 0,
1860
1860
  class: "gap-md flex text-xs text-gray-500"
1861
1861
  }, _hoisted_8$2 = { key: 0 }, _hoisted_9 = { key: 1 }, _hoisted_10 = {
@@ -1914,8 +1914,8 @@ var AnimateHeight_default = /* @__PURE__ */ defineComponent({
1914
1914
  streetNumber: e.streetNumber ?? ""
1915
1915
  };
1916
1916
  }
1917
- let I = ref(null), U = computed(() => s.value.length > 0), ak = computed(() => U.value && !y.isLoading.value && T.value.length === 0);
1918
- function ok(e) {
1917
+ let I = ref(null), U = computed(() => s.value.length > 0), nk = computed(() => U.value && !y.isLoading.value && T.value.length === 0);
1918
+ function rk(e) {
1919
1919
  r("select", e.entity.type, e.id);
1920
1920
  }
1921
1921
  function K() {
@@ -1924,17 +1924,17 @@ var AnimateHeight_default = /* @__PURE__ */ defineComponent({
1924
1924
  function Z(e) {
1925
1925
  return e === I.value;
1926
1926
  }
1927
- function sk(e) {
1927
+ function ik(e) {
1928
1928
  I.value = e ?? null;
1929
1929
  }
1930
- return (e, t) => (openBlock(), createElementBlock("div", _hoisted_1$45, [createElementVNode("div", _hoisted_2$25, [createVNode(AppGroup_default, {
1930
+ return (e, t) => (openBlock(), createElementBlock("div", _hoisted_1$44, [createElementVNode("div", _hoisted_2$25, [createVNode(AppGroup_default, {
1931
1931
  gap: "sm",
1932
1932
  align: "center",
1933
1933
  class: "flex-1"
1934
1934
  }, {
1935
1935
  default: withCtx(() => [createVNode(unref(ListboxRoot_default), {
1936
1936
  class: "flex-1",
1937
- onHighlight: t[2] ||= (e) => sk(e?.value?.toString())
1937
+ onHighlight: t[2] ||= (e) => ik(e?.value?.toString())
1938
1938
  }, {
1939
1939
  default: withCtx(() => [createVNode(unref(ListboxFilter_default), {
1940
1940
  class: "w-full border-0 bg-transparent text-sm placeholder-gray-500 outline-0 focus:outline-0",
@@ -1961,7 +1961,7 @@ var AnimateHeight_default = /* @__PURE__ */ defineComponent({
1961
1961
  key: e.id,
1962
1962
  value: e.id,
1963
1963
  class: normalizeClass([[Z(e.id) ? "bg-gray-100" : ""], "flex cursor-pointer items-center gap-3 rounded-md px-3 py-2 text-sm transition-colors hover:bg-gray-100 focus:bg-gray-100 focus:outline-none"]),
1964
- onClick: (t) => ok(e)
1964
+ onClick: (t) => rk(e)
1965
1965
  }, {
1966
1966
  default: withCtx(() => [createVNode(unref(VcIcon), {
1967
1967
  icon: e.icon,
@@ -1978,7 +1978,7 @@ var AnimateHeight_default = /* @__PURE__ */ defineComponent({
1978
1978
  "onClick"
1979
1979
  ]))), 128))])]),
1980
1980
  _: 1
1981
- })) : ak.value ? (openBlock(), createBlock(CrmSearchDialogContentEmptyState_default, {
1981
+ })) : nk.value ? (openBlock(), createBlock(CrmSearchDialogContentEmptyState_default, {
1982
1982
  key: 1,
1983
1983
  "search-term": s.value,
1984
1984
  onCreateNewContact: K,
@@ -2085,7 +2085,7 @@ var AnimateHeight_default = /* @__PURE__ */ defineComponent({
2085
2085
  _: 3
2086
2086
  }));
2087
2087
  }
2088
- }), _hoisted_1$44 = { class: "flex flex-col" }, _hoisted_2$24 = { class: "text-primary text-xl font-semibold" }, _hoisted_3$15 = { class: "text-primary text-sm" }, _hoisted_4$7 = { class: "py-2xl" }, _hoisted_5$3 = { class: "gap-lg flex" }, _hoisted_6$1 = { class: "gap-lg flex w-full items-center" }, _hoisted_7$1 = { class: "bg-brand-100 text-brand-700 flex size-10 items-center justify-center rounded-full" }, _hoisted_8$1 = { class: "font-semibold" }, ContactCreateDialogContactTypeSection_default = /* @__PURE__ */ defineComponent({
2088
+ }), _hoisted_1$43 = { class: "flex flex-col" }, _hoisted_2$24 = { class: "text-primary text-xl font-semibold" }, _hoisted_3$15 = { class: "text-primary text-sm" }, _hoisted_4$7 = { class: "py-2xl" }, _hoisted_5$3 = { class: "gap-lg flex" }, _hoisted_6$1 = { class: "gap-lg flex w-full items-center" }, _hoisted_7$1 = { class: "bg-brand-100 text-brand-700 flex size-10 items-center justify-center rounded-full" }, _hoisted_8$1 = { class: "font-semibold" }, ContactCreateDialogContactTypeSection_default = /* @__PURE__ */ defineComponent({
2089
2089
  __name: "ContactCreateDialogContactTypeSection",
2090
2090
  props: {
2091
2091
  modelValue: { required: !0 },
@@ -2105,7 +2105,7 @@ var AnimateHeight_default = /* @__PURE__ */ defineComponent({
2105
2105
  function p(e) {
2106
2106
  s.value = e, l();
2107
2107
  }
2108
- return (e, t) => (openBlock(), createElementBlock(Fragment, null, [createElementVNode("div", _hoisted_1$44, [createVNode(unref(VcDialogTitle), null, {
2108
+ return (e, t) => (openBlock(), createElementBlock(Fragment, null, [createElementVNode("div", _hoisted_1$43, [createVNode(unref(VcDialogTitle), null, {
2109
2109
  default: withCtx(() => [createElementVNode("h2", _hoisted_2$24, toDisplayString(unref(r).t("wise_crm.contact.create_dialog.title")), 1)]),
2110
2110
  _: 1
2111
2111
  }), createVNode(unref(VcDialogDescription), null, {
@@ -2175,7 +2175,7 @@ function useCbeEnterpriseSearchByTermQuery(e) {
2175
2175
  queryKey: { cbeEnterpriseSearchByTerm: { searchTerm: e } }
2176
2176
  });
2177
2177
  }
2178
- var _hoisted_1$43 = { class: "text-sm" }, _hoisted_2$23 = {
2178
+ var _hoisted_1$42 = { class: "text-sm" }, _hoisted_2$23 = {
2179
2179
  key: 0,
2180
2180
  class: "text-secondary text-xs"
2181
2181
  }, CbeAutocomplete_default = /* @__PURE__ */ defineComponent({
@@ -2220,7 +2220,7 @@ var _hoisted_1$43 = { class: "text-sm" }, _hoisted_2$23 = {
2220
2220
  onCreateNew: y,
2221
2221
  onSearch: v
2222
2222
  }, {
2223
- option: withCtx(({ option: e, isHighlighted: t }) => [createElementVNode("div", { class: normalizeClass([{ "bg-brand-50": t }, "p-md px-lg flex flex-col rounded-md"]) }, [createElementVNode("span", _hoisted_1$43, toDisplayString(e.name), 1), e.address ? (openBlock(), createElementBlock("span", _hoisted_2$23, toDisplayString(unref(AddressUtil).format(e.address)), 1)) : createCommentVNode("", !0)], 2)]),
2223
+ option: withCtx(({ option: e, isHighlighted: t }) => [createElementVNode("div", { class: normalizeClass([{ "bg-brand-50": t }, "p-md px-lg flex flex-col rounded-md"]) }, [createElementVNode("span", _hoisted_1$42, toDisplayString(e.name), 1), e.address ? (openBlock(), createElementBlock("span", _hoisted_2$23, toDisplayString(unref(AddressUtil).format(e.address)), 1)) : createCommentVNode("", !0)], 2)]),
2224
2224
  _: 1
2225
2225
  }, 8, [
2226
2226
  "modelValue",
@@ -2337,7 +2337,7 @@ var _hoisted_1$43 = { class: "text-sm" }, _hoisted_2$23 = {
2337
2337
  _: 1
2338
2338
  }))]));
2339
2339
  }
2340
- }), _hoisted_1$42 = { class: "mt-2xl gap-lg border-secondary px-lg pt-lg flex justify-between border-t border-solid" }, ContactCreateDialogFooter_default = /* @__PURE__ */ defineComponent({
2340
+ }), _hoisted_1$41 = { class: "mt-2xl gap-lg border-secondary px-lg pt-lg flex justify-between border-t border-solid" }, ContactCreateDialogFooter_default = /* @__PURE__ */ defineComponent({
2341
2341
  __name: "ContactCreateDialogFooter",
2342
2342
  props: { isSubmitting: { type: Boolean } },
2343
2343
  emits: [
@@ -2350,7 +2350,7 @@ var _hoisted_1$43 = { class: "text-sm" }, _hoisted_2$23 = {
2350
2350
  function o() {
2351
2351
  r("back");
2352
2352
  }
2353
- return (e, t) => (openBlock(), createElementBlock("div", _hoisted_1$42, [createVNode(unref(VcButton), {
2353
+ return (e, t) => (openBlock(), createElementBlock("div", _hoisted_1$41, [createVNode(unref(VcButton), {
2354
2354
  "class-config": { root: "rounded-full min-w-30" },
2355
2355
  variant: "secondary",
2356
2356
  class: "flex-1",
@@ -2447,7 +2447,7 @@ function getIndividualCreateFormSchema(e) {
2447
2447
  });
2448
2448
  });
2449
2449
  }
2450
- var _hoisted_1$41 = { class: "py-2xl" }, ContactCreateDialogIndividualForm_default = /* @__PURE__ */ defineComponent({
2450
+ var _hoisted_1$40 = { class: "py-2xl" }, ContactCreateDialogIndividualForm_default = /* @__PURE__ */ defineComponent({
2451
2451
  __name: "ContactCreateDialogIndividualForm",
2452
2452
  props: { onSubmit: { type: Function } },
2453
2453
  emits: ["back"],
@@ -2467,8 +2467,8 @@ var _hoisted_1$41 = { class: "py-2xl" }, ContactCreateDialogIndividualForm_defau
2467
2467
  onSubmit: async (e) => {
2468
2468
  await r.onSubmit(e);
2469
2469
  }
2470
- }), T = v.register("firstName"), N = v.register("lastName"), I = v.register("phone"), ok = v.register("mobilePhone"), K = v.register("email"), Z = v.register("address");
2471
- function ck() {
2470
+ }), T = v.register("firstName"), N = v.register("lastName"), I = v.register("phone"), rk = v.register("mobilePhone"), K = v.register("email"), Z = v.register("address");
2471
+ function ak() {
2472
2472
  a("back");
2473
2473
  }
2474
2474
  return (e, t) => (openBlock(), createElementBlock("div", null, [createVNode(AppColorProvider_default, { color: unref(l).getEntityConfig(unref(EntityType$1).INDIVIDUAL)?.color ?? null }, {
@@ -2478,7 +2478,7 @@ var _hoisted_1$41 = { class: "py-2xl" }, ContactCreateDialogIndividualForm_defau
2478
2478
  icon: "user"
2479
2479
  }, null, 8, ["title", "description"])]),
2480
2480
  _: 1
2481
- }, 8, ["color"]), createElementVNode("div", _hoisted_1$41, [createVNode(AppForm_default, { form: unref(v) }, {
2481
+ }, 8, ["color"]), createElementVNode("div", _hoisted_1$40, [createVNode(AppForm_default, { form: unref(v) }, {
2482
2482
  default: withCtx(() => [createVNode(AppGrid_default, { cols: 2 }, {
2483
2483
  default: withCtx(() => [
2484
2484
  createVNode(unref(VcTextField), mergeProps(unref(toFormField)(unref(T)), {
@@ -2518,7 +2518,7 @@ var _hoisted_1$41 = { class: "py-2xl" }, ContactCreateDialogIndividualForm_defau
2518
2518
  default: withCtx(() => [createTextVNode(toDisplayString(unref(c).t("wise_crm.contact.create_dialog.form.seperator_label")), 1)]),
2519
2519
  _: 1
2520
2520
  }),
2521
- createVNode(unref(VcPhoneNumberField), mergeProps(unref(toFormField)(unref(ok)), {
2521
+ createVNode(unref(VcPhoneNumberField), mergeProps(unref(toFormField)(unref(rk)), {
2522
2522
  label: unref(c).t("wise_crm.contact.create_dialog.form.fields.mobile_phone"),
2523
2523
  placeholder: unref(c).t("wise_crm.contact.create_dialog.form.fields.mobile_phone")
2524
2524
  }), null, 16, ["label", "placeholder"]),
@@ -2540,7 +2540,7 @@ var _hoisted_1$41 = { class: "py-2xl" }, ContactCreateDialogIndividualForm_defau
2540
2540
  _: 1
2541
2541
  }), createVNode(ContactCreateDialogFooter_default, {
2542
2542
  "is-submitting": unref(v).isSubmitting.value,
2543
- onBack: ck
2543
+ onBack: ak
2544
2544
  }, null, 8, ["is-submitting"])]),
2545
2545
  _: 1
2546
2546
  }, 8, ["form"])])]));
@@ -2648,7 +2648,7 @@ var _hoisted_1$41 = { class: "py-2xl" }, ContactCreateDialogIndividualForm_defau
2648
2648
  _: 1
2649
2649
  }));
2650
2650
  }
2651
- }), _hoisted_1$40 = { class: "p-xl inline-flex items-center justify-center overflow-hidden rounded-lg" }, _hoisted_2$22 = { class: "border-primary/50 bg-primary rounded-3xl border shadow-lg" }, CrmSearchTrigger_default = /* @__PURE__ */ defineComponent({
2651
+ }), _hoisted_1$39 = { class: "p-xl inline-flex items-center justify-center overflow-hidden rounded-lg" }, _hoisted_2$22 = { class: "border-primary/50 bg-primary rounded-3xl border shadow-lg" }, CrmSearchTrigger_default = /* @__PURE__ */ defineComponent({
2652
2652
  __name: "CrmSearchTrigger",
2653
2653
  emits: ["select"],
2654
2654
  setup(e, { emit: t }) {
@@ -2664,7 +2664,7 @@ var _hoisted_1$41 = { class: "py-2xl" }, ContactCreateDialogIndividualForm_defau
2664
2664
  function l() {
2665
2665
  s.open();
2666
2666
  }
2667
- return (e, t) => (openBlock(), createElementBlock("div", _hoisted_1$40, [createElementVNode("div", _hoisted_2$22, [createVNode(AppUnstyledButton_default, {
2667
+ return (e, t) => (openBlock(), createElementBlock("div", _hoisted_1$39, [createElementVNode("div", _hoisted_2$22, [createVNode(AppUnstyledButton_default, {
2668
2668
  class: "px-2xl py-lg ring-offset-brand-800 w-120 rounded-full hover:border-brand-500",
2669
2669
  onClick: c
2670
2670
  }, {
@@ -2707,7 +2707,7 @@ function useBoardColumnsIndexQuery() {
2707
2707
  queryKey: { boardColumnsIndex: {} }
2708
2708
  });
2709
2709
  }
2710
- var _hoisted_1$39 = {
2710
+ var _hoisted_1$38 = {
2711
2711
  key: 0,
2712
2712
  class: "text-secondary max-w-xs text-center text-xs"
2713
2713
  }, ButtonTooltip_default = /* @__PURE__ */ defineComponent({
@@ -2755,7 +2755,7 @@ var _hoisted_1$39 = {
2755
2755
  gap: "sm",
2756
2756
  class: "p-xs"
2757
2757
  }, {
2758
- default: withCtx(() => [t.label === null ? createCommentVNode("", !0) : (openBlock(), createElementBlock("span", _hoisted_1$39, toDisplayString(t.label), 1)), t.keyboardKeys === null ? createCommentVNode("", !0) : (openBlock(), createBlock(unref(VcKeyboardShortcut), {
2758
+ default: withCtx(() => [t.label === null ? createCommentVNode("", !0) : (openBlock(), createElementBlock("span", _hoisted_1$38, toDisplayString(t.label), 1)), t.keyboardKeys === null ? createCommentVNode("", !0) : (openBlock(), createBlock(unref(VcKeyboardShortcut), {
2759
2759
  key: 1,
2760
2760
  "keyboard-keys": t.keyboardKeys
2761
2761
  }, null, 8, ["keyboard-keys"]))]),
@@ -2792,11 +2792,11 @@ var _hoisted_1$39 = {
2792
2792
  _: 3
2793
2793
  }, 8, ["class-config", "is-removable"]));
2794
2794
  }
2795
- }), _sfc_main$3 = {}, _hoisted_1$38 = { class: "text-xs" };
2796
- function _sfc_render$1(e, t) {
2797
- return openBlock(), createElementBlock("span", _hoisted_1$38, [renderSlot(e.$slots, "default")]);
2795
+ }), _sfc_main$2 = {}, _hoisted_1$37 = { class: "text-xs" };
2796
+ function _sfc_render(e, t) {
2797
+ return openBlock(), createElementBlock("span", _hoisted_1$37, [renderSlot(e.$slots, "default")]);
2798
2798
  }
2799
- var FiltersActiveLabel_default = /* @__PURE__ */ __plugin_vue_export_helper_default(_sfc_main$3, [["render", _sfc_render$1]]);
2799
+ var FiltersActiveLabel_default = /* @__PURE__ */ __plugin_vue_export_helper_default(_sfc_main$2, [["render", _sfc_render]]);
2800
2800
  const [useProvideFiltersContext, useInjectFiltersContext] = useContext("filtersContext");
2801
2801
  var FiltersActiveBoolean_default = /* @__PURE__ */ defineComponent({
2802
2802
  __name: "FiltersActiveBoolean",
@@ -2878,7 +2878,7 @@ var FiltersActiveBoolean_default = /* @__PURE__ */ defineComponent({
2878
2878
  _: 1
2879
2879
  }, 8, ["is-disabled", "label"]));
2880
2880
  }
2881
- }), _hoisted_1$37 = { class: "overflow-hidden" }, FiltersActiveValue_default = /* @__PURE__ */ defineComponent({
2881
+ }), _hoisted_1$36 = { class: "overflow-hidden" }, FiltersActiveValue_default = /* @__PURE__ */ defineComponent({
2882
2882
  __name: "FiltersActiveValue",
2883
2883
  props: {
2884
2884
  isEmpty: { type: Boolean },
@@ -2886,7 +2886,7 @@ var FiltersActiveBoolean_default = /* @__PURE__ */ defineComponent({
2886
2886
  },
2887
2887
  setup(e) {
2888
2888
  let t = e;
2889
- return (n, r) => (openBlock(), createElementBlock("div", _hoisted_1$37, [createVNode(AnimateWidth_default, { "duration-in-ms": 200 }, {
2889
+ return (n, r) => (openBlock(), createElementBlock("div", _hoisted_1$36, [createVNode(AnimateWidth_default, { "duration-in-ms": 200 }, {
2890
2890
  default: withCtx(() => [createVNode(unref(_sfc_main), {
2891
2891
  initial: !1,
2892
2892
  mode: "popLayout"
@@ -3004,7 +3004,7 @@ function useFilterValue(e) {
3004
3004
  }
3005
3005
  });
3006
3006
  }
3007
- var _hoisted_1$36 = { class: "gap-x-sm flex items-center tabular-nums" }, FiltersActiveDate_default = /* @__PURE__ */ defineComponent({
3007
+ var _hoisted_1$35 = { class: "gap-x-sm flex items-center tabular-nums" }, FiltersActiveDate_default = /* @__PURE__ */ defineComponent({
3008
3008
  __name: "FiltersActiveDate",
3009
3009
  props: { filter: {} },
3010
3010
  setup(e) {
@@ -3018,7 +3018,7 @@ var _hoisted_1$36 = { class: "gap-x-sm flex items-center tabular-nums" }, Filter
3018
3018
  variant: "tertiary",
3019
3019
  onClick: r[0] ||= (e) => unref(a).open(t.filter)
3020
3020
  }, {
3021
- default: withCtx(() => [createElementVNode("div", _hoisted_1$36, [createVNode(FiltersActiveLabel_default, null, {
3021
+ default: withCtx(() => [createElementVNode("div", _hoisted_1$35, [createVNode(FiltersActiveLabel_default, null, {
3022
3022
  default: withCtx(() => [createTextVNode(toDisplayString(t.filter.label) + ": ", 1)]),
3023
3023
  _: 1
3024
3024
  }), createVNode(FiltersActiveValue_default, {
@@ -3092,7 +3092,7 @@ function useFiltersDateRangeDialog() {
3092
3092
  open: a
3093
3093
  };
3094
3094
  }
3095
- var _hoisted_1$35 = { class: "gap-x-sm flex items-center tabular-nums" }, FiltersActiveDateRange_default = /* @__PURE__ */ defineComponent({
3095
+ var _hoisted_1$34 = { class: "gap-x-sm flex items-center tabular-nums" }, FiltersActiveDateRange_default = /* @__PURE__ */ defineComponent({
3096
3096
  __name: "FiltersActiveDateRange",
3097
3097
  props: { filter: {} },
3098
3098
  setup(e) {
@@ -3109,7 +3109,7 @@ var _hoisted_1$35 = { class: "gap-x-sm flex items-center tabular-nums" }, Filter
3109
3109
  variant: "tertiary",
3110
3110
  onClick: r[0] ||= (e) => unref(a).open(t.filter)
3111
3111
  }, {
3112
- default: withCtx(() => [createElementVNode("div", _hoisted_1$35, [createVNode(FiltersActiveLabel_default, null, {
3112
+ default: withCtx(() => [createElementVNode("div", _hoisted_1$34, [createVNode(FiltersActiveLabel_default, null, {
3113
3113
  default: withCtx(() => [createTextVNode(toDisplayString(t.filter.label) + ": ", 1)]),
3114
3114
  _: 1
3115
3115
  }), createVNode(FiltersActiveValue_default, {
@@ -3609,7 +3609,7 @@ var FocusableElement_default = /* @__PURE__ */ defineComponent({
3609
3609
  _: 3
3610
3610
  }, 8, ["class"]));
3611
3611
  }
3612
- }), _hoisted_1$34 = { class: "pl-sm h-full" }, FiltersActiveFilterPopover_default = /* @__PURE__ */ defineComponent({
3612
+ }), _hoisted_1$33 = { class: "pl-sm h-full" }, FiltersActiveFilterPopover_default = /* @__PURE__ */ defineComponent({
3613
3613
  __name: "FiltersActiveFilterPopover",
3614
3614
  props: { filter: {} },
3615
3615
  setup(e) {
@@ -3629,7 +3629,7 @@ var FocusableElement_default = /* @__PURE__ */ defineComponent({
3629
3629
  "popover-align": "start"
3630
3630
  }, {
3631
3631
  trigger: withCtx(() => [createVNode(FocusableElement_default, null, {
3632
- default: withCtx(() => [createElementVNode("button", _hoisted_1$34, [createVNode(AppGroup_default, {
3632
+ default: withCtx(() => [createElementVNode("button", _hoisted_1$33, [createVNode(AppGroup_default, {
3633
3633
  gap: "xs",
3634
3634
  class: "tabular-nums"
3635
3635
  }, {
@@ -3642,7 +3642,7 @@ var FocusableElement_default = /* @__PURE__ */ defineComponent({
3642
3642
  _: 3
3643
3643
  }, 8, ["is-open"]));
3644
3644
  }
3645
- }), _hoisted_1$33 = {
3645
+ }), _hoisted_1$32 = {
3646
3646
  key: 0,
3647
3647
  class: "border-secondary relative flex items-center border-b"
3648
3648
  }, _hoisted_2$21 = { class: "p-xs flex h-full flex-col overflow-hidden" }, _hoisted_3$14 = { class: "flex w-5 shrink-0 items-center justify-center" }, _hoisted_4$6 = { class: "text-secondary truncate" }, _hoisted_5$2 = {
@@ -3674,7 +3674,7 @@ var FocusableElement_default = /* @__PURE__ */ defineComponent({
3674
3674
  multiple: s(unref(r)),
3675
3675
  class: "flex max-h-(--reka-popper-available-height) max-w-72 min-w-44 flex-col overflow-hidden"
3676
3676
  }, {
3677
- default: withCtx(() => [l.value || toValue(t.filter.options).length > 7 ? (openBlock(), createElementBlock("div", _hoisted_1$33, [
3677
+ default: withCtx(() => [l.value || toValue(t.filter.options).length > 7 ? (openBlock(), createElementBlock("div", _hoisted_1$32, [
3678
3678
  createVNode(unref(ListboxFilter_default), {
3679
3679
  modelValue: n.value,
3680
3680
  "onUpdate:modelValue": o[0] ||= (e) => n.value = e,
@@ -3816,11 +3816,11 @@ var FocusableElement_default = /* @__PURE__ */ defineComponent({
3816
3816
  _: 1
3817
3817
  }, 8, ["filter", "onClear"]));
3818
3818
  }
3819
- }), _hoisted_1$32 = { class: "-mx-xs gap-md flex h-full items-center overflow-x-auto" }, FiltersActive_default = /* @__PURE__ */ defineComponent({
3819
+ }), _hoisted_1$31 = { class: "-mx-xs gap-md flex h-full items-center overflow-x-auto" }, FiltersActive_default = /* @__PURE__ */ defineComponent({
3820
3820
  __name: "FiltersActive",
3821
3821
  setup(e) {
3822
3822
  let { activeFilters: t } = useInjectFiltersContext(), n = useI18n();
3823
- return (e, r) => (openBlock(), createElementBlock("div", _hoisted_1$32, [createVNode(unref(_sfc_main), {
3823
+ return (e, r) => (openBlock(), createElementBlock("div", _hoisted_1$31, [createVNode(unref(_sfc_main), {
3824
3824
  initial: !1,
3825
3825
  mode: "popLayout"
3826
3826
  }, {
@@ -3997,7 +3997,7 @@ var FiltersDropdownMenuBoolean_default = /* @__PURE__ */ defineComponent({
3997
3997
  _: 1
3998
3998
  }, 8, ["label", "icon"]));
3999
3999
  }
4000
- }), _hoisted_1$31 = { class: "relative" }, _hoisted_2$20 = { class: "w-54" }, _hoisted_3$13 = {
4000
+ }), _hoisted_1$30 = { class: "relative" }, _hoisted_2$20 = { class: "w-54" }, _hoisted_3$13 = {
4001
4001
  key: 0,
4002
4002
  class: "mb-xs px-md pt-xs pb-xxs text-disabled block text-xs font-semibold"
4003
4003
  }, FiltersDropdownMenu_default = /* @__PURE__ */ defineComponent({
@@ -4018,7 +4018,7 @@ var FiltersDropdownMenuBoolean_default = /* @__PURE__ */ defineComponent({
4018
4018
  "is-popover-arrow-hidden": !0,
4019
4019
  "popover-align": "end"
4020
4020
  }, {
4021
- default: withCtx(() => [createElementVNode("div", _hoisted_1$31, [createVNode(unref(VcKeyboardShortcutProvider), { "keyboard-keys": ["f"] }, {
4021
+ default: withCtx(() => [createElementVNode("div", _hoisted_1$30, [createVNode(unref(VcKeyboardShortcutProvider), { "keyboard-keys": ["f"] }, {
4022
4022
  default: withCtx(() => [createVNode(unref(VcDropdownMenuTrigger), null, {
4023
4023
  default: withCtx(() => [createVNode(unref(Motion), {
4024
4024
  "as-child": !0,
@@ -4660,17 +4660,17 @@ function useDealIndexQuery(e) {
4660
4660
  queryKey: { dealIndex: { queryParams: e.params } }
4661
4661
  });
4662
4662
  }
4663
- var _hoisted_1$30 = { class: "bg-tertiary border-secondary asp p-sm flex size-6 items-center justify-center rounded-full border" }, _hoisted_2$19 = { class: "text-quaternary text-xs font-semibold" }, _hoisted_3$12 = { class: "max-w-30 truncate text-xs" }, AppAvatarName_default = /* @__PURE__ */ defineComponent({
4663
+ var _hoisted_1$29 = { class: "bg-tertiary border-secondary asp p-sm flex size-6 items-center justify-center rounded-full border" }, _hoisted_2$19 = { class: "text-quaternary text-xs font-semibold" }, _hoisted_3$12 = { class: "max-w-30 truncate text-xs" }, AppAvatarName_default = /* @__PURE__ */ defineComponent({
4664
4664
  __name: "AppAvatarName",
4665
4665
  props: { name: {} },
4666
4666
  setup(e) {
4667
4667
  let t = e, n = computed(() => t.name.split(" ").map((e) => e.charAt(0).toUpperCase()).slice(0, 2).join(""));
4668
4668
  return (e, r) => (openBlock(), createBlock(AppGroup_default, { gap: "xs" }, {
4669
- default: withCtx(() => [createElementVNode("div", _hoisted_1$30, [createElementVNode("span", _hoisted_2$19, toDisplayString(n.value), 1)]), createElementVNode("p", _hoisted_3$12, toDisplayString(t.name), 1)]),
4669
+ default: withCtx(() => [createElementVNode("div", _hoisted_1$29, [createElementVNode("span", _hoisted_2$19, toDisplayString(n.value), 1)]), createElementVNode("p", _hoisted_3$12, toDisplayString(t.name), 1)]),
4670
4670
  _: 1
4671
4671
  }));
4672
4672
  }
4673
- }), _hoisted_1$29 = { class: "text-primary font-medium" }, _hoisted_2$18 = { class: "text-primary text-xs" }, _hoisted_3$11 = { key: 1 }, _hoisted_4$5 = { class: "text-tertiary text-xs" }, DealOverviewColumnItem_default = /* @__PURE__ */ defineComponent({
4673
+ }), _hoisted_1$28 = { class: "text-primary font-medium" }, _hoisted_2$18 = { class: "text-primary text-xs" }, _hoisted_3$11 = { key: 1 }, _hoisted_4$5 = { class: "text-tertiary text-xs" }, DealOverviewColumnItem_default = /* @__PURE__ */ defineComponent({
4674
4674
  __name: "DealOverviewColumnItem",
4675
4675
  props: {
4676
4676
  boardColumnConfig: {},
@@ -4694,7 +4694,7 @@ var _hoisted_1$30 = { class: "bg-tertiary border-secondary asp p-sm flex size-6
4694
4694
  direction: "row",
4695
4695
  justify: "between"
4696
4696
  }, {
4697
- default: withCtx(() => [createElementVNode("div", null, [createElementVNode("p", _hoisted_1$29, toDisplayString(n.deal.name), 1), createElementVNode("p", _hoisted_2$18, toDisplayString(n.deal.client.name), 1)]), createVNode(unref(VcIcon), {
4697
+ default: withCtx(() => [createElementVNode("div", null, [createElementVNode("p", _hoisted_1$28, toDisplayString(n.deal.name), 1), createElementVNode("p", _hoisted_2$18, toDisplayString(n.deal.client.name), 1)]), createVNode(unref(VcIcon), {
4698
4698
  class: "text-placeholder size-4",
4699
4699
  icon: "chevronRight"
4700
4700
  })]),
@@ -4720,7 +4720,7 @@ var _hoisted_1$30 = { class: "bg-tertiary border-secondary asp p-sm flex size-6
4720
4720
  _: 1
4721
4721
  }));
4722
4722
  }
4723
- }), _hoisted_1$28 = { class: "bg-tertiary p-lg gap-md flex h-full max-w-80 min-w-80 flex-col overflow-hidden rounded-2xl" }, _hoisted_2$17 = { class: "py-sm" }, DealOverviewColumn_default = /* @__PURE__ */ defineComponent({
4723
+ }), _hoisted_1$27 = { class: "bg-tertiary p-lg gap-md flex h-full max-w-80 min-w-80 flex-col overflow-hidden rounded-2xl" }, _hoisted_2$17 = { class: "py-sm" }, DealOverviewColumn_default = /* @__PURE__ */ defineComponent({
4724
4724
  __name: "DealOverviewColumn",
4725
4725
  props: {
4726
4726
  selectedOwnerUuid: {},
@@ -4735,7 +4735,7 @@ var _hoisted_1$30 = { class: "bg-tertiary border-secondary asp p-sm flex size-6
4735
4735
  function c(e) {
4736
4736
  r("openDeal", e);
4737
4737
  }
4738
- return (e, t) => (openBlock(), createElementBlock("div", _hoisted_1$28, [
4738
+ return (e, t) => (openBlock(), createElementBlock("div", _hoisted_1$27, [
4739
4739
  createElementVNode("div", _hoisted_2$17, [createVNode(AppColorProvider_default, { color: n.column.color }, {
4740
4740
  default: withCtx(() => [createVNode(unref(VcBadge), {
4741
4741
  "class-config": { root: "data-[variant=translucent]:rounded-md" },
@@ -4787,11 +4787,7 @@ function useFormStepper(e) {
4787
4787
  steps: computed(() => t.steps.value)
4788
4788
  };
4789
4789
  }
4790
- var _sfc_main$2 = {}, _hoisted_1$27 = { class: "p-xl" };
4791
- function _sfc_render(e, t) {
4792
- return openBlock(), createElementBlock("div", _hoisted_1$27, [renderSlot(e.$slots, "default")]);
4793
- }
4794
- var AppDialogContainer_default = /* @__PURE__ */ __plugin_vue_export_helper_default(_sfc_main$2, [["render", _sfc_render]]), _hoisted_1$26 = { class: "py-2xl" }, DealCreateDialogBusinessCreateForm_default = /* @__PURE__ */ defineComponent({
4790
+ var _hoisted_1$26 = { class: "py-2xl" }, DealCreateDialogBusinessCreateForm_default = /* @__PURE__ */ defineComponent({
4795
4791
  __name: "DealCreateDialogBusinessCreateForm",
4796
4792
  emits: ["back", "businessCreated"],
4797
4793
  setup(t, { emit: n }) {
@@ -11974,8 +11970,8 @@ function readDOMChange(e, t, n, r, a) {
11974
11970
  return;
11975
11971
  }
11976
11972
  e.state.selection.from < e.state.selection.to && T.start == T.endB && e.state.selection instanceof TextSelection && (T.start > e.state.selection.from && T.start <= e.state.selection.from + 2 && e.state.selection.from >= p.from ? T.start = e.state.selection.from : T.endA < e.state.selection.to && T.endA >= e.state.selection.to - 2 && e.state.selection.to <= p.to && (T.endB += e.state.selection.to - T.endA, T.endA = e.state.selection.to)), ie$1 && ie_version <= 11 && T.endB == T.start + 1 && T.endA == T.start && T.start > p.from && p.doc.textBetween(T.start - p.from - 1, T.start - p.from + 1) == " \xA0" && (T.start--, T.endA--, T.endB--);
11977
- let N = p.doc.resolveNoCache(T.start - p.from), I = p.doc.resolveNoCache(T.endB - p.from), U = g.resolve(T.start), ak = N.sameParent(I) && N.parent.inlineContent && U.end() >= T.endA;
11978
- if ((ios && e.input.lastIOSEnter > Date.now() - 225 && (!ak || a.some((e) => e.nodeName == "DIV" || e.nodeName == "P")) || !ak && N.pos < p.doc.content.size && (!N.sameParent(I) || !N.parent.inlineContent) && N.pos < I.pos && !/\S/.test(p.doc.textBetween(N.pos, I.pos, "", ""))) && e.someProp("handleKeyDown", (t) => t(e, keyEvent(13, "Enter")))) {
11973
+ let N = p.doc.resolveNoCache(T.start - p.from), I = p.doc.resolveNoCache(T.endB - p.from), U = g.resolve(T.start), nk = N.sameParent(I) && N.parent.inlineContent && U.end() >= T.endA;
11974
+ if ((ios && e.input.lastIOSEnter > Date.now() - 225 && (!nk || a.some((e) => e.nodeName == "DIV" || e.nodeName == "P")) || !nk && N.pos < p.doc.content.size && (!N.sameParent(I) || !N.parent.inlineContent) && N.pos < I.pos && !/\S/.test(p.doc.textBetween(N.pos, I.pos, "", ""))) && e.someProp("handleKeyDown", (t) => t(e, keyEvent(13, "Enter")))) {
11979
11975
  e.input.lastIOSEnter = 0;
11980
11976
  return;
11981
11977
  }
@@ -11983,29 +11979,29 @@ function readDOMChange(e, t, n, r, a) {
11983
11979
  android && chrome && e.domObserver.suppressSelectionUpdates();
11984
11980
  return;
11985
11981
  }
11986
- chrome && T.endB == T.start && (e.input.lastChromeDelete = Date.now()), android && !ak && N.start() != I.start() && I.parentOffset == 0 && N.depth == I.depth && p.sel && p.sel.anchor == p.sel.head && p.sel.head == T.endA && (T.endB -= 2, I = p.doc.resolveNoCache(T.endB - p.from), setTimeout(() => {
11982
+ chrome && T.endB == T.start && (e.input.lastChromeDelete = Date.now()), android && !nk && N.start() != I.start() && I.parentOffset == 0 && N.depth == I.depth && p.sel && p.sel.anchor == p.sel.head && p.sel.head == T.endA && (T.endB -= 2, I = p.doc.resolveNoCache(T.endB - p.from), setTimeout(() => {
11987
11983
  e.someProp("handleKeyDown", function(t) {
11988
11984
  return t(e, keyEvent(13, "Enter"));
11989
11985
  });
11990
11986
  }, 20));
11991
- let ok = T.start, K = T.endA, Z = (t) => {
11992
- let n = t || e.state.tr.replace(ok, K, p.doc.slice(T.start - p.from, T.endB - p.from));
11987
+ let rk = T.start, K = T.endA, Z = (t) => {
11988
+ let n = t || e.state.tr.replace(rk, K, p.doc.slice(T.start - p.from, T.endB - p.from));
11993
11989
  if (p.sel) {
11994
11990
  let t = resolveSelection(e, n.doc, p.sel);
11995
- t && !(chrome && e.composing && t.empty && (T.start != T.endB || e.input.lastChromeDelete < Date.now() - 100) && (t.head == ok || t.head == n.mapping.map(K) - 1) || ie$1 && t.empty && t.head == ok) && n.setSelection(t);
11991
+ t && !(chrome && e.composing && t.empty && (T.start != T.endB || e.input.lastChromeDelete < Date.now() - 100) && (t.head == rk || t.head == n.mapping.map(K) - 1) || ie$1 && t.empty && t.head == rk) && n.setSelection(t);
11996
11992
  }
11997
11993
  return o && n.setMeta("composition", o), n.scrollIntoView();
11998
- }, sk;
11999
- if (ak) if (N.pos == I.pos) {
11994
+ }, ik;
11995
+ if (nk) if (N.pos == I.pos) {
12000
11996
  ie$1 && ie_version <= 11 && N.parentOffset == 0 && (e.domObserver.suppressSelectionUpdates(), setTimeout(() => selectionToDOM(e), 20));
12001
- let t = Z(e.state.tr.delete(ok, K)), n = g.resolve(T.start).marksAcross(g.resolve(T.endA));
11997
+ let t = Z(e.state.tr.delete(rk, K)), n = g.resolve(T.start).marksAcross(g.resolve(T.endA));
12002
11998
  n && t.ensureMarks(n), e.dispatch(t);
12003
- } else if (T.endA == T.endB && (sk = isMarkChange(N.parent.content.cut(N.parentOffset, I.parentOffset), U.parent.content.cut(U.parentOffset, T.endA - U.start())))) {
11999
+ } else if (T.endA == T.endB && (ik = isMarkChange(N.parent.content.cut(N.parentOffset, I.parentOffset), U.parent.content.cut(U.parentOffset, T.endA - U.start())))) {
12004
12000
  let t = Z(e.state.tr);
12005
- sk.type == "add" ? t.addMark(ok, K, sk.mark) : t.removeMark(ok, K, sk.mark), e.dispatch(t);
12001
+ ik.type == "add" ? t.addMark(rk, K, ik.mark) : t.removeMark(rk, K, ik.mark), e.dispatch(t);
12006
12002
  } else if (N.parent.child(N.index()).isText && N.index() == I.index() - (I.textOffset ? 0 : 1)) {
12007
- let t = N.parent.textBetween(N.parentOffset, I.parentOffset), n = () => Z(e.state.tr.insertText(t, ok, K));
12008
- e.someProp("handleTextInput", (r) => r(e, ok, K, t, n)) || e.dispatch(n());
12003
+ let t = N.parent.textBetween(N.parentOffset, I.parentOffset), n = () => Z(e.state.tr.insertText(t, rk, K));
12004
+ e.someProp("handleTextInput", (r) => r(e, rk, K, t, n)) || e.dispatch(n());
12009
12005
  } else e.dispatch(Z());
12010
12006
  else e.dispatch(Z());
12011
12007
  }
@@ -13613,10 +13609,10 @@ var splitBlock = ({ keepMarks: e = !0 } = {}) => ({ tr: t, state: n, dispatch: r
13613
13609
  let a = e.doc.nodeAt(r);
13614
13610
  return n.node.type === a?.type && canJoin(e.doc, r) && e.join(r), !0;
13615
13611
  }, toggleList = (e, t, n, r = {}) => ({ editor: a, tr: o, state: s, dispatch: c, chain: l, commands: p, can: g }) => {
13616
- let { extensions: _, splittableMarks: v } = a.extensionManager, y = getNodeType(e, s.schema), T = getNodeType(t, s.schema), { selection: N, storedMarks: I } = s, { $from: U, $to: ak } = N, ok = U.blockRange(ak), K = I || N.$to.parentOffset && N.$from.marks();
13617
- if (!ok) return !1;
13612
+ let { extensions: _, splittableMarks: v } = a.extensionManager, y = getNodeType(e, s.schema), T = getNodeType(t, s.schema), { selection: N, storedMarks: I } = s, { $from: U, $to: nk } = N, rk = U.blockRange(nk), K = I || N.$to.parentOffset && N.$from.marks();
13613
+ if (!rk) return !1;
13618
13614
  let Z = findParentNode((e) => isList(e.type.name, _))(N);
13619
- if (ok.depth >= 1 && Z && ok.depth - Z.depth <= 1) {
13615
+ if (rk.depth >= 1 && Z && rk.depth - Z.depth <= 1) {
13620
13616
  if (Z.node.type === y) return p.liftListItem(T);
13621
13617
  if (isList(Z.node.type.name, _) && y.validContent(Z.node.content) && c) return l().command(() => (o.setNodeMarkup(Z.pos, y), !0)).command(() => joinListBackwards(o, y)).command(() => joinListForwards(o, y)).run();
13622
13618
  }
@@ -15630,13 +15626,13 @@ function init$1({ groups: e }) {
15630
15626
  tt(N, HYPHEN, N), ta(N, e.domain, s), ta(I, r, o), ta(I, e.domain, s);
15631
15627
  let U = makeState(Url);
15632
15628
  ta(I, e.tld, U), ta(I, e.utld, U), ta(U, e.domain, s), ta(U, r, o), tt(U, DOT, I), tt(U, HYPHEN, N), tt(U, AT, p);
15633
- let ak = tt(U, COLON), ok = makeState(Url);
15634
- ta(ak, e.numeric, ok);
15629
+ let nk = tt(U, COLON), rk = makeState(Url);
15630
+ ta(nk, e.numeric, rk);
15635
15631
  let K = makeState(Url), Z = makeState();
15636
- ta(K, t, K), ta(K, n, Z), ta(Z, t, K), ta(Z, n, Z), tt(U, SLASH, K), tt(ok, SLASH, K);
15637
- let sk = tt(c, COLON), ck = tt(tt(tt(l, COLON), SLASH), SLASH);
15638
- ta(c, e.domain, s), tt(c, DOT, I), tt(c, HYPHEN, N), ta(l, e.domain, s), tt(l, DOT, I), tt(l, HYPHEN, N), ta(sk, e.domain, K), tt(sk, SLASH, K), tt(sk, QUERY, K), ta(ck, e.domain, K), ta(ck, t, K), tt(ck, SLASH, K);
15639
- let lk = [
15632
+ ta(K, t, K), ta(K, n, Z), ta(Z, t, K), ta(Z, n, Z), tt(U, SLASH, K), tt(rk, SLASH, K);
15633
+ let ik = tt(c, COLON), ak = tt(tt(tt(l, COLON), SLASH), SLASH);
15634
+ ta(c, e.domain, s), tt(c, DOT, I), tt(c, HYPHEN, N), ta(l, e.domain, s), tt(l, DOT, I), tt(l, HYPHEN, N), ta(ik, e.domain, K), tt(ik, SLASH, K), tt(ik, QUERY, K), ta(ak, e.domain, K), ta(ak, t, K), tt(ak, SLASH, K);
15635
+ let ok = [
15640
15636
  [OPENBRACE, CLOSEBRACE],
15641
15637
  [OPENBRACKET, CLOSEBRACKET],
15642
15638
  [OPENPAREN, CLOSEPAREN],
@@ -15646,8 +15642,8 @@ function init$1({ groups: e }) {
15646
15642
  [LEFTWHITECORNERBRACKET, RIGHTWHITECORNERBRACKET],
15647
15643
  [FULLWIDTHLESSTHAN, FULLWIDTHGREATERTHAN]
15648
15644
  ];
15649
- for (let e = 0; e < lk.length; e++) {
15650
- let [r, a] = lk[e], o = tt(K, r);
15645
+ for (let e = 0; e < ok.length; e++) {
15646
+ let [r, a] = ok[e], o = tt(K, r);
15651
15647
  tt(Z, r, o), tt(o, a, K);
15652
15648
  let s = makeState(Url);
15653
15649
  ta(o, t, s);
@@ -18141,7 +18137,18 @@ defineComponent({
18141
18137
  });
18142
18138
  }
18143
18139
  });
18144
- var _hoisted_1$21 = { class: "p-xl w-96 max-w-full" }, AppRichTextFieldLinkDialog_default = /* @__PURE__ */ defineComponent({
18140
+ var AppDialogActions_default = /* @__PURE__ */ defineComponent({
18141
+ __name: "AppDialogActions",
18142
+ setup(e) {
18143
+ return (e, t) => (openBlock(), createBlock(AppGroup_default, {
18144
+ justify: "center",
18145
+ class: "mt-4xl"
18146
+ }, {
18147
+ default: withCtx(() => [renderSlot(e.$slots, "default")]),
18148
+ _: 3
18149
+ }));
18150
+ }
18151
+ }), _hoisted_1$21 = { class: "p-xl w-96 max-w-full" }, AppRichTextFieldLinkDialog_default = /* @__PURE__ */ defineComponent({
18145
18152
  __name: "AppRichTextFieldLinkDialog",
18146
18153
  emits: ["close", "confirm"],
18147
18154
  setup(e, { emit: t }) {
@@ -19924,7 +19931,7 @@ function businessRoutes(e) {
19924
19931
  to: e.route.name
19925
19932
  })) },
19926
19933
  path: "/business/:businessUuid",
19927
- component: () => import("./BusinessDetailView-BLRk7Ilq.js"),
19934
+ component: () => import("./BusinessDetailView-CTARs_2D.js"),
19928
19935
  redirect: { name: e[0].route.name },
19929
19936
  children: e.map((e) => e.route)
19930
19937
  }];
@@ -19942,7 +19949,7 @@ function dealRoutes(e) {
19942
19949
  to: e.route.name
19943
19950
  })) },
19944
19951
  path: "/deals/:dealUuid",
19945
- component: () => import("./DealDetailView-D5v-oayt.js"),
19952
+ component: () => import("./DealDetailView-r21zgUI2.js"),
19946
19953
  redirect: { name: t[0].name },
19947
19954
  children: t
19948
19955
  }];
@@ -19955,7 +19962,7 @@ function individualRoutes(e) {
19955
19962
  to: e.route.name
19956
19963
  })) },
19957
19964
  path: "/individual/:individualUuid",
19958
- component: () => import("./IndividualDetailView-DO713ueN.js"),
19965
+ component: () => import("./IndividualDetailView-B2pK3sVY.js"),
19959
19966
  redirect: { name: e[0].route.name },
19960
19967
  children: e.map((e) => e.route)
19961
19968
  }];
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@wisemen/wise-crm-web",
3
3
  "type": "module",
4
- "version": "0.0.1",
4
+ "version": "0.0.3",
5
5
  "private": false,
6
6
  "description": "CRM frontend package with Vue 3 components, composables and types",
7
7
  "author": "Wisemen",