@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,12 +1,12 @@
1
- import { G as e, H as t, J as n, K as r, L as i, V as a, Y as o, Z as s, at as c, p as l, q as u, z as d } from "./Error-za-wClcU.js";
2
- import { a as f, l as p, s as m, t as ee, u as te } from "./AppSkeletonLoader-Dq6pKznm.js";
3
- import { A as h, D as ne, E as re, H as ie, S as ae, U as oe, W as se, _ as ce, at as le, b as ue, et as de, f as fe, h as pe, i as me, m as he, nt as ge, r as _e, t as ve, tt as ye, ut as be, vt as xe } from "./client-9P6xe_5g.js";
4
- import { t as Se } from "./_plugin-vue_export-helper-D3hKq4w_.js";
5
- import { a as Ce, i as we, n as g, o as Te, r as Ee, t as De } from "./DealExternalAttachment-B6l0gDqF.js";
6
- import _, { z as v } from "zod";
7
- import { Fragment as y, computed as b, createBlock as x, createCommentVNode as S, createElementBlock as C, createElementVNode as w, createTextVNode as T, createVNode as E, defineComponent as D, mergeModels as O, mergeProps as k, normalizeClass as A, onBeforeUnmount as Oe, onMounted as j, openBlock as M, ref as N, renderList as P, renderSlot as F, toDisplayString as I, unref as L, useAttrs as ke, useId as R, useModel as z, useTemplateRef as Ae, watch as je, withCtx as B } from "vue";
8
- import { useI18n as V } from "vue-i18n";
9
- import { FileUploadStatus as H, PaginationParamsBuilder as Me, VcButton as U, VcDialog as W, VcDialogCloseButton as Ne, VcDialogContent as Pe, VcDialogDescription as Fe, VcDialogTitle as Ie, VcFileUploadDropzone as Le, VcFileUploadItem as Re, VcFileUploadItemRemove as ze, VcFileUploadItemReplace as Be, VcFileUploadRoot as Ve, VcFileUploadTrigger as He, VcFormField as G, VcFormFieldLabel as K, VcIcon as q, VcIconButton as J, VcKeyboardShortcut as Ue, VcSpinner as We, VcTextField as Ge, VcTooltipArrow as Ke, VcTooltipContent as qe, VcTooltipInnerContent as Je, VcTooltipPortal as Ye, VcTooltipRoot as Xe, VcTooltipTrigger as Ze, useDialog as Qe, useToast as $e } from "@wisemen/vue-core-components";
1
+ import { G as e, H as t, J as n, K as r, L as i, V as a, Y as o, Z as s, at as c, p as l, q as u, z as d } from "./Error-D6dRLq_g.js";
2
+ import { a as f, c as p, l as m, o as h, t as g } from "./AppSkeletonLoader-Chnz5oZv.js";
3
+ import { $ as _, A as ee, D as te, E as ne, H as re, S as ie, U as ae, V as oe, _ as se, _t as ce, b as le, et as ue, f as de, h as fe, i as pe, it as me, lt as he, m as ge, r as _e, t as ve, tt as ye } from "./client-BpnfhHgS.js";
4
+ import { t as be } from "./_plugin-vue_export-helper-D3hKq4w_.js";
5
+ import { a as xe, i as Se, n as v, o as Ce, r as we, t as Te } from "./DealExternalAttachment-wYY7tzfj.js";
6
+ import y, { z as b } from "zod";
7
+ import { Fragment as x, computed as S, createBlock as C, createCommentVNode as w, createElementBlock as T, createElementVNode as E, createTextVNode as D, createVNode as O, defineComponent as k, mergeModels as A, mergeProps as j, normalizeClass as M, onBeforeUnmount as Ee, onMounted as N, openBlock as P, ref as F, renderList as I, renderSlot as L, toDisplayString as R, unref as z, useAttrs as De, useId as B, useModel as Oe, useTemplateRef as ke, watch as Ae, withCtx as V } from "vue";
8
+ import { useI18n as H } from "vue-i18n";
9
+ import { FileUploadStatus as U, PaginationParamsBuilder as je, VcButton as Me, VcDialog as W, VcDialogCloseButton as Ne, VcDialogContent as Pe, VcDialogDescription as Fe, VcDialogTitle as Ie, VcFileUploadDropzone as Le, VcFileUploadItem as Re, VcFileUploadItemRemove as ze, VcFileUploadItemReplace as Be, VcFileUploadRoot as Ve, VcFileUploadTrigger as He, VcFormField as G, VcFormFieldLabel as K, VcIcon as q, VcIconButton as J, VcKeyboardShortcut as Ue, VcSpinner as We, VcTextField as Ge, VcTooltipArrow as Ke, VcTooltipContent as qe, VcTooltipInnerContent as Je, VcTooltipPortal as Ye, VcTooltipRoot as Xe, VcTooltipTrigger as Ze, useDialog as Qe, useToast as $e } from "@wisemen/vue-core-components";
10
10
  import { useElementSize as et } from "@vueuse/core";
11
11
  import { useForm as tt } from "formango";
12
12
  import { AnimatePresence as Y, Motion as X, MotionConfig as nt, motion as rt } from "motion-v";
@@ -16,9 +16,9 @@ import { StarterKit as mt } from "@tiptap/starter-kit";
16
16
  import { EditorContent as ht, useEditor as gt } from "@tiptap/vue-3";
17
17
  //#endregion
18
18
  //#region src/components/app/tags-input-field/AppTagsInputField.vue
19
- var _t = /* @__PURE__ */ D({
19
+ var _t = /* @__PURE__ */ k({
20
20
  __name: "AppTagsInputField",
21
- props: /* @__PURE__ */ O({
21
+ props: /* @__PURE__ */ A({
22
22
  isDisabled: { type: Boolean },
23
23
  isRequired: { type: Boolean },
24
24
  isTouched: { type: Boolean },
@@ -29,21 +29,21 @@ var _t = /* @__PURE__ */ D({
29
29
  modelValue: { required: !0 },
30
30
  modelModifiers: {}
31
31
  }),
32
- emits: /* @__PURE__ */ O(["blur"], ["update:modelValue"]),
32
+ emits: /* @__PURE__ */ A(["blur"], ["update:modelValue"]),
33
33
  setup(e, { emit: t }) {
34
- let n = e, r = t, i = z(e, "modelValue"), a = R();
35
- return (e, t) => (M(), x(L(G), {
34
+ let n = e, r = t, i = Oe(e, "modelValue"), a = B();
35
+ return (e, t) => (P(), C(z(G), {
36
36
  "is-touched": n.isTouched,
37
37
  hint: null,
38
38
  label: n.label,
39
- "input-id": L(a),
39
+ "input-id": z(a),
40
40
  "error-message": n.errorMessage,
41
41
  "is-required": n.isRequired,
42
- for: `tags-input-${L(a)}`,
42
+ for: `tags-input-${z(a)}`,
43
43
  class: "!mt-0 w-full"
44
44
  }, {
45
- label: B(() => [F(e.$slots, "label")]),
46
- default: B(() => [E(L(ft), {
45
+ label: V(() => [L(e.$slots, "label")]),
46
+ default: V(() => [O(z(ft), {
47
47
  id: `tags-input-${n.placeholder}`,
48
48
  modelValue: i.value,
49
49
  "onUpdate:modelValue": t[1] ||= (e) => i.value = e,
@@ -52,20 +52,20 @@ var _t = /* @__PURE__ */ D({
52
52
  delimiter: ";",
53
53
  class: "gap-sm border-secondary bg-primary px-sm py-xxs flex max-h-50 min-h-10 w-full flex-wrap items-center overflow-y-auto rounded-md border"
54
54
  }, {
55
- default: B(() => [(M(!0), C(y, null, P(i.value, (e) => (M(), x(L(lt), {
55
+ default: V(() => [(P(!0), T(x, null, I(i.value, (e) => (P(), C(z(lt), {
56
56
  key: e,
57
57
  value: e,
58
58
  class: "gap-xs border-primary px-xs text-secondary my-[0.18rem] flex items-center justify-center rounded-sm border text-xs aria-[current=true]:bg-brand-500"
59
59
  }, {
60
- default: B(() => [E(L(dt), { class: "pl-sm text-xs" }), E(L(ut), { class: "group p-xs rounded-full bg-transparent" }, {
61
- default: B(() => [E(L(q), {
60
+ default: V(() => [O(z(dt), { class: "pl-sm text-xs" }), O(z(ut), { class: "group p-xs rounded-full bg-transparent" }, {
61
+ default: V(() => [O(z(q), {
62
62
  icon: "close",
63
63
  class: "size-3 duration-200 group-hover:scale-110"
64
64
  })]),
65
65
  _: 1
66
66
  })]),
67
67
  _: 1
68
- }, 8, ["value"]))), 128)), E(L(ct), {
68
+ }, 8, ["value"]))), 128)), O(z(ct), {
69
69
  placeholder: n.placeholder,
70
70
  class: "px-sm h-8 flex-1 rounded-full bg-transparent text-sm placeholder:text-placeholder focus:outline-none",
71
71
  onBlur: t[0] ||= (e) => r("blur")
@@ -84,18 +84,18 @@ var _t = /* @__PURE__ */ D({
84
84
  }
85
85
  }), vt = {}, yt = { class: "flex size-full items-center justify-center" };
86
86
  function bt(e, t) {
87
- return M(), C("div", yt, [F(e.$slots, "default")]);
87
+ return P(), T("div", yt, [L(e.$slots, "default")]);
88
88
  }
89
- var xt = /* @__PURE__ */ Se(vt, [["render", bt]]), St = /* @__PURE__ */ D({
89
+ var xt = /* @__PURE__ */ be(vt, [["render", bt]]), St = /* @__PURE__ */ k({
90
90
  __name: "AnimateHeight",
91
91
  setup(e) {
92
- let t = N(null), { height: n } = et(t), r = N(!1);
93
- return j(() => {
92
+ let t = F(null), { height: n } = et(t), r = F(!1);
93
+ return N(() => {
94
94
  setTimeout(() => {
95
95
  r.value = !0;
96
96
  }, 50);
97
- }), (e, i) => (M(), x(L(X), {
98
- animate: { height: L(n) },
97
+ }), (e, i) => (P(), C(z(X), {
98
+ animate: { height: z(n) },
99
99
  transition: {
100
100
  bounce: 0,
101
101
  duration: r.value ? .3 : 0,
@@ -104,10 +104,10 @@ var xt = /* @__PURE__ */ Se(vt, [["render", bt]]), St = /* @__PURE__ */ D({
104
104
  tabindex: "-1",
105
105
  class: "relative overflow-clip"
106
106
  }, {
107
- default: B(() => [w("div", {
107
+ default: V(() => [E("div", {
108
108
  ref_key: "el",
109
109
  ref: t
110
- }, [F(e.$slots, "default")], 512)]),
110
+ }, [L(e.$slots, "default")], 512)]),
111
111
  _: 3
112
112
  }, 8, ["animate", "transition"]));
113
113
  }
@@ -141,10 +141,10 @@ var xt = /* @__PURE__ */ Se(vt, [["render", bt]]), St = /* @__PURE__ */ D({
141
141
  }
142
142
  }, Tt = class {
143
143
  static async getAllColumns() {
144
- return (await pe()).data.items.map(Ct.fromDto);
144
+ return (await fe()).data.items.map(Ct.fromDto);
145
145
  }
146
146
  static async getTransitions(e, t) {
147
- return (await he({
147
+ return (await ge({
148
148
  query: { triggerTypes: t },
149
149
  path: { boardColumnUuid: e }
150
150
  })).data.items.map(wt.fromDto);
@@ -164,7 +164,7 @@ var xt = /* @__PURE__ */ Se(vt, [["render", bt]]), St = /* @__PURE__ */ D({
164
164
  }
165
165
  }, Dt = class {
166
166
  static async getAll(e) {
167
- let t = await le({ query: e });
167
+ let t = await me({ query: e });
168
168
  return {
169
169
  data: t.data.items.map(Et.fromDto),
170
170
  meta: t.data.meta
@@ -187,7 +187,7 @@ function Ot(e) {
187
187
  var kt = {
188
188
  key: 0,
189
189
  class: "text-secondary max-w-xs text-center text-xs"
190
- }, Z = /* @__PURE__ */ D({
190
+ }, Z = /* @__PURE__ */ k({
191
191
  __name: "ButtonTooltip",
192
192
  props: {
193
193
  isDisabled: {
@@ -200,19 +200,19 @@ var kt = {
200
200
  },
201
201
  setup(e) {
202
202
  let t = e;
203
- return (e, n) => (M(), x(L(Xe), {
203
+ return (e, n) => (P(), C(z(Xe), {
204
204
  "delay-duration": 400,
205
205
  "is-popover-arrow-hidden": !0,
206
206
  "disable-hoverable-content": !0,
207
207
  "popover-side": t.side ?? void 0,
208
208
  "is-disabled": t.isDisabled
209
209
  }, {
210
- default: B(() => [E(L(Ze), null, {
211
- default: B(() => [F(e.$slots, "default")]),
210
+ default: V(() => [O(z(Ze), null, {
211
+ default: V(() => [L(e.$slots, "default")]),
212
212
  _: 3
213
- }), E(L(Ye), null, {
214
- default: B(() => [E(L(qe), null, {
215
- default: B(() => [E(L(X), {
213
+ }), O(z(Ye), null, {
214
+ default: V(() => [O(z(qe), null, {
215
+ default: V(() => [O(z(X), {
216
216
  initial: {
217
217
  opacity: 0,
218
218
  filter: "blur(2px)"
@@ -227,19 +227,19 @@ var kt = {
227
227
  },
228
228
  transition: { duration: .2 }
229
229
  }, {
230
- default: B(() => [E(L(Je), null, {
231
- default: B(() => [E(f, {
230
+ default: V(() => [O(z(Je), null, {
231
+ default: V(() => [O(f, {
232
232
  gap: "sm",
233
233
  class: "p-xs"
234
234
  }, {
235
- default: B(() => [t.label === null ? S("", !0) : (M(), C("span", kt, I(t.label), 1)), t.keyboardKeys === null ? S("", !0) : (M(), x(L(Ue), {
235
+ default: V(() => [t.label === null ? w("", !0) : (P(), T("span", kt, R(t.label), 1)), t.keyboardKeys === null ? w("", !0) : (P(), C(z(Ue), {
236
236
  key: 1,
237
237
  "keyboard-keys": t.keyboardKeys
238
238
  }, null, 8, ["keyboard-keys"]))]),
239
239
  _: 1
240
240
  })]),
241
241
  _: 1
242
- }), E(L(Ke))]),
242
+ }), O(z(Ke))]),
243
243
  _: 1
244
244
  })]),
245
245
  _: 1
@@ -249,7 +249,7 @@ var kt = {
249
249
  _: 3
250
250
  }, 8, ["popover-side", "is-disabled"]));
251
251
  }
252
- }), At = /* @__PURE__ */ D({
252
+ }), At = /* @__PURE__ */ k({
253
253
  inheritAttrs: !1,
254
254
  __name: "TruncateText",
255
255
  props: {
@@ -257,28 +257,28 @@ var kt = {
257
257
  label: {}
258
258
  },
259
259
  setup(e) {
260
- let t = e, n = ke(), r = Ae("primitiveRef"), i = N(!1), a = null;
260
+ let t = e, n = De(), r = ke("primitiveRef"), i = F(!1), a = null;
261
261
  function o(e) {
262
262
  i.value = e.scrollWidth > e.clientWidth;
263
263
  }
264
- return j(() => {
264
+ return N(() => {
265
265
  let e = r.value?.$el ?? null;
266
266
  e !== null && (o(e), a = new ResizeObserver(() => {
267
267
  o(e);
268
268
  }), a.observe(e));
269
- }), Oe(() => {
269
+ }), Ee(() => {
270
270
  a?.disconnect();
271
- }), (e, a) => (M(), x(Z, {
271
+ }), (e, a) => (P(), C(Z, {
272
272
  "is-disabled": !i.value,
273
273
  label: t.label
274
274
  }, {
275
- default: B(() => [E(L(st), k({
275
+ default: V(() => [O(z(st), j({
276
276
  ref_key: "primitiveRef",
277
277
  ref: r,
278
278
  as: t.as,
279
279
  class: "max-w-full truncate"
280
- }, L(n)), {
281
- default: B(() => [T(I(t.label), 1)]),
280
+ }, z(n)), {
281
+ default: V(() => [D(R(t.label), 1)]),
282
282
  _: 1
283
283
  }, 16, ["as"])]),
284
284
  _: 1
@@ -328,7 +328,7 @@ var kt = {
328
328
  static fromDto(e) {
329
329
  return {
330
330
  uuid: e.uuid,
331
- createdAt: m.fromDto(e.createdAt),
331
+ createdAt: h.fromDto(e.createdAt),
332
332
  updatedAt: e.updatedAt,
333
333
  name: e.name,
334
334
  boardColumn: {
@@ -368,7 +368,7 @@ var kt = {
368
368
  static fromDto(e) {
369
369
  return {
370
370
  uuid: e.uuid,
371
- createdAt: m.fromDto(e.createdAt),
371
+ createdAt: h.fromDto(e.createdAt),
372
372
  name: e.name,
373
373
  boardColumn: e.boardColumn,
374
374
  client: e.client,
@@ -415,32 +415,32 @@ var kt = {
415
415
  }
416
416
  static async createContactPerson() {}
417
417
  static async getAll(e) {
418
- let t = await se({ query: It.toDto(e) });
418
+ let t = await ae({ query: It.toDto(e) });
419
419
  return {
420
420
  data: t.data.items.map(Ft.fromDto),
421
421
  meta: t.data.meta
422
422
  };
423
423
  }
424
424
  static async getBySearchTerm(e) {
425
- let t = await se({ query: new Me().withLimit(5).withSearch(e).build() });
425
+ let t = await ae({ query: new je().withLimit(5).withSearch(e).build() });
426
426
  return {
427
427
  data: t.data.items.map(Ft.fromDto),
428
428
  meta: t.data.meta
429
429
  };
430
430
  }
431
431
  static async getByUuid(e) {
432
- let t = await oe({ path: { dealUuid: e } });
432
+ let t = await re({ path: { dealUuid: e } });
433
433
  return Pt.fromDto(t.data);
434
434
  }
435
435
  static async getContactPerson(e, t) {
436
- let n = await ie({ path: {
436
+ let n = await oe({ path: {
437
437
  contactPersonUuid: t,
438
438
  dealUuid: e
439
439
  } });
440
440
  return jt.fromDto(n.data);
441
441
  }
442
442
  static async linkContactPerson(e, t, n) {
443
- await fe({
443
+ await de({
444
444
  body: {
445
445
  contactPersonUuid: t,
446
446
  email: c.trimOrNull(n.email),
@@ -451,31 +451,31 @@ var kt = {
451
451
  });
452
452
  }
453
453
  static async setPrimaryContactPerson(e, t) {
454
- await ce({ path: {
454
+ await se({ path: {
455
455
  contactPersonUuid: t,
456
456
  dealUuid: e
457
457
  } });
458
458
  }
459
459
  static async transition(e, t) {
460
- await ue({
460
+ await le({
461
461
  body: { boardColumnUuid: t },
462
462
  path: { dealUuid: e }
463
463
  });
464
464
  }
465
465
  static async unlinkContactPerson(e, t) {
466
- await ae({
466
+ await ie({
467
467
  body: { contactPersonUuid: t },
468
468
  path: { dealUuid: e }
469
469
  });
470
470
  }
471
471
  static async update(e, t) {
472
- await ne({
472
+ await te({
473
473
  body: Lt.toDto(t),
474
474
  path: { dealUuid: e }
475
475
  });
476
476
  }
477
477
  static async updateContactPerson(e, t, n) {
478
- await re({
478
+ await ne({
479
479
  body: Mt.toDto(n),
480
480
  path: {
481
481
  contactPersonUuid: t,
@@ -484,7 +484,7 @@ var kt = {
484
484
  });
485
485
  }
486
486
  };
487
- v.enum(xe);
487
+ b.enum(ce);
488
488
  var zt = class {
489
489
  static i18nKeys = s({
490
490
  "de-DE": "wise_crm.language.de",
@@ -509,17 +509,17 @@ var zt = class {
509
509
  static fromDto(e) {
510
510
  return {
511
511
  uuid: e.uuid,
512
- createdAt: m.fromDto(e.createdAt),
513
- updatedAt: m.fromDto(e.updatedAt),
512
+ createdAt: h.fromDto(e.createdAt),
513
+ updatedAt: h.fromDto(e.updatedAt),
514
514
  defaultBCC: e.defaultBCC,
515
515
  defaultCC: e.defaultCC,
516
516
  displayName: e.displayName,
517
517
  key: e.key,
518
518
  locales: e.locales.map((e) => ({
519
519
  uuid: e.uuid,
520
- createdAt: m.fromDto(e.createdAt),
521
- updatedAt: m.fromDto(e.updatedAt),
522
- attachments: e.attachments.map(Te.fromDto),
520
+ createdAt: h.fromDto(e.createdAt),
521
+ updatedAt: h.fromDto(e.updatedAt),
522
+ attachments: e.attachments.map(Ce.fromDto),
523
523
  language: e.language,
524
524
  message: e.message,
525
525
  subject: e.subject
@@ -530,8 +530,8 @@ var zt = class {
530
530
  static fromDto(e) {
531
531
  return {
532
532
  uuid: e.uuid,
533
- createdAt: m.fromDto(e.createdAt),
534
- updatedAt: m.fromDto(e.updatedAt),
533
+ createdAt: h.fromDto(e.createdAt),
534
+ updatedAt: h.fromDto(e.updatedAt),
535
535
  name: e.name
536
536
  };
537
537
  }
@@ -555,22 +555,22 @@ var zt = class {
555
555
  }
556
556
  }, Gt = class {
557
557
  static async getAll(e) {
558
- let t = await ge({ query: Ut.toDto(e) });
558
+ let t = await ye({ query: Ut.toDto(e) });
559
559
  return {
560
560
  data: t.data.items.map(Ht.fromDto),
561
561
  meta: t.data.meta
562
562
  };
563
563
  }
564
564
  static async getByKey(e) {
565
- let t = await de({ path: { mailTemplateKey: e } });
565
+ let t = await _({ path: { mailTemplateKey: e } });
566
566
  return Vt.fromDto(t.data);
567
567
  }
568
568
  static async getByUuid(e) {
569
- let t = await ye({ path: { mailTemplateUuid: e } });
569
+ let t = await ue({ path: { mailTemplateUuid: e } });
570
570
  return Vt.fromDto(t.data);
571
571
  }
572
572
  static async update(e, t) {
573
- await h({
573
+ await ee({
574
574
  body: Wt.toDto(t),
575
575
  path: { mailTemplateUuid: e }
576
576
  });
@@ -592,12 +592,12 @@ function qt(e) {
592
592
  }
593
593
  //#endregion
594
594
  //#region src/components/app/rich-text-field/AppRichTextFieldLinkDialog.vue?vue&type=script&setup=true&lang.ts
595
- var Jt = { class: "p-xl w-96 max-w-full" }, Yt = /* @__PURE__ */ D({
595
+ var Jt = { class: "p-xl w-96 max-w-full" }, Yt = /* @__PURE__ */ k({
596
596
  __name: "AppRichTextFieldLinkDialog",
597
597
  emits: ["close", "confirm"],
598
598
  setup(e, { emit: i }) {
599
- let o = i, s = V(), c = tt({
600
- schema: v.object({ url: v.string().url() }),
599
+ let o = i, s = H(), c = tt({
600
+ schema: b.object({ url: b.string().url() }),
601
601
  onSubmit: (e) => {
602
602
  o("confirm", e.url);
603
603
  }
@@ -605,18 +605,18 @@ var Jt = { class: "p-xl w-96 max-w-full" }, Yt = /* @__PURE__ */ D({
605
605
  function f() {
606
606
  o("close");
607
607
  }
608
- return (e, i) => (M(), x(L(W), { onClose: f }, {
609
- default: B(() => [w("div", Jt, [E(d, {
610
- title: L(s).t("rich_text.link_dialog.title"),
608
+ return (e, i) => (P(), C(z(W), { onClose: f }, {
609
+ default: V(() => [E("div", Jt, [O(d, {
610
+ title: z(s).t("rich_text.link_dialog.title"),
611
611
  icon: "link"
612
612
  }, {
613
- "closse-button": B(() => [E(L(Ne))]),
613
+ "closse-button": V(() => [O(z(Ne))]),
614
614
  _: 1
615
- }, 8, ["title"]), E(t, { form: L(c) }, {
616
- default: B(() => [E(L(Ge), k({ label: L(s).t("rich_text.link_dialog.url") }, L(a)(L(l))), null, 16, ["label"]), E(r, null, {
617
- default: B(() => [E(n, { label: L(s).t("shared.cancel") }, null, 8, ["label"]), E(u, {
618
- label: L(s).t("shared.confirm"),
619
- onClick: i[0] ||= (e) => L(c).submit()
615
+ }, 8, ["title"]), O(t, { form: z(c) }, {
616
+ default: V(() => [O(z(Ge), j({ label: z(s).t("rich_text.link_dialog.url") }, z(a)(z(l))), null, 16, ["label"]), O(r, null, {
617
+ default: V(() => [O(n, { label: z(s).t("shared.cancel") }, null, 8, ["label"]), O(u, {
618
+ label: z(s).t("shared.confirm"),
619
+ onClick: i[0] ||= (e) => z(c).submit()
620
620
  }, null, 8, ["label"])]),
621
621
  _: 1
622
622
  })]),
@@ -625,9 +625,9 @@ var Jt = { class: "p-xl w-96 max-w-full" }, Yt = /* @__PURE__ */ D({
625
625
  _: 1
626
626
  }));
627
627
  }
628
- }), Xt = ["id"], Zt = { class: "p-sm h-full" }, Qt = /* @__PURE__ */ D({
628
+ }), Xt = ["id"], Zt = { class: "p-sm h-full" }, Qt = /* @__PURE__ */ k({
629
629
  __name: "AppRichTextField",
630
- props: /* @__PURE__ */ O({
630
+ props: /* @__PURE__ */ A({
631
631
  isDisabled: {
632
632
  type: Boolean,
633
633
  default: !1
@@ -647,9 +647,9 @@ var Jt = { class: "p-xl w-96 max-w-full" }, Yt = /* @__PURE__ */ D({
647
647
  modelValue: { required: !0 },
648
648
  modelModifiers: {}
649
649
  }),
650
- emits: /* @__PURE__ */ O(["blur"], ["update:modelValue"]),
650
+ emits: /* @__PURE__ */ A(["blur"], ["update:modelValue"]),
651
651
  setup(e, { emit: t }) {
652
- let n = e, r = t, i = z(e, "modelValue"), a = R(), o = gt({
652
+ let n = e, r = t, i = Oe(e, "modelValue"), a = B(), o = gt({
653
653
  content: i.value,
654
654
  editorProps: { attributes: { class: "bg-primary text-primary p-2xl prose prose-sm w-full max-w-none text-secondary outline-none focus-visible:ring-2 ring-offset-1 ring-fg-brand-secondary rounded-sm min-h-[15rem] h-full" } },
655
655
  extensions: [mt, pt.configure({ defaultProtocol: "https" })],
@@ -659,7 +659,7 @@ var Jt = { class: "p-xl w-96 max-w-full" }, Yt = /* @__PURE__ */ D({
659
659
  onUpdate({ editor: e }) {
660
660
  i.value = e.getHTML();
661
661
  }
662
- }), s = Qe(Yt), c = b(() => [
662
+ }), s = Qe(Yt), c = S(() => [
663
663
  {
664
664
  id: "bold",
665
665
  icon: "bold",
@@ -708,10 +708,10 @@ var Jt = { class: "p-xl w-96 max-w-full" }, Yt = /* @__PURE__ */ D({
708
708
  onClick: () => void o.value?.chain().focus().toggleOrderedList().run()
709
709
  }
710
710
  ]);
711
- return je(i, (e) => {
711
+ return Ae(i, (e) => {
712
712
  e !== o.value?.getHTML() && ((e === null || e === "") && o.value?.commands.clearContent(), o.value?.commands.setContent(e || ""));
713
- }), (e, t) => (M(), x(L(G), {
714
- for: L(a),
713
+ }), (e, t) => (P(), C(z(G), {
714
+ for: z(a),
715
715
  "is-touched": n.isTouched,
716
716
  "error-message": n.errorMessage,
717
717
  hint: null,
@@ -719,26 +719,26 @@ var Jt = { class: "p-xl w-96 max-w-full" }, Yt = /* @__PURE__ */ D({
719
719
  "is-required": n.isRequired,
720
720
  class: "h-full"
721
721
  }, {
722
- label: B(() => [F(e.$slots, "label")]),
723
- default: B(() => [w("div", {
724
- id: L(a),
725
- class: A([{
722
+ label: V(() => [L(e.$slots, "label")]),
723
+ default: V(() => [E("div", {
724
+ id: z(a),
725
+ class: M([{
726
726
  "border-error-subtle": n.errorMessage !== null && n.isTouched,
727
727
  "border-secondary": !(n.errorMessage !== null && n.isTouched)
728
728
  }, "bg-primary flex flex-col overflow-hidden rounded-lg border"])
729
- }, [E(L(ot), { orientation: "horizontal" }, {
730
- default: B(() => [E(L(it), { class: "gap-sm p-sm border-secondary flex border-b" }, {
731
- default: B(() => [(M(!0), C(y, null, P(c.value, (e, t) => (M(), x(L(at), {
729
+ }, [O(z(ot), { orientation: "horizontal" }, {
730
+ default: V(() => [O(z(it), { class: "gap-sm p-sm border-secondary flex border-b" }, {
731
+ default: V(() => [(P(!0), T(x, null, I(c.value, (e, t) => (P(), C(z(at), {
732
732
  key: t,
733
733
  value: t,
734
- class: A([{
735
- "bg-tertiary text-primary": L(o)?.isActive(e.id, e.isActiveOptions),
736
- "text-quaternary": !L(o)?.isActive(e.id, e.isActiveOptions)
734
+ class: M([{
735
+ "bg-tertiary text-primary": z(o)?.isActive(e.id, e.isActiveOptions),
736
+ "text-quaternary": !z(o)?.isActive(e.id, e.isActiveOptions)
737
737
  }, "rounded-md"]),
738
738
  "as-child": !0
739
739
  }, {
740
- default: B(() => [E(l, { onClick: () => e.onClick() }, {
741
- default: B(() => [E(L(q), {
740
+ default: V(() => [O(l, { onClick: () => e.onClick() }, {
741
+ default: V(() => [O(z(q), {
742
742
  icon: e.icon,
743
743
  class: "text-primary size-8"
744
744
  }, null, 8, ["icon"])]),
@@ -749,10 +749,10 @@ var Jt = { class: "p-xl w-96 max-w-full" }, Yt = /* @__PURE__ */ D({
749
749
  _: 1
750
750
  })]),
751
751
  _: 1
752
- }), w("div", Zt, [E(L(ht), {
752
+ }), E("div", Zt, [O(z(ht), {
753
753
  modelValue: i.value,
754
754
  "onUpdate:modelValue": t[0] ||= (e) => i.value = e,
755
- editor: L(o),
755
+ editor: z(o),
756
756
  class: "h-full"
757
757
  }, null, 8, ["modelValue", "editor"])])], 10, Xt)]),
758
758
  _: 3
@@ -772,7 +772,7 @@ var Jt = { class: "p-xl w-96 max-w-full" }, Yt = /* @__PURE__ */ D({
772
772
  });
773
773
  }
774
774
  static async getFileInfo(e, t) {
775
- let n = await me({ body: {
775
+ let n = await pe({ body: {
776
776
  name: e,
777
777
  mimeType: t
778
778
  } });
@@ -781,24 +781,24 @@ var Jt = { class: "p-xl w-96 max-w-full" }, Yt = /* @__PURE__ */ D({
781
781
  uploadUrl: n.data.uploadUrl
782
782
  };
783
783
  }
784
- }, en = { class: "text-brand-secondary text-sm font-medium" }, tn = /* @__PURE__ */ D({
784
+ }, en = { class: "text-brand-secondary text-sm font-medium" }, tn = /* @__PURE__ */ k({
785
785
  __name: "FormFileUploadDropzoneOverlay",
786
786
  props: {
787
787
  isHoveringOverDropzone: { type: Boolean },
788
788
  isHoveringOverPage: { type: Boolean }
789
789
  },
790
790
  setup(e) {
791
- let t = e, n = V();
792
- return (e, r) => (M(), x(L(Y), null, {
793
- default: B(() => [t.isHoveringOverPage ? (M(), x(L(X), {
791
+ let t = e, n = H();
792
+ return (e, r) => (P(), C(z(Y), null, {
793
+ default: V(() => [t.isHoveringOverPage ? (P(), C(z(X), {
794
794
  key: 0,
795
- class: A([{ "animate-pulse": !t.isHoveringOverDropzone }, "border-brand-500/50 pointer-events-none absolute inset-0 z-10 overflow-hidden rounded-xl border-[1.5px] border-dashed"]),
795
+ class: M([{ "animate-pulse": !t.isHoveringOverDropzone }, "border-brand-500/50 pointer-events-none absolute inset-0 z-10 overflow-hidden rounded-xl border-[1.5px] border-dashed"]),
796
796
  initial: { opacity: 0 },
797
797
  animate: { opacity: 1 },
798
798
  exit: { opacity: 0 }
799
799
  }, {
800
- default: B(() => [E(L(Y), null, {
801
- default: B(() => [t.isHoveringOverDropzone ? (M(), x(L(X), {
800
+ default: V(() => [O(z(Y), null, {
801
+ default: V(() => [t.isHoveringOverDropzone ? (P(), C(z(X), {
802
802
  key: 0,
803
803
  initial: {
804
804
  opacity: 0,
@@ -814,16 +814,16 @@ var Jt = { class: "p-xl w-96 max-w-full" }, Yt = /* @__PURE__ */ D({
814
814
  },
815
815
  class: "bg-brand-primary/90 absolute inset-0"
816
816
  }, {
817
- default: B(() => [E(xt, null, {
818
- default: B(() => [w("p", en, I(L(n).t("component.file_upload.dropzone.drop_files")), 1)]),
817
+ default: V(() => [O(xt, null, {
818
+ default: V(() => [E("p", en, R(z(n).t("component.file_upload.dropzone.drop_files")), 1)]),
819
819
  _: 1
820
820
  })]),
821
821
  _: 1
822
- })) : S("", !0)]),
822
+ })) : w("", !0)]),
823
823
  _: 1
824
824
  })]),
825
825
  _: 1
826
- }, 8, ["class"])) : S("", !0)]),
826
+ }, 8, ["class"])) : w("", !0)]),
827
827
  _: 1
828
828
  }));
829
829
  }
@@ -834,7 +834,7 @@ var Jt = { class: "p-xl w-96 max-w-full" }, Yt = /* @__PURE__ */ D({
834
834
  fill: "none",
835
835
  xmlns: "http://www.w3.org/2000/svg",
836
836
  "aria-hidden": "true"
837
- }, rn = /* @__PURE__ */ D({
837
+ }, rn = /* @__PURE__ */ k({
838
838
  __name: "FormFileUploadSuccessCheckmark",
839
839
  setup(e) {
840
840
  let t = {
@@ -855,7 +855,7 @@ var Jt = { class: "p-xl w-96 max-w-full" }, Yt = /* @__PURE__ */ D({
855
855
  }
856
856
  }
857
857
  };
858
- return (e, n) => (M(), C("svg", nn, [E(L(rt).path, {
858
+ return (e, n) => (P(), T("svg", nn, [O(z(rt).path, {
859
859
  variants: t,
860
860
  tabindex: "-1",
861
861
  initial: "hidden",
@@ -868,23 +868,23 @@ var Jt = { class: "p-xl w-96 max-w-full" }, Yt = /* @__PURE__ */ D({
868
868
  exit: "hidden"
869
869
  })]));
870
870
  }
871
- }), an = /* @__PURE__ */ D({
871
+ }), an = /* @__PURE__ */ k({
872
872
  __name: "FormFileUploadItemRight",
873
873
  props: {
874
874
  isMultiple: { type: Boolean },
875
875
  item: {}
876
876
  },
877
877
  setup(e) {
878
- let t = e, n = N(!1);
878
+ let t = e, n = F(!1);
879
879
  function r(e) {
880
- e.url !== null && we.download(e.url, e.name);
880
+ e.url !== null && Se.download(e.url, e.name);
881
881
  }
882
- return je(() => t.item.status, (e) => {
883
- e === H.SUCCESS && (n.value = !0, setTimeout(() => {
882
+ return Ae(() => t.item.status, (e) => {
883
+ e === U.SUCCESS && (n.value = !0, setTimeout(() => {
884
884
  n.value = !1;
885
885
  }, 2e3));
886
- }), (e, i) => (M(), x(L(Y), { mode: "popLayout" }, {
887
- default: B(() => [n.value ? (M(), x(L(X), {
886
+ }), (e, i) => (P(), C(z(Y), { mode: "popLayout" }, {
887
+ default: V(() => [n.value ? (P(), C(z(X), {
888
888
  key: 0,
889
889
  variants: {
890
890
  hidden: {
@@ -901,9 +901,9 @@ var Jt = { class: "p-xl w-96 max-w-full" }, Yt = /* @__PURE__ */ D({
901
901
  exit: "hidden",
902
902
  class: "flex size-8 items-center justify-center"
903
903
  }, {
904
- default: B(() => [E(rn, { class: "text-disabled size-4" })]),
904
+ default: V(() => [O(rn, { class: "text-disabled size-4" })]),
905
905
  _: 1
906
- })) : t.item.status === L(H).SUCCESS ? (M(), x(L(X), {
906
+ })) : t.item.status === z(U).SUCCESS ? (P(), C(z(X), {
907
907
  key: 1,
908
908
  initial: {
909
909
  opacity: 0,
@@ -914,12 +914,12 @@ var Jt = { class: "p-xl w-96 max-w-full" }, Yt = /* @__PURE__ */ D({
914
914
  scale: 1
915
915
  }
916
916
  }, {
917
- default: B(() => [E(Ce, null, {
918
- default: B(() => [E(f, { gap: "none" }, {
919
- default: B(() => [
920
- E(Z, { label: "Replace" }, {
921
- default: B(() => [E(L(Be), null, {
922
- default: B(() => [E(L(J), {
917
+ default: V(() => [O(xe, null, {
918
+ default: V(() => [O(f, { gap: "none" }, {
919
+ default: V(() => [
920
+ O(Z, { label: "Replace" }, {
921
+ default: V(() => [O(z(Be), null, {
922
+ default: V(() => [O(z(J), {
923
923
  "class-config": { root: "hover:!bg-tertiary" },
924
924
  icon: "refresh",
925
925
  label: "Replace",
@@ -929,8 +929,8 @@ var Jt = { class: "p-xl w-96 max-w-full" }, Yt = /* @__PURE__ */ D({
929
929
  })]),
930
930
  _: 1
931
931
  }),
932
- E(Z, { label: "Download" }, {
933
- default: B(() => [t.item.url === null ? S("", !0) : (M(), x(L(J), {
932
+ O(Z, { label: "Download" }, {
933
+ default: V(() => [t.item.url === null ? w("", !0) : (P(), C(z(J), {
934
934
  key: 0,
935
935
  "class-config": { root: "hover:!bg-tertiary" },
936
936
  icon: "downloadCloud",
@@ -940,9 +940,9 @@ var Jt = { class: "p-xl w-96 max-w-full" }, Yt = /* @__PURE__ */ D({
940
940
  }))]),
941
941
  _: 1
942
942
  }),
943
- E(Z, { label: "Remove" }, {
944
- default: B(() => [E(L(ze), null, {
945
- default: B(() => [E(L(J), {
943
+ O(Z, { label: "Remove" }, {
944
+ default: V(() => [O(z(ze), null, {
945
+ default: V(() => [O(z(J), {
946
946
  icon: "trash",
947
947
  label: "Remove",
948
948
  variant: "destructive-tertiary"
@@ -957,7 +957,7 @@ var Jt = { class: "p-xl w-96 max-w-full" }, Yt = /* @__PURE__ */ D({
957
957
  _: 1
958
958
  })]),
959
959
  _: 1
960
- })) : t.item.status === L(H).PENDING || t.item.status === L(H).UPLOADING ? (M(), x(L(X), {
960
+ })) : t.item.status === z(U).PENDING || t.item.status === z(U).UPLOADING ? (P(), C(z(X), {
961
961
  key: 2,
962
962
  initial: { opacity: 0 },
963
963
  animate: { opacity: 1 },
@@ -967,9 +967,9 @@ var Jt = { class: "p-xl w-96 max-w-full" }, Yt = /* @__PURE__ */ D({
967
967
  },
968
968
  class: "flex size-8 items-center justify-center"
969
969
  }, {
970
- default: B(() => [E(L(We), { class: "text-tertiary size-4" })]),
970
+ default: V(() => [O(z(We), { class: "text-tertiary size-4" })]),
971
971
  _: 1
972
- })) : S("", !0)]),
972
+ })) : w("", !0)]),
973
973
  _: 1
974
974
  }));
975
975
  }
@@ -1023,11 +1023,11 @@ var Jt = { class: "p-xl w-96 max-w-full" }, Yt = /* @__PURE__ */ D({
1023
1023
  u[4 * r + 0 + e * l] = f, u[4 * r + 1 + e * l] = p, u[4 * r + 2 + e * l] = m, u[4 * r + 3 + e * l] = 255;
1024
1024
  }
1025
1025
  return u;
1026
- }, gn = /* @__PURE__ */ D({
1026
+ }, gn = /* @__PURE__ */ k({
1027
1027
  __name: "ImageBlurhash",
1028
1028
  props: { blurhash: {} },
1029
1029
  setup(e) {
1030
- let t = e, n = N(null);
1030
+ let t = e, n = F(null);
1031
1031
  function r(e, t) {
1032
1032
  let { height: n, width: r } = t, i = hn(e, r, n), a = t.getContext("2d"), o = a.createImageData(r, n);
1033
1033
  o.data.set(i), a.putImageData(o, 0, 0);
@@ -1035,16 +1035,16 @@ var Jt = { class: "p-xl w-96 max-w-full" }, Yt = /* @__PURE__ */ D({
1035
1035
  function i() {
1036
1036
  n.value !== null && r(t.blurhash, n.value);
1037
1037
  }
1038
- return j(() => {
1038
+ return N(() => {
1039
1039
  i();
1040
- }), (e, t) => (M(), C("canvas", {
1040
+ }), (e, t) => (P(), T("canvas", {
1041
1041
  ref_key: "canvasRef",
1042
1042
  ref: n,
1043
1043
  width: "100%",
1044
1044
  height: "100%"
1045
1045
  }, null, 512));
1046
1046
  }
1047
- }), _n = { class: "sr-only" }, vn = { class: "p-lg absolute top-0 left-0 z-1 flex w-full justify-end" }, yn = ["src", "alt"], bn = /* @__PURE__ */ D({
1047
+ }), _n = { class: "sr-only" }, vn = { class: "p-lg absolute top-0 left-0 z-1 flex w-full justify-end" }, yn = ["src", "alt"], bn = /* @__PURE__ */ k({
1048
1048
  __name: "ImageDialog",
1049
1049
  props: {
1050
1050
  imageId: {},
@@ -1054,21 +1054,21 @@ var Jt = { class: "p-xl w-96 max-w-full" }, Yt = /* @__PURE__ */ D({
1054
1054
  },
1055
1055
  setup(e) {
1056
1056
  let t = e;
1057
- return (e, n) => (M(), x(L(W), {
1057
+ return (e, n) => (P(), C(z(W), {
1058
1058
  "is-close-button-hidden": !0,
1059
1059
  size: "xl"
1060
1060
  }, {
1061
- default: B(() => [
1062
- E(L(Ie), null, {
1063
- default: B(() => [...n[0] ||= [w("h1", { class: "sr-only" }, " Image ", -1)]]),
1061
+ default: V(() => [
1062
+ O(z(Ie), null, {
1063
+ default: V(() => [...n[0] ||= [E("h1", { class: "sr-only" }, " Image ", -1)]]),
1064
1064
  _: 1
1065
1065
  }),
1066
- E(L(Fe), null, {
1067
- default: B(() => [w("p", _n, I(t.imageAlt), 1)]),
1066
+ O(z(Fe), null, {
1067
+ default: V(() => [E("p", _n, R(t.imageAlt), 1)]),
1068
1068
  _: 1
1069
1069
  }),
1070
- w("div", vn, [E(L(Ne), null, {
1071
- default: B(() => [E(L(J), {
1070
+ E("div", vn, [O(z(Ne), null, {
1071
+ default: V(() => [O(z(J), {
1072
1072
  "class-config": { root: "bg-primary/50 backdrop-blur-md text-primary border-none shadow-none" },
1073
1073
  icon: "close",
1074
1074
  label: "close",
@@ -1076,7 +1076,7 @@ var Jt = { class: "p-xl w-96 max-w-full" }, Yt = /* @__PURE__ */ D({
1076
1076
  })]),
1077
1077
  _: 1
1078
1078
  })]),
1079
- w("img", {
1079
+ E("img", {
1080
1080
  src: t.imageUrl,
1081
1081
  alt: t.imageAlt,
1082
1082
  exit: { opacity: 1 },
@@ -1086,7 +1086,7 @@ var Jt = { class: "p-xl w-96 max-w-full" }, Yt = /* @__PURE__ */ D({
1086
1086
  _: 1
1087
1087
  }));
1088
1088
  }
1089
- }), xn = { class: "relative isolate overflow-hidden" }, Sn = ["disabled"], Cn = { class: "sr-only" }, wn = ["src", "alt"], Tn = /* @__PURE__ */ D({
1089
+ }), xn = { class: "relative isolate overflow-hidden" }, Sn = ["disabled"], Cn = { class: "sr-only" }, wn = ["src", "alt"], Tn = /* @__PURE__ */ k({
1090
1090
  __name: "Image",
1091
1091
  props: {
1092
1092
  isZoomEnabled: {
@@ -1099,7 +1099,7 @@ var Jt = { class: "p-xl w-96 max-w-full" }, Yt = /* @__PURE__ */ D({
1099
1099
  src: {}
1100
1100
  },
1101
1101
  setup(e) {
1102
- let t = e, n = R(), r = Qe(bn), i = N(!0);
1102
+ let t = e, n = B(), r = Qe(bn), i = F(!0);
1103
1103
  function a() {
1104
1104
  i.value = !1;
1105
1105
  }
@@ -1111,28 +1111,28 @@ var Jt = { class: "p-xl w-96 max-w-full" }, Yt = /* @__PURE__ */ D({
1111
1111
  imageUrl: t.src
1112
1112
  });
1113
1113
  }
1114
- return (e, n) => (M(), C("div", xn, [E(L(Y), { initial: !1 }, {
1115
- default: B(() => [i.value ? (M(), x(L(X), {
1114
+ return (e, n) => (P(), T("div", xn, [O(z(Y), { initial: !1 }, {
1115
+ default: V(() => [i.value ? (P(), C(z(X), {
1116
1116
  key: 0,
1117
1117
  exit: { opacity: 0 },
1118
1118
  transition: { duration: .2 },
1119
1119
  class: "absolute inset-0 z-1"
1120
1120
  }, {
1121
- default: B(() => [t.blurhash === null ? S("", !0) : (M(), x(gn, {
1121
+ default: V(() => [t.blurhash === null ? w("", !0) : (P(), C(gn, {
1122
1122
  key: 0,
1123
1123
  blurhash: t.blurhash
1124
1124
  }, null, 8, ["blurhash"]))]),
1125
1125
  _: 1
1126
- })) : S("", !0), w("button", k(L(r).triggerProps.value, {
1126
+ })) : w("", !0), E("button", j(z(r).triggerProps.value, {
1127
1127
  class: [{ "pointer-events-none": !t.isZoomEnabled }, "block size-full cursor-pointer outline-none"],
1128
1128
  disabled: !t.isZoomEnabled,
1129
1129
  variant: "unstyled",
1130
1130
  type: "button",
1131
1131
  onClick: o
1132
- }), [w("span", Cn, " Zoom image " + I(t.alt), 1), w("img", {
1132
+ }), [E("span", Cn, " Zoom image " + R(t.alt), 1), E("img", {
1133
1133
  src: t.src,
1134
1134
  alt: t.alt,
1135
- class: A([{
1135
+ class: M([{
1136
1136
  "object-cover": t.fit === "cover",
1137
1137
  "object-contain": t.fit === "contain"
1138
1138
  }, "size-full"]),
@@ -1145,7 +1145,7 @@ var Jt = { class: "p-xl w-96 max-w-full" }, Yt = /* @__PURE__ */ D({
1145
1145
  key: 1,
1146
1146
  "aria-hidden": !0,
1147
1147
  class: "flex size-8 items-center justify-center"
1148
- }, On = { class: "relative" }, kn = { class: "text-primary-on-brand absolute bottom-0.5 left-1/2 z-89 -translate-x-1/2 text-[0.625rem] font-medium" }, An = { class: "flex items-center justify-between overflow-hidden" }, jn = { class: "flex flex-col overflow-hidden" }, Mn = { class: "text-tertiary text-xs" }, Nn = { class: "bg-quaternary h-0.75 w-28 shrink-0 rounded-full" }, Pn = /* @__PURE__ */ D({
1148
+ }, On = { class: "relative" }, kn = { class: "text-primary-on-brand absolute bottom-0.5 left-1/2 z-89 -translate-x-1/2 text-[0.625rem] font-medium" }, An = { class: "flex items-center justify-between overflow-hidden" }, jn = { class: "flex flex-col overflow-hidden" }, Mn = { class: "text-tertiary text-xs" }, Nn = { class: "bg-quaternary h-0.75 w-28 shrink-0 rounded-full" }, Pn = /* @__PURE__ */ k({
1149
1149
  __name: "FormFileUploadItem",
1150
1150
  props: {
1151
1151
  isMultiple: { type: Boolean },
@@ -1153,50 +1153,50 @@ var Jt = { class: "p-xl w-96 max-w-full" }, Yt = /* @__PURE__ */ D({
1153
1153
  },
1154
1154
  setup(e) {
1155
1155
  let t = e;
1156
- return (e, n) => (M(), x(L(Re), { item: t.item }, {
1157
- default: B(() => [w("li", En, [E(f, { justify: "between" }, {
1158
- default: B(() => [E(f, {
1156
+ return (e, n) => (P(), C(z(Re), { item: t.item }, {
1157
+ default: V(() => [E("li", En, [O(f, { justify: "between" }, {
1158
+ default: V(() => [O(f, {
1159
1159
  gap: "lg",
1160
1160
  class: "overflow-hidden"
1161
1161
  }, {
1162
- default: B(() => [t.item.url !== null && t.item.mimeType.startsWith("image/") ? (M(), x(Tn, {
1162
+ default: V(() => [t.item.url !== null && t.item.mimeType.startsWith("image/") ? (P(), C(Tn, {
1163
1163
  key: 0,
1164
1164
  "is-zoom-enabled": !0,
1165
1165
  alt: t.item.name,
1166
1166
  src: t.item.url,
1167
- blurhash: t.item.status === L(H).SUCCESS ? t.item.blurHash : null,
1167
+ blurhash: t.item.status === z(U).SUCCESS ? t.item.blurHash : null,
1168
1168
  class: "size-8 shrink-0 rounded-md",
1169
1169
  fit: "cover"
1170
1170
  }, null, 8, [
1171
1171
  "alt",
1172
1172
  "src",
1173
1173
  "blurhash"
1174
- ])) : (M(), C("div", Dn, [w("div", On, [E(L(q), {
1174
+ ])) : (P(), T("div", Dn, [E("div", On, [O(z(q), {
1175
1175
  icon: "file",
1176
1176
  class: "text-brand-500 size-8"
1177
- }), w("div", kn, I(L(we).mimeTypeToExtension(t.item.mimeType)), 1)])])), w("div", An, [w("div", jn, [E(At, {
1177
+ }), E("div", kn, R(z(Se).mimeTypeToExtension(t.item.mimeType)), 1)])])), E("div", An, [E("div", jn, [O(At, {
1178
1178
  label: t.item.name,
1179
1179
  class: "text-primary truncate text-sm"
1180
- }, null, 8, ["label"]), E(f, null, {
1181
- default: B(() => [w("span", Mn, I(t.item.mimeType), 1), E(L(Y), { initial: !1 }, {
1182
- default: B(() => [t.item.status === L(H).UPLOADING || t.item.status === L(H).PENDING ? (M(), x(L(X), {
1180
+ }, null, 8, ["label"]), O(f, null, {
1181
+ default: V(() => [E("span", Mn, R(t.item.mimeType), 1), O(z(Y), { initial: !1 }, {
1182
+ default: V(() => [t.item.status === z(U).UPLOADING || t.item.status === z(U).PENDING ? (P(), C(z(X), {
1183
1183
  key: 0,
1184
1184
  exit: { opacity: 0 },
1185
1185
  "as-child": !0
1186
1186
  }, {
1187
- default: B(() => [w("div", Nn, [E(L(X), {
1188
- animate: { width: t.item.status === L(H).UPLOADING ? `${t.item.progress}%` : "0%" },
1187
+ default: V(() => [E("div", Nn, [O(z(X), {
1188
+ animate: { width: t.item.status === z(U).UPLOADING ? `${t.item.progress}%` : "0%" },
1189
1189
  initial: { width: "0%" },
1190
1190
  class: "bg-brand-solid h-full rounded-full"
1191
1191
  }, null, 8, ["animate"])])]),
1192
1192
  _: 1
1193
- })) : S("", !0)]),
1193
+ })) : w("", !0)]),
1194
1194
  _: 1
1195
1195
  })]),
1196
1196
  _: 1
1197
1197
  })])])]),
1198
1198
  _: 1
1199
- }), E(an, {
1199
+ }), O(an, {
1200
1200
  "is-multiple": t.isMultiple,
1201
1201
  item: t.item
1202
1202
  }, null, 8, ["is-multiple", "item"])]),
@@ -1205,13 +1205,13 @@ var Jt = { class: "p-xl w-96 max-w-full" }, Yt = /* @__PURE__ */ D({
1205
1205
  _: 1
1206
1206
  }, 8, ["item"]));
1207
1207
  }
1208
- }), Fn = v.object({
1209
- uuid: v.string(),
1210
- name: v.string(),
1211
- blurHash: v.string().nullable(),
1212
- mimeType: v.string(),
1213
- order: v.number(),
1214
- url: v.string().nullable()
1208
+ }), Fn = b.object({
1209
+ uuid: b.string(),
1210
+ name: b.string(),
1211
+ blurHash: b.string().nullable(),
1212
+ mimeType: b.string(),
1213
+ order: b.number(),
1214
+ url: b.string().nullable()
1215
1215
  });
1216
1216
  //#endregion
1217
1217
  //#region src/api/queries/deal/dealDetail.query.ts
@@ -1224,9 +1224,9 @@ function In(e) {
1224
1224
  //#endregion
1225
1225
  //#region src/api/mutations/mail/mailCreate.mutation.ts
1226
1226
  function Ln() {
1227
- return te({
1227
+ return m({
1228
1228
  queryFn: async ({ body: e, params: t }) => {
1229
- await Ee.create(e, t.externalAttachments);
1229
+ await we.create(e, t.externalAttachments);
1230
1230
  },
1231
1231
  queryKeysToInvalidate: {
1232
1232
  dealDetail: { dealUuid: (e) => e.dealUuid },
@@ -1236,9 +1236,9 @@ function Ln() {
1236
1236
  }
1237
1237
  //#endregion
1238
1238
  //#region src/deal/components/DealSendMailFormAttachmentField.vue?vue&type=script&setup=true&lang.ts
1239
- var Rn = { class: "w-full overflow-hidden" }, zn = { class: "gap-md flex flex-col justify-start" }, Bn = { class: "relative" }, Vn = { class: "overflow-hidden" }, Hn = { class: "gap-sm py-md flex overflow-x-auto" }, Un = /* @__PURE__ */ D({
1239
+ var Rn = { class: "w-full overflow-hidden" }, zn = { class: "gap-md flex flex-col justify-start" }, Bn = { class: "relative" }, Vn = { class: "overflow-hidden" }, Hn = { class: "gap-sm py-md flex overflow-x-auto" }, Un = /* @__PURE__ */ k({
1240
1240
  __name: "DealSendMailFormAttachmentField",
1241
- props: /* @__PURE__ */ O({
1241
+ props: /* @__PURE__ */ A({
1242
1242
  id: { default: null },
1243
1243
  isRequired: {
1244
1244
  type: Boolean,
@@ -1259,61 +1259,61 @@ var Rn = { class: "w-full overflow-hidden" }, zn = { class: "gap-md flex flex-co
1259
1259
  }),
1260
1260
  emits: ["update:modelValue"],
1261
1261
  setup(e) {
1262
- let t = e, n = z(e, "modelValue"), r = $e(), i = V(), a = R(), o = b(() => Array.isArray(n.value));
1262
+ let t = e, n = Oe(e, "modelValue"), r = $e(), i = H(), a = B(), o = S(() => Array.isArray(n.value));
1263
1263
  function s(e) {
1264
1264
  r.error({
1265
1265
  title: o.value ? i.t("component.file_upload.error.multiple_files_rejected") : i.t("component.file_upload.error.single_file_rejected"),
1266
1266
  description: e.map((e) => e.name).join(", ")
1267
1267
  });
1268
1268
  }
1269
- return (e, r) => (M(), C("div", Rn, [E(L(Ve), {
1269
+ return (e, r) => (P(), T("div", Rn, [O(z(Ve), {
1270
1270
  modelValue: n.value,
1271
1271
  "onUpdate:modelValue": r[0] ||= (e) => n.value = e,
1272
1272
  accept: t.accept,
1273
- "get-file-info": L($t).getFileInfo,
1274
- "confirm-upload": L($t).confirmUpload,
1273
+ "get-file-info": z($t).getFileInfo,
1274
+ "confirm-upload": z($t).confirmUpload,
1275
1275
  onFilesRejected: s
1276
1276
  }, {
1277
- default: B(({ items: e }) => [E(L(nt), { transition: {
1277
+ default: V(({ items: e }) => [O(z(nt), { transition: {
1278
1278
  duration: .3,
1279
1279
  type: "spring",
1280
1280
  bounce: 0
1281
1281
  } }, {
1282
- default: B(() => [w("div", zn, [E(L(He), null, {
1283
- default: B(() => [E(L(U), {
1282
+ default: V(() => [E("div", zn, [O(z(He), null, {
1283
+ default: V(() => [O(z(Me), {
1284
1284
  class: "w-fit",
1285
1285
  "icon-left": "attachment",
1286
1286
  variant: "secondary"
1287
1287
  }, {
1288
- default: B(() => [T(I(L(i).t("wise_crm.deal.send_mail.attachment_field.add_attachment")), 1)]),
1288
+ default: V(() => [D(R(z(i).t("wise_crm.deal.send_mail.attachment_field.add_attachment")), 1)]),
1289
1289
  _: 1
1290
1290
  })]),
1291
1291
  _: 1
1292
- }), e.length > 0 || t.externalAttachments.length > 0 ? (M(), x(L(Le), { key: 0 }, {
1293
- default: B(({ isHoveringOverPage: n, isHoveringOverDropzone: r }) => [E(L(G), {
1294
- for: L(a),
1292
+ }), e.length > 0 || t.externalAttachments.length > 0 ? (P(), C(z(Le), { key: 0 }, {
1293
+ default: V(({ isHoveringOverPage: n, isHoveringOverDropzone: r }) => [O(z(G), {
1294
+ for: z(a),
1295
1295
  hint: t.hint,
1296
1296
  "error-message": t.errorMessage,
1297
1297
  "is-required": t.isRequired,
1298
1298
  "is-touched": t.isTouched,
1299
- label: L(i).t("wise_crm.deal.send_mail.attachment_field.mail_attachments_label")
1299
+ label: z(i).t("wise_crm.deal.send_mail.attachment_field.mail_attachments_label")
1300
1300
  }, {
1301
- label: B(() => [E(L(K), { class: "sr-only" })]),
1302
- default: B(() => [w("div", Bn, [E(tn, {
1301
+ label: V(() => [O(z(K), { class: "sr-only" })]),
1302
+ default: V(() => [E("div", Bn, [O(tn, {
1303
1303
  "is-hovering-over-page": n,
1304
1304
  "is-hovering-over-dropzone": r
1305
- }, null, 8, ["is-hovering-over-page", "is-hovering-over-dropzone"]), E(St, null, {
1306
- default: B(() => [E(L(Y), {
1305
+ }, null, 8, ["is-hovering-over-page", "is-hovering-over-dropzone"]), O(St, null, {
1306
+ default: V(() => [O(z(Y), {
1307
1307
  initial: !1,
1308
1308
  mode: "popLayout"
1309
1309
  }, {
1310
- default: B(() => [w("div", Vn, [w("ul", Hn, [(M(!0), C(y, null, P(t.externalAttachments, (e) => (M(), x(De, {
1310
+ default: V(() => [E("div", Vn, [E("ul", Hn, [(P(!0), T(x, null, I(t.externalAttachments, (e) => (P(), C(Te, {
1311
1311
  key: e.uuid,
1312
1312
  attachment: e
1313
- }, null, 8, ["attachment"]))), 128)), (M(!0), C(y, null, P(e, (e) => (M(), C("div", {
1313
+ }, null, 8, ["attachment"]))), 128)), (P(!0), T(x, null, I(e, (e) => (P(), T("div", {
1314
1314
  key: e.key,
1315
1315
  class: "w-90"
1316
- }, [E(Pn, {
1316
+ }, [O(Pn, {
1317
1317
  item: e,
1318
1318
  "is-multiple": o.value
1319
1319
  }, null, 8, ["item", "is-multiple"])]))), 128))])])]),
@@ -1331,7 +1331,7 @@ var Rn = { class: "w-full overflow-hidden" }, zn = { class: "gap-md flex flex-co
1331
1331
  "label"
1332
1332
  ])]),
1333
1333
  _: 2
1334
- }, 1024)) : S("", !0)])]),
1334
+ }, 1024)) : w("", !0)])]),
1335
1335
  _: 2
1336
1336
  }, 1024)]),
1337
1337
  _: 1
@@ -1345,7 +1345,7 @@ var Rn = { class: "w-full overflow-hidden" }, zn = { class: "gap-md flex flex-co
1345
1345
  }), Wn = { class: "gap-md text-tertiary flex items-center" }, Gn = {
1346
1346
  key: 0,
1347
1347
  class: "gap-xs flex items-center"
1348
- }, Kn = { class: "text-xs" }, qn = /* @__PURE__ */ D({
1348
+ }, Kn = { class: "text-xs" }, qn = /* @__PURE__ */ k({
1349
1349
  __name: "DealSendMailFormFooter",
1350
1350
  props: {
1351
1351
  isGeneratingPdf: {
@@ -1359,46 +1359,46 @@ var Rn = { class: "w-full overflow-hidden" }, zn = { class: "gap-md flex flex-co
1359
1359
  },
1360
1360
  emits: ["cancel"],
1361
1361
  setup(t, { emit: n }) {
1362
- let r = t, i = n, a = V();
1362
+ let r = t, i = n, a = H();
1363
1363
  function o() {
1364
1364
  i("cancel");
1365
1365
  }
1366
- return (n, i) => (M(), x(e, { class: "pt-lg gap-md border-secondary flex justify-between border-t" }, {
1367
- default: B(() => [E(L(U), {
1366
+ return (n, i) => (P(), C(e, { class: "pt-lg gap-md border-secondary flex justify-between border-t" }, {
1367
+ default: V(() => [O(z(Me), {
1368
1368
  variant: "secondary",
1369
1369
  size: "lg",
1370
1370
  onClick: o
1371
1371
  }, {
1372
- default: B(() => [T(I(L(a).t("wise_crm.form.cancel")), 1)]),
1372
+ default: V(() => [D(R(z(a).t("wise_crm.form.cancel")), 1)]),
1373
1373
  _: 1
1374
- }), w("div", Wn, [t.isGeneratingPdf ? (M(), C("div", Gn, [E(L(We), { class: "size-3" }), w("span", Kn, I(L(a).t("wise_crm.deal.send_mail.pdf_generating")), 1)])) : S("", !0), E(L(U), {
1374
+ }), E("div", Wn, [t.isGeneratingPdf ? (P(), T("div", Gn, [O(z(We), { class: "size-3" }), E("span", Kn, R(z(a).t("wise_crm.deal.send_mail.pdf_generating")), 1)])) : w("", !0), O(z(Me), {
1375
1375
  "is-loading": r.isSubmitting,
1376
1376
  "is-disabled": t.isGeneratingPdf,
1377
1377
  size: "lg",
1378
1378
  type: "submit"
1379
1379
  }, {
1380
- default: B(() => [T(I(L(a).t("wise_crm.form.send")), 1)]),
1380
+ default: V(() => [D(R(z(a).t("wise_crm.form.send")), 1)]),
1381
1381
  _: 1
1382
1382
  }, 8, ["is-loading", "is-disabled"])])]),
1383
1383
  _: 1
1384
1384
  }));
1385
1385
  }
1386
- }), Jn = _.uuid().brand("MailTemplateUuid"), Yn = _.object({
1387
- clientId: _.object({
1388
- uuid: _.uuid(),
1389
- type: _.enum(be)
1386
+ }), Jn = y.uuid().brand("MailTemplateUuid"), Yn = y.object({
1387
+ clientId: y.object({
1388
+ uuid: y.uuid(),
1389
+ type: y.enum(he)
1390
1390
  }),
1391
- dealUuid: _.uuid(),
1391
+ dealUuid: y.uuid(),
1392
1392
  mailTemplateUuid: Jn,
1393
1393
  attachments: Fn.array(),
1394
- bcc: _.array(_.email()).nullable(),
1395
- cc: _.array(_.email()).nullable(),
1396
- from: _.email().nullable(),
1397
- replyTo: _.email().nullable(),
1398
- subject: _.string().min(1),
1399
- text: _.string().min(1),
1400
- to: _.array(_.email()).min(1)
1401
- }), Xn = { class: "flex-1 overflow-y-auto" }, Zn = /* @__PURE__ */ D({
1394
+ bcc: y.array(y.email()).nullable(),
1395
+ cc: y.array(y.email()).nullable(),
1396
+ from: y.email().nullable(),
1397
+ replyTo: y.email().nullable(),
1398
+ subject: y.string().min(1),
1399
+ text: y.string().min(1),
1400
+ to: y.array(y.email()).min(1)
1401
+ }), Xn = { class: "flex-1 overflow-y-auto" }, Zn = /* @__PURE__ */ k({
1402
1402
  __name: "DealSendMailForm",
1403
1403
  props: {
1404
1404
  dealUuid: {},
@@ -1411,7 +1411,7 @@ var Rn = { class: "w-full overflow-hidden" }, zn = { class: "gap-md flex flex-co
1411
1411
  },
1412
1412
  emits: ["close"],
1413
1413
  setup(e, { emit: n }) {
1414
- let r = e, i = n, s = V(), c = o(), l = Ln(), u = b(() => r.template.locales.findIndex((e) => e.language === r.dealLanguage)), d = tt({
1414
+ let r = e, i = n, s = H(), c = o(), l = Ln(), u = S(() => r.template.locales.findIndex((e) => e.language === r.dealLanguage)), d = tt({
1415
1415
  initialState: {
1416
1416
  clientId: {
1417
1417
  uuid: r.client.uuid,
@@ -1419,7 +1419,7 @@ var Rn = { class: "w-full overflow-hidden" }, zn = { class: "gap-md flex flex-co
1419
1419
  },
1420
1420
  dealUuid: r.dealUuid,
1421
1421
  mailTemplateUuid: r.template.uuid,
1422
- attachments: [...r.template.locales[u.value]?.attachments.map(Te.toForm) ?? []],
1422
+ attachments: [...r.template.locales[u.value]?.attachments.map(Ce.toForm) ?? []],
1423
1423
  bcc: r.template.defaultBCC,
1424
1424
  cc: r.template.defaultCC,
1425
1425
  from: null,
@@ -1437,60 +1437,60 @@ var Rn = { class: "w-full overflow-hidden" }, zn = { class: "gap-md flex flex-co
1437
1437
  dealUuid: r.dealUuid,
1438
1438
  externalAttachments: r.externalAttachments
1439
1439
  }
1440
- }), h();
1440
+ }), _();
1441
1441
  } catch (e) {
1442
1442
  c.show(e);
1443
1443
  }
1444
1444
  }
1445
1445
  });
1446
1446
  d.register("bcc"), d.register("cc"), d.register("replyTo"), d.register("from"), d.register("dealUuid", r.dealUuid), d.register("clientId", r.client);
1447
- let p = d.register("subject"), m = d.register("to"), ee = d.register("attachments", []), te = d.register("text");
1448
- function h() {
1447
+ let p = d.register("subject"), m = d.register("to"), h = d.register("attachments", []), g = d.register("text");
1448
+ function _() {
1449
1449
  i("close");
1450
1450
  }
1451
- return (e, n) => (M(), x(t, {
1452
- form: L(d),
1451
+ return (e, n) => (P(), C(t, {
1452
+ form: z(d),
1453
1453
  class: "flex h-full flex-col"
1454
1454
  }, {
1455
- default: B(() => [w("div", Xn, [
1456
- E(g, { class: "pr-6xl" }, {
1457
- default: B(() => [E(L(Ge), k(L(a)(L(p)), {
1455
+ default: V(() => [E("div", Xn, [
1456
+ O(v, { class: "pr-6xl" }, {
1457
+ default: V(() => [O(z(Ge), j(z(a)(z(p)), {
1458
1458
  "class-config": {
1459
1459
  input: "text-xl",
1460
1460
  root: "border-none shadow-none text-md"
1461
1461
  },
1462
- placeholder: L(s).t("wise_crm.deal.send_mail_form.subject_placeholder")
1462
+ placeholder: z(s).t("wise_crm.deal.send_mail_form.subject_placeholder")
1463
1463
  }), null, 16, ["placeholder"])]),
1464
1464
  _: 1
1465
1465
  }),
1466
- E(g, null, {
1467
- default: B(() => [E(f, null, {
1468
- default: B(() => [E(_t, k(L(a)(L(m)), {
1469
- label: L(s).t("wise_crm.deal.send_mail_form.to_label"),
1470
- placeholder: L(s).t("wise_crm.deal.send_mail_form.email_placeholder")
1466
+ O(v, null, {
1467
+ default: V(() => [O(f, null, {
1468
+ default: V(() => [O(_t, j(z(a)(z(m)), {
1469
+ label: z(s).t("wise_crm.deal.send_mail_form.to_label"),
1470
+ placeholder: z(s).t("wise_crm.deal.send_mail_form.email_placeholder")
1471
1471
  }), {
1472
- label: B(() => [E(L(K), { class: "sr-only" })]),
1472
+ label: V(() => [O(z(K), { class: "sr-only" })]),
1473
1473
  _: 1
1474
1474
  }, 16, ["label", "placeholder"])]),
1475
1475
  _: 1
1476
1476
  })]),
1477
1477
  _: 1
1478
1478
  }),
1479
- E(g, null, {
1480
- default: B(() => [E(Un, k({ "external-attachments": r.externalAttachments }, L(a)(L(ee)), { accept: ["application/pdf", "image/*"] }), null, 16, ["external-attachments"])]),
1479
+ O(v, null, {
1480
+ default: V(() => [O(Un, j({ "external-attachments": r.externalAttachments }, z(a)(z(h)), { accept: ["application/pdf", "image/*"] }), null, 16, ["external-attachments"])]),
1481
1481
  _: 1
1482
1482
  }),
1483
- E(g, { class: "flex-1 border-b-0" }, {
1484
- default: B(() => [E(Qt, k(L(a)(L(te)), { label: L(s).t("wise_crm.deal.send_mail_form.message_label") }), {
1485
- label: B(() => [E(L(K), { class: "sr-only" })]),
1483
+ O(v, { class: "flex-1 border-b-0" }, {
1484
+ default: V(() => [O(Qt, j(z(a)(z(g)), { label: z(s).t("wise_crm.deal.send_mail_form.message_label") }), {
1485
+ label: V(() => [O(z(K), { class: "sr-only" })]),
1486
1486
  _: 1
1487
1487
  }, 16, ["label"])]),
1488
1488
  _: 1
1489
1489
  })
1490
- ]), E(qn, {
1490
+ ]), O(qn, {
1491
1491
  "is-generating-pdf": r.isGeneratingPdf,
1492
- "is-submitting": L(d).isSubmitting.value,
1493
- onCancel: h
1492
+ "is-submitting": z(d).isSubmitting.value,
1493
+ onCancel: _
1494
1494
  }, null, 8, ["is-generating-pdf", "is-submitting"])]),
1495
1495
  _: 1
1496
1496
  }, 8, ["form"]));
@@ -1498,7 +1498,7 @@ var Rn = { class: "w-full overflow-hidden" }, zn = { class: "gap-md flex flex-co
1498
1498
  }), Qn = {
1499
1499
  key: 0,
1500
1500
  class: "p-xl"
1501
- }, $n = /* @__PURE__ */ D({
1501
+ }, $n = /* @__PURE__ */ k({
1502
1502
  __name: "DealSendMailDialog",
1503
1503
  props: {
1504
1504
  dealUuid: {},
@@ -1510,7 +1510,7 @@ var Rn = { class: "w-full overflow-hidden" }, zn = { class: "gap-md flex flex-co
1510
1510
  },
1511
1511
  emits: ["close"],
1512
1512
  setup(e, { emit: t }) {
1513
- let n = e, r = t, i = o(), a = N(n.generatePdfFile !== void 0), s = N(null), c = b(() => s.value === null ? n.externalAttachments : [...n.externalAttachments, s.value]), l = In(b(() => n.dealUuid)), u = b(() => l.data.value?.dealLanguage ?? xe.NL_BE), d = qt(b(() => n.templateKey));
1513
+ let n = e, r = t, i = o(), a = F(n.generatePdfFile !== void 0), s = F(null), c = S(() => s.value === null ? n.externalAttachments : [...n.externalAttachments, s.value]), l = In(S(() => n.dealUuid)), u = S(() => l.data.value?.dealLanguage ?? ce.NL_BE), d = qt(S(() => n.templateKey));
1514
1514
  function p() {
1515
1515
  r("close");
1516
1516
  }
@@ -1523,25 +1523,25 @@ var Rn = { class: "w-full overflow-hidden" }, zn = { class: "gap-md flex flex-co
1523
1523
  a.value = !1;
1524
1524
  }
1525
1525
  }
1526
- return j(async () => {
1526
+ return N(async () => {
1527
1527
  await m();
1528
- }), (e, t) => (M(), x(L(W), {
1528
+ }), (e, t) => (P(), C(z(W), {
1529
1529
  "class-config": { closeButton: { root: "bg-primary" } },
1530
1530
  class: "h-200 max-h-[90vh] w-280 max-w-[90vw]",
1531
1531
  onClose: p
1532
1532
  }, {
1533
- default: B(() => [E(L(Pe), { class: "h-full w-full border" }, {
1534
- default: B(() => [L(d).isLoading.value ? (M(), C("div", Qn, [E(f, {
1533
+ default: V(() => [O(z(Pe), { class: "h-full w-full border" }, {
1534
+ default: V(() => [z(d).isLoading.value ? (P(), T("div", Qn, [O(f, {
1535
1535
  direction: "col",
1536
1536
  class: "h-full"
1537
1537
  }, {
1538
- default: B(() => [E(ee, { class: "h-40 w-full" }), E(ee, { class: "mt-xl w-full flex-1" })]),
1538
+ default: V(() => [O(g, { class: "h-40 w-full" }), O(g, { class: "mt-xl w-full flex-1" })]),
1539
1539
  _: 1
1540
- })])) : L(d).data.value !== null && L(l).data.value !== null ? (M(), x(Zn, {
1540
+ })])) : z(d).data.value !== null && z(l).data.value !== null ? (P(), C(Zn, {
1541
1541
  key: 1,
1542
- "default-sender-emails": L(l).data.value.contactPersons.map((e) => e.email).filter((e) => e !== null),
1542
+ "default-sender-emails": z(l).data.value.contactPersons.map((e) => e.email).filter((e) => e !== null),
1543
1543
  "deal-language": u.value,
1544
- template: L(d).data.value,
1544
+ template: z(d).data.value,
1545
1545
  client: n.client,
1546
1546
  "deal-uuid": n.dealUuid,
1547
1547
  "external-attachments": c.value,
@@ -1555,7 +1555,7 @@ var Rn = { class: "w-full overflow-hidden" }, zn = { class: "gap-md flex flex-co
1555
1555
  "deal-uuid",
1556
1556
  "external-attachments",
1557
1557
  "is-generating-pdf"
1558
- ])) : S("", !0)]),
1558
+ ])) : w("", !0)]),
1559
1559
  _: 1
1560
1560
  })]),
1561
1561
  _: 1