@wisemen/wise-crm-web 0.2.2 → 0.2.4

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.
Files changed (87) hide show
  1. package/dist/{BusinessDetailSidebarProvider-BQMRbGHQ.js → BusinessDetailSidebarProvider-CXG99iHk.js} +24 -30
  2. package/dist/{BusinessDetailView-BxGxWOme.js → BusinessDetailView-BZpocob4.js} +5 -5
  3. package/dist/{CrmDetailHeaderCard-CCNJpMAK.js → CrmDetailHeaderCard-Jo2OteBb.js} +2 -2
  4. package/dist/{CrmDetailView-ozCpuaX2.js → CrmDetailView-DKHX-JEl.js} +1 -1
  5. package/dist/{DealCommunicationTabView-Df5EeolN.js → DealCommunicationTabView-ClflVxHJ.js} +2 -2
  6. package/dist/{DealDetailView-DdWHqaBr.js → DealDetailView-ChAFvBBK.js} +5 -5
  7. package/dist/{DealExternalAttachment-qHdh4yMI.js → DealExternalAttachment-ClwtFzpQ.js} +1 -1
  8. package/dist/{DealSendMailDialog-BaYcWZP-.js → DealSendMailDialog-SWWyaxq8.js} +3 -3
  9. package/dist/{Error-BArv9rNb.js → Error-CX6APxDX.js} +410 -389
  10. package/dist/{IndividualDetailSidebarProvider-BXZH951l.js → IndividualDetailSidebarProvider-BJgxw1Jd.js} +3 -3
  11. package/dist/{IndividualDetailView-DfYS31-e.js → IndividualDetailView-CvGUCWPY.js} +5 -5
  12. package/dist/client/apiErrorCode.gen.d.ts +2 -2
  13. package/dist/client/sdk.gen.d.ts +2 -1
  14. package/dist/client/types.gen.d.ts +405 -351
  15. package/dist/client/zod.gen.d.ts +7527 -7342
  16. package/dist/{client-pCaNxE3C.js → client-CpsHjr8V.js} +327 -294
  17. package/dist/components/action-tooltip/ActionTooltip.vue.d.ts +2 -2
  18. package/dist/components/animation/AnimateHeight.vue.d.ts +2 -2
  19. package/dist/components/animation/AnimateWidth.vue.d.ts +2 -2
  20. package/dist/components/animation/FormCardSubmitButtonTransition.vue.d.ts +2 -2
  21. package/dist/components/animation/OpenCrmDetailTransition.vue.d.ts +2 -2
  22. package/dist/components/app/AppForm.vue.d.ts +9 -5
  23. package/dist/components/app/AppGlobalFormError.vue.d.ts +9 -5
  24. package/dist/components/app/dialog/AppDialog.vue.d.ts +2 -2
  25. package/dist/components/app/dialog/AppDialogHeader.vue.d.ts +2 -2
  26. package/dist/components/app/dialog/AppDialogStepper.vue.d.ts +9 -5
  27. package/dist/components/app/dialog/AppEntityDialog.vue.d.ts +2 -2
  28. package/dist/components/app/drawer/AppDrawer.vue.d.ts +2 -2
  29. package/dist/components/app/height-transition/AppHeightTransition.vue.d.ts +2 -2
  30. package/dist/components/app/rich-text-field/AppRichTextField.vue.d.ts +2 -2
  31. package/dist/components/app/tags-input-field/AppTagsInputField.vue.d.ts +2 -2
  32. package/dist/components/base/fieldset/BaseFieldsetLegend.vue.d.ts +2 -2
  33. package/dist/components/button-tooltip/ButtonTooltip.vue.d.ts +2 -2
  34. package/dist/components/clickable-element/ClickableElement.vue.d.ts +2 -2
  35. package/dist/components/color-provider/AppColorProvider.vue.d.ts +2 -2
  36. package/dist/components/column-layout/ColumnLayout.vue.d.ts +2 -2
  37. package/dist/components/crm-detail/CrmDetailAccordionRoot.vue.d.ts +2 -2
  38. package/dist/components/crm-detail/CrmDetailContent.vue.d.ts +2 -2
  39. package/dist/components/crm-detail/CrmDetailSidebarAccordionItem.vue.d.ts +3 -3
  40. package/dist/components/crm-detail/CrmDetailSidebarTabs.vue.d.ts +2 -2
  41. package/dist/components/custom-field/CustomFieldDefinitionForm.vue.d.ts +9 -5
  42. package/dist/components/dropdown-menu/DropdownMenu.vue.d.ts +3 -3
  43. package/dist/components/dropdown-menu/DropdownMenuGroup.vue.d.ts +2 -2
  44. package/dist/components/dropdown-menu/DropdownMenuRadioGroup.vue.d.ts +10 -6
  45. package/dist/components/entity-autocomplete/EntityAutocomplete.vue.d.ts +10 -6
  46. package/dist/components/file-upload/components/FormFileUpload.vue.d.ts +10 -6
  47. package/dist/components/filters/active/FiltersActiveFilterPopover.vue.d.ts +3 -3
  48. package/dist/components/filters/active/FiltersActiveValue.vue.d.ts +2 -2
  49. package/dist/components/focusable-element/FocusableElement.vue.d.ts +2 -2
  50. package/dist/components/form/FormFieldset.vue.d.ts +2 -2
  51. package/dist/components/open-entity-button/AppOpenEntityButton.vue.d.ts +2 -2
  52. package/dist/components/reveal-on-hover-or-focus/RevealOnHoverOrFocus.vue.d.ts +2 -2
  53. package/dist/components/row-layout/RowLayout.vue.d.ts +2 -2
  54. package/dist/components/table/TableActionsLayout.vue.d.ts +3 -3
  55. package/dist/components/table/data-table/DataTable.vue.d.ts +9 -5
  56. package/dist/components/table/data-table/DataTableCell.vue.d.ts +2 -2
  57. package/dist/components/table/data-table/DataTableEmptyOrLoadingState.vue.d.ts +2 -2
  58. package/dist/contact-person/ContactPersonCreateNewForm.vue.d.ts +2 -2
  59. package/dist/deal/components/DealContactPersonCreateNewForm.vue.d.ts +2 -2
  60. package/dist/deal/components/DealSendMailFormAttachmentField.vue.d.ts +10 -6
  61. package/dist/dialogs/contact-create/components/animations/ContactCreateDialogContentTransition.vue.d.ts +2 -2
  62. package/dist/index.js +188 -180
  63. package/dist/models/address/address.transformer.d.ts +1 -1
  64. package/dist/models/billing-information/billingInformationUuid.model.d.ts +1 -1
  65. package/dist/models/board/boardColumnUuid.model.d.ts +1 -1
  66. package/dist/models/board/transition/boardColumnTransitionUuid.model.d.ts +1 -1
  67. package/dist/models/business/businessUuid.model.d.ts +1 -1
  68. package/dist/models/business/create/businessCreateForm.model.d.ts +6 -6
  69. package/dist/models/business/individualItem.model.d.ts +1 -1
  70. package/dist/models/cbe/cbeEnterpriseNumber.model.d.ts +1 -1
  71. package/dist/models/cbe/search/cbeEnterpriseItem.model.d.ts +1 -1
  72. package/dist/models/contact-person/create/contactPersonCreateExistingForm.model.d.ts +1 -1
  73. package/dist/models/deal/contact-person/dealContactPersonCreateExistingForm.model.d.ts +1 -1
  74. package/dist/models/deal/dealUuid.model.d.ts +1 -1
  75. package/dist/models/individual/individualItem.model.d.ts +1 -1
  76. package/dist/models/individual/individualUuid.model.d.ts +1 -1
  77. package/dist/models/location/locationUuid.model.d.ts +1 -1
  78. package/dist/models/mail/create/mailCreateForm.model.d.ts +1 -1
  79. package/dist/models/mail/mailUuid.model.d.ts +1 -1
  80. package/dist/models/mail-template/mailTemplateUuid.model.d.ts +1 -1
  81. package/dist/models/notes/noteUuid.model.d.ts +1 -1
  82. package/dist/models/tenant-config/tenantConfig.model.d.ts +1 -0
  83. package/dist/models/user/userUuid.model.d.ts +1 -1
  84. package/dist/models/vat-number/vatNumber.transformer.d.ts +2 -2
  85. package/dist/style.css +2 -2
  86. package/dist/testing.js +1 -1
  87. package/package.json +21 -21
package/dist/index.js CHANGED
@@ -1,13 +1,13 @@
1
- import { A as EntityTypeUtil, B as toFormField, C as AppSeparator_default, D as useCrmConfig, F as AppAndOrSeparator_default, G as AppDialogActions_default, H as i18nPlugin, I as useOffsetInfiniteQuery, J as useApiErrorToast, M as useRouteQueryState, R as AppDialogHeader_default, S as EntityAutocomplete_default, T as useCrm, V as AppForm_default, W as AppDialogContainer_default, X as createI18nKeyMap, Y as LoggerUtil, b as IndividualUpdateTransformer, ct as individualUuidSchema, et as AppInfiniteScroll_default, g as phoneNumberFormSchema, j as useSearch, k as AppColorProvider_default, lt as nl_BE_default, nt as AppGrid_default, p as AppUnstyledButton_default, t as Error_default, ut as en_US_default, v as useIndividualIndexQuery, w as AppHeightTransition_default, x as AppGlobalFormError_default, y as IndividualService } from "./Error-BArv9rNb.js";
2
- import { a as vatNumberSchema, c as AppVatNumberField_default, d as useBusinessCreateMutation, f as useBusinessDetailQuery, i as CustomFieldDefinitionUtil, l as FormFieldset_default, m as businessUuidSchema, n as VatNumberUtil, o as addressFormSchema, p as BusinessService, r as ContactCreateDialogBusinessForm_default, s as CustomFieldDefinitionForm_default, t as BusinessDetailSidebarProvider_default, u as useBusinessIndexQuery } from "./BusinessDetailSidebarProvider-BQMRbGHQ.js";
3
- import { c as AddressUtil, u as assert } from "./CrmDetailHeaderCard-CCNJpMAK.js";
1
+ import { A as EntityTypeUtil, B as toFormField, C as AppSeparator_default, D as useCrmConfig, F as AppAndOrSeparator_default, G as AppDialogActions_default, H as i18nPlugin, I as useOffsetInfiniteQuery, J as useApiErrorToast, M as useRouteQueryState, R as AppDialogHeader_default, S as EntityAutocomplete_default, T as useCrm, V as AppForm_default, W as AppDialogContainer_default, X as createI18nKeyMap, Y as LoggerUtil, b as IndividualUpdateTransformer, ct as individualUuidSchema, et as AppInfiniteScroll_default, g as phoneNumberFormSchema, j as useSearch, k as AppColorProvider_default, lt as nl_BE_default, nt as AppGrid_default, p as AppUnstyledButton_default, t as Error_default, ut as en_US_default, v as useIndividualIndexQuery, w as AppHeightTransition_default, x as AppGlobalFormError_default, y as IndividualService } from "./Error-CX6APxDX.js";
2
+ import { a as vatNumberSchema, c as AppVatNumberField_default, d as useBusinessCreateMutation, f as useBusinessDetailQuery, i as CustomFieldDefinitionUtil, l as FormFieldset_default, m as businessUuidSchema, n as VatNumberUtil, o as addressFormSchema, p as BusinessService, r as ContactCreateDialogBusinessForm_default, s as CustomFieldDefinitionForm_default, t as BusinessDetailSidebarProvider_default, u as useBusinessIndexQuery } from "./BusinessDetailSidebarProvider-CXG99iHk.js";
3
+ import { c as AddressUtil, u as assert } from "./CrmDetailHeaderCard-Jo2OteBb.js";
4
4
  import { a as AppGroup_default, l as He, n as useDateTimeFormat, s as ZonedDateTimeTransformer, t as AppSkeletonLoader_default, u as ze } from "./AppSkeletonLoader-BAhoOmFD.js";
5
- import { _t as Locale, b as searchCollectionsV1, ct as BillingInformationRequirement, dt as ClientType, gt as GlobalSearchCollectionName, ht as EntityType, it as viewRecentEntitiesV1, pt as DealSource, yt as SdkContentLocale } from "./client-pCaNxE3C.js";
5
+ import { _t as Locale, b as searchCollectionsV1, ct as BillingInformationRequirement, dt as ClientType, gt as GlobalSearchCollectionName, ht as EntityType, it as viewRecentEntitiesV1, pt as DealSource, yt as SdkContentLocale } from "./client-CpsHjr8V.js";
6
6
  import { t as __plugin_vue_export_helper_default } from "./_plugin-vue_export-helper-BSi1g3Lh.js";
7
- import { _ as AnimateHeight_default, a as FormFileUploadDropzoneOverlay_default, c as useMailTemplateDetailQuery, d as ContentLocaleUtil, f as DealService, g as BoardService, h as useUserIndexQuery, i as FormFileUploadItem_default, l as MailTemplateService, m as ButtonTooltip_default, o as FileUploadService, p as TruncateText_default, r as fileReferenceFormSchema, s as AppRichTextField_default, t as DealSendMailDialog_default, u as DealSourceUtil, v as CenterContent_default, y as AppTagsInputField_default } from "./DealSendMailDialog-BaYcWZP-.js";
7
+ import { _ as AnimateHeight_default, a as FormFileUploadDropzoneOverlay_default, c as useMailTemplateDetailQuery, d as ContentLocaleUtil, f as DealService, g as BoardService, h as useUserIndexQuery, i as FormFileUploadItem_default, l as MailTemplateService, m as ButtonTooltip_default, o as FileUploadService, p as TruncateText_default, r as fileReferenceFormSchema, s as AppRichTextField_default, t as DealSendMailDialog_default, u as DealSourceUtil, v as CenterContent_default, y as AppTagsInputField_default } from "./DealSendMailDialog-SWWyaxq8.js";
8
8
  import { t as UuidUtil } from "./uuid.util-C1p-yuFc.js";
9
- import { o as FileReferenceTransformer } from "./DealExternalAttachment-qHdh4yMI.js";
10
- import { n as useIndividualDetailQuery, t as IndividualDetailSidebarProvider_default } from "./IndividualDetailSidebarProvider-BXZH951l.js";
9
+ import { o as FileReferenceTransformer } from "./DealExternalAttachment-ClwtFzpQ.js";
10
+ import { n as useIndividualDetailQuery, t as IndividualDetailSidebarProvider_default } from "./IndividualDetailSidebarProvider-BJgxw1Jd.js";
11
11
  import z$1, { z } from "zod";
12
12
  import { Fragment, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createStaticVNode, createTextVNode, createVNode, defineComponent, h, inject, isRef, mergeModels, mergeProps, nextTick, normalizeClass, normalizeStyle, onBeforeUnmount, onMounted, onUnmounted, openBlock, provide, reactive, ref, renderList, renderSlot, resolveDynamicComponent, toDisplayString, toValue, unref, useId, useModel, useTemplateRef, watch, withCtx, withModifiers } from "vue";
13
13
  import { useI18n } from "vue-i18n";
@@ -278,17 +278,17 @@ var BusinessBillingInformationUpdateForm_default = /* @__PURE__ */ defineCompone
278
278
  onSubmit: async (e) => {
279
279
  await n.onSubmit(e);
280
280
  }
281
- }), s = computed(() => `card-update-form-${UuidUtil.getRandom()}`), c = o.register("billingAddress"), l = o.register("invoiceCcEmails", []), d = o.register("invoiceEmail"), p = o.register("purchaseNoteCcEmails", []), g = o.register("purchaseNoteEmail"), v = o.register("reminderCcEmails"), y = o.register("reminderEmail"), C = ref(o.state.value.reminderEmail !== o.state.value.invoiceEmail || JSON.stringify(o.state.value.reminderCcEmails) !== JSON.stringify(o.state.value.invoiceCcEmails)), T = ref(o.state.value.purchaseNoteEmail !== o.state.value.invoiceEmail || JSON.stringify(o.state.value.purchaseNoteCcEmails) !== JSON.stringify(o.state.value.invoiceCcEmails));
282
- function j(e) {
283
- C.value || y.setValue(e ?? ""), T.value || g.setValue(e ?? "");
281
+ }), s = computed(() => `card-update-form-${UuidUtil.getRandom()}`), c = o.register("billingAddress"), l = o.register("invoiceCcEmails", []), d = o.register("invoiceEmail"), p = o.register("purchaseNoteCcEmails", []), g = o.register("purchaseNoteEmail"), y = o.register("reminderCcEmails"), S = o.register("reminderEmail"), A = ref(o.state.value.reminderEmail !== o.state.value.invoiceEmail || JSON.stringify(o.state.value.reminderCcEmails) !== JSON.stringify(o.state.value.invoiceCcEmails)), j = ref(o.state.value.purchaseNoteEmail !== o.state.value.invoiceEmail || JSON.stringify(o.state.value.purchaseNoteCcEmails) !== JSON.stringify(o.state.value.invoiceCcEmails));
282
+ function P(e) {
283
+ A.value || S.setValue(e ?? ""), j.value || g.setValue(e ?? "");
284
284
  }
285
- function I(e) {
286
- C.value || v.setValue(e ?? []), T.value || p.setValue(e ?? []);
285
+ function H(e) {
286
+ A.value || y.setValue(e ?? []), j.value || p.setValue(e ?? []);
287
287
  }
288
- function K(e) {
289
- e || (y.setValue(d.modelValue.value ?? ""), v.setValue(l.modelValue.value ?? []));
288
+ function G(e) {
289
+ e || (S.setValue(d.modelValue.value ?? ""), y.setValue(l.modelValue.value ?? []));
290
290
  }
291
- function Z(e) {
291
+ function K(e) {
292
292
  e || (g.setValue(d.modelValue.value ?? ""), p.setValue(l.modelValue.value ?? []));
293
293
  }
294
294
  return (e, n) => (openBlock(), createBlock(AppForm_default, {
@@ -309,22 +309,22 @@ var BusinessBillingInformationUpdateForm_default = /* @__PURE__ */ defineCompone
309
309
  createVNode(unref(VcTextField), mergeProps({
310
310
  label: unref(i).t("wise_crm.info_dialog.business.information.billing_information.invoice_email"),
311
311
  placeholder: unref(i).t("wise_crm.info_dialog.business.information.billing_information.email")
312
- }, unref(toFormField)(unref(d)), { "onUpdate:modelValue": j }), null, 16, ["label", "placeholder"]),
312
+ }, unref(toFormField)(unref(d)), { "onUpdate:modelValue": P }), null, 16, ["label", "placeholder"]),
313
313
  createVNode(AppTagsInputField_default, mergeProps({
314
314
  label: unref(i).t("wise_crm.info_dialog.business.information.billing_information.invoice_cc_emails"),
315
315
  placeholder: unref(i).t("wise_crm.info_dialog.business.information.billing_information.invoice_cc_emails")
316
316
  }, unref(toFormField)(unref(l)), {
317
317
  class: "col-span-2",
318
- "onUpdate:modelValue": I
318
+ "onUpdate:modelValue": H
319
319
  }), null, 16, ["label", "placeholder"]),
320
320
  createVNode(AppHeightTransition_default, { class: "col-span-full overflow-visible" }, {
321
321
  default: withCtx(() => [createVNode(AppGrid_default, { cols: 2 }, {
322
322
  default: withCtx(() => [createVNode(unref(VcSwitch), {
323
- modelValue: C.value,
324
- "onUpdate:modelValue": [n[0] ||= (e) => C.value = e, K],
323
+ modelValue: A.value,
324
+ "onUpdate:modelValue": [n[0] ||= (e) => A.value = e, G],
325
325
  label: unref(i).t("wise_crm.info_dialog.business.information.billing_information.reminder_different_switch"),
326
326
  class: "col-span-full"
327
- }, null, 8, ["modelValue", "label"]), C.value ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [createVNode(unref(VcTextField), mergeProps({ label: unref(i).t("wise_crm.info_dialog.business.information.billing_information.reminder_email") }, unref(toFormField)(unref(y)), { placeholder: unref(i).t("wise_crm.info_dialog.business.information.billing_information.email") }), null, 16, ["label", "placeholder"]), createVNode(AppTagsInputField_default, mergeProps(unref(toFormField)(unref(v)), {
327
+ }, null, 8, ["modelValue", "label"]), A.value ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [createVNode(unref(VcTextField), mergeProps({ label: unref(i).t("wise_crm.info_dialog.business.information.billing_information.reminder_email") }, unref(toFormField)(unref(S)), { placeholder: unref(i).t("wise_crm.info_dialog.business.information.billing_information.email") }), null, 16, ["label", "placeholder"]), createVNode(AppTagsInputField_default, mergeProps(unref(toFormField)(unref(y)), {
328
328
  label: unref(i).t("wise_crm.info_dialog.business.information.billing_information.reminder_cc_emails"),
329
329
  placeholder: unref(i).t("wise_crm.info_dialog.business.information.billing_information.reminder_cc_emails"),
330
330
  class: "col-span-2"
@@ -336,11 +336,11 @@ var BusinessBillingInformationUpdateForm_default = /* @__PURE__ */ defineCompone
336
336
  createVNode(AppHeightTransition_default, { class: "col-span-full overflow-visible" }, {
337
337
  default: withCtx(() => [createVNode(AppGrid_default, { cols: 2 }, {
338
338
  default: withCtx(() => [createVNode(unref(VcSwitch), {
339
- modelValue: T.value,
340
- "onUpdate:modelValue": [n[1] ||= (e) => T.value = e, Z],
339
+ modelValue: j.value,
340
+ "onUpdate:modelValue": [n[1] ||= (e) => j.value = e, K],
341
341
  label: unref(i).t("wise_crm.info_dialog.business.information.billing_information.purchase_notes_different_switch"),
342
342
  class: "col-span-full"
343
- }, null, 8, ["modelValue", "label"]), T.value ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [createVNode(unref(VcTextField), mergeProps({ label: unref(i).t("wise_crm.info_dialog.business.information.billing_information.purchase_note_email") }, unref(toFormField)(unref(g)), { placeholder: unref(i).t("wise_crm.info_dialog.business.information.billing_information.email") }), null, 16, ["label", "placeholder"]), createVNode(AppTagsInputField_default, mergeProps(unref(toFormField)(unref(p)), {
343
+ }, null, 8, ["modelValue", "label"]), j.value ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [createVNode(unref(VcTextField), mergeProps({ label: unref(i).t("wise_crm.info_dialog.business.information.billing_information.purchase_note_email") }, unref(toFormField)(unref(g)), { placeholder: unref(i).t("wise_crm.info_dialog.business.information.billing_information.email") }), null, 16, ["label", "placeholder"]), createVNode(AppTagsInputField_default, mergeProps(unref(toFormField)(unref(p)), {
344
344
  label: unref(i).t("wise_crm.info_dialog.business.information.billing_information.purchase_note_cc_emails"),
345
345
  placeholder: unref(i).t("wise_crm.info_dialog.business.information.billing_information.purchase_note_cc_emails"),
346
346
  class: "col-span-2"
@@ -512,7 +512,7 @@ var _hoisted_1$36 = { class: "col-span-4" }, BusinessInfoForm_default = /* @__PU
512
512
  await n.onSubmit(e);
513
513
  }
514
514
  }), a = i.register("name"), o = i.register("address"), s = i.register("companyNumber"), c = i.register("email"), l = i.register("mobilePhone"), d = i.register("phone"), p = i.register("vatNumber"), g = i.register("language");
515
- return (e, v) => (openBlock(), createBlock(AppForm_default, {
515
+ return (e, y) => (openBlock(), createBlock(AppForm_default, {
516
516
  form: unref(i),
517
517
  class: "flex h-full flex-col justify-between"
518
518
  }, {
@@ -1131,7 +1131,7 @@ var _hoisted_1$32 = { class: "text-center" }, _hoisted_2$19 = { class: "mx-auto
1131
1131
  });
1132
1132
  let d = [GlobalSearchCollectionName.INDIVIDUAL, GlobalSearchCollectionName.BUSINESS], p = useGlobalSearchQuery(computed(() => s.value), computed(() => d ?? [])), _ = computed(() => (p.data.value ?? []).map((e) => e.entity.type === "individual" ? {
1133
1133
  id: e.entity.uuid,
1134
- address: e.entity.address ? v(e.entity.address) : null,
1134
+ address: e.entity.address ? y(e.entity.address) : null,
1135
1135
  description: o.getEntityConfig(EntityType.INDIVIDUAL)?.name ?? `${a.t("wise_crm.search.individual_label")}`,
1136
1136
  email: e.entity.email,
1137
1137
  entity: e.entity,
@@ -1140,7 +1140,7 @@ var _hoisted_1$32 = { class: "text-center" }, _hoisted_2$19 = { class: "mx-auto
1140
1140
  type: e.collection
1141
1141
  } : e.entity.type === "business" ? {
1142
1142
  id: e.entity.uuid,
1143
- address: e.entity.address ? v(e.entity.address) : null,
1143
+ address: e.entity.address ? y(e.entity.address) : null,
1144
1144
  description: o.getEntityConfig(EntityType.BUSINESS)?.name ?? `${a.t("wise_crm.search.business_label")}`,
1145
1145
  email: null,
1146
1146
  entity: e.entity,
@@ -1157,7 +1157,7 @@ var _hoisted_1$32 = { class: "text-center" }, _hoisted_2$19 = { class: "mx-auto
1157
1157
  label: e.entity.name,
1158
1158
  type: e.collection
1159
1159
  }).slice(0, 5));
1160
- function v(e) {
1160
+ function y(e) {
1161
1161
  return {
1162
1162
  placeId: e.placeId,
1163
1163
  bus: e.unit ?? "",
@@ -1172,18 +1172,18 @@ var _hoisted_1$32 = { class: "text-center" }, _hoisted_2$19 = { class: "mx-auto
1172
1172
  streetNumber: e.streetNumber ?? ""
1173
1173
  };
1174
1174
  }
1175
- let y = ref(null), C = computed(() => s.value.length > 0), T = computed(() => C.value && !p.isLoading.value && _.value.length === 0);
1176
- function j(e) {
1175
+ let S = ref(null), A = computed(() => s.value.length > 0), j = computed(() => A.value && !p.isLoading.value && _.value.length === 0);
1176
+ function P(e) {
1177
1177
  i("select", e.entity.type, e.id);
1178
1178
  }
1179
- function I() {
1179
+ function H() {
1180
1180
  r.onCreateNewContact();
1181
1181
  }
1182
- function K(e) {
1183
- return e === y.value;
1182
+ function G(e) {
1183
+ return e === S.value;
1184
1184
  }
1185
- function Z(e) {
1186
- y.value = e ?? null;
1185
+ function K(e) {
1186
+ S.value = e ?? null;
1187
1187
  }
1188
1188
  return (e, t) => (openBlock(), createElementBlock("div", _hoisted_1$31, [createElementVNode("div", _hoisted_2$18, [createVNode(AppGroup_default, {
1189
1189
  gap: "sm",
@@ -1192,7 +1192,7 @@ var _hoisted_1$32 = { class: "text-center" }, _hoisted_2$19 = { class: "mx-auto
1192
1192
  }, {
1193
1193
  default: withCtx(() => [createVNode(unref(ListboxRoot), {
1194
1194
  class: "flex-1",
1195
- onHighlight: t[2] ||= (e) => Z(e?.value?.toString())
1195
+ onHighlight: t[2] ||= (e) => K(e?.value?.toString())
1196
1196
  }, {
1197
1197
  default: withCtx(() => [createVNode(unref(ListboxFilter), {
1198
1198
  class: "w-full border-0 bg-transparent text-sm placeholder-gray-500 outline-0 focus:outline-0",
@@ -1211,15 +1211,15 @@ var _hoisted_1$32 = { class: "text-center" }, _hoisted_2$19 = { class: "mx-auto
1211
1211
  }, null, 8, ["modelValue", "placeholder"])]),
1212
1212
  _: 1
1213
1213
  }), createVNode(AnimateHeight_default, null, {
1214
- default: withCtx(() => [C.value ? (openBlock(), createElementBlock("div", _hoisted_3$12, [createVNode(AppSeparator_default, { class: "my-2" }), _.value.length > 0 ? (openBlock(), createBlock(unref(ListboxContent), {
1214
+ default: withCtx(() => [A.value ? (openBlock(), createElementBlock("div", _hoisted_3$12, [createVNode(AppSeparator_default, { class: "my-2" }), _.value.length > 0 ? (openBlock(), createBlock(unref(ListboxContent), {
1215
1215
  key: 0,
1216
1216
  class: "max-h-80 overflow-y-auto"
1217
1217
  }, {
1218
1218
  default: withCtx(() => [createElementVNode("div", _hoisted_4$7, [(openBlock(!0), createElementBlock(Fragment, null, renderList(_.value, (e) => (openBlock(), createBlock(unref(ListboxItem), {
1219
1219
  key: e.id,
1220
1220
  value: e.id,
1221
- class: normalizeClass([[K(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"]),
1222
- onClick: (t) => j(e)
1221
+ class: normalizeClass([[G(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"]),
1222
+ onClick: (t) => P(e)
1223
1223
  }, {
1224
1224
  default: withCtx(() => [createVNode(unref(VcIcon), {
1225
1225
  icon: e.icon,
@@ -1237,10 +1237,10 @@ var _hoisted_1$32 = { class: "text-center" }, _hoisted_2$19 = { class: "mx-auto
1237
1237
  "onClick"
1238
1238
  ]))), 128))])]),
1239
1239
  _: 1
1240
- })) : T.value ? (openBlock(), createBlock(CrmSearchDialogContentEmptyState_default, {
1240
+ })) : j.value ? (openBlock(), createBlock(CrmSearchDialogContentEmptyState_default, {
1241
1241
  key: 1,
1242
1242
  "search-term": s.value,
1243
- onCreateNewContact: I,
1243
+ onCreateNewContact: H,
1244
1244
  onClearSearch: t[1] ||= (e) => c.value = ""
1245
1245
  }, null, 8, ["search-term"])) : unref(p).isLoading ? (openBlock(), createElementBlock("div", _hoisted_11, [createElementVNode("div", _hoisted_12, toDisplayString(unref(a).t("wise_crm.search.searching")), 1)])) : createCommentVNode("", !0)])) : createCommentVNode("", !0)]),
1246
1246
  _: 1
@@ -1513,7 +1513,7 @@ var ContactCreateDialogIndividualForm_default = /* @__PURE__ */ defineComponent(
1513
1513
  props: { onSubmit: { type: Function } },
1514
1514
  emits: ["back"],
1515
1515
  setup(e, { emit: n }) {
1516
- let a = e, o = n, s = useI18n(), c = useCrm(), l = useCrmConfig(), p = computed(() => c.getEntityConfig(EntityType$1.INDIVIDUAL)), y = computed(() => l.getCustomFieldDefinitionForEntity(EntityType$1.INDIVIDUAL).filter((e) => e.isDisplayedOnCreate)), C = useForm({
1516
+ let a = e, o = n, s = useI18n(), c = useCrm(), l = useCrmConfig(), p = computed(() => c.getEntityConfig(EntityType$1.INDIVIDUAL)), S = computed(() => l.getCustomFieldDefinitionForEntity(EntityType$1.INDIVIDUAL).filter((e) => e.isDisplayedOnCreate)), A = useForm({
1517
1517
  initialState: {
1518
1518
  address: null,
1519
1519
  customFields: null,
@@ -1523,11 +1523,11 @@ var ContactCreateDialogIndividualForm_default = /* @__PURE__ */ defineComponent(
1523
1523
  mobilePhone: null,
1524
1524
  phone: null
1525
1525
  },
1526
- schema: getIndividualCreateFormSchema(y.value),
1526
+ schema: getIndividualCreateFormSchema(S.value),
1527
1527
  onSubmit: async (e) => {
1528
1528
  await a.onSubmit(e);
1529
1529
  }
1530
- }), T = C.register("firstName"), j = C.register("lastName"), I = C.register("phone"), K = C.register("mobilePhone"), Z = C.register("email"), _u = C.register("address");
1530
+ }), j = A.register("firstName"), P = A.register("lastName"), H = A.register("phone"), G = A.register("mobilePhone"), K = A.register("email"), _u = A.register("address");
1531
1531
  function vu() {
1532
1532
  o("back");
1533
1533
  }
@@ -1544,18 +1544,18 @@ var ContactCreateDialogIndividualForm_default = /* @__PURE__ */ defineComponent(
1544
1544
  _: 1
1545
1545
  }, 8, ["color"]), createVNode(AppForm_default, {
1546
1546
  "can-exit-when-dirty": !0,
1547
- form: unref(C),
1547
+ form: unref(A),
1548
1548
  class: "flex flex-1 flex-col"
1549
1549
  }, {
1550
1550
  default: withCtx(() => [createVNode(AppGrid_default, { cols: 1 }, {
1551
1551
  default: withCtx(() => [createVNode(AppGrid_default, { cols: 2 }, {
1552
1552
  default: withCtx(() => [
1553
- createVNode(unref(VcTextField), mergeProps(unref(toFormField)(unref(T)), {
1553
+ createVNode(unref(VcTextField), mergeProps(unref(toFormField)(unref(j)), {
1554
1554
  "is-required": !0,
1555
1555
  label: unref(s).t("wise_crm.contact.create_dialog.form.fields.first_name"),
1556
1556
  placeholder: unref(s).t("wise_crm.contact.create_dialog.form.fields.first_name")
1557
1557
  }), null, 16, ["label", "placeholder"]),
1558
- createVNode(unref(VcTextField), mergeProps(unref(toFormField)(unref(j)), {
1558
+ createVNode(unref(VcTextField), mergeProps(unref(toFormField)(unref(P)), {
1559
1559
  "is-required": !0,
1560
1560
  label: unref(s).t("wise_crm.contact.create_dialog.form.fields.last_name"),
1561
1561
  placeholder: unref(s).t("wise_crm.contact.create_dialog.form.fields.last_name")
@@ -1565,8 +1565,8 @@ var ContactCreateDialogIndividualForm_default = /* @__PURE__ */ defineComponent(
1565
1565
  placeholder: unref(s).t("wise_crm.contact.create_dialog.form.fields.address")
1566
1566
  }, unref(toFormField)(unref(_u)), { class: "col-span-2" }), null, 16, ["label", "placeholder"]),
1567
1567
  createVNode(CustomFieldDefinitionForm_default, {
1568
- "custom-field-definitions": y.value,
1569
- form: unref(C),
1568
+ "custom-field-definitions": S.value,
1569
+ form: unref(A),
1570
1570
  class: "col-span-2"
1571
1571
  }, null, 8, ["custom-field-definitions", "form"]),
1572
1572
  createVNode(FormFieldset_default, {
@@ -1578,7 +1578,7 @@ var ContactCreateDialogIndividualForm_default = /* @__PURE__ */ defineComponent(
1578
1578
  class: "mt-sm bg-secondary p-lg rounded-xl"
1579
1579
  }, {
1580
1580
  default: withCtx(() => [
1581
- createVNode(unref(VcTextField), mergeProps(unref(toFormField)(unref(Z)), {
1581
+ createVNode(unref(VcTextField), mergeProps(unref(toFormField)(unref(K)), {
1582
1582
  label: unref(s).t("wise_crm.contact.create_dialog.form.fields.email"),
1583
1583
  placeholder: unref(s).t("wise_crm.contact.create_dialog.form.fields.email")
1584
1584
  }), null, 16, ["label", "placeholder"]),
@@ -1586,7 +1586,7 @@ var ContactCreateDialogIndividualForm_default = /* @__PURE__ */ defineComponent(
1586
1586
  default: withCtx(() => [createTextVNode(toDisplayString(unref(s).t("wise_crm.contact.create_dialog.form.seperator_label")), 1)]),
1587
1587
  _: 1
1588
1588
  }),
1589
- createVNode(unref(VcPhoneNumberField), mergeProps(unref(toFormField)(unref(K)), {
1589
+ createVNode(unref(VcPhoneNumberField), mergeProps(unref(toFormField)(unref(G)), {
1590
1590
  label: unref(s).t("wise_crm.contact.create_dialog.form.fields.mobile_phone"),
1591
1591
  placeholder: unref(s).t("wise_crm.contact.create_dialog.form.fields.mobile_phone")
1592
1592
  }), null, 16, ["label", "placeholder"]),
@@ -1594,7 +1594,7 @@ var ContactCreateDialogIndividualForm_default = /* @__PURE__ */ defineComponent(
1594
1594
  default: withCtx(() => [createTextVNode(toDisplayString(unref(s).t("wise_crm.contact.create_dialog.form.seperator_label")), 1)]),
1595
1595
  _: 1
1596
1596
  }),
1597
- createVNode(unref(VcPhoneNumberField), mergeProps(unref(toFormField)(unref(I)), {
1597
+ createVNode(unref(VcPhoneNumberField), mergeProps(unref(toFormField)(unref(H)), {
1598
1598
  label: unref(s).t("wise_crm.contact.create_dialog.form.fields.phone"),
1599
1599
  placeholder: unref(s).t("wise_crm.contact.create_dialog.form.fields.phone")
1600
1600
  }), null, 16, ["label", "placeholder"])
@@ -1603,11 +1603,11 @@ var ContactCreateDialogIndividualForm_default = /* @__PURE__ */ defineComponent(
1603
1603
  })]),
1604
1604
  _: 1
1605
1605
  }, 8, ["title"]),
1606
- createVNode(AppGlobalFormError_default, { form: unref(C) }, null, 8, ["form"])
1606
+ createVNode(AppGlobalFormError_default, { form: unref(A) }, null, 8, ["form"])
1607
1607
  ]),
1608
1608
  _: 1
1609
1609
  }), createVNode(ContactCreateDialogFooter_default, {
1610
- "is-submitting": unref(C).isSubmitting.value,
1610
+ "is-submitting": unref(A).isSubmitting.value,
1611
1611
  class: "pt-lg bg-primary sticky bottom-0",
1612
1612
  onBack: vu
1613
1613
  }, null, 8, ["is-submitting"])]),
@@ -2066,7 +2066,7 @@ var _hoisted_1$23 = { class: "gap-sm flex items-center" }, _hoisted_2$14 = { cla
2066
2066
  }
2067
2067
  }), _hoisted_1$21 = { class: "py-4xl mx-auto flex w-full flex-1 flex-col overflow-y-auto px-(--container-padding-x)" }, _hoisted_2$12 = { class: "flex h-full flex-1 flex-col" }, _hoisted_3$7 = { class: "flex min-h-50 flex-1 items-center justify-center" }, _hoisted_4$3 = { class: "gap-lg flex max-h-110 flex-col items-center justify-center sm:flex-row" }, _hoisted_5$1 = {
2068
2068
  key: 0,
2069
- class: "gap-lg flex flex-col justify-between"
2069
+ class: "gap-lg flex h-full flex-col justify-between"
2070
2070
  }, CrmOverviewContent_default = /* @__PURE__ */ defineComponent({
2071
2071
  __name: "CrmOverviewContent",
2072
2072
  setup(e) {
@@ -2412,14 +2412,14 @@ var _hoisted_1$17 = { class: "gap-x-sm flex items-center tabular-nums" }, Filter
2412
2412
  }), u = (e, t, n) => {
2413
2413
  let r = document.createElement(e), [i, a] = Array.isArray(t) ? [void 0, t] : [t, n];
2414
2414
  return i && Object.assign(r, i), a?.forEach((e) => r.appendChild(e)), r;
2415
- }, F = (e, t) => t === "left" ? e.offsetLeft : ((e.offsetParent instanceof HTMLElement ? e.offsetParent : null)?.offsetWidth ?? 0) - e.offsetWidth - e.offsetLeft, H = (e) => e.offsetWidth > 0 && e.offsetHeight > 0, st = (e, t) => {
2415
+ }, B = (e, t) => t === "left" ? e.offsetLeft : ((e.offsetParent instanceof HTMLElement ? e.offsetParent : null)?.offsetWidth ?? 0) - e.offsetWidth - e.offsetLeft, D = (e) => e.offsetWidth > 0 && e.offsetHeight > 0, it = (e, t) => {
2416
2416
  !customElements.get(e) && customElements.define(e, t);
2417
2417
  };
2418
- function X(e, t, { reverse: n = !1 } = {}) {
2418
+ function F(e, t, { reverse: n = !1 } = {}) {
2419
2419
  let r = e.length;
2420
2420
  for (let i = n ? r - 1 : 0; n ? i >= 0 : i < r; n ? i-- : i++) t(e[i], i);
2421
2421
  }
2422
- function nt(e, t, n, r) {
2422
+ function st(e, t, n, r) {
2423
2423
  let i = t.formatToParts(e);
2424
2424
  n && i.unshift({
2425
2425
  type: "prefix",
@@ -2453,10 +2453,10 @@ function nt(e, t, n, r) {
2453
2453
  key: d(t)
2454
2454
  });
2455
2455
  }
2456
- let v = [];
2456
+ let y = [];
2457
2457
  for (let e = o.length - 1; e >= 0; e--) {
2458
2458
  let t = o[e];
2459
- v.unshift(t.type === "integer" ? {
2459
+ y.unshift(t.type === "integer" ? {
2460
2460
  ...t,
2461
2461
  key: d(t.type),
2462
2462
  pos: l[t.type]
@@ -2467,7 +2467,7 @@ function nt(e, t, n, r) {
2467
2467
  }
2468
2468
  return {
2469
2469
  pre: a,
2470
- integer: v,
2470
+ integer: y,
2471
2471
  fraction: s,
2472
2472
  post: c,
2473
2473
  valueAsString: p,
@@ -2475,22 +2475,22 @@ function nt(e, t, n, r) {
2475
2475
  };
2476
2476
  }
2477
2477
  String.raw;
2478
- var V = String.raw, O = (() => {
2478
+ var L = String.raw, X = (() => {
2479
2479
  try {
2480
2480
  document.createElement("div").animate({ opacity: 0 }, { easing: "linear(0, 1)" });
2481
2481
  } catch {
2482
2482
  return !1;
2483
2483
  }
2484
2484
  return !0;
2485
- })(), z$2 = typeof CSS < "u" && CSS.supports && CSS.supports("line-height", "mod(1,1)"), A = typeof matchMedia < "u" ? matchMedia("(prefers-reduced-motion: reduce)") : null, $ = "--_number-flow-d-opacity", U = "--_number-flow-d-width", S = "--_number-flow-dx", j$1 = "--_number-flow-d", Y = (() => {
2485
+ })(), I = typeof CSS < "u" && CSS.supports && CSS.supports("line-height", "mod(1,1)"), C = typeof matchMedia < "u" ? matchMedia("(prefers-reduced-motion: reduce)") : null, b = "--_number-flow-d-opacity", U = "--_number-flow-d-width", $ = "--_number-flow-dx", R$1 = "--_number-flow-d", O = (() => {
2486
2486
  try {
2487
2487
  return CSS.registerProperty({
2488
- name: $,
2488
+ name: b,
2489
2489
  syntax: "<number>",
2490
2490
  inherits: !1,
2491
2491
  initialValue: "0"
2492
2492
  }), CSS.registerProperty({
2493
- name: S,
2493
+ name: $,
2494
2494
  syntax: "<length>",
2495
2495
  inherits: !0,
2496
2496
  initialValue: "0px"
@@ -2500,7 +2500,7 @@ var V = String.raw, O = (() => {
2500
2500
  inherits: !1,
2501
2501
  initialValue: "0"
2502
2502
  }), CSS.registerProperty({
2503
- name: j$1,
2503
+ name: R$1,
2504
2504
  syntax: "<number>",
2505
2505
  inherits: !0,
2506
2506
  initialValue: "0"
@@ -2508,9 +2508,9 @@ var V = String.raw, O = (() => {
2508
2508
  } catch {
2509
2509
  return !1;
2510
2510
  }
2511
- })(), P = "var(--number-flow-char-height, 1em)", f = "var(--number-flow-mask-height, 0.25em)", k = `calc(${f} / 2)`, E = "var(--number-flow-mask-width, 0.5em)", m = `calc(${E} / var(--scale-x))`, w$1 = "#000 0, transparent 71%", M = V`:host{display:inline-block;direction:ltr;white-space:nowrap;isolation:isolate;line-height:${P} !important}.number,.number__inner{display:inline-block;transform-origin:left top}:host([data-will-change]) :is(.number,.number__inner,.section,.digit,.digit__num,.symbol){will-change:transform}.number{--scale-x:calc(1 + var(${U}) / var(--width));transform:translateX(var(${S})) scaleX(var(--scale-x));margin:0 calc(-1 * ${E});position:relative;-webkit-mask-image:linear-gradient(to right,transparent 0,#000 ${m},#000 calc(100% - ${m}),transparent ),linear-gradient(to bottom,transparent 0,#000 ${f},#000 calc(100% - ${f}),transparent 100% ),radial-gradient(at bottom right,${w$1}),radial-gradient(at bottom left,${w$1}),radial-gradient(at top left,${w$1}),radial-gradient(at top right,${w$1});-webkit-mask-size:100% calc(100% - ${f} * 2),calc(100% - ${m} * 2) 100%,${m} ${f},${m} ${f},${m} ${f},${m} ${f};-webkit-mask-position:center,center,top left,top right,bottom right,bottom left;-webkit-mask-repeat:no-repeat}.number__inner{padding:${k} ${E};transform:scaleX(calc(1 / var(--scale-x))) translateX(calc(-1 * var(${S})))}:host > :not(.number){z-index:5}.section,.symbol{display:inline-block;position:relative;isolation:isolate}.section::after{content:'\200b';display:inline-block}.section--justify-left{transform-origin:center left}.section--justify-right{transform-origin:center right}.section > [inert],.symbol > [inert]{margin:0 !important;position:absolute !important;z-index:-1}.digit{display:inline-block;position:relative;--c:var(--current) + var(${j$1})}.digit__num,.number .section::after{padding:${k} 0}.digit__num{display:inline-block;--offset-raw:mod(var(--length) + var(--n) - mod(var(--c),var(--length)),var(--length));--offset:calc( var(--offset-raw) - var(--length) * round(down,var(--offset-raw) / (var(--length) / 2),1) );--y:clamp(-100%,var(--offset) * 100%,100%);transform:translateY(var(--y))}.digit__num[inert]{position:absolute;top:0;left:50%;transform:translateX(-50%) translateY(var(--y))}.digit:not(.is-spinning) .digit__num[inert]{display:none}.symbol__value{display:inline-block;mix-blend-mode:plus-lighter;white-space:pre}.section--justify-left .symbol > [inert]{left:0}.section--justify-right .symbol > [inert]{right:0}.animate-presence{opacity:calc(1 + var(${$}))}`, G = HTMLElement;
2512
- V`:host{display:inline-block;direction:ltr;white-space:nowrap;line-height:${P} !important}span{display:inline-block}:host([data-will-change]) span{will-change:transform}.number,.digit{padding:${k} 0}.symbol{white-space:pre}`;
2513
- var q = z$2 && O && Y, b, J = class extends G {
2511
+ })(), j$1 = "var(--number-flow-char-height, 1em)", x$1 = "round(nearest, calc(var(--number-flow-mask-height, 0.25em) / 2), 1px)", f = `calc(${x$1} * 2)`, k = "var(--number-flow-mask-width, 0.5em)", m = `calc(${k} / var(--scale-x))`, v = "#000 0, transparent 71%", z$2 = L`:host{display:inline-block;direction:ltr;white-space:nowrap;isolation:isolate;line-height:${j$1} !important}.number,.number__inner{display:inline-block;transform-origin:left top}:host([data-will-change]) :is(.number,.number__inner,.section,.digit,.digit__num,.symbol){will-change:transform}.number{--scale-x:calc(1 + var(${U}) / var(--width));transform:translateX(var(${$})) scaleX(var(--scale-x));margin:0 calc(-1 * ${k});position:relative;-webkit-mask-image:linear-gradient(to right,transparent 0,#000 ${m},#000 calc(100% - ${m}),transparent ),linear-gradient(to bottom,transparent 0,#000 ${f},#000 calc(100% - ${f}),transparent 100% ),radial-gradient(at bottom right,${v}),radial-gradient(at bottom left,${v}),radial-gradient(at top left,${v}),radial-gradient(at top right,${v});-webkit-mask-size:100% calc(100% - ${f} * 2),calc(100% - ${m} * 2) 100%,${m} ${f},${m} ${f},${m} ${f},${m} ${f};-webkit-mask-position:center,center,top left,top right,bottom right,bottom left;-webkit-mask-repeat:no-repeat}.number__inner{padding:${x$1} ${k};transform:scaleX(calc(1 / var(--scale-x))) translateX(calc(-1 * var(${$})))}:host > :not(.number){z-index:5}.section,.symbol{display:inline-block;position:relative;isolation:isolate}.section::after{content:'\200b';display:inline-block}.section--justify-left{transform-origin:center left}.section--justify-right{transform-origin:center right}.section > [inert],.symbol > [inert]{margin:0 !important;position:absolute !important;z-index:-1}.digit{display:inline-block;position:relative;--c:var(--current) + var(${R$1})}.digit__num,.number .section::after{padding:${x$1} 0}.digit__num{display:inline-block;--offset-raw:mod(var(--length) + var(--n) - mod(var(--c),var(--length)),var(--length));--offset:calc( var(--offset-raw) - var(--length) * round(down,var(--offset-raw) / (var(--length) / 2),1) );--y:clamp(-100%,var(--offset) * 100%,100%);transform:translateY(var(--y))}.digit__num[inert]{position:absolute;top:0;left:50%;transform:translateX(-50%) translateY(var(--y))}.digit:not(.is-spinning) .digit__num[inert]{display:none}.symbol__value{display:inline-block;mix-blend-mode:plus-lighter;white-space:pre}.section--justify-left .symbol > [inert]{left:0}.section--justify-right .symbol > [inert]{right:0}.animate-presence{opacity:calc(1 + var(${b}))}`, Y = HTMLElement;
2512
+ L`:host{display:inline-block;direction:ltr;white-space:nowrap;line-height:${j$1} !important}span{display:inline-block}:host([data-will-change]) span{will-change:transform}.number,.digit{padding:${x$1} 0}.symbol{white-space:pre}`;
2513
+ var Z = I && X && O, q = class extends Y {
2514
2514
  constructor() {
2515
2515
  super(), this.created = !1, this.batched = !1;
2516
2516
  let { animated: e, ...t } = this.constructor.defaultProps;
@@ -2529,7 +2529,7 @@ var q = z$2 && O && Y, b, J = class extends G {
2529
2529
  let { pre: n, integer: r, fraction: i, post: a, value: o } = e;
2530
2530
  if (this.created) {
2531
2531
  let s = this._data;
2532
- this._data = e, this.computedTrend = typeof this.trend == "function" ? this.trend(s.value, o) : this.trend, this.computedAnimated = q && this._animated && (!this.respectMotionPreference || !(A != null && A.matches)) && H(this), (t = this.plugins) == null || t.forEach((t) => t.onUpdate?.call(t, e, s, this)), this.batched || this.willUpdate(), this._pre.update(n), this._num.update({
2532
+ this._data = e, this.computedTrend = typeof this.trend == "function" ? this.trend(s.value, o) : this.trend, this.computedAnimated = Z && this._animated && (!this.respectMotionPreference || !(C != null && C.matches)) && D(this), (t = this.plugins) == null || t.forEach((t) => t.onUpdate?.call(t, e, s, this)), this.batched || this.willUpdate(), this._pre.update(n), this._num.update({
2533
2533
  integer: r,
2534
2534
  fraction: i
2535
2535
  }), this._post.update(a), this.batched || this.didUpdate();
@@ -2538,15 +2538,11 @@ var q = z$2 && O && Y, b, J = class extends G {
2538
2538
  try {
2539
2539
  this._internals ??= this.attachInternals(), this._internals.role = "img";
2540
2540
  } catch {}
2541
- if (typeof CSSStyleSheet < "u" && this.shadowRoot.adoptedStyleSheets) b || (b = new CSSStyleSheet(), b.replaceSync(M)), this.shadowRoot.adoptedStyleSheets = [b];
2542
- else {
2543
- let e = document.createElement("style");
2544
- e.textContent = M, this.shadowRoot.appendChild(e);
2545
- }
2546
- this._pre = new N(this, n, {
2541
+ let t = document.createElement("style");
2542
+ t.textContent = z$2, this.shadowRoot.appendChild(t), this._pre = new M(this, n, {
2547
2543
  justify: "right",
2548
2544
  part: "left"
2549
- }), this.shadowRoot.appendChild(this._pre.el), this._num = new Q(this, r, i), this.shadowRoot.appendChild(this._num.el), this._post = new N(this, a, {
2545
+ }), this.shadowRoot.appendChild(this._pre.el), this._num = new J(this, r, i), this.shadowRoot.appendChild(this._num.el), this._post = new M(this, a, {
2550
2546
  justify: "left",
2551
2547
  part: "right"
2552
2548
  }), this.shadowRoot.appendChild(this._post.el), this.created = !0;
@@ -2567,7 +2563,7 @@ var q = z$2 && O && Y, b, J = class extends G {
2567
2563
  }), this._abortAnimationsFinish = e;
2568
2564
  }
2569
2565
  };
2570
- J.defaultProps = {
2566
+ q.defaultProps = {
2571
2567
  transformTiming: {
2572
2568
  duration: 900,
2573
2569
  easing: "linear(0,.005,.019,.039,.066,.096,.129,.165,.202,.24,.278,.316,.354,.39,.426,.461,.494,.526,.557,.586,.614,.64,.665,.689,.711,.731,.751,.769,.786,.802,.817,.831,.844,.856,.867,.877,.887,.896,.904,.912,.919,.925,.931,.937,.942,.947,.951,.955,.959,.962,.965,.968,.971,.973,.976,.978,.98,.981,.983,.984,.986,.987,.988,.989,.99,.991,.992,.992,.993,.994,.994,.995,.995,.996,.996,.9963,.9967,.9969,.9972,.9975,.9977,.9979,.9981,.9982,.9984,.9985,.9987,.9988,.9989,1)"
@@ -2583,12 +2579,12 @@ J.defaultProps = {
2583
2579
  plugins: void 0,
2584
2580
  digits: void 0
2585
2581
  };
2586
- var Q = class {
2582
+ var J = class {
2587
2583
  constructor(e, t, n, { className: r, ...i } = {}) {
2588
- this.flow = e, this._integer = new L(e, t, {
2584
+ this.flow = e, this._integer = new T(e, t, {
2589
2585
  justify: "right",
2590
2586
  part: "integer"
2591
- }), this._fraction = new L(e, n, {
2587
+ }), this._fraction = new T(e, n, {
2592
2588
  justify: "left",
2593
2589
  part: "fraction"
2594
2590
  }), this._inner = u("span", { className: "number__inner" }, [this._integer.el, this._fraction.el]), this.el = u("span", {
@@ -2608,14 +2604,14 @@ var Q = class {
2608
2604
  this._integer.didUpdate(), this._fraction.didUpdate();
2609
2605
  let t = this._prevLeft - e.left, n = this.el.offsetWidth, r = this._prevWidth - n;
2610
2606
  this.el.style.setProperty("--width", String(n)), this.el.animate({
2611
- [S]: [`${t}px`, "0px"],
2607
+ [$]: [`${t}px`, "0px"],
2612
2608
  [U]: [r, 0]
2613
2609
  }, {
2614
2610
  ...this.flow.transformTiming,
2615
2611
  composite: "accumulate"
2616
2612
  });
2617
2613
  }
2618
- }, W = class {
2614
+ }, N = class {
2619
2615
  constructor(e, t, { justify: n, className: r, ...i }, a) {
2620
2616
  this.flow = e, this.children = /* @__PURE__ */ new Map(), this.onCharRemove = (e) => () => {
2621
2617
  this.children.delete(e);
@@ -2627,10 +2623,10 @@ var Q = class {
2627
2623
  }, a ? a(o) : o);
2628
2624
  }
2629
2625
  addChar(e, { startDigitsAtZero: t = !1, ...n } = {}) {
2630
- let r = e.type === "integer" || e.type === "fraction" ? new D(this, e.type, t ? 0 : e.value, e.pos, {
2626
+ let r = e.type === "integer" || e.type === "fraction" ? new W(this, e.type, t ? 0 : e.value, e.pos, {
2631
2627
  ...n,
2632
2628
  onRemove: this.onCharRemove(e.key)
2633
- }) : new tt(this, e.type, e.value, {
2629
+ }) : new Q(this, e.type, e.value, {
2634
2630
  ...n,
2635
2631
  onRemove: this.onCharRemove(e.key)
2636
2632
  });
@@ -2641,14 +2637,14 @@ var Q = class {
2641
2637
  }
2642
2638
  pop(e) {
2643
2639
  e.forEach((e) => {
2644
- e.el.style.top = `${e.el.offsetTop}px`, e.el.style[this.justify] = `${F(e.el, this.justify)}px`;
2640
+ e.el.style.top = `${e.el.offsetTop}px`, e.el.style[this.justify] = `${B(e.el, this.justify)}px`;
2645
2641
  }), e.forEach((e) => {
2646
2642
  e.el.setAttribute("inert", ""), e.present = !1;
2647
2643
  });
2648
2644
  }
2649
2645
  addNewAndUpdateExisting(e) {
2650
2646
  let t = /* @__PURE__ */ new Map(), n = /* @__PURE__ */ new Map(), r = this.justify === "left", i = r ? "prepend" : "append";
2651
- if (X(e, (e) => {
2647
+ if (F(e, (e) => {
2652
2648
  let r;
2653
2649
  this.children.has(e.key) ? (r = this.children.get(e.key), n.set(e, r), this.unpop(r), r.present = !0) : (r = this.addChar(e, {
2654
2650
  startDigitsAtZero: !0,
@@ -2679,28 +2675,28 @@ var Q = class {
2679
2675
  composite: "accumulate"
2680
2676
  });
2681
2677
  }
2682
- }, L = class extends W {
2678
+ }, T = class extends N {
2683
2679
  update(e) {
2684
2680
  let t = /* @__PURE__ */ new Map();
2685
2681
  this.children.forEach((n, r) => {
2686
2682
  e.find((e) => e.key === r) || t.set(r, n), this.unpop(n);
2687
2683
  }), this.addNewAndUpdateExisting(e), t.forEach((e) => {
2688
- e instanceof D && e.update(0);
2684
+ e instanceof W && e.update(0);
2689
2685
  }), this.pop(t);
2690
2686
  }
2691
- }, N = class extends W {
2687
+ }, M = class extends N {
2692
2688
  update(e) {
2693
2689
  let t = /* @__PURE__ */ new Map();
2694
2690
  this.children.forEach((n, r) => {
2695
2691
  e.find((e) => e.key === r) || t.set(r, n);
2696
2692
  }), this.pop(t), this.addNewAndUpdateExisting(e);
2697
2693
  }
2698
- }, R$1 = class {
2694
+ }, E = class {
2699
2695
  constructor(e, t, { onRemove: n, animateIn: r = !1 } = {}) {
2700
2696
  this.flow = e, this.el = t, this._present = !0, this._remove = () => {
2701
2697
  var e;
2702
2698
  this.el.remove(), (e = this._onRemove) == null || e.call(this);
2703
- }, this.el.classList.add("animate-presence"), this.flow.computedAnimated && r && this.el.animate({ [$]: [-.9999, 0] }, {
2699
+ }, this.el.classList.add("animate-presence"), this.flow.computedAnimated && r && this.el.animate({ [b]: [-.9999, 0] }, {
2704
2700
  ...this.flow.opacityTiming,
2705
2701
  composite: "accumulate"
2706
2702
  }), this._onRemove = n;
@@ -2714,17 +2710,17 @@ var Q = class {
2714
2710
  e || this._remove();
2715
2711
  return;
2716
2712
  }
2717
- this.el.style.setProperty("--_number-flow-d-opacity", e ? "0" : "-.999"), this.el.animate({ [$]: e ? [-.9999, 0] : [.999, 0] }, {
2713
+ this.el.style.setProperty("--_number-flow-d-opacity", e ? "0" : "-.999"), this.el.animate({ [b]: e ? [-.9999, 0] : [.999, 0] }, {
2718
2714
  ...this.flow.opacityTiming,
2719
2715
  composite: "accumulate"
2720
2716
  }), e ? this.flow.removeEventListener("animationsfinish", this._remove) : this.flow.addEventListener("animationsfinish", this._remove, { once: !0 });
2721
2717
  }
2722
2718
  }
2723
- }, B = class extends R$1 {
2719
+ }, V = class extends E {
2724
2720
  constructor(e, t, n, r) {
2725
2721
  super(e.flow, n, r), this.section = e, this.value = t, this.el = n;
2726
2722
  }
2727
- }, D = class extends B {
2723
+ }, W = class extends V {
2728
2724
  constructor(e, t, n, r, i) {
2729
2725
  let a = (e.flow.digits?.[r]?.max ?? 9) + 1, o = Array.from({ length: a }).map((e, t) => {
2730
2726
  let r = u("span", { className: "digit__num" }, [document.createTextNode(String(t))]);
@@ -2753,7 +2749,7 @@ var Q = class {
2753
2749
  composite: "accumulate"
2754
2750
  });
2755
2751
  let o = this.getDelta();
2756
- o && (this.el.classList.add("is-spinning"), this.el.animate({ [j$1]: [-o, 0] }, {
2752
+ o && (this.el.classList.add("is-spinning"), this.el.animate({ [R$1]: [-o, 0] }, {
2757
2753
  ...this.flow.spinTiming ?? this.flow.transformTiming,
2758
2754
  composite: "accumulate"
2759
2755
  }), this.flow.addEventListener("animationsfinish", this._onAnimationsFinish, { once: !0 }));
@@ -2766,7 +2762,7 @@ var Q = class {
2766
2762
  let e = this.value - this._prevValue, t = this.flow.computedTrend || Math.sign(e);
2767
2763
  return t < 0 && this.value > this._prevValue ? this.value - this.length - this._prevValue : t > 0 && this.value < this._prevValue ? this.length - this._prevValue + this.value : e;
2768
2764
  }
2769
- }, tt = class extends B {
2765
+ }, Q = class extends V {
2770
2766
  constructor(e, t, n, r) {
2771
2767
  let i = u("span", {
2772
2768
  className: "symbol__value",
@@ -2777,7 +2773,7 @@ var Q = class {
2777
2773
  className: "symbol"
2778
2774
  }, [i]), r), this.type = t, this._children = /* @__PURE__ */ new Map(), this._onChildRemove = (e) => () => {
2779
2775
  this._children.delete(e);
2780
- }, this._children.set(n, new R$1(this.flow, i, { onRemove: this._onChildRemove(n) }));
2776
+ }, this._children.set(n, new E(this.flow, i, { onRemove: this._onChildRemove(n) }));
2781
2777
  }
2782
2778
  willUpdate(e) {
2783
2779
  this.type !== "decimal" && (this._prevOffset = this.el.getBoundingClientRect()[this.section.justify] - e[this.section.justify]);
@@ -2793,7 +2789,7 @@ var Q = class {
2793
2789
  className: "symbol__value",
2794
2790
  textContent: e
2795
2791
  });
2796
- this.el.appendChild(t), this._children.set(e, new R$1(this.flow, t, {
2792
+ this.el.appendChild(t), this._children.set(e, new E(this.flow, t, {
2797
2793
  animateIn: !0,
2798
2794
  onRemove: this._onChildRemove(e)
2799
2795
  }));
@@ -2826,23 +2822,23 @@ var Q = class {
2826
2822
  inheritAttrs: !1,
2827
2823
  __name: "index",
2828
2824
  props: {
2829
- transformTiming: { default: () => J.defaultProps.transformTiming },
2830
- spinTiming: { default: () => J.defaultProps.spinTiming },
2831
- opacityTiming: { default: () => J.defaultProps.opacityTiming },
2825
+ transformTiming: { default: () => q.defaultProps.transformTiming },
2826
+ spinTiming: { default: () => q.defaultProps.spinTiming },
2827
+ opacityTiming: { default: () => q.defaultProps.opacityTiming },
2832
2828
  animated: {
2833
2829
  type: Boolean,
2834
- default: () => J.defaultProps.animated
2830
+ default: () => q.defaultProps.animated
2835
2831
  },
2836
2832
  respectMotionPreference: {
2837
2833
  type: Boolean,
2838
- default: () => J.defaultProps.respectMotionPreference
2834
+ default: () => q.defaultProps.respectMotionPreference
2839
2835
  },
2840
2836
  trend: {
2841
2837
  type: [Number, Function],
2842
- default: () => J.defaultProps.trend
2838
+ default: () => q.defaultProps.trend
2843
2839
  },
2844
- plugins: { default: () => J.defaultProps.plugins },
2845
- digits: { default: () => J.defaultProps.digits },
2840
+ plugins: { default: () => q.defaultProps.plugins },
2841
+ digits: { default: () => q.defaultProps.digits },
2846
2842
  locales: {},
2847
2843
  format: {},
2848
2844
  value: {},
@@ -2857,7 +2853,7 @@ var Q = class {
2857
2853
  setup(e, { expose: t, emit: n }) {
2858
2854
  let r = ref();
2859
2855
  t({ el: r });
2860
- let i = n, a = computed(() => new Intl.NumberFormat(e.locales, e.format)), o = computed(() => nt(e.value, a.value, e.prefix, e.suffix)), s = inject(w, void 0);
2856
+ let i = n, a = computed(() => new Intl.NumberFormat(e.locales, e.format)), o = computed(() => st(e.value, a.value, e.prefix, e.suffix)), s = inject(w, void 0);
2861
2857
  return s?.(r, o), (e, t) => (openBlock(), createElementBlock("number-flow-vue", mergeProps({
2862
2858
  ref_key: "el",
2863
2859
  ref: r
@@ -2880,7 +2876,7 @@ var Q = class {
2880
2876
  }), null, 16, R));
2881
2877
  }
2882
2878
  });
2883
- st("number-flow-vue", J);
2879
+ it("number-flow-vue", q);
2884
2880
  var FocusableElement_default = /* @__PURE__ */ defineComponent({
2885
2881
  __name: "FocusableElement",
2886
2882
  props: { isDefaultCursor: {
@@ -3493,22 +3489,29 @@ var CustomTransformerRegistry = class {
3493
3489
  return this.transfomers[e];
3494
3490
  }
3495
3491
  }, getType$1 = (e) => Object.prototype.toString.call(e).slice(8, -1);
3496
- const isUndefined$1 = (e) => e === void 0, isNull$1 = (e) => e === null, isPlainObject$1 = (e) => typeof e != "object" || !e || e === Object.prototype ? !1 : Object.getPrototypeOf(e) === null ? !0 : Object.getPrototypeOf(e) === Object.prototype, isEmptyObject = (e) => isPlainObject$1(e) && Object.keys(e).length === 0, isArray$1 = (e) => Array.isArray(e), isString = (e) => typeof e == "string", isNumber = (e) => typeof e == "number" && !isNaN(e), isBoolean = (e) => typeof e == "boolean", isRegExp = (e) => e instanceof RegExp, isMap = (e) => e instanceof Map, isSet = (e) => e instanceof Set, isSymbol = (e) => getType$1(e) === "Symbol", isDate = (e) => e instanceof Date && !isNaN(e.valueOf()), isError = (e) => e instanceof Error, isNaNValue = (e) => typeof e == "number" && isNaN(e), isPrimitive = (e) => isBoolean(e) || isNull$1(e) || isUndefined$1(e) || isNumber(e) || isString(e) || isSymbol(e), isBigint = (e) => typeof e == "bigint", isInfinite = (e) => e === Infinity || e === -Infinity, isTypedArray = (e) => ArrayBuffer.isView(e) && !(e instanceof DataView), isURL = (e) => e instanceof URL, escapeKey = (e) => e.replace(/\./g, "\\."), stringifyPath = (e) => e.map(String).map(escapeKey).join("."), parsePath = (e) => {
3497
- let t = [], n = "";
3498
- for (let r = 0; r < e.length; r++) {
3499
- let i = e.charAt(r);
3500
- if (i === "\\" && e.charAt(r + 1) === ".") {
3501
- n += ".", r++;
3492
+ const isUndefined = (e) => e === void 0, isNull = (e) => e === null, isPlainObject$1 = (e) => typeof e != "object" || !e || e === Object.prototype ? !1 : Object.getPrototypeOf(e) === null ? !0 : Object.getPrototypeOf(e) === Object.prototype, isEmptyObject = (e) => isPlainObject$1(e) && Object.keys(e).length === 0, isArray$1 = (e) => Array.isArray(e), isString = (e) => typeof e == "string", isNumber = (e) => typeof e == "number" && !isNaN(e), isBoolean = (e) => typeof e == "boolean", isRegExp = (e) => e instanceof RegExp, isMap = (e) => e instanceof Map, isSet = (e) => e instanceof Set, isSymbol = (e) => getType$1(e) === "Symbol", isDate = (e) => e instanceof Date && !isNaN(e.valueOf()), isError = (e) => e instanceof Error, isNaNValue = (e) => typeof e == "number" && isNaN(e), isPrimitive = (e) => isBoolean(e) || isNull(e) || isUndefined(e) || isNumber(e) || isString(e) || isSymbol(e), isBigint = (e) => typeof e == "bigint", isInfinite = (e) => e === Infinity || e === -Infinity, isTypedArray = (e) => ArrayBuffer.isView(e) && !(e instanceof DataView), isURL = (e) => e instanceof URL, escapeKey = (e) => e.replace(/\\/g, "\\\\").replace(/\./g, "\\."), stringifyPath = (e) => e.map(String).map(escapeKey).join("."), parsePath = (e, t) => {
3493
+ let n = [], r = "";
3494
+ for (let i = 0; i < e.length; i++) {
3495
+ let a = e.charAt(i);
3496
+ if (!t && a === "\\") {
3497
+ let t = e.charAt(i + 1);
3498
+ if (t === "\\") {
3499
+ r += "\\", i++;
3500
+ continue;
3501
+ } else if (t !== ".") throw Error("invalid path");
3502
+ }
3503
+ if (a === "\\" && e.charAt(i + 1) === ".") {
3504
+ r += ".", i++;
3502
3505
  continue;
3503
3506
  }
3504
- if (i === ".") {
3505
- t.push(n), n = "";
3507
+ if (a === ".") {
3508
+ n.push(r), r = "";
3506
3509
  continue;
3507
3510
  }
3508
- n += i;
3511
+ r += a;
3509
3512
  }
3510
- let r = n;
3511
- return t.push(r), t;
3513
+ let i = r;
3514
+ return n.push(i), n;
3512
3515
  };
3513
3516
  function simpleTransformation(e, t, n, r) {
3514
3517
  return {
@@ -3519,7 +3522,7 @@ function simpleTransformation(e, t, n, r) {
3519
3522
  };
3520
3523
  }
3521
3524
  var simpleRules = [
3522
- simpleTransformation(isUndefined$1, "undefined", () => null, () => void 0),
3525
+ simpleTransformation(isUndefined, "undefined", () => null, () => void 0),
3523
3526
  simpleTransformation(isBigint, "bigint", (e) => e.toString(), (e) => typeof BigInt < "u" ? BigInt(e) : (console.error("Please add a BigInt polyfill."), e)),
3524
3527
  simpleTransformation(isDate, "Date", (e) => e.toISOString(), (e) => new Date(e)),
3525
3528
  simpleTransformation(isError, "Error", (e, t) => {
@@ -3527,11 +3530,11 @@ var simpleRules = [
3527
3530
  name: e.name,
3528
3531
  message: e.message
3529
3532
  };
3530
- return t.allowedErrorProps.forEach((t) => {
3533
+ return "cause" in e && (n.cause = e.cause), t.allowedErrorProps.forEach((t) => {
3531
3534
  n[t] = e[t];
3532
3535
  }), n;
3533
3536
  }, (e, t) => {
3534
- let n = Error(e.message);
3537
+ let n = Error(e.message, { cause: e.cause });
3535
3538
  return n.name = e.name, n.stack = e.stack, t.allowedErrorProps.forEach((t) => {
3536
3539
  n[t] = e[t];
3537
3540
  }), n;
@@ -3701,38 +3704,41 @@ const getDeep = (e, t) => {
3701
3704
  }
3702
3705
  return e;
3703
3706
  };
3704
- function traverse(e, t, n = []) {
3707
+ var enableLegacyPaths = (e) => e < 1;
3708
+ function traverse(e, t, n, r = []) {
3705
3709
  if (!e) return;
3710
+ let i = enableLegacyPaths(n);
3706
3711
  if (!isArray$1(e)) {
3707
- forEach(e, (e, r) => traverse(e, t, [...n, ...parsePath(r)]));
3712
+ forEach(e, (e, a) => traverse(e, t, n, [...r, ...parsePath(a, i)]));
3708
3713
  return;
3709
3714
  }
3710
- let [r, i] = e;
3711
- i && forEach(i, (e, r) => {
3712
- traverse(e, t, [...n, ...parsePath(r)]);
3713
- }), t(r, n);
3715
+ let [a, o] = e;
3716
+ o && forEach(o, (e, a) => {
3717
+ traverse(e, t, n, [...r, ...parsePath(a, i)]);
3718
+ }), t(a, r);
3714
3719
  }
3715
- function applyValueAnnotations(e, t, n) {
3716
- return traverse(t, (t, r) => {
3717
- e = setDeep(e, r, (e) => untransformValue(e, t, n));
3718
- }), e;
3720
+ function applyValueAnnotations(e, t, n, r) {
3721
+ return traverse(t, (t, n) => {
3722
+ e = setDeep(e, n, (e) => untransformValue(e, t, r));
3723
+ }, n), e;
3719
3724
  }
3720
- function applyReferentialEqualityAnnotations(e, t) {
3721
- function n(t, n) {
3722
- let r = getDeep(e, parsePath(n));
3723
- t.map(parsePath).forEach((t) => {
3724
- e = setDeep(e, t, () => r);
3725
+ function applyReferentialEqualityAnnotations(e, t, n) {
3726
+ let r = enableLegacyPaths(n);
3727
+ function i(t, n) {
3728
+ let i = getDeep(e, parsePath(n, r));
3729
+ t.map((e) => parsePath(e, r)).forEach((t) => {
3730
+ e = setDeep(e, t, () => i);
3725
3731
  });
3726
3732
  }
3727
3733
  if (isArray$1(t)) {
3728
- let [r, i] = t;
3729
- r.forEach((t) => {
3730
- e = setDeep(e, parsePath(t), () => e);
3731
- }), i && forEach(i, n);
3732
- } else forEach(t, n);
3734
+ let [n, a] = t;
3735
+ n.forEach((t) => {
3736
+ e = setDeep(e, parsePath(t, r), () => e);
3737
+ }), a && forEach(a, i);
3738
+ } else forEach(t, i);
3733
3739
  return e;
3734
3740
  }
3735
- var isDeep = (e, t) => isPlainObject$1(e) || isArray$1(e) || isMap(e) || isSet(e) || isInstanceOfRegisteredClass(e, t);
3741
+ var isDeep = (e, t) => isPlainObject$1(e) || isArray$1(e) || isMap(e) || isSet(e) || isError(e) || isInstanceOfRegisteredClass(e, t);
3736
3742
  function addIdentity(e, t, n) {
3737
3743
  let r = n.get(e);
3738
3744
  r ? r.push(t) : n.set(e, [t]);
@@ -3765,7 +3771,7 @@ const walker = (e, t, n, r, i = [], a = [], o = /* @__PURE__ */ new Map()) => {
3765
3771
  forEach(l, (s, c) => {
3766
3772
  if (c === "__proto__" || c === "constructor" || c === "prototype") throw Error(`Detected property ${c}. This is a prototype pollution risk, please remove it from your object.`);
3767
3773
  let l = walker(s, t, n, r, [...i, c], [...a, e], o);
3768
- d[c] = l.transformedValue, isArray$1(l.annotations) ? p[c] = l.annotations : isPlainObject$1(l.annotations) && forEach(l.annotations, (e, t) => {
3774
+ d[c] = l.transformedValue, isArray$1(l.annotations) ? p[escapeKey(c)] = l.annotations : isPlainObject$1(l.annotations) && forEach(l.annotations, (e, t) => {
3769
3775
  p[escapeKey(c) + "." + t] = e;
3770
3776
  });
3771
3777
  });
@@ -3803,7 +3809,7 @@ function copy(e, t = {}) {
3803
3809
  if (!isPlainObject(e)) return e;
3804
3810
  let n = Object.getOwnPropertyNames(e), r = Object.getOwnPropertySymbols(e);
3805
3811
  return [...n, ...r].reduce((n, r) => {
3806
- if (isArray(t.props) && !t.props.includes(r)) return n;
3812
+ if (r === "__proto__" || isArray(t.props) && !t.props.includes(r)) return n;
3807
3813
  let i = e[r];
3808
3814
  return assignProp(n, r, copy(i, t), e, t.nonenumerable), n;
3809
3815
  }, {});
@@ -3822,17 +3828,17 @@ var SuperJSON = class {
3822
3828
  return i && (r.meta = {
3823
3829
  ...r.meta,
3824
3830
  referentialEqualities: i
3825
- }), r;
3831
+ }), r.meta && (r.meta.v = 1), r;
3826
3832
  }
3827
- deserialize(e) {
3828
- let { json: t, meta: n } = e, r = copy(t);
3829
- return n?.values && (r = applyValueAnnotations(r, n.values, this)), n?.referentialEqualities && (r = applyReferentialEqualityAnnotations(r, n.referentialEqualities)), r;
3833
+ deserialize(e, t) {
3834
+ let { json: n, meta: r } = e, i = t?.inPlace ? n : copy(n);
3835
+ return r?.values && (i = applyValueAnnotations(i, r.values, r.v ?? 0, this)), r?.referentialEqualities && (i = applyReferentialEqualityAnnotations(i, r.referentialEqualities, r.v ?? 0)), i;
3830
3836
  }
3831
3837
  stringify(e) {
3832
3838
  return JSON.stringify(this.serialize(e));
3833
3839
  }
3834
3840
  parse(e) {
3835
- return this.deserialize(JSON.parse(e));
3841
+ return this.deserialize(JSON.parse(e), { inPlace: !0 });
3836
3842
  }
3837
3843
  registerClass(e, t) {
3838
3844
  this.classRegistry.register(e, t);
@@ -3850,22 +3856,24 @@ var SuperJSON = class {
3850
3856
  this.allowedErrorProps.push(...e);
3851
3857
  }
3852
3858
  };
3853
- SuperJSON.defaultInstance = new SuperJSON(), SuperJSON.serialize = SuperJSON.defaultInstance.serialize.bind(SuperJSON.defaultInstance), SuperJSON.deserialize = SuperJSON.defaultInstance.deserialize.bind(SuperJSON.defaultInstance), SuperJSON.stringify = SuperJSON.defaultInstance.stringify.bind(SuperJSON.defaultInstance), SuperJSON.parse = SuperJSON.defaultInstance.parse.bind(SuperJSON.defaultInstance), SuperJSON.registerClass = SuperJSON.defaultInstance.registerClass.bind(SuperJSON.defaultInstance), SuperJSON.registerSymbol = SuperJSON.defaultInstance.registerSymbol.bind(SuperJSON.defaultInstance), SuperJSON.registerCustom = SuperJSON.defaultInstance.registerCustom.bind(SuperJSON.defaultInstance), SuperJSON.allowErrorProps = SuperJSON.defaultInstance.allowErrorProps.bind(SuperJSON.defaultInstance), SuperJSON.serialize, SuperJSON.deserialize, SuperJSON.stringify, SuperJSON.parse, SuperJSON.registerClass, SuperJSON.registerCustom, SuperJSON.registerSymbol, SuperJSON.allowErrorProps;
3859
+ SuperJSON.defaultInstance = new SuperJSON(), SuperJSON.serialize = SuperJSON.defaultInstance.serialize.bind(SuperJSON.defaultInstance), SuperJSON.deserialize = SuperJSON.defaultInstance.deserialize.bind(SuperJSON.defaultInstance), SuperJSON.stringify = SuperJSON.defaultInstance.stringify.bind(SuperJSON.defaultInstance), SuperJSON.parse = SuperJSON.defaultInstance.parse.bind(SuperJSON.defaultInstance), SuperJSON.registerClass = SuperJSON.defaultInstance.registerClass.bind(SuperJSON.defaultInstance), SuperJSON.registerSymbol = SuperJSON.defaultInstance.registerSymbol.bind(SuperJSON.defaultInstance), SuperJSON.registerCustom = SuperJSON.defaultInstance.registerCustom.bind(SuperJSON.defaultInstance), SuperJSON.allowErrorProps = SuperJSON.defaultInstance.allowErrorProps.bind(SuperJSON.defaultInstance);
3860
+ var dist_default = SuperJSON;
3861
+ SuperJSON.serialize, SuperJSON.deserialize, SuperJSON.stringify, SuperJSON.parse, SuperJSON.registerClass, SuperJSON.registerCustom, SuperJSON.registerSymbol, SuperJSON.allowErrorProps;
3854
3862
  var DEFAULT_ROUTE_QUERY_KEY = "filters";
3855
3863
  function useFilters(e) {
3856
3864
  let t = e.persistInUrl === !1 ? !1 : e.persistInUrl ?? DEFAULT_ROUTE_QUERY_KEY, n = computed(e.filterGroups), r = computed(() => n.value.flatMap((e) => e.filters)), i = reactive(/* @__PURE__ */ new Set()), a = t === !0 || typeof t == "string" ? useRouteQueryState({
3857
3865
  initialState: c(),
3858
3866
  key: t === !0 ? DEFAULT_ROUTE_QUERY_KEY : t,
3859
3867
  serializer: {
3860
- parse: (e) => SuperJSON.parse(atob(e)),
3861
- serialize: (e) => btoa(SuperJSON.stringify(e))
3868
+ parse: (e) => dist_default.parse(atob(e)),
3869
+ serialize: (e) => btoa(dist_default.stringify(e))
3862
3870
  }
3863
- }) : ref(c()), o = ref(null), s = computed(() => Array.from(i).map(y).sort((e, t) => Number(t.isStatic ?? !1) - Number(e.isStatic ?? !1)));
3871
+ }) : ref(c()), o = ref(null), s = computed(() => Array.from(i).map(S).sort((e, t) => Number(t.isStatic ?? !1) - Number(e.isStatic ?? !1)));
3864
3872
  function c() {
3865
3873
  return r.value.reduce((e, t) => (e[t.key] = t.defaultValue ?? d(t.key), e), {});
3866
3874
  }
3867
3875
  function d(e) {
3868
- switch (y(e).type) {
3876
+ switch (S(e).type) {
3869
3877
  case "boolean": return !1;
3870
3878
  case "select":
3871
3879
  case "autocomplete":
@@ -3879,10 +3887,10 @@ function useFilters(e) {
3879
3887
  }
3880
3888
  }
3881
3889
  function p(e) {
3882
- return o.value === e || !v(e);
3890
+ return o.value === e || !y(e);
3883
3891
  }
3884
3892
  function g(e, t = !1, n = !1) {
3885
- let r = v(e), o = y(e);
3893
+ let r = y(e), o = S(e);
3886
3894
  t && !r || n && o.isStatic || (a.value[e] = d(e), i.delete(e));
3887
3895
  }
3888
3896
  function _() {
@@ -3891,11 +3899,11 @@ function useFilters(e) {
3891
3899
  p(t) && g(t, !1, !0);
3892
3900
  }
3893
3901
  }
3894
- function v(e) {
3902
+ function y(e) {
3895
3903
  let t = a.value[e];
3896
- return SuperJSON.stringify(t) === SuperJSON.stringify(d(e));
3904
+ return dist_default.stringify(t) === dist_default.stringify(d(e));
3897
3905
  }
3898
- function y(e) {
3906
+ function S(e) {
3899
3907
  return r.value.find((t) => t.key === e);
3900
3908
  }
3901
3909
  watch(a, () => {
@@ -3907,8 +3915,8 @@ function useFilters(e) {
3907
3915
  deep: !0,
3908
3916
  immediate: !0
3909
3917
  });
3910
- let C = r.value.filter((e) => e.keyboardShortcutKeys !== void 0);
3911
- for (let e of C) useKeyboardShortcut({
3918
+ let A = r.value.filter((e) => e.keyboardShortcutKeys !== void 0);
3919
+ for (let e of A) useKeyboardShortcut({
3912
3920
  keys: e.keyboardShortcutKeys,
3913
3921
  onTrigger(t) {
3914
3922
  t.preventDefault(), o.value = e.key, i.add(e.key);
@@ -4201,14 +4209,14 @@ var _hoisted_1$9 = { class: "gap-md flex" }, AppDialogStepper_default = /* @__PU
4201
4209
  function _() {
4202
4210
  r("createNew");
4203
4211
  }
4204
- function v(e) {
4212
+ function y(e) {
4205
4213
  return d.value.find((t) => t.uuid === e)?.name ?? "";
4206
4214
  }
4207
4215
  return (e, t) => (openBlock(), createBlock(EntityAutocomplete_default, {
4208
4216
  modelValue: a.value,
4209
4217
  "onUpdate:modelValue": t[0] ||= (e) => a.value = e,
4210
4218
  "is-required": n.isRequired,
4211
- "display-fn": v,
4219
+ "display-fn": y,
4212
4220
  label: n.label,
4213
4221
  options: d.value,
4214
4222
  "is-loading": unref(c).isFetching.value,
@@ -4340,7 +4348,7 @@ var DealCreateDialog_default = /* @__PURE__ */ defineComponent({
4340
4348
  function _() {
4341
4349
  s.value = !0;
4342
4350
  }
4343
- async function v(e) {
4351
+ async function y(e) {
4344
4352
  let t = await o.execute({ body: e });
4345
4353
  s.value = !1, d.setValue({
4346
4354
  uuid: t,
@@ -4348,21 +4356,21 @@ var DealCreateDialog_default = /* @__PURE__ */ defineComponent({
4348
4356
  type: ClientType.BUSINESS
4349
4357
  }), g.goToNext();
4350
4358
  }
4351
- function y() {
4359
+ function S() {
4352
4360
  s.value = !1;
4353
4361
  }
4354
- function C() {
4362
+ function A() {
4355
4363
  n("close");
4356
4364
  }
4357
4365
  return (e, t) => (openBlock(), createBlock(unref(VcDialog), {
4358
4366
  "class-config": { content: "w-full max-w-140 flex flex-col gap-lg" },
4359
- onClose: C
4367
+ onClose: A
4360
4368
  }, {
4361
4369
  default: withCtx(() => [createVNode(AnimateHeight_default, null, {
4362
4370
  default: withCtx(() => [s.value ? (openBlock(), createBlock(ContactCreateDialogBusinessForm_default, {
4363
4371
  key: 0,
4364
- "on-submit": v,
4365
- onBack: y
4372
+ "on-submit": y,
4373
+ onBack: S
4366
4374
  })) : (openBlock(), createBlock(DealCreateDialogStepperForm_default, {
4367
4375
  key: 1,
4368
4376
  form: unref(l),
@@ -4721,14 +4729,14 @@ var _hoisted_1$4 = { class: "flex flex-1 flex-col overflow-hidden" }, _hoisted_2
4721
4729
  } catch (e) {
4722
4730
  o.show(e);
4723
4731
  } finally {
4724
- T();
4732
+ j();
4725
4733
  }
4726
4734
  }
4727
- }), g = p.register("defaultCC"), y = p.register("defaultBCC");
4728
- function C() {
4735
+ }), g = p.register("defaultCC"), S = p.register("defaultBCC");
4736
+ function A() {
4729
4737
  i("cancel");
4730
4738
  }
4731
- function T() {
4739
+ function j() {
4732
4740
  i("close");
4733
4741
  }
4734
4742
  return (e, n) => (openBlock(), createElementBlock("div", _hoisted_1$4, [createVNode(AppDialogContainer_default, null, {
@@ -4751,7 +4759,7 @@ var _hoisted_1$4 = { class: "flex flex-1 flex-col overflow-hidden" }, _hoisted_2
4751
4759
  default: withCtx(() => [createVNode(AppTagsInputField_default, mergeProps(unref(toFormField)(unref(g)), {
4752
4760
  label: "Default CC",
4753
4761
  placeholder: "Default CC"
4754
- }), null, 16), createVNode(AppTagsInputField_default, mergeProps(unref(toFormField)(unref(y)), {
4762
+ }), null, 16), createVNode(AppTagsInputField_default, mergeProps(unref(toFormField)(unref(S)), {
4755
4763
  label: "Default BCC",
4756
4764
  placeholder: "Default BCC"
4757
4765
  }), null, 16)]),
@@ -4781,7 +4789,7 @@ var _hoisted_1$4 = { class: "flex flex-1 flex-col overflow-hidden" }, _hoisted_2
4781
4789
  _: 1
4782
4790
  }), createVNode(DealSettingsDialogMailTemplateFooter_default, {
4783
4791
  "is-submitting": unref(p).isSubmitting.value,
4784
- onCancel: C
4792
+ onCancel: A
4785
4793
  }, null, 8, ["is-submitting"])]),
4786
4794
  _: 1
4787
4795
  }, 8, ["form"])])]));
@@ -5304,7 +5312,7 @@ function businessRoutes(e) {
5304
5312
  to: e.route.name
5305
5313
  })) },
5306
5314
  path: "/business/:businessUuid",
5307
- component: () => import("./BusinessDetailView-BxGxWOme.js"),
5315
+ component: () => import("./BusinessDetailView-BZpocob4.js"),
5308
5316
  redirect: { name: e[0].route.name },
5309
5317
  children: e.map((e) => e.route)
5310
5318
  }];
@@ -5313,7 +5321,7 @@ function dealRoutes(e) {
5313
5321
  let t = [...e.map((e) => e.route), {
5314
5322
  name: "deal-communication",
5315
5323
  path: "communication",
5316
- component: () => import("./DealCommunicationTabView-Df5EeolN.js")
5324
+ component: () => import("./DealCommunicationTabView-ClflVxHJ.js")
5317
5325
  }];
5318
5326
  return [{
5319
5327
  name: "deal-detail",
@@ -5322,7 +5330,7 @@ function dealRoutes(e) {
5322
5330
  to: e.route.name
5323
5331
  })) },
5324
5332
  path: "/deals/:dealUuid",
5325
- component: () => import("./DealDetailView-DdWHqaBr.js"),
5333
+ component: () => import("./DealDetailView-ChAFvBBK.js"),
5326
5334
  redirect: { name: t[0].name },
5327
5335
  children: t
5328
5336
  }];
@@ -5335,7 +5343,7 @@ function individualRoutes(e) {
5335
5343
  to: e.route.name
5336
5344
  })) },
5337
5345
  path: "/individual/:individualUuid",
5338
- component: () => import("./IndividualDetailView-DfYS31-e.js"),
5346
+ component: () => import("./IndividualDetailView-CvGUCWPY.js"),
5339
5347
  redirect: { name: e[0].route.name },
5340
5348
  children: e.map((e) => e.route)
5341
5349
  }];