@wisemen/wise-crm-web 1.2.0 → 1.3.0

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,19 +1,19 @@
1
- import { a as e, n as t, o as n, r, s as i, u as a } from "./AppSkeletonLoader-Dq6pKznm.js";
2
- import { C as o, G as s, J as c, K as l, N as u, O as d, Q as f, V as p, X as m, Y as h, Z as ee, a as te, c as ne, gt as re, it as ie, j as ae, k as oe, l as se, mt as g, ot as _, p as ce, pt as v, q as le, s as ue, v as de, z as fe } from "./client-9P6xe_5g.js";
1
+ import { a as e, l as t, n, o as r, r as i } from "./AppSkeletonLoader-Chnz5oZv.js";
2
+ import { C as a, G as o, J as s, K as c, N as l, O as u, W as d, X as f, Y as p, Z as m, a as h, at as g, c as ee, ft as _, ht as te, j as ne, k as re, l as ie, p as ae, pt as v, q as oe, rt as se, s as ce, v as le, z as ue } from "./client-BpnfhHgS.js";
3
3
  import { t as y } from "./_plugin-vue_export-helper-D3hKq4w_.js";
4
- import pe, { z as b } from "zod";
5
- import { Fragment as me, computed as x, createBlock as S, createCommentVNode as C, createElementBlock as w, createElementVNode as T, createStaticVNode as he, createTextVNode as E, createVNode as D, defineComponent as O, mergeModels as k, mergeProps as A, normalizeClass as j, normalizeStyle as ge, onMounted as _e, onUnmounted as ve, openBlock as M, readonly as ye, ref as N, renderList as be, renderSlot as P, toDisplayString as F, unref as I, useId as xe, useModel as Se, useSlots as Ce, watch as we, withCtx as L, withModifiers as Te } from "vue";
6
- import { createI18n as Ee, useI18n as R } from "vue-i18n";
7
- import { PaginationParamsBuilder as De, VcButton as z, VcDialog as Oe, VcDialogCloseButton as ke, VcDialogDescription as Ae, VcDialogTitle as je, VcDropdownMenu as Me, VcDropdownMenuItem as Ne, VcFormField as Pe, VcIcon as B, VcIconButton as Fe, VcKeyboardKey as Ie, VcKeyboardShortcutProvider as Le, VcPhoneNumberField as Re, VcPopoverAnchor as ze, VcPopoverContent as Be, VcPopoverPortal as Ve, VcPopoverRoot as He, VcPopoverTrigger as Ue, VcRouterLinkButton as We, VcSpinner as Ge, VcTabs as Ke, VcTabsItem as qe, VcTextField as Je, VcTextarea as Ye, VcThemeProvider as Xe, useDialog as Ze, useToast as Qe } from "@wisemen/vue-core-components";
8
- import { Temporal as $e } from "temporal-polyfill";
9
- import { onBeforeRouteLeave as et, useRoute as tt, useRouter as nt } from "vue-router";
10
- import { useDebounceFn as rt, useElementSize as it, useInfiniteScroll as at, useLocalStorage as ot } from "@vueuse/core";
11
- import { useInfiniteQuery as st } from "@tanstack/vue-query";
12
- import { useForm as ct } from "formango";
13
- import { AnimatePresence as lt, Motion as ut } from "motion-v";
14
- import { AccordionContent as dt, AccordionHeader as ft, AccordionItem as pt, AccordionRoot as mt, AccordionTrigger as ht, ListboxContent as gt, ListboxFilter as _t, ListboxItem as vt, ListboxRoot as yt } from "reka-ui";
4
+ import de, { z as fe } from "zod";
5
+ import { Fragment as b, computed as x, createBlock as S, createCommentVNode as C, createElementBlock as w, createElementVNode as T, createStaticVNode as pe, createTextVNode as E, createVNode as D, defineComponent as O, mergeModels as me, mergeProps as k, normalizeClass as A, normalizeStyle as he, onMounted as ge, onUnmounted as _e, openBlock as j, readonly as ve, ref as M, renderList as ye, renderSlot as N, toDisplayString as P, unref as F, useId as be, useModel as xe, useSlots as Se, watch as I, withCtx as L, withModifiers as Ce } from "vue";
6
+ import { createI18n as we, useI18n as R } from "vue-i18n";
7
+ import { PaginationParamsBuilder as Te, VcButton as z, VcDialog as Ee, VcDialogCloseButton as De, VcDialogDescription as Oe, VcDialogTitle as ke, VcDropdownMenu as Ae, VcDropdownMenuItem as je, VcFormField as Me, VcIcon as B, VcIconButton as Ne, VcKeyboardKey as Pe, VcKeyboardShortcutProvider as Fe, VcPhoneNumberField as Ie, VcPopoverAnchor as Le, VcPopoverContent as Re, VcPopoverPortal as ze, VcPopoverRoot as Be, VcPopoverTrigger as Ve, VcRouterLinkButton as He, VcSpinner as Ue, VcTabs as We, VcTabsItem as Ge, VcTextField as Ke, VcTextarea as qe, VcThemeProvider as Je, useDialog as Ye, useToast as Xe } from "@wisemen/vue-core-components";
8
+ import { Temporal as Ze } from "temporal-polyfill";
9
+ import { onBeforeRouteLeave as Qe, useRoute as $e, useRouter as et } from "vue-router";
10
+ import { useDebounceFn as tt, useElementSize as nt, useInfiniteScroll as rt, useLocalStorage as it } from "@vueuse/core";
11
+ import { useInfiniteQuery as at } from "@tanstack/vue-query";
12
+ import { useForm as ot } from "formango";
13
+ import { AnimatePresence as st, Motion as ct } from "motion-v";
14
+ import { AccordionContent as lt, AccordionHeader as ut, AccordionItem as dt, AccordionRoot as ft, AccordionTrigger as pt, ListboxContent as mt, ListboxFilter as ht, ListboxItem as gt, ListboxRoot as _t } from "reka-ui";
15
15
  //#region src/locales/en-US.json
16
- var bt = {
16
+ var vt = {
17
17
  "module.notification.notification_center.title": "Notifications",
18
18
  "module.notification.notification_center.trigger.label": "Open notifications",
19
19
  "module.notification.notification_center.unread": "Unread",
@@ -650,7 +650,7 @@ var bt = {
650
650
  "component.contact_tooltip.aria_label.email": "Send email to {value}",
651
651
  "component.contact_tooltip.aria_label.phone": "Call {value}",
652
652
  "component.contact_tooltip.aria_label.address": "Open {value} in Google Maps"
653
- }, xt = {
653
+ }, yt = {
654
654
  "enum.api_error_code.absence_overlaps_with_absence": "Afwezigheid overlapt met een andere afwezigheid",
655
655
  "enum.api_error_code.absence_overlaps_with_full_day_absence": "Afwezigheid overlapt met volledige dag afwezigheid",
656
656
  "enum.api_error_code.accepted_transport_order_not_found": "Geaccepteerd transportorder niet gevonden",
@@ -1269,23 +1269,23 @@ var bt = {
1269
1269
  "component.contact_tooltip.aria_label.email": "Stuur e-mail naar {value}",
1270
1270
  "component.contact_tooltip.aria_label.phone": "Bel {value}",
1271
1271
  "component.contact_tooltip.aria_label.address": "Open {value} in Google Maps"
1272
- }, St = b.string().uuid().brand("IndividualUuid"), Ct = class {
1272
+ }, bt = fe.string().uuid().brand("IndividualUuid"), xt = class {
1273
1273
  static fromDto(e) {
1274
1274
  return {
1275
1275
  userUuid: e.userUuid,
1276
- createdAt: i.fromDto(e.createdAt),
1276
+ createdAt: r.fromDto(e.createdAt),
1277
1277
  changedBy: e.changedBy,
1278
- changes: e.changes?.map((e) => Tt.fromDto(e)) ?? [],
1278
+ changes: e.changes?.map((e) => Ct.fromDto(e)) ?? [],
1279
1279
  content: e.content,
1280
1280
  message: e.message,
1281
1281
  type: e.type
1282
1282
  };
1283
1283
  }
1284
- }, wt = class {
1284
+ }, St = class {
1285
1285
  static toDto(e) {
1286
1286
  return e;
1287
1287
  }
1288
- }, Tt = class {
1288
+ }, Ct = class {
1289
1289
  static fromDto(e) {
1290
1290
  return {
1291
1291
  key: e.key,
@@ -1346,7 +1346,7 @@ var bt = {
1346
1346
  static toNullableForm(e) {
1347
1347
  return e === null ? null : this.toForm(e);
1348
1348
  }
1349
- }, Et = class {
1349
+ }, wt = class {
1350
1350
  static isEmpty(e) {
1351
1351
  return e.trim().length === 0;
1352
1352
  }
@@ -1356,10 +1356,10 @@ var bt = {
1356
1356
  static trimOrUndefined(e) {
1357
1357
  return e.trim() || void 0;
1358
1358
  }
1359
- }, Dt = class {
1359
+ }, Tt = class {
1360
1360
  static toDto(e) {
1361
1361
  return {
1362
- email: Et.trimOrNull(e.email),
1362
+ email: wt.trimOrNull(e.email),
1363
1363
  firstName: e.firstName,
1364
1364
  lastName: e.lastName,
1365
1365
  mobilePhone: e.mobilePhone,
@@ -1367,29 +1367,29 @@ var bt = {
1367
1367
  position: e.position
1368
1368
  };
1369
1369
  }
1370
- }, Ot = /* @__PURE__ */ O({
1370
+ }, Et = /* @__PURE__ */ O({
1371
1371
  __name: "AppGrid",
1372
1372
  props: { cols: {} },
1373
1373
  setup(e) {
1374
1374
  let t = e;
1375
- return (e, n) => (M(), w("div", { class: j([{
1375
+ return (e, n) => (j(), w("div", { class: A([{
1376
1376
  "grid-cols-1": t.cols === 1,
1377
1377
  "grid-cols-2": t.cols === 2,
1378
1378
  "grid-cols-3": t.cols === 3,
1379
1379
  "grid-cols-4": t.cols === 4
1380
- }, "gap-xl grid"]) }, [P(e.$slots, "default")], 2));
1380
+ }, "gap-xl grid"]) }, [N(e.$slots, "default")], 2));
1381
1381
  }
1382
- }), kt = {}, At = {
1382
+ }), Dt = {}, Ot = {
1383
1383
  fill: "none",
1384
1384
  height: "100%",
1385
1385
  viewBox: "0 0 756 560",
1386
1386
  width: "100%",
1387
1387
  xmlns: "http://www.w3.org/2000/svg"
1388
1388
  };
1389
- function jt(e, t) {
1390
- return M(), w("svg", At, [...t[0] ||= [he("<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)]]);
1389
+ function kt(e, t) {
1390
+ return j(), w("svg", Ot, [...t[0] ||= [pe("<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)]]);
1391
1391
  }
1392
- var Mt = /* @__PURE__ */ y(kt, [["render", jt]]), Nt = { class: "relative flex h-full flex-col items-center justify-center text-center" }, Pt = { class: "gap-lg relative z-1 flex flex-col items-center" }, Ft = { class: "bg-brand-200 p-md flex size-12 items-center justify-center rounded-full border-3 border-solid border-white shadow-md" }, It = { class: "gap-sm flex flex-col" }, Lt = { class: "text-md font-semibold" }, Rt = { class: "text-tertiary text-sm" }, zt = { class: "absolute right-0 left-0 scale-140 opacity-10" }, Bt = /* @__PURE__ */ O({
1392
+ var At = /* @__PURE__ */ y(Dt, [["render", kt]]), jt = { class: "relative flex h-full flex-col items-center justify-center text-center" }, Mt = { class: "gap-lg relative z-1 flex flex-col items-center" }, Nt = { class: "bg-brand-200 p-md flex size-12 items-center justify-center rounded-full border-3 border-solid border-white shadow-md" }, Pt = { class: "gap-sm flex flex-col" }, Ft = { class: "text-md font-semibold" }, It = { class: "text-tertiary text-sm" }, Lt = { class: "absolute right-0 left-0 scale-140 opacity-10" }, Rt = /* @__PURE__ */ O({
1393
1393
  __name: "AppEmptyState",
1394
1394
  props: {
1395
1395
  title: {},
@@ -1398,38 +1398,38 @@ var Mt = /* @__PURE__ */ y(kt, [["render", jt]]), Nt = { class: "relative flex h
1398
1398
  },
1399
1399
  setup(e) {
1400
1400
  let t = e;
1401
- return (e, n) => (M(), w("div", Nt, [T("div", Pt, [T("div", Ft, [D(I(B), {
1401
+ return (e, n) => (j(), w("div", jt, [T("div", Mt, [T("div", Nt, [D(F(B), {
1402
1402
  icon: t.icon,
1403
1403
  class: "text-brand-600 size-full"
1404
- }, null, 8, ["icon"])]), T("div", It, [T("h3", Lt, F(t.title), 1), T("p", Rt, F(t.description), 1)])]), T("div", zt, [D(Mt)])]));
1404
+ }, null, 8, ["icon"])]), T("div", Pt, [T("h3", Ft, P(t.title), 1), T("p", It, P(t.description), 1)])]), T("div", Lt, [D(At)])]));
1405
1405
  }
1406
- }), Vt = /* @__PURE__ */ O({
1406
+ }), zt = /* @__PURE__ */ O({
1407
1407
  __name: "AppInfiniteScroll",
1408
1408
  props: {
1409
1409
  distance: { default: 250 },
1410
1410
  onNext: {}
1411
1411
  },
1412
1412
  setup(e) {
1413
- let t = e, n = N(null);
1414
- return at(n, async () => {
1413
+ let t = e, n = M(null);
1414
+ return rt(n, async () => {
1415
1415
  await t.onNext();
1416
- }, { distance: t.distance }), (e, t) => (M(), w("div", {
1416
+ }, { distance: t.distance }), (e, t) => (j(), w("div", {
1417
1417
  ref_key: "infiniteScrollElementRef",
1418
1418
  ref: n,
1419
1419
  class: "thin-scroll overflow-auto"
1420
- }, [P(e.$slots, "default")], 512));
1420
+ }, [N(e.$slots, "default")], 512));
1421
1421
  }
1422
- }), Ht = class {
1422
+ }), Bt = class {
1423
1423
  static fromDto(e) {
1424
1424
  return {
1425
1425
  uuid: e.uuid,
1426
1426
  lastUpdatedByUserUuid: e.lastUpdatedByUserUuid,
1427
- updatedAt: i.fromDto(e.updatedAt),
1427
+ updatedAt: r.fromDto(e.updatedAt),
1428
1428
  content: e.content,
1429
1429
  lastUpdatedByUser: e.lastUpdatedByUser
1430
1430
  };
1431
1431
  }
1432
- }, Ut = class {
1432
+ }, Vt = class {
1433
1433
  static toDto(e, t, n, r) {
1434
1434
  return {
1435
1435
  businessUuid: t ?? null,
@@ -1438,45 +1438,45 @@ var Mt = /* @__PURE__ */ y(kt, [["render", jt]]), Nt = { class: "relative flex h
1438
1438
  content: e.note ?? ""
1439
1439
  };
1440
1440
  }
1441
- }, Wt = class {
1441
+ }, Ht = class {
1442
1442
  static async create(e, t) {
1443
- await ue({ body: Ut.toDto(e, t.businessUuid, t.individualUuid, t.dealUuid) });
1443
+ await ce({ body: Vt.toDto(e, t.businessUuid, t.individualUuid, t.dealUuid) });
1444
1444
  }
1445
1445
  static async delete(e) {
1446
- await se({ path: { uuid: e } });
1446
+ await ie({ path: { uuid: e } });
1447
1447
  }
1448
1448
  static async getBusinessNotes(e, t) {
1449
- let n = await fe({
1449
+ let n = await ue({
1450
1450
  query: e,
1451
1451
  path: { businessUuid: t }
1452
1452
  });
1453
1453
  return {
1454
- data: n.data.items.map(Ht.fromDto),
1454
+ data: n.data.items.map(Bt.fromDto),
1455
1455
  meta: { next: n.data.meta.next }
1456
1456
  };
1457
1457
  }
1458
1458
  static async getDealNotes(e, t) {
1459
- let n = await s({
1459
+ let n = await d({
1460
1460
  query: e,
1461
1461
  path: { dealUuid: t }
1462
1462
  });
1463
1463
  return {
1464
- data: n.data.items.map(Ht.fromDto),
1464
+ data: n.data.items.map(Bt.fromDto),
1465
1465
  meta: { next: n.data.meta.next }
1466
1466
  };
1467
1467
  }
1468
1468
  static async getIndividualNotes(e, t) {
1469
- let n = await ee({
1469
+ let n = await f({
1470
1470
  query: e,
1471
1471
  path: { individualUuid: t }
1472
1472
  });
1473
1473
  return {
1474
- data: n.data.items.map(Ht.fromDto),
1474
+ data: n.data.items.map(Bt.fromDto),
1475
1475
  meta: { next: n.data.meta.next }
1476
1476
  };
1477
1477
  }
1478
1478
  static async update(e, t) {
1479
- await ae({
1479
+ await ne({
1480
1480
  body: { content: t },
1481
1481
  path: { uuid: e }
1482
1482
  });
@@ -1484,9 +1484,9 @@ var Mt = /* @__PURE__ */ y(kt, [["render", jt]]), Nt = { class: "relative flex h
1484
1484
  };
1485
1485
  //#endregion
1486
1486
  //#region src/api/mutations/noteDelete.mutation.ts
1487
- function Gt() {
1488
- return a({
1489
- queryFn: async ({ params: e }) => await Wt.delete(e.noteUuid),
1487
+ function Ut() {
1488
+ return t({
1489
+ queryFn: async ({ params: e }) => await Ht.delete(e.noteUuid),
1490
1490
  queryKeysToInvalidate: {
1491
1491
  noteBusinessIndex: {},
1492
1492
  noteDealIndex: {},
@@ -1496,22 +1496,22 @@ function Gt() {
1496
1496
  }
1497
1497
  //#endregion
1498
1498
  //#region src/composables/keyset-infinite-query/keysetInfiniteQuery.composable.ts
1499
- var Kt = 20;
1500
- function qt(e) {
1499
+ var Wt = 20;
1500
+ function Gt(e) {
1501
1501
  function t() {
1502
1502
  let t = Object.entries(e.queryKey)[0];
1503
1503
  if (!t) throw Error("queryKey must have at least one entry");
1504
1504
  let [n, r] = t;
1505
1505
  return [n, r];
1506
1506
  }
1507
- let n = st({
1507
+ let n = at({
1508
1508
  staleTime: e.staleTime ?? void 0,
1509
1509
  getNextPageParam: (e) => e.meta.next ?? null,
1510
1510
  initialPageParam: void 0,
1511
1511
  placeholderData: (e) => e,
1512
1512
  queryFn: ({ pageParam: t }) => e.queryFn({
1513
1513
  key: t,
1514
- limit: e.limit ?? Kt
1514
+ limit: e.limit ?? Wt
1515
1515
  }),
1516
1516
  queryKey: t()
1517
1517
  }), r = x(() => {
@@ -1535,20 +1535,20 @@ function qt(e) {
1535
1535
  }
1536
1536
  //#endregion
1537
1537
  //#region src/types/enum.type.ts
1538
- function Jt(e) {
1538
+ function Kt(e) {
1539
1539
  return new Map(Object.entries(e));
1540
1540
  }
1541
1541
  //#endregion
1542
1542
  //#region src/utils/apiError.util.ts
1543
- var Yt = class {
1543
+ var qt = class {
1544
1544
  static getMessage(e) {
1545
1545
  return e.errors[0]?.detail ?? null;
1546
1546
  }
1547
1547
  static isError(e) {
1548
1548
  return e?.errors !== void 0;
1549
1549
  }
1550
- }, Xt = class {
1551
- static i18nKeys = Jt({
1550
+ }, Jt = class {
1551
+ static i18nKeys = Kt({
1552
1552
  board_column_not_found: "enum.api_error_code.board_column_not_found",
1553
1553
  board_columns_already_exist: "enum.api_error_code.board_columns_already_exist",
1554
1554
  business_billing_information_not_found: "enum.api_error_code.billing_information_not_found",
@@ -1598,11 +1598,11 @@ var Yt = class {
1598
1598
  return this.i18nKeys.get(e);
1599
1599
  }
1600
1600
  static getI18nKeyForError(e) {
1601
- if (!Yt.isError(e)) return null;
1601
+ if (!qt.isError(e)) return null;
1602
1602
  let t = e?.errors[0]?.code ?? null;
1603
1603
  return t === null ? null : this.i18nKeys.get(t) ?? null;
1604
1604
  }
1605
- }, Zt = class {
1605
+ }, Yt = class {
1606
1606
  static debug(e) {
1607
1607
  console.debug(e);
1608
1608
  }
@@ -1618,11 +1618,11 @@ var Yt = class {
1618
1618
  };
1619
1619
  //#endregion
1620
1620
  //#region src/composables/apiErrorToast.composable.ts
1621
- function Qt() {
1622
- let e = R(), t = Qe();
1621
+ function Xt() {
1622
+ let e = R(), t = Xe();
1623
1623
  function n(n) {
1624
- if (Zt.error(n), Yt.isError(n)) {
1625
- let r = Xt.getI18nKeyForError(n);
1624
+ if (Yt.error(n), qt.isError(n)) {
1625
+ let r = Jt.getI18nKeyForError(n);
1626
1626
  t.error({
1627
1627
  title: e.t("error.default_error.title"),
1628
1628
  description: r ? e.t(r) : e.t("error.default_error.description")
@@ -1635,19 +1635,19 @@ function Qt() {
1635
1635
  }
1636
1636
  //#endregion
1637
1637
  //#region src/composables/page-loader/pageLoader.composable.ts
1638
- var $t = N(!1);
1639
- function en() {
1638
+ var Zt = M(!1);
1639
+ function Qt() {
1640
1640
  return {
1641
- isLoading: x(() => $t.value),
1642
- setIsLoading: tn
1641
+ isLoading: x(() => Zt.value),
1642
+ setIsLoading: $t
1643
1643
  };
1644
1644
  }
1645
- function tn(e) {
1646
- $t.value = e;
1645
+ function $t(e) {
1646
+ Zt.value = e;
1647
1647
  }
1648
1648
  //#endregion
1649
1649
  //#region src/components/app/dialog/AppDialogActionCancel.vue
1650
- var nn = /* @__PURE__ */ O({
1650
+ var en = /* @__PURE__ */ O({
1651
1651
  __name: "AppDialogActionCancel",
1652
1652
  props: { isDisabled: {
1653
1653
  type: Boolean,
@@ -1655,15 +1655,15 @@ var nn = /* @__PURE__ */ O({
1655
1655
  } },
1656
1656
  setup(t) {
1657
1657
  let n = t, r = R();
1658
- return (t, i) => (M(), S(I(ke), null, {
1659
- default: L(() => [D(I(z), {
1658
+ return (t, i) => (j(), S(F(De), null, {
1659
+ default: L(() => [D(F(z), {
1660
1660
  "is-disabled": n.isDisabled,
1661
1661
  variant: "tertiary",
1662
1662
  size: "lg",
1663
1663
  class: "w-full"
1664
1664
  }, {
1665
1665
  default: L(() => [D(e, null, {
1666
- default: L(() => [E(F(I(r).t("shared.cancel")) + " ", 1), D(I(Ie), {
1666
+ default: L(() => [E(P(F(r).t("shared.cancel")) + " ", 1), D(F(Pe), {
1667
1667
  "keyboard-key": "escape",
1668
1668
  class: "border-tertiary bg-secondary text-tertiary"
1669
1669
  })]),
@@ -1674,13 +1674,13 @@ var nn = /* @__PURE__ */ O({
1674
1674
  _: 1
1675
1675
  }));
1676
1676
  }
1677
- }), rn = "show-keyboard-shortcuts";
1678
- function an() {
1679
- return ot(rn, !0);
1677
+ }), tn = "show-keyboard-shortcuts";
1678
+ function nn() {
1679
+ return it(tn, !0);
1680
1680
  }
1681
1681
  //#endregion
1682
1682
  //#region src/components/app/dialog/AppDialogActionPrimary.vue
1683
- var on = /* @__PURE__ */ O({
1683
+ var rn = /* @__PURE__ */ O({
1684
1684
  __name: "AppDialogActionPrimary",
1685
1685
  props: {
1686
1686
  isDestructive: {
@@ -1695,21 +1695,21 @@ var on = /* @__PURE__ */ O({
1695
1695
  },
1696
1696
  emits: ["confirm"],
1697
1697
  setup(t, { emit: n }) {
1698
- let r = t, i = n, a = an();
1698
+ let r = t, i = n, a = nn();
1699
1699
  function o() {
1700
1700
  i("confirm");
1701
1701
  }
1702
- let s = N(null), c = x(() => s.value instanceof HTMLButtonElement);
1703
- return _e(() => {
1702
+ let s = M(null), c = x(() => s.value instanceof HTMLButtonElement);
1703
+ return ge(() => {
1704
1704
  typeof document < "u" && (s.value = document.activeElement, document.addEventListener("focusin", (e) => {
1705
1705
  s.value = e.target;
1706
1706
  }));
1707
- }), (t, n) => (M(), S(I(Le), {
1707
+ }), (t, n) => (j(), S(F(Fe), {
1708
1708
  "keyboard-keys": ["enter"],
1709
1709
  "is-disabled": !c.value,
1710
1710
  class: "w-full"
1711
1711
  }, {
1712
- default: L(() => [D(I(z), {
1712
+ default: L(() => [D(F(z), {
1713
1713
  "is-loading": r.isLoading,
1714
1714
  variant: r.isDestructive ? "destructive-primary" : "primary",
1715
1715
  class: "group w-full",
@@ -1717,7 +1717,7 @@ var on = /* @__PURE__ */ O({
1717
1717
  onClick: o
1718
1718
  }, {
1719
1719
  default: L(() => [D(e, null, {
1720
- default: L(() => [E(F(r.label) + " ", 1), I(a) ? (M(), S(I(Ie), {
1720
+ default: L(() => [E(P(r.label) + " ", 1), F(a) ? (j(), S(F(Pe), {
1721
1721
  key: 0,
1722
1722
  "class-config": { key: "text-primary-on-brand border-white/10 bg-white/10 duration-200" },
1723
1723
  "keyboard-key": "enter"
@@ -1729,15 +1729,15 @@ var on = /* @__PURE__ */ O({
1729
1729
  _: 1
1730
1730
  }, 8, ["is-disabled"]));
1731
1731
  }
1732
- }), sn = {}, cn = { class: "gap-sm flex items-center justify-end" };
1733
- function ln(e, t) {
1734
- return M(), w("div", cn, [P(e.$slots, "default")]);
1732
+ }), an = {}, on = { class: "gap-sm flex items-center justify-end" };
1733
+ function sn(e, t) {
1734
+ return j(), w("div", on, [N(e.$slots, "default")]);
1735
1735
  }
1736
- var un = /* @__PURE__ */ y(sn, [["render", ln]]), dn = {}, fn = { class: "p-xl" };
1737
- function pn(e, t) {
1738
- return M(), w("div", fn, [P(e.$slots, "default")]);
1736
+ var cn = /* @__PURE__ */ y(an, [["render", sn]]), ln = {}, un = { class: "p-xl" };
1737
+ function dn(e, t) {
1738
+ return j(), w("div", un, [N(e.$slots, "default")]);
1739
1739
  }
1740
- var mn = /* @__PURE__ */ y(dn, [["render", pn]]), hn = { class: "text-primary text-center text-xl font-semibold" }, gn = { class: "text-primary text-center text-sm" }, _n = /* @__PURE__ */ O({
1740
+ var fn = /* @__PURE__ */ y(ln, [["render", dn]]), pn = { class: "text-primary text-center text-xl font-semibold" }, mn = { class: "text-primary text-center text-sm" }, hn = /* @__PURE__ */ O({
1741
1741
  __name: "AppConfirmDialog",
1742
1742
  props: {
1743
1743
  title: {},
@@ -1761,22 +1761,22 @@ var mn = /* @__PURE__ */ y(dn, [["render", pn]]), hn = { class: "text-primary te
1761
1761
  function a() {
1762
1762
  r("closed");
1763
1763
  }
1764
- return (e, t) => (M(), S(I(Oe), {
1764
+ return (e, t) => (j(), S(F(Ee), {
1765
1765
  "class-config": { content: "w-full max-w-120" },
1766
1766
  onClose: a
1767
1767
  }, {
1768
- default: L(() => [D(mn, null, {
1769
- default: L(() => [D(I(je), null, {
1770
- default: L(() => [T("h1", hn, F(n.title), 1)]),
1768
+ default: L(() => [D(fn, null, {
1769
+ default: L(() => [D(F(ke), null, {
1770
+ default: L(() => [T("h1", pn, P(n.title), 1)]),
1771
1771
  _: 1
1772
- }), D(I(Ae), null, {
1773
- default: L(() => [T("p", gn, F(n.description), 1)]),
1772
+ }), D(F(Oe), null, {
1773
+ default: L(() => [T("p", mn, P(n.description), 1)]),
1774
1774
  _: 1
1775
1775
  })]),
1776
1776
  _: 1
1777
- }), D(mn, null, {
1778
- default: L(() => [D(un, null, {
1779
- default: L(() => [D(nn, { "is-disabled": n.isLoading }, null, 8, ["is-disabled"]), D(on, {
1777
+ }), D(fn, null, {
1778
+ default: L(() => [D(cn, null, {
1779
+ default: L(() => [D(en, { "is-disabled": n.isLoading }, null, 8, ["is-disabled"]), D(rn, {
1780
1780
  label: n.confirmText,
1781
1781
  "is-destructive": n.isDestructive,
1782
1782
  "is-loading": n.isLoading,
@@ -1793,19 +1793,19 @@ var mn = /* @__PURE__ */ y(dn, [["render", pn]]), hn = { class: "text-primary te
1793
1793
  _: 1
1794
1794
  }));
1795
1795
  }
1796
- }), vn = {
1797
- [re.EN_US]: bt,
1798
- [re.NL_BE]: xt
1799
- }, yn = re.NL_BE, bn = Ee({
1800
- fallbackLocale: yn,
1796
+ }), gn = {
1797
+ [te.EN_US]: vt,
1798
+ [te.NL_BE]: yt
1799
+ }, _n = te.NL_BE, vn = we({
1800
+ fallbackLocale: _n,
1801
1801
  legacy: !1,
1802
- locale: (typeof window < "u" ? localStorage.getItem("locale") : null) ?? yn,
1803
- messages: vn
1802
+ locale: (typeof window < "u" ? localStorage.getItem("locale") : null) ?? _n,
1803
+ messages: gn
1804
1804
  }), H = null;
1805
- function xn(e) {
1806
- let t = Ze(_n);
1805
+ function yn(e) {
1806
+ let t = Ye(hn);
1807
1807
  function n() {
1808
- let e = bn.global;
1808
+ let e = vn.global;
1809
1809
  return H = new Promise((n, r) => {
1810
1810
  t.open({
1811
1811
  title: e.t("component.unsaved_changes_dialog.title"),
@@ -1821,7 +1821,7 @@ function xn(e) {
1821
1821
  });
1822
1822
  }), H;
1823
1823
  }
1824
- return et(async (t, r) => {
1824
+ return Qe(async (t, r) => {
1825
1825
  if (!e.value) return !0;
1826
1826
  if (H === null) H = n();
1827
1827
  else return !1;
@@ -1830,15 +1830,15 @@ function xn(e) {
1830
1830
  } catch {
1831
1831
  return H = null, !1;
1832
1832
  }
1833
- }), ve(() => {
1834
- typeof window < "u" && (window.onbeforeunload = null);
1835
1833
  }), _e(() => {
1836
- typeof window < "u" && (window.onbeforeunload = () => e.value ? bn.global.t("component.unsaved_changes_dialog.description") : null);
1834
+ typeof window < "u" && (window.onbeforeunload = null);
1835
+ }), ge(() => {
1836
+ typeof window < "u" && (window.onbeforeunload = () => e.value ? vn.global.t("component.unsaved_changes_dialog.description") : null);
1837
1837
  }), { handleUnsavedClose: n };
1838
1838
  }
1839
1839
  //#endregion
1840
1840
  //#region src/components/app/AppForm.vue?vue&type=script&setup=true&lang.ts
1841
- var Sn = ["id"], Cn = /* @__PURE__ */ O({
1841
+ var bn = ["id"], xn = /* @__PURE__ */ O({
1842
1842
  __name: "AppForm",
1843
1843
  props: {
1844
1844
  canExitWhenDirty: {
@@ -1848,19 +1848,19 @@ var Sn = ["id"], Cn = /* @__PURE__ */ O({
1848
1848
  form: {}
1849
1849
  },
1850
1850
  setup(e) {
1851
- let t = e, n = xe(), r = en();
1852
- return t.canExitWhenDirty || xn(x(() => t.form.isDirty.value && !t.form.isSubmitting.value)), we(() => t.form.isSubmitting, (e) => {
1851
+ let t = e, n = be(), r = Qt();
1852
+ return t.canExitWhenDirty || yn(x(() => t.form.isDirty.value && !t.form.isSubmitting.value)), I(() => t.form.isSubmitting, (e) => {
1853
1853
  r.setIsLoading(e.value);
1854
- }), ve(() => {
1854
+ }), _e(() => {
1855
1855
  r.setIsLoading(!1);
1856
- }), (e, r) => (M(), w("form", {
1857
- id: I(n),
1856
+ }), (e, r) => (j(), w("form", {
1857
+ id: F(n),
1858
1858
  class: "@container/form-layout flex size-full flex-1 flex-col",
1859
1859
  novalidate: "",
1860
- onSubmit: r[0] ||= Te((...e) => t.form.submit && t.form.submit(...e), ["prevent"])
1861
- }, [P(e.$slots, "default", { formId: I(n) })], 40, Sn));
1860
+ onSubmit: r[0] ||= Ce((...e) => t.form.submit && t.form.submit(...e), ["prevent"])
1861
+ }, [N(e.$slots, "default", { formId: F(n) })], 40, bn));
1862
1862
  }
1863
- }), wn = b.object({ note: b.string().trim().min(1) });
1863
+ }), Sn = fe.object({ note: fe.string().trim().min(1) });
1864
1864
  //#endregion
1865
1865
  //#region src/utils/form.util.ts
1866
1866
  function U(e) {
@@ -1875,16 +1875,16 @@ function U(e) {
1875
1875
  }
1876
1876
  //#endregion
1877
1877
  //#region src/components/notes/NoteForm.vue?vue&type=script&setup=true&lang.ts
1878
- var Tn = { class: "p-md flex justify-end" }, En = /* @__PURE__ */ O({
1878
+ var Cn = { class: "p-md flex justify-end" }, wn = /* @__PURE__ */ O({
1879
1879
  __name: "NoteForm",
1880
1880
  props: {
1881
1881
  content: {},
1882
1882
  onSubmit: { type: Function }
1883
1883
  },
1884
1884
  setup(e) {
1885
- let t = e, n = R(), r = ct({
1885
+ let t = e, n = R(), r = ot({
1886
1886
  initialState: { note: t.content ?? null },
1887
- schema: wn,
1887
+ schema: Sn,
1888
1888
  onSubmit: async (e) => {
1889
1889
  await t.onSubmit(e), r.reset();
1890
1890
  }
@@ -1892,23 +1892,23 @@ var Tn = { class: "p-md flex justify-end" }, En = /* @__PURE__ */ O({
1892
1892
  async function o(e) {
1893
1893
  !r.isValid.value || r.isSubmitting.value || e.key === "Enter" && !e.shiftKey && (e.preventDefault(), await r.submit(), i.setValue(null));
1894
1894
  }
1895
- return (e, t) => (M(), w("div", null, [D(Cn, {
1895
+ return (e, t) => (j(), w("div", null, [D(xn, {
1896
1896
  "can-exit-when-dirty": !0,
1897
- form: I(r),
1897
+ form: F(r),
1898
1898
  class: "w-full"
1899
1899
  }, {
1900
- default: L(() => [D(I(Ye), A(I(U)(I(i)), {
1900
+ default: L(() => [D(F(qe), k(F(U)(F(i)), {
1901
1901
  errors: [],
1902
1902
  "error-message": null,
1903
- placeholder: I(n).t("wise_crm.note.create_placeholder"),
1903
+ placeholder: F(n).t("wise_crm.note.create_placeholder"),
1904
1904
  "class-config": { input: "h-20" },
1905
1905
  onKeydown: o
1906
1906
  }), {
1907
- bottom: L(() => [T("div", Tn, [D(I(Fe), {
1907
+ bottom: L(() => [T("div", Cn, [D(F(Ne), {
1908
1908
  "class-config": { root: "rounded-full shadow-none" },
1909
- "is-loading": I(r).isSubmitting.value,
1909
+ "is-loading": F(r).isSubmitting.value,
1910
1910
  "is-disabled": a.value,
1911
- label: I(n).t("wise_crm.info_dialog.notes.submit_note_label"),
1911
+ label: F(n).t("wise_crm.info_dialog.notes.submit_note_label"),
1912
1912
  type: "submit",
1913
1913
  size: "sm",
1914
1914
  icon: "send"
@@ -1922,7 +1922,7 @@ var Tn = { class: "p-md flex justify-end" }, En = /* @__PURE__ */ O({
1922
1922
  _: 1
1923
1923
  }, 8, ["form"])]));
1924
1924
  }
1925
- }), Dn = { class: "gap-md flex flex-col" }, On = { class: "gap-sm border-primary p-lg relative flex flex-1 flex-col overflow-hidden rounded-lg border" }, kn = { class: "mr-3xl max-w-full text-sm text-wrap wrap-break-word whitespace-pre-wrap" }, An = { class: "gap-sm text-placeholder flex items-center text-xs" }, jn = { class: "absolute top-1 right-1" }, Mn = /* @__PURE__ */ O({
1925
+ }), Tn = { class: "gap-md flex flex-col" }, En = { class: "gap-sm border-primary p-lg relative flex flex-1 flex-col overflow-hidden rounded-lg border" }, Dn = { class: "mr-3xl max-w-full text-sm text-wrap wrap-break-word whitespace-pre-wrap" }, On = { class: "gap-sm text-placeholder flex items-center text-xs" }, kn = { class: "absolute top-1 right-1" }, An = /* @__PURE__ */ O({
1926
1926
  __name: "NoteList",
1927
1927
  props: { notes: {} },
1928
1928
  emits: [
@@ -1930,11 +1930,11 @@ var Tn = { class: "p-md flex justify-end" }, En = /* @__PURE__ */ O({
1930
1930
  "next",
1931
1931
  "update"
1932
1932
  ],
1933
- setup(e, { emit: n }) {
1934
- let i = e, a = n, o = R();
1933
+ setup(e, { emit: t }) {
1934
+ let r = e, a = t, o = R();
1935
1935
  function s(e) {
1936
- let n = e.updatedAt, i = n.toInstant(), a = $e.Now.instant(), s = r.diffInSeconds(i, a), c = r.diffInMinutes(i, a), l = r.diffInHours(i, a);
1937
- return s < 60 ? o.t("wise_crm.note.just_now") : c < 60 ? o.t("wise_crm.note.minutes_ago", { count: Math.round(c) }) : l < 24 ? o.t("wise_crm.note.hours_ago", { count: Math.round(l) }) : t().toDateTime(n);
1936
+ let t = e.updatedAt, r = t.toInstant(), a = Ze.Now.instant(), s = i.diffInSeconds(r, a), c = i.diffInMinutes(r, a), l = i.diffInHours(r, a);
1937
+ return s < 60 ? o.t("wise_crm.note.just_now") : c < 60 ? o.t("wise_crm.note.minutes_ago", { count: Math.round(c) }) : l < 24 ? o.t("wise_crm.note.hours_ago", { count: Math.round(l) }) : n().toDateTime(t);
1938
1938
  }
1939
1939
  function c() {
1940
1940
  a("next");
@@ -1945,34 +1945,34 @@ var Tn = { class: "p-md flex justify-end" }, En = /* @__PURE__ */ O({
1945
1945
  function u(e) {
1946
1946
  a("update", e);
1947
1947
  }
1948
- return (e, t) => (M(), S(Vt, { "on-next": c }, {
1949
- default: L(() => [T("div", Dn, [(M(!0), w(me, null, be(i.notes, (e) => (M(), w("div", {
1948
+ return (e, t) => (j(), S(zt, { "on-next": c }, {
1949
+ default: L(() => [T("div", Tn, [(j(!0), w(b, null, ye(r.notes, (e) => (j(), w("div", {
1950
1950
  key: e.content,
1951
1951
  class: "gap-sm flex"
1952
- }, [T("div", On, [
1953
- T("p", kn, F(e.content), 1),
1954
- T("div", An, [
1955
- T("span", null, F(s(e)), 1),
1952
+ }, [T("div", En, [
1953
+ T("p", Dn, P(e.content), 1),
1954
+ T("div", On, [
1955
+ T("span", null, P(s(e)), 1),
1956
1956
  t[0] ||= T("div", { class: "size-1 rounded-full bg-gray-400" }, null, -1),
1957
- T("span", null, F(e.lastUpdatedByUser), 1)
1957
+ T("span", null, P(e.lastUpdatedByUser), 1)
1958
1958
  ]),
1959
- T("div", jn, [D(I(Me), {
1959
+ T("div", kn, [D(F(Ae), {
1960
1960
  "class-config": { content: "min-w-fit p-sm" },
1961
1961
  "popover-align": "end"
1962
1962
  }, {
1963
- trigger: L(() => [D(I(Fe), {
1964
- label: I(o).t("wise_crm.info_dialog.notes.action_button_label"),
1963
+ trigger: L(() => [D(F(Ne), {
1964
+ label: F(o).t("wise_crm.info_dialog.notes.action_button_label"),
1965
1965
  variant: "tertiary",
1966
1966
  size: "sm",
1967
1967
  icon: "verticalDots"
1968
1968
  }, null, 8, ["label"])]),
1969
- content: L(() => [D(I(Ne), {
1970
- label: I(o).t("wise_crm.info_dialog.notes.update_note"),
1969
+ content: L(() => [D(F(je), {
1970
+ label: F(o).t("wise_crm.info_dialog.notes.update_note"),
1971
1971
  icon: "editWithLine",
1972
1972
  onSelect: (t) => u(e)
1973
- }, null, 8, ["label", "onSelect"]), D(I(Ne), {
1973
+ }, null, 8, ["label", "onSelect"]), D(F(je), {
1974
1974
  "is-destructive": !0,
1975
- label: I(o).t("wise_crm.shared.delete"),
1975
+ label: F(o).t("wise_crm.shared.delete"),
1976
1976
  icon: "trash",
1977
1977
  onSelect: (t) => l(e.uuid)
1978
1978
  }, null, 8, ["label", "onSelect"])]),
@@ -1982,10 +1982,10 @@ var Tn = { class: "p-md flex justify-end" }, En = /* @__PURE__ */ O({
1982
1982
  _: 1
1983
1983
  }));
1984
1984
  }
1985
- }), Nn = { class: "gap-lg flex h-full flex-col justify-between" }, Pn = {
1985
+ }), jn = { class: "gap-lg flex h-full flex-col justify-between" }, Mn = {
1986
1986
  key: 0,
1987
1987
  class: "gap-md text-quaternary flex h-70 flex-col items-center justify-center"
1988
- }, Fn = { class: "text-xs" }, In = /* @__PURE__ */ O({
1988
+ }, Nn = { class: "text-xs" }, Pn = /* @__PURE__ */ O({
1989
1989
  __name: "CrmDetailSidebarNotesView",
1990
1990
  props: {
1991
1991
  hasNextPage: { type: Boolean },
@@ -1999,7 +1999,7 @@ var Tn = { class: "p-md flex justify-end" }, En = /* @__PURE__ */ O({
1999
1999
  "update"
2000
2000
  ],
2001
2001
  setup(e, { emit: t }) {
2002
- let n = e, r = t, i = R(), a = Qt();
2002
+ let n = e, r = t, i = R(), a = Xt();
2003
2003
  async function o(e) {
2004
2004
  try {
2005
2005
  await n.onSubmit(e);
@@ -2016,25 +2016,25 @@ var Tn = { class: "p-md flex justify-end" }, En = /* @__PURE__ */ O({
2016
2016
  function l(e) {
2017
2017
  r("update", e);
2018
2018
  }
2019
- return (e, t) => (M(), w("div", Nn, [n.isLoading ? (M(), w("div", Pn, [D(I(Ge), { class: "size-4" }), T("p", Fn, F(I(i).t("wise_crm.shared.loading")), 1)])) : n.notes.length === 0 ? (M(), S(Bt, {
2019
+ return (e, t) => (j(), w("div", jn, [n.isLoading ? (j(), w("div", Mn, [D(F(Ue), { class: "size-4" }), T("p", Nn, P(F(i).t("wise_crm.shared.loading")), 1)])) : n.notes.length === 0 ? (j(), S(Rt, {
2020
2020
  key: 1,
2021
- title: I(i).t("wise_crm.info_dialog.notes.empty_state.title"),
2022
- description: I(i).t("wise_crm.info_dialog.notes.empty_state.description"),
2021
+ title: F(i).t("wise_crm.info_dialog.notes.empty_state.title"),
2022
+ description: F(i).t("wise_crm.info_dialog.notes.empty_state.description"),
2023
2023
  icon: "file"
2024
- }, null, 8, ["title", "description"])) : (M(), S(Mn, {
2024
+ }, null, 8, ["title", "description"])) : (j(), S(An, {
2025
2025
  key: 2,
2026
2026
  notes: n.notes,
2027
2027
  onDelete: c,
2028
2028
  onUpdate: l,
2029
2029
  onNext: s
2030
- }, null, 8, ["notes"])), D(En, { "on-submit": o })]));
2030
+ }, null, 8, ["notes"])), D(wn, { "on-submit": o })]));
2031
2031
  }
2032
2032
  });
2033
2033
  //#endregion
2034
2034
  //#region src/api/mutations/noteUpdate.mutation.ts
2035
- function Ln() {
2036
- return a({
2037
- queryFn: async ({ body: e, params: t }) => await Wt.update(t.noteUuid, e.note),
2035
+ function Fn() {
2036
+ return t({
2037
+ queryFn: async ({ body: e, params: t }) => await Ht.update(t.noteUuid, e.note),
2038
2038
  queryKeysToInvalidate: {
2039
2039
  noteBusinessIndex: {},
2040
2040
  noteIndividualIndex: {}
@@ -2043,7 +2043,7 @@ function Ln() {
2043
2043
  }
2044
2044
  //#endregion
2045
2045
  //#region src/components/app/dialog/AppDialogHeader.vue?vue&type=script&setup=true&lang.ts
2046
- var Rn = { class: "grid grid-cols-[auto_2rem]" }, zn = { class: "gap-xl flex items-center" }, Bn = { class: "bg-brand-200 flex size-10 shrink-0 items-center justify-center rounded-full" }, Vn = { class: "text-primary text-md font-semibold" }, Hn = { class: "text-tertiary text-sm" }, Un = /* @__PURE__ */ O({
2046
+ var In = { class: "grid grid-cols-[auto_2rem]" }, Ln = { class: "gap-xl flex items-center" }, Rn = { class: "bg-brand-200 flex size-10 shrink-0 items-center justify-center rounded-full" }, zn = { class: "text-primary text-md font-semibold" }, Bn = { class: "text-tertiary text-sm" }, Vn = /* @__PURE__ */ O({
2047
2047
  __name: "AppDialogHeader",
2048
2048
  props: {
2049
2049
  title: {},
@@ -2052,18 +2052,18 @@ var Rn = { class: "grid grid-cols-[auto_2rem]" }, zn = { class: "gap-xl flex ite
2052
2052
  },
2053
2053
  setup(e) {
2054
2054
  let t = e;
2055
- return (e, n) => (M(), w("header", Rn, [T("div", zn, [T("div", Bn, [D(I(B), {
2055
+ return (e, n) => (j(), w("header", In, [T("div", Ln, [T("div", Rn, [D(F(B), {
2056
2056
  icon: t.icon,
2057
2057
  class: "text-brand-600 size-5 shrink-0"
2058
- }, null, 8, ["icon"])]), T("div", null, [D(I(je), null, {
2059
- default: L(() => [T("h1", Vn, F(t.title), 1)]),
2058
+ }, null, 8, ["icon"])]), T("div", null, [D(F(ke), null, {
2059
+ default: L(() => [T("h1", zn, P(t.title), 1)]),
2060
2060
  _: 1
2061
- }), D(I(Ae), null, {
2062
- default: L(() => [T("p", Hn, F(t.description), 1)]),
2061
+ }), D(F(Oe), null, {
2062
+ default: L(() => [T("p", Bn, P(t.description), 1)]),
2063
2063
  _: 1
2064
- })])]), P(e.$slots, "closse-button")]));
2064
+ })])]), N(e.$slots, "closse-button")]));
2065
2065
  }
2066
- }), Wn = { class: "px-4xl py-3xl overflow-y-auto" }, Gn = /* @__PURE__ */ O({
2066
+ }), Hn = { class: "px-4xl py-3xl overflow-y-auto" }, Un = /* @__PURE__ */ O({
2067
2067
  __name: "NoteUpdateDialog",
2068
2068
  props: {
2069
2069
  businessUuid: {},
@@ -2072,7 +2072,7 @@ var Rn = { class: "grid grid-cols-[auto_2rem]" }, zn = { class: "gap-xl flex ite
2072
2072
  },
2073
2073
  emits: ["close"],
2074
2074
  setup(e, { emit: t }) {
2075
- let n = e, r = t, i = R(), a = Qt(), o = Ln();
2075
+ let n = e, r = t, i = R(), a = Xt(), o = Fn();
2076
2076
  async function s(e) {
2077
2077
  try {
2078
2078
  await o.execute({
@@ -2090,32 +2090,32 @@ var Rn = { class: "grid grid-cols-[auto_2rem]" }, zn = { class: "gap-xl flex ite
2090
2090
  function c() {
2091
2091
  r("close");
2092
2092
  }
2093
- return (e, t) => (M(), S(I(Oe), {
2093
+ return (e, t) => (j(), S(F(Ee), {
2094
2094
  "class-config": { content: "w-120 p-xl" },
2095
2095
  onClose: c
2096
2096
  }, {
2097
- default: L(() => [D(Un, {
2098
- title: I(i).t("wise_crm.note.update_dialog.title"),
2097
+ default: L(() => [D(Vn, {
2098
+ title: F(i).t("wise_crm.note.update_dialog.title"),
2099
2099
  icon: "file"
2100
2100
  }, {
2101
- "closse-button": L(() => [D(I(ke))]),
2101
+ "closse-button": L(() => [D(F(De))]),
2102
2102
  _: 1
2103
- }, 8, ["title"]), T("div", Wn, [D(En, {
2103
+ }, 8, ["title"]), T("div", Hn, [D(wn, {
2104
2104
  content: n.note.content,
2105
2105
  "on-submit": s
2106
2106
  }, null, 8, ["content"])])]),
2107
2107
  _: 1
2108
2108
  }));
2109
2109
  }
2110
- }), Kn = 20;
2111
- function qn(e) {
2110
+ }), Wn = 20;
2111
+ function Gn(e) {
2112
2112
  function t() {
2113
2113
  let t = Object.entries(e.queryKey)[0];
2114
2114
  if (!t) throw Error("queryKey must have at least one entry");
2115
2115
  let [n, r] = t;
2116
2116
  return [n, r];
2117
2117
  }
2118
- let n = st({
2118
+ let n = at({
2119
2119
  staleTime: e.staleTime ?? void 0,
2120
2120
  enabled: x(() => e.isEnabled?.value ?? !0),
2121
2121
  getNextPageParam: (e) => {
@@ -2125,7 +2125,7 @@ function qn(e) {
2125
2125
  initialPageParam: 0,
2126
2126
  placeholderData: (e) => e,
2127
2127
  queryFn: ({ pageParam: t }) => e.queryFn({
2128
- limit: e.limit ?? Kn,
2128
+ limit: e.limit ?? Wn,
2129
2129
  offset: t ?? 0
2130
2130
  }),
2131
2131
  queryKey: t()
@@ -2151,20 +2151,20 @@ function qn(e) {
2151
2151
  }
2152
2152
  //#endregion
2153
2153
  //#region src/components/app/AppAndOrSeparator.vue
2154
- var Jn = {}, Yn = { class: "text-primary/50 flex items-center" }, Xn = { class: "mx-lg text-xs" };
2155
- function Zn(e, t) {
2156
- return M(), w("div", Yn, [
2154
+ var Kn = {}, qn = { class: "text-primary/50 flex items-center" }, Jn = { class: "mx-lg text-xs" };
2155
+ function Yn(e, t) {
2156
+ return j(), w("div", qn, [
2157
2157
  t[0] ||= T("div", { class: "bg-quaternary h-px w-full flex-1" }, null, -1),
2158
- T("span", Xn, [P(e.$slots, "default")]),
2158
+ T("span", Jn, [N(e.$slots, "default")]),
2159
2159
  t[1] ||= T("div", { class: "bg-quaternary h-px w-full flex-1" }, null, -1),
2160
2160
  t[2] ||= T("div", null, null, -1)
2161
2161
  ]);
2162
2162
  }
2163
- var Qn = /* @__PURE__ */ y(Jn, [["render", Zn]]), $n = {}, er = { class: "pt-xl gap-md flex w-full justify-end" };
2164
- function tr(e, t) {
2165
- return M(), w("div", er, [P(e.$slots, "default")]);
2163
+ var Xn = /* @__PURE__ */ y(Kn, [["render", Yn]]), Zn = {}, Qn = { class: "pt-xl gap-md flex w-full justify-end" };
2164
+ function $n(e, t) {
2165
+ return j(), w("div", Qn, [N(e.$slots, "default")]);
2166
2166
  }
2167
- var nr = /* @__PURE__ */ y($n, [["render", tr]]), rr = /* @__PURE__ */ O({
2167
+ var er = /* @__PURE__ */ y(Zn, [["render", $n]]), tr = /* @__PURE__ */ O({
2168
2168
  __name: "AppSidebarFormSubmitButton",
2169
2169
  props: {
2170
2170
  isLoading: { type: Boolean },
@@ -2177,22 +2177,22 @@ var nr = /* @__PURE__ */ y($n, [["render", tr]]), rr = /* @__PURE__ */ O({
2177
2177
  function i() {
2178
2178
  r("submit");
2179
2179
  }
2180
- return (e, t) => (M(), S(I(z), {
2180
+ return (e, t) => (j(), S(F(z), {
2181
2181
  "is-loading": n.isLoading,
2182
2182
  type: "submit",
2183
2183
  size: "lg",
2184
2184
  "icon-left": "check",
2185
2185
  onClick: i
2186
2186
  }, {
2187
- default: L(() => [E(F(n.label), 1)]),
2187
+ default: L(() => [E(P(n.label), 1)]),
2188
2188
  _: 1
2189
2189
  }, 8, ["is-loading"]));
2190
2190
  }
2191
2191
  });
2192
2192
  //#endregion
2193
2193
  //#region src/composables/route-query-state/routeQueryState.composable.ts
2194
- function ir(e) {
2195
- let t = tt(), n = nt();
2194
+ function nr(e) {
2195
+ let t = $e(), n = et();
2196
2196
  function r(t) {
2197
2197
  if (t === null) return e.initialState;
2198
2198
  try {
@@ -2201,10 +2201,10 @@ function ir(e) {
2201
2201
  return e.initialState;
2202
2202
  }
2203
2203
  }
2204
- let i = N(e.initialState);
2205
- return we(() => t?.query?.[e.key] ?? null, (e) => {
2204
+ let i = M(e.initialState);
2205
+ return I(() => t?.query?.[e.key] ?? null, (e) => {
2206
2206
  i.value = r(e ?? null);
2207
- }, { immediate: !0 }), we(i, (r) => {
2207
+ }, { immediate: !0 }), I(i, (r) => {
2208
2208
  if (!t?.query) return;
2209
2209
  let i = {
2210
2210
  ...t.query,
@@ -2215,23 +2215,23 @@ function ir(e) {
2215
2215
  }
2216
2216
  //#endregion
2217
2217
  //#region src/composables/search/search.composable.ts
2218
- var ar = 50, or = "search";
2219
- function sr(e) {
2220
- let t = e?.persistInUrl === !1 ? !1 : e?.persistInUrl ?? or, n = t === !0 || typeof t == "string" ? ir({
2218
+ var rr = 50, ir = "search";
2219
+ function ar(e) {
2220
+ let t = e?.persistInUrl === !1 ? !1 : e?.persistInUrl ?? ir, n = t === !0 || typeof t == "string" ? nr({
2221
2221
  initialState: "",
2222
- key: typeof t == "string" ? t : or,
2222
+ key: typeof t == "string" ? t : ir,
2223
2223
  serializer: {
2224
2224
  parse: (e) => e ?? "",
2225
2225
  serialize: (e) => e
2226
2226
  }
2227
- }) : N(""), r = N(n.value), i = N(!1), a = null;
2227
+ }) : M(""), r = M(n.value), i = M(!1), a = null;
2228
2228
  function o() {
2229
2229
  n.value = "", r.value = "", i.value = !1, a && clearTimeout(a);
2230
2230
  }
2231
- we(n, (t) => {
2231
+ I(n, (t) => {
2232
2232
  a && clearTimeout(a), i.value = !0, a = setTimeout(() => {
2233
2233
  r.value = t, i.value = !1;
2234
- }, e?.debounceMs ?? ar);
2234
+ }, e?.debounceMs ?? rr);
2235
2235
  }, { immediate: !0 });
2236
2236
  function s(e) {
2237
2237
  n.value = e;
@@ -2246,18 +2246,18 @@ function sr(e) {
2246
2246
  }
2247
2247
  //#endregion
2248
2248
  //#region src/utils/color.util.ts
2249
- function cr(e) {
2249
+ function or(e) {
2250
2250
  let t = e / 255;
2251
2251
  return t <= .03928 ? t / 12.92 : ((t + .055) / 1.055) ** 2.4;
2252
2252
  }
2253
- function lr(e) {
2253
+ function sr(e) {
2254
2254
  let t = e.replace("#", ""), n = Number.parseInt(t.substring(0, 2), 16), r = Number.parseInt(t.substring(2, 4), 16), i = Number.parseInt(t.substring(4, 6), 16);
2255
- return .2126 * cr(n) + .7152 * cr(r) + .0722 * cr(i) > .179 ? "var(--text-primary)" : "var(--text-primary-on-brand)";
2255
+ return .2126 * or(n) + .7152 * or(r) + .0722 * or(i) > .179 ? "var(--text-primary)" : "var(--text-primary-on-brand)";
2256
2256
  }
2257
2257
  //#endregion
2258
2258
  //#region src/utils/entityType.util.ts
2259
2259
  var W = {
2260
- [v.BLUE]: {
2260
+ [_.BLUE]: {
2261
2261
  25: "#F5F8FF",
2262
2262
  50: "#EFF4FF",
2263
2263
  100: "#D1E0FF",
@@ -2271,7 +2271,7 @@ var W = {
2271
2271
  900: "#00359E",
2272
2272
  950: "#002266"
2273
2273
  },
2274
- [v.BLUE_DARK]: {
2274
+ [_.BLUE_DARK]: {
2275
2275
  25: "#F5F8FF",
2276
2276
  50: "#EFF4FF",
2277
2277
  100: "#D1E9FF",
@@ -2285,7 +2285,7 @@ var W = {
2285
2285
  900: "#00359E",
2286
2286
  950: "#002266"
2287
2287
  },
2288
- [v.BLUE_LIGHT]: {
2288
+ [_.BLUE_LIGHT]: {
2289
2289
  25: "#F5FBFF",
2290
2290
  50: "#F0F9FF",
2291
2291
  100: "#E0F2FE",
@@ -2299,7 +2299,7 @@ var W = {
2299
2299
  900: "#0C4A6E",
2300
2300
  950: "#082F49"
2301
2301
  },
2302
- [v.CYAN]: {
2302
+ [_.CYAN]: {
2303
2303
  25: "#F5FEFF",
2304
2304
  50: "#ECFDFF",
2305
2305
  100: "#CFF9FE",
@@ -2313,7 +2313,7 @@ var W = {
2313
2313
  900: "#164C63",
2314
2314
  950: "#0D203A"
2315
2315
  },
2316
- [v.ERROR]: {
2316
+ [_.ERROR]: {
2317
2317
  25: "#FFFBFA",
2318
2318
  50: "#FEF3F2",
2319
2319
  100: "#FEE4E2",
@@ -2327,7 +2327,7 @@ var W = {
2327
2327
  900: "#7A271A",
2328
2328
  950: "#55160C"
2329
2329
  },
2330
- [v.FUCHSIA]: {
2330
+ [_.FUCHSIA]: {
2331
2331
  25: "#FEFAFF",
2332
2332
  50: "#FDF4FF",
2333
2333
  100: "#FBE8FF",
@@ -2341,7 +2341,7 @@ var W = {
2341
2341
  900: "#6F1877",
2342
2342
  950: "#47104F"
2343
2343
  },
2344
- [v.GREEN]: {
2344
+ [_.GREEN]: {
2345
2345
  25: "#F3FFF9",
2346
2346
  50: "#E3FFCF2",
2347
2347
  100: "#C9F3DF",
@@ -2355,7 +2355,7 @@ var W = {
2355
2355
  900: "#084C2E",
2356
2356
  950: "#05231C"
2357
2357
  },
2358
- [v.GREEN_LIGHT]: {
2358
+ [_.GREEN_LIGHT]: {
2359
2359
  25: "#F3FFF5",
2360
2360
  50: "#E3FFE7",
2361
2361
  100: "#C4FFCC",
@@ -2369,7 +2369,7 @@ var W = {
2369
2369
  900: "#2E5314",
2370
2370
  950: "#1F320A"
2371
2371
  },
2372
- [v.INDIGO]: {
2372
+ [_.INDIGO]: {
2373
2373
  25: "#F5F8FF",
2374
2374
  50: "#EEF4FF",
2375
2375
  100: "#E0EAFF",
@@ -2383,7 +2383,7 @@ var W = {
2383
2383
  900: "#2D3282",
2384
2384
  950: "#1F235B"
2385
2385
  },
2386
- [v.MOSS]: {
2386
+ [_.MOSS]: {
2387
2387
  25: "#FAFDF7",
2388
2388
  50: "#F5FBEE",
2389
2389
  100: "#EBF4D7",
@@ -2397,7 +2397,7 @@ var W = {
2397
2397
  900: "#2B4212",
2398
2398
  950: "#1A2808"
2399
2399
  },
2400
- [v.ORANGE]: {
2400
+ [_.ORANGE]: {
2401
2401
  25: "#FEFAF5",
2402
2402
  50: "#FEF6EE",
2403
2403
  100: "#FDEADD",
@@ -2411,7 +2411,7 @@ var W = {
2411
2411
  900: "#772917",
2412
2412
  950: "#511C10"
2413
2413
  },
2414
- [v.ORANGE_DARK]: {
2414
+ [_.ORANGE_DARK]: {
2415
2415
  25: "#FFF9F5",
2416
2416
  50: "#FFF4ED",
2417
2417
  100: "#FFEED5",
@@ -2425,7 +2425,7 @@ var W = {
2425
2425
  900: "#771A0D",
2426
2426
  950: "#57130A"
2427
2427
  },
2428
- [v.PINK]: {
2428
+ [_.PINK]: {
2429
2429
  25: "#FEF6F6",
2430
2430
  50: "#FDF2FA",
2431
2431
  100: "#FCE7F6",
@@ -2439,7 +2439,7 @@ var W = {
2439
2439
  900: "#781A5C",
2440
2440
  950: "#4E0D3A"
2441
2441
  },
2442
- [v.PURPLE]: {
2442
+ [_.PURPLE]: {
2443
2443
  25: "#FAFAFF",
2444
2444
  50: "#F4F3FF",
2445
2445
  100: "#EBE9FE",
@@ -2453,7 +2453,7 @@ var W = {
2453
2453
  900: "#3E1C96",
2454
2454
  950: "#27115F"
2455
2455
  },
2456
- [v.ROSE]: {
2456
+ [_.ROSE]: {
2457
2457
  25: "#FFF5F6",
2458
2458
  50: "#FFF1F3",
2459
2459
  100: "#FFE4E8",
@@ -2467,7 +2467,7 @@ var W = {
2467
2467
  900: "#881337",
2468
2468
  950: "#4C0519"
2469
2469
  },
2470
- [v.SUCCESS]: {
2470
+ [_.SUCCESS]: {
2471
2471
  25: "#F6FEF9",
2472
2472
  50: "#ECFDF3",
2473
2473
  100: "#DCFAE6",
@@ -2481,7 +2481,7 @@ var W = {
2481
2481
  900: "#074D31",
2482
2482
  950: "#053321"
2483
2483
  },
2484
- [v.TEAL]: {
2484
+ [_.TEAL]: {
2485
2485
  25: "#F6FEFC",
2486
2486
  50: "#F0FDF9",
2487
2487
  100: "#CCFBEF",
@@ -2495,7 +2495,7 @@ var W = {
2495
2495
  900: "#134E4A",
2496
2496
  950: "#0A2926"
2497
2497
  },
2498
- [v.VIOLET]: {
2498
+ [_.VIOLET]: {
2499
2499
  25: "#FBFAFF",
2500
2500
  50: "#F5F3FF",
2501
2501
  100: "#ECE9FE",
@@ -2509,7 +2509,7 @@ var W = {
2509
2509
  900: "#491C96",
2510
2510
  950: "#2E125E"
2511
2511
  },
2512
- [v.WARNING]: {
2512
+ [_.WARNING]: {
2513
2513
  25: "#F5F8FF",
2514
2514
  50: "#EFF4FF",
2515
2515
  100: "#D1E0FF",
@@ -2523,7 +2523,7 @@ var W = {
2523
2523
  900: "#00359E",
2524
2524
  950: "#002266"
2525
2525
  },
2526
- [v.YELLOW]: {
2526
+ [_.YELLOW]: {
2527
2527
  25: "#FDF9F0",
2528
2528
  50: "#FDF6E7",
2529
2529
  100: "#FCECCF",
@@ -2537,15 +2537,15 @@ var W = {
2537
2537
  900: "#302003",
2538
2538
  950: "#181002"
2539
2539
  }
2540
- }, ur = class {
2540
+ }, cr = class {
2541
2541
  static getBrandColors(e) {
2542
2542
  let t = W[e];
2543
2543
  return t === void 0 ? "" : Object.entries(t).map(([e, t]) => `${e}: ${t};`).join("\n");
2544
2544
  }
2545
2545
  static getIcon(e) {
2546
- return e === g.BUSINESS ? "building" : (g.INDIVIDUAL, "user");
2546
+ return e === v.BUSINESS ? "building" : (v.INDIVIDUAL, "user");
2547
2547
  }
2548
- }, dr = /* @__PURE__ */ O({
2548
+ }, lr = /* @__PURE__ */ O({
2549
2549
  __name: "AppColorProvider",
2550
2550
  props: { color: {} },
2551
2551
  setup(e) {
@@ -2600,131 +2600,18 @@ var W = {
2600
2600
  `,
2601
2601
  `
2602
2602
  --brand-contrast:
2603
- ${lr(W[t.color][500] ?? "#000000")};
2603
+ ${sr(W[t.color][500] ?? "#000000")};
2604
2604
  `
2605
2605
  ].join("\n") : "");
2606
- return (e, t) => (M(), S(I(Xe), {
2607
- style: ge(n.value),
2606
+ return (e, t) => (j(), S(F(Je), {
2607
+ style: he(n.value),
2608
2608
  class: "h-full"
2609
2609
  }, {
2610
- default: L(() => [P(e.$slots, "default")]),
2610
+ default: L(() => [N(e.$slots, "default")]),
2611
2611
  _: 3
2612
2612
  }, 8, ["style"]));
2613
2613
  }
2614
- }), fr = class {
2615
- static fromDto(e) {
2616
- if (e.type === "multiselect") {
2617
- let t = e.validationRules;
2618
- return {
2619
- uuid: e.uuid,
2620
- isDisplayedOnCreate: e.isDisplayedOnCreate,
2621
- displayName: e.displayName,
2622
- key: e.key,
2623
- maxSelections: t.maxSelections,
2624
- minSelections: t.minSelections,
2625
- options: t.options.map((e) => ({
2626
- key: e.key,
2627
- value: e.value
2628
- })),
2629
- order: e.order,
2630
- type: "multiselect",
2631
- width: e.width
2632
- };
2633
- }
2634
- if (e.type === "checkbox") {
2635
- let t = e.validationRules;
2636
- return {
2637
- uuid: e.uuid,
2638
- isDisplayedOnCreate: e.isDisplayedOnCreate,
2639
- defaultValue: t.defaultValue,
2640
- displayName: e.displayName,
2641
- key: e.key,
2642
- order: e.order,
2643
- type: "checkbox",
2644
- width: e.width
2645
- };
2646
- }
2647
- if (e.type === "number") {
2648
- let t = e.validationRules;
2649
- return {
2650
- uuid: e.uuid,
2651
- isDisplayedOnCreate: e.isDisplayedOnCreate,
2652
- displayName: e.displayName,
2653
- key: e.key,
2654
- maxValue: t.max,
2655
- minValue: t.min,
2656
- order: e.order,
2657
- type: "number",
2658
- width: e.width
2659
- };
2660
- }
2661
- if (e.type === "select") {
2662
- let t = e.validationRules;
2663
- return {
2664
- uuid: e.uuid,
2665
- isDisplayedOnCreate: e.isDisplayedOnCreate,
2666
- displayName: e.displayName,
2667
- key: e.key,
2668
- options: t.options.map((e) => ({
2669
- key: e.key,
2670
- value: e.value
2671
- })),
2672
- order: e.order,
2673
- type: "select",
2674
- width: e.width
2675
- };
2676
- }
2677
- if (e.type === "radio") {
2678
- let t = e.validationRules;
2679
- return {
2680
- uuid: e.uuid,
2681
- isDisplayedOnCreate: e.isDisplayedOnCreate,
2682
- displayName: e.displayName,
2683
- key: e.key,
2684
- options: t.options.map((e) => ({
2685
- key: e.key,
2686
- value: e.value
2687
- })),
2688
- order: e.order,
2689
- type: "radio",
2690
- width: e.width
2691
- };
2692
- }
2693
- if (e.type === "date") {
2694
- let t = e.validationRules;
2695
- return {
2696
- uuid: e.uuid,
2697
- maxDate: t.maxDate ? n.fromDto(t.maxDate) : void 0,
2698
- minDate: t.minDate ? n.fromDto(t.minDate) : void 0,
2699
- isDisplayedOnCreate: e.isDisplayedOnCreate,
2700
- displayName: e.displayName,
2701
- key: e.key,
2702
- order: e.order,
2703
- type: "date",
2704
- width: e.width
2705
- };
2706
- }
2707
- let t = e.validationRules;
2708
- return {
2709
- uuid: e.uuid,
2710
- isDisplayedOnCreate: e.isDisplayedOnCreate,
2711
- displayName: e.displayName,
2712
- key: e.key,
2713
- maxLength: t.maxLength,
2714
- minLength: t.minLength,
2715
- order: e.order,
2716
- type: "string",
2717
- width: e.width
2718
- };
2719
- }
2720
- }, pr = class {
2721
- static async get(e) {
2722
- return (await p({ query: { filter: {
2723
- entityType: e,
2724
- onlyWithIsDisplayedOnCreate: !1
2725
- } } })).data.sort((e) => e.order).map(fr.fromDto);
2726
- }
2727
- }, mr = class {
2614
+ }), ur = class {
2728
2615
  static fromDto(e) {
2729
2616
  return {
2730
2617
  brand25: e.brand25,
@@ -2741,12 +2628,12 @@ var W = {
2741
2628
  brand950: e.brand950
2742
2629
  };
2743
2630
  }
2744
- }, hr = class {
2631
+ }, dr = class {
2745
2632
  static fromDto(e) {
2746
2633
  return {
2747
2634
  name: e.name,
2748
2635
  billingConfig: e.billingConfig,
2749
- brandColors: mr.fromDto(e.brandColors),
2636
+ brandColors: ur.fromDto(e.brandColors),
2750
2637
  businessConfig: e.businessConfig,
2751
2638
  dealConfig: e.dealConfig,
2752
2639
  entities: e.entities.map((e) => ({
@@ -2757,28 +2644,28 @@ var W = {
2757
2644
  logoUrl: e.logoUrl
2758
2645
  };
2759
2646
  }
2760
- }, gr = class {
2647
+ }, fr = class {
2761
2648
  static async getConfig() {
2762
- let e = await ie();
2763
- return hr.fromDto(e.data);
2649
+ let e = await se();
2650
+ return dr.fromDto(e.data);
2764
2651
  }
2765
- }, _r = N(null);
2766
- function vr() {
2652
+ }, pr = M(null);
2653
+ function mr() {
2767
2654
  function e(e) {
2768
- _r.value = e;
2655
+ pr.value = e;
2769
2656
  }
2770
2657
  function t() {
2771
- return _r.value;
2658
+ return pr.value;
2772
2659
  }
2773
2660
  return {
2774
2661
  getGoogleMapsApiKey: t,
2775
- googleMapsApiKey: ye(_r),
2662
+ googleMapsApiKey: ve(pr),
2776
2663
  setGoogleMapsApiKey: e
2777
2664
  };
2778
2665
  }
2779
2666
  //#endregion
2780
2667
  //#region src/kbo-client/core/bodySerializer.gen.ts
2781
- var yr = { bodySerializer: (e) => JSON.stringify(e, (e, t) => typeof t == "bigint" ? t.toString() : t) };
2668
+ var hr = { bodySerializer: (e) => JSON.stringify(e, (e, t) => typeof t == "bigint" ? t.toString() : t) };
2782
2669
  Object.entries({
2783
2670
  $body_: "body",
2784
2671
  $headers_: "headers",
@@ -2787,7 +2674,7 @@ Object.entries({
2787
2674
  });
2788
2675
  //#endregion
2789
2676
  //#region src/kbo-client/core/serverSentEvents.gen.ts
2790
- var br = ({ onRequest: e, onSseError: t, onSseEvent: n, responseTransformer: r, responseValidator: i, sseDefaultRetryDelay: a, sseMaxRetryAttempts: o, sseMaxRetryDelay: s, sseSleepFn: c, url: l, ...u }) => {
2677
+ var gr = ({ onRequest: e, onSseError: t, onSseEvent: n, responseTransformer: r, responseValidator: i, sseDefaultRetryDelay: a, sseMaxRetryAttempts: o, sseMaxRetryDelay: s, sseSleepFn: c, url: l, ...u }) => {
2791
2678
  let d, f = c ?? ((e) => new Promise((t) => setTimeout(t, e)));
2792
2679
  return { stream: async function* () {
2793
2680
  let c = a ?? 3e3, p = 0, m = u.signal ?? new AbortController().signal;
@@ -2856,30 +2743,30 @@ var br = ({ onRequest: e, onSseError: t, onSseEvent: n, responseTransformer: r,
2856
2743
  }
2857
2744
  }
2858
2745
  }() };
2859
- }, xr = (e) => {
2746
+ }, _r = (e) => {
2860
2747
  switch (e) {
2861
2748
  case "label": return ".";
2862
2749
  case "matrix": return ";";
2863
2750
  case "simple": return ",";
2864
2751
  default: return "&";
2865
2752
  }
2866
- }, Sr = (e) => {
2753
+ }, vr = (e) => {
2867
2754
  switch (e) {
2868
2755
  case "form": return ",";
2869
2756
  case "pipeDelimited": return "|";
2870
2757
  case "spaceDelimited": return "%20";
2871
2758
  default: return ",";
2872
2759
  }
2873
- }, Cr = (e) => {
2760
+ }, yr = (e) => {
2874
2761
  switch (e) {
2875
2762
  case "label": return ".";
2876
2763
  case "matrix": return ";";
2877
2764
  case "simple": return ",";
2878
2765
  default: return "&";
2879
2766
  }
2880
- }, wr = ({ allowReserved: e, explode: t, name: n, style: r, value: i }) => {
2767
+ }, br = ({ allowReserved: e, explode: t, name: n, style: r, value: i }) => {
2881
2768
  if (!t) {
2882
- let t = (e ? i : i.map((e) => encodeURIComponent(e))).join(Sr(r));
2769
+ let t = (e ? i : i.map((e) => encodeURIComponent(e))).join(vr(r));
2883
2770
  switch (r) {
2884
2771
  case "label": return `.${t}`;
2885
2772
  case "matrix": return `;${n}=${t}`;
@@ -2887,17 +2774,17 @@ var br = ({ onRequest: e, onSseError: t, onSseEvent: n, responseTransformer: r,
2887
2774
  default: return `${n}=${t}`;
2888
2775
  }
2889
2776
  }
2890
- let a = xr(r), o = i.map((t) => r === "label" || r === "simple" ? e ? t : encodeURIComponent(t) : Tr({
2777
+ let a = _r(r), o = i.map((t) => r === "label" || r === "simple" ? e ? t : encodeURIComponent(t) : xr({
2891
2778
  allowReserved: e,
2892
2779
  name: n,
2893
2780
  value: t
2894
2781
  })).join(a);
2895
2782
  return r === "label" || r === "matrix" ? a + o : o;
2896
- }, Tr = ({ allowReserved: e, name: t, value: n }) => {
2783
+ }, xr = ({ allowReserved: e, name: t, value: n }) => {
2897
2784
  if (n == null) return "";
2898
2785
  if (typeof n == "object") throw Error("Deeply-nested arrays/objects aren’t supported. Provide your own `querySerializer()` to handle these.");
2899
2786
  return `${t}=${e ? n : encodeURIComponent(n)}`;
2900
- }, Er = ({ allowReserved: e, explode: t, name: n, style: r, value: i, valueOnly: a }) => {
2787
+ }, Sr = ({ allowReserved: e, explode: t, name: n, style: r, value: i, valueOnly: a }) => {
2901
2788
  if (i instanceof Date) return a ? i.toISOString() : `${n}=${i.toISOString()}`;
2902
2789
  if (r !== "deepObject" && !t) {
2903
2790
  let t = [];
@@ -2916,21 +2803,21 @@ var br = ({ onRequest: e, onSseError: t, onSseEvent: n, responseTransformer: r,
2916
2803
  default: return a;
2917
2804
  }
2918
2805
  }
2919
- let o = Cr(r), s = Object.entries(i).map(([t, i]) => Tr({
2806
+ let o = yr(r), s = Object.entries(i).map(([t, i]) => xr({
2920
2807
  allowReserved: e,
2921
2808
  name: r === "deepObject" ? `${n}[${t}]` : t,
2922
2809
  value: i
2923
2810
  })).join(o);
2924
2811
  return r === "label" || r === "matrix" ? o + s : s;
2925
- }, Dr = /\{[^{}]+\}/g, Or = ({ path: e, url: t }) => {
2926
- let n = t, r = t.match(Dr);
2812
+ }, Cr = /\{[^{}]+\}/g, wr = ({ path: e, url: t }) => {
2813
+ let n = t, r = t.match(Cr);
2927
2814
  if (r) for (let t of r) {
2928
2815
  let r = !1, i = t.substring(1, t.length - 1), a = "simple";
2929
2816
  i.endsWith("*") && (r = !0, i = i.substring(0, i.length - 1)), i.startsWith(".") ? (i = i.substring(1), a = "label") : i.startsWith(";") && (i = i.substring(1), a = "matrix");
2930
2817
  let o = e[i];
2931
2818
  if (o == null) continue;
2932
2819
  if (Array.isArray(o)) {
2933
- n = n.replace(t, wr({
2820
+ n = n.replace(t, br({
2934
2821
  explode: r,
2935
2822
  name: i,
2936
2823
  style: a,
@@ -2939,7 +2826,7 @@ var br = ({ onRequest: e, onSseError: t, onSseEvent: n, responseTransformer: r,
2939
2826
  continue;
2940
2827
  }
2941
2828
  if (typeof o == "object") {
2942
- n = n.replace(t, Er({
2829
+ n = n.replace(t, Sr({
2943
2830
  explode: r,
2944
2831
  name: i,
2945
2832
  style: a,
@@ -2949,7 +2836,7 @@ var br = ({ onRequest: e, onSseError: t, onSseEvent: n, responseTransformer: r,
2949
2836
  continue;
2950
2837
  }
2951
2838
  if (a === "matrix") {
2952
- n = n.replace(t, `;${Tr({
2839
+ n = n.replace(t, `;${xr({
2953
2840
  name: i,
2954
2841
  value: o
2955
2842
  })}`);
@@ -2959,33 +2846,33 @@ var br = ({ onRequest: e, onSseError: t, onSseEvent: n, responseTransformer: r,
2959
2846
  n = n.replace(t, s);
2960
2847
  }
2961
2848
  return n;
2962
- }, kr = ({ baseUrl: e, path: t, query: n, querySerializer: r, url: i }) => {
2849
+ }, Tr = ({ baseUrl: e, path: t, query: n, querySerializer: r, url: i }) => {
2963
2850
  let a = i.startsWith("/") ? i : `/${i}`, o = (e ?? "") + a;
2964
- t && (o = Or({
2851
+ t && (o = wr({
2965
2852
  path: t,
2966
2853
  url: o
2967
2854
  }));
2968
2855
  let s = n ? r(n) : "";
2969
2856
  return s.startsWith("?") && (s = s.substring(1)), s && (o += `?${s}`), o;
2970
2857
  };
2971
- function Ar(e) {
2858
+ function Er(e) {
2972
2859
  let t = e.body !== void 0;
2973
2860
  if (t && e.bodySerializer) return "serializedBody" in e ? e.serializedBody !== void 0 && e.serializedBody !== "" ? e.serializedBody : null : e.body === "" ? null : e.body;
2974
2861
  if (t) return e.body;
2975
2862
  }
2976
2863
  //#endregion
2977
2864
  //#region src/kbo-client/core/auth.gen.ts
2978
- var jr = async (e, t) => {
2865
+ var Dr = async (e, t) => {
2979
2866
  let n = typeof t == "function" ? await t(e) : t;
2980
2867
  if (n) return e.scheme === "bearer" ? `Bearer ${n}` : e.scheme === "basic" ? `Basic ${btoa(n)}` : n;
2981
- }, Mr = ({ parameters: e = {}, ...t } = {}) => (n) => {
2868
+ }, Or = ({ parameters: e = {}, ...t } = {}) => (n) => {
2982
2869
  let r = [];
2983
2870
  if (n && typeof n == "object") for (let i in n) {
2984
2871
  let a = n[i];
2985
2872
  if (a == null) continue;
2986
2873
  let o = e[i] || t;
2987
2874
  if (Array.isArray(a)) {
2988
- let e = wr({
2875
+ let e = br({
2989
2876
  allowReserved: o.allowReserved,
2990
2877
  explode: !0,
2991
2878
  name: i,
@@ -2995,7 +2882,7 @@ var jr = async (e, t) => {
2995
2882
  });
2996
2883
  e && r.push(e);
2997
2884
  } else if (typeof a == "object") {
2998
- let e = Er({
2885
+ let e = Sr({
2999
2886
  allowReserved: o.allowReserved,
3000
2887
  explode: !0,
3001
2888
  name: i,
@@ -3005,7 +2892,7 @@ var jr = async (e, t) => {
3005
2892
  });
3006
2893
  e && r.push(e);
3007
2894
  } else {
3008
- let e = Tr({
2895
+ let e = xr({
3009
2896
  allowReserved: o.allowReserved,
3010
2897
  name: i,
3011
2898
  value: a
@@ -3014,7 +2901,7 @@ var jr = async (e, t) => {
3014
2901
  }
3015
2902
  }
3016
2903
  return r.join("&");
3017
- }, Nr = (e) => {
2904
+ }, kr = (e) => {
3018
2905
  if (!e) return "stream";
3019
2906
  let t = e.split(";")[0]?.trim();
3020
2907
  if (t) {
@@ -3028,10 +2915,10 @@ var jr = async (e, t) => {
3028
2915
  ].some((e) => t.startsWith(e))) return "blob";
3029
2916
  if (t.startsWith("text/")) return "text";
3030
2917
  }
3031
- }, Pr = (e, t) => t ? !!(e.headers.has(t) || e.query?.[t] || e.headers.get("Cookie")?.includes(`${t}=`)) : !1, Fr = async ({ security: e, ...t }) => {
2918
+ }, Ar = (e, t) => t ? !!(e.headers.has(t) || e.query?.[t] || e.headers.get("Cookie")?.includes(`${t}=`)) : !1, jr = async ({ security: e, ...t }) => {
3032
2919
  for (let n of e) {
3033
- if (Pr(t, n.name)) continue;
3034
- let e = await jr(n, t.auth);
2920
+ if (Ar(t, n.name)) continue;
2921
+ let e = await Dr(n, t.auth);
3035
2922
  if (!e) continue;
3036
2923
  let r = n.name ?? "Authorization";
3037
2924
  switch (n.in) {
@@ -3046,34 +2933,34 @@ var jr = async (e, t) => {
3046
2933
  break;
3047
2934
  }
3048
2935
  }
3049
- }, Ir = (e) => kr({
2936
+ }, Mr = (e) => Tr({
3050
2937
  baseUrl: e.baseUrl,
3051
2938
  path: e.path,
3052
2939
  query: e.query,
3053
- querySerializer: typeof e.querySerializer == "function" ? e.querySerializer : Mr(e.querySerializer),
2940
+ querySerializer: typeof e.querySerializer == "function" ? e.querySerializer : Or(e.querySerializer),
3054
2941
  url: e.url
3055
- }), Lr = (e, t) => {
2942
+ }), Nr = (e, t) => {
3056
2943
  let n = {
3057
2944
  ...e,
3058
2945
  ...t
3059
2946
  };
3060
- return n.baseUrl?.endsWith("/") && (n.baseUrl = n.baseUrl.substring(0, n.baseUrl.length - 1)), n.headers = zr(e.headers, t.headers), n;
3061
- }, Rr = (e) => {
2947
+ return n.baseUrl?.endsWith("/") && (n.baseUrl = n.baseUrl.substring(0, n.baseUrl.length - 1)), n.headers = Fr(e.headers, t.headers), n;
2948
+ }, Pr = (e) => {
3062
2949
  let t = [];
3063
2950
  return e.forEach((e, n) => {
3064
2951
  t.push([n, e]);
3065
2952
  }), t;
3066
- }, zr = (...e) => {
2953
+ }, Fr = (...e) => {
3067
2954
  let t = new Headers();
3068
2955
  for (let n of e) {
3069
2956
  if (!n) continue;
3070
- let e = n instanceof Headers ? Rr(n) : Object.entries(n);
2957
+ let e = n instanceof Headers ? Pr(n) : Object.entries(n);
3071
2958
  for (let [n, r] of e) if (r === null) t.delete(n);
3072
2959
  else if (Array.isArray(r)) for (let e of r) t.append(n, e);
3073
2960
  else r !== void 0 && t.set(n, typeof r == "object" ? JSON.stringify(r) : r);
3074
2961
  }
3075
2962
  return t;
3076
- }, Br = class {
2963
+ }, Ir = class {
3077
2964
  fns = [];
3078
2965
  clear() {
3079
2966
  this.fns = [];
@@ -3096,11 +2983,11 @@ var jr = async (e, t) => {
3096
2983
  use(e) {
3097
2984
  return this.fns.push(e), this.fns.length - 1;
3098
2985
  }
3099
- }, Vr = () => ({
3100
- error: new Br(),
3101
- request: new Br(),
3102
- response: new Br()
3103
- }), Hr = Mr({
2986
+ }, Lr = () => ({
2987
+ error: new Ir(),
2988
+ request: new Ir(),
2989
+ response: new Ir()
2990
+ }), Rr = Or({
3104
2991
  allowReserved: !1,
3105
2992
  array: {
3106
2993
  explode: !0,
@@ -3110,33 +2997,33 @@ var jr = async (e, t) => {
3110
2997
  explode: !0,
3111
2998
  style: "deepObject"
3112
2999
  }
3113
- }), Ur = { "Content-Type": "application/json" }, Wr = (e = {}) => ({
3114
- ...yr,
3115
- headers: Ur,
3000
+ }), zr = { "Content-Type": "application/json" }, Br = (e = {}) => ({
3001
+ ...hr,
3002
+ headers: zr,
3116
3003
  parseAs: "auto",
3117
- querySerializer: Hr,
3004
+ querySerializer: Rr,
3118
3005
  ...e
3119
- }), Gr = ((e = {}) => {
3120
- let t = Lr(Wr(), e), n = () => ({ ...t }), r = (e) => (t = Lr(t, e), n()), i = Vr(), a = async (e) => {
3006
+ }), Vr = ((e = {}) => {
3007
+ let t = Nr(Br(), e), n = () => ({ ...t }), r = (e) => (t = Nr(t, e), n()), i = Lr(), a = async (e) => {
3121
3008
  let n = {
3122
3009
  ...t,
3123
3010
  ...e,
3124
3011
  fetch: e.fetch ?? t.fetch ?? globalThis.fetch,
3125
- headers: zr(t.headers, e.headers),
3012
+ headers: Fr(t.headers, e.headers),
3126
3013
  serializedBody: void 0
3127
3014
  };
3128
- return n.security && await Fr({
3015
+ return n.security && await jr({
3129
3016
  ...n,
3130
3017
  security: n.security
3131
3018
  }), n.requestValidator && await n.requestValidator(n), n.body !== void 0 && n.bodySerializer && (n.serializedBody = n.bodySerializer(n.body)), (n.body === void 0 || n.serializedBody === "") && n.headers.delete("Content-Type"), {
3132
3019
  opts: n,
3133
- url: Ir(n)
3020
+ url: Mr(n)
3134
3021
  };
3135
3022
  }, o = async (e) => {
3136
3023
  let { opts: t, url: n } = await a(e), r = {
3137
3024
  redirect: "follow",
3138
3025
  ...t,
3139
- body: Ar(t)
3026
+ body: Er(t)
3140
3027
  }, o = new Request(n, r);
3141
3028
  for (let e of i.request.fns) e && (o = await e(o, t));
3142
3029
  let s = t.fetch, c;
@@ -3158,7 +3045,7 @@ var jr = async (e, t) => {
3158
3045
  response: c
3159
3046
  };
3160
3047
  if (c.ok) {
3161
- let e = (t.parseAs === "auto" ? Nr(c.headers.get("Content-Type")) : t.parseAs) ?? "json";
3048
+ let e = (t.parseAs === "auto" ? kr(c.headers.get("Content-Type")) : t.parseAs) ?? "json";
3162
3049
  if (c.status === 204 || c.headers.get("Content-Length") === "0") {
3163
3050
  let n;
3164
3051
  switch (e) {
@@ -3221,7 +3108,7 @@ var jr = async (e, t) => {
3221
3108
  method: e
3222
3109
  }), c = (e) => async (t) => {
3223
3110
  let { opts: n, url: r } = await a(t);
3224
- return br({
3111
+ return gr({
3225
3112
  ...n,
3226
3113
  body: n.body,
3227
3114
  headers: n.headers,
@@ -3231,12 +3118,12 @@ var jr = async (e, t) => {
3231
3118
  for (let e of i.request.fns) e && (r = await e(r, n));
3232
3119
  return r;
3233
3120
  },
3234
- serializedBody: Ar(n),
3121
+ serializedBody: Er(n),
3235
3122
  url: r
3236
3123
  });
3237
3124
  };
3238
3125
  return {
3239
- buildUrl: Ir,
3126
+ buildUrl: Mr,
3240
3127
  connect: s("CONNECT"),
3241
3128
  delete: s("DELETE"),
3242
3129
  get: s("GET"),
@@ -3262,7 +3149,7 @@ var jr = async (e, t) => {
3262
3149
  },
3263
3150
  trace: s("TRACE")
3264
3151
  };
3265
- })(Wr({ throwOnError: !0 })), Kr = class e {
3152
+ })(Br({ throwOnError: !0 })), Hr = class e {
3266
3153
  static deepClone(e) {
3267
3154
  return JSON.parse(JSON.stringify(e));
3268
3155
  }
@@ -3272,39 +3159,39 @@ var jr = async (e, t) => {
3272
3159
  return typeof i == "object" && i && !Array.isArray(i) ? e.serialize(i, a) : Array.isArray(i) ? i.map((t, n) => typeof t == "object" ? e.serialize(t, `${a}[${n}]`) : `${encodeURIComponent(`${a}[${n}]`)}=${encodeURIComponent(t)}`).join("&") : i == null ? "" : `${encodeURIComponent(a)}=${encodeURIComponent(i)}`;
3273
3160
  }).filter((e) => e !== "").join("&");
3274
3161
  }
3275
- }, qr = !1;
3276
- function Jr(e, t, n) {
3277
- if (_.setConfig({
3162
+ }, Ur = !1;
3163
+ function Wr(e, t, n) {
3164
+ if (g.setConfig({
3278
3165
  baseUrl: t,
3279
3166
  headers: { "Accept-Language": typeof navigator < "u" ? navigator.language : "en-US" },
3280
- querySerializer: Kr.serialize
3281
- }), Gr.setConfig({
3167
+ querySerializer: Hr.serialize
3168
+ }), Vr.setConfig({
3282
3169
  baseUrl: n,
3283
3170
  headers: { "Accept-Language": typeof navigator < "u" ? navigator.language : "en-US" },
3284
- querySerializer: Kr.serialize
3285
- }), qr) return;
3286
- qr = !0;
3171
+ querySerializer: Hr.serialize
3172
+ }), Ur) return;
3173
+ Ur = !0;
3287
3174
  async function r(t) {
3288
3175
  let n = await e();
3289
3176
  return t.headers.set("Authorization", `Bearer ${n}`), t;
3290
3177
  }
3291
- _.interceptors.request.use(r), Gr.interceptors.request.use(r), _.interceptors.response.use((e) => (e?.status === 401 && console.error(e), e)), Gr.interceptors.response.use((e) => (e?.status === 401 && console.error(e), e));
3178
+ g.interceptors.request.use(r), Vr.interceptors.request.use(r), g.interceptors.response.use((e) => (e?.status === 401 && console.error(e), e)), Vr.interceptors.response.use((e) => (e?.status === 401 && console.error(e), e));
3292
3179
  }
3293
3180
  //#endregion
3294
3181
  //#region src/libs/kboBaseUrl.lib.ts
3295
- var Yr = "https://kbo-service.test.appwi.se", Xr = "https://kbo-service.production.appwi.se";
3296
- function Zr(e) {
3297
- return e === "development" ? Yr : Xr;
3182
+ var Gr = "https://kbo-service.test.appwi.se", Kr = "https://kbo-service.production.appwi.se";
3183
+ function qr(e) {
3184
+ return e === "development" ? Gr : Kr;
3298
3185
  }
3299
3186
  //#endregion
3300
3187
  //#region src/composables/crmConfig.composable.ts
3301
- var Qr = [], $r = [], ei = N(!1), ti = N({ deals: null }), G = N(null);
3302
- function ni() {
3303
- let e = vr();
3188
+ var Jr = [], Yr = [], Xr = M(!1), Zr = M({ deals: null }), G = M(null);
3189
+ function Qr() {
3190
+ let e = mr();
3304
3191
  async function t(t) {
3305
3192
  let n = R();
3306
- ti.value = t.options, Jr(t.getAccessToken, t.apiCrmBaseUrl, Zr(t.environment)), e.setGoogleMapsApiKey(t.googleMapsApiKey), _.setConfig({ headers: { "Accept-Language": t.locale } }), G.value === null && (G.value = await ai()), ri(G.value.entities), Qr = await oi(g.INDIVIDUAL), $r = await oi(g.BUSINESS), ei.value = !0, we(() => n.locale.value, async (e) => {
3307
- _.setConfig({ headers: { "Accept-Language": e } }), G.value = await ai();
3193
+ Zr.value = t.options, Wr(t.getAccessToken, t.apiCrmBaseUrl, qr(t.environment)), e.setGoogleMapsApiKey(t.googleMapsApiKey), g.setConfig({ headers: { "Accept-Language": t.locale } }), G.value === null && (G.value = await ti()), $r(G.value.entities), Jr = [], Yr = [], Xr.value = !0, I(() => n.locale.value, async (e) => {
3194
+ g.setConfig({ headers: { "Accept-Language": e } }), G.value = await ti();
3308
3195
  }, { deep: !0 });
3309
3196
  }
3310
3197
  function n() {
@@ -3312,17 +3199,17 @@ function ni() {
3312
3199
  return G.value;
3313
3200
  }
3314
3201
  function r() {
3315
- return ti.value;
3202
+ return Zr.value;
3316
3203
  }
3317
3204
  return {
3318
- isInitialized: ei,
3205
+ isInitialized: Xr,
3319
3206
  getConfig: n,
3320
- getCustomFieldDefinitionForEntity: ii,
3207
+ getCustomFieldDefinitionForEntity: ei,
3321
3208
  getOptions: r,
3322
3209
  init: t
3323
3210
  };
3324
3211
  }
3325
- function ri(e) {
3212
+ function $r(e) {
3326
3213
  if (typeof document > "u") return;
3327
3214
  let t = document.querySelector(":root");
3328
3215
  if (t !== null) for (let n of e) for (let e of Object.keys(W[n.color])) {
@@ -3330,19 +3217,16 @@ function ri(e) {
3330
3217
  t.style.setProperty(`--wise-crm-${n.type}-${e}`, r ?? null);
3331
3218
  }
3332
3219
  }
3333
- function ii(e) {
3334
- return e === g.INDIVIDUAL ? Qr : e === g.BUSINESS ? $r : [];
3220
+ function ei(e) {
3221
+ return e === v.INDIVIDUAL ? Jr : e === v.BUSINESS ? Yr : [];
3335
3222
  }
3336
- async function ai() {
3337
- return await gr.getConfig();
3338
- }
3339
- async function oi(e) {
3340
- return ii(e).length > 0 ? ii(e) : await pr.get(e);
3223
+ async function ti() {
3224
+ return await fr.getConfig();
3341
3225
  }
3342
3226
  //#endregion
3343
3227
  //#region src/utils/entityRoute.util.ts
3344
- function si(e, t) {
3345
- return e === g.INDIVIDUAL ? {
3228
+ function ni(e, t) {
3229
+ return e === v.INDIVIDUAL ? {
3346
3230
  name: "individual-detail",
3347
3231
  params: { individualUuid: t }
3348
3232
  } : {
@@ -3352,17 +3236,17 @@ function si(e, t) {
3352
3236
  }
3353
3237
  //#endregion
3354
3238
  //#region src/composables/entity-detail/entityDetail.composable.ts
3355
- function ci() {
3356
- let e = nt();
3239
+ function ri() {
3240
+ let e = et();
3357
3241
  function t(t, n) {
3358
- e.push(si(t, n));
3242
+ e.push(ni(t, n));
3359
3243
  }
3360
3244
  return { open: t };
3361
3245
  }
3362
3246
  //#endregion
3363
3247
  //#region src/composables/crm.composable.ts
3364
- function li() {
3365
- let e = nt(), t = ni(), n = ci(), r = ot("crm-return-route", null, { serializer: ui() });
3248
+ function ii() {
3249
+ let e = et(), t = Qr(), n = ri(), r = it("crm-return-route", null, { serializer: ai() });
3366
3250
  function i(e, t = []) {
3367
3251
  if (e.name === void 0) return;
3368
3252
  let n = e.name;
@@ -3384,10 +3268,10 @@ function li() {
3384
3268
  });
3385
3269
  }
3386
3270
  function o(e) {
3387
- n.open(g.INDIVIDUAL, e);
3271
+ n.open(v.INDIVIDUAL, e);
3388
3272
  }
3389
3273
  function s(e) {
3390
- n.open(g.BUSINESS, e);
3274
+ n.open(v.BUSINESS, e);
3391
3275
  }
3392
3276
  function c(e) {
3393
3277
  return t.getConfig().entities.find((t) => t.type === e) ?? null;
@@ -3400,7 +3284,7 @@ function li() {
3400
3284
  storeReturnRoute: i
3401
3285
  };
3402
3286
  }
3403
- function ui() {
3287
+ function ai() {
3404
3288
  return {
3405
3289
  read: (e) => {
3406
3290
  if (e === "null" || e === "") return null;
@@ -3415,12 +3299,12 @@ function ui() {
3415
3299
  }
3416
3300
  //#endregion
3417
3301
  //#region src/components/app/height-transition/AppHeightTransition.vue
3418
- var di = /* @__PURE__ */ O({
3302
+ var oi = /* @__PURE__ */ O({
3419
3303
  __name: "AppHeightTransition",
3420
3304
  setup(e) {
3421
- let t = N(null), { height: n } = it(t);
3422
- return (e, r) => (M(), S(I(ut), {
3423
- animate: { height: I(n) },
3305
+ let t = M(null), { height: n } = nt(t);
3306
+ return (e, r) => (j(), S(F(ct), {
3307
+ animate: { height: F(n) },
3424
3308
  transition: {
3425
3309
  bounce: 0,
3426
3310
  duration: .3,
@@ -3432,26 +3316,26 @@ var di = /* @__PURE__ */ O({
3432
3316
  default: L(() => [T("div", {
3433
3317
  ref_key: "el",
3434
3318
  ref: t
3435
- }, [P(e.$slots, "default")], 512)]),
3319
+ }, [N(e.$slots, "default")], 512)]),
3436
3320
  _: 3
3437
3321
  }, 8, ["animate"]));
3438
3322
  }
3439
- }), fi = /* @__PURE__ */ O({
3323
+ }), si = /* @__PURE__ */ O({
3440
3324
  __name: "AppSeparator",
3441
3325
  props: { direction: { default: "horizontal" } },
3442
3326
  setup(e) {
3443
3327
  let t = e;
3444
- return (e, n) => (M(), w("div", {
3445
- class: j([{
3328
+ return (e, n) => (j(), w("div", {
3329
+ class: A([{
3446
3330
  "h-full w-px": t.direction === "vertical",
3447
3331
  "h-px w-full": t.direction === "horizontal"
3448
3332
  }, "bg-tertiary"]),
3449
3333
  role: "presentation"
3450
3334
  }, null, 2));
3451
3335
  }
3452
- }), pi = { class: "w-full" }, mi = { class: "p-lg flex flex-col overflow-hidden" }, hi = { class: "py-lg" }, gi = { class: "max-h-80 overflow-y-auto" }, _i = { key: 0 }, vi = { class: "py-lg" }, yi = { class: "flex w-full justify-center" }, bi = /* @__PURE__ */ O({
3336
+ }), ci = { class: "w-full" }, li = { class: "p-lg flex flex-col overflow-hidden" }, ui = { class: "py-lg" }, di = { class: "max-h-80 overflow-y-auto" }, fi = { key: 0 }, pi = { class: "py-lg" }, mi = { class: "flex w-full justify-center" }, hi = /* @__PURE__ */ O({
3453
3337
  __name: "EntityAutocomplete",
3454
- props: /* @__PURE__ */ k({
3338
+ props: /* @__PURE__ */ me({
3455
3339
  isLoading: { type: Boolean },
3456
3340
  isRequired: { type: Boolean },
3457
3341
  isTouched: { type: Boolean },
@@ -3464,13 +3348,13 @@ var di = /* @__PURE__ */ O({
3464
3348
  modelValue: { required: !0 },
3465
3349
  modelModifiers: {}
3466
3350
  }),
3467
- emits: /* @__PURE__ */ k([
3351
+ emits: /* @__PURE__ */ me([
3468
3352
  "blur",
3469
3353
  "createNew",
3470
3354
  "search"
3471
3355
  ], ["update:modelValue"]),
3472
3356
  setup(e, { emit: t }) {
3473
- let n = e, r = t, i = Se(e, "modelValue"), a = R(), o = Ce(), s = N(!1), c = N(null), l = N(null), u = x(() => n.isTouched === !0 && n.errorMessage !== null && n.errorMessage !== void 0), d = rt((e) => {
3357
+ let n = e, r = t, i = xe(e, "modelValue"), a = R(), o = Se(), s = M(!1), c = M(null), l = M(null), u = x(() => n.isTouched === !0 && n.errorMessage !== null && n.errorMessage !== void 0), d = tt((e) => {
3474
3358
  r("search", e);
3475
3359
  }, 100);
3476
3360
  async function f(e) {
@@ -3488,13 +3372,13 @@ var di = /* @__PURE__ */ O({
3488
3372
  value: e
3489
3373
  }, s.value = !1, c.value = n.displayFn(e));
3490
3374
  }
3491
- function ee() {
3375
+ function g() {
3492
3376
  r("createNew"), s.value = !1;
3493
3377
  }
3494
- function te(e) {
3378
+ function ee(e) {
3495
3379
  e.key !== "Tab" && (s.value = !0);
3496
3380
  }
3497
- return (e, t) => (M(), w("div", pi, [D(I(He), {
3381
+ return (e, t) => (j(), w("div", ci, [D(F(Be), {
3498
3382
  "is-open": s.value,
3499
3383
  "onUpdate:isOpen": t[3] ||= (e) => s.value = e,
3500
3384
  "is-popover-arrow-hidden": !0,
@@ -3503,24 +3387,24 @@ var di = /* @__PURE__ */ O({
3503
3387
  "popover-width": "anchor-width",
3504
3388
  class: "col-span-2"
3505
3389
  }, {
3506
- default: L(() => [D(I(Pe), {
3390
+ default: L(() => [D(F(Me), {
3507
3391
  label: n.label,
3508
3392
  "is-required": n.isRequired,
3509
3393
  for: "autocomplete-trigger"
3510
3394
  }, {
3511
- default: L(() => [D(I(ze), null, {
3512
- default: L(() => [D(I(Ue), null, {
3513
- default: L(() => [D(I(z), {
3395
+ default: L(() => [D(F(Le), null, {
3396
+ default: L(() => [D(F(Ve), null, {
3397
+ default: L(() => [D(F(z), {
3514
3398
  id: "autocomplete-trigger",
3515
3399
  "class-config": { root: `bg-transparent! outline-offset-1 ${u.value ? "border-error! outline-error-500!" : "border-secondary!"} rounded-md w-full justify-start scale-100! h-9 px-lg ${i.value === null ? "text-placeholder" : "text-primary"}` },
3516
3400
  variant: "secondary",
3517
3401
  "icon-left": "search",
3518
- onKeydown: te,
3402
+ onKeydown: ee,
3519
3403
  onBlur: t[0] ||= () => {
3520
3404
  r("blur");
3521
3405
  }
3522
3406
  }, {
3523
- default: L(() => [E(F(i.value?.label ?? n.placeholder), 1)]),
3407
+ default: L(() => [E(P(i.value?.label ?? n.placeholder), 1)]),
3524
3408
  _: 1
3525
3409
  }, 8, ["class-config"])]),
3526
3410
  _: 1
@@ -3528,16 +3412,16 @@ var di = /* @__PURE__ */ O({
3528
3412
  _: 1
3529
3413
  })]),
3530
3414
  _: 1
3531
- }, 8, ["label", "is-required"]), D(I(Ve), null, {
3532
- default: L(() => [D(I(Be), null, {
3533
- default: L(() => [T("div", mi, [D(I(yt), { onHighlight: t[2] ||= (e) => p(e?.value?.toString()) }, {
3415
+ }, 8, ["label", "is-required"]), D(F(ze), null, {
3416
+ default: L(() => [D(F(Re), null, {
3417
+ default: L(() => [T("div", li, [D(F(_t), { onHighlight: t[2] ||= (e) => p(e?.value?.toString()) }, {
3534
3418
  default: L(() => [
3535
- D(I(_t), { "as-child": "" }, {
3536
- default: L(() => [D(I(Je), {
3419
+ D(F(ht), { "as-child": "" }, {
3420
+ default: L(() => [D(F(Ke), {
3537
3421
  modelValue: c.value,
3538
3422
  "onUpdate:modelValue": [t[1] ||= (e) => c.value = e, f],
3539
3423
  "is-loading": n.isLoading,
3540
- placeholder: I(a).t("wise_crm.contact.create_dialog.form.fields.search"),
3424
+ placeholder: F(a).t("wise_crm.contact.create_dialog.form.fields.search"),
3541
3425
  "class-config": {
3542
3426
  input: "text-sm",
3543
3427
  iconLeft: "ml-0!",
@@ -3551,35 +3435,35 @@ var di = /* @__PURE__ */ O({
3551
3435
  ])]),
3552
3436
  _: 1
3553
3437
  }),
3554
- T("div", hi, [D(fi, { direction: "horizontal" })]),
3555
- T("div", gi, [D(di, null, {
3556
- default: L(() => [D(I(gt), null, {
3557
- default: L(() => [c.value !== null && c.value !== "" && n.options.length > 0 ? (M(), w("div", _i, [(M(!0), w(me, null, be(n.options, (t) => (M(), S(I(vt), {
3438
+ T("div", ui, [D(si, { direction: "horizontal" })]),
3439
+ T("div", di, [D(oi, null, {
3440
+ default: L(() => [D(F(mt), null, {
3441
+ default: L(() => [c.value !== null && c.value !== "" && n.options.length > 0 ? (j(), w("div", fi, [(j(!0), w(b, null, ye(n.options, (t) => (j(), S(F(gt), {
3558
3442
  key: t.uuid,
3559
3443
  value: t.uuid,
3560
3444
  as: "button",
3561
3445
  class: "w-full cursor-pointer text-left",
3562
3446
  onSelect: () => h(t.uuid)
3563
3447
  }, {
3564
- default: L(() => [I(o).option === void 0 ? C("", !0) : P(e.$slots, "option", {
3448
+ default: L(() => [F(o).option === void 0 ? C("", !0) : N(e.$slots, "option", {
3565
3449
  key: 0,
3566
3450
  option: t,
3567
3451
  isHighlighted: m(t.uuid)
3568
3452
  })]),
3569
3453
  _: 2
3570
- }, 1032, ["value", "onSelect"]))), 128)), T("div", vi, [D(fi, { direction: "horizontal" })])])) : C("", !0)]),
3454
+ }, 1032, ["value", "onSelect"]))), 128)), T("div", pi, [D(si, { direction: "horizontal" })])])) : C("", !0)]),
3571
3455
  _: 3
3572
3456
  })]),
3573
3457
  _: 3
3574
3458
  })])
3575
3459
  ]),
3576
3460
  _: 3
3577
- }), T("div", yi, [D(I(z), {
3461
+ }), T("div", mi, [D(F(z), {
3578
3462
  "class-config": { root: "shadow-none text-brand-500 border-none h-auto py-xxs font-semibold hover:underline rounded-none w-full bg-transparent!" },
3579
3463
  variant: "tertiary",
3580
- onClick: ee
3464
+ onClick: g
3581
3465
  }, {
3582
- default: L(() => [E(F(I(a).t("wise_crm.contact.create_dialog.form.fields.create_new_label")), 1)]),
3466
+ default: L(() => [E(P(F(a).t("wise_crm.contact.create_dialog.form.fields.create_new_label")), 1)]),
3583
3467
  _: 1
3584
3468
  })])])]),
3585
3469
  _: 3
@@ -3589,34 +3473,34 @@ var di = /* @__PURE__ */ O({
3589
3473
  _: 3
3590
3474
  }, 8, ["is-open"])]));
3591
3475
  }
3592
- }), xi = {
3476
+ }), gi = {
3593
3477
  key: 0,
3594
3478
  class: "gap-md bg-error-50 p-lg col-span-2 flex items-center justify-center rounded-xl"
3595
- }, Si = { class: "text-error-primary col-span-full text-sm" }, Ci = /* @__PURE__ */ O({
3479
+ }, _i = { class: "text-error-primary col-span-full text-sm" }, vi = /* @__PURE__ */ O({
3596
3480
  __name: "AppGlobalFormError",
3597
3481
  props: { form: {} },
3598
3482
  setup(e) {
3599
3483
  let t = e, n = x(() => t.form.errors.value.find((e) => e.path === "")?.message ?? null);
3600
- return (e, t) => n.value === null ? C("", !0) : (M(), w("div", xi, [D(I(B), {
3484
+ return (e, t) => n.value === null ? C("", !0) : (j(), w("div", gi, [D(F(B), {
3601
3485
  icon: "alertCircle",
3602
3486
  class: "text-error-primary size-4"
3603
- }), T("p", Si, F(n.value), 1)]));
3487
+ }), T("p", _i, P(n.value), 1)]));
3604
3488
  }
3605
- }), wi = class {
3489
+ }), yi = class {
3606
3490
  static fromDto(e) {
3607
3491
  return {
3608
3492
  uuid: e.uuid,
3609
3493
  billingLocation: e.billingLocation ? {
3610
3494
  uuid: e.billingLocation.uuid,
3611
- createdAt: i.fromDto(e.billingLocation.createdAt),
3612
- updatedAt: i.fromDto(e.billingLocation.updatedAt),
3495
+ createdAt: r.fromDto(e.billingLocation.createdAt),
3496
+ updatedAt: r.fromDto(e.billingLocation.updatedAt),
3613
3497
  address: V.fromDto(e.billingLocation.address)
3614
3498
  } : null,
3615
3499
  invoiceCcEmails: e.invoiceCcEmails,
3616
3500
  invoiceEmail: e.invoiceEmail
3617
3501
  };
3618
3502
  }
3619
- }, Ti = class {
3503
+ }, bi = class {
3620
3504
  static toDto(e) {
3621
3505
  return {
3622
3506
  billingAddress: e.billingAddress ? V.toDto(e.billingAddress) : null,
@@ -3624,7 +3508,7 @@ var di = /* @__PURE__ */ O({
3624
3508
  invoiceEmail: e.invoiceEmail
3625
3509
  };
3626
3510
  }
3627
- }, Ei = class {
3511
+ }, xi = class {
3628
3512
  static fromDto(e) {
3629
3513
  return {
3630
3514
  contactPersonUuid: e.contactPersonUuid,
@@ -3638,7 +3522,7 @@ var di = /* @__PURE__ */ O({
3638
3522
  position: e.position
3639
3523
  };
3640
3524
  }
3641
- }, Di = class {
3525
+ }, Si = class {
3642
3526
  static toDto(e) {
3643
3527
  return {
3644
3528
  address: e.address ? V.toDto(e.address) : null,
@@ -3650,12 +3534,12 @@ var di = /* @__PURE__ */ O({
3650
3534
  phone: e.phone
3651
3535
  };
3652
3536
  }
3653
- }, Oi = class {
3537
+ }, Ci = class {
3654
3538
  static fromDto(e) {
3655
3539
  return {
3656
3540
  uuid: e.uuid,
3657
- createdAt: i.fromDto(e.createdAt),
3658
- updatedAt: i.fromDto(e.updatedAt),
3541
+ createdAt: r.fromDto(e.createdAt),
3542
+ updatedAt: r.fromDto(e.updatedAt),
3659
3543
  address: V.fromNullableDto(e.location?.address ?? null),
3660
3544
  billingInformationDetail: e.billingInformation === null ? null : {
3661
3545
  uuid: e.billingInformation.uuid,
@@ -3663,8 +3547,8 @@ var di = /* @__PURE__ */ O({
3663
3547
  invoiceEmail: e.billingInformation.invoiceEmail ?? "",
3664
3548
  location: e.billingInformation?.location ? {
3665
3549
  uuid: e.billingInformation?.location.uuid,
3666
- createdAt: i.fromDto(e.billingInformation.location.createdAt),
3667
- updatedAt: i.fromDto(e.billingInformation.location.updatedAt),
3550
+ createdAt: r.fromDto(e.billingInformation.location.createdAt),
3551
+ updatedAt: r.fromDto(e.billingInformation.location.updatedAt),
3668
3552
  address: V.fromDto(e.billingInformation.location.address)
3669
3553
  } : null
3670
3554
  },
@@ -3695,7 +3579,7 @@ var di = /* @__PURE__ */ O({
3695
3579
  phone: e.phone
3696
3580
  };
3697
3581
  }
3698
- }, ki = class {
3582
+ }, wi = class {
3699
3583
  static fromDto(e) {
3700
3584
  return {
3701
3585
  uuid: e.uuid,
@@ -3705,14 +3589,14 @@ var di = /* @__PURE__ */ O({
3705
3589
  phone: e.phone
3706
3590
  };
3707
3591
  }
3708
- }, Ai = class {
3592
+ }, Ti = class {
3709
3593
  static toDto(e) {
3710
3594
  return {
3711
3595
  pagination: e.pagination,
3712
3596
  search: e.search?.trim() || void 0
3713
3597
  };
3714
3598
  }
3715
- }, ji = class {
3599
+ }, Ei = class {
3716
3600
  static fromDto(e) {
3717
3601
  return {
3718
3602
  monthlyAdded: e.monthlyAdded,
@@ -3720,7 +3604,7 @@ var di = /* @__PURE__ */ O({
3720
3604
  total: e.total
3721
3605
  };
3722
3606
  }
3723
- }, Mi = class {
3607
+ }, Di = class {
3724
3608
  static toDto(e) {
3725
3609
  return {
3726
3610
  address: e.address ? V.toDto(e.address) : null,
@@ -3745,21 +3629,21 @@ var di = /* @__PURE__ */ O({
3745
3629
  phone: e.phone
3746
3630
  };
3747
3631
  }
3748
- }, Ni = class {
3632
+ }, Oi = class {
3749
3633
  static async create(e) {
3750
- return (await te({
3751
- body: Di.toDto(e),
3634
+ return (await h({
3635
+ body: Si.toDto(e),
3752
3636
  responseValidator: void 0
3753
3637
  })).data.uuid;
3754
3638
  }
3755
3639
  static async getActivity(e, t) {
3756
- let n = await l({
3757
- query: new De(t).buildKeyset(wt.toDto),
3640
+ let n = await o({
3641
+ query: new Te(t).buildKeyset(St.toDto),
3758
3642
  responseValidator: void 0,
3759
3643
  path: { individualUuid: e }
3760
3644
  });
3761
3645
  return {
3762
- data: n.data.items.map(Ct.fromDto),
3646
+ data: n.data.items.map(xt.fromDto),
3763
3647
  meta: {
3764
3648
  next: n.data.meta.next,
3765
3649
  total: n.data.items.length
@@ -3767,53 +3651,53 @@ var di = /* @__PURE__ */ O({
3767
3651
  };
3768
3652
  }
3769
3653
  static async getAll(e) {
3770
- let t = await m({ query: Ai.toDto(e) });
3654
+ let t = await p({ query: Ti.toDto(e) });
3771
3655
  return {
3772
- data: t.data.items.map(ki.fromDto),
3656
+ data: t.data.items.map(wi.fromDto),
3773
3657
  meta: t.data.meta
3774
3658
  };
3775
3659
  }
3776
3660
  static async getBillingInformation(e) {
3777
- let t = await le({ path: { individualUuid: e } });
3778
- return wi.fromDto(t.data);
3661
+ let t = await c({ path: { individualUuid: e } });
3662
+ return yi.fromDto(t.data);
3779
3663
  }
3780
3664
  static async getBySearchTerm(e) {
3781
- let t = await m({ query: new De().withLimit(5).withSearch(e).build() });
3665
+ let t = await p({ query: new Te().withLimit(5).withSearch(e).build() });
3782
3666
  return {
3783
- data: t.data.items.map(ki.fromDto),
3667
+ data: t.data.items.map(wi.fromDto),
3784
3668
  meta: t.data.meta
3785
3669
  };
3786
3670
  }
3787
3671
  static async getByUuid(e) {
3788
- let t = await h({
3672
+ let t = await s({
3789
3673
  responseValidator: void 0,
3790
3674
  path: { individualUuid: e }
3791
3675
  });
3792
- return Oi.fromDto(t.data);
3676
+ return Ci.fromDto(t.data);
3793
3677
  }
3794
3678
  static async getContactPerson(e, t) {
3795
- let n = await c({ path: {
3679
+ let n = await oe({ path: {
3796
3680
  contactPersonUuid: t,
3797
3681
  individualUuid: e
3798
3682
  } });
3799
- return Ei.fromDto(n.data);
3683
+ return xi.fromDto(n.data);
3800
3684
  }
3801
3685
  static async getStatistics() {
3802
- let e = await f();
3803
- return ji.fromDto(e.data);
3686
+ let e = await m();
3687
+ return Ei.fromDto(e.data);
3804
3688
  }
3805
3689
  static async grantUser(e, t) {
3806
- await ne({
3690
+ await ee({
3807
3691
  body: t,
3808
3692
  responseValidator: void 0,
3809
3693
  path: { individualUuid: e }
3810
3694
  });
3811
3695
  }
3812
3696
  static async linkContactPerson(e, t, n, r) {
3813
- await ce({
3697
+ await ae({
3814
3698
  body: {
3815
3699
  contactPersonUuid: t,
3816
- email: Et.trimOrNull(r.email),
3700
+ email: wt.trimOrNull(r.email),
3817
3701
  mobilePhone: r.mobilePhone,
3818
3702
  phone: r.phone,
3819
3703
  position: n
@@ -3823,28 +3707,28 @@ var di = /* @__PURE__ */ O({
3823
3707
  });
3824
3708
  }
3825
3709
  static async setPrimaryContactPerson(e, t) {
3826
- await de({ path: {
3710
+ await le({ path: {
3827
3711
  contactPersonUuid: t,
3828
3712
  individualUuid: e
3829
3713
  } });
3830
3714
  }
3831
3715
  static async unlinkContactPerson(e, t) {
3832
- await o({
3716
+ await a({
3833
3717
  body: { contactPersonUuid: t },
3834
3718
  responseValidator: void 0,
3835
3719
  path: { individualUuid: e }
3836
3720
  });
3837
3721
  }
3838
3722
  static async update(e, t) {
3839
- await oe({
3840
- body: Mi.toDto(t),
3723
+ await re({
3724
+ body: Di.toDto(t),
3841
3725
  responseValidator: void 0,
3842
3726
  path: { individualUuid: e }
3843
3727
  });
3844
3728
  }
3845
3729
  static async updateContactPerson(e, t, n) {
3846
- await d({
3847
- body: Dt.toDto(n),
3730
+ await u({
3731
+ body: Tt.toDto(n),
3848
3732
  path: {
3849
3733
  contactPersonUuid: t,
3850
3734
  individualUuid: e
@@ -3852,17 +3736,17 @@ var di = /* @__PURE__ */ O({
3852
3736
  });
3853
3737
  }
3854
3738
  static async upsertBillingInformation(e, t) {
3855
- await u({
3856
- body: Ti.toDto(t),
3739
+ await l({
3740
+ body: bi.toDto(t),
3857
3741
  path: { individualUuid: e }
3858
3742
  });
3859
3743
  }
3860
3744
  };
3861
3745
  //#endregion
3862
3746
  //#region src/api/queries/individual/individualIndex.query.ts
3863
- function Pi(e) {
3864
- return qn({
3865
- queryFn: (t) => Ni.getAll({
3747
+ function ki(e) {
3748
+ return Gn({
3749
+ queryFn: (t) => Oi.getAll({
3866
3750
  pagination: t,
3867
3751
  search: e?.params?.search?.value
3868
3752
  }),
@@ -3871,12 +3755,12 @@ function Pi(e) {
3871
3755
  }
3872
3756
  //#endregion
3873
3757
  //#region src/individual/IndividualAutocomplete.vue?vue&type=script&setup=true&lang.ts
3874
- var Fi = { class: "text-sm" }, Ii = {
3758
+ var Ai = { class: "text-sm" }, ji = {
3875
3759
  key: 0,
3876
3760
  class: "text-brand-500 text-xs"
3877
- }, Li = /* @__PURE__ */ O({
3761
+ }, Mi = /* @__PURE__ */ O({
3878
3762
  __name: "IndividualAutocomplete",
3879
- props: /* @__PURE__ */ k({
3763
+ props: /* @__PURE__ */ me({
3880
3764
  isTouched: { type: Boolean },
3881
3765
  errorMessage: {},
3882
3766
  label: {}
@@ -3884,9 +3768,9 @@ var Fi = { class: "text-sm" }, Ii = {
3884
3768
  modelValue: { required: !0 },
3885
3769
  modelModifiers: {}
3886
3770
  }),
3887
- emits: /* @__PURE__ */ k(["blur", "createNew"], ["update:modelValue"]),
3771
+ emits: /* @__PURE__ */ me(["blur", "createNew"], ["update:modelValue"]),
3888
3772
  setup(e, { emit: t }) {
3889
- let n = e, r = t, i = R(), a = Se(e, "modelValue"), o = N(!1), s = sr({ persistInUrl: !1 }), c = Pi({ params: { search: s.debouncedSearch } }), l = x(() => c.data.value?.data ?? []);
3773
+ let n = e, r = t, i = R(), a = xe(e, "modelValue"), o = M(!1), s = ar({ persistInUrl: !1 }), c = ki({ params: { search: s.debouncedSearch } }), l = x(() => c.data.value?.data ?? []);
3890
3774
  function u(e) {
3891
3775
  e !== null && s.updateSearch(e);
3892
3776
  }
@@ -3899,21 +3783,21 @@ var Fi = { class: "text-sm" }, Ii = {
3899
3783
  function p() {
3900
3784
  r("blur");
3901
3785
  }
3902
- return (e, t) => (M(), S(bi, {
3786
+ return (e, t) => (j(), S(hi, {
3903
3787
  modelValue: a.value,
3904
3788
  "onUpdate:modelValue": t[0] ||= (e) => a.value = e,
3905
3789
  label: n.label,
3906
3790
  "display-fn": f,
3907
- placeholder: I(i).t("component.select.search_placeholder"),
3791
+ placeholder: F(i).t("component.select.search_placeholder"),
3908
3792
  "is-touched": n.isTouched,
3909
3793
  options: l.value,
3910
- "is-loading": I(c).isFetching.value,
3794
+ "is-loading": F(c).isFetching.value,
3911
3795
  "error-message": n.errorMessage,
3912
3796
  onCreateNew: d,
3913
3797
  onSearch: u,
3914
3798
  onBlur: p
3915
3799
  }, {
3916
- option: L(({ option: e, isHighlighted: t }) => [T("div", { class: j([{ "bg-brand-50": t }, "p-md px-lg rounded-md"]) }, [T("p", Fi, F(e.name), 1), e.email ? (M(), w("p", Ii, F(e.email), 1)) : C("", !0)], 2)]),
3800
+ option: L(({ option: e, isHighlighted: t }) => [T("div", { class: A([{ "bg-brand-50": t }, "p-md px-lg rounded-md"]) }, [T("p", Ai, P(e.name), 1), e.email ? (j(), w("p", ji, P(e.email), 1)) : C("", !0)], 2)]),
3917
3801
  _: 1
3918
3802
  }, 8, [
3919
3803
  "modelValue",
@@ -3925,7 +3809,7 @@ var Fi = { class: "text-sm" }, Ii = {
3925
3809
  "error-message"
3926
3810
  ]));
3927
3811
  }
3928
- }), Ri = {
3812
+ }), Ni = {
3929
3813
  version: 4,
3930
3814
  country_calling_codes: {
3931
3815
  1: [
@@ -11356,13 +11240,13 @@ var Fi = { class: "text-sm" }, Ii = {
11356
11240
  };
11357
11241
  //#endregion
11358
11242
  //#region ../../node_modules/.pnpm/libphonenumber-js@1.12.41/node_modules/libphonenumber-js/min/exports/withMetadataArgument.js
11359
- function zi(e, t) {
11243
+ function Pi(e, t) {
11360
11244
  var n = Array.prototype.slice.call(t);
11361
- return n.push(Ri), e.apply(this, n);
11245
+ return n.push(Ni), e.apply(this, n);
11362
11246
  }
11363
11247
  //#endregion
11364
11248
  //#region ../../node_modules/.pnpm/libphonenumber-js@1.12.41/node_modules/libphonenumber-js/es6/tools/semver-compare.js
11365
- function Bi(e, t) {
11249
+ function Fi(e, t) {
11366
11250
  e = e.split("-"), t = t.split("-");
11367
11251
  for (var n = e[0].split("."), r = t[0].split("."), i = 0; i < 3; i++) {
11368
11252
  var a = Number(n[i]), o = Number(r[i]);
@@ -11375,9 +11259,9 @@ function Bi(e, t) {
11375
11259
  }
11376
11260
  //#endregion
11377
11261
  //#region ../../node_modules/.pnpm/libphonenumber-js@1.12.41/node_modules/libphonenumber-js/es6/helpers/isObject.js
11378
- var Vi = {}.constructor;
11262
+ var Ii = {}.constructor;
11379
11263
  function K(e) {
11380
- return e != null && e.constructor === Vi;
11264
+ return e != null && e.constructor === Ii;
11381
11265
  }
11382
11266
  //#endregion
11383
11267
  //#region ../../node_modules/.pnpm/libphonenumber-js@1.12.41/node_modules/libphonenumber-js/es6/metadata.js
@@ -11389,23 +11273,23 @@ function q(e) {
11389
11273
  return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
11390
11274
  }, q(e);
11391
11275
  }
11392
- function Hi(e, t) {
11276
+ function Li(e, t) {
11393
11277
  if (!(e instanceof t)) throw TypeError("Cannot call a class as a function");
11394
11278
  }
11395
- function Ui(e, t) {
11279
+ function Ri(e, t) {
11396
11280
  for (var n = 0; n < t.length; n++) {
11397
11281
  var r = t[n];
11398
- r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(e, Gi(r.key), r);
11282
+ r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(e, Bi(r.key), r);
11399
11283
  }
11400
11284
  }
11401
- function Wi(e, t, n) {
11402
- return t && Ui(e.prototype, t), n && Ui(e, n), Object.defineProperty(e, "prototype", { writable: !1 }), e;
11285
+ function zi(e, t, n) {
11286
+ return t && Ri(e.prototype, t), n && Ri(e, n), Object.defineProperty(e, "prototype", { writable: !1 }), e;
11403
11287
  }
11404
- function Gi(e) {
11405
- var t = Ki(e, "string");
11288
+ function Bi(e) {
11289
+ var t = Vi(e, "string");
11406
11290
  return q(t) == "symbol" ? t : t + "";
11407
11291
  }
11408
- function Ki(e, t) {
11292
+ function Vi(e, t) {
11409
11293
  if (q(e) != "object" || !e) return e;
11410
11294
  var n = e[Symbol.toPrimitive];
11411
11295
  if (n !== void 0) {
@@ -11415,11 +11299,11 @@ function Ki(e, t) {
11415
11299
  }
11416
11300
  return (t === "string" ? String : Number)(e);
11417
11301
  }
11418
- var qi = "1.2.0", Ji = "1.7.35", Yi = " ext. ", Xi = /^\d+$/, J = /* @__PURE__ */ function() {
11302
+ var Hi = "1.2.0", Ui = "1.7.35", Wi = " ext. ", Gi = /^\d+$/, J = /* @__PURE__ */ function() {
11419
11303
  function e(t) {
11420
- Hi(this, e), na(t), this.metadata = t, aa.call(this, t);
11304
+ Li(this, e), Zi(t), this.metadata = t, ea.call(this, t);
11421
11305
  }
11422
- return Wi(e, [
11306
+ return zi(e, [
11423
11307
  {
11424
11308
  key: "getCountries",
11425
11309
  value: function() {
@@ -11473,12 +11357,12 @@ var qi = "1.2.0", Ji = "1.7.35", Yi = " ext. ", Xi = /^\d+$/, J = /* @__PURE__ *
11473
11357
  {
11474
11358
  key: "selectNumberingPlan",
11475
11359
  value: function(e, t) {
11476
- if (e && Xi.test(e) && (t = e, e = null), e && e !== "001") {
11360
+ if (e && Gi.test(e) && (t = e, e = null), e && e !== "001") {
11477
11361
  if (!this.hasCountry(e)) throw Error(`Unknown country: ${e}`);
11478
- this.numberingPlan = new Zi(this.getCountryMetadata(e), this);
11362
+ this.numberingPlan = new Ki(this.getCountryMetadata(e), this);
11479
11363
  } else if (t) {
11480
11364
  if (!this.hasCallingCode(t)) throw Error(`Unknown calling code: ${t}`);
11481
- this.numberingPlan = new Zi(this.getNumberingPlanMetadata(t), this);
11365
+ this.numberingPlan = new Ki(this.getNumberingPlanMetadata(t), this);
11482
11366
  } else this.numberingPlan = void 0;
11483
11367
  return this;
11484
11368
  }
@@ -11602,11 +11486,11 @@ var qi = "1.2.0", Ji = "1.7.35", Yi = " ext. ", Xi = /^\d+$/, J = /* @__PURE__ *
11602
11486
  }
11603
11487
  }
11604
11488
  ]);
11605
- }(), Zi = /* @__PURE__ */ function() {
11489
+ }(), Ki = /* @__PURE__ */ function() {
11606
11490
  function e(t, n) {
11607
- Hi(this, e), this.globalMetadataObject = n, this.metadata = t, aa.call(this, n.metadata);
11491
+ Li(this, e), this.globalMetadataObject = n, this.metadata = t, ea.call(this, n.metadata);
11608
11492
  }
11609
- return Wi(e, [
11493
+ return zi(e, [
11610
11494
  {
11611
11495
  key: "callingCode",
11612
11496
  value: function() {
@@ -11654,7 +11538,7 @@ var qi = "1.2.0", Ji = "1.7.35", Yi = " ext. ", Xi = /^\d+$/, J = /* @__PURE__ *
11654
11538
  value: function() {
11655
11539
  var e = this;
11656
11540
  return (this._getFormats(this.metadata) || this._getFormats(this.getDefaultCountryMetadataForRegion()) || []).map(function(t) {
11657
- return new Qi(t, e);
11541
+ return new qi(t, e);
11658
11542
  });
11659
11543
  }
11660
11544
  },
@@ -11727,21 +11611,21 @@ var qi = "1.2.0", Ji = "1.7.35", Yi = " ext. ", Xi = /^\d+$/, J = /* @__PURE__ *
11727
11611
  {
11728
11612
  key: "type",
11729
11613
  value: function(e) {
11730
- if (this.hasTypes() && ta(this.types(), e)) return new ea(ta(this.types(), e), this);
11614
+ if (this.hasTypes() && Xi(this.types(), e)) return new Yi(Xi(this.types(), e), this);
11731
11615
  }
11732
11616
  },
11733
11617
  {
11734
11618
  key: "ext",
11735
11619
  value: function() {
11736
- return this.v1 || this.v2 ? Yi : this.metadata[13] || Yi;
11620
+ return this.v1 || this.v2 ? Wi : this.metadata[13] || Wi;
11737
11621
  }
11738
11622
  }
11739
11623
  ]);
11740
- }(), Qi = /* @__PURE__ */ function() {
11624
+ }(), qi = /* @__PURE__ */ function() {
11741
11625
  function e(t, n) {
11742
- Hi(this, e), this._format = t, this.metadata = n;
11626
+ Li(this, e), this._format = t, this.metadata = n;
11743
11627
  }
11744
- return Wi(e, [
11628
+ return zi(e, [
11745
11629
  {
11746
11630
  key: "pattern",
11747
11631
  value: function() {
@@ -11781,7 +11665,7 @@ var qi = "1.2.0", Ji = "1.7.35", Yi = " ext. ", Xi = /^\d+$/, J = /* @__PURE__ *
11781
11665
  {
11782
11666
  key: "usesNationalPrefix",
11783
11667
  value: function() {
11784
- return !!(this.nationalPrefixFormattingRule() && !$i.test(this.nationalPrefixFormattingRule()));
11668
+ return !!(this.nationalPrefixFormattingRule() && !Ji.test(this.nationalPrefixFormattingRule()));
11785
11669
  }
11786
11670
  },
11787
11671
  {
@@ -11791,11 +11675,11 @@ var qi = "1.2.0", Ji = "1.7.35", Yi = " ext. ", Xi = /^\d+$/, J = /* @__PURE__ *
11791
11675
  }
11792
11676
  }
11793
11677
  ]);
11794
- }(), $i = /^\(?\$1\)?$/, ea = /* @__PURE__ */ function() {
11678
+ }(), Ji = /^\(?\$1\)?$/, Yi = /* @__PURE__ */ function() {
11795
11679
  function e(t, n) {
11796
- Hi(this, e), this.type = t, this.metadata = n;
11680
+ Li(this, e), this.type = t, this.metadata = n;
11797
11681
  }
11798
- return Wi(e, [{
11682
+ return zi(e, [{
11799
11683
  key: "pattern",
11800
11684
  value: function() {
11801
11685
  return this.metadata.v1 ? this.type : this.type[0];
@@ -11807,7 +11691,7 @@ var qi = "1.2.0", Ji = "1.7.35", Yi = " ext. ", Xi = /^\d+$/, J = /* @__PURE__ *
11807
11691
  }
11808
11692
  }]);
11809
11693
  }();
11810
- function ta(e, t) {
11694
+ function Xi(e, t) {
11811
11695
  switch (t) {
11812
11696
  case "FIXED_LINE": return e[0];
11813
11697
  case "MOBILE": return e[1];
@@ -11821,28 +11705,28 @@ function ta(e, t) {
11821
11705
  case "SHARED_COST": return e[9];
11822
11706
  }
11823
11707
  }
11824
- function na(e) {
11708
+ function Zi(e) {
11825
11709
  if (!e) throw Error("[libphonenumber-js] `metadata` argument not passed. Check your arguments.");
11826
- if (!K(e) || !K(e.countries)) throw Error(`[libphonenumber-js] \`metadata\` argument was passed but it's not a valid metadata. Must be an object having \`.countries\` child object property. Got ${K(e) ? "an object of shape: { " + Object.keys(e).join(", ") + " }" : "a " + ra(e) + ": " + e}.`);
11710
+ if (!K(e) || !K(e.countries)) throw Error(`[libphonenumber-js] \`metadata\` argument was passed but it's not a valid metadata. Must be an object having \`.countries\` child object property. Got ${K(e) ? "an object of shape: { " + Object.keys(e).join(", ") + " }" : "a " + Qi(e) + ": " + e}.`);
11827
11711
  }
11828
11712
  /* istanbul ignore next */
11829
- var ra = function(e) {
11713
+ var Qi = function(e) {
11830
11714
  return q(e);
11831
11715
  };
11832
- function ia(e, t) {
11716
+ function $i(e, t) {
11833
11717
  if (t = new J(t), t.hasCountry(e)) return t.selectNumberingPlan(e).countryCallingCode();
11834
11718
  throw Error(`Unknown country: ${e}`);
11835
11719
  }
11836
- function aa(e) {
11720
+ function ea(e) {
11837
11721
  var t = e.version;
11838
- typeof t == "number" ? (this.v1 = t === 1, this.v2 = t === 2, this.v3 = t === 3, this.v4 = t === 4) : t ? Bi(t, qi) === -1 ? this.v2 = !0 : Bi(t, Ji) === -1 ? this.v3 = !0 : this.v4 = !0 : this.v1 = !0;
11722
+ typeof t == "number" ? (this.v1 = t === 1, this.v2 = t === 2, this.v3 = t === 3, this.v4 = t === 4) : t ? Fi(t, Hi) === -1 ? this.v2 = !0 : Fi(t, Ui) === -1 ? this.v3 = !0 : this.v4 = !0 : this.v1 = !0;
11839
11723
  }
11840
11724
  //#endregion
11841
11725
  //#region ../../node_modules/.pnpm/libphonenumber-js@1.12.41/node_modules/libphonenumber-js/es6/helpers/mergeArrays.js
11842
- function oa(e, t) {
11726
+ function ta(e, t) {
11843
11727
  var n = typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
11844
11728
  if (n) return (n = n.call(e)).next.bind(n);
11845
- if (Array.isArray(e) || (n = sa(e)) || t && e && typeof e.length == "number") {
11729
+ if (Array.isArray(e) || (n = na(e)) || t && e && typeof e.length == "number") {
11846
11730
  n && (e = n);
11847
11731
  var r = 0;
11848
11732
  return function() {
@@ -11854,20 +11738,20 @@ function oa(e, t) {
11854
11738
  }
11855
11739
  throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
11856
11740
  }
11857
- function sa(e, t) {
11741
+ function na(e, t) {
11858
11742
  if (e) {
11859
- if (typeof e == "string") return ca(e, t);
11743
+ if (typeof e == "string") return ra(e, t);
11860
11744
  var n = {}.toString.call(e).slice(8, -1);
11861
- return n === "Object" && e.constructor && (n = e.constructor.name), n === "Map" || n === "Set" ? Array.from(e) : n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n) ? ca(e, t) : void 0;
11745
+ return n === "Object" && e.constructor && (n = e.constructor.name), n === "Map" || n === "Set" ? Array.from(e) : n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n) ? ra(e, t) : void 0;
11862
11746
  }
11863
11747
  }
11864
- function ca(e, t) {
11748
+ function ra(e, t) {
11865
11749
  (t == null || t > e.length) && (t = e.length);
11866
11750
  for (var n = 0, r = Array(t); n < t; n++) r[n] = e[n];
11867
11751
  return r;
11868
11752
  }
11869
- function la(e, t) {
11870
- for (var n = e.slice(), r = oa(t), i; !(i = r()).done;) {
11753
+ function ia(e, t) {
11754
+ for (var n = e.slice(), r = ta(t), i; !(i = r()).done;) {
11871
11755
  var a = i.value;
11872
11756
  e.indexOf(a) < 0 && n.push(a);
11873
11757
  }
@@ -11877,25 +11761,25 @@ function la(e, t) {
11877
11761
  }
11878
11762
  //#endregion
11879
11763
  //#region ../../node_modules/.pnpm/libphonenumber-js@1.12.41/node_modules/libphonenumber-js/es6/helpers/checkNumberLength.js
11880
- function ua(e, t, n) {
11881
- return da(e, t, void 0, n);
11764
+ function aa(e, t, n) {
11765
+ return oa(e, t, void 0, n);
11882
11766
  }
11883
- function da(e, t, n, r) {
11767
+ function oa(e, t, n, r) {
11884
11768
  t && (r = new J(r.metadata), r.selectNumberingPlan(t));
11885
11769
  var i = r.type(n), a = i && i.possibleLengths() || r.possibleLengths();
11886
11770
  if (!a) return "IS_POSSIBLE";
11887
11771
  if (n === "FIXED_LINE_OR_MOBILE") {
11888
11772
  /* istanbul ignore next */
11889
- if (!r.type("FIXED_LINE")) return da(e, t, "MOBILE", r);
11773
+ if (!r.type("FIXED_LINE")) return oa(e, t, "MOBILE", r);
11890
11774
  var o = r.type("MOBILE");
11891
- o && (a = la(a, o.possibleLengths()));
11775
+ o && (a = ia(a, o.possibleLengths()));
11892
11776
  } else if (n && !i) return "INVALID_LENGTH";
11893
11777
  var s = e.length, c = a[0];
11894
11778
  return c === s ? "IS_POSSIBLE" : c > s ? "TOO_SHORT" : a[a.length - 1] < s ? "TOO_LONG" : a.indexOf(s, 1) >= 0 ? "IS_POSSIBLE" : "INVALID_LENGTH";
11895
11779
  }
11896
11780
  //#endregion
11897
11781
  //#region ../../node_modules/.pnpm/libphonenumber-js@1.12.41/node_modules/libphonenumber-js/es6/isPossible.js
11898
- function fa(e, t, n) {
11782
+ function sa(e, t, n) {
11899
11783
  if (t === void 0 && (t = {}), n = new J(n), t.v2) {
11900
11784
  if (!e.countryCallingCode) throw Error("Invalid phone number object passed");
11901
11785
  n.selectNumberingPlan(e.countryCallingCode);
@@ -11909,12 +11793,12 @@ function fa(e, t, n) {
11909
11793
  n.selectNumberingPlan(e.countryCallingCode);
11910
11794
  }
11911
11795
  }
11912
- if (n.possibleLengths()) return pa(e.phone || e.nationalNumber, e.country, n);
11796
+ if (n.possibleLengths()) return ca(e.phone || e.nationalNumber, e.country, n);
11913
11797
  if (e.countryCallingCode && n.isNonGeographicCallingCode(e.countryCallingCode)) return !0;
11914
11798
  throw Error("Missing \"possibleLengths\" in metadata. Perhaps the metadata has been generated before v1.0.18.");
11915
11799
  }
11916
- function pa(e, t, n) {
11917
- switch (ua(e, t, n)) {
11800
+ function ca(e, t, n) {
11801
+ switch (aa(e, t, n)) {
11918
11802
  case "IS_POSSIBLE": return !0;
11919
11803
  default: return !1;
11920
11804
  }
@@ -11926,10 +11810,10 @@ function Y(e, t) {
11926
11810
  }
11927
11811
  //#endregion
11928
11812
  //#region ../../node_modules/.pnpm/libphonenumber-js@1.12.41/node_modules/libphonenumber-js/es6/helpers/getNumberType.js
11929
- function ma(e, t) {
11813
+ function la(e, t) {
11930
11814
  var n = typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
11931
11815
  if (n) return (n = n.call(e)).next.bind(n);
11932
- if (Array.isArray(e) || (n = ha(e)) || t && e && typeof e.length == "number") {
11816
+ if (Array.isArray(e) || (n = ua(e)) || t && e && typeof e.length == "number") {
11933
11817
  n && (e = n);
11934
11818
  var r = 0;
11935
11819
  return function() {
@@ -11941,19 +11825,19 @@ function ma(e, t) {
11941
11825
  }
11942
11826
  throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
11943
11827
  }
11944
- function ha(e, t) {
11828
+ function ua(e, t) {
11945
11829
  if (e) {
11946
- if (typeof e == "string") return ga(e, t);
11830
+ if (typeof e == "string") return da(e, t);
11947
11831
  var n = {}.toString.call(e).slice(8, -1);
11948
- return n === "Object" && e.constructor && (n = e.constructor.name), n === "Map" || n === "Set" ? Array.from(e) : n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n) ? ga(e, t) : void 0;
11832
+ return n === "Object" && e.constructor && (n = e.constructor.name), n === "Map" || n === "Set" ? Array.from(e) : n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n) ? da(e, t) : void 0;
11949
11833
  }
11950
11834
  }
11951
- function ga(e, t) {
11835
+ function da(e, t) {
11952
11836
  (t == null || t > e.length) && (t = e.length);
11953
11837
  for (var n = 0, r = Array(t); n < t; n++) r[n] = e[n];
11954
11838
  return r;
11955
11839
  }
11956
- var _a = [
11840
+ var fa = [
11957
11841
  "MOBILE",
11958
11842
  "PREMIUM_RATE",
11959
11843
  "TOLL_FREE",
@@ -11964,58 +11848,58 @@ var _a = [
11964
11848
  "UAN",
11965
11849
  "VOICEMAIL"
11966
11850
  ];
11967
- function va(e, t, n) {
11851
+ function pa(e, t, n) {
11968
11852
  if (t ||= {}, !(!e.country && !e.countryCallingCode)) {
11969
11853
  n = new J(n), n.selectNumberingPlan(e.country, e.countryCallingCode);
11970
11854
  var r = t.v2 ? e.nationalNumber : e.phone;
11971
11855
  if (Y(r, n.nationalNumberPattern())) {
11972
- if (ya(r, "FIXED_LINE", n)) return n.type("MOBILE") && n.type("MOBILE").pattern() === "" || !n.type("MOBILE") || ya(r, "MOBILE", n) ? "FIXED_LINE_OR_MOBILE" : "FIXED_LINE";
11973
- for (var i = ma(_a), a; !(a = i()).done;) {
11856
+ if (ma(r, "FIXED_LINE", n)) return n.type("MOBILE") && n.type("MOBILE").pattern() === "" || !n.type("MOBILE") || ma(r, "MOBILE", n) ? "FIXED_LINE_OR_MOBILE" : "FIXED_LINE";
11857
+ for (var i = la(fa), a; !(a = i()).done;) {
11974
11858
  var o = a.value;
11975
- if (ya(r, o, n)) return o;
11859
+ if (ma(r, o, n)) return o;
11976
11860
  }
11977
11861
  }
11978
11862
  }
11979
11863
  }
11980
- function ya(e, t, n) {
11864
+ function ma(e, t, n) {
11981
11865
  var r = n.type(t);
11982
11866
  return !r || !r.pattern() || r.possibleLengths() && r.possibleLengths().indexOf(e.length) < 0 ? !1 : Y(e, r.pattern());
11983
11867
  }
11984
11868
  //#endregion
11985
11869
  //#region ../../node_modules/.pnpm/libphonenumber-js@1.12.41/node_modules/libphonenumber-js/es6/isValid.js
11986
- function ba(e, t, n) {
11987
- return t ||= {}, n = new J(n), n.selectNumberingPlan(e.country, e.countryCallingCode), n.hasTypes() ? va(e, t, n.metadata) !== void 0 : Y(t.v2 ? e.nationalNumber : e.phone, n.nationalNumberPattern());
11870
+ function ha(e, t, n) {
11871
+ return t ||= {}, n = new J(n), n.selectNumberingPlan(e.country, e.countryCallingCode), n.hasTypes() ? pa(e, t, n.metadata) !== void 0 : Y(t.v2 ? e.nationalNumber : e.phone, n.nationalNumberPattern());
11988
11872
  }
11989
11873
  //#endregion
11990
11874
  //#region ../../node_modules/.pnpm/libphonenumber-js@1.12.41/node_modules/libphonenumber-js/es6/helpers/getPossibleCountriesForNumber.js
11991
- function xa(e, t, n) {
11875
+ function ga(e, t, n) {
11992
11876
  var r = new J(n).getCountryCodesForCallingCode(e);
11993
11877
  return r ? r.filter(function(e) {
11994
- return Sa(t, e, n);
11878
+ return _a(t, e, n);
11995
11879
  }) : [];
11996
11880
  }
11997
- function Sa(e, t, n) {
11881
+ function _a(e, t, n) {
11998
11882
  var r = new J(n);
11999
11883
  return r.selectNumberingPlan(t), r.numberingPlan.possibleLengths().indexOf(e.length) >= 0;
12000
11884
  }
12001
11885
  //#endregion
12002
11886
  //#region ../../node_modules/.pnpm/libphonenumber-js@1.12.41/node_modules/libphonenumber-js/es6/constants.js
12003
- var X = "0-90-9٠-٩۰-۹", Ca = "-‐-―−ー-//.. \xA0­​⁠ ()()[]\\[\\]~⁓∼~", wa = "++", Ta = RegExp("([" + X + "])");
12004
- function Ea(e, t, n, r) {
11887
+ var X = "0-90-9٠-٩۰-۹", va = "-‐-―−ー-//.. \xA0­​⁠ ()()[]\\[\\]~⁓∼~", ya = "++", ba = RegExp("([" + X + "])");
11888
+ function xa(e, t, n, r) {
12005
11889
  if (t) {
12006
11890
  var i = new J(r);
12007
11891
  i.selectNumberingPlan(t, n);
12008
11892
  var a = new RegExp(i.IDDPrefix());
12009
11893
  if (e.search(a) === 0) {
12010
11894
  e = e.slice(e.match(a)[0].length);
12011
- var o = e.match(Ta);
11895
+ var o = e.match(ba);
12012
11896
  if (!(o && o[1] != null && o[1].length > 0 && o[1] === "0")) return e;
12013
11897
  }
12014
11898
  }
12015
11899
  }
12016
11900
  //#endregion
12017
11901
  //#region ../../node_modules/.pnpm/libphonenumber-js@1.12.41/node_modules/libphonenumber-js/es6/helpers/extractNationalNumberFromPossiblyIncompleteNumber.js
12018
- function Da(e, t) {
11902
+ function Sa(e, t) {
12019
11903
  if (e && t.numberingPlan.nationalPrefixForParsing()) {
12020
11904
  var n = RegExp("^(?:" + t.numberingPlan.nationalPrefixForParsing() + ")"), r = n.exec(e);
12021
11905
  if (r) {
@@ -12041,10 +11925,10 @@ function Da(e, t) {
12041
11925
  }
12042
11926
  //#endregion
12043
11927
  //#region ../../node_modules/.pnpm/libphonenumber-js@1.12.41/node_modules/libphonenumber-js/es6/helpers/getCountryByNationalNumber.js
12044
- function Oa(e, t) {
11928
+ function Ca(e, t) {
12045
11929
  var n = typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
12046
11930
  if (n) return (n = n.call(e)).next.bind(n);
12047
- if (Array.isArray(e) || (n = ka(e)) || t && e && typeof e.length == "number") {
11931
+ if (Array.isArray(e) || (n = wa(e)) || t && e && typeof e.length == "number") {
12048
11932
  n && (e = n);
12049
11933
  var r = 0;
12050
11934
  return function() {
@@ -12056,26 +11940,26 @@ function Oa(e, t) {
12056
11940
  }
12057
11941
  throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
12058
11942
  }
12059
- function ka(e, t) {
11943
+ function wa(e, t) {
12060
11944
  if (e) {
12061
- if (typeof e == "string") return Aa(e, t);
11945
+ if (typeof e == "string") return Ta(e, t);
12062
11946
  var n = {}.toString.call(e).slice(8, -1);
12063
- return n === "Object" && e.constructor && (n = e.constructor.name), n === "Map" || n === "Set" ? Array.from(e) : n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n) ? Aa(e, t) : void 0;
11947
+ return n === "Object" && e.constructor && (n = e.constructor.name), n === "Map" || n === "Set" ? Array.from(e) : n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n) ? Ta(e, t) : void 0;
12064
11948
  }
12065
11949
  }
12066
- function Aa(e, t) {
11950
+ function Ta(e, t) {
12067
11951
  (t == null || t > e.length) && (t = e.length);
12068
11952
  for (var n = 0, r = Array(t); n < t; n++) r[n] = e[n];
12069
11953
  return r;
12070
11954
  }
12071
- function ja(e, t) {
11955
+ function Ea(e, t) {
12072
11956
  var n = t.countries, r = t.metadata;
12073
11957
  r = new J(r);
12074
- for (var i = Oa(n), a; !(a = i()).done;) {
11958
+ for (var i = Ca(n), a; !(a = i()).done;) {
12075
11959
  var o = a.value;
12076
11960
  if (r.selectNumberingPlan(o), r.leadingDigits()) {
12077
11961
  if (e && e.search(r.leadingDigits()) === 0) return o;
12078
- } else if (va({
11962
+ } else if (pa({
12079
11963
  phone: e,
12080
11964
  country: o
12081
11965
  }, void 0, r.metadata)) return o;
@@ -12083,34 +11967,34 @@ function ja(e, t) {
12083
11967
  }
12084
11968
  //#endregion
12085
11969
  //#region ../../node_modules/.pnpm/libphonenumber-js@1.12.41/node_modules/libphonenumber-js/es6/helpers/getCountryByCallingCode.js
12086
- var Ma = !1;
12087
- function Na(e, t) {
11970
+ var Da = !1;
11971
+ function Oa(e, t) {
12088
11972
  var n = t.nationalNumber, r = t.metadata;
12089
11973
  /* istanbul ignore if */
12090
- if (Ma && r.isNonGeographicCallingCode(e)) return "001";
11974
+ if (Da && r.isNonGeographicCallingCode(e)) return "001";
12091
11975
  var i = r.getCountryCodesForCallingCode(e);
12092
- if (i) return i.length === 1 ? i[0] : ja(n, {
11976
+ if (i) return i.length === 1 ? i[0] : Ea(n, {
12093
11977
  countries: i,
12094
11978
  metadata: r.metadata
12095
11979
  });
12096
11980
  }
12097
11981
  //#endregion
12098
11982
  //#region ../../node_modules/.pnpm/libphonenumber-js@1.12.41/node_modules/libphonenumber-js/es6/helpers/extractNationalNumber.js
12099
- function Pa(e, t, n) {
12100
- var r = Da(e, n), i = r.carrierCode, a = r.nationalNumber;
12101
- return a !== e && (!Fa(e, a, n) || n.numberingPlan.possibleLengths() && (t ||= Na(n.numberingPlan.callingCode(), {
11983
+ function ka(e, t, n) {
11984
+ var r = Sa(e, n), i = r.carrierCode, a = r.nationalNumber;
11985
+ return a !== e && (!Aa(e, a, n) || n.numberingPlan.possibleLengths() && (t ||= Oa(n.numberingPlan.callingCode(), {
12102
11986
  nationalNumber: a,
12103
11987
  metadata: n
12104
- }), !Ia(a, t, n))) ? { nationalNumber: e } : {
11988
+ }), !ja(a, t, n))) ? { nationalNumber: e } : {
12105
11989
  nationalNumber: a,
12106
11990
  carrierCode: i
12107
11991
  };
12108
11992
  }
12109
- function Fa(e, t, n) {
11993
+ function Aa(e, t, n) {
12110
11994
  return !(Y(e, n.nationalNumberPattern()) && !Y(t, n.nationalNumberPattern()));
12111
11995
  }
12112
- function Ia(e, t, n) {
12113
- switch (ua(e, t, n)) {
11996
+ function ja(e, t, n) {
11997
+ switch (aa(e, t, n)) {
12114
11998
  case "TOO_SHORT":
12115
11999
  case "INVALID_LENGTH": return !1;
12116
12000
  default: return !0;
@@ -12118,12 +12002,12 @@ function Ia(e, t, n) {
12118
12002
  }
12119
12003
  //#endregion
12120
12004
  //#region ../../node_modules/.pnpm/libphonenumber-js@1.12.41/node_modules/libphonenumber-js/es6/helpers/extractCountryCallingCodeFromInternationalNumberWithoutPlusSign.js
12121
- function La(e, t, n, r, i) {
12122
- var a = t || n ? ia(t || n, i) : r;
12005
+ function Ma(e, t, n, r, i) {
12006
+ var a = t || n ? $i(t || n, i) : r;
12123
12007
  if (e.indexOf(a) === 0) {
12124
12008
  i = new J(i), i.selectNumberingPlan(t || n, a);
12125
- var o = e.slice(a.length), s = Pa(o, t, i).nationalNumber, c = Pa(e, t, i).nationalNumber;
12126
- if (!Y(c, i.nationalNumberPattern()) && Y(s, i.nationalNumberPattern()) || ua(c, t, i) === "TOO_LONG") return {
12009
+ var o = e.slice(a.length), s = ka(o, t, i).nationalNumber, c = ka(e, t, i).nationalNumber;
12010
+ if (!Y(c, i.nationalNumberPattern()) && Y(s, i.nationalNumberPattern()) || aa(c, t, i) === "TOO_LONG") return {
12127
12011
  countryCallingCode: a,
12128
12012
  number: o
12129
12013
  };
@@ -12132,15 +12016,15 @@ function La(e, t, n, r, i) {
12132
12016
  }
12133
12017
  //#endregion
12134
12018
  //#region ../../node_modules/.pnpm/libphonenumber-js@1.12.41/node_modules/libphonenumber-js/es6/helpers/extractCountryCallingCode.js
12135
- function Ra(e, t, n, r, i) {
12019
+ function Na(e, t, n, r, i) {
12136
12020
  if (!e) return {};
12137
12021
  var a;
12138
12022
  if (e[0] !== "+") {
12139
- var o = Ea(e, t || n, r, i);
12023
+ var o = xa(e, t || n, r, i);
12140
12024
  if (o && o !== e) a = !0, e = "+" + o;
12141
12025
  else {
12142
12026
  if (t || n || r) {
12143
- var s = La(e, t, n, r, i), c = s.countryCallingCode, l = s.number;
12027
+ var s = Ma(e, t, n, r, i), c = s.countryCallingCode, l = s.number;
12144
12028
  if (c) return {
12145
12029
  countryCallingCodeSource: "FROM_NUMBER_WITHOUT_PLUS_SIGN",
12146
12030
  countryCallingCode: c,
@@ -12165,47 +12049,47 @@ function Ra(e, t, n, r, i) {
12165
12049
  }
12166
12050
  //#endregion
12167
12051
  //#region ../../node_modules/.pnpm/libphonenumber-js@1.12.41/node_modules/libphonenumber-js/es6/helpers/applyInternationalSeparatorStyle.js
12168
- function za(e) {
12169
- return e.replace(RegExp(`[${Ca}]+`, "g"), " ").trim();
12052
+ function Pa(e) {
12053
+ return e.replace(RegExp(`[${va}]+`, "g"), " ").trim();
12170
12054
  }
12171
12055
  //#endregion
12172
12056
  //#region ../../node_modules/.pnpm/libphonenumber-js@1.12.41/node_modules/libphonenumber-js/es6/helpers/formatNationalNumberUsingFormat.js
12173
- var Ba = /(\$\d)/;
12174
- function Va(e, t, n) {
12057
+ var Fa = /(\$\d)/;
12058
+ function Ia(e, t, n) {
12175
12059
  var r = n.useInternationalFormat, i = n.withNationalPrefix;
12176
12060
  n.carrierCode, n.metadata;
12177
- var a = e.replace(new RegExp(t.pattern()), r ? t.internationalFormat() : i && t.nationalPrefixFormattingRule() ? t.format().replace(Ba, t.nationalPrefixFormattingRule()) : t.format());
12178
- return r ? za(a) : a;
12061
+ var a = e.replace(new RegExp(t.pattern()), r ? t.internationalFormat() : i && t.nationalPrefixFormattingRule() ? t.format().replace(Fa, t.nationalPrefixFormattingRule()) : t.format());
12062
+ return r ? Pa(a) : a;
12179
12063
  }
12180
12064
  //#endregion
12181
12065
  //#region ../../node_modules/.pnpm/libphonenumber-js@1.12.41/node_modules/libphonenumber-js/es6/helpers/getIddPrefix.js
12182
- var Ha = /^[\d]+(?:[~\u2053\u223C\uFF5E][\d]+)?$/;
12183
- function Ua(e, t, n) {
12066
+ var La = /^[\d]+(?:[~\u2053\u223C\uFF5E][\d]+)?$/;
12067
+ function Ra(e, t, n) {
12184
12068
  var r = new J(n);
12185
12069
  if (r.selectNumberingPlan(e, t), r.defaultIDDPrefix()) return r.defaultIDDPrefix();
12186
- if (Ha.test(r.IDDPrefix())) return r.IDDPrefix();
12070
+ if (La.test(r.IDDPrefix())) return r.IDDPrefix();
12187
12071
  }
12188
12072
  //#endregion
12189
12073
  //#region ../../node_modules/.pnpm/libphonenumber-js@1.12.41/node_modules/libphonenumber-js/es6/helpers/extension/createExtensionPattern.js
12190
- var Wa = ";ext=", Z = function(e) {
12074
+ var za = ";ext=", Z = function(e) {
12191
12075
  return `([${X}]{1,${e}})`;
12192
12076
  };
12193
- function Ga(e) {
12194
- var t = "20", n = "15", r = "9", i = "6", a = "[ \xA0\\t,]*", o = "[:\\..]?[ \xA0\\t,-]*", s = "#?", c = "(?:e?xt(?:ensi(?:ó?|ó))?n?|e?xtn?|доб|anexo)", l = "(?:[xx##~~]|int|int)", u = "[- ]+", d = "[ \xA0\\t]*", f = "(?:,{2}|;)", p = Wa + Z(t), m = a + c + o + Z(t) + s, h = a + l + o + Z(r) + s, ee = u + Z(i) + "#", te = d + f + o + Z(n) + s, ne = d + "(?:,)+" + o + Z(r) + s;
12195
- return p + "|" + m + "|" + h + "|" + ee + "|" + te + "|" + ne;
12077
+ function Ba(e) {
12078
+ var t = "20", n = "15", r = "9", i = "6", a = "[ \xA0\\t,]*", o = "[:\\..]?[ \xA0\\t,-]*", s = "#?", c = "(?:e?xt(?:ensi(?:ó?|ó))?n?|e?xtn?|доб|anexo)", l = "(?:[xx##~~]|int|int)", u = "[- ]+", d = "[ \xA0\\t]*", f = "(?:,{2}|;)", p = za + Z(t), m = a + c + o + Z(t) + s, h = a + l + o + Z(r) + s, g = u + Z(i) + "#", ee = d + f + o + Z(n) + s, _ = d + "(?:,)+" + o + Z(r) + s;
12079
+ return p + "|" + m + "|" + h + "|" + g + "|" + ee + "|" + _;
12196
12080
  }
12197
12081
  //#endregion
12198
12082
  //#region ../../node_modules/.pnpm/libphonenumber-js@1.12.41/node_modules/libphonenumber-js/es6/helpers/isViablePhoneNumber.js
12199
- var Ka = "[" + X + "]{2}", qa = "[" + wa + "]{0,1}(?:[" + Ca + "]*[" + X + "]){3,}[" + Ca + X + "]*", Ja = RegExp("^[" + wa + "]{0,1}(?:[" + Ca + "]*[" + X + "]){1,2}$", "i"), Ya = qa + "(?:" + Ga() + ")?", Xa = RegExp("^" + Ka + "$|^" + Ya + "$", "i");
12200
- function Za(e) {
12201
- return e.length >= 2 && Xa.test(e);
12083
+ var Va = "[" + X + "]{2}", Ha = "[" + ya + "]{0,1}(?:[" + va + "]*[" + X + "]){3,}[" + va + X + "]*", Ua = RegExp("^[" + ya + "]{0,1}(?:[" + va + "]*[" + X + "]){1,2}$", "i"), Wa = Ha + "(?:" + Ba() + ")?", Ga = RegExp("^" + Va + "$|^" + Wa + "$", "i");
12084
+ function Ka(e) {
12085
+ return e.length >= 2 && Ga.test(e);
12202
12086
  }
12203
- function Qa(e) {
12204
- return Ja.test(e);
12087
+ function qa(e) {
12088
+ return Ua.test(e);
12205
12089
  }
12206
12090
  //#endregion
12207
12091
  //#region ../../node_modules/.pnpm/libphonenumber-js@1.12.41/node_modules/libphonenumber-js/es6/helpers/RFC3966.js
12208
- function $a(e) {
12092
+ function Ja(e) {
12209
12093
  var t = e.number, n = e.ext;
12210
12094
  if (!t) return "";
12211
12095
  if (t[0] !== "+") throw Error("\"formatRFC3966()\" expects \"number\" to be in E.164 format.");
@@ -12213,42 +12097,42 @@ function $a(e) {
12213
12097
  }
12214
12098
  //#endregion
12215
12099
  //#region ../../node_modules/.pnpm/libphonenumber-js@1.12.41/node_modules/libphonenumber-js/es6/format.js
12216
- var eo = { formatExtension: function(e, t, n) {
12100
+ var Ya = { formatExtension: function(e, t, n) {
12217
12101
  return `${e}${n.ext()}${t}`;
12218
12102
  } };
12219
- function to(e, t, n, r) {
12220
- if (n = n ? oo({}, eo, n) : eo, r = new J(r), e.country && e.country !== "001") {
12103
+ function Xa(e, t, n, r) {
12104
+ if (n = n ? to({}, Ya, n) : Ya, r = new J(r), e.country && e.country !== "001") {
12221
12105
  if (!r.hasCountry(e.country)) throw Error(`Unknown country: ${e.country}`);
12222
12106
  r.selectNumberingPlan(e.country);
12223
12107
  } else if (e.countryCallingCode) r.selectNumberingPlan(e.countryCallingCode);
12224
12108
  else return e.phone || "";
12225
12109
  var i = r.countryCallingCode(), a = n.v2 ? e.nationalNumber : e.phone, o;
12226
12110
  switch (t) {
12227
- case "NATIONAL": return a ? (o = no(a, e.carrierCode, "NATIONAL", r, n), io(o, e.ext, r, n.formatExtension)) : "";
12228
- case "INTERNATIONAL": return a ? (o = no(a, null, "INTERNATIONAL", r, n), o = `+${i} ${o}`, io(o, e.ext, r, n.formatExtension)) : `+${i}`;
12111
+ case "NATIONAL": return a ? (o = Za(a, e.carrierCode, "NATIONAL", r, n), $a(o, e.ext, r, n.formatExtension)) : "";
12112
+ case "INTERNATIONAL": return a ? (o = Za(a, null, "INTERNATIONAL", r, n), o = `+${i} ${o}`, $a(o, e.ext, r, n.formatExtension)) : `+${i}`;
12229
12113
  case "E.164": return `+${i}${a}`;
12230
- case "RFC3966": return $a({
12114
+ case "RFC3966": return Ja({
12231
12115
  number: `+${i}${a}`,
12232
12116
  ext: e.ext
12233
12117
  });
12234
12118
  case "IDD":
12235
12119
  if (!n.fromCountry) return;
12236
- var s = ao(a, e.carrierCode, i, n.fromCountry, r);
12237
- return s ? io(s, e.ext, r, n.formatExtension) : void 0;
12120
+ var s = eo(a, e.carrierCode, i, n.fromCountry, r);
12121
+ return s ? $a(s, e.ext, r, n.formatExtension) : void 0;
12238
12122
  default: throw Error(`Unknown "format" argument passed to "formatNumber()": "${t}"`);
12239
12123
  }
12240
12124
  }
12241
- function no(e, t, n, r, i) {
12242
- var a = ro(r.formats(), e);
12243
- return a ? Va(e, a, {
12125
+ function Za(e, t, n, r, i) {
12126
+ var a = Qa(r.formats(), e);
12127
+ return a ? Ia(e, a, {
12244
12128
  useInternationalFormat: n === "INTERNATIONAL",
12245
12129
  withNationalPrefix: !(a.nationalPrefixIsOptionalWhenFormattingInNationalFormat() && i && i.nationalPrefix === !1),
12246
12130
  carrierCode: t,
12247
12131
  metadata: r
12248
12132
  }) : e;
12249
12133
  }
12250
- function ro(e, t) {
12251
- return so(e, function(e) {
12134
+ function Qa(e, t) {
12135
+ return no(e, function(e) {
12252
12136
  if (e.leadingDigitsPatterns().length > 0) {
12253
12137
  var n = e.leadingDigitsPatterns()[e.leadingDigitsPatterns().length - 1];
12254
12138
  if (t.search(n) !== 0) return !1;
@@ -12256,25 +12140,25 @@ function ro(e, t) {
12256
12140
  return Y(t, e.pattern());
12257
12141
  });
12258
12142
  }
12259
- function io(e, t, n, r) {
12143
+ function $a(e, t, n, r) {
12260
12144
  return t ? r(e, t, n) : e;
12261
12145
  }
12262
- function ao(e, t, n, r, i) {
12263
- if (ia(r, i.metadata) === n) {
12264
- var a = no(e, t, "NATIONAL", i);
12146
+ function eo(e, t, n, r, i) {
12147
+ if ($i(r, i.metadata) === n) {
12148
+ var a = Za(e, t, "NATIONAL", i);
12265
12149
  return n === "1" ? n + " " + a : a;
12266
12150
  }
12267
- var o = Ua(r, void 0, i.metadata);
12268
- if (o) return `${o} ${n} ${no(e, null, "INTERNATIONAL", i)}`;
12151
+ var o = Ra(r, void 0, i.metadata);
12152
+ if (o) return `${o} ${n} ${Za(e, null, "INTERNATIONAL", i)}`;
12269
12153
  }
12270
- function oo() {
12154
+ function to() {
12271
12155
  for (var e = 1, t = [...arguments]; e < t.length;) {
12272
12156
  if (t[e]) for (var n in t[e]) t[0][n] = t[e][n];
12273
12157
  e++;
12274
12158
  }
12275
12159
  return t[0];
12276
12160
  }
12277
- function so(e, t) {
12161
+ function no(e, t) {
12278
12162
  for (var n = 0; n < e.length;) {
12279
12163
  if (t(e[n])) return e[n];
12280
12164
  n++;
@@ -12282,15 +12166,15 @@ function so(e, t) {
12282
12166
  }
12283
12167
  //#endregion
12284
12168
  //#region ../../node_modules/.pnpm/libphonenumber-js@1.12.41/node_modules/libphonenumber-js/es6/PhoneNumber.js
12285
- function co(e) {
12169
+ function ro(e) {
12286
12170
  "@babel/helpers - typeof";
12287
- return co = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
12171
+ return ro = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
12288
12172
  return typeof e;
12289
12173
  } : function(e) {
12290
12174
  return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
12291
- }, co(e);
12175
+ }, ro(e);
12292
12176
  }
12293
- function lo(e, t) {
12177
+ function io(e, t) {
12294
12178
  var n = Object.keys(e);
12295
12179
  if (Object.getOwnPropertySymbols) {
12296
12180
  var r = Object.getOwnPropertySymbols(e);
@@ -12300,72 +12184,72 @@ function lo(e, t) {
12300
12184
  }
12301
12185
  return n;
12302
12186
  }
12303
- function uo(e) {
12187
+ function ao(e) {
12304
12188
  for (var t = 1; t < arguments.length; t++) {
12305
12189
  var n = arguments[t] == null ? {} : arguments[t];
12306
- t % 2 ? lo(Object(n), !0).forEach(function(t) {
12307
- fo(e, t, n[t]);
12308
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : lo(Object(n)).forEach(function(t) {
12190
+ t % 2 ? io(Object(n), !0).forEach(function(t) {
12191
+ oo(e, t, n[t]);
12192
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : io(Object(n)).forEach(function(t) {
12309
12193
  Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
12310
12194
  });
12311
12195
  }
12312
12196
  return e;
12313
12197
  }
12314
- function fo(e, t, n) {
12315
- return (t = go(t)) in e ? Object.defineProperty(e, t, {
12198
+ function oo(e, t, n) {
12199
+ return (t = uo(t)) in e ? Object.defineProperty(e, t, {
12316
12200
  value: n,
12317
12201
  enumerable: !0,
12318
12202
  configurable: !0,
12319
12203
  writable: !0
12320
12204
  }) : e[t] = n, e;
12321
12205
  }
12322
- function po(e, t) {
12206
+ function so(e, t) {
12323
12207
  if (!(e instanceof t)) throw TypeError("Cannot call a class as a function");
12324
12208
  }
12325
- function mo(e, t) {
12209
+ function co(e, t) {
12326
12210
  for (var n = 0; n < t.length; n++) {
12327
12211
  var r = t[n];
12328
- r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(e, go(r.key), r);
12212
+ r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(e, uo(r.key), r);
12329
12213
  }
12330
12214
  }
12331
- function ho(e, t, n) {
12332
- return t && mo(e.prototype, t), n && mo(e, n), Object.defineProperty(e, "prototype", { writable: !1 }), e;
12215
+ function lo(e, t, n) {
12216
+ return t && co(e.prototype, t), n && co(e, n), Object.defineProperty(e, "prototype", { writable: !1 }), e;
12333
12217
  }
12334
- function go(e) {
12335
- var t = _o(e, "string");
12336
- return co(t) == "symbol" ? t : t + "";
12218
+ function uo(e) {
12219
+ var t = fo(e, "string");
12220
+ return ro(t) == "symbol" ? t : t + "";
12337
12221
  }
12338
- function _o(e, t) {
12339
- if (co(e) != "object" || !e) return e;
12222
+ function fo(e, t) {
12223
+ if (ro(e) != "object" || !e) return e;
12340
12224
  var n = e[Symbol.toPrimitive];
12341
12225
  if (n !== void 0) {
12342
12226
  var r = n.call(e, t || "default");
12343
- if (co(r) != "object") return r;
12227
+ if (ro(r) != "object") return r;
12344
12228
  throw TypeError("@@toPrimitive must return a primitive value.");
12345
12229
  }
12346
12230
  return (t === "string" ? String : Number)(e);
12347
12231
  }
12348
- var vo = !1, yo = /* @__PURE__ */ function() {
12232
+ var po = !1, mo = /* @__PURE__ */ function() {
12349
12233
  function e(t, n, r) {
12350
- if (po(this, e), !t) throw TypeError("First argument is required");
12234
+ if (so(this, e), !t) throw TypeError("First argument is required");
12351
12235
  if (typeof t != "string") throw TypeError("First argument must be a string");
12352
12236
  if (t[0] === "+" && !n) throw TypeError("`metadata` argument not passed");
12353
12237
  if (K(n) && K(n.countries)) {
12354
12238
  r = n;
12355
12239
  var i = t;
12356
- if (!So.test(i)) throw Error("Invalid `number` argument passed: must consist of a \"+\" followed by digits");
12357
- var a = Ra(i, void 0, void 0, void 0, r), o = a.countryCallingCode;
12240
+ if (!_o.test(i)) throw Error("Invalid `number` argument passed: must consist of a \"+\" followed by digits");
12241
+ var a = Na(i, void 0, void 0, void 0, r), o = a.countryCallingCode;
12358
12242
  if (n = a.number, t = o, !n) throw Error("Invalid `number` argument passed: too short");
12359
12243
  }
12360
12244
  if (!n) throw TypeError("`nationalNumber` argument is required");
12361
12245
  if (typeof n != "string") throw TypeError("`nationalNumber` argument must be a string");
12362
- na(r);
12363
- var s = xo(t, r), c = s.country, l = s.countryCallingCode;
12246
+ Zi(r);
12247
+ var s = go(t, r), c = s.country, l = s.countryCallingCode;
12364
12248
  this.country = c, this.countryCallingCode = l, this.nationalNumber = n, this.number = "+" + this.countryCallingCode + this.nationalNumber, this.getMetadata = function() {
12365
12249
  return r;
12366
12250
  };
12367
12251
  }
12368
- return ho(e, [
12252
+ return lo(e, [
12369
12253
  {
12370
12254
  key: "setExt",
12371
12255
  value: function(e) {
@@ -12375,19 +12259,19 @@ var vo = !1, yo = /* @__PURE__ */ function() {
12375
12259
  {
12376
12260
  key: "getPossibleCountries",
12377
12261
  value: function() {
12378
- return this.country ? [this.country] : xa(this.countryCallingCode, this.nationalNumber, this.getMetadata());
12262
+ return this.country ? [this.country] : ga(this.countryCallingCode, this.nationalNumber, this.getMetadata());
12379
12263
  }
12380
12264
  },
12381
12265
  {
12382
12266
  key: "isPossible",
12383
12267
  value: function() {
12384
- return fa(this, { v2: !0 }, this.getMetadata());
12268
+ return sa(this, { v2: !0 }, this.getMetadata());
12385
12269
  }
12386
12270
  },
12387
12271
  {
12388
12272
  key: "isValid",
12389
12273
  value: function() {
12390
- return ba(this, { v2: !0 }, this.getMetadata());
12274
+ return ha(this, { v2: !0 }, this.getMetadata());
12391
12275
  }
12392
12276
  },
12393
12277
  {
@@ -12405,13 +12289,13 @@ var vo = !1, yo = /* @__PURE__ */ function() {
12405
12289
  {
12406
12290
  key: "getType",
12407
12291
  value: function() {
12408
- return va(this, { v2: !0 }, this.getMetadata());
12292
+ return pa(this, { v2: !0 }, this.getMetadata());
12409
12293
  }
12410
12294
  },
12411
12295
  {
12412
12296
  key: "format",
12413
12297
  value: function(e, t) {
12414
- return to(this, e, t ? uo(uo({}, t), {}, { v2: !0 }) : { v2: !0 }, this.getMetadata());
12298
+ return Xa(this, e, t ? ao(ao({}, t), {}, { v2: !0 }) : { v2: !0 }, this.getMetadata());
12415
12299
  }
12416
12300
  },
12417
12301
  {
@@ -12433,17 +12317,17 @@ var vo = !1, yo = /* @__PURE__ */ function() {
12433
12317
  }
12434
12318
  }
12435
12319
  ]);
12436
- }(), bo = function(e) {
12320
+ }(), ho = function(e) {
12437
12321
  return /^[A-Z]{2}$/.test(e);
12438
12322
  };
12439
- function xo(e, t) {
12323
+ function go(e, t) {
12440
12324
  var n, r, i = new J(t);
12441
- return bo(e) ? (n = e, i.selectNumberingPlan(n), r = i.countryCallingCode()) : (r = e, vo && i.isNonGeographicCallingCode(r) && (n = "001")), {
12325
+ return ho(e) ? (n = e, i.selectNumberingPlan(n), r = i.countryCallingCode()) : (r = e, po && i.isNonGeographicCallingCode(r) && (n = "001")), {
12442
12326
  country: n,
12443
12327
  countryCallingCode: r
12444
12328
  };
12445
12329
  }
12446
- var So = /^\+\d+$/;
12330
+ var _o = /^\+\d+$/;
12447
12331
  //#endregion
12448
12332
  //#region ../../node_modules/.pnpm/libphonenumber-js@1.12.41/node_modules/libphonenumber-js/es6/ParseError.js
12449
12333
  function Q(e) {
@@ -12454,20 +12338,20 @@ function Q(e) {
12454
12338
  return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
12455
12339
  }, Q(e);
12456
12340
  }
12457
- function Co(e, t) {
12341
+ function vo(e, t) {
12458
12342
  for (var n = 0; n < t.length; n++) {
12459
12343
  var r = t[n];
12460
- r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(e, To(r.key), r);
12344
+ r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(e, bo(r.key), r);
12461
12345
  }
12462
12346
  }
12463
- function wo(e, t, n) {
12464
- return t && Co(e.prototype, t), n && Co(e, n), Object.defineProperty(e, "prototype", { writable: !1 }), e;
12347
+ function yo(e, t, n) {
12348
+ return t && vo(e.prototype, t), n && vo(e, n), Object.defineProperty(e, "prototype", { writable: !1 }), e;
12465
12349
  }
12466
- function To(e) {
12467
- var t = Eo(e, "string");
12350
+ function bo(e) {
12351
+ var t = xo(e, "string");
12468
12352
  return Q(t) == "symbol" ? t : t + "";
12469
12353
  }
12470
- function Eo(e, t) {
12354
+ function xo(e, t) {
12471
12355
  if (Q(e) != "object" || !e) return e;
12472
12356
  var n = e[Symbol.toPrimitive];
12473
12357
  if (n !== void 0) {
@@ -12477,92 +12361,92 @@ function Eo(e, t) {
12477
12361
  }
12478
12362
  return (t === "string" ? String : Number)(e);
12479
12363
  }
12480
- function Do(e, t) {
12364
+ function So(e, t) {
12481
12365
  if (!(e instanceof t)) throw TypeError("Cannot call a class as a function");
12482
12366
  }
12483
- function Oo(e, t, n) {
12484
- return t = Lo(t), ko(e, Po() ? Reflect.construct(t, n || [], Lo(e).constructor) : t.apply(e, n));
12367
+ function Co(e, t, n) {
12368
+ return t = Mo(t), wo(e, ko() ? Reflect.construct(t, n || [], Mo(e).constructor) : t.apply(e, n));
12485
12369
  }
12486
- function ko(e, t) {
12370
+ function wo(e, t) {
12487
12371
  if (t && (Q(t) == "object" || typeof t == "function")) return t;
12488
12372
  if (t !== void 0) throw TypeError("Derived constructors may only return object or undefined");
12489
- return Ao(e);
12373
+ return To(e);
12490
12374
  }
12491
- function Ao(e) {
12375
+ function To(e) {
12492
12376
  if (e === void 0) throw ReferenceError("this hasn't been initialised - super() hasn't been called");
12493
12377
  return e;
12494
12378
  }
12495
- function jo(e, t) {
12379
+ function Eo(e, t) {
12496
12380
  if (typeof t != "function" && t !== null) throw TypeError("Super expression must either be null or a function");
12497
12381
  e.prototype = Object.create(t && t.prototype, { constructor: {
12498
12382
  value: e,
12499
12383
  writable: !0,
12500
12384
  configurable: !0
12501
- } }), Object.defineProperty(e, "prototype", { writable: !1 }), t && Io(e, t);
12385
+ } }), Object.defineProperty(e, "prototype", { writable: !1 }), t && jo(e, t);
12502
12386
  }
12503
- function Mo(e) {
12387
+ function Do(e) {
12504
12388
  var t = typeof Map == "function" ? /* @__PURE__ */ new Map() : void 0;
12505
- return Mo = function(e) {
12506
- if (e === null || !Fo(e)) return e;
12389
+ return Do = function(e) {
12390
+ if (e === null || !Ao(e)) return e;
12507
12391
  if (typeof e != "function") throw TypeError("Super expression must either be null or a function");
12508
12392
  if (t !== void 0) {
12509
12393
  if (t.has(e)) return t.get(e);
12510
12394
  t.set(e, n);
12511
12395
  }
12512
12396
  function n() {
12513
- return No(e, arguments, Lo(this).constructor);
12397
+ return Oo(e, arguments, Mo(this).constructor);
12514
12398
  }
12515
12399
  return n.prototype = Object.create(e.prototype, { constructor: {
12516
12400
  value: n,
12517
12401
  enumerable: !1,
12518
12402
  writable: !0,
12519
12403
  configurable: !0
12520
- } }), Io(n, e);
12521
- }, Mo(e);
12404
+ } }), jo(n, e);
12405
+ }, Do(e);
12522
12406
  }
12523
- function No(e, t, n) {
12524
- if (Po()) return Reflect.construct.apply(null, arguments);
12407
+ function Oo(e, t, n) {
12408
+ if (ko()) return Reflect.construct.apply(null, arguments);
12525
12409
  var r = [null];
12526
12410
  r.push.apply(r, t);
12527
12411
  var i = new (e.bind.apply(e, r))();
12528
- return n && Io(i, n.prototype), i;
12412
+ return n && jo(i, n.prototype), i;
12529
12413
  }
12530
- function Po() {
12414
+ function ko() {
12531
12415
  try {
12532
12416
  var e = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
12533
12417
  } catch {}
12534
- return (Po = function() {
12418
+ return (ko = function() {
12535
12419
  return !!e;
12536
12420
  })();
12537
12421
  }
12538
- function Fo(e) {
12422
+ function Ao(e) {
12539
12423
  try {
12540
12424
  return Function.toString.call(e).indexOf("[native code]") !== -1;
12541
12425
  } catch {
12542
12426
  return typeof e == "function";
12543
12427
  }
12544
12428
  }
12545
- function Io(e, t) {
12546
- return Io = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(e, t) {
12429
+ function jo(e, t) {
12430
+ return jo = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(e, t) {
12547
12431
  return e.__proto__ = t, e;
12548
- }, Io(e, t);
12432
+ }, jo(e, t);
12549
12433
  }
12550
- function Lo(e) {
12551
- return Lo = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function(e) {
12434
+ function Mo(e) {
12435
+ return Mo = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function(e) {
12552
12436
  return e.__proto__ || Object.getPrototypeOf(e);
12553
- }, Lo(e);
12437
+ }, Mo(e);
12554
12438
  }
12555
12439
  var $ = /* @__PURE__ */ function(e) {
12556
12440
  function t(e) {
12557
12441
  var n;
12558
- return Do(this, t), n = Oo(this, t, [e]), Object.setPrototypeOf(n, t.prototype), n.name = n.constructor.name, n;
12442
+ return So(this, t), n = Co(this, t, [e]), Object.setPrototypeOf(n, t.prototype), n.name = n.constructor.name, n;
12559
12443
  }
12560
- return jo(t, e), wo(t);
12561
- }(/* @__PURE__ */ Mo(Error)), Ro = RegExp("(?:" + Ga() + ")$", "i");
12562
- function zo(e) {
12563
- var t = e.search(Ro);
12444
+ return Eo(t, e), yo(t);
12445
+ }(/* @__PURE__ */ Do(Error)), No = RegExp("(?:" + Ba() + ")$", "i");
12446
+ function Po(e) {
12447
+ var t = e.search(No);
12564
12448
  if (t < 0) return {};
12565
- for (var n = e.slice(0, t), r = e.match(Ro), i = 1; i < r.length;) {
12449
+ for (var n = e.slice(0, t), r = e.match(No), i = 1; i < r.length;) {
12566
12450
  if (r[i]) return {
12567
12451
  number: n,
12568
12452
  ext: r[i]
@@ -12572,7 +12456,7 @@ function zo(e) {
12572
12456
  }
12573
12457
  //#endregion
12574
12458
  //#region ../../node_modules/.pnpm/libphonenumber-js@1.12.41/node_modules/libphonenumber-js/es6/helpers/parseDigits.js
12575
- var Bo = {
12459
+ var Fo = {
12576
12460
  0: "0",
12577
12461
  1: "1",
12578
12462
  2: "2",
@@ -12614,15 +12498,15 @@ var Bo = {
12614
12498
  "۸": "8",
12615
12499
  "۹": "9"
12616
12500
  };
12617
- function Vo(e) {
12618
- return Bo[e];
12501
+ function Io(e) {
12502
+ return Fo[e];
12619
12503
  }
12620
12504
  //#endregion
12621
12505
  //#region ../../node_modules/.pnpm/libphonenumber-js@1.12.41/node_modules/libphonenumber-js/es6/parseIncompletePhoneNumber.js
12622
- function Ho(e, t) {
12506
+ function Lo(e, t) {
12623
12507
  var n = typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
12624
12508
  if (n) return (n = n.call(e)).next.bind(n);
12625
- if (Array.isArray(e) || (n = Uo(e)) || t && e && typeof e.length == "number") {
12509
+ if (Array.isArray(e) || (n = Ro(e)) || t && e && typeof e.length == "number") {
12626
12510
  n && (e = n);
12627
12511
  var r = 0;
12628
12512
  return function() {
@@ -12634,26 +12518,26 @@ function Ho(e, t) {
12634
12518
  }
12635
12519
  throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
12636
12520
  }
12637
- function Uo(e, t) {
12521
+ function Ro(e, t) {
12638
12522
  if (e) {
12639
- if (typeof e == "string") return Wo(e, t);
12523
+ if (typeof e == "string") return zo(e, t);
12640
12524
  var n = {}.toString.call(e).slice(8, -1);
12641
- return n === "Object" && e.constructor && (n = e.constructor.name), n === "Map" || n === "Set" ? Array.from(e) : n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n) ? Wo(e, t) : void 0;
12525
+ return n === "Object" && e.constructor && (n = e.constructor.name), n === "Map" || n === "Set" ? Array.from(e) : n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n) ? zo(e, t) : void 0;
12642
12526
  }
12643
12527
  }
12644
- function Wo(e, t) {
12528
+ function zo(e, t) {
12645
12529
  (t == null || t > e.length) && (t = e.length);
12646
12530
  for (var n = 0, r = Array(t); n < t; n++) r[n] = e[n];
12647
12531
  return r;
12648
12532
  }
12649
- function Go(e) {
12650
- for (var t = "", n = Ho(e.split("")), r; !(r = n()).done;) {
12533
+ function Bo(e) {
12534
+ for (var t = "", n = Lo(e.split("")), r; !(r = n()).done;) {
12651
12535
  var i = r.value;
12652
- t += Ko(i, t) || "";
12536
+ t += Vo(i, t) || "";
12653
12537
  }
12654
12538
  return t;
12655
12539
  }
12656
- function Ko(e, t, n) {
12540
+ function Vo(e, t, n) {
12657
12541
  if (e === "+") {
12658
12542
  if (t) {
12659
12543
  typeof n == "function" && n("end");
@@ -12661,46 +12545,46 @@ function Ko(e, t, n) {
12661
12545
  }
12662
12546
  return "+";
12663
12547
  }
12664
- return Vo(e);
12548
+ return Io(e);
12665
12549
  }
12666
- var qo = "([" + X + "]|[\\-\\.\\(\\)]?)", Jo = "^\\+" + qo + "*[" + X + "]" + qo + "*$", Yo = new RegExp(Jo, "g"), Xo = X, Zo = "[" + Xo + "]+((\\-)*[" + Xo + "])*", Qo = "[a-zA-Z]+((\\-)*[" + Xo + "])*", $o = "^(" + Zo + "\\.)*" + Qo + "\\.?$", es = new RegExp($o, "g"), ts = "tel:", ns = ";phone-context=", rs = ";isub=";
12667
- function is(e) {
12668
- var t = e.indexOf(ns);
12550
+ var Ho = "([" + X + "]|[\\-\\.\\(\\)]?)", Uo = "^\\+" + Ho + "*[" + X + "]" + Ho + "*$", Wo = new RegExp(Uo, "g"), Go = X, Ko = "[" + Go + "]+((\\-)*[" + Go + "])*", qo = "[a-zA-Z]+((\\-)*[" + Go + "])*", Jo = "^(" + Ko + "\\.)*" + qo + "\\.?$", Yo = new RegExp(Jo, "g"), Xo = "tel:", Zo = ";phone-context=", Qo = ";isub=";
12551
+ function $o(e) {
12552
+ var t = e.indexOf(Zo);
12669
12553
  if (t < 0) return null;
12670
- var n = t + ns.length;
12554
+ var n = t + Zo.length;
12671
12555
  if (n >= e.length) return "";
12672
12556
  var r = e.indexOf(";", n);
12673
12557
  return r >= 0 ? e.substring(n, r) : e.substring(n);
12674
12558
  }
12675
- function as(e) {
12676
- return e === null ? !0 : e.length === 0 ? !1 : Yo.test(e) || es.test(e);
12559
+ function es(e) {
12560
+ return e === null ? !0 : e.length === 0 ? !1 : Wo.test(e) || Yo.test(e);
12677
12561
  }
12678
12562
  //#endregion
12679
12563
  //#region ../../node_modules/.pnpm/libphonenumber-js@1.12.41/node_modules/libphonenumber-js/es6/helpers/extractFormattedPhoneNumberFromPossibleRfc3966NumberUri.js
12680
- function os(e, t) {
12681
- var n = t.extractFormattedPhoneNumber, r = is(e);
12682
- if (!as(r)) throw new $("NOT_A_NUMBER");
12564
+ function ts(e, t) {
12565
+ var n = t.extractFormattedPhoneNumber, r = $o(e);
12566
+ if (!es(r)) throw new $("NOT_A_NUMBER");
12683
12567
  var i;
12684
12568
  if (r === null) i = n(e) || "";
12685
12569
  else {
12686
12570
  i = "", r.charAt(0) === "+" && (i += r);
12687
- var a = e.indexOf(ts), o = a >= 0 ? a + ts.length : 0, s = e.indexOf(ns);
12571
+ var a = e.indexOf(Xo), o = a >= 0 ? a + Xo.length : 0, s = e.indexOf(Zo);
12688
12572
  i += e.substring(o, s);
12689
12573
  }
12690
- var c = i.indexOf(rs);
12574
+ var c = i.indexOf(Qo);
12691
12575
  if (c > 0 && (i = i.substring(0, c)), i !== "") return i;
12692
12576
  }
12693
12577
  //#endregion
12694
12578
  //#region ../../node_modules/.pnpm/libphonenumber-js@1.12.41/node_modules/libphonenumber-js/es6/parse.js
12695
- var ss = 250, cs = RegExp("[" + wa + X + "]"), ls = RegExp("[^" + X + "#]+$"), us = !1;
12696
- function ds(e, t, n) {
12579
+ var ns = 250, rs = RegExp("[" + ya + X + "]"), is = RegExp("[^" + X + "#]+$"), as = !1;
12580
+ function os(e, t, n) {
12697
12581
  if (t ||= {}, n = new J(n), t.defaultCountry && !n.hasCountry(t.defaultCountry)) throw t.v2 ? new $("INVALID_COUNTRY") : Error(`Unknown country: ${t.defaultCountry}`);
12698
- var r = ps(e, t.v2, t.extract), i = r.number, a = r.ext, o = r.error;
12582
+ var r = cs(e, t.v2, t.extract), i = r.number, a = r.ext, o = r.error;
12699
12583
  if (!i) {
12700
12584
  if (t.v2) throw o === "TOO_SHORT" ? new $("TOO_SHORT") : new $("NOT_A_NUMBER");
12701
12585
  return {};
12702
12586
  }
12703
- var s = hs(i, t.defaultCountry, t.defaultCallingCode, n), c = s.country, l = s.nationalNumber, u = s.countryCallingCode, d = s.countryCallingCodeSource, f = s.carrierCode;
12587
+ var s = us(i, t.defaultCountry, t.defaultCallingCode, n), c = s.country, l = s.nationalNumber, u = s.countryCallingCode, d = s.countryCallingCodeSource, f = s.carrierCode;
12704
12588
  if (!n.hasSelectedNumberingPlan()) {
12705
12589
  if (t.v2) throw new $("INVALID_COUNTRY");
12706
12590
  return {};
@@ -12715,7 +12599,7 @@ function ds(e, t, n) {
12715
12599
  return {};
12716
12600
  }
12717
12601
  if (t.v2) {
12718
- var p = new yo(u, l, n.metadata);
12602
+ var p = new mo(u, l, n.metadata);
12719
12603
  return c && (p.country = c), f && (p.carrierCode = f), a && (p.ext = a), p.__countryCallingCodeSource = d, p;
12720
12604
  }
12721
12605
  var m = (t.extended ? n.hasSelectedNumberingPlan() : c) ? Y(l, n.nationalNumberPattern()) : !1;
@@ -12724,48 +12608,48 @@ function ds(e, t, n) {
12724
12608
  countryCallingCode: u,
12725
12609
  carrierCode: f,
12726
12610
  valid: m,
12727
- possible: m ? !0 : !!(t.extended === !0 && n.possibleLengths() && pa(l, c, n)),
12611
+ possible: m ? !0 : !!(t.extended === !0 && n.possibleLengths() && ca(l, c, n)),
12728
12612
  phone: l,
12729
12613
  ext: a
12730
- } : m ? ms(c, l, a) : {};
12614
+ } : m ? ls(c, l, a) : {};
12731
12615
  }
12732
- function fs(e, t, n) {
12616
+ function ss(e, t, n) {
12733
12617
  if (e) {
12734
- if (e.length > ss) {
12618
+ if (e.length > ns) {
12735
12619
  if (n) throw new $("TOO_LONG");
12736
12620
  return;
12737
12621
  }
12738
12622
  if (t === !1) return e;
12739
- var r = e.search(cs);
12740
- if (!(r < 0)) return e.slice(r).replace(ls, "");
12623
+ var r = e.search(rs);
12624
+ if (!(r < 0)) return e.slice(r).replace(is, "");
12741
12625
  }
12742
12626
  }
12743
- function ps(e, t, n) {
12744
- var r = os(e, { extractFormattedPhoneNumber: function(e) {
12745
- return fs(e, n, t);
12627
+ function cs(e, t, n) {
12628
+ var r = ts(e, { extractFormattedPhoneNumber: function(e) {
12629
+ return ss(e, n, t);
12746
12630
  } });
12747
12631
  if (!r) return {};
12748
- if (!Za(r)) return Qa(r) ? { error: "TOO_SHORT" } : {};
12749
- var i = zo(r);
12632
+ if (!Ka(r)) return qa(r) ? { error: "TOO_SHORT" } : {};
12633
+ var i = Po(r);
12750
12634
  return i.ext ? i : { number: r };
12751
12635
  }
12752
- function ms(e, t, n) {
12636
+ function ls(e, t, n) {
12753
12637
  var r = {
12754
12638
  country: e,
12755
12639
  phone: t
12756
12640
  };
12757
12641
  return n && (r.ext = n), r;
12758
12642
  }
12759
- function hs(e, t, n, r) {
12760
- var i = Ra(Go(e), void 0, t, n, r.metadata), a = i.countryCallingCodeSource, o = i.countryCallingCode, s = i.number, c;
12643
+ function us(e, t, n, r) {
12644
+ var i = Na(Bo(e), void 0, t, n, r.metadata), a = i.countryCallingCodeSource, o = i.countryCallingCode, s = i.number, c;
12761
12645
  if (o) r.selectNumberingPlan(o);
12762
- else if (s && (t || n)) r.selectNumberingPlan(t, n), t ? c = t : us && r.isNonGeographicCallingCode(n) && (c = "001"), o = n || ia(t, r.metadata);
12646
+ else if (s && (t || n)) r.selectNumberingPlan(t, n), t ? c = t : as && r.isNonGeographicCallingCode(n) && (c = "001"), o = n || $i(t, r.metadata);
12763
12647
  else return {};
12764
12648
  if (!s) return {
12765
12649
  countryCallingCodeSource: a,
12766
12650
  countryCallingCode: o
12767
12651
  };
12768
- var l = Pa(Go(s), c, r), u = l.nationalNumber, d = l.carrierCode, f = Na(o, {
12652
+ var l = ka(Bo(s), c, r), u = l.nationalNumber, d = l.carrierCode, f = Oa(o, {
12769
12653
  nationalNumber: u,
12770
12654
  metadata: r
12771
12655
  });
@@ -12779,15 +12663,15 @@ function hs(e, t, n, r) {
12779
12663
  }
12780
12664
  //#endregion
12781
12665
  //#region ../../node_modules/.pnpm/libphonenumber-js@1.12.41/node_modules/libphonenumber-js/es6/parsePhoneNumberWithError_.js
12782
- function gs(e) {
12666
+ function ds(e) {
12783
12667
  "@babel/helpers - typeof";
12784
- return gs = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
12668
+ return ds = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
12785
12669
  return typeof e;
12786
12670
  } : function(e) {
12787
12671
  return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
12788
- }, gs(e);
12672
+ }, ds(e);
12789
12673
  }
12790
- function _s(e, t) {
12674
+ function fs(e, t) {
12791
12675
  var n = Object.keys(e);
12792
12676
  if (Object.getOwnPropertySymbols) {
12793
12677
  var r = Object.getOwnPropertySymbols(e);
@@ -12797,53 +12681,53 @@ function _s(e, t) {
12797
12681
  }
12798
12682
  return n;
12799
12683
  }
12800
- function vs(e) {
12684
+ function ps(e) {
12801
12685
  for (var t = 1; t < arguments.length; t++) {
12802
12686
  var n = arguments[t] == null ? {} : arguments[t];
12803
- t % 2 ? _s(Object(n), !0).forEach(function(t) {
12804
- ys(e, t, n[t]);
12805
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : _s(Object(n)).forEach(function(t) {
12687
+ t % 2 ? fs(Object(n), !0).forEach(function(t) {
12688
+ ms(e, t, n[t]);
12689
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : fs(Object(n)).forEach(function(t) {
12806
12690
  Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
12807
12691
  });
12808
12692
  }
12809
12693
  return e;
12810
12694
  }
12811
- function ys(e, t, n) {
12812
- return (t = bs(t)) in e ? Object.defineProperty(e, t, {
12695
+ function ms(e, t, n) {
12696
+ return (t = hs(t)) in e ? Object.defineProperty(e, t, {
12813
12697
  value: n,
12814
12698
  enumerable: !0,
12815
12699
  configurable: !0,
12816
12700
  writable: !0
12817
12701
  }) : e[t] = n, e;
12818
12702
  }
12819
- function bs(e) {
12820
- var t = xs(e, "string");
12821
- return gs(t) == "symbol" ? t : t + "";
12703
+ function hs(e) {
12704
+ var t = gs(e, "string");
12705
+ return ds(t) == "symbol" ? t : t + "";
12822
12706
  }
12823
- function xs(e, t) {
12824
- if (gs(e) != "object" || !e) return e;
12707
+ function gs(e, t) {
12708
+ if (ds(e) != "object" || !e) return e;
12825
12709
  var n = e[Symbol.toPrimitive];
12826
12710
  if (n !== void 0) {
12827
12711
  var r = n.call(e, t || "default");
12828
- if (gs(r) != "object") return r;
12712
+ if (ds(r) != "object") return r;
12829
12713
  throw TypeError("@@toPrimitive must return a primitive value.");
12830
12714
  }
12831
12715
  return (t === "string" ? String : Number)(e);
12832
12716
  }
12833
- function Ss(e, t, n) {
12834
- return ds(e, vs(vs({}, t), {}, { v2: !0 }), n);
12717
+ function _s(e, t, n) {
12718
+ return os(e, ps(ps({}, t), {}, { v2: !0 }), n);
12835
12719
  }
12836
12720
  //#endregion
12837
12721
  //#region ../../node_modules/.pnpm/libphonenumber-js@1.12.41/node_modules/libphonenumber-js/es6/normalizeArguments.js
12838
- function Cs(e) {
12722
+ function vs(e) {
12839
12723
  "@babel/helpers - typeof";
12840
- return Cs = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
12724
+ return vs = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
12841
12725
  return typeof e;
12842
12726
  } : function(e) {
12843
12727
  return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
12844
- }, Cs(e);
12728
+ }, vs(e);
12845
12729
  }
12846
- function ws(e, t) {
12730
+ function ys(e, t) {
12847
12731
  var n = Object.keys(e);
12848
12732
  if (Object.getOwnPropertySymbols) {
12849
12733
  var r = Object.getOwnPropertySymbols(e);
@@ -12853,58 +12737,58 @@ function ws(e, t) {
12853
12737
  }
12854
12738
  return n;
12855
12739
  }
12856
- function Ts(e) {
12740
+ function bs(e) {
12857
12741
  for (var t = 1; t < arguments.length; t++) {
12858
12742
  var n = arguments[t] == null ? {} : arguments[t];
12859
- t % 2 ? ws(Object(n), !0).forEach(function(t) {
12860
- Es(e, t, n[t]);
12861
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : ws(Object(n)).forEach(function(t) {
12743
+ t % 2 ? ys(Object(n), !0).forEach(function(t) {
12744
+ xs(e, t, n[t]);
12745
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : ys(Object(n)).forEach(function(t) {
12862
12746
  Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
12863
12747
  });
12864
12748
  }
12865
12749
  return e;
12866
12750
  }
12867
- function Es(e, t, n) {
12868
- return (t = Ds(t)) in e ? Object.defineProperty(e, t, {
12751
+ function xs(e, t, n) {
12752
+ return (t = Ss(t)) in e ? Object.defineProperty(e, t, {
12869
12753
  value: n,
12870
12754
  enumerable: !0,
12871
12755
  configurable: !0,
12872
12756
  writable: !0
12873
12757
  }) : e[t] = n, e;
12874
12758
  }
12875
- function Ds(e) {
12876
- var t = Os(e, "string");
12877
- return Cs(t) == "symbol" ? t : t + "";
12759
+ function Ss(e) {
12760
+ var t = Cs(e, "string");
12761
+ return vs(t) == "symbol" ? t : t + "";
12878
12762
  }
12879
- function Os(e, t) {
12880
- if (Cs(e) != "object" || !e) return e;
12763
+ function Cs(e, t) {
12764
+ if (vs(e) != "object" || !e) return e;
12881
12765
  var n = e[Symbol.toPrimitive];
12882
12766
  if (n !== void 0) {
12883
12767
  var r = n.call(e, t || "default");
12884
- if (Cs(r) != "object") return r;
12768
+ if (vs(r) != "object") return r;
12885
12769
  throw TypeError("@@toPrimitive must return a primitive value.");
12886
12770
  }
12887
12771
  return (t === "string" ? String : Number)(e);
12888
12772
  }
12889
- function ks(e, t) {
12890
- return Ps(e) || Ns(e, t) || js(e, t) || As();
12773
+ function ws(e, t) {
12774
+ return ks(e) || Os(e, t) || Es(e, t) || Ts();
12891
12775
  }
12892
- function As() {
12776
+ function Ts() {
12893
12777
  throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
12894
12778
  }
12895
- function js(e, t) {
12779
+ function Es(e, t) {
12896
12780
  if (e) {
12897
- if (typeof e == "string") return Ms(e, t);
12781
+ if (typeof e == "string") return Ds(e, t);
12898
12782
  var n = {}.toString.call(e).slice(8, -1);
12899
- return n === "Object" && e.constructor && (n = e.constructor.name), n === "Map" || n === "Set" ? Array.from(e) : n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n) ? Ms(e, t) : void 0;
12783
+ return n === "Object" && e.constructor && (n = e.constructor.name), n === "Map" || n === "Set" ? Array.from(e) : n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n) ? Ds(e, t) : void 0;
12900
12784
  }
12901
12785
  }
12902
- function Ms(e, t) {
12786
+ function Ds(e, t) {
12903
12787
  (t == null || t > e.length) && (t = e.length);
12904
12788
  for (var n = 0, r = Array(t); n < t; n++) r[n] = e[n];
12905
12789
  return r;
12906
12790
  }
12907
- function Ns(e, t) {
12791
+ function Os(e, t) {
12908
12792
  var n = e == null ? null : typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
12909
12793
  if (n != null) {
12910
12794
  var r, i, a, o, s = [], c = !0, l = !1;
@@ -12925,14 +12809,14 @@ function Ns(e, t) {
12925
12809
  return s;
12926
12810
  }
12927
12811
  }
12928
- function Ps(e) {
12812
+ function ks(e) {
12929
12813
  if (Array.isArray(e)) return e;
12930
12814
  }
12931
- function Fs(e) {
12932
- var t = ks(Array.prototype.slice.call(e), 4), n = t[0], r = t[1], i = t[2], a = t[3], o, s, c;
12815
+ function As(e) {
12816
+ var t = ws(Array.prototype.slice.call(e), 4), n = t[0], r = t[1], i = t[2], a = t[3], o, s, c;
12933
12817
  if (typeof n == "string") o = n;
12934
12818
  else throw TypeError("A text for parsing must be a string.");
12935
- if (!r || typeof r == "string") a ? (s = i, c = a) : (s = void 0, c = i), r && (s = Ts({ defaultCountry: r }, s));
12819
+ if (!r || typeof r == "string") a ? (s = i, c = a) : (s = void 0, c = i), r && (s = bs({ defaultCountry: r }, s));
12936
12820
  else if (K(r)) i ? (s = r, c = i) : c = r;
12937
12821
  else throw Error(`Invalid second argument: ${r}`);
12938
12822
  return {
@@ -12943,30 +12827,30 @@ function Fs(e) {
12943
12827
  }
12944
12828
  //#endregion
12945
12829
  //#region ../../node_modules/.pnpm/libphonenumber-js@1.12.41/node_modules/libphonenumber-js/es6/parsePhoneNumberWithError.js
12946
- function Is() {
12947
- var e = Fs(arguments), t = e.text, n = e.options, r = e.metadata;
12948
- return Ss(t, n, r);
12830
+ function js() {
12831
+ var e = As(arguments), t = e.text, n = e.options, r = e.metadata;
12832
+ return _s(t, n, r);
12949
12833
  }
12950
12834
  //#endregion
12951
12835
  //#region ../../node_modules/.pnpm/libphonenumber-js@1.12.41/node_modules/libphonenumber-js/min/exports/parsePhoneNumberWithError.js
12952
- function Ls() {
12953
- return zi(Is, arguments);
12836
+ function Ms() {
12837
+ return Pi(js, arguments);
12954
12838
  }
12955
12839
  //#endregion
12956
12840
  //#region src/models/phone-number/phoneNumberForm.model.ts
12957
- var Rs = pe.string().refine((e) => {
12841
+ var Ns = de.string().refine((e) => {
12958
12842
  try {
12959
- let t = Ls(e);
12843
+ let t = Ms(e);
12960
12844
  return t.isPossible() && t.isValid();
12961
12845
  } catch {
12962
12846
  return !1;
12963
12847
  }
12964
- }, { message: bn.global.t("wise_crm.form.errors.invalid_phone_number") });
12848
+ }, { message: vn.global.t("wise_crm.form.errors.invalid_phone_number") });
12965
12849
  //#endregion
12966
12850
  //#region src/api/mutations/contactPersonCreate.mutation.ts
12967
- function zs() {
12968
- return a({
12969
- queryFn: async ({ body: e }) => await Ni.create({
12851
+ function Ps() {
12852
+ return t({
12853
+ queryFn: async ({ body: e }) => await Oi.create({
12970
12854
  address: null,
12971
12855
  customFields: null,
12972
12856
  email: e.email,
@@ -12980,7 +12864,7 @@ function zs() {
12980
12864
  }
12981
12865
  //#endregion
12982
12866
  //#region src/components/app/dialog/AppDialog.vue
12983
- var Bs = /* @__PURE__ */ O({
12867
+ var Fs = /* @__PURE__ */ O({
12984
12868
  __name: "AppDialog",
12985
12869
  props: {
12986
12870
  title: {},
@@ -12992,25 +12876,25 @@ var Bs = /* @__PURE__ */ O({
12992
12876
  function i() {
12993
12877
  r("close");
12994
12878
  }
12995
- return (e, t) => (M(), S(I(Oe), {
12879
+ return (e, t) => (j(), S(F(Ee), {
12996
12880
  "class-config": { content: "max-w-xl w-full" },
12997
12881
  onClose: i
12998
12882
  }, {
12999
- default: L(() => [D(mn, { class: "gap-xl flex flex-1 flex-col" }, {
13000
- default: L(() => [D(Un, {
12883
+ default: L(() => [D(fn, { class: "gap-xl flex flex-1 flex-col" }, {
12884
+ default: L(() => [D(Vn, {
13001
12885
  title: n.title,
13002
12886
  description: n.description,
13003
12887
  icon: "user"
13004
12888
  }, {
13005
- "closse-button": L(() => [D(I(ke))]),
12889
+ "closse-button": L(() => [D(F(De))]),
13006
12890
  _: 1
13007
- }, 8, ["title", "description"]), P(e.$slots, "default")]),
12891
+ }, 8, ["title", "description"]), N(e.$slots, "default")]),
13008
12892
  _: 3
13009
12893
  })]),
13010
12894
  _: 3
13011
12895
  }));
13012
12896
  }
13013
- }), Vs = ["disabled", "type"], Hs = /* @__PURE__ */ O({
12897
+ }), Is = ["disabled", "type"], Ls = /* @__PURE__ */ O({
13014
12898
  __name: "AppUnstyledButton",
13015
12899
  props: {
13016
12900
  disabled: {
@@ -13021,14 +12905,14 @@ var Bs = /* @__PURE__ */ O({
13021
12905
  },
13022
12906
  emits: ["click"],
13023
12907
  setup(e) {
13024
- return (t, n) => (M(), w("button", {
12908
+ return (t, n) => (j(), w("button", {
13025
12909
  disabled: e.disabled,
13026
12910
  type: e.type,
13027
12911
  class: "ring-ring cursor-pointer focus-visible:outline-fg-brand-primary-alt disabled:cursor-not-allowed disabled:opacity-50",
13028
12912
  onClick: n[0] ||= (e) => t.$emit("click", e)
13029
- }, [P(t.$slots, "default")], 8, Vs));
12913
+ }, [N(t.$slots, "default")], 8, Is));
13030
12914
  }
13031
- }), Us = /* @__PURE__ */ O({
12915
+ }), Rs = /* @__PURE__ */ O({
13032
12916
  __name: "ContactPersonFormContactField",
13033
12917
  props: {
13034
12918
  email: {},
@@ -13037,33 +12921,33 @@ var Bs = /* @__PURE__ */ O({
13037
12921
  },
13038
12922
  setup(e) {
13039
12923
  let t = e, n = R();
13040
- return (e, r) => (M(), w(me, null, [
13041
- D(I(Je), A(I(U)(t.email), {
13042
- label: I(n).t("wise_crm.contact.create_dialog.form.fields.email"),
13043
- placeholder: I(n).t("wise_crm.contact.create_dialog.form.fields.email"),
12924
+ return (e, r) => (j(), w(b, null, [
12925
+ D(F(Ke), k(F(U)(t.email), {
12926
+ label: F(n).t("wise_crm.contact.create_dialog.form.fields.email"),
12927
+ placeholder: F(n).t("wise_crm.contact.create_dialog.form.fields.email"),
13044
12928
  class: "col-span-2"
13045
12929
  }), null, 16, ["label", "placeholder"]),
13046
- D(Qn, { class: "col-span-2" }, {
13047
- default: L(() => [E(F(I(n).t("wise_crm.contact.create_dialog.form.seperator_label")), 1)]),
12930
+ D(Xn, { class: "col-span-2" }, {
12931
+ default: L(() => [E(P(F(n).t("wise_crm.contact.create_dialog.form.seperator_label")), 1)]),
13048
12932
  _: 1
13049
12933
  }),
13050
- D(I(Re), A(I(U)(t.mobilePhone), {
13051
- label: I(n).t("wise_crm.contact.create_dialog.form.fields.mobile_phone"),
13052
- placeholder: I(n).t("wise_crm.contact.create_dialog.form.fields.mobile_phone"),
12934
+ D(F(Ie), k(F(U)(t.mobilePhone), {
12935
+ label: F(n).t("wise_crm.contact.create_dialog.form.fields.mobile_phone"),
12936
+ placeholder: F(n).t("wise_crm.contact.create_dialog.form.fields.mobile_phone"),
13053
12937
  class: "col-span-2"
13054
12938
  }), null, 16, ["label", "placeholder"]),
13055
- D(Qn, { class: "col-span-2" }, {
13056
- default: L(() => [E(F(I(n).t("wise_crm.contact.create_dialog.form.seperator_label")), 1)]),
12939
+ D(Xn, { class: "col-span-2" }, {
12940
+ default: L(() => [E(P(F(n).t("wise_crm.contact.create_dialog.form.seperator_label")), 1)]),
13057
12941
  _: 1
13058
12942
  }),
13059
- D(I(Re), A(I(U)(t.phone), {
13060
- label: I(n).t("wise_crm.contact.create_dialog.form.fields.phone"),
13061
- placeholder: I(n).t("wise_crm.contact.create_dialog.form.fields.phone"),
12943
+ D(F(Ie), k(F(U)(t.phone), {
12944
+ label: F(n).t("wise_crm.contact.create_dialog.form.fields.phone"),
12945
+ placeholder: F(n).t("wise_crm.contact.create_dialog.form.fields.phone"),
13062
12946
  class: "col-span-2"
13063
12947
  }), null, 16, ["label", "placeholder"])
13064
12948
  ], 64));
13065
12949
  }
13066
- }), Ws = /* @__PURE__ */ O({
12950
+ }), zs = /* @__PURE__ */ O({
13067
12951
  __name: "ContactPersonFormNameField",
13068
12952
  props: {
13069
12953
  firstName: {},
@@ -13071,18 +12955,18 @@ var Bs = /* @__PURE__ */ O({
13071
12955
  },
13072
12956
  setup(e) {
13073
12957
  let t = e, n = R();
13074
- return (e, r) => (M(), w(me, null, [D(I(Je), A(I(U)(t.firstName), {
13075
- label: I(n).t("wise_crm.contact.create_dialog.form.fields.first_name"),
13076
- placeholder: I(n).t("wise_crm.contact.create_dialog.form.fields.first_name")
13077
- }), null, 16, ["label", "placeholder"]), D(I(Je), A(I(U)(t.lastName), {
13078
- label: I(n).t("wise_crm.contact.create_dialog.form.fields.last_name"),
13079
- placeholder: I(n).t("wise_crm.contact.create_dialog.form.fields.last_name")
12958
+ return (e, r) => (j(), w(b, null, [D(F(Ke), k(F(U)(t.firstName), {
12959
+ label: F(n).t("wise_crm.contact.create_dialog.form.fields.first_name"),
12960
+ placeholder: F(n).t("wise_crm.contact.create_dialog.form.fields.first_name")
12961
+ }), null, 16, ["label", "placeholder"]), D(F(Ke), k(F(U)(t.lastName), {
12962
+ label: F(n).t("wise_crm.contact.create_dialog.form.fields.last_name"),
12963
+ placeholder: F(n).t("wise_crm.contact.create_dialog.form.fields.last_name")
13080
12964
  }), null, 16, ["label", "placeholder"])], 64));
13081
12965
  }
13082
- }), Gs = b.object({
13083
- label: b.string(),
13084
- value: St
13085
- }), Ks = /* @__PURE__ */ O({
12966
+ }), Bs = fe.object({
12967
+ label: fe.string(),
12968
+ value: bt
12969
+ }), Vs = /* @__PURE__ */ O({
13086
12970
  __name: "AppIconLabelPair",
13087
12971
  props: {
13088
12972
  icon: {},
@@ -13092,16 +12976,16 @@ var Bs = /* @__PURE__ */ O({
13092
12976
  },
13093
12977
  setup(e) {
13094
12978
  let t = e;
13095
- return (e, n) => (M(), w("div", { class: j([{
12979
+ return (e, n) => (j(), w("div", { class: A([{
13096
12980
  "text-placeholder/50": t.label === null,
13097
12981
  "text-secondary": t.label !== null && !t.textColor,
13098
12982
  [t.textColor]: t.label !== null && !!t.textColor
13099
- }, "gap-md flex items-center"]) }, [D(I(B), {
12983
+ }, "gap-md flex items-center"]) }, [D(F(B), {
13100
12984
  icon: t.icon,
13101
12985
  class: "size-4 shrink-0"
13102
- }, null, 8, ["icon"]), T("p", null, F(t.label === null ? t.placeholder : t.label), 1)], 2));
12986
+ }, null, 8, ["icon"]), T("p", null, P(t.label === null ? t.placeholder : t.label), 1)], 2));
13103
12987
  }
13104
- }), qs = /* @__PURE__ */ O({
12988
+ }), Hs = /* @__PURE__ */ O({
13105
12989
  __name: "CrmDetailAccordionRoot",
13106
12990
  props: {
13107
12991
  defaultValues: {},
@@ -13109,20 +12993,20 @@ var Bs = /* @__PURE__ */ O({
13109
12993
  },
13110
12994
  setup(e) {
13111
12995
  let t = e;
13112
- return (e, n) => (M(), S(I(mt), {
12996
+ return (e, n) => (j(), S(F(ft), {
13113
12997
  collapsible: !0,
13114
12998
  "default-value": t.defaultValues,
13115
12999
  type: t.type,
13116
13000
  class: "gap-md flex flex-col"
13117
13001
  }, {
13118
- default: L(() => [P(e.$slots, "default")]),
13002
+ default: L(() => [N(e.$slots, "default")]),
13119
13003
  _: 3
13120
13004
  }, 8, ["default-value", "type"]));
13121
13005
  }
13122
- }), Js = { class: "group/item group/accordion-header gap-sm bg-tertiary pr-sm pl-lg outline-brand-600 relative isolate flex h-12 w-full items-center justify-between rounded-xl focus:outline-2" }, Ys = { class: "sr-only" }, Xs = { class: "gap-sm flex items-center" }, Zs = { class: "gap-xs flex items-center justify-between" }, Qs = {
13006
+ }), Us = { class: "group/item group/accordion-header gap-sm bg-tertiary pr-sm pl-lg outline-brand-600 relative isolate flex h-12 w-full items-center justify-between rounded-xl focus:outline-2" }, Ws = { class: "sr-only" }, Gs = { class: "gap-sm flex items-center" }, Ks = { class: "gap-xs flex items-center justify-between" }, qs = {
13123
13007
  key: 0,
13124
13008
  class: "gap-sm px-md pointer-events-none flex items-center"
13125
- }, $s = /* @__PURE__ */ O({
13009
+ }, Js = /* @__PURE__ */ O({
13126
13010
  __name: "CrmDetailSidebarAccordionItem",
13127
13011
  props: {
13128
13012
  isEmpty: {
@@ -13135,35 +13019,35 @@ var Bs = /* @__PURE__ */ O({
13135
13019
  },
13136
13020
  setup(e) {
13137
13021
  let t = e;
13138
- return (n, r) => (M(), S(I(pt), {
13022
+ return (n, r) => (j(), S(F(dt), {
13139
13023
  value: t.value,
13140
13024
  disabled: t.isEmpty
13141
13025
  }, {
13142
- default: L(({ open: r }) => [D(I(ft), null, {
13143
- default: L(() => [T("div", Js, [
13144
- D(I(ht), { class: "ring-brand-500 absolute inset-0 rounded-xl ring-offset-1 duration-200 outline-none focus-visible:ring-2" }, {
13145
- default: L(() => [T("span", Ys, F(e.label), 1)]),
13026
+ default: L(({ open: r }) => [D(F(ut), null, {
13027
+ default: L(() => [T("div", Us, [
13028
+ D(F(pt), { class: "ring-brand-500 absolute inset-0 rounded-xl ring-offset-1 duration-200 outline-none focus-visible:ring-2" }, {
13029
+ default: L(() => [T("span", Ws, P(e.label), 1)]),
13146
13030
  _: 1
13147
13031
  }),
13148
- T("span", Xs, [D(I(B), {
13032
+ T("span", Gs, [D(F(B), {
13149
13033
  icon: t.icon,
13150
13034
  class: "text-secondary size-4"
13151
- }, null, 8, ["icon"]), T("span", { class: j([{
13035
+ }, null, 8, ["icon"]), T("span", { class: A([{
13152
13036
  "text-primary": r && !t.isEmpty,
13153
13037
  "text-secondary": !r
13154
- }, "text-primary text-sm font-semibold"]) }, F(e.label), 3)]),
13155
- T("div", Zs, [P(n.$slots, "actions"), t.isEmpty ? C("", !0) : (M(), w("div", Qs, [D(I(B), {
13156
- class: j([{ "-rotate-180": r }, "text-secondary size-4 duration-300"]),
13038
+ }, "text-primary text-sm font-semibold"]) }, P(e.label), 3)]),
13039
+ T("div", Ks, [N(n.$slots, "actions"), t.isEmpty ? C("", !0) : (j(), w("div", qs, [D(F(B), {
13040
+ class: A([{ "-rotate-180": r }, "text-secondary size-4 duration-300"]),
13157
13041
  icon: "chevronDown"
13158
13042
  }, null, 8, ["class"])]))])
13159
13043
  ])]),
13160
13044
  _: 2
13161
- }, 1024), D(I(lt), { initial: !1 }, {
13162
- default: L(() => [r ? (M(), S(I(dt), {
13045
+ }, 1024), D(F(st), { initial: !1 }, {
13046
+ default: L(() => [r ? (j(), S(F(lt), {
13163
13047
  key: 0,
13164
13048
  class: "overflow-clip"
13165
13049
  }, {
13166
- default: L(() => [D(I(ut), {
13050
+ default: L(() => [D(F(ct), {
13167
13051
  initial: {
13168
13052
  opacity: 0,
13169
13053
  height: 0,
@@ -13187,10 +13071,10 @@ var Bs = /* @__PURE__ */ O({
13187
13071
  type: "spring"
13188
13072
  }
13189
13073
  }, {
13190
- default: L(() => [T("div", { class: j([{
13074
+ default: L(() => [T("div", { class: A([{
13191
13075
  "py-md": !t.isEmpty,
13192
13076
  "py-0": t.isEmpty
13193
- }, "gap-md flex flex-col"]) }, [P(n.$slots, "default")], 2)]),
13077
+ }, "gap-md flex flex-col"]) }, [N(n.$slots, "default")], 2)]),
13194
13078
  _: 3
13195
13079
  })]),
13196
13080
  _: 3
@@ -13200,24 +13084,24 @@ var Bs = /* @__PURE__ */ O({
13200
13084
  _: 3
13201
13085
  }, 8, ["value", "disabled"]));
13202
13086
  }
13203
- }), ec = {}, tc = { class: "border-secondary bg-primary p-lg rounded-xl border text-sm" };
13204
- function nc(e, t) {
13205
- return M(), w("div", tc, [P(e.$slots, "default")]);
13087
+ }), Ys = {}, Xs = { class: "border-secondary bg-primary p-lg rounded-xl border text-sm" };
13088
+ function Zs(e, t) {
13089
+ return j(), w("div", Xs, [N(e.$slots, "default")]);
13206
13090
  }
13207
- var rc = /* @__PURE__ */ y(ec, [["render", nc]]), ic = /* @__PURE__ */ O({
13091
+ var Qs = /* @__PURE__ */ y(Ys, [["render", Zs]]), $s = /* @__PURE__ */ O({
13208
13092
  __name: "AppOpenEntityButton",
13209
13093
  props: {
13210
13094
  uuid: {},
13211
13095
  entityType: {}
13212
13096
  },
13213
13097
  setup(e) {
13214
- let t = e, n = x(() => si(t.entityType, t.uuid));
13215
- return (e, t) => (M(), S(I(We), { to: n.value }, {
13216
- default: L(() => [P(e.$slots, "default")]),
13098
+ let t = e, n = x(() => ni(t.entityType, t.uuid));
13099
+ return (e, t) => (j(), S(F(He), { to: n.value }, {
13100
+ default: L(() => [N(e.$slots, "default")]),
13217
13101
  _: 3
13218
13102
  }, 8, ["to"]));
13219
13103
  }
13220
- }), ac = /* @__PURE__ */ O({
13104
+ }), ec = /* @__PURE__ */ O({
13221
13105
  __name: "CrmDetailSidebarAccordionHeaderIconButton",
13222
13106
  props: {
13223
13107
  icon: {},
@@ -13229,7 +13113,7 @@ var rc = /* @__PURE__ */ y(ec, [["render", nc]]), ic = /* @__PURE__ */ O({
13229
13113
  function i() {
13230
13114
  r("click");
13231
13115
  }
13232
- return (e, t) => (M(), S(I(Fe), {
13116
+ return (e, t) => (j(), S(F(Ne), {
13233
13117
  icon: n.icon,
13234
13118
  label: n.label,
13235
13119
  variant: "tertiary",
@@ -13237,16 +13121,16 @@ var rc = /* @__PURE__ */ y(ec, [["render", nc]]), ic = /* @__PURE__ */ O({
13237
13121
  onClick: i
13238
13122
  }, null, 8, ["icon", "label"]));
13239
13123
  }
13240
- }), oc = { class: "mt-lg flex h-full flex-1 flex-col overflow-hidden" }, sc = { class: "px-lg py-lg h-full overflow-y-auto" }, cc = /* @__PURE__ */ O({
13124
+ }), tc = { class: "mt-lg flex h-full flex-1 flex-col overflow-hidden" }, nc = { class: "px-lg py-lg h-full overflow-y-auto" }, rc = /* @__PURE__ */ O({
13241
13125
  __name: "CrmDetailSidebarTabs",
13242
- props: /* @__PURE__ */ k({ tabs: {} }, {
13126
+ props: /* @__PURE__ */ me({ tabs: {} }, {
13243
13127
  modelValue: { required: !0 },
13244
13128
  modelModifiers: {}
13245
13129
  }),
13246
13130
  emits: ["update:modelValue"],
13247
13131
  setup(e) {
13248
- let t = e, n = Se(e, "modelValue");
13249
- return (e, r) => (M(), w("div", oc, [D(I(Ke), {
13132
+ let t = e, n = xe(e, "modelValue");
13133
+ return (e, r) => (j(), w("div", tc, [D(F(We), {
13250
13134
  modelValue: n.value,
13251
13135
  "onUpdate:modelValue": r[0] ||= (e) => n.value = e,
13252
13136
  "class-config": {
@@ -13255,26 +13139,26 @@ var rc = /* @__PURE__ */ y(ec, [["render", nc]]), ic = /* @__PURE__ */ O({
13255
13139
  },
13256
13140
  class: "flex h-full flex-1 flex-col"
13257
13141
  }, {
13258
- items: L(() => [(M(!0), w(me, null, be(t.tabs, (e) => (M(), S(I(qe), {
13142
+ items: L(() => [(j(!0), w(b, null, ye(t.tabs, (e) => (j(), S(F(Ge), {
13259
13143
  key: e.value,
13260
13144
  value: e.value,
13261
13145
  class: "gap-sm flex items-center"
13262
13146
  }, {
13263
- default: L(() => [D(I(B), {
13147
+ default: L(() => [D(F(B), {
13264
13148
  icon: e.icon,
13265
13149
  class: "size-4"
13266
- }, null, 8, ["icon"]), T("span", null, F(e.label), 1)]),
13150
+ }, null, 8, ["icon"]), T("span", null, P(e.label), 1)]),
13267
13151
  _: 2
13268
13152
  }, 1032, ["value"]))), 128))]),
13269
- content: L(() => [T("div", sc, [P(e.$slots, "default")])]),
13153
+ content: L(() => [T("div", nc, [N(e.$slots, "default")])]),
13270
13154
  _: 3
13271
13155
  }, 8, ["modelValue"])]));
13272
13156
  }
13273
- }), lc = {}, uc = { class: "border-secondary bg-primary py-md px-md flex h-full w-100 flex-col overflow-hidden border-r" };
13274
- function dc(e, t) {
13275
- return M(), w("div", uc, [P(e.$slots, "default")]);
13157
+ }), ic = {}, ac = { class: "border-secondary bg-primary py-md px-md flex h-full w-100 flex-col overflow-hidden border-r" };
13158
+ function oc(e, t) {
13159
+ return j(), w("div", ac, [N(e.$slots, "default")]);
13276
13160
  }
13277
- var fc = /* @__PURE__ */ y(lc, [["render", dc]]), pc = { class: "duration-500 starting:opacity-0 starting:blur-md" }, mc = { class: "text-secondary block text-center text-xl font-bold" }, hc = { class: "mt-md text-secondary mx-auto max-w-sm text-center text-sm" }, gc = /* @__PURE__ */ O({
13161
+ var sc = /* @__PURE__ */ y(ic, [["render", oc]]), cc = { class: "duration-500 starting:opacity-0 starting:blur-md" }, lc = { class: "text-secondary block text-center text-xl font-bold" }, uc = { class: "mt-md text-secondary mx-auto max-w-sm text-center text-sm" }, dc = /* @__PURE__ */ O({
13278
13162
  __name: "Error",
13279
13163
  props: {
13280
13164
  title: {},
@@ -13283,20 +13167,20 @@ var fc = /* @__PURE__ */ y(lc, [["render", dc]]), pc = { class: "duration-500 st
13283
13167
  },
13284
13168
  setup(e) {
13285
13169
  let t = e, n = R();
13286
- return (e, r) => (M(), w("div", pc, [
13287
- T("span", mc, F(t.title), 1),
13288
- T("p", hc, F(I(n).t("component.error.message_prefix")) + " — " + F(t.message), 1),
13289
- t.action === null ? C("", !0) : (M(), S(I(z), {
13170
+ return (e, r) => (j(), w("div", cc, [
13171
+ T("span", lc, P(t.title), 1),
13172
+ T("p", uc, P(F(n).t("component.error.message_prefix")) + " — " + P(t.message), 1),
13173
+ t.action === null ? C("", !0) : (j(), S(F(z), {
13290
13174
  key: 0,
13291
13175
  class: "mt-2xl mx-auto",
13292
13176
  variant: "secondary",
13293
13177
  onClick: t.action.onClick
13294
13178
  }, {
13295
- default: L(() => [E(F(t.action.label), 1)]),
13179
+ default: L(() => [E(P(t.action.label), 1)]),
13296
13180
  _: 1
13297
13181
  }, 8, ["onClick"]))
13298
13182
  ]));
13299
13183
  }
13300
13184
  });
13301
13185
  //#endregion
13302
- export { Gt as $, dr as A, In as B, fi as C, ni as D, ci as E, nr as F, mn as G, Cn as H, Qn as I, nn as J, un as K, qn as L, sr as M, ir as N, Gr as O, rr as P, qt as Q, Gn as R, bi as S, li as T, bn as U, U as V, _n as W, Zt as X, Qt as Y, Jt as Z, Li as _, ic as a, Et as at, Mi as b, qs as c, Ct as ct, Ws as d, bt as dt, Wt as et, Us as f, Rs as g, zs as h, ac as i, Dt as it, ur as j, vr as k, Ks as l, St as lt, Bs as m, fc as n, Bt as nt, rc as o, V as ot, Hs as p, on as q, cc as r, Ot as rt, $s as s, wt as st, gc as t, Vt as tt, Gs as u, xt as ut, Pi as v, di as w, Ci as x, Ni as y, Un as z };
13186
+ export { Ut as $, lr as A, Pn as B, si as C, Qr as D, ri as E, er as F, fn as G, xn as H, Xn as I, en as J, cn as K, Gn as L, ar as M, nr as N, Vr as O, tr as P, Gt as Q, Un as R, hi as S, ii as T, vn as U, U as V, hn as W, Yt as X, Xt as Y, Kt as Z, Mi as _, $s as a, wt as at, Di as b, Hs as c, xt as ct, zs as d, vt as dt, Ht as et, Rs as f, Ns as g, Ps as h, ec as i, Tt as it, cr as j, mr as k, Vs as l, bt as lt, Fs as m, sc as n, Rt as nt, Qs as o, V as ot, Ls as p, rn as q, rc as r, Et as rt, Js as s, St as st, dc as t, zt as tt, Bs as u, yt as ut, ki as v, oi as w, vi as x, Oi as y, Vn as z };