@wisemen/wise-invoicing-web 0.7.0 → 0.9.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.
@@ -14,33 +14,33 @@ import { t as Qe } from "./dist-BFx8U4Su.js";
14
14
  import { t as $e } from "./invoiceApprovalStatus.util-B98WeAf0.js";
15
15
  import { t as et } from "./InvoiceApprovalStatusBadge-D6Sr6JmN.js";
16
16
  import { t as tt } from "./dashboard-BaWGNEek.js";
17
- import { i as nt, n as rt, r as it, t as at } from "./BillingDocumentPdf-c-7N80u4.js";
18
- import { n as ot, r as st, t as ct } from "./InvoicingFileUploadProvider-Dl1LvCPm.js";
19
- import lt, { z as T } from "zod";
17
+ import { n as nt, r as rt, t as it } from "./BillingDocumentPdf-BYn3lUyl.js";
18
+ import { n as at, r as ot, t as st } from "./InvoicingFileUploadProvider-Dl1LvCPm.js";
19
+ import ct, { z as T } from "zod";
20
20
  import { useI18n as E } from "vue-i18n";
21
- import { Fragment as D, computed as O, createBlock as k, createCommentVNode as A, createElementBlock as j, createElementVNode as M, createStaticVNode as ut, createTextVNode as dt, createVNode as N, defineComponent as P, getCurrentInstance as ft, guardReactiveProps as pt, h as mt, inject as ht, isRef as gt, mergeModels as _t, mergeProps as F, nextTick as vt, normalizeClass as yt, normalizeProps as bt, normalizeStyle as xt, onBeforeUnmount as St, onMounted as Ct, onUnmounted as wt, openBlock as I, provide as Tt, reactive as Et, ref as L, renderList as R, renderSlot as Dt, resolveDynamicComponent as Ot, toDisplayString as z, toRefs as kt, unref as B, useAttrs as At, useModel as jt, useTemplateRef as Mt, vShow as Nt, watch as Pt, withCtx as V, withDirectives as Ft, withKeys as It, withModifiers as Lt } from "vue";
22
- import { useMutation as Rt } from "@wisemen/vue-core-api-utils";
23
- import { refDebounced as zt, useInfiniteScroll as Bt, useLocalStorage as Vt, useResizeObserver as Ht, watchDebounced as Ut } from "@vueuse/core";
24
- import { RouterLink as Wt, useRouter as Gt } from "vue-router";
25
- import { Temporal as Kt } from "temporal-polyfill";
26
- import { UIActionTooltip as qt, UIBadge as Jt, UIButton as Yt, UICheckbox as Xt, UIClickableElement as Zt, UIColumnLayout as Qt, UIDashboardPage as $t, UIDashboardPageCenteredContentScrollable as en, UIDateField as tn, UIDetailListGroup as nn, UIDialogBody as rn, UIDialogFooter as an, UIDialogFooterCancel as on, UIDialogFooterSubmit as sn, UIDialogHeader as cn, UIDropdownMenu as ln, UIDropdownMenuGroup as un, UIDropdownMenuItem as dn, UIDropdownMenuSeparator as fn, UIEmptyState as pn, UIForm as mn, UIFormDialog as hn, UIFormFileUpload as gn, UIIconButton as _n, UINumberBadge as vn, UINumberField as yn, UIPopover as bn, UIRowLayout as H, UISelect as xn, UISelectDropdown as Sn, UISeparator as Cn, UISwitch as wn, UITabs as Tn, UITabsItem as En, UITabsList as Dn, UITagsField as On, UIText as U, UITextField as kn, UITextareaField as An, UITimeField as jn, UITimeline as Mn, UITimelineItem as Nn, UITooltip as Pn, UITooltipContent as Fn, createSelectOptions as In, useOverlay as Ln, useToast as Rn } from "@wisemen/vue-core-design-system";
27
- import { useViewModels as zn } from "@wisemen/vue-core-actions";
28
- import { useForm as Bn } from "formango";
21
+ import { Fragment as D, computed as O, createBlock as k, createCommentVNode as A, createElementBlock as j, createElementVNode as M, createStaticVNode as lt, createTextVNode as ut, createVNode as N, defineComponent as P, getCurrentInstance as dt, guardReactiveProps as ft, h as pt, inject as mt, isRef as ht, mergeModels as gt, mergeProps as F, nextTick as _t, normalizeClass as vt, normalizeProps as yt, normalizeStyle as bt, onBeforeUnmount as xt, onMounted as St, onUnmounted as Ct, openBlock as I, provide as wt, reactive as Tt, ref as L, renderList as R, renderSlot as Et, resolveDynamicComponent as Dt, toDisplayString as z, toRefs as Ot, unref as B, useAttrs as kt, useModel as At, useTemplateRef as jt, vShow as Mt, watch as Nt, withCtx as V, withDirectives as Pt, withKeys as Ft, withModifiers as It } from "vue";
22
+ import { useMutation as Lt } from "@wisemen/vue-core-api-utils";
23
+ import { refDebounced as Rt, useInfiniteScroll as zt, useLocalStorage as Bt, useResizeObserver as Vt, watchDebounced as Ht } from "@vueuse/core";
24
+ import { RouterLink as Ut, useRouter as Wt } from "vue-router";
25
+ import { Temporal as Gt } from "temporal-polyfill";
26
+ import { UIActionTooltip as Kt, UIBadge as qt, UIButton as Jt, UICheckbox as Yt, UIClickableElement as Xt, UIColumnLayout as Zt, UIDashboardPage as Qt, UIDashboardPageCenteredContentScrollable as $t, UIDateField as en, UIDetailListGroup as tn, UIDialogBody as nn, UIDialogFooter as rn, UIDialogFooterCancel as an, UIDialogFooterSubmit as on, UIDialogHeader as sn, UIDropdownMenu as cn, UIDropdownMenuGroup as ln, UIDropdownMenuItem as un, UIDropdownMenuSeparator as dn, UIEmptyState as fn, UIForm as pn, UIFormDialog as mn, UIFormFileUpload as hn, UIIconButton as gn, UINumberBadge as _n, UINumberField as vn, UIPopover as yn, UIRowLayout as H, UISelect as bn, UISelectDropdown as xn, UISeparator as Sn, UISwitch as Cn, UITabs as wn, UITabsItem as Tn, UITabsList as En, UITagsField as Dn, UIText as U, UITextField as On, UITextareaField as kn, UITimeField as An, UITimeline as jn, UITimelineItem as Mn, UITooltip as Nn, UITooltipContent as Pn, createSelectOptions as Fn, useOverlay as In, useToast as Ln } from "@wisemen/vue-core-design-system";
27
+ import { useViewModels as Rn } from "@wisemen/vue-core-actions";
28
+ import { useForm as zn } from "formango";
29
29
  //#region src/composables/form-auto-save/formAutoSave.composable.ts
30
- var Vn = 500;
31
- function Hn(e) {
30
+ var Bn = 500;
31
+ function Vn(e) {
32
32
  let { debounceMs: t, form: n } = e;
33
33
  async function r() {
34
34
  !n.isSubmitting.value && n.isValid.value && n.isDirty.value && await n.submit();
35
35
  }
36
- Ut(() => n.state.value, r, {
37
- debounce: t ?? Vn,
36
+ Ht(() => n.state.value, r, {
37
+ debounce: t ?? Bn,
38
38
  deep: !0
39
39
  });
40
40
  }
41
41
  //#endregion
42
42
  //#region src/models/billing-document/billingDocumentStatusEnum.model.ts
43
- var Un = class {
43
+ var Hn = class {
44
44
  value;
45
45
  colorMap = /* @__PURE__ */ new Map([
46
46
  [n.CREDITED, "success"],
@@ -73,9 +73,9 @@ var Un = class {
73
73
  get translationKey() {
74
74
  return this.i18nKeyMap.get(this.value) ?? "wise_invoicing.invoice.status.draft";
75
75
  }
76
- }, Wn = "wise-invoicing.billing-document.finalize-confirmation.skip";
77
- function Gn() {
78
- let e = Vt(Wn, !1);
76
+ }, Un = "wise-invoicing.billing-document.finalize-confirmation.skip";
77
+ function Wn() {
78
+ let e = Bt(Un, !1);
79
79
  function t(t) {
80
80
  e.value = t;
81
81
  }
@@ -86,7 +86,7 @@ function Gn() {
86
86
  }
87
87
  //#endregion
88
88
  //#region src/ui/billing-document/BillingDocumentFinalizeDialog.vue
89
- var Kn = /* @__PURE__ */ P({
89
+ var Gn = /* @__PURE__ */ P({
90
90
  __name: "BillingDocumentFinalizeDialog",
91
91
  props: {
92
92
  billingDocumentType: {},
@@ -94,42 +94,42 @@ var Kn = /* @__PURE__ */ P({
94
94
  },
95
95
  emits: ["close"],
96
96
  setup(e, { emit: t }) {
97
- let n = e, r = t, i = E(), { setShouldSkipConfirmation: a } = Gn(), o = Bn({
97
+ let n = e, r = t, i = E(), { setShouldSkipConfirmation: a } = Wn(), o = zn({
98
98
  initialState: { doNotShowAgain: !1 },
99
- schema: lt.object({ doNotShowAgain: lt.boolean() }),
99
+ schema: ct.object({ doNotShowAgain: ct.boolean() }),
100
100
  onSubmit: async (e) => {
101
101
  await n.onConfirm() && (e.doNotShowAgain && a(!0), r("close"));
102
102
  }
103
103
  }), s = o.register("doNotShowAgain", !1);
104
- return (e, t) => (I(), k(B(hn), {
104
+ return (e, t) => (I(), k(B(mn), {
105
105
  form: B(o),
106
106
  size: "sm",
107
107
  onClose: t[0] ||= (e) => r("close")
108
108
  }, {
109
- default: V(() => [N(B(cn), {
109
+ default: V(() => [N(B(sn), {
110
110
  title: B(i).t(`wise_invoicing.${n.billingDocumentType}.finalize.confirmation.title`),
111
111
  description: B(i).t(`wise_invoicing.${n.billingDocumentType}.finalize.confirmation.description`)
112
- }, null, 8, ["title", "description"]), N(B(an), null, {
113
- left: V(() => [N(B(Xt), F(B(Ze)(B(s)), { label: B(i).t("wise_invoicing.common.do_not_show_again") }), null, 16, ["label"])]),
114
- right: V(() => [N(B(on)), N(B(sn), { label: B(i).t(`wise_invoicing.${n.billingDocumentType}.finalize.confirmation.submit_button`) }, null, 8, ["label"])]),
112
+ }, null, 8, ["title", "description"]), N(B(rn), null, {
113
+ left: V(() => [N(B(Yt), F(B(Ze)(B(s)), { label: B(i).t("wise_invoicing.common.do_not_show_again") }), null, 16, ["label"])]),
114
+ right: V(() => [N(B(an)), N(B(on), { label: B(i).t(`wise_invoicing.${n.billingDocumentType}.finalize.confirmation.submit_button`) }, null, 8, ["label"])]),
115
115
  _: 1
116
116
  })]),
117
117
  _: 1
118
118
  }, 8, ["form"]));
119
119
  }
120
- }), qn = /* @__PURE__ */ P({
120
+ }), Kn = /* @__PURE__ */ P({
121
121
  __name: "InvoiceOverdueBadge",
122
122
  props: { size: { default: "sm" } },
123
123
  setup(e) {
124
124
  let t = e, n = E(), r = O(() => n.t("wise_invoicing.invoice.status.overdue"));
125
- return (e, n) => (I(), k(B(Jt), {
125
+ return (e, n) => (I(), k(B(qt), {
126
126
  label: r.value,
127
127
  size: t.size,
128
128
  color: "error",
129
129
  variant: "translucent"
130
130
  }, null, 8, ["label", "size"]));
131
131
  }
132
- }), Jn = { class: "flex size-9 items-center justify-center rounded-lg border border-primary bg-primary p-md shadow-xs" }, Yn = /* @__PURE__ */ P({
132
+ }), qn = { class: "flex size-9 items-center justify-center rounded-lg border border-primary bg-primary p-md shadow-xs" }, Jn = /* @__PURE__ */ P({
133
133
  __name: "BillingDocumentDetailHeaderSection",
134
134
  props: {
135
135
  isDisabled: { type: Boolean },
@@ -143,24 +143,24 @@ var Kn = /* @__PURE__ */ P({
143
143
  },
144
144
  setup(e) {
145
145
  let t = e, n = E();
146
- return (e, r) => (I(), k(B(Qt), { gap: "md" }, {
146
+ return (e, r) => (I(), k(B(Zt), { gap: "md" }, {
147
147
  default: V(() => [N(B(H), {
148
148
  justify: "between",
149
149
  class: "w-full flex-wrap"
150
150
  }, {
151
151
  default: V(() => [N(B(H), { class: "flex-1" }, {
152
- default: V(() => [M("div", Jn, [(I(), k(Ot(t.icon), { class: "size-5 text-secondary" }))]), N(B(Qt), { gap: "none" }, {
152
+ default: V(() => [M("div", qn, [(I(), k(Dt(t.icon), { class: "size-5 text-secondary" }))]), N(B(Zt), { gap: "none" }, {
153
153
  default: V(() => [N(B(H), null, {
154
154
  default: V(() => [
155
- t.isDisabled ? (I(), k(B(Pn), {
155
+ t.isDisabled ? (I(), k(B(Nn), {
156
156
  key: 0,
157
157
  "popover-side-offset": 8,
158
158
  "popover-align": "start",
159
159
  "popover-side": "bottom"
160
160
  }, {
161
161
  trigger: V(() => [N(B(oe), { class: "size-4 text-brand-primary" })]),
162
- content: V(() => [N(B(Fn), null, {
163
- default: V(() => [N(B(Qt), {
162
+ content: V(() => [N(B(Pn), null, {
163
+ default: V(() => [N(B(Zt), {
164
164
  gap: "xs",
165
165
  class: "max-w-80"
166
166
  }, {
@@ -179,7 +179,7 @@ var Kn = /* @__PURE__ */ P({
179
179
  as: "h1",
180
180
  class: "text-lg font-semibold text-primary"
181
181
  }, null, 8, ["text"]),
182
- Dt(e.$slots, "status", {}, () => [N(B(Jt), {
182
+ Et(e.$slots, "status", {}, () => [N(B(qt), {
183
183
  label: t.statusLabel,
184
184
  color: t.statusColor,
185
185
  size: "sm",
@@ -192,7 +192,7 @@ var Kn = /* @__PURE__ */ P({
192
192
  truncate: !1,
193
193
  text: B(Qe).trimOrNull(t.subjectField.modelValue.value) ?? "-",
194
194
  class: "text-sm wrap-break-word text-secondary"
195
- }, null, 8, ["text"])) : (I(), k(B(kn), F({ key: 1 }, B(Ze)(t.subjectField), {
195
+ }, null, 8, ["text"])) : (I(), k(B(On), F({ key: 1 }, B(Ze)(t.subjectField), {
196
196
  label: null,
197
197
  placeholder: t.subjectPlaceholder,
198
198
  class: "min-w-80"
@@ -204,7 +204,7 @@ var Kn = /* @__PURE__ */ P({
204
204
  justify: "end",
205
205
  class: "flex-1"
206
206
  }, {
207
- default: V(() => [Dt(e.$slots, "actions")]),
207
+ default: V(() => [Et(e.$slots, "actions")]),
208
208
  _: 3
209
209
  })]),
210
210
  _: 3
@@ -212,7 +212,7 @@ var Kn = /* @__PURE__ */ P({
212
212
  _: 3
213
213
  }));
214
214
  }
215
- }), Xn = /* @__PURE__ */ P({
215
+ }), Yn = /* @__PURE__ */ P({
216
216
  __name: "BillingDocumentHeaderActions",
217
217
  props: {
218
218
  isPdfViewActive: { type: Boolean },
@@ -230,14 +230,14 @@ var Kn = /* @__PURE__ */ P({
230
230
  }
231
231
  return (e, t) => (I(), k(B(H), { class: "gap-sm" }, {
232
232
  default: V(() => [
233
- N(B(Yt), {
233
+ N(B(Jt), {
234
234
  "icon-left": B(me),
235
235
  label: n.isPdfViewActive ? B(i).t("wise_invoicing.common.view_details") : B(i).t("wise_invoicing.common.view_pdf"),
236
236
  size: "md",
237
237
  variant: "secondary",
238
238
  onClick: t[0] ||= (e) => r("togglePdfView")
239
239
  }, null, 8, ["icon-left", "label"]),
240
- (I(!0), j(D, null, R(n.primaryButtons, (e) => (I(), k(B(Yt), {
240
+ (I(!0), j(D, null, R(n.primaryButtons, (e) => (I(), k(B(Jt), {
241
241
  key: e.key,
242
242
  "icon-left": e.iconLeft,
243
243
  "icon-right": e.iconRight,
@@ -259,14 +259,14 @@ var Kn = /* @__PURE__ */ P({
259
259
  "variant",
260
260
  "onClick"
261
261
  ]))), 128)),
262
- a.value ? (I(), k(B(ln), { key: 0 }, {
263
- trigger: V(() => [N(B(_n), {
262
+ a.value ? (I(), k(B(cn), { key: 0 }, {
263
+ trigger: V(() => [N(B(gn), {
264
264
  icon: B(We),
265
265
  label: B(i).t("wise_invoicing.invoice.detail.header.actions_more"),
266
266
  variant: "tertiary"
267
267
  }, null, 8, ["icon", "label"])]),
268
- content: V(() => [(I(!0), j(D, null, R(n.menuGroups, (e, t) => (I(), j(D, { key: e.key }, [t > 0 ? (I(), k(B(fn), { key: 0 })) : A("", !0), N(B(un), null, {
269
- default: V(() => [(I(!0), j(D, null, R(e.items, (e) => (I(), k(B(dn), {
268
+ content: V(() => [(I(!0), j(D, null, R(n.menuGroups, (e, t) => (I(), j(D, { key: e.key }, [t > 0 ? (I(), k(B(dn), { key: 0 })) : A("", !0), N(B(ln), null, {
269
+ default: V(() => [(I(!0), j(D, null, R(e.items, (e) => (I(), k(B(un), {
270
270
  key: e.key,
271
271
  config: o(e),
272
272
  "disabled-reason": e.disabledReason,
@@ -286,7 +286,7 @@ var Kn = /* @__PURE__ */ P({
286
286
  _: 1
287
287
  }));
288
288
  }
289
- }), Zn = /* @__PURE__ */ P({
289
+ }), Xn = /* @__PURE__ */ P({
290
290
  __name: "BillingDocumentDetailRemarksSection",
291
291
  props: {
292
292
  title: {},
@@ -296,7 +296,7 @@ var Kn = /* @__PURE__ */ P({
296
296
  },
297
297
  setup(e) {
298
298
  let t = e;
299
- return (e, n) => (I(), k(B(Qt), {
299
+ return (e, n) => (I(), k(B(Zt), {
300
300
  as: "section",
301
301
  gap: "md",
302
302
  class: "w-full"
@@ -310,7 +310,7 @@ var Kn = /* @__PURE__ */ P({
310
310
  text: B(Qe).trimOrNull(t.remarksField.modelValue.value) ?? "-",
311
311
  truncate: !1,
312
312
  class: "w-full text-sm whitespace-pre-wrap text-secondary"
313
- }, null, 8, ["text"])) : (I(), k(B(An), F({ key: 1 }, B(Ze)(t.remarksField), {
313
+ }, null, 8, ["text"])) : (I(), k(B(kn), F({ key: 1 }, B(Ze)(t.remarksField), {
314
314
  "is-disabled": t.isDisabled,
315
315
  label: null,
316
316
  placeholder: t.placeholder,
@@ -320,16 +320,16 @@ var Kn = /* @__PURE__ */ P({
320
320
  _: 1
321
321
  }));
322
322
  }
323
- }), Qn = {
323
+ }), Zn = {
324
324
  LEVEL: "level",
325
325
  REJECTION_REASON: "rejectionReason",
326
326
  REMARK: "remark",
327
327
  STATUS: "status"
328
328
  };
329
- function $n(e, t) {
329
+ function Qn(e, t) {
330
330
  return e.find((e) => e.entityRole === u.APPROVAL && e.field === t);
331
331
  }
332
- function er(e, n) {
332
+ function $n(e, n) {
333
333
  let r = T.enum(t).safeParse(e);
334
334
  if (!r.success) return null;
335
335
  let i = T.enum(l).safeParse(n);
@@ -340,11 +340,11 @@ function er(e, n) {
340
340
  status: r.data
341
341
  };
342
342
  }
343
- var tr = class {
343
+ var er = class {
344
344
  static getApprovalTransition(e) {
345
- let t = $n(e, Qn.STATUS);
345
+ let t = Qn(e, Zn.STATUS);
346
346
  if (t === void 0) return null;
347
- let n = $n(e, Qn.LEVEL), r = er(t.from, n?.from ?? null), i = er(t.to, n?.to ?? null);
347
+ let n = Qn(e, Zn.LEVEL), r = $n(t.from, n?.from ?? null), i = $n(t.to, n?.to ?? null);
348
348
  return {
349
349
  isStatusChanged: $e.getDisplayStatus({
350
350
  approval: r,
@@ -358,67 +358,67 @@ var tr = class {
358
358
  };
359
359
  }
360
360
  static getRejectionReason(e) {
361
- let t = T.enum(i).safeParse($n(e, Qn.REJECTION_REASON)?.to);
361
+ let t = T.enum(i).safeParse(Qn(e, Zn.REJECTION_REASON)?.to);
362
362
  return t.success ? t.data : null;
363
363
  }
364
364
  static getRemark(e) {
365
- let t = T.string().safeParse($n(e, Qn.REMARK)?.to);
365
+ let t = T.string().safeParse(Qn(e, Zn.REMARK)?.to);
366
366
  return t.success ? t.data : null;
367
367
  }
368
- }, nr = {
368
+ }, tr = {
369
369
  key: 0,
370
370
  class: "flex flex-col items-start gap-xs py-xs"
371
- }, rr = {
371
+ }, nr = {
372
372
  key: 0,
373
373
  class: "flex flex-wrap items-center gap-xs"
374
- }, ir = {
374
+ }, rr = {
375
375
  key: 1,
376
376
  class: "text-xs text-secondary"
377
- }, ar = {
377
+ }, ir = {
378
378
  key: 2,
379
379
  class: "text-xs wrap-break-word text-secondary"
380
- }, or = ["onClick"], sr = { class: "truncate" }, cr = /* @__PURE__ */ P({
380
+ }, ar = ["onClick"], or = { class: "truncate" }, sr = /* @__PURE__ */ P({
381
381
  __name: "BillingDocumentDetailSidebarActivityApprovalDetails",
382
382
  props: { entry: {} },
383
383
  setup(e) {
384
- let t = e, n = E(), r = O(() => tr.getApprovalTransition(t.entry.changes)), i = O(() => {
385
- let e = tr.getRejectionReason(t.entry.changes);
384
+ let t = e, n = E(), r = O(() => er.getApprovalTransition(t.entry.changes)), i = O(() => {
385
+ let e = er.getRejectionReason(t.entry.changes);
386
386
  return e === null ? null : n.t($e.getRejectionReasonTranslationKey(e));
387
- }), a = O(() => tr.getRemark(t.entry.changes)), o = O(() => t.entry.entities.filter((e) => e.role === u.ATTACHMENT)), s = O(() => r.value !== null || i.value !== null || a.value !== null || o.value.length > 0);
387
+ }), a = O(() => er.getRemark(t.entry.changes)), o = O(() => t.entry.entities.filter((e) => e.role === u.ATTACHMENT)), s = O(() => r.value !== null || i.value !== null || a.value !== null || o.value.length > 0);
388
388
  async function c(e) {
389
- let t = await st.getDownloadUrl(e.uuid);
389
+ let t = await ot.getDownloadUrl(e.uuid);
390
390
  t !== null && window.open(t, "_blank", "noopener");
391
391
  }
392
- return (e, t) => s.value ? (I(), j("div", nr, [
393
- r.value === null ? A("", !0) : (I(), j("div", rr, [r.value.isStatusChanged ? (I(), j(D, { key: 0 }, [N(et, {
392
+ return (e, t) => s.value ? (I(), j("div", tr, [
393
+ r.value === null ? A("", !0) : (I(), j("div", nr, [r.value.isStatusChanged ? (I(), j(D, { key: 0 }, [N(et, {
394
394
  approval: r.value.from,
395
395
  "requires-prior-approval": !0
396
396
  }, null, 8, ["approval"]), N(B(ue), { class: "size-(--spacing-lg) shrink-0 text-tertiary" })], 64)) : A("", !0), N(et, {
397
397
  approval: r.value.to,
398
398
  "requires-prior-approval": !0
399
399
  }, null, 8, ["approval"])])),
400
- i.value === null ? A("", !0) : (I(), j("p", ir, z(i.value), 1)),
401
- a.value === null ? A("", !0) : (I(), j("p", ar, z(a.value), 1)),
402
- (I(!0), j(D, null, R(o.value, (e) => (I(), k(B(Zt), { key: e.uuid }, {
400
+ i.value === null ? A("", !0) : (I(), j("p", rr, z(i.value), 1)),
401
+ a.value === null ? A("", !0) : (I(), j("p", ir, z(a.value), 1)),
402
+ (I(!0), j(D, null, R(o.value, (e) => (I(), k(B(Xt), { key: e.uuid }, {
403
403
  default: V(() => [M("button", {
404
404
  class: "flex max-w-full items-center gap-xs text-xs font-semibold text-brand-secondary underline-offset-2 hover:underline",
405
405
  type: "button",
406
406
  onClick: (t) => c(e)
407
- }, [N(B(He), { class: "size-(--spacing-lg) shrink-0" }), M("span", sr, z(e.label ?? B(n).t("wise_invoicing.invoice.detail.activity_log.attachment")), 1)], 8, or)]),
407
+ }, [N(B(He), { class: "size-(--spacing-lg) shrink-0" }), M("span", or, z(e.label ?? B(n).t("wise_invoicing.invoice.detail.activity_log.attachment")), 1)], 8, ar)]),
408
408
  _: 2
409
409
  }, 1024))), 128))
410
410
  ])) : A("", !0);
411
411
  }
412
- }), lr = {
412
+ }), cr = {
413
413
  key: 0,
414
414
  class: "flex flex-col divide-y divide-secondary py-xl"
415
- }, ur = {
415
+ }, lr = {
416
416
  key: 1,
417
417
  class: "flex size-full items-center justify-center py-xl"
418
- }, dr = { class: "text-xs text-primary" }, fr = ["title"], pr = {
418
+ }, ur = { class: "text-xs text-primary" }, dr = ["title"], fr = {
419
419
  key: 0,
420
420
  class: "border-t border-secondary px-xl py-lg"
421
- }, mr = /* @__PURE__ */ P({
421
+ }, pr = /* @__PURE__ */ P({
422
422
  __name: "BillingDocumentDetailSidebarActivityContent",
423
423
  props: {
424
424
  hasNextPage: { type: Boolean },
@@ -563,12 +563,12 @@ var tr = class {
563
563
  return `${te(e)} · ${C(e)}`;
564
564
  }
565
565
  let ie = L(null);
566
- return Bt(ie, async () => {
566
+ return zt(ie, async () => {
567
567
  !t.hasNextPage || t.isFetchingNextPage || await t.fetchNextPage();
568
- }, { distance: 250 }), (e, n) => t.isLoading ? (I(), j("div", lr, [(I(), j(D, null, R(5, (e) => M("div", {
568
+ }, { distance: 250 }), (e, n) => t.isLoading ? (I(), j("div", cr, [(I(), j(D, null, R(5, (e) => M("div", {
569
569
  key: e,
570
570
  class: "flex flex-col gap-xs px-xl py-lg"
571
- }, [...n[0] ||= [M("div", { class: "h-4 w-2/3 animate-pulse rounded-sm bg-secondary" }, null, -1), M("div", { class: "h-3 w-1/3 animate-pulse rounded-sm bg-secondary" }, null, -1)]])), 64))])) : s.value.length === 0 ? (I(), j("div", ur, [N(B(pn), {
571
+ }, [...n[0] ||= [M("div", { class: "h-4 w-2/3 animate-pulse rounded-sm bg-secondary" }, null, -1), M("div", { class: "h-3 w-1/3 animate-pulse rounded-sm bg-secondary" }, null, -1)]])), 64))])) : s.value.length === 0 ? (I(), j("div", lr, [N(B(fn), {
572
572
  description: t.emptyMessage,
573
573
  title: B(r).t("wise_invoicing.invoice.detail.sub_tabs.activity")
574
574
  }, null, 8, ["description", "title"])])) : (I(), j("div", {
@@ -576,39 +576,39 @@ var tr = class {
576
576
  ref_key: "scrollContainerRef",
577
577
  ref: ie,
578
578
  class: "h-full overflow-y-auto"
579
- }, [N(B(Mn), {
579
+ }, [N(B(jn), {
580
580
  size: "md",
581
581
  class: "p-xl"
582
582
  }, {
583
- default: V(() => [(I(!0), j(D, null, R(s.value, (e, t) => (I(), k(B(Nn), {
583
+ default: V(() => [(I(!0), j(D, null, R(s.value, (e, t) => (I(), k(B(Mn), {
584
584
  key: t,
585
585
  icon: ee(e),
586
586
  "is-last": t === s.value.length - 1
587
587
  }, {
588
588
  default: V(() => [
589
- M("p", dr, [(I(!0), j(D, null, R(S(e), (e, t) => (I(), j(D, { key: `${t}-${e.text}` }, [e.to === void 0 ? (I(), j("span", {
589
+ M("p", ur, [(I(!0), j(D, null, R(S(e), (e, t) => (I(), j(D, { key: `${t}-${e.text}` }, [e.to === void 0 ? (I(), j("span", {
590
590
  key: 1,
591
- class: yt({ "font-semibold": e.variant === "emphasis" })
592
- }, z(e.text), 3)) : (I(), k(B(Wt), {
591
+ class: vt({ "font-semibold": e.variant === "emphasis" })
592
+ }, z(e.text), 3)) : (I(), k(B(Ut), {
593
593
  key: 0,
594
594
  to: e.to,
595
595
  class: "font-semibold underline underline-offset-2 transition-colors hover:text-brand-700 focus-visible:text-brand-700 focus-visible:outline-none"
596
596
  }, {
597
- default: V(() => [dt(z(e.text), 1)]),
597
+ default: V(() => [ut(z(e.text), 1)]),
598
598
  _: 2
599
599
  }, 1032, ["to"]))], 64))), 128))]),
600
- N(cr, { entry: e }, null, 8, ["entry"]),
600
+ N(sr, { entry: e }, null, 8, ["entry"]),
601
601
  M("p", {
602
602
  title: ne(e),
603
603
  class: "truncate text-xs text-tertiary"
604
- }, z(re(e)), 9, fr)
604
+ }, z(re(e)), 9, dr)
605
605
  ]),
606
606
  _: 2
607
607
  }, 1032, ["icon", "is-last"]))), 128))]),
608
608
  _: 1
609
- }), t.isFetchingNextPage ? (I(), j("div", pr, [...n[1] ||= [M("div", { class: "h-4 w-full animate-pulse rounded-sm bg-secondary" }, null, -1)]])) : A("", !0)], 512));
609
+ }), t.isFetchingNextPage ? (I(), j("div", fr, [...n[1] ||= [M("div", { class: "h-4 w-full animate-pulse rounded-sm bg-secondary" }, null, -1)]])) : A("", !0)], 512));
610
610
  }
611
- }), hr = {
611
+ }), mr = {
612
612
  [f.BOOLEAN]: Ee,
613
613
  [f.DATE]: Se,
614
614
  [f.MONETARY]: Je,
@@ -619,13 +619,13 @@ var tr = class {
619
619
  [f.TEXT]: Re,
620
620
  [f.TEXT_ARRAY]: ae,
621
621
  [f.TIMESTAMP]: Oe
622
- }, gr = /* @__PURE__ */ P({
622
+ }, hr = /* @__PURE__ */ P({
623
623
  __name: "BillingDocumentDetailSidebarOriginalInvoiceSection",
624
624
  props: { originalInvoice: {} },
625
625
  setup(e) {
626
626
  let t = e, n = E(), r = h(), i = O(() => {
627
627
  if (t.originalInvoice === null) return null;
628
- let e = new Un(t.originalInvoice.status);
628
+ let e = new Hn(t.originalInvoice.status);
629
629
  return {
630
630
  uuid: t.originalInvoice.uuid,
631
631
  amountLabel: r.formatMonetary(t.originalInvoice.grossAmount),
@@ -634,7 +634,7 @@ var tr = class {
634
634
  statusLabel: n.t(e.translationKey)
635
635
  };
636
636
  });
637
- return (e, t) => i.value ? (I(), k(B(nn), {
637
+ return (e, t) => i.value ? (I(), k(B(tn), {
638
638
  key: 0,
639
639
  "collapse-options": {
640
640
  isCollapsible: !0,
@@ -648,7 +648,7 @@ var tr = class {
648
648
  },
649
649
  label: B(n).t("wise_invoicing.invoice.detail.parent_invoice.title")
650
650
  }, {
651
- default: V(() => [N(B(Wt), {
651
+ default: V(() => [N(B(Ut), {
652
652
  to: {
653
653
  name: "invoicing-invoice-detail",
654
654
  params: { invoiceUuid: i.value.uuid }
@@ -670,7 +670,7 @@ var tr = class {
670
670
  }, null, 8, ["text"]))]),
671
671
  _: 1
672
672
  }),
673
- N(B(Jt), {
673
+ N(B(qt), {
674
674
  label: i.value.statusLabel,
675
675
  color: i.value.statusColor,
676
676
  icon: B(Ve),
@@ -681,7 +681,7 @@ var tr = class {
681
681
  "color",
682
682
  "icon"
683
683
  ]),
684
- N(B(Jt), {
684
+ N(B(qt), {
685
685
  label: i.value.amountLabel,
686
686
  color: "gray",
687
687
  size: "sm",
@@ -693,11 +693,11 @@ var tr = class {
693
693
  _: 1
694
694
  }, 8, ["collapse-options", "label"])) : A("", !0);
695
695
  }
696
- }), _r = { class: "flex size-full items-center justify-center" }, vr = /* @__PURE__ */ P({
696
+ }), gr = { class: "flex size-full items-center justify-center" }, _r = /* @__PURE__ */ P({
697
697
  __name: "BillingDocumentDetailSidebarActivityTab",
698
698
  setup(e) {
699
699
  let t = E();
700
- return (e, n) => (I(), j("div", _r, [N(B(pn), {
700
+ return (e, n) => (I(), j("div", gr, [N(B(fn), {
701
701
  title: B(t).t("wise_invoicing.invoice.detail.sub_tabs.activity"),
702
702
  description: B(t).t("wise_invoicing.invoice.detail.sidebar.activity_empty")
703
703
  }, null, 8, ["title", "description"])]));
@@ -705,21 +705,21 @@ var tr = class {
705
705
  });
706
706
  //#endregion
707
707
  //#region src/modules/invoice/api/mutations/invoiceUpdateAttachments.mutation.ts
708
- function yr() {
709
- return Rt({
708
+ function vr() {
709
+ return Lt({
710
710
  queryFn: (e) => y.updateAttachments(e.params.invoiceUuid, e.body),
711
711
  queryKeysToInvalidate: { invoiceDetail: { invoiceUuid: (e) => e.invoiceUuid } }
712
712
  });
713
713
  }
714
714
  //#endregion
715
715
  //#region src/modules/invoice/models/invoice/update/invoiceAttachmentsUpdateForm.model.ts
716
- var br = T.object({ attachments: ot.array() }), xr = ["onClick"], Sr = 26214400, Cr = /* @__PURE__ */ P({
716
+ var yr = T.object({ attachments: at.array() }), br = ["onClick"], xr = 26214400, Sr = /* @__PURE__ */ P({
717
717
  __name: "BillingDocumentDetailSidebarAttachmentsTab",
718
718
  props: { billingDocument: {} },
719
719
  setup(e) {
720
- let t = e, n = E(), r = Rn(), i = yr(), a = Bn({
720
+ let t = e, n = E(), r = Ln(), i = vr(), a = zn({
721
721
  initialState: O(() => v.toForm(t.billingDocument.attachments)),
722
- schema: br,
722
+ schema: yr,
723
723
  onSubmit: async (e) => {
724
724
  let n = await i.execute({
725
725
  body: e,
@@ -729,7 +729,7 @@ var br = T.object({ attachments: ot.array() }), xr = ["onClick"], Sr = 26214400,
729
729
  }
730
730
  }), o = a.register("attachments");
731
731
  function s(e) {
732
- return e.size > Sr ? n.t("wise_invoicing.invoice.detail.sidebar.attachments_too_large") : !0;
732
+ return e.size > xr ? n.t("wise_invoicing.invoice.detail.sidebar.attachments_too_large") : !0;
733
733
  }
734
734
  let c = O(() => t.billingDocument.approvalProofs.map((e) => ({
735
735
  color: "success",
@@ -737,24 +737,24 @@ var br = T.object({ attachments: ot.array() }), xr = ["onClick"], Sr = 26214400,
737
737
  label: n.t("wise_invoicing.invoice.detail.sidebar.approval_proof")
738
738
  })));
739
739
  async function l(e) {
740
- let t = await st.getDownloadUrl(e.uuid);
740
+ let t = await ot.getDownloadUrl(e.uuid);
741
741
  t !== null && window.open(t, "_blank", "noopener");
742
742
  }
743
- return Hn({ form: a }), (e, t) => (I(), k(B(mn), {
743
+ return Vn({ form: a }), (e, t) => (I(), k(B(pn), {
744
744
  form: B(a),
745
745
  "prompt-on-unsaved-changes": !1
746
746
  }, {
747
- default: V(() => [N(B(Qt), {
747
+ default: V(() => [N(B(Zt), {
748
748
  gap: "md",
749
749
  class: "px-2xl py-xl"
750
750
  }, {
751
- default: V(() => [N(ct, null, {
752
- default: V(() => [N(B(gn), F(B(Ze)(B(o)), {
751
+ default: V(() => [N(st, null, {
752
+ default: V(() => [N(B(hn), F(B(Ze)(B(o)), {
753
753
  accept: ["*/*"],
754
754
  description: B(n).t("wise_invoicing.invoice.detail.sidebar.attachments_upload_description"),
755
755
  hint: B(n).t("wise_invoicing.invoice.detail.sidebar.attachments_upload_hint"),
756
756
  "is-valid-file": s,
757
- preprocess: B(st).preprocess,
757
+ preprocess: B(ot).preprocess,
758
758
  class: "w-full"
759
759
  }), null, 16, [
760
760
  "description",
@@ -766,14 +766,14 @@ var br = T.object({ attachments: ot.array() }), xr = ["onClick"], Sr = 26214400,
766
766
  key: e.file.uuid,
767
767
  gap: "sm"
768
768
  }, {
769
- default: V(() => [N(B(Zt), null, {
769
+ default: V(() => [N(B(Xt), null, {
770
770
  default: V(() => [M("button", {
771
771
  class: "min-w-0 truncate text-sm text-secondary underline-offset-2 hover:underline",
772
772
  type: "button",
773
773
  onClick: (t) => l(e.file)
774
- }, z(e.file.name), 9, xr)]),
774
+ }, z(e.file.name), 9, br)]),
775
775
  _: 2
776
- }, 1024), N(B(Jt), {
776
+ }, 1024), N(B(qt), {
777
777
  label: e.label,
778
778
  color: e.color,
779
779
  size: "sm",
@@ -786,15 +786,15 @@ var br = T.object({ attachments: ot.array() }), xr = ["onClick"], Sr = 26214400,
786
786
  _: 1
787
787
  }, 8, ["form"]));
788
788
  }
789
- }), wr = { class: "w-full" }, Tr = { class: "px-lg pt-md" }, Er = /* @__PURE__ */ P({
789
+ }), Cr = { class: "w-full" }, wr = { class: "px-lg pt-md" }, Tr = /* @__PURE__ */ P({
790
790
  __name: "BillingDocumentDetailSidebarHeader",
791
- props: /*@__PURE__*/ _t({ attachmentsCount: {} }, {
791
+ props: /*@__PURE__*/ gt({ attachmentsCount: {} }, {
792
792
  modelValue: { required: !0 },
793
793
  modelModifiers: {}
794
794
  }),
795
795
  emits: ["update:modelValue"],
796
796
  setup(e) {
797
- let t = e, n = jt(e, "modelValue"), r = E(), i = O(() => [
797
+ let t = e, n = At(e, "modelValue"), r = E(), i = O(() => [
798
798
  {
799
799
  key: "info",
800
800
  label: r.t("wise_invoicing.invoice.detail.sub_tabs.details")
@@ -809,18 +809,18 @@ var br = T.object({ attachments: ot.array() }), xr = ["onClick"], Sr = 26214400,
809
809
  label: r.t("wise_invoicing.invoice.detail.sub_tabs.activity")
810
810
  }
811
811
  ]);
812
- return (e, t) => (I(), j("div", wr, [M("div", Tr, [N(B(U), {
812
+ return (e, t) => (I(), j("div", Cr, [M("div", wr, [N(B(U), {
813
813
  text: B(r).t("wise_invoicing.invoice.detail.sidebar.details"),
814
814
  class: "text-sm font-semibold text-primary"
815
- }, null, 8, ["text"])]), N(B(Tn), {
815
+ }, null, 8, ["text"])]), N(B(wn), {
816
816
  modelValue: n.value,
817
817
  "onUpdate:modelValue": t[0] ||= (e) => n.value = e,
818
818
  "is-full-width": !0,
819
819
  "underline-tabs-horizontal-list-padding": "lg",
820
820
  variant: "underline"
821
821
  }, {
822
- default: V(() => [N(B(Dn), null, {
823
- default: V(() => [(I(!0), j(D, null, R(i.value, (e) => (I(), k(B(En), {
822
+ default: V(() => [N(B(En), null, {
823
+ default: V(() => [(I(!0), j(D, null, R(i.value, (e) => (I(), k(B(Tn), {
824
824
  key: e.key,
825
825
  value: e.key,
826
826
  label: e.label,
@@ -836,17 +836,17 @@ var br = T.object({ attachments: ot.array() }), xr = ["onClick"], Sr = 26214400,
836
836
  _: 1
837
837
  }, 8, ["modelValue"])]));
838
838
  }
839
- }), Dr = { class: "flex size-full min-h-0 flex-col overflow-hidden" }, Or = { class: "mt-auto px-3xl py-xl" }, kr = /* @__PURE__ */ P({
839
+ }), Er = { class: "flex size-full min-h-0 flex-col overflow-hidden" }, Dr = { class: "mt-auto px-3xl py-xl" }, Or = /* @__PURE__ */ P({
840
840
  __name: "BillingDocumentDetailSidebarLayout",
841
841
  props: { updatedFooter: {} },
842
842
  setup(e) {
843
843
  let t = e;
844
- return (e, n) => (I(), j("aside", Dr, [Dt(e.$slots, "default"), M("div", Or, [N(B(U), {
844
+ return (e, n) => (I(), j("aside", Er, [Et(e.$slots, "default"), M("div", Dr, [N(B(U), {
845
845
  text: t.updatedFooter,
846
846
  class: "text-right text-xs text-tertiary"
847
847
  }, null, 8, ["text"])])]));
848
848
  }
849
- }), Ar = { class: "flex-1 overflow-y-auto" }, jr = /* @__PURE__ */ P({
849
+ }), kr = { class: "flex-1 overflow-y-auto" }, Ar = /* @__PURE__ */ P({
850
850
  __name: "BillingDocumentDetailSidebar",
851
851
  props: {
852
852
  billingDocument: {},
@@ -854,28 +854,28 @@ var br = T.object({ attachments: ot.array() }), xr = ["onClick"], Sr = 26214400,
854
854
  },
855
855
  setup(e) {
856
856
  let t = e, n = L("info");
857
- return (e, r) => (I(), k(kr, { "updated-footer": t.updatedFooter }, {
858
- default: V(() => [N(Er, {
857
+ return (e, r) => (I(), k(Or, { "updated-footer": t.updatedFooter }, {
858
+ default: V(() => [N(Tr, {
859
859
  modelValue: n.value,
860
860
  "onUpdate:modelValue": r[0] ||= (e) => n.value = e,
861
861
  "attachments-count": t.billingDocument.attachments.length + t.billingDocument.approvalProofs.length
862
- }, null, 8, ["modelValue", "attachments-count"]), M("div", Ar, [n.value === "info" ? Dt(e.$slots, "info", {}, void 0, void 0, 0) : n.value === "attachments" ? (I(), k(Cr, {
862
+ }, null, 8, ["modelValue", "attachments-count"]), M("div", kr, [n.value === "info" ? Et(e.$slots, "info", {}, void 0, void 0, 0) : n.value === "attachments" ? (I(), k(Sr, {
863
863
  key: 1,
864
864
  "billing-document": t.billingDocument
865
- }, null, 8, ["billing-document"])) : Dt(e.$slots, "activity", {}, () => [N(vr)], void 0, 2)])]),
865
+ }, null, 8, ["billing-document"])) : Et(e.$slots, "activity", {}, () => [N(_r)], void 0, 2)])]),
866
866
  _: 3
867
867
  }, 8, ["updated-footer"]));
868
868
  }
869
869
  });
870
870
  //#endregion
871
871
  //#region src/utils/context.util.ts
872
- function Mr(e) {
872
+ function jr(e) {
873
873
  let t = Symbol(e);
874
874
  function n(e) {
875
- return Tt(t, e), e;
875
+ return wt(t, e), e;
876
876
  }
877
877
  function r(n) {
878
- let r = ht(t, n ?? void 0);
878
+ let r = mt(t, n ?? void 0);
879
879
  if (r === void 0 && n === void 0) throw Error(`${e} context is not provided.`);
880
880
  return r ?? null;
881
881
  }
@@ -883,12 +883,12 @@ function Mr(e) {
883
883
  }
884
884
  //#endregion
885
885
  //#region src/ui/billing-document/table/billingDocumentLineItemsTable.context.ts
886
- var [Nr, Pr] = Mr("BillingDocumentLineItemsTable"), Fr = [
886
+ var [Mr, Nr] = jr("BillingDocumentLineItemsTable"), Pr = [
887
887
  o._0,
888
888
  o._6,
889
889
  o._12,
890
890
  o._21
891
- ], Ir = [
891
+ ], Fr = [
892
892
  e.PIECE,
893
893
  e.HOUR,
894
894
  e.DAY,
@@ -1512,16 +1512,16 @@ var [Nr, Pr] = Mr("BillingDocumentLineItemsTable"), Fr = [
1512
1512
  let r = e.filter((e) => !t.selectedNodes.has(e) && t.precedingNodes.has(e)).length;
1513
1513
  return n.splice(r, 0, t.groupNode), n;
1514
1514
  }
1515
- }, Lr = {
1515
+ }, Ir = {
1516
1516
  key: 0,
1517
1517
  class: "pointer-events-none absolute inset-x-0 bottom-4 z-20 flex justify-center px-md"
1518
- }, Rr = { class: "pointer-events-auto flex max-w-full items-center gap-xs overflow-x-auto rounded-xl border border-secondary bg-primary p-xs shadow-lg" }, zr = {
1518
+ }, Lr = { class: "pointer-events-auto flex max-w-full items-center gap-xs overflow-x-auto rounded-xl border border-secondary bg-primary p-xs shadow-lg" }, Rr = {
1519
1519
  "aria-live": "polite",
1520
1520
  class: "px-sm text-sm font-medium whitespace-nowrap text-secondary"
1521
- }, Br = { class: "w-40 py-xxs" }, Vr = ["onClick"], Hr = { class: "max-h-64 w-44 overflow-y-auto py-xxs" }, Ur = ["onClick"], Wr = { class: "max-h-64 w-64 overflow-y-auto py-xxs" }, Gr = ["onClick"], Kr = /* @__PURE__ */ P({
1521
+ }, zr = { class: "w-40 py-xxs" }, Br = ["onClick"], Vr = { class: "max-h-64 w-44 overflow-y-auto py-xxs" }, Hr = ["onClick"], Ur = { class: "max-h-64 w-64 overflow-y-auto py-xxs" }, Wr = ["onClick"], Gr = /* @__PURE__ */ P({
1522
1522
  __name: "BillingDocumentLineItemsBulkActionBar",
1523
1523
  setup(e) {
1524
- let t = E(), n = Pr(), r = L(!1), i = L(!1), a = L(!1), o = O(() => n.rows.value.filter(W.isGroupRow)), s = O(() => W.canGroupSelectedRows(n.rows.value, new Set(n.selection.selectedIds.value)) ? null : t.t("wise_invoicing.invoice.detail.line_items.max_group_level", { max: 4 }));
1524
+ let t = E(), n = Nr(), r = L(!1), i = L(!1), a = L(!1), o = O(() => n.rows.value.filter(W.isGroupRow)), s = O(() => W.canGroupSelectedRows(n.rows.value, new Set(n.selection.selectedIds.value)) ? null : t.t("wise_invoicing.invoice.detail.line_items.max_group_level", { max: 4 }));
1525
1525
  function c(e) {
1526
1526
  return n.structure.value.groups.get(e.id)?.level ?? 1;
1527
1527
  }
@@ -1540,10 +1540,10 @@ var [Nr, Pr] = Mr("BillingDocumentLineItemsTable"), Fr = [
1540
1540
  function p(e) {
1541
1541
  a.value = !1, n.mutations.moveSelectedLinesToGroup(e);
1542
1542
  }
1543
- return (e, m) => B(n).isEditable.value && B(n).selection.selectedCount.value > 0 ? (I(), j("div", Lr, [M("div", Rr, [
1544
- M("span", zr, z(B(t).t("wise_invoicing.invoice.detail.line_items.items_selected", { count: B(n).selection.selectedCount.value })), 1),
1543
+ return (e, m) => B(n).isEditable.value && B(n).selection.selectedCount.value > 0 ? (I(), j("div", Ir, [M("div", Lr, [
1544
+ M("span", Rr, z(B(t).t("wise_invoicing.invoice.detail.line_items.items_selected", { count: B(n).selection.selectedCount.value })), 1),
1545
1545
  m[8] ||= M("span", { class: "mx-xxs h-5 w-px bg-secondary" }, null, -1),
1546
- N(B(Yt), {
1546
+ N(B(Jt), {
1547
1547
  label: B(t).t("wise_invoicing.invoice.detail.line_items.bulk_group"),
1548
1548
  "icon-left": B(be),
1549
1549
  "is-disabled": s.value !== null,
@@ -1557,21 +1557,21 @@ var [Nr, Pr] = Mr("BillingDocumentLineItemsTable"), Fr = [
1557
1557
  "is-disabled",
1558
1558
  "disabled-reason"
1559
1559
  ]),
1560
- N(B(Yt), {
1560
+ N(B(Jt), {
1561
1561
  label: B(t).t("wise_invoicing.invoice.detail.line_items.bulk_duplicate"),
1562
1562
  "icon-left": B(ve),
1563
1563
  size: "sm",
1564
1564
  variant: "tertiary",
1565
1565
  onClick: m[1] ||= (e) => B(n).mutations.duplicateSelectedLines()
1566
1566
  }, null, 8, ["label", "icon-left"]),
1567
- N(B(bn), {
1567
+ N(B(yn), {
1568
1568
  "is-open": r.value,
1569
1569
  "onUpdate:isOpen": m[2] ||= (e) => r.value = e,
1570
1570
  "popover-side-offset": 6,
1571
1571
  "popover-align": "center",
1572
1572
  "popover-side": "top"
1573
1573
  }, {
1574
- trigger: V(() => [N(B(Yt), {
1574
+ trigger: V(() => [N(B(Jt), {
1575
1575
  label: B(t).t("wise_invoicing.invoice.detail.line_items.bulk_set_vat"),
1576
1576
  "icon-left": B(Fe),
1577
1577
  "icon-right": B(Ae),
@@ -1582,22 +1582,22 @@ var [Nr, Pr] = Mr("BillingDocumentLineItemsTable"), Fr = [
1582
1582
  "icon-left",
1583
1583
  "icon-right"
1584
1584
  ])]),
1585
- content: V(() => [M("div", Br, [(I(!0), j(D, null, R(B(Fr), (e) => (I(), j("button", {
1585
+ content: V(() => [M("div", zr, [(I(!0), j(D, null, R(B(Pr), (e) => (I(), j("button", {
1586
1586
  key: e,
1587
1587
  class: "flex w-full items-center px-md py-sm text-left text-sm text-primary transition-colors hover:bg-secondary",
1588
1588
  type: "button",
1589
1589
  onClick: (t) => d(e)
1590
- }, z(Number(e)) + "% ", 9, Vr))), 128))])]),
1590
+ }, z(Number(e)) + "% ", 9, Br))), 128))])]),
1591
1591
  _: 1
1592
1592
  }, 8, ["is-open"]),
1593
- N(B(bn), {
1593
+ N(B(yn), {
1594
1594
  "is-open": i.value,
1595
1595
  "onUpdate:isOpen": m[3] ||= (e) => i.value = e,
1596
1596
  "popover-side-offset": 6,
1597
1597
  "popover-align": "center",
1598
1598
  "popover-side": "top"
1599
1599
  }, {
1600
- trigger: V(() => [N(B(Yt), {
1600
+ trigger: V(() => [N(B(Jt), {
1601
1601
  label: B(t).t("wise_invoicing.invoice.detail.line_items.bulk_set_unit"),
1602
1602
  "icon-left": B(qe),
1603
1603
  "icon-right": B(Ae),
@@ -1608,15 +1608,15 @@ var [Nr, Pr] = Mr("BillingDocumentLineItemsTable"), Fr = [
1608
1608
  "icon-left",
1609
1609
  "icon-right"
1610
1610
  ])]),
1611
- content: V(() => [M("div", Hr, [(I(!0), j(D, null, R(B(Ir), (e) => (I(), j("button", {
1611
+ content: V(() => [M("div", Vr, [(I(!0), j(D, null, R(B(Fr), (e) => (I(), j("button", {
1612
1612
  key: e,
1613
1613
  class: "flex w-full items-center px-md py-sm text-left text-sm text-primary transition-colors hover:bg-secondary",
1614
1614
  type: "button",
1615
1615
  onClick: (t) => f(e)
1616
- }, z(l(e)), 9, Ur))), 128))])]),
1616
+ }, z(l(e)), 9, Hr))), 128))])]),
1617
1617
  _: 1
1618
1618
  }, 8, ["is-open"]),
1619
- o.value.length > 0 ? (I(), k(B(bn), {
1619
+ o.value.length > 0 ? (I(), k(B(yn), {
1620
1620
  key: 0,
1621
1621
  "is-open": a.value,
1622
1622
  "onUpdate:isOpen": m[5] ||= (e) => a.value = e,
@@ -1624,7 +1624,7 @@ var [Nr, Pr] = Mr("BillingDocumentLineItemsTable"), Fr = [
1624
1624
  "popover-align": "center",
1625
1625
  "popover-side": "top"
1626
1626
  }, {
1627
- trigger: V(() => [N(B(Yt), {
1627
+ trigger: V(() => [N(B(Jt), {
1628
1628
  label: B(t).t("wise_invoicing.invoice.detail.line_items.bulk_move_to_group"),
1629
1629
  "icon-left": B(he),
1630
1630
  "icon-right": B(Ae),
@@ -1635,28 +1635,28 @@ var [Nr, Pr] = Mr("BillingDocumentLineItemsTable"), Fr = [
1635
1635
  "icon-left",
1636
1636
  "icon-right"
1637
1637
  ])]),
1638
- content: V(() => [M("div", Wr, [M("button", {
1638
+ content: V(() => [M("div", Ur, [M("button", {
1639
1639
  class: "flex w-full items-center truncate border-b border-secondary px-md py-sm text-left text-sm text-tertiary transition-colors hover:bg-secondary",
1640
1640
  type: "button",
1641
1641
  onClick: m[4] ||= (e) => p(null)
1642
1642
  }, z(B(t).t("wise_invoicing.invoice.detail.line_items.move_to_top_level")), 1), (I(!0), j(D, null, R(o.value, (e) => (I(), j("button", {
1643
1643
  key: e.id,
1644
- style: xt({ paddingLeft: `calc(var(--spacing-md) + ${c(e) - 1}rem)` }),
1645
- class: yt([c(e) === 1 ? "font-medium" : void 0, "flex w-full items-center truncate py-sm pr-md text-left text-sm text-primary transition-colors hover:bg-secondary"]),
1644
+ style: bt({ paddingLeft: `calc(var(--spacing-md) + ${c(e) - 1}rem)` }),
1645
+ class: vt([c(e) === 1 ? "font-medium" : void 0, "flex w-full items-center truncate py-sm pr-md text-left text-sm text-primary transition-colors hover:bg-secondary"]),
1646
1646
  type: "button",
1647
1647
  onClick: (t) => p(e.id)
1648
- }, z(u(e)), 15, Gr))), 128))])]),
1648
+ }, z(u(e)), 15, Wr))), 128))])]),
1649
1649
  _: 1
1650
1650
  }, 8, ["is-open"])) : A("", !0),
1651
1651
  m[9] ||= M("span", { class: "mx-xxs h-5 w-px bg-secondary" }, null, -1),
1652
- N(B(_n), {
1652
+ N(B(gn), {
1653
1653
  icon: B(se),
1654
1654
  label: B(t).t("wise_invoicing.invoice.detail.line_items.delete_all"),
1655
1655
  size: "sm",
1656
1656
  variant: "destructive-tertiary",
1657
1657
  onClick: m[6] ||= (e) => B(n).mutations.deleteSelectedLines()
1658
1658
  }, null, 8, ["icon", "label"]),
1659
- N(B(_n), {
1659
+ N(B(gn), {
1660
1660
  icon: B(C),
1661
1661
  label: B(t).t("wise_invoicing.invoice.detail.line_items.bulk_clear"),
1662
1662
  size: "sm",
@@ -1665,7 +1665,7 @@ var [Nr, Pr] = Mr("BillingDocumentLineItemsTable"), Fr = [
1665
1665
  }, null, 8, ["icon", "label"])
1666
1666
  ])])) : A("", !0);
1667
1667
  }
1668
- }), qr = class {
1668
+ }), Kr = class {
1669
1669
  static getDisplayGrossLineTotal(e, t, n) {
1670
1670
  return e === p.CREDIT_NOTE && n ? Math.abs(t) : this.getDisplayNumber(e, t);
1671
1671
  }
@@ -1678,7 +1678,7 @@ var [Nr, Pr] = Mr("BillingDocumentLineItemsTable"), Fr = [
1678
1678
  static getDisplayNumber(e, t) {
1679
1679
  return e !== p.CREDIT_NOTE || t <= 0 ? t : -t;
1680
1680
  }
1681
- }, Jr = ["aria-label"], Yr = { class: "w-72 py-xxs" }, Xr = { class: "text-sm font-semibold text-primary" }, Zr = { class: "text-xs text-tertiary" }, Qr = ["aria-disabled"], $r = { class: "text-sm font-semibold text-primary" }, ei = { class: "text-xs text-tertiary" }, ti = /* @__PURE__ */ P({
1681
+ }, qr = ["aria-label"], Jr = { class: "w-72 py-xxs" }, Yr = { class: "text-sm font-semibold text-primary" }, Xr = { class: "text-xs text-tertiary" }, Zr = ["aria-disabled"], Qr = { class: "text-sm font-semibold text-primary" }, $r = { class: "text-xs text-tertiary" }, ei = /* @__PURE__ */ P({
1682
1682
  __name: "BillingDocumentLineItemsInsertIndicator",
1683
1683
  props: {
1684
1684
  addGroupDisabledReason: { default: null },
@@ -1691,20 +1691,20 @@ var [Nr, Pr] = Mr("BillingDocumentLineItemsTable"), Fr = [
1691
1691
  },
1692
1692
  emits: ["addGroup", "addLine"],
1693
1693
  setup(e, { emit: t }) {
1694
- let n = e, r = t, i = E(), a = L(!1), o = Mt("popoverAnchorRef"), s = O(() => n.placement === "end");
1694
+ let n = e, r = t, i = E(), a = L(!1), o = jt("popoverAnchorRef"), s = O(() => n.placement === "end");
1695
1695
  function c() {
1696
1696
  a.value = !1, r("addLine");
1697
1697
  }
1698
1698
  function l() {
1699
1699
  n.addGroupDisabledReason === null && (a.value = !1, r("addGroup"));
1700
1700
  }
1701
- return (e, t) => (I(), j("div", { class: yt([[s.value ? "top-0" : "top-0 -translate-y-1/2"], "group pointer-events-none absolute inset-x-0 z-20 h-5 w-full overflow-visible"]) }, [
1702
- M("div", { class: yt([[s.value ? "top-0 -translate-y-1/2" : "top-1/2 -translate-y-1/2"], "absolute inset-x-0 h-3"]) }, null, 2),
1701
+ return (e, t) => (I(), j("div", { class: vt([[s.value ? "top-0" : "top-0 -translate-y-1/2"], "group pointer-events-none absolute inset-x-0 z-20 h-5 w-full overflow-visible"]) }, [
1702
+ M("div", { class: vt([[s.value ? "top-0 -translate-y-1/2" : "top-1/2 -translate-y-1/2"], "absolute inset-x-0 h-3"]) }, null, 2),
1703
1703
  M("div", {
1704
- class: yt([[s.value ? "top-0 -translate-y-1/2" : "top-1/2 -translate-y-1/2"], "absolute inset-x-0 z-30 h-px w-full bg-brand-500 opacity-0 transition-opacity group-hover:opacity-100 group-has-focus-visible:opacity-100"]),
1705
- style: xt(a.value ? { opacity: 1 } : void 0)
1704
+ class: vt([[s.value ? "top-0 -translate-y-1/2" : "top-1/2 -translate-y-1/2"], "absolute inset-x-0 z-30 h-px w-full bg-brand-500 opacity-0 transition-opacity group-hover:opacity-100 group-has-focus-visible:opacity-100"]),
1705
+ style: bt(a.value ? { opacity: 1 } : void 0)
1706
1706
  }, null, 6),
1707
- M("div", { class: yt([[s.value ? "top-0 -translate-y-1/2" : "top-1/2 -translate-y-1/2"], "pointer-events-auto absolute inset-x-0 z-40 px-md"]) }, [N(B(bn), {
1707
+ M("div", { class: vt([[s.value ? "top-0 -translate-y-1/2" : "top-1/2 -translate-y-1/2"], "pointer-events-auto absolute inset-x-0 z-40 px-md"]) }, [N(B(yn), {
1708
1708
  "is-open": a.value,
1709
1709
  "onUpdate:isOpen": t[0] ||= (e) => a.value = e,
1710
1710
  "popover-anchor-reference-element": o.value,
@@ -1719,25 +1719,25 @@ var [Nr, Pr] = Mr("BillingDocumentLineItemsTable"), Fr = [
1719
1719
  }, [M("span", {
1720
1720
  ref_key: "popoverAnchorRef",
1721
1721
  ref: o,
1722
- class: yt([a.value ? "opacity-100" : void 0, "sticky left-(--spacing-sm) flex size-5 shrink-0 items-center justify-center rounded-sm bg-brand-500 text-white opacity-0 shadow-sm transition-all group-hover:opacity-100 group-hover/trigger:bg-brand-700 group-focus-visible/trigger:opacity-100 group-has-focus-visible:opacity-100"])
1723
- }, [N(B(Pe), { class: "size-3" })], 2)], 8, Jr)]),
1724
- content: V(() => [M("div", Yr, [M("button", {
1722
+ class: vt([a.value ? "opacity-100" : void 0, "sticky left-(--spacing-sm) flex size-5 shrink-0 items-center justify-center rounded-sm bg-brand-500 text-white opacity-0 shadow-sm transition-all group-hover:opacity-100 group-hover/trigger:bg-brand-700 group-focus-visible/trigger:opacity-100 group-has-focus-visible:opacity-100"])
1723
+ }, [N(B(Pe), { class: "size-3" })], 2)], 8, qr)]),
1724
+ content: V(() => [M("div", Jr, [M("button", {
1725
1725
  class: "flex w-full items-center gap-md px-md py-sm text-left transition-colors hover:bg-secondary",
1726
1726
  type: "button",
1727
1727
  onClick: c
1728
- }, [N(B(Pe), { class: "size-5 shrink-0 text-tertiary" }), N(B(Qt), { gap: "none" }, {
1729
- default: V(() => [M("span", Xr, z(B(i).t("wise_invoicing.invoice.detail.line_items.new_line_item")), 1), M("span", Zr, z(B(i).t("wise_invoicing.invoice.detail.line_items.new_line_item_description")), 1)]),
1728
+ }, [N(B(Pe), { class: "size-5 shrink-0 text-tertiary" }), N(B(Zt), { gap: "none" }, {
1729
+ default: V(() => [M("span", Yr, z(B(i).t("wise_invoicing.invoice.detail.line_items.new_line_item")), 1), M("span", Xr, z(B(i).t("wise_invoicing.invoice.detail.line_items.new_line_item_description")), 1)]),
1730
1730
  _: 1
1731
1731
  })]), n.canAddGroup ? (I(), j("button", {
1732
1732
  key: 0,
1733
1733
  "aria-disabled": n.addGroupDisabledReason !== null,
1734
- class: yt([n.addGroupDisabledReason === null ? "hover:bg-secondary" : "cursor-not-allowed opacity-60", "flex w-full items-center gap-md border-t border-secondary px-md py-sm text-left transition-colors"]),
1734
+ class: vt([n.addGroupDisabledReason === null ? "hover:bg-secondary" : "cursor-not-allowed opacity-60", "flex w-full items-center gap-md border-t border-secondary px-md py-sm text-left transition-colors"]),
1735
1735
  type: "button",
1736
1736
  onClick: l
1737
- }, [N(B(be), { class: "size-5 shrink-0 text-tertiary" }), N(B(Qt), { gap: "none" }, {
1738
- default: V(() => [M("span", $r, z(B(i).t("wise_invoicing.invoice.detail.line_items.new_group")), 1), M("span", ei, z(n.addGroupDisabledReason ?? B(i).t("wise_invoicing.invoice.detail.line_items.new_group_description")), 1)]),
1737
+ }, [N(B(be), { class: "size-5 shrink-0 text-tertiary" }), N(B(Zt), { gap: "none" }, {
1738
+ default: V(() => [M("span", Qr, z(B(i).t("wise_invoicing.invoice.detail.line_items.new_group")), 1), M("span", $r, z(n.addGroupDisabledReason ?? B(i).t("wise_invoicing.invoice.detail.line_items.new_group_description")), 1)]),
1739
1739
  _: 1
1740
- })], 10, Qr)) : A("", !0)])]),
1740
+ })], 10, Zr)) : A("", !0)])]),
1741
1741
  _: 1
1742
1742
  }, 8, ["is-open", "popover-anchor-reference-element"])], 2)
1743
1743
  ], 2));
@@ -1745,7 +1745,7 @@ var [Nr, Pr] = Mr("BillingDocumentLineItemsTable"), Fr = [
1745
1745
  });
1746
1746
  //#endregion
1747
1747
  //#region src/models/billing-document/billingDocumentLineItemGroupUpdateForm.model.ts
1748
- function ni(e) {
1748
+ function ti(e) {
1749
1749
  return T.object({
1750
1750
  name: T.string().trim().min(1, e.nameRequired),
1751
1751
  description: T.string().nullable()
@@ -1753,7 +1753,7 @@ function ni(e) {
1753
1753
  }
1754
1754
  //#endregion
1755
1755
  //#region src/modules/custom-field/components/CustomFieldList.vue
1756
- var ri = /* @__PURE__ */ P({
1756
+ var ni = /* @__PURE__ */ P({
1757
1757
  __name: "CustomFieldList",
1758
1758
  props: {
1759
1759
  definitions: {},
@@ -1784,7 +1784,7 @@ var ri = /* @__PURE__ */ P({
1784
1784
  _: 1
1785
1785
  })) : A("", !0);
1786
1786
  }
1787
- }), ii = /* @__PURE__ */ P({
1787
+ }), ri = /* @__PURE__ */ P({
1788
1788
  __name: "BillingDocumentLineItemDeleteDialog",
1789
1789
  props: {
1790
1790
  name: {},
@@ -1802,9 +1802,9 @@ var ri = /* @__PURE__ */ P({
1802
1802
  }) : i.t("wise_invoicing.invoice.detail.line_items.delete_dialog.group.description", {
1803
1803
  name: n.name,
1804
1804
  count: n.lineCount ?? 0
1805
- })), c = Bn({
1805
+ })), c = zn({
1806
1806
  initialState: { confirmation: "" },
1807
- schema: lt.object({ confirmation: lt.string().refine((e) => e === a.value, { message: i.t("wise_invoicing.invoice.detail.line_items.delete_dialog.confirmation.validation") }) }),
1807
+ schema: ct.object({ confirmation: ct.string().refine((e) => e === a.value, { message: i.t("wise_invoicing.invoice.detail.line_items.delete_dialog.confirmation.validation") }) }),
1808
1808
  onSubmit: () => {
1809
1809
  n.type === "line" && n.onDeleteLine !== void 0 && (n.onDeleteLine(), r("close"));
1810
1810
  }
@@ -1812,14 +1812,14 @@ var ri = /* @__PURE__ */ P({
1812
1812
  function u(e) {
1813
1813
  n.type === "group" && n.onDeleteGroup !== void 0 && (n.onDeleteGroup({ deleteLines: e }), r("close"));
1814
1814
  }
1815
- return (e, t) => (I(), k(B(hn), {
1815
+ return (e, t) => (I(), k(B(mn), {
1816
1816
  form: B(c),
1817
1817
  "enable-click-outside-if-dirty": !0,
1818
1818
  size: "sm",
1819
1819
  onClose: t[2] ||= (e) => r("close")
1820
1820
  }, {
1821
1821
  default: V(() => [
1822
- N(B(cn), {
1822
+ N(B(sn), {
1823
1823
  description: s.value,
1824
1824
  icon: B(Te),
1825
1825
  title: n.type === "line" ? B(i).t("wise_invoicing.invoice.detail.line_items.delete_dialog.line.title") : B(i).t("wise_invoicing.invoice.detail.line_items.delete_dialog.group.title")
@@ -1828,30 +1828,30 @@ var ri = /* @__PURE__ */ P({
1828
1828
  "icon",
1829
1829
  "title"
1830
1830
  ]),
1831
- N(B(rn), null, {
1832
- default: V(() => [N(B(kn), F(B(Ze)(B(l)), {
1831
+ N(B(nn), null, {
1832
+ default: V(() => [N(B(On), F(B(Ze)(B(l)), {
1833
1833
  "error-message": null,
1834
1834
  label: B(i).t("wise_invoicing.invoice.detail.line_items.delete_dialog.confirmation.label", { name: a.value }),
1835
1835
  placeholder: a.value
1836
1836
  }), null, 16, ["label", "placeholder"])]),
1837
1837
  _: 1
1838
1838
  }),
1839
- N(B(an), null, {
1839
+ N(B(rn), null, {
1840
1840
  right: V(() => [
1841
- N(B(on)),
1842
- n.type === "line" ? (I(), k(B(sn), {
1841
+ N(B(an)),
1842
+ n.type === "line" ? (I(), k(B(on), {
1843
1843
  key: 0,
1844
1844
  "is-destructive": !0,
1845
1845
  "is-disabled": !B(c).isValid.value,
1846
1846
  label: B(i).t("wise_invoicing.invoice.detail.line_items.delete_dialog.line.confirm")
1847
- }, null, 8, ["is-disabled", "label"])) : (I(), k(B(Yt), {
1847
+ }, null, 8, ["is-disabled", "label"])) : (I(), k(B(Jt), {
1848
1848
  key: 1,
1849
1849
  "is-disabled": !B(c).isValid.value,
1850
1850
  label: o.value ? B(i).t("wise_invoicing.invoice.detail.line_items.delete_dialog.group.keep_contents") : B(i).t("wise_invoicing.invoice.detail.line_items.delete_dialog.group.keep_lines"),
1851
1851
  variant: "secondary",
1852
1852
  onClick: t[0] ||= (e) => u(!1)
1853
1853
  }, null, 8, ["is-disabled", "label"])),
1854
- n.type === "group" ? (I(), k(B(Yt), {
1854
+ n.type === "group" ? (I(), k(B(Jt), {
1855
1855
  key: 2,
1856
1856
  "is-disabled": !B(c).isValid.value,
1857
1857
  label: o.value ? B(i).t("wise_invoicing.invoice.detail.line_items.delete_dialog.group.delete_with_contents") : B(i).t("wise_invoicing.invoice.detail.line_items.delete_dialog.group.delete_with_lines"),
@@ -1865,7 +1865,7 @@ var ri = /* @__PURE__ */ P({
1865
1865
  _: 1
1866
1866
  }, 8, ["form"]));
1867
1867
  }
1868
- }), ai = ["aria-label"], oi = /* @__PURE__ */ P({
1868
+ }), ii = ["aria-label"], ai = /* @__PURE__ */ P({
1869
1869
  __name: "BillingDocumentLineItemsDragHandle",
1870
1870
  setup(e) {
1871
1871
  let t = E();
@@ -1878,9 +1878,9 @@ var ri = /* @__PURE__ */ P({
1878
1878
  width: "100%",
1879
1879
  xmlns: "http://www.w3.org/2000/svg",
1880
1880
  "data-line-item-drag-handle": ""
1881
- }, [...n[0] ||= [ut("<path d=\"M9 6C9.55228 6 10 5.55228 10 5C10 4.44772 9.55228 4 9 4C8.44772 4 8 4.44772 8 5C8 5.55228 8.44772 6 9 6Z\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\"></path><path d=\"M9 13C9.55228 13 10 12.5523 10 12C10 11.4477 9.55228 11 9 11C8.44772 11 8 11.4477 8 12C8 12.5523 8.44772 13 9 13Z\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\"></path><path d=\"M9 20C9.55228 20 10 19.5523 10 19C10 18.4477 9.55228 18 9 18C8.44772 18 8 18.4477 8 19C8 19.5523 8.44772 20 9 20Z\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\"></path><path d=\"M15 6C15.5523 6 16 5.55228 16 5C16 4.44772 15.5523 4 15 4C14.4477 4 14 4.44772 14 5C14 5.55228 14.4477 6 15 6Z\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\"></path><path d=\"M15 13C15.5523 13 16 12.5523 16 12C16 11.4477 15.5523 11 15 11C14.4477 11 14 11.4477 14 12C14 12.5523 14.4477 13 15 13Z\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\"></path><path d=\"M15 20C15.5523 20 16 19.5523 16 19C16 18.4477 15.5523 18 15 18C14.4477 18 14 18.4477 14 19C14 19.5523 14.4477 20 15 20Z\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\"></path>", 6)]], 8, ai));
1881
+ }, [...n[0] ||= [lt("<path d=\"M9 6C9.55228 6 10 5.55228 10 5C10 4.44772 9.55228 4 9 4C8.44772 4 8 4.44772 8 5C8 5.55228 8.44772 6 9 6Z\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\"></path><path d=\"M9 13C9.55228 13 10 12.5523 10 12C10 11.4477 9.55228 11 9 11C8.44772 11 8 11.4477 8 12C8 12.5523 8.44772 13 9 13Z\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\"></path><path d=\"M9 20C9.55228 20 10 19.5523 10 19C10 18.4477 9.55228 18 9 18C8.44772 18 8 18.4477 8 19C8 19.5523 8.44772 20 9 20Z\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\"></path><path d=\"M15 6C15.5523 6 16 5.55228 16 5C16 4.44772 15.5523 4 15 4C14.4477 4 14 4.44772 14 5C14 5.55228 14.4477 6 15 6Z\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\"></path><path d=\"M15 13C15.5523 13 16 12.5523 16 12C16 11.4477 15.5523 11 15 11C14.4477 11 14 11.4477 14 12C14 12.5523 14.4477 13 15 13Z\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\"></path><path d=\"M15 20C15.5523 20 16 19.5523 16 19C16 18.4477 15.5523 18 15 18C14.4477 18 14 18.4477 14 19C14 19.5523 14.4477 20 15 20Z\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\"></path>", 6)]], 8, ii));
1882
1882
  }
1883
- }), si = /* @__PURE__ */ P({
1883
+ }), oi = /* @__PURE__ */ P({
1884
1884
  __name: "BillingDocumentLineItemsTreeIndent",
1885
1885
  props: {
1886
1886
  depth: {},
@@ -1889,24 +1889,24 @@ var ri = /* @__PURE__ */ P({
1889
1889
  setup(e) {
1890
1890
  let t = e, n = O(() => `${W.getRowIndentInRem(t.type, t.depth)}rem`);
1891
1891
  return (e, t) => (I(), j("div", {
1892
- style: xt({ paddingLeft: n.value }),
1892
+ style: bt({ paddingLeft: n.value }),
1893
1893
  class: "flex min-w-0 items-center",
1894
1894
  "data-line-item-tree-indent": ""
1895
- }, [Dt(e.$slots, "default")], 4));
1895
+ }, [Et(e.$slots, "default")], 4));
1896
1896
  }
1897
- }), ci = ["for"], li = { key: 0 }, ui = {
1897
+ }), si = ["for"], ci = { key: 0 }, li = {
1898
1898
  key: 0,
1899
1899
  "aria-hidden": "true",
1900
1900
  class: "pointer-events-none shrink-0 pl-lg text-xs text-tertiary select-none"
1901
- }, di = {
1901
+ }, ui = {
1902
1902
  key: 1,
1903
1903
  "aria-hidden": "true",
1904
1904
  class: "pointer-events-none shrink-0 pr-lg text-xs text-error-primary select-none"
1905
- }, fi = {
1905
+ }, di = {
1906
1906
  key: 3,
1907
1907
  "aria-hidden": "true",
1908
1908
  class: "pointer-events-none shrink-0 pr-lg text-xs text-tertiary select-none"
1909
- }, pi = /*@__PURE__*/ P({
1909
+ }, fi = /*@__PURE__*/ P({
1910
1910
  inheritAttrs: !1,
1911
1911
  __name: "BillingDocumentLineItemsTableField",
1912
1912
  props: {
@@ -1929,18 +1929,18 @@ var ri = /* @__PURE__ */ P({
1929
1929
  },
1930
1930
  emits: ["blur"],
1931
1931
  setup(e, { emit: t }) {
1932
- let n = e, r = t, i = At(), a = O(() => n.isTouched && n.errorMessage !== null), o = O(() => i.type === "number"), s = O(() => n.align === "right"), c = O(() => `${n.id}-error`), l = O(() => n.emphasis === "semibold" ? "font-semibold text-primary" : n.emphasis === "medium" ? "font-medium text-primary" : "text-tertiary");
1932
+ let n = e, r = t, i = kt(), a = O(() => n.isTouched && n.errorMessage !== null), o = O(() => i.type === "number"), s = O(() => n.align === "right"), c = O(() => `${n.id}-error`), l = O(() => n.emphasis === "semibold" ? "font-semibold text-primary" : n.emphasis === "medium" ? "font-medium text-primary" : "text-tertiary");
1933
1933
  return (e, t) => (I(), j(D, null, [M("label", {
1934
1934
  for: n.id,
1935
1935
  class: "sr-only"
1936
- }, [dt(z(n.label), 1), n.isRequired ? (I(), j("span", li, "*")) : A("", !0)], 8, ci), M("div", { class: yt([[
1936
+ }, [ut(z(n.label), 1), n.isRequired ? (I(), j("span", ci, "*")) : A("", !0)], 8, si), M("div", { class: vt([[
1937
1937
  n.width === "content" ? "w-auto max-w-full" : "w-full",
1938
1938
  n.variant === "outlined" && !a.value ? "bg-primary" : "\n bg-transparent\n ",
1939
1939
  n.isDisabled ? "cursor-not-allowed" : "cursor-text",
1940
1940
  a.value && !n.isDisabled ? "bg-primary ring-2 ring-error-500 ring-inset" : n.isDisabled ? "" : "\n focus-within:z-10 focus-within:bg-primary focus-within:ring-2\n focus-within:ring-brand-500 focus-within:ring-inset\n "
1941
1941
  ], "relative flex h-11 items-center rounded-md border border-transparent transition-[background-color,box-shadow] duration-100 motion-reduce:transition-none"]) }, [
1942
- n.prefix ? (I(), j("span", ui, z(n.prefix), 1)) : A("", !0),
1943
- (I(), k(Ot(n.as), F(B(i), {
1942
+ n.prefix ? (I(), j("span", li, z(n.prefix), 1)) : A("", !0),
1943
+ (I(), k(Dt(n.as), F(B(i), {
1944
1944
  id: n.id,
1945
1945
  disabled: n.isDisabled,
1946
1946
  required: n.isRequired,
@@ -1956,7 +1956,7 @@ var ri = /* @__PURE__ */ P({
1956
1956
  ], "relative z-1 h-full border-none bg-transparent text-xs tabular-nums outline-none placeholder:text-placeholder disabled:cursor-not-allowed disabled:text-disabled"],
1957
1957
  onBlur: t[0] ||= (e) => r("blur", e)
1958
1958
  }), {
1959
- default: V(() => [Dt(e.$slots, "default", {}, void 0, !0)]),
1959
+ default: V(() => [Et(e.$slots, "default", {}, void 0, !0)]),
1960
1960
  _: 3
1961
1961
  }, 16, [
1962
1962
  "id",
@@ -1967,23 +1967,23 @@ var ri = /* @__PURE__ */ P({
1967
1967
  "aria-describedby",
1968
1968
  "class"
1969
1969
  ])),
1970
- n.isRequired && !a.value ? (I(), j("span", di, " * ")) : A("", !0),
1970
+ n.isRequired && !a.value ? (I(), j("span", ui, " * ")) : A("", !0),
1971
1971
  a.value ? (I(), k(B(U), {
1972
1972
  key: 2,
1973
1973
  id: c.value,
1974
1974
  text: n.errorMessage ?? "",
1975
1975
  class: "min-w-0 shrink pr-lg text-xs text-error-primary"
1976
1976
  }, null, 8, ["id", "text"])) : A("", !0),
1977
- n.suffix ? (I(), j("span", fi, z(n.suffix), 1)) : A("", !0)
1977
+ n.suffix ? (I(), j("span", di, z(n.suffix), 1)) : A("", !0)
1978
1978
  ], 2)], 64));
1979
1979
  }
1980
- }), mi = (e, t) => {
1980
+ }), pi = (e, t) => {
1981
1981
  let n = e.__vccOpts || e;
1982
1982
  for (let [e, r] of t) n[e] = r;
1983
1983
  return n;
1984
- }, hi = /*#__PURE__*/ mi(pi, [["__scopeId", "data-v-7f300ea2"]]), gi = /* @__PURE__ */ P({
1984
+ }, mi = /*#__PURE__*/ pi(fi, [["__scopeId", "data-v-7f300ea2"]]), hi = /* @__PURE__ */ P({
1985
1985
  __name: "BillingDocumentLineItemsTableTextField",
1986
- props: /*@__PURE__*/ _t({
1986
+ props: /*@__PURE__*/ gt({
1987
1987
  id: {},
1988
1988
  isDisabled: { type: Boolean },
1989
1989
  isRequired: { type: Boolean },
@@ -1998,23 +1998,23 @@ var ri = /* @__PURE__ */ P({
1998
1998
  modelValue: { required: !0 },
1999
1999
  modelModifiers: {}
2000
2000
  }),
2001
- emits: /*@__PURE__*/ _t(["blur"], ["update:modelValue"]),
2001
+ emits: /*@__PURE__*/ gt(["blur"], ["update:modelValue"]),
2002
2002
  setup(e, { emit: t }) {
2003
- let n = e, r = t, i = jt(e, "modelValue");
2004
- return (e, t) => (I(), k(hi, F(n, {
2003
+ let n = e, r = t, i = At(e, "modelValue");
2004
+ return (e, t) => (I(), k(mi, F(n, {
2005
2005
  value: i.value ?? "",
2006
2006
  type: "text",
2007
2007
  onBlur: t[0] ||= (e) => r("blur", e),
2008
2008
  onInput: t[1] ||= (e) => i.value = e.target.value
2009
2009
  }), null, 16, ["value"]));
2010
2010
  }
2011
- }), _i = ["data-line-item-row-id", "data-line-item-group-level"], vi = {
2011
+ }), gi = ["data-line-item-row-id", "data-line-item-group-level"], _i = {
2012
2012
  key: 0,
2013
2013
  class: "sticky left-0 z-10 overflow-visible bg-inherit px-xs py-none"
2014
- }, yi = ["colspan"], bi = { class: "sticky left-(--line-items-item-start) h-10 w-fit max-w-full" }, xi = ["aria-label", "aria-expanded"], Si = { class: "px-lg py-none text-right text-xs text-secondary tabular-nums" }, Ci = {
2014
+ }, vi = ["colspan"], yi = { class: "sticky left-(--line-items-item-start) h-10 w-fit max-w-full" }, bi = ["aria-label", "aria-expanded"], xi = { class: "px-lg py-none text-right text-xs text-secondary tabular-nums" }, Si = {
2015
2015
  key: 1,
2016
2016
  class: "sticky right-0 z-10 bg-inherit px-md py-none"
2017
- }, wi = /* @__PURE__ */ P({
2017
+ }, Ci = /* @__PURE__ */ P({
2018
2018
  __name: "BillingDocumentLineItemsTableGroupRow",
2019
2019
  props: {
2020
2020
  isCollapsed: { type: Boolean },
@@ -2027,19 +2027,19 @@ var ri = /* @__PURE__ */ P({
2027
2027
  },
2028
2028
  emits: ["expand", "toggleCollapse"],
2029
2029
  setup(e, { emit: t }) {
2030
- let n = e, r = t, i = E(), a = h(), o = Pr(), s = Ln().create(ii), c = Mt("editFieldsRef"), l = L(n.group.name === ""), u = L("name"), d = O(() => n.group.name || i.t("wise_invoicing.invoice.detail.line_items.group_placeholder"));
2030
+ let n = e, r = t, i = E(), a = h(), o = Nr(), s = In().create(ri), c = jt("editFieldsRef"), l = L(n.group.name === ""), u = L("name"), d = O(() => n.group.name || i.t("wise_invoicing.invoice.detail.line_items.group_placeholder"));
2031
2031
  function f(e, t) {
2032
2032
  return Math.min(Math.max((e == null || e === "" ? t : e).length, 10), 64);
2033
2033
  }
2034
2034
  function p(e) {
2035
2035
  return e.name !== n.group.name || e.description !== n.group.description;
2036
2036
  }
2037
- let m = Bn({
2037
+ let m = zn({
2038
2038
  initialState: O(() => ({
2039
2039
  name: n.group.name,
2040
2040
  description: n.group.description
2041
2041
  })),
2042
- schema: ni({ nameRequired: i.t("wise_invoicing.invoice.detail.line_items.group_name_required") }),
2042
+ schema: ti({ nameRequired: i.t("wise_invoicing.invoice.detail.line_items.group_name_required") }),
2043
2043
  onSubmit: (e) => {
2044
2044
  p(e) && o.mutations.updateGroup(n.group.id, e);
2045
2045
  }
@@ -2063,7 +2063,7 @@ var ri = /* @__PURE__ */ P({
2063
2063
  return `billing-document-line-items-group-${e}-${n.group.id}`;
2064
2064
  }
2065
2065
  async function ge(e) {
2066
- await vt();
2066
+ await _t();
2067
2067
  let t = c.value?.querySelector(`input[id="${he(e)}"]`);
2068
2068
  t?.focus(), t?.select();
2069
2069
  }
@@ -2096,12 +2096,12 @@ var ri = /* @__PURE__ */ P({
2096
2096
  }
2097
2097
  });
2098
2098
  }
2099
- Ct(async () => {
2099
+ St(async () => {
2100
2100
  l.value && await ge(u.value);
2101
2101
  });
2102
2102
  async function Oe(e) {
2103
2103
  if (!c.value?.contains(e.relatedTarget)) {
2104
- if (await vt(), !m.isValid.value) {
2104
+ if (await _t(), !m.isValid.value) {
2105
2105
  l.value = !0;
2106
2106
  return;
2107
2107
  }
@@ -2109,13 +2109,13 @@ var ri = /* @__PURE__ */ P({
2109
2109
  }
2110
2110
  }
2111
2111
  async function ke() {
2112
- if (await vt(), !m.isValid.value) {
2112
+ if (await _t(), !m.isValid.value) {
2113
2113
  g.onBlur();
2114
2114
  return;
2115
2115
  }
2116
2116
  await m.submit(), l.value = !1;
2117
2117
  }
2118
- return Ut(() => m.state.value, async () => {
2118
+ return Ht(() => m.state.value, async () => {
2119
2119
  o.isEditable.value && m.isValid.value && p(m.state.value) && await m.submit();
2120
2120
  }, {
2121
2121
  debounce: 500,
@@ -2123,17 +2123,17 @@ var ri = /* @__PURE__ */ P({
2123
2123
  }), (e, t) => (I(), j("tr", {
2124
2124
  "data-line-item-row-id": n.group.id,
2125
2125
  "data-line-item-group-level": x.value,
2126
- class: yt([S.value ? "bg-secondary" : "bg-tertiary", "group/row h-10 border-b border-secondary align-middle"]),
2126
+ class: vt([S.value ? "bg-secondary" : "bg-tertiary", "group/row h-10 border-b border-secondary align-middle"]),
2127
2127
  "data-line-item-row-type": "group",
2128
2128
  "data-line-item-row": "",
2129
2129
  onKeydown: Te
2130
2130
  }, [
2131
- B(o).isEditable.value ? (I(), j("td", vi, [N(oi)])) : A("", !0),
2131
+ B(o).isEditable.value ? (I(), j("td", _i, [N(ai)])) : A("", !0),
2132
2132
  M("td", {
2133
2133
  colspan: n.contentColumnSpan,
2134
2134
  class: "py-none pr-lg pl-none",
2135
2135
  "data-line-item-drag-preview": ""
2136
- }, [M("div", bi, [N(si, {
2136
+ }, [M("div", yi, [N(oi, {
2137
2137
  depth: x.value - 1,
2138
2138
  class: "h-10 gap-xs",
2139
2139
  type: "group"
@@ -2143,7 +2143,7 @@ var ri = /* @__PURE__ */ P({
2143
2143
  align: "center",
2144
2144
  class: "min-w-0 gap-lg"
2145
2145
  }, {
2146
- default: V(() => [B(o).isEditable.value ? (I(), k(B(Xt), {
2146
+ default: V(() => [B(o).isEditable.value ? (I(), k(B(Yt), {
2147
2147
  key: 0,
2148
2148
  id: he("select-group"),
2149
2149
  "model-value": oe.value || le.value,
@@ -2169,7 +2169,7 @@ var ri = /* @__PURE__ */ P({
2169
2169
  class: "flex shrink-0 items-center justify-center rounded-sm text-tertiary transition-colors hover:text-primary",
2170
2170
  type: "button",
2171
2171
  onClick: t[0] ||= (e) => r("toggleCollapse", e.altKey)
2172
- }, [N(B(Ae), { class: yt([n.isCollapsed ? "rotate-0" : "rotate-180", "size-4 transition-transform duration-200 motion-reduce:transition-none"]) }, null, 8, ["class"])], 8, xi), M("div", {
2172
+ }, [N(B(Ae), { class: vt([n.isCollapsed ? "rotate-0" : "rotate-180", "size-4 transition-transform duration-200 motion-reduce:transition-none"]) }, null, 8, ["class"])], 8, bi), M("div", {
2173
2173
  ref_key: "editFieldsRef",
2174
2174
  ref: c,
2175
2175
  class: "min-w-0"
@@ -2180,7 +2180,7 @@ var ri = /* @__PURE__ */ P({
2180
2180
  gap: "xs",
2181
2181
  onFocusout: Oe
2182
2182
  }, {
2183
- default: V(() => [N(gi, F({
2183
+ default: V(() => [N(hi, F({
2184
2184
  id: he("name"),
2185
2185
  label: B(i).t("wise_invoicing.invoice.detail.line_items.group_label"),
2186
2186
  placeholder: B(i).t("wise_invoicing.invoice.detail.line_items.group_placeholder"),
@@ -2190,7 +2190,7 @@ var ri = /* @__PURE__ */ P({
2190
2190
  emphasis: S.value ? "semibold" : "medium",
2191
2191
  variant: "ghost",
2192
2192
  width: "content"
2193
- }, B(Ze)(B(g)), { onKeydown: It(Lt(ke, ["prevent"]), ["enter"]) }), null, 16, [
2193
+ }, B(Ze)(B(g)), { onKeydown: Ft(It(ke, ["prevent"]), ["enter"]) }), null, 16, [
2194
2194
  "id",
2195
2195
  "label",
2196
2196
  "placeholder",
@@ -2198,7 +2198,7 @@ var ri = /* @__PURE__ */ P({
2198
2198
  "is-disabled",
2199
2199
  "emphasis",
2200
2200
  "onKeydown"
2201
- ]), N(gi, F({
2201
+ ]), N(hi, F({
2202
2202
  id: he("description"),
2203
2203
  label: B(i).t("wise_invoicing.invoice.detail.line_items.group_description_label"),
2204
2204
  placeholder: B(i).t("wise_invoicing.invoice.detail.line_items.group_description_placeholder"),
@@ -2206,7 +2206,7 @@ var ri = /* @__PURE__ */ P({
2206
2206
  "is-disabled": !B(o).isEditable.value,
2207
2207
  variant: "ghost",
2208
2208
  width: "content"
2209
- }, B(Ze)(B(_)), { onKeydown: It(Lt(ke, ["prevent"]), ["enter"]) }), null, 16, [
2209
+ }, B(Ze)(B(_)), { onKeydown: Ft(It(ke, ["prevent"]), ["enter"]) }), null, 16, [
2210
2210
  "id",
2211
2211
  "label",
2212
2212
  "placeholder",
@@ -2221,12 +2221,12 @@ var ri = /* @__PURE__ */ P({
2221
2221
  gap: "xs",
2222
2222
  class: "min-w-0"
2223
2223
  }, {
2224
- default: V(() => [B(o).isEditable.value ? (I(), k(B(Zt), {
2224
+ default: V(() => [B(o).isEditable.value ? (I(), k(B(Xt), {
2225
2225
  key: 0,
2226
2226
  class: "min-w-0 shrink-0 rounded-sm"
2227
2227
  }, {
2228
2228
  default: V(() => [M("button", {
2229
- class: yt([[S.value ? "font-semibold" : "font-medium", n.isDropTarget ? "text-brand-700" : "text-primary"], "min-w-0 truncate text-left text-xs transition-colors hover:text-brand-700 motion-reduce:transition-none"]),
2229
+ class: vt([[S.value ? "font-semibold" : "font-medium", n.isDropTarget ? "text-brand-700" : "text-primary"], "min-w-0 truncate text-left text-xs transition-colors hover:text-brand-700 motion-reduce:transition-none"]),
2230
2230
  type: "button",
2231
2231
  onClick: t[1] ||= (e) => ve()
2232
2232
  }, z(d.value), 3)]),
@@ -2234,8 +2234,8 @@ var ri = /* @__PURE__ */ P({
2234
2234
  })) : (I(), k(B(U), {
2235
2235
  key: 1,
2236
2236
  text: d.value,
2237
- class: yt([[S.value ? "font-semibold" : "font-medium", n.isDropTarget ? "text-brand-700" : "text-primary"], "shrink-0 text-xs"])
2238
- }, null, 8, ["text", "class"])), n.group.description ? (I(), j(D, { key: 2 }, [B(o).isEditable.value ? (I(), k(B(Zt), {
2237
+ class: vt([[S.value ? "font-semibold" : "font-medium", n.isDropTarget ? "text-brand-700" : "text-primary"], "shrink-0 text-xs"])
2238
+ }, null, 8, ["text", "class"])), n.group.description ? (I(), j(D, { key: 2 }, [B(o).isEditable.value ? (I(), k(B(Xt), {
2239
2239
  key: 0,
2240
2240
  class: "min-w-0 rounded-sm"
2241
2241
  }, {
@@ -2256,19 +2256,19 @@ var ri = /* @__PURE__ */ P({
2256
2256
  })]),
2257
2257
  _: 1
2258
2258
  }),
2259
- S.value ? (I(), j(D, { key: 0 }, [ee.value > 0 ? (I(), k(B(Pn), {
2259
+ S.value ? (I(), j(D, { key: 0 }, [ee.value > 0 ? (I(), k(B(Nn), {
2260
2260
  key: 0,
2261
2261
  "popover-side-offset": 8,
2262
2262
  "popover-side": "top"
2263
2263
  }, {
2264
- trigger: V(() => [N(B(vn), {
2264
+ trigger: V(() => [N(B(_n), {
2265
2265
  value: String(C.value.length),
2266
2266
  "aria-label": w.value,
2267
2267
  class: "shrink-0",
2268
2268
  color: "gray",
2269
2269
  variant: "outline"
2270
2270
  }, null, 8, ["value", "aria-label"])]),
2271
- content: V(() => [N(B(Fn), null, {
2271
+ content: V(() => [N(B(Pn), null, {
2272
2272
  default: V(() => [N(B(U), {
2273
2273
  text: w.value,
2274
2274
  class: "text-xs text-primary"
@@ -2276,7 +2276,7 @@ var ri = /* @__PURE__ */ P({
2276
2276
  _: 1
2277
2277
  })]),
2278
2278
  _: 1
2279
- })) : (I(), k(B(vn), {
2279
+ })) : (I(), k(B(_n), {
2280
2280
  key: 1,
2281
2281
  value: String(C.value.length),
2282
2282
  "aria-label": B(i).t("wise_invoicing.invoice.detail.line_items.group_item_count", { count: C.value.length }),
@@ -2284,26 +2284,26 @@ var ri = /* @__PURE__ */ P({
2284
2284
  color: "gray",
2285
2285
  variant: "outline"
2286
2286
  }, null, 8, ["value", "aria-label"]))], 64)) : A("", !0),
2287
- N(ri, {
2287
+ N(ni, {
2288
2288
  definitions: B(o).groupCustomFieldDefinitions.value,
2289
2289
  values: n.group.customFields,
2290
2290
  class: "ml-sm shrink-0"
2291
2291
  }, null, 8, ["definitions", "values"])
2292
2292
  ]),
2293
2293
  _: 1
2294
- }, 8, ["depth"])])], 8, yi),
2295
- M("td", Si, z(S.value ? null : me.value), 1),
2294
+ }, 8, ["depth"])])], 8, vi),
2295
+ M("td", xi, z(S.value ? null : me.value), 1),
2296
2296
  t[4] ||= M("td", { class: "py-none" }, null, -1),
2297
- M("td", { class: yt([S.value ? "font-medium text-primary" : "text-secondary", "px-lg py-none text-right text-xs tabular-nums"]) }, [N(B(H), {
2297
+ M("td", { class: vt([S.value ? "font-medium text-primary" : "text-secondary", "px-lg py-none text-right text-xs tabular-nums"]) }, [N(B(H), {
2298
2298
  align: "center",
2299
2299
  gap: "xxs",
2300
2300
  justify: "end"
2301
2301
  }, {
2302
- default: V(() => [pe.value === null ? A("", !0) : (I(), k(B(qt), {
2302
+ default: V(() => [pe.value === null ? A("", !0) : (I(), k(B(Kt), {
2303
2303
  key: 0,
2304
2304
  label: pe.value
2305
2305
  }, {
2306
- default: V(() => [N(B(_n), {
2306
+ default: V(() => [N(B(gn), {
2307
2307
  label: B(i).t("wise_invoicing.invoice.detail.line_items.group_total_breakdown"),
2308
2308
  icon: B(De),
2309
2309
  class: "rounded-full!",
@@ -2311,15 +2311,15 @@ var ri = /* @__PURE__ */ P({
2311
2311
  variant: "tertiary"
2312
2312
  }, null, 8, ["label", "icon"])]),
2313
2313
  _: 1
2314
- }, 8, ["label"])), dt(" " + z(de.value), 1)]),
2314
+ }, 8, ["label"])), ut(" " + z(de.value), 1)]),
2315
2315
  _: 1
2316
2316
  })], 2),
2317
- B(o).hasActionsColumn.value ? (I(), j("td", Ci, [N(B(H), {
2317
+ B(o).hasActionsColumn.value ? (I(), j("td", Si, [N(B(H), {
2318
2318
  justify: "end",
2319
2319
  gap: "xxs"
2320
2320
  }, {
2321
- default: V(() => [B(o).isEditable.value || re.value.length > 0 ? (I(), k(B(ln), { key: 0 }, {
2322
- trigger: V(() => [N(B(_n), {
2321
+ default: V(() => [B(o).isEditable.value || re.value.length > 0 ? (I(), k(B(cn), { key: 0 }, {
2322
+ trigger: V(() => [N(B(gn), {
2323
2323
  icon: B(We),
2324
2324
  "is-disabled": !B(o).isEditable.value,
2325
2325
  label: B(i).t("wise_invoicing.invoice.detail.line_items.group_actions"),
@@ -2330,12 +2330,12 @@ var ri = /* @__PURE__ */ P({
2330
2330
  "label"
2331
2331
  ])]),
2332
2332
  content: V(() => [B(o).isEditable.value ? (I(), j(D, { key: 0 }, [
2333
- N(B(un), null, {
2334
- default: V(() => [N(B(dn), {
2333
+ N(B(ln), null, {
2334
+ default: V(() => [N(B(un), {
2335
2335
  icon: B(xe),
2336
2336
  label: B(i).t("wise_invoicing.invoice.detail.line_items.edit_group"),
2337
2337
  onSelect: t[3] ||= (e) => ve()
2338
- }, null, 8, ["icon", "label"]), N(B(dn), {
2338
+ }, null, 8, ["icon", "label"]), N(B(un), {
2339
2339
  icon: B(be),
2340
2340
  "is-disabled": !ne.value,
2341
2341
  "disabled-reason": ne.value ? null : te.value,
@@ -2349,10 +2349,10 @@ var ri = /* @__PURE__ */ P({
2349
2349
  ])]),
2350
2350
  _: 1
2351
2351
  }),
2352
- N(B(fn)),
2353
- N(B(un), null, {
2352
+ N(B(dn)),
2353
+ N(B(ln), null, {
2354
2354
  default: V(() => [
2355
- N(B(dn), {
2355
+ N(B(un), {
2356
2356
  icon: B(Ue),
2357
2357
  "is-disabled": !ie.value,
2358
2358
  label: B(i).t("wise_invoicing.invoice.detail.line_items.indent_row"),
@@ -2362,7 +2362,7 @@ var ri = /* @__PURE__ */ P({
2362
2362
  "is-disabled",
2363
2363
  "label"
2364
2364
  ]),
2365
- N(B(dn), {
2365
+ N(B(un), {
2366
2366
  icon: B(fe),
2367
2367
  "is-disabled": !ae.value,
2368
2368
  label: B(i).t("wise_invoicing.invoice.detail.line_items.outdent_row"),
@@ -2372,7 +2372,7 @@ var ri = /* @__PURE__ */ P({
2372
2372
  "is-disabled",
2373
2373
  "label"
2374
2374
  ]),
2375
- N(B(dn), {
2375
+ N(B(un), {
2376
2376
  icon: B(ce),
2377
2377
  label: B(i).t("wise_invoicing.invoice.detail.line_items.ungroup"),
2378
2378
  onSelect: we
@@ -2380,8 +2380,8 @@ var ri = /* @__PURE__ */ P({
2380
2380
  ]),
2381
2381
  _: 1
2382
2382
  })
2383
- ], 64)) : A("", !0), re.value.length > 0 ? (I(), j(D, { key: 1 }, [B(o).isEditable.value ? (I(), k(B(fn), { key: 0 })) : A("", !0), N(B(un), null, {
2384
- default: V(() => [(I(!0), j(D, null, R(re.value, (e) => (I(), k(B(dn), {
2383
+ ], 64)) : A("", !0), re.value.length > 0 ? (I(), j(D, { key: 1 }, [B(o).isEditable.value ? (I(), k(B(dn), { key: 0 })) : A("", !0), N(B(ln), null, {
2384
+ default: V(() => [(I(!0), j(D, null, R(re.value, (e) => (I(), k(B(un), {
2385
2385
  key: e.definition.uuid,
2386
2386
  icon: B(_e),
2387
2387
  label: B(i).t("wise_invoicing.custom_field.reference.open", { label: e.label }),
@@ -2394,7 +2394,7 @@ var ri = /* @__PURE__ */ P({
2394
2394
  _: 1
2395
2395
  })], 64)) : A("", !0)]),
2396
2396
  _: 1
2397
- })) : A("", !0), B(o).isEditable.value ? (I(), k(B(_n), {
2397
+ })) : A("", !0), B(o).isEditable.value ? (I(), k(B(gn), {
2398
2398
  key: 1,
2399
2399
  icon: B(se),
2400
2400
  "is-disabled": !B(o).isEditable.value,
@@ -2408,9 +2408,9 @@ var ri = /* @__PURE__ */ P({
2408
2408
  ])) : A("", !0)]),
2409
2409
  _: 1
2410
2410
  })])) : A("", !0)
2411
- ], 42, _i));
2411
+ ], 42, gi));
2412
2412
  }
2413
- }), Ti = T.object({
2413
+ }), wi = T.object({
2414
2414
  name: T.string().trim().min(1),
2415
2415
  description: T.string().nullable(),
2416
2416
  discountPercentage: T.number().min(0).max(100).nullable(),
@@ -2418,7 +2418,7 @@ var ri = /* @__PURE__ */ P({
2418
2418
  unit: T.enum(e),
2419
2419
  unitPrice: T.number().nonnegative().max(5e11),
2420
2420
  vatRate: T.enum(o)
2421
- }), Ei = T.object({
2421
+ }), Ti = T.object({
2422
2422
  name: T.string().trim().min(1),
2423
2423
  description: T.string().nullable(),
2424
2424
  discountPercentage: T.number().min(0).max(100).nullable(),
@@ -2429,7 +2429,7 @@ var ri = /* @__PURE__ */ P({
2429
2429
  });
2430
2430
  //#endregion
2431
2431
  //#region src/modules/custom-field/composables/customFieldValueModel.composable.ts
2432
- function Di(e) {
2432
+ function Ei(e) {
2433
2433
  let { currency: t, definition: n, precision: r, value: i } = e, a = O({
2434
2434
  get: () => i.value?.type === f.TEXT ? i.value.value : null,
2435
2435
  set: (e) => {
@@ -2467,7 +2467,7 @@ function Di(e) {
2467
2467
  };
2468
2468
  }
2469
2469
  }), l = O({
2470
- get: () => i.value?.type === f.DATE && i.value.value instanceof Kt.PlainDate ? i.value.value : null,
2470
+ get: () => i.value?.type === f.DATE && i.value.value instanceof Gt.PlainDate ? i.value.value : null,
2471
2471
  set: (e) => {
2472
2472
  i.value = e === null ? null : {
2473
2473
  definitionUuid: n().uuid,
@@ -2475,7 +2475,7 @@ function Di(e) {
2475
2475
  value: e
2476
2476
  };
2477
2477
  }
2478
- }), u = O(() => i.value?.type === f.TIMESTAMP ? i.value.value.toZonedDateTimeISO(Kt.Now.timeZoneId()) : null);
2478
+ }), u = O(() => i.value?.type === f.TIMESTAMP ? i.value.value.toZonedDateTimeISO(Gt.Now.timeZoneId()) : null);
2479
2479
  function d(e, t) {
2480
2480
  if (e === null) {
2481
2481
  i.value = null;
@@ -2485,8 +2485,8 @@ function Di(e) {
2485
2485
  definitionUuid: n().uuid,
2486
2486
  type: f.TIMESTAMP,
2487
2487
  value: e.toZonedDateTime({
2488
- plainTime: t ?? new Kt.PlainTime(),
2489
- timeZone: Kt.Now.timeZoneId()
2488
+ plainTime: t ?? new Gt.PlainTime(),
2489
+ timeZone: Gt.Now.timeZoneId()
2490
2490
  }).toInstant()
2491
2491
  };
2492
2492
  }
@@ -2547,9 +2547,9 @@ function Di(e) {
2547
2547
  }
2548
2548
  //#endregion
2549
2549
  //#region src/modules/custom-field/components/CustomFieldValueInput.vue
2550
- var Oi = /* @__PURE__ */ P({
2550
+ var Di = /* @__PURE__ */ P({
2551
2551
  __name: "CustomFieldValueInput",
2552
- props: /*@__PURE__*/ _t({
2552
+ props: /*@__PURE__*/ gt({
2553
2553
  isDisabled: { type: Boolean },
2554
2554
  isLabelHidden: { type: Boolean },
2555
2555
  currency: {},
@@ -2563,7 +2563,7 @@ var Oi = /* @__PURE__ */ P({
2563
2563
  }),
2564
2564
  emits: ["update:modelValue"],
2565
2565
  setup(e) {
2566
- let t = e, n = jt(e, "modelValue"), r = E(), i = Di({
2566
+ let t = e, n = At(e, "modelValue"), r = E(), i = Ei({
2567
2567
  currency: () => t.currency,
2568
2568
  definition: () => t.definition,
2569
2569
  precision: () => t.precision,
@@ -2577,11 +2577,11 @@ var Oi = /* @__PURE__ */ P({
2577
2577
  isRequired: t.definition.isRequired,
2578
2578
  helpText: t.definition.description === null ? null : b.getLocalizedValue(t.definition.description, r.locale.value),
2579
2579
  label: a.value
2580
- })), s = O(() => In(t.definition.choices.toSorted((e, t) => e.order - t.order).map((e) => e.value))), c = O(() => n.value?.type === f.DATE ? n.value.value === "infinity" ? r.t("wise_invoicing.custom_field.date.infinity") : n.value.value === "-infinity" ? r.t("wise_invoicing.custom_field.date.negative_infinity") : null : null);
2580
+ })), s = O(() => Fn(t.definition.choices.toSorted((e, t) => e.order - t.order).map((e) => e.value))), c = O(() => n.value?.type === f.DATE ? n.value.value === "infinity" ? r.t("wise_invoicing.custom_field.date.infinity") : n.value.value === "-infinity" ? r.t("wise_invoicing.custom_field.date.negative_infinity") : null : null);
2581
2581
  function l(e) {
2582
2582
  return b.getChoiceLabel(t.definition, e, r.locale.value);
2583
2583
  }
2584
- return (e, n) => t.definition.type === B(f).TEXT ? (I(), k(B(kn), F({
2584
+ return (e, n) => t.definition.type === B(f).TEXT ? (I(), k(B(On), F({
2585
2585
  key: 0,
2586
2586
  modelValue: B(i).text.value,
2587
2587
  "onUpdate:modelValue": n[0] ||= (e) => B(i).text.value = e
@@ -2592,7 +2592,7 @@ var Oi = /* @__PURE__ */ P({
2592
2592
  "modelValue",
2593
2593
  "placeholder",
2594
2594
  "size"
2595
- ])) : t.definition.type === B(f).TEXT_ARRAY ? (I(), k(B(On), F({
2595
+ ])) : t.definition.type === B(f).TEXT_ARRAY ? (I(), k(B(Dn), F({
2596
2596
  key: 1,
2597
2597
  modelValue: B(i).textArray.value,
2598
2598
  "onUpdate:modelValue": n[1] ||= (e) => B(i).textArray.value = e
@@ -2603,15 +2603,15 @@ var Oi = /* @__PURE__ */ P({
2603
2603
  "modelValue",
2604
2604
  "placeholder",
2605
2605
  "size"
2606
- ])) : t.definition.type === B(f).NUMBER ? (I(), k(B(yn), F({
2606
+ ])) : t.definition.type === B(f).NUMBER ? (I(), k(B(vn), F({
2607
2607
  key: 2,
2608
2608
  modelValue: B(i).number.value,
2609
2609
  "onUpdate:modelValue": n[2] ||= (e) => B(i).number.value = e
2610
- }, o.value, { placeholder: t.placeholder }), null, 16, ["modelValue", "placeholder"])) : t.definition.type === B(f).BOOLEAN ? (I(), k(B(wn), F({
2610
+ }, o.value, { placeholder: t.placeholder }), null, 16, ["modelValue", "placeholder"])) : t.definition.type === B(f).BOOLEAN ? (I(), k(B(Cn), F({
2611
2611
  key: 3,
2612
2612
  modelValue: B(i).boolean.value,
2613
2613
  "onUpdate:modelValue": n[3] ||= (e) => B(i).boolean.value = e
2614
- }, o.value), null, 16, ["modelValue"])) : t.definition.type === B(f).DATE ? (I(), k(B(tn), F({
2614
+ }, o.value), null, 16, ["modelValue"])) : t.definition.type === B(f).DATE ? (I(), k(B(en), F({
2615
2615
  key: 4,
2616
2616
  modelValue: B(i).date.value,
2617
2617
  "onUpdate:modelValue": n[4] ||= (e) => B(i).date.value = e
@@ -2629,7 +2629,7 @@ var Oi = /* @__PURE__ */ P({
2629
2629
  align: "start",
2630
2630
  gap: "xs"
2631
2631
  }, {
2632
- default: V(() => [N(B(tn), F({
2632
+ default: V(() => [N(B(en), F({
2633
2633
  modelValue: B(i).timestampDate.value,
2634
2634
  "onUpdate:modelValue": n[5] ||= (e) => B(i).timestampDate.value = e
2635
2635
  }, o.value, {
@@ -2639,7 +2639,7 @@ var Oi = /* @__PURE__ */ P({
2639
2639
  "modelValue",
2640
2640
  "placeholder",
2641
2641
  "size"
2642
- ]), N(B(jn), {
2642
+ ]), N(B(An), {
2643
2643
  modelValue: B(i).timestampTime.value,
2644
2644
  "onUpdate:modelValue": n[6] ||= (e) => B(i).timestampTime.value = e,
2645
2645
  "is-disabled": t.isDisabled || B(i).timestampDate.value === null,
@@ -2655,7 +2655,7 @@ var Oi = /* @__PURE__ */ P({
2655
2655
  "size"
2656
2656
  ])]),
2657
2657
  _: 1
2658
- })) : t.definition.type === B(f).SINGLE_SELECT ? (I(), k(B(xn), F({
2658
+ })) : t.definition.type === B(f).SINGLE_SELECT ? (I(), k(B(bn), F({
2659
2659
  key: 6,
2660
2660
  modelValue: B(i).singleSelect.value,
2661
2661
  "onUpdate:modelValue": n[7] ||= (e) => B(i).singleSelect.value = e
@@ -2669,7 +2669,7 @@ var Oi = /* @__PURE__ */ P({
2669
2669
  "items",
2670
2670
  "placeholder",
2671
2671
  "size"
2672
- ])) : t.definition.type === B(f).MULTI_SELECT ? (I(), k(B(xn), F({
2672
+ ])) : t.definition.type === B(f).MULTI_SELECT ? (I(), k(B(bn), F({
2673
2673
  key: 7,
2674
2674
  modelValue: B(i).multiSelect.value,
2675
2675
  "onUpdate:modelValue": n[8] ||= (e) => B(i).multiSelect.value = e
@@ -2683,15 +2683,15 @@ var Oi = /* @__PURE__ */ P({
2683
2683
  "items",
2684
2684
  "placeholder",
2685
2685
  "size"
2686
- ])) : t.definition.type === B(f).MONETARY ? (I(), k(B(yn), F({
2686
+ ])) : t.definition.type === B(f).MONETARY ? (I(), k(B(vn), F({
2687
2687
  key: 8,
2688
2688
  modelValue: B(i).monetary.value,
2689
2689
  "onUpdate:modelValue": n[9] ||= (e) => B(i).monetary.value = e
2690
2690
  }, o.value, { placeholder: t.placeholder }), null, 16, ["modelValue", "placeholder"])) : A("", !0);
2691
2691
  }
2692
- }), ki = /* @__PURE__ */ P({
2692
+ }), Oi = /* @__PURE__ */ P({
2693
2693
  __name: "BillingDocumentLineItemsTableNumberField",
2694
- props: /*@__PURE__*/ _t({
2694
+ props: /*@__PURE__*/ gt({
2695
2695
  id: {},
2696
2696
  isDisabled: { type: Boolean },
2697
2697
  isTouched: { type: Boolean },
@@ -2707,13 +2707,13 @@ var Oi = /* @__PURE__ */ P({
2707
2707
  modelValue: { required: !0 },
2708
2708
  modelModifiers: {}
2709
2709
  }),
2710
- emits: /*@__PURE__*/ _t(["blur"], ["update:modelValue"]),
2710
+ emits: /*@__PURE__*/ gt(["blur"], ["update:modelValue"]),
2711
2711
  setup(e, { emit: t }) {
2712
- let n = e, r = t, i = jt(e, "modelValue"), a = L(s(i.value)), o = L(!1);
2712
+ let n = e, r = t, i = At(e, "modelValue"), a = L(s(i.value)), o = L(!1);
2713
2713
  function s(e) {
2714
2714
  return e === null ? "" : String(e);
2715
2715
  }
2716
- Pt(i, (e) => {
2716
+ Nt(i, (e) => {
2717
2717
  o.value || (a.value = s(e));
2718
2718
  });
2719
2719
  function c() {
@@ -2731,7 +2731,7 @@ var Oi = /* @__PURE__ */ P({
2731
2731
  function u(e) {
2732
2732
  o.value = !1, a.value = s(i.value), r("blur", e);
2733
2733
  }
2734
- return (e, t) => (I(), k(hi, F(n, {
2734
+ return (e, t) => (I(), k(mi, F(n, {
2735
2735
  value: a.value,
2736
2736
  align: "right",
2737
2737
  type: "number",
@@ -2740,15 +2740,15 @@ var Oi = /* @__PURE__ */ P({
2740
2740
  onInput: l
2741
2741
  }), null, 16, ["value"]));
2742
2742
  }
2743
- }), Ai = [
2743
+ }), ki = [
2744
2744
  "id",
2745
2745
  "disabled",
2746
2746
  "aria-invalid",
2747
2747
  "aria-expanded",
2748
2748
  "aria-controls"
2749
- ], ji = /* @__PURE__ */ P({
2749
+ ], Ai = /* @__PURE__ */ P({
2750
2750
  __name: "BillingDocumentLineItemsTableSelectField",
2751
- props: /*@__PURE__*/ _t({
2751
+ props: /*@__PURE__*/ gt({
2752
2752
  id: {},
2753
2753
  isDisabled: { type: Boolean },
2754
2754
  isTouched: { type: Boolean },
@@ -2760,13 +2760,13 @@ var Oi = /* @__PURE__ */ P({
2760
2760
  modelValue: { required: !0 },
2761
2761
  modelModifiers: {}
2762
2762
  }),
2763
- emits: /*@__PURE__*/ _t(["blur"], ["update:modelValue"]),
2763
+ emits: /*@__PURE__*/ gt(["blur"], ["update:modelValue"]),
2764
2764
  setup(e, { emit: t }) {
2765
- let n = e, r = t, i = jt(e, "modelValue"), a = O(() => n.isTouched && n.errorMessage !== null), o = O(() => In(n.options.map((e) => e.value))), s = O(() => n.options.find((e) => e.value === i.value)?.label ?? null);
2765
+ let n = e, r = t, i = At(e, "modelValue"), a = O(() => n.isTouched && n.errorMessage !== null), o = O(() => Fn(n.options.map((e) => e.value))), s = O(() => n.options.find((e) => e.value === i.value)?.label ?? null);
2766
2766
  function c(e) {
2767
2767
  return n.options.find((t) => t.value === e)?.label ?? e;
2768
2768
  }
2769
- return (e, t) => (I(), j("div", { class: yt([[n.isDisabled ? "cursor-not-allowed" : "cursor-pointer", a.value && !n.isDisabled ? "bg-primary ring-2 ring-error-500 ring-inset" : n.isDisabled ? "" : "\n focus-within:z-10 focus-within:bg-primary focus-within:ring-2\n focus-within:ring-brand-500 focus-within:ring-inset\n "], "relative flex h-11 w-full items-center rounded-md border border-transparent bg-transparent transition-[background-color,box-shadow] duration-100 motion-reduce:transition-none"]) }, [N(B(Sn), {
2769
+ return (e, t) => (I(), j("div", { class: vt([[n.isDisabled ? "cursor-not-allowed" : "cursor-pointer", a.value && !n.isDisabled ? "bg-primary ring-2 ring-error-500 ring-inset" : n.isDisabled ? "" : "\n focus-within:z-10 focus-within:bg-primary focus-within:ring-2\n focus-within:ring-brand-500 focus-within:ring-inset\n "], "relative flex h-11 w-full items-center rounded-md border border-transparent bg-transparent transition-[background-color,box-shadow] duration-100 motion-reduce:transition-none"]) }, [N(B(xn), {
2770
2770
  id: n.id,
2771
2771
  modelValue: i.value,
2772
2772
  "onUpdate:modelValue": t[0] ||= (e) => i.value = e,
@@ -2788,10 +2788,10 @@ var Oi = /* @__PURE__ */ P({
2788
2788
  "aria-controls": `${n.id}-content`,
2789
2789
  role: "combobox",
2790
2790
  class: "relative z-1 flex size-full items-center justify-between border-none bg-transparent px-lg text-xs outline-none disabled:cursor-not-allowed"
2791
- }, [M("span", { class: yt([n.isDisabled ? "text-disabled" : s.value === null ? "text-placeholder" : "text-tertiary"]) }, z(s.value ?? n.placeholder ?? ""), 3), n.isDisabled ? A("", !0) : (I(), k(B(Ae), {
2791
+ }, [M("span", { class: vt([n.isDisabled ? "text-disabled" : s.value === null ? "text-placeholder" : "text-tertiary"]) }, z(s.value ?? n.placeholder ?? ""), 3), n.isDisabled ? A("", !0) : (I(), k(B(Ae), {
2792
2792
  key: 0,
2793
2793
  class: "size-4 shrink-0 text-tertiary"
2794
- }))], 8, Ai)]),
2794
+ }))], 8, ki)]),
2795
2795
  _: 1
2796
2796
  }, 8, [
2797
2797
  "id",
@@ -2802,9 +2802,9 @@ var Oi = /* @__PURE__ */ P({
2802
2802
  "items"
2803
2803
  ])], 2));
2804
2804
  }
2805
- }), Mi = /* @__PURE__ */ P({
2805
+ }), ji = /* @__PURE__ */ P({
2806
2806
  __name: "BillingDocumentLineItemsTableCustomField",
2807
- props: /*@__PURE__*/ _t({
2807
+ props: /*@__PURE__*/ gt({
2808
2808
  id: {},
2809
2809
  isDisabled: { type: Boolean },
2810
2810
  currency: {},
@@ -2816,7 +2816,7 @@ var Oi = /* @__PURE__ */ P({
2816
2816
  }),
2817
2817
  emits: ["update:modelValue"],
2818
2818
  setup(e) {
2819
- let t = e, n = jt(e, "modelValue"), r = E(), i = h(), a = Di({
2819
+ let t = e, n = At(e, "modelValue"), r = E(), i = h(), a = Ei({
2820
2820
  currency: () => t.currency,
2821
2821
  definition: () => t.definition,
2822
2822
  precision: () => t.precision,
@@ -2825,7 +2825,7 @@ var Oi = /* @__PURE__ */ P({
2825
2825
  label: b.getChoiceLabel(t.definition, e.value, r.locale.value),
2826
2826
  value: e.value
2827
2827
  })));
2828
- return (e, r) => t.definition.type === B(f).TEXT ? (I(), k(gi, {
2828
+ return (e, r) => t.definition.type === B(f).TEXT ? (I(), k(hi, {
2829
2829
  key: 0,
2830
2830
  id: t.id,
2831
2831
  modelValue: B(a).text.value,
@@ -2840,7 +2840,7 @@ var Oi = /* @__PURE__ */ P({
2840
2840
  "modelValue",
2841
2841
  "is-disabled",
2842
2842
  "label"
2843
- ])) : t.definition.type === B(f).NUMBER ? (I(), k(ki, {
2843
+ ])) : t.definition.type === B(f).NUMBER ? (I(), k(Oi, {
2844
2844
  key: 1,
2845
2845
  id: t.id,
2846
2846
  modelValue: B(a).number.value,
@@ -2855,7 +2855,7 @@ var Oi = /* @__PURE__ */ P({
2855
2855
  "modelValue",
2856
2856
  "is-disabled",
2857
2857
  "label"
2858
- ])) : t.definition.type === B(f).MONETARY ? (I(), k(ki, {
2858
+ ])) : t.definition.type === B(f).MONETARY ? (I(), k(Oi, {
2859
2859
  key: 2,
2860
2860
  id: t.id,
2861
2861
  modelValue: B(a).monetary.value,
@@ -2874,7 +2874,7 @@ var Oi = /* @__PURE__ */ P({
2874
2874
  "label",
2875
2875
  "prefix",
2876
2876
  "suffix"
2877
- ])) : t.definition.type === B(f).SINGLE_SELECT ? (I(), k(ji, {
2877
+ ])) : t.definition.type === B(f).SINGLE_SELECT ? (I(), k(Ai, {
2878
2878
  key: 3,
2879
2879
  id: t.id,
2880
2880
  modelValue: B(a).singleSelect.value,
@@ -2891,7 +2891,7 @@ var Oi = /* @__PURE__ */ P({
2891
2891
  "is-disabled",
2892
2892
  "label",
2893
2893
  "options"
2894
- ])) : (I(), k(Oi, {
2894
+ ])) : (I(), k(Di, {
2895
2895
  key: 4,
2896
2896
  modelValue: n.value,
2897
2897
  "onUpdate:modelValue": r[4] ||= (e) => n.value = e,
@@ -2910,19 +2910,19 @@ var Oi = /* @__PURE__ */ P({
2910
2910
  "precision"
2911
2911
  ]));
2912
2912
  }
2913
- }), Ni = ["data-line-item-row-id", "data-appearing"], Pi = {
2913
+ }), Mi = ["data-line-item-row-id", "data-appearing"], Ni = {
2914
2914
  key: 0,
2915
2915
  class: "sticky left-0 z-10 overflow-visible bg-inherit px-xs py-none"
2916
- }, Fi = {
2916
+ }, Pi = {
2917
2917
  class: "sticky left-(--line-items-item-start) z-10 bg-inherit p-none",
2918
2918
  "data-line-item-drag-preview": ""
2919
- }, Ii = { class: "p-none" }, Li = { class: "p-none" }, Ri = { class: "p-none" }, zi = { class: "p-none" }, Bi = {
2919
+ }, Fi = { class: "p-none" }, Ii = { class: "p-none" }, Li = { class: "p-none" }, Ri = { class: "p-none" }, zi = {
2920
2920
  key: 1,
2921
2921
  class: "p-none"
2922
- }, Vi = { class: "px-lg py-none text-right text-xs text-tertiary tabular-nums" }, Hi = { class: "p-none" }, Ui = { class: "px-lg py-none text-right text-xs text-tertiary tabular-nums" }, Wi = {
2922
+ }, Bi = { class: "px-lg py-none text-right text-xs text-tertiary tabular-nums" }, Vi = { class: "p-none" }, Hi = { class: "px-lg py-none text-right text-xs text-tertiary tabular-nums" }, Ui = {
2923
2923
  key: 2,
2924
2924
  class: "sticky right-0 z-10 bg-inherit px-md py-none"
2925
- }, Gi = /*#__PURE__*/ mi(/* @__PURE__ */ P({
2925
+ }, Wi = /*#__PURE__*/ pi(/* @__PURE__ */ P({
2926
2926
  __name: "BillingDocumentLineItemsTableRow",
2927
2927
  props: {
2928
2928
  isAppearing: { type: Boolean },
@@ -2931,13 +2931,13 @@ var Oi = /* @__PURE__ */ P({
2931
2931
  net: {}
2932
2932
  },
2933
2933
  setup(e) {
2934
- let t = e, n = E(), r = h(), i = _(), a = Ln().create(ii), o = Pr(), s = Fr.map((e) => ({
2934
+ let t = e, n = E(), r = h(), i = _(), a = In().create(ri), o = Nr(), s = Pr.map((e) => ({
2935
2935
  label: `${Number(e)}%`,
2936
2936
  value: e
2937
- })), c = Ir.map((e) => ({
2937
+ })), c = Fr.map((e) => ({
2938
2938
  label: n.t(`wise_invoicing.invoice.detail.line_items.units.${e}`),
2939
2939
  value: e
2940
- })), l = O(() => o.structure.value.rows.get(t.line.id)?.depth ?? 0), u = O(() => r.getSymbol(o.meta.value.currency)), d = O(() => o.meta.value.documentType === p.CREDIT_NOTE), f = d.value ? Ei : Ti, m = O(() => !o.isEditable.value || t.line.isDiscount), g = Bn({
2940
+ })), l = O(() => o.structure.value.rows.get(t.line.id)?.depth ?? 0), u = O(() => r.getSymbol(o.meta.value.currency)), d = O(() => o.meta.value.documentType === p.CREDIT_NOTE), f = d.value ? Ti : wi, m = O(() => !o.isEditable.value || t.line.isDiscount), g = zn({
2941
2941
  initialState: O(() => de(t.line)),
2942
2942
  schema: f,
2943
2943
  onSubmit: (e) => {
@@ -2966,10 +2966,10 @@ var Oi = /* @__PURE__ */ P({
2966
2966
  });
2967
2967
  }
2968
2968
  function le(e) {
2969
- return r.format(o.meta.value.currency, qr.getDisplayNumber(o.meta.value.documentType, e));
2969
+ return r.format(o.meta.value.currency, Kr.getDisplayNumber(o.meta.value.documentType, e));
2970
2970
  }
2971
2971
  function ue(e) {
2972
- return r.format(o.meta.value.currency, qr.getDisplayGrossLineTotal(o.meta.value.documentType, e, t.line.isDiscount));
2972
+ return r.format(o.meta.value.currency, Kr.getDisplayGrossLineTotal(o.meta.value.documentType, e, t.line.isDiscount));
2973
2973
  }
2974
2974
  function de(e) {
2975
2975
  return {
@@ -2985,7 +2985,7 @@ var Oi = /* @__PURE__ */ P({
2985
2985
  function fe(e, t) {
2986
2986
  return e.name === t.name && e.description === t.description && e.quantity === t.quantity && e.unit === t.unit && e.unitPrice === t.unitPrice && (e.discountPercentage?.getValue() ?? null) === t.discountPercentage && e.vatRate === t.vatRate;
2987
2987
  }
2988
- return Pt(() => [g.state.value, g.isValid.value], async () => {
2988
+ return Nt(() => [g.state.value, g.isValid.value], async () => {
2989
2989
  !o.isEditable.value || !g.isValid.value || fe(t.line, g.state.value) || await g.submit();
2990
2990
  }, { deep: !0 }), (e, r) => (I(), j("tr", {
2991
2991
  "data-line-item-row-id": t.line.id,
@@ -2994,12 +2994,12 @@ var Oi = /* @__PURE__ */ P({
2994
2994
  "data-line-item-row-type": "line",
2995
2995
  "data-line-item-row": ""
2996
2996
  }, [
2997
- B(o).isEditable.value ? (I(), j("td", Pi, [N(oi)])) : A("", !0),
2998
- M("td", Fi, [N(si, {
2997
+ B(o).isEditable.value ? (I(), j("td", Ni, [N(ai)])) : A("", !0),
2998
+ M("td", Pi, [N(oi, {
2999
2999
  depth: l.value,
3000
3000
  type: "line"
3001
3001
  }, {
3002
- default: V(() => [B(o).isEditable.value ? (I(), k(B(Xt), {
3002
+ default: V(() => [B(o).isEditable.value ? (I(), k(B(Yt), {
3003
3003
  key: 0,
3004
3004
  id: w("select-row"),
3005
3005
  "model-value": B(o).selection.isSelected(t.line.id),
@@ -3013,7 +3013,7 @@ var Oi = /* @__PURE__ */ P({
3013
3013
  "model-value",
3014
3014
  "label",
3015
3015
  "is-disabled"
3016
- ])) : A("", !0), N(gi, F({
3016
+ ])) : A("", !0), N(hi, F({
3017
3017
  id: w("name"),
3018
3018
  label: B(n).t("wise_invoicing.invoice.detail.line_items.item"),
3019
3019
  placeholder: B(n).t("wise_invoicing.invoice.detail.line_items.item_placeholder"),
@@ -3028,7 +3028,7 @@ var Oi = /* @__PURE__ */ P({
3028
3028
  ])]),
3029
3029
  _: 1
3030
3030
  }, 8, ["depth"])]),
3031
- M("td", Ii, [N(gi, F({
3031
+ M("td", Fi, [N(hi, F({
3032
3032
  id: w("description"),
3033
3033
  label: B(n).t("wise_invoicing.invoice.detail.line_items.item_description"),
3034
3034
  placeholder: B(n).t("wise_invoicing.invoice.detail.line_items.item_description_placeholder"),
@@ -3042,7 +3042,7 @@ var Oi = /* @__PURE__ */ P({
3042
3042
  (I(!0), j(D, null, R(re.value, (e) => (I(), j("td", {
3043
3043
  key: e.definition.uuid,
3044
3044
  class: "p-none"
3045
- }, [B(o).isEditable.value ? (I(), k(Mi, {
3045
+ }, [B(o).isEditable.value ? (I(), k(ji, {
3046
3046
  key: 0,
3047
3047
  id: w(`custom-field-${e.definition.uuid}`),
3048
3048
  currency: B(o).meta.value.currency,
@@ -3063,7 +3063,7 @@ var Oi = /* @__PURE__ */ P({
3063
3063
  class: "px-lg",
3064
3064
  size: "md"
3065
3065
  }, null, 8, ["definition", "value"]))]))), 128)),
3066
- M("td", Li, [N(ki, F({
3066
+ M("td", Ii, [N(Oi, F({
3067
3067
  id: w("quantity"),
3068
3068
  "is-disabled": !B(o).isEditable.value,
3069
3069
  label: B(n).t("wise_invoicing.invoice.detail.line_items.qty"),
@@ -3073,7 +3073,7 @@ var Oi = /* @__PURE__ */ P({
3073
3073
  "is-disabled",
3074
3074
  "label"
3075
3075
  ])]),
3076
- M("td", Ri, [N(ji, F({
3076
+ M("td", Li, [N(Ai, F({
3077
3077
  id: w("unit"),
3078
3078
  "is-disabled": !B(o).isEditable.value,
3079
3079
  label: B(n).t("wise_invoicing.invoice.detail.line_items.unit"),
@@ -3084,7 +3084,7 @@ var Oi = /* @__PURE__ */ P({
3084
3084
  "label",
3085
3085
  "options"
3086
3086
  ])]),
3087
- M("td", zi, [N(ki, F({
3087
+ M("td", Ri, [N(Oi, F({
3088
3088
  id: w("unit-price"),
3089
3089
  "is-disabled": !B(o).isEditable.value,
3090
3090
  label: B(n).t("wise_invoicing.invoice.detail.line_items.unit_price"),
@@ -3099,7 +3099,7 @@ var Oi = /* @__PURE__ */ P({
3099
3099
  "prefix",
3100
3100
  "suffix"
3101
3101
  ])]),
3102
- B(i).isLineDiscountEnabled.value ? (I(), j("td", Bi, [N(ki, F({
3102
+ B(i).isLineDiscountEnabled.value ? (I(), j("td", zi, [N(Oi, F({
3103
3103
  id: w("discount"),
3104
3104
  label: B(n).t("wise_invoicing.invoice.detail.line_items.discount"),
3105
3105
  "is-disabled": m.value,
@@ -3113,8 +3113,8 @@ var Oi = /* @__PURE__ */ P({
3113
3113
  "label",
3114
3114
  "is-disabled"
3115
3115
  ])])) : A("", !0),
3116
- M("td", Vi, z(le(t.net)), 1),
3117
- M("td", Hi, [N(ji, F({
3116
+ M("td", Bi, z(le(t.net)), 1),
3117
+ M("td", Vi, [N(Ai, F({
3118
3118
  id: w("vat-rate"),
3119
3119
  "is-disabled": !B(o).isEditable.value,
3120
3120
  label: B(n).t("wise_invoicing.invoice.detail.line_items.vat"),
@@ -3125,27 +3125,27 @@ var Oi = /* @__PURE__ */ P({
3125
3125
  "label",
3126
3126
  "options"
3127
3127
  ])]),
3128
- M("td", Ui, z(ue(t.gross)), 1),
3129
- B(o).hasActionsColumn.value ? (I(), j("td", Wi, [N(B(H), {
3128
+ M("td", Hi, z(ue(t.gross)), 1),
3129
+ B(o).hasActionsColumn.value ? (I(), j("td", Ui, [N(B(H), {
3130
3130
  justify: "end",
3131
3131
  gap: "xxs",
3132
3132
  class: "opacity-0 transition group-focus-within/row:opacity-100 group-hover/row:opacity-100"
3133
3133
  }, {
3134
- default: V(() => [ie.value.length > 0 ? (I(), k(B(ln), { key: 0 }, {
3135
- trigger: V(() => [N(B(_n), {
3134
+ default: V(() => [ie.value.length > 0 ? (I(), k(B(cn), { key: 0 }, {
3135
+ trigger: V(() => [N(B(gn), {
3136
3136
  icon: B(We),
3137
3137
  label: B(n).t("wise_invoicing.invoice.detail.line_items.line_actions"),
3138
3138
  variant: "tertiary"
3139
3139
  }, null, 8, ["icon", "label"])]),
3140
- content: V(() => [B(o).isEditable.value ? (I(), j(D, { key: 0 }, [N(B(un), null, {
3141
- default: V(() => [N(B(dn), {
3140
+ content: V(() => [B(o).isEditable.value ? (I(), j(D, { key: 0 }, [N(B(ln), null, {
3141
+ default: V(() => [N(B(un), {
3142
3142
  icon: B(ve),
3143
3143
  label: B(n).t("wise_invoicing.invoice.detail.line_items.duplicate"),
3144
3144
  onSelect: r[1] ||= (e) => B(o).mutations.duplicateLine(t.line.id)
3145
3145
  }, null, 8, ["icon", "label"])]),
3146
3146
  _: 1
3147
- }), N(B(fn))], 64)) : A("", !0), N(B(un), null, {
3148
- default: V(() => [(I(!0), j(D, null, R(ie.value, (e) => (I(), k(B(dn), {
3147
+ }), N(B(dn))], 64)) : A("", !0), N(B(ln), null, {
3148
+ default: V(() => [(I(!0), j(D, null, R(ie.value, (e) => (I(), k(B(un), {
3149
3149
  key: e.definition.uuid,
3150
3150
  icon: B(_e),
3151
3151
  label: B(n).t("wise_invoicing.custom_field.reference.open", { label: e.label }),
@@ -3158,7 +3158,7 @@ var Oi = /* @__PURE__ */ P({
3158
3158
  _: 1
3159
3159
  })]),
3160
3160
  _: 1
3161
- })) : B(o).isEditable.value ? (I(), k(B(_n), {
3161
+ })) : B(o).isEditable.value ? (I(), k(B(gn), {
3162
3162
  key: 1,
3163
3163
  icon: B(ve),
3164
3164
  "is-disabled": !B(o).isEditable.value,
@@ -3169,7 +3169,7 @@ var Oi = /* @__PURE__ */ P({
3169
3169
  "icon",
3170
3170
  "is-disabled",
3171
3171
  "label"
3172
- ])) : A("", !0), B(o).isEditable.value ? (I(), k(B(_n), {
3172
+ ])) : A("", !0), B(o).isEditable.value ? (I(), k(B(gn), {
3173
3173
  key: 2,
3174
3174
  icon: B(se),
3175
3175
  "is-disabled": !B(o).isEditable.value,
@@ -3183,10 +3183,10 @@ var Oi = /* @__PURE__ */ P({
3183
3183
  ])) : A("", !0)]),
3184
3184
  _: 1
3185
3185
  })])) : A("", !0)
3186
- ], 8, Ni));
3186
+ ], 8, Mi));
3187
3187
  }
3188
- }), [["__scopeId", "data-v-35ab0cb8"]]), Ki = "input, [role=\"combobox\"]", qi = "[data-line-item-row][data-line-item-row-type=\"line\"]";
3189
- function Ji(e) {
3188
+ }), [["__scopeId", "data-v-35ab0cb8"]]), Gi = "input, [role=\"combobox\"]", Ki = "[data-line-item-row][data-line-item-row-type=\"line\"]";
3189
+ function qi(e) {
3190
3190
  return e.key === "Escape" ? { type: "blur" } : e.hasPrimaryModifier && (e.key === "d" || e.key === "D") ? { type: "duplicate" } : e.hasPrimaryModifier && e.key === "]" ? { type: "indent" } : e.hasPrimaryModifier && e.key === "[" ? { type: "outdent" } : e.key === "Enter" ? { type: "addLine" } : e.key === "Backspace" ? e.colIndex === 0 && e.isFieldEmpty && e.atStart ? { type: "deleteEmpty" } : null : e.key === "ArrowUp" ? e.rowIndex > 0 ? {
3191
3191
  colIndex: e.colIndex,
3192
3192
  rowIndex: e.rowIndex - 1,
@@ -3205,10 +3205,10 @@ function Ji(e) {
3205
3205
  type: "focusCell"
3206
3206
  } : null;
3207
3207
  }
3208
- function Yi(e) {
3209
- return Array.from(e.querySelectorAll(Ki));
3208
+ function Ji(e) {
3209
+ return Array.from(e.querySelectorAll(Gi));
3210
3210
  }
3211
- function Xi(e) {
3211
+ function Yi(e) {
3212
3212
  let t = e.value === "";
3213
3213
  if (e.type === "number") return {
3214
3214
  isEmpty: t,
@@ -3227,20 +3227,20 @@ function Xi(e) {
3227
3227
  atStart: n === null || n === 0
3228
3228
  };
3229
3229
  }
3230
- function Zi(e) {
3230
+ function Xi(e) {
3231
3231
  function t() {
3232
- return Array.from(e.tbodyRef.value?.querySelectorAll(qi) ?? []);
3232
+ return Array.from(e.tbodyRef.value?.querySelectorAll(Ki) ?? []);
3233
3233
  }
3234
3234
  function n(t, n) {
3235
3235
  let r = e.tbodyRef.value?.querySelector(`[data-line-item-row-id="${t}"]`);
3236
3236
  if (r == null) return;
3237
- let i = Yi(r);
3237
+ let i = Ji(r);
3238
3238
  i[Math.min(n, i.length - 1)]?.focus();
3239
3239
  }
3240
3240
  function r(e, n) {
3241
3241
  let r = t()[e];
3242
3242
  if (r === void 0) return;
3243
- let i = Yi(r);
3243
+ let i = Ji(r);
3244
3244
  i[Math.min(n, i.length - 1)]?.focus();
3245
3245
  }
3246
3246
  function i(n) {
@@ -3249,15 +3249,15 @@ function Zi(e) {
3249
3249
  if (!(i instanceof HTMLElement)) return;
3250
3250
  let o = i instanceof HTMLInputElement ? i : null, s = o === null ? i.closest("[role=\"combobox\"]") : null, c = o ?? s;
3251
3251
  if (c === null || s !== null && s.getAttribute("aria-expanded") === "true") return;
3252
- let l = c.closest(qi), u = l?.dataset.lineItemRowId;
3252
+ let l = c.closest(Ki), u = l?.dataset.lineItemRowId;
3253
3253
  if (l == null || u === void 0) return;
3254
- let d = t(), f = d.indexOf(l), p = Yi(l), m = p.indexOf(c);
3254
+ let d = t(), f = d.indexOf(l), p = Ji(l), m = p.indexOf(c);
3255
3255
  if (f === -1 || m === -1) return;
3256
3256
  let h = o === null ? {
3257
3257
  isEmpty: !1,
3258
3258
  atEnd: !0,
3259
3259
  atStart: !0
3260
- } : Xi(o), g = Ji({
3260
+ } : Yi(o), g = qi({
3261
3261
  hasPrimaryModifier: n.metaKey || n.ctrlKey,
3262
3262
  isFieldEmpty: h.isEmpty,
3263
3263
  atEnd: h.atEnd,
@@ -3293,89 +3293,89 @@ function Zi(e) {
3293
3293
  }
3294
3294
  }
3295
3295
  async function a(e, t) {
3296
- e !== null && (await vt(), n(e, t));
3296
+ e !== null && (await _t(), n(e, t));
3297
3297
  }
3298
3298
  return { onKeydown: i };
3299
3299
  }
3300
3300
  //#endregion
3301
3301
  //#region ../../../node_modules/.pnpm/vue-draggable-plus@0.6.1_@types+sortablejs@1.15.9/node_modules/vue-draggable-plus/dist/vue-draggable-plus.js
3302
- var Qi = Object.defineProperty, $i = Object.getOwnPropertySymbols, ea = Object.prototype.hasOwnProperty, ta = Object.prototype.propertyIsEnumerable, na = (e, t, n) => t in e ? Qi(e, t, {
3302
+ var Zi = Object.defineProperty, Qi = Object.getOwnPropertySymbols, $i = Object.prototype.hasOwnProperty, ea = Object.prototype.propertyIsEnumerable, ta = (e, t, n) => t in e ? Zi(e, t, {
3303
3303
  enumerable: !0,
3304
3304
  configurable: !0,
3305
3305
  writable: !0,
3306
3306
  value: n
3307
- }) : e[t] = n, ra = (e, t) => {
3308
- for (var n in t ||= {}) ea.call(t, n) && na(e, n, t[n]);
3309
- if ($i) for (var n of $i(t)) ta.call(t, n) && na(e, n, t[n]);
3307
+ }) : e[t] = n, na = (e, t) => {
3308
+ for (var n in t ||= {}) $i.call(t, n) && ta(e, n, t[n]);
3309
+ if (Qi) for (var n of Qi(t)) ea.call(t, n) && ta(e, n, t[n]);
3310
3310
  return e;
3311
- }, ia = (e, t) => {
3311
+ }, ra = (e, t) => {
3312
3312
  var n = {};
3313
- for (var r in e) ea.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
3314
- if (e != null && $i) for (var r of $i(e)) t.indexOf(r) < 0 && ta.call(e, r) && (n[r] = e[r]);
3313
+ for (var r in e) $i.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
3314
+ if (e != null && Qi) for (var r of Qi(e)) t.indexOf(r) < 0 && ea.call(e, r) && (n[r] = e[r]);
3315
3315
  return n;
3316
- }, aa = "[vue-draggable-plus]: ";
3317
- function oa(e) {
3318
- console.warn(aa + e);
3316
+ }, ia = "[vue-draggable-plus]: ";
3317
+ function aa(e) {
3318
+ console.warn(ia + e);
3319
3319
  }
3320
- function sa(e) {
3321
- console.error(aa + e);
3320
+ function oa(e) {
3321
+ console.error(ia + e);
3322
3322
  }
3323
- function ca(e, t, n) {
3323
+ function sa(e, t, n) {
3324
3324
  return n >= 0 && n < e.length && e.splice(n, 0, e.splice(t, 1)[0]), e;
3325
3325
  }
3326
- function la(e) {
3326
+ function ca(e) {
3327
3327
  return e.replace(/-(\w)/g, (e, t) => t ? t.toUpperCase() : "");
3328
3328
  }
3329
- function ua(e) {
3330
- return Object.keys(e).reduce((t, n) => (e[n] !== void 0 && (t[la(n)] = e[n]), t), {});
3329
+ function la(e) {
3330
+ return Object.keys(e).reduce((t, n) => (e[n] !== void 0 && (t[ca(n)] = e[n]), t), {});
3331
3331
  }
3332
- function da(e, t) {
3332
+ function ua(e, t) {
3333
3333
  return Array.isArray(e) && e.splice(t, 1), e;
3334
3334
  }
3335
- function fa(e, t, n) {
3335
+ function da(e, t, n) {
3336
3336
  return Array.isArray(e) && e.splice(t, 0, n), e;
3337
3337
  }
3338
- function pa(e) {
3338
+ function fa(e) {
3339
3339
  return e === void 0;
3340
3340
  }
3341
- function ma(e) {
3341
+ function pa(e) {
3342
3342
  return typeof e == "string";
3343
3343
  }
3344
- function ha(e, t, n) {
3344
+ function ma(e, t, n) {
3345
3345
  let r = e.children[n];
3346
3346
  e.insertBefore(t, r);
3347
3347
  }
3348
- function ga(e) {
3348
+ function ha(e) {
3349
3349
  e.parentNode && e.parentNode.removeChild(e);
3350
3350
  }
3351
- function _a(e, t = document) {
3351
+ function ga(e, t = document) {
3352
3352
  let n = null;
3353
- return n = typeof t?.querySelector == "function" ? (t?.querySelector)?.call(t, e) : document.querySelector(e), n || oa(`Element not found: ${e}`), n;
3353
+ return n = typeof t?.querySelector == "function" ? (t?.querySelector)?.call(t, e) : document.querySelector(e), n || aa(`Element not found: ${e}`), n;
3354
3354
  }
3355
- function va(e, t, n = null) {
3355
+ function _a(e, t, n = null) {
3356
3356
  return function(...r) {
3357
3357
  return e.apply(n, r), t.apply(n, r);
3358
3358
  };
3359
3359
  }
3360
- function ya(e, t) {
3361
- let n = ra({}, e);
3360
+ function va(e, t) {
3361
+ let n = na({}, e);
3362
3362
  return Object.keys(t).forEach((r) => {
3363
- n[r] ? n[r] = va(e[r], t[r]) : n[r] = t[r];
3363
+ n[r] ? n[r] = _a(e[r], t[r]) : n[r] = t[r];
3364
3364
  }), n;
3365
3365
  }
3366
- function ba(e) {
3366
+ function ya(e) {
3367
3367
  return e instanceof HTMLElement;
3368
3368
  }
3369
- function xa(e, t) {
3369
+ function ba(e, t) {
3370
3370
  Object.keys(e).forEach((n) => {
3371
3371
  t(n, e[n]);
3372
3372
  });
3373
3373
  }
3374
- function Sa(e) {
3374
+ function xa(e) {
3375
3375
  return e.charCodeAt(0) === 111 && e.charCodeAt(1) === 110 && (e.charCodeAt(2) > 122 || e.charCodeAt(2) < 97);
3376
3376
  }
3377
- var Ca = Object.assign;
3378
- function wa(e, t) {
3377
+ var Sa = Object.assign;
3378
+ function Ca(e, t) {
3379
3379
  var n = Object.keys(e);
3380
3380
  if (Object.getOwnPropertySymbols) {
3381
3381
  var r = Object.getOwnPropertySymbols(e);
@@ -3385,26 +3385,26 @@ function wa(e, t) {
3385
3385
  }
3386
3386
  return n;
3387
3387
  }
3388
- function Ta(e) {
3388
+ function wa(e) {
3389
3389
  for (var t = 1; t < arguments.length; t++) {
3390
3390
  var n = arguments[t] == null ? {} : arguments[t];
3391
- t % 2 ? wa(Object(n), !0).forEach(function(t) {
3392
- Da(e, t, n[t]);
3393
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : wa(Object(n)).forEach(function(t) {
3391
+ t % 2 ? Ca(Object(n), !0).forEach(function(t) {
3392
+ Ea(e, t, n[t]);
3393
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : Ca(Object(n)).forEach(function(t) {
3394
3394
  Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
3395
3395
  });
3396
3396
  }
3397
3397
  return e;
3398
3398
  }
3399
- function Ea(e) {
3399
+ function Ta(e) {
3400
3400
  "@babel/helpers - typeof";
3401
- return Ea = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
3401
+ return Ta = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
3402
3402
  return typeof e;
3403
3403
  } : function(e) {
3404
3404
  return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
3405
- }, Ea(e);
3405
+ }, Ta(e);
3406
3406
  }
3407
- function Da(e, t, n) {
3407
+ function Ea(e, t, n) {
3408
3408
  return t in e ? Object.defineProperty(e, t, {
3409
3409
  value: n,
3410
3410
  enumerable: !0,
@@ -3412,45 +3412,45 @@ function Da(e, t, n) {
3412
3412
  writable: !0
3413
3413
  }) : e[t] = n, e;
3414
3414
  }
3415
- function Oa() {
3416
- return Oa = Object.assign || function(e) {
3415
+ function Da() {
3416
+ return Da = Object.assign || function(e) {
3417
3417
  for (var t = 1; t < arguments.length; t++) {
3418
3418
  var n = arguments[t];
3419
3419
  for (var r in n) Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]);
3420
3420
  }
3421
3421
  return e;
3422
- }, Oa.apply(this, arguments);
3422
+ }, Da.apply(this, arguments);
3423
3423
  }
3424
- function ka(e, t) {
3424
+ function Oa(e, t) {
3425
3425
  if (e == null) return {};
3426
3426
  var n = {}, r = Object.keys(e), i, a;
3427
3427
  for (a = 0; a < r.length; a++) i = r[a], !(t.indexOf(i) >= 0) && (n[i] = e[i]);
3428
3428
  return n;
3429
3429
  }
3430
- function Aa(e, t) {
3430
+ function ka(e, t) {
3431
3431
  if (e == null) return {};
3432
- var n = ka(e, t), r, i;
3432
+ var n = Oa(e, t), r, i;
3433
3433
  if (Object.getOwnPropertySymbols) {
3434
3434
  var a = Object.getOwnPropertySymbols(e);
3435
3435
  for (i = 0; i < a.length; i++) r = a[i], !(t.indexOf(r) >= 0) && Object.prototype.propertyIsEnumerable.call(e, r) && (n[r] = e[r]);
3436
3436
  }
3437
3437
  return n;
3438
3438
  }
3439
- var ja = "1.15.2";
3440
- function Ma(e) {
3439
+ var Aa = "1.15.2";
3440
+ function ja(e) {
3441
3441
  if (typeof window < "u" && window.navigator) return !!/* @__PURE__ */ navigator.userAgent.match(e);
3442
3442
  }
3443
- var Na = Ma(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i), Pa = Ma(/Edge/i), Fa = Ma(/firefox/i), Ia = Ma(/safari/i) && !Ma(/chrome/i) && !Ma(/android/i), La = Ma(/iP(ad|od|hone)/i), Ra = Ma(/chrome/i) && Ma(/android/i), za = {
3443
+ var Ma = ja(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i), Na = ja(/Edge/i), Pa = ja(/firefox/i), Fa = ja(/safari/i) && !ja(/chrome/i) && !ja(/android/i), Ia = ja(/iP(ad|od|hone)/i), La = ja(/chrome/i) && ja(/android/i), Ra = {
3444
3444
  capture: !1,
3445
3445
  passive: !1
3446
3446
  };
3447
3447
  function G(e, t, n) {
3448
- e.addEventListener(t, n, !Na && za);
3448
+ e.addEventListener(t, n, !Ma && Ra);
3449
3449
  }
3450
3450
  function K(e, t, n) {
3451
- e.removeEventListener(t, n, !Na && za);
3451
+ e.removeEventListener(t, n, !Ma && Ra);
3452
3452
  }
3453
- function Ba(e, t) {
3453
+ function za(e, t) {
3454
3454
  if (t) {
3455
3455
  if (t[0] === ">" && (t = t.substring(1)), e) try {
3456
3456
  if (e.matches) return e.matches(t);
@@ -3462,22 +3462,22 @@ function Ba(e, t) {
3462
3462
  return !1;
3463
3463
  }
3464
3464
  }
3465
- function Va(e) {
3465
+ function Ba(e) {
3466
3466
  return e.host && e !== document && e.host.nodeType ? e.host : e.parentNode;
3467
3467
  }
3468
- function Ha(e, t, n, r) {
3468
+ function Va(e, t, n, r) {
3469
3469
  if (e) {
3470
3470
  n ||= document;
3471
3471
  do {
3472
- if (t != null && (t[0] === ">" ? e.parentNode === n && Ba(e, t) : Ba(e, t)) || r && e === n) return e;
3472
+ if (t != null && (t[0] === ">" ? e.parentNode === n && za(e, t) : za(e, t)) || r && e === n) return e;
3473
3473
  if (e === n) break;
3474
- } while (e = Va(e));
3474
+ } while (e = Ba(e));
3475
3475
  }
3476
3476
  return null;
3477
3477
  }
3478
- var Ua = /\s+/g;
3479
- function Wa(e, t, n) {
3480
- e && t && (e.classList ? e.classList[n ? "add" : "remove"](t) : e.className = ((" " + e.className + " ").replace(Ua, " ").replace(" " + t + " ", " ") + (n ? " " + t : "")).replace(Ua, " "));
3478
+ var Ha = /\s+/g;
3479
+ function Ua(e, t, n) {
3480
+ e && t && (e.classList ? e.classList[n ? "add" : "remove"](t) : e.className = ((" " + e.className + " ").replace(Ha, " ").replace(" " + t + " ", " ") + (n ? " " + t : "")).replace(Ha, " "));
3481
3481
  }
3482
3482
  function q(e, t, n) {
3483
3483
  var r = e && e.style;
@@ -3486,7 +3486,7 @@ function q(e, t, n) {
3486
3486
  !(t in r) && t.indexOf("webkit") === -1 && (t = "-webkit-" + t), r[t] = n + (typeof n == "string" ? "" : "px");
3487
3487
  }
3488
3488
  }
3489
- function Ga(e, t) {
3489
+ function Wa(e, t) {
3490
3490
  var n = "";
3491
3491
  if (typeof e == "string") n = e;
3492
3492
  else do {
@@ -3496,7 +3496,7 @@ function Ga(e, t) {
3496
3496
  var i = window.DOMMatrix || window.WebKitCSSMatrix || window.CSSMatrix || window.MSCSSMatrix;
3497
3497
  return i && new i(n);
3498
3498
  }
3499
- function Ka(e, t, n) {
3499
+ function Ga(e, t, n) {
3500
3500
  if (e) {
3501
3501
  var r = e.getElementsByTagName(t), i = 0, a = r.length;
3502
3502
  if (n) for (; i < a; i++) n(r[i], i);
@@ -3504,13 +3504,13 @@ function Ka(e, t, n) {
3504
3504
  }
3505
3505
  return [];
3506
3506
  }
3507
- function qa() {
3507
+ function Ka() {
3508
3508
  return document.scrollingElement || document.documentElement;
3509
3509
  }
3510
- function Ja(e, t, n, r, i) {
3510
+ function qa(e, t, n, r, i) {
3511
3511
  if (!(!e.getBoundingClientRect && e !== window)) {
3512
3512
  var a, o, s, c, l, u, d;
3513
- if (e !== window && e.parentNode && e !== qa() ? (a = e.getBoundingClientRect(), o = a.top, s = a.left, c = a.bottom, l = a.right, u = a.height, d = a.width) : (o = 0, s = 0, c = window.innerHeight, l = window.innerWidth, u = window.innerHeight, d = window.innerWidth), (t || n) && e !== window && (i ||= e.parentNode, !Na)) do
3513
+ if (e !== window && e.parentNode && e !== Ka() ? (a = e.getBoundingClientRect(), o = a.top, s = a.left, c = a.bottom, l = a.right, u = a.height, d = a.width) : (o = 0, s = 0, c = window.innerHeight, l = window.innerWidth, u = window.innerHeight, d = window.innerWidth), (t || n) && e !== window && (i ||= e.parentNode, !Ma)) do
3514
3514
  if (i && i.getBoundingClientRect && (q(i, "transform") !== "none" || n && q(i, "position") !== "static")) {
3515
3515
  var f = i.getBoundingClientRect();
3516
3516
  o -= f.top + parseInt(q(i, "border-top-width")), s -= f.left + parseInt(q(i, "border-left-width")), c = o + a.height, l = s + a.width;
@@ -3518,7 +3518,7 @@ function Ja(e, t, n, r, i) {
3518
3518
  }
3519
3519
  while (i = i.parentNode);
3520
3520
  if (r && e !== window) {
3521
- var p = Ga(i || e), m = p && p.a, h = p && p.d;
3521
+ var p = Wa(i || e), m = p && p.a, h = p && p.d;
3522
3522
  p && (o /= h, s /= m, d /= m, u /= h, c = o + u, l = s + d);
3523
3523
  }
3524
3524
  return {
@@ -3531,18 +3531,18 @@ function Ja(e, t, n, r, i) {
3531
3531
  };
3532
3532
  }
3533
3533
  }
3534
- function Ya(e, t, n) {
3535
- for (var r = to(e, !0), i = Ja(e)[t]; r;) {
3536
- var a = Ja(r)[n], o = void 0;
3534
+ function Ja(e, t, n) {
3535
+ for (var r = eo(e, !0), i = qa(e)[t]; r;) {
3536
+ var a = qa(r)[n], o = void 0;
3537
3537
  if (o = i >= a, !o) return r;
3538
- if (r === qa()) break;
3539
- r = to(r, !1);
3538
+ if (r === Ka()) break;
3539
+ r = eo(r, !1);
3540
3540
  }
3541
3541
  return !1;
3542
3542
  }
3543
- function Xa(e, t, n, r) {
3543
+ function Ya(e, t, n, r) {
3544
3544
  for (var i = 0, a = 0, o = e.children; a < o.length;) {
3545
- if (o[a].style.display !== "none" && o[a] !== $.ghost && (r || o[a] !== $.dragged) && Ha(o[a], n.draggable, e, !1)) {
3545
+ if (o[a].style.display !== "none" && o[a] !== $.ghost && (r || o[a] !== $.dragged) && Va(o[a], n.draggable, e, !1)) {
3546
3546
  if (i === t) return o[a];
3547
3547
  i++;
3548
3548
  }
@@ -3550,84 +3550,84 @@ function Xa(e, t, n, r) {
3550
3550
  }
3551
3551
  return null;
3552
3552
  }
3553
- function Za(e, t) {
3554
- for (var n = e.lastElementChild; n && (n === $.ghost || q(n, "display") === "none" || t && !Ba(n, t));) n = n.previousElementSibling;
3553
+ function Xa(e, t) {
3554
+ for (var n = e.lastElementChild; n && (n === $.ghost || q(n, "display") === "none" || t && !za(n, t));) n = n.previousElementSibling;
3555
3555
  return n || null;
3556
3556
  }
3557
- function Qa(e, t) {
3557
+ function Za(e, t) {
3558
3558
  var n = 0;
3559
3559
  if (!e || !e.parentNode) return -1;
3560
- for (; e = e.previousElementSibling;) e.nodeName.toUpperCase() !== "TEMPLATE" && e !== $.clone && (!t || Ba(e, t)) && n++;
3560
+ for (; e = e.previousElementSibling;) e.nodeName.toUpperCase() !== "TEMPLATE" && e !== $.clone && (!t || za(e, t)) && n++;
3561
3561
  return n;
3562
3562
  }
3563
- function $a(e) {
3564
- var t = 0, n = 0, r = qa();
3563
+ function Qa(e) {
3564
+ var t = 0, n = 0, r = Ka();
3565
3565
  if (e) do {
3566
- var i = Ga(e), a = i.a, o = i.d;
3566
+ var i = Wa(e), a = i.a, o = i.d;
3567
3567
  t += e.scrollLeft * a, n += e.scrollTop * o;
3568
3568
  } while (e !== r && (e = e.parentNode));
3569
3569
  return [t, n];
3570
3570
  }
3571
- function eo(e, t) {
3571
+ function $a(e, t) {
3572
3572
  for (var n in e) if (e.hasOwnProperty(n)) {
3573
3573
  for (var r in t) if (t.hasOwnProperty(r) && t[r] === e[n][r]) return Number(n);
3574
3574
  }
3575
3575
  return -1;
3576
3576
  }
3577
- function to(e, t) {
3578
- if (!e || !e.getBoundingClientRect) return qa();
3577
+ function eo(e, t) {
3578
+ if (!e || !e.getBoundingClientRect) return Ka();
3579
3579
  var n = e, r = !1;
3580
3580
  do
3581
3581
  if (n.clientWidth < n.scrollWidth || n.clientHeight < n.scrollHeight) {
3582
3582
  var i = q(n);
3583
3583
  if (n.clientWidth < n.scrollWidth && (i.overflowX == "auto" || i.overflowX == "scroll") || n.clientHeight < n.scrollHeight && (i.overflowY == "auto" || i.overflowY == "scroll")) {
3584
- if (!n.getBoundingClientRect || n === document.body) return qa();
3584
+ if (!n.getBoundingClientRect || n === document.body) return Ka();
3585
3585
  if (r || t) return n;
3586
3586
  r = !0;
3587
3587
  }
3588
3588
  }
3589
3589
  while (n = n.parentNode);
3590
- return qa();
3590
+ return Ka();
3591
3591
  }
3592
- function no(e, t) {
3592
+ function to(e, t) {
3593
3593
  if (e && t) for (var n in t) t.hasOwnProperty(n) && (e[n] = t[n]);
3594
3594
  return e;
3595
3595
  }
3596
- function ro(e, t) {
3596
+ function no(e, t) {
3597
3597
  return Math.round(e.top) === Math.round(t.top) && Math.round(e.left) === Math.round(t.left) && Math.round(e.height) === Math.round(t.height) && Math.round(e.width) === Math.round(t.width);
3598
3598
  }
3599
- var io;
3600
- function ao(e, t) {
3599
+ var ro;
3600
+ function io(e, t) {
3601
3601
  return function() {
3602
- if (!io) {
3602
+ if (!ro) {
3603
3603
  var n = arguments, r = this;
3604
- n.length === 1 ? e.call(r, n[0]) : e.apply(r, n), io = setTimeout(function() {
3605
- io = void 0;
3604
+ n.length === 1 ? e.call(r, n[0]) : e.apply(r, n), ro = setTimeout(function() {
3605
+ ro = void 0;
3606
3606
  }, t);
3607
3607
  }
3608
3608
  };
3609
3609
  }
3610
- function oo() {
3611
- clearTimeout(io), io = void 0;
3610
+ function ao() {
3611
+ clearTimeout(ro), ro = void 0;
3612
3612
  }
3613
- function so(e, t, n) {
3613
+ function oo(e, t, n) {
3614
3614
  e.scrollLeft += t, e.scrollTop += n;
3615
3615
  }
3616
- function co(e) {
3616
+ function so(e) {
3617
3617
  var t = window.Polymer, n = window.jQuery || window.Zepto;
3618
3618
  return t && t.dom ? t.dom(e).cloneNode(!0) : n ? n(e).clone(!0)[0] : e.cloneNode(!0);
3619
3619
  }
3620
- function lo(e, t, n) {
3620
+ function co(e, t, n) {
3621
3621
  var r = {};
3622
3622
  return Array.from(e.children).forEach(function(i) {
3623
- if (!(!Ha(i, t.draggable, e, !1) || i.animated || i === n)) {
3624
- var a = Ja(i);
3623
+ if (!(!Va(i, t.draggable, e, !1) || i.animated || i === n)) {
3624
+ var a = qa(i);
3625
3625
  r.left = Math.min(r.left ?? Infinity, a.left), r.top = Math.min(r.top ?? Infinity, a.top), r.right = Math.max(r.right ?? -Infinity, a.right), r.bottom = Math.max(r.bottom ?? -Infinity, a.bottom);
3626
3626
  }
3627
3627
  }), r.width = r.right - r.left, r.height = r.bottom - r.top, r.x = r.left, r.y = r.top, r;
3628
3628
  }
3629
- var uo = "Sortable" + (/* @__PURE__ */ new Date()).getTime();
3630
- function fo() {
3629
+ var lo = "Sortable" + (/* @__PURE__ */ new Date()).getTime();
3630
+ function uo() {
3631
3631
  var e = [], t;
3632
3632
  return {
3633
3633
  captureAnimationState: function() {
@@ -3635,11 +3635,11 @@ function fo() {
3635
3635
  if (q(t, "display") !== "none" && t !== $.ghost) {
3636
3636
  e.push({
3637
3637
  target: t,
3638
- rect: Ja(t)
3638
+ rect: qa(t)
3639
3639
  });
3640
- var n = Ta({}, e[e.length - 1].rect);
3640
+ var n = wa({}, e[e.length - 1].rect);
3641
3641
  if (t.thisAnimationDuration) {
3642
- var r = Ga(t, !0);
3642
+ var r = Wa(t, !0);
3643
3643
  r && (n.top -= r.f, n.left -= r.e);
3644
3644
  }
3645
3645
  t.fromRect = n;
@@ -3650,7 +3650,7 @@ function fo() {
3650
3650
  e.push(t);
3651
3651
  },
3652
3652
  removeAnimationState: function(t) {
3653
- e.splice(eo(e, { target: t }), 1);
3653
+ e.splice($a(e, { target: t }), 1);
3654
3654
  },
3655
3655
  animateAll: function(n) {
3656
3656
  var r = this;
@@ -3660,8 +3660,8 @@ function fo() {
3660
3660
  }
3661
3661
  var i = !1, a = 0;
3662
3662
  e.forEach(function(e) {
3663
- var t = 0, n = e.target, o = n.fromRect, s = Ja(n), c = n.prevFromRect, l = n.prevToRect, u = e.rect, d = Ga(n, !0);
3664
- d && (s.top -= d.f, s.left -= d.e), n.toRect = s, n.thisAnimationDuration && ro(c, s) && !ro(o, s) && (u.top - s.top) / (u.left - s.left) === (o.top - s.top) / (o.left - s.left) && (t = mo(u, c, l, r.options)), ro(s, o) || (n.prevFromRect = o, n.prevToRect = s, t ||= r.options.animation, r.animate(n, u, s, t)), t && (i = !0, a = Math.max(a, t), clearTimeout(n.animationResetTimer), n.animationResetTimer = setTimeout(function() {
3663
+ var t = 0, n = e.target, o = n.fromRect, s = qa(n), c = n.prevFromRect, l = n.prevToRect, u = e.rect, d = Wa(n, !0);
3664
+ d && (s.top -= d.f, s.left -= d.e), n.toRect = s, n.thisAnimationDuration && no(c, s) && !no(o, s) && (u.top - s.top) / (u.left - s.left) === (o.top - s.top) / (o.left - s.left) && (t = po(u, c, l, r.options)), no(s, o) || (n.prevFromRect = o, n.prevToRect = s, t ||= r.options.animation, r.animate(n, u, s, t)), t && (i = !0, a = Math.max(a, t), clearTimeout(n.animationResetTimer), n.animationResetTimer = setTimeout(function() {
3665
3665
  n.animationTime = 0, n.prevFromRect = null, n.fromRect = null, n.prevToRect = null, n.thisAnimationDuration = null;
3666
3666
  }, t), n.thisAnimationDuration = t);
3667
3667
  }), clearTimeout(t), i ? t = setTimeout(function() {
@@ -3671,26 +3671,26 @@ function fo() {
3671
3671
  animate: function(e, t, n, r) {
3672
3672
  if (r) {
3673
3673
  q(e, "transition", ""), q(e, "transform", "");
3674
- var i = Ga(this.el), a = i && i.a, o = i && i.d, s = (t.left - n.left) / (a || 1), c = (t.top - n.top) / (o || 1);
3675
- e.animatingX = !!s, e.animatingY = !!c, q(e, "transform", "translate3d(" + s + "px," + c + "px,0)"), this.forRepaintDummy = po(e), q(e, "transition", "transform " + r + "ms" + (this.options.easing ? " " + this.options.easing : "")), q(e, "transform", "translate3d(0,0,0)"), typeof e.animated == "number" && clearTimeout(e.animated), e.animated = setTimeout(function() {
3674
+ var i = Wa(this.el), a = i && i.a, o = i && i.d, s = (t.left - n.left) / (a || 1), c = (t.top - n.top) / (o || 1);
3675
+ e.animatingX = !!s, e.animatingY = !!c, q(e, "transform", "translate3d(" + s + "px," + c + "px,0)"), this.forRepaintDummy = fo(e), q(e, "transition", "transform " + r + "ms" + (this.options.easing ? " " + this.options.easing : "")), q(e, "transform", "translate3d(0,0,0)"), typeof e.animated == "number" && clearTimeout(e.animated), e.animated = setTimeout(function() {
3676
3676
  q(e, "transition", ""), q(e, "transform", ""), e.animated = !1, e.animatingX = !1, e.animatingY = !1;
3677
3677
  }, r);
3678
3678
  }
3679
3679
  }
3680
3680
  };
3681
3681
  }
3682
- function po(e) {
3682
+ function fo(e) {
3683
3683
  return e.offsetWidth;
3684
3684
  }
3685
- function mo(e, t, n, r) {
3685
+ function po(e, t, n, r) {
3686
3686
  return Math.sqrt((t.top - e.top) ** 2 + (t.left - e.left) ** 2) / Math.sqrt((t.top - n.top) ** 2 + (t.left - n.left) ** 2) * r.animation;
3687
3687
  }
3688
- var ho = [], go = { initializeByDefault: !0 }, _o = {
3688
+ var mo = [], ho = { initializeByDefault: !0 }, go = {
3689
3689
  mount: function(e) {
3690
- for (var t in go) go.hasOwnProperty(t) && !(t in e) && (e[t] = go[t]);
3691
- ho.forEach(function(t) {
3690
+ for (var t in ho) ho.hasOwnProperty(t) && !(t in e) && (e[t] = ho[t]);
3691
+ mo.forEach(function(t) {
3692
3692
  if (t.pluginName === e.pluginName) throw `Sortable: Cannot mount plugin ${e.pluginName} more than once`;
3693
- }), ho.push(e);
3693
+ }), mo.push(e);
3694
3694
  },
3695
3695
  pluginEvent: function(e, t, n) {
3696
3696
  var r = this;
@@ -3698,16 +3698,16 @@ var ho = [], go = { initializeByDefault: !0 }, _o = {
3698
3698
  r.eventCanceled = !0;
3699
3699
  };
3700
3700
  var i = e + "Global";
3701
- ho.forEach(function(r) {
3702
- t[r.pluginName] && (t[r.pluginName][i] && t[r.pluginName][i](Ta({ sortable: t }, n)), t.options[r.pluginName] && t[r.pluginName][e] && t[r.pluginName][e](Ta({ sortable: t }, n)));
3701
+ mo.forEach(function(r) {
3702
+ t[r.pluginName] && (t[r.pluginName][i] && t[r.pluginName][i](wa({ sortable: t }, n)), t.options[r.pluginName] && t[r.pluginName][e] && t[r.pluginName][e](wa({ sortable: t }, n)));
3703
3703
  });
3704
3704
  },
3705
3705
  initializePlugins: function(e, t, n, r) {
3706
- for (var i in ho.forEach(function(r) {
3706
+ for (var i in mo.forEach(function(r) {
3707
3707
  var i = r.pluginName;
3708
3708
  if (!(!e.options[i] && !r.initializeByDefault)) {
3709
3709
  var a = new r(e, t, e.options);
3710
- a.sortable = e, a.options = e.options, e[i] = a, Oa(n, a.defaults);
3710
+ a.sortable = e, a.options = e.options, e[i] = a, Da(n, a.defaults);
3711
3711
  }
3712
3712
  }), e.options) if (e.options.hasOwnProperty(i)) {
3713
3713
  var a = this.modifyOption(e, i, e.options[i]);
@@ -3716,59 +3716,59 @@ var ho = [], go = { initializeByDefault: !0 }, _o = {
3716
3716
  },
3717
3717
  getEventProperties: function(e, t) {
3718
3718
  var n = {};
3719
- return ho.forEach(function(r) {
3720
- typeof r.eventProperties == "function" && Oa(n, r.eventProperties.call(t[r.pluginName], e));
3719
+ return mo.forEach(function(r) {
3720
+ typeof r.eventProperties == "function" && Da(n, r.eventProperties.call(t[r.pluginName], e));
3721
3721
  }), n;
3722
3722
  },
3723
3723
  modifyOption: function(e, t, n) {
3724
3724
  var r;
3725
- return ho.forEach(function(i) {
3725
+ return mo.forEach(function(i) {
3726
3726
  e[i.pluginName] && i.optionListeners && typeof i.optionListeners[t] == "function" && (r = i.optionListeners[t].call(e[i.pluginName], n));
3727
3727
  }), r;
3728
3728
  }
3729
3729
  };
3730
- function vo(e) {
3730
+ function _o(e) {
3731
3731
  var t = e.sortable, n = e.rootEl, r = e.name, i = e.targetEl, a = e.cloneEl, o = e.toEl, s = e.fromEl, c = e.oldIndex, l = e.newIndex, u = e.oldDraggableIndex, d = e.newDraggableIndex, f = e.originalEvent, p = e.putSortable, m = e.extraEventProperties;
3732
- if (t ||= n && n[uo], t) {
3732
+ if (t ||= n && n[lo], t) {
3733
3733
  var h, g = t.options, _ = "on" + r.charAt(0).toUpperCase() + r.substr(1);
3734
- window.CustomEvent && !Na && !Pa ? h = new CustomEvent(r, {
3734
+ window.CustomEvent && !Ma && !Na ? h = new CustomEvent(r, {
3735
3735
  bubbles: !0,
3736
3736
  cancelable: !0
3737
3737
  }) : (h = document.createEvent("Event"), h.initEvent(r, !0, !0)), h.to = o || n, h.from = s || n, h.item = i || n, h.clone = a, h.oldIndex = c, h.newIndex = l, h.oldDraggableIndex = u, h.newDraggableIndex = d, h.originalEvent = f, h.pullMode = p ? p.lastPutMode : void 0;
3738
- var v = Ta(Ta({}, m), _o.getEventProperties(r, t));
3738
+ var v = wa(wa({}, m), go.getEventProperties(r, t));
3739
3739
  for (var y in v) h[y] = v[y];
3740
3740
  n && n.dispatchEvent(h), g[_] && g[_].call(t, h);
3741
3741
  }
3742
3742
  }
3743
- var yo = ["evt"], bo = function(e, t) {
3744
- var n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, r = n.evt, i = Aa(n, yo);
3745
- _o.pluginEvent.bind($)(e, t, Ta({
3743
+ var vo = ["evt"], yo = function(e, t) {
3744
+ var n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, r = n.evt, i = ka(n, vo);
3745
+ go.pluginEvent.bind($)(e, t, wa({
3746
3746
  dragEl: J,
3747
3747
  parentEl: Y,
3748
3748
  ghostEl: X,
3749
3749
  rootEl: Z,
3750
- nextEl: So,
3751
- lastDownEl: Co,
3750
+ nextEl: xo,
3751
+ lastDownEl: So,
3752
3752
  cloneEl: Q,
3753
- cloneHidden: wo,
3754
- dragStarted: Bo,
3755
- putSortable: Ao,
3753
+ cloneHidden: Co,
3754
+ dragStarted: zo,
3755
+ putSortable: ko,
3756
3756
  activeSortable: $.active,
3757
3757
  originalEvent: r,
3758
- oldIndex: To,
3759
- oldDraggableIndex: Do,
3760
- newIndex: Eo,
3761
- newDraggableIndex: Oo,
3762
- hideGhostForTarget: as,
3763
- unhideGhostForTarget: os,
3758
+ oldIndex: wo,
3759
+ oldDraggableIndex: Eo,
3760
+ newIndex: To,
3761
+ newDraggableIndex: Do,
3762
+ hideGhostForTarget: is,
3763
+ unhideGhostForTarget: as,
3764
3764
  cloneNowHidden: function() {
3765
- wo = !0;
3765
+ Co = !0;
3766
3766
  },
3767
3767
  cloneNowShown: function() {
3768
- wo = !1;
3768
+ Co = !1;
3769
3769
  },
3770
3770
  dispatchSortableEvent: function(e) {
3771
- xo({
3771
+ bo({
3772
3772
  sortable: t,
3773
3773
  name: e,
3774
3774
  originalEvent: r
@@ -3776,46 +3776,46 @@ var yo = ["evt"], bo = function(e, t) {
3776
3776
  }
3777
3777
  }, i));
3778
3778
  };
3779
- function xo(e) {
3780
- vo(Ta({
3781
- putSortable: Ao,
3779
+ function bo(e) {
3780
+ _o(wa({
3781
+ putSortable: ko,
3782
3782
  cloneEl: Q,
3783
3783
  targetEl: J,
3784
3784
  rootEl: Z,
3785
- oldIndex: To,
3786
- oldDraggableIndex: Do,
3787
- newIndex: Eo,
3788
- newDraggableIndex: Oo
3785
+ oldIndex: wo,
3786
+ oldDraggableIndex: Eo,
3787
+ newIndex: To,
3788
+ newDraggableIndex: Do
3789
3789
  }, e));
3790
3790
  }
3791
- var J, Y, X, Z, So, Co, Q, wo, To, Eo, Do, Oo, ko, Ao, jo = !1, Mo = !1, No = [], Po, Fo, Io, Lo, Ro, zo, Bo, Vo, Ho, Uo = !1, Wo = !1, Go, Ko, qo = [], Jo = !1, Yo = [], Xo = typeof document < "u", Zo = La, Qo = Pa || Na ? "cssFloat" : "float", $o = Xo && !Ra && !La && "draggable" in document.createElement("div"), es = function() {
3792
- if (Xo) {
3793
- if (Na) return !1;
3791
+ var J, Y, X, Z, xo, So, Q, Co, wo, To, Eo, Do, Oo, ko, Ao = !1, jo = !1, Mo = [], No, Po, Fo, Io, Lo, Ro, zo, Bo, Vo, Ho = !1, Uo = !1, Wo, Go, Ko = [], qo = !1, Jo = [], Yo = typeof document < "u", Xo = Ia, Zo = Na || Ma ? "cssFloat" : "float", Qo = Yo && !La && !Ia && "draggable" in document.createElement("div"), $o = function() {
3792
+ if (Yo) {
3793
+ if (Ma) return !1;
3794
3794
  var e = document.createElement("x");
3795
3795
  return e.style.cssText = "pointer-events:auto", e.style.pointerEvents === "auto";
3796
3796
  }
3797
- }(), ts = function(e, t) {
3798
- var n = q(e), r = parseInt(n.width) - parseInt(n.paddingLeft) - parseInt(n.paddingRight) - parseInt(n.borderLeftWidth) - parseInt(n.borderRightWidth), i = Xa(e, 0, t), a = Xa(e, 1, t), o = i && q(i), s = a && q(a), c = o && parseInt(o.marginLeft) + parseInt(o.marginRight) + Ja(i).width, l = s && parseInt(s.marginLeft) + parseInt(s.marginRight) + Ja(a).width;
3797
+ }(), es = function(e, t) {
3798
+ var n = q(e), r = parseInt(n.width) - parseInt(n.paddingLeft) - parseInt(n.paddingRight) - parseInt(n.borderLeftWidth) - parseInt(n.borderRightWidth), i = Ya(e, 0, t), a = Ya(e, 1, t), o = i && q(i), s = a && q(a), c = o && parseInt(o.marginLeft) + parseInt(o.marginRight) + qa(i).width, l = s && parseInt(s.marginLeft) + parseInt(s.marginRight) + qa(a).width;
3799
3799
  if (n.display === "flex") return n.flexDirection === "column" || n.flexDirection === "column-reverse" ? "vertical" : "horizontal";
3800
3800
  if (n.display === "grid") return n.gridTemplateColumns.split(" ").length <= 1 ? "vertical" : "horizontal";
3801
3801
  if (i && o.float && o.float !== "none") {
3802
3802
  var u = o.float === "left" ? "left" : "right";
3803
3803
  return a && (s.clear === "both" || s.clear === u) ? "vertical" : "horizontal";
3804
3804
  }
3805
- return i && (o.display === "block" || o.display === "flex" || o.display === "table" || o.display === "grid" || c >= r && n[Qo] === "none" || a && n[Qo] === "none" && c + l > r) ? "vertical" : "horizontal";
3806
- }, ns = function(e, t, n) {
3805
+ return i && (o.display === "block" || o.display === "flex" || o.display === "table" || o.display === "grid" || c >= r && n[Zo] === "none" || a && n[Zo] === "none" && c + l > r) ? "vertical" : "horizontal";
3806
+ }, ts = function(e, t, n) {
3807
3807
  var r = n ? e.left : e.top, i = n ? e.right : e.bottom, a = n ? e.width : e.height, o = n ? t.left : t.top, s = n ? t.right : t.bottom, c = n ? t.width : t.height;
3808
3808
  return r === o || i === s || r + a / 2 === o + c / 2;
3809
- }, rs = function(e, t) {
3809
+ }, ns = function(e, t) {
3810
3810
  var n;
3811
- return No.some(function(r) {
3812
- var i = r[uo].options.emptyInsertThreshold;
3813
- if (!(!i || Za(r))) {
3814
- var a = Ja(r), o = e >= a.left - i && e <= a.right + i, s = t >= a.top - i && t <= a.bottom + i;
3811
+ return Mo.some(function(r) {
3812
+ var i = r[lo].options.emptyInsertThreshold;
3813
+ if (!(!i || Xa(r))) {
3814
+ var a = qa(r), o = e >= a.left - i && e <= a.right + i, s = t >= a.top - i && t <= a.bottom + i;
3815
3815
  if (o && s) return n = r;
3816
3816
  }
3817
3817
  }), n;
3818
- }, is = function(e) {
3818
+ }, rs = function(e) {
3819
3819
  function t(e, n) {
3820
3820
  return function(r, i, a, o) {
3821
3821
  var s = r.options.group.name && i.options.group.name && r.options.group.name === i.options.group.name;
@@ -3828,31 +3828,31 @@ var J, Y, X, Z, So, Co, Q, wo, To, Eo, Do, Oo, ko, Ao, jo = !1, Mo = !1, No = []
3828
3828
  };
3829
3829
  }
3830
3830
  var n = {}, r = e.group;
3831
- (!r || Ea(r) != "object") && (r = { name: r }), n.name = r.name, n.checkPull = t(r.pull, !0), n.checkPut = t(r.put), n.revertClone = r.revertClone, e.group = n;
3831
+ (!r || Ta(r) != "object") && (r = { name: r }), n.name = r.name, n.checkPull = t(r.pull, !0), n.checkPut = t(r.put), n.revertClone = r.revertClone, e.group = n;
3832
+ }, is = function() {
3833
+ !$o && X && q(X, "display", "none");
3832
3834
  }, as = function() {
3833
- !es && X && q(X, "display", "none");
3834
- }, os = function() {
3835
- !es && X && q(X, "display", "");
3835
+ !$o && X && q(X, "display", "");
3836
3836
  };
3837
- Xo && !Ra && document.addEventListener("click", function(e) {
3838
- if (Mo) return e.preventDefault(), e.stopPropagation && e.stopPropagation(), e.stopImmediatePropagation && e.stopImmediatePropagation(), Mo = !1, !1;
3837
+ Yo && !La && document.addEventListener("click", function(e) {
3838
+ if (jo) return e.preventDefault(), e.stopPropagation && e.stopPropagation(), e.stopImmediatePropagation && e.stopImmediatePropagation(), jo = !1, !1;
3839
3839
  }, !0);
3840
- var ss = function(e) {
3840
+ var os = function(e) {
3841
3841
  if (J) {
3842
3842
  e = e.touches ? e.touches[0] : e;
3843
- var t = rs(e.clientX, e.clientY);
3843
+ var t = ns(e.clientX, e.clientY);
3844
3844
  if (t) {
3845
3845
  var n = {};
3846
3846
  for (var r in e) e.hasOwnProperty(r) && (n[r] = e[r]);
3847
- n.target = n.rootEl = t, n.preventDefault = void 0, n.stopPropagation = void 0, t[uo]._onDragOver(n);
3847
+ n.target = n.rootEl = t, n.preventDefault = void 0, n.stopPropagation = void 0, t[lo]._onDragOver(n);
3848
3848
  }
3849
3849
  }
3850
- }, cs = function(e) {
3851
- J && J.parentNode[uo]._isOutsideThisEl(e.target);
3850
+ }, ss = function(e) {
3851
+ J && J.parentNode[lo]._isOutsideThisEl(e.target);
3852
3852
  };
3853
3853
  function $(e, t) {
3854
3854
  if (!(e && e.nodeType && e.nodeType === 1)) throw `Sortable: \`el\` must be an HTMLElement, not ${{}.toString.call(e)}`;
3855
- this.el = e, this.options = t = Oa({}, t), e[uo] = this;
3855
+ this.el = e, this.options = t = Da({}, t), e[lo] = this;
3856
3856
  var n = {
3857
3857
  group: null,
3858
3858
  sort: !0,
@@ -3865,7 +3865,7 @@ function $(e, t) {
3865
3865
  invertedSwapThreshold: null,
3866
3866
  removeCloneOnHide: !0,
3867
3867
  direction: function() {
3868
- return ts(e, this.options);
3868
+ return es(e, this.options);
3869
3869
  },
3870
3870
  ghostClass: "sortable-ghost",
3871
3871
  chosenClass: "sortable-chosen",
@@ -3892,17 +3892,17 @@ function $(e, t) {
3892
3892
  x: 0,
3893
3893
  y: 0
3894
3894
  },
3895
- supportPointer: $.supportPointer !== !1 && "PointerEvent" in window && !Ia,
3895
+ supportPointer: $.supportPointer !== !1 && "PointerEvent" in window && !Fa,
3896
3896
  emptyInsertThreshold: 5
3897
3897
  };
3898
- for (var r in _o.initializePlugins(this, e, n), n) !(r in t) && (t[r] = n[r]);
3899
- for (var i in is(t), this) i.charAt(0) === "_" && typeof this[i] == "function" && (this[i] = this[i].bind(this));
3900
- this.nativeDraggable = !t.forceFallback && $o, this.nativeDraggable && (this.options.touchStartThreshold = 1), t.supportPointer ? G(e, "pointerdown", this._onTapStart) : (G(e, "mousedown", this._onTapStart), G(e, "touchstart", this._onTapStart)), this.nativeDraggable && (G(e, "dragover", this), G(e, "dragenter", this)), No.push(this.el), t.store && t.store.get && this.sort(t.store.get(this) || []), Oa(this, fo());
3898
+ for (var r in go.initializePlugins(this, e, n), n) !(r in t) && (t[r] = n[r]);
3899
+ for (var i in rs(t), this) i.charAt(0) === "_" && typeof this[i] == "function" && (this[i] = this[i].bind(this));
3900
+ this.nativeDraggable = !t.forceFallback && Qo, this.nativeDraggable && (this.options.touchStartThreshold = 1), t.supportPointer ? G(e, "pointerdown", this._onTapStart) : (G(e, "mousedown", this._onTapStart), G(e, "touchstart", this._onTapStart)), this.nativeDraggable && (G(e, "dragover", this), G(e, "dragenter", this)), Mo.push(this.el), t.store && t.store.get && this.sort(t.store.get(this) || []), Da(this, uo());
3901
3901
  }
3902
3902
  $.prototype = {
3903
3903
  constructor: $,
3904
3904
  _isOutsideThisEl: function(e) {
3905
- !this.el.contains(e) && e !== this.el && (Vo = null);
3905
+ !this.el.contains(e) && e !== this.el && (Bo = null);
3906
3906
  },
3907
3907
  _getDirection: function(e, t) {
3908
3908
  return typeof this.options.direction == "function" ? this.options.direction.call(this, e, t, J) : this.options.direction;
@@ -3910,57 +3910,57 @@ $.prototype = {
3910
3910
  _onTapStart: function(e) {
3911
3911
  if (e.cancelable) {
3912
3912
  var t = this, n = this.el, r = this.options, i = r.preventOnFilter, a = e.type, o = e.touches && e.touches[0] || e.pointerType && e.pointerType === "touch" && e, s = (o || e).target, c = e.target.shadowRoot && (e.path && e.path[0] || e.composedPath && e.composedPath()[0]) || s, l = r.filter;
3913
- if (vs(n), !J && !(/mousedown|pointerdown/.test(a) && e.button !== 0 || r.disabled) && !c.isContentEditable && !(!this.nativeDraggable && Ia && s && s.tagName.toUpperCase() === "SELECT") && (s = Ha(s, r.draggable, n, !1), !(s && s.animated) && Co !== s)) {
3914
- if (To = Qa(s), Do = Qa(s, r.draggable), typeof l == "function") {
3913
+ if (_s(n), !J && !(/mousedown|pointerdown/.test(a) && e.button !== 0 || r.disabled) && !c.isContentEditable && !(!this.nativeDraggable && Fa && s && s.tagName.toUpperCase() === "SELECT") && (s = Va(s, r.draggable, n, !1), !(s && s.animated) && So !== s)) {
3914
+ if (wo = Za(s), Eo = Za(s, r.draggable), typeof l == "function") {
3915
3915
  if (l.call(this, e, s, this)) {
3916
- xo({
3916
+ bo({
3917
3917
  sortable: t,
3918
3918
  rootEl: c,
3919
3919
  name: "filter",
3920
3920
  targetEl: s,
3921
3921
  toEl: n,
3922
3922
  fromEl: n
3923
- }), bo("filter", t, { evt: e }), i && e.cancelable && e.preventDefault();
3923
+ }), yo("filter", t, { evt: e }), i && e.cancelable && e.preventDefault();
3924
3924
  return;
3925
3925
  }
3926
3926
  } else if (l && (l = l.split(",").some(function(r) {
3927
- if (r = Ha(c, r.trim(), n, !1), r) return xo({
3927
+ if (r = Va(c, r.trim(), n, !1), r) return bo({
3928
3928
  sortable: t,
3929
3929
  rootEl: r,
3930
3930
  name: "filter",
3931
3931
  targetEl: s,
3932
3932
  fromEl: n,
3933
3933
  toEl: n
3934
- }), bo("filter", t, { evt: e }), !0;
3934
+ }), yo("filter", t, { evt: e }), !0;
3935
3935
  }), l)) {
3936
3936
  i && e.cancelable && e.preventDefault();
3937
3937
  return;
3938
3938
  }
3939
- r.handle && !Ha(c, r.handle, n, !1) || this._prepareDragStart(e, o, s);
3939
+ r.handle && !Va(c, r.handle, n, !1) || this._prepareDragStart(e, o, s);
3940
3940
  }
3941
3941
  }
3942
3942
  },
3943
3943
  _prepareDragStart: function(e, t, n) {
3944
3944
  var r = this, i = r.el, a = r.options, o = i.ownerDocument, s;
3945
3945
  if (n && !J && n.parentNode === i) {
3946
- var c = Ja(n);
3947
- if (Z = i, J = n, Y = J.parentNode, So = J.nextSibling, Co = n, ko = a.group, $.dragged = J, Po = {
3946
+ var c = qa(n);
3947
+ if (Z = i, J = n, Y = J.parentNode, xo = J.nextSibling, So = n, Oo = a.group, $.dragged = J, No = {
3948
3948
  target: J,
3949
3949
  clientX: (t || e).clientX,
3950
3950
  clientY: (t || e).clientY
3951
- }, Ro = Po.clientX - c.left, zo = Po.clientY - c.top, this._lastX = (t || e).clientX, this._lastY = (t || e).clientY, J.style["will-change"] = "all", s = function() {
3952
- if (bo("delayEnded", r, { evt: e }), $.eventCanceled) {
3951
+ }, Lo = No.clientX - c.left, Ro = No.clientY - c.top, this._lastX = (t || e).clientX, this._lastY = (t || e).clientY, J.style["will-change"] = "all", s = function() {
3952
+ if (yo("delayEnded", r, { evt: e }), $.eventCanceled) {
3953
3953
  r._onDrop();
3954
3954
  return;
3955
3955
  }
3956
- r._disableDelayedDragEvents(), !Fa && r.nativeDraggable && (J.draggable = !0), r._triggerDragStart(e, t), xo({
3956
+ r._disableDelayedDragEvents(), !Pa && r.nativeDraggable && (J.draggable = !0), r._triggerDragStart(e, t), bo({
3957
3957
  sortable: r,
3958
3958
  name: "choose",
3959
3959
  originalEvent: e
3960
- }), Wa(J, a.chosenClass, !0);
3960
+ }), Ua(J, a.chosenClass, !0);
3961
3961
  }, a.ignore.split(",").forEach(function(e) {
3962
- Ka(J, e.trim(), ds);
3963
- }), G(o, "dragover", ss), G(o, "mousemove", ss), G(o, "touchmove", ss), G(o, "mouseup", r._onDrop), G(o, "touchend", r._onDrop), G(o, "touchcancel", r._onDrop), Fa && this.nativeDraggable && (this.options.touchStartThreshold = 4, J.draggable = !0), bo("delayStart", this, { evt: e }), a.delay && (!a.delayOnTouchOnly || t) && (!this.nativeDraggable || !(Pa || Na))) {
3962
+ Ga(J, e.trim(), us);
3963
+ }), G(o, "dragover", os), G(o, "mousemove", os), G(o, "touchmove", os), G(o, "mouseup", r._onDrop), G(o, "touchend", r._onDrop), G(o, "touchcancel", r._onDrop), Pa && this.nativeDraggable && (this.options.touchStartThreshold = 4, J.draggable = !0), yo("delayStart", this, { evt: e }), a.delay && (!a.delayOnTouchOnly || t) && (!this.nativeDraggable || !(Na || Ma))) {
3964
3964
  if ($.eventCanceled) {
3965
3965
  this._onDrop();
3966
3966
  return;
@@ -3974,7 +3974,7 @@ $.prototype = {
3974
3974
  Math.max(Math.abs(t.clientX - this._lastX), Math.abs(t.clientY - this._lastY)) >= Math.floor(this.options.touchStartThreshold / (this.nativeDraggable && window.devicePixelRatio || 1)) && this._disableDelayedDrag();
3975
3975
  },
3976
3976
  _disableDelayedDrag: function() {
3977
- J && ds(J), clearTimeout(this._dragStartTimer), this._disableDelayedDragEvents();
3977
+ J && us(J), clearTimeout(this._dragStartTimer), this._disableDelayedDragEvents();
3978
3978
  },
3979
3979
  _disableDelayedDragEvents: function() {
3980
3980
  var e = this.el.ownerDocument;
@@ -3983,16 +3983,16 @@ $.prototype = {
3983
3983
  _triggerDragStart: function(e, t) {
3984
3984
  t ||= e.pointerType == "touch" && e, !this.nativeDraggable || t ? this.options.supportPointer ? G(document, "pointermove", this._onTouchMove) : t ? G(document, "touchmove", this._onTouchMove) : G(document, "mousemove", this._onTouchMove) : (G(J, "dragend", this), G(Z, "dragstart", this._onDragStart));
3985
3985
  try {
3986
- document.selection ? ys(function() {
3986
+ document.selection ? vs(function() {
3987
3987
  document.selection.empty();
3988
3988
  }) : window.getSelection().removeAllRanges();
3989
3989
  } catch {}
3990
3990
  },
3991
3991
  _dragStarted: function(e, t) {
3992
- if (jo = !1, Z && J) {
3993
- bo("dragStarted", this, { evt: t }), this.nativeDraggable && G(document, "dragover", cs);
3992
+ if (Ao = !1, Z && J) {
3993
+ yo("dragStarted", this, { evt: t }), this.nativeDraggable && G(document, "dragover", ss);
3994
3994
  var n = this.options;
3995
- !e && Wa(J, n.dragClass, !1), Wa(J, n.ghostClass, !0), $.active = this, e && this._appendGhost(), xo({
3995
+ !e && Ua(J, n.dragClass, !1), Ua(J, n.ghostClass, !0), $.active = this, e && this._appendGhost(), bo({
3996
3996
  sortable: this,
3997
3997
  name: "start",
3998
3998
  originalEvent: t
@@ -4000,33 +4000,33 @@ $.prototype = {
4000
4000
  } else this._nulling();
4001
4001
  },
4002
4002
  _emulateDragOver: function() {
4003
- if (Fo) {
4004
- this._lastX = Fo.clientX, this._lastY = Fo.clientY, as();
4005
- for (var e = document.elementFromPoint(Fo.clientX, Fo.clientY), t = e; e && e.shadowRoot && (e = e.shadowRoot.elementFromPoint(Fo.clientX, Fo.clientY), e !== t);) t = e;
4006
- if (J.parentNode[uo]._isOutsideThisEl(e), t) do {
4007
- if (t[uo]) {
4003
+ if (Po) {
4004
+ this._lastX = Po.clientX, this._lastY = Po.clientY, is();
4005
+ for (var e = document.elementFromPoint(Po.clientX, Po.clientY), t = e; e && e.shadowRoot && (e = e.shadowRoot.elementFromPoint(Po.clientX, Po.clientY), e !== t);) t = e;
4006
+ if (J.parentNode[lo]._isOutsideThisEl(e), t) do {
4007
+ if (t[lo]) {
4008
4008
  var n = void 0;
4009
- if (n = t[uo]._onDragOver({
4010
- clientX: Fo.clientX,
4011
- clientY: Fo.clientY,
4009
+ if (n = t[lo]._onDragOver({
4010
+ clientX: Po.clientX,
4011
+ clientY: Po.clientY,
4012
4012
  target: e,
4013
4013
  rootEl: t
4014
4014
  }), n && !this.options.dragoverBubble) break;
4015
4015
  }
4016
4016
  e = t;
4017
4017
  } while (t = t.parentNode);
4018
- os();
4018
+ as();
4019
4019
  }
4020
4020
  },
4021
4021
  _onTouchMove: function(e) {
4022
- if (Po) {
4023
- var t = this.options, n = t.fallbackTolerance, r = t.fallbackOffset, i = e.touches ? e.touches[0] : e, a = X && Ga(X, !0), o = X && a && a.a, s = X && a && a.d, c = Zo && Ko && $a(Ko), l = (i.clientX - Po.clientX + r.x) / (o || 1) + (c ? c[0] - qo[0] : 0) / (o || 1), u = (i.clientY - Po.clientY + r.y) / (s || 1) + (c ? c[1] - qo[1] : 0) / (s || 1);
4024
- if (!$.active && !jo) {
4022
+ if (No) {
4023
+ var t = this.options, n = t.fallbackTolerance, r = t.fallbackOffset, i = e.touches ? e.touches[0] : e, a = X && Wa(X, !0), o = X && a && a.a, s = X && a && a.d, c = Xo && Go && Qa(Go), l = (i.clientX - No.clientX + r.x) / (o || 1) + (c ? c[0] - Ko[0] : 0) / (o || 1), u = (i.clientY - No.clientY + r.y) / (s || 1) + (c ? c[1] - Ko[1] : 0) / (s || 1);
4024
+ if (!$.active && !Ao) {
4025
4025
  if (n && Math.max(Math.abs(i.clientX - this._lastX), Math.abs(i.clientY - this._lastY)) < n) return;
4026
4026
  this._onDragStart(e, !0);
4027
4027
  }
4028
4028
  if (X) {
4029
- a ? (a.e += l - (Io || 0), a.f += u - (Lo || 0)) : a = {
4029
+ a ? (a.e += l - (Fo || 0), a.f += u - (Io || 0)) : a = {
4030
4030
  a: 1,
4031
4031
  b: 0,
4032
4032
  c: 0,
@@ -4035,39 +4035,39 @@ $.prototype = {
4035
4035
  f: u
4036
4036
  };
4037
4037
  var d = `matrix(${a.a},${a.b},${a.c},${a.d},${a.e},${a.f})`;
4038
- q(X, "webkitTransform", d), q(X, "mozTransform", d), q(X, "msTransform", d), q(X, "transform", d), Io = l, Lo = u, Fo = i;
4038
+ q(X, "webkitTransform", d), q(X, "mozTransform", d), q(X, "msTransform", d), q(X, "transform", d), Fo = l, Io = u, Po = i;
4039
4039
  }
4040
4040
  e.cancelable && e.preventDefault();
4041
4041
  }
4042
4042
  },
4043
4043
  _appendGhost: function() {
4044
4044
  if (!X) {
4045
- var e = this.options.fallbackOnBody ? document.body : Z, t = Ja(J, !0, Zo, !0, e), n = this.options;
4046
- if (Zo) {
4047
- for (Ko = e; q(Ko, "position") === "static" && q(Ko, "transform") === "none" && Ko !== document;) Ko = Ko.parentNode;
4048
- Ko !== document.body && Ko !== document.documentElement ? (Ko === document && (Ko = qa()), t.top += Ko.scrollTop, t.left += Ko.scrollLeft) : Ko = qa(), qo = $a(Ko);
4045
+ var e = this.options.fallbackOnBody ? document.body : Z, t = qa(J, !0, Xo, !0, e), n = this.options;
4046
+ if (Xo) {
4047
+ for (Go = e; q(Go, "position") === "static" && q(Go, "transform") === "none" && Go !== document;) Go = Go.parentNode;
4048
+ Go !== document.body && Go !== document.documentElement ? (Go === document && (Go = Ka()), t.top += Go.scrollTop, t.left += Go.scrollLeft) : Go = Ka(), Ko = Qa(Go);
4049
4049
  }
4050
- X = J.cloneNode(!0), Wa(X, n.ghostClass, !1), Wa(X, n.fallbackClass, !0), Wa(X, n.dragClass, !0), q(X, "transition", ""), q(X, "transform", ""), q(X, "box-sizing", "border-box"), q(X, "margin", 0), q(X, "top", t.top), q(X, "left", t.left), q(X, "width", t.width), q(X, "height", t.height), q(X, "opacity", "0.8"), q(X, "position", Zo ? "absolute" : "fixed"), q(X, "zIndex", "100000"), q(X, "pointerEvents", "none"), $.ghost = X, e.appendChild(X), q(X, "transform-origin", Ro / parseInt(X.style.width) * 100 + "% " + zo / parseInt(X.style.height) * 100 + "%");
4050
+ X = J.cloneNode(!0), Ua(X, n.ghostClass, !1), Ua(X, n.fallbackClass, !0), Ua(X, n.dragClass, !0), q(X, "transition", ""), q(X, "transform", ""), q(X, "box-sizing", "border-box"), q(X, "margin", 0), q(X, "top", t.top), q(X, "left", t.left), q(X, "width", t.width), q(X, "height", t.height), q(X, "opacity", "0.8"), q(X, "position", Xo ? "absolute" : "fixed"), q(X, "zIndex", "100000"), q(X, "pointerEvents", "none"), $.ghost = X, e.appendChild(X), q(X, "transform-origin", Lo / parseInt(X.style.width) * 100 + "% " + Ro / parseInt(X.style.height) * 100 + "%");
4051
4051
  }
4052
4052
  },
4053
4053
  _onDragStart: function(e, t) {
4054
4054
  var n = this, r = e.dataTransfer, i = n.options;
4055
- if (bo("dragStart", this, { evt: e }), $.eventCanceled) {
4055
+ if (yo("dragStart", this, { evt: e }), $.eventCanceled) {
4056
4056
  this._onDrop();
4057
4057
  return;
4058
4058
  }
4059
- bo("setupClone", this), $.eventCanceled || (Q = co(J), Q.removeAttribute("id"), Q.draggable = !1, Q.style["will-change"] = "", this._hideClone(), Wa(Q, this.options.chosenClass, !1), $.clone = Q), n.cloneId = ys(function() {
4060
- bo("clone", n), !$.eventCanceled && (n.options.removeCloneOnHide || Z.insertBefore(Q, J), n._hideClone(), xo({
4059
+ yo("setupClone", this), $.eventCanceled || (Q = so(J), Q.removeAttribute("id"), Q.draggable = !1, Q.style["will-change"] = "", this._hideClone(), Ua(Q, this.options.chosenClass, !1), $.clone = Q), n.cloneId = vs(function() {
4060
+ yo("clone", n), !$.eventCanceled && (n.options.removeCloneOnHide || Z.insertBefore(Q, J), n._hideClone(), bo({
4061
4061
  sortable: n,
4062
4062
  name: "clone"
4063
4063
  }));
4064
- }), !t && Wa(J, i.dragClass, !0), t ? (Mo = !0, n._loopId = setInterval(n._emulateDragOver, 50)) : (K(document, "mouseup", n._onDrop), K(document, "touchend", n._onDrop), K(document, "touchcancel", n._onDrop), r && (r.effectAllowed = "move", i.setData && i.setData.call(n, r, J)), G(document, "drop", n), q(J, "transform", "translateZ(0)")), jo = !0, n._dragStartId = ys(n._dragStarted.bind(n, t, e)), G(document, "selectstart", n), Bo = !0, Ia && q(document.body, "user-select", "none");
4064
+ }), !t && Ua(J, i.dragClass, !0), t ? (jo = !0, n._loopId = setInterval(n._emulateDragOver, 50)) : (K(document, "mouseup", n._onDrop), K(document, "touchend", n._onDrop), K(document, "touchcancel", n._onDrop), r && (r.effectAllowed = "move", i.setData && i.setData.call(n, r, J)), G(document, "drop", n), q(J, "transform", "translateZ(0)")), Ao = !0, n._dragStartId = vs(n._dragStarted.bind(n, t, e)), G(document, "selectstart", n), zo = !0, Fa && q(document.body, "user-select", "none");
4065
4065
  },
4066
4066
  _onDragOver: function(e) {
4067
- var t = this.el, n = e.target, r, i, a, o = this.options, s = o.group, c = $.active, l = ko === s, u = o.sort, d = Ao || c, f, p = this, m = !1;
4068
- if (Jo) return;
4067
+ var t = this.el, n = e.target, r, i, a, o = this.options, s = o.group, c = $.active, l = Oo === s, u = o.sort, d = ko || c, f, p = this, m = !1;
4068
+ if (qo) return;
4069
4069
  function h(o, s) {
4070
- bo(o, p, Ta({
4070
+ yo(o, p, wa({
4071
4071
  evt: e,
4072
4072
  isOwner: l,
4073
4073
  axis: f ? "vertical" : "horizontal",
@@ -4079,7 +4079,7 @@ $.prototype = {
4079
4079
  target: n,
4080
4080
  completed: _,
4081
4081
  onMove: function(n, i) {
4082
- return us(Z, t, J, r, n, Ja(n), e, i);
4082
+ return ls(Z, t, J, r, n, qa(n), e, i);
4083
4083
  },
4084
4084
  changed: v
4085
4085
  }, s));
@@ -4088,50 +4088,50 @@ $.prototype = {
4088
4088
  h("dragOverAnimationCapture"), p.captureAnimationState(), p !== d && d.captureAnimationState();
4089
4089
  }
4090
4090
  function _(r) {
4091
- return h("dragOverCompleted", { insertion: r }), r && (l ? c._hideClone() : c._showClone(p), p !== d && (Wa(J, Ao ? Ao.options.ghostClass : c.options.ghostClass, !1), Wa(J, o.ghostClass, !0)), Ao !== p && p !== $.active ? Ao = p : p === $.active && Ao && (Ao = null), d === p && (p._ignoreWhileAnimating = n), p.animateAll(function() {
4091
+ return h("dragOverCompleted", { insertion: r }), r && (l ? c._hideClone() : c._showClone(p), p !== d && (Ua(J, ko ? ko.options.ghostClass : c.options.ghostClass, !1), Ua(J, o.ghostClass, !0)), ko !== p && p !== $.active ? ko = p : p === $.active && ko && (ko = null), d === p && (p._ignoreWhileAnimating = n), p.animateAll(function() {
4092
4092
  h("dragOverAnimationComplete"), p._ignoreWhileAnimating = null;
4093
- }), p !== d && (d.animateAll(), d._ignoreWhileAnimating = null)), (n === J && !J.animated || n === t && !n.animated) && (Vo = null), !o.dragoverBubble && !e.rootEl && n !== document && (J.parentNode[uo]._isOutsideThisEl(e.target), !r && ss(e)), !o.dragoverBubble && e.stopPropagation && e.stopPropagation(), m = !0;
4093
+ }), p !== d && (d.animateAll(), d._ignoreWhileAnimating = null)), (n === J && !J.animated || n === t && !n.animated) && (Bo = null), !o.dragoverBubble && !e.rootEl && n !== document && (J.parentNode[lo]._isOutsideThisEl(e.target), !r && os(e)), !o.dragoverBubble && e.stopPropagation && e.stopPropagation(), m = !0;
4094
4094
  }
4095
4095
  function v() {
4096
- Eo = Qa(J), Oo = Qa(J, o.draggable), xo({
4096
+ To = Za(J), Do = Za(J, o.draggable), bo({
4097
4097
  sortable: p,
4098
4098
  name: "change",
4099
4099
  toEl: t,
4100
- newIndex: Eo,
4101
- newDraggableIndex: Oo,
4100
+ newIndex: To,
4101
+ newDraggableIndex: Do,
4102
4102
  originalEvent: e
4103
4103
  });
4104
4104
  }
4105
- if (e.preventDefault !== void 0 && e.cancelable && e.preventDefault(), n = Ha(n, o.draggable, t, !0), h("dragOver"), $.eventCanceled) return m;
4105
+ if (e.preventDefault !== void 0 && e.cancelable && e.preventDefault(), n = Va(n, o.draggable, t, !0), h("dragOver"), $.eventCanceled) return m;
4106
4106
  if (J.contains(e.target) || n.animated && n.animatingX && n.animatingY || p._ignoreWhileAnimating === n) return _(!1);
4107
- if (Mo = !1, c && !o.disabled && (l ? u || (a = Y !== Z) : Ao === this || (this.lastPutMode = ko.checkPull(this, c, J, e)) && s.checkPut(this, c, J, e))) {
4108
- if (f = this._getDirection(e, n) === "vertical", r = Ja(J), h("dragOverValid"), $.eventCanceled) return m;
4109
- if (a) return Y = Z, g(), this._hideClone(), h("revert"), $.eventCanceled || (So ? Z.insertBefore(J, So) : Z.appendChild(J)), _(!0);
4110
- var y = Za(t, o.draggable);
4111
- if (!y || ms(e, f, this) && !y.animated) {
4107
+ if (jo = !1, c && !o.disabled && (l ? u || (a = Y !== Z) : ko === this || (this.lastPutMode = Oo.checkPull(this, c, J, e)) && s.checkPut(this, c, J, e))) {
4108
+ if (f = this._getDirection(e, n) === "vertical", r = qa(J), h("dragOverValid"), $.eventCanceled) return m;
4109
+ if (a) return Y = Z, g(), this._hideClone(), h("revert"), $.eventCanceled || (xo ? Z.insertBefore(J, xo) : Z.appendChild(J)), _(!0);
4110
+ var y = Xa(t, o.draggable);
4111
+ if (!y || ps(e, f, this) && !y.animated) {
4112
4112
  if (y === J) return _(!1);
4113
- if (y && t === e.target && (n = y), n && (i = Ja(n)), us(Z, t, J, r, n, i, e, !!n) !== !1) return g(), y && y.nextSibling ? t.insertBefore(J, y.nextSibling) : t.appendChild(J), Y = t, v(), _(!0);
4114
- } else if (y && ps(e, f, this)) {
4115
- var b = Xa(t, 0, o, !0);
4113
+ if (y && t === e.target && (n = y), n && (i = qa(n)), ls(Z, t, J, r, n, i, e, !!n) !== !1) return g(), y && y.nextSibling ? t.insertBefore(J, y.nextSibling) : t.appendChild(J), Y = t, v(), _(!0);
4114
+ } else if (y && fs(e, f, this)) {
4115
+ var b = Ya(t, 0, o, !0);
4116
4116
  if (b === J) return _(!1);
4117
- if (n = b, i = Ja(n), us(Z, t, J, r, n, i, e, !1) !== !1) return g(), t.insertBefore(J, b), Y = t, v(), _(!0);
4117
+ if (n = b, i = qa(n), ls(Z, t, J, r, n, i, e, !1) !== !1) return g(), t.insertBefore(J, b), Y = t, v(), _(!0);
4118
4118
  } else if (n.parentNode === t) {
4119
- i = Ja(n);
4120
- var x = 0, S, ee = J.parentNode !== t, C = !ns(J.animated && J.toRect || r, n.animated && n.toRect || i, f), te = f ? "top" : "left", ne = Ya(n, "top", "top") || Ya(J, "top", "top"), re = ne ? ne.scrollTop : void 0;
4121
- Vo !== n && (S = i[te], Uo = !1, Wo = !C && o.invertSwap || ee), x = hs(e, n, i, f, C ? 1 : o.swapThreshold, o.invertedSwapThreshold == null ? o.swapThreshold : o.invertedSwapThreshold, Wo, Vo === n);
4119
+ i = qa(n);
4120
+ var x = 0, S, ee = J.parentNode !== t, C = !ts(J.animated && J.toRect || r, n.animated && n.toRect || i, f), te = f ? "top" : "left", ne = Ja(n, "top", "top") || Ja(J, "top", "top"), re = ne ? ne.scrollTop : void 0;
4121
+ Bo !== n && (S = i[te], Ho = !1, Uo = !C && o.invertSwap || ee), x = ms(e, n, i, f, C ? 1 : o.swapThreshold, o.invertedSwapThreshold == null ? o.swapThreshold : o.invertedSwapThreshold, Uo, Bo === n);
4122
4122
  var ie;
4123
4123
  if (x !== 0) {
4124
- var ae = Qa(J);
4124
+ var ae = Za(J);
4125
4125
  do
4126
4126
  ae -= x, ie = Y.children[ae];
4127
4127
  while (ie && (q(ie, "display") === "none" || ie === X));
4128
4128
  }
4129
4129
  if (x === 0 || ie === n) return _(!1);
4130
- Vo = n, Ho = x;
4130
+ Bo = n, Vo = x;
4131
4131
  var w = n.nextElementSibling, oe = !1;
4132
4132
  oe = x === 1;
4133
- var se = us(Z, t, J, r, n, i, e, oe);
4134
- if (se !== !1) return (se === 1 || se === -1) && (oe = se === 1), Jo = !0, setTimeout(fs, 30), g(), oe && !w ? t.appendChild(J) : n.parentNode.insertBefore(J, oe ? w : n), ne && so(ne, 0, re - ne.scrollTop), Y = J.parentNode, S !== void 0 && !Wo && (Go = Math.abs(S - Ja(n)[te])), v(), _(!0);
4133
+ var se = ls(Z, t, J, r, n, i, e, oe);
4134
+ if (se !== !1) return (se === 1 || se === -1) && (oe = se === 1), qo = !0, setTimeout(ds, 30), g(), oe && !w ? t.appendChild(J) : n.parentNode.insertBefore(J, oe ? w : n), ne && oo(ne, 0, re - ne.scrollTop), Y = J.parentNode, S !== void 0 && !Uo && (Wo = Math.abs(S - qa(n)[te])), v(), _(!0);
4135
4135
  }
4136
4136
  if (t.contains(J)) return _(!1);
4137
4137
  }
@@ -4139,7 +4139,7 @@ $.prototype = {
4139
4139
  },
4140
4140
  _ignoreWhileAnimating: null,
4141
4141
  _offMoveEvents: function() {
4142
- K(document, "mousemove", this._onTouchMove), K(document, "touchmove", this._onTouchMove), K(document, "pointermove", this._onTouchMove), K(document, "dragover", ss), K(document, "mousemove", ss), K(document, "touchmove", ss);
4142
+ K(document, "mousemove", this._onTouchMove), K(document, "touchmove", this._onTouchMove), K(document, "pointermove", this._onTouchMove), K(document, "dragover", os), K(document, "mousemove", os), K(document, "touchmove", os);
4143
4143
  },
4144
4144
  _offUpEvents: function() {
4145
4145
  var e = this.el.ownerDocument;
@@ -4147,50 +4147,50 @@ $.prototype = {
4147
4147
  },
4148
4148
  _onDrop: function(e) {
4149
4149
  var t = this.el, n = this.options;
4150
- if (Eo = Qa(J), Oo = Qa(J, n.draggable), bo("drop", this, { evt: e }), Y = J && J.parentNode, Eo = Qa(J), Oo = Qa(J, n.draggable), $.eventCanceled) {
4150
+ if (To = Za(J), Do = Za(J, n.draggable), yo("drop", this, { evt: e }), Y = J && J.parentNode, To = Za(J), Do = Za(J, n.draggable), $.eventCanceled) {
4151
4151
  this._nulling();
4152
4152
  return;
4153
4153
  }
4154
- jo = !1, Wo = !1, Uo = !1, clearInterval(this._loopId), clearTimeout(this._dragStartTimer), bs(this.cloneId), bs(this._dragStartId), this.nativeDraggable && (K(document, "drop", this), K(t, "dragstart", this._onDragStart)), this._offMoveEvents(), this._offUpEvents(), Ia && q(document.body, "user-select", ""), q(J, "transform", ""), e && (Bo && (e.cancelable && e.preventDefault(), !n.dropBubble && e.stopPropagation()), X && X.parentNode && X.parentNode.removeChild(X), (Z === Y || Ao && Ao.lastPutMode !== "clone") && Q && Q.parentNode && Q.parentNode.removeChild(Q), J && (this.nativeDraggable && K(J, "dragend", this), ds(J), J.style["will-change"] = "", Bo && !jo && Wa(J, Ao ? Ao.options.ghostClass : this.options.ghostClass, !1), Wa(J, this.options.chosenClass, !1), xo({
4154
+ Ao = !1, Uo = !1, Ho = !1, clearInterval(this._loopId), clearTimeout(this._dragStartTimer), ys(this.cloneId), ys(this._dragStartId), this.nativeDraggable && (K(document, "drop", this), K(t, "dragstart", this._onDragStart)), this._offMoveEvents(), this._offUpEvents(), Fa && q(document.body, "user-select", ""), q(J, "transform", ""), e && (zo && (e.cancelable && e.preventDefault(), !n.dropBubble && e.stopPropagation()), X && X.parentNode && X.parentNode.removeChild(X), (Z === Y || ko && ko.lastPutMode !== "clone") && Q && Q.parentNode && Q.parentNode.removeChild(Q), J && (this.nativeDraggable && K(J, "dragend", this), us(J), J.style["will-change"] = "", zo && !Ao && Ua(J, ko ? ko.options.ghostClass : this.options.ghostClass, !1), Ua(J, this.options.chosenClass, !1), bo({
4155
4155
  sortable: this,
4156
4156
  name: "unchoose",
4157
4157
  toEl: Y,
4158
4158
  newIndex: null,
4159
4159
  newDraggableIndex: null,
4160
4160
  originalEvent: e
4161
- }), Z === Y ? Eo !== To && Eo >= 0 && (xo({
4161
+ }), Z === Y ? To !== wo && To >= 0 && (bo({
4162
4162
  sortable: this,
4163
4163
  name: "update",
4164
4164
  toEl: Y,
4165
4165
  originalEvent: e
4166
- }), xo({
4166
+ }), bo({
4167
4167
  sortable: this,
4168
4168
  name: "sort",
4169
4169
  toEl: Y,
4170
4170
  originalEvent: e
4171
- })) : (Eo >= 0 && (xo({
4171
+ })) : (To >= 0 && (bo({
4172
4172
  rootEl: Y,
4173
4173
  name: "add",
4174
4174
  toEl: Y,
4175
4175
  fromEl: Z,
4176
4176
  originalEvent: e
4177
- }), xo({
4177
+ }), bo({
4178
4178
  sortable: this,
4179
4179
  name: "remove",
4180
4180
  toEl: Y,
4181
4181
  originalEvent: e
4182
- }), xo({
4182
+ }), bo({
4183
4183
  rootEl: Y,
4184
4184
  name: "sort",
4185
4185
  toEl: Y,
4186
4186
  fromEl: Z,
4187
4187
  originalEvent: e
4188
- }), xo({
4188
+ }), bo({
4189
4189
  sortable: this,
4190
4190
  name: "sort",
4191
4191
  toEl: Y,
4192
4192
  originalEvent: e
4193
- })), Ao && Ao.save()), $.active && ((Eo == null || Eo === -1) && (Eo = To, Oo = Do), xo({
4193
+ })), ko && ko.save()), $.active && ((To == null || To === -1) && (To = wo, Do = Eo), bo({
4194
4194
  sortable: this,
4195
4195
  name: "end",
4196
4196
  toEl: Y,
@@ -4198,9 +4198,9 @@ $.prototype = {
4198
4198
  }), this.save()))), this._nulling();
4199
4199
  },
4200
4200
  _nulling: function() {
4201
- bo("nulling", this), Z = J = Y = X = So = Q = Co = wo = Po = Fo = Bo = Eo = Oo = To = Do = Vo = Ho = Ao = ko = $.dragged = $.ghost = $.clone = $.active = null, Yo.forEach(function(e) {
4201
+ yo("nulling", this), Z = J = Y = X = xo = Q = So = Co = No = Po = zo = To = Do = wo = Eo = Bo = Vo = ko = Oo = $.dragged = $.ghost = $.clone = $.active = null, Jo.forEach(function(e) {
4202
4202
  e.checked = !0;
4203
- }), Yo.length = Io = Lo = 0;
4203
+ }), Jo.length = Fo = Io = 0;
4204
4204
  },
4205
4205
  handleEvent: function(e) {
4206
4206
  switch (e.type) {
@@ -4210,20 +4210,20 @@ $.prototype = {
4210
4210
  break;
4211
4211
  case "dragenter":
4212
4212
  case "dragover":
4213
- J && (this._onDragOver(e), ls(e));
4213
+ J && (this._onDragOver(e), cs(e));
4214
4214
  break;
4215
4215
  case "selectstart": e.preventDefault();
4216
4216
  }
4217
4217
  },
4218
4218
  toArray: function() {
4219
- for (var e = [], t, n = this.el.children, r = 0, i = n.length, a = this.options; r < i; r++) t = n[r], Ha(t, a.draggable, this.el, !1) && e.push(t.getAttribute(a.dataIdAttr) || _s(t));
4219
+ for (var e = [], t, n = this.el.children, r = 0, i = n.length, a = this.options; r < i; r++) t = n[r], Va(t, a.draggable, this.el, !1) && e.push(t.getAttribute(a.dataIdAttr) || gs(t));
4220
4220
  return e;
4221
4221
  },
4222
4222
  sort: function(e, t) {
4223
4223
  var n = {}, r = this.el;
4224
4224
  this.toArray().forEach(function(e, t) {
4225
4225
  var i = r.children[t];
4226
- Ha(i, this.options.draggable, r, !1) && (n[e] = i);
4226
+ Va(i, this.options.draggable, r, !1) && (n[e] = i);
4227
4227
  }, this), t && this.captureAnimationState(), e.forEach(function(e) {
4228
4228
  n[e] && (r.removeChild(n[e]), r.appendChild(n[e]));
4229
4229
  }), t && this.animateAll();
@@ -4233,25 +4233,25 @@ $.prototype = {
4233
4233
  e && e.set && e.set(this);
4234
4234
  },
4235
4235
  closest: function(e, t) {
4236
- return Ha(e, t || this.options.draggable, this.el, !1);
4236
+ return Va(e, t || this.options.draggable, this.el, !1);
4237
4237
  },
4238
4238
  option: function(e, t) {
4239
4239
  var n = this.options;
4240
4240
  if (t === void 0) return n[e];
4241
- var r = _o.modifyOption(this, e, t);
4242
- n[e] = r === void 0 ? t : r, e === "group" && is(n);
4241
+ var r = go.modifyOption(this, e, t);
4242
+ n[e] = r === void 0 ? t : r, e === "group" && rs(n);
4243
4243
  },
4244
4244
  destroy: function() {
4245
- bo("destroy", this);
4245
+ yo("destroy", this);
4246
4246
  var e = this.el;
4247
- e[uo] = null, K(e, "mousedown", this._onTapStart), K(e, "touchstart", this._onTapStart), K(e, "pointerdown", this._onTapStart), this.nativeDraggable && (K(e, "dragover", this), K(e, "dragenter", this)), Array.prototype.forEach.call(e.querySelectorAll("[draggable]"), function(e) {
4247
+ e[lo] = null, K(e, "mousedown", this._onTapStart), K(e, "touchstart", this._onTapStart), K(e, "pointerdown", this._onTapStart), this.nativeDraggable && (K(e, "dragover", this), K(e, "dragenter", this)), Array.prototype.forEach.call(e.querySelectorAll("[draggable]"), function(e) {
4248
4248
  e.removeAttribute("draggable");
4249
- }), this._onDrop(), this._disableDelayedDragEvents(), No.splice(No.indexOf(this.el), 1), this.el = e = null;
4249
+ }), this._onDrop(), this._disableDelayedDragEvents(), Mo.splice(Mo.indexOf(this.el), 1), this.el = e = null;
4250
4250
  },
4251
4251
  _hideClone: function() {
4252
- if (!wo) {
4253
- if (bo("hideClone", this), $.eventCanceled) return;
4254
- q(Q, "display", "none"), this.options.removeCloneOnHide && Q.parentNode && Q.parentNode.removeChild(Q), wo = !0;
4252
+ if (!Co) {
4253
+ if (yo("hideClone", this), $.eventCanceled) return;
4254
+ q(Q, "display", "none"), this.options.removeCloneOnHide && Q.parentNode && Q.parentNode.removeChild(Q), Co = !0;
4255
4255
  }
4256
4256
  },
4257
4257
  _showClone: function(e) {
@@ -4259,99 +4259,99 @@ $.prototype = {
4259
4259
  this._hideClone();
4260
4260
  return;
4261
4261
  }
4262
- if (wo) {
4263
- if (bo("showClone", this), $.eventCanceled) return;
4264
- J.parentNode == Z && !this.options.group.revertClone ? Z.insertBefore(Q, J) : So ? Z.insertBefore(Q, So) : Z.appendChild(Q), this.options.group.revertClone && this.animate(J, Q), q(Q, "display", ""), wo = !1;
4262
+ if (Co) {
4263
+ if (yo("showClone", this), $.eventCanceled) return;
4264
+ J.parentNode == Z && !this.options.group.revertClone ? Z.insertBefore(Q, J) : xo ? Z.insertBefore(Q, xo) : Z.appendChild(Q), this.options.group.revertClone && this.animate(J, Q), q(Q, "display", ""), Co = !1;
4265
4265
  }
4266
4266
  }
4267
4267
  };
4268
- function ls(e) {
4268
+ function cs(e) {
4269
4269
  e.dataTransfer && (e.dataTransfer.dropEffect = "move"), e.cancelable && e.preventDefault();
4270
4270
  }
4271
- function us(e, t, n, r, i, a, o, s) {
4272
- var c, l = e[uo], u = l.options.onMove, d;
4273
- return window.CustomEvent && !Na && !Pa ? c = new CustomEvent("move", {
4271
+ function ls(e, t, n, r, i, a, o, s) {
4272
+ var c, l = e[lo], u = l.options.onMove, d;
4273
+ return window.CustomEvent && !Ma && !Na ? c = new CustomEvent("move", {
4274
4274
  bubbles: !0,
4275
4275
  cancelable: !0
4276
- }) : (c = document.createEvent("Event"), c.initEvent("move", !0, !0)), c.to = t, c.from = e, c.dragged = n, c.draggedRect = r, c.related = i || t, c.relatedRect = a || Ja(t), c.willInsertAfter = s, c.originalEvent = o, e.dispatchEvent(c), u && (d = u.call(l, c, o)), d;
4276
+ }) : (c = document.createEvent("Event"), c.initEvent("move", !0, !0)), c.to = t, c.from = e, c.dragged = n, c.draggedRect = r, c.related = i || t, c.relatedRect = a || qa(t), c.willInsertAfter = s, c.originalEvent = o, e.dispatchEvent(c), u && (d = u.call(l, c, o)), d;
4277
4277
  }
4278
- function ds(e) {
4278
+ function us(e) {
4279
4279
  e.draggable = !1;
4280
4280
  }
4281
- function fs() {
4282
- Jo = !1;
4281
+ function ds() {
4282
+ qo = !1;
4283
4283
  }
4284
- function ps(e, t, n) {
4285
- var r = Ja(Xa(n.el, 0, n.options, !0)), i = lo(n.el, n.options, X), a = 10;
4284
+ function fs(e, t, n) {
4285
+ var r = qa(Ya(n.el, 0, n.options, !0)), i = co(n.el, n.options, X), a = 10;
4286
4286
  return t ? e.clientX < i.left - a || e.clientY < r.top && e.clientX < r.right : e.clientY < i.top - a || e.clientY < r.bottom && e.clientX < r.left;
4287
4287
  }
4288
- function ms(e, t, n) {
4289
- var r = Ja(Za(n.el, n.options.draggable)), i = lo(n.el, n.options, X), a = 10;
4288
+ function ps(e, t, n) {
4289
+ var r = qa(Xa(n.el, n.options.draggable)), i = co(n.el, n.options, X), a = 10;
4290
4290
  return t ? e.clientX > i.right + a || e.clientY > r.bottom && e.clientX > r.left : e.clientY > i.bottom + a || e.clientX > r.right && e.clientY > r.top;
4291
4291
  }
4292
- function hs(e, t, n, r, i, a, o, s) {
4292
+ function ms(e, t, n, r, i, a, o, s) {
4293
4293
  var c = r ? e.clientY : e.clientX, l = r ? n.height : n.width, u = r ? n.top : n.left, d = r ? n.bottom : n.right, f = !1;
4294
4294
  if (!o) {
4295
- if (s && Go < l * i) {
4296
- if (!Uo && (Ho === 1 ? c > u + l * a / 2 : c < d - l * a / 2) && (Uo = !0), Uo) f = !0;
4297
- else if (Ho === 1 ? c < u + Go : c > d - Go) return -Ho;
4298
- } else if (c > u + l * (1 - i) / 2 && c < d - l * (1 - i) / 2) return gs(t);
4295
+ if (s && Wo < l * i) {
4296
+ if (!Ho && (Vo === 1 ? c > u + l * a / 2 : c < d - l * a / 2) && (Ho = !0), Ho) f = !0;
4297
+ else if (Vo === 1 ? c < u + Wo : c > d - Wo) return -Vo;
4298
+ } else if (c > u + l * (1 - i) / 2 && c < d - l * (1 - i) / 2) return hs(t);
4299
4299
  }
4300
4300
  return f ||= o, f && (c < u + l * a / 2 || c > d - l * a / 2) ? c > u + l / 2 ? 1 : -1 : 0;
4301
4301
  }
4302
- function gs(e) {
4303
- return Qa(J) < Qa(e) ? 1 : -1;
4302
+ function hs(e) {
4303
+ return Za(J) < Za(e) ? 1 : -1;
4304
4304
  }
4305
- function _s(e) {
4305
+ function gs(e) {
4306
4306
  for (var t = e.tagName + e.className + e.src + e.href + e.textContent, n = t.length, r = 0; n--;) r += t.charCodeAt(n);
4307
4307
  return r.toString(36);
4308
4308
  }
4309
- function vs(e) {
4310
- Yo.length = 0;
4309
+ function _s(e) {
4310
+ Jo.length = 0;
4311
4311
  for (var t = e.getElementsByTagName("input"), n = t.length; n--;) {
4312
4312
  var r = t[n];
4313
- r.checked && Yo.push(r);
4313
+ r.checked && Jo.push(r);
4314
4314
  }
4315
4315
  }
4316
- function ys(e) {
4316
+ function vs(e) {
4317
4317
  return setTimeout(e, 0);
4318
4318
  }
4319
- function bs(e) {
4319
+ function ys(e) {
4320
4320
  return clearTimeout(e);
4321
4321
  }
4322
- Xo && G(document, "touchmove", function(e) {
4323
- ($.active || jo) && e.cancelable && e.preventDefault();
4322
+ Yo && G(document, "touchmove", function(e) {
4323
+ ($.active || Ao) && e.cancelable && e.preventDefault();
4324
4324
  }), $.utils = {
4325
4325
  on: G,
4326
4326
  off: K,
4327
4327
  css: q,
4328
- find: Ka,
4328
+ find: Ga,
4329
4329
  is: function(e, t) {
4330
- return !!Ha(e, t, e, !1);
4330
+ return !!Va(e, t, e, !1);
4331
4331
  },
4332
- extend: no,
4333
- throttle: ao,
4334
- closest: Ha,
4335
- toggleClass: Wa,
4336
- clone: co,
4337
- index: Qa,
4338
- nextTick: ys,
4339
- cancelNextTick: bs,
4340
- detectDirection: ts,
4341
- getChild: Xa
4332
+ extend: to,
4333
+ throttle: io,
4334
+ closest: Va,
4335
+ toggleClass: Ua,
4336
+ clone: so,
4337
+ index: Za,
4338
+ nextTick: vs,
4339
+ cancelNextTick: ys,
4340
+ detectDirection: es,
4341
+ getChild: Ya
4342
4342
  }, $.get = function(e) {
4343
- return e[uo];
4343
+ return e[lo];
4344
4344
  }, $.mount = function() {
4345
4345
  var e = [...arguments];
4346
4346
  e[0].constructor === Array && (e = e[0]), e.forEach(function(e) {
4347
4347
  if (!e.prototype || !e.prototype.constructor) throw `Sortable: Mounted plugin must be a constructor function, not ${{}.toString.call(e)}`;
4348
- e.utils && ($.utils = Ta(Ta({}, $.utils), e.utils)), _o.mount(e);
4348
+ e.utils && ($.utils = wa(wa({}, $.utils), e.utils)), go.mount(e);
4349
4349
  });
4350
4350
  }, $.create = function(e, t) {
4351
4351
  return new $(e, t);
4352
- }, $.version = ja;
4353
- var xs = [], Ss, Cs, ws = !1, Ts, Es, Ds, Os;
4354
- function ks() {
4352
+ }, $.version = Aa;
4353
+ var bs = [], xs, Ss, Cs = !1, ws, Ts, Es, Ds;
4354
+ function Os() {
4355
4355
  function e() {
4356
4356
  for (var e in this.defaults = {
4357
4357
  scroll: !0,
@@ -4371,63 +4371,63 @@ function ks() {
4371
4371
  !this.options.dragOverBubble && !t.rootEl && this._handleAutoScroll(t);
4372
4372
  },
4373
4373
  drop: function() {
4374
- this.sortable.nativeDraggable ? K(document, "dragover", this._handleAutoScroll) : (K(document, "pointermove", this._handleFallbackAutoScroll), K(document, "touchmove", this._handleFallbackAutoScroll), K(document, "mousemove", this._handleFallbackAutoScroll)), js(), As(), oo();
4374
+ this.sortable.nativeDraggable ? K(document, "dragover", this._handleAutoScroll) : (K(document, "pointermove", this._handleFallbackAutoScroll), K(document, "touchmove", this._handleFallbackAutoScroll), K(document, "mousemove", this._handleFallbackAutoScroll)), As(), ks(), ao();
4375
4375
  },
4376
4376
  nulling: function() {
4377
- Ds = Cs = Ss = ws = Os = Ts = Es = null, xs.length = 0;
4377
+ Es = Ss = xs = Cs = Ds = ws = Ts = null, bs.length = 0;
4378
4378
  },
4379
4379
  _handleFallbackAutoScroll: function(e) {
4380
4380
  this._handleAutoScroll(e, !0);
4381
4381
  },
4382
4382
  _handleAutoScroll: function(e, t) {
4383
4383
  var n = this, r = (e.touches ? e.touches[0] : e).clientX, i = (e.touches ? e.touches[0] : e).clientY, a = document.elementFromPoint(r, i);
4384
- if (Ds = e, t || this.options.forceAutoScrollFallback || Pa || Na || Ia) {
4385
- Ms(e, this.options, a, t);
4386
- var o = to(a, !0);
4387
- ws && (!Os || r !== Ts || i !== Es) && (Os && js(), Os = setInterval(function() {
4388
- var a = to(document.elementFromPoint(r, i), !0);
4389
- a !== o && (o = a, As()), Ms(e, n.options, a, t);
4390
- }, 10), Ts = r, Es = i);
4384
+ if (Es = e, t || this.options.forceAutoScrollFallback || Na || Ma || Fa) {
4385
+ js(e, this.options, a, t);
4386
+ var o = eo(a, !0);
4387
+ Cs && (!Ds || r !== ws || i !== Ts) && (Ds && As(), Ds = setInterval(function() {
4388
+ var a = eo(document.elementFromPoint(r, i), !0);
4389
+ a !== o && (o = a, ks()), js(e, n.options, a, t);
4390
+ }, 10), ws = r, Ts = i);
4391
4391
  } else {
4392
- if (!this.options.bubbleScroll || to(a, !0) === qa()) {
4393
- As();
4392
+ if (!this.options.bubbleScroll || eo(a, !0) === Ka()) {
4393
+ ks();
4394
4394
  return;
4395
4395
  }
4396
- Ms(e, this.options, to(a, !1), !1);
4396
+ js(e, this.options, eo(a, !1), !1);
4397
4397
  }
4398
4398
  }
4399
- }, Oa(e, {
4399
+ }, Da(e, {
4400
4400
  pluginName: "scroll",
4401
4401
  initializeByDefault: !0
4402
4402
  });
4403
4403
  }
4404
- function As() {
4405
- xs.forEach(function(e) {
4404
+ function ks() {
4405
+ bs.forEach(function(e) {
4406
4406
  clearInterval(e.pid);
4407
- }), xs = [];
4407
+ }), bs = [];
4408
4408
  }
4409
- function js() {
4410
- clearInterval(Os);
4409
+ function As() {
4410
+ clearInterval(Ds);
4411
4411
  }
4412
- var Ms = ao(function(e, t, n, r) {
4412
+ var js = io(function(e, t, n, r) {
4413
4413
  if (t.scroll) {
4414
- var i = (e.touches ? e.touches[0] : e).clientX, a = (e.touches ? e.touches[0] : e).clientY, o = t.scrollSensitivity, s = t.scrollSpeed, c = qa(), l = !1, u;
4415
- Cs !== n && (Cs = n, As(), Ss = t.scroll, u = t.scrollFn, Ss === !0 && (Ss = to(n, !0)));
4416
- var d = 0, f = Ss;
4414
+ var i = (e.touches ? e.touches[0] : e).clientX, a = (e.touches ? e.touches[0] : e).clientY, o = t.scrollSensitivity, s = t.scrollSpeed, c = Ka(), l = !1, u;
4415
+ Ss !== n && (Ss = n, ks(), xs = t.scroll, u = t.scrollFn, xs === !0 && (xs = eo(n, !0)));
4416
+ var d = 0, f = xs;
4417
4417
  do {
4418
- var p = f, m = Ja(p), h = m.top, g = m.bottom, _ = m.left, v = m.right, y = m.width, b = m.height, x = void 0, S = void 0, ee = p.scrollWidth, C = p.scrollHeight, te = q(p), ne = p.scrollLeft, re = p.scrollTop;
4418
+ var p = f, m = qa(p), h = m.top, g = m.bottom, _ = m.left, v = m.right, y = m.width, b = m.height, x = void 0, S = void 0, ee = p.scrollWidth, C = p.scrollHeight, te = q(p), ne = p.scrollLeft, re = p.scrollTop;
4419
4419
  p === c ? (x = y < ee && (te.overflowX === "auto" || te.overflowX === "scroll" || te.overflowX === "visible"), S = b < C && (te.overflowY === "auto" || te.overflowY === "scroll" || te.overflowY === "visible")) : (x = y < ee && (te.overflowX === "auto" || te.overflowX === "scroll"), S = b < C && (te.overflowY === "auto" || te.overflowY === "scroll"));
4420
4420
  var ie = x && (Math.abs(v - i) <= o && ne + y < ee) - (Math.abs(_ - i) <= o && !!ne), ae = S && (Math.abs(g - a) <= o && re + b < C) - (Math.abs(h - a) <= o && !!re);
4421
- if (!xs[d]) for (var w = 0; w <= d; w++) xs[w] || (xs[w] = {});
4422
- (xs[d].vx != ie || xs[d].vy != ae || xs[d].el !== p) && (xs[d].el = p, xs[d].vx = ie, xs[d].vy = ae, clearInterval(xs[d].pid), (ie != 0 || ae != 0) && (l = !0, xs[d].pid = setInterval(function() {
4423
- r && this.layer === 0 && $.active._onTouchMove(Ds);
4424
- var t = xs[this.layer].vy ? xs[this.layer].vy * s : 0, n = xs[this.layer].vx ? xs[this.layer].vx * s : 0;
4425
- typeof u == "function" && u.call($.dragged.parentNode[uo], n, t, e, Ds, xs[this.layer].el) !== "continue" || so(xs[this.layer].el, n, t);
4421
+ if (!bs[d]) for (var w = 0; w <= d; w++) bs[w] || (bs[w] = {});
4422
+ (bs[d].vx != ie || bs[d].vy != ae || bs[d].el !== p) && (bs[d].el = p, bs[d].vx = ie, bs[d].vy = ae, clearInterval(bs[d].pid), (ie != 0 || ae != 0) && (l = !0, bs[d].pid = setInterval(function() {
4423
+ r && this.layer === 0 && $.active._onTouchMove(Es);
4424
+ var t = bs[this.layer].vy ? bs[this.layer].vy * s : 0, n = bs[this.layer].vx ? bs[this.layer].vx * s : 0;
4425
+ typeof u == "function" && u.call($.dragged.parentNode[lo], n, t, e, Es, bs[this.layer].el) !== "continue" || oo(bs[this.layer].el, n, t);
4426
4426
  }.bind({ layer: d }), 24))), d++;
4427
- } while (t.bubbleScroll && f !== c && (f = to(f, !1)));
4428
- ws = l;
4427
+ } while (t.bubbleScroll && f !== c && (f = eo(f, !1)));
4428
+ Cs = l;
4429
4429
  }
4430
- }, 30), Ns = function(e) {
4430
+ }, 30), Ms = function(e) {
4431
4431
  var t = e.originalEvent, n = e.putSortable, r = e.dragEl, i = e.activeSortable, a = e.dispatchSortableEvent, o = e.hideGhostForTarget, s = e.unhideGhostForTarget;
4432
4432
  if (t) {
4433
4433
  var c = n || i;
@@ -4439,8 +4439,8 @@ var Ms = ao(function(e, t, n, r) {
4439
4439
  }));
4440
4440
  }
4441
4441
  };
4442
- function Ps() {}
4443
- Ps.prototype = {
4442
+ function Ns() {}
4443
+ Ns.prototype = {
4444
4444
  startIndex: null,
4445
4445
  dragStart: function(e) {
4446
4446
  var t = e.oldDraggableIndex;
@@ -4449,72 +4449,72 @@ Ps.prototype = {
4449
4449
  onSpill: function(e) {
4450
4450
  var t = e.dragEl, n = e.putSortable;
4451
4451
  this.sortable.captureAnimationState(), n && n.captureAnimationState();
4452
- var r = Xa(this.sortable.el, this.startIndex, this.options);
4452
+ var r = Ya(this.sortable.el, this.startIndex, this.options);
4453
4453
  r ? this.sortable.el.insertBefore(t, r) : this.sortable.el.appendChild(t), this.sortable.animateAll(), n && n.animateAll();
4454
4454
  },
4455
- drop: Ns
4456
- }, Oa(Ps, { pluginName: "revertOnSpill" });
4457
- function Fs() {}
4458
- Fs.prototype = {
4455
+ drop: Ms
4456
+ }, Da(Ns, { pluginName: "revertOnSpill" });
4457
+ function Ps() {}
4458
+ Ps.prototype = {
4459
4459
  onSpill: function(e) {
4460
4460
  var t = e.dragEl, n = e.putSortable || this.sortable;
4461
4461
  n.captureAnimationState(), t.parentNode && t.parentNode.removeChild(t), n.animateAll();
4462
4462
  },
4463
- drop: Ns
4464
- }, Oa(Fs, { pluginName: "removeOnSpill" }), $.mount(new ks()), $.mount(Fs, Ps);
4465
- function Is(e) {
4463
+ drop: Ms
4464
+ }, Da(Ps, { pluginName: "removeOnSpill" }), $.mount(new Os()), $.mount(Ps, Ns);
4465
+ function Fs(e) {
4466
4466
  return e == null ? e : JSON.parse(JSON.stringify(e));
4467
4467
  }
4468
- function Ls(e) {
4469
- ft() && wt(e);
4468
+ function Is(e) {
4469
+ dt() && Ct(e);
4470
4470
  }
4471
- function Rs(e) {
4472
- ft() ? Ct(e) : vt(e);
4471
+ function Ls(e) {
4472
+ dt() ? St(e) : _t(e);
4473
4473
  }
4474
- var zs = null, Bs = null;
4475
- function Vs(e = null, t = null) {
4476
- zs = e, Bs = t;
4474
+ var Rs = null, zs = null;
4475
+ function Bs(e = null, t = null) {
4476
+ Rs = e, zs = t;
4477
4477
  }
4478
- function Hs() {
4478
+ function Vs() {
4479
4479
  return {
4480
- data: zs,
4481
- clonedData: Bs
4480
+ data: Rs,
4481
+ clonedData: zs
4482
4482
  };
4483
4483
  }
4484
- var Us = Symbol("cloneElement");
4485
- function Ws(...e) {
4486
- let t = ft()?.proxy, n = null, r = e[0], [, i, a] = e;
4484
+ var Hs = Symbol("cloneElement");
4485
+ function Us(...e) {
4486
+ let t = dt()?.proxy, n = null, r = e[0], [, i, a] = e;
4487
4487
  Array.isArray(B(i)) || (a = i, i = null);
4488
- let o = null, { immediate: s = !0, clone: c = Is, forceFallback: l, fallbackOnBody: u, customUpdate: d } = B(a) ?? {};
4488
+ let o = null, { immediate: s = !0, clone: c = Fs, forceFallback: l, fallbackOnBody: u, customUpdate: d } = B(a) ?? {};
4489
4489
  function f(e) {
4490
4490
  let { from: t, oldIndex: r, item: a } = e, o = Array.from(t.childNodes);
4491
4491
  n = l && !u ? o.slice(0, -1) : o;
4492
4492
  let s = B(B(i)?.[r]), d = c(s);
4493
- Vs(s, d), a[Us] = d;
4493
+ Bs(s, d), a[Hs] = d;
4494
4494
  }
4495
4495
  function p(e) {
4496
- let t = e.item[Us];
4497
- if (!pa(t)) {
4498
- if (ga(e.item), gt(i)) {
4496
+ let t = e.item[Hs];
4497
+ if (!fa(t)) {
4498
+ if (ha(e.item), ht(i)) {
4499
4499
  let n = [...B(i)];
4500
- i.value = fa(n, e.newDraggableIndex, t);
4500
+ i.value = da(n, e.newDraggableIndex, t);
4501
4501
  return;
4502
4502
  }
4503
- fa(B(i), e.newDraggableIndex, t);
4503
+ da(B(i), e.newDraggableIndex, t);
4504
4504
  }
4505
4505
  }
4506
4506
  function m(e) {
4507
4507
  let { from: t, item: n, oldIndex: r, oldDraggableIndex: a, pullMode: o, clone: s } = e;
4508
- if (ha(t, n, r), o === "clone") {
4509
- ga(s);
4508
+ if (ma(t, n, r), o === "clone") {
4509
+ ha(s);
4510
4510
  return;
4511
4511
  }
4512
- if (gt(i)) {
4512
+ if (ht(i)) {
4513
4513
  let e = [...B(i)];
4514
- i.value = da(e, a);
4514
+ i.value = ua(e, a);
4515
4515
  return;
4516
4516
  }
4517
- da(B(i), a);
4517
+ ua(B(i), a);
4518
4518
  }
4519
4519
  function h(e) {
4520
4520
  if (d) {
@@ -4522,12 +4522,12 @@ function Ws(...e) {
4522
4522
  return;
4523
4523
  }
4524
4524
  let { from: t, item: n, oldIndex: r, oldDraggableIndex: a, newDraggableIndex: o } = e;
4525
- if (ga(n), ha(t, n, r), gt(i)) {
4525
+ if (ha(n), ma(t, n, r), ht(i)) {
4526
4526
  let e = [...B(i)];
4527
- i.value = ca(e, a, o);
4527
+ i.value = sa(e, a, o);
4528
4528
  return;
4529
4529
  }
4530
- ca(B(i), a, o);
4530
+ sa(B(i), a, o);
4531
4531
  }
4532
4532
  function g(e) {
4533
4533
  let { newIndex: t, oldIndex: r, from: i, to: a } = e, o = null, s = t === r && i === a;
@@ -4545,8 +4545,8 @@ function Ws(...e) {
4545
4545
  } finally {
4546
4546
  n = null;
4547
4547
  }
4548
- vt(() => {
4549
- if (Vs(), o) throw o;
4548
+ _t(() => {
4549
+ if (Bs(), o) throw o;
4550
4550
  });
4551
4551
  }
4552
4552
  let _ = {
@@ -4558,19 +4558,19 @@ function Ws(...e) {
4558
4558
  };
4559
4559
  function v(e) {
4560
4560
  let n = B(r);
4561
- return e ||= ma(n) ? _a(n, t?.$el) : n, e && !ba(e) && (e = e.$el), e || sa("Root element not found"), e;
4561
+ return e ||= pa(n) ? ga(n, t?.$el) : n, e && !ya(e) && (e = e.$el), e || oa("Root element not found"), e;
4562
4562
  }
4563
4563
  function y() {
4564
- let e = B(a) ?? {}, { immediate: t, clone: n } = e, r = ia(e, ["immediate", "clone"]);
4565
- return xa(r, (e, t) => {
4566
- Sa(e) && (r[e] = (e, ...n) => (Ca(e, Hs()), t(e, ...n)));
4567
- }), ya(i === null ? {} : _, r);
4564
+ let e = B(a) ?? {}, { immediate: t, clone: n } = e, r = ra(e, ["immediate", "clone"]);
4565
+ return ba(r, (e, t) => {
4566
+ xa(e) && (r[e] = (e, ...n) => (Sa(e, Vs()), t(e, ...n)));
4567
+ }), va(i === null ? {} : _, r);
4568
4568
  }
4569
4569
  let b = (e) => {
4570
4570
  e = v(e), o && x.destroy(), o = new $(e, y());
4571
4571
  };
4572
- Pt(() => a, () => {
4573
- o && xa(y(), (e, t) => {
4572
+ Nt(() => a, () => {
4573
+ o && ba(y(), (e, t) => {
4574
4574
  o?.option(e, t);
4575
4575
  });
4576
4576
  }, { deep: !0 });
@@ -4583,15 +4583,15 @@ function Ws(...e) {
4583
4583
  toArray: () => o?.toArray(),
4584
4584
  closest: (...e) => o?.closest(...e)
4585
4585
  };
4586
- return Rs(() => {
4586
+ return Ls(() => {
4587
4587
  s && b();
4588
- }), Ls(x.destroy), ra({
4588
+ }), Is(x.destroy), na({
4589
4589
  start: b,
4590
4590
  pause: () => x?.option("disabled", !0),
4591
4591
  resume: () => x?.option("disabled", !1)
4592
4592
  }, x);
4593
4593
  }
4594
- var Gs = [
4594
+ var Ws = [
4595
4595
  "update",
4596
4596
  "start",
4597
4597
  "add",
@@ -4604,7 +4604,7 @@ var Gs = [
4604
4604
  "clone",
4605
4605
  "move",
4606
4606
  "change"
4607
- ], Ks = [
4607
+ ], Gs = [
4608
4608
  "clone",
4609
4609
  "animation",
4610
4610
  "ghostClass",
@@ -4648,7 +4648,7 @@ var Gs = [
4648
4648
  "tag",
4649
4649
  "target",
4650
4650
  "customUpdate",
4651
- ...Gs.map((e) => `on${e.replace(/^\S/, (e) => e.toUpperCase())}`)
4651
+ ...Ws.map((e) => `on${e.replace(/^\S/, (e) => e.toUpperCase())}`)
4652
4652
  ];
4653
4653
  P({
4654
4654
  name: "VueDraggable",
@@ -4656,34 +4656,34 @@ P({
4656
4656
  prop: "modelValue",
4657
4657
  event: "update:modelValue"
4658
4658
  },
4659
- props: Ks,
4660
- emits: ["update:modelValue", ...Gs],
4659
+ props: Gs,
4660
+ emits: ["update:modelValue", ...Ws],
4661
4661
  setup(e, { slots: t, emit: n, expose: r, attrs: i }) {
4662
- let a = Gs.reduce((e, t) => {
4662
+ let a = Ws.reduce((e, t) => {
4663
4663
  let r = `on${t.replace(/^\S/, (e) => e.toUpperCase())}`;
4664
4664
  return e[r] = (...e) => n(t, ...e), e;
4665
4665
  }, {}), o = O(() => {
4666
- let t = kt(e), { modelValue: n } = t, r = ia(t, ["modelValue"]), o = Object.entries(r).reduce((e, [t, n]) => {
4666
+ let t = Ot(e), { modelValue: n } = t, r = ra(t, ["modelValue"]), o = Object.entries(r).reduce((e, [t, n]) => {
4667
4667
  let r = B(n);
4668
4668
  return r !== void 0 && (e[t] = r), e;
4669
4669
  }, {});
4670
- return ra(ra({}, a), ua(ra(ra({}, i), o)));
4670
+ return na(na({}, a), la(na(na({}, i), o)));
4671
4671
  }), s = O({
4672
4672
  get: () => e.modelValue,
4673
4673
  set: (e) => n("update:modelValue", e)
4674
- }), c = L(), l = Et(Ws(e.target || c, s, o));
4675
- return r(l), () => mt(e.tag || "div", { ref: c }, (t?.default)?.call(t, l));
4674
+ }), c = L(), l = Tt(Us(e.target || c, s, o));
4675
+ return r(l), () => pt(e.tag || "div", { ref: c }, (t?.default)?.call(t, l));
4676
4676
  }
4677
4677
  });
4678
- var qs = {
4678
+ var Ks = {
4679
4679
  mounted: "mounted",
4680
4680
  unmounted: "unmounted"
4681
4681
  };
4682
- qs.mounted, qs.unmounted;
4682
+ Ks.mounted, Ks.unmounted;
4683
4683
  //#endregion
4684
4684
  //#region src/ui/billing-document/table/composables/useBillingDocumentLineItemsTableDrag.composable.ts
4685
- var Js = 24;
4686
- function Ys(e) {
4685
+ var qs = 24;
4686
+ function Js(e) {
4687
4687
  let t = L(!1), n = L(0), r = L(null), i = null, a = !1, o = !1, s = null, c = null, l = "", u = "", d = "";
4688
4688
  function f() {
4689
4689
  return e.tbodyRef.value?.closest("table") ?? null;
@@ -4742,7 +4742,7 @@ function Ys(e) {
4742
4742
  };
4743
4743
  }
4744
4744
  function ee(e) {
4745
- return c === null ? 0 : Math.trunc((e - c) / Js);
4745
+ return c === null ? 0 : Math.trunc((e - c) / qs);
4746
4746
  }
4747
4747
  function C(e) {
4748
4748
  let t = (S(e) ?? s)?.x;
@@ -4794,12 +4794,12 @@ function Ys(e) {
4794
4794
  }
4795
4795
  }),
4796
4796
  set: () => {}
4797
- }), re = Ws(e.tbodyRef, ne);
4797
+ }), re = Us(e.tbodyRef, ne);
4798
4798
  function ie() {
4799
4799
  let t = e.tbodyRef.value;
4800
4800
  t !== null && re.start(t);
4801
4801
  }
4802
- return St(() => {
4802
+ return xt(() => {
4803
4803
  x(), m(), g();
4804
4804
  }), {
4805
4805
  isDragging: t,
@@ -4810,37 +4810,37 @@ function Ys(e) {
4810
4810
  }
4811
4811
  //#endregion
4812
4812
  //#region src/ui/billing-document/table/BillingDocumentLineItemsTableGrid.vue?vue&type=script&setup=true&lang.ts
4813
- var Xs = { class: "relative" }, Zs = { class: "border-b border-secondary bg-secondary" }, Qs = {
4813
+ var Ys = { class: "relative" }, Xs = { class: "border-b border-secondary bg-secondary" }, Zs = {
4814
4814
  key: 0,
4815
4815
  class: "sticky left-0 z-10 h-11 bg-inherit px-xs py-sm"
4816
- }, $s = {
4816
+ }, Qs = {
4817
4817
  key: 0,
4818
4818
  class: "flex items-center gap-lg"
4819
- }, ec = { class: "flex min-w-0 flex-1 items-center justify-between gap-xs" }, tc = {
4819
+ }, $s = { class: "flex min-w-0 flex-1 items-center justify-between gap-xs" }, ec = {
4820
4820
  key: 1,
4821
4821
  class: "sticky right-0 z-10 h-11 bg-inherit px-md py-sm"
4822
- }, nc = {
4822
+ }, tc = {
4823
4823
  key: 0,
4824
4824
  class: "h-0"
4825
- }, rc = ["colspan"], ic = {
4825
+ }, nc = ["colspan"], rc = {
4826
4826
  key: 0,
4827
4827
  class: "h-5",
4828
4828
  "data-line-items-insert-row": ""
4829
- }, ac = ["colspan"], oc = { key: 1 }, sc = ["colspan"], cc = {
4829
+ }, ic = ["colspan"], ac = { key: 1 }, oc = ["colspan"], sc = {
4830
4830
  key: 0,
4831
4831
  "aria-live": "polite",
4832
4832
  class: "pointer-events-none absolute inset-x-0 bottom-4 z-30 flex justify-center px-md"
4833
- }, lc = 2.25, uc = 4.5, dc = .5, fc = /* @__PURE__ */ P({
4833
+ }, cc = 2.25, lc = 4.5, uc = .5, dc = /* @__PURE__ */ P({
4834
4834
  __name: "BillingDocumentLineItemsTableGrid",
4835
4835
  setup(e) {
4836
- let t = E(), n = Pr(), r = _(), i = O(() => n.lineCustomFieldDefinitions.value.map((e) => ({
4836
+ let t = E(), n = Nr(), r = _(), i = O(() => n.lineCustomFieldDefinitions.value.map((e) => ({
4837
4837
  label: b.getLabel(e, t.locale.value),
4838
4838
  widthInRem: 12
4839
- }))), a = O(() => 18 + Math.max(n.structure.value.maxDepth - 1, 0) * dc), o = O(() => {
4839
+ }))), a = O(() => 18 + Math.max(n.structure.value.maxDepth - 1, 0) * uc), o = O(() => {
4840
4840
  let e = De(), o = e.map((e) => W.createBillingDocumentLineItemTotals(e)), s = Oe(e.map((e) => e.quantity), 5, 8), c = Oe(e.map((e) => e.unitPrice), 7, 11), l = Oe(e.map((e) => e.discountPercentage?.getValue() ?? 0), 6.5, 9), u = Oe(o.map((e) => e.net), 8, 12), d = Oe(o.map((e) => e.gross), 8, 12), f = [
4841
4841
  {
4842
4842
  isHidden: !n.isEditable.value,
4843
- widthInRem: lc
4843
+ widthInRem: cc
4844
4844
  },
4845
4845
  {
4846
4846
  isItemColumn: !0,
@@ -4887,11 +4887,11 @@ var Xs = { class: "relative" }, Zs = { class: "border-b border-secondary bg-seco
4887
4887
  },
4888
4888
  {
4889
4889
  isHidden: !n.hasActionsColumn.value,
4890
- minWidthInRem: uc
4890
+ minWidthInRem: lc
4891
4891
  }
4892
4892
  ];
4893
4893
  return n.isEditable.value ? f : f.filter((e) => !e.isHidden);
4894
- }), s = O(() => o.value.length), c = O(() => o.value.filter((e) => e.label !== void 0)), l = O(() => Math.max(c.value.length - 3, 1)), u = n.displayRows, d = Mt("tbodyRef"), f = Mt("scrollContainerRef"), p = Mt("tableRef"), m = L(!1), h = L(!1), g = L(0);
4894
+ }), s = O(() => o.value.length), c = O(() => o.value.filter((e) => e.label !== void 0)), l = O(() => Math.max(c.value.length - 3, 1)), u = n.displayRows, d = jt("tbodyRef"), f = jt("scrollContainerRef"), p = jt("tableRef"), m = L(!1), h = L(!1), g = L(0);
4895
4895
  function v() {
4896
4896
  let e = f.value;
4897
4897
  if (e === null) {
@@ -4907,8 +4907,8 @@ var Xs = { class: "relative" }, Zs = { class: "border-b border-secondary bg-seco
4907
4907
  let t = Array.from(e.querySelectorAll("thead tr, tbody tr:not([data-line-items-insert-row])")).at(-1);
4908
4908
  return t === void 0 ? e.offsetHeight : t.getBoundingClientRect().bottom - e.getBoundingClientRect().top;
4909
4909
  }
4910
- Ht(f, v), Ht(p, v), Ct(v);
4911
- let { isDragging: x, dragTarget: S, dragVersion: ee, restart: C } = Ys({
4910
+ Vt(f, v), Vt(p, v), St(v);
4911
+ let { isDragging: x, dragTarget: S, dragVersion: ee, restart: C } = Js({
4912
4912
  isEditable: n.isEditable,
4913
4913
  moveLineByIndex: Ee,
4914
4914
  saveNow: n.saveNow,
@@ -4931,7 +4931,7 @@ var Xs = { class: "relative" }, Zs = { class: "border-b border-secondary bg-seco
4931
4931
  }
4932
4932
  return n.mutations.deleteLine(e), i;
4933
4933
  }
4934
- let re = Zi({
4934
+ let re = Xi({
4935
4935
  isEditable: n.isEditable,
4936
4936
  addLineBelow: te,
4937
4937
  deleteEmptyLine: ne,
@@ -4945,11 +4945,11 @@ var Xs = { class: "relative" }, Zs = { class: "border-b border-secondary bg-seco
4945
4945
  return r && Ce(e), r;
4946
4946
  }
4947
4947
  let ae = L(0);
4948
- Pt(ee, async () => {
4949
- ae.value += 1, await vt(), C();
4948
+ Nt(ee, async () => {
4949
+ ae.value += 1, await _t(), C();
4950
4950
  }, { flush: "post" });
4951
4951
  let w = L(/* @__PURE__ */ new Set()), oe = L(null), se;
4952
- St(() => {
4952
+ xt(() => {
4953
4953
  se !== void 0 && clearTimeout(se);
4954
4954
  });
4955
4955
  function ce(e) {
@@ -4962,7 +4962,7 @@ var Xs = { class: "relative" }, Zs = { class: "border-b border-secondary bg-seco
4962
4962
  let e = /* @__PURE__ */ new Map();
4963
4963
  for (let t of u.value) {
4964
4964
  if (!W.isLineRow(t.line) || t.gross === null || t.net === null) continue;
4965
- let r = qr.getDisplayGrossLineTotal(n.meta.value.documentType, t.gross, t.line.isDiscount), i = qr.getDisplayGrossLineTotal(n.meta.value.documentType, t.net, t.line.isDiscount);
4965
+ let r = Kr.getDisplayGrossLineTotal(n.meta.value.documentType, t.gross, t.line.isDiscount), i = Kr.getDisplayGrossLineTotal(n.meta.value.documentType, t.net, t.line.isDiscount);
4966
4966
  for (let n of ce(t.line.id)) {
4967
4967
  let a = e.get(n) ?? {
4968
4968
  discountGross: 0,
@@ -4991,9 +4991,9 @@ var Xs = { class: "relative" }, Zs = { class: "border-b border-secondary bg-seco
4991
4991
  "--line-items-drop-indent": `${he.value.dropIndentInRem}rem`,
4992
4992
  "--line-items-drop-shift": `${he.value.depthShiftInRem}rem`
4993
4993
  }), _e = O(() => {
4994
- let e = n.isEditable.value ? lc : 0;
4994
+ let e = n.isEditable.value ? cc : 0;
4995
4995
  return {
4996
- "--line-items-frozen-end": n.hasActionsColumn.value ? `${uc}rem` : "0rem",
4996
+ "--line-items-frozen-end": n.hasActionsColumn.value ? `${lc}rem` : "0rem",
4997
4997
  "--line-items-frozen-start": `${e + a.value}rem`,
4998
4998
  "--line-items-item-start": `${e}rem`
4999
4999
  };
@@ -5061,7 +5061,7 @@ var Xs = { class: "relative" }, Zs = { class: "border-b border-secondary bg-seco
5061
5061
  return W.canAddGroupInside(n.structure.value, Me(e)) ? null : me.value;
5062
5062
  }
5063
5063
  async function Pe(e) {
5064
- await vt();
5064
+ await _t();
5065
5065
  let t = d.value?.querySelector(`input[id="billing-document-line-items-name-${e}"]`);
5066
5066
  t?.focus(), t?.select();
5067
5067
  }
@@ -5076,19 +5076,19 @@ var Xs = { class: "relative" }, Zs = { class: "border-b border-secondary bg-seco
5076
5076
  W.canAddGroupInside(n.structure.value, t) && (n.mutations.addGroup(Ae(e), t), Se(t));
5077
5077
  }
5078
5078
  return (e, r) => (I(), j("div", {
5079
- style: xt(_e.value),
5079
+ style: bt(_e.value),
5080
5080
  class: "relative"
5081
- }, [M("div", Xs, [
5081
+ }, [M("div", Ys, [
5082
5082
  M("div", {
5083
5083
  ref_key: "scrollContainerRef",
5084
5084
  ref: f,
5085
- class: yt([B(x) ? "select-none" : void 0, "relative overflow-x-auto overflow-y-hidden"]),
5085
+ class: vt([B(x) ? "select-none" : void 0, "relative overflow-x-auto overflow-y-hidden"]),
5086
5086
  "data-test-id": "billing-document-line-items-scroll-container",
5087
5087
  onScroll: v
5088
5088
  }, [M("table", {
5089
5089
  ref_key: "tableRef",
5090
5090
  ref: p,
5091
- style: xt({
5091
+ style: bt({
5092
5092
  minWidth: ve.value,
5093
5093
  width: "100%"
5094
5094
  }),
@@ -5096,15 +5096,15 @@ var Xs = { class: "relative" }, Zs = { class: "border-b border-secondary bg-seco
5096
5096
  }, [
5097
5097
  M("colgroup", null, [(I(!0), j(D, null, R(o.value, (e, t) => (I(), j("col", {
5098
5098
  key: t,
5099
- style: xt(e.widthInRem === void 0 ? {} : { width: `${e.widthInRem}rem` })
5099
+ style: bt(e.widthInRem === void 0 ? {} : { width: `${e.widthInRem}rem` })
5100
5100
  }, null, 4))), 128))]),
5101
- M("thead", null, [M("tr", Zs, [
5102
- B(n).isEditable.value ? (I(), j("th", Qs)) : A("", !0),
5101
+ M("thead", null, [M("tr", Xs, [
5102
+ B(n).isEditable.value ? (I(), j("th", Zs)) : A("", !0),
5103
5103
  (I(!0), j(D, null, R(c.value, (e, i) => (I(), j("th", {
5104
5104
  key: i,
5105
- class: yt([[e.align === "right" ? "text-right" : "text-left", e.isItemColumn ? "\n sticky left-(--line-items-item-start) z-10 bg-inherit pr-lg\n pl-md\n " : "px-lg"], "h-11 py-sm text-xs font-semibold text-quaternary"]),
5105
+ class: vt([[e.align === "right" ? "text-right" : "text-left", e.isItemColumn ? "\n sticky left-(--line-items-item-start) z-10 bg-inherit pr-lg\n pl-md\n " : "px-lg"], "h-11 py-sm text-xs font-semibold text-quaternary"]),
5106
5106
  scope: "col"
5107
- }, [e.isItemColumn ? (I(), j("div", $s, [B(n).isEditable.value ? (I(), k(B(Xt), {
5107
+ }, [e.isItemColumn ? (I(), j("div", Qs, [B(n).isEditable.value ? (I(), k(B(Yt), {
5108
5108
  key: 0,
5109
5109
  id: "billing-document-line-items-select-all",
5110
5110
  "model-value": B(n).selection.allSelected.value || B(n).selection.indeterminate.value,
@@ -5119,27 +5119,27 @@ var Xs = { class: "relative" }, Zs = { class: "border-b border-secondary bg-seco
5119
5119
  "is-indeterminate",
5120
5120
  "label",
5121
5121
  "is-disabled"
5122
- ])) : A("", !0), M("span", ec, [dt(z(e.label) + " ", 1), fe.value ? (I(), k(B(_n), {
5122
+ ])) : A("", !0), M("span", $s, [ut(z(e.label) + " ", 1), fe.value ? (I(), k(B(gn), {
5123
5123
  key: 0,
5124
5124
  icon: pe.value ? B(ye) : B(we),
5125
5125
  label: pe.value ? B(t).t("wise_invoicing.invoice.detail.line_items.expand_all_groups") : B(t).t("wise_invoicing.invoice.detail.line_items.collapse_all_groups"),
5126
5126
  size: "sm",
5127
5127
  variant: "tertiary",
5128
5128
  onClick: Te
5129
- }, null, 8, ["icon", "label"])) : A("", !0)])])) : (I(), j(D, { key: 1 }, [dt(z(e.label), 1)], 64))], 2))), 128)),
5130
- B(n).hasActionsColumn.value ? (I(), j("th", tc)) : A("", !0)
5129
+ }, null, 8, ["icon", "label"])) : A("", !0)])])) : (I(), j(D, { key: 1 }, [ut(z(e.label), 1)], 64))], 2))), 128)),
5130
+ B(n).hasActionsColumn.value ? (I(), j("th", ec)) : A("", !0)
5131
5131
  ])]),
5132
5132
  (I(), j("tbody", {
5133
5133
  key: ae.value,
5134
5134
  ref_key: "tbodyRef",
5135
5135
  ref: d,
5136
- style: xt(ge.value),
5136
+ style: bt(ge.value),
5137
5137
  onKeydownCapture: r[3] ||= (...e) => B(re).onKeydown && B(re).onKeydown(...e)
5138
5138
  }, [
5139
- (I(!0), j(D, null, R(de.value, (e, r) => (I(), j(D, { key: e.line.id }, [B(n).isEditable.value ? Ft((I(), j("tr", nc, [M("td", {
5139
+ (I(!0), j(D, null, R(de.value, (e, r) => (I(), j(D, { key: e.line.id }, [B(n).isEditable.value ? Pt((I(), j("tr", tc, [M("td", {
5140
5140
  colspan: s.value,
5141
5141
  class: "relative h-0 overflow-visible p-none"
5142
- }, [N(ti, {
5142
+ }, [N(ei, {
5143
5143
  "add-group-disabled-reason": Ne(r),
5144
5144
  label: B(t).t("wise_invoicing.invoice.detail.line_items.insert_line"),
5145
5145
  onAddLine: (e) => Fe(r),
@@ -5149,7 +5149,7 @@ var Xs = { class: "relative" }, Zs = { class: "border-b border-secondary bg-seco
5149
5149
  "label",
5150
5150
  "onAddLine",
5151
5151
  "onAddGroup"
5152
- ])], 8, rc)], 512)), [[Nt, !B(x)]]) : A("", !0), B(W).isGroupRow(e.line) ? (I(), k(wi, {
5152
+ ])], 8, nc)], 512)), [[Mt, !B(x)]]) : A("", !0), B(W).isGroupRow(e.line) ? (I(), k(Ci, {
5153
5153
  key: 1,
5154
5154
  "content-column-span": l.value,
5155
5155
  group: e.line,
@@ -5170,7 +5170,7 @@ var Xs = { class: "relative" }, Zs = { class: "border-b border-secondary bg-seco
5170
5170
  "total",
5171
5171
  "onExpand",
5172
5172
  "onToggleCollapse"
5173
- ])) : (I(), k(Gi, {
5173
+ ])) : (I(), k(Wi, {
5174
5174
  key: 2,
5175
5175
  line: e.line,
5176
5176
  net: e.net ?? 0,
@@ -5182,44 +5182,44 @@ var Xs = { class: "relative" }, Zs = { class: "border-b border-secondary bg-seco
5182
5182
  "gross",
5183
5183
  "is-appearing"
5184
5184
  ]))], 64))), 128)),
5185
- de.value.length > 0 && B(n).isEditable.value ? Ft((I(), j("tr", ic, [M("td", {
5185
+ de.value.length > 0 && B(n).isEditable.value ? Pt((I(), j("tr", rc, [M("td", {
5186
5186
  colspan: s.value,
5187
5187
  class: "relative h-5 overflow-visible p-none"
5188
- }, [N(ti, {
5188
+ }, [N(ei, {
5189
5189
  "add-group-disabled-reason": Ne(de.value.length),
5190
5190
  label: B(t).t("wise_invoicing.invoice.detail.line_items.insert_line"),
5191
5191
  placement: "end",
5192
5192
  onAddLine: r[1] ||= (e) => Fe(de.value.length),
5193
5193
  onAddGroup: r[2] ||= (e) => Ie(de.value.length)
5194
- }, null, 8, ["add-group-disabled-reason", "label"])], 8, ac)], 512)), [[Nt, !B(x)]]) : A("", !0),
5195
- de.value.length === 0 && !B(n).isEditable.value ? (I(), j("tr", oc, [M("td", {
5194
+ }, null, 8, ["add-group-disabled-reason", "label"])], 8, ic)], 512)), [[Mt, !B(x)]]) : A("", !0),
5195
+ de.value.length === 0 && !B(n).isEditable.value ? (I(), j("tr", ac, [M("td", {
5196
5196
  colspan: s.value,
5197
5197
  class: "px-lg py-xl text-center"
5198
5198
  }, [N(B(U), {
5199
5199
  text: B(t).t("wise_invoicing.invoice.detail.line_items.empty"),
5200
5200
  class: "text-sm text-tertiary"
5201
- }, null, 8, ["text"])], 8, sc)])) : A("", !0)
5201
+ }, null, 8, ["text"])], 8, oc)])) : A("", !0)
5202
5202
  ], 36))
5203
5203
  ], 4)], 34),
5204
- B(x) && he.value?.isDepthLimited ? (I(), j("div", cc, [N(B(U), {
5204
+ B(x) && he.value?.isDepthLimited ? (I(), j("div", sc, [N(B(U), {
5205
5205
  text: me.value,
5206
5206
  class: "rounded-lg border border-secondary bg-primary px-md py-sm text-xs text-secondary shadow-lg"
5207
5207
  }, null, 8, ["text"])])) : A("", !0),
5208
5208
  m.value ? (I(), j("div", {
5209
5209
  key: 1,
5210
- style: xt({ height: `${g.value}px` }),
5210
+ style: bt({ height: `${g.value}px` }),
5211
5211
  class: "pointer-events-none absolute top-0 left-(--line-items-frozen-start) z-20 border-l border-secondary",
5212
5212
  "data-test-id": "billing-document-line-items-leading-divider"
5213
5213
  }, null, 4)) : A("", !0),
5214
5214
  h.value ? (I(), j("div", {
5215
5215
  key: 2,
5216
- style: xt({ height: `${g.value}px` }),
5216
+ style: bt({ height: `${g.value}px` }),
5217
5217
  class: "pointer-events-none absolute top-0 right-(--line-items-frozen-end) z-20 border-r border-secondary",
5218
5218
  "data-test-id": "billing-document-line-items-trailing-divider"
5219
5219
  }, null, 4)) : A("", !0)
5220
5220
  ])], 4));
5221
5221
  }
5222
- }), pc = /* @__PURE__ */ P({
5222
+ }), fc = /* @__PURE__ */ P({
5223
5223
  __name: "BillingDocumentLineItemsTableHeader",
5224
5224
  props: { showApplyDiscount: {
5225
5225
  type: Boolean,
@@ -5227,7 +5227,7 @@ var Xs = { class: "relative" }, Zs = { class: "border-b border-secondary bg-seco
5227
5227
  } },
5228
5228
  emits: ["applyDiscount"],
5229
5229
  setup(e, { emit: t }) {
5230
- let n = e, r = t, i = E(), a = Pr(), o = O(() => a.isEditable.value ? a.hasInvalidRows.value && a.isDirty.value ? {
5230
+ let n = e, r = t, i = E(), a = Nr(), o = O(() => a.isEditable.value ? a.hasInvalidRows.value && a.isDirty.value ? {
5231
5231
  isBlocking: !0,
5232
5232
  text: i.t("wise_invoicing.invoice.detail.line_items.save_blocked")
5233
5233
  } : a.saveState.value === "error" ? {
@@ -5257,7 +5257,7 @@ var Xs = { class: "relative" }, Zs = { class: "border-b border-secondary bg-seco
5257
5257
  class: "shrink-0 text-sm font-semibold text-primary"
5258
5258
  }, null, 8, ["text"]), o.value === null ? A("", !0) : (I(), k(B(H), {
5259
5259
  key: 0,
5260
- class: yt([o.value.isBlocking ? "text-error-primary" : "text-tertiary", "min-w-0 gap-xs"]),
5260
+ class: vt([o.value.isBlocking ? "text-error-primary" : "text-tertiary", "min-w-0 gap-xs"]),
5261
5261
  align: "center",
5262
5262
  "aria-live": "polite",
5263
5263
  "data-test-id": "billing-document-line-items-save-status"
@@ -5273,7 +5273,7 @@ var Xs = { class: "relative" }, Zs = { class: "border-b border-secondary bg-seco
5273
5273
  }, 8, ["class"]))]),
5274
5274
  _: 1
5275
5275
  }), N(B(H), { class: "shrink-0 gap-sm" }, {
5276
- default: V(() => [n.showApplyDiscount ? (I(), k(B(Yt), {
5276
+ default: V(() => [n.showApplyDiscount ? (I(), k(B(Jt), {
5277
5277
  key: 0,
5278
5278
  label: B(i).t("wise_invoicing.invoice.detail.line_items.global_discount"),
5279
5279
  "icon-left": B(ze),
@@ -5284,7 +5284,7 @@ var Xs = { class: "relative" }, Zs = { class: "border-b border-secondary bg-seco
5284
5284
  "label",
5285
5285
  "icon-left",
5286
5286
  "is-disabled"
5287
- ])) : A("", !0), N(B(Yt), {
5287
+ ])) : A("", !0), N(B(Jt), {
5288
5288
  label: B(i).t("wise_invoicing.invoice.detail.line_items.add_item"),
5289
5289
  "icon-left": B(Pe),
5290
5290
  "is-disabled": !B(a).isEditable.value,
@@ -5299,19 +5299,19 @@ var Xs = { class: "relative" }, Zs = { class: "border-b border-secondary bg-seco
5299
5299
  _: 1
5300
5300
  }));
5301
5301
  }
5302
- }), mc = {}, hc = { class: "relative w-full rounded-lg border border-secondary bg-primary shadow-sm" };
5303
- function gc(e, t) {
5304
- return I(), j("section", hc, [Dt(e.$slots, "default")]);
5302
+ }), pc = {}, mc = { class: "relative w-full rounded-lg border border-secondary bg-primary shadow-sm" };
5303
+ function hc(e, t) {
5304
+ return I(), j("section", mc, [Et(e.$slots, "default")]);
5305
5305
  }
5306
- var _c = /*#__PURE__*/ mi(mc, [["render", gc]]), vc = /* @__PURE__ */ P({
5306
+ var gc = /*#__PURE__*/ pi(pc, [["render", hc]]), _c = /* @__PURE__ */ P({
5307
5307
  __name: "BillingDocumentLineItemsTotals",
5308
5308
  props: { billingDocument: {} },
5309
5309
  setup(e) {
5310
5310
  let t = e, n = E(), r = h();
5311
5311
  function i(e) {
5312
- return r.formatMonetary(qr.getDisplayMonetary(t.billingDocument.type, e));
5312
+ return r.formatMonetary(Kr.getDisplayMonetary(t.billingDocument.type, e));
5313
5313
  }
5314
- let a = O(() => [...rt.sortByVatRate(t.billingDocument.vatSummaries).map((e) => ({
5314
+ let a = O(() => [...nt.sortByVatRate(t.billingDocument.vatSummaries).map((e) => ({
5315
5315
  key: `vat-total-${e.vatRate}`,
5316
5316
  label: `${e.vatRate}%`,
5317
5317
  net: i(e.netAmount),
@@ -5329,7 +5329,7 @@ var _c = /*#__PURE__*/ mi(mc, [["render", gc]]), vc = /* @__PURE__ */ P({
5329
5329
  let { advancePaymentAmount: e, grossAmount: n } = t.billingDocument;
5330
5330
  return e === null ? null : {
5331
5331
  advancePayment: `-${i(e)}`,
5332
- amountDue: i(it.getAmountAfterAdvance(n, e))
5332
+ amountDue: i(rt.getAmountAfterAdvance(n, e))
5333
5333
  };
5334
5334
  }), l = O(() => n.t("wise_invoicing.invoice.detail.totals.vat_rounding_tooltip"));
5335
5335
  return (e, r) => (I(), k(B(H), {
@@ -5349,7 +5349,7 @@ var _c = /*#__PURE__*/ mi(mc, [["render", gc]]), vc = /* @__PURE__ */ P({
5349
5349
  align: "end"
5350
5350
  }, {
5351
5351
  default: V(() => [
5352
- N(B(Qt), {
5352
+ N(B(Zt), {
5353
5353
  gap: "xs",
5354
5354
  align: "end",
5355
5355
  justify: "center",
@@ -5364,7 +5364,7 @@ var _c = /*#__PURE__*/ mi(mc, [["render", gc]]), vc = /* @__PURE__ */ P({
5364
5364
  }, null, 8, ["text"]))), 128))]),
5365
5365
  _: 1
5366
5366
  }),
5367
- N(B(Qt), {
5367
+ N(B(Zt), {
5368
5368
  gap: "xs",
5369
5369
  align: "end"
5370
5370
  }, {
@@ -5382,7 +5382,7 @@ var _c = /*#__PURE__*/ mi(mc, [["render", gc]]), vc = /* @__PURE__ */ P({
5382
5382
  }, null, 8, ["text"]))), 128))]),
5383
5383
  _: 1
5384
5384
  }),
5385
- N(B(Qt), {
5385
+ N(B(Zt), {
5386
5386
  gap: "xs",
5387
5387
  align: "end"
5388
5388
  }, {
@@ -5398,11 +5398,11 @@ var _c = /*#__PURE__*/ mi(mc, [["render", gc]]), vc = /* @__PURE__ */ P({
5398
5398
  gap: "xs",
5399
5399
  class: "w-full whitespace-nowrap"
5400
5400
  }, {
5401
- default: V(() => [e.key === "vat-total-overall" ? (I(), k(B(qt), {
5401
+ default: V(() => [e.key === "vat-total-overall" ? (I(), k(B(Kt), {
5402
5402
  key: 0,
5403
5403
  label: l.value
5404
5404
  }, {
5405
- default: V(() => [N(B(_n), {
5405
+ default: V(() => [N(B(gn), {
5406
5406
  label: B(n).t("wise_invoicing.invoice.detail.totals.info"),
5407
5407
  icon: B(De),
5408
5408
  class: "rounded-full!",
@@ -5422,11 +5422,11 @@ var _c = /*#__PURE__*/ mi(mc, [["render", gc]]), vc = /* @__PURE__ */ P({
5422
5422
  ]),
5423
5423
  _: 1
5424
5424
  }),
5425
- N(B(Cn), {
5425
+ N(B(Sn), {
5426
5426
  orientation: "vertical",
5427
5427
  class: "h-24 bg-tertiary"
5428
5428
  }),
5429
- N(B(Qt), {
5429
+ N(B(Zt), {
5430
5430
  gap: "sm",
5431
5431
  class: "w-auto"
5432
5432
  }, {
@@ -5451,7 +5451,7 @@ var _c = /*#__PURE__*/ mi(mc, [["render", gc]]), vc = /* @__PURE__ */ P({
5451
5451
  }, null, 8, ["text"])]),
5452
5452
  _: 1
5453
5453
  })) : A("", !0),
5454
- N(B(Cn), {
5454
+ N(B(Sn), {
5455
5455
  orientation: "horizontal",
5456
5456
  class: "bg-tertiary"
5457
5457
  }),
@@ -5468,7 +5468,7 @@ var _c = /*#__PURE__*/ mi(mc, [["render", gc]]), vc = /* @__PURE__ */ P({
5468
5468
  "disable-tooltip": ""
5469
5469
  }, null, 8, ["text"]), N(B(U), {
5470
5470
  text: i(t.billingDocument.grossAmount),
5471
- class: yt([{
5471
+ class: vt([{
5472
5472
  "text-xl font-semibold": c.value === null,
5473
5473
  "text-sm font-medium": c.value !== null
5474
5474
  }, "whitespace-nowrap text-primary"]),
@@ -5497,7 +5497,7 @@ var _c = /*#__PURE__*/ mi(mc, [["render", gc]]), vc = /* @__PURE__ */ P({
5497
5497
  }, null, 8, ["text"])]),
5498
5498
  _: 1
5499
5499
  }),
5500
- N(B(Cn), {
5500
+ N(B(Sn), {
5501
5501
  orientation: "horizontal",
5502
5502
  class: "bg-tertiary"
5503
5503
  }),
@@ -5533,8 +5533,8 @@ var _c = /*#__PURE__*/ mi(mc, [["render", gc]]), vc = /* @__PURE__ */ P({
5533
5533
  });
5534
5534
  //#endregion
5535
5535
  //#region src/modules/custom-field/composables/customFieldReferenceLinks.composable.ts
5536
- function yc() {
5537
- let e = E(), t = Gt(), n = _();
5536
+ function vc() {
5537
+ let e = E(), t = Wt(), n = _();
5538
5538
  function r(t, r) {
5539
5539
  return t.flatMap((t) => {
5540
5540
  let i = S.findByDefinition(r, t.uuid);
@@ -5561,7 +5561,7 @@ function yc() {
5561
5561
  }
5562
5562
  //#endregion
5563
5563
  //#region src/ui/billing-document/table/composables/useBillingDocumentLineItemsAutoSave.composable.ts
5564
- function bc(e) {
5564
+ function yc(e) {
5565
5565
  let { hasInvalidRows: t, hasSaveError: n, isDirty: r, isEditable: i, isSaving: a, baselineRowsKey: o, rows: s, rowsKey: c, updateLines: l, meta: u } = e, d = null, f = null, p = O(() => a.value ? "saving" : n.value ? "error" : r.value ? "dirty" : "saved");
5566
5566
  async function m() {
5567
5567
  if (!i.value || t.value || !r.value) return;
@@ -5581,8 +5581,8 @@ function bc(e) {
5581
5581
  let e = W.buildBillingDocumentLineItemsPayload(u.value, s.value);
5582
5582
  return l(e);
5583
5583
  }
5584
- let g = zt(c, 500);
5585
- return Pt(g, async () => {
5584
+ let g = Rt(c, 500);
5585
+ return Nt(g, async () => {
5586
5586
  !i.value || t.value || !r.value || await m();
5587
5587
  }), {
5588
5588
  isSaving: a,
@@ -5592,13 +5592,13 @@ function bc(e) {
5592
5592
  }
5593
5593
  //#endregion
5594
5594
  //#region src/ui/billing-document/table/composables/useBillingDocumentLineItemsRowMutations.composable.ts
5595
- function xc(e, t) {
5595
+ function bc(e, t) {
5596
5596
  return Number.isFinite(e) ? e : t;
5597
5597
  }
5598
- function Sc(e) {
5598
+ function xc(e) {
5599
5599
  return e === null || e === 0 ? null : new ee(e);
5600
5600
  }
5601
- function Cc(e) {
5601
+ function Sc(e) {
5602
5602
  let { hasSaveError: t, isEditable: n, baselineRowsKey: r, billingDocument: i, rows: a, selection: o, meta: s } = e;
5603
5603
  function c(e = { clearSelection: !1 }) {
5604
5604
  let s = W.createBillingDocumentLineItemDisplayRows(i(), n.value);
@@ -5624,10 +5624,10 @@ function Cc(e) {
5624
5624
  ...e,
5625
5625
  name: t.name,
5626
5626
  description: t.description,
5627
- discountPercentage: Sc(t.discountPercentage),
5628
- quantity: xc(t.quantity, e.quantity),
5627
+ discountPercentage: xc(t.discountPercentage),
5628
+ quantity: bc(t.quantity, e.quantity),
5629
5629
  unit: t.unit,
5630
- unitPrice: Math.max(0, xc(t.unitPrice, e.unitPrice)),
5630
+ unitPrice: Math.max(0, bc(t.unitPrice, e.unitPrice)),
5631
5631
  vatRate: t.vatRate
5632
5632
  }));
5633
5633
  }
@@ -5723,7 +5723,7 @@ function Cc(e) {
5723
5723
  }
5724
5724
  //#endregion
5725
5725
  //#region src/ui/billing-document/table/composables/useBillingDocumentLineItemsSelection.composable.ts
5726
- function wc(e) {
5726
+ function Cc(e) {
5727
5727
  let t = L([]), n = O(() => e.rows().filter(W.isLineRow)), r = O(() => {
5728
5728
  let e = n.value;
5729
5729
  return e.length > 0 && t.value.length === e.length;
@@ -5769,12 +5769,12 @@ function wc(e) {
5769
5769
  }
5770
5770
  //#endregion
5771
5771
  //#region src/ui/billing-document/table/composables/useBillingDocumentLineItemsEditor.composable.ts
5772
- function Tc(e) {
5773
- let t = L([]), r = L(""), i = L(!1), a = O(() => e.customFieldDefinitions?.() ?? []), o = O(() => b.filterByEntityType(a.value, s.INVOICE_LINE)), c = O(() => b.filterByEntityType(a.value, s.INVOICE_LINE_GROUP)), l = O(() => o.value.filter((e) => e.type !== f.REFERENCE)), u = O(() => c.value.filter((e) => e.type !== f.REFERENCE)), d = O(() => o.value.filter((e) => e.type === f.REFERENCE)), p = O(() => c.value.filter((e) => e.type === f.REFERENCE)), m = yc(), h = O(() => W.createBillingDocumentLineItemsMeta(e.billingDocument())), g = O(() => e.canEdit === void 0 ? e.billingDocument().status === n.DRAFT || e.billingDocument().status === n.READY : e.canEdit.value);
5772
+ function wc(e) {
5773
+ let t = L([]), r = L(""), i = L(!1), a = O(() => e.customFieldDefinitions?.() ?? []), o = O(() => b.filterByEntityType(a.value, s.INVOICE_LINE)), c = O(() => b.filterByEntityType(a.value, s.INVOICE_LINE_GROUP)), l = O(() => o.value.filter((e) => e.type !== f.REFERENCE)), u = O(() => c.value.filter((e) => e.type !== f.REFERENCE)), d = O(() => o.value.filter((e) => e.type === f.REFERENCE)), p = O(() => c.value.filter((e) => e.type === f.REFERENCE)), m = vc(), h = O(() => W.createBillingDocumentLineItemsMeta(e.billingDocument())), g = O(() => e.canEdit === void 0 ? e.billingDocument().status === n.DRAFT || e.billingDocument().status === n.READY : e.canEdit.value);
5774
5774
  function _(e) {
5775
5775
  return m.getLinks(W.isGroupRow(e) ? p.value : d.value, e.customFields);
5776
5776
  }
5777
- let v = O(() => g.value || t.value.some((e) => _(e).length > 0)), y = O(() => W.createBillingDocumentLineItemRowsKey(t.value)), x = O(() => y.value !== r.value), S = O(() => W.createBillingDocumentLineItemsStructure(t.value)), ee = O(() => t.value.some((e) => !W.isTransientEmptyLineRow(e) && !W.isBillingDocumentLineItemRowValid(e))), C = O(() => W.createBillingDocumentLineItemsServerSnapshot(e.billingDocument())), te = wc({ rows: () => t.value }), ne = O(() => t.value.map((e) => {
5777
+ let v = O(() => g.value || t.value.some((e) => _(e).length > 0)), y = O(() => W.createBillingDocumentLineItemRowsKey(t.value)), x = O(() => y.value !== r.value), S = O(() => W.createBillingDocumentLineItemsStructure(t.value)), ee = O(() => t.value.some((e) => !W.isTransientEmptyLineRow(e) && !W.isBillingDocumentLineItemRowValid(e))), C = O(() => W.createBillingDocumentLineItemsServerSnapshot(e.billingDocument())), te = Cc({ rows: () => t.value }), ne = O(() => t.value.map((e) => {
5778
5778
  if (W.isGroupRow(e)) return {
5779
5779
  discount: null,
5780
5780
  gross: null,
@@ -5790,7 +5790,7 @@ function Tc(e) {
5790
5790
  net: r,
5791
5791
  vat: i
5792
5792
  };
5793
- })), re = Cc({
5793
+ })), re = Sc({
5794
5794
  hasSaveError: i,
5795
5795
  isEditable: g,
5796
5796
  baselineRowsKey: r,
@@ -5798,7 +5798,7 @@ function Tc(e) {
5798
5798
  rows: t,
5799
5799
  selection: te,
5800
5800
  meta: h
5801
- }), ie = bc({
5801
+ }), ie = yc({
5802
5802
  hasInvalidRows: ee,
5803
5803
  hasSaveError: i,
5804
5804
  isDirty: x,
@@ -5810,7 +5810,7 @@ function Tc(e) {
5810
5810
  updateLines: e.updateLines,
5811
5811
  meta: h
5812
5812
  });
5813
- return Pt(C, (e, t) => {
5813
+ return Nt(C, (e, t) => {
5814
5814
  t !== void 0 && x.value || re.applyServerRows();
5815
5815
  }, { immediate: !0 }), {
5816
5816
  hasActionsColumn: v,
@@ -5836,7 +5836,7 @@ function Tc(e) {
5836
5836
  }
5837
5837
  //#endregion
5838
5838
  //#region src/ui/billing-document/BillingDocumentDetailLayout.vue
5839
- var Ec = /* @__PURE__ */ P({
5839
+ var Tc = /* @__PURE__ */ P({
5840
5840
  __name: "BillingDocumentDetailLayout",
5841
5841
  props: {
5842
5842
  title: {},
@@ -5844,7 +5844,7 @@ var Ec = /* @__PURE__ */ P({
5844
5844
  },
5845
5845
  setup(e) {
5846
5846
  let t = e;
5847
- return (e, n) => (I(), k(B($t), {
5847
+ return (e, n) => (I(), k(B(Qt), {
5848
5848
  breadcrumbs: t.breadcrumbs,
5849
5849
  title: t.title,
5850
5850
  "detail-pane": {
@@ -5855,21 +5855,21 @@ var Ec = /* @__PURE__ */ P({
5855
5855
  variant: "bordered-inline"
5856
5856
  }
5857
5857
  }, {
5858
- default: V(() => [N(B(en), {
5858
+ default: V(() => [N(B($t), {
5859
5859
  "is-full-width": !0,
5860
5860
  "has-vertical-padding": !0
5861
5861
  }, {
5862
- default: V(() => [N(B(Qt), { gap: "lg" }, {
5863
- default: V(() => [Dt(e.$slots, "header"), Dt(e.$slots, "default")]),
5862
+ default: V(() => [N(B(Zt), { gap: "lg" }, {
5863
+ default: V(() => [Et(e.$slots, "header"), Et(e.$slots, "default")]),
5864
5864
  _: 3
5865
5865
  })]),
5866
5866
  _: 3
5867
5867
  })]),
5868
- "detail-pane": V(() => [Dt(e.$slots, "sidebar")]),
5868
+ "detail-pane": V(() => [Et(e.$slots, "sidebar")]),
5869
5869
  _: 3
5870
5870
  }, 8, ["breadcrumbs", "title"]));
5871
5871
  }
5872
- }), Dc = /* @__PURE__ */ P({
5872
+ }), Ec = /* @__PURE__ */ P({
5873
5873
  __name: "BillingDocumentDetailPage",
5874
5874
  props: {
5875
5875
  title: {},
@@ -5878,20 +5878,20 @@ var Ec = /* @__PURE__ */ P({
5878
5878
  },
5879
5879
  setup(e) {
5880
5880
  let t = e, n = d();
5881
- return zn(O(() => [])), n.set(() => t.billingDocument.subject ?? t.billingDocument.sequence ?? t.title), (e, n) => (I(), k(Ec, {
5881
+ return Rn(O(() => [])), n.set(() => t.billingDocument.subject ?? t.billingDocument.sequence ?? t.title), (e, n) => (I(), k(Tc, {
5882
5882
  breadcrumbs: t.breadcrumbs,
5883
5883
  title: t.title
5884
5884
  }, {
5885
- header: V(() => [Dt(e.$slots, "header")]),
5886
- default: V(() => [Dt(e.$slots, "default")]),
5887
- sidebar: V(() => [Dt(e.$slots, "sidebar")]),
5885
+ header: V(() => [Et(e.$slots, "header")]),
5886
+ default: V(() => [Et(e.$slots, "default")]),
5887
+ sidebar: V(() => [Et(e.$slots, "sidebar")]),
5888
5888
  _: 3
5889
5889
  }, 8, ["breadcrumbs", "title"]));
5890
5890
  }
5891
5891
  });
5892
5892
  //#endregion
5893
5893
  //#region src/ui/billing-document/billingDocumentPdfPreviewRoute.util.ts
5894
- function Oc(e) {
5894
+ function Dc(e) {
5895
5895
  return e.type === p.CREDIT_NOTE ? {
5896
5896
  name: "invoicing-credit-note-pdf-preview",
5897
5897
  params: { creditNoteUuid: e.uuid }
@@ -5902,63 +5902,47 @@ function Oc(e) {
5902
5902
  }
5903
5903
  //#endregion
5904
5904
  //#region src/ui/billing-document/BillingDocumentPdfViewer.vue?vue&type=script&setup=true&lang.ts
5905
- var kc = { class: "text-sm font-semibold text-primary" }, Ac = { class: "w-10 text-xs text-primary" }, jc = { class: "text-xs text-secondary" }, Mc = 25, Nc = 200, Pc = 10, Fc = /* @__PURE__ */ P({
5905
+ var Oc = { class: "text-sm font-semibold text-primary" }, kc = { class: "w-10 text-xs text-primary" }, Ac = { class: "text-xs text-secondary" }, jc = 25, Mc = 200, Nc = 10, Pc = /* @__PURE__ */ P({
5906
5906
  __name: "BillingDocumentPdfViewer",
5907
5907
  props: { billingDocument: {} },
5908
5908
  setup(e) {
5909
- let t = e, n = E(), r = Gt(), i = L(75), a = L(1), o = L(null), s = O(() => {
5910
- let e = t.billingDocument.externalRemarks !== null && t.billingDocument.externalRemarks.trim() !== "", n = nt.buildRows(t.billingDocument, { isCreditNote: t.billingDocument.type === p.CREDIT_NOTE });
5911
- return nt.paginateRows(n, { hasRemarks: e }).length;
5912
- }), c = O(() => t.billingDocument.type === p.CREDIT_NOTE ? n.t("wise_invoicing.common.credit_note_pdf") : n.t("wise_invoicing.common.invoice_pdf"));
5913
- function l() {
5914
- i.value = Math.min(Nc, i.value + Pc);
5915
- }
5916
- function u() {
5917
- i.value = Math.max(Mc, i.value - Pc);
5918
- }
5909
+ let t = e, n = E(), r = Wt(), i = _(), a = L(75), o = L(1), s = L(null), c = L(0), l = O(() => i.invoicePdfComponent.value), u = O(() => t.billingDocument.type === p.CREDIT_NOTE ? n.t("wise_invoicing.common.credit_note_pdf") : n.t("wise_invoicing.common.invoice_pdf"));
5919
5910
  function d() {
5920
- return Array.from(o.value?.querySelectorAll("article") ?? []);
5911
+ a.value = Math.min(Mc, a.value + Nc);
5921
5912
  }
5922
- function f(e) {
5923
- let t = d()[e - 1];
5924
- t !== void 0 && t.scrollIntoView({
5925
- behavior: "smooth",
5926
- block: "start"
5927
- });
5913
+ function f() {
5914
+ a.value = Math.max(jc, a.value - Nc);
5928
5915
  }
5929
5916
  function m() {
5930
- a.value > 1 && f(a.value - 1);
5917
+ return Array.from(s.value?.querySelectorAll("[data-pdf-page]") ?? []);
5931
5918
  }
5932
5919
  function h() {
5933
- a.value < s.value && f(a.value + 1);
5920
+ let e = m();
5921
+ c.value = e.length, o.value = Math.min(Math.max(o.value, 1), Math.max(e.length, 1));
5922
+ for (let [t, n] of e.entries()) n.style.display = t === o.value - 1 ? "" : "none";
5934
5923
  }
5935
- function g() {
5936
- let e = r.resolve(Oc(t.billingDocument));
5937
- window.open(e.href, "_blank", "noopener,noreferrer");
5924
+ function g(e) {
5925
+ o.value = e, h(), s.value?.scrollTo({ top: 0 });
5938
5926
  }
5939
- let _ = null;
5940
5927
  function v() {
5941
- if (o.value === null) return;
5942
- _?.disconnect();
5943
- let e = d();
5944
- if (e.length !== 0) {
5945
- _ = new IntersectionObserver((t) => {
5946
- for (let n of t) if (n.isIntersecting) {
5947
- let t = e.indexOf(n.target);
5948
- t !== -1 && (a.value = t + 1);
5949
- }
5950
- }, {
5951
- root: o.value,
5952
- threshold: .5
5953
- });
5954
- for (let t of e) _.observe(t);
5955
- }
5928
+ o.value > 1 && g(o.value - 1);
5956
5929
  }
5957
- return Ct(() => {
5958
- v();
5959
- }), wt(() => {
5960
- _?.disconnect();
5961
- }), (e, r) => (I(), k(B(Qt), {
5930
+ function y() {
5931
+ o.value < c.value && g(o.value + 1);
5932
+ }
5933
+ function b() {
5934
+ let e = r.resolve(Dc(t.billingDocument));
5935
+ window.open(e.href, "_blank", "noopener,noreferrer");
5936
+ }
5937
+ let x = null;
5938
+ return St(() => {
5939
+ h(), s.value !== null && (x = new MutationObserver(h), x.observe(s.value, {
5940
+ childList: !0,
5941
+ subtree: !0
5942
+ }));
5943
+ }), Ct(() => {
5944
+ x?.disconnect();
5945
+ }), (e, r) => (I(), k(B(Zt), {
5962
5946
  gap: "none",
5963
5947
  class: "flex-1 overflow-hidden rounded-xl border border-secondary"
5964
5948
  }, {
@@ -5967,75 +5951,81 @@ var kc = { class: "text-sm font-semibold text-primary" }, Ac = { class: "w-10 te
5967
5951
  justify: "between",
5968
5952
  class: "w-full border-b border-secondary bg-primary px-lg py-md"
5969
5953
  }, {
5970
- default: V(() => [M("p", kc, z(c.value), 1), N(B(_n), {
5954
+ default: V(() => [M("p", Oc, z(u.value), 1), N(B(gn), {
5971
5955
  icon: B(Ne),
5972
5956
  label: B(n).t("wise_invoicing.common.pdf_viewer.expand"),
5973
5957
  variant: "tertiary",
5974
- onClick: g
5958
+ onClick: b
5975
5959
  }, null, 8, ["icon", "label"])]),
5976
5960
  _: 1
5977
5961
  }),
5978
5962
  M("div", {
5979
5963
  ref_key: "scrollContainer",
5980
- ref: o,
5964
+ ref: s,
5981
5965
  class: "flex min-h-0 w-full flex-1 flex-col overflow-y-auto bg-tertiary py-lg"
5982
5966
  }, [M("div", {
5983
- style: xt({ zoom: i.value / 100 }),
5984
- class: "p-2xl"
5985
- }, [N(at, { "billing-document": t.billingDocument }, null, 8, ["billing-document"])], 4)], 512),
5967
+ style: bt({ zoom: a.value / 100 }),
5968
+ class: "p-2xl **:data-pdf-page:mt-0"
5969
+ }, [l.value === null ? (I(), k(it, {
5970
+ key: 1,
5971
+ "billing-document": t.billingDocument
5972
+ }, null, 8, ["billing-document"])) : (I(), k(Dt(l.value), {
5973
+ key: 0,
5974
+ invoice: t.billingDocument
5975
+ }, null, 8, ["invoice"]))], 4)], 512),
5986
5976
  N(B(H), {
5987
5977
  justify: "between",
5988
5978
  class: "w-full border-t border-secondary bg-primary p-md"
5989
5979
  }, {
5990
5980
  default: V(() => [N(B(H), { gap: "xs" }, {
5991
5981
  default: V(() => [
5992
- N(B(_n), {
5993
- disabled: a.value <= 1,
5982
+ N(B(gn), {
5983
+ disabled: o.value <= 1,
5994
5984
  icon: B(Le),
5995
5985
  label: B(n).t("wise_invoicing.common.pdf_viewer.previous_page"),
5996
5986
  variant: "tertiary",
5997
- onClick: m
5987
+ onClick: v
5998
5988
  }, null, 8, [
5999
5989
  "disabled",
6000
5990
  "icon",
6001
5991
  "label"
6002
5992
  ]),
6003
- N(B(_n), {
6004
- disabled: a.value >= s.value,
5993
+ N(B(gn), {
5994
+ disabled: o.value >= c.value,
6005
5995
  icon: B(re),
6006
5996
  label: B(n).t("wise_invoicing.common.pdf_viewer.next_page"),
6007
5997
  size: "sm",
6008
5998
  variant: "tertiary",
6009
- onClick: h
5999
+ onClick: y
6010
6000
  }, null, 8, [
6011
6001
  "disabled",
6012
6002
  "icon",
6013
6003
  "label"
6014
6004
  ]),
6015
- M("p", Ac, z(a.value) + " / " + z(s.value), 1)
6005
+ M("p", kc, z(o.value) + " / " + z(c.value), 1)
6016
6006
  ]),
6017
6007
  _: 1
6018
6008
  }), N(B(H), { gap: "xs" }, {
6019
6009
  default: V(() => [
6020
- M("p", jc, z(i.value) + "% ", 1),
6021
- N(B(_n), {
6022
- "is-disabled": i.value >= Nc,
6010
+ M("p", Ac, z(a.value) + "% ", 1),
6011
+ N(B(gn), {
6012
+ "is-disabled": a.value >= Mc,
6023
6013
  icon: B(te),
6024
6014
  label: B(n).t("wise_invoicing.common.pdf_viewer.zoom_in"),
6025
6015
  size: "sm",
6026
6016
  variant: "tertiary",
6027
- onClick: l
6017
+ onClick: d
6028
6018
  }, null, 8, [
6029
6019
  "is-disabled",
6030
6020
  "icon",
6031
6021
  "label"
6032
6022
  ]),
6033
- N(B(_n), {
6034
- "is-disabled": i.value <= Mc,
6023
+ N(B(gn), {
6024
+ "is-disabled": a.value <= jc,
6035
6025
  icon: B(ke),
6036
6026
  label: B(n).t("wise_invoicing.common.pdf_viewer.zoom_out"),
6037
6027
  variant: "tertiary",
6038
- onClick: u
6028
+ onClick: f
6039
6029
  }, null, 8, [
6040
6030
  "is-disabled",
6041
6031
  "icon",
@@ -6050,7 +6040,7 @@ var kc = { class: "text-sm font-semibold text-primary" }, Ac = { class: "w-10 te
6050
6040
  _: 1
6051
6041
  }));
6052
6042
  }
6053
- }), Ic = /* @__PURE__ */ P({
6043
+ }), Fc = /* @__PURE__ */ P({
6054
6044
  __name: "BillingDocumentDetailViewDataProvider",
6055
6045
  props: {
6056
6046
  customFieldDefinitionsQuery: {},
@@ -6063,7 +6053,7 @@ var kc = { class: "text-sm font-semibold text-primary" }, Ac = { class: "w-10 te
6063
6053
  billingDocument: t.query,
6064
6054
  customFieldDefinitions: t.customFieldDefinitionsQuery
6065
6055
  } }, {
6066
- default: V(({ data: t }) => [Dt(e.$slots, "default", bt(pt({
6056
+ default: V(({ data: t }) => [Et(e.$slots, "default", yt(ft({
6067
6057
  billingDocument: t.billingDocument,
6068
6058
  customFieldDefinitions: t.customFieldDefinitions
6069
6059
  })))]),
@@ -6073,4 +6063,4 @@ var kc = { class: "text-sm font-semibold text-primary" }, Ac = { class: "w-10 te
6073
6063
  }
6074
6064
  });
6075
6065
  //#endregion
6076
- export { Hn as C, Un as S, Xn as _, vc as a, Kn as b, fc as c, Nr as d, jr as f, Zn as g, mr as h, Tc as i, Oi as l, hr as m, Fc as n, _c as o, gr as p, Dc as r, pc as s, Ic as t, Kr as u, Yn as v, Gn as x, qn as y };
6066
+ export { Vn as C, Hn as S, Yn as _, _c as a, Gn as b, dc as c, Mr as d, Ar as f, Xn as g, pr as h, wc as i, Di as l, mr as m, Pc as n, gc as o, hr as p, Ec as r, fc as s, Fc as t, Gr as u, Jn as v, Wn as x, Kn as y };